dineway 0.1.21 → 0.1.23

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.
Files changed (125) hide show
  1. package/dist/api/route-utils.d.mts +1 -1
  2. package/dist/api/route-utils.mjs +1 -1
  3. package/dist/api/schemas/index.d.mts +1 -1
  4. package/dist/{api-Fu6WeyUl.mjs → api-CX_et2bh.mjs} +1 -1
  5. package/dist/astro/index.d.mts +1 -1
  6. package/dist/astro/index.mjs +2 -2
  7. package/dist/astro/middleware/auth.d.mts +1 -1
  8. package/dist/astro/middleware/auth.mjs +1 -1
  9. package/dist/astro/middleware/request-context.mjs +1 -1
  10. package/dist/astro/middleware/setup.mjs +1 -1
  11. package/dist/astro/middleware.mjs +6 -6
  12. package/dist/astro/routes/api/admin/api-tokens/index.mjs +1 -1
  13. package/dist/astro/routes/api/admin/context/_id_/history.mjs +2 -2
  14. package/dist/astro/routes/api/admin/context/_id_/index.mjs +2 -2
  15. package/dist/astro/routes/api/admin/context/_id_/review.mjs +2 -2
  16. package/dist/astro/routes/api/admin/context/_id_/supersede.mjs +2 -2
  17. package/dist/astro/routes/api/admin/context/diff.mjs +2 -2
  18. package/dist/astro/routes/api/admin/context/index.mjs +2 -2
  19. package/dist/astro/routes/api/admin/context/stale.mjs +2 -2
  20. package/dist/astro/routes/api/admin/hitl-requests/_id_/index.mjs +3 -3
  21. package/dist/astro/routes/api/admin/hitl-requests/_id_/resolve.mjs +3 -3
  22. package/dist/astro/routes/api/admin/hitl-requests/index.mjs +3 -3
  23. package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +2 -2
  24. package/dist/astro/routes/api/admin/oauth-clients/_id_.mjs +2 -2
  25. package/dist/astro/routes/api/admin/oauth-clients/index.mjs +2 -2
  26. package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +3 -3
  27. package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +3 -3
  28. package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +1 -1
  29. package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +3 -3
  30. package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +3 -3
  31. package/dist/astro/routes/api/admin/plugins/index.mjs +1 -1
  32. package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +1 -1
  33. package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +3 -3
  34. package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +1 -1
  35. package/dist/astro/routes/api/admin/plugins/updates.mjs +1 -1
  36. package/dist/astro/routes/api/admin/review-requests/_id_/resolve.mjs +1 -1
  37. package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +1 -1
  38. package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +1 -1
  39. package/dist/astro/routes/api/auth/invite/complete.mjs +2 -2
  40. package/dist/astro/routes/api/auth/invite/register-options.mjs +1 -1
  41. package/dist/astro/routes/api/auth/mode.mjs +1 -1
  42. package/dist/astro/routes/api/auth/passkey/options.mjs +1 -1
  43. package/dist/astro/routes/api/auth/passkey/register/options.mjs +1 -1
  44. package/dist/astro/routes/api/auth/passkey/register/verify.mjs +2 -2
  45. package/dist/astro/routes/api/auth/passkey/verify.mjs +2 -2
  46. package/dist/astro/routes/api/auth/signup/complete.mjs +2 -2
  47. package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +1 -1
  48. package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +1 -1
  49. package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +1 -1
  50. package/dist/astro/routes/api/health.mjs +1 -1
  51. package/dist/astro/routes/api/import/wordpress/execute.mjs +2 -2
  52. package/dist/astro/routes/api/import/wordpress/prepare.mjs +2 -2
  53. package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +2 -2
  54. package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +2 -2
  55. package/dist/astro/routes/api/manifest.mjs +3 -3
  56. package/dist/astro/routes/api/mcp.mjs +2 -2
  57. package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +2 -2
  58. package/dist/astro/routes/api/menus/_name_/items.mjs +2 -2
  59. package/dist/astro/routes/api/menus/_name_/reorder.mjs +2 -2
  60. package/dist/astro/routes/api/menus/_name_/translations.mjs +2 -2
  61. package/dist/astro/routes/api/menus/_name_.mjs +2 -2
  62. package/dist/astro/routes/api/menus/index.mjs +2 -2
  63. package/dist/astro/routes/api/oauth/authorize.mjs +3 -3
  64. package/dist/astro/routes/api/oauth/device/authorize.mjs +2 -2
  65. package/dist/astro/routes/api/oauth/device/code.mjs +2 -2
  66. package/dist/astro/routes/api/oauth/device/token.mjs +2 -2
  67. package/dist/astro/routes/api/oauth/register.mjs +2 -2
  68. package/dist/astro/routes/api/oauth/token/refresh.mjs +2 -2
  69. package/dist/astro/routes/api/oauth/token/revoke.mjs +2 -2
  70. package/dist/astro/routes/api/oauth/token.mjs +3 -3
  71. package/dist/astro/routes/api/openapi.json.mjs +1 -1
  72. package/dist/astro/routes/api/redirects/_id_.mjs +2 -2
  73. package/dist/astro/routes/api/redirects/index.mjs +2 -2
  74. package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +1 -1
  75. package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +1 -1
  76. package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +1 -1
  77. package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +1 -1
  78. package/dist/astro/routes/api/schema/collections/index.mjs +1 -1
  79. package/dist/astro/routes/api/schema/orphans/_slug_.mjs +1 -1
  80. package/dist/astro/routes/api/schema/orphans/index.mjs +1 -1
  81. package/dist/astro/routes/api/sections/_slug_.mjs +2 -2
  82. package/dist/astro/routes/api/sections/index.mjs +2 -2
  83. package/dist/astro/routes/api/settings.mjs +2 -2
  84. package/dist/astro/routes/api/setup/admin-verify.mjs +3 -3
  85. package/dist/astro/routes/api/setup/admin.mjs +1 -1
  86. package/dist/astro/routes/api/setup/index.mjs +1 -1
  87. package/dist/astro/routes/api/setup/status.mjs +1 -1
  88. package/dist/astro/routes/api/snapshot.mjs +1 -1
  89. package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +2 -2
  90. package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +2 -2
  91. package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +2 -2
  92. package/dist/astro/routes/api/taxonomies/index.mjs +2 -2
  93. package/dist/astro/routes/api/themes/preview.mjs +1 -1
  94. package/dist/astro/routes/api/well-known/auth.mjs +2 -2
  95. package/dist/astro/routes/api/well-known/oauth-authorization-server.mjs +1 -1
  96. package/dist/astro/routes/api/well-known/oauth-protected-resource.mjs +1 -1
  97. package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +2 -2
  98. package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +2 -2
  99. package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +2 -2
  100. package/dist/astro/routes/api/widget-areas/_name_.mjs +2 -2
  101. package/dist/astro/routes/api/widget-areas/index.mjs +2 -2
  102. package/dist/astro/types.d.mts +1 -1
  103. package/dist/{bylines-DVHl9JXW.d.mts → bylines-BIldBr7o.d.mts} +14 -14
  104. package/dist/cli/index.mjs +116 -12
  105. package/dist/{context-CnrsB3lh.mjs → context-CUJ2Qwb4.mjs} +1 -1
  106. package/dist/{device-flow-AsTA1k4t.mjs → device-flow-Pab2PQTA.mjs} +2 -2
  107. package/dist/{hitl-requests-DcTPiuog.mjs → hitl-requests-D5CLRMGC.mjs} +2 -2
  108. package/dist/{hitl-route-helpers-CNqNbune.mjs → hitl-route-helpers-SRAfZqf9.mjs} +2 -2
  109. package/dist/index.d.mts +1 -1
  110. package/dist/index.mjs +1 -1
  111. package/dist/media/local-runtime.d.mts +1 -1
  112. package/dist/{oauth-authorization-CRwAJzzA.mjs → oauth-authorization-CFcMq7NJ.mjs} +2 -2
  113. package/dist/{oauth-clients-BlHrNh_u.mjs → oauth-clients-CS1nQbC3.mjs} +1 -1
  114. package/dist/plugins/adapt-sandbox-entry.d.mts +1 -1
  115. package/dist/runtime.d.mts +1 -1
  116. package/dist/{site-context-Dr_5pFHr.mjs → site-context-CDnyARws.mjs} +1 -1
  117. package/dist/version-Ch9I7B2B.mjs +6 -0
  118. package/package.json +2 -2
  119. package/dist/version-2a3KsDX2.mjs +0 -6
  120. /package/dist/{allowed-origins-3nAx5Xeo.mjs → allowed-origins-CIP5fh83.mjs} +0 -0
  121. /package/dist/{challenge-store-B9odzfeh.mjs → challenge-store-cJam-E5R.mjs} +0 -0
  122. /package/dist/{experimental-workflows-C7o_9V7S.mjs → experimental-workflows-BbZbIEZp.mjs} +0 -0
  123. /package/dist/{mode-BI1kRvlT.mjs → mode-Bd55iLcP.mjs} +0 -0
  124. /package/dist/{secrets-BIrqds5c.mjs → secrets-DfeNNoLa.mjs} +0 -0
  125. /package/dist/{setup-complete-BvSeN5Wh.mjs → setup-complete-DgsQYTC2.mjs} +0 -0
