@forumulate/cli 0.12.3 → 0.14.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/api/operations.json +1 -1
- package/dist/api-base.d.ts.map +1 -1
- package/dist/api-base.js +3 -1
- package/dist/api-base.js.map +1 -1
- package/dist/commands/completion.d.ts.map +1 -1
- package/dist/commands/completion.js +14 -0
- package/dist/commands/completion.js.map +1 -1
- package/dist/commands/groups-community.d.ts.map +1 -1
- package/dist/commands/groups-community.js +9 -0
- package/dist/commands/groups-community.js.map +1 -1
- package/dist/commands/groups-org.d.ts.map +1 -1
- package/dist/commands/groups-org.js +13 -0
- package/dist/commands/groups-org.js.map +1 -1
- package/dist/commands/groups-site.d.ts.map +1 -1
- package/dist/commands/groups-site.js +3 -1
- package/dist/commands/groups-site.js.map +1 -1
- package/dist/commands/groups-spaces.d.ts.map +1 -1
- package/dist/commands/groups-spaces.js +3 -1
- package/dist/commands/groups-spaces.js.map +1 -1
- package/dist/commands/provisioning.d.ts +20 -0
- package/dist/commands/provisioning.d.ts.map +1 -0
- package/dist/commands/provisioning.js +102 -0
- package/dist/commands/provisioning.js.map +1 -0
- package/dist/commands/resource.d.ts +9 -0
- package/dist/commands/resource.d.ts.map +1 -1
- package/dist/commands/resource.js +8 -1
- package/dist/commands/resource.js.map +1 -1
- package/dist/heartbeat-command.d.ts +34 -0
- package/dist/heartbeat-command.d.ts.map +1 -0
- package/dist/heartbeat-command.js +108 -0
- package/dist/heartbeat-command.js.map +1 -0
- package/dist/help-commands.d.ts +1 -1
- package/dist/help-commands.d.ts.map +1 -1
- package/dist/help-commands.js +17 -3
- 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 +10 -0
- package/dist/help.js.map +1 -1
- package/dist/plan/body-env.d.ts +5 -0
- package/dist/plan/body-env.d.ts.map +1 -0
- package/dist/plan/body-env.js +46 -0
- package/dist/plan/body-env.js.map +1 -0
- package/dist/plan/command.d.ts +11 -0
- package/dist/plan/command.d.ts.map +1 -1
- package/dist/plan/command.js +73 -3
- package/dist/plan/command.js.map +1 -1
- package/dist/plan/document.d.ts +29 -10
- package/dist/plan/document.d.ts.map +1 -1
- package/dist/plan/document.js +140 -23
- package/dist/plan/document.js.map +1 -1
- package/dist/plan/markdown-dir.d.ts +12 -8
- package/dist/plan/markdown-dir.d.ts.map +1 -1
- package/dist/plan/markdown-dir.js +104 -17
- package/dist/plan/markdown-dir.js.map +1 -1
- package/dist/plan/output.d.ts +17 -0
- package/dist/plan/output.d.ts.map +1 -1
- package/dist/plan/output.js +82 -10
- package/dist/plan/output.js.map +1 -1
- package/dist/publish/extras.js +6 -4
- package/dist/publish/extras.js.map +1 -1
- package/dist/publish/rewrite.d.ts +12 -1
- package/dist/publish/rewrite.d.ts.map +1 -1
- package/dist/publish/rewrite.js +32 -13
- package/dist/publish/rewrite.js.map +1 -1
- package/dist/run.d.ts +2 -0
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +7 -0
- package/dist/run.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/whoami.d.ts +1 -1
- package/dist/whoami.d.ts.map +1 -1
- package/dist/whoami.js +1 -1
- package/dist/whoami.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource.js","sourceRoot":"","sources":["../../src/commands/resource.ts"],"names":[],"mappings":";;AAgIA,8BAkBC;AAsBD,4BA8CC;AAtND,wDAAoD;AACpD,4CAA2C;AAC3C,8CAAqC;AACrC,sCAAgE;AAEhE,0CAAuC;AACvC,4CAA+D;AAC/D,sCAAgE;AAChE,sCAAmF;AACnF,qCAAmC;AACnC,uCAA4E;AAC5E,yCAAsE;AAgGtE,qFAAqF;AACrF,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC;IAClB,KAAK;IACL,OAAO;IACP,SAAS;IACT,KAAK;IACL,MAAM;IAC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itor>` prints the URL itself (ADV-18),
|
|
4
|
+
* for a job that cannot run the CLI.
|
|
5
|
+
*
|
|
6
|
+
* `forumulate heartbeat ping <monitor> [--fail] [--message <text>]`: report a
|
|
7
|
+
* pass of a job from a shell, a cron line or CI, to the monitor's ping URL.
|
|
8
|
+
*
|
|
9
|
+
* The monitor is named the way a person knows it (its name, or its id), and
|
|
10
|
+
* the ping URL is read from the API rather than asked for: the URL carries the
|
|
11
|
+
* monitor's secret, and a CLI that wanted it pasted would put that secret in a
|
|
12
|
+
* crontab and a shell history. The ping itself is anonymous (the token is in
|
|
13
|
+
* the URL), so it does not need, and does not send, the account token.
|
|
14
|
+
*
|
|
15
|
+
* `--fail` posts `{"ok": false, "detail": …}`: the component reads partial
|
|
16
|
+
* outage with the job's own words, not the silence that reads as an outage
|
|
17
|
+
* only after 1.5x the interval.
|
|
18
|
+
*/
|
|
19
|
+
export interface HeartbeatDeps {
|
|
20
|
+
client: ApiClient;
|
|
21
|
+
out: (l: string) => void;
|
|
22
|
+
err: (l: string) => void;
|
|
23
|
+
env?: NodeJS.ProcessEnv;
|
|
24
|
+
fetch?: typeof fetch;
|
|
25
|
+
}
|
|
26
|
+
export declare const HEARTBEAT_HELP = "forumulate heartbeat \u2014 report a job's pass to a heartbeat monitor\n\nUsage:\n forumulate heartbeat ping <monitor> [--org <id|slug>] [--space <id|slug>] [--fail] [--message <text>]\n forumulate heartbeat ping-url <monitor> [--org <id|slug>] [--space <id|slug>] [--json]\n\n <monitor> is the monitor's name or id. The ping URL (which holds the monitor's secret) is read from\n the API, so it never has to be pasted into a crontab. Without --space every STATUS space of the\n organization is searched.\n\n ping-url prints that URL, for a job that cannot run the CLI (a hosted cron, a webhook): it holds\n the monitor's secret, so keep it in the job's secret store, not in a repository. `forumulate\n apply` prints it too when it creates or updates the monitor. The same value is on\n GET /orgs/{org}/spaces/{space}/status/monitors (`pingUrl` of a heartbeat).\n\nFlags:\n --org <o> the organization (else FORUMULATE_ORG)\n --space <s> the STATUS space holding the monitor\n --fail report that the run did NOT go cleanly: posts {\"ok\": false, \"detail\": <message>},\n which the page shows as a partial outage in the job's own words\n --message <t> what went wrong (kept up to 500 characters; only with --fail)\n --json the answer as JSON\n\nA monitor goes down when no ping arrives within 1.5x its interval, so ping at the END of a run, and\nping --fail when a run finished but did not do its work.\n\nExamples:\n forumulate heartbeat ping Reminders --org acme --space status\n forumulate heartbeat ping Reminders --fail --message \"3 of 40 emails bounced\"\n forumulate heartbeat ping-url Reminders --org acme";
|
|
27
|
+
export declare function runHeartbeat(rest: string[], flags: {
|
|
28
|
+
org?: string;
|
|
29
|
+
space?: string;
|
|
30
|
+
fail: boolean;
|
|
31
|
+
message?: string;
|
|
32
|
+
json: boolean;
|
|
33
|
+
}, deps: HeartbeatDeps): Promise<number>;
|
|
34
|
+
//# sourceMappingURL=heartbeat-command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"heartbeat-command.d.ts","sourceRoot":"","sources":["../src/heartbeat-command.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAG7D;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,SAAS,CAAC;IAClB,GAAG,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACzB,GAAG,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACzB,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IACxB,KAAK,CAAC,EAAE,OAAO,KAAK,CAAC;CACtB;AASD,eAAO,MAAM,cAAc,upDA6B0B,CAAC;AAQtD,wBAAsB,YAAY,CAChC,IAAI,EAAE,MAAM,EAAE,EACd,KAAK,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,OAAO,CAAA;CAAE,EACvF,IAAI,EAAE,aAAa,GAClB,OAAO,CAAC,MAAM,CAAC,CAyEjB"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HEARTBEAT_HELP = void 0;
|
|
4
|
+
exports.runHeartbeat = runHeartbeat;
|
|
5
|
+
const api_1 = require("./publish/api");
|
|
6
|
+
const client_1 = require("./publish/client");
|
|
7
|
+
const exit_codes_1 = require("./exit-codes");
|
|
8
|
+
exports.HEARTBEAT_HELP = `forumulate heartbeat — report a job's pass to a heartbeat monitor
|
|
9
|
+
|
|
10
|
+
Usage:
|
|
11
|
+
forumulate heartbeat ping <monitor> [--org <id|slug>] [--space <id|slug>] [--fail] [--message <text>]
|
|
12
|
+
forumulate heartbeat ping-url <monitor> [--org <id|slug>] [--space <id|slug>] [--json]
|
|
13
|
+
|
|
14
|
+
<monitor> is the monitor's name or id. The ping URL (which holds the monitor's secret) is read from
|
|
15
|
+
the API, so it never has to be pasted into a crontab. Without --space every STATUS space of the
|
|
16
|
+
organization is searched.
|
|
17
|
+
|
|
18
|
+
ping-url prints that URL, for a job that cannot run the CLI (a hosted cron, a webhook): it holds
|
|
19
|
+
the monitor's secret, so keep it in the job's secret store, not in a repository. \`forumulate
|
|
20
|
+
apply\` prints it too when it creates or updates the monitor. The same value is on
|
|
21
|
+
GET /orgs/{org}/spaces/{space}/status/monitors (\`pingUrl\` of a heartbeat).
|
|
22
|
+
|
|
23
|
+
Flags:
|
|
24
|
+
--org <o> the organization (else FORUMULATE_ORG)
|
|
25
|
+
--space <s> the STATUS space holding the monitor
|
|
26
|
+
--fail report that the run did NOT go cleanly: posts {"ok": false, "detail": <message>},
|
|
27
|
+
which the page shows as a partial outage in the job's own words
|
|
28
|
+
--message <t> what went wrong (kept up to 500 characters; only with --fail)
|
|
29
|
+
--json the answer as JSON
|
|
30
|
+
|
|
31
|
+
A monitor goes down when no ping arrives within 1.5x its interval, so ping at the END of a run, and
|
|
32
|
+
ping --fail when a run finished but did not do its work.
|
|
33
|
+
|
|
34
|
+
Examples:
|
|
35
|
+
forumulate heartbeat ping Reminders --org acme --space status
|
|
36
|
+
forumulate heartbeat ping Reminders --fail --message "3 of 40 emails bounced"
|
|
37
|
+
forumulate heartbeat ping-url Reminders --org acme`;
|
|
38
|
+
async function runHeartbeat(rest, flags, deps) {
|
|
39
|
+
const [verb, ...names] = rest;
|
|
40
|
+
const name = names.join(' ').trim();
|
|
41
|
+
if ((verb !== 'ping' && verb !== 'ping-url') || !name) {
|
|
42
|
+
deps.err('usage: forumulate heartbeat ping|ping-url <monitor> [--fail] [--message <text>]');
|
|
43
|
+
return exit_codes_1.EXIT.USAGE;
|
|
44
|
+
}
|
|
45
|
+
if (verb === 'ping-url' && (flags.fail || flags.message)) {
|
|
46
|
+
deps.err('forumulate heartbeat ping-url only reads the URL; --fail and --message go with `ping`.');
|
|
47
|
+
return exit_codes_1.EXIT.USAGE;
|
|
48
|
+
}
|
|
49
|
+
if (flags.message && !flags.fail) {
|
|
50
|
+
deps.err('forumulate heartbeat: --message says what went wrong, so it goes with --fail.');
|
|
51
|
+
return exit_codes_1.EXIT.USAGE;
|
|
52
|
+
}
|
|
53
|
+
const org = flags.org ?? deps.env?.FORUMULATE_ORG ?? process.env.FORUMULATE_ORG;
|
|
54
|
+
if (!org) {
|
|
55
|
+
deps.err('Which organization? Pass --org or set FORUMULATE_ORG.');
|
|
56
|
+
return exit_codes_1.EXIT.USAGE;
|
|
57
|
+
}
|
|
58
|
+
try {
|
|
59
|
+
const base = `/orgs/${encodeURIComponent(org)}/spaces`;
|
|
60
|
+
const all = await new api_1.PublishApi({ client: deps.client, authed: true, readOnly: true, paceMs: 0 }).all(base, 'spaces', { limit: 500 });
|
|
61
|
+
const spaces = flags.space
|
|
62
|
+
? all.filter((s) => s.id === flags.space || s.slug === flags.space)
|
|
63
|
+
: all.filter((s) => (s.type ?? '').toUpperCase() === 'STATUS');
|
|
64
|
+
const found = [];
|
|
65
|
+
for (const space of spaces) {
|
|
66
|
+
const { monitors } = await deps.client.request('GET', `${base}/${encodeURIComponent(space.id)}/status/monitors`);
|
|
67
|
+
found.push(...monitors.filter((m) => m.id === name || m.name.toLowerCase() === name.toLowerCase()));
|
|
68
|
+
}
|
|
69
|
+
if (found.length !== 1) {
|
|
70
|
+
deps.err(found.length
|
|
71
|
+
? `"${name}" matches ${found.length} monitors (${found.map((m) => m.id).join(', ')}); pass the id.`
|
|
72
|
+
: `No monitor named "${name}" in ${flags.space ? `space ${flags.space}` : 'a STATUS space of this organization'}.`);
|
|
73
|
+
return found.length ? exit_codes_1.EXIT.USAGE : exit_codes_1.EXIT.NOT_FOUND;
|
|
74
|
+
}
|
|
75
|
+
const monitor = found[0];
|
|
76
|
+
if (!monitor.pingUrl) {
|
|
77
|
+
deps.err(`${monitor.name} is not a heartbeat monitor (kind ${monitor.kind ?? 'unknown'}); nothing pings it.`);
|
|
78
|
+
return exit_codes_1.EXIT.USAGE;
|
|
79
|
+
}
|
|
80
|
+
if (verb === 'ping-url') {
|
|
81
|
+
if (flags.json)
|
|
82
|
+
deps.out(JSON.stringify({ monitor: monitor.name, id: monitor.id, pingUrl: monitor.pingUrl }));
|
|
83
|
+
else
|
|
84
|
+
deps.out(monitor.pingUrl);
|
|
85
|
+
return exit_codes_1.EXIT.OK;
|
|
86
|
+
}
|
|
87
|
+
const body = flags.fail ? { ok: false, ...(flags.message ? { detail: flags.message } : {}) } : { ok: true };
|
|
88
|
+
const res = await (deps.fetch ?? fetch)(monitor.pingUrl, {
|
|
89
|
+
method: 'POST',
|
|
90
|
+
headers: { 'content-type': 'application/json' },
|
|
91
|
+
body: JSON.stringify(body),
|
|
92
|
+
});
|
|
93
|
+
if (!res.ok) {
|
|
94
|
+
deps.err(`forumulate heartbeat: the ping answered ${res.status}`);
|
|
95
|
+
return exit_codes_1.EXIT.FAILED;
|
|
96
|
+
}
|
|
97
|
+
if (flags.json)
|
|
98
|
+
deps.out(JSON.stringify({ monitor: monitor.name, id: monitor.id, sent: body }));
|
|
99
|
+
else
|
|
100
|
+
deps.out(`${flags.fail ? 'Reported a failed pass for' : 'Pinged'} ${monitor.name}.`);
|
|
101
|
+
return exit_codes_1.EXIT.OK;
|
|
102
|
+
}
|
|
103
|
+
catch (e) {
|
|
104
|
+
deps.err(`forumulate heartbeat: ${(0, client_1.errorText)(e)}`);
|
|
105
|
+
return (0, exit_codes_1.exitCodeForError)(e);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
//# sourceMappingURL=heartbeat-command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"heartbeat-command.js","sourceRoot":"","sources":["../src/heartbeat-command.ts"],"names":[],"mappings":";;;AAyEA,oCA6EC;AAtJD,uCAA2C;AAC3C,6CAA6D;AAC7D,6CAAsD;AAkCzC,QAAA,cAAc,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qDA6BuB,CAAC;AAQ/C,KAAK,UAAU,YAAY,CAChC,IAAc,EACd,KAAuF,EACvF,IAAmB;IAEnB,MAAM,CAAC,IAAI,EAAE,GAAG,KAAK,CAAC,GAAG,IAAI,CAAC;IAC9B,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;IACpC,IAAI,CAAC,IAAI,KAAK,MAAM,IAAI,IAAI,KAAK,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;QACtD,IAAI,CAAC,GAAG,CAAC,iFAAiF,CAAC,CAAC;QAC5F,OAAO,iBAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IACD,IAAI,IAAI,KAAK,UAAU,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC;QACzD,IAAI,CAAC,GAAG,CAAC,wFAAwF,CAAC,CAAC;QACnG,O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I,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;;YAC3F,IAAI,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,4BAA4B,CAAC,CAAC,CAAC,QAAQ,IAAI,OAAO,CAAC,IAAI,GAAG,CAAC,CAAC;QAC1F,OAAO,iBAAI,CAAC,EAAE,CAAC;IACjB,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,IAAI,CAAC,GAAG,CAAC,yBAAyB,IAAA,kBAAS,EAAC,CAAC,CAAC,EAAE,CAAC,CAAC;QAClD,OAAO,IAAA,6BAAgB,EAAC,CAAC,CAAC,CAAC;IAC7B,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; they 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>] [--diff] [--check] [--prune] [--verbose]\n forumulate apply [forumulate.yaml] [--org <id|slug>] [--prune] [--batch <n>] [--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 --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 --verbose list unchanged steps and
|
|
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>] [--diff] [--check] [--prune] [--verbose]\n forumulate apply [forumulate.yaml] [--org <id|slug>] [--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 --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) to <p> as\n JSON, mode 0600 (an existing file must already be 0600). Without it they are\n redacted in the output, human and --json alike: they are shown once, so 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: `forumulate orgs ensure <slug>` creates it (idempotent).\n apply prints each heartbeat monitor's pingUrl it wrote; `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, 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":"
|
|
1
|
+
{"version":3,"file":"help-commands.d.ts","sourceRoot":"","sources":["../src/help-commands.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,YAAY,g2JA0EN,CAAC;AAEpB,eAAO,MAAM,SAAS,u6BAYH,CAAC;AAEpB,eAAO,MAAM,SAAS,skIA0DH,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
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.COMMAND_HELP = exports.TRANSLATIONS_HELP = exports.IMPORT_HELP = exports.CONTENT_HELP = exports.CONFORMANCE_HELP = exports.SNAPSHOT_HELP = exports.LOGOUT_HELP = exports.LOGIN_HELP = exports.DEV_HELP = exports.PLAN_HELP = exports.SYNC_HELP = exports.PUBLISH_HELP = void 0;
|
|
4
|
+
const heartbeat_command_1 = require("./heartbeat-command");
|
|
4
5
|
const validate_1 = require("./validate");
|
|
5
6
|
const command_1 = require("./doctor/command");
|
|
6
7
|
const exit_codes_1 = require("./exit-codes");
|
|
@@ -113,7 +114,7 @@ exports.PLAN_HELP = `forumulate plan / forumulate apply — one document for a w
|
|
|
113
114
|
|
|
114
115
|
Usage:
|
|
115
116
|
forumulate plan [forumulate.yaml] [--org <id|slug>] [--diff] [--check] [--prune] [--verbose]
|
|
116
|
-
forumulate apply [forumulate.yaml] [--org <id|slug>] [--prune] [--batch <n>] [--verbose]
|
|
117
|
+
forumulate apply [forumulate.yaml] [--org <id|slug>] [--prune] [--batch <n>] [--secrets-file <path>] [--verbose]
|
|
117
118
|
|
|
118
119
|
Reads a version-2 forumulate.yaml and the Markdown folders it names, and sends it to
|
|
119
120
|
PUT /orgs/{org}/manifest: plan is the dry run (the diff, nothing written), apply
|
|
@@ -128,9 +129,20 @@ Flags:
|
|
|
128
129
|
--prune also delete what this manifest created earlier and no longer
|
|
129
130
|
declares — only for the kinds the file declares (pages go to the trash)
|
|
130
131
|
--batch <n> apply: changed pages per request (default 20; the edge cuts a request at 30 s)
|
|
131
|
-
--
|
|
132
|
+
--allow-unset-env apply: publish a page whose \${NAME} is unset as written (default: refuse)
|
|
133
|
+
--secrets-file <p> apply: write every shown-once value (executor key, webhook secret) to <p> as
|
|
134
|
+
JSON, mode 0600 (an existing file must already be 0600). Without it they are
|
|
135
|
+
redacted in the output, human and --json alike: they are shown once, so keep the file
|
|
136
|
+
--verbose list unchanged steps and what exists but the file does not mention
|
|
137
|
+
(left alone; --json always carries it as \`extras\`)
|
|
132
138
|
--json the API's answer (plan) or {ok, batches} (apply)
|
|
133
139
|
|
|
140
|
+
\${NAME} is read from the environment anywhere outside pages/posts: a whole value, or
|
|
141
|
+
inside a string (url: \${API_URL}/health); $\${NAME} is the literal text. In content and
|
|
142
|
+
code keys (body, customJs, …) only a whole value. An unset name stops the run.
|
|
143
|
+
The organization must exist: \`forumulate orgs ensure <slug>\` creates it (idempotent).
|
|
144
|
+
apply prints each heartbeat monitor's pingUrl it wrote; \`forumulate heartbeat ping-url\` re-reads it.
|
|
145
|
+
|
|
134
146
|
forumulate.yaml (version: 2):
|
|
135
147
|
version: 2
|
|
136
148
|
org: acme
|
|
@@ -138,7 +150,8 @@ forumulate.yaml (version: 2):
|
|
|
138
150
|
locales: [{code, label}], seo: {...}, translations: {<code>: {name,
|
|
139
151
|
description, seoTitle, seoDescription}}, preset, piecePreset, frontDoor,
|
|
140
152
|
contactForm: {...} | file.yaml (CONTACT), about: {...} | file.yaml (ABOUT)}]
|
|
141
|
-
pages: [{dir: content/docs, space: docs, collection?, locales
|
|
153
|
+
pages: [{dir: content/docs, space: docs, collection?, locales?, ignore?: [globs],
|
|
154
|
+
env?: true (substitute \${NAME} in bodies)} a Markdown folder:
|
|
142
155
|
page.md + page.es.md or es/page.md twins; front matter title, slug,
|
|
143
156
|
seoTitle, seoDescription, canonicalUrl, sections, collection, order
|
|
144
157
|
(or a 01- prefix), draft; sub-folders are collections
|
|
@@ -267,5 +280,6 @@ exports.COMMAND_HELP = {
|
|
|
267
280
|
check: command_2.CHECK_HELP,
|
|
268
281
|
plan: exports.PLAN_HELP,
|
|
269
282
|
apply: exports.PLAN_HELP,
|
|
283
|
+
heartbeat: heartbeat_command_1.HEARTBEAT_HELP,
|
|
270
284
|
};
|
|
271
285
|
//# sourceMappingURL=help-commands.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"help-commands.js","sourceRoot":"","sources":["../src/help-commands.ts"],"names":[],"mappings":";;;AAAA,yCAA2C;AAC3C,8CAA+C;AAC/C,6CAA+C;AAC/C,qCAAuC;AACvC,mDAA6C;A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9B,4BAAe,EAAE,CAAC;AAEP,QAAA,YAAY,GAAG;;;;;;;;;;;;EAY1B,4BAAe,EAAE,CAAC;AAEP,QAAA,WAAW,GAAG;;;;;;;;;;EAUzB,MAAM;;EAEN,4BAAe,EAAE,CAAC;AAEP,QAAA,iBAAiB,GAAG;;;;;;;;;;;;;;;;;;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 (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 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 publish <orgId> <spaceId> <pageId> (deprecated) Publish a page \u2014 use items publish\n publish <orgId> <spaceId> <dir> (deprecated) \u2014 use publish <dir> --org --space\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_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 (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 publish <orgId> <spaceId> <pageId> (deprecated) Publish a page \u2014 use items publish\n publish <orgId> <spaceId> <dir> (deprecated) \u2014 use publish <dir> --org --space\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,gpdA2NhB,CAAC"}
|
package/dist/help.js
CHANGED
|
@@ -101,6 +101,15 @@ Older forms, unchanged:
|
|
|
101
101
|
apply [forumulate.yaml] Carry that plan out, idempotently, every
|
|
102
102
|
write read back; --prune also removes what
|
|
103
103
|
the manifest wrote and no longer declares
|
|
104
|
+
--secrets-file <p> keeps the shown-once keys (0600);
|
|
105
|
+
the output redacts them
|
|
106
|
+
heartbeat ping <monitor> [--fail] Report a job's pass to a heartbeat monitor
|
|
107
|
+
(--message <why> with --fail); forumulate heartbeat --help
|
|
108
|
+
heartbeat ping-url <monitor> Print that monitor's ping URL (it holds its secret)
|
|
109
|
+
orgs ensure <slug> [--name <n>] The organization, created only when missing; safe to
|
|
110
|
+
[--external-ref <ref>] re-run (run it before the first plan/apply)
|
|
111
|
+
domains setup <host> --space <s> What a domain still waits for: mode, pendingReason,
|
|
112
|
+
message; then domains verify / activate <host>
|
|
104
113
|
check links [folder] Broken internal links, #anchors, pictures and
|
|
105
114
|
(--external) outside links in a folder, before
|
|
106
115
|
publishing; exit 1 when any is broken
|
|
@@ -179,6 +188,7 @@ Environment:
|
|
|
179
188
|
ending in /api is used as-is.
|
|
180
189
|
FORUMULATE_API_URL Exact API base, for a local API with no /api prefix
|
|
181
190
|
(http://localhost:4000). Wins over FORUMULATE_URL.
|
|
191
|
+
FORUMULATE_API is read as the same thing.
|
|
182
192
|
FORUMULATE_ORG, FORUMULATE_SPACE, FORUMULATE_LIBRARY
|
|
183
193
|
Defaults for --org, --space and --library; they beat
|
|
184
194
|
\`forumulate config set\`, a flag beats both.
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2NnB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"body-env.d.ts","sourceRoot":"","sources":["../../src/plan/body-env.ts"],"names":[],"mappings":"AAaA,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,CAAC,UAAU,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,EAAE,CAAA;CAAE,CA6BtG"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.substituteBody = substituteBody;
|
|
4
|
+
/**
|
|
5
|
+
* `${NAME}` in a page body (Watchtower W-F9): legal pages carry deploy-specific
|
|
6
|
+
* values (a consent site id, a contact address) and each product ran its own
|
|
7
|
+
* `envsubst` before `apply`. Opt-in per page (`env: true` in front matter or on
|
|
8
|
+
* the manifest's `pages` entry) because a docs page that prints `${HOME}` is
|
|
9
|
+
* content. Fenced blocks and inline code are never touched, for the same reason.
|
|
10
|
+
*
|
|
11
|
+
* An unset name is left as written and reported; a name set to the empty
|
|
12
|
+
* string becomes the empty string. The command refuses to APPLY while any is
|
|
13
|
+
* unset (`--allow-unset-env` overrides), so a literal never goes live by accident.
|
|
14
|
+
*/
|
|
15
|
+
const REF = /\$\{([A-Za-z_][A-Za-z0-9_]*)\}/g;
|
|
16
|
+
function substituteBody(text, env) {
|
|
17
|
+
const unset = new Set();
|
|
18
|
+
const sub = (s) => s.replace(REF, (all, name) => {
|
|
19
|
+
const v = env[name];
|
|
20
|
+
if (v === undefined) {
|
|
21
|
+
unset.add(name);
|
|
22
|
+
return all;
|
|
23
|
+
}
|
|
24
|
+
return v;
|
|
25
|
+
});
|
|
26
|
+
let fence = null;
|
|
27
|
+
const lines = text.split('\n').map((line) => {
|
|
28
|
+
const f = /^\s*(`{3,}|~{3,})/.exec(line);
|
|
29
|
+
if (fence) {
|
|
30
|
+
if (f && f[1].startsWith(fence[0]) && f[1].length >= fence.length)
|
|
31
|
+
fence = null;
|
|
32
|
+
return line;
|
|
33
|
+
}
|
|
34
|
+
if (f) {
|
|
35
|
+
fence = f[1];
|
|
36
|
+
return line;
|
|
37
|
+
}
|
|
38
|
+
// Odd pieces of the split are inline code spans.
|
|
39
|
+
return line
|
|
40
|
+
.split(/(`+[^`]*`+)/)
|
|
41
|
+
.map((part, i) => (i % 2 ? part : sub(part)))
|
|
42
|
+
.join('');
|
|
43
|
+
});
|
|
44
|
+
return { text: lines.join('\n'), unset: [...unset] };
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=body-env.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"body-env.js","sourceRoot":"","sources":["../../src/plan/body-env.ts"],"names":[],"mappings":";;AAaA,wCA6BC;AA1CD;;;;;;;;;;GAUG;AACH,MAAM,GAAG,GAAG,iCAAiC,CAAC;AAE9C,SAAgB,cAAc,CAAC,IAAY,EAAE,GAAsB;IACjE,MAAM,KAAK,GAAG,IAAI,GAAG,EAAU,CAAC;IAChC,MAAM,GAAG,GAAG,CAAC,CAAS,EAAE,EAAE,CACxB,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,IAAY,EAAE,EAAE;QACnC,MAAM,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC;QACpB,IAAI,CAAC,KAAK,SAAS,EAAE,CAAC;YACpB,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YAChB,OAAO,GAAG,CAAC;QACb,CAAC;QACD,OAAO,CAAC,CAAC;IACX,CAAC,CAAC,CAAC;IACL,IAAI,KAAK,GAAkB,IAAI,CAAC;IAChC,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QAC1C,MAAM,CAAC,GAAG,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,KAAK,EAAE,CAAC;YACV,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAE,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAE,CAAC,MAAM,IAAI,KAAK,CAAC,MAAM;gBAAE,KAAK,GAAG,IAAI,CAAC;YACnF,OAAO,IAAI,CAAC;QACd,CAAC;QACD,IAAI,CAAC,EAAE,CAAC;YACN,KAAK,GAAG,CAAC,CAAC,CAAC,CAAE,CAAC;YACd,OAAO,IAAI,CAAC;QACd,CAAC;QACD,iDAAiD;QACjD,OAAO,IAAI;aACR,KAAK,CAAC,aAAa,CAAC;aACpB,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC;aAC5C,IAAI,CAAC,EAAE,CAAC,CAAC;IACd,CAAC,CAAC,CAAC;IACH,OAAO,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,CAAC,EAAE,CAAC;AACvD,CAAC"}
|
package/dist/plan/command.d.ts
CHANGED
|
@@ -27,8 +27,12 @@ export interface PlanFlags {
|
|
|
27
27
|
/** `plan --check`: exit 1 when the plan is not empty (drift detection in CI). */
|
|
28
28
|
check: boolean;
|
|
29
29
|
verbose: boolean;
|
|
30
|
+
/** apply: publish pages whose `${NAME}` is unset as written, instead of refusing. */
|
|
31
|
+
allowUnsetEnv?: boolean;
|
|
30
32
|
/** Changed pages per apply request. */
|
|
31
33
|
batch: number;
|
|
34
|
+
/** `apply --secrets-file`: where every shown-once value goes (mode 0600); stdout redacts them either way. */
|
|
35
|
+
secretsFile?: string;
|
|
32
36
|
}
|
|
33
37
|
export interface PlanCliDeps {
|
|
34
38
|
client: ApiClient;
|
|
@@ -40,6 +44,13 @@ export interface PlanCliDeps {
|
|
|
40
44
|
}
|
|
41
45
|
type Body = Record<string, unknown>;
|
|
42
46
|
export declare function runPlanCommand(flags: PlanFlags, deps: PlanCliDeps): Promise<number>;
|
|
47
|
+
/**
|
|
48
|
+
* plan/apply never create the organization (the manifest is ABOUT one), and a
|
|
49
|
+
* bare 404 left a first run with no next step (Advernue ADV-14).
|
|
50
|
+
*/
|
|
51
|
+
export declare function orgMissingHint(org: string): string;
|
|
52
|
+
/** Why `--secrets-file` cannot be used, or null. An existing file must already be private. */
|
|
53
|
+
export declare function secretsFileProblem(path: string): string | null;
|
|
43
54
|
export declare function hasChanges(answer: ManifestAnswer): boolean;
|
|
44
55
|
/**
|
|
45
56
|
* The apply requests: every page the plan leaves alone is in all of them;
|
|
@@ -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;
|
|
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,EAA0D,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAEvG;;;;;;;;;;;;;;;;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,OAAO,CAAC;IACjB,qFAAqF;IACrF,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,uCAAuC;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,6GAA6G;IAC7G,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,SAAS,CAAC;IAClB,GAAG,EAAE,CAAC,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