@autohq/cli 0.1.502 → 0.1.503
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.
- package/dist/agent-bridge.js +44 -7
- package/dist/index.js +68 -9
- package/package.json +1 -1
package/dist/agent-bridge.js
CHANGED
|
@@ -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.
|
|
30869
|
+
version: "0.1.503",
|
|
30870
30870
|
license: "SEE LICENSE IN README.md",
|
|
30871
30871
|
publishConfig: {
|
|
30872
30872
|
access: "public"
|
|
@@ -31557,6 +31557,7 @@ var ServiceAccountIdSchema = OpaqueIdSchema2.brand();
|
|
|
31557
31557
|
var AgentIdSchema = OpaqueIdSchema2.brand();
|
|
31558
31558
|
var SessionIdSchema2 = OpaqueIdSchema2.brand();
|
|
31559
31559
|
var SessionCommandIdSchema2 = OpaqueIdSchema2.brand();
|
|
31560
|
+
var SessionAttributionEpochIdSchema = OpaqueIdSchema2.brand();
|
|
31560
31561
|
var SessionParkIdSchema = OpaqueIdSchema2.brand();
|
|
31561
31562
|
var RuntimeIdSchema2 = OpaqueIdSchema2.brand();
|
|
31562
31563
|
var RuntimeBridgeLeaseIdSchema2 = OpaqueIdSchema2.brand();
|
|
@@ -36954,6 +36955,13 @@ var McpJsonRpcMessageSchema = external_exports.object({
|
|
|
36954
36955
|
}).passthrough();
|
|
36955
36956
|
var McpPostBodySchema = external_exports.union([McpJsonRpcMessageSchema, external_exports.array(McpJsonRpcMessageSchema)]).transform((body) => Array.isArray(body) ? body : [body]);
|
|
36956
36957
|
|
|
36958
|
+
// ../../packages/schemas/src/model-credential-funding.ts
|
|
36959
|
+
var ModelCredentialFundingSourceSchema = external_exports.enum([
|
|
36960
|
+
"platform",
|
|
36961
|
+
"tenant_provider_grant",
|
|
36962
|
+
"user_subscription"
|
|
36963
|
+
]);
|
|
36964
|
+
|
|
36957
36965
|
// ../../packages/schemas/src/onboarding-runs.ts
|
|
36958
36966
|
var ONBOARDING_RUN_SLUG_PATTERN = /^[a-z][a-z0-9_-]*$/;
|
|
36959
36967
|
var OnboardingRunTeamIdSchema = external_exports.string().trim().min(1).max(64).regex(
|
|
@@ -38406,6 +38414,33 @@ var SessionCommandDebounceRevertInputSchema = external_exports.object({
|
|
|
38406
38414
|
}).strip();
|
|
38407
38415
|
var RealtimeRunCursorSchema = external_exports.string().regex(/^rt:(0|[1-9]\d*)$/);
|
|
38408
38416
|
|
|
38417
|
+
// ../../packages/schemas/src/session-attribution-epochs.ts
|
|
38418
|
+
var ATTRIBUTION_GRADES = ["derived", "asserted"];
|
|
38419
|
+
var AttributionGradeSchema = external_exports.enum(ATTRIBUTION_GRADES);
|
|
38420
|
+
var AttributionRequesterSnapshotSchema = external_exports.object({
|
|
38421
|
+
origin: RequesterRootOriginSchema,
|
|
38422
|
+
userId: UserIdSchema.nullable()
|
|
38423
|
+
}).strict();
|
|
38424
|
+
var SessionAttributionEpochCreateSchema = external_exports.object({
|
|
38425
|
+
organizationId: OrganizationIdSchema,
|
|
38426
|
+
projectId: ProjectIdSchema.nullable(),
|
|
38427
|
+
sessionId: SessionIdSchema2,
|
|
38428
|
+
sourceCommandId: SessionCommandIdSchema2,
|
|
38429
|
+
requesterKey: external_exports.string().trim().min(1),
|
|
38430
|
+
requesterSnapshot: AttributionRequesterSnapshotSchema.nullable(),
|
|
38431
|
+
attributionGrade: AttributionGradeSchema,
|
|
38432
|
+
assertedByCommandId: SessionCommandIdSchema2.nullable(),
|
|
38433
|
+
assertedBySessionId: SessionIdSchema2.nullable(),
|
|
38434
|
+
assertedByAgentResourceId: external_exports.string().trim().min(1).nullable(),
|
|
38435
|
+
fundingSource: ModelCredentialFundingSourceSchema.nullable(),
|
|
38436
|
+
providerGrantId: ProviderGrantIdSchema.nullable(),
|
|
38437
|
+
userModelSubscriptionId: UserSubscriptionCredentialIdSchema.nullable()
|
|
38438
|
+
}).strict();
|
|
38439
|
+
var SessionAttributionEpochRecordSchema = SessionAttributionEpochCreateSchema.extend({
|
|
38440
|
+
id: SessionAttributionEpochIdSchema,
|
|
38441
|
+
createdAt: external_exports.string().datetime()
|
|
38442
|
+
}).strict();
|
|
38443
|
+
|
|
38409
38444
|
// ../../packages/schemas/src/spend-cap-runtime.ts
|
|
38410
38445
|
var SpendCapOverrideStateSchema = external_exports.object({
|
|
38411
38446
|
active: external_exports.boolean(),
|
|
@@ -38571,11 +38606,6 @@ var ResourceReconciliationScopeSchema = external_exports.object({
|
|
|
38571
38606
|
|
|
38572
38607
|
// ../../packages/schemas/src/usage.ts
|
|
38573
38608
|
var UsageHarnessSchema = external_exports.enum(AGENT_HARNESSES);
|
|
38574
|
-
var ModelCredentialFundingSourceSchema = external_exports.enum([
|
|
38575
|
-
"platform",
|
|
38576
|
-
"tenant_provider_grant",
|
|
38577
|
-
"user_subscription"
|
|
38578
|
-
]);
|
|
38579
38609
|
var NonNegativeTokenCountSchema = external_exports.number().int().nonnegative();
|
|
38580
38610
|
var NonNegativeUsdSchema2 = external_exports.number().nonnegative();
|
|
38581
38611
|
var UsageEventSchema = external_exports.object({
|
|
@@ -38614,10 +38644,16 @@ var UsageEventSchema = external_exports.object({
|
|
|
38614
38644
|
// Optional during the cross-chunk rollout: B1 defines the attribution field
|
|
38615
38645
|
// before B3 deploys its persistence column and D3 begins populating it.
|
|
38616
38646
|
modelCredentialUserSubscriptionId: UserSubscriptionCredentialIdSchema.nullable().optional(),
|
|
38647
|
+
attributionEpochId: SessionAttributionEpochIdSchema.nullable().optional(),
|
|
38648
|
+
requesterKey: external_exports.string().trim().min(1).nullable().optional(),
|
|
38649
|
+
attributionGrade: AttributionGradeSchema.nullable().optional(),
|
|
38617
38650
|
occurredAt: external_exports.string().datetime()
|
|
38618
38651
|
});
|
|
38619
38652
|
var UsageEventRecordSchema = UsageEventSchema.extend({
|
|
38620
38653
|
id: external_exports.string().trim().min(1),
|
|
38654
|
+
attributionEpochId: SessionAttributionEpochIdSchema.nullable().default(null),
|
|
38655
|
+
requesterKey: external_exports.string().trim().min(1).nullable().default(null),
|
|
38656
|
+
attributionGrade: AttributionGradeSchema.nullable().default(null),
|
|
38621
38657
|
// Set on append-only correction rows: this row replaces the pointed-at row's
|
|
38622
38658
|
// amounts, and ledger readers exclude any row another row supersedes.
|
|
38623
38659
|
supersedesUsageEventId: external_exports.string().trim().min(1).nullable().default(null),
|
|
@@ -38751,7 +38787,8 @@ var UserSubscriptionPolicySchema = external_exports.object({
|
|
|
38751
38787
|
credentialId: UserSubscriptionCredentialIdSchema,
|
|
38752
38788
|
organizationId: OrganizationIdSchema,
|
|
38753
38789
|
projectId: ProjectIdSchema.nullable(),
|
|
38754
|
-
mode: UserSubscriptionPolicyModeSchema
|
|
38790
|
+
mode: UserSubscriptionPolicyModeSchema,
|
|
38791
|
+
allowAgentAttribution: external_exports.boolean().default(false)
|
|
38755
38792
|
}).strict();
|
|
38756
38793
|
var UserSubscriptionFundingCandidateSchema = external_exports.object({
|
|
38757
38794
|
credentialId: UserSubscriptionCredentialIdSchema,
|
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, UserSubscriptionCredentialIdSchema, ServiceAccountIdSchema, AgentIdSchema, SessionIdSchema, SessionCommandIdSchema, SessionParkIdSchema, RuntimeIdSchema, RuntimeBridgeLeaseIdSchema, EnvironmentSetupTemplateIdSchema, UserIdSchema;
|
|
15173
|
+
var OpaqueIdSchema, ProfileIdSchema, EnvironmentIdSchema, IdentityIdSchema, ConnectionIdSchema, ExternalAccountIdSchema, OrganizationIdSchema, ProjectIdSchema, ProviderGrantIdSchema, UserSubscriptionCredentialIdSchema, ServiceAccountIdSchema, AgentIdSchema, SessionIdSchema, SessionCommandIdSchema, SessionAttributionEpochIdSchema, SessionParkIdSchema, RuntimeIdSchema, RuntimeBridgeLeaseIdSchema, EnvironmentSetupTemplateIdSchema, UserIdSchema;
|
|
15174
15174
|
var init_ids = __esm({
|
|
15175
15175
|
"../../packages/schemas/src/ids.ts"() {
|
|
15176
15176
|
"use strict";
|
|
@@ -15189,6 +15189,7 @@ var init_ids = __esm({
|
|
|
15189
15189
|
AgentIdSchema = OpaqueIdSchema.brand();
|
|
15190
15190
|
SessionIdSchema = OpaqueIdSchema.brand();
|
|
15191
15191
|
SessionCommandIdSchema = OpaqueIdSchema.brand();
|
|
15192
|
+
SessionAttributionEpochIdSchema = OpaqueIdSchema.brand();
|
|
15192
15193
|
SessionParkIdSchema = OpaqueIdSchema.brand();
|
|
15193
15194
|
RuntimeIdSchema = OpaqueIdSchema.brand();
|
|
15194
15195
|
RuntimeBridgeLeaseIdSchema = OpaqueIdSchema.brand();
|
|
@@ -21088,6 +21089,20 @@ var init_mcp = __esm({
|
|
|
21088
21089
|
}
|
|
21089
21090
|
});
|
|
21090
21091
|
|
|
21092
|
+
// ../../packages/schemas/src/model-credential-funding.ts
|
|
21093
|
+
var ModelCredentialFundingSourceSchema;
|
|
21094
|
+
var init_model_credential_funding = __esm({
|
|
21095
|
+
"../../packages/schemas/src/model-credential-funding.ts"() {
|
|
21096
|
+
"use strict";
|
|
21097
|
+
init_zod();
|
|
21098
|
+
ModelCredentialFundingSourceSchema = external_exports.enum([
|
|
21099
|
+
"platform",
|
|
21100
|
+
"tenant_provider_grant",
|
|
21101
|
+
"user_subscription"
|
|
21102
|
+
]);
|
|
21103
|
+
}
|
|
21104
|
+
});
|
|
21105
|
+
|
|
21091
21106
|
// ../../packages/schemas/src/onboarding-runs.ts
|
|
21092
21107
|
var ONBOARDING_RUN_SLUG_PATTERN, OnboardingRunTeamIdSchema, OnboardingRunPhaseSchema, OnboardingRunEvidenceSchema, OnboardingKickoffReferenceSchema, OnboardingKickoffApplyEventPayloadSchema, ProjectOnboardingRunSnapshotSchema;
|
|
21093
21108
|
var init_onboarding_runs = __esm({
|
|
@@ -22801,6 +22816,43 @@ var init_runtimes = __esm({
|
|
|
22801
22816
|
}
|
|
22802
22817
|
});
|
|
22803
22818
|
|
|
22819
|
+
// ../../packages/schemas/src/session-attribution-epochs.ts
|
|
22820
|
+
var ATTRIBUTION_GRADES, AttributionGradeSchema, AttributionRequesterSnapshotSchema, SessionAttributionEpochCreateSchema, SessionAttributionEpochRecordSchema;
|
|
22821
|
+
var init_session_attribution_epochs = __esm({
|
|
22822
|
+
"../../packages/schemas/src/session-attribution-epochs.ts"() {
|
|
22823
|
+
"use strict";
|
|
22824
|
+
init_zod();
|
|
22825
|
+
init_ids();
|
|
22826
|
+
init_model_credential_funding();
|
|
22827
|
+
init_requester();
|
|
22828
|
+
ATTRIBUTION_GRADES = ["derived", "asserted"];
|
|
22829
|
+
AttributionGradeSchema = external_exports.enum(ATTRIBUTION_GRADES);
|
|
22830
|
+
AttributionRequesterSnapshotSchema = external_exports.object({
|
|
22831
|
+
origin: RequesterRootOriginSchema,
|
|
22832
|
+
userId: UserIdSchema.nullable()
|
|
22833
|
+
}).strict();
|
|
22834
|
+
SessionAttributionEpochCreateSchema = external_exports.object({
|
|
22835
|
+
organizationId: OrganizationIdSchema,
|
|
22836
|
+
projectId: ProjectIdSchema.nullable(),
|
|
22837
|
+
sessionId: SessionIdSchema,
|
|
22838
|
+
sourceCommandId: SessionCommandIdSchema,
|
|
22839
|
+
requesterKey: external_exports.string().trim().min(1),
|
|
22840
|
+
requesterSnapshot: AttributionRequesterSnapshotSchema.nullable(),
|
|
22841
|
+
attributionGrade: AttributionGradeSchema,
|
|
22842
|
+
assertedByCommandId: SessionCommandIdSchema.nullable(),
|
|
22843
|
+
assertedBySessionId: SessionIdSchema.nullable(),
|
|
22844
|
+
assertedByAgentResourceId: external_exports.string().trim().min(1).nullable(),
|
|
22845
|
+
fundingSource: ModelCredentialFundingSourceSchema.nullable(),
|
|
22846
|
+
providerGrantId: ProviderGrantIdSchema.nullable(),
|
|
22847
|
+
userModelSubscriptionId: UserSubscriptionCredentialIdSchema.nullable()
|
|
22848
|
+
}).strict();
|
|
22849
|
+
SessionAttributionEpochRecordSchema = SessionAttributionEpochCreateSchema.extend({
|
|
22850
|
+
id: SessionAttributionEpochIdSchema,
|
|
22851
|
+
createdAt: external_exports.string().datetime()
|
|
22852
|
+
}).strict();
|
|
22853
|
+
}
|
|
22854
|
+
});
|
|
22855
|
+
|
|
22804
22856
|
// ../../packages/schemas/src/spend-cap-runtime.ts
|
|
22805
22857
|
var SpendCapOverrideStateSchema, SpendCapOverrideUpdateRequestSchema, SPEND_CAP_LIMIT_KINDS, SpendCapLimitKindSchema, EffectiveSpendCapHitSchema, SessionSpendCapRuntimeStatusSchema, SESSION_SPEND_CAP_BATCH_MAX_SESSION_IDS, SessionSpendCapBatchRequestSchema, SessionSpendCapBatchResponseSchema, AgentSpendCapRuntimeStatusSchema, SessionCreationSpendCapDecisionSchema, SPEND_CAP_RUNTIME_ERROR_CODES, SpendCapRuntimeErrorResponseSchema;
|
|
22806
22858
|
var init_spend_cap_runtime = __esm({
|
|
@@ -60547,19 +60599,17 @@ var init_temporal = __esm({
|
|
|
60547
60599
|
});
|
|
60548
60600
|
|
|
60549
60601
|
// ../../packages/schemas/src/usage.ts
|
|
60550
|
-
var UsageHarnessSchema,
|
|
60602
|
+
var UsageHarnessSchema, NonNegativeTokenCountSchema, NonNegativeUsdSchema2, UsageEventSchema, UsageEventRecordSchema, UsageTotalsSchema, SessionUsageModelSummarySchema, UsageFundingSummarySchema, SessionModelFundingStateSchema, SessionUsageResponseSchema, PROJECT_USAGE_RANGE_KEYS, ProjectUsageRangeKeySchema, UtcDateSchema, ProjectUsageTotalsSchema, ProjectUsageAgentSummarySchema, ProjectUsageModelSummarySchema, ProjectUsageSubscriptionSummarySchema, ProjectUsageSubscriptionSliceSchema, ProjectUsageDayAgentSliceSchema, ProjectUsageDayModelSliceSchema, ProjectUsageDayPointSchema, ProjectUsageResponseSchema;
|
|
60551
60603
|
var init_usage = __esm({
|
|
60552
60604
|
"../../packages/schemas/src/usage.ts"() {
|
|
60553
60605
|
"use strict";
|
|
60554
60606
|
init_zod();
|
|
60555
60607
|
init_agents();
|
|
60556
60608
|
init_ids();
|
|
60609
|
+
init_model_credential_funding();
|
|
60610
|
+
init_session_attribution_epochs();
|
|
60611
|
+
init_model_credential_funding();
|
|
60557
60612
|
UsageHarnessSchema = external_exports.enum(AGENT_HARNESSES);
|
|
60558
|
-
ModelCredentialFundingSourceSchema = external_exports.enum([
|
|
60559
|
-
"platform",
|
|
60560
|
-
"tenant_provider_grant",
|
|
60561
|
-
"user_subscription"
|
|
60562
|
-
]);
|
|
60563
60613
|
NonNegativeTokenCountSchema = external_exports.number().int().nonnegative();
|
|
60564
60614
|
NonNegativeUsdSchema2 = external_exports.number().nonnegative();
|
|
60565
60615
|
UsageEventSchema = external_exports.object({
|
|
@@ -60598,10 +60648,16 @@ var init_usage = __esm({
|
|
|
60598
60648
|
// Optional during the cross-chunk rollout: B1 defines the attribution field
|
|
60599
60649
|
// before B3 deploys its persistence column and D3 begins populating it.
|
|
60600
60650
|
modelCredentialUserSubscriptionId: UserSubscriptionCredentialIdSchema.nullable().optional(),
|
|
60651
|
+
attributionEpochId: SessionAttributionEpochIdSchema.nullable().optional(),
|
|
60652
|
+
requesterKey: external_exports.string().trim().min(1).nullable().optional(),
|
|
60653
|
+
attributionGrade: AttributionGradeSchema.nullable().optional(),
|
|
60601
60654
|
occurredAt: external_exports.string().datetime()
|
|
60602
60655
|
});
|
|
60603
60656
|
UsageEventRecordSchema = UsageEventSchema.extend({
|
|
60604
60657
|
id: external_exports.string().trim().min(1),
|
|
60658
|
+
attributionEpochId: SessionAttributionEpochIdSchema.nullable().default(null),
|
|
60659
|
+
requesterKey: external_exports.string().trim().min(1).nullable().default(null),
|
|
60660
|
+
attributionGrade: AttributionGradeSchema.nullable().default(null),
|
|
60605
60661
|
// Set on append-only correction rows: this row replaces the pointed-at row's
|
|
60606
60662
|
// amounts, and ledger readers exclude any row another row supersedes.
|
|
60607
60663
|
supersedesUsageEventId: external_exports.string().trim().min(1).nullable().default(null),
|
|
@@ -60747,7 +60803,8 @@ var init_user_subscriptions = __esm({
|
|
|
60747
60803
|
credentialId: UserSubscriptionCredentialIdSchema,
|
|
60748
60804
|
organizationId: OrganizationIdSchema,
|
|
60749
60805
|
projectId: ProjectIdSchema.nullable(),
|
|
60750
|
-
mode: UserSubscriptionPolicyModeSchema
|
|
60806
|
+
mode: UserSubscriptionPolicyModeSchema,
|
|
60807
|
+
allowAgentAttribution: external_exports.boolean().default(false)
|
|
60751
60808
|
}).strict();
|
|
60752
60809
|
UserSubscriptionFundingCandidateSchema = external_exports.object({
|
|
60753
60810
|
credentialId: UserSubscriptionCredentialIdSchema,
|
|
@@ -60853,6 +60910,7 @@ var init_src = __esm({
|
|
|
60853
60910
|
init_live_events();
|
|
60854
60911
|
init_mcp();
|
|
60855
60912
|
init_model_selection();
|
|
60913
|
+
init_model_credential_funding();
|
|
60856
60914
|
init_mounts();
|
|
60857
60915
|
init_onboarding_runs();
|
|
60858
60916
|
init_organization_settings();
|
|
@@ -60884,6 +60942,7 @@ var init_src = __esm({
|
|
|
60884
60942
|
init_runtime_restart_diagnostics();
|
|
60885
60943
|
init_runtimes();
|
|
60886
60944
|
init_sessions();
|
|
60945
|
+
init_session_attribution_epochs();
|
|
60887
60946
|
init_spend_caps();
|
|
60888
60947
|
init_spend_cap_runtime();
|
|
60889
60948
|
init_agents();
|
|
@@ -63655,7 +63714,7 @@ var init_package = __esm({
|
|
|
63655
63714
|
"package.json"() {
|
|
63656
63715
|
package_default = {
|
|
63657
63716
|
name: "@autohq/cli",
|
|
63658
|
-
version: "0.1.
|
|
63717
|
+
version: "0.1.503",
|
|
63659
63718
|
license: "SEE LICENSE IN README.md",
|
|
63660
63719
|
publishConfig: {
|
|
63661
63720
|
access: "public"
|