document360-writer 0.5.37 → 0.5.39

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.
@@ -0,0 +1,6 @@
1
+ import { type LintFinding } from 'document360-engine';
2
+ import type { ReplContext } from '../repl.js';
3
+ import type { SlashCommandResult } from './index.js';
4
+ /** Group findings by article into printable lines (shared by classic + TUI). */
5
+ export declare function lintReportLines(findings: LintFinding[]): string[];
6
+ export declare function lintCommand(_args: string[], ctx: ReplContext): Promise<SlashCommandResult>;
@@ -30,8 +30,13 @@ export declare function pendingArticles(cwd: string, docsDir: string, paths: str
30
30
  1-byte floor keeps every planned article in the estimate so its per-article overhead counts. */
31
31
  export declare function sizeWriteTargets(cwd: string, entries: DocsPlanEntry[], paths: string[]): TargetFile[];
32
32
  /** The agent prompt for one partition: author each listed article from the plan. Each is
33
- independent; purpose + sources are looked up from the pinned plan, grounded in source. */
34
- export declare function buildWritePrompt(partition: Partition, docsDir: string): string;
33
+ independent; purpose + sources are looked up from the pinned plan, grounded in source.
34
+ `rewrite` the targets already exist (a `--rewrite`/single-path re-author): tell the agent to rebuild
35
+ from plan + sources + the active doc-type playbook, NOT to preserve or lightly-edit the old file — else
36
+ it anchors on the prior (possibly junior) output and reproduces it (dogfood P-A A5). */
37
+ export declare function buildWritePrompt(partition: Partition, docsDir: string, opts?: {
38
+ rewrite?: boolean;
39
+ }): string;
35
40
  /** Preview lines for `/write --preview`: the partition plan + the cost band, before any spend. */
36
41
  export declare function previewLines(partitions: Partition[], estimate: CostEstimate, concurrency: number): string[];
37
42
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "document360-writer",
3
- "version": "0.5.37",
3
+ "version": "0.5.39",
4
4
  "description": "Standalone documentation agent CLI. Reads your code, writes your docs. Specialized for Document360 publishing.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -34,7 +34,7 @@
34
34
  "@inquirer/prompts": "^8.4.3",
35
35
  "commander": "^14.0.3",
36
36
  "diff": "^8.0.4",
37
- "document360-engine": "^0.2.75",
37
+ "document360-engine": "^0.2.77",
38
38
  "ink": "^5.2.1",
39
39
  "picocolors": "^1.1.1",
40
40
  "react": "^18.3.1",