frontpage-host 0.1.18 → 0.1.19
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/AGENTS.md +4 -1
- package/dist/bin.js +6 -0
- package/dist/commands/mail.d.ts +1 -0
- package/dist/commands/mail.js +482 -0
- package/dist/commands/people.js +115 -13
- package/dist/commands/shop-ids.d.ts +3 -0
- package/dist/commands/shop-ids.js +3 -0
- package/dist/commands/shop.d.ts +1 -0
- package/dist/commands/shop.js +595 -0
- package/dist/modules/commands.js +4 -4
- package/dist/registry.js +62 -5
- package/llms.txt +2 -1
- package/package.json +1 -1
package/dist/registry.js
CHANGED
|
@@ -416,7 +416,7 @@ export const COMMANDS = [
|
|
|
416
416
|
{
|
|
417
417
|
name: "people",
|
|
418
418
|
summary: "List and manage site People (not inbox, not a module)",
|
|
419
|
-
usage: "frontpage people list|get|add|set|note|rm-note|follow-up|hide|unhide [--site <slug>] [--json]",
|
|
419
|
+
usage: "frontpage people list|get|add|set|note|rm-note|follow-up|hide|unhide|tag|export [--site <slug>] [--json]",
|
|
420
420
|
topics: ["content"],
|
|
421
421
|
examples: [
|
|
422
422
|
"frontpage people list",
|
|
@@ -425,14 +425,66 @@ export const COMMANDS = [
|
|
|
425
425
|
"frontpage people note <id> --body \"Called them\"",
|
|
426
426
|
"frontpage people follow-up <id> --at 2026-09-12T00:00:00Z",
|
|
427
427
|
"frontpage people hide <id>",
|
|
428
|
+
"frontpage people tag <id> --add vip",
|
|
429
|
+
"frontpage people list --tag vip",
|
|
430
|
+
"frontpage people export",
|
|
428
431
|
],
|
|
429
432
|
flags: [
|
|
430
|
-
"list: --q --status --source --form-slug --follow-up due|upcoming|none --hidden --sort --last-seen-days --limit --cursor",
|
|
433
|
+
"list: --q --status --source --form-slug --follow-up due|upcoming|none --hidden --sort --last-seen-days --tag --limit --cursor",
|
|
431
434
|
"add requires --email and/or --phone (never name alone)",
|
|
432
|
-
"
|
|
435
|
+
"tag: --add <label> | --remove <slug>",
|
|
436
|
+
"export writes UTF-8 CSV (same filters as list). Optional --out <file>",
|
|
437
|
+
"Hide is not forget. Unique email/phone stay; later ingest un-hides",
|
|
433
438
|
"Unknown leftover flags fail closed (exit 2)",
|
|
434
439
|
],
|
|
435
|
-
seeAlso: ["inbox", "
|
|
440
|
+
seeAlso: ["inbox", "https://frontpage.host/developers/people"],
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
name: "shop",
|
|
444
|
+
summary: "Store catalog: items, variants, stock, and store settings (not Square, not inbox)",
|
|
445
|
+
usage: "frontpage shop items|variants|settings|orders|payments … [--site <slug>] [--json]",
|
|
446
|
+
topics: ["content"],
|
|
447
|
+
examples: [
|
|
448
|
+
"frontpage shop items list",
|
|
449
|
+
"frontpage shop items create camp-hat --title \"Camp hat\" --price-cents 4999 --checkout cart --requires-shipping true --stock 20",
|
|
450
|
+
"frontpage shop variants add camp-hat --id m --option Size=M --price-cents 4999 --stock 8",
|
|
451
|
+
"frontpage shop items stock camp-hat --variant m --add 5",
|
|
452
|
+
"frontpage shop items stock camp-hat --variant m --remove 5",
|
|
453
|
+
"frontpage shop items stock camp-hat --variant m --set 20",
|
|
454
|
+
"frontpage shop settings set-fulfillment --mode pickup",
|
|
455
|
+
"frontpage shop settings set-currency --currency usd",
|
|
456
|
+
],
|
|
457
|
+
flags: [
|
|
458
|
+
"Integer cents only. $49.99 is 4999. Do not send 49.99 or a dollar string.",
|
|
459
|
+
"--add / --remove become signed delta. 5 adds 5. --remove 5 removes 5. Result copy is added 5 / removed 5 / set to 20 / stockNow.",
|
|
460
|
+
"Pass either --add, --remove, or --set. Never two together. --set unlimited returns counted stock to unlimited.",
|
|
461
|
+
"items: list|get|create|update|archive|activate [--off] | images --urls … | stock [--variant m] --add|--remove|--set",
|
|
462
|
+
"variants: add|update|archive <itemId> --id m --price-cents … [--option Size=M] [--stock]",
|
|
463
|
+
"settings: get|set-fulfillment|set-currency|set-checkout-fee. Connect stays frontpage modules shop|payments connect.",
|
|
464
|
+
"orders / payments list|get read the same ledgers as frontpage inbox orders|payments",
|
|
465
|
+
"Unknown leftover flags fail closed (exit 2)",
|
|
466
|
+
],
|
|
467
|
+
seeAlso: ["inbox", "https://frontpage.host/developers/shop"],
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
name: "mail",
|
|
471
|
+
summary: "Site mailings: drafts, templates, series, and sends (not People, not inbox)",
|
|
472
|
+
usage: "frontpage mail settings|email|template|series|send|sends|enrolments|suppress … [--site <slug>] [--json]",
|
|
473
|
+
topics: ["content"],
|
|
474
|
+
examples: [
|
|
475
|
+
"frontpage mail settings set --postal \"100 Main St\" --reply-to you@example.com",
|
|
476
|
+
"frontpage mail email create --file draft.json --name Hours",
|
|
477
|
+
"frontpage mail send --file email.json --to ada@example.com --wait",
|
|
478
|
+
"frontpage mail send template <id> --to ada@example.com --var first_name=Ada",
|
|
479
|
+
"frontpage mail series steps set <id> --file steps.json",
|
|
480
|
+
"frontpage mail suppress add --email bounce@example.com",
|
|
481
|
+
],
|
|
482
|
+
flags: [
|
|
483
|
+
"email list is unsent drafts only. Sent one-offs are mail sends list",
|
|
484
|
+
"send --file is an inline one-off (no saved document)",
|
|
485
|
+
"Blocks and series steps are JSON (--file). Unknown leftover flags fail closed (exit 2)",
|
|
486
|
+
],
|
|
487
|
+
seeAlso: ["people", "inbox"],
|
|
436
488
|
},
|
|
437
489
|
{
|
|
438
490
|
name: "redirects",
|
|
@@ -668,7 +720,12 @@ export const TOPICS = {
|
|
|
668
720
|
frontpage media list|upload <file> # images/PDF/video; text/CSV = inline not library; sitePath first when stored
|
|
669
721
|
frontpage images generate --prompt "…" [--count N] # 1–4 AI variations of one prompt; sitePath first; AI $ + storage
|
|
670
722
|
frontpage inbox [leads|subscribers|orders|google_reviews|…] [--mark-read] [--csv]
|
|
671
|
-
frontpage people list|get|add|set|note|rm-note|follow-up|hide|unhide
|
|
723
|
+
frontpage people list|get|add|set|note|rm-note|follow-up|hide|unhide|tag|export
|
|
724
|
+
# People CRM guide: https://frontpage.host/developers/people
|
|
725
|
+
frontpage shop items|variants|settings|orders|payments
|
|
726
|
+
# Store catalog: https://frontpage.host/developers/shop
|
|
727
|
+
# Integer cents only. $49.99 is 4999. stock --add/--remove are signed delta.
|
|
728
|
+
frontpage mail settings|email|template|series|send|sends|enrolments|suppress
|
|
672
729
|
frontpage seo get [/path|--path /path] | seo set --path /
|
|
673
730
|
frontpage redirects list|set|rm --from /old --to /new
|
|
674
731
|
frontpage articles list|content|create-section|create-article|set-draft|…
|
package/llms.txt
CHANGED
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
- Version: frontpage --version | -V | version
|
|
17
17
|
- SEO get: frontpage seo get [/path|--path /path]; search path filter: [path|--path <path>]; open [/path|--path /path]
|
|
18
18
|
- Redirects: frontpage redirects list|set|rm — HTTP 301/308, instant, not a file; revert does not undo; do not fake with Astro.redirect / meta refresh
|
|
19
|
-
- People: frontpage people list|get|add|set|note|rm-note|follow-up|hide|unhide
|
|
19
|
+
- People CRM: frontpage people list|get|add|set|note|rm-note|follow-up|hide|unhide|tag|export. Site-scoped person graph (email or phone). Inbox stays the raw ledger. Hide is not forget. List export is CSV. Unknown leftover flags fail closed. Guide: https://frontpage.host/developers/people
|
|
20
|
+
- Store catalog: frontpage shop items|variants|settings|orders|payments. Integer cents only ($49.99 is 4999). stock --add/--remove are signed delta (added 5 / removed 5 / set to 20 / stockNow). Connect stays frontpage modules shop|payments connect. Not Square ordering. Guide: https://frontpage.host/developers/shop
|
|
20
21
|
- Analytics funnel: --steps JSON array or comma paths (/, /pricing); bad JSON → Invalid JSON for --steps
|
|
21
22
|
- Modules: unknown key errors list Known: …; mailing list module key is signups (not subscribe)
|
|
22
23
|
- Errors: --json API envelopes include requestId when the server returned one; local validation omits requestId/httpStatus; runs wait failed/canceled → ok:false + run.error (exit 2); deploy wait = agent idle + tip compile ready (fail-closed / compile timeout → exit 2); push --wait and publish --wait wait for GET /deploy ready
|