snowcode 0.9.23 → 0.9.24

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 +26 -17
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -125648,7 +125648,7 @@ var init_metadata = __esm(() => {
125648
125648
  isClaudeAiAuth: isClaudeAISubscriber(),
125649
125649
  version: "99.0.0",
125650
125650
  versionBase: getVersionBase(),
125651
- buildTime: "2026-04-05T04:06:45.418Z",
125651
+ buildTime: "2026-04-05T13:10:54.983Z",
125652
125652
  deploymentEnvironment: env2.detectDeploymentEnvironment(),
125653
125653
  ...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
125654
125654
  githubEventName: process.env.GITHUB_EVENT_NAME,
@@ -130352,6 +130352,10 @@ function parseChatgptAccountId(token) {
130352
130352
  const fromClaim = asTrimmedString(payload?.["https://api.openai.com/auth.chatgpt_account_id"]);
130353
130353
  if (fromClaim)
130354
130354
  return fromClaim;
130355
+ const nestedAuth = payload?.["https://api.openai.com/auth"] && typeof payload["https://api.openai.com/auth"] === "object" ? payload["https://api.openai.com/auth"] : undefined;
130356
+ const nestedClaim = asTrimmedString(nestedAuth?.chatgpt_account_id);
130357
+ if (nestedClaim)
130358
+ return nestedClaim;
130355
130359
  return asTrimmedString(payload?.chatgpt_account_id);
130356
130360
  }
130357
130361
  function loadCodexAuthJson(authPath) {
@@ -130678,13 +130682,18 @@ function compareVersions(a2, b) {
130678
130682
  return 0;
130679
130683
  }
130680
130684
  function getCurrentVersion() {
130681
- const displayVersion = (typeof MACRO !== "undefined" ? "0.9.23" : undefined) ?? (() => {
130682
- try {
130683
- const pkg = require2("../../package.json");
130684
- return pkg.version;
130685
- } catch {
130686
- return;
130685
+ const displayVersion = (typeof MACRO !== "undefined" ? "0.9.24" : undefined) ?? (() => {
130686
+ for (const candidate of ["../../package.json", "../package.json"]) {
130687
+ try {
130688
+ const pkg = require2(candidate);
130689
+ if (typeof pkg.version === "string") {
130690
+ return pkg.version;
130691
+ }
130692
+ } catch {
130693
+ continue;
130694
+ }
130687
130695
  }
130696
+ return;
130688
130697
  })() ?? "0.0.0";
130689
130698
  return displayVersion.replace(/[^0-9.]/g, "") || "0.0.0";
130690
130699
  }
@@ -130893,7 +130902,7 @@ async function printStartupScreen() {
130893
130902
  const sLen = ` ● ${sL} Ready — type /help to begin`.length;
130894
130903
  out.push(boxRow(sRow, W2, sLen));
130895
130904
  out.push(`${rgb(...BORDER)}╚${"═".repeat(W2 - 2)}╝${RESET}`);
130896
- const _ver = "0.9.23";
130905
+ const _ver = "0.9.24";
130897
130906
  const _currentVersion = getCurrentVersion();
130898
130907
  const _update = await getAvailableUpdateWithRefresh({ timeoutMs: 1200 });
130899
130908
  out.push(` ${DIM}${rgb(...DIMCOL)}snowcode v${_ver}${RESET}`);
@@ -370952,7 +370961,7 @@ function getAnthropicEnvMetadata() {
370952
370961
  function getBuildAgeMinutes() {
370953
370962
  if (false)
370954
370963
  ;
370955
- const buildTime = new Date("2026-04-05T04:06:45.418Z").getTime();
370964
+ const buildTime = new Date("2026-04-05T13:10:54.983Z").getTime();
370956
370965
  if (isNaN(buildTime))
370957
370966
  return;
370958
370967
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -464941,7 +464950,7 @@ var init_bridge_kick = __esm(() => {
464941
464950
  var call59 = async () => {
464942
464951
  return {
464943
464952
  type: "text",
464944
- value: `${"99.0.0"} (built ${"2026-04-05T04:06:45.418Z"})`
464953
+ value: `${"99.0.0"} (built ${"2026-04-05T13:10:54.983Z"})`
464945
464954
  };
464946
464955
  }, version2, version_default;
464947
464956
  var init_version = __esm(() => {
@@ -538403,7 +538412,7 @@ function WelcomeV2() {
538403
538412
  dimColor: true,
538404
538413
  children: [
538405
538414
  "v",
538406
- "0.9.23",
538415
+ "0.9.24",
538407
538416
  " "
538408
538417
  ]
538409
538418
  }, undefined, true, undefined, this)
@@ -538603,7 +538612,7 @@ function WelcomeV2() {
538603
538612
  dimColor: true,
538604
538613
  children: [
538605
538614
  "v",
538606
- "0.9.23",
538615
+ "0.9.24",
538607
538616
  " "
538608
538617
  ]
538609
538618
  }, undefined, true, undefined, this)
@@ -538829,7 +538838,7 @@ function AppleTerminalWelcomeV2(t0) {
538829
538838
  dimColor: true,
538830
538839
  children: [
538831
538840
  "v",
538832
- "0.9.23",
538841
+ "0.9.24",
538833
538842
  " "
538834
538843
  ]
538835
538844
  }, undefined, true, undefined, this);
@@ -539083,7 +539092,7 @@ function AppleTerminalWelcomeV2(t0) {
539083
539092
  dimColor: true,
539084
539093
  children: [
539085
539094
  "v",
539086
- "0.9.23",
539095
+ "0.9.24",
539087
539096
  " "
539088
539097
  ]
539089
539098
  }, undefined, true, undefined, this);
@@ -559204,7 +559213,7 @@ Usage: claude --remote "your task description"`, () => gracefulShutdown(1));
559204
559213
  pendingHookMessages
559205
559214
  }, renderAndRun);
559206
559215
  }
559207
- }).version("0.9.23 (Snowcode)", "-v, --version", "Output the version number");
559216
+ }).version("0.9.24 (Snowcode)", "-v, --version", "Output the version number");
559208
559217
  program.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
559209
559218
  program.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
559210
559219
  if (canUserConfigureAdvisor()) {
@@ -559765,7 +559774,7 @@ function validateProviderEnvOrExit() {
559765
559774
  async function main2() {
559766
559775
  const args = process.argv.slice(2);
559767
559776
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
559768
- console.log(`${"0.9.23"} (Snowcode)`);
559777
+ console.log(`${"0.9.24"} (Snowcode)`);
559769
559778
  return;
559770
559779
  }
559771
559780
  validateProviderEnvOrExit();
@@ -559854,4 +559863,4 @@ async function main2() {
559854
559863
  }
559855
559864
  main2();
559856
559865
 
559857
- //# debugId=C9A769673304C1DF64756E2164756E21
559866
+ //# debugId=01B34F11D41CE63264756E2164756E21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snowcode",
3
- "version": "0.9.23",
3
+ "version": "0.9.24",
4
4
  "description": "It's cold outside, isn't it?",
5
5
  "type": "module",
6
6
  "bin": {