@moxt-ai/mobius 0.0.426 → 0.0.427

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-KH33HC7X.js";
6
+ } from "./chunk-5TGOLSLS.js";
7
7
 
8
8
  // src/engine/runtime/relay/runtime-revocation.ts
9
9
  var runtimeRevocationCloseCode = 1008;
@@ -20809,7 +20809,11 @@ var sessionEventPayloadSchema = external_exports.discriminatedUnion("type", [
20809
20809
  external_exports.object({ payload: lifecycleMetadataSchema, type: external_exports.literal("lifecycle-metadata") }).readonly()
20810
20810
  ]);
20811
20811
  var positionSchema = external_exports.string().regex(/^(0|[1-9][0-9]*)$/);
20812
- var mobiusMetadataFields = { omitted: external_exports.literal(true).optional(), restated: external_exports.literal(true).optional() };
20812
+ var mobiusMetadataFields = {
20813
+ omitted: external_exports.literal(true).optional(),
20814
+ recordedOutcome: external_exports.literal(true).optional(),
20815
+ restated: external_exports.literal(true).optional()
20816
+ };
20813
20817
  var sharedSessionEventFields = {
20814
20818
  eventId: identifierStringSchema,
20815
20819
  mobiusMetadata: external_exports.object(mobiusMetadataFields).readonly().optional(),
@@ -92286,15 +92290,24 @@ var PromptLifecycle = class {
92286
92290
  };
92287
92291
  /**
92288
92292
  * Publishes again an outcome a receipt already holds, for clients that missed it. The restatement is marked, so
92289
- * Recording and status notifications do not take it for a new outcome, and it does not settle the receipt again.
92290
- * It keeps the time the outcome was recorded, which receivers that predate the marker report as when it ended.
92293
+ * status notifications do not take it for a new outcome, and it does not settle the receipt again. It keeps the
92294
+ * time the outcome was recorded, which receivers that predate the marker report as when it ended; only an outcome
92295
+ * a receipt recorded is marked as such, so Recording can settle a Turn it missed from it and never from an
92296
+ * acknowledgement composed now.
92291
92297
  */
92292
92298
  restateOutcome = (sessionId, { event, recordedAt }) => {
92293
92299
  if (event.type !== "lifecycle-metadata" || !("commandId" in event.payload)) {
92294
92300
  return;
92295
92301
  }
92296
92302
  const restated = this.#append(sessionId, event, recordedAt);
92297
- this.#publishInOrder({ ...restated, mobiusMetadata: { ...restated.mobiusMetadata, restated: true } });
92303
+ this.#publishInOrder({
92304
+ ...restated,
92305
+ mobiusMetadata: {
92306
+ ...restated.mobiusMetadata,
92307
+ ...recordedAt === void 0 ? {} : { recordedOutcome: true },
92308
+ restated: true
92309
+ }
92310
+ });
92298
92311
  };
92299
92312
  queueChanged = async (sessionId, commandId) => {
92300
92313
  await this.#recordLifecycle(sessionId, {
@@ -97709,4 +97722,4 @@ export {
97709
97722
  * MIT Licensed
97710
97723
  *)
97711
97724
  */
97712
- //# sourceMappingURL=chunk-VCRHOUU2.js.map
97725
+ //# sourceMappingURL=chunk-5IQGZH4R.js.map