@moxt-ai/mobius 0.0.65 → 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.
package/dist/index.js CHANGED
@@ -40662,7 +40662,7 @@ async function executePrompt(outbox, publisher, command, config2, directories, a
40662
40662
  signal
40663
40663
  });
40664
40664
  if (command.disposition === SessionPromptDisposition.Steer) {
40665
- assertCompleteSessionConfiguration(prepared.configOptions, sessionConfigurations ?? []);
40665
+ assertAppliedSessionConfiguration(prepared.configOptions, sessionConfigurations ?? []);
40666
40666
  } else {
40667
40667
  await applyCompleteSessionConfiguration(
40668
40668
  sessions,
@@ -40800,21 +40800,6 @@ function validateSessionConfigurationSelection(option, selection) {
40800
40800
  throw invalidSessionConfiguration(`The Agent setting ${selection.configId} has an unavailable value`);
40801
40801
  }
40802
40802
  }
40803
- function assertSessionConfigurationSchema(options, selections) {
40804
- if (options.length !== selections.length) {
40805
- throw invalidSessionConfiguration("The Turn configuration does not match the Agent settings schema");
40806
- }
40807
- const selectionsById = new Map(selections.map((selection) => [selection.configId, selection]));
40808
- if (selectionsById.size !== selections.length) {
40809
- throw invalidSessionConfiguration("The Turn configuration contains duplicate Agent settings");
40810
- }
40811
- for (const option of options) {
40812
- const selection = selectionsById.get(option.id);
40813
- if (selection === void 0 || selection.valueType !== option.type || option.type === "boolean" && selection.value.length > 0 || option.type === "select" && selection.booleanValue) {
40814
- throw invalidSessionConfiguration(`The Turn configuration does not match Agent setting ${option.id}`);
40815
- }
40816
- }
40817
- }
40818
40803
  function sessionConfigurationSelectionIsAvailable(option, selection) {
40819
40804
  if (option.type !== selection.valueType) {
40820
40805
  return false;
@@ -40841,16 +40826,6 @@ function sessionConfigurationPriority(selection, options) {
40841
40826
  }
40842
40827
  return 3;
40843
40828
  }
40844
- function assertCompleteSessionConfiguration(options, selections) {
40845
- assertSessionConfigurationSchema(options, selections);
40846
- const selectionsById = new Map(selections.map((selection) => [selection.configId, selection]));
40847
- for (const option of options) {
40848
- const selection = selectionsById.get(option.id);
40849
- if (selection === void 0 || !sessionConfigurationMatches(option, selection)) {
40850
- throw invalidSessionConfiguration(`The Turn configuration does not match Agent setting ${option.id}`);
40851
- }
40852
- }
40853
- }
40854
40829
  function assertAppliedSessionConfiguration(options, selections) {
40855
40830
  const selectionsById = new Map(selections.map((selection) => [selection.configId, selection]));
40856
40831
  for (const option of options) {