@agent-relay/utils 12.4.1 → 13.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/model-mapping.d.ts
CHANGED
|
@@ -2,10 +2,14 @@
|
|
|
2
2
|
* Model Mapping
|
|
3
3
|
*
|
|
4
4
|
* Maps agent profile model identifiers to CLI variants.
|
|
5
|
-
*
|
|
5
|
+
* Legacy compatibility helpers; not used by production spawn paths.
|
|
6
|
+
* Use separate cli and model fields in teams.json or spawn inputs.
|
|
7
|
+
* Colon-suffixed CLI commands are not executable harness names.
|
|
6
8
|
*/
|
|
7
9
|
/**
|
|
8
10
|
* Convert a model identifier into the CLI command variant.
|
|
11
|
+
* @deprecated Use separate cli and model fields in teams.json or spawn inputs.
|
|
12
|
+
* The returned colon syntax is not executable. Scheduled for removal next major.
|
|
9
13
|
* Defaults to 'claude:sonnet' when no match is found.
|
|
10
14
|
*
|
|
11
15
|
* @param model - Model identifier from agent profile (e.g., 'claude-opus-4', 'sonnet')
|
|
@@ -20,6 +24,8 @@
|
|
|
20
24
|
export declare function mapModelToCli(model?: string): string;
|
|
21
25
|
/**
|
|
22
26
|
* Extract the base CLI name from a model-mapped CLI variant.
|
|
27
|
+
* @deprecated Use separate cli and model fields instead of colon-suffixed CLI names.
|
|
28
|
+
* Scheduled for removal next major.
|
|
23
29
|
*
|
|
24
30
|
* @param cliVariant - CLI variant (e.g., 'claude:opus', 'claude', 'codex')
|
|
25
31
|
* @returns Base CLI name (e.g., 'claude', 'codex')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-mapping.d.ts","sourceRoot":"","sources":["../src/model-mapping.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"model-mapping.d.ts","sourceRoot":"","sources":["../src/model-mapping.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAsBH;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,aAAa,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAOpD;AAED;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAErD"}
|
package/dist/model-mapping.js
CHANGED
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
* Model Mapping
|
|
3
3
|
*
|
|
4
4
|
* Maps agent profile model identifiers to CLI variants.
|
|
5
|
-
*
|
|
5
|
+
* Legacy compatibility helpers; not used by production spawn paths.
|
|
6
|
+
* Use separate cli and model fields in teams.json or spawn inputs.
|
|
7
|
+
* Colon-suffixed CLI commands are not executable harness names.
|
|
6
8
|
*/
|
|
7
9
|
/**
|
|
8
10
|
* Mapping from model identifiers to CLI command variants.
|
|
@@ -25,6 +27,8 @@ const MODEL_TO_CLI = {
|
|
|
25
27
|
};
|
|
26
28
|
/**
|
|
27
29
|
* Convert a model identifier into the CLI command variant.
|
|
30
|
+
* @deprecated Use separate cli and model fields in teams.json or spawn inputs.
|
|
31
|
+
* The returned colon syntax is not executable. Scheduled for removal next major.
|
|
28
32
|
* Defaults to 'claude:sonnet' when no match is found.
|
|
29
33
|
*
|
|
30
34
|
* @param model - Model identifier from agent profile (e.g., 'claude-opus-4', 'sonnet')
|
|
@@ -45,6 +49,8 @@ export function mapModelToCli(model) {
|
|
|
45
49
|
}
|
|
46
50
|
/**
|
|
47
51
|
* Extract the base CLI name from a model-mapped CLI variant.
|
|
52
|
+
* @deprecated Use separate cli and model fields instead of colon-suffixed CLI names.
|
|
53
|
+
* Scheduled for removal next major.
|
|
48
54
|
*
|
|
49
55
|
* @param cliVariant - CLI variant (e.g., 'claude:opus', 'claude', 'codex')
|
|
50
56
|
* @returns Base CLI name (e.g., 'claude', 'codex')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-mapping.js","sourceRoot":"","sources":["../src/model-mapping.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"model-mapping.js","sourceRoot":"","sources":["../src/model-mapping.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;GAGG;AACH,MAAM,YAAY,GAA2B;IAC3C,gBAAgB;IAChB,iBAAiB,EAAE,eAAe;IAClC,eAAe,EAAE,aAAa;IAC9B,iBAAiB,EAAE,aAAa;IAChC,MAAM,EAAE,eAAe;IACvB,IAAI,EAAE,aAAa;IACnB,KAAK,EAAE,cAAc;IACrB,iBAAiB;IACjB,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,OAAO;IACjB,kBAAkB;IAClB,MAAM,EAAE,QAAQ;IAChB,kBAAkB,EAAE,QAAQ;CAC7B,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,aAAa,CAAC,KAAc;IAC1C,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,OAAO,eAAe,CAAC;IACzB,CAAC;IAED,MAAM,UAAU,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;IAC9C,OAAO,YAAY,CAAC,UAAU,CAAC,IAAI,eAAe,CAAC;AACrD,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,UAAU,CAAC,UAAkB;IAC3C,OAAO,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AAClC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agent-relay/utils",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.0.0",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=22.0.0"
|
|
6
6
|
},
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"vitest": "^4.1.0"
|
|
110
110
|
},
|
|
111
111
|
"dependencies": {
|
|
112
|
-
"@agent-relay/config": "
|
|
112
|
+
"@agent-relay/config": "13.0.0",
|
|
113
113
|
"compare-versions": "^6.1.1"
|
|
114
114
|
},
|
|
115
115
|
"publishConfig": {
|