pi-durable-subagents 1.4.0 → 1.4.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.4.1
4
+
5
+ - Docs, tests and fixtures use neutral example names and paths; no behaviour change.
6
+
3
7
  ## 1.4.0
4
8
 
5
9
  - Model slots inside a provider: `providers.<p>.models` maps a model id to `{ "slots": N }`. A call on `p/id` holds a
@@ -465,7 +469,7 @@ Measured on a copy of a real home (2084 workflows, 51k orchestrator ledger entri
465
469
  subagent's builds and tests had read, which looked like the orchestrator
466
470
  reading gigabytes per second.
467
471
  - A workflow started without `name` is shown by its label values
468
- (`ipc-qa c4811f14`) in the dock, `/subagents`, the watch view and the
472
+ (`nightly-qa c4811f14`) in the dock, `/subagents`, the watch view and the
469
473
  completion notice, instead of by its agent name.
470
474
 
471
475
  ## 1.0.32
package/README.md CHANGED
@@ -532,7 +532,7 @@ session's workflows (sessions are independent), working ones first (newest
532
532
  first), every subagent with its model, what it is doing and for how long, and
533
533
  its latest line. Finished ones follow, most recently ended first, dimmed, with
534
534
  their conclusion. A workflow's only subagent is named after the workflow (its
535
- `name`, else its label values, e.g. `ipc-qa c4811f14`); in a
535
+ `name`, else its label values, e.g. `nightly-qa c4811f14`); in a
536
536
  fan-out, a generated key (`tasks:0`) shows as its agent (`worker 1`,
537
537
  `reviewer`). The key remains the address for `send` and the CLI. A session's workflows include runs started
538
538
  through the CLI by a process this session launched (a background driver, a
@@ -1330,7 +1330,7 @@ State lives in `~/.pi/durable-subagents`; set `DSA_HOME` to move it.
1330
1330
  It is snapshotted when each child execution starts: changing it affects
1331
1331
  executions started afterwards, not a child already running; a resumed
1332
1332
  execution receives the current setting. False keeps question-only asks valid.
1333
- - **Quota notices in a successful answer:** `"exhaustedPatterns": ["额度已使用完毕"]` on a
1333
+ - **Quota notices in a successful answer:** `"exhaustedPatterns": ["quota exhausted"]` on a
1334
1334
  provider treats a message that says the usage window is used up as a quota
1335
1335
  failure, even when the gateway answered with HTTP 200. Each entry is a
1336
1336
  JavaScript regular expression, matched case-insensitively against an
@@ -83,7 +83,7 @@ export class EvaluatorClient {
83
83
  }
84
84
  this.child = undefined;
85
85
  }
86
- /** A2, P10: Fence a previous host, commit launch intent, and attach IPC readers. */
86
+ /** A2, P10: Fence a previous host, commit launch intent, and attach the message-channel readers. */
87
87
  async start(message, death) {
88
88
  await this.retire();
89
89
  const exec = `eval:${ulid()}`;
package/dist/ui/view.js CHANGED
@@ -18,7 +18,7 @@ export function modelLabel(model, find, aliases = {}) {
18
18
  const matched = /claude|gpt|gemini|deepseek|glm|opus|sonnet|haiku/i.exec(`${id} ${name}`)?.[0]?.toLowerCase();
19
19
  const family = matched && ["opus", "sonnet", "haiku"].includes(matched) ? "claude" : matched;
20
20
  const suffix = family && provider.toLowerCase().endsWith(`-${family}`) ? provider.slice(0, -family.length - 1) : provider;
21
- // A display name that already names its provider ("GLM-5.3 (zhipu)") is never suffixed again.
21
+ // A display name that already names its provider ("GLM-5.3 (acme)") is never suffixed again.
22
22
  const named = (word) => Boolean(word) && new RegExp(`(^|[^a-z0-9])${word.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}([^a-z0-9]|$)`, "i").test(name);
23
23
  return suffix.toLowerCase() === family || named(provider) || named(suffix) ? name : `${name} (${suffix})`;
24
24
  }
@@ -171,7 +171,7 @@ const GENERATED = /^(?:tasks|chain):(\d+)$/;
171
171
  /** UI §2: How a person knows a call. A workflow's only agent goes by the workflow's name; a generated key (tasks:0) by
172
172
  * its agent, numbered when the workflow runs that agent more than once; a named key as is. "@2" marks a later
173
173
  * generation. The key stays the address for tools and the CLI; only the UI shows this name. */
174
- /** A workflow's display name: its run name, else its label values ("ipc-qa c4811f14"), else undefined. */
174
+ /** A workflow's display name: its run name, else its label values ("nightly-qa c4811f14"), else undefined. */
175
175
  export function workflowName(w) {
176
176
  if (w.name)
177
177
  return w.name;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-durable-subagents",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "Subagents for pi that never lose work and never do it twice. Crash-safe workflows, automatic recovery, and a live view just like the main agent.",
5
5
  "type": "module",
6
6
  "license": "MIT",