document360-writer 0.4.90 → 0.4.92

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,11 +1,13 @@
1
1
  import type { SlashCommandResult } from './index.js';
2
2
  export declare const SELF_UPDATE_PKG = "document360-writer";
3
3
  export declare const SELF_UPDATE_HINT = "npm i -g document360-writer@latest";
4
- /** Run the global install. Best-effort: resolves {ok,output}, never throws. We need a shell (to resolve
5
- `npm`/`npm.cmd` cross-platform), but `spawn(file, argsArray, { shell:true })` triggers Node's DEP0190
6
- deprecation warning which leaked into the clean TUI (dogfood, s-197). Passing the whole command as a
7
- STRING with `shell:true` avoids DEP0190 entirely; the only interpolated value is a fixed package name,
8
- so there's no injection surface. */
4
+ /** Run the global install. Best-effort: resolves {ok,output}, never throws.
5
+ - shell:true (as a STRING command, not an args array) resolves `npm`/`npm.cmd` cross-platform without
6
+ tripping Node's DEP0190 (dogfood s-197); the only interpolated value is a fixed package name.
7
+ - detached + unref: `npm i -g` rewrites the global command shims (delete-then-recreate); if the app is
8
+ exited mid-install the install must still COMPLETE so the `d360-writer` shim is never left missing
9
+ (dogfood s-201: a relaunch during the rewrite window hit "command not recognized"). Detaching lets it
10
+ finish independently of the parent. windowsHide keeps the spawned shell from flashing a console. */
9
11
  export declare function runSelfUpdate(): Promise<{
10
12
  ok: boolean;
11
13
  output: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "document360-writer",
3
- "version": "0.4.90",
3
+ "version": "0.4.92",
4
4
  "description": "Standalone documentation agent CLI. Reads your code, writes your docs. Specialized for Document360 publishing.",
5
5
  "type": "module",
6
6
  "bin": {