@@ -1,6 +1,6 @@
1
1
  import { n as apiSuccess, r as handleError, t as apiError } from "../../../../error-Dyf9fGZE.mjs";
2
2
  import { n as loadUserSeed } from "../../../../load-5R4qZ4zn.mjs";
3
- import { t as getAuthMode } from "../../../../mode-BI1kRvlT.mjs";
3
+ import { t as getAuthMode } from "../../../../mode-Bd55iLcP.mjs";
4
4
 
5
5
  //#region src/astro/routes/api/setup/status.ts
6
6
  const prerender = false;
@@ -3,7 +3,7 @@ import "../../../options-BF11H_FD.mjs";
3
3
  import { n as apiSuccess, r as handleError, t as apiError } from "../../../error-Dyf9fGZE.mjs";
4
4
  import { a as verifyPreviewSignature, r as parsePreviewSignatureHeader } from "../../../sidecar-client-Dta0AELf.mjs";
5
5
  import { n as getPublicOrigin } from "../../../public-url-DuRGs0uF.mjs";
6
- import { i as resolveSecretsCached } from "../../../secrets-BIrqds5c.mjs";
6
+ import { i as resolveSecretsCached } from "../../../secrets-DfeNNoLa.mjs";
7
7
  import { n as requirePerm } from "../../../authorize-BgIG3yfN.mjs";
8
8
  import { sql } from "kysely";
9
9
  import { createKyselyAdapter } from "@dineway-ai/auth/adapters/kysely";
@@ -28,9 +28,9 @@ import "../../../../../../../api/schemas/index.mjs";
28
28
  import "../../../../../../../utils-BftjFpR0.mjs";
29
29
  import "../../../../../../../search-DjaP_Dw-.mjs";
30
30
  import { n as requirePerm } from "../../../../../../../authorize-BgIG3yfN.mjs";
31
- import { _ as RiskPolicyEvaluator, l as TaxonomyHitlPayloadBuilder } from "../../../../../../../site-context-Dr_5pFHr.mjs";
31
+ import { _ as RiskPolicyEvaluator, l as TaxonomyHitlPayloadBuilder } from "../../../../../../../site-context-CDnyARws.mjs";
32
32
  import { C as taxonomyApiRouteSource, m as logTaxonomyActivity } from "../../../../../../../activity-events-CjOgr0Uv.mjs";
33
- import { i as resolveHitlRouteActor, n as hitlRequiredRouteError, t as ensureWorkflowHitlRouteRequest } from "../../../../../../../hitl-route-helpers-CNqNbune.mjs";
33
+ import { i as resolveHitlRouteActor, n as hitlRequiredRouteError, t as ensureWorkflowHitlRouteRequest } from "../../../../../../../hitl-route-helpers-SRAfZqf9.mjs";
34
34
  import { z } from "zod";
35
35
 
36
36
  //#region src/astro/routes/api/taxonomies/[name]/terms/[slug]/translations.ts
@@ -28,9 +28,9 @@ import "../../../../../../api/schemas/index.mjs";
28
28
  import "../../../../../../utils-BftjFpR0.mjs";
29
29
  import "../../../../../../search-DjaP_Dw-.mjs";
30
30
  import { n as requirePerm } from "../../../../../../authorize-BgIG3yfN.mjs";
31
- import { _ as RiskPolicyEvaluator, l as TaxonomyHitlPayloadBuilder } from "../../../../../../site-context-Dr_5pFHr.mjs";
31
+ import { _ as RiskPolicyEvaluator, l as TaxonomyHitlPayloadBuilder } from "../../../../../../site-context-CDnyARws.mjs";
32
32
  import { C as taxonomyApiRouteSource, m as logTaxonomyActivity, t as activityChangedKeys } from "../../../../../../activity-events-CjOgr0Uv.mjs";
33
- import { i as resolveHitlRouteActor, n as hitlRequiredRouteError, t as ensureWorkflowHitlRouteRequest } from "../../../../../../hitl-route-helpers-CNqNbune.mjs";
33
+ import { i as resolveHitlRouteActor, n as hitlRequiredRouteError, t as ensureWorkflowHitlRouteRequest } from "../../../../../../hitl-route-helpers-SRAfZqf9.mjs";
34
34
  import { z } from "zod";
35
35
 
36
36
  //#region src/astro/routes/api/taxonomies/[name]/terms/[slug].ts
@@ -28,9 +28,9 @@ import "../../../../../../api/schemas/index.mjs";
28
28
  import "../../../../../../utils-BftjFpR0.mjs";
29
29
  import "../../../../../../search-DjaP_Dw-.mjs";
30
30
  import { n as requirePerm } from "../../../../../../authorize-BgIG3yfN.mjs";
31
- import { _ as RiskPolicyEvaluator, l as TaxonomyHitlPayloadBuilder } from "../../../../../../site-context-Dr_5pFHr.mjs";
31
+ import { _ as RiskPolicyEvaluator, l as TaxonomyHitlPayloadBuilder } from "../../../../../../site-context-CDnyARws.mjs";
32
32
  import { C as taxonomyApiRouteSource, m as logTaxonomyActivity } from "../../../../../../activity-events-CjOgr0Uv.mjs";
33
- import { i as resolveHitlRouteActor, n as hitlRequiredRouteError, t as ensureWorkflowHitlRouteRequest } from "../../../../../../hitl-route-helpers-CNqNbune.mjs";
33
+ import { i as resolveHitlRouteActor, n as hitlRequiredRouteError, t as ensureWorkflowHitlRouteRequest } from "../../../../../../hitl-route-helpers-SRAfZqf9.mjs";
34
34
  import { z } from "zod";
35
35
 
