shortcutxl 0.3.45 → 0.3.47

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 (79) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +3 -1
  3. package/dist/app/auth/auth-storage.d.ts +5 -1
  4. package/dist/app/credits/credit-gate.d.ts +9 -0
  5. package/dist/app/prompts/mog-api-reference.json +11454 -11454
  6. package/dist/app/prompts/spreadjs-api-reference.json +552 -552
  7. package/dist/app/providers/register-shortcut-provider.d.ts +2 -0
  8. package/dist/app/providers/shortcut-auth-recovery.d.ts +10 -0
  9. package/dist/app/providers/shortcut-invoke.d.ts +2 -1
  10. package/dist/app/providers/shortcut-stream.d.ts +2 -1
  11. package/dist/app/session/forked-agent.d.ts +3 -0
  12. package/dist/cli.js +979 -978
  13. package/dist/shell/export-html/template.js +1796 -1796
  14. package/dist/shell/export-html/vendor/highlight.min.js +7725 -7725
  15. package/dist/shell/export-html/vendor/marked.min.js +1803 -1803
  16. package/dist/shell/interactive/interactive-actions.d.ts +1 -0
  17. package/dist/shell/interactive/interactive-mode.d.ts +3 -0
  18. package/dist/shell/keybindings.d.ts +1 -1
  19. package/dist/shell/print-mode.d.ts +6 -0
  20. package/dist/shell/theme/dark.json +88 -88
  21. package/dist/shell/theme/light.json +88 -88
  22. package/dist/shell/theme/theme-schema.json +340 -340
  23. package/dist/startup/subagent-bootstrap.d.ts +1 -0
  24. package/dist/tui/autocomplete.d.ts +78 -78
  25. package/dist/tui/autocomplete.js +616 -616
  26. package/dist/tui/components/box.d.ts +22 -22
  27. package/dist/tui/components/box.js +108 -108
  28. package/dist/tui/components/cancellable-loader.d.ts +22 -22
  29. package/dist/tui/components/cancellable-loader.js +35 -35
  30. package/dist/tui/components/editor.d.ts +205 -205
  31. package/dist/tui/components/editor.js +1733 -1733
  32. package/dist/tui/components/image.d.ts +34 -34
  33. package/dist/tui/components/image.js +73 -73
  34. package/dist/tui/components/input.d.ts +37 -37
  35. package/dist/tui/components/input.js +465 -465
  36. package/dist/tui/components/loader.d.ts +26 -26
  37. package/dist/tui/components/loader.js +49 -49
  38. package/dist/tui/components/markdown.d.ts +101 -101
  39. package/dist/tui/components/markdown.js +624 -624
  40. package/dist/tui/components/select-list.d.ts +32 -32
  41. package/dist/tui/components/select-list.js +158 -158
  42. package/dist/tui/components/settings-list.d.ts +57 -57
  43. package/dist/tui/components/settings-list.js +200 -200
  44. package/dist/tui/components/spacer.d.ts +12 -12
  45. package/dist/tui/components/spacer.js +23 -23
  46. package/dist/tui/components/text.d.ts +24 -24
  47. package/dist/tui/components/text.js +92 -92
  48. package/dist/tui/components/truncated-text.d.ts +13 -13
  49. package/dist/tui/components/truncated-text.js +51 -51
  50. package/dist/tui/editor-component.d.ts +39 -39
  51. package/dist/tui/editor-component.js +2 -2
  52. package/dist/tui/fuzzy.d.ts +20 -20
  53. package/dist/tui/fuzzy.js +105 -105
  54. package/dist/tui/get-east-asian-width/index.js +28 -28
  55. package/dist/tui/get-east-asian-width/lookup.js +406 -406
  56. package/dist/tui/index.d.ts +85 -85
  57. package/dist/tui/index.js +64 -64
  58. package/dist/tui/keybindings.d.ts +76 -76
  59. package/dist/tui/keybindings.js +111 -111
  60. package/dist/tui/keys.d.ts +263 -263
  61. package/dist/tui/keys.js +947 -947
  62. package/dist/tui/kill-ring.d.ts +31 -31
  63. package/dist/tui/kill-ring.js +42 -42
  64. package/dist/tui/skill-autocomplete.js +30 -30
  65. package/dist/tui/stdin-buffer.d.ts +48 -48
  66. package/dist/tui/stdin-buffer.js +312 -312
  67. package/dist/tui/terminal-image.d.ts +89 -89
  68. package/dist/tui/terminal-image.js +274 -274
  69. package/dist/tui/terminal.d.ts +78 -78
  70. package/dist/tui/terminal.js +242 -242
  71. package/dist/tui/tui.d.ts +230 -230
  72. package/dist/tui/tui.js +952 -952
  73. package/dist/tui/undo-stack.d.ts +17 -17
  74. package/dist/tui/undo-stack.js +25 -25
  75. package/dist/tui/utils.d.ts +106 -106
  76. package/dist/tui/utils.js +773 -773
  77. package/package.json +4 -1
  78. package/user-docs/dist/index.html +3 -3
  79. package/user-docs/dist/shortcutxl-docs.pdf +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.3.47]
