@use-aistack/cli 0.20.0 → 0.20.2
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.
- package/README.md +6 -0
- package/dist/cursor-worker.js +16 -3
- package/dist/cursor-worker.js.map +1 -1
- package/dist/index.js +397 -326
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -27,6 +27,12 @@ On an unlinked machine, `sync` starts the login flow inline - your browser opens
|
|
|
27
27
|
|
|
28
28
|
After a manual sync, the CLI offers auto-sync with three choices: Enable, Maybe later, and Never ask again. Maybe later asks again after your next manual sync. Existing declines from older CLI versions are treated as Maybe later.
|
|
29
29
|
|
|
30
|
+
#### Multiple Claude Code accounts
|
|
31
|
+
|
|
32
|
+
Sync combines the local histories of your Claude Code profiles into one Claude Code reading. It discovers `~/.claude*` folders, `claude*` folders under `XDG_CONFIG_HOME` (default `~/.config`), nested `profiles/` and `accounts/` folders, and Claude Swap session profiles under `~/.claude-swap-backup` or `$XDG_DATA_HOME/claude-swap` (default `~/.local/share/claude-swap`). A profile contributes only its `projects/` transcripts. Discovery does not open credentials, and the published aggregates do not include account names.
|
|
33
|
+
|
|
34
|
+
`CLAUDE_CONFIG_DIR` can add custom locations as a comma-separated list. The default and discovered profiles still count when this variable is set, so running sync from an account-specific shell keeps the other accounts included. Linked transcript roots and copied records with the same Claude record UUID are counted once. A profile discovery error marks the reading as partial so previously published evidence is retained.
|
|
35
|
+
|
|
30
36
|
#### A sync that looks stuck
|
|
31
37
|
|
|
32
38
|
The scan runs on this machine and can take a few minutes when a harness keeps a large history. Cursor is the usual case: its global `state.vscdb` grows past a gigabyte, and the session listing walks all of it before the first result. Every harness is checked at the same time and gets its own row with a progress bar, so one slow harness shows as one slow row while the others finish. To see each step as it starts, with its duration, run with `--verbose`:
|
package/dist/cursor-worker.js
CHANGED
|
@@ -18675,8 +18675,13 @@ var PROVIDER_VENDOR = {
|
|
|
18675
18675
|
xai: "xai"
|
|
18676
18676
|
};
|
|
18677
18677
|
var PRICING_ALIASES = {
|
|
18678
|
-
"grok-4.6-build": "grok-4.6"
|
|
18678
|
+
"grok-4.6-build": "grok-4.6",
|
|
18679
|
+
"grok-4.7-build": "grok-4.7"
|
|
18679
18680
|
};
|
|
18681
|
+
var MODEL_SETTINGS_SUFFIX = /(?:-thinking)?(?:-(?:low|medium|high|xhigh|max))?(?:-fast)?$/;
|
|
18682
|
+
function withoutModelSettings(slug) {
|
|
18683
|
+
return slug.replace(MODEL_SETTINGS_SUFFIX, "");
|
|
18684
|
+
}
|
|
18680
18685
|
var LOCAL_PROVIDERS = /* @__PURE__ */ new Set([
|
|
18681
18686
|
"ollama",
|
|
18682
18687
|
"lmstudio",
|
|
@@ -18773,8 +18778,16 @@ var Pricer = class {
|
|
|
18773
18778
|
}
|
|
18774
18779
|
lookupSlug(slug, provider) {
|
|
18775
18780
|
if (this.firstLayerWith(slug, provider)) return slug;
|
|
18776
|
-
const
|
|
18777
|
-
|
|
18781
|
+
const base = withoutModelSettings(slug);
|
|
18782
|
+
for (const candidate of [
|
|
18783
|
+
PRICING_ALIASES[slug],
|
|
18784
|
+
base,
|
|
18785
|
+
PRICING_ALIASES[base]
|
|
18786
|
+
]) {
|
|
18787
|
+
if (candidate && this.firstLayerWith(candidate, provider))
|
|
18788
|
+
return candidate;
|
|
18789
|
+
}
|
|
18790
|
+
return null;
|
|
18778
18791
|
}
|
|
18779
18792
|
/**
|
|
18780
18793
|
* Every period that applies to a pricing key, or an empty list when none
|