@forumulate/cli 0.12.3 → 0.13.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.
Files changed (62) hide show
  1. package/dist/api/operations.json +1 -1
  2. package/dist/api-base.d.ts.map +1 -1
  3. package/dist/api-base.js +3 -1
  4. package/dist/api-base.js.map +1 -1
  5. package/dist/commands/completion.d.ts.map +1 -1
  6. package/dist/commands/completion.js +13 -0
  7. package/dist/commands/completion.js.map +1 -1
  8. package/dist/commands/groups-community.d.ts.map +1 -1
  9. package/dist/commands/groups-community.js +9 -0
  10. package/dist/commands/groups-community.js.map +1 -1
  11. package/dist/commands/groups-org.d.ts.map +1 -1
  12. package/dist/commands/groups-org.js +5 -0
  13. package/dist/commands/groups-org.js.map +1 -1
  14. package/dist/heartbeat-command.d.ts +31 -0
  15. package/dist/heartbeat-command.d.ts.map +1 -0
  16. package/dist/heartbeat-command.js +90 -0
  17. package/dist/heartbeat-command.js.map +1 -0
  18. package/dist/help-commands.d.ts +1 -1
  19. package/dist/help-commands.d.ts.map +1 -1
  20. package/dist/help-commands.js +9 -2
  21. package/dist/help-commands.js.map +1 -1
  22. package/dist/help.d.ts +1 -1
  23. package/dist/help.d.ts.map +1 -1
  24. package/dist/help.js +5 -0
  25. package/dist/help.js.map +1 -1
  26. package/dist/plan/body-env.d.ts +5 -0
  27. package/dist/plan/body-env.d.ts.map +1 -0
  28. package/dist/plan/body-env.js +46 -0
  29. package/dist/plan/body-env.js.map +1 -0
  30. package/dist/plan/command.d.ts +6 -0
  31. package/dist/plan/command.d.ts.map +1 -1
  32. package/dist/plan/command.js +60 -3
  33. package/dist/plan/command.js.map +1 -1
  34. package/dist/plan/document.d.ts +19 -3
  35. package/dist/plan/document.d.ts.map +1 -1
  36. package/dist/plan/document.js +108 -8
  37. package/dist/plan/document.js.map +1 -1
  38. package/dist/plan/markdown-dir.d.ts +12 -8
  39. package/dist/plan/markdown-dir.d.ts.map +1 -1
  40. package/dist/plan/markdown-dir.js +104 -17
  41. package/dist/plan/markdown-dir.js.map +1 -1
  42. package/dist/plan/output.d.ts +15 -0
  43. package/dist/plan/output.d.ts.map +1 -1
  44. package/dist/plan/output.js +40 -3
  45. package/dist/plan/output.js.map +1 -1
  46. package/dist/publish/extras.js +6 -4
  47. package/dist/publish/extras.js.map +1 -1
  48. package/dist/publish/rewrite.d.ts +12 -1
  49. package/dist/publish/rewrite.d.ts.map +1 -1
  50. package/dist/publish/rewrite.js +32 -13
  51. package/dist/publish/rewrite.js.map +1 -1
  52. package/dist/run.d.ts +2 -0
  53. package/dist/run.d.ts.map +1 -1
  54. package/dist/run.js +7 -0
  55. package/dist/run.js.map +1 -1
  56. package/dist/version.d.ts +1 -1
  57. package/dist/version.js +1 -1
  58. package/dist/whoami.d.ts +1 -1
  59. package/dist/whoami.d.ts.map +1 -1
  60. package/dist/whoami.js +1 -1
  61. package/dist/whoami.js.map +1 -1
  62. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"api-base.d.ts","sourceRoot":"","sources":["../src/api-base.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,gBAAgB,+BAA+B,CAAC;AAE7D,KAAK,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;AAQ9C;;;;;;;;;;;;GAYG;AACH,wBAAgB,cAAc,CAAC,GAAG,GAAE,GAAiB,GAAG,MAAM,CAM7D;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,GAAG,GAAE,GAAiB,GAAG,MAAM,GAAG,SAAS,CAEtE"}
