document360-writer 0.4.79 → 0.4.81
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 +81 -81
- package/dist/lib/authPreflight.d.ts +14 -0
- package/package.json +2 -2
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type PreflightVerdict = {
|
|
2
|
+
ok: true;
|
|
3
|
+
} | {
|
|
4
|
+
ok: false;
|
|
5
|
+
reason: string;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Verify the signed-in Document360 session can actually act on the active profile's project. Catches the
|
|
9
|
+
* three states that otherwise fail mid-run: not signed in, an unrefreshable expired session, and a
|
|
10
|
+
* project mismatch (the token is scoped to a different project than the profile pins — the exact
|
|
11
|
+
* "token is scoped to a specific project" 403). Returns `{ ok: true }` when nothing is provably wrong
|
|
12
|
+
* (it can't predict every server-side scope, so the engine's 403 re-message remains the safety net).
|
|
13
|
+
*/
|
|
14
|
+
export declare function checkD360Preflight(cwd: string, profileName?: string): PreflightVerdict;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "document360-writer",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.81",
|
|
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.43",
|
|
38
38
|
"ink": "^5.2.1",
|
|
39
39
|
"picocolors": "^1.1.1",
|
|
40
40
|
"react": "^18.3.1",
|