document360-writer 0.5.77 → 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.
@@ -3,9 +3,10 @@ import type { ReplContext } from '../repl.js';
3
3
  import type { SlashCommandResult } from './index.js';
4
4
  export declare function describeModelSource(r: ResolvedModel): string;
5
5
  /** Set or clear the personal (user-config) model. Returns the status lines plus
6
- the `effective` model to push into the LIVE session via setModel() — undefined
7
- means "let the runtime decide" (its own settings/default chain). Shared by the
8
- REPL command and the TUI case. */
6
+ the `effective` model to push into the LIVE session via setModel() — always
7
+ concrete now (auto resolves to the docs-right Sonnet default; the dev
8
+ environment's Claude Code settings model never leaks in — SNAG-0262).
9
+ Shared by the REPL command and the TUI case. */
9
10
  export declare function applyModelChange(cwd: string, arg: string): {
10
11
  lines: string[];
11
12
  changed: boolean;
@@ -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>;
@@ -10,5 +10,5 @@ export type ModelChoice = {
10
10
  };
11
11
  export declare const MODEL_CHOICES: ModelChoice[];
12
12
  /** Index of the choice matching the resolved model (for the ✓ marker / initial cursor).
13
- Personal/team/env overrides match by value or label; no override Default. */
13
+ Personal/team/env overrides match by value or label; unsetAuto (the docs-right default). */
14
14
  export declare function currentChoiceIndex(resolved: ResolvedModel): number;
@@ -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"). */
@@ -1,7 +1,7 @@
1
1
  export type BannerInfo = {
2
2
  version: string;
3
3
  claude: string;
4
- /** Resolved model name (alias or full id; 'Claude Code default' when no override). */
4
+ /** Resolved model name (alias or full id always concrete; 'sonnet' on auto, SNAG-0262). */
5
5
  model: string;
6
6
  /** Where the model came from, e.g. '.d360-writer/config.json', '/model setting', 'env'. */
7
7
  modelSource: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "document360-writer",
3
- "version": "0.5.77",
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.100",
37
+ "document360-engine": "^0.2.102",
38
38
  "ink": "^5.2.1",
39
39
  "picocolors": "^1.1.1",
40
40
  "react": "^18.3.1",