@tangle-network/agent-interface 0.44.0 → 0.46.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/README.md +1 -1
- package/dist/agent-candidate-code-schema.d.ts +1 -0
- package/dist/agent-candidate-execution-plan-schema.d.ts +8 -6
- package/dist/agent-candidate-profile-schema.d.ts +3 -2
- package/dist/agent-candidate-promotion-schema.d.ts +59 -42
- package/dist/agent-candidate-receipt-schema.d.ts +5 -4
- package/dist/agent-candidate-schema-common.js +1 -1
- package/dist/agent-candidate-schema.d.ts +4 -2
- package/dist/agent-execution-preparation.d.ts +27 -26
- package/dist/agent-profile.d.ts +10 -3
- package/dist/agent-profile.js +45 -22
- package/dist/backend-message.d.ts +14 -0
- package/dist/backend-message.js +1 -0
- package/dist/contract-limits.d.ts +26 -0
- package/dist/contract-limits.js +175 -0
- package/dist/environment-exact-process.d.ts +161 -0
- package/dist/environment-exact-process.js +1 -0
- package/dist/environment-profile-capabilities.d.ts +26 -0
- package/dist/environment-profile-capabilities.js +34 -0
- package/dist/environment-provider.d.ts +3 -730
- package/dist/environment-provider.js +3 -245
- package/dist/environment-requests.d.ts +70 -0
- package/dist/environment-requests.js +1 -0
- package/dist/environment-runtime.d.ts +834 -0
- package/dist/environment-runtime.js +228 -0
- package/dist/execution-types.d.ts +47 -0
- package/dist/execution-types.js +1 -0
- package/dist/harness-capabilities.js +5 -0
- package/dist/harness.d.ts +6 -1
- package/dist/harness.js +1 -0
- package/dist/host-services.d.ts +91 -0
- package/dist/host-services.js +1 -0
- package/dist/index.d.ts +10 -617
- package/dist/index.js +10 -125
- package/dist/interaction-answer-validation.d.ts +13 -0
- package/dist/interaction-answer-validation.js +149 -0
- package/dist/interaction-data.d.ts +22 -0
- package/dist/interaction-data.js +46 -0
- package/dist/interaction-envelope.d.ts +258 -0
- package/dist/interaction-envelope.js +245 -0
- package/dist/interaction-fields.d.ts +130 -0
- package/dist/interaction-fields.js +227 -0
- package/dist/interaction-permissions.d.ts +28 -0
- package/dist/interaction-permissions.js +57 -0
- package/dist/interaction-resolution-validation.d.ts +9 -0
- package/dist/interaction-resolution-validation.js +50 -0
- package/dist/interaction-response-validation.d.ts +17 -0
- package/dist/interaction-response-validation.js +102 -0
- package/dist/interaction.d.ts +6 -397
- package/dist/interaction.js +6 -603
- package/dist/mcp.d.ts +38 -0
- package/dist/mcp.js +1 -0
- package/dist/parts.d.ts +104 -0
- package/dist/parts.js +55 -0
- package/dist/portable-context-base.d.ts +82 -0
- package/dist/portable-context-base.js +63 -0
- package/dist/portable-context-continuation.d.ts +168 -0
- package/dist/portable-context-continuation.js +194 -0
- package/dist/portable-context-plan-request.d.ts +86 -0
- package/dist/portable-context-plan-request.js +102 -0
- package/dist/portable-context-plan.d.ts +229 -0
- package/dist/portable-context-plan.js +241 -0
- package/dist/portable-context-shared.d.ts +36 -0
- package/dist/portable-context-shared.js +46 -0
- package/dist/portable-context-transfer.d.ts +319 -0
- package/dist/portable-context-transfer.js +206 -0
- package/dist/portable-context.d.ts +5 -753
- package/dist/portable-context.js +5 -754
- package/dist/profile-diff.js +56 -47
- package/dist/profile-schema.d.ts +1 -0
- package/dist/provider-adapter.d.ts +45 -0
- package/dist/provider-adapter.js +1 -0
- package/dist/provider-config.d.ts +58 -0
- package/dist/provider-config.js +42 -0
- package/dist/runtime-control.d.ts +87 -10
- package/dist/runtime-control.js +159 -38
- package/dist/stream-events.d.ts +55 -0
- package/dist/stream-events.js +1 -0
- package/dist/workspace-branching-shared.d.ts +7 -0
- package/dist/workspace-branching-shared.js +20 -0
- package/dist/workspace-branching.d.ts +4 -254
- package/dist/workspace-branching.js +4 -400
- package/dist/workspace-checkpoint.d.ts +99 -0
- package/dist/workspace-checkpoint.js +169 -0
- package/dist/workspace-cleanup.d.ts +85 -0
- package/dist/workspace-cleanup.js +156 -0
- package/dist/workspace-confidentiality.d.ts +59 -0
- package/dist/workspace-confidentiality.js +123 -0
- package/dist/workspace-fork.d.ts +182 -0
- package/dist/workspace-fork.js +267 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ shapes; higher-level packages import from here rather than redefining them.
|
|
|
10
10
|
`AgentRunControlRef` identifies a retained run without depending on a live JavaScript object and may carry the provider's admission digest so reconstruction can reject changed-input reuse.
|
|
11
11
|
`RuntimeEventEnvelope` adds stable run, event, sequence, cursor, and timestamp fields around the existing `StreamEvent` union, and its runtime schema validates every canonical event variant.
|
|
12
12
|
Providers advertise `retainedControl` only when exact run, result, event, cancellation, replay, detach, turn, and session identity are all implemented together.
|
|
13
|
-
`AgentSession.cancelRun()` accepts a canonical request digest bound to one operation and `
|
|
13
|
+
`AgentSession.cancelRun()` accepts a canonical request digest bound to one operation and `AgentExactRunControlRef`, so a caller can safely repeat the same cancellation after losing the first acknowledgement.
|
|
14
14
|
Its acknowledgement repeats the operation, digest, and run coordinates and distinguishes a known cancellation effect from conflict or unknown state.
|
|
15
15
|
|
|
16
16
|
An environment advertises `interactions` only when it can originate and answer typed requests.
|
|
@@ -69,6 +69,7 @@ export declare const agentCandidateProfilePlanMaterialSchema: z.ZodObject<{
|
|
|
69
69
|
opencode: "opencode";
|
|
70
70
|
"kimi-code": "kimi-code";
|
|
71
71
|
pi: "pi";
|
|
72
|
+
prime: "prime";
|
|
72
73
|
gemini: "gemini";
|
|
73
74
|
hermes: "hermes";
|
|
74
75
|
openclaw: "openclaw";
|
|
@@ -332,6 +333,7 @@ export declare const agentCandidateExecutionPlanMaterialSchema: z.ZodObject<{
|
|
|
332
333
|
opencode: "opencode";
|
|
333
334
|
"kimi-code": "kimi-code";
|
|
334
335
|
pi: "pi";
|
|
336
|
+
prime: "prime";
|
|
335
337
|
gemini: "gemini";
|
|
336
338
|
hermes: "hermes";
|
|
337
339
|
openclaw: "openclaw";
|
|
@@ -527,7 +529,7 @@ export declare const agentCandidateProfilePlanEvidenceSchema: z.ZodObject<{
|
|
|
527
529
|
digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
528
530
|
material: z.ZodType<{
|
|
529
531
|
sourceProfileDigest: `sha256:${string}`;
|
|
530
|
-
harness: "claude-code" | "nanoclaw" | "codex" | "opencode" | "kimi-code" | "pi" | "gemini" | "hermes" | "openclaw" | "amp" | "factory-droids" | "forge" | "cursor" | "acp" | "cli-base";
|
|
532
|
+
harness: "claude-code" | "nanoclaw" | "codex" | "opencode" | "kimi-code" | "pi" | "prime" | "gemini" | "hermes" | "openclaw" | "amp" | "factory-droids" | "forge" | "cursor" | "acp" | "cli-base";
|
|
531
533
|
files: {
|
|
532
534
|
relPath: string;
|
|
533
535
|
mode: number;
|
|
@@ -555,7 +557,7 @@ export declare const agentCandidateProfilePlanEvidenceSchema: z.ZodObject<{
|
|
|
555
557
|
} | undefined;
|
|
556
558
|
}, unknown, z.core.$ZodTypeInternals<{
|
|
557
559
|
sourceProfileDigest: `sha256:${string}`;
|
|
558
|
-
harness: "claude-code" | "nanoclaw" | "codex" | "opencode" | "kimi-code" | "pi" | "gemini" | "hermes" | "openclaw" | "amp" | "factory-droids" | "forge" | "cursor" | "acp" | "cli-base";
|
|
560
|
+
harness: "claude-code" | "nanoclaw" | "codex" | "opencode" | "kimi-code" | "pi" | "prime" | "gemini" | "hermes" | "openclaw" | "amp" | "factory-droids" | "forge" | "cursor" | "acp" | "cli-base";
|
|
559
561
|
files: {
|
|
560
562
|
relPath: string;
|
|
561
563
|
mode: number;
|
|
@@ -608,7 +610,7 @@ export declare const agentCandidateProfileActivationSchema: z.ZodObject<{
|
|
|
608
610
|
digest: `sha256:${string}`;
|
|
609
611
|
material: {
|
|
610
612
|
sourceProfileDigest: `sha256:${string}`;
|
|
611
|
-
harness: "claude-code" | "nanoclaw" | "codex" | "opencode" | "kimi-code" | "pi" | "gemini" | "hermes" | "openclaw" | "amp" | "factory-droids" | "forge" | "cursor" | "acp" | "cli-base";
|
|
613
|
+
harness: "claude-code" | "nanoclaw" | "codex" | "opencode" | "kimi-code" | "pi" | "prime" | "gemini" | "hermes" | "openclaw" | "amp" | "factory-droids" | "forge" | "cursor" | "acp" | "cli-base";
|
|
612
614
|
files: {
|
|
613
615
|
relPath: string;
|
|
614
616
|
mode: number;
|
|
@@ -659,7 +661,7 @@ export declare const agentCandidateProfileActivationSchema: z.ZodObject<{
|
|
|
659
661
|
digest: `sha256:${string}`;
|
|
660
662
|
material: {
|
|
661
663
|
sourceProfileDigest: `sha256:${string}`;
|
|
662
|
-
harness: "claude-code" | "nanoclaw" | "codex" | "opencode" | "kimi-code" | "pi" | "gemini" | "hermes" | "openclaw" | "amp" | "factory-droids" | "forge" | "cursor" | "acp" | "cli-base";
|
|
664
|
+
harness: "claude-code" | "nanoclaw" | "codex" | "opencode" | "kimi-code" | "pi" | "prime" | "gemini" | "hermes" | "openclaw" | "amp" | "factory-droids" | "forge" | "cursor" | "acp" | "cli-base";
|
|
663
665
|
files: {
|
|
664
666
|
relPath: string;
|
|
665
667
|
mode: number;
|
|
@@ -743,7 +745,7 @@ export declare const agentCandidateExecutionPlanEvidenceSchema: z.ZodObject<{
|
|
|
743
745
|
targetWorkspace: "candidate" | "task";
|
|
744
746
|
mountPaths: string[];
|
|
745
747
|
};
|
|
746
|
-
harness: "claude-code" | "nanoclaw" | "codex" | "opencode" | "kimi-code" | "pi" | "gemini" | "hermes" | "openclaw" | "amp" | "factory-droids" | "forge" | "cursor" | "acp" | "cli-base";
|
|
748
|
+
harness: "claude-code" | "nanoclaw" | "codex" | "opencode" | "kimi-code" | "pi" | "prime" | "gemini" | "hermes" | "openclaw" | "amp" | "factory-droids" | "forge" | "cursor" | "acp" | "cli-base";
|
|
747
749
|
harnessVersion: string;
|
|
748
750
|
instructionDelivery: {
|
|
749
751
|
kind: "argv-append";
|
|
@@ -986,7 +988,7 @@ export declare const agentCandidateExecutionPlanEvidenceSchema: z.ZodObject<{
|
|
|
986
988
|
targetWorkspace: "candidate" | "task";
|
|
987
989
|
mountPaths: string[];
|
|
988
990
|
};
|
|
989
|
-
harness: "claude-code" | "nanoclaw" | "codex" | "opencode" | "kimi-code" | "pi" | "gemini" | "hermes" | "openclaw" | "amp" | "factory-droids" | "forge" | "cursor" | "acp" | "cli-base";
|
|
991
|
+
harness: "claude-code" | "nanoclaw" | "codex" | "opencode" | "kimi-code" | "pi" | "prime" | "gemini" | "hermes" | "openclaw" | "amp" | "factory-droids" | "forge" | "cursor" | "acp" | "cli-base";
|
|
990
992
|
harnessVersion: string;
|
|
991
993
|
instructionDelivery: {
|
|
992
994
|
kind: "argv-append";
|
|
@@ -46,6 +46,7 @@ export declare const agentCandidateProfileSchema: z.ZodObject<{
|
|
|
46
46
|
opencode: "opencode";
|
|
47
47
|
"kimi-code": "kimi-code";
|
|
48
48
|
pi: "pi";
|
|
49
|
+
prime: "prime";
|
|
49
50
|
gemini: "gemini";
|
|
50
51
|
hermes: "hermes";
|
|
51
52
|
openclaw: "openclaw";
|
|
@@ -65,9 +66,9 @@ export declare const agentCandidateProfileSchema: z.ZodObject<{
|
|
|
65
66
|
mcp: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<AgentCandidateMcpServer, unknown, z.core.$ZodTypeInternals<AgentCandidateMcpServer, unknown>>>>;
|
|
66
67
|
subagents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
67
68
|
prompt: z.ZodOptional<z.ZodString>;
|
|
68
|
-
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>>>;
|
|
69
69
|
tools: z.ZodOptional<z.ZodType<Record<string, boolean>, unknown, z.core.$ZodTypeInternals<Record<string, boolean>, unknown>>>;
|
|
70
70
|
description: z.ZodOptional<z.ZodString>;
|
|
71
|
+
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>>>;
|
|
71
72
|
model: z.ZodOptional<z.ZodString>;
|
|
72
73
|
maxSteps: z.ZodOptional<z.ZodNumber>;
|
|
73
74
|
}, z.core.$strict>>>;
|
|
@@ -544,9 +545,9 @@ export declare const agentCandidateProfileSchema: z.ZodObject<{
|
|
|
544
545
|
}, z.core.$strict>>>>;
|
|
545
546
|
modes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
546
547
|
prompt: z.ZodOptional<z.ZodString>;
|
|
547
|
-
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>>>;
|
|
548
548
|
tools: z.ZodOptional<z.ZodType<Record<string, boolean>, unknown, z.core.$ZodTypeInternals<Record<string, boolean>, unknown>>>;
|
|
549
549
|
description: z.ZodOptional<z.ZodString>;
|
|
550
|
+
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>>>;
|
|
550
551
|
model: z.ZodOptional<z.ZodString>;
|
|
551
552
|
}, z.core.$strict>>>;
|
|
552
553
|
confidential: z.ZodOptional<z.ZodObject<{
|