@a5c-ai/agent-comm-mux 5.0.1-staging.04ca6ab00d21
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/LICENSE +21 -0
- package/README.md +99 -0
- package/dist/adapter-registry.d.ts +51 -0
- package/dist/adapter-registry.d.ts.map +1 -0
- package/dist/adapter-registry.js +208 -0
- package/dist/adapter-registry.js.map +1 -0
- package/dist/adapter-types.d.ts +164 -0
- package/dist/adapter-types.d.ts.map +1 -0
- package/dist/adapter-types.js +27 -0
- package/dist/adapter-types.js.map +1 -0
- package/dist/adapter.d.ts +248 -0
- package/dist/adapter.d.ts.map +1 -0
- package/dist/adapter.js +18 -0
- package/dist/adapter.js.map +1 -0
- package/dist/atomic-fs.d.ts +33 -0
- package/dist/atomic-fs.d.ts.map +1 -0
- package/dist/atomic-fs.js +190 -0
- package/dist/atomic-fs.js.map +1 -0
- package/dist/auth-manager.d.ts +37 -0
- package/dist/auth-manager.d.ts.map +1 -0
- package/dist/auth-manager.js +94 -0
- package/dist/auth-manager.js.map +1 -0
- package/dist/auth-types.d.ts +83 -0
- package/dist/auth-types.d.ts.map +1 -0
- package/dist/auth-types.js +10 -0
- package/dist/auth-types.js.map +1 -0
- package/dist/automation.d.ts +104 -0
- package/dist/automation.d.ts.map +1 -0
- package/dist/automation.js +2 -0
- package/dist/automation.js.map +1 -0
- package/dist/browser.d.ts +5 -0
- package/dist/browser.d.ts.map +1 -0
- package/dist/browser.js +2 -0
- package/dist/browser.js.map +1 -0
- package/dist/builtin-hooks.d.ts +24 -0
- package/dist/builtin-hooks.d.ts.map +1 -0
- package/dist/builtin-hooks.js +80 -0
- package/dist/builtin-hooks.js.map +1 -0
- package/dist/capabilities.d.ts +251 -0
- package/dist/capabilities.d.ts.map +1 -0
- package/dist/capabilities.js +7 -0
- package/dist/capabilities.js.map +1 -0
- package/dist/client.d.ts +118 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +316 -0
- package/dist/client.js.map +1 -0
- package/dist/config-manager.d.ts +85 -0
- package/dist/config-manager.d.ts.map +1 -0
- package/dist/config-manager.js +202 -0
- package/dist/config-manager.js.map +1 -0
- package/dist/config-types.d.ts +134 -0
- package/dist/config-types.d.ts.map +1 -0
- package/dist/config-types.js +10 -0
- package/dist/config-types.js.map +1 -0
- package/dist/cost-utils.d.ts +31 -0
- package/dist/cost-utils.d.ts.map +1 -0
- package/dist/cost-utils.js +69 -0
- package/dist/cost-utils.js.map +1 -0
- package/dist/errors.d.ts +50 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +85 -0
- package/dist/errors.js.map +1 -0
- package/dist/events-control.d.ts +91 -0
- package/dist/events-control.d.ts.map +1 -0
- package/dist/events-control.js +8 -0
- package/dist/events-control.js.map +1 -0
- package/dist/events.d.ts +285 -0
- package/dist/events.d.ts.map +1 -0
- package/dist/events.js +8 -0
- package/dist/events.js.map +1 -0
- package/dist/hook-catalog.d.ts +20 -0
- package/dist/hook-catalog.d.ts.map +1 -0
- package/dist/hook-catalog.js +63 -0
- package/dist/hook-catalog.js.map +1 -0
- package/dist/hook-dispatcher.d.ts +24 -0
- package/dist/hook-dispatcher.d.ts.map +1 -0
- package/dist/hook-dispatcher.js +91 -0
- package/dist/hook-dispatcher.js.map +1 -0
- package/dist/hook-payload.d.ts +24 -0
- package/dist/hook-payload.d.ts.map +1 -0
- package/dist/hook-payload.js +62 -0
- package/dist/hook-payload.js.map +1 -0
- package/dist/hooks.d.ts +59 -0
- package/dist/hooks.d.ts.map +1 -0
- package/dist/hooks.js +118 -0
- package/dist/hooks.js.map +1 -0
- package/dist/host-detection.d.ts +67 -0
- package/dist/host-detection.d.ts.map +1 -0
- package/dist/host-detection.js +147 -0
- package/dist/host-detection.js.map +1 -0
- package/dist/index.d.ts +88 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +50 -0
- package/dist/index.js.map +1 -0
- package/dist/interaction-channel-impl.d.ts +56 -0
- package/dist/interaction-channel-impl.d.ts.map +1 -0
- package/dist/interaction-channel-impl.js +159 -0
- package/dist/interaction-channel-impl.js.map +1 -0
- package/dist/interaction.d.ts +93 -0
- package/dist/interaction.d.ts.map +1 -0
- package/dist/interaction.js +8 -0
- package/dist/interaction.js.map +1 -0
- package/dist/invocation.d.ts +100 -0
- package/dist/invocation.d.ts.map +1 -0
- package/dist/invocation.js +17 -0
- package/dist/invocation.js.map +1 -0
- package/dist/kanban.d.ts +894 -0
- package/dist/kanban.d.ts.map +1 -0
- package/dist/kanban.js +1155 -0
- package/dist/kanban.js.map +1 -0
- package/dist/merge.d.ts +37 -0
- package/dist/merge.d.ts.map +1 -0
- package/dist/merge.js +102 -0
- package/dist/merge.js.map +1 -0
- package/dist/model-registry.d.ts +61 -0
- package/dist/model-registry.d.ts.map +1 -0
- package/dist/model-registry.js +198 -0
- package/dist/model-registry.js.map +1 -0
- package/dist/plugin-manager-impl.d.ts +48 -0
- package/dist/plugin-manager-impl.d.ts.map +1 -0
- package/dist/plugin-manager-impl.js +343 -0
- package/dist/plugin-manager-impl.js.map +1 -0
- package/dist/plugin-manager.d.ts +81 -0
- package/dist/plugin-manager.d.ts.map +1 -0
- package/dist/plugin-manager.js +7 -0
- package/dist/plugin-manager.js.map +1 -0
- package/dist/plugin-types.d.ts +114 -0
- package/dist/plugin-types.d.ts.map +1 -0
- package/dist/plugin-types.js +7 -0
- package/dist/plugin-types.js.map +1 -0
- package/dist/process-tracker.d.ts +20 -0
- package/dist/process-tracker.d.ts.map +1 -0
- package/dist/process-tracker.js +96 -0
- package/dist/process-tracker.js.map +1 -0
- package/dist/profiles.d.ts +99 -0
- package/dist/profiles.d.ts.map +1 -0
- package/dist/profiles.js +231 -0
- package/dist/profiles.js.map +1 -0
- package/dist/programmatic-runner.d.ts +4 -0
- package/dist/programmatic-runner.d.ts.map +1 -0
- package/dist/programmatic-runner.js +110 -0
- package/dist/programmatic-runner.js.map +1 -0
- package/dist/provider-config.d.ts +40 -0
- package/dist/provider-config.d.ts.map +1 -0
- package/dist/provider-config.js +67 -0
- package/dist/provider-config.js.map +1 -0
- package/dist/provider-profiles.d.ts +47 -0
- package/dist/provider-profiles.d.ts.map +1 -0
- package/dist/provider-profiles.js +117 -0
- package/dist/provider-profiles.js.map +1 -0
- package/dist/provider-resolver.d.ts +15 -0
- package/dist/provider-resolver.d.ts.map +1 -0
- package/dist/provider-resolver.js +114 -0
- package/dist/provider-resolver.js.map +1 -0
- package/dist/provider-support-matrix.d.ts +12 -0
- package/dist/provider-support-matrix.d.ts.map +1 -0
- package/dist/provider-support-matrix.js +88 -0
- package/dist/provider-support-matrix.js.map +1 -0
- package/dist/remote-runner.d.ts +4 -0
- package/dist/remote-runner.d.ts.map +1 -0
- package/dist/remote-runner.js +114 -0
- package/dist/remote-runner.js.map +1 -0
- package/dist/retry.d.ts +13 -0
- package/dist/retry.d.ts.map +1 -0
- package/dist/retry.js +17 -0
- package/dist/retry.js.map +1 -0
- package/dist/run-handle-cost.d.ts +36 -0
- package/dist/run-handle-cost.d.ts.map +1 -0
- package/dist/run-handle-cost.js +62 -0
- package/dist/run-handle-cost.js.map +1 -0
- package/dist/run-handle-impl.d.ts +144 -0
- package/dist/run-handle-impl.d.ts.map +1 -0
- package/dist/run-handle-impl.js +695 -0
- package/dist/run-handle-impl.js.map +1 -0
- package/dist/run-handle.d.ts +222 -0
- package/dist/run-handle.d.ts.map +1 -0
- package/dist/run-handle.js +9 -0
- package/dist/run-handle.js.map +1 -0
- package/dist/run-options-validation.d.ts +23 -0
- package/dist/run-options-validation.d.ts.map +1 -0
- package/dist/run-options-validation.js +234 -0
- package/dist/run-options-validation.js.map +1 -0
- package/dist/run-options.d.ts +128 -0
- package/dist/run-options.d.ts.map +1 -0
- package/dist/run-options.js +329 -0
- package/dist/run-options.js.map +1 -0
- package/dist/runtime-hook-dispatcher.d.ts +19 -0
- package/dist/runtime-hook-dispatcher.d.ts.map +1 -0
- package/dist/runtime-hook-dispatcher.js +50 -0
- package/dist/runtime-hook-dispatcher.js.map +1 -0
- package/dist/runtime-hooks.d.ts +47 -0
- package/dist/runtime-hooks.d.ts.map +1 -0
- package/dist/runtime-hooks.js +2 -0
- package/dist/runtime-hooks.js.map +1 -0
- package/dist/schema/__tests__/event-schema.test.d.ts +1 -0
- package/dist/schema/__tests__/event-schema.test.d.ts.map +1 -0
- package/dist/schema/__tests__/event-schema.test.js +480 -0
- package/dist/schema/__tests__/event-schema.test.js.map +1 -0
- package/dist/schema/event-schema.d.ts +120 -0
- package/dist/schema/event-schema.d.ts.map +1 -0
- package/dist/schema/event-schema.js +546 -0
- package/dist/schema/event-schema.js.map +1 -0
- package/dist/schema/index.d.ts +7 -0
- package/dist/schema/index.d.ts.map +1 -0
- package/dist/schema/index.js +49 -0
- package/dist/schema/index.js.map +1 -0
- package/dist/session-manager-helpers.d.ts +33 -0
- package/dist/session-manager-helpers.d.ts.map +1 -0
- package/dist/session-manager-helpers.js +66 -0
- package/dist/session-manager-helpers.js.map +1 -0
- package/dist/session-manager.d.ts +70 -0
- package/dist/session-manager.d.ts.map +1 -0
- package/dist/session-manager.js +343 -0
- package/dist/session-manager.js.map +1 -0
- package/dist/session-types.d.ts +358 -0
- package/dist/session-types.d.ts.map +1 -0
- package/dist/session-types.js +10 -0
- package/dist/session-types.js.map +1 -0
- package/dist/spawn-invocation.d.ts +52 -0
- package/dist/spawn-invocation.d.ts.map +1 -0
- package/dist/spawn-invocation.js +218 -0
- package/dist/spawn-invocation.js.map +1 -0
- package/dist/spawn-runner-utils.d.ts +21 -0
- package/dist/spawn-runner-utils.d.ts.map +1 -0
- package/dist/spawn-runner-utils.js +102 -0
- package/dist/spawn-runner-utils.js.map +1 -0
- package/dist/spawn-runner.d.ts +21 -0
- package/dist/spawn-runner.d.ts.map +1 -0
- package/dist/spawn-runner.js +576 -0
- package/dist/spawn-runner.js.map +1 -0
- package/dist/spawn-runtime-hooks.d.ts +15 -0
- package/dist/spawn-runtime-hooks.d.ts.map +1 -0
- package/dist/spawn-runtime-hooks.js +136 -0
- package/dist/spawn-runtime-hooks.js.map +1 -0
- package/dist/state-machine.d.ts +33 -0
- package/dist/state-machine.d.ts.map +1 -0
- package/dist/state-machine.js +61 -0
- package/dist/state-machine.js.map +1 -0
- package/dist/storage.d.ts +47 -0
- package/dist/storage.d.ts.map +1 -0
- package/dist/storage.js +90 -0
- package/dist/storage.js.map +1 -0
- package/dist/stream-assembler.d.ts +51 -0
- package/dist/stream-assembler.d.ts.map +1 -0
- package/dist/stream-assembler.js +86 -0
- package/dist/stream-assembler.js.map +1 -0
- package/dist/tools/classify.d.ts +9 -0
- package/dist/tools/classify.d.ts.map +1 -0
- package/dist/tools/classify.js +77 -0
- package/dist/tools/classify.js.map +1 -0
- package/dist/tools/index.d.ts +2 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +2 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/types.d.ts +288 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +8 -0
- package/dist/types.js.map +1 -0
- package/dist/workspaces.d.ts +142 -0
- package/dist/workspaces.d.ts.map +1 -0
- package/dist/workspaces.js +515 -0
- package/dist/workspaces.js.map +1 -0
- package/package.json +107 -0
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Authentication-related types for @a5c-ai/agent-mux.
|
|
3
|
+
*
|
|
4
|
+
* Defines auth methods, auth state snapshots, setup guidance,
|
|
5
|
+
* setup steps, and environment variable descriptors.
|
|
6
|
+
*
|
|
7
|
+
* @see 08-config-and-auth.md
|
|
8
|
+
*/
|
|
9
|
+
import type { AgentName } from './types.js';
|
|
10
|
+
/** Authentication methods supported by agents. */
|
|
11
|
+
export type AuthMethod = 'api_key' | 'oauth' | 'oauth_device' | 'browser_login' | 'token_file' | 'keychain' | 'github_token' | 'config_file' | 'none';
|
|
12
|
+
/** Human-readable auth method metadata exposed in capability manifests. */
|
|
13
|
+
export interface AuthMethodDescriptor {
|
|
14
|
+
/** Method identifier used by auth state and setup guidance. */
|
|
15
|
+
readonly type: AuthMethod | string;
|
|
16
|
+
/** Human-readable name. */
|
|
17
|
+
readonly name: string;
|
|
18
|
+
/** Optional description or setup hint. */
|
|
19
|
+
readonly description?: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Authentication state snapshot for an agent.
|
|
23
|
+
* Returned by adapter.detectAuth() and wrapped by AuthManager.
|
|
24
|
+
*/
|
|
25
|
+
export interface AuthState {
|
|
26
|
+
/** The agent this state belongs to. Set by AuthManager. */
|
|
27
|
+
readonly agent?: AgentName;
|
|
28
|
+
/** Current authentication status. */
|
|
29
|
+
readonly status: 'authenticated' | 'unauthenticated' | 'expired' | 'unknown';
|
|
30
|
+
/** The authentication method that was detected. */
|
|
31
|
+
readonly method?: AuthMethod | string;
|
|
32
|
+
/** Identity string (email, key prefix, etc.). */
|
|
33
|
+
readonly identity?: string;
|
|
34
|
+
/** When the credentials expire. */
|
|
35
|
+
readonly expiresAt?: Date | string;
|
|
36
|
+
/** When this auth state was checked. Set by AuthManager. */
|
|
37
|
+
readonly checkedAt?: Date;
|
|
38
|
+
/** Additional details about the auth state. */
|
|
39
|
+
readonly details?: string;
|
|
40
|
+
}
|
|
41
|
+
/** A single step in the auth setup process. */
|
|
42
|
+
export interface AuthSetupStep {
|
|
43
|
+
/** Step number (1-indexed). */
|
|
44
|
+
readonly step: number;
|
|
45
|
+
/** Human-readable description. */
|
|
46
|
+
readonly description: string;
|
|
47
|
+
/** Shell command to run for this step. */
|
|
48
|
+
readonly command?: string;
|
|
49
|
+
/** URL to visit for this step. */
|
|
50
|
+
readonly url?: string;
|
|
51
|
+
}
|
|
52
|
+
/** An environment variable relevant to agent authentication. */
|
|
53
|
+
export interface AuthEnvVar {
|
|
54
|
+
/** The environment variable name. */
|
|
55
|
+
readonly name: string;
|
|
56
|
+
/** Human-readable description. */
|
|
57
|
+
readonly description: string;
|
|
58
|
+
/** Whether required for the primary auth method. */
|
|
59
|
+
readonly required: boolean;
|
|
60
|
+
/** Example format for the value. */
|
|
61
|
+
readonly exampleFormat?: string;
|
|
62
|
+
}
|
|
63
|
+
/** Structured authentication setup guidance. */
|
|
64
|
+
export interface AuthSetupGuidance {
|
|
65
|
+
/** The agent this guidance is for. */
|
|
66
|
+
readonly agent?: AgentName;
|
|
67
|
+
/** Human-readable display name for the auth provider. */
|
|
68
|
+
readonly providerName?: string;
|
|
69
|
+
/** Ordered list of setup steps. */
|
|
70
|
+
readonly steps: (AuthSetupStep | string)[];
|
|
71
|
+
/** Environment variables relevant to authentication. */
|
|
72
|
+
readonly envVars?: (AuthEnvVar | string)[];
|
|
73
|
+
/** Documentation URLs. */
|
|
74
|
+
readonly documentationUrls?: string[];
|
|
75
|
+
/** Documentation links (alias for backward compat). */
|
|
76
|
+
readonly links?: string[];
|
|
77
|
+
/** Platform-specific notes. */
|
|
78
|
+
readonly platformNotes?: Record<string, string>;
|
|
79
|
+
/** CLI command to initiate login, if available. */
|
|
80
|
+
readonly loginCommand?: string;
|
|
81
|
+
/** CLI command to verify auth status, if available. */
|
|
82
|
+
readonly verifyCommand?: string;
|
|
83
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth-types.d.ts","sourceRoot":"","sources":["../src/auth-types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAM5C,kDAAkD;AAClD,MAAM,MAAM,UAAU,GAClB,SAAS,GACT,OAAO,GACP,cAAc,GACd,eAAe,GACf,YAAY,GACZ,UAAU,GACV,cAAc,GACd,aAAa,GACb,MAAM,CAAC;AAEX,2EAA2E;AAC3E,MAAM,WAAW,oBAAoB;IACnC,+DAA+D;IAC/D,QAAQ,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,CAAC;IAEnC,2BAA2B;IAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB,0CAA0C;IAC1C,QAAQ,CAAC,WAAW,CA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QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC;IAE3B,yDAAyD;IACzD,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAE/B,mCAAmC;IACnC,QAAQ,CAAC,KAAK,EAAE,CAAC,aAAa,GAAG,MAAM,CAAC,EAAE,CAAC;IAE3C,wDAAwD;IACxD,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,UAAU,GAAG,MAAM,CAAC,EAAE,CAAC;IAE3C,0BAA0B;IAC1B,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAEtC,uDAAuD;IACvD,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IAE1B,+BAA+B;IAC/B,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEhD,mDAAmD;IACnD,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAE/B,uDAAuD;IACvD,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;CACjC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Authentication-related types for @a5c-ai/agent-mux.
|
|
3
|
+
*
|
|
4
|
+
* Defines auth methods, auth state snapshots, setup guidance,
|
|
5
|
+
* setup steps, and environment variable descriptors.
|
|
6
|
+
*
|
|
7
|
+
* @see 08-config-and-auth.md
|
|
8
|
+
*/
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=auth-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth-types.js","sourceRoot":"","sources":["../src/auth-types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import type { KanbanDecompositionItem, KanbanIssueSource, KanbanIssueStatus, KanbanPriority } from "./kanban.js";
|
|
2
|
+
export type AutomationRuleLifecycleState = "draft" | "active" | "paused" | "disabled" | "archived";
|
|
3
|
+
export interface AutomationRuleSourceMetadata {
|
|
4
|
+
readonly kind: "manual" | "config-file" | "api" | "external-system";
|
|
5
|
+
readonly path?: string;
|
|
6
|
+
readonly provider?: string;
|
|
7
|
+
readonly externalId?: string;
|
|
8
|
+
readonly metadata?: Readonly<Record<string, unknown>>;
|
|
9
|
+
}
|
|
10
|
+
export interface AutomationRuleAuditMetadata {
|
|
11
|
+
readonly createdAt: string;
|
|
12
|
+
readonly createdBy?: string;
|
|
13
|
+
readonly updatedAt?: string;
|
|
14
|
+
readonly updatedBy?: string;
|
|
15
|
+
readonly lastTriggeredAt?: string;
|
|
16
|
+
readonly lastTriggeredBy?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface AutomationTaskTemplate {
|
|
19
|
+
readonly title: string;
|
|
20
|
+
readonly summary?: string;
|
|
21
|
+
readonly description?: string;
|
|
22
|
+
readonly status?: Extract<KanbanIssueStatus, "backlog" | "ready">;
|
|
23
|
+
readonly priority?: KanbanPriority;
|
|
24
|
+
readonly labelIds?: readonly string[];
|
|
25
|
+
readonly assigneeIds?: readonly string[];
|
|
26
|
+
readonly acceptanceCriteria?: readonly string[];
|
|
27
|
+
readonly decomposition?: readonly Pick<KanbanDecompositionItem, "title" | "kind" | "status">[];
|
|
28
|
+
readonly issueSource?: KanbanIssueSource;
|
|
29
|
+
readonly metadata?: Readonly<Record<string, unknown>>;
|
|
30
|
+
}
|
|
31
|
+
export interface AutomationTarget {
|
|
32
|
+
readonly projectId: string;
|
|
33
|
+
readonly boardProjectId: string;
|
|
34
|
+
}
|
|
35
|
+
export interface AutomationIssueCreateRoute {
|
|
36
|
+
readonly action: "canonical-issue-create";
|
|
37
|
+
readonly projectId: string;
|
|
38
|
+
}
|
|
39
|
+
export interface AutomationDerivedBoardRoute {
|
|
40
|
+
readonly action: "shared-board-derive";
|
|
41
|
+
readonly boardProjectId: string;
|
|
42
|
+
}
|
|
43
|
+
export interface AutomationRouting {
|
|
44
|
+
readonly issue: AutomationIssueCreateRoute;
|
|
45
|
+
readonly board: AutomationDerivedBoardRoute;
|
|
46
|
+
readonly mutateBoardDirectly: false;
|
|
47
|
+
}
|
|
48
|
+
export interface TimerAutomationTrigger {
|
|
49
|
+
readonly type: "timer";
|
|
50
|
+
readonly cron: string;
|
|
51
|
+
readonly timezone?: string;
|
|
52
|
+
}
|
|
53
|
+
export interface WebhookAutomationTrigger {
|
|
54
|
+
readonly type: "webhook";
|
|
55
|
+
readonly port: number;
|
|
56
|
+
readonly path?: string;
|
|
57
|
+
readonly method?: "POST";
|
|
58
|
+
readonly auth?: {
|
|
59
|
+
readonly type: "none";
|
|
60
|
+
} | {
|
|
61
|
+
readonly type: "bearer";
|
|
62
|
+
readonly token: string;
|
|
63
|
+
};
|
|
64
|
+
readonly sourceEvent?: string;
|
|
65
|
+
}
|
|
66
|
+
interface AutomationRuleBase {
|
|
67
|
+
readonly id: string;
|
|
68
|
+
readonly name: string;
|
|
69
|
+
readonly state: AutomationRuleLifecycleState;
|
|
70
|
+
readonly target: AutomationTarget;
|
|
71
|
+
readonly template: AutomationTaskTemplate;
|
|
72
|
+
readonly routing: AutomationRouting;
|
|
73
|
+
readonly source: AutomationRuleSourceMetadata;
|
|
74
|
+
readonly audit: AutomationRuleAuditMetadata;
|
|
75
|
+
}
|
|
76
|
+
export interface TimerAutomationRule extends AutomationRuleBase {
|
|
77
|
+
readonly trigger: TimerAutomationTrigger;
|
|
78
|
+
}
|
|
79
|
+
export interface WebhookAutomationRule extends AutomationRuleBase {
|
|
80
|
+
readonly trigger: WebhookAutomationTrigger;
|
|
81
|
+
}
|
|
82
|
+
export type AutomationRule = TimerAutomationRule | WebhookAutomationRule;
|
|
83
|
+
export type AutomationExecutionStatus = "created" | "coalesced" | "rejected";
|
|
84
|
+
export interface AutomationExecutionRecord {
|
|
85
|
+
readonly id: string;
|
|
86
|
+
readonly ruleId: string;
|
|
87
|
+
readonly ruleName: string;
|
|
88
|
+
readonly triggerType: AutomationRule["trigger"]["type"];
|
|
89
|
+
readonly status: AutomationExecutionStatus;
|
|
90
|
+
readonly triggeredAt: string;
|
|
91
|
+
readonly triggeredBy: string;
|
|
92
|
+
readonly source: AutomationRuleSourceMetadata;
|
|
93
|
+
readonly projectId: string;
|
|
94
|
+
readonly boardProjectId: string;
|
|
95
|
+
readonly issueId?: string;
|
|
96
|
+
readonly issueKey?: string;
|
|
97
|
+
readonly issueSource?: KanbanIssueSource;
|
|
98
|
+
readonly stateAtExecution: AutomationRuleLifecycleState;
|
|
99
|
+
readonly reason?: string;
|
|
100
|
+
readonly deliveryId?: string;
|
|
101
|
+
readonly inputs?: Readonly<Record<string, unknown>>;
|
|
102
|
+
readonly metadata?: Readonly<Record<string, unknown>>;
|
|
103
|
+
}
|
|
104
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"automation.d.ts","sourceRoot":"","sources":["../src/automation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACf,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,4BAA4B,GACpC,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,UAAU,GACV,UAAU,CAAC;AAEf,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,IAAI,EAAE,QAAQ,GAAG,aAAa,GAAG,KAAK,GAAG,iBAAiB,CAAC;IACpE,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CACvD;AAED,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,SAAS,CAA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QAAQ,CAAC,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IACpD,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CACvD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"automation.js","sourceRoot":"","sources":["../src/automation.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type { AgentName, Attachment, CostRecord } from './types.js';
|
|
2
|
+
export type * from './events.js';
|
|
3
|
+
export type { SessionMessage, SessionToolCall, WorkspaceRuntimeSurface } from './session-types.js';
|
|
4
|
+
export type { ToolClassification } from './tools/index.js';
|
|
5
|
+
export { classifyTool } from './tools/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACpE,mBAAmB,aAAa,CAAC;AACjC,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AACnG,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC"}
|
package/dist/browser.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser.js","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Built-in programmatic hooks. Registered by id; invoked via HookDispatcher
|
|
3
|
+
* when a registration has handler='builtin' and target=<id>.
|
|
4
|
+
*/
|
|
5
|
+
import type { UnifiedHookPayload, UnifiedHookResult } from './hooks.js';
|
|
6
|
+
export type BuiltInHookFn = (payload: UnifiedHookPayload) => Promise<UnifiedHookResult> | UnifiedHookResult;
|
|
7
|
+
export interface BuiltInHookEntry {
|
|
8
|
+
id: string;
|
|
9
|
+
description: string;
|
|
10
|
+
/** If set, only runs for this agent. '*' or undefined = any. */
|
|
11
|
+
agent?: string;
|
|
12
|
+
fn: BuiltInHookFn;
|
|
13
|
+
}
|
|
14
|
+
/** Registry of programmatic built-in hooks. */
|
|
15
|
+
export declare class BuiltInHooksRegistry {
|
|
16
|
+
private readonly entries;
|
|
17
|
+
constructor(logPath?: string);
|
|
18
|
+
register(entry: BuiltInHookEntry): void;
|
|
19
|
+
get(id: string): BuiltInHookEntry | undefined;
|
|
20
|
+
list(agent?: string): BuiltInHookEntry[];
|
|
21
|
+
run(id: string, payload: UnifiedHookPayload): Promise<UnifiedHookResult>;
|
|
22
|
+
}
|
|
23
|
+
/** Process-wide default registry. */
|
|
24
|
+
export declare const builtInHooks: BuiltInHooksRegistry;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"builtin-hooks.d.ts","sourceRoot":"","sources":["../src/builtin-hooks.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAExE,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,EAAE,kBAAkB,KAAK,OAAO,CAAC,iBAAiB,CAAC,GAAG,iBAAiB,CAAC;AAE5G,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,gEAAgE;IAChE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,EAAE,EAAE,aAAa,CAAC;CACnB;AASD,+CAA+C;AAC/C,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAuC;gBAEnD,OAAO,GAAE,MAAyB;IA2C9C,QAAQ,CAAC,KAAK,EAAE,gBAAgB,GAAG,IAAI;IAIvC,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS;IAI7C,IAAI,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,gBAAgB,EAAE;IAQlC,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAO/E;AAED,qCAAqC;AACrC,eAAO,MAAM,YAAY,sBAA6B,CAAC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Built-in programmatic hooks. Registered by id; invoked via HookDispatcher
|
|
3
|
+
* when a registration has handler='builtin' and target=<id>.
|
|
4
|
+
*/
|
|
5
|
+
import * as path from 'node:path';
|
|
6
|
+
import * as os from 'node:os';
|
|
7
|
+
import * as fs from 'node:fs/promises';
|
|
8
|
+
const DEFAULT_LOG_PATH = path.join(os.homedir(), '.amux', 'hook-log.jsonl');
|
|
9
|
+
async function appendJsonl(file, obj) {
|
|
10
|
+
await fs.mkdir(path.dirname(file), { recursive: true });
|
|
11
|
+
await fs.appendFile(file, JSON.stringify(obj) + '\n', 'utf8');
|
|
12
|
+
}
|
|
13
|
+
/** Registry of programmatic built-in hooks. */
|
|
14
|
+
export class BuiltInHooksRegistry {
|
|
15
|
+
entries = new Map();
|
|
16
|
+
constructor(logPath = DEFAULT_LOG_PATH) {
|
|
17
|
+
// Generic: log every hook payload as JSONL.
|
|
18
|
+
this.register({
|
|
19
|
+
id: 'log',
|
|
20
|
+
description: 'Append the hook payload to ~/.amux/hook-log.jsonl.',
|
|
21
|
+
fn: async (payload) => {
|
|
22
|
+
await appendJsonl(logPath, {
|
|
23
|
+
t: payload.timestamp,
|
|
24
|
+
agent: payload.agent,
|
|
25
|
+
hookType: payload.hookType,
|
|
26
|
+
sessionId: payload.sessionId,
|
|
27
|
+
});
|
|
28
|
+
return { decision: 'allow' };
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
// Generic: emit a short trace line to stdout.
|
|
32
|
+
this.register({
|
|
33
|
+
id: 'trace',
|
|
34
|
+
description: 'Emit a single-line trace to stdout.',
|
|
35
|
+
fn: (payload) => ({
|
|
36
|
+
decision: 'allow',
|
|
37
|
+
stdout: `[amux hook] ${payload.agent}/${payload.hookType} ${payload.sessionId ?? ''}\n`,
|
|
38
|
+
}),
|
|
39
|
+
});
|
|
40
|
+
// Claude-specific: capture SessionStart/Stop metadata.
|
|
41
|
+
this.register({
|
|
42
|
+
id: 'claude.session-capture',
|
|
43
|
+
description: 'Capture claude session metadata (CLAUDE_PROJECT_DIR, session_id).',
|
|
44
|
+
agent: 'claude',
|
|
45
|
+
fn: async (payload) => {
|
|
46
|
+
await appendJsonl(logPath, {
|
|
47
|
+
t: payload.timestamp,
|
|
48
|
+
kind: 'claude.session-capture',
|
|
49
|
+
sessionId: payload.sessionId,
|
|
50
|
+
data: payload.data,
|
|
51
|
+
});
|
|
52
|
+
return { decision: 'allow' };
|
|
53
|
+
},
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
register(entry) {
|
|
57
|
+
this.entries.set(entry.id, entry);
|
|
58
|
+
}
|
|
59
|
+
get(id) {
|
|
60
|
+
return this.entries.get(id);
|
|
61
|
+
}
|
|
62
|
+
list(agent) {
|
|
63
|
+
const out = [];
|
|
64
|
+
for (const e of this.entries.values()) {
|
|
65
|
+
if (!e.agent || e.agent === '*' || !agent || e.agent === agent)
|
|
66
|
+
out.push(e);
|
|
67
|
+
}
|
|
68
|
+
return out;
|
|
69
|
+
}
|
|
70
|
+
async run(id, payload) {
|
|
71
|
+
const entry = this.entries.get(id);
|
|
72
|
+
if (!entry) {
|
|
73
|
+
return { decision: 'allow', message: `no built-in hook named "${id}"` };
|
|
74
|
+
}
|
|
75
|
+
return await entry.fn(payload);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
/** Process-wide default registry. */
|
|
79
|
+
export const builtInHooks = new BuiltInHooksRegistry();
|
|
80
|
+
//# sourceMappingURL=builtin-hooks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"builtin-hooks.js","sourceRoot":"","sources":["../src/builtin-hooks.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAavC,MAAM,gBAAgB,GAAG,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,gBAAgB,CAAC,CAAC;AAE5E,KAAK,UAAU,WAAW,CAAC,IAAY,EAAE,GAAY;IACnD,MAAM,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IACxD,MAAM,EAAE,CAAC,UAAU,CAAC,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC,CAAC;AAChE,CAAC;AAED,+CAA+C;AAC/C,MAAM,OAAO,oBAAoB;IACd,OAAO,GAAG,IAAI,GAAG,EAA4B,CAAC;IAE/D,YAAY,UAAkB,gBAAgB;QAC5C,4CAA4C;QAC5C,IAAI,CAAC,QAAQ,CAAC;YACZ,EAAE,EAAE,KAAK;YACT,WAAW,EAAE,oDAAoD;YACjE,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;gBACpB,MAAM,WAAW,CAAC,OAAO,EAAE;oBACzB,CAAC,EAAE,OAAO,CAAC,SAAS;oBACpB,KAAK,EAAE,OAAO,CAAC,KAAK;oBACpB,QAAQ,EAAE,OAAO,CAAC,QAAQ;oBAC1B,SAAS,EAAE,OAAO,CAAC,SAAS;iBAC7B,CAAC,CAAC;gBACH,OAAO,EAAE,QAAQ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,IAAI,CAAC,CAAC,KAAK,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,CAAC,CAAC,KAAK,KAAK,KAAK;gBAAE,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAC9E,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,EAAU,EAAE,OAA2B;QAC/C,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QACnC,IAAI,CAAC,KAAK,EAAE,CAAC;YACX,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,2BAA2B,EAAE,GAAG,EAAE,CAAC;QAC1E,CAAC;QACD,OAAO,MAAM,KAAK,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC;IACjC,CAAC;CACF;AAED,qCAAqC;AACrC,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,oBAAoB,EAAE,CAAC"}
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent and model capability types for @a5c-ai/agent-mux.
|
|
3
|
+
*
|
|
4
|
+
* @see 06-capabilities-and-models.md
|
|
5
|
+
*/
|
|
6
|
+
import type { AgentName, PluginFormat } from './types.js';
|
|
7
|
+
import type { AuthMethodDescriptor } from './auth-types.js';
|
|
8
|
+
import type { RuntimeHookCapabilities } from './runtime-hooks.js';
|
|
9
|
+
/** Discrete thinking effort levels supported by agents. */
|
|
10
|
+
export type ThinkingEffortLevel = 'low' | 'medium' | 'high' | 'max';
|
|
11
|
+
/** Normalized request/transport protocol used to talk to a model. */
|
|
12
|
+
export type ModelProtocol = 'chat' | 'responses' | 'messages' | 'custom';
|
|
13
|
+
/** How a model is typically reached for a given adapter. */
|
|
14
|
+
export type ModelDeployment = 'hosted' | 'local' | 'gateway' | 'hybrid';
|
|
15
|
+
/**
|
|
16
|
+
* How agent-mux can execute additional turns for a structured session.
|
|
17
|
+
*
|
|
18
|
+
* `restart-per-turn` means each user turn requires a fresh invocation or
|
|
19
|
+
* reconnect that resumes the same native session.
|
|
20
|
+
* `persistent` means the same live process/connection stays open and can
|
|
21
|
+
* accept later turns while continuing to emit structured events.
|
|
22
|
+
*/
|
|
23
|
+
export type StructuredSessionTransport = 'none' | 'restart-per-turn' | 'persistent';
|
|
24
|
+
/**
|
|
25
|
+
* Who owns the live session control plane behind an adapter.
|
|
26
|
+
*
|
|
27
|
+
* `self-managed` means agent-mux directly owns the subprocess / SDK lifecycle.
|
|
28
|
+
* `external-host` means agent-mux talks to another long-lived host surface
|
|
29
|
+
* (app-server, HTTP server, remote wrapper) that owns the session.
|
|
30
|
+
* `mcp-mediated` means a third-party host mediates the live session over MCP or
|
|
31
|
+
* a similar host-managed channel.
|
|
32
|
+
*/
|
|
33
|
+
export type SessionControlPlane = 'self-managed' | 'external-host' | 'mcp-mediated';
|
|
34
|
+
/** Describes where plugins are sourced from for a given agent. */
|
|
35
|
+
export interface PluginRegistry {
|
|
36
|
+
/** Registry identifier (e.g., 'npm', 'openclaw-registry', 'agentskills-hub'). */
|
|
37
|
+
name: string;
|
|
38
|
+
/** Base URL of the registry. */
|
|
39
|
+
url: string;
|
|
40
|
+
/** Whether the registry supports programmatic search. */
|
|
41
|
+
searchable: boolean;
|
|
42
|
+
}
|
|
43
|
+
/** Describes a single method for installing an agent on a particular platform. */
|
|
44
|
+
export interface InstallMethod {
|
|
45
|
+
/**
|
|
46
|
+
* Which platform this install method applies to.
|
|
47
|
+
* 'all' means the method works on darwin, linux, and win32.
|
|
48
|
+
*/
|
|
49
|
+
platform: 'darwin' | 'linux' | 'win32' | 'all';
|
|
50
|
+
/**
|
|
51
|
+
* The installation mechanism.
|
|
52
|
+
*/
|
|
53
|
+
type: 'npm' | 'brew' | 'gh-extension' | 'curl' | 'winget' | 'scoop' | 'manual' | 'pip' | 'nix';
|
|
54
|
+
/** The exact command to run for installation. */
|
|
55
|
+
command: string;
|
|
56
|
+
/** Human-readable notes (e.g., prerequisites, RAM requirements). */
|
|
57
|
+
notes?: string;
|
|
58
|
+
/** A command to run to verify a prerequisite is installed. */
|
|
59
|
+
prerequisiteCheck?: string;
|
|
60
|
+
}
|
|
61
|
+
/** Structured manifest of what an agent adapter can do. */
|
|
62
|
+
export interface AgentCapabilities {
|
|
63
|
+
/** The agent this capability manifest describes. */
|
|
64
|
+
agent: AgentName;
|
|
65
|
+
/** Whether the agent can resume a prior session by ID. */
|
|
66
|
+
canResume: boolean;
|
|
67
|
+
/** Whether the agent can fork (branch) an existing session. */
|
|
68
|
+
canFork: boolean;
|
|
69
|
+
/** Whether the agent supports multi-turn conversations within a single run. */
|
|
70
|
+
supportsMultiTurn: boolean;
|
|
71
|
+
/** How the agent persists session data. */
|
|
72
|
+
sessionPersistence: 'none' | 'file' | 'sqlite' | 'in-memory';
|
|
73
|
+
/** Whether the agent supports real-time text token streaming. */
|
|
74
|
+
supportsTextStreaming: boolean;
|
|
75
|
+
/** Whether tool call arguments stream incrementally. */
|
|
76
|
+
supportsToolCallStreaming: boolean;
|
|
77
|
+
/** Whether thinking/reasoning tokens stream incrementally. */
|
|
78
|
+
supportsThinkingStreaming: boolean;
|
|
79
|
+
/** Whether the agent supports native tool/function calling. */
|
|
80
|
+
supportsNativeTools: boolean;
|
|
81
|
+
/** Whether the agent supports the Model Context Protocol. */
|
|
82
|
+
supportsMCP: boolean;
|
|
83
|
+
/** Whether the agent can invoke multiple tools in a single turn. */
|
|
84
|
+
supportsParallelToolCalls: boolean;
|
|
85
|
+
/** Whether tool execution requires explicit user approval by default. */
|
|
86
|
+
requiresToolApproval: boolean;
|
|
87
|
+
/** The approval modes this agent supports. */
|
|
88
|
+
approvalModes: ('yolo' | 'prompt' | 'deny')[];
|
|
89
|
+
/** How each runtime hook kind is supported by the adapter. */
|
|
90
|
+
runtimeHooks: RuntimeHookCapabilities;
|
|
91
|
+
/** Whether the agent supports extended thinking / reasoning mode. */
|
|
92
|
+
supportsThinking: boolean;
|
|
93
|
+
/** The discrete thinking effort levels this agent accepts. */
|
|
94
|
+
thinkingEffortLevels: ThinkingEffortLevel[];
|
|
95
|
+
/** Whether the agent supports a numeric thinking budget in tokens. */
|
|
96
|
+
supportsThinkingBudgetTokens: boolean;
|
|
97
|
+
/** Whether the agent supports JSON-only output mode. */
|
|
98
|
+
supportsJsonMode: boolean;
|
|
99
|
+
/** Whether the agent supports structured output with a schema. */
|
|
100
|
+
supportsStructuredOutput: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* How agent-mux can drive structured multi-turn sessions for this adapter.
|
|
103
|
+
* Distinguishes resumable one-turn CLI flows from truly persistent live
|
|
104
|
+
* structured sessions.
|
|
105
|
+
*/
|
|
106
|
+
structuredSessionTransport: StructuredSessionTransport;
|
|
107
|
+
/** Who owns the live session control plane for this adapter. */
|
|
108
|
+
sessionControlPlane: SessionControlPlane;
|
|
109
|
+
/** Whether the agent supports loading skill definitions. */
|
|
110
|
+
supportsSkills: boolean;
|
|
111
|
+
/** Whether the agent supports an agents.md / AGENTS.md doc. */
|
|
112
|
+
supportsAgentsMd: boolean;
|
|
113
|
+
/** The format skills are loaded in, or null if skills are unsupported. */
|
|
114
|
+
skillsFormat: 'file' | 'directory' | 'npm-package' | null;
|
|
115
|
+
/** Whether the agent can dispatch subagent tasks. */
|
|
116
|
+
supportsSubagentDispatch: boolean;
|
|
117
|
+
/** Whether the agent supports running parallel tasks / tool calls. */
|
|
118
|
+
supportsParallelExecution: boolean;
|
|
119
|
+
/** Maximum number of concurrent parallel tasks, if bounded. */
|
|
120
|
+
maxParallelTasks?: number;
|
|
121
|
+
/** Whether the agent has an interactive REPL mode. */
|
|
122
|
+
supportsInteractiveMode: boolean;
|
|
123
|
+
/** Whether agent-mux can inject text into the agent's stdin mid-run. */
|
|
124
|
+
supportsStdinInjection: boolean;
|
|
125
|
+
/** Whether the agent accepts image inputs (screenshots, diagrams). */
|
|
126
|
+
supportsImageInput: boolean;
|
|
127
|
+
/** Whether the agent can produce image outputs. */
|
|
128
|
+
supportsImageOutput: boolean;
|
|
129
|
+
/** Whether the agent accepts file attachments beyond images. */
|
|
130
|
+
supportsFileAttachments: boolean;
|
|
131
|
+
/** Whether this agent has a plugin/extension system. */
|
|
132
|
+
supportsPlugins: boolean;
|
|
133
|
+
/** The kinds of plugins this agent supports. */
|
|
134
|
+
pluginFormats: PluginFormat[];
|
|
135
|
+
/** Native CLI command to install a plugin, if available. */
|
|
136
|
+
pluginInstallCmd?: string;
|
|
137
|
+
/** Native CLI command to list installed plugins, if available. */
|
|
138
|
+
pluginListCmd?: string;
|
|
139
|
+
/** Native CLI command to uninstall a plugin, if available. */
|
|
140
|
+
pluginUninstallCmd?: string;
|
|
141
|
+
/** Official plugin marketplace / registry URL, if available. */
|
|
142
|
+
pluginMarketplaceUrl?: string;
|
|
143
|
+
/** Native CLI command to search for plugins, if available. */
|
|
144
|
+
pluginSearchCmd?: string;
|
|
145
|
+
/** Where plugins are sourced from (npm, custom registries, etc.). */
|
|
146
|
+
pluginRegistries: PluginRegistry[];
|
|
147
|
+
/** Platforms this agent runs on natively. */
|
|
148
|
+
supportedPlatforms: ('darwin' | 'linux' | 'win32')[];
|
|
149
|
+
/** Whether the agent requires the working directory to be a git repo. */
|
|
150
|
+
requiresGitRepo: boolean;
|
|
151
|
+
/** Whether the agent requires a pseudo-terminal (PTY) to function. */
|
|
152
|
+
requiresPty: boolean;
|
|
153
|
+
/** Authentication methods this agent supports. */
|
|
154
|
+
authMethods: AuthMethodDescriptor[];
|
|
155
|
+
/** File paths (relative to home) where auth tokens/keys are stored. */
|
|
156
|
+
authFiles: string[];
|
|
157
|
+
/** Installation methods for this agent, per platform. */
|
|
158
|
+
installMethods: InstallMethod[];
|
|
159
|
+
}
|
|
160
|
+
/** Per-model capability, pricing, and context information. */
|
|
161
|
+
export interface ModelCapabilities {
|
|
162
|
+
/** The agent this model belongs to. */
|
|
163
|
+
agent: AgentName;
|
|
164
|
+
/** The canonical model identifier (e.g., 'claude-opus-4-20250514'). */
|
|
165
|
+
modelId: string;
|
|
166
|
+
/** An optional short alias (e.g., 'opus' for 'claude-opus-4-20250514'). */
|
|
167
|
+
modelAlias?: string;
|
|
168
|
+
/** Human-readable display name (e.g., 'Claude Opus 4'). */
|
|
169
|
+
displayName: string;
|
|
170
|
+
/** Whether this model is deprecated and should not be used for new work. */
|
|
171
|
+
deprecated: boolean;
|
|
172
|
+
/** ISO 8601 date string when the model was deprecated. */
|
|
173
|
+
deprecatedSince?: string;
|
|
174
|
+
/** The recommended replacement model when this model is deprecated. */
|
|
175
|
+
successorModelId?: string;
|
|
176
|
+
/** Maximum context window size in tokens. */
|
|
177
|
+
contextWindow: number;
|
|
178
|
+
/** Maximum output tokens the model can generate in a single response. */
|
|
179
|
+
maxOutputTokens: number;
|
|
180
|
+
/** Maximum thinking/reasoning tokens, if the model supports thinking. */
|
|
181
|
+
maxThinkingTokens?: number;
|
|
182
|
+
/** Cost per million input tokens in USD. */
|
|
183
|
+
inputPricePerMillion?: number;
|
|
184
|
+
/** Cost per million output tokens in USD. */
|
|
185
|
+
outputPricePerMillion?: number;
|
|
186
|
+
/** Cost per million thinking tokens in USD. */
|
|
187
|
+
thinkingPricePerMillion?: number;
|
|
188
|
+
/** Cost per million cached input tokens in USD. */
|
|
189
|
+
cachedInputPricePerMillion?: number;
|
|
190
|
+
/** Whether this model supports extended thinking / reasoning mode. */
|
|
191
|
+
supportsThinking: boolean;
|
|
192
|
+
/** The discrete thinking effort levels this model accepts. */
|
|
193
|
+
thinkingEffortLevels?: ThinkingEffortLevel[];
|
|
194
|
+
/** The valid range [min, max] for thinkingBudgetTokens on this model. */
|
|
195
|
+
thinkingBudgetRange?: [number, number];
|
|
196
|
+
/** Whether this model supports tool/function calling. */
|
|
197
|
+
supportsToolCalling: boolean;
|
|
198
|
+
/** Whether this model supports parallel tool calls in a single turn. */
|
|
199
|
+
supportsParallelToolCalls: boolean;
|
|
200
|
+
/** Whether tool call arguments stream incrementally on this model. */
|
|
201
|
+
supportsToolCallStreaming: boolean;
|
|
202
|
+
/** Whether this model supports JSON-only output mode. */
|
|
203
|
+
supportsJsonMode: boolean;
|
|
204
|
+
/** Whether this model supports structured output with a schema. */
|
|
205
|
+
supportsStructuredOutput: boolean;
|
|
206
|
+
/** Whether this model supports real-time text token streaming. */
|
|
207
|
+
supportsTextStreaming: boolean;
|
|
208
|
+
/** Whether thinking/reasoning tokens stream on this model. */
|
|
209
|
+
supportsThinkingStreaming: boolean;
|
|
210
|
+
/** Whether this model accepts image inputs. */
|
|
211
|
+
supportsImageInput: boolean;
|
|
212
|
+
/** Whether this model can produce image outputs. */
|
|
213
|
+
supportsImageOutput: boolean;
|
|
214
|
+
/** Whether this model accepts file inputs beyond images. */
|
|
215
|
+
supportsFileInput: boolean;
|
|
216
|
+
/** The underlying provider family backing this model entry. */
|
|
217
|
+
provider?: string;
|
|
218
|
+
/** Provider-native model identifier when it differs from modelId. */
|
|
219
|
+
providerModelId?: string;
|
|
220
|
+
/** The request/transport protocol typically used for this model. */
|
|
221
|
+
protocol?: ModelProtocol;
|
|
222
|
+
/** Whether this model is typically reached as hosted, local, or via gateway. */
|
|
223
|
+
deployment?: ModelDeployment;
|
|
224
|
+
/** Whether the adapter can route this catalog entry to local model backends. */
|
|
225
|
+
supportsLocalModels?: boolean;
|
|
226
|
+
/** The CLI argument key used to select this model. */
|
|
227
|
+
cliArgKey: string;
|
|
228
|
+
/** The CLI argument value passed with cliArgKey. */
|
|
229
|
+
cliArgValue: string;
|
|
230
|
+
/** ISO 8601 timestamp of the last update to this model's data. */
|
|
231
|
+
lastUpdated: string;
|
|
232
|
+
/** Whether this data comes from a bundled snapshot or a remote refresh. */
|
|
233
|
+
source: 'bundled' | 'remote';
|
|
234
|
+
}
|
|
235
|
+
/** Returned by ModelRegistry.validate() for model identifier validation. */
|
|
236
|
+
export interface ModelValidationResult {
|
|
237
|
+
/** Whether the model identifier is recognized and usable. */
|
|
238
|
+
valid: boolean;
|
|
239
|
+
/** The validated model's capabilities, if valid. */
|
|
240
|
+
model?: ModelCapabilities;
|
|
241
|
+
/** Validation status. */
|
|
242
|
+
status: 'ok' | 'deprecated' | 'alias' | 'unknown' | 'ambiguous';
|
|
243
|
+
/** Human-readable message explaining the result. */
|
|
244
|
+
message: string;
|
|
245
|
+
/** Suggested model identifiers when status is 'unknown' or 'ambiguous'. */
|
|
246
|
+
suggestions?: string[];
|
|
247
|
+
/** The canonical model ID when status is 'alias'. */
|
|
248
|
+
resolvedModelId?: string;
|
|
249
|
+
/** The recommended successor when status is 'deprecated'. */
|
|
250
|
+
successorModelId?: string;
|
|
251
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../src/capabilities.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAMlE,2DAA2D;AAC3D,MAAM,MAAM,mBAAmB,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,KAAK,CAAC;AAEpE,qEAAqE;AACrE,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,WAAW,GAAG,UAAU,GAAG,QAAQ,CAAC;AAEzE,4DAA4D;AAC5D,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,CAAC;AAExE;;;;;;;GAOG;AACH,MAAM,MAAM,0BAA0B,GAAG,MAAM,GAAG,kBAAkB,GAAG,YAAY,CAAC;AAEpF;;;;;;;;GAQG;AACH,MAAM,MAAM,mBAAmB,GAAG,cAAc,GAAG,eAAe,GAAG,cAAc,CAAC;AAMpF,kEAAkE;AAClE,MAAM,WAAW,cAAc;IAC7B,iFAAiF;IACjF,IAAI,EAAE,MAAM,CAAC;IAEb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