@zew1me/pi-clear 0.1.1-alpha.210 → 0.1.1-alpha.232
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/dist/ATTRIBUTION.md +70 -123
- package/package.json +1 -1
package/dist/ATTRIBUTION.md
CHANGED
|
@@ -1,5 +1,75 @@
|
|
|
1
1
|
# Attribution
|
|
2
2
|
|
|
3
|
+
## Model router (`extensions/router`)
|
|
4
|
+
|
|
5
|
+
This section supersedes, for the router only, the "router … intentionally not adopted" notes in the subagent context
|
|
6
|
+
mode and npm packaging sections below: a simplified router is now adopted from the sources listed here.
|
|
7
|
+
|
|
8
|
+
- Source: [`nigel-upstart/pi-buildout`](https://github.com/nigel-upstart/pi-buildout) `extensions/router/` and
|
|
9
|
+
`specs/routing-layer/`
|
|
10
|
+
- Revision reviewed:
|
|
11
|
+
[`1453faf`](https://github.com/nigel-upstart/pi-buildout/commit/1453fafc11158421bb5ad46e91f1ff33cd662b41)
|
|
12
|
+
- License: MIT (Copyright 2026 Nigel Stuke); the root `LICENSE` preserves the notice.
|
|
13
|
+
|
|
14
|
+
Copied and modified code: the continuation, discontinuity and same-task-operation regexes and the plan-then-implement
|
|
15
|
+
rule of `deterministicBoundaryGate` (`core/lease.ts`); the provider quota-exhaustion error pattern (`core/fallback.ts`);
|
|
16
|
+
the significant-reusable-cache threshold and the "cache resists a marginal task switch" rule; and the bounded,
|
|
17
|
+
newest-first session synopsis (`core/synopsis.ts`, reduced to goals, outcomes, files and failed tools). Adapted ideas:
|
|
18
|
+
an LLM classifier that only extracts task features while deterministic code maps them to an archetype and route;
|
|
19
|
+
per-task leases with hard boundaries; a fresh-task classifier failure keeping the current route; the reconciliation rule
|
|
20
|
+
that a switch must beat its cache-switch penalty; shadow/active modes with a `/route` command; JSONL telemetry without
|
|
21
|
+
prompt text that drops to shadow on write failure; and a Pi contract canary test. Not adopted: the twenty-field feature
|
|
22
|
+
schema and twelve archetypes (reduced to seven features and six archetypes), code-defined model policies and
|
|
23
|
+
evidence/telemetry-learned ranking, secondary cross-vendor classifier reconciliation, reviewer sessions, plan
|
|
24
|
+
validators, the safety-policy layer, prompt profiles and system-prompt compilation, xstate, OpenTelemetry spans,
|
|
25
|
+
endpoint health probes, the `off` mode, and private packaging.
|
|
26
|
+
|
|
27
|
+
- Source: [`alexei-led/pi-model-router`](https://github.com/alexei-led/pi-model-router)
|
|
28
|
+
- Revision reviewed:
|
|
29
|
+
[`04a24b0`](https://github.com/alexei-led/pi-model-router/commit/04a24b09c3041d35cc805ecf819a06843b6c120f)
|
|
30
|
+
- License: MIT
|
|
31
|
+
|
|
32
|
+
Conceptual inspiration only, no code copied: explicit capability tiers bound to ordered fallback lists; the switch-cost
|
|
33
|
+
horizon comparison (stay warm versus one cold request plus warm requests on the target); effort-only changes keeping the
|
|
34
|
+
prompt cache; quota-group holds driven by `retry-after`; repeated-failure escalation keyed by a normalized error
|
|
35
|
+
signature after an intervening edit. Not adopted: the custom provider wrapper, the tier × activity × phase matrix,
|
|
36
|
+
advisor probability-mass selection, per-request background advice, session budget caps and inline prompt keywords.
|
|
37
|
+
|
|
38
|
+
- Source: [`mraghakhani/pi-triage-router`](https://github.com/mraghakhani/pi-triage-router)
|
|
39
|
+
- Revision reviewed:
|
|
40
|
+
[`7e93e36`](https://github.com/mraghakhani/pi-triage-router/commit/7e93e36af34bf1e5414a32a2aac8d053307cf976)
|
|
41
|
+
- License: MIT
|
|
42
|
+
|
|
43
|
+
Conceptual inspiration only, no code copied: routing through Pi's virtual-model `route()` hook, one pure decision
|
|
44
|
+
function returning a reason code, sending `direct` (compaction) requests to the cheapest model, and context-window
|
|
45
|
+
eligibility. Not adopted: the local ONNX classifier, benchmark/price scoring, OpenRouter price caches and the dashboard.
|
|
46
|
+
|
|
47
|
+
- Source: [`green-dalii/pi-shift-router`](https://github.com/green-dalii/pi-shift-router)
|
|
48
|
+
- Revision reviewed:
|
|
49
|
+
[`ee8b627`](https://github.com/green-dalii/pi-shift-router/commit/ee8b627eafb045e080814a04e068c97ab52b240a)
|
|
50
|
+
- License: MIT
|
|
51
|
+
|
|
52
|
+
Conceptual inspiration only, no code copied: the expected-value escalation threshold θ = 1/R; treating low-confidence or
|
|
53
|
+
missing classifier answers as a hold; asymmetric stickiness (up immediately, down only after consecutive decisive lower
|
|
54
|
+
decisions); blocking downgrades while the prompt cache is warm; and exponential cooldowns (×4) cleared by a successful
|
|
55
|
+
response, starting 4xx failures further up the ladder. Changed here: the cap is one week instead of six hours, because
|
|
56
|
+
providers enforce weekly limits. Not adopted: the eco/default/sport presets (R is fixed at 3), event-driven `setModel`
|
|
57
|
+
switching, the two-tier fast/smart model, orchestration mode, acceptance audits, savings reports and session profiles.
|
|
58
|
+
|
|
59
|
+
- Pi virtual models and classifiers: `@earendil-works/pi-coding-agent` 1.6.0 `docs/virtual-models.md` and
|
|
60
|
+
`examples/extensions/jev-router.ts` (MIT) informed the `route()` reason handling; no example code was copied.
|
|
61
|
+
- OpenAI Decisions API guide: <https://developers.openai.com/api/docs/guides/decisions> informed the classifier chain.
|
|
62
|
+
|
|
63
|
+
## Artificial Analysis credential check
|
|
64
|
+
|
|
65
|
+
- Source: [`nigel-upstart/pi-buildout`](https://github.com/nigel-upstart/pi-buildout), MIT.
|
|
66
|
+
- Revision reviewed:
|
|
67
|
+
[`302ead7`](https://github.com/nigel-upstart/pi-buildout/commit/302ead7b293367753e90e8e9d60d59cf2d8dfc93).
|
|
68
|
+
|
|
69
|
+
The fork's standalone router evidence scripts were reviewed for CLI conventions only. No fork code, endpoint probes,
|
|
70
|
+
benchmark data, or evidence-generation logic was adopted. The credential check uses this repository's existing Node CLI
|
|
71
|
+
conventions and does not call [Artificial Analysis](https://artificialanalysis.ai).
|
|
72
|
+
|
|
3
73
|
## Published-package skills smoke tests
|
|
4
74
|
|
|
5
75
|
- Source: [`nigel-upstart/pi-buildout`](https://github.com/nigel-upstart/pi-buildout)
|
|
@@ -188,87 +258,6 @@ scheduling, event-bus RPC, persistent memory, worktree isolation, skill preloadi
|
|
|
188
258
|
Code-compatible surface. The signaling and completion-delivery backports above later adopted a limited event-bus RPC
|
|
189
259
|
subset and proactive notifications.
|
|
190
260
|
|
|
191
|
-
## Pi 1.0.3 `/skills` runtime patch (retired)
|
|
192
|
-
|
|
193
|
-
- Source: `@earendil-works/pi-coding-agent@1.0.3`
|
|
194
|
-
- Canonical repository: <https://github.com/earendil-works/pi> (`packages/coding-agent`)
|
|
195
|
-
- Upstream revision reviewed: `d78dc83d633229d12f8b79631384c4c2717c399f` (`v1.0.3`), from npm `gitHead`
|
|
196
|
-
- Source archive: `pi-1.0.3-source.tar.gz`, verified against the release's published `SHA256SUMS`
|
|
197
|
-
- License declared by the package: MIT
|
|
198
|
-
|
|
199
|
-
[`pi-overlay/versions/1.0.3/integration.patch`][retired-1.0.3-integration] adapts the existing opt-in skills seam to the
|
|
200
|
-
MIT-licensed 1.0.3 TypeScript sources and documentation. The generated `skills.patch` modifies the published resource
|
|
201
|
-
loader, slash-command list, CLI and interactive entry points, and `docs/skills.md`; it adds this repository's original
|
|
202
|
-
skill-management modules. The patch reuses Pi's package/resource discovery, project-trust, and `proper-lockfile` APIs,
|
|
203
|
-
including the adapted lock pattern described under the TypeScript overlay below. It keeps discovered skills
|
|
204
|
-
catalog-only, enables explicit global, repository, and session activation, preserves explicit `--skill` paths when
|
|
205
|
-
`--no-skills` is used, and leaves Pi's unrelated extensions, prompts, themes, packages, providers, trust behavior, and
|
|
206
|
-
bundled chunks unchanged. It does not copy Pi's automatic skill-loading behavior or its runtime implementation into the
|
|
207
|
-
overlay.
|
|
208
|
-
|
|
209
|
-
The `cli-runtime.js` and `rpc-entry.js` replacements are original wrappers written for this repository, not derived from
|
|
210
|
-
upstream's bundle output; Pi's published `dist/bundle/cli.js` compile-cache loader remains unchanged and is pinned by
|
|
211
|
-
checksum. Source inputs are fetched from the 1.0.3 release archive and npm tarball with committed checksums; no complete
|
|
212
|
-
Pi source checkout is committed.
|
|
213
|
-
|
|
214
|
-
## Pi 1.0.4 `/skills` runtime patch (retired)
|
|
215
|
-
|
|
216
|
-
- Source: `@earendil-works/pi-coding-agent@1.0.4`
|
|
217
|
-
- Canonical repository: <https://github.com/earendil-works/pi> (`packages/coding-agent`)
|
|
218
|
-
- Upstream revision reviewed: `7c10bd4337495ee613f2224843ecdf349b80d1df` (`v1.0.4`), from npm `gitHead`
|
|
219
|
-
- Source archive: `pi-1.0.4-source.tar.gz`, verified against the release's published `SHA256SUMS`
|
|
220
|
-
- License declared by the package: MIT
|
|
221
|
-
|
|
222
|
-
The retired 1.0.4 integration patch adapted the opt-in skills seam to the MIT-licensed TypeScript sources and
|
|
223
|
-
documentation. Its generated patch modified Pi's published resource loader, slash-command list, CLI and interactive
|
|
224
|
-
entry points, and skill documentation. It adds this repository's original skill-management modules and reuses Pi's
|
|
225
|
-
package/resource discovery, project-trust, and `proper-lockfile` APIs. It preserves explicit `--skill` with
|
|
226
|
-
`--no-skills`, makes discovered skills catalog-only until activated, and leaves unrelated extensions, prompts, themes,
|
|
227
|
-
packages, providers, trust behavior, and bundled chunks unchanged. Pi's automatic loading of all discovered skills and
|
|
228
|
-
its skill implementation were not copied into the overlay. The original `cli-runtime.js` and `rpc-entry.js` wrappers are
|
|
229
|
-
reused from the earlier patch; the published `dist/bundle/cli.js` loader is unchanged and checksum-pinned. Inputs come
|
|
230
|
-
from the verified release archive and npm tarball; no complete Pi source checkout is committed.
|
|
231
|
-
|
|
232
|
-
## Pi 1.1.0 `/skills` runtime patch (retired)
|
|
233
|
-
|
|
234
|
-
- Source: `@earendil-works/pi-coding-agent@1.1.0`
|
|
235
|
-
- Canonical repository: <https://github.com/earendil-works/pi> (`packages/coding-agent`)
|
|
236
|
-
- Upstream revision reviewed: `abe508e1b89912adde45528136c3221eb69acdd7` (`v1.1.0`)
|
|
237
|
-
- Source archive: `pi-1.1.0-source.tar.gz`, verified against the release's published `SHA256SUMS`
|
|
238
|
-
- License declared by the package: MIT
|
|
239
|
-
|
|
240
|
-
[`pi-overlay/versions/1.1.0/integration.patch`][retired-1.1.0-integration] adapts the opt-in skills seam to Pi 1.1.0's
|
|
241
|
-
MIT-licensed TypeScript sources and documentation. The generated `skills.patch` modifies the published resource loader,
|
|
242
|
-
slash-command list, CLI and interactive entry points, and skill documentation. It adds this repository's original
|
|
243
|
-
skill-management modules and reuses Pi's package/resource discovery, project-trust, and `proper-lockfile` APIs. It keeps
|
|
244
|
-
catalog skills inactive until explicitly enabled, preserves explicit `--skill` paths with `--no-skills`, and does not
|
|
245
|
-
copy Pi's automatic skill loading or its skill implementation. The original `cli-runtime.js` wrapper reuses Pi's
|
|
246
|
-
`setupCli()` path; the original `rpc-entry.js` wrapper also preserves Pi 1.1.0's process markers and HTTP-dispatcher
|
|
247
|
-
setup. The published `dist/bundle/cli.js` loader remains unchanged and checksum-pinned. No complete Pi source checkout
|
|
248
|
-
is committed.
|
|
249
|
-
|
|
250
|
-
## Pi 1.3.0 `/skills` runtime patch (retired)
|
|
251
|
-
|
|
252
|
-
- Source: `@earendil-works/pi-coding-agent@1.3.0`
|
|
253
|
-
- Canonical repository: <https://github.com/earendil-works/pi> (`packages/coding-agent`)
|
|
254
|
-
- Upstream revision reviewed: `71023aec1546d6d677a65669c5665c0927ce0dd0` (`v1.3.0`), the commit the lightweight release
|
|
255
|
-
tag points to; the npm registry publishes no `gitHead` for this release, and the commit is unsigned
|
|
256
|
-
- Source archive: `pi-1.3.0-source.tar.gz`, verified against the release's published `SHA256SUMS`
|
|
257
|
-
- npm tarball: `pi-coding-agent-1.3.0.tgz`, pinned by SHA-256 and registry integrity
|
|
258
|
-
- License declared by the package: MIT
|
|
259
|
-
|
|
260
|
-
[`pi-overlay/versions/1.3.0/integration.patch`][retired-1.3.0-integration] is the 1.1.0 seam rebased onto Pi 1.3.0's
|
|
261
|
-
MIT-licensed TypeScript sources and documentation: the added and removed lines are unchanged, and only hunk positions
|
|
262
|
-
and blob indexes differ. The generated `skills.patch` modifies the published resource loader, slash-command list, CLI
|
|
263
|
-
and interactive entry points, and skill documentation, within the same 48-line seam budget. It adds this repository's
|
|
264
|
-
original skill-management modules, which compile byte-identically to the 1.1.0 output, and reuses Pi's package/resource
|
|
265
|
-
discovery, project-trust, and `proper-lockfile` APIs. It keeps catalog skills inactive until explicitly enabled,
|
|
266
|
-
preserves explicit `--skill` paths with `--no-skills`, and does not copy Pi's automatic skill loading or its skill
|
|
267
|
-
implementation. The original `cli-runtime.js` and `rpc-entry.js` wrappers are reused byte-for-byte from 1.1.0 because Pi
|
|
268
|
-
1.3.0's `src/cli.ts`, `src/rpc-entry.ts`, and `src/cli/setup.ts` are unchanged. The published `dist/bundle/cli.js`
|
|
269
|
-
loader remains unchanged and checksum-pinned. Upstream changes elsewhere in 1.3.0, including those near the seams, were
|
|
270
|
-
not adopted. No complete Pi source checkout is committed.
|
|
271
|
-
|
|
272
261
|
## Pi 1.6.0 `/skills` runtime patch
|
|
273
262
|
|
|
274
263
|
- Source: `@earendil-works/pi-coding-agent@1.6.0` (MIT)
|
|
@@ -280,39 +269,6 @@ TypeScript sources and skill documentation, including the changed model-resolver
|
|
|
280
269
|
this repository's shared skill management and CLI/RPC wrappers. The generated patch contains edits to upstream runtime
|
|
281
270
|
files and docs; it does not vendor the upstream tree, adopt Pi's auto-loading policy, or rebuild its bundled chunks.
|
|
282
271
|
|
|
283
|
-
## Pi 1.5.2 `/skills` runtime patch (retired)
|
|
284
|
-
|
|
285
|
-
- Source: [nigel-upstart/pi-buildout](https://github.com/nigel-upstart/pi-buildout), commit
|
|
286
|
-
`0704169310246b2b4fe8144f94ad4314c4a382e3`, MIT.
|
|
287
|
-
- Upstream Pi: [earendil-works/pi](https://github.com/earendil-works/pi), release `v1.5.2`, commit
|
|
288
|
-
`b4afdddf44e059c67ccf5097e5317d913521b470`, MIT.
|
|
289
|
-
|
|
290
|
-
The 1.5.2 integration seam, entrypoint wrappers, and pinned build inputs are adapted from the downstream patch, which
|
|
291
|
-
modifies Pi source and documentation. The generated runtime patch uses this repository's shared overlay and portable
|
|
292
|
-
path behavior rather than copying downstream's generated skill implementation. Other downstream changes and a complete
|
|
293
|
-
Pi source checkout were not adopted.
|
|
294
|
-
|
|
295
|
-
## Pi 1.4.0 `/skills` runtime patch (retired)
|
|
296
|
-
|
|
297
|
-
- Source: `@earendil-works/pi-coding-agent@1.4.0`
|
|
298
|
-
- Canonical repository: <https://github.com/earendil-works/pi> (`packages/coding-agent`)
|
|
299
|
-
- Upstream revision reviewed: `4a080252f06caf63a525d7873c5d94d3c23887e0` (`v1.4.0`), the commit referenced by the
|
|
300
|
-
lightweight release tag; the npm registry publishes no `gitHead`, and GitHub reports the commit as unsigned
|
|
301
|
-
- Source archive: `pi-1.4.0-source.tar.gz`, verified against the release's published `SHA256SUMS`
|
|
302
|
-
- npm tarball: `pi-coding-agent-1.4.0.tgz`, pinned by SHA-256 and registry integrity
|
|
303
|
-
- License declared by the package: MIT
|
|
304
|
-
|
|
305
|
-
[`pi-overlay/versions/1.4.0/integration.patch`][retired-1.4.0-integration] adapts the existing seam against Pi 1.4.0's
|
|
306
|
-
MIT-licensed TypeScript sources and documentation. The modified-code patch retains the same additions and removals as
|
|
307
|
-
1.3.0; the interactive-mode hunk positions and blob indexes are refreshed. The generated `skills.patch` changes the
|
|
308
|
-
resource loader, slash-command list, CLI/interactive dispatch, and skill documentation within the same 48-line
|
|
309
|
-
generated-runtime seam budget. It adds this repository's original skill-management modules unchanged, reusing Pi's
|
|
310
|
-
package discovery, project trust, path, and locking APIs rather than copying its skill implementation. The original
|
|
311
|
-
CLI/RPC wrappers are reused byte-for-byte from 1.3.0 after reviewing 1.4.0's unchanged entrypoint sources and setup. The
|
|
312
|
-
unchanged compile-cache loader is checksum-pinned. The build order follows 1.4.0's root build, with telemetry first.
|
|
313
|
-
Pi's automatic activation of all discovered skills and unrelated runtime changes are intentionally not adopted into the
|
|
314
|
-
overlay; unrelated package files and bundled chunks are left unchanged. No complete Pi source checkout is committed.
|
|
315
|
-
|
|
316
272
|
## Pi `/skills` TypeScript overlay
|
|
317
273
|
|
|
318
274
|
- Source: `@earendil-works/pi-coding-agent@1.0.3`, `@earendil-works/pi-coding-agent@1.0.4`,
|
|
@@ -404,12 +360,3 @@ Pi's official launcher signatures and managed marker fields informed nonexecutin
|
|
|
404
360
|
<https://github.com/earendil-works/pi>, local source revision `741fb3a686f8dcc075f12ea77f985967ced59e21`
|
|
405
361
|
(`packages/coding-agent/src/package-manager-cli.ts`; MIT), plus the installed official launcher. These are behavioral
|
|
406
362
|
references only; no launcher code, execution, installation, or self-update machinery was copied or adopted.
|
|
407
|
-
|
|
408
|
-
[retired-1.0.3-integration]:
|
|
409
|
-
https://github.com/zew1me/pi-buildout/blob/8250d571f6346e6ee2788ea0ffd2c1a452d30cd1/pi-overlay/versions/1.0.3/integration.patch
|
|
410
|
-
[retired-1.1.0-integration]:
|
|
411
|
-
https://github.com/zew1me/pi-buildout/blob/8250d571f6346e6ee2788ea0ffd2c1a452d30cd1/pi-overlay/versions/1.1.0/integration.patch
|
|
412
|
-
[retired-1.3.0-integration]:
|
|
413
|
-
https://github.com/zew1me/pi-buildout/blob/8250d571f6346e6ee2788ea0ffd2c1a452d30cd1/pi-overlay/versions/1.3.0/integration.patch
|
|
414
|
-
[retired-1.4.0-integration]:
|
|
415
|
-
https://github.com/zew1me/pi-buildout/blob/8250d571f6346e6ee2788ea0ffd2c1a452d30cd1/pi-overlay/versions/1.4.0/integration.patch
|