repositories / pi-ext

pi-ext

bugabingas pi extensions

owned by bugabinga

build: update workspace dependencies and Mise automation

77804204bd68325f248dc0165a221a713dee6c3e

Oliver Jan Krylow <oliver@bugabinga.net> ·

SSH signature · not checked

Browse filesCompare with HEAD

Changed files (30)

.gitignore

Modified
1 1 node_modules/
2 2 **/node_modules/
3 3 .worktrees/
4 -.demo/
5 4 .research/
6 5 .pi/tune/
7 6 **/test-results/

.rumdl.toml

Modified
61 61 include = ["**/*.md"]
62 62 exclude = [
63 63 "**/node_modules/**",
64 - ".demo/**",
65 64 ".research/**",
66 65 "skills/*/references/**",
67 66 "skills/*/_research/**",

.taplo.toml

Modified
1 1 include = ["**/*.toml"]
2 -exclude = ["**/node_modules/**", ".demo/**"]
2 +exclude = ["**/node_modules/**"]
4 4 [formatting]
5 5 array_auto_collapse = false

AGENTS.md

Modified
15 15 ## Task discovery
17 -Run `mise tasks --all` to list root and extension-local tasks.
18 -Use monorepo-root paths when referring to tasks from automation or documentation:
20 -- `//:test` addresses a root task.
21 -- `//extensions/angel:test` addresses an extension task.
22 -- `//extensions/...:bench` selects a task across matching extension config roots.
24 -Task-name groups and wildcards select tasks; they do not create dependencies or ordering.
25 -Use `mise task info <task>` for task details, `mise tasks deps <task>` for declared dependency edges, and `mise run --dry-run <task>` to inspect execution.
26 -Run `mise tasks validate` after changing the root config.
27 -Run `mise -C extensions/<name> tasks validate` after changing an extension config.
29 -## Choosing tasks
31 -| Need | Command |
32 -| --- | --- |
33 -| Install exact locked dependencies | `mise run //:install` |
34 -| Regenerate `package-lock.json` | `mise run //:lock` |
35 -| Format the repository | `mise run //:fmt` |
36 -| Verify repository formatting and lint | `mise run //:lint` |
37 -| Run the complete test suite once | `mise run //:test` |
38 -| Run one extension's tests | `mise run //extensions/<name>:test` |
39 -| Lint one extension | `mise run //extensions/<name>:lint` |
40 -| Typecheck and statically check one extension | `mise run //extensions/<name>:check` |
41 -| Typecheck and statically check all extensions | `mise run //:check` |
42 -| Run property tests | `mise run //:fuzz` |
43 -| Run all benchmarks sequentially | `mise run //:bench` |
44 -| Run all browser E2E suites | `mise run //:e2e` |
45 -| Run the release gate | `mise run //:ci` |
47 -Use `mise run //:test -- extensions/<name>` and `mise run //:build -- <name>` only when implementing a local task or diagnosing its root delegate.
48 -Normal agent workflows should use the extension-local task names.
50 -Root operation tasks are `//:list`, `//:changelog`, `//:readme`, `//:demo`, `//:release-plan`, `//:release-prepare`, and `//:publish`.
51 -Invoke one with `mise run`, passing extension names after `--`, for example `mise run //:readme -- angel`.
17 +Run `mise tasks --all` to list tasks.
18 +Use monorepo-root task addresses: `//:<task>` or `//extensions/<name>:<task>`.
19 +Use extension-local tasks for one extension; root tasks for repository-wide checks.
20 +Before selecting unfamiliar tasks, editing Mise configuration, or managing hooks, read [docs/automation.md](docs/automation.md).
53 22 ## Efficient execution
57 26 - During iteration, use one extension's local `lint`, `test`, or `check` task.
58 27 - For complete tests, run root `//:test` once; do not fan out all extension `test` wrappers into one Vitest process per extension.
59 28 - For complete static validation, run root `//:check` once; do not fan out all extension `check` wrappers because each repeats repository-wide TypeScript checking.
60 -- Before pushing, run `mise run //:ci`.
62 30 Mise task jobs and tool workers multiply.
63 31 Set `--jobs` deliberately when invoking multiple independent tasks, because Vitest, Playwright, and other tools manage their own workers.
64 32 Use `:::` only for independent ad hoc tasks that should run concurrently.
66 -## Task authoring
68 -Use `depends` for prerequisites so Mise can deduplicate shared work and schedule independent dependencies concurrently.
69 -Use structured task references instead of spawning nested Mise processes:
71 -```toml
72 -run = [{ task = "//:test", args = ["extensions/angel"] }]
73 -```
75 -A `run` array is sequential.
76 -Use `{ tasks = ["check", "lint"] }` for an explicit parallel stage inside that sequence.
77 -Structured task references execute their own dependencies but do not appear as edges in `mise tasks deps`.
78 -Use a nested `mise run` command only when a required CLI scheduler option, such as `--jobs 1`, has no structured-task equivalent.
80 -Do not set `raw = true` unless a task requires stdin.
81 -Raw tasks serialize against other tasks and disable output redaction.
83 34 ## CI hosting
85 36 Luci at `ci.bugabinga.net` auto-discovers `.ci/*.kdl` from the public Soft Serve repository.
91 42 ## Extension engineering
44 +- Nested model calls must use `ctx.modelRegistry`, never pi-ai compatibility dispatchers, so extension-registered providers work.
93 46 ### Startup performance
95 48 - Treat every Win32 process spawn as expensive.
129 82 - `pre-commit` runs format, lint, and test.
130 83 - `pre-push` runs full CI.
132 -Hooks are managed through `mise generate git-pre-commit`.
133 -Reinstall them with `mise generate git-pre-commit --write`, then `mise generate git-pre-commit --hook pre-push --task pre-push --write`.
135 85 ## Troubleshooting
137 87 Run `mise doctor` when a task fails because a command is unavailable.

biome.json

Modified
64 64 "useIterableCallbackReturn": "off"
67 - }
67 + },
68 + "overrides": [
69 + {
70 + "includes": [
71 + "extensions/**/*.ts",
72 + "extensions/**/*.js",
73 + "extensions/**/*.mjs",
74 + "!extensions/**/__tests__/**",
75 + "!extensions/**/__bench__/**",
76 + "!extensions/**/__benches__/**",
77 + "!extensions/**/scripts/**",
78 + "!extensions/ultra/dynamic-validator-worker.ts"
79 + ],
80 + "linter": {
81 + "rules": {
82 + "suspicious": {
83 + "noConsole": "error"
84 + }
85 + }
86 + }
87 + }
88 + ]

docs/automation.md

Added
new file mode 100644
1 +# Automation guide
3 +Task selection, task authoring, and Git hook setup for `pi-ext`.
4 +The always-loaded rules remain in [AGENTS.md](../AGENTS.md).
6 +## Task discovery
8 +Run `mise tasks --all` to list root and extension-local tasks.
9 +Use monorepo-root paths when referring to tasks from automation or documentation:
11 +- `//:test` addresses a root task.
12 +- `//extensions/angel:test` addresses an extension task.
13 +- `//extensions/...:bench` selects a task across matching extension config roots.
15 +Task-name groups and wildcards select tasks; they do not create dependencies or ordering.
16 +Use `mise task info <task>` for task details, `mise tasks deps <task>` for declared dependency edges, and `mise run --dry-run <task>` to inspect execution.
17 +Run `mise tasks validate` after changing the root config.
18 +Run `mise -C extensions/<name> tasks validate` after changing an extension config.
20 +## Choosing tasks
22 +| Need | Command |
23 +| --- | --- |
24 +| Install exact locked dependencies | `mise run //:install` |
25 +| Regenerate `package-lock.json` | `mise run //:lock` |
26 +| Format the repository | `mise run //:fmt` |
27 +| Verify repository formatting and lint | `mise run //:lint` |
28 +| Run the complete test suite once | `mise run //:test` |
29 +| Run one extension's tests | `mise run //extensions/<name>:test` |
30 +| Lint one extension | `mise run //extensions/<name>:lint` |
31 +| Typecheck and statically check one extension | `mise run //extensions/<name>:check` |
32 +| Typecheck and statically check all extensions | `mise run //:check` |
33 +| Run property tests | `mise run //:fuzz` |
34 +| Run all benchmarks sequentially | `mise run //:bench` |
35 +| Run all browser E2E suites | `mise run //:e2e` |
36 +| Run the release gate | `mise run //:ci` |
38 +Use `mise run //:test -- extensions/<name>` and `mise run //:build -- <name>` only when implementing a local task or diagnosing its root delegate.
39 +Normal agent workflows should use the extension-local task names.
41 +Root operation tasks are `//:list`, `//:changelog`, `//:readme`, `//:release-plan`, `//:release-prepare`, and `//:publish`.
42 +Invoke one with `mise run`, passing extension names after `--`, for example `mise run //:readme -- angel`.
44 +## Task authoring
46 +Use `depends` for prerequisites so Mise can deduplicate shared work and schedule independent dependencies concurrently.
47 +Use structured task references instead of spawning nested Mise processes:
49 +```toml
50 +run = [{ task = "//:test", args = ["extensions/angel"] }]
51 +```
53 +A `run` array is sequential.
54 +Use `{ tasks = ["check", "lint"] }` for an explicit parallel stage inside that sequence.
55 +Structured task references execute their own dependencies but do not appear as edges in `mise tasks deps`.
56 +Use a nested `mise run` command only when a required CLI scheduler option, such as `--jobs 1`, has no structured-task equivalent.
58 +Do not set `raw = true` unless a task requires stdin.
59 +Raw tasks serialize against other tasks and disable output redaction.
61 +## Git hook setup
63 +Hooks are managed through `mise generate git-pre-commit`.
64 +Reinstall them with `mise generate git-pre-commit --write`, then `mise generate git-pre-commit --hook pre-push --task pre-push --write`.
65 +The `pre-commit` and `pre-push` tasks in [mise.toml](../mise.toml) define their execution.

extensions/AGENTS.md

Modified
94 94 | `typebox` | tool parameter schemas | peer dependency when imported |
95 95 | `@bugabinga/pi-ext-*` | sibling extension implementation | never |
97 +## Diagnostics
99 +Runtime extension code must never write diagnostic text through `console.*` or process stdout/stderr; direct terminal writes corrupt Pi's TUI and machine-readable modes.
100 +Use `ctx.ui.notify` for actionable failures, throw tool failures, and use opt-in file diagnostics for debugging.
101 +Terminal-control sequences, standalone benchmarks, and worker protocols are exempt.
97 103 ## Startup
99 105 `session_start` must be fast.
101 107 Publish minimal UI immediately, then defer slow work with a background task and generation or stale-result guard.
102 108 Never block other extensions for telemetry, recovery, decoration, or cache warming.
110 +## Context impact
112 +For new extensions or major edits, measure before/after context impact following `docs/context-startup.md`; report provider-token deltas, clearly distinguish heuristic estimates, and disclose measurement blockers.
104 114 ## Commands
106 116 Commands with subcommands must provide argument autocomplete.

extensions/cmprss/mise.toml

Modified
1 +[tasks.fmt]
2 +description = "Format cmprss extension"
3 +depends = ["//:install"]
4 +run = [
5 + "biome check --write --config-path ../.. .",
6 + "rumdl fmt --config ../../.rumdl.toml .",
7 + "taplo format --config ../../.taplo.toml mise.toml",
8 +]
1 10 [tasks.lint]
2 11 description = "Lint cmprss extension"
3 12 depends = ["//:install"]

extensions/decay/mise.toml

Modified
1 +[tasks.fmt]
2 +description = "Format decay extension"
3 +depends = ["//:install"]
4 +run = [
5 + "biome check --write --config-path ../.. .",
6 + "rumdl fmt --config ../../.rumdl.toml .",
7 + "taplo format --config ../../.taplo.toml mise.toml",
8 +]
1 10 [tasks.lint]
2 11 description = "Lint decay extension"
3 12 depends = ["//:install"]

extensions/git-safe/mise.toml

Modified
1 +[tasks.fmt]
2 +description = "Format git-safe extension"
3 +depends = ["//:install"]
4 +run = [
5 + "biome check --write --config-path ../.. .",
6 + "rumdl fmt --config ../../.rumdl.toml .",
7 + "taplo format --config ../../.taplo.toml mise.toml",
8 +]
1 10 [tasks.lint]
2 11 description = "Lint git-safe extension"
3 12 depends = ["//:install"]

extensions/intellij/mise.toml

