@botiverse/oar 0.121.0 → 0.122.0
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/README.md +8 -6
- package/dist/community/cybion/client.d.ts +24 -0
- package/dist/community/cybion/client.d.ts.map +1 -0
- package/dist/community/cybion/client.js +42 -0
- package/dist/community/cybion/client.js.map +1 -0
- package/dist/community/cybion/index.d.ts +14 -0
- package/dist/community/cybion/index.d.ts.map +1 -0
- package/dist/community/cybion/index.js +30 -0
- package/dist/community/cybion/index.js.map +1 -0
- package/dist/community/cybion/projection.d.ts +7 -0
- package/dist/community/cybion/projection.d.ts.map +1 -0
- package/dist/community/cybion/projection.js +100 -0
- package/dist/community/cybion/projection.js.map +1 -0
- package/dist/community/cybion/refusal.d.ts +19 -0
- package/dist/community/cybion/refusal.d.ts.map +1 -0
- package/dist/community/cybion/refusal.js +23 -0
- package/dist/community/cybion/refusal.js.map +1 -0
- package/dist/community/cybion/refused-options.d.ts +4 -0
- package/dist/community/cybion/refused-options.d.ts.map +1 -0
- package/dist/community/cybion/refused-options.js +17 -0
- package/dist/community/cybion/refused-options.js.map +1 -0
- package/dist/community/cybion/session.d.ts +8 -0
- package/dist/community/cybion/session.d.ts.map +1 -0
- package/dist/community/cybion/session.js +283 -0
- package/dist/community/cybion/session.js.map +1 -0
- package/dist/community/cybion/thread.d.ts +75 -0
- package/dist/community/cybion/thread.d.ts.map +1 -0
- package/dist/community/cybion/thread.js +192 -0
- package/dist/community/cybion/thread.js.map +1 -0
- package/dist/community/cybion/tracker-facts.d.ts +38 -0
- package/dist/community/cybion/tracker-facts.d.ts.map +1 -0
- package/dist/community/cybion/tracker-facts.js +44 -0
- package/dist/community/cybion/tracker-facts.js.map +1 -0
- package/dist/community/cybion/tracker.d.ts +76 -0
- package/dist/community/cybion/tracker.d.ts.map +1 -0
- package/dist/community/cybion/tracker.js +244 -0
- package/dist/community/cybion/tracker.js.map +1 -0
- package/dist/community/index.d.ts +1 -0
- package/dist/community/index.d.ts.map +1 -1
- package/dist/community/index.js +1 -0
- package/dist/community/index.js.map +1 -1
- package/dist/contracts/account-usage.d.ts +3 -1
- package/dist/contracts/account-usage.d.ts.map +1 -1
- package/dist/contracts/index.d.ts +3 -3
- package/dist/contracts/index.d.ts.map +1 -1
- package/dist/contracts/index.js +1 -1
- package/dist/contracts/index.js.map +1 -1
- package/dist/contracts/login.d.ts +6 -0
- package/dist/contracts/login.d.ts.map +1 -1
- package/dist/contracts/orientation.d.ts +5 -0
- package/dist/contracts/orientation.d.ts.map +1 -1
- package/dist/contracts/records.d.ts +1 -1
- package/dist/contracts/records.d.ts.map +1 -1
- package/dist/contracts/runtime.d.ts +70 -3
- package/dist/contracts/runtime.d.ts.map +1 -1
- package/dist/contracts/runtime.js +25 -0
- package/dist/contracts/runtime.js.map +1 -1
- package/dist/contracts/session-options.d.ts +10 -10
- package/dist/platforms.d.ts +25 -0
- package/dist/platforms.d.ts.map +1 -0
- package/dist/platforms.js +16 -0
- package/dist/platforms.js.map +1 -0
- package/dist/runtimes/antigravity/index.d.ts +4 -1
- package/dist/runtimes/antigravity/index.d.ts.map +1 -1
- package/dist/runtimes/antigravity/index.js +2 -1
- package/dist/runtimes/antigravity/index.js.map +1 -1
- package/dist/runtimes/antigravity/skill-files.d.ts.map +1 -1
- package/dist/runtimes/antigravity/skill-files.js +44 -18
- package/dist/runtimes/antigravity/skill-files.js.map +1 -1
- package/dist/runtimes/antigravity/skill-manifests.d.ts +2 -0
- package/dist/runtimes/antigravity/skill-manifests.d.ts.map +1 -1
- package/dist/runtimes/antigravity/skill-manifests.js +11 -16
- package/dist/runtimes/antigravity/skill-manifests.js.map +1 -1
- package/dist/runtimes/claude/account-usage.d.ts.map +1 -1
- package/dist/runtimes/claude/account-usage.js +9 -7
- package/dist/runtimes/claude/account-usage.js.map +1 -1
- package/dist/runtimes/claude/auth-status.d.ts.map +1 -1
- package/dist/runtimes/claude/auth-status.js +6 -1
- package/dist/runtimes/claude/auth-status.js.map +1 -1
- package/dist/runtimes/claude/fork-identity.d.ts +2 -2
- package/dist/runtimes/claude/fork-identity.d.ts.map +1 -1
- package/dist/runtimes/claude/fork-identity.js +21 -16
- package/dist/runtimes/claude/fork-identity.js.map +1 -1
- package/dist/runtimes/claude/global-config.d.ts +3 -0
- package/dist/runtimes/claude/global-config.d.ts.map +1 -0
- package/dist/runtimes/claude/global-config.js +36 -0
- package/dist/runtimes/claude/global-config.js.map +1 -0
- package/dist/runtimes/claude/index.d.ts +4 -1
- package/dist/runtimes/claude/index.d.ts.map +1 -1
- package/dist/runtimes/claude/index.js +2 -1
- package/dist/runtimes/claude/index.js.map +1 -1
- package/dist/runtimes/claude/last-account.d.ts +4 -0
- package/dist/runtimes/claude/last-account.d.ts.map +1 -0
- package/dist/runtimes/claude/last-account.js +15 -0
- package/dist/runtimes/claude/last-account.js.map +1 -0
- package/dist/runtimes/claude/launch.js +3 -3
- package/dist/runtimes/claude/launch.js.map +1 -1
- package/dist/runtimes/claude/limit-reset/driver.d.ts.map +1 -1
- package/dist/runtimes/claude/limit-reset/driver.js +6 -34
- package/dist/runtimes/claude/limit-reset/driver.js.map +1 -1
- package/dist/runtimes/claude/open-settings.d.ts +2 -2
- package/dist/runtimes/claude/open-settings.d.ts.map +1 -1
- package/dist/runtimes/claude/open-settings.js +13 -6
- package/dist/runtimes/claude/open-settings.js.map +1 -1
- package/dist/runtimes/claude/projection.d.ts.map +1 -1
- package/dist/runtimes/claude/projection.js +6 -1
- package/dist/runtimes/claude/projection.js.map +1 -1
- package/dist/runtimes/claude/session.d.ts.map +1 -1
- package/dist/runtimes/claude/session.js +4 -3
- package/dist/runtimes/claude/session.js.map +1 -1
- package/dist/runtimes/codebuddy/index.d.ts +4 -1
- package/dist/runtimes/codebuddy/index.d.ts.map +1 -1
- package/dist/runtimes/codebuddy/index.js +2 -1
- package/dist/runtimes/codebuddy/index.js.map +1 -1
- package/dist/runtimes/codex/index.d.ts +4 -1
- package/dist/runtimes/codex/index.d.ts.map +1 -1
- package/dist/runtimes/codex/index.js +2 -1
- package/dist/runtimes/codex/index.js.map +1 -1
- package/dist/runtimes/cursor/index.d.ts.map +1 -1
- package/dist/runtimes/cursor/index.js +0 -1
- package/dist/runtimes/cursor/index.js.map +1 -1
- package/dist/runtimes/devin/index.d.ts +3 -1
- package/dist/runtimes/devin/index.d.ts.map +1 -1
- package/dist/runtimes/dsh/bridge-controls.d.ts +3 -0
- package/dist/runtimes/dsh/bridge-controls.d.ts.map +1 -0
- package/dist/runtimes/dsh/bridge-controls.js +67 -0
- package/dist/runtimes/dsh/bridge-controls.js.map +1 -0
- package/dist/runtimes/dsh/bridge-input.d.ts +3 -0
- package/dist/runtimes/dsh/bridge-input.d.ts.map +1 -0
- package/dist/runtimes/dsh/bridge-input.js +51 -0
- package/dist/runtimes/dsh/bridge-input.js.map +1 -0
- package/dist/runtimes/dsh/bridge.d.ts.map +1 -1
- package/dist/runtimes/dsh/bridge.js +24 -52
- package/dist/runtimes/dsh/bridge.js.map +1 -1
- package/dist/runtimes/dsh/compaction.d.ts +5 -0
- package/dist/runtimes/dsh/compaction.d.ts.map +1 -0
- package/dist/runtimes/dsh/compaction.js +73 -0
- package/dist/runtimes/dsh/compaction.js.map +1 -0
- package/dist/runtimes/dsh/control.d.ts +1 -1
- package/dist/runtimes/dsh/control.d.ts.map +1 -1
- package/dist/runtimes/dsh/control.js +1 -1
- package/dist/runtimes/dsh/control.js.map +1 -1
- package/dist/runtimes/dsh/index.d.ts +39 -3
- package/dist/runtimes/dsh/index.d.ts.map +1 -1
- package/dist/runtimes/dsh/index.js +13 -2
- package/dist/runtimes/dsh/index.js.map +1 -1
- package/dist/runtimes/dsh/jobs.d.ts +3 -1
- package/dist/runtimes/dsh/jobs.d.ts.map +1 -1
- package/dist/runtimes/dsh/jobs.js +20 -1
- package/dist/runtimes/dsh/jobs.js.map +1 -1
- package/dist/runtimes/dsh/launch.d.ts +0 -2
- package/dist/runtimes/dsh/launch.d.ts.map +1 -1
- package/dist/runtimes/dsh/launch.js +1 -6
- package/dist/runtimes/dsh/launch.js.map +1 -1
- package/dist/runtimes/dsh/options.d.ts +2 -0
- package/dist/runtimes/dsh/options.d.ts.map +1 -1
- package/dist/runtimes/dsh/options.js +11 -1
- package/dist/runtimes/dsh/options.js.map +1 -1
- package/dist/runtimes/dsh/projection.d.ts.map +1 -1
- package/dist/runtimes/dsh/projection.js +6 -1
- package/dist/runtimes/dsh/projection.js.map +1 -1
- package/dist/runtimes/dsh/session.d.ts.map +1 -1
- package/dist/runtimes/dsh/session.js +37 -11
- package/dist/runtimes/dsh/session.js.map +1 -1
- package/dist/runtimes/dsh/version.d.ts +1 -2
- package/dist/runtimes/dsh/version.d.ts.map +1 -1
- package/dist/runtimes/dsh/version.js +3 -46
- package/dist/runtimes/dsh/version.js.map +1 -1
- package/dist/runtimes/factory/compaction.d.ts +1 -1
- package/dist/runtimes/factory/compaction.d.ts.map +1 -1
- package/dist/runtimes/factory/compaction.js +35 -51
- package/dist/runtimes/factory/compaction.js.map +1 -1
- package/dist/runtimes/factory/index.d.ts +4 -1
- package/dist/runtimes/factory/index.d.ts.map +1 -1
- package/dist/runtimes/factory/index.js +2 -1
- package/dist/runtimes/factory/index.js.map +1 -1
- package/dist/runtimes/factory/session.d.ts.map +1 -1
- package/dist/runtimes/factory/session.js +26 -20
- package/dist/runtimes/factory/session.js.map +1 -1
- package/dist/runtimes/grok/account-info.d.ts +11 -0
- package/dist/runtimes/grok/account-info.d.ts.map +1 -0
- package/dist/runtimes/grok/account-info.js +60 -0
- package/dist/runtimes/grok/account-info.js.map +1 -0
- package/dist/runtimes/grok/account-usage.d.ts +0 -2
- package/dist/runtimes/grok/account-usage.d.ts.map +1 -1
- package/dist/runtimes/grok/account-usage.js +30 -48
- package/dist/runtimes/grok/account-usage.js.map +1 -1
- package/dist/runtimes/grok/auth.d.ts.map +1 -1
- package/dist/runtimes/grok/auth.js +9 -2
- package/dist/runtimes/grok/auth.js.map +1 -1
- package/dist/runtimes/grok/index.d.ts +4 -1
- package/dist/runtimes/grok/index.d.ts.map +1 -1
- package/dist/runtimes/grok/index.js +2 -1
- package/dist/runtimes/grok/index.js.map +1 -1
- package/dist/runtimes/kimi/index.d.ts +4 -1
- package/dist/runtimes/kimi/index.d.ts.map +1 -1
- package/dist/runtimes/kimi/index.js +2 -1
- package/dist/runtimes/kimi/index.js.map +1 -1
- package/dist/runtimes/opencode/index.d.ts +7 -6
- package/dist/runtimes/opencode/index.d.ts.map +1 -1
- package/dist/runtimes/opencode/index.js +6 -5
- package/dist/runtimes/opencode/index.js.map +1 -1
- package/dist/runtimes/opencode/options.d.ts +5 -1
- package/dist/runtimes/opencode/options.d.ts.map +1 -1
- package/dist/runtimes/opencode/options.js +34 -1
- package/dist/runtimes/opencode/options.js.map +1 -1
- package/dist/runtimes/opencode/prompt-config-v2.d.ts +15 -0
- package/dist/runtimes/opencode/prompt-config-v2.d.ts.map +1 -0
- package/dist/runtimes/opencode/prompt-config-v2.js +75 -0
- package/dist/runtimes/opencode/prompt-config-v2.js.map +1 -0
- package/dist/runtimes/opencode/prompt-config.d.ts +12 -0
- package/dist/runtimes/opencode/prompt-config.d.ts.map +1 -1
- package/dist/runtimes/opencode/prompt-config.js +32 -19
- package/dist/runtimes/opencode/prompt-config.js.map +1 -1
- package/dist/runtimes/opencode/retry.d.ts +5 -0
- package/dist/runtimes/opencode/retry.d.ts.map +1 -0
- package/dist/runtimes/opencode/retry.js +20 -0
- package/dist/runtimes/opencode/retry.js.map +1 -0
- package/dist/runtimes/opencode/session.d.ts +1 -0
- package/dist/runtimes/opencode/session.d.ts.map +1 -1
- package/dist/runtimes/opencode/session.js +31 -8
- package/dist/runtimes/opencode/session.js.map +1 -1
- package/dist/runtimes/opencode/shared-session.d.ts.map +1 -1
- package/dist/runtimes/opencode/shared-session.js +7 -2
- package/dist/runtimes/opencode/shared-session.js.map +1 -1
- package/dist/runtimes/opencode/token-usage.d.ts +5 -0
- package/dist/runtimes/opencode/token-usage.d.ts.map +1 -0
- package/dist/runtimes/opencode/token-usage.js +31 -0
- package/dist/runtimes/opencode/token-usage.js.map +1 -0
- package/dist/runtimes/opencode/upgrade.d.ts +4 -0
- package/dist/runtimes/opencode/upgrade.d.ts.map +1 -0
- package/dist/runtimes/opencode/upgrade.js +21 -0
- package/dist/runtimes/opencode/upgrade.js.map +1 -0
- package/dist/runtimes/pi/index.d.ts.map +1 -1
- package/dist/runtimes/pi/index.js +2 -1
- package/dist/runtimes/pi/index.js.map +1 -1
- package/dist/runtimes/pi/inventory.d.ts.map +1 -1
- package/dist/runtimes/pi/inventory.js +5 -2
- package/dist/runtimes/pi/inventory.js.map +1 -1
- package/dist/runtimes/pi/rpc/open.d.ts.map +1 -1
- package/dist/runtimes/pi/rpc/open.js +1 -0
- package/dist/runtimes/pi/rpc/open.js.map +1 -1
- package/dist/runtimes/pi-durable/index.d.ts.map +1 -1
- package/dist/runtimes/pi-durable/index.js +2 -1
- package/dist/runtimes/pi-durable/index.js.map +1 -1
- package/dist/runtimes/qoder/index.d.ts +4 -1
- package/dist/runtimes/qoder/index.d.ts.map +1 -1
- package/dist/runtimes/qoder/index.js +2 -1
- package/dist/runtimes/qoder/index.js.map +1 -1
- package/dist/runtimes/qoder/launch.js +1 -1
- package/dist/runtimes/qoder/launch.js.map +1 -1
- package/dist/runtimes/qoder/projection.d.ts.map +1 -1
- package/dist/runtimes/qoder/projection.js +2 -1
- package/dist/runtimes/qoder/projection.js.map +1 -1
- package/dist/runtimes/qwen/index.d.ts +4 -1
- package/dist/runtimes/qwen/index.d.ts.map +1 -1
- package/dist/runtimes/qwen/index.js +2 -1
- package/dist/runtimes/qwen/index.js.map +1 -1
- package/dist/runtimes/qwen/launch.js +1 -1
- package/dist/runtimes/qwen/launch.js.map +1 -1
- package/dist/shared/acp/profile.d.ts +5 -3
- package/dist/shared/acp/profile.d.ts.map +1 -1
- package/dist/shared/acp/profile.js +34 -17
- package/dist/shared/acp/profile.js.map +1 -1
- package/dist/shared/acp/records.js +9 -9
- package/dist/shared/acp/records.js.map +1 -1
- package/dist/shared/acp/session.d.ts +3 -2
- package/dist/shared/acp/session.d.ts.map +1 -1
- package/dist/shared/acp/session.js +3 -3
- package/dist/shared/acp/session.js.map +1 -1
- package/dist/shared/acp/shared-session.d.ts.map +1 -1
- package/dist/shared/acp/shared-session.js +8 -2
- package/dist/shared/acp/shared-session.js.map +1 -1
- package/dist/shared/acp/token-usage.d.ts +1 -1
- package/dist/shared/acp/token-usage.d.ts.map +1 -1
- package/dist/shared/acp/token-usage.js +2 -2
- package/dist/shared/acp/token-usage.js.map +1 -1
- package/dist/shared/acp/turn-terminals.d.ts.map +1 -1
- package/dist/shared/acp/turn-terminals.js +59 -48
- package/dist/shared/acp/turn-terminals.js.map +1 -1
- package/dist/shared/orientation/index.d.ts.map +1 -1
- package/dist/shared/orientation/index.js +7 -2
- package/dist/shared/orientation/index.js.map +1 -1
- package/dist/shared/process-session.d.ts +2 -1
- package/dist/shared/process-session.d.ts.map +1 -1
- package/dist/shared/process-session.js +1 -2
- package/dist/shared/process-session.js.map +1 -1
- package/dist/shared/semver.d.ts +10 -0
- package/dist/shared/semver.d.ts.map +1 -0
- package/dist/shared/semver.js +46 -0
- package/dist/shared/semver.js.map +1 -0
- package/dist/shared/session-options.d.ts +6 -0
- package/dist/shared/session-options.d.ts.map +1 -1
- package/dist/shared/session-options.js +15 -0
- package/dist/shared/session-options.js.map +1 -1
- package/dist/shared/stream-json/profile.d.ts +2 -0
- package/dist/shared/stream-json/profile.d.ts.map +1 -1
- package/dist/shared/stream-json/projection.d.ts.map +1 -1
- package/dist/shared/stream-json/projection.js +30 -2
- package/dist/shared/stream-json/projection.js.map +1 -1
- package/dist/shared/stream-json/session.d.ts.map +1 -1
- package/dist/shared/stream-json/session.js +1 -0
- package/dist/shared/stream-json/session.js.map +1 -1
- package/dist/shared/stream-json/state.d.ts +2 -0
- package/dist/shared/stream-json/state.d.ts.map +1 -1
- package/dist/shared/stream-json/state.js +1 -0
- package/dist/shared/stream-json/state.js.map +1 -1
- package/dist/shared/update.d.ts +2 -0
- package/dist/shared/update.d.ts.map +1 -1
- package/dist/shared/update.js +6 -2
- package/dist/shared/update.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/** Native job ownership and session-scoped sandbox grants in the DSH process. */
|
|
2
|
+
export const dshControlSource = String.raw `
|
|
3
|
+
const jobs = ctx.get("jobs");
|
|
4
|
+
const configureDirectories = (agent, request) => {
|
|
5
|
+
if (request.additionalDirectories?.length > 0) {
|
|
6
|
+
const policy = agent.scope.ctx.get("sandboxPolicy");
|
|
7
|
+
requireMethod(policy, "registerWritableRoot", "additionalDirectories");
|
|
8
|
+
for (const directory of request.additionalDirectories) {
|
|
9
|
+
const unregister = policy.registerWritableRoot(agent.session, directory);
|
|
10
|
+
agent.scope.ctx.effect(() => unregister);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
const configureTools = (agent, request) => {
|
|
15
|
+
if (request.disallowedTools?.length > 0) {
|
|
16
|
+
const tools = agent.scope?.ctx?.tools;
|
|
17
|
+
requireMethod(tools, "restrict", "disallowedTools");
|
|
18
|
+
requireMethod(tools, "get", "disallowedTools");
|
|
19
|
+
requireMethod(agent.scope.ctx, "on", "disallowedTools");
|
|
20
|
+
try { tools.restrict({ deny: request.disallowedTools }); }
|
|
21
|
+
catch (error) { throw refusal("option_not_applied", String(error?.message ?? error), "disallowedTools"); }
|
|
22
|
+
agent.scope.ctx.on("agent/created", ({ agent: created }) => {
|
|
23
|
+
if (created !== agent) { return; }
|
|
24
|
+
for (const name of request.disallowedTools) {
|
|
25
|
+
if (tools.get(name, agent) !== undefined) {
|
|
26
|
+
throw refusal("option_not_applied", "The native tool remains available: " + name, "disallowedTools");
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
const compacting = new Map();
|
|
34
|
+
const sessionControls = {
|
|
35
|
+
async compact(request) {
|
|
36
|
+
const { agent } = owned(request.sessionId);
|
|
37
|
+
const service = ctx.get("compaction");
|
|
38
|
+
requireMethod(service, "compactNow", "manual compaction");
|
|
39
|
+
if (agent.status !== "idle" || agent.inbox?.nextTurn?.length || admissions.has(agent) || compacting.has(agent)) throw refusal("busy", "DSH has pending input or an active operation");
|
|
40
|
+
const controller = new AbortController();
|
|
41
|
+
compacting.set(agent, controller);
|
|
42
|
+
try { return { result: await service.compactNow(agent, controller.signal, request.commandId) }; }
|
|
43
|
+
finally { compacting.delete(agent); }
|
|
44
|
+
},
|
|
45
|
+
cancelCompaction(request) {
|
|
46
|
+
const { agent } = owned(request.sessionId);
|
|
47
|
+
const controller = compacting.get(agent);
|
|
48
|
+
if (!controller) throw refusal("busy", "No live native compaction target");
|
|
49
|
+
controller.abort();
|
|
50
|
+
return {};
|
|
51
|
+
},
|
|
52
|
+
async stopTask(request) {
|
|
53
|
+
const { agent } = owned(request.sessionId);
|
|
54
|
+
const owner = agent.session.id;
|
|
55
|
+
const job = jobs.get(request.taskId, owner);
|
|
56
|
+
if (job.owner !== owner || (job.kind !== "bash" && job.kind !== "pwsh")) {
|
|
57
|
+
throw refusal("unsupported_task", "DSH can stop only a shell job owned by this session");
|
|
58
|
+
}
|
|
59
|
+
const result = jobs.kill(job.id, owner, "Stopped by host");
|
|
60
|
+
if (result !== "requested") { throw refusal("job_finished", "DSH reports that this shell job already finished"); }
|
|
61
|
+
const settled = await jobs.wait(job.id, 5000, owner);
|
|
62
|
+
if (settled.status !== "killed") { throw refusal("job_not_killed", "DSH reported shell job status " + settled.status); }
|
|
63
|
+
return { jobId: settled.id, status: settled.status };
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
`;
|
|
67
|
+
//# sourceMappingURL=bridge-controls.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bridge-controls.js","sources":["../../../src/runtimes/dsh/bridge-controls.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgEzC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bridge-input.d.ts","sources":["../../../src/runtimes/dsh/bridge-input.ts"],"names":[],"mappings":"AAAA,4GAA4G;AAC5G,eAAO,MAAM,cAAc,QAgD1B,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/** Persist incoming bytes in DSH's attachment store and send its durable references in the user message. */
|
|
2
|
+
export const dshInputSource = String.raw `
|
|
3
|
+
const routes = new WeakMap();
|
|
4
|
+
const admissions = new WeakMap();
|
|
5
|
+
const supportedMedia = ["image/png", "image/jpeg", "image/gif", "image/webp"];
|
|
6
|
+
async function imageTypes(agent) {
|
|
7
|
+
const route = agent.model?.current?.() ?? routes.get(agent);
|
|
8
|
+
const attachments = ctx.get("attachments");
|
|
9
|
+
const llm = ctx.get("llm");
|
|
10
|
+
if (!route?.provider || !route.model || typeof attachments?.saveImages !== "function" || typeof llm?.resolveModelInfo !== "function") return [];
|
|
11
|
+
try {
|
|
12
|
+
const info = await llm.resolveModelInfo(route.provider, route.model);
|
|
13
|
+
return info.inputModalities?.includes("image") ? supportedMedia.filter(type => attachments.imageLimits?.mediaTypes?.includes(type)) : [];
|
|
14
|
+
} catch { return []; }
|
|
15
|
+
}
|
|
16
|
+
const submit = async (agent, method, request) => {
|
|
17
|
+
const isImage = request.images?.length > 0;
|
|
18
|
+
const verify = () => {
|
|
19
|
+
if (compacting.has(agent)) throw refusal("busy", "DSH is compacting this session");
|
|
20
|
+
if (method === "prompt" && agent.status !== "idle") throw refusal("busy", "busy");
|
|
21
|
+
if (method === "steer" && agent.status === "idle") throw refusal("no_active_turn", "no active turn");
|
|
22
|
+
};
|
|
23
|
+
const action = method === "steer" ? "steer" : "followup";
|
|
24
|
+
requireMethod(agent, action, method);
|
|
25
|
+
verify();
|
|
26
|
+
const content = request.text.length > 0 || !isImage ? [{ type: "text", text: request.text }] : [];
|
|
27
|
+
if (isImage) {
|
|
28
|
+
const types = await imageTypes(agent);
|
|
29
|
+
if (request.images.some(image => !types.includes(image.mediaType))) throw refusal("image_unsupported", "This DSH model or attachment store does not accept the requested image type");
|
|
30
|
+
const refs = await ctx.get("attachments").saveImages(request.images.map(image => ({ data: Buffer.from(image.data, "base64"), mediaType: image.mediaType })));
|
|
31
|
+
if (refs.length !== request.images.length) throw refusal("native_attachment_error", "DSH did not store every submitted image");
|
|
32
|
+
for (const attachment of refs) content.push({ type: "image", attachment });
|
|
33
|
+
verify();
|
|
34
|
+
}
|
|
35
|
+
const message = Object.freeze({ id: request.inputId ?? randomUUID(), role: "user", content: Object.freeze(content), source: Object.freeze({ kind: "user" }) });
|
|
36
|
+
cause = method === "prompt" ? "prompt" : undefined;
|
|
37
|
+
try { agent[action](message); } finally { cause = undefined; }
|
|
38
|
+
return { messageId: message.id };
|
|
39
|
+
};
|
|
40
|
+
const admitInput = (method, request) => {
|
|
41
|
+
const { agent } = owned(request.sessionId);
|
|
42
|
+
const previous = admissions.get(agent);
|
|
43
|
+
const run = () => submit(agent, method, request);
|
|
44
|
+
const next = previous === undefined ? run() : previous.then(run, run);
|
|
45
|
+
admissions.set(agent, next);
|
|
46
|
+
const clear = () => { if (admissions.get(agent) === next) admissions.delete(agent); };
|
|
47
|
+
next.then(clear, clear);
|
|
48
|
+
return next;
|
|
49
|
+
};
|
|
50
|
+
`;
|
|
51
|
+
//# sourceMappingURL=bridge-input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bridge-input.js","sources":["../../../src/runtimes/dsh/bridge-input.ts"],"names":[],"mappings":"AAAA,4GAA4G;AAC5G,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDvC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bridge.d.ts","sources":["../../../src/runtimes/dsh/bridge.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"bridge.d.ts","sources":["../../../src/runtimes/dsh/bridge.ts"],"names":[],"mappings":"AAKA,gIAAgI;AAChI,eAAO,MAAM,mBAAmB,IAAI,CAAC;AAErC;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,eAAe,QAoP3B,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { dshInputSource } from "./bridge-input.js";
|
|
2
|
+
import { dshControlSource } from "./bridge-controls.js";
|
|
1
3
|
import { dshGoalSource } from "./bridge-goal.js";
|
|
2
4
|
import { dshPromptSource } from "./bridge-prompt.js";
|
|
3
5
|
/** Revision of the internal transport between this source and `control.ts`. Both ship together; it is not a public protocol. */
|
|
@@ -58,10 +60,7 @@ function requireMethod(target, key, capability) {
|
|
|
58
60
|
}
|
|
59
61
|
}
|
|
60
62
|
|
|
61
|
-
|
|
62
|
-
const id = inputId ?? randomUUID();
|
|
63
|
-
return Object.freeze({ id, role: "user", content: Object.freeze([Object.freeze({ type: "text", text })]), source: Object.freeze({ kind: "user" }) });
|
|
64
|
-
}
|
|
63
|
+
|
|
65
64
|
|
|
66
65
|
export function apply(ctx, config) {
|
|
67
66
|
const loader = ctx.get("loader");
|
|
@@ -92,6 +91,7 @@ export function apply(ctx, config) {
|
|
|
92
91
|
function boot(ctx) {
|
|
93
92
|
const agents = ctx.get("agents");
|
|
94
93
|
const persistence = ctx.get("sessionPersistence");
|
|
94
|
+
${dshControlSource}
|
|
95
95
|
const handles = new Map();
|
|
96
96
|
const owned = (sessionId) => {
|
|
97
97
|
const handle = handles.get(sessionId);
|
|
@@ -107,11 +107,14 @@ function boot(ctx) {
|
|
|
107
107
|
ctx.on("agent/error", ({ agent, turn, step, error }) => { write({ type: "native", channel: "agent/error", sessionId: agent.session.id, turn, step, error: structured(error) }); });
|
|
108
108
|
for (const channel of ["subagent/start", "subagent/end"]) { ctx.on(channel, (info) => { write({ type: "native", channel, info }); }); }
|
|
109
109
|
|
|
110
|
-
|
|
110
|
+
${dshInputSource}
|
|
111
|
+
const opened = async (handle, route) => {
|
|
111
112
|
const { agent } = handle;
|
|
112
113
|
handles.set(agent.session.id, handle);
|
|
114
|
+
routes.set(agent, route);
|
|
113
115
|
const modelCurrent = typeof agent.model?.current === "function";
|
|
114
|
-
return { sessionId: agent.session.id, header: agent.session.header, status: agent.status,
|
|
116
|
+
return { compact: typeof ctx.get("compaction")?.compactNow === "function", imageTypes: await imageTypes(agent), sessionId: agent.session.id, header: agent.session.header, status: agent.status,
|
|
117
|
+
jobMethods: methods(jobs, ["get", "kill", "wait"]),
|
|
115
118
|
methods: methods(agent, AGENT_METHODS), inboxMethods: methods(agent.inbox, INBOX_METHODS),
|
|
116
119
|
pending: { nextTurn: agent.inbox?.nextTurn?.length, nextStep: agent.inbox?.nextStep?.length },
|
|
117
120
|
modelCurrent, ...(modelCurrent ? { model: agent.model.current() } : {}) };
|
|
@@ -132,26 +135,8 @@ function boot(ctx) {
|
|
|
132
135
|
return typeof defaults?.currentSelection === "function" ? defaults.currentSelection() : {};
|
|
133
136
|
};
|
|
134
137
|
|
|
135
|
-
const configureTools = (agent, request) => {
|
|
136
|
-
if (request.disallowedTools?.length > 0) {
|
|
137
|
-
const tools = agent.scope?.ctx?.tools;
|
|
138
|
-
requireMethod(tools, "restrict", "disallowedTools");
|
|
139
|
-
requireMethod(tools, "get", "disallowedTools");
|
|
140
|
-
requireMethod(agent.scope.ctx, "on", "disallowedTools");
|
|
141
|
-
try { tools.restrict({ deny: request.disallowedTools }); }
|
|
142
|
-
catch (error) { throw refusal("option_not_applied", String(error?.message ?? error), "disallowedTools"); }
|
|
143
|
-
agent.scope.ctx.on("agent/created", ({ agent: created }) => {
|
|
144
|
-
if (created !== agent) { return; }
|
|
145
|
-
for (const name of request.disallowedTools) {
|
|
146
|
-
if (tools.get(name, agent) !== undefined) {
|
|
147
|
-
throw refusal("option_not_applied", "The native tool remains available: " + name, "disallowedTools");
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
};
|
|
153
|
-
|
|
154
138
|
${dshPromptSource} const configureSession = (agent, request) => {
|
|
139
|
+
configureDirectories(agent, request);
|
|
155
140
|
configureTools(agent, request);
|
|
156
141
|
configurePrompt(agent, request);
|
|
157
142
|
};
|
|
@@ -159,6 +144,7 @@ ${dshPromptSource} const configureSession = (agent, request) => {
|
|
|
159
144
|
${dshGoalSource}
|
|
160
145
|
const commands = {
|
|
161
146
|
...goalCommands,
|
|
147
|
+
...sessionControls,
|
|
162
148
|
name(request) {
|
|
163
149
|
const { agent } = owned(request.sessionId);
|
|
164
150
|
const title = ctx.get("sessionTitle");
|
|
@@ -174,7 +160,7 @@ ${dshGoalSource}
|
|
|
174
160
|
requireMethod(agents, "create", "opening a session");
|
|
175
161
|
const explicit = request.agentOptions ?? {};
|
|
176
162
|
const route = await validated(explicit.provider === undefined ? { ...defaultRoute(), ...explicit } : explicit, explicit);
|
|
177
|
-
return opened(await agents.create({ sessionId: request.sessionId, meta: { cwd: request.cwd }, agentOptions: route, setup: (_ctx, agent) => configureSession(agent, request) }));
|
|
163
|
+
return opened(await agents.create({ sessionId: request.sessionId, meta: { cwd: request.cwd }, agentOptions: route, setup: (_ctx, agent) => configureSession(agent, request) }), route);
|
|
178
164
|
},
|
|
179
165
|
// The saved header and route, read without taking the session over.
|
|
180
166
|
async peek(request) {
|
|
@@ -194,35 +180,21 @@ ${dshGoalSource}
|
|
|
194
180
|
const explicit = request.agentOptions ?? {};
|
|
195
181
|
const saved = request.route ?? defaultRoute();
|
|
196
182
|
const route = await validated(explicit.provider === undefined ? { ...saved, ...explicit } : explicit, explicit);
|
|
197
|
-
const handle = await agents.resume({ resumeSessionId: request.sessionId, agentOptions: route, setup: (_ctx, agent) =>
|
|
183
|
+
const handle = await agents.resume({ resumeSessionId: request.sessionId, agentOptions: route, setup: (_ctx, agent) => {
|
|
184
|
+
// Read the restored log before creation hooks can start another request.
|
|
185
|
+
const last = agent.session.requestContext?.();
|
|
186
|
+
if (typeof last?.contextWindow === "number" && (explicit.provider === undefined || (last.provider === explicit.provider && last.model === explicit.model))) {
|
|
187
|
+
write({ type: "native", channel: "session/requestContext", sessionId: agent.session.id, contextWindow: last.contextWindow });
|
|
188
|
+
}
|
|
189
|
+
configureSession(agent, request);
|
|
190
|
+
} });
|
|
198
191
|
// Releases with a recorded selection keep the saved route over these options unless told otherwise.
|
|
199
192
|
if ((explicit.provider !== undefined || explicit.reasoningEffort !== undefined) && typeof handle.agent.model?.select === "function") { handle.agent.model.select(route); }
|
|
200
|
-
return opened(handle);
|
|
201
|
-
},
|
|
202
|
-
prompt(request) {
|
|
203
|
-
const { agent } = owned(request.sessionId);
|
|
204
|
-
requireMethod(agent, "followup", "prompt");
|
|
205
|
-
if (agent.status !== "idle") { throw refusal("busy", "busy"); }
|
|
206
|
-
const message = userMessage(request.text, request.inputId);
|
|
207
|
-
cause = "prompt";
|
|
208
|
-
try { agent.followup(message); } finally { cause = undefined; }
|
|
209
|
-
return { messageId: message.id };
|
|
210
|
-
},
|
|
211
|
-
queue(request) {
|
|
212
|
-
const { agent } = owned(request.sessionId);
|
|
213
|
-
requireMethod(agent, "followup", "queue");
|
|
214
|
-
const message = userMessage(request.text, request.inputId);
|
|
215
|
-
agent.followup(message);
|
|
216
|
-
return { messageId: message.id };
|
|
217
|
-
},
|
|
218
|
-
steer(request) {
|
|
219
|
-
const { agent } = owned(request.sessionId);
|
|
220
|
-
requireMethod(agent, "steer", "steer");
|
|
221
|
-
if (agent.status === "idle") { throw refusal("no_active_turn", "no active turn"); }
|
|
222
|
-
const message = userMessage(request.text, request.inputId);
|
|
223
|
-
agent.steer(message);
|
|
224
|
-
return { messageId: message.id };
|
|
193
|
+
return opened(handle, route);
|
|
225
194
|
},
|
|
195
|
+
prompt: request => admitInput("prompt", request),
|
|
196
|
+
queue: request => admitInput("queue", request),
|
|
197
|
+
steer: request => admitInput("steer", request),
|
|
226
198
|
withdraw(request) {
|
|
227
199
|
const { agent } = owned(request.sessionId);
|
|
228
200
|
requireMethod(agent.inbox, "remove", "withdraw");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bridge.js","sources":["../../../src/runtimes/dsh/bridge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,gIAAgI;AAChI,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC;AAErC;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;mBAKtB,MAAM,CAAC,mBAAmB,CAAC
|
|
1
|
+
{"version":3,"file":"bridge.js","sources":["../../../src/runtimes/dsh/bridge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,gIAAgI;AAChI,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC;AAErC;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;mBAKtB,MAAM,CAAC,mBAAmB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsE5C,gBAAgB;;;;;;;;;;;;;;;;EAgBhB,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4Bd,eAAe;;;;;;EAMf,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuHd,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { manualCompaction } from "../../shared/manual-compaction.js";
|
|
2
|
+
import type { SessionKernel } from "../../shared/session-kernel.js";
|
|
3
|
+
import { type DshControl } from "./control.js";
|
|
4
|
+
export declare function dshCompaction(kernel: SessionKernel, control: DshControl, busy: () => boolean): ReturnType<typeof manualCompaction>;
|
|
5
|
+
//# sourceMappingURL=compaction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compaction.d.ts","sources":["../../../src/runtimes/dsh/compaction.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAuD,MAAM,mCAAmC,CAAC;AAC1H,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAmB,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAqDhE,wBAAgB,aAAa,CAAC,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAElI"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { asRecord } from "../../shared/json.js";
|
|
2
|
+
import { manualCompaction } from "../../shared/manual-compaction.js";
|
|
3
|
+
import { DshCommandError } from "./control.js";
|
|
4
|
+
/** The initiating command id belongs to the caller; the compaction id belongs to DSH. */
|
|
5
|
+
function operation(kernel, control) {
|
|
6
|
+
let commandId = null;
|
|
7
|
+
let reply = null;
|
|
8
|
+
let end = null;
|
|
9
|
+
let compactionId = null;
|
|
10
|
+
return {
|
|
11
|
+
async start(request, respond) {
|
|
12
|
+
commandId = request.id;
|
|
13
|
+
reply = respond;
|
|
14
|
+
try {
|
|
15
|
+
const result = await control.request("compact", { sessionId: kernel.sessionId, commandId }, null);
|
|
16
|
+
if (kernel.unreachable() !== null) {
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
respond({ kind: "accepted" });
|
|
20
|
+
kernel.frame({ type: "dsh/compact", native: result, responseTo: commandId, events: [] });
|
|
21
|
+
}
|
|
22
|
+
catch (error) {
|
|
23
|
+
if (kernel.unreachable() !== null) {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
if (compactionId === null && error instanceof DshCommandError && error.code === "busy") {
|
|
27
|
+
respond({ kind: "rejected", code: "busy", reason: error.message, native: error.native });
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
respond({ kind: "accepted" });
|
|
31
|
+
const native = error instanceof DshCommandError ? error.native : { message: String(error) };
|
|
32
|
+
kernel.frame({ type: "dsh/compact/error", native, responseTo: commandId, events: [] });
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
observe(frame) {
|
|
36
|
+
const { body } = frame;
|
|
37
|
+
const native = asRecord(body.native);
|
|
38
|
+
const data = asRecord(native?.data);
|
|
39
|
+
if (commandId === null) {
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
if (body.responseTo === commandId) {
|
|
43
|
+
if (body.type === "dsh/compact/error") {
|
|
44
|
+
return native?.code === "cancelled" || native?.name === "AbortError" ? { kind: "aborted", frame }
|
|
45
|
+
: { kind: "failed", code: "native_failed", reason: typeof native?.message === "string" ? native.message : "DSH compaction failed", frame };
|
|
46
|
+
}
|
|
47
|
+
if (native?.result === null) {
|
|
48
|
+
return { kind: "failed", code: "not_compacted", reason: "DSH found no compactable history", frame };
|
|
49
|
+
}
|
|
50
|
+
const result = asRecord(native?.result);
|
|
51
|
+
if (end !== null && result?.sourceCommandId === commandId && result.compactionId === compactionId) {
|
|
52
|
+
return { kind: "completed", frame: end };
|
|
53
|
+
}
|
|
54
|
+
return { kind: "unconfirmed", code: "observation_failed", reason: "DSH answered without matching compaction boundaries" };
|
|
55
|
+
}
|
|
56
|
+
if (data?.sourceCommandId !== commandId || typeof data.compactionId !== "string") {
|
|
57
|
+
return null;
|
|
58
|
+
}
|
|
59
|
+
if (body.type === "session/event:compaction/start") {
|
|
60
|
+
compactionId = data.compactionId;
|
|
61
|
+
reply?.({ kind: "accepted" });
|
|
62
|
+
}
|
|
63
|
+
else if (body.type === "session/event:compaction/end" && data.compactionId === compactionId && data.error === undefined) {
|
|
64
|
+
end = frame;
|
|
65
|
+
}
|
|
66
|
+
return null;
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
export function dshCompaction(kernel, control, busy) {
|
|
71
|
+
return manualCompaction(kernel, { busy, busyReason: "DSH compaction requires an idle session with no pending input", settledBy: "native_response", create: () => operation(kernel, control) });
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=compaction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compaction.js","sources":["../../../src/runtimes/dsh/compaction.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAuD,MAAM,mCAAmC,CAAC;AAE1H,OAAO,EAAE,eAAe,EAAmB,MAAM,cAAc,CAAC;AAEhE,yFAAyF;AACzF,SAAS,SAAS,CAAC,MAAqB,EAAE,OAAmB;IAC3D,IAAI,SAAS,GAAkB,IAAI,CAAC;IACpC,IAAI,KAAK,GAA0C,IAAI,CAAC;IACxD,IAAI,GAAG,GAAiB,IAAI,CAAC;IAC7B,IAAI,YAAY,GAAkB,IAAI,CAAC;IACvC,OAAO;QACL,KAAK,CAAC,KAAK,CAAC,OAAO,EAAE,OAAO;YAC1B,SAAS,GAAG,OAAO,CAAC,EAAE,CAAC;YACvB,KAAK,GAAG,OAAO,CAAC;YAChB,IAAI,CAAC;gBACH,MAAM,MAAM,GAAG,MAAM,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,EAAE,oBAAoB,EAAE,MAAM,EAAE,qDAAqD,EAAE,CAAC;YAC5H,CAAC;YACD,IAAI,IAAI,EAAE,eAAe,KAAK,SAAS,IAAI,OAAO,IAAI,CAAC,YAAY,KAAK,QAAQ,EAAE,CAAC;gBAAC,OAAO,IAAI,CAAC;YAAC,CAAC;YAClG,IAAI,IAAI,CAAC,IAAI,KAAK,gCAAgC,EAAE,CAAC;gBACnD,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;gBACjC,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC;YAChC,CAAC;iBAAM,IAAI,IAAI,CAAC,IAAI,KAAK,8BAA8B,IAAI,IAAI,CAAC,YAAY,KAAK,YAAY,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;gBAAC,GAAG,GAAG,KAAK,CAAC;YAAC,CAAC;YAC3I,OAAO,IAAI,CAAC;QACd,CAAC;KACF,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,MAAqB,EAAE,OAAmB,EAAE,IAAmB;IAC3F,OAAO,gBAAgB,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,+DAA+D,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC;AACjM,CAAC"}
|
|
@@ -16,7 +16,7 @@ export declare class DshCommandError extends Error {
|
|
|
16
16
|
}
|
|
17
17
|
export interface DshControl {
|
|
18
18
|
readonly ready: Promise<DshReady>;
|
|
19
|
-
request(this: void, method: string, fields?: JsonRecord, timeoutMs?: number): Promise<JsonRecord>;
|
|
19
|
+
request(this: void, method: string, fields?: JsonRecord, timeoutMs?: number | null): Promise<JsonRecord>;
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
22
|
* The bridge's JSON lines. Every line but a command answer goes to `receive` in
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control.d.ts","sources":["../../../src/runtimes/dsh/control.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAuB,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAG5E,oGAAoG;AACpG,eAAO,MAAM,oBAAoB,QAAS,CAAC;AAG3C,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,UAAU,CAAC;CAC/B;AAED,6FAA6F;AAC7F,qBAAa,eAAgB,SAAQ,KAAK;IACxC,SAAkB,IAAI,qBAAqB;IAC3C,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAE5B,YAAY,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,GAAG,SAAS,EAAE,UAAU,EAAE,MAAM,GAAG,SAAS,EAKvF;CACF;AAID,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClC,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,UAAU,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"control.d.ts","sources":["../../../src/runtimes/dsh/control.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAuB,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAG5E,oGAAoG;AACpG,eAAO,MAAM,oBAAoB,QAAS,CAAC;AAG3C,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,UAAU,CAAC;CAC/B;AAED,6FAA6F;AAC7F,qBAAa,eAAgB,SAAQ,KAAK;IACxC,SAAkB,IAAI,qBAAqB;IAC3C,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAE5B,YAAY,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,GAAG,SAAS,EAAE,UAAU,EAAE,MAAM,GAAG,SAAS,EAKvF;CACF;AAID,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClC,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,UAAU,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;CAC1G;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,OAAO,EAAE,UAAU,KAAK,IAAI,GAAG,UAAU,CA0DjG"}
|
|
@@ -83,7 +83,7 @@ export function dshControl(child, receive) {
|
|
|
83
83
|
sequence += 1;
|
|
84
84
|
const id = `oar-dsh-${String(sequence)}`;
|
|
85
85
|
const { promise, resolve, reject } = Promise.withResolvers();
|
|
86
|
-
const timer = setTimeout(() => {
|
|
86
|
+
const timer = timeoutMs === null ? undefined : setTimeout(() => {
|
|
87
87
|
pending.delete(id);
|
|
88
88
|
reject(new Error(`DSH did not answer ${method} within ${String(timeoutMs)} ms: ${child.diagnostics().stderr}`));
|
|
89
89
|
child.kill();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control.js","sources":["../../../src/runtim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
readonly kind: "supported";
|
|
5
|
+
readonly activeTurn: "reject";
|
|
6
|
+
};
|
|
7
|
+
readonly sessionCapabilities: (installation: import("../../browser.js").AvailableInstallation) => {
|
|
8
|
+
compactionEvents: {
|
|
9
|
+
started: true;
|
|
10
|
+
ended: true;
|
|
11
|
+
};
|
|
12
|
+
refusedSessionOptions: Readonly<Partial<Record<import("../../contracts/runtime.js").RefusableSessionOption, string>>>;
|
|
5
13
|
};
|
|
6
14
|
readonly brand: {
|
|
7
15
|
readonly name: "DeepSeek Harness";
|
|
@@ -11,7 +19,33 @@ export declare const dshRuntime: Omit<{
|
|
|
11
19
|
readonly dark: `data:image/svg+xml,${string}`;
|
|
12
20
|
};
|
|
13
21
|
};
|
|
22
|
+
readonly verifiedPlatforms: readonly ["linux", "darwin", "win32"];
|
|
14
23
|
readonly minVersion: "0.2.1-rc.5";
|
|
24
|
+
readonly credentials: {
|
|
25
|
+
readonly env: readonly [{
|
|
26
|
+
readonly name: "DEEPSEEK_API_KEY";
|
|
27
|
+
readonly purpose: "api_key";
|
|
28
|
+
readonly secret: true;
|
|
29
|
+
}];
|
|
30
|
+
readonly stores: readonly [{
|
|
31
|
+
readonly kind: "file";
|
|
32
|
+
readonly directoryEnv: "DSH_HOME";
|
|
33
|
+
readonly defaultDirectory: ".dsh";
|
|
34
|
+
readonly path: ".credentials.yaml";
|
|
35
|
+
readonly overridesEnv: true;
|
|
36
|
+
}, {
|
|
37
|
+
readonly kind: "file";
|
|
38
|
+
readonly relativeTo: "cwd";
|
|
39
|
+
readonly path: ".env";
|
|
40
|
+
readonly overridesEnv: false;
|
|
41
|
+
}, {
|
|
42
|
+
readonly kind: "file";
|
|
43
|
+
readonly directoryEnv: "DSH_HOME";
|
|
44
|
+
readonly defaultDirectory: ".dsh";
|
|
45
|
+
readonly path: ".env";
|
|
46
|
+
readonly overridesEnv: false;
|
|
47
|
+
}];
|
|
48
|
+
};
|
|
15
49
|
readonly refusedSessionOptions: Readonly<Partial<Record<import("../../contracts/runtime.js").RefusableSessionOption, string>>>;
|
|
16
50
|
readonly resumedSessionOptions: {
|
|
17
51
|
readonly systemPrompt: {
|
|
@@ -29,5 +63,7 @@ export declare const dshRuntime: Omit<{
|
|
|
29
63
|
readonly listModels: (installation: import("../../browser.js").AvailableInstallation, options?: import("../../browser.js").ListModelsOptions | undefined) => Promise<import("../../browser.js").ListModelsResult>;
|
|
30
64
|
readonly skills: (installation: import("../../browser.js").AvailableInstallation, options?: import("../../browser.js").InventoryOptions | undefined) => Promise<import("../../browser.js").InventoryResult<import("../../browser.js").SkillEntry>>;
|
|
31
65
|
readonly session: (installation: import("../../browser.js").AvailableInstallation, options: import("../../browser.js").SessionOptions, context?: import("../../browser.js").SessionOpenContext | undefined) => Promise<import("../../browser.js").Session>;
|
|
32
|
-
}, "execution" | "placement" | "session" | "withPlacement"> & import("../../contracts/runtime.js").Runtime
|
|
66
|
+
}, "execution" | "placement" | "session" | "sessionCapabilities" | "withPlacement"> & import("../../contracts/runtime.js").Runtime & {
|
|
67
|
+
readonly sessionCapabilities: NonNullable<import("../../contracts/runtime.js").Runtime["sessionCapabilities"]>;
|
|
68
|
+
};
|
|
33
69
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sources":["../../../src/runtimes/dsh/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sources":["../../../src/runtimes/dsh/index.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuBK,CAAC"}
|
|
@@ -1,14 +1,25 @@
|
|
|
1
1
|
import { runtimeBrands } from "../../brands.js";
|
|
2
|
+
import { verifiedPlatforms } from "../../platforms.js";
|
|
2
3
|
import { defineRuntime } from "../../contracts/runtime.js";
|
|
3
4
|
import { onFirstCall } from "../../shared/lazy.js";
|
|
4
5
|
import { dshInstallation } from "./installation.js";
|
|
5
6
|
import { dshInstall, dshInstallPlan } from "./install.js";
|
|
6
|
-
import { dshRefusedSessionOptions } from "./options.js";
|
|
7
|
+
import { dshDirectoryRefusal, dshRefusedSessionOptions } from "./options.js";
|
|
7
8
|
import { DSH_MINIMUM_VERSION } from "./version.js";
|
|
8
9
|
export const dshRuntime = defineRuntime({
|
|
9
10
|
id: "dsh",
|
|
10
|
-
|
|
11
|
+
manualCompaction: { kind: "supported", activeTurn: "reject" },
|
|
12
|
+
sessionCapabilities: (installation) => ({ compactionEvents: { started: true, ended: true }, refusedSessionOptions: dshDirectoryRefusal(installation.via === "executable" ? installation.version : undefined) }), brand: runtimeBrands.dsh, verifiedPlatforms: verifiedPlatforms.dsh,
|
|
11
13
|
minVersion: DSH_MINIMUM_VERSION,
|
|
14
|
+
// The default route reads DEEPSEEK_API_KEY; a key saved through DSH's own settings wins (docs/runtimes/dsh.md#credentials).
|
|
15
|
+
credentials: {
|
|
16
|
+
env: [{ name: "DEEPSEEK_API_KEY", purpose: "api_key", secret: true }],
|
|
17
|
+
stores: [
|
|
18
|
+
{ kind: "file", directoryEnv: "DSH_HOME", defaultDirectory: ".dsh", path: ".credentials.yaml", overridesEnv: true },
|
|
19
|
+
{ kind: "file", relativeTo: "cwd", path: ".env", overridesEnv: false },
|
|
20
|
+
{ kind: "file", directoryEnv: "DSH_HOME", defaultDirectory: ".dsh", path: ".env", overridesEnv: false },
|
|
21
|
+
],
|
|
22
|
+
},
|
|
12
23
|
refusedSessionOptions: dshRefusedSessionOptions,
|
|
13
24
|
resumedSessionOptions: {
|
|
14
25
|
systemPrompt: { provided: "immediate", omitted: "default" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/runtimes/dsh/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC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AAE,UAAU,EAAE,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC,CAAC;CAC9G,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import type { TaskEventBody } from "../../contracts/session.js";
|
|
1
|
+
import type { RawEvent, TaskEventBody } from "../../contracts/session.js";
|
|
2
2
|
import { type JsonRecord } from "../../shared/json.js";
|
|
3
3
|
/** Durable DSH job facts, without mistaking a completed tool call for a completed job. */
|
|
4
4
|
export declare function dshJobEvents(type: string, data: JsonRecord, sessionId: string): readonly TaskEventBody[];
|
|
5
|
+
/** Job registration also covers foreground tools. Read the initiating call before stopping a job. */
|
|
6
|
+
export declare function isBackgroundShellJob(records: readonly RawEvent[], sessionId: string, taskId: string): boolean;
|
|
5
7
|
//# sourceMappingURL=jobs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jobs.d.ts","sources":["../../../src/runtimes/dsh/jobs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"jobs.d.ts","sources":["../../../src/runtimes/dsh/jobs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,EAAuB,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAE5E,0FAA0F;AAC1F,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,GAAG,SAAS,aAAa,EAAE,CAgBxG;AAED,qGAAqG;AACrG,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,SAAS,QAAQ,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAc7G"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { asRecord } from "../../shared/json.js";
|
|
1
|
+
import { asRecord, parseJson } from "../../shared/json.js";
|
|
2
2
|
/** Durable DSH job facts, without mistaking a completed tool call for a completed job. */
|
|
3
3
|
export function dshJobEvents(type, data, sessionId) {
|
|
4
4
|
// Copied history keeps the original owner; it does not transfer a live job.
|
|
@@ -23,4 +23,23 @@ export function dshJobEvents(type, data, sessionId) {
|
|
|
23
23
|
return [{ kind: "task_ended", taskId: data.jobId, status,
|
|
24
24
|
...(typeof data.detail === "string" ? { summary: data.detail } : {}) }];
|
|
25
25
|
}
|
|
26
|
+
/** Job registration also covers foreground tools. Read the initiating call before stopping a job. */
|
|
27
|
+
export function isBackgroundShellJob(records, sessionId, taskId) {
|
|
28
|
+
let toolCall = null;
|
|
29
|
+
for (let index = records.length - 1; index >= 0; index -= 1) {
|
|
30
|
+
const record = records[index];
|
|
31
|
+
if (record?.kind !== "frame" || record.sessionId !== sessionId || record.agentPath.length > 0) {
|
|
32
|
+
continue;
|
|
33
|
+
}
|
|
34
|
+
for (const event of record.body.events) {
|
|
35
|
+
if (event.kind === "task_started" && event.taskId === taskId && event.taskType === "shell" && event.toolCallId !== undefined && event.nativeType !== undefined) {
|
|
36
|
+
toolCall = { id: event.toolCallId, name: event.nativeType };
|
|
37
|
+
}
|
|
38
|
+
else if (toolCall !== null && event.kind === "tool_call_started" && event.callId === toolCall.id) {
|
|
39
|
+
return event.tool === toolCall.name && typeof event.input === "string" && asRecord(parseJson(event.input))?.run_in_background === true;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
26
45
|
//# sourceMappingURL=jobs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jobs.js","sources":["../../../src/runtimes/dsh/jobs.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAmB,MAAM,sBAAsB,CAAC;
|
|
1
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IAAI,KAAK,CAAC,UAAU,KAAK,SAAS,IAAI,KAAK,CAAC,UAAU,KAAK,SAAS,EAAE,CAAC;gBAC/J,QAAQ,GAAG,EAAE,EAAE,EAAE,KAAK,CAAC,UAAU,EAAE,IAAI,EAAE,KAAK,CAAC,UAAU,EAAE,CAAC;YAC9D,CAAC;iBAAM,IAAI,QAAQ,KAAK,IAAI,IAAI,KAAK,CAAC,IAAI,KAAK,mBAAmB,IAAI,KAAK,CAAC,MAAM,KAAK,QAAQ,CAAC,EAAE,EAAE,CAAC;gBACnG,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ,CAAC,IAAI,IAAI,OAAO,KAAK,CAAC,KAAK,KAAK,QAAQ,IAAI,QAAQ,CAAC,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,iBAAiB,KAAK,IAAI,CAAC;YACzI,CAAC;QACH,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -12,8 +12,6 @@ export interface LaunchedDsh {
|
|
|
12
12
|
* host that names its own mode for this session keeps it.
|
|
13
13
|
*/
|
|
14
14
|
export declare function dshEnvironment(env: SessionOptions["env"]): NodeJS.ProcessEnv;
|
|
15
|
-
/** Why this executable cannot run, read from the executable when the installation names no version; null at or above the floor. */
|
|
16
|
-
export declare function dshExecutableRefusal(command: string, version: string | undefined, env: NodeJS.ProcessEnv): Promise<string | null>;
|
|
17
15
|
/**
|
|
18
16
|
* One owned `dsh --profile acp` process with the ACP protocol plugin off and the
|
|
19
17
|
* bridge on. The profile supplies the native core and its stdin shutdown; no ACP
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"launch.d.ts","sources":["../../../src/runtimes/dsh/launch.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAEjE,OAAO,
|
|
1
|
+
{"version":3,"file":"launch.d.ts","sources":["../../../src/runtimes/dsh/launch.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAEjE,OAAO,EAAoB,KAAK,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACtF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAkB,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAGnF,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC;IAC5B,QAAQ,CAAC,SAAS,EAAE,cAAc,CAAC;CACpC;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,cAAc,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,UAAU,CAG5E;AAED;;;;GAIG;AACH,wBAAsB,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,CAAC,UAAU,EAAE,OAAO,GAAE,SAAS,UAAU,EAAO,GAAG,OAAO,CAAC,WAAW,CAAC,CAY/I"}
|