@exellix/ai-skills 7.0.12 → 7.0.14
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/invocation/aiProfileModelFormat.d.ts +2 -2
- package/dist/invocation/aiProfileModelFormat.d.ts.map +1 -1
- package/dist/invocation/aiProfileModelFormat.js +3 -12
- package/dist/invocation/aiProfileModelFormat.js.map +1 -1
- package/dist/invocation/concreteModelId.d.ts +6 -1
- package/dist/invocation/concreteModelId.d.ts.map +1 -1
- package/dist/invocation/concreteModelId.js +36 -21
- package/dist/invocation/concreteModelId.js.map +1 -1
- package/package.json +2 -2
|
@@ -3,8 +3,8 @@ export declare function isStrictProfileChoiceKey(value: string): boolean;
|
|
|
3
3
|
/** True when the value should be resolved via ai-profiles (not a concrete wire id). */
|
|
4
4
|
export declare function isResolvableModelAlias(value: string): boolean;
|
|
5
5
|
export declare function normalizeProfileSlotInput(value: string): string;
|
|
6
|
-
/** Bare vendor SKU
|
|
7
|
-
export declare function isBareVendorModelSku(
|
|
6
|
+
/** Bare vendor SKU passthrough is handled by {@link isConcreteModelId} (catalog-backed). */
|
|
7
|
+
export declare function isBareVendorModelSku(_value: string): boolean;
|
|
8
8
|
export declare function requireStrictProfileChoiceKey(value: string, slotPath: string): string;
|
|
9
9
|
export declare function requireSkillModelReference(value: string, slotPath: string): string;
|
|
10
10
|
/** @deprecated Bare-profile expansion removed. Use {@link requireStrictProfileChoiceKey}. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aiProfileModelFormat.d.ts","sourceRoot":"","sources":["../../src/invocation/aiProfileModelFormat.ts"],"names":[],"mappings":"AAOA,yFAAyF;AACzF,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAI/D;AAED,uFAAuF;AACvF,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAI7D;AAED,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE/D;AAED
|
|
1
|
+
{"version":3,"file":"aiProfileModelFormat.d.ts","sourceRoot":"","sources":["../../src/invocation/aiProfileModelFormat.ts"],"names":[],"mappings":"AAOA,yFAAyF;AACzF,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAI/D;AAED,uFAAuF;AACvF,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAI7D;AAED,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE/D;AAED,4FAA4F;AAC5F,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAE5D;AAED,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAMrF;AAED,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAElF;AAED,6FAA6F;AAC7F,wBAAgB,6BAA6B,CAAC,WAAW,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,CAMlG;AAED,wBAAgB,4BAA4B,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAYtF"}
|
|
@@ -17,18 +17,9 @@ export function isResolvableModelAlias(value) {
|
|
|
17
17
|
export function normalizeProfileSlotInput(value) {
|
|
18
18
|
return value.trim();
|
|
19
19
|
}
|
|
20
|
-
/** Bare vendor SKU
|
|
21
|
-
export function isBareVendorModelSku(
|
|
22
|
-
|
|
23
|
-
if (!trimmed || trimmed.includes("/") || trimmed.includes("@"))
|
|
24
|
-
return false;
|
|
25
|
-
if (isConcreteModelId(trimmed))
|
|
26
|
-
return false;
|
|
27
|
-
if (isKnownProfileChoice(trimmed))
|
|
28
|
-
return false;
|
|
29
|
-
if (isKnownProfileChoice(formatProfileChoiceKey(trimmed, "default")))
|
|
30
|
-
return false;
|
|
31
|
-
return true;
|
|
20
|
+
/** Bare vendor SKU passthrough is handled by {@link isConcreteModelId} (catalog-backed). */
|
|
21
|
+
export function isBareVendorModelSku(_value) {
|
|
22
|
+
return false;
|
|
32
23
|
}
|
|
33
24
|
export function requireStrictProfileChoiceKey(value, slotPath) {
|
|
34
25
|
const trimmed = value.trim();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aiProfileModelFormat.js","sourceRoot":"","sources":["../../src/invocation/aiProfileModelFormat.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACpB,wBAAwB,GACzB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,yFAAyF;AACzF,MAAM,UAAU,wBAAwB,CAAC,KAAa;IACpD,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;IAC7B,IAAI,CAAC,OAAO;QAAE,OAAO,KAAK,CAAC;IAC3B,OAAO,wBAAwB,CAAC,OAAO,CAAC,IAAI,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAC5E,CAAC;AAED,uFAAuF;AACvF,MAAM,UAAU,sBAAsB,CAAC,KAAa;IAClD,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;IAC7B,IAAI,CAAC,OAAO,IAAI,iBAAiB,CAAC,OAAO,CAAC;QAAE,OAAO,KAAK,CAAC;IACzD,OAAO,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC;AACxC,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,KAAa;IACrD,OAAO,KAAK,CAAC,IAAI,EAAE,CAAC;AACtB,CAAC;AAED
|
|
1
|
+
{"version":3,"file":"aiProfileModelFormat.js","sourceRoot":"","sources":["../../src/invocation/aiProfileModelFormat.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACpB,wBAAwB,GACzB,MAAM,m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AE,CAAC;IACnC,IAAI,cAAc,EAAE,IAAI,EAAE,EAAE,CAAC;QAC3B,OAAO,sBAAsB,CAAC,OAAO,EAAE,cAAc,CAAC,IAAI,EAAE,CAAC,CAAC;IAChE,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,MAAM,UAAU,4BAA4B,CAAC,QAAgB,EAAE,OAAe;IAC5E,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;IAC/B,MAAM,YAAY,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC;IACrC,IAAI,CAAC,OAAO;QAAE,OAAO,OAAO,CAAC;IAC7B,IAAI,YAAY,CAAC,WAAW,EAAE,KAAK,YAAY,EAAE,CAAC;QAChD,IAAI,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC;YAAE,OAAO,OAAO,CAAC;QACtD,OAAO,cAAc,OAAO,EAAE,CAAC;IACjC,CAAC;IACD,IAAI,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC;QAAE,OAAO,OAAO,CAAC;IAC1C,MAAM,cAAc,GAAG,GAAG,YAAY,GAAG,CAAC;IAC1C,IAAI,OAAO,CAAC,UAAU,CAAC,cAAc,CAAC;QAAE,OAAO,OAAO,CAAC;IACvD,OAAO,GAAG,YAAY,IAAI,OAAO,EAAE,CAAC;AACtC,CAAC"}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* True when `value` is a concrete provider/catalog model id (not an ai-profiles reference).
|
|
3
|
+
*
|
|
4
|
+
* Uses the bundled `@x12i/ai-profiles` registry + catalog — not prefix heuristics.
|
|
5
|
+
* Profile refs (`cheap`, `cheap/default`, `cheap@default`) always win over catalog slug collisions.
|
|
6
|
+
*/
|
|
2
7
|
export declare function isConcreteModelId(value: string): boolean;
|
|
3
8
|
//# sourceMappingURL=concreteModelId.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"concreteModelId.d.ts","sourceRoot":"","sources":["../../src/invocation/concreteModelId.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"concreteModelId.d.ts","sourceRoot":"","sources":["../../src/invocation/concreteModelId.ts"],"names":[],"mappings":"AA6BA;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAUxD"}
|
|
@@ -1,27 +1,42 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { formatProfileChoiceKey, getBundledRegistry, isKnownProfileChoice, normalizeKey, requireBundledCatalogModel, resolveSegmentKey, } from "@x12i/ai-profiles";
|
|
2
|
+
/** True when the bare token is a known ai-profiles profile name (e.g. `cheap`, `pro`). */
|
|
3
|
+
function isKnownBareProfileName(value) {
|
|
4
|
+
const registry = getBundledRegistry();
|
|
5
|
+
return resolveSegmentKey(Object.keys(registry.profiles), normalizeKey(value)) !== undefined;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Studio slots like `cheap@default` are profile references, not concrete wire ids.
|
|
9
|
+
* Requires the profile (and choice when present) to exist in the bundled registry.
|
|
10
|
+
*/
|
|
11
|
+
function isKnownProfileAtChoice(value) {
|
|
12
|
+
const at = value.indexOf("@");
|
|
13
|
+
if (at <= 0)
|
|
14
|
+
return false;
|
|
15
|
+
const profile = value.slice(0, at).trim();
|
|
16
|
+
const choice = value.slice(at + 1).trim();
|
|
17
|
+
if (!profile)
|
|
18
|
+
return false;
|
|
19
|
+
if (!choice)
|
|
20
|
+
return isKnownBareProfileName(profile);
|
|
21
|
+
return isKnownProfileChoice(formatProfileChoiceKey(profile, choice));
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* True when `value` is a concrete provider/catalog model id (not an ai-profiles reference).
|
|
25
|
+
*
|
|
26
|
+
* Uses the bundled `@x12i/ai-profiles` registry + catalog — not prefix heuristics.
|
|
27
|
+
* Profile refs (`cheap`, `cheap/default`, `cheap@default`) always win over catalog slug collisions.
|
|
28
|
+
*/
|
|
15
29
|
export function isConcreteModelId(value) {
|
|
16
30
|
const trimmed = value.trim();
|
|
17
31
|
if (!trimmed)
|
|
18
32
|
return false;
|
|
19
|
-
if (
|
|
20
|
-
return
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
33
|
+
if (isKnownProfileChoice(trimmed))
|
|
34
|
+
return false;
|
|
35
|
+
if (isKnownBareProfileName(trimmed))
|
|
36
|
+
return false;
|
|
37
|
+
if (isKnownProfileAtChoice(trimmed))
|
|
38
|
+
return false;
|
|
39
|
+
const result = requireBundledCatalogModel(trimmed);
|
|
40
|
+
return result.found === true && result.profileChoice === undefined;
|
|
26
41
|
}
|
|
27
42
|
//# sourceMappingURL=concreteModelId.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"concreteModelId.js","sourceRoot":"","sources":["../../src/invocation/concreteModelId.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"concreteModelId.js","sourceRoot":"","sources":["../../src/invocation/concreteModelId.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,oBAAoB,EACpB,YAAY,EACZ,0BAA0B,EAC1B,iBAAiB,GAClB,MAAM,mBAAmB,CAAC;AAE3B,0FAA0F;AAC1F,SAAS,sBAAsB,CAAC,KAAa;IAC3C,MAAM,QAAQ,GAAG,kBAAkB,EAAE,CAAC;IACtC,OAAO,iBAAiB,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,YAAY,CAAC,KAAK,CAAC,CAAC,KAAK,SAAS,CAAC;AAC9F,CAAC;AAED;;;GAGG;AACH,SAAS,sBAAsB,CAAC,KAAa;IAC3C,MAAM,EAAE,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAC9B,IAAI,EAAE,IAAI,CAAC;QAAE,OAAO,KAAK,CAAC;IAC1B,MAAM,OAAO,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IAC1C,MAAM,MAAM,GAAG,KAAK,CAAC,KAAK,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAC1C,IAAI,CAAC,OAAO;QAAE,OAAO,KAAK,CAAC;IAC3B,IAAI,CAAC,MAAM;QAAE,OAAO,sBAAsB,CAAC,OAAO,CAAC,CAAC;IACpD,OAAO,oBAAoB,CAAC,sBAAsB,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC;AACvE,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,iBAAiB,CAAC,KAAa;IAC7C,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;IAC7B,IAAI,CAAC,OAAO;QAAE,OAAO,KAAK,CAAC;IAE3B,IAAI,oBAAoB,CAAC,OAAO,CAAC;QAAE,OAAO,KAAK,CAAC;IAChD,IAAI,sBAAsB,CAAC,OAAO,CAAC;QAAE,OAAO,KAAK,CAAC;IAClD,IAAI,sBAAsB,CAAC,OAAO,CAAC;QAAE,OAAO,KAAK,CAAC;IAElD,MAAM,MAAM,GAAG,0BAA0B,CAAC,OAAO,CAAC,CAAC;IACnD,OAAO,MAAM,CAAC,KAAK,KAAK,IAAI,IAAI,MAAM,CAAC,aAAa,KAAK,SAAS,CAAC;AACrE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exellix/ai-skills",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.14",
|
|
4
4
|
"description": "Foundational skill execution layer for exellix ecosystem using @x12i/ai-gateway with FlexMD 2.0 support and Catalox as the catalog store",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"@exellix/catalox-ai-skills": "^1.0.5",
|
|
64
64
|
"@x12i/activix": "^9.0.3",
|
|
65
65
|
"@x12i/ai-gateway": "^11.0.7",
|
|
66
|
-
"@x12i/ai-profiles": "^4.
|
|
66
|
+
"@x12i/ai-profiles": "^4.1.0",
|
|
67
67
|
"@x12i/catalox": "^5.10.1",
|
|
68
68
|
"@x12i/env": "^4.0.3",
|
|
69
69
|
"@x12i/execution-memory-manager": "^1.2.0",
|