@moxt-ai/mobius 0.0.417 → 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.
- package/dist/{chunk-NYCOWKU2.js → chunk-MTPODNYQ.js} +24 -6
- package/dist/{chunk-NYCOWKU2.js.map → chunk-MTPODNYQ.js.map} +2 -2
- package/dist/{chunk-K3YAUS5L.js → chunk-WVPEYLOI.js} +2 -2
- package/dist/{chunk-K3YAUS5L.js.map → chunk-WVPEYLOI.js.map} +1 -1
- package/dist/{cli-FLXN6UTM.js → cli-OSGZMSA7.js} +3 -3
- package/dist/cli.js +2 -2
- package/dist/engine/session/turn/active-turn.d.ts +5 -2
- package/dist/engine/session/turn/active-turn.d.ts.map +1 -1
- package/dist/engine/session/turn/active-turn.js +9 -2
- package/dist/engine/session/turn/active-turn.js.map +1 -1
- package/dist/engine/session/turn/execution-receipts.d.ts +2 -0
- package/dist/engine/session/turn/execution-receipts.d.ts.map +1 -1
- package/dist/engine/session/turn/execution-receipts.js +11 -1
- package/dist/engine/session/turn/execution-receipts.js.map +1 -1
- package/dist/engine/session/turn/session-execution.d.ts.map +1 -1
- package/dist/engine/session/turn/session-execution.js +1 -1
- package/dist/engine/session/turn/session-execution.js.map +1 -1
- package/dist/engine/session/turn/session-turns.d.ts +1 -0
- package/dist/engine/session/turn/session-turns.d.ts.map +1 -1
- package/dist/engine.js +2 -2
- package/package.json +2 -2
- /package/dist/{cli-FLXN6UTM.js.map → cli-OSGZMSA7.js.map} +0 -0
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
__export,
|
|
4
4
|
__using,
|
|
5
5
|
package_default
|
|
6
|
-
} from "./chunk-
|
|
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, {
|
|
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
|
-
/**
|
|
92859
|
-
|
|
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-
|
|
97620
|
+
//# sourceMappingURL=chunk-MTPODNYQ.js.map
|