@dsmm/dsmm 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/cordis.patch.yml +9 -0
  2. package/docs/compatibility.md +10 -0
  3. package/docs/releasing.md +25 -65
  4. package/docs/roadmap.md +44 -2
  5. package/lib/client/ChildPermissions.d.ts +43 -0
  6. package/lib/client/ChildPermissions.js +100 -0
  7. package/lib/client/ChildrenPanel.d.ts +4 -1
  8. package/lib/client/ChildrenPanel.js +3 -3
  9. package/lib/client/DeploymentFields.d.ts +6 -2
  10. package/lib/client/DeploymentFields.js +8 -6
  11. package/lib/client/DeploymentPage.d.ts +4 -1
  12. package/lib/client/DeploymentPage.js +5 -4
  13. package/lib/client/HistoryContinuation.d.ts +7 -0
  14. package/lib/client/HistoryContinuation.js +22 -0
  15. package/lib/client/PermissionPanelEntry.d.ts +8 -0
  16. package/lib/client/PermissionPanelEntry.js +11 -0
  17. package/lib/client/PermissionsPanel.d.ts +3 -1
  18. package/lib/client/PermissionsPanel.js +3 -2
  19. package/lib/client/ProfilesSection.js +3 -3
  20. package/lib/client/RoleAvailability.js +1 -1
  21. package/lib/client/SessionProfiles.js +21 -18
  22. package/lib/client/TemporaryPermissions.d.ts +21 -0
  23. package/lib/client/TemporaryPermissions.js +94 -0
  24. package/lib/client/children-locales.d.ts +4 -4
  25. package/lib/client/controller.d.ts +17 -0
  26. package/lib/client/controller.js +101 -18
  27. package/lib/client/deployment-locales.js +26 -26
  28. package/lib/client/history-controller.d.ts +29 -0
  29. package/lib/client/history-controller.js +111 -0
  30. package/lib/client/history-entry.d.ts +11 -0
  31. package/lib/client/history-entry.js +106 -0
  32. package/lib/client/history-locales.d.ts +95 -0
  33. package/lib/client/history-locales.js +41 -0
  34. package/lib/client/index.js +16 -3
  35. package/lib/client/locales.d.ts +6 -0
  36. package/lib/client/locales.js +104 -92
  37. package/lib/client/permission-locales.d.ts +26 -0
  38. package/lib/client/permission-locales.js +55 -35
  39. package/lib/client/temporary-permission-client.d.ts +20 -0
  40. package/lib/client/temporary-permission-client.js +52 -0
  41. package/lib/client/temporary-permission-entry.d.ts +6 -0
  42. package/lib/client/temporary-permission-entry.js +56 -0
  43. package/lib/client.js +3881 -1981
  44. package/lib/history-candidates.d.ts +30 -0
  45. package/lib/history-candidates.js +176 -0
  46. package/lib/history-codec.d.ts +11 -0
  47. package/lib/history-codec.js +102 -0
  48. package/lib/history-contract.d.ts +44 -0
  49. package/lib/history-contract.js +2 -0
  50. package/lib/history-controller.d.ts +42 -0
  51. package/lib/history-controller.js +329 -0
  52. package/lib/history-policy.d.ts +4 -0
  53. package/lib/history-policy.js +8 -0
  54. package/lib/history-remote.d.ts +28 -0
  55. package/lib/history-remote.js +17 -0
  56. package/lib/history-rpc.d.ts +24 -0
  57. package/lib/history-rpc.js +136 -0
  58. package/lib/history-support.d.ts +15 -0
  59. package/lib/history-support.js +21 -0
  60. package/lib/history-types.d.ts +67 -0
  61. package/lib/history-types.js +2 -0
  62. package/lib/index.d.ts +2 -0
  63. package/lib/index.js +24 -6
  64. package/lib/native-admission.d.ts +21 -0
  65. package/lib/native-admission.js +206 -16
  66. package/lib/permission-child-control.d.ts +36 -0
  67. package/lib/permission-child-control.js +164 -0
  68. package/lib/permission-control.d.ts +2 -0
  69. package/lib/permission-control.js +7 -0
  70. package/lib/permission-controller.js +2 -2
  71. package/lib/permission-exec-argv.d.ts +32 -0
  72. package/lib/permission-exec-argv.js +171 -0
  73. package/lib/permission-fs-search.js +2 -1
  74. package/lib/permission-fs.js +2 -1
  75. package/lib/permission-native-rules.js +3 -3
  76. package/lib/permission-temporary-files.d.ts +19 -0
  77. package/lib/permission-temporary-files.js +248 -0
  78. package/lib/permission-temporary-grants.d.ts +106 -0
  79. package/lib/permission-temporary-grants.js +198 -0
  80. package/lib/permission-temporary-install.d.ts +25 -0
  81. package/lib/permission-temporary-install.js +86 -0
  82. package/lib/permission-temporary-remote.d.ts +19 -0
  83. package/lib/permission-temporary-remote.js +75 -0
  84. package/lib/permission-temporary-rpc.d.ts +37 -0
  85. package/lib/permission-temporary-rpc.js +154 -0
  86. package/lib/permission-temporary-types.d.ts +47 -0
  87. package/lib/permission-temporary-types.js +2 -0
  88. package/lib/permission-temporary-web.d.ts +11 -0
  89. package/lib/permission-temporary-web.js +154 -0
  90. package/lib/permission-web.js +2 -1
  91. package/lib/preset-skills.d.ts +1 -1
  92. package/lib/preset-skills.js +2 -2
  93. package/lib/profile-rpc.js +2 -0
  94. package/lib/profile-runtime.d.ts +12 -1
  95. package/lib/profile-runtime.js +122 -10
  96. package/lib/profile-store.d.ts +2 -2
  97. package/lib/profile-store.js +8 -1
  98. package/lib/profile-types.d.ts +1 -0
  99. package/lib/role-invocation.d.ts +1 -1
  100. package/lib/role-invocation.js +2 -2
  101. package/lib/role-subagents.js +16 -3
  102. package/lib/skills.d.ts +1 -0
  103. package/lib/skills.js +5 -1
  104. package/package.json +41 -33
  105. package/patches/dsh-approval-settlement/@deepseek-ai__dsh-api-gateway@0.2.1-rc.2.patch +13291 -0
  106. package/patches/dsh-approval-settlement/@deepseek-ai__dsh-api-remotes@0.2.1-rc.2.patch +9133 -0
  107. package/patches/dsh-approval-settlement/@deepseek-ai__dsh-client-ui-approval@0.2.1-rc.2.patch +156 -0
  108. package/patches/dsh-approval-settlement/@deepseek-ai__dsh-subagent@0.2.1-rc.2.patch +3546 -0
  109. package/patches/dsh-approval-settlement/@deepseek-ai__dsh-user-approval@0.2.1-rc.2.patch +431 -0
  110. package/patches/dsh-approval-settlement/@deepseek-ai__dsh-web@0.2.1-rc.2.patch +119 -0
  111. package/patches/dsh-approval-settlement/README.md +41 -0
  112. package/patches/dsh-approval-settlement/metadata.json +10 -0
  113. package/patches/dsh-session-activation/@deepseek-ai__dsh-agent-loop@0.2.1-rc.2.patch +383 -0
  114. package/patches/dsh-session-activation/@deepseek-ai__dsh-agent-preset-registry@0.2.1-rc.2.patch +55 -0
  115. package/patches/dsh-session-activation/@deepseek-ai__dsh-api-session-controller@0.2.1-rc.2.patch +16673 -0
  116. package/patches/dsh-session-activation/@deepseek-ai__dsh-client-ui-subagent@0.2.1-rc.2.patch +29 -0
  117. package/patches/dsh-session-activation/@deepseek-ai__dsh-client-ui-workspace@0.2.1-rc.2.patch +196 -0
  118. package/patches/dsh-session-activation/@deepseek-ai__dsh-session-persistence-jsonl@0.2.1-rc.2.patch +35 -0
  119. package/patches/dsh-session-activation/@deepseek-ai__dsh-session-persistence@0.2.1-rc.2.patch +40 -0
