@moxt-ai/mobius 0.0.386 → 0.0.387

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/dist/{chunk-FVYSQLQL.js → chunk-A62FEGIN.js} +11 -24
  2. package/dist/{chunk-FVYSQLQL.js.map → chunk-A62FEGIN.js.map} +3 -3
  3. package/dist/{chunk-Z6JG65YI.js → chunk-S7PKNDIS.js} +2 -2
  4. package/dist/{chunk-Z6JG65YI.js.map → chunk-S7PKNDIS.js.map} +1 -1
  5. package/dist/cli/handler/daemon/index.d.ts.map +1 -1
  6. package/dist/cli/handler/daemon/index.js +9 -4
  7. package/dist/cli/handler/daemon/index.js.map +1 -1
  8. package/dist/cli/handler/daemon/quit.d.ts.map +1 -1
  9. package/dist/cli/handler/daemon/quit.js +5 -4
  10. package/dist/cli/handler/daemon/quit.js.map +1 -1
  11. package/dist/cli/handler/daemon/release.js +1 -1
  12. package/dist/cli/handler/daemon/start.d.ts.map +1 -1
  13. package/dist/cli/handler/daemon/start.js +3 -3
  14. package/dist/cli/handler/daemon/start.js.map +1 -1
  15. package/dist/cli/handler/daemon/upgrade.d.ts.map +1 -1
  16. package/dist/cli/handler/daemon/upgrade.js +8 -24
  17. package/dist/cli/handler/daemon/upgrade.js.map +1 -1
  18. package/dist/cli/handler/pair/pair.js +3 -3
  19. package/dist/cli/handler/pair/pair.js.map +1 -1
  20. package/dist/cli/handler/pair/remove.js +1 -1
  21. package/dist/cli/handler/pair/stop.js +1 -1
  22. package/dist/cli/handler/version/index.d.ts.map +1 -1
  23. package/dist/cli/handler/version/index.js +6 -2
  24. package/dist/cli/handler/version/index.js.map +1 -1
  25. package/dist/{cli-NLIGRBEL.js → cli-43LPJ5ID.js} +412 -1143
  26. package/dist/cli-43LPJ5ID.js.map +7 -0
  27. package/dist/cli.js +1998 -6
  28. package/dist/cli.js.map +4 -4
  29. package/dist/daemon/control/protocol.d.ts +1 -133
  30. package/dist/daemon/control/protocol.d.ts.map +1 -1
  31. package/dist/daemon/control/protocol.js +4 -63
  32. package/dist/daemon/control/protocol.js.map +1 -1
  33. package/dist/daemon/lifecycle/daemon-client.d.ts +8 -0
  34. package/dist/daemon/lifecycle/daemon-client.d.ts.map +1 -0
  35. package/dist/daemon/lifecycle/daemon-client.js +154 -0
  36. package/dist/daemon/lifecycle/daemon-client.js.map +1 -0
  37. package/dist/daemon/lifecycle/{worker.d.ts → daemon.d.ts} +2 -2
  38. package/dist/daemon/lifecycle/daemon.d.ts.map +1 -0
  39. package/dist/daemon/lifecycle/daemon.js +266 -0
  40. package/dist/daemon/lifecycle/daemon.js.map +1 -0
  41. package/dist/daemon/lifecycle/unhandled-rejection.d.ts +1 -2
  42. package/dist/daemon/lifecycle/unhandled-rejection.d.ts.map +1 -1
  43. package/dist/daemon/lifecycle/unhandled-rejection.js +4 -7
  44. package/dist/daemon/lifecycle/unhandled-rejection.js.map +1 -1
  45. package/dist/daemon/upgrades/data.d.ts +0 -1
  46. package/dist/daemon/upgrades/data.d.ts.map +1 -1
  47. package/dist/daemon/upgrades/data.js +0 -5
  48. package/dist/daemon/upgrades/data.js.map +1 -1
  49. package/dist/engine/util/process/platform/windows.d.ts.map +1 -1
  50. package/dist/engine/util/process/platform/windows.js +7 -4
  51. package/dist/engine/util/process/platform/windows.js.map +1 -1
  52. package/dist/engine.js +2 -2
  53. package/dist/storage/daemon/daemon-lock.d.ts +9 -0
  54. package/dist/storage/daemon/daemon-lock.d.ts.map +1 -0
  55. package/dist/storage/daemon/{manager-lock.js → daemon-lock.js} +22 -7
  56. package/dist/storage/daemon/daemon-lock.js.map +1 -0
  57. package/dist/storage/state-root-layout.d.ts +0 -2
  58. package/dist/storage/state-root-layout.d.ts.map +1 -1
  59. package/dist/storage/state-root-layout.js +0 -2
  60. package/dist/storage/state-root-layout.js.map +1 -1
  61. package/package.json +1 -1
  62. package/dist/chunk-T2GPD4RK.js +0 -2002
  63. package/dist/chunk-T2GPD4RK.js.map +0 -7
  64. package/dist/cli/handler/daemon/manager.d.ts +0 -4
  65. package/dist/cli/handler/daemon/manager.d.ts.map +0 -1
  66. package/dist/cli/handler/daemon/manager.js +0 -9
  67. package/dist/cli/handler/daemon/manager.js.map +0 -1
  68. package/dist/cli/handler/daemon/worker.d.ts +0 -4
  69. package/dist/cli/handler/daemon/worker.d.ts.map +0 -1
  70. package/dist/cli/handler/daemon/worker.js +0 -7
  71. package/dist/cli/handler/daemon/worker.js.map +0 -1
  72. package/dist/cli-NLIGRBEL.js.map +0 -7
  73. package/dist/daemon/control/switch-status.d.ts +0 -4
  74. package/dist/daemon/control/switch-status.d.ts.map +0 -1
  75. package/dist/daemon/control/switch-status.js +0 -10
  76. package/dist/daemon/control/switch-status.js.map +0 -1
  77. package/dist/daemon/lifecycle/manager-client.d.ts +0 -8
  78. package/dist/daemon/lifecycle/manager-client.d.ts.map +0 -1
  79. package/dist/daemon/lifecycle/manager-client.js +0 -130
  80. package/dist/daemon/lifecycle/manager-client.js.map +0 -1
  81. package/dist/daemon/lifecycle/manager.d.ts +0 -3
  82. package/dist/daemon/lifecycle/manager.d.ts.map +0 -1
  83. package/dist/daemon/lifecycle/manager.js +0 -215
  84. package/dist/daemon/lifecycle/manager.js.map +0 -1
  85. package/dist/daemon/lifecycle/worker-lifecycle-log.d.ts +0 -14
  86. package/dist/daemon/lifecycle/worker-lifecycle-log.d.ts.map +0 -1
  87. package/dist/daemon/lifecycle/worker-lifecycle-log.js +0 -63
  88. package/dist/daemon/lifecycle/worker-lifecycle-log.js.map +0 -1
  89. package/dist/daemon/lifecycle/worker-process.d.ts +0 -26
  90. package/dist/daemon/lifecycle/worker-process.d.ts.map +0 -1
  91. package/dist/daemon/lifecycle/worker-process.js +0 -145
  92. package/dist/daemon/lifecycle/worker-process.js.map +0 -1
  93. package/dist/daemon/lifecycle/worker.d.ts.map +0 -1
  94. package/dist/daemon/lifecycle/worker.js +0 -213
  95. package/dist/daemon/lifecycle/worker.js.map +0 -1
  96. package/dist/daemon/upgrades/package.d.ts +0 -9
  97. package/dist/daemon/upgrades/package.d.ts.map +0 -1
  98. package/dist/daemon/upgrades/package.js +0 -157
  99. package/dist/daemon/upgrades/package.js.map +0 -1
  100. package/dist/daemon/upgrades/upgrade.d.ts +0 -21
  101. package/dist/daemon/upgrades/upgrade.d.ts.map +0 -1
  102. package/dist/daemon/upgrades/upgrade.js +0 -242
  103. package/dist/daemon/upgrades/upgrade.js.map +0 -1
  104. package/dist/storage/daemon/manager-lock.d.ts +0 -9
  105. package/dist/storage/daemon/manager-lock.d.ts.map +0 -1
  106. package/dist/storage/daemon/manager-lock.js.map +0 -1
  107. package/dist/storage/daemon/release-files.d.ts +0 -9
  108. package/dist/storage/daemon/release-files.d.ts.map +0 -1
  109. package/dist/storage/daemon/release-files.js +0 -14
  110. package/dist/storage/daemon/release-files.js.map +0 -1
