@dsmm/dsmm 0.3.11 → 0.3.13
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.
- package/README.md +2 -2
- package/docs/agent-presets.md +4 -4
- package/docs/compatibility.md +16 -4
- package/docs/deferred-native-approval-risk.md +1 -1
- package/docs/design.md +15 -5
- package/docs/lsp.md +1 -1
- package/docs/maintenance.md +9 -3
- package/docs/model-routing.md +6 -6
- package/docs/native-permissions.md +1 -1
- package/docs/profiles.md +46 -5
- package/docs/roadmap.md +3 -3
- package/docs/runtime-recovery.md +5 -5
- package/docs/safety-guards.md +1 -1
- package/docs/settings-status.md +3 -3
- package/docs/testing.md +85 -0
- package/lib/child-capture.d.ts +9 -0
- package/lib/child-capture.js +24 -1
- package/lib/client/ProfileModelsDialog.d.ts +23 -0
- package/lib/client/ProfileModelsDialog.js +318 -0
- package/lib/client/ProfilesSection.js +228 -34
- package/lib/client/RoleToolView-data.d.ts +11 -4
- package/lib/client/RoleToolView-data.js +48 -1
- package/lib/client/RoleToolView-locales.d.ts +12 -4
- package/lib/client/RoleToolView-locales.js +12 -6
- package/lib/client/RoleToolView.js +49 -9
- package/lib/client/SessionProfiles.d.ts +5 -1
- package/lib/client/SessionProfiles.js +13 -9
- package/lib/client/StructuredEditor.d.ts +60 -0
- package/lib/client/StructuredEditor.js +73 -49
- package/lib/client/controller.d.ts +10 -0
- package/lib/client/controller.js +44 -14
- package/lib/client/diagnostics.d.ts +1 -0
- package/lib/client/diagnostics.js +9 -0
- package/lib/client/locales.d.ts +57 -0
- package/lib/client/locales.js +89 -17
- package/lib/client/session-labels.js +4 -1
- package/lib/client/structured.d.ts +4 -0
- package/lib/client/structured.js +16 -1
- package/lib/client/styles.d.ts +1 -1
- package/lib/client/styles.js +107 -30
- package/lib/client.js +2424 -1049
- package/lib/host-llm.js +3 -3
- package/lib/index.js +1 -1
- package/lib/model-routing.d.ts +3 -2
- package/lib/model-routing.js +28 -7
- package/lib/native-admission.d.ts +2 -0
- package/lib/native-admission.js +106 -34
- package/lib/profile-runtime.d.ts +11 -0
- package/lib/profile-runtime.js +48 -13
- package/lib/profile-store.d.ts +4 -1
- package/lib/profile-store.js +37 -14
- package/lib/role-control-rpc.js +18 -5
- package/lib/role-llm-runtime.js +10 -1
- package/lib/role-policy.d.ts +4 -3
- package/lib/role-policy.js +6 -6
- package/lib/role-providers.js +1 -0
- package/lib/runtime-recovery.d.ts +2 -2
- package/lib/runtime-recovery.js +7 -4
- package/package.json +7 -2
package/lib/client/controller.js
CHANGED
|
@@ -2,7 +2,7 @@ import { isProfileId } from "../profile-remote.js";
|
|
|
2
2
|
import { safeIssue } from "./diagnostics.js";
|
|
3
3
|
import { isConfigRevision } from "../config-revision.js";
|
|
4
4
|
import { writableSelectionVersion } from "./configuration-display.js";
|
|
5
|
-
import { editStructuredPath, moveFallback } from "./structured.js";
|
|
5
|
+
import { editStructuredPath, moveFallback, structuredDocument } from "./structured.js";
|
|
6
6
|
function modelSelectionWatermark(window) {
|
|
7
7
|
let watermark = -1;
|
|
8
8
|
for (const entry of window.entries)
|
|
@@ -73,6 +73,7 @@ export class ProfilesController {
|
|
|
73
73
|
refresh: () => this.refresh(), open: (id) => this.open(id), create: () => this.open(NEW_EDITOR), reload: () => this.reload(),
|
|
74
74
|
editId: (id) => this.editId(id), editContent: (content) => this.editContent(content),
|
|
75
75
|
save: () => this.save(), apply: () => this.apply(), reset: () => this.reset(),
|
|
76
|
+
discard: () => this.discard(),
|
|
76
77
|
discardAndOpen: () => this.discardAndOpen(), cancelDiscard: () => this.publish({ pendingEditor: null }),
|
|
77
78
|
editPath: (path, value) => this.editPath(path, value), moveFallback: (role, from, to) => this.editFallbackOrder(role, from, to),
|
|
78
79
|
editRoute: (path, provider, model) => this.editRoute(path, provider, model),
|
|
@@ -90,11 +91,23 @@ export class ProfilesController {
|
|
|
90
91
|
if (invalidFields.join("\n") !== this.current.invalidFields.join("\n"))
|
|
91
92
|
this.publish({ invalidFields, ...(invalid ? { dirty: true } : {}) });
|
|
92
93
|
},
|
|
94
|
+
setNumberDraft: (key, entry) => {
|
|
95
|
+
if (this.disposed)
|
|
96
|
+
return;
|
|
97
|
+
if (entry === null) {
|
|
98
|
+
this.numberDrafts.delete(key);
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
this.numberDrafts.set(key, entry);
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
getNumberDraft: (key) => this.numberDrafts.get(key),
|
|
93
105
|
};
|
|
106
|
+
numberDrafts = new Map();
|
|
94
107
|
constructor(remote) {
|
|
95
108
|
this.remote = remote;
|
|
96
109
|
}
|
|
97
|
-
dispose() { this.releaseComposerBlock(); this.stopConnection?.(); this.disposed = true; this.generation += 1; this.sessionGeneration += 1; this.catalogGeneration += 1; this.modelSelectorGeneration += 1; this.modelSelectionGeneration += 1; this.stopModelSelection?.(); this.stopModelEvents?.(); this.stopModelInteraction?.(); this.stopModelSelection = null; this.stopModelEvents = null; this.stopModelInteraction = null; this.modelSelectionSource = null; this.modelEvents = null; this.modelInteraction = null; this.catalogRemote = null; this.modelSelector = null; this.listeners.clear(); }
|
|
110
|
+
dispose() { this.releaseComposerBlock(); this.numberDrafts.clear(); this.stopConnection?.(); this.disposed = true; this.generation += 1; this.sessionGeneration += 1; this.catalogGeneration += 1; this.modelSelectorGeneration += 1; this.modelSelectionGeneration += 1; this.stopModelSelection?.(); this.stopModelEvents?.(); this.stopModelInteraction?.(); this.stopModelSelection = null; this.stopModelEvents = null; this.stopModelInteraction = null; this.modelSelectionSource = null; this.modelEvents = null; this.modelInteraction = null; this.catalogRemote = null; this.modelSelector = null; this.listeners.clear(); }
|
|
98
111
|
bindConnection(source) {
|
|
99
112
|
if (this.disposed)
|
|
100
113
|
return;
|
|
@@ -438,6 +451,7 @@ export class ProfilesController {
|
|
|
438
451
|
listener();
|
|
439
452
|
}
|
|
440
453
|
accept(document) {
|
|
454
|
+
this.numberDrafts.clear();
|
|
441
455
|
this.accepted = { ...document };
|
|
442
456
|
this.publish({ editor: { ...document }, dirty: false, pendingEditor: null, invalidFields: [], editorEpoch: this.current.editorEpoch + 1 });
|
|
443
457
|
}
|
|
@@ -490,7 +504,7 @@ export class ProfilesController {
|
|
|
490
504
|
return;
|
|
491
505
|
if (id !== NEW_EDITOR && this.current.editor?.id === id)
|
|
492
506
|
return;
|
|
493
|
-
if (this.current.dirty) {
|
|
507
|
+
if (this.current.dirty || this.current.invalidFields.length > 0) {
|
|
494
508
|
this.publish({ pendingEditor: id });
|
|
495
509
|
return;
|
|
496
510
|
}
|
|
@@ -500,14 +514,23 @@ export class ProfilesController {
|
|
|
500
514
|
const editor = this.current.editor;
|
|
501
515
|
if (editor === null || editor.revision === null || this.current.busy !== null || this.current.pendingEditor !== null)
|
|
502
516
|
return;
|
|
503
|
-
if (this.current.dirty) {
|
|
517
|
+
if (this.current.dirty || this.current.invalidFields.length > 0) {
|
|
504
518
|
this.publish({ pendingEditor: editor.id });
|
|
505
519
|
return;
|
|
506
520
|
}
|
|
507
521
|
await this.loadEditor(editor.id);
|
|
508
522
|
}
|
|
523
|
+
discard() {
|
|
524
|
+
const editor = this.current.editor;
|
|
525
|
+
if (this.disposed || editor === null || this.current.busy !== null || this.current.pendingEditor !== null)
|
|
526
|
+
return;
|
|
527
|
+
if (!this.current.dirty && this.current.invalidFields.length === 0)
|
|
528
|
+
return;
|
|
529
|
+
this.publish({ pendingEditor: editor.revision === null ? NEW_EDITOR : editor.id });
|
|
530
|
+
}
|
|
509
531
|
async loadEditor(id) {
|
|
510
532
|
if (id === NEW_EDITOR) {
|
|
533
|
+
this.numberDrafts.clear();
|
|
511
534
|
this.accepted = null;
|
|
512
535
|
this.publish({ editor: { id: "new-profile", content: NEW_PROFILE_CONTENT, revision: null }, dirty: true, issue: null, notice: null, pendingEditor: null, invalidFields: [], editorEpoch: this.current.editorEpoch + 1 });
|
|
513
536
|
return;
|
|
@@ -523,14 +546,7 @@ export class ProfilesController {
|
|
|
523
546
|
if (wanted === null || this.current.busy !== null)
|
|
524
547
|
return;
|
|
525
548
|
this.publish({ pendingEditor: null });
|
|
526
|
-
// Only explicit confirmation clears a draft; a failed read restores it.
|
|
527
|
-
const previous = this.current.editor;
|
|
528
|
-
const accepted = this.accepted;
|
|
529
549
|
await this.loadEditor(wanted);
|
|
530
|
-
if (this.current.issue !== null && previous !== null) {
|
|
531
|
-
this.accepted = accepted;
|
|
532
|
-
this.publish({ editor: previous, dirty: true });
|
|
533
|
-
}
|
|
534
550
|
}
|
|
535
551
|
editId(id) {
|
|
536
552
|
const editor = this.current.editor;
|
|
@@ -547,7 +563,21 @@ export class ProfilesController {
|
|
|
547
563
|
const editor = this.current.editor;
|
|
548
564
|
if (editor === null || editor.refreshRequired || this.current.busy !== null || this.current.pendingEditor !== null)
|
|
549
565
|
return;
|
|
550
|
-
|
|
566
|
+
const document = structuredDocument(content);
|
|
567
|
+
let invalidFields = this.current.invalidFields;
|
|
568
|
+
if (document !== null) {
|
|
569
|
+
for (const [key, draft] of this.numberDrafts) {
|
|
570
|
+
let value = document;
|
|
571
|
+
for (const segment of key.split(".")) {
|
|
572
|
+
value = value !== null && typeof value === "object" && Object.hasOwn(value, segment) ? value[segment] : undefined;
|
|
573
|
+
}
|
|
574
|
+
if (value !== draft.sourceValue) {
|
|
575
|
+
this.numberDrafts.delete(key);
|
|
576
|
+
invalidFields = invalidFields.filter(field => field !== key);
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
this.publish({ editor: { ...editor, content }, invalidFields, dirty: this.accepted === null || this.accepted.content !== content || this.accepted.id !== editor.id, issue: null, notice: null });
|
|
551
581
|
}
|
|
552
582
|
editPath(path, value) {
|
|
553
583
|
const editor = this.current.editor;
|
|
@@ -604,8 +634,8 @@ export class ProfilesController {
|
|
|
604
634
|
});
|
|
605
635
|
}
|
|
606
636
|
async apply() {
|
|
607
|
-
const { editor, snapshot, dirty } = this.current;
|
|
608
|
-
if (editor?.refreshRequired || !isConfigRevision(editor?.revision) || !canReconcileSelection(snapshot) || dirty)
|
|
637
|
+
const { editor, snapshot, dirty, invalidFields } = this.current;
|
|
638
|
+
if (editor?.refreshRequired || !isConfigRevision(editor?.revision) || !canReconcileSelection(snapshot) || dirty || invalidFields.length > 0)
|
|
609
639
|
return;
|
|
610
640
|
await this.perform("apply", async (live) => {
|
|
611
641
|
const accepted = await this.unwrap(this.remote.select({ id: editor.id, expectedRevision: editor.revision, expectedSelectionRevision: snapshot.selectionRevision }));
|
|
@@ -5,6 +5,7 @@ import type { ProfilesIssue } from "./controller.js";
|
|
|
5
5
|
export declare function safeIssue(info: unknown): ProfilesIssue;
|
|
6
6
|
export declare function profileWarnings(warnings: ProfileDiagnostic[] | undefined): ProfileDiagnostic[];
|
|
7
7
|
export declare function draftWarnings(content: string): ProfileDiagnostic[];
|
|
8
|
+
export declare function issueKey(issue: ProfilesIssue): "unavailable" | "transport" | "conflict" | "validation" | "io" | "selectionConflict" | "appliedInvalid";
|
|
8
9
|
export declare function ProfileWarnings({ warnings, t }: PropsLocale<"settings.dsmm-profiles"> & {
|
|
9
10
|
warnings?: ProfileDiagnostic[];
|
|
10
11
|
}): import("react").JSX.Element;
|
|
@@ -37,6 +37,15 @@ export function draftWarnings(content) {
|
|
|
37
37
|
return [];
|
|
38
38
|
return [diagnostic("blank-label", "label", fieldLocation(content, tree, "label"))];
|
|
39
39
|
}
|
|
40
|
+
export function issueKey(issue) {
|
|
41
|
+
if (issue.source === "selection")
|
|
42
|
+
return issue.code === "conflict" ? "selectionConflict" : "appliedInvalid";
|
|
43
|
+
if (issue.kind === "assembly")
|
|
44
|
+
return "unavailable";
|
|
45
|
+
if (issue.kind === "transport")
|
|
46
|
+
return "transport";
|
|
47
|
+
return issue.code === "conflict" || issue.code === "validation" ? issue.code : "io";
|
|
48
|
+
}
|
|
40
49
|
export function ProfileWarnings({ warnings, t }) {
|
|
41
50
|
return _jsx(_Fragment, { children: profileWarnings(warnings).map(warning => _jsxs("div", { className: "dsmm-warning", "data-dsmm-warning": true, children: [_jsx("p", { children: t("warningMarker", { code: warning.code, field: warning.field }) }), _jsxs("details", { children: [_jsx("summary", { children: t("details") }), _jsx("p", { children: t("blankLabelWarning") })] })] }, `${warning.code}:${warning.field}`)) });
|
|
42
51
|
}
|
package/lib/client/locales.d.ts
CHANGED
|
@@ -77,6 +77,39 @@ export declare const en: {
|
|
|
77
77
|
headerUseCurrentModel: string;
|
|
78
78
|
title: string;
|
|
79
79
|
description: string;
|
|
80
|
+
effectiveSummary: string;
|
|
81
|
+
futureDefaultSummary: string;
|
|
82
|
+
currentSessionSummary: string;
|
|
83
|
+
locateSessionScope: string;
|
|
84
|
+
moreActions: string;
|
|
85
|
+
futureResetHint: string;
|
|
86
|
+
basicSettings: string;
|
|
87
|
+
profileIdHint: string;
|
|
88
|
+
orchestratorModel: string;
|
|
89
|
+
orchestratorModelDesc: string;
|
|
90
|
+
orchestratorUnavailable: string;
|
|
91
|
+
orchestratorInBasicNotice: string;
|
|
92
|
+
orchestratorJumpToBasic: string;
|
|
93
|
+
useSessionProfileModelDesc: string;
|
|
94
|
+
rawInvalidFormDisabled: string;
|
|
95
|
+
viewConfiguration: string;
|
|
96
|
+
advancedSettings: string;
|
|
97
|
+
gitWriteGuard: string;
|
|
98
|
+
gitWriteScope: string;
|
|
99
|
+
gitWriteScopeDisabledHint: string;
|
|
100
|
+
gitWriteGuardHint: string;
|
|
101
|
+
gitWriteAsk: string;
|
|
102
|
+
gitWriteDeny: string;
|
|
103
|
+
gitWriteOff: string;
|
|
104
|
+
gitWriteAllWrites: string;
|
|
105
|
+
gitWriteHighRisk: string;
|
|
106
|
+
topologyPerRole: string;
|
|
107
|
+
topologyParameterized: string;
|
|
108
|
+
roleModels: string;
|
|
109
|
+
callingLevels: string;
|
|
110
|
+
fallbackRoutes: string;
|
|
111
|
+
retryPolicy: string;
|
|
112
|
+
roleRoutingNotice: string;
|
|
80
113
|
newSessions: string;
|
|
81
114
|
editorSelect: string;
|
|
82
115
|
choose: string;
|
|
@@ -237,9 +270,33 @@ export declare const en: {
|
|
|
237
270
|
unset: string;
|
|
238
271
|
effortDefault: string;
|
|
239
272
|
effortChangeHint: string;
|
|
273
|
+
naturalProvider: string;
|
|
274
|
+
naturalModel: string;
|
|
275
|
+
naturalEffort: string;
|
|
240
276
|
advanced: string;
|
|
241
277
|
rawInvalid: string;
|
|
242
278
|
invalidNumber: string;
|
|
279
|
+
configureAllAgentModels: string;
|
|
280
|
+
modelsDialogTitle: string;
|
|
281
|
+
modelsDialogDesc: string;
|
|
282
|
+
searchRolesPlaceholder: string;
|
|
283
|
+
filterExplicitOverrides: string;
|
|
284
|
+
orchestratorNoLevelsHint: string;
|
|
285
|
+
noMatchingRoles: string;
|
|
286
|
+
fallbackCountSummary: string;
|
|
287
|
+
fallbackExplicitEmptySummary: string;
|
|
288
|
+
levelsSummary: string;
|
|
289
|
+
levelsInherited: string;
|
|
290
|
+
fallbackInherited: string;
|
|
291
|
+
roleSettingsSummary: string;
|
|
292
|
+
roleSettingsInherited: string;
|
|
293
|
+
roleSettingsOverridden: string;
|
|
294
|
+
saveLockedReason: string;
|
|
295
|
+
jumpToField: string;
|
|
296
|
+
jumpToJsonc: string;
|
|
297
|
+
jumpToRole: string;
|
|
298
|
+
roleNonModelSettings: string;
|
|
299
|
+
inheritRouteDesc: string;
|
|
243
300
|
};
|
|
244
301
|
export type ProfilesLocaleKey = keyof typeof en;
|
|
245
302
|
export declare const zh: Record<ProfilesLocaleKey, string>;
|
package/lib/client/locales.js
CHANGED
|
@@ -9,7 +9,7 @@ export const en = {
|
|
|
9
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
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
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: "
|
|
12
|
+
omitLabel: "Use the ID as the name", businessLocale: "Output language", inheritLocale: "Inherit plugin configuration", unsupportedLocale: "Choose a supported language", localeHint: "Inherits plugin configuration and Host/user guidance when unset. An explicit request in the conversation still decides the reply language.",
|
|
13
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
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
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}.",
|
|
@@ -19,13 +19,27 @@ export const en = {
|
|
|
19
19
|
sessionNewRequired: "Start a new session to change its profile. You can still save profiles and set the default for new sessions.",
|
|
20
20
|
sessionModuleOff: "Deepwork is unavailable in this session.",
|
|
21
21
|
headerModeEnable: "Enable Deepwork", headerModeDisable: "Disable Deepwork", headerModePreset: "Deepwork · DW preset", headerModeUnavailable: "Deepwork unavailable", headerModeOn: "Deepwork enabled.", headerModeOff: "Deepwork disabled.", headerUseCurrentModel: "Use profile model",
|
|
22
|
-
title: "
|
|
22
|
+
title: "Profiles", description: "Save Deepwork configurations; saving and activation are separate operations.",
|
|
23
|
+
effectiveSummary: "Effective summary", futureDefaultSummary: "Future default:", currentSessionSummary: "This session:",
|
|
24
|
+
locateSessionScope: "Select session profile", moreActions: "More actions", futureResetHint: "Restore new sessions to inherit the deployment baseline.",
|
|
25
|
+
basicSettings: "Basic settings", profileIdHint: "Editable when creating; read-only after saving.",
|
|
26
|
+
orchestratorModel: "Orchestrator model", orchestratorModelDesc: "Configure the primary model for the orchestrator role; saving does not switch the current session model.",
|
|
27
|
+
orchestratorUnavailable: "The current role inventory does not include the orchestrator. Refresh to check; its stored configuration is kept.",
|
|
28
|
+
orchestratorInBasicNotice: "The orchestrator model is configured above in Basic settings.", orchestratorJumpToBasic: "Edit in Basic settings",
|
|
29
|
+
useSessionProfileModelDesc: "Uses the primary model of the profile currently admitted in this session; has the same effect as native model selection and may update the native default model.",
|
|
30
|
+
rawInvalidFormDisabled: "The configuration has syntax errors; structured editing is unavailable.", viewConfiguration: "View JSONC source",
|
|
31
|
+
advancedSettings: "Advanced settings", gitWriteGuard: "Git write protection", gitWriteScope: "Inspection scope",
|
|
32
|
+
gitWriteScopeDisabledHint: "Protection is off; inspection scope is inactive",
|
|
33
|
+
gitWriteGuardHint: "Inspection scope adjusts automatic Git protection only; explicit ask/deny still applies. Turning off does not authorize operations.",
|
|
34
|
+
gitWriteAsk: "Ask", gitWriteDeny: "Deny", gitWriteOff: "Off", gitWriteAllWrites: "All Git write operations", gitWriteHighRisk: "High-risk Git operations only",
|
|
35
|
+
topologyPerRole: "One tool per role", topologyParameterized: "Select role in tool arguments",
|
|
36
|
+
roleModels: "Role models and availability", callingLevels: "Calling levels", fallbackRoutes: "Fallback routes", retryPolicy: "Retry policy", roleRoutingNotice: "Role routing configuration",
|
|
23
37
|
newSessions: "Choose the configuration new sessions use. Existing sessions stay unchanged.",
|
|
24
38
|
editorSelect: "Profile", choose: "Choose a profile", newDraft: "New unsaved profile", new: "New profile",
|
|
25
39
|
profileId: "Profile ID", idHint: "1–64 lowercase letters, digits, hyphens or underscores. It cannot be changed after saving.",
|
|
26
40
|
configuration: "Configuration (JSONC)", configurationHint: "Use version: 1, the ID above, and settings. An optional label sets the name.",
|
|
27
41
|
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: "
|
|
42
|
+
save: "Save", saving: "Saving…", apply: "Set as default for new sessions", applying: "Setting default…", reset: "New sessions: use plugin defaults", resetting: "Restoring default…",
|
|
29
43
|
refresh: "Refresh", refreshing: "Refreshing…", reload: "Reload saved version", loading: "Loading…", reading: "Reading…",
|
|
30
44
|
empty: "No saved profiles yet. Create one to start.",
|
|
31
45
|
baseline: "Default configuration", appliedProfile: "{id}",
|
|
@@ -34,7 +48,7 @@ export const en = {
|
|
|
34
48
|
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
49
|
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
50
|
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",
|
|
51
|
+
discardPrompt: "Discard the unsaved draft?", discard: "Discard changes", cancel: "Cancel",
|
|
38
52
|
conflict: "The saved file or selection changed elsewhere. Your draft was kept. Refresh, then reload the profile or review your draft before retrying.",
|
|
39
53
|
validation: "This profile is not valid. Fix the field below; your draft is unchanged.",
|
|
40
54
|
io: "Could not save. Your draft was kept. Check access to the profile storage and retry.",
|
|
@@ -58,7 +72,7 @@ export const en = {
|
|
|
58
72
|
sessionGlobalCaptured: "Current configuration (profile unknown)",
|
|
59
73
|
sessionAdmittedProfile: "{id}", sessionFutureDefault: "Default for new sessions: {profile}.",
|
|
60
74
|
sessionConflict: "The session configuration changed elsewhere. Your draft was kept. Refresh before retrying.",
|
|
61
|
-
sessionApply: "Use this profile", sessionApplying: "Applying…", sessionReset: "
|
|
75
|
+
sessionApply: "Use this profile", sessionApplying: "Applying…", sessionReset: "This session: use plugin defaults", sessionResetting: "Restoring default…", sessionRefresh: "Refresh session state",
|
|
62
76
|
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
77
|
sessionAppliedWithModel: "Applied this profile and selected its model. The global profile default was not changed.",
|
|
64
78
|
sessionDirty: "Save or discard the draft before choosing a configuration for this session.",
|
|
@@ -74,7 +88,29 @@ export const en = {
|
|
|
74
88
|
primaryMode: "{name} primary route", inheritRoute: "Inherit the deployment route", configuredRoute: "Configure the primary route", primaryName: "{name} primary",
|
|
75
89
|
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
90
|
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.",
|
|
91
|
+
naturalProvider: "Provider", naturalModel: "Model", naturalEffort: "Reasoning Effort",
|
|
77
92
|
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.",
|
|
93
|
+
configureAllAgentModels: "Configure all Agent models…",
|
|
94
|
+
modelsDialogTitle: "Agent models and routing",
|
|
95
|
+
modelsDialogDesc: "Configure primary routes, calling levels, fallback models, and execution policies for each Agent role.",
|
|
96
|
+
searchRolesPlaceholder: "Search by role name or ID…",
|
|
97
|
+
filterExplicitOverrides: "Explicit model overrides only",
|
|
98
|
+
orchestratorNoLevelsHint: "Orchestrator uses primary route only; calling levels are not applicable.",
|
|
99
|
+
noMatchingRoles: "No matching roles found.",
|
|
100
|
+
fallbackCountSummary: "{count} fallback route(s)",
|
|
101
|
+
fallbackExplicitEmptySummary: "Explicit empty ([])",
|
|
102
|
+
levelsSummary: "Levels: {levels}",
|
|
103
|
+
levelsInherited: "Inherited",
|
|
104
|
+
fallbackInherited: "Inherited",
|
|
105
|
+
roleSettingsSummary: "Status: {status} · Retry: {retry}",
|
|
106
|
+
roleSettingsInherited: "Inherit",
|
|
107
|
+
roleSettingsOverridden: "Explicit override",
|
|
108
|
+
saveLockedReason: "Save locked: {count} invalid field(s)",
|
|
109
|
+
jumpToField: "Locate error field",
|
|
110
|
+
jumpToJsonc: "Locate in JSONC",
|
|
111
|
+
jumpToRole: "Locate in Agent models dialog",
|
|
112
|
+
roleNonModelSettings: "Non-model settings",
|
|
113
|
+
inheritRouteDesc: "Inherit defaults",
|
|
78
114
|
};
|
|
79
115
|
export const zh = {
|
|
80
116
|
sessionChooseWorkspace: "请先选择工作区新建会话,发送前再选择本次会话的配置。",
|
|
@@ -86,7 +122,7 @@ export const zh = {
|
|
|
86
122
|
browseZone: "已保存配置", editZone: "编辑配置", savedRevision: "版本:{revision}", savedInventory: "警告与错误", futurePin: "默认版本:{revision}", noEditor: "选择或新建配置后进行编辑。",
|
|
87
123
|
warningMarker: "警告 · {code} · {field}", blockingMarker: "错误 · {code} · {field}", blankLabelWarning: "名称为空,将显示 ID。该配置仍可保存和选择。", diagnosticLocation: "第 {line} 行,第 {column} 列。",
|
|
88
124
|
savedWarnings: "已保存版本的警告", draftWarnings: "此草稿的警告", futureWarnings: "新会话的警告", admissionWarnings: "本次会话的警告", warningProfile: "有警告",
|
|
89
|
-
omitLabel: "使用 ID 作为名称", businessLocale: "输出语言", inheritLocale: "
|
|
125
|
+
omitLabel: "使用 ID 作为名称", businessLocale: "输出语言", inheritLocale: "继承插件配置", unsupportedLocale: "请选择支持的语言", localeHint: "未设置时继承插件配置与 Host/用户指导;对话中的明确要求仍然决定回复语言。",
|
|
90
126
|
toolTopology: "子代理工具", topologyHint: "per-role:每个角色一个工具,另有一个类别工具。parameterized:在工具参数中选择角色或类别。",
|
|
91
127
|
levelName: "等级:{level}", levelMode: "{level} 覆盖", levelUnconfigured: "使用部署等级", levelEffortOnly: "仅推理强度", levelFullRoute: "提供商、模型与强度", normalLevel: "normal · 默认路由", orchestratorLevels: "orchestrator 没有调用等级。", levelsHint: "只有已配置的等级可用。仅强度会保留配置中的模型;完整路由会同时替换模型和强度。",
|
|
92
128
|
namedRole: "启用 {name}", namedRoleHint: "必需角色保持启用;部署已禁用的角色无法在此启用。", availabilityUnknown: "角色可用性未知,请刷新后再改。", roleRequired: "必需 · {reason}", roleOptional: "可选", roleCeiling: "启动:{startup};部署:{deployment};当前:{admitted}。", roleProvenance: "来源:{source};捕获:{capture}。", roleUnavailableReason: "原因:{reason}。",
|
|
@@ -95,14 +131,28 @@ export const zh = {
|
|
|
95
131
|
headerCompactProfiles: "配置 · 保留模型", headerCompactRefresh: "刷新", headerNoSession: "选择会话后可更改。",
|
|
96
132
|
sessionNewRequired: "请新建会话后更改其配置。仍可保存配置或设置新会话的默认配置。",
|
|
97
133
|
sessionModuleOff: "此会话无法使用 Deepwork。",
|
|
98
|
-
headerModeEnable: "启用 Deepwork", headerModeDisable: "关闭 Deepwork", headerModePreset: "Deepwork · DW 预设", headerModeUnavailable: "Deepwork 不可用", headerModeOn: "Deepwork 已启用。", headerModeOff: "Deepwork 已关闭。", headerUseCurrentModel: "
|
|
99
|
-
title: "
|
|
134
|
+
headerModeEnable: "启用 Deepwork", headerModeDisable: "关闭 Deepwork", headerModePreset: "Deepwork · DW 预设", headerModeUnavailable: "Deepwork 不可用", headerModeOn: "Deepwork 已启用。", headerModeOff: "Deepwork 已关闭。", headerUseCurrentModel: "切换会话模型",
|
|
135
|
+
title: "预设方案", description: "用于保存 Deepwork 配置;保存与生效是不同操作。",
|
|
136
|
+
effectiveSummary: "生效摘要", futureDefaultSummary: "新会话默认:", currentSessionSummary: "本次会话:",
|
|
137
|
+
locateSessionScope: "选择会话方案", moreActions: "更多生效操作", futureResetHint: "新会话将恢复为继承插件部署基线。",
|
|
138
|
+
basicSettings: "基础设置", profileIdHint: "新建时可编辑;保存后只读。",
|
|
139
|
+
orchestratorModel: "主协调模型", orchestratorModelDesc: "配置方案中的主协调角色;保存不会切换当前会话模型。",
|
|
140
|
+
orchestratorInBasicNotice: "主协调模型在上方「基础设置」中配置。", orchestratorJumpToBasic: "在基础设置中编辑",
|
|
141
|
+
useSessionProfileModelDesc: "使用本次会话已采用方案的角色主力模型;与原生模型选择具有相同效果,可能更新原生默认模型。",
|
|
142
|
+
orchestratorUnavailable: "当前角色库存未包含主协调角色,请刷新确认;已存配置会保留。",
|
|
143
|
+
rawInvalidFormDisabled: "配置内容有错误,暂时无法使用表单编辑", viewConfiguration: "查看配置内容",
|
|
144
|
+
advancedSettings: "高级设置", gitWriteGuard: "Git 写入保护", gitWriteScope: "检查范围",
|
|
145
|
+
gitWriteScopeDisabledHint: "保护已关闭,检查范围暂不生效",
|
|
146
|
+
gitWriteGuardHint: "检查范围只调整自动 Git 保护,显式 ask/deny 仍生效;关闭不代表授权。",
|
|
147
|
+
gitWriteAsk: "询问", gitWriteDeny: "禁止", gitWriteOff: "关闭", gitWriteAllWrites: "所有 Git 写操作", gitWriteHighRisk: "仅高危 Git 操作",
|
|
148
|
+
topologyPerRole: "每个角色独立入口", topologyParameterized: "统一入口中选择角色",
|
|
149
|
+
roleModels: "角色模型与可用性", callingLevels: "调用档位", fallbackRoutes: "备用模型", retryPolicy: "重试策略", roleRoutingNotice: "角色路由配置",
|
|
100
150
|
newSessions: "选择新会话使用的配置,已有会话不变。",
|
|
101
|
-
editorSelect: "
|
|
102
|
-
profileId: "
|
|
151
|
+
editorSelect: "方案", choose: "选择配置", newDraft: "未保存的新配置", new: "新建",
|
|
152
|
+
profileId: "方案 ID", idHint: "1–64 个小写字母、数字、连字符或下划线,保存后不可修改。",
|
|
103
153
|
configuration: "配置内容(JSONC)", configurationHint: "使用 version: 1、与上方一致的 ID 和 settings;label 可选,用于显示名称。",
|
|
104
154
|
structuralHint: "权限、账户和插件在应用设置中管理。",
|
|
105
|
-
save: "保存", saving: "正在保存…", apply: "
|
|
155
|
+
save: "保存", saving: "正在保存…", apply: "设为新会话默认", applying: "正在设置…", reset: "新会话使用插件默认", resetting: "正在恢复…",
|
|
106
156
|
refresh: "刷新", refreshing: "正在刷新…", reload: "重新加载已保存版本", loading: "加载中…", reading: "读取中…",
|
|
107
157
|
empty: "尚无已保存的配置,请先新建。",
|
|
108
158
|
baseline: "默认配置", appliedProfile: "{id}",
|
|
@@ -111,7 +161,7 @@ export const zh = {
|
|
|
111
161
|
dirty: "有未保存的更改,请先保存或丢弃再选择此配置。", savedNotApplied: "已保存,但不是新会话默认配置。", savedApplied: "已保存,是新会话默认配置。",
|
|
112
162
|
versionObserved: "可用", versionAbsent: "未保存", versionUnknown: "未知", savedRelationshipUnknown: "已保存,请刷新确认是否为默认配置。", savedRefreshRequired: "已保存,请重新加载后再编辑或选择。",
|
|
113
163
|
saved: "已保存 {id}。", applied: "新会话将使用 {id},已有会话不变。", resetDone: "新会话将使用默认配置,已有会话不变。",
|
|
114
|
-
discardPrompt: "是否丢弃未保存的草稿?", discard: "
|
|
164
|
+
discardPrompt: "是否丢弃未保存的草稿?", discard: "放弃更改", cancel: "取消",
|
|
115
165
|
conflict: "已保存文件或选择在别处改变,草稿已保留。请刷新后重新加载或检查草稿再重试。",
|
|
116
166
|
validation: "此配置无效,请修正下方字段;草稿未改变。",
|
|
117
167
|
io: "无法保存,草稿已保留。请检查配置存储权限后重试。",
|
|
@@ -135,23 +185,45 @@ export const zh = {
|
|
|
135
185
|
sessionGlobalCaptured: "当前配置(来源未知)",
|
|
136
186
|
sessionAdmittedProfile: "{id}", sessionFutureDefault: "新会话默认配置:{profile}。",
|
|
137
187
|
sessionConflict: "会话配置已在别处改变,草稿已保留。请刷新后重试。",
|
|
138
|
-
sessionApply: "
|
|
188
|
+
sessionApply: "应用到本次会话", sessionApplying: "正在应用…", sessionReset: "本次会话使用插件默认", sessionResetting: "正在恢复…", sessionRefresh: "刷新会话状态",
|
|
139
189
|
sessionApplied: "已仅应用到本次会话,新会话默认配置和已有子会话不变。", sessionResetDone: "本次会话已使用默认配置,新会话默认配置不变。",
|
|
140
190
|
sessionAppliedWithModel: "已应用此配置并选择了它的模型,全局配置默认值未改变。",
|
|
141
191
|
sessionDirty: "选择本次会话配置前,请保存或丢弃草稿。",
|
|
142
192
|
roleState: "路由 {route};策略 {strategy};重试 {retries};限流失败 {failures};切换 {switches};累计延迟 {delay} 毫秒。",
|
|
143
193
|
catalogTitle: "模型目录", catalogHint: "未列出的模型可以手动输入。",
|
|
144
194
|
catalogUnavailable: "模型目录不可用,提供商、模型和强度仍可填写。", catalogRefresh: "刷新模型目录", catalogRefreshing: "正在刷新…", catalogFailure: "提供商目录不可用:{name}({id})。",
|
|
145
|
-
profileLabel: "
|
|
195
|
+
profileLabel: "方案名称", defaultActive: "默认 Deepwork 模式", activeHint: "会话中选择的模式优先。", enabled: "启用", disabled: "禁用", inherit: "继承插件配置",
|
|
146
196
|
profileDefaults: "默认值", roleSelect: "角色", rolesUnavailable: "角色列表不可用,请刷新或使用高级编辑器。", roleEnabled: "应用设置中已启用", roleDisabled: "应用设置中已禁用",
|
|
147
|
-
strategy: "{name} 策略", inheritStrategy: "
|
|
197
|
+
strategy: "{name} 策略", inheritStrategy: "继承插件配置({value})", startupLock: "保留起始路由", rateFallback: "多次限流后切换",
|
|
148
198
|
strategyHint: "仅在限流且没有输出时切换模型;认证或配额错误会停止尝试。留空表示继承,零是明确值。",
|
|
149
199
|
retryField: "{name} {field}", inheritNumber: "继承 {value}", retryBounds: "整数 {min}–{max};继承值 {value}。", unknownDefault: "不可用",
|
|
150
200
|
retryCount: "重试次数", initialDelay: "初始延迟(毫秒)", maxDelay: "最大单次延迟(毫秒)", totalWait: "累计等待上限(毫秒)", switchThreshold: "切换前的限流次数", maxSwitches: "最大切换次数",
|
|
151
|
-
primaryMode: "{name} 主路由", inheritRoute: "
|
|
152
|
-
fallbackMode: "{name} 备用链", inheritChain: "
|
|
201
|
+
primaryMode: "{name} 主路由", inheritRoute: "继承插件配置", configuredRoute: "配置主路由", primaryName: "{name} 主路由",
|
|
202
|
+
fallbackMode: "{name} 备用链", inheritChain: "继承插件配置", configuredChain: "明确的有序备用链", emptyChain: "空备用链:没有备用路由。", fallbackName: "{name} 备用 {index}", addFallback: "为 {name} 添加备用", removeFallback: "移除 {name}", moveUp: "上移 {name}", moveDown: "下移 {name}",
|
|
153
203
|
routeProvider: "{name} 提供商", routeModel: "{name} 模型", routeEffort: "{name} 强度", manualProvider: "{name} 提供商(手动)", manualModel: "{name} 模型(手动)", manualEffort: "{name} 强度(手动)", manual: "输入标识", manualValue: "未列出:{value}", unset: "未设置", effortDefault: "默认(不指定强度)", effortChangeHint: "更改提供商或模型会清除该路由的推理强度。",
|
|
204
|
+
naturalProvider: "提供商", naturalModel: "模型", naturalEffort: "推理强度",
|
|
154
205
|
advanced: "高级 JSONC", rawInvalid: "请先在高级 JSONC 中修正草稿,再使用这些控件。草稿已保留。", invalidNumber: "请输入范围内的整数。",
|
|
206
|
+
configureAllAgentModels: "配置全部 Agent 模型…",
|
|
207
|
+
modelsDialogTitle: "Agent 模型与路由配置",
|
|
208
|
+
modelsDialogDesc: "为每个 Agent 角色配置主路由、调用档位、备用模型及执行策略。",
|
|
209
|
+
searchRolesPlaceholder: "按角色名称或 ID 搜索…",
|
|
210
|
+
filterExplicitOverrides: "仅显式模型覆盖",
|
|
211
|
+
orchestratorNoLevelsHint: "主协调角色仅使用主路由,不适用调用档位。",
|
|
212
|
+
noMatchingRoles: "未找到匹配的角色。",
|
|
213
|
+
fallbackCountSummary: "{count} 个备用路由",
|
|
214
|
+
fallbackExplicitEmptySummary: "显式清空([])",
|
|
215
|
+
levelsSummary: "档位:{levels}",
|
|
216
|
+
levelsInherited: "继承",
|
|
217
|
+
fallbackInherited: "继承",
|
|
218
|
+
roleSettingsSummary: "状态:{status} · 重试:{retry}",
|
|
219
|
+
roleSettingsInherited: "继承",
|
|
220
|
+
roleSettingsOverridden: "显式覆盖",
|
|
221
|
+
saveLockedReason: "保存已锁定:{count} 处字段无效",
|
|
222
|
+
jumpToField: "定位错误字段",
|
|
223
|
+
jumpToJsonc: "在 JSONC 中定位",
|
|
224
|
+
jumpToRole: "在 Agent 模型弹窗中定位",
|
|
225
|
+
roleNonModelSettings: "非模型设置",
|
|
226
|
+
inheritRouteDesc: "继承默认",
|
|
155
227
|
};
|
|
156
228
|
export const RETRY_FIELD_LABEL_KEYS = {
|
|
157
229
|
maxRetries: "retryCount", initialDelayMs: "initialDelay", maxDelayMs: "maxDelay",
|
|
@@ -8,7 +8,10 @@ export function sessionProfileLabels(session, t) {
|
|
|
8
8
|
const future = session.globalDefault;
|
|
9
9
|
return {
|
|
10
10
|
admitted: t("sessionState", { profile, scope: session.scope }),
|
|
11
|
-
futureDefault: t("sessionFutureDefault", {
|
|
11
|
+
futureDefault: t("sessionFutureDefault", {
|
|
12
|
+
profile: !future || future.selectedId === null ? t("sessionBaseline")
|
|
13
|
+
: t("sessionAdmittedProfile", { id: future.selectedId, revision: t(configurationVersionState(future.sourceRevision)) }),
|
|
14
|
+
}),
|
|
12
15
|
};
|
|
13
16
|
}
|
|
14
17
|
//# sourceMappingURL=session-labels.js.map
|
|
@@ -9,6 +9,10 @@ export interface StructuredDocument {
|
|
|
9
9
|
strategy?: DsmmRuntimePolicySettings["strategy"];
|
|
10
10
|
rateLimit?: Partial<DsmmRateLimitPolicy>;
|
|
11
11
|
};
|
|
12
|
+
guards?: {
|
|
13
|
+
gitWriteGuard?: "ask" | "deny" | "off";
|
|
14
|
+
gitWriteScope?: "all-writes" | "high-risk";
|
|
15
|
+
};
|
|
12
16
|
}
|
|
13
17
|
/** Read-only projection. Malformed raw drafts cannot be rewritten by the form. */
|
|
14
18
|
export declare function structuredDocument(content: string): StructuredDocument | null;
|
package/lib/client/structured.js
CHANGED
|
@@ -50,6 +50,21 @@ export function structuredDocument(content) {
|
|
|
50
50
|
return null;
|
|
51
51
|
if (settings.runtimePolicy !== undefined && !record(settings.runtimePolicy))
|
|
52
52
|
return null;
|
|
53
|
+
let guards;
|
|
54
|
+
if (settings.guards !== undefined) {
|
|
55
|
+
if (!record(settings.guards))
|
|
56
|
+
return null;
|
|
57
|
+
const rawGitWriteGuard = settings.guards.gitWriteGuard;
|
|
58
|
+
const rawGitWriteScope = settings.guards.gitWriteScope;
|
|
59
|
+
if (rawGitWriteGuard !== undefined && (typeof rawGitWriteGuard !== "string" || !["ask", "deny", "off"].includes(rawGitWriteGuard)))
|
|
60
|
+
return null;
|
|
61
|
+
if (rawGitWriteScope !== undefined && (typeof rawGitWriteScope !== "string" || !["all-writes", "high-risk"].includes(rawGitWriteScope)))
|
|
62
|
+
return null;
|
|
63
|
+
guards = {
|
|
64
|
+
gitWriteGuard: rawGitWriteGuard,
|
|
65
|
+
gitWriteScope: rawGitWriteScope,
|
|
66
|
+
};
|
|
67
|
+
}
|
|
53
68
|
const runtimePolicy = settings.runtimePolicy ?? {};
|
|
54
69
|
const policies = settings.roleRouting ?? {};
|
|
55
70
|
try {
|
|
@@ -78,7 +93,7 @@ export function structuredDocument(content) {
|
|
|
78
93
|
catch {
|
|
79
94
|
return null;
|
|
80
95
|
}
|
|
81
|
-
return { label: document.label, settings, roleRouting: policies, runtimePolicy };
|
|
96
|
+
return { label: document.label, settings, roleRouting: policies, runtimePolicy, guards };
|
|
82
97
|
}
|
|
83
98
|
/** Only the named path changes; comments/unrelated raw JSONC remain untouched. */
|
|
84
99
|
export function editStructuredPath(content, path, value) {
|
package/lib/client/styles.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/** Geometry and theme aliases extracted in dsmm/DESIGN.md; scoped to this section. */
|
|
2
|
-
export declare const PROFILE_STYLES = "\n.dsmm-profiles{width:100%;max-width:760px;min-width:0;display:flex;flex-direction:column;gap:12px;font-family:var(--dsw-font-family);font-size:14px;line-height:22px;color:var(--dsw-alias-label-primary)}\n.dsmm-profiles h2{margin:0;font-size:18px;font-weight:600}\n.dsmm-profiles h3,.dsmm-profiles legend{margin:0;font-size:14px;font-weight:500;line-height:22px}\n.dsmm-profiles :is(label,legend,summary){min-width:0;max-width:100%;overflow-wrap:anywhere}\n.dsmm-profiles :is(.dsmm-structured,.dsmm-session-scope,.dsmm-catalog,.dsmm-policy-fields){min-width:0;display:flex;flex-direction:column;gap:12px}\n.dsmm-profiles fieldset{min-width:0;margin:0;padding:12px;border:1px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);display:flex;flex-direction:column;gap:12px}\n.dsmm-profiles .dsmm-route-fields{display:flex;flex-wrap:wrap;gap:12px;min-width:0}\n.dsmm-profiles .dsmm-route-fields>.dsmm-field{flex:1 1 240px;max-width:100%}\n.dsmm-profiles .dsmm-route-fields select{width:100%}\n.dsmm-profiles summary{cursor:pointer;color:var(--dsw-alias-label-primary);min-height:32px;line-height:32px}\n.dsmm-profiles summary:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}\n.dsmm-profiles .dsmm-advanced[open]>div{margin-top:8px}\n.dsmm-header-profiles{display:inline-flex;align-items:center;min-width:0;font-family:var(--dsw-font-family);color:var(--dsw-alias-label-primary)}\n.dsmm-header-profiles .dsmm-profile-trigger{width:28px;height:28px;min-height:28px;padding:6px;justify-content:center}\n.dsmm-profile-trigger:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}\n.dsmm-profile-menu{font-family:var(--dsw-font-family);font-size:14px;line-height:22px;max-width:calc(100vw - 24px);color:var(--dsw-alias-label-primary)}\n.dsmm-profile-menu [role=presentation]{font:inherit;white-space:normal;overflow-wrap:anywhere;color:var(--dsw-alias-label-secondary)}\n.dsmm-profile-menu [role=menuitem]{font:inherit}\n.dsmm-profile-menu [role=menuitem]>span{white-space:normal;overflow-wrap:anywhere}\n.dsmm-profile-announcement{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}\n.dsmm-profiles p{margin:0;overflow-wrap:anywhere}\n.dsmm-profiles .dsmm-hint{color:var(--dsw-alias-label-secondary)}\n.dsmm-profiles .dsmm-field{min-width:0;display:flex;flex-direction:column;gap:6px}\n.dsmm-profiles .dsmm-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}\n.dsmm-profiles button{max-width:100%;white-space:normal;overflow-wrap:anywhere;min-height:36px;height:auto}\n.dsmm-profiles .dsmm-input{width:100%;min-width:0;box-sizing:border-box;border-color:var(--dsw-alias-label-secondary)}\n.dsmm-profiles .dsmm-input input{width:100%;min-width:0;font:inherit;color:inherit}\n.dsmm-profiles .dsmm-choice{position:relative;min-width:0}\n.dsmm-profiles .dsmm-choice .dsmm-input input{padding-right:32px}\n.dsmm-profiles .dsmm-choice .dsmm-choice-toggle{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:28px;height:28px;min-height:28px;padding:4px}\n.dsmm-profiles .dsmm-choice-list{position:absolute;z-index:1;top:100%;left:0;right:0;max-height:240px;overflow-y:auto;list-style:none;margin:4px 0 0;padding:4px;border:1px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);color:var(--dsw-alias-label-primary)}\n.dsmm-profiles .dsmm-choice-list [role=option]{padding:8px 10px;min-width:0;overflow-wrap:anywhere;cursor:pointer}\n.dsmm-profiles .dsmm-choice-list [role=option]:hover{background:var(--dsw-alias-interactive-bg-hover)}\n.dsmm-profiles .dsmm-choice-list [aria-selected=true]{background:var(--dsw-alias-interactive-bg-active);outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:-2px}\n.dsmm-profiles select,.dsmm-profiles textarea{box-sizing:border-box;min-width:0;max-width:100%;font:inherit;color:var(--dsw-alias-label-primary);background:var(--dsw-alias-bg-layer-1);border:1px solid var(--dsw-alias-label-secondary);border-radius:var(--dsw-radius-md)}\n.dsmm-profiles select{width:240px;height:32px;padding:0 10px;text-overflow:ellipsis}\n.dsmm-profiles textarea{width:100%;padding:12px;font-family:var(--ds-font-family-code);resize:vertical;overflow:auto;white-space:pre;}\n.dsmm-profiles select:hover:not(:disabled),.dsmm-profiles textarea:hover:not(:disabled){border-color:var(--dsw-alias-label-primary)}\n.dsmm-profiles select:active:not(:disabled){background:var(--dsw-alias-interactive-bg-active)}\n.dsmm-profiles :is(select,textarea,button):focus-visible,.dsmm-profiles .dsmm-input:has(input:focus-visible){outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}\n.dsmm-profiles input[type=checkbox]:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}\n.dsmm-permissions label.dsmm-actions{min-height:32px}\n.dsmm-permissions input[type=checkbox]{accent-color:var(--dsw-alias-state-business-primary)}\n.dsmm-profiles :is(select,textarea):disabled{color:var(--dsw-alias-label-secondary);background:var(--dsw-alias-bg-module-platform);cursor:not-allowed}\n.dsmm-profiles .dsmm-editor,.dsmm-profiles .dsmm-confirm{min-width:0;display:flex;flex-direction:column;gap:12px;padding:16px;border:1px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-module-platform)}\n.dsmm-profiles .dsmm-issue{padding:12px;border-left:4px solid var(--dsw-alias-state-error-primary);color:var(--dsw-alias-label-primary);overflow-wrap:anywhere}\n.dsmm-profiles .dsmm-issue p+p{margin-top:8px}\n.dsmm-profiles .dsmm-status{min-height:22px}\n.dsmm-profiles .dsmm-zone{min-width:0;display:flex;flex-direction:column;gap:12px;padding-top:16px;border-top:1px solid var(--dsw-alias-border-l4)}\n.dsmm-profiles .dsmm-profile-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:12px;min-width:0}\n.dsmm-profiles .dsmm-profile-list li{min-width:0;display:flex;flex-direction:column;gap:4px}\n.dsmm-profiles :is(.dsmm-warning,.dsmm-diagnostic,.dsmm-availability){min-width:0;display:flex;flex-direction:column;gap:4px;overflow-wrap:anywhere}\n.dsmm-profiles .dsmm-warning{border-left:4px solid var(--dsw-alias-state-warn-primary);padding:8px 12px;color:var(--dsw-alias-label-primary)}\n.dsmm-deployment{gap:8px}\n.dsmm-section-tabs{display:flex;gap:8px;min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;border-bottom:1px solid var(--dsw-alias-border-l4);padding-bottom:2px}\n.dsmm-section-tabs button{flex:0 0 auto;justify-content:center;white-space:nowrap;border-color:transparent;border-bottom:2px solid transparent;border-radius:var(--dsw-radius-md) var(--dsw-radius-md) 0 0;background:transparent;color:var(--dsw-alias-label-secondary);font-weight:400}\n.dsmm-section-tabs button:hover{background:var(--dsw-alias-interactive-bg-hover)}\n.dsmm-section-tabs button[aria-selected=true]{background:var(--dsw-alias-interactive-bg-active);border-bottom-color:var(--dsw-alias-label-primary);color:var(--dsw-alias-label-primary);font-weight:500}\n.dsmm-section-panel{display:flex;flex-direction:column;gap:16px;min-width:0;width:100%;box-sizing:border-box}\n.dsmm-panel-heading{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;align-items:center;min-width:0}\n.dsmm-panel-heading h2:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}\n.dsmm-rules-transaction{padding-top:16px}\n.dsmm-scope-save{display:flex;flex-direction:column;gap:8px;padding-top:16px;border-top:1px solid var(--dsw-alias-border-l4)}\n.dsmm-deployment .dsmm-deployment-group{border-top:1px solid var(--dsw-alias-border-l4);padding-top:8px;min-width:0}\n.dsmm-deployment .dsmm-deployment-group>div{display:flex;flex-direction:column;gap:8px;padding-top:8px}\n.dsmm-deployment .dsmm-deployment-group>summary.dsmm-group-summary-row{display:flex;align-items:center;gap:8px;list-style:none}\n.dsmm-deployment .dsmm-deployment-group>summary.dsmm-group-summary-row::-webkit-details-marker{display:none}\n.dsmm-deployment .dsmm-deployment-group>summary.dsmm-group-summary-row::before{content:\"\u25B6\";flex:0 0 auto;width:12px;text-align:center;color:var(--dsw-alias-label-secondary)}\n.dsmm-deployment .dsmm-deployment-group[open]>summary.dsmm-group-summary-row::before{content:\"\u25BC\"}\n.dsmm-deployment summary .dsmm-group-summary{display:flex;align-items:center;gap:8px;min-width:0;flex:1 1 auto}\n.dsmm-deployment .dsmm-group-summary-label{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}\n.dsmm-deployment .dsmm-group-summary-action{flex:0 0 auto;min-height:28px;height:28px;padding:0 8px}\n.dsmm-deployment .dsmm-group-summary-action[hidden]{display:none}\n.dsmm-deployment code{font-family:var(--ds-font-family-code);overflow-wrap:anywhere}\n.dsmm-deployment label code,.dsmm-deployment summary code{margin-left:8px;font-size:12px;line-height:18px;font-weight:400;color:var(--dsw-alias-label-secondary)}\n.dsmm-deployment pre{margin:0;max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere;font-family:var(--ds-font-family-code)}\n.dsmm-deployment .dsmm-deployment-state{display:flex;flex-direction:column;gap:4px;margin:0;padding:12px;border-top:1px solid var(--dsw-alias-border-l4)}\n.dsmm-deployment .dsmm-deployment-state dd{margin:0;color:var(--dsw-alias-label-secondary);overflow-wrap:anywhere}\n.dsmm-children .dsmm-child-composer{min-width:0;display:flex;flex-direction:column;gap:12px}\n.dsmm-children .dsmm-child-meta{margin:0;display:flex;flex-direction:column;gap:4px;min-width:0}\n.dsmm-children .dsmm-child-meta dt{font-weight:500;overflow-wrap:anywhere}\n.dsmm-children .dsmm-child-meta dd{margin:0;color:var(--dsw-alias-label-secondary);overflow-wrap:anywhere}\n.dsmm-children textarea.dsmm-child-message{font-family:var(--dsw-font-family);white-space:pre-wrap;overflow-wrap:anywhere}\n.dsmm-profiles .dsmm-command-entry{min-width:0;display:flex;flex-direction:column;gap:6px}\n.dsmm-profiles .dsmm-command-entry .dsmm-actions{display:flex;align-items:center;gap:8px}\n.dsmm-profiles .dsmm-command-entry .dsmm-input{flex:1 1 auto;min-width:0}\n.dsmm-profiles .dsmm-command-summary{display:flex;align-items:center;gap:8px;flex:1 1 auto;min-width:0;overflow-wrap:anywhere}\n.dsmm-profiles .dsmm-command-summary code{font-family:var(--ds-font-family-code);font-size:13px;color:var(--dsw-alias-label-primary)}\n.dsmm-profiles .dsmm-legacy-badge{display:inline-flex;align-items:center;padding:2px 6px;font-size:11px;font-weight:600;line-height:16px;border-radius:var(--dsw-radius-md);background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-secondary);text-transform:uppercase;letter-spacing:0.5px}\n.dsmm-profiles .dsmm-legacy-details{padding:4px 0}\n.dsmm-profiles .dsmm-legacy-details summary{font-size:12px;color:var(--dsw-alias-label-secondary);min-height:24px;line-height:24px}\n.dsmm-profiles .dsmm-kv{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;margin:4px 0 0;font-size:12px}\n.dsmm-profiles .dsmm-kv dt{font-weight:500;color:var(--dsw-alias-label-secondary)}\n.dsmm-profiles .dsmm-kv dd{margin:0;color:var(--dsw-alias-label-primary);font-family:var(--ds-font-family-code)}\n@media(prefers-reduced-motion:reduce){.dsmm-profiles *{transition:none!important;animation:none!important}}\n";
|
|
2
|
+
export declare const PROFILE_STYLES = "\n.dsmm-profiles{width:100%;max-width:760px;min-width:0;display:flex;flex-direction:column;gap:12px;font-family:var(--dsw-font-family);font-size:14px;line-height:22px;color:var(--dsw-alias-label-primary)}\n.dsmm-profiles h2{margin:0;font-size:18px;font-weight:600}\n.dsmm-profiles h3,.dsmm-profiles legend{margin:0;font-size:14px;font-weight:500;line-height:22px}\n:is(.dsmm-profiles, .dsmm-profile-models-dialog) :is(label,legend,summary){min-width:0;max-width:100%;overflow-wrap:anywhere}\n.dsmm-profiles :is(.dsmm-structured,.dsmm-session-scope,.dsmm-catalog,.dsmm-policy-fields){min-width:0;display:flex;flex-direction:column;gap:12px}\n:is(.dsmm-profiles, .dsmm-profile-models-dialog) fieldset{min-width:0;margin:0;padding:12px;border:1px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);display:flex;flex-direction:column;gap:12px}\n:is(.dsmm-profiles, .dsmm-profile-models-dialog) .dsmm-route-fields{display:flex;flex-wrap:wrap;gap:12px;min-width:0}\n:is(.dsmm-profiles, .dsmm-profile-models-dialog) .dsmm-route-fields>.dsmm-field{flex:1 1 240px;max-width:100%}\n:is(.dsmm-profiles, .dsmm-profile-models-dialog) .dsmm-route-fields select{width:100%}\n:is(.dsmm-profiles, .dsmm-profile-models-dialog) summary{cursor:pointer;color:var(--dsw-alias-label-primary);min-height:32px;line-height:32px}\n:is(.dsmm-profiles, .dsmm-profile-models-dialog) summary:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}\n.dsmm-profiles .dsmm-advanced[open]>div{margin-top:8px}\n.dsmm-header-profiles{display:inline-flex;align-items:center;min-width:0;font-family:var(--dsw-font-family);color:var(--dsw-alias-label-primary)}\n.dsmm-header-profiles .dsmm-profile-trigger{width:28px;height:28px;min-height:28px;padding:6px;justify-content:center}\n.dsmm-profile-trigger:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}\n.dsmm-profile-menu{font-family:var(--dsw-font-family);font-size:14px;line-height:22px;max-width:calc(100vw - 24px);color:var(--dsw-alias-label-primary)}\n.dsmm-profile-menu [role=presentation]{font:inherit;white-space:normal;overflow-wrap:anywhere;color:var(--dsw-alias-label-secondary)}\n.dsmm-profile-menu [role=menuitem]{font:inherit}\n.dsmm-profile-menu [role=menuitem]>span{white-space:normal;overflow-wrap:anywhere}\n.dsmm-profile-announcement{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}\n:is(.dsmm-profiles, .dsmm-profile-models-dialog) p{margin:0;overflow-wrap:anywhere}\n:is(.dsmm-profiles, .dsmm-profile-models-dialog) .dsmm-hint{color:var(--dsw-alias-label-secondary)}\n:is(.dsmm-profiles, .dsmm-profile-models-dialog) .dsmm-field{min-width:0;display:flex;flex-direction:column;gap:6px}\n:is(.dsmm-profiles, .dsmm-profile-models-dialog) .dsmm-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}\n:is(.dsmm-profiles, .dsmm-profile-models-dialog) button{max-width:100%;white-space:normal;overflow-wrap:anywhere;min-height:36px;height:auto}\n:is(.dsmm-profiles, .dsmm-profile-models-dialog) .dsmm-input{width:100%;min-width:0;box-sizing:border-box;border-color:var(--dsw-alias-label-secondary)}\n:is(.dsmm-profiles, .dsmm-profile-models-dialog) .dsmm-input input{width:100%;min-width:0;font:inherit;color:inherit}\n:is(.dsmm-profiles, .dsmm-profile-models-dialog) .dsmm-choice{position:relative;min-width:0}\n:is(.dsmm-profiles, .dsmm-profile-models-dialog) .dsmm-choice .dsmm-input input{padding-right:32px}\n:is(.dsmm-profiles, .dsmm-profile-models-dialog) .dsmm-choice .dsmm-choice-toggle{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:28px;height:28px;min-height:28px;padding:4px}\n:is(.dsmm-profiles, .dsmm-profile-models-dialog) .dsmm-choice-list{position:absolute;z-index:1;top:100%;left:0;right:0;max-height:240px;overflow-y:auto;list-style:none;margin:4px 0 0;padding:4px;border:1px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);color:var(--dsw-alias-label-primary)}\n:is(.dsmm-profiles, .dsmm-profile-models-dialog) .dsmm-choice-list [role=option]{padding:8px 10px;min-width:0;overflow-wrap:anywhere;cursor:pointer}\n:is(.dsmm-profiles, .dsmm-profile-models-dialog) .dsmm-choice-list [role=option]:hover{background:var(--dsw-alias-interactive-bg-hover)}\n:is(.dsmm-profiles, .dsmm-profile-models-dialog) .dsmm-choice-list [aria-selected=true]{background:var(--dsw-alias-interactive-bg-active);outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:-2px}\n:is(.dsmm-profiles, .dsmm-profile-models-dialog) select,:is(.dsmm-profiles, .dsmm-profile-models-dialog) textarea{box-sizing:border-box;min-width:0;max-width:100%;font:inherit;color:var(--dsw-alias-label-primary);background:var(--dsw-alias-bg-layer-1);border:1px solid var(--dsw-alias-label-secondary);border-radius:var(--dsw-radius-md)}\n:is(.dsmm-profiles, .dsmm-profile-models-dialog) select{width:240px;height:32px;padding:0 10px;text-overflow:ellipsis}\n:is(.dsmm-profiles, .dsmm-profile-models-dialog) textarea{width:100%;padding:12px;font-family:var(--ds-font-family-code);resize:vertical;overflow:auto;white-space:pre;}\n:is(.dsmm-profiles, .dsmm-profile-models-dialog) select:hover:not(:disabled),:is(.dsmm-profiles, .dsmm-profile-models-dialog) textarea:hover:not(:disabled){border-color:var(--dsw-alias-label-primary)}\n:is(.dsmm-profiles, .dsmm-profile-models-dialog) select:active:not(:disabled){background:var(--dsw-alias-interactive-bg-active)}\n:is(.dsmm-profiles, .dsmm-profile-models-dialog) :is(select,textarea,button):focus-visible,:is(.dsmm-profiles, .dsmm-profile-models-dialog) .dsmm-input:has(input:focus-visible){outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}\n:is(.dsmm-profiles, .dsmm-profile-models-dialog) input[type=checkbox]:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}\n.dsmm-permissions label.dsmm-actions{min-height:32px}\n.dsmm-permissions input[type=checkbox]{accent-color:var(--dsw-alias-state-business-primary)}\n:is(.dsmm-profiles, .dsmm-profile-models-dialog) :is(select,textarea):disabled{color:var(--dsw-alias-label-secondary);background:var(--dsw-alias-bg-module-platform);cursor:not-allowed}\n.dsmm-profiles .dsmm-editor,.dsmm-profiles .dsmm-confirm{min-width:0;display:flex;flex-direction:column;gap:12px;padding:16px;border:1px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-module-platform)}\n.dsmm-profiles .dsmm-issue{padding:12px;border-left:4px solid var(--dsw-alias-state-error-primary);color:var(--dsw-alias-label-primary);overflow-wrap:anywhere}\n.dsmm-profiles .dsmm-issue p+p{margin-top:8px}\n.dsmm-profiles .dsmm-status{min-height:22px}\n.dsmm-profiles .dsmm-zone{min-width:0;display:flex;flex-direction:column;gap:12px;padding-top:16px;border-top:1px solid var(--dsw-alias-border-l4)}\n.dsmm-profiles .dsmm-profile-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:12px;min-width:0}\n.dsmm-profiles .dsmm-profile-list li{min-width:0;display:flex;flex-direction:column;gap:4px}\n.dsmm-profiles :is(.dsmm-warning,.dsmm-diagnostic,.dsmm-availability){min-width:0;display:flex;flex-direction:column;gap:4px;overflow-wrap:anywhere}\n.dsmm-profiles .dsmm-warning{border-left:4px solid var(--dsw-alias-state-warn-primary);padding:8px 12px;color:var(--dsw-alias-label-primary)}\n.dsmm-deployment{gap:8px}\n.dsmm-section-tabs{display:flex;gap:8px;min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;border-bottom:1px solid var(--dsw-alias-border-l4);padding-bottom:2px}\n.dsmm-section-tabs button{flex:0 0 auto;justify-content:center;white-space:nowrap;border-color:transparent;border-bottom:2px solid transparent;border-radius:var(--dsw-radius-md) var(--dsw-radius-md) 0 0;background:transparent;color:var(--dsw-alias-label-secondary);font-weight:400}\n.dsmm-section-tabs button:hover{background:var(--dsw-alias-interactive-bg-hover)}\n.dsmm-section-tabs button[aria-selected=true]{background:var(--dsw-alias-interactive-bg-active);border-bottom-color:var(--dsw-alias-label-primary);color:var(--dsw-alias-label-primary);font-weight:500}\n.dsmm-section-panel{display:flex;flex-direction:column;gap:16px;min-width:0;width:100%;box-sizing:border-box}\n.dsmm-panel-heading{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;align-items:center;min-width:0}\n.dsmm-panel-heading h2:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}\n.dsmm-rules-transaction{padding-top:16px}\n.dsmm-scope-save{display:flex;flex-direction:column;gap:8px;padding-top:16px;border-top:1px solid var(--dsw-alias-border-l4)}\n.dsmm-deployment .dsmm-deployment-group{border-top:1px solid var(--dsw-alias-border-l4);padding-top:8px;min-width:0}\n.dsmm-deployment .dsmm-deployment-group>div{display:flex;flex-direction:column;gap:8px;padding-top:8px}\n.dsmm-deployment .dsmm-deployment-group>summary.dsmm-group-summary-row{display:flex;align-items:center;gap:8px;list-style:none}\n.dsmm-deployment .dsmm-deployment-group>summary.dsmm-group-summary-row::-webkit-details-marker{display:none}\n.dsmm-deployment .dsmm-deployment-group>summary.dsmm-group-summary-row::before{content:\"\u25B6\";flex:0 0 auto;width:12px;text-align:center;color:var(--dsw-alias-label-secondary)}\n.dsmm-deployment .dsmm-deployment-group[open]>summary.dsmm-group-summary-row::before{content:\"\u25BC\"}\n.dsmm-deployment summary .dsmm-group-summary{display:flex;align-items:center;gap:8px;min-width:0;flex:1 1 auto}\n.dsmm-deployment .dsmm-group-summary-label{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}\n.dsmm-deployment .dsmm-group-summary-action{flex:0 0 auto;min-height:28px;height:28px;padding:0 8px}\n.dsmm-deployment .dsmm-group-summary-action[hidden]{display:none}\n.dsmm-deployment code{font-family:var(--ds-font-family-code);overflow-wrap:anywhere}\n.dsmm-deployment label code,.dsmm-deployment summary code{margin-left:8px;font-size:12px;line-height:18px;font-weight:400;color:var(--dsw-alias-label-secondary)}\n.dsmm-deployment pre{margin:0;max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere;font-family:var(--ds-font-family-code)}\n.dsmm-deployment .dsmm-deployment-state{display:flex;flex-direction:column;gap:4px;margin:0;padding:12px;border-top:1px solid var(--dsw-alias-border-l4)}\n.dsmm-deployment .dsmm-deployment-state dd{margin:0;color:var(--dsw-alias-label-secondary);overflow-wrap:anywhere}\n.dsmm-children .dsmm-child-composer{min-width:0;display:flex;flex-direction:column;gap:12px}\n.dsmm-children .dsmm-child-meta{margin:0;display:flex;flex-direction:column;gap:4px;min-width:0}\n.dsmm-children .dsmm-child-meta dt{font-weight:500;overflow-wrap:anywhere}\n.dsmm-children .dsmm-child-meta dd{margin:0;color:var(--dsw-alias-label-secondary);overflow-wrap:anywhere}\n.dsmm-children textarea.dsmm-child-message{font-family:var(--dsw-font-family);white-space:pre-wrap;overflow-wrap:anywhere}\n.dsmm-profiles .dsmm-command-entry{min-width:0;display:flex;flex-direction:column;gap:6px}\n.dsmm-profiles .dsmm-command-entry .dsmm-actions{display:flex;align-items:center;gap:8px}\n.dsmm-profiles .dsmm-command-entry .dsmm-input{flex:1 1 auto;min-width:0}\n.dsmm-profiles .dsmm-command-summary{display:flex;align-items:center;gap:8px;flex:1 1 auto;min-width:0;overflow-wrap:anywhere}\n.dsmm-profiles .dsmm-command-summary code{font-family:var(--ds-font-family-code);font-size:13px;color:var(--dsw-alias-label-primary)}\n.dsmm-profiles .dsmm-legacy-badge{display:inline-flex;align-items:center;padding:2px 6px;font-size:11px;font-weight:600;line-height:16px;border-radius:var(--dsw-radius-md);background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-secondary);text-transform:uppercase;letter-spacing:0.5px}\n.dsmm-profiles .dsmm-legacy-details{padding:4px 0}\n.dsmm-profiles .dsmm-legacy-details summary{font-size:12px;color:var(--dsw-alias-label-secondary);min-height:24px;line-height:24px}\n.dsmm-profiles .dsmm-kv{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;margin:4px 0 0;font-size:12px}\n.dsmm-profiles .dsmm-kv dt{font-weight:500;color:var(--dsw-alias-label-secondary)}\n.dsmm-profiles .dsmm-kv dd{margin:0;color:var(--dsw-alias-label-primary);font-family:var(--ds-font-family-code)}\n.dsmm-named-profiles .dsmm-browse-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}\n.dsmm-named-profiles .dsmm-effective-summary{display:flex;flex-direction:column;gap:8px;padding:12px;background:var(--dsw-alias-bg-module-platform);border:1px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md)}\n.dsmm-named-profiles .dsmm-summary-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}\n.dsmm-named-profiles .dsmm-summary-label{display:inline-flex;align-items:center;gap:6px;font-weight:500}\n.dsmm-named-profiles .dsmm-summary-val{color:var(--dsw-alias-label-secondary)}\n.dsmm-named-profiles .dsmm-more-actions{border:1px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);padding:8px 12px}\n.dsmm-named-profiles .dsmm-more-actions[open]{padding-bottom:12px}\n.dsmm-named-profiles .dsmm-more-actions>summary{font-weight:500}\n.dsmm-named-profiles .dsmm-more-actions>div{margin-top:12px;display:flex;flex-direction:column;gap:12px}\n.dsmm-named-profiles .dsmm-basic-settings{display:flex;flex-direction:column;gap:12px;padding:12px;border:1px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md)}\n.dsmm-named-profiles .dsmm-advanced-settings{border:1px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);padding:8px 12px}\n.dsmm-named-profiles .dsmm-advanced-settings[open]{padding-bottom:12px}\n.dsmm-named-profiles .dsmm-advanced-settings>summary{font-weight:500}\n.dsmm-named-profiles .dsmm-advanced-settings>div{margin-top:12px;display:flex;flex-direction:column;gap:12px}\n.dsmm-named-profiles .dsmm-save-bar{display:flex;flex-direction:column;gap:8px;padding-top:12px;border-top:1px solid var(--dsw-alias-border-l4)}\n.dsmm-named-profiles .dsmm-save-lock-reason{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px;border:1px solid var(--dsw-alias-state-warn-primary);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-module-platform)}\n.dsmm-named-profiles .dsmm-save-lock-text{font-weight:500;color:var(--dsw-alias-state-warn-primary)}\n.dsmm-named-profiles .dsmm-save-lock-action{display:flex;align-items:center;gap:8px}\n.dsmm-named-profiles .dsmm-orchestrator-primary{background:var(--dsw-alias-bg-layer-1)}\n.dsmm-named-profiles .dsmm-git-guard{background:var(--dsw-alias-bg-layer-1)}\n.dsmm-named-profiles .dsmm-structured-invalid{display:flex;flex-direction:column;gap:8px;padding:12px;border:1px solid var(--dsw-alias-state-error-primary);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-module-platform)}\n\n.dsmm-profile-models-dialog.dialog,\n.dsmm-profile-models-dialog{width:min(1040px, calc(100vw - 32px))!important;max-width:1040px!important;max-height:calc(100vh - 48px)!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;box-sizing:border-box;font-family:var(--dsw-font-family);font-size:14px;line-height:22px;color:var(--dsw-alias-label-primary)}\n.dsmm-profile-models-dialog-content,\n.dsmm-models-dialog-content,\n.dsmm-profile-models-dialog .dsmm-profile-models-dialog-content{overflow-y:auto!important;overflow-x:hidden;display:flex;flex-direction:column;gap:12px;padding:4px 0 16px;min-height:0;flex:1 1 auto}\n.dsmm-models-filter-bar,\n.dsmm-dialog-filter-bar,\n.dsmm-profile-models-dialog .dsmm-filter-bar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding-bottom:12px;border-bottom:1px solid var(--dsw-alias-border-l4);flex-shrink:0}\n.dsmm-models-filter-bar .dsmm-search-input,\n.dsmm-filter-search{flex:1 1 240px;min-width:0}\n.dsmm-filter-label,\n.dsmm-filter-override-toggle{display:inline-flex;align-items:center;gap:6px;cursor:pointer;font-size:13px;user-select:none;color:var(--dsw-alias-label-primary)}\n.dsmm-dialog-issue{margin-bottom:8px;padding:8px 12px;border:1px solid var(--dsw-alias-state-error-primary);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-module-platform);display:flex;flex-direction:column;gap:6px}\n.dsmm-dialog-issue-title{font-weight:600;color:var(--dsw-alias-state-error-primary);margin:0}\n.dsmm-dialog-issue-action{display:flex;justify-content:flex-end;margin-top:4px}\n.dsmm-profile-models-dialog .dsmm-roles-list,\n.dsmm-profile-models-dialog .dsmm-dialog-roles-list{display:flex;flex-direction:column;gap:8px;min-width:0}\n.dsmm-profile-models-dialog .dsmm-dialog-role-card{display:flex;flex-direction:column;gap:6px;padding:8px 12px;border:1px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-module-platform);min-width:0}\n.dsmm-profile-models-dialog .dsmm-role-main-row{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:8px 12px;min-width:0}\n.dsmm-profile-models-dialog .dsmm-dialog-role-header{display:flex;align-items:center;min-width:140px;flex:0 0 auto}\n.dsmm-profile-models-dialog .dsmm-role-title-group{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0}\n.dsmm-profile-models-dialog .dsmm-role-title{font-size:14px;font-weight:600;color:var(--dsw-alias-label-primary)}\n.dsmm-profile-models-dialog .dsmm-role-id-badge{font-family:var(--ds-font-family-code);font-size:11px;padding:1px 4px;border-radius:var(--dsw-radius-xs,2px);background:var(--dsw-alias-bg-layer-1);color:var(--dsw-alias-label-secondary);white-space:nowrap}\n.dsmm-profile-models-dialog .dsmm-override-badge{font-size:11px;padding:1px 6px;border-radius:var(--dsw-radius-md);background:var(--dsw-alias-interactive-bg-active);color:var(--dsw-alias-state-business-primary);border:1px solid var(--dsw-alias-state-business-primary);white-space:nowrap}\n.dsmm-profile-models-dialog .dsmm-role-primary-route{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px 12px;flex:1 1 auto;justify-content:flex-end;min-width:0}\n.dsmm-profile-models-dialog .dsmm-role-primary-route .dsmm-primary-mode-field{flex:0 0 auto;min-width:110px}\n.dsmm-profile-models-dialog .dsmm-role-primary-route .dsmm-primary-mode-field select{width:auto;min-width:110px;height:32px}\n.dsmm-profile-models-dialog .dsmm-role-primary-route .dsmm-route-fields{display:flex;flex-wrap:nowrap;align-items:flex-end;gap:8px;flex:0 1 auto;min-width:0}\n.dsmm-profile-models-dialog .dsmm-role-primary-route .dsmm-route-fields>.dsmm-field{flex:0 1 auto;min-width:100px;max-width:200px;gap:2px}\n.dsmm-profile-models-dialog .dsmm-role-primary-route .dsmm-route-fields select{width:100%;height:32px}\n.dsmm-profile-models-dialog .dsmm-role-primary-route .dsmm-route-fields .dsmm-input{height:32px}\n.dsmm-profile-models-dialog .dsmm-route-inherited-hint{font-size:12px;color:var(--dsw-alias-label-secondary);padding:6px 0;line-height:20px}\n.dsmm-profile-models-dialog .dsmm-orchestrator-tag{font-size:12px;color:var(--dsw-alias-label-secondary);padding:6px 0;line-height:20px}\n.dsmm-profile-models-dialog .dsmm-role-details-bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;min-width:0;padding-top:4px;border-top:1px dashed var(--dsw-alias-border-l4)}\n.dsmm-profile-models-dialog .dsmm-compact-details{display:inline-block;min-width:0}\n.dsmm-profile-models-dialog .dsmm-compact-details[open]{flex:1 1 100%;width:100%}\n.dsmm-profile-models-dialog .dsmm-details-pill{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);border:1px solid var(--dsw-alias-border-l4);font-size:12px;line-height:20px;min-height:24px;cursor:pointer;color:var(--dsw-alias-label-primary);user-select:none}\n.dsmm-profile-models-dialog .dsmm-compact-details[open]>.dsmm-details-pill{background:var(--dsw-alias-interactive-bg-hover);border-color:var(--dsw-alias-state-business-primary);font-weight:500}\n.dsmm-profile-models-dialog .dsmm-pill-label{color:var(--dsw-alias-label-secondary)}\n.dsmm-profile-models-dialog .dsmm-pill-val{color:var(--dsw-alias-label-primary)}\n.dsmm-profile-models-dialog .dsmm-compact-details .dsmm-details-content{margin-top:8px;padding:10px 12px;border:1px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1);display:flex;flex-direction:column;gap:10px;min-width:0}\n.dsmm-profile-models-dialog .dsmm-fallback-item{display:flex;flex-direction:column;gap:8px;padding:10px;border:1px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-module-platform);min-width:0}\n.dsmm-models-dialog-footer{display:flex;justify-content:flex-end;gap:8px;padding-top:12px;border-top:1px solid var(--dsw-alias-border-l4)}\n\n@media(max-width:768px){\n .dsmm-profile-models-dialog{width:calc(100vw - 16px)!important;max-height:calc(100vh - 16px)}\n .dsmm-profile-models-dialog .dsmm-dialog-role-card{padding:10px}\n .dsmm-profile-models-dialog .dsmm-role-main-row{flex-direction:column;align-items:stretch;gap:8px}\n .dsmm-profile-models-dialog .dsmm-role-primary-route{flex-direction:column;align-items:stretch;gap:8px}\n .dsmm-profile-models-dialog .dsmm-role-primary-route .dsmm-route-fields{flex-wrap:wrap}\n .dsmm-profile-models-dialog .dsmm-role-primary-route .dsmm-route-fields>.dsmm-field{flex:1 1 100%;max-width:100%}\n .dsmm-profile-models-dialog .dsmm-role-details-bar{flex-direction:column;align-items:stretch}\n .dsmm-profile-models-dialog .dsmm-compact-details{width:100%}\n .dsmm-profile-models-dialog .dsmm-details-pill{width:100%;box-sizing:border-box;justify-content:space-between}\n}\n@media(prefers-reduced-motion:reduce){:is(.dsmm-profiles, .dsmm-profile-models-dialog) *{transition:none!important;animation:none!important;scroll-behavior:auto!important}}\n";
|
|
3
3
|
//# sourceMappingURL=styles.d.ts.map
|