@autohq/cli 0.1.504 → 0.1.505

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.
@@ -30866,7 +30866,7 @@ Object.assign(lookup, {
30866
30866
  // package.json
30867
30867
  var package_default = {
30868
30868
  name: "@autohq/cli",
30869
- version: "0.1.504",
30869
+ version: "0.1.505",
30870
30870
  license: "SEE LICENSE IN README.md",
30871
30871
  publishConfig: {
30872
30872
  access: "public"
@@ -32540,10 +32540,18 @@ var ChatGptCodexQuotaMeasurementResultSchema = external_exports.discriminatedUni
32540
32540
  }).strict()
32541
32541
  ]
32542
32542
  );
32543
+ var USER_SUBSCRIPTION_QUOTA_MAX_AGE_MS = 5 * 6e4;
32544
+ var UserSubscriptionQuotaBudgetStatusSchema = external_exports.enum([
32545
+ "under_budget",
32546
+ "quota_budget_reached",
32547
+ "quota_snapshot_stale",
32548
+ "quota_unknown"
32549
+ ]);
32543
32550
  var UserSubscriptionOperationalStateSchema = external_exports.object({
32544
32551
  version: external_exports.literal(1),
32545
32552
  earliestRefreshAt: external_exports.string().nullable().catch(null),
32546
32553
  latestQuota: ChatGptCodexQuotaMetadataSchema.nullable().catch(null),
32554
+ latestQuotaMeasurement: ChatGptCodexQuotaMeasurementResultSchema.nullable().catch(null),
32547
32555
  error: external_exports.enum(["quota_exhausted", "refresh_failed", "unusable_credential"]).nullable().catch(null),
32548
32556
  quotaExhaustedAt: external_exports.string().nullable().catch(null).default(null)
32549
32557
  }).passthrough();
@@ -38436,6 +38444,11 @@ var SessionAttributionEpochCreateSchema = external_exports.object({
38436
38444
  providerGrantId: ProviderGrantIdSchema.nullable(),
38437
38445
  userModelSubscriptionId: UserSubscriptionCredentialIdSchema.nullable()
38438
38446
  }).strict();