@@ -3,7 +3,7 @@ import {
3
3
  __export,
4
4
  __using,
5
5
  package_default
6
- } from "./chunk-Z6JG65YI.js";
6
+ } from "./chunk-S7PKNDIS.js";
7
7
 
8
8
  // src/engine/runtime/relay/runtime-revocation.ts
9
9
  var runtimeRevocationCloseCode = 1008;
@@ -67700,8 +67700,11 @@ async function resolveExecutableTarget(path7) {
67700
67700
  }
67701
67701
  if (extname(resolvedPath).toLowerCase() === ".cmd") {
67702
67702
  const shim = await readFile5(resolvedPath, "utf8");
67703
- if (shim.includes('SET "NPM_CLI_JS=%~dp0\\node_modules\\npm\\bin\\npm-cli.js"') && shim.includes('"%NODE_EXE%" "%NPM_CLI_JS%" %*')) {
67704
- return await realpath6(resolve8(dirname6(resolvedPath), "node_modules/npm/bin/npm-cli.js"));
67703
+ for (const tool of ["npm", "npx"]) {
67704
+ const variable = `${tool.toUpperCase()}_CLI_JS`;
67705
+ if (shim.includes(`SET "${variable}=%~dp0\\node_modules\\npm\\bin\\${tool}-cli.js"`) && shim.includes(`"%NODE_EXE%" "%${variable}%" %*`)) {
67706
+ return await realpath6(resolve8(dirname6(resolvedPath), `node_modules/npm/bin/${tool}-cli.js`));
67707
+ }
67705
67708
  }
67706
67709
  const script = /"%_prog%"\s+"%dp0%[\\/]([^"\r\n]+\.(?:js|mjs|cjs))"\s+%\*/iu.exec(shim)?.[1];
