Yichen Jiang
ce24d53eb5
Merge remote-tracking branch 'origin/master' into worktree/dynamic-tool-activation-pr-64796e
2026-10-21 23:32:43 +08:00
Yichen Jiang
207b30d299
Merge remote-tracking branch 'origin/master' into worktree/dynamic-tool-activation-pr-64796e
...
# Conflicts:
# docs/config-catalog.md
# docs/config-catalog.zh.md
# docs/event-producer-consumer.md
# docs/event-producer-consumer.zh.md
# docs/persistence-catalog.i18n.yaml
# docs/persistence-catalog.md
# docs/persistence-catalog.zh.md
# docs/persistence-schema.json
# packages/core/agent-loop/src/agent.ts
# packages/core/agent-loop/src/tool-calls.ts
# packages/core/agent-loop/tests/tool-updates.spec.ts
# packages/core/system-prompt/README.i18n.yaml
# packages/core/system-prompt/README.md
# packages/core/system-prompt/README.zh.md
# packages/core/tool-executor-ptc/src/ptc.ts
# packages/core/tool-executor-ptc/tests/ptc.spec.ts
# packages/core/tools/README.i18n.yaml
# packages/core/tools/README.md
# packages/core/tools/README.zh.md
# packages/core/tools/src/index.ts
# packages/extensions/tool-cordis/src/api-catalog.ts
# packages/plan/plan-mode/tests/plan-mode.spec.ts
# snapshots/session/cordis-inspect-jsdoc/session.v4.jsonl
2026-10-21 23:32:15 +08:00
_Kerman
04609dc0de
Merge xtr/session-store-write-lifecycle into xtr/agent-initialization-flow
2026-10-21 19:33:26 +08:00
_Kerman
fef2f3d06e
Merge master into xtr/session-store-write-lifecycle
2026-10-21 19:27:56 +08:00
_Kerman
46fdc70d66
Merge master into xtr/session-store-write-lifecycle
2026-10-21 19:27:56 +08:00
_Kerman
0e7b3701cb
Merge xtr/session-store-write-lifecycle into xtr/agent-initialization-flow
2026-10-21 18:22:35 +08:00
_Kerman
b43a01e285
Merge master into xtr/session-store-write-lifecycle
2026-10-21 18:16:23 +08:00
_Kerman
7a8f417b5e
Merge master into xtr/session-store-write-lifecycle
2026-10-21 18:16:23 +08:00
_Kerman
d98025a089
Merge origin/master into xtr/tool-executor-plugins
2026-10-21 18:01:55 +08:00
Yichen Jiang
2f09a68329
Merge remote-tracking branch 'origin/master' into worktree/dynamic-tool-activation-pr-64796e
2026-10-21 17:58:24 +08:00
07akioni
ed783066e6
fix(i18n): complete Japanese plugin metadata and guard locale coverage
2026-10-21 16:14:12 +08:00
_Kerman
a53ecb2f3a
Merge origin/master into xtr/tool-executor-plugins
2026-10-21 15:56:44 +08:00
Yichen Jiang
9d0c97b9d2
feat(tools): admit conditional tools per step
...
ctx.tools.register(definition, { when }) adds a synchronous or asynchronous
condition. AgentLoop resolves conditions once per proposed step with the
agent, the model selection that step preparation captured, and the turn
signal, before prompt assembly and agent/pre-step. The resulting
ResolvedToolSet governs tool declarations, Native dispatch, PTC bindings,
and nested calls for that step and its retries, and the turn disposes it
when the proposal is rejected or fails, when no step opens, and after the
step. A false condition removes the tool everywhere; a thrown condition
ends the turn with TOOL_ACTIVATION_FAILED. Calls whose registration was
replaced or removed during the step return UNKNOWN_TOOL.
system-prompt/assemble now transforms PromptPresentation without a tool
array, so tool declarations stay provider-owned. exit_plan_mode is declared
only for steps whose selected plan state is active, the same state that
renders plan guidance; it still rejects a call before the selection is
logged.
Model selection stays as master defines it; this change adds no model
selection event or Agent field.
2026-10-21 15:02:29 +08:00
_Kerman
d6dc8890b9
Merge github/master into xtr/session-store-write-lifecycle
2026-10-21 15:01:22 +08:00
_Kerman
8f0489dc06
Merge github/master into xtr/session-store-write-lifecycle
2026-10-21 15:01:22 +08:00
_Kerman
6bfe05c6f5
refactor(agent): name captured step selection modelSelection
2026-10-21 14:08:11 +08:00
_Kerman
e727a3b161
fix(tools): keep executor changes out of registry notifications
2026-10-21 12:13:57 +08:00
_Kerman
cdb3a76b6a
test(agent): complete model ownership migration coverage
2026-10-21 10:43:20 +08:00
_Kerman
7289bee231
test(agent-loop): assert rollback closes before rejection
2026-10-20 22:39:38 +08:00
_Kerman
06e97edd60
docs(agent): clarify initialization cleanup timing
2026-10-20 22:39:28 +08:00
_Kerman
bf4ab8be26
refactor(agent-loop): unify agent initialization
2026-10-20 22:21:52 +08:00
_Kerman
200dedd494
chore: trim unrelated model-selection changes
2026-10-20 22:13:30 +08:00
_Kerman
a9c006f9c3
refactor(agent): own model selection on each agent
2026-10-20 21:09:09 +08:00
_Kerman
8b79a1ddcc
Merge origin/master into xtr/session-model-selection
2026-10-20 17:22:59 +08:00
_Kerman
cc0e980e48
fix(session): align store-owned writes with lifecycle notifications
2026-10-20 11:33:44 +08:00
_Kerman
49a7a75d75
fix(session): align store-owned writes with lifecycle notifications
2026-10-20 11:33:44 +08:00
_Kerman
7d0301fe05
Merge master into scoped tool executors
2026-10-19 21:53:41 +08:00
_Kerman
e9784c073b
fix(tools): settle executor calls after unload and validate configuration
2026-10-19 16:32:29 +08:00
_Kerman
3b978adcec
test(tools): tidy migrated fixture imports and comments
2026-10-19 16:32:04 +08:00
_Kerman
ef9ed3fec1
test(agent-loop): preserve context after partial batch failure
2026-10-19 15:24:06 +08:00
_Kerman
31a49c6629
Merge remote-tracking branch 'origin/master' into xtr/tool-executor-plugins
...
# Conflicts:
# docs/capability-seams.i18n.yaml
# docs/tool-catalog.i18n.yaml
# packages/bundle/base/package.json
# packages/core/agent-loop/tests/serial-listener-review.spec.ts
# packages/core/agent-tool-presentation/package.json
# packages/experimental/auto-review/tests/auto-review.spec.ts
# packages/lsp/tool-lsp/package.json
# packages/subagent/tool-subagent/tests/list-models.spec.ts
# scripts/check-workspace-constraints.ts
# scripts/type-equiv.manifest.json
# tsconfig.base.json
2026-10-19 14:53:33 +08:00
_Kerman
ffe122ffd4
docs(tools): document executor plugins and migration
2026-10-19 14:50:00 +08:00
_Kerman
455686626d
refactor(tools): separate scoped executors from tool registration
2026-10-19 14:49:55 +08:00
_Kerman
c18f5bd3c0
Merge remote-tracking branch 'origin/master' into xtr/session-model-selection
...
# Conflicts:
# docs/capability-seams.i18n.yaml
# docs/capability-seams.md
# docs/capability-seams.zh.md
# docs/config-catalog.md
# docs/config-catalog.zh.md
# docs/event-producer-consumer.md
# docs/event-producer-consumer.zh.md
# docs/module-graph.md
# docs/module-graph.zh.md
# docs/persistence-catalog.i18n.yaml
# docs/persistence-catalog.md
# docs/persistence-catalog.zh.md
# docs/persistence-schema.json
# packages/api/session-controller/src/types.ts
# packages/bundle/base/package.json
# packages/bundle/headless/README.i18n.yaml
# packages/bundle/headless/README.md
# packages/bundle/headless/README.zh.md
# packages/bundle/headless/package.json
# packages/bundle/headless/tsconfig.json
# packages/subagent/tool-subagent/tests/model-selection-settings.spec.ts
# scripts/type-equiv.manifest.json
2026-10-19 11:30:55 +08:00
_Kerman
955e600031
Merge master into session projection registration handles
2026-10-19 11:21:16 +08:00
Dudu-0223
66d9f70255
Merge master and resolve subagent control package metadata
2026-10-17 15:55:44 +08:00
imccyu
d1b9c04067
release(dsh): 0.2.1-rc.2
2026-10-17 15:10:31 +08:00
Dudu-0223
590cfe168c
Merge master and refresh tool catalog translation pairing
2026-10-17 12:03:03 +08:00
imccyu
c6e89e6755
release(dsh): 0.2.1-rc.1
2026-10-16 21:39:18 +08:00
_Kerman
1ec77846bb
test(agent-loop): cover configured resume effort and missing route
...
A config-driven resume applies an explicit configured effort, and an
agent entry without a complete route keeps the recorded selection.
2026-10-16 17:07:37 +08:00
imccyu
0a49d91bb2
release: setup next release version for [email protected]
2026-10-16 16:17:09 +08:00
_Kerman
b670701e5a
Merge remote-tracking branch 'origin/master' into xtr/session-model-selection
2026-10-16 15:42:50 +08:00
_Kerman
7b112942ab
refactor(agent-model): move Session model selection into its own package
...
Add @deepseek-ai/dsh-agent-model. It provides ctx.agentModel
(resolveForNextStep, select, applyConfiguredRoute) and owns the
modelSelection projection, which the Agent registry no longer registers.
dsh-agent-loop now injects agentModel; the base and SDK-minimal bundles
and the Python SDK runtime include it.
The provider keeps the projection registered until consumers that are
still unloading finish their cleanup. The model-switch notice becomes an
opt-in per-Agent plugin at @deepseek-ai/dsh-agent-model/notice, and
agent/request now also rejects reasoning-effort changes after step
preparation.
Mount the provider in every composition that loads dsh-agent-loop, and
update consumers, the switch-notice snapshot driver, docs, and the
upgrade guide.
2026-10-16 15:28:59 +08:00
_Kerman
150a0d0842
docs(agent): clarify model-selection behavior
2026-10-16 10:16:18 +08:00
_Kerman
b015d18e81
fix(agent-loop): identify rejected request route changes
2026-10-16 10:16:18 +08:00
_Kerman
491fa4a394
refactor(session-projection): clarify retained handle names
2026-10-15 20:12:09 +08:00
imccyu
f2235d6c02
release(dsh): 0.2.1-alpha.4
2026-10-15 20:00:58 +08:00
_Kerman
7aaa6b3c5a
refactor(agent): deprecate the agent/request hook
2026-10-15 20:00:19 +08:00
_Kerman
e39b5f58c2
refactor(agent): persist model selection in session state
2026-10-15 19:05:09 +08:00
_Kerman
90014a7508
Merge remote-tracking branch 'origin/master' into xtr/session-projection-registration-handles
...
# Conflicts:
# docs/tool-catalog.i18n.yaml
2026-10-15 18:26:22 +08:00