@dsmm/dsmm 0.3.1 → 0.3.3

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 (54) hide show
  1. package/README.md +2 -2
  2. package/docs/agent-presets.md +5 -5
  3. package/docs/compatibility.md +7 -1
  4. package/docs/migration-from-ocmm.md +1 -1
  5. package/docs/releasing.md +25 -65
  6. package/docs/roadmap.md +37 -2
  7. package/docs/settings-status.md +1 -1
  8. package/lib/client/DeploymentFields.d.ts +6 -2
  9. package/lib/client/DeploymentFields.js +8 -6
  10. package/lib/client/DeploymentPage.d.ts +1 -0
  11. package/lib/client/DeploymentPage.js +4 -3
  12. package/lib/client/ProfilesSection.js +3 -3
  13. package/lib/client/RoleAvailability.js +1 -1
  14. package/lib/client/SessionProfiles.js +21 -18
  15. package/lib/client/controller.d.ts +17 -0
  16. package/lib/client/controller.js +104 -18
  17. package/lib/client/deployment-locales.js +26 -27
  18. package/lib/client/deployment-modules.js +1 -1
  19. package/lib/client/index.js +10 -2
  20. package/lib/client/locales.d.ts +6 -0
  21. package/lib/client/locales.js +148 -124
  22. package/lib/client/permission-locales.js +35 -35
  23. package/lib/client.js +645 -542
  24. package/lib/index.js +10 -5
  25. package/lib/native-admission.d.ts +18 -0
  26. package/lib/native-admission.js +174 -17
  27. package/lib/permission-control.d.ts +2 -0
  28. package/lib/permission-control.js +7 -0
  29. package/lib/permission-controller.js +2 -2
  30. package/lib/permission-native-rules.js +3 -3
  31. package/lib/preset-materializer.js +3 -3
  32. package/lib/preset-registry.d.ts +20 -2
  33. package/lib/preset-registry.js +46 -17
  34. package/lib/preset-skills.d.ts +1 -1
  35. package/lib/preset-skills.js +2 -2
  36. package/lib/profile-diagnostics.js +1 -1
  37. package/lib/profile-remote.js +1 -3
  38. package/lib/profile-rpc.js +2 -0
  39. package/lib/profile-runtime.d.ts +12 -1
  40. package/lib/profile-runtime.js +122 -10
  41. package/lib/profile-store.d.ts +2 -2
  42. package/lib/profile-store.js +8 -1
  43. package/lib/profile-types.d.ts +1 -0
  44. package/lib/role-invocation.d.ts +1 -1
  45. package/lib/role-invocation.js +2 -2
  46. package/lib/role-policy.js +2 -2
  47. package/lib/role-subagents.js +18 -4
  48. package/lib/roles.d.ts +2 -0
  49. package/lib/roles.js +2 -0
  50. package/lib/settings.d.ts +1 -3
  51. package/lib/settings.js +4 -9
  52. package/lib/skills.d.ts +1 -0
  53. package/lib/skills.js +5 -1
  54. package/package.json +37 -33
@@ -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,157 @@
1
1
  export const NS = "settings.dsmm-profiles";
