@adea-ai/runtime-sdk 3.1.0 → 3.1.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/README.md +7 -7
- package/dist/fixtures.d.ts +3 -3
- package/dist/fixtures.js +14 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# @control-plane/runtime-sdk
|
|
2
2
|
|
|
3
3
|
SDK for building runtimes that plug into the Control Plane: implement the
|
|
4
|
-
adapter interface, declare capabilities, and pass conformance
|
|
4
|
+
adapter interface, declare capabilities, and pass conformance, without
|
|
5
5
|
touching Control Plane internals.
|
|
6
6
|
|
|
7
7
|
Depends only on [`@adea-ai/contracts`](https://www.npmjs.com/package/@adea-ai/contracts)
|
|
@@ -10,15 +10,15 @@ for the service boundary.
|
|
|
10
10
|
|
|
11
11
|
## What's inside
|
|
12
12
|
|
|
13
|
-
- **Adapter
|
|
14
|
-
- **Capabilities & eligibility
|
|
13
|
+
- **Adapter**: the runtime adapter contract and registration types.
|
|
14
|
+
- **Capabilities & eligibility**: declare what a runtime supports and let
|
|
15
15
|
the Control Plane route accordingly.
|
|
16
|
-
- **Discovery & inventory
|
|
16
|
+
- **Discovery & inventory**: runtime discovery records, health, and
|
|
17
17
|
eligibility evaluation.
|
|
18
|
-
- **Conformance & compatibility
|
|
18
|
+
- **Conformance & compatibility**: versioned conformance suites and
|
|
19
19
|
compatibility checks for runtime implementations.
|
|
20
|
-
- **Sessions & routing
|
|
21
|
-
- **Transport
|
|
20
|
+
- **Sessions & routing**: external session types and routing decisions.
|
|
21
|
+
- **Transport**: the co-located transport port with deterministic in-memory
|
|
22
22
|
doubles (`mock.ts`, `fixtures.ts`) for testing adapters.
|
|
23
23
|
|
|
24
24
|
Runtime usage accounting distinguishes HQ-funded API usage (`hq_managed`),
|
package/dist/fixtures.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const RuntimeFixtures: Readonly<{
|
|
2
|
-
mock: {
|
|
2
|
+
readonly mock: {
|
|
3
3
|
runtimeDefinitionId: import("@adea-ai/contracts").OpaqueIdentifier<"runtime-definition ID">;
|
|
4
4
|
family: string;
|
|
5
5
|
adapterVersion: string;
|
|
@@ -28,7 +28,7 @@ export declare const RuntimeFixtures: Readonly<{
|
|
|
28
28
|
reason?: string | undefined;
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
|
-
futurePi: {
|
|
31
|
+
readonly futurePi: {
|
|
32
32
|
runtimeDefinitionId: import("@adea-ai/contracts").OpaqueIdentifier<"runtime-definition ID">;
|
|
33
33
|
family: string;
|
|
34
34
|
adapterVersion: string;
|
|
@@ -57,7 +57,7 @@ export declare const RuntimeFixtures: Readonly<{
|
|
|
57
57
|
reason?: string | undefined;
|
|
58
58
|
};
|
|
59
59
|
};
|
|
60
|
-
futureAcp: {
|
|
60
|
+
readonly futureAcp: {
|
|
61
61
|
runtimeDefinitionId: import("@adea-ai/contracts").OpaqueIdentifier<"runtime-definition ID">;
|
|
62
62
|
family: string;
|
|
63
63
|
adapterVersion: string;
|
package/dist/fixtures.js
CHANGED
|
@@ -5,7 +5,7 @@ const testedVersions = {
|
|
|
5
5
|
driverVersion: '1.0.0',
|
|
6
6
|
harnessVersion: '1.0.0',
|
|
7
7
|
};
|
|
8
|
-
|
|
8
|
+
const buildFixtures = () => ({
|
|
9
9
|
mock: runtime('rtd_01JABCDEF0123456789ABCDEFG', 'mock', [
|
|
10
10
|
capability('stream.output'),
|
|
11
11
|
capability('output.structured'),
|
|
@@ -28,6 +28,19 @@ export const RuntimeFixtures = Object.freeze({
|
|
|
28
28
|
capability('session.load'),
|
|
29
29
|
]),
|
|
30
30
|
});
|
|
31
|
+
let built;
|
|
32
|
+
const fixtures = () => (built ??= buildFixtures());
|
|
33
|
+
export const RuntimeFixtures = Object.freeze({
|
|
34
|
+
get mock() {
|
|
35
|
+
return fixtures().mock;
|
|
36
|
+
},
|
|
37
|
+
get futurePi() {
|
|
38
|
+
return fixtures().futurePi;
|
|
39
|
+
},
|
|
40
|
+
get futureAcp() {
|
|
41
|
+
return fixtures().futureAcp;
|
|
42
|
+
},
|
|
43
|
+
});
|
|
31
44
|
function runtime(runtimeDefinitionId, family, capabilities) {
|
|
32
45
|
return RuntimeDefinitionSchema.parse({
|
|
33
46
|
runtimeDefinitionId,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adea-ai/runtime-sdk",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"description": "SDK for building Control Plane runtimes: adapters, capabilities, conformance, discovery, eligibility, health, sessions, transport, and routing.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"adapter",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"test": "bun test src"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@adea-ai/contracts": "^5.0.
|
|
45
|
+
"@adea-ai/contracts": "^5.0.4",
|
|
46
46
|
"zod": "4.6.6"
|
|
47
47
|
},
|
|
48
48
|
"engines": {
|