36
36
  //#region src/astro/routes/api/taxonomies/[name]/terms/index.ts
@@ -28,9 +28,9 @@ import "../../../../api/schemas/index.mjs";
28
28
  import "../../../../utils-BftjFpR0.mjs";
29
29
  import "../../../../search-DjaP_Dw-.mjs";
30
30
  import { n as requirePerm } from "../../../../authorize-BgIG3yfN.mjs";
31
- import { _ as RiskPolicyEvaluator, l as TaxonomyHitlPayloadBuilder } from "../../../../site-context-Dr_5pFHr.mjs";
31
+ import { _ as RiskPolicyEvaluator, l as TaxonomyHitlPayloadBuilder } from "../../../../site-context-CDnyARws.mjs";
32
32
  import { C as taxonomyApiRouteSource, m as logTaxonomyActivity } from "../../../../activity-events-CjOgr0Uv.mjs";
33
- import { i as resolveHitlRouteActor, n as hitlRequiredRouteError, t as ensureWorkflowHitlRouteRequest } from "../../../../hitl-route-helpers-CNqNbune.mjs";
33
+ import { i as resolveHitlRouteActor, n as hitlRequiredRouteError, t as ensureWorkflowHitlRouteRequest } from "../../../../hitl-route-helpers-SRAfZqf9.mjs";
34
34
  import { z } from "zod";
35
35
 
36
36
  //#region src/astro/routes/api/taxonomies/index.ts
@@ -2,7 +2,7 @@ import "../../../../base64-C1Q9yr0B.mjs";
2
2
  import "../../../../options-BF11H_FD.mjs";
3
3
  import { n as apiSuccess, t as apiError } from "../../../../error-Dyf9fGZE.mjs";
4
4
  import { n as getPublicOrigin } from "../../../../public-url-DuRGs0uF.mjs";
5
- import { i as resolveSecretsCached } from "../../../../secrets-BIrqds5c.mjs";
5
+ import { i as resolveSecretsCached } from "../../../../secrets-DfeNNoLa.mjs";
6
6
  import { n as requirePerm } from "../../../../authorize-BgIG3yfN.mjs";
7
7
 
8
8
  //#region src/astro/routes/api/themes/preview.ts
@@ -1,6 +1,6 @@
1
1
  import { t as OptionsRepository } from "../../../../options-BF11H_FD.mjs";
2
- import { n as VERSION } from "../../../../version-2a3KsDX2.mjs";
3
- import { t as getAuthMode } from "../../../../mode-BI1kRvlT.mjs";
2
+ import { n as VERSION } from "../../../../version-Ch9I7B2B.mjs";
3
+ import { t as getAuthMode } from "../../../../mode-Bd55iLcP.mjs";
4
4
 
5
5
  //#region src/astro/routes/api/well-known/auth.ts
6
6
  const prerender = false;
@@ -1,5 +1,5 @@
1
1
  import { n as getPublicOrigin } from "../../../../public-url-DuRGs0uF.mjs";
2
- import { a as filterExperimentalSiteContextWorkflowScopes } from "../../../../experimental-workflows-C7o_9V7S.mjs";
2
+ import { a as filterExperimentalSiteContextWorkflowScopes } from "../../../../experimental-workflows-BbZbIEZp.mjs";
3
3
  import { t as ALL_VALID_SCOPES } from "../../../../api-tokens-BZ9aAeCo.mjs";
4
4
 
5
5
  //#region src/astro/routes/api/well-known/oauth-authorization-server.ts
@@ -1,5 +1,5 @@
1
1
  import { n as getPublicOrigin } from "../../../../public-url-DuRGs0uF.mjs";
2
- import { a as filterExperimentalSiteContextWorkflowScopes } from "../../../../experimental-workflows-C7o_9V7S.mjs";
2
+ import { a as filterExperimentalSiteContextWorkflowScopes } from "../../../../experimental-workflows-BbZbIEZp.mjs";
3
3
  import { t as ALL_VALID_SCOPES } from "../../../../api-tokens-BZ9aAeCo.mjs";
4
4
 
5
5
  //#region src/astro/routes/api/well-known/oauth-protected-resource.ts
@@ -25,9 +25,9 @@ import "../../../../../api/schemas/index.mjs";
25
25
  import "../../../../../utils-BftjFpR0.mjs";
26
26
  import "../../../../../search-DjaP_Dw-.mjs";
27
27
  import { n as requirePerm } from "../../../../../authorize-BgIG3yfN.mjs";
28
- import { _ as RiskPolicyEvaluator, s as WidgetHitlPayloadBuilder } from "../../../../../site-context-Dr_5pFHr.mjs";
28
+ import { _ as RiskPolicyEvaluator, s as WidgetHitlPayloadBuilder } from "../../../../../site-context-CDnyARws.mjs";
29
29
  import { h as logWidgetActivity, w as widgetApiRouteSource } from "../../../../../activity-events-CjOgr0Uv.mjs";
30
- import { i as resolveHitlRouteActor, n as hitlRequiredRouteError, t as ensureWorkflowHitlRouteRequest } from "../../../../../hitl-route-helpers-CNqNbune.mjs";
30
+ import { i as resolveHitlRouteActor, n as hitlRequiredRouteError, t as ensureWorkflowHitlRouteRequest } from "../../../../../hitl-route-helpers-SRAfZqf9.mjs";
31
31
  import { z } from "zod";
32
32
 
33
33
  //#region src/astro/routes/api/widget-areas/[name]/reorder.ts
@@ -26,9 +26,9 @@ import "../../../../../../utils-BftjFpR0.mjs";
26
26
  import { i as rowToWidget } from "../../../../../../widgets-BFh1UZN5.mjs";
27
27
  import "../../../../../../search-DjaP_Dw-.mjs";
28
28
  import { n as requirePerm } from "../../../../../../authorize-BgIG3yfN.mjs";
29
- import { _ as RiskPolicyEvaluator, s as WidgetHitlPayloadBuilder } from "../../../../../../site-context-Dr_5pFHr.mjs";
29
+ import { _ as RiskPolicyEvaluator, s as WidgetHitlPayloadBuilder } from "../../../../../../site-context-CDnyARws.mjs";
30
30
  import { h as logWidgetActivity, t as activityChangedKeys, w as widgetApiRouteSource } from "../../../../../../activity-events-CjOgr0Uv.mjs";
31
- import { i as resolveHitlRouteActor, n as hitlRequiredRouteError, t as ensureWorkflowHitlRouteRequest } from "../../../../../../hitl-route-helpers-CNqNbune.mjs";
31
+ import { i as resolveHitlRouteActor, n as hitlRequiredRouteError, t as ensureWorkflowHitlRouteRequest } from "../../../../../../hitl-route-helpers-SRAfZqf9.mjs";
32
32
  import { z } from "zod";
33
33
 
34
34
  //#region src/astro/routes/api/widget-areas/[name]/widgets/[id].ts
@@ -26,9 +26,9 @@ import "../../../../../utils-BftjFpR0.mjs";
26
26
  import { i as rowToWidget } from "../../../../../widgets-BFh1UZN5.mjs";
27
27
  import "../../../../../search-DjaP_Dw-.mjs";
28
28
  import { n as requirePerm } from "../../../../../authorize-BgIG3yfN.mjs";
29
- import { _ as RiskPolicyEvaluator, s as WidgetHitlPayloadBuilder } from "../../../../../site-context-Dr_5pFHr.mjs";
29
+ import { _ as RiskPolicyEvaluator, s as WidgetHitlPayloadBuilder } from "../../../../../site-context-CDnyARws.mjs";
30
30
  import { h as logWidgetActivity, w as widgetApiRouteSource } from "../../../../../activity-events-CjOgr0Uv.mjs";
