sanoma 0.11.21 → 0.11.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +55 -14
- package/app/README.md +12 -8
- package/app/dist/api.d.ts +191 -5
- package/app/dist/api.js +125 -4
- package/app/dist/api.js.map +1 -1
- package/app/dist/build.d.ts +28 -3
- package/app/dist/build.js +154 -15
- package/app/dist/build.js.map +1 -1
- package/app/dist/bundle-build.d.ts +32 -0
- package/app/dist/bundle-build.js +127 -67
- package/app/dist/bundle-build.js.map +1 -1
- package/app/dist/client/assets/ArrowDown.es-BVRf--PS.js +1 -0
- package/app/dist/client/assets/CaretDown.es-D12mWb2j.js +1 -0
- package/app/dist/client/assets/CatchBoundary-Cb__yx-s.js +1 -0
- package/app/dist/client/assets/Check.es-b7BdqO2s.js +1 -0
- package/app/dist/client/assets/CheckCircle.es-DKXiWmAT.js +1 -0
- package/app/dist/client/assets/Copy.es-CvUujKw7.js +1 -0
- package/app/dist/client/assets/DialogTitle-5oboyLiq.js +1 -0
- package/app/dist/client/assets/FloppyDisk.es-CDyDob8p.js +1 -0
- package/app/dist/client/assets/Globe.es-C1pgZCGM.js +1 -0
- package/app/dist/client/assets/MagnifyingGlass.es-CZ3i6pz0.js +1 -0
- package/app/dist/client/assets/Play.es-DGJ1CGhp.js +1 -0
- package/app/dist/client/assets/Plug.es-BPhGL8MK.js +1 -0
- package/app/dist/client/assets/Plus.es-i3Vaa2WW.js +1 -0
- package/app/dist/client/assets/Separator-Cu9cQDBN.js +1 -0
- package/app/dist/client/assets/X.es-B7rq0E_-.js +1 -0
- package/app/dist/client/assets/_id-0_Y-lz6G.js +1 -0
- package/app/dist/client/assets/_id-3tGIwJ5T.js +1 -0
- package/app/dist/client/assets/_id-CgPVeQe8.js +1 -0
- package/app/dist/client/assets/_id-DFlFuBDE.js +1 -0
- package/app/dist/client/assets/_id-QNnNLGx_.js +1 -0
- package/app/dist/client/assets/_name-6k1yqjX8.js +1 -0
- package/app/dist/client/assets/_name-B4Qba2-o.js +4 -0
- package/app/dist/client/assets/_name-BfPXcP49.js +1 -0
- package/app/dist/client/assets/_name-CqBzHz7c.js +1 -0
- package/app/dist/client/assets/_vendor-CfHRJBG8.js +1 -0
- package/app/dist/client/assets/_vendor-Dj7KCZ74.js +1 -0
- package/app/dist/client/assets/app-chrome-CFH47gLL.js +5 -0
- package/app/dist/client/assets/app-scope-Z_2GE9oz.js +1 -0
- package/app/dist/client/assets/approval-CgksyU5L.js +1 -0
- package/app/dist/client/assets/apps-BDsPVmMY.js +1 -0
- package/app/dist/client/assets/button-D5kdANef.js +1 -0
- package/app/dist/client/assets/change-glance-D6N6Xaqu.js +1 -0
- package/app/dist/client/assets/changes-B6xxBiC0.js +1 -0
- package/app/dist/client/assets/changes-BS7eJI5T.js +1 -0
- package/app/dist/client/assets/chat-Bw3WhRE9.js +14 -0
- package/app/dist/client/assets/chat-button-DNusaP5n.js +1 -0
- package/app/dist/client/assets/chat-prompt-z0XJPDtH.js +1 -0
- package/app/dist/client/assets/{code-BVYaiQEr.js → code-CT4-YDKq.js} +2 -2
- package/app/dist/client/assets/common-DZLdx_jS.js +3 -0
- package/app/dist/client/assets/composite-CoGyvQjv.js +1 -0
- package/app/dist/client/assets/connect-BMk-KP-f.js +1 -0
- package/app/dist/client/assets/connections-TbS_jeiy.js +5 -0
- package/app/dist/client/assets/connectors-CgRpyRdd.js +1 -0
- package/app/dist/client/assets/credentials-Dxpl8sUw.js +1 -0
- package/app/dist/client/assets/css-BGIxQoYs.js +1 -0
- package/app/dist/client/assets/css-DgaLhXQH.js +1 -0
- package/app/dist/client/assets/data-lKkklNeo.js +1 -0
- package/app/dist/client/assets/decidable-w2VGgZwN.js +1 -0
- package/app/dist/client/assets/declaration-form-CAwox7F1.js +1 -0
- package/app/dist/client/assets/dialog-DDAfDsGh.js +1 -0
- package/app/dist/client/assets/diff-woXpYk--.js +1 -0
- package/app/dist/client/assets/engine-CBuzy-Ik.js +1 -0
- package/app/dist/client/assets/existing-2kDivy4p.js +1 -0
- package/app/dist/client/assets/fence-BdtS5gi0.js +157 -0
- package/app/dist/client/assets/github-dark-C-LZuMrd.js +1 -0
- package/app/dist/client/assets/github-light-EUqPIrTm.js +1 -0
- package/app/dist/client/assets/graph-BqVQ68hK.js +7 -0
- package/app/dist/client/assets/grid-diff-Jj1nTy52.js +1 -0
- package/app/dist/client/assets/held-card-DjBO8PTe.js +1 -0
- package/app/dist/client/assets/highlighted-body-JLMTFACH-Co7ss_Ht.js +1 -0
- package/app/dist/client/assets/hosting-DC7Pftfb.js +1 -0
- package/app/dist/client/assets/html-BHZv6uqE.js +1 -0
- package/app/dist/client/assets/import-DhVQArmJ.js +1 -0
- package/app/dist/client/assets/inbox-5h39e_tI.js +1 -0
- package/app/dist/client/assets/inbox-CUNaP4uz.js +1 -0
- package/app/dist/client/assets/index-CA_5CFb4.js +10 -0
- package/app/dist/client/assets/item-vV00RYfb.js +1 -0
- package/app/dist/client/assets/javascript-BzbQS41l.js +1 -0
- package/app/dist/client/assets/javascript-CpIGwZ_Y.js +1 -0
- package/app/dist/client/assets/json-qhed-kSA.js +1 -0
- package/app/dist/client/assets/jsx-Bz0zcwM4.js +1 -0
- package/app/dist/client/assets/kit-BZcdh1Xm.js +1 -0
- package/app/dist/client/assets/lazyRouteComponent-C2a8bGcK.js +1 -0
- package/app/dist/client/assets/markdown-BYOwaDjH.js +1 -0
- package/app/dist/client/assets/markdown-bsqylRZb.js +164 -0
- package/app/dist/client/assets/mermaid-WFAXDIZX-CYMnek4e.js +1 -0
- package/app/dist/client/assets/motion-D6e1hqz4.js +1 -0
- package/app/dist/client/assets/people-Bn8GAJ3z.js +1 -0
- package/app/dist/client/assets/permissions-Csf87P7b.js +2 -0
- package/app/dist/client/assets/permissions-grid-CzK64E29.js +1 -0
- package/app/dist/client/assets/preload-helper-BLdHbfdN.js +1 -0
- package/app/dist/client/assets/python-gzcpVVnB.js +1 -0
- package/app/dist/client/assets/queries-XJ-fmuYb.js +57 -0
- package/app/dist/client/assets/react-dom-D6fTz1bt.js +1 -0
- package/app/dist/client/assets/review-BjpH-tT4.js +1 -0
- package/app/dist/client/assets/route-CD2oErox.js +1 -0
- package/app/dist/client/assets/route-CRwDZE-c.js +1 -0
- package/app/dist/client/assets/routes-gbZbqIhO.js +1 -0
- package/app/dist/client/assets/runs-table-nkQLXJxG.js +1 -0
- package/app/dist/client/assets/scenario-CZ7tmap7.js +1 -0
- package/app/dist/client/assets/scenario-graph-W2XcWuur.js +1 -0
- package/app/dist/client/assets/separator-Bdtc7rou.js +1 -0
- package/app/dist/client/assets/{sheet-BYL9XU5s.js → sheet-P-hJsTeq.js} +1 -1
- package/app/dist/client/assets/shellscript-CLZ0U2zV.js +1 -0
- package/app/dist/client/assets/site-icon-1Mcc1UIb.js +1 -0
- package/app/dist/client/assets/sites.index-CXcRF_R0.js +1 -0
- package/app/dist/client/assets/spinner-XaRXIj9W.js +1 -0
- package/app/dist/client/assets/sql-CEbI0hMM.js +1 -0
- package/app/dist/client/assets/start-form-6whPfUoW.js +1 -0
- package/app/dist/client/assets/store-BT988jIX.js +1 -0
- package/app/dist/client/assets/style-DaqPHcI1.css +2 -0
- package/app/dist/client/assets/table-B81tv0LG.js +1 -0
- package/app/dist/client/assets/textarea-CRpYU-qx.js +1 -0
- package/app/dist/client/assets/tsx-udAQXfEw.js +1 -0
- package/app/dist/client/assets/typescript-bsJCZSQ-.js +1 -0
- package/app/dist/client/assets/useLoaderData-BIegJC9y.js +1 -0
- package/app/dist/client/assets/useOpenInteractionType-UhakpAXY.js +1 -0
- package/app/dist/client/assets/useRegisterFieldControl-CT8iqvDE.js +1 -0
- package/app/dist/client/assets/useValueChanged-DBqn456b.js +1 -0
- package/app/dist/client/assets/utils-BRvE9-Fo.js +1 -0
- package/app/dist/client/assets/who-are-you-_7OehU_o.js +1 -0
- package/app/dist/client/assets/workflow-DSNK0oFo.js +1 -0
- package/app/dist/client/assets/workflow-view-VFD3onJL.js +1 -0
- package/app/dist/client/assets/workflows-CT9wqMl2.js +1 -0
- package/app/dist/client/assets/yaml-rwi0_p6S.js +1 -0
- package/app/dist/components/grid/plan.d.ts +46 -262
- package/app/dist/components/grid/plan.js +134 -138
- package/app/dist/components/grid/plan.js.map +1 -1
- package/app/dist/demo-build.d.ts +58 -0
- package/app/dist/demo-build.js +440 -0
- package/app/dist/demo-build.js.map +1 -0
- package/app/dist/handler.d.ts +9 -7
- package/app/dist/handler.js +10 -10
- package/app/dist/handler.js.map +1 -1
- package/app/dist/index.d.ts +4 -4
- package/app/dist/index.js +52 -35
- package/app/dist/index.js.map +1 -1
- package/app/dist/lib/chat.d.ts +67 -20
- package/app/dist/lib/chat.js +54 -18
- package/app/dist/lib/chat.js.map +1 -1
- package/app/dist/lib/names.d.ts +7 -0
- package/app/dist/lib/names.js +6 -2
- package/app/dist/lib/names.js.map +1 -1
- package/app/dist/login/page.d.ts +1 -10
- package/app/dist/login/page.js +0 -14
- package/app/dist/login/page.js.map +1 -1
- package/app/dist/login/staff.js +3 -3
- package/app/dist/login/staff.js.map +1 -1
- package/app/dist/server/assets/{_id-wuJIq2ZZ.js → _id-B6iAc90c.js} +2 -2
- package/app/dist/server/assets/{_id-Dt9tTylX.js → _id-BlceO2iK.js} +3 -3
- package/app/dist/server/assets/{_id-wB8khGTz.js → _id-Cc0uBuJb.js} +12 -7
- package/app/dist/server/assets/{_id-ce1EGp7Y.js → _id-DYfvgveB.js} +2 -2
- package/app/dist/server/assets/{_id-BViXAagq.js → _id-Dvn0wB-1.js} +15 -330
- package/app/dist/server/assets/{_name-BGagGBjX.js → _name-3AGcE6tj.js} +7 -7
- package/app/dist/server/assets/{_name-DntbHE-b.js → _name-BIcmcEwj.js} +11 -11
- package/app/dist/server/assets/{_name-BqFwnyf7.js → _name-CfoydEzk.js} +2 -2
- package/app/dist/server/assets/{_name-D_-MhjNf.js → _name-VpcPszKf.js} +210 -63
- package/app/dist/server/assets/{_tanstack-start-manifest_v-BljuBM-G.js → _tanstack-start-manifest_v-DUL7FcJk.js} +119 -91
- package/app/dist/server/assets/{_vendor-CcEviOki.js → _vendor-Bwis2sPx.js} +2 -2
- package/app/dist/server/assets/{_vendor-CNB03LWX.js → _vendor-DUtH-Z9W.js} +8 -8
- package/app/dist/server/assets/{actor-D6iA0pDg.js → actor-DAOPjcdj.js} +1 -1
- package/app/dist/server/assets/app-chrome-B8oA4uXZ.js +2298 -0
- package/app/dist/server/assets/{app-scope-CXIgOFmi.js → app-scope-BxuIu0xV.js} +2 -2
- package/app/dist/server/assets/{apply-plan-ybBda6vQ.js → apply-plan-CHJ_Hr71.js} +8 -7
- package/app/dist/server/assets/{approval-Su315ikC.js → approval-DR_9mBcx.js} +17 -14
- package/app/dist/server/assets/{apps-xwQAehch.js → apps-CtPev5RI.js} +7 -7
- package/app/dist/server/assets/button-Xwx3rpQ0.js +43 -0
- package/app/dist/server/assets/change-glance-DGqh7Pxb.js +54 -0
- package/app/dist/server/assets/{change-glance-CpArIbGS.js → changes-C3qjEBZP.js} +2 -54
- package/app/dist/server/assets/{changes-Bc_OiDBD.js → changes-DfOnO87K.js} +8 -7
- package/app/dist/server/assets/{chat-DMN_hoKm.js → chat-B19X0_8f.js} +133 -34
- package/app/dist/server/assets/{chat-button-LtA80MoR.js → chat-button-SluTWK8R.js} +2 -2
- package/app/dist/server/assets/{code-COyt8L-n.js → code-hVpCkmAZ.js} +1 -1
- package/app/dist/server/assets/{common-CWHLj7KV.js → common-JUUJLp4v.js} +30 -82
- package/app/dist/server/assets/{connect-BpPiu5s6.js → connect-DKu1UgY-.js} +11 -10
- package/app/dist/server/assets/{connections-DBgb1bvX.js → connections-Dyedl4qi.js} +12 -11
- package/app/dist/server/assets/{connectors-5a5_SlHO.js → connectors-yojQH7WS.js} +8 -8
- package/app/dist/server/assets/{credentials-ud_Y68hx.js → credentials-2Z6EHitQ.js} +10 -9
- package/app/dist/server/assets/{data-aEdhwcqy.js → data-1padc_i_.js} +7 -7
- package/app/dist/server/assets/{declaration-form-Dfg1yNuY.js → declaration-form-MAnn_M8g.js} +7 -6
- package/app/dist/server/assets/{dialog-BGjiw3Dx.js → dialog-T0bzlKzs.js} +2 -2
- package/app/dist/server/assets/{dropdown-menu-DAC3LWas.js → dropdown-menu-RGvPORm4.js} +1 -1
- package/app/dist/server/assets/{existing-B4d4NrC8.js → existing-BZjX_7Aa.js} +8 -7
- package/app/dist/server/assets/fence-BvNu3YNO.js +130 -0
- package/app/dist/server/assets/{field-C0Xx_90s.js → field-DFpkT1id.js} +1 -1
- package/app/dist/server/assets/{functions-BvFYzabD.js → functions-wlvFaDkF.js} +246 -44
- package/app/dist/server/assets/{graph-qYOdoz2s.js → graph-DjANDk1P.js} +5 -5
- package/app/dist/server/assets/{grid-diff-jTvp-8wS.js → grid-diff-D5bQDKl2.js} +1 -1
- package/app/dist/server/assets/held-card-CCEypEau.js +75 -0
- package/app/dist/server/assets/{hosting-bbn9UvDc.js → hosting-Csr6AVC7.js} +321 -42
- package/app/dist/server/assets/{import-DIwvzHb6.js → import-CtPlwdIl.js} +12 -10
- package/app/dist/server/assets/{inbox-Dj-5FleF.js → inbox-9-WMgjdU.js} +2 -2
- package/app/dist/server/assets/{inbox-D6R6sWBB.js → inbox-BYKHV9Yh.js} +8 -8
- package/app/dist/server/assets/{input-D63gF3G2.js → input-CF-vX8Xp.js} +1 -1
- package/app/dist/server/assets/{item-BDSXoEr_.js → item-LBDNja5f.js} +1 -1
- package/app/dist/server/assets/{kit-D6EulwBe.js → kit-D5moAfcg.js} +57 -4
- package/app/dist/server/assets/markdown-B9odAiMy.js +116 -0
- package/app/dist/server/assets/{middleware-B8JRLyxx.js → middleware-C4Wn6uHO.js} +325 -285
- package/app/dist/server/assets/{native-select-DLa-He0n.js → native-select-etaMvR-i.js} +2 -9
- package/app/dist/server/assets/{people-CkU_AxrV.js → people-LpcYXtEq.js} +13 -12
- package/app/dist/server/assets/{permissions-BfMcQqQb.js → permissions-M0kzvVVm.js} +9 -8
- package/app/dist/server/assets/{permissions-grid-DWP9FAAS.js → permissions-grid-CwWWdcQA.js} +4 -4
- package/app/dist/server/assets/{button-f9Lc8qLl.js → queries-BDuQsTdU.js} +141 -59
- package/app/dist/server/assets/review-BFZCPdVZ.js +355 -0
- package/app/dist/server/assets/{route-CF_8jQYY.js → route-BJLQf4ik.js} +2 -2
- package/app/dist/server/assets/{route-BTT7nMJq.js → route-C3uFABee.js} +2 -2
- package/app/dist/server/assets/{router-BvYtxrVN.js → router-Dx7Gu0CN.js} +175 -147
- package/app/dist/server/assets/routes-iVrnGFaR.js +227 -0
- package/app/dist/server/assets/{runs-table-BBudn12Y.js → runs-table-g3QYggO3.js} +6 -6
- package/app/dist/server/assets/{scenario-BXGTSTiP.js → scenario-B5dGlEGF.js} +5 -5
- package/app/dist/server/assets/{separator-8MZ7vR3f.js → separator-Cf98V8ie.js} +1 -1
- package/app/dist/server/assets/{sheet-5Cyp-4UW.js → sheet-DTOG7OHQ.js} +2 -2
- package/app/dist/server/assets/sites.index-BNeYUQnQ.js +165 -0
- package/app/dist/server/assets/{spinner-C1ZW08lp.js → spinner-016IPVi-.js} +1 -1
- package/app/dist/server/assets/{start-CSU4irVK.js → start-CIKqNkKp.js} +2 -2
- package/app/dist/server/assets/{start-form-DI60UOrc.js → start-form-BXAi2lVm.js} +10 -9
- package/app/dist/server/assets/{table-DtPk_h_5.js → table-y-dGlLx6.js} +1 -1
- package/app/dist/server/assets/{textarea-f0Ip5ed1.js → textarea-B02joDnr.js} +1 -1
- package/app/dist/server/assets/utils-CHesvfjo.js +138 -0
- package/app/dist/server/assets/{who-are-you-ZGyMnpVi.js → who-are-you-CavnVMGe.js} +16 -10
- package/app/dist/server/assets/{workflow-Z99QWO42.js → workflow-BXhqp6S1.js} +5 -5
- package/app/dist/server/assets/{workflow-view-C8X8U11S.js → workflow-view-go1rbTSF.js} +14 -13
- package/app/dist/server/assets/{workflows-C0kJoGf1.js → workflows-BCcXZtN-.js} +14 -14
- package/app/dist/server/chat.d.ts +6 -1
- package/app/dist/server/chat.js +39 -20
- package/app/dist/server/chat.js.map +1 -1
- package/app/dist/server/core.d.ts +24 -9
- package/app/dist/server/core.js +58 -119
- package/app/dist/server/core.js.map +1 -1
- package/app/dist/server/go-live.d.ts +11 -2
- package/app/dist/server/go-live.js +27 -27
- package/app/dist/server/go-live.js.map +1 -1
- package/app/dist/server/server.js +68 -48
- package/app/dist/server/setup.js +1 -1
- package/app/dist/server/setup.js.map +1 -1
- package/app/dist/server/token-redeem.d.ts +8 -0
- package/app/dist/server/token-redeem.js +45 -0
- package/app/dist/server/token-redeem.js.map +1 -0
- package/app/dist/site-path.d.ts +15 -0
- package/app/dist/site-path.js +26 -0
- package/app/dist/site-path.js.map +1 -1
- package/app/dist/snapshot-build.js +1 -0
- package/app/dist/snapshot-build.js.map +1 -1
- package/app/dist/steps/agent/acp.d.ts +3 -97
- package/app/dist/steps/agent/acp.js +19 -49
- package/app/dist/steps/agent/acp.js.map +1 -1
- package/app/dist/steps/agent/checkout.d.ts +18 -1
- package/app/dist/steps/agent/checkout.js +17 -0
- package/app/dist/steps/agent/checkout.js.map +1 -1
- package/app/dist/steps/agent/harness.d.ts +2 -4
- package/app/dist/steps/agent/harness.js +45 -61
- package/app/dist/steps/agent/harness.js.map +1 -1
- package/app/dist/steps/agent/prompt.d.ts +1 -1
- package/app/dist/steps/agent/prompt.js +37 -16
- package/app/dist/steps/agent/prompt.js.map +1 -1
- package/app/dist/steps/agent/transcript.d.ts +10 -1
- package/app/dist/steps/agent/transcript.js +75 -2
- package/app/dist/steps/agent/transcript.js.map +1 -1
- package/app/dist/steps/agent/turn.d.ts +4 -6
- package/app/dist/steps/agent/turn.js +14 -16
- package/app/dist/steps/agent/turn.js.map +1 -1
- package/app/dist/steps/index.js +2 -2
- package/app/dist/steps/index.js.map +1 -1
- package/app/dist/steps/writes.d.ts +21 -7
- package/app/dist/steps/writes.js +100 -23
- package/app/dist/steps/writes.js.map +1 -1
- package/app/dist/stylesheet.json +1 -1
- package/app/src/api.ts +188 -4
- package/app/src/build.ts +177 -14
- package/app/src/bundle-build.ts +132 -63
- package/app/src/components/app-chrome.tsx +28 -13
- package/app/src/components/approval.tsx +1 -1
- package/app/src/components/common.tsx +18 -88
- package/app/src/components/data-grid.tsx +2 -1
- package/app/src/components/go-live-cloud.tsx +44 -0
- package/app/src/components/go-live.tsx +51 -13
- package/app/src/components/grid/columns.tsx +175 -53
- package/app/src/components/grid/grid.tsx +4 -2
- package/app/src/components/grid/plan.ts +153 -164
- package/app/src/components/grid/review.tsx +108 -118
- package/app/src/components/home.tsx +199 -0
- package/app/src/components/import/match.tsx +2 -1
- package/app/src/components/import/sheet.ts +2 -1
- package/app/src/components/kit.tsx +55 -1
- package/app/src/components/logo.tsx +25 -0
- package/app/src/components/record-form.tsx +12 -5
- package/app/src/components/shell/bar.tsx +35 -26
- package/app/src/components/shell/chat-parts.tsx +185 -126
- package/app/src/components/shell/chat-prompt.ts +6 -2
- package/app/src/components/shell/chat.tsx +154 -220
- package/app/src/components/shell/composer.tsx +140 -0
- package/app/src/components/shell/connect-agent.tsx +157 -0
- package/app/src/components/shell/draft-card.tsx +192 -45
- package/app/src/components/shell/engine-mark.tsx +9 -0
- package/app/src/components/shell/fence.tsx +25 -0
- package/app/src/components/shell/held-card.tsx +58 -0
- package/app/src/components/shell/markdown.tsx +152 -0
- package/app/src/components/shell/nav-user.tsx +11 -1
- package/app/src/components/shell/prefs.ts +12 -1
- package/app/src/components/shell/thread.tsx +174 -0
- package/app/src/components/store-move.tsx +2 -1
- package/app/src/components/ui/bubble.tsx +117 -0
- package/app/src/components/ui/code-block.tsx +235 -0
- package/app/src/components/ui/input-group.tsx +136 -0
- package/app/src/components/ui/marker.tsx +67 -0
- package/app/src/components/ui/message-scroller.tsx +117 -0
- package/app/src/components/ui/message.tsx +74 -0
- package/app/src/components/ui/radio-group.tsx +26 -0
- package/app/src/components/ui/trace.tsx +133 -0
- package/app/src/components/who-are-you.tsx +8 -3
- package/app/src/demo/api.ts +42 -0
- package/app/src/demo/client-rpc.ts +16 -0
- package/app/src/demo/demo.css +31 -0
- package/app/src/demo/mount.tsx +97 -0
- package/app/src/demo/root.tsx +31 -0
- package/app/src/demo/tailwind.css +4 -0
- package/app/src/demo-build.ts +525 -0
- package/app/src/env.d.ts +12 -0
- package/app/src/functions.ts +50 -7
- package/app/src/handler.ts +20 -14
- package/app/src/hooks/use-highlighted-code.ts +72 -0
- package/app/src/index.ts +55 -36
- package/app/src/lib/chat.ts +113 -23
- package/app/src/lib/cn-tables.ts +23 -23
- package/app/src/lib/company-state.ts +73 -0
- package/app/src/lib/highlighter.tsx +114 -0
- package/app/src/lib/names.ts +13 -2
- package/app/src/login/page.ts +1 -21
- package/app/src/login/staff.ts +3 -3
- package/app/src/queries.ts +121 -18
- package/app/src/routes/__root.tsx +24 -7
- package/app/src/routes/changes/$id.tsx +4 -3
- package/app/src/routes/connectors/index.tsx +1 -1
- package/app/src/routes/data/$name/import.tsx +2 -1
- package/app/src/routes/data/$name/index.tsx +1 -2
- package/app/src/routes/hosting/index.tsx +277 -60
- package/app/src/routes/index.tsx +15 -4
- package/app/src/routes/sites.index.tsx +41 -3
- package/app/src/routes/workflows/$name/runs/$id.tsx +3 -1
- package/app/src/server/chat.ts +41 -19
- package/app/src/server/columns.ts +44 -18
- package/app/src/server/company-state.ts +76 -0
- package/app/src/server/core.ts +72 -116
- package/app/src/server/go-live.ts +35 -27
- package/app/src/server/setup-progress.ts +28 -0
- package/app/src/server/setup.ts +1 -1
- package/app/src/server/token-redeem.ts +49 -0
- package/app/src/site-api.ts +10 -0
- package/app/src/site-path.ts +29 -0
- package/app/src/site.ts +1 -1
- package/app/src/snapshot-build.ts +1 -0
- package/app/src/steps/agent/acp.ts +10 -80
- package/app/src/steps/agent/checkout.ts +30 -0
- package/app/src/steps/agent/harness.ts +53 -78
- package/app/src/steps/agent/prompt.ts +45 -17
- package/app/src/steps/agent/transcript.ts +90 -3
- package/app/src/steps/agent/turn.ts +18 -16
- package/app/src/steps/index.ts +2 -2
- package/app/src/steps/writes.ts +121 -31
- package/app/src/worker/app.ts +17 -14
- package/dist/check.js +2 -2
- package/dist/check.js.map +1 -1
- package/dist/cli.js +81 -22
- package/dist/cli.js.map +1 -1
- package/dist/config.d.ts +8 -1
- package/dist/config.js +49 -8
- package/dist/config.js.map +1 -1
- package/dist/events.d.ts +15 -1
- package/dist/events.js +7 -0
- package/dist/events.js.map +1 -1
- package/dist/init.d.ts +27 -14
- package/dist/init.js +87 -39
- package/dist/init.js.map +1 -1
- package/dist/serve.d.ts +6 -2
- package/dist/serve.js +71 -9
- package/dist/serve.js.map +1 -1
- package/dist/source.d.ts +5 -0
- package/dist/source.js +113 -23
- package/dist/source.js.map +1 -1
- package/dist/worker-port.d.ts +16 -2
- package/dist/worker-port.js +44 -5
- package/dist/worker-port.js.map +1 -1
- package/invoices/README.md +66 -0
- package/invoices/dist/calculate.d.ts +37 -0
- package/invoices/dist/calculate.js +97 -0
- package/invoices/dist/calculate.js.map +1 -0
- package/invoices/dist/index.d.ts +4 -0
- package/invoices/dist/index.js +5 -0
- package/invoices/dist/index.js.map +1 -0
- package/invoices/dist/logo.d.ts +2 -0
- package/invoices/dist/logo.js +89 -0
- package/invoices/dist/logo.js.map +1 -0
- package/invoices/dist/pdf.d.ts +33 -0
- package/invoices/dist/pdf.js +215 -0
- package/invoices/dist/pdf.js.map +1 -0
- package/invoices/dist/schema.d.ts +156 -0
- package/invoices/dist/schema.js +88 -0
- package/invoices/dist/schema.js.map +1 -0
- package/oxlint.json +18 -0
- package/package.json +42 -7
- package/template/.env.example +15 -4
- package/template/AGENTS.md +10 -6
- package/template/package.json +6 -1
- package/template/policies/policy.cedar +5 -5
- package/template/resources/people.ts +5 -13
- package/template/resources/sanoma/infra.ts +8 -0
- package/template/sanoma.config.ts +18 -11
- package/template/scenarios/record-lead/record.feature +14 -0
- package/template/secrets.ts +13 -0
- package/template/tsconfig.json +1 -0
- package/template/workflows/record-lead.ts +30 -0
- package/testing/README.md +4 -4
- package/testing/dist/build.d.ts +3 -3
- package/testing/dist/build.js +4 -4
- package/testing/dist/build.js.map +1 -1
- package/testing/dist/host.d.ts +38 -21
- package/testing/dist/host.js +159 -77
- package/testing/dist/host.js.map +1 -1
- package/testing/dist/scenarios.d.ts +2 -1
- package/testing/dist/scenarios.js +14 -4
- package/testing/dist/scenarios.js.map +1 -1
- package/workflows/CLOUD-IDENTITY.md +15 -20
- package/workflows/README.md +54 -19
- package/workflows/dist/app-steps.js +8 -0
- package/workflows/dist/app-steps.js.map +1 -1
- package/workflows/dist/app-workflows.d.ts +172 -6
- package/workflows/dist/app-workflows.js +57 -9
- package/workflows/dist/app-workflows.js.map +1 -1
- package/workflows/dist/approvals.d.ts +3 -1
- package/workflows/dist/approvals.js +3 -1
- package/workflows/dist/approvals.js.map +1 -1
- package/workflows/dist/call.d.ts +8 -40
- package/workflows/dist/call.js +24 -135
- package/workflows/dist/call.js.map +1 -1
- package/workflows/dist/change-steps.d.ts +7 -0
- package/workflows/dist/change-steps.js +37 -13
- package/workflows/dist/change-steps.js.map +1 -1
- package/workflows/dist/change-workflow.d.ts +22 -10
- package/workflows/dist/change-workflow.js +30 -12
- package/workflows/dist/change-workflow.js.map +1 -1
- package/workflows/dist/change.d.ts +233 -7
- package/workflows/dist/change.js +27 -9
- package/workflows/dist/change.js.map +1 -1
- package/workflows/dist/client.d.ts +32 -5
- package/workflows/dist/client.js +94 -35
- package/workflows/dist/client.js.map +1 -1
- package/workflows/dist/cloud-identity.d.ts +5 -2
- package/workflows/dist/cloud-identity.js +7 -4
- package/workflows/dist/cloud-identity.js.map +1 -1
- package/workflows/dist/collection-driver.d.ts +20 -0
- package/workflows/dist/collection-driver.js +201 -0
- package/workflows/dist/collection-driver.js.map +1 -0
- package/workflows/dist/collection.d.ts +126 -14
- package/workflows/dist/collection.js +45 -168
- package/workflows/dist/collection.js.map +1 -1
- package/workflows/dist/company-file.d.ts +22 -0
- package/workflows/dist/company-file.js +82 -0
- package/workflows/dist/company-file.js.map +1 -0
- package/workflows/dist/config.d.ts +34 -6
- package/workflows/dist/config.js +58 -45
- package/workflows/dist/config.js.map +1 -1
- package/workflows/dist/ctx.d.ts +101 -0
- package/workflows/dist/ctx.js +171 -0
- package/workflows/dist/ctx.js.map +1 -0
- package/workflows/dist/db/company.d.ts +115 -1
- package/workflows/dist/db/company.js +14 -1
- package/workflows/dist/db/company.js.map +1 -1
- package/workflows/dist/db/dbos.d.ts +17 -0
- package/workflows/dist/db/dbos.js +2 -0
- package/workflows/dist/db/dbos.js.map +1 -1
- package/workflows/dist/db/identity.d.ts +2 -2
- package/workflows/dist/db/identity.js +2 -2
- package/workflows/dist/db/identity.js.map +1 -1
- package/workflows/dist/db.d.ts +1 -1
- package/workflows/dist/db.js +10 -6
- package/workflows/dist/db.js.map +1 -1
- package/workflows/dist/deadlines.d.ts +14 -8
- package/workflows/dist/deadlines.js +22 -11
- package/workflows/dist/deadlines.js.map +1 -1
- package/workflows/dist/define.d.ts +0 -8
- package/workflows/dist/define.js +1 -24
- package/workflows/dist/define.js.map +1 -1
- package/workflows/dist/describe.d.ts +1 -1
- package/workflows/dist/describe.js +18 -5
- package/workflows/dist/describe.js.map +1 -1
- package/workflows/dist/description.d.ts +408 -2
- package/workflows/dist/description.js +130 -5
- package/workflows/dist/description.js.map +1 -1
- package/workflows/dist/drift.d.ts +5 -2
- package/workflows/dist/drift.js +5 -3
- package/workflows/dist/drift.js.map +1 -1
- package/workflows/dist/errors.d.ts +11 -11
- package/workflows/dist/errors.js +17 -36
- package/workflows/dist/errors.js.map +1 -1
- package/workflows/dist/fake.d.ts +0 -26
- package/workflows/dist/fake.js +0 -123
- package/workflows/dist/fake.js.map +1 -1
- package/workflows/dist/fakes.d.ts +2 -0
- package/workflows/dist/fakes.js +5 -0
- package/workflows/dist/fakes.js.map +1 -0
- package/workflows/dist/givens.d.ts +51 -0
- package/workflows/dist/givens.js +89 -0
- package/workflows/dist/givens.js.map +1 -0
- package/workflows/dist/host.d.ts +8 -7
- package/workflows/dist/host.js +1 -1
- package/workflows/dist/host.js.map +1 -1
- package/workflows/dist/identity-provisioning.d.ts +2 -5
- package/workflows/dist/identity-provisioning.js +16 -20
- package/workflows/dist/identity-provisioning.js.map +1 -1
- package/workflows/dist/import.d.ts +2 -0
- package/workflows/dist/import.js +7 -6
- package/workflows/dist/import.js.map +1 -1
- package/workflows/dist/index.d.ts +8 -7
- package/workflows/dist/index.js +4 -3
- package/workflows/dist/index.js.map +1 -1
- package/workflows/dist/ledger.js +8 -17
- package/workflows/dist/ledger.js.map +1 -1
- package/workflows/dist/lint.d.ts +2 -2
- package/workflows/dist/lint.js +8 -4
- package/workflows/dist/lint.js.map +1 -1
- package/workflows/dist/load.js +1 -1
- package/workflows/dist/load.js.map +1 -1
- package/workflows/dist/log.d.ts +0 -2
- package/workflows/dist/log.js +0 -11
- package/workflows/dist/log.js.map +1 -1
- package/workflows/dist/op.d.ts +103 -3
- package/workflows/dist/op.js +56 -6
- package/workflows/dist/op.js.map +1 -1
- package/workflows/dist/page-run.d.ts +40 -0
- package/workflows/dist/page-run.js +317 -0
- package/workflows/dist/page-run.js.map +1 -0
- package/workflows/dist/paths.d.ts +0 -13
- package/workflows/dist/paths.js +2 -46
- package/workflows/dist/paths.js.map +1 -1
- package/workflows/dist/renewal.d.ts +1 -1
- package/workflows/dist/renewal.js +1 -1
- package/workflows/dist/run.d.ts +4 -1
- package/workflows/dist/run.js.map +1 -1
- package/workflows/dist/runtime-ops.d.ts +19 -4
- package/workflows/dist/runtime-ops.js +34 -5
- package/workflows/dist/runtime-ops.js.map +1 -1
- package/workflows/dist/sandbox-runner.cjs +4 -4
- package/workflows/dist/sandbox.d.ts +0 -20
- package/workflows/dist/sandbox.js +23 -85
- package/workflows/dist/sandbox.js.map +1 -1
- package/workflows/dist/scenario.d.ts +19 -1
- package/workflows/dist/scenario.js +82 -21
- package/workflows/dist/scenario.js.map +1 -1
- package/workflows/dist/schedules.d.ts +1 -1
- package/workflows/dist/schedules.js +1 -1
- package/workflows/dist/secret.d.ts +4 -5
- package/workflows/dist/secret.js +7 -6
- package/workflows/dist/secret.js.map +1 -1
- package/workflows/dist/shared.d.ts +84 -7
- package/workflows/dist/shared.js +255 -8
- package/workflows/dist/shared.js.map +1 -1
- package/workflows/dist/sites.d.ts +5 -0
- package/workflows/dist/sites.js +7 -0
- package/workflows/dist/sites.js.map +1 -1
- package/workflows/dist/source.d.ts +40 -1
- package/workflows/dist/source.js +3 -3
- package/workflows/dist/source.js.map +1 -1
- package/workflows/dist/supervisor.d.ts +21 -18
- package/workflows/dist/supervisor.js +20 -22
- package/workflows/dist/supervisor.js.map +1 -1
- package/workflows/dist/tokens.d.ts +34 -0
- package/workflows/dist/tokens.js +70 -9
- package/workflows/dist/tokens.js.map +1 -1
- package/workflows/dist/vendor-info.d.ts +12 -3
- package/workflows/dist/vendor-info.js +21 -5
- package/workflows/dist/vendor-info.js.map +1 -1
- package/workflows/dist/version.js +1 -1
- package/workflows/dist/version.js.map +1 -1
- package/workflows/dist/wakeup-driver.js +1 -1
- package/workflows/dist/wakeup-driver.js.map +1 -1
- package/workflows/dist/wakeup-fake.d.ts +27 -0
- package/workflows/dist/wakeup-fake.js +125 -0
- package/workflows/dist/wakeup-fake.js.map +1 -0
- package/workflows/dist/wakeup-service.js +8 -24
- package/workflows/dist/wakeup-service.js.map +1 -1
- package/workflows/dist/wakeup-type.js +1 -1
- package/workflows/dist/wakeup-type.js.map +1 -1
- package/workflows/dist/worker.d.ts +19 -1
- package/workflows/dist/worker.js +67 -49
- package/workflows/dist/worker.js.map +1 -1
- package/workflows/drizzle/company/0007_token_handoffs.sql +8 -0
- package/workflows/drizzle/company/meta/0007_snapshot.json +1281 -0
- package/workflows/drizzle/company/meta/_journal.json +7 -0
- package/workflows/src/app-steps.ts +11 -0
- package/workflows/src/app-workflows.ts +100 -10
- package/workflows/src/approvals.ts +4 -2
- package/workflows/src/call.ts +37 -186
- package/workflows/src/change-steps.ts +43 -14
- package/workflows/src/change-workflow.ts +45 -16
- package/workflows/src/change.ts +39 -10
- package/workflows/src/client.ts +137 -62
- package/workflows/src/cloud-identity.ts +7 -4
- package/workflows/src/collection-driver.ts +230 -0
- package/workflows/src/collection.ts +62 -186
- package/workflows/src/company-file.ts +82 -0
- package/workflows/src/config.ts +97 -56
- package/workflows/src/ctx.ts +266 -0
- package/workflows/src/db/company.ts +15 -1
- package/workflows/src/db/dbos.ts +2 -0
- package/workflows/src/db/identity.ts +2 -2
- package/workflows/src/db.ts +10 -6
- package/workflows/src/deadlines.ts +31 -17
- package/workflows/src/define.ts +1 -24
- package/workflows/src/describe.ts +27 -5
- package/workflows/src/description.ts +152 -5
- package/workflows/src/drift.ts +8 -4
- package/workflows/src/errors.ts +19 -45
- package/workflows/src/fake.ts +4 -139
- package/workflows/src/fakes.ts +4 -0
- package/workflows/src/givens.ts +141 -0
- package/workflows/src/host.ts +8 -7
- package/workflows/src/identity-provisioning.ts +19 -30
- package/workflows/src/import.ts +8 -6
- package/workflows/src/index.ts +13 -2
- package/workflows/src/ledger.ts +8 -16
- package/workflows/src/lint.ts +12 -6
- package/workflows/src/load.ts +1 -1
- package/workflows/src/log.ts +0 -11
- package/workflows/src/op.ts +147 -12
- package/workflows/src/page-run.ts +437 -0
- package/workflows/src/paths.ts +2 -46
- package/workflows/src/renewal.ts +1 -1
- package/workflows/src/run.ts +4 -1
- package/workflows/src/runtime-ops.ts +36 -6
- package/workflows/src/sandbox.ts +31 -109
- package/workflows/src/scenario.ts +102 -19
- package/workflows/src/schedules.ts +1 -1
- package/workflows/src/secret.ts +8 -7
- package/workflows/src/shared.ts +304 -10
- package/workflows/src/sites.ts +8 -0
- package/workflows/src/source.ts +31 -5
- package/workflows/src/supervisor.ts +40 -38
- package/workflows/src/tokens.ts +100 -9
- package/workflows/src/vendor-info.ts +21 -6
- package/workflows/src/version.ts +1 -1
- package/workflows/src/wakeup-driver.ts +1 -1
- package/workflows/src/wakeup-fake.ts +138 -0
- package/workflows/src/wakeup-service.ts +8 -24
- package/workflows/src/wakeup-type.ts +1 -1
- package/workflows/src/worker.ts +121 -58
- package/app/dist/client/assets/ArrowUp.es-DOgvoS0P.js +0 -1
- package/app/dist/client/assets/Copy.es-B0D5SwiQ.js +0 -1
- package/app/dist/client/assets/DialogTitle-BgjYK22C.js +0 -1
- package/app/dist/client/assets/FloppyDisk.es-DnuNe_a8.js +0 -1
- package/app/dist/client/assets/Globe.es-B6x2e4-a.js +0 -1
- package/app/dist/client/assets/MagnifyingGlass.es-DoNoHEhT.js +0 -1
- package/app/dist/client/assets/Play.es-BwXalGBh.js +0 -1
- package/app/dist/client/assets/Plug.es-CaZsN5P-.js +0 -1
- package/app/dist/client/assets/Plus.es-w9VPpTJB.js +0 -1
- package/app/dist/client/assets/Separator-BAhKFgSd.js +0 -1
- package/app/dist/client/assets/X.es-DKMYClf-.js +0 -1
- package/app/dist/client/assets/_id-BSRAaWtO.js +0 -1
- package/app/dist/client/assets/_id-BjDP-cPH.js +0 -1
- package/app/dist/client/assets/_id-BudM76zX.js +0 -1
- package/app/dist/client/assets/_id-C37U5bBa.js +0 -1
- package/app/dist/client/assets/_id-lmg24JVh.js +0 -2
- package/app/dist/client/assets/_name-CylqFo_t.js +0 -1
- package/app/dist/client/assets/_name-D8Gl8iwy.js +0 -4
- package/app/dist/client/assets/_name-DdPCU8pt.js +0 -1
- package/app/dist/client/assets/_name-TteWQXe0.js +0 -1
- package/app/dist/client/assets/_vendor-BLxW83yk.js +0 -1
- package/app/dist/client/assets/_vendor-Bq3uZU4-.js +0 -1
- package/app/dist/client/assets/app-chrome-H8uZ4dHI.js +0 -16
- package/app/dist/client/assets/app-scope-BeUW_8Qh.js +0 -1
- package/app/dist/client/assets/approval-DpgmTc63.js +0 -1
- package/app/dist/client/assets/apps-CoWzNm8M.js +0 -1
- package/app/dist/client/assets/change-glance-DbYcBT7H.js +0 -1
- package/app/dist/client/assets/changes-DIJvP7wQ.js +0 -1
- package/app/dist/client/assets/chat-button-BgpOfYh1.js +0 -1
- package/app/dist/client/assets/chat-prompt-hiawXcK0.js +0 -1
- package/app/dist/client/assets/common-Dw2i6XKZ.js +0 -3
- package/app/dist/client/assets/composite-D9GNDzFj.js +0 -1
- package/app/dist/client/assets/connect-CIq2KJTz.js +0 -1
- package/app/dist/client/assets/connections-iqd2XbWQ.js +0 -5
- package/app/dist/client/assets/connectors-rI8_D1n1.js +0 -1
- package/app/dist/client/assets/credentials-26vu6Fv5.js +0 -1
- package/app/dist/client/assets/data-sDMlKaLV.js +0 -1
- package/app/dist/client/assets/decidable-zcYI7bY8.js +0 -1
- package/app/dist/client/assets/declaration-form-BtSVvxhq.js +0 -1
- package/app/dist/client/assets/dialog-DskpUgkl.js +0 -1
- package/app/dist/client/assets/existing-BD3VgJ_8.js +0 -1
- package/app/dist/client/assets/graph-Prxl3c55.js +0 -7
- package/app/dist/client/assets/grid-diff-SMsvea6t.js +0 -1
- package/app/dist/client/assets/hosting-BBHUppH-.js +0 -1
- package/app/dist/client/assets/import-B92fd4Tl.js +0 -1
- package/app/dist/client/assets/inbox-57oGZtxE.js +0 -1
- package/app/dist/client/assets/inbox-B2AMNtk5.js +0 -1
- package/app/dist/client/assets/index-Bn3XeKy8.js +0 -10
- package/app/dist/client/assets/kit-BsK6VZTQ.js +0 -1
- package/app/dist/client/assets/lazyRouteComponent-Uri98HNq.js +0 -1
- package/app/dist/client/assets/motion-C8lNeYvK.js +0 -1
- package/app/dist/client/assets/people-ISOMYCTu.js +0 -1
- package/app/dist/client/assets/permissions-Cenat84K.js +0 -2
- package/app/dist/client/assets/permissions-grid-B2GtGwzv.js +0 -1
- package/app/dist/client/assets/route-BP1XwaTB.js +0 -1
- package/app/dist/client/assets/route-KVU6QgwJ.js +0 -1
- package/app/dist/client/assets/runs-table-35lNzKLn.js +0 -1
- package/app/dist/client/assets/scenario-DSwsavxS.js +0 -1
- package/app/dist/client/assets/scenario-graph-CAzWOtqV.js +0 -1
- package/app/dist/client/assets/separator-BlwkzEY0.js +0 -1
- package/app/dist/client/assets/site-icon-DZvOfBvU.js +0 -1
- package/app/dist/client/assets/sites.index-CcNo6N8u.js +0 -1
- package/app/dist/client/assets/spinner-BGy6LWIW.js +0 -1
- package/app/dist/client/assets/start-form-Bgo9I63s.js +0 -1
- package/app/dist/client/assets/store-BGu0d2Ld.js +0 -57
- package/app/dist/client/assets/style-CCDLLPgG.css +0 -2
- package/app/dist/client/assets/table-DjbI5VTn.js +0 -1
- package/app/dist/client/assets/textarea-DXO0eUdp.js +0 -1
- package/app/dist/client/assets/useLoaderData-BQd5yMlA.js +0 -1
- package/app/dist/client/assets/useOpenInteractionType-Bin8RjM5.js +0 -1
- package/app/dist/client/assets/useRegisterFieldControl-CQPTOU7Z.js +0 -1
- package/app/dist/client/assets/useValueChanged-DMkuvFZG.js +0 -1
- package/app/dist/client/assets/utils-CMsCvwYQ.js +0 -1
- package/app/dist/client/assets/who-are-you-Bt1WI3Cz.js +0 -1
- package/app/dist/client/assets/workflow-BJpO61A-.js +0 -1
- package/app/dist/client/assets/workflow-view-DP-UlRiH.js +0 -1
- package/app/dist/client/assets/workflows-BLCBgxbx.js +0 -1
- package/app/dist/server/assets/app-chrome-BYS81Vnx.js +0 -1410
- package/app/dist/server/assets/sites.index-1l0BtgVf.js +0 -138
- package/app/dist/server/assets/utils-wksS9pYh.js +0 -138
- package/template/scenarios/publish-post/publish.feature +0 -28
- package/template/workflows/publish-post.ts +0 -20
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sanoma",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.23",
|
|
4
4
|
"description": "Sanoma's core in one package: the bin a company repo runs, checks and exports itself with, the durable workflow runtime, the web app and the test helpers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"approvals",
|
|
@@ -59,6 +59,8 @@
|
|
|
59
59
|
"better-auth/drizzle",
|
|
60
60
|
"!better-auth/drizzle/*.config.ts",
|
|
61
61
|
"better-auth/README.md",
|
|
62
|
+
"invoices/dist",
|
|
63
|
+
"invoices/README.md",
|
|
62
64
|
"!**/*.tsbuildinfo",
|
|
63
65
|
"!**/AGENTS.md",
|
|
64
66
|
"template/AGENTS.md"
|
|
@@ -105,6 +107,16 @@
|
|
|
105
107
|
"types": "./workflows/dist/claims.d.ts",
|
|
106
108
|
"default": "./workflows/dist/claims.js"
|
|
107
109
|
},
|
|
110
|
+
"./invoices": {
|
|
111
|
+
"sanoma-source": "./invoices/src/index.ts",
|
|
112
|
+
"types": "./invoices/dist/index.d.ts",
|
|
113
|
+
"default": "./invoices/dist/index.js"
|
|
114
|
+
},
|
|
115
|
+
"./invoices/pdf": {
|
|
116
|
+
"sanoma-source": "./invoices/src/pdf.ts",
|
|
117
|
+
"types": "./invoices/dist/pdf.d.ts",
|
|
118
|
+
"default": "./invoices/dist/pdf.js"
|
|
119
|
+
},
|
|
108
120
|
"./tsconfig.json": "./tsconfig.base.json",
|
|
109
121
|
"./workflows": {
|
|
110
122
|
"sanoma-source": "./workflows/src/index.ts",
|
|
@@ -122,9 +134,14 @@
|
|
|
122
134
|
"default": "./workflows/dist/description.js"
|
|
123
135
|
},
|
|
124
136
|
"./workflows/fake": {
|
|
125
|
-
"sanoma-source": "./workflows/src/
|
|
126
|
-
"types": "./workflows/dist/
|
|
127
|
-
"default": "./workflows/dist/
|
|
137
|
+
"sanoma-source": "./workflows/src/fakes.ts",
|
|
138
|
+
"types": "./workflows/dist/fakes.d.ts",
|
|
139
|
+
"default": "./workflows/dist/fakes.js"
|
|
140
|
+
},
|
|
141
|
+
"./workflows/page": {
|
|
142
|
+
"sanoma-source": "./workflows/src/page-run.ts",
|
|
143
|
+
"types": "./workflows/dist/page-run.d.ts",
|
|
144
|
+
"default": "./workflows/dist/page-run.js"
|
|
128
145
|
},
|
|
129
146
|
"./workflows/plugin": {
|
|
130
147
|
"sanoma-source": "./workflows/src/plugin.ts",
|
|
@@ -181,6 +198,11 @@
|
|
|
181
198
|
"types": "./app/dist/bundle-build.d.ts",
|
|
182
199
|
"default": "./app/dist/bundle-build.js"
|
|
183
200
|
},
|
|
201
|
+
"./app/demo": {
|
|
202
|
+
"sanoma-source": "./app/src/demo-build.ts",
|
|
203
|
+
"types": "./app/dist/demo-build.d.ts",
|
|
204
|
+
"default": "./app/dist/demo-build.js"
|
|
205
|
+
},
|
|
184
206
|
"./app/steps": {
|
|
185
207
|
"sanoma-source": "./app/src/steps/index.ts",
|
|
186
208
|
"types": "./app/dist/steps/index.d.ts",
|
|
@@ -273,8 +295,6 @@
|
|
|
273
295
|
"dependencies": {
|
|
274
296
|
"@agentclientprotocol/sdk": "2.0.2",
|
|
275
297
|
"@ai-sdk/harness": "1.0.158",
|
|
276
|
-
"@ai-sdk/harness-claude-code": "1.0.162",
|
|
277
|
-
"@ai-sdk/harness-pi": "1.0.160",
|
|
278
298
|
"@ai-sdk/provider": "4.0.34",
|
|
279
299
|
"@ai-sdk/provider-utils": "5.0.68",
|
|
280
300
|
"@ai-sdk/react": "4.0.157",
|
|
@@ -301,6 +321,7 @@
|
|
|
301
321
|
"@google-cloud/kms": "^6.3.0",
|
|
302
322
|
"@lezer/highlight": "^1.2.5",
|
|
303
323
|
"@phosphor-icons/react": "^2.1.10",
|
|
324
|
+
"@shadcn/react": "^0.3.1",
|
|
304
325
|
"@tailwindcss/vite": "^4.3.3",
|
|
305
326
|
"@tanstack/query-db-collection": "1.5.1",
|
|
306
327
|
"@tanstack/react-db": "1.0.0-rc.1.3",
|
|
@@ -323,7 +344,10 @@
|
|
|
323
344
|
"cn": "^0.4.0",
|
|
324
345
|
"cookie-es": "^3.1.1",
|
|
325
346
|
"crc-32": "^1.2.2",
|
|
347
|
+
"dequal": "^2.0.3",
|
|
326
348
|
"drizzle-orm": "0.45.4",
|
|
349
|
+
"fast-png": "^8.0.0",
|
|
350
|
+
"fflate": "^0.8.3",
|
|
327
351
|
"google-auth-library": "^11.3.2",
|
|
328
352
|
"lucide-react": "1.55.0",
|
|
329
353
|
"magic-string": "^0.30.21",
|
|
@@ -338,8 +362,10 @@
|
|
|
338
362
|
"react": "^19.3.0",
|
|
339
363
|
"react-dom": "^19.3.0",
|
|
340
364
|
"shadcn": "^4.21.3",
|
|
365
|
+
"shiki": "^4.6.0",
|
|
341
366
|
"sonner": "^2.0.8",
|
|
342
367
|
"srvx": "^0.11.22",
|
|
368
|
+
"streamdown": "^2.7.1",
|
|
343
369
|
"tailwindcss": "^4.3.3",
|
|
344
370
|
"tw-animate-css": "^1.4.0",
|
|
345
371
|
"typescript": "^7.0.2",
|
|
@@ -350,18 +376,27 @@
|
|
|
350
376
|
"zod-schema-faker": "^2.1.2"
|
|
351
377
|
},
|
|
352
378
|
"devDependencies": {
|
|
379
|
+
"@react-pdf/renderer": "^4.9.0",
|
|
380
|
+
"@shadcn/helpers": "^0.3.0",
|
|
381
|
+
"@testing-library/react": "^16.3.3",
|
|
353
382
|
"@types/pg": "^8.23.1",
|
|
354
383
|
"@types/ws": "8.18.2",
|
|
355
384
|
"drizzle-kit": "0.31.11",
|
|
356
385
|
"esbuild": "0.28.2",
|
|
386
|
+
"jsdom": "^30.1.3",
|
|
357
387
|
"msw": "^3.0.3",
|
|
388
|
+
"pdfjs-dist": "^6.4.299",
|
|
358
389
|
"ws": "8.22.0"
|
|
359
390
|
},
|
|
360
391
|
"peerDependencies": {
|
|
392
|
+
"@react-pdf/renderer": "^4",
|
|
361
393
|
"msw": "^3",
|
|
362
394
|
"vitest": "^5"
|
|
363
395
|
},
|
|
364
396
|
"peerDependenciesMeta": {
|
|
397
|
+
"@react-pdf/renderer": {
|
|
398
|
+
"optional": true
|
|
399
|
+
},
|
|
365
400
|
"msw": {
|
|
366
401
|
"optional": true
|
|
367
402
|
},
|
|
@@ -386,7 +421,7 @@
|
|
|
386
421
|
"//": "randexp is a dependency only because zod-schema-faker, which makes up scenario inputs, needs it as a peer.",
|
|
387
422
|
"scripts": {
|
|
388
423
|
"build": "tsc -b workflows/tsconfig.build.json better-auth/tsconfig.build.json && cd app && vite build && tsc -p tsconfig.build.json && cd .. && tsc -b tsconfig.build.json testing/tsconfig.build.json && esbuild workflows/src/sandbox-runner.ts --bundle --platform=node --target=node22 --format=cjs --minify --external:bufferutil --external:utf-8-validate --outfile=workflows/dist/sandbox-runner.cjs --log-level=warning && node scripts/oxlint.ts",
|
|
389
|
-
"clean": "rm -rf dist workflows/dist better-auth/dist bridge/dist testing/dist app/dist dev/dist",
|
|
424
|
+
"clean": "rm -rf dist workflows/dist better-auth/dist invoices/dist bridge/dist testing/dist app/dist dev/dist",
|
|
390
425
|
"watch": "tsc -b -w --preserveWatchOutput tsconfig.build.json & cd app && (tsc -w --preserveWatchOutput -p tsconfig.build.json & vite build --watch)",
|
|
391
426
|
"typecheck:ui": "tsc -p app/tsconfig.json",
|
|
392
427
|
"generate": "cd workflows && drizzle-kit generate --config drizzle/company.config.ts && drizzle-kit generate --config drizzle/wakeup.config.ts && cd ../better-auth && drizzle-kit generate --config drizzle/visitors.config.ts && drizzle-kit generate --config drizzle/staff.config.ts",
|
package/template/.env.example
CHANGED
|
@@ -24,7 +24,18 @@
|
|
|
24
24
|
# anthropic: an API key, from the API Keys page of the Claude Console
|
|
25
25
|
ANTHROPIC_API_KEY=
|
|
26
26
|
|
|
27
|
-
#
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
# resend: an API key: a full-access one to manage domains, else sending access will do
|
|
28
|
+
RESEND_API_KEY=
|
|
29
|
+
|
|
30
|
+
# Optional. github: a fine-grained token with read-only repository permissions, limited to the repositories the data files declare; the resource operations need it
|
|
31
|
+
# GITHUB_TOKEN=
|
|
32
|
+
|
|
33
|
+
# Optional. cloud: Where Sanoma Cloud's api answers, https://www.sanoma.work unless set
|
|
34
|
+
# SANOMA_CLOUD_URL=
|
|
35
|
+
|
|
36
|
+
# Optional. sanoma: the wakeup service's URL: Sanoma's, or your own `sanoma wakeup`
|
|
37
|
+
# SANOMA_WAKEUP_URL=
|
|
38
|
+
# Optional. sanoma: an account's token at the wakeup service (swa_…), which creates and deletes the instances
|
|
39
|
+
# SANOMA_WAKEUP_ACCOUNT_TOKEN=
|
|
40
|
+
# Optional. sanoma: this instance's token at the wakeup service (swi_…), which /setup mints and the wakeup's create registers
|
|
41
|
+
# SANOMA_WAKEUP_TOKEN=
|
package/template/AGENTS.md
CHANGED
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
# A company on Sanoma
|
|
2
2
|
|
|
3
|
-
This repository is a company's operations as code, run by [Sanoma](https://github.com/Sanoma-AI/sanoma): workflows that call vendors through connectors, the people who use it, Cedar policies that decide which calls and runs wait for someone's approval or are refused, and the vendor objects the company owns, declared as data. `npx sanoma` in an empty directory
|
|
3
|
+
This repository is a company's operations as code, run by [Sanoma](https://github.com/Sanoma-AI/sanoma): workflows that call vendors through connectors, the people who use it, Cedar policies that decide which calls and runs wait for someone's approval or are refused, and the vendor objects the company owns, declared as data. It started from Sanoma's template: `npx sanoma init` in an empty directory or the Sanoma app for Mac on a laptop, or Sanoma Cloud's sign-up from the [company-template](https://github.com/Sanoma-AI/company-template) repository, which carries the same files, in the company's own GitHub account; `sanoma` from npm runs it. The `sanoma` package's README (`node_modules/sanoma/README.md`) is the manual.
|
|
4
4
|
|
|
5
5
|
## Layout
|
|
6
6
|
|
|
7
7
|
```
|
|
8
|
-
sanoma.config.ts the connectors (every workflow under workflows/ and apps/*/workflows/ is found)
|
|
8
|
+
sanoma.config.ts the company's name, the connectors and the sign-in code's sender (every workflow under workflows/ and apps/*/workflows/ is found)
|
|
9
|
+
secrets.ts the deployment's selected credential store and explicit bootstrap bindings; no secret values
|
|
9
10
|
workflows/ one workflow per file, its default export (defineWorkflow)
|
|
10
11
|
policies/*.cedar who may do what: Cedar forbids, each a hold for an approver (@hold) or a deny (@reason)
|
|
11
12
|
resources/ data files: the vendor objects this company declares, by area
|
|
12
13
|
resources/data.ts collections: the company's own records (collection, from sanoma/data)
|
|
13
14
|
resources/people.ts who may use the app, the agents, and the groups (sanoma.person, .agent and .group, from sanoma/resources)
|
|
15
|
+
resources/sanoma/ infra.ts: the database and host on Sanoma Cloud the company goes live on
|
|
14
16
|
scenarios/ Gherkin: how each workflow should go against the connectors' fakes
|
|
15
17
|
sites/ pages the app serves under /sites/<name>: sites/<name>/routes/ holds TanStack Router file routes (none yet)
|
|
16
18
|
apps/<app>/ an app: app.ts (defineApp, its source repository) and its own workflows/, resources/, policies/, scenarios/ and sites/ (none yet)
|
|
17
19
|
.env this machine's settings and secrets, never committed (SANOMA_SIGNING_KEY signs app state; SANOMA_SECRETS_KEY encrypts stored credentials)
|
|
18
20
|
```
|
|
19
21
|
|
|
20
|
-
The
|
|
22
|
+
The company's name, as the app shows it, is `name` in `sanoma.config.ts`, else `package.json`'s `name` made readable (`maple-street` is "Maple Street"). `.env.example` (written by `sanoma env`) and `.oxlintrc.json` (written by `sanoma check` when missing) are generated, and so are `sites/__virtual.ts` and `sites/tsconfig.json` once there is a site: commit them, never edit them. `.sanoma/` holds what `sanoma` builds (ignored), `.sanoma/api.ts` among it: the typed `api` for sites, and `.sanoma/schema.cedarschema`, the schema the policies are checked against, both generated from the config by `sanoma check` and at start, never edited.
|
|
21
23
|
|
|
22
24
|
## Run
|
|
23
25
|
|
|
@@ -29,7 +31,9 @@ npm run check # tsc, the lint, the policies, what the worker would refuse,
|
|
|
29
31
|
npm run env # rewrites .env.example from the connectors' variables
|
|
30
32
|
```
|
|
31
33
|
|
|
32
|
-
The app's chat answers on the company's Anthropic key (`@sanoma-ai/connector-anthropic`, the chat's model). Paste it on the Anthropic connector page (Connectors, then Anthropic) once the app is up; until it is there, the chat says to connect a model and links to that page.
|
|
34
|
+
The app's chat answers on the company's Anthropic key (`@sanoma-ai/connector-anthropic`, the chat's model). Paste it on the Anthropic connector page (Connectors, then Anthropic) once the app is up; until it is there, the chat says to connect a model and links to that page. A person can instead run the chat on their own coding agent's plan: each agent comes from its vendor's connector (Claude Code from Anthropic's, Copilot from GitHub's, Codex from OpenAI's, OpenCode and Pi from their own), and the chat offers the ones installed here.
|
|
35
|
+
|
|
36
|
+
Until it goes live the company runs on this computer alone. `resources/sanoma/infra.ts` declares where it goes live: a database and a host on Sanoma Cloud, at `<name>.sanoma.work`; nothing is made until then. Live, the host runs `main`, and a change merged there deploys it. Sign-in codes go out through Resend: `login.sender` names the operation and `login.from` the sender address in `sanoma.config.ts`. The Cloud host supplies Sanoma's Resend key for codes; elsewhere, supply your own `RESEND_API_KEY` and change `login.from` to an address on your verified domain, or sign in on this computer by `id`, which needs no sender.
|
|
33
37
|
|
|
34
38
|
## Rules
|
|
35
39
|
|
|
@@ -38,8 +42,8 @@ The app's chat answers on the company's Anthropic key (`@sanoma-ai/connector-ant
|
|
|
38
42
|
- Every operation a workflow calls is listed in its `uses`; add the connector to `sanoma.config.ts` and to `package.json`.
|
|
39
43
|
- Declare the company's own records as collections in `resources/data.ts`, which imports `collection` from `sanoma/data` and holds collections only: the runtime imports it, and so does a workflow that names a collection's operations (`import { outbound } from "../resources/data.ts"`, the one file outside `workflows/` a workflow may import). Every other data file declares resources: `export const <name> = <vendor>.<type>({ … })`, one export per resource; Sanoma loads the files, so a value may be computed, and the `check` script reports a file that does not load, at its line.
|
|
40
44
|
- Only a person declared with `sanoma.person` (in `resources/people.ts` by convention, a data file like any other) signs in to the app (by `id` on this machine; on a host by an email code to their `email`, an invite link, or GitHub by email, then `github` login), starts a run, calls an operation or decides an approval, in the groups that list them (`sanoma.group({ name, members: [ada, refundBot] })`, the one place a membership is written). An agent (`sanoma.agent({ id, onBehalfOf: bo })`) is in the group `agents` besides; it never signs in. A new colleague is an edit to that file before their first sign-in. Nobody decides an approval on a run they started while someone else in the group could; alone in it, they decide, and the ledger says so.
|
|
41
|
-
- The policies are `policies/*.cedar`, written in [Cedar](https://docs.cedarpolicy.com) against `.sanoma/schema.cedarschema`. Everything is allowed unless a `forbid` refuses it; the runtime writes the `permit` for people and agents, so a `permit` here is a problem unless it is for a public site's visitors (its principal `in Sanoma::Group::"visitors"` or `== Sanoma::Principal::"anonymous"`), who may do nothing else. A `forbid` with `@hold("<group>")` (or a person's id, or `"on-behalf-of"` for whom an agent acts) waits for that approver, with `@title` as its title in the Inbox, and the run goes on once they approve; one without `@hold` is denied, with `@reason` as the message. Actions are each operation's id (`Sanoma::Action::"
|
|
42
|
-
- Describe each workflow's expected runs in `scenarios/<workflow>/<name>.feature`, and run the `check` script after every change. A scenario runs as the runtime's own agent `scenarios` unless it says who is acting (`Given
|
|
45
|
+
- The policies are `policies/*.cedar`, written in [Cedar](https://docs.cedarpolicy.com) against `.sanoma/schema.cedarschema`. Everything is allowed unless a `forbid` refuses it; the runtime writes the `permit` for people and agents, so a `permit` here is a problem unless it is for a public site's visitors (its principal `in Sanoma::Group::"visitors"` or `== Sanoma::Principal::"anonymous"`), who may do nothing else. A `forbid` with `@hold("<group>")` (or a person's id, or `"on-behalf-of"` for whom an agent acts) waits for that approver, with `@title` as its title in the Inbox, and the run goes on once they approve; one without `@hold` is denied, with `@reason` as the message. Actions are each operation's id (`Sanoma::Action::"resend.emails.send"`), in its effect's group (`Sanoma::Action::"effect:publish"`), and `Sanoma::Action::"workflow:<name>"` for starting a run; `principal in Sanoma::Group::"admin"` is membership; `context.input` is the call's input. A change to this repository is decided on its merge, `Sanoma::Action::"sanoma.change.merge"`, on a `Sanoma::Change` whose attributes are its facts (`resource.touches.contains("resources/finance/")`: every path it edits and each parent directory); `policies/changes.cedar` holds every change for `admin`, and a change to `policies/` or the people waits for `admin` whatever the policies say. The app's Permissions page shows what they answer for each group. The `check` script reports a policy problem (a field, action or group the schema lacks, a `@hold` naming no one declared) at its `file:line:col`, and runs no scenario until there are none; `npm run dev` refuses to start on them.
|
|
46
|
+
- Describe each workflow's expected runs in `scenarios/<workflow>/<name>.feature`, and run the `check` script after every change. A scenario runs as the runtime's own agent `scenarios` unless it says who is acting (`Given ada is acting`), and checks the policy with `Then <op> was held for group "<group>"` and `Then <op> was denied with "<reason>"`; a scenario's approver (`is approved by ada`) must be declared. The founder is the one person in `admin` until a colleague is declared in `resources/people.ts`.
|
|
43
47
|
- A site, `sites/<name>/routes/` (pages the app serves under `/sites/<name>/`, with an optional `sites/<name>/site.ts` naming it with `defineSite`, its `icon` in the app's bar a Lucide icon's name such as `"calendar-days"`), is browser code: no server code, credential or `process.env` under `sites/`, which the `check` script holds it to, and the folder's name is its URL segment (lowercase letters, digits and dashes). Its route files import `createFileRoute` from `@tanstack/react-router`; what talks to the app from `sanoma/site`: routing (`Link`, `Outlet`, `useNavigate`, `defineSite`, …), `api`, `<RunForm workflow="<name>" />` (the app's start form for a workflow) and `useActor()` (who is signed in); and how a page looks from `sanoma/ui`, the app's own components, presentational only (`Button`, `Card`, `Table`, `PageHeader`, `Region`, `Facts`, `FloatingCard`, …): `import { RunForm } from "sanoma/site";` beside `import { Region } from "sanoma/ui";`. Colour a page with the theme's utilities (`bg-card`, `text-muted-foreground`, `border-border`, `bg-primary/10` for a tint), never raw colours: the app's theme has no `bg-white` or `text-red-500` (a public site with a look of its own brings its own stylesheet, as the app package's README shows). A page reaches data and workflows only through `api` from `sanoma/site`, as the person on the page: `api.data.<collection>.list()`, a vendor's read such as `api.<vendor>.<resource>.get(…)`, `await api.<workflow>(input)` or `api.<workflow>.start(input)` (the workflow's name in camelCase); see the app package's README (Sites). Name what a page calls with literals (`workflow="announce"`, `api.announce.start(…)`, not a variable): the app reads a site's calls from its code to list them under each workflow's Used by, and the `check` script fails on a call to a workflow, collection or operation that does not exist. While the `dev` script runs, an edit to a site shows in the open page as it is saved, and a new site folder is live without a restart.
|
|
44
48
|
- An app is a folder of `apps/` (its name a lowercase letter, then lowercase letters and digits), merged from the repository its `app.ts` names (`export default defineApp({ source: "https://github.com/acme/crm" })`, from `sanoma`) or made here (`defineApp({})`). What it declares is named with the folder, never by hand: its collection `customers` is `crm.customers` (`ctx.data.crm.customers.get(…)`, `api.data.crm.customers.list()`, `Sanoma::Action::"data.crm.customers.save"`), its workflow `follow-up` is `crm.follow-up` (`api.crmFollowUp`, `workflow:crm.follow-up`, `When crm.follow-up runs`), and its site `pipeline` is at `/sites/crm/pipeline`. An app's files never import another app's (the `check` script warns): the company's own workflows at the root join apps, importing any app's `resources/data.ts`. Taking an app is a git merge of its source with its history (`git fetch <url>`, then `git merge --allow-unrelated-histories FETCH_HEAD`), taking only `apps/<app>/` and both sides of `package.json`, every other file staying the company's; updating one is the same merge of what `git fetch` of its `app.ts` source brings, a conflict resolved keeping the company's changes and the source's. A branch that takes or updates an app is merged into `main` as a merge, never squashed, or the next update has no history in common with the source.
|
|
45
49
|
- Never put credentials in a file here. They live in `.env` or on the app's connector pages, which store them encrypted in the database.
|
package/template/package.json
CHANGED
|
@@ -9,7 +9,12 @@
|
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@sanoma-ai/connector-anthropic": "latest",
|
|
12
|
-
"@sanoma-ai/connector-
|
|
12
|
+
"@sanoma-ai/connector-github": "latest",
|
|
13
|
+
"@sanoma-ai/connector-openai": "latest",
|
|
14
|
+
"@sanoma-ai/connector-opencode": "latest",
|
|
15
|
+
"@sanoma-ai/connector-pi": "latest",
|
|
16
|
+
"@sanoma-ai/connector-resend": "latest",
|
|
17
|
+
"@sanoma-ai/connector-sanoma-cloud": "latest",
|
|
13
18
|
"sanoma": "latest"
|
|
14
19
|
},
|
|
15
20
|
"engines": {
|
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
// resources/people.ts declares, and each operation's input as `context.input`.
|
|
7
7
|
// A `permit` is only for a public site's visitors: its principal `in Sanoma::Group::"visitors"` or `== Sanoma::Principal::"anonymous"`.
|
|
8
8
|
|
|
9
|
-
//
|
|
10
|
-
//
|
|
11
|
-
@id("
|
|
12
|
-
@hold("
|
|
9
|
+
// Sending or publishing waits for someone in admin, unless someone in admin asked for it, or it
|
|
10
|
+
// is a sign-in code the runtime's agent `login` sends (the built-in `login-code` workflow).
|
|
11
|
+
@id("admin-reviews")
|
|
12
|
+
@hold("admin")
|
|
13
13
|
@title("Review before it goes out")
|
|
14
14
|
forbid (
|
|
15
15
|
principal,
|
|
16
16
|
action in [Sanoma::Action::"effect:publish", Sanoma::Action::"effect:send"],
|
|
17
17
|
resource
|
|
18
18
|
)
|
|
19
|
-
unless { principal in Sanoma::Group::"
|
|
19
|
+
unless { principal in Sanoma::Group::"admin" || principal == Sanoma::Principal::"login" };
|
|
@@ -1,20 +1,12 @@
|
|
|
1
1
|
// Who may use this company's app, the agents that act in it, and the groups: resources like any
|
|
2
|
-
// other, loaded as any data file is. Only a declared person signs in (
|
|
3
|
-
//
|
|
4
|
-
// the group `agents` besides. Policies (policies/*.cedar) and approvals name
|
|
5
|
-
// groups by name.
|
|
2
|
+
// other, loaded as any data file is. Only a declared person signs in (on this machine by `id`; on
|
|
3
|
+
// a host by an email code to their `email` or an invite link), and acts in the groups that list
|
|
4
|
+
// them; an agent is in the group `agents` besides. Policies (policies/*.cedar) and approvals name
|
|
5
|
+
// people by id and groups by name. Add colleagues here.
|
|
6
6
|
import { sanoma } from "sanoma/resources";
|
|
7
7
|
|
|
8
8
|
/** Who started the company: `sanoma init` wrote them here. */
|
|
9
9
|
export const founder = sanoma.person({ id: "founder" });
|
|
10
10
|
|
|
11
|
-
/**
|
|
12
|
-
* Who reviews a post the scenarios publish: a stand-in, who can sign in and approve like anyone
|
|
13
|
-
* declared. Replace them with a real colleague, here and in the scenarios.
|
|
14
|
-
*/
|
|
15
|
-
export const reviewer = sanoma.person({ id: "reviewer", name: "Reviewer" });
|
|
16
|
-
|
|
11
|
+
/** Whoever sends or publishes without a review, and reviews everyone else's (policies/policy.cedar). */
|
|
17
12
|
export const admin = sanoma.group({ name: "admin", members: [founder] });
|
|
18
|
-
|
|
19
|
-
/** Whoever publishes or sends without a review, and reviews everyone else's (policies/policy.cedar). */
|
|
20
|
-
export const editor = sanoma.group({ name: "editor", members: [founder, reviewer] });
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Where this company runs once it goes live: its database and its host on Sanoma Cloud, at its
|
|
2
|
+
// own address. Nothing is made until it goes live; until then it runs on this computer.
|
|
3
|
+
import { cloud } from "@sanoma-ai/connector-sanoma-cloud/resources";
|
|
4
|
+
|
|
5
|
+
export const store = cloud.database({ name: "company" });
|
|
6
|
+
export const host = cloud.host({ name: "company", database: store, hostname: "company.sanoma.work" });
|
|
7
|
+
|
|
8
|
+
export default [store, host];
|
|
@@ -1,18 +1,25 @@
|
|
|
1
1
|
// Never put credentials in this file or anywhere in this repo. The drivers read theirs from the
|
|
2
2
|
// environment or from the app's connector pages (see .env.example). The workflows are found:
|
|
3
|
-
// every file of workflows/ and of each app's apps/<app>/workflows/.
|
|
4
|
-
// chat its model: its key goes on its connector page.
|
|
3
|
+
// every file of workflows/ and of each app's apps/<app>/workflows/.
|
|
5
4
|
import { anthropic } from "@sanoma-ai/connector-anthropic";
|
|
6
|
-
import {
|
|
5
|
+
import { github } from "@sanoma-ai/connector-github";
|
|
6
|
+
import { openai } from "@sanoma-ai/connector-openai";
|
|
7
|
+
import { opencode } from "@sanoma-ai/connector-opencode";
|
|
8
|
+
import { pi } from "@sanoma-ai/connector-pi";
|
|
9
|
+
import { resend } from "@sanoma-ai/connector-resend";
|
|
10
|
+
import { cloud } from "@sanoma-ai/connector-sanoma-cloud";
|
|
7
11
|
import { defineConfig } from "sanoma";
|
|
12
|
+
import { secrets } from "./secrets.ts";
|
|
8
13
|
|
|
9
14
|
export default defineConfig({
|
|
10
|
-
|
|
11
|
-
//
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
// Anthropic gives the app's chat its model (its key goes on its connector page); Resend sends
|
|
16
|
+
// email; GitHub holds this repository once it goes live, and Sanoma Cloud the database and the
|
|
17
|
+
// host it goes live on (resources/sanoma/infra.ts). Each coding agent comes from its vendor's
|
|
18
|
+
// connector: Claude Code from Anthropic's, Copilot from GitHub's, Codex from OpenAI's, and
|
|
19
|
+
// OpenCode and Pi from their own.
|
|
20
|
+
connectors: [anthropic, resend, github, openai, opencode, pi, cloud],
|
|
21
|
+
secrets,
|
|
22
|
+
// Sign-in codes go out through Resend (the built-in `login-code` workflow, as the runtime's agent
|
|
23
|
+
// `login`): Sanoma's sender on a Sanoma Cloud host; on a laptop, a Resend key of your own, or none.
|
|
24
|
+
login: { sender: resend.emails.send, from: "Sanoma <login@sanoma.work>" },
|
|
18
25
|
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
Feature: Record a lead
|
|
2
|
+
A new lead goes on the Outbound board at its first stage. A scenario runs as the agent
|
|
3
|
+
`scenarios` unless it says who is acting.
|
|
4
|
+
|
|
5
|
+
Scenario: A lead is recorded
|
|
6
|
+
When record-lead runs with
|
|
7
|
+
| company | Acme |
|
|
8
|
+
| contact | Sam Jones |
|
|
9
|
+
Then data.outbound.save was called with
|
|
10
|
+
"""
|
|
11
|
+
{ "record": { "company": "Acme", "contact": "Sam Jones", "stage": "researched" } }
|
|
12
|
+
"""
|
|
13
|
+
And step "Record the lead" ran 1 time
|
|
14
|
+
And the run succeeds
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// The deployment's credential store and explicit bootstrap bindings; no secret values. A hosted
|
|
2
|
+
// company's sign-up may replace this file with its own store; a deployment of your own selects
|
|
3
|
+
// its store here without changing connector references.
|
|
4
|
+
export const secrets = {
|
|
5
|
+
bindings: {
|
|
6
|
+
// Host deployment may deliver these bootstrap keys; they are never stored in the database.
|
|
7
|
+
SANOMA_SIGNING_KEY: { bootstrap: "SANOMA_SIGNING_KEY" },
|
|
8
|
+
SANOMA_SECRETS_KEY: { bootstrap: "SANOMA_SECRETS_KEY" },
|
|
9
|
+
// A host gives its Cloud token as a variable; on a laptop it is stored from the Hosting page,
|
|
10
|
+
// so it is read from the environment only where the variable is set.
|
|
11
|
+
...(process.env.SANOMA_CLOUD_TOKEN ? { SANOMA_CLOUD_TOKEN: { env: "SANOMA_CLOUD_TOKEN" } } : {}),
|
|
12
|
+
},
|
|
13
|
+
} as const;
|
package/template/tsconfig.json
CHANGED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { defineWorkflow, z } from "sanoma";
|
|
2
|
+
import { outbound } from "../resources/data.ts";
|
|
3
|
+
|
|
4
|
+
/** Put a new lead on the Outbound board (resources/data.ts), at its first stage, owned by whoever recorded it. */
|
|
5
|
+
export default defineWorkflow({
|
|
6
|
+
name: "record-lead",
|
|
7
|
+
title: "Record a lead",
|
|
8
|
+
trigger: "manual",
|
|
9
|
+
input: z.object({
|
|
10
|
+
/** The lead's company: its key on the board. */
|
|
11
|
+
company: z.string().min(1),
|
|
12
|
+
contact: z.string().min(1),
|
|
13
|
+
}),
|
|
14
|
+
uses: [outbound.save],
|
|
15
|
+
run: async (ctx, { company, contact }) => {
|
|
16
|
+
const saved = await ctx.data.outbound.save(
|
|
17
|
+
{
|
|
18
|
+
record: {
|
|
19
|
+
company,
|
|
20
|
+
contact,
|
|
21
|
+
stage: "researched",
|
|
22
|
+
owner: ctx.startedBy.id,
|
|
23
|
+
lastTouched: new Date(await ctx.now()).toISOString(),
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
{ name: "Record the lead" },
|
|
27
|
+
);
|
|
28
|
+
return { company: saved.record.company, stage: saved.record.stage };
|
|
29
|
+
},
|
|
30
|
+
});
|
package/testing/README.md
CHANGED
|
@@ -145,7 +145,7 @@ Two variables change what the same tests do:
|
|
|
145
145
|
|
|
146
146
|
`sanoma/testing/scenarios` runs a config's [scenarios](https://github.com/Sanoma-AI/sanoma/blob/main/packages/sanoma/workflows/README.md#scenarios-and-sandbox-runs) as vitest tests (install `vitest` and `@dbos-inc/dbos-sdk` beside it). Each scenario is a sandbox run: the worker calls fakes of its own, made by the makers the connectors carry, never a driver.
|
|
147
147
|
|
|
148
|
-
`describeScenarios(config, options)` compiles the `.feature` files in `scenarios/` in the config's root and in each app's `apps/<app>/scenarios/` with Cucumber, each named by its path from the root (`scenarios/x.feature`), so a test file awaits it at its top level, and registers a test for each scenario, in a `describe` per file, each over `runScenario` from `sanoma/workflows/scenarios` (the one implementation; `runScenarios` there, which `sanoma check` runs, needs no vitest); it throws, naming the root or the directory, when neither the root nor an app has a `scenarios/` or they hold no scenarios. A test starts the scenario's sandbox run, decides its approvals as the scenario says, and fails listing each `Then` step that did not hold, with why (each judged on its own). A file that does not load (a step no rule matches, bad JSON, a name used twice) is a failing test named after the file, whose message names the file (and the line, for a step or JSON error). It starts one [test app](#a-test-app) for all its scenarios, before them, with `useTestApp(config, options)`, and stops it after, on `options.databaseUrl`, as for `startTestWorker`. `options.startedBy`, an id (`"ada"`) or a principal, starts the runs whose scenario does not say who `is acting` (default `scenarios`), and `options.timeoutMs` is how long each may take (`drive`'s, 15 seconds by default); the tests it registers get twice that, so `drive`'s error is the one you see.
|
|
148
|
+
`describeScenarios(config, options)` compiles the `.feature` files in `scenarios/` in the config's root and in each app's `apps/<app>/scenarios/` with Cucumber, each named by its path from the root (`scenarios/x.feature`), so a test file awaits it at its top level, and registers a test for each scenario, in a `describe` per file, each over `runScenario` from `sanoma/workflows/scenarios` (the one implementation; `runScenarios` there, which `sanoma check` runs, needs no vitest); it throws, naming the root or the directory, when neither the root nor an app has a `scenarios/` or they hold no scenarios and no world. The world (`scenarios/world.feature`, which seeds a [demo](../README.md#demos)) is a test of its own, named after its file: its Givens seeded on the connectors' fakes, as a demo's page seeds them. A test starts the scenario's sandbox run, decides its approvals as the scenario says, and fails listing each `Then` step that did not hold, with why (each judged on its own). A file that does not load (a step no rule matches, bad JSON, a name used twice) is a failing test named after the file, whose message names the file (and the line, for a step or JSON error). It starts one [test app](#a-test-app) for all its scenarios, before them, with `useTestApp(config, options)`, and stops it after, on `options.databaseUrl`, as for `startTestWorker`. `options.startedBy`, an id (`"ada"`) or a principal, starts the runs whose scenario does not say who `is acting` (default `scenarios`), and `options.timeoutMs` is how long each may take (`drive`'s, 15 seconds by default); the tests it registers get twice that, so `drive`'s error is the one you see.
|
|
149
149
|
|
|
150
150
|
```ts
|
|
151
151
|
// test/scenarios.test.ts
|
|
@@ -217,14 +217,14 @@ Status: early (0.x). License: FSL-1.1-ALv2.
|
|
|
217
217
|
|
|
218
218
|
## A host's conformance
|
|
219
219
|
|
|
220
|
-
`sanoma/testing/host` decides whether a host (a resource type with a `host`, see [Hosts](../workflows/README.md#hosts)) runs the company as the runtime needs. `checkHost(host)` drives one declared host through callbacks and a `SanomaClient` on its database, and returns each check as `{ name, ok, error? }`: the app answers `/healthz` at its `wakeUrl` (else its `url`), a queued run drains, the next trusted store read sees a credential change, a sleep survives a restart (`stop`, then `apply`, through the type's own operations), a new commit on the source shows as drift at the host's `revision` that `apply` clears, and none of the host's `secrets` is in any ledger record. A host whose `capabilities.lifetime` is
|
|
220
|
+
`sanoma/testing/host` decides whether a host (a resource type with a `host`, see [Hosts](../workflows/README.md#hosts)) runs the company as the runtime needs. `checkHost(host)` drives one declared host through callbacks and a `SanomaClient` on its database, and returns each check as `{ name, ok, error? }`: the app answers `/healthz` at its `wakeUrl` (else its `url`), a queued run drains, the next trusted store read sees a credential change, a sleep survives a restart (`stop`, then `apply`, through the type's own operations), two deploys of a new commit at once leave the host on one revision (at least one finishes, and the other finishes too or fails at once as `superseded`, never by waiting out its time; it reaches the driver only when `apply` calls the type's operations itself, as the Cloudflare kit test does over its fake API; an apply through workflows (`throughWorkflows`) waits on the apply queue, and `fakeHost` and the Sanoma Cloud fake take one deploy at a time, so on those it says nothing of a real platform), a new commit on the source shows as drift at the host's `revision` that `apply` clears, and none of the host's `secrets` is in any ledger record. A host whose `capabilities.lifetime` is `stops-on-exit` also gives `suspend` (its runtime stopped as its platform may, its URL kept) and `running()` (whether its runtime runs now), has each start followed by a request to its `wakeUrl` (else its `url`, `/wake`), as the app's own writes are, and is checked for what one wake starts again: a run queued while it was stopped drains, and a sleep that ended while it was stopped continues; and for its end: it stops once its worker is idle, and a run queued while its worker stops (right after the worker records `sanoma_wakeup.stopped_at`) still runs. The host's config registers `hostCheck` (a connector whose driver reads `HOST_CHECK_TOKEN`) and `hostCheckWorkflows`, which the checks start runs of.
|
|
221
221
|
|
|
222
222
|
```ts
|
|
223
223
|
const results = await checkHost({ type, apply, stop, client, secrets, commit, drift });
|
|
224
224
|
expect(results.every((r) => r.ok)).toBe(true);
|
|
225
225
|
```
|
|
226
226
|
|
|
227
|
-
`fakeHost(start)` is a host in this process (`testhost.app`, every change a replace, no secret in its state; a declared `hostname` is reported as its `url`, `https://<hostname>`, and not served: its `wakeUrl` is where it answers) and `inProcessHost(config, databaseUrl, options?)` a `start` for it, as `sanoma
|
|
227
|
+
`fakeHost(start)` is a host in this process (`testhost.app`, every change a replace, no secret in its state; a declared `hostname` is reported as its `url`, `https://<hostname>`, and not served: its `wakeUrl` is where it answers) and `inProcessHost(config, databaseUrl, options?)` a `start` for it, as `sanoma worker` runs the company: a worker under `superviseWorker` (given `options`, such as `idleHorizonMs` and `stopCheckMs`), which stops itself when idle with a wakeup, and a server that answers `/healthz`, and `GET /wake` with 204, recording each as the running host's `wakes` and handing it to the supervisor, which starts a fresh worker when its last one stopped. When this process's environment names a host's wake route (`envWakeup`), the runtime ends once its worker stopped itself (`Running.exited`), its server closed first. `fakeHost(start, { lifetime: "stops-on-exit" })` is one that stops: its URL is a proxy on the declared port in front of the runtime, which ends with the runtime (`exited`) or on `stop()` while the proxy stays, and the next request starts it again, at the same revision with the same secrets, and is forwarded to it; its `type` reports the lifetime, `running()` whether a runtime runs behind it, and `wakes()` lists the wakes across its stops. `testRepository()` is a bare git repository to be a host's source, with `commit()`.
|
|
228
228
|
|
|
229
229
|
## A wakeup's conformance
|
|
230
230
|
|
|
@@ -235,7 +235,7 @@ const results = await checkWakeup({ type, host: { url, stop, wakes }, client, re
|
|
|
235
235
|
expect(results.every((r) => r.ok)).toBe(true);
|
|
236
236
|
```
|
|
237
237
|
|
|
238
|
-
`fakeWakeup()` is a wakeup in this process (`testwakeup.timer`, its `host` a reference to a `testhost.app` declaration by its `url`): its driver's `register` arms one timer for the one timer apply created, replacing any armed before, that sends `GET {host}/wake` at `at`, again every 250 ms until the host answers. `fire()` sends the armed wake now; `registered()` lists the registrations it took; `close()` disarms it. Its tests run it over `fakeHost` with `stops-
|
|
238
|
+
`fakeWakeup()` is a wakeup in this process (`testwakeup.timer`, its `host` a reference to a `testhost.app` declaration by its `url`): its driver's `register` arms one timer for the one timer apply created, replacing any armed before, that sends `GET {host}/wake` at `at`, again every 250 ms until the host answers. `fire()` sends the armed wake now; `registered()` lists the registrations it took; `close()` disarms it. Its tests run it over `fakeHost` with `stops-on-exit` and `inProcessHost`, and so does the stack test (`test/stack.test.ts`), with no account: the fake wakeup declared and applied for the host, a sleeping run and a schedule, the worker stopping itself and the process stopped in between, then woken.
|
|
239
239
|
|
|
240
240
|
## A database's conformance
|
|
241
241
|
|
package/testing/dist/build.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export declare const buildLock: (pkgDir: string) => string;
|
|
|
10
10
|
*/
|
|
11
11
|
export declare function ensureBuilt(pkgDir: string, outputs: readonly string[], build: readonly [string, ...string[]], sources?: readonly string[]): void;
|
|
12
12
|
/**
|
|
13
|
-
* Calls `get` every 100 ms until `done` holds for what it returns (by default, until
|
|
14
|
-
* truthy), and returns it; throws after `timeoutMs`, naming the last value.
|
|
13
|
+
* Calls `get` every `everyMs` (100 ms) until `done` holds for what it returns (by default, until
|
|
14
|
+
* that is truthy), and returns it; throws after `timeoutMs`, naming the last value.
|
|
15
15
|
*/
|
|
16
|
-
export declare function waitFor<T>(get: () => T | Promise<T>, done?: (value: T) => boolean, timeoutMs?: number): Promise<T>;
|
|
16
|
+
export declare function waitFor<T>(get: () => T | Promise<T>, done?: (value: T) => boolean, timeoutMs?: number, everyMs?: number): Promise<T>;
|
package/testing/dist/build.js
CHANGED
|
@@ -78,10 +78,10 @@ export function ensureBuilt(pkgDir, outputs, build, sources = ["src/**"]) {
|
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
80
|
/**
|
|
81
|
-
* Calls `get` every 100 ms until `done` holds for what it returns (by default, until
|
|
82
|
-
* truthy), and returns it; throws after `timeoutMs`, naming the last value.
|
|
81
|
+
* Calls `get` every `everyMs` (100 ms) until `done` holds for what it returns (by default, until
|
|
82
|
+
* that is truthy), and returns it; throws after `timeoutMs`, naming the last value.
|
|
83
83
|
*/
|
|
84
|
-
export async function waitFor(get, done = Boolean, timeoutMs = 15_000) {
|
|
84
|
+
export async function waitFor(get, done = Boolean, timeoutMs = 15_000, everyMs = 100) {
|
|
85
85
|
const deadline = Date.now() + timeoutMs;
|
|
86
86
|
for (;;) {
|
|
87
87
|
const value = await get();
|
|
@@ -89,7 +89,7 @@ export async function waitFor(get, done = Boolean, timeoutMs = 15_000) {
|
|
|
89
89
|
return value;
|
|
90
90
|
if (Date.now() > deadline)
|
|
91
91
|
throw new Error(`timed out waiting; last saw ${JSON.stringify(value)}`);
|
|
92
|
-
await new Promise((resolve) => setTimeout(resolve,
|
|
92
|
+
await new Promise((resolve) => setTimeout(resolve, everyMs));
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
//# sourceMappingURL=build.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.js","sourceRoot":"","sources":["../src/build.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC1G,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,2EAA2E;AAC3E,SAAS,KAAK,CAAC,GAAW;IACxB,IAAI,CAAC,GAAG;QAAE,OAAO,KAAK,CAAC;IACvB,IAAI,CAAC;QACH,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;QACrB,O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