@guildai/cli 0.11.0 → 0.12.0
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/dist/auth-CRMO5O3N.js +29 -0
- package/dist/auth-CRMO5O3N.js.map +7 -0
- package/dist/chat-5VX2WJH2.js +303 -0
- package/dist/chat-5VX2WJH2.js.map +7 -0
- package/dist/chat-SIKDYZQK.js +31 -0
- package/dist/chat-SIKDYZQK.js.map +7 -0
- package/dist/chunk-56YCMGL3.js +522 -0
- package/dist/chunk-56YCMGL3.js.map +7 -0
- package/dist/chunk-6EX6E7WP.js +7042 -0
- package/dist/chunk-6EX6E7WP.js.map +7 -0
- package/dist/chunk-B7VAF5UG.js +532 -0
- package/dist/chunk-B7VAF5UG.js.map +7 -0
- package/dist/chunk-DOIYVBNY.js +3057 -0
- package/dist/chunk-DOIYVBNY.js.map +7 -0
- package/dist/chunk-ENKEEJ45.js +17 -0
- package/dist/chunk-ENKEEJ45.js.map +7 -0
- package/dist/chunk-IBRKVGMZ.js +97041 -0
- package/dist/chunk-IBRKVGMZ.js.map +7 -0
- package/dist/chunk-LFMQJOKC.js +19778 -0
- package/dist/chunk-LFMQJOKC.js.map +7 -0
- package/dist/chunk-M347HP6M.js +22896 -0
- package/dist/chunk-M347HP6M.js.map +7 -0
- package/dist/chunk-OYQ476FQ.js +44 -0
- package/dist/chunk-OYQ476FQ.js.map +7 -0
- package/dist/chunk-PNCUR4OB.js +257 -0
- package/dist/chunk-PNCUR4OB.js.map +7 -0
- package/dist/chunk-RIG2HZWM.js +317 -0
- package/dist/chunk-RIG2HZWM.js.map +7 -0
- package/dist/chunk-SPZPZXUN.js +826 -0
- package/dist/chunk-SPZPZXUN.js.map +7 -0
- package/dist/chunk-VVSOU6ON.js +53 -0
- package/dist/chunk-VVSOU6ON.js.map +7 -0
- package/dist/chunk-X3ADGWOF.js +3643 -0
- package/dist/chunk-X3ADGWOF.js.map +7 -0
- package/dist/commands/skill/create.d.ts +3 -0
- package/dist/commands/skill/get.d.ts +3 -0
- package/dist/commands/skill/list.d.ts +3 -0
- package/dist/commands/skill/update.d.ts +3 -0
- package/dist/commands/skill/version/create.d.ts +3 -0
- package/dist/commands/skill/version/get.d.ts +3 -0
- package/dist/commands/skill/version/list.d.ts +3 -0
- package/dist/devtools-AO7YSDOD.js +67 -0
- package/dist/devtools-AO7YSDOD.js.map +7 -0
- package/dist/dist-4CBK6X5H.js +1566 -0
- package/dist/dist-4CBK6X5H.js.map +7 -0
- package/dist/esm-FRAVZP4J.js +13 -0
- package/dist/esm-FRAVZP4J.js.map +7 -0
- package/dist/execa-XQMWSABC.js +35 -0
- package/dist/execa-XQMWSABC.js.map +7 -0
- package/dist/index.js +8230 -263
- package/dist/index.js.map +7 -0
- package/dist/lib/api-types.d.ts +44 -0
- package/dist/lib/config.d.ts +9 -0
- package/dist/lib/errors.d.ts +1 -1
- package/dist/lib/output.d.ts +11 -1
- package/dist/lib/session-events.d.ts +1 -1
- package/dist/lib/session-polling.d.ts +24 -1
- package/dist/lib/websocket-client.d.ts +46 -0
- package/dist/open-RF4X5MOP.js +13 -0
- package/dist/open-RF4X5MOP.js.map +7 -0
- package/dist/server-JYVH64FD.js +27659 -0
- package/dist/server-JYVH64FD.js.map +7 -0
- package/dist/test-SNIYRJ32.js +692 -0
- package/dist/test-SNIYRJ32.js.map +7 -0
- package/docs/skills/codex-agent-dev.md +2 -2
- package/package.json +8 -12
- package/dist/commands/agent/chat.js +0 -281
- package/dist/commands/agent/clone.js +0 -118
- package/dist/commands/agent/code.js +0 -87
- package/dist/commands/agent/fork.js +0 -220
- package/dist/commands/agent/get.js +0 -37
- package/dist/commands/agent/grep.js +0 -107
- package/dist/commands/agent/init.js +0 -403
- package/dist/commands/agent/list.js +0 -110
- package/dist/commands/agent/logs.js +0 -62
- package/dist/commands/agent/owners.js +0 -74
- package/dist/commands/agent/publish.js +0 -91
- package/dist/commands/agent/pull.js +0 -194
- package/dist/commands/agent/revalidate.js +0 -56
- package/dist/commands/agent/save.js +0 -345
- package/dist/commands/agent/search.js +0 -61
- package/dist/commands/agent/tags/add.js +0 -73
- package/dist/commands/agent/tags/list.js +0 -43
- package/dist/commands/agent/tags/remove.js +0 -84
- package/dist/commands/agent/tags/set.js +0 -71
- package/dist/commands/agent/test.js +0 -489
- package/dist/commands/agent/unpublish.js +0 -64
- package/dist/commands/agent/update.js +0 -118
- package/dist/commands/agent/versions.js +0 -55
- package/dist/commands/agent/workspaces.js +0 -54
- package/dist/commands/auth/login.js +0 -31
- package/dist/commands/auth/logout.js +0 -24
- package/dist/commands/auth/status.js +0 -38
- package/dist/commands/auth/token.js +0 -19
- package/dist/commands/chat.js +0 -1416
- package/dist/commands/config/get.js +0 -64
- package/dist/commands/config/list.js +0 -46
- package/dist/commands/config/path.js +0 -37
- package/dist/commands/config/set.js +0 -132
- package/dist/commands/credentials/endpoint-list.js +0 -88
- package/dist/commands/credentials/list.js +0 -50
- package/dist/commands/credentials/policy-create.js +0 -66
- package/dist/commands/credentials/policy-delete.js +0 -33
- package/dist/commands/credentials/policy-list.js +0 -45
- package/dist/commands/credentials/policy-update.js +0 -66
- package/dist/commands/doctor.js +0 -233
- package/dist/commands/integration/connect.js +0 -76
- package/dist/commands/integration/create.js +0 -298
- package/dist/commands/integration/get.js +0 -95
- package/dist/commands/integration/list.js +0 -62
- package/dist/commands/integration/operation/create.js +0 -164
- package/dist/commands/integration/operation/list.js +0 -92
- package/dist/commands/integration/update.js +0 -139
- package/dist/commands/integration/version/build.js +0 -86
- package/dist/commands/integration/version/create.js +0 -45
- package/dist/commands/integration/version/get.js +0 -72
- package/dist/commands/integration/version/list.js +0 -45
- package/dist/commands/integration/version/publish.js +0 -79
- package/dist/commands/integration/version/test.js +0 -104
- package/dist/commands/job/get-step.js +0 -40
- package/dist/commands/job/get.js +0 -44
- package/dist/commands/mcp.js +0 -34
- package/dist/commands/session/create.js +0 -59
- package/dist/commands/session/events.js +0 -56
- package/dist/commands/session/get.js +0 -33
- package/dist/commands/session/interrupt.js +0 -33
- package/dist/commands/session/list.js +0 -59
- package/dist/commands/session/send.js +0 -54
- package/dist/commands/session/tasks.js +0 -45
- package/dist/commands/setup.js +0 -260
- package/dist/commands/trigger/activate.js +0 -41
- package/dist/commands/trigger/create.js +0 -197
- package/dist/commands/trigger/deactivate.js +0 -41
- package/dist/commands/trigger/get.js +0 -33
- package/dist/commands/trigger/list.js +0 -57
- package/dist/commands/trigger/sessions.js +0 -48
- package/dist/commands/trigger/update.js +0 -128
- package/dist/commands/version.js +0 -24
- package/dist/commands/workspace/agent/add.js +0 -114
- package/dist/commands/workspace/agent/list.js +0 -78
- package/dist/commands/workspace/agent/remove.js +0 -78
- package/dist/commands/workspace/clear.js +0 -45
- package/dist/commands/workspace/context/edit.js +0 -107
- package/dist/commands/workspace/context/get.js +0 -47
- package/dist/commands/workspace/context/list.js +0 -51
- package/dist/commands/workspace/context/publish.js +0 -42
- package/dist/commands/workspace/create.js +0 -51
- package/dist/commands/workspace/current.js +0 -63
- package/dist/commands/workspace/get.js +0 -39
- package/dist/commands/workspace/list.js +0 -70
- package/dist/commands/workspace/select.js +0 -184
- package/dist/components/AgentInstallPrompt.js +0 -97
- package/dist/components/SplashAnimation.js +0 -321
- package/dist/components/TaskView.js +0 -268
- package/dist/lib/agent-helpers.js +0 -306
- package/dist/lib/alternate-screen.js +0 -59
- package/dist/lib/api-client.js +0 -154
- package/dist/lib/api-types.js +0 -10
- package/dist/lib/auth.js +0 -284
- package/dist/lib/braille-canvas.js +0 -321
- package/dist/lib/colors.js +0 -46
- package/dist/lib/config-cache.js +0 -45
- package/dist/lib/config.js +0 -153
- package/dist/lib/did-you-mean.js +0 -144
- package/dist/lib/errors.js +0 -375
- package/dist/lib/event-filter.js +0 -91
- package/dist/lib/generated-types.js +0 -56
- package/dist/lib/git.js +0 -176
- package/dist/lib/gk.js +0 -91
- package/dist/lib/guild-config.js +0 -178
- package/dist/lib/iap.js +0 -117
- package/dist/lib/integration-helpers.js +0 -38
- package/dist/lib/loading-messages.js +0 -72
- package/dist/lib/logo.js +0 -141
- package/dist/lib/lottie-serverside.js +0 -181
- package/dist/lib/markdown.js +0 -38
- package/dist/lib/npmrc.js +0 -59
- package/dist/lib/output-mode.js +0 -54
- package/dist/lib/output.js +0 -622
- package/dist/lib/owner-helpers.js +0 -112
- package/dist/lib/polling.js +0 -76
- package/dist/lib/progress.js +0 -324
- package/dist/lib/session-events-fetch.js +0 -25
- package/dist/lib/session-events.js +0 -126
- package/dist/lib/session-polling.js +0 -166
- package/dist/lib/session-resume.js +0 -229
- package/dist/lib/spinners.js +0 -770
- package/dist/lib/splash.js +0 -42
- package/dist/lib/stdin.js +0 -91
- package/dist/lib/svg-to-braille.js +0 -76
- package/dist/lib/table.js +0 -59
- package/dist/lib/update-check.js +0 -65
- package/dist/lib/validate-input-schema.js +0 -208
- package/dist/lib/version-helpers.js +0 -137
- package/dist/lib/workspace-helpers.js +0 -49
- package/dist/mcp/resources.js +0 -67
- package/dist/mcp/server.js +0 -64
- package/dist/mcp/tools.js +0 -753
package/dist/lib/api-types.d.ts
CHANGED
|
@@ -357,6 +357,50 @@ export interface Organization {
|
|
|
357
357
|
viewer_role: 'ADMIN' | 'MEMBER' | null;
|
|
358
358
|
}
|
|
359
359
|
export type OrganizationListResponse = PaginatedResponse<Organization>;
|
|
360
|
+
/**
|
|
361
|
+
* Skill entity from the API.
|
|
362
|
+
* Used by: skill list, skill get, skill create, skill update
|
|
363
|
+
*/
|
|
364
|
+
export interface Skill {
|
|
365
|
+
id: string;
|
|
366
|
+
entity_type: string;
|
|
367
|
+
type: 'skill';
|
|
368
|
+
full_name: string;
|
|
369
|
+
name: string;
|
|
370
|
+
overview: string;
|
|
371
|
+
is_public: boolean;
|
|
372
|
+
avatar_url: string | null;
|
|
373
|
+
owner: {
|
|
374
|
+
id: string;
|
|
375
|
+
name: string;
|
|
376
|
+
type: string;
|
|
377
|
+
};
|
|
378
|
+
viewer_can_edit: boolean;
|
|
379
|
+
created_at: string;
|
|
380
|
+
updated_at: string;
|
|
381
|
+
latest_version?: SkillVersion | null;
|
|
382
|
+
}
|
|
383
|
+
/**
|
|
384
|
+
* Skill version entity from the API.
|
|
385
|
+
* Used by: skill version list, skill version get, skill version create
|
|
386
|
+
*/
|
|
387
|
+
export interface SkillVersion {
|
|
388
|
+
id: string;
|
|
389
|
+
entity_type: string;
|
|
390
|
+
type: 'skill_version';
|
|
391
|
+
version_number: string;
|
|
392
|
+
description: string;
|
|
393
|
+
body?: string;
|
|
394
|
+
skill?: Skill;
|
|
395
|
+
author?: {
|
|
396
|
+
id: string;
|
|
397
|
+
name: string;
|
|
398
|
+
};
|
|
399
|
+
created_at: string;
|
|
400
|
+
updated_at: string;
|
|
401
|
+
}
|
|
402
|
+
export type SkillListResponse = PaginatedResponse<Skill>;
|
|
403
|
+
export type SkillVersionListResponse = PaginatedResponse<SkillVersion>;
|
|
360
404
|
export interface Credentials {
|
|
361
405
|
id: string;
|
|
362
406
|
integration: {
|
package/dist/lib/config.d.ts
CHANGED
|
@@ -48,6 +48,15 @@ export declare function getGuildcoreUrl(): string;
|
|
|
48
48
|
* Used to construct clickable links to dashboard pages.
|
|
49
49
|
*/
|
|
50
50
|
export declare function getDashboardUrl(): string;
|
|
51
|
+
/**
|
|
52
|
+
* Get the Guildcore WebSocket base URL
|
|
53
|
+
*
|
|
54
|
+
* Derives the WebSocket URL from the HTTP guildcore URL:
|
|
55
|
+
* - http:// → ws://, https:// → wss://
|
|
56
|
+
*
|
|
57
|
+
* @returns WebSocket base URL (e.g., "wss://app.guild.ai/api")
|
|
58
|
+
*/
|
|
59
|
+
export declare function getGuildcoreWsUrl(): string;
|
|
51
60
|
/**
|
|
52
61
|
* Check if the given URL is an IAP-protected host
|
|
53
62
|
*
|
package/dist/lib/errors.d.ts
CHANGED
|
@@ -39,7 +39,7 @@ export declare const ErrorCodes: {
|
|
|
39
39
|
readonly VALIDATION_ERROR: "VALIDATION_ERROR";
|
|
40
40
|
};
|
|
41
41
|
/**
|
|
42
|
-
* Check if debug mode is enabled (CLI flag or
|
|
42
|
+
* Check if debug mode is enabled (CLI flag, config, or env var)
|
|
43
43
|
*/
|
|
44
44
|
export declare function isDebugMode(): boolean;
|
|
45
45
|
/**
|
package/dist/lib/output.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Spinner } from './progress.js';
|
|
2
|
-
import type { Agent, AgentVersion, Credentials, CredentialsPolicy, Context, Integration, IntegrationVersion, JobStep, Pagination, Session, Task, ValidationStep, Workspace, WorkspaceAgent, Trigger } from './api-types.js';
|
|
2
|
+
import type { Agent, AgentVersion, Credentials, CredentialsPolicy, Context, Integration, IntegrationVersion, JobStep, Pagination, Session, Skill, SkillVersion, Task, ValidationStep, Workspace, WorkspaceAgent, Trigger } from './api-types.js';
|
|
3
3
|
/**
|
|
4
4
|
* Format an agent list as a human-readable table.
|
|
5
5
|
* Shared by agent list and agent search commands.
|
|
@@ -10,6 +10,16 @@ export declare function formatAgentTable(agents: Agent[], pagination: Pagination
|
|
|
10
10
|
* Used by integration list command.
|
|
11
11
|
*/
|
|
12
12
|
export declare function formatIntegrationTable(integrations: Integration[], pagination: Pagination): void;
|
|
13
|
+
/**
|
|
14
|
+
* Format a skill list as a human-readable table.
|
|
15
|
+
* Used by skill list command.
|
|
16
|
+
*/
|
|
17
|
+
export declare function formatSkillTable(skills: Skill[], pagination: Pagination): void;
|
|
18
|
+
/**
|
|
19
|
+
* Format a skill version list as a human-readable table.
|
|
20
|
+
* Used by skill version list command.
|
|
21
|
+
*/
|
|
22
|
+
export declare function formatSkillVersionTable(versions: SkillVersion[], pagination: Pagination, skillName: string): void;
|
|
13
23
|
/**
|
|
14
24
|
* Format an integration version list as a human-readable table.
|
|
15
25
|
* Used by integration version list command.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* These types match the backend event system from the messaging refactor (PR #819).
|
|
5
5
|
* All CLI commands should import these types instead of defining their own.
|
|
6
6
|
*/
|
|
7
|
-
export type TaskStatus = 'CREATED' | 'STARTED' | 'RUNNING' | 'WAITING' | 'DONE' | 'ERROR' | 'INTERRUPTED';
|
|
7
|
+
export type TaskStatus = 'CREATED' | 'DISPATCHED' | 'STARTED' | 'RUNNING' | 'WAITING' | 'DONE' | 'ERROR' | 'INTERRUPTED';
|
|
8
8
|
export interface BaseTaskFields {
|
|
9
9
|
id: string;
|
|
10
10
|
status: TaskStatus;
|
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
import { GuildAPIClient } from './api-client.js';
|
|
2
|
+
import { SessionEvent } from './session-events.js';
|
|
2
3
|
export interface PollResult {
|
|
3
4
|
response: string | null;
|
|
4
5
|
/** Last event ID seen — pass as `afterEventId` on next call. */
|
|
5
6
|
lastEventId: string | undefined;
|
|
6
7
|
}
|
|
8
|
+
export interface PollOnceResult {
|
|
9
|
+
events: SessionEvent[];
|
|
10
|
+
lastEventId: string | undefined;
|
|
11
|
+
reason: 'completion' | 'error' | 'ui_prompt' | 'inactivity_timeout';
|
|
12
|
+
}
|
|
7
13
|
/**
|
|
8
|
-
* Poll for agent response using
|
|
14
|
+
* Poll for agent response using WebSocket streaming with HTTP fallback.
|
|
15
|
+
*
|
|
16
|
+
* Does one initial HTTP GET (using from_id cursor) to check if the response
|
|
17
|
+
* is already available, then opens a WebSocket for real-time events.
|
|
18
|
+
* Falls back to HTTP polling if the WebSocket connection fails.
|
|
9
19
|
*
|
|
10
20
|
* Handles both multi-turn agents (which emit agent_notification_message)
|
|
11
21
|
* and one-shot agents (which may only emit runtime_done with output content).
|
|
@@ -23,6 +33,19 @@ export declare function pollForResponse(client: GuildAPIClient, sessionId: strin
|
|
|
23
33
|
* Same completion logic as pollForResponse(), but writes each event that
|
|
24
34
|
* passes the filter to stdout so callers get intermediate output (console.log,
|
|
25
35
|
* progress, etc.) in JSON/JSONL automation modes.
|
|
36
|
+
*
|
|
37
|
+
* Uses HTTP polling (not WebSocket) since it needs to emit each event
|
|
38
|
+
* individually to stdout as JSONL.
|
|
26
39
|
*/
|
|
27
40
|
export declare function pollForResponseWithEvents(client: GuildAPIClient, sessionId: string, eventFilter: Set<string>, afterEventId: string | undefined, maxWaitTime?: number): Promise<PollResult>;
|
|
41
|
+
/**
|
|
42
|
+
* Poll for --once mode using WebSocket streaming with HTTP fallback.
|
|
43
|
+
*
|
|
44
|
+
* Accumulates all events (unlike pollForResponse which returns a single response)
|
|
45
|
+
* and checks for completion conditions after each batch.
|
|
46
|
+
*/
|
|
47
|
+
export declare function pollForOnce(client: GuildAPIClient, sessionId: string, options?: {
|
|
48
|
+
inactivityTimeoutMs?: number;
|
|
49
|
+
pollIntervalMs?: number;
|
|
50
|
+
}): Promise<PollOnceResult>;
|
|
28
51
|
//# sourceMappingURL=session-polling.d.ts.map
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
type WsState = 'connecting' | 'connected' | 'disconnected' | 'reconnecting';
|
|
2
|
+
export interface WebSocketClientOptions<R> {
|
|
3
|
+
/** WebSocket endpoint path (e.g., "/sessions/{id}/events/ws") */
|
|
4
|
+
path: string;
|
|
5
|
+
/** Query parameters to append to the URL */
|
|
6
|
+
queryParams?: Record<string, string>;
|
|
7
|
+
/** Called for each received JSON message */
|
|
8
|
+
onMessage: (message: R) => void;
|
|
9
|
+
/** Called when the connection fails permanently (auth error, max retries) */
|
|
10
|
+
onError?: (error: Error) => void;
|
|
11
|
+
/** Returns the last seen ID for reconnection resume via from_id */
|
|
12
|
+
getFromId?: () => string | undefined;
|
|
13
|
+
/** Debug label for logging */
|
|
14
|
+
label: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Node.js WebSocket client for Guild backend endpoints.
|
|
18
|
+
*
|
|
19
|
+
* Handles auth headers (Bearer + IAP), auto-reconnect with exponential
|
|
20
|
+
* backoff + jitter, connection timeout, and from_id resume on reconnect.
|
|
21
|
+
*/
|
|
22
|
+
export declare class GuildWebSocketClient<R> {
|
|
23
|
+
private ws;
|
|
24
|
+
private state;
|
|
25
|
+
private readonly options;
|
|
26
|
+
private reconnectTimer;
|
|
27
|
+
private connectTimeout;
|
|
28
|
+
private reconnectAttempts;
|
|
29
|
+
private constructor();
|
|
30
|
+
/**
|
|
31
|
+
* Create and connect a WebSocket client.
|
|
32
|
+
* Rejects if initial connection or auth fails.
|
|
33
|
+
*/
|
|
34
|
+
static create<R>(options: WebSocketClientOptions<R>): Promise<GuildWebSocketClient<R>>;
|
|
35
|
+
private buildUrl;
|
|
36
|
+
private getHeaders;
|
|
37
|
+
private cleanupSocket;
|
|
38
|
+
private connect;
|
|
39
|
+
private scheduleReconnect;
|
|
40
|
+
/** Close the connection cleanly. No reconnection will be attempted. */
|
|
41
|
+
close(): void;
|
|
42
|
+
/** Current connection state */
|
|
43
|
+
getState(): WsState;
|
|
44
|
+
}
|
|
45
|
+
export {};
|
|
46
|
+
//# sourceMappingURL=websocket-client.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createRequire as _cjsReq } from 'module'; if(typeof require === 'undefined') var require = _cjsReq(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
apps,
|
|
4
|
+
openApp,
|
|
5
|
+
open_default
|
|
6
|
+
} from "./chunk-56YCMGL3.js";
|
|
7
|
+
import "./chunk-OYQ476FQ.js";
|
|
8
|
+
export {
|
|
9
|
+
apps,
|
|
10
|
+
open_default as default,
|
|
11
|
+
openApp
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=open-RF4X5MOP.js.map
|