sanoma 0.11.21 → 0.11.22
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 +2 -0
- package/app/README.md +2 -2
- package/app/dist/api.d.ts +16 -2
- package/app/dist/api.js +1 -1
- package/app/dist/client/assets/ArrowDown.es-BOfBLlTP.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/Copy.es-CvUujKw7.js +1 -0
- package/app/dist/client/assets/DialogTitle-Dz3loDe5.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-C4bMZ73g.js +1 -0
- package/app/dist/client/assets/_id-CUaJYD_3.js +1 -0
- package/app/dist/client/assets/_id-DRetx-BJ.js +1 -0
- package/app/dist/client/assets/_id-mm7bTIIl.js +2 -0
- package/app/dist/client/assets/_id-tN6nFEpD.js +1 -0
- package/app/dist/client/assets/_name-BOi2qVWk.js +1 -0
- package/app/dist/client/assets/_name-CBI1waPs.js +4 -0
- package/app/dist/client/assets/_name-CrsiaFT6.js +1 -0
- package/app/dist/client/assets/_name-TzQfjXo8.js +1 -0
- package/app/dist/client/assets/_vendor-C3TGvx4w.js +1 -0
- package/app/dist/client/assets/_vendor-sHwAlFSF.js +1 -0
- package/app/dist/client/assets/app-chrome-_ahvxx73.js +5 -0
- package/app/dist/client/assets/app-scope-Bht7PIkQ.js +1 -0
- package/app/dist/client/assets/approval-BFFM_yEl.js +1 -0
- package/app/dist/client/assets/apps-CpdXjc1j.js +1 -0
- package/app/dist/client/assets/button-D5kdANef.js +1 -0
- package/app/dist/client/assets/change-glance-CdkbSGxZ.js +1 -0
- package/app/dist/client/assets/changes-C_K2tazO.js +1 -0
- package/app/dist/client/assets/changes-DFcdyDL_.js +1 -0
- package/app/dist/client/assets/chat-Djbdaxw8.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-DHOhx6Zn.js +3 -0
- package/app/dist/client/assets/composite-9cNA7N0P.js +1 -0
- package/app/dist/client/assets/connect-DHUdrwwW.js +1 -0
- package/app/dist/client/assets/connections-fGNKJl3J.js +5 -0
- package/app/dist/client/assets/connectors-CuS1paNm.js +1 -0
- package/app/dist/client/assets/credentials-Cb7Lnfxk.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-DZ-ufRXn.js +1 -0
- package/app/dist/client/assets/decidable-OFQBEcco.js +1 -0
- package/app/dist/client/assets/declaration-form-D2ZMEVC6.js +1 -0
- package/app/dist/client/assets/dialog-B5pmfCdJ.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-BaPrTDs8.js +1 -0
- package/app/dist/client/assets/fence-CMhOJv7H.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-B5TYhcqD.js +7 -0
- package/app/dist/client/assets/grid-diff-wo26YSgM.js +1 -0
- package/app/dist/client/assets/held-card-HrJ6QpRY.js +1 -0
- package/app/dist/client/assets/highlighted-body-JLMTFACH-CjeaSnZq.js +1 -0
- package/app/dist/client/assets/hosting-Beoi95m6.js +1 -0
- package/app/dist/client/assets/html-BHZv6uqE.js +1 -0
- package/app/dist/client/assets/import-8WDFPfe6.js +1 -0
- package/app/dist/client/assets/inbox-B9hsZPsC.js +1 -0
- package/app/dist/client/assets/inbox-DM2npRZI.js +1 -0
- package/app/dist/client/assets/index-CHKfukjt.js +10 -0
- package/app/dist/client/assets/item-B4QRpXse.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-n8CE0xEs.js +1 -0
- package/app/dist/client/assets/lazyRouteComponent-DezoGNoN.js +1 -0
- package/app/dist/client/assets/markdown-BYOwaDjH.js +1 -0
- package/app/dist/client/assets/markdown-DS_nKu0s.js +164 -0
- package/app/dist/client/assets/mermaid-WFAXDIZX-DQBKIf0O.js +1 -0
- package/app/dist/client/assets/motion-D6e1hqz4.js +1 -0
- package/app/dist/client/assets/people-BiiQfYJ8.js +1 -0
- package/app/dist/client/assets/permissions-BmKxEfBi.js +2 -0
- package/app/dist/client/assets/permissions-grid-B755bq5J.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-DGlVu9wp.js +57 -0
- package/app/dist/client/assets/react-dom-D6fTz1bt.js +1 -0
- package/app/dist/client/assets/route-BSe5L2p4.js +1 -0
- package/app/dist/client/assets/route-Ds87ixtB.js +1 -0
- package/app/dist/client/assets/runs-table-DMiD4HeY.js +1 -0
- package/app/dist/client/assets/scenario-DrgmfuFx.js +1 -0
- package/app/dist/client/assets/scenario-graph-Blv2e1PV.js +1 -0
- package/app/dist/client/assets/separator-Bdtc7rou.js +1 -0
- package/app/dist/client/assets/{sheet-BYL9XU5s.js → sheet-BKUFUA1l.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-K4mrFsLr.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-CJ6VmNPY.js +1 -0
- package/app/dist/client/assets/store-BT988jIX.js +1 -0
- package/app/dist/client/assets/style-CTcG_5y0.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-BQd5yMlA.js → useLoaderData-BsksXf-p.js} +1 -1
- package/app/dist/client/assets/useOpenInteractionType-UhakpAXY.js +1 -0
- package/app/dist/client/assets/useRegisterFieldControl-DIkKUJkh.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-DUoVqvfP.js +1 -0
- package/app/dist/client/assets/workflow-lQtyyxKx.js +1 -0
- package/app/dist/client/assets/workflow-view-hk_RU9WF.js +1 -0
- package/app/dist/client/assets/workflows-DFB7lzzN.js +1 -0
- package/app/dist/client/assets/yaml-rwi0_p6S.js +1 -0
- package/app/dist/index.d.ts +4 -4
- package/app/dist/lib/chat.d.ts +64 -19
- package/app/dist/lib/chat.js +54 -18
- package/app/dist/lib/chat.js.map +1 -1
- package/app/dist/server/assets/{_id-wuJIq2ZZ.js → _id--MWJXj9R.js} +2 -2
- package/app/dist/server/assets/{_id-ce1EGp7Y.js → _id-BEGe86NW.js} +2 -2
- package/app/dist/server/assets/{_id-BViXAagq.js → _id-CbO7Ok0w.js} +12 -10
- package/app/dist/server/assets/{_id-Dt9tTylX.js → _id-DwdpIYKk.js} +2 -2
- package/app/dist/server/assets/{_id-wB8khGTz.js → _id-fK_nPFHK.js} +6 -6
- package/app/dist/server/assets/{_name-D_-MhjNf.js → _name-BzD9TxVC.js} +17 -17
- package/app/dist/server/assets/{_name-BqFwnyf7.js → _name-ClgMsl5m.js} +2 -2
- package/app/dist/server/assets/{_name-BGagGBjX.js → _name-DdFVsjcj.js} +7 -7
- package/app/dist/server/assets/{_name-DntbHE-b.js → _name-Dyh4G9Oy.js} +10 -11
- package/app/dist/server/assets/{_tanstack-start-manifest_v-BljuBM-G.js → _tanstack-start-manifest_v-DUtnBg7y.js} +101 -91
- package/app/dist/server/assets/{_vendor-CNB03LWX.js → _vendor-DyeUY8kH.js} +8 -8
- package/app/dist/server/assets/{_vendor-CcEviOki.js → _vendor-W3KKSusM.js} +2 -2
- package/app/dist/server/assets/{actor-D6iA0pDg.js → actor-BlaOwG6A.js} +1 -1
- package/app/dist/server/assets/app-chrome-BJlxsc9y.js +2116 -0
- package/app/dist/server/assets/{app-scope-CXIgOFmi.js → app-scope-ASuhE3xI.js} +2 -2
- package/app/dist/server/assets/{apply-plan-ybBda6vQ.js → apply-plan-Djw1tNPD.js} +8 -7
- package/app/dist/server/assets/{approval-Su315ikC.js → approval-BjTnfr1U.js} +15 -13
- package/app/dist/server/assets/{apps-xwQAehch.js → apps-C28F9Y5C.js} +7 -7
- package/app/dist/server/assets/button-Xwx3rpQ0.js +43 -0
- package/app/dist/server/assets/change-glance-Bc4htVPy.js +54 -0
- package/app/dist/server/assets/{change-glance-CpArIbGS.js → changes-B5P8BJSf.js} +2 -54
- package/app/dist/server/assets/{changes-Bc_OiDBD.js → changes-tbeMKxjY.js} +8 -7
- package/app/dist/server/assets/{chat-DMN_hoKm.js → chat-BNMeLc9V.js} +108 -30
- 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-DpZcJvCy.js} +26 -24
- package/app/dist/server/assets/{connect-BpPiu5s6.js → connect-Cljunav2.js} +11 -10
- package/app/dist/server/assets/{connections-DBgb1bvX.js → connections-Cfz5LMy5.js} +12 -11
- package/app/dist/server/assets/{connectors-5a5_SlHO.js → connectors-tt9BF9L1.js} +8 -8
- package/app/dist/server/assets/{credentials-ud_Y68hx.js → credentials-CYUFAVU8.js} +10 -9
- package/app/dist/server/assets/{data-aEdhwcqy.js → data-D91ZZ5St.js} +7 -7
- package/app/dist/server/assets/{declaration-form-Dfg1yNuY.js → declaration-form-BzISD6gw.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-BZym0xE2.js} +8 -7
- package/app/dist/server/assets/fence-Br7MPP41.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-sf07C1qn.js} +2 -2
- package/app/dist/server/assets/{graph-qYOdoz2s.js → graph-C1Cl7owl.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-CDewk4rs.js +75 -0
- package/app/dist/server/assets/{hosting-bbn9UvDc.js → hosting-O-l2L0ec.js} +16 -14
- package/app/dist/server/assets/{import-DIwvzHb6.js → import-qvpEIYFx.js} +8 -8
- package/app/dist/server/assets/{inbox-D6R6sWBB.js → inbox-BcJxCIPm.js} +8 -8
- package/app/dist/server/assets/{inbox-Dj-5FleF.js → inbox-BvpSeC3M.js} +2 -2
- 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-DlT_THim.js} +2 -2
- package/app/dist/server/assets/markdown-BExKjghi.js +116 -0
- package/app/dist/server/assets/{middleware-B8JRLyxx.js → middleware-B6RPW0fH.js} +1 -1
- package/app/dist/server/assets/{people-CkU_AxrV.js → people-C8VXQrKg.js} +13 -12
- package/app/dist/server/assets/{permissions-BfMcQqQb.js → permissions-COAiOoCB.js} +9 -8
- package/app/dist/server/assets/{permissions-grid-DWP9FAAS.js → permissions-grid-CcYUiqhD.js} +4 -4
- package/app/dist/server/assets/{button-f9Lc8qLl.js → queries-DJcZ4mzA.js} +3 -45
- package/app/dist/server/assets/{route-BTT7nMJq.js → route-DOqitvxL.js} +2 -2
- package/app/dist/server/assets/{route-CF_8jQYY.js → route-aa9MThMA.js} +2 -2
- package/app/dist/server/assets/{router-BvYtxrVN.js → router-Co6gRNI1.js} +80 -46
- package/app/dist/server/assets/{runs-table-BBudn12Y.js → runs-table-BtGm2KOO.js} +6 -6
- package/app/dist/server/assets/{scenario-BXGTSTiP.js → scenario-DidUafqw.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-1l0BtgVf.js → sites.index-4TK8c0QC.js} +4 -4
- package/app/dist/server/assets/{spinner-C1ZW08lp.js → spinner-016IPVi-.js} +1 -1
- package/app/dist/server/assets/{start-CSU4irVK.js → start-VfVsXenI.js} +2 -2
- package/app/dist/server/assets/{start-form-DI60UOrc.js → start-form-CUeEdeP7.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-DW5qmIzp.js} +8 -7
- package/app/dist/server/assets/{workflow-Z99QWO42.js → workflow-BRu7ljgU.js} +5 -5
- package/app/dist/server/assets/{workflow-view-C8X8U11S.js → workflow-view-yF48p1lu.js} +14 -13
- package/app/dist/server/assets/{workflows-C0kJoGf1.js → workflows-DL-TJFLt.js} +13 -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/server.js +48 -48
- 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 +35 -14
- 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/stylesheet.json +1 -1
- package/app/src/api.ts +1 -1
- package/app/src/components/app-chrome.tsx +28 -13
- package/app/src/components/common.tsx +1 -24
- package/app/src/components/logo.tsx +25 -0
- 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/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 +9 -1
- package/app/src/components/shell/thread.tsx +174 -0
- 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/trace.tsx +133 -0
- package/app/src/hooks/use-highlighted-code.ts +72 -0
- package/app/src/index.ts +4 -4
- package/app/src/lib/chat.ts +110 -22
- package/app/src/lib/cn-tables.ts +23 -23
- package/app/src/lib/highlighter.tsx +114 -0
- package/app/src/routes/__root.tsx +7 -4
- package/app/src/routes/connectors/index.tsx +1 -1
- package/app/src/routes/hosting/index.tsx +6 -9
- package/app/src/server/chat.ts +41 -19
- 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 +42 -14
- package/app/src/steps/agent/transcript.ts +90 -3
- package/app/src/steps/agent/turn.ts +18 -16
- package/app/src/worker/app.ts +6 -5
- package/dist/cli.js +18 -6
- package/dist/cli.js.map +1 -1
- package/dist/serve.js +1 -1
- package/dist/serve.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/package.json +7 -3
- package/testing/README.md +3 -3
- 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 +34 -21
- package/testing/dist/host.js +135 -75
- package/testing/dist/host.js.map +1 -1
- package/workflows/CLOUD-IDENTITY.md +15 -20
- package/workflows/README.md +9 -7
- package/workflows/dist/client.d.ts +5 -3
- package/workflows/dist/client.js +4 -3
- 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/config.d.ts +7 -1
- package/workflows/dist/config.js +24 -1
- package/workflows/dist/config.js.map +1 -1
- package/workflows/dist/db/company.d.ts +1 -1
- package/workflows/dist/db/company.js +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/deadlines.d.ts +7 -2
- package/workflows/dist/deadlines.js +14 -5
- package/workflows/dist/deadlines.js.map +1 -1
- package/workflows/dist/describe.js +15 -3
- package/workflows/dist/describe.js.map +1 -1
- package/workflows/dist/description.d.ts +37 -2
- package/workflows/dist/description.js +22 -1
- package/workflows/dist/description.js.map +1 -1
- package/workflows/dist/host.d.ts +7 -6
- 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/index.d.ts +3 -3
- package/workflows/dist/index.js +1 -1
- package/workflows/dist/index.js.map +1 -1
- package/workflows/dist/op.d.ts +92 -1
- package/workflows/dist/op.js +19 -6
- package/workflows/dist/op.js.map +1 -1
- package/workflows/dist/renewal.d.ts +1 -1
- package/workflows/dist/renewal.js +1 -1
- package/workflows/dist/runtime-ops.d.ts +3 -4
- package/workflows/dist/runtime-ops.js +4 -4
- package/workflows/dist/runtime-ops.js.map +1 -1
- package/workflows/dist/schedules.d.ts +1 -1
- package/workflows/dist/schedules.js +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/vendor-info.d.ts +12 -3
- package/workflows/dist/vendor-info.js +20 -4
- package/workflows/dist/vendor-info.js.map +1 -1
- package/workflows/dist/worker.d.ts +11 -1
- package/workflows/dist/worker.js +9 -3
- package/workflows/dist/worker.js.map +1 -1
- package/workflows/src/client.ts +9 -6
- package/workflows/src/cloud-identity.ts +7 -4
- package/workflows/src/config.ts +36 -1
- package/workflows/src/db/company.ts +1 -1
- package/workflows/src/db/identity.ts +2 -2
- package/workflows/src/deadlines.ts +18 -8
- package/workflows/src/describe.ts +16 -3
- package/workflows/src/description.ts +25 -1
- package/workflows/src/host.ts +7 -6
- package/workflows/src/identity-provisioning.ts +19 -30
- package/workflows/src/index.ts +7 -1
- package/workflows/src/op.ts +104 -10
- package/workflows/src/renewal.ts +1 -1
- package/workflows/src/runtime-ops.ts +5 -5
- package/workflows/src/schedules.ts +1 -1
- package/workflows/src/supervisor.ts +40 -38
- package/workflows/src/vendor-info.ts +20 -5
- package/workflows/src/worker.ts +22 -5
- 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/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/native-select-DLa-He0n.js +0 -37
- package/app/dist/server/assets/utils-wksS9pYh.js +0 -138
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { cn } from "cn";
|
|
3
|
+
|
|
4
|
+
function MessageGroup({ className, ...props }: React.ComponentProps<"div">) {
|
|
5
|
+
return <div data-slot="message-group" className={cn("flex min-w-0 flex-col gap-2", className)} {...props} />;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
function Message({ className, align = "start", ...props }: React.ComponentProps<"div"> & { align?: "start" | "end" }) {
|
|
9
|
+
return (
|
|
10
|
+
<div
|
|
11
|
+
data-slot="message"
|
|
12
|
+
data-align={align}
|
|
13
|
+
className={cn(
|
|
14
|
+
"group/message relative flex w-full min-w-0 gap-2 text-sm data-[align=end]:flex-row-reverse",
|
|
15
|
+
className,
|
|
16
|
+
)}
|
|
17
|
+
{...props}
|
|
18
|
+
/>
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function MessageAvatar({ className, ...props }: React.ComponentProps<"div">) {
|
|
23
|
+
return (
|
|
24
|
+
<div
|
|
25
|
+
data-slot="message-avatar"
|
|
26
|
+
className={cn(
|
|
27
|
+
"flex w-fit min-w-8 shrink-0 items-center justify-center self-end overflow-hidden rounded-full bg-muted group-has-data-[slot=message-footer]/message:-translate-y-8",
|
|
28
|
+
className,
|
|
29
|
+
)}
|
|
30
|
+
{...props}
|
|
31
|
+
/>
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function MessageContent({ className, ...props }: React.ComponentProps<"div">) {
|
|
36
|
+
return (
|
|
37
|
+
<div
|
|
38
|
+
data-slot="message-content"
|
|
39
|
+
className={cn(
|
|
40
|
+
"flex w-full min-w-0 flex-col gap-2.5 wrap-break-word group-data-[align=end]/message:*:data-slot:self-end",
|
|
41
|
+
className,
|
|
42
|
+
)}
|
|
43
|
+
{...props}
|
|
44
|
+
/>
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function MessageHeader({ className, ...props }: React.ComponentProps<"div">) {
|
|
49
|
+
return (
|
|
50
|
+
<div
|
|
51
|
+
data-slot="message-header"
|
|
52
|
+
className={cn(
|
|
53
|
+
"flex max-w-full min-w-0 items-center px-3 text-xs font-medium text-muted-foreground group-has-data-[variant=ghost]/message:px-0",
|
|
54
|
+
className,
|
|
55
|
+
)}
|
|
56
|
+
{...props}
|
|
57
|
+
/>
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
function MessageFooter({ className, ...props }: React.ComponentProps<"div">) {
|
|
62
|
+
return (
|
|
63
|
+
<div
|
|
64
|
+
data-slot="message-footer"
|
|
65
|
+
className={cn(
|
|
66
|
+
"flex max-w-full min-w-0 items-center px-3 text-xs font-medium text-muted-foreground group-has-data-[variant=ghost]/message:px-0 group-data-[align=end]/message:justify-end",
|
|
67
|
+
className,
|
|
68
|
+
)}
|
|
69
|
+
{...props}
|
|
70
|
+
/>
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export { MessageGroup, Message, MessageAvatar, MessageContent, MessageFooter, MessageHeader };
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { cn } from "cn";
|
|
3
|
+
|
|
4
|
+
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "#/components/ui/collapsible.tsx";
|
|
5
|
+
import { CaretRightIcon } from "@phosphor-icons/react/dist/csr/CaretRight";
|
|
6
|
+
|
|
7
|
+
function Trace({ className, ...props }: React.ComponentProps<"div">) {
|
|
8
|
+
return (
|
|
9
|
+
<div
|
|
10
|
+
data-slot="trace"
|
|
11
|
+
className={cn(
|
|
12
|
+
"flex w-full min-w-0 flex-col gap-2 *:has-[>[data-slot=trace-line]]:flex *:has-[>[data-slot=trace-line]]:w-fit *:has-[>[data-slot=trace-line]]:max-w-full *:has-[>[data-slot=trace-line]]:min-w-0 *:has-[>[data-slot=trace-line]]:rounded-md *:has-[>[data-slot=trace-line]]:text-left *:has-[>[data-slot=trace-line]]:outline-none *:has-[>[data-slot=trace-line]]:focus-visible:ring-3 *:has-[>[data-slot=trace-line]]:focus-visible:ring-ring/50",
|
|
13
|
+
className,
|
|
14
|
+
)}
|
|
15
|
+
{...props}
|
|
16
|
+
/>
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function TraceLine({
|
|
21
|
+
className,
|
|
22
|
+
status,
|
|
23
|
+
...props
|
|
24
|
+
}: React.ComponentProps<"span"> & {
|
|
25
|
+
status?: "running" | "error" | "pending";
|
|
26
|
+
}) {
|
|
27
|
+
return (
|
|
28
|
+
<span
|
|
29
|
+
data-slot="trace-line"
|
|
30
|
+
data-status={status}
|
|
31
|
+
className={cn(
|
|
32
|
+
"flex w-fit max-w-full min-w-0 items-center gap-2 text-sm text-muted-foreground transition-colors in-[a,button]:cursor-pointer in-[a:hover,button:hover]:text-foreground data-[status=error]:text-destructive data-[status=error]:in-[a:hover,button:hover]:text-destructive data-[status=pending]:opacity-60 data-[status=running]:*:data-[slot=trace-title]:shimmer",
|
|
33
|
+
className,
|
|
34
|
+
)}
|
|
35
|
+
{...props}
|
|
36
|
+
/>
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function TraceIcon({ className, ...props }: React.ComponentProps<"span">) {
|
|
41
|
+
return (
|
|
42
|
+
<span
|
|
43
|
+
data-slot="trace-icon"
|
|
44
|
+
aria-hidden="true"
|
|
45
|
+
className={cn(
|
|
46
|
+
"flex size-4 shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [[data-slot=trace-title]~&]:-ml-1",
|
|
47
|
+
className,
|
|
48
|
+
)}
|
|
49
|
+
{...props}
|
|
50
|
+
/>
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
function TraceTitle({ className, ...props }: React.ComponentProps<"span">) {
|
|
55
|
+
return (
|
|
56
|
+
<span data-slot="trace-title" className={cn("min-w-0 truncate motion-reduce:shimmer-none", className)} {...props} />
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
function TraceDescription({ className, ...props }: React.ComponentProps<"span">) {
|
|
61
|
+
return (
|
|
62
|
+
<span
|
|
63
|
+
data-slot="trace-description"
|
|
64
|
+
className={cn("shrink-0 text-muted-foreground/70 tabular-nums", className)}
|
|
65
|
+
{...props}
|
|
66
|
+
/>
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
function TraceCollapsible({
|
|
71
|
+
className,
|
|
72
|
+
...props
|
|
73
|
+
}: Omit<React.ComponentProps<typeof Collapsible>, "open"> &
|
|
74
|
+
(
|
|
75
|
+
| { open?: undefined }
|
|
76
|
+
| {
|
|
77
|
+
open: boolean;
|
|
78
|
+
onOpenChange: NonNullable<React.ComponentProps<typeof Collapsible>["onOpenChange"]>;
|
|
79
|
+
}
|
|
80
|
+
)) {
|
|
81
|
+
return (
|
|
82
|
+
<Collapsible data-slot="trace-collapsible" className={cn("flex w-full min-w-0 flex-col", className)} {...props} />
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
function TraceCollapsibleTrigger({ className, children, ...props }: React.ComponentProps<typeof CollapsibleTrigger>) {
|
|
87
|
+
return (
|
|
88
|
+
<CollapsibleTrigger
|
|
89
|
+
data-slot="trace-collapsible-trigger"
|
|
90
|
+
className={cn(
|
|
91
|
+
"group/trace-collapsible-trigger flex w-fit max-w-full min-w-0 cursor-pointer items-center gap-1 rounded-md text-left text-muted-foreground transition-colors outline-none hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50 has-[[data-status=error]]:text-destructive",
|
|
92
|
+
className,
|
|
93
|
+
)}
|
|
94
|
+
{...props}
|
|
95
|
+
>
|
|
96
|
+
{children}
|
|
97
|
+
<TraceIcon className="transition-transform group-aria-expanded/trace-collapsible-trigger:rotate-90">
|
|
98
|
+
<CaretRightIcon />
|
|
99
|
+
</TraceIcon>
|
|
100
|
+
</CollapsibleTrigger>
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
function TraceCollapsibleContent({ className, children, ...props }: React.ComponentProps<typeof CollapsibleContent>) {
|
|
105
|
+
return (
|
|
106
|
+
<CollapsibleContent
|
|
107
|
+
data-slot="trace-collapsible-content"
|
|
108
|
+
className="h-(--collapsible-panel-height) min-w-0 overflow-hidden transition-[height] duration-200 data-ending-style:h-0 data-starting-style:h-0"
|
|
109
|
+
{...props}
|
|
110
|
+
>
|
|
111
|
+
<div
|
|
112
|
+
data-slot="trace-collapsible-content-inner"
|
|
113
|
+
className={cn(
|
|
114
|
+
"mt-2 mb-1 ml-[calc(--spacing(2)-1px)] min-w-0 border-l pr-1 pl-4 leading-relaxed wrap-break-word text-muted-foreground",
|
|
115
|
+
className,
|
|
116
|
+
)}
|
|
117
|
+
>
|
|
118
|
+
{children}
|
|
119
|
+
</div>
|
|
120
|
+
</CollapsibleContent>
|
|
121
|
+
);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export {
|
|
125
|
+
Trace,
|
|
126
|
+
TraceLine,
|
|
127
|
+
TraceIcon,
|
|
128
|
+
TraceTitle,
|
|
129
|
+
TraceDescription,
|
|
130
|
+
TraceCollapsible,
|
|
131
|
+
TraceCollapsibleTrigger,
|
|
132
|
+
TraceCollapsibleContent,
|
|
133
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
|
|
3
|
+
import { loadHighlighter } from "#/lib/highlighter.tsx";
|
|
4
|
+
|
|
5
|
+
export function useHighlightedCode(value: string, language: string) {
|
|
6
|
+
// A trailing newline would render as an extra empty line.
|
|
7
|
+
const code = value.endsWith("\n") ? value.slice(0, -1) : value;
|
|
8
|
+
const [loaded, setLoaded] = React.useState<{
|
|
9
|
+
language: string;
|
|
10
|
+
highlighter: Awaited<ReturnType<typeof loadHighlighter>>;
|
|
11
|
+
} | null>(null);
|
|
12
|
+
const highlighter = loaded?.language === language ? loaded.highlighter : null;
|
|
13
|
+
|
|
14
|
+
React.useEffect(() => {
|
|
15
|
+
let cancelled = false;
|
|
16
|
+
|
|
17
|
+
loadHighlighter(language)
|
|
18
|
+
.then((next) => {
|
|
19
|
+
if (!cancelled) {
|
|
20
|
+
setLoaded({ language, highlighter: next });
|
|
21
|
+
}
|
|
22
|
+
})
|
|
23
|
+
.catch(() => {});
|
|
24
|
+
|
|
25
|
+
return () => {
|
|
26
|
+
cancelled = true;
|
|
27
|
+
};
|
|
28
|
+
}, [language]);
|
|
29
|
+
|
|
30
|
+
// The complete lines, highlighted. While the code streams, only the new
|
|
31
|
+
// lines are tokenized, starting from the grammar state of the last one.
|
|
32
|
+
const [done, setDone] = React.useState<{
|
|
33
|
+
highlighter: typeof highlighter;
|
|
34
|
+
text: string;
|
|
35
|
+
lines: React.ReactNode[];
|
|
36
|
+
state?: Parameters<NonNullable<typeof highlighter>["highlight"]>[1];
|
|
37
|
+
}>({ highlighter: null, text: "", lines: [] });
|
|
38
|
+
|
|
39
|
+
let next = done;
|
|
40
|
+
|
|
41
|
+
if (next.highlighter !== highlighter || !code.startsWith(next.text)) {
|
|
42
|
+
next = { highlighter, text: "", lines: [] };
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
const end = code.lastIndexOf("\n") + 1;
|
|
46
|
+
|
|
47
|
+
if (highlighter && end > next.text.length) {
|
|
48
|
+
const result = highlighter.highlight(code.slice(next.text.length, end - 1), next.state);
|
|
49
|
+
|
|
50
|
+
next = {
|
|
51
|
+
highlighter,
|
|
52
|
+
text: code.slice(0, end),
|
|
53
|
+
lines: [...next.lines, ...result.lines],
|
|
54
|
+
state: result.state,
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
if (next !== done) {
|
|
59
|
+
setDone(next);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// The last line is still being written, so it is tokenized on every render.
|
|
63
|
+
const tail = code.slice(end);
|
|
64
|
+
|
|
65
|
+
return React.useMemo(() => {
|
|
66
|
+
if (!highlighter) {
|
|
67
|
+
return code.split("\n");
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
return [...next.lines, highlighter.highlight(tail, next.state).lines[0]];
|
|
71
|
+
}, [code, highlighter, next, tail]);
|
|
72
|
+
}
|
package/app/src/index.ts
CHANGED
|
@@ -88,10 +88,10 @@ export interface AppOptions {
|
|
|
88
88
|
*/
|
|
89
89
|
ingress?: readonly IngressRoute[];
|
|
90
90
|
/**
|
|
91
|
-
* Called right
|
|
92
|
-
* apply and a held call are starts) and an approval's decision; never for a read
|
|
93
|
-
* (`ClientOptions.onWrite`). `sanoma serve`
|
|
94
|
-
*
|
|
91
|
+
* Called right after each change a worker must run that the app makes commits: a run's start
|
|
92
|
+
* (drift, apply and a held call are starts) and an approval's decision; never for a read
|
|
93
|
+
* (`ClientOptions.onWrite`). `sanoma serve` wakes its worker with it (`Supervisor.wake`). Must
|
|
94
|
+
* not throw.
|
|
95
95
|
*/
|
|
96
96
|
onWrite?: () => void;
|
|
97
97
|
}
|
package/app/src/lib/chat.ts
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import type { CheckResult } from "sanoma/workflows";
|
|
2
|
-
import
|
|
2
|
+
import type { AgentEntry } from "sanoma/workflows/description";
|
|
3
|
+
import {
|
|
4
|
+
type ChatStatus,
|
|
5
|
+
DefaultChatTransport,
|
|
6
|
+
type InferUITools,
|
|
7
|
+
isTextUIPart,
|
|
8
|
+
isToolUIPart,
|
|
9
|
+
type UIMessage,
|
|
10
|
+
} from "ai";
|
|
11
|
+
import type { AppConfig } from "../api.ts";
|
|
3
12
|
import type { LoopTools } from "../steps/agent/tools.ts";
|
|
4
13
|
|
|
5
14
|
// The operator agent's chat as the browser and every engine share it: the message type, the
|
|
@@ -39,24 +48,80 @@ export interface SignInCard {
|
|
|
39
48
|
after?: string;
|
|
40
49
|
}
|
|
41
50
|
|
|
51
|
+
/** The account a chat's agent runs on: the company's key (our loop's model, or an agent's `onKey`), or the person's own plan over ACP (`own`). */
|
|
52
|
+
export type Plan = "onKey" | "own";
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* What a chat runs on: the agent (`loop`, our own, or a coding agent's id,
|
|
56
|
+
* `ConfigDescription.agents`) and the account it runs on. A chat's row and the engine cookie keep
|
|
57
|
+
* it as one name (`engineName`), which every chat ever opened reads back with `engineOf`: `loop`,
|
|
58
|
+
* `<id>` on the company's key, `acp-<id>` on a person's own plan.
|
|
59
|
+
*/
|
|
60
|
+
export interface ChatEngine {
|
|
61
|
+
agent: string;
|
|
62
|
+
plan: Plan;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/** A chat's engine, from the name its row or the cookie keeps (`engineName`). */
|
|
66
|
+
export const engineOf = (name: string): ChatEngine =>
|
|
67
|
+
name.startsWith("acp-") ? { agent: name.slice("acp-".length), plan: "own" } : { agent: name, plan: "onKey" };
|
|
68
|
+
|
|
69
|
+
/** The name a chat's row and the cookie keep for an engine (`engineOf` reads it). */
|
|
70
|
+
export const engineName = ({ agent, plan }: ChatEngine) => (plan === "own" ? `acp-${agent}` : agent);
|
|
71
|
+
|
|
72
|
+
/** An engine as the chat offers and labels it: its name, its agent's title and mark (from its connector; none for our loop, whose mark is Sanoma's), and its label, the title with the plan. */
|
|
73
|
+
export interface EngineOption extends ChatEngine {
|
|
74
|
+
name: string;
|
|
75
|
+
title: string;
|
|
76
|
+
label: string;
|
|
77
|
+
mark?: AgentEntry["mark"];
|
|
78
|
+
/** A person's own plan whose sign-in is a command they run once on their computer (`AgentEntry.once`). */
|
|
79
|
+
once?: true;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/** A coding agent's engine on `plan`. */
|
|
83
|
+
const agentEngine = (agent: AgentEntry, plan: Plan): EngineOption => ({
|
|
84
|
+
name: engineName({ agent: agent.id, plan }),
|
|
85
|
+
agent: agent.id,
|
|
86
|
+
plan,
|
|
87
|
+
title: agent.title,
|
|
88
|
+
label: plan === "own" ? `${agent.title} (your plan)` : agent.title,
|
|
89
|
+
...(agent.mark && { mark: agent.mark }),
|
|
90
|
+
...(plan === "own" && agent.once && { once: true as const }),
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* The company's engines: our loop, then each coding agent its connectors give
|
|
95
|
+
* (`ConfigDescription.agents`) on the company's key, then each on a person's own plan.
|
|
96
|
+
*/
|
|
97
|
+
export function enginesOf(agents: AgentEntry[]): EngineOption[] {
|
|
98
|
+
return [
|
|
99
|
+
{ name: "loop", agent: "loop", plan: "onKey", title: "Sanoma", label: "Sanoma" },
|
|
100
|
+
...agents.filter((agent) => agent.onKey).map((agent) => agentEngine(agent, "onKey")),
|
|
101
|
+
...agents.filter((agent) => agent.own).map((agent) => agentEngine(agent, "own")),
|
|
102
|
+
];
|
|
103
|
+
}
|
|
104
|
+
|
|
42
105
|
/**
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
* coding agent over ACP on their own plan (`acp-<agent>`, `ownPlan`).
|
|
106
|
+
* Whether a live instance declares no box for the coding agents, which run in one there
|
|
107
|
+
* (`DECLARE_BOX`): no resource whose type meets the `sandbox` contract.
|
|
46
108
|
*/
|
|
47
|
-
export const
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
109
|
+
export const boxless = (config: Pick<AppConfig, "place" | "resources" | "resourceTypes">) =>
|
|
110
|
+
config.place === "live" &&
|
|
111
|
+
!config.resources.some((r) =>
|
|
112
|
+
config.resourceTypes.find((t) => t.id === `${r.vendor}.${r.type}`)?.capabilities?.includes("sandbox"),
|
|
113
|
+
);
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* The engines a chat can open on here, in `enginesOf`'s order: on a live instance, no coding
|
|
117
|
+
* agent while it declares no box (`boxless`), and no own plan whose sign-in runs once on the
|
|
118
|
+
* person's computer. A turn on any other fails, saying why.
|
|
119
|
+
*/
|
|
120
|
+
export function enginesHere(config: AppConfig): EngineOption[] {
|
|
121
|
+
const live = config.place === "live";
|
|
122
|
+
const box = !boxless(config);
|
|
123
|
+
return enginesOf(config.agents).filter((e) => e.agent === "loop" || (box && !(live && e.once)));
|
|
124
|
+
}
|
|
60
125
|
|
|
61
126
|
/** Whether an engine answers on the company's model connector (`chatModel`): our loop; a coding agent says what it lacks itself. */
|
|
62
127
|
export const onModelConnector = (engine: string) => engine === "loop";
|
|
@@ -71,11 +136,17 @@ export function pathOf(input: unknown): string | undefined {
|
|
|
71
136
|
return path as string | undefined;
|
|
72
137
|
}
|
|
73
138
|
|
|
74
|
-
/**
|
|
75
|
-
|
|
139
|
+
/**
|
|
140
|
+
* What a reply suggests the person ask next, the `data-suggestions` part (by the id `suggestions`)
|
|
141
|
+
* every engine's reply gets from the asks its text ends with (`suggestedAsks`): each worded as the
|
|
142
|
+
* person would type it, which the chat shows as a button that sends it.
|
|
143
|
+
*/
|
|
144
|
+
export interface Suggestions {
|
|
145
|
+
asks: string[];
|
|
146
|
+
}
|
|
76
147
|
|
|
77
148
|
/** The data parts of a chat message, by name: `data-<name>`. */
|
|
78
|
-
export type ChatData = { draft: DraftCard; signIn: SignInCard };
|
|
149
|
+
export type ChatData = { draft: DraftCard; signIn: SignInCard; suggestions: Suggestions };
|
|
79
150
|
|
|
80
151
|
/**
|
|
81
152
|
* A message of the operator agent's chat: our loop's tools typed (`InferAgentUIMessage` of its
|
|
@@ -112,6 +183,15 @@ export function errorParts(text: string): { text: string; vendor?: string } {
|
|
|
112
183
|
return found ? { text: text.slice(0, found.index), vendor: found[1]! } : { text };
|
|
113
184
|
}
|
|
114
185
|
|
|
186
|
+
/**
|
|
187
|
+
* Whether a message is the cue for the agent to speak first (`POST /api/chat`'s `start`): the
|
|
188
|
+
* app's own, kept in the transcript as the turn's message but never shown.
|
|
189
|
+
*/
|
|
190
|
+
export const isIntro = (message: UIMessage) => (message.metadata as { intro?: unknown } | undefined)?.intro === true;
|
|
191
|
+
|
|
192
|
+
/** Whether the person has written in a chat: a message of theirs that is not the agent's cue (`isIntro`). */
|
|
193
|
+
export const written = (messages: UIMessage[]) => messages.some((m) => m.role === "user" && !isIntro(m));
|
|
194
|
+
|
|
115
195
|
/** A message's text, its text parts joined by `separator`. */
|
|
116
196
|
export const textOf = (message: UIMessage, separator = "\n\n") =>
|
|
117
197
|
message.parts
|
|
@@ -119,6 +199,13 @@ export const textOf = (message: UIMessage, separator = "\n\n") =>
|
|
|
119
199
|
.map((part) => part.text)
|
|
120
200
|
.join(separator);
|
|
121
201
|
|
|
202
|
+
/** Whether a turn is under way. */
|
|
203
|
+
export const isBusy = (status: ChatStatus) => status === "submitted" || status === "streaming";
|
|
204
|
+
|
|
205
|
+
/** What a reply suggests the person ask next: its last `data-suggestions` part's asks, else none. */
|
|
206
|
+
export const suggestionsOf = (message: ChatMessage): string[] =>
|
|
207
|
+
message.parts.findLast((part) => part.type === "data-suggestions")?.data.asks ?? [];
|
|
208
|
+
|
|
122
209
|
/**
|
|
123
210
|
* A part a turn left under way: text still streaming, a tool call without its result, or a held
|
|
124
211
|
* lookup's preliminary output. The chat offers Continue after one; the server settles it (`settle`).
|
|
@@ -134,13 +221,14 @@ export const unfinished = (part: UIMessage["parts"][number]): boolean =>
|
|
|
134
221
|
* The chat's transport to `POST /api/chat` (`api`), as the chat column makes it: only the new
|
|
135
222
|
* message is sent, the server reading the rest from the chat's transcript, with the engine a new
|
|
136
223
|
* chat opens on when the send names one (`sendMessage(message, { body: { engine } })`; a chat
|
|
137
|
-
* keeps the one it opened on)
|
|
224
|
+
* keeps the one it opened on), and `start` when the message is the agent's cue to speak first
|
|
225
|
+
* (`sendMessage({ text: "", metadata: { intro: true } }, { body: { engine, start: true } })`).
|
|
138
226
|
*/
|
|
139
227
|
export const chatTransport = (api: string, headers: () => Record<string, string>) =>
|
|
140
228
|
new DefaultChatTransport<ChatMessage>({
|
|
141
229
|
api,
|
|
142
230
|
headers,
|
|
143
231
|
prepareSendMessagesRequest: ({ id, messages, body }) => ({
|
|
144
|
-
body: { id, message: messages.at(-1), engine: body?.engine },
|
|
232
|
+
body: { id, message: messages.at(-1), engine: body?.engine, start: body?.start },
|
|
145
233
|
}),
|
|
146
234
|
});
|
package/app/src/lib/cn-tables.ts
CHANGED
|
@@ -25,11 +25,11 @@ const DZ = (s: string): Int32Array => {
|
|
|
25
25
|
}
|
|
26
26
|
return out
|
|
27
27
|
}
|
|
28
|
-
const GROUP_COUNT =
|
|
28
|
+
const GROUP_COUNT = 192
|
|
29
29
|
const customValidatorNames: string[] = []
|
|
30
|
-
const edgeStart = PS(U("
|
|
31
|
-
const labelStart = PS(U(":111141115111111191146581131;
|
|
32
|
-
const labelText = "@containerabcdeasefghinsetlmoprstunderlinewzlignnimatespectuto-rowsaglurockdrop-blursisrderttom-
|
|
30
|
+
const edgeStart = PS(U("D0400004200002160000000221200200020003200002120021200001300022002100:20100020000000030200060000002200301300012005202012002000200030020202001000"))
|
|
31
|
+
const labelStart = PS(U(":111141115111111191146581131;34411117111512234337723313211112214411111152226311311111111711616341111111132451111123411354343324444113225255117"))
|
|
32
|
+
const labelText = "@containerabcdeasefghinsetlmoprstunderlinewzlignnimatespectuto-rowsaglurockdrop-blursisrderttom-blrspacingtyoursorlnt-spantartainentivide-yurationillexontlterapr-xyidow-colsrows-sxyeiadingftnest-clampax-bein-lrstxyhw-screenhwpacityrutlinederiginblrtxyioghtngtateundedw-brt-spantartchizepace-tartaleroll-mtbar-thumbrackadowrinkxyextoprackingnsitionlate-xy-offset"
|
|
33
33
|
// pre-order tree: targets derived from edge counts via subtree sizes
|
|
34
34
|
const edgeTarget = (() => {
|
|
35
35
|
const N = edgeStart.length - 1
|
|
@@ -48,21 +48,21 @@ const edgeTarget = (() => {
|
|
|
48
48
|
}
|
|
49
49
|
return out
|
|
50
50
|
})()
|
|
51
|
-
const nodeGroup = U("020000000700:0;0=>?
|
|
51
|
+
const nodeGroup = U("020000000700:0;0=>?0AB000000000000I00000M0000000000V000000000000000000b0000000000000000p0000000000z00}0~0000000000000000000000000000§000", 1)
|
|
52
52
|
// vlists = op-pattern pool + per-list refs; the engine indexes these directly
|
|
53
53
|
const vlistPat = PS(U("1233353634333535136"))
|
|
54
54
|
const vlistOps = U("932423325832483250325B:0325B:4325632532542H<C=153;8432588GA8B:032")
|
|
55
|
-
const vlistRef = U("011123456478883889
|
|
56
|
-
const vlistGroup = DZ("
|
|
55
|
+
const vlistRef = U("011123456478883889::1118;161<=333::;9999939>139?@339?333333;:17333333397;4444::;366A;933B91199;?:")
|
|
56
|
+
const vlistGroup = DZ("02020202002002002000020020020020020020020020020020020002002002020202002002020020200202002002002002002002002000200020002000200020020002002020020002000002002002000200002002002002002002002002002020020020020020020020020020020002002002002002002002002002002002002002002002002000200200200200200020202000200020020000200")
|
|
57
57
|
// nodeVlist rebuilt sparse: (anchor deltas, vlist ids)
|
|
58
58
|
const nodeVlist = (() => {
|
|
59
|
-
const out = new Int32Array(
|
|
60
|
-
const A = DZ("
|
|
61
|
-
const V = DZ("
|
|
59
|
+
const out = new Int32Array(143).fill(-1)
|
|
60
|
+
const A = DZ("0242226222442222226424224226222442822224226262242222422222224422222222262424222426462422422424442422")
|
|
61
|
+
const V = DZ("02222222222222222220222222222222222222222222222222222222222222222222222222222220222222222222222222")
|
|
62
62
|
for (let i = 0; i < A.length; i++) out[A[i]!] = V[i]!
|
|
63
63
|
return out
|
|
64
64
|
})()
|
|
65
|
-
const SETS = " block contents flow-root hidden inline inline-block inline-flex inline-grid inline-table table table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group| not-sr-only sr-only|isolat e ion-auto|object- contain cover fill none scale-down|overflow- auto clip hidden scroll visible|overflow-x- auto clip hidden scroll visible|overflow-y- auto clip hidden scroll visible| absolute fixed relative static sticky| collapse invisible visible|justify- around baseline between center center-safe end end-safe evenly normal start stretch|justify-self- auto center center-safe end end-safe start stretch|items- baseline baseline-last center center-safe end end-safe start stretch|self- auto baseline baseline-last center center-safe end end-safe start stretch|place-content- around baseline between center center-safe end end-safe evenly start stretch| italic not-italic| proportional-nums tabular-nums| no-underline overline|truncate |whitespace- break-spaces normal nowrap pre pre-line pre-wrap|break- all keep normal words|wrap- anywhere break-word normal|mix-blend- color color-burn color-dodge darken difference exclusion hard-light hue lighten luminosity multiply normal overlay plus-darker plus-lighter saturation screen soft-light|table- auto fixed|caption- bottom top|appearance- auto none|field-sizing- content fixed|pointer-events- auto none|resize -none -x -y|touch- auto manipulation none|select- all auto none text| normal size| baseline bottom middle sub super text-bottom text-top top| bounce none ping pulse spin| auto square video| auto fr max min px|none | auto full px|clip- border content padding text|blend- color color-burn color-dodge darken difference exclusion hard-light hue lighten luminosity multiply normal overlay saturation screen soft-light| dashed dotted double hidden none solid| collapse separate|px |auto | alias all-scroll auto cell col-resize context-menu copy crosshair default e-resize ew-resize grab grabbing help move n-resize ne-resize nesw-resize no-drop none not-allowed ns-resize nw-resize nwse-resize pointer progress row-resize s-resize se-resize sw-resize text vertical-text w-resize wait zoom-in zoom-out|initial | in in-out initial linear out| col col-reverse row row-reverse| nowrap wrap wrap-reverse| auto initial none| black bold extrabold extralight light medium normal semibold thin| none subgrid| auto dvh dvw fit full lh lvh lvw max min px screen svh svw| loose none normal px relaxed snug tight|through |item | decimal disc none| auto px| auto dvh dvw fit full lh lvh lvw max min none px screen svh svw| auto dvh dvw fit full lvh lvw max min none prose px svh svw| auto dvh dvw fit full lvh lvw max min none px screen svh svw| first last none| bottom bottom-left bottom-right center left left-bottom left-top right right-bottom right-top top top-left top-right|inset | 2xl 3xl 4xl full lg md none sm xl|
|
|
65
|
+
const SETS = " block contents flow-root hidden inline inline-block inline-flex inline-grid inline-table table table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group| not-sr-only sr-only|isolat e ion-auto|object- contain cover fill none scale-down|overflow- auto clip hidden scroll visible|overflow-x- auto clip hidden scroll visible|overflow-y- auto clip hidden scroll visible|overscroll- auto contain none| absolute fixed relative static sticky| collapse invisible visible|justify- around baseline between center center-safe end end-safe evenly normal start stretch|justify-self- auto center center-safe end end-safe start stretch|items- baseline baseline-last center center-safe end end-safe start stretch|self- auto baseline baseline-last center center-safe end end-safe start stretch|place-content- around baseline between center center-safe end end-safe evenly start stretch| italic not-italic| proportional-nums tabular-nums| no-underline overline|truncate |whitespace- break-spaces normal nowrap pre pre-line pre-wrap|break- all keep normal words|wrap- anywhere break-word normal|mix-blend- color color-burn color-dodge darken difference exclusion hard-light hue lighten luminosity multiply normal overlay plus-darker plus-lighter saturation screen soft-light|table- auto fixed|caption- bottom top|appearance- auto none|field-sizing- content fixed|pointer-events- auto none|resize -none -x -y|touch- auto manipulation none|select- all auto none text| normal size| baseline bottom middle sub super text-bottom text-top top| bounce none ping pulse spin| auto square video| auto fr max min px|none | auto full px|clip- border content padding text|blend- color color-burn color-dodge darken difference exclusion hard-light hue lighten luminosity multiply normal overlay saturation screen soft-light| dashed dotted double hidden none solid| collapse separate|px |auto |full | content none strict| around baseline between center center-safe end end-safe evenly normal start stretch| alias all-scroll auto cell col-resize context-menu copy crosshair default e-resize ew-resize grab grabbing help move n-resize ne-resize nesw-resize no-drop none not-allowed ns-resize nw-resize nwse-resize pointer progress row-resize s-resize se-resize sw-resize text vertical-text w-resize wait zoom-in zoom-out|initial | in in-out initial linear out| col col-reverse row row-reverse| nowrap wrap wrap-reverse| auto initial none| black bold extrabold extralight light medium normal semibold thin| none subgrid| auto dvh dvw fit full lh lvh lvw max min px screen svh svw| loose none normal px relaxed snug tight|through |item | decimal disc none| auto px| auto dvh dvw fit full lh lvh lvw max min none px screen svh svw| auto dvh dvw fit full lvh lvw max min none prose px svh svw| auto dvh dvw fit full lvh lvw max min none px screen svh svw| first last none| bottom bottom-left bottom-right center left left-bottom left-top right right-bottom right-top top top-left top-right|inset | 2xl 3xl 4xl full lg md none sm xl|gutter- auto both stable| auto none thin| inner none| auto dvh dvw fit full lvh lvw max min px svh svw| bar base reply| center end justify left right start| clip ellipsis| balance nowrap pretty wrap| normal tight tighter wide wider widest| all colors none opacity shadow transform| full px| auto dvh dvw fit full lvh lvw max min px screen svh svw".split('|').map((s) => {
|
|
66
66
|
const tails = s.split(' ')
|
|
67
67
|
const prefix = tails.shift()!
|
|
68
68
|
for (let i = 0; i < tails.length; i++) {
|
|
@@ -70,14 +70,14 @@ const SETS = " block contents flow-root hidden inline inline-block inline-flex i
|
|
|
70
70
|
}
|
|
71
71
|
return tails
|
|
72
72
|
})
|
|
73
|
-
const AA = DZ("
|
|
74
|
-
const AG = DZ("
|
|
75
|
-
const AS = DZ("
|
|
76
|
-
const litAnchor = new Int32Array(
|
|
77
|
-
const litGroup = new Int32Array(
|
|
78
|
-
const litPool = new Int32Array(
|
|
73
|
+
const AA = DZ("0000000000000000000000000000000242226220240:664242026262200244282424226242202424242222222822222222262424222426420:4422400024442422")
|
|
74
|
+
const AG = DZ("ú222222222222222222222222222222ij222222Ī2ħĪ2ğ620222Ĕđ4222Ċ2ĉ2422224222222ÄÁ 222222222222242ÊÃ2222222¸±222220222¤2422_b2222222")
|
|
75
|
+
const AS = DZ("022222222222222222222222222222222222222258229<214AD222I0L222E00H02S000VUXY\\2222302450000082a40000009jkn000_21=<d222i09v222{~220uxw")
|
|
76
|
+
const litAnchor = new Int32Array(572)
|
|
77
|
+
const litGroup = new Int32Array(572)
|
|
78
|
+
const litPool = new Int32Array(572)
|
|
79
79
|
let poolText = ''
|
|
80
|
-
const poolOffsets = new Int32Array(
|
|
80
|
+
const poolOffsets = new Int32Array(660)
|
|
81
81
|
{
|
|
82
82
|
const tailRef = new Map()
|
|
83
83
|
let nextRef = 0
|
|
@@ -100,11 +100,11 @@ const poolOffsets = new Int32Array(632)
|
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
// conflict adjacency (engine builds claim bitmask CSR at init)
|
|
103
|
-
const adjGid = DZ("
|
|
104
|
-
const adjStart = PS(U("1::
|
|
105
|
-
const adjTgt = DZ("2
|
|
106
|
-
const patGid = U("
|
|
107
|
-
const patTgt = U("
|
|
103
|
+
const adjGid = DZ("0D2848@6>4264F2<:2:222B6L6BJ")
|
|
104
|
+
const adjStart = PS(U("1::24432:442:44:44>222212213"))
|
|
105
|
+
const adjTgt = DZ("2ƂšŤ222ū332Ŵ222222222O282ū7Ɛ222Ɵl2>2Ă2ćĊYd7ĊÉgþ2ÅÖ8259þ2ó3984981ø2ó=X2Î222×132Ö2Õ1Ú2×5æ2Í11Ô22222222123232³©:®2|2Dj22")
|
|
106
|
+
const patGid = U("")
|
|
107
|
+
const patTgt = U("[")
|
|
108
108
|
const postfixLookupGroups = U("1")
|
|
109
109
|
const orderSensitiveModifiers = "* ** after backdrop before details-content file first-letter first-line marker placeholder selection"
|
|
110
110
|
export default {
|