@adea-ai/runtime-sdk 1.17.1 → 1.18.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/adapter.d.ts +0 -20
- package/dist/adapter.js +0 -26
- package/dist/agent-plugins.d.ts +0 -5
- package/dist/agent-plugins.js +0 -5
- package/dist/capabilities.d.ts +0 -1
- package/dist/capabilities.js +0 -1
- package/dist/channel-ownership.d.ts +0 -3
- package/dist/channel-ownership.js +0 -1
- package/dist/compatibility.d.ts +0 -1
- package/dist/compatibility.js +0 -1
- package/dist/conformance.d.ts +0 -1
- package/dist/conformance.js +0 -1
- package/dist/discovery.d.ts +0 -1
- package/dist/discovery.js +0 -1
- package/dist/eligibility.d.ts +0 -1
- package/dist/eligibility.js +0 -1
- package/dist/fixtures.d.ts +0 -1
- package/dist/fixtures.js +0 -1
- package/dist/health.d.ts +0 -1
- package/dist/health.js +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/inventory.d.ts +0 -2
- package/dist/inventory.js +0 -1
- package/dist/mock.d.ts +0 -1
- package/dist/mock.js +0 -1
- package/dist/models.d.ts +0 -1
- package/dist/models.js +0 -1
- package/dist/pi-durable-lead.d.ts +198 -1473
- package/dist/pi-durable-lead.js +46 -63
- package/dist/registry.d.ts +0 -1
- package/dist/registry.js +0 -1
- package/dist/routing.d.ts +0 -1
- package/dist/routing.js +0 -6
- package/dist/sessions.d.ts +0 -1
- package/dist/sessions.js +0 -1
- package/dist/transport.d.ts +0 -15
- package/dist/transport.js +0 -7
- package/package.json +3 -3
- package/dist/adapter.d.ts.map +0 -1
- package/dist/adapter.js.map +0 -1
- package/dist/agent-plugins.d.ts.map +0 -1
- package/dist/agent-plugins.js.map +0 -1
- package/dist/capabilities.d.ts.map +0 -1
- package/dist/capabilities.js.map +0 -1
- package/dist/channel-ownership.d.ts.map +0 -1
- package/dist/channel-ownership.js.map +0 -1
- package/dist/compatibility.d.ts.map +0 -1
- package/dist/compatibility.js.map +0 -1
- package/dist/conformance.d.ts.map +0 -1
- package/dist/conformance.js.map +0 -1
- package/dist/discovery.d.ts.map +0 -1
- package/dist/discovery.js.map +0 -1
- package/dist/eligibility.d.ts.map +0 -1
- package/dist/eligibility.js.map +0 -1
- package/dist/fixtures.d.ts.map +0 -1
- package/dist/fixtures.js.map +0 -1
- package/dist/health.d.ts.map +0 -1
- package/dist/health.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/inventory.d.ts.map +0 -1
- package/dist/inventory.js.map +0 -1
- package/dist/mock.d.ts.map +0 -1
- package/dist/mock.js.map +0 -1
- package/dist/models.d.ts.map +0 -1
- package/dist/models.js.map +0 -1
- package/dist/pi-durable-lead.d.ts.map +0 -1
- package/dist/pi-durable-lead.js.map +0 -1
- package/dist/registry.d.ts.map +0 -1
- package/dist/registry.js.map +0 -1
- package/dist/routing.d.ts.map +0 -1
- package/dist/routing.js.map +0 -1
- package/dist/sessions.d.ts.map +0 -1
- package/dist/sessions.js.map +0 -1
- package/dist/transport.d.ts.map +0 -1
- package/dist/transport.js.map +0 -1
package/dist/adapter.d.ts
CHANGED
|
@@ -185,10 +185,6 @@ export declare const RuntimeExecutionHandleSchema: z.ZodObject<{
|
|
|
185
185
|
externalSessionId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"external-session ID">, string>>>;
|
|
186
186
|
startedAt: z.ZodISODateTime;
|
|
187
187
|
}, z.core.$strict>;
|
|
188
|
-
/**
|
|
189
|
-
* Reported runtime accounting provenance, not funding authorization. Consumers
|
|
190
|
-
* must verify `sourceId` against a trusted authority before charging.
|
|
191
|
-
*/
|
|
192
188
|
export declare const RuntimeUsageAccountingSchema: z.ZodObject<{
|
|
193
189
|
schemaVersion: z.ZodLiteral<1>;
|
|
194
190
|
sourceId: z.ZodString;
|
|
@@ -293,20 +289,6 @@ export declare const RuntimeExecutionStateSchema: z.ZodEnum<{
|
|
|
293
289
|
timed_out: "timed_out";
|
|
294
290
|
unknown: "unknown";
|
|
295
291
|
}>;
|
|
296
|
-
/**
|
|
297
|
-
* The runtime's own observed generation identity for the execution's current
|
|
298
|
-
* turn.
|
|
299
|
-
*
|
|
300
|
-
* Observed by construction: the runtime reports the generation it authorized
|
|
301
|
-
* for this attempt, never a generation a caller claimed. A control that names
|
|
302
|
-
* a generation the runtime did not observe is not bound to it, so this shape
|
|
303
|
-
* is an identity, not a counter the caller can advance.
|
|
304
|
-
*
|
|
305
|
-
* The identity is self-verifying: the inference key is the turn's key extended
|
|
306
|
-
* by the inference id, exactly as the runtime retained it. A key that names a
|
|
307
|
-
* different turn or inference is refused here rather than accepted as an
|
|
308
|
-
* observation of something else.
|
|
309
|
-
*/
|
|
310
292
|
export declare const RuntimeObservedGenerationSchema: z.ZodObject<{
|
|
311
293
|
schemaVersion: z.ZodLiteral<"runtime-observed-generation/v1">;
|
|
312
294
|
attemptId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"attempt ID">, string>>;
|
|
@@ -464,7 +446,6 @@ export declare const RuntimeExecutionPlanSnapshotSchema: z.ZodObject<{
|
|
|
464
446
|
}>>;
|
|
465
447
|
}, z.core.$strip>>;
|
|
466
448
|
}, z.core.$catchall<z.ZodUnknown>>;
|
|
467
|
-
/** Allocation under an accepted allowance; not prepaid funds or charge authority. */
|
|
468
449
|
export declare const RuntimeAttemptBudgetAuthoritySchema: z.ZodReadonly<z.ZodObject<{
|
|
469
450
|
schemaVersion: z.ZodLiteral<1>;
|
|
470
451
|
workspaceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("@adea-ai/contracts").OpaqueIdentifier<"workspace ID">, string>>;
|
|
@@ -670,4 +651,3 @@ export declare class RuntimeAdapterError extends Error {
|
|
|
670
651
|
toJSON(): RuntimeError;
|
|
671
652
|
}
|
|
672
653
|
export declare function inspectRuntimeCapabilities(capabilities: RuntimeAdapterInspection['capabilities'], requirements: readonly CapabilityRequirement[]): CapabilityEvaluation;
|
|
673
|
-
//# sourceMappingURL=adapter.d.ts.map
|
package/dist/adapter.js
CHANGED
|
@@ -42,7 +42,6 @@ export const RuntimeAdapterInspectionSchema = z
|
|
|
42
42
|
health: z.enum(['healthy', 'degraded', 'unavailable']),
|
|
43
43
|
capabilities: z.array(RuntimeCapabilitySchema).max(64),
|
|
44
44
|
limitations: z.array(z.string().min(1).max(512)).max(64),
|
|
45
|
-
// Optional until each adapter has published tested Agent Plugins evidence.
|
|
46
45
|
agentPlugins: AgentPluginsCapabilityReportSchema.optional(),
|
|
47
46
|
observedAt: TimestampSchema,
|
|
48
47
|
capabilityEvaluation: CapabilityEvaluationSchema.optional(),
|
|
@@ -56,10 +55,6 @@ export const RuntimeExecutionHandleSchema = z
|
|
|
56
55
|
startedAt: TimestampSchema,
|
|
57
56
|
})
|
|
58
57
|
.strict();
|
|
59
|
-
/**
|
|
60
|
-
* Reported runtime accounting provenance, not funding authorization. Consumers
|
|
61
|
-
* must verify `sourceId` against a trusted authority before charging.
|
|
62
|
-
*/
|
|
63
58
|
export const RuntimeUsageAccountingSchema = z
|
|
64
59
|
.object({
|
|
65
60
|
schemaVersion: z.literal(1),
|
|
@@ -183,20 +178,6 @@ export const RuntimeExecutionStateSchema = z.enum([
|
|
|
183
178
|
'timed_out',
|
|
184
179
|
'unknown',
|
|
185
180
|
]);
|
|
186
|
-
/**
|
|
187
|
-
* The runtime's own observed generation identity for the execution's current
|
|
188
|
-
* turn.
|
|
189
|
-
*
|
|
190
|
-
* Observed by construction: the runtime reports the generation it authorized
|
|
191
|
-
* for this attempt, never a generation a caller claimed. A control that names
|
|
192
|
-
* a generation the runtime did not observe is not bound to it, so this shape
|
|
193
|
-
* is an identity, not a counter the caller can advance.
|
|
194
|
-
*
|
|
195
|
-
* The identity is self-verifying: the inference key is the turn's key extended
|
|
196
|
-
* by the inference id, exactly as the runtime retained it. A key that names a
|
|
197
|
-
* different turn or inference is refused here rather than accepted as an
|
|
198
|
-
* observation of something else.
|
|
199
|
-
*/
|
|
200
181
|
export const RuntimeObservedGenerationSchema = z
|
|
201
182
|
.object({
|
|
202
183
|
schemaVersion: z.literal('runtime-observed-generation/v1'),
|
|
@@ -215,13 +196,8 @@ export const RuntimeExecutionStatusSchema = z
|
|
|
215
196
|
handle: RuntimeExecutionHandleSchema,
|
|
216
197
|
state: RuntimeExecutionStateSchema,
|
|
217
198
|
observedAt: TimestampSchema,
|
|
218
|
-
// The generation the runtime observed for this attempt, when it has one.
|
|
219
|
-
// Additive in contract 3.1: a consumer that advertised an earlier version
|
|
220
|
-
// parses with the pre-3.1 strict status shape, so a producer publishes it
|
|
221
|
-
// only to a consumer whose negotiated version includes it.
|
|
222
199
|
observedGeneration: RuntimeObservedGenerationSchema.optional(),
|
|
223
200
|
result: RuntimeExecutionResultSchema.optional(),
|
|
224
|
-
// Observed usage survives unsuccessful termination without fabricating a result.
|
|
225
201
|
terminalUsage: RuntimeUsageSchema.optional(),
|
|
226
202
|
error: RuntimeErrorSchema.optional(),
|
|
227
203
|
})
|
|
@@ -262,7 +238,6 @@ export const RuntimeExecutionPlanSnapshotSchema = z
|
|
|
262
238
|
runtimeRequirements: CapabilityRequirementSetSchema,
|
|
263
239
|
})
|
|
264
240
|
.catchall(z.unknown());
|
|
265
|
-
/** Allocation under an accepted allowance; not prepaid funds or charge authority. */
|
|
266
241
|
export const RuntimeAttemptBudgetAuthoritySchema = z
|
|
267
242
|
.object({
|
|
268
243
|
schemaVersion: z.literal(1),
|
|
@@ -440,4 +415,3 @@ export class RuntimeAdapterError extends Error {
|
|
|
440
415
|
export function inspectRuntimeCapabilities(capabilities, requirements) {
|
|
441
416
|
return evaluateCapabilities(capabilities, CapabilityRequirementSetSchema.parse(requirements));
|
|
442
417
|
}
|
|
443
|
-
//# sourceMappingURL=adapter.js.map
|
package/dist/agent-plugins.d.ts
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import type { RuntimeAdapterInspection } from './adapter.js';
|
|
3
|
-
/**
|
|
4
|
-
* Capability evidence reported by a tested runtime adapter. A harness name is
|
|
5
|
-
* intentionally not enough to claim Agent Plugins support.
|
|
6
|
-
*/
|
|
7
3
|
export declare const AgentPluginsCapabilityReportSchema: z.ZodObject<{
|
|
8
4
|
versions: z.ZodArray<z.ZodString>;
|
|
9
5
|
skills: z.ZodBoolean;
|
|
@@ -59,4 +55,3 @@ export declare function createHarnessProfile(input: Readonly<{
|
|
|
59
55
|
agentPlugins: AgentPluginsCapabilityReport;
|
|
60
56
|
components: ComponentCapabilityReport;
|
|
61
57
|
}>): HarnessProfile;
|
|
62
|
-
//# sourceMappingURL=agent-plugins.d.ts.map
|
package/dist/agent-plugins.js
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
/**
|
|
3
|
-
* Capability evidence reported by a tested runtime adapter. A harness name is
|
|
4
|
-
* intentionally not enough to claim Agent Plugins support.
|
|
5
|
-
*/
|
|
6
2
|
export const AgentPluginsCapabilityReportSchema = z
|
|
7
3
|
.object({
|
|
8
4
|
versions: z.array(z.string().min(1).max(32)).max(16),
|
|
@@ -41,4 +37,3 @@ export function harnessProfileFromInspection(input) {
|
|
|
41
37
|
export function createHarnessProfile(input) {
|
|
42
38
|
return HarnessProfileSchema.parse({ profileVersion: 1, ...input });
|
|
43
39
|
}
|
|
44
|
-
//# sourceMappingURL=agent-plugins.js.map
|
package/dist/capabilities.d.ts
CHANGED
|
@@ -133,4 +133,3 @@ export interface CapabilityEvaluation {
|
|
|
133
133
|
export declare function evaluateCapabilities(capabilitiesInput: readonly RuntimeCapability[], requirementsInput: readonly CapabilityRequirement[]): CapabilityEvaluation;
|
|
134
134
|
export declare function runtimeCapabilitiesEqual(left: readonly RuntimeCapability[], right: readonly RuntimeCapability[]): boolean;
|
|
135
135
|
export declare function capabilityFingerprint(capabilities: readonly RuntimeCapability[]): string;
|
|
136
|
-
//# sourceMappingURL=capabilities.d.ts.map
|
package/dist/capabilities.js
CHANGED
|
@@ -35,11 +35,9 @@ export declare const RuntimeChannelSequenceRequestSchema: z.ZodObject<{
|
|
|
35
35
|
minimum: z.ZodNumber;
|
|
36
36
|
}, z.core.$strict>;
|
|
37
37
|
export type RuntimeChannelSequenceRequest = z.output<typeof RuntimeChannelSequenceRequestSchema>;
|
|
38
|
-
/** Reserve before sending; ambiguous/failed sends burn their range rather than reuse it. */
|
|
39
38
|
export interface RuntimeChannelSequenceRepository {
|
|
40
39
|
reserve(request: RuntimeChannelSequenceRequest): Promise<number>;
|
|
41
40
|
}
|
|
42
|
-
/** Durable fencing only; replacement notification is owned by the gateway coordinator. */
|
|
43
41
|
export interface RuntimeChannelOwnershipRepository {
|
|
44
42
|
claim(record: RuntimeChannelOwnership, credentialFence?: RuntimeChannelOwnershipCredentialFence): Promise<{
|
|
45
43
|
accepted: boolean;
|
|
@@ -49,4 +47,3 @@ export interface RuntimeChannelOwnershipRepository {
|
|
|
49
47
|
heartbeat(record: RuntimeChannelOwnership, credentialFence?: RuntimeChannelOwnershipCredentialFence): Promise<boolean>;
|
|
50
48
|
release(record: RuntimeChannelOwnership): Promise<boolean>;
|
|
51
49
|
}
|
|
52
|
-
//# sourceMappingURL=channel-ownership.d.ts.map
|
package/dist/compatibility.d.ts
CHANGED
|
@@ -181,4 +181,3 @@ export interface RuntimeCompatibilityCertificationInput {
|
|
|
181
181
|
readonly connection: unknown;
|
|
182
182
|
}
|
|
183
183
|
export declare function applyRuntimeCompatibilityCertification(input: RuntimeCompatibilityCertificationInput): RuntimeConnection;
|
|
184
|
-
//# sourceMappingURL=compatibility.d.ts.map
|
package/dist/compatibility.js
CHANGED
package/dist/conformance.d.ts
CHANGED
|
@@ -11,4 +11,3 @@ export interface RuntimeAdapterConformanceReport {
|
|
|
11
11
|
readonly checks: typeof RuntimeAdapterConformanceChecks;
|
|
12
12
|
}
|
|
13
13
|
export declare function runRuntimeAdapterConformance(input: RuntimeAdapterConformanceInput): Promise<RuntimeAdapterConformanceReport>;
|
|
14
|
-
//# sourceMappingURL=conformance.d.ts.map
|
package/dist/conformance.js
CHANGED
package/dist/discovery.d.ts
CHANGED
package/dist/discovery.js
CHANGED
package/dist/eligibility.d.ts
CHANGED
|
@@ -335,4 +335,3 @@ export declare const RuntimeEligibilityDecisionSchema: z.ZodObject<{
|
|
|
335
335
|
export type RuntimeEligibilityInput = z.output<typeof RuntimeEligibilityInputSchema>;
|
|
336
336
|
export type RuntimeEligibilityDecision = z.output<typeof RuntimeEligibilityDecisionSchema>;
|
|
337
337
|
export declare function evaluateRuntimeEligibility(inputValue: unknown): RuntimeEligibilityDecision;
|
|
338
|
-
//# sourceMappingURL=eligibility.d.ts.map
|
package/dist/eligibility.js
CHANGED
package/dist/fixtures.d.ts
CHANGED
package/dist/fixtures.js
CHANGED
|
@@ -45,4 +45,3 @@ function runtime(runtimeDefinitionId, family, capabilities) {
|
|
|
45
45
|
function capability(name, support = 'supported', limitations) {
|
|
46
46
|
return { name, support, ...(limitations === undefined ? {} : { limitations: [...limitations] }) };
|
|
47
47
|
}
|
|
48
|
-
//# sourceMappingURL=fixtures.js.map
|
package/dist/health.d.ts
CHANGED
|
@@ -181,4 +181,3 @@ export declare class RuntimeHealthIngestionService {
|
|
|
181
181
|
refresh(input: unknown): Promise<RuntimeHealthIngestionResult>;
|
|
182
182
|
}
|
|
183
183
|
export declare function runtimeAvailabilityIsExecutable(state: RuntimeAvailabilityState): boolean;
|
|
184
|
-
//# sourceMappingURL=health.d.ts.map
|
package/dist/health.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/inventory.d.ts
CHANGED
|
@@ -14,7 +14,6 @@ export declare const RuntimeInventoryScanSchema: z.ZodObject<{
|
|
|
14
14
|
limit: z.ZodNumber;
|
|
15
15
|
}, z.core.$strict>;
|
|
16
16
|
export type RuntimeInventoryScan = z.output<typeof RuntimeInventoryScanSchema>;
|
|
17
|
-
/** Internal worker scan across workspaces; not an end-user discovery operation. */
|
|
18
17
|
export interface RuntimeInventoryCheckpointScanner {
|
|
19
18
|
scan(input: RuntimeInventoryScan): Promise<readonly RuntimeInventoryCheckpoint[]>;
|
|
20
19
|
}
|
|
@@ -28,4 +27,3 @@ export declare class InMemoryRuntimeInventoryCheckpointRepository implements Run
|
|
|
28
27
|
get(runtimeNodeRefId: string): Promise<RuntimeInventoryCheckpoint | undefined>;
|
|
29
28
|
compareAndSet(expectedRevision: number | undefined, checkpointInput: RuntimeInventoryCheckpoint): Promise<boolean>;
|
|
30
29
|
}
|
|
31
|
-
//# sourceMappingURL=inventory.d.ts.map
|
package/dist/inventory.js
CHANGED
package/dist/mock.d.ts
CHANGED
|
@@ -21,4 +21,3 @@ export declare class MockRuntimeAdapter implements RuntimeAdapter {
|
|
|
21
21
|
cleanup(handleInput: RuntimeExecutionHandle): Promise<void>;
|
|
22
22
|
complete(handleInput: RuntimeExecutionHandle, resultInput: Omit<RuntimeExecutionResult, 'outcome'>): RuntimeExecutionStatus;
|
|
23
23
|
}
|
|
24
|
-
//# sourceMappingURL=mock.d.ts.map
|
package/dist/mock.js
CHANGED
package/dist/models.d.ts
CHANGED
|
@@ -284,4 +284,3 @@ export declare function assessRuntimeCompatibility(definitionInput: unknown, exp
|
|
|
284
284
|
readonly capabilities: readonly CapabilityRequirement[];
|
|
285
285
|
}): RuntimeCompatibilityResult;
|
|
286
286
|
export declare function runtimeDefinitionsEqual(left: unknown, right: unknown): boolean;
|
|
287
|
-
//# sourceMappingURL=models.d.ts.map
|
package/dist/models.js
CHANGED