@deskwork/cli 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.js +8 -5
- package/dist/cli.js.map +1 -1
- package/dist/commands/block.d.ts +14 -0
- package/dist/commands/block.d.ts.map +1 -0
- package/dist/commands/block.js +69 -0
- package/dist/commands/block.js.map +1 -0
- package/dist/commands/cancel.d.ts +19 -0
- package/dist/commands/cancel.d.ts.map +1 -0
- package/dist/commands/cancel.js +73 -0
- package/dist/commands/cancel.js.map +1 -0
- package/dist/commands/induct.d.ts +27 -0
- package/dist/commands/induct.d.ts.map +1 -0
- package/dist/commands/induct.js +128 -0
- package/dist/commands/induct.js.map +1 -0
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -19,9 +19,12 @@ import { isRetired, printRetiredError } from "./commands/retired.js";
|
|
|
19
19
|
const SUBCOMMANDS = {
|
|
20
20
|
add: () => import("./commands/add.js"),
|
|
21
21
|
approve: () => import("./commands/approve.js"),
|
|
22
|
+
block: () => import("./commands/block.js"),
|
|
23
|
+
cancel: () => import("./commands/cancel.js"),
|
|
22
24
|
customize: () => import("./commands/customize.js"),
|
|
23
25
|
distribute: () => import("./commands/distribute.js"),
|
|
24
26
|
doctor: () => import("./commands/doctor.js"),
|
|
27
|
+
induct: () => import("./commands/induct.js"),
|
|
25
28
|
ingest: () => import("./commands/ingest.js"),
|
|
26
29
|
install: () => import("./commands/install.js"),
|
|
27
30
|
iterate: () => import("./commands/iterate.js"),
|
|
@@ -74,8 +77,11 @@ function printUsage() {
|
|
|
74
77
|
out.write(' add capture a new idea (Ideas stage)\n\n');
|
|
75
78
|
out.write('Pipeline:\n');
|
|
76
79
|
out.write(' iterate within-stage revision (snapshots a version)\n');
|
|
77
|
-
out.write(' approve
|
|
78
|
-
out.write(' publish move to Published\n
|
|
80
|
+
out.write(' approve advance to the next pipeline stage\n');
|
|
81
|
+
out.write(' publish move to Published\n');
|
|
82
|
+
out.write(' block pull an entry off-pipeline (Blocked; resumable via induct)\n');
|
|
83
|
+
out.write(' cancel pull an entry off-pipeline (Cancelled; rarely resumed)\n');
|
|
84
|
+
out.write(' induct teleport an entry to a chosen pipeline stage\n\n');
|
|
79
85
|
out.write('Shortform:\n');
|
|
80
86
|
out.write(' shortform-start enqueue a shortform draft for review\n');
|
|
81
87
|
out.write(' distribute record a posted shortform URL on the calendar\n\n');
|
|
@@ -84,9 +90,6 @@ function printUsage() {
|
|
|
84
90
|
out.write(' customize copy a plugin default into .deskwork/<category>/<name>.ts\n');
|
|
85
91
|
out.write(' repair-install prune stale entries from Claude Code\'s plugin registry\n\n');
|
|
86
92
|
out.write('Skill-only verbs (use via /deskwork:<verb>):\n');
|
|
87
|
-
out.write(' block pull an entry off-pipeline (Blocked)\n');
|
|
88
|
-
out.write(' cancel pull an entry off-pipeline (Cancelled)\n');
|
|
89
|
-
out.write(' induct teleport an entry to a chosen stage\n');
|
|
90
93
|
out.write(' status per-entry state summary\n\n');
|
|
91
94
|
out.write('Run `deskwork <subcommand>` with no further args to see its usage.\n');
|
|
92
95
|
out.write('Retired verbs (plan, outline, draft, pause, resume, review-*) print a migration\n');
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAErE,MAAM,WAAW,GAA8E;IAC7F,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,mBAAmB,CAAC;IACtC,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,uBAAuB,CAAC;IAC9C,SAAS,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,yBAAyB,CAAC;IAClD,UAAU,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,0BAA0B,CAAC;IACpD,MAA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G,CAAC,KAAK,CAAC,0DAA0D,CAAC,CAAC;IACtE,GAAG,CAAC,KAAK,CAAC,qEAAqE,CAAC,CAAC;IACjF,GAAG,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;IAC5B,GAAG,CAAC,KAAK,CAAC,qEAAqE,CAAC,CAAC;IACjF,GAAG,CAAC,KAAK,CAAC,+EAA+E,CAAC,CAAC;IAC3F,GAAG,CAAC,KAAK,CAAC,+EAA+E,CAAC,CAAC;IAC3F,GAAG,CAAC,KAAK,CAAC,gDAAgD,CAAC,CAAC;IAC5D,GAAG,CAAC,KAAK,CAAC,+CAA+C,CAAC,CAAC;IAC3D,GAAG,CAAC,KAAK,CAAC,sEAAsE,CAAC,CAAC;IAClF,GAAG,CAAC,KAAK,CAAC,mFAAmF,CAAC,CAAC;IAC/F,GAAG,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAC;AAC5C,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* deskwork-block — pull an entry off the linear pipeline into Blocked.
|
|
3
|
+
*
|
|
4
|
+
* Thin wrapper around `blockEntry` from `@deskwork/core/entry/block`. Resolves
|
|
5
|
+
* the slug-or-uuid argument to a sidecar UUID and delegates. Refuses Published
|
|
6
|
+
* / Blocked / Cancelled (the core helper enforces this; the CLI surfaces the
|
|
7
|
+
* error). Records `priorStage` on the sidecar so a later `induct` can return
|
|
8
|
+
* the entry to its prior stage.
|
|
9
|
+
*
|
|
10
|
+
* Usage:
|
|
11
|
+
* deskwork block <project-root> [--site <slug>] <slug-or-uuid> [--reason "<text>"]
|
|
12
|
+
*/
|
|
13
|
+
export declare function run(argv: string[]): Promise<void>;
|
|
14
|
+
//# sourceMappingURL=block.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"block.d.ts","sourceRoot":"","sources":["../../src/commands/block.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAWH,wBAAsB,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAwDvD"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* deskwork-block — pull an entry off the linear pipeline into Blocked.
|
|
3
|
+
*
|
|
4
|
+
* Thin wrapper around `blockEntry` from `@deskwork/core/entry/block`. Resolves
|
|
5
|
+
* the slug-or-uuid argument to a sidecar UUID and delegates. Refuses Published
|
|
6
|
+
* / Blocked / Cancelled (the core helper enforces this; the CLI surfaces the
|
|
7
|
+
* error). Records `priorStage` on the sidecar so a later `induct` can return
|
|
8
|
+
* the entry to its prior stage.
|
|
9
|
+
*
|
|
10
|
+
* Usage:
|
|
11
|
+
* deskwork block <project-root> [--site <slug>] <slug-or-uuid> [--reason "<text>"]
|
|
12
|
+
*/
|
|
13
|
+
import { readConfig } from '@deskwork/core/config';
|
|
14
|
+
import { resolveSite } from '@deskwork/core/paths';
|
|
15
|
+
import { absolutize, emit, fail, parseArgs } from '@deskwork/core/cli-args';
|
|
16
|
+
import { blockEntry } from '@deskwork/core/entry/block';
|
|
17
|
+
import { resolveEntryUuid } from '@deskwork/core/sidecar';
|
|
18
|
+
const KNOWN_FLAGS = ['site', 'reason'];
|
|
19
|
+
export async function run(argv) {
|
|
20
|
+
let parsed;
|
|
21
|
+
try {
|
|
22
|
+
parsed = parseArgs(argv, KNOWN_FLAGS);
|
|
23
|
+
}
|
|
24
|
+
catch (err) {
|
|
25
|
+
fail(err instanceof Error ? err.message : String(err), 2);
|
|
26
|
+
}
|
|
27
|
+
const { positional, flags } = parsed;
|
|
28
|
+
if (positional.length < 2) {
|
|
29
|
+
fail('Usage: deskwork block <project-root> [--site <slug>] ' +
|
|
30
|
+
'<slug-or-uuid> [--reason "<text>"]', 2);
|
|
31
|
+
}
|
|
32
|
+
const [rootArg, slug] = positional;
|
|
33
|
+
const projectRoot = absolutize(rootArg);
|
|
34
|
+
let config;
|
|
35
|
+
try {
|
|
36
|
+
config = readConfig(projectRoot);
|
|
37
|
+
}
|
|
38
|
+
catch (err) {
|
|
39
|
+
fail(err instanceof Error ? err.message : String(err));
|
|
40
|
+
}
|
|
41
|
+
// Validate --site for consistent error shape with sibling commands.
|
|
42
|
+
const site = resolveSite(config, flags.site);
|
|
43
|
+
let uuid;
|
|
44
|
+
try {
|
|
45
|
+
uuid = await resolveEntryUuid(projectRoot, slug);
|
|
46
|
+
}
|
|
47
|
+
catch (err) {
|
|
48
|
+
fail(err instanceof Error ? err.message : String(err));
|
|
49
|
+
}
|
|
50
|
+
let result;
|
|
51
|
+
try {
|
|
52
|
+
result = await blockEntry(projectRoot, {
|
|
53
|
+
uuid,
|
|
54
|
+
...(flags.reason !== undefined && { reason: flags.reason }),
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
catch (err) {
|
|
58
|
+
fail(err instanceof Error ? err.message : String(err));
|
|
59
|
+
}
|
|
60
|
+
emit({
|
|
61
|
+
entryId: result.entryId,
|
|
62
|
+
site,
|
|
63
|
+
slug,
|
|
64
|
+
fromStage: result.fromStage,
|
|
65
|
+
toStage: result.toStage,
|
|
66
|
+
...(flags.reason !== undefined && { reason: flags.reason }),
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=block.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"block.js","sourceRoot":"","sources":["../../src/commands/block.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAG1D,MAAM,WAAW,GAAG,CAA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,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;IACzD,CAAC;IAED,IAAI,MAAM,CAAC;IACX,IAAI,CAAC;QACH,MAAM,GAAG,MAAM,UAAU,CAAC,WAAW,EAAE;YACrC,IAAI;YACJ,GAAG,CAAC,KAAK,CAAC,MAAM,KAAK,SAAS,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC;SAC5D,CAAC,CAAC;IACL,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;IACzD,CAAC;IAED,IAAI,CAAC;QACH,OAAO,EAAE,MAAM,CAAC,OAAO;QACvB,IAAI;QACJ,IAAI;QACJ,SAAS,EAAE,MAAM,CAAC,SAAS;QAC3B,OAAO,EAAE,MAAM,CAAC,OAAO;QACvB,GAAG,CAAC,KAAK,CAAC,MAAM,KAAK,SAAS,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC;KAC5D,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* deskwork-cancel — pull an entry off the linear pipeline into Cancelled.
|
|
3
|
+
*
|
|
4
|
+
* Thin wrapper around `cancelEntry` from `@deskwork/core/entry/cancel`.
|
|
5
|
+
* Resolves slug-or-uuid → sidecar UUID and delegates. Refuses Published /
|
|
6
|
+
* Blocked / Cancelled. Records `priorStage` on the sidecar so a later
|
|
7
|
+
* `induct` can return the entry to the pipeline if the cancellation is
|
|
8
|
+
* reversed.
|
|
9
|
+
*
|
|
10
|
+
* `cancel` and `block` are stage-equivalent (both move into off-pipeline
|
|
11
|
+
* stages with priorStage preserved). The distinction is intent: `block`
|
|
12
|
+
* signals "paused, expected to resume"; `cancel` signals "abandoned,
|
|
13
|
+
* resumption is rare".
|
|
14
|
+
*
|
|
15
|
+
* Usage:
|
|
16
|
+
* deskwork cancel <project-root> [--site <slug>] <slug-or-uuid> [--reason "<text>"]
|
|
17
|
+
*/
|
|
18
|
+
export declare function run(argv: string[]): Promise<void>;
|
|
19
|
+
//# sourceMappingURL=cancel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cancel.d.ts","sourceRoot":"","sources":["../../src/commands/cancel.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAWH,wBAAsB,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAuDvD"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* deskwork-cancel — pull an entry off the linear pipeline into Cancelled.
|
|
3
|
+
*
|
|
4
|
+
* Thin wrapper around `cancelEntry` from `@deskwork/core/entry/cancel`.
|
|
5
|
+
* Resolves slug-or-uuid → sidecar UUID and delegates. Refuses Published /
|
|
6
|
+
* Blocked / Cancelled. Records `priorStage` on the sidecar so a later
|
|
7
|
+
* `induct` can return the entry to the pipeline if the cancellation is
|
|
8
|
+
* reversed.
|
|
9
|
+
*
|
|
10
|
+
* `cancel` and `block` are stage-equivalent (both move into off-pipeline
|
|
11
|
+
* stages with priorStage preserved). The distinction is intent: `block`
|
|
12
|
+
* signals "paused, expected to resume"; `cancel` signals "abandoned,
|
|
13
|
+
* resumption is rare".
|
|
14
|
+
*
|
|
15
|
+
* Usage:
|
|
16
|
+
* deskwork cancel <project-root> [--site <slug>] <slug-or-uuid> [--reason "<text>"]
|
|
17
|
+
*/
|
|
18
|
+
import { readConfig } from '@deskwork/core/config';
|
|
19
|
+
import { resolveSite } from '@deskwork/core/paths';
|
|
20
|
+
import { absolutize, emit, fail, parseArgs } from '@deskwork/core/cli-args';
|
|
21
|
+
import { cancelEntry } from '@deskwork/core/entry/cancel';
|
|
22
|
+
import { resolveEntryUuid } from '@deskwork/core/sidecar';
|
|
23
|
+
const KNOWN_FLAGS = ['site', 'reason'];
|
|
24
|
+
export async function run(argv) {
|
|
25
|
+
let parsed;
|
|
26
|
+
try {
|
|
27
|
+
parsed = parseArgs(argv, KNOWN_FLAGS);
|
|
28
|
+
}
|
|
29
|
+
catch (err) {
|
|
30
|
+
fail(err instanceof Error ? err.message : String(err), 2);
|
|
31
|
+
}
|
|
32
|
+
const { positional, flags } = parsed;
|
|
33
|
+
if (positional.length < 2) {
|
|
34
|
+
fail('Usage: deskwork cancel <project-root> [--site <slug>] ' +
|
|
35
|
+
'<slug-or-uuid> [--reason "<text>"]', 2);
|
|
36
|
+
}
|
|
37
|
+
const [rootArg, slug] = positional;
|
|
38
|
+
const projectRoot = absolutize(rootArg);
|
|
39
|
+
let config;
|
|
40
|
+
try {
|
|
41
|
+
config = readConfig(projectRoot);
|
|
42
|
+
}
|
|
43
|
+
catch (err) {
|
|
44
|
+
fail(err instanceof Error ? err.message : String(err));
|
|
45
|
+
}
|
|
46
|
+
const site = resolveSite(config, flags.site);
|
|
47
|
+
let uuid;
|
|
48
|
+
try {
|
|
49
|
+
uuid = await resolveEntryUuid(projectRoot, slug);
|
|
50
|
+
}
|
|
51
|
+
catch (err) {
|
|
52
|
+
fail(err instanceof Error ? err.message : String(err));
|
|
53
|
+
}
|
|
54
|
+
let result;
|
|
55
|
+
try {
|
|
56
|
+
result = await cancelEntry(projectRoot, {
|
|
57
|
+
uuid,
|
|
58
|
+
...(flags.reason !== undefined && { reason: flags.reason }),
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
catch (err) {
|
|
62
|
+
fail(err instanceof Error ? err.message : String(err));
|
|
63
|
+
}
|
|
64
|
+
emit({
|
|
65
|
+
entryId: result.entryId,
|
|
66
|
+
site,
|
|
67
|
+
slug,
|
|
68
|
+
fromStage: result.fromStage,
|
|
69
|
+
toStage: result.toStage,
|
|
70
|
+
...(flags.reason !== undefined && { reason: flags.reason }),
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=cancel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cancel.js","sourceRoot":"","sources":["../../src/commands/cancel.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAG1D,MAAM,WAAW,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAU,CAAC;AAEhD,MAAM,CAAC,KAAK,UAAU,GAAG,CAAC,IAAc;IACtC,IAAI,MAAM,CAAC;IACX,IAAI,CAAC;QACH,MAAM,GAAG,SAAS,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;IACxC,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;IAC5D,CAAC;IAED,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,GAAG,MAAM,CAAC;IAErC,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC1B,IAAI,CACF,wDAAwD;YACtD,oCAAoC,EACtC,CAAC,CACF,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,GAAG,UAAU,CAAC;IACnC,MAAM,WAAW,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC;IAExC,IAAI,MAAs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M,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC;KAC5D,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* deskwork-induct — teleport an entry to a chosen linear-pipeline stage.
|
|
3
|
+
*
|
|
4
|
+
* Thin wrapper around `inductEntry` from `@deskwork/core/entry/induct`.
|
|
5
|
+
*
|
|
6
|
+
* Primary use: return a Blocked or Cancelled entry to the pipeline. Also
|
|
7
|
+
* works on linear-pipeline entries when the operator wants to non-linearly
|
|
8
|
+
* skip ahead (e.g., Ideas → Drafting) or retreat backwards (e.g.,
|
|
9
|
+
* Drafting → Outlining).
|
|
10
|
+
*
|
|
11
|
+
* Default target stage:
|
|
12
|
+
* - from Blocked or Cancelled → sidecar.priorStage (if set)
|
|
13
|
+
* - from Final → Drafting (revoke Final-status)
|
|
14
|
+
* - from any other pipeline stage → required (no default; the operator
|
|
15
|
+
* must pass `--to <Stage>` because backward induction is intentional
|
|
16
|
+
* and shouldn't have a silent default)
|
|
17
|
+
*
|
|
18
|
+
* `--to <Stage>` overrides the default in all cases. Target must be a
|
|
19
|
+
* linear-pipeline stage (Ideas | Planned | Outlining | Drafting | Final |
|
|
20
|
+
* Published). Refuses targetStage = Blocked or Cancelled (use the
|
|
21
|
+
* dedicated `block` / `cancel` commands for those).
|
|
22
|
+
*
|
|
23
|
+
* Usage:
|
|
24
|
+
* deskwork induct <project-root> [--site <slug>] <slug-or-uuid> [--to <Stage>] [--reason "<text>"]
|
|
25
|
+
*/
|
|
26
|
+
export declare function run(argv: string[]): Promise<void>;
|
|
27
|
+
//# sourceMappingURL=induct.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"induct.d.ts","sourceRoot":"","sources":["../../src/commands/induct.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAyBH,wBAAsB,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CA8FvD"}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* deskwork-induct — teleport an entry to a chosen linear-pipeline stage.
|
|
3
|
+
*
|
|
4
|
+
* Thin wrapper around `inductEntry` from `@deskwork/core/entry/induct`.
|
|
5
|
+
*
|
|
6
|
+
* Primary use: return a Blocked or Cancelled entry to the pipeline. Also
|
|
7
|
+
* works on linear-pipeline entries when the operator wants to non-linearly
|
|
8
|
+
* skip ahead (e.g., Ideas → Drafting) or retreat backwards (e.g.,
|
|
9
|
+
* Drafting → Outlining).
|
|
10
|
+
*
|
|
11
|
+
* Default target stage:
|
|
12
|
+
* - from Blocked or Cancelled → sidecar.priorStage (if set)
|
|
13
|
+
* - from Final → Drafting (revoke Final-status)
|
|
14
|
+
* - from any other pipeline stage → required (no default; the operator
|
|
15
|
+
* must pass `--to <Stage>` because backward induction is intentional
|
|
16
|
+
* and shouldn't have a silent default)
|
|
17
|
+
*
|
|
18
|
+
* `--to <Stage>` overrides the default in all cases. Target must be a
|
|
19
|
+
* linear-pipeline stage (Ideas | Planned | Outlining | Drafting | Final |
|
|
20
|
+
* Published). Refuses targetStage = Blocked or Cancelled (use the
|
|
21
|
+
* dedicated `block` / `cancel` commands for those).
|
|
22
|
+
*
|
|
23
|
+
* Usage:
|
|
24
|
+
* deskwork induct <project-root> [--site <slug>] <slug-or-uuid> [--to <Stage>] [--reason "<text>"]
|
|
25
|
+
*/
|
|
26
|
+
import { readConfig } from '@deskwork/core/config';
|
|
27
|
+
import { resolveSite } from '@deskwork/core/paths';
|
|
28
|
+
import { absolutize, emit, fail, parseArgs } from '@deskwork/core/cli-args';
|
|
29
|
+
import { inductEntry } from '@deskwork/core/entry/induct';
|
|
30
|
+
import { readSidecar, resolveEntryUuid } from '@deskwork/core/sidecar';
|
|
31
|
+
const KNOWN_FLAGS = ['site', 'to', 'reason'];
|
|
32
|
+
const LINEAR_PIPELINE_STAGES = new Set([
|
|
33
|
+
'Ideas',
|
|
34
|
+
'Planned',
|
|
35
|
+
'Outlining',
|
|
36
|
+
'Drafting',
|
|
37
|
+
'Final',
|
|
38
|
+
'Published',
|
|
39
|
+
]);
|
|
40
|
+
function isLinearPipelineTarget(s) {
|
|
41
|
+
return LINEAR_PIPELINE_STAGES.has(s);
|
|
42
|
+
}
|
|
43
|
+
export async function run(argv) {
|
|
44
|
+
let parsed;
|
|
45
|
+
try {
|
|
46
|
+
parsed = parseArgs(argv, KNOWN_FLAGS);
|
|
47
|
+
}
|
|
48
|
+
catch (err) {
|
|
49
|
+
fail(err instanceof Error ? err.message : String(err), 2);
|
|
50
|
+
}
|
|
51
|
+
const { positional, flags } = parsed;
|
|
52
|
+
if (positional.length < 2) {
|
|
53
|
+
fail('Usage: deskwork induct <project-root> [--site <slug>] ' +
|
|
54
|
+
'<slug-or-uuid> [--to <Stage>] [--reason "<text>"]', 2);
|
|
55
|
+
}
|
|
56
|
+
const [rootArg, slug] = positional;
|
|
57
|
+
const projectRoot = absolutize(rootArg);
|
|
58
|
+
let config;
|
|
59
|
+
try {
|
|
60
|
+
config = readConfig(projectRoot);
|
|
61
|
+
}
|
|
62
|
+
catch (err) {
|
|
63
|
+
fail(err instanceof Error ? err.message : String(err));
|
|
64
|
+
}
|
|
65
|
+
const site = resolveSite(config, flags.site);
|
|
66
|
+
let uuid;
|
|
67
|
+
try {
|
|
68
|
+
uuid = await resolveEntryUuid(projectRoot, slug);
|
|
69
|
+
}
|
|
70
|
+
catch (err) {
|
|
71
|
+
fail(err instanceof Error ? err.message : String(err));
|
|
72
|
+
}
|
|
73
|
+
// Resolve target stage — explicit flag overrides defaults.
|
|
74
|
+
let targetStage;
|
|
75
|
+
if (flags.to !== undefined) {
|
|
76
|
+
if (!isLinearPipelineTarget(flags.to)) {
|
|
77
|
+
fail(`Invalid --to "${flags.to}". Target must be a linear-pipeline stage ` +
|
|
78
|
+
`(Ideas, Planned, Outlining, Drafting, Final, Published). For ` +
|
|
79
|
+
`off-pipeline transitions use 'deskwork block' or 'deskwork cancel'.`);
|
|
80
|
+
}
|
|
81
|
+
targetStage = flags.to;
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
// Default-stage logic per the skill's input shape.
|
|
85
|
+
let sidecar;
|
|
86
|
+
try {
|
|
87
|
+
sidecar = await readSidecar(projectRoot, uuid);
|
|
88
|
+
}
|
|
89
|
+
catch (err) {
|
|
90
|
+
fail(err instanceof Error ? err.message : String(err));
|
|
91
|
+
}
|
|
92
|
+
if (sidecar.currentStage === 'Blocked' || sidecar.currentStage === 'Cancelled') {
|
|
93
|
+
if (!sidecar.priorStage) {
|
|
94
|
+
fail(`Cannot induct ${slug} without --to: entry is ${sidecar.currentStage} ` +
|
|
95
|
+
`but no priorStage is recorded. Pass --to <Stage> explicitly.`);
|
|
96
|
+
}
|
|
97
|
+
targetStage = sidecar.priorStage;
|
|
98
|
+
}
|
|
99
|
+
else if (sidecar.currentStage === 'Final') {
|
|
100
|
+
targetStage = 'Drafting';
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
fail(`--to is required when inducting from a linear-pipeline stage ` +
|
|
104
|
+
`(currentStage=${sidecar.currentStage}). Backward / sideways ` +
|
|
105
|
+
`induction must be intentional; pass --to <Stage> explicitly.`);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
let result;
|
|
109
|
+
try {
|
|
110
|
+
result = await inductEntry(projectRoot, {
|
|
111
|
+
uuid,
|
|
112
|
+
targetStage,
|
|
113
|
+
...(flags.reason !== undefined && { reason: flags.reason }),
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
catch (err) {
|
|
117
|
+
fail(err instanceof Error ? err.message : String(err));
|
|
118
|
+
}
|
|
119
|
+
emit({
|
|
120
|
+
entryId: result.entryId,
|
|
121
|
+
site,
|
|
122
|
+
slug,
|
|
123
|
+
fromStage: result.fromStage,
|
|
124
|
+
toStage: result.toStage,
|
|
125
|
+
...(flags.reason !== undefined && { reason: flags.reason }),
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
//# sourceMappingURL=induct.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"induct.js","sourceRoot":"","sources":["../../src/commands/induct.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAIvE,MAAM,WAAW,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,QAAQ,CAAU,CAAC;AAEtD,MAAM,sBAAsB,GAAuB,IAAI,GAAG,CAAC;IACzD,OAAO;IACP,SAAS;IACT,WAAW;IACX,UAAU;IACV,OAAO;IACP,WAAW;CACZ,CAAC,CAAC;AAEH,SAAS,sBAAsB,CAAC,CAAS;IACvC,OAAO,sBAAsB,CAAC,GAAG,CAAC,CAAU,CAAC,CAAC;AAChD,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,GAAG,CAAC,IAAc;IACtC,IAAI,MAAM,CAAC;IACX,IAAI,CAAC;QACH,MAAM,GAAG,SAAS,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;IACxC,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;IAC5D,CAAC;IAED,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,GAAG,MAAM,CAAC;IAErC,IAAI,UAAU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AAE,MAAM,CAAC,OAAO;QACvB,IAAI;QACJ,IAAI;QACJ,SAAS,EAAE,MAAM,CAAC,SAAS;QAC3B,OAAO,EAAE,MAAM,CAAC,OAAO;QACvB,GAAG,CAAC,KAAK,CAAC,MAAM,KAAK,SAAS,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC;KAC5D,CAAC,CAAC;AACL,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deskwork/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Editorial calendar + review CLI for the deskwork plugin",
|
|
6
6
|
"homepage": "https://github.com/audiocontrol-org/deskwork#readme",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"typecheck": "tsc --noEmit"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@deskwork/core": "0.
|
|
37
|
+
"@deskwork/core": "0.20.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/node": "^22.10.0",
|