@moxt-ai/mobius 0.0.416 → 0.0.419

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.
Files changed (30) hide show
  1. package/dist/{chunk-QMB3GH2T.js → chunk-MTPODNYQ.js} +24 -6
  2. package/dist/{chunk-QMB3GH2T.js.map → chunk-MTPODNYQ.js.map} +2 -2
  3. package/dist/{chunk-5K3RZOVU.js → chunk-WVPEYLOI.js} +2 -2
  4. package/dist/{chunk-5K3RZOVU.js.map → chunk-WVPEYLOI.js.map} +1 -1
  5. package/dist/cli/handler/pair/logic/options.d.ts +3 -1
  6. package/dist/cli/handler/pair/logic/options.d.ts.map +1 -1
  7. package/dist/cli/handler/pair/logic/options.js +30 -2
  8. package/dist/cli/handler/pair/logic/options.js.map +1 -1
  9. package/dist/cli/handler/pair/pair.d.ts +1 -1
  10. package/dist/cli/handler/pair/pair.d.ts.map +1 -1
  11. package/dist/cli/handler/pair/pair.js +3 -1
  12. package/dist/cli/handler/pair/pair.js.map +1 -1
  13. package/dist/{cli-HAME7D46.js → cli-OSGZMSA7.js} +30 -7
  14. package/dist/{cli-HAME7D46.js.map → cli-OSGZMSA7.js.map} +2 -2
  15. package/dist/cli.js +2 -2
  16. package/dist/engine/session/turn/active-turn.d.ts +5 -2
  17. package/dist/engine/session/turn/active-turn.d.ts.map +1 -1
  18. package/dist/engine/session/turn/active-turn.js +9 -2
  19. package/dist/engine/session/turn/active-turn.js.map +1 -1
  20. package/dist/engine/session/turn/execution-receipts.d.ts +2 -0
  21. package/dist/engine/session/turn/execution-receipts.d.ts.map +1 -1
  22. package/dist/engine/session/turn/execution-receipts.js +11 -1
  23. package/dist/engine/session/turn/execution-receipts.js.map +1 -1
  24. package/dist/engine/session/turn/session-execution.d.ts.map +1 -1
  25. package/dist/engine/session/turn/session-execution.js +1 -1
  26. package/dist/engine/session/turn/session-execution.js.map +1 -1
  27. package/dist/engine/session/turn/session-turns.d.ts +1 -0
  28. package/dist/engine/session/turn/session-turns.d.ts.map +1 -1
  29. package/dist/engine.js +2 -2
  30. package/package.json +2 -2
@@ -3,7 +3,7 @@ import {
3
3
  __export,
4
4
  __using,
5
5
  package_default
6
- } from "./chunk-5K3RZOVU.js";
6
+ } from "./chunk-WVPEYLOI.js";
7
7
 
8
8
  // src/engine/runtime/relay/runtime-revocation.ts
9
9
  var runtimeRevocationCloseCode = 1008;
@@ -21412,6 +21412,8 @@ var activeTurnSnapshotSchema = external_exports.object({
21412
21412
  epoch: identifierStringSchema,
21413
21413
  interaction: external_exports.discriminatedUnion("kind", [sessionPermissionRequestedEventSchema, sessionElicitationRequestedEventSchema]).nullable(),
21414
21414
  sequence: external_exports.number().int().nonnegative(),
21415
+ // When the turn started, as the Runtime recorded it. Absent from older Runtimes.
21416
+ startedAt: external_exports.iso.datetime({ offset: true }).optional(),
21415
21417
  state: external_exports.literal("running")
21416
21418
  }).readonly();
21417
21419
  var commandDeliverySchema = external_exports.discriminatedUnion("state", [
@@ -92559,6 +92561,11 @@ var ExecutionReceipts = class {
92559
92561
  };
92560
92562
  }
92561
92563
  };
92564
+ /** When the Session's running command started, while its receipt holds the time. */
92565
+ startedAt = (commandId, sessionId) => {
92566
+ const receipt = this.#executions.get(commandId);
92567
+ return receipt?.sessionId === sessionId && receipt.state.kind === "started" ? receipt.state.startedAt : void 0;
92568
+ };
92562
92569
  /** Started identities remain authoritative after their detailed receipt is evicted. */
92563
92570
  hasStarted = (commandId, sessionId) => {
92564
92571
  const standing = this.#standing(commandId, sessionId);
@@ -92644,7 +92651,10 @@ var ExecutionReceipts = class {
92644
92651
  if (payload.kind === "prompt.started") {
92645
92652
  const receipt2 = this.#executions.get(payload.commandId);
92646
92653
  if (receipt2?.state.kind === "pending") {
92647
- this.#save(payload.commandId, { ...receipt2, state: { kind: "started" } });
92654
+ this.#save(payload.commandId, {
92655
+ ...receipt2,
92656
+ state: { kind: "started", startedAt: event.recordedAt }
92657
+ });
92648
92658
  }
92649
92659
  return;
92650
92660
  }
@@ -92851,16 +92861,21 @@ var ActiveRuntimeTurn = class {
92851
92861
  #controller;
92852
92862
  #finished = Promise.withResolvers();
92853
92863
  #started;
92864
+ #startedAt;
92854
92865
  #cancellationRequested = false;
92855
92866
  #admission = { kind: "waiting" };
92856
92867
  #sequence = 0;
92857
92868
  #interaction = null;
92858
- /** `started` reads the command's execution receipt, the single owner of whether the command started. */
92859
- constructor(command, attemptId, started) {
92869
+ /**
92870
+ * `started` and `startedAt` read the command's execution receipt, the single owner of whether and when the command
92871
+ * started.
92872
+ */
92873
+ constructor(command, attemptId, started, startedAt) {
92860
92874
  this.attemptId = attemptId;
92861
92875
  this.command = command;
92862
92876
  this.#controller = new AbortController();
92863
92877
  this.#started = started;
92878
+ this.#startedAt = startedAt;
92864
92879
  }
92865
92880
  enqueue = () => {
92866
92881
  if (this.#admission.kind !== "waiting") {
@@ -92935,11 +92950,13 @@ var ActiveRuntimeTurn = class {
92935
92950
  if (!this.#started()) {
92936
92951
  return null;
92937
92952
  }
92953
+ const startedAt = this.#startedAt();
92938
92954
  return {
92939
92955
  commandId: decodeIdentifier(this.command.commandId),
92940
92956
  epoch: this.epoch,
92941
92957
  interaction: this.#interaction,
92942
92958
  sequence: this.#sequence,
92959
+ ...startedAt === void 0 ? {} : { startedAt },
92943
92960
  state: "running"
92944
92961
  };
92945
92962
  };
@@ -93006,7 +93023,8 @@ var SessionExecutionState = class {
93006
93023
  const turn = new ActiveRuntimeTurn(
93007
93024
  command,
93008
93025
  attemptId,
93009
- () => this.#operations.hasStarted(command.commandId, this.#sessionId)
93026
+ () => this.#operations.hasStarted(command.commandId, this.#sessionId),
93027
+ () => this.#operations.startedAt(command.commandId, this.#sessionId)
93010
93028
  );
93011
93029
  this.#turnsByCommandId.set(command.commandId, turn);
93012
93030
  return turn;
@@ -97599,4 +97617,4 @@ export {
97599
97617
  * MIT Licensed
97600
97618
  *)
97601
97619
  */
97602
- //# sourceMappingURL=chunk-QMB3GH2T.js.map
97620
+ //# sourceMappingURL=chunk-MTPODNYQ.js.map