@duckmind/dm-linux-x64 0.65.7 → 0.66.0

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/dm CHANGED
@@ -1,4 +1,4 @@
1
1
  [diffend] Oversized file quarantined before diffing.
2
2
  name: package/dm
3
- size: 112281186 bytes
4
- sha256: cc6828e7de18f44cb8a1dac45fb421c7b41c666022869c15d035d9ef1e013f2a
3
+ size: 112281916 bytes
4
+ sha256: 0d52767d70c7e767dff4c5e15f3b74aa07643f1a90217e40ed16050c4447f30d
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "status": "ok",
3
- "prepared_at": "2026-09-26T03:29:36.530991+00:00",
3
+ "prepared_at": "2026-09-26T14:18:07.586308+00:00",
4
4
  "managed_entries": [
5
5
  {
6
6
  "id": "dm-context",
@@ -442,8 +442,8 @@
442
442
  "src/workflows/workflow-settlement.js"
443
443
  ],
444
444
  "file_count": 296,
445
- "before_bytes": 4854820,
446
- "after_bytes": 4168561,
445
+ "before_bytes": 4855886,
446
+ "after_bytes": 4169414,
447
447
  "runtime_specifier_rewrites": 189,
448
448
  "runtime_filename_rewrites": 273,
449
449
  "declaration_files_removed": 1
@@ -783,8 +783,8 @@
783
783
  "youtube-extract.js"
784
784
  ],
785
785
  "file_count": 77,
786
- "before_bytes": 1122964,
787
- "after_bytes": 1006806,
786
+ "before_bytes": 1122937,
787
+ "after_bytes": 1006680,
788
788
  "runtime_specifier_rewrites": 59,
789
789
  "runtime_filename_rewrites": 77,
790
790
  "declaration_files_removed": 1
@@ -21,11 +21,11 @@ function probeHostPiVersion(deps) {
21
21
  if (runningRoot && "reason" in runningRoot)
22
22
  return runningRoot;
23
23
  if (runningRoot)
24
- return readHostPiManifest(runningRoot.root, runningRoot.source === "DM_SUBAGENTS_DM_CODING_AGENT_PACKAGE_ROOT", deps.readFileSync, deps.platform);
24
+ return readHostPiManifest(runningRoot.root, runningRoot.source === "DM_SUBAGENTS_DM_CODING_AGENT_PACKAGE_ROOT", deps.readFileSync, deps.platform, runningRoot.source === "bun-adjacent");
25
25
  const installedRoot = resolveInstalledPiPackageRoot();
26
26
  return { reason: installedRoot ? `Could not verify the running DM installation; ${installedRoot} is not confirmed to be the host that owns this session` : "Could not locate the running DM installation to verify dynamic tool support" };
27
27
  }
28
- function readHostPiManifest(root, fromOverride, readFileSync = (filePath, encoding) => fs.readFileSync(filePath, encoding), platform = process.platform) {
28
+ function readHostPiManifest(root, fromOverride, readFileSync = (filePath, encoding) => fs.readFileSync(filePath, encoding), platform = process.platform, bundledBinary = false) {
29
29
  const manifestPath = (platform === "win32" ? path.win32 : path.posix).join(root, "package.json");
30
30
  let source;
31
31
  try {
@@ -39,6 +39,9 @@ function readHostPiManifest(root, fromOverride, readFileSync = (filePath, encodi
39
39
  } catch (error) {
40
40
  return { reason: `Invalid DM package manifest at ${manifestPath}: ${errorMessage(error)}` };
41
41
  }
42
+ if (bundledBinary && isRecord(parsed) && typeof parsed.name === "string" && /^@duckmind\/dm-(?:darwin-(?:arm64|x64)|linux-(?:arm64|x64)|windows-x64)$/.test(parsed.name) && path.basename(root) === parsed.name.slice("@duckmind/".length)) {
43
+ return { reason: `${UNSUPPORTED_HOST_MESSAGE} (bundled npm binary has no SDK manifest)` };
44
+ }
42
45
  if (!isRecord(parsed) || parsed.name !== DM_CODING_AGENT_PACKAGE) {
43
46
  return { reason: `${manifestPath} is not ${DM_CODING_AGENT_PACKAGE}${fromOverride ? ` (${DM_CODING_AGENT_PACKAGE_ROOT_ENV} override)` : ""}` };
44
47
  }
@@ -97,6 +100,8 @@ function applyRecordedSelection(dm, ctx) {
97
100
  export function registerSubagentToolActivation(dm, options) {
98
101
  const unsupportedReason = unsupportedDynamicToolsReason(dm);
99
102
  if (unsupportedReason) {
103
+ if (unsupportedReason.startsWith(UNSUPPORTED_HOST_MESSAGE))
104
+ return;
100
105
  if (!warnedUnsupportedHost) {
101
106
  warnedUnsupportedHost = true;
102
107
  console.warn(`[dm-subagents] ${unsupportedReason}; keeping subagent eagerly available.`);
@@ -55,7 +55,11 @@ function validateRunningPiRoot(root, source, readFileSync, manifestPath) {
55
55
  return { reason: `Could not read a valid DM package manifest at ${manifestPath} (${sourceLabel}): ${message}` };
56
56
  }
57
57
  if (!parsed || typeof parsed !== "object" || Array.isArray(parsed) || parsed.name !== DM_CODING_AGENT_PACKAGE) {
58
- return { reason: `${manifestPath} is not ${DM_CODING_AGENT_PACKAGE} (${sourceLabel})` };
58
+ const name = parsed && typeof parsed === "object" && !Array.isArray(parsed) ? parsed.name : undefined;
59
+ const bundledPlatform = typeof name === "string" && /^@duckmind\/dm-(?:darwin-(?:arm64|x64)|linux-(?:arm64|x64)|windows-x64)$/.test(name) && path.basename(root) === name.slice("@duckmind/".length);
60
+ if (source !== "bun-adjacent" || !bundledPlatform) {
61
+ return { reason: `${manifestPath} is not ${DM_CODING_AGENT_PACKAGE} (${sourceLabel})` };
62
+ }
59
63
  }
60
64
  return { root, source };
61
65
  }
@@ -33,7 +33,6 @@ export function registerWebToolActivation(pi, tools) {
33
33
  if (tools.length === 0)
34
34
  return;
35
35
  if (!supportsDynamicTools(pi)) {
36
- console.warn("[dm-web-access] Dynamic tool activation requires DM 0.86.1 or newer; web tools remain eagerly available.");
37
36
  return;
38
37
  }
39
38
  const names = tools.map((tool) => tool.name);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duckmind/dm-linux-x64",
3
- "version": "0.65.7",
3
+ "version": "0.66.0",
4
4
  "description": "DuckMind (dm) binary payload for linux x64",
5
5
  "license": "MIT",
6
6
  "os": [