gigabuddy 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cli.js +18 -16
- package/index.js +15 -15
- package/package.json +1 -1
- package/src/lib/commands.d.ts +16 -0
package/package.json
CHANGED
package/src/lib/commands.d.ts
CHANGED
|
@@ -71,6 +71,22 @@ export interface SetupRunner {
|
|
|
71
71
|
* custodies its own credential; our sign-in is neither needed nor offered here.
|
|
72
72
|
*/
|
|
73
73
|
export declare function setupCommand(runner?: SetupRunner): void;
|
|
74
|
+
export interface UpdateRunner {
|
|
75
|
+
/** The latest published version on npm, or null when it can't be read. */
|
|
76
|
+
latestVersion(): string | null;
|
|
77
|
+
/** Run `npm i -g gigabuddy@latest` with output flowing to the user. Returns exit code. */
|
|
78
|
+
installLatest(): number;
|
|
79
|
+
/** Re-run the idempotent plugin refresh. Returns exit code, or 'missing' with no claude binary. */
|
|
80
|
+
refreshPlugin(): number | 'missing';
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* `gigabuddy update` — bring everything gigabuddy on this machine current.
|
|
84
|
+
* Doctor DIAGNOSES and never mutates; this is the verb that acts. There are
|
|
85
|
+
* only two things to act on: this CLI (npm global) and the Claude Code plugin
|
|
86
|
+
* shell (idempotent marketplace refresh). The agent server needs nothing —
|
|
87
|
+
* the plugin launches `@gigabuddy/agent@latest` via npx, so it updates itself.
|
|
88
|
+
*/
|
|
89
|
+
export declare function updateCommand(current: string, runner?: UpdateRunner): Promise<void>;
|
|
74
90
|
export declare function statusCommand(account?: string): Promise<void>;
|
|
75
91
|
/**
|
|
76
92
|
* `gigabuddy accounts` — every account on this machine, who each is signed in
|