67707
67710
  if (script !== void 0 && shim.includes("SET dp0=%~dp0")) {
@@ -75446,7 +75449,6 @@ var LocalAgentInventory = class {
75446
75449
 
75447
75450
  // src/engine/util/process/local-executable.ts
75448
75451
  import { realpathSync as realpathSync4, statSync as statSync4 } from "node:fs";
75449
- import { realpath as realpath7, stat as stat6 } from "node:fs/promises";
75450
75452
  function readExecutableIdentity(path7) {
75451
75453
  const resolvedPath = realpathSync4(path7);
75452
75454
  const metadata = statSync4(resolvedPath);
@@ -75459,14 +75461,6 @@ function readExecutableIdentity(path7) {
75459
75461
  metadata.ctimeMs
75460
75462
  );
75461
75463
  }
75462
- async function resolveLaunchFiles(entry, executable) {
75463
- const resolvedEntry = await realpath7(entry);
75464
- const resolvedExecutable = await realpath7(executable);
75465
- if (!(await stat6(resolvedEntry)).isFile() || !(await stat6(resolvedExecutable)).isFile()) {
75466
- return null;
75467
- }
75468
- return { entry: resolvedEntry, executable: resolvedExecutable };
75469
- }
75470
75464
 
75471
75465
  // src/engine/acp/protocol/session-capabilities.ts
75472
75466
  function hasTrueChildField(value, childKey, fieldKey) {
@@ -89524,7 +89518,7 @@ import { pathToFileURL as pathToFileURL3 } from "node:url";
89524
89518
 
89525
89519
  // src/engine/storage/files/scratch-directory.ts
89526
89520
  import { randomUUID as randomUUID17 } from "node:crypto";
89527
- import { lstat as lstat4, mkdir as mkdir5, readdir as readdir6, readFile as readFile7, realpath as realpath8, rename as rename4, rm as rm3, stat as stat7, utimes, writeFile as writeFile2 } from "node:fs/promises";
89521
+ import { lstat as lstat4, mkdir as mkdir5, readdir as readdir6, readFile as readFile7, realpath as realpath7, rename as rename4, rm as rm3, stat as stat6, utimes, writeFile as writeFile2 } from "node:fs/promises";
89528
89522
  import { dirname as dirname11, join as join28 } from "node:path";
89529
89523
  async function atomicWrite(path7, bytes, signal) {
89530
89524
  const temporary = `${path7}.${randomUUID17()}.tmp`;
@@ -89554,7 +89548,7 @@ var ScratchDirectory = class {
89554
89548
  if (path7 === this.#root) {
89555
89549
  continue;
89556
89550
  }
89557
- const modified = await stat7(path7).then(
89551
+ const modified = await stat6(path7).then(
89558
89552
  (entry) => entry.mtimeMs,
89559
89553
  () => Date.now()
89560
89554
  );
@@ -89579,8 +89573,8 @@ var ScratchDirectory = class {
89579
89573
  resolveFile = async (path7) => {
89580
89574
  try {
89581
89575
  const [resolvedDirectory, resolvedPath, file2] = await Promise.all([
89582
- realpath8(dirname11(path7)),
89583
- realpath8(path7),
89576
+ realpath7(dirname11(path7)),
89577
+ realpath7(path7),
89584
89578
  lstat4(path7)
89585
89579
  ]);
89586
89580
  return file2.isFile() && !file2.isSymbolicLink() && dirname11(resolvedPath) === resolvedDirectory ? resolvedPath : null;
@@ -93557,26 +93551,19 @@ export {
93557
93551
  external_exports,
93558
93552
  isNodeError,
93559
93553
  installationPointerPath,
93560
- decodeIdentifier,
93561
93554
  decodeRuntimeUpgradeVersion,
93562
- canonicalPath,
93563
93555
  ensurePrivateDirectory,
93564
93556
  platformSupportFor,
93565
93557
  validateLocalPath,
93566
93558
  RuntimeInstallationStoreError,
93567
93559
  RuntimeInstallationStore,
93568
- isRecord4 as isRecord,
93569
- findExecutableOnPath,
93570
- runBoundedProcess,
93571
93560
  MissingAdapter,
93572
93561
  UnsupportedAgentVersion,
93573
- resolveLaunchFiles,
93574
93562
  discoverLocalAgentInventory,
93575
93563
  BoundedLineLog,
93576
93564
  WORKER_LIFECYCLE_LOG_FILENAME,
93577
93565
  unhandledRejectionLogFilename,
93578
93566
  logDirectory,
93579
- RuntimeDiagnosticLog,
93580
93567
  RuntimeLocalContext,
93581
93568
  PairingClientError,
93582
93569
  parseRelayOrigin2 as parseRelayOrigin,
@@ -93600,4 +93587,4 @@ export {
93600
93587
  * MIT Licensed
93601
93588
  *)
93602
93589
  */
93603
- //# sourceMappingURL=chunk-FVYSQLQL.js.map
93590
+ //# sourceMappingURL=chunk-A62FEGIN.js.map