@forumulate/cli 0.19.1 → 0.20.0
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/doctor/org-report.d.ts +1 -1
- package/dist/doctor/org-report.d.ts.map +1 -1
- package/dist/doctor/org-report.js +40 -1
- package/dist/doctor/org-report.js.map +1 -1
- package/dist/help-commands.d.ts +1 -1
- package/dist/help-commands.d.ts.map +1 -1
- package/dist/help-commands.js +2 -0
- package/dist/help-commands.js.map +1 -1
- package/dist/help.d.ts +1 -1
- package/dist/help.d.ts.map +1 -1
- package/dist/help.js +9 -0
- package/dist/help.js.map +1 -1
- package/dist/import/mdx.d.ts +34 -0
- package/dist/import/mdx.d.ts.map +1 -0
- package/dist/import/mdx.js +134 -0
- package/dist/import/mdx.js.map +1 -0
- package/dist/plan/command.d.ts +6 -0
- package/dist/plan/command.d.ts.map +1 -1
- package/dist/plan/command.js +17 -2
- package/dist/plan/command.js.map +1 -1
- package/dist/plan/document.d.ts.map +1 -1
- package/dist/plan/document.js +10 -0
- package/dist/plan/document.js.map +1 -1
- package/dist/plan/markdown-dir.d.ts +5 -0
- package/dist/plan/markdown-dir.d.ts.map +1 -1
- package/dist/plan/markdown-dir.js +11 -4
- package/dist/plan/markdown-dir.js.map +1 -1
- package/dist/plan/output.d.ts +8 -0
- package/dist/plan/output.d.ts.map +1 -1
- package/dist/plan/output.js +22 -1
- package/dist/plan/output.js.map +1 -1
- package/dist/plan/posts-files.js +1 -1
- package/dist/plan/posts-files.js.map +1 -1
- package/dist/plan/pull.d.ts +17 -0
- package/dist/plan/pull.d.ts.map +1 -0
- package/dist/plan/pull.js +88 -0
- package/dist/plan/pull.js.map +1 -0
- package/dist/plan/records.d.ts +24 -0
- package/dist/plan/records.d.ts.map +1 -0
- package/dist/plan/records.js +34 -0
- package/dist/plan/records.js.map +1 -0
- package/dist/plan/secrets.d.ts +4 -0
- package/dist/plan/secrets.d.ts.map +1 -0
- package/dist/plan/secrets.js +69 -0
- package/dist/plan/secrets.js.map +1 -0
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +21 -0
- package/dist/run.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { Check } from '../conformance';
|
|
2
2
|
import type { Http } from '../api/http';
|
|
3
|
-
export declare function orgReportChecks(http: Http, org: string): Promise<Check[]>;
|
|
3
|
+
export declare function orgReportChecks(http: Http, org: string, fetchImpl?: typeof fetch): Promise<Check[]>;
|
|
4
4
|
//# sourceMappingURL=org-report.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"org-report.d.ts","sourceRoot":"","sources":["../../src/doctor/org-report.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAgCxC,wBAAsB,eAAe,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"org-report.d.ts","sourceRoot":"","sources":["../../src/doctor/org-report.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAgCxC,wBAAsB,eAAe,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,SAAS,GAAE,OAAO,KAAa,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC,CA0DhH"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.orgReportChecks = orgReportChecks;
|
|
4
4
|
const probe_1 = require("./probe");
|
|
5
|
-
async function orgReportChecks(http, org) {
|
|
5
|
+
async function orgReportChecks(http, org, fetchImpl = fetch) {
|
|
6
6
|
const base = `/orgs/${encodeURIComponent(org)}`;
|
|
7
7
|
const out = [];
|
|
8
8
|
try {
|
|
@@ -32,6 +32,45 @@ async function orgReportChecks(http, org) {
|
|
|
32
32
|
const err = e;
|
|
33
33
|
out.push((0, probe_1.check)('reader-auth.warnings', 'reader sign-in has no warnings', 'skip', `Could not read the reader sign-in (${err.status ?? 'error'}): it needs a token with org.manage_settings.`));
|
|
34
34
|
}
|
|
35
|
+
out.push(...(await redirectChecks(http, base, fetchImpl)));
|
|
35
36
|
return out;
|
|
36
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* Each exact redirect rule, followed from a space's live address to its end: a rule
|
|
40
|
+
* can be right when written and dead after the page it names moves. Wildcards have no
|
|
41
|
+
* one URL to follow, and a space with no live address of its own has nothing to fetch.
|
|
42
|
+
*/
|
|
43
|
+
async function redirectChecks(http, base, fetchImpl) {
|
|
44
|
+
const id = 'redirects.targets';
|
|
45
|
+
const title = 'redirect rules end on a page';
|
|
46
|
+
const get = async (path) => (await http.send({ method: 'GET', path })).data;
|
|
47
|
+
try {
|
|
48
|
+
const { spaces } = await get(`${base}/spaces?limit=200`);
|
|
49
|
+
const dead = [];
|
|
50
|
+
let followed = 0;
|
|
51
|
+
for (const s of spaces ?? []) {
|
|
52
|
+
const { redirects } = await get(`${base}/spaces/${s.id}/redirects`);
|
|
53
|
+
const rules = (redirects ?? []).filter((r) => !r.auto && r.type !== 'rewrite' && !r.from.endsWith('*'));
|
|
54
|
+
if (!rules.length)
|
|
55
|
+
continue;
|
|
56
|
+
const { domains } = await get(`${base}/spaces/${s.id}/domains`);
|
|
57
|
+
const live = (domains ?? []).find((d) => d.active && !d.redirectTo);
|
|
58
|
+
if (!live)
|
|
59
|
+
continue;
|
|
60
|
+
for (const r of rules.slice(0, 200 - followed)) {
|
|
61
|
+
followed += 1;
|
|
62
|
+
const url = `https://${live.hostname}${(live.basePath ?? '').replace(/\/+$/, '')}${r.from}`;
|
|
63
|
+
const res = await fetchImpl(url, { redirect: 'follow', signal: AbortSignal.timeout(15_000) }).catch(() => null);
|
|
64
|
+
if (res?.status !== 200)
|
|
65
|
+
dead.push(`${url} -> ${res ? `${res.status} at ${res.url}` : 'no answer'}`);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
if (dead.length)
|
|
69
|
+
return [(0, probe_1.check)(id, title, 'fail', dead.join('\n'), 'A redirect that ends on anything but a 200 strands the address it was there to keep.')];
|
|
70
|
+
return [followed ? (0, probe_1.check)(id, title, 'pass', `Followed ${followed} rule(s) to a 200.`) : (0, probe_1.check)(id, title, 'skip', 'No exact rule on a space with a live address.')];
|
|
71
|
+
}
|
|
72
|
+
catch (e) {
|
|
73
|
+
return [(0, probe_1.check)(id, title, 'skip', `Could not read the redirects (${e.status ?? 'error'}).`)];
|
|
74
|
+
}
|
|
75
|
+
}
|
|
37
76
|
//# sourceMappingURL=org-report.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"org-report.js","sourceRoot":"","sources":["../../src/doctor/org-report.ts"],"names":[],"mappings":";;AAiCA,
|
|
1
|
+
{"version":3,"file":"org-report.js","sourceRoot":"","sources":["../../src/doctor/org-report.ts"],"names":[],"mappings":";;AAiCA,0CA0DC;AAzFD,mCAAgC;AA+BzB,KAAK,UAAU,eAAe,CAAC,IAAU,EAAE,GAAW,EAAE,YAA0B,KAAK;IAC5F,MAAM,IAAI,GAAG,SAAS,kBAAkB,CAAC,GAAG,CAAC,EAAE,CAAC;IAChD,MAAM,GAAG,GAAY,EAAE,CAAC;IAExB,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,qBAAqB,EAAE,CAAC,CAAC,CAAC,IAErF,CAAC;QACF,KAAK,MAAM,CAAC,IAAI,IAAI,CAAC,MAAM,IAAI,EAAE,EAAE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AAkC,CAAyB,CAAC,MAAM,IAAI,OAAO,IAAI,CAAC,CAAC,CAAC;IACvH,CAAC;AACH,CAAC"}
|
package/dist/help-commands.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const PUBLISH_HELP = "forumulate publish \u2014 publish a folder of Markdown into a space\n\nUsage:\n forumulate publish <folder> --org <id|slug> --space <id|slug> [flags]\n\n (org: and space: may come from forumulate.yaml, FORUMULATE_ORG / FORUMULATE_SPACE\n or `forumulate config set` instead of the flags.)\n\n One folder per collection, front matter for titles, slugs, order and SEO, assets\n uploaded once by content hash. A re-run changes only what changed, then reads the\n space back and fails if anything did not land.\n\nFlags:\n --dry-run print the plan; write nothing (no token needed for a public space)\n --prune move pages/posts/collections with no file to the trash\n --only a,b just these slugs, files, folders, or manifest parts\n (site, theme, settings, openapi, monitors)\n --force re-send every page even if it looks unchanged, AND overwrite pages\n edited in the studio since the last publish\n --purge page|space|none\n what to drop from the cache when done (default page): page = every\n page this run changed; space = the whole space (a title in the\n navigation changed); none = leave the CDN alone. Reported per CDN.\n --no-verify skip the read-back --pace <ms> gap between writes (250)\n --manifest <file> a forumulate.yaml somewhere else\n --diff print the changed paragraphs and fields of each update\n --strict fail (exit 1, nothing written) on a relative link that names no page;\n without it each one is printed as `warn <file>:<line> link to nothing`\n --no-report do not record this run (publish.completed is not sent)\n --json one JSON summary: {space, created, updated, unchanged, trashed,\n purged, verify, diffUrl, runId, lines, errors}\n --out <file> write that output to a file\n --preview <name> publish nothing: send the pages this run would add or change (and\n with --prune, remove) to a preview named <name> (pr-123) and print\n its link \u2014 the space as the change would publish it, on its own\n addresses, for 7 days (previews.ttl_days). Same name again: same\n link, renewed. --json adds previews[{urls, summary, comment}].\n --preview-ttl <d> a shorter life for the preview link, in days\n --comment with --preview in CI: post the link and diff table on the pull\n request (GitHub, Gitea, GitLab, Bitbucket; GITHUB_TOKEN /\n GITEA_TOKEN / GITLAB_TOKEN / BITBUCKET_TOKEN), editing it on re-runs\n\nLinks: a relative link to a page in ANOTHER space of this folder (../guides/x.md, or\n./x when only one other space has x) is rewritten to that page's address on the host\nboth spaces are published on; one that names no page anywhere is reported, here and\nby the importer (unresolvedLinks).\n\nStudio edits: a page edited in the studio (or through the API) since this folder was\nlast published is not overwritten. The run stops before writing and prints\n CONFLICT <slug> edited in studio by <name> at <time>\nPull the change into the file, or re-run with --force to overwrite it.\n\nforumulate.yaml keys:\n org, space where to publish (one space), or\n spaces: [{path, space, create: {type, name, visibility}, rootCollection,\n theme, settings, tags, openapi: [{file|url, collection, ...}], monitors,\n redirects: [{from, to, status?, type?}] or a CSV file name,\n redirects are merged into the space's table, never replaced\n about: {...} | about.yaml (an ABOUT space's parts)}]\n site: {...} the site configuration (applied with PATCH semantics)\n theme: {...} the space theme\n Guide: https://forumulate.com/guides/content-as-code\n\nOlder forms (deprecated in 0.11.0; they still run and print a notice on stderr):\n publish <orgId> <spaceId> <folder> \u2192 publish <folder> --org \u2026 --space \u2026\n publish <orgId> <spaceId> <pageId> \u2192 forumulate items publish <pageId> --space \u2026\n\nExamples:\n forumulate publish docs --org acme --space docs --dry-run\n forumulate publish docs --org acme --space docs --purge space --json --out run.json\n forumulate publish docs --org acme --space docs --preview pr-123 --comment\n\nOutput (every command):\n --json the result as JSON on stdout; progress and warnings go to stderr\n --out <file> write stdout to a file instead (never truncated, exit 1 if the write fails)\n\nExit status:\n 0 ok 1 failed (verification mismatch, doctor FAIL)\n 2 usage 3 auth (no token, 401, token not allowed)\n 4 not found 5 conflict (409/412, edited in the studio since your last publish)\n 124 --wait timed out (the job keeps running; with --wait, a failed job is 1)";
|
|
2
2
|
export declare const SYNC_HELP = "forumulate sync \u2014 the same folder publish, plan by default\n\nUsage:\n forumulate sync <folder> [--apply] [--prune] [--diff] [--org \u2026] [--space \u2026]\n\n Without --apply it plans and writes nothing; with --apply it is `publish`.\n Takes every publish flag (--only, --force, --purge, --no-verify, --pace,\n --manifest, --json). See `forumulate publish --help` for them and the\n forumulate.yaml keys.\n\nOutput (every command):\n --json the result as JSON on stdout; progress and warnings go to stderr\n --out <file> write stdout to a file instead (never truncated, exit 1 if the write fails)\n\nExit status:\n 0 ok 1 failed (verification mismatch, doctor FAIL)\n 2 usage 3 auth (no token, 401, token not allowed)\n 4 not found 5 conflict (409/412, edited in the studio since your last publish)\n 124 --wait timed out (the job keeps running; with --wait, a failed job is 1)";
|
|
3
|
-
export declare const PLAN_HELP = "forumulate plan / forumulate apply \u2014 one document for a whole site\n\nUsage:\n forumulate plan [forumulate.yaml] [--org <id|slug>] [--create-org] [--diff] [--check] [--prune] [--verbose]\n forumulate apply [forumulate.yaml] [--org <id|slug>] [--create-org] [--prune] [--batch <n>] [--secrets-file <path>] [--verbose]\n\n Reads a version-2 forumulate.yaml and the Markdown folders it names, and sends it to\n PUT /orgs/{org}/manifest: plan is the dry run (the diff, nothing written), apply\n writes it. Every unit goes through the endpoint that owns it, is read back after the\n write, and is recorded, so a re-apply of the same files writes nothing and a page\n edited in the studio since the last apply shows as drift.\n\nFlags:\n --org <o> the organization (else `org:` in the file, else FORUMULATE_ORG)\n --create-org the org may not exist yet (same as `orgName:` in the file): plan prints\n `+ create org <slug>` and plans the rest against an empty org, writing nothing;\n apply creates it first (`orgs ensure`), then applies\n --diff plan: print each changed field, from -> to\n --check plan: exit 1 when anything would change (drift detection in CI)\n --prune also delete what this manifest created earlier and no longer\n declares \u2014 only for the kinds the file declares (pages go to the trash)\n --batch <n> apply: changed pages per request (default 20; the edge cuts a request at 30 s)\n --allow-unset-env apply: publish a page whose ${NAME} is unset as written (default: refuse)\n --secrets-file <p> apply: write every shown-once value (executor key, webhook secret) and every\n heartbeat's pingUrl (monitors/<space>/<name>, on every apply) to <p> as JSON,\n mode 0600, merged over what it holds (an existing file must already be 0600).\n Without it they are redacted in the output, human and --json alike: keep the file\n --verbose list unchanged steps and what exists but the file does not mention\n (left alone; --json always carries it as `extras`)\n --json the API's answer (plan) or {ok, batches} (apply)\n\n ${NAME} is read from the environment anywhere outside pages/posts: a whole value, or\n inside a string (url: ${API_URL}/health); $${NAME} is the literal text. In content and\n code keys (body, customJs, \u2026) only a whole value. An unset name stops the run.\n The organization must exist, unless the file says `orgName:` or you pass --create-org;\n `forumulate orgs ensure <slug>` also creates it (idempotent).\n A domain whose `state` waits on a verification file not served yet is held (onUnverified: hold,\n the default): plan and apply print `waiting: \u2026` with what each proof method saw, every other\n unit applies, and apply still exits 0 \u2014 re-apply once the file is served.\n apply puts each heartbeat monitor's pingUrl in --secrets-file; `forumulate heartbeat ping-url` re-reads it.\n\nforumulate.yaml (version: 2):\n version: 2\n org: acme\n spaces: [{slug, name, type, visibility, settings, theme, redirects, collections,\n locales: [{code, label}], seo: {...}, translations: {<code>: {name,\n description, seoTitle, seoDescription}}, preset, piecePreset, frontDoor,\n contactForm: {...} | file.yaml (CONTACT), about: {...} | file.yaml (ABOUT)}]\n pages: [{dir: content/docs, space: docs, collection?, locales?, ignore?: [globs],\n env?: true (substitute ${NAME} in bodies)} a Markdown folder:\n page.md + page.es.md or es/page.md twins; front matter title, slug,\n seoTitle, seoDescription, canonicalUrl, sections, collection, order\n (or a 01- prefix), draft; sub-folders are collections\n | {space, slug, title, body, ...}] or one page inline\n sites: [{slug, name, spaces: [slugs], config: {...}, configMode: merge|replace}]\n domains, reader_auth, consent, connectors, executor, webhooks, tokens, status_monitors,\n brand, prune \u2014 as PUT /orgs/{org}/manifest documents them.\n Guide: https://forumulate.com/guides/forumulate-yaml-apply\n\nExamples:\n forumulate plan --diff\n forumulate plan --check # CI: fail when the site drifted from the repository\n forumulate apply --prune\n\nOutput (every command):\n --json the result as JSON on stdout; progress and warnings go to stderr\n --out <file> write stdout to a file instead (never truncated, exit 1 if the write fails)\n\nExit status:\n 0 ok 1 failed (verification mismatch, doctor FAIL)\n 2 usage 3 auth (no token, 401, token not allowed)\n 4 not found 5 conflict (409/412, edited in the studio since your last publish)\n 124 --wait timed out (the job keeps running; with --wait, a failed job is 1)";
|
|
3
|
+
export declare const PLAN_HELP = "forumulate plan / forumulate apply \u2014 one document for a whole site\n\nUsage:\n forumulate plan [forumulate.yaml] [--org <id|slug>] [--create-org] [--diff] [--check] [--prune] [--verbose]\n forumulate apply [forumulate.yaml] [--org <id|slug>] [--create-org] [--prune] [--batch <n>] [--secrets-file <path>] [--verbose]\n\n Reads a version-2 forumulate.yaml and the Markdown folders it names, and sends it to\n PUT /orgs/{org}/manifest: plan is the dry run (the diff, nothing written), apply\n writes it. Every unit goes through the endpoint that owns it, is read back after the\n write, and is recorded, so a re-apply of the same files writes nothing and a page\n edited in the studio since the last apply shows as drift.\n\nFlags:\n --org <o> the organization (else `org:` in the file, else FORUMULATE_ORG)\n --create-org the org may not exist yet (same as `orgName:` in the file): plan prints\n `+ create org <slug>` and plans the rest against an empty org, writing nothing;\n apply creates it first (`orgs ensure`), then applies\n --diff plan: print each changed field, from -> to\n --check plan: exit 1 when anything would change (drift detection in CI)\n --prune also delete what this manifest created earlier and no longer\n declares \u2014 only for the kinds the file declares (pages go to the trash)\n --batch <n> apply: changed pages per request (default 20; the edge cuts a request at 30 s)\n --env-file <p> read ${NAME}s from a dotenv file; a variable already set in the shell wins\n --show-secrets leave declared secrets in the output; refused unless stdout is a terminal\n --allow-unset-env apply: publish a page whose ${NAME} is unset as written (default: refuse)\n --secrets-file <p> apply: write every shown-once value (executor key, webhook secret) and every\n heartbeat's pingUrl (monitors/<space>/<name>, on every apply) to <p> as JSON,\n mode 0600, merged over what it holds (an existing file must already be 0600).\n Without it they are redacted in the output, human and --json alike: keep the file\n --verbose list unchanged steps and what exists but the file does not mention\n (left alone; --json always carries it as `extras`)\n --json the API's answer (plan) or {ok, batches} (apply)\n\n ${NAME} is read from the environment anywhere outside pages/posts: a whole value, or\n inside a string (url: ${API_URL}/health); $${NAME} is the literal text. In content and\n code keys (body, customJs, \u2026) only a whole value. An unset name stops the run.\n The organization must exist, unless the file says `orgName:` or you pass --create-org;\n `forumulate orgs ensure <slug>` also creates it (idempotent).\n A domain whose `state` waits on a verification file not served yet is held (onUnverified: hold,\n the default): plan and apply print `waiting: \u2026` with what each proof method saw, every other\n unit applies, and apply still exits 0 \u2014 re-apply once the file is served.\n apply puts each heartbeat monitor's pingUrl in --secrets-file; `forumulate heartbeat ping-url` re-reads it.\n\nforumulate.yaml (version: 2):\n version: 2\n org: acme\n spaces: [{slug, name, type, visibility, settings, theme, redirects, collections,\n locales: [{code, label}], seo: {...}, translations: {<code>: {name,\n description, seoTitle, seoDescription}}, preset, piecePreset, frontDoor,\n contactForm: {...} | file.yaml (CONTACT), about: {...} | file.yaml (ABOUT)}]\n pages: [{dir: content/docs, space: docs, collection?, locales?, ignore?: [globs],\n env?: true (substitute ${NAME} in bodies)} a Markdown folder:\n page.md + page.es.md or es/page.md twins; front matter title, slug,\n seoTitle, seoDescription, canonicalUrl, sections, collection, order\n (or a 01- prefix), draft; sub-folders are collections\n | {space, slug, title, body, ...}] or one page inline\n sites: [{slug, name, spaces: [slugs], config: {...}, configMode: merge|replace}]\n domains, reader_auth, consent, connectors, executor, webhooks, tokens, status_monitors,\n brand, prune \u2014 as PUT /orgs/{org}/manifest documents them.\n Guide: https://forumulate.com/guides/forumulate-yaml-apply\n\nExamples:\n forumulate plan --diff\n forumulate plan --check # CI: fail when the site drifted from the repository\n forumulate apply --prune\n\nOutput (every command):\n --json the result as JSON on stdout; progress and warnings go to stderr\n --out <file> write stdout to a file instead (never truncated, exit 1 if the write fails)\n\nExit status:\n 0 ok 1 failed (verification mismatch, doctor FAIL)\n 2 usage 3 auth (no token, 401, token not allowed)\n 4 not found 5 conflict (409/412, edited in the studio since your last publish)\n 124 --wait timed out (the job keeps running; with --wait, a failed job is 1)";
|
|
4
4
|
export declare const DEV_HELP = "forumulate dev \u2014 preview a folder of Markdown locally\n\nUsage:\n forumulate dev <folder> --org <id|slug> --space <id|slug> [--port 4321] [--site <url>]\n\n Renders with your space's own renderer and reloads on save. Nothing is written\n to the space.\n\nExit status:\n 0 ok 1 failed (verification mismatch, doctor FAIL)\n 2 usage 3 auth (no token, 401, token not allowed)\n 4 not found 5 conflict (409/412, edited in the studio since your last publish)\n 124 --wait timed out (the job keeps running; with --wait, a failed job is 1)";
|
|
5
5
|
export declare const LOGIN_HELP = "forumulate login \u2014 store a token for this API\n\nUsage:\n forumulate login [--token <pat>] (asks for it, hidden, when not given)\n\n The token is checked against the API first, then stored in\n ~/.config/forumulate/credentials.json (mode 0600), keyed by API base, so a\n staging token is never sent to production. On every later command a\n --token beats FORUMULATE_TOKEN, which beats the stored token.\n Mint a token at https://forumulate.com/account/tokens\n\nExit status:\n 0 ok 1 failed (verification mismatch, doctor FAIL)\n 2 usage 3 auth (no token, 401, token not allowed)\n 4 not found 5 conflict (409/412, edited in the studio since your last publish)\n 124 --wait timed out (the job keeps running; with --wait, a failed job is 1)";
|
|
6
6
|
export declare const LOGOUT_HELP = "forumulate logout \u2014 forget the stored token for this API\n\nUsage:\n forumulate logout\n\n Warns when FORUMULATE_TOKEN is still set, because it still wins.\n\nExit status:\n 0 ok 1 failed (verification mismatch, doctor FAIL)\n 2 usage 3 auth (no token, 401, token not allowed)\n 4 not found 5 conflict (409/412, edited in the studio since your last publish)\n 124 --wait timed out (the job keeps running; with --wait, a failed job is 1)";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"help-commands.d.ts","sourceRoot":"","sources":["../src/help-commands.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,YAAY,w3JA0EN,CAAC;AAEpB,eAAO,MAAM,SAAS,u6BAYH,CAAC;AAEpB,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"help-commands.d.ts","sourceRoot":"","sources":["../src/help-commands.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,YAAY,w3JA0EN,CAAC;AAEpB,eAAO,MAAM,SAAS,u6BAYH,CAAC;AAEpB,eAAO,MAAM,SAAS,w/JAoEH,CAAC;AAEpB,eAAO,MAAM,QAAQ,4jBAQF,CAAC;AAEpB,eAAO,MAAM,UAAU,mxBAWJ,CAAC;AAEpB,eAAO,MAAM,WAAW,2dAOL,CAAC;AAEpB,eAAO,MAAM,aAAa,ueAMP,CAAC;AAEpB,eAAO,MAAM,gBAAgB,0hBAQV,CAAC;AAEpB,eAAO,MAAM,YAAY,i5BAYN,CAAC;AAEpB,eAAO,MAAM,WAAW,o7BAYL,CAAC;AAEpB,eAAO,MAAM,iBAAiB,gxCAkBX,CAAC;AAEpB,iFAAiF;AACjF,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAqBzD,CAAC"}
|
package/dist/help-commands.js
CHANGED
|
@@ -132,6 +132,8 @@ Flags:
|
|
|
132
132
|
--prune also delete what this manifest created earlier and no longer
|
|
133
133
|
declares — only for the kinds the file declares (pages go to the trash)
|
|
134
134
|
--batch <n> apply: changed pages per request (default 20; the edge cuts a request at 30 s)
|
|
135
|
+
--env-file <p> read \${NAME}s from a dotenv file; a variable already set in the shell wins
|
|
136
|
+
--show-secrets leave declared secrets in the output; refused unless stdout is a terminal
|
|
135
137
|
--allow-unset-env apply: publish a page whose \${NAME} is unset as written (default: refuse)
|
|
136
138
|
--secrets-file <p> apply: write every shown-once value (executor key, webhook secret) and every
|
|
137
139
|
heartbeat's pingUrl (monitors/<space>/<name>, on every apply) to <p> as JSON,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"help-commands.js","sourceRoot":"","sources":["../src/help-commands.ts"],"names":[],"mappings":";;;AAAA,2DAAqD;AACrD,yCAA2C;AAC3C,8CAA+C;AAC/C,6CAA+C;AAC/C,qCAAuC;AACvC,mDAA6C;AAC7C,6EAA6E;AAC7E,6CAAiE;AAEjE;;;;;;;;;GASG;AACH,MAAM,MAAM,GAAG;;8FAE+E,CAAC;AAElF,QAAA,YAAY,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwE1B,MAAM;;EA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;;EAkB/B,4BAAe,EAAE,CAAC;AAEpB,iFAAiF;AACpE,QAAA,YAAY,GAAqC;IAC5D,OAAO,EAAE,oBAAY;IACrB,IAAI,EAAE,iBAAS;IACf,GAAG,EAAE,gBAAQ;IACb,MAAM,EAAE,qBAAW;IACnB,QAAQ,EAAE,wBAAa;IACvB,KAAK,EAAE,kBAAU;IACjB,MAAM,EAAE,mBAAW;IACnB,MAAM,EAAE,oBAAW;IACnB,IAAI,EAAE,oBAAW;IACjB,KAAK,EAAE,0BAAU;IACjB,QAAQ,EAAE,qBAAa;IACvB,WAAW,EAAE,wBAAgB;IAC7B,OAAO,EAAE,oBAAY;IACrB,MAAM,EAAE,mBAAW;IACnB,YAAY,EAAE,yBAAiB;IAC/B,IAAI,EAAE,yBAAiB;IACvB,KAAK,EAAE,oBAAgB;IACvB,IAAI,EAAE,iBAAS;IACf,KAAK,EAAE,iBAAS;IAChB,SAAS,EAAE,kCAAc;CAC1B,CAAC"}
|
package/dist/help.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/** `forumulate help`. The resource groups print their own (`forumulate spaces --help`). */
|
|
2
|
-
export declare const HELP = "forumulate \u2014 Forumulate command-line interface\n\nUsage:\n forumulate <command> [args]\n\nCommands:\n login [--token <pat>] Store a token for this API, so every other\n command stops needing FORUMULATE_TOKEN in\n the environment\n logout Forget the stored token\n whoami [--json] Who you are, and WHICH token: its source (--token,\n FORUMULATE_TOKEN or credentials.json), id, name,\n last 4, expiry, narrowing and the API base\n auth status [--json] The same report, for scripts\n config set|get|unset|list Defaults: org, space, library, api-version\n (`forumulate config set org acme`)\n\nEvery API operation:\n api list [--tag t] [--search w] Discover operations and their summaries\n [--refresh] ...from the live API's spec, not the bundled one\n api describe <operationId> Parameters and body schema, as flags\n api <operationId> [args] [flags] Call it: --<param> value, --data @f.json,\n api <METHOD> <path> [flags] --field a.b=v, --paginate, --json\n\nResources (each: <group> --help lists its verbs and the operation each calls):\n Org: orgs | members | invites | groups | roles | service-accounts (bots)\n tokens (pats) | keys | integration-tokens (int-tokens)\n webhooks | extensions | audit\n Spaces: spaces | snapshots | shape | domains | assets | space-types (types)\n Docs: items (pages) | docs | collections | versions | change-requests (crs)\n openapi | sdks | github (git)\n Content: blog | forum | changelog | roadmap | status | events | course\n careers | forms | about (blog/forum/changelog/status: translations \u2026)\n CMS: libraries | entries | media | releases | environments (envs)\n Site: theme | sites | reader\n Jobs: jobs | backups | imports | manifest (starters take --wait [--timeout s])\n search <query...> [--org] e.g. spaces create Docs --slug docs --type DOCS\n items create --space docs --file a.md --publish\n docs schedule set <pageId> <when> --space docs\n webhooks deliveries <id>; webhooks replay <id> <d>\n --out <file> where a file answer goes (SDK archive, PDF, CSV export)\n cache purge --space <s> [--page p] Drop cached copies (web tier + every CDN); deletes\n nothing\n completion bash|zsh|fish Shell completion script\n\nOlder forms, unchanged:\n orgs List your organizations\n spaces <orgId> List spaces in an org\n items <orgId> <spaceId> List what is in a space, with where each\n piece's content lives\n search <orgId> <query...> Unified search across docs/forum/blog\n dev <folder> Preview a folder of Markdown locally, rendered\n by your space's own renderer; reloads on save.\n --org <id> --space <id> [--port 4321] [--site <your docs URL>]\n publish <folder> --org <o> --space <s>\n Publish a folder of Markdown: one folder per\n collection, front matter, assets, order,\n and a forumulate.yaml manifest for space,\n site, theme, OpenAPI and monitors. Re-runs\n change only what changed, then read back.\n --org <id|slug> --space <id|slug> (or org:/space: in the manifest)\n --dry-run print the plan, write nothing (no token needed for a\n public space)\n --prune remove pages/posts/collections with no file (to the trash)\n --only a,b just these slugs, files, folders, or manifest parts\n (site, theme, settings, openapi, monitors)\n --force re-send every page even if it looks unchanged\n --no-verify skip the read-back --pace <ms> gap between writes\n --manifest <file> a manifest somewhere else\n --diff print the changed paragraphs and fields of each update\n --purge page|space|none what to drop from the cache (default page),\n reported per CDN\n --json one summary: created, updated, unchanged, trashed, purged,\n verify, diffUrl (the run is recorded; publish.completed fires)\n Pages edited in the studio since the last publish are not overwritten\n without --force. Full reference: forumulate publish --help\n sync <folder> Content as code: the same folder publish,\n PLAN BY DEFAULT. Posts (blog), pages\n (docs, custom, legal), FAQ questions,\n changelog releases and blog categories,\n matched by slug; images uploaded once by\n content hash; README, LICENSE, _drafts/,\n dotfiles skipped. Guide:\n https://forumulate.com/guides/content-as-code\n --apply write the plan (then read it back)\n --prune also remove what has no file (to the trash)\n --diff print the changed paragraphs and fields of each update\n --org, --space, --only, --force, --no-verify, --pace, --manifest, --json\n as for publish\n plan [forumulate.yaml] The whole site as one document (version: 2):\n spaces and their SEO, languages, front doors,\n contact form and About parts, Markdown pages\n with locale twins, redirects, sites. Prints\n the diff; writes nothing. --check exits 1\n when it is not empty. Full reference:\n forumulate plan --help\n apply [forumulate.yaml] Carry that plan out, idempotently, every\n write read back; --prune also removes what\n the manifest wrote and no longer declares\n --secrets-file <p> keeps the shown-once keys (0600);\n the output redacts them\n heartbeat ping <monitor> [--fail] Report a job's pass to a heartbeat monitor\n (--message <why> with --fail); forumulate heartbeat --help\n heartbeat ping-url <monitor> Print that monitor's ping URL (it holds its secret)\n orgs ensure <slug> [--name <n>] The organization, created only when missing; safe to\n [--external-ref <ref>] re-run (run it before the first plan/apply)\n domains setup <host> --space <s> What a domain still waits for: mode, pendingReason,\n message; then domains verify / activate <host>\n check links [folder] Broken internal links, #anchors, pictures and\n (--external) outside links in a folder, before\n publishing; exit 1 when any is broken\n --space <s> [--org <o>] the same report for a published space\n --allow-redirect <hosts> --ignore <text> --json\n publish <folder> --preview <name> Send the change to a preview link instead of\n publishing it (--comment posts it on the PR)\n domains <orgId> <spaceId> List this space's domains and their state\n domains verify <orgId> <spaceId> <hostname>\n Re-run verification and say what is missing\n snapshot <orgId> <spaceId> <label> Create a space version snapshot\n content types --library <id|slug> TypeScript for a content library's model:\n collections, globals, the block union\n [--org <id|slug>] [--out forumulate.d.ts] [--preview] [--schema <file>]\n [--check] fail (exit 1) when the file is out of date, write nothing\n content pull --library <id|slug> Write the model to forumulate.content.json\n [--format json|payload] [--out <file>] (payload: forumulate.payload.ts)\n content push [file] Show the diff against the library, then\n apply it as a new model version\n [--library \u2026] [--dry-run] [--yes] [--force]\n [--rename type.field=new | block:hero.field=new | library:field=new]\n [--rename-type old=new] [--rename-block old=new]\n import <payload|contentful|sanity|strapi|wordpress> <export path>\n Bring another CMS's content into a library:\n model, media, entries, references (always\n shows a dry run first)\n Re-running updates entries a\n previous import made. strapi takes a\n folder or an unencrypted export .tar.gz\n --library <id|slug> [--org \u2026] [--dry-run] [--yes]\n [--config payload.config.ts] (payload) the config that becomes the model\n [--publish source|all|none] what to publish (default: what was live)\n [--allow-model-removals] [--pace <ms>] [--base-url <url>] (strapi uploads)\n translations (alias i18n) Every translation capability, one vocabulary\n locales list|add|relabel|remove|set a space's (--space) or library's\n (--library) languages; set es=Espa\u00F1ol fr [--prune] is exact\n status each piece \u00D7 language: missing/draft/published/outdated\n [--locale es,fr] [--fail-on missing,outdated] (exit 1)\n pull one Markdown file per piece per language \u2192 [--out translations]\n [--locale \u2026] [--only slug,\u2026] [--include-missing] (stubs)\n push [dir] diff the files against the API, write what changed [--dry-run]\n auto machine-translate with YOUR DeepL/AI key --locale es\n [--state missing,outdated] [--only \u2026] [--force] [--publish]\n [--library \u2026 --entry id,\u2026] [--dry-run]\n labels pull|push [file] chrome words (--site <id> | --space \u2026)\n overrides pull|push [file] org UI string overrides [--prune]\n [--format json|xliff] for labels and overrides\n item-locale <itemId> <locale|none> correct a piece's declared language\n remove <pieceId> <locale> one translation (--yes)\n entry <entryId> <locale> a library entry's twin [--fields f.json]\n name <locale> <name\u2026> a space's (or --collection's) name\n switcher get|set <f.json> the org's reader language switcher\n provider status|connect|disconnect your DeepL key (DEEPL_API_KEY)\n conformance <collectionUrl> Run the Content Sync Protocol suite against\n any platform's collection endpoint\n validate [dir] Check forumulate.yaml, front matter and $schema\n files against the published schemas, with\n did-you-mean hints. --json; exit 2 if invalid\n doctor <readerUrl> | --site <s> Check a live site from the outside: health,\n canonical on both addresses, sitemap, cache\n consistency, root redirect, descriptions,\n llms.txt, favicon, consent tag, white-label\n leaks. --json; exit 1 on any FAIL\n help [command] Show this help, or a command's own\n (every command also takes --help)\n\nEnvironment:\n FORUMULATE_TOKEN Personal Access Token (Bearer). Overrides a stored one, so\n CI keeps working exactly as it did; --token overrides it.\n Mint one at\n https://forumulate.com/account/tokens\n FORUMULATE_URL The site (default https://forumulate.com); the API is its\n /api, i.e. https://forumulate.com/api. A value already\n ending in /api is used as-is.\n FORUMULATE_API_URL Exact API base, for a local API with no /api prefix\n (http://localhost:4000). Wins over FORUMULATE_URL.\n FORUMULATE_API is read as the same thing.\n FORUMULATE_ORG, FORUMULATE_SPACE, FORUMULATE_LIBRARY\n Defaults for --org, --space and --library; they beat\n `forumulate config set`, a flag beats both.\n FORUMULATE_API_VERSION\n Forumulate-Version for api/resource commands\n (default: the SDK's current version).\n\nThe SDK (ForumulateClient.fromEnv) and the MCP server (@forumulate/mcp) read\nthe same variables. Guide: https://forumulate.com/guides/api-tokens-and-scopes\n\nEvery FORUMULATE_* variable not listed above is reported (with the one you\nprobably meant) by `forumulate whoami` and on any authentication failure.\n\nFlags:\n --json Emit raw JSON instead of a formatted summary (stdout only;\n progress and warnings go to stderr)\n --out <file> Write stdout to a file (never truncated; non-zero exit if the\n write fails). content/translations use --out for their own file\n --jsonl With --paginate: one JSON row per line, streamed\n --token <pat> The token for this run, on every command. Precedence:\n --token, then FORUMULATE_TOKEN, then credentials.json. On an\n operation with a `token` parameter of its own (registries\n set, github connect, domains acme-challenge) the flag is that\n parameter; set FORUMULATE_TOKEN for the PAT there\n --dry-run (api, resources) print the request instead of sending it\n --dry-run Plan the work and write nothing (publish of a directory)\n --version Print the CLI version\n\nExit status:\n 0 ok 1 failed (verification mismatch, doctor FAIL) 2 usage\n 3 auth (no token, 401, token not allowed) 4 not found\n 5 conflict (409/412, edited in the studio since your last publish)\n";
|
|
2
|
+
export declare const HELP = "forumulate \u2014 Forumulate command-line interface\n\nUsage:\n forumulate <command> [args]\n\nCommands:\n login [--token <pat>] Store a token for this API, so every other\n command stops needing FORUMULATE_TOKEN in\n the environment\n logout Forget the stored token\n whoami [--json] Who you are, and WHICH token: its source (--token,\n FORUMULATE_TOKEN or credentials.json), id, name,\n last 4, expiry, narrowing and the API base\n auth status [--json] The same report, for scripts\n config set|get|unset|list Defaults: org, space, library, api-version\n (`forumulate config set org acme`)\n\nEvery API operation:\n api list [--tag t] [--search w] Discover operations and their summaries\n [--refresh] ...from the live API's spec, not the bundled one\n api describe <operationId> Parameters and body schema, as flags\n api <operationId> [args] [flags] Call it: --<param> value, --data @f.json,\n api <METHOD> <path> [flags] --field a.b=v, --paginate, --json\n\nResources (each: <group> --help lists its verbs and the operation each calls):\n Org: orgs | members | invites | groups | roles | service-accounts (bots)\n tokens (pats) | keys | integration-tokens (int-tokens)\n webhooks | extensions | audit\n Spaces: spaces | snapshots | shape | domains | assets | space-types (types)\n Docs: items (pages) | docs | collections | versions | change-requests (crs)\n openapi | sdks | github (git)\n Content: blog | forum | changelog | roadmap | status | events | course\n careers | forms | about (blog/forum/changelog/status: translations \u2026)\n CMS: libraries | entries | media | releases | environments (envs)\n Site: theme | sites | reader\n Jobs: jobs | backups | imports | manifest (starters take --wait [--timeout s])\n search <query...> [--org] e.g. spaces create Docs --slug docs --type DOCS\n items create --space docs --file a.md --publish\n docs schedule set <pageId> <when> --space docs\n webhooks deliveries <id>; webhooks replay <id> <d>\n --out <file> where a file answer goes (SDK archive, PDF, CSV export)\n cache purge --space <s> [--page p] Drop cached copies (web tier + every CDN); deletes\n nothing\n completion bash|zsh|fish Shell completion script\n\nOlder forms, unchanged:\n orgs List your organizations\n spaces <orgId> List spaces in an org\n items <orgId> <spaceId> List what is in a space, with where each\n piece's content lives\n search <orgId> <query...> Unified search across docs/forum/blog\n dev <folder> Preview a folder of Markdown locally, rendered\n by your space's own renderer; reloads on save.\n --org <id> --space <id> [--port 4321] [--site <your docs URL>]\n publish <folder> --org <o> --space <s>\n Publish a folder of Markdown: one folder per\n collection, front matter, assets, order,\n and a forumulate.yaml manifest for space,\n site, theme, OpenAPI and monitors. Re-runs\n change only what changed, then read back.\n --org <id|slug> --space <id|slug> (or org:/space: in the manifest)\n --dry-run print the plan, write nothing (no token needed for a\n public space)\n --prune remove pages/posts/collections with no file (to the trash)\n --only a,b just these slugs, files, folders, or manifest parts\n (site, theme, settings, openapi, monitors)\n --force re-send every page even if it looks unchanged\n --no-verify skip the read-back --pace <ms> gap between writes\n --manifest <file> a manifest somewhere else\n --diff print the changed paragraphs and fields of each update\n --purge page|space|none what to drop from the cache (default page),\n reported per CDN\n --json one summary: created, updated, unchanged, trashed, purged,\n verify, diffUrl (the run is recorded; publish.completed fires)\n Pages edited in the studio since the last publish are not overwritten\n without --force. Full reference: forumulate publish --help\n sync <folder> Content as code: the same folder publish,\n PLAN BY DEFAULT. Posts (blog), pages\n (docs, custom, legal), FAQ questions,\n changelog releases and blog categories,\n matched by slug; images uploaded once by\n content hash; README, LICENSE, _drafts/,\n dotfiles skipped. Guide:\n https://forumulate.com/guides/content-as-code\n --apply write the plan (then read it back)\n --prune also remove what has no file (to the trash)\n --diff print the changed paragraphs and fields of each update\n --org, --space, --only, --force, --no-verify, --pace, --manifest, --json\n as for publish\n plan [forumulate.yaml] The whole site as one document (version: 2):\n spaces and their SEO, languages, front doors,\n contact form and About parts, Markdown pages\n with locale twins, redirects, sites. Prints\n the diff; writes nothing. --check exits 1\n when it is not empty. Full reference:\n forumulate plan --help\n apply [forumulate.yaml] Carry that plan out, idempotently, every\n write read back; --prune also removes what\n the manifest wrote and no longer declares\n --secrets-file <p> keeps the shown-once keys (0600);\n the output redacts them\n plan and apply: --env-file <p> reads ${NAME}s from a dotenv file (the shell wins);\n declared secrets are masked in all output (--show-secrets on a terminal shows them)\n pull <folder> --space <s> Studio edits back into the folder, as Markdown; the\n next step when plan --check names an edited page\n init --from-site <folder> A first forumulate.yaml from the Markdown a site has\n import mdx <folder> What in these files would publish as literal text,\n with file and line; exit 1 when anything would\n domains records [forumulate.yaml] The DNS records a plan waits for, as data:\n [--json] [--format cloudflare] type, name, value, proxied: false\n heartbeat ping <monitor> [--fail] Report a job's pass to a heartbeat monitor\n (--message <why> with --fail); forumulate heartbeat --help\n heartbeat ping-url <monitor> Print that monitor's ping URL (it holds its secret)\n orgs ensure <slug> [--name <n>] The organization, created only when missing; safe to\n [--external-ref <ref>] re-run (run it before the first plan/apply)\n domains setup <host> --space <s> What a domain still waits for: mode, pendingReason,\n message; then domains verify / activate <host>\n check links [folder] Broken internal links, #anchors, pictures and\n (--external) outside links in a folder, before\n publishing; exit 1 when any is broken\n --space <s> [--org <o>] the same report for a published space\n --allow-redirect <hosts> --ignore <text> --json\n publish <folder> --preview <name> Send the change to a preview link instead of\n publishing it (--comment posts it on the PR)\n domains <orgId> <spaceId> List this space's domains and their state\n domains verify <orgId> <spaceId> <hostname>\n Re-run verification and say what is missing\n snapshot <orgId> <spaceId> <label> Create a space version snapshot\n content types --library <id|slug> TypeScript for a content library's model:\n collections, globals, the block union\n [--org <id|slug>] [--out forumulate.d.ts] [--preview] [--schema <file>]\n [--check] fail (exit 1) when the file is out of date, write nothing\n content pull --library <id|slug> Write the model to forumulate.content.json\n [--format json|payload] [--out <file>] (payload: forumulate.payload.ts)\n content push [file] Show the diff against the library, then\n apply it as a new model version\n [--library \u2026] [--dry-run] [--yes] [--force]\n [--rename type.field=new | block:hero.field=new | library:field=new]\n [--rename-type old=new] [--rename-block old=new]\n import <payload|contentful|sanity|strapi|wordpress> <export path>\n Bring another CMS's content into a library:\n model, media, entries, references (always\n shows a dry run first)\n Re-running updates entries a\n previous import made. strapi takes a\n folder or an unencrypted export .tar.gz\n --library <id|slug> [--org \u2026] [--dry-run] [--yes]\n [--config payload.config.ts] (payload) the config that becomes the model\n [--publish source|all|none] what to publish (default: what was live)\n [--allow-model-removals] [--pace <ms>] [--base-url <url>] (strapi uploads)\n translations (alias i18n) Every translation capability, one vocabulary\n locales list|add|relabel|remove|set a space's (--space) or library's\n (--library) languages; set es=Espa\u00F1ol fr [--prune] is exact\n status each piece \u00D7 language: missing/draft/published/outdated\n [--locale es,fr] [--fail-on missing,outdated] (exit 1)\n pull one Markdown file per piece per language \u2192 [--out translations]\n [--locale \u2026] [--only slug,\u2026] [--include-missing] (stubs)\n push [dir] diff the files against the API, write what changed [--dry-run]\n auto machine-translate with YOUR DeepL/AI key --locale es\n [--state missing,outdated] [--only \u2026] [--force] [--publish]\n [--library \u2026 --entry id,\u2026] [--dry-run]\n labels pull|push [file] chrome words (--site <id> | --space \u2026)\n overrides pull|push [file] org UI string overrides [--prune]\n [--format json|xliff] for labels and overrides\n item-locale <itemId> <locale|none> correct a piece's declared language\n remove <pieceId> <locale> one translation (--yes)\n entry <entryId> <locale> a library entry's twin [--fields f.json]\n name <locale> <name\u2026> a space's (or --collection's) name\n switcher get|set <f.json> the org's reader language switcher\n provider status|connect|disconnect your DeepL key (DEEPL_API_KEY)\n conformance <collectionUrl> Run the Content Sync Protocol suite against\n any platform's collection endpoint\n validate [dir] Check forumulate.yaml, front matter and $schema\n files against the published schemas, with\n did-you-mean hints. --json; exit 2 if invalid\n doctor <readerUrl> | --site <s> Check a live site from the outside: health,\n canonical on both addresses, sitemap, cache\n consistency, root redirect, descriptions,\n llms.txt, favicon, consent tag, white-label\n leaks. --json; exit 1 on any FAIL\n help [command] Show this help, or a command's own\n (every command also takes --help)\n\nEnvironment:\n FORUMULATE_TOKEN Personal Access Token (Bearer). Overrides a stored one, so\n CI keeps working exactly as it did; --token overrides it.\n Mint one at\n https://forumulate.com/account/tokens\n FORUMULATE_URL The site (default https://forumulate.com); the API is its\n /api, i.e. https://forumulate.com/api. A value already\n ending in /api is used as-is.\n FORUMULATE_API_URL Exact API base, for a local API with no /api prefix\n (http://localhost:4000). Wins over FORUMULATE_URL.\n FORUMULATE_API is read as the same thing.\n FORUMULATE_ORG, FORUMULATE_SPACE, FORUMULATE_LIBRARY\n Defaults for --org, --space and --library; they beat\n `forumulate config set`, a flag beats both.\n FORUMULATE_API_VERSION\n Forumulate-Version for api/resource commands\n (default: the SDK's current version).\n\nThe SDK (ForumulateClient.fromEnv) and the MCP server (@forumulate/mcp) read\nthe same variables. Guide: https://forumulate.com/guides/api-tokens-and-scopes\n\nEvery FORUMULATE_* variable not listed above is reported (with the one you\nprobably meant) by `forumulate whoami` and on any authentication failure.\n\nFlags:\n --json Emit raw JSON instead of a formatted summary (stdout only;\n progress and warnings go to stderr)\n --out <file> Write stdout to a file (never truncated; non-zero exit if the\n write fails). content/translations use --out for their own file\n --jsonl With --paginate: one JSON row per line, streamed\n --token <pat> The token for this run, on every command. Precedence:\n --token, then FORUMULATE_TOKEN, then credentials.json. On an\n operation with a `token` parameter of its own (registries\n set, github connect, domains acme-challenge) the flag is that\n parameter; set FORUMULATE_TOKEN for the PAT there\n --dry-run (api, resources) print the request instead of sending it\n --dry-run Plan the work and write nothing (publish of a directory)\n --version Print the CLI version\n\nExit status:\n 0 ok 1 failed (verification mismatch, doctor FAIL) 2 usage\n 3 auth (no token, 401, token not allowed) 4 not found\n 5 conflict (409/412, edited in the studio since your last publish)\n";
|
|
3
3
|
//# sourceMappingURL=help.d.ts.map
|
package/dist/help.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../src/help.ts"],"names":[],"mappings":"AAAA,2FAA2F;AAC3F,eAAO,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../src/help.ts"],"names":[],"mappings":"AAAA,2FAA2F;AAC3F,eAAO,MAAM,IAAI,2ueAkOhB,CAAC"}
|
package/dist/help.js
CHANGED
|
@@ -103,6 +103,15 @@ Older forms, unchanged:
|
|
|
103
103
|
the manifest wrote and no longer declares
|
|
104
104
|
--secrets-file <p> keeps the shown-once keys (0600);
|
|
105
105
|
the output redacts them
|
|
106
|
+
plan and apply: --env-file <p> reads \${NAME}s from a dotenv file (the shell wins);
|
|
107
|
+
declared secrets are masked in all output (--show-secrets on a terminal shows them)
|
|
108
|
+
pull <folder> --space <s> Studio edits back into the folder, as Markdown; the
|
|
109
|
+
next step when plan --check names an edited page
|
|
110
|
+
init --from-site <folder> A first forumulate.yaml from the Markdown a site has
|
|
111
|
+
import mdx <folder> What in these files would publish as literal text,
|
|
112
|
+
with file and line; exit 1 when anything would
|
|
113
|
+
domains records [forumulate.yaml] The DNS records a plan waits for, as data:
|
|
114
|
+
[--json] [--format cloudflare] type, name, value, proxied: false
|
|
106
115
|
heartbeat ping <monitor> [--fail] Report a job's pass to a heartbeat monitor
|
|
107
116
|
(--message <why> with --fail); forumulate heartbeat --help
|
|
108
117
|
heartbeat ping-url <monitor> Print that monitor's ping URL (it holds its secret)
|
package/dist/help.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"help.js","sourceRoot":"","sources":["../src/help.ts"],"names":[],"mappings":";;;AAAA,2FAA2F;AAC9E,QAAA,IAAI,GAAG
|
|
1
|
+
{"version":3,"file":"help.js","sourceRoot":"","sources":["../src/help.ts"],"names":[],"mappings":";;;AAAA,2FAA2F;AAC9E,QAAA,IAAI,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkOnB,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MDX is converted by the API at every door (`apps/api/src/docs/import-mdx.ts`), so
|
|
3
|
+
* nothing here rewrites a file. What was missing is knowing BEFORE publishing what it
|
|
4
|
+
* will not understand: a converter that claimed success while 248 tags stayed literal
|
|
5
|
+
* cost a customer a release. This list is that module's; a test keeps the two equal.
|
|
6
|
+
*/
|
|
7
|
+
export declare const MDX_COMPONENTS: string[];
|
|
8
|
+
export interface MdxProblem {
|
|
9
|
+
file: string;
|
|
10
|
+
line: number;
|
|
11
|
+
what: string;
|
|
12
|
+
}
|
|
13
|
+
/** Every capitalised tag no door converts, and every ESM line, skipping fences and inline code. */
|
|
14
|
+
export declare function mdxProblems(text: string, file: string): MdxProblem[];
|
|
15
|
+
export declare function runImportMdx(folder: string, flags: {
|
|
16
|
+
space?: string;
|
|
17
|
+
org?: string;
|
|
18
|
+
}, deps: {
|
|
19
|
+
out: (l: string) => void;
|
|
20
|
+
err: (l: string) => void;
|
|
21
|
+
}): number;
|
|
22
|
+
/**
|
|
23
|
+
* `forumulate init --from-site <folder>`: the first manifest, from the Markdown a site
|
|
24
|
+
* already has. It writes only what it found and never replaces a file. A folder called
|
|
25
|
+
* blog or posts is a blog; any other is docs.
|
|
26
|
+
*/
|
|
27
|
+
export declare function runInitFromSite(root: string, flags: {
|
|
28
|
+
org?: string;
|
|
29
|
+
}, deps: {
|
|
30
|
+
out: (l: string) => void;
|
|
31
|
+
err: (l: string) => void;
|
|
32
|
+
cwd?: string;
|
|
33
|
+
}): number;
|
|
34
|
+
//# sourceMappingURL=mdx.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mdx.d.ts","sourceRoot":"","sources":["../../src/import/mdx.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,eAAO,MAAM,cAAc,UAM1B,CAAC;AAGF,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,mGAAmG;AACnG,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,UAAU,EAAE,CAoBpE;AAaD,wBAAgB,YAAY,CAC1B,MAAM,EAAE,MAAM,EACd,KAAK,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,EACvC,IAAI,EAAE;IAAE,GAAG,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAAC,GAAG,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;CAAE,GAC3D,MAAM,CAcR;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,EACvB,IAAI,EAAE;IAAE,GAAG,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAAC,GAAG,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,GACzE,MAAM,CAqCR"}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MDX_COMPONENTS = void 0;
|
|
4
|
+
exports.mdxProblems = mdxProblems;
|
|
5
|
+
exports.runImportMdx = runImportMdx;
|
|
6
|
+
exports.runInitFromSite = runInitFromSite;
|
|
7
|
+
const node_fs_1 = require("node:fs");
|
|
8
|
+
const node_path_1 = require("node:path");
|
|
9
|
+
const exit_codes_1 = require("../exit-codes");
|
|
10
|
+
/**
|
|
11
|
+
* MDX is converted by the API at every door (`apps/api/src/docs/import-mdx.ts`), so
|
|
12
|
+
* nothing here rewrites a file. What was missing is knowing BEFORE publishing what it
|
|
13
|
+
* will not understand: a converter that claimed success while 248 tags stayed literal
|
|
14
|
+
* cost a customer a release. This list is that module's; a test keeps the two equal.
|
|
15
|
+
*/
|
|
16
|
+
exports.MDX_COMPONENTS = [
|
|
17
|
+
'Note', 'Info', 'Tip', 'Check', 'Success', 'Warning', 'Caution', 'Danger', 'Error', 'Important', 'Callout', 'Aside',
|
|
18
|
+
'Tabs', 'Tab', 'TabItem', 'Steps', 'Step', 'CodeGroup', 'CardGroup', 'CardGrid', 'AccordionGroup', 'Accordion',
|
|
19
|
+
'Expandable', 'ParamField', 'ResponseField', 'RequestExample', 'ResponseExample', 'FileTree',
|
|
20
|
+
// Converted outside that table, by their own passes (the docs' MDX map).
|
|
21
|
+
'Card', 'LinkCard', 'Frame', 'Tooltip', 'Badge', 'Icon', 'Kbd',
|
|
22
|
+
];
|
|
23
|
+
const KNOWN = new Set(exports.MDX_COMPONENTS);
|
|
24
|
+
/** Every capitalised tag no door converts, and every ESM line, skipping fences and inline code. */
|
|
25
|
+
function mdxProblems(text, file) {
|
|
26
|
+
const out = [];
|
|
27
|
+
let fence = null;
|
|
28
|
+
text.split(/\r?\n/).forEach((raw, i) => {
|
|
29
|
+
const open = /^\s*(`{3,}|~{3,})/.exec(raw);
|
|
30
|
+
if (open) {
|
|
31
|
+
if (!fence)
|
|
32
|
+
fence = open[1];
|
|
33
|
+
else if (open[1].startsWith(fence))
|
|
34
|
+
fence = null;
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
if (fence)
|
|
38
|
+
return;
|
|
39
|
+
if (/^(import|export)\s/.test(raw)) {
|
|
40
|
+
out.push({ file, line: i + 1, what: `\`${raw.split(/\s/)[0]}\` statement` });
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
const line = raw.replace(/`[^`]*`/g, '');
|
|
44
|
+
for (const m of line.matchAll(/<([A-Z][A-Za-z0-9.]*)/g))
|
|
45
|
+
if (!KNOWN.has(m[1]))
|
|
46
|
+
out.push({ file, line: i + 1, what: `<${m[1]}>` });
|
|
47
|
+
});
|
|
48
|
+
return out;
|
|
49
|
+
}
|
|
50
|
+
function markdownFiles(root) {
|
|
51
|
+
const out = [];
|
|
52
|
+
for (const name of (0, node_fs_1.readdirSync)(root)) {
|
|
53
|
+
if (name.startsWith('.') || name === 'node_modules')
|
|
54
|
+
continue;
|
|
55
|
+
const path = (0, node_path_1.join)(root, name);
|
|
56
|
+
if ((0, node_fs_1.statSync)(path).isDirectory())
|
|
57
|
+
out.push(...markdownFiles(path));
|
|
58
|
+
else if (/\.(md|mdx)$/i.test(name))
|
|
59
|
+
out.push(path);
|
|
60
|
+
}
|
|
61
|
+
return out;
|
|
62
|
+
}
|
|
63
|
+
function runImportMdx(folder, flags, deps) {
|
|
64
|
+
if (!(0, node_fs_1.existsSync)(folder) || !(0, node_fs_1.statSync)(folder).isDirectory()) {
|
|
65
|
+
deps.err(`import mdx: ${folder} is not a directory`);
|
|
66
|
+
return exit_codes_1.EXIT.USAGE;
|
|
67
|
+
}
|
|
68
|
+
const files = markdownFiles(folder);
|
|
69
|
+
const problems = files.flatMap((f) => mdxProblems((0, node_fs_1.readFileSync)(f, 'utf8'), (0, node_path_1.relative)(folder, f).split(node_path_1.sep).join('/')));
|
|
70
|
+
for (const p of problems)
|
|
71
|
+
deps.out(`${p.file}:${p.line} ${p.what}`);
|
|
72
|
+
if (problems.length) {
|
|
73
|
+
deps.err(`${problems.length} thing(s) in ${files.length} file(s) would publish as literal text. Replace them with Markdown or a directive (guide: markdown-directives).`);
|
|
74
|
+
return exit_codes_1.EXIT.FAILED;
|
|
75
|
+
}
|
|
76
|
+
deps.out(`${files.length} file(s), nothing unknown. Publish them: forumulate publish ${folder}${flags.org ? ` --org ${flags.org}` : ''}${flags.space ? ` --space ${flags.space}` : ''}`);
|
|
77
|
+
return exit_codes_1.EXIT.OK;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* `forumulate init --from-site <folder>`: the first manifest, from the Markdown a site
|
|
81
|
+
* already has. It writes only what it found and never replaces a file. A folder called
|
|
82
|
+
* blog or posts is a blog; any other is docs.
|
|
83
|
+
*/
|
|
84
|
+
function runInitFromSite(root, flags, deps) {
|
|
85
|
+
const target = (0, node_path_1.join)(deps.cwd ?? process.cwd(), 'forumulate.yaml');
|
|
86
|
+
if ((0, node_fs_1.existsSync)(target)) {
|
|
87
|
+
deps.err(`init: ${target} already exists; it was left alone.`);
|
|
88
|
+
return exit_codes_1.EXIT.USAGE;
|
|
89
|
+
}
|
|
90
|
+
if (!(0, node_fs_1.existsSync)(root) || !(0, node_fs_1.statSync)(root).isDirectory()) {
|
|
91
|
+
deps.err(`init: ${root} is not a directory`);
|
|
92
|
+
return exit_codes_1.EXIT.USAGE;
|
|
93
|
+
}
|
|
94
|
+
const base = deps.cwd ?? process.cwd();
|
|
95
|
+
const folders = contentFolders(root);
|
|
96
|
+
if (!folders.length) {
|
|
97
|
+
deps.err(`init: no Markdown or MDX found under ${root}`);
|
|
98
|
+
return exit_codes_1.EXIT.USAGE;
|
|
99
|
+
}
|
|
100
|
+
const lines = ['version: 2', `org: ${flags.org ?? 'your-org # your organization slug'}`, 'spaces:'];
|
|
101
|
+
const pages = [];
|
|
102
|
+
for (const f of folders) {
|
|
103
|
+
const name = f.split(node_path_1.sep).pop().toLowerCase();
|
|
104
|
+
const slug = name.replace(/[^a-z0-9]+/g, '-').replace(/^-|-$/g, '') || 'docs';
|
|
105
|
+
const dir = (0, node_path_1.relative)(base, f).split(node_path_1.sep).join('/');
|
|
106
|
+
if (name === 'blog' || name === 'posts')
|
|
107
|
+
lines.push(` - { slug: ${slug}, name: ${slug}, type: BLOG, posts: { dir: ${dir} } }`);
|
|
108
|
+
else {
|
|
109
|
+
lines.push(` - { slug: ${slug}, name: ${slug}, type: DOCS }`);
|
|
110
|
+
pages.push(` - { dir: ${dir}, space: ${slug} }`);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
if (pages.length)
|
|
114
|
+
lines.push('pages:', ...pages);
|
|
115
|
+
(0, node_fs_1.writeFileSync)(target, `${lines.join('\n')}\n`);
|
|
116
|
+
deps.out(`Wrote ${target} with ${folders.length} space(s).`);
|
|
117
|
+
const problems = folders.flatMap((f) => markdownFiles(f).flatMap((file) => mdxProblems((0, node_fs_1.readFileSync)(file, 'utf8'), (0, node_path_1.relative)(base, file).split(node_path_1.sep).join('/'))));
|
|
118
|
+
for (const p of problems)
|
|
119
|
+
deps.out(`${p.file}:${p.line} ${p.what}`);
|
|
120
|
+
deps.out(problems.length ? `${problems.length} thing(s) above would publish as literal text.` : 'Next: forumulate plan');
|
|
121
|
+
return problems.length ? exit_codes_1.EXIT.FAILED : exit_codes_1.EXIT.OK;
|
|
122
|
+
}
|
|
123
|
+
/** The highest folders holding Markdown: `content/docs`, not each folder inside it. */
|
|
124
|
+
function contentFolders(root) {
|
|
125
|
+
const skip = new Set(['node_modules', 'dist', 'build', 'out', 'public', 'coverage']);
|
|
126
|
+
const walk = (dir) => {
|
|
127
|
+
const names = (0, node_fs_1.readdirSync)(dir).filter((n) => !n.startsWith('.') && !skip.has(n));
|
|
128
|
+
if (names.some((n) => /\.(md|mdx)$/i.test(n) && !/^(readme|license|changelog|contributing)\./i.test(n)))
|
|
129
|
+
return [dir];
|
|
130
|
+
return names.flatMap((n) => ((0, node_fs_1.statSync)((0, node_path_1.join)(dir, n)).isDirectory() ? walk((0, node_path_1.join)(dir, n)) : []));
|
|
131
|
+
};
|
|
132
|
+
return walk(root);
|
|
133
|
+
}
|
|
134
|
+
//# sourceMappingURL=mdx.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mdx.js","sourceRoot":"","sources":["../../src/import/mdx.ts"],"names":[],"mappings":";;;AA0BA,kCAoBC;AAaD,oCAkBC;AAOD,0CAyCC;AA7HD,qCAAyF;AACzF,yCAAgD;AAChD,8CAAqC;AAErC;;;;;GAKG;AACU,QAAA,cAAc,GAAG;IAC5B,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO;IACnH,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,gBAAgB,E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CAAC,iBAAI,CAAC,EAAE,CAAC;AACjD,CAAC;AAED,uFAAuF;AACvF,SAAS,cAAc,CAAC,IAAY;IAClC,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC,CAAC;IACrF,MAAM,IAAI,GAAG,CAAC,GAAW,EAAY,EAAE;QACrC,MAAM,KAAK,GAAG,IAAA,qBAAW,EAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QACjF,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,6CAA6C,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YAAE,OAAO,CAAC,GAAG,CAAC,CAAC;QACtH,OAAO,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAA,kBAAQ,EAAC,IAAA,gBAAI,EAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAA,gBAAI,EAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAChG,CAAC,CAAC;IACF,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC;AACpB,CAAC"}
|
package/dist/plan/command.d.ts
CHANGED
|
@@ -33,6 +33,10 @@ export interface PlanFlags {
|
|
|
33
33
|
batch: number;
|
|
34
34
|
/** `apply --secrets-file`: where every shown-once value goes (mode 0600); stdout redacts them either way. */
|
|
35
35
|
secretsFile?: string;
|
|
36
|
+
/** `--env-file <path>`: a dotenv file the `${NAME}`s are read from; the shell's own values win. */
|
|
37
|
+
envFile?: string;
|
|
38
|
+
/** `--show-secrets`: leave declared secrets in the output. Refused unless stdout is a terminal. */
|
|
39
|
+
showSecrets?: boolean;
|
|
36
40
|
/** `--create-org` (or `orgName:` in the file, H5): the org may not exist yet — plan previews it, apply creates it. */
|
|
37
41
|
createOrg?: boolean;
|
|
38
42
|
}
|
|
@@ -43,6 +47,8 @@ export interface PlanCliDeps {
|
|
|
43
47
|
env?: NodeJS.ProcessEnv;
|
|
44
48
|
upload?: (path: string, form: FormData) => Promise<unknown>;
|
|
45
49
|
cwd?: string;
|
|
50
|
+
/** Overridable in tests; defaults to `process.stdout.isTTY`. */
|
|
51
|
+
isTTY?: boolean;
|
|
46
52
|
}
|
|
47
53
|
type Body = Record<string, unknown>;
|
|
48
54
|
export declare function runPlanCommand(flags: PlanFlags, deps: PlanCliDeps): Promise<number>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/plan/command.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAM9D,OAAO,
|
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/plan/command.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAM9D,OAAO,EAAsG,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAGnJ;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACd,iFAAiF;IACjF,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,O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EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,EAAE,CAiB9E"}
|
package/dist/plan/command.js
CHANGED
|
@@ -13,20 +13,32 @@ const exit_codes_1 = require("../exit-codes");
|
|
|
13
13
|
const document_1 = require("./document");
|
|
14
14
|
const node_fs_1 = require("node:fs");
|
|
15
15
|
const output_1 = require("./output");
|
|
16
|
+
const secrets_1 = require("./secrets");
|
|
16
17
|
async function runPlanCommand(flags, deps) {
|
|
17
18
|
const file = (0, manifest_1.findManifest)(deps.cwd ?? process.cwd(), flags.file);
|
|
18
19
|
if (!file) {
|
|
19
20
|
deps.err(`forumulate ${flags.command}: no forumulate.yaml here; pass the file: forumulate ${flags.command} path/to/forumulate.yaml`);
|
|
20
21
|
return exit_codes_1.EXIT.USAGE;
|
|
21
22
|
}
|
|
23
|
+
if (flags.showSecrets && !(deps.isTTY ?? process.stdout.isTTY)) {
|
|
24
|
+
deps.err(`forumulate ${flags.command}: --show-secrets needs a terminal; it is refused when output goes to a file or a CI log.`);
|
|
25
|
+
return exit_codes_1.EXIT.USAGE;
|
|
26
|
+
}
|
|
22
27
|
let doc;
|
|
23
28
|
try {
|
|
24
|
-
|
|
29
|
+
const env = deps.env ?? process.env;
|
|
30
|
+
doc = (0, document_1.loadPlanDocument)(file, flags.envFile ? { ...(0, secrets_1.readEnvFile)(flags.envFile), ...env } : env);
|
|
25
31
|
}
|
|
26
32
|
catch (e) {
|
|
27
33
|
deps.err(e.message);
|
|
28
34
|
return exit_codes_1.EXIT.USAGE;
|
|
29
35
|
}
|
|
36
|
+
// Everything printed from here on: a plan lands in CI logs and agent transcripts.
|
|
37
|
+
if (!flags.showSecrets) {
|
|
38
|
+
const scrub = (0, secrets_1.secretScrubber)(doc.body, flags.secretsFile ? (0, output_1.readSecretsFile)(flags.secretsFile) : {});
|
|
39
|
+
const { out, err } = deps;
|
|
40
|
+
deps = { ...deps, out: (l) => out(scrub(l)), err: (l) => err(scrub(l)) };
|
|
41
|
+
}
|
|
30
42
|
const org = flags.org ?? doc.org ?? deps.env?.FORUMULATE_ORG ?? process.env.FORUMULATE_ORG;
|
|
31
43
|
if (!org) {
|
|
32
44
|
deps.err('Which organization? Put `org:` in forumulate.yaml, pass --org, or set FORUMULATE_ORG.');
|
|
@@ -93,7 +105,10 @@ async function runPlanCommand(flags, deps) {
|
|
|
93
105
|
// Nothing exists yet, so every line below is a create; the org itself comes first.
|
|
94
106
|
if (creating)
|
|
95
107
|
deps.out(`+ create org ${newOrg.slug} (${newOrg.name})`);
|
|
96
|
-
(0, output_1.formatPlan)(planned, { diff: flags.diff, verbose: flags.verbose }).forEach((l) => deps.out(l));
|
|
108
|
+
(0, output_1.formatPlan)(planned, { diff: flags.diff, verbose: flags.verbose, pageUrl: (0, output_1.pageUrlFrom)(doc.body) }).forEach((l) => deps.out(l));
|
|
109
|
+
if (flags.showSecrets)
|
|
110
|
+
for (const w of (doc.body.webhooks ?? []))
|
|
111
|
+
deps.out(`webhook ${w.ref ?? '(no ref)'}: ${w.url}`);
|
|
97
112
|
}
|
|
98
113
|
if (!planned.ok)
|
|
99
114
|
return exit_codes_1.EXIT.FAILED;
|
package/dist/plan/command.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.js","sourceRoot":"","sources":["../../src/plan/command.ts"],"names":[],"mappings":";;AAyDA,wCA0GC;AAMD,wCAEC;AAqBD,gDAQC;AAoDD,gCAEC;AAqFD,0BAiBC;AApWD,wCAAyD;AACzD,8CAA8D;AAC9D,kDAAmD;AACnD,gDAAiE;AACjE,8CAAuD;AACvD,yCAAiG;AACjG,qCAAqF;AACrF,qCAAsI;AAkD/H,KAAK,UAAU,cAAc,CAAC,KAAgB,EAAE,IAAiB;IACtE,MAAM,IAAI,GAAG,IAAA,uBAAY,EAAC,IAAI,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,EAAE,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IACjE,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,IAAI,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