@forumulate/cli 0.18.2 → 0.19.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/commands/groups-types.d.ts.map +1 -1
- package/dist/commands/groups-types.js +142 -2
- package/dist/commands/groups-types.js.map +1 -1
- package/dist/doctor/command.d.ts +1 -1
- package/dist/doctor/command.d.ts.map +1 -1
- package/dist/doctor/command.js +31 -1
- package/dist/doctor/command.js.map +1 -1
- package/dist/doctor/org-report.d.ts +4 -0
- package/dist/doctor/org-report.d.ts.map +1 -0
- package/dist/doctor/org-report.js +37 -0
- package/dist/doctor/org-report.js.map +1 -0
- package/dist/help.d.ts +1 -1
- package/dist/help.d.ts.map +1 -1
- package/dist/help.js +1 -1
- package/dist/plan/document.d.ts.map +1 -1
- package/dist/plan/document.js +23 -0
- package/dist/plan/document.js.map +1 -1
- package/dist/plan/output.d.ts +2 -0
- package/dist/plan/output.d.ts.map +1 -1
- package/dist/plan/output.js +22 -0
- package/dist/plan/output.js.map +1 -1
- package/dist/publish/command.d.ts.map +1 -1
- package/dist/publish/command.js +4 -0
- package/dist/publish/command.js.map +1 -1
- package/dist/publish/compare-sync.d.ts +27 -0
- package/dist/publish/compare-sync.d.ts.map +1 -0
- package/dist/publish/compare-sync.js +107 -0
- package/dist/publish/compare-sync.js.map +1 -0
- package/dist/publish/frontmatter.d.ts +1 -1
- package/dist/publish/frontmatter.d.ts.map +1 -1
- package/dist/publish/frontmatter.js +2 -0
- package/dist/publish/frontmatter.js.map +1 -1
- package/dist/publish/manifest.d.ts.map +1 -1
- package/dist/publish/manifest.js +2 -0
- package/dist/publish/manifest.js.map +1 -1
- package/dist/publish/types.d.ts +2 -0
- package/dist/publish/types.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"groups-types.d.ts","sourceRoot":"","sources":["../../src/commands/groups-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAS3C,eAAO,MAAM,WAAW,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"groups-types.d.ts","sourceRoot":"","sources":["../../src/commands/groups-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAS3C,eAAO,MAAM,WAAW,EAAE,QAAQ,EA4cjC,CAAC"}
|
|
@@ -4,7 +4,7 @@ exports.TYPE_GROUPS = void 0;
|
|
|
4
4
|
const groups_community_1 = require("./groups-community");
|
|
5
5
|
/**
|
|
6
6
|
* The other space types' own work: a status page (incidents from on-call
|
|
7
|
-
* tooling, components, channels), events, courses, careers, and forms.
|
|
7
|
+
* tooling, components, channels), events, courses, careers, about, and forms.
|
|
8
8
|
*/
|
|
9
9
|
const I = 'incidentId';
|
|
10
10
|
exports.TYPE_GROUPS = [
|
|
@@ -235,7 +235,7 @@ exports.TYPE_GROUPS = [
|
|
|
235
235
|
{
|
|
236
236
|
name: 'careers',
|
|
237
237
|
noun: 'application',
|
|
238
|
-
about: 'a careers space: applications, pipeline, form,
|
|
238
|
+
about: 'a careers space: applications, pipeline, form, offers, reports, ATS, indexing, the talent community',
|
|
239
239
|
defaultVerb: 'list',
|
|
240
240
|
verbs: {
|
|
241
241
|
list: {
|
|
@@ -275,6 +275,146 @@ exports.TYPE_GROUPS = [
|
|
|
275
275
|
about: 'Every application as CSV',
|
|
276
276
|
download: 'applications.csv',
|
|
277
277
|
},
|
|
278
|
+
// Hiring beyond one application: bulk moves, the report, a candidate's link, offers.
|
|
279
|
+
bulk: {
|
|
280
|
+
op: 'CareersHiring_bulk',
|
|
281
|
+
about: 'Move many applications at once (ids a,b; --status, --template)',
|
|
282
|
+
args: ['ids'],
|
|
283
|
+
destructive: true,
|
|
284
|
+
},
|
|
285
|
+
report: { op: 'CareersHiring_report', about: 'The hiring report: funnel, sources, time to hire' },
|
|
286
|
+
'status-link': {
|
|
287
|
+
op: 'CareersHiring_statusLink',
|
|
288
|
+
about: 'A fresh status link for a candidate (replaces the old one)',
|
|
289
|
+
args: ['id'],
|
|
290
|
+
},
|
|
291
|
+
'offer get': { op: 'CareersHiring_getOffer', about: 'The live offer, or null', args: ['id'] },
|
|
292
|
+
'offer set': {
|
|
293
|
+
op: 'CareersHiring_putOffer',
|
|
294
|
+
about: 'Write the draft offer (--compensation, --startDate)',
|
|
295
|
+
args: ['id', 'title', 'letter...'],
|
|
296
|
+
},
|
|
297
|
+
'offer action': {
|
|
298
|
+
op: 'CareersHiring_offerAction',
|
|
299
|
+
about: 'approve (another member), send or withdraw an offer',
|
|
300
|
+
args: ['id', 'action'],
|
|
301
|
+
},
|
|
302
|
+
// The connected ATS board: read in on a schedule, roles written as pages.
|
|
303
|
+
'ats get': { op: 'CareersAts_get', about: 'The connected ATS board and its last pass' },
|
|
304
|
+
'ats set': {
|
|
305
|
+
op: 'CareersAts_set',
|
|
306
|
+
about: 'Connect a board (greenhouse|lever|ashby|workable|…; --apiKey for keyed ones)',
|
|
307
|
+
args: ['provider', 'board'],
|
|
308
|
+
previewFirst: 'dryRun',
|
|
309
|
+
},
|
|
310
|
+
'ats sync': { op: 'CareersAts_sync', about: 'Read the board now' },
|
|
311
|
+
'ats disconnect': {
|
|
312
|
+
op: 'CareersAts_remove',
|
|
313
|
+
about: 'Disconnect the board (roles already written stay)',
|
|
314
|
+
destructive: true,
|
|
315
|
+
},
|
|
316
|
+
// Search-engine pings: Google's Indexing API (org key) and IndexNow (no key).
|
|
317
|
+
'indexing get': { op: 'CareersIndexing_view', about: 'What Google was told about each role' },
|
|
318
|
+
'indexing test': { op: 'CareersIndexing_test', about: 'Test the Google key against this board' },
|
|
319
|
+
'indexing submit': { op: 'CareersIndexing_submit', about: 'Tell Google about every role (200 a day)' },
|
|
320
|
+
'google status': { op: 'GoogleIndexing_status', about: 'Whether a Google service account is stored' },
|
|
321
|
+
'google key': {
|
|
322
|
+
op: 'GoogleIndexing_configure',
|
|
323
|
+
about: 'Store the service-account key (JSON) and switch pings on',
|
|
324
|
+
args: ['serviceAccount'],
|
|
325
|
+
},
|
|
326
|
+
'google set': {
|
|
327
|
+
op: 'GoogleIndexing_patch',
|
|
328
|
+
about: 'Switch Google pings on or off (true|false)',
|
|
329
|
+
args: ['enabled'],
|
|
330
|
+
},
|
|
331
|
+
'google clear': {
|
|
332
|
+
op: 'GoogleIndexing_clear',
|
|
333
|
+
about: 'Remove the stored key',
|
|
334
|
+
destructive: true,
|
|
335
|
+
},
|
|
336
|
+
'indexnow get': { op: 'CareersIndexNow_read', about: 'Whether IndexNow pings are on' },
|
|
337
|
+
'indexnow set': {
|
|
338
|
+
op: 'CareersIndexNow_write',
|
|
339
|
+
about: 'Switch IndexNow pings (Bing, Yandex) on or off (true|false)',
|
|
340
|
+
args: ['indexNow'],
|
|
341
|
+
},
|
|
342
|
+
// The talent community: who joined "email me when a role opens".
|
|
343
|
+
'subscribers list': {
|
|
344
|
+
op: 'CareersTalent_subscribers',
|
|
345
|
+
about: 'The talent community',
|
|
346
|
+
columns: ['id', 'email', 'status', 'tags', 'createdAt'],
|
|
347
|
+
},
|
|
348
|
+
'subscribers export': {
|
|
349
|
+
op: 'CareersTalent_subscribersCsv',
|
|
350
|
+
about: 'The talent community as CSV',
|
|
351
|
+
download: 'talent-community.csv',
|
|
352
|
+
},
|
|
353
|
+
'subscribers tag': {
|
|
354
|
+
op: 'CareersTalent_setSubscriberTags',
|
|
355
|
+
about: 'Replace a subscriber’s labels (tags a,b)',
|
|
356
|
+
args: ['subscriberId', 'tags'],
|
|
357
|
+
},
|
|
358
|
+
'subscribers remove': {
|
|
359
|
+
op: 'CareersTalent_removeSubscriber',
|
|
360
|
+
about: 'Delete a subscriber outright',
|
|
361
|
+
args: ['subscriberId'],
|
|
362
|
+
destructive: true,
|
|
363
|
+
},
|
|
364
|
+
'subscribers tags': { op: 'CareersTalent_subscriberTags', about: 'Labels in use' },
|
|
365
|
+
'broadcasts list': {
|
|
366
|
+
op: 'CareersTalent_broadcasts',
|
|
367
|
+
about: 'Broadcasts sent to the talent community',
|
|
368
|
+
columns: ['id', 'subject', 'status', 'recipientCount', 'sentAt'],
|
|
369
|
+
},
|
|
370
|
+
'broadcasts send': {
|
|
371
|
+
op: 'CareersTalent_sendBroadcast',
|
|
372
|
+
about: 'Mail the talent community (--segment for labels)',
|
|
373
|
+
args: ['subject', 'body...'],
|
|
374
|
+
destructive: true,
|
|
375
|
+
},
|
|
376
|
+
},
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
name: 'about',
|
|
380
|
+
noun: 'part',
|
|
381
|
+
about: 'an About space: the page’s parts (team, numbers, press kit, company facts, translations), its change history and an import from your website',
|
|
382
|
+
defaultVerb: 'get',
|
|
383
|
+
verbs: {
|
|
384
|
+
get: { op: 'About_details', about: 'The page’s parts as stored (translations included)' },
|
|
385
|
+
set: {
|
|
386
|
+
op: 'About_setDetails',
|
|
387
|
+
about: 'Write parts (--data @about.json): a key you send replaces it, null clears it, one you leave out is kept; --prune replaces the lot',
|
|
388
|
+
previewFirst: 'dryRun',
|
|
389
|
+
},
|
|
390
|
+
patch: {
|
|
391
|
+
op: 'About_patchDetails',
|
|
392
|
+
about: 'Change part of a part (--data \'{"hero":{"headline":"…"}}\'), keeping the rest of it',
|
|
393
|
+
},
|
|
394
|
+
preview: {
|
|
395
|
+
op: 'About_preview',
|
|
396
|
+
about: 'The page resolved as a reader sees it (--locale de): people, live sources, company facts',
|
|
397
|
+
},
|
|
398
|
+
prefill: {
|
|
399
|
+
op: 'About_prefill',
|
|
400
|
+
about: 'What the page can start from: the org’s name and logo, social profiles, author profiles, staff',
|
|
401
|
+
},
|
|
402
|
+
import: {
|
|
403
|
+
op: 'About_suggest',
|
|
404
|
+
about: 'Suggest a page from your current website (its Organization markup and share tags); writes nothing — pipe `.details` to `about set`',
|
|
405
|
+
args: ['url'],
|
|
406
|
+
},
|
|
407
|
+
history: {
|
|
408
|
+
op: 'About_history',
|
|
409
|
+
about: 'Every change to the parts, newest first (--limit): who, which keys, before and after',
|
|
410
|
+
columns: ['id', 'at', 'action', 'keys'],
|
|
411
|
+
pick: 'entries',
|
|
412
|
+
},
|
|
413
|
+
undo: {
|
|
414
|
+
op: 'About_revert',
|
|
415
|
+
about: 'Undo one change from `about history`: its keys go back as they were before it',
|
|
416
|
+
args: ['entryId'],
|
|
417
|
+
},
|
|
278
418
|
},
|
|
279
419
|
},
|
|
280
420
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"groups-types.js","sourceRoot":"","sources":["../../src/commands/groups-types.ts"],"names":[],"mappings":";;;AACA,yDAAsD;AAEtD;;;GAGG;AACH,MAAM,CAAC,GAAG,YAAY,CAAC;AAEV,QAAA,WAAW,GAAe;IACrC;QACE,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,UAAU;QAChB,KAAK,EAAE,0EAA0E;QACjF,WAAW,EAAE,OAAO;QACpB,KAAK,EAAE;YACL,KAAK,EAAE,EAAE,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE,sDAAsD,EAAE;YAC5F,gBAAgB,EAAE;gBAChB,EAAE,EAAE,cAAc;gBAClB,KAAK,EAAE,gBAAgB;gBACvB,IAAI,EAAE,WAAW;gBACjB,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,WAAW,CAAC;aAC3D;YACD,kBAAkB,EAAE;gBAClB,EAAE,EAAE,uBAAuB;gBAC3B,KAAK,EAAE,oDAAoD;gBAC3D,IAAI,EAAE,CAAC,OAAO,CAAC;gBACf,QAAQ,EAAE,UAAU;aACrB;YACD,kBAAkB,EAAE;gBAClB,EAAE,EAAE,uBAAuB;gBAC3B,KAAK,EAAE,0CAA0C;gBACjD,IAAI,EAAE,CAAC,CAAC,CAAC;aACV;YACD,gBAAgB,EAAE;gBAChB,EAAE,EAAE,0BAA0B;gBAC9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,EAAE,MAAM,CAAC;aACzC;YACD,oBAAoB,EAAE;gBACpB,EAAE,EAAE,wBAAwB;gBAC5B,KAAK,EAAE,qBAAqB;gBAC5B,IAAI,EAAE,CAAC,QAAQ,EAAE,cAAc,CAAC;gBAChC,WAAW,EAAE,IAAI;aAClB;SACF;KACF;CACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"groups-types.js","sourceRoot":"","sources":["../../src/commands/groups-types.ts"],"names":[],"mappings":";;;AACA,yDAAsD;AAEtD;;;GAGG;AACH,MAAM,CAAC,GAAG,YAAY,CAAC;AAEV,QAAA,WAAW,GAAe;IACrC;QACE,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,UAAU;QAChB,KAAK,EAAE,0EAA0E;QACjF,WAAW,EAAE,OAAO;QACpB,KAAK,EAAE;YACL,KAAK,EAAE,EAAE,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE,sDAAsD,EAAE;YAC5F,gBAAgB,EAAE;gBAChB,EAAE,EAAE,cAAc;gBAClB,KAAK,EAAE,gBAAgB;gBACvB,IAAI,EAAE,WAAW;gBACjB,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,WAAW,CAAC;aAC3D;YACD,kBAAkB,EAAE;gBAClB,EAAE,EAAE,uBAAuB;gBAC3B,KAAK,EAAE,oDAAoD;gBAC3D,IAAI,EAAE,CAAC,OAAO,CAAC;gBACf,QAAQ,EAAE,UAAU;aACrB;YACD,kBAAkB,EAAE;gBAClB,EAAE,EAAE,uBAAuB;gBAC3B,KAAK,EAAE,0CAA0C;gBACjD,IAAI,EAAE,CAAC,CAAC,CAAC;aACV;YACD,gBAAgB,EAAE;gBAChB,EAAE,EAAE,0BAA0B;gBAC9B,KAAK,EAAE,+BAA+B;gBACtC,IAAI,EAAE,CAAC,CAAC,EAAE,SAAS,CAAC;aACrB;YACD,iBAAiB,EAAE;gBACjB,EAAE,EAAE,iBAAiB;gBACrB,KAAK,EAAE,4BAA4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,eAAe;gBACnB,KAAK,EAAE,4CAA4C;gBACnD,IAAI,EAAE,CAAC,QAAQ,EAAE,cAAc,EAAE,MAAM,CAAC;aACzC;YACD,oBAAoB,EAAE;gBACpB,EAAE,EAAE,wBAAwB;gBAC5B,KAAK,EAAE,qBAAqB;gBAC5B,IAAI,EAAE,CAAC,QAAQ,EAAE,cAAc,CAAC;gBAChC,WAAW,EAAE,IAAI;aAClB;SACF;KACF;CACF,CAAC"}
|
package/dist/doctor/command.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Http } from '../api/http';
|
|
2
2
|
import { type DoctorReport } from '../doctor';
|
|
3
3
|
export declare const DOCTOR_CHECK_IDS: readonly string[];
|
|
4
|
-
export declare const DOCTOR_HELP = "forumulate doctor \u2014 check a live site from the outside\n\nUsage:\n forumulate doctor <readerUrl> [flags]\n forumulate doctor --site <slug|id> [--org <slug|id>] [flags]\n\nPlain HTTP, no token needed for a URL: the same report against our platform, a\nstaging mount or any other docs host. --site asks the API for every address of\nevery space on a site (needs a token), and checks each copy.\n\nFlags:\n --site <slug|id> every member space, at its custom domain AND its\n platform copy (token: FORUMULATE_TOKEN or `login`)\n --org <slug|id> the org --site is in (default: FORUMULATE_ORG / config)\n --also <url> another address of the same page, e.g. the platform copy\n of a custom-domain page (repeatable)\n --only a,b run just these checks (ids below)\n --json the full report as JSON on stdout (nothing else there)\n --api-base <origin> where /api/health lives, when not on the page's host\n --platform-host <h> the hosting platform's hostname, for white-label and\n canonical checks (default: FORUMULATE_URL's host, else\n forumulate.com)\n --limit <n> sitemap URLs to sample (default 60)\n --timeout <ms> per-request timeout (default 15000)\n\nChecks (id \u2014 what fails it):\n health /api/health not 2xx JSON (also tried under the mount)\n public-read a logged-out reader is sent to sign-in\n canonical the page's canonical names another host\n html-untouched a proxy rewrites the markup (email obfuscation)\n cache-headers no Cache-Control, or no-store, on the page\n robots / sitemap robots.txt missing, disallows the path, no Sitemap:\n crawler-access a crawler gets a different status than a reader\n feeds an advertised feed does not answer 200\n images a picture on the page does not load\n canonical-both-addresses a page's copies (custom domain, platform) name\n different canonicals, or not the primary address\n sitemap-crawl a sitemap URL redirects, 404s, is on another host or\n names another canonical\n cache-consistency pages of one space cached differently (public vs\n private/no-store) with no x-forumulate-cache-reason\n root-redirect a space root answers 302/307, or a redirect with a\n body over 1 KB, or lands on a page canonical elsewhere\n meta-description missing description/og:description, template text\n (\"Guides and reference, in a nested tree.\"), or\n headings run together\n llms-txt /llms.txt missing, no H1, preset summary, links on\n another host, slugs in titles, no sections/descriptions\n favicon /favicon.ico or <link rel=icon> not an image; an\n asset path answering a large HTML page\n consent-tag a consent manager (any CMP: Cookie Munch, Cookiebot,\n OneTrust, Osano, Termly, Usercentrics, Didomi,\n iubenda, Complianz, TCF) not told the page language\n white-label-leaks a custom-domain page or its .md twin links to the\n platform host\n robots-params (advice) prints the Disallow lines that keep crawlers\n off each mount's ?sort= / ?period= / ?range= copies\n reader-auth-atlas (advice, needs --org and a token) the organization\n uses Atlas but signs readers in another way (an\n external_jwt route): prints the relink and the switch\n to the Atlas reader provider (readerAuth: atlas)\n\nExamples:\n forumulate doctor https://docs.acme.com/docs\n forumulate doctor https://acme.com/legal/privacy --also https://forumulate.com/p/acme/legal/privacy\n forumulate doctor --site main --org acme --json > doctor.json\n forumulate doctor https://acme.com/docs --only sitemap-crawl,root-redirect\n\nIn CI: packages/cli/examples/github-action-doctor.yml runs this on a schedule and\non every push, uploads the JSON report and fails the job on any FAIL.\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)\n doctor: 1 when any check FAILs; a SKIP is not a failure.";
|
|
4
|
+
export declare const DOCTOR_HELP = "forumulate doctor \u2014 check a live site from the outside\n\nUsage:\n forumulate doctor <readerUrl> [flags]\n forumulate doctor --site <slug|id> [--org <slug|id>] [flags]\n forumulate doctor --org <slug|id> [--json]\n\n--org alone (no URL, no --site) is one report of the organization's own wiring: reader\nsign-in warnings, the consent and executor links, heartbeat staleness, and whether each\ncustom address is served (the API's integration-health board plus reader-auth warnings;\nneeds a token with org.manage_integrations and org.manage_settings).\n\nPlain HTTP, no token needed for a URL: the same report against our platform, a\nstaging mount or any other docs host. --site asks the API for every address of\nevery space on a site (needs a token), and checks each copy.\n\nFlags:\n --site <slug|id> every member space, at its custom domain AND its\n platform copy (token: FORUMULATE_TOKEN or `login`)\n --org <slug|id> the org --site is in (default: FORUMULATE_ORG / config)\n --also <url> another address of the same page, e.g. the platform copy\n of a custom-domain page (repeatable)\n --only a,b run just these checks (ids below)\n --json the full report as JSON on stdout (nothing else there)\n --api-base <origin> where /api/health lives, when not on the page's host\n --platform-host <h> the hosting platform's hostname, for white-label and\n canonical checks (default: FORUMULATE_URL's host, else\n forumulate.com)\n --limit <n> sitemap URLs to sample (default 60)\n --timeout <ms> per-request timeout (default 15000)\n\nChecks (id \u2014 what fails it):\n health /api/health not 2xx JSON (also tried under the mount)\n public-read a logged-out reader is sent to sign-in\n canonical the page's canonical names another host\n html-untouched a proxy rewrites the markup (email obfuscation)\n cache-headers no Cache-Control, or no-store, on the page\n robots / sitemap robots.txt missing, disallows the path, no Sitemap:\n crawler-access a crawler gets a different status than a reader\n feeds an advertised feed does not answer 200\n images a picture on the page does not load\n canonical-both-addresses a page's copies (custom domain, platform) name\n different canonicals, or not the primary address\n sitemap-crawl a sitemap URL redirects, 404s, is on another host or\n names another canonical\n cache-consistency pages of one space cached differently (public vs\n private/no-store) with no x-forumulate-cache-reason\n root-redirect a space root answers 302/307, or a redirect with a\n body over 1 KB, or lands on a page canonical elsewhere\n meta-description missing description/og:description, template text\n (\"Guides and reference, in a nested tree.\"), or\n headings run together\n llms-txt /llms.txt missing, no H1, preset summary, links on\n another host, slugs in titles, no sections/descriptions\n favicon /favicon.ico or <link rel=icon> not an image; an\n asset path answering a large HTML page\n consent-tag a consent manager (any CMP: Cookie Munch, Cookiebot,\n OneTrust, Osano, Termly, Usercentrics, Didomi,\n iubenda, Complianz, TCF) not told the page language\n white-label-leaks a custom-domain page or its .md twin links to the\n platform host\n robots-params (advice) prints the Disallow lines that keep crawlers\n off each mount's ?sort= / ?period= / ?range= copies\n reader-auth-atlas (advice, needs --org and a token) the organization\n uses Atlas but signs readers in another way (an\n external_jwt route): prints the relink and the switch\n to the Atlas reader provider (readerAuth: atlas)\n\nExamples:\n forumulate doctor https://docs.acme.com/docs\n forumulate doctor https://acme.com/legal/privacy --also https://forumulate.com/p/acme/legal/privacy\n forumulate doctor --site main --org acme --json > doctor.json\n forumulate doctor https://acme.com/docs --only sitemap-crawl,root-redirect\n\nIn CI: packages/cli/examples/github-action-doctor.yml runs this on a schedule and\non every push, uploads the JSON report and fails the job on any FAIL.\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)\n doctor: 1 when any check FAILs; a SKIP is not a failure.";
|
|
5
5
|
export interface DoctorCommandDeps {
|
|
6
6
|
out: (line: string) => void;
|
|
7
7
|
err: (line: string) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/doctor/command.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAKnC,OAAO,EAA6B,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/doctor/command.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAKnC,OAAO,EAA6B,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AAQzE,eAAO,MAAM,gBAAgB,EAAE,SAAS,MAAM,EAI7C,CAAC;AAEF,eAAO,MAAM,WAAW,glKA8EmC,CAAC;AAE5D,MAAM,WAAW,iBAAiB;IAChC,GAAG,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5B,GAAG,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,KAAK,CAAC;IACzB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qFAAqF;IACrF,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAID,4CAA4C;AAC5C,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC,CA8I/F;AAED,wBAAgB,WAAW,CAAC,MAAM,EAAE,YAAY,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,GAAG,IAAI,CAUhF"}
|
package/dist/doctor/command.js
CHANGED
|
@@ -14,6 +14,7 @@ const extended_1 = require("./extended");
|
|
|
14
14
|
const site_1 = require("./site");
|
|
15
15
|
const probe_1 = require("./probe");
|
|
16
16
|
const reader_auth_atlas_1 = require("./reader-auth-atlas");
|
|
17
|
+
const org_report_1 = require("./org-report");
|
|
17
18
|
exports.DOCTOR_CHECK_IDS = [
|
|
18
19
|
...doctor_1.BASE_CHECK_IDS,
|
|
19
20
|
...extended_1.EXTENDED_CHECK_IDS,
|
|
@@ -24,6 +25,12 @@ exports.DOCTOR_HELP = `forumulate doctor — check a live site from the outside
|
|
|
24
25
|
Usage:
|
|
25
26
|
forumulate doctor <readerUrl> [flags]
|
|
26
27
|
forumulate doctor --site <slug|id> [--org <slug|id>] [flags]
|
|
28
|
+
forumulate doctor --org <slug|id> [--json]
|
|
29
|
+
|
|
30
|
+
--org alone (no URL, no --site) is one report of the organization's own wiring: reader
|
|
31
|
+
sign-in warnings, the consent and executor links, heartbeat staleness, and whether each
|
|
32
|
+
custom address is served (the API's integration-health board plus reader-auth warnings;
|
|
33
|
+
needs a token with org.manage_integrations and org.manage_settings).
|
|
27
34
|
|
|
28
35
|
Plain HTTP, no token needed for a URL: the same report against our platform, a
|
|
29
36
|
staging mount or any other docs host. --site asks the API for every address of
|
|
@@ -180,8 +187,31 @@ async function runDoctorCommand(argv, deps) {
|
|
|
180
187
|
return (0, exit_codes_1.exitCodeForError)(e);
|
|
181
188
|
}
|
|
182
189
|
}
|
|
190
|
+
if (!url && orgRef && !site) {
|
|
191
|
+
// --org alone: the organization's wiring, not a page.
|
|
192
|
+
const report = {
|
|
193
|
+
url: `organization ${orgRef}`,
|
|
194
|
+
checks: await (0, org_report_1.orgReportChecks)(apiHttp(), orgRef),
|
|
195
|
+
passed: 0,
|
|
196
|
+
failed: 0,
|
|
197
|
+
warnings: 0,
|
|
198
|
+
};
|
|
199
|
+
for (const c of report.checks) {
|
|
200
|
+
if (c.state === 'pass')
|
|
201
|
+
report.passed += 1;
|
|
202
|
+
else if (c.state === 'fail')
|
|
203
|
+
report.failed += 1;
|
|
204
|
+
else
|
|
205
|
+
report.warnings += 1;
|
|
206
|
+
}
|
|
207
|
+
if (json)
|
|
208
|
+
deps.out(JSON.stringify(report, null, 2));
|
|
209
|
+
else
|
|
210
|
+
printReport(report, deps.out);
|
|
211
|
+
return report.failed > 0 ? exit_codes_1.EXIT.FAILED : exit_codes_1.EXIT.OK;
|
|
212
|
+
}
|
|
183
213
|
if (!url)
|
|
184
|
-
return usage('Give a reader URL, or --site <slug|id>.');
|
|
214
|
+
return usage('Give a reader URL, or --site <slug|id>, or --org <slug|id>.');
|
|
185
215
|
const also = (0, args_1.all)(p, 'also');
|
|
186
216
|
if (also.length)
|
|
187
217
|
addressSets.push({ urls: [url, ...also] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.js","sourceRoot":"","sources":["../../src/doctor/command.ts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;QAChF,GAAG,CAAC,KAAK,IAAI,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC;QACtC,2EAA2E;QAC3E,KAAK,MAAM,IAAI,IAAI,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC;YAAE,GAAG,CAAC,WAAW,IAAI,EAAE,CAAC,CAAC;QAChE,IAAI,CAAC,CAAC,KAAK,KAAK,MAAM,IAAI,CAAC,CAAC,OAAO;YAAE,GAAG,CAAC,2BAA2B,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;IACD,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,YAAY,MAAM,CAAC,MAAM,YAAY,MAAM,CAAC,QAAQ,UAAU,CAAC,CAAC;AACtF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"org-report.d.ts","sourceRoot":"","sources":["../../src/doctor/org-report.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAgCxC,wBAAsB,eAAe,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC,CAyD/E"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.orgReportChecks = orgReportChecks;
|
|
4
|
+
const probe_1 = require("./probe");
|
|
5
|
+
async function orgReportChecks(http, org) {
|
|
6
|
+
const base = `/orgs/${encodeURIComponent(org)}`;
|
|
7
|
+
const out = [];
|
|
8
|
+
try {
|
|
9
|
+
const body = (await http.send({ method: 'GET', path: `${base}/integration-health` })).data;
|
|
10
|
+
for (const c of body.checks ?? []) {
|
|
11
|
+
// ok:null is "not configured here", not a fault; warning:true is healthy-but-soon.
|
|
12
|
+
const state = c.ok === false ? 'fail' : c.ok === null || c.warning ? 'skip' : 'pass';
|
|
13
|
+
const detail = [c.detail, c.ok === false || c.warning ? c.fix : '', c.ok === false && c.docs ? `See ${c.docs}` : '']
|
|
14
|
+
.filter(Boolean)
|
|
15
|
+
.join('\n');
|
|
16
|
+
out.push((0, probe_1.check)(c.id, c.id, state, detail, c.ok === false ? (c.fix ?? '') : ''));
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
catch (e) {
|
|
20
|
+
const err = e;
|
|
21
|
+
out.push((0, probe_1.check)('integration-health', 'integration health', 'skip', `Could not read the integration board (${err.status ?? 'error'}): it needs a token with org.manage_integrations.`));
|
|
22
|
+
}
|
|
23
|
+
// The other half of "readers can sign in": a provider set up and a route that does not work.
|
|
24
|
+
try {
|
|
25
|
+
const body = (await http.send({ method: 'GET', path: `${base}/reader-auth` })).data;
|
|
26
|
+
const warnings = (body.warnings ?? []).map((w) => (typeof w === 'string' ? { message: w } : w));
|
|
27
|
+
out.push(warnings.length
|
|
28
|
+
? (0, probe_1.check)('reader-auth.warnings', 'reader sign-in has no warnings', 'fail', warnings.map((w) => [w.code, w.message, w.fix].filter(Boolean).join(': ')).join('\n'), 'A sign-in setup that is saved but would send readers to a dead link looks connected in the console.')
|
|
29
|
+
: (0, probe_1.check)('reader-auth.warnings', 'reader sign-in has no warnings', 'pass', 'No warnings on the reader sign-in setup.'));
|
|
30
|
+
}
|
|
31
|
+
catch (e) {
|
|
32
|
+
const err = e;
|
|
33
|
+
out.push((0, probe_1.check)('reader-auth.warnings', 'reader sign-in has no warnings', 'skip', `Could not read the reader sign-in (${err.status ?? 'error'}): it needs a token with org.manage_settings.`));
|
|
34
|
+
}
|
|
35
|
+
return out;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=org-report.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"org-report.js","sourceRoot":"","sources":["../../src/doctor/org-report.ts"],"names":[],"mapp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C,EAAE,CAAC;QACX,MAAM,GAAG,GAAG,CAAwB,CAAC;QACrC,GAAG,CAAC,IAAI,CACN,IAAA,aAAK,EACH,sBAAsB,EACtB,gCAAgC,EAChC,MAAM,EACN,sCAAsC,GAAG,CAAC,MAAM,IAAI,OAAO,+CAA+C,CAC3G,CACF,CAAC;IACJ,CAAC;IACD,OAAO,GAAG,CAAC;AACb,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 --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";
|
|
2
|
+
export declare const HELP = "forumulate \u2014 Forumulate command-line interface\n\nUsage:\n forumulate <command> [args]\n\nCommands:\n login [--token <pat>] Store a token for this API, so every other\n command stops needing FORUMULATE_TOKEN in\n the environment\n logout Forget the stored token\n whoami [--json] Who you are, and WHICH token: its source (--token,\n FORUMULATE_TOKEN or credentials.json), id, name,\n last 4, expiry, narrowing and the API base\n auth status [--json] The same report, for scripts\n config set|get|unset|list Defaults: org, space, library, api-version\n (`forumulate config set org acme`)\n\nEvery API operation:\n api list [--tag t] [--search w] Discover operations and their summaries\n [--refresh] ...from the live API's spec, not the bundled one\n api describe <operationId> Parameters and body schema, as flags\n api <operationId> [args] [flags] Call it: --<param> value, --data @f.json,\n api <METHOD> <path> [flags] --field a.b=v, --paginate, --json\n\nResources (each: <group> --help lists its verbs and the operation each calls):\n Org: orgs | members | invites | groups | roles | service-accounts (bots)\n tokens (pats) | keys | integration-tokens (int-tokens)\n webhooks | extensions | audit\n Spaces: spaces | snapshots | shape | domains | assets | space-types (types)\n Docs: items (pages) | docs | collections | versions | change-requests (crs)\n openapi | sdks | github (git)\n Content: blog | forum | changelog | roadmap | status | events | course\n careers | forms | about (blog/forum/changelog/status: translations \u2026)\n CMS: libraries | entries | media | releases | environments (envs)\n Site: theme | sites | reader\n Jobs: jobs | backups | imports | manifest (starters take --wait [--timeout s])\n search <query...> [--org] e.g. spaces create Docs --slug docs --type DOCS\n items create --space docs --file a.md --publish\n docs schedule set <pageId> <when> --space docs\n webhooks deliveries <id>; webhooks replay <id> <d>\n --out <file> where a file answer goes (SDK archive, PDF, CSV export)\n cache purge --space <s> [--page p] Drop cached copies (web tier + every CDN); deletes\n nothing\n completion bash|zsh|fish Shell completion script\n\nOlder forms, unchanged:\n orgs List your organizations\n spaces <orgId> List spaces in an org\n items <orgId> <spaceId> List what is in a space, with where each\n piece's content lives\n search <orgId> <query...> Unified search across docs/forum/blog\n dev <folder> Preview a folder of Markdown locally, rendered\n by your space's own renderer; reloads on save.\n --org <id> --space <id> [--port 4321] [--site <your docs URL>]\n publish <folder> --org <o> --space <s>\n Publish a folder of Markdown: one folder per\n collection, front matter, assets, order,\n and a forumulate.yaml manifest for space,\n site, theme, OpenAPI and monitors. Re-runs\n change only what changed, then read back.\n --org <id|slug> --space <id|slug> (or org:/space: in the manifest)\n --dry-run print the plan, write nothing (no token needed for a\n public space)\n --prune remove pages/posts/collections with no file (to the trash)\n --only a,b just these slugs, files, folders, or manifest parts\n (site, theme, settings, openapi, monitors)\n --force re-send every page even if it looks unchanged\n --no-verify skip the read-back --pace <ms> gap between writes\n --manifest <file> a manifest somewhere else\n --diff print the changed paragraphs and fields of each update\n --purge page|space|none what to drop from the cache (default page),\n reported per CDN\n --json one summary: created, updated, unchanged, trashed, purged,\n verify, diffUrl (the run is recorded; publish.completed fires)\n Pages edited in the studio since the last publish are not overwritten\n without --force. Full reference: forumulate publish --help\n sync <folder> Content as code: the same folder publish,\n PLAN BY DEFAULT. Posts (blog), pages\n (docs, custom, legal), FAQ questions,\n changelog releases and blog categories,\n matched by slug; images uploaded once by\n content hash; README, LICENSE, _drafts/,\n dotfiles skipped. Guide:\n https://forumulate.com/guides/content-as-code\n --apply write the plan (then read it back)\n --prune also remove what has no file (to the trash)\n --diff print the changed paragraphs and fields of each update\n --org, --space, --only, --force, --no-verify, --pace, --manifest, --json\n as for publish\n plan [forumulate.yaml] The whole site as one document (version: 2):\n spaces and their SEO, languages, front doors,\n contact form and About parts, Markdown pages\n with locale twins, redirects, sites. Prints\n the diff; writes nothing. --check exits 1\n when it is not empty. Full reference:\n forumulate plan --help\n apply [forumulate.yaml] Carry that plan out, idempotently, every\n write read back; --prune also removes what\n the manifest wrote and no longer declares\n --secrets-file <p> keeps the shown-once keys (0600);\n the output redacts them\n heartbeat ping <monitor> [--fail] Report a job's pass to a heartbeat monitor\n (--message <why> with --fail); forumulate heartbeat --help\n heartbeat ping-url <monitor> Print that monitor's ping URL (it holds its secret)\n orgs ensure <slug> [--name <n>] The organization, created only when missing; safe to\n [--external-ref <ref>] re-run (run it before the first plan/apply)\n domains setup <host> --space <s> What a domain still waits for: mode, pendingReason,\n message; then domains verify / activate <host>\n check links [folder] Broken internal links, #anchors, pictures and\n (--external) outside links in a folder, before\n publishing; exit 1 when any is broken\n --space <s> [--org <o>] the same report for a published space\n --allow-redirect <hosts> --ignore <text> --json\n publish <folder> --preview <name> Send the change to a preview link instead of\n publishing it (--comment posts it on the PR)\n 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,wpdA2NhB,CAAC"}
|
package/dist/help.js
CHANGED
|
@@ -34,7 +34,7 @@ Resources (each: <group> --help lists its verbs and the operation each calls):
|
|
|
34
34
|
Docs: items (pages) | docs | collections | versions | change-requests (crs)
|
|
35
35
|
openapi | sdks | github (git)
|
|
36
36
|
Content: blog | forum | changelog | roadmap | status | events | course
|
|
37
|
-
careers | forms (blog/forum/changelog/status: translations …)
|
|
37
|
+
careers | forms | about (blog/forum/changelog/status: translations …)
|
|
38
38
|
CMS: libraries | entries | media | releases | environments (envs)
|
|
39
39
|
Site: theme | sites | reader
|
|
40
40
|
Jobs: jobs | backups | imports | manifest (starters take --wait [--timeout s])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../../src/plan/document.ts"],"names":[],"mappings":"AAGA,OAAO,EAAmB,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAKnE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,kGAAkG;AAClG,eAAO,MAAM,QAAQ,UAAU,CAAC;AAK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MAAM,CAAC,CAAC,CAAC,CAAC;IACtD,gEAAgE;IAChE,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,wGAAwG;IACxG,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,yFAAyF;IACzF,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB;;;;;OAKG;IACH,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;CAChC;AAOD;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAYrD;AAgHD;;;;;;;;;;GAUG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,CAAC,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,UAAO,GAAG,OAAO,CAmBjG;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,YAAY,CA+GjG;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CACzB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,EACrB,OAAO,EAAE,MAAM,EAAE,EACjB,MAAM,GAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAa,GACtC,IAAI,CAmBN;AAsBD,6EAA6E;AAC7E,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,WAAW,EAAE,CAEpE"}
|
package/dist/plan/document.js
CHANGED
|
@@ -163,6 +163,27 @@ function fileOrMap(v, base, where) {
|
|
|
163
163
|
return v;
|
|
164
164
|
return asMap(readData((0, node_path_1.resolve)(base, v)), `${where} (${v})`);
|
|
165
165
|
}
|
|
166
|
+
/**
|
|
167
|
+
* `compare: { catalog: compare.yaml, matrix: matrix.csv, scoring: … }` → the catalog keys (the file's, with
|
|
168
|
+
* the inline ones over them) and the matrix as CSV TEXT, which is what the server's compare unit takes.
|
|
169
|
+
* A `matrix` that is not a `.csv` name is already text and is sent as written.
|
|
170
|
+
*/
|
|
171
|
+
function compareOf(v, base, where) {
|
|
172
|
+
const { catalog, matrix, ...inline } = asMap(v, where);
|
|
173
|
+
const out = {};
|
|
174
|
+
if (catalog !== undefined) {
|
|
175
|
+
if (typeof catalog !== 'string')
|
|
176
|
+
throw new Error(`${where}.catalog must be the name of a YAML or JSON file`);
|
|
177
|
+
Object.assign(out, asMap(readData((0, node_path_1.resolve)(base, catalog)), `${where}.catalog (${catalog})`));
|
|
178
|
+
}
|
|
179
|
+
Object.assign(out, inline);
|
|
180
|
+
if (matrix !== undefined) {
|
|
181
|
+
if (typeof matrix !== 'string')
|
|
182
|
+
throw new Error(`${where}.matrix must be CSV text or the name of a .csv file`);
|
|
183
|
+
out.matrix = /\.csv$/i.test(matrix.trim()) && !matrix.includes('\n') ? (0, node_fs_1.readFileSync)((0, node_path_1.resolve)(base, matrix.trim()), 'utf8') : matrix;
|
|
184
|
+
}
|
|
185
|
+
return out;
|
|
186
|
+
}
|
|
166
187
|
/** A value that is exactly `${NAME}`: read from the environment, never written into the file. */
|
|
167
188
|
const ENV_REF = /^\$\{([A-Za-z_][A-Za-z0-9_]*)\}$/;
|
|
168
189
|
/** `${NAME}` inside a longer string; `$${NAME}` is the literal text `${NAME}`. */
|
|
@@ -226,6 +247,8 @@ function loadPlanDocument(file, env = process.env) {
|
|
|
226
247
|
asMap(s, `spaces[${i}]`);
|
|
227
248
|
if (s.about !== undefined)
|
|
228
249
|
s.about = fileOrMap(s.about, base, `spaces[${i}].about`);
|
|
250
|
+
if (s.compare !== undefined)
|
|
251
|
+
s.compare = compareOf(s.compare, base, `spaces[${i}].compare`);
|
|
229
252
|
if (s.contactForm !== undefined)
|
|
230
253
|
s.contactForm = fileOrMap(s.contactForm, base, `spaces[${i}].contactForm`);
|
|
231
254
|
const codes = Array.isArray(s.locales) ? s.locales.map((l) => String(l.code ?? '')) : [];
|