@ponythewhite/base-context 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (285) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/NOTICE +0 -5
  3. package/README.md +44 -27
  4. package/dist/NOTICE +0 -5
  5. package/dist/base-context-runtime/pyproject.toml +1 -1
  6. package/dist/base-context-runtime/src/rlm/__init__.py +7 -5
  7. package/dist/base-context-runtime/test/test_subagent_registry.py +28 -1
  8. package/dist/base-context-runtime/uv.lock +1 -1
  9. package/dist/build-info.json +1 -1
  10. package/dist/bundle/amazon-bedrock.js +21 -0
  11. package/dist/bundle/{anthropic-YY4S534V.js → anthropic-UV5GZDGU.js} +5 -5
  12. package/dist/bundle/{azure-openai-responses-JRP6MIM3.js → azure-openai-responses-WSNPXLYC.js} +6 -6
  13. package/dist/bundle/{bundled-modules-P5HARVZA.js → bundled-modules-PWOGKUQQ.js} +71 -16
  14. package/dist/bundle/chunk-27QCJ2AZ.js +2578 -0
  15. package/dist/bundle/{chunk-BYVP7LWV.js → chunk-44PEHPOG.js} +1916 -4689
  16. package/dist/bundle/{chunk-MZHTNNVA.js → chunk-4GXPNXOJ.js} +8 -0
  17. package/dist/bundle/{chunk-SC5KG5R4.js → chunk-DGNX7HQ3.js} +1 -7
  18. package/dist/bundle/{chunk-A53O363M.js → chunk-GRJFXLBM.js} +0 -1
  19. package/dist/bundle/chunk-HKINIBP4.js +29 -0
  20. package/dist/bundle/{chunk-73DCPU3D.js → chunk-IADCPVEI.js} +1019 -3427
  21. package/dist/bundle/{chunk-UDSW6FNG.js → chunk-KTNETTHI.js} +1 -1
  22. package/dist/bundle/{chunk-U7AUVG3B.js → chunk-VSIYFWYI.js} +24 -6
  23. package/dist/bundle/{chunk-IW77OXFS.js → chunk-W46VZFI6.js} +0 -2099
  24. package/dist/bundle/{cli-main-O4X7GFGY.js → cli-main-4DS7Y3PI.js} +8 -6
  25. package/dist/bundle/cli.js +2 -2
  26. package/dist/bundle/{google-AUTVGDGZ.js → google-T32FMD4G.js} +6 -6
  27. package/dist/bundle/{google-vertex-Q75D7RKS.js → google-vertex-56KP6I3B.js} +3 -3
  28. package/dist/bundle/{main-XKOW2BV6.js → main-SV7JLVEB.js} +7 -5
  29. package/dist/bundle/{mistral-7ESB7QUD.js → mistral-WGBMYIVU.js} +5 -5
  30. package/dist/bundle/{openai-codex-responses-LV3QRPN4.js → openai-codex-responses-PIV2RQ3G.js} +6 -6
  31. package/dist/bundle/{openai-completions-OJECLPXJ.js → openai-completions-64C3JPR4.js} +11 -22
  32. package/dist/bundle/{openai-responses-FN6HZMBC.js → openai-responses-UI7RSTDV.js} +6 -6
  33. package/dist/cli/args.d.ts.map +1 -1
  34. package/dist/cli/args.js +108 -59
  35. package/dist/cli/args.js.map +1 -1
  36. package/dist/cli/daemon-ps.d.ts +4 -3
  37. package/dist/cli/daemon-ps.d.ts.map +1 -1
  38. package/dist/cli/daemon-ps.js +6 -1
  39. package/dist/cli/daemon-ps.js.map +1 -1
  40. package/dist/cli/product-doctor.d.ts +0 -1
  41. package/dist/cli/product-doctor.d.ts.map +1 -1
  42. package/dist/cli/product-doctor.js +6 -3
  43. package/dist/cli/product-doctor.js.map +1 -1
  44. package/dist/config.d.ts +0 -3
  45. package/dist/config.d.ts.map +1 -1
  46. package/dist/config.js +0 -8
  47. package/dist/config.js.map +1 -1
  48. package/dist/core/agent-session-config.d.ts +1 -2
  49. package/dist/core/agent-session-config.d.ts.map +1 -1
  50. package/dist/core/agent-session-config.js +0 -3
  51. package/dist/core/agent-session-config.js.map +1 -1
  52. package/dist/core/agent-session-runtime.d.ts.map +1 -1
  53. package/dist/core/agent-session-runtime.js +5 -4
  54. package/dist/core/agent-session-runtime.js.map +1 -1
  55. package/dist/core/agent-session-services.d.ts +5 -3
  56. package/dist/core/agent-session-services.d.ts.map +1 -1
  57. package/dist/core/agent-session-services.js +2 -27
  58. package/dist/core/agent-session-services.js.map +1 -1
  59. package/dist/core/agent-session.d.ts +10 -6
  60. package/dist/core/agent-session.d.ts.map +1 -1
  61. package/dist/core/agent-session.js +107 -107
  62. package/dist/core/agent-session.js.map +1 -1
  63. package/dist/core/auth-storage.d.ts +8 -35
  64. package/dist/core/auth-storage.d.ts.map +1 -1
  65. package/dist/core/auth-storage.js +33 -243
  66. package/dist/core/auth-storage.js.map +1 -1
  67. package/dist/core/cron-jobs.d.ts.map +1 -1
  68. package/dist/core/cron-jobs.js +7 -1
  69. package/dist/core/cron-jobs.js.map +1 -1
  70. package/dist/core/inference-coordinator.d.ts +6 -1
  71. package/dist/core/inference-coordinator.d.ts.map +1 -1
  72. package/dist/core/inference-coordinator.js +18 -2
  73. package/dist/core/inference-coordinator.js.map +1 -1
  74. package/dist/core/kernel/bootstrap.d.ts.map +1 -1
  75. package/dist/core/kernel/bootstrap.js +2 -2
  76. package/dist/core/kernel/bootstrap.js.map +1 -1
  77. package/dist/core/kernel/repl-manager.d.ts +2 -0
  78. package/dist/core/kernel/repl-manager.d.ts.map +1 -1
  79. package/dist/core/kernel/repl-manager.js +44 -1
  80. package/dist/core/kernel/repl-manager.js.map +1 -1
  81. package/dist/core/logging.d.ts +4 -3
  82. package/dist/core/logging.d.ts.map +1 -1
  83. package/dist/core/logging.js +6 -6
  84. package/dist/core/logging.js.map +1 -1
  85. package/dist/core/mcp/mcp-manager.d.ts.map +1 -1
  86. package/dist/core/mcp/mcp-manager.js +3 -3
  87. package/dist/core/mcp/mcp-manager.js.map +1 -1
  88. package/dist/core/model-registry.d.ts +1 -16
  89. package/dist/core/model-registry.d.ts.map +1 -1
  90. package/dist/core/model-registry.js +88 -196
  91. package/dist/core/model-registry.js.map +1 -1
  92. package/dist/core/model-resolver.d.ts +2 -19
  93. package/dist/core/model-resolver.d.ts.map +1 -1
  94. package/dist/core/model-resolver.js +36 -266
  95. package/dist/core/model-resolver.js.map +1 -1
  96. package/dist/core/provider-contracts.d.ts +5 -6
  97. package/dist/core/provider-contracts.d.ts.map +1 -1
  98. package/dist/core/provider-contracts.js +25 -36
  99. package/dist/core/provider-contracts.js.map +1 -1
  100. package/dist/core/provider-display-names.d.ts.map +1 -1
  101. package/dist/core/provider-display-names.js +0 -2
  102. package/dist/core/provider-display-names.js.map +1 -1
  103. package/dist/core/rlm-max-subagents.d.ts +32 -0
  104. package/dist/core/rlm-max-subagents.d.ts.map +1 -0
  105. package/dist/core/rlm-max-subagents.js +50 -0
  106. package/dist/core/rlm-max-subagents.js.map +1 -0
  107. package/dist/core/rlm-runtime.d.ts +3 -3
  108. package/dist/core/rlm-runtime.d.ts.map +1 -1
  109. package/dist/core/rlm-runtime.js.map +1 -1
  110. package/dist/core/sdk.d.ts +4 -3
  111. package/dist/core/sdk.d.ts.map +1 -1
  112. package/dist/core/sdk.js +27 -14
  113. package/dist/core/sdk.js.map +1 -1
  114. package/dist/core/settings-manager.d.ts +3 -16
  115. package/dist/core/settings-manager.d.ts.map +1 -1
  116. package/dist/core/settings-manager.js +12 -44
  117. package/dist/core/settings-manager.js.map +1 -1
  118. package/dist/core/slash-commands.d.ts.map +1 -1
  119. package/dist/core/slash-commands.js +6 -6
  120. package/dist/core/slash-commands.js.map +1 -1
  121. package/dist/index.d.ts +1 -1
  122. package/dist/index.d.ts.map +1 -1
  123. package/dist/index.js.map +1 -1
  124. package/dist/installer.mjs +2 -3
  125. package/dist/main.d.ts.map +1 -1
  126. package/dist/main.js +39 -34
  127. package/dist/main.js.map +1 -1
  128. package/dist/modes/acp/acp-mode.d.ts.map +1 -1
  129. package/dist/modes/acp/acp-mode.js +1 -1
  130. package/dist/modes/acp/acp-mode.js.map +1 -1
  131. package/dist/modes/agent-connection/daemon-agent-connection.d.ts +6 -2
  132. package/dist/modes/agent-connection/daemon-agent-connection.d.ts.map +1 -1
  133. package/dist/modes/agent-connection/daemon-agent-connection.js +13 -2
  134. package/dist/modes/agent-connection/daemon-agent-connection.js.map +1 -1
  135. package/dist/modes/agent-connection/in-process-agent-connection.d.ts +2 -0
  136. package/dist/modes/agent-connection/in-process-agent-connection.d.ts.map +1 -1
  137. package/dist/modes/agent-connection/in-process-agent-connection.js +6 -0
  138. package/dist/modes/agent-connection/in-process-agent-connection.js.map +1 -1
  139. package/dist/modes/agent-connection/types.d.ts +3 -0
  140. package/dist/modes/agent-connection/types.d.ts.map +1 -1
  141. package/dist/modes/agent-connection/types.js.map +1 -1
  142. package/dist/modes/agents-view/agents-view-mode.d.ts.map +1 -1
  143. package/dist/modes/agents-view/agents-view-mode.js +2 -19
  144. package/dist/modes/agents-view/agents-view-mode.js.map +1 -1
  145. package/dist/modes/daemon/daemon-mode.d.ts +5 -0
  146. package/dist/modes/daemon/daemon-mode.d.ts.map +1 -1
  147. package/dist/modes/daemon/daemon-mode.js +107 -12
  148. package/dist/modes/daemon/daemon-mode.js.map +1 -1
  149. package/dist/modes/daemon/daemon-protocol.d.ts +194 -165
  150. package/dist/modes/daemon/daemon-protocol.d.ts.map +1 -1
  151. package/dist/modes/daemon/daemon-protocol.js +16 -11
  152. package/dist/modes/daemon/daemon-protocol.js.map +1 -1
  153. package/dist/modes/daemon/daemon-rlm-capacity-coordinator.d.ts +19 -0
  154. package/dist/modes/daemon/daemon-rlm-capacity-coordinator.d.ts.map +1 -0
  155. package/dist/modes/daemon/daemon-rlm-capacity-coordinator.js +74 -0
  156. package/dist/modes/daemon/daemon-rlm-capacity-coordinator.js.map +1 -0
  157. package/dist/modes/daemon/daemon-rlm-capacity.d.ts +19 -0
  158. package/dist/modes/daemon/daemon-rlm-capacity.d.ts.map +1 -0
  159. package/dist/modes/daemon/daemon-rlm-capacity.js +85 -0
  160. package/dist/modes/daemon/daemon-rlm-capacity.js.map +1 -0
  161. package/dist/modes/daemon/daemon-session-summarizer.d.ts +2 -3
  162. package/dist/modes/daemon/daemon-session-summarizer.d.ts.map +1 -1
  163. package/dist/modes/daemon/daemon-session-summarizer.js +32 -23
  164. package/dist/modes/daemon/daemon-session-summarizer.js.map +1 -1
  165. package/dist/modes/daemon/daemon-state-root.d.ts +15 -0
  166. package/dist/modes/daemon/daemon-state-root.d.ts.map +1 -0
  167. package/dist/modes/daemon/daemon-state-root.js +40 -0
  168. package/dist/modes/daemon/daemon-state-root.js.map +1 -0
  169. package/dist/modes/daemon/daemon-supervisor-ownership.d.ts +2 -0
  170. package/dist/modes/daemon/daemon-supervisor-ownership.d.ts.map +1 -1
  171. package/dist/modes/daemon/daemon-supervisor-ownership.js +27 -0
  172. package/dist/modes/daemon/daemon-supervisor-ownership.js.map +1 -1
  173. package/dist/modes/daemon/daemon-supervisor.d.ts +10 -1
  174. package/dist/modes/daemon/daemon-supervisor.d.ts.map +1 -1
  175. package/dist/modes/daemon/daemon-supervisor.js +213 -20
  176. package/dist/modes/daemon/daemon-supervisor.js.map +1 -1
  177. package/dist/modes/daemon/daemon-worker-protocol.d.ts +28 -1
  178. package/dist/modes/daemon/daemon-worker-protocol.d.ts.map +1 -1
  179. package/dist/modes/daemon/daemon-worker-protocol.js +16 -2
  180. package/dist/modes/daemon/daemon-worker-protocol.js.map +1 -1
  181. package/dist/modes/daemon/saved-session-catalog.d.ts.map +1 -1
  182. package/dist/modes/daemon/saved-session-catalog.js +2 -0
  183. package/dist/modes/daemon/saved-session-catalog.js.map +1 -1
  184. package/dist/modes/interactive/auth-flows.d.ts +0 -6
  185. package/dist/modes/interactive/auth-flows.d.ts.map +1 -1
  186. package/dist/modes/interactive/auth-flows.js +6 -126
  187. package/dist/modes/interactive/auth-flows.js.map +1 -1
  188. package/dist/modes/interactive/components/configuration-menu.d.ts +3 -0
  189. package/dist/modes/interactive/components/configuration-menu.d.ts.map +1 -1
  190. package/dist/modes/interactive/components/configuration-menu.js +13 -2
  191. package/dist/modes/interactive/components/configuration-menu.js.map +1 -1
  192. package/dist/modes/interactive/components/footer.d.ts +1 -1
  193. package/dist/modes/interactive/components/footer.d.ts.map +1 -1
  194. package/dist/modes/interactive/components/footer.js +2 -2
  195. package/dist/modes/interactive/components/footer.js.map +1 -1
  196. package/dist/modes/interactive/components/index.d.ts +0 -1
  197. package/dist/modes/interactive/components/index.d.ts.map +1 -1
  198. package/dist/modes/interactive/components/index.js +0 -1
  199. package/dist/modes/interactive/components/index.js.map +1 -1
  200. package/dist/modes/interactive/components/login-dialog.d.ts +0 -1
  201. package/dist/modes/interactive/components/login-dialog.d.ts.map +1 -1
  202. package/dist/modes/interactive/components/login-dialog.js +3 -40
  203. package/dist/modes/interactive/components/login-dialog.js.map +1 -1
  204. package/dist/modes/interactive/components/model-selector.d.ts +2 -0
  205. package/dist/modes/interactive/components/model-selector.d.ts.map +1 -1
  206. package/dist/modes/interactive/components/model-selector.js +13 -2
  207. package/dist/modes/interactive/components/model-selector.js.map +1 -1
  208. package/dist/modes/interactive/components/oauth-selector.d.ts.map +1 -1
  209. package/dist/modes/interactive/components/oauth-selector.js +2 -11
  210. package/dist/modes/interactive/components/oauth-selector.js.map +1 -1
  211. package/dist/modes/interactive/feature-hints.d.ts.map +1 -1
  212. package/dist/modes/interactive/feature-hints.js +0 -4
  213. package/dist/modes/interactive/feature-hints.js.map +1 -1
  214. package/dist/modes/interactive/interactive-mode.d.ts +3 -12
  215. package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
  216. package/dist/modes/interactive/interactive-mode.js +81 -507
  217. package/dist/modes/interactive/interactive-mode.js.map +1 -1
  218. package/dist/modes/interactive/onboarding.d.ts +0 -3
  219. package/dist/modes/interactive/onboarding.d.ts.map +1 -1
  220. package/dist/modes/interactive/onboarding.js +0 -17
  221. package/dist/modes/interactive/onboarding.js.map +1 -1
  222. package/dist/modes/rpc/rpc-client.d.ts +4 -1
  223. package/dist/modes/rpc/rpc-client.d.ts.map +1 -1
  224. package/dist/modes/rpc/rpc-client.js +82 -42
  225. package/dist/modes/rpc/rpc-client.js.map +1 -1
  226. package/dist/node/amazon-bedrock.d.ts +2 -0
  227. package/dist/node/amazon-bedrock.d.ts.map +1 -0
  228. package/dist/node/amazon-bedrock.js +6 -0
  229. package/dist/node/amazon-bedrock.js.map +1 -0
  230. package/dist/product-identity.d.ts +0 -1
  231. package/dist/product-identity.d.ts.map +1 -1
  232. package/dist/product-identity.js +0 -1
  233. package/dist/product-identity.js.map +1 -1
  234. package/docs/development.md +1 -1
  235. package/docs/fork-philosophy.md +4 -8
  236. package/docs/installation.md +83 -62
  237. package/docs/providers.md +23 -25
  238. package/docs/quickstart.md +19 -10
  239. package/docs/rlm-runtime.md +13 -5
  240. package/docs/rpc.md +4 -4
  241. package/docs/sdk.md +20 -11
  242. package/docs/sessions.md +0 -1
  243. package/docs/settings.md +9 -42
  244. package/docs/skills.md +0 -1
  245. package/docs/upstream-0.9.5.md +171 -0
  246. package/docs/usage.md +14 -10
  247. package/package.json +4 -4
  248. package/dist/core/agent-traces.d.ts +0 -149
  249. package/dist/core/agent-traces.d.ts.map +0 -1
  250. package/dist/core/agent-traces.js +0 -904
  251. package/dist/core/agent-traces.js.map +0 -1
  252. package/dist/core/prime-inference-auth.d.ts +0 -70
  253. package/dist/core/prime-inference-auth.d.ts.map +0 -1
  254. package/dist/core/prime-inference-auth.js +0 -352
  255. package/dist/core/prime-inference-auth.js.map +0 -1
  256. package/dist/core/prime-inference-model-selection.d.ts +0 -16
  257. package/dist/core/prime-inference-model-selection.d.ts.map +0 -1
  258. package/dist/core/prime-inference-model-selection.js +0 -16
  259. package/dist/core/prime-inference-model-selection.js.map +0 -1
  260. package/dist/core/prime-inference-models.d.ts +0 -6
  261. package/dist/core/prime-inference-models.d.ts.map +0 -1
  262. package/dist/core/prime-inference-models.js +0 -62
  263. package/dist/core/prime-inference-models.js.map +0 -1
  264. package/dist/core/telemetry.d.ts +0 -95
  265. package/dist/core/telemetry.d.ts.map +0 -1
  266. package/dist/core/telemetry.js +0 -637
  267. package/dist/core/telemetry.js.map +0 -1
  268. package/dist/modes/interactive/components/prime-onboarding-splash.d.ts +0 -39
  269. package/dist/modes/interactive/components/prime-onboarding-splash.d.ts.map +0 -1
  270. package/dist/modes/interactive/components/prime-onboarding-splash.js +0 -286
  271. package/dist/modes/interactive/components/prime-onboarding-splash.js.map +0 -1
  272. package/dist/modes/interactive/components/prime-team-selector.d.ts +0 -30
  273. package/dist/modes/interactive/components/prime-team-selector.d.ts.map +0 -1
  274. package/dist/modes/interactive/components/prime-team-selector.js +0 -166
  275. package/dist/modes/interactive/components/prime-team-selector.js.map +0 -1
  276. package/dist/skills/prime-intellect/SKILL.md +0 -87
  277. package/dist/skills/prime-intellect/references/compute.md +0 -45
  278. package/dist/skills/prime-intellect/references/environments.md +0 -73
  279. package/dist/skills/prime-intellect/references/inference.md +0 -47
  280. package/dist/skills/prime-intellect/references/sandboxes.md +0 -75
  281. package/skills/prime-intellect/SKILL.md +0 -87
  282. package/skills/prime-intellect/references/compute.md +0 -45
  283. package/skills/prime-intellect/references/environments.md +0 -73
  284. package/skills/prime-intellect/references/inference.md +0 -47
  285. package/skills/prime-intellect/references/sandboxes.md +0 -75
