Add @deepseek-ai/dsh-agent-controller, composed in the base bundle, as the entry through which a sender delivers a message from outside an Agent into its inbox. deliver() runs the sender's content preparation in the Agent's delivery order, asks the agent-controller/admission waterfall for a decision, rechecks cancellation and registration, and appends the message with followup() or steer(). dsh-agent and agent-loop are unchanged. The Web session/prompt Remote delivers through it: the image model check, upload receipt resolution, and attachment storage run as prepare, the receipt binding runs as beforeInsert, and refusals map to session/prompt-rejected. The Web client keeps its existing echo. This replaces the Host half of deepseek-harness/deepseek-harness#6178, whose admission stage lived in dsh-agent.
16 lines
319 B
TypeScript
16 lines
319 B
TypeScript
import { defineConfig } from 'tsdown'
|
|
|
|
/** Build the package root as a self-contained bundle. */
|
|
export default defineConfig([
|
|
{
|
|
entry: ['lib/types/index.js'],
|
|
outDir: 'lib',
|
|
format: ['esm'],
|
|
platform: 'node',
|
|
target: 'es2024',
|
|
fixedExtension: false,
|
|
dts: false,
|
|
clean: false,
|
|
},
|
|
])
|