@dosu/cli 0.60.0 → 0.60.1

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 (2) hide show
  1. package/bin/dosu.js +14 -6
  2. package/package.json +1 -1
package/bin/dosu.js CHANGED
@@ -1083,7 +1083,7 @@ function isNpxInvocation(channel = INSTALL_CHANNEL, env = process.env) {
1083
1083
  function getVersionString() {
1084
1084
  return `v${VERSION}`;
1085
1085
  }
1086
- var VERSION = "0.60.0", INSTALL_CHANNEL = "npm";
1086
+ var VERSION = "0.60.1", INSTALL_CHANNEL = "npm";
1087
1087
 
1088
1088
  // src/debug/logger.ts
1089
1089
  import {
@@ -13800,7 +13800,7 @@ var init_conflicts = __esm(() => {
13800
13800
  });
13801
13801
 
13802
13802
  // src/telemetry/debug-id.ts
13803
- var BUNDLE_DEBUG_ID_PLACEHOLDER = "bd089d5e-a4ab-0f80-6475-6e2164756e21";
13803
+ var BUNDLE_DEBUG_ID_PLACEHOLDER = "9d93d312-f9af-7e47-6475-6e2164756e21";
13804
13804
 
13805
13805
  // src/telemetry/telemetry.ts
13806
13806
  import { randomUUID as randomUUID2 } from "node:crypto";
@@ -14708,6 +14708,11 @@ var init_telemetry = __esm(() => {
14708
14708
  "quota_exceeded",
14709
14709
  "gateway_rejected",
14710
14710
  "claude_code_missing",
14711
+ "max_turns",
14712
+ "run_failed",
14713
+ "no_result",
14714
+ "timed_out",
14715
+ "sdk_error",
14711
14716
  "error"
14712
14717
  ]);
14713
14718
  GATEWAY_REASONS = new Set([
@@ -58603,13 +58608,16 @@ async function runLearner(options) {
58603
58608
  }
58604
58609
  if (message.subtype !== "success" || message.is_error) {
58605
58610
  logger.debug("learner", `run ${runID} failed: ${text}`);
58606
- return finish("error", "Study run failed; see debug log for details.");
58611
+ if (message.subtype === "error_max_turns") {
58612
+ return finish("max_turns", "Study run hit its turn limit before finishing.");
58613
+ }
58614
+ return finish("run_failed", "Study run failed; see debug log for details.");
58607
58615
  }
58608
58616
  logger.debug("learner", `run ${runID} completed: ${turns} turns, ${notesWritten} suggested pages`);
58609
58617
  return finish("completed", text);
58610
58618
  }
58611
58619
  }
58612
- return finish("error", "Study run ended without a result.");
58620
+ return finish("no_result", "Study run ended without a result.");
58613
58621
  } catch (error) {
58614
58622
  const text = error instanceof Error ? error.message : String(error);
58615
58623
  const gatewayError = classifyGatewayError(text) ?? classifyGatewayRejection(text);
@@ -58617,7 +58625,7 @@ async function runLearner(options) {
58617
58625
  return finish(gatewayError.outcome, gatewayError.message, gatewayError.reason);
58618
58626
  }
58619
58627
  logger.debug("learner", `run ${runID} threw: ${text}`);
58620
- return finish("error", abort.signal.aborted ? "Study run timed out and was aborted." : "Study run failed; see debug log for details.");
58628
+ return abort.signal.aborted ? finish("timed_out", "Study run timed out and was aborted.") : finish("sdk_error", "Study run failed; see debug log for details.");
58621
58629
  } finally {
58622
58630
  clearTimeout(timer);
58623
58631
  configDir.cleanup();
@@ -67843,4 +67851,4 @@ main().catch((err) => {
67843
67851
  process.exit(1);
67844
67852
  });
67845
67853
 
67846
- //# debugId=bd089d5e-a4ab-0f80-6475-6e2164756e21
67854
+ //# debugId=9d93d312-f9af-7e47-6475-6e2164756e21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dosu/cli",
3
- "version": "0.60.0",
3
+ "version": "0.60.1",
4
4
  "type": "module",
5
5
  "description": "Dosu CLI - Manage MCP servers for AI tools",
6
6
  "license": "MIT",