31
- import { i as resolveHitlRouteActor, n as hitlRequiredRouteError, t as ensureWorkflowHitlRouteRequest } from "../../../../../hitl-route-helpers-CNqNbune.mjs";
31
+ import { i as resolveHitlRouteActor, n as hitlRequiredRouteError, t as ensureWorkflowHitlRouteRequest } from "../../../../../hitl-route-helpers-SRAfZqf9.mjs";
32
32
  import { ulid } from "ulidx";
33
33
  import { z } from "zod";
34
34
 
@@ -23,9 +23,9 @@ import "../../../../utils-BftjFpR0.mjs";
23
23
  import { i as rowToWidget } from "../../../../widgets-BFh1UZN5.mjs";
24
24
  import "../../../../search-DjaP_Dw-.mjs";
25
25
  import { n as requirePerm } from "../../../../authorize-BgIG3yfN.mjs";
26
- import { _ as RiskPolicyEvaluator, s as WidgetHitlPayloadBuilder } from "../../../../site-context-Dr_5pFHr.mjs";
26
+ import { _ as RiskPolicyEvaluator, s as WidgetHitlPayloadBuilder } from "../../../../site-context-CDnyARws.mjs";
27
27
  import { h as logWidgetActivity, w as widgetApiRouteSource } from "../../../../activity-events-CjOgr0Uv.mjs";
28
- import { i as resolveHitlRouteActor, n as hitlRequiredRouteError, t as ensureWorkflowHitlRouteRequest } from "../../../../hitl-route-helpers-CNqNbune.mjs";
28
+ import { i as resolveHitlRouteActor, n as hitlRequiredRouteError, t as ensureWorkflowHitlRouteRequest } from "../../../../hitl-route-helpers-SRAfZqf9.mjs";
29
29
  import { z } from "zod";
30
30
 
31
31
  //#region src/astro/routes/api/widget-areas/[name].ts
@@ -26,9 +26,9 @@ import "../../../../utils-BftjFpR0.mjs";
26
26
  import { i as rowToWidget } from "../../../../widgets-BFh1UZN5.mjs";
27
27
  import "../../../../search-DjaP_Dw-.mjs";
28
28
  import { n as requirePerm } from "../../../../authorize-BgIG3yfN.mjs";
29
- import { _ as RiskPolicyEvaluator, s as WidgetHitlPayloadBuilder } from "../../../../site-context-Dr_5pFHr.mjs";
29
+ import { _ as RiskPolicyEvaluator, s as WidgetHitlPayloadBuilder } from "../../../../site-context-CDnyARws.mjs";
30
30
  import { h as logWidgetActivity, w as widgetApiRouteSource } from "../../../../activity-events-CjOgr0Uv.mjs";
31
- import { i as resolveHitlRouteActor, n as hitlRequiredRouteError, t as ensureWorkflowHitlRouteRequest } from "../../../../hitl-route-helpers-CNqNbune.mjs";
31
+ import { i as resolveHitlRouteActor, n as hitlRequiredRouteError, t as ensureWorkflowHitlRouteRequest } from "../../../../hitl-route-helpers-SRAfZqf9.mjs";
32
32
  import { ulid } from "ulidx";
33
33
  import { z } from "zod";
34
34
 
@@ -8,7 +8,7 @@ import "../runner-BJm_NJr2.mjs";
8
8
  import "../index-CxVXYBXq.mjs";
9
9
  import "../index-DUurmpun.mjs";
10
10
  import { d as Storage } from "../types-B7Uld4FZ.mjs";
11
- import "../bylines-DVHl9JXW.mjs";
11
+ import "../bylines-BIldBr7o.mjs";
12
12
  import "../types-DbtpYtHx.mjs";
13
13
  import "../validate-BikB29gc.mjs";
14
14
  import "../index.mjs";
@@ -4,7 +4,7 @@ import { z } from "zod";
4
4
  /** Valid role level values */
5
5
  declare const VALID_ROLE_LEVELS: Set<number>;
6
6
  /** Role level — coerces string/number to valid RoleLevel (10|20|30|40|50) */
7
- declare const roleLevel: z.ZodCoercedNumber<unknown> & z.ZodType<10 | 20 | 30 | 40 | 50, unknown, z.core.$ZodTypeInternals<10 | 20 | 30 | 40 | 50, unknown>>;
7
+ declare const roleLevel: z.ZodCoercedNumber<unknown> & z.ZodType<50 | 10 | 20 | 30 | 40, unknown, z.core.$ZodTypeInternals<50 | 10 | 20 | 30 | 40, unknown>>;
8
8
  /** Pagination query params — cursor-based */
