@verboo/code 0.13.2 → 0.13.3

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 +78 -65
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -140171,6 +140171,9 @@ function getAuthTokenSource() {
140171
140171
  }
140172
140172
  return { source: "none", hasToken: false };
140173
140173
  }
140174
+ if (isVerbooMode() && getStoredVerbooOAuthTokens()) {
140175
+ return { source: "claude.ai", hasToken: true };
140176
+ }
140174
140177
  if (process.env.ANTHROPIC_AUTH_TOKEN && !isManagedOAuthContext()) {
140175
140178
  return { source: "ANTHROPIC_AUTH_TOKEN", hasToken: true };
140176
140179
  }
@@ -140792,6 +140795,24 @@ function saveOAuthTokensIfNeeded(tokens) {
140792
140795
  return { success: false, warning: "Failed to save OAuth tokens" };
140793
140796
  }
140794
140797
  }
140798
+ function getStoredVerbooOAuthTokens() {
140799
+ try {
140800
+ const oauthData = getSecureStorage().read()?.verbooOauth;
140801
+ return oauthData?.accessToken ? oauthData : null;
140802
+ } catch (error41) {
140803
+ logError2(error41);
140804
+ return null;
140805
+ }
140806
+ }
140807
+ async function getStoredVerbooOAuthTokensAsync() {
140808
+ try {
140809
+ const oauthData = (await getSecureStorage().readAsync())?.verbooOauth;
140810
+ return oauthData?.accessToken ? oauthData : null;
140811
+ } catch (error41) {
140812
+ logError2(error41);
140813
+ return null;
140814
+ }
140815
+ }
140795
140816
  function clearOAuthTokenCache() {
140796
140817
  getClaudeAIOAuthTokens.cache?.clear?.();
140797
140818
  clearKeychainCache();
@@ -140832,21 +140853,15 @@ async function handleOAuth401ErrorImpl(failedAccessToken) {
140832
140853
  async function getClaudeAIOAuthTokensAsync() {
140833
140854
  if (isBareMode())
140834
140855
  return null;
140856
+ if (isVerbooMode()) {
140857
+ const storedTokens = await getStoredVerbooOAuthTokensAsync();
140858
+ if (storedTokens)
140859
+ return storedTokens;
140860
+ }
140835
140861
  if (process.env.CLAUDE_CODE_OAUTH_TOKEN || getOAuthTokenFromFileDescriptor()) {
140836
140862
  return getClaudeAIOAuthTokens();
140837
140863
  }
140838
- try {
140839
- const secureStorage = getSecureStorage();
140840
- const storageData = await secureStorage.readAsync();
140841
- const oauthData = storageData?.verbooOauth;
140842
- if (!oauthData?.accessToken) {
140843
- return null;
140844
- }
140845
- return oauthData;
140846
- } catch (error41) {
140847
- logError2(error41);
140848
- return null;
140849
- }
140864
+ return getStoredVerbooOAuthTokensAsync();
140850
140865
  }
140851
140866
  function checkAndRefreshOAuthTokenIfNeeded(retryCount = 0, force = false) {
140852
140867
  if (retryCount === 0 && !force) {
@@ -141251,6 +141266,11 @@ var init_auth = __esm(() => {
141251
141266
  getClaudeAIOAuthTokens = memoize_default(() => {
141252
141267
  if (isBareMode())
141253
141268
  return null;
141269
+ if (isVerbooMode()) {
141270
+ const storedTokens = getStoredVerbooOAuthTokens();
141271
+ if (storedTokens)
141272
+ return storedTokens;
141273
+ }
141254
141274
  if (process.env.CLAUDE_CODE_OAUTH_TOKEN) {
141255
141275
  return {
141256
141276
  accessToken: process.env.CLAUDE_CODE_OAUTH_TOKEN,
@@ -141272,18 +141292,7 @@ var init_auth = __esm(() => {
141272
141292
  rateLimitTier: null
141273
141293
  };
141274
141294
  }
141275
- try {
141276
- const secureStorage = getSecureStorage();
141277
- const storageData = secureStorage.read();
141278
- const oauthData = storageData?.verbooOauth;
141279
- if (!oauthData?.accessToken) {
141280
- return null;
141281
- }
141282
- return oauthData;
141283
- } catch (error41) {
141284
- logError2(error41);
141285
- return null;
141286
- }
141295
+ return getStoredVerbooOAuthTokens();
141287
141296
  });
141288
141297
  pending401Handlers = new Map;
141289
141298
  GcpCredentialsTimeoutError = class GcpCredentialsTimeoutError extends Error {
@@ -169750,7 +169759,7 @@ function getClaudeCodeUserAgent() {
169750
169759
  return `claude-code/${"99.0.0"}`;
169751
169760
  }
169752
169761
  function getVerbooCodeUserAgent() {
169753
- const version2 = typeof MACRO !== "undefined" ? "0.13.2" : "unknown";
169762
+ const version2 = typeof MACRO !== "undefined" ? "0.13.3" : "unknown";
169754
169763
  return `verboo-code/${version2}`;
169755
169764
  }
169756
169765
 
@@ -173801,8 +173810,9 @@ class OpenAIShimMessages {
173801
173810
  processEnv: process.env
173802
173811
  });
173803
173812
  const getApiKey = () => this.providerOverride?.getApiKey?.() ?? this.providerOverride?.apiKey ?? routeCredential ?? process.env.OPENAI_API_KEY ?? "";
173804
- const configuredAuthHeaderValue = process.env.OPENAI_AUTH_HEADER_VALUE?.trim();
173805
- const customAuthHeader = process.env.OPENAI_AUTH_HEADER?.trim();
173813
+ const usesVerbooRouter = isVerbooRouterUrl(request.baseUrl);
173814
+ const configuredAuthHeaderValue = usesVerbooRouter ? undefined : process.env.OPENAI_AUTH_HEADER_VALUE?.trim();
173815
+ const customAuthHeader = usesVerbooRouter ? undefined : process.env.OPENAI_AUTH_HEADER?.trim();
173806
173816
  const hasCustomAuthHeader = Boolean(customAuthHeader && /^[A-Za-z0-9!#$%&'*+.^_`|~-]+$/.test(customAuthHeader));
173807
173817
  const applyAuthHeader = () => {
173808
173818
  const apiKey = getApiKey();
@@ -299360,14 +299370,17 @@ ${url3}
299360
299370
  onAuthUrl
299361
299371
  });
299362
299372
  await installVerbooOAuthTokens(tokens);
299363
- await validateVerbooSession();
299373
+ const confirmedSession = await validateVerbooSession();
299374
+ if (confirmedSession.kind === "unauthenticated") {
299375
+ throw new Error("A sessão recém-autenticada foi rejeitada pelo Verboo. Feche variáveis de credencial herdadas do terminal e tente `verboo /login` novamente.");
299376
+ }
299364
299377
  process.stdout.write(`
299365
299378
  ✓ Autenticação concluída.
299366
299379
 
299367
299380
  `);
299368
299381
  saveGlobalConfig((current) => current.hasCompletedOnboarding ? current : { ...current, hasCompletedOnboarding: true });
299382
+ await loadAndCheckModels(confirmedSession.kind === "ok" ? confirmedSession.tokens.accessToken : tokens.accessToken);
299369
299383
  validated = true;
299370
- await loadAndCheckModels(tokens.accessToken);
299371
299384
  }
299372
299385
  var validated = false;
299373
299386
  var init_verbooStartupAuth = __esm(() => {
@@ -393973,7 +393986,7 @@ function getAnthropicEnvMetadata() {
393973
393986
  function getBuildAgeMinutes() {
393974
393987
  if (false)
393975
393988
  ;
393976
- const buildTime = new Date("2026-07-15T01:49:30.886Z").getTime();
393989
+ const buildTime = new Date("2026-07-15T02:08:38.282Z").getTime();
393977
393990
  if (isNaN(buildTime))
393978
393991
  return;
393979
393992
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -422228,7 +422241,7 @@ function buildPrimarySection() {
422228
422241
  });
422229
422242
  return [{
422230
422243
  label: "Version",
422231
- value: "0.13.2"
422244
+ value: "0.13.3"
422232
422245
  }, {
422233
422246
  label: "Session name",
422234
422247
  value: nameValue
@@ -435157,7 +435170,7 @@ function getReleaseTagUrl(version2 = publicBuildVersion) {
435157
435170
  return `${VERBOO_RELEASES_URL}/tag/v${normalizePublicVersion(version2)}`;
435158
435171
  }
435159
435172
  function getPublicBuildVersion() {
435160
- return "0.13.2";
435173
+ return "0.13.3";
435161
435174
  }
435162
435175
  var import_semver10, VERBOO_RELEASES_URL = "https://github.com/verbeux-ai/code/releases", fallbackBuildVersion, publicBuildVersion;
435163
435176
  var init_version = __esm(() => {
@@ -486416,7 +486429,7 @@ var init_bridge_kick = __esm(() => {
486416
486429
  var call63 = async () => {
486417
486430
  return {
486418
486431
  type: "text",
486419
- value: `${"99.0.0"} (built ${"2026-07-15T01:49:30.886Z"})`
486432
+ value: `${"99.0.0"} (built ${"2026-07-15T02:08:38.282Z"})`
486420
486433
  };
486421
486434
  }, version2, version_default;
486422
486435
  var init_version2 = __esm(() => {
@@ -519489,7 +519502,7 @@ function printStartupScreen(modelOverride) {
519489
519502
  const home = process.env.HOME || process.env.USERPROFILE || "";
519490
519503
  const cwd2 = process.cwd();
519491
519504
  const displayCwd = home && cwd2.startsWith(home) ? `~${cwd2.slice(home.length)}` : cwd2;
519492
- const version3 = "0.13.2";
519505
+ const version3 = "0.13.3";
519493
519506
  const bold2 = `${ESC4}1m`;
519494
519507
  const PURPLE = rgb3(...ACCENT);
519495
519508
  const SOFT = rgb3(...CREAM);
@@ -537781,7 +537794,7 @@ var init_routerRateLimitHook = __esm(() => {
537781
537794
  function getSemverPart(version3) {
537782
537795
  return `${import_semver13.major(version3, { loose: true })}.${import_semver13.minor(version3, { loose: true })}.${import_semver13.patch(version3, { loose: true })}`;
537783
537796
  }
537784
- function useUpdateNotification(updatedVersion, initialVersion = "0.13.2") {
537797
+ function useUpdateNotification(updatedVersion, initialVersion = "0.13.3") {
537785
537798
  const [lastNotifiedSemver, setLastNotifiedSemver] = import_react225.useState(() => getSemverPart(initialVersion));
537786
537799
  const [pendingNotification2, setPendingNotification] = import_react225.useState(null);
537787
537800
  if (updatedVersion) {
@@ -537821,7 +537834,7 @@ function AutoUpdater({
537821
537834
  return;
537822
537835
  }
537823
537836
  if (false) {}
537824
- const currentVersion = "0.13.2";
537837
+ const currentVersion = "0.13.3";
537825
537838
  const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
537826
537839
  let latestVersion = await getLatestVersion(channel2);
537827
537840
  const isDisabled = isAutoUpdaterDisabled();
@@ -538174,17 +538187,17 @@ function PackageManagerAutoUpdater(t0) {
538174
538187
  const maxVersion = await getMaxVersion();
538175
538188
  if (maxVersion && latest && gt(latest, maxVersion)) {
538176
538189
  logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
538177
- if (gte("0.13.2", maxVersion)) {
538178
- logForDebugging(`PackageManagerAutoUpdater: current version ${"0.13.2"} is already at or above maxVersion ${maxVersion}, skipping update`);
538190
+ if (gte("0.13.3", maxVersion)) {
538191
+ logForDebugging(`PackageManagerAutoUpdater: current version ${"0.13.3"} is already at or above maxVersion ${maxVersion}, skipping update`);
538179
538192
  setUpdateAvailable(false);
538180
538193
  return;
538181
538194
  }
538182
538195
  latest = maxVersion;
538183
538196
  }
538184
- const hasUpdate = latest && !gte("0.13.2", latest) && !shouldSkipVersion(latest);
538197
+ const hasUpdate = latest && !gte("0.13.3", latest) && !shouldSkipVersion(latest);
538185
538198
  setUpdateAvailable(!!hasUpdate);
538186
538199
  if (hasUpdate) {
538187
- logForDebugging(`PackageManagerAutoUpdater: Update available ${"0.13.2"} -> ${latest}`);
538200
+ logForDebugging(`PackageManagerAutoUpdater: Update available ${"0.13.3"} -> ${latest}`);
538188
538201
  }
538189
538202
  };
538190
538203
  $2[0] = t1;
@@ -538218,7 +538231,7 @@ function PackageManagerAutoUpdater(t0) {
538218
538231
  wrap: "truncate",
538219
538232
  children: [
538220
538233
  "currentVersion: ",
538221
- "0.13.2"
538234
+ "0.13.3"
538222
538235
  ]
538223
538236
  });
538224
538237
  $2[3] = verbose;
@@ -554169,10 +554182,10 @@ async function autoUpdateCliInBackground() {
554169
554182
  return;
554170
554183
  const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
554171
554184
  const latest = await getLatestVersion(channel2);
554172
- if (!latest || gte("0.13.2", latest))
554185
+ if (!latest || gte("0.13.3", latest))
554173
554186
  return;
554174
554187
  writeToStdout(`
554175
- Nova versão disponível: ${latest} (atual: ${"0.13.2"})
554188
+ Nova versão disponível: ${latest} (atual: ${"0.13.3"})
554176
554189
  `);
554177
554190
  writeToStdout(`Atualizando automaticamente...
554178
554191
  `);
@@ -571866,7 +571879,7 @@ function WelcomeV2() {
571866
571879
  dimColor: true,
571867
571880
  children: [
571868
571881
  "v",
571869
- "0.13.2",
571882
+ "0.13.3",
571870
571883
  " "
571871
571884
  ]
571872
571885
  })
@@ -572053,7 +572066,7 @@ function WelcomeV2() {
572053
572066
  dimColor: true,
572054
572067
  children: [
572055
572068
  "v",
572056
- "0.13.2",
572069
+ "0.13.3",
572057
572070
  " "
572058
572071
  ]
572059
572072
  })
@@ -572269,7 +572282,7 @@ function AppleTerminalWelcomeV2(t0) {
572269
572282
  dimColor: true,
572270
572283
  children: [
572271
572284
  "v",
572272
- "0.13.2",
572285
+ "0.13.3",
572273
572286
  " "
572274
572287
  ]
572275
572288
  });
@@ -572478,7 +572491,7 @@ function AppleTerminalWelcomeV2(t0) {
572478
572491
  dimColor: true,
572479
572492
  children: [
572480
572493
  "v",
572481
- "0.13.2",
572494
+ "0.13.3",
572482
572495
  " "
572483
572496
  ]
572484
572497
  });
@@ -589880,7 +589893,7 @@ __export(exports_update, {
589880
589893
  });
589881
589894
  async function update() {
589882
589895
  logEvent("tengu_update_check", {});
589883
- writeToStdout(`Current version: ${"0.13.2"}
589896
+ writeToStdout(`Current version: ${"0.13.3"}
589884
589897
  `);
589885
589898
  const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
589886
589899
  writeToStdout(`Checking for updates to ${channel2} version...
@@ -589965,8 +589978,8 @@ async function update() {
589965
589978
  writeToStdout(`Verboo Code is managed by Homebrew.
589966
589979
  `);
589967
589980
  const latest = await getLatestVersion(channel2);
589968
- if (latest && !gte("0.13.2", latest)) {
589969
- writeToStdout(`Update available: ${"0.13.2"} → ${latest}
589981
+ if (latest && !gte("0.13.3", latest)) {
589982
+ writeToStdout(`Update available: ${"0.13.3"} → ${latest}
589970
589983
  `);
589971
589984
  writeToStdout(`
589972
589985
  `);
@@ -589982,8 +589995,8 @@ async function update() {
589982
589995
  writeToStdout(`Verboo Code is managed by winget.
589983
589996
  `);
589984
589997
  const latest = await getLatestVersion(channel2);
589985
- if (latest && !gte("0.13.2", latest)) {
589986
- writeToStdout(`Update available: ${"0.13.2"} → ${latest}
589998
+ if (latest && !gte("0.13.3", latest)) {
589999
+ writeToStdout(`Update available: ${"0.13.3"} → ${latest}
589987
590000
  `);
589988
590001
  writeToStdout(`
589989
590002
  `);
@@ -589999,8 +590012,8 @@ async function update() {
589999
590012
  writeToStdout(`Verboo Code is managed by apk.
590000
590013
  `);
590001
590014
  const latest = await getLatestVersion(channel2);
590002
- if (latest && !gte("0.13.2", latest)) {
590003
- writeToStdout(`Update available: ${"0.13.2"} → ${latest}
590015
+ if (latest && !gte("0.13.3", latest)) {
590016
+ writeToStdout(`Update available: ${"0.13.3"} → ${latest}
590004
590017
  `);
590005
590018
  writeToStdout(`
590006
590019
  `);
@@ -590053,11 +590066,11 @@ async function update() {
590053
590066
  `);
590054
590067
  await gracefulShutdown(1);
590055
590068
  }
590056
- if (result.latestVersion === "0.13.2") {
590057
- writeToStdout(source_default.green(`Verboo Code is up to date (${"0.13.2"})`) + `
590069
+ if (result.latestVersion === "0.13.3") {
590070
+ writeToStdout(source_default.green(`Verboo Code is up to date (${"0.13.3"})`) + `
590058
590071
  `);
590059
590072
  } else {
590060
- writeToStdout(source_default.green(`Successfully updated from ${"0.13.2"} to version ${result.latestVersion}`) + `
590073
+ writeToStdout(source_default.green(`Successfully updated from ${"0.13.3"} to version ${result.latestVersion}`) + `
590061
590074
  `);
590062
590075
  await regenerateCompletionCache();
590063
590076
  }
@@ -590117,12 +590130,12 @@ async function update() {
590117
590130
  `);
590118
590131
  await gracefulShutdown(1);
590119
590132
  }
590120
- if (latestVersion === "0.13.2") {
590121
- writeToStdout(source_default.green(`Verboo Code is up to date (${"0.13.2"})`) + `
590133
+ if (latestVersion === "0.13.3") {
590134
+ writeToStdout(source_default.green(`Verboo Code is up to date (${"0.13.3"})`) + `
590122
590135
  `);
590123
590136
  await gracefulShutdown(0);
590124
590137
  }
590125
- writeToStdout(`New version available: ${latestVersion} (current: ${"0.13.2"})
590138
+ writeToStdout(`New version available: ${latestVersion} (current: ${"0.13.3"})
590126
590139
  `);
590127
590140
  writeToStdout(`Installing update...
590128
590141
  `);
@@ -590167,7 +590180,7 @@ async function update() {
590167
590180
  logForDebugging(`update: Installation status: ${status2}`);
590168
590181
  switch (status2) {
590169
590182
  case "success":
590170
- writeToStdout(source_default.green(`Successfully updated from ${"0.13.2"} to version ${latestVersion}`) + `
590183
+ writeToStdout(source_default.green(`Successfully updated from ${"0.13.3"} to version ${latestVersion}`) + `
590171
590184
  `);
590172
590185
  await regenerateCompletionCache();
590173
590186
  break;
@@ -591422,7 +591435,7 @@ ${customInstructions}` : customInstructions;
591422
591435
  is_native_binary: isInBundledMode()
591423
591436
  });
591424
591437
  logMemoryDiagnostics("start", {
591425
- version: "0.13.2",
591438
+ version: "0.13.3",
591426
591439
  debug: debug2,
591427
591440
  debugToStderr,
591428
591441
  print: print ?? false,
@@ -592233,7 +592246,7 @@ Usage: verboo --remote "your task description"`, () => gracefulShutdown(1));
592233
592246
  pendingHookMessages
592234
592247
  }, renderAndRun);
592235
592248
  }
592236
- }).version(`0.13.2 (${cliDesc})`, "-v, --version", "Output the version number");
592249
+ }).version(`0.13.3 (${cliDesc})`, "-v, --version", "Output the version number");
592237
592250
  program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
592238
592251
  program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
592239
592252
  if (canUserConfigureAdvisor()) {
@@ -592808,7 +592821,7 @@ if (false) {}
592808
592821
  async function main2() {
592809
592822
  const args = process.argv.slice(2);
592810
592823
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
592811
- console.log(`${"0.13.2"} (Verboo Code)`);
592824
+ console.log(`${"0.13.3"} (Verboo Code)`);
592812
592825
  return;
592813
592826
  }
592814
592827
  if (!IS_VERBOO_CLI && args.includes("--provider")) {
@@ -592982,4 +592995,4 @@ async function main2() {
592982
592995
  }
592983
592996
  main2();
592984
592997
 
592985
- //# debugId=1271E869CB00C30E64756E2164756E21
592998
+ //# debugId=9B94BFBFDE46F31464756E2164756E21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verboo/code",
3
- "version": "0.13.2",
3
+ "version": "0.13.3",
4
4
  "description": "Verboo Code — coding agent for the Verboo platform",
5
5
  "type": "module",
6
6
  "bin": {