document360-writer 0.5.3 → 0.5.5
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.
- package/dist/cli.js +84 -84
- package/dist/commands/publish.d.ts +4 -0
- package/dist/commands/update.d.ts +6 -4
- package/package.json +2 -2
|
@@ -13,6 +13,10 @@ export declare function publishCandidates(entries: SyncEntryState[]): {
|
|
|
13
13
|
/** Count of files that already exist on Document360 but aren't linked (link candidates), so the /publish
|
|
14
14
|
flows can tell the user why they were left out instead of silently dropping them. */
|
|
15
15
|
export declare function linkCandidateCount(entries: SyncEntryState[]): number;
|
|
16
|
+
/** A one-line post-publish note about relative cross-article links whose target isn't published yet — they
|
|
17
|
+
render as plain text until then (by design) and resolve to live links once the target publishes. Returns
|
|
18
|
+
null when there are none. Reassures the operator that plain-text links aren't broken (dogfood s-205). */
|
|
19
|
+
export declare function crossLinkPendingLine(cwd: string, profileName?: string): string | null;
|
|
16
20
|
/** A row in the grouped /publish picker: "all", a category (publishes all its candidates), or one
|
|
17
21
|
article. `paths` is what gets published when the row is chosen (one for an article, many otherwise). */
|
|
18
22
|
export type PublishRow = {
|
|
@@ -4,10 +4,12 @@ export declare const SELF_UPDATE_HINT = "npm i -g document360-writer@latest";
|
|
|
4
4
|
/** Run the global install. Best-effort: resolves {ok,output}, never throws.
|
|
5
5
|
- shell:true (as a STRING command, not an args array) resolves `npm`/`npm.cmd` cross-platform without
|
|
6
6
|
tripping Node's DEP0190 (dogfood s-197); the only interpolated value is a fixed package name.
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
- Survive the app exiting mid-install (`npm i -g` rewrites the global shims; a missing shim → "command
|
|
8
|
+
not recognized", s-201). On POSIX that needs `detached` + `unref` so the child outlives the parent.
|
|
9
|
+
On WINDOWS we must NOT detach: `detached` there forces a NEW console window (a frozen-looking
|
|
10
|
+
Windows-Terminal tab — dogfood s-211/212), and windowsHide doesn't suppress it. Windows doesn't kill
|
|
11
|
+
child processes when the parent exits anyway, so the install completes regardless. windowsHide keeps
|
|
12
|
+
the hidden shell from flashing. */
|
|
11
13
|
export declare function runSelfUpdate(): Promise<{
|
|
12
14
|
ok: boolean;
|
|
13
15
|
output: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "document360-writer",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.5",
|
|
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.
|
|
37
|
+
"document360-engine": "^0.2.57",
|
|
38
38
|
"ink": "^5.2.1",
|
|
39
39
|
"picocolors": "^1.1.1",
|
|
40
40
|
"react": "^18.3.1",
|