@forumone/throughline 0.0.0-stage → 1.0.0-next.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/CHANGELOG.md +584 -0
- package/LICENSE +21 -0
- package/README.md +351 -2
- package/bin/payload-cli.mjs +443 -0
- package/bin/throughline-payload.mjs +6 -0
- package/dist/access/coreCollections.d.ts +18 -0
- package/dist/access/coreCollections.d.ts.map +1 -0
- package/dist/access/coreCollections.js +56 -0
- package/dist/access/coreCollections.js.map +1 -0
- package/dist/approvals/collection.d.ts +21 -0
- package/dist/approvals/collection.d.ts.map +1 -0
- package/dist/approvals/collection.js +99 -0
- package/dist/approvals/collection.js.map +1 -0
- package/dist/approvals/endpoints/action.d.ts +31 -0
- package/dist/approvals/endpoints/action.d.ts.map +1 -0
- package/dist/approvals/endpoints/action.js +205 -0
- package/dist/approvals/endpoints/action.js.map +1 -0
- package/dist/approvals/index.d.ts +19 -0
- package/dist/approvals/index.d.ts.map +1 -0
- package/dist/approvals/index.js +13 -0
- package/dist/approvals/index.js.map +1 -0
- package/dist/approvals/jobs/expire-stale-approvals.d.ts +14 -0
- package/dist/approvals/jobs/expire-stale-approvals.d.ts.map +1 -0
- package/dist/approvals/jobs/expire-stale-approvals.js +101 -0
- package/dist/approvals/jobs/expire-stale-approvals.js.map +1 -0
- package/dist/approvals/options.d.ts +76 -0
- package/dist/approvals/options.d.ts.map +1 -0
- package/dist/approvals/options.js +47 -0
- package/dist/approvals/options.js.map +1 -0
- package/dist/approvals/plugin.d.ts +4 -0
- package/dist/approvals/plugin.d.ts.map +1 -0
- package/dist/approvals/plugin.js +92 -0
- package/dist/approvals/plugin.js.map +1 -0
- package/dist/approvals/resolver.d.ts +18 -0
- package/dist/approvals/resolver.d.ts.map +1 -0
- package/dist/approvals/resolver.js +57 -0
- package/dist/approvals/resolver.js.map +1 -0
- package/dist/approvals/symbol.d.ts +12 -0
- package/dist/approvals/symbol.d.ts.map +1 -0
- package/dist/approvals/symbol.js +12 -0
- package/dist/approvals/symbol.js.map +1 -0
- package/dist/approvals/tokens.d.ts +48 -0
- package/dist/approvals/tokens.d.ts.map +1 -0
- package/dist/approvals/tokens.js +123 -0
- package/dist/approvals/tokens.js.map +1 -0
- package/dist/approvals/tools/descriptors.d.ts +26 -0
- package/dist/approvals/tools/descriptors.d.ts.map +1 -0
- package/dist/approvals/tools/descriptors.js +35 -0
- package/dist/approvals/tools/descriptors.js.map +1 -0
- package/dist/approvals/tools/get-approval-status.d.ts +11 -0
- package/dist/approvals/tools/get-approval-status.d.ts.map +1 -0
- package/dist/approvals/tools/get-approval-status.js +94 -0
- package/dist/approvals/tools/get-approval-status.js.map +1 -0
- package/dist/approvals/tools/index.d.ts +7 -0
- package/dist/approvals/tools/index.d.ts.map +1 -0
- package/dist/approvals/tools/index.js +7 -0
- package/dist/approvals/tools/index.js.map +1 -0
- package/dist/approvals/tools/list-my-requests.d.ts +11 -0
- package/dist/approvals/tools/list-my-requests.d.ts.map +1 -0
- package/dist/approvals/tools/list-my-requests.js +55 -0
- package/dist/approvals/tools/list-my-requests.js.map +1 -0
- package/dist/approvals/tools/list-pending-approvals.d.ts +11 -0
- package/dist/approvals/tools/list-pending-approvals.d.ts.map +1 -0
- package/dist/approvals/tools/list-pending-approvals.js +53 -0
- package/dist/approvals/tools/list-pending-approvals.js.map +1 -0
- package/dist/approvals/tools/request-approval.d.ts +13 -0
- package/dist/approvals/tools/request-approval.d.ts.map +1 -0
- package/dist/approvals/tools/request-approval.js +123 -0
- package/dist/approvals/tools/request-approval.js.map +1 -0
- package/dist/approvals/tools/respond-to-approval.d.ts +13 -0
- package/dist/approvals/tools/respond-to-approval.d.ts.map +1 -0
- package/dist/approvals/tools/respond-to-approval.js +98 -0
- package/dist/approvals/tools/respond-to-approval.js.map +1 -0
- package/dist/audit/collection.d.ts +22 -0
- package/dist/audit/collection.d.ts.map +1 -0
- package/dist/audit/collection.js +109 -0
- package/dist/audit/collection.js.map +1 -0
- package/dist/audit/index.d.ts +16 -0
- package/dist/audit/index.d.ts.map +1 -0
- package/dist/audit/index.js +11 -0
- package/dist/audit/index.js.map +1 -0
- package/dist/audit/jobs/audit-event-echo.d.ts +14 -0
- package/dist/audit/jobs/audit-event-echo.d.ts.map +1 -0
- package/dist/audit/jobs/audit-event-echo.js +61 -0
- package/dist/audit/jobs/audit-event-echo.js.map +1 -0
- package/dist/audit/plugin.d.ts +20 -0
- package/dist/audit/plugin.d.ts.map +1 -0
- package/dist/audit/plugin.js +55 -0
- package/dist/audit/plugin.js.map +1 -0
- package/dist/audit/query/formatting/index.d.ts +40 -0
- package/dist/audit/query/formatting/index.d.ts.map +1 -0
- package/dist/audit/query/formatting/index.js +73 -0
- package/dist/audit/query/formatting/index.js.map +1 -0
- package/dist/audit/query/options.d.ts +34 -0
- package/dist/audit/query/options.d.ts.map +1 -0
- package/dist/audit/query/options.js +8 -0
- package/dist/audit/query/options.js.map +1 -0
- package/dist/audit/query/plugin.d.ts +11 -0
- package/dist/audit/query/plugin.d.ts.map +1 -0
- package/dist/audit/query/plugin.js +68 -0
- package/dist/audit/query/plugin.js.map +1 -0
- package/dist/audit/query/tools/access.d.ts +9 -0
- package/dist/audit/query/tools/access.d.ts.map +1 -0
- package/dist/audit/query/tools/access.js +14 -0
- package/dist/audit/query/tools/access.js.map +1 -0
- package/dist/audit/query/tools/descriptors.d.ts +26 -0
- package/dist/audit/query/tools/descriptors.d.ts.map +1 -0
- package/dist/audit/query/tools/descriptors.js +35 -0
- package/dist/audit/query/tools/descriptors.js.map +1 -0
- package/dist/audit/query/tools/get-change-history.d.ts +23 -0
- package/dist/audit/query/tools/get-change-history.d.ts.map +1 -0
- package/dist/audit/query/tools/get-change-history.js +44 -0
- package/dist/audit/query/tools/get-change-history.js.map +1 -0
- package/dist/audit/query/tools/get-recent-failures.d.ts +23 -0
- package/dist/audit/query/tools/get-recent-failures.d.ts.map +1 -0
- package/dist/audit/query/tools/get-recent-failures.js +56 -0
- package/dist/audit/query/tools/get-recent-failures.js.map +1 -0
- package/dist/audit/query/tools/index.d.ts +13 -0
- package/dist/audit/query/tools/index.d.ts.map +1 -0
- package/dist/audit/query/tools/index.js +8 -0
- package/dist/audit/query/tools/index.js.map +1 -0
- package/dist/audit/query/tools/query-audit.d.ts +53 -0
- package/dist/audit/query/tools/query-audit.d.ts.map +1 -0
- package/dist/audit/query/tools/query-audit.js +78 -0
- package/dist/audit/query/tools/query-audit.js.map +1 -0
- package/dist/audit/query/tools/what-changed-in-range.d.ts +23 -0
- package/dist/audit/query/tools/what-changed-in-range.d.ts.map +1 -0
- package/dist/audit/query/tools/what-changed-in-range.js +86 -0
- package/dist/audit/query/tools/what-changed-in-range.js.map +1 -0
- package/dist/audit/query/tools/who-changed-what.d.ts +38 -0
- package/dist/audit/query/tools/who-changed-what.d.ts.map +1 -0
- package/dist/audit/query/tools/who-changed-what.js +66 -0
- package/dist/audit/query/tools/who-changed-what.js.map +1 -0
- package/dist/audit/types.d.ts +11 -0
- package/dist/audit/types.d.ts.map +1 -0
- package/dist/audit/types.js +45 -0
- package/dist/audit/types.js.map +1 -0
- package/dist/audit/writer.d.ts +50 -0
- package/dist/audit/writer.d.ts.map +1 -0
- package/dist/audit/writer.js +101 -0
- package/dist/audit/writer.js.map +1 -0
- package/dist/cache-tags.d.ts +31 -0
- package/dist/cache-tags.d.ts.map +1 -0
- package/dist/cache-tags.js +53 -0
- package/dist/cache-tags.js.map +1 -0
- package/dist/components/index.d.ts +8 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +7 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/manifest-source.d.ts +17 -0
- package/dist/components/manifest-source.d.ts.map +1 -0
- package/dist/components/manifest-source.js +60 -0
- package/dist/components/manifest-source.js.map +1 -0
- package/dist/components/matching/index.d.ts +3 -0
- package/dist/components/matching/index.d.ts.map +1 -0
- package/dist/components/matching/index.js +2 -0
- package/dist/components/matching/index.js.map +1 -0
- package/dist/components/matching/tfidf.d.ts +13 -0
- package/dist/components/matching/tfidf.d.ts.map +1 -0
- package/dist/components/matching/tfidf.js +118 -0
- package/dist/components/matching/tfidf.js.map +1 -0
- package/dist/components/matching/types.d.ts +22 -0
- package/dist/components/matching/types.d.ts.map +1 -0
- package/dist/components/matching/types.js +2 -0
- package/dist/components/matching/types.js.map +1 -0
- package/dist/components/options.d.ts +136 -0
- package/dist/components/options.d.ts.map +1 -0
- package/dist/components/options.js +40 -0
- package/dist/components/options.js.map +1 -0
- package/dist/components/plugin.d.ts +4 -0
- package/dist/components/plugin.d.ts.map +1 -0
- package/dist/components/plugin.js +95 -0
- package/dist/components/plugin.js.map +1 -0
- package/dist/components/tools/descriptors.d.ts +34 -0
- package/dist/components/tools/descriptors.d.ts.map +1 -0
- package/dist/components/tools/descriptors.js +43 -0
- package/dist/components/tools/descriptors.js.map +1 -0
- package/dist/components/tools/find-anti-pattern.d.ts +9 -0
- package/dist/components/tools/find-anti-pattern.d.ts.map +1 -0
- package/dist/components/tools/find-anti-pattern.js +31 -0
- package/dist/components/tools/find-anti-pattern.js.map +1 -0
- package/dist/components/tools/get-contract.d.ts +4 -0
- package/dist/components/tools/get-contract.d.ts.map +1 -0
- package/dist/components/tools/get-contract.js +19 -0
- package/dist/components/tools/get-contract.js.map +1 -0
- package/dist/components/tools/get-tokens.d.ts +4 -0
- package/dist/components/tools/get-tokens.d.ts.map +1 -0
- package/dist/components/tools/get-tokens.js +19 -0
- package/dist/components/tools/get-tokens.js.map +1 -0
- package/dist/components/tools/get-variants.d.ts +4 -0
- package/dist/components/tools/get-variants.d.ts.map +1 -0
- package/dist/components/tools/get-variants.js +19 -0
- package/dist/components/tools/get-variants.js.map +1 -0
- package/dist/components/tools/index.d.ts +9 -0
- package/dist/components/tools/index.d.ts.map +1 -0
- package/dist/components/tools/index.js +9 -0
- package/dist/components/tools/index.js.map +1 -0
- package/dist/components/tools/list-components.d.ts +4 -0
- package/dist/components/tools/list-components.d.ts.map +1 -0
- package/dist/components/tools/list-components.js +25 -0
- package/dist/components/tools/list-components.js.map +1 -0
- package/dist/components/tools/suggest-for-intent.d.ts +12 -0
- package/dist/components/tools/suggest-for-intent.d.ts.map +1 -0
- package/dist/components/tools/suggest-for-intent.js +83 -0
- package/dist/components/tools/suggest-for-intent.js.map +1 -0
- package/dist/components/tools/validate-composition.d.ts +9 -0
- package/dist/components/tools/validate-composition.d.ts.map +1 -0
- package/dist/components/tools/validate-composition.js +31 -0
- package/dist/components/tools/validate-composition.js.map +1 -0
- package/dist/components/validation/composition.d.ts +38 -0
- package/dist/components/validation/composition.d.ts.map +1 -0
- package/dist/components/validation/composition.js +135 -0
- package/dist/components/validation/composition.js.map +1 -0
- package/dist/editorial/calendar/ContentCalendarReport.d.ts +9 -0
- package/dist/editorial/calendar/ContentCalendarReport.d.ts.map +1 -0
- package/dist/editorial/calendar/ContentCalendarReport.js +47 -0
- package/dist/editorial/calendar/ContentCalendarReport.js.map +1 -0
- package/dist/editorial/calendar/ContentCalendarView.d.ts +3 -0
- package/dist/editorial/calendar/ContentCalendarView.d.ts.map +1 -0
- package/dist/editorial/calendar/ContentCalendarView.js +36 -0
- package/dist/editorial/calendar/ContentCalendarView.js.map +1 -0
- package/dist/editorial/calendar/calendar.d.ts +30 -0
- package/dist/editorial/calendar/calendar.d.ts.map +1 -0
- package/dist/editorial/calendar/calendar.js +23 -0
- package/dist/editorial/calendar/calendar.js.map +1 -0
- package/dist/editorial/calendar/find.d.ts +41 -0
- package/dist/editorial/calendar/find.d.ts.map +1 -0
- package/dist/editorial/calendar/find.js +108 -0
- package/dist/editorial/calendar/find.js.map +1 -0
- package/dist/editorial/calendar/month.d.ts +45 -0
- package/dist/editorial/calendar/month.d.ts.map +1 -0
- package/dist/editorial/calendar/month.js +120 -0
- package/dist/editorial/calendar/month.js.map +1 -0
- package/dist/editorial/calendar/tool.d.ts +50 -0
- package/dist/editorial/calendar/tool.d.ts.map +1 -0
- package/dist/editorial/calendar/tool.js +68 -0
- package/dist/editorial/calendar/tool.js.map +1 -0
- package/dist/editorial/config.d.ts +25 -0
- package/dist/editorial/config.d.ts.map +1 -0
- package/dist/editorial/config.js +12 -0
- package/dist/editorial/config.js.map +1 -0
- package/dist/editorial/health/ContentHealthReport.d.ts +7 -0
- package/dist/editorial/health/ContentHealthReport.d.ts.map +1 -0
- package/dist/editorial/health/ContentHealthReport.js +29 -0
- package/dist/editorial/health/ContentHealthReport.js.map +1 -0
- package/dist/editorial/health/ContentHealthView.d.ts +3 -0
- package/dist/editorial/health/ContentHealthView.d.ts.map +1 -0
- package/dist/editorial/health/ContentHealthView.js +29 -0
- package/dist/editorial/health/ContentHealthView.js.map +1 -0
- package/dist/editorial/health/HealthSummary.d.ts +6 -0
- package/dist/editorial/health/HealthSummary.d.ts.map +1 -0
- package/dist/editorial/health/HealthSummary.js +39 -0
- package/dist/editorial/health/HealthSummary.js.map +1 -0
- package/dist/editorial/health/checks.d.ts +104 -0
- package/dist/editorial/health/checks.d.ts.map +1 -0
- package/dist/editorial/health/checks.js +188 -0
- package/dist/editorial/health/checks.js.map +1 -0
- package/dist/editorial/health/find.d.ts +43 -0
- package/dist/editorial/health/find.d.ts.map +1 -0
- package/dist/editorial/health/find.js +97 -0
- package/dist/editorial/health/find.js.map +1 -0
- package/dist/editorial/health/tool.d.ts +53 -0
- package/dist/editorial/health/tool.d.ts.map +1 -0
- package/dist/editorial/health/tool.js +80 -0
- package/dist/editorial/health/tool.js.map +1 -0
- package/dist/editorial/index.d.ts +25 -0
- package/dist/editorial/index.d.ts.map +1 -0
- package/dist/editorial/index.js +15 -0
- package/dist/editorial/index.js.map +1 -0
- package/dist/editorial/palette/CommandPalette.d.ts +15 -0
- package/dist/editorial/palette/CommandPalette.d.ts.map +1 -0
- package/dist/editorial/palette/CommandPalette.js +319 -0
- package/dist/editorial/palette/CommandPalette.js.map +1 -0
- package/dist/editorial/palette/ReportsNav.d.ts +5 -0
- package/dist/editorial/palette/ReportsNav.d.ts.map +1 -0
- package/dist/editorial/palette/ReportsNav.js +31 -0
- package/dist/editorial/palette/ReportsNav.js.map +1 -0
- package/dist/editorial/palette/search.d.ts +18 -0
- package/dist/editorial/palette/search.d.ts.map +1 -0
- package/dist/editorial/palette/search.js +41 -0
- package/dist/editorial/palette/search.js.map +1 -0
- package/dist/editorial/palette/sources.d.ts +64 -0
- package/dist/editorial/palette/sources.d.ts.map +1 -0
- package/dist/editorial/palette/sources.js +103 -0
- package/dist/editorial/palette/sources.js.map +1 -0
- package/dist/editorial/palette/styles.d.ts +2 -0
- package/dist/editorial/palette/styles.d.ts.map +1 -0
- package/dist/editorial/palette/styles.js +76 -0
- package/dist/editorial/palette/styles.js.map +1 -0
- package/dist/editorial/palette/tool.d.ts +31 -0
- package/dist/editorial/palette/tool.d.ts.map +1 -0
- package/dist/editorial/palette/tool.js +63 -0
- package/dist/editorial/palette/tool.js.map +1 -0
- package/dist/editorial/plugin.d.ts +76 -0
- package/dist/editorial/plugin.d.ts.map +1 -0
- package/dist/editorial/plugin.js +186 -0
- package/dist/editorial/plugin.js.map +1 -0
- package/dist/editorial/relativeTime.d.ts +3 -0
- package/dist/editorial/relativeTime.d.ts.map +1 -0
- package/dist/editorial/relativeTime.js +27 -0
- package/dist/editorial/relativeTime.js.map +1 -0
- package/dist/editorial/styles.d.ts +2 -0
- package/dist/editorial/styles.d.ts.map +1 -0
- package/dist/editorial/styles.js +191 -0
- package/dist/editorial/styles.js.map +1 -0
- package/dist/editorial/work/YourWork.d.ts +13 -0
- package/dist/editorial/work/YourWork.d.ts.map +1 -0
- package/dist/editorial/work/YourWork.js +40 -0
- package/dist/editorial/work/YourWork.js.map +1 -0
- package/dist/editorial/work/tool.d.ts +45 -0
- package/dist/editorial/work/tool.d.ts.map +1 -0
- package/dist/editorial/work/tool.js +54 -0
- package/dist/editorial/work/tool.js.map +1 -0
- package/dist/editorial/work/work.d.ts +31 -0
- package/dist/editorial/work/work.d.ts.map +1 -0
- package/dist/editorial/work/work.js +68 -0
- package/dist/editorial/work/work.js.map +1 -0
- package/dist/email/client.d.ts +78 -0
- package/dist/email/client.d.ts.map +1 -0
- package/dist/email/client.js +63 -0
- package/dist/email/client.js.map +1 -0
- package/dist/email/functions/_shared.d.ts +17 -0
- package/dist/email/functions/_shared.d.ts.map +1 -0
- package/dist/email/functions/_shared.js +40 -0
- package/dist/email/functions/_shared.js.map +1 -0
- package/dist/email/functions/index.d.ts +7 -0
- package/dist/email/functions/index.d.ts.map +1 -0
- package/dist/email/functions/index.js +4 -0
- package/dist/email/functions/index.js.map +1 -0
- package/dist/email/functions/notify-approval-decision.d.ts +34 -0
- package/dist/email/functions/notify-approval-decision.d.ts.map +1 -0
- package/dist/email/functions/notify-approval-decision.js +77 -0
- package/dist/email/functions/notify-approval-decision.js.map +1 -0
- package/dist/email/functions/notify-approval-expired.d.ts +32 -0
- package/dist/email/functions/notify-approval-expired.d.ts.map +1 -0
- package/dist/email/functions/notify-approval-expired.js +54 -0
- package/dist/email/functions/notify-approval-expired.js.map +1 -0
- package/dist/email/functions/notify-approval-request.d.ts +35 -0
- package/dist/email/functions/notify-approval-request.d.ts.map +1 -0
- package/dist/email/functions/notify-approval-request.js +89 -0
- package/dist/email/functions/notify-approval-request.js.map +1 -0
- package/dist/email/index.d.ts +17 -0
- package/dist/email/index.d.ts.map +1 -0
- package/dist/email/index.js +12 -0
- package/dist/email/index.js.map +1 -0
- package/dist/email/options.d.ts +100 -0
- package/dist/email/options.d.ts.map +1 -0
- package/dist/email/options.js +55 -0
- package/dist/email/options.js.map +1 -0
- package/dist/email/plugin.d.ts +28 -0
- package/dist/email/plugin.d.ts.map +1 -0
- package/dist/email/plugin.js +113 -0
- package/dist/email/plugin.js.map +1 -0
- package/dist/email/templates/ApprovalDecision.d.ts +15 -0
- package/dist/email/templates/ApprovalDecision.d.ts.map +1 -0
- package/dist/email/templates/ApprovalDecision.js +56 -0
- package/dist/email/templates/ApprovalDecision.js.map +1 -0
- package/dist/email/templates/ApprovalExpired.d.ts +10 -0
- package/dist/email/templates/ApprovalExpired.d.ts.map +1 -0
- package/dist/email/templates/ApprovalExpired.js +8 -0
- package/dist/email/templates/ApprovalExpired.js.map +1 -0
- package/dist/email/templates/ApprovalRequest.d.ts +24 -0
- package/dist/email/templates/ApprovalRequest.d.ts.map +1 -0
- package/dist/email/templates/ApprovalRequest.js +58 -0
- package/dist/email/templates/ApprovalRequest.js.map +1 -0
- package/dist/email/templates/_layout.d.ts +17 -0
- package/dist/email/templates/_layout.d.ts.map +1 -0
- package/dist/email/templates/_layout.js +39 -0
- package/dist/email/templates/_layout.js.map +1 -0
- package/dist/email/templates/index.d.ts +9 -0
- package/dist/email/templates/index.d.ts.map +1 -0
- package/dist/email/templates/index.js +5 -0
- package/dist/email/templates/index.js.map +1 -0
- package/dist/email/tokens.d.ts +39 -0
- package/dist/email/tokens.d.ts.map +1 -0
- package/dist/email/tokens.js +17 -0
- package/dist/email/tokens.js.map +1 -0
- package/dist/env/index.d.ts +54 -0
- package/dist/env/index.d.ts.map +1 -0
- package/dist/env/index.js +113 -0
- package/dist/env/index.js.map +1 -0
- package/dist/events/inngest.d.ts +24 -0
- package/dist/events/inngest.d.ts.map +1 -0
- package/dist/events/inngest.js +24 -0
- package/dist/events/inngest.js.map +1 -0
- package/dist/events/taxonomy.d.ts +84 -0
- package/dist/events/taxonomy.d.ts.map +1 -0
- package/dist/events/taxonomy.js +10 -0
- package/dist/events/taxonomy.js.map +1 -0
- package/dist/events/vercel.d.ts +47 -0
- package/dist/events/vercel.d.ts.map +1 -0
- package/dist/events/vercel.js +69 -0
- package/dist/events/vercel.js.map +1 -0
- package/dist/exports/client.d.ts +24 -0
- package/dist/exports/client.d.ts.map +1 -0
- package/dist/exports/client.js +21 -0
- package/dist/exports/client.js.map +1 -0
- package/dist/exports/rsc.d.ts +17 -0
- package/dist/exports/rsc.d.ts.map +1 -0
- package/dist/exports/rsc.js +19 -0
- package/dist/exports/rsc.js.map +1 -0
- package/dist/fields/CharacterCountField.d.ts +4 -0
- package/dist/fields/CharacterCountField.d.ts.map +1 -0
- package/dist/fields/CharacterCountField.js +94 -0
- package/dist/fields/CharacterCountField.js.map +1 -0
- package/dist/fields/characterCount.d.ts +15 -0
- package/dist/fields/characterCount.d.ts.map +1 -0
- package/dist/fields/characterCount.js +92 -0
- package/dist/fields/characterCount.js.map +1 -0
- package/dist/fields/checkSlug.d.ts +62 -0
- package/dist/fields/checkSlug.d.ts.map +1 -0
- package/dist/fields/checkSlug.js +119 -0
- package/dist/fields/checkSlug.js.map +1 -0
- package/dist/fields/index.d.ts +9 -0
- package/dist/fields/index.d.ts.map +1 -0
- package/dist/fields/index.js +9 -0
- package/dist/fields/index.js.map +1 -0
- package/dist/fields/mapFields.d.ts +13 -0
- package/dist/fields/mapFields.d.ts.map +1 -0
- package/dist/fields/mapFields.js +32 -0
- package/dist/fields/mapFields.js.map +1 -0
- package/dist/fields/publishing.d.ts +33 -0
- package/dist/fields/publishing.d.ts.map +1 -0
- package/dist/fields/publishing.js +81 -0
- package/dist/fields/publishing.js.map +1 -0
- package/dist/fields/revisedAt.d.ts +15 -0
- package/dist/fields/revisedAt.d.ts.map +1 -0
- package/dist/fields/revisedAt.js +79 -0
- package/dist/fields/revisedAt.js.map +1 -0
- package/dist/fields/slug.d.ts +21 -0
- package/dist/fields/slug.d.ts.map +1 -0
- package/dist/fields/slug.js +102 -0
- package/dist/fields/slug.js.map +1 -0
- package/dist/fields/unlisted.d.ts +13 -0
- package/dist/fields/unlisted.d.ts.map +1 -0
- package/dist/fields/unlisted.js +35 -0
- package/dist/fields/unlisted.js.map +1 -0
- package/dist/fields/usedBy.d.ts +12 -0
- package/dist/fields/usedBy.d.ts.map +1 -0
- package/dist/fields/usedBy.js +36 -0
- package/dist/fields/usedBy.js.map +1 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -0
- package/dist/integrations/admin/SyncButton.d.ts +27 -0
- package/dist/integrations/admin/SyncButton.d.ts.map +1 -0
- package/dist/integrations/admin/SyncButton.js +134 -0
- package/dist/integrations/admin/SyncButton.js.map +1 -0
- package/dist/integrations/admin/sync-client.d.ts +83 -0
- package/dist/integrations/admin/sync-client.d.ts.map +1 -0
- package/dist/integrations/admin/sync-client.js +121 -0
- package/dist/integrations/admin/sync-client.js.map +1 -0
- package/dist/integrations/collection.d.ts +26 -0
- package/dist/integrations/collection.d.ts.map +1 -0
- package/dist/integrations/collection.js +193 -0
- package/dist/integrations/collection.js.map +1 -0
- package/dist/integrations/endpoints/sync.d.ts +27 -0
- package/dist/integrations/endpoints/sync.d.ts.map +1 -0
- package/dist/integrations/endpoints/sync.js +90 -0
- package/dist/integrations/endpoints/sync.js.map +1 -0
- package/dist/integrations/index.d.ts +22 -0
- package/dist/integrations/index.d.ts.map +1 -0
- package/dist/integrations/index.js +15 -0
- package/dist/integrations/index.js.map +1 -0
- package/dist/integrations/integrations/index.d.ts +3 -0
- package/dist/integrations/integrations/index.d.ts.map +1 -0
- package/dist/integrations/integrations/index.js +2 -0
- package/dist/integrations/integrations/index.js.map +1 -0
- package/dist/integrations/integrations/webhook/config-fields.d.ts +33 -0
- package/dist/integrations/integrations/webhook/config-fields.d.ts.map +1 -0
- package/dist/integrations/integrations/webhook/config-fields.js +54 -0
- package/dist/integrations/integrations/webhook/config-fields.js.map +1 -0
- package/dist/integrations/integrations/webhook/functions.d.ts +24 -0
- package/dist/integrations/integrations/webhook/functions.d.ts.map +1 -0
- package/dist/integrations/integrations/webhook/functions.js +139 -0
- package/dist/integrations/integrations/webhook/functions.js.map +1 -0
- package/dist/integrations/integrations/webhook/healthcheck.d.ts +10 -0
- package/dist/integrations/integrations/webhook/healthcheck.d.ts.map +1 -0
- package/dist/integrations/integrations/webhook/healthcheck.js +26 -0
- package/dist/integrations/integrations/webhook/healthcheck.js.map +1 -0
- package/dist/integrations/integrations/webhook/hmac.d.ts +11 -0
- package/dist/integrations/integrations/webhook/hmac.d.ts.map +1 -0
- package/dist/integrations/integrations/webhook/hmac.js +25 -0
- package/dist/integrations/integrations/webhook/hmac.js.map +1 -0
- package/dist/integrations/integrations/webhook/index.d.ts +6 -0
- package/dist/integrations/integrations/webhook/index.d.ts.map +1 -0
- package/dist/integrations/integrations/webhook/index.js +47 -0
- package/dist/integrations/integrations/webhook/index.js.map +1 -0
- package/dist/integrations/integrations/webhook/payload.d.ts +9 -0
- package/dist/integrations/integrations/webhook/payload.d.ts.map +1 -0
- package/dist/integrations/integrations/webhook/payload.js +19 -0
- package/dist/integrations/integrations/webhook/payload.js.map +1 -0
- package/dist/integrations/jobs/healthcheck.d.ts +24 -0
- package/dist/integrations/jobs/healthcheck.d.ts.map +1 -0
- package/dist/integrations/jobs/healthcheck.js +133 -0
- package/dist/integrations/jobs/healthcheck.js.map +1 -0
- package/dist/integrations/options.d.ts +54 -0
- package/dist/integrations/options.d.ts.map +1 -0
- package/dist/integrations/options.js +8 -0
- package/dist/integrations/options.js.map +1 -0
- package/dist/integrations/plugin.d.ts +51 -0
- package/dist/integrations/plugin.d.ts.map +1 -0
- package/dist/integrations/plugin.js +215 -0
- package/dist/integrations/plugin.js.map +1 -0
- package/dist/integrations/registry.d.ts +27 -0
- package/dist/integrations/registry.d.ts.map +1 -0
- package/dist/integrations/registry.js +39 -0
- package/dist/integrations/registry.js.map +1 -0
- package/dist/integrations/sync/manual-sync.d.ts +70 -0
- package/dist/integrations/sync/manual-sync.d.ts.map +1 -0
- package/dist/integrations/sync/manual-sync.js +91 -0
- package/dist/integrations/sync/manual-sync.js.map +1 -0
- package/dist/integrations/sync/problems.d.ts +31 -0
- package/dist/integrations/sync/problems.d.ts.map +1 -0
- package/dist/integrations/sync/problems.js +40 -0
- package/dist/integrations/sync/problems.js.map +1 -0
- package/dist/integrations/sync/status.d.ts +15 -0
- package/dist/integrations/sync/status.d.ts.map +1 -0
- package/dist/integrations/sync/status.js +31 -0
- package/dist/integrations/sync/status.js.map +1 -0
- package/dist/integrations/tools/access.d.ts +5 -0
- package/dist/integrations/tools/access.d.ts.map +1 -0
- package/dist/integrations/tools/access.js +14 -0
- package/dist/integrations/tools/access.js.map +1 -0
- package/dist/integrations/tools/descriptors.d.ts +26 -0
- package/dist/integrations/tools/descriptors.d.ts.map +1 -0
- package/dist/integrations/tools/descriptors.js +35 -0
- package/dist/integrations/tools/descriptors.js.map +1 -0
- package/dist/integrations/tools/get-integration-status.d.ts +17 -0
- package/dist/integrations/tools/get-integration-status.d.ts.map +1 -0
- package/dist/integrations/tools/get-integration-status.js +41 -0
- package/dist/integrations/tools/get-integration-status.js.map +1 -0
- package/dist/integrations/tools/index.d.ts +13 -0
- package/dist/integrations/tools/index.d.ts.map +1 -0
- package/dist/integrations/tools/index.js +8 -0
- package/dist/integrations/tools/index.js.map +1 -0
- package/dist/integrations/tools/list-integration-types.d.ts +10 -0
- package/dist/integrations/tools/list-integration-types.d.ts.map +1 -0
- package/dist/integrations/tools/list-integration-types.js +22 -0
- package/dist/integrations/tools/list-integration-types.js.map +1 -0
- package/dist/integrations/tools/list-integrations.d.ts +20 -0
- package/dist/integrations/tools/list-integrations.d.ts.map +1 -0
- package/dist/integrations/tools/list-integrations.js +49 -0
- package/dist/integrations/tools/list-integrations.js.map +1 -0
- package/dist/integrations/tools/test-integration.d.ts +19 -0
- package/dist/integrations/tools/test-integration.d.ts.map +1 -0
- package/dist/integrations/tools/test-integration.js +51 -0
- package/dist/integrations/tools/test-integration.js.map +1 -0
- package/dist/integrations/tools/trigger-sync.d.ts +26 -0
- package/dist/integrations/tools/trigger-sync.d.ts.map +1 -0
- package/dist/integrations/tools/trigger-sync.js +44 -0
- package/dist/integrations/tools/trigger-sync.js.map +1 -0
- package/dist/integrations/types.d.ts +183 -0
- package/dist/integrations/types.d.ts.map +1 -0
- package/dist/integrations/types.js +2 -0
- package/dist/integrations/types.js.map +1 -0
- package/dist/jobs/define.d.ts +17 -0
- package/dist/jobs/define.d.ts.map +1 -0
- package/dist/jobs/define.js +39 -0
- package/dist/jobs/define.js.map +1 -0
- package/dist/jobs/failure-handler.d.ts +39 -0
- package/dist/jobs/failure-handler.d.ts.map +1 -0
- package/dist/jobs/failure-handler.js +62 -0
- package/dist/jobs/failure-handler.js.map +1 -0
- package/dist/jobs/index.d.ts +28 -0
- package/dist/jobs/index.d.ts.map +1 -0
- package/dist/jobs/index.js +7 -0
- package/dist/jobs/index.js.map +1 -0
- package/dist/jobs/inngest/adapter.d.ts +39 -0
- package/dist/jobs/inngest/adapter.d.ts.map +1 -0
- package/dist/jobs/inngest/adapter.js +81 -0
- package/dist/jobs/inngest/adapter.js.map +1 -0
- package/dist/jobs/inngest/index.d.ts +15 -0
- package/dist/jobs/inngest/index.d.ts.map +1 -0
- package/dist/jobs/inngest/index.js +13 -0
- package/dist/jobs/inngest/index.js.map +1 -0
- package/dist/jobs/options.d.ts +18 -0
- package/dist/jobs/options.d.ts.map +1 -0
- package/dist/jobs/options.js +12 -0
- package/dist/jobs/options.js.map +1 -0
- package/dist/jobs/payload/adapter.d.ts +33 -0
- package/dist/jobs/payload/adapter.d.ts.map +1 -0
- package/dist/jobs/payload/adapter.js +257 -0
- package/dist/jobs/payload/adapter.js.map +1 -0
- package/dist/jobs/payload/index.d.ts +8 -0
- package/dist/jobs/payload/index.d.ts.map +1 -0
- package/dist/jobs/payload/index.js +7 -0
- package/dist/jobs/payload/index.js.map +1 -0
- package/dist/jobs/sender.d.ts +4 -0
- package/dist/jobs/sender.d.ts.map +1 -0
- package/dist/jobs/sender.js +19 -0
- package/dist/jobs/sender.js.map +1 -0
- package/dist/jobs/types.d.ts +105 -0
- package/dist/jobs/types.d.ts.map +1 -0
- package/dist/jobs/types.js +2 -0
- package/dist/jobs/types.js.map +1 -0
- package/dist/jobs/workflow-types.d.ts +280 -0
- package/dist/jobs/workflow-types.d.ts.map +1 -0
- package/dist/jobs/workflow-types.js +22 -0
- package/dist/jobs/workflow-types.js.map +1 -0
- package/dist/logger/index.d.ts +9 -0
- package/dist/logger/index.d.ts.map +1 -0
- package/dist/logger/index.js +41 -0
- package/dist/logger/index.js.map +1 -0
- package/dist/mcp/api-key-access.d.ts +50 -0
- package/dist/mcp/api-key-access.d.ts.map +1 -0
- package/dist/mcp/api-key-access.js +94 -0
- package/dist/mcp/api-key-access.js.map +1 -0
- package/dist/mcp/audit-context.d.ts +39 -0
- package/dist/mcp/audit-context.d.ts.map +1 -0
- package/dist/mcp/audit-context.js +36 -0
- package/dist/mcp/audit-context.js.map +1 -0
- package/dist/mcp/audit-server.d.ts +13 -0
- package/dist/mcp/audit-server.d.ts.map +1 -0
- package/dist/mcp/audit-server.js +68 -0
- package/dist/mcp/audit-server.js.map +1 -0
- package/dist/mcp/collector.d.ts +51 -0
- package/dist/mcp/collector.d.ts.map +1 -0
- package/dist/mcp/collector.js +96 -0
- package/dist/mcp/collector.js.map +1 -0
- package/dist/mcp/envelope.d.ts +22 -0
- package/dist/mcp/envelope.d.ts.map +1 -0
- package/dist/mcp/envelope.js +22 -0
- package/dist/mcp/envelope.js.map +1 -0
- package/dist/mcp/index.d.ts +12 -0
- package/dist/mcp/index.d.ts.map +1 -0
- package/dist/mcp/index.js +8 -0
- package/dist/mcp/index.js.map +1 -0
- package/dist/mcp/meta.d.ts +74 -0
- package/dist/mcp/meta.d.ts.map +1 -0
- package/dist/mcp/meta.js +27 -0
- package/dist/mcp/meta.js.map +1 -0
- package/dist/mcp/payload-mcp.d.ts +68 -0
- package/dist/mcp/payload-mcp.d.ts.map +1 -0
- package/dist/mcp/payload-mcp.js +175 -0
- package/dist/mcp/payload-mcp.js.map +1 -0
- package/dist/media/hooks.d.ts +70 -0
- package/dist/media/hooks.d.ts.map +1 -0
- package/dist/media/hooks.js +200 -0
- package/dist/media/hooks.js.map +1 -0
- package/dist/media/index.d.ts +8 -0
- package/dist/media/index.d.ts.map +1 -0
- package/dist/media/index.js +7 -0
- package/dist/media/index.js.map +1 -0
- package/dist/media/svg.d.ts +17 -0
- package/dist/media/svg.d.ts.map +1 -0
- package/dist/media/svg.js +241 -0
- package/dist/media/svg.js.map +1 -0
- package/dist/media/uploadKey.d.ts +25 -0
- package/dist/media/uploadKey.d.ts.map +1 -0
- package/dist/media/uploadKey.js +70 -0
- package/dist/media/uploadKey.js.map +1 -0
- package/dist/observability/collection.d.ts +13 -0
- package/dist/observability/collection.d.ts.map +1 -0
- package/dist/observability/collection.js +76 -0
- package/dist/observability/collection.js.map +1 -0
- package/dist/observability/index.d.ts +10 -0
- package/dist/observability/index.d.ts.map +1 -0
- package/dist/observability/index.js +6 -0
- package/dist/observability/index.js.map +1 -0
- package/dist/observability/plugin.d.ts +24 -0
- package/dist/observability/plugin.d.ts.map +1 -0
- package/dist/observability/plugin.js +59 -0
- package/dist/observability/plugin.js.map +1 -0
- package/dist/observability/report.d.ts +175 -0
- package/dist/observability/report.d.ts.map +1 -0
- package/dist/observability/report.js +274 -0
- package/dist/observability/report.js.map +1 -0
- package/dist/observability/tool.d.ts +33 -0
- package/dist/observability/tool.d.ts.map +1 -0
- package/dist/observability/tool.js +75 -0
- package/dist/observability/tool.js.map +1 -0
- package/dist/observability/writer.d.ts +24 -0
- package/dist/observability/writer.d.ts.map +1 -0
- package/dist/observability/writer.js +72 -0
- package/dist/observability/writer.js.map +1 -0
- package/dist/plugin-contract/admin.d.ts +45 -0
- package/dist/plugin-contract/admin.d.ts.map +1 -0
- package/dist/plugin-contract/admin.js +12 -0
- package/dist/plugin-contract/admin.js.map +1 -0
- package/dist/plugin-contract/env.d.ts +29 -0
- package/dist/plugin-contract/env.d.ts.map +1 -0
- package/dist/plugin-contract/env.js +2 -0
- package/dist/plugin-contract/env.js.map +1 -0
- package/dist/plugin-contract/index.d.ts +39 -0
- package/dist/plugin-contract/index.d.ts.map +1 -0
- package/dist/plugin-contract/index.js +5 -0
- package/dist/plugin-contract/index.js.map +1 -0
- package/dist/plugin-contract/mcp.d.ts +51 -0
- package/dist/plugin-contract/mcp.d.ts.map +1 -0
- package/dist/plugin-contract/mcp.js +2 -0
- package/dist/plugin-contract/mcp.js.map +1 -0
- package/dist/plugin-contract/registry.d.ts +23 -0
- package/dist/plugin-contract/registry.d.ts.map +1 -0
- package/dist/plugin-contract/registry.js +51 -0
- package/dist/plugin-contract/registry.js.map +1 -0
- package/dist/publishing/admin/PublishButton.d.ts +22 -0
- package/dist/publishing/admin/PublishButton.d.ts.map +1 -0
- package/dist/publishing/admin/PublishButton.js +164 -0
- package/dist/publishing/admin/PublishButton.js.map +1 -0
- package/dist/publishing/admin/SchedulePublishField.d.ts +24 -0
- package/dist/publishing/admin/SchedulePublishField.d.ts.map +1 -0
- package/dist/publishing/admin/SchedulePublishField.js +160 -0
- package/dist/publishing/admin/SchedulePublishField.js.map +1 -0
- package/dist/publishing/admin/UnpublishButton.d.ts +15 -0
- package/dist/publishing/admin/UnpublishButton.d.ts.map +1 -0
- package/dist/publishing/admin/UnpublishButton.js +90 -0
- package/dist/publishing/admin/UnpublishButton.js.map +1 -0
- package/dist/publishing/admin/publishing-client.d.ts +105 -0
- package/dist/publishing/admin/publishing-client.d.ts.map +1 -0
- package/dist/publishing/admin/publishing-client.js +139 -0
- package/dist/publishing/admin/publishing-client.js.map +1 -0
- package/dist/publishing/admin/schedule-state.d.ts +30 -0
- package/dist/publishing/admin/schedule-state.d.ts.map +1 -0
- package/dist/publishing/admin/schedule-state.js +39 -0
- package/dist/publishing/admin/schedule-state.js.map +1 -0
- package/dist/publishing/checks/alt-text.d.ts +17 -0
- package/dist/publishing/checks/alt-text.d.ts.map +1 -0
- package/dist/publishing/checks/alt-text.js +63 -0
- package/dist/publishing/checks/alt-text.js.map +1 -0
- package/dist/publishing/checks/heading-hierarchy.d.ts +11 -0
- package/dist/publishing/checks/heading-hierarchy.d.ts.map +1 -0
- package/dist/publishing/checks/heading-hierarchy.js +32 -0
- package/dist/publishing/checks/heading-hierarchy.js.map +1 -0
- package/dist/publishing/checks/index.d.ts +6 -0
- package/dist/publishing/checks/index.d.ts.map +1 -0
- package/dist/publishing/checks/index.js +13 -0
- package/dist/publishing/checks/index.js.map +1 -0
- package/dist/publishing/checks/link-labels.d.ts +9 -0
- package/dist/publishing/checks/link-labels.d.ts.map +1 -0
- package/dist/publishing/checks/link-labels.js +44 -0
- package/dist/publishing/checks/link-labels.js.map +1 -0
- package/dist/publishing/endpoints/admin.d.ts +19 -0
- package/dist/publishing/endpoints/admin.d.ts.map +1 -0
- package/dist/publishing/endpoints/admin.js +112 -0
- package/dist/publishing/endpoints/admin.js.map +1 -0
- package/dist/publishing/events.d.ts +16 -0
- package/dist/publishing/events.d.ts.map +1 -0
- package/dist/publishing/events.js +30 -0
- package/dist/publishing/events.js.map +1 -0
- package/dist/publishing/hooks/block-status-writes.d.ts +52 -0
- package/dist/publishing/hooks/block-status-writes.d.ts.map +1 -0
- package/dist/publishing/hooks/block-status-writes.js +242 -0
- package/dist/publishing/hooks/block-status-writes.js.map +1 -0
- package/dist/publishing/hooks/draft-writes.d.ts +32 -0
- package/dist/publishing/hooks/draft-writes.d.ts.map +1 -0
- package/dist/publishing/hooks/draft-writes.js +76 -0
- package/dist/publishing/hooks/draft-writes.js.map +1 -0
- package/dist/publishing/hooks/schedule-events.d.ts +26 -0
- package/dist/publishing/hooks/schedule-events.d.ts.map +1 -0
- package/dist/publishing/hooks/schedule-events.js +54 -0
- package/dist/publishing/hooks/schedule-events.js.map +1 -0
- package/dist/publishing/index.d.ts +35 -0
- package/dist/publishing/index.d.ts.map +1 -0
- package/dist/publishing/index.js +32 -0
- package/dist/publishing/index.js.map +1 -0
- package/dist/publishing/jobs/execute-scheduled-publishes.d.ts +24 -0
- package/dist/publishing/jobs/execute-scheduled-publishes.d.ts.map +1 -0
- package/dist/publishing/jobs/execute-scheduled-publishes.js +114 -0
- package/dist/publishing/jobs/execute-scheduled-publishes.js.map +1 -0
- package/dist/publishing/jobs/next-revalidate.d.ts +43 -0
- package/dist/publishing/jobs/next-revalidate.d.ts.map +1 -0
- package/dist/publishing/jobs/next-revalidate.js +42 -0
- package/dist/publishing/jobs/next-revalidate.js.map +1 -0
- package/dist/publishing/jobs/publish-at-scheduled-time.d.ts +24 -0
- package/dist/publishing/jobs/publish-at-scheduled-time.d.ts.map +1 -0
- package/dist/publishing/jobs/publish-at-scheduled-time.js +136 -0
- package/dist/publishing/jobs/publish-at-scheduled-time.js.map +1 -0
- package/dist/publishing/jobs/revalidate-on-publish.d.ts +24 -0
- package/dist/publishing/jobs/revalidate-on-publish.d.ts.map +1 -0
- package/dist/publishing/jobs/revalidate-on-publish.js +78 -0
- package/dist/publishing/jobs/revalidate-on-publish.js.map +1 -0
- package/dist/publishing/jobs/revalidate-tag-hooks.d.ts +80 -0
- package/dist/publishing/jobs/revalidate-tag-hooks.d.ts.map +1 -0
- package/dist/publishing/jobs/revalidate-tag-hooks.js +116 -0
- package/dist/publishing/jobs/revalidate-tag-hooks.js.map +1 -0
- package/dist/publishing/options.d.ts +100 -0
- package/dist/publishing/options.d.ts.map +1 -0
- package/dist/publishing/options.js +56 -0
- package/dist/publishing/options.js.map +1 -0
- package/dist/publishing/pipeline/index.d.ts +20 -0
- package/dist/publishing/pipeline/index.d.ts.map +1 -0
- package/dist/publishing/pipeline/index.js +88 -0
- package/dist/publishing/pipeline/index.js.map +1 -0
- package/dist/publishing/pipeline/steps/accessibility.d.ts +13 -0
- package/dist/publishing/pipeline/steps/accessibility.d.ts.map +1 -0
- package/dist/publishing/pipeline/steps/accessibility.js +37 -0
- package/dist/publishing/pipeline/steps/accessibility.js.map +1 -0
- package/dist/publishing/pipeline/steps/approval.d.ts +14 -0
- package/dist/publishing/pipeline/steps/approval.d.ts.map +1 -0
- package/dist/publishing/pipeline/steps/approval.js +54 -0
- package/dist/publishing/pipeline/steps/approval.js.map +1 -0
- package/dist/publishing/pipeline/steps/composition.d.ts +14 -0
- package/dist/publishing/pipeline/steps/composition.d.ts.map +1 -0
- package/dist/publishing/pipeline/steps/composition.js +63 -0
- package/dist/publishing/pipeline/steps/composition.js.map +1 -0
- package/dist/publishing/pipeline/steps/embargo.d.ts +12 -0
- package/dist/publishing/pipeline/steps/embargo.d.ts.map +1 -0
- package/dist/publishing/pipeline/steps/embargo.js +41 -0
- package/dist/publishing/pipeline/steps/embargo.js.map +1 -0
- package/dist/publishing/pipeline/steps/execute.d.ts +52 -0
- package/dist/publishing/pipeline/steps/execute.d.ts.map +1 -0
- package/dist/publishing/pipeline/steps/execute.js +161 -0
- package/dist/publishing/pipeline/steps/execute.js.map +1 -0
- package/dist/publishing/pipeline/steps/exist.d.ts +9 -0
- package/dist/publishing/pipeline/steps/exist.d.ts.map +1 -0
- package/dist/publishing/pipeline/steps/exist.js +31 -0
- package/dist/publishing/pipeline/steps/exist.js.map +1 -0
- package/dist/publishing/pipeline/steps/required-fields.d.ts +9 -0
- package/dist/publishing/pipeline/steps/required-fields.d.ts.map +1 -0
- package/dist/publishing/pipeline/steps/required-fields.js +63 -0
- package/dist/publishing/pipeline/steps/required-fields.js.map +1 -0
- package/dist/publishing/pipeline/types.d.ts +72 -0
- package/dist/publishing/pipeline/types.d.ts.map +1 -0
- package/dist/publishing/pipeline/types.js +2 -0
- package/dist/publishing/pipeline/types.js.map +1 -0
- package/dist/publishing/plugin.d.ts +4 -0
- package/dist/publishing/plugin.d.ts.map +1 -0
- package/dist/publishing/plugin.js +196 -0
- package/dist/publishing/plugin.js.map +1 -0
- package/dist/publishing/service.d.ts +149 -0
- package/dist/publishing/service.d.ts.map +1 -0
- package/dist/publishing/service.js +474 -0
- package/dist/publishing/service.js.map +1 -0
- package/dist/publishing/tools/actor.d.ts +32 -0
- package/dist/publishing/tools/actor.d.ts.map +1 -0
- package/dist/publishing/tools/actor.js +40 -0
- package/dist/publishing/tools/actor.js.map +1 -0
- package/dist/publishing/tools/descriptors.d.ts +26 -0
- package/dist/publishing/tools/descriptors.d.ts.map +1 -0
- package/dist/publishing/tools/descriptors.js +38 -0
- package/dist/publishing/tools/descriptors.js.map +1 -0
- package/dist/publishing/tools/get-publish-status.d.ts +12 -0
- package/dist/publishing/tools/get-publish-status.d.ts.map +1 -0
- package/dist/publishing/tools/get-publish-status.js +45 -0
- package/dist/publishing/tools/get-publish-status.js.map +1 -0
- package/dist/publishing/tools/index.d.ts +7 -0
- package/dist/publishing/tools/index.d.ts.map +1 -0
- package/dist/publishing/tools/index.js +7 -0
- package/dist/publishing/tools/index.js.map +1 -0
- package/dist/publishing/tools/publish.d.ts +14 -0
- package/dist/publishing/tools/publish.d.ts.map +1 -0
- package/dist/publishing/tools/publish.js +35 -0
- package/dist/publishing/tools/publish.js.map +1 -0
- package/dist/publishing/tools/rollback.d.ts +11 -0
- package/dist/publishing/tools/rollback.d.ts.map +1 -0
- package/dist/publishing/tools/rollback.js +98 -0
- package/dist/publishing/tools/rollback.js.map +1 -0
- package/dist/publishing/tools/schedule-publish.d.ts +20 -0
- package/dist/publishing/tools/schedule-publish.d.ts.map +1 -0
- package/dist/publishing/tools/schedule-publish.js +49 -0
- package/dist/publishing/tools/schedule-publish.js.map +1 -0
- package/dist/publishing/tools/unpublish.d.ts +14 -0
- package/dist/publishing/tools/unpublish.d.ts.map +1 -0
- package/dist/publishing/tools/unpublish.js +29 -0
- package/dist/publishing/tools/unpublish.js.map +1 -0
- package/dist/references/UsedOnPanel.d.ts +3 -0
- package/dist/references/UsedOnPanel.d.ts.map +1 -0
- package/dist/references/UsedOnPanel.js +47 -0
- package/dist/references/UsedOnPanel.js.map +1 -0
- package/dist/references/find.d.ts +46 -0
- package/dist/references/find.d.ts.map +1 -0
- package/dist/references/find.js +142 -0
- package/dist/references/find.js.map +1 -0
- package/dist/references/guards.d.ts +32 -0
- package/dist/references/guards.d.ts.map +1 -0
- package/dist/references/guards.js +76 -0
- package/dist/references/guards.js.map +1 -0
- package/dist/references/index.d.ts +11 -0
- package/dist/references/index.d.ts.map +1 -0
- package/dist/references/index.js +6 -0
- package/dist/references/index.js.map +1 -0
- package/dist/references/plugin.d.ts +51 -0
- package/dist/references/plugin.d.ts.map +1 -0
- package/dist/references/plugin.js +111 -0
- package/dist/references/plugin.js.map +1 -0
- package/dist/references/tools.d.ts +54 -0
- package/dist/references/tools.d.ts.map +1 -0
- package/dist/references/tools.js +124 -0
- package/dist/references/tools.js.map +1 -0
- package/dist/references/walk.d.ts +43 -0
- package/dist/references/walk.d.ts.map +1 -0
- package/dist/references/walk.js +214 -0
- package/dist/references/walk.js.map +1 -0
- package/dist/testing/anonymousAccess.d.ts +111 -0
- package/dist/testing/anonymousAccess.d.ts.map +1 -0
- package/dist/testing/anonymousAccess.js +185 -0
- package/dist/testing/anonymousAccess.js.map +1 -0
- package/dist/testing/describeAnonymousAccess.d.ts +26 -0
- package/dist/testing/describeAnonymousAccess.d.ts.map +1 -0
- package/dist/testing/describeAnonymousAccess.js +76 -0
- package/dist/testing/describeAnonymousAccess.js.map +1 -0
- package/dist/testing/index.d.ts +11 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/index.js +9 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/utils/content-hash.d.ts +31 -0
- package/dist/utils/content-hash.d.ts.map +1 -0
- package/dist/utils/content-hash.js +94 -0
- package/dist/utils/content-hash.js.map +1 -0
- package/dist/utils/index.d.ts +6 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +5 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/relationships.d.ts +17 -0
- package/dist/utils/relationships.d.ts.map +1 -0
- package/dist/utils/relationships.js +26 -0
- package/dist/utils/relationships.js.map +1 -0
- package/dist/utils/sha256.d.ts +10 -0
- package/dist/utils/sha256.d.ts.map +1 -0
- package/dist/utils/sha256.js +16 -0
- package/dist/utils/sha256.js.map +1 -0
- package/dist/utils/zod-issues.d.ts +19 -0
- package/dist/utils/zod-issues.d.ts.map +1 -0
- package/dist/utils/zod-issues.js +22 -0
- package/dist/utils/zod-issues.js.map +1 -0
- package/package.json +180 -3
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
/** `now` minus `months` calendar months, as an ISO string. */
|
|
2
|
+
export function monthsBefore(now, months) {
|
|
3
|
+
const cutoff = new Date(now);
|
|
4
|
+
cutoff.setUTCMonth(cutoff.getUTCMonth() - months);
|
|
5
|
+
return cutoff.toISOString();
|
|
6
|
+
}
|
|
7
|
+
/** The first field of `doc` that holds a parseable date. */
|
|
8
|
+
function firstDate(doc, fields) {
|
|
9
|
+
for (const field of fields) {
|
|
10
|
+
const value = doc[field];
|
|
11
|
+
if (typeof value === 'string' && value.trim() !== '' && !Number.isNaN(Date.parse(value))) {
|
|
12
|
+
return value;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
return undefined;
|
|
16
|
+
}
|
|
17
|
+
/** A dotted path out of a document: `meta.description`. */
|
|
18
|
+
function at(doc, path) {
|
|
19
|
+
let value = doc;
|
|
20
|
+
for (const key of path.split('.')) {
|
|
21
|
+
if (value === null || typeof value !== 'object')
|
|
22
|
+
return undefined;
|
|
23
|
+
value = value[key];
|
|
24
|
+
}
|
|
25
|
+
return value;
|
|
26
|
+
}
|
|
27
|
+
/** `meta.description` to `{ meta: { description: true } }`, for a `select`. */
|
|
28
|
+
function selectOf(paths) {
|
|
29
|
+
const select = {};
|
|
30
|
+
for (const path of paths) {
|
|
31
|
+
const [head, ...rest] = path.split('.');
|
|
32
|
+
if (rest.length === 0)
|
|
33
|
+
select[head] = true;
|
|
34
|
+
else
|
|
35
|
+
select[head] = {
|
|
36
|
+
...(select[head] ?? {}),
|
|
37
|
+
...selectOf([rest.join('.')]),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
return select;
|
|
41
|
+
}
|
|
42
|
+
/*
|
|
43
|
+
"Published", in a form the count and the list it links to agree on. The count
|
|
44
|
+
reads the main row, where `_status` is the live state; the admin list of a
|
|
45
|
+
versioned collection reads each document's latest version, where a published
|
|
46
|
+
page with unpublished edits says `draft`. A stamped first-publish date carries
|
|
47
|
+
into every later draft, so it closes that gap.
|
|
48
|
+
*/
|
|
49
|
+
function publishedWhere(publishedField) {
|
|
50
|
+
if (publishedField === false)
|
|
51
|
+
return { _status: { equals: 'published' } };
|
|
52
|
+
return { or: [{ _status: { equals: 'published' } }, { [publishedField]: { exists: true } }] };
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Published documents not revised within a threshold, oldest first. A
|
|
56
|
+
* collection with no threshold is not judged: a dated post is not a stale one.
|
|
57
|
+
*/
|
|
58
|
+
export function staleCheck(options) {
|
|
59
|
+
const dates = options.dates ?? ['revisedAt', 'publishedAt', 'createdAt'];
|
|
60
|
+
const published = publishedWhere(options.publishedField ?? 'publishedAt');
|
|
61
|
+
return {
|
|
62
|
+
id: 'stale',
|
|
63
|
+
label: options.label ?? 'Not revised recently',
|
|
64
|
+
...(options.description ? { description: options.description } : {}),
|
|
65
|
+
empty: options.empty ?? 'Everything has been revised recently.',
|
|
66
|
+
collections: Object.keys(options.after),
|
|
67
|
+
where: (collection, now) => {
|
|
68
|
+
const months = options.after[collection];
|
|
69
|
+
if (months === undefined)
|
|
70
|
+
return null;
|
|
71
|
+
const cutoff = monthsBefore(now, months);
|
|
72
|
+
// Dated by the first field that is set: each branch says "this one is
|
|
73
|
+
// old and every field before it is empty".
|
|
74
|
+
const branches = dates.map((field, index) => index === 0
|
|
75
|
+
? { [field]: { less_than: cutoff } }
|
|
76
|
+
: {
|
|
77
|
+
and: [
|
|
78
|
+
...dates.slice(0, index).map((earlier) => ({ [earlier]: { exists: false } })),
|
|
79
|
+
{ [field]: { less_than: cutoff } },
|
|
80
|
+
],
|
|
81
|
+
});
|
|
82
|
+
return { and: [published, { or: branches }] };
|
|
83
|
+
},
|
|
84
|
+
select: selectOf(['title', ...dates]),
|
|
85
|
+
order: (a, b) => (a.at ?? '').localeCompare(b.at ?? ''),
|
|
86
|
+
describe: (doc) => {
|
|
87
|
+
const date = firstDate(doc, dates);
|
|
88
|
+
return date ? { at: date } : { note: 'never dated' };
|
|
89
|
+
},
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
/** Published, indexable documents with no meta description or no meta image. */
|
|
93
|
+
export function missingSeoCheck(options) {
|
|
94
|
+
const description = options.fields?.description ?? 'meta.description';
|
|
95
|
+
const image = options.fields?.image ?? 'meta.image';
|
|
96
|
+
const noIndex = options.fields?.noIndex === undefined ? 'meta.noIndex' : options.fields.noIndex;
|
|
97
|
+
const published = publishedWhere(options.publishedField ?? 'publishedAt');
|
|
98
|
+
const where = {
|
|
99
|
+
and: [
|
|
100
|
+
published,
|
|
101
|
+
...(noIndex ? [{ [noIndex]: { not_equals: true } }] : []),
|
|
102
|
+
{
|
|
103
|
+
or: [
|
|
104
|
+
{ [description]: { exists: false } },
|
|
105
|
+
{ [description]: { equals: '' } },
|
|
106
|
+
{ [image]: { exists: false } },
|
|
107
|
+
],
|
|
108
|
+
},
|
|
109
|
+
],
|
|
110
|
+
};
|
|
111
|
+
return {
|
|
112
|
+
id: 'missing-seo',
|
|
113
|
+
label: options.label ?? 'Missing SEO',
|
|
114
|
+
...(options.description ? { description: options.description } : {}),
|
|
115
|
+
empty: options.empty ?? 'Every published page has a meta description and image.',
|
|
116
|
+
collections: options.collections,
|
|
117
|
+
where: () => where,
|
|
118
|
+
select: selectOf(['title', description, image]),
|
|
119
|
+
sort: options.sort ?? '-publishedAt',
|
|
120
|
+
describe: (doc) => {
|
|
121
|
+
const missing = [];
|
|
122
|
+
if (!at(doc, description))
|
|
123
|
+
missing.push('description');
|
|
124
|
+
const img = at(doc, image);
|
|
125
|
+
if (img === null || img === undefined)
|
|
126
|
+
missing.push('image');
|
|
127
|
+
return missing.length > 0 ? { note: `no ${missing.join(' or ')}` } : {};
|
|
128
|
+
},
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
/** Image uploads with no alt text, by default only those something uses. */
|
|
132
|
+
export function missingAltCheck(options = {}) {
|
|
133
|
+
const collection = options.collection ?? 'media';
|
|
134
|
+
const alt = options.altField ?? 'alt';
|
|
135
|
+
const onlyInUse = options.onlyInUse ?? true;
|
|
136
|
+
if (onlyInUse && !options.inUse) {
|
|
137
|
+
throw new Error('missingAltCheck: onlyInUse needs `inUse`, e.g. findReferencedIds from @forumone/throughline/media.');
|
|
138
|
+
}
|
|
139
|
+
const where = {
|
|
140
|
+
and: [
|
|
141
|
+
{ mimeType: { like: 'image/' } },
|
|
142
|
+
{ or: [{ [alt]: { exists: false } }, { [alt]: { equals: '' } }] },
|
|
143
|
+
],
|
|
144
|
+
};
|
|
145
|
+
return {
|
|
146
|
+
id: 'missing-alt',
|
|
147
|
+
label: options.label ?? (onlyInUse ? 'Images in use without alt text' : 'Images without alt text'),
|
|
148
|
+
...(options.description ? { description: options.description } : {}),
|
|
149
|
+
empty: options.empty ??
|
|
150
|
+
(onlyInUse ? 'Every image in use has alt text.' : 'Every image has alt text.'),
|
|
151
|
+
collections: [collection],
|
|
152
|
+
where: () => where,
|
|
153
|
+
select: { filename: true, updatedAt: true },
|
|
154
|
+
sort: '-updatedAt',
|
|
155
|
+
...(onlyInUse && options.inUse
|
|
156
|
+
? {
|
|
157
|
+
costly: true,
|
|
158
|
+
refine: async (docs, payload) => {
|
|
159
|
+
const used = await options.inUse(payload, collection);
|
|
160
|
+
return docs.filter((doc) => used.has(String(doc['id'])));
|
|
161
|
+
},
|
|
162
|
+
}
|
|
163
|
+
: {}),
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* A `where` as the query string the admin list view reads, so a count links to
|
|
168
|
+
* the list it counted. Bracket notation, which is all the list view parses.
|
|
169
|
+
*/
|
|
170
|
+
export function whereQuery(where) {
|
|
171
|
+
const pairs = [];
|
|
172
|
+
const walk = (value, key) => {
|
|
173
|
+
if (Array.isArray(value))
|
|
174
|
+
value.forEach((item, index) => walk(item, `${key}[${index}]`));
|
|
175
|
+
else if (value !== null && typeof value === 'object')
|
|
176
|
+
for (const [k, v] of Object.entries(value))
|
|
177
|
+
walk(v, `${key}[${k}]`);
|
|
178
|
+
else
|
|
179
|
+
pairs.push(`${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`);
|
|
180
|
+
};
|
|
181
|
+
walk(where, 'where');
|
|
182
|
+
return pairs.join('&');
|
|
183
|
+
}
|
|
184
|
+
/** The admin list for `collection`, filtered by `where`. */
|
|
185
|
+
export function listHref(adminRoute, collection, where) {
|
|
186
|
+
return `${adminRoute}/collections/${collection}?${whereQuery(where)}`;
|
|
187
|
+
}
|
|
188
|
+
//# sourceMappingURL=checks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checks.js","sourceRoot":"","sources":["../../../src/editorial/health/checks.ts"],"names":[],"mappings":"AA0DA,8DAA8D;AAC9D,MAAM,UAAU,YAAY,CAAC,GAAS,EAAE,MAAc;IACpD,MAAM,MAAM,GAAG,IAAI,IAAI,CAAC,GAAG,CAAC,CAAA;IAC5B,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,WAAW,EAAE,GAAG,MAAM,CAAC,CAAA;IACjD,OAAO,MAAM,CAAC,WAAW,EAAE,CAAA;AAC7B,CAAC;AAED,4DAA4D;AAC5D,SAAS,SAAS,CAAC,GAA4B,EAAE,MAAyB;IACxE,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;QAC3B,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,CAAA;QACxB,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC;YACzF,OAAO,KAAK,CAAA;QACd,CAAC;IACH,CAAC;IACD,OAAO,SAAS,CAAA;AAClB,CAAC;AAED,2DAA2D;AAC3D,SAAS,EAAE,CAAC,GAA4B,EAAE,IAAY;IACpD,IAAI,KAAK,GAAY,GAAG,CAAA;IACxB,KAAK,MAAM,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC;QAClC,IAAI,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ;YAAE,OAAO,SAAS,CAAA;QACjE,KAAK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AAM,UAAU,QAAQ,CAAC,UAAkB,EAAE,UAAkB,EAAE,KAAY;IAC3E,OAAO,GAAG,UAAU,gBAAgB,UAAU,IAAI,UAAU,CAAC,KAAK,CAAC,EAAE,CAAA;AACvE,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { Payload, PayloadRequest, Where } from 'payload';
|
|
2
|
+
import type { HealthCheck, HealthRow } from './checks.js';
|
|
3
|
+
/** One collection's share of a check. */
|
|
4
|
+
export interface HealthGroup {
|
|
5
|
+
collection: string;
|
|
6
|
+
label: string;
|
|
7
|
+
singular: string;
|
|
8
|
+
/** The query the count ran, for a link to the list it counted. */
|
|
9
|
+
where: Where;
|
|
10
|
+
total: number;
|
|
11
|
+
/** The first rows, up to the limit. Empty in a summary. */
|
|
12
|
+
rows: HealthRow[];
|
|
13
|
+
/** Matched the `where` but were dropped by `refine`: images with no alt that nothing uses. */
|
|
14
|
+
excluded?: number;
|
|
15
|
+
}
|
|
16
|
+
export interface HealthCheckResult {
|
|
17
|
+
id: string;
|
|
18
|
+
label: string;
|
|
19
|
+
description?: string;
|
|
20
|
+
empty: string;
|
|
21
|
+
groups: HealthGroup[];
|
|
22
|
+
/** Set when the check did not run: `costly` in a summary, `failed` when its read threw. */
|
|
23
|
+
skipped?: 'costly' | 'failed';
|
|
24
|
+
}
|
|
25
|
+
export interface HealthReport {
|
|
26
|
+
generatedAt: string;
|
|
27
|
+
checks: HealthCheckResult[];
|
|
28
|
+
}
|
|
29
|
+
export interface FindContentNeedingAttentionOptions {
|
|
30
|
+
checks: readonly HealthCheck[];
|
|
31
|
+
/** Who is asking. Their access decides what is counted. */
|
|
32
|
+
user: PayloadRequest['user'];
|
|
33
|
+
now?: Date;
|
|
34
|
+
/** `summary`: counts only, costly checks skipped, for the dashboard. Default `full`. */
|
|
35
|
+
scope?: 'summary' | 'full';
|
|
36
|
+
/** Rows per collection. Default 10. */
|
|
37
|
+
limit?: number;
|
|
38
|
+
/** Only these check ids. */
|
|
39
|
+
only?: readonly string[];
|
|
40
|
+
}
|
|
41
|
+
/** What needs attention, by check and collection. */
|
|
42
|
+
export declare function findContentNeedingAttention(payload: Payload, options: FindContentNeedingAttentionOptions): Promise<HealthReport>;
|
|
43
|
+
//# sourceMappingURL=find.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"find.d.ts","sourceRoot":"","sources":["../../../src/editorial/health/find.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAkB,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC7E,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAgBzD,yCAAyC;AACzC,MAAM,WAAW,WAAW;IAC1B,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,kEAAkE;IAClE,KAAK,EAAE,KAAK,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,2DAA2D;IAC3D,IAAI,EAAE,SAAS,EAAE,CAAA;IACjB,8FAA8F;IAC9F,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,WAAW,EAAE,CAAA;IACrB,2FAA2F;IAC3F,OAAO,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAA;CAC9B;AAED,MAAM,WAAW,YAAY;IAC3B,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,iBAAiB,EAAE,CAAA;CAC5B;AAED,MAAM,WAAW,kCAAkC;IACjD,MAAM,EAAE,SAAS,WAAW,EAAE,CAAA;IAC9B,2DAA2D;IAC3D,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC,CAAA;IAC5B,GAAG,CAAC,EAAE,IAAI,CAAA;IACV,wFAAwF;IACxF,KAAK,CAAC,EAAE,SAAS,GAAG,MAAM,CAAA;IAC1B,uCAAuC;IACvC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,4BAA4B;IAC5B,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;CACzB;AAyED,qDAAqD;AACrD,wBAAsB,2BAA2B,CAC/C,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,kCAAkC,GAC1C,OAAO,CAAC,YAAY,CAAC,CA2CvB"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
function labelsOf(payload, slug) {
|
|
2
|
+
const { plural, singular } = payload.collections[slug]?.config.labels ?? {};
|
|
3
|
+
return {
|
|
4
|
+
label: typeof plural === 'string' ? plural : slug,
|
|
5
|
+
singular: typeof singular === 'string' ? singular : slug,
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
function titleOf(doc) {
|
|
9
|
+
for (const key of ['title', 'name', 'filename', 'slug']) {
|
|
10
|
+
const value = doc[key];
|
|
11
|
+
if (typeof value === 'string' && value.trim() !== '')
|
|
12
|
+
return value;
|
|
13
|
+
}
|
|
14
|
+
return 'Untitled';
|
|
15
|
+
}
|
|
16
|
+
function rowOf(check, doc, now) {
|
|
17
|
+
return {
|
|
18
|
+
id: doc['id'],
|
|
19
|
+
title: titleOf(doc),
|
|
20
|
+
...(check.describe ? check.describe(doc, now) : {}),
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
async function runGroup(payload, check, collection, options) {
|
|
24
|
+
const where = check.where(collection, options.now);
|
|
25
|
+
if (!where)
|
|
26
|
+
return null;
|
|
27
|
+
const base = { ...labelsOf(payload, collection), collection, where };
|
|
28
|
+
const access = { overrideAccess: false, user: options.user };
|
|
29
|
+
if (options.scope === 'summary') {
|
|
30
|
+
const { totalDocs } = await payload.count({ collection, where, ...access });
|
|
31
|
+
return { ...base, total: totalDocs, rows: [] };
|
|
32
|
+
}
|
|
33
|
+
// Every match when the order or the refine step needs the whole set; otherwise a page.
|
|
34
|
+
const all = Boolean(check.order || check.refine);
|
|
35
|
+
const result = await payload.find({
|
|
36
|
+
collection,
|
|
37
|
+
where,
|
|
38
|
+
depth: 0,
|
|
39
|
+
...(all ? { limit: 0, pagination: false } : { limit: options.limit }),
|
|
40
|
+
...(check.sort && !check.order ? { sort: check.sort } : {}),
|
|
41
|
+
select: { ...check.select },
|
|
42
|
+
...access,
|
|
43
|
+
});
|
|
44
|
+
let docs = result.docs;
|
|
45
|
+
let excluded;
|
|
46
|
+
if (check.refine) {
|
|
47
|
+
const kept = await check.refine(docs, payload);
|
|
48
|
+
excluded = docs.length - kept.length;
|
|
49
|
+
docs = kept;
|
|
50
|
+
}
|
|
51
|
+
let rows = docs.map((doc) => rowOf(check, doc, options.now));
|
|
52
|
+
if (check.order)
|
|
53
|
+
rows = rows.sort(check.order);
|
|
54
|
+
return {
|
|
55
|
+
...base,
|
|
56
|
+
total: check.refine ? docs.length : result.totalDocs,
|
|
57
|
+
rows: rows.slice(0, options.limit),
|
|
58
|
+
...(excluded !== undefined ? { excluded } : {}),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
/** What needs attention, by check and collection. */
|
|
62
|
+
export async function findContentNeedingAttention(payload, options) {
|
|
63
|
+
const now = options.now ?? new Date();
|
|
64
|
+
const scope = options.scope ?? 'full';
|
|
65
|
+
const limit = options.limit ?? 10;
|
|
66
|
+
const checks = options.only
|
|
67
|
+
? options.checks.filter((check) => options.only.includes(check.id))
|
|
68
|
+
: options.checks;
|
|
69
|
+
const results = await Promise.all(checks.map(async (check) => {
|
|
70
|
+
const head = {
|
|
71
|
+
id: check.id,
|
|
72
|
+
label: check.label,
|
|
73
|
+
...(check.description ? { description: check.description } : {}),
|
|
74
|
+
empty: check.empty,
|
|
75
|
+
};
|
|
76
|
+
if (scope === 'summary' && check.costly)
|
|
77
|
+
return { ...head, groups: [], skipped: 'costly' };
|
|
78
|
+
const settled = await Promise.allSettled(check.collections.map((collection) => runGroup(payload, check, collection, { scope, limit, user: options.user, now })));
|
|
79
|
+
const groups = [];
|
|
80
|
+
let failed = 0;
|
|
81
|
+
for (const outcome of settled) {
|
|
82
|
+
if (outcome.status === 'rejected') {
|
|
83
|
+
failed += 1;
|
|
84
|
+
payload.logger.warn({ err: outcome.reason, check: check.id }, 'Content health: a collection did not answer.');
|
|
85
|
+
}
|
|
86
|
+
else if (outcome.value) {
|
|
87
|
+
groups.push(outcome.value);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
// Every collection failed: that is "could not check", not "nothing found".
|
|
91
|
+
if (failed > 0 && groups.length === 0)
|
|
92
|
+
return { ...head, groups: [], skipped: 'failed' };
|
|
93
|
+
return { ...head, groups };
|
|
94
|
+
}));
|
|
95
|
+
return { generatedAt: now.toISOString(), checks: results };
|
|
96
|
+
}
|
|
97
|
+
//# sourceMappingURL=find.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"find.js","sourceRoot":"","sources":["../../../src/editorial/health/find.ts"],"names":[],"mappings":"AA2DA,SAAS,QAAQ,CAAC,OAAgB,EAAE,IAAY;IAC9C,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,WAAW,CAAC,IAAsB,CAAC,EAAE,MAAM,CAAC,MAAM,IAAI,EAAE,CAAA;IAC7F,OAAO;QACL,KAAK,EAAE,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI;QACjD,QAAQ,EAAE,OAAO,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI;KACzD,CAAA;AACH,CAAC;AAED,SAAS,OAAO,CAAC,GAA4B;IAC3C,KAAK,MAAM,GAAG,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,CAAC,EAAE,CAAC;QACxD,MAAM,KAAK,G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
|
2
|
+
import type { Payload } from 'payload';
|
|
3
|
+
import type { McpToolDefinition } from '../../plugin-contract/mcp.js';
|
|
4
|
+
import type { McpToolDescriptor } from '../../mcp/collector.js';
|
|
5
|
+
import type { HealthCheck } from './checks.js';
|
|
6
|
+
import { type HealthReport } from './find.js';
|
|
7
|
+
export declare const HEALTH_TOOLS: {
|
|
8
|
+
readonly findContentNeedingAttention: {
|
|
9
|
+
readonly name: "find_content_needing_attention";
|
|
10
|
+
readonly description: "Lists published content that needs a review, by check: pages not revised within their threshold, pages missing a meta description or image, images in use without alt text, and any other checks the site configures. Each result names the document, why it is listed, and its admin link. Use for \"what is going stale?\", \"what needs SEO work?\", or a content review. Pass `checks` to run only some of them.";
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export declare const HEALTH_TOOL_DESCRIPTORS: readonly McpToolDescriptor[];
|
|
14
|
+
declare const inputSchema: z.ZodObject<{
|
|
15
|
+
checks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
16
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
limit?: number | undefined;
|
|
19
|
+
checks?: string[] | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
limit?: number | undefined;
|
|
22
|
+
checks?: string[] | undefined;
|
|
23
|
+
}>;
|
|
24
|
+
export interface HealthToolDeps {
|
|
25
|
+
payload: Payload;
|
|
26
|
+
checks: readonly HealthCheck[];
|
|
27
|
+
}
|
|
28
|
+
/** The report as the tool returns it: no `where`, and an admin link per row. */
|
|
29
|
+
export declare function toolReport(report: HealthReport, adminRoute: string): {
|
|
30
|
+
generatedAt: string;
|
|
31
|
+
checks: {
|
|
32
|
+
total: number;
|
|
33
|
+
groups: {
|
|
34
|
+
documents: {
|
|
35
|
+
adminUrl: string;
|
|
36
|
+
id: number | string;
|
|
37
|
+
title: string;
|
|
38
|
+
at?: string;
|
|
39
|
+
note?: string;
|
|
40
|
+
}[];
|
|
41
|
+
excluded?: number;
|
|
42
|
+
collection: string;
|
|
43
|
+
label: string;
|
|
44
|
+
total: number;
|
|
45
|
+
}[];
|
|
46
|
+
skipped?: "costly" | "failed";
|
|
47
|
+
id: string;
|
|
48
|
+
label: string;
|
|
49
|
+
}[];
|
|
50
|
+
};
|
|
51
|
+
export declare function createFindContentNeedingAttentionTool(deps: HealthToolDeps): McpToolDefinition<typeof inputSchema>;
|
|
52
|
+
export {};
|
|
53
|
+
//# sourceMappingURL=tool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool.d.ts","sourceRoot":"","sources":["../../../src/editorial/health/tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,KAAK,EAAE,OAAO,EAAkB,MAAM,SAAS,CAAA;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AACrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC/D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAC9C,OAAO,EAA+B,KAAK,YAAY,EAAE,MAAM,WAAW,CAAA;AAU1E,eAAO,MAAM,YAAY;;;;;CAM6B,CAAA;AAEtD,eAAO,MAAM,uBAAuB,EAAE,SAAS,iBAAiB,EAAgC,CAAA;AAEhG,QAAA,MAAM,WAAW;;;;;;;;;EAYf,CAAA;AAEF,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,OAAO,CAAA;IAChB,MAAM,EAAE,SAAS,WAAW,EAAE,CAAA;CAC/B;AAED,gFAAgF;AAChF,wBAAgB,UAAU,CAAC,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;EAsBlE;AAED,wBAAgB,qCAAqC,CACnD,IAAI,EAAE,cAAc,GACnB,iBAAiB,CAAC,OAAO,WAAW,CAAC,CA0BvC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { findContentNeedingAttention } from './find.js';
|
|
3
|
+
/*
|
|
4
|
+
The content-health view, as an MCP tool. It calls the same function the view
|
|
5
|
+
does, with the same checks, as the caller, so an agent and the admin see the
|
|
6
|
+
same rows. The only difference is that the tool leaves out each group's
|
|
7
|
+
`where` (the view needs it to link to the filtered list; an agent does not) and
|
|
8
|
+
links each row to its admin page instead.
|
|
9
|
+
*/
|
|
10
|
+
export const HEALTH_TOOLS = {
|
|
11
|
+
findContentNeedingAttention: {
|
|
12
|
+
name: 'find_content_needing_attention',
|
|
13
|
+
description: 'Lists published content that needs a review, by check: pages not revised within their threshold, pages missing a meta description or image, images in use without alt text, and any other checks the site configures. Each result names the document, why it is listed, and its admin link. Use for "what is going stale?", "what needs SEO work?", or a content review. Pass `checks` to run only some of them.',
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
export const HEALTH_TOOL_DESCRIPTORS = Object.values(HEALTH_TOOLS);
|
|
17
|
+
const inputSchema = z.object({
|
|
18
|
+
checks: z
|
|
19
|
+
.array(z.string())
|
|
20
|
+
.optional()
|
|
21
|
+
.describe('Check ids to run, e.g. ["stale"]. Default: all.'),
|
|
22
|
+
limit: z
|
|
23
|
+
.number()
|
|
24
|
+
.int()
|
|
25
|
+
.positive()
|
|
26
|
+
.max(100)
|
|
27
|
+
.optional()
|
|
28
|
+
.describe('Documents per collection. Default: 10.'),
|
|
29
|
+
});
|
|
30
|
+
/** The report as the tool returns it: no `where`, and an admin link per row. */
|
|
31
|
+
export function toolReport(report, adminRoute) {
|
|
32
|
+
return {
|
|
33
|
+
generatedAt: report.generatedAt,
|
|
34
|
+
checks: report.checks.map((check) => ({
|
|
35
|
+
id: check.id,
|
|
36
|
+
label: check.label,
|
|
37
|
+
...(check.skipped ? { skipped: check.skipped } : {}),
|
|
38
|
+
total: check.groups.reduce((sum, group) => sum + group.total, 0),
|
|
39
|
+
groups: check.groups
|
|
40
|
+
.filter((group) => group.total > 0)
|
|
41
|
+
.map((group) => ({
|
|
42
|
+
collection: group.collection,
|
|
43
|
+
label: group.label,
|
|
44
|
+
total: group.total,
|
|
45
|
+
...(group.excluded ? { excluded: group.excluded } : {}),
|
|
46
|
+
documents: group.rows.map((row) => ({
|
|
47
|
+
...row,
|
|
48
|
+
adminUrl: `${adminRoute}/collections/${group.collection}/${String(row.id)}`,
|
|
49
|
+
})),
|
|
50
|
+
})),
|
|
51
|
+
})),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
export function createFindContentNeedingAttentionTool(deps) {
|
|
55
|
+
return {
|
|
56
|
+
...HEALTH_TOOLS.findContentNeedingAttention,
|
|
57
|
+
inputSchema,
|
|
58
|
+
handler: async (input, ctx) => {
|
|
59
|
+
if (!ctx.user) {
|
|
60
|
+
return {
|
|
61
|
+
error: 'Must be authenticated: content health is read with your own access, and an API key alone carries no identity.',
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
const known = new Set(deps.checks.map((check) => check.id));
|
|
65
|
+
const unknown = (input.checks ?? []).filter((id) => !known.has(id));
|
|
66
|
+
if (unknown.length > 0) {
|
|
67
|
+
return { error: `Unknown check ${unknown.join(', ')}. Known: ${[...known].join(', ')}.` };
|
|
68
|
+
}
|
|
69
|
+
const report = await findContentNeedingAttention(deps.payload, {
|
|
70
|
+
checks: deps.checks,
|
|
71
|
+
// The same cast and the same reason as publishing's `resolvePublishingActor`.
|
|
72
|
+
user: ctx.user,
|
|
73
|
+
...(input.checks ? { only: input.checks } : {}),
|
|
74
|
+
...(input.limit ? { limit: input.limit } : {}),
|
|
75
|
+
});
|
|
76
|
+
return toolReport(report, deps.payload.config.routes.admin);
|
|
77
|
+
},
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
//# sourceMappingURL=tool.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool.js","sourceRoot":"","sources":["../../../src/editorial/health/tool.ts"],"names":[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AAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAA;YACnE,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBACvB,OAAO,EAAE,KAAK,EAAE,iBAAiB,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAA;YAC3F,CAAC;YACD,MAAM,MAAM,GAAG,MAAM,2BAA2B,CAAC,IAAI,CAAC,OAAO,EAAE;gBAC7D,MAAM,EAAE,IAAI,CAAC,MAAM;gBACnB,8EAA8E;gBAC9E,IAAI,EAAE,GAAG,CAAC,IAAyC;gBACnD,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC/C,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;aAC/C,CAAC,CAAA;YACF,OAAO,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;QAC7D,CAAC;KACF,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export { editorialPlugin, CONTENT_CALENDAR_VIEW_PATH, CONTENT_HEALTH_VIEW_PATH, YOUR_WORK_DASHBOARD_PATH, COMMAND_PALETTE_PATH, REPORTS_NAV_PATH, } from './plugin.js';
|
|
2
|
+
export type { EditorialPluginOptions } from './plugin.js';
|
|
3
|
+
export { listHref, missingAltCheck, missingSeoCheck, monthsBefore, staleCheck, whereQuery, } from './health/checks.js';
|
|
4
|
+
export type { HealthCheck, HealthRow, MissingAltCheckOptions, MissingSeoCheckOptions, StaleCheckOptions, } from './health/checks.js';
|
|
5
|
+
export { findContentNeedingAttention } from './health/find.js';
|
|
6
|
+
export type { FindContentNeedingAttentionOptions, HealthCheckResult, HealthGroup, HealthReport, } from './health/find.js';
|
|
7
|
+
export { HEALTH_TOOLS, HEALTH_TOOL_DESCRIPTORS, createFindContentNeedingAttentionTool, toolReport, } from './health/tool.js';
|
|
8
|
+
export type { HealthToolDeps } from './health/tool.js';
|
|
9
|
+
export { relativeTime } from './relativeTime.js';
|
|
10
|
+
export { clockFor, daysInMonth, readCalendarMonth } from './calendar/calendar.js';
|
|
11
|
+
export type { CalendarMonth, CalendarOptions } from './calendar/calendar.js';
|
|
12
|
+
export { findContentCalendar } from './calendar/find.js';
|
|
13
|
+
export type { CalendarEventSource, CalendarItem, CalendarKind, CalendarSources, } from './calendar/find.js';
|
|
14
|
+
export { calendarClock, dayTitle, defaultZoneLabel, gridDays, monthParam, monthTitle, queryRange, shiftMonth, } from './calendar/month.js';
|
|
15
|
+
export type { CalendarClock, Month } from './calendar/month.js';
|
|
16
|
+
export { CALENDAR_TOOLS, CALENDAR_TOOL_DESCRIPTORS, createGetContentCalendarTool, toolCalendar, } from './calendar/tool.js';
|
|
17
|
+
export { readYourWork } from './work/work.js';
|
|
18
|
+
export type { WorkOptions, WorkRow, YourWorkResult } from './work/work.js';
|
|
19
|
+
export { WORK_TOOLS, WORK_TOOL_DESCRIPTORS, createListMyWorkTool, toolWork } from './work/tool.js';
|
|
20
|
+
export { PER_SOURCE, RECENT_LIMIT, byIdsUrl, documentFromPath, matchCommands, matchRank, pushRecent, readRecent, searchUrl, searchWhere, } from './palette/sources.js';
|
|
21
|
+
export type { Command, RecentEntry, Report, SearchSource } from './palette/sources.js';
|
|
22
|
+
export { searchContent } from './palette/search.js';
|
|
23
|
+
export type { SearchHit } from './palette/search.js';
|
|
24
|
+
export { PALETTE_TOOLS, PALETTE_TOOL_DESCRIPTORS, createSearchContentTool } from './palette/tool.js';
|
|
25
|
+
//# sourceMappingURL=index.d.ts.map
|
|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5B,YAAY,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AAC/D,OAAO,EACL,cAAc,EACd,yBAAyB,EACzB,4BAA4B,EAC5B,YAAY,GACb,MAAM,oBAAoB,CAAA;AAE3B,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,YAAY,EAAE,WAAW,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAC1E,OAAO,EAAE,UAAU,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAElG,OAAO,EACL,UAAU,EACV,YAAY,EACZ,QAAQ,EACR,gBAAgB,EAChB,aAAa,EACb,SAAS,EACT,UAAU,EACV,UAAU,EACV,SAAS,EACT,WAAW,GACZ,MAAM,sBAAsB,CAAA;AAC7B,YAAY,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACtF,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AACnD,YAAY,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,EAAE,aAAa,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { editorialPlugin, CONTENT_CALENDAR_VIEW_PATH, CONTENT_HEALTH_VIEW_PATH, YOUR_WORK_DASHBOARD_PATH, COMMAND_PALETTE_PATH, REPORTS_NAV_PATH, } from './plugin.js';
|
|
2
|
+
export { listHref, missingAltCheck, missingSeoCheck, monthsBefore, staleCheck, whereQuery, } from './health/checks.js';
|
|
3
|
+
export { findContentNeedingAttention } from './health/find.js';
|
|
4
|
+
export { HEALTH_TOOLS, HEALTH_TOOL_DESCRIPTORS, createFindContentNeedingAttentionTool, toolReport, } from './health/tool.js';
|
|
5
|
+
export { relativeTime } from './relativeTime.js';
|
|
6
|
+
export { clockFor, daysInMonth, readCalendarMonth } from './calendar/calendar.js';
|
|
7
|
+
export { findContentCalendar } from './calendar/find.js';
|
|
8
|
+
export { calendarClock, dayTitle, defaultZoneLabel, gridDays, monthParam, monthTitle, queryRange, shiftMonth, } from './calendar/month.js';
|
|
9
|
+
export { CALENDAR_TOOLS, CALENDAR_TOOL_DESCRIPTORS, createGetContentCalendarTool, toolCalendar, } from './calendar/tool.js';
|
|
10
|
+
export { readYourWork } from './work/work.js';
|
|
11
|
+
export { WORK_TOOLS, WORK_TOOL_DESCRIPTORS, createListMyWorkTool, toolWork } from './work/tool.js';
|
|
12
|
+
export { PER_SOURCE, RECENT_LIMIT, byIdsUrl, documentFromPath, matchCommands, matchRank, pushRecent, readRecent, searchUrl, searchWhere, } from './palette/sources.js';
|
|
13
|
+
export { searchContent } from './palette/search.js';
|
|
14
|
+
export { PALETTE_TOOLS, PALETTE_TOOL_DESCRIPTORS, createSearchContentTool } from './palette/tool.js';
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/editorial/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,0BAA0B,EAC1B,wBAAwB,EACxB,wBAAwB,EACxB,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,aAAa,CAAA;AAGpB,OAAO,EACL,QAAQ,EACR,eAAe,EACf,eAAe,EACf,YAAY,EACZ,UAAU,EACV,UAAU,GACX,MAAM,oBAAoB,CAAA;AAS3B,OAAO,EAAE,2BAA2B,EAAE,MAAM,kBAAkB,CAAA;AAQ9D,OAAO,EACL,YAAY,EACZ,uBAAuB,EACvB,qCAAqC,EACrC,UAAU,GACX,MAAM,kBAAkB,CAAA;AAGzB,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAEhD,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAEjF,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAOxD,OAAO,EACL,aAAa,EACb,QAAQ,EACR,gBAAgB,EAChB,QAAQ,EACR,UAAU,EACV,UAAU,EACV,UAAU,EACV,UAAU,GACX,MAAM,qBAAqB,CAAA;AAE5B,OAAO,EACL,cAAc,EACd,yBAAyB,EACzB,4BAA4B,EAC5B,YAAY,GACb,MAAM,oBAAoB,CAAA;AAE3B,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,OAAO,EAAE,UAAU,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAElG,OAAO,EACL,UAAU,EACV,YAAY,EACZ,QAAQ,EACR,gBAAgB,EAChB,aAAa,EACb,SAAS,EACT,UAAU,EACV,UAAU,EACV,SAAS,EACT,WAAW,GACZ,MAAM,sBAAsB,CAAA;AAE7B,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAEnD,OAAO,EAAE,aAAa,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type Report, type SearchSource } from './sources.js';
|
|
3
|
+
export interface CommandPaletteProps {
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
/** What it searches, in the order results are grouped. */
|
|
6
|
+
sources: SearchSource[];
|
|
7
|
+
/** Screens that are not collections, offered as "Go to". */
|
|
8
|
+
reports?: Report[];
|
|
9
|
+
/** Collections offered as "New …". Default: every source. */
|
|
10
|
+
creatable?: string[];
|
|
11
|
+
/** The per-user preference the recent list is kept in. */
|
|
12
|
+
preferenceKey?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare function CommandPalette({ children, sources, reports, creatable, preferenceKey, }: CommandPaletteProps): import("react").JSX.Element;
|
|
15
|
+
//# sourceMappingURL=CommandPalette.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommandPalette.d.ts","sourceRoot":"","sources":["../../../src/editorial/palette/CommandPalette.tsx"],"names":[],"mappings":"AAIA,OAAO,EAA4D,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAChG,OAAO,EAUL,KAAK,MAAM,EACX,KAAK,YAAY,EAClB,MAAM,cAAc,CAAA;AA8BrB,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,0DAA0D;IAC1D,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,4DAA4D;IAC5D,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;IAClB,6DAA6D;IAC7D,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;IACpB,0DAA0D;IAC1D,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AA4QD,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,OAAO,EACP,OAAY,EACZ,SAAS,EACT,aAAoD,GACrD,EAAE,mBAAmB,+BA4IrB"}
|