td-ai-tools 1.5.1 → 1.5.2
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/package.json +1 -1
- package/skills/cloudflare/references/domains-and-dns.md +1 -1
- package/skills/cloudflare/references/forms-email-turnstile.md +16 -3
- package/skills/shopify-lint/scripts/__pycache__/shopify_lint.cpython-312.pyc +0 -0
- package/skills/shopify-lint/tests/__pycache__/test_shopify_lint.cpython-312.pyc +0 -0
- package/skills/visual-regression/scripts/__pycache__/visual_regression.cpython-312.pyc +0 -0
- package/skills/barrage/scripts/__pycache__/build_queue.cpython-312.pyc +0 -0
- package/skills/barrage/scripts/__pycache__/manage_queue.cpython-312.pyc +0 -0
- package/skills/barrage/scripts/__pycache__/queue_paths.cpython-312.pyc +0 -0
- package/skills/shopify-lint/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +0 -1
- package/skills/shopify-pre-pr/scripts/__pycache__/test_vendor_change_audit.cpython-312.pyc +0 -0
- package/skills/shopify-pre-pr/scripts/__pycache__/vendor_change_audit.cpython-312.pyc +0 -0
package/package.json
CHANGED
|
@@ -47,7 +47,7 @@ The response contains `name_servers`, the two to give to the registrar.
|
|
|
47
47
|
```bash
|
|
48
48
|
bash scripts/cf-api.sh GET '/zones/{zone:acme.com}/dns_records?per_page=500' | jq -r '.result[] | [.type,.name,.content,.proxied] | @tsv'
|
|
49
49
|
```
|
|
50
|
-
Add anything missing. MX, SPF, DKIM, DMARC and verification TXT records must be **DNS-only** (`"proxied": false`); MX and TXT can't be proxied anyway. Records for other web hosts (subdomains not served by this Worker) can be proxied if their origin supports HTTPS; if unsure, keep them DNS-only to start.
|
|
50
|
+
Add anything missing. MX, SPF, DKIM, DMARC and verification TXT records must be **DNS-only** (`"proxied": false`); MX and TXT can't be proxied anyway, but the **A/AAAA record of each MX target** (e.g. `mail.acme.com`) can be, and the import often proxies it. A proxied mail host resolves to Cloudflare IPs and all inbound mail bounces, so set those records DNS-only. Records for other web hosts (subdomains not served by this Worker) can be proxied if their origin supports HTTPS; if unsure, keep them DNS-only to start.
|
|
51
51
|
|
|
52
52
|
Bulk alternative: build a BIND zone file and `POST /zones/{id}/dns_records/import` (multipart form, `file=@zone.txt`). That endpoint needs `curl -F` directly; `cf-api.sh` sends JSON only.
|
|
53
53
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Forms, email and Turnstile
|
|
2
2
|
|
|
3
|
-
Leyline forms post to the site's own Worker (`/_leyline/forms/<id
|
|
3
|
+
Leyline forms post to the site's own Worker (`/_leyline/forms/<id>`, and fetch a token from `/_leyline/token/<id>`; both take a trailing slash when `site.trailingSlash: 'always'`). It validates the submission, optionally stores it in D1, and sends the notification (plus the optional visitor confirmation) through the form's **transport**: Postmark or Cloudflare Email Sending. Cloudflare's part is Turnstile, rate limiting, D1, the DNS that makes email work, and, with the Cloudflare transport, the sending itself.
|
|
4
4
|
|
|
5
5
|
## Contents
|
|
6
6
|
- Choosing a transport
|
|
@@ -28,6 +28,17 @@ const mail = { to: 'info@acme.com', from: 'Acme <web@acme.com>', transport: 'clo
|
|
|
28
28
|
|
|
29
29
|
Default for new sites: `cloudflare` when the zone is on Cloudflare DNS and the account is on Workers Paid; otherwise Postmark. Keep Postmark for clients where a missed lead is costly until Email Sending is GA. The free 3,000 quota is per **account**: a site handed off to a client's own account needs that account on Workers Paid (see `site-lifecycle.md`).
|
|
30
30
|
|
|
31
|
+
### Visitor confirmation
|
|
32
|
+
|
|
33
|
+
Add `confirmation` to the form (or the shared `mail` object) to also email the visitor, at the form's `replyTo` email field. It goes through the same transport, from `confirmation.from` (default: the form's `from`), with Reply-To set to the form's `to`, so a visitor's reply reaches the business inbox:
|
|
34
|
+
```ts
|
|
35
|
+
confirmation: {
|
|
36
|
+
subject: 'We got your message — Acme',
|
|
37
|
+
body: 'Thanks for getting in touch. We will get back to you as soon as we can.\n\nIf it is urgent, call us at 555-0100.',
|
|
38
|
+
},
|
|
39
|
+
```
|
|
40
|
+
`body` is plain text; blank lines separate paragraphs. A copy of the answers is appended unless `includeSubmission: false`. Have the user confirm the copy: don't promise a response time the client hasn't. Submissions flagged `[unverified]` get no confirmation, and a failed confirmation is only logged; it never fails the submission.
|
|
41
|
+
|
|
31
42
|
## Turnstile widgets
|
|
32
43
|
|
|
33
44
|
```bash
|
|
@@ -63,6 +74,7 @@ npx wrangler email sending dns get acme.com # records it expects; com
|
|
|
63
74
|
Don't use `destination_address` / `allowed_destination_addresses` if the form sends visitor confirmations: those go to arbitrary addresses. A different binding name needs `emailBinding: '<NAME>'` in the form config.
|
|
64
75
|
- No secret is needed. `POSTMARK_SERVER_TOKEN` can be left unset.
|
|
65
76
|
- `wrangler dev` simulates the binding: emails are logged to the console (`send_email binding called with MessageBuilder`) and **not** sent. To send for real from dev, add `"remote": true` to the binding temporarily. It sends real mail.
|
|
77
|
+
- With `persist`, apply local migrations against the config `wrangler dev` runs (`npx wrangler d1 migrations apply DB --local -c dist/server/wrangler.json`). Applying them with the root `wrangler.jsonc` writes a different local state, and submissions fail with `no such table: leyline_submissions` (a 502 in the browser).
|
|
66
78
|
- Test end to end on a preview or production deploy: notification arrives, Reply-To is the visitor, headers show SPF/DKIM/DMARC pass.
|
|
67
79
|
|
|
68
80
|
## Postmark DNS
|
|
@@ -105,5 +117,6 @@ Work through these in order and stop at the first failure:
|
|
|
105
117
|
- `[leyline] Form "x" misconfigured: send_email binding "EMAIL" is not configured` → the binding is missing from `wrangler.jsonc` (or `emailBinding` doesn't match it).
|
|
106
118
|
2. **Secrets**: `npx wrangler secret list` shows `FORM_SIGNING_SECRET`, plus `POSTMARK_SERVER_TOKEN` for the Postmark transport.
|
|
107
119
|
3. **Provider activity**: in the Postmark UI (delivered, bounced, spam-complained; a hard-bounced recipient stays suppressed until reactivated), or the dashboard's Email Service → Email Sending activity log and metrics (about 7 days of message preview).
|
|
108
|
-
4. **
|
|
109
|
-
5. **
|
|
120
|
+
4. **The `to:` mailbox can't receive.** After a zone import, the MX target host (often `mail.<domain>` on cPanel or GoDaddy) can end up **proxied**. It then resolves to Cloudflare IPs, which don't accept SMTP, so every inbound message to the domain bounces, not just form mail. List the zone's MX records, then confirm each target's A/AAAA record is DNS-only (`"proxied": false`). See `domains-and-dns.md`.
|
|
121
|
+
5. **Recipient side**: spam folder, or a Microsoft 365 quarantine. Unverified DKIM / Return-Path (Postmark) or `cf-bounce` records (Email Sending) make this much worse.
|
|
122
|
+
6. **Submission marked `[unverified]` or flagged**: Leyline's spam heuristics. See `flags` in D1. That's working as designed unless legitimate messages are being rejected.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":"4.1.10","results":[[":eslint-plugin-theory/src/rules/guarded-custom-element-define.test.ts",{"duration":0,"failed":true}],[":stylelint-config-theory/src/liquid/mask.test.ts",{"duration":21.486761,"failed":false}],[":theme-check-theory/src/checks/hardcoded-text.test.ts",{"duration":79.642067,"failed":false}],[":stylelint-config-theory/src/integration.test.ts",{"duration":322.234405,"failed":false}],[":theme-check-theory/src/checks/unguarded-nullable-setting.test.ts",{"duration":126.54217099999994,"failed":false}],[":eslint-plugin-theory/src/rules/disconnected-callback-cleanup.test.ts",{"duration":0,"failed":true}],[":eslint-plugin-theory/src/integration.test.ts",{"duration":207.055841,"failed":false}],[":eslint-plugin-theory/src/liquid/mask.test.ts",{"duration":31.769655,"failed":false}],[":stylelint-config-theory/src/config.test.ts",{"duration":13.856021999999996,"failed":false}],[":theme-check-theory/src/checks/unused-section-settings.test.ts",{"duration":63.80623400000002,"failed":false}],[":theme-check-theory/src/checks/unguarded-metaobject.test.ts",{"duration":34.325909000000024,"failed":false}],[":eslint-plugin-theory/src/index.test.ts",{"duration":6.773288999999977,"failed":false}],[":theme-check-theory/src/checks/disallowed-script-or-style-tag.test.ts",{"duration":32.848730000000046,"failed":false}],[":theme-check-theory/src/checks/unguarded-metafield.test.ts",{"duration":37.897699999999986,"failed":false}],[":eslint-plugin-theory/src/rules/no-class-selectors.test.ts",{"duration":0,"failed":true}],[":eslint-plugin-theory/src/rules/no-unapproved-imports.test.ts",{"duration":0,"failed":true}],[":eslint-plugin-theory/src/rules/require-jsdoc.test.ts",{"duration":87.66796799999997,"failed":false}],[":eslint-plugin-theory/src/rules/centralize-selectors.test.ts",{"duration":0,"failed":true}],[":stylelint-config-theory/src/build.test.ts",{"duration":903.9329710000001,"failed":false}],[":theme-check-theory/src/index.test.ts",{"duration":2.380390000000034,"failed":false}],[":eslint-plugin-theory/src/processors/liquid.test.ts",{"duration":6.720345000000009,"failed":false}],[":eslint-plugin-theory/src/build.test.ts",{"duration":965.007413,"failed":false}]]}
|
|
Binary file
|