@@ -0,0 +1,95 @@
1
+ export declare const historyLocales: {
2
+ en: {
3
+ title: string;
4
+ preset: string;
5
+ profile: string;
6
+ baseline: string;
7
+ choose: string;
8
+ preview: string;
9
+ confirm: string;
10
+ refresh: string;
11
+ loading: string;
12
+ preparing: string;
13
+ confirming: string;
14
+ active: string;
15
+ browsing: string;
16
+ unknown: string;
17
+ pending: string;
18
+ pendingWarning: string;
19
+ consent: string;
20
+ migration: string;
21
+ effects: string;
22
+ model: string;
23
+ roles: string;
24
+ permissions: string;
25
+ differences: string;
26
+ project: string;
27
+ noPending: string;
28
+ nextTurn: string;
29
+ nextStep: string;
30
+ candidate: string;
31
+ disconnected: string;
32
+ reasons: {
33
+ validation: string;
34
+ "not-owned": string;
35
+ "not-found": string;
36
+ "unsupported-host": string;
37
+ "unsupported-backend": string;
38
+ unavailable: string;
39
+ busy: string;
40
+ stale: string;
41
+ cancelled: string;
42
+ "authorization-required": string;
43
+ "child-owner-required": string;
44
+ "format-unavailable": string;
45
+ "initialization-failed": string;
46
+ };
47
+ };
48
+ zh: {
49
+ title: string;
50
+ preset: string;
51
+ profile: string;
52
+ baseline: string;
53
+ choose: string;
54
+ preview: string;
55
+ confirm: string;
56
+ refresh: string;
57
+ loading: string;
58
+ preparing: string;
59
+ confirming: string;
60
+ active: string;
61
+ browsing: string;
62
+ unknown: string;
63
+ pending: string;
64
+ pendingWarning: string;
65
+ consent: string;
66
+ migration: string;
67
+ effects: string;
68
+ model: string;
69
+ roles: string;
70
+ permissions: string;
71
+ differences: string;
72
+ project: string;
73
+ noPending: string;
74
+ nextTurn: string;
75
+ nextStep: string;
76
+ candidate: string;
77
+ disconnected: string;
78
+ reasons: {
79
+ validation: string;
80
+ "not-owned": string;
81
+ "not-found": string;
82
+ "unsupported-host": string;
83
+ "unsupported-backend": string;
84
+ unavailable: string;
85
+ busy: string;
86
+ stale: string;
87
+ cancelled: string;
88
+ "authorization-required": string;
89
+ "child-owner-required": string;
90
+ "format-unavailable": string;
91
+ "initialization-failed": string;
92
+ };
93
+ };
94
+ };
95
+ //# sourceMappingURL=history-locales.d.ts.map
@@ -0,0 +1,41 @@
1
+ const en = {
2
+ title: "Continue this session", preset: "Current agent preset", profile: "Session configuration", baseline: "Use deployment defaults",
3
+ choose: "Choose a current preset", preview: "Review continuation", confirm: "Continue this session", refresh: "Refresh status",
4
+ loading: "Loading current configuration…", preparing: "Preparing confirmation…", confirming: "Activating session…",
5
+ active: "This session is active. Continue using the native conversation.", browsing: "History remains available without continuing execution.",
6
+ unknown: "The result is not confirmed. Refresh status before taking another action.",
7
+ pending: "Pending input", pendingWarning: "These stored inputs are untrusted. Continuing processes this exact pending set under current permissions; it does not restore old approvals.",
8
+ consent: "Process the pending inputs shown above", migration: "Publish the required native format migration and recovery entries",
9
+ effects: "Native recovery entries or a migration may already have been committed. History and pending input are not rolled back.",
10
+ model: "Current model", roles: "Current roles", permissions: "Current restrictions", differences: "Changes to execution", project: "Project",
11
+ noPending: "No pending inputs.", nextTurn: "Next turn", nextStep: "Next step", candidate: "Configuration to be used", disconnected: "Connect to the local Host to review continuation.",
12
+ reasons: {
13
+ validation: "The request is invalid. Refresh and review the selection.", "not-owned": "Use the current local Host operator connection.", "not-found": "The stored session is unavailable.",
14
+ "unsupported-host": "A compatible Host with read-only history following is required. The original Desktop has not been patched by this plugin.",
15
+ "unsupported-backend": "This storage backend cannot validate continuation before writing.", unavailable: "Current execution services are unavailable. History can still be inspected.",
16
+ busy: "An activation or other owner is already using this session. Refresh its status.", stale: "The session or current configuration changed. Review a new confirmation.",
17
+ cancelled: "Continuation was cancelled. Refresh before trying again.", "authorization-required": "Review the current configuration and explicitly confirm continuation.",
18
+ "child-owner-required": "This child can be browsed here. Continuing requires its exact live parent owner.", "format-unavailable": "The native reader could not load this format. Keep the existing history view and inspect its diagnostic.",
19
+ "initialization-failed": "Execution initialization failed. Refresh status; do not replay the request.",
20
+ },
21
+ };
22
+ export const historyLocales = { en, zh: {
23
+ title: "继续此会话", preset: "当前 Agent 预设", profile: "本次会话配置", baseline: "使用部署默认配置",
24
+ choose: "选择当前可用的预设", preview: "查看继续方案", confirm: "继续此会话", refresh: "刷新状态",
25
+ loading: "正在读取当前配置…", preparing: "正在准备确认信息…", confirming: "正在激活会话…",
26
+ active: "此会话已激活,可继续使用原生对话界面。", browsing: "不继续执行也可以浏览历史。",
27
+ unknown: "结果待确认。请先刷新状态,不要重复执行。",
28
+ pending: "待处理输入", pendingWarning: "以下历史输入是不可信内容。继续后将按当前权限处理这一组输入,不恢复旧审批。",
29
+ consent: "处理上方列出的待处理输入", migration: "允许发布所需的原生格式迁移和恢复记录",
30
+ effects: "原生恢复记录或迁移可能已经提交,不承诺回滚历史或待处理输入。",
31
+ model: "当前模型", roles: "当前角色", permissions: "当前限制", differences: "执行变化", project: "项目",
32
+ noPending: "没有待处理输入。", nextTurn: "下一轮", nextStep: "下一步", candidate: "将采用的配置", disconnected: "连接本地 Host 后可查看继续方案。",
33
+ reasons: {
34
+ validation: "请求无效,请刷新后重新查看选择。", "not-owned": "请使用当前本地 Host 的操作者连接。", "not-found": "找不到该持久化会话。",
35
+ "unsupported-host": "需要支持只读历史跟随的兼容 Host。仅安装插件不会修补原版 Desktop。", "unsupported-backend": "当前存储后端不能在写入前校验继续权限。",
36
+ unavailable: "当前执行服务不可用,仍可查看历史。", busy: "该会话正被其他执行者或激活操作使用,请刷新状态。", stale: "会话或当前配置已变化,请重新查看确认信息。",
37
+ cancelled: "继续操作已取消,请刷新后再试。", "authorization-required": "请查看当前配置并明确确认继续。", "child-owner-required": "此处可浏览子会话,继续执行需要其真实存活的父级所有者。",
38
+ "format-unavailable": "原生读取器无法加载此格式。请保留现有历史视图并查看诊断。", "initialization-failed": "执行初始化失败,请刷新状态,不要重放请求。",
39
+ },
40
+ } };
41
+ //# sourceMappingURL=history-locales.js.map
@@ -14,6 +14,9 @@ import { permissionClient } from "./permission-client.js";
14
14
  import { PermissionController } from "./permission-controller.js";
15
15
  import { PERMISSIONS_NS, permissionEn, permissionZh } from "./permission-locales.js";
16
16
  import { registerRoleToolViews } from "./RoleToolView.js";
17
+ import { HISTORY_REMOTE } from "../history-remote.js";
18
+ import { registerHistoryContinuation } from "./history-entry.js";
19
+ import { registerTemporaryPermissionEntry } from "./temporary-permission-entry.js";
17
20
  export { ProfilesController, NEW_PROFILE_CONTENT } from "./controller.js";
18
21
  export { ProfilesSection } from "./ProfilesSection.js";
19
22
  export { NS, en, zh } from "./locales.js";
@@ -27,12 +30,14 @@ export { ROLE_CONTROL_REMOTE } from "../role-control-remote.js";
27
30
  export const inject = ["slots", "locale", "remote"];
