@deathbeam/pi-delegate 0.0.37 → 0.0.38

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 (3) hide show
  1. package/format.ts +1 -1
  2. package/index.ts +3 -2
  3. package/package.json +1 -1
package/format.ts CHANGED
@@ -276,7 +276,7 @@ export function reportText(report: DelegateReport): string {
276
276
  // The apply hint is for the model only: the transcript renders `output`, so users never see it.
277
277
  const hint =
278
278
  report.isolation && !report.cloneClosed
279
- ? `\n\nCall delegate_apply with job ${report.id} to land its changes, or delegate_discard to drop them.`
279
+ ? `\n\nCall delegate_apply with job ${report.id} to land its changes, or delegate_discard to drop them. Call one, not both: a successful apply removes the clone.`
280
280
  : "";
281
281
  return `${head} finished.${output ? `\n\n${output}` : ""}${hint}`;
282
282
  }
package/index.ts CHANGED
@@ -671,7 +671,7 @@ export default function (pi: ExtensionAPI) {
671
671
  name: "delegate_apply",
672
672
  label: "Apply delegate",
673
673
  description:
674
- "Apply an isolated delegate's changes to the main working tree by job id. The delegate's commits and uncommitted changes are 3-way merged onto a fresh snapshot of the main tree, so nearby but non-overlapping edits apply cleanly; only a true conflict fails. On conflict the clone is kept and the error explains the recovery. No delegate may be running in its clone.",
674
+ "Apply an isolated delegate's changes to the main working tree by job id. The delegate's commits and uncommitted changes are 3-way merged onto a fresh snapshot of the main tree, so nearby but non-overlapping edits apply cleanly; only a true conflict fails. A successful apply removes the clone itself, so never call delegate_discard for the same clone, in the same turn or after. On conflict the clone is kept and the error explains the recovery. No delegate may be running in its clone.",
675
675
  promptSnippet: "Apply an isolated delegate's clone to the main tree by job id",
676
676
  parameters: Type.Object({
677
677
  id: Type.String({ description: "Job id of an isolated delegate; any job id that ran in the clone works." }),
@@ -733,7 +733,8 @@ export default function (pi: ExtensionAPI) {
733
733
  pi.registerTool({
734
734
  name: "delegate_discard",
735
735
  label: "Discard delegate clone",
736
- description: "Remove an isolated delegate's clone without applying its changes.",
736
+ description:
737
+ "Remove an isolated delegate's clone without applying its changes. Use it instead of delegate_apply, never alongside it: a successful apply already removes the clone, and a discard in the same turn deletes the clone that apply needs.",
737
738
  promptSnippet: "Discard an isolated delegate's clone by job id",
738
739
  parameters: Type.Object({
739
740
  id: Type.String({ description: "Job id of an isolated delegate; any job id that ran in the clone works." }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deathbeam/pi-delegate",
3
- "version": "0.0.37",
3
+ "version": "0.0.38",
4
4
  "description": "Minimal extension for delegating tasks to subagents.",
5
5
  "type": "module",
6
6
  "license": "MIT",