1
+ {"version":3,"file":"api-base.d.ts","sourceRoot":"","sources":["../src/api-base.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,gBAAgB,+BAA+B,CAAC;AAE7D,KAAK,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;AAQ9C;;;;;;;;;;;;GAYG;AACH,wBAAgB,cAAc,CAAC,GAAG,GAAE,GAAiB,GAAG,MAAM,CAQ7D;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,GAAG,GAAE,GAAiB,GAAG,MAAM,GAAG,SAAS,CAEtE"}
package/dist/api-base.js CHANGED
@@ -37,7 +37,9 @@ function stated(env, name) {
37
37
  * (`http://localhost:4000`).
38
38
  */
39
39
  function apiBaseFromEnv(env = process.env) {
40
- const direct = stated(env, 'FORUMULATE_API_URL');
40
+ // FORUMULATE_API is the natural spelling a script reaches for (Watchtower W-F10: it set
41
+ // it and nothing read it, so every call went to the default host); same meaning as _URL.
42
+ const direct = stated(env, 'FORUMULATE_API_URL') ?? stated(env, 'FORUMULATE_API');
41
43
  if (direct)
42
44
  return direct;
43
45
  const site = stated(env, 'FORUMULATE_URL');
@@ -1 +1 @@
1
- {"version":3,"file":"api-base.js","sourceRoot":"","sources":["../src/api-base.ts"],"names":[],"mappings":";;;AAqCA,wCAMC;AAQD,kCAEC;AArDD;;;;;;;;;;;;;GAaG;AACU,QAAA,gBAAgB,GAAG,4BAA4B,CAAC;AAI7D,8EAA8E;AAC9E,SAAS,MAAM,CAAC,GAAQ,EAAE,IAAY;IACpC,MAAM,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,CAAC;IAC5B,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AAC/C,CAAC;AAED;;;;;;;;;;;;GAYG;AACH,SAAgB,cAAc,CAAC,MAAW,OAAO,CAAC,GAAG;IACnD,MAAM,MAAM,GAAG,MAAM,CAAC,GAAG,EAAE,oBAAoB,CAAC,CAAC;IACjD,IAAI,MAAM;QAAE,OAAO,MAAM,CAAC;IAC1B,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,EAAE,gBAAgB,CAAC,CAAC;IAC3C,IAAI,C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C,GAAG,IAAI,MAAM,CAAC;AACrD,CAAC;AAED;;;;;GAKG;AACH,SAAgB,WAAW,CAAC,MAAW,OAAO,CAAC,GAAG;IAChD,OAAO,MAAM,CAAC,GAAG,EAAE,gBAAgB,CAAC,EAAE,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;AAC/D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"completion.d.ts","sourceRoot":"","sources":["../../src/commands/completion.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,UAkBrB,CAAC;AAIF,0EAA0E;AAC1E,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAmDlD;AAwDD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CA8BlE"}
1
+ {"version":3,"file":"completion.d.ts","sourceRoot":"","sources":["../../src/commands/completion.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,UAmBrB,CAAC;AAIF,0EAA0E;AAC1E,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAmDlD;AAmED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CA8BlE"}
@@ -23,6 +23,7 @@ exports.TOP_LEVEL = [
23
23
  'sync',
24
24
  'plan',
25
25
  'apply',
26
+ 'heartbeat',
26
27
  'snapshot',
27
28
  'content',
28
29
  'import',
@@ -121,6 +122,18 @@ function flagsFor(cmd, before) {
121
122
  '--space',
122
123
  '--json',
123
124
  ];
125
+ if (cmd === 'heartbeat')
126
+ return ['--org', '--space', '--fail', '--message', '--json'];
127
+ // plan/apply (plan/command.ts); --secrets-file is apply's.
128
+ if (cmd === 'plan' || cmd === 'apply')
129
+ return [
130
+ '--org',
131
+ '--prune',
132
+ '--manifest',
133
+ '--verbose',
134
+ '--json',
135
+ ...(cmd === 'plan' ? ['--diff', '--check'] : ['--batch', '--secrets-file']),
136
+ ];
124
137
  const g = (0, groups_1.findGroup)(cmd);
125
138
  if (!g)
126
139
  return COMMON_FLAGS;
@@ -1 +1 @@
1
- {"version":3,"file":"completion.js","sourceRoot":"","sources":["../../src/commands/completion.ts"],"names":[],"mappings":";;;AAkCA,4BAmDC;AAwDD,4CA8BC;AA3KD,sCAAmF;AACnF,qCAA6C;AAC7C,qCAAuC;AAEvC;;;;;;GAMG;AACU,QAAA,SAAS,GAAG;IACvB,OAAO;IACP,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,KAAK;IACL,SAAS;IACT,MAAM;IACN,MAAM;IACN,OAAO;IACP,UAAU;IACV,SAAS;IACT,QAAQ;IACR,aAAa;IACb,QAAQ;IACR,UAAU;IACV,YAAY;IACZ,MAAM;CACP,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;AAElG,0EAA0E;AAC1E,SAAgB,QAAQ,CAAC,KAAe;IACtC,MAAM,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,GAAG,KAAK,CAAC;IAC7B,MAAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAE,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,EAAE,CAAC,CAAC;IACnE,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACjC,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACtB,MAAM,GAAG,GAAG,CAAC,GAAG,iBAAS,EAAE,GAAG,eAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,C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AAK;YACR,OAAO;;;;;;;;;CASZ,CAAC;QACE,KAAK,MAAM;YACT,OAAO;;;CAGZ,CAAC;QACE;YACE,OAAO,SAAS,CAAC;IACrB,CAAC;AACH,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"groups-community.d.ts","sourceRoot":"","sources":["../../src/commands/groups-community.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AA6DpD;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,EAAE,EAAE,MAAM,EACV,GAAG,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAC7E,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAmCzB;AAID,eAAO,MAAM,gBAAgB,EAAE,QAAQ,EA8QtC,CAAC"}
1
+ {"version":3,"file":"groups-community.d.ts","sourceRoot":"","sources":["../../src/commands/groups-community.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AA6DpD;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,EAAE,EAAE,MAAM,EACV,GAAG,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAC7E,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAmCzB;AAID,eAAO,MAAM,gBAAgB,EAAE,QAAQ,EAwRtC,CAAC"}
@@ -270,6 +270,15 @@ exports.COMMUNITY_GROUPS = [
270
270
  op: 'Changelog_compile',
271
271
  about: 'Release notes compiled from merged changes (--since)',
272
272
  },
273
+ import: {
274
+ op: 'ChangelogImport_import',
275
+ about: 'Bring releases in from a CHANGELOG.md: --file CHANGELOG.md --source keep-a-changelog [--dryRun true] [--publish false]. ' +
276
+ 'Idempotent: a version the changelog has is skipped, so a rerun adds only what is new; the answer lists each release as create or skip. ' +
277
+ 'To UPDATE existing releases from the file, declare `releases: {file: CHANGELOG.md}` in forumulate.yaml and `forumulate apply`.',
278
+ markdown: 'markdown',
279
+ columns: ['version', 'title', 'publishedAt', 'action'],
280
+ pick: 'releases',
281
+ },
273
282
  stats: { op: 'Changelog_widgetStats', about: 'The in-app widget’s reach (--days)' },
274
283
  schedule: {
275
284
  op: 'Changelog_schedule',
@@ -1 +1 @@
1
- {"version":3,"file":"groups-community.js","sourceRoot":"","sources":["../../src/commands/groups-community.ts"],"names":[],"mappings":";;;AAkEA,4CAsCC;AAtGD;;;;;;;GAOG;AAEH,0EAA0E;AAC1E,SAAS,OAAO,CACd,IAAY,EACZ,KAAa,EACb,GAOC,EACD,KAAa,EACb,IAA6B;IAE7B,MAAM,EAAE,GAAG,GAAG,KAAK,IAAI,CAAC;IACxB,OAAO;QACL,IAAI;QACJ,IAAI,EAAE,KAAK;QACX,KAAK;QACL,WAAW,EAAE,MAAM;QACnB,KAAK,EAAE;YACL,IAAI,EAAE;gBACJ,EAAE,EAAE,GAAG,CAAC,IAAI;gBACZ,KAAK,EAAE,QAAQ,KAAK,EAAE;gBACtB,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,aAAa,CAAC;aACzD;YACD,GAAG,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,GAAG,EAAE,KAAK,EAAE,WAAW,KAAK,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE;YAC3D,MAAM,EAAE;gBACN,EAAE,EAAE,GAAG,CAAC,MAAM;gBACd,KAAK,EAAE,YAAY,KAAK,yCAAyC;gBACjE,IAAI,EAAE,CAAC,OAAO,CA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CAAC,EAAE;YACxF,MAAM,EAAE;gBACN,EAAE,EAAE,mBAAmB;gBACvB,KAAK,EAAE,sCAAsC;gBAC7C,IAAI,EAAE,CAAC,CAAC,EAAE,QAAQ,CAAC;aACpB;YACD,IAAI,EAAE,EAAE,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE;YAC7D,OAAO,EAAE;gBACP,EAAE,EAAE,iBAAiB;gBACrB,KAAK,EAAE,uBAAuB;gBAC9B,IAAI,EAAE,CAAC,CAAC,EAAE,aAAa,CAAC;gBACxB,QAAQ,EAAE,UAAU;aACrB;YACD,KAAK,EAAE;gBACL,EAAE,EAAE,eAAe;gBACnB,KAAK,EAAE,4BAA4B;gBACnC,IAAI,EAAE,CAAC,CAAC,EAAE,aAAa,CAAC;gBACxB,WAAW,EAAE,IAAI;aAClB;YACD,kBAAkB,EAAE;gBAClB,EAAE,EAAE,oBAAoB;gBACxB,KAAK,EAAE,8BAA8B;gBACrC,IAAI,EAAE,CAAC,CAAC,CAAC;aACV;YACD,iBAAiB,EAAE;gBACjB,EAAE,EAAE,yBAAyB;gBAC7B,KAAK,EAAE,qDAAqD;gBAC5D,IAAI,EAAE,CAAC,CAAC,EAAE,SAAS,CAAC;aACrB;YACD,oBAAoB,EAAE;gBACpB,EAAE,EAAE,yBAAyB;gBAC7B,KAAK,EAAE,YAAY;gBACnB,IAAI,EAAE,CAAC,CAAC,EAAE,QAAQ,CAAC;gBACnB,WAAW,EAAE,IAAI;aAClB;SACF;KACF;CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"groups-org.d.ts","sourceRoot":"","sources":["../../src/commands/groups-org.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,EAAE,QAAQ,EAmchC,CAAC"}
1
+ {"version":3,"file":"groups-org.d.ts","sourceRoot":"","sources":["../../src/commands/groups-org.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,EAAE,QAAQ,EAwchC,CAAC"}
@@ -76,6 +76,11 @@ exports.ORG_GROUPS = [
76
76
  args: ['userId'],
77
77
  destructive: true,
78
78
  },
79
+ 'remove-external': {
80
+ op: 'Member_removeByExternal',
81
+ about: 'Remove every member an identity provider issued an id to (--externalId, --externalProvider)',
82
+ destructive: true,
83
+ },
79
84
  'sign-out': {
80
85
  op: 'Member_revokeSessions',
81
86
  about: 'End every session a member has open',
@@ -1 +1 @@
1
- {"version":3,"file":"groups-org.js","sourceRoot":"","sources":["../../src/commands/groups-org.ts"],"names":[],"mappings":";;;AAEA;;;;;;GAMG;AACU,QAAA,UAAU,GAAe;IACpC;QACE,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,KAAK;QACX,KAAK,EAAE,4EAA4E;QACnF,KAAK,EAAE;YACL,IAAI,EAAE;gBACJ,EAAE,EAAE,UAAU;gBACd,KAAK,EAAE,yBAAyB;gBAChC,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;aACxC;YACD,GAAG,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,mCAAmC,EAAE,IAAI,EAAE,CAAC,OAAO,CAAC,EAAE;YACnF,MAAM,EAAE,EAAE,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,wBAAwB,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE;YAC7E,MAAM,EAAE,EAAE,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,wBAAwB,EAAE,IAAI,EAAE,CAAC,OAAO,CAAC,EAAE;YAC9E,MAAM,EAAE;gBACN,EAAE,EAAE,YAAY;gBAChB,KAAK,EAAE,wBAAwB;gBAC/B,IAAI,EAAE,CAAC,OAAO,CAAC;gBAC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AAE,KAAK,EAAE,kCAAkC,EAAE;YAC3E,MAAM,EAAE;gBACN,EAAE,EAAE,iBAAiB;gBACrB,KAAK,EAAE,+BAA+B;gBACtC,QAAQ,EAAE,WAAW;aACtB;SACF;KACF;IACD;;;;;OAKG;IACH;QACE,IAAI,EAAE,oBAAoB;QAC1B,OAAO,EAAE,CAAC,YAAY,CAAC;QACvB,IAAI,EAAE,mBAAmB;QACzB,KAAK,EAAE,gEAAgE;QACvE,WAAW,EAAE,MAAM;QACnB,KAAK,EAAE;YACL,IAAI,EAAE;gBACJ,EAAE,EAAE,uBAAuB;gBAC3B,KAAK,EAAE,+BAA+B;gBACtC,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,cAAc,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,CAAC;aAC5F;YACD,MAAM,EAAE;gBACN,EAAE,EAAE,yBAAyB;gBAC7B,KAAK,EACH,iGAAiG;gBACnG,IAAI,EAAE,CAAC,MAAM,CAAC;aACf;YACD,MAAM,EAAE;gBACN,EAAE,EAAE,yBAAyB;gBAC7B,KAAK,EAAE,iDAAiD;gBACxD,IAAI,EAAE,CAAC,IAAI,CAAC;gBACZ,WAAW,EAAE,IAAI;gBACjB,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,uBAAuB,EAAE,KAAK,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE;aACrE;SACF;KACF;CACF,CAAC"}
@@ -0,0 +1,31 @@
1
+ import { type ApiClient } from './publish/client';
2
+ /**
3
+ * `forumulate heartbeat ping <monitor> [--fail] [--message <text>]`: report a
4
+ * pass of a job from a shell, a cron line or CI, to the monitor's ping URL.
5
+ *
6
+ * The monitor is named the way a person knows it (its name, or its id), and
7
+ * the ping URL is read from the API rather than asked for: the URL carries the
8
+ * monitor's secret, and a CLI that wanted it pasted would put that secret in a
9
+ * crontab and a shell history. The ping itself is anonymous (the token is in
10
+ * the URL), so it does not need, and does not send, the account token.
11
+ *
12
+ * `--fail` posts `{"ok": false, "detail": …}`: the component reads partial
13
+ * outage with the job's own words, not the silence that reads as an outage
14
+ * only after 1.5x the interval.
15
+ */
16
+ export interface HeartbeatDeps {
17
+ client: ApiClient;
18
+ out: (l: string) => void;
19
+ err: (l: string) => void;
20
+ env?: NodeJS.ProcessEnv;
21
+ fetch?: typeof fetch;
22
+ }
23
+ 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\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\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\"";
24
+ export declare function runHeartbeat(rest: string[], flags: {
25
+ org?: string;
26
+ space?: string;
27
+ fail: boolean;
28
+ message?: string;
29
+ json: boolean;
30
+ }, deps: HeartbeatDeps): Promise<number>;
31
+ //# 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;;;;;;;;;;;;;GAaG;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,8pCAsBqD,CAAC;AAQjF,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,CAgEjB"}
@@ -0,0 +1,90 @@
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
+
13
+ <monitor> is the monitor's name or id. The ping URL (which holds the monitor's secret) is read from
14
+ the API, so it never has to be pasted into a crontab. Without --space every STATUS space of the
15
+ organization is searched.
16
+
17
+ Flags:
18
+ --org <o> the organization (else FORUMULATE_ORG)
19
+ --space <s> the STATUS space holding the monitor
20
+ --fail report that the run did NOT go cleanly: posts {"ok": false, "detail": <message>},
21
+ which the page shows as a partial outage in the job's own words
22
+ --message <t> what went wrong (kept up to 500 characters; only with --fail)
23
+ --json the answer as JSON
24
+
25
+ A monitor goes down when no ping arrives within 1.5x its interval, so ping at the END of a run, and
26
+ ping --fail when a run finished but did not do its work.
27
+
28
+ Examples:
29
+ forumulate heartbeat ping Reminders --org acme --space status
30
+ forumulate heartbeat ping Reminders --fail --message "3 of 40 emails bounced"`;
31
+ async function runHeartbeat(rest, flags, deps) {
32
+ const [verb, ...names] = rest;
33
+ const name = names.join(' ').trim();
34
+ if (verb !== 'ping' || !name) {
35
+ deps.err('usage: forumulate heartbeat ping <monitor> [--fail] [--message <text>]');
36
+ return exit_codes_1.EXIT.USAGE;
37
+ }
38
+ if (flags.message && !flags.fail) {
39
+ deps.err('forumulate heartbeat: --message says what went wrong, so it goes with --fail.');
40
+ return exit_codes_1.EXIT.USAGE;
41
+ }
42
+ const org = flags.org ?? deps.env?.FORUMULATE_ORG ?? process.env.FORUMULATE_ORG;
43
+ if (!org) {
44
+ deps.err('Which organization? Pass --org or set FORUMULATE_ORG.');
45
+ return exit_codes_1.EXIT.USAGE;
46
+ }
47
+ try {
48
+ const base = `/orgs/${encodeURIComponent(org)}/spaces`;
49
+ const all = await new api_1.PublishApi({ client: deps.client, authed: true, readOnly: true, paceMs: 0 }).all(base, 'spaces', { limit: 500 });
50
+ const spaces = flags.space
51
+ ? all.filter((s) => s.id === flags.space || s.slug === flags.space)
52
+ : all.filter((s) => (s.type ?? '').toUpperCase() === 'STATUS');
53
+ const found = [];
54
+ for (const space of spaces) {
55
+ const { monitors } = await deps.client.request('GET', `${base}/${encodeURIComponent(space.id)}/status/monitors`);
56
+ found.push(...monitors.filter((m) => m.id === name || m.name.toLowerCase() === name.toLowerCase()));
57
+ }
58
+ if (found.length !== 1) {
59
+ deps.err(found.length
60
+ ? `"${name}" matches ${found.length} monitors (${found.map((m) => m.id).join(', ')}); pass the id.`
61
+ : `No monitor named "${name}" in ${flags.space ? `space ${flags.space}` : 'a STATUS space of this organization'}.`);
62
+ return found.length ? exit_codes_1.EXIT.USAGE : exit_codes_1.EXIT.NOT_FOUND;
63
+ }
64
+ const monitor = found[0];
65
+ if (!monitor.pingUrl) {
66
+ deps.err(`${monitor.name} is not a heartbeat monitor (kind ${monitor.kind ?? 'unknown'}); nothing pings it.`);
67
+ return exit_codes_1.EXIT.USAGE;
68
+ }
69
+ const body = flags.fail ? { ok: false, ...(flags.message ? { detail: flags.message } : {}) } : { ok: true };
70
+ const res = await (deps.fetch ?? fetch)(monitor.pingUrl, {
71
+ method: 'POST',
72
+ headers: { 'content-type': 'application/json' },
73
+ body: JSON.stringify(body),
74
+ });
75
+ if (!res.ok) {
76
+ deps.err(`forumulate heartbeat: the ping answered ${res.status}`);
77
+ return exit_codes_1.EXIT.FAILED;
78
+ }
79
+ if (flags.json)
80
+ deps.out(JSON.stringify({ monitor: monitor.name, id: monitor.id, sent: body }));
81
+ else
82
+ deps.out(`${flags.fail ? 'Reported a failed pass for' : 'Pinged'} ${monitor.name}.`);
83
+ return exit_codes_1.EXIT.OK;
84
+ }
85
+ catch (e) {
86
+ deps.err(`forumulate heartbeat: ${(0, client_1.errorText)(e)}`);
87
+ return (0, exit_codes_1.exitCodeForError)(e);
88
+ }
89
+ }
90
+ //# sourceMappingURL=heartbeat-command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"heartbeat-command.js","sourceRoot":"","sources":["../src/heartbeat-command.ts"],"names":[],"mappings":";;;AA+DA,oCAoEC;AAnID,uCAA2C;AAC3C,6CAA6D;AAC7D,6CAAsD;AA+BzC,QAAA,cAAc,GAAG;;;;;;;;;;;;;;;;;;;;;;gFAsBkD,CAAC;AAQ1E,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,IAAI,KAAK,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC;QAC7B,IAAI,CAAC,GAAG,CAAC,wEAAwE,CAAC,CAAC;QACnF,OAA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6BAAgB,EAAC,CAAC,CAAC,CAAC;IAC7B,CAAC;AACH,CAAC"}
@@ -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 everything left alone\n --json the API's answer (plan) or {ok, batches} (apply)\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?} 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)";
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 everything left alone\n --json the API's answer (plan) or {ok, batches} (apply)\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":"AAsBA,eAAO,MAAM,YAAY,g2JA0EN,CAAC;AAEpB,eAAO,MAAM,SAAS,u6BAYH,CAAC;AAEpB,eAAO,MAAM,SAAS,8iGA8CH,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,CAoBzD,CAAC"}
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,+hHAmDH,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"}
@@ -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,6 +129,10 @@ 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)
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
131
136
  --verbose list unchanged steps and everything left alone
132
137
  --json the API's answer (plan) or {ok, batches} (apply)
133
138
 
@@ -138,7 +143,8 @@ forumulate.yaml (version: 2):
138
143
  locales: [{code, label}], seo: {...}, translations: {<code>: {name,
139
144
  description, seoTitle, seoDescription}}, preset, piecePreset, frontDoor,
140
145
  contactForm: {...} | file.yaml (CONTACT), about: {...} | file.yaml (ABOUT)}]
141
- pages: [{dir: content/docs, space: docs, collection?, locales?} a Markdown folder:
146
+ pages: [{dir: content/docs, space: docs, collection?, locales?, ignore?: [globs],
147
+ env?: true (substitute \${NAME} in bodies)} a Markdown folder:
142
148
  page.md + page.es.md or es/page.md twins; front matter title, slug,
143
149
  seoTitle, seoDescription, canonicalUrl, sections, collection, order
144
150
  (or a 01- prefix), draft; sub-folders are collections
@@ -267,5 +273,6 @@ exports.COMMAND_HELP = {
267
273
  check: command_2.CHECK_HELP,
268
274
  plan: exports.PLAN_HELP,
269
275
  apply: exports.PLAN_HELP,
276
+ heartbeat: heartbeat_command_1.HEARTBEAT_HELP,
270
277
  };
271
278
  //# 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;AAC7C,6EAA6E;AAC7E,6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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 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
@@ -1 +1 @@
1
- {"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../src/help.ts"],"names":[],"mappings":"AAAA,2FAA2F;AAC3F,eAAO,MAAM,IAAI,+0bAiNhB,CAAC"}
1
+ {"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../src/help.ts"],"names":[],"mappings":"AAAA,2FAA2F;AAC3F,eAAO,MAAM,IAAI,0tcAsNhB,CAAC"}
package/dist/help.js CHANGED
@@ -101,6 +101,10 @@ 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
104
108
  check links [folder] Broken internal links, #anchors, pictures and
105
109
  (--external) outside links in a folder, before
106
110
  publishing; exit 1 when any is broken
@@ -179,6 +183,7 @@ Environment:
179
183
  ending in /api is used as-is.
180
184
  FORUMULATE_API_URL Exact API base, for a local API with no /api prefix
181
185
  (http://localhost:4000). Wins over FORUMULATE_URL.
186
+ FORUMULATE_API is read as the same thing.
182
187
  FORUMULATE_ORG, FORUMULATE_SPACE, FORUMULATE_LIBRARY
183
188
  Defaults for --org, --space and --library; they beat
184
189
  \`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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiNnB,CAAC"}
1
+ {"version":3,"file":"help.js","sourceRoot":"","sources":["../src/help.ts"],"names":[],"mappings":";;;AAAA,2FAA2F;AAC9E,QAAA,IAAI,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsNnB,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare function substituteBody(text: string, env: NodeJS.ProcessEnv): {
2
+ text: string;
3
+ unset: string[];
4
+ };
5
+ //# sourceMappingURL=body-env.d.ts.map
@@ -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"}