@autohq/cli 0.1.219 → 0.1.220

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.
@@ -23319,7 +23319,7 @@ Object.assign(lookup, {
23319
23319
  // package.json
23320
23320
  var package_default = {
23321
23321
  name: "@autohq/cli",
23322
- version: "0.1.219",
23322
+ version: "0.1.220",
23323
23323
  license: "SEE LICENSE IN README.md",
23324
23324
  publishConfig: {
23325
23325
  access: "public"
@@ -26125,6 +26125,36 @@ var McpJsonRpcMessageSchema = external_exports.object({
26125
26125
  }).passthrough();
26126
26126
  var McpPostBodySchema = external_exports.union([McpJsonRpcMessageSchema, external_exports.array(McpJsonRpcMessageSchema)]).transform((body) => Array.isArray(body) ? body : [body]);
26127
26127
 
26128
+ // ../../packages/schemas/src/pricing.ts
26129
+ var RATE_CARD_2026_06_23 = {
26130
+ version: "2026-06-23",
26131
+ effectiveAt: "2026-06-23T00:00:00.000Z",
26132
+ models: {
26133
+ "claude-opus-4-8": opusTier(),
26134
+ "claude-opus-4-7": opusTier(),
26135
+ "claude-opus-4-6": opusTier(),
26136
+ "claude-sonnet-4-6": tier(3, 15),
26137
+ "claude-haiku-4-5": tier(1, 5),
26138
+ "claude-haiku-4-5-20251001": tier(1, 5),
26139
+ "claude-fable-5": tier(10, 50)
26140
+ }
26141
+ };
26142
+ var PRICING_RATE_CARDS = {
26143
+ [RATE_CARD_2026_06_23.version]: RATE_CARD_2026_06_23
26144
+ };
26145
+ var CURRENT_PRICING_VERSION = RATE_CARD_2026_06_23.version;
26146
+ function tier(inputUsdPerMtok, outputUsdPerMtok) {
26147
+ return {
26148
+ inputUsdPerMtok,
26149
+ outputUsdPerMtok,
26150
+ cacheWrite5mUsdPerMtok: inputUsdPerMtok * 1.25,
26151
+ cacheReadUsdPerMtok: inputUsdPerMtok * 0.1
26152
+ };
26153
+ }
26154
+ function opusTier() {
26155
+ return tier(5, 25);
26156
+ }
26157
+
26128
26158
  // ../../packages/schemas/src/project-service-accounts.ts
26129
26159
  var ProjectServiceAccountSchema = external_exports.object({
26130
26160
  id: ServiceAccountIdSchema,
@@ -27155,6 +27185,40 @@ var ResourceReconciliationScopeSchema = external_exports.object({
27155
27185
  projectId: external_exports.string().trim().min(1).nullable()
27156
27186
  }).strict();
27157
27187
 
27188
+ // ../../packages/schemas/src/usage.ts
27189
+ var UsageHarnessSchema = external_exports.enum(AGENT_HARNESSES);
27190
+ var NonNegativeTokenCountSchema = external_exports.number().int().nonnegative();
27191
+ var NonNegativeUsdSchema = external_exports.number().nonnegative();
27192
+ var UsageEventSchema = external_exports.object({
27193
+ // Tenant + lineage attribution. projectId is nullable because a resource can
27194
+ // belong directly to an organization with no project.
27195
+ organizationId: OrganizationIdSchema,
27196
+ projectId: ProjectIdSchema.nullable(),
27197
+ sessionId: SessionIdSchema2,
27198
+ agentResourceId: external_exports.string().trim().min(1),
27199
+ harness: UsageHarnessSchema,
27200
+ // The concrete model id the call billed against (e.g. "claude-opus-4-8"),
27201
+ // taken from the response rather than any selection layer — a single run can
27202
+ // touch multiple models, so this is per-call, never per-run.
27203
+ model: external_exports.string().trim().min(1),
27204
+ inputTokens: NonNegativeTokenCountSchema,
27205
+ outputTokens: NonNegativeTokenCountSchema,
27206
+ cacheCreationTokens: NonNegativeTokenCountSchema,
27207
+ cacheReadTokens: NonNegativeTokenCountSchema,
27208
+ // The provider's own cost when it reports one, kept only for reconciliation.
27209
+ // Nullable/absent because it can be 0 or missing — never the billing source.
27210
+ providerCostUsd: NonNegativeUsdSchema.nullable(),
27211
+ // Platform-derived cost and the rate-card version it was derived under, so a
27212
+ // later rate-card change never silently rewrites historical cost.
27213
+ derivedCostUsd: NonNegativeUsdSchema,
27214
+ pricingVersion: external_exports.string().trim().min(1),
27215
+ occurredAt: external_exports.string().datetime()
27216
+ });
27217
+ var UsageEventRecordSchema = UsageEventSchema.extend({
27218
+ id: external_exports.string().trim().min(1),
27219
+ createdAt: external_exports.string().datetime()
27220
+ });
27221
+
27158
27222
  // src/commands/agent-bridge/harness/output-buffer.ts
27159
27223
  var AgentBridgeOutputBuffer = class {
27160
27224
  constructor(input) {
package/dist/index.js CHANGED
@@ -17935,6 +17935,42 @@ var init_mcp = __esm({
17935
17935
  }
17936
17936
  });
17937
17937
 
17938
+ // ../../packages/schemas/src/pricing.ts
17939
+ function tier(inputUsdPerMtok, outputUsdPerMtok) {
17940
+ return {
17941
+ inputUsdPerMtok,
17942
+ outputUsdPerMtok,
17943
+ cacheWrite5mUsdPerMtok: inputUsdPerMtok * 1.25,
17944
+ cacheReadUsdPerMtok: inputUsdPerMtok * 0.1
17945
+ };
17946
+ }
17947
+ function opusTier() {
17948
+ return tier(5, 25);
17949
+ }
17950
+ var RATE_CARD_2026_06_23, PRICING_RATE_CARDS, CURRENT_PRICING_VERSION;
17951
+ var init_pricing = __esm({
17952
+ "../../packages/schemas/src/pricing.ts"() {
17953
+ "use strict";
17954
+ RATE_CARD_2026_06_23 = {
17955
+ version: "2026-06-23",
17956
+ effectiveAt: "2026-06-23T00:00:00.000Z",
17957
+ models: {
17958
+ "claude-opus-4-8": opusTier(),
17959
+ "claude-opus-4-7": opusTier(),
17960
+ "claude-opus-4-6": opusTier(),
17961
+ "claude-sonnet-4-6": tier(3, 15),
17962
+ "claude-haiku-4-5": tier(1, 5),
17963
+ "claude-haiku-4-5-20251001": tier(1, 5),
17964
+ "claude-fable-5": tier(10, 50)
17965
+ }
17966
+ };
17967
+ PRICING_RATE_CARDS = {
17968
+ [RATE_CARD_2026_06_23.version]: RATE_CARD_2026_06_23
17969
+ };
17970
+ CURRENT_PRICING_VERSION = RATE_CARD_2026_06_23.version;
17971
+ }
17972
+ });
17973
+
17938
17974
  // ../../packages/schemas/src/project-service-accounts.ts
17939
17975
  var ProjectServiceAccountSchema, ProjectServiceAccountCreateRequestSchema, ProjectServiceAccountUpdateRequestSchema, ProjectServiceAccountTokenResponseSchema, ProjectServiceAccountUpdateResponseSchema, ProjectServiceAccountRemoveResponseSchema, ProjectServiceAccountListResponseSchema;
17940
17976
  var init_project_service_accounts = __esm({
@@ -19105,6 +19141,49 @@ var init_temporal = __esm({
19105
19141
  }
19106
19142
  });
19107
19143
 
19144
+ // ../../packages/schemas/src/usage.ts
19145
+ var UsageHarnessSchema, NonNegativeTokenCountSchema, NonNegativeUsdSchema, UsageEventSchema, UsageEventRecordSchema;
19146
+ var init_usage = __esm({
19147
+ "../../packages/schemas/src/usage.ts"() {
19148
+ "use strict";
19149
+ init_zod();
19150
+ init_agents();
19151
+ init_ids();
19152
+ UsageHarnessSchema = external_exports.enum(AGENT_HARNESSES);
19153
+ NonNegativeTokenCountSchema = external_exports.number().int().nonnegative();
19154
+ NonNegativeUsdSchema = external_exports.number().nonnegative();
19155
+ UsageEventSchema = external_exports.object({
19156
+ // Tenant + lineage attribution. projectId is nullable because a resource can
19157
+ // belong directly to an organization with no project.
19158
+ organizationId: OrganizationIdSchema,
19159
+ projectId: ProjectIdSchema.nullable(),
19160
+ sessionId: SessionIdSchema,
19161
+ agentResourceId: external_exports.string().trim().min(1),
19162
+ harness: UsageHarnessSchema,
19163
+ // The concrete model id the call billed against (e.g. "claude-opus-4-8"),
19164
+ // taken from the response rather than any selection layer — a single run can
19165
+ // touch multiple models, so this is per-call, never per-run.
19166
+ model: external_exports.string().trim().min(1),
19167
+ inputTokens: NonNegativeTokenCountSchema,
19168
+ outputTokens: NonNegativeTokenCountSchema,
19169
+ cacheCreationTokens: NonNegativeTokenCountSchema,
19170
+ cacheReadTokens: NonNegativeTokenCountSchema,
19171
+ // The provider's own cost when it reports one, kept only for reconciliation.
19172
+ // Nullable/absent because it can be 0 or missing — never the billing source.
19173
+ providerCostUsd: NonNegativeUsdSchema.nullable(),
19174
+ // Platform-derived cost and the rate-card version it was derived under, so a
19175
+ // later rate-card change never silently rewrites historical cost.
19176
+ derivedCostUsd: NonNegativeUsdSchema,
19177
+ pricingVersion: external_exports.string().trim().min(1),
19178
+ occurredAt: external_exports.string().datetime()
19179
+ });
19180
+ UsageEventRecordSchema = UsageEventSchema.extend({
19181
+ id: external_exports.string().trim().min(1),
19182
+ createdAt: external_exports.string().datetime()
19183
+ });
19184
+ }
19185
+ });
19186
+
19108
19187
  // ../../packages/schemas/src/index.ts
19109
19188
  var init_src = __esm({
19110
19189
  "../../packages/schemas/src/index.ts"() {
@@ -19124,6 +19203,7 @@ var init_src = __esm({
19124
19203
  init_environments();
19125
19204
  init_mcp();
19126
19205
  init_mounts();
19206
+ init_pricing();
19127
19207
  init_provider_grants();
19128
19208
  init_project_service_accounts();
19129
19209
  init_project_resources();
@@ -19145,6 +19225,7 @@ var init_src = __esm({
19145
19225
  init_temporal();
19146
19226
  init_tools();
19147
19227
  init_trigger_router();
19228
+ init_usage();
19148
19229
  }
19149
19230
  });
19150
19231
 
@@ -21829,7 +21910,7 @@ var init_package = __esm({
21829
21910
  "package.json"() {
21830
21911
  package_default = {
21831
21912
  name: "@autohq/cli",
21832
- version: "0.1.219",
21913
+ version: "0.1.220",
21833
21914
  license: "SEE LICENSE IN README.md",
21834
21915
  publishConfig: {
21835
21916
  access: "public"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autohq/cli",
3
- "version": "0.1.219",
3
+ "version": "0.1.220",
4
4
  "license": "SEE LICENSE IN README.md",
5
5
  "publishConfig": {
6
6
  "access": "public"