4
+
5
+ - **GPT-5.5** — Upgraded the OpenAI reasoning model from GPT-5.4 to GPT-5.5 (400K context window, stronger reasoning).
6
+ - **Out-of-credits message** — When your credit balance runs out, ShortcutXL now shows a clear message instead of silently failing.
7
+
8
+ ## [0.3.46]
9
+
10
+ - **`alt+m` to cycle modes** — New keyboard shortcut to cycle between Ask, Plan, and Action modes.
11
+ - **Automatic session recovery** — ShortcutXL now silently refreshes your token and retries when the session expires mid-run, instead of surfacing a "Session expired" error.
12
+
3
13
  ## [0.3.45]
4
14
 
5
15
  - **Preserve Excel calculation mode** — ShortcutXL no longer overrides Excel's calculation mode during code execution. If you have manual calculation enabled, it stays manual while Shortcut runs your code.
package/README.md CHANGED
@@ -7,9 +7,11 @@ An AI agent that lives on your computer and has Excel superpowers. Made by the [
7
7
  ### 1. Open Command Prompt or PowerShell and install Node.js
8
8
 
9
9
  ```bash
10
- winget install OpenJS.NodeJS.LTS
10
+ winget install OpenJS.NodeJS.LTS --source winget
11
11
  ```
12
12
 
13
+ Then close and reopen your terminal.
14
+
13
15
  ### 2. Install ShortcutXL
14
16
 
15
17
  ```bash
@@ -15,6 +15,10 @@ type LockResult<T> = {
15
15
  result: T;
16
16
  next?: string;
17
17
  };
18
+ export type GetApiKeyOptions = {
19
+ forceRefresh?: boolean;
20
+ rejectedApiKey?: string;
21
+ };
18
22
  export interface AuthStorageOptions {
19
23
  authPath?: string;
20
24
  externalCredentialStores?: ExternalAuthCredentialStore[];
@@ -165,7 +169,7 @@ export declare class AuthStorage {
165
169
  * 3. Environment variable
166
170
  * 4. Fallback resolver (models.json custom providers)
167
171
  */
168
- getApiKey(providerId: string): Promise<string | undefined>;
172
+ getApiKey(providerId: string, options?: GetApiKeyOptions): Promise<string | undefined>;
169
173
  }
170
174
  export {};
171
175
  //# sourceMappingURL=auth-storage.d.ts.map
@@ -9,6 +9,7 @@ export interface CreditCheckResult {
9
9
  hasCredits: boolean;
10
10
  creditsRemaining: number;
11
11
  isUnlimited: boolean;
12
+ hasTeamBilling: boolean;
12
13
  }
13
14
  export declare class CreditGate {
14
15
  private cachedResult;
@@ -16,6 +17,14 @@ export declare class CreditGate {
16
17
  private readonly ttlMs;
17
18
  constructor(ttlMs?: number);
18
19
  check(accessToken: string): Promise<CreditCheckResult>;
20
+ /** Returns the cached result if still within TTL, null otherwise. */
21
+ getCached(): CreditCheckResult | null;
22
+ /** Populate the cache from an already-fetched balance (e.g. from polling). */
23
+ populate(balance: {
24
+ creditsRemaining: number;
25
+ isUnlimited: boolean;
26
+ hasTeamBilling: boolean;
27
+ }): void;
19
28
  invalidate(): void;
20
29
  }
21
30
  //# sourceMappingURL=credit-gate.d.ts.map