@scribe-platform/cli 0.9.1 → 0.11.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/README.md +1 -1
- package/dist/commands/build.d.ts.map +1 -1
- package/dist/commands/build.js +4 -2
- package/dist/commands/build.js.map +1 -1
- package/dist/commands/content.d.ts.map +1 -1
- package/dist/commands/content.js +5 -1
- package/dist/commands/content.js.map +1 -1
- package/dist/commands/login.d.ts.map +1 -1
- package/dist/commands/login.js +25 -4
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/profile.d.ts +12 -0
- package/dist/commands/profile.d.ts.map +1 -0
- package/dist/commands/profile.js +81 -0
- package/dist/commands/profile.js.map +1 -0
- package/dist/commands/proof.d.ts.map +1 -1
- package/dist/commands/proof.js +6 -6
- package/dist/commands/proof.js.map +1 -1
- package/dist/commands/prospect.d.ts.map +1 -1
- package/dist/commands/prospect.js +4 -2
- package/dist/commands/prospect.js.map +1 -1
- package/dist/commands/request.d.ts.map +1 -1
- package/dist/commands/request.js +8 -4
- package/dist/commands/request.js.map +1 -1
- package/dist/commands/schema.js +1 -1
- package/dist/commands/schema.js.map +1 -1
- package/dist/commands/site.d.ts.map +1 -1
- package/dist/commands/site.js +48 -3
- package/dist/commands/site.js.map +1 -1
- package/dist/commands/submission.d.ts.map +1 -1
- package/dist/commands/submission.js +4 -1
- package/dist/commands/submission.js.map +1 -1
- package/dist/commands/update.js.map +1 -1
- package/dist/commands/user.d.ts +11 -0
- package/dist/commands/user.d.ts.map +1 -0
- package/dist/commands/user.js +88 -0
- package/dist/commands/user.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/client.d.ts +117 -0
- package/dist/lib/client.d.ts.map +1 -1
- package/dist/lib/client.js +128 -10
- package/dist/lib/client.js.map +1 -1
- package/dist/lib/config.d.ts +53 -0
- package/dist/lib/config.d.ts.map +1 -1
- package/dist/lib/config.js +116 -8
- package/dist/lib/config.js.map +1 -1
- package/dist/lib/proof-folder.d.ts.map +1 -1
- package/dist/lib/proof-folder.js +10 -3
- package/dist/lib/proof-folder.js.map +1 -1
- package/dist/lib/proof-preview.d.ts.map +1 -1
- package/dist/lib/proof-preview.js.map +1 -1
- package/dist/lib/proof-push.d.ts.map +1 -1
- package/dist/lib/proof-push.js +6 -1
- package/dist/lib/proof-push.js.map +1 -1
- package/dist/lib/seo-report.d.ts +19 -0
- package/dist/lib/seo-report.d.ts.map +1 -0
- package/dist/lib/seo-report.js +79 -0
- package/dist/lib/seo-report.js.map +1 -0
- package/dist/lib/skill.js +1 -1
- package/package.json +2 -2
- package/skills/scribe-site-builder/SKILL.md +32 -5
- package/skills/scribe-site-builder/recipes/README.md +7 -4
- package/skills/scribe-site-builder/recipes/client-logins.md +74 -0
- package/skills/scribe-site-builder/recipes/deploy.md +41 -10
- package/skills/scribe-site-builder/recipes/domains.md +4 -1
- package/skills/scribe-site-builder/recipes/forms.md +21 -1
- package/skills/scribe-site-builder/recipes/seo.md +193 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proof-folder.js","sourceRoot":"","sources":["../../src/lib/proof-folder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACzF,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAEhD;;;;;;;;;;;GAWG;AAEH,MAAM,CAAC,MAAM,iBAAiB,GAAG,oBAAoB,CAAC;AACtD,MAAM,CAAC,MAAM,UAAU,GAAG,YAAY,CAAC;AACvC,MAAM,CAAC,MAAM,cAAc,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC;AAC/C,MAAM,CAAC,MAAM,iBAAi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F,KAAK,MAAM,EAAE,IAAI,KAAK,CAAC,OAAO,EAAE,CAAC;oBAC/B,QAAQ,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,IAAI,MAAM,EAAE,wEAAwE,CAAC,CAAC;gBAC9G,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC;IAED,IAAI,UAAU,GAAG,iBAAiB;QAChC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,yBAAyB,EAAE,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,CAAC;IAEpG,4EAA4E;IAC5E,6DAA6D;IAC7D,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAClD,MAAM,OAAO,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;IACjE,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACvB,QAAQ,CAAC,IAAI,CACX,mCAAmC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,iDAAiD,CACvG,CAAC;IACJ,CAAC;IAED,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;AAChF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proof-preview.d.ts","sourceRoot":"","sources":["../../src/lib/proof-preview.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;GAUG;AAEH,6EAA6E;AAC7E,eAAO,MAAM,WAAW,gEAAgE,CAAC;AAWzF;;;;;GAKG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,
|
|
1
|
+
{"version":3,"file":"proof-preview.d.ts","sourceRoot":"","sources":["../../src/lib/proof-preview.ts"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AAS,SAAS,CAAC,MAAc;IAC/B,OAAO;;mBAEU,UAAU,CAAC,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;kDAuBa,MAAM,GAAG,UAAU;;0BAE3C,UAAU,CAAC,MAAM,CAAC;;;;;;;;oDAQQ,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;8DA2BN,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eA6F/D,CAAC;AAChB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proof-push.d.ts","sourceRoot":"","sources":["../../src/lib/proof-push.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AACvF,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAe7D,MAAM,MAAM,QAAQ,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"proof-push.d.ts","sourceRoot":"","sources":["../../src/lib/proof-push.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AACvF,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAe7D,MAAM,MAAM,QAAQ,GAAG,IAAI,CACzB,YAAY,EACZ,mBAAmB,GAAG,sBAAsB,GAAG,iBAAiB,GAAG,mBAAmB,CACvF,CAAC;AAEF;;;;;;GAMG;AACH,wBAAsB,UAAU,CAC9B,MAAM,EAAE,iBAAiB,EACzB,KAAK,EAAE,UAAU,EACjB,SAAS,GAAE,OAAO,KAAa,GAC9B,OAAO,CAAC,IAAI,CAAC,CAWf;AAUD,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,kBAAkB,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,wBAAsB,SAAS,CAAC,IAAI,EAAE;IACpC,GAAG,EAAE,QAAQ,CAAC;IACd,GAAG,EAAE,QAAQ,CAAC;IACd,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,iBAAiB,EAAE,KAAK,EAAE,UAAU,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1E,GAAG,OAAO,CAAC,WAAW,CAAC,CAwBvB;AAED;;;;GAIG;AACH,wBAAsB,SAAS,CAAC,IAAI,EAAE;IACpC,GAAG,EAAE,QAAQ,CAAC;IACd,GAAG,EAAE,QAAQ,CAAC;IACd,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAsB9B;AAED,8DAA8D;AAC9D,qBAAa,WAAY,SAAQ,KAAK;CAAG;AAEzC,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAE5F"}
|
package/dist/lib/proof-push.js
CHANGED
|
@@ -53,7 +53,12 @@ export async function pushProof(args) {
|
|
|
53
53
|
args.onUpload?.(u.path);
|
|
54
54
|
});
|
|
55
55
|
const finalized = await api.finalizeProofVersion(ref.client, ref.proof);
|
|
56
|
-
return {
|
|
56
|
+
return {
|
|
57
|
+
version: finalized.version,
|
|
58
|
+
previewUrl: finalized.previewUrl,
|
|
59
|
+
uploaded: staged.uploads.length,
|
|
60
|
+
reused: staged.reused,
|
|
61
|
+
};
|
|
57
62
|
}
|
|
58
63
|
/**
|
|
59
64
|
* Downloads one version into `dir`, checking each file against its hash.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proof-push.js","sourceRoot":"","sources":["../../src/lib/proof-push.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC1F,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAIxD;;;;;;;;GAQG;AAEH,uGAAuG;AACvG,MAAM,kBAAkB,GAAG,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"proof-push.js","sourceRoot":"","sources":["../../src/lib/proof-push.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC1F,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAIxD;;;;;;;;GAQG;AAEH,uGAAuG;AACvG,MAAM,kBAAkB,GAAG,CAAC,CAAC;AAO7B;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,UAAU,CAC9B,MAAyB,EACzB,KAAiB,EACjB,YAA0B,KAAK;IAE/B,MAAM,OAAO,GAAG,MAAM,CAAC,WAAW,CAChC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,KAAK,gBAAgB,CAAC,CAC3F,CAAC;IACF,4EAA4E;IAC5E,sFAA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CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC7D,IAAI,GAAG,KAAK,KAAK,CAAC,MAAM;YAAE,MAAM,IAAI,KAAK,CAAC,GAAG,KAAK,CAAC,IAAI,yDAAyD,CAAC,CAAC;QAElH,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QAChD,aAAa,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAC/B,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,8DAA8D;AAC9D,MAAM,OAAO,WAAY,SAAQ,KAAK;CAAG;AAEzC,MAAM,UAAU,cAAc,CAAC,GAAW,EAAE,GAAa,EAAE,OAAyB;IAClF,OAAO,IAAI,CAAC,GAAG,EAAE,GAAG,GAAG,CAAC,KAAK,IAAI,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,OAAO,EAAE,EAAE,CAAC,CAAC;AACpF,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { SeoReport } from './client.js';
|
|
2
|
+
/**
|
|
3
|
+
* The judgment half of RFC 0032, printed as questions rather than results.
|
|
4
|
+
*
|
|
5
|
+
* These are the audit's *highest* priority findings and a crawler cannot decide
|
|
6
|
+
* one of them. They live here, in the output, rather than only in the skill,
|
|
7
|
+
* because the output is the thing Ashley's Claude actually reads — the skill
|
|
8
|
+
* tells it to ask these, and this list is what it asks. One copy, so the two
|
|
9
|
+
* cannot drift.
|
|
10
|
+
*
|
|
11
|
+
* Phrased as questions with no right answer on purpose. "Not yet" is a real
|
|
12
|
+
* answer and the point is that it gets said out loud before a Site goes live,
|
|
13
|
+
* not that every Site has all six.
|
|
14
|
+
*/
|
|
15
|
+
export declare const JUDGMENT_QUESTIONS: readonly string[];
|
|
16
|
+
/** Whether anything actually failed. A skip never contributes. */
|
|
17
|
+
export declare function seoFailed(report: SeoReport): boolean;
|
|
18
|
+
export declare function printSeoReport(report: SeoReport, write?: (line: string) => void): void;
|
|
19
|
+
//# sourceMappingURL=seo-report.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seo-report.d.ts","sourceRoot":"","sources":["../../src/lib/seo-report.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAc7C;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,kBAAkB,EAAE,SAAS,MAAM,EAO/C,CAAC;AAEF,kEAAkE;AAClE,wBAAgB,SAAS,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,CAEpD;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,GAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAkB,GAAG,IAAI,CA0CnG"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Printing an RFC 0032 SEO check.
|
|
3
|
+
*
|
|
4
|
+
* A sibling of `verify-report.ts`, and shaped like it on purpose: the two
|
|
5
|
+
* commands should read the same way, because they are the same kind of answer
|
|
6
|
+
* about two different questions. What it does *not* share is the verdict —
|
|
7
|
+
* `seoFailed` is about `SeoReport.failed` alone, and nothing here can ever
|
|
8
|
+
* contribute to an invariant failure.
|
|
9
|
+
*/
|
|
10
|
+
const MARK = { pass: '✓', fail: '✗', skip: '–' };
|
|
11
|
+
/**
|
|
12
|
+
* The judgment half of RFC 0032, printed as questions rather than results.
|
|
13
|
+
*
|
|
14
|
+
* These are the audit's *highest* priority findings and a crawler cannot decide
|
|
15
|
+
* one of them. They live here, in the output, rather than only in the skill,
|
|
16
|
+
* because the output is the thing Ashley's Claude actually reads — the skill
|
|
17
|
+
* tells it to ask these, and this list is what it asks. One copy, so the two
|
|
18
|
+
* cannot drift.
|
|
19
|
+
*
|
|
20
|
+
* Phrased as questions with no right answer on purpose. "Not yet" is a real
|
|
21
|
+
* answer and the point is that it gets said out loud before a Site goes live,
|
|
22
|
+
* not that every Site has all six.
|
|
23
|
+
*/
|
|
24
|
+
export const JUDGMENT_QUESTIONS = [
|
|
25
|
+
'Does the site say which town and area the business serves, on the pages a visitor lands on?',
|
|
26
|
+
'Is there real client proof — a name, a review, a photo of finished work — rather than a placeholder?',
|
|
27
|
+
'Is there a page for each main thing they sell, rather than one page with sections?',
|
|
28
|
+
'Does the contact form sit next to a privacy policy, if it collects a name, email or phone?',
|
|
29
|
+
'Would someone who has never heard of this business understand what it does from the home page alone?',
|
|
30
|
+
'Is the business claimed on Google with the same name, address and phone number as the site?',
|
|
31
|
+
];
|
|
32
|
+
/** Whether anything actually failed. A skip never contributes. */
|
|
33
|
+
export function seoFailed(report) {
|
|
34
|
+
return report.failed.length > 0;
|
|
35
|
+
}
|
|
36
|
+
export function printSeoReport(report, write = console.log) {
|
|
37
|
+
write(`\nChecking "${report.slug}" can be found — ${report.url}`);
|
|
38
|
+
if (report.pagesChecked.length === 0) {
|
|
39
|
+
write('\n Nothing deployed yet — no page could be fetched, so nothing was checked.');
|
|
40
|
+
for (const error of report.pageErrors)
|
|
41
|
+
write(` ${error.url} — ${error.reason}`);
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
const how = report.discovery === 'sitemap' ? "from the site's own sitemap" : 'by following links from the home page';
|
|
45
|
+
const capped = report.truncated ? ', capped — more pages exist than were checked' : '';
|
|
46
|
+
write(` ${report.pagesChecked.length} page(s) checked, found ${how}${capped}\n`);
|
|
47
|
+
}
|
|
48
|
+
for (const check of report.checks) {
|
|
49
|
+
write(` ${MARK[check.state] ?? '?'} ${check.name.padEnd(12)} ${check.message}`);
|
|
50
|
+
for (const line of check.detail ?? [])
|
|
51
|
+
write(` ${line}`);
|
|
52
|
+
}
|
|
53
|
+
if (report.pagesChecked.length > 0 && report.pageErrors.length > 0) {
|
|
54
|
+
write('\n Could not be fetched (not counted either way):');
|
|
55
|
+
for (const error of report.pageErrors)
|
|
56
|
+
write(` ${error.url} — ${error.reason}`);
|
|
57
|
+
}
|
|
58
|
+
write('');
|
|
59
|
+
if (seoFailed(report)) {
|
|
60
|
+
write(` ${report.failed.length} check(s) failed: ${report.failed.join(', ')}`);
|
|
61
|
+
}
|
|
62
|
+
else if (report.pagesChecked.length === 0) {
|
|
63
|
+
write(' Nothing about the deployed site was checked. Deploy it, then run this again.');
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
const skipped = report.skipped.length > 0 ? `, ${report.skipped.length} not applicable yet` : '';
|
|
67
|
+
write(` All ${report.ran} applicable check(s) passed${skipped}.`);
|
|
68
|
+
}
|
|
69
|
+
if (!report.stored) {
|
|
70
|
+
write("\n Not recorded against this site: it is not on the client's own domain yet.");
|
|
71
|
+
}
|
|
72
|
+
// Always printed, pass or fail. The mechanical half passing is exactly when
|
|
73
|
+
// somebody is most likely to call the site finished.
|
|
74
|
+
write('\n Ask the person you are working with, because no tool can answer these:\n');
|
|
75
|
+
for (const question of JUDGMENT_QUESTIONS)
|
|
76
|
+
write(` · ${question}`);
|
|
77
|
+
write('');
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=seo-report.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seo-report.js","sourceRoot":"","sources":["../../src/lib/seo-report.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AAEH,MAAM,IAAI,GAA2B,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC;AAEzE;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAsB;IACnD,6FAA6F;IAC7F,sGAAsG;IACtG,oFAAoF;IACpF,4FAA4F;IAC5F,sGAAsG;IACtG,6FAA6F;CAC9F,CAAC;AAEF,kEAAkE;AAClE,MAAM,UAAU,SAAS,CAAC,MAAiB;IACzC,OAAO,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC;AAClC,CAAC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CAAC;QAC5D,KAAK,MAAM,KAAK,IAAI,MAAM,CAAC,UAAU;YAAE,KAAK,CAAC,OAAO,KAAK,CAAC,GAAG,MAAM,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC;IACrF,CAAC;IAED,KAAK,CAAC,EAAE,CAAC,CAAC;IACV,IAAI,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC;QACtB,KAAK,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC,MAAM,qBAAqB,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAClF,CAAC;SAAM,IAAI,MAAM,CAAC,YAAY,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC5C,KAAK,CAAC,gFAAgF,CAAC,CAAC;IAC1F,CAAC;SAAM,CAAC;QACN,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC,OAAO,CAAC,MAAM,qBAAqB,CAAC,CAAC,CAAC,EAAE,CAAC;QACjG,KAAK,CAAC,SAAS,MAAM,CAAC,GAAG,8BAA8B,OAAO,GAAG,CAAC,CAAC;IACrE,CAAC;IAED,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;QACnB,KAAK,CAAC,+EAA+E,CAAC,CAAC;IACzF,CAAC;IAED,4EAA4E;IAC5E,qDAAqD;IACrD,KAAK,CAAC,8EAA8E,CAAC,CAAC;IACtF,KAAK,MAAM,QAAQ,IAAI,kBAAkB;QAAE,KAAK,CAAC,SAAS,QAAQ,EAAE,CAAC,CAAC;IACtE,KAAK,CAAC,EAAE,CAAC,CAAC;AACZ,CAAC"}
|
package/dist/lib/skill.js
CHANGED
|
@@ -95,7 +95,7 @@ export function reportSkillInstall() {
|
|
|
95
95
|
console.log(`Skill: installed scribe-site-builder to ${tildify(skill.dest)}.`);
|
|
96
96
|
}
|
|
97
97
|
else if (skill.status === 'missing-source') {
|
|
98
|
-
console.warn(
|
|
98
|
+
console.warn('Skill: this install is missing its bundled copy of scribe-site-builder — tell Dave.');
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
//# sourceMappingURL=skill.js.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scribe-platform/cli",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Command-line interface for Scribe CMS
|
|
3
|
+
"version": "0.11.0",
|
|
4
|
+
"description": "Command-line interface for Scribe CMS \u2014 scaffold sites, edit content, and triage form submissions from the terminal",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Dave Weaver",
|
|
7
7
|
"homepage": "https://github.com/scribe-platform/scribe/tree/main/packages/cli#readme",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: scribe-site-builder
|
|
3
|
-
description: Guides building a website on Scribe CMS end to end — designing the Astro site freely against Scribe as its backend, editing the `.scribe.yml` schema, adding one or many forms, the local dev loop, pushing content, and deploying — using the `scribe` CLI and the recipes in `recipes/`. Also the reference for working an existing Scribe site (adding fields/collections, publishing content, triaging form submissions and inquiries, renaming, archiving, restoring or deleting a site), for taking a site live on a custom domain — checking whether a client has a domain, buying one, DNS/CNAME setup, GitHub Pages domain config, HTTPS — for the queue of requests clients have sent the agency (triaging, claiming, replying, closing), for the agency's prospect pipeline (logging calls, follow-ups, won/lost), and for proofs — sending a client work to review (logo boards, mockups, colour schemes), reading what they said, and sending the next version. Use whenever the user wants to build/create/start a new website or site with Scribe, add a form to a site, work on an existing Scribe site, publish/launch/go live with a site, point a site at a domain, set up or fix a custom domain or DNS for a Scribe site, work the inquiries a site has received, triage or reply to a client's request for work, log a call or follow-up with a prospect or client, wants to send a client something to look at or approve (logo ideas, mockups, options, a proof), asks what a client said about work they were sent, wants to do another round or version of something a client reviewed, or asks about the `scribe` CLI.
|
|
3
|
+
description: Guides building a website on Scribe CMS end to end — designing the Astro site freely against Scribe as its backend, editing the `.scribe.yml` schema, adding one or many forms, the local dev loop, pushing content, and deploying — using the `scribe` CLI and the recipes in `recipes/`. Also the reference for working an existing Scribe site (adding fields/collections, publishing content, triaging form submissions and inquiries, renaming, archiving, restoring or deleting a site), for taking a site live on a custom domain — checking whether a client has a domain, buying one, DNS/CNAME setup, GitHub Pages domain config, HTTPS — for the queue of requests clients have sent the agency (triaging, claiming, replying, closing), for the agency's prospect pipeline (logging calls, follow-ups, won/lost), and for proofs — sending a client work to review (logo boards, mockups, colour schemes), reading what they said, and sending the next version. Use whenever the user wants to build/create/start a new website or site with Scribe, add a form to a site, work on an existing Scribe site, publish/launch/go live with a site, point a site at a domain, set up or fix a custom domain or DNS for a Scribe site, work the inquiries a site has received, triage or reply to a client's request for work, log a call or follow-up with a prospect or client, wants to send a client something to look at or approve (logo ideas, mockups, options, a proof), asks what a client said about work they were sent, wants to do another round or version of something a client reviewed, wants to give a client a login or sign-in for their own site, set someone up to edit their own content, re-send or fix a sign-in link that expired or didn't arrive, or asks about the `scribe` CLI.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Building a site with Scribe
|
|
@@ -75,10 +75,12 @@ instead of reading all of them:
|
|
|
75
75
|
| [`recipes/collections.md`](./recipes/collections.md) | rendering editor-managed content |
|
|
76
76
|
| [`recipes/forms.md`](./recipes/forms.md) | adding one or more forms |
|
|
77
77
|
| [`recipes/deploy.md`](./recipes/deploy.md) | build/deploy setup or debugging |
|
|
78
|
+
| [`recipes/seo.md`](./recipes/seo.md) | making a site findable — sitemap, robots, canonicals, share cards, business details |
|
|
78
79
|
| [`recipes/domains.md`](./recipes/domains.md) | anything about a domain — whether the client has one, getting them one, the DNS, taking a site live on it, fixing one |
|
|
79
80
|
| [`recipes/requests.md`](./recipes/requests.md) | working the queue of jobs clients have asked the agency for |
|
|
80
81
|
| [`recipes/prospects.md`](./recipes/prospects.md) | logging calls and follow-ups on prospects (not site-building) |
|
|
81
82
|
| [`recipes/proofs.md`](./recipes/proofs.md) | sending a client work to review — logo boards, mockups, options — and working the rounds |
|
|
83
|
+
| [`recipes/client-logins.md`](./recipes/client-logins.md) | giving a client's own people a sign-in, and fixing a link that expired or never arrived |
|
|
82
84
|
|
|
83
85
|
[`recipes/README.md`](./recipes/README.md) lists the five things that are a hard
|
|
84
86
|
contract (because Scribe writes into the repo) as opposed to advice.
|
|
@@ -154,7 +156,7 @@ Three rules, in full, because getting them wrong is expensive:
|
|
|
154
156
|
admin UI (sign in → account menu → **API Tokens** → New token). This is the
|
|
155
157
|
whole machine setup: it writes `~/.scribe/config.json`, installs this skill,
|
|
156
158
|
and turns on auto-updates. Defaults to the hosted admin at
|
|
157
|
-
`https://
|
|
159
|
+
`https://my.weaverdigital.io`; add `--api-url <url>` only to point at a
|
|
158
160
|
different instance (a local dev/Docker admin). Every other command reads that
|
|
159
161
|
config, no per-invocation `--token` flag. If a command fails with a raw `fetch failed`, that's not an API
|
|
160
162
|
error — it means `apiUrl` in that config doesn't point at anything listening;
|
|
@@ -271,7 +273,31 @@ file that the update might have changed; if you need the new text now, read
|
|
|
271
273
|
`scribe site verify my-site` runs the checks on their own, against whatever is
|
|
272
274
|
currently live. Exits non-zero on a failure, so it works in a script.
|
|
273
275
|
|
|
274
|
-
8. **
|
|
276
|
+
8. **Before going live, check the site can be found.** Only for a site that is
|
|
277
|
+
actually going on a client's domain — skip it for demos.
|
|
278
|
+
|
|
279
|
+
```
|
|
280
|
+
scribe site seo my-site
|
|
281
|
+
```
|
|
282
|
+
Eleven mechanical checks (RFC 0032): the sitemap, the robots file, each
|
|
283
|
+
page's title and description, canonicals, the card a shared link shows, the
|
|
284
|
+
business details search engines read, a reachable phone number, image alt
|
|
285
|
+
text. Each failure names [`recipes/seo.md`](./recipes/seo.md), which is how
|
|
286
|
+
to fix it. Three of them (`sitemap`, `canonical`, `indexable`) skip until the
|
|
287
|
+
site is on its domain — that is expected and not something to fix.
|
|
288
|
+
|
|
289
|
+
**Then ask her the questions the report ends with.** They are printed every
|
|
290
|
+
time, pass or fail, because no tool can answer them: is that testimonial a
|
|
291
|
+
real client, is there a page for each thing they sell, does the form need a
|
|
292
|
+
privacy policy, does the site name the town. Put them to her one at a time,
|
|
293
|
+
in her words, and fix what you can from her answers. *"Not yet"* is a real
|
|
294
|
+
answer — the point is that it is said out loud while it is still cheap.
|
|
295
|
+
|
|
296
|
+
**Do not promote until both halves have an answer.** `promote` refuses on a
|
|
297
|
+
failing check anyway, the same way it refuses when DNS is not ready. If it
|
|
298
|
+
does, fix the cause and run it again rather than reaching for `--force`.
|
|
299
|
+
|
|
300
|
+
9. **Domain cutover — only when a customer's own hostname is ready.** Skip this
|
|
275
301
|
entirely for demo sites; the GitHub Pages default already works.
|
|
276
302
|
|
|
277
303
|
If it *isn't* ready — the client may not own a domain, may not know who holds
|
|
@@ -325,6 +351,7 @@ file that the update might have changed; if you need the new text now, read
|
|
|
325
351
|
## Working an existing site
|
|
326
352
|
|
|
327
353
|
```
|
|
354
|
+
scribe site seo <site> [--json] # can it be found? run before promote
|
|
328
355
|
scribe site promote <site> --domain <domain> [--dns-only] # take it live on a real domain
|
|
329
356
|
scribe site update <site> --turnstile-key <key> # correct stored settings only
|
|
330
357
|
|
|
@@ -384,8 +411,8 @@ scribe request status <id> <open|in-progress|waiting-on-you|done|cancelled>
|
|
|
384
411
|
lossless, with each submission's events nested under it.
|
|
385
412
|
- `submission delete` is permanent, cascades the submission's history, and needs a
|
|
386
413
|
**staff** role — a site user's API key gets a 403. It prompts for the id unless
|
|
387
|
-
`--yes` is passed.
|
|
388
|
-
|
|
414
|
+
`--yes` is passed. Staff also have a **Delete** button on a submission's page in the
|
|
415
|
+
admin app (site users don't); either way, confirm with Ashley before deleting.
|
|
389
416
|
- **`scribe request` is the other queue, and the opposite direction.** A submission is
|
|
390
417
|
a Visitor contacting the *client*; a Request is the **client contacting the agency**
|
|
391
418
|
to ask for work. One cross-site queue, staff-only, nothing in any repo. Three things
|
|
@@ -16,15 +16,18 @@ generated config to keep in sync.
|
|
|
16
16
|
| [`collections.md`](./collections.md) | rendering content (posts, products, events) that editors manage in Scribe |
|
|
17
17
|
| [`forms.md`](./forms.md) | putting one or more forms on the Site |
|
|
18
18
|
| [`deploy.md`](./deploy.md) | setting up or debugging the build and deploy |
|
|
19
|
+
| [`seo.md`](./seo.md) | making a site findable: sitemap, robots, canonicals, share cards, business details |
|
|
19
20
|
| [`domains.md`](./domains.md) | finding out whether a client has a domain, getting them one, the DNS, taking a Site live on it, or repairing one |
|
|
20
21
|
| [`requests.md`](./requests.md) | working the queue of jobs clients have asked the agency for |
|
|
21
22
|
| [`prospects.md`](./prospects.md) | recording and nurturing prospects in the calling pipeline |
|
|
22
23
|
| [`proofs.md`](./proofs.md) | sending a client work to review (logo boards, mockups) and working the rounds |
|
|
24
|
+
| [`client-logins.md`](./client-logins.md) | giving a client's own people a sign-in, and fixing a link that didn't work |
|
|
23
25
|
|
|
24
|
-
`requests.md`, `prospects.md` and `
|
|
25
|
-
about the agency's own work (its queue, its sales pipeline,
|
|
26
|
-
sends clients to review
|
|
27
|
-
here because the `scribe` CLI is the interface
|
|
26
|
+
`requests.md`, `prospects.md`, `proofs.md` and `client-logins.md` are the odd
|
|
27
|
+
ones out — they're about the agency's own work (its queue, its sales pipeline,
|
|
28
|
+
the work it sends clients to review, and who can sign in) rather than anything
|
|
29
|
+
in a Site's repo, and they live here because the `scribe` CLI is the interface
|
|
30
|
+
for all of it.
|
|
28
31
|
|
|
29
32
|
## The part that isn't advice
|
|
30
33
|
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# Recipe: client logins
|
|
2
|
+
|
|
3
|
+
> **The commands below are yours to run, not hers to read.** If she's asking
|
|
4
|
+
> what this is or how to do it, answer it the way *Who you're talking to* in
|
|
5
|
+
> [`../SKILL.md`](../SKILL.md) says to: what it is, what she'd say to get it,
|
|
6
|
+
> what's her call, and an offer to do it now.
|
|
7
|
+
|
|
8
|
+
Giving a Client's own people a sign-in, so they can edit their Site's content
|
|
9
|
+
and work their own inquiries. Her guide for this is *Client logins*.
|
|
10
|
+
|
|
11
|
+
## 1. The rule that matters
|
|
12
|
+
|
|
13
|
+
**No password is ever created, shown, or sent.** Creating a Site user mints a
|
|
14
|
+
set-your-password **link**; the person redeems it and chooses their own. There
|
|
15
|
+
is no path where Ashley reads a credential to a client, and there should not
|
|
16
|
+
be one.
|
|
17
|
+
|
|
18
|
+
If she asks for "his password", that is the one request to answer with the
|
|
19
|
+
thing rather than the literal ask: she wants him able to sign in, and a fresh
|
|
20
|
+
link is how. Say so plainly — it takes one sentence and it is the whole point
|
|
21
|
+
of the design.
|
|
22
|
+
|
|
23
|
+
## 2. The commands
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
scribe user list <site>
|
|
27
|
+
|
|
28
|
+
scribe user add <site> --name "Mark Pawling" --email mark@pawlingmasonry.com
|
|
29
|
+
|
|
30
|
+
scribe user invite <site> mark@pawlingmasonry.com # a fresh link
|
|
31
|
+
scribe user invite <site> mark@pawlingmasonry.com --send-email
|
|
32
|
+
|
|
33
|
+
scribe user extend <site> mark@pawlingmasonry.com # revive the link he already has
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
`add` creates the account and prints a link. `invite` issues another link for
|
|
37
|
+
somebody who already has an account. Both take `--json`.
|
|
38
|
+
|
|
39
|
+
**`--send-email` is opt-in, and that is deliberate — never add it unless she
|
|
40
|
+
asked.** Everything else here is reversible; emailing a real client is not. If
|
|
41
|
+
she hasn't said how she wants it delivered, hand her the link and ask.
|
|
42
|
+
|
|
43
|
+
## 3. What to tell her when a link doesn't work
|
|
44
|
+
|
|
45
|
+
Three failures, three different answers, and getting them the right way round
|
|
46
|
+
saves a phone call:
|
|
47
|
+
|
|
48
|
+
| She says | What happened | What to do |
|
|
49
|
+
|---|---|---|
|
|
50
|
+
| "He never got the email" | Spam, most likely | Give her the link to text. **Any link already sent still works** — a new one does not cancel it |
|
|
51
|
+
| "His link expired" | Past 7 days | `scribe user extend` — the link already in his messages starts working again, so nothing has to be re-sent |
|
|
52
|
+
| "It says already used" | He has a password | He needs **Forgot your password?** on the sign-in page. `extend` reports 0 here, which is the same answer |
|
|
53
|
+
|
|
54
|
+
Extending is the one worth reaching for first when the link is already out
|
|
55
|
+
there: a new link means she has to deliver it again, an extension doesn't.
|
|
56
|
+
|
|
57
|
+
## 4. Why several live links is fine
|
|
58
|
+
|
|
59
|
+
Issuing an invite does **not** revoke earlier ones. The raw token only exists
|
|
60
|
+
at the moment it is created — everything stored is a bcrypt hash — so a link
|
|
61
|
+
she has already texted can never be shown again, and superseding it would
|
|
62
|
+
silently strand it.
|
|
63
|
+
|
|
64
|
+
Redeeming any one link burns all the others for that person, so a spare can
|
|
65
|
+
never set the password a second time. That property is what makes multiple live
|
|
66
|
+
links safe, and it is worth not breaking.
|
|
67
|
+
|
|
68
|
+
## 5. Scope
|
|
69
|
+
|
|
70
|
+
A Site user sees their own Site and nothing else — never another Client, never
|
|
71
|
+
the agency's own pages. One person needing access to **two** Clients' Sites is
|
|
72
|
+
not this recipe: it crosses RFC 0006's client-group invariant, `grantSiteAccess`
|
|
73
|
+
will refuse it, and it is a conversation with Dave rather than a command to
|
|
74
|
+
find.
|
|
@@ -95,16 +95,43 @@ export default defineConfig({
|
|
|
95
95
|
|
|
96
96
|
## `PUBLIC_SCRIBE_API_URL`
|
|
97
97
|
|
|
98
|
-
Where forms post. It's
|
|
99
|
-
|
|
100
|
-
|
|
98
|
+
Where forms post. It's an **organisation variable** on the GitHub org that owns
|
|
99
|
+
the repo, so every Site follows one value and nobody has to remember to set it
|
|
100
|
+
per repo. Don't add a repo-level variable of the same name: it shadows the org
|
|
101
|
+
one, and `scribe site verify`'s `binding` check reports it as a failure for that
|
|
102
|
+
reason.
|
|
103
|
+
|
|
104
|
+
**It has no default in a production build, and that is deliberate.** Any
|
|
105
|
+
`PUBLIC_*` value is inlined into the client bundle at build time, so a Site that
|
|
106
|
+
falls back to a guess ships the wrong endpoint — posting a Visitor's message to
|
|
107
|
+
whichever Scribe the fallback named, found out, if ever, by a Client wondering
|
|
108
|
+
why nobody replied. So a missing value fails `astro build` instead. Note that
|
|
109
|
+
`binding` does **not** cover this: it asserts no repo-level override exists, not
|
|
110
|
+
that the org value resolves to anything.
|
|
111
|
+
|
|
112
|
+
GitHub resolves an unset `vars.*` to an empty string rather than leaving it
|
|
113
|
+
undefined, so `??` would not fall back and an empty value has to count as
|
|
114
|
+
missing:
|
|
101
115
|
|
|
102
116
|
```ts
|
|
103
|
-
|
|
117
|
+
function scribeApiBase(): string {
|
|
118
|
+
const configured = import.meta.env.PUBLIC_SCRIBE_API_URL?.trim();
|
|
119
|
+
if (configured) return configured;
|
|
120
|
+
if (import.meta.env.PROD) {
|
|
121
|
+
throw new Error(
|
|
122
|
+
'PUBLIC_SCRIBE_API_URL is unset. Set it as an organisation variable on the GitHub org that owns ' +
|
|
123
|
+
'this repo — it has no default in a production build, so this Site posts nowhere by accident.',
|
|
124
|
+
);
|
|
125
|
+
}
|
|
126
|
+
// Dev only, and a *local* admin rather than production: the point of failing
|
|
127
|
+
// loudly is that a Site cannot reach a real Client's database by omission.
|
|
128
|
+
return 'http://localhost:3040';
|
|
129
|
+
}
|
|
104
130
|
```
|
|
105
131
|
|
|
106
|
-
|
|
107
|
-
|
|
132
|
+
Call it where the endpoint is actually needed, not at the top of a component
|
|
133
|
+
that takes the endpoint as a prop — otherwise it throws at a caller who already
|
|
134
|
+
supplied one.
|
|
108
135
|
|
|
109
136
|
## Local loop
|
|
110
137
|
|
|
@@ -114,10 +141,11 @@ npm run dev # iterate on design
|
|
|
114
141
|
npm run build && npm run preview
|
|
115
142
|
```
|
|
116
143
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
144
|
+
`npm run dev` needs no env file: with nothing set, `scribeApiBase()` above
|
|
145
|
+
returns `http://localhost:3040`, which is where a local admin listens. Set
|
|
146
|
+
`PUBLIC_SCRIBE_API_URL` only to point somewhere else. Either way the endpoint
|
|
147
|
+
allows CORS from the Site's registered domain only, so use the admin's own host
|
|
148
|
+
or expect to test submissions against the deployed site.
|
|
121
149
|
|
|
122
150
|
## Checklist when a deploy looks wrong
|
|
123
151
|
|
|
@@ -127,5 +155,8 @@ submissions against the deployed site.
|
|
|
127
155
|
workflow failed; check the Actions tab.
|
|
128
156
|
- Form says "Failed to fetch" → `PUBLIC_SCRIBE_API_URL` baked in wrong, or the
|
|
129
157
|
origin isn't the Site's registered domain.
|
|
158
|
+
- Build fails with *"PUBLIC_SCRIBE_API_URL is unset"* → the org variable is
|
|
159
|
+
missing or scoped to selected repositories that don't include this one. That
|
|
160
|
+
is the check working: fix the variable rather than adding a fallback.
|
|
130
161
|
- Build fails after an editor added a field → the content zod schema is too
|
|
131
162
|
strict (see `collections.md`).
|
|
@@ -111,7 +111,10 @@ certificate, and promote will refuse with a `cloudflare-proxied` message.
|
|
|
111
111
|
`www` is not automatic. If a bare domain is the target and the client also wants
|
|
112
112
|
`www.example.com` to work, add a `www` CNAME → `<org>.github.io` at the
|
|
113
113
|
registrar; GitHub then redirects it to the apex on its own. Nothing in Scribe
|
|
114
|
-
needs to change for that.
|
|
114
|
+
needs to change for that. Promote (and `--dns-only`) checks it for a bare
|
|
115
|
+
domain and prints a `!` warning naming the record to add if `www` is missing
|
|
116
|
+
or still answered by a registrar's parking wildcard. The site is live either
|
|
117
|
+
way; add the record, and `www` works once DNS catches up — no re-run needed.
|
|
115
118
|
|
|
116
119
|
## Re-running is the fix
|
|
117
120
|
|
|
@@ -126,13 +126,33 @@ export interface Props {
|
|
|
126
126
|
prefill?: Record<string, string>;
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
+
// Where forms post. **No default in a production build, deliberately** — see
|
|
130
|
+
// `deploy.md`. Dev falls back to a local admin, never production, so
|
|
131
|
+
// `npm run dev` works with no env file and still cannot write to a real
|
|
132
|
+
// Client's database by accident.
|
|
133
|
+
function scribeApiBase(): string {
|
|
134
|
+
const configured = import.meta.env.PUBLIC_SCRIBE_API_URL?.trim();
|
|
135
|
+
if (configured) return configured;
|
|
136
|
+
if (import.meta.env.PROD) {
|
|
137
|
+
throw new Error(
|
|
138
|
+
'PUBLIC_SCRIBE_API_URL is unset. Set it as an organisation variable on the GitHub org that owns ' +
|
|
139
|
+
'this repo — it has no default in a production build, so this Site posts nowhere by accident.',
|
|
140
|
+
);
|
|
141
|
+
}
|
|
142
|
+
return 'http://localhost:3040';
|
|
143
|
+
}
|
|
144
|
+
|
|
129
145
|
const {
|
|
130
146
|
site, collection, turnstileSiteKey, fields,
|
|
131
|
-
apiBase
|
|
147
|
+
apiBase: apiBaseProp,
|
|
132
148
|
submitLabel = 'Send',
|
|
133
149
|
prefill = {},
|
|
134
150
|
} = Astro.props;
|
|
135
151
|
|
|
152
|
+
// Resolved after the props, and only when `apiBase` was not passed: a caller who
|
|
153
|
+
// named it has already answered the question `scribeApiBase()` would throw about.
|
|
154
|
+
const apiBase = apiBaseProp ?? scribeApiBase();
|
|
155
|
+
|
|
136
156
|
// Scoped to the collection so two forms can share a page.
|
|
137
157
|
const formId = `scribe-form-${collection}`;
|
|
138
158
|
|