@dsmm/dsmm 0.2.2 → 0.3.1
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 +26 -42
- package/cordis.patch.yml +1 -0
- package/docs/agent-presets.md +26 -14
- package/docs/compatibility.md +20 -79
- package/docs/deferred-native-approval-risk.md +8 -12
- package/docs/design.md +25 -254
- package/docs/lsp.md +2 -2
- package/docs/migration-from-ocmm.md +38 -51
- package/docs/model-routing.md +21 -21
- package/docs/native-permissions.md +17 -7
- package/docs/profiles.md +13 -9
- package/docs/releasing.md +34 -240
- package/docs/roadmap.md +23 -254
- package/docs/runtime-recovery.md +29 -91
- package/docs/safety-guards.md +19 -16
- package/docs/settings-status.md +23 -11
- package/docs/skill-sync.md +17 -17
- package/docs/web-fetch-fakeip.md +82 -0
- package/lib/child-capture.d.ts +16 -2
- package/lib/child-capture.js +29 -10
- package/lib/client/ChildrenPanel.d.ts +1 -4
- package/lib/client/ChildrenPanel.js +4 -16
- package/lib/client/DeploymentFields.d.ts +28 -0
- package/lib/client/DeploymentFields.js +68 -0
- package/lib/client/DeploymentPage.d.ts +17 -5
- package/lib/client/DeploymentPage.js +79 -112
- package/lib/client/NativeCommandEntries.d.ts +17 -0
- package/lib/client/NativeCommandEntries.js +68 -0
- package/lib/client/PermissionsPanel.d.ts +1 -1
- package/lib/client/PermissionsPanel.js +8 -8
- package/lib/client/ProfilesSection.js +7 -5
- package/lib/client/RoleToolView-data.d.ts +35 -0
- package/lib/client/RoleToolView-data.js +52 -0
- package/lib/client/RoleToolView-locales.d.ts +36 -0
- package/lib/client/RoleToolView-locales.js +20 -0
- package/lib/client/RoleToolView.d.ts +10 -0
- package/lib/client/RoleToolView.js +47 -0
- package/lib/client/SessionProfiles.js +39 -15
- package/lib/client/children-controller.d.ts +2 -8
- package/lib/client/children-controller.js +1 -26
- package/lib/client/children-locales.d.ts +26 -51
- package/lib/client/children-locales.js +8 -12
- package/lib/client/configuration-display.d.ts +5 -0
- package/lib/client/configuration-display.js +11 -0
- package/lib/client/controller.d.ts +1 -0
- package/lib/client/controller.js +20 -13
- package/lib/client/deployment-controller.d.ts +13 -1
- package/lib/client/deployment-controller.js +85 -25
- package/lib/client/deployment-data.d.ts +1 -0
- package/lib/client/deployment-data.js +4 -1
- package/lib/client/deployment-locales.d.ts +43 -0
- package/lib/client/deployment-locales.js +35 -9
- package/lib/client/deployment-modules.d.ts +9 -0
- package/lib/client/deployment-modules.js +24 -0
- package/lib/client/deployment-workspace.d.ts +48 -0
- package/lib/client/deployment-workspace.js +123 -0
- package/lib/client/index.js +11 -74
- package/lib/client/locales.d.ts +7 -0
- package/lib/client/locales.js +12 -6
- package/lib/client/permission-controller.d.ts +1 -0
- package/lib/client/permission-controller.js +3 -2
- package/lib/client/permission-locales.d.ts +25 -0
- package/lib/client/permission-locales.js +24 -4
- package/lib/client/session-labels.js +4 -3
- package/lib/client/styles.d.ts +1 -1
- package/lib/client/styles.js +9 -8
- package/lib/client.js +2716 -2364
- package/lib/commands.js +2 -0
- package/lib/config-file-store.d.ts +3 -0
- package/lib/config-file-store.js +4 -2
- package/lib/config-revision.d.ts +5 -0
- package/lib/config-revision.js +11 -0
- package/lib/core-permission-authority.js +11 -41
- package/lib/deployment-config.d.ts +9 -2
- package/lib/deployment-config.js +35 -8
- package/lib/deployment-permission-rules.js +19 -7
- package/lib/dsh-types.d.ts +1 -1
- package/lib/host-llm-startup.js +3 -3
- package/lib/host-llm.d.ts +9 -3
- package/lib/host-llm.js +48 -8
- package/lib/index.d.ts +17 -21
- package/lib/index.js +131 -430
- package/lib/lifetime.d.ts +4 -0
- package/lib/lifetime.js +22 -0
- package/lib/live-pi-ai-owner.d.ts +1 -0
- package/lib/live-pi-ai-owner.js +8 -4
- package/lib/mode.d.ts +3 -2
- package/lib/mode.js +28 -41
- package/lib/model-routing.d.ts +2 -8
- package/lib/model-routing.js +59 -175
- package/lib/native-admission.d.ts +56 -0
- package/lib/native-admission.js +313 -0
- package/lib/native-pi-ai-wire.d.ts +3 -1
- package/lib/native-pi-ai-wire.js +47 -13
- package/lib/permission-control.d.ts +0 -3
- package/lib/permission-rpc.js +3 -3
- package/lib/preset-registry.js +3 -2
- package/lib/preset-skills.d.ts +3 -12
- package/lib/preset-skills.js +28 -58
- package/lib/profile-diagnostics.d.ts +1 -1
- package/lib/profile-diagnostics.js +2 -2
- package/lib/profile-remote.js +61 -22
- package/lib/profile-rpc.d.ts +4 -3
- package/lib/profile-rpc.js +39 -41
- package/lib/profile-runtime.d.ts +31 -74
- package/lib/profile-runtime.js +224 -639
- package/lib/profile-store.d.ts +18 -6
- package/lib/profile-store.js +106 -64
- package/lib/profile-types.d.ts +18 -4
- package/lib/profiles.d.ts +3 -1
- package/lib/profiles.js +9 -7
- package/lib/prompt-content.d.ts +1 -0
- package/lib/prompt-content.js +4 -1
- package/lib/prompts.d.ts +2 -12
- package/lib/prompts.js +11 -66
- package/lib/role-control-remote.d.ts +1 -4
- package/lib/role-control-remote.js +8 -36
- package/lib/role-control-rpc.d.ts +10 -36
- package/lib/role-control-rpc.js +112 -265
- package/lib/role-control-types.d.ts +3 -26
- package/lib/role-control-types.js +3 -4
- package/lib/role-identity.d.ts +5 -0
- package/lib/role-identity.js +10 -0
- package/lib/role-invocation.d.ts +2 -2
- package/lib/role-llm-runtime.js +5 -11
- package/lib/role-policy.d.ts +19 -53
- package/lib/role-policy.js +136 -525
- package/lib/role-providers.d.ts +5 -8
- package/lib/role-providers.js +20 -126
- package/lib/role-routing.d.ts +1 -3
- package/lib/role-routing.js +24 -34
- package/lib/role-subagents.d.ts +5 -14
- package/lib/role-subagents.js +149 -97
- package/lib/runtime-integration.d.ts +5 -109
- package/lib/runtime-integration.js +11 -779
- package/lib/session-metadata.d.ts +13 -12
- package/lib/session-metadata.js +6 -31
- package/lib/session-scope.js +6 -2
- package/lib/settings.d.ts +5 -18
- package/lib/settings.js +19 -43
- package/lib/state.d.ts +3 -2
- package/lib/state.js +26 -10
- package/lib/status.d.ts +1 -9
- package/lib/status.js +3 -55
- package/lib/web-fetch-address-policy.d.ts +24 -0
- package/lib/web-fetch-address-policy.js +189 -0
- package/lib/web-fetch-fakeip.d.ts +25 -0
- package/lib/web-fetch-fakeip.js +107 -0
- package/package.json +133 -113
- package/docs/research/deepseek-v4-pro.md +0 -74
- package/docs/research/oh-dsh.md +0 -96
- package/lib/child-admission.d.ts +0 -42
- package/lib/child-admission.js +0 -162
- package/lib/delivery-authority.d.ts +0 -68
- package/lib/delivery-authority.js +0 -260
- package/lib/legacy-child-policy.d.ts +0 -51
- package/lib/legacy-child-policy.js +0 -123
- package/lib/legacy-read-composition.d.ts +0 -20
- package/lib/legacy-read-composition.js +0 -144
- package/lib/legacy-read-contracts.d.ts +0 -157
- package/lib/legacy-read-contracts.js +0 -39
- package/lib/legacy-read-host.d.ts +0 -19
- package/lib/legacy-read-host.js +0 -67
- package/lib/legacy-read-integration.d.ts +0 -121
- package/lib/legacy-read-integration.js +0 -522
- package/lib/legacy-read-proxy.d.ts +0 -26
- package/lib/legacy-read-proxy.js +0 -237
- package/lib/native-child-evidence.d.ts +0 -42
- package/lib/native-child-evidence.js +0 -133
- package/lib/role-runs.d.ts +0 -135
- package/lib/role-runs.js +0 -304
- package/lib/session-persistence.d.ts +0 -35
- package/lib/session-persistence.js +0 -304
- package/lib/subagent-runtime.d.ts +0 -45
- package/lib/subagent-runtime.js +0 -131
- package/prompts/deepseek-flash.md +0 -11
- package/prompts/deepseek-v4-pro.md +0 -14
- package/scripts/cold-profile-composition.mjs +0 -329
- package/scripts/cold-profile-sources.mjs +0 -238
- package/scripts/migrate-cold-profile.mjs +0 -315
- package/scripts/repair-session-log.mjs +0 -476
- package/scripts/session-repair-native-verifier.mjs +0 -367
package/lib/client/index.js
CHANGED
|
@@ -6,16 +6,14 @@ import { PROFILE_STYLES } from "./styles.js";
|
|
|
6
6
|
import { SessionProfiles } from "./SessionProfiles.js";
|
|
7
7
|
import { DeploymentController } from "./deployment-controller.js";
|
|
8
8
|
import { DeploymentPage } from "./DeploymentPage.js";
|
|
9
|
+
import { deploymentWorkspace } from "./deployment-workspace.js";
|
|
9
10
|
import { DEPLOYMENT_NS, deploymentEn, deploymentZh } from "./deployment-locales.js";
|
|
10
11
|
import { ROLE_CONTROL_REMOTE } from "../role-control-remote.js";
|
|
11
|
-
import { ChildrenController } from "./children-controller.js";
|
|
12
|
-
import { ChildrenPanel } from "./ChildrenPanel.js";
|
|
13
|
-
import { CHILDREN_NS, childrenLocaleEn, childrenLocaleZh } from "./children-locales.js";
|
|
14
12
|
import { PERMISSION_REMOTE } from "../permission-remote.js";
|
|
15
13
|
import { permissionClient } from "./permission-client.js";
|
|
16
14
|
import { PermissionController } from "./permission-controller.js";
|
|
17
|
-
import { PermissionsPanel } from "./PermissionsPanel.js";
|
|
18
15
|
import { PERMISSIONS_NS, permissionEn, permissionZh } from "./permission-locales.js";
|
|
16
|
+
import { registerRoleToolViews } from "./RoleToolView.js";
|
|
19
17
|
export { ProfilesController, NEW_PROFILE_CONTENT } from "./controller.js";
|
|
20
18
|
export { ProfilesSection } from "./ProfilesSection.js";
|
|
21
19
|
export { NS, en, zh } from "./locales.js";
|
|
@@ -28,24 +26,13 @@ export { ROLE_CONTROL_REMOTE } from "../role-control-remote.js";
|
|
|
28
26
|
/** No self-dependency on a namespace that this contribution has not mounted. */
|
|
29
27
|
export const inject = ["slots", "locale", "remote"];
|
|
30
28
|
export async function apply(ctx) {
|
|
29
|
+
registerRoleToolViews(ctx);
|
|
31
30
|
await ctx.remote.$mount(TYPERT_REMOTE);
|
|
32
31
|
await ctx.remote.$mount(ROLE_CONTROL_REMOTE);
|
|
33
32
|
await ctx.remote.$mount(PERMISSION_REMOTE);
|
|
34
33
|
const permissions = new PermissionController();
|
|
35
34
|
ctx.effect(() => () => permissions.dispose(), "dsmm: permission controls");
|
|
36
35
|
ctx.effect(() => ctx.locale.register(PERMISSIONS_NS, { en: permissionEn, zh: permissionZh }), "dsmm: permission locale");
|
|
37
|
-
ctx.effect(() => {
|
|
38
|
-
const style = document.createElement("style");
|
|
39
|
-
style.dataset.dsmmPermissions = "";
|
|
40
|
-
style.textContent = PROFILE_STYLES;
|
|
41
|
-
document.head.append(style);
|
|
42
|
-
return () => style.remove();
|
|
43
|
-
}, "dsmm: permission styles");
|
|
44
|
-
const permissionInject = () => ({ controller: permissions }), permissionT = ctx.locale.bind(PERMISSIONS_NS);
|
|
45
|
-
ctx.slots.inject("settings.section", () => ctx.slots.register({ name: "settings.section", id: "dsmm-permissions", order: 35,
|
|
46
|
-
label: () => permissionT("title"), locale: PERMISSIONS_NS, inject: permissionInject }, PermissionsPanel));
|
|
47
|
-
ctx.slots.inject("conversation.view", () => ctx.slots.register({ name: "conversation.view", id: "dsmm-permissions", order: 35,
|
|
48
|
-
label: () => permissionT("title"), locale: PERMISSIONS_NS, inject: permissionInject }, PermissionsPanel));
|
|
49
36
|
void ctx.inject(["connection"], connectionCtx => {
|
|
50
37
|
const handle = connectionCtx.connection, invoke = permissionClient(handle);
|
|
51
38
|
const update = () => { const generation = handle.generation.getSnapshot(); permissions.bindConnection(generation === undefined ? null : invoke, generation); };
|
|
@@ -76,46 +63,10 @@ export async function apply(ctx) {
|
|
|
76
63
|
});
|
|
77
64
|
let deployment = null;
|
|
78
65
|
let profiles = null;
|
|
79
|
-
let children = null;
|
|
80
|
-
const observeChildAdmission = () => {
|
|
81
|
-
const session = profiles?.store.getSnapshot().session;
|
|
82
|
-
if (session !== null && session !== undefined)
|
|
83
|
-
children?.observeAdmission(session.sessionId, session.admissionEpoch);
|
|
84
|
-
};
|
|
85
|
-
await ctx.inject(["remote.dsmmChildren"], childCtx => {
|
|
86
|
-
const controller = new ChildrenController(childCtx.remote.dsmmChildren);
|
|
87
|
-
children = controller;
|
|
88
|
-
childCtx.effect(() => () => { children = null; controller.dispose(); }, "dsmm: child controls");
|
|
89
|
-
childCtx.effect(() => childCtx.locale.register(CHILDREN_NS, { en: childrenLocaleEn, zh: childrenLocaleZh }), "dsmm: child locale");
|
|
90
|
-
childCtx.effect(() => {
|
|
91
|
-
const style = document.createElement("style");
|
|
92
|
-
style.dataset.dsmmChildren = "";
|
|
93
|
-
style.textContent = PROFILE_STYLES;
|
|
94
|
-
document.head.append(style);
|
|
95
|
-
return () => style.remove();
|
|
96
|
-
}, "dsmm: child styles");
|
|
97
|
-
const t = childCtx.locale.bind(CHILDREN_NS);
|
|
98
|
-
childCtx.slots.inject("conversation.view", () => childCtx.slots.register({ name: "conversation.view", id: "dsmm-children", order: 30,
|
|
99
|
-
label: () => t("title"), locale: CHILDREN_NS, inject: () => ({ hooks: { children: controller.store }, ...controller.actions }) }, ChildrenPanel));
|
|
100
|
-
void childCtx.inject(["connection"], connectionCtx => {
|
|
101
|
-
const handle = connectionCtx.connection;
|
|
102
|
-
const update = () => { const generation = handle.generation.getSnapshot(); controller.bindConnection(generation === undefined ? null : handle, generation); };
|
|
103
|
-
update();
|
|
104
|
-
connectionCtx.effect(() => handle.generation.subscribe(update));
|
|
105
|
-
connectionCtx.effect(() => () => controller.bindConnection(null), "dsmm: child connection withdrawal");
|
|
106
|
-
});
|
|
107
|
-
void childCtx.inject(["uiSession", "sessions"], sessionCtx => {
|
|
108
|
-
const source = sessionCtx.uiSession.adapter.current, nativeSessions = sessionCtx.sessions;
|
|
109
|
-
const update = () => { const id = source.getSnapshot().key; controller.bindScope(id ?? null, id === undefined ? null : nativeSessions.binding(id) ?? null); observeChildAdmission(); };
|
|
110
|
-
update();
|
|
111
|
-
sessionCtx.effect(() => source.subscribe(update));
|
|
112
|
-
sessionCtx.effect(() => () => controller.bindScope(null, null), "dsmm: child session withdrawal");
|
|
113
|
-
});
|
|
114
|
-
observeChildAdmission();
|
|
115
|
-
});
|
|
116
66
|
// This core-owned graph must not depend on DW, named profiles or a session.
|
|
117
67
|
await ctx.inject(["remote.dsmmConfig"], (coreCtx) => {
|
|
118
68
|
const core = new DeploymentController(coreCtx.remote.dsmmConfig, "global");
|
|
69
|
+
const workspace = deploymentWorkspace(core, permissions);
|
|
119
70
|
void coreCtx.inject(["connection"], connectionCtx => {
|
|
120
71
|
core.bindConnection(connectionCtx.connection.generation);
|
|
121
72
|
void core.refresh();
|
|
@@ -123,7 +74,7 @@ export async function apply(ctx) {
|
|
|
123
74
|
deployment = core;
|
|
124
75
|
if (profiles !== null)
|
|
125
76
|
core.setSession(profiles.store.getSnapshot().session);
|
|
126
|
-
coreCtx.effect(() => () => { deployment = null; core.dispose(); }, "dsmm: core settings editor");
|
|
77
|
+
coreCtx.effect(() => () => { deployment = null; workspace.dispose(); core.dispose(); }, "dsmm: core settings editor");
|
|
127
78
|
coreCtx.effect(() => coreCtx.locale.register(DEPLOYMENT_NS, { en: deploymentEn, zh: deploymentZh }), "dsmm: core locale");
|
|
128
79
|
coreCtx.effect(() => {
|
|
129
80
|
const style = document.createElement("style");
|
|
@@ -132,33 +83,19 @@ export async function apply(ctx) {
|
|
|
132
83
|
document.head.append(style);
|
|
133
84
|
return () => style.remove();
|
|
134
85
|
}, "dsmm: core styles");
|
|
135
|
-
const
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
// Native ConfigForms owns its transport/authority; absent service leaves only core controls.
|
|
86
|
+
const inject = () => ({ core, remote: coreCtx.remote.dsmmConfig, workspace });
|
|
87
|
+
coreCtx.slots.inject("plugins.bundle.config", () => coreCtx.slots.register({ name: "plugins.bundle.config", key: "@dsmm/dsmm", locale: DEPLOYMENT_NS, inject }, DeploymentPage));
|
|
88
|
+
// The canonical bundle owner passes only view. Namespace comes from the authenticated snapshot.
|
|
139
89
|
void coreCtx.inject(["configForms"], formCtx => {
|
|
140
|
-
|
|
141
|
-
formCtx.
|
|
142
|
-
let namespace = null, disposeRow;
|
|
143
|
-
const registerRow = () => {
|
|
144
|
-
const next = core.getSnapshot().snapshot?.namespace ?? null;
|
|
145
|
-
if (next === namespace)
|
|
146
|
-
return;
|
|
147
|
-
disposeRow?.();
|
|
148
|
-
namespace = next;
|
|
149
|
-
if (next !== null)
|
|
150
|
-
disposeRow = formCtx.slots.inject("plugins.row.config", () => formCtx.slots.register({ name: "plugins.row.config", key: `@dsmm/dsmm#${next}`, locale: DEPLOYMENT_NS, inject: () => ({ ...injectProfile(), rowNamespace: next }) }, DeploymentPage));
|
|
151
|
-
};
|
|
152
|
-
registerRow();
|
|
153
|
-
formCtx.effect(() => core.subscribe(registerRow));
|
|
154
|
-
formCtx.effect(() => () => disposeRow?.());
|
|
90
|
+
workspace.bindForms(formCtx.configForms);
|
|
91
|
+
formCtx.effect(() => () => workspace.bindForms(null));
|
|
155
92
|
});
|
|
156
93
|
void core.refresh();
|
|
157
94
|
});
|
|
158
95
|
await ctx.inject(["remote.dsmmProfiles"], (profileCtx) => {
|
|
159
96
|
const controller = new ProfilesController(profileCtx.remote.dsmmProfiles);
|
|
160
97
|
profiles = controller;
|
|
161
|
-
profileCtx.effect(() => controller.store.subscribe(() => { deployment?.setSession(controller.store.getSnapshot().session);
|
|
98
|
+
profileCtx.effect(() => controller.store.subscribe(() => { deployment?.setSession(controller.store.getSnapshot().session); }));
|
|
162
99
|
profileCtx.effect(() => () => { profiles = null; deployment?.setSession(null); });
|
|
163
100
|
profileCtx.effect(() => () => controller.dispose(), "dsmm: profile editor");
|
|
164
101
|
profileCtx.effect(() => profileCtx.locale.register(NS, { en, zh }), "dsmm: profile locale");
|
package/lib/client/locales.d.ts
CHANGED
|
@@ -61,6 +61,8 @@ export declare const en: {
|
|
|
61
61
|
headerCompactProfiles: string;
|
|
62
62
|
headerCompactRefresh: string;
|
|
63
63
|
headerNoSession: string;
|
|
64
|
+
sessionNewRequired: string;
|
|
65
|
+
sessionModuleOff: string;
|
|
64
66
|
headerModeEnable: string;
|
|
65
67
|
headerModeDisable: string;
|
|
66
68
|
headerModePreset: string;
|
|
@@ -99,6 +101,11 @@ export declare const en: {
|
|
|
99
101
|
dirty: string;
|
|
100
102
|
savedNotApplied: string;
|
|
101
103
|
savedApplied: string;
|
|
104
|
+
versionObserved: string;
|
|
105
|
+
versionAbsent: string;
|
|
106
|
+
versionUnknown: string;
|
|
107
|
+
savedRelationshipUnknown: string;
|
|
108
|
+
savedRefreshRequired: string;
|
|
102
109
|
saved: string;
|
|
103
110
|
applied: string;
|
|
104
111
|
resetDone: string;
|
package/lib/client/locales.js
CHANGED
|
@@ -8,9 +8,11 @@ export const en = {
|
|
|
8
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
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
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}.", 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.",
|
|
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
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.",
|
|
13
13
|
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.",
|
|
14
16
|
headerModeEnable: "Enable Deepwork", headerModeDisable: "Disable Deepwork", headerModePreset: "Deepwork · DW preset", headerModeUnavailable: "Deepwork unavailable", headerModeOn: "Deepwork enabled.", headerModeOff: "Deepwork disabled.", headerUseCurrentModel: "Use profile model",
|
|
15
17
|
title: "Deepwork Profiles", description: "Save independent runtime configurations and choose which one new sessions use.",
|
|
16
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.",
|
|
@@ -24,7 +26,8 @@ export const en = {
|
|
|
24
26
|
baseline: "Applied to new sessions: deployment baseline.", appliedProfile: "Applied to new sessions: {id} (revision {revision}).",
|
|
25
27
|
appliedInvalid: "The stored selection cannot be confirmed. Existing sessions remain unchanged. Resolve the Host diagnostic before applying or resetting a profile.",
|
|
26
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.",
|
|
27
|
-
dirty: "Draft differs from the saved
|
|
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.",
|
|
28
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.",
|
|
29
32
|
discardPrompt: "Discard the unsaved draft before changing the editor?", discard: "Discard changes", cancel: "Cancel",
|
|
30
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.",
|
|
@@ -45,7 +48,7 @@ export const en = {
|
|
|
45
48
|
noSession: "No native session is selected. Applying to the current session is unavailable.",
|
|
46
49
|
sessionUnavailable: "The current session could not be confirmed. Refresh its state before retrying; the prior policy is kept.",
|
|
47
50
|
sessionBusy: "Switching is unavailable: {reason}. The Host must reserve a truly idle ordinary session before applying.",
|
|
48
|
-
sessionState: "
|
|
51
|
+
sessionState: "Current admission: {profile}; scope {scope}.", sessionBaseline: "deployment baseline",
|
|
49
52
|
sessionGlobalCaptured: "captured admission (exact profile identity unavailable)",
|
|
50
53
|
sessionAdmittedProfile: "{id} (revision {revision})", sessionFutureDefault: "Global default for future unscoped sessions: {profile}. This does not change this session's admission.",
|
|
51
54
|
sessionConflict: "The session selection or admission epoch changed elsewhere. The prior display and draft are kept. Refresh current-session state before applying again.",
|
|
@@ -76,9 +79,11 @@ export const zh = {
|
|
|
76
79
|
toolTopology: "子 Agent 工具拓扑", topologyHint: "per-role 暴露角色工具及类别入口;parameterized 暴露角色与类别参数化入口。省略时继承部署(默认 per-role)。后台、深度及路由覆盖权限仅可在部署中配置。",
|
|
77
80
|
levelName: "调用资源等级:{level}", levelMode: "{level} 覆盖", levelUnconfigured: "未配置或继承部署等级", levelEffortOnly: "仅精确推理强度", levelFullRoute: "完整提供商与模型路由", normalLevel: "normal · 默认路由(只读别名;省略即 normal)", orchestratorLevels: "普通 orchestrator 根会话没有调用等级,不改变其原生模型。", levelsHint: "等级代表调用资源,不代表流程等级。请求未配置等级会被拒绝;仅强度覆盖使用已解析模型;完整路由同时替换模型和强度。",
|
|
78
81
|
namedRole: "{name} 的具名配置可用性", namedRoleHint: "省略时继承已捕获部署上限。必需角色不可禁用;启用请求不能突破启动或部署限制。禁用角色仍可编辑路由。", availabilityUnknown: "角色可用性元数据不可用,不能猜测必需集合或启动与部署上限。请求更改可用性前请刷新。", roleRequired: "必需角色 · {reason}", roleOptional: "可选角色", roleCeiling: "启动:{startup};部署:{deployment};捕获准入:{admitted}。", roleProvenance: "来源:{source};捕获:{capture}。", roleUnavailableReason: "可用性原因:{reason}。",
|
|
79
|
-
admittedRoles: "已捕获角色可用性", bindingUnknown: "尚未确认子 Agent 运行时绑定,不能从配置推断投递守卫已就绪。", bindingState: "捕获的子 Agent 绑定:{binding};投递守卫:{ready};需重启:{restart}
|
|
82
|
+
admittedRoles: "已捕获角色可用性", bindingUnknown: "尚未确认子 Agent 运行时绑定,不能从配置推断投递守卫已就绪。", bindingState: "捕获的子 Agent 绑定:{binding};投递守卫:{ready};需重启:{restart}。守卫就绪不证明持久化或 child 委派支持。", bindingReason: "绑定原因:{reason}。", sessionModelHint: "应用或固定基线保留原生根模型和已有子会话。只有「使用配置档模型」会明确请求原生模型切换。", savedOnlyHint: "选择编辑器对应的已保存固定修订,而不是脏草稿。保存不会选择或应用。",
|
|
80
83
|
centralOrigin: "具名资源:共享中央存储。", legacyOrigin: "具名资源:旧原生配置存储(只读)。", explicitOrigin: "具名资源:显式指定的存储。", readOnlyOrigin: "此旧存储只读,不复制或迁移文件;选择与当前会话操作仍使用各自的权限。",
|
|
81
84
|
headerCompactProfiles: "配置档 · 保留模型", headerCompactRefresh: "刷新", headerNoSession: "选择会话后可更改。",
|
|
85
|
+
sessionNewRequired: "应用配置档或基线需要新会话。仍可保存配置档或设置未来默认。",
|
|
86
|
+
sessionModuleOff: "此会话捕获的模块设置不允许使用 Deepwork。",
|
|
82
87
|
headerModeEnable: "启用 Deepwork", headerModeDisable: "关闭 Deepwork", headerModePreset: "Deepwork · DW 预设", headerModeUnavailable: "Deepwork 不可用", headerModeOn: "Deepwork 已启用。", headerModeOff: "Deepwork 已关闭。", headerUseCurrentModel: "使用配置档模型",
|
|
83
88
|
title: "Deepwork 配置档", description: "保存独立的运行时配置,并选择新会话使用的配置档。",
|
|
84
89
|
newSessions: "此固定修订仅作为未来会话默认值。当前准入与已有子会话不变;明确的会话选择保留自己的权限。",
|
|
@@ -92,7 +97,8 @@ export const zh = {
|
|
|
92
97
|
baseline: "新会话使用:部署基线。", appliedProfile: "新会话使用:{id}(修订 {revision})。",
|
|
93
98
|
appliedInvalid: "无法确认保存的选择。已有会话未改变。请先解决 Host 诊断,再应用或重置配置档。",
|
|
94
99
|
selectionConflict: "保存的选择已被此 Host 之外的操作修改。此 Host 的新会话仍使用上方策略。请应用已保存配置档或重置为基线以协调选择;重启将采用保存的选择。已有会话未改变。",
|
|
95
|
-
dirty: "
|
|
100
|
+
dirty: "草稿与保存版本不同。选择前请保存或明确丢弃。", savedNotApplied: "保存的来源版本与未来默认记录不同,或尚未选择此配置档。", savedApplied: "保存的来源版本与未来默认记录一致,但未必是当前准入。",
|
|
101
|
+
versionObserved: "已观测元数据", versionAbsent: "未存储", versionUnknown: "版本不可用", savedRelationshipUnknown: "已保存;与所选来源版本的关系未知,请刷新核对当前元数据。", savedRefreshRequired: "已提交——请重新加载受影响的来源后再编辑或选择,不会自动重放。",
|
|
96
102
|
saved: "已保存 {id},未改变已应用的策略。", applied: "已为新会话应用 {id},已有会话未改变。", resetDone: "已为新会话重置为部署基线,已有会话未改变。",
|
|
97
103
|
discardPrompt: "切换编辑器之前,是否丢弃未保存的草稿?", discard: "丢弃更改", cancel: "取消",
|
|
98
104
|
conflict: "已保存文件或选择已被其他操作修改。草稿和原选择已保留。请刷新配置档,然后重新加载已保存配置档或检查草稿后重试。",
|
|
@@ -109,7 +115,7 @@ export const zh = {
|
|
|
109
115
|
headerModelChoiceChanged: "配置档已应用,已保留更新的原生模型选择。",
|
|
110
116
|
headerActivationRefused: "配置档启用被拒绝,请检查其配置和原生模型目录。", headerSelectionRefused: "无法确认配置档更改。", headerIssueCode: "原因:{code}。", headerIssueField: "配置字段:{field}。", headerRetryHint: "请刷新配置档和当前会话状态,在设置或原生模型页解决所示问题,然后在会话空闲时重试。",
|
|
111
117
|
headerMaintenanceRefused: "原生维护正在占用此会话,原配置档已保留。", headerBusyRefused: "会话正在运行,原配置档已保留。", headerCancelledRefused: "配置档请求已取消,请刷新当前会话状态后重试,不要假定更改已完成。", headerUnavailableRefused: "原生会话或配置档服务不可用,请重新连接并刷新后重试。", headerWaitRetryHint: "请等待原生运行或维护结束,然后刷新并重试。不会自动排队应用配置档。",
|
|
112
|
-
noSession: "未选择原生会话。无法应用到当前会话。", sessionUnavailable: "无法确认当前会话。重试前请刷新状态;原策略已保留。", sessionBusy: "暂不可切换:{reason}。Host 必须先保留真正空闲的普通会话。", sessionState: "
|
|
118
|
+
noSession: "未选择原生会话。无法应用到当前会话。", sessionUnavailable: "无法确认当前会话。重试前请刷新状态;原策略已保留。", sessionBusy: "暂不可切换:{reason}。Host 必须先保留真正空闲的普通会话。", sessionState: "当前准入:{profile};范围 {scope}。", sessionBaseline: "部署基线",
|
|
113
119
|
sessionGlobalCaptured: "已捕获准入(精确配置档身份不可用)",
|
|
114
120
|
sessionAdmittedProfile: "{id}(修订 {revision})", sessionFutureDefault: "未来没有独立选择的会话的全局默认值:{profile}。这不会改变当前会话的准入。",
|
|
115
121
|
sessionConflict: "会话选择或准入代次已在其他位置改变。原显示和草稿已保留。再次应用前请刷新当前会话状态。",
|
|
@@ -51,6 +51,7 @@ export declare class PermissionController {
|
|
|
51
51
|
private schedule;
|
|
52
52
|
private issue;
|
|
53
53
|
private synchronized;
|
|
54
|
+
canEdit(generation: number): boolean;
|
|
54
55
|
canSave(generation: number): boolean;
|
|
55
56
|
refresh(generation: number, discard?: boolean): Promise<void>;
|
|
56
57
|
edit(generation: number, patch: Partial<PermissionDraft>): void;
|
|
@@ -76,7 +76,8 @@ export class PermissionController {
|
|
|
76
76
|
const value = this.state.rules;
|
|
77
77
|
return value !== null && value.runtime.state === "synced" && value.runtime.savedRevision === value.snapshot.revision && value.runtime.runtimeRevision === value.snapshot.revision;
|
|
78
78
|
}
|
|
79
|
-
|
|
79
|
+
canEdit(generation) { return this.live(generation) && this.state.rulesIssue === null && this.synchronized() && this.state.busy === null; }
|
|
80
|
+
canSave(generation) { return this.canEdit(generation) && !this.state.reading && this.state.dirty && this.state.draft?.editor === null; }
|
|
80
81
|
async refresh(generation, discard = false) {
|
|
81
82
|
if (!this.live(generation) || this.state.reading || this.state.busy !== null)
|
|
82
83
|
return;
|
|
@@ -98,7 +99,7 @@ export class PermissionController {
|
|
|
98
99
|
this.schedule();
|
|
99
100
|
}
|
|
100
101
|
edit(generation, patch) {
|
|
101
|
-
if (this.
|
|
102
|
+
if (!this.canEdit(generation) || this.state.draft === null)
|
|
102
103
|
return;
|
|
103
104
|
const draft = { ...this.state.draft, ...patch };
|
|
104
105
|
this.publish({ draft, notice: null });
|
|
@@ -34,6 +34,31 @@ export declare const permissionEn: {
|
|
|
34
34
|
tree: string;
|
|
35
35
|
networkLimit: string;
|
|
36
36
|
rulesHint: string;
|
|
37
|
+
configPolicyHint: string;
|
|
38
|
+
configRulesHint: string;
|
|
39
|
+
coldHint: string;
|
|
40
|
+
nativeCommands: string;
|
|
41
|
+
nativeCommandsHint: string;
|
|
42
|
+
registrationUnresolved: string;
|
|
43
|
+
entryId: string;
|
|
44
|
+
tool: string;
|
|
45
|
+
nativeExecutable: string;
|
|
46
|
+
subcommand: string;
|
|
47
|
+
args: string;
|
|
48
|
+
sandboxMode: string;
|
|
49
|
+
mode: string;
|
|
50
|
+
addEntry: string;
|
|
51
|
+
removeEntry: string;
|
|
52
|
+
noEntries: string;
|
|
53
|
+
unset: string;
|
|
54
|
+
inheritedEntries: string;
|
|
55
|
+
explicitEntries: string;
|
|
56
|
+
invalidEntry: string;
|
|
57
|
+
rulesUnavailable: string;
|
|
58
|
+
invalidArgsHint: string;
|
|
59
|
+
observedPolicy: string;
|
|
60
|
+
profileOverrideState: string;
|
|
61
|
+
profileOverrideUnknown: string;
|
|
37
62
|
matchHint: string;
|
|
38
63
|
source: string;
|
|
39
64
|
recordVersion: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export const PERMISSIONS_NS = "settings.dsmm-permissions";
|
|
2
2
|
export const permissionEn = {
|
|
3
3
|
title: "Permission control", rules: "Global permission rules",
|
|
4
|
-
nativeApproval: "Command approval uses the native prompt.
|
|
4
|
+
nativeApproval: "Command approval uses the native prompt; ordinary Allow is once only. Deployment permission settings and exact nativeCommands are in this Permissions module. Choose Global or Current DSH profile above; Root rules below save independently.",
|
|
5
5
|
root: "Selected native Root session", noRoot: "Select a trusted Root session in native session navigation. No Root is inferred from task or model text.",
|
|
6
6
|
child: "This is a child session. Select its Root in native session navigation to edit Global rules.",
|
|
7
7
|
unknown: "Unavailable / unknown", reading: "Reading…", busy: "Operation pending…",
|
|
@@ -11,7 +11,17 @@ export const permissionEn = {
|
|
|
11
11
|
"kind:outside-read": "Outside-workspace read", "kind:shell": "Shell operation", "kind:webSearch": "Web search", "kind:webFetch": "Web fetch",
|
|
12
12
|
path: "Canonical path", pathScope: "Path match", exact: "Exact path", tree: "Path and descendants",
|
|
13
13
|
networkLimit: "SDK network boundary: allowing public web fetch does not allow private-network destinations. These web policies are not an all-shell or socket firewall.",
|
|
14
|
-
rulesHint: "
|
|
14
|
+
rulesHint: "This Save uses the trusted Root’s Global rules CAS authority. Native dynamic permission overrides can refuse this RPC: edit or Unset them in the profile scope above, then refresh Root rules. No fallback Global write bypasses a refusal. Enabled and nativeCommands use configuration Save, not this Root transaction.",
|
|
15
|
+
configPolicyHint: "Sparse permission settings: Global Unset restores built-in defaults; profile Unset inherits Global plus any Host base pin. Profile overrides win over Global. Arrays replace as a whole. Config Save does not bypass Root/operator/readonly checks or prove runtime synchronization; inspect saved/startup/admitted state below and refresh Permission control for live coverage.",
|
|
16
|
+
configRulesHint: "Persisted rule records (exact schema, including source/revision/revoked). Edit existing records or supply valid import provenance; this config editor does not mint verified operator approval. Empty array explicitly replaces inherited records; Unset restores inheritance. The Root rules editor can stamp verified operator changes when its authority is writable.",
|
|
17
|
+
coldHint: "Enabled is a cold switch (default On). Saving requires an independent Host restart to change mounting; it does not remove current protection. Restart may cancel sessions.",
|
|
18
|
+
nativeCommands: "Exact native command entries", nativeCommandsHint: "Default Off. Each entry matches tool, executable, optional subcommand, ordered args, workingDirectory and sandboxMode exactly; no wildcards, command parsing or normalization. Allow cannot override downstream Ask/Deny or role readonly. New entries use Ask and workspace-write; no full-access grant is generated.",
|
|
19
|
+
registrationUnresolved: "Native command registration / executor identity is unresolved here. A trusted kind:shell tool name is not proof of a nativeCommands bash/pwsh executor, executable, environment or sandbox. Enter only independently verified exact values; nothing is auto-filled or certified by this UI. Stale scope, controller or registration is still rejected by the Host.",
|
|
20
|
+
entryId: "Entry ID", tool: "Tool (exact)", nativeExecutable: "Executable (exact)", subcommand: "Subcommand (optional; blank omits)", args: "Ordered arguments (JSON string array)", sandboxMode: "Sandbox mode (exact)", mode: "Native action", addEntry: "Add exact entry", removeEntry: "Remove entry", noEntries: "No exact command entries.", unset: "Unset — restore inheritance", inheritedEntries: "Inherited entries; editing pins a replacement array in this layer.", explicitEntries: "Explicit replacement array in this layer.", invalidEntry: "Invalid exact entry: use unique nonblank IDs, exact nonblank strings, an absolute Host working directory, and a JSON string array. Draft retained; Save locked.",
|
|
21
|
+
rulesUnavailable: "Global rules are not editable until a trusted, open Root and writable local operator authority return a synchronized policy. A refusal is not an empty rules list. Edit or Unset native overrides in this module’s profile scope; there is no automatic Global-write fallback.",
|
|
22
|
+
invalidArgsHint: "Correct invalid argument JSON before removing rows, or explicitly Unset this entire array to restore inheritance. Other fields do not discard invalid text.",
|
|
23
|
+
observedPolicy: "Last observed effective policy (may include native profile overrides; not the sparse Global document)",
|
|
24
|
+
profileOverrideState: "Native profile override state", profileOverrideUnknown: "Unknown from this Root rules response. Choose Current DSH profile above to inspect explicit overrides and inheritance. A failed Global rules Save does not clear or bypass them.",
|
|
15
25
|
matchHint: "Rules match actual canonical paths (exact/tree), the native Shell registration identity plus full command/cwd, or web kind. Rule Allow only satisfies that rule; it does not grant external writes. Different IDs add records until explicitly revoked.",
|
|
16
26
|
source: "Actual source", recordVersion: "Record version", savedAt: "Saved at", operator: "Verified Host operator", imported: "User import", active: "Active record", revoked: "Revoked record",
|
|
17
27
|
base: "Draft CAS source", savedRevision: "Saved source", runtimeRevision: "Runtime source", runtime: "Runtime synchronization", synced: "Synced", updating: "Updating", unsynced: "Unsynced — rules saves locked",
|
|
@@ -41,7 +51,7 @@ export const permissionEn = {
|
|
|
41
51
|
};
|
|
42
52
|
export const permissionZh = {
|
|
43
53
|
title: "权限控制", rules: "全局权限规则",
|
|
44
|
-
nativeApproval: "
|
|
54
|
+
nativeApproval: "命令批准使用原生提示,普通 Allow 仅批准本次。部署权限配置与精确 nativeCommands 在本权限模块内;上方选择 Global 或当前 DSH 配置,下面的 Root 规则独立保存。",
|
|
45
55
|
root: "当前原生 Root 会话", noRoot: "请在原生会话导航中选择可信 Root 会话;不从任务或模型文本推断 Root。", child: "当前为 child 会话;编辑全局规则请在原生导航选择其 Root。",
|
|
46
56
|
unknown: "不可用/未知", reading: "正在读取…", busy: "操作处理中…",
|
|
47
57
|
executable: "原生 Shell 注册身份(精确匹配)", command: "完整命令(精确匹配)", cwd: "工作目录(精确匹配)", id: "规则 ID", action: "规则动作", match: "匹配类型",
|
|
@@ -50,7 +60,17 @@ export const permissionZh = {
|
|
|
50
60
|
"kind:outside-read": "工作区外读取", "kind:shell": "Shell 操作", "kind:webSearch": "网页搜索", "kind:webFetch": "网页抓取",
|
|
51
61
|
path: "规范路径", pathScope: "路径匹配", exact: "精确路径", tree: "此路径及子树",
|
|
52
62
|
networkLimit: "SDK 网络边界:允许 public web fetch 不代表放行私网目标;这些网页策略不是全部 Shell 或 socket 的防火墙。",
|
|
53
|
-
rulesHint: "
|
|
63
|
+
rulesHint: "此保存使用可信 Root 的 Global 规则 CAS 权限。native 动态权限覆盖可能使此 RPC 拒绝:请在上方当前配置作用域编辑或 Unset 覆盖,再刷新 Root 规则。拒绝后不会改走 Global 写入绕过。enabled 与 nativeCommands 使用配置保存,不属于此 Root 事务。",
|
|
64
|
+
configPolicyHint: "稀疏权限配置:Global 的 Unset 恢复内建默认;当前配置的 Unset 继承 Global 及宿主 base 固定值。当前配置覆盖 Global;数组整体替换。配置保存不绕过 Root/operator/只读检查,也不证明运行时同步;请核对下方保存/启动/准入状态,并在权限控制页刷新实时覆盖。",
|
|
65
|
+
configRulesHint: "持久规则记录(精确 schema,包含 source/revision/revoked)。可编辑现有记录或提供合法导入来源;此配置编辑器不生成已核验 operator 批准。空数组显式替换继承记录;Unset 恢复继承。Root 规则编辑器仅在权限可写时写入已核验 operator 来源。",
|
|
66
|
+
coldHint: "enabled 为冷开关(默认开启),保存后需另行重启宿主才改变挂载;不会移除当前保护。重启可能取消会话。",
|
|
67
|
+
nativeCommands: "精确原生命令条目", nativeCommandsHint: "默认关闭。每条精确匹配 tool、executable、可选 subcommand、有序 args、workingDirectory 与 sandboxMode;不使用通配符、不解析或归一化命令。Allow 不能覆盖下游 Ask/Deny 或角色只读。新条目使用 Ask 和 workspace-write,不生成完全访问授权。",
|
|
68
|
+
registrationUnresolved: "此处原生命令注册/执行器身份未解析。可信 kind:shell 工具名称不证明 nativeCommands 的 bash/pwsh 执行器、executable、环境或沙箱。仅填写独立核验的精确值;本 UI 不自动填充或认证可信身份。过期 scope、controller 或注册仍由宿主拒绝。",
|
|
69
|
+
entryId: "条目 ID", tool: "工具(精确)", nativeExecutable: "可执行程序(精确)", subcommand: "子命令(可选,留空省略)", args: "有序参数(JSON 字符串数组)", sandboxMode: "沙箱模式(精确)", mode: "原生动作", addEntry: "添加精确条目", removeEntry: "移除条目", noEntries: "没有精确命令条目。", unset: "Unset——恢复继承", inheritedEntries: "继承的条目;编辑后在此层固定为整体替换数组。", explicitEntries: "此层显式整体替换数组。", invalidEntry: "精确条目无效:ID 需唯一且非空,精确字符串不可空,工作目录为宿主绝对路径,参数为 JSON 字符串数组。草稿保留,保存已锁定。",
|
|
70
|
+
rulesUnavailable: "需可信且已打开的 Root、可写的本地 operator 权限及已同步策略,才能编辑 Global 规则。拒绝不代表空规则列表。请在本模块的当前配置作用域编辑或 Unset native 覆盖;不会自动改走 Global 写入。",
|
|
71
|
+
invalidArgsHint: "请修正无效参数 JSON 后再移除条目;也可显式 Unset 整个数组以恢复继承。修改其他字段不会丢弃无效文本。",
|
|
72
|
+
observedPolicy: "最近观测的有效策略(可能包含 native 配置覆盖,非稀疏 Global 文档)",
|
|
73
|
+
profileOverrideState: "Native 配置覆盖状态", profileOverrideUnknown: "此 Root 规则响应未提供覆盖状态。请在上方选择当前 DSH 配置,核对显式覆盖与继承;Global 规则保存失败不会清除或绕过覆盖。",
|
|
54
74
|
matchHint: "规则匹配实际规范路径、原生 Shell 注册身份+完整命令+工作目录,或网页类型。规则 Allow 仅满足该规则,不授予外部写。不同 ID 添加记录,保留至显式撤销。",
|
|
55
75
|
source: "实际来源", recordVersion: "记录版本", savedAt: "保存时间", operator: "宿主已核验 operator", imported: "用户导入", active: "有效记录", revoked: "已撤销记录",
|
|
56
76
|
base: "草稿 CAS 来源", savedRevision: "已保存来源", runtimeRevision: "运行时来源", runtime: "运行时同步", synced: "已同步", updating: "同步中", unsynced: "未同步——规则保存已锁定",
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
import { configurationVersionState } from "./configuration-display.js";
|
|
1
2
|
/** Presentation only: admitted identity never substitutes for sidecar CAS. */
|
|
2
3
|
export function sessionProfileLabels(session, t) {
|
|
3
4
|
const admitted = session.admittedSelection;
|
|
4
5
|
const profile = admitted === undefined ? t("sessionGlobalCaptured")
|
|
5
6
|
: admitted.selectedId === null ? t("sessionBaseline")
|
|
6
|
-
: t("sessionAdmittedProfile", { id: admitted.selectedId, revision: admitted.
|
|
7
|
+
: t("sessionAdmittedProfile", { id: admitted.selectedId, revision: t(configurationVersionState(admitted.sourceRevision)) });
|
|
7
8
|
const future = session.globalDefault;
|
|
8
9
|
return {
|
|
9
|
-
admitted: t("sessionState", {
|
|
10
|
-
futureDefault: t("sessionFutureDefault", { profile: future.selectedId === null ? t("sessionBaseline") : t("sessionAdmittedProfile", { id: future.selectedId, revision: future.
|
|
10
|
+
admitted: t("sessionState", { profile, scope: session.scope }),
|
|
11
|
+
futureDefault: t("sessionFutureDefault", { profile: future.selectedId === null ? t("sessionBaseline") : t("sessionAdmittedProfile", { id: future.selectedId, revision: t(configurationVersionState(future.sourceRevision)) }) }),
|
|
11
12
|
};
|
|
12
13
|
}
|
|
13
14
|
//# sourceMappingURL=session-labels.js.map
|
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-deployment .dsmm-
|
|
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-deployment-frame{display:grid;grid-template-columns:minmax(0,240px) minmax(0,1fr);gap:16px;min-width:0;align-items:start}\n.dsmm-module-list{display:flex;flex-direction:column;gap:8px;min-width:0}\n.dsmm-module-list button{justify-content:flex-start;text-align:start}\n.dsmm-module-list button[aria-expanded=true]{background:var(--dsw-alias-interactive-bg-active);border-color:var(--dsw-alias-label-secondary)}\n.dsmm-module-drawer{display:flex;flex-direction:column;gap:16px;min-width:0;width:100%;box-sizing:border-box;padding:16px;border:1px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1)}\n.dsmm-drawer-heading{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;align-items:center;min-width:0}\n.dsmm-drawer-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-scope-save{display:flex;flex-direction:column;gap:8px;padding-top:16px;border-top:1px solid var(--dsw-alias-border-l4)}\n@media(max-width:768px){.dsmm-deployment-frame{grid-template-columns:minmax(0,1fr)}.dsmm-deployment-frame[data-drawer-open=true]>.dsmm-module-list{display:none}}\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 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@media(prefers-reduced-motion:reduce){.dsmm-profiles *{transition:none!important;animation:none!important}}\n";
|
|
3
3
|
//# sourceMappingURL=styles.d.ts.map
|
package/lib/client/styles.js
CHANGED
|
@@ -54,14 +54,15 @@ export const PROFILE_STYLES = `
|
|
|
54
54
|
.dsmm-profiles :is(.dsmm-warning,.dsmm-diagnostic,.dsmm-availability){min-width:0;display:flex;flex-direction:column;gap:4px;overflow-wrap:anywhere}
|
|
55
55
|
.dsmm-profiles .dsmm-warning{border-left:4px solid var(--dsw-alias-state-warn-primary);padding:8px 12px;color:var(--dsw-alias-label-primary)}
|
|
56
56
|
.dsmm-deployment{gap:8px}
|
|
57
|
-
.dsmm-deployment
|
|
58
|
-
.dsmm-
|
|
59
|
-
.dsmm-
|
|
60
|
-
.dsmm-
|
|
61
|
-
.dsmm-
|
|
62
|
-
.dsmm-
|
|
63
|
-
.dsmm-
|
|
64
|
-
.dsmm-
|
|
57
|
+
.dsmm-deployment-frame{display:grid;grid-template-columns:minmax(0,240px) minmax(0,1fr);gap:16px;min-width:0;align-items:start}
|
|
58
|
+
.dsmm-module-list{display:flex;flex-direction:column;gap:8px;min-width:0}
|
|
59
|
+
.dsmm-module-list button{justify-content:flex-start;text-align:start}
|
|
60
|
+
.dsmm-module-list button[aria-expanded=true]{background:var(--dsw-alias-interactive-bg-active);border-color:var(--dsw-alias-label-secondary)}
|
|
61
|
+
.dsmm-module-drawer{display:flex;flex-direction:column;gap:16px;min-width:0;width:100%;box-sizing:border-box;padding:16px;border:1px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-1)}
|
|
62
|
+
.dsmm-drawer-heading{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;align-items:center;min-width:0}
|
|
63
|
+
.dsmm-drawer-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}
|
|
64
|
+
.dsmm-scope-save{display:flex;flex-direction:column;gap:8px;padding-top:16px;border-top:1px solid var(--dsw-alias-border-l4)}
|
|
65
|
+
@media(max-width:768px){.dsmm-deployment-frame{grid-template-columns:minmax(0,1fr)}.dsmm-deployment-frame[data-drawer-open=true]>.dsmm-module-list{display:none}}
|
|
65
66
|
.dsmm-deployment .dsmm-deployment-group{border-top:1px solid var(--dsw-alias-border-l4);padding-top:8px;min-width:0}
|
|
66
67
|
.dsmm-deployment .dsmm-deployment-group>div{display:flex;flex-direction:column;gap:8px;padding-top:8px}
|
|
67
68
|
.dsmm-deployment code{font-family:var(--ds-font-family-code);overflow-wrap:anywhere}
|