package/CHANGELOG.md CHANGED
@@ -1,5 +1,42 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.0.2] - 2026-09-17
4
+
5
+ - Fixed RPC requests waiting for a timeout after the agent process exits, and removed the shutdown delay for an already-exited process.
6
+
7
+ ## [1.0.1] - 2026-09-16
8
+
9
+ - Made the Synerise base-context installer the primary setup path, with automatic prerequisites, optional shell-profile updates, and clear launch instructions.
10
+ - Changed fresh managed Python environments to Python 3.13 and refused cross-minor snapshots before restore without overwriting saved state.
11
+ - Removed remote telemetry, trace uploads and sharing, their configuration, and the `/traces` command; retained local diagnostics.
12
+ - Removed Prime account, provider, team, and billing integration and the bundled Prime products skill.
13
+ - Required provider-first fresh setup and explicit model selection, persisted the choice and login credentials, and removed scope-based model defaults.
14
+ - Preserved supported saved model selections while authentication needs setup.
15
+ - Fixed authentication failures to mark the credential used by the request rather than a replacement credential.
16
+ - Restored final exact progress notification for explicit saved-session list requests.
17
+ - Removed upstream-only Linear ticket checks and directed contribution links to Base Context.
18
+ - Prevented uv bootstrap from editing shell profiles before the installer’s explicit PATH consent.
19
+ - Prevented repeated installer runs from adding duplicate PATH entries for managed Node.js.
20
+ - Propagated failed RPC prompt admission to SDK callers without treating successful acknowledgement as completion.
21
+ - Removed remote session sharing through `/share` and stale `/traces` menu entries while retaining local `/export`.
22
+ - Removed stale Prime-team wording from model authentication errors.
23
+ - Added persisted `/agents N` control with a default of four concurrent subagents across the root family, including running and idle residents but excluding the main agent and inactive sessions. Lowering the limit only restricts new admissions.
24
+ - Preserved subagent capacity across daemon worker recovery and saved-session resumes, and advanced the daemon contract to protocol 13 / schema 49.
25
+ - Released newly bound context sources when request admission closes during disposal, preventing child shutdown from hanging.
26
+ - Kept independently resumed live subagents visible and routable when their parent publishes inactive saved-child entries.
27
+ - Fixed Bedrock provider loading in the bundled Node CLI while retaining native request-attempt accounting and local logs.
28
+ - Fixed returning to the agents view during chat initialization without disposing its connection too early or applying late heartbeat updates.
29
+ - Fixed failed terminal turns being marked completed by using a factual error recap with the existing needs-input state, without a classifier request.
30
+ - Scoped daemon discovery and shutdown candidates to the current base-context state root, including owned custom sockets, rather than every matching process on the machine (adapted from [Prime Agent #2361](https://github.com/PrimeIntellect-ai/prime-agent/pull/2361)).
31
+ - Fixed credential rejection attribution when a custom authentication header overrides the selected API key.
32
+ - Handled current Python kernel pipe errors without crashing the worker (adapted from Prime Agent #2213).
33
+ - Prevented blocked input-pump idle waits from starving the I/O needed to resume queued work.
34
+ - Allowed Python `rlm.delete_subagent` to accept the handle returned by `await rlm(...)`, without changing the callable spawn API or subagent limits.
35
+ - Kept drafts alive during pending attaches and handled asynchronous discard failures without crashing other sessions.
36
+ - Rejected missing CLI option values, invalid modes and invalid thinking levels while retaining extension flags and `--` handling.
37
+ - Corrected RPC examples to protocol 13 and schema revision 49, and documented actual provider authentication availability.
38
+ - Reported background scheduler storage failures instead of letting an unhandled promise rejection terminate the daemon worker.
39
+
3
40
  ## [1.0.0] - 2026-09-15
4
41
 
5
42
  - Added native tool intent and finalized execution evidence to session history without duplicate results, with assistant source order restored for parallel tools.
package/NOTICE CHANGED
@@ -14,9 +14,4 @@ this fork is not an official Prime Intellect release.
14
14
  Prime Agent builds on Mario Zechner's Pi project:
15
15
  https://github.com/badlogic/pi-mono
16
16
 
17
- We also credit Prime Intellect's PrimeRL authors for their open-source
18
- reinforcement-learning work: https://github.com/PrimeIntellect-ai/prime-rl
19
- This acknowledgement does not imply that PrimeRL is a runtime dependency
20
- or that upstream authors endorse this fork.
21
-
22
17
  Third-party dependencies retain their own licenses and notices.
package/README.md CHANGED
@@ -4,27 +4,44 @@
4
4
 
5
5
  An MIT-licensed coding and research agent for tasks that outgrow a chat window. Base Context combines a persistent Python workspace, recursive agents, and source-backed context management. It is developed by [Synerise](https://synerise.com) as a fork of [Prime Agent](https://github.com/PrimeIntellect-ai/prime-agent).
6
6
 
7
- [Repository](https://github.com/BaseModelAI/base-context) · [Quickstart](docs/quickstart.md) · [Documentation](docs/index.md) · [Why this fork](docs/fork-philosophy.md)
7
+ [Repository](https://github.com/BaseModelAI/base-context) · [Quickstart](https://github.com/BaseModelAI/base-context/blob/v1.0.1/packages/coding-agent/docs/quickstart.md) · [Documentation](https://github.com/BaseModelAI/base-context/blob/v1.0.1/packages/coding-agent/docs/index.md) · [Why this fork](https://github.com/BaseModelAI/base-context/blob/v1.0.1/packages/coding-agent/docs/fork-philosophy.md)
8
8
 
9
- [![One historical SDK study: Base Context achieved 89/90 runtime-clean strict finishes versus Prime Agent 64/90, with 2 versus 26 additional attempts and 24.16% less cumulative attempt time.](https://raw.githubusercontent.com/BaseModelAI/base-context/v1.0.0/packages/coding-agent/docs/images/benchmarks/benchmark-overview.png)](https://github.com/BaseModelAI/base-context/blob/v1.0.0/benchmarks/python-realworld-30/REPORT.md)
9
+ [![One historical SDK study: Base Context achieved 89/90 runtime-clean strict finishes versus Prime Agent 64/90, with 2 versus 26 additional attempts and 24.16% less cumulative attempt time.](https://raw.githubusercontent.com/BaseModelAI/base-context/v1.0.1/packages/coding-agent/docs/images/benchmarks/benchmark-overview.png)](https://github.com/BaseModelAI/base-context/blob/v1.0.1/benchmarks/python-realworld-30/REPORT.md)
10
10
 
11
- *One study, not a universal ranking: historical SDK/shared-Bash results, not a fresh measurement of release 1.0.0. “Clean” adds runtime requirements to task correctness. [Methodology and full results](https://github.com/BaseModelAI/base-context/blob/v1.0.0/benchmarks/python-realworld-30/REPORT.md).*
11
+ *One study, not a universal ranking: historical SDK/shared-Bash results, not a fresh measurement of this release. “Clean” adds runtime requirements to task correctness. [Methodology and full results](https://github.com/BaseModelAI/base-context/blob/v1.0.1/benchmarks/python-realworld-30/REPORT.md).*
12
12
 
13
- ## Install
13
+ ## Install (recommended)
14
14
 
15
- Use Node.js **22.12+ on the 22.x line, or 23.3+**, and npm:
15
+ On **macOS or Linux**, run the interactive installer:
16
16
 
17
17
  ```bash
18
- npm install -g @ponythewhite/base-context
19
- cd /path/to/project
18
+ curl -fsSL https://github.com/BaseModelAI/base-context/releases/latest/download/install.sh | bash
19
+ ```
20
+
21
+ **Use this instead of the npm route below. You do not install Python or `uv` first.** The installer checks Node.js/npm and offers to install a compatible version if needed. It installs `uv` when needed, prepares the agent's Python environment, and installs the bundled runtime **before activating the CLI**.
22
+
23
+ Follow the final PATH/activation command printed by the installer, then start work:
24
+
25
+ ```bash
26
+ cd /path/to/your/project
20
27
  base-context
21
28
  ```
22
29
 
23
- Run `/login` to configure an authorized provider, then `/model` to select a model. You can also set the provider's API-key environment variable before launch. See [providers](docs/providers.md); model catalog entries do not grant subscription access.
30
+ In the terminal UI, select and authenticate with a supported provider using `/login`, then choose a model with `/model`. Both choices are explicit. The installer prepares the application; you use only the selected provider's account and authentication. See [provider setup](https://github.com/BaseModelAI/base-context/blob/v1.0.1/packages/coding-agent/docs/providers.md).
31
+
32
+ ### npm alternative: for users who already manage Node.js
24
33
 
25
- Install [uv](https://docs.astral.sh/uv/getting-started/installation/) for the Python workspace. First use prepares Python 3.11 and the bundled `base-context-runtime` under `~/.base-context/runtime`. Initial setup can download dependencies. The Python import remains `rlm`.
34
+ Use Node.js **22.12+ on the 22.x line, or 23.3+**, and npm. These must already be installed **before** this route:
26
35
 
27
- For source builds, versioned owned installations, manual Python environments, updates, and rollback, see [installation](docs/installation.md). Prime Agent installers do not install Base Context.
36
+ ```bash
37
+ npm install -g @ponythewhite/base-context
38
+ cd /path/to/your/project
39
+ BASE_CONTEXT_INSTALL_UV=1 base-context
40
+ ```
41
+
42
+ `npm install` installs the CLI; it does not prepare Python at that step. Starting a normal CLI session begins preparing the managed Python environment in the background. `BASE_CONTEXT_INSTALL_UV=1` lets that bootstrap install `uv` if it is missing. **No manual Python installation is needed.** Initial setup needs network access and can take a little longer; later launches reuse the environment.
43
+
44
+ The environment-variable syntax above is for Bash/Zsh. See [installation](https://github.com/BaseModelAI/base-context/blob/v1.0.1/packages/coding-agent/docs/installation.md) for PowerShell, manual Python environments, updates, and rollback.
28
45
 
29
46
  ## Why Base Context?
30
47
 
@@ -47,7 +64,7 @@ Our different bet is **how to manage the context around that work**. A longer tr
47
64
 
48
65
  Think of retained history as a **project notebook**, and the model's context as your **desk**. You do not need every notebook page on the desk at once. You do need the current task, the relevant evidence, and a way to fetch an earlier page. That is a design analogy—not a promise that all information is retained forever or that summaries are lossless.
49
66
 
50
- ![Base Context architecture: retain source history, select and recover a task-aware working set, then send the supported model request. Stable epochs preserve accepted context choices.](https://raw.githubusercontent.com/BaseModelAI/base-context/v1.0.0/docs/images/benchmarks/context-working-set.png)
67
+ ![Base Context architecture: retain source history, select and recover a task-aware working set, then send the supported model request. Stable epochs preserve accepted context choices.](https://raw.githubusercontent.com/BaseModelAI/base-context/v1.0.1/packages/coding-agent/docs/images/benchmarks/context-working-set.png)
51
68
 
52
69
  ### How the design delivers
53
70
 
@@ -64,9 +81,9 @@ Task state is selected recorded evidence, not automatically current truth. Budge
64
81
 
65
82
  These choices favor **recoverable evidence and controlled working sets**, even when that requires more structure or refusing a request that cannot meet its configured contract. They describe this fork's emphasis—not a claim that every capability is absent from every upstream version.
66
83
 
67
- The fork also owns its package, `base-context` command, `~/.base-context` state, and Python runtime distribution. SSE is the default transport; other supported transports are opt-in. Remote telemetry and trace sharing are off by default and require explicit configuration.
84
+ The fork also owns its package, `base-context` command, `~/.base-context` state, and Python runtime distribution. SSE is the default transport; other supported transports are opt-in. Diagnostics stay local; there is no telemetry upload feature.
68
85
 
69
- There is no promise of unlimited context, universal provider support, guaranteed savings, or lossless summaries. Read [context management](docs/context-management.md) and [fork philosophy](docs/fork-philosophy.md) for the contracts and limits.
86
+ There is no promise of unlimited context, universal provider support, guaranteed savings, or lossless summaries. Read [context management](https://github.com/BaseModelAI/base-context/blob/v1.0.1/packages/coding-agent/docs/context-management.md) and [fork philosophy](https://github.com/BaseModelAI/base-context/blob/v1.0.1/packages/coding-agent/docs/fork-philosophy.md) for the contracts and limits.
70
87
 
71
88
  ## Use it
72
89
 
@@ -82,7 +99,9 @@ For independent work, ask the agent to delegate:
82
99
  Delegate the API review to a subagent. Update the documentation while it runs, then read its reply before integrating the findings.
83
100
  ```
84
101
 
85
- The agent works through a persistent Python REPL. `await rlm(...)` returns a **child admission handle**, not the child's answer. Child results arrive through explicit messages or files. See [RLM programming](docs/rlm.md).
102
+ The agent works through a persistent Python REPL. `await rlm(...)` returns a **child admission handle**, not the child's answer. Child results arrive through explicit messages or files. See [RLM programming](https://github.com/BaseModelAI/base-context/blob/v1.0.1/packages/coding-agent/docs/rlm.md).
103
+
104
+ Use `/agents N` to save the concurrent subagent limit globally (default **4**); `/agents` shows its current value. Pending admissions and running or idle subagents count across the root family; the main agent and inactive sessions do not. Lowering the limit never stops existing subagents. A value of **0** blocks new admissions.
86
105
 
87
106
  Add an `AGENTS.md` file for project instructions. Use `/settings` for common options or `.base-context/settings.json` for project configuration. Global state lives in `~/.base-context`; `BASE_CONTEXT_HOME` selects a separate absolute root.
88
107
 
@@ -95,33 +114,31 @@ base-context doctor
95
114
  base-context shutdown
96
115
  ```
97
116
 
98
- See [usage and CLI](docs/usage.md), [settings](docs/settings.md), and [long-running agents](docs/long-running-agents.md) for complete instructions.
117
+ See [usage and CLI](https://github.com/BaseModelAI/base-context/blob/v1.0.1/packages/coding-agent/docs/usage.md), [settings](https://github.com/BaseModelAI/base-context/blob/v1.0.1/packages/coding-agent/docs/settings.md), and [long-running agents](https://github.com/BaseModelAI/base-context/blob/v1.0.1/packages/coding-agent/docs/long-running-agents.md) for complete instructions.
99
118
 
100
119
  ## Benchmark evidence
101
120
 
102
- ![Runtime-clean strict finishes for all three models: Sol 30/30 versus 18/30; Astra 30/30 versus 19/30; DeepSeek 29/30 versus 27/30. Base Context is first in each pair; all chart scales run from zero to thirty.](https://raw.githubusercontent.com/BaseModelAI/base-context/v1.0.0/packages/coding-agent/docs/images/benchmarks/benchmark-models.png)
121
+ ![Runtime-clean strict finishes for all three models: Sol 30/30 versus 18/30; Astra 30/30 versus 19/30; DeepSeek 29/30 versus 27/30. Base Context is first in each pair; all chart scales run from zero to thirty.](https://raw.githubusercontent.com/BaseModelAI/base-context/v1.0.1/packages/coding-agent/docs/images/benchmarks/benchmark-models.png)
103
122
 
104
123
  One frozen SDK-level study covered 30 Python tasks, three model selections, and two agents: 180 cells and 208 attempts. Base Context reached **90/90 terminal strict passes**, versus **87/90** for stock Prime Agent, with **2 versus 26 additional task attempts** and **24.16% less cumulative attempt lifecycle time**.
105
124
 
106
- The harness used a shared Bash tool, not the native Python/RLM workflow. This is cumulative attempt time, not campaign wall time, CPU time, or user-perceived latency. The study used logical `medium` effort, a fixed single-deferred-retry policy, and historical package `0.1.0` at mixed source revisions (`84a7e6f` for Sol/Astra; `077f463` for DeepSeek). Release `1.0.0` builds on the latter source line; it has not been newly measured in this study. Sixteen attempts have unknown cost; full fees and a whole-campaign cost advantage are unknown. Reported prices are API-equivalent estimates, not cash charges.
125
+ The harness used a shared Bash tool, not the native Python/RLM workflow. This is cumulative attempt time, not campaign wall time, CPU time, or user-perceived latency. The study used logical `medium` effort, a fixed single-deferred-retry policy, and historical package `0.1.0` at mixed source revisions (`84a7e6f` for Sol/Astra; `077f463` for DeepSeek). Current releases build on the latter source line; they have not been newly measured in this study. Sixteen attempts have unknown cost; full fees and a whole-campaign cost advantage are unknown. Reported prices are API-equivalent estimates, not cash charges.
107
126
 
108
- Read the [full report and methodology](https://github.com/BaseModelAI/base-context/blob/main/benchmarks/python-realworld-30/REPORT.md) and [reproduction guide](https://github.com/BaseModelAI/base-context/blob/main/benchmarks/python-realworld-30/REPRODUCE.md).
127
+ Read the [full report and methodology](https://github.com/BaseModelAI/base-context/blob/v1.0.1/benchmarks/python-realworld-30/REPORT.md) and [reproduction guide](https://github.com/BaseModelAI/base-context/blob/v1.0.1/benchmarks/python-realworld-30/REPRODUCE.md).
109
128
 
110
129
  ## Integrate and extend
111
130
 
112
- - [SDK](docs/sdk.md), [JSON mode](docs/json.md), [RPC](docs/rpc.md), and [ACP](docs/acp.md)
113
- - [Python and markdown skills](docs/skills.md), [MCP](docs/mcp-integrations.md), and [extensions](docs/extensions.md)
114
- - [Custom models](docs/models.md), [custom providers](docs/custom-provider.md), and [packages](docs/packages.md)
115
- - [Sessions](docs/sessions.md), [compaction](docs/compaction.md), and [architecture](docs/architecture.md)
131
+ - [SDK](https://github.com/BaseModelAI/base-context/blob/v1.0.1/packages/coding-agent/docs/sdk.md), [JSON mode](https://github.com/BaseModelAI/base-context/blob/v1.0.1/packages/coding-agent/docs/json.md), [RPC](https://github.com/BaseModelAI/base-context/blob/v1.0.1/packages/coding-agent/docs/rpc.md), and [ACP](https://github.com/BaseModelAI/base-context/blob/v1.0.1/packages/coding-agent/docs/acp.md)
132
+ - [Python and markdown skills](https://github.com/BaseModelAI/base-context/blob/v1.0.1/packages/coding-agent/docs/skills.md), [MCP](https://github.com/BaseModelAI/base-context/blob/v1.0.1/packages/coding-agent/docs/mcp-integrations.md), and [extensions](https://github.com/BaseModelAI/base-context/blob/v1.0.1/packages/coding-agent/docs/extensions.md)
133
+ - [Custom models](https://github.com/BaseModelAI/base-context/blob/v1.0.1/packages/coding-agent/docs/models.md), [custom providers](https://github.com/BaseModelAI/base-context/blob/v1.0.1/packages/coding-agent/docs/custom-provider.md), and [packages](https://github.com/BaseModelAI/base-context/blob/v1.0.1/packages/coding-agent/docs/packages.md)
134
+ - [Sessions](https://github.com/BaseModelAI/base-context/blob/v1.0.1/packages/coding-agent/docs/sessions.md), [compaction](https://github.com/BaseModelAI/base-context/blob/v1.0.1/packages/coding-agent/docs/compaction.md), and [architecture](https://github.com/BaseModelAI/base-context/blob/v1.0.1/packages/coding-agent/docs/architecture.md)
116
135
 
117
136
  ## Trust and data
118
137
 
119
138
  The agent executes generated Python and project commands with your user permissions. Worker and kernel processes are **not a security sandbox**. Use an external sandbox for untrusted work and review skills and extensions before loading them.
120
139
 
121
- Retained history and artifacts can contain sensitive information. Compaction is not deletion or secret removal. Do not copy upstream credential stores. Telemetry and trace sharing are off by default and need explicit configuration. SSE is the default provider transport.
122
-
123
- ## Credits and license
140
+ Retained history and artifacts can contain sensitive information. Compaction is not deletion or secret removal. Do not copy upstream credential stores. Diagnostics stay local; there is no telemetry upload feature. SSE is the default provider transport.
124
141
 
125
- Base Context preserves the MIT-licensed work of **Prime Agent** and **Prime Intellect**, and the **Pi / pi-mono** lineage created by **Mario Zechner**. We also acknowledge Prime Intellect's separate **[PrimeRL](https://github.com/PrimeIntellect-ai/prime-rl)** project; it is not a direct dependency of this CLI.
142
+ ## License
126
143
 
127
- See [LICENSE](LICENSE), [contributing](https://github.com/BaseModelAI/base-context/blob/main/CONTRIBUTING.md), and [security](https://github.com/BaseModelAI/base-context/blob/main/SECURITY.md).
144
+ MIT. See [LICENSE](LICENSE) and [NOTICE](NOTICE) for copyright and license terms.
package/dist/NOTICE CHANGED
@@ -14,9 +14,4 @@ this fork is not an official Prime Intellect release.
14
14
  Prime Agent builds on Mario Zechner's Pi project:
15
15
  https://github.com/badlogic/pi-mono
16
16
 
17
- We also credit Prime Intellect's PrimeRL authors for their open-source
18
- reinforcement-learning work: https://github.com/PrimeIntellect-ai/prime-rl
19
- This acknowledgement does not imply that PrimeRL is a runtime dependency
20
- or that upstream authors endorse this fork.
21
-
22
17
  Third-party dependencies retain their own licenses and notices.
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "base-context-runtime"
3
- version = "1.0.0"
3
+ version = "1.0.2"
4
4
  description = "Kernel-side runtime shim for Base Context recursion"
5
5
  license = "MIT"
6
6
  license-files = ["LICENSE", "NOTICE"]
@@ -178,16 +178,18 @@ async def list_subagents() -> list[RLMSubagent]:
178
178
  return [_subagent_from_payload(entry) for entry in entries]
179
179
 
180
180
 
181
- async def delete_subagent(target: str | RLMSubagent) -> RLMSubagent:
182
- """Delete one running or retained direct child from the current parent session."""
183
- if isinstance(target, RLMSubagent):
181
+ async def delete_subagent(target: str | RLMSubagent | RLMSpawnHandle) -> RLMSubagent:
182
+ """Delete a direct child by spawn handle, subagent row, or child id/session name."""
183
+ if isinstance(target, (RLMSpawnHandle, RLMSubagent)):
184
184
  selector = target.rlm_child_id
185
185
  elif isinstance(target, str):
186
186
  selector = target.strip()
187
187
  if not selector:
188
188
  raise ValueError("target must not be empty")
189
189
  else:
190
- raise TypeError(f"target must be str or RLMSubagent, got {type(target).__name__}")
190
+ raise TypeError(
191
+ f"target must be RLMSpawnHandle, RLMSubagent, or str, got {type(target).__name__}"
192
+ )
191
193
  payload = await host_request("rlm.delete_subagent", {"target": selector})
192
194
  return _subagent_from_payload(payload.get("subagent"), "rlm.delete_subagent")
193
195
 
@@ -257,7 +259,7 @@ class _RLMCallable:
257
259
  async def list_subagents(self) -> list[RLMSubagent]:
258
260
  return await list_subagents()
259
261
 
260
- async def delete_subagent(self, target: str | RLMSubagent) -> RLMSubagent:
262
+ async def delete_subagent(self, target: str | RLMSubagent | RLMSpawnHandle) -> RLMSubagent:
261
263
  return await delete_subagent(target)
262
264
 
263
265
  async def __call__(self, prompt: str, **kwargs: Any) -> RLMSpawnHandle:
@@ -182,6 +182,33 @@ class RlmSubagentRegistryTest(unittest.TestCase):
182
182
  {"target": "sub-a1b2c3d4"},
183
183
  )
184
184
 
185
+ def test_deletes_subagent_by_spawn_handle(self) -> None:
186
+ handle = rlm_module.RLMSpawnHandle(
187
+ rlm_child_id="sub-a1b2c3d4",
188
+ name="api-reviewer",
189
+ session_dir=Path("/tmp/parent/sub-a1b2c3d4"),
190
+ model="deepseek/deepseek-v4-flash",
191
+ )
192
+ deleted_payload = {
193
+ "rlm_child_id": handle.rlm_child_id,
194
+ "active_session_id": None,
195
+ "session_id": None,
196
+ "session_name": handle.name,
197
+ "session_dir": str(handle.session_dir),
198
+ "status": "completed",
199
+ }
200
+ host_request = AsyncMock(return_value={"subagent": deleted_payload})
201
+
202
+ with patch.object(rlm_module, "host_request", host_request):
203
+ deleted = asyncio.run(rlm_module.rlm.delete_subagent(handle))
204
+
205
+ self.assertEqual(deleted.rlm_child_id, handle.rlm_child_id)
206
+ self.assertEqual(deleted.session_name, handle.name)
207
+ host_request.assert_awaited_once_with(
208
+ "rlm.delete_subagent",
209
+ {"target": "sub-a1b2c3d4"},
210
+ )
211
+
185
212
  def test_rejects_invalid_delete_response_and_target(self) -> None:
186
213
  host_request = AsyncMock(return_value={"subagent": {"status": "completed"}})
187
214
 
@@ -191,7 +218,7 @@ class RlmSubagentRegistryTest(unittest.TestCase):
191
218
 
192
219
  with self.assertRaisesRegex(ValueError, "target must not be empty"):
193
220
  asyncio.run(rlm_module.delete_subagent(" "))
194
- with self.assertRaisesRegex(TypeError, "target must be str or RLMSubagent"):
221
+ with self.assertRaisesRegex(TypeError, "target must be RLMSpawnHandle, RLMSubagent, or str"):
195
222
  asyncio.run(rlm_module.delete_subagent(123))
196
223
 
197
224
  def test_rejects_invalid_registry_payload(self) -> None:
@@ -367,7 +367,7 @@ wheels = [
367
367
 
368
368
  [[package]]
369
369
  name = "base-context-runtime"
370
- version = "1.0.0"
370
+ version = "1.0.2"
371
371
  source = { editable = "." }
372
372
  dependencies = [
373
373
  { name = "mcp" },
@@ -1,5 +1,5 @@
1
1
  {
2
- "sourceCommit": "3b6e414e5d955f03bdebf866f39b85853a896d13",
2
+ "sourceCommit": "4192025d919683d61a402b666b4790e26118df53",
3
3
  "sourceDirty": false,
4
4
  "buildHost": {
5
5
  "platform": "linux",
@@ -0,0 +1,21 @@
1
+ import { createRequire as __piBundleCreateRequire } from 'node:module'; const require = __piBundleCreateRequire(import.meta.url);
2
+ import {
3
+ writeFileLogEntry
4
+ } from "./chunk-HKINIBP4.js";
5
+ import "./chunk-27QCJ2AZ.js";
6
+ import "./chunk-5QCJ5DQU.js";
7
+ import "./chunk-CRBVRZBV.js";
8
+ import "./chunk-GRJFXLBM.js";
9
+ import "./chunk-2T7M7VJ4.js";
10
+ import "./chunk-DGNX7HQ3.js";
11
+ import "./chunk-W46VZFI6.js";
12
+ import "./chunk-BAWSWWEU.js";
13
+
14
+ // dist/node/amazon-bedrock.js
15
+ import { bedrockProviderModule, setLogSink } from "@ponythewhite/base-context-ai/bedrock-provider";
16
+ setLogSink(writeFileLogEntry);
17
+ var { streamBedrock, streamSimpleBedrock } = bedrockProviderModule;
18
+ export {
19
+ streamBedrock,
20
+ streamSimpleBedrock
21
+ };
@@ -15,15 +15,15 @@ import {
15
15
  parseJsonWithRepair,
16
16
  parseStreamingJson
17
17
  } from "./chunk-2T7M7VJ4.js";
18
- import {
19
- getEnvApiKey
20
- } from "./chunk-SC5KG5R4.js";
21
18
  import {
22
19
  adjustMaxTokensForThinking,
23
20
  buildBaseOptions,
24
21
  sanitizeSurrogates,
25
22
  transformMessages
26
- } from "./chunk-MZHTNNVA.js";
23
+ } from "./chunk-4GXPNXOJ.js";
24
+ import {
25
+ getEnvApiKey
26
+ } from "./chunk-DGNX7HQ3.js";
27
27
  import {
28
28
  AssistantMessageEventStream,
29
29
  ProviderAttemptTracker,
@@ -36,7 +36,7 @@ import {
36
36
  streamFailureFromStopReason,
37
37
  streamFailureMessage,
38
38
  truncateRawPayload
39
- } from "./chunk-IW77OXFS.js";
39
+ } from "./chunk-W46VZFI6.js";
40
40
  import "./chunk-BAWSWWEU.js";
41
41
 
42
42
  // ../../node_modules/@anthropic-ai/sdk/internal/tslib.mjs
@@ -3,7 +3,7 @@ import {
3
3
  convertResponsesMessages,
4
4
  convertResponsesTools,
5
5
  processResponsesStream
6
- } from "./chunk-U7AUVG3B.js";
6
+ } from "./chunk-VSIYFWYI.js";
7
7
  import "./chunk-NQB5DCFC.js";
8
8
  import {
9
9
  AzureOpenAI
@@ -12,12 +12,12 @@ import {
12
12
  headersToRecord
13
13
  } from "./chunk-CL7XFWST.js";
14
14
  import "./chunk-2T7M7VJ4.js";
15
- import {
16
- getEnvApiKey
17
- } from "./chunk-SC5KG5R4.js";
18
15
  import {
19
16
  buildBaseOptions
20
- } from "./chunk-MZHTNNVA.js";
17
+ } from "./chunk-4GXPNXOJ.js";
18
+ import {
19
+ getEnvApiKey
20
+ } from "./chunk-DGNX7HQ3.js";
21
21
  import {
22
22
  AssistantMessageEventStream,
23
23
  ProviderAttemptTracker,
@@ -25,7 +25,7 @@ import {
25
25
  formatStreamFailureMessage,
26
26
  recordStreamFailure,
27
27
  streamFailureFromStopReason
28
- } from "./chunk-IW77OXFS.js";
28
+ } from "./chunk-W46VZFI6.js";
29
29
  import "./chunk-BAWSWWEU.js";
30
30
 
31
31
  // ../ai/src/providers/azure-openai-responses.ts
@@ -6,7 +6,6 @@ import {
6
6
  AssistantMessageComponent,
7
7
  AuthStorage,
8
8
  BashExecutionComponent,
9
- BorderedLoader,
10
9
  BranchSummaryMessageComponent,
11
10
  ClientPromptStashStore,
12
11
  CompactionSummaryMessageComponent,
@@ -52,10 +51,11 @@ import {
52
51
  oauth_exports,
53
52
  runPrintMode,
54
53
  runRpcMode
55
- } from "./chunk-BYVP7LWV.js";
54
+ } from "./chunk-44PEHPOG.js";
56
55
  import {
57
56
  AgentSession,
58
57
  CURRENT_SESSION_VERSION,
58
+ CancellableLoader,
59
59
  CompactionCommittedError,
60
60
  Container,
61
61
  DAEMON_PROTOCOL_INFO,
@@ -69,13 +69,14 @@ import {
69
69
  ExtensionRunner,
70
70
  InferenceCoordinator,
71
71
  IpythonKernelProvisioner,
72
+ Loader,
72
73
  NativeRecoveryBudgetRefusal,
73
74
  SelectList,
74
75
  SessionManager,
76
+ Spacer,
77
+ Text,
75
78
  Theme,
76
- VERSION,
77
79
  buildSessionContext,
78
- build_exports,
79
80
  calculateContextTokens,
80
81
  collectEntriesForBranchSummary,
81
82
  compact,
@@ -102,7 +103,6 @@ import {
102
103
  formatSkillsForPrompt,
103
104
  generateBranchSummary,
104
105
  generateSummary,
105
- getAgentDir,
106
106
  getAvailableThemes,
107
107
  getLanguageFromPath,
108
108
  getLastAssistantUsage,
@@ -133,9 +133,8 @@ import {
133
133
  renderDiff,
134
134
  serializeConversation,
135
135
  shouldCompact,
136
- src_exports,
137
- src_exports2,
138
- src_exports3,
136
+ src_exports as src_exports2,
137
+ src_exports2 as src_exports3,
139
138
  stripFrontmatter,
140
139
  truncateHead,
141
140
  truncateLine,
@@ -144,26 +143,33 @@ import {
144
143
  withFileMutationQueue,
145
144
  wrapRegisteredTool,
146
145
  wrapRegisteredTools
147
- } from "./chunk-73DCPU3D.js";
146
+ } from "./chunk-IADCPVEI.js";
148
147
  import "./chunk-CFNASUYO.js";
148
+ import "./chunk-HKINIBP4.js";
149
+ import {
150
+ VERSION,
151
+ build_exports,
152
+ getAgentDir,
153
+ src_exports
154
+ } from "./chunk-27QCJ2AZ.js";
149
155
  import "./chunk-5QCJ5DQU.js";
150
156
  import {
151
157
  compile_exports,
152
158
  value_exports2 as value_exports
153
159
  } from "./chunk-CRBVRZBV.js";
154
- import "./chunk-A53O363M.js";
160
+ import "./chunk-GRJFXLBM.js";
155
161
  import "./chunk-2T7M7VJ4.js";
156
162
  import "./chunk-UIRUOAIQ.js";
157
163
  import "./chunk-HXOBFFJX.js";
158
- import "./chunk-SC5KG5R4.js";
159
- import "./chunk-IW77OXFS.js";
164
+ import "./chunk-DGNX7HQ3.js";
165
+ import "./chunk-W46VZFI6.js";
160
166
  import {
161
167
  __export
162
168
  } from "./chunk-BAWSWWEU.js";
163
169
 
164
170
  // dist/index.js
165
- var index_exports = {};
166
- __export(index_exports, {
171
+ var dist_exports = {};
172
+ __export(dist_exports, {
167
173
  AgentMessageComponent: () => AgentMessageComponent,
168
174
  AgentSession: () => AgentSession,
169
175
  AgentSessionRuntime: () => AgentSessionRuntime,
@@ -302,6 +308,55 @@ __export(index_exports, {
302
308
  wrapRegisteredTools: () => wrapRegisteredTools
303
309
  });
304
310
 
311
+ // dist/modes/interactive/components/bordered-loader.js
312
+ var BorderedLoader = class extends Container {
313
+ loader;
314
+ cancellable;
315
+ signalController;
316
+ constructor(tui, theme, message, options) {
317
+ super();
318
+ this.cancellable = options?.cancellable ?? true;
319
+ const borderColor = (s) => theme.fg("border", s);
320
+ this.addChild(new DynamicBorder(borderColor));
321
+ if (this.cancellable) {
322
+ this.loader = new CancellableLoader(tui, (s) => theme.fg("muted", s), (s) => theme.fg("muted", s), message);
323
+ } else {
324
+ this.signalController = new AbortController();
325
+ this.loader = new Loader(tui, (s) => theme.fg("muted", s), (s) => theme.fg("muted", s), message);
326
+ }
327
+ this.addChild(this.loader);
328
+ if (this.cancellable) {
329
+ this.addChild(new Spacer(1));
330
+ this.addChild(new Text(keyHint("tui.select.cancel", "cancel"), 1, 0));
331
+ }
332
+ this.addChild(new Spacer(1));
333
+ this.addChild(new DynamicBorder(borderColor));
334
+ }
335
+ get signal() {
336
+ if (this.cancellable) {
337
+ return this.loader.signal;
338
+ }
339
+ return this.signalController?.signal ?? new AbortController().signal;
340
+ }
341
+ set onAbort(fn) {
342
+ if (this.cancellable) {
343
+ this.loader.onAbort = fn;
344
+ }
345
+ }
346
+ handleInput(data) {
347
+ if (this.cancellable) {
348
+ this.loader.handleInput(data);
349
+ }
350
+ }
351
+ dispose() {
352
+ if ("dispose" in this.loader && typeof this.loader.dispose === "function") {
353
+ this.loader.dispose();
354
+ } else if ("stop" in this.loader && typeof this.loader.stop === "function") {
355
+ this.loader.stop();
356
+ }
357
+ }
358
+ };
359
+
305
360
  // dist/modes/interactive/components/show-images-selector.js
306
361
  var SHOW_IMAGES_SELECT_LIST_LAYOUT = {
307
362
  minPrimaryColumnWidth: 12,
@@ -384,12 +439,12 @@ var VIRTUAL_MODULES = {
384
439
  "@ponythewhite/base-context-tui": src_exports3,
385
440
  "@ponythewhite/base-context-ai": src_exports,
386
441
  "@ponythewhite/base-context-ai/oauth": oauth_exports,
387
- "@ponythewhite/base-context": index_exports,
442
+ "@ponythewhite/base-context": dist_exports,
388
443
  "@mariozechner/pi-agent-core": src_exports2,
389
444
  "@mariozechner/pi-tui": src_exports3,
390
445
  "@mariozechner/pi-ai": src_exports,
391
446
  "@mariozechner/pi-ai/oauth": oauth_exports,
392
- "@mariozechner/pi-coding-agent": index_exports
447
+ "@mariozechner/pi-coding-agent": dist_exports
393
448
  };
394
449
  export {
395
450
  VIRTUAL_MODULES