@dsmm/dsmm 0.3.24 → 0.3.25

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.
@@ -14,6 +14,8 @@ Optional preset materialization writes only the DSMM-owned dispatcher preset dir
14
14
 
15
15
  Managed Agent scopes supply the single role opening (`You are <display name>.`) through `harness:identity`, without a parenthesized role ID. Persona prefixes carry role guidance, not another identity opening; admitted children shadow both inherited sections. Internal role IDs remain the admission, routing and preset keys. The ordinary native identity remains unchanged outside those scopes; the override doesn't grant a role, tool or permission based on its displayed name.
16
16
 
17
+ For a non-DW preset with Deepwork active, the Agent receives the shared locale-priority guidance and the standard preset's model identity sentence becomes model-neutral. The preset's remaining persona prefix and suffix stay intact; this does not load the full DW role persona. Turning Deepwork off restores the original persona and removes the added locale-priority guidance.
18
+
17
19
  Root admission is not configurable per role: the dispatcher is the only standing root. A blank preset switch to any other DSMM role is refused because no such preset is registered, and the admitted composition stays in place. Forced creation and empty-root preset changes still require valid root admission before execution. Opting into Deepwork requires the enabled module, role and usable composition; it never grants writes. Harness's native `/plan` remains collaboration state, not a permission upgrade.
18
20
 
19
21
  Standing Orchestrator/Builder compositions include native planning, compaction/pruning, question and todo rows. Planner includes planning, compaction/pruning and questions, but no todo writer. Coding/frontend/deep/complex/cross-cutting include compaction/pruning, questions and todo; other auxiliary roles add none of those rows. Native spawn can retain parent services, so this isn't a promise to strip every inherited row from short children. Effective filters and execution fences still decide access. Native `/plan` doesn't upgrade Planner permissions, and `/compact` remains a human native command.
package/dsh-plugin.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "manifestVersion": "0.15",
4
4
  "id": "com.hugefiver.dsmm",
5
5
  "name": "DSMM",
6
- "version": "0.3.24",
6
+ "version": "0.3.25",
7
7
  "facets": {
8
8
  "host": {
9
9
  "entry": "lib/index.js",
@@ -1,7 +1,7 @@
1
1
  import { getTraceable } from "@deepseek-ai/cordis";
2
2
  import { nativeAgentContext } from "./native-scope.js";
3
- import { buildRoleIdentity } from "./prompt-content.js";
4
- import { DSMM_ROLES } from "./roles.js";
3
+ import { buildRoleIdentity, readPromptAsset } from "./prompt-content.js";
4
+ import { DSMM_ROLES, isDsmmRoleId } from "./roles.js";
5
5
  /** The caller supplies the policy-admitted identity; only its Agent layer is changed. */
6
6
  export function registerRoleHarnessIdentity(agent, role, child = false) {
7
7
  const ctx = nativeAgentContext(agent);
@@ -9,12 +9,28 @@ export function registerRoleHarnessIdentity(agent, role, child = false) {
9
9
  const definition = DSMM_ROLES.find(row => row.id === role);
10
10
  const identity = prompt.section({ name: "harness:identity", order: prompt.getSectionOrder("HARNESS_IDENTITY"),
11
11
  text: buildRoleIdentity(definition) });
12
+ let locale;
13
+ let neutralize;
12
14
  try {
15
+ if (!child && !isDsmmRoleId(ctx.get("agentPresets")?.composedPreset(ctx))) {
16
+ locale = prompt.section({ name: "dsmm:locale-guidance", order: 48, interpolate: false, text: readPromptAsset("shared/locale.md") });
17
+ // The standard preset's model identity belongs to its persona, not harness:identity.
18
+ neutralize = ctx.on("system-prompt/assemble", async (_assembly, context, next) => {
19
+ const assembly = await next();
20
+ if (context.scope !== agent)
21
+ return assembly;
22
+ return { ...assembly, sections: assembly.sections.map(section => section.name === "deployment:persona-prefix" && section.interpolate !== false
23
+ ? { ...section, text: section.text.replace("You are a coding agent powered by the {{model}} model.", "You are a coding agent.") }
24
+ : section) };
25
+ });
26
+ }
13
27
  const persona = child ? prompt.section({ name: "deployment:persona-prefix", order: prompt.getSectionOrder("DEPLOYMENT_PERSONA_PREFIX"),
14
28
  text: definition.persona }) : undefined;
15
- return () => { persona?.(); identity(); };
29
+ return () => { persona?.(); neutralize?.(); locale?.(); identity(); };
16
30
  }
17
31
  catch (error) {
32
+ neutralize?.();
33
+ locale?.();
18
34
  identity();
19
35
  throw error;
20
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dsmm/dsmm",
3
- "version": "0.3.24",
3
+ "version": "0.3.25",
4
4
  "description": "Native Deepwork roles, routing, profiles, and permission controls for DeepSeek Harness.",
5
5
  "author": "Hugefiver",
6
6
  "license": "LicenseRef-AAAPL",