@ponythewhite/base-context 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +33 -0
- package/NOTICE +0 -5
- package/README.md +44 -27
- package/dist/NOTICE +0 -5
- package/dist/base-context-runtime/pyproject.toml +1 -1
- package/dist/base-context-runtime/src/rlm/__init__.py +7 -5
- package/dist/base-context-runtime/test/test_subagent_registry.py +28 -1
- package/dist/base-context-runtime/uv.lock +1 -1
- package/dist/build-info.json +1 -1
- package/dist/bundle/amazon-bedrock.js +21 -0
- package/dist/bundle/{anthropic-YY4S534V.js → anthropic-UV5GZDGU.js} +5 -5
- package/dist/bundle/{azure-openai-responses-JRP6MIM3.js → azure-openai-responses-WSNPXLYC.js} +6 -6
- package/dist/bundle/{bundled-modules-P5HARVZA.js → bundled-modules-TXUMJ2XQ.js} +71 -16
- package/dist/bundle/chunk-27QCJ2AZ.js +2578 -0
- package/dist/bundle/{chunk-MZHTNNVA.js → chunk-4GXPNXOJ.js} +8 -0
- package/dist/bundle/{chunk-SC5KG5R4.js → chunk-DGNX7HQ3.js} +1 -7
- package/dist/bundle/{chunk-A53O363M.js → chunk-GRJFXLBM.js} +0 -1
- package/dist/bundle/chunk-HKINIBP4.js +29 -0
- package/dist/bundle/{chunk-UDSW6FNG.js → chunk-KTNETTHI.js} +1 -1
- package/dist/bundle/{chunk-BYVP7LWV.js → chunk-S3INFPZZ.js} +1861 -4662
- package/dist/bundle/{chunk-73DCPU3D.js → chunk-V3L54UD6.js} +1019 -3427
- package/dist/bundle/{chunk-U7AUVG3B.js → chunk-VSIYFWYI.js} +24 -6
- package/dist/bundle/{chunk-IW77OXFS.js → chunk-W46VZFI6.js} +0 -2099
- package/dist/bundle/{cli-main-O4X7GFGY.js → cli-main-BYMSRPH6.js} +8 -6
- package/dist/bundle/cli.js +2 -2
- package/dist/bundle/{google-AUTVGDGZ.js → google-T32FMD4G.js} +6 -6
- package/dist/bundle/{google-vertex-Q75D7RKS.js → google-vertex-56KP6I3B.js} +3 -3
- package/dist/bundle/{main-XKOW2BV6.js → main-ODOYCEQC.js} +7 -5
- package/dist/bundle/{mistral-7ESB7QUD.js → mistral-WGBMYIVU.js} +5 -5
- package/dist/bundle/{openai-codex-responses-LV3QRPN4.js → openai-codex-responses-PIV2RQ3G.js} +6 -6
- package/dist/bundle/{openai-completions-OJECLPXJ.js → openai-completions-64C3JPR4.js} +11 -22
- package/dist/bundle/{openai-responses-FN6HZMBC.js → openai-responses-UI7RSTDV.js} +6 -6
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +108 -59
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/daemon-ps.d.ts +4 -3
- package/dist/cli/daemon-ps.d.ts.map +1 -1
- package/dist/cli/daemon-ps.js +6 -1
- package/dist/cli/daemon-ps.js.map +1 -1
- package/dist/cli/product-doctor.d.ts +0 -1
- package/dist/cli/product-doctor.d.ts.map +1 -1
- package/dist/cli/product-doctor.js +6 -3
- package/dist/cli/product-doctor.js.map +1 -1
- package/dist/config.d.ts +0 -3
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +0 -8
- package/dist/config.js.map +1 -1
- package/dist/core/agent-session-config.d.ts +1 -2
- package/dist/core/agent-session-config.d.ts.map +1 -1
- package/dist/core/agent-session-config.js +0 -3
- package/dist/core/agent-session-config.js.map +1 -1
- package/dist/core/agent-session-runtime.d.ts.map +1 -1
- package/dist/core/agent-session-runtime.js +5 -4
- package/dist/core/agent-session-runtime.js.map +1 -1
- package/dist/core/agent-session-services.d.ts +5 -3
- package/dist/core/agent-session-services.d.ts.map +1 -1
- package/dist/core/agent-session-services.js +2 -27
- package/dist/core/agent-session-services.js.map +1 -1
- package/dist/core/agent-session.d.ts +10 -6
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +107 -107
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/auth-storage.d.ts +8 -35
- package/dist/core/auth-storage.d.ts.map +1 -1
- package/dist/core/auth-storage.js +33 -243
- package/dist/core/auth-storage.js.map +1 -1
- package/dist/core/cron-jobs.d.ts.map +1 -1
- package/dist/core/cron-jobs.js +7 -1
- package/dist/core/cron-jobs.js.map +1 -1
- package/dist/core/inference-coordinator.d.ts +6 -1
- package/dist/core/inference-coordinator.d.ts.map +1 -1
- package/dist/core/inference-coordinator.js +18 -2
- package/dist/core/inference-coordinator.js.map +1 -1
- package/dist/core/kernel/bootstrap.d.ts.map +1 -1
- package/dist/core/kernel/bootstrap.js +2 -2
- package/dist/core/kernel/bootstrap.js.map +1 -1
- package/dist/core/kernel/repl-manager.d.ts +2 -0
- package/dist/core/kernel/repl-manager.d.ts.map +1 -1
- package/dist/core/kernel/repl-manager.js +44 -1
- package/dist/core/kernel/repl-manager.js.map +1 -1
- package/dist/core/logging.d.ts +4 -3
- package/dist/core/logging.d.ts.map +1 -1
- package/dist/core/logging.js +6 -6
- package/dist/core/logging.js.map +1 -1
- package/dist/core/mcp/mcp-manager.d.ts.map +1 -1
- package/dist/core/mcp/mcp-manager.js +3 -3
- package/dist/core/mcp/mcp-manager.js.map +1 -1
- package/dist/core/model-registry.d.ts +1 -16
- package/dist/core/model-registry.d.ts.map +1 -1
- package/dist/core/model-registry.js +88 -196
- package/dist/core/model-registry.js.map +1 -1
- package/dist/core/model-resolver.d.ts +2 -19
- package/dist/core/model-resolver.d.ts.map +1 -1
- package/dist/core/model-resolver.js +36 -266
- package/dist/core/model-resolver.js.map +1 -1
- package/dist/core/provider-contracts.d.ts +5 -6
- package/dist/core/provider-contracts.d.ts.map +1 -1
- package/dist/core/provider-contracts.js +25 -36
- package/dist/core/provider-contracts.js.map +1 -1
- package/dist/core/provider-display-names.d.ts.map +1 -1
- package/dist/core/provider-display-names.js +0 -2
- package/dist/core/provider-display-names.js.map +1 -1
- package/dist/core/rlm-max-subagents.d.ts +32 -0
- package/dist/core/rlm-max-subagents.d.ts.map +1 -0
- package/dist/core/rlm-max-subagents.js +50 -0
- package/dist/core/rlm-max-subagents.js.map +1 -0
- package/dist/core/rlm-runtime.d.ts +3 -3
- package/dist/core/rlm-runtime.d.ts.map +1 -1
- package/dist/core/rlm-runtime.js.map +1 -1
- package/dist/core/sdk.d.ts +4 -3
- package/dist/core/sdk.d.ts.map +1 -1
- package/dist/core/sdk.js +27 -14
- package/dist/core/sdk.js.map +1 -1
- package/dist/core/settings-manager.d.ts +3 -16
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js +12 -44
- package/dist/core/settings-manager.js.map +1 -1
- package/dist/core/slash-commands.d.ts.map +1 -1
- package/dist/core/slash-commands.js +6 -6
- package/dist/core/slash-commands.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/installer.mjs +2 -3
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +39 -34
- package/dist/main.js.map +1 -1
- package/dist/modes/acp/acp-mode.d.ts.map +1 -1
- package/dist/modes/acp/acp-mode.js +1 -1
- package/dist/modes/acp/acp-mode.js.map +1 -1
- package/dist/modes/agent-connection/daemon-agent-connection.d.ts +6 -2
- package/dist/modes/agent-connection/daemon-agent-connection.d.ts.map +1 -1
- package/dist/modes/agent-connection/daemon-agent-connection.js +13 -2
- package/dist/modes/agent-connection/daemon-agent-connection.js.map +1 -1
- package/dist/modes/agent-connection/in-process-agent-connection.d.ts +2 -0
- package/dist/modes/agent-connection/in-process-agent-connection.d.ts.map +1 -1
- package/dist/modes/agent-connection/in-process-agent-connection.js +6 -0
- package/dist/modes/agent-connection/in-process-agent-connection.js.map +1 -1
- package/dist/modes/agent-connection/types.d.ts +3 -0
- package/dist/modes/agent-connection/types.d.ts.map +1 -1
- package/dist/modes/agent-connection/types.js.map +1 -1
- package/dist/modes/agents-view/agents-view-mode.d.ts.map +1 -1
- package/dist/modes/agents-view/agents-view-mode.js +2 -19
- package/dist/modes/agents-view/agents-view-mode.js.map +1 -1
- package/dist/modes/daemon/daemon-mode.d.ts +5 -0
- package/dist/modes/daemon/daemon-mode.d.ts.map +1 -1
- package/dist/modes/daemon/daemon-mode.js +107 -12
- package/dist/modes/daemon/daemon-mode.js.map +1 -1
- package/dist/modes/daemon/daemon-protocol.d.ts +194 -165
- package/dist/modes/daemon/daemon-protocol.d.ts.map +1 -1
- package/dist/modes/daemon/daemon-protocol.js +16 -11
- package/dist/modes/daemon/daemon-protocol.js.map +1 -1
- package/dist/modes/daemon/daemon-rlm-capacity-coordinator.d.ts +19 -0
- package/dist/modes/daemon/daemon-rlm-capacity-coordinator.d.ts.map +1 -0
- package/dist/modes/daemon/daemon-rlm-capacity-coordinator.js +74 -0
- package/dist/modes/daemon/daemon-rlm-capacity-coordinator.js.map +1 -0
- package/dist/modes/daemon/daemon-rlm-capacity.d.ts +19 -0
- package/dist/modes/daemon/daemon-rlm-capacity.d.ts.map +1 -0
- package/dist/modes/daemon/daemon-rlm-capacity.js +85 -0
- package/dist/modes/daemon/daemon-rlm-capacity.js.map +1 -0
- package/dist/modes/daemon/daemon-session-summarizer.d.ts +2 -3
- package/dist/modes/daemon/daemon-session-summarizer.d.ts.map +1 -1
- package/dist/modes/daemon/daemon-session-summarizer.js +32 -23
- package/dist/modes/daemon/daemon-session-summarizer.js.map +1 -1
- package/dist/modes/daemon/daemon-state-root.d.ts +15 -0
- package/dist/modes/daemon/daemon-state-root.d.ts.map +1 -0
- package/dist/modes/daemon/daemon-state-root.js +40 -0
- package/dist/modes/daemon/daemon-state-root.js.map +1 -0
- package/dist/modes/daemon/daemon-supervisor-ownership.d.ts +2 -0
- package/dist/modes/daemon/daemon-supervisor-ownership.d.ts.map +1 -1
- package/dist/modes/daemon/daemon-supervisor-ownership.js +27 -0
- package/dist/modes/daemon/daemon-supervisor-ownership.js.map +1 -1
- package/dist/modes/daemon/daemon-supervisor.d.ts +10 -1
- package/dist/modes/daemon/daemon-supervisor.d.ts.map +1 -1
- package/dist/modes/daemon/daemon-supervisor.js +213 -20
- package/dist/modes/daemon/daemon-supervisor.js.map +1 -1
- package/dist/modes/daemon/daemon-worker-protocol.d.ts +28 -1
- package/dist/modes/daemon/daemon-worker-protocol.d.ts.map +1 -1
- package/dist/modes/daemon/daemon-worker-protocol.js +16 -2
- package/dist/modes/daemon/daemon-worker-protocol.js.map +1 -1
- package/dist/modes/daemon/saved-session-catalog.d.ts.map +1 -1
- package/dist/modes/daemon/saved-session-catalog.js +2 -0
- package/dist/modes/daemon/saved-session-catalog.js.map +1 -1
- package/dist/modes/interactive/auth-flows.d.ts +0 -6
- package/dist/modes/interactive/auth-flows.d.ts.map +1 -1
- package/dist/modes/interactive/auth-flows.js +6 -126
- package/dist/modes/interactive/auth-flows.js.map +1 -1
- package/dist/modes/interactive/components/configuration-menu.d.ts +3 -0
- package/dist/modes/interactive/components/configuration-menu.d.ts.map +1 -1
- package/dist/modes/interactive/components/configuration-menu.js +13 -2
- package/dist/modes/interactive/components/configuration-menu.js.map +1 -1
- package/dist/modes/interactive/components/footer.d.ts +1 -1
- package/dist/modes/interactive/components/footer.d.ts.map +1 -1
- package/dist/modes/interactive/components/footer.js +2 -2
- package/dist/modes/interactive/components/footer.js.map +1 -1
- package/dist/modes/interactive/components/index.d.ts +0 -1
- package/dist/modes/interactive/components/index.d.ts.map +1 -1
- package/dist/modes/interactive/components/index.js +0 -1
- package/dist/modes/interactive/components/index.js.map +1 -1
- package/dist/modes/interactive/components/login-dialog.d.ts +0 -1
- package/dist/modes/interactive/components/login-dialog.d.ts.map +1 -1
- package/dist/modes/interactive/components/login-dialog.js +3 -40
- package/dist/modes/interactive/components/login-dialog.js.map +1 -1
- package/dist/modes/interactive/components/model-selector.d.ts +2 -0
- package/dist/modes/interactive/components/model-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/model-selector.js +13 -2
- package/dist/modes/interactive/components/model-selector.js.map +1 -1
- package/dist/modes/interactive/components/oauth-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/oauth-selector.js +2 -11
- package/dist/modes/interactive/components/oauth-selector.js.map +1 -1
- package/dist/modes/interactive/feature-hints.d.ts.map +1 -1
- package/dist/modes/interactive/feature-hints.js +0 -4
- package/dist/modes/interactive/feature-hints.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +3 -12
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +81 -507
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/interactive/onboarding.d.ts +0 -3
- package/dist/modes/interactive/onboarding.d.ts.map +1 -1
- package/dist/modes/interactive/onboarding.js +0 -17
- package/dist/modes/interactive/onboarding.js.map +1 -1
- package/dist/modes/rpc/rpc-client.d.ts +2 -1
- package/dist/modes/rpc/rpc-client.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-client.js +24 -11
- package/dist/modes/rpc/rpc-client.js.map +1 -1
- package/dist/node/amazon-bedrock.d.ts +2 -0
- package/dist/node/amazon-bedrock.d.ts.map +1 -0
- package/dist/node/amazon-bedrock.js +6 -0
- package/dist/node/amazon-bedrock.js.map +1 -0
- package/dist/product-identity.d.ts +0 -1
- package/dist/product-identity.d.ts.map +1 -1
- package/dist/product-identity.js +0 -1
- package/dist/product-identity.js.map +1 -1
- package/docs/development.md +1 -1
- package/docs/fork-philosophy.md +4 -8
- package/docs/installation.md +83 -62
- package/docs/providers.md +23 -25
- package/docs/quickstart.md +19 -10
- package/docs/rlm-runtime.md +13 -5
- package/docs/rpc.md +4 -4
- package/docs/sdk.md +20 -11
- package/docs/sessions.md +0 -1
- package/docs/settings.md +9 -42
- package/docs/skills.md +0 -1
- package/docs/upstream-0.9.5.md +171 -0
- package/docs/usage.md +14 -10
- package/package.json +4 -4
- package/dist/core/agent-traces.d.ts +0 -149
- package/dist/core/agent-traces.d.ts.map +0 -1
- package/dist/core/agent-traces.js +0 -904
- package/dist/core/agent-traces.js.map +0 -1
- package/dist/core/prime-inference-auth.d.ts +0 -70
- package/dist/core/prime-inference-auth.d.ts.map +0 -1
- package/dist/core/prime-inference-auth.js +0 -352
- package/dist/core/prime-inference-auth.js.map +0 -1
- package/dist/core/prime-inference-model-selection.d.ts +0 -16
- package/dist/core/prime-inference-model-selection.d.ts.map +0 -1
- package/dist/core/prime-inference-model-selection.js +0 -16
- package/dist/core/prime-inference-model-selection.js.map +0 -1
- package/dist/core/prime-inference-models.d.ts +0 -6
- package/dist/core/prime-inference-models.d.ts.map +0 -1
- package/dist/core/prime-inference-models.js +0 -62
- package/dist/core/prime-inference-models.js.map +0 -1
- package/dist/core/telemetry.d.ts +0 -95
- package/dist/core/telemetry.d.ts.map +0 -1
- package/dist/core/telemetry.js +0 -637
- package/dist/core/telemetry.js.map +0 -1
- package/dist/modes/interactive/components/prime-onboarding-splash.d.ts +0 -39
- package/dist/modes/interactive/components/prime-onboarding-splash.d.ts.map +0 -1
- package/dist/modes/interactive/components/prime-onboarding-splash.js +0 -286
- package/dist/modes/interactive/components/prime-onboarding-splash.js.map +0 -1
- package/dist/modes/interactive/components/prime-team-selector.d.ts +0 -30
- package/dist/modes/interactive/components/prime-team-selector.d.ts.map +0 -1
- package/dist/modes/interactive/components/prime-team-selector.js +0 -166
- package/dist/modes/interactive/components/prime-team-selector.js.map +0 -1
- package/dist/skills/prime-intellect/SKILL.md +0 -87
- package/dist/skills/prime-intellect/references/compute.md +0 -45
- package/dist/skills/prime-intellect/references/environments.md +0 -73
- package/dist/skills/prime-intellect/references/inference.md +0 -47
- package/dist/skills/prime-intellect/references/sandboxes.md +0 -75
- package/skills/prime-intellect/SKILL.md +0 -87
- package/skills/prime-intellect/references/compute.md +0 -45
- package/skills/prime-intellect/references/environments.md +0 -73
- package/skills/prime-intellect/references/inference.md +0 -47
- package/skills/prime-intellect/references/sandboxes.md +0 -75
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.0.1] - 2026-09-16
|
|
4
|
+
|
|
5
|
+
- Made the Synerise base-context installer the primary setup path, with automatic prerequisites, optional shell-profile updates, and clear launch instructions.
|
|
6
|
+
- Changed fresh managed Python environments to Python 3.13 and refused cross-minor snapshots before restore without overwriting saved state.
|
|
7
|
+
- Removed remote telemetry, trace uploads and sharing, their configuration, and the `/traces` command; retained local diagnostics.
|
|
8
|
+
- Removed Prime account, provider, team, and billing integration and the bundled Prime products skill.
|
|
9
|
+
- Required provider-first fresh setup and explicit model selection, persisted the choice and login credentials, and removed scope-based model defaults.
|
|
10
|
+
- Preserved supported saved model selections while authentication needs setup.
|
|
11
|
+
- Fixed authentication failures to mark the credential used by the request rather than a replacement credential.
|
|
12
|
+
- Restored final exact progress notification for explicit saved-session list requests.
|
|
13
|
+
- Removed upstream-only Linear ticket checks and directed contribution links to Base Context.
|
|
14
|
+
- Prevented uv bootstrap from editing shell profiles before the installer’s explicit PATH consent.
|
|
15
|
+
- Prevented repeated installer runs from adding duplicate PATH entries for managed Node.js.
|
|
16
|
+
- Propagated failed RPC prompt admission to SDK callers without treating successful acknowledgement as completion.
|
|
17
|
+
- Removed remote session sharing through `/share` and stale `/traces` menu entries while retaining local `/export`.
|
|
18
|
+
- Removed stale Prime-team wording from model authentication errors.
|
|
19
|
+
- 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.
|
|
20
|
+
- Preserved subagent capacity across daemon worker recovery and saved-session resumes, and advanced the daemon contract to protocol 13 / schema 49.
|
|
21
|
+
- Released newly bound context sources when request admission closes during disposal, preventing child shutdown from hanging.
|
|
22
|
+
- Kept independently resumed live subagents visible and routable when their parent publishes inactive saved-child entries.
|
|
23
|
+
- Fixed Bedrock provider loading in the bundled Node CLI while retaining native request-attempt accounting and local logs.
|
|
24
|
+
- Fixed returning to the agents view during chat initialization without disposing its connection too early or applying late heartbeat updates.
|
|
25
|
+
- Fixed failed terminal turns being marked completed by using a factual error recap with the existing needs-input state, without a classifier request.
|
|
26
|
+
- 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)).
|
|
27
|
+
- Fixed credential rejection attribution when a custom authentication header overrides the selected API key.
|
|
28
|
+
- Handled current Python kernel pipe errors without crashing the worker (adapted from Prime Agent #2213).
|
|
29
|
+
- Prevented blocked input-pump idle waits from starving the I/O needed to resume queued work.
|
|
30
|
+
- Allowed Python `rlm.delete_subagent` to accept the handle returned by `await rlm(...)`, without changing the callable spawn API or subagent limits.
|
|
31
|
+
- Kept drafts alive during pending attaches and handled asynchronous discard failures without crashing other sessions.
|
|
32
|
+
- Rejected missing CLI option values, invalid modes and invalid thinking levels while retaining extension flags and `--` handling.
|
|
33
|
+
- Corrected RPC examples to protocol 13 and schema revision 49, and documented actual provider authentication availability.
|
|
34
|
+
- Reported background scheduler storage failures instead of letting an unhandled promise rejection terminate the daemon worker.
|
|
35
|
+
|
|
3
36
|
## [1.0.0] - 2026-09-15
|
|
4
37
|
|
|
5
38
|
- 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
|
-
[](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
|
|
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
|
-
|
|
15
|
+
On **macOS or Linux**, run the interactive installer:
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
|
-
|
|
19
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-

|
|
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.
|
|
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
|
-

|
|
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).
|
|
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/
|
|
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.
|
|
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
|
-
|
|
142
|
+
## License
|
|
126
143
|
|
|
127
|
-
See [LICENSE](LICENSE)
|
|
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.
|
|
@@ -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
|
|
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(
|
|
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
|
|
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:
|
package/dist/build-info.json
CHANGED
|
@@ -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-
|
|
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-
|
|
39
|
+
} from "./chunk-W46VZFI6.js";
|
|
40
40
|
import "./chunk-BAWSWWEU.js";
|
|
41
41
|
|
|
42
42
|
// ../../node_modules/@anthropic-ai/sdk/internal/tslib.mjs
|
package/dist/bundle/{azure-openai-responses-JRP6MIM3.js → azure-openai-responses-WSNPXLYC.js}
RENAMED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
convertResponsesMessages,
|
|
4
4
|
convertResponsesTools,
|
|
5
5
|
processResponsesStream
|
|
6
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
54
|
+
} from "./chunk-S3INFPZZ.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-
|
|
146
|
+
} from "./chunk-V3L54UD6.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-
|
|
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-
|
|
159
|
-
import "./chunk-
|
|
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
|
|
166
|
-
__export(
|
|
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":
|
|
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":
|
|
447
|
+
"@mariozechner/pi-coding-agent": dist_exports
|
|
393
448
|
};
|
|
394
449
|
export {
|
|
395
450
|
VIRTUAL_MODULES
|