@moxt-ai/mobius 0.0.283 → 0.0.284

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.
@@ -1 +1 @@
1
- {"version":3,"file":"session-capabilities.d.ts","sourceRoot":"","sources":["../../../src/acp/protocol/session-capabilities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAcxE,wBAAgB,8BAA8B,IAAI,mBAAmB,CAgBpE;AAED,wBAAgB,wBAAwB,CAAC,WAAW,EAAE,kBAAkB,GAAG,mBAAmB,CAmB7F"}
1
+ {"version":3,"file":"session-capabilities.d.ts","sourceRoot":"","sources":["../../../src/acp/protocol/session-capabilities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAWxE,wBAAgB,8BAA8B,IAAI,mBAAmB,CAgBpE;AAED,wBAAgB,wBAAwB,CAAC,WAAW,EAAE,kBAAkB,GAAG,mBAAmB,CAmB7F"}
@@ -1,6 +1,4 @@
1
- function isRecord(value) {
2
- return typeof value === "object" && value !== null && !Array.isArray(value);
3
- }
1
+ import { isRecord } from "../../util/value-utils.js";
4
2
  function hasTrueChildField(value, childKey, fieldKey) {
5
3
  if (!isRecord(value)) {
6
4
  return false;
@@ -1 +1 @@
1
- {"version":3,"file":"session-capabilities.js","sourceRoot":"","sources":["../../../src/acp/protocol/session-capabilities.ts"],"names":[],"mappings":"AAGA,SAAS,QAAQ,CAAC,KAAc;IAC5B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAChF,CAAC;AAED,SAAS,iBAAiB,CA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7 +5398,7 @@ var program = new Command();
5398
5398
  // package.json
5399
5399
  var package_default = {
5400
5400
  name: "@moxt-ai/mobius",
5401
- version: "0.0.283",
5401
+ version: "0.0.284",
5402
5402
  description: "Mobius CLI for pairing and running local AI agent services.",
5403
5403
  type: "module",
5404
5404
  bin: {
@@ -78083,10 +78083,26 @@ async function resolveLaunchFiles(entry, executable) {
78083
78083
  return { entry: resolvedEntry, executable: resolvedExecutable };
78084
78084
  }
78085
78085
 
78086
- // src/acp/protocol/session-capabilities.ts
78086
+ // src/util/value-utils.ts
78087
+ function truncate2(value, maximumLength) {
78088
+ return value.length <= maximumLength ? value : `${value.slice(0, Math.max(0, maximumLength - 1))}\u2026`;
78089
+ }
78087
78090
  function isRecord3(value) {
78088
78091
  return typeof value === "object" && value !== null && !Array.isArray(value);
78089
78092
  }
78093
+ function readString2(value, fallback = "") {
78094
+ return typeof value === "string" ? value : fallback;
78095
+ }
78096
+ function arraysEqual(left, right) {
78097
+ return left.length === right.length && left.every((value, index2) => value === right[index2]);
78098
+ }
78099
+ function recordsEqual(left, right) {
78100
+ const leftEntries = Object.entries(left);
78101
+ const rightEntries = Object.entries(right);
78102
+ return leftEntries.length === rightEntries.length && leftEntries.every(([name2, value]) => right[name2] === value);
78103
+ }
78104
+
78105
+ // src/acp/protocol/session-capabilities.ts
78090
78106
  function hasTrueChildField(value, childKey, fieldKey) {
78091
78107
  if (!isRecord3(value)) {
78092
78108
  return false;
@@ -79999,9 +80015,6 @@ var PairingClientError = class extends Error {
79999
80015
  this.name = "PairingClientError";
80000
80016
  }
80001
80017
  };
80002
- function isRecord6(value) {
80003
- return typeof value === "object" && value !== null && !Array.isArray(value);
80004
- }
80005
80018
  function hasExactKeys2(value, expectedKeys) {
80006
80019
  const keys = Object.keys(value);
80007
80020
  return keys.length === expectedKeys.length && expectedKeys.every((key) => Object.hasOwn(value, key));
@@ -80108,9 +80121,9 @@ async function readJsonResponse(response) {
80108
80121
  }
80109
80122
  }
80110
80123
  function readRelayError(value) {
80111
- if (isRecord6(value)) {
80124
+ if (isRecord3(value)) {
80112
80125
  const error62 = value["error"];
80113
- if (isRecord6(error62)) {
80126
+ if (isRecord3(error62)) {
80114
80127
  const code = error62["code"];
80115
80128
  const message = error62["message"];
80116
80129
  if (typeof code === "string" && typeof message === "string") {
@@ -80121,7 +80134,7 @@ function readRelayError(value) {
80121
80134
  return new PairingClientError("pairing_failed", "The relay could not pair this machine");
80122
80135
  }
80123
80136
  function decodePairingResponse(value, credentialField, expectedKeys) {
80124
- if (!isRecord6(value) || !hasExactKeys2(value, expectedKeys)) {
80137
+ if (!isRecord3(value) || !hasExactKeys2(value, expectedKeys)) {
80125
80138
  throw new PairingClientError("invalid_relay_response", "The relay returned an invalid pairing response");
80126
80139
  }
80127
80140
  const appId = value["appId"];
@@ -80813,9 +80826,6 @@ function currentWorkerLaunch(version2) {
80813
80826
  version: version2
80814
80827
  };
80815
80828
  }
80816
- function isRecord7(value) {
80817
- return typeof value === "object" && value !== null && !Array.isArray(value);
80818
- }
80819
80829
  async function decodeWorkerLaunch(value) {
80820
80830
  const { entry, executable, version: version2 } = workerLaunch.parse(value);
80821
80831
  if (!isAbsolute13(entry) || !isAbsolute13(executable)) {
@@ -80873,7 +80883,7 @@ var WorkerProcess = class {
80873
80883
  this.#drained.resolve();
80874
80884
  });
80875
80885
  this.#child.on("message", (value) => {
80876
- if (isRecord7(value) && value["kind"] === "worker-ready") {
80886
+ if (isRecord3(value) && value["kind"] === "worker-ready") {
80877
80887
  if (value["version"] !== launch.version) {
80878
80888
  this.#started.reject(
80879
80889
  new WorkerStartupError(
@@ -82395,7 +82405,7 @@ var toolImageSchema = external_exports.union([
82395
82405
  file: external_exports.object({ base64: external_exports.string(), type: external_exports.string() })
82396
82406
  }).transform(({ file: file2 }) => ({ type: "image", data: file2.base64, mimeType: file2.type }))
82397
82407
  ]);
82398
- function isRecord8(value) {
82408
+ function isRecord6(value) {
82399
82409
  return typeof value === "object" && value !== null && !Array.isArray(value);
82400
82410
  }
82401
82411
  var AcpContentExternalizer = class {
@@ -82502,13 +82512,13 @@ var AcpContentExternalizer = class {
82502
82512
  }
82503
82513
  return result2;
82504
82514
  }
82505
- if (!isRecord8(value)) {
82515
+ if (!isRecord6(value)) {
82506
82516
  return value;
82507
82517
  }
82508
82518
  const image = toolImageSchema.safeParse(value);
82509
82519
  if (image.success && image.data.data.length > 0) {
82510
82520
  const prepared = await this.#content(sessionId, image.data, signal);
82511
- if (isRecord8(prepared.event) && typeof prepared.event["imageKey"] === "string") {
82521
+ if (isRecord6(prepared.event) && typeof prepared.event["imageKey"] === "string") {
82512
82522
  images.set(prepared.event["imageKey"], prepared);
82513
82523
  } else {
82514
82524
  images.set(`unavailable:${images.size}`, prepared);
@@ -82539,7 +82549,7 @@ var AcpContentExternalizer = class {
82539
82549
  const prepared = await this.#content(sessionId, content, signal);
82540
82550
  agentContent.push({ ...item, content: prepared.agent });
82541
82551
  eventContent.push({ ...item, content: prepared.event });
82542
- if (isRecord8(prepared.event) && typeof prepared.event["imageKey"] === "string") {
82552
+ if (isRecord6(prepared.event) && typeof prepared.event["imageKey"] === "string") {
82543
82553
  images.delete(prepared.event["imageKey"]);
82544
82554
  }
82545
82555
  }
@@ -88625,34 +88635,13 @@ function buildPromptContent(options, capabilities) {
88625
88635
  // src/acp/connection/agent-connection.ts
88626
88636
  import { spawn as spawn9 } from "node:child_process";
88627
88637
  import { ndJsonStream as ndJsonStream3, RequestError as RequestError8 } from "@agentclientprotocol/sdk";
88628
-
88629
- // src/util/value-utils.ts
88630
- function truncate2(value, maximumLength) {
88631
- return value.length <= maximumLength ? value : `${value.slice(0, Math.max(0, maximumLength - 1))}\u2026`;
88632
- }
88633
- function isRecord9(value) {
88634
- return typeof value === "object" && value !== null && !Array.isArray(value);
88635
- }
88636
- function readString2(value, fallback = "") {
88637
- return typeof value === "string" ? value : fallback;
88638
- }
88639
- function arraysEqual(left, right) {
88640
- return left.length === right.length && left.every((value, index2) => value === right[index2]);
88641
- }
88642
- function recordsEqual(left, right) {
88643
- const leftEntries = Object.entries(left);
88644
- const rightEntries = Object.entries(right);
88645
- return leftEntries.length === rightEntries.length && leftEntries.every(([name2, value]) => right[name2] === value);
88646
- }
88647
-
88648
- // src/acp/connection/agent-connection.ts
88649
88638
  function requestErrorMessage(error62) {
88650
88639
  const fallback = truncate2(error62.message, 500);
88651
- if (error62.message !== "Internal error" || !isRecord9(error62.data)) {
88640
+ if (error62.message !== "Internal error" || !isRecord3(error62.data)) {
88652
88641
  return fallback;
88653
88642
  }
88654
88643
  const agentError = error62.data["error"];
88655
- if (isRecord9(agentError)) {
88644
+ if (isRecord3(agentError)) {
88656
88645
  const message = agentError["message"];
88657
88646
  if (typeof message === "string" && message.length > 0) {
88658
88647
  return truncate2(message, 500);
@@ -88959,7 +88948,7 @@ var SessionConfigProtocolError = class extends Error {
88959
88948
  this.name = "SessionConfigProtocolError";
88960
88949
  }
88961
88950
  };
88962
- function isRecord10(value) {
88951
+ function isRecord7(value) {
88963
88952
  return typeof value === "object" && value !== null && !Array.isArray(value);
88964
88953
  }
88965
88954
  function readString3(value, fallback = "") {
@@ -88990,7 +88979,7 @@ function normalizeConfigValues(value) {
88990
88979
  }
88991
88980
  const normalized = [];
88992
88981
  for (const entry of value) {
88993
- if (!isRecord10(entry)) {
88982
+ if (!isRecord7(entry)) {
88994
88983
  continue;
88995
88984
  }
88996
88985
  const groupedOptions = entry["options"];
@@ -88998,7 +88987,7 @@ function normalizeConfigValues(value) {
88998
88987
  const groupId = readString3(entry["group"]);
88999
88988
  const groupName = readString3(entry["name"]);
89000
88989
  for (const groupedOption of groupedOptions) {
89001
- if (isRecord10(groupedOption)) {
88990
+ if (isRecord7(groupedOption)) {
89002
88991
  const normalizedValue = normalizeConfigValue(groupedOption, groupId, groupName);
89003
88992
  if (normalizedValue !== void 0) {
89004
88993
  normalized.push(normalizedValue);
@@ -89023,7 +89012,7 @@ function normalizeConfigOptions(value, modes) {
89023
89012
  const normalized = [];
89024
89013
  if (Array.isArray(value)) {
89025
89014
  for (const option of value) {
89026
- if (!isRecord10(option)) {
89015
+ if (!isRecord7(option)) {
89027
89016
  continue;
89028
89017
  }
89029
89018
  const id = truncate3(readString3(option["id"]), 128);
@@ -89063,12 +89052,12 @@ function normalizeConfigOptions(value, modes) {
89063
89052
  }
89064
89053
  }
89065
89054
  }
89066
- if (isRecord10(modes)) {
89055
+ if (isRecord7(modes)) {
89067
89056
  const values = [];
89068
89057
  const availableModes = modes["availableModes"];
89069
89058
  if (Array.isArray(availableModes)) {
89070
89059
  for (const mode of availableModes) {
89071
- if (!isRecord10(mode)) {
89060
+ if (!isRecord7(mode)) {
89072
89061
  continue;
89073
89062
  }
89074
89063
  const id = truncate3(readString3(mode["id"]), 500);
@@ -89101,7 +89090,7 @@ function normalizeConfigOptions(value, modes) {
89101
89090
  return normalized.slice(0, MAXIMUM_CONFIG_OPTIONS);
89102
89091
  }
89103
89092
  function normalizeStandardLifecycle(response) {
89104
- const lifecycle = isRecord10(response) ? response : {};
89093
+ const lifecycle = isRecord7(response) ? response : {};
89105
89094
  return normalizeConfigOptions(lifecycle["configOptions"], lifecycle["modes"]);
89106
89095
  }
89107
89096
  function replaceStandardConfigOptions(current, value) {
@@ -89143,7 +89132,7 @@ var StandardSessionConfigProtocol = class {
89143
89132
  "ACP agent exited while changing session configuration",
89144
89133
  change.signal
89145
89134
  );
89146
- if (!isRecord10(response) || !Array.isArray(response["configOptions"])) {
89135
+ if (!isRecord7(response) || !Array.isArray(response["configOptions"])) {
89147
89136
  throw new SessionConfigProtocolError("The Agent returned an invalid session configuration response");
89148
89137
  }
89149
89138
  return replaceStandardConfigOptions(current, response["configOptions"]);
@@ -89240,7 +89229,7 @@ function normalizeElicitationOptions(schema) {
89240
89229
  const oneOf = schema["oneOf"];
89241
89230
  if (Array.isArray(oneOf)) {
89242
89231
  for (const option of oneOf) {
89243
- if (isRecord9(option) && typeof option["const"] === "string") {
89232
+ if (isRecord3(option) && typeof option["const"] === "string") {
89244
89233
  normalized.push({
89245
89234
  description: truncate2(readString2(option["description"]), 500),
89246
89235
  label: truncate2(readString2(option["title"], option["const"]), 255),
@@ -89260,7 +89249,7 @@ function normalizeElicitationOptions(schema) {
89260
89249
  return normalized.slice(0, 200);
89261
89250
  }
89262
89251
  const items = schema["items"];
89263
- if (!isRecord9(items)) {
89252
+ if (!isRecord3(items)) {
89264
89253
  return normalized;
89265
89254
  }
89266
89255
  const anyOf = items["anyOf"];
@@ -89273,7 +89262,7 @@ function numericString(value) {
89273
89262
  return typeof value === "number" && Number.isFinite(value) ? value.toString() : "";
89274
89263
  }
89275
89264
  function normalizeElicitationFields(requestedSchema) {
89276
- if (!isRecord9(requestedSchema) || !isRecord9(requestedSchema["properties"])) {
89265
+ if (!isRecord3(requestedSchema) || !isRecord3(requestedSchema["properties"])) {
89277
89266
  return [];
89278
89267
  }
89279
89268
  const properties = requestedSchema["properties"];
@@ -89283,7 +89272,7 @@ function normalizeElicitationFields(requestedSchema) {
89283
89272
  );
89284
89273
  const normalized = [];
89285
89274
  for (const [name2, property] of Object.entries(properties)) {
89286
- if (!isRecord9(property)) {
89275
+ if (!isRecord3(property)) {
89287
89276
  continue;
89288
89277
  }
89289
89278
  const type = elicitationFieldType(property["type"]);
@@ -89374,7 +89363,7 @@ function validateElicitationContent(encoded, requestedSchema) {
89374
89363
  "invalid_elicitation_response"
89375
89364
  );
89376
89365
  }
89377
- if (!isRecord9(decoded) || !isRecord9(requestedSchema) || !isRecord9(requestedSchema["properties"])) {
89366
+ if (!isRecord3(decoded) || !isRecord3(requestedSchema) || !isRecord3(requestedSchema["properties"])) {
89378
89367
  throw new AcpExecutionError(
89379
89368
  "Elicitation response does not match the requested form",
89380
89369
  {},
@@ -89394,7 +89383,7 @@ function validateElicitationContent(encoded, requestedSchema) {
89394
89383
  const validated = {};
89395
89384
  for (const [name2, value] of Object.entries(decoded)) {
89396
89385
  const property = properties[name2];
89397
- if (!isRecord9(property)) {
89386
+ if (!isRecord3(property)) {
89398
89387
  throw new AcpExecutionError(
89399
89388
  `Elicitation field ${name2} was not requested`,
89400
89389
  {},
@@ -90222,7 +90211,6 @@ var AgentSession = class _AgentSession {
90222
90211
  #sessionConfigurations = new SessionConfigurations();
90223
90212
  #nativeHistoryOwnership = { kind: "unbound" };
90224
90213
  #prompted = false;
90225
- #nativePrompt = null;
90226
90214
  #sessionLoad = { kind: "not-requested" };
90227
90215
  #restored = false;
90228
90216
  #sessionTitle = null;
@@ -90660,11 +90648,6 @@ var AgentSession = class _AgentSession {
90660
90648
  return this.#configOptions;
90661
90649
  };
90662
90650
  buildPrompt = (options) => buildPromptContent(options, this.#capabilities);
90663
- nativeHistoryTurn = () => {
90664
- const prompt = this.#nativePrompt;
90665
- const nativeTurnId = this.#connection.inProcessAgent?.nativeTurnId?.() ?? null;
90666
- return prompt === null || nativeTurnId === null || nativeTurnId === prompt.previousTurnId ? null : { commandId: prompt.commandId, nativeTurnId };
90667
- };
90668
90651
  prompt = async (options) => {
90669
90652
  if (this.#turn.running) {
90670
90653
  throw new AcpExecutionError("Another prompt is already running in this conversation", {}, "session_busy");
@@ -90710,10 +90693,6 @@ var AgentSession = class _AgentSession {
90710
90693
  type: "lifecycle-metadata"
90711
90694
  });
90712
90695
  }
90713
- this.#nativePrompt = {
90714
- commandId: options.commandId,
90715
- previousTurnId: this.#connection.inProcessAgent?.nativeTurnId?.() ?? null
90716
- };
90717
90696
  try {
90718
90697
  const response = await this.race(
90719
90698
  this.#connection.connection.agent.request(
@@ -90810,7 +90789,7 @@ var AgentSession = class _AgentSession {
90810
90789
  "ACP agent exited during steering",
90811
90790
  options.signal
90812
90791
  );
90813
- if (!isRecord9(response)) {
90792
+ if (!isRecord3(response)) {
90814
90793
  throw new AcpExecutionError(
90815
90794
  "ACP agent returned an invalid steering response",
90816
90795
  {},