@autohq/cli 0.1.612 → 0.1.613

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.
Files changed (3) hide show
  1. package/dist/agent-bridge.js +25973 -20567
  2. package/dist/index.js +19 -12
  3. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -18752,6 +18752,7 @@ var init_github_mcp_catalog = __esm({
18752
18752
  "enable_pull_request_auto_merge",
18753
18753
  "enqueue_pull_request",
18754
18754
  "rerun_failed_jobs",
18755
+ "rerun_failed_jobs_for_pr_head",
18755
18756
  "upsert_issue_comment"
18756
18757
  ];
18757
18758
  GITHUB_MCP_SELECTABLE_TOOL_NAMES = [
@@ -18771,7 +18772,8 @@ var init_github_mcp_catalog = __esm({
18771
18772
  "actions_secret_write"
18772
18773
  ];
18773
18774
  GITHUB_MCP_ACTIONS_WRITE_TOOLS = [
18774
- "rerun_failed_jobs"
18775
+ "rerun_failed_jobs",
18776
+ "rerun_failed_jobs_for_pr_head"
18775
18777
  ];
18776
18778
  GITHUB_MCP_WRITE_TOOLS = [
18777
18779
  "actions_run_trigger",
@@ -93207,7 +93209,7 @@ var init_package = __esm({
93207
93209
  "package.json"() {
93208
93210
  package_default = {
93209
93211
  name: "@autohq/cli",
93210
- version: "0.1.612",
93212
+ version: "0.1.613",
93211
93213
  license: "SEE LICENSE IN README.md",
93212
93214
  publishConfig: {
93213
93215
  access: "public"
@@ -93236,7 +93238,7 @@ var init_package = __esm({
93236
93238
  typecheck: "tsc --noEmit"
93237
93239
  },
93238
93240
  dependencies: {
93239
- "@anthropic-ai/claude-agent-sdk": "^0.3.153",
93241
+ "@anthropic-ai/claude-agent-sdk": "^0.3.221",
93240
93242
  "@inkjs/ui": "^2.0.0",
93241
93243
  "@modelcontextprotocol/sdk": "^1.29.0",
93242
93244
  "@tanstack/react-query": "^5.100.14",
@@ -111178,6 +111180,9 @@ var ClaudeCodeCommandHandler = class {
111178
111180
  }
111179
111181
  async emitUsageTurn(turnId) {
111180
111182
  const activeContext = this.context;
111183
+ if (!activeContext && turnId === null) {
111184
+ return;
111185
+ }
111181
111186
  if (!activeContext) {
111182
111187
  throw new Error("Cannot publish usage turn without bridge context");
111183
111188
  }
@@ -113682,8 +113687,13 @@ var CodexCommandHandler = class {
113682
113687
  delivery.commandId,
113683
113688
  message
113684
113689
  );
113690
+ if (requestedDeferredDelivery(delivery)) {
113691
+ this.input.writeOutput?.(
113692
+ "agent_bridge_codex_deferred_mapped_to_interrupt"
113693
+ );
113694
+ }
113685
113695
  await this.ensureSession().sendMessage(message, {
113686
- mode: deliveryMode2(delivery),
113696
+ mode: "interrupt",
113687
113697
  commandId: delivery.commandId
113688
113698
  });
113689
113699
  } catch (error51) {
@@ -113836,6 +113846,9 @@ var CodexCommandHandler = class {
113836
113846
  }
113837
113847
  async emitUsageTurn(turnId) {
113838
113848
  const activeContext = this.context;
113849
+ if (!activeContext && turnId === null) {
113850
+ return;
113851
+ }
113839
113852
  if (!activeContext) {
113840
113853
  throw new Error("Cannot publish usage turn without bridge context");
113841
113854
  }
@@ -113964,15 +113977,9 @@ function deliverySelection2(delivery) {
113964
113977
  function sameCodexConfigSelection(current, next) {
113965
113978
  return current.model?.provider === next.model?.provider && current.model?.id === next.model?.id && current.reasoningEffort === next.reasoningEffort;
113966
113979
  }
113967
- function deliveryMode2(delivery) {
113980
+ function requestedDeferredDelivery(delivery) {
113968
113981
  const payload = delivery.payload;
113969
- if (payload && typeof payload === "object" && "deliveryMode" in payload) {
113970
- const parsed = MessageDeliveryModeSchema.safeParse(payload.deliveryMode);
113971
- if (parsed.success) {
113972
- return parsed.data;
113973
- }
113974
- }
113975
- return "interrupt";
113982
+ return typeof payload === "object" && payload !== null && "deliveryMode" in payload && payload.deliveryMode === "deferred";
113976
113983
  }
113977
113984
  function errorMessage4(error51) {
113978
113985
  return error51 instanceof Error ? error51.message : String(error51);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autohq/cli",
3
- "version": "0.1.612",
3
+ "version": "0.1.613",
4
4
  "license": "SEE LICENSE IN README.md",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -29,7 +29,7 @@
29
29
  "typecheck": "tsc --noEmit"
30
30
  },
31
31
  "dependencies": {
32
- "@anthropic-ai/claude-agent-sdk": "^0.3.153",
32
+ "@anthropic-ai/claude-agent-sdk": "^0.3.221",
33
33
  "@inkjs/ui": "^2.0.0",
34
34
  "@modelcontextprotocol/sdk": "^1.29.0",
35
35
  "@tanstack/react-query": "^5.100.14",