2
2
  export const en = {
3
- 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.",
5
- 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.",
3
+ sessionChooseWorkspace: "Choose a workspace to start a session, then choose its configuration before sending.",
4
+ sessionSelectionBlock: "Finish choosing this session's configuration to continue typing.",
5
+ sessionCommittedRefresh: "Saved. Refresh to confirm it.",
6
+ sessionUnconfirmedRefresh: "The result is unknown. Refresh before choosing or sending again.",
7
+ technicalDetails: "Details",
8
+ diagnosticJsonc: "Fix the JSONC syntax at the marked location.", diagnosticDuplicate: "Remove the duplicate field.", diagnosticUnsafe: "Unsafe object keys are not supported; remove this field.", diagnosticUnknown: "Remove this unsupported field.", diagnosticDeprecated: "This retired field is rejected. Configure explicit role levels instead.", diagnosticType: "Use the declared field type and a value in range.", diagnosticValue: "Choose a supported value.", diagnosticRoute: "Use a complete provider/model route, or a nonempty reasoning effort.", diagnosticRequired: "This role is required by the selected workflow policy and cannot be disabled.", diagnosticCeiling: "A profile cannot enable what the deployment does not allow.",
9
+ browseZone: "Saved profiles", editZone: "Edit profile", savedRevision: "Version: {revision}", savedInventory: "Warnings and errors", futurePin: "Default version: {revision}", noEditor: "Choose a profile or create one to edit.",
10
+ warningMarker: "Warning · {code} · {field}", blockingMarker: "Error · {code} · {field}", blankLabelWarning: "The label is blank, so the ID is shown instead. The profile can still be saved and selected.", diagnosticLocation: "Line {line}, column {column}.",
11
+ savedWarnings: "Warnings in the saved version", draftWarnings: "Warnings in this draft", futureWarnings: "Warnings for new sessions", admissionWarnings: "Warnings for this session", warningProfile: "has warnings",
12
+ omitLabel: "Use the ID as the name", businessLocale: "Output language", inheritLocale: "Use the app language", unsupportedLocale: "Choose a supported language", localeHint: "A request in the conversation still decides the reply language.",
13
+ toolTopology: "Subagent tools", topologyHint: "per-role: one tool per role, plus one category tool. parameterized: pick the role or category in the tool arguments.",
14
+ levelName: "Level: {level}", levelMode: "{level} override", levelUnconfigured: "Use the deployment level", levelEffortOnly: "Reasoning effort only", levelFullRoute: "Provider, model and effort", normalLevel: "normal · default route", orchestratorLevels: "The orchestrator has no invocation levels.", levelsHint: "Only configured levels can be used. Reasoning effort only keeps the configured model; a full route replaces model and effort.",
15
+ namedRole: "Enable {name}", namedRoleHint: "Required roles stay enabled. Roles disabled by the deployment cannot be enabled here.", availabilityUnknown: "Role availability is unknown. Refresh before changing it.", roleRequired: "Required · {reason}", roleOptional: "Optional", roleCeiling: "Startup: {startup}; deployment: {deployment}; current: {admitted}.", roleProvenance: "Source: {source}; capture: {capture}.", roleUnavailableReason: "Reason: {reason}.",
16
+ admittedRoles: "Role availability", bindingUnknown: "Subagent readiness is unknown. Refresh to check.", bindingState: "Subagents ready: {ready}; restart needed: {restart}.", bindingReason: "Reason: {reason}.", sessionModelHint: "Choosing a profile keeps the current model. Use profile model switches it.", savedOnlyHint: "Save before choosing this profile.",
17
+ centralOrigin: "Shared storage.", legacyOrigin: "Old read-only storage.", explicitOrigin: "Custom storage.", readOnlyOrigin: "These older 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 default for new sessions.",
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.",
19
- 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…",
24
- 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.",
32
- discardPrompt: "Discard the unsaved draft before changing the editor?", discard: "Discard changes", cancel: "Cancel",
33
- 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
- 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
- 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.",
43
- 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.",
46
- 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.",
57
- 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
- sessionDirty: "Save or explicitly discard the editor draft before applying a current-session choice.",
59
- 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.",
61
- 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
- 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.",
66
- retryField: "{name} {field}", inheritNumber: "Inherit {value}", retryBounds: "Integer {min}–{max}; inherited value {value}.", unknownDefault: "unavailable",
67
- 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
- primaryMode: "{name} primary route", inheritRoute: "Inherit native/deployment route", configuredRoute: "Configure primary route", primaryName: "{name} primary",
69
- 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
- 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.",
22
+ title: "Deepwork Profiles", description: "Save configurations and choose the default for new sessions.",
23
+ newSessions: "Choose the configuration new sessions use. Existing sessions stay unchanged.",
24
+ editorSelect: "Profile", choose: "Choose a profile", newDraft: "New unsaved profile", new: "New profile",
25
+ profileId: "Profile ID", idHint: "1–64 lowercase letters, digits, hyphens or underscores. It cannot be changed after saving.",
26
+ configuration: "Configuration (JSONC)", configurationHint: "Use version: 1, the ID above, and settings. An optional label sets the name.",
27
+ structuralHint: "Permissions, accounts and plugins are managed in app settings.",
28
+ save: "Save", saving: "Saving…", apply: "Set as default for new sessions", applying: "Setting default…", reset: "Use default configuration", resetting: "Restoring default…",
29
+ refresh: "Refresh", refreshing: "Refreshing…", reload: "Reload saved version", loading: "Loading…", reading: "Reading…",
30
+ empty: "No saved profiles yet. Create one to start.",
31
+ baseline: "Default configuration", appliedProfile: "{id}",
32
+ appliedInvalid: "The default selection is unconfirmed. Fix the error below and refresh. Existing sessions stay unchanged.",
33
+ selectionConflict: "The default changed elsewhere. This Host still uses the selection above. Choose a profile or the default configuration to update it; restarting adopts the stored selection.",
34
+ dirty: "Unsaved changes. Save or discard them before choosing this profile.", savedNotApplied: "Saved; not the default for new sessions.", savedApplied: "Saved; this is the default for new sessions.",
35
+ versionObserved: "Available", versionAbsent: "Not saved", versionUnknown: "Unknown", savedRelationshipUnknown: "Saved; refresh to check whether it is the default.", savedRefreshRequired: "Saved. Reload before editing or choosing again.",
36
+ saved: "Saved {id}.", applied: "New sessions will use {id}. Existing sessions stay unchanged.", resetDone: "New sessions will use the default configuration. Existing sessions stay unchanged.",
37
+ discardPrompt: "Discard the unsaved draft?", discard: "Discard", cancel: "Cancel",
38
+ conflict: "The saved file or selection changed elsewhere. Your draft was kept. Refresh, then reload the profile or review your draft before retrying.",
39
+ validation: "This profile is not valid. Fix the field below; your draft is unchanged.",
40
+ io: "Could not save. Your draft was kept. Check access to the profile storage and retry.",
41
+ unavailable: "The configuration service is unavailable. Your draft was kept. Reconnect and refresh.",
42
+ transport: "The connection was interrupted, so the result is unknown. Your draft was kept. Refresh before retrying.",
43
+ invalidProfile: "Unavailable profile: {id}", details: "Details", retry: "Fix the issue shown, refresh, then retry.",
44
+ globalScope: "Default for new sessions", sessionScope: "This session's configuration", sessionSelect: "This session's configuration",
45
+ globalActionHint: "Setting the default affects new sessions only.",
46
+ headerProfile: "Profile", headerProfileLabel: "This session's configuration", headerCaptured: "Current configuration · unknown profile", 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: "The session is busy.", headerUnavailable: "Profile unavailable.", headerDraft: "Save or discard the draft in Settings.", headerConflict: "The session configuration changed elsewhere. Refresh before retrying.", headerRefused: "The profile change is unconfirmed. Check Settings.",
48
+ headerKeepModelGroup: "Switch profile — keep current model", headerUseModelGroup: "Switch and use profile model", headerModelDefaultHint: "Switching keeps the current model. Switch and use profile model also updates the default model, like the Models tab.",
49
+ headerNoProfileModel: "This profile sets no model.", headerModelUnconfirmed: "The model change is unconfirmed. Check model settings.", headerAppliedWithModel: "Configuration and model applied.",
50
+ headerModelChoiceChanged: "Your newer model choice was kept.",
51
+ headerActionUnavailable: "Unavailable right now. Refresh to check again.",
52
+ headerActivationRefused: "The profile could not be applied. Check its configuration and the model catalog.", headerSelectionRefused: "The profile change could not be confirmed.", headerIssueCode: "Reason: {code}.", headerIssueField: "Field: {field}.", headerRetryHint: "Refresh, fix the issue in Settings or Models, then retry while the session is idle.",
53
+ headerMaintenanceRefused: "Another session operation is in progress. Try again shortly.", headerBusyRefused: "The session is running. Try again when it finishes.", headerCancelledRefused: "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: "The current session cannot be confirmed. Refresh before retrying.",
56
+ sessionBusy: "Cannot switch: {reason}. Wait until the session is idle, then retry.",
57
+ sessionState: "{profile}", sessionBaseline: "Default configuration",
58
+ sessionGlobalCaptured: "Current configuration (profile unknown)",
59
+ sessionAdmittedProfile: "{id}", sessionFutureDefault: "Default for new sessions: {profile}.",
60
+ sessionConflict: "The session configuration changed elsewhere. Your draft was 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. The default for new sessions and existing children stay unchanged.", sessionResetDone: "This session uses the default configuration. The default for new sessions stays unchanged.",
63
+ sessionAppliedWithModel: "Applied this profile and selected its model. The global profile default was not changed.",
64
+ sessionDirty: "Save or discard the draft before choosing a configuration for this session.",
65
+ roleState: "Route {route}; strategy {strategy}; retries {retries}; rate-limit failures {failures}; switches {switches}; total delay {delay} ms.",
66
+ catalogTitle: "Model catalog", catalogHint: "Models that are not listed can be typed in.",
67
+ catalogUnavailable: "The model catalog is unavailable. Provider, model and effort fields still work.", catalogRefresh: "Refresh model catalog", catalogRefreshing: "Refreshing model catalog…", catalogFailure: "Provider catalog unavailable: {name} ({id}).",
68
+ profileLabel: "Profile name", defaultActive: "Default Deepwork mode", activeHint: "A mode chosen in the session wins.", enabled: "Enabled", disabled: "Disabled", inherit: "Use deployment baseline",
69
+ profileDefaults: "Defaults", roleSelect: "Role", rolesUnavailable: "The role list is unavailable. Refresh or use the advanced editor.", roleEnabled: "Enabled in app settings", roleDisabled: "Disabled in app settings",
70
+ strategy: "{name} strategy", inheritStrategy: "Inherit ({value})", startupLock: "Keep the starting route", rateFallback: "Switch after repeated rate limits",
71
+ strategyHint: "Models switch only on a rate-limit failure with no output. Authentication and quota errors stop the attempt. Leave numbers blank to inherit; zero is an explicit value.",
72
+ retryField: "{name} {field}", inheritNumber: "Inherit {value}", retryBounds: "Integer {min}–{max}; inherited {value}.", unknownDefault: "unavailable",
73
+ retryCount: "retry count", initialDelay: "initial delay (ms)", maxDelay: "maximum delay (ms)", totalWait: "total wait budget (ms)", switchThreshold: "rate-limit failures before switching", maxSwitches: "maximum switches",
74
+ primaryMode: "{name} primary route", inheritRoute: "Inherit the deployment route", configuredRoute: "Configure the primary route", primaryName: "{name} primary",
75
+ fallbackMode: "{name} fallback chain", inheritChain: "Inherit the deployment chain", configuredChain: "Explicit ordered chain", emptyChain: "Empty chain: no fallback routes.", fallbackName: "{name} fallback {index}", addFallback: "Add fallback for {name}", removeFallback: "Remove {name}", moveUp: "Move up {name}", moveDown: "Move down {name}",
76
+ routeProvider: "{name} provider", routeModel: "{name} model", routeEffort: "{name} effort", manualProvider: "{name} provider (typed)", manualModel: "{name} model (typed)", manualEffort: "{name} effort (typed)", manual: "Type an identifier", manualValue: "Not listed: {value}", unset: "not set", effortDefault: "Default (no explicit effort)", effortChangeHint: "Changing the provider or model clears this route's reasoning effort.",
77
+ advanced: "Advanced JSONC", rawInvalid: "Fix the invalid draft in Advanced JSONC to use these controls. Your draft was kept.", invalidNumber: "Enter a whole number within the limits.",
72
78
  };
