@moxt-ai/mobius 0.0.410 → 0.0.411

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.
@@ -3,7 +3,7 @@ import {
3
3
  __export,
4
4
  __using,
5
5
  package_default
6
- } from "./chunk-M4L66DBW.js";
6
+ } from "./chunk-EX66DFKM.js";
7
7
 
8
8
  // src/engine/runtime/relay/runtime-revocation.ts
9
9
  var runtimeRevocationCloseCode = 1008;
@@ -20159,6 +20159,9 @@ var agentModelEffortSchema = external_exports.object({
20159
20159
  }).readonly();
20160
20160
  var agentSettingsDiscoverCommandSchema = external_exports.object({
20161
20161
  agentId: identifierStringSchema,
20162
+ // The directory a Session would start in, whose project settings the Agent reads. Omitted, the Runtime's
20163
+ // default directory. A Runtime that predates this field ignores it; see the discovered event's `directoryId`.
20164
+ directoryId: DIRECTORY_IDENTIFIER.optional(),
20162
20165
  kind: external_exports.literal(AGENT_SETTINGS_DISCOVER_KIND),
20163
20166
  model: external_exports.string().min(1).max(500).optional(),
20164
20167
  requestId: identifierStringSchema
@@ -20167,6 +20170,9 @@ var agentSettingsDiscoveredEventSchema = external_exports.object({
20167
20170
  agentId: identifierStringSchema,
20168
20171
  agentName: external_exports.string().max(255),
20169
20172
  agentVersion: external_exports.string().max(128),
20173
+ // The directory the settings were discovered in. Absent from older Runtimes, which always discover in the
20174
+ // Runtime's default directory whatever the command named.
20175
+ directoryId: DIRECTORY_IDENTIFIER.optional(),
20170
20176
  kind: external_exports.literal(AGENT_SETTINGS_DISCOVERED_KIND),
20171
20177
  modelEffort: agentModelEffortSchema,
20172
20178
  requestId: identifierStringSchema,
@@ -90805,7 +90811,8 @@ function unsupportedModelIds(unsupportedModels) {
90805
90811
  }
90806
90812
  async function discoverAgentSettings(command, resolveAgent, bindingId, directories, sessions, signal) {
90807
90813
  const { agent, adapter: harnessAdapter } = await resolveAgent(command.agentId, signal);
90808
- const cwd = await directories.resolve(bindingId, "default", signal);
90814
+ const directoryId = command.directoryId ?? "default";
90815
+ const cwd = await directories.resolve(bindingId, directoryId, signal);
90809
90816
  const inspectedBaseSnapshot = await sessions.inspectAgentSettings({
90810
90817
  adapter: harnessAdapter,
90811
90818
  additionalDirectories: [],
@@ -90879,6 +90886,7 @@ async function discoverAgentSettings(command, resolveAgent, bindingId, directori
90879
90886
  agentId: command.agentId,
90880
90887
  agentName: selectedSnapshot.agentName,
90881
90888
  agentVersion: selectedSnapshot.agentVersion,
90889
+ directoryId,
90882
90890
  kind: AGENT_SETTINGS_DISCOVERED_KIND,
90883
90891
  modelEffort,
90884
90892
  requestId: command.requestId,
@@ -91068,8 +91076,9 @@ function createAgentSettingsDiscoveryHandler(dependencies) {
91068
91076
  const { config: config2, directories, sessions, diagnostics, socket, signal, timer } = dependencies;
91069
91077
  const agentSettingsDiscoveries = /* @__PURE__ */ new Map();
91070
91078
  const handle = (command) => {
91079
+ const directoryId = command.directoryId ?? "default";
91071
91080
  const existing = [...agentSettingsDiscoveries.values()].find(
91072
- (request) => request.agentId === command.agentId && !request.controller.signal.aborted
91081
+ (request) => request.agentId === command.agentId && request.directoryId === directoryId && !request.controller.signal.aborted
91073
91082
  );
91074
91083
  if ([...agentSettingsDiscoveries.values()].some((request) => request.requestIds.has(command.requestId))) {
91075
91084
  if (socket.readyState === WebSocket4.OPEN) {
@@ -91167,6 +91176,7 @@ function createAgentSettingsDiscoveryHandler(dependencies) {
91167
91176
  })();
91168
91177
  agentSettingsDiscoveries.set(command.requestId, {
91169
91178
  agentId: command.agentId,
91179
+ directoryId,
91170
91180
  model: command.model,
91171
91181
  requestIds,
91172
91182
  completion,
@@ -94000,4 +94010,4 @@ export {
94000
94010
  * MIT Licensed
94001
94011
  *)
94002
94012
  */
94003
- //# sourceMappingURL=chunk-2S33N4G2.js.map
94013
+ //# sourceMappingURL=chunk-6BQX2L5A.js.map