mirror of
https://ghproxy.cflmy.top/https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-11-29 16:49:35 +08:00
Merge remote-tracking branch 'origin/master' into turtle/fix-conflict-6542-b5f7dd515337
# Conflicts: # docs/persistence-catalog.i18n.yaml # docs/persistence-catalog.md # docs/persistence-catalog.zh.md # docs/persistence-changes/historical-formats/README.i18n.yaml # docs/persistence-changes/historical-formats/README.md # docs/persistence-changes/historical-formats/README.zh.md # docs/persistence-schema.json
This commit is contained in:
commit
26b5cb1ead
1544 files changed
+32719
-9017
No files matched your search
@@ -220,6 +220,10 @@ const packageFileExtras: Readonly<Record<string, readonly string[]>> = {
|
||||
'@deepseek-ai/dsh-client-shortcuts': ['lib/protocol.js'],
|
||||
// The Feishu entry skill travels with the package; the guides it indexes stay in lark-cli.
|
||||
'@deepseek-ai/dsh-feishu': ['skills'],
|
||||
// The WeCom plugin ships its entry skill; the upstream guides it indexes are downloaded at load.
|
||||
'@deepseek-ai/dsh-wecom': ['skills'],
|
||||
// The Tencent Meeting plugin ships its entry skill; the upstream guide it indexes is downloaded at load.
|
||||
'@deepseek-ai/dsh-tencent-meeting': ['skills'],
|
||||
'@deepseek-ai/dsh-experimental-speech-to-text-sensevoice': ['runtime/assets.json'],
|
||||
// Node profile configuration and process bootstraps have separate bundles.
|
||||
'@deepseek-ai/dsh-ptc-runtime-node': ['lib/configuration.js', 'lib/process.js', 'lib/persistent-process.js'],
|
||||
|
||||
@@ -435,7 +435,10 @@ export const LINK_MAP: Readonly<Record<string, string>> = {
|
||||
WorktreeCleanup: 'worktrees.md',
|
||||
WorktreeCreation: 'worktrees.md',
|
||||
RestoredWorktree: 'worktrees.md',
|
||||
ChangeRequestBriefListener: 'forge.md',
|
||||
ChangeRequestKnownState: 'forge.md',
|
||||
ChangeRequestListener: 'forge.md',
|
||||
ChangeRequestWatchOptions: 'forge.md',
|
||||
ChangeRequestRef: 'forge.md',
|
||||
ChangeRequestSnapshot: 'forge.md',
|
||||
ChangeRequestUpdate: 'forge.md',
|
||||
@@ -806,6 +809,7 @@ export const LINK_MAP: Readonly<Record<string, string>> = {
|
||||
SubagentActivation: 'subagent.md',
|
||||
SubagentActivationSpec: 'subagent.md',
|
||||
AgentMessageSource: 'subagent.md',
|
||||
SubagentCapacity: 'subagent.md',
|
||||
SubagentCatalogEntry: 'subagent.md',
|
||||
SubagentCatalogState: 'subagent.md',
|
||||
SessionLogUploadRequest: 'session.md',
|
||||
@@ -827,6 +831,7 @@ export const LINK_MAP: Readonly<Record<string, string>> = {
|
||||
AssembleContext: 'system-prompt.md',
|
||||
PromptContext: 'system-prompt.md',
|
||||
PromptContextOrderName: 'system-prompt.md',
|
||||
SystemUpdate: 'system-prompt.md',
|
||||
PromptSection: 'system-prompt.md',
|
||||
PromptSectionOrderName: 'system-prompt.md',
|
||||
SystemPrompt: 'system-prompt.md',
|
||||
|
||||
@@ -32,6 +32,7 @@ import { PwshLocalExecutor } from '@deepseek-ai/dsh-pwsh-local'
|
||||
import LocalSubprocessRuntime from '@deepseek-ai/dsh-subprocess-local'
|
||||
import LocalFileSystem from '@deepseek-ai/dsh-fs-local'
|
||||
import WorkingDirectory from '@deepseek-ai/dsh-working-directory'
|
||||
import * as ToolSessionControl from '@deepseek-ai/dsh-tool-session-control'
|
||||
import * as ToolWorktree from '@deepseek-ai/dsh-experimental-tool-worktree'
|
||||
import { AttachmentStore } from '@deepseek-ai/dsh-attachment'
|
||||
import type { ImageAttachmentLimits, ImageAttachmentRef, SaveImageAttachment, StoredImageAttachment } from '@deepseek-ai/dsh-attachment'
|
||||
@@ -215,6 +216,20 @@ export interface ToolPackage {
|
||||
* guard proves it is exhaustive against the on-disk glob.
|
||||
*/
|
||||
const TOOL_PACKAGES: ToolPackage[] = [
|
||||
{
|
||||
pkg: '@deepseek-ai/dsh-tool-session-control',
|
||||
dir: 'tool-session-control',
|
||||
source: 'packages/session/tool-session-control/src/index.ts',
|
||||
requires: ['ctx.tools', 'ctx.sessionController', 'ctx.workspaceRegistry', 'a calling Agent'],
|
||||
writes: ['tool/call', 'agent/inbox/spliced in the recipient', 'tool/result'],
|
||||
async mount(ctx) {
|
||||
// Schema harvest never executes a tool, so both Host services are empty stubs.
|
||||
ctx.provide('sessionController', {} as Context['sessionController'])
|
||||
ctx.provide('workspaceRegistry', {} as Context['workspaceRegistry'])
|
||||
await ctx.plugin(ToolSessionControl)
|
||||
},
|
||||
note: 'The dsh-web-app bundle mounts this package on a disabled row; the Web Session controller activates each target.',
|
||||
},
|
||||
{
|
||||
pkg: '@deepseek-ai/dsh-plugin-manager',
|
||||
dir: 'plugin-manager',
|
||||
|
||||
@@ -463,9 +463,6 @@
|
||||
"910b6d005a8e354f7fd58ae7498f66746a88f8ba0145b61b7d462ac33d4531cf": 1,
|
||||
"e1afcf3bd21c4348c25c31b75c3d96e12710fc3bb3165da6a77a48731cb7e737": 1
|
||||
},
|
||||
"packages/client/ui-conversation/tests/system-prompt.client.spec.ts": {
|
||||
"42549864041fd67324d61bb593b73ab9a4ba5e5e756c35faa513ebd571f28f26": 1
|
||||
},
|
||||
"packages/client/ui-conversation/tests/todo-panel.client.spec.tsx": {
|
||||
"88bd974d30d3b8da90642fa12ee8a1030174fad583bb78ff20a13202c8e04c25": 1
|
||||
},
|
||||
@@ -722,9 +719,6 @@
|
||||
"6517a00893f4956fa1670426a26a1e2e6e7fe21136e82bf1b42731394998f221": 1
|
||||
},
|
||||
"packages/compaction/compaction/tests/tool-pairing.spec.ts": {
|
||||
"14e30710f1223914ed7a6258d232c5082e539f1da8e45a62580b41445bd18686": 1,
|
||||
"6aab53b3e5d082179308a888a26c622e8992b1a74f38bd4fee37d337d66c6584": 1,
|
||||
"c387d84f2582ad93b2b123b5a2865127def18cd99d9240d4cdceb9965d0f9ad5": 1,
|
||||
"e9cbed9d889ff09b5300f7c8c58aa24096e3804f40280be06b66badd38ac59f5": 1
|
||||
},
|
||||
"packages/context/agent-instructions/tests/agent-instructions.spec.ts": {
|
||||
@@ -768,7 +762,6 @@
|
||||
"96465479e2917a67964dd7a63395b95c80c701d4d8815263cd5f234d0e21dd95": 1
|
||||
},
|
||||
"packages/core/agent-loop/tests/request-reconstruction.spec.ts": {
|
||||
"c544a3d350d02eb410d8d702de426baebe29befa0d7e6a99e0fba12059c837eb": 1,
|
||||
"f7dc30743e893e67b36ac9364f8b3b96d65b3dc762f59d857ed48cab06ae087a": 3
|
||||
},
|
||||
"packages/core/agent-loop/tests/resume.spec.ts": {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/** Execute both shipped SEA providers against compressed empty-file assets. */
|
||||
/** Execute the shipped SEA prelude code: providers against compressed assets, and VFS stats for `{ bigint: true }` callers. */
|
||||
|
||||
import { createRequire } from 'node:module'
|
||||
import { readFileSync } from 'node:fs'
|
||||
@@ -26,6 +26,18 @@ function initializer(source: string, name: string): string {
|
||||
return expression
|
||||
}
|
||||
|
||||
function functionDeclaration(source: string, name: string): string {
|
||||
const parsed = ts.createSourceFile('prelude.js', source, ts.ScriptTarget.Latest, true, ts.ScriptKind.JS)
|
||||
let text: string | undefined
|
||||
const visit = (node: ts.Node): void => {
|
||||
if (ts.isFunctionDeclaration(node) && node.name?.text === name) text = node.getText(parsed)
|
||||
ts.forEachChild(node, visit)
|
||||
}
|
||||
visit(parsed)
|
||||
if (text === undefined) throw new Error(`pkg prelude is missing ${name}`)
|
||||
return text
|
||||
}
|
||||
|
||||
function commonJs(callbacks: Record<string, (exports: object, module: { exports: unknown }) => void>) {
|
||||
return () => {
|
||||
const exports = {}
|
||||
@@ -92,3 +104,58 @@ describe.each([['main', bundle], ['worker', workerSource]] as const)('pkg compre
|
||||
.toThrow('decompressed size does not match stats.size')
|
||||
})
|
||||
})
|
||||
|
||||
/** The numeric fields every pkg VirtualStats carries. */
|
||||
interface NumberStats {
|
||||
dev: number
|
||||
mode: number
|
||||
nlink: number
|
||||
uid: number
|
||||
gid: number
|
||||
rdev: number
|
||||
blksize: number
|
||||
ino: number
|
||||
size: number
|
||||
blocks: number
|
||||
atimeMs: number
|
||||
mtimeMs: number
|
||||
ctimeMs: number
|
||||
birthtimeMs: number
|
||||
isFile(): boolean
|
||||
isDirectory(): boolean
|
||||
}
|
||||
|
||||
type Convert = (stats: NumberStats, options?: unknown) => Record<string, unknown> & { isFile(): boolean; isDirectory(): boolean }
|
||||
|
||||
function numberStats(): NumberStats {
|
||||
return {
|
||||
dev: 7, mode: 0o100644, nlink: 1, uid: 501, gid: 20, rdev: 0, blksize: 4096, ino: 9, size: 42, blocks: 1,
|
||||
atimeMs: 1_700_000_000_000, mtimeMs: 1_700_000_000_123.5, ctimeMs: 1_700_000_000_456, birthtimeMs: 1_700_000_000_000,
|
||||
isFile: () => true, isDirectory: () => false,
|
||||
}
|
||||
}
|
||||
|
||||
// The main bundle also embeds the worker bootstrap text, so it carries both copies of the six hooks.
|
||||
describe.each([['main', bundle, 12], ['worker', workerSource, 6]] as const)('pkg VFS stats in %s', (_name, source, hooks) => {
|
||||
const convert = runInNewContext(`(${functionDeclaration(source, 'vfsStatsForOptions')})`, { BigInt, Math }) as Convert
|
||||
|
||||
it('serves BigIntStats fields to bigint callers', () => {
|
||||
const stats = convert(numberStats(), { bigint: true })
|
||||
expect(stats).toMatchObject({
|
||||
dev: 7n, mode: 0o100644n, ino: 9n, size: 42n, mtimeMs: 1_700_000_000_123n, mtimeNs: 1_700_000_000_123_500_000n,
|
||||
})
|
||||
expect((stats.mode as bigint) & 0o777n).toBe(0o644n)
|
||||
expect(stats.isFile()).toBe(true)
|
||||
expect(stats.isDirectory()).toBe(false)
|
||||
})
|
||||
|
||||
it.each([undefined, {}, 'utf8'])('returns the VFS stats unchanged for options %j', (options) => {
|
||||
const stats = numberStats()
|
||||
expect(convert(stats, options)).toBe(stats)
|
||||
})
|
||||
|
||||
it('routes every path stat hook through the conversion', () => {
|
||||
expect(source).not.toMatch(/return vfsResult\.stats;|null, vfsResult\.stats\)/)
|
||||
expect(source.match(/vfsStatsForOptions\(vfsResult\.stats, options\)/g)).toHaveLength(hooks)
|
||||
})
|
||||
})
|
||||
@@ -31,6 +31,7 @@ export const PRODUCT_PACKAGE_POLICY: Readonly<Record<string, ProductPackagePolic
|
||||
'packages/ssh/fs-ssh': { category: 'optional', reason: 'Remote filesystem provider selected in an SSH composition.' },
|
||||
'packages/ssh/sandbox-ssh': { category: 'optional', reason: 'Remote confinement provider selected in an SSH composition.' },
|
||||
'packages/ssh/subprocess-ssh': { category: 'optional', reason: 'Remote process provider selected in an SSH composition.' },
|
||||
'packages/session/tool-session-control': { category: 'optional', reason: 'Cross-Session messaging enabled explicitly on the disabled dsh-web-app row.' },
|
||||
'packages/storage/storage-sqlite': { category: 'optional', reason: 'Persistent storage requires an explicit database path and backend selection.' },
|
||||
'packages/session/session-persistence-sqlite': { category: 'optional', reason: 'Selected through global or profile Cordis patches; imports retained JSONL history on first open.' },
|
||||
'packages/subagent/subagent-acp': { category: 'optional', reason: 'Requires a configured external ACP agent command.' },
|
||||
@@ -40,9 +41,11 @@ export const PRODUCT_PACKAGE_POLICY: Readonly<Record<string, ProductPackagePolic
|
||||
'packages/connector/linear': { category: 'optional', reason: 'Separately installed app plugin that requires the user to authorize a Linear account.' },
|
||||
'packages/connector/notion': { category: 'optional', reason: 'Separately installed app plugin that requires the user to authorize a Notion account.' },
|
||||
'packages/connector/tencent-docs': { category: 'optional', reason: 'Separately installed app plugin that requires the user to authorize a Tencent Docs account.' },
|
||||
'packages/connector/wecom': { category: 'optional', reason: 'Separately installed app plugin that requires wecom-cli and a user-authorized WeCom bot.' },
|
||||
'packages/context/tmux-context': { category: 'optional', reason: 'Context contribution requiring a tmux pane.' },
|
||||
'packages/fs/tool-str-replace-editor': { category: 'optional', reason: 'Explicit alternative to the default filesystem editing tools.' },
|
||||
'packages/connector/feishu': { category: 'optional', reason: 'Separately installed app plugin: the Feishu CLI, its skills, and the account operations of a user-authorized Feishu account.' },
|
||||
'packages/connector/tencent-meeting': { category: 'optional', reason: 'Separately installed app plugin that requires tmeet and a user-authorized Tencent Meeting account.' },
|
||||
'packages/fs/fs-observation-policy': { category: 'optional', reason: 'Read-before-mutation guard that a deployment enables on the disabled dsh-base row.' },
|
||||
'packages/sdk/client': { category: 'sdk', reason: 'Published TypeScript embedding client runs in the consumer process.' },
|
||||
'packages/typert/generator': { category: 'build', reason: 'Build-time generation of type metadata.' },
|
||||
|
||||
@@ -27,6 +27,7 @@ const snapshotAdapters = [
|
||||
'apps/web/tests/message-feedback-protocol.snapshot.ts',
|
||||
'apps/web/tests/minimal-preset.snapshot.ts',
|
||||
'apps/web/tests/preset-migration.snapshot.ts',
|
||||
'apps/web/tests/session-send-message.snapshot.ts',
|
||||
'apps/web/tests/subagent-fork-schedule.snapshot.ts',
|
||||
'snapshots/acp/acp.snapshot.ts',
|
||||
'snapshots/sdk/sdk.snapshot.ts',
|
||||
|
||||
@@ -2577,7 +2577,13 @@ def build_in_history_snapshot_files(
|
||||
systems = [event for event in result.events if event.get("type") == "system/message"]
|
||||
assert len(systems) == 2, systems
|
||||
assert [event.get("surfaceOp") for event in systems] == ["append", "append"], systems
|
||||
prompts = [message_text(event["data"]["message"]["content"]) for event in systems]
|
||||
prompts = [
|
||||
"\n\n".join(
|
||||
block["text"].strip() for block in event["data"]["message"]["content"]
|
||||
if block["type"] == "text" and block["text"].strip()
|
||||
)
|
||||
for event in systems
|
||||
]
|
||||
assert "Python SDK prompt version 1." in prompts[0], prompts
|
||||
assert "Python SDK prompt version 2." not in prompts[0], prompts
|
||||
assert "Python SDK prompt version 2." in prompts[1], prompts
|
||||
@@ -3044,7 +3050,7 @@ def scrub_snapshot_header(value: dict[object, object]) -> None:
|
||||
|
||||
|
||||
def scrub_snapshot_system_message(value: dict[object, object]) -> None:
|
||||
"""Tokenize the rendered prompt text of a `system/message` surface node."""
|
||||
"""Tokenize system text while retaining whitespace separators and source attribution."""
|
||||
if value.get("type") != "system/message":
|
||||
return
|
||||
data = value.get("data")
|
||||
@@ -3054,7 +3060,11 @@ def scrub_snapshot_system_message(value: dict[object, object]) -> None:
|
||||
return
|
||||
for block in content:
|
||||
if isinstance(block, dict) and block.get("type") == "text":
|
||||
block["text"] = "{{system}}"
|
||||
text = block.get("text")
|
||||
if isinstance(text, str) and text.strip():
|
||||
leading = text[:len(text) - len(text.lstrip())]
|
||||
trailing = text[len(text.rstrip()):]
|
||||
block["text"] = leading + "{{system}}" + trailing
|
||||
|
||||
|
||||
def render_jsonl(records: list[object]) -> str:
|
||||
|
||||
@@ -76,13 +76,71 @@
|
||||
"message": {
|
||||
"role": "system",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "{{system}}"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"text": "{{system}}"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"text": "{{system}}"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"text": "{{system}}"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"text": "{{system}}"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"text": "{{system}}"
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"kind": "system-prompt"
|
||||
"kind": "system-prompt",
|
||||
"sections": [
|
||||
{
|
||||
"name": "harness:identity",
|
||||
"order": -1000,
|
||||
"state": "active",
|
||||
"contentIndex": 0
|
||||
},
|
||||
{
|
||||
"name": "tools:ptc-only",
|
||||
"order": 800,
|
||||
"state": "active",
|
||||
"contentIndex": 1
|
||||
},
|
||||
{
|
||||
"name": "tool:jobs",
|
||||
"order": 1600,
|
||||
"state": "active",
|
||||
"contentIndex": 2
|
||||
},
|
||||
{
|
||||
"name": "tool:workflow",
|
||||
"order": 2600,
|
||||
"state": "active",
|
||||
"contentIndex": 3
|
||||
},
|
||||
{
|
||||
"name": "tool:subagent",
|
||||
"order": 2800,
|
||||
"state": "active",
|
||||
"contentIndex": 4
|
||||
},
|
||||
{
|
||||
"name": "tools:sdk",
|
||||
"order": 5000,
|
||||
"state": "active",
|
||||
"contentIndex": 5
|
||||
}
|
||||
]
|
||||
},
|
||||
"id": "{{messageId}}"
|
||||
}
|
||||
@@ -1130,13 +1188,71 @@
|
||||
"message": {
|
||||
"role": "system",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "{{system}}"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"text": "{{system}}"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"text": "{{system}}"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"text": "{{system}}"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"text": "{{system}}"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"text": "{{system}}"
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"kind": "system-prompt"
|
||||
"kind": "system-prompt",
|
||||
"sections": [
|
||||
{
|
||||
"name": "harness:identity",
|
||||
"order": -1000,
|
||||
"state": "active",
|
||||
"contentIndex": 0
|
||||
},
|
||||
{
|
||||
"name": "tools:ptc-only",
|
||||
"order": 800,
|
||||
"state": "active",
|
||||
"contentIndex": 1
|
||||
},
|
||||
{
|
||||
"name": "tool:jobs",
|
||||
"order": 1600,
|
||||
"state": "active",
|
||||
"contentIndex": 2
|
||||
},
|
||||
{
|
||||
"name": "tool:workflow",
|
||||
"order": 2600,
|
||||
"state": "active",
|
||||
"contentIndex": 3
|
||||
},
|
||||
{
|
||||
"name": "tool:subagent",
|
||||
"order": 2800,
|
||||
"state": "active",
|
||||
"contentIndex": 4
|
||||
},
|
||||
{
|
||||
"name": "tools:sdk",
|
||||
"order": 5000,
|
||||
"state": "active",
|
||||
"contentIndex": 5
|
||||
}
|
||||
]
|
||||
},
|
||||
"id": "{{messageId}}"
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
{"type":"agent/inbox/spliced","data":{"target":"next-step","start":0,"removedCount":1,"inserted":[]}}
|
||||
{"type":"agent/inbox/spliced","data":{"target":"next-turn","start":0,"removedCount":1,"inserted":[]}}
|
||||
{"type":"step/start","data":{"turn":1,"step":1}}
|
||||
{"type":"system/message","data":{"turn":1,"step":1,"message":{"role":"system","content":[{"type":"text","text":"{{system}}"}],"source":{"kind":"system-prompt"},"id":"{{messageId}}"}},"surfaceOp":"append"}
|
||||
{"type":"system/message","data":{"turn":1,"step":1,"message":{"role":"system","content":[{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"}],"source":{"kind":"system-prompt","sections":[{"name":"harness:identity","order":-1000,"state":"active","contentIndex":0},{"name":"tools:ptc-only","order":800,"state":"active","contentIndex":1},{"name":"tool:jobs","order":1600,"state":"active","contentIndex":2},{"name":"tool:workflow","order":2600,"state":"active","contentIndex":3},{"name":"tool:subagent","order":2800,"state":"active","contentIndex":4},{"name":"tools:sdk","order":5000,"state":"active","contentIndex":5}]},"id":"{{messageId}}"}},"surfaceOp":"append"}
|
||||
{"type":"user/message","data":{"id":"{{messageId}}","role":"user","content":[{"type":"text","text":"Serial agent creation completed. Ordinary and nested forks are independent; historical fork metadata remains readable."}],"source":{"kind":"plugin:serial-created-fixture"}},"surfaceOp":"append"}
|
||||
{"type":"user/message","data":{"content":[{"type":"text","text":"Run the advanced packaged-runtime snapshot scenario."}],"source":{"kind":"user","clientTimeZone":"UTC"},"role":"user","id":"{{messageId}}"},"surfaceOp":"append"}
|
||||
{"type":"user/message","data":{"content":[{"type":"text","text":"<system-reminder>\nThe following information describes your current session:\n\nCurrent working directory: \"{{cwd}}\".\n\nCurrent DSH file policy: danger-full-access. The DSH file sandbox does not restrict file modifications by available operations.\n\nApproval prompts are disabled in this session: actions that require approval are rejected automatically — do not request sandbox escalation (do not set `sandbox_permissions`).\n</system-reminder>"}],"source":{"kind":"runtime-context","form":"snapshot","sections":[{"name":"working-directory:current","text":"Current working directory: \"{{cwd}}\"."},{"name":"sandbox:policy","text":"Current DSH file policy: danger-full-access. The DSH file sandbox does not restrict file modifications by available operations."},{"name":"approval:policy","text":"Approval prompts are disabled in this session: actions that require approval are rejected automatically — do not request sandbox escalation (do not set `sandbox_permissions`)."}]},"role":"user","id":"{{messageId}}"},"surfaceOp":"append"}
|
||||
|
||||
@@ -76,13 +76,51 @@
|
||||
"message": {
|
||||
"role": "system",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "{{system}}"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"text": "{{system}}"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"text": "{{system}}"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"text": "{{system}}"
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"kind": "system-prompt"
|
||||
"kind": "system-prompt",
|
||||
"sections": [
|
||||
{
|
||||
"name": "harness:identity",
|
||||
"order": -1000,
|
||||
"state": "active",
|
||||
"contentIndex": 0
|
||||
},
|
||||
{
|
||||
"name": "tool:jobs",
|
||||
"order": 1600,
|
||||
"state": "active",
|
||||
"contentIndex": 1
|
||||
},
|
||||
{
|
||||
"name": "tool:workflow",
|
||||
"order": 2600,
|
||||
"state": "active",
|
||||
"contentIndex": 2
|
||||
},
|
||||
{
|
||||
"name": "tool:subagent",
|
||||
"order": 2800,
|
||||
"state": "active",
|
||||
"contentIndex": 3
|
||||
}
|
||||
]
|
||||
},
|
||||
"id": "{{messageId}}"
|
||||
}
|
||||
@@ -1606,13 +1644,51 @@
|
||||
"message": {
|
||||
"role": "system",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "{{system}}"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"text": "{{system}}"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"text": "{{system}}"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"text": "{{system}}"
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"kind": "system-prompt"
|
||||
"kind": "system-prompt",
|
||||
"sections": [
|
||||
{
|
||||
"name": "harness:identity",
|
||||
"order": -1000,
|
||||
"state": "active",
|
||||
"contentIndex": 0
|
||||
},
|
||||
{
|
||||
"name": "tool:jobs",
|
||||
"order": 1600,
|
||||
"state": "active",
|
||||
"contentIndex": 1
|
||||
},
|
||||
{
|
||||
"name": "tool:workflow",
|
||||
"order": 2600,
|
||||
"state": "active",
|
||||
"contentIndex": 2
|
||||
},
|
||||
{
|
||||
"name": "tool:subagent",
|
||||
"order": 2800,
|
||||
"state": "active",
|
||||
"contentIndex": 3
|
||||
}
|
||||
]
|
||||
},
|
||||
"id": "{{messageId}}"
|
||||
}
|
||||
@@ -3106,13 +3182,51 @@
|
||||
"message": {
|
||||
"role": "system",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "{{system}}"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"text": "{{system}}"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"text": "{{system}}"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"text": "{{system}}"
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"kind": "system-prompt"
|
||||
"kind": "system-prompt",
|
||||
"sections": [
|
||||
{
|
||||
"name": "harness:identity",
|
||||
"order": -1000,
|
||||
"state": "active",
|
||||
"contentIndex": 0
|
||||
},
|
||||
{
|
||||
"name": "tool:jobs",
|
||||
"order": 1600,
|
||||
"state": "active",
|
||||
"contentIndex": 1
|
||||
},
|
||||
{
|
||||
"name": "tool:workflow",
|
||||
"order": 2600,
|
||||
"state": "active",
|
||||
"contentIndex": 2
|
||||
},
|
||||
{
|
||||
"name": "tool:subagent",
|
||||
"order": 2800,
|
||||
"state": "active",
|
||||
"contentIndex": 3
|
||||
}
|
||||
]
|
||||
},
|
||||
"id": "{{messageId}}"
|
||||
}
|
||||
@@ -4124,13 +4238,51 @@
|
||||
"message": {
|
||||
"role": "system",
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "{{system}}"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"text": "{{system}}"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"text": "{{system}}"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"text": "{{system}}"
|
||||
}
|
||||
],
|
||||
"source": {
|
||||
"kind": "system-prompt"
|
||||
"kind": "system-prompt",
|
||||
"sections": [
|
||||
{
|
||||
"name": "harness:identity",
|
||||
"order": -1000,
|
||||
"state": "active",
|
||||
"contentIndex": 0
|
||||
},
|
||||
{
|
||||
"name": "tool:jobs",
|
||||
"order": 1600,
|
||||
"state": "active",
|
||||
"contentIndex": 1
|
||||
},
|
||||
{
|
||||
"name": "tool:workflow",
|
||||
"order": 2600,
|
||||
"state": "active",
|
||||
"contentIndex": 2
|
||||
},
|
||||
{
|
||||
"name": "tool:subagent",
|
||||
"order": 2800,
|
||||
"state": "active",
|
||||
"contentIndex": 3
|
||||
}
|
||||
]
|
||||
},
|
||||
"id": "{{messageId}}"
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
{"type":"agent/inbox/spliced","data":{"target":"next-step","start":0,"removedCount":1,"inserted":[]}}
|
||||
{"type":"agent/inbox/spliced","data":{"target":"next-turn","start":0,"removedCount":1,"inserted":[]}}
|
||||
{"type":"step/start","data":{"turn":2,"step":1}}
|
||||
{"type":"system/message","data":{"turn":2,"step":1,"message":{"role":"system","content":[{"type":"text","text":"{{system}}"}],"source":{"kind":"system-prompt"},"id":"{{messageId}}"}},"surfaceOp":"append"}
|
||||
{"type":"system/message","data":{"turn":2,"step":1,"message":{"role":"system","content":[{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"}],"source":{"kind":"system-prompt","sections":[{"name":"harness:identity","order":-1000,"state":"active","contentIndex":0},{"name":"tool:jobs","order":1600,"state":"active","contentIndex":1},{"name":"tool:workflow","order":2600,"state":"active","contentIndex":2},{"name":"tool:subagent","order":2800,"state":"active","contentIndex":3}]},"id":"{{messageId}}"}},"surfaceOp":"append"}
|
||||
{"type":"user/message","data":{"id":"{{messageId}}","role":"user","content":[{"type":"text","text":"Serial agent creation completed."}],"source":{"kind":"plugin:serial-created-fixture"}},"surfaceOp":"append"}
|
||||
{"type":"user/message","data":{"content":[{"type":"text","text":"Agent lead sent a message: "},{"type":"text","text":"Reply with exactly DIRECT_CHILD_OK and nothing else."},{"type":"text","text":"Your final answer is delivered automatically if your parent is still online. Include the result and relevant evidence in that answer; the parent does not receive your full transcript, tool output, or reasoning. If your last action is a message to your parent, the completion notice omits your final answer; include the result and relevant evidence in that message."}],"source":{"kind":"agent-message","form":"relay","senderSessionId":"{{parent}}"},"role":"user","id":"{{messageId}}"},"surfaceOp":"append"}
|
||||
{"type":"user/message","data":{"content":[{"type":"text","text":"<system-reminder>\nThe following information describes your current session:\n\nCurrent working directory: \"{{cwd}}\".\n\nCurrent DSH file policy: danger-full-access. The DSH file sandbox does not restrict file modifications by available operations.\n\nApproval prompts are disabled in this session: actions that require approval are rejected automatically — do not request sandbox escalation (do not set `sandbox_permissions`).\n\nDelegation depth for `subagent`: current 1, maximum 1, remaining levels 0. Do not call `subagent` at this depth; carry out the work directly.\n\nYou are a delegated subagent: your permission scope was fixed when you were started and cannot be widened from inside this session — operations that require approval are rejected automatically. When the task needs access beyond that scope, do not retry the denied operation; state the limitation in your reply so the delegating agent can handle it. Messages from other agents begin with \"Agent <name> sent a message:\". Other user messages come from the human user, who reads this conversation directly. You can still message other agents to coordinate, but answer the human user in your reply.\n</system-reminder>"}],"source":{"kind":"runtime-context","form":"snapshot","sections":[{"name":"working-directory:current","text":"Current working directory: \"{{cwd}}\"."},{"name":"sandbox:policy","text":"Current DSH file policy: danger-full-access. The DSH file sandbox does not restrict file modifications by available operations."},{"name":"approval:policy","text":"Approval prompts are disabled in this session: actions that require approval are rejected automatically — do not request sandbox escalation (do not set `sandbox_permissions`)."},{"name":"tool:subagent:depth","text":"Delegation depth for `subagent`: current 1, maximum 1, remaining levels 0. Do not call `subagent` at this depth; carry out the work directly."},{"name":"subagent:delegation","text":"You are a delegated subagent: your permission scope was fixed when you were started and cannot be widened from inside this session — operations that require approval are rejected automatically. When the task needs access beyond that scope, do not retry the denied operation; state the limitation in your reply so the delegating agent can handle it. Messages from other agents begin with \"Agent <name> sent a message:\". Other user messages come from the human user, who reads this conversation directly. You can still message other agents to coordinate, but answer the human user in your reply."}]},"role":"user","id":"{{messageId}}"},"surfaceOp":"append"}
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
{"type":"agent/inbox/spliced","data":{"target":"next-step","start":0,"removedCount":1,"inserted":[]}}
|
||||
{"type":"agent/inbox/spliced","data":{"target":"next-turn","start":0,"removedCount":1,"inserted":[]}}
|
||||
{"type":"step/start","data":{"turn":2,"step":1}}
|
||||
{"type":"system/message","data":{"turn":2,"step":1,"message":{"role":"system","content":[{"type":"text","text":"{{system}}"}],"source":{"kind":"system-prompt"},"id":"{{messageId}}"}},"surfaceOp":"append"}
|
||||
{"type":"system/message","data":{"turn":2,"step":1,"message":{"role":"system","content":[{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"}],"source":{"kind":"system-prompt","sections":[{"name":"harness:identity","order":-1000,"state":"active","contentIndex":0},{"name":"tool:jobs","order":1600,"state":"active","contentIndex":1},{"name":"tool:workflow","order":2600,"state":"active","contentIndex":2},{"name":"tool:subagent","order":2800,"state":"active","contentIndex":3}]},"id":"{{messageId}}"}},"surfaceOp":"append"}
|
||||
{"type":"user/message","data":{"id":"{{messageId}}","role":"user","content":[{"type":"text","text":"Serial agent creation completed."}],"source":{"kind":"plugin:serial-created-fixture"}},"surfaceOp":"append"}
|
||||
{"type":"user/message","data":{"content":[{"type":"text","text":"Agent lead sent a message: "},{"type":"text","text":"Reply with exactly WORKFLOW_CHILD_OK and nothing else."}],"source":{"kind":"agent-message","form":"relay","senderSessionId":"{{parent}}"},"role":"user","id":"{{messageId}}"},"surfaceOp":"append"}
|
||||
{"type":"user/message","data":{"content":[{"type":"text","text":"<system-reminder>\nThe following information describes your current session:\n\nCurrent working directory: \"{{cwd}}\".\n\nCurrent DSH file policy: danger-full-access. The DSH file sandbox does not restrict file modifications by available operations.\n\nApproval prompts are disabled in this session: actions that require approval are rejected automatically — do not request sandbox escalation (do not set `sandbox_permissions`).\n\nDelegation depth for `subagent`: current 1, maximum 1, remaining levels 0. Do not call `subagent` at this depth; carry out the work directly.\n\nYou are a delegated subagent: your permission scope was fixed when you were started and cannot be widened from inside this session — operations that require approval are rejected automatically. When the task needs access beyond that scope, do not retry the denied operation; state the limitation in your reply so the delegating agent can handle it. Messages from other agents begin with \"Agent <name> sent a message:\". Other user messages come from the human user, who reads this conversation directly. You can still message other agents to coordinate, but answer the human user in your reply.\n</system-reminder>"}],"source":{"kind":"runtime-context","form":"snapshot","sections":[{"name":"working-directory:current","text":"Current working directory: \"{{cwd}}\"."},{"name":"sandbox:policy","text":"Current DSH file policy: danger-full-access. The DSH file sandbox does not restrict file modifications by available operations."},{"name":"approval:policy","text":"Approval prompts are disabled in this session: actions that require approval are rejected automatically — do not request sandbox escalation (do not set `sandbox_permissions`)."},{"name":"tool:subagent:depth","text":"Delegation depth for `subagent`: current 1, maximum 1, remaining levels 0. Do not call `subagent` at this depth; carry out the work directly."},{"name":"subagent:delegation","text":"You are a delegated subagent: your permission scope was fixed when you were started and cannot be widened from inside this session — operations that require approval are rejected automatically. When the task needs access beyond that scope, do not retry the denied operation; state the limitation in your reply so the delegating agent can handle it. Messages from other agents begin with \"Agent <name> sent a message:\". Other user messages come from the human user, who reads this conversation directly. You can still message other agents to coordinate, but answer the human user in your reply."}]},"role":"user","id":"{{messageId}}"},"surfaceOp":"append"}
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
{"type":"agent/inbox/spliced","data":{"target":"next-step","start":0,"removedCount":1,"inserted":[]}}
|
||||
{"type":"agent/inbox/spliced","data":{"target":"next-turn","start":0,"removedCount":1,"inserted":[]}}
|
||||
{"type":"step/start","data":{"turn":1,"step":1}}
|
||||
{"type":"system/message","data":{"turn":1,"step":1,"message":{"role":"system","content":[{"type":"text","text":"{{system}}"}],"source":{"kind":"system-prompt"},"id":"{{messageId}}"}},"surfaceOp":"append"}
|
||||
{"type":"system/message","data":{"turn":1,"step":1,"message":{"role":"system","content":[{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"}],"source":{"kind":"system-prompt","sections":[{"name":"harness:identity","order":-1000,"state":"active","contentIndex":0},{"name":"tool:jobs","order":1600,"state":"active","contentIndex":1},{"name":"tool:workflow","order":2600,"state":"active","contentIndex":2},{"name":"tool:subagent","order":2800,"state":"active","contentIndex":3}]},"id":"{{messageId}}"}},"surfaceOp":"append"}
|
||||
{"type":"user/message","data":{"id":"{{messageId}}","role":"user","content":[{"type":"text","text":"Serial agent creation completed. Ordinary and nested forks are independent; historical fork metadata remains readable."}],"source":{"kind":"plugin:serial-created-fixture"}},"surfaceOp":"append"}
|
||||
{"type":"user/message","data":{"content":[{"type":"text","text":"Run the advanced packaged-runtime snapshot scenario."}],"source":{"kind":"user","clientTimeZone":"UTC"},"role":"user","id":"{{messageId}}"},"surfaceOp":"append"}
|
||||
{"type":"user/message","data":{"content":[{"type":"text","text":"<system-reminder>\nThe following information describes your current session:\n\nCurrent working directory: \"{{cwd}}\".\n\nCurrent DSH file policy: danger-full-access. The DSH file sandbox does not restrict file modifications by available operations.\n\nApproval prompts are disabled in this session: actions that require approval are rejected automatically — do not request sandbox escalation (do not set `sandbox_permissions`).\n</system-reminder>"}],"source":{"kind":"runtime-context","form":"snapshot","sections":[{"name":"working-directory:current","text":"Current working directory: \"{{cwd}}\"."},{"name":"sandbox:policy","text":"Current DSH file policy: danger-full-access. The DSH file sandbox does not restrict file modifications by available operations."},{"name":"approval:policy","text":"Approval prompts are disabled in this session: actions that require approval are rejected automatically — do not request sandbox escalation (do not set `sandbox_permissions`)."}]},"role":"user","id":"{{messageId}}"},"surfaceOp":"append"}
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
}
|
||||
},
|
||||
"catalogs": [
|
||||
"Query the packaged Python environment for Office authoring.<system-reminder>\nThe following information describes your current session:\n\nCurrent working directory: \"{{cwd}}\".\n\nCurrent DSH file policy: danger-full-access. The DSH file sandbox does not restrict file modifications by available operations.\n\nApproval prompts are disabled in this session: actions that require approval are rejected automatically — do not request sandbox escalation (do not set `sandbox_permissions`).\n\nYou are the root agent. Your name is \"lead\".\n\nTo message other agents, use send_message({ agent: \"<agent-name>\", message: \"...\" }).\nUse list_agents({}) to find your collaborator agents and their names.\n</system-reminder><system-reminder>\nA skill is a reusable set of task-specific instructions. The following skills are available in this session:\n\n<available_skills>\n- `office`: Create or edit Office files; inspect Office files and PDFs. Load before rendering, conversion, or recalculation to enable office_render, office_convert, and office_recalculate next step.\n- `office-docx`: Create, read, edit, and validate Word documents (.docx).\n- `office-pptx`: Create, read, edit, and validate PowerPoint presentations (.pptx).\n- `office-xlsx`: Read, create, edit, and validate Excel workbooks, data, and formulas (.xlsx).\n</available_skills>\n\nIf the user names a skill, or the task clearly matches a skill's description, call the `skill` tool with the exact skill name before taking task actions. Load all applicable skills, then follow their full instructions. This catalog contains summaries only; do not infer or follow a skill's instructions until it has been loaded.\nA user may also invoke a skill directly; its <skill_content> block then appears in this conversation. Follow it, and do not call the `skill` tool again for that skill.\n</system-reminder>Time sampled while preparing turn 1, step 1: 2026-10-16T00:00:00+00:00[UTC]\nBrowser time zone for this request: UTC. Interpret otherwise-unqualified dates and times in this zone.\nElapsed since the preceding model-visible message: unavailable."
|
||||
"Query the packaged Python environment for Office authoring.<system-reminder>\nThe following information describes your current session:\n\nCurrent working directory: \"{{cwd}}\".\n\nCurrent DSH file policy: danger-full-access. The DSH file sandbox does not restrict file modifications by available operations.\n\nApproval prompts are disabled in this session: actions that require approval are rejected automatically — do not request sandbox escalation (do not set `sandbox_permissions`).\n\nYou are the root agent. Your name is \"lead\".\n\nTo message other agents, use send_message({ agent: \"<agent-name>\", message: \"...\" }).\nUse list_agents({}) to find your collaborator agents and their names.\n</system-reminder><system-reminder>\nA skill is a reusable set of task-specific instructions. The following skills are available in this session:\n\n<available_skills>\n- `dsh-doc`: Use when a task needs facts about DeepSeek Harness (DSH) itself, such as how a feature, setting, plugin, agent preset, tool, or Cordis API of the running installation works; when the user asks to design, review, build, install, enable, or debug a DSH plugin, bundle, MCP connection, agent preset, plugin icon or detail page, or a DSH tool definition or skill; and when upgrading a plugin or profile to a newer DSH release. Loading it grants no permission to change files or the profile.\n- `office`: Create or edit Office files; inspect Office files and PDFs. Load before rendering, conversion, or recalculation to enable office_render, office_convert, and office_recalculate next step.\n- `office-docx`: Create, read, edit, and validate Word documents (.docx).\n- `office-pptx`: Create, read, edit, and validate PowerPoint presentations (.pptx).\n- `office-xlsx`: Read, create, edit, and validate Excel workbooks, data, and formulas (.xlsx).\n</available_skills>\n\nIf the user names a skill, or the task clearly matches a skill's description, call the `skill` tool with the exact skill name before taking task actions. Load all applicable skills, then follow their full instructions. This catalog contains summaries only; do not infer or follow a skill's instructions until it has been loaded.\nA user may also invoke a skill directly; its <skill_content> block then appears in this conversation. Follow it, and do not call the `skill` tool again for that skill.\n</system-reminder>Time sampled while preparing turn 1, step 1: 2026-10-16T00:00:00+00:00[UTC]\nBrowser time zone for this request: UTC. Interpret otherwise-unqualified dates and times in this zone.\nElapsed since the preceding model-visible message: unavailable."
|
||||
],
|
||||
"result": {
|
||||
"python": "{{python}}",
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
}
|
||||
},
|
||||
"catalogs": [
|
||||
"Query the packaged Python environment for Office authoring.<system-reminder>\nThe following information describes your current session:\n\nCurrent working directory: \"{{cwd}}\".\n\nCurrent DSH file policy: danger-full-access. The DSH file sandbox does not restrict file modifications by available operations.\n\nApproval prompts are disabled in this session: actions that require approval are rejected automatically — do not request sandbox escalation (do not set `sandbox_permissions`).\n\nYou are the root agent. Your name is \"lead\".\n\nTo message other agents, use send_message({ agent: \"<agent-name>\", message: \"...\" }).\nUse list_agents({}) to find your collaborator agents and their names.\n</system-reminder><system-reminder>\nA skill is a reusable set of task-specific instructions. The following skills are available in this session:\n\n<available_skills>\n- `diagnose-windows-sandbox-acl`: Use on Windows for unexpected DSH sandbox access denials: workspace writes or listing fail, or an ordinarily readable path cannot be read. One bundled command inspects the path and every ancestor and repairs the ACL problems it proves in that same run. Expected confinement denials need no ACL repair.\n- `office`: Create or edit Office files; inspect Office files and PDFs. Load before rendering, conversion, or recalculation to enable office_render, office_convert, and office_recalculate next step.\n- `office-docx`: Create, read, edit, and validate Word documents (.docx).\n- `office-pptx`: Create, read, edit, and validate PowerPoint presentations (.pptx).\n- `office-xlsx`: Read, create, edit, and validate Excel workbooks, data, and formulas (.xlsx).\n</available_skills>\n\nIf the user names a skill, or the task clearly matches a skill's description, call the `skill` tool with the exact skill name before taking task actions. Load all applicable skills, then follow their full instructions. This catalog contains summaries only; do not infer or follow a skill's instructions until it has been loaded.\nA user may also invoke a skill directly; its <skill_content> block then appears in this conversation. Follow it, and do not call the `skill` tool again for that skill.\n</system-reminder>Time sampled while preparing turn 1, step 1: 2026-10-16T00:00:00+00:00[UTC]\nBrowser time zone for this request: UTC. Interpret otherwise-unqualified dates and times in this zone.\nElapsed since the preceding model-visible message: unavailable."
|
||||
"Query the packaged Python environment for Office authoring.<system-reminder>\nThe following information describes your current session:\n\nCurrent working directory: \"{{cwd}}\".\n\nCurrent DSH file policy: danger-full-access. The DSH file sandbox does not restrict file modifications by available operations.\n\nApproval prompts are disabled in this session: actions that require approval are rejected automatically — do not request sandbox escalation (do not set `sandbox_permissions`).\n\nYou are the root agent. Your name is \"lead\".\n\nTo message other agents, use send_message({ agent: \"<agent-name>\", message: \"...\" }).\nUse list_agents({}) to find your collaborator agents and their names.\n</system-reminder><system-reminder>\nA skill is a reusable set of task-specific instructions. The following skills are available in this session:\n\n<available_skills>\n- `diagnose-windows-sandbox-acl`: Use on Windows for unexpected DSH sandbox access denials: workspace writes or listing fail, or an ordinarily readable path cannot be read. One bundled command inspects the path and every ancestor and repairs the ACL problems it proves in that same run. Expected confinement denials need no ACL repair.\n- `dsh-doc`: Use when a task needs facts about DeepSeek Harness (DSH) itself, such as how a feature, setting, plugin, agent preset, tool, or Cordis API of the running installation works; when the user asks to design, review, build, install, enable, or debug a DSH plugin, bundle, MCP connection, agent preset, plugin icon or detail page, or a DSH tool definition or skill; and when upgrading a plugin or profile to a newer DSH release. Loading it grants no permission to change files or the profile.\n- `office`: Create or edit Office files; inspect Office files and PDFs. Load before rendering, conversion, or recalculation to enable office_render, office_convert, and office_recalculate next step.\n- `office-docx`: Create, read, edit, and validate Word documents (.docx).\n- `office-pptx`: Create, read, edit, and validate PowerPoint presentations (.pptx).\n- `office-xlsx`: Read, create, edit, and validate Excel workbooks, data, and formulas (.xlsx).\n</available_skills>\n\nIf the user names a skill, or the task clearly matches a skill's description, call the `skill` tool with the exact skill name before taking task actions. Load all applicable skills, then follow their full instructions. This catalog contains summaries only; do not infer or follow a skill's instructions until it has been loaded.\nA user may also invoke a skill directly; its <skill_content> block then appears in this conversation. Follow it, and do not call the `skill` tool again for that skill.\n</system-reminder>Time sampled while preparing turn 1, step 1: 2026-10-16T00:00:00+00:00[UTC]\nBrowser time zone for this request: UTC. Interpret otherwise-unqualified dates and times in this zone.\nElapsed since the preceding model-visible message: unavailable."
|
||||
],
|
||||
"result": {
|
||||
"python": "{{python}}",
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
"events": [
|
||||
{
|
||||
"type": "request/header",
|
||||
"seq": 12,
|
||||
"seq": 13,
|
||||
"time": 0,
|
||||
"data": {
|
||||
"header": {
|
||||
@@ -82,7 +82,7 @@
|
||||
},
|
||||
{
|
||||
"type": "request/context",
|
||||
"seq": 13,
|
||||
"seq": 14,
|
||||
"time": 0,
|
||||
"data": {
|
||||
"provider": "deepseek-official",
|
||||
@@ -92,7 +92,7 @@
|
||||
},
|
||||
{
|
||||
"type": "request/header",
|
||||
"seq": 20,
|
||||
"seq": 21,
|
||||
"time": 0,
|
||||
"data": {
|
||||
"header": {
|
||||
@@ -145,7 +145,7 @@
|
||||
},
|
||||
{
|
||||
"type": "developer/message",
|
||||
"seq": 21,
|
||||
"seq": 22,
|
||||
"time": 0,
|
||||
"data": {
|
||||
"turn": 1,
|
||||
@@ -169,7 +169,7 @@
|
||||
},
|
||||
{
|
||||
"type": "request/header",
|
||||
"seq": 27,
|
||||
"seq": 28,
|
||||
"time": 0,
|
||||
"data": {
|
||||
"header": {
|
||||
@@ -221,7 +221,7 @@
|
||||
},
|
||||
{
|
||||
"type": "developer/message",
|
||||
"seq": 28,
|
||||
"seq": 29,
|
||||
"time": 0,
|
||||
"data": {
|
||||
"turn": 1,
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
],
|
||||
[
|
||||
"You are a helpful software engineer assistant.\n\nPython SDK prompt version 1.",
|
||||
"You are a helpful software engineer assistant.\n\nPython SDK prompt version 2."
|
||||
"The following replaces the earlier instructions from python-sdk:in-history.\n\nPython SDK prompt version 2."
|
||||
],
|
||||
[
|
||||
"You are a helpful software engineer assistant.\n\nPython SDK prompt version 1.",
|
||||
"You are a helpful software engineer assistant.\n\nPython SDK prompt version 2."
|
||||
"The following replaces the earlier instructions from python-sdk:in-history.\n\nPython SDK prompt version 2."
|
||||
]
|
||||
],
|
||||
"systemMessageOperations": [
|
||||
@@ -18,7 +18,7 @@
|
||||
],
|
||||
"subscribedSystemPrompts": [
|
||||
"You are a helpful software engineer assistant.\n\nPython SDK prompt version 1.",
|
||||
"You are a helpful software engineer assistant.\n\nPython SDK prompt version 2."
|
||||
"The following replaces the earlier instructions from python-sdk:in-history.\n\nPython SDK prompt version 2."
|
||||
],
|
||||
"requestContexts": [
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
{"type":"turn/start","data":{"turn":1}}
|
||||
{"type":"agent/inbox/spliced","data":{"target":"next-turn","start":0,"removedCount":1,"inserted":[]}}
|
||||
{"type":"step/start","data":{"turn":1,"step":1}}
|
||||
{"type":"system/message","data":{"turn":1,"step":1,"message":{"role":"system","content":[{"type":"text","text":"{{system}}"}],"source":{"kind":"system-prompt"},"id":"{{messageId}}"}},"surfaceOp":"append"}
|
||||
{"type":"system/message","data":{"turn":1,"step":1,"message":{"role":"system","content":[{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"}],"source":{"kind":"system-prompt","sections":[{"name":"harness:identity","order":-1000,"state":"active","contentIndex":0},{"name":"tool:jobs","order":1600,"state":"active","contentIndex":1},{"name":"tool:workflow","order":2600,"state":"active","contentIndex":2},{"name":"tool:subagent","order":2800,"state":"active","contentIndex":3}]},"id":"{{messageId}}"}},"surfaceOp":"append"}
|
||||
{"type":"user/message","data":{"content":[{"type":"text","text":"Complete the first isolated Python SDK process turn."}],"source":{"kind":"user","clientTimeZone":"UTC"},"role":"user","id":"{{messageId}}"},"surfaceOp":"append"}
|
||||
{"type":"user/message","data":{"content":[{"type":"text","text":"<system-reminder>\nThe following information describes your current session:\n\nCurrent working directory: \"{{cwd}}\".\n\nCurrent DSH file policy: danger-full-access. The DSH file sandbox does not restrict file modifications by available operations.\n\nApproval prompts are disabled in this session: actions that require approval are rejected automatically — do not request sandbox escalation (do not set `sandbox_permissions`).\n</system-reminder>"}],"source":{"kind":"runtime-context","form":"snapshot","sections":[{"name":"working-directory:current","text":"Current working directory: \"{{cwd}}\"."},{"name":"sandbox:policy","text":"Current DSH file policy: danger-full-access. The DSH file sandbox does not restrict file modifications by available operations."},{"name":"approval:policy","text":"Approval prompts are disabled in this session: actions that require approval are rejected automatically — do not request sandbox escalation (do not set `sandbox_permissions`)."}]},"role":"user","id":"{{messageId}}"},"surfaceOp":"append"}
|
||||
{"type":"request/header","data":{"header":{"config":{"provider":"deepseek-official","model":"smoke-model","maxTokens":256000,"reasoningEffort":"high"},"adapterDefaults":{"reasoningEffort":true,"maxTokens":true},"tools":["cordis_inspect","job_kill","job_list","job_output","subagent","workflow"]},"reason":"initial"}}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
{"type":"turn/start","data":{"turn":1}}
|
||||
{"type":"agent/inbox/spliced","data":{"target":"next-turn","start":0,"removedCount":1,"inserted":[]}}
|
||||
{"type":"step/start","data":{"turn":1,"step":1}}
|
||||
{"type":"system/message","data":{"turn":1,"step":1,"message":{"role":"system","content":[{"type":"text","text":"{{system}}"}],"source":{"kind":"system-prompt"},"id":"{{messageId}}"}},"surfaceOp":"append"}
|
||||
{"type":"system/message","data":{"turn":1,"step":1,"message":{"role":"system","content":[{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"}],"source":{"kind":"system-prompt","sections":[{"name":"harness:identity","order":-1000,"state":"active","contentIndex":0},{"name":"tool:jobs","order":1600,"state":"active","contentIndex":1},{"name":"tool:workflow","order":2600,"state":"active","contentIndex":2},{"name":"tool:subagent","order":2800,"state":"active","contentIndex":3}]},"id":"{{messageId}}"}},"surfaceOp":"append"}
|
||||
{"type":"user/message","data":{"content":[{"type":"text","text":"Complete the second isolated Python SDK process turn."}],"source":{"kind":"user","clientTimeZone":"UTC"},"role":"user","id":"{{messageId}}"},"surfaceOp":"append"}
|
||||
{"type":"user/message","data":{"content":[{"type":"text","text":"<system-reminder>\nThe following information describes your current session:\n\nCurrent working directory: \"{{cwd}}\".\n\nCurrent DSH file policy: danger-full-access. The DSH file sandbox does not restrict file modifications by available operations.\n\nApproval prompts are disabled in this session: actions that require approval are rejected automatically — do not request sandbox escalation (do not set `sandbox_permissions`).\n</system-reminder>"}],"source":{"kind":"runtime-context","form":"snapshot","sections":[{"name":"working-directory:current","text":"Current working directory: \"{{cwd}}\"."},{"name":"sandbox:policy","text":"Current DSH file policy: danger-full-access. The DSH file sandbox does not restrict file modifications by available operations."},{"name":"approval:policy","text":"Approval prompts are disabled in this session: actions that require approval are rejected automatically — do not request sandbox escalation (do not set `sandbox_permissions`)."}]},"role":"user","id":"{{messageId}}"},"surfaceOp":"append"}
|
||||
{"type":"request/header","data":{"header":{"config":{"provider":"deepseek-official","model":"smoke-model","maxTokens":256000,"reasoningEffort":"high"},"adapterDefaults":{"reasoningEffort":true,"maxTokens":true},"tools":["cordis_inspect","job_kill","job_list","job_output","subagent","workflow"]},"reason":"initial"}}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
{"type":"turn/start","data":{"turn":1}}
|
||||
{"type":"agent/inbox/spliced","data":{"target":"next-turn","start":0,"removedCount":1,"inserted":[]}}
|
||||
{"type":"step/start","data":{"turn":1,"step":1}}
|
||||
{"type":"system/message","data":{"turn":1,"step":1,"message":{"role":"system","content":[{"type":"text","text":"{{system}}"}],"source":{"kind":"system-prompt"},"id":"{{messageId}}"}},"surfaceOp":"append"}
|
||||
{"type":"system/message","data":{"turn":1,"step":1,"message":{"role":"system","content":[{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"}],"source":{"kind":"system-prompt","sections":[{"name":"harness:identity","order":-1000,"state":"active","contentIndex":0},{"name":"tool:jobs","order":1600,"state":"active","contentIndex":1},{"name":"tool:workflow","order":2600,"state":"active","contentIndex":2},{"name":"tool:subagent","order":2800,"state":"active","contentIndex":3}]},"id":"{{messageId}}"}},"surfaceOp":"append"}
|
||||
{"type":"user/message","data":{"content":[{"type":"text","text":"Run three todo updates; the scheduler will reject the second call."}],"source":{"kind":"user","clientTimeZone":"UTC"},"role":"user","id":"{{messageId}}"},"surfaceOp":"append"}
|
||||
{"type":"user/message","data":{"content":[{"type":"text","text":"<system-reminder>\nThe following information describes your current session:\n\nCurrent working directory: \"{{cwd}}\".\n\nCurrent DSH file policy: danger-full-access. The DSH file sandbox does not restrict file modifications by available operations.\n\nApproval prompts are disabled in this session: actions that require approval are rejected automatically — do not request sandbox escalation (do not set `sandbox_permissions`).\n</system-reminder>"}],"source":{"kind":"runtime-context","form":"snapshot","sections":[{"name":"working-directory:current","text":"Current working directory: \"{{cwd}}\"."},{"name":"sandbox:policy","text":"Current DSH file policy: danger-full-access. The DSH file sandbox does not restrict file modifications by available operations."},{"name":"approval:policy","text":"Approval prompts are disabled in this session: actions that require approval are rejected automatically — do not request sandbox escalation (do not set `sandbox_permissions`)."}]},"role":"user","id":"{{messageId}}"},"surfaceOp":"append"}
|
||||
{"type":"request/header","data":{"header":{"config":{"provider":"deepseek-official","model":"smoke-model","maxTokens":256000,"reasoningEffort":"high"},"adapterDefaults":{"reasoningEffort":true,"maxTokens":true},"tools":["cordis_inspect","job_kill","job_list","job_output","subagent","todo_write","workflow"]},"reason":"initial"}}
|
||||
|
||||
@@ -539,6 +539,11 @@
|
||||
"symbol": "SurfaceIntent",
|
||||
"source": "packages/core/session/src/types.ts"
|
||||
},
|
||||
{
|
||||
"doc": "docs/subsystems/session.md",
|
||||
"symbol": "SystemSurfaceNode",
|
||||
"source": "packages/core/session/src/surface.ts"
|
||||
},
|
||||
{
|
||||
"doc": "docs/subsystems/session.md",
|
||||
"symbol": "SessionSurface",
|
||||
@@ -2394,6 +2399,11 @@
|
||||
"symbol": "WorkspaceChanges",
|
||||
"source": "packages/deliverables/workspace-changes/src/types.ts"
|
||||
},
|
||||
{
|
||||
"doc": "docs/subsystems/subagent.md",
|
||||
"symbol": "SubagentCapacity",
|
||||
"source": "packages/subagent/subagent/src/types.ts"
|
||||
},
|
||||
{
|
||||
"doc": "docs/subsystems/subagent.md",
|
||||
"symbol": "SubagentActivationSpec",
|
||||
@@ -2534,6 +2544,31 @@
|
||||
"symbol": "ChangeRequestListener",
|
||||
"source": "packages/experimental/forge/src/types.ts"
|
||||
},
|
||||
{
|
||||
"doc": "docs/subsystems/forge.md",
|
||||
"symbol": "ChangeRequestBrief",
|
||||
"source": "packages/experimental/forge/src/types.ts"
|
||||
},
|
||||
{
|
||||
"doc": "docs/subsystems/forge.md",
|
||||
"symbol": "ChangeRequestBriefUpdate",
|
||||
"source": "packages/experimental/forge/src/types.ts"
|
||||
},
|
||||
{
|
||||
"doc": "docs/subsystems/forge.md",
|
||||
"symbol": "ChangeRequestBriefListener",
|
||||
"source": "packages/experimental/forge/src/types.ts"
|
||||
},
|
||||
{
|
||||
"doc": "docs/subsystems/forge.md",
|
||||
"symbol": "ChangeRequestWatchOptions",
|
||||
"source": "packages/experimental/forge/src/types.ts"
|
||||
},
|
||||
{
|
||||
"doc": "docs/subsystems/forge.md",
|
||||
"symbol": "ChangeRequestKnownState",
|
||||
"source": "packages/experimental/forge/src/types.ts"
|
||||
},
|
||||
{
|
||||
"doc": "docs/subsystems/forge.md",
|
||||
"symbol": "SessionChangeRequestsListener",
|
||||
|
||||
@@ -196,7 +196,7 @@ it.skipIf(process.platform !== 'win32')('stages helpers that remain usable when
|
||||
const temporary = resolve(directory, 'temporary')
|
||||
mkdirSync(scripts, { recursive: true })
|
||||
mkdirSync(temporary)
|
||||
for (const name of ['windows-packaging-priority.ps1']) {
|
||||
for (const name of ['windows-packaging-priority.ps1', 'windows-packaging-summary.mjs']) {
|
||||
writeFileSync(resolve(scripts, name), readFileSync(resolve(root, 'apps/desktop/scripts', name)))
|
||||
}
|
||||
const stage = resolve(directory, 'stage.ps1')
|
||||
|
||||
Reference in new issue
Block a user