document360-writer 0.5.78 → 0.5.79

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,10 @@
1
+ import type { ReplContext } from '../repl.js';
2
+ import type { SlashCommandResult } from './index.js';
3
+ /** Render the campaign as plain lines (shared by the TUI note and the classic REPL). */
4
+ export declare function roadmapLines(cwd: string): string[];
5
+ /** `/roadmap done <step title>` — stamp a step completed outside agent turns. */
6
+ export declare function roadmapDoneByTitle(cwd: string, title: string): {
7
+ ok: boolean;
8
+ line: string;
9
+ };
10
+ export declare function roadmapCommand(args: string[], ctx: ReplContext): Promise<SlashCommandResult>;
@@ -36,6 +36,17 @@ export type ReadyInputs = {
36
36
  builderStarted: boolean;
37
37
  /** The doc genre (appType) couldn't be auto-classified — the /genre picker is the fix. */
38
38
  genreUnknown: boolean;
39
+ /** The docs roadmap (roadmapProgress(cwd)) — the durable CAMPAIGN in .d360-writer/roadmap.md.
40
+ Null when the file is absent or has no steps. `next` is the first open step; null when all done
41
+ (the "campaign complete" calm state). */
42
+ roadmap: {
43
+ done: number;
44
+ total: number;
45
+ next: {
46
+ title: string;
47
+ run?: string;
48
+ } | null;
49
+ } | null;
39
50
  };
40
51
  /** The one recommended action. `cmd` fills the ghost and runs on Tab→Enter; `prompt` is a free-text
41
52
  ghost (e.g. cold-start "write the docs for this repo"). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "document360-writer",
3
- "version": "0.5.78",
3
+ "version": "0.5.79",
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.101",
37
+ "document360-engine": "^0.2.102",
38
38
  "ink": "^5.2.1",
39
39
  "picocolors": "^1.1.1",
40
40
  "react": "^18.3.1",