@ponythewhite/base-context 1.0.14 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/dist/base-context-runtime/pyproject.toml +1 -1
- package/dist/base-context-runtime/uv.lock +1 -1
- package/dist/build-info.json +1 -1
- package/dist/bundle/{bundled-modules-UODO7ZR7.js → bundled-modules-O67MEO74.js} +2 -2
- package/dist/bundle/{chunk-NLRWERWA.js → chunk-DGO66I3L.js} +51 -20
- package/dist/bundle/{chunk-SX7CAXWU.js → chunk-RQFC34FM.js} +131 -49
- package/dist/bundle/{cli-main-6GXXIMQQ.js → cli-main-2RER6PBE.js} +2 -2
- package/dist/bundle/cli.js +1 -1
- package/dist/bundle/{main-HF64B4HM.js → main-YERLD3T4.js} +2 -2
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +36 -24
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/compaction/compaction.d.ts +1 -1
- package/dist/core/compaction/compaction.d.ts.map +1 -1
- package/dist/core/compaction/compaction.js +11 -9
- package/dist/core/compaction/compaction.js.map +1 -1
- package/dist/core/inference-coordinator.d.ts.map +1 -1
- package/dist/core/inference-coordinator.js +13 -2
- package/dist/core/inference-coordinator.js.map +1 -1
- package/dist/core/kernel/repl-manager.d.ts.map +1 -1
- package/dist/core/kernel/repl-manager.js +5 -0
- package/dist/core/kernel/repl-manager.js.map +1 -1
- package/dist/core/session-manager.d.ts +8 -0
- package/dist/core/session-manager.d.ts.map +1 -1
- package/dist/core/session-manager.js +57 -0
- package/dist/core/session-manager.js.map +1 -1
- package/dist/modes/daemon/daemon-mode.d.ts.map +1 -1
- package/dist/modes/daemon/daemon-mode.js +17 -17
- package/dist/modes/daemon/daemon-mode.js.map +1 -1
- package/dist/modes/daemon/daemon-worker-client.d.ts +1 -0
- package/dist/modes/daemon/daemon-worker-client.d.ts.map +1 -1
- package/dist/modes/daemon/daemon-worker-client.js +8 -0
- package/dist/modes/daemon/daemon-worker-client.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +2 -0
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +29 -4
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/docs/upstream-1.0.15.md +83 -0
- package/package.json +4 -4
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# Prime Agent selection for Base Context 1.0.15
|
|
2
|
+
|
|
3
|
+
This is a selective adaptation, not an upstream merge.
|
|
4
|
+
|
|
5
|
+
Base Context forked Prime Agent 0.9.3 at
|
|
6
|
+
`915c78f42c248b08238dd27fcd4bcab32c60beab`. This review screened all 222
|
|
7
|
+
subsequent commits through `2d24ad4e6b2d1ee8e6919af6f108e980a14d550e`
|
|
8
|
+
(2026-09-27): 10 through 0.9.4, the 113 commits covered by the prior
|
|
9
|
+
[0.9.5 selection](upstream-0.9.5.md), and 99 after 0.9.5. Relevant runtime,
|
|
10
|
+
compaction, goal, and workflow changes received focused source comparison;
|
|
11
|
+
this is not a full audit of every changed function.
|
|
12
|
+
|
|
13
|
+
The latest stable release in this review was Prime Agent 0.9.6,
|
|
14
|
+
`e260085dd8f742e0def3d871860c9a888b114851`, published 2026-09-24. Six later
|
|
15
|
+
main commits were also screened. A commit can be absent from fork ancestry
|
|
16
|
+
while its selected behavior is already implemented locally.
|
|
17
|
+
|
|
18
|
+
## Selected small fixes
|
|
19
|
+
|
|
20
|
+
| Exact upstream commit | Adaptation |
|
|
21
|
+
|---|---|
|
|
22
|
+
| `a0660bb5f823bcd9490a83ca3e822d7d53f36e24` | Clear a failed direct daemon-worker connection's socket and channel references, so the same client can retry after a connection error or timeout. Keep Base Context's native-owner, compatibility, and probe-timeout handling. Do not refactor the already-correct daemon-client connection path merely to share a helper. |
|
|
23
|
+
| `b6b94c78a7747997e0ec6c690c0e8f2a563dbe14` | Add the missing kernel stderr stream error listener, matching the existing stdin/stdout listeners. Record the diagnostic without taking cleanup ownership from pending writes and child exit. |
|
|
24
|
+
|
|
25
|
+
These changes add no provider, model, daemon command, wire shape, or protocol
|
|
26
|
+
version. Focused coverage belongs in the existing `daemon-client.test.ts` and
|
|
27
|
+
`repl-kernel-pipe-errors.test.ts` files. Test outcomes belong to the change's
|
|
28
|
+
validation record, not to this upstream-selection rationale.
|
|
29
|
+
|
|
30
|
+
## Relevant decisions
|
|
31
|
+
|
|
32
|
+
Upstream commits can be viewed at
|
|
33
|
+
`https://github.com/PrimeIntellect-ai/prime-agent/commit/<commit>`.
|
|
34
|
+
|
|
35
|
+
| Exact upstream commit | Decision | Reason |
|
|
36
|
+
|---|---|---|
|
|
37
|
+
| `90ca4a457e0fef0bd925215d4c973abd6264f067` | Already adapted | Kernel stdin/stdout pipe errors are already handled. Keep that behavior; only stderr was missing. |
|
|
38
|
+
| `55ade48b73f636d992855b7cab797d71dc1f6f1c` | Already adapted | LiteLLM overflow recognition and rate-limit exclusions already match upstream. A local history-source limit is not a provider context overflow. |
|
|
39
|
+
| `8eaa00c37385c6b25fed9d46584b50ffc2e87f9c` | Already adapted | Blocked input-pump idle waits already yield, with additional native settlement/admission guards. |
|
|
40
|
+
| `b3e04b58b358ae9adc02387e6d01937ef9f8064f` | Defer native adaptation | Restoring non-durable next-turn prefixes from every cancelled turn is relevant, but must preserve the native action/source owner. Not part of the two isolated runtime patches. |
|
|
41
|
+
| `c4afa57352e71a8532f04ef04a09ce14720ddeca` | Defer | Deriving displayed activity from actual session activity rather than summary freshness is useful, but is a separate UI/state change. |
|
|
42
|
+
| `bcdcd6e65e10959c9904ec4467747528303493b0` | Defer native adaptation | Manual-compaction goal resume must use Base Context's captured-owner continuation lifecycle, not upstream queue scheduling. |
|
|
43
|
+
| `215e7a7409b2931b49d3aad62d29fa8e94345973` | Defer native adaptation | Same-goal accounting should remain monotonic across summary moves, without applying maxima across unrelated goals or deliberate branch navigation. The upstream reload helper has been replaced locally. |
|
|
44
|
+
| `9bd6a9bc0fbc1e4072cfd7162f855a305c39efb0` | Defer native adaptation | Refresh queued goal accounting at a native admission/capture boundary; do not copy upstream in-place mutation of accepted message content. |
|
|
45
|
+
| `2e43ebca3753c82ed0ef2064cb14081588ebd4d3`, `b08f08efad6830856318e994447162ba3fd4c6ee` | Reject as-is | Blanket continuation pauses while children or background shells run prevent independent work. A running resource does not establish a dependency. |
|
|
46
|
+
| `5fb3d9acbafa06ae9228c49a4b8a4eca9abc0997` | Defer summary adaptation | Tool name, error status, and matching call indices improve summary input, but change prompt representation and need to fit native context budgets. |
|
|
47
|
+
| `27f32ddb7e99803555c4654c9ce38edad3e90e22` | Defer summary adaptation | Strip repeated mechanical file lists if adopted. Kept-tail recency must not promote assistant statements over user constraints or TaskFrame authority. Silent list caps are not acceptable substitutes for visible limits. |
|
|
48
|
+
| `6be5d4f297f112df8b57b6807de9405c5444fc0f`, `f31c440c788499a4ba49736acbf1504a25e3ad4c` | Retain prior deferral | Head/tail excerpts and kernel-reported file paths change summary selection. Retain recoverable original evidence; do not silently cap file lists or promote tool observations to task authority. |
|
|
49
|
+
| `4f6df9d14385368a148c22e65dfc6050fbb984f1` | Reject routing policy | Automatic auxiliary-model fallback and suppressed reasoning would override explicit compaction model/effort selection. Native request budgeting remains authoritative. |
|
|
50
|
+
| `c91e6e991fc006098ea21c3640eed3bdd268c222`, `0e3c900225f8beea4ecd57180902d437cd394117`, `2d24ad4e6b2d1ee8e6919af6f108e980a14d550e` | Defer larger runtime change | Bounded frames/payloads and linear protocol reading are a coherent later adaptation, not part of the stderr listener fix. They do not fix full-parent history hydration. |
|
|
51
|
+
| `8ee46be35b6fcc4ab28aa6d524aeed1fff69ffe4` | Defer larger runtime change | Restored functions need live namespace globals, but the revival change must preserve native staged restore and interrupt behavior. No dill/restore rewrite is included here. |
|
|
52
|
+
| `561401b273b5affa3877aae51e3b44ce201cc2d5` | Defer | Bound attached cell-source metadata separately from complete execution/canonical source. The upstream cap is characters plus a marker, not a byte limit. |
|
|
53
|
+
| `d73349d508075cb4d6c3d9d6eec677f029e294c8` | Defer legacy-only adaptation | The retained opt-in owned-worker frontend differs from normal daemon startup. Its cleanup may throw on corrupt tracking; copying upstream's error callback would bypass native cleanup reporting. |
|
|
54
|
+
| `ecd60e3cd4313643dede3cb2fcf13b4e2e9a2a75`, `66df06fc12d721c919d61c5ce4d6fb3ef0da479f` | Defer together | Consumed shell-notice withdrawal and its ordering fix form one optional workflow change. Preserve native action/source semantics. |
|
|
55
|
+
| `e2fb7bfa1372552d81c33e9b3261d6a9cf82d30f` | Defer product decision | Interrupt-and-send-queued changes user controls and adds a capability-gated command. It requires explicit selection and compatibility coverage, not a protocol-version transplant. |
|
|
56
|
+
|
|
57
|
+
## Native context and command boundaries
|
|
58
|
+
|
|
59
|
+
Upstream does not implement Base Context's framed source/indexed working-view
|
|
60
|
+
architecture. Full-transcript branch caches and JSONL parse optimizations are
|
|
61
|
+
not repairs for a native source-byte refusal. Compaction must select required
|
|
62
|
+
source-backed views before hydrating unrelated old payloads. Captured owners,
|
|
63
|
+
replay groups, accepted epochs, recovery authorization, and acknowledged writes
|
|
64
|
+
must remain intact. A `baseContextEpoch` record is not necessarily a model-written
|
|
65
|
+
summary.
|
|
66
|
+
|
|
67
|
+
The `/goal` text parser is unchanged from upstream at the reviewed revisions.
|
|
68
|
+
Single-line objectives are supported; session slash commands reject multiline
|
|
69
|
+
input, and the command name must start at column zero. Changing that grammar is
|
|
70
|
+
a local product decision, not an upstream bug-fix transplant. Historical goal
|
|
71
|
+
regressions added by the commits above were removed in upstream
|
|
72
|
+
`cf07c5a3f5eca98e7744f2df83050044c920252a`; they are useful test vectors, not
|
|
73
|
+
claims about current upstream test coverage.
|
|
74
|
+
|
|
75
|
+
## What stays out
|
|
76
|
+
|
|
77
|
+
All PrimeRL/Prime product provider, subscription, model, account, team, and
|
|
78
|
+
catalog integrations remain excluded. No implicit backup models, credential
|
|
79
|
+
migration, compiled installer migration, `rlm.spawn`/`collect` API replacement,
|
|
80
|
+
new ledger/audit system, or benchmark pipeline is introduced. Base Context keeps
|
|
81
|
+
explicit provider/auth/model/effort selection, its package and state roots,
|
|
82
|
+
callable `await rlm(...)`, native context authority, and independent-work policy.
|
|
83
|
+
Lawful upstream copyright and MIT attribution remain intact.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ponythewhite/base-context",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.15",
|
|
4
4
|
"description": "Synerise base-context: a coding and research agent with durable context and a persistent Python REPL",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@agentclientprotocol/sdk": "^1.3.0",
|
|
45
|
-
"@ponythewhite/base-context-agent": "1.0.
|
|
46
|
-
"@ponythewhite/base-context-ai": "1.0.
|
|
47
|
-
"@ponythewhite/base-context-tui": "1.0.
|
|
45
|
+
"@ponythewhite/base-context-agent": "1.0.15",
|
|
46
|
+
"@ponythewhite/base-context-ai": "1.0.15",
|
|
47
|
+
"@ponythewhite/base-context-tui": "1.0.15",
|
|
48
48
|
"@silvia-odwyer/photon-node": "^0.3.4",
|
|
49
49
|
"chalk": "^5.5.0",
|
|
50
50
|
"cli-highlight": "^2.1.11",
|