@scribe-platform/cli 0.7.0 → 0.9.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 +28 -0
- package/dist/commands/login.d.ts.map +1 -1
- package/dist/commands/login.js +15 -1
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/proof.d.ts +5 -0
- package/dist/commands/proof.d.ts.map +1 -0
- package/dist/commands/proof.js +440 -0
- package/dist/commands/proof.js.map +1 -0
- package/dist/commands/prospect.d.ts +27 -0
- package/dist/commands/prospect.d.ts.map +1 -0
- package/dist/commands/prospect.js +222 -0
- package/dist/commands/prospect.js.map +1 -0
- package/dist/commands/request.d.ts +38 -0
- package/dist/commands/request.d.ts.map +1 -0
- package/dist/commands/request.js +214 -0
- package/dist/commands/request.js.map +1 -0
- package/dist/commands/site.d.ts +11 -0
- package/dist/commands/site.d.ts.map +1 -1
- package/dist/commands/site.js +41 -3
- package/dist/commands/site.js.map +1 -1
- package/dist/commands/update.d.ts +10 -0
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +128 -31
- package/dist/commands/update.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/claude-hook.d.ts +74 -0
- package/dist/lib/claude-hook.d.ts.map +1 -0
- package/dist/lib/claude-hook.js +108 -0
- package/dist/lib/claude-hook.js.map +1 -0
- package/dist/lib/client.d.ts +351 -0
- package/dist/lib/client.d.ts.map +1 -1
- package/dist/lib/client.js +159 -0
- package/dist/lib/client.js.map +1 -1
- package/dist/lib/proof-folder.d.ts +86 -0
- package/dist/lib/proof-folder.d.ts.map +1 -0
- package/dist/lib/proof-folder.js +226 -0
- package/dist/lib/proof-folder.js.map +1 -0
- package/dist/lib/proof-preview.d.ts +39 -0
- package/dist/lib/proof-preview.d.ts.map +1 -0
- package/dist/lib/proof-preview.js +318 -0
- package/dist/lib/proof-preview.js.map +1 -0
- package/dist/lib/proof-push.d.ts +42 -0
- package/dist/lib/proof-push.d.ts.map +1 -0
- package/dist/lib/proof-push.js +91 -0
- package/dist/lib/proof-push.js.map +1 -0
- package/dist/lib/skill.d.ts +13 -0
- package/dist/lib/skill.d.ts.map +1 -1
- package/dist/lib/skill.js +33 -2
- package/dist/lib/skill.js.map +1 -1
- package/dist/lib/update-check.d.ts +46 -0
- package/dist/lib/update-check.d.ts.map +1 -0
- package/dist/lib/update-check.js +103 -0
- package/dist/lib/update-check.js.map +1 -0
- package/package.json +5 -3
- package/runtime/proof.js +139 -0
- package/skills/scribe-site-builder/SKILL.md +175 -33
- package/skills/scribe-site-builder/recipes/README.md +11 -3
- package/skills/scribe-site-builder/recipes/domains.md +151 -0
- package/skills/scribe-site-builder/recipes/forms.md +5 -2
- package/skills/scribe-site-builder/recipes/proofs.md +311 -0
- package/skills/scribe-site-builder/recipes/prospects.md +192 -0
- package/skills/scribe-site-builder/recipes/requests.md +145 -0
- package/skills/scribe-site-builder/recipes/schema.md +24 -0
|
@@ -129,6 +129,30 @@ produced a clean commit, a green deploy, and no tracking at all.
|
|
|
129
129
|
Cookieless, so it needs no consent banner, and `defer` keeps it off the
|
|
130
130
|
critical path.
|
|
131
131
|
|
|
132
|
+
## Changing a collection that already holds content
|
|
133
|
+
|
|
134
|
+
`scribe schema apply <site> --file <spec>` upserts **one whole collection by
|
|
135
|
+
name** — so the spec you send *is* the collection afterwards. A field you leave
|
|
136
|
+
out is a field you removed. Read the current definition first
|
|
137
|
+
(`scribe schema show <site> <collection>`), edit that, and send it back; never
|
|
138
|
+
write a spec from memory for a collection that already exists.
|
|
139
|
+
|
|
140
|
+
What each kind of change costs, because a schema edit and a content edit are
|
|
141
|
+
different risks:
|
|
142
|
+
|
|
143
|
+
| Change | Effect on existing entries |
|
|
144
|
+
|---|---|
|
|
145
|
+
| Add a field | Harmless. Existing entries read it as empty. Add `required: true` only if you're also filling it in, or every existing entry becomes invalid. |
|
|
146
|
+
| Remove a field | The content files keep the value, but nothing reads it and the admin stops showing it. Effectively lost. |
|
|
147
|
+
| Rename a field | There is no rename — it is a remove plus an add, and the old values do not follow. Moving them means editing every content file. |
|
|
148
|
+
| Change a field's type | The declared type generates the build's validation, so an entry whose value no longer fits **breaks the site build** rather than failing quietly. |
|
|
149
|
+
| Remove a collection | `scribe schema remove` **deletes its content folder too**. |
|
|
150
|
+
|
|
151
|
+
So when someone asks to "rename that field" or "change services to use a number
|
|
152
|
+
for price", say what it will do to the entries that already exist before you run
|
|
153
|
+
it. On a form collection the same applies to its submissions, which are in the
|
|
154
|
+
database and far harder to reconcile than files in a repo.
|
|
155
|
+
|
|
132
156
|
## From the CLI instead
|
|
133
157
|
|
|
134
158
|
Useful when you want the schema without a checkout, or to inspect it while
|