@tekmidian/pai 0.19.0 → 0.20.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/dist/cli/index.mjs +1 -1
- package/dist/cli/program.mjs +1 -1
- package/dist/pick-B_6bfxD8.mjs +13200 -0
- package/dist/pick-B_6bfxD8.mjs.map +1 -0
- package/dist/pick-CjUxUBL_.mjs +13192 -0
- package/dist/pick-CjUxUBL_.mjs.map +1 -0
- package/docs/commands/README.md +1 -0
- package/docs/commands/registry.md +18 -0
- package/package.json +1 -1
package/docs/commands/README.md
CHANGED
|
@@ -139,6 +139,7 @@ Generated man pages for every `pai` command area. Read any page in the terminal
|
|
|
139
139
|
| `pai registry lookup` | Find the project slug for a filesystem path (for use in scripts) |
|
|
140
140
|
| `pai registry migrate` | Import data from ~/.claude/session-registry.json |
|
|
141
141
|
| `pai registry rebuild` | Erase all registry data and rebuild from the filesystem (destructive) |
|
|
142
|
+
| `pai registry reconnect` | Point projects back at the transcripts they lost. |
|
|
142
143
|
| `pai registry scan` | Walk ~/.claude/projects/ and configured scan_dirs, upsert all projects |
|
|
143
144
|
| `pai registry stats` | Show summary statistics for the registry |
|
|
144
145
|
| `pai restore` | Restore from a backup directory (created by pai backup) |
|
|
@@ -19,6 +19,7 @@ pai registry <subcommand> [options]
|
|
|
19
19
|
| [`pai registry stats`](#pai-registry-stats) | Show summary statistics for the registry |
|
|
20
20
|
| [`pai registry rebuild`](#pai-registry-rebuild) | Erase all registry data and rebuild from the filesystem (destructive) |
|
|
21
21
|
| [`pai registry dedupe`](#pai-registry-dedupe) | Merge registry rows that describe the same project. |
|
|
22
|
+
| [`pai registry reconnect`](#pai-registry-reconnect) | Point projects back at the transcripts they lost. |
|
|
22
23
|
| [`pai registry lookup`](#pai-registry-lookup) | Find the project slug for a filesystem path (for use in scripts) |
|
|
23
24
|
|
|
24
25
|
### pai registry scan
|
|
@@ -66,6 +67,23 @@ Dry-run by default; --execute backs up the registry first and merges in one tran
|
|
|
66
67
|
| `--execute` | Actually perform the merge (default is dry-run) | |
|
|
67
68
|
|
|
68
69
|
|
|
70
|
+
### pai registry reconnect
|
|
71
|
+
|
|
72
|
+
Point projects back at the transcripts they lost.
|
|
73
|
+
|
|
74
|
+
A project's encoded_dir is written once and never updated when the project
|
|
75
|
+
moves, so handovers, session digests and checkpoints silently find nothing.
|
|
76
|
+
Repairs are read from the transcripts themselves — each records the cwd it ran
|
|
77
|
+
in — rather than re-derived from the naming rule that broke.
|
|
78
|
+
Dry-run by default; --execute writes the corrected rows in one transaction.
|
|
79
|
+
|
|
80
|
+
**Options**
|
|
81
|
+
|
|
82
|
+
| Option | Description | Default |
|
|
83
|
+
|--------|-------------|---------|
|
|
84
|
+
| `--execute` | Actually write the corrections (default is dry-run) | |
|
|
85
|
+
|
|
86
|
+
|
|
69
87
|
### pai registry lookup
|
|
70
88
|
|
|
71
89
|
Find the project slug for a filesystem path (for use in scripts)
|