@use-aistack/cli 0.3.0 → 0.5.0
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 +39 -10
- package/dist/index.js +3031 -369
- package/dist/index.js.map +1 -1
- package/package.json +13 -7
- package/skills/aistack-sync/SKILL.md +48 -0
package/README.md
CHANGED
|
@@ -1,26 +1,56 @@
|
|
|
1
1
|
# @use-aistack/cli
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Measure and share your AI stack. The CLI scans your local Claude Code transcripts, shows you exactly what would go up, and publishes only after you approve in your terminal.
|
|
4
4
|
|
|
5
5
|
Run on-demand with `npx` — no install required:
|
|
6
6
|
|
|
7
7
|
```sh
|
|
8
|
-
npx @use-aistack/cli
|
|
8
|
+
npx @use-aistack/cli sync
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Commands
|
|
12
12
|
|
|
13
|
+
### `npx @use-aistack/cli sync`
|
|
14
|
+
|
|
15
|
+
The default command. Scan your local transcripts (rolling 30 days), review the full summary, and publish the measured layer to your stack. Nothing leaves your machine without your explicit approval at the prompt. Raw transcripts, prompts, and paths never leave at all — only aggregates.
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
npx @use-aistack/cli sync
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Requires a one-time `login` first.
|
|
22
|
+
|
|
23
|
+
### `npx @use-aistack/cli sync --auto on` / `off`
|
|
24
|
+
|
|
25
|
+
Optional: keep your stack fresh without manual syncs. `on` writes a `SessionStart` hook (`async: true`) into `~/.claude/settings.json`. The hook runs a silent sync at most once per day when a Claude Code session starts. `off` removes the hook and revokes the standing opt-in.
|
|
26
|
+
|
|
27
|
+
```sh
|
|
28
|
+
npx @use-aistack/cli sync --auto on # enable, default every 24h
|
|
29
|
+
npx @use-aistack/cli sync --auto on --every 12 # custom frequency in hours
|
|
30
|
+
npx @use-aistack/cli sync --auto off # revoke
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
The silent run (`sync --auto`) never prompts and publishes only under this opt-in. Each run appends one line to `~/.config/aistack/sync.log` (capped at 200 lines). The next interactive `sync` reports the last result. After 3 failures in a row, one visible message appears in Claude Code and names the fix. No email, no dialogs.
|
|
34
|
+
|
|
13
35
|
### `npx @use-aistack/cli login`
|
|
14
36
|
|
|
15
|
-
|
|
37
|
+
Link this machine to your AI Stack account via browser.
|
|
16
38
|
|
|
17
39
|
```sh
|
|
18
40
|
npx @use-aistack/cli login
|
|
19
41
|
```
|
|
20
42
|
|
|
43
|
+
### `npx @use-aistack/cli connect claude`
|
|
44
|
+
|
|
45
|
+
Optional: install the in-session sync surface for Claude Code — the `aistack` MCP server (user scope) plus the `aistack-sync` Skill. After that, say "sync my stack" in any Claude Code session. Both halves install together or not at all.
|
|
46
|
+
|
|
47
|
+
```sh
|
|
48
|
+
npx @use-aistack/cli connect claude
|
|
49
|
+
```
|
|
50
|
+
|
|
21
51
|
### `npx @use-aistack/cli collect`
|
|
22
52
|
|
|
23
|
-
Scan your project for AI config files and upload them.
|
|
53
|
+
Scan your project for AI config files (prompts, rules, skills, MCP setups) and upload them to your stack.
|
|
24
54
|
|
|
25
55
|
```sh
|
|
26
56
|
cd your-project
|
|
@@ -29,12 +59,12 @@ npx @use-aistack/cli collect
|
|
|
29
59
|
|
|
30
60
|
Detects: `.cursorrules`, `CLAUDE.md`, `AGENTS.md`, `.cursor/rules/`, `mcp.json`, skill directories, prompts, and global configs (`~/.claude/`, `~/.cursor/`, etc).
|
|
31
61
|
|
|
32
|
-
### `npx @use-aistack/cli create
|
|
62
|
+
### `npx @use-aistack/cli create`
|
|
33
63
|
|
|
34
|
-
|
|
64
|
+
Write your stack's AI config files into the current directory.
|
|
35
65
|
|
|
36
66
|
```sh
|
|
37
|
-
npx @use-aistack/cli create
|
|
67
|
+
npx @use-aistack/cli create
|
|
38
68
|
```
|
|
39
69
|
|
|
40
70
|
## Install globally (optional)
|
|
@@ -49,8 +79,8 @@ Then the same commands become:
|
|
|
49
79
|
|
|
50
80
|
```sh
|
|
51
81
|
aistack login
|
|
82
|
+
aistack sync
|
|
52
83
|
aistack collect
|
|
53
|
-
aistack create <slug>
|
|
54
84
|
```
|
|
55
85
|
|
|
56
86
|
## Development
|
|
@@ -64,8 +94,7 @@ Test locally:
|
|
|
64
94
|
|
|
65
95
|
```sh
|
|
66
96
|
node packages/cli/dist/index.js login
|
|
67
|
-
node packages/cli/dist/index.js
|
|
68
|
-
node packages/cli/dist/index.js create <slug>
|
|
97
|
+
node packages/cli/dist/index.js sync
|
|
69
98
|
```
|
|
70
99
|
|
|
71
100
|
Set `AISTACK_URL=http://localhost:3019` to test against local dev server.
|