@moxt-ai/mobius 0.0.371 → 0.0.373

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.
@@ -80,7 +80,7 @@ var __callDispose = (stack, error, hasError) => {
80
80
  // package.json
81
81
  var package_default = {
82
82
  name: "@moxt-ai/mobius",
83
- version: "0.0.371",
83
+ version: "0.0.373",
84
84
  description: "Mobius CLI for pairing and running local AI agent services.",
85
85
  type: "module",
86
86
  bin: {
@@ -171,4 +171,4 @@ export {
171
171
  __callDispose,
172
172
  package_default
173
173
  };
174
- //# sourceMappingURL=chunk-MS57BIBB.js.map
174
+ //# sourceMappingURL=chunk-DS4U7HPQ.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../package.json"],
4
- "sourcesContent": ["{\n \"name\": \"@moxt-ai/mobius\",\n \"version\": \"0.0.371\",\n \"description\": \"Mobius CLI for pairing and running local AI agent services.\",\n \"type\": \"module\",\n \"bin\": {\n \"mobius\": \"dist/cli.js\"\n },\n \"exports\": {\n \"./engine\": {\n \"mobius-source\": \"./src/exports/engine.ts\",\n \"types\": \"./dist/exports/engine.d.ts\",\n \"default\": \"./dist/engine.js\"\n }\n },\n \"files\": [\n \"dist\",\n \"NOTICE\",\n \"THIRD-PARTY-NOTICES.txt\"\n ],\n \"engines\": {\n \"node\": \">=22.19.0\"\n },\n \"publishConfig\": {\n \"access\": \"public\",\n \"exports\": {\n \"./engine\": {\n \"types\": \"./dist/exports/engine.d.ts\",\n \"import\": \"./dist/engine.js\",\n \"default\": \"./dist/engine.js\"\n }\n }\n },\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://github.com/moxt-ai/mobius.git\",\n \"directory\": \"packages/cli\"\n },\n \"scripts\": {\n \"prebuild\": \"tsc --project src/engine/acp/harness/claude/upstream/tsconfig.json && tsc --project src/engine/acp/harness/pi/upstream/tsconfig.json\",\n \"build\": \"node scripts/build.ts && tsc --project tsconfig.build.json\",\n \"dev\": \"node --watch src/cli/entrypoint.ts\",\n \"pretypecheck\": \"tsc --project src/engine/acp/harness/claude/upstream/tsconfig.json && tsc --project src/engine/acp/harness/pi/upstream/tsconfig.json\",\n \"prepack\": \"pnpm build\",\n \"start\": \"node dist/cli.js\",\n \"typecheck\": \"tsc --project tsconfig.json && tsc --project tests/tsconfig.json\",\n \"pretest:controlled\": \"pnpm build\",\n \"test:controlled\": \"vitest run tests/sessions tests/runtime\",\n \"pretest:manual\": \"pnpm pretest:controlled\",\n \"test:manual\": \"vitest run tests/manual\",\n \"pretest:agents\": \"pnpm build\",\n \"test:agents\": \"vitest run tests/agents --maxWorkers=2\",\n \"pretest:pressure\": \"tsc --project src/engine/acp/harness/claude/upstream/tsconfig.json && tsc --project src/engine/acp/harness/pi/upstream/tsconfig.json\",\n \"test:pressure\": \"node tests/pressure/concurrent-sessions.mjs\"\n },\n \"dependencies\": {\n \"@agentclientprotocol/sdk\": \"^1.4.0\",\n \"@anthropic-ai/claude-agent-sdk\": \"0.3.257\",\n \"commander\": \"15.0.0\",\n \"semver\": \"^7.8.5\",\n \"undici\": \"8.12.2\",\n \"zod\": \"^4.6.7\"\n },\n \"devDependencies\": {\n \"@anthropic-ai/sdk\": \"0.122.0\",\n \"@moxt-ai/mobius-sdk\": \"workspace:*\",\n \"@moxt-ai/mobius-test\": \"workspace:*\",\n \"@types/node\": \"^24.13.5\",\n \"@types/semver\": \"^7.8.0\",\n \"@types/ws\": \"^8.18.1\",\n \"drizzle-kit\": \"1.0.0-rc.4\",\n \"drizzle-orm\": \"1.0.0-rc.4\",\n \"esbuild\": \"0.28.2\",\n \"valibot\": \"1.5.0\",\n \"ws\": \"^8.21.3\"\n },\n \"keywords\": [],\n \"author\": \"Moxt\",\n \"license\": \"Apache-2.0\",\n \"bugs\": {\n \"url\": \"https://github.com/moxt-ai/mobius/issues\"\n },\n \"homepage\": \"https://github.com/moxt-ai/mobius#readme\"\n}\n"],
4
+ "sourcesContent": ["{\n \"name\": \"@moxt-ai/mobius\",\n \"version\": \"0.0.373\",\n \"description\": \"Mobius CLI for pairing and running local AI agent services.\",\n \"type\": \"module\",\n \"bin\": {\n \"mobius\": \"dist/cli.js\"\n },\n \"exports\": {\n \"./engine\": {\n \"mobius-source\": \"./src/exports/engine.ts\",\n \"types\": \"./dist/exports/engine.d.ts\",\n \"default\": \"./dist/engine.js\"\n }\n },\n \"files\": [\n \"dist\",\n \"NOTICE\",\n \"THIRD-PARTY-NOTICES.txt\"\n ],\n \"engines\": {\n \"node\": \">=22.19.0\"\n },\n \"publishConfig\": {\n \"access\": \"public\",\n \"exports\": {\n \"./engine\": {\n \"types\": \"./dist/exports/engine.d.ts\",\n \"import\": \"./dist/engine.js\",\n \"default\": \"./dist/engine.js\"\n }\n }\n },\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://github.com/moxt-ai/mobius.git\",\n \"directory\": \"packages/cli\"\n },\n \"scripts\": {\n \"prebuild\": \"tsc --project src/engine/acp/harness/claude/upstream/tsconfig.json && tsc --project src/engine/acp/harness/pi/upstream/tsconfig.json\",\n \"build\": \"node scripts/build.ts && tsc --project tsconfig.build.json\",\n \"dev\": \"node --watch src/cli/entrypoint.ts\",\n \"pretypecheck\": \"tsc --project src/engine/acp/harness/claude/upstream/tsconfig.json && tsc --project src/engine/acp/harness/pi/upstream/tsconfig.json\",\n \"prepack\": \"pnpm build\",\n \"start\": \"node dist/cli.js\",\n \"typecheck\": \"tsc --project tsconfig.json && tsc --project tests/tsconfig.json\",\n \"pretest:controlled\": \"pnpm build\",\n \"test:controlled\": \"vitest run tests/sessions tests/runtime\",\n \"pretest:manual\": \"pnpm pretest:controlled\",\n \"test:manual\": \"vitest run tests/manual\",\n \"pretest:agents\": \"pnpm build\",\n \"test:agents\": \"vitest run tests/agents --maxWorkers=2\",\n \"pretest:pressure\": \"tsc --project src/engine/acp/harness/claude/upstream/tsconfig.json && tsc --project src/engine/acp/harness/pi/upstream/tsconfig.json\",\n \"test:pressure\": \"node tests/pressure/concurrent-sessions.mjs\"\n },\n \"dependencies\": {\n \"@agentclientprotocol/sdk\": \"^1.4.0\",\n \"@anthropic-ai/claude-agent-sdk\": \"0.3.257\",\n \"commander\": \"15.0.0\",\n \"semver\": \"^7.8.5\",\n \"undici\": \"8.12.2\",\n \"zod\": \"^4.6.7\"\n },\n \"devDependencies\": {\n \"@anthropic-ai/sdk\": \"0.122.0\",\n \"@moxt-ai/mobius-sdk\": \"workspace:*\",\n \"@moxt-ai/mobius-test\": \"workspace:*\",\n \"@types/node\": \"^24.13.5\",\n \"@types/semver\": \"^7.8.0\",\n \"@types/ws\": \"^8.18.1\",\n \"drizzle-kit\": \"1.0.0-rc.4\",\n \"drizzle-orm\": \"1.0.0-rc.4\",\n \"esbuild\": \"0.28.2\",\n \"valibot\": \"1.5.0\",\n \"ws\": \"^8.21.3\"\n },\n \"keywords\": [],\n \"author\": \"Moxt\",\n \"license\": \"Apache-2.0\",\n \"bugs\": {\n \"url\": \"https://github.com/moxt-ai/mobius/issues\"\n },\n \"homepage\": \"https://github.com/moxt-ai/mobius#readme\"\n}\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA,EACI,MAAQ;AAAA,EACR,SAAW;AAAA,EACX,aAAe;AAAA,EACf,MAAQ;AAAA,EACR,KAAO;AAAA,IACH,QAAU;AAAA,EACd;AAAA,EACA,SAAW;AAAA,IACP,YAAY;AAAA,MACR,iBAAiB;AAAA,MACjB,OAAS;AAAA,MACT,SAAW;AAAA,IACf;AAAA,EACJ;AAAA,EACA,OAAS;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,EACJ;AAAA,EACA,SAAW;AAAA,IACP,MAAQ;AAAA,EACZ;AAAA,EACA,eAAiB;AAAA,IACb,QAAU;AAAA,IACV,SAAW;AAAA,MACP,YAAY;AAAA,QACR,OAAS;AAAA,QACT,QAAU;AAAA,QACV,SAAW;AAAA,MACf;AAAA,IACJ;AAAA,EACJ;AAAA,EACA,YAAc;AAAA,IACV,MAAQ;AAAA,IACR,KAAO;AAAA,IACP,WAAa;AAAA,EACjB;AAAA,EACA,SAAW;AAAA,IACP,UAAY;AAAA,IACZ,OAAS;AAAA,IACT,KAAO;AAAA,IACP,cAAgB;AAAA,IAChB,SAAW;AAAA,IACX,OAAS;AAAA,IACT,WAAa;AAAA,IACb,sBAAsB;AAAA,IACtB,mBAAmB;AAAA,IACnB,kBAAkB;AAAA,IAClB,eAAe;AAAA,IACf,kBAAkB;AAAA,IAClB,eAAe;AAAA,IACf,oBAAoB;AAAA,IACpB,iBAAiB;AAAA,EACrB;AAAA,EACA,cAAgB;AAAA,IACZ,4BAA4B;AAAA,IAC5B,kCAAkC;AAAA,IAClC,WAAa;AAAA,IACb,QAAU;AAAA,IACV,QAAU;AAAA,IACV,KAAO;AAAA,EACX;AAAA,EACA,iBAAmB;AAAA,IACf,qBAAqB;AAAA,IACrB,uBAAuB;AAAA,IACvB,wBAAwB;AAAA,IACxB,eAAe;AAAA,IACf,iBAAiB;AAAA,IACjB,aAAa;AAAA,IACb,eAAe;AAAA,IACf,eAAe;AAAA,IACf,SAAW;AAAA,IACX,SAAW;AAAA,IACX,IAAM;AAAA,EACV;AAAA,EACA,UAAY,CAAC;AAAA,EACb,QAAU;AAAA,EACV,SAAW;AAAA,EACX,MAAQ;AAAA,IACJ,KAAO;AAAA,EACX;AAAA,EACA,UAAY;AAChB;",
6
6
  "names": []
7
7
  }
@@ -3,7 +3,7 @@ import {
3
3
  __export,
4
4
  __using,
5
5
  package_default
6
- } from "./chunk-MS57BIBB.js";
6
+ } from "./chunk-DS4U7HPQ.js";
7
7
 
8
8
  // src/engine/runtime/relay/runtime-revocation.ts
9
9
  var runtimeRevocationCloseCode = 1008;
@@ -87061,6 +87061,7 @@ var ActiveExecutions = class {
87061
87061
  // src/engine/session/manager/session-manager.ts
87062
87062
  var SESSION_CONTROL_TIMEOUT_MILLISECONDS = 3e4;
87063
87063
  var SESSION_CLOSE_TIMEOUT_MILLISECONDS = 3e4;
87064
+ var nativeOperationKey = (agentId, nativeSessionId) => `${agentId}:${nativeSessionId}`;
87064
87065
  var SessionManager2 = class {
87065
87066
  #operations = new RuntimeOperations();
87066
87067
  #processes;
@@ -87113,7 +87114,7 @@ var SessionManager2 = class {
87113
87114
  return false;
87114
87115
  }
87115
87116
  const stored = this.#store.read(sessionId);
87116
- return stored instanceof FoundStoredSession && this.#nativeOperations.has(`${stored.session.agentId}:${stored.session.nativeSessionId}`);
87117
+ return stored instanceof FoundStoredSession && this.#nativeOperations.has(nativeOperationKey(stored.session.agentId, stored.session.nativeSessionId));
87117
87118
  }
87118
87119
  #retention(sessionId) {
87119
87120
  return {
@@ -87326,8 +87327,10 @@ var SessionManager2 = class {
87326
87327
  } else {
87327
87328
  this.#assertOpen(options2.sessionId);
87328
87329
  }
87329
- const stored = metrics.measureSync("session-state-read", () => this.#store.read(options2.sessionId));
87330
- if (stored instanceof FoundStoredSession && this.#nativeOperations.has(`${stored.session.agentId}:${stored.session.nativeSessionId}`)) {
87330
+ if (metrics.measureSync(
87331
+ "session-state-read",
87332
+ () => this.#isNativeSessionOperationActive(options2.sessionId)
87333
+ )) {
87331
87334
  throw new AcpExecutionError("The native session is being managed", {}, "session_busy");
87332
87335
  }
87333
87336
  const pending = this.#executionProcesses.pending(options2.sessionId);
@@ -87570,8 +87573,7 @@ var SessionManager2 = class {
87570
87573
  });
87571
87574
  runPrompt = async (options) => this.#operations.run(options, async (options2) => {
87572
87575
  this.#assertOpen(options2.sessionId);
87573
- const stored = this.#store.read(options2.sessionId);
87574
- if (stored instanceof FoundStoredSession && this.#nativeOperations.has(`${stored.session.agentId}:${stored.session.nativeSessionId}`)) {
87576
+ if (this.#isNativeSessionOperationActive(options2.sessionId)) {
87575
87577
  throw new AcpExecutionError("The native session is being managed", {}, "session_busy");
87576
87578
  }
87577
87579
  this.#executions.begin(options2.sessionId, options2.commandId);
@@ -87585,7 +87587,7 @@ var SessionManager2 = class {
87585
87587
  return { stopReason: "cancelled" };
87586
87588
  }
87587
87589
  const runtime = await this.ensureSession(options2);
87588
- if (this.#nativeOperations.has(`${options2.agent.id}:${runtime.nativeSessionId()}`)) {
87590
+ if (this.#nativeOperations.has(nativeOperationKey(options2.agent.id, runtime.nativeSessionId()))) {
87589
87591
  throw new AcpExecutionError("The native session is being managed", {}, "session_busy");
87590
87592
  }
87591
87593
  if (this.#executions.cancellation(options2.sessionId) !== void 0) {
@@ -87783,7 +87785,7 @@ var SessionManager2 = class {
87783
87785
  });
87784
87786
  /** Coordinates native-reader conflicts without owning the harness query. */
87785
87787
  withNativeSessionOperation = async (options, nativeSessionId, operation) => this.#operations.run(options, async (options2) => {
87786
- const key = `${options2.agent.id}:${nativeSessionId}`;
87788
+ const key = nativeOperationKey(options2.agent.id, nativeSessionId);
87787
87789
  if (this.#nativeOperations.has(key)) {
87788
87790
  throw new AcpExecutionError(
87789
87791
  "Wait for the native session's running operation to finish",
@@ -87812,7 +87814,7 @@ var SessionManager2 = class {
87812
87814
  return { ...options, ...resolved, sessionId };
87813
87815
  }
87814
87816
  openNativeSession = async (options, origin, resolveAgent) => this.#operations.run(options, async (options2) => {
87815
- const key = `${options2.agent.id}:${origin.nativeSessionId}`;
87817
+ const key = nativeOperationKey(options2.agent.id, origin.nativeSessionId);
87816
87818
  if (this.#nativeOperations.has(key)) {
87817
87819
  throw new AcpExecutionError("The native session is being managed", {}, "session_busy");
87818
87820
  }
@@ -87863,7 +87865,7 @@ var SessionManager2 = class {
87863
87865
  this.#nativeOperations.add(key);
87864
87866
  try {
87865
87867
  const runtime = await this.#startPreparation({ ...target, origin }, { kind: "interactive-only" });
87866
- const openedKey = `${options2.agent.id}:${runtime.nativeSessionId()}`;
87868
+ const openedKey = nativeOperationKey(options2.agent.id, runtime.nativeSessionId());
87867
87869
  this.#nativeOperations.add(openedKey);
87868
87870
  try {
87869
87871
  const prepared = runtime.prepared();
@@ -93589,4 +93591,4 @@ export {
93589
93591
  * MIT Licensed
93590
93592
  *)
93591
93593
  */
93592
- //# sourceMappingURL=chunk-23EBYYOU.js.map
93594
+ //# sourceMappingURL=chunk-LJZU2HKP.js.map