@tekmidian/pai 0.31.0 → 0.32.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-Bmz718uo.mjs → pick-DlsM0ppq.mjs} +500 -20
- package/dist/pick-DlsM0ppq.mjs.map +1 -0
- package/docs/commands/README.md +4 -0
- package/docs/commands/project.md +38 -0
- package/docs/commands/projects.md +38 -0
- package/package.json +1 -1
- package/dist/pick-Bmz718uo.mjs.map +0 -1
package/docs/commands/README.md
CHANGED
|
@@ -104,6 +104,7 @@ Generated man pages for every `pai` command area. Read any page in the terminal
|
|
|
104
104
|
| `pai project info <slug>` | Show full details for a project |
|
|
105
105
|
| `pai project list` | Show the unified deduped listing (same as `pai`). |
|
|
106
106
|
| `pai project list-raw` | Raw registry listing with slug, path, status, last_active columns |
|
|
107
|
+
| `pai project merge <from> <into>` | Fold a duplicate project into another: move its sessions (renumbered), repoint its tags, aliases, compaction records and links, keep the old slug as an alias, then delete the row. Preview unless --execute is given. |
|
|
107
108
|
| `pai project move <slug> <new-path>` | Update the root path for a project |
|
|
108
109
|
| `pai project name <identifier> <shortname>` | Give a project a short name for quick access |
|
|
109
110
|
| `pai project names` | List named projects (your curated shortlist) |
|
|
@@ -112,6 +113,7 @@ Generated man pages for every `pai` command area. Read any page in the terminal
|
|
|
112
113
|
| `pai project tag <slug> <tags...>` | Add one or more tags to a project |
|
|
113
114
|
| `pai project unarchive <slug>` | Restore an archived project to active status |
|
|
114
115
|
| `pai project unname <shortname>` | Remove a project's short name |
|
|
116
|
+
| `pai project unregister <slug>` | Remove a project row entirely, for paths that should never have been registered (worktrees, temp dirs). Refuses when the row holds sessions — merge those first. Preview unless --execute is given. The directory itself is never touched. |
|
|
115
117
|
| `pai projects` | Manage registered projects (list, cd, add, info, ...) |
|
|
116
118
|
| `pai projects add <path>` | Register a project directory in the PAI registry |
|
|
117
119
|
| `pai projects alias <slug> <alias>` | Register an alternative slug for a project |
|
|
@@ -126,6 +128,7 @@ Generated man pages for every `pai` command area. Read any page in the terminal
|
|
|
126
128
|
| `pai projects info <slug>` | Show full details for a project |
|
|
127
129
|
| `pai projects list` | Show the unified deduped listing (same as `pai`). |
|
|
128
130
|
| `pai projects list-raw` | Raw registry listing with slug, path, status, last_active columns |
|
|
131
|
+
| `pai projects merge <from> <into>` | Fold a duplicate project into another: move its sessions (renumbered), repoint its tags, aliases, compaction records and links, keep the old slug as an alias, then delete the row. Preview unless --execute is given. |
|
|
129
132
|
| `pai projects move <slug> <new-path>` | Update the root path for a project |
|
|
130
133
|
| `pai projects name <identifier> <shortname>` | Give a project a short name for quick access |
|
|
131
134
|
| `pai projects names` | List named projects (your curated shortlist) |
|
|
@@ -134,6 +137,7 @@ Generated man pages for every `pai` command area. Read any page in the terminal
|
|
|
134
137
|
| `pai projects tag <slug> <tags...>` | Add one or more tags to a project |
|
|
135
138
|
| `pai projects unarchive <slug>` | Restore an archived project to active status |
|
|
136
139
|
| `pai projects unname <shortname>` | Remove a project's short name |
|
|
140
|
+
| `pai projects unregister <slug>` | Remove a project row entirely, for paths that should never have been registered (worktrees, temp dirs). Refuses when the row holds sessions — merge those first. Preview unless --execute is given. The directory itself is never touched. |
|
|
137
141
|
| `pai registry` | Registry maintenance: scan, migrate, stats, rebuild |
|
|
138
142
|
| `pai registry dedupe` | Merge registry rows that describe the same project. |
|
|
139
143
|
| `pai registry lookup` | Find the project slug for a filesystem path (for use in scripts) |
|
package/docs/commands/project.md
CHANGED
|
@@ -20,6 +20,8 @@ pai project <subcommand> [options]
|
|
|
20
20
|
| [`pai project add <path>`](#pai-project-add-path) | Register a project directory in the PAI registry |
|
|
21
21
|
| [`pai project info <slug>`](#pai-project-info-slug) | Show full details for a project |
|
|
22
22
|
| [`pai project archive <slug>`](#pai-project-archive-slug) | Archive a project |
|
|
23
|
+
| [`pai project merge <from> <into>`](#pai-project-merge-from-into) | Fold a duplicate project into another: move its sessions (renumbered), repoint its tags, aliases, compaction records and links, keep the old slug as an alias, then delete the row. Preview unless --execute is given. |
|
|
24
|
+
| [`pai project unregister <slug>`](#pai-project-unregister-slug) | Remove a project row entirely, for paths that should never have been registered (worktrees, temp dirs). Refuses when the row holds sessions — merge those first. Preview unless --execute is given. The directory itself is never touched. |
|
|
23
25
|
| [`pai project unarchive <slug>`](#pai-project-unarchive-slug) | Restore an archived project to active status |
|
|
24
26
|
| [`pai project move <slug> <new-path>`](#pai-project-move-slug-new-path) | Update the root path for a project |
|
|
25
27
|
| [`pai project rebind <slug> <new-path>`](#pai-project-rebind-slug-new-path) | Manually update the root_path for a project (for when auto-detect found multiple matches). |
|
|
@@ -119,6 +121,42 @@ Archive a project
|
|
|
119
121
|
| `<slug>` | required |
|
|
120
122
|
|
|
121
123
|
|
|
124
|
+
### pai project merge <from> <into>
|
|
125
|
+
|
|
126
|
+
Fold a duplicate project into another: move its sessions (renumbered), repoint its tags, aliases, compaction records and links, keep the old slug as an alias, then delete the row. Preview unless --execute is given.
|
|
127
|
+
|
|
128
|
+
**Arguments**
|
|
129
|
+
|
|
130
|
+
| Argument | Kind |
|
|
131
|
+
|----------|------|
|
|
132
|
+
| `<from>` | required |
|
|
133
|
+
| `<into>` | required |
|
|
134
|
+
|
|
135
|
+
**Options**
|
|
136
|
+
|
|
137
|
+
| Option | Description | Default |
|
|
138
|
+
|--------|-------------|---------|
|
|
139
|
+
| `--execute` | Actually perform the merge | |
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
### pai project unregister <slug>
|
|
143
|
+
|
|
144
|
+
Remove a project row entirely, for paths that should never have been registered (worktrees, temp dirs). Refuses when the row holds sessions — merge those first. Preview unless --execute is given. The directory itself is never touched.
|
|
145
|
+
|
|
146
|
+
**Arguments**
|
|
147
|
+
|
|
148
|
+
| Argument | Kind |
|
|
149
|
+
|----------|------|
|
|
150
|
+
| `<slug>` | required |
|
|
151
|
+
|
|
152
|
+
**Options**
|
|
153
|
+
|
|
154
|
+
| Option | Description | Default |
|
|
155
|
+
|--------|-------------|---------|
|
|
156
|
+
| `--execute` | Actually remove the row | |
|
|
157
|
+
| `--force` | Remove even though sessions would be deleted with it | |
|
|
158
|
+
|
|
159
|
+
|
|
122
160
|
### pai project unarchive <slug>
|
|
123
161
|
|
|
124
162
|
Restore an archived project to active status
|
|
@@ -20,6 +20,8 @@ pai projects <subcommand> [options]
|
|
|
20
20
|
| [`pai projects add <path>`](#pai-projects-add-path) | Register a project directory in the PAI registry |
|
|
21
21
|
| [`pai projects info <slug>`](#pai-projects-info-slug) | Show full details for a project |
|
|
22
22
|
| [`pai projects archive <slug>`](#pai-projects-archive-slug) | Archive a project |
|
|
23
|
+
| [`pai projects merge <from> <into>`](#pai-projects-merge-from-into) | Fold a duplicate project into another: move its sessions (renumbered), repoint its tags, aliases, compaction records and links, keep the old slug as an alias, then delete the row. Preview unless --execute is given. |
|
|
24
|
+
| [`pai projects unregister <slug>`](#pai-projects-unregister-slug) | Remove a project row entirely, for paths that should never have been registered (worktrees, temp dirs). Refuses when the row holds sessions — merge those first. Preview unless --execute is given. The directory itself is never touched. |
|
|
23
25
|
| [`pai projects unarchive <slug>`](#pai-projects-unarchive-slug) | Restore an archived project to active status |
|
|
24
26
|
| [`pai projects move <slug> <new-path>`](#pai-projects-move-slug-new-path) | Update the root path for a project |
|
|
25
27
|
| [`pai projects rebind <slug> <new-path>`](#pai-projects-rebind-slug-new-path) | Manually update the root_path for a project (for when auto-detect found multiple matches). |
|
|
@@ -119,6 +121,42 @@ Archive a project
|
|
|
119
121
|
| `<slug>` | required |
|
|
120
122
|
|
|
121
123
|
|
|
124
|
+
### pai projects merge <from> <into>
|
|
125
|
+
|
|
126
|
+
Fold a duplicate project into another: move its sessions (renumbered), repoint its tags, aliases, compaction records and links, keep the old slug as an alias, then delete the row. Preview unless --execute is given.
|
|
127
|
+
|
|
128
|
+
**Arguments**
|
|
129
|
+
|
|
130
|
+
| Argument | Kind |
|
|
131
|
+
|----------|------|
|
|
132
|
+
| `<from>` | required |
|
|
133
|
+
| `<into>` | required |
|
|
134
|
+
|
|
135
|
+
**Options**
|
|
136
|
+
|
|
137
|
+
| Option | Description | Default |
|
|
138
|
+
|--------|-------------|---------|
|
|
139
|
+
| `--execute` | Actually perform the merge | |
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
### pai projects unregister <slug>
|
|
143
|
+
|
|
144
|
+
Remove a project row entirely, for paths that should never have been registered (worktrees, temp dirs). Refuses when the row holds sessions — merge those first. Preview unless --execute is given. The directory itself is never touched.
|
|
145
|
+
|
|
146
|
+
**Arguments**
|
|
147
|
+
|
|
148
|
+
| Argument | Kind |
|
|
149
|
+
|----------|------|
|
|
150
|
+
| `<slug>` | required |
|
|
151
|
+
|
|
152
|
+
**Options**
|
|
153
|
+
|
|
154
|
+
| Option | Description | Default |
|
|
155
|
+
|--------|-------------|---------|
|
|
156
|
+
| `--execute` | Actually remove the row | |
|
|
157
|
+
| `--force` | Remove even though sessions would be deleted with it | |
|
|
158
|
+
|
|
159
|
+
|
|
122
160
|
### pai projects unarchive <slug>
|
|
123
161
|
|
|
124
162
|
Restore an archived project to active status
|