mirror of
https://github.com/deepseek-ai/deepseek-harness
synced 2026-08-15 21:04:50 +00:00
`session.create` takes an optional `agentPreset`, and the host resolves it, mounts it during pre-publication setup, and records the resolved id on the session header so a later resume rebuilds the same agent. Resolution happens BEFORE the session exists, not inside setup: the session boundary snapshots `meta` before asynchronous setup begins, so an id discovered during setup could never reach the header. Mounting still happens in setup, where a failure rolls the whole creation back rather than publishing a session whose capabilities are half-installed. Resume ignores whatever the request names and rebuilds from the stored id. A resumed session's history was produced under that composition; restoring a different one would replay tool calls the model can no longer make. `dsh-agent-presets` now throws `UnknownPresetError` / `PresetMountError` so the host can tell a bad request from a broken preset — they become `agent-preset-not-found` and `agent-preset-invalid`. Ships the two built-in compositions (`standard`, `core-web`) and the persona row that lets them differ in identity. Nothing mounts them yet: no roster is configured, so `composeAgent` finds no service and every session keeps the host composition. Wiring the roster and moving base's agent-plane rows behind it is the next commit, so the switch happens atomically with a real-composition test.
91 lines
1.6 KiB
JSON
91 lines
1.6 KiB
JSON
{
|
|
"extends": "../../../tsconfig.base.json",
|
|
"compilerOptions": {
|
|
"rootDir": "src",
|
|
"outDir": "lib/types"
|
|
},
|
|
"include": [
|
|
"src"
|
|
],
|
|
"references": [
|
|
{
|
|
"path": "../../goal/goal"
|
|
},
|
|
{
|
|
"path": "../../settings/settings"
|
|
},
|
|
{
|
|
"path": "../../credentials/credentials"
|
|
},
|
|
{
|
|
"path": "../../../vendor/cordis"
|
|
},
|
|
{
|
|
"path": "../../../vendor/schemastery"
|
|
},
|
|
{
|
|
"path": "../../util/brand"
|
|
},
|
|
{
|
|
"path": "../../llm/llm"
|
|
},
|
|
{
|
|
"path": "../../core/agent"
|
|
},
|
|
{
|
|
"path": "../../preset/agent-presets"
|
|
},
|
|
{
|
|
"path": "../../core/session"
|
|
},
|
|
{
|
|
"path": "../../core/tools"
|
|
},
|
|
{
|
|
"path": "../../session-persistence/session-persistence"
|
|
},
|
|
{
|
|
"path": "../../session-projection/session-projection"
|
|
},
|
|
{
|
|
"path": "../../session-projection/session-projection-cache"
|
|
},
|
|
{
|
|
"path": "../../session-query/session-query"
|
|
},
|
|
{
|
|
"path": "../../session-title/session-title"
|
|
},
|
|
{
|
|
"path": "../../session-query/session-query"
|
|
},
|
|
{
|
|
"path": "../../subagent/subagent"
|
|
},
|
|
{
|
|
"path": "../../skill/skill"
|
|
},
|
|
{
|
|
"path": "../../ui/commands"
|
|
},
|
|
{
|
|
"path": "../../ui/user-approval"
|
|
},
|
|
{
|
|
"path": "../../ui/user-interaction"
|
|
},
|
|
{
|
|
"path": "../../workspace/workspace"
|
|
},
|
|
{
|
|
"path": "../directory-picker"
|
|
},
|
|
{
|
|
"path": "../../support/invariants"
|
|
},
|
|
{
|
|
"path": "../../util/native-command"
|
|
}
|
|
]
|
|
}
|