codexuse-cli 3.6.3 → 3.6.4

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.
@@ -19432,6 +19432,22 @@ const MAX_KEYBINDING_VALUE_LENGTH = 64;
19432
19432
  const MAX_KEYBINDING_WHEN_LENGTH = 256;
19433
19433
  const MAX_SCRIPT_ID_LENGTH = 24;
19434
19434
  const MAX_KEYBINDINGS_COUNT = 256;
19435
+ const THREAD_JUMP_KEYBINDING_COMMANDS = [
19436
+ "thread.jump.1",
19437
+ "thread.jump.2",
19438
+ "thread.jump.3",
19439
+ "thread.jump.4",
19440
+ "thread.jump.5",
19441
+ "thread.jump.6",
19442
+ "thread.jump.7",
19443
+ "thread.jump.8",
19444
+ "thread.jump.9"
19445
+ ];
19446
+ const THREAD_KEYBINDING_COMMANDS = [
19447
+ "thread.previous",
19448
+ "thread.next",
19449
+ ...THREAD_JUMP_KEYBINDING_COMMANDS
19450
+ ];
19435
19451
  const STATIC_KEYBINDING_COMMANDS = [
19436
19452
  "terminal.toggle",
19437
19453
  "terminal.split",
@@ -19440,7 +19456,8 @@ const STATIC_KEYBINDING_COMMANDS = [
19440
19456
  "diff.toggle",
19441
19457
  "chat.new",
19442
19458
  "chat.newLocal",
19443
- "editor.openFavorite"
19459
+ "editor.openFavorite",
19460
+ ...THREAD_KEYBINDING_COMMANDS
19444
19461
  ];
19445
19462
  const SCRIPT_RUN_COMMAND_PATTERN = TemplateLiteral([
19446
19463
  Literal("script."),
@@ -29876,10 +29893,15 @@ var LicenseService = class {
29876
29893
  this.verificationPromise = null;
29877
29894
  }
29878
29895
  async getCachedStatus() {
29879
- return this.getStatus();
29896
+ return this.getStatus({
29897
+ allowStale: true,
29898
+ refreshInBackground: true
29899
+ });
29880
29900
  }
29881
29901
  async getStatus(options = {}) {
29882
29902
  const forceRefresh = Boolean(options.forceRefresh);
29903
+ const allowStale = Boolean(options.allowStale);
29904
+ const refreshInBackground = Boolean(options.refreshInBackground);
29883
29905
  const secret = await getLicenseSecret();
29884
29906
  const stored = await getStoredLicense();
29885
29907
  if (!stored?.licenseKey) return toLicenseStatus(null);
@@ -29905,7 +29927,11 @@ var LicenseService = class {
29905
29927
  message: "License data changed, rechecking.",
29906
29928
  error: "Untrusted license data."
29907
29929
  }) : toLicenseStatus(workingStored);
29908
- if (!(forceRefresh || graceStale || tampered || cappedNextCheckTs === null || cappedNextCheckTs <= now)) return cached;
29930
+ const shouldRefresh = forceRefresh || graceStale || tampered || cappedNextCheckTs === null || cappedNextCheckTs <= now;
29931
+ if (!shouldRefresh || allowStale) {
29932
+ if (allowStale && shouldRefresh && refreshInBackground) this.refreshStatusInBackground({ force: forceRefresh });
29933
+ return cached;
29934
+ }
29909
29935
  if (this.verificationPromise && !forceRefresh) return this.verificationPromise;
29910
29936
  const verify = async () => {
29911
29937
  try {
@@ -38258,7 +38284,19 @@ const DEFAULT_KEYBINDINGS = [
38258
38284
  {
38259
38285
  key: "mod+o",
38260
38286
  command: "editor.openFavorite"
38261
- }
38287
+ },
38288
+ {
38289
+ key: "mod+shift+[",
38290
+ command: "thread.previous"
38291
+ },
38292
+ {
38293
+ key: "mod+shift+]",
38294
+ command: "thread.next"
38295
+ },
38296
+ ...THREAD_JUMP_KEYBINDING_COMMANDS.map((command, index) => ({
38297
+ key: `mod+${index + 1}`,
38298
+ command
38299
+ }))
38262
38300
  ];
38263
38301
  function normalizeKeyToken(token) {
38264
38302
  if (token === "space") return " ";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codexuse-cli",
3
- "version": "3.6.3",
3
+ "version": "3.6.4",
4
4
  "description": "CodexUse CLI for profiles, Accounts Pool, daemon mode, licenses, and sync.",
5
5
  "author": {
6
6
  "name": "Hoang",