sanoma 0.11.19 → 0.11.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -22
- package/app/README.md +548 -0
- package/app/dist/api.d.ts +984 -0
- package/app/dist/api.js +261 -0
- package/app/dist/api.js.map +1 -0
- package/app/dist/app-bundle.d.ts +81 -0
- package/app/dist/app-bundle.js +13 -0
- package/app/dist/app-bundle.js.map +1 -0
- package/app/dist/build.d.ts +89 -0
- package/app/dist/build.js +843 -0
- package/app/dist/build.js.map +1 -0
- package/app/dist/bundle-build.d.ts +39 -0
- package/app/dist/bundle-build.js +585 -0
- package/app/dist/bundle-build.js.map +1 -0
- package/app/dist/client/assets/ArrowUp.es-DOgvoS0P.js +1 -0
- package/app/dist/client/assets/Copy.es-B0D5SwiQ.js +1 -0
- package/app/dist/client/assets/DialogTitle-BgjYK22C.js +1 -0
- package/app/dist/client/assets/FloppyDisk.es-DnuNe_a8.js +1 -0
- package/app/dist/client/assets/Globe.es-B6x2e4-a.js +1 -0
- package/app/dist/client/assets/MagnifyingGlass.es-DoNoHEhT.js +1 -0
- package/app/dist/client/assets/Play.es-BwXalGBh.js +1 -0
- package/app/dist/client/assets/Plug.es-CaZsN5P-.js +1 -0
- package/app/dist/client/assets/Plus.es-w9VPpTJB.js +1 -0
- package/app/dist/client/assets/Separator-BAhKFgSd.js +1 -0
- package/app/dist/client/assets/X.es-DKMYClf-.js +1 -0
- package/app/dist/client/assets/_id-BSRAaWtO.js +1 -0
- package/app/dist/client/assets/_id-BjDP-cPH.js +1 -0
- package/app/dist/client/assets/_id-BudM76zX.js +1 -0
- package/app/dist/client/assets/_id-C37U5bBa.js +1 -0
- package/app/dist/client/assets/_id-lmg24JVh.js +2 -0
- package/app/dist/client/assets/_name-CylqFo_t.js +1 -0
- package/app/dist/client/assets/_name-D8Gl8iwy.js +4 -0
- package/app/dist/client/assets/_name-DdPCU8pt.js +1 -0
- package/app/dist/client/assets/_name-TteWQXe0.js +1 -0
- package/app/dist/client/assets/_vendor-BLxW83yk.js +1 -0
- package/app/dist/client/assets/_vendor-Bq3uZU4-.js +1 -0
- package/app/dist/client/assets/app-chrome-H8uZ4dHI.js +16 -0
- package/app/dist/client/assets/app-scope-BeUW_8Qh.js +1 -0
- package/app/dist/client/assets/approval-DpgmTc63.js +1 -0
- package/app/dist/client/assets/apps-71ZEzcL9.js +1 -0
- package/app/dist/client/assets/apps-CoWzNm8M.js +1 -0
- package/app/dist/client/assets/change-glance-DbYcBT7H.js +1 -0
- package/app/dist/client/assets/changes-DIJvP7wQ.js +1 -0
- package/app/dist/client/assets/chat-button-BgpOfYh1.js +1 -0
- package/app/dist/client/assets/chat-prompt-hiawXcK0.js +1 -0
- package/app/dist/client/assets/clipboard-Zb0yr0Ja.js +3 -0
- package/app/dist/client/assets/code-BVYaiQEr.js +32 -0
- package/app/dist/client/assets/common-Dw2i6XKZ.js +3 -0
- package/app/dist/client/assets/composite-D9GNDzFj.js +1 -0
- package/app/dist/client/assets/connect-CIq2KJTz.js +1 -0
- package/app/dist/client/assets/connections-iqd2XbWQ.js +5 -0
- package/app/dist/client/assets/connectors-rI8_D1n1.js +1 -0
- package/app/dist/client/assets/content-DOwCrGXH.js +1 -0
- package/app/dist/client/assets/credentials-26vu6Fv5.js +1 -0
- package/app/dist/client/assets/data-sDMlKaLV.js +1 -0
- package/app/dist/client/assets/decidable-zcYI7bY8.js +1 -0
- package/app/dist/client/assets/declaration-form-BtSVvxhq.js +1 -0
- package/app/dist/client/assets/dialog-DskpUgkl.js +1 -0
- package/app/dist/client/assets/existing-BD3VgJ_8.js +1 -0
- package/app/dist/client/assets/fraunces-latin-ext-wght-normal-Ca2vKHc0.woff2 +0 -0
- package/app/dist/client/assets/fraunces-latin-wght-normal-ukD16Tqj.woff2 +0 -0
- package/app/dist/client/assets/fraunces-vietnamese-wght-normal-CnvboYUG.woff2 +0 -0
- package/app/dist/client/assets/graph-BBLU_iSl.css +1 -0
- package/app/dist/client/assets/graph-Prxl3c55.js +7 -0
- package/app/dist/client/assets/grid-diff-SMsvea6t.js +1 -0
- package/app/dist/client/assets/hosting-BBHUppH-.js +1 -0
- package/app/dist/client/assets/ibm-plex-mono-cyrillic-400-italic-2syK4fUT.woff +0 -0
- package/app/dist/client/assets/ibm-plex-mono-cyrillic-400-italic-CBJ8pzag.woff2 +0 -0
- package/app/dist/client/assets/ibm-plex-mono-cyrillic-400-normal-BSMlKf0J.woff2 +0 -0
- package/app/dist/client/assets/ibm-plex-mono-cyrillic-400-normal-CEL4l2ZJ.woff +0 -0
- package/app/dist/client/assets/ibm-plex-mono-cyrillic-500-normal-Ael50iVv.woff +0 -0
- package/app/dist/client/assets/ibm-plex-mono-cyrillic-500-normal-Bq9vWWag.woff2 +0 -0
- package/app/dist/client/assets/ibm-plex-mono-cyrillic-ext-400-italic-B4oTjJdl.woff +0 -0
- package/app/dist/client/assets/ibm-plex-mono-cyrillic-ext-400-italic-CBjNughH.woff2 +0 -0
- package/app/dist/client/assets/ibm-plex-mono-cyrillic-ext-400-normal-DMdlQ8Kv.woff +0 -0
- package/app/dist/client/assets/ibm-plex-mono-cyrillic-ext-400-normal-xuaO2J-f.woff2 +0 -0
- package/app/dist/client/assets/ibm-plex-mono-cyrillic-ext-500-normal-BIfNGwUT.woff +0 -0
- package/app/dist/client/assets/ibm-plex-mono-cyrillic-ext-500-normal-BqneJy0T.woff2 +0 -0
- package/app/dist/client/assets/ibm-plex-mono-latin-400-italic-66oory27.woff +0 -0
- package/app/dist/client/assets/ibm-plex-mono-latin-400-italic-BqAiT5Ww.woff2 +0 -0
- package/app/dist/client/assets/ibm-plex-mono-latin-400-normal-CvHOgSBP.woff +0 -0
- package/app/dist/client/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2 +0 -0
- package/app/dist/client/assets/ibm-plex-mono-latin-500-normal-CB9ihrfo.woff +0 -0
- package/app/dist/client/assets/ibm-plex-mono-latin-500-normal-DSY6xOcd.woff2 +0 -0
- package/app/dist/client/assets/ibm-plex-mono-latin-ext-400-italic-B7_fu1kp.woff2 +0 -0
- package/app/dist/client/assets/ibm-plex-mono-latin-ext-400-italic-Bg0ZHwF4.woff +0 -0
- package/app/dist/client/assets/ibm-plex-mono-latin-ext-400-normal-BmRBH3aV.woff2 +0 -0
- package/app/dist/client/assets/ibm-plex-mono-latin-ext-400-normal-D3D2R8hC.woff +0 -0
- package/app/dist/client/assets/ibm-plex-mono-latin-ext-500-normal-CAhNIIs5.woff2 +0 -0
- package/app/dist/client/assets/ibm-plex-mono-latin-ext-500-normal-CZ70TYgx.woff +0 -0
- package/app/dist/client/assets/ibm-plex-mono-vietnamese-400-italic-D6eaYXMU.woff +0 -0
- package/app/dist/client/assets/ibm-plex-mono-vietnamese-400-italic-DRuN92E5.woff2 +0 -0
- package/app/dist/client/assets/ibm-plex-mono-vietnamese-400-normal-BulugwFq.woff2 +0 -0
- package/app/dist/client/assets/ibm-plex-mono-vietnamese-400-normal-DDuiU_S-.woff +0 -0
- package/app/dist/client/assets/ibm-plex-mono-vietnamese-500-normal-C8zxqsMH.woff +0 -0
- package/app/dist/client/assets/ibm-plex-mono-vietnamese-500-normal-DZ4AoWbu.woff2 +0 -0
- package/app/dist/client/assets/ibm-plex-sans-cyrillic-ext-wght-italic-O9KpBTMP.woff2 +0 -0
- package/app/dist/client/assets/ibm-plex-sans-cyrillic-ext-wght-normal-d45eAU9y.woff2 +0 -0
- package/app/dist/client/assets/ibm-plex-sans-cyrillic-wght-italic-BC1D_hcE.woff2 +0 -0
- package/app/dist/client/assets/ibm-plex-sans-cyrillic-wght-normal-BAAhND-U.woff2 +0 -0
- package/app/dist/client/assets/ibm-plex-sans-greek-wght-italic-BOZ1G-_q.woff2 +0 -0
- package/app/dist/client/assets/ibm-plex-sans-greek-wght-normal-CmyJS8uq.woff2 +0 -0
- package/app/dist/client/assets/ibm-plex-sans-latin-ext-wght-italic-QwKXLQRc.woff2 +0 -0
- package/app/dist/client/assets/ibm-plex-sans-latin-ext-wght-normal-CIII54If.woff2 +0 -0
- package/app/dist/client/assets/ibm-plex-sans-latin-wght-italic-DKUSOBgV.woff2 +0 -0
- package/app/dist/client/assets/ibm-plex-sans-latin-wght-normal-IvpUvPa2.woff2 +0 -0
- package/app/dist/client/assets/ibm-plex-sans-vietnamese-wght-italic-CKSJVnJa.woff2 +0 -0
- package/app/dist/client/assets/ibm-plex-sans-vietnamese-wght-normal-Dg1JeJN0.woff2 +0 -0
- package/app/dist/client/assets/import-B92fd4Tl.js +1 -0
- package/app/dist/client/assets/inbox-57oGZtxE.js +1 -0
- package/app/dist/client/assets/inbox-B2AMNtk5.js +1 -0
- package/app/dist/client/assets/index-Bn3XeKy8.js +10 -0
- package/app/dist/client/assets/kit-BsK6VZTQ.js +1 -0
- package/app/dist/client/assets/lazyRouteComponent-Uri98HNq.js +1 -0
- package/app/dist/client/assets/lines-DuFrbGkQ.js +3 -0
- package/app/dist/client/assets/motion-C8lNeYvK.js +1 -0
- package/app/dist/client/assets/names-COx1nqcj.js +1 -0
- package/app/dist/client/assets/people-ISOMYCTu.js +1 -0
- package/app/dist/client/assets/permissions-Cenat84K.js +2 -0
- package/app/dist/client/assets/permissions-grid-B2GtGwzv.js +1 -0
- package/app/dist/client/assets/route-BP1XwaTB.js +1 -0
- package/app/dist/client/assets/route-KVU6QgwJ.js +1 -0
- package/app/dist/client/assets/runs-table-35lNzKLn.js +1 -0
- package/app/dist/client/assets/scenario-DSwsavxS.js +1 -0
- package/app/dist/client/assets/scenario-graph-CAzWOtqV.js +1 -0
- package/app/dist/client/assets/schema-BpqanhX0.js +1 -0
- package/app/dist/client/assets/separator-BlwkzEY0.js +1 -0
- package/app/dist/client/assets/sheet-BYL9XU5s.js +1 -0
- package/app/dist/client/assets/site-icon-DZvOfBvU.js +1 -0
- package/app/dist/client/assets/sites.index-CcNo6N8u.js +1 -0
- package/app/dist/client/assets/spinner-BGy6LWIW.js +1 -0
- package/app/dist/client/assets/start-form-Bgo9I63s.js +1 -0
- package/app/dist/client/assets/store-BGu0d2Ld.js +57 -0
- package/app/dist/client/assets/style-CCDLLPgG.css +2 -0
- package/app/dist/client/assets/table-DjbI5VTn.js +1 -0
- package/app/dist/client/assets/textarea-DXO0eUdp.js +1 -0
- package/app/dist/client/assets/useLoaderData-BQd5yMlA.js +1 -0
- package/app/dist/client/assets/useOpenInteractionType-Bin8RjM5.js +1 -0
- package/app/dist/client/assets/useRegisterFieldControl-CQPTOU7Z.js +1 -0
- package/app/dist/client/assets/useValueChanged-DMkuvFZG.js +1 -0
- package/app/dist/client/assets/utils-CMsCvwYQ.js +1 -0
- package/app/dist/client/assets/who-are-you-Bt1WI3Cz.js +1 -0
- package/app/dist/client/assets/workflow-BJpO61A-.js +1 -0
- package/app/dist/client/assets/workflow-view-DP-UlRiH.js +1 -0
- package/app/dist/client/assets/workflows-BLCBgxbx.js +1 -0
- package/app/dist/components/grid/plan.d.ts +373 -0
- package/app/dist/components/grid/plan.js +347 -0
- package/app/dist/components/grid/plan.js.map +1 -0
- package/app/dist/content-files.d.ts +59 -0
- package/app/dist/content-files.js +218 -0
- package/app/dist/content-files.js.map +1 -0
- package/app/dist/content-types.d.ts +39 -0
- package/app/dist/content-types.js +16 -0
- package/app/dist/content-types.js.map +1 -0
- package/app/dist/context.d.ts +92 -0
- package/app/dist/context.js +2 -0
- package/app/dist/context.js.map +1 -0
- package/app/dist/handler.d.ts +72 -0
- package/app/dist/handler.js +179 -0
- package/app/dist/handler.js.map +1 -0
- package/app/dist/index.d.ts +81 -0
- package/app/dist/index.js +345 -0
- package/app/dist/index.js.map +1 -0
- package/app/dist/lib/apply-plan.d.ts +29 -0
- package/app/dist/lib/apply-plan.js +65 -0
- package/app/dist/lib/apply-plan.js.map +1 -0
- package/app/dist/lib/chat.d.ts +104 -0
- package/app/dist/lib/chat.js +72 -0
- package/app/dist/lib/chat.js.map +1 -0
- package/app/dist/lib/names.d.ts +4 -0
- package/app/dist/lib/names.js +11 -0
- package/app/dist/lib/names.js.map +1 -0
- package/app/dist/login/admission.d.ts +16 -0
- package/app/dist/login/admission.js +63 -0
- package/app/dist/login/admission.js.map +1 -0
- package/app/dist/login/keys.d.ts +32 -0
- package/app/dist/login/keys.js +60 -0
- package/app/dist/login/keys.js.map +1 -0
- package/app/dist/login/page.d.ts +23 -0
- package/app/dist/login/page.js +95 -0
- package/app/dist/login/page.js.map +1 -0
- package/app/dist/login/public.d.ts +30 -0
- package/app/dist/login/public.js +101 -0
- package/app/dist/login/public.js.map +1 -0
- package/app/dist/login/staff.d.ts +23 -0
- package/app/dist/login/staff.js +330 -0
- package/app/dist/login/staff.js.map +1 -0
- package/app/dist/loopback.d.ts +32 -0
- package/app/dist/loopback.js +84 -0
- package/app/dist/loopback.js.map +1 -0
- package/app/dist/seo.d.ts +33 -0
- package/app/dist/seo.js +66 -0
- package/app/dist/seo.js.map +1 -0
- package/app/dist/server/assets/_id-BViXAagq.js +689 -0
- package/app/dist/server/assets/_id-Dt9tTylX.js +19 -0
- package/app/dist/server/assets/_id-ce1EGp7Y.js +30 -0
- package/app/dist/server/assets/_id-wB8khGTz.js +82 -0
- package/app/dist/server/assets/_id-wuJIq2ZZ.js +13 -0
- package/app/dist/server/assets/_name-BGagGBjX.js +371 -0
- package/app/dist/server/assets/_name-BqFwnyf7.js +30 -0
- package/app/dist/server/assets/_name-D_-MhjNf.js +2951 -0
- package/app/dist/server/assets/_name-DntbHE-b.js +350 -0
- package/app/dist/server/assets/_tanstack-start-manifest_v-BljuBM-G.js +259 -0
- package/app/dist/server/assets/_vendor-CNB03LWX.js +137 -0
- package/app/dist/server/assets/_vendor-CcEviOki.js +20 -0
- package/app/dist/server/assets/actor-D6iA0pDg.js +94 -0
- package/app/dist/server/assets/app-chrome-BYS81Vnx.js +1410 -0
- package/app/dist/server/assets/app-scope-CXIgOFmi.js +79 -0
- package/app/dist/server/assets/apply-plan-ybBda6vQ.js +265 -0
- package/app/dist/server/assets/approval-Su315ikC.js +315 -0
- package/app/dist/server/assets/apps-Dbg2f5Lh.js +6 -0
- package/app/dist/server/assets/apps-xwQAehch.js +184 -0
- package/app/dist/server/assets/button-f9Lc8qLl.js +906 -0
- package/app/dist/server/assets/change-glance-CpArIbGS.js +142 -0
- package/app/dist/server/assets/changes-Bc_OiDBD.js +103 -0
- package/app/dist/server/assets/chat-DMN_hoKm.js +857 -0
- package/app/dist/server/assets/chat-button-LtA80MoR.js +19 -0
- package/app/dist/server/assets/chat-prompt-BYwbMxR6.js +10 -0
- package/app/dist/server/assets/clipboard-lnKxNXLI.js +70 -0
- package/app/dist/server/assets/code-COyt8L-n.js +123 -0
- package/app/dist/server/assets/common-CWHLj7KV.js +1036 -0
- package/app/dist/server/assets/connect-BpPiu5s6.js +165 -0
- package/app/dist/server/assets/connections-DBgb1bvX.js +1197 -0
- package/app/dist/server/assets/connectors-5a5_SlHO.js +186 -0
- package/app/dist/server/assets/content-B9KP-eh3.js +3 -0
- package/app/dist/server/assets/credentials-ud_Y68hx.js +187 -0
- package/app/dist/server/assets/data-aEdhwcqy.js +168 -0
- package/app/dist/server/assets/decidable-Dj5xIrIc.js +13 -0
- package/app/dist/server/assets/declaration-form-Dfg1yNuY.js +183 -0
- package/app/dist/server/assets/dialog-BGjiw3Dx.js +84 -0
- package/app/dist/server/assets/dropdown-menu-DAC3LWas.js +97 -0
- package/app/dist/server/assets/empty-plugin-adapters-CeuNAGfU.js +4 -0
- package/app/dist/server/assets/existing-B4d4NrC8.js +125 -0
- package/app/dist/server/assets/field-C0Xx_90s.js +94 -0
- package/app/dist/server/assets/functions-BvFYzabD.js +824 -0
- package/app/dist/server/assets/graph-qYOdoz2s.js +926 -0
- package/app/dist/server/assets/grid-diff-jTvp-8wS.js +171 -0
- package/app/dist/server/assets/hosting-bbn9UvDc.js +718 -0
- package/app/dist/server/assets/import-DIwvzHb6.js +730 -0
- package/app/dist/server/assets/inbox-D6R6sWBB.js +268 -0
- package/app/dist/server/assets/inbox-Dj-5FleF.js +65 -0
- package/app/dist/server/assets/input-D63gF3G2.js +14 -0
- package/app/dist/server/assets/item-BDSXoEr_.js +97 -0
- package/app/dist/server/assets/kit-D6EulwBe.js +489 -0
- package/app/dist/server/assets/lines-B4w04QZ0.js +27 -0
- package/app/dist/server/assets/middleware-B8JRLyxx.js +1420 -0
- package/app/dist/server/assets/motion-CAc7ab9u.js +35 -0
- package/app/dist/server/assets/names-B04Si-sV.js +9 -0
- package/app/dist/server/assets/native-select-DLa-He0n.js +37 -0
- package/app/dist/server/assets/people-CkU_AxrV.js +553 -0
- package/app/dist/server/assets/permissions-BfMcQqQb.js +256 -0
- package/app/dist/server/assets/permissions-grid-DWP9FAAS.js +91 -0
- package/app/dist/server/assets/route-BTT7nMJq.js +17 -0
- package/app/dist/server/assets/route-CF_8jQYY.js +22 -0
- package/app/dist/server/assets/router-BvYtxrVN.js +2334 -0
- package/app/dist/server/assets/runs-table-BBudn12Y.js +87 -0
- package/app/dist/server/assets/scenario-BXGTSTiP.js +141 -0
- package/app/dist/server/assets/scenario-graph-BErXIRgF.js +46 -0
- package/app/dist/server/assets/schema-DBT8KJsP.js +204 -0
- package/app/dist/server/assets/separator-8MZ7vR3f.js +13 -0
- package/app/dist/server/assets/sheet-5Cyp-4UW.js +74 -0
- package/app/dist/server/assets/site-icon-DJisMQUK.js +22 -0
- package/app/dist/server/assets/sites.index-1l0BtgVf.js +138 -0
- package/app/dist/server/assets/spinner-C1ZW08lp.js +15 -0
- package/app/dist/server/assets/start-CSU4irVK.js +75 -0
- package/app/dist/server/assets/start-form-DI60UOrc.js +399 -0
- package/app/dist/server/assets/table-DtPk_h_5.js +51 -0
- package/app/dist/server/assets/textarea-f0Ip5ed1.js +12 -0
- package/app/dist/server/assets/utils-wksS9pYh.js +138 -0
- package/app/dist/server/assets/who-are-you-ZGyMnpVi.js +122 -0
- package/app/dist/server/assets/workflow-Z99QWO42.js +115 -0
- package/app/dist/server/assets/workflow-view-C8X8U11S.js +1427 -0
- package/app/dist/server/assets/workflows-C0kJoGf1.js +344 -0
- package/app/dist/server/chat.d.ts +35 -0
- package/app/dist/server/chat.js +231 -0
- package/app/dist/server/chat.js.map +1 -0
- package/app/dist/server/core.d.ts +186 -0
- package/app/dist/server/core.js +716 -0
- package/app/dist/server/core.js.map +1 -0
- package/app/dist/server/go-live.d.ts +90 -0
- package/app/dist/server/go-live.js +351 -0
- package/app/dist/server/go-live.js.map +1 -0
- package/app/dist/server/models.d.ts +24 -0
- package/app/dist/server/models.js +42 -0
- package/app/dist/server/models.js.map +1 -0
- package/app/dist/server/people.d.ts +14 -0
- package/app/dist/server/people.js +41 -0
- package/app/dist/server/people.js.map +1 -0
- package/app/dist/server/secrets.d.ts +3 -0
- package/app/dist/server/secrets.js +5 -0
- package/app/dist/server/secrets.js.map +1 -0
- package/app/dist/server/server.js +7024 -0
- package/app/dist/server/setup.d.ts +75 -0
- package/app/dist/server/setup.js +308 -0
- package/app/dist/server/setup.js.map +1 -0
- package/app/dist/server/webhooks.d.ts +11 -0
- package/app/dist/server/webhooks.js +40 -0
- package/app/dist/server/webhooks.js.map +1 -0
- package/app/dist/site-path.d.ts +24 -0
- package/app/dist/site-path.js +27 -0
- package/app/dist/site-path.js.map +1 -0
- package/app/dist/snapshot-build.d.ts +23 -0
- package/app/dist/snapshot-build.js +255 -0
- package/app/dist/snapshot-build.js.map +1 -0
- package/app/dist/snapshot.d.ts +56 -0
- package/app/dist/snapshot.js +19 -0
- package/app/dist/snapshot.js.map +1 -0
- package/app/dist/steps/agent/acp.d.ts +116 -0
- package/app/dist/steps/agent/acp.js +788 -0
- package/app/dist/steps/agent/acp.js.map +1 -0
- package/app/dist/steps/agent/box-session.d.ts +46 -0
- package/app/dist/steps/agent/box-session.js +179 -0
- package/app/dist/steps/agent/box-session.js.map +1 -0
- package/app/dist/steps/agent/carrier.d.ts +56 -0
- package/app/dist/steps/agent/carrier.js +215 -0
- package/app/dist/steps/agent/carrier.js.map +1 -0
- package/app/dist/steps/agent/checkout.d.ts +73 -0
- package/app/dist/steps/agent/checkout.js +167 -0
- package/app/dist/steps/agent/checkout.js.map +1 -0
- package/app/dist/steps/agent/harness.d.ts +5 -0
- package/app/dist/steps/agent/harness.js +199 -0
- package/app/dist/steps/agent/harness.js.map +1 -0
- package/app/dist/steps/agent/local-box.d.ts +16 -0
- package/app/dist/steps/agent/local-box.js +37 -0
- package/app/dist/steps/agent/local-box.js.map +1 -0
- package/app/dist/steps/agent/loop.d.ts +3 -0
- package/app/dist/steps/agent/loop.js +60 -0
- package/app/dist/steps/agent/loop.js.map +1 -0
- package/app/dist/steps/agent/prompt.d.ts +9 -0
- package/app/dist/steps/agent/prompt.js +107 -0
- package/app/dist/steps/agent/prompt.js.map +1 -0
- package/app/dist/steps/agent/tools.d.ts +2814 -0
- package/app/dist/steps/agent/tools.js +248 -0
- package/app/dist/steps/agent/tools.js.map +1 -0
- package/app/dist/steps/agent/transcript.d.ts +19 -0
- package/app/dist/steps/agent/transcript.js +66 -0
- package/app/dist/steps/agent/transcript.js.map +1 -0
- package/app/dist/steps/agent/turn.d.ts +17 -0
- package/app/dist/steps/agent/turn.js +59 -0
- package/app/dist/steps/agent/turn.js.map +1 -0
- package/app/dist/steps/connect.d.ts +25 -0
- package/app/dist/steps/connect.js +141 -0
- package/app/dist/steps/connect.js.map +1 -0
- package/app/dist/steps/go-live.d.ts +40 -0
- package/app/dist/steps/go-live.js +310 -0
- package/app/dist/steps/go-live.js.map +1 -0
- package/app/dist/steps/index.d.ts +3 -0
- package/app/dist/steps/index.js +11 -0
- package/app/dist/steps/index.js.map +1 -0
- package/app/dist/steps/writes.d.ts +29 -0
- package/app/dist/steps/writes.js +174 -0
- package/app/dist/steps/writes.js.map +1 -0
- package/app/dist/stylesheet.json +1 -0
- package/app/src/actor.ts +130 -0
- package/app/src/api-client.ts +73 -0
- package/app/src/api.ts +686 -0
- package/app/src/app-bundle.ts +77 -0
- package/app/src/build.ts +907 -0
- package/app/src/bundle-build.ts +661 -0
- package/app/src/components/app-chrome.tsx +107 -0
- package/app/src/components/app-scope.tsx +98 -0
- package/app/src/components/apply-plan.tsx +191 -0
- package/app/src/components/approval.tsx +367 -0
- package/app/src/components/base-node.tsx +12 -0
- package/app/src/components/boundaries.tsx +64 -0
- package/app/src/components/change-decision.tsx +123 -0
- package/app/src/components/change-glance.tsx +44 -0
- package/app/src/components/chat-button.tsx +20 -0
- package/app/src/components/code.tsx +116 -0
- package/app/src/components/common.tsx +895 -0
- package/app/src/components/connections.tsx +844 -0
- package/app/src/components/credentials.tsx +219 -0
- package/app/src/components/data-grid.tsx +247 -0
- package/app/src/components/declaration-form.tsx +194 -0
- package/app/src/components/density.tsx +44 -0
- package/app/src/components/field-diff.tsx +91 -0
- package/app/src/components/go-live.tsx +669 -0
- package/app/src/components/graph.css +14 -0
- package/app/src/components/graph.tsx +563 -0
- package/app/src/components/grid/cell.tsx +149 -0
- package/app/src/components/grid/clipboard.ts +83 -0
- package/app/src/components/grid/collection.ts +476 -0
- package/app/src/components/grid/columns.tsx +357 -0
- package/app/src/components/grid/conflicts.tsx +81 -0
- package/app/src/components/grid/gestures.ts +169 -0
- package/app/src/components/grid/grid.tsx +760 -0
- package/app/src/components/grid/keys.ts +83 -0
- package/app/src/components/grid/plan.ts +389 -0
- package/app/src/components/grid/review.tsx +340 -0
- package/app/src/components/grid/staged.tsx +454 -0
- package/app/src/components/import/match.tsx +212 -0
- package/app/src/components/import/review.tsx +121 -0
- package/app/src/components/import/sheet.ts +166 -0
- package/app/src/components/import/upload.tsx +116 -0
- package/app/src/components/inspector.tsx +310 -0
- package/app/src/components/kit.tsx +276 -0
- package/app/src/components/ledger.tsx +344 -0
- package/app/src/components/new-run.tsx +114 -0
- package/app/src/components/permissions-diff.tsx +66 -0
- package/app/src/components/permissions-grid.tsx +133 -0
- package/app/src/components/record-form.tsx +208 -0
- package/app/src/components/record-history.tsx +119 -0
- package/app/src/components/runs-table.tsx +111 -0
- package/app/src/components/scenario.tsx +102 -0
- package/app/src/components/shell/bar.tsx +285 -0
- package/app/src/components/shell/chat-parts.tsx +326 -0
- package/app/src/components/shell/chat-prompt.ts +26 -0
- package/app/src/components/shell/chat.tsx +375 -0
- package/app/src/components/shell/draft-card.tsx +123 -0
- package/app/src/components/shell/nav-user.tsx +174 -0
- package/app/src/components/shell/prefs.ts +28 -0
- package/app/src/components/site-icon.tsx +17 -0
- package/app/src/components/store-move.tsx +313 -0
- package/app/src/components/ui/alert.tsx +55 -0
- package/app/src/components/ui/avatar.tsx +90 -0
- package/app/src/components/ui/badge.tsx +48 -0
- package/app/src/components/ui/breadcrumb.tsx +92 -0
- package/app/src/components/ui/button-group.tsx +78 -0
- package/app/src/components/ui/button.tsx +49 -0
- package/app/src/components/ui/card.tsx +69 -0
- package/app/src/components/ui/checkbox.tsx +25 -0
- package/app/src/components/ui/collapsible.tsx +15 -0
- package/app/src/components/ui/dialog.tsx +132 -0
- package/app/src/components/ui/dropdown-menu.tsx +252 -0
- package/app/src/components/ui/empty.tsx +86 -0
- package/app/src/components/ui/field.tsx +218 -0
- package/app/src/components/ui/input.tsx +19 -0
- package/app/src/components/ui/item.tsx +179 -0
- package/app/src/components/ui/label.tsx +17 -0
- package/app/src/components/ui/native-select.tsx +47 -0
- package/app/src/components/ui/popover.tsx +62 -0
- package/app/src/components/ui/separator.tsx +18 -0
- package/app/src/components/ui/sheet.tsx +102 -0
- package/app/src/components/ui/skeleton.tsx +7 -0
- package/app/src/components/ui/slider.tsx +40 -0
- package/app/src/components/ui/sonner.tsx +41 -0
- package/app/src/components/ui/spinner.tsx +17 -0
- package/app/src/components/ui/table.tsx +72 -0
- package/app/src/components/ui/tabs.tsx +68 -0
- package/app/src/components/ui/textarea.tsx +17 -0
- package/app/src/components/ui/tooltip.tsx +51 -0
- package/app/src/components/who-are-you.tsx +128 -0
- package/app/src/components/workflow-runs.tsx +213 -0
- package/app/src/components/workflow-view.tsx +293 -0
- package/app/src/components/workflow.tsx +142 -0
- package/app/src/components/zoom-slider.tsx +69 -0
- package/app/src/content-files.ts +248 -0
- package/app/src/content-types.ts +49 -0
- package/app/src/content.ts +49 -0
- package/app/src/context.ts +91 -0
- package/app/src/dev-imports.ts +5 -0
- package/app/src/env.d.ts +48 -0
- package/app/src/form/run-form.tsx +45 -0
- package/app/src/form/schema.ts +308 -0
- package/app/src/form/secure-fields.ts +42 -0
- package/app/src/form/start-form.tsx +427 -0
- package/app/src/form/will-ask.tsx +25 -0
- package/app/src/functions.ts +300 -0
- package/app/src/graph/layout.ts +238 -0
- package/app/src/graph/outline-graph.ts +123 -0
- package/app/src/graph/run-graph.ts +193 -0
- package/app/src/graph/scenario-graph.ts +48 -0
- package/app/src/graph/types.ts +144 -0
- package/app/src/graph/wildcard.ts +40 -0
- package/app/src/handler.ts +257 -0
- package/app/src/icon-small.svg +1 -0
- package/app/src/icon.svg +1 -0
- package/app/src/index.ts +455 -0
- package/app/src/lib/apply-plan.ts +79 -0
- package/app/src/lib/apps.ts +10 -0
- package/app/src/lib/changes.ts +86 -0
- package/app/src/lib/chat.ts +146 -0
- package/app/src/lib/cn-tables.ts +116 -0
- package/app/src/lib/decidable.ts +21 -0
- package/app/src/lib/desktop.ts +52 -0
- package/app/src/lib/grid-diff.ts +205 -0
- package/app/src/lib/inbox.ts +59 -0
- package/app/src/lib/lines.ts +31 -0
- package/app/src/lib/locales.ts +101 -0
- package/app/src/lib/motion.ts +17 -0
- package/app/src/lib/names.ts +12 -0
- package/app/src/lib/preview.ts +49 -0
- package/app/src/lib/records.ts +56 -0
- package/app/src/lib/sites.ts +92 -0
- package/app/src/lib/time.ts +10 -0
- package/app/src/lib/tone.ts +78 -0
- package/app/src/lib/utils.ts +13 -0
- package/app/src/login/admission.ts +72 -0
- package/app/src/login/keys.ts +65 -0
- package/app/src/login/page.ts +119 -0
- package/app/src/login/public.ts +138 -0
- package/app/src/login/staff.ts +399 -0
- package/app/src/loopback.ts +96 -0
- package/app/src/middleware.ts +26 -0
- package/app/src/public-fns.ts +5 -0
- package/app/src/queries.ts +859 -0
- package/app/src/router.tsx +45 -0
- package/app/src/routes/__root.tsx +223 -0
- package/app/src/routes/api/call.ts +17 -0
- package/app/src/routes/api/chat.ts +15 -0
- package/app/src/routes/api/sign-in.ts +14 -0
- package/app/src/routes/apps/$name.tsx +380 -0
- package/app/src/routes/apps/index.tsx +204 -0
- package/app/src/routes/apps/route.tsx +8 -0
- package/app/src/routes/changes/$id.tsx +205 -0
- package/app/src/routes/changes/index.tsx +103 -0
- package/app/src/routes/changes/route.tsx +8 -0
- package/app/src/routes/connect/$vendor/callback.ts +9 -0
- package/app/src/routes/connectors/$vendor.tsx +184 -0
- package/app/src/routes/connectors/index.tsx +194 -0
- package/app/src/routes/connectors/route.tsx +8 -0
- package/app/src/routes/data/$name/import.tsx +177 -0
- package/app/src/routes/data/$name/index.tsx +266 -0
- package/app/src/routes/data/$name/route.tsx +18 -0
- package/app/src/routes/data/index.tsx +178 -0
- package/app/src/routes/data/route.tsx +11 -0
- package/app/src/routes/hosting/connect.tsx +156 -0
- package/app/src/routes/hosting/existing.tsx +115 -0
- package/app/src/routes/hosting/index.tsx +845 -0
- package/app/src/routes/hosting/route.tsx +11 -0
- package/app/src/routes/inbox.tsx +310 -0
- package/app/src/routes/index.tsx +8 -0
- package/app/src/routes/people.tsx +624 -0
- package/app/src/routes/permissions.tsx +284 -0
- package/app/src/routes/resources.tsx +10 -0
- package/app/src/routes/runs/$id.tsx +14 -0
- package/app/src/routes/runs/index.tsx +8 -0
- package/app/src/routes/setup/connect.tsx +10 -0
- package/app/src/routes/setup/existing.tsx +8 -0
- package/app/src/routes/setup/github/callback.ts +7 -0
- package/app/src/routes/setup/github/manifest.ts +7 -0
- package/app/src/routes/setup/index.tsx +8 -0
- package/app/src/routes/sites.index.tsx +131 -0
- package/app/src/routes/start.tsx +15 -0
- package/app/src/routes/workflows/$name/index.tsx +140 -0
- package/app/src/routes/workflows/$name/new.tsx +11 -0
- package/app/src/routes/workflows/$name/route.tsx +58 -0
- package/app/src/routes/workflows/$name/runs/$id.tsx +97 -0
- package/app/src/routes/workflows/index.tsx +413 -0
- package/app/src/routes/workflows/route.tsx +11 -0
- package/app/src/seo.ts +94 -0
- package/app/src/server/available.ts +89 -0
- package/app/src/server/chat.ts +249 -0
- package/app/src/server/columns.ts +52 -0
- package/app/src/server/connect.ts +89 -0
- package/app/src/server/core.ts +889 -0
- package/app/src/server/go-live.ts +420 -0
- package/app/src/server/host-derived.ts +72 -0
- package/app/src/server/models.ts +52 -0
- package/app/src/server/people.ts +51 -0
- package/app/src/server/secrets.ts +6 -0
- package/app/src/server/setup.ts +335 -0
- package/app/src/server/webhooks.ts +38 -0
- package/app/src/server.ts +4 -0
- package/app/src/site-path.ts +35 -0
- package/app/src/site-url.ts +53 -0
- package/app/src/site.ts +154 -0
- package/app/src/snapshot-build.ts +288 -0
- package/app/src/snapshot.ts +69 -0
- package/app/src/start.ts +63 -0
- package/app/src/steps/agent/acp.ts +918 -0
- package/app/src/steps/agent/box-session.ts +230 -0
- package/app/src/steps/agent/carrier.ts +242 -0
- package/app/src/steps/agent/checkout.ts +222 -0
- package/app/src/steps/agent/harness.ts +265 -0
- package/app/src/steps/agent/local-box.ts +40 -0
- package/app/src/steps/agent/loop.ts +80 -0
- package/app/src/steps/agent/prompt.ts +124 -0
- package/app/src/steps/agent/tools.ts +300 -0
- package/app/src/steps/agent/transcript.ts +95 -0
- package/app/src/steps/agent/turn.ts +63 -0
- package/app/src/steps/connect.ts +151 -0
- package/app/src/steps/go-live.ts +358 -0
- package/app/src/steps/index.ts +13 -0
- package/app/src/steps/writes.ts +200 -0
- package/app/src/style.css +69 -0
- package/app/src/ui.css +301 -0
- package/app/src/ui.ts +147 -0
- package/app/src/worker/app.ts +189 -0
- package/app/src/worker/assets.ts +12 -0
- package/app/src/worker/main.ts +32 -0
- package/app/src/worker/missing.js +13 -0
- package/app/tsconfig.site.json +20 -0
- package/better-auth/README.md +115 -0
- package/better-auth/dist/connector.d.ts +5 -0
- package/better-auth/dist/connector.js +14 -0
- package/better-auth/dist/connector.js.map +1 -0
- package/better-auth/dist/db/staff.d.ts +695 -0
- package/better-auth/dist/db/staff.js +4 -0
- package/better-auth/dist/db/staff.js.map +1 -0
- package/better-auth/dist/db/tables.d.ts +702 -0
- package/better-auth/dist/db/tables.js +69 -0
- package/better-auth/dist/db/tables.js.map +1 -0
- package/better-auth/dist/db/visitors.d.ts +695 -0
- package/better-auth/dist/db/visitors.js +4 -0
- package/better-auth/dist/db/visitors.js.map +1 -0
- package/better-auth/dist/index.d.ts +11 -0
- package/better-auth/dist/index.js +16 -0
- package/better-auth/dist/index.js.map +1 -0
- package/better-auth/dist/instance.d.ts +716 -0
- package/better-auth/dist/instance.js +210 -0
- package/better-auth/dist/instance.js.map +1 -0
- package/better-auth/dist/login.d.ts +13 -0
- package/better-auth/dist/login.js +139 -0
- package/better-auth/dist/login.js.map +1 -0
- package/better-auth/dist/staff.d.ts +12 -0
- package/better-auth/dist/staff.js +254 -0
- package/better-auth/dist/staff.js.map +1 -0
- package/better-auth/drizzle/staff/0000_closed_toro.sql +64 -0
- package/better-auth/drizzle/staff/meta/0000_snapshot.json +431 -0
- package/better-auth/drizzle/staff/meta/_journal.json +13 -0
- package/better-auth/drizzle/visitors/0000_natural_dexter_bennett.sql +64 -0
- package/better-auth/drizzle/visitors/meta/0000_snapshot.json +431 -0
- package/better-auth/drizzle/visitors/meta/_journal.json +13 -0
- package/bridge/README.md +146 -0
- package/bridge/dist/bin.d.ts +20 -0
- package/bridge/dist/bin.js +37 -0
- package/bridge/dist/bin.js.map +1 -0
- package/bridge/dist/bridge.d.ts +159 -0
- package/bridge/dist/bridge.js +189 -0
- package/bridge/dist/bridge.js.map +1 -0
- package/bridge/dist/client.d.ts +37 -0
- package/bridge/dist/client.js +118 -0
- package/bridge/dist/client.js.map +1 -0
- package/bridge/dist/configure.d.ts +5 -0
- package/bridge/dist/configure.js +17 -0
- package/bridge/dist/configure.js.map +1 -0
- package/bridge/dist/connector.d.ts +164 -0
- package/bridge/dist/connector.js +335 -0
- package/bridge/dist/connector.js.map +1 -0
- package/bridge/dist/fake.d.ts +4 -0
- package/bridge/dist/fake.js +4 -0
- package/bridge/dist/fake.js.map +1 -0
- package/bridge/dist/fixtures.d.ts +36 -0
- package/bridge/dist/fixtures.js +18 -0
- package/bridge/dist/fixtures.js.map +1 -0
- package/bridge/dist/gen/bridge/v1/bridge_pb.d.ts +694 -0
- package/bridge/dist/gen/bridge/v1/bridge_pb.js +173 -0
- package/bridge/dist/gen/bridge/v1/bridge_pb.js.map +1 -0
- package/bridge/dist/index.d.ts +6 -0
- package/bridge/dist/index.js +7 -0
- package/bridge/dist/index.js.map +1 -0
- package/bridge/dist/json.d.ts +7 -0
- package/bridge/dist/json.js +5 -0
- package/bridge/dist/json.js.map +1 -0
- package/bridge/dist/lazy.d.ts +20 -0
- package/bridge/dist/lazy.js +60 -0
- package/bridge/dist/lazy.js.map +1 -0
- package/bridge/dist/pins.d.ts +12 -0
- package/bridge/dist/pins.js +17 -0
- package/bridge/dist/pins.js.map +1 -0
- package/bridge/dist/replies.d.ts +79 -0
- package/bridge/dist/replies.js +217 -0
- package/bridge/dist/replies.js.map +1 -0
- package/bridge/dist/schema.d.ts +65 -0
- package/bridge/dist/schema.js +9 -0
- package/bridge/dist/schema.js.map +1 -0
- package/bridge/dist/tffake.d.ts +57 -0
- package/bridge/dist/tffake.js +105 -0
- package/bridge/dist/tffake.js.map +1 -0
- package/bridge/dist/tfschema/cli.d.ts +10 -0
- package/bridge/dist/tfschema/cli.js +57 -0
- package/bridge/dist/tfschema/cli.js.map +1 -0
- package/bridge/dist/tfschema/ctyToZod.d.ts +20 -0
- package/bridge/dist/tfschema/ctyToZod.js +49 -0
- package/bridge/dist/tfschema/ctyToZod.js.map +1 -0
- package/bridge/dist/tfschema/generate.d.ts +16 -0
- package/bridge/dist/tfschema/generate.js +159 -0
- package/bridge/dist/tfschema/generate.js.map +1 -0
- package/bridge/dist/tfschema/state.d.ts +14 -0
- package/bridge/dist/tfschema/state.js +51 -0
- package/bridge/dist/tfschema/state.js.map +1 -0
- package/bridge/dist/tfschema/types.d.ts +52 -0
- package/bridge/dist/tfschema/types.js +2 -0
- package/bridge/dist/tfschema/types.js.map +1 -0
- package/bridge/dist/tfschema.d.ts +4 -0
- package/bridge/dist/tfschema.js +8 -0
- package/bridge/dist/tfschema.js.map +1 -0
- package/bridge/testdata/README.md +64 -0
- package/bridge/testdata/pins.json +27 -0
- package/bridge/testdata/replies/integrations_github_6.13.0/github_branch_protection/provider-bridge_main/import.json +32 -0
- package/bridge/testdata/replies/integrations_github_6.13.0/github_repository/provider-bridge/import.json +30 -0
- package/bridge/testdata/replies/integrations_github_6.13.0/github_repository/provider-bridge/read.json +29 -0
- package/bridge/testdata/replies/integrations_github_6.13.0/github_repository/sanoma/import.json +30 -0
- package/bridge/testdata/replies/integrations_github_6.13.0/github_repository/sanoma/read.json +29 -0
- package/bridge/testdata/replies/integrations_github_6.13.0/github_repository/sanoma-apply-test/apply.json +29 -0
- package/bridge/testdata/replies/integrations_github_6.13.0/github_repository/sanoma-apply-test/plan.json +40 -0
- package/bridge/testdata/replies/integrations_github_6.13.0/github_repository/sanoma-apply-test-delete/apply.json +23 -0
- package/bridge/testdata/replies/integrations_github_6.13.0/github_repository/sanoma-apply-test-delete/plan.json +25 -0
- package/bridge/testdata/replies/integrations_github_6.13.0/github_repository/sanoma-apply-test-update-1/apply.json +33 -0
- package/bridge/testdata/replies/integrations_github_6.13.0/github_repository/sanoma-apply-test-update-1/plan.json +32 -0
- package/bridge/testdata/replies/integrations_github_6.13.0/github_repository_collaborator/provider-bridge_notsaltylol/import.json +29 -0
- package/bridge/testdata/replies/integrations_github_6.13.0/github_repository_collaborator/provider-bridge_notsaltylol/read.json +28 -0
- package/bridge/testdata/replies/integrations_github_6.13.0/github_repository_collaborator/provider-bridge_octocat/import.json +27 -0
- package/bridge/testdata/replies/integrations_github_6.13.0/github_repository_collaborator/sanoma-apply-test-collaborator/apply.json +28 -0
- package/bridge/testdata/replies/integrations_github_6.13.0/github_repository_collaborator/sanoma-apply-test-collaborator/plan.json +29 -0
- package/bridge/testdata/replies/integrations_github_6.13.0/github_repository_collaborator/sanoma-apply-test-collaborator-delete/apply.json +21 -0
- package/bridge/testdata/replies/integrations_github_6.13.0/github_repository_collaborator/sanoma-apply-test-collaborator-delete/plan.json +23 -0
- package/bridge/testdata/replies/integrations_github_6.13.0/github_repository_collaborator/sanoma-apply-test-collaborator-update-1/apply-delete.json +21 -0
- package/bridge/testdata/replies/integrations_github_6.13.0/github_repository_collaborator/sanoma-apply-test-collaborator-update-1/apply.json +28 -0
- package/bridge/testdata/replies/integrations_github_6.13.0/github_repository_collaborator/sanoma-apply-test-collaborator-update-1/plan.json +33 -0
- package/bridge/testdata/replies/integrations_github_6.13.0/github_repository_collaborator/sanoma-apply-test_octocat/import.json +29 -0
- package/bridge/testdata/replies/integrations_github_6.13.0/github_repository_collaborator/sanoma-apply-test_octocat/read.json +28 -0
- package/bridge/testdata/replies/integrations_github_6.13.0/github_repository_deploy_key/sanoma-apply-test-key/apply.json +27 -0
- package/bridge/testdata/replies/integrations_github_6.13.0/github_repository_deploy_key/sanoma-apply-test-key/plan.json +29 -0
- package/bridge/testdata/replies/integrations_github_6.13.0/github_repository_deploy_key/sanoma-apply-test-key-delete/apply.json +21 -0
- package/bridge/testdata/replies/integrations_github_6.13.0/github_repository_deploy_key/sanoma-apply-test-key-delete/plan.json +23 -0
- package/bridge/testdata/replies/integrations_github_6.13.0/github_repository_deploy_key/sanoma-apply-test_1000000101/import.json +28 -0
- package/bridge/testdata/replies/integrations_github_6.13.0/github_repository_deploy_key/sanoma-apply-test_1000000101/read.json +26 -0
- package/bridge/testdata/replies/kreuzwerker_docker_4.6.0/docker_container/484189f591100781981bb24cb4e365c4ae74db9eb1a0ff03489a7e061b339132/import.json +28 -0
- package/bridge/testdata/replies/kreuzwerker_docker_4.6.0/docker_container/484189f591100781981bb24cb4e365c4ae74db9eb1a0ff03489a7e061b339132-aede5c47/apply-delete.json +21 -0
- package/bridge/testdata/replies/kreuzwerker_docker_4.6.0/docker_container/484189f591100781981bb24cb4e365c4ae74db9eb1a0ff03489a7e061b339132-aede5c47/apply.json +28 -0
- package/bridge/testdata/replies/kreuzwerker_docker_4.6.0/docker_container/484189f591100781981bb24cb4e365c4ae74db9eb1a0ff03489a7e061b339132-aede5c47/plan.json +49 -0
- package/bridge/testdata/replies/kreuzwerker_docker_4.6.0/docker_container/484189f591100781981bb24cb4e365c4ae74db9eb1a0ff03489a7e061b339132-c0239934/plan.json +27 -0
- package/bridge/testdata/replies/kreuzwerker_docker_4.6.0/docker_container/8a4dfc1ebfe1b74d277a6e4017921d06e302d4c10fe6999e8ab5cb1522dcb2ad/import.json +25 -0
- package/bridge/testdata/replies/kreuzwerker_docker_4.6.0/docker_container/8a4dfc1ebfe1b74d277a6e4017921d06e302d4c10fe6999e8ab5cb1522dcb2ad-delete/apply.json +21 -0
- package/bridge/testdata/replies/kreuzwerker_docker_4.6.0/docker_container/8a4dfc1ebfe1b74d277a6e4017921d06e302d4c10fe6999e8ab5cb1522dcb2ad-delete/plan.json +23 -0
- package/bridge/testdata/replies/kreuzwerker_docker_4.6.0/docker_container/create-2463512b/apply.json +28 -0
- package/bridge/testdata/replies/kreuzwerker_docker_4.6.0/docker_container/create-2463512b/plan.json +42 -0
- package/bridge/testdata/schemas/integrations_github_6.13.0.json +10680 -0
- package/bridge/testdata/schemas/kreuzwerker_docker_4.6.0.json +4833 -0
- package/bridge/testdata/schemas/stripe_stripe_0.3.0.json +55612 -0
- package/bridge/testdata/schemas/supabase_supabase_1.11.0.json +790 -0
- package/dev/README.md +33 -0
- package/dev/dist/cli.d.ts +5 -0
- package/dev/dist/cli.js +120 -0
- package/dev/dist/cli.js.map +1 -0
- package/dev/dist/links.d.ts +33 -0
- package/dev/dist/links.js +86 -0
- package/dev/dist/links.js.map +1 -0
- package/dist/check.d.ts +1 -1
- package/dist/check.js +8 -8
- package/dist/check.js.map +1 -1
- package/dist/cli.js +29 -25
- package/dist/cli.js.map +1 -1
- package/dist/config.d.ts +1 -4
- package/dist/config.js +2 -4
- package/dist/config.js.map +1 -1
- package/dist/dev.d.ts +5 -8
- package/dist/dev.js +13 -50
- package/dist/dev.js.map +1 -1
- package/dist/env.js +1 -1
- package/dist/env.js.map +1 -1
- package/dist/events.d.ts +1 -1
- package/dist/identity.js +1 -1
- package/dist/identity.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/init.d.ts +4 -6
- package/dist/init.js +21 -15
- package/dist/init.js.map +1 -1
- package/dist/key.js +1 -1
- package/dist/key.js.map +1 -1
- package/dist/ledger.d.ts +1 -1
- package/dist/ledger.js +1 -1
- package/dist/ledger.js.map +1 -1
- package/dist/listen.d.ts +1 -1
- package/dist/listen.js +1 -1
- package/dist/listen.js.map +1 -1
- package/dist/oxlint-plugin.js +2 -2
- package/dist/oxlint-plugin.js.map +1 -1
- package/dist/postgres.js +1 -1
- package/dist/postgres.js.map +1 -1
- package/dist/serve.d.ts +4 -4
- package/dist/serve.js +9 -10
- package/dist/serve.js.map +1 -1
- package/dist/sites.d.ts +2 -7
- package/dist/sites.js +4 -10
- package/dist/sites.js.map +1 -1
- package/dist/source.d.ts +1 -1
- package/dist/source.js +2 -2
- package/dist/source.js.map +1 -1
- package/dist/wakeup.js +1 -1
- package/dist/wakeup.js.map +1 -1
- package/dist/worker-port.d.ts +2 -2
- package/dist/worker-port.js +2 -2
- package/dist/worker-port.js.map +1 -1
- package/oxlint.json +283 -47
- package/package.json +321 -34
- package/template/AGENTS.md +2 -2
- package/testing/README.md +261 -0
- package/testing/dist/build.d.ts +16 -0
- package/testing/dist/build.js +95 -0
- package/testing/dist/build.js.map +1 -0
- package/testing/dist/database.d.ts +96 -0
- package/testing/dist/database.js +213 -0
- package/testing/dist/database.js.map +1 -0
- package/testing/dist/features.d.ts +25 -0
- package/testing/dist/features.js +176 -0
- package/testing/dist/features.js.map +1 -0
- package/testing/dist/harness.d.ts +27 -0
- package/testing/dist/harness.js +63 -0
- package/testing/dist/harness.js.map +1 -0
- package/testing/dist/host.d.ts +229 -0
- package/testing/dist/host.js +738 -0
- package/testing/dist/host.js.map +1 -0
- package/testing/dist/index.d.ts +36 -0
- package/testing/dist/index.js +41 -0
- package/testing/dist/index.js.map +1 -0
- package/testing/dist/replay.d.ts +44 -0
- package/testing/dist/replay.js +95 -0
- package/testing/dist/replay.js.map +1 -0
- package/testing/dist/sandbox.d.ts +59 -0
- package/testing/dist/sandbox.js +201 -0
- package/testing/dist/sandbox.js.map +1 -0
- package/testing/dist/scenarios.d.ts +17 -0
- package/testing/dist/scenarios.js +64 -0
- package/testing/dist/scenarios.js.map +1 -0
- package/testing/dist/sentinel.d.ts +19 -0
- package/testing/dist/sentinel.js +54 -0
- package/testing/dist/sentinel.js.map +1 -0
- package/testing/dist/wakeup.d.ts +114 -0
- package/testing/dist/wakeup.js +288 -0
- package/testing/dist/wakeup.js.map +1 -0
- package/workflows/CLOUD-IDENTITY.md +333 -0
- package/workflows/KMS-SECRETS.md +167 -0
- package/workflows/README.md +990 -0
- package/workflows/SECRET-SUPPORT.md +72 -0
- package/workflows/dist/app-steps.d.ts +17 -0
- package/workflows/dist/app-steps.js +43 -0
- package/workflows/dist/app-steps.js.map +1 -0
- package/workflows/dist/app-workflows.d.ts +174 -0
- package/workflows/dist/app-workflows.js +117 -0
- package/workflows/dist/app-workflows.js.map +1 -0
- package/workflows/dist/apply-steps.d.ts +8 -0
- package/workflows/dist/apply-steps.js +92 -0
- package/workflows/dist/apply-steps.js.map +1 -0
- package/workflows/dist/apply.d.ts +213 -0
- package/workflows/dist/apply.js +634 -0
- package/workflows/dist/apply.js.map +1 -0
- package/workflows/dist/approvals.d.ts +77 -0
- package/workflows/dist/approvals.js +211 -0
- package/workflows/dist/approvals.js.map +1 -0
- package/workflows/dist/apps-list.d.ts +116 -0
- package/workflows/dist/apps-list.js +150 -0
- package/workflows/dist/apps-list.js.map +1 -0
- package/workflows/dist/apps.d.ts +31 -0
- package/workflows/dist/apps.js +138 -0
- package/workflows/dist/apps.js.map +1 -0
- package/workflows/dist/ast.d.ts +59 -0
- package/workflows/dist/ast.js +83 -0
- package/workflows/dist/ast.js.map +1 -0
- package/workflows/dist/authentication.d.ts +140 -0
- package/workflows/dist/authentication.js +190 -0
- package/workflows/dist/authentication.js.map +1 -0
- package/workflows/dist/bundled.d.ts +39 -0
- package/workflows/dist/bundled.js +16 -0
- package/workflows/dist/bundled.js.map +1 -0
- package/workflows/dist/call-workflow.d.ts +21 -0
- package/workflows/dist/call-workflow.js +35 -0
- package/workflows/dist/call-workflow.js.map +1 -0
- package/workflows/dist/call.d.ts +104 -0
- package/workflows/dist/call.js +660 -0
- package/workflows/dist/call.js.map +1 -0
- package/workflows/dist/cedar.d.ts +109 -0
- package/workflows/dist/cedar.js +533 -0
- package/workflows/dist/cedar.js.map +1 -0
- package/workflows/dist/change-steps.d.ts +10 -0
- package/workflows/dist/change-steps.js +200 -0
- package/workflows/dist/change-steps.js.map +1 -0
- package/workflows/dist/change-workflow.d.ts +54 -0
- package/workflows/dist/change-workflow.js +161 -0
- package/workflows/dist/change-workflow.js.map +1 -0
- package/workflows/dist/change.d.ts +330 -0
- package/workflows/dist/change.js +351 -0
- package/workflows/dist/change.js.map +1 -0
- package/workflows/dist/chat-steps.d.ts +5 -0
- package/workflows/dist/chat-steps.js +107 -0
- package/workflows/dist/chat-steps.js.map +1 -0
- package/workflows/dist/chat-workflow.d.ts +43 -0
- package/workflows/dist/chat-workflow.js +47 -0
- package/workflows/dist/chat-workflow.js.map +1 -0
- package/workflows/dist/chats.d.ts +62 -0
- package/workflows/dist/chats.js +109 -0
- package/workflows/dist/chats.js.map +1 -0
- package/workflows/dist/claims.d.ts +58 -0
- package/workflows/dist/claims.js +27 -0
- package/workflows/dist/claims.js.map +1 -0
- package/workflows/dist/client.d.ts +563 -0
- package/workflows/dist/client.js +1464 -0
- package/workflows/dist/client.js.map +1 -0
- package/workflows/dist/cloud-identity.d.ts +56 -0
- package/workflows/dist/cloud-identity.js +160 -0
- package/workflows/dist/cloud-identity.js.map +1 -0
- package/workflows/dist/collection.d.ts +139 -0
- package/workflows/dist/collection.js +522 -0
- package/workflows/dist/collection.js.map +1 -0
- package/workflows/dist/config.d.ts +328 -0
- package/workflows/dist/config.js +857 -0
- package/workflows/dist/config.js.map +1 -0
- package/workflows/dist/connect-workflow.d.ts +6 -0
- package/workflows/dist/connect-workflow.js +35 -0
- package/workflows/dist/connect-workflow.js.map +1 -0
- package/workflows/dist/connection.d.ts +669 -0
- package/workflows/dist/connection.js +1228 -0
- package/workflows/dist/connection.js.map +1 -0
- package/workflows/dist/constructors.d.ts +38 -0
- package/workflows/dist/constructors.js +9 -0
- package/workflows/dist/constructors.js.map +1 -0
- package/workflows/dist/credentials.d.ts +24 -0
- package/workflows/dist/credentials.js +168 -0
- package/workflows/dist/credentials.js.map +1 -0
- package/workflows/dist/cucumber.d.ts +66 -0
- package/workflows/dist/cucumber.js +163 -0
- package/workflows/dist/cucumber.js.map +1 -0
- package/workflows/dist/data.d.ts +2 -0
- package/workflows/dist/data.js +3 -0
- package/workflows/dist/data.js.map +1 -0
- package/workflows/dist/database.d.ts +83 -0
- package/workflows/dist/database.js +95 -0
- package/workflows/dist/database.js.map +1 -0
- package/workflows/dist/db/company.d.ts +2351 -0
- package/workflows/dist/db/company.js +245 -0
- package/workflows/dist/db/company.js.map +1 -0
- package/workflows/dist/db/dbos.d.ts +111 -0
- package/workflows/dist/db/dbos.js +15 -0
- package/workflows/dist/db/dbos.js.map +1 -0
- package/workflows/dist/db/identity.d.ts +367 -0
- package/workflows/dist/db/identity.js +48 -0
- package/workflows/dist/db/identity.js.map +1 -0
- package/workflows/dist/db/index.d.ts +7 -0
- package/workflows/dist/db/index.js +12 -0
- package/workflows/dist/db/index.js.map +1 -0
- package/workflows/dist/db/kms.d.ts +224 -0
- package/workflows/dist/db/kms.js +29 -0
- package/workflows/dist/db/kms.js.map +1 -0
- package/workflows/dist/db/migrate.d.ts +66 -0
- package/workflows/dist/db/migrate.js +39 -0
- package/workflows/dist/db/migrate.js.map +1 -0
- package/workflows/dist/db/wakeup.d.ts +271 -0
- package/workflows/dist/db/wakeup.js +34 -0
- package/workflows/dist/db/wakeup.js.map +1 -0
- package/workflows/dist/db.d.ts +117 -0
- package/workflows/dist/db.js +375 -0
- package/workflows/dist/db.js.map +1 -0
- package/workflows/dist/deadlines.d.ts +107 -0
- package/workflows/dist/deadlines.js +208 -0
- package/workflows/dist/deadlines.js.map +1 -0
- package/workflows/dist/define.d.ts +288 -0
- package/workflows/dist/define.js +152 -0
- package/workflows/dist/define.js.map +1 -0
- package/workflows/dist/definitions.d.ts +25 -0
- package/workflows/dist/definitions.js +16 -0
- package/workflows/dist/definitions.js.map +1 -0
- package/workflows/dist/deployment-key.d.ts +24 -0
- package/workflows/dist/deployment-key.js +54 -0
- package/workflows/dist/deployment-key.js.map +1 -0
- package/workflows/dist/describe.d.ts +40 -0
- package/workflows/dist/describe.js +435 -0
- package/workflows/dist/describe.js.map +1 -0
- package/workflows/dist/description.d.ts +555 -0
- package/workflows/dist/description.js +389 -0
- package/workflows/dist/description.js.map +1 -0
- package/workflows/dist/direct.d.ts +10 -0
- package/workflows/dist/direct.js +26 -0
- package/workflows/dist/direct.js.map +1 -0
- package/workflows/dist/dns.d.ts +20 -0
- package/workflows/dist/dns.js +26 -0
- package/workflows/dist/dns.js.map +1 -0
- package/workflows/dist/drift.d.ts +136 -0
- package/workflows/dist/drift.js +188 -0
- package/workflows/dist/drift.js.map +1 -0
- package/workflows/dist/env.d.ts +51 -0
- package/workflows/dist/env.js +83 -0
- package/workflows/dist/env.js.map +1 -0
- package/workflows/dist/errors.d.ts +115 -0
- package/workflows/dist/errors.js +193 -0
- package/workflows/dist/errors.js.map +1 -0
- package/workflows/dist/expectations.d.ts +26 -0
- package/workflows/dist/expectations.js +171 -0
- package/workflows/dist/expectations.js.map +1 -0
- package/workflows/dist/fake.d.ts +93 -0
- package/workflows/dist/fake.js +280 -0
- package/workflows/dist/fake.js.map +1 -0
- package/workflows/dist/fill.d.ts +17 -0
- package/workflows/dist/fill.js +39 -0
- package/workflows/dist/fill.js.map +1 -0
- package/workflows/dist/folded.d.ts +7 -0
- package/workflows/dist/folded.js +28 -0
- package/workflows/dist/folded.js.map +1 -0
- package/workflows/dist/follow-steps.d.ts +8 -0
- package/workflows/dist/follow-steps.js +113 -0
- package/workflows/dist/follow-steps.js.map +1 -0
- package/workflows/dist/follow-workflow.d.ts +56 -0
- package/workflows/dist/follow-workflow.js +50 -0
- package/workflows/dist/follow-workflow.js.map +1 -0
- package/workflows/dist/grid.d.ts +34 -0
- package/workflows/dist/grid.js +63 -0
- package/workflows/dist/grid.js.map +1 -0
- package/workflows/dist/host-derive.d.ts +162 -0
- package/workflows/dist/host-derive.js +438 -0
- package/workflows/dist/host-derive.js.map +1 -0
- package/workflows/dist/host.d.ts +158 -0
- package/workflows/dist/host.js +112 -0
- package/workflows/dist/host.js.map +1 -0
- package/workflows/dist/identity-broker.d.ts +14 -0
- package/workflows/dist/identity-broker.js +84 -0
- package/workflows/dist/identity-broker.js.map +1 -0
- package/workflows/dist/identity-provisioning.d.ts +50 -0
- package/workflows/dist/identity-provisioning.js +304 -0
- package/workflows/dist/identity-provisioning.js.map +1 -0
- package/workflows/dist/identity-service.d.ts +25 -0
- package/workflows/dist/identity-service.js +152 -0
- package/workflows/dist/identity-service.js.map +1 -0
- package/workflows/dist/import-workflow.d.ts +4 -0
- package/workflows/dist/import-workflow.js +120 -0
- package/workflows/dist/import-workflow.js.map +1 -0
- package/workflows/dist/import.d.ts +94 -0
- package/workflows/dist/import.js +161 -0
- package/workflows/dist/import.js.map +1 -0
- package/workflows/dist/index.d.ts +66 -0
- package/workflows/dist/index.js +73 -0
- package/workflows/dist/index.js.map +1 -0
- package/workflows/dist/kms-secrets.d.ts +48 -0
- package/workflows/dist/kms-secrets.js +320 -0
- package/workflows/dist/kms-secrets.js.map +1 -0
- package/workflows/dist/ledger.d.ts +281 -0
- package/workflows/dist/ledger.js +335 -0
- package/workflows/dist/ledger.js.map +1 -0
- package/workflows/dist/lint.d.ts +24 -0
- package/workflows/dist/lint.js +185 -0
- package/workflows/dist/lint.js.map +1 -0
- package/workflows/dist/load.d.ts +85 -0
- package/workflows/dist/load.js +407 -0
- package/workflows/dist/load.js.map +1 -0
- package/workflows/dist/local-sandbox.d.ts +17 -0
- package/workflows/dist/local-sandbox.js +131 -0
- package/workflows/dist/local-sandbox.js.map +1 -0
- package/workflows/dist/lockfile.d.ts +38 -0
- package/workflows/dist/lockfile.js +74 -0
- package/workflows/dist/lockfile.js.map +1 -0
- package/workflows/dist/log.d.ts +24 -0
- package/workflows/dist/log.js +83 -0
- package/workflows/dist/log.js.map +1 -0
- package/workflows/dist/login-code.d.ts +23 -0
- package/workflows/dist/login-code.js +37 -0
- package/workflows/dist/login-code.js.map +1 -0
- package/workflows/dist/oauth.d.ts +112 -0
- package/workflows/dist/oauth.js +301 -0
- package/workflows/dist/oauth.js.map +1 -0
- package/workflows/dist/op.d.ts +465 -0
- package/workflows/dist/op.js +249 -0
- package/workflows/dist/op.js.map +1 -0
- package/workflows/dist/outline.d.ts +186 -0
- package/workflows/dist/outline.js +554 -0
- package/workflows/dist/outline.js.map +1 -0
- package/workflows/dist/paths.d.ts +56 -0
- package/workflows/dist/paths.js +124 -0
- package/workflows/dist/paths.js.map +1 -0
- package/workflows/dist/person.d.ts +66 -0
- package/workflows/dist/person.js +71 -0
- package/workflows/dist/person.js.map +1 -0
- package/workflows/dist/plugin.d.ts +45 -0
- package/workflows/dist/plugin.js +61 -0
- package/workflows/dist/plugin.js.map +1 -0
- package/workflows/dist/policy.d.ts +126 -0
- package/workflows/dist/policy.js +50 -0
- package/workflows/dist/policy.js.map +1 -0
- package/workflows/dist/preview.d.ts +26 -0
- package/workflows/dist/preview.js +29 -0
- package/workflows/dist/preview.js.map +1 -0
- package/workflows/dist/provisioning-identity.d.ts +27 -0
- package/workflows/dist/provisioning-identity.js +81 -0
- package/workflows/dist/provisioning-identity.js.map +1 -0
- package/workflows/dist/renewal.d.ts +102 -0
- package/workflows/dist/renewal.js +186 -0
- package/workflows/dist/renewal.js.map +1 -0
- package/workflows/dist/resource.d.ts +506 -0
- package/workflows/dist/resource.js +600 -0
- package/workflows/dist/resource.js.map +1 -0
- package/workflows/dist/resources.d.ts +97 -0
- package/workflows/dist/resources.js +384 -0
- package/workflows/dist/resources.js.map +1 -0
- package/workflows/dist/run-status.d.ts +10 -0
- package/workflows/dist/run-status.js +27 -0
- package/workflows/dist/run-status.js.map +1 -0
- package/workflows/dist/run.d.ts +173 -0
- package/workflows/dist/run.js +22 -0
- package/workflows/dist/run.js.map +1 -0
- package/workflows/dist/runner-box.d.ts +23 -0
- package/workflows/dist/runner-box.js +181 -0
- package/workflows/dist/runner-box.js.map +1 -0
- package/workflows/dist/runner-protocol.d.ts +73 -0
- package/workflows/dist/runner-protocol.js +34 -0
- package/workflows/dist/runner-protocol.js.map +1 -0
- package/workflows/dist/runtime-ops.d.ts +242 -0
- package/workflows/dist/runtime-ops.js +354 -0
- package/workflows/dist/runtime-ops.js.map +1 -0
- package/workflows/dist/sandbox-contract.d.ts +109 -0
- package/workflows/dist/sandbox-contract.js +26 -0
- package/workflows/dist/sandbox-contract.js.map +1 -0
- package/workflows/dist/sandbox-runner.cjs +7 -0
- package/workflows/dist/sandbox.d.ts +46 -0
- package/workflows/dist/sandbox.js +215 -0
- package/workflows/dist/sandbox.js.map +1 -0
- package/workflows/dist/scenario.d.ts +262 -0
- package/workflows/dist/scenario.js +1281 -0
- package/workflows/dist/scenario.js.map +1 -0
- package/workflows/dist/scenarios.d.ts +59 -0
- package/workflows/dist/scenarios.js +82 -0
- package/workflows/dist/scenarios.js.map +1 -0
- package/workflows/dist/schedules.d.ts +74 -0
- package/workflows/dist/schedules.js +168 -0
- package/workflows/dist/schedules.js.map +1 -0
- package/workflows/dist/schema.d.ts +49 -0
- package/workflows/dist/schema.js +256 -0
- package/workflows/dist/schema.js.map +1 -0
- package/workflows/dist/sdk.d.ts +34 -0
- package/workflows/dist/sdk.js +182 -0
- package/workflows/dist/sdk.js.map +1 -0
- package/workflows/dist/seal.d.ts +42 -0
- package/workflows/dist/seal.js +103 -0
- package/workflows/dist/seal.js.map +1 -0
- package/workflows/dist/secret-store-check.d.ts +11 -0
- package/workflows/dist/secret-store-check.js +76 -0
- package/workflows/dist/secret-store-check.js.map +1 -0
- package/workflows/dist/secret-store.d.ts +142 -0
- package/workflows/dist/secret-store.js +273 -0
- package/workflows/dist/secret-store.js.map +1 -0
- package/workflows/dist/secret.d.ts +54 -0
- package/workflows/dist/secret.js +115 -0
- package/workflows/dist/secret.js.map +1 -0
- package/workflows/dist/shared.d.ts +495 -0
- package/workflows/dist/shared.js +558 -0
- package/workflows/dist/shared.js.map +1 -0
- package/workflows/dist/sites.d.ts +62 -0
- package/workflows/dist/sites.js +498 -0
- package/workflows/dist/sites.js.map +1 -0
- package/workflows/dist/source.d.ts +327 -0
- package/workflows/dist/source.js +99 -0
- package/workflows/dist/source.js.map +1 -0
- package/workflows/dist/ssh-key.d.ts +11 -0
- package/workflows/dist/ssh-key.js +44 -0
- package/workflows/dist/ssh-key.js.map +1 -0
- package/workflows/dist/steps.d.ts +81 -0
- package/workflows/dist/steps.js +23 -0
- package/workflows/dist/steps.js.map +1 -0
- package/workflows/dist/storage-provisioning.d.ts +27 -0
- package/workflows/dist/storage-provisioning.js +222 -0
- package/workflows/dist/storage-provisioning.js.map +1 -0
- package/workflows/dist/store-move-workflow.d.ts +14 -0
- package/workflows/dist/store-move-workflow.js +77 -0
- package/workflows/dist/store-move-workflow.js.map +1 -0
- package/workflows/dist/store-move.d.ts +361 -0
- package/workflows/dist/store-move.js +744 -0
- package/workflows/dist/store-move.js.map +1 -0
- package/workflows/dist/supervisor.d.ts +39 -0
- package/workflows/dist/supervisor.js +68 -0
- package/workflows/dist/supervisor.js.map +1 -0
- package/workflows/dist/tokens.d.ts +45 -0
- package/workflows/dist/tokens.js +120 -0
- package/workflows/dist/tokens.js.map +1 -0
- package/workflows/dist/vendor-info.d.ts +19 -0
- package/workflows/dist/vendor-info.js +49 -0
- package/workflows/dist/vendor-info.js.map +1 -0
- package/workflows/dist/version.d.ts +44 -0
- package/workflows/dist/version.js +92 -0
- package/workflows/dist/version.js.map +1 -0
- package/workflows/dist/wakeup-driver.d.ts +128 -0
- package/workflows/dist/wakeup-driver.js +225 -0
- package/workflows/dist/wakeup-driver.js.map +1 -0
- package/workflows/dist/wakeup-service.d.ts +79 -0
- package/workflows/dist/wakeup-service.js +419 -0
- package/workflows/dist/wakeup-service.js.map +1 -0
- package/workflows/dist/wakeup-type.d.ts +43 -0
- package/workflows/dist/wakeup-type.js +82 -0
- package/workflows/dist/wakeup-type.js.map +1 -0
- package/workflows/dist/wakeup.d.ts +95 -0
- package/workflows/dist/wakeup.js +79 -0
- package/workflows/dist/wakeup.js.map +1 -0
- package/workflows/dist/worker.d.ts +85 -0
- package/workflows/dist/worker.js +535 -0
- package/workflows/dist/worker.js.map +1 -0
- package/workflows/dist/writer.d.ts +83 -0
- package/workflows/dist/writer.js +349 -0
- package/workflows/dist/writer.js.map +1 -0
- package/workflows/drizzle/company/0000_tables.sql +104 -0
- package/workflows/drizzle/company/0001_wakeup_row.sql +2 -0
- package/workflows/drizzle/company/0002_runs_tell_the_app.sql +27 -0
- package/workflows/drizzle/company/0003_ledger_target.sql +2 -0
- package/workflows/drizzle/company/0004_oauth_attempts.sql +19 -0
- package/workflows/drizzle/company/0005_connection_renewals.sql +9 -0
- package/workflows/drizzle/company/0006_secret_moves.sql +35 -0
- package/workflows/drizzle/company/meta/0000_snapshot.json +652 -0
- package/workflows/drizzle/company/meta/0001_snapshot.json +652 -0
- package/workflows/drizzle/company/meta/0002_snapshot.json +819 -0
- package/workflows/drizzle/company/meta/0003_snapshot.json +845 -0
- package/workflows/drizzle/company/meta/0004_snapshot.json +955 -0
- package/workflows/drizzle/company/meta/0005_snapshot.json +1010 -0
- package/workflows/drizzle/company/meta/0006_snapshot.json +1232 -0
- package/workflows/drizzle/company/meta/_journal.json +55 -0
- package/workflows/drizzle/wakeup/0000_tables.sql +26 -0
- package/workflows/drizzle/wakeup/meta/0000_snapshot.json +200 -0
- package/workflows/drizzle/wakeup/meta/_journal.json +13 -0
- package/workflows/oxlint.json +117 -0
- package/workflows/src/app-steps.ts +67 -0
- package/workflows/src/app-workflows.ts +261 -0
- package/workflows/src/apply-steps.ts +108 -0
- package/workflows/src/apply.ts +868 -0
- package/workflows/src/approvals.ts +274 -0
- package/workflows/src/apps-list.ts +168 -0
- package/workflows/src/apps.ts +147 -0
- package/workflows/src/ast.ts +115 -0
- package/workflows/src/authentication.ts +316 -0
- package/workflows/src/bundled.ts +49 -0
- package/workflows/src/call-workflow.ts +53 -0
- package/workflows/src/call.ts +848 -0
- package/workflows/src/cedar.ts +681 -0
- package/workflows/src/change-steps.ts +270 -0
- package/workflows/src/change-workflow.ts +198 -0
- package/workflows/src/change.ts +483 -0
- package/workflows/src/chat-steps.ts +117 -0
- package/workflows/src/chat-workflow.ts +69 -0
- package/workflows/src/chats.ts +179 -0
- package/workflows/src/claims.ts +79 -0
- package/workflows/src/client.ts +1924 -0
- package/workflows/src/cloud-identity.ts +205 -0
- package/workflows/src/collection.ts +688 -0
- package/workflows/src/config.ts +1178 -0
- package/workflows/src/connect-workflow.ts +38 -0
- package/workflows/src/connection.ts +1522 -0
- package/workflows/src/constructors.ts +10 -0
- package/workflows/src/credentials.ts +189 -0
- package/workflows/src/cucumber.ts +243 -0
- package/workflows/src/data.ts +10 -0
- package/workflows/src/database.ts +154 -0
- package/workflows/src/db/company.ts +331 -0
- package/workflows/src/db/dbos.ts +17 -0
- package/workflows/src/db/identity.ts +61 -0
- package/workflows/src/db/index.ts +12 -0
- package/workflows/src/db/kms.ts +41 -0
- package/workflows/src/db/migrate.ts +71 -0
- package/workflows/src/db/wakeup.ts +41 -0
- package/workflows/src/db.ts +430 -0
- package/workflows/src/deadlines.ts +283 -0
- package/workflows/src/define.ts +416 -0
- package/workflows/src/definitions.ts +36 -0
- package/workflows/src/deployment-key.ts +57 -0
- package/workflows/src/describe.ts +525 -0
- package/workflows/src/description.ts +434 -0
- package/workflows/src/direct.ts +31 -0
- package/workflows/src/dns.ts +29 -0
- package/workflows/src/drift.ts +289 -0
- package/workflows/src/env.ts +124 -0
- package/workflows/src/errors.ts +255 -0
- package/workflows/src/expectations.ts +200 -0
- package/workflows/src/fake.ts +364 -0
- package/workflows/src/fill.ts +47 -0
- package/workflows/src/folded.ts +28 -0
- package/workflows/src/follow-steps.ts +129 -0
- package/workflows/src/follow-workflow.ts +88 -0
- package/workflows/src/grid.ts +102 -0
- package/workflows/src/host-derive.ts +540 -0
- package/workflows/src/host.ts +234 -0
- package/workflows/src/identity-broker.ts +94 -0
- package/workflows/src/identity-provisioning.ts +337 -0
- package/workflows/src/identity-service.ts +180 -0
- package/workflows/src/import-workflow.ts +153 -0
- package/workflows/src/import.ts +222 -0
- package/workflows/src/index.ts +415 -0
- package/workflows/src/kms-secrets.ts +385 -0
- package/workflows/src/ledger.ts +559 -0
- package/workflows/src/lint.ts +226 -0
- package/workflows/src/load.ts +489 -0
- package/workflows/src/local-sandbox.ts +133 -0
- package/workflows/src/lockfile.ts +102 -0
- package/workflows/src/log.ts +82 -0
- package/workflows/src/login-code.ts +58 -0
- package/workflows/src/oauth.ts +402 -0
- package/workflows/src/op.ts +646 -0
- package/workflows/src/outline.ts +675 -0
- package/workflows/src/paths.ts +135 -0
- package/workflows/src/person.ts +78 -0
- package/workflows/src/plugin.ts +85 -0
- package/workflows/src/policy.ts +162 -0
- package/workflows/src/preview.ts +57 -0
- package/workflows/src/provisioning-identity.ts +106 -0
- package/workflows/src/renewal.ts +272 -0
- package/workflows/src/resource.ts +964 -0
- package/workflows/src/resources.ts +459 -0
- package/workflows/src/run-status.ts +39 -0
- package/workflows/src/run.ts +179 -0
- package/workflows/src/runner-box.ts +218 -0
- package/workflows/src/runner-protocol.ts +61 -0
- package/workflows/src/runtime-ops.ts +391 -0
- package/workflows/src/sandbox-contract.ts +121 -0
- package/workflows/src/sandbox-runner.ts +187 -0
- package/workflows/src/sandbox.ts +253 -0
- package/workflows/src/scenario.ts +1624 -0
- package/workflows/src/scenarios.ts +125 -0
- package/workflows/src/schedules.ts +219 -0
- package/workflows/src/schema.ts +311 -0
- package/workflows/src/sdk.ts +225 -0
- package/workflows/src/seal.ts +127 -0
- package/workflows/src/secret-store-check.ts +93 -0
- package/workflows/src/secret-store.ts +382 -0
- package/workflows/src/secret.ts +151 -0
- package/workflows/src/shared.ts +798 -0
- package/workflows/src/sites.ts +559 -0
- package/workflows/src/source.ts +353 -0
- package/workflows/src/ssh-key.ts +48 -0
- package/workflows/src/steps.ts +93 -0
- package/workflows/src/storage-provisioning.ts +252 -0
- package/workflows/src/store-move-workflow.ts +80 -0
- package/workflows/src/store-move.ts +870 -0
- package/workflows/src/supervisor.ts +102 -0
- package/workflows/src/tokens.ts +163 -0
- package/workflows/src/vendor-info.ts +53 -0
- package/workflows/src/version.ts +103 -0
- package/workflows/src/wakeup-driver.ts +286 -0
- package/workflows/src/wakeup-service.ts +484 -0
- package/workflows/src/wakeup-type.ts +92 -0
- package/workflows/src/wakeup.ts +145 -0
- package/workflows/src/worker.ts +667 -0
- package/workflows/src/writer.ts +392 -0
- package/dist/claims.d.ts +0 -1
- package/dist/claims.js +0 -6
- package/dist/claims.js.map +0 -1
- package/dist/data.d.ts +0 -1
- package/dist/data.js +0 -4
- package/dist/data.js.map +0 -1
- package/dist/resources.d.ts +0 -1
- package/dist/resources.js +0 -5
- package/dist/resources.js.map +0 -1
- package/dist/secrets.d.ts +0 -2
- package/dist/secrets.js +0 -3
- package/dist/secrets.js.map +0 -1
- package/identity/Dockerfile +0 -14
- package/site.d.ts +0 -3
- package/site.js +0 -3
- package/ui.css +0 -2
- package/ui.d.ts +0 -3
- package/ui.js +0 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"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AQ,GAAG,MAAM,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;QAC3D,OAAO,GAAG,GAAG,CAAC,IAAI,CAAC,GAAG,QAAQ,KAAK,YAAY,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;IACtG,CAAC,CAAC,CAAC;IACH,OAAO,KAAK,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;AACnC,CAAC;AAED,8DAA8D;AAC9D,MAAM,GAAG,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,CAAC,oBAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/** A file under `content/<kind>/`, as `list()` gives it: its name and its front matter. */
|
|
2
|
+
export interface ContentSummary<D> {
|
|
3
|
+
/** The file's name without `.md` (and without its language). */
|
|
4
|
+
slug: string;
|
|
5
|
+
/** The language of a translation, `<slug>.<locale>.md`; absent for `<slug>.md`, the site's default's. */
|
|
6
|
+
locale?: string;
|
|
7
|
+
/** The front matter: `{}` when the file has none. */
|
|
8
|
+
data: D;
|
|
9
|
+
}
|
|
10
|
+
/** A file under `content/<kind>/`, as `get(slug)` gives it. */
|
|
11
|
+
export interface ContentEntry<D> extends ContentSummary<D> {
|
|
12
|
+
/** The Markdown after the front matter, as written. */
|
|
13
|
+
body: string;
|
|
14
|
+
/** `body` rendered at build (GFM), for `dangerouslySetInnerHTML`. */
|
|
15
|
+
html: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Which language to read: `locale` (a page's `params.locale`), each slug's translation into it,
|
|
19
|
+
* `<slug>.<locale>.md`, else `<slug>.md`; without one, `<slug>.md` alone.
|
|
20
|
+
*/
|
|
21
|
+
export interface ContentOptions {
|
|
22
|
+
locale?: string | undefined;
|
|
23
|
+
}
|
|
24
|
+
/** One kind of content, `content/<kind>/*.md`. */
|
|
25
|
+
export interface ContentKind<D> {
|
|
26
|
+
/** Every slug's file, as `ContentOptions` picks it, with its front matter, sorted by slug. */
|
|
27
|
+
list(options?: ContentOptions): Promise<ContentSummary<D>[]>;
|
|
28
|
+
/** One slug's file, as `ContentOptions` picks it, with its body; `undefined` when there is no such file. */
|
|
29
|
+
get(slug: string, options?: ContentOptions): Promise<ContentEntry<D> | undefined>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* `entries` in `locale`, as `list({ locale })` and `get(slug, { locale })` read them: each slug's
|
|
33
|
+
* `<slug>.<locale>.md`, else its `<slug>.md`; without one, the `<slug>.md` files alone. In the
|
|
34
|
+
* entries' order.
|
|
35
|
+
*/
|
|
36
|
+
export declare function inLocale<E extends {
|
|
37
|
+
slug: string;
|
|
38
|
+
locale?: string;
|
|
39
|
+
}>(entries: readonly E[], locale?: string): E[];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// The shapes of a site's `content` (`content.ts`), in a file of their own that imports nothing, so
|
|
2
|
+
// the Node side that reads the files (`content-files.ts`) shares them without the browser module.
|
|
3
|
+
/**
|
|
4
|
+
* `entries` in `locale`, as `list({ locale })` and `get(slug, { locale })` read them: each slug's
|
|
5
|
+
* `<slug>.<locale>.md`, else its `<slug>.md`; without one, the `<slug>.md` files alone. In the
|
|
6
|
+
* entries' order.
|
|
7
|
+
*/
|
|
8
|
+
export function inLocale(entries, locale) {
|
|
9
|
+
const picked = new Map();
|
|
10
|
+
for (const entry of entries) {
|
|
11
|
+
if (entry.locale === undefined ? !picked.has(entry.slug) : entry.locale === locale)
|
|
12
|
+
picked.set(entry.slug, entry);
|
|
13
|
+
}
|
|
14
|
+
return [...picked.values()];
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=content-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-types.js","sourceRoot":"","sources":["../src/content-types.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,kGAAkG;AAoClG;;;;GAIG;AACH,MAAM,UAAU,QAAQ,CAA8C,OAAqB,EAAE,MAAe;IAC1G,MAAM,MAAM,GAAG,IAAI,GAAG,EAAa,CAAC;IACpC,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;QAC5B,IAAI,KAAK,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,KAAK,MAAM;YAAE,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACpH,CAAC;IACD,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;AAC9B,CAAC"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import type { LoginIdentity, Principal, ResolvedConfig, SanomaClient } from "sanoma/workflows";
|
|
2
|
+
import type { Place } from "./api.ts";
|
|
3
|
+
import type { AppSnapshot } from "./snapshot.ts";
|
|
4
|
+
export type { LoginIdentity } from "sanoma/workflows";
|
|
5
|
+
/**
|
|
6
|
+
* Says who is making a request, or undefined when nobody is named. The app refuses a change
|
|
7
|
+
* (starting a run, deciding an approval) without one.
|
|
8
|
+
*/
|
|
9
|
+
export type ResolveActor = (request: Request) => LoginIdentity | undefined | Promise<LoginIdentity | undefined>;
|
|
10
|
+
/**
|
|
11
|
+
* Who may use the app and how they sign in. The Node adapter (`startApp`) calls `check` with the
|
|
12
|
+
* host it is to listen on before anything else, `open` once it listens; the app gives every request to `handle` first,
|
|
13
|
+
* and asks `resolveActor` who is making a change; `close` when it stops. The default,
|
|
14
|
+
* `loopbackLogin()`, takes the name the page sends and refuses any host but this machine;
|
|
15
|
+
* `staffLogin` signs people in with a login half (Better Auth's) on a host.
|
|
16
|
+
*/
|
|
17
|
+
export interface LoginProvider {
|
|
18
|
+
/** Names the provider; its routes, if any, are under `/auth/<name>/`. */
|
|
19
|
+
name: string;
|
|
20
|
+
/** Throws when the app may not listen on `listenHost` with this provider. */
|
|
21
|
+
check(listenHost: string): void;
|
|
22
|
+
resolveActor: ResolveActor;
|
|
23
|
+
/**
|
|
24
|
+
* Sees every request first: answers the ones it owns (its `/auth/<name>/` routes, and a request
|
|
25
|
+
* nobody has signed in for), and returns undefined for the rest, which the app answers.
|
|
26
|
+
*/
|
|
27
|
+
handle?(request: Request): Response | undefined | Promise<Response | undefined>;
|
|
28
|
+
/** The path the page POSTs to to sign out, which `handle` serves; none, no Sign out. */
|
|
29
|
+
signOut?: string;
|
|
30
|
+
/** Called once the app listens, with what it serves: a login that needs the client or the files starts here. */
|
|
31
|
+
open?(app: AppContext): Promise<void>;
|
|
32
|
+
/** Called when the app stops. */
|
|
33
|
+
close?(): Promise<void>;
|
|
34
|
+
/**
|
|
35
|
+
* An invite for the declared person `email` names, minted for `by` (a declared person's id, or
|
|
36
|
+
* the runtime's agent `login` for a sealed request): its link, on `origin`. Only a login that has
|
|
37
|
+
* invites; it records the mint.
|
|
38
|
+
*/
|
|
39
|
+
invite?(email: string, request: {
|
|
40
|
+
origin: string;
|
|
41
|
+
by: string;
|
|
42
|
+
}): Promise<{
|
|
43
|
+
url: string;
|
|
44
|
+
expiresAt: Date;
|
|
45
|
+
}>;
|
|
46
|
+
}
|
|
47
|
+
/** A login as the app uses it (`admitting`): `resolveActor` names the declared principal asking, or nobody. */
|
|
48
|
+
export interface AdmittingLogin extends Omit<LoginProvider, "resolveActor"> {
|
|
49
|
+
resolveActor(request: Request): Promise<Principal | undefined>;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* What the app hands each request (`appHandler`): the config resolved, the company as the build
|
|
53
|
+
* or the Node adapter read it (`snapshot`, taken once per request), and the request's client and
|
|
54
|
+
* login. Nothing in it reads a file.
|
|
55
|
+
*/
|
|
56
|
+
export interface AppContext {
|
|
57
|
+
resolved: ResolvedConfig;
|
|
58
|
+
/** The company as its files were read (`AppSnapshot`): what the pages read of it, never the files themselves. */
|
|
59
|
+
snapshot: AppSnapshot;
|
|
60
|
+
/** Where this instance is, from `resolved.databaseUrl` (`placeOf`): what the bar's badge says. */
|
|
61
|
+
place: Place;
|
|
62
|
+
client: SanomaClient;
|
|
63
|
+
/** The staff login (`AppOptions.login`, or `loopbackLogin()`), admitting only a declared person (`admitting`). */
|
|
64
|
+
login: AdmittingLogin;
|
|
65
|
+
/**
|
|
66
|
+
* The built kit's stylesheet's path (`/assets/style-<hash>.css`), which a login's own pages link
|
|
67
|
+
* to look like the app; none on the dev server, which builds nothing.
|
|
68
|
+
*/
|
|
69
|
+
stylesheet?: string;
|
|
70
|
+
/**
|
|
71
|
+
* On a public site's own host, the site: its copy of the context, whose `login` is the site's
|
|
72
|
+
* front door (`publicFront`), so only `callFn` and `getActor` answer there, as a visitor.
|
|
73
|
+
*/
|
|
74
|
+
site?: string;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* What the app hands Start with each request: the app, and the public site whose host the request came
|
|
78
|
+
* to, when it came to one; the router then mounts that site's routes at `/`. `origin` is what a
|
|
79
|
+
* page's absolute URLs start with (`siteOrigin()`): the site's domain when it has one, else the
|
|
80
|
+
* request's own origin.
|
|
81
|
+
*/
|
|
82
|
+
export interface RequestContext {
|
|
83
|
+
app: AppContext;
|
|
84
|
+
site?: string;
|
|
85
|
+
origin: string;
|
|
86
|
+
}
|
|
87
|
+
/** Start's server entry, which the app hands each request with the context: the build's `server.js`, the dev server's, or the Worker bundle's own. */
|
|
88
|
+
export interface ServerEntry {
|
|
89
|
+
fetch(request: Request, opts?: {
|
|
90
|
+
context?: RequestContext;
|
|
91
|
+
}): Response | Promise<Response>;
|
|
92
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { type ResolvedConfig, type SanomaClient } from "sanoma/workflows";
|
|
2
|
+
import type { SiteEntry } from "sanoma/workflows/describe";
|
|
3
|
+
import type { AdmittingLogin, AppContext, ServerEntry } from "./context.ts";
|
|
4
|
+
import type { AppSnapshot } from "./snapshot.ts";
|
|
5
|
+
/** A machine route, such as the wakeup's `/wake`: answered ahead of the public sites and the login (`AppHandlerOptions.ingress`). */
|
|
6
|
+
export interface IngressRoute {
|
|
7
|
+
method?: "GET" | "POST" | "PUT" | "DELETE";
|
|
8
|
+
/** The whole path, from `/`, without a query: matched exactly, unless `prefix`. */
|
|
9
|
+
path: string;
|
|
10
|
+
/**
|
|
11
|
+
* Also every path under `path` (`/wakeup` answers `/wakeup/instances/…`), for a route that
|
|
12
|
+
* matches what follows itself. A route at the exact path comes first, then the longest prefix.
|
|
13
|
+
*/
|
|
14
|
+
prefix?: boolean;
|
|
15
|
+
handle(request: Request): Promise<Response>;
|
|
16
|
+
}
|
|
17
|
+
export interface AppHandlerOptions {
|
|
18
|
+
resolved: ResolvedConfig;
|
|
19
|
+
/** The company as this request reads it: the Node adapter's, made again once a file changed, or the bundle's own. */
|
|
20
|
+
snapshot: () => AppSnapshot | Promise<AppSnapshot>;
|
|
21
|
+
client: SanomaClient;
|
|
22
|
+
/** The staff login, admitting only a declared person (`admitting`). */
|
|
23
|
+
login: AdmittingLogin;
|
|
24
|
+
/**
|
|
25
|
+
* Each public site served, by name, with its front door (`publicFront`): a public site missing
|
|
26
|
+
* here (its `site.ts` has a problem, or its login could not start) answers 503 on its hosts.
|
|
27
|
+
* Read on each request, so a host may take one out once it knows its login failed.
|
|
28
|
+
*/
|
|
29
|
+
sites: ReadonlyMap<string, AdmittingLogin>;
|
|
30
|
+
/**
|
|
31
|
+
* A public site's domain, by site name (`www: "sanoma.example"`): the site is served at the root
|
|
32
|
+
* of that host, as at `<name>.localhost`. One naming a site that is missing or not public is
|
|
33
|
+
* warned about and not served.
|
|
34
|
+
*/
|
|
35
|
+
domains?: Readonly<Record<string, string>>;
|
|
36
|
+
/**
|
|
37
|
+
* Machine routes, answered right after `/healthz` and ahead of the public sites and the login,
|
|
38
|
+
* at any host name: a request whose path is exactly `path` is answered by `handle`, or with 405
|
|
39
|
+
* when `method` is given and the request's is another. One route per path, never `/healthz`.
|
|
40
|
+
* Nothing checks who is asking, so each checks its own token; never give one a page's path.
|
|
41
|
+
* Besides these, the app answers `POST /webhooks/<vendor>` for each connector's remote half that
|
|
42
|
+
* reads webhooks (`remoteWebhook`).
|
|
43
|
+
*/
|
|
44
|
+
ingress?: readonly IngressRoute[];
|
|
45
|
+
/** Start's server entry: the pages and the server functions. */
|
|
46
|
+
entry: ServerEntry;
|
|
47
|
+
/**
|
|
48
|
+
* What the host answers itself, after the login let the request through and before Start: a
|
|
49
|
+
* built file. Undefined for a request it has nothing for.
|
|
50
|
+
*/
|
|
51
|
+
files?: (request: Request) => Promise<Response | undefined>;
|
|
52
|
+
/** The built kit's stylesheet's path (`AppContext.stylesheet`). */
|
|
53
|
+
stylesheet?: string;
|
|
54
|
+
}
|
|
55
|
+
export interface AppHandler {
|
|
56
|
+
fetch(request: Request): Promise<Response>;
|
|
57
|
+
/** The context the app's staff login opens with (`LoginProvider.open`): its `snapshot` the latest a request read. */
|
|
58
|
+
context: AppContext;
|
|
59
|
+
/** Each public site's hosts, by host name: `<name>.localhost` and its domain. */
|
|
60
|
+
hosts: ReadonlyMap<string, SiteEntry>;
|
|
61
|
+
/** Each public site's domain, by site name, as `hosts` has it. */
|
|
62
|
+
domains: ReadonlyMap<string, string>;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Makes the app's handler: `/healthz`, the machine routes and the webhooks, then a public site's
|
|
66
|
+
* host (its robots.txt and sitemap, its front door, then its pages and its `api`), then the staff
|
|
67
|
+
* login, the host's files and the app's pages and server functions. The public sites' hosts are
|
|
68
|
+
* read from `first`, the snapshot the host starts with.
|
|
69
|
+
*/
|
|
70
|
+
export declare function appHandler(options: AppHandlerOptions, first: AppSnapshot): AppHandler;
|
|
71
|
+
/** A public site's host on this machine. */
|
|
72
|
+
export declare const localHost: (site: string) => string;
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
// The app: one fetch handler over the company's snapshot and its client, the same on Node (the
|
|
2
|
+
// Node adapter, `startApp`) and on Cloudflare's workerd (the Worker's bundle, `worker/main.ts`).
|
|
3
|
+
// It keeps nothing across requests but what it was built with, reaches Postgres through its
|
|
4
|
+
// client and nothing else of the company's, and reads no file: a static file and a prerendered
|
|
5
|
+
// page are the host's (`files`).
|
|
6
|
+
import { requestOrigin } from "sanoma/workflows";
|
|
7
|
+
import { siteDir } from "sanoma/workflows/shared";
|
|
8
|
+
import { hostName, placeOf } from "./loopback.js";
|
|
9
|
+
import { seoFile } from "./seo.js";
|
|
10
|
+
import { siteHost } from "./site-path.js";
|
|
11
|
+
import { plain, remoteWebhook } from "./server/webhooks.js";
|
|
12
|
+
/**
|
|
13
|
+
* Makes the app's handler: `/healthz`, the machine routes and the webhooks, then a public site's
|
|
14
|
+
* host (its robots.txt and sitemap, its front door, then its pages and its `api`), then the staff
|
|
15
|
+
* login, the host's files and the app's pages and server functions. The public sites' hosts are
|
|
16
|
+
* read from `first`, the snapshot the host starts with.
|
|
17
|
+
*/
|
|
18
|
+
export function appHandler(options, first) {
|
|
19
|
+
const { resolved, client, login } = options;
|
|
20
|
+
const ingressAt = ingressOf([
|
|
21
|
+
...(options.ingress ?? []),
|
|
22
|
+
// A git host's webhooks, on every host: verified here, followed by the worker, which has the checkout.
|
|
23
|
+
...[...resolved.remotes]
|
|
24
|
+
.filter(([, half]) => half.webhook)
|
|
25
|
+
.map(([vendor]) => ({
|
|
26
|
+
method: "POST",
|
|
27
|
+
path: `/webhooks/${vendor}`,
|
|
28
|
+
handle: async (request) => remoteWebhook(await contextOf(), vendor, request),
|
|
29
|
+
})),
|
|
30
|
+
]);
|
|
31
|
+
const hosts = publicHosts(first.description, options.domains ?? {});
|
|
32
|
+
const domains = new Map([...hosts.values()].flatMap((site) => (site.domain ? [[site.name, site.domain]] : [])));
|
|
33
|
+
/** The snapshot with each public site's domain on its entry, as `publicHosts` set it. */
|
|
34
|
+
const withDomains = new WeakMap();
|
|
35
|
+
const domained = (snapshot) => {
|
|
36
|
+
let found = withDomains.get(snapshot);
|
|
37
|
+
if (!found) {
|
|
38
|
+
const sites = snapshot.description.sites.map((site) => domains.has(site.name) ? { ...site, domain: domains.get(site.name) } : site);
|
|
39
|
+
found = domains.size ? { ...snapshot, description: { ...snapshot.description, sites } } : snapshot;
|
|
40
|
+
withDomains.set(snapshot, found);
|
|
41
|
+
}
|
|
42
|
+
return found;
|
|
43
|
+
};
|
|
44
|
+
let latest = domained(first);
|
|
45
|
+
const shared = {
|
|
46
|
+
resolved,
|
|
47
|
+
place: placeOf(resolved.databaseUrl),
|
|
48
|
+
client,
|
|
49
|
+
...(options.stylesheet && { stylesheet: options.stylesheet }),
|
|
50
|
+
};
|
|
51
|
+
const context = {
|
|
52
|
+
...shared,
|
|
53
|
+
get snapshot() {
|
|
54
|
+
return latest;
|
|
55
|
+
},
|
|
56
|
+
login,
|
|
57
|
+
};
|
|
58
|
+
/** This request's context: the snapshot as it is now. */
|
|
59
|
+
const contextOf = async () => {
|
|
60
|
+
latest = domained(await options.snapshot());
|
|
61
|
+
return { ...shared, snapshot: latest, login };
|
|
62
|
+
};
|
|
63
|
+
async function answer(request) {
|
|
64
|
+
const url = new URL(request.url);
|
|
65
|
+
// A host's probe, before the login: it says the app answers, and nothing else.
|
|
66
|
+
if (url.pathname === "/healthz" && (request.method === "GET" || request.method === "HEAD")) {
|
|
67
|
+
return new Response(request.method === "HEAD" ? null : "ok\n", {
|
|
68
|
+
headers: { "content-type": "text/plain; charset=utf-8", "cache-control": "no-store" },
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
// A machine route, before the login too: it checks its own token.
|
|
72
|
+
const route = ingressAt(url.pathname);
|
|
73
|
+
if (route?.method !== undefined && route.method !== request.method) {
|
|
74
|
+
return new Response(`${url.pathname} answers ${route.method} only\n`, {
|
|
75
|
+
status: 405,
|
|
76
|
+
headers: { allow: route.method, "content-type": "text/plain; charset=utf-8", "cache-control": "no-store" },
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
if (route)
|
|
80
|
+
return route.handle(request);
|
|
81
|
+
// A public site's host, ahead of the staff login, which it never reaches: the site's front door.
|
|
82
|
+
const asked = hostName(url.host);
|
|
83
|
+
const entry = hosts.get(asked);
|
|
84
|
+
if (entry !== undefined) {
|
|
85
|
+
const front = options.sites.get(entry.name);
|
|
86
|
+
if (!front) {
|
|
87
|
+
return plain(503, "This site is not served: its site.ts or its login has a problem, which the app's log names.\n");
|
|
88
|
+
}
|
|
89
|
+
// Its URLs are at its domain, when it has one; only there may a crawler index it.
|
|
90
|
+
const origin = entry.domain ? `https://${entry.domain}` : requestOrigin(request);
|
|
91
|
+
// The sitemap lists the published content as it is now.
|
|
92
|
+
if (url.pathname === "/sitemap.xml")
|
|
93
|
+
await contextOf();
|
|
94
|
+
const answered = seoFile(request, entry, origin, () => latest.published) ??
|
|
95
|
+
(await front.handle?.(request)) ??
|
|
96
|
+
(await served(request, (app) => ({
|
|
97
|
+
app: { ...app, site: entry.name, login: front },
|
|
98
|
+
site: entry.name,
|
|
99
|
+
origin,
|
|
100
|
+
})));
|
|
101
|
+
return asked === entry.domain ? answered : withHeader(answered, "x-robots-tag", "noindex");
|
|
102
|
+
}
|
|
103
|
+
// Then the login sees every request (pages, server functions and files alike): its own
|
|
104
|
+
// routes, and any it will not let through.
|
|
105
|
+
return (await login.handle?.(request)) ?? served(request, (app) => ({ app, origin: requestOrigin(request) }));
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* What the host has for the request, else Start's answer, in the context `asked` makes of the
|
|
109
|
+
* snapshot as it is now: a file never waits for the snapshot to be checked.
|
|
110
|
+
*/
|
|
111
|
+
const served = async (request, asked) => (await options.files?.(request)) ?? (await options.entry.fetch(request, { context: asked(await contextOf()) }));
|
|
112
|
+
return {
|
|
113
|
+
context,
|
|
114
|
+
hosts,
|
|
115
|
+
domains,
|
|
116
|
+
async fetch(request) {
|
|
117
|
+
try {
|
|
118
|
+
return await answer(request);
|
|
119
|
+
}
|
|
120
|
+
catch (err) {
|
|
121
|
+
console.error("sanoma app: request failed:", err);
|
|
122
|
+
return Response.json({ error: "Internal error" }, { status: 500 });
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
/** `response` with the header set: a copy, since a response another made may have its headers fixed. */
|
|
128
|
+
function withHeader(response, name, value) {
|
|
129
|
+
const copy = new Response(response.body, response);
|
|
130
|
+
copy.headers.set(name, value);
|
|
131
|
+
return copy;
|
|
132
|
+
}
|
|
133
|
+
/** The route each path is answered by: refuses two routes of one path, `/healthz`, a path with a query. */
|
|
134
|
+
function ingressOf(routes) {
|
|
135
|
+
const exact = new Map();
|
|
136
|
+
for (const route of routes) {
|
|
137
|
+
if (!/^\/[^?#]*$/.test(route.path) || route.path === "/healthz")
|
|
138
|
+
throw new Error(`An ingress route's path starts with /, has no query and is not /healthz, unlike "${route.path}"`);
|
|
139
|
+
if (route.prefix && route.path.endsWith("/"))
|
|
140
|
+
throw new Error(`A prefix ingress route's path does not end with /, unlike "${route.path}"`);
|
|
141
|
+
if (exact.has(route.path))
|
|
142
|
+
throw new Error(`Two ingress routes have the path ${route.path}: give each path one route`);
|
|
143
|
+
exact.set(route.path, route);
|
|
144
|
+
}
|
|
145
|
+
// Longest first, so the first under which a path falls is the most specific.
|
|
146
|
+
const prefixed = [...exact.values()].filter((r) => r.prefix).toSorted((a, b) => b.path.length - a.path.length);
|
|
147
|
+
return (path) => exact.get(path) ?? prefixed.find((route) => path.startsWith(`${route.path}/`));
|
|
148
|
+
}
|
|
149
|
+
/** A public site's host on this machine. */
|
|
150
|
+
export const localHost = (site) => `${siteHost(site)}.localhost`;
|
|
151
|
+
/**
|
|
152
|
+
* Each public site's hosts, to its entry (a copy, with its `domain`): `<name>.localhost`, and the
|
|
153
|
+
* domain `domains` gives it. A domain naming a site that is missing or not public is warned about
|
|
154
|
+
* and served nowhere; so is a host another site has first (one site per host).
|
|
155
|
+
*/
|
|
156
|
+
function publicHosts(description, domains) {
|
|
157
|
+
const hosts = new Map();
|
|
158
|
+
const claim = (host, site) => {
|
|
159
|
+
if (!hosts.has(host))
|
|
160
|
+
return void hosts.set(host, site);
|
|
161
|
+
console.warn(`sanoma app: ${host} is another public site's host: ${siteDir(site.name)} is not served there`);
|
|
162
|
+
};
|
|
163
|
+
const entries = new Map(description.sites.filter((site) => site.public).map((site) => [site.name, { ...site }]));
|
|
164
|
+
for (const site of entries.values())
|
|
165
|
+
claim(localHost(site.name), site);
|
|
166
|
+
for (const [name, domain] of Object.entries(domains)) {
|
|
167
|
+
const site = entries.get(name);
|
|
168
|
+
if (!site) {
|
|
169
|
+
console.warn(`sanoma app: the domain ${domain} names ${siteDir(name)}, which is not a public site: not served`);
|
|
170
|
+
continue;
|
|
171
|
+
}
|
|
172
|
+
const host = domain.toLowerCase();
|
|
173
|
+
claim(host, site);
|
|
174
|
+
if (hosts.get(host) === site)
|
|
175
|
+
site.domain = host;
|
|
176
|
+
}
|
|
177
|
+
return hosts;
|
|
178
|
+
}
|
|
179
|
+
//# sourceMappingURL=handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handler.js","sourceRoot":"","sources":["../src/handler.ts"],"names":[],"mappings":"AAAA,+FAA+F;AAC/F,iGAAiG;AACjG,4FAA4F;AAC5F,+FAA+F;AAC/F,iCAAiC;AACjC,OAAO,EAAuB,aAAa,EAAqB,MAAM,kBAAkB,CAAC;AAEzF,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAElD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S;QACX,CAAC;QACD,MAAM,IAAI,GAAG,MAAM,CAAC,WAAW,EAAE,CAAC;QAClC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QAClB,IAAI,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,IAAI;YAAE,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;IACnD,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { type SanomaConfig, type SocialClients, type Source } from "sanoma/workflows";
|
|
2
|
+
import type { LoginProvider } from "./context.ts";
|
|
3
|
+
import { type IngressRoute } from "./handler.ts";
|
|
4
|
+
export { ACTOR_HEADER } from "./api.ts";
|
|
5
|
+
export type { LoginProvider, ResolveActor } from "./context.ts";
|
|
6
|
+
export type { IngressRoute } from "./handler.ts";
|
|
7
|
+
export { type MakeStaffLogin, type StaffSocial, staffLogin } from "./login/staff.ts";
|
|
8
|
+
export { loopbackLogin } from "./loopback.ts";
|
|
9
|
+
export type { AppBundle, AppBundleContext, AppBundleEnv, AppBundleModule, AppHost } from "./app-bundle.ts";
|
|
10
|
+
export interface AppOptions {
|
|
11
|
+
/** Defaults to 0: any free port, which `App.url` reports. 3000 is the suggested fixed port. */
|
|
12
|
+
port?: number;
|
|
13
|
+
/**
|
|
14
|
+
* Defaults to 127.0.0.1, so only this machine can reach the app. Any other host needs a `login`:
|
|
15
|
+
* the default has none, and refuses to listen there.
|
|
16
|
+
*/
|
|
17
|
+
host?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Who may use the app and how they sign in. Defaults to `loopbackLogin()`: no login, the name
|
|
20
|
+
* the page sends in the `x-sanoma-actor` header, on this machine only.
|
|
21
|
+
*/
|
|
22
|
+
login?: LoginProvider;
|
|
23
|
+
/** The company's repository: Adopt commits the data file it writes through it. Without one, it only writes the file. */
|
|
24
|
+
source?: Source;
|
|
25
|
+
/** The built app (`client/` and `server/`). Defaults to the one this package ships. */
|
|
26
|
+
distDir?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Serves a company repo's app with its sites from Vite's dev server instead of a build: edits
|
|
29
|
+
* to a site or to the app's source show without a restart, and a new site folder is live once
|
|
30
|
+
* it has a route file. On this machine only (the hot updates' websocket bypasses the login).
|
|
31
|
+
* `onFileChange` is called with each file added, changed or removed in the repo (`appDevServer`).
|
|
32
|
+
*/
|
|
33
|
+
dev?: {
|
|
34
|
+
repo: string;
|
|
35
|
+
onFileChange?: (file: string) => void;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* A public site's domain, by site name (`www: "sanoma.example"`): the app serves the site at the
|
|
39
|
+
* root of that host, as it does at `<name>.localhost`. One naming a site that is missing or not
|
|
40
|
+
* public is warned about and not served.
|
|
41
|
+
*/
|
|
42
|
+
domains?: Record<string, string>;
|
|
43
|
+
/**
|
|
44
|
+
* The company's own OAuth clients (its GitHub App's), given to each public site's login
|
|
45
|
+
* (`LoginContext.social`), which then offers them to visitors. The staff login takes its own
|
|
46
|
+
* (`staffLogin(make, social)`).
|
|
47
|
+
*/
|
|
48
|
+
social?: SocialClients;
|
|
49
|
+
/**
|
|
50
|
+
* Machine routes, answered right after `/healthz` and ahead of the public sites and the login,
|
|
51
|
+
* at any host name: a request whose path is exactly `path` is answered by `handle`, or with 405
|
|
52
|
+
* when `method` is given and the request's is another. One route per path, never `/healthz`.
|
|
53
|
+
* Nothing checks who is asking, so each checks its own token; never give one a page's path.
|
|
54
|
+
* Besides these, the app answers `POST /webhooks/<vendor>` for each connector's remote half that
|
|
55
|
+
* reads webhooks (`remoteWebhook`).
|
|
56
|
+
*/
|
|
57
|
+
ingress?: readonly IngressRoute[];
|
|
58
|
+
/**
|
|
59
|
+
* Called right before each change a worker must run that the app makes: a run's start (drift,
|
|
60
|
+
* apply and a held call are starts) and an approval's decision; never for a read
|
|
61
|
+
* (`ClientOptions.onWrite`). `sanoma serve` starts its worker again with it once the worker
|
|
62
|
+
* stopped itself. Must not throw.
|
|
63
|
+
*/
|
|
64
|
+
onWrite?: () => void;
|
|
65
|
+
}
|
|
66
|
+
export interface App {
|
|
67
|
+
/** Where the app listens, such as `http://127.0.0.1:3000`. */
|
|
68
|
+
url: string;
|
|
69
|
+
/** Each public site served, by name, at its own host on this machine: `http://<name>.localhost:<port>`. */
|
|
70
|
+
sites: Record<string, string>;
|
|
71
|
+
close(): Promise<void>;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Serves the app over a config on Node: its runs, their ledgers and approvals, and a form to start
|
|
75
|
+
* each workflow, from the company's files where they are. Reads the same config the worker runs,
|
|
76
|
+
* through Postgres and the config's ledger store; it runs no workflows itself. Refuses, at once, a
|
|
77
|
+
* config the worker would refuse; missing credentials refuse nothing, and the connector pages
|
|
78
|
+
* show and set them; data files with problems it warns about and leaves out (the Hosting page
|
|
79
|
+
* lists them).
|
|
80
|
+
*/
|
|
81
|
+
export declare function startApp(config: SanomaConfig, options?: AppOptions): Promise<App>;
|