document360-writer 0.5.85 → 0.5.86

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.
@@ -15,6 +15,15 @@ export declare function categoryChoices(cwd: string, profileName?: string): Cate
15
15
  /** Classic-REPL fallback (no picker overlay): the lines to print when `--scope` was given without a value,
16
16
  so the user can copy an exact `--scope <token>`. Mirrors the TUI picker's list. */
17
17
  export declare function scopeHintLines(cwd: string, profileName?: string): string[];
18
+ /** True when a bare invocation would act on the WHOLE knowledge base and should offer a choice first
19
+ (like bare /publish): /review or /reorder with no positional scope, or /write --rewrite with no
20
+ scope/path. `--all` is the explicit everything escape (what the TUI picker's first row dispatches),
21
+ so it — and any positional — skips the gate. Report-only whole-KB commands (/check, /audit) are
22
+ exempt by design. */
23
+ export declare function bareWholeKbInvocation(name: string, args: string[]): boolean;
24
+ /** Classic-REPL fallback for a bare whole-KB invocation: print the choices (everything vs per category)
25
+ with the exact commands to copy. Empty when there's nothing meaningful to choose (0–1 categories). */
26
+ export declare function wholeKbHintLines(cwd: string, name: string, args: string[], profileName?: string): string[];
18
27
  /** True when the args ASK for a scope (`--scope`) but omit its value (next token missing or another flag) —
19
28
  the signal to open the category picker (TUI) or print the token list (classic). */
20
29
  export declare function scopeFlagWithoutValue(args: string[]): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "document360-writer",
3
- "version": "0.5.85",
3
+ "version": "0.5.86",
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.105",
37
+ "document360-engine": "^0.2.106",
38
38
  "ink": "^5.2.1",
39
39
  "picocolors": "^1.1.1",
40
40
  "react": "^18.3.1",