@autohq/cli 0.1.503 → 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.503",
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,23 +38801,29 @@ 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,
38795
38809
  ownerUserId: UserIdSchema,
38796
38810
  status: UserSubscriptionCredentialStatusSchema,
38797
38811
  policyMode: UserSubscriptionPolicyModeSchema,
38798
- ownerIsScopeMember: external_exports.boolean()
38812
+ allowAgentAttribution: external_exports.boolean().default(false),
38813
+ ownerIsScopeMember: external_exports.boolean(),
38814
+ budgetPercent: external_exports.number().int().min(1).max(100).nullable().default(null),
38815
+ quotaBudgetStatus: UserSubscriptionQuotaBudgetStatusSchema.default("under_budget")
38799
38816
  }).strict();
38800
38817
  var UserSubscriptionFundingDecisionInputSchema = external_exports.object({
38801
38818
  harness: external_exports.enum(AGENT_HARNESSES),
38802
38819
  provider: ModelApiTokenProviderSchema,
38803
38820
  model: external_exports.string().trim().min(1),
38804
38821
  requester: RequesterSchema.nullable(),
38822
+ qualifiedRequesterUserId: UserIdSchema.nullable().default(null),
38805
38823
  automationOwnerUserId: UserIdSchema.nullable(),
38806
38824
  organizationMemberCount: external_exports.number().int().positive(),
38807
38825
  userSubscription: UserSubscriptionFundingCandidateSchema.nullable(),
38826
+ subscriptionRejectionReason: external_exports.enum(["agent_attribution_disabled", "agent_attribution_untrusted"]).nullable().default(null),
38808
38827
  tenantProviderGrantId: ProviderGrantIdSchema.nullable()
38809
38828
  }).strict();
38810
38829
  var USER_SUBSCRIPTION_REJECTION_REASONS = [
@@ -38814,7 +38833,12 @@ var USER_SUBSCRIPTION_REJECTION_REASONS = [
38814
38833
  "ineligible_harness",
38815
38834
  "ineligible_provider",
38816
38835
  "ineligible_model",
38817
- "policy_not_applicable"
38836
+ "agent_attribution_disabled",
38837
+ "agent_attribution_untrusted",
38838
+ "policy_not_applicable",
38839
+ "quota_budget_reached",
38840
+ "quota_snapshot_stale",
38841
+ "quota_unknown"
38818
38842
  ];
38819
38843
  var UserSubscriptionRejectionReasonSchema = external_exports.enum(
38820
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,23 +60817,29 @@ 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,
60811
60825
  ownerUserId: UserIdSchema,
60812
60826
  status: UserSubscriptionCredentialStatusSchema,
60813
60827
  policyMode: UserSubscriptionPolicyModeSchema,
60814
- ownerIsScopeMember: external_exports.boolean()
60828
+ allowAgentAttribution: external_exports.boolean().default(false),
60829
+ ownerIsScopeMember: external_exports.boolean(),
60830
+ budgetPercent: external_exports.number().int().min(1).max(100).nullable().default(null),
60831
+ quotaBudgetStatus: UserSubscriptionQuotaBudgetStatusSchema.default("under_budget")
60815
60832
  }).strict();
60816
60833
  UserSubscriptionFundingDecisionInputSchema = external_exports.object({
60817
60834
  harness: external_exports.enum(AGENT_HARNESSES),
60818
60835
  provider: ModelApiTokenProviderSchema,
60819
60836
  model: external_exports.string().trim().min(1),
60820
60837
  requester: RequesterSchema.nullable(),
60838
+ qualifiedRequesterUserId: UserIdSchema.nullable().default(null),
60821
60839
  automationOwnerUserId: UserIdSchema.nullable(),
60822
60840
  organizationMemberCount: external_exports.number().int().positive(),
60823
60841
  userSubscription: UserSubscriptionFundingCandidateSchema.nullable(),
60842
+ subscriptionRejectionReason: external_exports.enum(["agent_attribution_disabled", "agent_attribution_untrusted"]).nullable().default(null),
60824
60843
  tenantProviderGrantId: ProviderGrantIdSchema.nullable()
60825
60844
  }).strict();
60826
60845
  USER_SUBSCRIPTION_REJECTION_REASONS = [
@@ -60830,7 +60849,12 @@ var init_user_subscriptions = __esm({
60830
60849
  "ineligible_harness",
60831
60850
  "ineligible_provider",
60832
60851
  "ineligible_model",
60833
- "policy_not_applicable"
60852
+ "agent_attribution_disabled",
60853
+ "agent_attribution_untrusted",
60854
+ "policy_not_applicable",
60855
+ "quota_budget_reached",
60856
+ "quota_snapshot_stale",
60857
+ "quota_unknown"
60834
60858
  ];
60835
60859
  UserSubscriptionRejectionReasonSchema = external_exports.enum(
60836
60860
  USER_SUBSCRIPTION_REJECTION_REASONS
@@ -63714,7 +63738,7 @@ var init_package = __esm({
63714
63738
  "package.json"() {
63715
63739
  package_default = {
63716
63740
  name: "@autohq/cli",
63717
- version: "0.1.503",
63741
+ version: "0.1.505",
63718
63742
  license: "SEE LICENSE IN README.md",
63719
63743
  publishConfig: {
63720
63744
  access: "public"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autohq/cli",
3
- "version": "0.1.503",
3
+ "version": "0.1.505",
4
4
  "license": "SEE LICENSE IN README.md",
5
5
  "publishConfig": {
6
6
  "access": "public"