@lingjingai/scriptctl 0.9.8 → 0.10.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 +11 -23
- package/dist/cli.js.map +1 -1
- package/dist/common.d.ts +0 -3
- package/dist/common.js +0 -7
- package/dist/common.js.map +1 -1
- package/dist/domain/direct-core.d.ts +1 -1
- package/dist/domain/script-core.js +4 -4
- package/dist/domain/script-core.js.map +1 -1
- package/dist/help-text.js +35 -94
- package/dist/help-text.js.map +1 -1
- package/dist/infra/default-writing-prompt.d.ts +1 -1
- package/dist/infra/default-writing-prompt.js +1 -1
- package/dist/usecases/direct.d.ts +0 -5
- package/dist/usecases/direct.js +12 -456
- package/dist/usecases/direct.js.map +1 -1
- package/dist/usecases/episode.js +2 -2
- package/dist/usecases/script.d.ts +1 -2
- package/dist/usecases/script.js +34 -144
- package/dist/usecases/script.js.map +1 -1
- package/package.json +2 -2
package/dist/help-text.js
CHANGED
|
@@ -6,14 +6,12 @@ const HELP_ENTRIES = [
|
|
|
6
6
|
Usage
|
|
7
7
|
- scriptctl <verb> <address> [flags] # 编辑(多态 verb 按 address 格式分发)
|
|
8
8
|
- scriptctl <plural-noun> [flags] # 查询
|
|
9
|
-
- scriptctl
|
|
9
|
+
- scriptctl import <command> [flags] # 素材导入 workflow
|
|
10
10
|
- scriptctl write <command> [flags] # 逐集写作 workflow
|
|
11
11
|
|
|
12
12
|
Workflow groups
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
- direct inspect Inspect episodes, assets, or issues.
|
|
16
|
-
- direct export Store the final script through Gateway after validation.
|
|
13
|
+
- import init Parse existing material into the initial script.
|
|
14
|
+
- import push Publish the script to the DB (validation is advisory).
|
|
17
15
|
- write init Scaffold workspace/episodes/ + meta.json template.
|
|
18
16
|
- write draft <n> Draft + lint + assemble-validate + auto-commit a single episode.
|
|
19
17
|
- write batch Draft a range of episodes in one go.
|
|
@@ -102,17 +100,18 @@ Checks
|
|
|
102
100
|
`,
|
|
103
101
|
],
|
|
104
102
|
[
|
|
105
|
-
["
|
|
106
|
-
`scriptctl
|
|
103
|
+
["import"],
|
|
104
|
+
`scriptctl import structures existing script material and publishes it.
|
|
107
105
|
|
|
108
106
|
Usage
|
|
109
|
-
- scriptctl
|
|
107
|
+
- scriptctl import <command> [options]
|
|
110
108
|
|
|
111
109
|
Commands
|
|
112
110
|
- init Build source manifest, episode plan, initial script, validation.
|
|
113
|
-
-
|
|
114
|
-
|
|
115
|
-
-
|
|
111
|
+
- push Publish the initial script to the final script store (validation advisory).
|
|
112
|
+
|
|
113
|
+
After push, self-review and repair the published DB script with the top-level
|
|
114
|
+
read/edit verbs (validate / issues / replace / type / actor / ...).
|
|
116
115
|
|
|
117
116
|
Options
|
|
118
117
|
- --json Print machine-readable JSON.
|
|
@@ -123,15 +122,15 @@ Exit codes
|
|
|
123
122
|
- 64 usage or arguments error
|
|
124
123
|
- 66 input file unavailable
|
|
125
124
|
- 70 provider or runtime failure
|
|
126
|
-
- 78
|
|
125
|
+
- 78 initial script written but agent repair is needed
|
|
127
126
|
`,
|
|
128
127
|
],
|
|
129
128
|
[
|
|
130
|
-
["
|
|
129
|
+
["import", "init"],
|
|
131
130
|
`Build an initial structured script from an existing script file.
|
|
132
131
|
|
|
133
132
|
Usage
|
|
134
|
-
- scriptctl
|
|
133
|
+
- scriptctl import init --source-path <file> [options]
|
|
135
134
|
|
|
136
135
|
Required
|
|
137
136
|
- --source-path Existing source file. Supported: txt, md, docx, xlsx, pdf, json.
|
|
@@ -174,71 +173,15 @@ Exit codes
|
|
|
174
173
|
`,
|
|
175
174
|
],
|
|
176
175
|
[
|
|
177
|
-
["
|
|
178
|
-
`
|
|
179
|
-
|
|
180
|
-
Usage
|
|
181
|
-
- scriptctl direct validate [options]
|
|
182
|
-
|
|
183
|
-
Required
|
|
184
|
-
- none
|
|
185
|
-
|
|
186
|
-
Options
|
|
187
|
-
- --workspace-path Workspace directory. Default: workspace
|
|
188
|
-
- --script-path Script JSON to validate. Default: workspace/draft/scriptctl/direct/script.initial.json
|
|
189
|
-
- --json Print machine-readable JSON.
|
|
190
|
-
- --help Show this help.
|
|
191
|
-
|
|
192
|
-
Reads
|
|
193
|
-
- workspace/source.txt
|
|
194
|
-
- workspace/draft/scriptctl/direct/episode_plan.json
|
|
195
|
-
- script.initial.json or --script-path
|
|
196
|
-
|
|
197
|
-
Writes
|
|
198
|
-
- workspace/draft/scriptctl/direct/validation.json
|
|
176
|
+
["import", "push"],
|
|
177
|
+
`Publish the initial script to the final script store through Gateway.
|
|
199
178
|
|
|
200
|
-
|
|
201
|
-
-
|
|
202
|
-
|
|
203
|
-
- 66 required artifact unavailable
|
|
204
|
-
- 78 validation failed; agent repair needed
|
|
205
|
-
`,
|
|
206
|
-
],
|
|
207
|
-
[
|
|
208
|
-
["direct", "inspect"],
|
|
209
|
-
`Inspect episodes, assets, validation issues, or do a side-by-side review.
|
|
210
|
-
|
|
211
|
-
Usage
|
|
212
|
-
- scriptctl direct inspect --target <episode|asset|issue|review> [options]
|
|
213
|
-
|
|
214
|
-
Required
|
|
215
|
-
- --target One of: episode, asset, issue, review.
|
|
216
|
-
|
|
217
|
-
Options
|
|
218
|
-
- --workspace-path Workspace directory. Default: workspace
|
|
219
|
-
- --id Optional episode_id, actor_id, location_id, prop_id, or issue code.
|
|
220
|
-
- --episode Required for --target review. Comma-separated episode numbers, e.g. 1 or 1,15,30.
|
|
221
|
-
- --json Print machine-readable JSON.
|
|
222
|
-
- --help Show this help.
|
|
223
|
-
|
|
224
|
-
Reads
|
|
225
|
-
- workspace/draft/scriptctl/direct/script.initial.json
|
|
226
|
-
- workspace/draft/scriptctl/direct/validation.json
|
|
227
|
-
- workspace/draft/scriptctl/direct/episode_plan.json (review)
|
|
228
|
-
- workspace/source.txt (review)
|
|
229
|
-
|
|
230
|
-
Exit codes
|
|
231
|
-
- 0 inspection available
|
|
232
|
-
- 64 usage or arguments error
|
|
233
|
-
- 66 required artifact unavailable
|
|
234
|
-
`,
|
|
235
|
-
],
|
|
236
|
-
[
|
|
237
|
-
["direct", "export"],
|
|
238
|
-
`Export the current initial script to the final script store through Gateway.
|
|
179
|
+
Validation is advisory: push always publishes so the agent can self-review and
|
|
180
|
+
repair on the DB script afterwards. Only a mock-provider result or a malformed
|
|
181
|
+
script.initial.json blocks the write.
|
|
239
182
|
|
|
240
183
|
Usage
|
|
241
|
-
- scriptctl
|
|
184
|
+
- scriptctl import push [options]
|
|
242
185
|
|
|
243
186
|
Required
|
|
244
187
|
- none
|
|
@@ -246,9 +189,8 @@ Required
|
|
|
246
189
|
Options
|
|
247
190
|
- --workspace-path Workspace directory. Default: workspace
|
|
248
191
|
- --project-group-no Project group no. Default: SANDBOX_PROJECT_GROUP_NO
|
|
249
|
-
- --request-id Optional idempotency key. Default: scriptctl-
|
|
192
|
+
- --request-id Optional idempotency key. Default: scriptctl-import-push:<script-sha256>
|
|
250
193
|
- --output-path Deprecated; accepted for old invocations, no local file is written.
|
|
251
|
-
- --force Export with non-error validation issues only; errors still block.
|
|
252
194
|
- --json Print machine-readable JSON.
|
|
253
195
|
- --help Show this help.
|
|
254
196
|
|
|
@@ -261,10 +203,10 @@ Writes
|
|
|
261
203
|
- workspace/draft/scriptctl/direct/validation.json
|
|
262
204
|
|
|
263
205
|
Exit codes
|
|
264
|
-
- 0 script
|
|
206
|
+
- 0 script pushed
|
|
265
207
|
- 64 usage or arguments error
|
|
266
208
|
- 66 required artifact unavailable
|
|
267
|
-
- 78
|
|
209
|
+
- 78 mock-provider result; rerun with a real provider
|
|
268
210
|
`,
|
|
269
211
|
],
|
|
270
212
|
[
|
|
@@ -391,7 +333,7 @@ Options
|
|
|
391
333
|
to see the exact spec-md grammar before writing by hand.
|
|
392
334
|
- --provider Writer provider. Production: gemini (default; omit the flag).
|
|
393
335
|
For tests only: mock. Claude does NOT write episode bodies —
|
|
394
|
-
it stays on
|
|
336
|
+
it stays on import-init structured extraction.
|
|
395
337
|
- --model Override the Gemini model (default: gemini-2.5-pro).
|
|
396
338
|
- --max-tokens Override max_tokens for this draft.
|
|
397
339
|
- --regen Archive the existing ep<n>.md to ep<n>.history/ and roll
|
|
@@ -469,7 +411,7 @@ Options
|
|
|
469
411
|
Behavior
|
|
470
412
|
- Scans episodes with .done-<NN> marker only — blocked (collision / lint) drafts
|
|
471
413
|
are skipped so a half-broken draft can never enter the merged script.
|
|
472
|
-
- Assembles using direct-core's mergeEpisodeResults (same shape as
|
|
414
|
+
- Assembles using direct-core's mergeEpisodeResults (same shape as import push).
|
|
473
415
|
- Re-runs validateScript (defense-in-depth — catches hand-edited ep<n>.json).
|
|
474
416
|
- On success: writes script.json + merge-receipt.json (sha256 of script, meta,
|
|
475
417
|
each ep<n>.json). \`episode push\` later re-verifies these hashes before uploading.
|
|
@@ -591,7 +533,6 @@ Usage
|
|
|
591
533
|
|
|
592
534
|
Options
|
|
593
535
|
- --project-group-no Project group no. Default: SANDBOX_PROJECT_GROUP_NO
|
|
594
|
-
- --script-path Local intermediate script JSON. Omit to use DB-backed script.
|
|
595
536
|
- --workspace-path Workspace directory. Default: workspace
|
|
596
537
|
- --json Print machine-readable JSON. Avoid unless parsing.
|
|
597
538
|
- --help Show this help.
|
|
@@ -610,7 +551,7 @@ Options
|
|
|
610
551
|
- --id <ep_id> Filter to one episode.
|
|
611
552
|
- --min-chars <n> Only episodes with total chars >= N.
|
|
612
553
|
- --max-chars <n> Only episodes with total chars <= N.
|
|
613
|
-
- --project-group-no / --
|
|
554
|
+
- --project-group-no / --workspace-path / --json / --help
|
|
614
555
|
|
|
615
556
|
Output line
|
|
616
557
|
- ep_NNN: scenes=N, actions=N, chars=N (dialogue=N, action=N), title=...
|
|
@@ -633,7 +574,7 @@ Options
|
|
|
633
574
|
- --has-actor <id> Only scenes whose context references this actor.
|
|
634
575
|
- --has-location <id> Only scenes whose context references this location.
|
|
635
576
|
- --has-prop <id> Only scenes whose context references this prop.
|
|
636
|
-
- --project-group-no / --
|
|
577
|
+
- --project-group-no / --workspace-path / --json / --help
|
|
637
578
|
|
|
638
579
|
Output line
|
|
639
580
|
- ep_NNN/scn_NNN [space time] location=loc_NNN(name) actors=... props=... actions=N
|
|
@@ -659,7 +600,7 @@ Options
|
|
|
659
600
|
- --speaker <id> Actions where this speaker appears.
|
|
660
601
|
- --has <kind> state-changes | transition | lines (filter by structural feature).
|
|
661
602
|
- --context <n> Include N actions before/after each hit (for context windows).
|
|
662
|
-
- --project-group-no / --
|
|
603
|
+
- --project-group-no / --workspace-path / --json / --help
|
|
663
604
|
|
|
664
605
|
Requires at least one of: --in, --grep, --type, --actor, --speaker, --has. Bare \`scriptctl actions\`
|
|
665
606
|
errors out — dumping every action across all episodes is too large.
|
|
@@ -685,7 +626,7 @@ Options
|
|
|
685
626
|
- --id <actor_id> Filter to one actor.
|
|
686
627
|
- --name <substr> Match name substring (case-sensitive).
|
|
687
628
|
- --in <addr> Restrict to actors referenced under this address (ep/scn/action).
|
|
688
|
-
- --project-group-no / --
|
|
629
|
+
- --project-group-no / --workspace-path / --json / --help
|
|
689
630
|
|
|
690
631
|
Examples
|
|
691
632
|
- scriptctl actors --name "陈"
|
|
@@ -733,7 +674,7 @@ Options
|
|
|
733
674
|
- --id <id> Filter by id.
|
|
734
675
|
- --name <substr> Match name substring.
|
|
735
676
|
- --in <addr> Restrict to assets referenced under this address.
|
|
736
|
-
- --project-group-no / --
|
|
677
|
+
- --project-group-no / --workspace-path / --json / --help
|
|
737
678
|
|
|
738
679
|
Examples
|
|
739
680
|
- scriptctl assets --name "陈"
|
|
@@ -751,7 +692,7 @@ Options
|
|
|
751
692
|
- --id <speaker_id> Filter to one speaker.
|
|
752
693
|
- --name <substr> Match display_name substring.
|
|
753
694
|
- --kind <kind> Filter by source_kind (actor / location / prop / system / broadcast / group / other).
|
|
754
|
-
- --project-group-no / --
|
|
695
|
+
- --project-group-no / --workspace-path / --json / --help
|
|
755
696
|
|
|
756
697
|
Examples
|
|
757
698
|
- scriptctl speakers --kind system
|
|
@@ -768,7 +709,7 @@ Usage
|
|
|
768
709
|
Options
|
|
769
710
|
- --severity <severity> Filter by severity (error / warning / info / blocking).
|
|
770
711
|
- --code <code> Filter by issue code (e.g. STATE_NOT_FOUND).
|
|
771
|
-
- --project-group-no / --
|
|
712
|
+
- --project-group-no / --workspace-path / --json / --help
|
|
772
713
|
|
|
773
714
|
Output line
|
|
774
715
|
- <severity> <code>: <summary> [<location>]
|
|
@@ -792,7 +733,7 @@ Address forms
|
|
|
792
733
|
|
|
793
734
|
Options
|
|
794
735
|
- --level <scene|action> Restrict to scene-level or action-level refs only.
|
|
795
|
-
- --project-group-no / --
|
|
736
|
+
- --project-group-no / --workspace-path / --json / --help
|
|
796
737
|
|
|
797
738
|
Output line
|
|
798
739
|
- <location> [<role>] (e.g. ep_001/scn_001#3.actor_id [action_actor])
|
|
@@ -812,7 +753,7 @@ Usage
|
|
|
812
753
|
- scriptctl validate [options]
|
|
813
754
|
|
|
814
755
|
Options
|
|
815
|
-
- --project-group-no / --
|
|
756
|
+
- --project-group-no / --workspace-path / --json / --help
|
|
816
757
|
|
|
817
758
|
Exit codes
|
|
818
759
|
- 0 passed
|
|
@@ -836,7 +777,7 @@ Required
|
|
|
836
777
|
Options
|
|
837
778
|
- --to Replacement text. Default: "" (delete the substring).
|
|
838
779
|
- --all Replace every occurrence in the action. Without it, multiple matches reject.
|
|
839
|
-
- --project-group-no / --
|
|
780
|
+
- --project-group-no / --workspace-path / --request-id / --json / --help
|
|
840
781
|
|
|
841
782
|
Refuses overlap dialogue actions — use \`scriptctl overlap\` to rewrite their lines.
|
|
842
783
|
|
|
@@ -1225,7 +1166,7 @@ Use \`scriptctl patch --schema\` to see every supported op + its required fields
|
|
|
1225
1166
|
Options
|
|
1226
1167
|
- --schema [<op>] Dump op schema (JSON) instead of applying. With <op>, dump just that op.
|
|
1227
1168
|
- --dry-run Apply to an in-memory copy, run validate, do NOT write to gateway.
|
|
1228
|
-
- --project-group-no / --
|
|
1169
|
+
- --project-group-no / --workspace-path / --request-id / --json / --help
|
|
1229
1170
|
|
|
1230
1171
|
Examples
|
|
1231
1172
|
- scriptctl patch changes.json
|
package/dist/help-text.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"help-text.js","sourceRoot":"","sources":["../src/help-text.ts"],"names":[],"mappings":"AAAA,MAAM,YAAY,GAAuC;IACvD;QACE,EAAE;QACF
|
|
1
|
+
{"version":3,"file":"help-text.js","sourceRoot":"","sources":["../src/help-text.ts"],"names":[],"mappings":"AAAA,MAAM,YAAY,GAAuC;IACvD;QACE,EAAE;QACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6EH;KACE;IACD;QACE,CAAC,QAAQ,CAAC;QACV;;;;;;;;;;;;;;;CAeH;KACE;IACD;QACE,CAAC,QAAQ,CAAC;QACV;;;;;;;;;;;;;;;;;;;;;;CAsBH;KACE;IACD;QACE,CAAC,QAAQ,EAAE,MAAM,CAAC;QAClB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2CH;KACE;IACD;QACE,CAAC,QAAQ,EAAE,MAAM,CAAC;QAClB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCH;KACE;IACD;QACE,CAAC,OAAO,CAAC;QACT;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDH;KACE;IACD;QACE,CAAC,OAAO,EAAE,MAAM,CAAC;QACjB;;;;;;;;;;;;;;;CAeH;KACE;IACD;QACE,CAAC,OAAO,EAAE,OAAO,CAAC;QAClB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyEH;KACE;IACD;QACE,CAAC,OAAO,EAAE,OAAO,CAAC;QAClB;;;;;;;;;;;;;;;;;;;;;CAqBH;KACE;IACD;QACE,CAAC,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CAaH;KACE;IAED,4EAA4E;IAC5E,kCAAkC;IAClC,4EAA4E;IAE5E;QACE,CAAC,UAAU,CAAC;QACZ;;;;;;;;;;CAUH;KACE;IACD;QACE,CAAC,SAAS,CAAC;QACX;;;;;;;;;CASH;KACE;IACD;QACE,CAAC,aAAa,CAAC;QACf;;;;;;;;;;;;;;;;;CAiBH;KACE;IAED,4EAA4E;IAC5E,6BAA6B;IAC7B,4EAA4E;IAE5E;QACE,CAAC,OAAO,CAAC;QACT;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4BH;KACE;CACF,CAAC;AAEF,SAAS,KAAK,CAAC,OAA0B;IACvC,OAAO,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC3B,CAAC;AAED,MAAM,QAAQ,GAAwB,IAAI,GAAG,CAC3C,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC,CACtD,CAAC;AAEF,MAAM,UAAU,OAAO,CAAC,OAA0B;IAChD,OAAO,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AACtC,CAAC;AAED,MAAM,CAAC,MAAM,IAAI,GAAG,QAAQ,CAAC"}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* 1. Loads the .md at module-init time.
|
|
12
12
|
* 2. Substitutes the `<!-- MARKDOWN_BATCH_PROMPT_SPEC -->` placeholder with the
|
|
13
13
|
* authoritative spec from `common.ts` (single source of truth for the
|
|
14
|
-
* parser-acceptable grammar — same spec consumed by `
|
|
14
|
+
* parser-acceptable grammar — same spec consumed by `import init`).
|
|
15
15
|
*
|
|
16
16
|
* The .md is copied to `dist/infra/` by the package's build script so the
|
|
17
17
|
* shipped npm package contains it; vitest reads the source .md directly.
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* 1. Loads the .md at module-init time.
|
|
12
12
|
* 2. Substitutes the `<!-- MARKDOWN_BATCH_PROMPT_SPEC -->` placeholder with the
|
|
13
13
|
* authoritative spec from `common.ts` (single source of truth for the
|
|
14
|
-
* parser-acceptable grammar — same spec consumed by `
|
|
14
|
+
* parser-acceptable grammar — same spec consumed by `import init`).
|
|
15
15
|
*
|
|
16
16
|
* The .md is copied to `dist/infra/` by the package's build script so the
|
|
17
17
|
* shipped npm package contains it; vitest reads the source .md directly.
|
|
@@ -2,15 +2,10 @@ import { type Report } from "../common.js";
|
|
|
2
2
|
type Dict = Record<string, unknown>;
|
|
3
3
|
export declare function updateRunState(workspace: string, updates: Dict): Dict;
|
|
4
4
|
export declare function readRunState(workspace: string): Dict;
|
|
5
|
-
export declare function addInspectedTarget(workspace: string, target: string): Dict;
|
|
6
|
-
export declare function markPatched(workspace: string, count: number): Dict;
|
|
7
5
|
export declare function markMetadataConfidenceReviewed(workspace: string, operations: Dict[]): void;
|
|
8
|
-
export declare function reviewBlockers(state: Dict): string[];
|
|
9
6
|
export declare function initCheckpoint(sourceText: string, plan: Dict): Dict;
|
|
10
7
|
export declare function initBatchCheckpoint(sourceText: string, batchPlan: Dict): Dict;
|
|
11
8
|
export declare function mergeBatchResultsForEpisode(episode: Dict, batchResults: Dict[]): Dict;
|
|
12
9
|
export declare function commandInit(opts: Dict): Promise<[Report, number]>;
|
|
13
10
|
export declare function summarizeIssues(issues: Dict[]): string[];
|
|
14
|
-
export declare function commandValidate(opts: Dict): [Report, number];
|
|
15
|
-
export declare function commandInspect(opts: Dict): [Report, number];
|
|
16
11
|
export {};
|