28
31
  export async function apply(ctx) {
29
32
  registerRoleToolViews(ctx);
30
- await ctx.remote.$mount(TYPERT_REMOTE);
33
+ await ctx.remote.$mount({ ...TYPERT_REMOTE, descriptors: [...TYPERT_REMOTE.descriptors, ...HISTORY_REMOTE.descriptors] });
31
34
  await ctx.remote.$mount(ROLE_CONTROL_REMOTE);
32
35
  await ctx.remote.$mount(PERMISSION_REMOTE);
36
+ registerHistoryContinuation(ctx);
33
37
  const permissions = new PermissionController();
34
38
  ctx.effect(() => () => permissions.dispose(), "dsmm: permission controls");
35
39
  ctx.effect(() => ctx.locale.register(PERMISSIONS_NS, { en: permissionEn, zh: permissionZh }), "dsmm: permission locale");
40
+ const temporaryPermissions = registerTemporaryPermissionEntry(ctx, permissions);
36
41
  void ctx.inject(["connection"], connectionCtx => {
37
42
  const handle = connectionCtx.connection, invoke = permissionClient(handle);
38
43
  const update = () => { const generation = handle.generation.getSnapshot(); permissions.bindConnection(generation === undefined ? null : invoke, generation); };
@@ -83,7 +88,7 @@ export async function apply(ctx) {
83
88
  document.head.append(style);
84
89
  return () => style.remove();
85
90
  }, "dsmm: core styles");
86
- const inject = () => ({ core, remote: coreCtx.remote.dsmmConfig, workspace });
91
+ const inject = () => ({ core, remote: coreCtx.remote.dsmmConfig, workspace, temporaryPermissions, permissionsT: coreCtx.locale.bind(PERMISSIONS_NS) });
87
92
  coreCtx.slots.inject("plugins.bundle.config", () => coreCtx.slots.register({ name: "plugins.bundle.config", key: "@dsmm/dsmm", locale: DEPLOYMENT_NS, inject }, DeploymentPage));
88
93
  // The canonical bundle owner passes only view. Namespace comes from the authenticated snapshot.
89
94
  void coreCtx.inject(["configForms"], formCtx => {
@@ -94,6 +99,11 @@ export async function apply(ctx) {
94
99
  });
95
100
  await ctx.inject(["remote.dsmmProfiles"], (profileCtx) => {
96
101
  const controller = new ProfilesController(profileCtx.remote.dsmmProfiles);
102
+ void profileCtx.inject(["connection"], connectionCtx => {
103
+ controller.bindConnection(connectionCtx.connection.generation);
104
+ void controller.refresh();
105
+ connectionCtx.effect(() => () => controller.bindConnection(null), "dsmm: profile connection withdrawal");
106
+ });
97
107
  profiles = controller;
98
108
  profileCtx.effect(() => controller.store.subscribe(() => { deployment?.setSession(controller.store.getSnapshot().session); }));
99
109
  profileCtx.effect(() => () => { profiles = null; deployment?.setSession(null); });
@@ -107,6 +117,10 @@ export async function apply(ctx) {
107
117
  return () => style.remove();
108
118
  }, "dsmm: profile styles");
109
119
  const t = profileCtx.locale.bind(NS);
120
+ void profileCtx.inject(["conversation"], conversationCtx => {
121
+ controller.attachComposerBlocks(conversationCtx.conversation.blocks, () => t("sessionSelectionBlock"));
122
+ conversationCtx.effect(() => () => controller.attachComposerBlocks(null), "dsmm: profile composer block lifetime");
123
+ });
110
124
  profileCtx.slots.inject("settings.section", () => profileCtx.slots.register({
111
125
  name: "settings.section", id: "dsmm-profiles", order: 30,
112
126
  label: () => t("title"), locale: NS,
@@ -158,7 +172,6 @@ export async function apply(ctx) {
158
172
  modelCtx.effect(() => () => controller.attachModelInteractionSource(null, null), "dsmm: native model interaction withdrawal");
159
173
  });
160
174
  });
161
- void controller.refresh();
162
175
  });
163
176
  }
164
177
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,10 @@
1
1
  export declare const NS = "settings.dsmm-profiles";
2
2
  export declare const en: {
3
+ sessionChooseWorkspace: string;
4
+ sessionSelectionBlock: string;
5
+ sessionCommittedRefresh: string;
6
+ sessionUnconfirmedRefresh: string;
7
+ technicalDetails: string;
3
8
  diagnosticJsonc: string;
4
9
  diagnosticDuplicate: string;
5
10
  diagnosticUnsafe: string;
@@ -146,6 +151,7 @@ export declare const en: {
146
151
  headerModelUnconfirmed: string;
147
152
  headerAppliedWithModel: string;
148
153
  headerModelChoiceChanged: string;
154
+ headerActionUnavailable: string;
149
155
  headerActivationRefused: string;
150
156
  headerSelectionRefused: string;
151
157
  headerIssueCode: string;
@@ -1,133 +1,145 @@
1
1
  export const NS = "settings.dsmm-profiles";
2
2
  export const en = {
3
+ sessionChooseWorkspace: "Choose a workspace to start a blank session, then choose its configuration before sending.",
4
+ sessionSelectionBlock: "DSMM session configuration is being confirmed. Wait for selection to finish, or refresh its state.",
5
+ sessionCommittedRefresh: "Session configuration saved. Refresh to confirm it; do not apply again.",
6
+ sessionUnconfirmedRefresh: "Session configuration result unconfirmed. Refresh its state before selecting or sending; do not retry the change.",
7
+ technicalDetails: "Technical details",
3
8
  diagnosticJsonc: "Correct the JSONC syntax at the indicated location.", diagnosticDuplicate: "Remove the duplicate field at this location.", diagnosticUnsafe: "Unsafe object keys are not supported; remove this field.", diagnosticUnknown: "Remove this unsupported field. Private and installation configuration belongs in native deployment settings.", diagnosticDeprecated: "This retired field is rejected. Configure explicit role levels instead; no migration is performed.", diagnosticType: "Use the declared field type and bounded value.", diagnosticValue: "Choose an explicitly supported value. Output-language choices are shown in the structured language field.", diagnosticRoute: "Use a complete provider/model route or a nonempty exact-effort override.", diagnosticRequired: "This role is required by the selected Deepwork policy and cannot be disabled.", diagnosticCeiling: "A named profile cannot enable capabilities outside its captured startup/deployment ceiling.",
4
- browseZone: "Browse saved profiles", editZone: "Edit draft", savedRevision: "Saved revision: {revision}", savedInventory: "Saved profiles and diagnostics", futurePin: "Future selection revision: {revision}", noEditor: "Open a saved profile or create a draft to edit. Browsing does not activate a profile.",
9
+ browseZone: "Saved profiles", editZone: "Edit profile", savedRevision: "Saved version: {revision}", savedInventory: "Profile warnings and errors", futurePin: "Default selection version: {revision}", noEditor: "Choose a profile or create one to edit.",
5
10
  warningMarker: "Warning · nonblocking · {code} · {field}", blockingMarker: "Blocked · {code} · {field}", blankLabelWarning: "The label is blank. The profile ID is used for display; the original document can still be saved and selected.", diagnosticLocation: "JSONC line {line}, column {column}.",
6
- savedWarnings: "Saved revision warnings", draftWarnings: "Draft warnings", futureWarnings: "Future-default pin warnings", admissionWarnings: "Current-admission warnings", warningProfile: "warning (nonblocking)",
7
- omitLabel: "Inherit display name from ID (omit label)", businessLocale: "Default output language", inheritLocale: "Inherit deployment / native language", unsupportedLocale: "Unsupported draft language — choose an allowed value", localeHint: "Omitted locale inherits the deployment preference, then native/user language. An explicit user request wins. This never changes the interface language.",
8
- toolTopology: "Subagent tool topology", topologyHint: "per-role exposes role tools plus the category entry; parameterized exposes role/category entries. Omitted inherits deployment (default per-role). Background, depth and route-override permissions remain deployment-only.",
9
- levelName: "Invocation level: {level}", levelMode: "{level} override", levelUnconfigured: "Not configured / inherit deployment level", levelEffortOnly: "Exact effort only", levelFullRoute: "Complete provider/model route", normalLevel: "normal · default route (read-only alias; omission means normal)", orchestratorLevels: "The ordinary orchestrator root has no invocation levels. Its native model is unchanged.", levelsHint: "Levels are call resources, not workflow tiers. An unconfigured requested level is rejected; an effort-only override uses the resolved model. An explicit complete route replaces model and effort together.",
10
- namedRole: "{name} named-profile availability", namedRoleHint: "Omitted inherits the captured deployment ceiling. Required roles cannot be disabled; enable requests cannot lift startup or deployment restrictions. Routing remains editable even for disabled roles.", availabilityUnknown: "Role availability metadata is unavailable. Required status and startup/deployment ceilings cannot be inferred; refresh before requesting an availability change.", roleRequired: "Required role · {reason}", roleOptional: "Optional role", roleCeiling: "Startup: {startup}; deployment: {deployment}; captured admission: {admitted}.", roleProvenance: "Source: {source}; capture: {capture}.", roleUnavailableReason: "Availability reason: {reason}.",
11
- admittedRoles: "Captured role availability", bindingUnknown: "Subagent runtime binding is unconfirmed; no delivery-readiness guarantee can be inferred from configuration.", bindingState: "Captured subagent binding: {binding}; delivery fence: {ready}; restart required: {restart}. Fence readiness does not establish persistence or child-delegation support.", bindingReason: "Binding reason: {reason}.", sessionModelHint: "Apply/Baseline keep the native root model and existing children. Only Use profile model explicitly asks native model selection to change.", savedOnlyHint: "Select the editor's saved immutable revision, not its dirty draft. Save does not select or apply it.",
12
- centralOrigin: "Named resources: shared central store.", legacyOrigin: "Named resources: legacy native-profile store (read-only).", explicitOrigin: "Named resources: explicitly configured store.", readOnlyOrigin: "This legacy store is read-only. Files are not copied or migrated; selection and current-session actions retain their own authority.",
11
+ savedWarnings: "Saved profile warnings", draftWarnings: "Draft warnings", futureWarnings: "New-session default warnings", admissionWarnings: "Current-session warnings", warningProfile: "warning (nonblocking)",
12
+ omitLabel: "Use ID as display name", businessLocale: "Default output language", inheritLocale: "Use deployment or native language", unsupportedLocale: "Unsupported language — choose an allowed value", localeHint: "User requests take priority. Interface language stays unchanged.",
13
+ toolTopology: "Subagent tools", topologyHint: "per-role: one tool per role plus a category tool. parameterized: choose the role or category in the tool arguments.",
14
+ levelName: "Invocation level: {level}", levelMode: "{level} override", levelUnconfigured: "Use deployment level", levelEffortOnly: "Reasoning effort only", levelFullRoute: "Provider, model and effort", normalLevel: "normal · default route", orchestratorLevels: "Invocation levels are unavailable for the main orchestrator.", levelsHint: "Unconfigured levels cannot be used. Effort-only keeps the configured model; a full route replaces both model and effort.",
15
+ namedRole: "Enable {name}", namedRoleHint: "Required roles must stay enabled. Roles blocked by deployment settings cannot be enabled here.", availabilityUnknown: "Role availability is unknown. Refresh before changing it.", roleRequired: "Required role · {reason}", roleOptional: "Optional role", roleCeiling: "Startup: {startup}; deployment: {deployment}; captured admission: {admitted}.", roleProvenance: "Source: {source}; capture: {capture}.", roleUnavailableReason: "Availability reason: {reason}.",
16
+ admittedRoles: "Role availability", bindingUnknown: "Subagent readiness is unknown. Refresh to check.", bindingState: "Subagent execution ready: {ready}; restart required: {restart}.", bindingReason: "Reason: {reason}.", sessionModelHint: "Selecting a profile keeps your current model. Use profile model changes it explicitly.", savedOnlyHint: "Save changes before selecting this profile.",
17
+ centralOrigin: "Shared profile storage.", legacyOrigin: "Legacy profile storage (read-only).", explicitOrigin: "Custom profile storage.", readOnlyOrigin: "These legacy profiles are read-only.",
13
18
  headerCompactProfiles: "Profiles · keep model", headerCompactRefresh: "Refresh", headerNoSession: "Select a session to make changes.",
14
- sessionNewRequired: "Applying a profile or baseline requires a new session. Save and future-default selection remain available.",
15
- sessionModuleOff: "Deepwork is unavailable within this session's captured module settings.",
19
+ sessionNewRequired: "Start a new session to change its profile. You can still save profiles and set the new-session default.",
20
+ sessionModuleOff: "Deepwork is unavailable in this session.",
16
21
  headerModeEnable: "Enable Deepwork", headerModeDisable: "Disable Deepwork", headerModePreset: "Deepwork · DW preset", headerModeUnavailable: "Deepwork unavailable", headerModeOn: "Deepwork enabled.", headerModeOff: "Deepwork disabled.", headerUseCurrentModel: "Use profile model",
17
- title: "Deepwork Profiles", description: "Save independent runtime configurations and choose which one new sessions use.",
18
- newSessions: "This saved pin is the default for future sessions only. Current admissions and existing children remain unchanged; explicit session selections retain their own authority.",
22
+ title: "Deepwork Profiles", description: "Save configurations and choose a default for new sessions.",
23
+ newSessions: "Choose a saved profile for new sessions. Existing sessions stay unchanged.",
19
24
  editorSelect: "Profile to edit", choose: "Choose a profile", newDraft: "New unsaved profile", new: "New profile",
20
- profileId: "Profile ID (name)", idHint: "Use 1–64 lowercase letters, digits, hyphens or underscores. The ID cannot be changed after saving. Add an optional display label in the JSONC document.",
21
- configuration: "Runtime configuration (JSONC)", configurationHint: "Document: version 1, matching id, optional label, and settings. Runtime overlays support role routes/levels, locale, role availability, topology, workflow, guards, recovery, calibration and default effort. Retired max-preset fields are rejected, not migrated.",
22
- structuralHint: "Skills, prompt content, preset installation, providers/accounts, background/depth and arbitrary route permissions remain deployment-only. Never paste credentials. JSONC and structured controls edit the same draft without normalizing unrelated bytes.",
23
- save: "Save profile", saving: "Saving profile…", apply: "Set as future default", applying: "Selecting future default…", reset: "Use baseline for future sessions", resetting: "Resetting future default…",
25
+ profileId: "Profile ID", idHint: "1–64 lowercase letters, digits, hyphens or underscores. Cannot be changed after saving.",
26
+ configuration: "Configuration (JSONC)", configurationHint: "Use version: 1, the ID shown above, and settings. An optional label sets the display name.",
27
+ structuralHint: "Permissions, accounts and plugins are managed in application settings. Never paste passwords or keys.",
28
+ save: "Save", saving: "Saving…", apply: "Set as new-session default", applying: "Setting default…", reset: "Use default configuration", resetting: "Restoring default…",
24
29
  refresh: "Refresh profiles", refreshing: "Refreshing profiles…", reload: "Reload saved profile", loading: "Loading profiles…", reading: "Reading profile…",
25
- empty: "No saved profiles yet. Create a profile to start; the deployment baseline remains applied.",
26
- baseline: "Applied to new sessions: deployment baseline.", appliedProfile: "Applied to new sessions: {id} (revision {revision}).",
27
- appliedInvalid: "The stored selection cannot be confirmed. Existing sessions remain unchanged. Resolve the Host diagnostic before applying or resetting a profile.",
28
- selectionConflict: "The stored selection changed outside this Host. This Host still uses the policy shown above for new sessions. Apply a saved profile or reset to baseline to reconcile it; restarting adopts the stored selection. Existing sessions stay unchanged.",
29
- dirty: "Draft differs from the saved version. Save or explicitly discard before selecting it.", savedNotApplied: "Saved source version differs from the recorded future-default source, or this profile is not selected.", savedApplied: "Saved source version matches the recorded future-default source, not necessarily the current admission.",
30
- versionObserved: "Metadata observed", versionAbsent: "Not stored", versionUnknown: "Version unavailable", savedRelationshipUnknown: "Saved; relationship to the selected source version is unknown. Refresh to inspect current metadata.", savedRefreshRequired: "Committed — reload the affected source before editing or selecting it again. No automatic replay.",
31
- saved: "Saved {id}. The applied policy was not changed.", applied: "Applied {id} for new sessions. Existing sessions were not changed.", resetDone: "Reset to the deployment baseline for new sessions. Existing sessions were not changed.",
30
+ empty: "No saved profiles. Create one to get started.",
31
+ baseline: "Default configuration", appliedProfile: "{id}",
32
+ appliedInvalid: "Default selection is unconfirmed. Resolve the error below and refresh before changing it. Existing sessions stay unchanged.",
33
+ selectionConflict: "The default changed elsewhere. This Host still uses the selection shown above. Select a saved profile or use default configuration to update it. Restarting adopts the stored selection.",
34
+ dirty: "Unsaved changes. Save or discard before selecting this profile.", savedNotApplied: "Saved; this version is not the new-session default.", savedApplied: "Saved; this version is the new-session default.",
35
+ versionObserved: "Available", versionAbsent: "Not saved", versionUnknown: "Unknown", savedRelationshipUnknown: "Saved; refresh to check the new-session default.", savedRefreshRequired: "Saved. Reload before editing or selecting again.",
36
+ saved: "Saved {id}.", applied: "New sessions will use {id}. Existing sessions stay unchanged.", resetDone: "New sessions will use default configuration. Existing sessions stay unchanged.",
32
37
  discardPrompt: "Discard the unsaved draft before changing the editor?", discard: "Discard changes", cancel: "Cancel",
33
38
  conflict: "The saved file or selection changed elsewhere. Your draft and the prior selection were kept. Refresh profiles, then reload the saved profile or review your draft before retrying.",
34
39
  validation: "This profile is not valid. Correct the field below; your draft is unchanged.",
35
- io: "The Host could not commit this operation. Your draft and the prior selection were kept. Check profile storage access, refresh, then retry.",
36
- unavailable: "The native profile service is unavailable. Your draft is kept. Refresh after the Host reconnects or Deepwork is enabled.",
37
- transport: "The native connection could not confirm this operation. Your draft is kept. Refresh the Host state before retrying; do not assume a save or apply completed.",
38
- invalidProfile: "Unavailable profile: {id}", details: "Host diagnostic", retry: "Resolve the diagnostic, refresh profiles, then retry.",
39
- globalScope: "Global default for future sessions", sessionScope: "Current native session", sessionSelect: "Current-session profile",
40
+ io: "Could not save. Your draft is kept. Check configuration storage access and retry.",
41
+ unavailable: "Configuration service unavailable. Your draft is kept. Reconnect and refresh.",
42
+ transport: "Connection interrupted; the result is unconfirmed. Your draft is kept. Refresh before retrying.",
43
+ invalidProfile: "Unavailable profile: {id}", details: "Error details", retry: "Resolve the issue shown, refresh and retry.",
44
+ globalScope: "New-session default configuration", sessionScope: "Current-session configuration", sessionSelect: "Current-session configuration",
40
45
  globalActionHint: "Set as future default selects only the saved revision for future sessions. It does not apply to the current session.",
41
- headerProfile: "Profile", headerProfileLabel: "Current-session profile (header)", headerCaptured: "captured admission · exact profile unavailable", headerSavedUnavailable: "saved profile unavailable", headerCurrentProfile: "Current profile: {profile}", headerRefresh: "Refresh profiles and current-session state", headerUseModelAction: "Use profile model: {profile}",
42
- headerLoading: "Loading profile…", headerApplying: "Applying profile…", headerApplied: "Profile applied.", headerBusy: "Session is busy.", headerUnavailable: "Profile unavailable.", headerDraft: "Save or discard the draft in Settings.", headerConflict: "The session profile or admission changed elsewhere. Refresh current-session state before retrying.", headerRefused: "Profile change unconfirmed. Check Settings.",
46
+ headerProfile: "Profile", headerProfileLabel: "Current-session configuration", headerCaptured: "Current configuration · profile unknown", headerSavedUnavailable: "Saved profile unavailable", headerCurrentProfile: "Current profile: {profile}", headerRefresh: "Refresh profiles and session state", headerUseModelAction: "Use profile model: {profile}",
47
+ headerLoading: "Loading profile…", headerApplying: "Applying profile…", headerApplied: "Profile applied.", headerBusy: "Session is busy.", headerUnavailable: "Profile unavailable.", headerDraft: "Save or discard the draft in Settings.", headerConflict: "The session configuration changed elsewhere. Refresh before retrying.", headerRefused: "Profile change unconfirmed. Check Settings.",
43
48
  headerKeepModelGroup: "Switch profile — keep current model", headerUseModelGroup: "Switch and use profile model", headerModelDefaultHint: "Normal switching preserves the current model. Explicit switch-and-use-model also saves the native model default, like the Models tab.",
44
- headerNoProfileModel: "Profile applied; no main model configured. Current model kept.", headerModelUnconfirmed: "Profile applied; model change unconfirmed. Check Models/Settings.", headerAppliedWithModel: "Profile and native model applied.",
45
- headerModelChoiceChanged: "Profile applied; newer native model choice kept.",
49
+ headerNoProfileModel: "No model is set for this configuration.", headerModelUnconfirmed: "Model change unconfirmed. Check model settings.", headerAppliedWithModel: "Configuration and model applied.",
50
+ headerModelChoiceChanged: "Your newer model selection was kept.",
51
+ headerActionUnavailable: "This action is unavailable. Refresh to check again.",
46
52
  headerActivationRefused: "Profile activation was refused. Check its configuration and native model catalog.", headerSelectionRefused: "The profile change could not be confirmed.", headerIssueCode: "Reason: {code}.", headerIssueField: "Configuration field: {field}.", headerRetryHint: "Refresh profiles and current-session state, resolve the indicated issue in Settings or native Models, then retry when the session is idle.",
47
- headerMaintenanceRefused: "Native maintenance owns this session. The previous profile is kept.", headerBusyRefused: "The session is busy. The previous profile is kept.", headerCancelledRefused: "The profile request was cancelled. Refresh current-session state before retrying; do not assume a change completed.", headerUnavailableRefused: "The native session or profile service is unavailable. Reconnect and refresh before retrying.", headerWaitRetryHint: "Wait for the native work or maintenance to finish, then Refresh and retry. No profile change is queued automatically.",
48
- noSession: "No native session is selected. Applying to the current session is unavailable.",
49
- sessionUnavailable: "The current session could not be confirmed. Refresh its state before retrying; the prior policy is kept.",
50
- sessionBusy: "Switching is unavailable: {reason}. The Host must reserve a truly idle ordinary session before applying.",
51
- sessionState: "Current admission: {profile}; scope {scope}.", sessionBaseline: "deployment baseline",
52
- sessionGlobalCaptured: "captured admission (exact profile identity unavailable)",
53
- sessionAdmittedProfile: "{id} (revision {revision})", sessionFutureDefault: "Global default for future unscoped sessions: {profile}. This does not change this session's admission.",
54
- sessionConflict: "The session selection or admission epoch changed elsewhere. The prior display and draft are kept. Refresh current-session state before applying again.",
55
- sessionApply: "Apply profile to current session", sessionApplying: "Applying current-session profile…", sessionReset: "Pin baseline for current session", sessionResetting: "Pinning current-session baseline…", sessionRefresh: "Refresh current-session state",
56
- sessionApplied: "Applied the saved revision to this session only. Global default and existing children were not changed.", sessionResetDone: "Pinned the deployment baseline for this session only. Global default was not changed.",
53
+ headerMaintenanceRefused: "Another session operation is in progress. Try again shortly.", headerBusyRefused: "The session is running. Try again when it finishes.", headerCancelledRefused: "Operation cancelled. Refresh to confirm the current configuration.", headerUnavailableRefused: "Cannot read the session configuration. Reconnect and refresh.", headerWaitRetryHint: "Refresh and retry when the session is ready.",
54
+ noSession: "Select a session to change its configuration.",
55
+ sessionUnavailable: "Cannot confirm the current session. Refresh before retrying.",
56
+ sessionBusy: "Cannot switch: {reason}. Wait for the session to be idle, then retry.",
57
+ sessionState: "{profile}", sessionBaseline: "Default configuration",
58
+ sessionGlobalCaptured: "Current configuration (profile unknown)",
59
+ sessionAdmittedProfile: "{id}", sessionFutureDefault: "New-session default configuration: {profile}.",
60
+ sessionConflict: "The session configuration changed elsewhere. Your draft is kept. Refresh before retrying.",
61
+ sessionApply: "Use this profile", sessionApplying: "Applying…", sessionReset: "Use default configuration", sessionResetting: "Restoring default…", sessionRefresh: "Refresh session state",
62
+ sessionApplied: "Applied to this session only. New-session default and existing children stay unchanged.", sessionResetDone: "This session uses default configuration. New-session default stays unchanged.",
57
63
  sessionAppliedWithModel: "Applied this session profile and explicitly selected its native main model. Native model-default persistence follows the Models tab; the global profile default was not changed.",
58
64
  sessionDirty: "Save or explicitly discard the editor draft before applying a current-session choice.",
59
65
  roleState: "Admitted route {route}; strategy {strategy}; retries {retries}; rate-limit failures {failures}; switches {switches}; total delay {delay} ms.",
60
- catalogTitle: "Native model catalog", catalogHint: "Catalog listings are advisory, not network or account health checks. Unlisted/manual routes stay editable; refresh never changes the draft or native model default.",
66
+ catalogTitle: "Model catalog", catalogHint: "You can enter models that are not listed.",
61
67
  catalogUnavailable: "The native catalog is unavailable. Manual provider/model/effort fields and advanced JSONC remain available.", catalogRefresh: "Refresh model catalog", catalogRefreshing: "Refreshing model catalog…", catalogFailure: "Provider catalog unavailable: {name} ({id}).",
62
68
  profileLabel: "Profile display label", defaultActive: "Default Deepwork mode", activeHint: "This default does not erase an explicit saved session mode.", enabled: "Enabled", disabled: "Disabled", inherit: "Inherit deployment baseline",
63
- profileDefaults: "Profile runtime defaults", roleSelect: "Agent role to edit", rolesUnavailable: "Native role inventory unavailable — use advanced JSONC", roleEnabled: "Enabled in the native deployment", roleDisabled: "Disabled in the native deployment",
64
- strategy: "{name} strategy", inheritStrategy: "Inherit ({value})", startupLock: "startup-lock — keep the admitted route", rateFallback: "rate-limit-fallback — ordered rollover at threshold",
65
- strategyHint: "Both strategies use finite, positively no-output-safe RATE_LIMIT retries. Generic, auth and quota failures do not authorize a model switch. Blank numeric fields inherit; zero is an explicit value.",
69
+ profileDefaults: "Configuration defaults", roleSelect: "Agent role to edit", rolesUnavailable: "Role list unavailable. Refresh or use the advanced editor.", roleEnabled: "Enabled in application settings", roleDisabled: "Disabled in application settings",
70
+ strategy: "{name} strategy", inheritStrategy: "Inherit ({value})", startupLock: "Keep the starting route", rateFallback: "Switch after repeated rate limits",
71
+ strategyHint: "Model switches require a rate-limit failure with no output. Authentication and quota errors stop the attempt. Leave numbers blank to inherit; zero is explicit.",
66
72
  retryField: "{name} {field}", inheritNumber: "Inherit {value}", retryBounds: "Integer {min}–{max}; inherited value {value}.", unknownDefault: "unavailable",
67
73
  retryCount: "retry count", initialDelay: "initial delay (ms)", maxDelay: "maximum delay (ms)", totalWait: "total wait budget (ms)", switchThreshold: "rate-limit failures before switch", maxSwitches: "maximum switches",
68
74
  primaryMode: "{name} primary route", inheritRoute: "Inherit native/deployment route", configuredRoute: "Configure primary route", primaryName: "{name} primary",
69
75
  fallbackMode: "{name} fallback chain", inheritChain: "Inherit deployment fallback chain", configuredChain: "Explicit ordered fallback chain", emptyChain: "Explicitly empty chain: no configured fallback routes.", fallbackName: "{name} fallback {index}", addFallback: "Add fallback for {name}", removeFallback: "Remove {name}", moveUp: "Move up {name}", moveDown: "Move down {name}",
70
76
  routeProvider: "{name} provider", routeModel: "{name} model", routeEffort: "{name} exact effort", manualProvider: "{name} manual provider", manualModel: "{name} manual model", manualEffort: "{name} manual exact effort", manual: "Enter manual identifier", manualValue: "Manual / unlisted: {value}", unset: "not set", effortDefault: "Native default (omit exact effort)", effortChangeHint: "Changing a provider/model explicitly clears that route's exact effort. Catalog refresh preserves all configured values; choose an exact effort again if required.",
71
- advanced: "Advanced JSONC", rawInvalid: "Structured editing is unavailable for this invalid raw draft. Correct Advanced JSONC; no fields, comments or bytes have been normalized.", invalidNumber: "Correct this bounded integer before saving or changing roles. The invalid value has not replaced the saved draft policy.",
77
+ advanced: "Advanced JSONC", rawInvalid: "Correct the invalid draft in Advanced JSONC to use these controls. Your draft is kept.", invalidNumber: "Enter a whole number within the limits before saving or changing roles.",
72
78
  };
73
79
  export const zh = {
80
+ sessionChooseWorkspace: "请先选择工作区创建空白会话,再选择本次配置后发送。",
81
+ sessionSelectionBlock: "正在确认 DSMM 本次会话配置。请等待选择完成,或刷新会话状态。",
82
+ sessionCommittedRefresh: "本次会话配置已保存,请刷新确认,不要再次应用。",
83
+ sessionUnconfirmedRefresh: "本次会话配置结果待确认。请刷新状态后再选择或发送,不要重试更改。",
84
+ technicalDetails: "技术详情",
74
85
  diagnosticJsonc: "请修正所示位置的 JSONC 语法。", diagnosticDuplicate: "请删除此位置的重复字段。", diagnosticUnsafe: "不支持不安全对象键,请删除此字段。", diagnosticUnknown: "请删除不支持的字段。私有及安装配置应放在原生部署设置中。", diagnosticDeprecated: "此已退休字段被拒绝,请改用明确的角色调用等级,不自动迁移。", diagnosticType: "请使用声明的字段类型和有界数值。", diagnosticValue: "请选择明确支持的值。允许的输出语言见结构化语言字段。", diagnosticRoute: "请提供完整提供商与模型路由,或非空精确强度覆盖。", diagnosticRequired: "所选 Deepwork 策略要求此角色,不可禁用。", diagnosticCeiling: "具名配置档不能启用超出已捕获启动或部署上限的能力。",
75
- browseZone: "浏览已保存配置档", editZone: "编辑草稿", savedRevision: "保存的修订:{revision}", savedInventory: "已保存配置档与诊断", futurePin: "未来默认选择修订:{revision}", noEditor: "打开已保存配置档或新建草稿。浏览不会启用配置档。",
86
+ browseZone: "已保存配置", editZone: "编辑配置", savedRevision: "保存版本:{revision}", savedInventory: "配置警告与错误", futurePin: "默认选择版本:{revision}", noEditor: "选择配置或新建配置后编辑。",
76
87
  warningMarker: "警告 · 不阻断 · {code} · {field}", blockingMarker: "已阻断 · {code} · {field}", blankLabelWarning: "显示名称为空,使用配置档 ID 显示。原文仍可保存和选择。", diagnosticLocation: "JSONC 第 {line} 行,第 {column} 列。",
77
- savedWarnings: "保存修订的警告", draftWarnings: "草稿警告", futureWarnings: "未来默认固定修订的警告", admissionWarnings: "当前准入的警告", warningProfile: "警告(不阻断)",
78
- omitLabel: "使用 ID 显示(省略 label)", businessLocale: "默认输出语言", inheritLocale: "继承部署或原生语言", unsupportedLocale: "草稿语言不受支持,请选择允许值", localeHint: "省略 locale 时继承部署偏好,再继承原生或用户语言。本次用户明确请求优先,不改变界面语言。",
79
- toolTopology: "子 Agent 工具拓扑", topologyHint: "per-role 暴露角色工具及类别入口;parameterized 暴露角色与类别参数化入口。省略时继承部署(默认 per-role)。后台、深度及路由覆盖权限仅可在部署中配置。",
80
- levelName: "调用资源等级:{level}", levelMode: "{level} 覆盖", levelUnconfigured: "未配置或继承部署等级", levelEffortOnly: "仅精确推理强度", levelFullRoute: "完整提供商与模型路由", normalLevel: "normal · 默认路由(只读别名;省略即 normal)", orchestratorLevels: "普通 orchestrator 根会话没有调用等级,不改变其原生模型。", levelsHint: "等级代表调用资源,不代表流程等级。请求未配置等级会被拒绝;仅强度覆盖使用已解析模型;完整路由同时替换模型和强度。",
81
- namedRole: "{name} 的具名配置可用性", namedRoleHint: "省略时继承已捕获部署上限。必需角色不可禁用;启用请求不能突破启动或部署限制。禁用角色仍可编辑路由。", availabilityUnknown: "角色可用性元数据不可用,不能猜测必需集合或启动与部署上限。请求更改可用性前请刷新。", roleRequired: "必需角色 · {reason}", roleOptional: "可选角色", roleCeiling: "启动:{startup};部署:{deployment};捕获准入:{admitted}。", roleProvenance: "来源:{source};捕获:{capture}。", roleUnavailableReason: "可用性原因:{reason}。",
82
- admittedRoles: "已捕获角色可用性", bindingUnknown: "尚未确认子 Agent 运行时绑定,不能从配置推断投递守卫已就绪。", bindingState: "捕获的子 Agent 绑定:{binding};投递守卫:{ready};需重启:{restart}。守卫就绪不证明持久化或 child 委派支持。", bindingReason: "绑定原因:{reason}。", sessionModelHint: "应用或固定基线保留原生根模型和已有子会话。只有「使用配置档模型」会明确请求原生模型切换。", savedOnlyHint: "选择编辑器对应的已保存固定修订,而不是脏草稿。保存不会选择或应用。",
83
- centralOrigin: "具名资源:共享中央存储。", legacyOrigin: "具名资源:旧原生配置存储(只读)。", explicitOrigin: "具名资源:显式指定的存储。", readOnlyOrigin: "此旧存储只读,不复制或迁移文件;选择与当前会话操作仍使用各自的权限。",
88
+ savedWarnings: "已保存配置的警告", draftWarnings: "草稿警告", futureWarnings: "新会话默认配置的警告", admissionWarnings: "本次会话的警告", warningProfile: "警告(不阻断)",
89
+ omitLabel: "使用 ID 作为显示名称", businessLocale: "默认输出语言", inheritLocale: "使用部署或原生语言", unsupportedLocale: "语言不受支持,请选择允许值", localeHint: "用户明确要求的语言优先,界面语言不变。",
90
+ toolTopology: "子代理工具", topologyHint: "per-role:每个角色一个工具,另有类别工具。parameterized:通过工具参数选择角色或类别。",
91
+ levelName: "调用等级:{level}", levelMode: "{level} 覆盖", levelUnconfigured: "使用部署等级", levelEffortOnly: "仅推理强度", levelFullRoute: "提供商、模型与强度", normalLevel: "normal · 默认路由", orchestratorLevels: "主 orchestrator 不支持调用等级。", levelsHint: "未配置的等级不可使用。仅强度覆盖保留配置中的模型;完整路由同时替换模型和强度。",
92
+ namedRole: "启用 {name}", namedRoleHint: "必需角色必须保持启用;部署设置禁止的角色无法在此启用。", availabilityUnknown: "角色可用性未知,请刷新后再更改。", roleRequired: "必需角色 · {reason}", roleOptional: "可选角色", roleCeiling: "启动:{startup};部署:{deployment};捕获准入:{admitted}。", roleProvenance: "来源:{source};捕获:{capture}。", roleUnavailableReason: "可用性原因:{reason}。",
93
+ admittedRoles: "角色可用性", bindingUnknown: "子代理就绪状态未知,请刷新确认。", bindingState: "子代理执行就绪:{ready};需重启:{restart}。", bindingReason: "原因:{reason}。", sessionModelHint: "选择配置时保留当前模型;「使用配置中的模型」会明确切换模型。", savedOnlyHint: "选择此配置前请保存更改。",
94
+ centralOrigin: "共享配置存储。", legacyOrigin: "旧配置存储(只读)。", explicitOrigin: "自定义配置存储。", readOnlyOrigin: "这些旧配置只读。",
84
95
  headerCompactProfiles: "配置档 · 保留模型", headerCompactRefresh: "刷新", headerNoSession: "选择会话后可更改。",
85
- sessionNewRequired: "应用配置档或基线需要新会话。仍可保存配置档或设置未来默认。",
86
- sessionModuleOff: "此会话捕获的模块设置不允许使用 Deepwork。",
87
- headerModeEnable: "启用 Deepwork", headerModeDisable: "关闭 Deepwork", headerModePreset: "Deepwork · DW 预设", headerModeUnavailable: "Deepwork 不可用", headerModeOn: "Deepwork 已启用。", headerModeOff: "Deepwork 已关闭。", headerUseCurrentModel: "使用配置档模型",
88
- title: "Deepwork 配置档", description: "保存独立的运行时配置,并选择新会话使用的配置档。",
89
- newSessions: "此固定修订仅作为未来会话默认值。当前准入与已有子会话不变;明确的会话选择保留自己的权限。",
90
- editorSelect: "要编辑的配置档", choose: "选择配置档", newDraft: "新的未保存配置档", new: "新建配置档",
91
- profileId: "配置档 ID(名称)", idHint: "使用 1–64 个小写字母、数字、连字符或下划线。保存后不能修改 ID。可在 JSONC 文档中添加可选的显示名称 label。",
92
- configuration: "运行时配置(JSONC)", configurationHint: "文档包含 version: 1、相同 id、可选 label 和 settings。支持角色路由与调用等级、语言、角色可用性、拓扑、流程、守卫、恢复、校准与默认推理强度。已退休的最高强度预设字段会被拒绝,不自动迁移。",
93
- structuralHint: "技能、提示内容、预设安装、提供商与账户、后台与深度及任意路由权限仅可在部署中配置。请勿粘贴凭证。JSONC 与结构化控件共享草稿,不规范化无关字节。",
94
- save: "保存配置档", saving: "正在保存配置档…", apply: "设为未来默认", applying: "正在选择未来默认…", reset: "未来会话使用基线", resetting: "正在重置未来默认…",
95
- refresh: "刷新配置档", refreshing: "正在刷新配置档…", reload: "重新加载已保存配置档", loading: "正在加载配置档…", reading: "正在读取配置档…",
96
- empty: "尚无已保存的配置档。可新建配置档;当前仍应用部署基线。",
97
- baseline: "新会话使用:部署基线。", appliedProfile: "新会话使用:{id}(修订 {revision})。",
98
- appliedInvalid: "无法确认保存的选择。已有会话未改变。请先解决 Host 诊断,再应用或重置配置档。",
99
- selectionConflict: "保存的选择已被此 Host 之外的操作修改。此 Host 的新会话仍使用上方策略。请应用已保存配置档或重置为基线以协调选择;重启将采用保存的选择。已有会话未改变。",
100
- dirty: "草稿与保存版本不同。选择前请保存或明确丢弃。", savedNotApplied: "保存的来源版本与未来默认记录不同,或尚未选择此配置档。", savedApplied: "保存的来源版本与未来默认记录一致,但未必是当前准入。",
101
- versionObserved: "已观测元数据", versionAbsent: "未存储", versionUnknown: "版本不可用", savedRelationshipUnknown: "已保存;与所选来源版本的关系未知,请刷新核对当前元数据。", savedRefreshRequired: "已提交——请重新加载受影响的来源后再编辑或选择,不会自动重放。",
102
- saved: "已保存 {id},未改变已应用的策略。", applied: "已为新会话应用 {id},已有会话未改变。", resetDone: "已为新会话重置为部署基线,已有会话未改变。",
96
+ sessionNewRequired: "请新建会话后选择配置。仍可保存配置或设置新会话默认配置。",
97
+ sessionModuleOff: "此会话无法使用 Deepwork。",
98
+ headerModeEnable: "启用 Deepwork", headerModeDisable: "关闭 Deepwork", headerModePreset: "Deepwork · DW 预设", headerModeUnavailable: "Deepwork 不可用", headerModeOn: "Deepwork 已启用。", headerModeOff: "Deepwork 已关闭。", headerUseCurrentModel: "使用配置中的模型",
99
+ title: "Deepwork 配置", description: "保存配置并选择新会话的默认配置。",
100
+ newSessions: "选择已保存的配置供新会话使用,已有会话不变。",
101
+ editorSelect: "要编辑的配置", choose: "选择配置", newDraft: "未保存的新配置", new: "新建配置",
102
+ profileId: "配置 ID", idHint: "1–64 个小写字母、数字、连字符或下划线,保存后不可修改。",
103
+ configuration: "配置内容(JSONC)", configurationHint: "使用 version: 1、与上方一致的 id,以及 settings;label 可填写显示名称。",
104
+ structuralHint: "权限、账户、插件等由应用设置管理。请勿粘贴密码或密钥。",
105
+ save: "保存", saving: "正在保存…", apply: "设为新会话默认配置", applying: "正在设置默认配置…", reset: "使用默认配置", resetting: "正在恢复默认配置…",
106
+ refresh: "刷新配置", refreshing: "正在刷新…", reload: "重新加载已保存配置", loading: "正在加载…", reading: "正在读取…",
107
+ empty: "尚无已保存的配置,请先新建配置。",
108
+ baseline: "默认配置", appliedProfile: "{id}",
109
+ appliedInvalid: "默认选择未确认,请解决下方错误并刷新后再更改。已有会话不变。",
110
+ selectionConflict: "默认选择已在其他位置改变,此宿主仍使用上方选择。请选择已保存的配置或使用默认配置进行更新;重启将采用存储中的选择。",
111
+ dirty: "有未保存的更改,选择此配置前请保存或丢弃。", savedNotApplied: "已保存,此版本尚未设为新会话默认配置。", savedApplied: "已保存,此版本已设为新会话默认配置。",
112
+ versionObserved: "可用", versionAbsent: "未保存", versionUnknown: "未知", savedRelationshipUnknown: "已保存,请刷新确认新会话默认配置。", savedRefreshRequired: "已保存,请重新加载后再编辑或选择。",
113
+ saved: "已保存 {id}。", applied: "新会话将使用 {id},已有会话不变。", resetDone: "新会话将使用默认配置,已有会话不变。",
103
114
  discardPrompt: "切换编辑器之前,是否丢弃未保存的草稿?", discard: "丢弃更改", cancel: "取消",
104
115
  conflict: "已保存文件或选择已被其他操作修改。草稿和原选择已保留。请刷新配置档,然后重新加载已保存配置档或检查草稿后重试。",
105
116
  validation: "此配置档无效。请修正下方字段;草稿未改变。",
106
- io: "Host 无法提交此操作。草稿和原选择已保留。请检查配置档存储权限,刷新后重试。",
107
- unavailable: "原生配置档服务不可用。草稿已保留。Host 重新连接或启用 Deepwork 后请刷新。",
108
- transport: "原生连接无法确认此操作。草稿已保留。重试之前请刷新 Host 状态;不要假定保存或应用已完成。",
109
- invalidProfile: "不可用配置档:{id}", details: "Host 诊断", retry: "请解决诊断问题,刷新配置档后重试。",
110
- globalScope: "未来会话的全局默认值", sessionScope: "当前原生会话", sessionSelect: "当前会话配置档",
117
+ io: "无法保存。草稿已保留,请检查配置存储权限后重试。",
118
+ unavailable: "配置服务暂不可用。草稿已保留,请重新连接后刷新。",
119
+ transport: "连接中断,操作结果待确认。草稿已保留,请先刷新状态。",
120
+ invalidProfile: "配置不可用:{id}", details: "错误详情", retry: "请处理所示问题,刷新后重试。",
121
+ globalScope: "新会话默认配置", sessionScope: "本次会话配置", sessionSelect: "本次会话配置",
111
122
  globalActionHint: "「设为未来默认」只为未来会话选择已保存修订,不应用到当前会话。",
112
- headerProfile: "配置档", headerProfileLabel: "当前会话配置档(会话栏)", headerCaptured: "已捕获准入 · 精确配置档不可用", headerSavedUnavailable: "保存的配置档不可用", headerCurrentProfile: "当前配置档:{profile}", headerRefresh: "刷新配置档和当前会话状态", headerUseModelAction: "使用配置档模型:{profile}",
113
- headerLoading: "加载配置档…", headerApplying: "应用配置档…", headerApplied: "配置档已应用。", headerBusy: "会话忙碌。", headerUnavailable: "配置档不可用。", headerDraft: "请在设置中保存或丢弃草稿。", headerConflict: "会话配置档或准入代次已在其他位置改变,请刷新当前会话状态后重试。", headerRefused: "未确认配置档更改,请检查设置。",
114
- headerKeepModelGroup: "切换配置档 — 保留当前模型", headerUseModelGroup: "切换并使用配置档模型", headerModelDefaultHint: "普通切换保留当前模型。明确切换并使用模型还会像模型页一样保存原生模型默认值。", headerNoProfileModel: "配置档已应用,未配置主模型。当前模型已保留。", headerModelUnconfirmed: "配置档已应用,模型更改未确认。请检查模型或设置页。", headerAppliedWithModel: "配置档和原生模型已应用。",
115
- headerModelChoiceChanged: "配置档已应用,已保留更新的原生模型选择。",
123
+ headerProfile: "配置", headerProfileLabel: "本次会话配置", headerCaptured: "当前配置 · 来源未知", headerSavedUnavailable: "已保存的配置不可用", headerCurrentProfile: "本次配置:{profile}", headerRefresh: "刷新配置和会话状态", headerUseModelAction: "使用配置中的模型:{profile}",
124
+ headerLoading: "加载配置…", headerApplying: "应用配置…", headerApplied: "配置已应用。", headerBusy: "会话忙碌。", headerUnavailable: "配置不可用。", headerDraft: "请在设置中保存或丢弃草稿。", headerConflict: "会话配置已在其他位置改变,请刷新后重试。", headerRefused: "配置更改未确认,请检查设置。",
125
+ headerKeepModelGroup: "切换配置,保留当前模型", headerUseModelGroup: "切换配置和模型", headerModelDefaultHint: "使用配置中的模型也会更新默认模型。", headerNoProfileModel: "此配置未指定模型。", headerModelUnconfirmed: "模型更改尚未确认,请检查模型设置。", headerAppliedWithModel: "配置和模型已应用。",
126
+ headerModelChoiceChanged: "已保留你最新选择的模型。",
127
+ headerActionUnavailable: "此操作暂不可用,请刷新确认。",
116
128
  headerActivationRefused: "配置档启用被拒绝,请检查其配置和原生模型目录。", headerSelectionRefused: "无法确认配置档更改。", headerIssueCode: "原因:{code}。", headerIssueField: "配置字段:{field}。", headerRetryHint: "请刷新配置档和当前会话状态,在设置或原生模型页解决所示问题,然后在会话空闲时重试。",
117
- headerMaintenanceRefused: "原生维护正在占用此会话,原配置档已保留。", headerBusyRefused: "会话正在运行,原配置档已保留。", headerCancelledRefused: "配置档请求已取消,请刷新当前会话状态后重试,不要假定更改已完成。", headerUnavailableRefused: "原生会话或配置档服务不可用,请重新连接并刷新后重试。", headerWaitRetryHint: "请等待原生运行或维护结束,然后刷新并重试。不会自动排队应用配置档。",
118
- noSession: "未选择原生会话。无法应用到当前会话。", sessionUnavailable: "无法确认当前会话。重试前请刷新状态;原策略已保留。", sessionBusy: "暂不可切换:{reason}。Host 必须先保留真正空闲的普通会话。", sessionState: "当前准入:{profile};范围 {scope}。", sessionBaseline: "部署基线",
119
- sessionGlobalCaptured: "已捕获准入(精确配置档身份不可用)",
120
- sessionAdmittedProfile: "{id}(修订 {revision})", sessionFutureDefault: "未来没有独立选择的会话的全局默认值:{profile}。这不会改变当前会话的准入。",
121
- sessionConflict: "会话选择或准入代次已在其他位置改变。原显示和草稿已保留。再次应用前请刷新当前会话状态。",
122
- sessionApply: "应用配置档到当前会话", sessionApplying: "正在应用当前会话配置档…", sessionReset: "为当前会话固定基线", sessionResetting: "正在固定当前会话基线…", sessionRefresh: "刷新当前会话状态", sessionApplied: "已仅对此会话应用保存的修订。全局默认值和已有子会话未改变。", sessionResetDone: "已仅对此会话固定部署基线。全局默认值未改变。", sessionDirty: "应用当前会话选择之前,请保存或明确丢弃编辑器草稿。",
129
+ headerMaintenanceRefused: "会话正在处理其他操作,请稍后重试。", headerBusyRefused: "会话正在运行,请结束后重试。", headerCancelledRefused: "操作已取消,请刷新以确认当前配置。", headerUnavailableRefused: "无法读取会话配置,请重新连接后刷新。", headerWaitRetryHint: "请稍后刷新并重试。",
130
+ noSession: "选择会话后可更改配置。", sessionUnavailable: "无法确认当前会话,请刷新后重试。", sessionBusy: "暂不可切换:{reason}。请等待会话空闲后重试。", sessionState: "{profile}", sessionBaseline: "默认配置",
131
+ sessionGlobalCaptured: "当前配置(来源未知)",
132
+ sessionAdmittedProfile: "{id}", sessionFutureDefault: "新会话默认配置:{profile}。",
133
+ sessionConflict: "会话配置已在其他位置改变,草稿已保留。请刷新后重试。",
134
+ sessionApply: "使用此配置", sessionApplying: "正在应用…", sessionReset: "使用默认配置", sessionResetting: "正在恢复默认配置…", sessionRefresh: "刷新会话状态", sessionApplied: "已应用到本次会话,新会话默认配置和已有子会话不变。", sessionResetDone: "本次会话已使用默认配置,新会话默认配置不变。", sessionDirty: "选择本次会话配置前,请保存或丢弃草稿。",
123
135
  sessionAppliedWithModel: "已应用此会话配置档,并明确选择其原生主模型。模型默认值像模型页一样保存;全局配置档默认值未改变。",
124
136
  roleState: "准入路由 {route};策略 {strategy};重试 {retries};限流失败 {failures};切换 {switches};累计延迟 {delay} 毫秒。",
125
- catalogTitle: "原生模型目录", catalogHint: "目录仅供参考,不是网络或账户健康检查。未列出或手动路由仍可编辑;刷新不会改变草稿或原生模型默认值。", catalogUnavailable: "原生模型目录不可用。仍可使用手动提供商、模型、强度字段和高级 JSONC。", catalogRefresh: "刷新模型目录", catalogRefreshing: "正在刷新模型目录…", catalogFailure: "提供商目录不可用:{name}({id})。",
126
- profileLabel: "配置档显示名称", defaultActive: "默认 Deepwork 模式", activeHint: "此默认值不会抹除已明确保存的会话模式。", enabled: "启用", disabled: "禁用", inherit: "继承部署基线", profileDefaults: "配置档运行时默认值", roleSelect: "要编辑的 Agent 角色", rolesUnavailable: "原生角色列表不可用,请使用高级 JSONC", roleEnabled: "原生部署中已启用", roleDisabled: "原生部署中已禁用",
127
- strategy: "{name} 策略", inheritStrategy: "继承({value})", startupLock: "startup-lock — 保留准入路由", rateFallback: "rate-limit-fallback — 达到阈值后按顺序切换", strategyHint: "两种策略均使用有限且已证明无输出的 RATE_LIMIT 重试。普通、认证或配额失败不允许切换模型。数字留空表示继承,零是明确值。", retryField: "{name} {field}", inheritNumber: "继承 {value}", retryBounds: "整数 {min}–{max};继承值 {value}。", unknownDefault: "不可用",
137
+ catalogTitle: "模型目录", catalogHint: "可手动输入目录中未列出的模型。", catalogUnavailable: "模型目录不可用,可手动输入提供商、模型和推理强度。", catalogRefresh: "刷新模型目录", catalogRefreshing: "正在刷新模型目录…", catalogFailure: "提供商目录不可用:{name}({id})。",
138
+ profileLabel: "配置名称", defaultActive: "默认 Deepwork 模式", activeHint: "会话中明确选择的模式优先。", enabled: "启用", disabled: "禁用", inherit: "使用上层设置", profileDefaults: "配置默认值", roleSelect: "要编辑的角色", rolesUnavailable: "角色列表暂不可用,请刷新或使用高级编辑器。", roleEnabled: "应用设置已启用", roleDisabled: "应用设置已禁用",
139
+ strategy: "{name} 策略", inheritStrategy: "继承({value})", startupLock: "保留起始路由", rateFallback: "多次限流后切换", strategyHint: "仅在限流且没有输出时切换模型;认证或配额错误会停止尝试。数字留空表示继承,零为明确值。", retryField: "{name} {field}", inheritNumber: "继承 {value}", retryBounds: "整数 {min}–{max};继承值 {value}。", unknownDefault: "不可用",
128
140
  retryCount: "重试次数", initialDelay: "初始延迟(毫秒)", maxDelay: "最大单次延迟(毫秒)", totalWait: "累计等待上限(毫秒)", switchThreshold: "切换前的限流失败次数", maxSwitches: "最大切换次数",
129
141
  primaryMode: "{name} 主路由", inheritRoute: "继承原生或部署路由", configuredRoute: "配置主路由", primaryName: "{name} 主路由", fallbackMode: "{name} 备用链", inheritChain: "继承部署备用链", configuredChain: "明确的有序备用链", emptyChain: "明确为空的备用链:没有已配置备用路由。", fallbackName: "{name} 备用 {index}", addFallback: "为 {name} 添加备用路由", removeFallback: "移除 {name}", moveUp: "上移 {name}", moveDown: "下移 {name}",
130
- routeProvider: "{name} 提供商", routeModel: "{name} 模型", routeEffort: "{name} 精确强度", manualProvider: "{name} 手动提供商", manualModel: "{name} 手动模型", manualEffort: "{name} 手动精确强度", manual: "输入手动标识", manualValue: "手动或未列出:{value}", unset: "未设置", effortDefault: "原生默认值(省略精确强度)", effortChangeHint: "明确更改提供商或模型会清除该路由的精确强度。刷新目录会保留所有配置值;需要时请重新选择精确强度。", advanced: "高级 JSONC", rawInvalid: "原始草稿无效,暂不可结构化编辑。请修正高级 JSONC;字段、注释和字节均未自动规范化。", invalidNumber: "保存或切换角色之前,请修正此有界整数。无效值尚未替换草稿中的策略。",
142
+ routeProvider: "{name} 提供商", routeModel: "{name} 模型", routeEffort: "{name} 精确强度", manualProvider: "{name} 手动提供商", manualModel: "{name} 手动模型", manualEffort: "{name} 手动精确强度", manual: "输入手动标识", manualValue: "手动或未列出:{value}", unset: "未设置", effortDefault: "原生默认值(省略精确强度)", effortChangeHint: "更改提供商或模型会清除该路由的推理强度,需要时请重新选择。", advanced: "高级 JSONC", rawInvalid: "请在高级 JSONC 中修正草稿后使用这些控件,草稿已保留。", invalidNumber: "保存或切换角色前,请输入范围内的整数。",
131
143
  };
132
144
  export const RETRY_FIELD_LABEL_KEYS = {
133
145
  maxRetries: "retryCount", initialDelayMs: "initialDelay", maxDelayMs: "maxDelay",
@@ -1,5 +1,31 @@
1
1
  export declare const PERMISSIONS_NS = "settings.dsmm-permissions";
2
2
  export declare const permissionEn: {
3
+ childPermissions: string;
4
+ childEnable: string;
5
+ childRevoke: string;
6
+ childPermissionBoundary: string;
7
+ childUnavailable: string;
8
+ childNoPending: string;
9
+ childEnabled: string;
10
+ childDisabled: string;
11
+ childUnconfirmed: string;
12
+ childProject: string;
13
+ childRole: string;
14
+ childReadOnly: string;
15
+ temporaryChildSession: string;
16
+ temporaryWebBoundary: string;
17
+ temporaryTitle: string;
18
+ temporaryDuration: string;
19
+ temporaryApprove: string;
20
+ temporaryRevoke: string;
21
+ temporaryRefresh: string;
22
+ temporaryEmpty: string;
23
+ "temporary:once": string;
24
+ "temporary:session": string;
25
+ "temporary:15min": string;
26
+ "temporary:1h": string;
27
+ temporaryBoundary: string;
28
+ temporaryUnavailable: string;
3
29
  title: string;
4
30
  rules: string;
5
31
  nativeApproval: string;