@techis/ai-contracts 0.0.0-stage → 0.3.0-rc.16
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 +122 -0
- package/README.md +28 -3
- package/THIRD_PARTY_NOTICES +34 -0
- package/dist/availability.d.ts +21 -0
- package/dist/availability.d.ts.map +1 -0
- package/dist/availability.js +2 -0
- package/dist/availability.js.map +1 -0
- package/dist/catalog-adoption.d.ts +20 -0
- package/dist/catalog-adoption.d.ts.map +1 -0
- package/dist/catalog-adoption.js +76 -0
- package/dist/catalog-adoption.js.map +1 -0
- package/dist/catalog-composition.d.ts +10 -0
- package/dist/catalog-composition.d.ts.map +1 -0
- package/dist/catalog-composition.js +66 -0
- package/dist/catalog-composition.js.map +1 -0
- package/dist/catalog-delivery.d.ts +47 -0
- package/dist/catalog-delivery.d.ts.map +1 -0
- package/dist/catalog-delivery.js +87 -0
- package/dist/catalog-delivery.js.map +1 -0
- package/dist/catalog-package-data.d.ts +8 -0
- package/dist/catalog-package-data.d.ts.map +1 -0
- package/dist/catalog-package-data.js +3845 -0
- package/dist/catalog-package-data.js.map +1 -0
- package/dist/compatibility.d.ts +68 -0
- package/dist/compatibility.d.ts.map +1 -0
- package/dist/compatibility.js +207 -0
- package/dist/compatibility.js.map +1 -0
- package/dist/configuration-bundle.d.ts +204 -0
- package/dist/configuration-bundle.d.ts.map +1 -0
- package/dist/configuration-bundle.js +626 -0
- package/dist/configuration-bundle.js.map +1 -0
- package/dist/entities.d.ts +641 -0
- package/dist/entities.d.ts.map +1 -0
- package/dist/entities.js +2 -0
- package/dist/entities.js.map +1 -0
- package/dist/fixtures.d.ts +25 -0
- package/dist/fixtures.d.ts.map +1 -0
- package/dist/fixtures.js +546 -0
- package/dist/fixtures.js.map +1 -0
- package/dist/hash.d.ts +8 -0
- package/dist/hash.d.ts.map +1 -0
- package/dist/hash.js +13 -0
- package/dist/hash.js.map +1 -0
- package/dist/host-qualification.d.ts +107 -0
- package/dist/host-qualification.d.ts.map +1 -0
- package/dist/host-qualification.js +88 -0
- package/dist/host-qualification.js.map +1 -0
- package/dist/icc-catalog.d.ts +31 -0
- package/dist/icc-catalog.d.ts.map +1 -0
- package/dist/icc-catalog.js +321 -0
- package/dist/icc-catalog.js.map +1 -0
- package/dist/icc-csf-profiles.d.ts +28 -0
- package/dist/icc-csf-profiles.d.ts.map +1 -0
- package/dist/icc-csf-profiles.js +394 -0
- package/dist/icc-csf-profiles.js.map +1 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +25 -0
- package/dist/index.js.map +1 -0
- package/dist/model-maintenance.d.ts +216 -0
- package/dist/model-maintenance.d.ts.map +1 -0
- package/dist/model-maintenance.js +425 -0
- package/dist/model-maintenance.js.map +1 -0
- package/dist/model-package-data.d.ts +3 -0
- package/dist/model-package-data.d.ts.map +1 -0
- package/dist/model-package-data.js +4954 -0
- package/dist/model-package-data.js.map +1 -0
- package/dist/persona-inventory.d.ts +143 -0
- package/dist/persona-inventory.d.ts.map +1 -0
- package/dist/persona-inventory.js +56 -0
- package/dist/persona-inventory.js.map +1 -0
- package/dist/profile-identity.d.ts +27 -0
- package/dist/profile-identity.d.ts.map +1 -0
- package/dist/profile-identity.js +30 -0
- package/dist/profile-identity.js.map +1 -0
- package/dist/provider-listings.d.ts +9 -0
- package/dist/provider-listings.d.ts.map +1 -0
- package/dist/provider-listings.js +48 -0
- package/dist/provider-listings.js.map +1 -0
- package/dist/reasoning-validation.d.ts +9 -0
- package/dist/reasoning-validation.d.ts.map +1 -0
- package/dist/reasoning-validation.js +79 -0
- package/dist/reasoning-validation.js.map +1 -0
- package/dist/reasoning.d.ts +55 -0
- package/dist/reasoning.d.ts.map +1 -0
- package/dist/reasoning.js +13 -0
- package/dist/reasoning.js.map +1 -0
- package/dist/receipt.d.ts +16 -0
- package/dist/receipt.d.ts.map +1 -0
- package/dist/receipt.js +18 -0
- package/dist/receipt.js.map +1 -0
- package/dist/schemas/adoption-change-set.schema.json +91 -0
- package/dist/schemas/bundle.d.ts +124 -0
- package/dist/schemas/bundle.d.ts.map +1 -0
- package/dist/schemas/bundle.js +84 -0
- package/dist/schemas/bundle.js.map +1 -0
- package/dist/schemas/catalog-release.schema.json +375 -0
- package/dist/schemas/catalog-review-input.schema.json +179 -0
- package/dist/schemas/catalog-review-output.schema.json +259 -0
- package/dist/schemas/catalog-review-output.v2.schema.json +251 -0
- package/dist/schemas/catalog-review-record.schema.json +391 -0
- package/dist/schemas/client-persona-inventory.schema.json +107 -0
- package/dist/schemas/common.schema.json +324 -0
- package/dist/schemas/config.d.ts +1106 -0
- package/dist/schemas/config.d.ts.map +1 -0
- package/dist/schemas/config.js +496 -0
- package/dist/schemas/config.js.map +1 -0
- package/dist/schemas/configuration-bundle-manifest.schema.json +144 -0
- package/dist/schemas/configuration-manifest.schema.json +109 -0
- package/dist/schemas/connection.schema.json +49 -0
- package/dist/schemas/core.d.ts +2268 -0
- package/dist/schemas/core.d.ts.map +1 -0
- package/dist/schemas/core.js +367 -0
- package/dist/schemas/core.js.map +1 -0
- package/dist/schemas/desktop-configuration-revision.schema.json +146 -0
- package/dist/schemas/execution-profile-revision.schema.json +235 -0
- package/dist/schemas/execution-receipt.schema.json +431 -0
- package/dist/schemas/host-adapter-qualification.schema.json +398 -0
- package/dist/schemas/host-qualification-policy.schema.json +50 -0
- package/dist/schemas/index.d.ts +11 -0
- package/dist/schemas/index.d.ts.map +1 -0
- package/dist/schemas/index.js +34 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/schemas/inventory.d.ts +170 -0
- package/dist/schemas/inventory.d.ts.map +1 -0
- package/dist/schemas/inventory.js +87 -0
- package/dist/schemas/inventory.js.map +1 -0
- package/dist/schemas/model-definition.schema.json +628 -0
- package/dist/schemas/model-package-release.schema.json +594 -0
- package/dist/schemas/model-upgrade-advisory.schema.json +191 -0
- package/dist/schemas/operation-contract-document.schema.json +153 -0
- package/dist/schemas/persona-assignments.schema.json +125 -0
- package/dist/schemas/persona-registry-overlay.schema.json +93 -0
- package/dist/schemas/persona-source-document.schema.json +86 -0
- package/dist/schemas/persona-specification.schema.json +122 -0
- package/dist/schemas/price-revision.schema.json +299 -0
- package/dist/schemas/profile-assessment.schema.json +288 -0
- package/dist/schemas/scoped.d.ts +424 -0
- package/dist/schemas/scoped.d.ts.map +1 -0
- package/dist/schemas/scoped.js +203 -0
- package/dist/schemas/scoped.js.map +1 -0
- package/dist/schemas/usage-aggregate-query.schema.json +86 -0
- package/dist/schemas/usage-page.schema.json +22 -0
- package/dist/schemas/usage-query.schema.json +77 -0
- package/dist/schemas/usage-summary.schema.json +468 -0
- package/dist/schemas/usage.d.ts +527 -0
- package/dist/schemas/usage.d.ts.map +1 -0
- package/dist/schemas/usage.js +142 -0
- package/dist/schemas/usage.js.map +1 -0
- package/dist/scoped-configuration.d.ts +208 -0
- package/dist/scoped-configuration.d.ts.map +1 -0
- package/dist/scoped-configuration.js +425 -0
- package/dist/scoped-configuration.js.map +1 -0
- package/dist/scripts/emit-schemas.d.ts +2 -0
- package/dist/scripts/emit-schemas.d.ts.map +1 -0
- package/dist/scripts/emit-schemas.js +24 -0
- package/dist/scripts/emit-schemas.js.map +1 -0
- package/dist/scripts/verify-bundle.d.ts +3 -0
- package/dist/scripts/verify-bundle.d.ts.map +1 -0
- package/dist/scripts/verify-bundle.js +59 -0
- package/dist/scripts/verify-bundle.js.map +1 -0
- package/dist/validation.d.ts +11 -0
- package/dist/validation.d.ts.map +1 -0
- package/dist/validation.js +41 -0
- package/dist/validation.js.map +1 -0
- package/package.json +31 -4
- package/third-party-licenses/ajv-formats@3.0.1/LICENSE +21 -0
- package/third-party-licenses/ajv@8.20.0/LICENSE +22 -0
- package/third-party-licenses/fast-deep-equal@3.1.3/LICENSE +21 -0
- package/third-party-licenses/fast-uri@3.1.7/LICENSE +30 -0
- package/third-party-licenses/json-schema-traverse@1.0.0/LICENSE +21 -0
- package/third-party-licenses/require-from-string@2.0.2/license +21 -0
- package/third-party-licenses/typescript@5.9.3/LICENSE.txt +55 -0
- package/third-party-licenses/typescript@5.9.3/ThirdPartyNoticeText.txt +193 -0
- package/third-party-licenses.json +102 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import type { ExecutionReceipt } from "./entities.js";
|
|
2
|
+
export interface HostQualificationArtifactPin {
|
|
3
|
+
qualificationSha256: string;
|
|
4
|
+
runtimePackageSha256: string;
|
|
5
|
+
adapterModuleSha256: string;
|
|
6
|
+
receiptSha256: string;
|
|
7
|
+
conformanceSha256: string;
|
|
8
|
+
}
|
|
9
|
+
export interface HostQualificationPolicy {
|
|
10
|
+
schemaVersion: 1;
|
|
11
|
+
artifactPins: HostQualificationArtifactPin[];
|
|
12
|
+
}
|
|
13
|
+
/** The trusted host supplies bytes; remote URLs and report-provided digests are never artifact readers. */
|
|
14
|
+
export interface HostQualificationArtifactReader {
|
|
15
|
+
readRuntimeArchive(reference: HostAdapterQualification["runtimePackage"]): Promise<Uint8Array>;
|
|
16
|
+
readArchiveMember(archive: Uint8Array, path: string): Promise<Uint8Array>;
|
|
17
|
+
}
|
|
18
|
+
export interface HostArtifactVerification {
|
|
19
|
+
schemaVersion: 1;
|
|
20
|
+
kind: "techis-host-artifact-verification";
|
|
21
|
+
evidenceId: string;
|
|
22
|
+
inputHash: string;
|
|
23
|
+
algorithm: "sha256";
|
|
24
|
+
objectSerialization: "techis-canonical-json-v2";
|
|
25
|
+
checks: Array<{
|
|
26
|
+
artifact: keyof HostQualificationArtifactPin;
|
|
27
|
+
expectedSha256: string;
|
|
28
|
+
computedSha256: string;
|
|
29
|
+
matched: true;
|
|
30
|
+
}>;
|
|
31
|
+
scope: string;
|
|
32
|
+
}
|
|
33
|
+
/** Snapshot of provider facts, installed support, and exact tool tests; never a capability grant. */
|
|
34
|
+
export interface HostRuntimeTools {
|
|
35
|
+
modelHash: string;
|
|
36
|
+
nativeTools: string[];
|
|
37
|
+
adapterTools: string[];
|
|
38
|
+
executableTools: string[];
|
|
39
|
+
unavailableTools: string[];
|
|
40
|
+
qualifiedTools: Array<{
|
|
41
|
+
tool: "web_search";
|
|
42
|
+
synthetic: boolean;
|
|
43
|
+
receipt: ExecutionReceipt;
|
|
44
|
+
}>;
|
|
45
|
+
}
|
|
46
|
+
export interface HostAdapterQualification {
|
|
47
|
+
schemaVersion: 1 | 2;
|
|
48
|
+
/** Required in v2. Legacy v1 reports do not establish provider-tool qualification. */
|
|
49
|
+
runtimeTools?: HostRuntimeTools;
|
|
50
|
+
kind: "techis-host-adapter-qualification";
|
|
51
|
+
mapping: {
|
|
52
|
+
catalogId: string;
|
|
53
|
+
provider: string;
|
|
54
|
+
providerModelId: string;
|
|
55
|
+
adapterId: string;
|
|
56
|
+
adapterVersion: string;
|
|
57
|
+
endpoint: string;
|
|
58
|
+
};
|
|
59
|
+
runtimePackage: {
|
|
60
|
+
name: string;
|
|
61
|
+
version: string;
|
|
62
|
+
sha256: string;
|
|
63
|
+
};
|
|
64
|
+
adapterModule: {
|
|
65
|
+
path: string;
|
|
66
|
+
sha256: string;
|
|
67
|
+
};
|
|
68
|
+
conformance: {
|
|
69
|
+
runtimePackageSha256: string;
|
|
70
|
+
adapterModuleSha256: string;
|
|
71
|
+
adapterId: string;
|
|
72
|
+
adapterVersion: string;
|
|
73
|
+
provider: string;
|
|
74
|
+
providerModelId: string;
|
|
75
|
+
endpoint: string;
|
|
76
|
+
wireModel: string;
|
|
77
|
+
structuredOutputValidated: true;
|
|
78
|
+
networkCalls: 0;
|
|
79
|
+
outcome: "succeeded";
|
|
80
|
+
};
|
|
81
|
+
receipt: ExecutionReceipt;
|
|
82
|
+
}
|
|
83
|
+
export declare const HOST_QUALIFICATION_POLICY_SCHEMA: {
|
|
84
|
+
type: string;
|
|
85
|
+
additionalProperties: boolean;
|
|
86
|
+
required: string[];
|
|
87
|
+
properties: Record<string, unknown>;
|
|
88
|
+
};
|
|
89
|
+
export declare const HOST_ADAPTER_QUALIFICATION_SCHEMA: {
|
|
90
|
+
oneOf: {
|
|
91
|
+
type: string;
|
|
92
|
+
additionalProperties: boolean;
|
|
93
|
+
required: string[];
|
|
94
|
+
properties: Record<string, unknown>;
|
|
95
|
+
}[];
|
|
96
|
+
};
|
|
97
|
+
/** Trusted callers pin artifact digests after inspecting actual bytes; this is not remote enrollment or a provider claim. */
|
|
98
|
+
export declare function validateHostAdapterQualification(content: string, policy: HostQualificationPolicy | undefined): HostAdapterQualification;
|
|
99
|
+
/** Independent byte/digest computation precedes model execution; the reviewer never needs to hash objects mentally. */
|
|
100
|
+
export declare function verifyHostQualificationArtifacts(options: {
|
|
101
|
+
evidenceId: string;
|
|
102
|
+
inputHash: string;
|
|
103
|
+
content: string;
|
|
104
|
+
policy: HostQualificationPolicy;
|
|
105
|
+
reader: HostQualificationArtifactReader;
|
|
106
|
+
}): Promise<HostArtifactVerification>;
|
|
107
|
+
//# sourceMappingURL=host-qualification.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-qualification.d.ts","sourceRoot":"","sources":["../src/host-qualification.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAItD,MAAM,WAAW,4BAA4B;IAC3C,mBAAmB,EAAE,MAAM,CAAC;IAC5B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AACD,MAAM,WAAW,uBAAuB;IAAG,aAAa,EAAE,CAAC,CAAC;IAAC,YAAY,EAAE,4BAA4B,EAAE,CAAA;CAAE;AAC3G,2GAA2G;AAC3G,MAAM,WAAW,+BAA+B;IAC9C,kBAAkB,CAAC,SAAS,EAAE,wBAAwB,CAAC,gBAAgB,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IAC/F,iBAAiB,CAAC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MA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AE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IAClE,aAAa,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IAChD,WAAW,EAAE;QAAE,oBAAoB,EAAE,MAAM,CAAC;QAAC,mBAAmB,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,cAAc,EAAE,MAAM,CAAC;QAClH,QAAQ,EAAE,MAAM,CAAC;QAAC,eAAe,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,yBAAyB,EAAE,IAAI,CAAC;QAChH,YAAY,EAAE,CAAC,CAAC;QAAC,OAAO,EAAE,WAAW,CAAA;KAAE,CAAC;IAC1C,OAAO,EAAE,gBAAgB,CAAC;CAC3B;AAID,eAAO,MAAM,gCAAgC;;;;;CAEW,CAAC;AASzD,eAAO,MAAM,iCAAiC;;;;;;;CAG+F,CAAC;AAK9I,6HAA6H;AAC7H,wBAAgB,gCAAgC,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,uBAAuB,GAAG,SAAS,GAAG,wBAAwB,CA+CvI;AAED,uHAAuH;AACvH,wBAAsB,gCAAgC,CAAC,OAAO,EAAE;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IACvH,MAAM,EAAE,uBAAuB,CAAC;IAAC,MAAM,EAAE,+BAA+B,CAAA;CAAE,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAmB/G"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { assertValidEntity, compileSchema } from "./validation.js";
|
|
2
|
+
import { canonicalJsonV2, hashDocumentV2, sha256HexV2 } from "./scoped-configuration.js";
|
|
3
|
+
const string = { type: "string", minLength: 1 }, hash = { type: "string", pattern: "^[a-f0-9]{64}$" };
|
|
4
|
+
const object = (properties) => ({ type: "object", additionalProperties: false,
|
|
5
|
+
required: Object.keys(properties), properties });
|
|
6
|
+
export const HOST_QUALIFICATION_POLICY_SCHEMA = object({ schemaVersion: { const: 1 },
|
|
7
|
+
artifactPins: { type: "array", minItems: 1, items: object({ qualificationSha256: hash, runtimePackageSha256: hash, adapterModuleSha256: hash,
|
|
8
|
+
receiptSha256: hash, conformanceSha256: hash }) } });
|
|
9
|
+
const legacyReportSchema = object({ schemaVersion: { const: 1 },
|
|
10
|
+
kind: { const: "techis-host-adapter-qualification" }, mapping: object({ catalogId: string, provider: string,
|
|
11
|
+
providerModelId: string, adapterId: string, adapterVersion: string, endpoint: string }),
|
|
12
|
+
runtimePackage: object({ name: string, version: string, sha256: hash }), adapterModule: object({ path: string, sha256: hash }),
|
|
13
|
+
conformance: object({ runtimePackageSha256: hash, adapterModuleSha256: hash, adapterId: string, adapterVersion: string,
|
|
14
|
+
provider: string, providerModelId: string, endpoint: string, wireModel: string, structuredOutputValidated: { const: true },
|
|
15
|
+
networkCalls: { const: 0 }, outcome: { const: "succeeded" } }), receipt: {} });
|
|
16
|
+
const tools = { type: "array", uniqueItems: true, items: string };
|
|
17
|
+
export const HOST_ADAPTER_QUALIFICATION_SCHEMA = { oneOf: [legacyReportSchema,
|
|
18
|
+
object({ ...legacyReportSchema.properties, schemaVersion: { const: 2 }, runtimeTools: object({ modelHash: hash,
|
|
19
|
+
nativeTools: tools, adapterTools: tools, executableTools: tools, unavailableTools: tools,
|
|
20
|
+
qualifiedTools: { type: "array", items: object({ tool: { const: "web_search" }, synthetic: { type: "boolean" }, receipt: {} }) } }) })] };
|
|
21
|
+
const validateReport = compileSchema(HOST_ADAPTER_QUALIFICATION_SCHEMA);
|
|
22
|
+
const validatePolicy = compileSchema(HOST_QUALIFICATION_POLICY_SCHEMA);
|
|
23
|
+
const requireCondition = (condition, message) => { if (!condition)
|
|
24
|
+
throw new Error(message); };
|
|
25
|
+
/** Trusted callers pin artifact digests after inspecting actual bytes; this is not remote enrollment or a provider claim. */
|
|
26
|
+
export function validateHostAdapterQualification(content, policy) {
|
|
27
|
+
requireCondition(policy && validatePolicy(policy).valid, "Host qualification needs explicit trusted artifact pins.");
|
|
28
|
+
const report = JSON.parse(content);
|
|
29
|
+
const shape = validateReport(report);
|
|
30
|
+
requireCondition(shape.valid, "Invalid host qualification: " + shape.errors.join("; "));
|
|
31
|
+
requireCondition(content === canonicalJsonV2(report), "Host qualification must use exact canonical artifact-bound content.");
|
|
32
|
+
const mapping = report.mapping, test = report.conformance, receipt = report.receipt;
|
|
33
|
+
assertValidEntity("execution-receipt", receipt);
|
|
34
|
+
requireCondition(report.runtimePackage.name === "@techis/ai-runtime" &&
|
|
35
|
+
test.runtimePackageSha256 === report.runtimePackage.sha256 && test.adapterModuleSha256 === report.adapterModule.sha256 &&
|
|
36
|
+
["adapterId", "adapterVersion", "provider", "providerModelId", "endpoint"].every(key => test[key] === mapping[key]) && test.wireModel === mapping.providerModelId, "Host conformance does not cover the exact adapter artifact and model mapping.");
|
|
37
|
+
requireCondition(receipt.status === "succeeded" && receipt.provider === mapping.provider &&
|
|
38
|
+
receipt.providerModelId === mapping.providerModelId && receipt.adapterId === mapping.adapterId &&
|
|
39
|
+
receipt.adapterVersion === mapping.adapterVersion && receipt.requested.outputSchemaPresent && !receipt.fallbackUsed &&
|
|
40
|
+
receipt.attempts.some(attempt => attempt.outcome === "succeeded" && attempt.role === "primary" && attempt.providerRequestStarted &&
|
|
41
|
+
attempt.providerModelId === mapping.providerModelId && attempt.catalogId === mapping.catalogId), "Host receipt does not prove this adapter/model executed.");
|
|
42
|
+
if (report.runtimeTools) {
|
|
43
|
+
const coverage = report.runtimeTools;
|
|
44
|
+
const sameSet = (a, b) => canonicalJsonV2([...a].sort()) === canonicalJsonV2([...b].sort());
|
|
45
|
+
requireCondition(sameSet(coverage.executableTools, coverage.nativeTools.filter(tool => coverage.adapterTools.includes(tool))) &&
|
|
46
|
+
sameSet(coverage.unavailableTools, coverage.nativeTools.filter(tool => !coverage.adapterTools.includes(tool))), "Host tool support must partition native tools by installed adapter support.");
|
|
47
|
+
requireCondition(sameSet(coverage.qualifiedTools.map(test => test.tool), coverage.executableTools), "Host tool qualification must cover exactly the executable tools.");
|
|
48
|
+
for (const toolTest of coverage.qualifiedTools) {
|
|
49
|
+
const toolReceipt = toolTest.receipt;
|
|
50
|
+
assertValidEntity("execution-receipt", toolReceipt);
|
|
51
|
+
requireCondition(toolReceipt.status === "succeeded" && toolReceipt.provider === mapping.provider &&
|
|
52
|
+
toolReceipt.providerModelId === mapping.providerModelId && toolReceipt.adapterId === mapping.adapterId &&
|
|
53
|
+
toolReceipt.adapterVersion === mapping.adapterVersion && !toolReceipt.fallbackUsed &&
|
|
54
|
+
toolReceipt.attempts.length === 1 && toolReceipt.attempts[0].role === "primary" &&
|
|
55
|
+
toolReceipt.attempts[0].outcome === "succeeded" && toolReceipt.attempts[0].providerRequestStarted &&
|
|
56
|
+
toolReceipt.attempts[0].catalogId === mapping.catalogId && toolReceipt.attempts[0].providerModelId === mapping.providerModelId &&
|
|
57
|
+
(toolReceipt.usage?.toolCalls ?? 0) >= 1, "Host tool receipt does not prove exact-model tool use.");
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
const pins = { qualificationSha256: sha256HexV2(content), runtimePackageSha256: report.runtimePackage.sha256,
|
|
61
|
+
adapterModuleSha256: report.adapterModule.sha256,
|
|
62
|
+
receiptSha256: hashDocumentV2(receipt), conformanceSha256: hashDocumentV2(test) };
|
|
63
|
+
requireCondition(policy.artifactPins.some(pin => canonicalJsonV2(pin) === canonicalJsonV2(pins)), "Host qualification artifact/receipt digests are not trusted by the caller's policy.");
|
|
64
|
+
requireCondition(new URL(mapping.endpoint).protocol === "https:", "Host protocol endpoint must be HTTPS.");
|
|
65
|
+
return structuredClone(report);
|
|
66
|
+
}
|
|
67
|
+
/** Independent byte/digest computation precedes model execution; the reviewer never needs to hash objects mentally. */
|
|
68
|
+
export async function verifyHostQualificationArtifacts(options) {
|
|
69
|
+
const report = validateHostAdapterQualification(options.content, options.policy);
|
|
70
|
+
const archive = await options.reader.readRuntimeArchive(report.runtimePackage);
|
|
71
|
+
const archiveSha256 = sha256HexV2(archive);
|
|
72
|
+
requireCondition(archiveSha256 === report.runtimePackage.sha256, "Runtime archive bytes differ from the pinned qualification.");
|
|
73
|
+
const module = await options.reader.readArchiveMember(archive, report.adapterModule.path);
|
|
74
|
+
const moduleSha256 = sha256HexV2(module);
|
|
75
|
+
requireCondition(moduleSha256 === report.adapterModule.sha256, "Archive member bytes differ from the pinned adapter module.");
|
|
76
|
+
const computed = { qualificationSha256: sha256HexV2(options.content),
|
|
77
|
+
runtimePackageSha256: archiveSha256, adapterModuleSha256: moduleSha256,
|
|
78
|
+
receiptSha256: hashDocumentV2(report.receipt), conformanceSha256: hashDocumentV2(report.conformance) };
|
|
79
|
+
const expected = options.policy.artifactPins.find(pin => canonicalJsonV2(pin) === canonicalJsonV2(computed));
|
|
80
|
+
requireCondition(expected, "Computed host artifact digests differ from trusted policy pins.");
|
|
81
|
+
return { schemaVersion: 1, kind: "techis-host-artifact-verification", evidenceId: options.evidenceId, inputHash: options.inputHash,
|
|
82
|
+
algorithm: "sha256", objectSerialization: "techis-canonical-json-v2",
|
|
83
|
+
checks: Object.keys(computed).map(artifact => ({ artifact,
|
|
84
|
+
expectedSha256: expected[artifact], computedSha256: computed[artifact], matched: true })),
|
|
85
|
+
scope: "Exact runtime archive/member bytes, canonical report, retained receipt and conformance digests match trusted pins. " +
|
|
86
|
+
"This does not establish GA, all capability combinations, comparable-task quality, prices or catalog acceptance." };
|
|
87
|
+
}
|
|
88
|
+
//# sourceMappingURL=host-qualification.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-qualification.js","sourceRoot":"","sources":["../src/host-qualification.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,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} from "./entities.js";
|
|
2
|
+
/**
|
|
3
|
+
* T06: ICC production catalog import.
|
|
4
|
+
*
|
|
5
|
+
* Builds the catalog release for ICC's exact configured models from source-attributed
|
|
6
|
+
* evidence. Two evidence tiers are recorded explicitly:
|
|
7
|
+
* - Provider model pages retrieved on the import date (context windows, modalities,
|
|
8
|
+
* thinking behavior). Retrieval does not promote a model: discovery is evidence of a
|
|
9
|
+
* listed model, not successful inference.
|
|
10
|
+
* - ICC's in-repo model catalog for pricing the provider pages do not list. Prices are
|
|
11
|
+
* per-model, immutable and effective-dated; GLM-5.2 prices are never reused for Flash.
|
|
12
|
+
*
|
|
13
|
+
* The demo seed (fixtures.ts) remains separate: nothing here feeds or reads it. Retired
|
|
14
|
+
* models (gpt-5.5, gemini-2.5-pro, glm-4.5) are imported only for historical attribution
|
|
15
|
+
* and are never selectable. Moonshot, DeepSeek and gemini-2.5-flash are not imported.
|
|
16
|
+
*/
|
|
17
|
+
export declare const ICC_CATALOG_IMPORT_DATE = "2026-09-13";
|
|
18
|
+
/**
|
|
19
|
+
* Content revision of the imported catalog. Bumped when imported facts change without a
|
|
20
|
+
* full re-import: 2026-09-25 declares GLM-5.3-Flash's effort control (v2 schema
|
|
21
|
+
* expression of the escalation mapping the original import recorded in notes).
|
|
22
|
+
*/
|
|
23
|
+
export declare const ICC_CATALOG_REVISION_DATE = "2026-09-25";
|
|
24
|
+
/** ICC's production catalog release: exactly the configured models, dated evidence, per-model immutable prices. */
|
|
25
|
+
export declare function buildIccProductionCatalogRelease(options?: {
|
|
26
|
+
catalogRevision?: string;
|
|
27
|
+
publishedAt?: string;
|
|
28
|
+
}): CatalogRelease;
|
|
29
|
+
/** Model IDs ICC actually routes to (enabled set, excluding retired tiers). */
|
|
30
|
+
export declare const ICC_ACTIVE_CATALOG_IDS: readonly string[];
|
|
31
|
+
//# sourceMappingURL=icc-catalog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icc-catalog.d.ts","sourceRoot":"","sources":["../src/icc-catalog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAkC,MAAM,eAAe,CAAC;AAEpF;;;;;;;;;;;;;;GAcG;AAEH,eAAO,MAAM,uBAAuB,eAAe,CAAC;AACpD;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,eAAe,CAAC;AAsTtD,mHAAmH;AACnH,wBAAgB,gCAAgC,CAAC,OAAO,CAAC,EAAE;IAAE,eAAe,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,cAAc,CAa7H;AAED,+EAA+E;AAC/E,eAAO,MAAM,sBAAsB,EAAE,SAAS,MAAM,EASnD,CAAC"}
|
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* T06: ICC production catalog import.
|
|
3
|
+
*
|
|
4
|
+
* Builds the catalog release for ICC's exact configured models from source-attributed
|
|
5
|
+
* evidence. Two evidence tiers are recorded explicitly:
|
|
6
|
+
* - Provider model pages retrieved on the import date (context windows, modalities,
|
|
7
|
+
* thinking behavior). Retrieval does not promote a model: discovery is evidence of a
|
|
8
|
+
* listed model, not successful inference.
|
|
9
|
+
* - ICC's in-repo model catalog for pricing the provider pages do not list. Prices are
|
|
10
|
+
* per-model, immutable and effective-dated; GLM-5.2 prices are never reused for Flash.
|
|
11
|
+
*
|
|
12
|
+
* The demo seed (fixtures.ts) remains separate: nothing here feeds or reads it. Retired
|
|
13
|
+
* models (gpt-5.5, gemini-2.5-pro, glm-4.5) are imported only for historical attribution
|
|
14
|
+
* and are never selectable. Moonshot, DeepSeek and gemini-2.5-flash are not imported.
|
|
15
|
+
*/
|
|
16
|
+
export const ICC_CATALOG_IMPORT_DATE = "2026-09-13";
|
|
17
|
+
/**
|
|
18
|
+
* Content revision of the imported catalog. Bumped when imported facts change without a
|
|
19
|
+
* full re-import: 2026-09-25 declares GLM-5.3-Flash's effort control (v2 schema
|
|
20
|
+
* expression of the escalation mapping the original import recorded in notes).
|
|
21
|
+
*/
|
|
22
|
+
export const ICC_CATALOG_REVISION_DATE = "2026-09-25";
|
|
23
|
+
const ICC_CATALOG_SOURCE = (modelId) => `icc://model-catalog/${modelId}`;
|
|
24
|
+
function providerSource(uri, verifiedAt) {
|
|
25
|
+
return { uri, verifiedAt };
|
|
26
|
+
}
|
|
27
|
+
function iccPriceSource(modelId) {
|
|
28
|
+
return {
|
|
29
|
+
uri: ICC_CATALOG_SOURCE(modelId),
|
|
30
|
+
verifiedAt: `${ICC_CATALOG_IMPORT_DATE}T00:00:00.000Z`
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
const OPENAI_EFFORT_LEVELS = ["none", "low", "medium", "high", "xhigh", "max"];
|
|
34
|
+
function openAiModel(input) {
|
|
35
|
+
const retired = input.retired;
|
|
36
|
+
return {
|
|
37
|
+
schemaVersion: 1,
|
|
38
|
+
catalogId: input.catalogId,
|
|
39
|
+
providerModelId: input.catalogId,
|
|
40
|
+
provider: "openai",
|
|
41
|
+
adapterId: "openai-responses",
|
|
42
|
+
displayName: input.displayName,
|
|
43
|
+
capabilities: {
|
|
44
|
+
inputModalities: ["text", "image"],
|
|
45
|
+
outputModalities: ["text"],
|
|
46
|
+
structuredOutput: true,
|
|
47
|
+
providerTools: ["web_search"],
|
|
48
|
+
contextWindowTokens: 1_050_000,
|
|
49
|
+
maxInputTokens: 922_000,
|
|
50
|
+
maxOutputTokens: 128_000
|
|
51
|
+
},
|
|
52
|
+
nativeReasoning: {
|
|
53
|
+
supportedControls: ["effort"],
|
|
54
|
+
disableSupported: true,
|
|
55
|
+
supportedEffortLevels: OPENAI_EFFORT_LEVELS,
|
|
56
|
+
defaultEffort: "medium"
|
|
57
|
+
},
|
|
58
|
+
lifecycle: retired
|
|
59
|
+
? { status: "deprecated", replacementCatalogId: retired.replacementCatalogId }
|
|
60
|
+
: { status: "ga" },
|
|
61
|
+
activePriceRevisionId: `${input.catalogId}-price-${ICC_CATALOG_IMPORT_DATE}`,
|
|
62
|
+
source: providerSource("icc://model-catalog/openai-gpt-5.6", `${ICC_CATALOG_IMPORT_DATE}T00:00:00.000Z`),
|
|
63
|
+
notes: [
|
|
64
|
+
"OpenAI Responses API: strict named JSON Schema, literal native effort, verbosity, image detail including original, authorized search context/max tool calls with source metadata.",
|
|
65
|
+
`Context window, token limits and pricing recorded by ICC's in-repo catalog (retrieved ${ICC_CATALOG_IMPORT_DATE}); provider pages for this tier were not separately fetched by this import.`,
|
|
66
|
+
retired?.deprecatedNote
|
|
67
|
+
].filter(Boolean).join(" ")
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
function zaiTextModel(input) {
|
|
71
|
+
return {
|
|
72
|
+
schemaVersion: 1,
|
|
73
|
+
catalogId: input.catalogId,
|
|
74
|
+
providerModelId: input.catalogId,
|
|
75
|
+
provider: "zai",
|
|
76
|
+
adapterId: "zai-chat-completions",
|
|
77
|
+
displayName: input.displayName,
|
|
78
|
+
capabilities: {
|
|
79
|
+
inputModalities: ["text"],
|
|
80
|
+
outputModalities: ["text"],
|
|
81
|
+
structuredOutput: true,
|
|
82
|
+
providerTools: ["web_search"],
|
|
83
|
+
contextWindowTokens: input.contextWindowTokens,
|
|
84
|
+
maxInputTokens: input.contextWindowTokens,
|
|
85
|
+
maxOutputTokens: input.maxOutputTokens
|
|
86
|
+
},
|
|
87
|
+
nativeReasoning: input.thinking === "always-on"
|
|
88
|
+
? {
|
|
89
|
+
supportedControls: ["thinking"],
|
|
90
|
+
disableSupported: false,
|
|
91
|
+
defaultThinkingEnabled: true,
|
|
92
|
+
notes: "Provider documentation states thinking cannot be disabled; ICC uses clear_thinking: true and maps none/low→low, medium/high→high, xhigh/max→max."
|
|
93
|
+
}
|
|
94
|
+
: {
|
|
95
|
+
supportedControls: ["thinking"],
|
|
96
|
+
disableSupported: true,
|
|
97
|
+
defaultThinkingEnabled: true,
|
|
98
|
+
notes: "Thinking is disableable; ICC's fixed mapping runs this model with thinking disabled and temperature 0.2, preserving UI effort only as migration provenance."
|
|
99
|
+
},
|
|
100
|
+
lifecycle: { status: "ga" },
|
|
101
|
+
activePriceRevisionId: `${input.catalogId}-price-${ICC_CATALOG_IMPORT_DATE}`,
|
|
102
|
+
source: providerSource(input.sourceUri, `${ICC_CATALOG_IMPORT_DATE}T00:00:00.000Z`),
|
|
103
|
+
notes: [input.sourceNote, input.outputCapNote, input.concurrencyLimit ? `ICC concurrency limit ${input.concurrencyLimit}.` : undefined]
|
|
104
|
+
.filter(Boolean)
|
|
105
|
+
.join(" ")
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
function priceRevision(input) {
|
|
109
|
+
return {
|
|
110
|
+
schemaVersion: 1,
|
|
111
|
+
priceRevisionId: `${input.catalogId}-price-${ICC_CATALOG_IMPORT_DATE}`,
|
|
112
|
+
scope: { catalogId: input.catalogId },
|
|
113
|
+
currency: "USD",
|
|
114
|
+
units: "per-million-tokens",
|
|
115
|
+
input: input.input,
|
|
116
|
+
cachedInput: input.cachedInput,
|
|
117
|
+
cacheWriteInput: input.cacheWrite,
|
|
118
|
+
output: input.output,
|
|
119
|
+
servicePrice: input.webSearchPerThousand
|
|
120
|
+
? [{ dimension: "web_search", price: input.webSearchPerThousand, unit: "per-thousand-calls" }]
|
|
121
|
+
: undefined,
|
|
122
|
+
longContextTiers: input.longContext
|
|
123
|
+
? [{
|
|
124
|
+
inputTokenThreshold: input.longContext.inputTokenThreshold,
|
|
125
|
+
inputMultiplier: input.longContext.inputMultiplier,
|
|
126
|
+
outputMultiplier: input.longContext.outputMultiplier
|
|
127
|
+
}]
|
|
128
|
+
: undefined,
|
|
129
|
+
effectiveDate: ICC_CATALOG_IMPORT_DATE,
|
|
130
|
+
source: iccPriceSource(input.catalogId),
|
|
131
|
+
conditions: input.conditions ?? "ICC-recorded published list price; the provider model page does not list per-token rates (checked on the import date).",
|
|
132
|
+
unknownDimensions: input.unknownDimensions
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
const IMPORTED_MODELS = [
|
|
136
|
+
openAiModel({
|
|
137
|
+
catalogId: "gpt-5.6-sol",
|
|
138
|
+
displayName: "GPT-5.6 Sol",
|
|
139
|
+
pricing: { input: 5, cachedInput: 0.5, cacheWrite: 6.25, output: 30 }
|
|
140
|
+
}),
|
|
141
|
+
openAiModel({
|
|
142
|
+
catalogId: "gpt-5.6-terra",
|
|
143
|
+
displayName: "GPT-5.6 Terra",
|
|
144
|
+
pricing: { input: 2.5, cachedInput: 0.25, cacheWrite: 3.125, output: 15 }
|
|
145
|
+
}),
|
|
146
|
+
openAiModel({
|
|
147
|
+
catalogId: "gpt-5.6-luna",
|
|
148
|
+
displayName: "GPT-5.6 Luna",
|
|
149
|
+
pricing: { input: 1, cachedInput: 0.1, cacheWrite: 1.25, output: 6 }
|
|
150
|
+
}),
|
|
151
|
+
openAiModel({
|
|
152
|
+
catalogId: "gpt-5.5",
|
|
153
|
+
displayName: "GPT-5.5 (historical)",
|
|
154
|
+
pricing: { input: 5, cachedInput: 0.5, output: 30 },
|
|
155
|
+
retired: {
|
|
156
|
+
replacementCatalogId: "gpt-5.6-sol",
|
|
157
|
+
deprecatedNote: "Superseded by GPT-5.6 Sol; retained only for historical usage attribution and never selectable for new work."
|
|
158
|
+
}
|
|
159
|
+
}),
|
|
160
|
+
{
|
|
161
|
+
schemaVersion: 1,
|
|
162
|
+
catalogId: "gemini-3.1-pro-preview",
|
|
163
|
+
providerModelId: "gemini-3.1-pro-preview",
|
|
164
|
+
provider: "gemini",
|
|
165
|
+
adapterId: "gemini-generate-content",
|
|
166
|
+
displayName: "Gemini 3.1 Pro Preview",
|
|
167
|
+
capabilities: {
|
|
168
|
+
inputModalities: ["text", "image"],
|
|
169
|
+
outputModalities: ["text"],
|
|
170
|
+
structuredOutput: true,
|
|
171
|
+
providerTools: [],
|
|
172
|
+
contextWindowTokens: 1_048_576,
|
|
173
|
+
maxInputTokens: 1_048_576,
|
|
174
|
+
maxOutputTokens: 65_536
|
|
175
|
+
},
|
|
176
|
+
nativeReasoning: {
|
|
177
|
+
supportedControls: ["thinking"],
|
|
178
|
+
disableSupported: true,
|
|
179
|
+
defaultThinkingEnabled: true,
|
|
180
|
+
notes: "ICC keeps provider-default thinking with temperature 0.2; no synthetic effort is applied."
|
|
181
|
+
},
|
|
182
|
+
lifecycle: { status: "preview" },
|
|
183
|
+
activePriceRevisionId: `gemini-3.1-pro-preview-price-${ICC_CATALOG_IMPORT_DATE}`,
|
|
184
|
+
source: providerSource("https://ai.google.dev/gemini-api/docs/models/gemini-3.1-pro-preview", `${ICC_CATALOG_IMPORT_DATE}T00:00:00.000Z`),
|
|
185
|
+
notes: "Structured output uses responseJsonSchema (the verified current API shape); thought parts are excluded from the final answer. No Gemini search in this migration. Token limits retrieved from the provider model page; context caching supported."
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
schemaVersion: 1,
|
|
189
|
+
catalogId: "gemini-2.5-pro",
|
|
190
|
+
providerModelId: "gemini-2.5-pro",
|
|
191
|
+
provider: "gemini",
|
|
192
|
+
adapterId: "gemini-generate-content",
|
|
193
|
+
displayName: "Gemini 2.5 Pro (historical)",
|
|
194
|
+
capabilities: {
|
|
195
|
+
inputModalities: ["text", "image"],
|
|
196
|
+
outputModalities: ["text"],
|
|
197
|
+
structuredOutput: true,
|
|
198
|
+
providerTools: [],
|
|
199
|
+
contextWindowTokens: 1_048_576,
|
|
200
|
+
maxInputTokens: 1_048_576,
|
|
201
|
+
maxOutputTokens: 65_536
|
|
202
|
+
},
|
|
203
|
+
nativeReasoning: {
|
|
204
|
+
supportedControls: ["thinking"],
|
|
205
|
+
disableSupported: true,
|
|
206
|
+
defaultThinkingEnabled: true
|
|
207
|
+
},
|
|
208
|
+
lifecycle: { status: "retired", replacementCatalogId: "glm-5.3-flash" },
|
|
209
|
+
activePriceRevisionId: `gemini-2.5-pro-price-${ICC_CATALOG_IMPORT_DATE}`,
|
|
210
|
+
source: providerSource("icc://model-catalog/gemini-2.5-pro", `${ICC_CATALOG_IMPORT_DATE}T00:00:00.000Z`),
|
|
211
|
+
notes: "Retained only for historical attribution; disabled in ICC after account-level Gemini API availability failures. Token limits inherited from the Gemini family page are unverified for this retired tier."
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
schemaVersion: 1,
|
|
215
|
+
catalogId: "glm-5.3-flash",
|
|
216
|
+
providerModelId: "glm-5.3-flash",
|
|
217
|
+
provider: "zai",
|
|
218
|
+
adapterId: "zai-chat-completions",
|
|
219
|
+
displayName: "GLM-5.3-Flash",
|
|
220
|
+
capabilities: {
|
|
221
|
+
inputModalities: ["text", "image"],
|
|
222
|
+
outputModalities: ["text"],
|
|
223
|
+
structuredOutput: true,
|
|
224
|
+
providerTools: ["web_search"],
|
|
225
|
+
contextWindowTokens: 1_048_576,
|
|
226
|
+
maxInputTokens: 1_048_576,
|
|
227
|
+
maxOutputTokens: 131_072
|
|
228
|
+
},
|
|
229
|
+
nativeReasoning: {
|
|
230
|
+
supportedControls: ["effort", "thinking"],
|
|
231
|
+
disableSupported: false,
|
|
232
|
+
defaultThinkingEnabled: true,
|
|
233
|
+
supportedEffortLevels: ["low", "high", "max"],
|
|
234
|
+
notes: "Provider documentation states thinking is always on and cannot be disabled. The effort control carries the escalation mapping (the chat-completions wire shape is reasoning_effort plus thinking enabled with clear_thinking: true and temperature 1); profiles translate caller hints none/low→low, medium/xhigh/high→high, max→max."
|
|
235
|
+
},
|
|
236
|
+
lifecycle: { status: "ga" },
|
|
237
|
+
activePriceRevisionId: `glm-5.3-flash-price-${ICC_CATALOG_IMPORT_DATE}`,
|
|
238
|
+
source: providerSource("https://docs.z.ai/guides/vlm/glm-5.3-flash", `${ICC_CATALOG_IMPORT_DATE}T00:00:00.000Z`),
|
|
239
|
+
notes: "Multimodal per the provider page (image, video, text and file input); ICC nonetheless keeps its Sol-only default image chain and uses Flash for text fallback work. JSON-object output with the schema in the system prompt."
|
|
240
|
+
},
|
|
241
|
+
zaiTextModel({
|
|
242
|
+
catalogId: "glm-5.2",
|
|
243
|
+
displayName: "GLM-5.2",
|
|
244
|
+
sourceUri: "https://docs.z.ai/guides/llm/glm-5.2",
|
|
245
|
+
sourceNote: "1M-token context and 128K maximum output retrieved from the provider model page; text-only input.",
|
|
246
|
+
contextWindowTokens: 1_048_576,
|
|
247
|
+
maxOutputTokens: 131_072,
|
|
248
|
+
thinking: "disableable",
|
|
249
|
+
concurrencyLimit: 10
|
|
250
|
+
}),
|
|
251
|
+
zaiTextModel({
|
|
252
|
+
catalogId: "glm-4.7",
|
|
253
|
+
displayName: "GLM-4.7",
|
|
254
|
+
sourceUri: "https://docs.z.ai/guides/llm/glm-4.7",
|
|
255
|
+
sourceNote: "200K-token context and 128K maximum output retrieved from the provider model page; text-only input.",
|
|
256
|
+
contextWindowTokens: 204_800,
|
|
257
|
+
maxOutputTokens: 131_072,
|
|
258
|
+
thinking: "disableable",
|
|
259
|
+
concurrencyLimit: 2
|
|
260
|
+
}),
|
|
261
|
+
zaiTextModel({
|
|
262
|
+
catalogId: "glm-4.5",
|
|
263
|
+
displayName: "GLM-4.5 (historical)",
|
|
264
|
+
sourceUri: "https://docs.z.ai/guides/llm/glm-4.5",
|
|
265
|
+
sourceNote: "128K-token context from the provider family page; disabled as a selectable option in ICC because GLM-4.7 shares its published price tier.",
|
|
266
|
+
contextWindowTokens: 131_072,
|
|
267
|
+
maxOutputTokens: 131_072,
|
|
268
|
+
thinking: "disableable"
|
|
269
|
+
}),
|
|
270
|
+
zaiTextModel({
|
|
271
|
+
catalogId: "glm-4.5-air",
|
|
272
|
+
displayName: "GLM-4.5-Air",
|
|
273
|
+
sourceUri: "https://docs.z.ai/guides/llm/glm-4.5",
|
|
274
|
+
sourceNote: "128K-token context from the provider family page covering GLM-4.5 and GLM-4.5-Air.",
|
|
275
|
+
contextWindowTokens: 131_072,
|
|
276
|
+
maxOutputTokens: 98_304,
|
|
277
|
+
thinking: "disableable",
|
|
278
|
+
concurrencyLimit: 5,
|
|
279
|
+
outputCapNote: "96K output cap recorded from third-party listings; the official family page does not state the output cap."
|
|
280
|
+
})
|
|
281
|
+
];
|
|
282
|
+
const IMPORTED_PRICES = [
|
|
283
|
+
priceRevision({ catalogId: "gpt-5.6-sol", input: 5, cachedInput: 0.5, cacheWrite: 6.25, output: 30, webSearchPerThousand: 10, longContext: { inputTokenThreshold: 272_000, inputMultiplier: 2, outputMultiplier: 1.5 } }),
|
|
284
|
+
priceRevision({ catalogId: "gpt-5.6-terra", input: 2.5, cachedInput: 0.25, cacheWrite: 3.125, output: 15, webSearchPerThousand: 10, longContext: { inputTokenThreshold: 272_000, inputMultiplier: 2, outputMultiplier: 1.5 } }),
|
|
285
|
+
priceRevision({ catalogId: "gpt-5.6-luna", input: 1, cachedInput: 0.1, cacheWrite: 1.25, output: 6, webSearchPerThousand: 10, longContext: { inputTokenThreshold: 272_000, inputMultiplier: 2, outputMultiplier: 1.5 } }),
|
|
286
|
+
priceRevision({ catalogId: "gpt-5.5", input: 5, cachedInput: 0.5, output: 30, webSearchPerThousand: 10 }),
|
|
287
|
+
priceRevision({ catalogId: "gemini-3.1-pro-preview", input: 2, cachedInput: 0.2, output: 12, conditions: "prompt <= 200k tier per ICC's recorded pricing; long-context multipliers apply above 200k.", longContext: { inputTokenThreshold: 200_000, inputMultiplier: 2, outputMultiplier: 1.5 } }),
|
|
288
|
+
priceRevision({ catalogId: "gemini-2.5-pro", input: 1.25, cachedInput: 0.125, output: 10, conditions: "prompt <= 200k tier per ICC's recorded pricing; retired model, historical attribution only." }),
|
|
289
|
+
priceRevision({ catalogId: "glm-5.3-flash", input: 0.15, cachedInput: 0.03, output: 0.5, conditions: "ICC-recorded published list price rather than temporary discounts." }),
|
|
290
|
+
priceRevision({ catalogId: "glm-5.2", input: 1.4, cachedInput: 0.26, output: 4.4 }),
|
|
291
|
+
priceRevision({ catalogId: "glm-4.7", input: 0.6, cachedInput: 0.11, output: 2.2 }),
|
|
292
|
+
priceRevision({ catalogId: "glm-4.5", input: 0.6, cachedInput: 0.11, output: 2.2, conditions: "Same published tier as GLM-4.7; model is disabled for selection in ICC." }),
|
|
293
|
+
priceRevision({ catalogId: "glm-4.5-air", input: 0.2, cachedInput: 0.03, output: 1.1 })
|
|
294
|
+
];
|
|
295
|
+
/** ICC's production catalog release: exactly the configured models, dated evidence, per-model immutable prices. */
|
|
296
|
+
export function buildIccProductionCatalogRelease(options) {
|
|
297
|
+
return {
|
|
298
|
+
schemaVersion: 1,
|
|
299
|
+
catalogRevision: options?.catalogRevision ?? `icc-${ICC_CATALOG_REVISION_DATE}`,
|
|
300
|
+
publishedAt: options?.publishedAt ?? `${ICC_CATALOG_IMPORT_DATE}T00:00:00.000Z`,
|
|
301
|
+
models: structuredClone(IMPORTED_MODELS),
|
|
302
|
+
prices: structuredClone(IMPORTED_PRICES),
|
|
303
|
+
notes: [
|
|
304
|
+
`Imported ${ICC_CATALOG_IMPORT_DATE} from ICC's configured model set: OpenAI gpt-5.6 tiers (sol/terra/luna), ZAI GLM-5.3-Flash, GLM-5.2, GLM-4.7, GLM-4.5-Air and Gemini 3.1 Pro Preview, plus retired tiers kept for historical attribution.`,
|
|
305
|
+
"Provider page evidence covers context windows, modalities and thinking behavior; token prices come from ICC's in-repo catalog because the provider model pages do not list rates.",
|
|
306
|
+
"Moonshot, DeepSeek and gemini-2.5-flash are deliberately absent: no key, no adapter use in ICC, and discovery alone never promotes a model."
|
|
307
|
+
].join(" ")
|
|
308
|
+
};
|
|
309
|
+
}
|
|
310
|
+
/** Model IDs ICC actually routes to (enabled set, excluding retired tiers). */
|
|
311
|
+
export const ICC_ACTIVE_CATALOG_IDS = [
|
|
312
|
+
"gpt-5.6-sol",
|
|
313
|
+
"gpt-5.6-terra",
|
|
314
|
+
"gpt-5.6-luna",
|
|
315
|
+
"gemini-3.1-pro-preview",
|
|
316
|
+
"glm-5.3-flash",
|
|
317
|
+
"glm-5.2",
|
|
318
|
+
"glm-4.7",
|
|
319
|
+
"glm-4.5-air"
|
|
320
|
+
];
|
|
321
|
+
//# source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alogRelease, ExecutionProfileRevision } from "./entities.js";
|
|
2
|
+
/**
|
|
3
|
+
* Reusable execution configurations derived from the 2026-09-16 ICC and CSF workload review.
|
|
4
|
+
* Persona instructions remain in the client repositories; these records contain execution policy only.
|
|
5
|
+
*/
|
|
6
|
+
export declare const ICC_CSF_CATALOG_REVISION = "2026-09-16T04:32:04.568Z";
|
|
7
|
+
/**
|
|
8
|
+
* Schema-v2 profile revision (defaults/caps/execution/effortPolicy). The v1 revisions of
|
|
9
|
+
* the same profiles remain immutable history; basedOnRevision records the lineage.
|
|
10
|
+
*/
|
|
11
|
+
export declare const ICC_CSF_PROFILE_REVISION = "2026-09-16T20:45:00.000Z";
|
|
12
|
+
/** A source-verified catalog release that retains the prior ICC catalog's unselected historical entries. */
|
|
13
|
+
export declare function buildIccCsfCatalogRelease(): CatalogRelease;
|
|
14
|
+
/** Six profiles cover the meaningful quality, cost, search, latency, and modality differences found in ICC and CSF. */
|
|
15
|
+
export declare function buildIccCsfProfiles(): ExecutionProfileRevision[];
|
|
16
|
+
export declare const ICC_PERSONA_PROFILE_MAPPING: Readonly<Record<string, string>>;
|
|
17
|
+
export declare const ICC_OPERATION_PROFILE_OVERRIDES: Readonly<Record<string, string>>;
|
|
18
|
+
export declare const CSF_PERSONA_PROFILE_MAPPING: Readonly<Record<string, string>>;
|
|
19
|
+
export declare const CSF_OPERATION_PROFILE_OVERRIDES: Readonly<Record<string, string>>;
|
|
20
|
+
export declare const ICC_PROFILE_OFFERINGS: {
|
|
21
|
+
profileId: string;
|
|
22
|
+
revision: string;
|
|
23
|
+
}[];
|
|
24
|
+
export declare const CSF_PROFILE_OFFERINGS: {
|
|
25
|
+
profileId: string;
|
|
26
|
+
revision: string;
|
|
27
|
+
}[];
|
|
28
|
+
//# sourceMappingURL=icc-csf-profiles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icc-csf-profiles.d.ts","sourceRoot":"","sources":["../src/icc-csf-profiles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,wBAAwB,EAGzB,MAAM,eAAe,CAAC;AAGvB;;;GAGG;AACH,eAAO,MAAM,wBAAwB,6BAA6B,CAAC;AACnE;;;GAGG;AACH,eAAO,MAAM,wBAAwB,6BAA6B,CAAC;AA6InE,4GAA4G;AAC5G,wBAAgB,yBAAyB,IAAI,cAAc,CA2B1D;AA0FD,uHAAuH;AACvH,wBAAgB,mBAAmB,IAAI,wBAAwB,EAAE,CA+GhE;AAED,eAAO,MAAM,2BAA2B,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAqBxE,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAS1E,CAAC;AAEJ,eAAO,MAAM,2BAA2B,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAiBxE,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAW1E,CAAC;AAEJ,eAAO,MAAM,qBAAqB;;;GAEjC,CAAC;AACF,eAAO,MAAM,qBAAqB;;;GAEjC,CAAC"}
|