@naxodev/pi-apnea 0.2.1 → 0.2.2

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
@@ -33,6 +33,10 @@ Run these commands inside Pi:
33
33
 
34
34
  The shorter `/apnea-start` and `/apnea-status` aliases are also available. See the [Apnea CLI and operation reference](../apnea/README.md#cli-reference) for the shared command surface and exit behavior.
35
35
 
36
+ `/apnea abandon` previews ownership before any archival. Its confirmation, pane-close requests,
37
+ stopped-work attestation, and corrupt-state acknowledgment use the same flags and behavior as the CLI.
38
+ See [abandon confirmation](../apnea/README.md#abandon-confirmation). Abandon is not a model-facing tool.
39
+
36
40
  ## Verify
37
41
 
38
42
  Run `/apnea status` before starting a workflow. A clean installation reports no active run and identifies `workflow_start` as a legal next operation. If Pi does not register the commands, run `/reload` and inspect Pi's package-loading output.
@@ -18,7 +18,6 @@ import { executePiOperation, PI_OPERATIONS } from "./runtime.ts"
18
18
  export const SUBS = [
19
19
  ...PI_OPERATIONS.map((o) => o.verb),
20
20
  "resume",
21
- "abandon",
22
21
  "help",
23
22
  ] as const satisfies readonly string[]
24
23
 
@@ -67,7 +66,7 @@ function helpText(operations: readonly Operation[]): string {
67
66
  return [
68
67
  "Apnea commands (tools remain for the model; you use /apnea):",
69
68
  ...lines,
70
- " /apnea resume | abandon # actions on an existing run",
69
+ " /apnea resume # resume an existing run",
71
70
  ` dispatch kinds: ${DISPATCH_KINDS.join(" | ")}`,
72
71
  " /apnea help",
73
72
  ].join("\n")
@@ -223,7 +222,13 @@ export function registerApneaCommands(
223
222
  case "abandon":
224
223
  notify(
225
224
  ctx,
226
- await run(ctx.signal, "start", { goal: "", action: "abandon" }),
225
+ await run(ctx.signal, "abandon", {
226
+ confirm: values.get("confirm"),
227
+ stop_panes: flags.has("stop-panes") || undefined,
228
+ stopped_work: flags.has("stopped-work") || undefined,
229
+ acknowledge_corrupt:
230
+ flags.has("acknowledge-corrupt") || undefined,
231
+ }),
227
232
  )
228
233
  return
229
234
 
@@ -301,7 +306,7 @@ export function registerApneaCommands(
301
306
  ctx,
302
307
  await run(ctx.signal, "commit", {
303
308
  message,
304
- no_remaining_phases: flags.has("done"),
309
+ no_remaining_phases: flags.has("done") || undefined,
305
310
  }),
306
311
  )
307
312
  return
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naxodev/pi-apnea",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Pi adapter for the Apnea multi-role workflow",
5
5
  "license": "MIT",
6
6
  "author": "Nacho Vazquez",
@@ -60,7 +60,7 @@
60
60
  "smoke:package": "bun scripts/package-smoke.ts"
61
61
  },
62
62
  "dependencies": {
63
- "@naxodev/apnea": "^0.2.0"
63
+ "@naxodev/apnea": "^0.2.3"
64
64
  },
65
65
  "peerDependencies": {
66
66
  "@earendil-works/pi-coding-agent": ">=0.83.0 <0.85.0"
@@ -69,6 +69,7 @@
69
69
  "@earendil-works/pi-coding-agent": "0.84.2",
70
70
  "@types/bun": "^1.3.14",
71
71
  "@types/node": "^26.1.2",
72
+ "effect": "4.0.0-rc.111",
72
73
  "prettier": "^3.9.0",
73
74
  "typescript": "^7.0.2"
74
75
  }