@adea-ai/contracts 2.2.0 → 3.0.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/control-api.d.ts +6 -0
- package/dist/control-api.js +10 -2
- package/dist/model-connections.d.ts +0 -10
- package/dist/model-connections.js +2 -8
- package/package.json +1 -1
package/dist/control-api.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
import { ServiceCallerAssertionSchema } from './authentication.js';
|
|
3
3
|
import { CorrelationMetadataSchema } from './envelopes.js';
|
|
4
4
|
import { IdentifierSchemas } from './identifiers.js';
|
|
5
|
+
import { CursorSchema } from './pagination.js';
|
|
5
6
|
import { ContractVersionSchema } from './versioning.js';
|
|
6
7
|
declare const TimestampSchema: z.ZodISODateTime;
|
|
7
8
|
declare const DigestSchema: z.ZodString;
|
|
@@ -417,6 +418,8 @@ export declare const MarketplaceCatalogRequestSchema: z.ZodObject<{
|
|
|
417
418
|
parameters: z.ZodObject<{
|
|
418
419
|
workspaceIdentity: typeof MarketplaceIdentitySchema;
|
|
419
420
|
installedBy: z.ZodOptional<z.ZodString>;
|
|
421
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
422
|
+
cursor: z.ZodOptional<typeof CursorSchema>;
|
|
420
423
|
}, z.core.$strip>;
|
|
421
424
|
}, z.core.$strip>;
|
|
422
425
|
export declare const MarketplaceCatalogResponseSchema: z.ZodObject<{
|
|
@@ -446,6 +449,9 @@ export declare const MarketplaceCatalogResponseSchema: z.ZodObject<{
|
|
|
446
449
|
unavailable: "unavailable";
|
|
447
450
|
}>;
|
|
448
451
|
}, z.core.$strict>>;
|
|
452
|
+
installationsPage: z.ZodOptional<z.ZodObject<{
|
|
453
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
454
|
+
}, z.core.$strip>>;
|
|
449
455
|
}, z.core.$strip>;
|
|
450
456
|
}, z.core.$strip>;
|
|
451
457
|
export declare const MarketplaceInstallRequestSchema: z.ZodObject<{
|
package/dist/control-api.js
CHANGED
|
@@ -317,6 +317,10 @@ export const MarketplaceCatalogRequestSchema = RequestContextSchema.extend({
|
|
|
317
317
|
// `workspaceIdentity.userId` of the install request) matches. Omitted,
|
|
318
318
|
// every active installation in the workspace is returned, as before.
|
|
319
319
|
installedBy: z.string().min(1).max(128).optional(),
|
|
320
|
+
// Additive 3.x paging of `installations`: at most `limit` (default and
|
|
321
|
+
// maximum 100) per response, continued with `installationsPage.nextCursor`.
|
|
322
|
+
limit: z.number().int().min(1).max(100).optional(),
|
|
323
|
+
cursor: CursorSchema.optional(),
|
|
320
324
|
}),
|
|
321
325
|
});
|
|
322
326
|
export const MarketplaceCatalogResponseSchema = successResponse(z.object({
|
|
@@ -324,14 +328,18 @@ export const MarketplaceCatalogResponseSchema = successResponse(z.object({
|
|
|
324
328
|
releaseId: z.string().regex(/^catalog:[a-f0-9]{64}$/),
|
|
325
329
|
state: z.enum(['ready', 'stale']),
|
|
326
330
|
artifacts: MarketplaceArtifactsSchema,
|
|
327
|
-
installations: z
|
|
331
|
+
installations: z
|
|
332
|
+
.array(MarketplacePluginReferenceContractSchema.extend({
|
|
328
333
|
// Additive 3.x field: the handle for the installation get and
|
|
329
334
|
// uninstall operations.
|
|
330
335
|
installationId: z.string().min(1).max(128).optional(),
|
|
331
336
|
installationInstanceId: z.string().min(1).max(256).optional(),
|
|
332
337
|
packageDigest: DigestSchema.optional(),
|
|
333
338
|
state: z.enum(MarketplaceInstallationDecisionStates),
|
|
334
|
-
}))
|
|
339
|
+
}))
|
|
340
|
+
.max(100),
|
|
341
|
+
// Additive 3.x field; absent from servers that predate installation paging.
|
|
342
|
+
installationsPage: z.object({ nextCursor: CursorSchema.optional() }).optional(),
|
|
335
343
|
}));
|
|
336
344
|
export const MarketplaceInstallRequestSchema = CommandContextSchema.extend({
|
|
337
345
|
operation: z.literal('marketplace.install.request'),
|
|
@@ -14,13 +14,11 @@ export declare const ModelExecutionTargetSchema: z.ZodObject<{
|
|
|
14
14
|
}>;
|
|
15
15
|
harness: z.ZodEnum<{
|
|
16
16
|
acp: "acp";
|
|
17
|
-
cloudflare_agents: "cloudflare_agents";
|
|
18
17
|
pi: "pi";
|
|
19
18
|
pi_durable: "pi_durable";
|
|
20
19
|
}>;
|
|
21
20
|
harnessVersion: z.ZodString;
|
|
22
21
|
providerBinding: z.ZodEnum<{
|
|
23
|
-
cloudflare_binding: "cloudflare_binding";
|
|
24
22
|
native_harness: "native_harness";
|
|
25
23
|
pi_durable_models: "pi_durable_models";
|
|
26
24
|
pi_model_runtime: "pi_model_runtime";
|
|
@@ -69,13 +67,11 @@ export declare const RuntimeProviderSelectionSchema: z.ZodObject<{
|
|
|
69
67
|
}>;
|
|
70
68
|
harness: z.ZodEnum<{
|
|
71
69
|
acp: "acp";
|
|
72
|
-
cloudflare_agents: "cloudflare_agents";
|
|
73
70
|
pi: "pi";
|
|
74
71
|
pi_durable: "pi_durable";
|
|
75
72
|
}>;
|
|
76
73
|
harnessVersion: z.ZodString;
|
|
77
74
|
providerBinding: z.ZodEnum<{
|
|
78
|
-
cloudflare_binding: "cloudflare_binding";
|
|
79
75
|
native_harness: "native_harness";
|
|
80
76
|
pi_durable_models: "pi_durable_models";
|
|
81
77
|
pi_model_runtime: "pi_model_runtime";
|
|
@@ -195,13 +191,11 @@ export declare const ModelConnectionListRequestSchema: z.ZodObject<{
|
|
|
195
191
|
}>;
|
|
196
192
|
harness: z.ZodEnum<{
|
|
197
193
|
acp: "acp";
|
|
198
|
-
cloudflare_agents: "cloudflare_agents";
|
|
199
194
|
pi: "pi";
|
|
200
195
|
pi_durable: "pi_durable";
|
|
201
196
|
}>;
|
|
202
197
|
harnessVersion: z.ZodString;
|
|
203
198
|
providerBinding: z.ZodEnum<{
|
|
204
|
-
cloudflare_binding: "cloudflare_binding";
|
|
205
199
|
native_harness: "native_harness";
|
|
206
200
|
pi_durable_models: "pi_durable_models";
|
|
207
201
|
pi_model_runtime: "pi_model_runtime";
|
|
@@ -295,13 +289,11 @@ export declare const ModelSelectionResolveRequestSchema: z.ZodObject<{
|
|
|
295
289
|
}>;
|
|
296
290
|
harness: z.ZodEnum<{
|
|
297
291
|
acp: "acp";
|
|
298
|
-
cloudflare_agents: "cloudflare_agents";
|
|
299
292
|
pi: "pi";
|
|
300
293
|
pi_durable: "pi_durable";
|
|
301
294
|
}>;
|
|
302
295
|
harnessVersion: z.ZodString;
|
|
303
296
|
providerBinding: z.ZodEnum<{
|
|
304
|
-
cloudflare_binding: "cloudflare_binding";
|
|
305
297
|
native_harness: "native_harness";
|
|
306
298
|
pi_durable_models: "pi_durable_models";
|
|
307
299
|
pi_model_runtime: "pi_model_runtime";
|
|
@@ -438,13 +430,11 @@ export declare const ModelSelectionResponseSchema: z.ZodObject<{
|
|
|
438
430
|
}>;
|
|
439
431
|
harness: z.ZodEnum<{
|
|
440
432
|
acp: "acp";
|
|
441
|
-
cloudflare_agents: "cloudflare_agents";
|
|
442
433
|
pi: "pi";
|
|
443
434
|
pi_durable: "pi_durable";
|
|
444
435
|
}>;
|
|
445
436
|
harnessVersion: z.ZodString;
|
|
446
437
|
providerBinding: z.ZodEnum<{
|
|
447
|
-
cloudflare_binding: "cloudflare_binding";
|
|
448
438
|
native_harness: "native_harness";
|
|
449
439
|
pi_durable_models: "pi_durable_models";
|
|
450
440
|
pi_model_runtime: "pi_model_runtime";
|
|
@@ -14,14 +14,9 @@ export const ModelSelectionRefSchema = z.string().regex(/^msel_[a-f0-9]{32}$/);
|
|
|
14
14
|
const Auth = z.enum(['api_key', 'provider_subscription', 'local_runtime']);
|
|
15
15
|
export const ModelExecutionTargetSchema = z.strictObject({
|
|
16
16
|
location: z.enum(['local_device', 'remote_host', 'agent_hq_cloud']),
|
|
17
|
-
harness: z.enum(['pi', 'pi_durable', '
|
|
17
|
+
harness: z.enum(['pi', 'pi_durable', 'acp']),
|
|
18
18
|
harnessVersion: z.string().regex(/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$/),
|
|
19
|
-
providerBinding: z.enum([
|
|
20
|
-
'pi_model_runtime',
|
|
21
|
-
'pi_durable_models',
|
|
22
|
-
'cloudflare_binding',
|
|
23
|
-
'native_harness',
|
|
24
|
-
]),
|
|
19
|
+
providerBinding: z.enum(['pi_model_runtime', 'pi_durable_models', 'native_harness']),
|
|
25
20
|
});
|
|
26
21
|
const ConnectionIdentity = {
|
|
27
22
|
credentialRef: IdentifierSchemas.credentialId,
|
|
@@ -45,7 +40,6 @@ function bindingMatches(value) {
|
|
|
45
40
|
{
|
|
46
41
|
pi: 'pi_model_runtime',
|
|
47
42
|
pi_durable: 'pi_durable_models',
|
|
48
|
-
cloudflare_agents: 'cloudflare_binding',
|
|
49
43
|
acp: 'native_harness',
|
|
50
44
|
}[value.harness]);
|
|
51
45
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adea-ai/contracts",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Runtime-independent service boundary between Adea and the Control Plane: canonical identifiers, envelopes, Control API schemas, pagination, and versioning.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agents",
|