refactor: apply repository naming contract

Apply the accepted pre-release package, service, type, directory, and role renames as one repository-wide change.
This commit is contained in:
Tianyi Cui
2026-08-13 00:36:22 +08:00
parent 101df7cf58
commit a2d0f7f411
3281 changed files with 21730 additions and 21592 deletions

View File

@@ -1,15 +1,15 @@
import type { Context } from '@deepseek-ai/cordis'
import '@deepseek-ai/dsh-user-interaction'
import '@deepseek-ai/dsh-user-questions'
/** Snapshot-only provider whose invocation means the child guard failed. */
export const name = 'child-question-tripwire'
/** User-interaction service required by the tripwire provider. */
export const inject = ['userInteraction']
export const inject = ['userQuestions']
/** Register a provider that must remain unreachable for the delegated call. */
export function apply(ctx: Context): void {
ctx.userInteraction.registerProvider({
ctx.userQuestions.registerProvider({
async ask() {
throw new Error('snapshot tripwire: delegated question reached the UI provider')
},

View File

@@ -14,14 +14,14 @@
config:
graceMs: 200
- id: bash-env
name: '@deepseek-ai/dsh-bash-env'
- id: shell-env
name: '@deepseek-ai/dsh-shell-env'
- id: tasks
name: '@deepseek-ai/dsh-tasks-local'
name: '@deepseek-ai/dsh-jobs-local'
- id: tool-tasks
name: '@deepseek-ai/dsh-tool-tasks'
- id: tool-jobs
name: '@deepseek-ai/dsh-tool-jobs'
- id: tool-pwsh
name: '@deepseek-ai/dsh-tool-pwsh'

View File

@@ -37,7 +37,7 @@ try {
run_in_background: true,
},
})
const taskId = (background.value as { taskId: string }).taskId
const jobId = (background.value as { jobId: string }).jobId
// The output delta and the terminal status can land in separate reads
// (Windows flushes the child pipe at exit), so accumulate both.
@@ -47,8 +47,8 @@ try {
const read = await ctx.tools.execute({
signal: new AbortController().signal,
callId: CallId('loader-bg-read'),
name: 'task_output',
arguments: { task_id: taskId },
name: 'job_output',
arguments: { job_id: jobId },
})
backgroundText += read.content.filter(block => block.type === 'text').map(block => block.text).join('')
if (backgroundText.includes('loader-bg-ok') && backgroundText.includes('[status: completed')) break

View File

@@ -1,6 +1,6 @@
import type { Context } from '@deepseek-ai/cordis'
import type {} from '@deepseek-ai/dsh-agent'
import { CompactionId, compactCheckpointSource } from '@deepseek-ai/dsh-compact'
import { CompactionId, compactCheckpointSource } from '@deepseek-ai/dsh-compaction'
import { createUserMessage } from '@deepseek-ai/dsh-llm'
import type {} from '@deepseek-ai/dsh-tools'
@@ -21,7 +21,7 @@ export function apply(ctx: Context): void {
const baseline = agent.session.surface.nodes
.map(seq => agent.session.events[seq])
.find(event => event?.type === 'user/message'
&& event.data.source.kind === 'workspace-instructions'
&& event.data.source.kind === 'agent-instructions'
&& event.data.source.baseline === true)
if (baseline === undefined) throw new Error('workspace baseline missing before snapshot compaction')
agent.session.append('user/message', createUserMessage({