Modified
2 2 [tasks.lint]
3 3 description = "Verify IntelliJ formatting and lint"
4 4 depends = ["//:install"]
5 5 run = [
6 - "npm exec -- biome ci .",
6 + "biome ci --config-path ../.. .",
7 7 "rumdl check .",
8 8 "taplo format --check",

extensions/klaus/package.json

Modified
14 14 "pi-extension"
16 16 "dependencies": {
17 - "@anthropic-ai/claude-agent-sdk": "0.3.238",
17 + "@anthropic-ai/claude-agent-sdk": "0.3.261",
18 18 "@modelcontextprotocol/sdk": "1.29.0"
20 20 "devDependencies": {

extensions/leaks/mise.toml

Modified
1 +[tasks.fmt]
2 +description = "Format leaks extension"
3 +depends = ["//:install"]
4 +run = [
5 + "biome check --write --config-path ../.. .",
6 + "rumdl fmt --config ../../.rumdl.toml .",
7 + "taplo format --config ../../.taplo.toml mise.toml",
8 +]
1 10 [tasks.lint]
2 11 description = "Lint leaks extension"
3 12 depends = ["//:install"]

extensions/leaks/package.json

Modified
13 13 "license": "MIT",
14 14 "peerDependencies": {
15 + "@earendil-works/pi-ai": "*",
15 16 "@earendil-works/pi-coding-agent": "*",
16 17 "typebox": "*"

extensions/masks/mise.toml

Modified
1 +[tasks.fmt]
2 +description = "Format masks extension"
3 +depends = ["//:install"]
4 +run = [
5 + "biome check --write --config-path ../.. .",
6 + "rumdl fmt --config ../../.rumdl.toml .",
7 + "taplo format --config ../../.taplo.toml mise.toml",
8 +]
1 10 [tasks.lint]
2 11 description = "Lint masks extension"
3 12 depends = ["//:install"]

extensions/strata/mise.toml

Added
new file mode 100644
1 +[tasks.lint]
2 +description = "Lint Strata"
3 +depends = ["//:install"]
4 +run = [
5 + "biome ci --config-path ../.. .",
6 + "rumdl check --config ../../.rumdl.toml .",
7 + "taplo format --check --config ../../.taplo.toml mise.toml",
8 +]
10 +[tasks.fmt]
11 +description = "Format Strata"
12 +depends = ["//:install"]
13 +run = [
14 + "biome check --write --config-path ../.. .",
15 + "rumdl fmt --config ../../.rumdl.toml .",
16 + "taplo format --config ../../.taplo.toml mise.toml",
19 +[tasks.test]
20 +description = "Test Strata"
21 +depends = ["//:install"]
22 +run = [{ task = "//:test", args = ["extensions/strata"] }]
24 +[tasks.check]
25 +description = "Check Strata"
26 +depends = ["//:install"]
27 +run = [{ task = "//:build", args = ["strata"] }]
29 +[tasks.live]
30 +description = "Open Pi's TUI with Strata and a live model (pass Pi CLI options)"
31 +depends = ["//:install"]
32 +raw = true
33 +env.STRATA_NO_OPEN = "1"
34 +run = "pi --no-extensions -e ./index.ts --no-tools --no-skills --no-prompt-templates --no-context-files --no-themes --use-theme dark --no-approve"
36 +[tasks.e2e]
37 +description = "Run Strata browser end-to-end tests"
38 +depends = ["//:install"]
39 +run = "npm exec -- playwright test --config playwright.config.ts"

extensions/strata/package.json

Added
new file mode 100644
1 +{
2 + "name": "@bugabinga/pi-ext-strata",
3 + "private": true,
4 + "type": "module",
5 + "main": "index.ts",
6 + "license": "MIT",
7 + "description": "Semantic, snapshot-bound Git diff review for Pi.",
8 + "peerDependencies": {
9 + "@earendil-works/pi-coding-agent": "*",
10 + "@earendil-works/pi-ai": "*",
11 + "@earendil-works/pi-tui": "*"
12 + },
13 + "devDependencies": {
14 + "@marcfargas/pi-test-harness": "^0.6.1",
15 + "@playwright/test": "^1.61.0",
16 + "vitest": "^4.1.9"
17 + },
18 + "pi": {
19 + "extensions": [
20 + "index.ts"
21 + ]
22 + }

extensions/terse/mise.toml

Deleted
deleted file mode 100644
1 -[tasks.bench]
2 -description = "Benchmark terse prompt injection"
3 -depends = ["//:install"]
4 -run = "node --no-warnings --experimental-strip-types __bench__/bench.ts"
6 -[tasks.lint]
7 -description = "Lint terse extension"
8 -depends = ["//:install"]
9 -run = [
10 - "biome ci --config-path ../.. .",
11 - "rumdl check --config ../../.rumdl.toml .",
12 - "taplo format --check --config ../../.taplo.toml mise.toml",
13 -]
15 -[tasks.test]
16 -description = "Test terse extension"
17 -depends = ["//:install"]
18 -run = [
19 - { task = "//:test", args = ["extensions/terse"] },
20 -]
22 -[tasks.check]
23 -description = "Check terse extension"
24 -depends = ["//:install"]
25 -run = [
26 - { task = "//:build", args = ["terse"] },
27 -]

extensions/terse/package.json

Deleted
deleted file mode 100644
1 -{
2 - "name": "@bugabinga/pi-ext-terse",
3 - "type": "module",
4 - "main": "index.ts",
5 - "peerDependencies": {
6 - "@earendil-works/pi-coding-agent": "*"
7 - },
8 - "license": "MIT",
9 - "description": "Terse response protocol injector for Pi.",
10 - "keywords": [
11 - "pi",
12 - "pi-extension"
13 - ],
14 - "devDependencies": {
15 - "@marcfargas/pi-test-harness": "^0.6.1",
16 - "vitest": "^4.1.9"
17 - },
18 - "private": true
19 -}

extensions/the-system/mise.toml

Modified
1 1 [tasks.fmt]
2 2 description = "Format the-system"
3 3 depends = ["//:install"]
4 -run = "npm exec -- biome check --write ."
4 +run = "biome check --write --config-path ../.. ."
6 6 [tasks.lint]
7 7 description = "Verify the-system formatting and lint"

extensions/ultra/mise.toml

Modified
1 +[tasks.fmt]
2 +description = "Format ultra extension"
3 +depends = ["//:install"]
4 +run = [
5 + "biome check --write --config-path ../.. .",
6 + "rumdl fmt --config ../../.rumdl.toml .",
7 + "taplo format --config ../../.taplo.toml mise.toml",
8 +]
1 10 [tasks.lint]
2 11 description = "Lint ultra extension"
3 12 depends = ["//:install"]
14 23 { task = "//:test", args = ["extensions/ultra"] },
26 +[tasks.authoring-check]
27 +description = "Read-only live authoring-skill check using the configured model"
28 +depends = ["//:install"]
29 +env.PI_OFFLINE = "1"
30 +run = '''
31 +pi --print --mode json --no-session --no-extensions --extension index.ts --no-context-files --no-skills --tools read "Plan an inline two-phase workflow: independently inspect two files, then synthesize the findings. Planning only: do not run workflows, execute commands, or create or edit files. Read the applicable authoring guidance and report which guide you used." | node --input-type=module -e "
32 +import { createInterface } from 'node:readline';
33 +import { resolve } from 'node:path';
34 +let skillCall, skillRead = false, completed = false;
35 +for await (const line of createInterface({ input: process.stdin })) {
36 + const event = JSON.parse(line);
37 + if (event.type === 'tool_execution_start') {
38 + if (event.toolName !== 'read') throw new Error('Unexpected tool: ' + event.toolName);
39 + console.log('read ' + event.args.path);
40 + if (resolve(event.args.path) === resolve('prompts/ultra-authoring/SKILL.md')) skillCall = event.toolCallId;
41 + }
42 + if (event.type === 'tool_execution_end' && skillCall && event.toolCallId === skillCall && !event.isError) skillRead = true;
43 + if (event.type === 'message_end' && event.message.role === 'assistant' && event.message.stopReason === 'stop') completed = true;
45 +if (!skillRead || !completed) throw new Error('Missing successful authoring-skill read or completed turn');
46 +console.log('PASS: authoring skill read; only read tools used; turn completed.');
48 +'''
50 +[tasks.check-settings]
51 +description = "Validate an Ultra settings JSON file"
52 +usage = '''
53 +arg "<path>" help="Path to a Pi settings.json file"
54 +'''
55 +run = '''
56 +node --input-type=module -e "import { readFileSync } from 'node:fs'; import { loadUltraSettings } from './settings.ts'; loadUltraSettings({ global: JSON.parse(readFileSync(process.env.usage_path, 'utf8')) }); console.log('Ultra settings valid.');"
57 +'''
59 +[tasks.usage-report]
60 +description = "Inspect persisted Pi session usage with ccusage"
61 +usage = '''
62 +arg "[args]" var=#true
63 +'''
64 +run = '''
65 +npx --yes ccusage@latest pi session{% for arg in usage.args %} "{{ arg }}"{% endfor %}
66 +'''
17 68 [tasks.check]
18 69 description = "Check ultra extension"
19 70 depends = ["//:install"]

extensions/web/mise.toml

Modified
3 3 [tasks.bench]
4 4 description = "Benchmark web processing hot paths"
5 5 depends = ["//:install"]
6 6 run = "node --no-warnings --experimental-strip-types --experimental-loader ../../scripts/ts-js-loader.mjs __bench__/bench.ts"
8 +[tasks.evaluate-search]
9 +description = "Compare all configured search providers live on five fixed queries (uses existing credentials)"
10 +depends = ["//:install"]
11 +run = "node --no-warnings --experimental-strip-types --experimental-loader ../../scripts/ts-js-loader.mjs scripts/evaluate-search.ts"
13 +[tasks.fmt]
14 +description = "Format web extension"
15 +depends = ["//:install"]
16 +run = [
17 + "biome check --write --config-path ../.. .",
18 + "rumdl fmt --config ../../.rumdl.toml .",
19 + "taplo format --config ../../.taplo.toml mise.toml",
8 22 [tasks.lint]
9 23 description = "Lint web extension"
10 24 depends = ["//:install"]

extensions/web/package.json

Modified
4 4 "name": "@bugabinga/pi-ext-web",
5 5 "type": "module",
6 6 "main": "index.ts",
7 7 "peerDependencies": {
8 + "@earendil-works/pi-ai": "*",
8 9 "@earendil-works/pi-coding-agent": "*",
9 10 "@earendil-works/pi-tui": "*",
10 11 "typebox": "*"
12 13 "vitest": "^4.1.9"
14 15 "license": "MIT",
15 - "description": "Web fetch, search, and image tools for Pi.",
16 + "description": "One web tool for fetch, search, and site-map discovery in Pi.",
16 17 "keywords": [
17 18 "pi",
18 19 "pi-extension"

mise.lock

Modified
146 146 provenance = "github-attestations"
148 148 [tools."aqua:rvben/rumdl"."platforms.linux-x64"]
149 -checksum = "sha256:12058de9ab5e0078a468d11bd1a8c5b79f69768a15c06832cebde715075ed893"
150 -url = "https://github.com/rvben/rumdl/releases/download/v0.2.62/rumdl-v0.2.62-x86_64-unknown-linux-gnu.tar.gz"
149 +checksum = "sha256:f2581ed4b9cccff9288ee395777911f194368b28e0e0258070e94b7859a30b7e"
150 +url = "https://github.com/rvben/rumdl/releases/download/v0.2.62/rumdl-v0.2.62-x86_64-unknown-linux-musl.tar.gz"
151 151 url_api = "https://api.github.com/repos/rvben/rumdl/releases/assets/532322356"
152 152 provenance = "github-attestations"

mise.toml

Modified
54 54 npm run test --{% for arg in usage.args %} "{{ arg }}"{% endfor %}
57 +[tasks.context-startup]
58 +description = "Compare stock, configured, and no-Pi-text headless context (three live requests)"
59 +usage = '''
60 +arg "[cwd]" help="Project directory to measure"
61 +'''
62 +run = '''
63 +node scripts/context-startup.mjs{% if usage.cwd %} "{{ usage.cwd }}"{% endif %}
64 +'''
66 +[tasks.context-startup-sources]
67 +description = "Estimate APPEND_SYSTEM and skill tokens by source (no measurement prompt)"
68 +run = "node scripts/context-startup-session.mjs --sources"
70 +[tasks.context-startup-skill-descriptions]
71 +description = "Rank pi/agent skill descriptions by size and show the largest five"
72 +run = "node scripts/context-startup-session.mjs --skill-descriptions"
74 +[tasks.context-extensions]
75 +description = "Inspect runtime extensions and measure leave-one-out input tokens (N+2 live requests)"
76 +usage = '''
77 +arg "[cwd]" help="Project directory to measure"
78 +'''
79 +run = '''
80 +node scripts/context-extensions.mjs{% if usage.cwd %} "{{ usage.cwd }}"{% endif %}
81 +'''
83 +[tasks.context-guidance-check]
84 +description = "Read-only live activation check for tool-owned mockup guidance"
85 +depends = ["install"]
86 +env.PI_OFFLINE = "1"
87 +run = '''
88 +pi --print --mode json --no-session --no-extensions --extension extensions/the-system/index.ts --no-context-files --tools read,mockup "Plan an interactive 80-column terminal task-list mockup with keyboard selection. Planning only: do not create or edit files, execute commands, call mockup, or open a browser. Load the applicable authoring guidance using read only, then explain the document boundary and target-platform constraints." | node --input-type=module -e "
89 +import { createInterface } from 'node:readline';
90 +import { basename, dirname } from 'node:path';
91 +const missing = new Set(['mockup-html']);
92 +const calls = new Map();
93 +let completed = false;
94 +for await (const line of createInterface({ input: process.stdin })) {
95 + const event = JSON.parse(line);
96 + if (event.type === 'tool_execution_start') {
97 + if (event.toolName !== 'read') throw new Error('Unexpected tool: ' + event.toolName);
98 + console.log('read ' + event.args.path);
99 + if (basename(event.args.path) === 'SKILL.md') calls.set(event.toolCallId, basename(dirname(event.args.path)));
101 + if (event.type === 'tool_execution_end' && !event.isError) missing.delete(calls.get(event.toolCallId));
102 + if (event.type === 'message_end' && event.message.role === 'assistant' && event.message.stopReason === 'stop') {
103 + completed = true;
104 + console.log(event.message.content.filter(part => part.type === 'text').map(part => part.text).join('\n'));
107 +if (missing.size || !completed) throw new Error('Incomplete guidance check: ' + [...missing].join(', '));
108 +console.log('PASS: mockup guidance read; only read tools used; turn completed.');
110 +'''
112 +[tasks.context-startup-test]
113 +description = "Check the startup context measurement script"
114 +depends = ["install"]
115 +run = [
116 + "biome check scripts/context-startup.mjs scripts/context-startup-session.mjs scripts/context-startup.test.ts scripts/context-extensions.mjs scripts/context-extensions.test.ts",
117 + "rumdl check docs/context-startup.md",
118 + "taplo format --check mise.toml",
119 + { task = "//:test", args = [
120 + "scripts/context-startup.test.ts",
121 + "scripts/context-extensions.test.ts",
122 + ] },
125 +[tasks.context-startup-fmt]
126 +description = "Format context measurement files only"
127 +depends = ["install"]
128 +run = [
129 + "biome check --write scripts/context-startup.mjs scripts/context-startup-session.mjs scripts/context-startup.test.ts scripts/context-extensions.mjs scripts/context-extensions.test.ts",
130 + "rumdl fmt docs/context-startup.md",
131 + "taplo format mise.toml",
57 134 [tasks.fuzz]
58 135 description = "Run property tests"
59 136 depends = ["install"]
130 207 node scripts/extensions.mjs readme --write{% if usage.model %} --model "{{ usage.model }}"{% endif %}{% for extension in usage.extensions %} "{{ extension }}"{% endfor %}
133 -[tasks.demo]
134 -description = "Record demo GIFs"
135 -usage = '''
136 -arg "[drivers]" var=#true
137 -'''
138 -run = '''
139 -node scripts/demo.mjs{% for driver in usage.drivers %} "{{ driver }}"{% endfor %}
140 -'''
142 210 [tasks.release-plan]
143 211 description = "Preview release artifacts"
144 212 usage = '''
162 230 [tasks.clean]
163 231 description = "Remove generated caches and scratch artifacts"
164 232 run = '''
165 -mkdir -p .demo
166 -find .demo -mindepth 1 -maxdepth 1 -exec rm -rf {} +
167 233 find . -path ./.git -prune -o -path ./.jj -prune -o -type d -name node_modules -prune -exec rm -rf {} +

package-lock.json

Modified
11 11 "extensions/*"
13 13 "devDependencies": {
14 - "@earendil-works/pi-agent-core": "0.84.3",
15 - "@earendil-works/pi-ai": "0.84.3",
16 - "@earendil-works/pi-client": "0.84.3",
17 - "@earendil-works/pi-coding-agent": "0.84.3",
18 - "@earendil-works/pi-protocol": "0.84.3",
19 - "@earendil-works/pi-telemetry": "0.84.3",
20 - "@earendil-works/pi-tui": "0.84.3",
14 + "@earendil-works/pi-agent-core": "0.85.0",
15 + "@earendil-works/pi-ai": "0.85.0",
16 + "@earendil-works/pi-client": "0.85.0",
17 + "@earendil-works/pi-coding-agent": "0.85.0",
18 + "@earendil-works/pi-protocol": "0.85.0",
19 + "@earendil-works/pi-server": "0.85.0",
20 + "@earendil-works/pi-telemetry": "0.85.0",
21 + "@earendil-works/pi-tui": "0.85.0",
21 22 "@fast-check/vitest": "^0.4.1",
22 23 "@playwright/test": "^1.61.0",
23 24 "@vitest/coverage-istanbul": "^4.1.9",
197 198 "name": "@bugabinga/pi-ext-klaus",
198 199 "license": "MIT",
199 200 "dependencies": {
200 - "@anthropic-ai/claude-agent-sdk": "0.3.238",
201 + "@anthropic-ai/claude-agent-sdk": "0.3.261",
201 202 "@modelcontextprotocol/sdk": "1.29.0"
203 204 "devDependencies": {
210 211 "typebox": "*"
213 - "extensions/klaus/node_modules/@anthropic-ai/claude-agent-sdk": {
214 - "version": "0.3.238",
215 - "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk/-/claude-agent-sdk-0.3.238.tgz",
216 - "integrity": "sha512-ppRfbAflZuV7HPqr8BkHPEk8c7gih3PK+GHnZq6zP0Uo7bJHXAJwc4Za8LJRm4hXMixBNMjK1cU/VWfQ9fE2sg==",
217 - "license": "SEE LICENSE IN README.md",
218 - "engines": {
219 - "node": ">=18.0.0"
220 - },
221 - "optionalDependencies": {
222 - "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.238",
223 - "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.238",
224 - "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.238",
225 - "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.238",
226 - "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.238",
227 - "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.238",
228 - "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.238",
229 - "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.238"
230 - },
231 - "peerDependencies": {
232 - "@anthropic-ai/sdk": ">=0.93.0",
233 - "@modelcontextprotocol/sdk": "^1.29.0",
234 - "zod": "^4.0.0"
236 - },
237 - "extensions/klaus/node_modules/@anthropic-ai/sdk": {
238 - "version": "0.120.0",
239 - "resolved": "https://registry.npmjs.org/@anthropic-ai/sdk/-/sdk-0.120.0.tgz",
240 - "integrity": "sha512-ZlvmNFT/iIF6JD13rxbbMWD8nvGR0RaUp6yMQnoc+4Af0YjVVe/bIdW1XSQQsoxXAtg1NaT6Vak0LKFlJ4d37Q==",
241 - "license": "MIT",
242 - "peer": true,
243 - "dependencies": {
244 - "json-schema-to-ts": "^3.1.1",
245 - "standardwebhooks": "^1.0.0"
246 - },
247 - "bin": {
248 - "anthropic-ai-sdk": "bin/cli"
249 - },
250 - "peerDependencies": {
251 - "zod": "^3.25.0 || ^4.0.0"
252 - },
253 - "peerDependenciesMeta": {
254 - "zod": {
255 - "optional": true
258 - },
259 214 "extensions/leaks": {
260 215 "name": "@bugabinga/pi-ext-leaks",
261 216 "license": "MIT",
266 221 "vitest": "^4.1.9"
268 223 "peerDependencies": {
224 + "@earendil-works/pi-ai": "*",
269 225 "@earendil-works/pi-coding-agent": "*",
270 226 "typebox": "*"
409 365 "@earendil-works/pi-coding-agent": "*"
412 - "extensions/terse": {
413 - "name": "@bugabinga/pi-ext-terse",
368 + "extensions/strata": {
369 + "name": "@bugabinga/pi-ext-strata",
414 370 "license": "MIT",
415 371 "devDependencies": {
416 372 "@marcfargas/pi-test-harness": "^0.6.1",
373 + "@playwright/test": "^1.61.0",
417 374 "vitest": "^4.1.9"
419 376 "peerDependencies": {
420 - "@earendil-works/pi-coding-agent": "*"
377 + "@earendil-works/pi-ai": "*",
378 + "@earendil-works/pi-coding-agent": "*",
379 + "@earendil-works/pi-tui": "*"
423 382 "extensions/the-system": {
565 524 "vitest": "^4.1.9"
567 526 "peerDependencies": {
527 + "@earendil-works/pi-ai": "*",
568 528 "@earendil-works/pi-coding-agent": "*",
569 529 "@earendil-works/pi-tui": "*",
570 530 "typebox": "*"
583 543 "url": "https://github.com/sponsors/antfu"
546 + "node_modules/@anthropic-ai/claude-agent-sdk": {
547 + "version": "0.3.261",
548 + "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk/-/claude-agent-sdk-0.3.261.tgz",
549 + "integrity": "sha512-CDG9z14JVKYRHjpp/g6zJ2k8xM5uSoRgjGdpTiK9woLDZxXtXcxV93ipCh55jQ3REj7M7H3GieMsETGZXB/ydw==",
550 + "license": "SEE LICENSE IN README.md",
551 + "engines": {
552 + "node": ">=18.0.0"
553 + },
554 + "optionalDependencies": {
555 + "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.261",
556 + "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.261",
557 + "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.261",
558 + "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.261",
559 + "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.261",
560 + "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.261",
561 + "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.261",
562 + "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.261"
563 + },
564 + "peerDependencies": {
565 + "@anthropic-ai/sdk": ">=0.93.0",
566 + "@modelcontextprotocol/sdk": "^1.29.0",
567 + "zod": "^4.0.0"
569 + },
586 570 "node_modules/@anthropic-ai/claude-agent-sdk-darwin-arm64": {
587 - "version": "0.3.238",
588 - "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-darwin-arm64/-/claude-agent-sdk-darwin-arm64-0.3.238.tgz",
589 - "integrity": "sha512-7KctNItTzHRiDg+jFxTM46o+Y/YS52V6HSopaWPggO6BbR+3MV/rKMmq+zP93If7eVwadW9Yg9vHLjXDKIw9OQ==",
571 + "version": "0.3.261",
572 + "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-darwin-arm64/-/claude-agent-sdk-darwin-arm64-0.3.261.tgz",
573 + "integrity": "sha512-oI8SPd6g+xUF6EnEqIInxz5CjSSJXoDlaqefjbSJvTFCawGGBhxlQs0g9jzsYou6Rdu+i2tJBToJZLsKSnN/0Q==",
590 574 "cpu": [
591 575 "arm64"
599 583 "node_modules/@anthropic-ai/claude-agent-sdk-darwin-x64": {
600 - "version": "0.3.238",
601 - "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-darwin-x64/-/claude-agent-sdk-darwin-x64-0.3.238.tgz",
602 - "integrity": "sha512-aDt8LXjWISwLzqeCBHxJC5AR1iVYlY5UYIm2VLztjI1U0PCb1BiH/IfyyjjizqRhhEwyQp9YAJeZZq8n/2vQEA==",
584 + "version": "0.3.261",
585 + "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-darwin-x64/-/claude-agent-sdk-darwin-x64-0.3.261.tgz",
586 + "integrity": "sha512-PODd45XbrKxwngebFmc60Xd68QDb7xCo+0toYTJKfFumU24b/JT2WpO5sTSfc5+fahd/P11q0uF5v9YeSjWmjg==",
603 587 "cpu": [
612 596 "node_modules/@anthropic-ai/claude-agent-sdk-linux-arm64": {
613 - "version": "0.3.238",
614 - "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-arm64/-/claude-agent-sdk-linux-arm64-0.3.238.tgz",
615 - "integrity": "sha512-P7V9TFokcNRdIJPUzDQ0GLBfMuoewWEH4rh6U3e7RaEAxzdeUcdS9P0N4arXqK2YAOtK1o93QSEtiGUF1fTfWw==",
597 + "version": "0.3.261",
598 + "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-arm64/-/claude-agent-sdk-linux-arm64-0.3.261.tgz",
599 + "integrity": "sha512-C+y3N3MD2ExrwrbCYcbLdM39VkbJkQKUv23oubvoZr0CtHiH2LESyUUC3JsUbHJ1TRKO8fbzLqvPkjZ9UsBIcw==",
616 600 "cpu": [
617 601 "arm64"
628 612 "node_modules/@anthropic-ai/claude-agent-sdk-linux-arm64-musl": {
629 - "version": "0.3.238",
630 - "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-arm64-musl/-/claude-agent-sdk-linux-arm64-musl-0.3.238.tgz",
631 - "integrity": "sha512-ankSEMAMTVulKYg0NT8fZ7a5+q+aIzfiqhcrLe9zYPeuhE+lpNeq0JPMcHyOtUAENxVI0/2J2q5OXGl9O0qWcg==",
613 + "version": "0.3.261",
614 + "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-arm64-musl/-/claude-agent-sdk-linux-arm64-musl-0.3.261.tgz",
615 + "integrity": "sha512-BAUG2EremVyy8bA14jKF35VRJjGE2TqREpFerA0CRBWg9/sUJZVWdmIRXUiXCKh0MvenPRUJbEgwcHFllQETOw==",
632 616 "cpu": [
633 617 "arm64"
644 628 "node_modules/@anthropic-ai/claude-agent-sdk-linux-x64": {
645 - "version": "0.3.238",
646 - "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-x64/-/claude-agent-sdk-linux-x64-0.3.238.tgz",
647 - "integrity": "sha512-/arAOSqtIAWDu7Z4Uf2Un3n+/5Zg3NpxZKzMQEDnYNkbJRhr44sM59TFaEOiWq1FqlUJKi6wHjgm+TW5B8DWWg==",
629 + "version": "0.3.261",
630 + "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-x64/-/claude-agent-sdk-linux-x64-0.3.261.tgz",
631 + "integrity": "sha512-MdojjfN0HJHT0JMiZJ6rTj3/ODNi5OdY0py1JZmVVEVTYOdvgH6OG3oy9/BmmJTx0mp/BBCHbOGNpibtnqE+1g==",
648 632 "cpu": [
660 644 "node_modules/@anthropic-ai/claude-agent-sdk-linux-x64-musl": {
661 - "version": "0.3.238",
662 - "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-x64-musl/-/claude-agent-sdk-linux-x64-musl-0.3.238.tgz",
663 - "integrity": "sha512-buo3IBSd7EmYcQsH+OKARgNNbSF1+l/+z1hDXSXGKzwD1LFioJZ/k9FWWWC166SoQ93jPmN+G/ksTzEUB3zRGQ==",
645 + "version": "0.3.261",
646 + "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-x64-musl/-/claude-agent-sdk-linux-x64-musl-0.3.261.tgz",
647 + "integrity": "sha512-H7sCtM7X9OyQ+ZCEhh6TY/Z1i+5WIn8YyHRVJ2LrZRFOaszPeDbl1SzSxxuOd5ibwJZA9gx+2uQ78dx+bDkQUA==",
664 648 "cpu": [
676 660 "node_modules/@anthropic-ai/claude-agent-sdk-win32-arm64": {
677 - "version": "0.3.238",
678 - "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-win32-arm64/-/claude-agent-sdk-win32-arm64-0.3.238.tgz",
679 - "integrity": "sha512-yW8lhV7QgYiNu3NatjgmkhUspgJsG2N2N6lmm/7B99sWFobKTbVLMLsXxj6A46R6qE2C4Zzm6PjxgGaMYOMn0g==",
661 + "version": "0.3.261",
662 + "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-win32-arm64/-/claude-agent-sdk-win32-arm64-0.3.261.tgz",
663 + "integrity": "sha512-zvZfec4+wDooqF/ZOI3lthgq9WfZLIrSserS6tULpBqCLKNRbTIpARDcljY7SrRuMGb3Ex+LFn/yXazgajpwzg==",
680 664 "cpu": [
681 665 "arm64"
689 673 "node_modules/@anthropic-ai/claude-agent-sdk-win32-x64": {
690 - "version": "0.3.238",
691 - "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-win32-x64/-/claude-agent-sdk-win32-x64-0.3.238.tgz",
692 - "integrity": "sha512-6Fb2JRrBci282fBfhCGB0Tpq7N8V5HMMqsO3YGFkc9hhbn/y9G7glNKSNgRtxD5Ujjxj8rhiaYstXW2DJzanzw==",
674 + "version": "0.3.261",
675 + "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-win32-x64/-/claude-agent-sdk-win32-x64-0.3.261.tgz",
676 + "integrity": "sha512-tepSwNpNsl4tyDdJ1+YcRXeY7VZNirPqpCtKDuh2YVwDkMfzQevCqojURtACAdLwI8BUXeOGaecwRbh3zoSUtA==",
693 677 "cpu": [
702 686 "node_modules/@anthropic-ai/sdk": {
703 - "version": "0.91.1",
704 - "resolved": "https://registry.npmjs.org/@anthropic-ai/sdk/-/sdk-0.91.1.tgz",
705 - "integrity": "sha512-LAmu761tSN9r66ixvmciswUj/ZC+1Q4iAfpedTfSVLeswRwnY3n2Nb6Tsk+cLPP28aLOPWeMgIuTuCcMC6W/iw==",
687 + "version": "0.123.0",
688 + "resolved": "https://registry.npmjs.org/@anthropic-ai/sdk/-/sdk-0.123.0.tgz",
689 + "integrity": "sha512-Y9oX9mPNGZClHQOFqrWRk43Srcu/UHuPq3rfxxOq7JgW0gi+lJA2MAOK4Ul3k/+AUrwRWFJvd0tK3oC0Pw25dw==",
706 690 "license": "MIT",
707 691 "dependencies": {
708 - "json-schema-to-ts": "^3.1.1"
692 + "json-schema-to-ts": "^3.1.1",
693 + "standardwebhooks": "^1.0.0"
710 695 "bin": {
711 696 "anthropic-ai-sdk": "bin/cli"
1514 1499 "resolved": "extensions/session-rename",
1515 1500 "link": true
1517 - "node_modules/@bugabinga/pi-ext-terse": {
1518 - "resolved": "extensions/terse",
1502 + "node_modules/@bugabinga/pi-ext-strata": {
1503 + "resolved": "extensions/strata",
1519 1504 "link": true
1521 1506 "node_modules/@bugabinga/pi-ext-the-system": {
1579 1564 "integrity": "sha512-7xrBTqIts3o+PMUZX97wSc+7TUbW+/rULzGNCTP6yooNVDXbzw4Wutg/H/xOutTB/c/k0YqOAavgPh4/Zk9PFA==",
1580 1565 "license": "MIT"
1582 - "node_modules/@earendil-works/pi-agent-core": {
1583 - "version": "0.84.3",
1584 - "resolved": "https://registry.npmjs.org/@earendil-works/pi-agent-core/-/pi-agent-core-0.84.3.tgz",
1585 - "integrity": "sha512-VURr+xBRl3RxYcw3kT9Pn3yfi6LbRoCJgHF7h1mAblMjtLNV/MfG/RyF0uJizBAM886AEakSiw3j9c/aSngppg==",
1567 + "node_modules/@earendil-works/chord": {
1568 + "version": "0.85.0",
1569 + "resolved": "https://registry.npmjs.org/@earendil-works/chord/-/chord-0.85.0.tgz",
1570 + "integrity": "sha512-m/eFMaUg2gFUqEqzffgt/d3xPNKEvD++NZrYDBqpCEc2/dqMoS13Pdx/tofe8t5/DHgnzHxlRQFD5bLPUdPmvw==",
1586 1571 "dev": true,
1587 1572 "license": "MIT",
1588 1573 "dependencies": {
1589 - "@earendil-works/pi-ai": "^0.84.3",
1590 - "@earendil-works/pi-telemetry": "^0.84.3",
1574 + "esbuild": "0.28.1"
1575 + },
1576 + "engines": {
1577 + "node": ">=22.19.0"
1579 + },
1580 + "node_modules/@earendil-works/pi-agent-core": {
1581 + "version": "0.85.0",
1582 + "resolved": "https://registry.npmjs.org/@earendil-works/pi-agent-core/-/pi-agent-core-0.85.0.tgz",
1583 + "integrity": "sha512-uOvSDEG5B/P1mpxnuXCkvlvEKcFpyQ9qgCB2r+LY3YTko996iCCq6OEUWk/Af4xCPXx92Pj73ilNoYa40M7EQg==",
1584 + "dev": true,
1585 + "license": "MIT",
1586 + "dependencies": {
1587 + "@earendil-works/chord": "^0.85.0",
1588 + "@earendil-works/pi-ai": "^0.85.0",
1589 + "@earendil-works/pi-telemetry": "^0.85.0",
1591 1590 "diff": "8.0.4",
1592 1591 "ignore": "7.0.5",
1593 1592 "typebox": "1.3.7",
1605 1604 "license": "MIT"
1607 1606 "node_modules/@earendil-works/pi-ai": {
1608 - "version": "0.84.3",
1609 - "resolved": "https://registry.npmjs.org/@earendil-works/pi-ai/-/pi-ai-0.84.3.tgz",
1610 - "integrity": "sha512-M0YUV8vNO3y2WwWSyY8ijKJV5W4gkSUixuvk+Z00ZBjsyMfsdXfITsHEwP1UIf09YRWXT6oGn0GlCamt+P32XQ==",
1607 + "version": "0.85.0",
1608 + "resolved": "https://registry.npmjs.org/@earendil-works/pi-ai/-/pi-ai-0.85.0.tgz",
1609 + "integrity": "sha512-CbeeZH3NHav7Rs182tYq0eoCAWfDd1MvOAXKzonIF4uN3uO99EB8iT1HfyGofJmPkAf8MeIwOBQtqqd0zgrPWA==",
1611 1610 "license": "MIT",
1612 1611 "dependencies": {
1613 - "@anthropic-ai/sdk": "0.91.1",
1612 + "@anthropic-ai/sdk": "0.123.0",
1614 1613 "@aws-sdk/client-bedrock-runtime": "3.1048.0",
1615 - "@earendil-works/pi-telemetry": "^0.84.3",
1614 + "@earendil-works/pi-telemetry": "^0.85.0",
1616 1615 "@google/genai": "1.52.0",
1617 1616 "@smithy/node-http-handler": "4.7.3",
1618 1617 "http-proxy-agent": "7.0.2",
1635 1634 "license": "MIT"
1637 1636 "node_modules/@earendil-works/pi-client": {
1638 - "version": "0.84.3",
1639 - "resolved": "https://registry.npmjs.org/@earendil-works/pi-client/-/pi-client-0.84.3.tgz",
1640 - "integrity": "sha512-zfErYane+390W0xpBJ/FWCp6aktPpkpcIcXUeZiAziWLoxE80ZNQALRyOSa/gGS5V+1OkNnMYxRxbzN0zUvnOA==",
1637 + "version": "0.85.0",
1638 + "resolved": "https://registry.npmjs.org/@earendil-works/pi-client/-/pi-client-0.85.0.tgz",
1639 + "integrity": "sha512-IpYoQ2h2TBeytQAV5lnNwgGGty4BFjjFcJrseqc6ryPou8yX/dKXvEDshL5Sc7WicLv+dLzwzgCODPHAcHinug==",
1641 1640 "dev": true,
1642 1641 "license": "MIT",
1643 1642 "dependencies": {
1644 - "@earendil-works/pi-protocol": "^0.84.3"
1643 + "@earendil-works/chord": "^0.85.0",
1644 + "@earendil-works/pi-protocol": "^0.85.0"
1646 1646 "engines": {
1647 1647 "node": ">=22.19.0"
1650 1650 "node_modules/@earendil-works/pi-coding-agent": {
1651 - "version": "0.84.3",
1652 - "resolved": "https://registry.npmjs.org/@earendil-works/pi-coding-agent/-/pi-coding-agent-0.84.3.tgz",
1653 - "integrity": "sha512-Yr2p9PubrbFZmYEPYI+C8KmZP9xlFuLDnAG64RtU0ZDgrdiXYWa+y7WGyJO5OlqPliOkVCMd9IzVszO3/t0D0w==",
1651 + "version": "0.85.0",
1652 + "resolved": "https://registry.npmjs.org/@earendil-works/pi-coding-agent/-/pi-coding-agent-0.85.0.tgz",
1653 + "integrity": "sha512-INxVkLAVfAMju5MojJpmyu/0bMP+r+ffZuS7UqVv32E2JwHBRbcHfELDfmFNvapEbgYfKN2r9OYO1p3TqDBR+g==",
1654 1654 "hasShrinkwrap": true,
1655 1655 "license": "MIT",
1656 1656 "dependencies": {
1657 - "@earendil-works/pi-agent-core": "^0.84.3",
1658 - "@earendil-works/pi-ai": "^0.84.3",
1659 - "@earendil-works/pi-client": "^0.84.3",
1660 - "@earendil-works/pi-protocol": "^0.84.3",
1661 - "@earendil-works/pi-tui": "^0.84.3",
1657 + "@earendil-works/chord": "^0.85.0",
1658 + "@earendil-works/pi-agent-core": "^0.85.0",
1659 + "@earendil-works/pi-ai": "^0.85.0",
1660 + "@earendil-works/pi-client": "^0.85.0",
1661 + "@earendil-works/pi-protocol": "^0.85.0",
1662 + "@earendil-works/pi-tui": "^0.85.0",
1662 1663 "@silvia-odwyer/photon-node": "0.3.4",
1663 1664 "chalk": "5.6.2",
1664 1665 "cross-spawn": "7.0.6",
1688 1689 "node_modules/@earendil-works/pi-coding-agent/node_modules/@anthropic-ai/sdk": {
1689 - "version": "0.91.1",
1690 - "resolved": "https://registry.npmjs.org/@anthropic-ai/sdk/-/sdk-0.91.1.tgz",
1691 - "integrity": "sha512-LAmu761tSN9r66ixvmciswUj/ZC+1Q4iAfpedTfSVLeswRwnY3n2Nb6Tsk+cLPP28aLOPWeMgIuTuCcMC6W/iw==",
1690 + "version": "0.123.0",
1691 + "resolved": "https://registry.npmjs.org/@anthropic-ai/sdk/-/sdk-0.123.0.tgz",
1692 + "integrity": "sha512-Y9oX9mPNGZClHQOFqrWRk43Srcu/UHuPq3rfxxOq7JgW0gi+lJA2MAOK4Ul3k/+AUrwRWFJvd0tK3oC0Pw25dw==",
1692 1693 "license": "MIT",
1693 1694 "dependencies": {
1694 - "json-schema-to-ts": "^3.1.1"
1695 + "json-schema-to-ts": "^3.1.1",
1696 + "standardwebhooks": "^1.0.0"
1696 1698 "bin": {
1697 1699 "anthropic-ai-sdk": "bin/cli"
2120 2122 "node": ">=6.9.0"
2123 - "node_modules/@earendil-works/pi-coding-agent/node_modules/@earendil-works/pi-agent-core": {
2124 - "version": "0.84.3",
2125 - "resolved": "https://registry.npmjs.org/@earendil-works/pi-agent-core/-/pi-agent-core-0.84.3.tgz",
2125 + "node_modules/@earendil-works/pi-coding-agent/node_modules/@earendil-works/chord": {
2126 + "version": "0.85.0",
2127 + "resolved": "https://registry.npmjs.org/@earendil-works/chord/-/chord-0.85.0.tgz",
2126 2128 "license": "MIT",
2127 2129 "dependencies": {
2128 - "@earendil-works/pi-ai": "^0.84.3",
2129 - "@earendil-works/pi-telemetry": "^0.84.3",
2130 + "esbuild": "0.28.1"
2131 + },
2132 + "engines": {
2133 + "node": ">=22.19.0"
2135 + },
2136 + "node_modules/@earendil-works/pi-coding-agent/node_modules/@earendil-works/pi-agent-core": {
2137 + "version": "0.85.0",
2138 + "resolved": "https://registry.npmjs.org/@earendil-works/pi-agent-core/-/pi-agent-core-0.85.0.tgz",
2139 + "license": "MIT",
2140 + "dependencies": {
2141 + "@earendil-works/chord": "^0.85.0",
2142 + "@earendil-works/pi-ai": "^0.85.0",
2143 + "@earendil-works/pi-telemetry": "^0.85.0",
2130 2144 "diff": "8.0.4",
2131 2145 "ignore": "7.0.5",
2132 2146 "typebox": "1.3.7",
2139 2153 "node_modules/@earendil-works/pi-coding-agent/node_modules/@earendil-works/pi-ai": {
2140 - "version": "0.84.3",
2141 - "resolved": "https://registry.npmjs.org/@earendil-works/pi-ai/-/pi-ai-0.84.3.tgz",
2154 + "version": "0.85.0",
2155 + "resolved": "https://registry.npmjs.org/@earendil-works/pi-ai/-/pi-ai-0.85.0.tgz",
2142 2156 "license": "MIT",
2143 2157 "dependencies": {
2144 - "@anthropic-ai/sdk": "0.91.1",
2158 + "@anthropic-ai/sdk": "0.123.0",
2145 2159 "@aws-sdk/client-bedrock-runtime": "3.1048.0",
2146 - "@earendil-works/pi-telemetry": "^0.84.3",
2160 + "@earendil-works/pi-telemetry": "^0.85.0",
2147 2161 "@google/genai": "1.52.0",
2148 2162 "@smithy/node-http-handler": "4.7.3",
2149 2163 "http-proxy-agent": "7.0.2",
2162 2176 "node_modules/@earendil-works/pi-coding-agent/node_modules/@earendil-works/pi-client": {
2163 - "version": "0.84.3",
2164 - "resolved": "https://registry.npmjs.org/@earendil-works/pi-client/-/pi-client-0.84.3.tgz",
2177 + "version": "0.85.0",
2178 + "resolved": "https://registry.npmjs.org/@earendil-works/pi-client/-/pi-client-0.85.0.tgz",
2165 2179 "license": "MIT",
2166 2180 "dependencies": {
2167 - "@earendil-works/pi-protocol": "^0.84.3"
2181 + "@earendil-works/chord": "^0.85.0",
2182 + "@earendil-works/pi-protocol": "^0.85.0"
2169 2184 "engines": {
2170 2185 "node": ">=22.19.0"
2173 2188 "node_modules/@earendil-works/pi-coding-agent/node_modules/@earendil-works/pi-protocol": {
2174 - "version": "0.84.3",
2175 - "resolved": "https://registry.npmjs.org/@earendil-works/pi-protocol/-/pi-protocol-0.84.3.tgz",
2189 + "version": "0.85.0",
2190 + "resolved": "https://registry.npmjs.org/@earendil-works/pi-protocol/-/pi-protocol-0.85.0.tgz",
2176 2191 "license": "MIT",
2177 2192 "dependencies": {
2193 + "@earendil-works/chord": "^0.85.0",
2178 2194 "typebox": "1.3.7"
2180 2196 "engines": {
2184 2200 "node_modules/@earendil-works/pi-coding-agent/node_modules/@earendil-works/pi-telemetry": {
2185 - "version": "0.84.3",
2186 - "resolved": "https://registry.npmjs.org/@earendil-works/pi-telemetry/-/pi-telemetry-0.84.3.tgz",
2201 + "version": "0.85.0",
2202 + "resolved": "https://registry.npmjs.org/@earendil-works/pi-telemetry/-/pi-telemetry-0.85.0.tgz",
2187 2203 "license": "MIT",
2188 2204 "engines": {
2189 2205 "node": ">=22.19.0"
2192 2208 "node_modules/@earendil-works/pi-coding-agent/node_modules/@earendil-works/pi-tui": {
2193 - "version": "0.84.3",
2194 - "resolved": "https://registry.npmjs.org/@earendil-works/pi-tui/-/pi-tui-0.84.3.tgz",
2209 + "version": "0.85.0",
2210 + "resolved": "https://registry.npmjs.org/@earendil-works/pi-tui/-/pi-tui-0.85.0.tgz",
2195 2211 "license": "MIT",
2196 2212 "dependencies": {
2197 2213 "get-east-asian-width": "1.6.0",
2201 2217 "node": ">=22.19.0"
2220 + "node_modules/@earendil-works/pi-coding-agent/node_modules/@esbuild/aix-ppc64": {
2221 + "version": "0.28.1",
2222 + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.28.1.tgz",
2223 + "integrity": "sha512-Svl7tq8k/08+p6CXPpRjQ1fKX+1odH/BQbb48fV6fj3CWHhsoIOoY87w1oHXm0qEpkIK3ZfVgp0hed3XBXzXMQ==",
2224 + "cpu": [
2225 + "ppc64"
2226 + ],
2227 + "license": "MIT",
2228 + "optional": true,
2229 + "os": [
2230 + "aix"
2231 + ],
2232 + "engines": {
2233 + "node": ">=18"
2235 + },
2236 + "node_modules/@earendil-works/pi-coding-agent/node_modules/@esbuild/android-arm": {
2237 + "version": "0.28.1",
2238 + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.28.1.tgz",
2239 + "integrity": "sha512-0k2F129Xdio1TdJfzJ8sy1Q47vUD2NnwdhiAf7drUN1EBTfPf4hsFCtmMgu/6m8JSzsBrlmVjudMBQqOfG8usQ==",
2240 + "cpu": [
2241 + "arm"
2242 + ],
2243 + "license": "MIT",
2244 + "optional": true,
2245 + "os": [
2246 + "android"
2247 + ],
2248 + "engines": {
2249 + "node": ">=18"
2251 + },
2252 + "node_modules/@earendil-works/pi-coding-agent/node_modules/@esbuild/android-arm64": {
2253 + "version": "0.28.1",
2254 + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.28.1.tgz",
2255 + "integrity": "sha512-34EGEbCIAgosYz6goLcopX6Mo7NyGv9tfwEM2/7Ce2VcVRk568iSvniGWcUXIy7wEDR1wzolcxcriFVrWYcwBg==",
2256 + "cpu": [
2257 + "arm64"
2258 + ],
2259 + "license": "MIT",
2260 + "optional": true,
2261 + "os": [
2262 + "android"
2263 + ],
2264 + "engines": {
2265 + "node": ">=18"
2267 + },
2268 + "node_modules/@earendil-works/pi-coding-agent/node_modules/@esbuild/android-x64": {
2269 + "version": "0.28.1",
2270 + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.28.1.tgz",
2271 + "integrity": "sha512-dbwY7ltSMDWsRatcRpCnES4F+im88OCUgGZjy52shC7GqHRE/cYlxNbB4Z4UpJswpcc4Qxd2oE/ufM0p61IKng==",
2272 + "cpu": [
2273 + "x64"
2274 + ],
2275 + "license": "MIT",
2276 + "optional": true,
2277 + "os": [
2278 + "android"
2279 + ],
2280 + "engines": {
2281 + "node": ">=18"
2283 + },
2284 + "node_modules/@earendil-works/pi-coding-agent/node_modules/@esbuild/darwin-arm64": {
2285 + "version": "0.28.1",
2286 + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.28.1.tgz",
2287 + "integrity": "sha512-TZbWkQY7kvTAXbXUT7uVACR5cMHsDiSz9z7ZKAX/RTq/WJEk3QyRr0wZpNhBDX+/0CtdqUIJlOiodQcta6tY3Q==",
2288 + "cpu": [
2289 + "arm64"
2290 + ],
2291 + "license": "MIT",
2292 + "optional": true,
2293 + "os": [
2294 + "darwin"
2295 + ],
2296 + "engines": {
2297 + "node": ">=18"
2299 + },
2300 + "node_modules/@earendil-works/pi-coding-agent/node_modules/@esbuild/darwin-x64": {
2301 + "version": "0.28.1",
2302 + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.28.1.tgz",
2303 + "integrity": "sha512-zfdzgK9ACBNZLI/CyHTOx81SyNbM6YXn7rxSgX97VjyiPl9W1i4Ka4fgKECEoFCKGpvBj5qArWIGgQjOwkgskQ==",
2304 + "cpu": [
2305 + "x64"
2306 + ],
2307 + "license": "MIT",
2308 + "optional": true,
2309 + "os": [
2310 + "darwin"
2311 + ],
2312 + "engines": {
2313 + "node": ">=18"
2315 + },
2316 + "node_modules/@earendil-works/pi-coding-agent/node_modules/@esbuild/freebsd-arm64": {
2317 + "version": "0.28.1",
2318 + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.28.1.tgz",
2319 + "integrity": "sha512-wG2EA8ENdEI0qhkSZMjfqrdY+ziCYCPMmtZjjIwOmXFjmyzEHn+UUxk5of+SYsjtfs3VpnlC7QLzSI5hY/rOAw==",
2320 + "cpu": [
2321 + "arm64"
2322 + ],
2323 + "license": "MIT",
2324 + "optional": true,
2325 + "os": [
2326 + "freebsd"
2327 + ],
2328 + "engines": {
2329 + "node": ">=18"
2331 + },
2332 + "node_modules/@earendil-works/pi-coding-agent/node_modules/@esbuild/freebsd-x64": {
2333 + "version": "0.28.1",
2334 + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.28.1.tgz",
2335 + "integrity": "sha512-i7dZ9vQgnvSCzi/rYCXNgtF/U+eKZNJBzu3eTQbRgHnM7tNSizLOkRFAl3qzVc/Op/u5YkHHa4pf/3DOYHthLQ==",
2336 + "cpu": [
2337 + "x64"
2338 + ],
2339 + "license": "MIT",
2340 + "optional": true,
2341 + "os": [
2342 + "freebsd"
2343 + ],
2344 + "engines": {
2345 + "node": ">=18"
2347 + },
2348 + "node_modules/@earendil-works/pi-coding-agent/node_modules/@esbuild/linux-arm": {
2349 + "version": "0.28.1",
2350 + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.28.1.tgz",
2351 + "integrity": "sha512-qVXBOHQS+d5Y722GwJzJUtOLlX7km3CraOaGormF1pDtPd2C/l1SHRPgjLunLGe51Sh5YYWKMFDyV4SxgMQYTQ==",
2352 + "cpu": [
2353 + "arm"
2354 + ],
2355 + "license": "MIT",
2356 + "optional": true,
2357 + "os": [
2358 + "linux"
2359 + ],
2360 + "engines": {
2361 + "node": ">=18"
2363 + },
2364 + "node_modules/@earendil-works/pi-coding-agent/node_modules/@esbuild/linux-arm64": {
2365 + "version": "0.28.1",
2366 + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.28.1.tgz",
2367 + "integrity": "sha512-yHs+0uc8+nvEAfAfxrWQKK5peSNzBc4PegcMO0EJ2hT71uA7vB8Ihg2e77R2P7SG5uYjPbHlLLmve4LLLRCf0g==",
2368 + "cpu": [
2369 + "arm64"
2370 + ],
2371 + "license": "MIT",
2372 + "optional": true,
2373 + "os": [
2374 + "linux"
2375 + ],
2376 + "engines": {
2377 + "node": ">=18"
2379 + },
2380 + "node_modules/@earendil-works/pi-coding-agent/node_modules/@esbuild/linux-ia32": {
2381 + "version": "0.28.1",
2382 + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.28.1.tgz",
2383 + "integrity": "sha512-d1z4ZuP0ajrfz/FhGT4vv278rX8KnPPJx8i5+AtK7TYbx9Le9F1hyzurZpkEyjkGa9dUGhQow4C1NmeGvqxN2w==",
2384 + "cpu": [
2385 + "ia32"
2386 + ],
2387 + "license": "MIT",
2388 + "optional": true,
2389 + "os": [
2390 + "linux"
2391 + ],
2392 + "engines": {
2393 + "node": ">=18"
2395 + },
2396 + "node_modules/@earendil-works/pi-coding-agent/node_modules/@esbuild/linux-loong64": {
2397 + "version": "0.28.1",
2398 + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.28.1.tgz",
2399 + "integrity": "sha512-M5sRjUVZrkm1OAPR3dlOYzNmN+loZKGVi1VUQGrwuqLcbR6qeAz+famMhjASeH3YVKvZz+zT1jlh/keC3Rj/lg==",
2400 + "cpu": [
2401 + "loong64"
2402 + ],
2403 + "license": "MIT",
2404 + "optional": true,
2405 + "os": [
2406 + "linux"
2407 + ],
2408 + "engines": {
2409 + "node": ">=18"
2411 + },
2412 + "node_modules/@earendil-works/pi-coding-agent/node_modules/@esbuild/linux-mips64el": {
2413 + "version": "0.28.1",
2414 + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.28.1.tgz",
2415 + "integrity": "sha512-mRObBZeHh2OxcBFPWE/FjylkRgZdYuiTR3vaTozquCGOH14iP9oN4x4Ge81CoIDYQrXmIxpFumJBu5MtZpnQJQ==",
2416 + "cpu": [
2417 + "mips64el"
2418 + ],
2419 + "license": "MIT",
2420 + "optional": true,
2421 + "os": [
2422 + "linux"
2423 + ],
2424 + "engines": {
2425 + "node": ">=18"
2427 + },
2428 + "node_modules/@earendil-works/pi-coding-agent/node_modules/@esbuild/linux-ppc64": {
2429 + "version": "0.28.1",
2430 + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.28.1.tgz",
2431 + "integrity": "sha512-slScBsMAb3GFDcdrCgLwZtPYRoH2H/youv10QiZyRjmsP48fznoveWytSgCI/R0ZcUgpc0ZhIUEx6LHts8yrfQ==",
2432 + "cpu": [
2433 + "ppc64"
2434 + ],
2435 + "license": "MIT",
2436 + "optional": true,
2437 + "os": [
2438 + "linux"
2439 + ],
2440 + "engines": {
2441 + "node": ">=18"
2443 + },
2444 + "node_modules/@earendil-works/pi-coding-agent/node_modules/@esbuild/linux-riscv64": {
2445 + "version": "0.28.1",
2446 + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.28.1.tgz",
2447 + "integrity": "sha512-kw0owk1o0GFETUJyW0jc0G4Yzs0BHZn0JDZ8JRT088vjJYX777BAs1fDGxAC+q831qOs2DTC96mNsG2opdfyyQ==",
2448 + "cpu": [
2449 + "riscv64"
2450 + ],
2451 + "license": "MIT",
2452 + "optional": true,
2453 + "os": [
2454 + "linux"
2455 + ],
2456 + "engines": {
2457 + "node": ">=18"
2459 + },
2460 + "node_modules/@earendil-works/pi-coding-agent/node_modules/@esbuild/linux-s390x": {
2461 + "version": "0.28.1",
2462 + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.28.1.tgz",
2463 + "integrity": "sha512-/lAIjX8aYFRByhh6L5rYtPEDRqa9de/4V/juOXcta5frjvzXO4/sqEtyytse0g3zZFuWu5cDN0MkLz2qRDD2Ag==",
2464 + "cpu": [
2465 + "s390x"
2466 + ],
2467 + "license": "MIT",
2468 + "optional": true,
2469 + "os": [
2470 + "linux"
2471 + ],
2472 + "engines": {
2473 + "node": ">=18"
2475 + },
2476 + "node_modules/@earendil-works/pi-coding-agent/node_modules/@esbuild/linux-x64": {
2477 + "version": "0.28.1",
2478 + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.28.1.tgz",
2479 + "integrity": "sha512-u/anNYF2mmVOEDwLtnQ1wOr3EZ9sTNGLWrsYGYwHWzGA3Si84IOkHXlbWTD1NB+9/1lcnweYKO54uhxZydNzfA==",
2480 + "cpu": [
2481 + "x64"
2482 + ],
2483 + "license": "MIT",
2484 + "optional": true,
2485 + "os": [
2486 + "linux"
2487 + ],
2488 + "engines": {
2489 + "node": ">=18"
2491 + },
2492 + "node_modules/@earendil-works/pi-coding-agent/node_modules/@esbuild/netbsd-arm64": {
2493 + "version": "0.28.1",
2494 + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.28.1.tgz",
2495 + "integrity": "sha512-oks0DYbLwWMmaakTsCb+zL4E+aHRVLom9IJZOAthMQEPiQmydXHkziYEsGYRx0uNV/IjEKGAV941JzH02pflqw==",
2496 + "cpu": [
2497 + "arm64"
2498 + ],
2499 + "license": "MIT",
2500 + "optional": true,
2501 + "os": [
2502 + "netbsd"
2503 + ],
2504 + "engines": {
2505 + "node": ">=18"
2507 + },
2508 + "node_modules/@earendil-works/pi-coding-agent/node_modules/@esbuild/netbsd-x64": {
2509 + "version": "0.28.1",
2510 + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.28.1.tgz",
2511 + "integrity": "sha512-aeL6lAnN89Hz43Mlh1G8ARasbuoYvSITDEx0tHh5b7jJnHcssqgjy9Yx430GDpmCa6OyrKoS0aNRjKundRizGg==",
2512 + "cpu": [
2513 + "x64"
2514 + ],
2515 + "license": "MIT",
2516 + "optional": true,
2517 + "os": [
2518 + "netbsd"
2519 + ],
2520 + "engines": {
2521 + "node": ">=18"
2523 + },
2524 + "node_modules/@earendil-works/pi-coding-agent/node_modules/@esbuild/openbsd-arm64": {
2525 + "version": "0.28.1",
2526 + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.28.1.tgz",
2527 + "integrity": "sha512-MEFJe5C3R8pwXdZ5Y21oo6m7ePiS0d9pWucn99O/wvyJZChoIQKrQDxKrGeW8F5+T0okTHesAmDeiHDTIq0V/Q==",
2528 + "cpu": [
2529 + "arm64"
2530 + ],
2531 + "license": "MIT",
2532 + "optional": true,
2533 + "os": [
2534 + "openbsd"
2535 + ],
2536 + "engines": {
2537 + "node": ">=18"
2539 + },
2540 + "node_modules/@earendil-works/pi-coding-agent/node_modules/@esbuild/openbsd-x64": {
2541 + "version": "0.28.1",
2542 + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.28.1.tgz",
2543 + "integrity": "sha512-i/ZLIOafE0Z8cI/XANJAixoJL/uRAoS2xOA3rb0xN+KK0K177cMAsQYkzHtBrtMXAKuAc7HGgcWiZ/sRC1Nxgw==",
2544 + "cpu": [
2545 + "x64"
2546 + ],
2547 + "license": "MIT",
2548 + "optional": true,
2549 + "os": [
2550 + "openbsd"
2551 + ],
2552 + "engines": {
2553 + "node": ">=18"
2555 + },
2556 + "node_modules/@earendil-works/pi-coding-agent/node_modules/@esbuild/openharmony-arm64": {
2557 + "version": "0.28.1",
2558 + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.28.1.tgz",
2559 + "integrity": "sha512-ge+Z7EXFNt2BO1oAMsVpiQ8EwndV9i1xXerAeTIK7AtPs3bKFXQM7nlRxDSIUIMeueR1CNXxqztLzdNeReKBJg==",
2560 + "cpu": [
2561 + "arm64"
2562 + ],
2563 + "license": "MIT",
2564 + "optional": true,
2565 + "os": [
2566 + "openharmony"
2567 + ],
2568 + "engines": {
2569 + "node": ">=18"
2571 + },
2572 + "node_modules/@earendil-works/pi-coding-agent/node_modules/@esbuild/sunos-x64": {
2573 + "version": "0.28.1",
2574 + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.28.1.tgz",
2575 + "integrity": "sha512-BEjgtECkL3vY+SaSQ6nzVfiALUeFxpawyp8Jmf5PtYhf1Ug40N1h/hxlhts+f1FvSvarEigdxS3BlSMI2PJLcQ==",
2576 + "cpu": [
2577 + "x64"
2578 + ],
2579 + "license": "MIT",
2580 + "optional": true,
2581 + "os": [
2582 + "sunos"
2583 + ],
2584 + "engines": {
2585 + "node": ">=18"
2587 + },
2588 + "node_modules/@earendil-works/pi-coding-agent/node_modules/@esbuild/win32-arm64": {
2589 + "version": "0.28.1",
2590 + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.28.1.tgz",
2591 + "integrity": "sha512-lCv9eK/H6ZJWbE7bh2nw54CZ9M2nupBxJcTsdk/QQnWkdSjKGuxmmH8/GWrlT1eMmZfn4dGcCjRte397WqfQXA==",
2592 + "cpu": [
2593 + "arm64"
2594 + ],
2595 + "license": "MIT",
2596 + "optional": true,
2597 + "os": [
2598 + "win32"
2599 + ],
2600 + "engines": {
2601 + "node": ">=18"
2603 + },
2604 + "node_modules/@earendil-works/pi-coding-agent/node_modules/@esbuild/win32-ia32": {
2605 + "version": "0.28.1",
2606 + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.28.1.tgz",
2607 + "integrity": "sha512-zvb/mB2bSCoJOpoCBgYKKpX6YM6mJBlBUVUtVj41DlZJVEB6/0CKlRYxP5wWl1C1ILiCoAU5wZZ4q1P3qeS6Eg==",
2608 + "cpu": [
2609 + "ia32"
2610 + ],
2611 + "license": "MIT",
2612 + "optional": true,
2613 + "os": [
2614 + "win32"
2615 + ],
2616 + "engines": {
2617 + "node": ">=18"
2619 + },
2620 + "node_modules/@earendil-works/pi-coding-agent/node_modules/@esbuild/win32-x64": {
2621 + "version": "0.28.1",
2622 + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.28.1.tgz",
2623 + "integrity": "sha512-bm4Mowrv+GXMlpWX++EcXw/iLyd1o3+bJkC2DkWXYVvgZCqD/bSj9ctZeAMC3cIxgjRVR2Dufaiu4YPxr5gW1A==",
2624 + "cpu": [
2625 + "x64"
2626 + ],
2627 + "license": "MIT",
2628 + "optional": true,
2629 + "os": [
2630 + "win32"
2631 + ],
2632 + "engines": {
2633 + "node": ">=18"
2635 + },
2204 2636 "node_modules/@earendil-works/pi-coding-agent/node_modules/@google/genai": {
2205 2637 "version": "1.52.0",
2206 2638 "resolved": "https://registry.npmjs.org/@google/genai/-/genai-1.52.0.tgz",
2599 3031 "node": ">=14.0.0"
3034 + "node_modules/@earendil-works/pi-coding-agent/node_modules/@stablelib/base64": {
3035 + "version": "1.0.1",
3036 + "resolved": "https://registry.npmjs.org/@stablelib/base64/-/base64-1.0.1.tgz",
3037 + "integrity": "sha512-1bnPQqSxSuc3Ii6MhBysoWCg58j97aUjuCSZrGSmDxNqtytIi0k8utUenAwTZN4V5mXXYGsVUI9zeBqy+jBOSQ==",
3038 + "license": "MIT"
3039 + },
2602 3040 "node_modules/@earendil-works/pi-coding-agent/node_modules/@types/node": {
2603 3041 "version": "22.19.19",
2604 3042 "resolved": "https://registry.npmjs.org/@types/node/-/node-22.19.19.tgz",
2749 3187 "safe-buffer": "^5.0.1"
3190 + "node_modules/@earendil-works/pi-coding-agent/node_modules/esbuild": {
3191 + "version": "0.28.1",
3192 + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.28.1.tgz",
3193 + "integrity": "sha512-HrJrvZv5ayxBzPfwphOoNzkzOIIlifzk0KJrGK2c8R4+LKpMtpYLQeUdjnwjWv/LZlkH2laZk+4w78pi99D4Vw==",
3194 + "hasInstallScript": true,
3195 + "license": "MIT",
3196 + "bin": {
3197 + "esbuild": "bin/esbuild"
3198 + },
3199 + "engines": {
3200 + "node": ">=18"
3201 + },
3202 + "optionalDependencies": {
3203 + "@esbuild/aix-ppc64": "0.28.1",
3204 + "@esbuild/android-arm": "0.28.1",
3205 + "@esbuild/android-arm64": "0.28.1",
3206 + "@esbuild/android-x64": "0.28.1",
3207 + "@esbuild/darwin-arm64": "0.28.1",
3208 + "@esbuild/darwin-x64": "0.28.1",
3209 + "@esbuild/freebsd-arm64": "0.28.1",
3210 + "@esbuild/freebsd-x64": "0.28.1",
3211 + "@esbuild/linux-arm": "0.28.1",
3212 + "@esbuild/linux-arm64": "0.28.1",
3213 + "@esbuild/linux-ia32": "0.28.1",
3214 + "@esbuild/linux-loong64": "0.28.1",
3215 + "@esbuild/linux-mips64el": "0.28.1",
3216 + "@esbuild/linux-ppc64": "0.28.1",
3217 + "@esbuild/linux-riscv64": "0.28.1",
3218 + "@esbuild/linux-s390x": "0.28.1",
3219 + "@esbuild/linux-x64": "0.28.1",
3220 + "@esbuild/netbsd-arm64": "0.28.1",
3221 + "@esbuild/netbsd-x64": "0.28.1",
3222 + "@esbuild/openbsd-arm64": "0.28.1",
3223 + "@esbuild/openbsd-x64": "0.28.1",
3224 + "@esbuild/openharmony-arm64": "0.28.1",
3225 + "@esbuild/sunos-x64": "0.28.1",
3226 + "@esbuild/win32-arm64": "0.28.1",
3227 + "@esbuild/win32-ia32": "0.28.1",
3228 + "@esbuild/win32-x64": "0.28.1"
3230 + },
2752 3231 "node_modules/@earendil-works/pi-coding-agent/node_modules/extend": {
2753 3232 "version": "3.0.2",
2754 3233 "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz",
2755 3234 "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==",
2756 3235 "license": "MIT"
3237 + "node_modules/@earendil-works/pi-coding-agent/node_modules/fast-sha256": {
3238 + "version": "1.3.0",
3239 + "resolved": "https://registry.npmjs.org/fast-sha256/-/fast-sha256-1.3.0.tgz",
3240 + "integrity": "sha512-n11RGP/lrWEFI/bWdygLxhI+pVeo1ZYIVwvvPkW7azl/rOy+F3HYRZ2K5zeE9mmkhQppyv9sQFx0JM9UabnpPQ==",
3241 + "license": "Unlicense"
3242 + },
2758 3243 "node_modules/@earendil-works/pi-coding-agent/node_modules/fast-xml-builder": {
2759 3244 "version": "1.2.0",
2760 3245 "resolved": "https://registry.npmjs.org/fast-xml-builder/-/fast-xml-builder-1.2.0.tgz",
3286 3771 "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",
3287 3772 "license": "ISC"
3774 + "node_modules/@earendil-works/pi-coding-agent/node_modules/standardwebhooks": {
3775 + "version": "1.1.1",
3776 + "resolved": "https://registry.npmjs.org/standardwebhooks/-/standardwebhooks-1.1.1.tgz",
3777 + "integrity": "sha512-bCbX9ZEyFkWPsRz7Bl3NuQUJohmwGSev/yhr7vhaGPlc4AfIrspIRa6cPTBuI1ItmrTDJ4d/S2hCsfe4+vQGnQ==",
3778 + "license": "MIT",
3779 + "dependencies": {
3780 + "@stablelib/base64": "^1.0.0",
3781 + "fast-sha256": "^1.3.0"
3783 + },
3289 3784 "node_modules/@earendil-works/pi-coding-agent/node_modules/strnum": {
3290 3785 "version": "2.3.0",
3291 3786 "resolved": "https://registry.npmjs.org/strnum/-/strnum-2.3.0.tgz",
3409 3904 "node_modules/@earendil-works/pi-protocol": {
3410 - "version": "0.84.3",
3411 - "resolved": "https://registry.npmjs.org/@earendil-works/pi-protocol/-/pi-protocol-0.84.3.tgz",
3412 - "integrity": "sha512-9a4g6WhLOvRqvsIOFaWxg/2gdrbY4Thclwj5ipLUPAWChfsDJ/8XdPc2sRhSOkD6EsxpEFJz3xppcfwI6EcZDg==",
3905 + "version": "0.85.0",
3906 + "resolved": "https://registry.npmjs.org/@earendil-works/pi-protocol/-/pi-protocol-0.85.0.tgz",
3907 + "integrity": "sha512-knPb0QeV6/1K6t9X6K4Wri9ZOlhqnGx1HYRy2N7x5ZEU7zcYDlR0oSfgbrsmMFmJJal5DZ9Q2HjekayjssKCVQ==",
3413 3908 "dev": true,
3414 3909 "license": "MIT",
3415 3910 "dependencies": {
3911 + "@earendil-works/chord": "^0.85.0",
3416 3912 "typebox": "1.3.7"
3418 3914 "engines": {
3426 3922 "dev": true,
3427 3923 "license": "MIT"
3925 + "node_modules/@earendil-works/pi-server": {
3926 + "version": "0.85.0",
3927 + "resolved": "https://registry.npmjs.org/@earendil-works/pi-server/-/pi-server-0.85.0.tgz",
3928 + "integrity": "sha512-S8a6a26TM40C7WInj7bNu+HLbVMGosg4gRo2jB5yw0mH1TZ6HHKMxT2YDJpDpnSyGmCwEPj5GBG2sG1jbthWrA==",
3929 + "dev": true,
3930 + "license": "MIT",
3931 + "dependencies": {
3932 + "@earendil-works/chord": "^0.85.0",
3933 + "@earendil-works/pi-agent-core": "^0.85.0",
3934 + "@earendil-works/pi-protocol": "^0.85.0"
3935 + },
3936 + "engines": {
3937 + "node": ">=22.19.0"
3939 + },
3429 3940 "node_modules/@earendil-works/pi-telemetry": {
3430 - "version": "0.84.3",
3431 - "resolved": "https://registry.npmjs.org/@earendil-works/pi-telemetry/-/pi-telemetry-0.84.3.tgz",
3432 - "integrity": "sha512-sgEkWoKrvSGaKn+YfLLFZmn+/A7B/w62eLwTD57nI+C9to8ITlFFVbgC2OtwvPnT3NFGHdCd53qhBEMIlptD1g==",
3941 + "version": "0.85.0",
3942 + "resolved": "https://registry.npmjs.org/@earendil-works/pi-telemetry/-/pi-telemetry-0.85.0.tgz",
3943 + "integrity": "sha512-gs8Zq1lySn8liq7U7CCSgWHJcA8c6+ZWk+CBPp7w0K+SN5LcLcsbs3+bh7zipm4CqNkVhcpwGAEGJp7qZqsVnA==",
3433 3944 "license": "MIT",
3434 3945 "engines": {
3435 3946 "node": ">=22.19.0"
3438 3949 "node_modules/@earendil-works/pi-tui": {
3439 - "version": "0.84.3",
3440 - "resolved": "https://registry.npmjs.org/@earendil-works/pi-tui/-/pi-tui-0.84.3.tgz",
3441 - "integrity": "sha512-fS6OEQKEEALnKa6Uw8LcgZZ+9CWck7f3MQSCETQp6leUgIFwMEDtKmOUnL9nsYm+RIPmy7OmplVxYRbV6hiaFg==",
3950 + "version": "0.85.0",
3951 + "resolved": "https://registry.npmjs.org/@earendil-works/pi-tui/-/pi-tui-0.85.0.tgz",
3952 + "integrity": "sha512-8+rXIWAfByYOBcEr3v6C64QFUYrcjw9NpHTN+boyUH2c0kPRybFhW58LYUAYvVnMaRw8+l9yCVSc6YCidw7cHw==",
3442 3953 "license": "MIT",
3443 3954 "dependencies": {
3444 3955 "get-east-asian-width": "1.6.0",
3448 3959 "node": ">=22.19.0"
3962 + "node_modules/@esbuild/aix-ppc64": {
3963 + "version": "0.28.1",
3964 + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.28.1.tgz",
3965 + "integrity": "sha512-Svl7tq8k/08+p6CXPpRjQ1fKX+1odH/BQbb48fV6fj3CWHhsoIOoY87w1oHXm0qEpkIK3ZfVgp0hed3XBXzXMQ==",
3966 + "cpu": [
3967 + "ppc64"
3968 + ],
3969 + "dev": true,
3970 + "license": "MIT",
3971 + "optional": true,
3972 + "os": [
3973 + "aix"
3974 + ],
3975 + "engines": {
3976 + "node": ">=18"
3978 + },
3979 + "node_modules/@esbuild/android-arm": {
3980 + "version": "0.28.1",
3981 + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.28.1.tgz",
3982 + "integrity": "sha512-0k2F129Xdio1TdJfzJ8sy1Q47vUD2NnwdhiAf7drUN1EBTfPf4hsFCtmMgu/6m8JSzsBrlmVjudMBQqOfG8usQ==",
3983 + "cpu": [
3984 + "arm"
3985 + ],
3986 + "dev": true,
3987 + "license": "MIT",
3988 + "optional": true,
3989 + "os": [
3990 + "android"
3991 + ],
3992 + "engines": {
3993 + "node": ">=18"
3995 + },
3996 + "node_modules/@esbuild/android-arm64": {
3997 + "version": "0.28.1",
3998 + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.28.1.tgz",
3999 + "integrity": "sha512-34EGEbCIAgosYz6goLcopX6Mo7NyGv9tfwEM2/7Ce2VcVRk568iSvniGWcUXIy7wEDR1wzolcxcriFVrWYcwBg==",
4000 + "cpu": [
4001 + "arm64"
4002 + ],
4003 + "dev": true,
4004 + "license": "MIT",
4005 + "optional": true,
4006 + "os": [
4007 + "android"
4008 + ],
4009 + "engines": {
4010 + "node": ">=18"
4012 + },
4013 + "node_modules/@esbuild/android-x64": {
4014 + "version": "0.28.1",
4015 + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.28.1.tgz",
4016 + "integrity": "sha512-dbwY7ltSMDWsRatcRpCnES4F+im88OCUgGZjy52shC7GqHRE/cYlxNbB4Z4UpJswpcc4Qxd2oE/ufM0p61IKng==",
4017 + "cpu": [
4018 + "x64"
4019 + ],
4020 + "dev": true,
4021 + "license": "MIT",
4022 + "optional": true,
4023 + "os": [
4024 + "android"
4025 + ],
4026 + "engines": {
4027 + "node": ">=18"
4029 + },
4030 + "node_modules/@esbuild/darwin-arm64": {
4031 + "version": "0.28.1",
4032 + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.28.1.tgz",
4033 + "integrity": "sha512-TZbWkQY7kvTAXbXUT7uVACR5cMHsDiSz9z7ZKAX/RTq/WJEk3QyRr0wZpNhBDX+/0CtdqUIJlOiodQcta6tY3Q==",
4034 + "cpu": [
4035 + "arm64"
4036 + ],
4037 + "dev": true,
4038 + "license": "MIT",
4039 + "optional": true,
4040 + "os": [
4041 + "darwin"
4042 + ],
4043 + "engines": {
4044 + "node": ">=18"
4046 + },
4047 + "node_modules/@esbuild/darwin-x64": {
4048 + "version": "0.28.1",
4049 + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.28.1.tgz",
4050 + "integrity": "sha512-zfdzgK9ACBNZLI/CyHTOx81SyNbM6YXn7rxSgX97VjyiPl9W1i4Ka4fgKECEoFCKGpvBj5qArWIGgQjOwkgskQ==",
4051 + "cpu": [
4052 + "x64"
4053 + ],
4054 + "dev": true,
4055 + "license": "MIT",
4056 + "optional": true,
4057 + "os": [
4058 + "darwin"
4059 + ],
4060 + "engines": {
4061 + "node": ">=18"
4063 + },
4064 + "node_modules/@esbuild/freebsd-arm64": {
4065 + "version": "0.28.1",
4066 + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.28.1.tgz",
4067 + "integrity": "sha512-wG2EA8ENdEI0qhkSZMjfqrdY+ziCYCPMmtZjjIwOmXFjmyzEHn+UUxk5of+SYsjtfs3VpnlC7QLzSI5hY/rOAw==",
4068 + "cpu": [
4069 + "arm64"
4070 + ],
4071 + "dev": true,
4072 + "license": "MIT",
4073 + "optional": true,
4074 + "os": [
4075 + "freebsd"
4076 + ],
4077 + "engines": {
4078 + "node": ">=18"
4080 + },
4081 + "node_modules/@esbuild/freebsd-x64": {
4082 + "version": "0.28.1",
4083 + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.28.1.tgz",
4084 + "integrity": "sha512-i7dZ9vQgnvSCzi/rYCXNgtF/U+eKZNJBzu3eTQbRgHnM7tNSizLOkRFAl3qzVc/Op/u5YkHHa4pf/3DOYHthLQ==",
4085 + "cpu": [
4086 + "x64"
4087 + ],
4088 + "dev": true,
4089 + "license": "MIT",
4090 + "optional": true,
4091 + "os": [
4092 + "freebsd"
4093 + ],
4094 + "engines": {
4095 + "node": ">=18"
4097 + },
4098 + "node_modules/@esbuild/linux-arm": {
4099 + "version": "0.28.1",
4100 + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.28.1.tgz",
4101 + "integrity": "sha512-qVXBOHQS+d5Y722GwJzJUtOLlX7km3CraOaGormF1pDtPd2C/l1SHRPgjLunLGe51Sh5YYWKMFDyV4SxgMQYTQ==",
4102 + "cpu": [
4103 + "arm"
4104 + ],
4105 + "dev": true,
4106 + "license": "MIT",
4107 + "optional": true,
4108 + "os": [
4109 + "linux"
4110 + ],
4111 + "engines": {
4112 + "node": ">=18"
4114 + },
4115 + "node_modules/@esbuild/linux-arm64": {
4116 + "version": "0.28.1",
4117 + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.28.1.tgz",
4118 + "integrity": "sha512-yHs+0uc8+nvEAfAfxrWQKK5peSNzBc4PegcMO0EJ2hT71uA7vB8Ihg2e77R2P7SG5uYjPbHlLLmve4LLLRCf0g==",
4119 + "cpu": [
4120 + "arm64"
4121 + ],
4122 + "dev": true,
4123 + "license": "MIT",
4124 + "optional": true,
4125 + "os": [
4126 + "linux"
4127 + ],
4128 + "engines": {
4129 + "node": ">=18"
4131 + },
4132 + "node_modules/@esbuild/linux-ia32": {
4133 + "version": "0.28.1",
4134 + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.28.1.tgz",
4135 + "integrity": "sha512-d1z4ZuP0ajrfz/FhGT4vv278rX8KnPPJx8i5+AtK7TYbx9Le9F1hyzurZpkEyjkGa9dUGhQow4C1NmeGvqxN2w==",
4136 + "cpu": [
4137 + "ia32"
4138 + ],
4139 + "dev": true,
4140 + "license": "MIT",
4141 + "optional": true,
4142 + "os": [
4143 + "linux"
4144 + ],
4145 + "engines": {
4146 + "node": ">=18"
4148 + },
4149 + "node_modules/@esbuild/linux-loong64": {
4150 + "version": "0.28.1",
4151 + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.28.1.tgz",
4152 + "integrity": "sha512-M5sRjUVZrkm1OAPR3dlOYzNmN+loZKGVi1VUQGrwuqLcbR6qeAz+famMhjASeH3YVKvZz+zT1jlh/keC3Rj/lg==",
4153 + "cpu": [
4154 + "loong64"
4155 + ],
4156 + "dev": true,
4157 + "license": "MIT",
4158 + "optional": true,
4159 + "os": [
4160 + "linux"
4161 + ],
4162 + "engines": {
4163 + "node": ">=18"
4165 + },
4166 + "node_modules/@esbuild/linux-mips64el": {
4167 + "version": "0.28.1",
4168 + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.28.1.tgz",
4169 + "integrity": "sha512-mRObBZeHh2OxcBFPWE/FjylkRgZdYuiTR3vaTozquCGOH14iP9oN4x4Ge81CoIDYQrXmIxpFumJBu5MtZpnQJQ==",
4170 + "cpu": [
4171 + "mips64el"
4172 + ],
4173 + "dev": true,
4174 + "license": "MIT",
4175 + "optional": true,
4176 + "os": [
4177 + "linux"
4178 + ],
4179 + "engines": {
4180 + "node": ">=18"
4182 + },
4183 + "node_modules/@esbuild/linux-ppc64": {
4184 + "version": "0.28.1",
4185 + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.28.1.tgz",
4186 + "integrity": "sha512-slScBsMAb3GFDcdrCgLwZtPYRoH2H/youv10QiZyRjmsP48fznoveWytSgCI/R0ZcUgpc0ZhIUEx6LHts8yrfQ==",
4187 + "cpu": [
4188 + "ppc64"
4189 + ],
4190 + "dev": true,
4191 + "license": "MIT",
4192 + "optional": true,
4193 + "os": [
4194 + "linux"
4195 + ],
4196 + "engines": {
4197 + "node": ">=18"
4199 + },
4200 + "node_modules/@esbuild/linux-riscv64": {
4201 + "version": "0.28.1",
4202 + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.28.1.tgz",
4203 + "integrity": "sha512-kw0owk1o0GFETUJyW0jc0G4Yzs0BHZn0JDZ8JRT088vjJYX777BAs1fDGxAC+q831qOs2DTC96mNsG2opdfyyQ==",
4204 + "cpu": [
4205 + "riscv64"
4206 + ],
4207 + "dev": true,
4208 + "license": "MIT",
4209 + "optional": true,
4210 + "os": [
4211 + "linux"
4212 + ],
4213 + "engines": {
4214 + "node": ">=18"
4216 + },
4217 + "node_modules/@esbuild/linux-s390x": {
4218 + "version": "0.28.1",
4219 + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.28.1.tgz",
4220 + "integrity": "sha512-/lAIjX8aYFRByhh6L5rYtPEDRqa9de/4V/juOXcta5frjvzXO4/sqEtyytse0g3zZFuWu5cDN0MkLz2qRDD2Ag==",
4221 + "cpu": [
4222 + "s390x"
4223 + ],
4224 + "dev": true,
4225 + "license": "MIT",
4226 + "optional": true,
4227 + "os": [
4228 + "linux"
4229 + ],
4230 + "engines": {
4231 + "node": ">=18"
4233 + },
4234 + "node_modules/@esbuild/linux-x64": {
4235 + "version": "0.28.1",
4236 + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.28.1.tgz",
4237 + "integrity": "sha512-u/anNYF2mmVOEDwLtnQ1wOr3EZ9sTNGLWrsYGYwHWzGA3Si84IOkHXlbWTD1NB+9/1lcnweYKO54uhxZydNzfA==",
4238 + "cpu": [
4239 + "x64"
4240 + ],
4241 + "dev": true,
4242 + "license": "MIT",
4243 + "optional": true,
4244 + "os": [
4245 + "linux"
4246 + ],
4247 + "engines": {
4248 + "node": ">=18"
4250 + },
4251 + "node_modules/@esbuild/netbsd-arm64": {
4252 + "version": "0.28.1",
4253 + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.28.1.tgz",
4254 + "integrity": "sha512-oks0DYbLwWMmaakTsCb+zL4E+aHRVLom9IJZOAthMQEPiQmydXHkziYEsGYRx0uNV/IjEKGAV941JzH02pflqw==",
4255 + "cpu": [
4256 + "arm64"
4257 + ],
4258 + "dev": true,
4259 + "license": "MIT",
4260 + "optional": true,
4261 + "os": [
4262 + "netbsd"
4263 + ],
4264 + "engines": {
4265 + "node": ">=18"
4267 + },
4268 + "node_modules/@esbuild/netbsd-x64": {
4269 + "version": "0.28.1",
4270 + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.28.1.tgz",
4271 + "integrity": "sha512-aeL6lAnN89Hz43Mlh1G8ARasbuoYvSITDEx0tHh5b7jJnHcssqgjy9Yx430GDpmCa6OyrKoS0aNRjKundRizGg==",
4272 + "cpu": [
4273 + "x64"
4274 + ],
4275 + "dev": true,
4276 + "license": "MIT",
4277 + "optional": true,
4278 + "os": [
4279 + "netbsd"
4280 + ],
4281 + "engines": {
4282 + "node": ">=18"
4284 + },
4285 + "node_modules/@esbuild/openbsd-arm64": {
4286 + "version": "0.28.1",
4287 + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.28.1.tgz",
4288 + "integrity": "sha512-MEFJe5C3R8pwXdZ5Y21oo6m7ePiS0d9pWucn99O/wvyJZChoIQKrQDxKrGeW8F5+T0okTHesAmDeiHDTIq0V/Q==",
4289 + "cpu": [
4290 + "arm64"
4291 + ],
4292 + "dev": true,
4293 + "license": "MIT",
4294 + "optional": true,
4295 + "os": [
4296 + "openbsd"
4297 + ],
4298 + "engines": {
4299 + "node": ">=18"
4301 + },
4302 + "node_modules/@esbuild/openbsd-x64": {
4303 + "version": "0.28.1",
4304 + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.28.1.tgz",
4305 + "integrity": "sha512-i/ZLIOafE0Z8cI/XANJAixoJL/uRAoS2xOA3rb0xN+KK0K177cMAsQYkzHtBrtMXAKuAc7HGgcWiZ/sRC1Nxgw==",
4306 + "cpu": [
4307 + "x64"
4308 + ],
4309 + "dev": true,
4310 + "license": "MIT",
4311 + "optional": true,
4312 + "os": [
4313 + "openbsd"
4314 + ],
4315 + "engines": {
4316 + "node": ">=18"
4318 + },
4319 + "node_modules/@esbuild/openharmony-arm64": {
4320 + "version": "0.28.1",
4321 + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.28.1.tgz",
4322 + "integrity": "sha512-ge+Z7EXFNt2BO1oAMsVpiQ8EwndV9i1xXerAeTIK7AtPs3bKFXQM7nlRxDSIUIMeueR1CNXxqztLzdNeReKBJg==",
4323 + "cpu": [
4324 + "arm64"
4325 + ],
4326 + "dev": true,
4327 + "license": "MIT",
4328 + "optional": true,
4329 + "os": [
4330 + "openharmony"
4331 + ],
4332 + "engines": {
4333 + "node": ">=18"
4335 + },
4336 + "node_modules/@esbuild/sunos-x64": {
4337 + "version": "0.28.1",
4338 + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.28.1.tgz",
4339 + "integrity": "sha512-BEjgtECkL3vY+SaSQ6nzVfiALUeFxpawyp8Jmf5PtYhf1Ug40N1h/hxlhts+f1FvSvarEigdxS3BlSMI2PJLcQ==",
4340 + "cpu": [
4341 + "x64"
4342 + ],
4343 + "dev": true,
4344 + "license": "MIT",
4345 + "optional": true,
4346 + "os": [
4347 + "sunos"
4348 + ],
4349 + "engines": {
4350 + "node": ">=18"
4352 + },
4353 + "node_modules/@esbuild/win32-arm64": {
4354 + "version": "0.28.1",
4355 + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.28.1.tgz",
4356 + "integrity": "sha512-lCv9eK/H6ZJWbE7bh2nw54CZ9M2nupBxJcTsdk/QQnWkdSjKGuxmmH8/GWrlT1eMmZfn4dGcCjRte397WqfQXA==",
4357 + "cpu": [
4358 + "arm64"
4359 + ],
4360 + "dev": true,
4361 + "license": "MIT",
4362 + "optional": true,
4363 + "os": [
4364 + "win32"
4365 + ],
4366 + "engines": {
4367 + "node": ">=18"
4369 + },
4370 + "node_modules/@esbuild/win32-ia32": {
4371 + "version": "0.28.1",
4372 + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.28.1.tgz",
4373 + "integrity": "sha512-zvb/mB2bSCoJOpoCBgYKKpX6YM6mJBlBUVUtVj41DlZJVEB6/0CKlRYxP5wWl1C1ILiCoAU5wZZ4q1P3qeS6Eg==",
4374 + "cpu": [
4375 + "ia32"
4376 + ],
4377 + "dev": true,
4378 + "license": "MIT",
4379 + "optional": true,
4380 + "os": [
4381 + "win32"
4382 + ],
4383 + "engines": {
4384 + "node": ">=18"
4386 + },
4387 + "node_modules/@esbuild/win32-x64": {
4388 + "version": "0.28.1",
4389 + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.28.1.tgz",
4390 + "integrity": "sha512-bm4Mowrv+GXMlpWX++EcXw/iLyd1o3+bJkC2DkWXYVvgZCqD/bSj9ctZeAMC3cIxgjRVR2Dufaiu4YPxr5gW1A==",
4391 + "cpu": [
4392 + "x64"
4393 + ],
4394 + "dev": true,
4395 + "license": "MIT",
4396 + "optional": true,
4397 + "os": [
4398 + "win32"
4399 + ],
4400 + "engines": {
4401 + "node": ">=18"
4403 + },
3451 4404 "node_modules/@fast-check/vitest": {
3452 4405 "version": "0.4.1",
3453 4406 "resolved": "https://registry.npmjs.org/@fast-check/vitest/-/vitest-0.4.1.tgz",
4114 5067 "version": "1.0.1",
4115 5068 "resolved": "https://registry.npmjs.org/@stablelib/base64/-/base64-1.0.1.tgz",
4116 5069 "integrity": "sha512-1bnPQqSxSuc3Ii6MhBysoWCg58j97aUjuCSZrGSmDxNqtytIi0k8utUenAwTZN4V5mXXYGsVUI9zeBqy+jBOSQ==",
4117 - "license": "MIT",
4118 - "peer": true
5070 + "license": "MIT"
4120 5072 "node_modules/@standard-schema/spec": {
4121 5073 "version": "1.1.0",
5793 6745 "tests/types"
6748 + "node_modules/esbuild": {
6749 + "version": "0.28.1",
6750 + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.28.1.tgz",
6751 + "integrity": "sha512-HrJrvZv5ayxBzPfwphOoNzkzOIIlifzk0KJrGK2c8R4+LKpMtpYLQeUdjnwjWv/LZlkH2laZk+4w78pi99D4Vw==",
6752 + "dev": true,
6753 + "hasInstallScript": true,
6754 + "license": "MIT",
6755 + "bin": {
6756 + "esbuild": "bin/esbuild"
6757 + },
6758 + "engines": {
6759 + "node": ">=18"
6760 + },
6761 + "optionalDependencies": {
6762 + "@esbuild/aix-ppc64": "0.28.1",
6763 + "@esbuild/android-arm": "0.28.1",
6764 + "@esbuild/android-arm64": "0.28.1",
6765 + "@esbuild/android-x64": "0.28.1",
6766 + "@esbuild/darwin-arm64": "0.28.1",
6767 + "@esbuild/darwin-x64": "0.28.1",
6768 + "@esbuild/freebsd-arm64": "0.28.1",
6769 + "@esbuild/freebsd-x64": "0.28.1",
6770 + "@esbuild/linux-arm": "0.28.1",
6771 + "@esbuild/linux-arm64": "0.28.1",
6772 + "@esbuild/linux-ia32": "0.28.1",
6773 + "@esbuild/linux-loong64": "0.28.1",
6774 + "@esbuild/linux-mips64el": "0.28.1",
6775 + "@esbuild/linux-ppc64": "0.28.1",
6776 + "@esbuild/linux-riscv64": "0.28.1",
6777 + "@esbuild/linux-s390x": "0.28.1",
6778 + "@esbuild/linux-x64": "0.28.1",
6779 + "@esbuild/netbsd-arm64": "0.28.1",
6780 + "@esbuild/netbsd-x64": "0.28.1",
6781 + "@esbuild/openbsd-arm64": "0.28.1",
6782 + "@esbuild/openbsd-x64": "0.28.1",
6783 + "@esbuild/openharmony-arm64": "0.28.1",
6784 + "@esbuild/sunos-x64": "0.28.1",
6785 + "@esbuild/win32-arm64": "0.28.1",
6786 + "@esbuild/win32-ia32": "0.28.1",
6787 + "@esbuild/win32-x64": "0.28.1"
6789 + },
5796 6790 "node_modules/escalade": {
5797 6791 "version": "3.2.0",
5798 6792 "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",
5981 6975 "version": "1.3.0",
5982 6976 "resolved": "https://registry.npmjs.org/fast-sha256/-/fast-sha256-1.3.0.tgz",
5983 6977 "integrity": "sha512-n11RGP/lrWEFI/bWdygLxhI+pVeo1ZYIVwvvPkW7azl/rOy+F3HYRZ2K5zeE9mmkhQppyv9sQFx0JM9UabnpPQ==",
5984 - "license": "Unlicense",
5985 - "peer": true
6978 + "license": "Unlicense"
5987 6980 "node_modules/fast-uri": {
5988 6981 "version": "3.1.5",
9403 10396 "resolved": "https://registry.npmjs.org/standardwebhooks/-/standardwebhooks-1.0.0.tgz",
9404 10397 "integrity": "sha512-BbHGOQK9olHPMvQNHWul6MYlrRTAOKn03rOe4A8O3CLWhNf4YHBqq2HJKKC+sfqpxiBY52pNeesD6jIiLDz8jg==",
9405 10398 "license": "MIT",
9406 - "peer": true,
9407 10399 "dependencies": {
9408 10400 "@stablelib/base64": "^1.0.0",
9409 10401 "fast-sha256": "^1.3.0"

package.json

Modified
14 14 "typecheck": "tsc --noEmit"
16 16 "devDependencies": {
17 - "@earendil-works/pi-agent-core": "0.84.3",
18 - "@earendil-works/pi-ai": "0.84.3",
19 - "@earendil-works/pi-client": "0.84.3",
20 - "@earendil-works/pi-coding-agent": "0.84.3",
21 - "@earendil-works/pi-protocol": "0.84.3",
22 - "@earendil-works/pi-telemetry": "0.84.3",
23 - "@earendil-works/pi-tui": "0.84.3",
17 + "@earendil-works/pi-agent-core": "0.85.0",
18 + "@earendil-works/pi-ai": "0.85.0",
19 + "@earendil-works/pi-client": "0.85.0",
20 + "@earendil-works/pi-coding-agent": "0.85.0",
21 + "@earendil-works/pi-protocol": "0.85.0",
22 + "@earendil-works/pi-server": "0.85.0",
23 + "@earendil-works/pi-telemetry": "0.85.0",
24 + "@earendil-works/pi-tui": "0.85.0",
24 25 "@fast-check/vitest": "^0.4.1",
25 26 "@playwright/test": "^1.61.0",
26 27 "@vitest/coverage-istanbul": "^4.1.9",

scripts/extensions.mjs

Modified
22 22 } from "./lib/common.mjs";
24 24 export const EXT_ROOT = join(ROOT, "extensions");
25 -export const DRIVER_ROOT = join(ROOT, "drivers");
26 25 export const PI_PEERS = new Set([
27 26 "@earendil-works/pi-ai",
28 27 "@earendil-works/pi-agent-core",
150 149 - If README.md exists: update it; preserve useful manual text; refresh stale facts.
151 150 - If README.md is missing: create it.
152 -- Preserve existing demo blocks exactly when present:
153 - <!-- demo:NAME:start --> ... <!-- demo:NAME:end -->.
154 151 - Do not invent commands, tools, settings, env vars, or install paths.
156 153 Voice:
174 171 ## Behavior
175 172 Short operational notes from source.
177 -## Demo
178 -Only include when an existing demo block is provided in current README.
181 176 function format(template, vars) {
718 713 if (errors.length)
719 714 throw new Error(`README generation failed: ${errors.join("; ")}`);
721 -async function loadDriver(path) {
722 - return import(`${pathToFileURL(path).href}?v=${Date.now()}`);
724 -async function driversFor(exts) {
725 - const selected = new Set(exts.map((e) => e.split(/[\\/]/).at(-1))),
726 - drivers = [];
727 - for (const ent of readdirSync(DRIVER_ROOT)
728 - .filter((n) => n.endsWith(".mjs") && !n.startsWith("__"))
729 - .sort()) {
730 - const mod = await loadDriver(join(DRIVER_ROOT, ent));
731 - const targets = mod.targets ?? [];
732 - if (Array.isArray(targets) && targets.some((t) => selected.has(t)))
733 - drivers.push([
734 - ent.replace(/\.mjs$/, ""),
735 - targets.filter((t) => typeof t === "string"),
736 - ]);
738 - return drivers;
740 -function demoInstalled(driver, targets) {
741 - return targets.every(
742 - (t) =>
743 - existsSync(join(EXT_ROOT, t, "README.md")) &&
744 - existsSync(join(EXT_ROOT, t, "assets", `${driver}.gif`)),
745 - );
747 -async function installedDriversFor(exts) {
748 - return (await driversFor(exts)).filter(([d, t]) => demoInstalled(d, t));
750 -async function demoChangedSinceRelease(driver, targets) {
751 - const mod = await loadDriver(join(DRIVER_ROOT, `${driver}.mjs`));
752 - const exts = (mod.extensions ?? []).filter((n) => typeof n === "string");
753 - return anyChangedSinceRelease([
754 - join(DRIVER_ROOT, `${driver}.mjs`),
755 - ...[...new Set([...targets, ...exts])].sort().map((n) => join(EXT_ROOT, n)),
756 - ]);
758 -async function demosToUpdate(drivers) {
759 - const out = [];
760 - for (const item of drivers)
761 - if (await demoChangedSinceRelease(item[0], item[1])) out.push(item);
762 - return out;
764 -async function updateDemoDrivers(drivers) {
765 - const tag = latestReleaseTag(),
766 - selected = await demosToUpdate(drivers),
767 - skipped = drivers
768 - .map(([d]) => d)
769 - .filter((d) => !selected.some(([s]) => s === d))
770 - .sort();
771 - for (const d of skipped)
772 - console.log(`OK demo ${d} skipped (unchanged since ${tag})`);
773 - if (!selected.length) {
774 - console.log("OK demo none");
775 - return [];
777 - const touched = new Set();
778 - for (const [driver, targets] of selected) {
779 - run("node", ["scripts/demo.mjs", driver], { cwd: ROOT });
780 - for (const t of targets) touched.add(join(EXT_ROOT, t));
781 - console.log(`OK demo ${driver}`);
783 - return [...touched].filter(existsSync).sort();
785 716 function changedPaths() {
786 717 const out = `${gitCapture(["diff", "--name-only"])}\n${gitCapture(["diff", "--cached", "--name-only"])}`;
787 718 return [...new Set(out.split(/\r?\n/).filter(Boolean))].sort();
792 723 return path === r || path.startsWith(`${r}/`);
795 -function assertOnlyReleaseChanges(pathsToAdd) {
726 +export function assertOnlyReleaseChanges(pathsToAdd) {
796 727 const roots = pathsToAdd.filter(existsSync),
797 728 extra = changedPaths().filter((p) => !allowedChange(p, roots));
798 729 if (extra.length)
843 774 return tag;
845 -function releasePaths(dirs) {
776 +export function releasePaths(dirs) {
846 777 return [
847 778 ...new Set([
848 779 join(ROOT, "README.md"),
908 839 return 0;
911 -async function main(argv = process.argv.slice(2)) {
842 +export async function main(argv = process.argv.slice(2)) {
912 843 const [cmd, ...rest] = argv;
913 844 if (!cmd) throw new Error("missing command");
914 845 const takeModel = (args) => {
953 884 console.log(`\n${generateExtReadme(ext, model).trimEnd()}`);
954 885 return 0;
956 - if (cmd === "demo") {
957 - const known = Object.fromEntries(await driversFor(extDirs([])));
958 - const names = rest.length ? rest : Object.keys(known);
959 - const missing = names.filter((n) => !(n in known));
960 - if (missing.length)
961 - throw new Error(`unknown demo driver(s): ${missing.join(", ")}`);
962 - await updateDemoDrivers(names.map((n) => [n, known[n]]));
963 - return 0;
965 887 if (cmd === "release-plan") {
966 888 const [model, args] = takeModel(rest);
967 - const dirs = extDirs(args),
968 - demos = await demosToUpdate(await installedDriversFor(dirs));
889 + const dirs = extDirs(args);
969 890 console.log("RELEASE PLAN");
970 891 console.log(`version: v${rootVersion()}`);
971 - console.log(
972 - `demos: ${demos.length ? demos.map(([n]) => n).join(", ") : "none"}`,
973 - );
974 892 console.log("README:");
975 893 console.log(generateReadme(model).trimEnd());
976 894 console.log("repo changelog:");

scripts/extensions.test.ts

Added
new file mode 100644
1 +import { join } from "node:path";
2 +import { expect, it } from "vitest";
3 +import { releasePaths } from "./extensions.mjs";
4 +import { ROOT } from "./lib/common.mjs";
6 +it("limits release artifacts to root metadata and selected extension documentation", () => {
7 + const extension = join(ROOT, "extensions/footer");
8 + expect(releasePaths([extension, extension])).toEqual(
9 + [
10 + join(ROOT, "README.md"),
11 + join(ROOT, "CHANGELOG.md"),
12 + join(ROOT, "package.json"),
13 + join(ROOT, "package-lock.json"),
14 + join(extension, "README.md"),
15 + join(extension, "CHANGELOG.md"),
16 + ].sort(),
17 + );
18 +});

vitest.config.ts

Modified
6 6 "skills/**/*.test.ts",
8 8 const exclude = ["**/__e2e__/**", "**/node_modules/**"];
9 +const validatorTests = [
10 + "extensions/ultra/__tests__/dynamic-extensions.test.ts",
11 +];
10 13 export default defineConfig({
11 14 test: {
18 21 test: {
19 22 name: "fast",
20 23 include,
21 - exclude: [...exclude, "extensions/web/**"],
24 + exclude: [...exclude, "extensions/web/**", ...validatorTests],
22 25 isolate: false,
23 26 // Three fork workers avoid CPU/process contention.
24 27 maxWorkers: 3,
34 37 maxWorkers: 1,
40 + {
41 + extends: true,
42 + test: {
43 + name: "validator",
44 + include: validatorTests,
45 + exclude,
46 + isolate: true,
47 + maxWorkers: 1,
48 + // Real child validators retain their production watchdog without
49 + // competing with the other projects' native subprocess tests.
50 + sequence: { groupOrder: 1 },
51 + },
52 + },