@toddzheng024/dscode-bundle 0.7.26 → 0.7.28
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 +1 -1
- package/THIRD_PARTY_NOTICES.md +10 -10
- package/bootstrap.mjs +1 -1
- package/cordis.patch.yml +418 -45
- package/package.json +279 -245
- package/plugins/auto-review/index.mjs +8 -5
- package/plugins/code-review/index.mjs +1 -1
- package/plugins/computer-use/index.mjs +37 -0
- package/plugins/cordis-config/plain.mjs +31 -0
- package/plugins/exec/cli.mjs +1 -1
- package/plugins/grok/index.mjs +28 -24
- package/plugins/memory/index.mjs +1 -1
- package/plugins/message-source/kind.mjs +20 -0
- package/plugins/openrouter/adapter.mjs +29 -13
- package/plugins/openrouter/index.mjs +31 -28
- package/plugins/session-bridge/communication.mjs +6 -3
- package/plugins/session-bridge/server.mjs +3 -2
- package/plugins/session-bridge/tasks.mjs +3 -1
- package/plugins/session-cards/index.mjs +1 -1
- package/plugins/time-marks/index.mjs +3 -2
- package/plugins/time-marks/marks.mjs +6 -5
- package/plugins/triggers/config.mjs +1 -1
- package/plugins/triggers/tools.mjs +1 -1
- package/plugins/tui-tools/doctor.mjs +1 -1
- package/plugins/tui-tools/index.mjs +16 -4
- package/plugins/ultra/policy.mjs +16 -0
- package/vendor/bash/index.js +455 -186
- package/vendor/bash/types/background.d.ts +38 -7
- package/vendor/bash/types/index.d.ts +20 -4
- package/vendor/bash/types/render.d.ts +28 -9
- package/vendor/command-goal/index.js +3 -1
- package/vendor/deepseek/index.js +1378 -1246
- package/vendor/deepseek/types/adapter.d.ts +16 -155
- package/vendor/deepseek/types/config.d.ts +127 -0
- package/vendor/deepseek/types/defaults.d.ts +24 -0
- package/vendor/deepseek/types/file-store.d.ts +5 -3
- package/vendor/deepseek/types/files-api.d.ts +12 -9
- package/vendor/deepseek/types/image-tokens.d.ts +24 -9
- package/vendor/deepseek/types/images.d.ts +35 -0
- package/vendor/deepseek/types/index.d.ts +10 -94
- package/vendor/deepseek/types/messages-api.d.ts +10 -0
- package/vendor/deepseek/types/model-info.d.ts +16 -0
- package/vendor/deepseek/types/models.d.ts +4 -0
- package/vendor/deepseek/types/replay.d.ts +27 -0
- package/vendor/deepseek/types/request-extensions.d.ts +16 -0
- package/vendor/deepseek/types/request-files.d.ts +49 -0
- package/vendor/deepseek/types/request-pricing.d.ts +32 -20
- package/vendor/deepseek/types/serialize.d.ts +17 -82
- package/vendor/deepseek/types/sse.d.ts +6 -22
- package/vendor/deepseek/types/translate.d.ts +13 -36
- package/vendor/deepseek/types/transport.d.ts +15 -0
- package/vendor/deepseek/types/types.d.ts +106 -167
- package/vendor/deepseek/types/wire-types.d.ts +62 -0
- package/vendor/persistent/index.js +9 -3
- package/vendor/subagent/index.js +11 -8
- package/vendor/subagent/model-selection-settings.js +12 -38
- package/vendor/subagent/types/index.d.ts +4 -3
- package/vendor/subagent/types/model-selection-settings.d.ts +12 -10
- package/vendor/subagent-core/index.js +401 -264
- package/vendor/subagent-core/typert.host.js +103 -113
- package/vendor/subagent-core/typert.remote-client.d.ts +1 -3
- package/vendor/subagent-core/typert.remote-client.js +23 -69
- package/vendor/subagent-core/types/archive-admission.d.ts +16 -0
- package/vendor/subagent-core/types/archive-admission.js +151 -0
- package/vendor/subagent-core/types/assistant-output.d.ts +2 -2
- package/vendor/subagent-core/types/catalog.d.ts +17 -10
- package/vendor/subagent-core/types/catalog.js +12 -6
- package/vendor/subagent-core/types/child-agent.d.ts +8 -5
- package/vendor/subagent-core/types/child-agent.js +11 -5
- package/vendor/subagent-core/types/continuation-activation.d.ts +17 -1
- package/vendor/subagent-core/types/continuation-activation.js +41 -4
- package/vendor/subagent-core/types/continuation-messages.d.ts +1 -1
- package/vendor/subagent-core/types/continuation-messages.js +7 -3
- package/vendor/subagent-core/types/continuation.d.ts +1 -1
- package/vendor/subagent-core/types/continuation.js +2 -2
- package/vendor/subagent-core/types/control-types.d.ts +29 -36
- package/vendor/subagent-core/types/control-types.js +2 -3
- package/vendor/subagent-core/types/control.d.ts +2 -28
- package/vendor/subagent-core/types/control.js +3 -40
- package/vendor/subagent-core/types/index.d.ts +45 -41
- package/vendor/subagent-core/types/index.js +46 -82
- package/vendor/subagent-core/types/internal.d.ts +2 -2
- package/vendor/subagent-core/types/internal.js +2 -2
- package/vendor/subagent-core/types/lifecycle.d.ts +1 -1
- package/vendor/subagent-core/types/lifecycle.js +5 -3
- package/vendor/subagent-core/types/list-children.d.ts +15 -32
- package/vendor/subagent-core/types/list-children.js +45 -49
- package/vendor/subagent-core/types/out-of-process.d.ts +1 -1
- package/vendor/subagent-core/types/projection-types.d.ts +9 -1
- package/vendor/subagent-core/types/projection.d.ts +5 -0
- package/vendor/subagent-core/types/projection.js +10 -4
- package/vendor/subagent-core/types/run-settlement.js +1 -1
- package/vendor/subagent-core/types/types.d.ts +2 -2
- package/vendor/terminal/index.js +94 -30
- package/vendor/tui/lib/index.mjs +2 -1
- package/vendor/tui/lib/kernel-panels.mjs +1 -1
- package/vendor/tui/lib/render/projection.mjs +50 -36
- package/presets/dscode/agent.cordis.yml +0 -321
- package/presets/dscode/preset.yml +0 -3
|
@@ -1,19 +1,50 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generic-
|
|
2
|
+
* Generic-job adaptation for bash process handles: the terminal outcome the
|
|
3
|
+
* registry records, the pull sources it pumps, and the ring read a foreground
|
|
4
|
+
* call renders when it stops waiting.
|
|
3
5
|
*
|
|
4
6
|
* @module @deepseek-ai/dsh-tool-bash/background
|
|
5
7
|
*/
|
|
8
|
+
import type { SandboxMode } from '@deepseek-ai/dsh-sandbox';
|
|
6
9
|
import type { ShellProcess } from '@deepseek-ai/dsh-shell';
|
|
10
|
+
import type { JobChunk, JobHooks, JobOutcome, JobOutputSource } from '@deepseek-ai/dsh-jobs';
|
|
7
11
|
/**
|
|
8
|
-
* Map a settled background process onto the generic
|
|
12
|
+
* Map a settled background process onto the generic job-outcome vocabulary:
|
|
9
13
|
* `killed` stays `killed` (detail: the signal when one is known), everything
|
|
10
14
|
* else is `completed` with the exit code as detail. A nonzero command exit is
|
|
11
|
-
* reported, not failed, exactly like the foreground rendering.
|
|
15
|
+
* reported, not failed, exactly like the foreground rendering. Sandbox facts
|
|
16
|
+
* join the detail, since a job's terminal reason is the one line every
|
|
17
|
+
* reader — the model's status line, the roster row — shows.
|
|
12
18
|
* @param proc - the settled process handle.
|
|
19
|
+
* @param escalationModes - escalation targets advertised by this composition.
|
|
13
20
|
* @returns the outcome for the `ctx.jobs` registration.
|
|
14
21
|
*/
|
|
15
|
-
export declare function processOutcome(proc: ShellProcess):
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
22
|
+
export declare function processOutcome(proc: ShellProcess, escalationModes?: readonly SandboxMode[]): JobOutcome;
|
|
23
|
+
/**
|
|
24
|
+
* The process's non-consuming stream readers as registry pull sources. They
|
|
25
|
+
* bind lazily because the process is spawned inside the starter, after the
|
|
26
|
+
* registry admitted the job; a read before the spawn yields nothing, and the
|
|
27
|
+
* pump keeps the model's consuming cursor untouched. A rejected spawn's
|
|
28
|
+
* stderr reader carries the provider's `subprocess failed before reporting an
|
|
29
|
+
* outcome: …` note.
|
|
30
|
+
* @param proc - the started process's observed streams, once the starter has spawned it.
|
|
31
|
+
* @returns one source per stream, stdout first.
|
|
32
|
+
*/
|
|
33
|
+
export declare function processSources(proc: () => Pick<ShellProcess, 'observed'> | undefined): JobOutputSource[];
|
|
34
|
+
/**
|
|
35
|
+
* The ring chunks of one consuming registry read as the shell tools render a
|
|
36
|
+
* process read: stdout chunks in order, then every stderr chunk in one
|
|
37
|
+
* `[stderr]` section, so the output a foreground call hands over when it
|
|
38
|
+
* stops waiting reads exactly like the `job_output` reads that follow it.
|
|
39
|
+
* @param chunks - the chunks since the model cursor, in offset order.
|
|
40
|
+
* @returns the delta text, possibly empty.
|
|
41
|
+
*/
|
|
42
|
+
export declare function ringDelta(chunks: readonly JobChunk[]): string;
|
|
43
|
+
/**
|
|
44
|
+
* Adapt asynchronous shell preparation after job admission without exposing a partial process.
|
|
45
|
+
* @param start - starts the process with job-owned cancellation.
|
|
46
|
+
* @param outcome - projects the settled process into the job outcome.
|
|
47
|
+
* @returns synchronous job hooks whose completion includes preparation and process settlement.
|
|
48
|
+
*/
|
|
49
|
+
export declare function processJob(start: (signal: AbortSignal) => Promise<ShellProcess>, outcome: (process: ShellProcess) => JobOutcome): JobHooks;
|
|
19
50
|
//# sourceMappingURL=background.d.ts.map
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Model-facing Consumer of the `ctx.shell` capability seam.
|
|
3
|
-
*
|
|
4
|
-
*
|
|
2
|
+
* Model-facing Consumer of the `ctx.shell` capability seam. While a job
|
|
3
|
+
* registry is composed, every call registers its process with `ctx.jobs` as
|
|
4
|
+
* it starts: `run_in_background` returns the id at once, and a foreground call
|
|
5
|
+
* waits on its job until the command finishes or the wait times out, at which
|
|
6
|
+
* point it returns the same id. Without a registry the tool is foreground-only
|
|
7
|
+
* and the executor's deadline kills the command.
|
|
5
8
|
*
|
|
6
9
|
* TODO(permissions): deployment policy belongs in `tools/pre-execute` and
|
|
7
10
|
* sandboxing executors; see docs/architecture.md § Where new behavior goes.
|
|
@@ -13,8 +16,21 @@ export declare const name = "tool-bash";
|
|
|
13
16
|
export declare const inject: string[];
|
|
14
17
|
/** Configuration for the bash tool. */
|
|
15
18
|
export interface Config {
|
|
16
|
-
/**
|
|
19
|
+
/**
|
|
20
|
+
* Expose `run_in_background` while a job registry is composed (default
|
|
21
|
+
* true); disabled calls are also rejected. Without a registry the tool is
|
|
22
|
+
* foreground-only regardless.
|
|
23
|
+
*/
|
|
17
24
|
enableRunInBackground?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Keep a foreground command that reaches its timeout running as a
|
|
27
|
+
* background job instead of killing it (default true). Applies only while
|
|
28
|
+
* background execution is available: with `enableRunInBackground` false or
|
|
29
|
+
* no job registry, the executor's deadline kills the command. A foreground
|
|
30
|
+
* command the registry refuses at its start (admission or a missing
|
|
31
|
+
* controller) also runs under the deadline kill.
|
|
32
|
+
*/
|
|
33
|
+
promoteOnTimeout?: boolean;
|
|
18
34
|
}
|
|
19
35
|
/** Runtime configuration schema for the bash tool plugin. */
|
|
20
36
|
export declare const Config: z<Config>;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @module @deepseek-ai/dsh-tool-bash/render
|
|
5
5
|
*/
|
|
6
|
-
import type {
|
|
6
|
+
import type { ShellRunResult, ShellSandboxInfo } from '@deepseek-ai/dsh-shell';
|
|
7
7
|
import type { SandboxMode } from '@deepseek-ai/dsh-sandbox';
|
|
8
8
|
/**
|
|
9
9
|
* Shape one finished run into the text the model sees: stdout, then a marked
|
|
@@ -14,20 +14,39 @@ import type { SandboxMode } from '@deepseek-ai/dsh-sandbox';
|
|
|
14
14
|
* @param escalationModes - the escalation targets this composition advertises;
|
|
15
15
|
* non-empty adds the same-turn escalation hint after a denial marker
|
|
16
16
|
* (default `[]`: no hint).
|
|
17
|
-
* @returns the model-facing text: output body (or `(no output)`), then any timeout/signal/exit markers, each on its own line.
|
|
17
|
+
* @returns the model-facing text: output body (or `(no output)`), then any timeout/stopped/signal/exit markers, each on its own line.
|
|
18
18
|
*/
|
|
19
|
-
export declare function renderResult(result: ShellRunResult
|
|
19
|
+
export declare function renderResult(result: ShellRunResult & {
|
|
20
|
+
stopped?: string;
|
|
21
|
+
}, escalationModes?: readonly SandboxMode[]): string;
|
|
20
22
|
/**
|
|
21
|
-
* Shape
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* @param
|
|
23
|
+
* Shape a foreground call that stopped waiting into the text the model sees:
|
|
24
|
+
* the output captured so far (one consuming registry read taken at that
|
|
25
|
+
* point, so `job_output` continues exactly after it), then the still-running
|
|
26
|
+
* marker and the job hand-off guidance.
|
|
27
|
+
* @param promoted - the promoted result value: the job id, the wait that
|
|
28
|
+
* expired, and the output so far.
|
|
29
|
+
* @returns the model-facing text for a promoted call.
|
|
30
|
+
*/
|
|
31
|
+
export declare function renderPromoted(promoted: {
|
|
32
|
+
jobId: string;
|
|
33
|
+
timeoutMs: number;
|
|
34
|
+
output: string;
|
|
35
|
+
}): string;
|
|
36
|
+
/**
|
|
37
|
+
* Shape the one consuming registry read a foreground call embeds in its
|
|
38
|
+
* result when it stops waiting: the output produced so far, plus the
|
|
39
|
+
* dropped-output notice (naming the job's spill files) when the model cursor
|
|
40
|
+
* fell behind the ring, and the sandbox notices. Later `job_output` reads
|
|
41
|
+
* render the same ring through the job tools.
|
|
42
|
+
* @param delta - the read's chunks as rendered text.
|
|
43
|
+
* @param lossy - whether bytes before the delta were evicted unread.
|
|
44
|
+
* @param spillPaths - the complete-stream files the job currently advertises.
|
|
26
45
|
* @param sandbox - settled sandbox facts, when this was a confined process.
|
|
27
46
|
* @param escalationModes - escalation targets advertised by this composition.
|
|
28
47
|
* @returns the delta text with any loss or sandbox notice appended.
|
|
29
48
|
*/
|
|
30
|
-
export declare function
|
|
49
|
+
export declare function renderJobRead(delta: string, lossy: boolean, spillPaths: readonly string[], sandbox?: ShellSandboxInfo, escalationModes?: readonly SandboxMode[]): string;
|
|
31
50
|
/**
|
|
32
51
|
* The exit-status parse is the shared marker-contract half of the shell-tool
|
|
33
52
|
* rendering story, owned by `@deepseek-ai/dsh-shell` so `dsh-tool-pwsh` reuses
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// dscode-goal-cap-v1
|
|
2
|
+
import { CommandDefinitionId } from "@deepseek-ai/dsh-commands/brand";
|
|
2
3
|
import { GoalError } from "@deepseek-ai/dsh-goal";
|
|
3
4
|
import { createUserMessage } from "@deepseek-ai/dsh-llm";
|
|
4
5
|
//#region lib/types/index.js
|
|
@@ -195,8 +196,9 @@ function executeGoalCommand(ctx, invocation) {
|
|
|
195
196
|
/** Register the Codex-shaped `/goal` command for every composed command adapter. */
|
|
196
197
|
function apply(ctx) {
|
|
197
198
|
ctx.commands.register({
|
|
199
|
+
definitionId: CommandDefinitionId("@deepseek-ai/dsh-command-goal"),
|
|
198
200
|
name: "goal",
|
|
199
|
-
description: "
|
|
201
|
+
description: "Set or view the goal for a long-running task",
|
|
200
202
|
input: {
|
|
201
203
|
hint: "[<objective>|clear|edit <objective>|pause|resume], [<rounds>]",
|
|
202
204
|
attachments: true
|