* feat(sdk): report why a session agent was disposed A request for a session whose agent left the registry now states whether the whole runtime is shutting down, the SDK server is shutting down, or only the agent loop was unloaded. During runtime shutdown it names the last process event observed before teardown; for an agent-loop unload it gives the time and the plugin whose unload began first. The liveness check reads the registry as optional, so both stages of root disposal report the same failure. Refs #8737 * fix(sdk): keep the runtime observation out of the plugin entry exports The static gates reject a new read of the Cordis root context, a value export from a function plugin entry, and new assertions to unknown. The plugin entry now passes the server an observation built from the root fiber it already holds, the helper lives in the internal process-events module, and the new tests complete the handshake instead of casting the server. Refs #8737 * fix(sdk): keep the process-event record from throwing and state the unload origin as an observation A rejection value without a string form made the failure text throw inside a prepended listener, which would end the dispatch before the listener that owns the event. The text now falls back to a fixed marker. The plugin named for an agent-loop unload is the first one unloading at that time, which overlapping unloads can make unrelated, so the message and README say that. Refs #8737 * feat(python-sdk): log the runtime's stderr lines as they arrive The runtime writes its fatal report, including the stack of an unhandled rejection that ends the process, to its own stderr. The SDK kept those lines in memory and attached them only to initialization, timeout, and transport failures, so a host saw none of it for an ordinary JSON-RPC error. Each line now also goes to the Python logger deepseek_harness.runtime at INFO. Refs #8737
29 lines
1.1 KiB
YAML
29 lines
1.1 KiB
YAML
# Bilingual-pair consistency record for README.md (docs/i18n/README.md): per heading
|
|
# section, a hash of its English and Chinese blocks outside code blocks and generated regions.
|
|
# After editing either side, bring the other along and re-record with:
|
|
# pnpm run verify-translation-pairing --write python/sdk/README.md
|
|
/deepseek-harness-python-sdk:
|
|
en: 43f7de064985e731
|
|
zh: 9ad59629660b1f13
|
|
/deepseek-harness-python-sdk/optional-office-operations:
|
|
en: ddf4dabea526cef1
|
|
zh: 6e31cab10d2f3ed8
|
|
/deepseek-harness-python-sdk/start-a-runtime:
|
|
en: 130fcf823217a00b
|
|
zh: 59013ce608934404
|
|
/deepseek-harness-python-sdk/run-text-and-commands:
|
|
en: 6dec2d510bce71bd
|
|
zh: 742ca999aaacd137
|
|
/deepseek-harness-python-sdk/client-approvals:
|
|
en: 1d18c09832dd4a42
|
|
zh: 6e7260b650a1f987
|
|
/deepseek-harness-python-sdk/customize-plugins:
|
|
en: 5d91d1905add265f
|
|
zh: ecec2471aba1d2ad
|
|
/deepseek-harness-python-sdk/native-user-questions:
|
|
en: 979ad00fe498b2be
|
|
zh: 4b656bd268292a13
|
|
/deepseek-harness-python-sdk/results-and-notifications:
|
|
en: 26dcdc193e82adb5
|
|
zh: 5d4075ff9859b0ce
|