@use-aistack/cli 0.20.5 → 0.20.6
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 +13 -0
- package/dist/index.js +640 -457
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -33,6 +33,19 @@ Sync combines the local histories of your Claude Code profiles into one Claude C
|
|
|
33
33
|
|
|
34
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
35
|
|
|
36
|
+
#### Multiple accounts in other harnesses
|
|
37
|
+
|
|
38
|
+
The other harnesses keep one account per data folder, and sync reads every folder it can find:
|
|
39
|
+
|
|
40
|
+
* **Codex**: `~/.codex`, `$CODEX_HOME`, and every `~/.codex*` sibling, such as `~/.codex-work`. A rollout copied into a second home counts once, from its longest copy. Configured MCP servers come from each home's `config.toml`.
|
|
41
|
+
* **Grok Build**: `~/.grok`, `$GROK_HOME`, and every `~/.grok*` sibling. A session copied into a second home is read once, from the copy with the most evidence.
|
|
42
|
+
* **pi**: `~/.pi/agent/sessions`, `$PI_CODING_AGENT_DIR/sessions`, and `$PI_CODING_AGENT_SESSION_DIR`. Entries copied between folders count once.
|
|
43
|
+
* **opencode**: `~/.local/share/opencode`, `$XDG_DATA_HOME/opencode`, and `$OPENCODE_DB`. A relative `OPENCODE_DB` resolves under the data folder, as opencode does. A message stored in two databases counts once.
|
|
44
|
+
|
|
45
|
+
The environment variables add a folder and never hide the default one. Auto-sync runs inside one harness session, where the variable may point at a single account, and it still reads the other accounts. A folder outside these names, such as `CODEX_HOME=~/work/codex`, is remembered in `~/.config/aistack/harness-homes.json` the first time a sync runs with the variable set. Later syncs from any shell read it too. The file stays on this machine.
|
|
46
|
+
|
|
47
|
+
Cursor reads its default user data folder, or `CURSOR_DATA_PATH` when it is set. A second Cursor instance started with `--user-data-dir` is not read.
|
|
48
|
+
|
|
36
49
|
#### A sync that looks stuck
|
|
37
50
|
|
|
38
51
|
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`:
|