@techis/ai-runtime 0.4.0-rc.4 → 0.4.0-rc.5
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/API.md +13 -13
- package/README.md +18 -16
- package/dist/catalog-reader-configuration.js +6 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +35 -35
package/API.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# Runtime API guide
|
|
1
|
+
# Model Routes Runtime API guide
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## Reviewed Route adoption
|
|
4
4
|
|
|
5
5
|
`startRun` accepts exactly one of `routeId` or `routeName`. Persist stable IDs in application assignments; ID selection resolves captured
|
|
6
6
|
membership directly and survives rename/name reuse. Use `createFileRouteSetResolver` for frozen JSON or `createHttpRouteSetJsonResolver`
|
|
@@ -21,18 +21,18 @@ Complete repository recipes and the exact protocol are in `docs/greenfield-adopt
|
|
|
21
21
|
`docs/embedded-models-adoption-api.md`, `examples/consumer/src/adopted-route-host.ts` and `examples/consumer/src/direct-model.ts`.
|
|
22
22
|
Candidate archives are qualified on Windows x64 with Node 24.20.0; no publication, deployment or installed-application change is implied.
|
|
23
23
|
|
|
24
|
-
## Request routes and route sets
|
|
25
|
-
|
|
26
|
-
New integrations use `RequestRoute`, `routeId`, `routeName`, `RouteSet` and `routeSetId`. A request route contains a primary model,
|
|
27
|
-
its settings and optional ordered backups; a route set collects named routes for loading together. Use `createAIClient` with
|
|
28
|
-
`routeSetSource(createHttpRouteSetResolver(...))` and `startRun({ routeName, systemInstructions })`, or `createRequestRouteRun` for
|
|
29
|
-
an independently held route. The host supplies provider credentials and endpoints. Workspace/persona registration is unnecessary.
|
|
30
|
-
|
|
24
|
+
## Request routes and route sets
|
|
25
|
+
|
|
26
|
+
New integrations use `RequestRoute`, `routeId`, `routeName`, `RouteSet` and `routeSetId`. A request route contains a primary model,
|
|
27
|
+
its settings and optional ordered backups; a route set collects named routes for loading together. Use `createAIClient` with
|
|
28
|
+
`routeSetSource(createHttpRouteSetResolver(...))` and `startRun({ routeName, systemInstructions })`, or `createRequestRouteRun` for
|
|
29
|
+
an independently held route. The host supplies provider credentials and endpoints. Workspace/persona registration is unnecessary.
|
|
30
|
+
|
|
31
31
|
The source repository includes `docs/request-routes.md` and `docs/route-terminology-migration-2026-10-30.md`; the example below uses
|
|
32
32
|
only the installed public packages. See also [package migration notes](MIGRATION.md#request-route-and-route-set-terminology).
|
|
33
|
-
Old profile/model-configuration SDK names remain deprecated compatibility paths; their historical examples below retain those signatures.
|
|
34
|
-
Canonical route-set snapshots use schema 5; route execution receipts use schema 6. Existing identifiers, history and old JSON remain readable
|
|
35
|
-
through the supplied codecs. Packages and remote services have not been published or deployed by this local change.
|
|
33
|
+
Old profile/model-configuration SDK names remain deprecated compatibility paths; their historical examples below retain those signatures.
|
|
34
|
+
Canonical route-set snapshots use schema 5; route execution receipts use schema 6. Existing identifiers, history and old JSON remain readable
|
|
35
|
+
through the supplied codecs. Packages and remote services have not been published or deployed by this local change.
|
|
36
36
|
|
|
37
37
|
```ts
|
|
38
38
|
import { createAIClient, createHttpRouteSetResolver, routeSetSource, type RouteCredentialResolver } from "@techis/ai-runtime";
|
|
@@ -56,7 +56,7 @@ applicationId. The host's execution applicationId is its actual attribution iden
|
|
|
56
56
|
Instructions and provider access remain host-owned and outside route-set content. `routeSetDownloadUrl` produces the authenticated
|
|
57
57
|
management URL; credentials belong in headers. `createRequestRouteRun` executes an independently held RequestRoute/catalog directly.
|
|
58
58
|
`readRequestRouteExport` reads new single-route JSON and older verified Studio single-route bundles. No workspace or persona is created.
|
|
59
|
-
|
|
59
|
+
|
|
60
60
|
## Independent catalog discovery
|
|
61
61
|
|
|
62
62
|
`createPublishedCatalogDeliveryClient({ store, source? })` supplies the installed baseline, reader version and release-provisioned catalog
|
package/README.md
CHANGED
|
@@ -1,27 +1,29 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Model Routes Runtime
|
|
2
|
+
|
|
3
|
+
Current source candidate: **0.4.0-rc.5**, unpublished. Install the published pair below until a new exact release is approved.
|
|
2
4
|
|
|
3
5
|
The Embedded Models adoption candidate adds direct stable-Route-ID selection, anonymous JSON/file sources, host-owned durable
|
|
4
6
|
import/qualification/activation/rollback, readiness and optional required-feature policies. `createModelRun` executes one exact model and
|
|
5
7
|
settings through the common engine and emits a separate truthful `DirectModelExecutionReceipt`. See [the API additions](API.md).
|
|
6
8
|
Applications retain their instructions, provider credentials, functions, execution-point assignments and orchestration. Qualification uses
|
|
7
9
|
Node 24.20.0 on Windows x64; other runtime/platform combinations need their own checks.
|
|
8
|
-
|
|
9
|
-
## Request routes and route sets
|
|
10
|
-
|
|
11
|
-
New integrations use `RequestRoute`, `routeId`, `routeName`, `RouteSet` and `routeSetId`. A request route contains a primary model,
|
|
12
|
-
its settings and optional ordered backups; a route set collects named routes for loading together. Use `createAIClient` with
|
|
13
|
-
`routeSetSource(createHttpRouteSetResolver(...))` and `startRun({ routeName, systemInstructions })`, or `createRequestRouteRun` for
|
|
14
|
-
an independently held route. The host supplies provider credentials and endpoints. Workspace/persona registration is unnecessary.
|
|
15
|
-
|
|
16
|
-
The source repository includes docs/request-routes.md and docs/route-terminology-migration-2026-10-30.md. The runtime package includes the matching API.md and MIGRATION.md guides.
|
|
17
|
-
Old profile/model-configuration SDK names remain deprecated compatibility paths; their historical examples below retain those signatures.
|
|
18
|
-
Canonical route-set snapshots use schema 5; route execution receipts use schema 6. Existing identifiers, history and old JSON remain readable
|
|
19
|
-
through the supplied codecs. Packages and remote services have not been published or deployed by this local change.
|
|
20
|
-
|
|
21
10
|
|
|
22
|
-
|
|
11
|
+
## Request routes and route sets
|
|
12
|
+
|
|
13
|
+
New integrations use `RequestRoute`, `routeId`, `routeName`, `RouteSet` and `routeSetId`. A request route contains a primary model,
|
|
14
|
+
its settings and optional ordered backups; a route set collects named routes for loading together. Use `createAIClient` with
|
|
15
|
+
`routeSetSource(createHttpRouteSetResolver(...))` and `startRun({ routeName, systemInstructions })`, or `createRequestRouteRun` for
|
|
16
|
+
an independently held route. The host supplies provider credentials and endpoints. Workspace/persona registration is unnecessary.
|
|
17
|
+
|
|
18
|
+
The source repository includes docs/request-routes.md and docs/route-terminology-migration-2026-10-30.md. The runtime package includes the matching API.md and MIGRATION.md guides.
|
|
19
|
+
Old profile/model-configuration SDK names remain deprecated compatibility paths; their historical examples below retain those signatures.
|
|
20
|
+
Canonical route-set snapshots use schema 5; route execution receipts use schema 6. Existing identifiers, history and old JSON remain readable
|
|
21
|
+
through the supplied codecs. Packages and remote services have not been published or deployed by this local change.
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
The published preview is the exact `0.4.0-rc.4` Runtime/contracts pair. Runtime `next` selects that pair; `latest` still selects `0.3.0-rc.15`. Use exact matching pins. Current Model Routes naming and later source changes are release-preparation work, distinct from the published bytes. Qualification is scoped to Windows x64 with Node 24.20.0.
|
|
23
25
|
|
|
24
|
-
|
|
26
|
+
Model Routes Runtime executes application-defined work through versioned configuration: pinned models and instructions, independent primary/backup controls, bounded retries, cancellation and one terminal execution receipt. Applications own their functions, tool loops and workflows. Provider adapters carry provider-hosted search.
|
|
25
27
|
|
|
26
28
|
Runs expose both `responses.create` and `chat.completions.create` coding styles, plus the existing final-result `generate` API. The styles help clients preserve familiar call shapes; they cover the documented shared contract, not every member of a provider SDK. Both styles use the same configured routing and native adapter. OpenAI outbound requests use Responses.
|
|
27
29
|
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
export const CATALOG_READER = {
|
|
1
|
+
/** A release step supplies the read-only function-scoped key in dist; no operator credential belongs in a public package. */
|
|
2
|
+
export const CATALOG_READER = {
|
|
3
|
+
url: "https://func-techis-embedded-models-stg-f3bb.azurewebsites.net/catalog/updates",
|
|
4
|
+
functionKey: ""
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=catalog-reader-configuration.js.map
|
package/dist/version.d.ts
CHANGED
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@techis/ai-runtime",
|
|
3
|
-
"version": "0.4.0-rc.
|
|
4
|
-
"type": "module",
|
|
5
|
-
"description": "
|
|
6
|
-
"main": "./dist/index.js",
|
|
7
|
-
"types": "./dist/index.d.ts",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"types": "./dist/index.d.ts",
|
|
11
|
-
"default": "./dist/index.js"
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
"files": [
|
|
15
|
-
"dist",
|
|
16
|
-
"LICENSE",
|
|
17
|
-
"README.md",
|
|
18
|
-
"API.md",
|
|
19
|
-
"MIGRATION.md",
|
|
20
|
-
"ADAPTER-AUTHORING.md",
|
|
21
|
-
"ADAPTER-CONFORMANCE.md",
|
|
22
|
-
"OPENAI-RESPONSES.md",
|
|
23
|
-
"ZAI-CHAT.md",
|
|
24
|
-
"GEMINI-INTERACTIONS.md",
|
|
25
|
-
"MOONSHOT-CHAT.md",
|
|
26
|
-
"ANTHROPIC-MESSAGES.md",
|
|
27
|
-
"THIRD_PARTY_NOTICES",
|
|
28
|
-
"third-party-licenses",
|
|
29
|
-
"third-party-licenses.json"
|
|
30
|
-
],
|
|
31
|
-
"dependencies": {
|
|
32
|
-
"@techis/ai-contracts": "0.4.0-rc.
|
|
33
|
-
},
|
|
34
|
-
"license": "SEE LICENSE IN LICENSE"
|
|
35
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@techis/ai-runtime",
|
|
3
|
+
"version": "0.4.0-rc.5",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Model Routes Runtime: free application-owned model execution, provider adapters, ordered backups and execution receipts.",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"default": "./dist/index.js"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"dist",
|
|
16
|
+
"LICENSE",
|
|
17
|
+
"README.md",
|
|
18
|
+
"API.md",
|
|
19
|
+
"MIGRATION.md",
|
|
20
|
+
"ADAPTER-AUTHORING.md",
|
|
21
|
+
"ADAPTER-CONFORMANCE.md",
|
|
22
|
+
"OPENAI-RESPONSES.md",
|
|
23
|
+
"ZAI-CHAT.md",
|
|
24
|
+
"GEMINI-INTERACTIONS.md",
|
|
25
|
+
"MOONSHOT-CHAT.md",
|
|
26
|
+
"ANTHROPIC-MESSAGES.md",
|
|
27
|
+
"THIRD_PARTY_NOTICES",
|
|
28
|
+
"third-party-licenses",
|
|
29
|
+
"third-party-licenses.json"
|
|
30
|
+
],
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@techis/ai-contracts": "0.4.0-rc.5"
|
|
33
|
+
},
|
|
34
|
+
"license": "SEE LICENSE IN LICENSE"
|
|
35
|
+
}
|