integrations

package
v0.24.3 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: Apache-2.0 Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

This section is empty.

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.

func InstallArgsForce added in v0.22.0

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

InstallArgsForce is the replace variant, for a skill row the classifier called a conflict and the user answered the armed confirm on (GDK-1535): the same argv with exactly one --force appended. --force is a skill-install flag — for every other row this returns the plain argv unchanged, so a stray force on the wire cannot turn any other install into an overwrite.

Types

type Item

type Item struct {
	ID        string `json:"id"`
	Title     string `json:"title"`
	Installed *bool  `json:"installed"`
	// Status is the skill verdict for a skill row — one of "current",
	// "stale", "missing", "conflict" — and "" for every other row. It is the
	// same word `gadak doctor` prints, from the same classifier
	// (skillinstall.DestStatus), so the two can no longer disagree about one
	// file (GDK-1514). Installed is derived from it and never the other way
	// round: a stale copy is installed *and* out of date, which one boolean
	// cannot say.
	Status       string        `json:"status,omitempty"`
	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), the skill rows, mcp-claude, mcp-claude-desktop. Non-macOS hosts omit raycast — Raycast does not exist there, and a row whose Install button can run would lie (GDK-244, GDK-354).

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