73
79
  export const zh = {
74
- diagnosticJsonc: "请修正所示位置的 JSONC 语法。", diagnosticDuplicate: "请删除此位置的重复字段。", diagnosticUnsafe: "不支持不安全对象键,请删除此字段。", diagnosticUnknown: "请删除不支持的字段。私有及安装配置应放在原生部署设置中。", diagnosticDeprecated: "此已退休字段被拒绝,请改用明确的角色调用等级,不自动迁移。", diagnosticType: "请使用声明的字段类型和有界数值。", diagnosticValue: "请选择明确支持的值。允许的输出语言见结构化语言字段。", diagnosticRoute: "请提供完整提供商与模型路由,或非空精确强度覆盖。", diagnosticRequired: "所选 Deepwork 策略要求此角色,不可禁用。", diagnosticCeiling: "具名配置档不能启用超出已捕获启动或部署上限的能力。",
75
- browseZone: "浏览已保存配置档", editZone: "编辑草稿", savedRevision: "保存的修订:{revision}", savedInventory: "已保存配置档与诊断", futurePin: "未来默认选择修订:{revision}", noEditor: "打开已保存配置档或新建草稿。浏览不会启用配置档。",
76
- 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: "此旧存储只读,不复制或迁移文件;选择与当前会话操作仍使用各自的权限。",
84
- 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: "已为新会话重置为部署基线,已有会话未改变。",
103
- discardPrompt: "切换编辑器之前,是否丢弃未保存的草稿?", discard: "丢弃更改", cancel: "取消",
104
- conflict: "已保存文件或选择已被其他操作修改。草稿和原选择已保留。请刷新配置档,然后重新加载已保存配置档或检查草稿后重试。",
105
- validation: "此配置档无效。请修正下方字段;草稿未改变。",
106
- io: "Host 无法提交此操作。草稿和原选择已保留。请检查配置档存储权限,刷新后重试。",
107
- unavailable: "原生配置档服务不可用。草稿已保留。Host 重新连接或启用 Deepwork 后请刷新。",
108
- transport: "原生连接无法确认此操作。草稿已保留。重试之前请刷新 Host 状态;不要假定保存或应用已完成。",
109
- invalidProfile: "不可用配置档:{id}", details: "Host 诊断", retry: "请解决诊断问题,刷新配置档后重试。",
110
- globalScope: "未来会话的全局默认值", sessionScope: "当前原生会话", sessionSelect: "当前会话配置档",
111
- 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: "配置档已应用,已保留更新的原生模型选择。",
116
- 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: "应用当前会话选择之前,请保存或明确丢弃编辑器草稿。",
123
- sessionAppliedWithModel: "已应用此会话配置档,并明确选择其原生主模型。模型默认值像模型页一样保存;全局配置档默认值未改变。",
124
- 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: "不可用",
128
- retryCount: "重试次数", initialDelay: "初始延迟(毫秒)", maxDelay: "最大单次延迟(毫秒)", totalWait: "累计等待上限(毫秒)", switchThreshold: "切换前的限流失败次数", maxSwitches: "最大切换次数",
129
- 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: "保存或切换角色之前,请修正此有界整数。无效值尚未替换草稿中的策略。",
80
+ sessionChooseWorkspace: "请先选择工作区新建会话,发送前再选择本次会话的配置。",
81
+ sessionSelectionBlock: "请先完成本次会话的配置选择,然后即可继续输入。",
82
+ sessionCommittedRefresh: "已保存,请刷新确认。",
83
+ sessionUnconfirmedRefresh: "结果未知,请刷新后再选择或发送。",
84
+ technicalDetails: "详情",
85
+ diagnosticJsonc: "请修正标记位置的 JSONC 语法。", diagnosticDuplicate: "请删除重复字段。", diagnosticUnsafe: "不支持不安全的对象键,请删除该字段。", diagnosticUnknown: "请删除不支持的字段。", diagnosticDeprecated: "该字段已停用,请改用明确的角色等级。", diagnosticType: "请使用声明的字段类型和范围内的值。", diagnosticValue: "请选择支持的值。", diagnosticRoute: "请填写完整的提供商与模型,或非空的推理强度。", diagnosticRequired: "所选工作流策略要求该角色,不能禁用。", diagnosticCeiling: "配置不能启用部署未允许的能力。",
86
+ browseZone: "已保存配置", editZone: "编辑配置", savedRevision: "版本:{revision}", savedInventory: "警告与错误", futurePin: "默认版本:{revision}", noEditor: "选择或新建配置后进行编辑。",
87
+ warningMarker: "警告 · {code} · {field}", blockingMarker: "错误 · {code} · {field}", blankLabelWarning: "名称为空,将显示 ID。该配置仍可保存和选择。", diagnosticLocation: "第 {line} 行,第 {column} 列。",
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: "这些旧配置为只读。",
95
+ headerCompactProfiles: "配置 · 保留模型", headerCompactRefresh: "刷新", headerNoSession: "选择会话后可更改。",
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: "新会话将使用默认配置,已有会话不变。",
114
+ discardPrompt: "是否丢弃未保存的草稿?", discard: "丢弃", cancel: "取消",
115
+ conflict: "已保存文件或选择在别处改变,草稿已保留。请刷新后重新加载或检查草稿再重试。",
116
+ validation: "此配置无效,请修正下方字段;草稿未改变。",
117
+ io: "无法保存,草稿已保留。请检查配置存储权限后重试。",
118
+ unavailable: "配置服务暂不可用,草稿已保留。请重新连接后刷新。",
119
+ transport: "连接中断,结果未知,草稿已保留。请刷新后再试。",
120
+ invalidProfile: "配置不可用:{id}", details: "详情", retry: "请解决所示问题,刷新后重试。",
121
+ globalScope: "新会话默认配置", sessionScope: "本次会话配置", sessionSelect: "本次会话配置",
122
+ globalActionHint: "设为默认只影响新会话。",
123
+ headerProfile: "配置", headerProfileLabel: "本次会话配置", headerCaptured: "当前配置 · 来源未知", headerSavedUnavailable: "已保存的配置不可用", headerCurrentProfile: "当前配置:{profile}", headerRefresh: "刷新配置和会话状态", headerUseModelAction: "使用配置中的模型:{profile}",
124
+ headerLoading: "正在加载配置…", headerApplying: "正在应用配置…", headerApplied: "配置已应用。", headerBusy: "会话忙碌。", headerUnavailable: "配置不可用。", headerDraft: "请在设置中保存或丢弃草稿。", headerConflict: "会话配置已在别处改变,请刷新后重试。", headerRefused: "配置更改未确认,请检查设置。",
125
+ headerKeepModelGroup: "切换配置,保留当前模型", headerUseModelGroup: "切换配置和模型", headerModelDefaultHint: "普通切换保留当前模型;「切换配置和模型」也会像模型页一样更新默认模型。",
126
+ headerNoProfileModel: "此配置未设置模型。", headerModelUnconfirmed: "模型更改未确认,请检查模型设置。", headerAppliedWithModel: "配置和模型已应用。",
127
+ headerModelChoiceChanged: "已保留你最新选择的模型。",
128
+ headerActionUnavailable: "此操作暂不可用,请刷新确认。",
129
+ headerActivationRefused: "配置无法应用,请检查其配置和模型目录。", headerSelectionRefused: "无法确认配置更改。", headerIssueCode: "原因:{code}。", headerIssueField: "字段:{field}。", headerRetryHint: "请刷新,在设置或模型页解决问题,然后在会话空闲时重试。",
130
+ headerMaintenanceRefused: "会话正在处理其他操作,请稍后重试。", headerBusyRefused: "会话正在运行,请结束后重试。", headerCancelledRefused: "已取消,请刷新确认当前配置。", headerUnavailableRefused: "无法读取会话配置,请重新连接后刷新。", headerWaitRetryHint: "请稍后刷新并重试。",
131
+ noSession: "选择会话后可更改配置。",
132
+ sessionUnavailable: "无法确认当前会话,请刷新后重试。",
133
+ sessionBusy: "暂不可切换:{reason}。请等待会话空闲后重试。",
134
+ sessionState: "{profile}", sessionBaseline: "默认配置",
135
+ sessionGlobalCaptured: "当前配置(来源未知)",
136
+ sessionAdmittedProfile: "{id}", sessionFutureDefault: "新会话默认配置:{profile}。",
137
+ sessionConflict: "会话配置已在别处改变,草稿已保留。请刷新后重试。",
138
+ sessionApply: "使用此配置", sessionApplying: "正在应用…", sessionReset: "使用默认配置", sessionResetting: "正在恢复…", sessionRefresh: "刷新会话状态",
139
+ sessionApplied: "已仅应用到本次会话,新会话默认配置和已有子会话不变。", sessionResetDone: "本次会话已使用默认配置,新会话默认配置不变。",
140
+ sessionAppliedWithModel: "已应用此配置并选择了它的模型,全局配置默认值未改变。",
141
+ sessionDirty: "选择本次会话配置前,请保存或丢弃草稿。",
142
+ roleState: "路由 {route};策略 {strategy};重试 {retries};限流失败 {failures};切换 {switches};累计延迟 {delay} 毫秒。",
143
+ catalogTitle: "模型目录", catalogHint: "未列出的模型可以手动输入。",
144
+ catalogUnavailable: "模型目录不可用,提供商、模型和强度仍可填写。", catalogRefresh: "刷新模型目录", catalogRefreshing: "正在刷新…", catalogFailure: "提供商目录不可用:{name}({id})。",
145
+ profileLabel: "配置名称", defaultActive: "默认 Deepwork 模式", activeHint: "会话中选择的模式优先。", enabled: "启用", disabled: "禁用", inherit: "使用部署基线",
146
+ profileDefaults: "默认值", roleSelect: "角色", rolesUnavailable: "角色列表不可用,请刷新或使用高级编辑器。", roleEnabled: "应用设置中已启用", roleDisabled: "应用设置中已禁用",
147
+ strategy: "{name} 策略", inheritStrategy: "继承({value})", startupLock: "保留起始路由", rateFallback: "多次限流后切换",
148
+ strategyHint: "仅在限流且没有输出时切换模型;认证或配额错误会停止尝试。留空表示继承,零是明确值。",
149
+ retryField: "{name} {field}", inheritNumber: "继承 {value}", retryBounds: "整数 {min}–{max};继承值 {value}。", unknownDefault: "不可用",
150
+ retryCount: "重试次数", initialDelay: "初始延迟(毫秒)", maxDelay: "最大单次延迟(毫秒)", totalWait: "累计等待上限(毫秒)", switchThreshold: "切换前的限流次数", maxSwitches: "最大切换次数",
151
+ primaryMode: "{name} 主路由", inheritRoute: "继承部署路由", configuredRoute: "配置主路由", primaryName: "{name} 主路由",
152
+ fallbackMode: "{name} 备用链", inheritChain: "继承部署备用链", configuredChain: "明确的有序备用链", emptyChain: "空备用链:没有备用路由。", fallbackName: "{name} 备用 {index}", addFallback: "为 {name} 添加备用", removeFallback: "移除 {name}", moveUp: "上移 {name}", moveDown: "下移 {name}",
153
+ routeProvider: "{name} 提供商", routeModel: "{name} 模型", routeEffort: "{name} 强度", manualProvider: "{name} 提供商(手动)", manualModel: "{name} 模型(手动)", manualEffort: "{name} 强度(手动)", manual: "输入标识", manualValue: "未列出:{value}", unset: "未设置", effortDefault: "默认(不指定强度)", effortChangeHint: "更改提供商或模型会清除该路由的推理强度。",
154
+ advanced: "高级 JSONC", rawInvalid: "请先在高级 JSONC 中修正草稿,再使用这些控件。草稿已保留。", invalidNumber: "请输入范围内的整数。",
131
155
  };
132
156
  export const RETRY_FIELD_LABEL_KEYS = {
133
157
  maxRetries: "retryCount", initialDelayMs: "initialDelay", maxDelayMs: "maxDelay",