document360-writer 0.5.71 → 0.5.73

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,23 @@
1
+ /** One pickable category: `token` is the docsDir-relative prefix `--scope` wants (e.g. "04-scenario-manager"),
2
+ `label` its human name, `count` its article count. */
3
+ export type CategoryChoice = {
4
+ token: string;
5
+ label: string;
6
+ count: number;
7
+ };
8
+ /**
9
+ * The ordered list of categories to offer for `--scope`, in reading order. Deterministic, no network.
10
+ * `token` is the category path made docsDir-relative — exactly what `/write --scope`, `/check`, `/review`,
11
+ * `/reorder` accept. Empty (no config / no map / unresolved profile) → []. Root-level entries (no token)
12
+ * are dropped — you can't scope to "everything" via the picker.
13
+ */
14
+ export declare function categoryChoices(cwd: string, profileName?: string): CategoryChoice[];
15
+ /** Classic-REPL fallback (no picker overlay): the lines to print when `--scope` was given without a value,
16
+ so the user can copy an exact `--scope <token>`. Mirrors the TUI picker's list. */
17
+ export declare function scopeHintLines(cwd: string, profileName?: string): string[];
18
+ /** True when the args ASK for a scope (`--scope`) but omit its value (next token missing or another flag) —
19
+ the signal to open the category picker (TUI) or print the token list (classic). */
20
+ export declare function scopeFlagWithoutValue(args: string[]): boolean;
21
+ /** Rebuild an arg list with `--scope <token>` — filling an empty `--scope`, replacing an existing value, or
22
+ prepending the flag if absent. Preserves every other flag (e.g. `--rewrite`). */
23
+ export declare function withScopeValue(args: string[], token: string): string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "document360-writer",
3
- "version": "0.5.71",
3
+ "version": "0.5.73",
4
4
  "description": "Standalone documentation agent CLI. Reads your code, writes your docs. Specialized for Document360 publishing.",
5
5
  "type": "module",
6
6
  "bin": {