authoring-cli 0.1.12 → 0.1.16
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/HELP.md +4 -3
- package/README.md +13 -7
- package/dist/index.js +21 -6053
- package/package.json +1 -1
- package/skills/authoring-cli/SKILL.md +16 -18
package/package.json
CHANGED
|
@@ -33,8 +33,11 @@ authoring-cli
|
|
|
33
33
|
|
|
34
34
|
Every action needs task context, which comes from one of two places:
|
|
35
35
|
|
|
36
|
-
- the task recorded in
|
|
37
|
-
|
|
36
|
+
- the task recorded in the session file (`<current working directory>/.authoring-cli/session.json`
|
|
37
|
+
by default — **not** under the home directory, so it's scoped to whichever directory the CLI is
|
|
38
|
+
run from; `$AUTHORING_CLI_HOME` forces a specific location instead) by
|
|
39
|
+
`authoring-cli select-task --project <key> --task <key>` — the default target for every
|
|
40
|
+
subsequent command, or
|
|
38
41
|
- an explicit `--project <key> --task <key>` pair passed on the individual call, which overrides it.
|
|
39
42
|
|
|
40
43
|
`authoring-cli current-task` prints the selected task, and — if given `--project`/`--task` — notes
|
|
@@ -96,19 +99,10 @@ tasks, so a key copied from notes, a ticket, or another environment's URL means
|
|
|
96
99
|
|
|
97
100
|
### Deleting a task
|
|
98
101
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
With no flags it deletes the selected task and clears that selection. Two things worth knowing
|
|
104
|
-
*before* deciding to delete, since neither is apparent from the result:
|
|
105
|
-
|
|
106
|
-
- **It is reversible** — see `recover-task` below. Deleting sets the task's status to Deleted; the
|
|
107
|
-
branch and everything on it survive untouched. Nothing on this platform deletes a task branch,
|
|
108
|
-
so unpromoted content is stranded rather than destroyed.
|
|
109
|
-
- **It stops once the work is promoted.** A task in status Promoted or Completed is refused: its
|
|
110
|
-
content is already in the project and the task is the only record of how it got there. Delete
|
|
111
|
-
while a task is still the place the work lives, or not at all.
|
|
102
|
+
There is no `delete-task` command — deleting the wrong task is hard to undo cleanly (see below),
|
|
103
|
+
so that decision is deliberately left to a human clicking Delete in the Authoring Workbench UI
|
|
104
|
+
rather than something an agent can trigger. If you're asked to delete a task, say so and stop
|
|
105
|
+
rather than improvising a workaround through other commands.
|
|
112
106
|
|
|
113
107
|
### Recovering a deleted task
|
|
114
108
|
|
|
@@ -116,9 +110,13 @@ With no flags it deletes the selected task and clears that selection. Two things
|
|
|
116
110
|
authoring-cli recover-task --project <projectKey> [--task <taskKey>]
|
|
117
111
|
```
|
|
118
112
|
|
|
119
|
-
Puts a deleted task back into In Progress, with its branch content
|
|
120
|
-
status before deletion isn't recorded anywhere reachable, so recovery
|
|
121
|
-
regardless of where the task was when it was deleted.
|
|
113
|
+
Puts a deleted task (however it was deleted) back into In Progress, with its branch content
|
|
114
|
+
intact, and selects it. Its status before deletion isn't recorded anywhere reachable, so recovery
|
|
115
|
+
always lands on In Progress regardless of where the task was when it was deleted. Deletion never
|
|
116
|
+
touches the branch — everything that was on it survives untouched, which is what makes recovery
|
|
117
|
+
possible at all — except for a task that's already been promoted or completed: its content is
|
|
118
|
+
already in the project and the task is the only record of how it got there, so it can't be
|
|
119
|
+
deleted (and so never needs recovering) in the first place.
|
|
122
120
|
|
|
123
121
|
Run it without `--task` first: a deleted task is absent from `tasks` and from every other listing,
|
|
124
122
|
so that is the only way to see what there is to recover.
|