@agent-relay/config 2.3.14 → 2.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/dist/bridge-config.d.ts +5 -5
- package/dist/bridge-config.d.ts.map +1 -1
- package/dist/bridge-config.js +16 -9
- package/dist/bridge-config.js.map +1 -1
- package/dist/cli-auth-config.d.ts +1 -1
- package/dist/cli-auth-config.js +1 -1
- package/dist/cli-registry.generated.d.ts +340 -0
- package/dist/cli-registry.generated.d.ts.map +1 -0
- package/dist/cli-registry.generated.js +297 -0
- package/dist/cli-registry.generated.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/project-namespace.d.ts +9 -9
- package/dist/project-namespace.js +3 -3
- package/dist/relay-config.d.ts +1 -1
- package/dist/relay-config.js +1 -1
- package/dist/schemas.js +1 -1
- package/dist/shadow-config.d.ts +2 -1
- package/dist/shadow-config.d.ts.map +1 -1
- package/dist/shadow-config.js.map +1 -1
- package/package.json +2 -3
package/dist/bridge-config.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export interface ProjectConfig {
|
|
|
7
7
|
path: string;
|
|
8
8
|
/** Project identifier (derived from path hash) */
|
|
9
9
|
id: string;
|
|
10
|
-
/** Socket path for this project's
|
|
10
|
+
/** Socket path for this project's broker */
|
|
11
11
|
socketPath: string;
|
|
12
12
|
/** Lead agent name (auto-generated from dirname if not specified) */
|
|
13
13
|
leadName: string;
|
|
@@ -38,15 +38,15 @@ export declare function getDefaultLeadName(projectPath: string): string;
|
|
|
38
38
|
*/
|
|
39
39
|
export declare function resolveProjects(cliPaths: string[], cliOverride?: string): ProjectConfig[];
|
|
40
40
|
/**
|
|
41
|
-
* Validate that
|
|
41
|
+
* Validate that brokers are running for all projects
|
|
42
42
|
*/
|
|
43
|
-
export declare function
|
|
43
|
+
export declare function validateBrokers(projects: ProjectConfig[]): {
|
|
44
44
|
valid: ProjectConfig[];
|
|
45
45
|
missing: ProjectConfig[];
|
|
46
46
|
};
|
|
47
47
|
/**
|
|
48
|
-
* Start
|
|
48
|
+
* Start brokers for missing projects
|
|
49
49
|
*/
|
|
50
|
-
export declare function
|
|
50
|
+
export declare function startMissingBrokers(projects: ProjectConfig[]): Promise<void>;
|
|
51
51
|
export {};
|
|
52
52
|
//# sourceMappingURL=bridge-config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bridge-config.d.ts","sourceRoot":"","sources":["../src/bridge-config.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAOH,MAAM,WAAW,aAAa;IAC5B,oCAAoC;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,kDAAkD;IAClD,EAAE,EAAE,MAAM,CAAC;IACX,4CAA4C;IAC5C,UAAU,EAAE,MAAM,CAAC;IACnB,qEAAqE;IACrE,QAAQ,EAAE,MAAM,CAAC;IACjB,wCAAwC;IACxC,GAAG,EAAE,MAAM,CAAC;CACb;AAOD,UAAU,gBAAgB;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QACxB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,GAAG,CAAC,EAAE,MAAM,CAAC;KACd,CAAC,CAAC;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,gBAAgB,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"bridge-config.d.ts","sourceRoot":"","sources":["../src/bridge-config.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAOH,MAAM,WAAW,aAAa;IAC5B,oCAAoC;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,kDAAkD;IAClD,EAAE,EAAE,MAAM,CAAC;IACX,4CAA4C;IAC5C,UAAU,EAAE,MAAM,CAAC;IACnB,qEAAqE;IACrE,QAAQ,EAAE,MAAM,CAAC;IACjB,wCAAwC;IACxC,GAAG,EAAE,MAAM,CAAC;CACb;AAOD,UAAU,gBAAgB;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QACxB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,GAAG,CAAC,EAAE,MAAM,CAAC;KACd,CAAC,CAAC;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,gBAAgB,GAAG,IAAI,CAqB1D;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAK7C;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAI9D;AAED;;GAEG;AACH,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,MAAM,EAAE,EAClB,WAAW,CAAC,EAAE,MAAM,GACnB,aAAa,EAAE,CAmDjB;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,aAAa,EAAE,GAAG;IAC1D,KAAK,EAAE,aAAa,EAAE,CAAC;IACvB,OAAO,EAAE,aAAa,EAAE,CAAC;CAC1B,CAaA;AAED;;GAEG;AACH,wBAAsB,mBAAmB,CACvC,QAAQ,EAAE,aAAa,EAAE,GACxB,OAAO,CAAC,IAAI,CAAC,CAiBf"}
|
package/dist/bridge-config.js
CHANGED
|
@@ -18,7 +18,14 @@ export function loadBridgeConfig() {
|
|
|
18
18
|
if (fs.existsSync(configPath)) {
|
|
19
19
|
try {
|
|
20
20
|
const content = fs.readFileSync(configPath, 'utf-8');
|
|
21
|
-
|
|
21
|
+
if (typeof content !== 'string') {
|
|
22
|
+
continue;
|
|
23
|
+
}
|
|
24
|
+
const trimmed = content.trim();
|
|
25
|
+
if (!trimmed) {
|
|
26
|
+
continue;
|
|
27
|
+
}
|
|
28
|
+
return JSON.parse(trimmed);
|
|
22
29
|
}
|
|
23
30
|
catch (err) {
|
|
24
31
|
console.error(`[bridge] Failed to parse ${configPath}:`, err);
|
|
@@ -91,9 +98,9 @@ export function resolveProjects(cliPaths, cliOverride) {
|
|
|
91
98
|
return projects;
|
|
92
99
|
}
|
|
93
100
|
/**
|
|
94
|
-
* Validate that
|
|
101
|
+
* Validate that brokers are running for all projects
|
|
95
102
|
*/
|
|
96
|
-
export function
|
|
103
|
+
export function validateBrokers(projects) {
|
|
97
104
|
const valid = [];
|
|
98
105
|
const missing = [];
|
|
99
106
|
for (const project of projects) {
|
|
@@ -107,23 +114,23 @@ export function validateDaemons(projects) {
|
|
|
107
114
|
return { valid, missing };
|
|
108
115
|
}
|
|
109
116
|
/**
|
|
110
|
-
* Start
|
|
117
|
+
* Start brokers for missing projects
|
|
111
118
|
*/
|
|
112
|
-
export async function
|
|
119
|
+
export async function startMissingBrokers(projects) {
|
|
113
120
|
const { execAsync } = await import('./bridge-utils.js');
|
|
114
121
|
for (const project of projects) {
|
|
115
|
-
console.log(`[bridge] Starting
|
|
122
|
+
console.log(`[bridge] Starting broker for ${project.id}...`);
|
|
116
123
|
try {
|
|
117
|
-
// Start
|
|
124
|
+
// Start broker in background
|
|
118
125
|
await execAsync(`cd "${project.path}" && agent-relay up &`, {
|
|
119
126
|
timeout: 5000,
|
|
120
127
|
});
|
|
121
128
|
// Wait for socket to appear
|
|
122
129
|
await waitForSocket(project.socketPath, 10000);
|
|
123
|
-
console.log(`[bridge]
|
|
130
|
+
console.log(`[bridge] Broker started for ${project.id}`);
|
|
124
131
|
}
|
|
125
132
|
catch (err) {
|
|
126
|
-
console.error(`[bridge] Failed to start
|
|
133
|
+
console.error(`[bridge] Failed to start broker for ${project.id}:`, err);
|
|
127
134
|
}
|
|
128
135
|
}
|
|
129
136
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bridge-config.js","sourceRoot":"","sources":["../src/bridge-config.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,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,CAAC,IAAI,uBAAuB,EAAE;gBAC1D,OAAO,EAAE,IAAI;aACd,CAAC,CAAC;YACH,4BAA4B;YAC5B,MAAM,aAAa,CAAC,OAAO,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;YAC/C,OAAO,CAAC,GAAG,CAAC,+BAA+B,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC;QAC3D,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,OAAO,CAAC,KAAK,CAAC,uCAAuC,OAAO,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;QAC3E,CAAC;IACH,CAAC;AACH,CAAC;AAGD;;GAEG;AACH,KAAK,UAAU,aAAa,CAAC,UAAkB,EAAE,SAAiB;IAChE,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAC7B,OAAO,IAAI,CAAC,GAAG,EAAE,GAAG,SAAS,GAAG,SAAS,EAAE,CAAC;QAC1C,IAAI,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC;YAC9B,OAAO;QACT,CAAC;QACD,MAAM,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;IAC7C,CAAC;IACD,MAAM,IAAI,KAAK,CAAC,+BAA+B,UAAU,EAAE,CAAC,CAAC;AAC/D,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Shared CLI Auth Configuration
|
|
3
3
|
*
|
|
4
4
|
* Provider-specific CLI commands and patterns for OAuth authentication.
|
|
5
|
-
* Used by both the cloud API and workspace
|
|
5
|
+
* Used by both the cloud API and workspace broker.
|
|
6
6
|
*/
|
|
7
7
|
/**
|
|
8
8
|
* Interactive prompt handler configuration
|
package/dist/cli-auth-config.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Shared CLI Auth Configuration
|
|
3
3
|
*
|
|
4
4
|
* Provider-specific CLI commands and patterns for OAuth authentication.
|
|
5
|
-
* Used by both the cloud API and workspace
|
|
5
|
+
* Used by both the cloud API and workspace broker.
|
|
6
6
|
*/
|
|
7
7
|
/**
|
|
8
8
|
* CLI commands and URL patterns for each provider
|
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI Registry - AUTO-GENERATED FILE - DO NOT EDIT
|
|
3
|
+
* Generated from packages/shared/cli-registry.yaml
|
|
4
|
+
* Run: npm run codegen:models
|
|
5
|
+
*
|
|
6
|
+
* This is the single source of truth for CLI tools, versions, and models.
|
|
7
|
+
* Other packages should import from @agent-relay/config.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* CLI tool versions.
|
|
11
|
+
* Update packages/shared/cli-registry.yaml to change versions.
|
|
12
|
+
*/
|
|
13
|
+
export declare const CLIVersions: {
|
|
14
|
+
/** Claude Code v2.1.50 */
|
|
15
|
+
readonly CLAUDE: "2.1.50";
|
|
16
|
+
/** Codex CLI v0.104.0 */
|
|
17
|
+
readonly CODEX: "0.104.0";
|
|
18
|
+
/** Gemini CLI v0.29.5 */
|
|
19
|
+
readonly GEMINI: "0.29.5";
|
|
20
|
+
/** Cursor v0.48.6 */
|
|
21
|
+
readonly CURSOR: "0.48.6";
|
|
22
|
+
/** Aider v0.72.1 */
|
|
23
|
+
readonly AIDER: "0.72.1";
|
|
24
|
+
/** Goose v1.0.16 */
|
|
25
|
+
readonly GOOSE: "1.0.16";
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Supported CLI tools.
|
|
29
|
+
*/
|
|
30
|
+
export declare const CLIs: {
|
|
31
|
+
readonly CLAUDE: "claude";
|
|
32
|
+
readonly CODEX: "codex";
|
|
33
|
+
readonly GEMINI: "gemini";
|
|
34
|
+
readonly CURSOR: "cursor";
|
|
35
|
+
readonly AIDER: "aider";
|
|
36
|
+
readonly GOOSE: "goose";
|
|
37
|
+
};
|
|
38
|
+
export type CLI = (typeof CLIs)[keyof typeof CLIs];
|
|
39
|
+
/**
|
|
40
|
+
* Claude Code model identifiers.
|
|
41
|
+
*/
|
|
42
|
+
export declare const ClaudeModels: {
|
|
43
|
+
/** Sonnet (default) */
|
|
44
|
+
readonly SONNET: "sonnet";
|
|
45
|
+
/** Opus */
|
|
46
|
+
readonly OPUS: "opus";
|
|
47
|
+
/** Haiku */
|
|
48
|
+
readonly HAIKU: "haiku";
|
|
49
|
+
};
|
|
50
|
+
export type ClaudeModel = (typeof ClaudeModels)[keyof typeof ClaudeModels];
|
|
51
|
+
/**
|
|
52
|
+
* Codex CLI model identifiers.
|
|
53
|
+
*/
|
|
54
|
+
export declare const CodexModels: {
|
|
55
|
+
/** GPT-5.2 Codex — Frontier agentic coding model (default) */
|
|
56
|
+
readonly GPT_5_2_CODEX: "gpt-5.2-codex";
|
|
57
|
+
/** GPT-5.3 Codex — Latest frontier agentic coding model */
|
|
58
|
+
readonly GPT_5_3_CODEX: "gpt-5.3-codex";
|
|
59
|
+
/** GPT-5.3 Codex Spark — Ultra-fast coding model */
|
|
60
|
+
readonly GPT_5_3_CODEX_SPARK: "gpt-5.3-codex-spark";
|
|
61
|
+
/** GPT-5.1 Codex Max — Deep and fast reasoning */
|
|
62
|
+
readonly GPT_5_1_CODEX_MAX: "gpt-5.1-codex-max";
|
|
63
|
+
/** GPT-5.2 — Frontier model, knowledge & reasoning */
|
|
64
|
+
readonly GPT_5_2: "gpt-5.2";
|
|
65
|
+
/** GPT-5.1 Codex Mini — Cheaper, faster */
|
|
66
|
+
readonly GPT_5_1_CODEX_MINI: "gpt-5.1-codex-mini";
|
|
67
|
+
};
|
|
68
|
+
export type CodexModel = (typeof CodexModels)[keyof typeof CodexModels];
|
|
69
|
+
/**
|
|
70
|
+
* Gemini CLI model identifiers.
|
|
71
|
+
*/
|
|
72
|
+
export declare const GeminiModels: {
|
|
73
|
+
/** Gemini 3 Pro Preview */
|
|
74
|
+
readonly GEMINI_3_PRO_PREVIEW: "gemini-3-pro-preview";
|
|
75
|
+
/** Gemini 2.5 Pro (default) */
|
|
76
|
+
readonly GEMINI_2_5_PRO: "gemini-2.5-pro";
|
|
77
|
+
/** Gemini 2.5 Flash */
|
|
78
|
+
readonly GEMINI_2_5_FLASH: "gemini-2.5-flash";
|
|
79
|
+
/** Gemini 2.5 Flash Lite */
|
|
80
|
+
readonly GEMINI_2_5_FLASH_LITE: "gemini-2.5-flash-lite";
|
|
81
|
+
};
|
|
82
|
+
export type GeminiModel = (typeof GeminiModels)[keyof typeof GeminiModels];
|
|
83
|
+
/**
|
|
84
|
+
* Cursor model identifiers.
|
|
85
|
+
*/
|
|
86
|
+
export declare const CursorModels: {
|
|
87
|
+
/** Claude 4.5 Opus (Thinking) (default) */
|
|
88
|
+
readonly OPUS_4_5_THINKING: "opus-4.5-thinking";
|
|
89
|
+
/** Claude 4.5 Opus */
|
|
90
|
+
readonly OPUS_4_5: "opus-4.5";
|
|
91
|
+
/** Claude 4.5 Sonnet */
|
|
92
|
+
readonly SONNET_4_5: "sonnet-4.5";
|
|
93
|
+
/** Claude 4.5 Sonnet (Thinking) */
|
|
94
|
+
readonly SONNET_4_5_THINKING: "sonnet-4.5-thinking";
|
|
95
|
+
/** GPT-5.2 Codex */
|
|
96
|
+
readonly GPT_5_2_CODEX: "gpt-5.2-codex";
|
|
97
|
+
/** GPT-5.2 Codex High */
|
|
98
|
+
readonly GPT_5_2_CODEX_HIGH: "gpt-5.2-codex-high";
|
|
99
|
+
/** GPT-5.2 Codex Low */
|
|
100
|
+
readonly GPT_5_2_CODEX_LOW: "gpt-5.2-codex-low";
|
|
101
|
+
/** GPT-5.2 Codex Extra High */
|
|
102
|
+
readonly GPT_5_2_CODEX_XHIGH: "gpt-5.2-codex-xhigh";
|
|
103
|
+
/** GPT-5.2 Codex Fast */
|
|
104
|
+
readonly GPT_5_2_CODEX_FAST: "gpt-5.2-codex-fast";
|
|
105
|
+
/** GPT-5.2 Codex High Fast */
|
|
106
|
+
readonly GPT_5_2_CODEX_HIGH_FAST: "gpt-5.2-codex-high-fast";
|
|
107
|
+
/** GPT-5.2 Codex Low Fast */
|
|
108
|
+
readonly GPT_5_2_CODEX_LOW_FAST: "gpt-5.2-codex-low-fast";
|
|
109
|
+
/** GPT-5.2 Codex Extra High Fast */
|
|
110
|
+
readonly GPT_5_2_CODEX_XHIGH_FAST: "gpt-5.2-codex-xhigh-fast";
|
|
111
|
+
/** GPT-5.1 Codex Max */
|
|
112
|
+
readonly GPT_5_1_CODEX_MAX: "gpt-5.1-codex-max";
|
|
113
|
+
/** GPT-5.1 Codex Max High */
|
|
114
|
+
readonly GPT_5_1_CODEX_MAX_HIGH: "gpt-5.1-codex-max-high";
|
|
115
|
+
/** GPT-5.2 */
|
|
116
|
+
readonly GPT_5_2: "gpt-5.2";
|
|
117
|
+
/** GPT-5.2 High */
|
|
118
|
+
readonly GPT_5_2_HIGH: "gpt-5.2-high";
|
|
119
|
+
/** GPT-5.1 High */
|
|
120
|
+
readonly GPT_5_1_HIGH: "gpt-5.1-high";
|
|
121
|
+
/** Gemini 3 Pro */
|
|
122
|
+
readonly GEMINI_3_PRO: "gemini-3-pro";
|
|
123
|
+
/** Gemini 3 Flash */
|
|
124
|
+
readonly GEMINI_3_FLASH: "gemini-3-flash";
|
|
125
|
+
/** Composer 1 */
|
|
126
|
+
readonly COMPOSER_1: "composer-1";
|
|
127
|
+
/** Grok */
|
|
128
|
+
readonly GROK: "grok";
|
|
129
|
+
};
|
|
130
|
+
export type CursorModel = (typeof CursorModels)[keyof typeof CursorModels];
|
|
131
|
+
/** Model option type for UI dropdowns */
|
|
132
|
+
export interface ModelOption {
|
|
133
|
+
value: string;
|
|
134
|
+
label: string;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Claude Code model options for UI dropdowns.
|
|
138
|
+
*/
|
|
139
|
+
export declare const CLAUDE_MODEL_OPTIONS: ModelOption[];
|
|
140
|
+
/**
|
|
141
|
+
* Codex CLI model options for UI dropdowns.
|
|
142
|
+
*/
|
|
143
|
+
export declare const CODEX_MODEL_OPTIONS: ModelOption[];
|
|
144
|
+
/**
|
|
145
|
+
* Gemini CLI model options for UI dropdowns.
|
|
146
|
+
*/
|
|
147
|
+
export declare const GEMINI_MODEL_OPTIONS: ModelOption[];
|
|
148
|
+
/**
|
|
149
|
+
* Cursor model options for UI dropdowns.
|
|
150
|
+
*/
|
|
151
|
+
export declare const CURSOR_MODEL_OPTIONS: ModelOption[];
|
|
152
|
+
/**
|
|
153
|
+
* All models grouped by CLI tool.
|
|
154
|
+
*
|
|
155
|
+
* @example
|
|
156
|
+
* ```typescript
|
|
157
|
+
* import { Models } from '@agent-relay/sdk';
|
|
158
|
+
*
|
|
159
|
+
* await relay.claude.spawn({ model: Models.Claude.OPUS });
|
|
160
|
+
* await relay.codex.spawn({ model: Models.Codex.GPT_5_2_CODEX });
|
|
161
|
+
* ```
|
|
162
|
+
*/
|
|
163
|
+
export declare const Models: {
|
|
164
|
+
readonly Claude: {
|
|
165
|
+
/** Sonnet (default) */
|
|
166
|
+
readonly SONNET: "sonnet";
|
|
167
|
+
/** Opus */
|
|
168
|
+
readonly OPUS: "opus";
|
|
169
|
+
/** Haiku */
|
|
170
|
+
readonly HAIKU: "haiku";
|
|
171
|
+
};
|
|
172
|
+
readonly Codex: {
|
|
173
|
+
/** GPT-5.2 Codex — Frontier agentic coding model (default) */
|
|
174
|
+
readonly GPT_5_2_CODEX: "gpt-5.2-codex";
|
|
175
|
+
/** GPT-5.3 Codex — Latest frontier agentic coding model */
|
|
176
|
+
readonly GPT_5_3_CODEX: "gpt-5.3-codex";
|
|
177
|
+
/** GPT-5.3 Codex Spark — Ultra-fast coding model */
|
|
178
|
+
readonly GPT_5_3_CODEX_SPARK: "gpt-5.3-codex-spark";
|
|
179
|
+
/** GPT-5.1 Codex Max — Deep and fast reasoning */
|
|
180
|
+
readonly GPT_5_1_CODEX_MAX: "gpt-5.1-codex-max";
|
|
181
|
+
/** GPT-5.2 — Frontier model, knowledge & reasoning */
|
|
182
|
+
readonly GPT_5_2: "gpt-5.2";
|
|
183
|
+
/** GPT-5.1 Codex Mini — Cheaper, faster */
|
|
184
|
+
readonly GPT_5_1_CODEX_MINI: "gpt-5.1-codex-mini";
|
|
185
|
+
};
|
|
186
|
+
readonly Gemini: {
|
|
187
|
+
/** Gemini 3 Pro Preview */
|
|
188
|
+
readonly GEMINI_3_PRO_PREVIEW: "gemini-3-pro-preview";
|
|
189
|
+
/** Gemini 2.5 Pro (default) */
|
|
190
|
+
readonly GEMINI_2_5_PRO: "gemini-2.5-pro";
|
|
191
|
+
/** Gemini 2.5 Flash */
|
|
192
|
+
readonly GEMINI_2_5_FLASH: "gemini-2.5-flash";
|
|
193
|
+
/** Gemini 2.5 Flash Lite */
|
|
194
|
+
readonly GEMINI_2_5_FLASH_LITE: "gemini-2.5-flash-lite";
|
|
195
|
+
};
|
|
196
|
+
readonly Cursor: {
|
|
197
|
+
/** Claude 4.5 Opus (Thinking) (default) */
|
|
198
|
+
readonly OPUS_4_5_THINKING: "opus-4.5-thinking";
|
|
199
|
+
/** Claude 4.5 Opus */
|
|
200
|
+
readonly OPUS_4_5: "opus-4.5";
|
|
201
|
+
/** Claude 4.5 Sonnet */
|
|
202
|
+
readonly SONNET_4_5: "sonnet-4.5";
|
|
203
|
+
/** Claude 4.5 Sonnet (Thinking) */
|
|
204
|
+
readonly SONNET_4_5_THINKING: "sonnet-4.5-thinking";
|
|
205
|
+
/** GPT-5.2 Codex */
|
|
206
|
+
readonly GPT_5_2_CODEX: "gpt-5.2-codex";
|
|
207
|
+
/** GPT-5.2 Codex High */
|
|
208
|
+
readonly GPT_5_2_CODEX_HIGH: "gpt-5.2-codex-high";
|
|
209
|
+
/** GPT-5.2 Codex Low */
|
|
210
|
+
readonly GPT_5_2_CODEX_LOW: "gpt-5.2-codex-low";
|
|
211
|
+
/** GPT-5.2 Codex Extra High */
|
|
212
|
+
readonly GPT_5_2_CODEX_XHIGH: "gpt-5.2-codex-xhigh";
|
|
213
|
+
/** GPT-5.2 Codex Fast */
|
|
214
|
+
readonly GPT_5_2_CODEX_FAST: "gpt-5.2-codex-fast";
|
|
215
|
+
/** GPT-5.2 Codex High Fast */
|
|
216
|
+
readonly GPT_5_2_CODEX_HIGH_FAST: "gpt-5.2-codex-high-fast";
|
|
217
|
+
/** GPT-5.2 Codex Low Fast */
|
|
218
|
+
readonly GPT_5_2_CODEX_LOW_FAST: "gpt-5.2-codex-low-fast";
|
|
219
|
+
/** GPT-5.2 Codex Extra High Fast */
|
|
220
|
+
readonly GPT_5_2_CODEX_XHIGH_FAST: "gpt-5.2-codex-xhigh-fast";
|
|
221
|
+
/** GPT-5.1 Codex Max */
|
|
222
|
+
readonly GPT_5_1_CODEX_MAX: "gpt-5.1-codex-max";
|
|
223
|
+
/** GPT-5.1 Codex Max High */
|
|
224
|
+
readonly GPT_5_1_CODEX_MAX_HIGH: "gpt-5.1-codex-max-high";
|
|
225
|
+
/** GPT-5.2 */
|
|
226
|
+
readonly GPT_5_2: "gpt-5.2";
|
|
227
|
+
/** GPT-5.2 High */
|
|
228
|
+
readonly GPT_5_2_HIGH: "gpt-5.2-high";
|
|
229
|
+
/** GPT-5.1 High */
|
|
230
|
+
readonly GPT_5_1_HIGH: "gpt-5.1-high";
|
|
231
|
+
/** Gemini 3 Pro */
|
|
232
|
+
readonly GEMINI_3_PRO: "gemini-3-pro";
|
|
233
|
+
/** Gemini 3 Flash */
|
|
234
|
+
readonly GEMINI_3_FLASH: "gemini-3-flash";
|
|
235
|
+
/** Composer 1 */
|
|
236
|
+
readonly COMPOSER_1: "composer-1";
|
|
237
|
+
/** Grok */
|
|
238
|
+
readonly GROK: "grok";
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
/**
|
|
242
|
+
* All model options grouped by CLI tool (for UI dropdowns).
|
|
243
|
+
*
|
|
244
|
+
* @example
|
|
245
|
+
* ```typescript
|
|
246
|
+
* import { ModelOptions } from '@agent-relay/sdk';
|
|
247
|
+
*
|
|
248
|
+
* <select>
|
|
249
|
+
* {ModelOptions.Claude.map(m => <option key={m.value} value={m.value}>{m.label}</option>)}
|
|
250
|
+
* </select>
|
|
251
|
+
* ```
|
|
252
|
+
*/
|
|
253
|
+
export declare const ModelOptions: {
|
|
254
|
+
readonly Claude: ModelOption[];
|
|
255
|
+
readonly Codex: ModelOption[];
|
|
256
|
+
readonly Gemini: ModelOption[];
|
|
257
|
+
readonly Cursor: ModelOption[];
|
|
258
|
+
};
|
|
259
|
+
/**
|
|
260
|
+
* Swarm patterns for multi-agent workflows.
|
|
261
|
+
*/
|
|
262
|
+
export declare const SwarmPatterns: {
|
|
263
|
+
/** Central coordinator distributes tasks to workers */
|
|
264
|
+
readonly HUB_SPOKE: "hub-spoke";
|
|
265
|
+
/** Directed acyclic graph with dependencies */
|
|
266
|
+
readonly DAG: "dag";
|
|
267
|
+
/** Parallel execution across multiple agents */
|
|
268
|
+
readonly FAN_OUT: "fan-out";
|
|
269
|
+
/** Sequential processing through stages */
|
|
270
|
+
readonly PIPELINE: "pipeline";
|
|
271
|
+
/** Agents reach agreement before proceeding */
|
|
272
|
+
readonly CONSENSUS: "consensus";
|
|
273
|
+
/** Fully connected peer-to-peer communication */
|
|
274
|
+
readonly MESH: "mesh";
|
|
275
|
+
/** Sequential handoff between agents */
|
|
276
|
+
readonly HANDOFF: "handoff";
|
|
277
|
+
/** Cascading delegation */
|
|
278
|
+
readonly CASCADE: "cascade";
|
|
279
|
+
/** Agents debate to reach conclusion */
|
|
280
|
+
readonly DEBATE: "debate";
|
|
281
|
+
/** Tree-structured coordination */
|
|
282
|
+
readonly HIERARCHICAL: "hierarchical";
|
|
283
|
+
};
|
|
284
|
+
/**
|
|
285
|
+
* Full CLI registry for relay-cloud and other services.
|
|
286
|
+
*/
|
|
287
|
+
export declare const CLIRegistry: {
|
|
288
|
+
readonly claude: {
|
|
289
|
+
readonly name: "Claude Code";
|
|
290
|
+
readonly package: "@anthropic-ai/claude-code";
|
|
291
|
+
readonly version: "2.1.50";
|
|
292
|
+
readonly install: "npm install -g @anthropic-ai/claude-code";
|
|
293
|
+
readonly npmLink: "https://www.npmjs.com/package/@anthropic-ai";
|
|
294
|
+
};
|
|
295
|
+
readonly codex: {
|
|
296
|
+
readonly name: "Codex CLI";
|
|
297
|
+
readonly package: "@openai/codex";
|
|
298
|
+
readonly version: "0.104.0";
|
|
299
|
+
readonly install: "npm install -g @openai/codex";
|
|
300
|
+
readonly npmLink: "https://www.npmjs.com/package/@openai/codex";
|
|
301
|
+
};
|
|
302
|
+
readonly gemini: {
|
|
303
|
+
readonly name: "Gemini CLI";
|
|
304
|
+
readonly package: "@google/gemini-cli";
|
|
305
|
+
readonly version: "0.29.5";
|
|
306
|
+
readonly install: "npm install -g @google/gemini-cli";
|
|
307
|
+
readonly npmLink: "https://www.npmjs.com/package/@google/gemini-cli";
|
|
308
|
+
};
|
|
309
|
+
readonly cursor: {
|
|
310
|
+
readonly name: "Cursor";
|
|
311
|
+
readonly package: "cursor";
|
|
312
|
+
readonly version: "0.48.6";
|
|
313
|
+
readonly install: "Download from cursor.com";
|
|
314
|
+
readonly npmLink: undefined;
|
|
315
|
+
};
|
|
316
|
+
readonly aider: {
|
|
317
|
+
readonly name: "Aider";
|
|
318
|
+
readonly package: "aider-chat";
|
|
319
|
+
readonly version: "0.72.1";
|
|
320
|
+
readonly install: "pip install aider-chat";
|
|
321
|
+
readonly npmLink: undefined;
|
|
322
|
+
};
|
|
323
|
+
readonly goose: {
|
|
324
|
+
readonly name: "Goose";
|
|
325
|
+
readonly package: "goose-ai";
|
|
326
|
+
readonly version: "1.0.16";
|
|
327
|
+
readonly install: "pip install goose-ai";
|
|
328
|
+
readonly npmLink: undefined;
|
|
329
|
+
};
|
|
330
|
+
};
|
|
331
|
+
/**
|
|
332
|
+
* Default model for each CLI tool.
|
|
333
|
+
*/
|
|
334
|
+
export declare const DefaultModels: {
|
|
335
|
+
readonly claude: "sonnet";
|
|
336
|
+
readonly codex: "gpt-5.2-codex";
|
|
337
|
+
readonly gemini: "gemini-2.5-pro";
|
|
338
|
+
readonly cursor: "opus-4.5-thinking";
|
|
339
|
+
};
|
|
340
|
+
//# sourceMappingURL=cli-registry.generated.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli-registry.generated.d.ts","sourceRoot":"","sources":["../src/cli-registry.generated.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;GAGG;AACH,eAAO,MAAM,WAAW;IACtB,0BAA0B;;IAE1B,yBAAyB;;IAEzB,yBAAyB;;IAEzB,qBAAqB;;IAErB,oBAAoB;;IAEpB,oBAAoB;;CAEZ,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,IAAI;;;;;;;CAOP,CAAC;AAEX,MAAM,MAAM,GAAG,GAAG,CAAC,OAAO,IAAI,CAAC,CAAC,MAAM,OAAO,IAAI,CAAC,CAAC;AAEnD;;GAEG;AACH,eAAO,MAAM,YAAY;IACvB,uBAAuB;;IAEvB,WAAW;;IAEX,YAAY;;CAEJ,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AAE3E;;GAEG;AACH,eAAO,MAAM,WAAW;IACtB,8DAA8D;;IAE9D,2DAA2D;;IAE3D,oDAAoD;;IAEpD,kDAAkD;;IAElD,sDAAsD;;IAEtD,2CAA2C;;CAEnC,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AAExE;;GAEG;AACH,eAAO,MAAM,YAAY;IACvB,2BAA2B;;IAE3B,+BAA+B;;IAE/B,uBAAuB;;IAEvB,4BAA4B;;CAEpB,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AAE3E;;GAEG;AACH,eAAO,MAAM,YAAY;IACvB,2CAA2C;;IAE3C,sBAAsB;;IAEtB,w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EpC,wBAAwB;;QAExB,6BAA6B;;QAE7B,cAAc;;QAEd,mBAAmB;;QAEnB,mBAAmB;;QAEnB,mBAAmB;;QAEnB,qBAAqB;;QAErB,iBAAiB;;QAEjB,WAAW;;;CAsFH,CAAC;AAEX;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,YAAY;;;;;CAKf,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,aAAa;IACxB,uDAAuD;;IAEvD,+CAA+C;;IAE/C,gDAAgD;;IAEhD,2CAA2C;;IAE3C,+CAA+C;;IAE/C,iDAAiD;;IAEjD,wCAAwC;;IAExC,2BAA2B;;IAE3B,wCAAwC;;IAExC,mCAAmC;;CAE3B,CAAC;AAIX;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2Cd,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;CAKhB,CAAC"}
|
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI Registry - AUTO-GENERATED FILE - DO NOT EDIT
|
|
3
|
+
* Generated from packages/shared/cli-registry.yaml
|
|
4
|
+
* Run: npm run codegen:models
|
|
5
|
+
*
|
|
6
|
+
* This is the single source of truth for CLI tools, versions, and models.
|
|
7
|
+
* Other packages should import from @agent-relay/config.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* CLI tool versions.
|
|
11
|
+
* Update packages/shared/cli-registry.yaml to change versions.
|
|
12
|
+
*/
|
|
13
|
+
export const CLIVersions = {
|
|
14
|
+
/** Claude Code v2.1.50 */
|
|
15
|
+
CLAUDE: '2.1.50',
|
|
16
|
+
/** Codex CLI v0.104.0 */
|
|
17
|
+
CODEX: '0.104.0',
|
|
18
|
+
/** Gemini CLI v0.29.5 */
|
|
19
|
+
GEMINI: '0.29.5',
|
|
20
|
+
/** Cursor v0.48.6 */
|
|
21
|
+
CURSOR: '0.48.6',
|
|
22
|
+
/** Aider v0.72.1 */
|
|
23
|
+
AIDER: '0.72.1',
|
|
24
|
+
/** Goose v1.0.16 */
|
|
25
|
+
GOOSE: '1.0.16',
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Supported CLI tools.
|
|
29
|
+
*/
|
|
30
|
+
export const CLIs = {
|
|
31
|
+
CLAUDE: 'claude',
|
|
32
|
+
CODEX: 'codex',
|
|
33
|
+
GEMINI: 'gemini',
|
|
34
|
+
CURSOR: 'cursor',
|
|
35
|
+
AIDER: 'aider',
|
|
36
|
+
GOOSE: 'goose',
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Claude Code model identifiers.
|
|
40
|
+
*/
|
|
41
|
+
export const ClaudeModels = {
|
|
42
|
+
/** Sonnet (default) */
|
|
43
|
+
SONNET: 'sonnet',
|
|
44
|
+
/** Opus */
|
|
45
|
+
OPUS: 'opus',
|
|
46
|
+
/** Haiku */
|
|
47
|
+
HAIKU: 'haiku',
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Codex CLI model identifiers.
|
|
51
|
+
*/
|
|
52
|
+
export const CodexModels = {
|
|
53
|
+
/** GPT-5.2 Codex — Frontier agentic coding model (default) */
|
|
54
|
+
GPT_5_2_CODEX: 'gpt-5.2-codex',
|
|
55
|
+
/** GPT-5.3 Codex — Latest frontier agentic coding model */
|
|
56
|
+
GPT_5_3_CODEX: 'gpt-5.3-codex',
|
|
57
|
+
/** GPT-5.3 Codex Spark — Ultra-fast coding model */
|
|
58
|
+
GPT_5_3_CODEX_SPARK: 'gpt-5.3-codex-spark',
|
|
59
|
+
/** GPT-5.1 Codex Max — Deep and fast reasoning */
|
|
60
|
+
GPT_5_1_CODEX_MAX: 'gpt-5.1-codex-max',
|
|
61
|
+
/** GPT-5.2 — Frontier model, knowledge & reasoning */
|
|
62
|
+
GPT_5_2: 'gpt-5.2',
|
|
63
|
+
/** GPT-5.1 Codex Mini — Cheaper, faster */
|
|
64
|
+
GPT_5_1_CODEX_MINI: 'gpt-5.1-codex-mini',
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* Gemini CLI model identifiers.
|
|
68
|
+
*/
|
|
69
|
+
export const GeminiModels = {
|
|
70
|
+
/** Gemini 3 Pro Preview */
|
|
71
|
+
GEMINI_3_PRO_PREVIEW: 'gemini-3-pro-preview',
|
|
72
|
+
/** Gemini 2.5 Pro (default) */
|
|
73
|
+
GEMINI_2_5_PRO: 'gemini-2.5-pro',
|
|
74
|
+
/** Gemini 2.5 Flash */
|
|
75
|
+
GEMINI_2_5_FLASH: 'gemini-2.5-flash',
|
|
76
|
+
/** Gemini 2.5 Flash Lite */
|
|
77
|
+
GEMINI_2_5_FLASH_LITE: 'gemini-2.5-flash-lite',
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* Cursor model identifiers.
|
|
81
|
+
*/
|
|
82
|
+
export const CursorModels = {
|
|
83
|
+
/** Claude 4.5 Opus (Thinking) (default) */
|
|
84
|
+
OPUS_4_5_THINKING: 'opus-4.5-thinking',
|
|
85
|
+
/** Claude 4.5 Opus */
|
|
86
|
+
OPUS_4_5: 'opus-4.5',
|
|
87
|
+
/** Claude 4.5 Sonnet */
|
|
88
|
+
SONNET_4_5: 'sonnet-4.5',
|
|
89
|
+
/** Claude 4.5 Sonnet (Thinking) */
|
|
90
|
+
SONNET_4_5_THINKING: 'sonnet-4.5-thinking',
|
|
91
|
+
/** GPT-5.2 Codex */
|
|
92
|
+
GPT_5_2_CODEX: 'gpt-5.2-codex',
|
|
93
|
+
/** GPT-5.2 Codex High */
|
|
94
|
+
GPT_5_2_CODEX_HIGH: 'gpt-5.2-codex-high',
|
|
95
|
+
/** GPT-5.2 Codex Low */
|
|
96
|
+
GPT_5_2_CODEX_LOW: 'gpt-5.2-codex-low',
|
|
97
|
+
/** GPT-5.2 Codex Extra High */
|
|
98
|
+
GPT_5_2_CODEX_XHIGH: 'gpt-5.2-codex-xhigh',
|
|
99
|
+
/** GPT-5.2 Codex Fast */
|
|
100
|
+
GPT_5_2_CODEX_FAST: 'gpt-5.2-codex-fast',
|
|
101
|
+
/** GPT-5.2 Codex High Fast */
|
|
102
|
+
GPT_5_2_CODEX_HIGH_FAST: 'gpt-5.2-codex-high-fast',
|
|
103
|
+
/** GPT-5.2 Codex Low Fast */
|
|
104
|
+
GPT_5_2_CODEX_LOW_FAST: 'gpt-5.2-codex-low-fast',
|
|
105
|
+
/** GPT-5.2 Codex Extra High Fast */
|
|
106
|
+
GPT_5_2_CODEX_XHIGH_FAST: 'gpt-5.2-codex-xhigh-fast',
|
|
107
|
+
/** GPT-5.1 Codex Max */
|
|
108
|
+
GPT_5_1_CODEX_MAX: 'gpt-5.1-codex-max',
|
|
109
|
+
/** GPT-5.1 Codex Max High */
|
|
110
|
+
GPT_5_1_CODEX_MAX_HIGH: 'gpt-5.1-codex-max-high',
|
|
111
|
+
/** GPT-5.2 */
|
|
112
|
+
GPT_5_2: 'gpt-5.2',
|
|
113
|
+
/** GPT-5.2 High */
|
|
114
|
+
GPT_5_2_HIGH: 'gpt-5.2-high',
|
|
115
|
+
/** GPT-5.1 High */
|
|
116
|
+
GPT_5_1_HIGH: 'gpt-5.1-high',
|
|
117
|
+
/** Gemini 3 Pro */
|
|
118
|
+
GEMINI_3_PRO: 'gemini-3-pro',
|
|
119
|
+
/** Gemini 3 Flash */
|
|
120
|
+
GEMINI_3_FLASH: 'gemini-3-flash',
|
|
121
|
+
/** Composer 1 */
|
|
122
|
+
COMPOSER_1: 'composer-1',
|
|
123
|
+
/** Grok */
|
|
124
|
+
GROK: 'grok',
|
|
125
|
+
};
|
|
126
|
+
/**
|
|
127
|
+
* Claude Code model options for UI dropdowns.
|
|
128
|
+
*/
|
|
129
|
+
export const CLAUDE_MODEL_OPTIONS = [
|
|
130
|
+
{ value: 'sonnet', label: 'Sonnet' },
|
|
131
|
+
{ value: 'opus', label: 'Opus' },
|
|
132
|
+
{ value: 'haiku', label: 'Haiku' },
|
|
133
|
+
];
|
|
134
|
+
/**
|
|
135
|
+
* Codex CLI model options for UI dropdowns.
|
|
136
|
+
*/
|
|
137
|
+
export const CODEX_MODEL_OPTIONS = [
|
|
138
|
+
{ value: 'gpt-5.2-codex', label: 'GPT-5.2 Codex — Frontier agentic coding model' },
|
|
139
|
+
{ value: 'gpt-5.3-codex', label: 'GPT-5.3 Codex — Latest frontier agentic coding model' },
|
|
140
|
+
{ value: 'gpt-5.3-codex-spark', label: 'GPT-5.3 Codex Spark — Ultra-fast coding model' },
|
|
141
|
+
{ value: 'gpt-5.1-codex-max', label: 'GPT-5.1 Codex Max — Deep and fast reasoning' },
|
|
142
|
+
{ value: 'gpt-5.2', label: 'GPT-5.2 — Frontier model, knowledge & reasoning' },
|
|
143
|
+
{ value: 'gpt-5.1-codex-mini', label: 'GPT-5.1 Codex Mini — Cheaper, faster' },
|
|
144
|
+
];
|
|
145
|
+
/**
|
|
146
|
+
* Gemini CLI model options for UI dropdowns.
|
|
147
|
+
*/
|
|
148
|
+
export const GEMINI_MODEL_OPTIONS = [
|
|
149
|
+
{ value: 'gemini-3-pro-preview', label: 'Gemini 3 Pro Preview' },
|
|
150
|
+
{ value: 'gemini-2.5-pro', label: 'Gemini 2.5 Pro' },
|
|
151
|
+
{ value: 'gemini-2.5-flash', label: 'Gemini 2.5 Flash' },
|
|
152
|
+
{ value: 'gemini-2.5-flash-lite', label: 'Gemini 2.5 Flash Lite' },
|
|
153
|
+
];
|
|
154
|
+
/**
|
|
155
|
+
* Cursor model options for UI dropdowns.
|
|
156
|
+
*/
|
|
157
|
+
export const CURSOR_MODEL_OPTIONS = [
|
|
158
|
+
{ value: 'opus-4.5-thinking', label: 'Claude 4.5 Opus (Thinking)' },
|
|
159
|
+
{ value: 'opus-4.5', label: 'Claude 4.5 Opus' },
|
|
160
|
+
{ value: 'sonnet-4.5', label: 'Claude 4.5 Sonnet' },
|
|
161
|
+
{ value: 'sonnet-4.5-thinking', label: 'Claude 4.5 Sonnet (Thinking)' },
|
|
162
|
+
{ value: 'gpt-5.2-codex', label: 'GPT-5.2 Codex' },
|
|
163
|
+
{ value: 'gpt-5.2-codex-high', label: 'GPT-5.2 Codex High' },
|
|
164
|
+
{ value: 'gpt-5.2-codex-low', label: 'GPT-5.2 Codex Low' },
|
|
165
|
+
{ value: 'gpt-5.2-codex-xhigh', label: 'GPT-5.2 Codex Extra High' },
|
|
166
|
+
{ value: 'gpt-5.2-codex-fast', label: 'GPT-5.2 Codex Fast' },
|
|
167
|
+
{ value: 'gpt-5.2-codex-high-fast', label: 'GPT-5.2 Codex High Fast' },
|
|
168
|
+
{ value: 'gpt-5.2-codex-low-fast', label: 'GPT-5.2 Codex Low Fast' },
|
|
169
|
+
{ value: 'gpt-5.2-codex-xhigh-fast', label: 'GPT-5.2 Codex Extra High Fast' },
|
|
170
|
+
{ value: 'gpt-5.1-codex-max', label: 'GPT-5.1 Codex Max' },
|
|
171
|
+
{ value: 'gpt-5.1-codex-max-high', label: 'GPT-5.1 Codex Max High' },
|
|
172
|
+
{ value: 'gpt-5.2', label: 'GPT-5.2' },
|
|
173
|
+
{ value: 'gpt-5.2-high', label: 'GPT-5.2 High' },
|
|
174
|
+
{ value: 'gpt-5.1-high', label: 'GPT-5.1 High' },
|
|
175
|
+
{ value: 'gemini-3-pro', label: 'Gemini 3 Pro' },
|
|
176
|
+
{ value: 'gemini-3-flash', label: 'Gemini 3 Flash' },
|
|
177
|
+
{ value: 'composer-1', label: 'Composer 1' },
|
|
178
|
+
{ value: 'grok', label: 'Grok' },
|
|
179
|
+
];
|
|
180
|
+
/**
|
|
181
|
+
* All models grouped by CLI tool.
|
|
182
|
+
*
|
|
183
|
+
* @example
|
|
184
|
+
* ```typescript
|
|
185
|
+
* import { Models } from '@agent-relay/sdk';
|
|
186
|
+
*
|
|
187
|
+
* await relay.claude.spawn({ model: Models.Claude.OPUS });
|
|
188
|
+
* await relay.codex.spawn({ model: Models.Codex.GPT_5_2_CODEX });
|
|
189
|
+
* ```
|
|
190
|
+
*/
|
|
191
|
+
export const Models = {
|
|
192
|
+
Claude: ClaudeModels,
|
|
193
|
+
Codex: CodexModels,
|
|
194
|
+
Gemini: GeminiModels,
|
|
195
|
+
Cursor: CursorModels,
|
|
196
|
+
};
|
|
197
|
+
/**
|
|
198
|
+
* All model options grouped by CLI tool (for UI dropdowns).
|
|
199
|
+
*
|
|
200
|
+
* @example
|
|
201
|
+
* ```typescript
|
|
202
|
+
* import { ModelOptions } from '@agent-relay/sdk';
|
|
203
|
+
*
|
|
204
|
+
* <select>
|
|
205
|
+
* {ModelOptions.Claude.map(m => <option key={m.value} value={m.value}>{m.label}</option>)}
|
|
206
|
+
* </select>
|
|
207
|
+
* ```
|
|
208
|
+
*/
|
|
209
|
+
export const ModelOptions = {
|
|
210
|
+
Claude: CLAUDE_MODEL_OPTIONS,
|
|
211
|
+
Codex: CODEX_MODEL_OPTIONS,
|
|
212
|
+
Gemini: GEMINI_MODEL_OPTIONS,
|
|
213
|
+
Cursor: CURSOR_MODEL_OPTIONS,
|
|
214
|
+
};
|
|
215
|
+
/**
|
|
216
|
+
* Swarm patterns for multi-agent workflows.
|
|
217
|
+
*/
|
|
218
|
+
export const SwarmPatterns = {
|
|
219
|
+
/** Central coordinator distributes tasks to workers */
|
|
220
|
+
HUB_SPOKE: 'hub-spoke',
|
|
221
|
+
/** Directed acyclic graph with dependencies */
|
|
222
|
+
DAG: 'dag',
|
|
223
|
+
/** Parallel execution across multiple agents */
|
|
224
|
+
FAN_OUT: 'fan-out',
|
|
225
|
+
/** Sequential processing through stages */
|
|
226
|
+
PIPELINE: 'pipeline',
|
|
227
|
+
/** Agents reach agreement before proceeding */
|
|
228
|
+
CONSENSUS: 'consensus',
|
|
229
|
+
/** Fully connected peer-to-peer communication */
|
|
230
|
+
MESH: 'mesh',
|
|
231
|
+
/** Sequential handoff between agents */
|
|
232
|
+
HANDOFF: 'handoff',
|
|
233
|
+
/** Cascading delegation */
|
|
234
|
+
CASCADE: 'cascade',
|
|
235
|
+
/** Agents debate to reach conclusion */
|
|
236
|
+
DEBATE: 'debate',
|
|
237
|
+
/** Tree-structured coordination */
|
|
238
|
+
HIERARCHICAL: 'hierarchical',
|
|
239
|
+
};
|
|
240
|
+
// Note: SwarmPattern type is defined in workflows/types.ts to avoid duplication
|
|
241
|
+
/**
|
|
242
|
+
* Full CLI registry for relay-cloud and other services.
|
|
243
|
+
*/
|
|
244
|
+
export const CLIRegistry = {
|
|
245
|
+
claude: {
|
|
246
|
+
name: 'Claude Code',
|
|
247
|
+
package: '@anthropic-ai/claude-code',
|
|
248
|
+
version: '2.1.50',
|
|
249
|
+
install: 'npm install -g @anthropic-ai/claude-code',
|
|
250
|
+
npmLink: 'https://www.npmjs.com/package/@anthropic-ai',
|
|
251
|
+
},
|
|
252
|
+
codex: {
|
|
253
|
+
name: 'Codex CLI',
|
|
254
|
+
package: '@openai/codex',
|
|
255
|
+
version: '0.104.0',
|
|
256
|
+
install: 'npm install -g @openai/codex',
|
|
257
|
+
npmLink: 'https://www.npmjs.com/package/@openai/codex',
|
|
258
|
+
},
|
|
259
|
+
gemini: {
|
|
260
|
+
name: 'Gemini CLI',
|
|
261
|
+
package: '@google/gemini-cli',
|
|
262
|
+
version: '0.29.5',
|
|
263
|
+
install: 'npm install -g @google/gemini-cli',
|
|
264
|
+
npmLink: 'https://www.npmjs.com/package/@google/gemini-cli',
|
|
265
|
+
},
|
|
266
|
+
cursor: {
|
|
267
|
+
name: 'Cursor',
|
|
268
|
+
package: 'cursor',
|
|
269
|
+
version: '0.48.6',
|
|
270
|
+
install: 'Download from cursor.com',
|
|
271
|
+
npmLink: undefined,
|
|
272
|
+
},
|
|
273
|
+
aider: {
|
|
274
|
+
name: 'Aider',
|
|
275
|
+
package: 'aider-chat',
|
|
276
|
+
version: '0.72.1',
|
|
277
|
+
install: 'pip install aider-chat',
|
|
278
|
+
npmLink: undefined,
|
|
279
|
+
},
|
|
280
|
+
goose: {
|
|
281
|
+
name: 'Goose',
|
|
282
|
+
package: 'goose-ai',
|
|
283
|
+
version: '1.0.16',
|
|
284
|
+
install: 'pip install goose-ai',
|
|
285
|
+
npmLink: undefined,
|
|
286
|
+
},
|
|
287
|
+
};
|
|
288
|
+
/**
|
|
289
|
+
* Default model for each CLI tool.
|
|
290
|
+
*/
|
|
291
|
+
export const DefaultModels = {
|
|
292
|
+
claude: 'sonnet',
|
|
293
|
+
codex: 'gpt-5.2-codex',
|
|
294
|
+
gemini: 'gemini-2.5-pro',
|
|
295
|
+
cursor: 'opus-4.5-thinking',
|
|
296
|
+
};
|
|
297
|
+
//# sourceMappingURL=cli-registry.generated.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli-registry.generated.js","sourceRoot":"","sources":["../src/cli-registry.generated.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,0BAA0B;IAC1B,MAAM,EAAE,QAAQ;IAChB,yBAAyB;IACzB,KAAK,EAAE,SAAS;IAChB,yBAAyB;IACzB,MAAM,EAAE,QAAQ;IAChB,qBAAqB;IACrB,MAAM,EAAE,QAAQ;IAChB,oBAAoB;IACpB,KAAK,EAAE,QAAQ;IACf,oBAAoB;IACpB,KAAK,EAAE,QAAQ;CACP,CAAC;AAEX;;GAEG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;CACN,CAAC;AAIX;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,uBAAuB;IACvB,MAAM,EAAE,QAAQ;IAChB,WAAW;IACX,IAAI,EAAE,MAAM;IACZ,YAAY;IACZ,KAAK,EAAE,OAAO;CACN,CAAC;AAIX;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,8DAA8D;IAC9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,SAAS;QAClB,OAAO,EAAE,8BAA8B;QACvC,OAAO,EAAE,6CAA6C;KACvD;IACD,MAAM,EAAE;QACN,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,oBAAoB;QAC7B,OAAO,EAAE,QAAQ;QACjB,OAAO,EAAE,mCAAmC;QAC5C,OAAO,EAAE,kDAAkD;KAC5D;IACD,MAAM,EAAE;QACN,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,QAAQ;QACjB,OAAO,EAAE,QAAQ;QACjB,OAAO,EAAE,0BAA0B;QACnC,OAAO,EAAE,SAAS;KACnB;IACD,KAAK,EAAE;QACL,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,YAAY;QACrB,OAAO,EAAE,QAAQ;QACjB,OAAO,EAAE,wBAAwB;QACjC,OAAO,EAAE,SAAS;KACnB;IACD,KAAK,EAAE;QACL,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,UAAU;QACnB,OAAO,EAAE,QAAQ;QACjB,OAAO,EAAE,sBAAsB;QAC/B,OAAO,EAAE,SAAS;KACnB;CACO,CAAC;AAEX;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,eAAe;IACtB,MAAM,EAAE,gBAAgB;IACxB,MAAM,EAAE,mBAAmB;CACnB,CAAC"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC"}
|
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC"}
|
|
@@ -75,31 +75,31 @@ export declare function detectWorkspacePath(baseDir: string): string;
|
|
|
75
75
|
*/
|
|
76
76
|
export declare function listWorkspaceRepos(baseDir: string): string[];
|
|
77
77
|
/**
|
|
78
|
-
* Runtime configuration that the
|
|
78
|
+
* Runtime configuration that the broker writes when it starts.
|
|
79
79
|
* CLI commands can read this to use matching storage configuration.
|
|
80
80
|
*/
|
|
81
81
|
export interface RuntimeConfig {
|
|
82
|
-
/** Storage type currently in use by the
|
|
82
|
+
/** Storage type currently in use by the broker */
|
|
83
83
|
storageType?: string;
|
|
84
|
-
/**
|
|
85
|
-
|
|
86
|
-
/** Timestamp when
|
|
84
|
+
/** Broker PID */
|
|
85
|
+
brokerPid?: number;
|
|
86
|
+
/** Timestamp when broker started */
|
|
87
87
|
startedAt?: string;
|
|
88
|
-
/**
|
|
88
|
+
/** Broker version */
|
|
89
89
|
version?: string;
|
|
90
90
|
}
|
|
91
91
|
/**
|
|
92
92
|
* Save runtime configuration for the current project.
|
|
93
|
-
* Called by the
|
|
93
|
+
* Called by the broker when it starts.
|
|
94
94
|
*/
|
|
95
95
|
export declare function saveRuntimeConfig(config: RuntimeConfig, projectRoot?: string): void;
|
|
96
96
|
/**
|
|
97
97
|
* Load runtime configuration for the current project.
|
|
98
|
-
* Returns undefined if no runtime config exists or the
|
|
98
|
+
* Returns undefined if no runtime config exists or the broker isn't running.
|
|
99
99
|
*/
|
|
100
100
|
export declare function loadRuntimeConfig(projectRoot?: string): RuntimeConfig | undefined;
|
|
101
101
|
/**
|
|
102
|
-
* Clear runtime configuration (called when
|
|
102
|
+
* Clear runtime configuration (called when broker stops).
|
|
103
103
|
*/
|
|
104
104
|
export declare function clearRuntimeConfig(projectRoot?: string): void;
|
|
105
105
|
//# sourceMappingURL=project-namespace.d.ts.map
|
|
@@ -288,7 +288,7 @@ export function listWorkspaceRepos(baseDir) {
|
|
|
288
288
|
const RUNTIME_CONFIG_FILE = 'runtime.json';
|
|
289
289
|
/**
|
|
290
290
|
* Save runtime configuration for the current project.
|
|
291
|
-
* Called by the
|
|
291
|
+
* Called by the broker when it starts.
|
|
292
292
|
*/
|
|
293
293
|
export function saveRuntimeConfig(config, projectRoot) {
|
|
294
294
|
const paths = getProjectPaths(projectRoot);
|
|
@@ -301,7 +301,7 @@ export function saveRuntimeConfig(config, projectRoot) {
|
|
|
301
301
|
}
|
|
302
302
|
/**
|
|
303
303
|
* Load runtime configuration for the current project.
|
|
304
|
-
* Returns undefined if no runtime config exists or the
|
|
304
|
+
* Returns undefined if no runtime config exists or the broker isn't running.
|
|
305
305
|
*/
|
|
306
306
|
export function loadRuntimeConfig(projectRoot) {
|
|
307
307
|
const paths = getProjectPaths(projectRoot);
|
|
@@ -318,7 +318,7 @@ export function loadRuntimeConfig(projectRoot) {
|
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
/**
|
|
321
|
-
* Clear runtime configuration (called when
|
|
321
|
+
* Clear runtime configuration (called when broker stops).
|
|
322
322
|
*/
|
|
323
323
|
export function clearRuntimeConfig(projectRoot) {
|
|
324
324
|
const paths = getProjectPaths(projectRoot);
|
package/dist/relay-config.d.ts
CHANGED
|
@@ -28,6 +28,6 @@ export declare const LOW_LATENCY_CONFIG: {
|
|
|
28
28
|
readonly outputStabilityTimeoutMs: 300;
|
|
29
29
|
readonly outputStabilityPollMs: 100;
|
|
30
30
|
};
|
|
31
|
-
/** Default Unix socket path for
|
|
31
|
+
/** Default Unix socket path for broker communication */
|
|
32
32
|
export declare const DEFAULT_SOCKET_PATH = "/tmp/agent-relay.sock";
|
|
33
33
|
//# sourceMappingURL=relay-config.d.ts.map
|
package/dist/relay-config.js
CHANGED
|
@@ -28,6 +28,6 @@ export const LOW_LATENCY_CONFIG = {
|
|
|
28
28
|
outputStabilityTimeoutMs: 300,
|
|
29
29
|
outputStabilityPollMs: 100,
|
|
30
30
|
};
|
|
31
|
-
/** Default Unix socket path for
|
|
31
|
+
/** Default Unix socket path for broker communication */
|
|
32
32
|
export const DEFAULT_SOCKET_PATH = '/tmp/agent-relay.sock';
|
|
33
33
|
//# sourceMappingURL=relay-config.js.map
|
package/dist/schemas.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { zodToJsonSchema } from 'zod-to-json-schema';
|
|
3
3
|
const withId = (schema, id) => Object.assign(schema, { $id: id });
|
|
4
|
-
// Relay connection defaults (used by
|
|
4
|
+
// Relay connection defaults (used by broker + wrapper)
|
|
5
5
|
export const ConnectionConfigSchema = z.object({
|
|
6
6
|
maxFrameBytes: z.number().int().positive(),
|
|
7
7
|
heartbeatMs: z.number().int().positive(),
|
package/dist/shadow-config.d.ts
CHANGED
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
* }
|
|
19
19
|
* }
|
|
20
20
|
*/
|
|
21
|
-
|
|
21
|
+
/** Triggers for when a shadow agent should speak */
|
|
22
|
+
export type SpeakOnTrigger = 'ALL_MESSAGES' | 'EXPLICIT_ASK' | 'SESSION_END' | 'CODE_WRITTEN' | 'REVIEW_REQUEST';
|
|
22
23
|
/** Shadow role definition */
|
|
23
24
|
export interface ShadowRoleConfig {
|
|
24
25
|
/** System prompt for this shadow role */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shadow-config.d.ts","sourceRoot":"","sources":["../src/shadow-config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;
|
|
1
|
+
{"version":3,"file":"shadow-config.d.ts","sourceRoot":"","sources":["../src/shadow-config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAKH,oDAAoD;AACpD,MAAM,MAAM,cAAc,GACtB,cAAc,GACd,cAAc,GACd,aAAa,GACb,cAAc,GACd,gBAAgB,CAAC;AAErB,6BAA6B;AAC7B,MAA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C,WAAW,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAgBxF;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAG5D;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAQhE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shadow-config.js","sourceRoot":"","sources":["../src/shadow-config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"shadow-config.js","sourceRoot":"","sources":["../src/shadow-config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AA2D7B,yCAAyC;AACzC,MAAM,YAAY,GAAqC;IACrD,QAAQ,EAAE,CAAC,cAAc,EAAE,gBAAgB,EAAE,cAAc,CAAC;IAC5D,OAAO,EAAE,CAAC,aAAa,EAAE,cAAc,CAAC;IACxC,MAAM,EAAE,CAAC,cAAc,CAAC;CACzB,CAAC;AAEF;;GAEG;AACH,SAAS,cAAc,CAAC,WAAmB;IACzC,OAAO;QACL,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,cAAc,EAAE,aAAa,CAAC;QACrD,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,mBAAmB,CAAC;KAC5C,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,oBAAoB,CAAC,WAAmB;IACtD,MAAM,WAAW,GAAG,cAAc,CAAC,WAAW,CAAC,CAAC;IAEhD,KAAK,MAAM,UAAU,IAAI,WAAW,EAAE,CAAC;QACrC,IAAI,EAAE,CAAC,UAAU,CAAC,UAAU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AE,OAAO,EAAE,KAAK,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;AACpF,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,aAAa,CAAC,WAAmB;IAC/C,MAAM,WAAW,GAAG,cAAc,CAAC,WAAW,CAAC,CAAC;IAChD,KAAK,MAAM,UAAU,IAAI,WAAW,EAAE,CAAC;QACrC,IAAI,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC;YAC9B,OAAO,UAAU,CAAC;QACpB,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agent-relay/config",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.1",
|
|
4
4
|
"description": "Shared configuration schemas and loaders for Agent Relay",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -83,14 +83,13 @@
|
|
|
83
83
|
"test:watch": "vitest"
|
|
84
84
|
},
|
|
85
85
|
"dependencies": {
|
|
86
|
-
"@agent-relay/protocol": "2.3.14",
|
|
87
86
|
"zod": "^3.23.8",
|
|
88
87
|
"zod-to-json-schema": "^3.23.1"
|
|
89
88
|
},
|
|
90
89
|
"devDependencies": {
|
|
91
90
|
"@types/node": "^22.19.3",
|
|
92
91
|
"typescript": "^5.9.3",
|
|
93
|
-
"vitest": "^3.
|
|
92
|
+
"vitest": "^3.2.4"
|
|
94
93
|
},
|
|
95
94
|
"publishConfig": {
|
|
96
95
|
"access": "public"
|