dineway 0.2.31 → 0.2.33
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/NOTICE +5 -0
- package/dist/{activity-DTJtloA1.mjs → activity-CfryM8jO.mjs} +2 -2
- package/dist/{activity-events-C1U22VYR.mjs → activity-events-BVo9rMUz.mjs} +1 -1
- package/dist/{allowed-origins-C-7CVG6J.mjs → allowed-origins-DGSyhRCz.mjs} +1 -1
- package/dist/api/route-utils.d.mts +10 -10
- package/dist/api/route-utils.mjs +14 -14
- package/dist/api/schemas/index.d.mts +1 -1
- package/dist/api/schemas/index.mjs +4 -4
- package/dist/{api-CBL6bNU1.mjs → api-CTf1SLmg.mjs} +19 -19
- package/dist/{api-tokens-d43xs7C1.mjs → api-tokens-CSomx-l3.mjs} +1 -1
- package/dist/{apply-D5i71kfi.mjs → apply-Bs2jXsms.mjs} +19 -19
- package/dist/astro/index.d.mts +11 -11
- package/dist/astro/index.mjs +32 -4
- package/dist/astro/middleware/auth.d.mts +9 -9
- package/dist/astro/middleware/auth.mjs +33 -8
- package/dist/astro/middleware/redirect.mjs +5 -5
- package/dist/astro/middleware/request-context.mjs +2 -2
- package/dist/astro/middleware/seed.d.mts +1 -1
- package/dist/astro/middleware/seed.mjs +1 -1
- package/dist/astro/middleware/setup.mjs +1 -1
- package/dist/astro/middleware.mjs +150 -108
- package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +6 -6
- package/dist/astro/routes/api/admin/allowed-domains/index.mjs +6 -6
- package/dist/astro/routes/api/admin/api-tokens/_id_.mjs +4 -4
- package/dist/astro/routes/api/admin/api-tokens/index.mjs +6 -6
- package/dist/astro/routes/api/admin/briefing.mjs +18 -18
- package/dist/astro/routes/api/admin/byline-fields/_slug_/usage.mjs +4 -4
- package/dist/astro/routes/api/admin/byline-fields/_slug_.mjs +9 -9
- package/dist/astro/routes/api/admin/byline-fields/index.mjs +9 -9
- package/dist/astro/routes/api/admin/byline-fields/reorder.mjs +9 -9
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +16 -16
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +16 -16
- package/dist/astro/routes/api/admin/bylines/index.mjs +16 -16
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +12 -12
- package/dist/astro/routes/api/admin/comments/_id_.mjs +5 -5
- package/dist/astro/routes/api/admin/comments/bulk.mjs +10 -10
- package/dist/astro/routes/api/admin/comments/counts.mjs +5 -5
- package/dist/astro/routes/api/admin/comments/index.mjs +10 -10
- package/dist/astro/routes/api/admin/context/_id_/history.mjs +25 -25
- package/dist/astro/routes/api/admin/context/_id_/index.mjs +25 -25
- package/dist/astro/routes/api/admin/context/_id_/review.mjs +30 -30
- package/dist/astro/routes/api/admin/context/_id_/supersede.mjs +30 -30
- package/dist/astro/routes/api/admin/context/diff.mjs +29 -29
- package/dist/astro/routes/api/admin/context/index.mjs +30 -30
- package/dist/astro/routes/api/admin/context/stale.mjs +29 -29
- package/dist/astro/routes/api/admin/hitl-requests/_id_/index.mjs +25 -25
- package/dist/astro/routes/api/admin/hitl-requests/_id_/resolve.mjs +29 -29
- package/dist/astro/routes/api/admin/hitl-requests/index.mjs +29 -29
- package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +26 -26
- package/dist/astro/routes/api/admin/hooks/exclusive/index.mjs +2 -2
- package/dist/astro/routes/api/admin/oauth-clients/_id_.mjs +6 -6
- package/dist/astro/routes/api/admin/oauth-clients/index.mjs +6 -6
- package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +60 -56
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +60 -56
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +52 -48
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +59 -55
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +59 -55
- package/dist/astro/routes/api/admin/plugins/index.mjs +52 -48
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/icon.mjs +2 -2
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +52 -48
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +59 -55
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +52 -48
- package/dist/astro/routes/api/admin/plugins/updates.mjs +52 -48
- package/dist/astro/routes/api/admin/review-requests/_id_/image.d.mts +7 -0
- package/dist/astro/routes/api/admin/review-requests/_id_/image.mjs +62 -0
- package/dist/astro/routes/api/admin/review-requests/_id_/index.mjs +24 -5
- package/dist/astro/routes/api/admin/review-requests/_id_/resolve.mjs +38 -30
- package/dist/astro/routes/api/admin/review-requests/_id_/revoke.d.mts +7 -0
- package/dist/astro/routes/api/admin/review-requests/_id_/revoke.mjs +35 -0
- package/dist/astro/routes/api/admin/review-requests/index.mjs +35 -30
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +52 -48
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/thumbnail.mjs +2 -2
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +52 -48
- package/dist/astro/routes/api/admin/users/_id_/disable.mjs +2 -2
- package/dist/astro/routes/api/admin/users/_id_/enable.mjs +1 -1
- package/dist/astro/routes/api/admin/users/_id_/index.mjs +7 -7
- package/dist/astro/routes/api/admin/users/_id_/send-recovery.mjs +2 -2
- package/dist/astro/routes/api/admin/users/index.mjs +6 -6
- package/dist/astro/routes/api/auth/dev-bypass.mjs +4 -4
- package/dist/astro/routes/api/auth/invite/accept.mjs +1 -1
- package/dist/astro/routes/api/auth/invite/complete.mjs +10 -10
- package/dist/astro/routes/api/auth/invite/index.mjs +7 -7
- package/dist/astro/routes/api/auth/invite/register-options.mjs +9 -9
- package/dist/astro/routes/api/auth/logout.mjs +2 -2
- package/dist/astro/routes/api/auth/magic-link/send.mjs +9 -9
- package/dist/astro/routes/api/auth/magic-link/verify.mjs +2 -2
- package/dist/astro/routes/api/auth/me.mjs +8 -8
- package/dist/astro/routes/api/auth/mode.mjs +1 -1
- package/dist/astro/routes/api/auth/oauth/_provider_/callback.mjs +2 -2
- package/dist/astro/routes/api/auth/oauth/_provider_.mjs +2 -2
- package/dist/astro/routes/api/auth/passkey/_id_.mjs +6 -6
- package/dist/astro/routes/api/auth/passkey/index.mjs +1 -1
- package/dist/astro/routes/api/auth/passkey/options.mjs +11 -11
- package/dist/astro/routes/api/auth/passkey/register/options.mjs +9 -9
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs +10 -10
- package/dist/astro/routes/api/auth/passkey/verify.mjs +10 -10
- package/dist/astro/routes/api/auth/setup-token/index.mjs +5 -5
- package/dist/astro/routes/api/auth/setup-token/verify.mjs +2 -2
- package/dist/astro/routes/api/auth/signup/complete.mjs +10 -10
- package/dist/astro/routes/api/auth/signup/request.mjs +9 -9
- package/dist/astro/routes/api/auth/signup/verify.mjs +1 -1
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +13 -13
- package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.mjs +12 -12
- package/dist/astro/routes/api/content/_collection_/_id_/compare.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/_id_/duplicate.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/_id_/permanent.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +15 -15
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +17 -17
- package/dist/astro/routes/api/content/_collection_/_id_/release-readiness.mjs +8 -8
- package/dist/astro/routes/api/content/_collection_/_id_/restore.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/_id_/revisions.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +17 -17
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +14 -14
- package/dist/astro/routes/api/content/_collection_/_id_/translations.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/unpublish.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/_id_.mjs +11 -11
- package/dist/astro/routes/api/content/_collection_/authors.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/index.mjs +11 -11
- package/dist/astro/routes/api/content/_collection_/trash.mjs +7 -7
- package/dist/astro/routes/api/dashboard.mjs +8 -8
- package/dist/astro/routes/api/dev/emails.mjs +2 -2
- package/dist/astro/routes/api/health.mjs +1 -1
- package/dist/astro/routes/api/import/probe.d.mts +3 -3
- package/dist/astro/routes/api/import/probe.mjs +19 -19
- package/dist/astro/routes/api/import/wordpress/analyze.mjs +8 -8
- package/dist/astro/routes/api/import/wordpress/execute.d.mts +9 -9
- package/dist/astro/routes/api/import/wordpress/execute.mjs +35 -35
- package/dist/astro/routes/api/import/wordpress/media.d.mts +9 -9
- package/dist/astro/routes/api/import/wordpress/media.mjs +12 -12
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +34 -34
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.d.mts +10 -10
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +31 -31
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.d.mts +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +22 -22
- package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts +9 -9
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +40 -40
- package/dist/astro/routes/api/integration/artifact.d.mts +7 -0
- package/dist/astro/routes/api/integration/artifact.mjs +39 -0
- package/dist/astro/routes/api/integration/dispatch.d.mts +7 -0
- package/dist/astro/routes/api/integration/dispatch.mjs +121 -0
- package/dist/astro/routes/api/integrations/_provider_.mjs +6 -6
- package/dist/astro/routes/api/integrations/index.mjs +5 -5
- package/dist/astro/routes/api/manifest.mjs +4 -4
- package/dist/astro/routes/api/mcp.mjs +130 -107
- package/dist/astro/routes/api/media/_id_/confirm.mjs +10 -10
- package/dist/astro/routes/api/media/_id_.mjs +7 -7
- package/dist/astro/routes/api/media/file/_...key_.mjs +1 -1
- package/dist/astro/routes/api/media/providers/_providerId_/_itemId_.mjs +2 -2
- package/dist/astro/routes/api/media/providers/_providerId_/index.mjs +2 -2
- package/dist/astro/routes/api/media/providers/index.mjs +2 -2
- package/dist/astro/routes/api/media/upload-url.mjs +11 -11
- package/dist/astro/routes/api/media.mjs +13 -13
- package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +30 -30
- package/dist/astro/routes/api/menus/_name_/items.mjs +30 -30
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +30 -30
- package/dist/astro/routes/api/menus/_name_/translations.mjs +30 -30
- package/dist/astro/routes/api/menus/_name_.mjs +30 -30
- package/dist/astro/routes/api/menus/index.mjs +30 -30
- package/dist/astro/routes/api/oauth/authorize.mjs +7 -7
- package/dist/astro/routes/api/oauth/device/authorize.mjs +6 -6
- package/dist/astro/routes/api/oauth/device/code.mjs +9 -9
- package/dist/astro/routes/api/oauth/device/token.mjs +8 -8
- package/dist/astro/routes/api/oauth/register.mjs +4 -4
- package/dist/astro/routes/api/oauth/token/refresh.mjs +6 -6
- package/dist/astro/routes/api/oauth/token/revoke.mjs +6 -6
- package/dist/astro/routes/api/oauth/token.mjs +6 -6
- package/dist/astro/routes/api/openapi.json.mjs +4 -4
- package/dist/astro/routes/api/plugins/_pluginId_/_...path_.mjs +4 -4
- package/dist/astro/routes/api/redirects/404s/index.mjs +10 -10
- package/dist/astro/routes/api/redirects/404s/summary.mjs +10 -10
- package/dist/astro/routes/api/redirects/_id_.mjs +31 -31
- package/dist/astro/routes/api/redirects/index.mjs +31 -31
- package/dist/astro/routes/api/revisions/_revisionId_/index.mjs +2 -2
- package/dist/astro/routes/api/revisions/_revisionId_/restore.mjs +2 -2
- package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +54 -50
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +54 -50
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +54 -50
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +54 -50
- package/dist/astro/routes/api/schema/collections/index.mjs +54 -50
- package/dist/astro/routes/api/schema/index.mjs +8 -8
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +52 -48
- package/dist/astro/routes/api/schema/orphans/index.mjs +52 -48
- package/dist/astro/routes/api/search/enable.mjs +11 -11
- package/dist/astro/routes/api/search/index.mjs +10 -10
- package/dist/astro/routes/api/search/rebuild.mjs +11 -11
- package/dist/astro/routes/api/search/stats.mjs +6 -6
- package/dist/astro/routes/api/search/suggest.mjs +10 -10
- package/dist/astro/routes/api/sections/_slug_.mjs +30 -30
- package/dist/astro/routes/api/sections/index.mjs +30 -30
- package/dist/astro/routes/api/settings/email.mjs +3 -3
- package/dist/astro/routes/api/settings/reviews.d.mts +8 -0
- package/dist/astro/routes/api/settings/reviews.mjs +57 -0
- package/dist/astro/routes/api/settings.mjs +30 -30
- package/dist/astro/routes/api/setup/admin-verify.mjs +12 -12
- package/dist/astro/routes/api/setup/admin.mjs +10 -10
- package/dist/astro/routes/api/setup/dev-bypass.mjs +25 -25
- package/dist/astro/routes/api/setup/dev-reset.mjs +1 -1
- package/dist/astro/routes/api/setup/index.mjs +27 -27
- package/dist/astro/routes/api/setup/status.mjs +3 -3
- package/dist/astro/routes/api/snapshot.mjs +6 -6
- package/dist/astro/routes/api/system/heartbeat.d.mts +7 -0
- package/dist/astro/routes/api/system/heartbeat.mjs +23 -0
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +33 -33
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +33 -33
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +33 -33
- package/dist/astro/routes/api/taxonomies/index.mjs +33 -33
- package/dist/astro/routes/api/themes/preview.mjs +4 -4
- package/dist/astro/routes/api/typegen.mjs +4 -4
- package/dist/astro/routes/api/well-known/auth.mjs +2 -2
- package/dist/astro/routes/api/well-known/oauth-authorization-server.mjs +3 -3
- package/dist/astro/routes/api/well-known/oauth-protected-resource.mjs +3 -3
- package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +29 -29
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +30 -30
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +30 -30
- package/dist/astro/routes/api/widget-areas/_name_.mjs +27 -27
- package/dist/astro/routes/api/widget-areas/index.mjs +30 -30
- package/dist/astro/routes/api/widget-components.mjs +2 -2
- package/dist/astro/routes/robots.txt.mjs +6 -6
- package/dist/astro/routes/sitemap-_collection_.xml.mjs +12 -12
- package/dist/astro/routes/sitemap.xml.mjs +11 -11
- package/dist/astro/session-driver.d.mts +1 -1
- package/dist/astro/session-driver.mjs +2 -2
- package/dist/astro/types.d.mts +12 -12
- package/dist/{audit-CLEMKs-Q.mjs → audit-CYjfxG9i.mjs} +1 -1
- package/dist/auth/providers/github.d.mts +1 -1
- package/dist/auth/providers/google.d.mts +1 -1
- package/dist/{auth-control-guard-Bg93z3D6.mjs → auth-control-guard-CITT8ZA_.mjs} +1 -1
- package/dist/{authorize-Dg75h4BN.mjs → authorize-KcI0pAfN.mjs} +1 -1
- package/dist/{briefing-32h1e5FV.mjs → briefing-BgQTljQt.mjs} +21 -12
- package/dist/{briefing-BbpmZz_4.mjs → briefing-r3hXCDQC.mjs} +1 -1
- package/dist/{bundle-Cn8X5ATg.mjs → bundle-S6zx-V4D.mjs} +2 -2
- package/dist/{byline-BfL607qj.mjs → byline-Ctil4rij.mjs} +6 -6
- package/dist/{byline-fields-CexmiaFr.d.mts → byline-fields-51ja6JDa.d.mts} +20 -19
- package/dist/{byline-fields-GoUVaGw4.mjs → byline-fields-DiCyW6eQ.mjs} +1 -1
- package/dist/{byline-fields-C4OeOttq.mjs → byline-fields-QpmruT5r.mjs} +5 -4
- package/dist/{byline-registry-CF9nobxT.mjs → byline-registry-rkr73qSE.mjs} +2 -2
- package/dist/{bylines-DpjxbnYL.mjs → bylines-BcuBpzVi.mjs} +3 -3
- package/dist/{bylines-Cy5KBNpg.mjs → bylines-v_ZUQnR-.mjs} +5 -5
- package/dist/{cache-Bwds591_.mjs → cache-V2BCplaY.mjs} +2 -2
- package/dist/{chunks-0oflHOGr.mjs → chunks-CnuL55JE.mjs} +1 -1
- package/dist/cli/index.mjs +202 -32
- package/dist/cli/plugin-kit.d.mts +9 -9
- package/dist/cli/plugin-kit.mjs +2 -2
- package/dist/client/external-auth-headers.d.mts +1 -1
- package/dist/client/index.d.mts +34 -11
- package/dist/client/index.mjs +24 -20
- package/dist/{client-factory-Dr5FUjPd.mjs → client-factory-C-y9VZDX.mjs} +1 -1
- package/dist/{comment-CLb7ynlP.mjs → comment-_nvJSS-A.mjs} +1 -1
- package/dist/{comment-reaction-HMk3Ugvo.mjs → comment-reaction-DhVgJ17S.mjs} +1 -1
- package/dist/{comments-D5I0CLKB.mjs → comments-D4mIDjvA.mjs} +1 -1
- package/dist/{content-DW-BRHF4.mjs → content-CVCrcuvD.mjs} +2 -2
- package/dist/{content-refresh-iarREtUO.mjs → content-refresh-QvBIyb_g.mjs} +6 -6
- package/dist/{context-DJ1J727I.mjs → context-JjKucxBm.mjs} +2 -2
- package/dist/{context-D8yUDM9d.mjs → context-MftkHbWx.mjs} +10 -10
- package/dist/{context-route-helpers-Bd8p_JI2.mjs → context-route-helpers-e1APrqSm.mjs} +2 -2
- package/dist/{dashboard-CdsvXt0T.mjs → dashboard-ZJ7sMcBI.mjs} +4 -4
- package/dist/db/index.d.mts +3 -3
- package/dist/db/index.mjs +1 -1
- package/dist/db/libsql-http.d.mts +1 -1
- package/dist/db/libsql-http.mjs +1 -1
- package/dist/db/libsql.d.mts +1 -1
- package/dist/db/libsql.mjs +1 -1
- package/dist/db/postgres.d.mts +1 -1
- package/dist/db/sqlite.d.mts +1 -1
- package/dist/{device-flow-BED7L-O7.mjs → device-flow-eOcL5m0Q.mjs} +5 -5
- package/dist/{discovery-yoK6-UaX.mjs → discovery-CJkuHGhZ.mjs} +3 -3
- package/dist/{enrich-Uw_OA9Ve.mjs → enrich-KErvJOuI.mjs} +1 -1
- package/dist/evidence-6IUv9ML3.mjs +251 -0
- package/dist/{field-defs-cache-Cf3F5lHw.mjs → field-defs-cache-CwrIyZFT.mjs} +4 -4
- package/dist/{service-BB1n90wh.mjs → forgeway-account-lYJ8iX3G.mjs} +1 -103
- package/dist/{fts-manager-Bv4U_Qw0.mjs → fts-manager-DX7ZkrCa.mjs} +1 -1
- package/dist/{hitl-requests-DmA_ViQf.mjs → hitl-requests-CmYVunm-.mjs} +2 -2
- package/dist/{hitl-route-helpers-DRdeq7Ld.mjs → hitl-route-helpers-CRm537zS.mjs} +5 -5
- package/dist/{import-iQ3y2-4Q.mjs → import-DqRAgsKr.mjs} +7 -7
- package/dist/{index-DXcPysP3.d.mts → index-Co7xtjkd.d.mts} +3 -3
- package/dist/index.d.mts +15 -15
- package/dist/index.mjs +86 -83
- package/dist/{integration-credentials-CTrvXgEc.mjs → integration-credentials-qudN6yRr.mjs} +2 -2
- package/dist/{jsonld-BM0JqNLm.d.mts → jsonld-BpvnSp2m.d.mts} +2 -2
- package/dist/{load-dOITHB_Z.mjs → load-fCOciq0Q.mjs} +1 -1
- package/dist/{loader-BFsHwbxI.mjs → loader-BDje8ME2.mjs} +2 -2
- package/dist/{manifest-schema-owbEUmv1.mjs → manifest-schema-CfKD0thC.mjs} +1 -1
- package/dist/{mcp-reviewed-executor-BUEO0Osb.mjs → mcp-reviewed-executor-DmhM3Cy6.mjs} +6 -6
- package/dist/media/image-endpoint.mjs +1 -1
- package/dist/media/index.d.mts +1 -1
- package/dist/media/index.mjs +2 -2
- package/dist/media/local-runtime.d.mts +11 -11
- package/dist/media/local-runtime.mjs +2 -2
- package/dist/{media-allowlist-BdbIzYO3.mjs → media-allowlist-DaG6lNoy.mjs} +1 -1
- package/dist/{media-Dnpc2hW8.mjs → media-dvRjj4po.mjs} +1 -1
- package/dist/{menus-BRMcey1A.mjs → menus-CZbz5L_V.mjs} +6 -6
- package/dist/{menus-F1fYny2w.mjs → menus-CpuR4Qkm.mjs} +2 -2
- package/dist/{oauth-authorization-TG2Kxgur.mjs → oauth-authorization-Jf5e3azH.mjs} +5 -5
- package/dist/{oauth-clients-DLJMG4h7.mjs → oauth-clients-tovQ4D4h.mjs} +2 -2
- package/dist/object-cache/memory.d.mts +1 -1
- package/dist/page/index.d.mts +10 -10
- package/dist/page/index.mjs +1 -1
- package/dist/{parse-CJC9DGe9.mjs → parse-IsGn-5lt.mjs} +1 -1
- package/dist/plugin-utils.d.mts +9 -9
- package/dist/plugins/adapt-sandbox-entry.d.mts +9 -9
- package/dist/plugins/adapt-sandbox-entry.mjs +1 -1
- package/dist/{plugins-Cz4PAYJf.mjs → plugins-DXyLI3Hb.mjs} +5 -5
- package/dist/policy-DKdNMv8y.mjs +124 -0
- package/dist/{preview-CjL_29aE.mjs → preview-BXmS1SXL.mjs} +2 -2
- package/dist/{provider-loader-CGoW_-Bs.d.mts → provider-loader-DDq7R_RN.d.mts} +1 -1
- package/dist/{public-url-CbmE-u2t.d.mts → public-url-BQ9vf0AS.d.mts} +2 -2
- package/dist/{public-url-CPw0dhAQ.d.mts → public-url-Ci7UbC0W.d.mts} +1 -1
- package/dist/{publication-authorization-BQpdXnha.mjs → publication-authorization-C-vYPGD8.mjs} +73 -11
- package/dist/{query-qGr7GGfF.mjs → query-CrW2yI6G.mjs} +13 -13
- package/dist/{query-DQOB6OEA.mjs → query-DcB9uGTW.mjs} +3 -3
- package/dist/{rate-limit-JhnJUEno.mjs → rate-limit-DEkoxTsP.mjs} +2 -2
- package/dist/{redirect-DtjSpGWp.mjs → redirect-DG-o0CKV.mjs} +2 -2
- package/dist/{redirects-CY6GCHPX.mjs → redirects-Bjp4iKJU.mjs} +4 -4
- package/dist/{redirects-C9pg6Dcg.mjs → redirects-N8gmWhVM.mjs} +2 -2
- package/dist/{registry-Czz6avGn.mjs → registry-D-IV_h50.mjs} +7 -7
- package/dist/request-context.d.mts +2 -0
- package/dist/{request-meta-DnZm9Kbu.mjs → request-meta-BW0the1R.mjs} +1 -1
- package/dist/{review-payload-BuLgXTY6.mjs → review-payload-f1L4lzQg.mjs} +1 -1
- package/dist/{review-requests-lVwh6U-G.mjs → review-requests-BTKfeWlS.mjs} +17 -48
- package/dist/{review-requests-D-lhld0A.mjs → review-requests-DICrYH2-.mjs} +70 -7
- package/dist/{review-route-helpers-3MNvw1AH.mjs → review-route-helpers-DaZBBps8.mjs} +2 -2
- package/dist/revocation-CkTOhdlw.mjs +42 -0
- package/dist/{runner-CPugEIU8.mjs → runner-DJiRFyLI.mjs} +545 -475
- package/dist/{runner-CvwzNJHj.d.mts → runner-Dye73myO.d.mts} +1 -1
- package/dist/runs-DEujUDOj.mjs +1234 -0
- package/dist/runtime.d.mts +10 -10
- package/dist/runtime.mjs +3 -3
- package/dist/schema-IjuRxkqq.mjs +8 -0
- package/dist/{search-D-wOjRiP.mjs → search-DxUKN9Zz.mjs} +3 -3
- package/dist/{secrets-MqvM60s_.mjs → secrets-AdCrGg1c.mjs} +1 -1
- package/dist/{sections-jAOXJcIV.mjs → sections-BPFOEMK6.mjs} +2 -2
- package/dist/seed/index.d.mts +2 -2
- package/dist/seed/index.mjs +19 -19
- package/dist/seo/index.d.mts +3 -3
- package/dist/seo/index.mjs +7 -7
- package/dist/{seo-Cbj0_Opd.mjs → seo-DWHdo5aW.mjs} +1 -1
- package/dist/{seo-B0n_oZM5.mjs → seo-GfovzqpU.mjs} +1 -1
- package/dist/{service-TRFrPW8z.mjs → service-BrNKVCjC.mjs} +2 -2
- package/dist/service-DbgjHWyW.mjs +18 -0
- package/dist/service-DeX1PRNt.mjs +121 -0
- package/dist/{settings-CYt46_A5.mjs → settings-BKEHw6Bu.mjs} +2 -2
- package/dist/{settings-Bx3wzDK_.mjs → settings-CAsQLi0N.mjs} +4 -4
- package/dist/{site-activity-MiKT38qx.mjs → site-activity-7oezuHXK.mjs} +1 -1
- package/dist/{site-context-CqNMaJ5s.mjs → site-context-CA7rbxux.mjs} +15 -15
- package/dist/{ssrf-D00lPvtF.mjs → ssrf-C7tTSD1r.mjs} +13 -2
- package/dist/storage/local.d.mts +1 -1
- package/dist/storage/local.mjs +1 -1
- package/dist/storage/s3.d.mts +1 -1
- package/dist/storage/s3.mjs +1 -1
- package/dist/{store-BtCoeap4.mjs → store-c4qx3gVh.mjs} +1 -1
- package/dist/submission-C47cHBIg.mjs +67 -0
- package/dist/{taxonomies-iZGA_8zf.mjs → taxonomies-93DV-1QT.mjs} +6 -6
- package/dist/{taxonomies-BMArg_t1.mjs → taxonomies-ALDiRQ84.mjs} +3 -3
- package/dist/{taxonomy-DKG0n_q8.mjs → taxonomy-BOBTJ_aE.mjs} +2 -2
- package/dist/{types-m37xNtUj.d.mts → types-6KmeXInJ.d.mts} +1 -1
- package/dist/{types-B7Ifhtyz.d.mts → types-BRCUO8NR.d.mts} +31 -2
- package/dist/{types-DXwmu5rT.mjs → types-BpSTdH1H.mjs} +1 -1
- package/dist/{types-DB9weIZo.d.mts → types-CfpX1og5.d.mts} +57 -45
- package/dist/ui/server-runtime.d.mts +13 -13
- package/dist/ui/server-runtime.mjs +20 -20
- package/dist/{user-D-dGG5Om.mjs → user-D0NJ7gYf.mjs} +2 -2
- package/dist/{utils-iGiCys50.mjs → utils-BK2efsHv.mjs} +1 -1
- package/dist/{validate-AzYhwCD8.mjs → validate-C9g9iX3q.mjs} +2 -2
- package/dist/{validate-BRq01mTo.d.mts → validate-CDWVODvc.d.mts} +3 -3
- package/dist/version-CJqc1mwj.mjs +6 -0
- package/dist/{widgets-B18H_Xgl.mjs → widgets-Cm5Qx2Np.mjs} +3 -3
- package/dist/{wordpress-slugs-BYW2B_5x.mjs → wordpress-slugs-WdPZaVXf.mjs} +1 -1
- package/dist/worker-Bhuu7eqS.mjs +224 -0
- package/dist/{zod-generator-3jqAzlTK.mjs → zod-generator-DS5oZNaL.mjs} +2 -2
- package/licenses/forgeway.txt +201 -0
- package/package.json +6 -3
- package/LICENSE +0 -9
- package/dist/schema-DxDfwabF.mjs +0 -8
- package/dist/version-BIlVseq9.mjs +0 -6
- /package/dist/{actor-BraTCiOp.mjs → actor-DrJJsvy6.mjs} +0 -0
- /package/dist/{adapters-C-iHnQYy.d.mts → adapters-DHt3f2lu.d.mts} +0 -0
- /package/dist/{api-tokens-CZ472rzA.mjs → api-tokens-CmT83Bgj.mjs} +0 -0
- /package/dist/{challenge-store-Dae5cL-_.mjs → challenge-store-CDKfye2r.mjs} +0 -0
- /package/dist/{components-CINP4h-l.mjs → components-DAq_4iPX.mjs} +0 -0
- /package/dist/{context-types-fEeyXC1D.mjs → context-types-CPWAJRs5.mjs} +0 -0
- /package/dist/{cron-DIsnItPn.mjs → cron-mGVPQ5e6.mjs} +0 -0
- /package/dist/{default-D8jeKsT3.mjs → default-BeIzUa1e.mjs} +0 -0
- /package/dist/{email-console-DRb6jkoC.mjs → email-console-Bfi_exVg.mjs} +0 -0
- /package/dist/{error-BPA9T0AW.mjs → error-DLg1H2LT.mjs} +0 -0
- /package/dist/{escape-DgNqnHuj.mjs → escape-C6lkys0j.mjs} +0 -0
- /package/dist/{experimental-workflows-DOo7QDRn.mjs → experimental-workflows-B9x8delL.mjs} +0 -0
- /package/dist/{hash-CEky-IDp.mjs → hash-jhbF98tT.mjs} +0 -0
- /package/dist/{libsql-dialect-DMqpBfJI.mjs → libsql-dialect-CANq6UNI.mjs} +0 -0
- /package/dist/{media-url-BhbJfG3Y.mjs → media-url-CL3NzgLh.mjs} +0 -0
- /package/dist/{mime-Bg7yUeHW.mjs → mime-CDTtL7jE.mjs} +0 -0
- /package/dist/{mode-fm1eCVhz.mjs → mode-DJeacFCZ.mjs} +0 -0
- /package/dist/{normalize-BY2gOygP.mjs → normalize-Ev3FiBMx.mjs} +0 -0
- /package/dist/{oauth-state-store-Dbj-J0K5.mjs → oauth-state-store-Do1a_o3H.mjs} +0 -0
- /package/dist/{oauth-user-lookup-D2NAYPjU.mjs → oauth-user-lookup-B451pZmd.mjs} +0 -0
- /package/dist/{output-A4ZfzzA0.mjs → output-8j9oltTf.mjs} +0 -0
- /package/dist/{parser-C3ux7a3Y.mjs → parser-C9rzPuSZ.mjs} +0 -0
- /package/dist/{passkey-config-DUc1iP_-.mjs → passkey-config-CRN44T04.mjs} +0 -0
- /package/dist/{patterns-CP9gkiCE.mjs → patterns-3XE9bU4r.mjs} +0 -0
- /package/dist/{placeholder-0cGpMonY.d.mts → placeholder-D03pGvqM.d.mts} +0 -0
- /package/dist/{portable-text-Cu4n_8zI.d.mts → portable-text-BdRm4uZq.d.mts} +0 -0
- /package/dist/{portable-text-U85hOafW.mjs → portable-text-tIk9_uz_.mjs} +0 -0
- /package/dist/{process-cache-DsMwJ3LM.mjs → process-cache-B-L-A9zg.mjs} +0 -0
- /package/dist/{provider-loader-BPHG3BR5.mjs → provider-loader-C4i82ll1.mjs} +0 -0
- /package/dist/{public-url-CmBKcpsJ.mjs → public-url-BVIjzMo3.mjs} +0 -0
- /package/dist/{public-url-DjWfilkD.mjs → public-url-oudwI7K0.mjs} +0 -0
- /package/dist/{redirect-D_bb_Cc3.mjs → redirect-Dp5u-8dH.mjs} +0 -0
- /package/dist/{request-cache-DoT2mKBT.mjs → request-cache-BruBnFAR.mjs} +0 -0
- /package/dist/{resolve-BDWXnk_V.mjs → resolve-pZ4NQM-X.mjs} +0 -0
- /package/dist/{seo-contributions-DzusM9lG.mjs → seo-contributions-BAtRDXEQ.mjs} +0 -0
- /package/dist/{session-user-BT8vRgt3.mjs → session-user-D8WwGEPH.mjs} +0 -0
- /package/dist/{setup-complete-BRbTCbUF.mjs → setup-complete-CHCYS5KV.mjs} +0 -0
- /package/dist/{setup-nonce-220YhE1R.mjs → setup-nonce-D-CEYlw7.mjs} +0 -0
- /package/dist/{sidecar-client-SDgPreXV.mjs → sidecar-client-Bw2C0XTf.mjs} +0 -0
- /package/dist/{site-url-AGgA46Lw.mjs → site-url-DoZf_jVj.mjs} +0 -0
- /package/dist/{stable-hash-_A3p1ln2.mjs → stable-hash-DF7R5eN8.mjs} +0 -0
- /package/dist/{status-BdZSXIP_.mjs → status-Bba6RbkS.mjs} +0 -0
- /package/dist/{tokens-ShJZm_QS.mjs → tokens-c-qxNqzC.mjs} +0 -0
- /package/dist/{transaction-L0tzAOfM.mjs → transaction-BGQgnwUi.mjs} +0 -0
- /package/dist/{transport-DtrY0-hI.mjs → transport-BddGhTAI.mjs} +0 -0
- /package/dist/{transport-SoRbXDM4.d.mts → transport-ktLL9r2O.d.mts} +0 -0
- /package/dist/{trusted-proxy-9b2fSXK2.mjs → trusted-proxy-CdEl6g6B.mjs} +0 -0
- /package/dist/{types-ZdWRfUsC.d.mts → types--3oJQ0hs.d.mts} +0 -0
- /package/dist/{types-dgGPmsl_.mjs → types-BQZFeZjd.mjs} +0 -0
- /package/dist/{types-B-nDjnzA.mjs → types-BbkkkAb6.mjs} +0 -0
- /package/dist/{types-D1l9cCKM.mjs → types-C0DPvhR5.mjs} +0 -0
- /package/dist/{types-Cd_2Jeqp.d.mts → types-CKIt_jmM.d.mts} +0 -0
- /package/dist/{types-D8iukuuI.d.mts → types-CLMOusxP.d.mts} +0 -0
- /package/dist/{types-BdsNqnHA.d.mts → types-CPaVj_GC.d.mts} +0 -0
- /package/dist/{types-B-KSspMO.d.mts → types-CU3Wn2HC.d.mts} +0 -0
- /package/dist/{url-CmjWycVK.mjs → url-Dumsft7G.mjs} +0 -0
|
@@ -1,45 +1,53 @@
|
|
|
1
1
|
import "../../../dialect-helpers-fk43GbDb.mjs";
|
|
2
2
|
import "../../../base64-F8-DUraK.mjs";
|
|
3
|
-
import "../../../types-
|
|
4
|
-
import "../../../loader-
|
|
3
|
+
import "../../../types-BpSTdH1H.mjs";
|
|
4
|
+
import "../../../loader-BDje8ME2.mjs";
|
|
5
5
|
import "../../../object-cache-D51qOseS.mjs";
|
|
6
6
|
import "../../../revision-De7OmYVD.mjs";
|
|
7
|
-
import "../../../content-
|
|
8
|
-
import "../../../media-
|
|
7
|
+
import "../../../content-CVCrcuvD.mjs";
|
|
8
|
+
import "../../../media-dvRjj4po.mjs";
|
|
9
9
|
import "../../../options-1dBRkoCl.mjs";
|
|
10
|
-
import "../../../site-activity-
|
|
11
|
-
import {
|
|
12
|
-
import { a as HITL_REQUEST_STATUSES, i as HITL_REQUEST_PRIORITIES, o as HitlRequestRepository, t as PublicationAuthorizationError } from "../../../publication-authorization-
|
|
13
|
-
import { C as ASSIGNMENT_STATUSES, S as ASSIGNMENT_PRIORITIES, _ as toPublicContextDiff, a as EntityResolver, b as HitlRequestService, d as SettingsHitlPayloadBuilder, g as RiskPolicyEvaluator, h as SchemaHitlPayloadBuilder, i as ActorExpertiseService, n as AssignmentService, r as HandoffSnapshotStore, t as WorkflowHitlCoordinator, v as toPublicContextEntry, x as ASSIGNMENT_ACTOR_TYPES, y as toPublicContextEntryPage } from "../../../site-context-
|
|
14
|
-
import "../../../request-cache-
|
|
15
|
-
import {
|
|
16
|
-
import { t as SITE_CONTEXT_TYPES } from "../../../context-types-
|
|
17
|
-
import "../../../content-refresh-
|
|
18
|
-
import "../../../fts-manager-
|
|
10
|
+
import "../../../site-activity-7oezuHXK.mjs";
|
|
11
|
+
import { n as ReviewRequestRepository } from "../../../review-requests-DICrYH2-.mjs";
|
|
12
|
+
import { a as HITL_REQUEST_STATUSES, i as HITL_REQUEST_PRIORITIES, o as HitlRequestRepository, t as PublicationAuthorizationError } from "../../../publication-authorization-C-vYPGD8.mjs";
|
|
13
|
+
import { C as ASSIGNMENT_STATUSES, S as ASSIGNMENT_PRIORITIES, _ as toPublicContextDiff, a as EntityResolver, b as HitlRequestService, d as SettingsHitlPayloadBuilder, g as RiskPolicyEvaluator, h as SchemaHitlPayloadBuilder, i as ActorExpertiseService, n as AssignmentService, r as HandoffSnapshotStore, t as WorkflowHitlCoordinator, v as toPublicContextEntry, x as ASSIGNMENT_ACTOR_TYPES, y as toPublicContextEntryPage } from "../../../site-context-CA7rbxux.mjs";
|
|
14
|
+
import "../../../request-cache-BruBnFAR.mjs";
|
|
15
|
+
import { i as parseSiteBriefingScope, o as ContextRepository, r as formatSiteBriefingText, t as SiteBriefingAssembler } from "../../../briefing-BgQTljQt.mjs";
|
|
16
|
+
import { t as SITE_CONTEXT_TYPES } from "../../../context-types-CPWAJRs5.mjs";
|
|
17
|
+
import "../../../content-refresh-QvBIyb_g.mjs";
|
|
18
|
+
import "../../../fts-manager-DX7ZkrCa.mjs";
|
|
19
19
|
import "../../../public-discovery-CyDzK1-S.mjs";
|
|
20
|
-
import "../../../registry-
|
|
21
|
-
import "../../../settings-
|
|
22
|
-
import { t as
|
|
23
|
-
import
|
|
24
|
-
import "../../../
|
|
25
|
-
import "../../../
|
|
26
|
-
import "../../../
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import "../../../
|
|
32
|
-
import "../../../
|
|
20
|
+
import "../../../registry-D-IV_h50.mjs";
|
|
21
|
+
import "../../../settings-CAsQLi0N.mjs";
|
|
22
|
+
import { n as DinewayToolsService, t as DinewayToolsError } from "../../../service-DeX1PRNt.mjs";
|
|
23
|
+
import "../../../runs-DEujUDOj.mjs";
|
|
24
|
+
import { t as DinewaySecretsError } from "../../../secrets-AdCrGg1c.mjs";
|
|
25
|
+
import "../../../ssrf-C7tTSD1r.mjs";
|
|
26
|
+
import "../../../evidence-6IUv9ML3.mjs";
|
|
27
|
+
import { n as submitAutomatedReview } from "../../../submission-C47cHBIg.mjs";
|
|
28
|
+
import { n as VERSION } from "../../../version-CJqc1mwj.mjs";
|
|
29
|
+
import "../../../query-DcB9uGTW.mjs";
|
|
30
|
+
import "../../../zod-generator-DS5oZNaL.mjs";
|
|
31
|
+
import "../../../schema-IjuRxkqq.mjs";
|
|
32
|
+
import { t as IntegrationCredentialStore } from "../../../store-c4qx3gVh.mjs";
|
|
33
|
+
import { t as apiError } from "../../../error-DLg1H2LT.mjs";
|
|
34
|
+
import { Dn as contentBylineInputSchema, P as settingsUpdateBody, Tn as bylineUpdateBody, fn as contentSeoInput, xn as bylineCreateBody } from "../../../redirects-N8gmWhVM.mjs";
|
|
35
|
+
import "../../../byline-fields-QpmruT5r.mjs";
|
|
36
|
+
import "../../../status-Bba6RbkS.mjs";
|
|
33
37
|
import "../../../api/schemas/index.mjs";
|
|
34
|
-
import { i as hasScope } from "../../../api-tokens-
|
|
35
|
-
import { r as registerPluginMcpRegistry, t as createReviewedPluginMcpCommandExecutor } from "../../../mcp-reviewed-executor-
|
|
36
|
-
import { n as resolveActorIdentity } from "../../../actor-
|
|
37
|
-
import "../../../activity-
|
|
38
|
-
import { d as logSchemaActivity, o as logContentActivity, p as logSiteActivitySafely, r as contentMcpToolSource, t as activityChangedKeys, x as schemaMcpToolSource } from "../../../activity-events-
|
|
39
|
-
import "../../../utils-
|
|
40
|
-
import "../../../search-
|
|
41
|
-
import {
|
|
42
|
-
import
|
|
38
|
+
import { i as hasScope } from "../../../api-tokens-CmT83Bgj.mjs";
|
|
39
|
+
import { r as registerPluginMcpRegistry, t as createReviewedPluginMcpCommandExecutor } from "../../../mcp-reviewed-executor-DmhM3Cy6.mjs";
|
|
40
|
+
import { n as resolveActorIdentity } from "../../../actor-DrJJsvy6.mjs";
|
|
41
|
+
import "../../../activity-CfryM8jO.mjs";
|
|
42
|
+
import { d as logSchemaActivity, o as logContentActivity, p as logSiteActivitySafely, r as contentMcpToolSource, t as activityChangedKeys, x as schemaMcpToolSource } from "../../../activity-events-BVo9rMUz.mjs";
|
|
43
|
+
import "../../../utils-BK2efsHv.mjs";
|
|
44
|
+
import "../../../search-DxUKN9Zz.mjs";
|
|
45
|
+
import { n as prepareReviewerApproval } from "../../../worker-Bhuu7eqS.mjs";
|
|
46
|
+
import "../../../policy-DKdNMv8y.mjs";
|
|
47
|
+
import { a as createForgewayAccountClient, c as normalizeForgewayApiUrl, d as refreshForgewayAccountCredentials, u as readStoredForgewayAccount } from "../../../forgeway-account-lYJ8iX3G.mjs";
|
|
48
|
+
import { n as convertDataForWrite, t as convertDataForRead } from "../../../portable-text-tIk9_uz_.mjs";
|
|
49
|
+
import { t as createSiteIntegrationService } from "../../../service-DbgjHWyW.mjs";
|
|
50
|
+
import { t as revokeReview } from "../../../revocation-CkTOhdlw.mjs";
|
|
43
51
|
import { z } from "zod";
|
|
44
52
|
import { Role, canActOnOwn, hasPermission } from "@dineway-ai/auth";
|
|
45
53
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
@@ -103,7 +111,8 @@ const endpointInputSchema = z.object({
|
|
|
103
111
|
header_params: jsonObjectSchema.optional(),
|
|
104
112
|
body_type: z.string().trim().min(1).optional()
|
|
105
113
|
}).strict();
|
|
106
|
-
async function serviceOrThrow(options) {
|
|
114
|
+
async function serviceOrThrow(options, extra, mode = "site_byok") {
|
|
115
|
+
if (mode === "site_byok" && options.resolveSiteService) return options.resolveSiteService(extra);
|
|
107
116
|
const service = options.service ?? await options.resolveService?.();
|
|
108
117
|
if (!service) throw new DinewayToolsError("Dineway Tools is unavailable in this runtime.", "TOOLS_UNAVAILABLE");
|
|
109
118
|
return service;
|
|
@@ -130,12 +139,6 @@ function errorResult$1(error) {
|
|
|
130
139
|
isError: true
|
|
131
140
|
};
|
|
132
141
|
}
|
|
133
|
-
async function credentialFor(provider, billingMode, extra, options) {
|
|
134
|
-
if (billingMode === "hosted") return void 0;
|
|
135
|
-
const credential = await options.resolveCredential(provider, options.getContext(extra));
|
|
136
|
-
if (!credential) throw new DinewayToolsError(`No site BYOK credential is configured for provider ${provider}. Configure it in Settings > Integrations or explicitly select hosted billing.`, "SITE_BYOK_CREDENTIAL_MISSING");
|
|
137
|
-
return credential;
|
|
138
|
-
}
|
|
139
142
|
function mapInput(input) {
|
|
140
143
|
if (!input) return {};
|
|
141
144
|
return {
|
|
@@ -149,8 +152,9 @@ function mapInput(input) {
|
|
|
149
152
|
function registerDinewayTools(server, options) {
|
|
150
153
|
server.registerTool("tools_discover", {
|
|
151
154
|
title: "Discover Dineway Tools",
|
|
152
|
-
description: "Search
|
|
155
|
+
description: "Search the site Integration catalog by text relevance, or select hosted Forgeway discovery. Use inspect before run.",
|
|
153
156
|
inputSchema: z.object({
|
|
157
|
+
billing_mode: billingModeSchema,
|
|
154
158
|
query: z.string().trim().min(1).max(500),
|
|
155
159
|
limit: z.number().int().min(1).max(100).default(10),
|
|
156
160
|
min_score: z.number().min(0).max(1).optional()
|
|
@@ -159,7 +163,7 @@ function registerDinewayTools(server, options) {
|
|
|
159
163
|
}, async (args, extra) => {
|
|
160
164
|
options.authorizeRead(extra);
|
|
161
165
|
try {
|
|
162
|
-
return result(await (await serviceOrThrow(options)).discover({
|
|
166
|
+
return result(await (await serviceOrThrow(options, extra, args.billing_mode)).discover({
|
|
163
167
|
query: args.query,
|
|
164
168
|
limit: args.limit,
|
|
165
169
|
minScore: args.min_score
|
|
@@ -172,6 +176,7 @@ function registerDinewayTools(server, options) {
|
|
|
172
176
|
title: "Inspect a Dineway Tool",
|
|
173
177
|
description: "Inspect one integration endpoint's input schema, output shape, risk policy, and credit price before running it.",
|
|
174
178
|
inputSchema: z.object({
|
|
179
|
+
billing_mode: billingModeSchema,
|
|
175
180
|
provider: z.string().trim().min(1).max(100),
|
|
176
181
|
endpoint: z.string().trim().min(1).max(500)
|
|
177
182
|
}),
|
|
@@ -179,7 +184,10 @@ function registerDinewayTools(server, options) {
|
|
|
179
184
|
}, async (args, extra) => {
|
|
180
185
|
options.authorizeRead(extra);
|
|
181
186
|
try {
|
|
182
|
-
return result(await (await serviceOrThrow(options)).inspect(
|
|
187
|
+
return result(await (await serviceOrThrow(options, extra, args.billing_mode)).inspect({
|
|
188
|
+
provider: args.provider,
|
|
189
|
+
endpoint: args.endpoint
|
|
190
|
+
}));
|
|
183
191
|
} catch (error) {
|
|
184
192
|
return errorResult$1(error);
|
|
185
193
|
}
|
|
@@ -201,12 +209,10 @@ function registerDinewayTools(server, options) {
|
|
|
201
209
|
options.authorizeRun(extra);
|
|
202
210
|
try {
|
|
203
211
|
if (args.confirm_side_effect && !args.idempotency_key) throw new DinewayToolsError("An idempotency key is required when confirming an endpoint with side effects.", "IDEMPOTENCY_KEY_REQUIRED");
|
|
204
|
-
|
|
205
|
-
return result(await (await serviceOrThrow(options)).run({
|
|
212
|
+
return result(await (await serviceOrThrow(options, extra, args.billing_mode)).run({
|
|
206
213
|
provider: args.provider,
|
|
207
214
|
endpoint: args.endpoint,
|
|
208
215
|
input: mapInput(args.input),
|
|
209
|
-
credential,
|
|
210
216
|
forceRefresh: args.force_refresh,
|
|
211
217
|
confirmSideEffect: args.confirm_side_effect
|
|
212
218
|
}, { idempotencyKey: args.idempotency_key }));
|
|
@@ -217,12 +223,15 @@ function registerDinewayTools(server, options) {
|
|
|
217
223
|
server.registerTool("tools_get_run", {
|
|
218
224
|
title: "Get a Dineway Tools Run",
|
|
219
225
|
description: "Read the current state and result of one integration run.",
|
|
220
|
-
inputSchema: z.object({
|
|
226
|
+
inputSchema: z.object({
|
|
227
|
+
run_id: z.string().uuid(),
|
|
228
|
+
billing_mode: billingModeSchema
|
|
229
|
+
}),
|
|
221
230
|
annotations: readAnnotations
|
|
222
231
|
}, async (args, extra) => {
|
|
223
232
|
options.authorizeRead(extra);
|
|
224
233
|
try {
|
|
225
|
-
return result(await (await serviceOrThrow(options)).getRun(args.run_id));
|
|
234
|
+
return result(await (await serviceOrThrow(options, extra, args.billing_mode)).getRun(args.run_id));
|
|
226
235
|
} catch (error) {
|
|
227
236
|
return errorResult$1(error);
|
|
228
237
|
}
|
|
@@ -231,6 +240,7 @@ function registerDinewayTools(server, options) {
|
|
|
231
240
|
title: "List Dineway Tools Runs",
|
|
232
241
|
description: "List recent integration runs with cursor pagination.",
|
|
233
242
|
inputSchema: z.object({
|
|
243
|
+
billing_mode: billingModeSchema,
|
|
234
244
|
limit: z.number().int().min(1).max(100).default(20),
|
|
235
245
|
cursor: z.string().trim().min(1).optional()
|
|
236
246
|
}),
|
|
@@ -238,7 +248,10 @@ function registerDinewayTools(server, options) {
|
|
|
238
248
|
}, async (args, extra) => {
|
|
239
249
|
options.authorizeRead(extra);
|
|
240
250
|
try {
|
|
241
|
-
return result(await (await serviceOrThrow(options)).listRuns(
|
|
251
|
+
return result(await (await serviceOrThrow(options, extra, args.billing_mode)).listRuns({
|
|
252
|
+
limit: args.limit,
|
|
253
|
+
cursor: args.cursor
|
|
254
|
+
}));
|
|
242
255
|
} catch (error) {
|
|
243
256
|
return errorResult$1(error);
|
|
244
257
|
}
|
|
@@ -254,9 +267,7 @@ function registerDinewayTools(server, options) {
|
|
|
254
267
|
}, async (args, extra) => {
|
|
255
268
|
options.authorizeRun(extra);
|
|
256
269
|
try {
|
|
257
|
-
|
|
258
|
-
const credential = await credentialFor((await service.getRun(args.run_id)).provider, args.billing_mode, extra, options);
|
|
259
|
-
return result(await service.stopRun(args.run_id, { credential }));
|
|
270
|
+
return result(await (await serviceOrThrow(options, extra, args.billing_mode)).stopRun(args.run_id));
|
|
260
271
|
} catch (error) {
|
|
261
272
|
return errorResult$1(error);
|
|
262
273
|
}
|
|
@@ -334,7 +345,7 @@ function getDineway(extra) {
|
|
|
334
345
|
}
|
|
335
346
|
async function getCollectionFields(dineway, collection) {
|
|
336
347
|
try {
|
|
337
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
348
|
+
const { SchemaRegistry } = await import("../../../schema-IjuRxkqq.mjs").then((n) => n.t);
|
|
338
349
|
return (await new SchemaRegistry(dineway.db).getCollectionWithFields(collection))?.fields ?? null;
|
|
339
350
|
} catch {
|
|
340
351
|
return null;
|
|
@@ -351,7 +362,7 @@ async function applyReadMarkdown(dineway, collection, items) {
|
|
|
351
362
|
for (const item of items) if (item.data && typeof item.data === "object") item.data = convertDataForRead(item.data, fields, false);
|
|
352
363
|
}
|
|
353
364
|
async function invalidateBylines() {
|
|
354
|
-
const { invalidateBylineCache } = await import("../../../bylines-
|
|
365
|
+
const { invalidateBylineCache } = await import("../../../bylines-v_ZUQnR-.mjs").then((n) => n.t);
|
|
355
366
|
invalidateBylineCache();
|
|
356
367
|
}
|
|
357
368
|
function canReadDrafts(extra) {
|
|
@@ -740,6 +751,15 @@ function createMcpServer(options = {}) {
|
|
|
740
751
|
registerDinewayTools(server, {
|
|
741
752
|
service: options.dinewayToolsService,
|
|
742
753
|
resolveService: options.resolveDinewayToolsService,
|
|
754
|
+
resolveSiteService: async (extra) => {
|
|
755
|
+
const payload = getExtra(extra);
|
|
756
|
+
const actor = resolveActorIdentity(actorLocals(payload));
|
|
757
|
+
return options.dinewayToolsService ?? createSiteIntegrationService({
|
|
758
|
+
db: payload.dineway.db,
|
|
759
|
+
storage: payload.dineway.storage ?? void 0,
|
|
760
|
+
credentials: new IntegrationCredentialStore(payload.dineway.db)
|
|
761
|
+
}, `${actor.actorType}:${actor.actorId}`);
|
|
762
|
+
},
|
|
743
763
|
authorizeRead: (extra) => {
|
|
744
764
|
requireScope(extra, "tools:read");
|
|
745
765
|
requireRole(extra, Role.AUTHOR);
|
|
@@ -747,9 +767,7 @@ function createMcpServer(options = {}) {
|
|
|
747
767
|
authorizeRun: (extra) => {
|
|
748
768
|
requireScope(extra, "tools:run");
|
|
749
769
|
requireRole(extra, Role.AUTHOR);
|
|
750
|
-
}
|
|
751
|
-
getContext: (extra) => getDineway(extra),
|
|
752
|
-
resolveCredential: async (provider, dineway) => await options.resolveDinewayToolsCredential?.(provider, dineway) ?? null
|
|
770
|
+
}
|
|
753
771
|
});
|
|
754
772
|
server.registerTool("site_briefing_get", {
|
|
755
773
|
title: "Get Site Briefing",
|
|
@@ -1083,27 +1101,14 @@ function createMcpServer(options = {}) {
|
|
|
1083
1101
|
if (!existing.success) return unwrap(existing);
|
|
1084
1102
|
requireOwnership(extra, extractContentAuthorId(existing.data), "content:publish_own", "content:publish_any");
|
|
1085
1103
|
const resolvedId = extractContentId(existing.data) ?? target.id;
|
|
1086
|
-
const
|
|
1104
|
+
const { item: request, created } = await submitAutomatedReview(payload.dineway.db, payload.dineway, {
|
|
1087
1105
|
collection: target.collection,
|
|
1088
1106
|
id: resolvedId,
|
|
1089
|
-
|
|
1090
|
-
summary: args.summary
|
|
1091
|
-
});
|
|
1092
|
-
const request = await new ReviewRequestRepository(payload.dineway.db).create({
|
|
1093
|
-
collection: built.collection,
|
|
1094
|
-
entryId: built.entryId,
|
|
1095
|
-
scope: built.scope,
|
|
1096
|
-
liveRevisionId: built.liveRevisionId,
|
|
1097
|
-
draftRevisionId: built.draftRevisionId,
|
|
1098
|
-
reviewedRev: built.reviewedRev,
|
|
1099
|
-
actionType: built.actionType,
|
|
1100
|
-
actionHash: built.actionHash,
|
|
1107
|
+
summary: args.summary,
|
|
1101
1108
|
riskReason: args.risk_reason,
|
|
1102
|
-
|
|
1103
|
-
requestedByActorType: actor.actorType,
|
|
1104
|
-
requestedByActorId: actor.actorId,
|
|
1105
|
-
requestedAuthMetadata: actor.authMetadata
|
|
1109
|
+
actor
|
|
1106
1110
|
});
|
|
1111
|
+
if (!created) return jsonResult({ request });
|
|
1107
1112
|
await logSiteActivitySafely(payload.dineway.db, locals, {
|
|
1108
1113
|
actionType: "review.submitted",
|
|
1109
1114
|
subjectType: "review_request",
|
|
@@ -1152,6 +1157,7 @@ function createMcpServer(options = {}) {
|
|
|
1152
1157
|
const payload = getExtra(extra);
|
|
1153
1158
|
const locals = actorLocals(payload);
|
|
1154
1159
|
const actor = resolveActorIdentity(locals);
|
|
1160
|
+
if (args.decision === "approved") await prepareReviewerApproval(payload.dineway.db, payload.dineway, payload.dineway.storage ?? void 0, args.id);
|
|
1155
1161
|
const request = await new ReviewRequestRepository(payload.dineway.db).resolve(args.id, {
|
|
1156
1162
|
decision: args.decision,
|
|
1157
1163
|
resolvedByActorType: actor.actorType,
|
|
@@ -1178,6 +1184,24 @@ function createMcpServer(options = {}) {
|
|
|
1178
1184
|
});
|
|
1179
1185
|
return jsonResult({ request });
|
|
1180
1186
|
});
|
|
1187
|
+
server.registerTool("review_request_revoke", {
|
|
1188
|
+
title: "Revoke Review Approval",
|
|
1189
|
+
description: "Revoke an existing approval and block future release. Requires Admin. Published content stays live.",
|
|
1190
|
+
inputSchema: z.object({
|
|
1191
|
+
id: z.string().min(1),
|
|
1192
|
+
reason: z.string().trim().min(1).max(2e3)
|
|
1193
|
+
})
|
|
1194
|
+
}, async (args, extra) => {
|
|
1195
|
+
requireScope(extra, "admin");
|
|
1196
|
+
requireRole(extra, Role.ADMIN);
|
|
1197
|
+
const payload = getExtra(extra);
|
|
1198
|
+
try {
|
|
1199
|
+
const item = await revokeReview(payload.dineway.db, args.id, resolveActorIdentity(actorLocals(payload)), args.reason, "mcp_tool");
|
|
1200
|
+
return item ? jsonResult({ request: item }) : errorResult("Active approval not found");
|
|
1201
|
+
} catch {
|
|
1202
|
+
return errorResult("Failed to revoke approval");
|
|
1203
|
+
}
|
|
1204
|
+
});
|
|
1181
1205
|
server.registerTool("assignment_create", {
|
|
1182
1206
|
title: "Create Assignment",
|
|
1183
1207
|
description: "Create a workflow assignment attached to a Dineway scope. Assignments are durable human-agent handoffs and must use explicit lifecycle transitions instead of ad hoc status patches.",
|
|
@@ -2402,7 +2426,7 @@ function createMcpServer(options = {}) {
|
|
|
2402
2426
|
requireRole(extra, Role.EDITOR);
|
|
2403
2427
|
const ec = getDineway(extra);
|
|
2404
2428
|
try {
|
|
2405
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
2429
|
+
const { SchemaRegistry } = await import("../../../schema-IjuRxkqq.mjs").then((n) => n.t);
|
|
2406
2430
|
return jsonResult({ items: await new SchemaRegistry(ec.db).listCollections() });
|
|
2407
2431
|
} catch (error) {
|
|
2408
2432
|
return errorResult(error);
|
|
@@ -2418,7 +2442,7 @@ function createMcpServer(options = {}) {
|
|
|
2418
2442
|
requireRole(extra, Role.EDITOR);
|
|
2419
2443
|
const ec = getDineway(extra);
|
|
2420
2444
|
try {
|
|
2421
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
2445
|
+
const { SchemaRegistry } = await import("../../../schema-IjuRxkqq.mjs").then((n) => n.t);
|
|
2422
2446
|
const collection = await new SchemaRegistry(ec.db).getCollectionWithFields(args.slug);
|
|
2423
2447
|
if (!collection) return errorResult(`Collection '${args.slug}' not found`);
|
|
2424
2448
|
return jsonResult(collection);
|
|
@@ -2448,7 +2472,7 @@ function createMcpServer(options = {}) {
|
|
|
2448
2472
|
requireRole(extra, Role.ADMIN);
|
|
2449
2473
|
const ec = getDineway(extra);
|
|
2450
2474
|
try {
|
|
2451
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
2475
|
+
const { SchemaRegistry } = await import("../../../schema-IjuRxkqq.mjs").then((n) => n.t);
|
|
2452
2476
|
const collection = await new SchemaRegistry(ec.db).createCollection({
|
|
2453
2477
|
slug: args.slug,
|
|
2454
2478
|
label: args.label,
|
|
@@ -2512,7 +2536,7 @@ function createMcpServer(options = {}) {
|
|
|
2512
2536
|
request
|
|
2513
2537
|
});
|
|
2514
2538
|
}
|
|
2515
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
2539
|
+
const { SchemaRegistry } = await import("../../../schema-IjuRxkqq.mjs").then((n) => n.t);
|
|
2516
2540
|
await new SchemaRegistry(ec.db).deleteCollection(args.slug, { force: args.force });
|
|
2517
2541
|
ec.invalidateManifest();
|
|
2518
2542
|
await logSchemaActivity(ec.db, locals, {
|
|
@@ -2576,7 +2600,7 @@ function createMcpServer(options = {}) {
|
|
|
2576
2600
|
requireRole(extra, Role.ADMIN);
|
|
2577
2601
|
const ec = getDineway(extra);
|
|
2578
2602
|
try {
|
|
2579
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
2603
|
+
const { SchemaRegistry } = await import("../../../schema-IjuRxkqq.mjs").then((n) => n.t);
|
|
2580
2604
|
const field = await new SchemaRegistry(ec.db).createField(args.collection, {
|
|
2581
2605
|
slug: args.slug,
|
|
2582
2606
|
label: args.label,
|
|
@@ -2645,7 +2669,7 @@ function createMcpServer(options = {}) {
|
|
|
2645
2669
|
request
|
|
2646
2670
|
});
|
|
2647
2671
|
}
|
|
2648
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
2672
|
+
const { SchemaRegistry } = await import("../../../schema-IjuRxkqq.mjs").then((n) => n.t);
|
|
2649
2673
|
await new SchemaRegistry(ec.db).deleteField(args.collection, args.fieldSlug);
|
|
2650
2674
|
ec.invalidateManifest();
|
|
2651
2675
|
await logSchemaActivity(ec.db, locals, {
|
|
@@ -2778,7 +2802,7 @@ function createMcpServer(options = {}) {
|
|
|
2778
2802
|
requireScope(extra, "content:read");
|
|
2779
2803
|
const ec = getDineway(extra);
|
|
2780
2804
|
try {
|
|
2781
|
-
const { searchWithDb } = await import("../../../search-
|
|
2805
|
+
const { searchWithDb } = await import("../../../search-DxUKN9Zz.mjs").then((n) => n.t);
|
|
2782
2806
|
return jsonResult(await searchWithDb(ec.db, args.query, {
|
|
2783
2807
|
collections: args.collections,
|
|
2784
2808
|
locale: args.locale,
|
|
@@ -2804,7 +2828,7 @@ function createMcpServer(options = {}) {
|
|
|
2804
2828
|
requireScope(extra, "content:read");
|
|
2805
2829
|
const ec = getDineway(extra);
|
|
2806
2830
|
try {
|
|
2807
|
-
const { BylineRepository } = await import("../../../byline-
|
|
2831
|
+
const { BylineRepository } = await import("../../../byline-Ctil4rij.mjs").then((n) => n.n);
|
|
2808
2832
|
return jsonResult(await new BylineRepository(ec.db).findMany({
|
|
2809
2833
|
search: args.search,
|
|
2810
2834
|
isGuest: args.isGuest,
|
|
@@ -2826,7 +2850,7 @@ function createMcpServer(options = {}) {
|
|
|
2826
2850
|
requireScope(extra, "content:read");
|
|
2827
2851
|
const ec = getDineway(extra);
|
|
2828
2852
|
try {
|
|
2829
|
-
const { BylineRepository } = await import("../../../byline-
|
|
2853
|
+
const { BylineRepository } = await import("../../../byline-Ctil4rij.mjs").then((n) => n.n);
|
|
2830
2854
|
const byline = await new BylineRepository(ec.db).findById(args.id);
|
|
2831
2855
|
if (!byline) return errorResult(`Byline '${args.id}' not found`);
|
|
2832
2856
|
return jsonResult(byline);
|
|
@@ -2844,7 +2868,7 @@ function createMcpServer(options = {}) {
|
|
|
2844
2868
|
requireRole(extra, Role.EDITOR);
|
|
2845
2869
|
const ec = getDineway(extra);
|
|
2846
2870
|
try {
|
|
2847
|
-
const { handleBylineCreate } = await import("../../../bylines-
|
|
2871
|
+
const { handleBylineCreate } = await import("../../../bylines-BcuBpzVi.mjs").then((n) => n.t);
|
|
2848
2872
|
const result = await handleBylineCreate(ec.db, args);
|
|
2849
2873
|
if (result.success) await invalidateBylines();
|
|
2850
2874
|
return unwrap(result);
|
|
@@ -2864,7 +2888,7 @@ function createMcpServer(options = {}) {
|
|
|
2864
2888
|
requireRole(extra, Role.EDITOR);
|
|
2865
2889
|
const ec = getDineway(extra);
|
|
2866
2890
|
try {
|
|
2867
|
-
const { handleBylineUpdate } = await import("../../../bylines-
|
|
2891
|
+
const { handleBylineUpdate } = await import("../../../bylines-BcuBpzVi.mjs").then((n) => n.t);
|
|
2868
2892
|
const { id, ...input } = args;
|
|
2869
2893
|
const result = await handleBylineUpdate(ec.db, id, input);
|
|
2870
2894
|
if (result.success) await invalidateBylines();
|
|
@@ -2883,7 +2907,7 @@ function createMcpServer(options = {}) {
|
|
|
2883
2907
|
requireRole(extra, Role.EDITOR);
|
|
2884
2908
|
const ec = getDineway(extra);
|
|
2885
2909
|
try {
|
|
2886
|
-
const { BylineRepository } = await import("../../../byline-
|
|
2910
|
+
const { BylineRepository } = await import("../../../byline-Ctil4rij.mjs").then((n) => n.n);
|
|
2887
2911
|
if (!await new BylineRepository(ec.db).delete(args.id)) return errorResult(`Byline '${args.id}' not found`);
|
|
2888
2912
|
await invalidateBylines();
|
|
2889
2913
|
return jsonResult({ deleted: args.id });
|
|
@@ -2900,7 +2924,7 @@ function createMcpServer(options = {}) {
|
|
|
2900
2924
|
requireScope(extra, "content:read");
|
|
2901
2925
|
const ec = getDineway(extra);
|
|
2902
2926
|
try {
|
|
2903
|
-
const { handleBylineTranslations } = await import("../../../bylines-
|
|
2927
|
+
const { handleBylineTranslations } = await import("../../../bylines-BcuBpzVi.mjs").then((n) => n.t);
|
|
2904
2928
|
return unwrap(await handleBylineTranslations(ec.db, args.id));
|
|
2905
2929
|
} catch (error) {
|
|
2906
2930
|
return errorResult(error);
|
|
@@ -2915,7 +2939,7 @@ function createMcpServer(options = {}) {
|
|
|
2915
2939
|
requireScope(extra, "content:read");
|
|
2916
2940
|
const ec = getDineway(extra);
|
|
2917
2941
|
try {
|
|
2918
|
-
const { handleTaxonomyList } = await import("../../../taxonomies-
|
|
2942
|
+
const { handleTaxonomyList } = await import("../../../taxonomies-ALDiRQ84.mjs").then((n) => n.l);
|
|
2919
2943
|
return unwrap(await handleTaxonomyList(ec.db, { locale: args.locale }));
|
|
2920
2944
|
} catch (error) {
|
|
2921
2945
|
return errorResult(error);
|
|
@@ -2935,12 +2959,12 @@ function createMcpServer(options = {}) {
|
|
|
2935
2959
|
requireScope(extra, "content:read");
|
|
2936
2960
|
const ec = getDineway(extra);
|
|
2937
2961
|
try {
|
|
2938
|
-
const { handleTaxonomyList } = await import("../../../taxonomies-
|
|
2962
|
+
const { handleTaxonomyList } = await import("../../../taxonomies-ALDiRQ84.mjs").then((n) => n.l);
|
|
2939
2963
|
const listResult = await handleTaxonomyList(ec.db, { locale: args.locale });
|
|
2940
2964
|
if (!listResult.success) return unwrap(listResult);
|
|
2941
2965
|
if (!listResult.data.taxonomies.find((t) => t.name === args.taxonomy)) return errorResult(`Taxonomy '${args.taxonomy}' not found`);
|
|
2942
|
-
const { TaxonomyRepository } = await import("../../../taxonomy-
|
|
2943
|
-
const { decodeCursor, encodeCursor } = await import("../../../types-
|
|
2966
|
+
const { TaxonomyRepository } = await import("../../../taxonomy-BOBTJ_aE.mjs").then((n) => n.n);
|
|
2967
|
+
const { decodeCursor, encodeCursor } = await import("../../../types-BpSTdH1H.mjs").then((n) => n.a);
|
|
2944
2968
|
const repo = new TaxonomyRepository(ec.db);
|
|
2945
2969
|
const limit = Math.min(args.limit ?? 50, 100);
|
|
2946
2970
|
const terms = await repo.findByName(args.taxonomy, { locale: args.locale });
|
|
@@ -2989,7 +3013,7 @@ function createMcpServer(options = {}) {
|
|
|
2989
3013
|
requireRole(extra, Role.EDITOR);
|
|
2990
3014
|
const ec = getDineway(extra);
|
|
2991
3015
|
try {
|
|
2992
|
-
const { handleTermCreate } = await import("../../../taxonomies-
|
|
3016
|
+
const { handleTermCreate } = await import("../../../taxonomies-ALDiRQ84.mjs").then((n) => n.l);
|
|
2993
3017
|
return unwrap(await handleTermCreate(ec.db, args.taxonomy, {
|
|
2994
3018
|
slug: args.slug,
|
|
2995
3019
|
label: args.label,
|
|
@@ -3019,7 +3043,7 @@ function createMcpServer(options = {}) {
|
|
|
3019
3043
|
requireRole(extra, Role.EDITOR);
|
|
3020
3044
|
const ec = getDineway(extra);
|
|
3021
3045
|
try {
|
|
3022
|
-
const { handleTermUpdate } = await import("../../../taxonomies-
|
|
3046
|
+
const { handleTermUpdate } = await import("../../../taxonomies-ALDiRQ84.mjs").then((n) => n.l);
|
|
3023
3047
|
return unwrap(await handleTermUpdate(ec.db, args.taxonomy, args.termSlug, {
|
|
3024
3048
|
slug: args.slug,
|
|
3025
3049
|
label: args.label,
|
|
@@ -3044,7 +3068,7 @@ function createMcpServer(options = {}) {
|
|
|
3044
3068
|
requireRole(extra, Role.EDITOR);
|
|
3045
3069
|
const ec = getDineway(extra);
|
|
3046
3070
|
try {
|
|
3047
|
-
const { handleTermDelete } = await import("../../../taxonomies-
|
|
3071
|
+
const { handleTermDelete } = await import("../../../taxonomies-ALDiRQ84.mjs").then((n) => n.l);
|
|
3048
3072
|
return unwrap(await handleTermDelete(ec.db, args.taxonomy, args.termSlug, { locale: args.locale }));
|
|
3049
3073
|
} catch (error) {
|
|
3050
3074
|
return errorResult(error);
|
|
@@ -3059,7 +3083,7 @@ function createMcpServer(options = {}) {
|
|
|
3059
3083
|
requireScope(extra, "content:read");
|
|
3060
3084
|
const ec = getDineway(extra);
|
|
3061
3085
|
try {
|
|
3062
|
-
const { handleTermTranslations } = await import("../../../taxonomies-
|
|
3086
|
+
const { handleTermTranslations } = await import("../../../taxonomies-ALDiRQ84.mjs").then((n) => n.l);
|
|
3063
3087
|
return unwrap(await handleTermTranslations(ec.db, args.id));
|
|
3064
3088
|
} catch (error) {
|
|
3065
3089
|
return errorResult(error);
|
|
@@ -3074,7 +3098,7 @@ function createMcpServer(options = {}) {
|
|
|
3074
3098
|
requireScope(extra, "content:read");
|
|
3075
3099
|
const ec = getDineway(extra);
|
|
3076
3100
|
try {
|
|
3077
|
-
const { handleMenuList } = await import("../../../menus-
|
|
3101
|
+
const { handleMenuList } = await import("../../../menus-CpuR4Qkm.mjs").then((n) => n.d);
|
|
3078
3102
|
return unwrap(await handleMenuList(ec.db, { locale: args.locale }));
|
|
3079
3103
|
} catch (error) {
|
|
3080
3104
|
return errorResult(error);
|
|
@@ -3092,7 +3116,7 @@ function createMcpServer(options = {}) {
|
|
|
3092
3116
|
requireScope(extra, "content:read");
|
|
3093
3117
|
const ec = getDineway(extra);
|
|
3094
3118
|
try {
|
|
3095
|
-
const { handleMenuGet } = await import("../../../menus-
|
|
3119
|
+
const { handleMenuGet } = await import("../../../menus-CpuR4Qkm.mjs").then((n) => n.d);
|
|
3096
3120
|
return unwrap(await handleMenuGet(ec.db, args.name, { locale: args.locale }));
|
|
3097
3121
|
} catch (error) {
|
|
3098
3122
|
return errorResult(error);
|
|
@@ -3107,7 +3131,7 @@ function createMcpServer(options = {}) {
|
|
|
3107
3131
|
requireScope(extra, "content:read");
|
|
3108
3132
|
const ec = getDineway(extra);
|
|
3109
3133
|
try {
|
|
3110
|
-
const { handleMenuTranslations } = await import("../../../menus-
|
|
3134
|
+
const { handleMenuTranslations } = await import("../../../menus-CpuR4Qkm.mjs").then((n) => n.d);
|
|
3111
3135
|
return unwrap(await handleMenuTranslations(ec.db, args.id));
|
|
3112
3136
|
} catch (error) {
|
|
3113
3137
|
return errorResult(error);
|
|
@@ -3127,7 +3151,7 @@ function createMcpServer(options = {}) {
|
|
|
3127
3151
|
requireRole(extra, Role.EDITOR);
|
|
3128
3152
|
const ec = getDineway(extra);
|
|
3129
3153
|
try {
|
|
3130
|
-
const { handleMenuCreate } = await import("../../../menus-
|
|
3154
|
+
const { handleMenuCreate } = await import("../../../menus-CpuR4Qkm.mjs").then((n) => n.d);
|
|
3131
3155
|
return unwrap(await handleMenuCreate(ec.db, {
|
|
3132
3156
|
name: args.name,
|
|
3133
3157
|
label: args.label,
|
|
@@ -3151,7 +3175,7 @@ function createMcpServer(options = {}) {
|
|
|
3151
3175
|
requireRole(extra, Role.EDITOR);
|
|
3152
3176
|
const ec = getDineway(extra);
|
|
3153
3177
|
try {
|
|
3154
|
-
const { handleMenuUpdate } = await import("../../../menus-
|
|
3178
|
+
const { handleMenuUpdate } = await import("../../../menus-CpuR4Qkm.mjs").then((n) => n.d);
|
|
3155
3179
|
return unwrap(await handleMenuUpdate(ec.db, args.name, {
|
|
3156
3180
|
label: args.label,
|
|
3157
3181
|
locale: args.locale
|
|
@@ -3173,7 +3197,7 @@ function createMcpServer(options = {}) {
|
|
|
3173
3197
|
requireRole(extra, Role.EDITOR);
|
|
3174
3198
|
const ec = getDineway(extra);
|
|
3175
3199
|
try {
|
|
3176
|
-
const { handleMenuDelete } = await import("../../../menus-
|
|
3200
|
+
const { handleMenuDelete } = await import("../../../menus-CpuR4Qkm.mjs").then((n) => n.d);
|
|
3177
3201
|
return unwrap(await handleMenuDelete(ec.db, args.name, { locale: args.locale }));
|
|
3178
3202
|
} catch (error) {
|
|
3179
3203
|
return errorResult(error);
|
|
@@ -3208,7 +3232,7 @@ function createMcpServer(options = {}) {
|
|
|
3208
3232
|
requireRole(extra, Role.EDITOR);
|
|
3209
3233
|
const ec = getDineway(extra);
|
|
3210
3234
|
try {
|
|
3211
|
-
const { handleMenuSetItems } = await import("../../../menus-
|
|
3235
|
+
const { handleMenuSetItems } = await import("../../../menus-CpuR4Qkm.mjs").then((n) => n.d);
|
|
3212
3236
|
return unwrap(await handleMenuSetItems(ec.db, args.name, args.items, { locale: args.locale }));
|
|
3213
3237
|
} catch (error) {
|
|
3214
3238
|
return errorResult(error);
|
|
@@ -3255,7 +3279,7 @@ function createMcpServer(options = {}) {
|
|
|
3255
3279
|
requireRole(extra, Role.ADMIN);
|
|
3256
3280
|
const ec = getDineway(extra);
|
|
3257
3281
|
try {
|
|
3258
|
-
const { handleSettingsGet } = await import("../../../settings-
|
|
3282
|
+
const { handleSettingsGet } = await import("../../../settings-BKEHw6Bu.mjs").then((n) => n.r);
|
|
3259
3283
|
return unwrap(await handleSettingsGet(ec.db, ec.storage));
|
|
3260
3284
|
} catch (error) {
|
|
3261
3285
|
return errorResult(error);
|
|
@@ -3292,7 +3316,7 @@ function createMcpServer(options = {}) {
|
|
|
3292
3316
|
request
|
|
3293
3317
|
});
|
|
3294
3318
|
}
|
|
3295
|
-
const { handleSettingsUpdate } = await import("../../../settings-
|
|
3319
|
+
const { handleSettingsUpdate } = await import("../../../settings-BKEHw6Bu.mjs").then((n) => n.r);
|
|
3296
3320
|
const result = await handleSettingsUpdate(ec.db, ec.storage, settingsInput);
|
|
3297
3321
|
if (!result.success) return unwrap(result);
|
|
3298
3322
|
await logSiteActivitySafely(ec.db, locals, {
|
|
@@ -3370,7 +3394,6 @@ const POST = async ({ request, locals }) => {
|
|
|
3370
3394
|
toolsService ??= createDinewayToolsRuntimeService();
|
|
3371
3395
|
return toolsService;
|
|
3372
3396
|
},
|
|
3373
|
-
resolveDinewayToolsCredential: (provider, handlers) => new IntegrationCredentialStore(handlers.db).resolveForRuntime(provider),
|
|
3374
3397
|
pluginMcpRegistry: dineway.getPluginMcpRegistry(),
|
|
3375
3398
|
executePluginMcpCommand: createReviewedPluginMcpCommandExecutor()
|
|
3376
3399
|
});
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import "../../../../../base64-F8-DUraK.mjs";
|
|
2
|
-
import "../../../../../types-
|
|
3
|
-
import { t as MediaRepository } from "../../../../../media-
|
|
4
|
-
import { t as enrichImageMetadata } from "../../../../../enrich-
|
|
5
|
-
import "../../../../../context-types-
|
|
2
|
+
import "../../../../../types-BpSTdH1H.mjs";
|
|
3
|
+
import { t as MediaRepository } from "../../../../../media-dvRjj4po.mjs";
|
|
4
|
+
import { t as enrichImageMetadata } from "../../../../../enrich-KErvJOuI.mjs";
|
|
5
|
+
import "../../../../../context-types-CPWAJRs5.mjs";
|
|
6
6
|
import "../../../../../public-discovery-CyDzK1-S.mjs";
|
|
7
|
-
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-
|
|
8
|
-
import { r as parseOptionalBody, t as isParseError } from "../../../../../parse-
|
|
9
|
-
import { Bt as mediaConfirmBody } from "../../../../../redirects-
|
|
10
|
-
import "../../../../../byline-fields-
|
|
11
|
-
import "../../../../../status-
|
|
7
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-DLg1H2LT.mjs";
|
|
8
|
+
import { r as parseOptionalBody, t as isParseError } from "../../../../../parse-IsGn-5lt.mjs";
|
|
9
|
+
import { Bt as mediaConfirmBody } from "../../../../../redirects-N8gmWhVM.mjs";
|
|
10
|
+
import "../../../../../byline-fields-QpmruT5r.mjs";
|
|
11
|
+
import "../../../../../status-Bba6RbkS.mjs";
|
|
12
12
|
import "../../../../../api/schemas/index.mjs";
|
|
13
|
-
import { n as requirePerm, t as requireOwnerPerm } from "../../../../../authorize-
|
|
13
|
+
import { n as requirePerm, t as requireOwnerPerm } from "../../../../../authorize-KcI0pAfN.mjs";
|
|
14
14
|
|
|
15
15
|
//#region src/astro/routes/api/media/[id]/confirm.ts
|
|
16
16
|
const prerender = false;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "../../../../context-types-
|
|
1
|
+
import "../../../../context-types-CPWAJRs5.mjs";
|
|
2
2
|
import "../../../../public-discovery-CyDzK1-S.mjs";
|
|
3
3
|
import { t as addInternalMediaUrl } from "../../../../url-C_pLSrGZ.mjs";
|
|
4
|
-
import { a as unwrapResult, n as apiSuccess, r as handleError, t as apiError } from "../../../../error-
|
|
5
|
-
import { n as parseBody, t as isParseError } from "../../../../parse-
|
|
6
|
-
import { Jt as mediaUpdateBody } from "../../../../redirects-
|
|
7
|
-
import "../../../../byline-fields-
|
|
8
|
-
import "../../../../status-
|
|
4
|
+
import { a as unwrapResult, n as apiSuccess, r as handleError, t as apiError } from "../../../../error-DLg1H2LT.mjs";
|
|
5
|
+
import { n as parseBody, t as isParseError } from "../../../../parse-IsGn-5lt.mjs";
|
|
6
|
+
import { Jt as mediaUpdateBody } from "../../../../redirects-N8gmWhVM.mjs";
|
|
7
|
+
import "../../../../byline-fields-QpmruT5r.mjs";
|
|
8
|
+
import "../../../../status-Bba6RbkS.mjs";
|
|
9
9
|
import "../../../../api/schemas/index.mjs";
|
|
10
|
-
import { n as requirePerm, t as requireOwnerPerm } from "../../../../authorize-
|
|
10
|
+
import { n as requirePerm, t as requireOwnerPerm } from "../../../../authorize-KcI0pAfN.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/astro/routes/api/media/[id].ts
|
|
13
13
|
const prerender = false;
|