@autohq/cli 0.1.675 → 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.675",
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
@@ -22233,7 +22233,7 @@ function isSessionTerminalStatus(status) {
22233
22233
  (terminalStatus) => terminalStatus === status
22234
22234
  );
22235
22235
  }
22236
- var SESSION_STATUSES, SESSION_RUNTIME_PHASES, SESSION_DISPATCH_OWNERS, SessionDispatchOwnerSchema, SESSION_TERMINAL_STATUSES, SESSION_CHILD_TERMINAL_STATUSES, SESSION_DISPLAY_TITLE_MAX_LENGTH, SESSION_ATTENTION_PREVIEW_MAX_LENGTH, SESSION_MESSAGE_ROLES, SESSION_MESSAGE_STATUSES, SessionStatusSchema, RunDisplayTitleSchema, SessionChildTerminalStatusSchema, SessionChildTerminalEventPayloadSchema, SessionRuntimePhaseSchema, SessionMessageRoleSchema, SessionMessageStatusSchema, AmbientStatusSchema, SESSION_CHECK_STATUSES, SESSION_CHECK_CONCLUSIONS, SESSION_CHECK_TIMEOUT_PHASES, SessionCheckStatusSchema, SessionCheckConclusionSchema, SessionCheckTimeoutPhaseSchema, SessionAttentionSchema, ManualSessionRequestSchema, SessionArchiveRequestSchema, SessionsArchiveRequestSchema, SessionRelationshipLinkSchema, SessionRelationshipsSchema, SessionRecordSchema, SessionSnapshotSummarySchema, SessionRecordSummarySchema, SessionRecordQuerySchema, SessionMessageOriginSchema, SessionMessageBundleEntrySchema, SessionMessageBundleSchema, SessionOpenReadModelSchema, SessionChatMessagesQuerySchema, SessionListItemAgentSchema, SessionListItemSchema, SessionListResponseSchema, SessionsArchiveResponseSchema;
22236
+ var SESSION_STATUSES, SESSION_RUNTIME_PHASES, SESSION_DISPATCH_OWNERS, SessionDispatchOwnerSchema, SESSION_TERMINAL_STATUSES, SESSION_CHILD_TERMINAL_STATUSES, SESSION_DISPLAY_TITLE_MAX_LENGTH, SESSION_ATTENTION_PREVIEW_MAX_LENGTH, SessionStatusSchema, RunDisplayTitleSchema, SessionChildTerminalStatusSchema, SessionChildTerminalEventPayloadSchema, SessionRuntimePhaseSchema, AmbientStatusSchema, SESSION_CHECK_STATUSES, SESSION_CHECK_CONCLUSIONS, SESSION_CHECK_TIMEOUT_PHASES, SessionCheckStatusSchema, SessionCheckConclusionSchema, SessionCheckTimeoutPhaseSchema, SessionAttentionSchema, ManualSessionRequestSchema, SessionArchiveRequestSchema, SessionsArchiveRequestSchema, SessionRelationshipLinkSchema, SessionRelationshipsSchema, SessionRecordSchema, SessionSnapshotSummarySchema, SessionRecordSummarySchema, SessionRecordQuerySchema, SessionMessageOriginSchema, SessionMessageBundleEntrySchema, SessionMessageBundleSchema, SessionOpenReadModelSchema, SessionChatMessagesQuerySchema, SessionListItemAgentSchema, SessionListItemSchema, SessionListResponseSchema, SessionsArchiveResponseSchema;
22237
22237
  var init_sessions = __esm({
22238
22238
  "../../packages/schemas/src/sessions.ts"() {
22239
22239
  "use strict";
@@ -22272,12 +22272,6 @@ var init_sessions = __esm({
22272
22272
  SESSION_CHILD_TERMINAL_STATUSES = ["completed", "failed"];
22273
22273
  SESSION_DISPLAY_TITLE_MAX_LENGTH = 64;
22274
22274
  SESSION_ATTENTION_PREVIEW_MAX_LENGTH = 160;
22275
- SESSION_MESSAGE_ROLES = ["system", "user", "assistant"];
22276
- SESSION_MESSAGE_STATUSES = [
22277
- "in_progress",
22278
- "completed",
22279
- "failed"
22280
- ];
22281
22275
  SessionStatusSchema = external_exports.enum(SESSION_STATUSES);
22282
22276
  RunDisplayTitleSchema = external_exports.string().trim().max(SESSION_DISPLAY_TITLE_MAX_LENGTH);
22283
22277
  SessionChildTerminalStatusSchema = external_exports.enum(
@@ -22300,8 +22294,6 @@ var init_sessions = __esm({
22300
22294
  }).strict()
22301
22295
  }).strict();
22302
22296
  SessionRuntimePhaseSchema = external_exports.enum(SESSION_RUNTIME_PHASES);
22303
- SessionMessageRoleSchema = external_exports.enum(SESSION_MESSAGE_ROLES);
22304
- SessionMessageStatusSchema = external_exports.enum(SESSION_MESSAGE_STATUSES);
22305
22297
  AmbientStatusSchema = external_exports.string().trim().min(1);
22306
22298
  SESSION_CHECK_STATUSES = [
22307
22299
  "queued",
@@ -24926,7 +24918,7 @@ var init_session_inbox = __esm({
24926
24918
  });
24927
24919
 
24928
24920
  // ../../packages/schemas/src/session-do-command-queue.ts
24929
- var SessionDoCommandEnqueueRequestSchema, SessionDoCommandProjectionSchema, SessionDoCommandEnqueueReceiptSchema, SessionCommandMutationResponseSchema, SessionInboxMutationResponseSchema, SessionInboxSteerMutationResponseSchema;
24921
+ var SessionDoCommandEnqueueRequestSchema, SessionDoCommandProjectionSchema, SessionDoInboxReadResponseSchema, SessionDoCommandEnqueueReceiptSchema, SessionCommandMutationResponseSchema, SessionInboxMutationResponseSchema, SessionInboxSteerMutationResponseSchema;
24930
24922
  var init_session_do_command_queue = __esm({
24931
24923
  "../../packages/schemas/src/session-do-command-queue.ts"() {
24932
24924
  "use strict";
@@ -24940,10 +24932,19 @@ var init_session_do_command_queue = __esm({
24940
24932
  kind: SessionCommandKindSchema
24941
24933
  });
24942
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(),
24943
24938
  revision: external_exports.number().int().nonnegative().safe(),
24944
24939
  inbox: external_exports.array(SessionInboxItemSchema),
24945
24940
  ledgerItem: SessionLedgerItemRecordSchema.nullable()
24946
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
+ });
24947
24948
  SessionDoCommandEnqueueReceiptSchema = external_exports.object({
24948
24949
  type: external_exports.literal("session_do.command.enqueued"),
24949
24950
  commandId: SessionCommandIdSchema,
@@ -25221,11 +25222,34 @@ var init_session_ledger_stream = __esm({
25221
25222
  });
25222
25223
  SessionInboxEventSchema = external_exports.object({
25223
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(),
25224
25233
  // Optional while older SessionDO deployments drain. New publishers attach
25225
25234
  // their durable monotonic projection revision so delayed events and command
25226
25235
  // responses cannot regress the client inbox.
25227
25236
  revision: external_exports.number().int().nonnegative().safe().optional(),
25228
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
+ }
25229
25253
  });
25230
25254
  SessionLedgerStreamEventSchema = external_exports.discriminatedUnion("type", [
25231
25255
  SessionLedgerItemEventSchema,
@@ -104511,7 +104535,7 @@ var init_package = __esm({
104511
104535
  "package.json"() {
104512
104536
  package_default = {
104513
104537
  name: "@autohq/cli",
104514
- version: "0.1.675",
104538
+ version: "0.1.677",
104515
104539
  license: "SEE LICENSE IN README.md",
104516
104540
  publishConfig: {
104517
104541
  access: "public"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autohq/cli",
3
- "version": "0.1.675",
3
+ "version": "0.1.677",
4
4
  "license": "SEE LICENSE IN README.md",
5
5
  "publishConfig": {
6
6
  "access": "public"