@tangle-network/agent-interface 3.0.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 +24 -0
- package/dist/agent-candidate-execution-plan-schema.d.ts +52 -52
- package/dist/agent-candidate-promotion-schema.d.ts +340 -340
- package/dist/agent-candidate-receipt-schema.d.ts +68 -68
- package/dist/agent-execution-preparation-receipt.d.ts +2 -0
- package/dist/agent-profile-materialization.d.ts +1 -1
- package/dist/agent-profile-materialization.js +3 -0
- package/dist/agent-profile.d.ts +26 -0
- package/dist/environment-interactive-control.d.ts +10 -0
- package/dist/environment-interactive-start.d.ts +30 -0
- package/dist/environment-runtime.d.ts +30 -0
- package/dist/profile-diff.d.ts +2 -1
- package/dist/profile-diff.js +3 -0
- package/dist/profile-schema.d.ts +62 -0
- package/dist/profile-schema.js +56 -0
- package/package.json +1 -1
|
@@ -253,11 +253,6 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
|
|
|
253
253
|
}[];
|
|
254
254
|
};
|
|
255
255
|
artifact: {
|
|
256
|
-
encoding: "base64";
|
|
257
|
-
content: string;
|
|
258
|
-
sha256: `sha256:${string}`;
|
|
259
|
-
byteLength: number;
|
|
260
|
-
} | {
|
|
261
256
|
locator: {
|
|
262
257
|
kind: "s3";
|
|
263
258
|
bucket: string;
|
|
@@ -274,6 +269,11 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
|
|
|
274
269
|
};
|
|
275
270
|
sha256: `sha256:${string}`;
|
|
276
271
|
byteLength: number;
|
|
272
|
+
} | {
|
|
273
|
+
encoding: "base64";
|
|
274
|
+
content: string;
|
|
275
|
+
sha256: `sha256:${string}`;
|
|
276
|
+
byteLength: number;
|
|
277
277
|
};
|
|
278
278
|
}, unknown, z.core.$ZodTypeInternals<{
|
|
279
279
|
kind: "agent-profile-workspace-plan";
|
|
@@ -309,11 +309,6 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
|
|
|
309
309
|
}[];
|
|
310
310
|
};
|
|
311
311
|
artifact: {
|
|
312
|
-
encoding: "base64";
|
|
313
|
-
content: string;
|
|
314
|
-
sha256: `sha256:${string}`;
|
|
315
|
-
byteLength: number;
|
|
316
|
-
} | {
|
|
317
312
|
locator: {
|
|
318
313
|
kind: "s3";
|
|
319
314
|
bucket: string;
|
|
@@ -330,6 +325,11 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
|
|
|
330
325
|
};
|
|
331
326
|
sha256: `sha256:${string}`;
|
|
332
327
|
byteLength: number;
|
|
328
|
+
} | {
|
|
329
|
+
encoding: "base64";
|
|
330
|
+
content: string;
|
|
331
|
+
sha256: `sha256:${string}`;
|
|
332
|
+
byteLength: number;
|
|
333
333
|
};
|
|
334
334
|
}, unknown>>;
|
|
335
335
|
files: z.ZodArray<z.ZodObject<{
|
|
@@ -377,11 +377,6 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
|
|
|
377
377
|
}[];
|
|
378
378
|
};
|
|
379
379
|
manifest: {
|
|
380
|
-
encoding: "base64";
|
|
381
|
-
content: string;
|
|
382
|
-
sha256: `sha256:${string}`;
|
|
383
|
-
byteLength: number;
|
|
384
|
-
} | {
|
|
385
380
|
locator: {
|
|
386
381
|
kind: "s3";
|
|
387
382
|
bucket: string;
|
|
@@ -398,13 +393,13 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
|
|
|
398
393
|
};
|
|
399
394
|
sha256: `sha256:${string}`;
|
|
400
395
|
byteLength: number;
|
|
401
|
-
}
|
|
402
|
-
archive: {
|
|
396
|
+
} | {
|
|
403
397
|
encoding: "base64";
|
|
404
398
|
content: string;
|
|
405
399
|
sha256: `sha256:${string}`;
|
|
406
400
|
byteLength: number;
|
|
407
|
-
}
|
|
401
|
+
};
|
|
402
|
+
archive: {
|
|
408
403
|
locator: {
|
|
409
404
|
kind: "s3";
|
|
410
405
|
bucket: string;
|
|
@@ -421,6 +416,11 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
|
|
|
421
416
|
};
|
|
422
417
|
sha256: `sha256:${string}`;
|
|
423
418
|
byteLength: number;
|
|
419
|
+
} | {
|
|
420
|
+
encoding: "base64";
|
|
421
|
+
content: string;
|
|
422
|
+
sha256: `sha256:${string}`;
|
|
423
|
+
byteLength: number;
|
|
424
424
|
};
|
|
425
425
|
} | undefined;
|
|
426
426
|
profile: {
|
|
@@ -517,11 +517,6 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
|
|
|
517
517
|
reset: {
|
|
518
518
|
kind: "fresh";
|
|
519
519
|
evidence: {
|
|
520
|
-
encoding: "base64";
|
|
521
|
-
content: string;
|
|
522
|
-
sha256: `sha256:${string}`;
|
|
523
|
-
byteLength: number;
|
|
524
|
-
} | {
|
|
525
520
|
locator: {
|
|
526
521
|
kind: "s3";
|
|
527
522
|
bucket: string;
|
|
@@ -538,6 +533,11 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
|
|
|
538
533
|
};
|
|
539
534
|
sha256: `sha256:${string}`;
|
|
540
535
|
byteLength: number;
|
|
536
|
+
} | {
|
|
537
|
+
encoding: "base64";
|
|
538
|
+
content: string;
|
|
539
|
+
sha256: `sha256:${string}`;
|
|
540
|
+
byteLength: number;
|
|
541
541
|
};
|
|
542
542
|
emptyStateDigest: `sha256:${string}`;
|
|
543
543
|
};
|
|
@@ -554,11 +554,6 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
|
|
|
554
554
|
}[];
|
|
555
555
|
};
|
|
556
556
|
manifest: {
|
|
557
|
-
encoding: "base64";
|
|
558
|
-
content: string;
|
|
559
|
-
sha256: `sha256:${string}`;
|
|
560
|
-
byteLength: number;
|
|
561
|
-
} | {
|
|
562
557
|
locator: {
|
|
563
558
|
kind: "s3";
|
|
564
559
|
bucket: string;
|
|
@@ -575,13 +570,13 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
|
|
|
575
570
|
};
|
|
576
571
|
sha256: `sha256:${string}`;
|
|
577
572
|
byteLength: number;
|
|
578
|
-
}
|
|
579
|
-
archive: {
|
|
573
|
+
} | {
|
|
580
574
|
encoding: "base64";
|
|
581
575
|
content: string;
|
|
582
576
|
sha256: `sha256:${string}`;
|
|
583
577
|
byteLength: number;
|
|
584
|
-
}
|
|
578
|
+
};
|
|
579
|
+
archive: {
|
|
585
580
|
locator: {
|
|
586
581
|
kind: "s3";
|
|
587
582
|
bucket: string;
|
|
@@ -598,6 +593,11 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
|
|
|
598
593
|
};
|
|
599
594
|
sha256: `sha256:${string}`;
|
|
600
595
|
byteLength: number;
|
|
596
|
+
} | {
|
|
597
|
+
encoding: "base64";
|
|
598
|
+
content: string;
|
|
599
|
+
sha256: `sha256:${string}`;
|
|
600
|
+
byteLength: number;
|
|
601
601
|
};
|
|
602
602
|
};
|
|
603
603
|
seedDigest?: `sha256:${string}` | undefined;
|
|
@@ -641,11 +641,6 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
|
|
|
641
641
|
}[];
|
|
642
642
|
};
|
|
643
643
|
manifest: {
|
|
644
|
-
encoding: "base64";
|
|
645
|
-
content: string;
|
|
646
|
-
sha256: `sha256:${string}`;
|
|
647
|
-
byteLength: number;
|
|
648
|
-
} | {
|
|
649
644
|
locator: {
|
|
650
645
|
kind: "s3";
|
|
651
646
|
bucket: string;
|
|
@@ -662,13 +657,13 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
|
|
|
662
657
|
};
|
|
663
658
|
sha256: `sha256:${string}`;
|
|
664
659
|
byteLength: number;
|
|
665
|
-
}
|
|
666
|
-
archive: {
|
|
660
|
+
} | {
|
|
667
661
|
encoding: "base64";
|
|
668
662
|
content: string;
|
|
669
663
|
sha256: `sha256:${string}`;
|
|
670
664
|
byteLength: number;
|
|
671
|
-
}
|
|
665
|
+
};
|
|
666
|
+
archive: {
|
|
672
667
|
locator: {
|
|
673
668
|
kind: "s3";
|
|
674
669
|
bucket: string;
|
|
@@ -685,6 +680,11 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
|
|
|
685
680
|
};
|
|
686
681
|
sha256: `sha256:${string}`;
|
|
687
682
|
byteLength: number;
|
|
683
|
+
} | {
|
|
684
|
+
encoding: "base64";
|
|
685
|
+
content: string;
|
|
686
|
+
sha256: `sha256:${string}`;
|
|
687
|
+
byteLength: number;
|
|
688
688
|
};
|
|
689
689
|
} | undefined;
|
|
690
690
|
profile: {
|
|
@@ -781,11 +781,6 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
|
|
|
781
781
|
reset: {
|
|
782
782
|
kind: "fresh";
|
|
783
783
|
evidence: {
|
|
784
|
-
encoding: "base64";
|
|
785
|
-
content: string;
|
|
786
|
-
sha256: `sha256:${string}`;
|
|
787
|
-
byteLength: number;
|
|
788
|
-
} | {
|
|
789
784
|
locator: {
|
|
790
785
|
kind: "s3";
|
|
791
786
|
bucket: string;
|
|
@@ -802,6 +797,11 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
|
|
|
802
797
|
};
|
|
803
798
|
sha256: `sha256:${string}`;
|
|
804
799
|
byteLength: number;
|
|
800
|
+
} | {
|
|
801
|
+
encoding: "base64";
|
|
802
|
+
content: string;
|
|
803
|
+
sha256: `sha256:${string}`;
|
|
804
|
+
byteLength: number;
|
|
805
805
|
};
|
|
806
806
|
emptyStateDigest: `sha256:${string}`;
|
|
807
807
|
};
|
|
@@ -818,11 +818,6 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
|
|
|
818
818
|
}[];
|
|
819
819
|
};
|
|
820
820
|
manifest: {
|
|
821
|
-
encoding: "base64";
|
|
822
|
-
content: string;
|
|
823
|
-
sha256: `sha256:${string}`;
|
|
824
|
-
byteLength: number;
|
|
825
|
-
} | {
|
|
826
821
|
locator: {
|
|
827
822
|
kind: "s3";
|
|
828
823
|
bucket: string;
|
|
@@ -839,13 +834,13 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
|
|
|
839
834
|
};
|
|
840
835
|
sha256: `sha256:${string}`;
|
|
841
836
|
byteLength: number;
|
|
842
|
-
}
|
|
843
|
-
archive: {
|
|
837
|
+
} | {
|
|
844
838
|
encoding: "base64";
|
|
845
839
|
content: string;
|
|
846
840
|
sha256: `sha256:${string}`;
|
|
847
841
|
byteLength: number;
|
|
848
|
-
}
|
|
842
|
+
};
|
|
843
|
+
archive: {
|
|
849
844
|
locator: {
|
|
850
845
|
kind: "s3";
|
|
851
846
|
bucket: string;
|
|
@@ -862,6 +857,11 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
|
|
|
862
857
|
};
|
|
863
858
|
sha256: `sha256:${string}`;
|
|
864
859
|
byteLength: number;
|
|
860
|
+
} | {
|
|
861
|
+
encoding: "base64";
|
|
862
|
+
content: string;
|
|
863
|
+
sha256: `sha256:${string}`;
|
|
864
|
+
byteLength: number;
|
|
865
865
|
};
|
|
866
866
|
};
|
|
867
867
|
seedDigest?: `sha256:${string}` | undefined;
|
|
@@ -1294,11 +1294,6 @@ export declare const agentCandidateRunReceiptSchema: z.ZodObject<{
|
|
|
1294
1294
|
}[];
|
|
1295
1295
|
};
|
|
1296
1296
|
manifest: {
|
|
1297
|
-
encoding: "base64";
|
|
1298
|
-
content: string;
|
|
1299
|
-
sha256: `sha256:${string}`;
|
|
1300
|
-
byteLength: number;
|
|
1301
|
-
} | {
|
|
1302
1297
|
locator: {
|
|
1303
1298
|
kind: "s3";
|
|
1304
1299
|
bucket: string;
|
|
@@ -1315,13 +1310,13 @@ export declare const agentCandidateRunReceiptSchema: z.ZodObject<{
|
|
|
1315
1310
|
};
|
|
1316
1311
|
sha256: `sha256:${string}`;
|
|
1317
1312
|
byteLength: number;
|
|
1318
|
-
}
|
|
1319
|
-
archive: {
|
|
1313
|
+
} | {
|
|
1320
1314
|
encoding: "base64";
|
|
1321
1315
|
content: string;
|
|
1322
1316
|
sha256: `sha256:${string}`;
|
|
1323
1317
|
byteLength: number;
|
|
1324
|
-
}
|
|
1318
|
+
};
|
|
1319
|
+
archive: {
|
|
1325
1320
|
locator: {
|
|
1326
1321
|
kind: "s3";
|
|
1327
1322
|
bucket: string;
|
|
@@ -1338,6 +1333,11 @@ export declare const agentCandidateRunReceiptSchema: z.ZodObject<{
|
|
|
1338
1333
|
};
|
|
1339
1334
|
sha256: `sha256:${string}`;
|
|
1340
1335
|
byteLength: number;
|
|
1336
|
+
} | {
|
|
1337
|
+
encoding: "base64";
|
|
1338
|
+
content: string;
|
|
1339
|
+
sha256: `sha256:${string}`;
|
|
1340
|
+
byteLength: number;
|
|
1341
1341
|
};
|
|
1342
1342
|
};
|
|
1343
1343
|
gitDiff: {
|
|
@@ -1416,11 +1416,6 @@ export declare const agentCandidateRunReceiptSchema: z.ZodObject<{
|
|
|
1416
1416
|
}[];
|
|
1417
1417
|
};
|
|
1418
1418
|
manifest: {
|
|
1419
|
-
encoding: "base64";
|
|
1420
|
-
content: string;
|
|
1421
|
-
sha256: `sha256:${string}`;
|
|
1422
|
-
byteLength: number;
|
|
1423
|
-
} | {
|
|
1424
1419
|
locator: {
|
|
1425
1420
|
kind: "s3";
|
|
1426
1421
|
bucket: string;
|
|
@@ -1437,13 +1432,13 @@ export declare const agentCandidateRunReceiptSchema: z.ZodObject<{
|
|
|
1437
1432
|
};
|
|
1438
1433
|
sha256: `sha256:${string}`;
|
|
1439
1434
|
byteLength: number;
|
|
1440
|
-
}
|
|
1441
|
-
archive: {
|
|
1435
|
+
} | {
|
|
1442
1436
|
encoding: "base64";
|
|
1443
1437
|
content: string;
|
|
1444
1438
|
sha256: `sha256:${string}`;
|
|
1445
1439
|
byteLength: number;
|
|
1446
|
-
}
|
|
1440
|
+
};
|
|
1441
|
+
archive: {
|
|
1447
1442
|
locator: {
|
|
1448
1443
|
kind: "s3";
|
|
1449
1444
|
bucket: string;
|
|
@@ -1460,6 +1455,11 @@ export declare const agentCandidateRunReceiptSchema: z.ZodObject<{
|
|
|
1460
1455
|
};
|
|
1461
1456
|
sha256: `sha256:${string}`;
|
|
1462
1457
|
byteLength: number;
|
|
1458
|
+
} | {
|
|
1459
|
+
encoding: "base64";
|
|
1460
|
+
content: string;
|
|
1461
|
+
sha256: `sha256:${string}`;
|
|
1462
|
+
byteLength: number;
|
|
1463
1463
|
};
|
|
1464
1464
|
};
|
|
1465
1465
|
gitDiff: {
|
|
@@ -125,6 +125,7 @@ export declare const agentExecutionPreparationAxisResultSchema: z.ZodObject<{
|
|
|
125
125
|
resourceFailOnError: "resourceFailOnError";
|
|
126
126
|
resourceInstructions: "resourceInstructions";
|
|
127
127
|
resourceTools: "resourceTools";
|
|
128
|
+
seats: "seats";
|
|
128
129
|
skills: "skills";
|
|
129
130
|
subagents: "subagents";
|
|
130
131
|
systemPrompt: "systemPrompt";
|
|
@@ -276,6 +277,7 @@ export declare const agentExecutionPreparationReceiptSchema: z.ZodObject<{
|
|
|
276
277
|
resourceFailOnError: "resourceFailOnError";
|
|
277
278
|
resourceInstructions: "resourceInstructions";
|
|
278
279
|
resourceTools: "resourceTools";
|
|
280
|
+
seats: "seats";
|
|
279
281
|
skills: "skills";
|
|
280
282
|
subagents: "subagents";
|
|
281
283
|
systemPrompt: "systemPrompt";
|
|
@@ -9,7 +9,7 @@ import type { AgentProfile } from "./agent-profile.js";
|
|
|
9
9
|
* can only add text must report the requested replacement as unsatisfied rather
|
|
10
10
|
* than acknowledge it.
|
|
11
11
|
*/
|
|
12
|
-
export declare const AGENT_PROFILE_MATERIALIZATION_AXES: readonly ["name", "description", "version", "tags", "systemPrompt", "appendSystemPrompt", "instructions", "modelDefault", "modelSmall", "modelProvider", "modelReasoningEffort", "modelMaxVisibleOutputTokens", "modelMaxReasoningTokens", "modelMaxTotalOutputTokens", "modelMetadata", "harness", "permissions", "tools", "mcp", "connections", "subagents", "files", "resourceTools", "skills", "resourceAgents", "commands", "resourceInstructions", "resourceFailOnError", "hooks", "modes", "confidential", "metadata", "extensions"];
|
|
12
|
+
export declare const AGENT_PROFILE_MATERIALIZATION_AXES: readonly ["name", "description", "version", "tags", "systemPrompt", "appendSystemPrompt", "instructions", "modelDefault", "modelSmall", "modelProvider", "modelReasoningEffort", "modelMaxVisibleOutputTokens", "modelMaxReasoningTokens", "modelMaxTotalOutputTokens", "modelMetadata", "harness", "seats", "permissions", "tools", "mcp", "connections", "subagents", "files", "resourceTools", "skills", "resourceAgents", "commands", "resourceInstructions", "resourceFailOnError", "hooks", "modes", "confidential", "metadata", "extensions"];
|
|
13
13
|
/** One exact leaf of the public AgentProfile contract. */
|
|
14
14
|
export type AgentProfileMaterializationAxis = (typeof AGENT_PROFILE_MATERIALIZATION_AXES)[number];
|
|
15
15
|
/** Compatibility name used by runtimes that distinguish canonical axes. */
|
|
@@ -25,6 +25,7 @@ export const AGENT_PROFILE_MATERIALIZATION_AXES = [
|
|
|
25
25
|
"modelMaxTotalOutputTokens",
|
|
26
26
|
"modelMetadata",
|
|
27
27
|
"harness",
|
|
28
|
+
"seats",
|
|
28
29
|
"permissions",
|
|
29
30
|
"tools",
|
|
30
31
|
"mcp",
|
|
@@ -47,6 +48,7 @@ const profileProperties = [
|
|
|
47
48
|
"prompt",
|
|
48
49
|
"model",
|
|
49
50
|
"harness",
|
|
51
|
+
"seats",
|
|
50
52
|
"permissions",
|
|
51
53
|
"tools",
|
|
52
54
|
"mcp",
|
|
@@ -101,6 +103,7 @@ const AXIS_DESCRIPTORS = [
|
|
|
101
103
|
value: (profile) => profile.model?.[property],
|
|
102
104
|
})),
|
|
103
105
|
{ axis: "harness", rootPath: "/harness", value: (profile) => profile.harness },
|
|
106
|
+
{ axis: "seats", rootPath: "/seats", value: (profile) => profile.seats },
|
|
104
107
|
{
|
|
105
108
|
axis: "permissions",
|
|
106
109
|
rootPath: "/permissions",
|
package/dist/agent-profile.d.ts
CHANGED
|
@@ -148,6 +148,26 @@ export interface AgentProfileModelHints {
|
|
|
148
148
|
*/
|
|
149
149
|
metadata?: Record<string, unknown>;
|
|
150
150
|
}
|
|
151
|
+
/** An authored subscription choice. The executor resolves account availability at run time. */
|
|
152
|
+
export interface AgentProfileSeat {
|
|
153
|
+
/** Exact harness to use for this segment. */
|
|
154
|
+
harness: HarnessType;
|
|
155
|
+
/** Provider that must serve `model`; a different provider requires another stage. */
|
|
156
|
+
provider: string;
|
|
157
|
+
/** Exact model requested from this provider. */
|
|
158
|
+
model: string;
|
|
159
|
+
/** Select all eligible accounts in account-manager order, or one named account. */
|
|
160
|
+
selector: {
|
|
161
|
+
kind: "all-eligible";
|
|
162
|
+
} | {
|
|
163
|
+
kind: "seat";
|
|
164
|
+
id: string;
|
|
165
|
+
};
|
|
166
|
+
/** Replace the profile-level native tool map for this stage; `{}` clears it. */
|
|
167
|
+
tools?: Record<string, boolean>;
|
|
168
|
+
/** Replace the profile-level permission map for this stage; `{}` clears it. */
|
|
169
|
+
permissions?: Record<string, AgentProfilePermission>;
|
|
170
|
+
}
|
|
151
171
|
/**
|
|
152
172
|
* Prompt shaping for an agent.
|
|
153
173
|
*
|
|
@@ -413,6 +433,12 @@ export interface AgentProfile {
|
|
|
413
433
|
* loop optimize harness routing as a first-class lever.
|
|
414
434
|
*/
|
|
415
435
|
harness?: HarnessType;
|
|
436
|
+
/**
|
|
437
|
+
* Ordered, authored subscription chain for one logical agent. The first
|
|
438
|
+
* stage must match `harness`, `model.provider`, and `model.default` above.
|
|
439
|
+
* Omission preserves the existing single-provider execution policy.
|
|
440
|
+
*/
|
|
441
|
+
seats?: AgentProfileSeat[];
|
|
416
442
|
permissions?: Record<string, AgentProfilePermission>;
|
|
417
443
|
tools?: Record<string, boolean>;
|
|
418
444
|
mcp?: Record<string, AgentProfileMcpServer>;
|
|
@@ -119,6 +119,7 @@ export declare const AgentInteractiveSessionRefSchema: z.ZodObject<{
|
|
|
119
119
|
resourceFailOnError: "resourceFailOnError";
|
|
120
120
|
resourceInstructions: "resourceInstructions";
|
|
121
121
|
resourceTools: "resourceTools";
|
|
122
|
+
seats: "seats";
|
|
122
123
|
skills: "skills";
|
|
123
124
|
subagents: "subagents";
|
|
124
125
|
systemPrompt: "systemPrompt";
|
|
@@ -294,6 +295,7 @@ export declare const AgentInteractiveSessionControlClaimRequestSchema: z.ZodObje
|
|
|
294
295
|
resourceFailOnError: "resourceFailOnError";
|
|
295
296
|
resourceInstructions: "resourceInstructions";
|
|
296
297
|
resourceTools: "resourceTools";
|
|
298
|
+
seats: "seats";
|
|
297
299
|
skills: "skills";
|
|
298
300
|
subagents: "subagents";
|
|
299
301
|
systemPrompt: "systemPrompt";
|
|
@@ -462,6 +464,7 @@ export declare const AgentInteractiveSessionControlClaimAcknowledgementSchema: z
|
|
|
462
464
|
resourceFailOnError: "resourceFailOnError";
|
|
463
465
|
resourceInstructions: "resourceInstructions";
|
|
464
466
|
resourceTools: "resourceTools";
|
|
467
|
+
seats: "seats";
|
|
465
468
|
skills: "skills";
|
|
466
469
|
subagents: "subagents";
|
|
467
470
|
systemPrompt: "systemPrompt";
|
|
@@ -651,6 +654,7 @@ export declare const AgentInteractiveSessionStatusSchema: z.ZodDiscriminatedUnio
|
|
|
651
654
|
resourceFailOnError: "resourceFailOnError";
|
|
652
655
|
resourceInstructions: "resourceInstructions";
|
|
653
656
|
resourceTools: "resourceTools";
|
|
657
|
+
seats: "seats";
|
|
654
658
|
skills: "skills";
|
|
655
659
|
subagents: "subagents";
|
|
656
660
|
systemPrompt: "systemPrompt";
|
|
@@ -799,6 +803,7 @@ export declare const AgentInteractiveSessionStatusSchema: z.ZodDiscriminatedUnio
|
|
|
799
803
|
resourceFailOnError: "resourceFailOnError";
|
|
800
804
|
resourceInstructions: "resourceInstructions";
|
|
801
805
|
resourceTools: "resourceTools";
|
|
806
|
+
seats: "seats";
|
|
802
807
|
skills: "skills";
|
|
803
808
|
subagents: "subagents";
|
|
804
809
|
systemPrompt: "systemPrompt";
|
|
@@ -955,6 +960,7 @@ export declare const AgentInteractiveSessionStatusSchema: z.ZodDiscriminatedUnio
|
|
|
955
960
|
resourceFailOnError: "resourceFailOnError";
|
|
956
961
|
resourceInstructions: "resourceInstructions";
|
|
957
962
|
resourceTools: "resourceTools";
|
|
963
|
+
seats: "seats";
|
|
958
964
|
skills: "skills";
|
|
959
965
|
subagents: "subagents";
|
|
960
966
|
systemPrompt: "systemPrompt";
|
|
@@ -1116,6 +1122,7 @@ export declare const AgentInteractiveSessionStopCommandSchema: z.ZodObject<{
|
|
|
1116
1122
|
resourceFailOnError: "resourceFailOnError";
|
|
1117
1123
|
resourceInstructions: "resourceInstructions";
|
|
1118
1124
|
resourceTools: "resourceTools";
|
|
1125
|
+
seats: "seats";
|
|
1119
1126
|
skills: "skills";
|
|
1120
1127
|
subagents: "subagents";
|
|
1121
1128
|
systemPrompt: "systemPrompt";
|
|
@@ -1286,6 +1293,7 @@ export declare const AgentInteractiveSessionStopAcknowledgementSchema: z.ZodObje
|
|
|
1286
1293
|
resourceFailOnError: "resourceFailOnError";
|
|
1287
1294
|
resourceInstructions: "resourceInstructions";
|
|
1288
1295
|
resourceTools: "resourceTools";
|
|
1296
|
+
seats: "seats";
|
|
1289
1297
|
skills: "skills";
|
|
1290
1298
|
subagents: "subagents";
|
|
1291
1299
|
systemPrompt: "systemPrompt";
|
|
@@ -1472,6 +1480,7 @@ export declare const AgentInteractiveSessionPromptCommandSchema: z.ZodObject<{
|
|
|
1472
1480
|
resourceFailOnError: "resourceFailOnError";
|
|
1473
1481
|
resourceInstructions: "resourceInstructions";
|
|
1474
1482
|
resourceTools: "resourceTools";
|
|
1483
|
+
seats: "seats";
|
|
1475
1484
|
skills: "skills";
|
|
1476
1485
|
subagents: "subagents";
|
|
1477
1486
|
systemPrompt: "systemPrompt";
|
|
@@ -1641,6 +1650,7 @@ export declare const AgentInteractiveSessionPromptAcknowledgementSchema: z.ZodOb
|
|
|
1641
1650
|
resourceFailOnError: "resourceFailOnError";
|
|
1642
1651
|
resourceInstructions: "resourceInstructions";
|
|
1643
1652
|
resourceTools: "resourceTools";
|
|
1653
|
+
seats: "seats";
|
|
1644
1654
|
skills: "skills";
|
|
1645
1655
|
subagents: "subagents";
|
|
1646
1656
|
systemPrompt: "systemPrompt";
|
|
@@ -70,6 +70,36 @@ export declare const AgentInteractiveSessionStartSchema: z.ZodObject<{
|
|
|
70
70
|
pi: "pi";
|
|
71
71
|
prime: "prime";
|
|
72
72
|
}>>;
|
|
73
|
+
seats: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
74
|
+
harness: z.ZodEnum<{
|
|
75
|
+
acp: "acp";
|
|
76
|
+
amp: "amp";
|
|
77
|
+
"claude-code": "claude-code";
|
|
78
|
+
"cli-base": "cli-base";
|
|
79
|
+
codex: "codex";
|
|
80
|
+
cursor: "cursor";
|
|
81
|
+
"factory-droids": "factory-droids";
|
|
82
|
+
forge: "forge";
|
|
83
|
+
gemini: "gemini";
|
|
84
|
+
hermes: "hermes";
|
|
85
|
+
"kimi-code": "kimi-code";
|
|
86
|
+
nanoclaw: "nanoclaw";
|
|
87
|
+
openclaw: "openclaw";
|
|
88
|
+
opencode: "opencode";
|
|
89
|
+
pi: "pi";
|
|
90
|
+
prime: "prime";
|
|
91
|
+
}>;
|
|
92
|
+
provider: z.ZodString;
|
|
93
|
+
model: z.ZodString;
|
|
94
|
+
selector: z.ZodUnion<readonly [z.ZodObject<{
|
|
95
|
+
kind: z.ZodLiteral<"all-eligible">;
|
|
96
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
97
|
+
kind: z.ZodLiteral<"seat">;
|
|
98
|
+
id: z.ZodString;
|
|
99
|
+
}, z.core.$strict>]>;
|
|
100
|
+
tools: z.ZodOptional<z.ZodType<Record<string, boolean>, unknown, z.core.$ZodTypeInternals<Record<string, boolean>, unknown>>>;
|
|
101
|
+
permissions: z.ZodOptional<z.ZodType<Record<string, "allow" | "ask" | "deny" | Record<string, "allow" | "ask" | "deny">>, unknown, z.core.$ZodTypeInternals<Record<string, "allow" | "ask" | "deny" | Record<string, "allow" | "ask" | "deny">>, unknown>>>;
|
|
102
|
+
}, z.core.$strict>>>;
|
|
73
103
|
permissions: z.ZodOptional<z.ZodType<Record<string, "allow" | "ask" | "deny" | Record<string, "allow" | "ask" | "deny">>, unknown, z.core.$ZodTypeInternals<Record<string, "allow" | "ask" | "deny" | Record<string, "allow" | "ask" | "deny">>, unknown>>>;
|
|
74
104
|
tools: z.ZodOptional<z.ZodType<Record<string, boolean>, unknown, z.core.$ZodTypeInternals<Record<string, boolean>, unknown>>>;
|
|
75
105
|
mcp: z.ZodOptional<z.ZodType<Record<string, import("./agent-profile.js").AgentProfileMcpServer>, unknown, z.core.$ZodTypeInternals<Record<string, import("./agent-profile.js").AgentProfileMcpServer>, unknown>>>;
|
|
@@ -87,6 +87,36 @@ export declare const AgentTurnInputSchema: z.ZodObject<{
|
|
|
87
87
|
pi: "pi";
|
|
88
88
|
prime: "prime";
|
|
89
89
|
}>>;
|
|
90
|
+
seats: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
91
|
+
harness: z.ZodEnum<{
|
|
92
|
+
acp: "acp";
|
|
93
|
+
amp: "amp";
|
|
94
|
+
"claude-code": "claude-code";
|
|
95
|
+
"cli-base": "cli-base";
|
|
96
|
+
codex: "codex";
|
|
97
|
+
cursor: "cursor";
|
|
98
|
+
"factory-droids": "factory-droids";
|
|
99
|
+
forge: "forge";
|
|
100
|
+
gemini: "gemini";
|
|
101
|
+
hermes: "hermes";
|
|
102
|
+
"kimi-code": "kimi-code";
|
|
103
|
+
nanoclaw: "nanoclaw";
|
|
104
|
+
openclaw: "openclaw";
|
|
105
|
+
opencode: "opencode";
|
|
106
|
+
pi: "pi";
|
|
107
|
+
prime: "prime";
|
|
108
|
+
}>;
|
|
109
|
+
provider: z.ZodString;
|
|
110
|
+
model: z.ZodString;
|
|
111
|
+
selector: z.ZodUnion<readonly [z.ZodObject<{
|
|
112
|
+
kind: z.ZodLiteral<"all-eligible">;
|
|
113
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
114
|
+
kind: z.ZodLiteral<"seat">;
|
|
115
|
+
id: z.ZodString;
|
|
116
|
+
}, z.core.$strict>]>;
|
|
117
|
+
tools: z.ZodOptional<z.ZodType<Record<string, boolean>, unknown, z.core.$ZodTypeInternals<Record<string, boolean>, unknown>>>;
|
|
118
|
+
permissions: z.ZodOptional<z.ZodType<Record<string, "allow" | "ask" | "deny" | Record<string, "allow" | "ask" | "deny">>, unknown, z.core.$ZodTypeInternals<Record<string, "allow" | "ask" | "deny" | Record<string, "allow" | "ask" | "deny">>, unknown>>>;
|
|
119
|
+
}, z.core.$strict>>>;
|
|
90
120
|
permissions: z.ZodOptional<z.ZodType<Record<string, "allow" | "ask" | "deny" | Record<string, "allow" | "ask" | "deny">>, unknown, z.core.$ZodTypeInternals<Record<string, "allow" | "ask" | "deny" | Record<string, "allow" | "ask" | "deny">>, unknown>>>;
|
|
91
121
|
tools: z.ZodOptional<z.ZodType<Record<string, boolean>, unknown, z.core.$ZodTypeInternals<Record<string, boolean>, unknown>>>;
|
|
92
122
|
mcp: z.ZodOptional<z.ZodType<Record<string, import("./agent-profile.js").AgentProfileMcpServer>, unknown, z.core.$ZodTypeInternals<Record<string, import("./agent-profile.js").AgentProfileMcpServer>, unknown>>>;
|
package/dist/profile-diff.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AgentProfile } from "./agent-profile.js";
|
|
2
|
-
declare const agentProfileDiffPropertyAxes: readonly ["prompt", "model", "harness", "permissions", "tools", "mcp", "connections", "subagents", "resources", "hooks", "modes", "confidential", "metadata", "extensions"];
|
|
2
|
+
declare const agentProfileDiffPropertyAxes: readonly ["prompt", "model", "harness", "seats", "permissions", "tools", "mcp", "connections", "subagents", "resources", "hooks", "modes", "confidential", "metadata", "extensions"];
|
|
3
3
|
export type AgentProfileDiffAxis = "identity" | (typeof agentProfileDiffPropertyAxes)[number];
|
|
4
4
|
export type AgentProfileRemoveList = true | readonly string[];
|
|
5
5
|
export interface AgentProfilePromptRemoval {
|
|
@@ -22,6 +22,7 @@ export interface AgentProfileDiffRemoval {
|
|
|
22
22
|
prompt?: true | AgentProfilePromptRemoval;
|
|
23
23
|
model?: AgentProfileRemoveList;
|
|
24
24
|
harness?: true;
|
|
25
|
+
seats?: true;
|
|
25
26
|
permissions?: AgentProfileRemoveList;
|
|
26
27
|
tools?: AgentProfileRemoveList;
|
|
27
28
|
mcp?: AgentProfileRemoveList;
|
package/dist/profile-diff.js
CHANGED
|
@@ -4,6 +4,7 @@ const agentProfileDiffPropertyAxes = [
|
|
|
4
4
|
"prompt",
|
|
5
5
|
"model",
|
|
6
6
|
"harness",
|
|
7
|
+
"seats",
|
|
7
8
|
"permissions",
|
|
8
9
|
"tools",
|
|
9
10
|
"mcp",
|
|
@@ -252,6 +253,8 @@ function applyRemoval(profile, remove) {
|
|
|
252
253
|
}
|
|
253
254
|
if (remove.harness !== undefined)
|
|
254
255
|
delete next.harness;
|
|
256
|
+
if (remove.seats !== undefined)
|
|
257
|
+
delete next.seats;
|
|
255
258
|
if (remove.permissions !== undefined) {
|
|
256
259
|
setOrDelete(next, "permissions", removeKeys(next.permissions, remove.permissions));
|
|
257
260
|
}
|