@use-aistack/cli 0.16.1 → 0.16.3
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 +11 -0
- package/dist/cursor-worker.js +19119 -0
- package/dist/cursor-worker.js.map +1 -0
- package/dist/index.js +19137 -211
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -22,6 +22,17 @@ On an unlinked machine, `sync` starts the login flow inline - your browser opens
|
|
|
22
22
|
|
|
23
23
|
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.
|
|
24
24
|
|
|
25
|
+
#### A sync that looks stuck
|
|
26
|
+
|
|
27
|
+
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`:
|
|
28
|
+
|
|
29
|
+
```sh
|
|
30
|
+
npx @use-aistack/cli sync --verbose
|
|
31
|
+
AISTACK_DEBUG=1 npx @use-aistack/cli sync # the same, for a hook or a script
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
The lines go to stderr and hold counts and durations only: no paths, prompts, or database values. Paste them into a bug report.
|
|
35
|
+
|
|
25
36
|
### `npx @use-aistack/cli sync --auto on` / `off`
|
|
26
37
|
|
|
27
38
|
Optional: keep your stack fresh without manual syncs. `on` asks your stack for permission, then writes hooks for the harnesses you actually use. The `SessionStart` paths are: `~/.claude/settings.json` for Claude Code, `~/.codex/hooks.json` for Codex, and `$GROK_HOME/hooks/aistack.json` (default `~/.grok/hooks/aistack.json`) for Grok Build. Cursor uses a user-level `stop` hook in `~/.cursor/hooks.json` and reloads that configuration automatically. Its trigger runs when the agent finishes a turn. The other hooks run when a session starts. All triggers share one silent sync throttle, at most once every 6 hours. Existing user hooks are preserved. Grok Build needs a new session or hook reload after installation. `off` disables local publication first, removes the owned hooks, then takes the remote permission back. If removal fails, the disabled local gate still prevents publication and the next interactive sync can retry reconciliation.
|