@tangle-network/agent-interface 0.43.1 → 0.45.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 CHANGED
@@ -48,6 +48,12 @@ The older `checkpoint()` and `fork()` methods remain source-compatible for provi
48
48
  All new wire values have exported Zod schemas on the package root.
49
49
  Omitting `interactions` and `nativeContinuation`, or leaving the three durable branching flags false, is the compatible declaration for existing providers.
50
50
 
51
+ `profile.systemPrompt` declares two independent bits rather than one flag.
52
+ `replace` means the provider deletes the harness's own system prompt and installs `prompt.systemPrompt`; `append` means it keeps that prompt and adds `prompt.appendSystemPrompt` to it.
53
+ A provider that can only append must declare `replace: false` and refuse a profile carrying `systemPrompt`, because quietly appending a requested replacement leaves the instructions the caller asked to delete in force.
54
+
55
+
56
+
51
57
  ## Install
52
58
 
53
59
  ```bash
@@ -77,7 +83,8 @@ const provider: AgentEnvironmentProvider = {
77
83
  capabilities: () => ({
78
84
  profile: {
79
85
  namedProfiles: false,
80
- systemPrompt: true,
86
+ // Most harnesses can only add to their built-in prompt, not delete it.
87
+ systemPrompt: { replace: false, append: true },
81
88
  instructions: true,
82
89
  tools: true,
83
90
  permissions: true,
@@ -161,6 +161,7 @@ export declare const agentCandidateExecutionSchema: z.ZodObject<{
161
161
  opencode: "opencode";
162
162
  "kimi-code": "kimi-code";
163
163
  pi: "pi";
164
+ prime: "prime";
164
165
  gemini: "gemini";
165
166
  hermes: "hermes";
166
167
  openclaw: "openclaw";
@@ -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";
@@ -96,6 +97,10 @@ export declare const agentCandidateProfilePlanMaterialSchema: z.ZodObject<{
96
97
  kind: z.ZodLiteral<"public">;
97
98
  value: z.ZodString;
98
99
  }, z.core.$strict>>;
100
+ appendSystemPrompt: z.ZodOptional<z.ZodObject<{
101
+ kind: z.ZodLiteral<"public">;
102
+ value: z.ZodString;
103
+ }, z.core.$strict>>;
99
104
  unsupported: z.ZodArray<z.ZodObject<{
100
105
  dimension: z.ZodString;
101
106
  reason: z.ZodString;
@@ -328,6 +333,7 @@ export declare const agentCandidateExecutionPlanMaterialSchema: z.ZodObject<{
328
333
  opencode: "opencode";
329
334
  "kimi-code": "kimi-code";
330
335
  pi: "pi";
336
+ prime: "prime";
331
337
  gemini: "gemini";
332
338
  hermes: "hermes";
333
339
  openclaw: "openclaw";
@@ -523,7 +529,7 @@ export declare const agentCandidateProfilePlanEvidenceSchema: z.ZodObject<{
523
529
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
524
530
  material: z.ZodType<{
525
531
  sourceProfileDigest: `sha256:${string}`;
526
- 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";
527
533
  files: {
528
534
  relPath: string;
529
535
  mode: number;
@@ -545,9 +551,13 @@ export declare const agentCandidateProfilePlanEvidenceSchema: z.ZodObject<{
545
551
  kind: "public";
546
552
  value: string;
547
553
  } | undefined;
554
+ appendSystemPrompt?: {
555
+ kind: "public";
556
+ value: string;
557
+ } | undefined;
548
558
  }, unknown, z.core.$ZodTypeInternals<{
549
559
  sourceProfileDigest: `sha256:${string}`;
550
- 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";
551
561
  files: {
552
562
  relPath: string;
553
563
  mode: number;
@@ -569,6 +579,10 @@ export declare const agentCandidateProfilePlanEvidenceSchema: z.ZodObject<{
569
579
  kind: "public";
570
580
  value: string;
571
581
  } | undefined;
582
+ appendSystemPrompt?: {
583
+ kind: "public";
584
+ value: string;
585
+ } | undefined;
572
586
  }, unknown>>;
573
587
  artifact: z.ZodUnion<readonly [z.ZodObject<{
574
588
  locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -596,7 +610,7 @@ export declare const agentCandidateProfileActivationSchema: z.ZodObject<{
596
610
  digest: `sha256:${string}`;
597
611
  material: {
598
612
  sourceProfileDigest: `sha256:${string}`;
599
- 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";
600
614
  files: {
601
615
  relPath: string;
602
616
  mode: number;
@@ -618,6 +632,10 @@ export declare const agentCandidateProfileActivationSchema: z.ZodObject<{
618
632
  kind: "public";
619
633
  value: string;
620
634
  } | undefined;
635
+ appendSystemPrompt?: {
636
+ kind: "public";
637
+ value: string;
638
+ } | undefined;
621
639
  };
622
640
  artifact: {
623
641
  locator: {
@@ -643,7 +661,7 @@ export declare const agentCandidateProfileActivationSchema: z.ZodObject<{
643
661
  digest: `sha256:${string}`;
644
662
  material: {
645
663
  sourceProfileDigest: `sha256:${string}`;
646
- 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";
647
665
  files: {
648
666
  relPath: string;
649
667
  mode: number;
@@ -665,6 +683,10 @@ export declare const agentCandidateProfileActivationSchema: z.ZodObject<{
665
683
  kind: "public";
666
684
  value: string;
667
685
  } | undefined;
686
+ appendSystemPrompt?: {
687
+ kind: "public";
688
+ value: string;
689
+ } | undefined;
668
690
  };
669
691
  artifact: {
670
692
  locator: {
@@ -723,7 +745,7 @@ export declare const agentCandidateExecutionPlanEvidenceSchema: z.ZodObject<{
723
745
  targetWorkspace: "candidate" | "task";
724
746
  mountPaths: string[];
725
747
  };
726
- 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";
727
749
  harnessVersion: string;
728
750
  instructionDelivery: {
729
751
  kind: "argv-append";
@@ -966,7 +988,7 @@ export declare const agentCandidateExecutionPlanEvidenceSchema: z.ZodObject<{
966
988
  targetWorkspace: "candidate" | "task";
967
989
  mountPaths: string[];
968
990
  };
969
- 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";
970
992
  harnessVersion: string;
971
993
  instructionDelivery: {
972
994
  kind: "argv-append";
@@ -117,6 +117,7 @@ export const agentCandidateProfilePlanMaterialSchema = z
117
117
  env: environmentConfigSchema,
118
118
  flags: z.array(agentCandidateConfigValueSchema),
119
119
  systemPrompt: agentCandidateConfigValueSchema.optional(),
120
+ appendSystemPrompt: agentCandidateConfigValueSchema.optional(),
120
121
  unsupported: z
121
122
  .array(z
122
123
  .object({
@@ -22,6 +22,7 @@ export declare const agentCandidateProfileSchema: z.ZodObject<{
22
22
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
23
23
  prompt: z.ZodOptional<z.ZodObject<{
24
24
  systemPrompt: z.ZodOptional<z.ZodString>;
25
+ appendSystemPrompt: z.ZodOptional<z.ZodString>;
25
26
  instructions: z.ZodOptional<z.ZodArray<z.ZodString>>;
26
27
  }, z.core.$strict>>;
27
28
  model: z.ZodOptional<z.ZodObject<{
@@ -45,6 +46,7 @@ export declare const agentCandidateProfileSchema: z.ZodObject<{
45
46
  opencode: "opencode";
46
47
  "kimi-code": "kimi-code";
47
48
  pi: "pi";
49
+ prime: "prime";
48
50
  gemini: "gemini";
49
51
  hermes: "hermes";
50
52
  openclaw: "openclaw";