@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.
- package/dist/acp/run-prompt.d.ts +1 -2
- package/dist/acp/run-prompt.d.ts.map +1 -1
- package/dist/acp/run-prompt.js.map +1 -1
- package/dist/cli.js +3 -28
- package/dist/cli.js.map +2 -2
- package/dist/index.js +2 -27
- package/dist/index.js.map +2 -2
- package/dist/run-daemon.d.ts.map +1 -1
- package/dist/run-daemon.js +5 -29
- package/dist/run-daemon.js.map +1 -1
- package/dist/runtime.js +2 -27
- package/dist/runtime.js.map +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -20415,7 +20415,7 @@ var RUNTIME_DELIVERY_COMMITTED_KIND = "runtime.delivery.committed";
|
|
|
20415
20415
|
var SESSION_STARTED_KIND = "session.started";
|
|
20416
20416
|
var AGENT_MESSAGE_DELTA_KIND = "agent.message.delta";
|
|
20417
20417
|
var AGENT_ACTIVITY_KIND = "agent.activity";
|
|
20418
|
-
var AGENT_ACTIVITY_DETAIL_LIMIT =
|
|
20418
|
+
var AGENT_ACTIVITY_DETAIL_LIMIT = 5e5;
|
|
20419
20419
|
var AGENT_ACTIVITY_RECORDED_FIELD_LIMIT = 4e6;
|
|
20420
20420
|
var AGENT_ACTIVITY_RECORDED_DETAIL_LIMIT = 6e6;
|
|
20421
20421
|
var AGENT_ACTIVITY_LOCATION_LIMIT = 12;
|
|
@@ -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
|
-
|
|
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) {
|