@moxt-ai/mobius 0.0.64 → 0.0.66

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,6 +1,6 @@
1
1
  import type { AcpActivity } from "./activity.ts";
2
2
  import { AcpExecutionError, type AcpPromptResult } from "./session-manager.ts";
3
- export interface RunAcpPromptOptions {
3
+ interface RunAcpPromptOptions {
4
4
  readonly agentArguments: readonly string[];
5
5
  readonly agentCommand: string;
6
6
  readonly cwd: string;
@@ -9,7 +9,6 @@ export interface RunAcpPromptOptions {
9
9
  readonly prompt: string;
10
10
  readonly signal: AbortSignal;
11
11
  }
12
- export type { AcpPromptResult };
13
12
  export { AcpExecutionError };
14
13
  export declare function runAcpPrompt(options: RunAcpPromptOptions): Promise<AcpPromptResult>;
15
14
  //# sourceMappingURL=run-prompt.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"run-prompt.d.ts","sourceRoot":"","sources":["../../src/acp/run-prompt.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,KAAK,eAAe,EAAqB,MAAM,sBAAsB,CAAC;AAElG,MAAM,WAAW,mBAAmB;IAChC,QAAQ,CAAC,cAAc,EAAE,SAAS,MAAM,EAAE,CAAC;IAC3C,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,UAAU,EAAE,CAAC,QAAQ,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9D,QAAQ,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACjD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;CAChC;AAED,YAAY,EAAE,eAAe,EAAE,CAAC;AAChC,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAE7B,wBAAsB,YAAY,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,eAAe,CAAC,CAmBzF"}
1
+ {"version":3,"file":"run-prompt.d.ts","sourceRoot":"","sources":["../../src/acp/run-prompt.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,KAAK,eAAe,EAAqB,MAAM,sBAAsB,CAAC;AAElG,UAAU,mBAAmB;IACzB,QAAQ,CAAC,cAAc,EAAE,SAAS,MAAM,EAAE,CAAC;IAC3C,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,UAAU,EAAE,CAAC,QAAQ,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9D,QAAQ,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACjD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;CAChC;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAE7B,wBAAsB,YAAY,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,eAAe,CAAC,CAmBzF"}
@@ -1 +1 @@
1
- {"version":3,"file":"run-prompt.js","sourceRoot":"","sources":["../../src/acp/run-prompt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEpD,OAAO,EAAE,iBAAiB,EAAwB,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAalG,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAE7B,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,OAA4B;IAC3D,MAAM,QAAQ,GAAG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AS,EAAE,MAAM,CAAC,UAAU,EAAE;YAC9B,MAAM,EAAE,EAAE;YACV,UAAU,EAAE,OAAO,CAAC,UAAU;YAC9B,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,SAAS,EAAE,EAAE;YACb,SAAS,EAAE,MAAM,CAAC,UAAU,EAAE;YAC9B,MAAM,EAAE,OAAO,CAAC,MAAM;SACzB,CAAC,CAAC;IACP,CAAC;YAAS,CAAC;QACP,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAC3B,CAAC;AACL,CAAC"}
package/dist/cli.js CHANGED
@@ -11,7 +11,7 @@ import { mkdir as mkdir6 } from "node:fs/promises";
11
11
  // package.json
12
12
  var package_default = {
13
13
  name: "@moxt-ai/mobius",
14
- version: "0.0.64",
14
+ version: "0.0.66",
15
15
  description: "Mobius CLI for pairing and running local AI agent services.",
16
16
  type: "module",
17
17
  bin: {
@@ -23278,7 +23278,7 @@ var RUNTIME_DELIVERY_COMMITTED_KIND = "runtime.delivery.committed";
23278
23278
  var SESSION_STARTED_KIND = "session.started";
23279
23279
  var AGENT_MESSAGE_DELTA_KIND = "agent.message.delta";
23280
23280
  var AGENT_ACTIVITY_KIND = "agent.activity";
23281
- var AGENT_ACTIVITY_DETAIL_LIMIT = 24e3;
23281
+ var AGENT_ACTIVITY_DETAIL_LIMIT = 5e5;
23282
23282
  var AGENT_ACTIVITY_RECORDED_FIELD_LIMIT = 4e6;
23283
23283
  var AGENT_ACTIVITY_RECORDED_DETAIL_LIMIT = 6e6;
23284
23284
  var AGENT_ACTIVITY_LOCATION_LIMIT = 12;
@@ -40746,7 +40746,7 @@ async function executePrompt(outbox, publisher, command, config2, directories, a
40746
40746
  signal
40747
40747
  });
40748
40748
  if (command.disposition === SessionPromptDisposition.Steer) {
40749
- assertCompleteSessionConfiguration(prepared.configOptions, sessionConfigurations ?? []);
40749
+ assertAppliedSessionConfiguration(prepared.configOptions, sessionConfigurations ?? []);
40750
40750
  } else {
40751
40751
  await applyCompleteSessionConfiguration(
40752
40752
  sessions,
@@ -40884,21 +40884,6 @@ function validateSessionConfigurationSelection(option, selection) {
40884
40884
  throw invalidSessionConfiguration(`The Agent setting ${selection.configId} has an unavailable value`);
40885
40885
  }
40886
40886
  }
40887
- function assertSessionConfigurationSchema(options, selections) {
40888
- if (options.length !== selections.length) {
40889
- throw invalidSessionConfiguration("The Turn configuration does not match the Agent settings schema");
40890
- }
40891
- const selectionsById = new Map(selections.map((selection) => [selection.configId, selection]));
40892
- if (selectionsById.size !== selections.length) {
40893
- throw invalidSessionConfiguration("The Turn configuration contains duplicate Agent settings");
40894
- }
40895
- for (const option of options) {
40896
- const selection = selectionsById.get(option.id);
40897
- if (selection === void 0 || selection.valueType !== option.type || option.type === "boolean" && selection.value.length > 0 || option.type === "select" && selection.booleanValue) {
40898
- throw invalidSessionConfiguration(`The Turn configuration does not match Agent setting ${option.id}`);
40899
- }
40900
- }
40901
- }
40902
40887
  function sessionConfigurationSelectionIsAvailable(option, selection) {
40903
40888
  if (option.type !== selection.valueType) {
40904
40889
  return false;
@@ -40925,16 +40910,6 @@ function sessionConfigurationPriority(selection, options) {
40925
40910
  }
40926
40911
  return 3;
40927
40912
  }
40928
- function assertCompleteSessionConfiguration(options, selections) {
40929
- assertSessionConfigurationSchema(options, selections);
40930
- const selectionsById = new Map(selections.map((selection) => [selection.configId, selection]));
40931
- for (const option of options) {
40932
- const selection = selectionsById.get(option.id);
40933
- if (selection === void 0 || !sessionConfigurationMatches(option, selection)) {
40934
- throw invalidSessionConfiguration(`The Turn configuration does not match Agent setting ${option.id}`);
40935
- }
40936
- }
40937
- }
40938
40913
  function assertAppliedSessionConfiguration(options, selections) {
40939
40914
  const selectionsById = new Map(selections.map((selection) => [selection.configId, selection]));
40940
40915
  for (const option of options) {