9
9
  declare const cursorPaginationQuery: z.ZodObject<{
10
10
  cursor: z.ZodOptional<z.ZodString>;
@@ -892,8 +892,8 @@ declare const createCommentBody: z.ZodObject<{
892
892
  }, z.core.$strip>;
893
893
  declare const commentStatusBody: z.ZodObject<{
894
894
  status: z.ZodEnum<{
895
- pending: "pending";
896
895
  approved: "approved";
896
+ pending: "pending";
897
897
  spam: "spam";
898
898
  trash: "trash";
899
899
  }>;
@@ -909,8 +909,8 @@ declare const commentBulkBody: z.ZodObject<{
909
909
  }, z.core.$strip>;
910
910
  declare const commentListQuery: z.ZodObject<{
911
911
  status: z.ZodOptional<z.ZodEnum<{
912
- pending: "pending";
913
912
  approved: "approved";
913
+ pending: "pending";
914
914
  spam: "spam";
915
915
  trash: "trash";
916
916
  }>>;
@@ -944,8 +944,8 @@ declare const commentSchema: z.ZodObject<{
944
944
  authorEmail: z.ZodString;
945
945
  body: z.ZodString;
946
946
  status: z.ZodEnum<{
947
- pending: "pending";
948
947
  approved: "approved";
948
+ pending: "pending";
949
949
  spam: "spam";
950
950
  trash: "trash";
951
951
  }>;
@@ -976,8 +976,8 @@ declare const adminCommentListResponseSchema: z.ZodObject<{
976
976
  authorEmail: z.ZodString;
977
977
  body: z.ZodString;
978
978
  status: z.ZodEnum<{
979
- pending: "pending";
980
979
  approved: "approved";
980
+ pending: "pending";
981
981
  spam: "spam";
982
982
  trash: "trash";
983
983
  }>;
@@ -1022,15 +1022,15 @@ declare const contextEntryListQuery: z.ZodObject<{
1022
1022
  cursor: z.ZodOptional<z.ZodString>;
1023
1023
  }, z.core.$strip>;
1024
1024
  declare const contextEntryStaleQuery: z.ZodObject<{
1025
- cursor: z.ZodOptional<z.ZodString>;
1026
1025
  limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1027
- contextTypes: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string[] | undefined, string | undefined>>;
1028
- scope: z.ZodOptional<z.ZodString>;
1026
+ cursor: z.ZodOptional<z.ZodString>;
1029
1027
  includeInherited: z.ZodPipe<z.ZodOptional<z.ZodEnum<{
1030
1028
  true: "true";
1031
1029
  false: "false";
1032
1030
  }>>, z.ZodTransform<boolean | undefined, "true" | "false" | undefined>>;
1031
+ contextTypes: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string[] | undefined, string | undefined>>;
1033
1032
  tags: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string[] | undefined, string | undefined>>;
1033
+ scope: z.ZodOptional<z.ZodString>;
1034
1034
  createdByActorType: z.ZodOptional<z.ZodEnum<{
1035
1035
  user: "user";
1036
1036
  api_token: "api_token";
@@ -1117,8 +1117,8 @@ declare const siteBriefingQuery: z.ZodObject<{
1117
1117
  //#region src/api/schemas/hitl-requests.d.ts
1118
1118
  declare const hitlRequestListQuery: z.ZodObject<{
1119
1119
  status: z.ZodOptional<z.ZodEnum<{
1120
- pending: "pending";
1121
1120
  approved: "approved";
1121
+ pending: "pending";
1122
1122
  rejected: "rejected";
1123
1123
  }>>;
1124
1124
  priority: z.ZodOptional<z.ZodEnum<{
@@ -1145,8 +1145,8 @@ declare const hitlRequestResolveBody: z.ZodObject<{
1145
1145
  //#region src/api/schemas/review-requests.d.ts
1146
1146
  declare const reviewRequestListQuery: z.ZodObject<{
1147
1147
  status: z.ZodOptional<z.ZodEnum<{
1148
- pending: "pending";
1149
1148
  approved: "approved";
1149
+ pending: "pending";
1150
1150
  rejected: "rejected";
1151
1151
  }>>;
1152
1152
  collection: z.ZodOptional<z.ZodString>;
@@ -1194,7 +1194,7 @@ declare const signupCompleteBody: z.ZodObject<{
1194
1194
  }, z.core.$strip>;
1195
1195
  declare const inviteCreateBody: z.ZodObject<{
1196
1196
  email: z.ZodString;
1197
- role: z.ZodOptional<z.ZodCoercedNumber<unknown> & z.ZodType<10 | 20 | 30 | 40 | 50, unknown, z.core.$ZodTypeInternals<10 | 20 | 30 | 40 | 50, unknown>>>;
1197
+ role: z.ZodOptional<z.ZodCoercedNumber<unknown> & z.ZodType<50 | 10 | 20 | 30 | 40, unknown, z.core.$ZodTypeInternals<50 | 10 | 20 | 30 | 40, unknown>>>;
1198
1198
  }, z.core.$strip>;
1199
1199
  declare const inviteCompleteBody: z.ZodObject<{
1200
1200
  token: z.ZodString;
@@ -1746,15 +1746,15 @@ declare const usersListQuery: z.ZodObject<{
1746
1746
  declare const userUpdateBody: z.ZodObject<{
1747
1747
  name: z.ZodOptional<z.ZodString>;
1748
1748
  email: z.ZodOptional<z.ZodString>;
1749
- role: z.ZodOptional<z.ZodCoercedNumber<unknown> & z.ZodType<10 | 20 | 30 | 40 | 50, unknown, z.core.$ZodTypeInternals<10 | 20 | 30 | 40 | 50, unknown>>>;
1749
+ role: z.ZodOptional<z.ZodCoercedNumber<unknown> & z.ZodType<50 | 10 | 20 | 30 | 40, unknown, z.core.$ZodTypeInternals<50 | 10 | 20 | 30 | 40, unknown>>>;
1750
1750
  }, z.core.$strip>;
1751
1751
  declare const allowedDomainCreateBody: z.ZodObject<{
1752
1752
  domain: z.ZodString;
1753
- defaultRole: z.ZodCoercedNumber<unknown> & z.ZodType<10 | 20 | 30 | 40 | 50, unknown, z.core.$ZodTypeInternals<10 | 20 | 30 | 40 | 50, unknown>>;
1753
+ defaultRole: z.ZodCoercedNumber<unknown> & z.ZodType<50 | 10 | 20 | 30 | 40, unknown, z.core.$ZodTypeInternals<50 | 10 | 20 | 30 | 40, unknown>>;
1754
1754
  }, z.core.$strip>;
1755
1755
  declare const allowedDomainUpdateBody: z.ZodObject<{
1756
1756
  enabled: z.ZodOptional<z.ZodBoolean>;
1757
- defaultRole: z.ZodOptional<z.ZodCoercedNumber<unknown> & z.ZodType<10 | 20 | 30 | 40 | 50, unknown, z.core.$ZodTypeInternals<10 | 20 | 30 | 40 | 50, unknown>>>;
1757
+ defaultRole: z.ZodOptional<z.ZodCoercedNumber<unknown> & z.ZodType<50 | 10 | 20 | 30 | 40, unknown, z.core.$ZodTypeInternals<50 | 10 | 20 | 30 | 40, unknown>>>;
1758
1758
  }, z.core.$strip>;
1759
1759
  declare const userSchema: z.ZodObject<{
1760
1760
  id: z.ZodString;
@@ -22,7 +22,7 @@ import { i as pluginManifestSchema } from "../manifest-schema-CU0XL_ZK.mjs";
22
22
  import "../ssrf-z3oH8wjK.mjs";
23
23
  import { t as validateSeed } from "../validate-BGpmNtMe.mjs";
24
24
  import { t as applySeed } from "../apply-D7vu4aFn.mjs";
25
- import { n as fingerprintKey, r as generateEncryptionKey, t as DinewaySecretsError } from "../secrets-BIrqds5c.mjs";
25
+ import { n as fingerprintKey, r as generateEncryptionKey, t as DinewaySecretsError } from "../secrets-DfeNNoLa.mjs";
26
26
  import { o as convertDataForRead } from "../transport-Dt7A12-i.mjs";
27
27
  import { createHeaderAwareFetch, customHeadersInterceptor, isRedirectResponse, resolveCustomHeaders } from "../client/external-auth-headers.mjs";
28
28
  import { DinewayClient } from "../client/index.mjs";
@@ -831,6 +831,104 @@ const contentCommand = defineCommand({
831
831
  }
832
832
  });
833
833
 
834
+ //#endregion
835
+ //#region src/cli/commands/deploy/utils/astro-adapter.ts
836
+ const NODE_ADAPTER_PACKAGE = "@astrojs/node";
837
+ const VERCEL_ADAPTER_PACKAGE = "@astrojs/vercel";
838
+ const NODE_ADAPTER_VERSION = "^10.1.0";
839
+ const VERCEL_ADAPTER_VERSION = "^10.0.6";
840
+ const NODE_IMPORT_PATTERN = /^import\s+node\s+from\s+["']@astrojs\/node["'];\n?/m;
841
+ const VERCEL_IMPORT_PATTERN = /^import\s+vercel\s+from\s+["']@astrojs\/vercel["'];\n?/m;
842
+ const CONDITIONAL_ADAPTER_FLAG_PATTERN = /^const\s+isVercelDeploy\s*=\s*process\.env\.VERCEL\s*===\s*["']1["']\s*\|\|\s*process\.env\.DINEWAY_DEPLOY_TARGET\s*===\s*["']forgeway["'];\n?/m;
843
+ const CONDITIONAL_ADAPTER_PATTERN = /adapter:\s*isVercelDeploy\s*\?\s*vercel\(\)\s*:\s*node\(\{\s*mode:\s*["']standalone["']\s*\}\),/s;
844
+ const NODE_ADAPTER_PATTERN = /adapter:\s*node\(\{\s*mode:\s*["']standalone["']\s*\}\),/s;
845
+ const VERCEL_ADAPTER_PATTERN = /adapter:\s*vercel\(\),/s;
846
+ const SERVER_OUTPUT_PATTERN = /output:\s*["']server["'],/;
847
+ async function fileExists$11(path) {
848
+ try {
849
+ await access(path);
850
+ return true;
851
+ } catch {
852
+ return false;
853
+ }
854
+ }
855
+ function insertImport(source, statement) {
856
+ const lines = source.split("\n");
857
+ let insertAt = 0;
858
+ while (insertAt < lines.length && lines[insertAt]?.startsWith("import ")) insertAt += 1;
859
+ lines.splice(insertAt, 0, statement);
860
+ return lines.join("\n");
861
+ }
862
+ function configureAstroConfigSource(source, adapter) {
863
+ let next = source.replace(CONDITIONAL_ADAPTER_FLAG_PATTERN, "").replace(adapter === "vercel" ? NODE_IMPORT_PATTERN : VERCEL_IMPORT_PATTERN, "");
864
+ const wantedImport = adapter === "vercel" ? `import vercel from "${VERCEL_ADAPTER_PACKAGE}";` : `import node from "${NODE_ADAPTER_PACKAGE}";`;
865
+ const wantedAdapter = adapter === "vercel" ? "adapter: vercel()," : "adapter: node({ mode: \"standalone\" }),";
866
+ if (!next.includes(wantedImport)) next = insertImport(next, wantedImport);
867
+ next = next.replace(CONDITIONAL_ADAPTER_PATTERN, wantedAdapter).replace(adapter === "vercel" ? NODE_ADAPTER_PATTERN : VERCEL_ADAPTER_PATTERN, wantedAdapter);
868
+ if (!next.includes(wantedAdapter)) {
869
+ if (!SERVER_OUTPUT_PATTERN.test(next)) throw new Error("astro.config.mjs must include output: \"server\" before deploy adapter setup.");
870
+ next = next.replace(SERVER_OUTPUT_PATTERN, (match) => `${match}\n\t${wantedAdapter}`);
871
+ }
872
+ return next;
873
+ }
874
+ function configurePackageJson(pkg, adapter) {
875
+ const dependencies = { ...pkg.dependencies };
876
+ if (adapter === "vercel") {
877
+ delete dependencies[NODE_ADAPTER_PACKAGE];
878
+ dependencies[VERCEL_ADAPTER_PACKAGE] = dependencies[VERCEL_ADAPTER_PACKAGE] ?? VERCEL_ADAPTER_VERSION;
879
+ } else {
880
+ delete dependencies[VERCEL_ADAPTER_PACKAGE];
881
+ dependencies[NODE_ADAPTER_PACKAGE] = dependencies[NODE_ADAPTER_PACKAGE] ?? NODE_ADAPTER_VERSION;
882
+ }
883
+ return {
884
+ ...pkg,
885
+ dependencies
886
+ };
887
+ }
888
+ async function configureAstroConfig(cwd, adapter, dryRun) {
889
+ const configPath = join(cwd, "astro.config.mjs");
890
+ if (!await fileExists$11(configPath)) return [];
891
+ const current = await readFile(configPath, "utf-8");
892
+ const next = configureAstroConfigSource(current, adapter);
893
+ if (next === current) return [{
894
+ path: "astro.config.mjs",
895
+ action: "exists"
896
+ }];
897
+ if (dryRun) return [{
898
+ path: "astro.config.mjs",
899
+ action: "skipped"
900
+ }];
901
+ await writeFile(configPath, next, "utf-8");
902
+ return [{
903
+ path: "astro.config.mjs",
904
+ action: "updated"
905
+ }];
906
+ }
907
+ async function configurePackage(cwd, adapter, dryRun) {
908
+ const packagePath = join(cwd, "package.json");
909
+ if (!await fileExists$11(packagePath)) return [];
910
+ const current = await readFile(packagePath, "utf-8");
911
+ const nextPkg = configurePackageJson(JSON.parse(current), adapter);
912
+ const next = JSON.stringify(nextPkg, null, " ") + "\n";
913
+ if (next === current) return [{
914
+ path: "package.json",
915
+ action: "exists"
916
+ }];
917
+ if (dryRun) return [{
918
+ path: "package.json",
919
+ action: "skipped"
920
+ }];
921
+ await writeFile(packagePath, next, "utf-8");
922
+ return [{
923
+ path: "package.json",
924
+ action: "updated"
925
+ }];
926
+ }
927
+ async function configureAstroDeployAdapter(cwd, adapter, dryRun = false) {
928
+ if (!await fileExists$11(join(cwd, "astro.config.mjs"))) return [];
929
+ return [...await configureAstroConfig(cwd, adapter, dryRun), ...await configurePackage(cwd, adapter, dryRun)];
930
+ }
931
+
834
932
  //#endregion
835
933
  //#region src/cli/commands/deploy/utils/dockerfile.ts
836
934
  const NODE_START_COMMAND = "node ./dist/server/entry.mjs";
@@ -947,7 +1045,11 @@ const dockerTarget = {
947
1045
  description: "Generate Docker deployment files without running Docker locally.",
948
1046
  supportLevel: "stable",
949
1047
  async generateConfig(cwd, options) {
950
- const files = [await writeGeneratedFile$2(cwd, "Dockerfile", generateDockerfile(), options.dryRun), await writeGeneratedFile$2(cwd, ".dockerignore", generateDockerignore(), options.dryRun)];
1048
+ const files = [
1049
+ ...await configureAstroDeployAdapter(cwd, "node", options.dryRun),
1050
+ await writeGeneratedFile$2(cwd, "Dockerfile", generateDockerfile(), options.dryRun),
1051
+ await writeGeneratedFile$2(cwd, ".dockerignore", generateDockerignore(), options.dryRun)
1052
+ ];
951
1053
  if (options.compose) files.push(await writeGeneratedFile$2(cwd, "docker-compose.yml", generateDockerCompose(), options.dryRun));
952
1054
  return files;
953
1055
  },
@@ -1189,6 +1291,7 @@ const flyTarget = {
1189
1291
  },
1190
1292
  async generateConfig(cwd, options) {
1191
1293
  return [
1294
+ ...await configureAstroDeployAdapter(cwd, "node", options.dryRun),
1192
1295
  await writeGeneratedFile$1(cwd, "Dockerfile", generateDockerfile(), options.dryRun),
1193
1296
  await writeGeneratedFile$1(cwd, ".dockerignore", generateDockerignore(), options.dryRun),
1194
1297
  await writeGeneratedFile$1(cwd, "fly.toml", generateFlyToml(await defaultFlyAppName(cwd)), options.dryRun)
@@ -1645,7 +1748,7 @@ async function resolveShadowProjectContext(cwd, options, seedPath, deps) {
1645
1748
  let grant = await (deps.readShadowGrant ?? readForgewayShadowGrant)(platformApiUrl, savedPlaceId, cwd);
1646
1749
  let restaurant;
1647
1750
  if (!grant) {
1648
- restaurant = await resolveRestaurantInfo(cwd, options, seedPath, deps, true);
1751
+ restaurant = await resolveRestaurantInfo(cwd, options, seedPath, deps, true, false);
1649
1752
  if (!restaurant.name || !restaurant.city) throw new Error("Restaurant name and city are required for Forgeway shadow deploy.");
1650
1753
  if (options.dryRun) throw new Error("Forgeway deploy needs a Dineway shadow deploy grant. Run without --dry-run to create it.");
1651
1754
  grant = await createShadowGrant({
@@ -1861,9 +1964,9 @@ async function readSeedTitle(seedPath) {
1861
1964
  return;
1862
1965
  }
1863
1966
  }
1864
- async function resolveRestaurantInfo(cwd, options, seedPath, deps, requireForSlug) {
1967
+ async function resolveRestaurantInfo(cwd, options, seedPath, deps, requireForSlug, useSeedTitle = true) {
1865
1968
  const savedRestaurant = (await readDeployPackageJson(cwd).catch(() => null))?.dineway?.restaurant;
1866
- const seedTitle = await readSeedTitle(seedPath);
1969
+ const seedTitle = useSeedTitle ? await readSeedTitle(seedPath) : void 0;
1867
1970
  let name = options.restaurantName ?? savedRestaurant?.name ?? seedTitle;
1868
1971
  let city = options.city ?? savedRestaurant?.city;
1869
1972
  if (requireForSlug) {
@@ -2179,8 +2282,8 @@ const forgewayTarget = {
2179
2282
  recommended: true,
2180
2283
  remoteBuild: true,
2181
2284
  supportLevel: "stable",
2182
- async generateConfig(_cwd, _options) {
2183
- return [];
2285
+ async generateConfig(cwd, options) {
2286
+ return await configureAstroDeployAdapter(cwd, "vercel", options.dryRun);
2184
2287
  },
2185
2288
  async deploy(cwd, options) {
2186
2289
  return await deployForgeway(cwd, options);
@@ -2342,7 +2445,7 @@ const gcpTarget = {
2342
2445
  throw new Error("No active Google Cloud project. Run: gcloud config set project PROJECT_ID");
2343
2446
  },
2344
2447
  async generateConfig(cwd, options) {
2345
- return [await writeGeneratedFile(cwd, ".gcloudignore", GCLOUDIGNORE, options.dryRun)];
2448
+ return [...await configureAstroDeployAdapter(cwd, "node", options.dryRun), await writeGeneratedFile(cwd, ".gcloudignore", GCLOUDIGNORE, options.dryRun)];
2346
2449
  },
2347
2450
  async deploy(cwd, options) {
2348
2451
  const service = await resolveServiceName(cwd, options.env);
@@ -2468,7 +2571,6 @@ const railwayTarget = {
2468
2571
  name: "railway",
2469
2572
  label: "Railway",
2470
2573
  description: "Deploy a standard Dineway Node server with Railway CLI.",
2471
- recommended: true,
2472
2574
  supportLevel: "stable",
2473
2575
  cli: {
2474
2576
  npmPackage: "@railway/cli",
@@ -2519,8 +2621,9 @@ const railwayTarget = {
2519
2621
  });
2520
2622
  },
2521
2623
  async generateConfig(cwd, options) {
2624
+ const generated = await configureAstroDeployAdapter(cwd, "node", options.dryRun);
2522
2625
  const railwayPath = join(cwd, "railway.json");
2523
- if (await fileExists$5(railwayPath)) return [{
2626
+ if (await fileExists$5(railwayPath)) return [...generated, {
2524
2627
  path: "railway.json",
2525
2628
  action: "exists"
2526
2629
  }];
@@ -2537,12 +2640,12 @@ const railwayTarget = {
2537
2640
  restartPolicyType: "ON_FAILURE"
2538
2641
  }
2539
2642
  };
2540
- if (options.dryRun) return [{
2643
+ if (options.dryRun) return [...generated, {
2541
2644
  path: "railway.json",
2542
2645
  action: "skipped"
2543
2646
  }];
2544
2647
  await writeFile(railwayPath, JSON.stringify(config, null, " ") + "\n", "utf-8");
2545
- return [{
2648
+ return [...generated, {
2546
2649
  path: "railway.json",
2547
2650
  action: "created"
2548
2651
  }];
@@ -2744,6 +2847,7 @@ const deployCommand = defineCommand({
2744
2847
  const generated = await target.generateConfig(cwd, options);
2745
2848
  for (const file of generated) {
2746
2849
  if (file.action === "created") consola.success(`Created ${file.path}`);
2850
+ if (file.action === "updated") consola.success(`Updated ${file.path}`);
2747
2851
  if (file.action === "exists") consola.info(`${file.path} already exists`);
2748
2852
  if (file.action === "skipped") consola.info(`[dry-run] Would create ${file.path}`);
2749
2853
  }
@@ -1,5 +1,5 @@
1
1
  import { a as ContextRepository, i as parseSiteBriefingScope, n as SiteBriefingError } from "./briefing-Dk4I4VC8.mjs";
2
- import { b as toPublicContextEntry, x as toPublicContextEntryPage, y as toPublicContextDiff } from "./site-context-Dr_5pFHr.mjs";
2
+ import { b as toPublicContextEntry, x as toPublicContextEntryPage, y as toPublicContextDiff } from "./site-context-CDnyARws.mjs";
3
3
 
4
4
  //#region src/api/handlers/context.ts
5
5
  async function handleContextEntryList(db, input = {}) {
@@ -1,7 +1,7 @@
1
1
  import { t as withTransaction } from "./transaction-qfqpPVpu.mjs";
2
- import { a as filterExperimentalSiteContextWorkflowScopes, i as experimentalSiteContextWorkflowsEnabled, o as getExperimentalSiteContextWorkflowScopesDisabledMessage, r as disabledExperimentalSiteContextWorkflowScopes } from "./experimental-workflows-C7o_9V7S.mjs";
2
+ import { a as filterExperimentalSiteContextWorkflowScopes, i as experimentalSiteContextWorkflowsEnabled, o as getExperimentalSiteContextWorkflowScopesDisabledMessage, r as disabledExperimentalSiteContextWorkflowScopes } from "./experimental-workflows-BbZbIEZp.mjs";
3
3
  import { a as hashApiToken, n as TOKEN_PREFIXES, r as generatePrefixedToken, t as ALL_VALID_SCOPES } from "./api-tokens-BZ9aAeCo.mjs";
4
- import { o as lookupOAuthClient } from "./oauth-clients-BlHrNh_u.mjs";
4
+ import { o as lookupOAuthClient } from "./oauth-clients-CS1nQbC3.mjs";
5
5
  import { t as lookupUserRoleAndStatus } from "./oauth-user-lookup-B7-6YI3R.mjs";
6
6
  import { clampScopes } from "@dineway-ai/auth";
7
7
  import { generateCodeVerifier } from "arctic";
@@ -1,5 +1,5 @@
1
- import { t as ExperimentalSiteContextWorkflowDisabledError } from "./experimental-workflows-C7o_9V7S.mjs";
2
- import { n as HitlRequestService } from "./site-context-Dr_5pFHr.mjs";
1
+ import { t as ExperimentalSiteContextWorkflowDisabledError } from "./experimental-workflows-BbZbIEZp.mjs";
2
+ import { n as HitlRequestService } from "./site-context-CDnyARws.mjs";
3
3
 
4
4
  //#region src/api/handlers/hitl-requests.ts
5
5
  const HITL_NOT_FOUND_RE = /not found/i;
@@ -1,6 +1,6 @@
1
1
  import { t as apiError } from "./error-Dyf9fGZE.mjs";
2
- import { t as ExperimentalSiteContextWorkflowDisabledError } from "./experimental-workflows-C7o_9V7S.mjs";
3
- import { t as WorkflowHitlCoordinator } from "./site-context-Dr_5pFHr.mjs";
2
+ import { t as ExperimentalSiteContextWorkflowDisabledError } from "./experimental-workflows-BbZbIEZp.mjs";
3
+ import { t as WorkflowHitlCoordinator } from "./site-context-CDnyARws.mjs";
4
4
  import { T as resolveActorIdentity, p as logSiteActivitySafely } from "./activity-events-CjOgr0Uv.mjs";
5
5
  import { Role } from "@dineway-ai/auth";
6
6
 
package/dist/index.d.mts CHANGED
@@ -11,7 +11,7 @@ import { $ as TranslationSummary, A as MenuItem, B as getPluginSettings, C as Ta
11
11
  import { _ as WxrSite, a as getAllSources, b as parseWxrString, c as getUrlSources, d as importReusableBlocksAsSections, f as WxrAttachment, g as WxrPost, h as WxrData, i as clearSources, l as probeUrl, m as WxrCategory, n as parseWxrDate, o as getFileSources, p as WxrAuthor, r as wxrSource, s as getSource, t as wordpressRestSource, u as registerSource, v as WxrTag, x as decodeSlug, y as parseWxr } from "./index-DUurmpun.mjs";
12
12
  import { n as generatePlaceholder, r as normalizeMediaValue, t as PlaceholderData } from "./placeholder-2N6m2_O6.mjs";
13
13
  import { a as ListOptions, c as S3StorageConfig, d as Storage, f as StorageDescriptor, i as FileInfo, l as SignedUploadOptions, n as DinewayStorageError, o as ListResult, p as UploadResult, r as DownloadResult, s as LocalStorageConfig, t as CreateStorageFn, u as SignedUploadUrl } from "./types-B7Uld4FZ.mjs";
14
- import "./bylines-DVHl9JXW.mjs";
14
+ import "./bylines-BIldBr7o.mjs";
15
15
  import { DinewayRequestContext, getRequestContext, runWithContext } from "./request-context.mjs";
16
16
  import { adaptSandboxEntry } from "./plugins/adapt-sandbox-entry.mjs";
17
17
  import { S as UrlInput, _ as SourceAuth, a as FileInput, b as SourceProbeResult, c as ImportContext, d as ImportSource, f as NormalizedItem, g as ProbeResult, h as PostTypeMapping, i as FieldCompatibility, l as ImportFieldDef, m as PostTypeAnalysis, n as CollectionSchemaStatus, o as ImportAnalysis, p as OAuthInput, r as FetchOptions, s as ImportConfig, t as AttachmentInfo, u as ImportResult, v as SourceCapabilities, x as SuggestedAction, y as SourceInput } from "./types-DbtpYtHx.mjs";
package/dist/index.mjs CHANGED
@@ -23,7 +23,7 @@ import "./byline-9WeA8b0a.mjs";
23
23
  import { t as normalizeMediaValue } from "./normalize-ba36HTxZ.mjs";
24
24
  import { t as generatePlaceholder } from "./placeholder-BAy3k441.mjs";
25
25
  import "./seo-DASNc4gD.mjs";
26
- import { A as handleRevisionGet, B as handleContentDuplicate, D as handleMediaGet, E as handleMediaDelete, F as handleContentCountScheduled, G as handleContentPermanentDelete, H as handleContentGetIncludingTrashed, I as handleContentCountTrashed, J as handleContentSchedule, K as handleContentPublish, L as handleContentCreate, M as handleRevisionRestore, N as generateManifest, O as handleMediaList, P as handleContentCompare, Q as handleContentUpdate, R as handleContentDelete, T as handleMediaCreate, U as handleContentList, V as handleContentGet, W as handleContentListTrashed, X as handleContentUnpublish, Y as handleContentTranslations, Z as handleContentUnschedule, j as handleRevisionList, k as handleMediaUpdate, q as handleContentRestore, z as handleContentDiscardDraft } from "./api-Fu6WeyUl.mjs";
26
+ import { A as handleRevisionGet, B as handleContentDuplicate, D as handleMediaGet, E as handleMediaDelete, F as handleContentCountScheduled, G as handleContentPermanentDelete, H as handleContentGetIncludingTrashed, I as handleContentCountTrashed, J as handleContentSchedule, K as handleContentPublish, L as handleContentCreate, M as handleRevisionRestore, N as generateManifest, O as handleMediaList, P as handleContentCompare, Q as handleContentUpdate, R as handleContentDelete, T as handleMediaCreate, U as handleContentList, V as handleContentGet, W as handleContentListTrashed, X as handleContentUnpublish, Y as handleContentTranslations, Z as handleContentUnschedule, j as handleRevisionList, k as handleMediaUpdate, q as handleContentRestore, z as handleContentDiscardDraft } from "./api-CX_et2bh.mjs";
27
27
  import "./request-cache-BzuhyUXj.mjs";
28
28
  import "./dashboard-DdqRifyu.mjs";
29
29
  import "./briefing-Dk4I4VC8.mjs";
@@ -7,7 +7,7 @@ import "../runner-BJm_NJr2.mjs";
7
7
  import "../index-CxVXYBXq.mjs";
8
8
  import "../index-DUurmpun.mjs";
9
9
  import { d as Storage } from "../types-B7Uld4FZ.mjs";
10
- import "../bylines-DVHl9JXW.mjs";
10
+ import "../bylines-BIldBr7o.mjs";
11
11
  import "../types-DbtpYtHx.mjs";
12
12
  import "../validate-BikB29gc.mjs";
13
13
  import "../index.mjs";
@@ -1,7 +1,7 @@
1
1
  import { t as withTransaction } from "./transaction-qfqpPVpu.mjs";
2
- import { a as filterExperimentalSiteContextWorkflowScopes, i as experimentalSiteContextWorkflowsEnabled, o as getExperimentalSiteContextWorkflowScopesDisabledMessage, r as disabledExperimentalSiteContextWorkflowScopes } from "./experimental-workflows-C7o_9V7S.mjs";
2
+ import { a as filterExperimentalSiteContextWorkflowScopes, i as experimentalSiteContextWorkflowsEnabled, o as getExperimentalSiteContextWorkflowScopesDisabledMessage, r as disabledExperimentalSiteContextWorkflowScopes } from "./experimental-workflows-BbZbIEZp.mjs";
3
3
  import { a as hashApiToken, n as TOKEN_PREFIXES, r as generatePrefixedToken, t as ALL_VALID_SCOPES } from "./api-tokens-BZ9aAeCo.mjs";
4
- import { c as validateRedirectUri, o as lookupOAuthClient, s as validateClientRedirectUri } from "./oauth-clients-BlHrNh_u.mjs";
4
+ import { c as validateRedirectUri, o as lookupOAuthClient, s as validateClientRedirectUri } from "./oauth-clients-CS1nQbC3.mjs";
5
5
  import { t as lookupUserRoleAndStatus } from "./oauth-user-lookup-B7-6YI3R.mjs";
6
6
  import { clampScopes, computeS256Challenge, secureCompare } from "@dineway-ai/auth";
7
7
  import { generateCodeVerifier } from "arctic";
@@ -1,4 +1,4 @@
1
- import { o as getExperimentalSiteContextWorkflowScopesDisabledMessage, r as disabledExperimentalSiteContextWorkflowScopes } from "./experimental-workflows-C7o_9V7S.mjs";
1
+ import { o as getExperimentalSiteContextWorkflowScopesDisabledMessage, r as disabledExperimentalSiteContextWorkflowScopes } from "./experimental-workflows-BbZbIEZp.mjs";
2
2
  import { o as validateScopes } from "./api-tokens-BZ9aAeCo.mjs";
3
3
 
4
4
  //#region src/api/oauth/redirect-uri.ts