@verboo/code 0.7.4 → 0.7.6

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/dist/cli.mjs +73 -57
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -17082,7 +17082,7 @@ function getOauthConfig() {
17082
17082
  }
17083
17083
  return config;
17084
17084
  }
17085
- var CLAUDE_AI_INFERENCE_SCOPE = "user:inference", CLAUDE_AI_PROFILE_SCOPE = "user:profile", CONSOLE_SCOPE = "org:create_api_key", OAUTH_BETA_HEADER = "oauth-2025-04-20", CONSOLE_OAUTH_SCOPES, CLAUDE_AI_OAUTH_SCOPES, ALL_OAUTH_SCOPES, VERBOO_API_BASE_URL = "https://code.verboo.ai", VERBOO_FRONT_BASE_URL = "https://code.verboo.ai", VERBOO_ROUTER_URL = "https://code.verboo.ai/router", VERBOO_OAUTH_SCOPES, PROD_OAUTH_CONFIG, MCP_CLIENT_METADATA_URL = "https://claude.ai/oauth/claude-code-client-metadata", STAGING_OAUTH_CONFIG, ALLOWED_OAUTH_BASE_URLS;
17085
+ var CLAUDE_AI_INFERENCE_SCOPE = "user:inference", CLAUDE_AI_PROFILE_SCOPE = "user:profile", CONSOLE_SCOPE = "org:create_api_key", OAUTH_BETA_HEADER = "oauth-2025-04-20", CONSOLE_OAUTH_SCOPES, CLAUDE_AI_OAUTH_SCOPES, ALL_OAUTH_SCOPES, VERBOO_API_BASE_URL = "https://code.verboo.ai", VERBOO_FRONT_BASE_URL = "https://code.verboo.ai", VERBOO_ROUTER_URL = "https://code.verboo.ai/router/v1", VERBOO_OAUTH_SCOPES, PROD_OAUTH_CONFIG, MCP_CLIENT_METADATA_URL = "https://claude.ai/oauth/claude-code-client-metadata", STAGING_OAUTH_CONFIG, ALLOWED_OAUTH_BASE_URLS;
17086
17086
  var init_oauth = __esm(() => {
17087
17087
  init_envUtils();
17088
17088
  CONSOLE_OAUTH_SCOPES = [
@@ -110603,7 +110603,7 @@ async function fetchVerbooModels(accessToken, opts = {}) {
110603
110603
  }
110604
110604
  if (inflight)
110605
110605
  return inflight;
110606
- const endpoint = `${VERBOO_ROUTER_URL}/v1/models`;
110606
+ const endpoint = `${VERBOO_ROUTER_URL}/models`;
110607
110607
  inflight = (async () => {
110608
110608
  try {
110609
110609
  const response = await axios_default.get(endpoint, {
@@ -115487,7 +115487,7 @@ function printStartupScreen(modelOverride) {
115487
115487
  const home = process.env.HOME || process.env.USERPROFILE || "";
115488
115488
  const cwd2 = process.cwd();
115489
115489
  const displayCwd = home && cwd2.startsWith(home) ? `~${cwd2.slice(home.length)}` : cwd2;
115490
- const version2 = "0.7.4";
115490
+ const version2 = "0.7.6";
115491
115491
  const bold2 = `${ESC}1m`;
115492
115492
  const PURPLE = rgb(...ACCENT);
115493
115493
  const SOFT = rgb(...CREAM);
@@ -201070,7 +201070,8 @@ async function getAnthropicClient({
201070
201070
  return createOpenAIShimClient2({
201071
201071
  defaultHeaders,
201072
201072
  maxRetries,
201073
- timeout: parseInt(process.env.API_TIMEOUT_MS || String(600000), 10)
201073
+ timeout: parseInt(process.env.API_TIMEOUT_MS || String(600000), 10),
201074
+ providerOverride
201074
201075
  });
201075
201076
  }
201076
201077
  if (isEnvTruthy(process.env.CLAUDE_CODE_USE_BEDROCK)) {
@@ -201150,14 +201151,26 @@ async function getAnthropicClient({
201150
201151
  return new AnthropicVertex(vertexArgs);
201151
201152
  }
201152
201153
  const useOAuthToken = isClaudeAISubscriber() || isVerbooMode();
201153
- const verbooAccessToken = useOAuthToken ? getClaudeAIOAuthTokens()?.accessToken : undefined;
201154
- if (isVerbooMode() && !verbooAccessToken) {
201155
- process.stderr.write("[Verboo] ERRO: token de acesso não encontrado. Execute `verboo /login`.\n");
201154
+ const accessToken = useOAuthToken ? getClaudeAIOAuthTokens()?.accessToken : undefined;
201155
+ if (isVerbooMode()) {
201156
+ if (!accessToken) {
201157
+ process.stderr.write("[Verboo] ERRO: token de acesso não encontrado. Execute `verboo /login`.\n");
201158
+ }
201159
+ const { createOpenAIShimClient: createOpenAIShimClient2 } = await Promise.resolve().then(() => (init_openaiShim(), exports_openaiShim));
201160
+ return createOpenAIShimClient2({
201161
+ defaultHeaders,
201162
+ maxRetries,
201163
+ timeout: parseInt(process.env.API_TIMEOUT_MS || String(600000), 10),
201164
+ providerOverride: {
201165
+ model: model ?? "",
201166
+ baseURL: VERBOO_ROUTER_URL,
201167
+ apiKey: accessToken ?? ""
201168
+ }
201169
+ });
201156
201170
  }
201157
201171
  const clientConfig = {
201158
201172
  apiKey: useOAuthToken ? null : apiKey || getAnthropicApiKey(),
201159
- authToken: verbooAccessToken,
201160
- baseURL: process.env.USER_TYPE === "ant" && isEnvTruthy(process.env.USE_STAGING_OAUTH) ? getOauthConfig().BASE_API_URL : VERBOO_ROUTER_URL,
201173
+ authToken: accessToken,
201161
201174
  ...ARGS,
201162
201175
  ...isDebugToStdErr() && { logger: createStderrLogger() }
201163
201176
  };
@@ -271137,16 +271150,26 @@ async function checkInstall(force = false) {
271137
271150
  });
271138
271151
  } else {
271139
271152
  const shellType = getShellType();
271140
- const configPaths = getShellConfigPaths();
271141
- const configFile = configPaths[shellType];
271142
- const displayPath = configFile ? configFile.replace(homedir21(), "~") : "your shell config file";
271143
- messages.push({
271144
- message: `Native installation exists but ~/.local/bin is not in your PATH. Run:
271153
+ if (shellType === "fish") {
271154
+ messages.push({
271155
+ message: `Native installation exists but ~/.local/bin is not in your PATH. Run:
271156
+
271157
+ fish_add_path ~/.local/bin`,
271158
+ userActionRequired: true,
271159
+ type: "path"
271160
+ });
271161
+ } else {
271162
+ const configPaths = getShellConfigPaths();
271163
+ const configFile = configPaths[shellType];
271164
+ const displayPath = configFile ? configFile.replace(homedir21(), "~") : "your shell config file";
271165
+ messages.push({
271166
+ message: `Native installation exists but ~/.local/bin is not in your PATH. Run:
271145
271167
 
271146
271168
  echo 'export PATH="$HOME/.local/bin:$PATH"' >> ${displayPath} && source ${displayPath}`,
271147
- userActionRequired: true,
271148
- type: "path"
271149
- });
271169
+ userActionRequired: true,
271170
+ type: "path"
271171
+ });
271172
+ }
271150
271173
  }
271151
271174
  }
271152
271175
  return messages;
@@ -272609,6 +272632,7 @@ async function preflightVerbooLogin() {
272609
272632
  async function ensureVerbooAuthenticated(opts = {}) {
272610
272633
  if (!isVerbooMode() || validated)
272611
272634
  return;
272635
+ clearVerbooModelsCache();
272612
272636
  const session = await validateVerbooSession();
272613
272637
  if (session.kind === "ok") {
272614
272638
  validated = true;
@@ -272623,7 +272647,7 @@ async function ensureVerbooAuthenticated(opts = {}) {
272623
272647
  validated = true;
272624
272648
  const stored = await getClaudeAIOAuthTokensAsync();
272625
272649
  if (stored?.accessToken) {
272626
- await fetchVerbooModels(stored.accessToken).catch((err2) => {
272650
+ await fetchVerbooModels(stored.accessToken, { force: true }).catch((err2) => {
272627
272651
  logForDebugging2(`[VerbooStartup] Falha ao atualizar modelos em modo degradado: ${err2.message}`);
272628
272652
  });
272629
272653
  }
@@ -376692,7 +376716,7 @@ function getAnthropicEnvMetadata() {
376692
376716
  function getBuildAgeMinutes() {
376693
376717
  if (false)
376694
376718
  ;
376695
- const buildTime = new Date("2026-04-29T16:29:21.895Z").getTime();
376719
+ const buildTime = new Date("2026-04-29T17:24:37.768Z").getTime();
376696
376720
  if (isNaN(buildTime))
376697
376721
  return;
376698
376722
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -405043,10 +405067,7 @@ ${deferredToolList}
405043
405067
  ...Object.keys(outputConfig).length > 0 && {
405044
405068
  output_config: outputConfig
405045
405069
  },
405046
- ...speed !== undefined && { speed },
405047
- ...isVerbooMode() && !modelSupportsThinking(options2.model) && {
405048
- enable_thinking: false
405049
- }
405070
+ ...speed !== undefined && { speed }
405050
405071
  };
405051
405072
  };
405052
405073
  {
@@ -405324,8 +405345,6 @@ ${deferredToolList}
405324
405345
  expected_type: "thinking",
405325
405346
  actual_type: contentBlock.type
405326
405347
  });
405327
- if (isVerbooMode())
405328
- break;
405329
405348
  throw new Error("Content block is not a thinking block");
405330
405349
  }
405331
405350
  contentBlock.signature = delta.signature;
@@ -405337,8 +405356,6 @@ ${deferredToolList}
405337
405356
  expected_type: "thinking",
405338
405357
  actual_type: contentBlock.type
405339
405358
  });
405340
- if (isVerbooMode())
405341
- break;
405342
405359
  throw new Error("Content block is not a thinking block");
405343
405360
  }
405344
405361
  contentBlock.thinking += delta.thinking;
@@ -406029,7 +406046,6 @@ function getMaxOutputTokensForModel(model) {
406029
406046
  var autoModeStateModule3, MAX_NON_STREAMING_TOKENS = 64000;
406030
406047
  var init_claude = __esm(() => {
406031
406048
  init_providers();
406032
- init_oauth();
406033
406049
  init_system();
406034
406050
  init_Tool();
406035
406051
  init_api3();
@@ -417227,7 +417243,7 @@ function buildPrimarySection() {
417227
417243
  }, undefined, false, undefined, this);
417228
417244
  return [{
417229
417245
  label: "Version",
417230
- value: "0.7.4"
417246
+ value: "0.7.6"
417231
417247
  }, {
417232
417248
  label: "Session name",
417233
417249
  value: nameValue
@@ -485177,7 +485193,7 @@ var init_bridge_kick = __esm(() => {
485177
485193
  var call60 = async () => {
485178
485194
  return {
485179
485195
  type: "text",
485180
- value: `${"99.0.0"} (built ${"2026-04-29T16:29:21.895Z"})`
485196
+ value: `${"99.0.0"} (built ${"2026-04-29T17:24:37.768Z"})`
485181
485197
  };
485182
485198
  }, version2, version_default;
485183
485199
  var init_version = __esm(() => {
@@ -560813,7 +560829,7 @@ function WelcomeV2() {
560813
560829
  dimColor: true,
560814
560830
  children: [
560815
560831
  "v",
560816
- "0.7.4",
560832
+ "0.7.6",
560817
560833
  " "
560818
560834
  ]
560819
560835
  }, undefined, true, undefined, this)
@@ -561000,7 +561016,7 @@ function WelcomeV2() {
561000
561016
  dimColor: true,
561001
561017
  children: [
561002
561018
  "v",
561003
- "0.7.4",
561019
+ "0.7.6",
561004
561020
  " "
561005
561021
  ]
561006
561022
  }, undefined, true, undefined, this)
@@ -561216,7 +561232,7 @@ function AppleTerminalWelcomeV2(t0) {
561216
561232
  dimColor: true,
561217
561233
  children: [
561218
561234
  "v",
561219
- "0.7.4",
561235
+ "0.7.6",
561220
561236
  " "
561221
561237
  ]
561222
561238
  }, undefined, true, undefined, this);
@@ -561425,7 +561441,7 @@ function AppleTerminalWelcomeV2(t0) {
561425
561441
  dimColor: true,
561426
561442
  children: [
561427
561443
  "v",
561428
- "0.7.4",
561444
+ "0.7.6",
561429
561445
  " "
561430
561446
  ]
561431
561447
  }, undefined, true, undefined, this);
@@ -578961,11 +578977,11 @@ function Install({
578961
578977
  }, [force, target]);
578962
578978
  import_react332.useEffect(() => {
578963
578979
  if (state3.type === "success") {
578964
- setTimeout(onDone, 2000, "OpenClaude installation completed successfully", {
578980
+ setTimeout(onDone, 2000, "Verboo installation completed successfully", {
578965
578981
  display: "system"
578966
578982
  });
578967
578983
  } else if (state3.type === "error") {
578968
- setTimeout(onDone, 3000, "OpenClaude installation failed", {
578984
+ setTimeout(onDone, 3000, "Verboo installation failed", {
578969
578985
  display: "system"
578970
578986
  });
578971
578987
  }
@@ -578985,7 +579001,7 @@ function Install({
578985
579001
  state3.type === "installing" && /* @__PURE__ */ jsx_dev_runtime489.jsxDEV(ThemedText, {
578986
579002
  color: "claude",
578987
579003
  children: [
578988
- "Installing OpenClaude native build ",
579004
+ "Installing Verboo native build ",
578989
579005
  state3.version,
578990
579006
  "..."
578991
579007
  ]
@@ -579010,7 +579026,7 @@ function Install({
579010
579026
  /* @__PURE__ */ jsx_dev_runtime489.jsxDEV(ThemedText, {
579011
579027
  color: "success",
579012
579028
  bold: true,
579013
- children: "OpenClaude successfully installed!"
579029
+ children: "Verboo successfully installed!"
579014
579030
  }, undefined, false, undefined, this)
579015
579031
  ]
579016
579032
  }, undefined, true, undefined, this),
@@ -579120,7 +579136,7 @@ var init_install = __esm(() => {
579120
579136
  install = {
579121
579137
  type: "local-jsx",
579122
579138
  name: "install",
579123
- description: "Install OpenClaude native build",
579139
+ description: "Install Verboo native build",
579124
579140
  argumentHint: "[options]",
579125
579141
  async call(onDone, _context, args) {
579126
579142
  const force = args.includes("--force");
@@ -579453,7 +579469,7 @@ __export(exports_update, {
579453
579469
  async function update() {
579454
579470
  if (getAPIProvider() !== "firstParty") {
579455
579471
  writeToStdout(source_default.yellow(`Auto-update is not available for third-party provider builds.
579456
- `) + `Current version: ${"0.7.4"}
579472
+ `) + `Current version: ${"0.7.6"}
579457
579473
 
579458
579474
  ` + `To update, reinstall from npm:
579459
579475
  ` + source_default.bold(` npm install -g ${"@verboo/code"}@latest`) + `
@@ -579464,7 +579480,7 @@ async function update() {
579464
579480
  await gracefulShutdown(0);
579465
579481
  }
579466
579482
  logEvent("tengu_update_check", {});
579467
- writeToStdout(`Current version: ${"0.7.4"}
579483
+ writeToStdout(`Current version: ${"0.7.6"}
579468
579484
  `);
579469
579485
  const channel = getInitialSettings()?.autoUpdatesChannel ?? "latest";
579470
579486
  writeToStdout(`Checking for updates to ${channel} version...
@@ -579549,8 +579565,8 @@ async function update() {
579549
579565
  writeToStdout(`Claude is managed by Homebrew.
579550
579566
  `);
579551
579567
  const latest = await getLatestVersion(channel);
579552
- if (latest && !gte("0.7.4", latest)) {
579553
- writeToStdout(`Update available: ${"0.7.4"} → ${latest}
579568
+ if (latest && !gte("0.7.6", latest)) {
579569
+ writeToStdout(`Update available: ${"0.7.6"} → ${latest}
579554
579570
  `);
579555
579571
  writeToStdout(`
579556
579572
  `);
@@ -579566,8 +579582,8 @@ async function update() {
579566
579582
  writeToStdout(`Claude is managed by winget.
579567
579583
  `);
579568
579584
  const latest = await getLatestVersion(channel);
579569
- if (latest && !gte("0.7.4", latest)) {
579570
- writeToStdout(`Update available: ${"0.7.4"} → ${latest}
579585
+ if (latest && !gte("0.7.6", latest)) {
579586
+ writeToStdout(`Update available: ${"0.7.6"} → ${latest}
579571
579587
  `);
579572
579588
  writeToStdout(`
579573
579589
  `);
@@ -579583,8 +579599,8 @@ async function update() {
579583
579599
  writeToStdout(`Claude is managed by apk.
579584
579600
  `);
579585
579601
  const latest = await getLatestVersion(channel);
579586
- if (latest && !gte("0.7.4", latest)) {
579587
- writeToStdout(`Update available: ${"0.7.4"} → ${latest}
579602
+ if (latest && !gte("0.7.6", latest)) {
579603
+ writeToStdout(`Update available: ${"0.7.6"} → ${latest}
579588
579604
  `);
579589
579605
  writeToStdout(`
579590
579606
  `);
@@ -579649,11 +579665,11 @@ async function update() {
579649
579665
  `);
579650
579666
  await gracefulShutdown(1);
579651
579667
  }
579652
- if (result.latestVersion === "0.7.4") {
579653
- writeToStdout(source_default.green(`Verboo Code is up to date (${"0.7.4"})`) + `
579668
+ if (result.latestVersion === "0.7.6") {
579669
+ writeToStdout(source_default.green(`Verboo Code is up to date (${"0.7.6"})`) + `
579654
579670
  `);
579655
579671
  } else {
579656
- writeToStdout(source_default.green(`Successfully updated from ${"0.7.4"} to version ${result.latestVersion}`) + `
579672
+ writeToStdout(source_default.green(`Successfully updated from ${"0.7.6"} to version ${result.latestVersion}`) + `
579657
579673
  `);
579658
579674
  await regenerateCompletionCache();
579659
579675
  }
@@ -579713,12 +579729,12 @@ async function update() {
579713
579729
  `);
579714
579730
  await gracefulShutdown(1);
579715
579731
  }
579716
- if (latestVersion === "0.7.4") {
579717
- writeToStdout(source_default.green(`Verboo Code is up to date (${"0.7.4"})`) + `
579732
+ if (latestVersion === "0.7.6") {
579733
+ writeToStdout(source_default.green(`Verboo Code is up to date (${"0.7.6"})`) + `
579718
579734
  `);
579719
579735
  await gracefulShutdown(0);
579720
579736
  }
579721
- writeToStdout(`New version available: ${latestVersion} (current: ${"0.7.4"})
579737
+ writeToStdout(`New version available: ${latestVersion} (current: ${"0.7.6"})
579722
579738
  `);
579723
579739
  writeToStdout(`Installing update...
579724
579740
  `);
@@ -579763,7 +579779,7 @@ async function update() {
579763
579779
  logForDebugging2(`update: Installation status: ${status2}`);
579764
579780
  switch (status2) {
579765
579781
  case "success":
579766
- writeToStdout(source_default.green(`Successfully updated from ${"0.7.4"} to version ${latestVersion}`) + `
579782
+ writeToStdout(source_default.green(`Successfully updated from ${"0.7.6"} to version ${latestVersion}`) + `
579767
579783
  `);
579768
579784
  await regenerateCompletionCache();
579769
579785
  break;
@@ -581816,7 +581832,7 @@ Usage: verboo --remote "your task description"`, () => gracefulShutdown(1));
581816
581832
  pendingHookMessages
581817
581833
  }, renderAndRun);
581818
581834
  }
581819
- }).version(`0.7.4 (${cliDesc})`, "-v, --version", "Output the version number");
581835
+ }).version(`0.7.6 (${cliDesc})`, "-v, --version", "Output the version number");
581820
581836
  program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
581821
581837
  program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
581822
581838
  if (canUserConfigureAdvisor()) {
@@ -582372,7 +582388,7 @@ if (false) {}
582372
582388
  async function main2() {
582373
582389
  const args = process.argv.slice(2);
582374
582390
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
582375
- console.log(`${"0.7.4"} (Verboo Code)`);
582391
+ console.log(`${"0.7.6"} (Verboo Code)`);
582376
582392
  return;
582377
582393
  }
582378
582394
  if (args.includes("--provider")) {
@@ -582527,4 +582543,4 @@ async function main2() {
582527
582543
  }
582528
582544
  main2();
582529
582545
 
582530
- //# debugId=E1FCB1047141D10064756E2164756E21
582546
+ //# debugId=4AD8E3B8240FB15564756E2164756E21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verboo/code",
3
- "version": "0.7.4",
3
+ "version": "0.7.6",
4
4
  "description": "Verboo Code — coding agent for the Verboo platform",
5
5
  "type": "module",
6
6
  "bin": {