document360-writer 0.5.49 → 0.5.51

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.
@@ -1,7 +1,7 @@
1
1
  import { type ScopeCandidate } from 'document360-engine';
2
2
  import type { ReplContext } from '../repl.js';
3
3
  import type { SlashCommandResult } from './index.js';
4
- /** Persist the chosen scope folders into .d360-writer.json (read-modify-write so
4
+ /** Persist the chosen scope folders into .d360-writer/config.json (read-modify-write so
5
5
  unrelated fields survive). Shared by the REPL command and the TUI picker. */
6
6
  export declare function setAuthoritativeSourceFiles(cwd: string, paths: string[]): void;
7
7
  /** One display row: "src/Services/Document360.API · 142 files · .NET · user-facing surface". */
@@ -1,3 +1,15 @@
1
+ /** A quick-run option is either a bare command line (description derived from the catalog) OR a
2
+ command plus a CONTEXTUAL description that travels with it — so a CTA can say exactly what each
3
+ key does in this moment (e.g. "/check" = "re-scan", vs the catalog blurb). The description riding
4
+ on the option means it can never go stale or mismatch the command (no parallel side-map to sync). */
5
+ export type QuickOption = string | {
6
+ cmd: string;
7
+ desc: string;
8
+ };
9
+ /** The command line of a quick option, whichever form it takes. */
10
+ export declare function optCmd(o: QuickOption): string;
11
+ /** The contextual description of a quick option, or undefined for a bare command (→ catalog fallback). */
12
+ export declare function optDesc(o: QuickOption): string | undefined;
1
13
  /** The argument portion of a command line ("/publish --all" → "--all", "/audit" → ""). */
2
14
  export declare function argOf(cmd: string): string;
3
15
  /**
@@ -9,4 +21,4 @@ export declare function argOf(cmd: string): string;
9
21
  * - Otherwise the user went off-script (e.g. "/reset" while "/publish --all" was offered) → clear all,
10
22
  * so a now-irrelevant suggestion can't linger into the new context (SNAG-0127).
11
23
  */
12
- export declare function nextQuickOptions(prev: string[], executed: string): string[];
24
+ export declare function nextQuickOptions(prev: QuickOption[], executed: string): QuickOption[];
@@ -3,7 +3,7 @@ export type BannerInfo = {
3
3
  claude: string;
4
4
  /** Resolved model name (alias or full id; 'Claude Code default' when no override). */
5
5
  model: string;
6
- /** Where the model came from, e.g. '.d360-writer.json', '/model setting', 'env'. */
6
+ /** Where the model came from, e.g. '.d360-writer/config.json', '/model setting', 'env'. */
7
7
  modelSource: string;
8
8
  who: string | null;
9
9
  /** Session-health parenthetical shown after `who` (expiry / refreshing note). */
@@ -14,7 +14,7 @@ export type BannerInfo = {
14
14
  cwd: string;
15
15
  prod: boolean;
16
16
  loggedOut: boolean;
17
- /** False when the repo has no .d360-writer.json — show "run /init", never a default
17
+ /** False when the repo has no .d360-writer/config.json — show "run /init", never a default
18
18
  profile or a machine-global session that the repo never opted into. */
19
19
  configured: boolean;
20
20
  /** Writer-mode boundary line, e.g. 'writer · edits limited to user-docs/ + config'. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "document360-writer",
3
- "version": "0.5.49",
3
+ "version": "0.5.51",
4
4
  "description": "Standalone documentation agent CLI. Reads your code, writes your docs. Specialized for Document360 publishing.",
5
5
  "type": "module",
6
6
  "bin": {