@autohq/cli 0.1.318 → 0.1.319

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.
@@ -19589,7 +19589,8 @@ var AgentBridgeCodexReasoningEffortSchema = external_exports.enum([
19589
19589
  "minimal",
19590
19590
  "low",
19591
19591
  "medium",
19592
- "high"
19592
+ "high",
19593
+ "xhigh"
19593
19594
  ]);
19594
19595
  var AgentBridgeClaudeConfigSchema = AgentBridgeHarnessBaseConfigSchema.extend({
19595
19596
  model: AgentBridgeModelSelectionSchema.optional(),
@@ -23431,7 +23432,7 @@ Object.assign(lookup, {
23431
23432
  // package.json
23432
23433
  var package_default = {
23433
23434
  name: "@autohq/cli",
23434
- version: "0.1.318",
23435
+ version: "0.1.319",
23435
23436
  license: "SEE LICENSE IN README.md",
23436
23437
  publishConfig: {
23437
23438
  access: "public"
@@ -25263,7 +25264,8 @@ var CODEX_REASONING_EFFORTS = [
25263
25264
  "minimal",
25264
25265
  "low",
25265
25266
  "medium",
25266
- "high"
25267
+ "high",
25268
+ "xhigh"
25267
25269
  ];
25268
25270
  var ClaudeCodeReasoningEffortSchema = external_exports.enum(
25269
25271
  CLAUDE_CODE_REASONING_EFFORTS
@@ -25309,7 +25311,11 @@ var HARNESS_MODEL_RULES = {
25309
25311
  ]
25310
25312
  },
25311
25313
  openProviderPatterns: {},
25312
- reasoningEfforts: CLAUDE_CODE_REASONING_EFFORTS
25314
+ // The pinned Claude Agent SDK applies "high" when the effort option is
25315
+ // omitted, so "high" is what default-effort sessions have always run at.
25316
+ defaultReasoningEffort: "high",
25317
+ reasoningEfforts: CLAUDE_CODE_REASONING_EFFORTS,
25318
+ reasoningEffortsByModel: {}
25313
25319
  },
25314
25320
  codex: {
25315
25321
  defaultProvider: "openai",
@@ -25321,12 +25327,43 @@ var HARNESS_MODEL_RULES = {
25321
25327
  openProviderPatterns: {
25322
25328
  openrouter: OPENROUTER_MODEL_SLUG_PATTERN
25323
25329
  },
25324
- reasoningEfforts: CODEX_REASONING_EFFORTS
25330
+ defaultReasoningEffort: "medium",
25331
+ reasoningEfforts: CODEX_REASONING_EFFORTS,
25332
+ reasoningEffortsByModel: {
25333
+ openai: {
25334
+ "gpt-5.3-codex": {
25335
+ defaultEffort: "medium",
25336
+ efforts: CODEX_REASONING_EFFORTS
25337
+ }
25338
+ },
25339
+ openrouter: {
25340
+ "z-ai/glm-5.2": {
25341
+ defaultEffort: "high",
25342
+ efforts: ["high", "xhigh"]
25343
+ },
25344
+ "anthropic/claude-sonnet-5": {
25345
+ defaultEffort: "medium",
25346
+ efforts: ["low", "medium", "high", "xhigh"]
25347
+ },
25348
+ "moonshotai/kimi-k2.7-code": {
25349
+ defaultEffort: "high",
25350
+ efforts: ["high", "xhigh"]
25351
+ }
25352
+ }
25353
+ }
25325
25354
  }
25326
25355
  };
25327
25356
  function modelRulesForHarness(harness) {
25328
25357
  return HARNESS_MODEL_RULES[harness];
25329
25358
  }
25359
+ function reasoningEffortRulesForModelSelection(input) {
25360
+ const rules = modelRulesForHarness(input.harness);
25361
+ const model = resolveModelSelectionForHarness(input.harness, input.model);
25362
+ return rules.reasoningEffortsByModel[model.provider]?.[model.id] ?? {
25363
+ defaultEffort: rules.defaultReasoningEffort,
25364
+ efforts: rules.reasoningEfforts
25365
+ };
25366
+ }
25330
25367
  function resolveModelSelectionForHarness(harness, selection) {
25331
25368
  const rules = modelRulesForHarness(harness);
25332
25369
  const provider = selection?.provider ?? rules.defaultProvider;
@@ -25339,8 +25376,11 @@ function validateReasoningEffortForHarness(input) {
25339
25376
  if (!input.reasoningEffort) {
25340
25377
  return;
25341
25378
  }
25342
- const rules = modelRulesForHarness(input.harness);
25343
- if (!rules.reasoningEfforts.includes(input.reasoningEffort)) {
25379
+ const rules = reasoningEffortRulesForModelSelection({
25380
+ harness: input.harness,
25381
+ model: input.model
25382
+ });
25383
+ if (!rules.efforts.includes(input.reasoningEffort)) {
25344
25384
  throw new InvalidModelSelectionError(
25345
25385
  `${input.harness} does not support reasoning effort "${input.reasoningEffort}"`
25346
25386
  );
@@ -25351,9 +25391,10 @@ function validateAgentModelFieldsForHarness(spec, context) {
25351
25391
  if (harness !== "claude-code" && harness !== "codex") {
25352
25392
  return;
25353
25393
  }
25394
+ let resolvedModel;
25354
25395
  if (spec.model) {
25355
25396
  try {
25356
- resolveModelSelectionForHarness(harness, spec.model);
25397
+ resolvedModel = resolveModelSelectionForHarness(harness, spec.model);
25357
25398
  } catch (error51) {
25358
25399
  context.addIssue({
25359
25400
  code: external_exports.ZodIssueCode.custom,
@@ -25365,6 +25406,7 @@ function validateAgentModelFieldsForHarness(spec, context) {
25365
25406
  try {
25366
25407
  validateReasoningEffortForHarness({
25367
25408
  harness,
25409
+ model: resolvedModel,
25368
25410
  reasoningEffort: spec.reasoningEffort
25369
25411
  });
25370
25412
  } catch (error51) {
package/dist/index.js CHANGED
@@ -16680,6 +16680,14 @@ var init_conversation_reducer = __esm({
16680
16680
  function modelRulesForHarness(harness) {
16681
16681
  return HARNESS_MODEL_RULES[harness];
16682
16682
  }
16683
+ function reasoningEffortRulesForModelSelection(input) {
16684
+ const rules = modelRulesForHarness(input.harness);
16685
+ const model = resolveModelSelectionForHarness(input.harness, input.model);
16686
+ return rules.reasoningEffortsByModel[model.provider]?.[model.id] ?? {
16687
+ defaultEffort: rules.defaultReasoningEffort,
16688
+ efforts: rules.reasoningEfforts
16689
+ };
16690
+ }
16683
16691
  function resolveModelSelectionForHarness(harness, selection) {
16684
16692
  const rules = modelRulesForHarness(harness);
16685
16693
  const provider = selection?.provider ?? rules.defaultProvider;
@@ -16692,8 +16700,11 @@ function validateReasoningEffortForHarness(input) {
16692
16700
  if (!input.reasoningEffort) {
16693
16701
  return;
16694
16702
  }
16695
- const rules = modelRulesForHarness(input.harness);
16696
- if (!rules.reasoningEfforts.includes(input.reasoningEffort)) {
16703
+ const rules = reasoningEffortRulesForModelSelection({
16704
+ harness: input.harness,
16705
+ model: input.model
16706
+ });
16707
+ if (!rules.efforts.includes(input.reasoningEffort)) {
16697
16708
  throw new InvalidModelSelectionError(
16698
16709
  `${input.harness} does not support reasoning effort "${input.reasoningEffort}"`
16699
16710
  );
@@ -16704,9 +16715,10 @@ function validateAgentModelFieldsForHarness(spec, context) {
16704
16715
  if (harness !== "claude-code" && harness !== "codex") {
16705
16716
  return;
16706
16717
  }
16718
+ let resolvedModel;
16707
16719
  if (spec.model) {
16708
16720
  try {
16709
- resolveModelSelectionForHarness(harness, spec.model);
16721
+ resolvedModel = resolveModelSelectionForHarness(harness, spec.model);
16710
16722
  } catch (error51) {
16711
16723
  context.addIssue({
16712
16724
  code: external_exports.ZodIssueCode.custom,
@@ -16718,6 +16730,7 @@ function validateAgentModelFieldsForHarness(spec, context) {
16718
16730
  try {
16719
16731
  validateReasoningEffortForHarness({
16720
16732
  harness,
16733
+ model: resolvedModel,
16721
16734
  reasoningEffort: spec.reasoningEffort
16722
16735
  });
16723
16736
  } catch (error51) {
@@ -16777,7 +16790,8 @@ var init_model_selection = __esm({
16777
16790
  "minimal",
16778
16791
  "low",
16779
16792
  "medium",
16780
- "high"
16793
+ "high",
16794
+ "xhigh"
16781
16795
  ];
16782
16796
  ClaudeCodeReasoningEffortSchema = external_exports.enum(
16783
16797
  CLAUDE_CODE_REASONING_EFFORTS
@@ -16823,7 +16837,11 @@ var init_model_selection = __esm({
16823
16837
  ]
16824
16838
  },
16825
16839
  openProviderPatterns: {},
16826
- reasoningEfforts: CLAUDE_CODE_REASONING_EFFORTS
16840
+ // The pinned Claude Agent SDK applies "high" when the effort option is
16841
+ // omitted, so "high" is what default-effort sessions have always run at.
16842
+ defaultReasoningEffort: "high",
16843
+ reasoningEfforts: CLAUDE_CODE_REASONING_EFFORTS,
16844
+ reasoningEffortsByModel: {}
16827
16845
  },
16828
16846
  codex: {
16829
16847
  defaultProvider: "openai",
@@ -16835,7 +16853,30 @@ var init_model_selection = __esm({
16835
16853
  openProviderPatterns: {
16836
16854
  openrouter: OPENROUTER_MODEL_SLUG_PATTERN
16837
16855
  },
16838
- reasoningEfforts: CODEX_REASONING_EFFORTS
16856
+ defaultReasoningEffort: "medium",
16857
+ reasoningEfforts: CODEX_REASONING_EFFORTS,
16858
+ reasoningEffortsByModel: {
16859
+ openai: {
16860
+ "gpt-5.3-codex": {
16861
+ defaultEffort: "medium",
16862
+ efforts: CODEX_REASONING_EFFORTS
16863
+ }
16864
+ },
16865
+ openrouter: {
16866
+ "z-ai/glm-5.2": {
16867
+ defaultEffort: "high",
16868
+ efforts: ["high", "xhigh"]
16869
+ },
16870
+ "anthropic/claude-sonnet-5": {
16871
+ defaultEffort: "medium",
16872
+ efforts: ["low", "medium", "high", "xhigh"]
16873
+ },
16874
+ "moonshotai/kimi-k2.7-code": {
16875
+ defaultEffort: "high",
16876
+ efforts: ["high", "xhigh"]
16877
+ }
16878
+ }
16879
+ }
16839
16880
  }
16840
16881
  };
16841
16882
  }
@@ -27066,7 +27107,7 @@ var init_package = __esm({
27066
27107
  "package.json"() {
27067
27108
  package_default = {
27068
27109
  name: "@autohq/cli",
27069
- version: "0.1.318",
27110
+ version: "0.1.319",
27070
27111
  license: "SEE LICENSE IN README.md",
27071
27112
  publishConfig: {
27072
27113
  access: "public"
@@ -27679,6 +27720,8 @@ var init_authoring = __esm({
27679
27720
  AGENT_FILE_EXTENSIONS = [".yaml", ".yml", ".json"];
27680
27721
  AGENT_SPEC_FIELDS = /* @__PURE__ */ new Set([
27681
27722
  "harness",
27723
+ "model",
27724
+ "reasoningEffort",
27682
27725
  "systemPrompt",
27683
27726
  "environment",
27684
27727
  "identity",
@@ -28688,6 +28731,8 @@ var init_agent_fields = __esm({
28688
28731
  labels: metadataField(),
28689
28732
  annotations: metadataField(),
28690
28733
  harness: specField(),
28734
+ model: specField(),
28735
+ reasoningEffort: specField(),
28691
28736
  systemPrompt: fileBackedStringField(),
28692
28737
  environment: inlineEnvironmentField(),
28693
28738
  identity: inlineIdentityField(),
@@ -37000,7 +37045,8 @@ var AgentBridgeCodexReasoningEffortSchema = external_exports.enum([
37000
37045
  "minimal",
37001
37046
  "low",
37002
37047
  "medium",
37003
- "high"
37048
+ "high",
37049
+ "xhigh"
37004
37050
  ]);
37005
37051
  var AgentBridgeClaudeConfigSchema = AgentBridgeHarnessBaseConfigSchema.extend({
37006
37052
  model: AgentBridgeModelSelectionSchema.optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autohq/cli",
3
- "version": "0.1.318",
3
+ "version": "0.1.319",
4
4
  "license": "SEE LICENSE IN README.md",
5
5
  "publishConfig": {
6
6
  "access": "public"