@tangle-network/agent-interface 5.2.0 → 5.3.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.
Files changed (38) hide show
  1. package/dist/agent-candidate-code-schema.d.ts +63 -14
  2. package/dist/agent-candidate-code-schema.js +2 -1
  3. package/dist/agent-candidate-execution-plan-schema.d.ts +262 -20
  4. package/dist/agent-candidate-execution-plan-schema.js +30 -7
  5. package/dist/agent-candidate-profile-schema.d.ts +63 -8
  6. package/dist/agent-candidate-profile-schema.js +2 -0
  7. package/dist/agent-candidate-promotion-schema.d.ts +952 -100
  8. package/dist/agent-candidate-receipt-schema.d.ts +104 -8
  9. package/dist/agent-candidate-schema-common.d.ts +30 -3
  10. package/dist/agent-candidate-schema-common.js +14 -8
  11. package/dist/agent-candidate-schema.d.ts +72 -10
  12. package/dist/agent-candidate.d.ts +12 -4
  13. package/dist/agent-execution-preparation-receipt.d.ts +2 -0
  14. package/dist/agent-execution-preparation.js +4 -2
  15. package/dist/agent-profile-materialization.d.ts +1 -1
  16. package/dist/agent-profile-materialization.js +3 -0
  17. package/dist/agent-profile.d.ts +6 -0
  18. package/dist/agent-profile.js +9 -2
  19. package/dist/environment-interactive-control.d.ts +10 -0
  20. package/dist/environment-interactive-start.d.ts +33 -6
  21. package/dist/environment-profile-capabilities.d.ts +18 -0
  22. package/dist/environment-profile-capabilities.js +2 -0
  23. package/dist/environment-provider.d.ts +1 -0
  24. package/dist/environment-provider.js +1 -0
  25. package/dist/environment-runtime.d.ts +176 -18
  26. package/dist/environment-runtime.js +14 -1
  27. package/dist/harness-capabilities.js +1 -1
  28. package/dist/index.d.ts +1 -0
  29. package/dist/index.js +1 -0
  30. package/dist/portable-context-transfer.d.ts +33 -6
  31. package/dist/profile-diff.d.ts +4 -3
  32. package/dist/profile-diff.js +11 -0
  33. package/dist/profile-schema.d.ts +50 -21
  34. package/dist/profile-schema.js +6 -13
  35. package/dist/proxy-secrets.d.ts +329 -0
  36. package/dist/proxy-secrets.js +183 -0
  37. package/fixtures/proxy-secret-wire-v1.json +1119 -0
  38. package/package.json +2 -1
@@ -3,17 +3,31 @@ import type { AgentCandidateMcpServer } from "./agent-candidate.js";
3
3
  export declare const agentCandidateMcpServerSchema: z.ZodType<AgentCandidateMcpServer>;
4
4
  export declare const agentCandidateHookCommandSchema: z.ZodObject<{
5
5
  executable: z.ZodString;
6
- args: z.ZodOptional<z.ZodArray<z.ZodObject<{
6
+ args: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
7
7
  kind: z.ZodLiteral<"public">;
8
8
  value: z.ZodString;
9
- }, z.core.$strict>>>;
9
+ }, z.core.$strict>, z.ZodObject<{
10
+ kind: z.ZodLiteral<"secret-ref">;
11
+ key: z.ZodString;
12
+ format: z.ZodOptional<z.ZodEnum<{
13
+ bearer: "bearer";
14
+ raw: "raw";
15
+ }>>;
16
+ }, z.core.$strict>], "kind">>>;
10
17
  timeoutMs: z.ZodOptional<z.ZodNumber>;
11
18
  blocking: z.ZodOptional<z.ZodBoolean>;
12
19
  matcher: z.ZodOptional<z.ZodString>;
13
- env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
20
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
14
21
  kind: z.ZodLiteral<"public">;
15
22
  value: z.ZodString;
16
- }, z.core.$strict>>>;
23
+ }, z.core.$strict>, z.ZodObject<{
24
+ kind: z.ZodLiteral<"secret-ref">;
25
+ key: z.ZodString;
26
+ format: z.ZodOptional<z.ZodEnum<{
27
+ bearer: "bearer";
28
+ raw: "raw";
29
+ }>>;
30
+ }, z.core.$strict>], "kind">>>;
17
31
  }, z.core.$strict>;
