@autohq/cli 0.1.383 → 0.1.385

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.
@@ -23492,7 +23492,7 @@ Object.assign(lookup, {
23492
23492
  // package.json
23493
23493
  var package_default = {
23494
23494
  name: "@autohq/cli",
23495
- version: "0.1.383",
23495
+ version: "0.1.385",
23496
23496
  license: "SEE LICENSE IN README.md",
23497
23497
  publishConfig: {
23498
23498
  access: "public"
@@ -23986,6 +23986,7 @@ var ServiceAccountIdSchema = OpaqueIdSchema2.brand();
23986
23986
  var AgentIdSchema = OpaqueIdSchema2.brand();
23987
23987
  var SessionIdSchema2 = OpaqueIdSchema2.brand();
23988
23988
  var SessionCommandIdSchema2 = OpaqueIdSchema2.brand();
23989
+ var SessionParkIdSchema = OpaqueIdSchema2.brand();
23989
23990
  var RuntimeIdSchema2 = OpaqueIdSchema2.brand();
23990
23991
  var RuntimeBridgeLeaseIdSchema2 = OpaqueIdSchema2.brand();
23991
23992
  var EnvironmentSetupTemplateIdSchema = OpaqueIdSchema2.brand();
@@ -27952,6 +27953,18 @@ var SessionsArchiveRequestSchema = external_exports.object({
27952
27953
  session_ids: external_exports.array(SessionIdSchema2).min(1).max(100),
27953
27954
  archived: external_exports.boolean()
27954
27955
  });
27956
+ var SessionRelationshipLinkSchema = external_exports.object({
27957
+ id: SessionIdSchema2,
27958
+ displayTitle: RunDisplayTitleSchema.nullable().default(null),
27959
+ agentName: external_exports.string().trim().min(1).nullable().default(null)
27960
+ });
27961
+ var SessionRelationshipsSchema = external_exports.object({
27962
+ parent: SessionRelationshipLinkSchema.nullable().default(null),
27963
+ children: external_exports.object({
27964
+ total: external_exports.number().int().nonnegative(),
27965
+ items: external_exports.array(SessionRelationshipLinkSchema)
27966
+ }).default({ total: 0, items: [] })
27967
+ });
27955
27968
  var SessionRecordSchema = external_exports.object({
27956
27969
  id: SessionIdSchema2,
27957
27970
  organizationId: external_exports.string().trim().min(1),
@@ -27993,6 +28006,7 @@ var SessionRecordSchema = external_exports.object({
27993
28006
  archivedAt: external_exports.string().datetime().nullable(),
27994
28007
  archiveHandoff: external_exports.string().nullable().default(null),
27995
28008
  archiveHandoffWrittenAt: external_exports.string().datetime().nullable().default(null),
28009
+ relationships: SessionRelationshipsSchema.optional(),
27996
28010
  error: JsonValueSchema2.nullable()
27997
28011
  });
27998
28012
  var SessionMessageOriginSchema = external_exports.object({
@@ -28050,6 +28064,7 @@ var SessionListItemSchema = external_exports.object({
28050
28064
  model: ResolvedAgentModelSelectionSchema.nullable().optional(),
28051
28065
  reasoningEffort: external_exports.string().trim().min(1).nullable().optional(),
28052
28066
  agent: SessionListItemAgentSchema,
28067
+ relationships: SessionRelationshipsSchema.optional(),
28053
28068
  createdAt: external_exports.string().datetime(),
28054
28069
  updatedAt: external_exports.string().datetime(),
28055
28070
  archivedAt: external_exports.string().datetime().nullable(),
@@ -28193,6 +28208,9 @@ var OrganizationCreditsResponseSchema = external_exports.object({
28193
28208
  balanceUsd: UsdAmountSchema,
28194
28209
  totalCreditsUsd: UsdAmountSchema,
28195
28210
  totalBilledUsageUsd: NonNegativeUsdSchema,
28211
+ // Billed spend over the trailing 24h, so the low-credits banner can compare
28212
+ // the current balance against recent burn without a second request.
28213
+ spendLastDayUsd: NonNegativeUsdSchema,
28196
28214
  events: external_exports.array(CreditEventRecordSchema)
28197
28215
  });
28198
28216
  var AddOrganizationCreditsRequestSchema = external_exports.object({
@@ -28945,6 +28963,40 @@ var RunSummarySchema = external_exports.object({
28945
28963
  modelFallback: RunModelFallbackSchema
28946
28964
  });
28947
28965
 
28966
+ // ../../packages/schemas/src/session-parks.ts
28967
+ var BILLING_SESSION_PARK_TTL_MS = 7 * 24 * 60 * 60 * 1e3;
28968
+ var SESSION_PARK_REASON_KINDS = [
28969
+ "billing_insufficient_credits",
28970
+ "billing_spending_limit_exceeded"
28971
+ ];
28972
+ var SESSION_PARK_RESUME_CONDITIONS = [
28973
+ "organization_credits_added",
28974
+ "resume_after"
28975
+ ];
28976
+ var SESSION_PARK_RESOLUTIONS = [
28977
+ "resumed_credit_event",
28978
+ "resumed_resume_after",
28979
+ "expired"
28980
+ ];
28981
+ var SessionParkReasonKindSchema = external_exports.enum(SESSION_PARK_REASON_KINDS);
28982
+ var SessionParkResumeConditionSchema = external_exports.enum(
28983
+ SESSION_PARK_RESUME_CONDITIONS
28984
+ );
28985
+ var SessionParkResolutionSchema = external_exports.enum(SESSION_PARK_RESOLUTIONS);
28986
+ var SessionParkRecordSchema = external_exports.object({
28987
+ id: SessionParkIdSchema,
28988
+ sessionId: SessionIdSchema2,
28989
+ organizationId: OrganizationIdSchema,
28990
+ reasonKind: SessionParkReasonKindSchema,
28991
+ parkCommandId: SessionCommandIdSchema2,
28992
+ resumeAfter: external_exports.string().datetime().nullable(),
28993
+ expiresAt: external_exports.string().datetime(),
28994
+ resolvedAt: external_exports.string().datetime().nullable(),
28995
+ resolution: SessionParkResolutionSchema.nullable(),
28996
+ createdAt: external_exports.string().datetime(),
28997
+ updatedAt: external_exports.string().datetime()
28998
+ });
28999
+
28948
29000
  // ../../packages/schemas/src/session-turns.ts
28949
29001
  var SESSION_TURN_STATUSES = [
28950
29002
  "accepted",
package/dist/index.js CHANGED
@@ -15170,7 +15170,7 @@ var init_zod = __esm({
15170
15170
  });
15171
15171
 
15172
15172
  // ../../packages/schemas/src/ids.ts
15173
- var OpaqueIdSchema, ProfileIdSchema, EnvironmentIdSchema, IdentityIdSchema, ConnectionIdSchema, ExternalAccountIdSchema, OrganizationIdSchema, ProjectIdSchema, ProviderGrantIdSchema, ServiceAccountIdSchema, AgentIdSchema, SessionIdSchema, SessionCommandIdSchema, RuntimeIdSchema, RuntimeBridgeLeaseIdSchema, EnvironmentSetupTemplateIdSchema, UserIdSchema;
15173
+ var OpaqueIdSchema, ProfileIdSchema, EnvironmentIdSchema, IdentityIdSchema, ConnectionIdSchema, ExternalAccountIdSchema, OrganizationIdSchema, ProjectIdSchema, ProviderGrantIdSchema, ServiceAccountIdSchema, AgentIdSchema, SessionIdSchema, SessionCommandIdSchema, SessionParkIdSchema, RuntimeIdSchema, RuntimeBridgeLeaseIdSchema, EnvironmentSetupTemplateIdSchema, UserIdSchema;
15174
15174
  var init_ids = __esm({
15175
15175
  "../../packages/schemas/src/ids.ts"() {
15176
15176
  "use strict";
@@ -15188,6 +15188,7 @@ var init_ids = __esm({
15188
15188
  AgentIdSchema = OpaqueIdSchema.brand();
15189
15189
  SessionIdSchema = OpaqueIdSchema.brand();
15190
15190
  SessionCommandIdSchema = OpaqueIdSchema.brand();
15191
+ SessionParkIdSchema = OpaqueIdSchema.brand();
15191
15192
  RuntimeIdSchema = OpaqueIdSchema.brand();
15192
15193
  RuntimeBridgeLeaseIdSchema = OpaqueIdSchema.brand();
15193
15194
  EnvironmentSetupTemplateIdSchema = OpaqueIdSchema.brand();
@@ -19472,7 +19473,7 @@ function isSessionTerminalStatus(status) {
19472
19473
  (terminalStatus) => terminalStatus === status
19473
19474
  );
19474
19475
  }
19475
- var SESSION_STATUSES, SESSION_RUNTIME_PHASES, SESSION_TERMINAL_STATUSES, SESSION_DISPLAY_TITLE_MAX_LENGTH, SESSION_ARCHIVE_HANDOFF_MAX_LENGTH, SESSION_MESSAGE_ROLES, SESSION_MESSAGE_STATUSES, SessionStatusSchema, SessionRuntimePhaseSchema, SessionMessageRoleSchema, SessionMessageStatusSchema, RunDisplayTitleSchema, AmbientStatusSchema, SESSION_CHECK_STATUSES, SESSION_CHECK_CONCLUSIONS, SESSION_CHECK_TIMEOUT_PHASES, SessionCheckStatusSchema, SessionCheckConclusionSchema, SessionCheckTimeoutPhaseSchema, ManualSessionRequestSchema, SessionArchiveRequestSchema, SessionArchiveHandoffSchema, SessionsArchiveRequestSchema, SessionRecordSchema, SessionMessageOriginSchema, SessionUiMessageRecordSchema, SessionListItemAgentSchema, SessionListItemSchema, SessionListResponseSchema, SessionsArchiveResponseSchema;
19476
+ var SESSION_STATUSES, SESSION_RUNTIME_PHASES, SESSION_TERMINAL_STATUSES, SESSION_DISPLAY_TITLE_MAX_LENGTH, SESSION_ARCHIVE_HANDOFF_MAX_LENGTH, SESSION_MESSAGE_ROLES, SESSION_MESSAGE_STATUSES, SessionStatusSchema, SessionRuntimePhaseSchema, SessionMessageRoleSchema, SessionMessageStatusSchema, RunDisplayTitleSchema, AmbientStatusSchema, SESSION_CHECK_STATUSES, SESSION_CHECK_CONCLUSIONS, SESSION_CHECK_TIMEOUT_PHASES, SessionCheckStatusSchema, SessionCheckConclusionSchema, SessionCheckTimeoutPhaseSchema, ManualSessionRequestSchema, SessionArchiveRequestSchema, SessionArchiveHandoffSchema, SessionsArchiveRequestSchema, SessionRelationshipLinkSchema, SessionRelationshipsSchema, SessionRecordSchema, SessionMessageOriginSchema, SessionUiMessageRecordSchema, SessionListItemAgentSchema, SessionListItemSchema, SessionListResponseSchema, SessionsArchiveResponseSchema;
19476
19477
  var init_sessions = __esm({
19477
19478
  "../../packages/schemas/src/sessions.ts"() {
19478
19479
  "use strict";
@@ -19552,6 +19553,18 @@ var init_sessions = __esm({
19552
19553
  session_ids: external_exports.array(SessionIdSchema).min(1).max(100),
19553
19554
  archived: external_exports.boolean()
19554
19555
  });
19556
+ SessionRelationshipLinkSchema = external_exports.object({
19557
+ id: SessionIdSchema,
19558
+ displayTitle: RunDisplayTitleSchema.nullable().default(null),
19559
+ agentName: external_exports.string().trim().min(1).nullable().default(null)
19560
+ });
19561
+ SessionRelationshipsSchema = external_exports.object({
19562
+ parent: SessionRelationshipLinkSchema.nullable().default(null),
19563
+ children: external_exports.object({
19564
+ total: external_exports.number().int().nonnegative(),
19565
+ items: external_exports.array(SessionRelationshipLinkSchema)
19566
+ }).default({ total: 0, items: [] })
19567
+ });
19555
19568
  SessionRecordSchema = external_exports.object({
19556
19569
  id: SessionIdSchema,
19557
19570
  organizationId: external_exports.string().trim().min(1),
@@ -19593,6 +19606,7 @@ var init_sessions = __esm({
19593
19606
  archivedAt: external_exports.string().datetime().nullable(),
19594
19607
  archiveHandoff: external_exports.string().nullable().default(null),
19595
19608
  archiveHandoffWrittenAt: external_exports.string().datetime().nullable().default(null),
19609
+ relationships: SessionRelationshipsSchema.optional(),
19596
19610
  error: JsonValueSchema.nullable()
19597
19611
  });
19598
19612
  SessionMessageOriginSchema = external_exports.object({
@@ -19650,6 +19664,7 @@ var init_sessions = __esm({
19650
19664
  model: ResolvedAgentModelSelectionSchema.nullable().optional(),
19651
19665
  reasoningEffort: external_exports.string().trim().min(1).nullable().optional(),
19652
19666
  agent: SessionListItemAgentSchema,
19667
+ relationships: SessionRelationshipsSchema.optional(),
19653
19668
  createdAt: external_exports.string().datetime(),
19654
19669
  updatedAt: external_exports.string().datetime(),
19655
19670
  archivedAt: external_exports.string().datetime().nullable(),
@@ -19824,6 +19839,9 @@ var init_billing = __esm({
19824
19839
  balanceUsd: UsdAmountSchema,
19825
19840
  totalCreditsUsd: UsdAmountSchema,
19826
19841
  totalBilledUsageUsd: NonNegativeUsdSchema,
19842
+ // Billed spend over the trailing 24h, so the low-credits banner can compare
19843
+ // the current balance against recent burn without a second request.
19844
+ spendLastDayUsd: NonNegativeUsdSchema,
19827
19845
  events: external_exports.array(CreditEventRecordSchema)
19828
19846
  });
19829
19847
  AddOrganizationCreditsRequestSchema = external_exports.object({
@@ -20663,6 +20681,48 @@ var init_session_introspection = __esm({
20663
20681
  }
20664
20682
  });
20665
20683
 
20684
+ // ../../packages/schemas/src/session-parks.ts
20685
+ var BILLING_SESSION_PARK_TTL_MS, SESSION_PARK_REASON_KINDS, SESSION_PARK_RESUME_CONDITIONS, SESSION_PARK_RESOLUTIONS, SessionParkReasonKindSchema, SessionParkResumeConditionSchema, SessionParkResolutionSchema, SessionParkRecordSchema;
20686
+ var init_session_parks = __esm({
20687
+ "../../packages/schemas/src/session-parks.ts"() {
20688
+ "use strict";
20689
+ init_zod();
20690
+ init_ids();
20691
+ BILLING_SESSION_PARK_TTL_MS = 7 * 24 * 60 * 60 * 1e3;
20692
+ SESSION_PARK_REASON_KINDS = [
20693
+ "billing_insufficient_credits",
20694
+ "billing_spending_limit_exceeded"
20695
+ ];
20696
+ SESSION_PARK_RESUME_CONDITIONS = [
20697
+ "organization_credits_added",
20698
+ "resume_after"
20699
+ ];
20700
+ SESSION_PARK_RESOLUTIONS = [
20701
+ "resumed_credit_event",
20702
+ "resumed_resume_after",
20703
+ "expired"
20704
+ ];
20705
+ SessionParkReasonKindSchema = external_exports.enum(SESSION_PARK_REASON_KINDS);
20706
+ SessionParkResumeConditionSchema = external_exports.enum(
20707
+ SESSION_PARK_RESUME_CONDITIONS
20708
+ );
20709
+ SessionParkResolutionSchema = external_exports.enum(SESSION_PARK_RESOLUTIONS);
20710
+ SessionParkRecordSchema = external_exports.object({
20711
+ id: SessionParkIdSchema,
20712
+ sessionId: SessionIdSchema,
20713
+ organizationId: OrganizationIdSchema,
20714
+ reasonKind: SessionParkReasonKindSchema,
20715
+ parkCommandId: SessionCommandIdSchema,
20716
+ resumeAfter: external_exports.string().datetime().nullable(),
20717
+ expiresAt: external_exports.string().datetime(),
20718
+ resolvedAt: external_exports.string().datetime().nullable(),
20719
+ resolution: SessionParkResolutionSchema.nullable(),
20720
+ createdAt: external_exports.string().datetime(),
20721
+ updatedAt: external_exports.string().datetime()
20722
+ });
20723
+ }
20724
+ });
20725
+
20666
20726
  // ../../packages/schemas/src/session-turns.ts
20667
20727
  var SESSION_TURN_STATUSES, SESSION_TURN_FAILURE_SCOPES, SessionTurnStatusSchema, SessionTurnFailureScopeSchema, SessionTurnRecordSchema;
20668
20728
  var init_session_turns = __esm({
@@ -31132,6 +31192,7 @@ var init_src = __esm({
31132
31192
  init_resources();
31133
31193
  init_session_diagnostics();
31134
31194
  init_session_introspection();
31195
+ init_session_parks();
31135
31196
  init_session_turns();
31136
31197
  init_secrets();
31137
31198
  init_session_bindings();
@@ -33908,7 +33969,7 @@ var init_package = __esm({
33908
33969
  "package.json"() {
33909
33970
  package_default = {
33910
33971
  name: "@autohq/cli",
33911
- version: "0.1.383",
33972
+ version: "0.1.385",
33912
33973
  license: "SEE LICENSE IN README.md",
33913
33974
  publishConfig: {
33914
33975
  access: "public"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autohq/cli",
3
- "version": "0.1.383",
3
+ "version": "0.1.385",
4
4
  "license": "SEE LICENSE IN README.md",
5
5
  "publishConfig": {
6
6
  "access": "public"