document360-writer 0.5.36 → 0.5.37

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.
@@ -10,13 +10,15 @@ export declare const MAX_WRITE_CONCURRENCY = 8;
10
10
  export declare function resolveConcurrency(requested?: number): number;
11
11
  /** Parse /write args. The default ACTION is to write — `/write` starts immediately. `--preview` asks
12
12
  for the plan + cost estimate only (no spend). `--scope <cat>` (or `--scope=…`) narrows, `--concurrency
13
- <n>` tunes parallelism, a bare `<path>` writes one article. `--run`/`--all`/`--yes` are accepted as
14
- legacy no-ops (writing is the default now) so old quick-options / muscle memory don't error. */
13
+ <n>` tunes parallelism, a bare `<path>` writes one article. `--rewrite` (alias `--force`) regenerates
14
+ ALREADY-written articles in scope too (the normal scope/all run skips written ones) the iterate loop
15
+ after a plan/playbook change. `--run`/`--all`/`--yes` are accepted as legacy no-ops. */
15
16
  export declare function parseWriteArgs(args: string[]): {
16
17
  scope?: string;
17
18
  path?: string;
18
19
  preview: boolean;
19
20
  concurrency?: number;
21
+ rewrite: boolean;
20
22
  };
21
23
  /** Drop a leading `<docsDir>/` so a path given repo-relative matches the docsDir-relative plan keys. */
22
24
  export declare function toPlanRelative(p: string, docsDir: string): string;
@@ -45,11 +47,13 @@ export declare function summaryLines(results: PartitionResult[], partitions: Par
45
47
  export declare function selectWriteTargets(cwd: string, entries: DocsPlanEntry[], args: {
46
48
  scope?: string;
47
49
  path?: string;
50
+ rewrite?: boolean;
48
51
  }): {
49
52
  docsDir: string;
50
53
  targets: string[];
51
54
  planCount: number;
52
55
  reason?: string;
56
+ rewriting?: boolean;
53
57
  };
54
58
  /**
55
59
  * Classic-REPL `/write` — parity with the TUI handler (App.tsx): `/write [--scope x]` writes the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "document360-writer",
3
- "version": "0.5.36",
3
+ "version": "0.5.37",
4
4
  "description": "Standalone documentation agent CLI. Reads your code, writes your docs. Specialized for Document360 publishing.",
5
5
  "type": "module",
6
6
  "bin": {