38447
+ var SessionAttributionEpochAssertionSchema = SessionAttributionEpochCreateSchema.omit({
38448
+ fundingSource: true,
38449
+ providerGrantId: true,
38450
+ userModelSubscriptionId: true
38451
+ }).strict();
38439
38452
  var SessionAttributionEpochRecordSchema = SessionAttributionEpochCreateSchema.extend({
38440
38453
  id: SessionAttributionEpochIdSchema,
38441
38454
  createdAt: external_exports.string().datetime()
@@ -38788,7 +38801,8 @@ var UserSubscriptionPolicySchema = external_exports.object({
38788
38801
  organizationId: OrganizationIdSchema,
38789
38802
  projectId: ProjectIdSchema.nullable(),
38790
38803
  mode: UserSubscriptionPolicyModeSchema,
38791
- allowAgentAttribution: external_exports.boolean().default(false)
38804
+ allowAgentAttribution: external_exports.boolean().default(false),
38805
+ budgetPercent: external_exports.number().int().min(1).max(100).nullable().default(null)
38792
38806
  }).strict();
38793
38807
  var UserSubscriptionFundingCandidateSchema = external_exports.object({
38794
38808
  credentialId: UserSubscriptionCredentialIdSchema,
@@ -38796,7 +38810,9 @@ var UserSubscriptionFundingCandidateSchema = external_exports.object({
38796
38810
  status: UserSubscriptionCredentialStatusSchema,
38797
38811
  policyMode: UserSubscriptionPolicyModeSchema,
38798
38812
  allowAgentAttribution: external_exports.boolean().default(false),
38799
- ownerIsScopeMember: external_exports.boolean()
38813
+ ownerIsScopeMember: external_exports.boolean(),
38814
+ budgetPercent: external_exports.number().int().min(1).max(100).nullable().default(null),
38815
+ quotaBudgetStatus: UserSubscriptionQuotaBudgetStatusSchema.default("under_budget")
38800
38816
  }).strict();
38801
38817
  var UserSubscriptionFundingDecisionInputSchema = external_exports.object({
38802
38818
  harness: external_exports.enum(AGENT_HARNESSES),
@@ -38819,7 +38835,10 @@ var USER_SUBSCRIPTION_REJECTION_REASONS = [
38819
38835
  "ineligible_model",
38820
38836
  "agent_attribution_disabled",
38821
38837
  "agent_attribution_untrusted",
38822
- "policy_not_applicable"
38838
+ "policy_not_applicable",
38839
+ "quota_budget_reached",
38840
+ "quota_snapshot_stale",
38841
+ "quota_unknown"
38823
38842
  ];
38824
38843
  var UserSubscriptionRejectionReasonSchema = external_exports.enum(
38825
38844
  USER_SUBSCRIPTION_REJECTION_REASONS
package/dist/index.js CHANGED
@@ -16128,7 +16128,7 @@ var init_chat = __esm({
16128
16128
  });
16129
16129
 
16130
16130
  // ../../packages/schemas/src/chatgpt-codex.ts
16131
- var CHATGPT_CODEX_BACKEND_BASE_URL, CHATGPT_CODEX_RESPONSES_ENDPOINT, CHATGPT_CODEX_SSE_EVENT_SEQUENCE, ChatGptCodexSseEventSchema, ChatGptCodexStreamingRequestSchema, CHATGPT_CODEX_ELIGIBLE_MODELS, ChatGptCodexEligibleModelSchema, ChatGptCodexCompletionUsageSchema, ChatGptCodexErrorResponseSchema, CHATGPT_CODEX_ERROR_KINDS, ChatGptCodexErrorKindSchema, ChatGptCodexQuotaWindowSchema, ChatGptCodexQuotaMetadataSchema, ChatGptCodexQuotaMeasurementWindowSchema, ChatGptCodexQuotaMeasurementUnavailableReasonSchema, ChatGptCodexQuotaMeasurementResultSchema, UserSubscriptionOperationalStateSchema, CHATGPT_CODEX_OAUTH_CLIENT_ID, CHATGPT_CODEX_OAUTH_SCOPE, ChatGptCodexRefreshRequestSchema, ChatGptCodexRefreshResponseSchema, ChatGptCodexAccessTokenAuthClaimSchema;
16131
+ var CHATGPT_CODEX_BACKEND_BASE_URL, CHATGPT_CODEX_RESPONSES_ENDPOINT, CHATGPT_CODEX_SSE_EVENT_SEQUENCE, ChatGptCodexSseEventSchema, ChatGptCodexStreamingRequestSchema, CHATGPT_CODEX_ELIGIBLE_MODELS, ChatGptCodexEligibleModelSchema, ChatGptCodexCompletionUsageSchema, ChatGptCodexErrorResponseSchema, CHATGPT_CODEX_ERROR_KINDS, ChatGptCodexErrorKindSchema, ChatGptCodexQuotaWindowSchema, ChatGptCodexQuotaMetadataSchema, ChatGptCodexQuotaMeasurementWindowSchema, ChatGptCodexQuotaMeasurementUnavailableReasonSchema, ChatGptCodexQuotaMeasurementResultSchema, USER_SUBSCRIPTION_QUOTA_MAX_AGE_MS, UserSubscriptionQuotaBudgetStatusSchema, UserSubscriptionOperationalStateSchema, CHATGPT_CODEX_OAUTH_CLIENT_ID, CHATGPT_CODEX_OAUTH_SCOPE, ChatGptCodexRefreshRequestSchema, ChatGptCodexRefreshResponseSchema, ChatGptCodexAccessTokenAuthClaimSchema;
16132
16132
  var init_chatgpt_codex = __esm({
16133
16133
  "../../packages/schemas/src/chatgpt-codex.ts"() {
16134
16134
  "use strict";
@@ -16220,10 +16220,18 @@ var init_chatgpt_codex = __esm({
16220
16220
  }).strict()
16221
16221
  ]
16222
16222
  );
16223
+ USER_SUBSCRIPTION_QUOTA_MAX_AGE_MS = 5 * 6e4;
16224
+ UserSubscriptionQuotaBudgetStatusSchema = external_exports.enum([
16225
+ "under_budget",
16226
+ "quota_budget_reached",
16227
+ "quota_snapshot_stale",
16228
+ "quota_unknown"
16229
+ ]);
16223
16230
  UserSubscriptionOperationalStateSchema = external_exports.object({
16224
16231
  version: external_exports.literal(1),
16225
16232
  earliestRefreshAt: external_exports.string().nullable().catch(null),
16226
16233
  latestQuota: ChatGptCodexQuotaMetadataSchema.nullable().catch(null),
16234
+ latestQuotaMeasurement: ChatGptCodexQuotaMeasurementResultSchema.nullable().catch(null),
16227
16235
  error: external_exports.enum(["quota_exhausted", "refresh_failed", "unusable_credential"]).nullable().catch(null),
16228
16236
  quotaExhaustedAt: external_exports.string().nullable().catch(null).default(null)
16229
16237
  }).passthrough();
@@ -22817,7 +22825,7 @@ var init_runtimes = __esm({
22817
22825
  });
22818
22826
 
22819
22827
  // ../../packages/schemas/src/session-attribution-epochs.ts
22820
- var ATTRIBUTION_GRADES, AttributionGradeSchema, AttributionRequesterSnapshotSchema, SessionAttributionEpochCreateSchema, SessionAttributionEpochRecordSchema;
22828
+ var ATTRIBUTION_GRADES, AttributionGradeSchema, AttributionRequesterSnapshotSchema, SessionAttributionEpochCreateSchema, SessionAttributionEpochAssertionSchema, SessionAttributionEpochRecordSchema;
22821
22829
  var init_session_attribution_epochs = __esm({
22822
22830
  "../../packages/schemas/src/session-attribution-epochs.ts"() {
22823
22831
  "use strict";
@@ -22846,6 +22854,11 @@ var init_session_attribution_epochs = __esm({
22846
22854
  providerGrantId: ProviderGrantIdSchema.nullable(),
22847
22855
  userModelSubscriptionId: UserSubscriptionCredentialIdSchema.nullable()
22848
22856
  }).strict();
22857
+ SessionAttributionEpochAssertionSchema = SessionAttributionEpochCreateSchema.omit({
22858
+ fundingSource: true,
22859
+ providerGrantId: true,
22860
+ userModelSubscriptionId: true
22861
+ }).strict();
22849
22862
  SessionAttributionEpochRecordSchema = SessionAttributionEpochCreateSchema.extend({
22850
22863
  id: SessionAttributionEpochIdSchema,
22851
22864
  createdAt: external_exports.string().datetime()
@@ -60804,7 +60817,8 @@ var init_user_subscriptions = __esm({
60804
60817
  organizationId: OrganizationIdSchema,
60805
60818
  projectId: ProjectIdSchema.nullable(),
60806
60819
  mode: UserSubscriptionPolicyModeSchema,
60807
- allowAgentAttribution: external_exports.boolean().default(false)
60820
+ allowAgentAttribution: external_exports.boolean().default(false),
60821
+ budgetPercent: external_exports.number().int().min(1).max(100).nullable().default(null)
60808
60822
  }).strict();
60809
60823
  UserSubscriptionFundingCandidateSchema = external_exports.object({
60810
60824
  credentialId: UserSubscriptionCredentialIdSchema,
@@ -60812,7 +60826,9 @@ var init_user_subscriptions = __esm({
60812
60826
  status: UserSubscriptionCredentialStatusSchema,
60813
60827
  policyMode: UserSubscriptionPolicyModeSchema,
60814
60828
  allowAgentAttribution: external_exports.boolean().default(false),
60815
- ownerIsScopeMember: external_exports.boolean()
60829
+ ownerIsScopeMember: external_exports.boolean(),
60830
+ budgetPercent: external_exports.number().int().min(1).max(100).nullable().default(null),
60831
+ quotaBudgetStatus: UserSubscriptionQuotaBudgetStatusSchema.default("under_budget")
60816
60832
  }).strict();
60817
60833
  UserSubscriptionFundingDecisionInputSchema = external_exports.object({
60818
60834
  harness: external_exports.enum(AGENT_HARNESSES),
@@ -60835,7 +60851,10 @@ var init_user_subscriptions = __esm({
60835
60851
  "ineligible_model",
60836
60852
  "agent_attribution_disabled",
60837
60853
  "agent_attribution_untrusted",
60838
- "policy_not_applicable"
60854
+ "policy_not_applicable",
60855
+ "quota_budget_reached",
60856
+ "quota_snapshot_stale",
60857
+ "quota_unknown"
60839
60858
  ];
60840
60859
  UserSubscriptionRejectionReasonSchema = external_exports.enum(
60841
60860
  USER_SUBSCRIPTION_REJECTION_REASONS
@@ -63719,7 +63738,7 @@ var init_package = __esm({
63719
63738
  "package.json"() {
63720
63739
  package_default = {
63721
63740
  name: "@autohq/cli",
63722
- version: "0.1.504",
63741
+ version: "0.1.505",
63723
63742
  license: "SEE LICENSE IN README.md",
63724
63743
  publishConfig: {
63725
63744
  access: "public"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autohq/cli",
3
- "version": "0.1.504",
3
+ "version": "0.1.505",
4
4
  "license": "SEE LICENSE IN README.md",
5
5
  "publishConfig": {
6
6
  "access": "public"