@autohq/cli 0.1.676 → 0.1.677

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.
@@ -33217,7 +33217,7 @@ function bootstrapAdditionalData(input) {
33217
33217
  // package.json
33218
33218
  var package_default = {
33219
33219
  name: "@autohq/cli",
33220
- version: "0.1.676",
33220
+ version: "0.1.677",
33221
33221
  license: "SEE LICENSE IN README.md",
33222
33222
  publishConfig: {
33223
33223
  access: "public"
package/dist/index.js CHANGED
@@ -24918,7 +24918,7 @@ var init_session_inbox = __esm({
24918
24918
  });
24919
24919
 
24920
24920
  // ../../packages/schemas/src/session-do-command-queue.ts
24921
- var SessionDoCommandEnqueueRequestSchema, SessionDoCommandProjectionSchema, SessionDoCommandEnqueueReceiptSchema, SessionCommandMutationResponseSchema, SessionInboxMutationResponseSchema, SessionInboxSteerMutationResponseSchema;
24921
+ var SessionDoCommandEnqueueRequestSchema, SessionDoCommandProjectionSchema, SessionDoInboxReadResponseSchema, SessionDoCommandEnqueueReceiptSchema, SessionCommandMutationResponseSchema, SessionInboxMutationResponseSchema, SessionInboxSteerMutationResponseSchema;
24922
24922
  var init_session_do_command_queue = __esm({
24923
24923
  "../../packages/schemas/src/session-do-command-queue.ts"() {
24924
24924
  "use strict";
@@ -24932,10 +24932,19 @@ var init_session_do_command_queue = __esm({
24932
24932
  kind: SessionCommandKindSchema
24933
24933
  });
24934
24934
  SessionDoCommandProjectionSchema = external_exports.object({
24935
+ // Optional for responses from a draining pre-epoch SessionDO deployment.
24936
+ // A new SessionDO always includes its durable epoch.
24937
+ epoch: external_exports.string().trim().min(1).max(200).optional(),
24935
24938
  revision: external_exports.number().int().nonnegative().safe(),
24936
24939
  inbox: external_exports.array(SessionInboxItemSchema),
24937
24940
  ledgerItem: SessionLedgerItemRecordSchema.nullable()
24938
24941
  });
24942
+ SessionDoInboxReadResponseSchema = external_exports.object({
24943
+ type: external_exports.literal("session_do.inbox"),
24944
+ epoch: external_exports.string().trim().min(1).max(200),
24945
+ revision: external_exports.number().int().nonnegative().safe(),
24946
+ items: external_exports.array(SessionInboxItemSchema)
24947
+ });
24939
24948
  SessionDoCommandEnqueueReceiptSchema = external_exports.object({
24940
24949
  type: external_exports.literal("session_do.command.enqueued"),
24941
24950
  commandId: SessionCommandIdSchema,
@@ -25213,11 +25222,34 @@ var init_session_ledger_stream = __esm({
25213
25222
  });
25214
25223
  SessionInboxEventSchema = external_exports.object({
25215
25224
  type: external_exports.literal("inbox"),
25225
+ // Optional while older SessionDO deployments drain. Once present, the
25226
+ // epoch lets a client adopt a legitimate SessionDO storage reset even when
25227
+ // the new object's revision is lower than the last revision it observed.
25228
+ epoch: external_exports.string().trim().min(1).max(200).optional(),
25229
+ // Present only on the freshly read reconnect projection. Live
25230
+ // publications and command receipts omit it, so delayed work from an
25231
+ // unseen prior epoch cannot switch a client back after this fence.
25232
+ snapshot: external_exports.literal(true).optional(),
25216
25233
  // Optional while older SessionDO deployments drain. New publishers attach
25217
25234
  // their durable monotonic projection revision so delayed events and command
25218
25235
  // responses cannot regress the client inbox.
25219
25236
  revision: external_exports.number().int().nonnegative().safe().optional(),
25220
25237
  items: external_exports.array(SessionInboxItemSchema)
25238
+ }).superRefine((event, context) => {
25239
+ if (event.epoch !== void 0 && event.revision === void 0) {
25240
+ context.addIssue({
25241
+ code: "custom",
25242
+ path: ["revision"],
25243
+ message: "An epoch inbox event must include its revision"
25244
+ });
25245
+ }
25246
+ if (event.snapshot && event.epoch === void 0) {
25247
+ context.addIssue({
25248
+ code: "custom",
25249
+ path: ["epoch"],
25250
+ message: "An inbox snapshot must include its epoch"
25251
+ });
25252
+ }
25221
25253
  });
25222
25254
  SessionLedgerStreamEventSchema = external_exports.discriminatedUnion("type", [
25223
25255
  SessionLedgerItemEventSchema,
@@ -104503,7 +104535,7 @@ var init_package = __esm({
104503
104535
  "package.json"() {
104504
104536
  package_default = {
104505
104537
  name: "@autohq/cli",
104506
- version: "0.1.676",
104538
+ version: "0.1.677",
104507
104539
  license: "SEE LICENSE IN README.md",
104508
104540
  publishConfig: {
104509
104541
  access: "public"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autohq/cli",
3
- "version": "0.1.676",
3
+ "version": "0.1.677",
4
4
  "license": "SEE LICENSE IN README.md",
5
5
  "publishConfig": {
6
6
  "access": "public"