18
32
  export declare const agentCandidateProfileSchema: z.ZodObject<{
19
33
  name: z.ZodOptional<z.ZodString>;
@@ -60,6 +74,33 @@ export declare const agentCandidateProfileSchema: z.ZodObject<{
60
74
  pi: "pi";
61
75
  prime: "prime";
62
76
  }>>;
77
+ proxySecrets: z.ZodOptional<z.ZodArray<z.ZodObject<{
78
+ hosts: z.ZodReadonly<z.ZodArray<z.ZodString>>;
79
+ methods: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
80
+ paths: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
81
+ envName: z.ZodString;
82
+ secretRef: z.ZodObject<{
83
+ kind: z.ZodLiteral<"secret-ref">;
84
+ key: z.ZodString;
85
+ }, z.core.$strict>;
86
+ presentation: z.ZodDiscriminatedUnion<[z.ZodObject<{
87
+ type: z.ZodLiteral<"bearer">;
88
+ }, z.core.$strict>, z.ZodObject<{
89
+ type: z.ZodLiteral<"basic">;
90
+ username: z.ZodString;
91
+ }, z.core.$strict>, z.ZodObject<{
92
+ type: z.ZodLiteral<"header">;
93
+ name: z.ZodString;
94
+ }, z.core.$strict>, z.ZodObject<{
95
+ type: z.ZodLiteral<"query">;
96
+ name: z.ZodString;
97
+ }, z.core.$strict>], "type">;
98
+ placeholderFormat: z.ZodOptional<z.ZodEnum<{
99
+ jwt: "jwt";
100
+ opaque: "opaque";
101
+ }>>;
102
+ ttlSeconds: z.ZodOptional<z.ZodNumber>;
103
+ }, z.core.$strict>>>;
63
104
  permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodEnum<{
64
105
  allow: "allow";
65
106
  ask: "ask";
@@ -538,17 +579,31 @@ export declare const agentCandidateProfileSchema: z.ZodObject<{
538
579
  }, z.core.$strict>>;
539
580
  hooks: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
540
581
  executable: z.ZodString;
541
- args: z.ZodOptional<z.ZodArray<z.ZodObject<{
582
+ args: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
542
583
  kind: z.ZodLiteral<"public">;
543
584
  value: z.ZodString;
544
- }, z.core.$strict>>>;
585
+ }, z.core.$strict>, z.ZodObject<{
586
+ kind: z.ZodLiteral<"secret-ref">;
587
+ key: z.ZodString;
588
+ format: z.ZodOptional<z.ZodEnum<{
589
+ bearer: "bearer";
590
+ raw: "raw";
591
+ }>>;
592
+ }, z.core.$strict>], "kind">>>;
545
593
  timeoutMs: z.ZodOptional<z.ZodNumber>;
546
594
  blocking: z.ZodOptional<z.ZodBoolean>;
547
595
  matcher: z.ZodOptional<z.ZodString>;
548
- env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
596
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
549
597
  kind: z.ZodLiteral<"public">;
550
598
  value: z.ZodString;
551
- }, z.core.$strict>>>;
599
+ }, z.core.$strict>, z.ZodObject<{
600
+ kind: z.ZodLiteral<"secret-ref">;
601
+ key: z.ZodString;
602
+ format: z.ZodOptional<z.ZodEnum<{
603
+ bearer: "bearer";
604
+ raw: "raw";
605
+ }>>;
606
+ }, z.core.$strict>], "kind">>>;
552
607
  }, z.core.$strict>>>>;
553
608
  modes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
554
609
  description: z.ZodOptional<z.ZodString>;
@@ -1,4 +1,5 @@
1
1
  import { z } from "zod";
2
+ import { ProxySecretsSchema } from "./proxy-secrets.js";
2
3
  import { agentCandidateResourcesSchema } from "./agent-candidate-artifact-schema.js";
3
4
  import { agentCandidateConfigValueSchema, environmentConfigSchema, isCanonicalJsonValue, isSafeExecutable, isSafeRelativePath, isWellFormedUnicode, } from "./agent-candidate-schema-common.js";
4
5
  import { harnessTypeSchema } from "./harness.js";
@@ -68,6 +69,7 @@ export const agentCandidateProfileSchema = z
68
69
  prompt: agentProfilePromptSchema.strict().optional(),
69
70
  model: candidateModelHintsSchema.optional(),
70
71
  harness: harnessTypeSchema.optional(),
72
+ proxySecrets: ProxySecretsSchema.optional(),
71
73
  permissions: z
72
74
  .record(z.string(), agentProfilePermissionSchema)
73
75
  .optional(),