Files
deepseek-harness/docs/user/guide/python-sdk.i18n.yaml
T
LegGasai ed30d274f1 refactor(working-directory): move the workspace only through Host operations
Remove the model-facing working_directory tool and the cwd parameter of the
subagent tools, so only Host operations move a Session's directory. Every
change the service records carries `workspace: true`, and the workspace root
is the directory of the last marked change, or the original project. The
anchor field, the anchor list, relocate, inherit, and anchorsOf are gone;
get, ensure, set, and rootOf remain.

A change without the marker, recorded while the model could move the
directory, moves only the current directory, so stored Sessions keep the
root they had.

- worktree: create enters the checkout through set; exit returns the Session
  to the source checkout of the recorded worktree that contains its directory,
  and exit_worktree exposes it to the model.
- subagent: a child starts in the parent's workspace root or a Host-chosen
  directory through set.
- SDK: the working-directory methods return { cwd } again and
  getWorkspaceRoot / get_workspace_root are removed.
- Recorded sessions: the worktree scenario leaves through exit_worktree and
  covers recovery from a removed worktree; the two scenarios that only drove
  the removed tool are deleted; three compaction scenarios lower their tuned
  context window by the removed tool-schema tokens.
2026-11-11 20:10:17 +08:00

32 lines
1.3 KiB
YAML

# Bilingual-pair consistency record for python-sdk.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 docs/user/guide/python-sdk.md
/get-started-with-the-python-sdk:
en: 97975036927be6e3
zh: fe37c7bf8844277a
/get-started-with-the-python-sdk/prerequisites:
en: b5a921f7d6c4a420
zh: ef51283857d18c64
/get-started-with-the-python-sdk/install-the-sdk:
en: c2b15716ea155625
zh: 0879be26f0afc452
/get-started-with-the-python-sdk/run-the-checked-in-example:
en: 23d04cd9dcb6a530
zh: e7a9471b9493b888
/get-started-with-the-python-sdk/use-the-sdk-in-your-program:
en: d1e350be0ba38196
zh: 893220ee7b12b12f
/get-started-with-the-python-sdk/install-or-define-plugins:
en: 592dd306b920cd83
zh: 8c22110621c12ba5
/get-started-with-the-python-sdk/install-or-define-plugins/opt-in-to-str-replace-editor:
en: 83bd8ce585536906
zh: 955f9fe02992b387
/get-started-with-the-python-sdk/install-or-define-plugins/enable-team-mode:
en: 820e942903b8660a
zh: 195b8f6cb00009b8
/get-started-with-the-python-sdk/understand-the-minimal-profile:
en: 5c17de933c20f69a
zh: fc2e295418078471