integrations

package
v0.18.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package integrations is the desktop Settings catalog: which local agent/host tools gadak can install, how to detect them, and which gadak CLI argv installs each one. Detection is files and local processes only — no network, no mirror.

Index

Constants

View Source
const (
	IDCommandLineTool = "command-line-tool"
	IDRaycast         = "raycast"
	IDSkill           = "skill"
	IDMCPClaude       = "mcp-claude"
)

IDs are part of the GET/POST contract. Order of List is fixed: command-line-tool, raycast (darwin only), skill, mcp-claude.

Variables

This section is empty.

Functions

func InstallArgs

func InstallArgs(id string) ([]string, bool)

InstallArgs is the argv tail for the bundled gadak CLI. ok is false for an unknown id, and for raycast on Windows.

func InstallArgsFor added in v0.16.0

func InstallArgsFor(id, goos string) ([]string, bool)

InstallArgsFor is InstallArgs with an explicit GOOS.

Types

type Item

type Item struct {
	ID           string        `json:"id"`
	Title        string        `json:"title"`
	Installed    *bool         `json:"installed"`
	Detail       string        `json:"detail"`
	Command      string        `json:"command"`
	Prerequisite *Prerequisite `json:"prerequisite"`
}

Item is one row of GET /desktop/integrations.

func List

func List() []Item

List returns the catalog rows for this host's GOOS, in contract order: command-line-tool, raycast (darwin only), skill, mcp-claude. Non-macOS hosts omit raycast — Raycast does not exist there, and a row whose Install button can run would lie (GDK-244, GDK-354).

func ListFor added in v0.16.0

func ListFor(goos string) []Item

ListFor is List with an explicit GOOS so the Windows catalog can be pinned on any host (same shape as clitool.ResolveFor).

type Prerequisite

type Prerequisite struct {
	OK      bool   `json:"ok"`
	Message string `json:"message"`
}

Prerequisite is a local dependency the install verb needs. Skill has none (JSON null).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL