@lobu/runtime-server 21.1.0 → 21.2.1
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/dist/catalogs/connectors.json +2 -35
- package/dist/component.json +1 -1
- package/dist/connectors/README.md +6 -3
- package/dist/connectors/github.ts +0 -6
- package/dist/connectors/google_calendar.ts +0 -4
- package/dist/connectors/google_drive.ts +0 -2
- package/dist/connectors/google_gmail.ts +0 -6
- package/dist/connectors/market_quotes.ts +0 -1
- package/dist/connectors/microsoft_outlook.ts +0 -2
- package/dist/connectors/postgres.ts +68 -3
- package/dist/connectors/whatsapp_web.ts +2 -8
- package/dist/connectors/x.ts +3 -9
- package/dist/connectors/youtube.ts +0 -5
- package/dist/db/migrations/20260930010000_connector_policy_scopes.sql +113 -0
- package/dist/db/migrations/20261002230000_connector_exact_policy_target.sql +36 -0
- package/dist/db/migrations/20261003120000_source_backed_entity_identity.sql +109 -0
- package/dist/db/migrations/20261003200000_drop_source_backed_entity_identity.sql +111 -0
- package/dist/db/migrations/preconditions/20261002230000_connector_exact_policy_target.sql +38 -0
- package/dist/db/migrations/preconditions/20261003200000_drop_source_backed_entity_identity.sql +21 -0
- package/dist/dependencies.bun.lock +52 -54
- package/dist/owletto/dist/assets/_-CLhipgJI.js +1 -0
- package/dist/owletto/dist/assets/_-D0ZVGAIA.js +2 -0
- package/dist/owletto/dist/assets/_agentId-BLXUf3ot.js +1 -0
- package/dist/owletto/dist/assets/_agentId-DnI66MF3.js +1 -0
- package/dist/owletto/dist/assets/_automationId-ziwseLb7.js +1 -0
- package/dist/owletto/dist/assets/_connectorKey._connectionId-B6V3ySFK.js +1 -0
- package/dist/owletto/dist/assets/_connectorKey.index-CR5u_dtt.js +1 -0
- package/dist/owletto/dist/assets/{_conversationId-CpuEvflw.js → _conversationId-FBMYmOl8.js} +1 -1
- package/dist/owletto/dist/assets/{_deploymentId-BL9tnDFl.js → _deploymentId-DNTXbT_m.js} +1 -1
- package/dist/owletto/dist/assets/_name-B37LKIxH.js +1 -0
- package/dist/owletto/dist/assets/_owner-BxYumqC2.js +1 -0
- package/dist/owletto/dist/assets/_shape-Bxz-04jR.js +1 -0
- package/dist/owletto/dist/assets/_skillKey-D5MFbiw2.js +1 -0
- package/dist/owletto/dist/assets/_slug-Dlhit09k.js +1 -0
- package/dist/owletto/dist/assets/_viewKey-C6535i-t.js +1 -0
- package/dist/owletto/dist/assets/_viewKey-CQCtY3Y8.js +1 -0
- package/dist/owletto/dist/assets/_viewKey-CxKfKbRa.js +1 -0
- package/dist/owletto/dist/assets/accept-invitation-BQQwec3R.js +1 -0
- package/dist/owletto/dist/assets/activity-route-view-BwThvdGs.js +1 -0
- package/dist/owletto/dist/assets/{agent-card-controls-bhTMPoVi.js → agent-card-controls-B3RhzsPz.js} +1 -1
- package/dist/owletto/dist/assets/{agent-client-setup-list-BBbq_2B1.js → agent-client-setup-list-BFtgRwe8.js} +1 -1
- package/dist/owletto/dist/assets/agent-connect-pages-BO4wQn4L.js +1 -0
- package/dist/owletto/dist/assets/agent-editor-form-BYC4uSNz.js +1 -0
- package/dist/owletto/dist/assets/agent-guardrails-route-Dp02G1AQ.js +1 -0
- package/dist/owletto/dist/assets/{agent-loading-shells-BQLjzMPy.js → agent-loading-shells-OagauQzV.js} +1 -1
- package/dist/owletto/dist/assets/agent-permissions-matrix-B9Ho3P1t.js +1 -0
- package/dist/owletto/dist/assets/{agent-skill-context-s42Q4Wjo.js → agent-skill-context-BAr2Dw3F.js} +1 -1
- package/dist/owletto/dist/assets/agent-skills-route-B4VUnVi0.js +1 -0
- package/dist/owletto/dist/assets/agent-subpage-shell-Dz8I-GUt.js +1 -0
- package/dist/owletto/dist/assets/agent-thread-B9-cdkaV.js +8 -0
- package/dist/owletto/dist/assets/agents-D0CIg4b9.js +1 -0
- package/dist/owletto/dist/assets/agents-workbench-C2sr5h82.js +1 -0
- package/dist/owletto/dist/assets/{app._appId-CqYz3AOO.js → app._appId-DLsJ_QWS.js} +1 -1
- package/dist/owletto/dist/assets/automation-detail-content-9Rjb_I9j.js +1 -0
- package/dist/owletto/dist/assets/automations-D0CIg4b9.js +1 -0
- package/dist/owletto/dist/assets/{calendar-CHXehtu0.js → calendar-DAiyi1ZL.js} +1 -1
- package/dist/owletto/dist/assets/callback-CaRe2TOT.js +1 -0
- package/dist/owletto/dist/assets/{card-4Ull9W6d.js → card-CMmh2mzo.js} +1 -1
- package/dist/owletto/dist/assets/{claim-BGLCPLXq.js → claim-CYHnUF7G.js} +1 -1
- package/dist/owletto/dist/assets/{clients-C7ubnFsS.js → clients-Cp1BJ28u.js} +1 -1
- package/dist/owletto/dist/assets/{code-editor-BHiWR94J.js → code-editor-CYsR2VBP.js} +1 -1
- package/dist/owletto/dist/assets/connect-CZip2g_B.js +1 -0
- package/dist/owletto/dist/assets/connect._clientId-CEKY8Dnv.js +1 -0
- package/dist/owletto/dist/assets/connected._clientId-C5xRjxNO.js +1 -0
- package/dist/owletto/dist/assets/connection-C06HZ241.js +1 -0
- package/dist/owletto/dist/assets/connection-feed-detail-D1whY5hL.js +1 -0
- package/dist/owletto/dist/assets/{connector-provenance-DRdUEmQ1.js → connector-provenance-BjKiUhYE.js} +1 -1
- package/dist/owletto/dist/assets/connectors-Baejya0T.js +1 -0
- package/dist/owletto/dist/assets/{consent-fmhPPlpi.js → consent-CfYDldcF.js} +1 -1
- package/dist/owletto/dist/assets/{core.esm-C-eNiUAl.js → core.esm-QA7BQgiK.js} +1 -1
- package/dist/owletto/dist/assets/create-C3P-3_8O.js +1 -0
- package/dist/owletto/dist/assets/create-CwnrPUEw.js +1 -0
- package/dist/owletto/dist/assets/create-DOScS9Gl.js +1 -0
- package/dist/owletto/dist/assets/create-automation-form-CuxiIRCF.js +2 -0
- package/dist/owletto/dist/assets/{create._connectorKey-CHAotlsF.js → create._connectorKey-Bjv3lCf8.js} +1 -1
- package/dist/owletto/dist/assets/{cronstrue-C5yTgk5z.js → cronstrue-2GHCtD7h.js} +1 -1
- package/dist/owletto/dist/assets/{deployments-D1gbQwsy.js → deployments-ByBv1DW-.js} +1 -1
- package/dist/owletto/dist/assets/deployments-C-_ECORv.js +1 -0
- package/dist/owletto/dist/assets/{deployments-body-DycIGlnL.js → deployments-body-Bm2upStd.js} +1 -1
- package/dist/owletto/dist/assets/{device-DyPnQkhO.js → device-B0i7Xp8y.js} +1 -1
- package/dist/owletto/dist/assets/device-pin-tombstone-Bd6vS2zu.js +1 -0
- package/dist/owletto/dist/assets/device-rows-Bwf8qDte.js +1 -0
- package/dist/owletto/dist/assets/device._deviceId-DJLAesm3.js +1 -0
- package/dist/owletto/dist/assets/entity-options-CrbS6K-i.js +1 -0
- package/dist/owletto/dist/assets/entity-page-ijZe_1-6.js +1 -0
- package/dist/owletto/dist/assets/entity-type-page-onp2Tk_E.js +1 -0
- package/dist/owletto/dist/assets/event-page-C0B2UDY-.js +1 -0
- package/dist/owletto/dist/assets/events-feed-DK35T4g7.js +1 -0
- package/dist/owletto/dist/assets/{full-page-spinner-DsU-Cb3L.js → full-page-spinner-Dd8eEaxq.js} +1 -1
- package/dist/owletto/dist/assets/guardrails-DKO8_J-G.js +1 -0
- package/dist/owletto/dist/assets/identity-CKM54vrM.js +1 -0
- package/dist/owletto/dist/assets/index--VmN5WxW.js +1 -0
- package/dist/owletto/dist/assets/{index-DtRfQcRH.js → index-B2AmRqYh.js} +1595 -1595
- package/dist/owletto/dist/assets/{index-DwtfHCHB.js → index-B_rcEgFX.js} +1 -1
- package/dist/owletto/dist/assets/index-BmAuAhub.css +1 -0
- package/dist/owletto/dist/assets/index-BmhGe6-Z.js +1 -0
- package/dist/owletto/dist/assets/index-C1dJSGrL.js +1 -0
- package/dist/owletto/dist/assets/index-CAFw4qCb.js +1 -0
- package/dist/owletto/dist/assets/{index-1YrrvVJ4.js → index-CCcc_xBw.js} +8 -8
- package/dist/owletto/dist/assets/index-CLU3gXVm.js +1 -0
- package/dist/owletto/dist/assets/{index-D2dcENg2.js → index-Cf0GJoiG.js} +1 -1
- package/dist/owletto/dist/assets/index-CqQVnAY-.js +1 -0
- package/dist/owletto/dist/assets/{index-nOYvNROJ.js → index-CxT0uyIe.js} +1 -1
- package/dist/owletto/dist/assets/index-DR08e6Ec.js +1 -0
- package/dist/owletto/dist/assets/index-DYb9L5FC.js +1 -0
- package/dist/owletto/dist/assets/{index-CpWKAAGX.js → index-DlepU3cY.js} +1 -1
- package/dist/owletto/dist/assets/index-SUUcQGT-.js +1 -0
- package/dist/owletto/dist/assets/index-SdiFOfR1.js +1 -0
- package/dist/owletto/dist/assets/index-zcfi5r1l.js +1 -0
- package/dist/owletto/dist/assets/{json-diff-DYeX-xLk.js → json-diff-ClBBYBQD.js} +3 -3
- package/dist/owletto/dist/assets/{list-skeleton-s4GPSJ8J.js → list-skeleton-BtWn2eo2.js} +1 -1
- package/dist/owletto/dist/assets/login-d3PdO-qV.js +1 -0
- package/dist/owletto/dist/assets/logout-DgckxwLn.js +1 -0
- package/dist/owletto/dist/assets/member-scope-gate-DXOCfx-v.js +1 -0
- package/dist/owletto/dist/assets/{memory-browse-page-Bibfs2sK.js → memory-browse-page-CeAnKoTR.js} +1 -1
- package/dist/owletto/dist/assets/{missing-view-CD4DOaG8.js → missing-view-DrZ8m8yo.js} +1 -1
- package/dist/owletto/dist/assets/{model-selector-XC5CI2Et.js → model-selector-CapL1ARf.js} +1 -1
- package/dist/owletto/dist/assets/models-CB8mhq7j.js +1 -0
- package/dist/owletto/dist/assets/new-BBUb-VR4.js +1 -0
- package/dist/owletto/dist/assets/new-CBLJ25_w.js +1 -0
- package/dist/owletto/dist/assets/new-tTXB4qBW.js +1 -0
- package/dist/owletto/dist/assets/{oauth-workspace-access-D6epOq0R.js → oauth-workspace-access-DearynqZ.js} +1 -1
- package/dist/owletto/dist/assets/organization-BgdBg-PJ.js +1 -0
- package/dist/owletto/dist/assets/{permissions-D8uJHINS.js → permissions-h_qSft1A.js} +1 -1
- package/dist/owletto/dist/assets/{proposal-review-shell-C3K-JXjb.js → proposal-review-shell-D4YNrrye.js} +1 -1
- package/dist/owletto/dist/assets/{recent-CFcWceBl.js → recent-JiBNvZzD.js} +1 -1
- package/dist/owletto/dist/assets/{renderer-1nRJFMGx.js → renderer-DgPLyEbx.js} +1 -1
- package/dist/owletto/dist/assets/{reset-password-9RTWhBEb.js → reset-password-B8tWPtIj.js} +1 -1
- package/dist/owletto/dist/assets/runs-oHveuEUB.js +1 -0
- package/dist/owletto/dist/assets/{runs-panel-B2852xus.js → runs-panel-C56GDaJm.js} +1 -1
- package/dist/owletto/dist/assets/runs-table-BUKDjiBc.js +1 -0
- package/dist/owletto/dist/assets/{schema-value-normalization-BspxVEGy.js → schema-value-normalization-3JuM_r1H.js} +1 -1
- package/dist/owletto/dist/assets/settings-DaKg6U5O.js +1 -0
- package/dist/owletto/dist/assets/{settings-9lDASETT.js → settings-DhnRi2nq.js} +1 -1
- package/dist/owletto/dist/assets/skills-BpQncuMC.js +1 -0
- package/dist/owletto/dist/assets/{switch-CxDXvPGE.js → switch-BQ40_DMb.js} +1 -1
- package/dist/owletto/dist/assets/{use-applied-views-DvMT3wap.js → use-applied-views-B-Z-Weji.js} +1 -1
- package/dist/owletto/dist/assets/{use-mention-search-CeTEE3oE.js → use-mention-search-B4DfZFm5.js} +1 -1
- package/dist/owletto/dist/assets/{view-frame-HoBawpT2.js → view-frame-C7ciEoLo.js} +1 -1
- package/dist/owletto/dist/index.html +2 -2
- package/dist/server-main.bundle.mjs +7827 -7972
- package/npm-shrinkwrap.json +198 -207
- package/package.json +1 -1
- package/vendor/connector-sdk/dist/connector-runtime.d.ts +1 -1
- package/vendor/connector-sdk/dist/connector-runtime.js +1 -1
- package/vendor/connector-sdk/dist/connector-types.d.ts +14 -2
- package/vendor/connector-sdk/dist/define-connector.d.ts +3 -5
- package/vendor/connector-sdk/dist/define-connector.js +1 -1
- package/vendor/connector-sdk/dist/device-manifest.d.ts +0 -1
- package/vendor/connector-sdk/dist/extension-network.js +1 -2
- package/vendor/connector-sdk/package.json +1 -1
- package/vendor/core/dist/contracts/agent-settings.d.ts +0 -1
- package/vendor/core/dist/contracts/agent-settings.js +0 -1
- package/vendor/core/dist/contracts/tools/manage-classifiers.d.ts +6 -6
- package/vendor/core/dist/contracts/tools/manage-classifiers.js +4 -6
- package/vendor/core/dist/contracts/tools/manage-connections.d.ts +0 -1
- package/vendor/core/dist/contracts/tools/manage-connections.js +3 -4
- package/vendor/core/dist/contracts/tools/manage-entity.d.ts +2 -2
- package/vendor/core/dist/contracts/tools/manage-entity.js +4 -2
- package/vendor/core/dist/logger.js +13 -2
- package/vendor/core/dist/worker/wire.d.ts +1 -6
- package/vendor/core/dist/worker/wire.js +1 -1
- package/vendor/core/package.json +1 -1
- package/vendor/views/dist/api.d.ts +42 -5
- package/vendor/views/dist/api.js +63 -6
- package/vendor/views/package.json +6 -1
- package/dist/owletto/dist/assets/_-00GgOtdu.js +0 -1
- package/dist/owletto/dist/assets/_-XlUwOWCI.js +0 -2
- package/dist/owletto/dist/assets/_agentId-B2DrawIk.js +0 -1
- package/dist/owletto/dist/assets/_agentId-CS0AcWH2.js +0 -1
- package/dist/owletto/dist/assets/_automationId-BLnqLtUv.js +0 -1
- package/dist/owletto/dist/assets/_connectorKey._connectionId-DcUWoZ-C.js +0 -1
- package/dist/owletto/dist/assets/_connectorKey.index-C_yKycN_.js +0 -1
- package/dist/owletto/dist/assets/_name-DlxjWkKk.js +0 -1
- package/dist/owletto/dist/assets/_owner-Cg50UU6m.js +0 -1
- package/dist/owletto/dist/assets/_shape-BWZW4mj8.js +0 -1
- package/dist/owletto/dist/assets/_skillKey-B25fO0_O.js +0 -1
- package/dist/owletto/dist/assets/_slug-DbD-wv2m.js +0 -1
- package/dist/owletto/dist/assets/_viewKey-BcTEvQ3N.js +0 -1
- package/dist/owletto/dist/assets/_viewKey-W4RjiUWL.js +0 -1
- package/dist/owletto/dist/assets/_viewKey-iGPCKSda.js +0 -1
- package/dist/owletto/dist/assets/accept-invitation-BmQKbQem.js +0 -1
- package/dist/owletto/dist/assets/activity-route-view-BvtAoGVt.js +0 -1
- package/dist/owletto/dist/assets/agent-connect-pages-DkDlFVY5.js +0 -1
- package/dist/owletto/dist/assets/agent-editor-form-DwHD9j1Y.js +0 -1
- package/dist/owletto/dist/assets/agent-guardrails-route-0PsTrqMC.js +0 -1
- package/dist/owletto/dist/assets/agent-permissions-matrix-B-Q5rmuB.js +0 -1
- package/dist/owletto/dist/assets/agent-skills-route-Cwq1QrhW.js +0 -1
- package/dist/owletto/dist/assets/agent-subpage-shell-DtzoRy6N.js +0 -1
- package/dist/owletto/dist/assets/agent-thread-D7AGGjRV.js +0 -8
- package/dist/owletto/dist/assets/agents-BqCKU4CT.js +0 -1
- package/dist/owletto/dist/assets/agents-workbench-Cl7FO7b3.js +0 -1
- package/dist/owletto/dist/assets/automation-detail-content-CKSywvzE.js +0 -1
- package/dist/owletto/dist/assets/automations-BqCKU4CT.js +0 -1
- package/dist/owletto/dist/assets/callback-DZ3YyXeV.js +0 -1
- package/dist/owletto/dist/assets/connect-BNatqg6j.js +0 -1
- package/dist/owletto/dist/assets/connect._clientId-BGG2IqiQ.js +0 -1
- package/dist/owletto/dist/assets/connected._clientId-7RU89sVW.js +0 -1
- package/dist/owletto/dist/assets/connection-CTaUGXl6.js +0 -1
- package/dist/owletto/dist/assets/connection-feed-detail-B1xieiEh.js +0 -1
- package/dist/owletto/dist/assets/connectors-NBwCLuZg.js +0 -1
- package/dist/owletto/dist/assets/create-8bBbQJGY.js +0 -1
- package/dist/owletto/dist/assets/create-Cl6cfNAp.js +0 -1
- package/dist/owletto/dist/assets/create-DrVso8O7.js +0 -1
- package/dist/owletto/dist/assets/create-automation-form-De8J-JD5.js +0 -2
- package/dist/owletto/dist/assets/deployments-C7M3fV5K.js +0 -1
- package/dist/owletto/dist/assets/device-pin-tombstone-CwJitllC.js +0 -1
- package/dist/owletto/dist/assets/device-rows-BBhW1C7Y.js +0 -1
- package/dist/owletto/dist/assets/device._deviceId-XswfXHOc.js +0 -1
- package/dist/owletto/dist/assets/entity-options-utGBmFX0.js +0 -1
- package/dist/owletto/dist/assets/entity-page-BxwuqqWk.js +0 -1
- package/dist/owletto/dist/assets/entity-type-page-BrWqk6so.js +0 -1
- package/dist/owletto/dist/assets/event-page-LIm4EDmJ.js +0 -1
- package/dist/owletto/dist/assets/events-feed-C4L8mQV7.js +0 -1
- package/dist/owletto/dist/assets/guardrails-CGFWCfbQ.js +0 -1
- package/dist/owletto/dist/assets/identity-uPYpPogR.js +0 -1
- package/dist/owletto/dist/assets/index-BKMafTe4.js +0 -1
- package/dist/owletto/dist/assets/index-BsL1-C2-.js +0 -1
- package/dist/owletto/dist/assets/index-C58oW727.js +0 -1
- package/dist/owletto/dist/assets/index-C8CR2-Ck.css +0 -1
- package/dist/owletto/dist/assets/index-CQ4s6nzy.js +0 -1
- package/dist/owletto/dist/assets/index-DCK0KhMM.js +0 -1
- package/dist/owletto/dist/assets/index-DXqiRON3.js +0 -1
- package/dist/owletto/dist/assets/index-DgEc5IvT.js +0 -1
- package/dist/owletto/dist/assets/index-DvhM9tuI.js +0 -1
- package/dist/owletto/dist/assets/index-DyYFZjh-.js +0 -1
- package/dist/owletto/dist/assets/index-oDoJENMF.js +0 -1
- package/dist/owletto/dist/assets/index-rPdUEOa3.js +0 -1
- package/dist/owletto/dist/assets/login-Di5VF2F_.js +0 -1
- package/dist/owletto/dist/assets/logout-BuaQGSnw.js +0 -1
- package/dist/owletto/dist/assets/member-scope-gate-CJqJZk7T.js +0 -1
- package/dist/owletto/dist/assets/models--8mTFOLz.js +0 -1
- package/dist/owletto/dist/assets/new-BzkA1sq2.js +0 -1
- package/dist/owletto/dist/assets/new-C3f0BShb.js +0 -1
- package/dist/owletto/dist/assets/new-DA5LF6iB.js +0 -1
- package/dist/owletto/dist/assets/organization-DOtBRqDQ.js +0 -1
- package/dist/owletto/dist/assets/runs-_yVh6PPB.js +0 -1
- package/dist/owletto/dist/assets/runs-table--dnFQatY.js +0 -1
- package/dist/owletto/dist/assets/settings-DQo_ZS2P.js +0 -1
- package/dist/owletto/dist/assets/skills-a5xQ4RE9.js +0 -1
package/package.json
CHANGED
|
@@ -54,7 +54,7 @@ export declare abstract class ConnectorRuntime<C = Record<string, unknown>, F =
|
|
|
54
54
|
/**
|
|
55
55
|
* Execute an action on the connected service.
|
|
56
56
|
*
|
|
57
|
-
* Called
|
|
57
|
+
* Called by the host after org policy authorizes execution.
|
|
58
58
|
* Default implementation rejects with "Actions not supported" — connectors
|
|
59
59
|
* that don't declare any `actions` in their definition need not override.
|
|
60
60
|
* The `ctx` parameter is part of the public contract (subclasses overriding
|
|
@@ -69,7 +69,7 @@ export class ConnectorRuntime {
|
|
|
69
69
|
/**
|
|
70
70
|
* Execute an action on the connected service.
|
|
71
71
|
*
|
|
72
|
-
* Called
|
|
72
|
+
* Called by the host after org policy authorizes execution.
|
|
73
73
|
* Default implementation rejects with "Actions not supported" — connectors
|
|
74
74
|
* that don't declare any `actions` in their definition need not override.
|
|
75
75
|
* The `ctx` parameter is part of the public contract (subclasses overriding
|
|
@@ -32,6 +32,10 @@ export interface ConnectorDefinition {
|
|
|
32
32
|
feeds?: Record<string, FeedDefinition>;
|
|
33
33
|
/** Available action definitions (keyed by action_key) */
|
|
34
34
|
actions?: Record<string, ActionDefinition>;
|
|
35
|
+
/** Query filters implemented by this connector. Unsupported filters fail before query(). */
|
|
36
|
+
queryCapabilities?: {
|
|
37
|
+
exactMatch?: boolean;
|
|
38
|
+
};
|
|
35
39
|
/** Connector-normalized events that can activate Automations. */
|
|
36
40
|
automationEvents?: ConnectorAutomationEvent[];
|
|
37
41
|
/**
|
|
@@ -654,8 +658,6 @@ export interface ActionDefinition {
|
|
|
654
658
|
name: string;
|
|
655
659
|
/** Description */
|
|
656
660
|
description?: string;
|
|
657
|
-
/** Whether this action requires human approval before execution */
|
|
658
|
-
requiresApproval: boolean;
|
|
659
661
|
/** Semantic effect used by operation discovery and policy. Defaults to write. */
|
|
660
662
|
kind?: 'read' | 'write';
|
|
661
663
|
/**
|
|
@@ -975,6 +977,16 @@ export interface QueryContext<F = Record<string, unknown>> {
|
|
|
975
977
|
column: string;
|
|
976
978
|
order: 'asc' | 'desc';
|
|
977
979
|
};
|
|
980
|
+
/**
|
|
981
|
+
* Filter before pagination by the trimmed string of the first non-null
|
|
982
|
+
* projected column, in order. Missing columns count as null; an empty string
|
|
983
|
+
* does not fall through. Values must be bound or safely encoded by the
|
|
984
|
+
* connector, which owns its source dialect. Requires queryCapabilities.exactMatch.
|
|
985
|
+
*/
|
|
986
|
+
exactMatch?: {
|
|
987
|
+
columns: string[];
|
|
988
|
+
value: string;
|
|
989
|
+
};
|
|
978
990
|
}
|
|
979
991
|
/** Result from ConnectorRuntime.query(). Rows are returned to the caller, never persisted. */
|
|
980
992
|
export interface QueryResult {
|
|
@@ -42,11 +42,9 @@ export type ConnectorFeedSpec<C = Record<string, unknown>, F = Record<string, un
|
|
|
42
42
|
sync?: FeedSyncHandler<C, F>;
|
|
43
43
|
read: FeedReadHandler<F>;
|
|
44
44
|
});
|
|
45
|
-
/** An action's metadata (minus `key
|
|
46
|
-
export interface ConnectorActionSpec extends Omit<ActionDefinition, "key"
|
|
47
|
-
/**
|
|
48
|
-
requiresApproval?: boolean;
|
|
49
|
-
/** Effect handler for this action. Called inline (low-risk) or by the worker. */
|
|
45
|
+
/** An action's metadata (minus `key`) plus its `execute` handler. */
|
|
46
|
+
export interface ConnectorActionSpec extends Omit<ActionDefinition, "key"> {
|
|
47
|
+
/** Effect handler for this action. The host authorizes execution through org policy. */
|
|
50
48
|
execute(ctx: ActionContext): Promise<ActionResult>;
|
|
51
49
|
}
|
|
52
50
|
/** Functional connector spec: connector metadata plus handler-bearing feeds/actions. */
|
|
@@ -39,6 +39,7 @@ function buildDefinition(spec) {
|
|
|
39
39
|
description: spec.description,
|
|
40
40
|
authSchema: spec.authSchema,
|
|
41
41
|
optionsSchema: spec.optionsSchema,
|
|
42
|
+
queryCapabilities: spec.queryCapabilities,
|
|
42
43
|
faviconDomain: spec.faviconDomain,
|
|
43
44
|
mcpConfig: spec.mcpConfig,
|
|
44
45
|
openapiConfig: spec.openapiConfig,
|
|
@@ -73,7 +74,6 @@ function buildDefinition(spec) {
|
|
|
73
74
|
key,
|
|
74
75
|
name: action.name,
|
|
75
76
|
description: action.description,
|
|
76
|
-
requiresApproval: action.requiresApproval ?? false,
|
|
77
77
|
// `kind` and `requiredScopes` are semantic policy inputs (read/write
|
|
78
78
|
// classification and the per-action scope gate). Dropping them here
|
|
79
79
|
// would silently publish scoped/observational actions with neither,
|
|
@@ -48,7 +48,6 @@ export interface DeviceActionDefinition extends DeviceManifestSchema {
|
|
|
48
48
|
key: string;
|
|
49
49
|
name: string;
|
|
50
50
|
description?: string;
|
|
51
|
-
requiresApproval?: boolean;
|
|
52
51
|
kind?: 'read' | 'write';
|
|
53
52
|
annotations?: DeviceManifestSchema;
|
|
54
53
|
inputSchema?: DeviceManifestSchema;
|
|
@@ -37,7 +37,7 @@ export async function extensionNetworkSync(opts) {
|
|
|
37
37
|
// completes before our start() listener attaches and we miss them.
|
|
38
38
|
const blankNavObs = await opts.dispatcher.dispatch('navigate', {
|
|
39
39
|
url: 'about:blank',
|
|
40
|
-
|
|
40
|
+
new_tab: true,
|
|
41
41
|
wait_for_load: true,
|
|
42
42
|
...allowedOriginsInput,
|
|
43
43
|
});
|
|
@@ -70,7 +70,6 @@ export async function extensionNetworkSync(opts) {
|
|
|
70
70
|
const navObs = await opts.dispatcher.dispatch('navigate', {
|
|
71
71
|
tab_id: tabId,
|
|
72
72
|
url: opts.url,
|
|
73
|
-
open_in_new_tab: false,
|
|
74
73
|
wait_for_load: true,
|
|
75
74
|
...allowedOriginsInput,
|
|
76
75
|
});
|
|
@@ -168,7 +168,6 @@ export declare const AgentSettingsStoredSchema: import("@sinclair/typebox").TObj
|
|
|
168
168
|
sandboxId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
169
169
|
verboseLogging: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
170
170
|
showToolCalls: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
171
|
-
preApprovedTools: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
172
171
|
updatedAt: import("@sinclair/typebox").TNumber;
|
|
173
172
|
}>;
|
|
174
173
|
export type AgentSettingsStored = Static<typeof AgentSettingsStoredSchema>;
|
|
@@ -136,7 +136,6 @@ exports.AgentSettingsStoredSchema = typebox_1.Type.Object({
|
|
|
136
136
|
sandboxId: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
137
137
|
verboseLogging: typebox_1.Type.Optional(typebox_1.Type.Boolean()),
|
|
138
138
|
showToolCalls: typebox_1.Type.Optional(typebox_1.Type.Boolean()),
|
|
139
|
-
preApprovedTools: typebox_1.Type.Optional(typebox_1.Type.Array(typebox_1.Type.String())),
|
|
140
139
|
updatedAt: typebox_1.Type.Number(),
|
|
141
140
|
});
|
|
142
141
|
//# sourceMappingURL=agent-settings.js.map
|
|
@@ -9,7 +9,7 @@ export declare const CreateClassifierAction: import("@sinclair/typebox").TObject
|
|
|
9
9
|
attribute_key: import("@sinclair/typebox").TString;
|
|
10
10
|
attribute_values: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
|
|
11
11
|
description: import("@sinclair/typebox").TString;
|
|
12
|
-
examples: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString
|
|
12
|
+
examples: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
13
13
|
}>>;
|
|
14
14
|
created_by: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
15
15
|
}>;
|
|
@@ -27,11 +27,11 @@ export declare const ClassifyContentAction: import("@sinclair/typebox").TObject<
|
|
|
27
27
|
classifier_slug: import("@sinclair/typebox").TString;
|
|
28
28
|
content_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
29
29
|
value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
30
|
-
confidence: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber
|
|
30
|
+
confidence: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>>;
|
|
31
31
|
classifications: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
32
32
|
content_id: import("@sinclair/typebox").TNumber;
|
|
33
33
|
value: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
34
|
-
confidence: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber
|
|
34
|
+
confidence: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>>;
|
|
35
35
|
reasoning: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
36
36
|
}>>>;
|
|
37
37
|
source: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"llm">, import("@sinclair/typebox").TLiteral<"user">]>>;
|
|
@@ -46,7 +46,7 @@ export declare const ManageClassifiersSchema: import("@sinclair/typebox").TUnion
|
|
|
46
46
|
attribute_key: import("@sinclair/typebox").TString;
|
|
47
47
|
attribute_values: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
|
|
48
48
|
description: import("@sinclair/typebox").TString;
|
|
49
|
-
examples: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString
|
|
49
|
+
examples: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
50
50
|
}>>;
|
|
51
51
|
created_by: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
52
52
|
}>, import("@sinclair/typebox").TObject<{
|
|
@@ -61,11 +61,11 @@ export declare const ManageClassifiersSchema: import("@sinclair/typebox").TUnion
|
|
|
61
61
|
classifier_slug: import("@sinclair/typebox").TString;
|
|
62
62
|
content_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
63
63
|
value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
64
|
-
confidence: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber
|
|
64
|
+
confidence: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>>;
|
|
65
65
|
classifications: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
66
66
|
content_id: import("@sinclair/typebox").TNumber;
|
|
67
67
|
value: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
68
|
-
confidence: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber
|
|
68
|
+
confidence: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>>;
|
|
69
69
|
reasoning: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
70
70
|
}>>>;
|
|
71
71
|
source: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"llm">, import("@sinclair/typebox").TLiteral<"user">]>>;
|
|
@@ -18,10 +18,8 @@ const ClassifierId = typebox_1.Type.Number({
|
|
|
18
18
|
const ClassifierSlug = typebox_1.Type.String({
|
|
19
19
|
description: '[classify] Classifier slug (e.g., "sentiment", "bug-severity")',
|
|
20
20
|
});
|
|
21
|
-
const Confidence = typebox_1.Type.Number({
|
|
22
|
-
|
|
23
|
-
maximum: 1,
|
|
24
|
-
description: "[classify] Confidence in the value, 0..1 (default: 1)",
|
|
21
|
+
const Confidence = typebox_1.Type.Union([typebox_1.Type.Number({ minimum: 0, maximum: 1 }), typebox_1.Type.Null()], {
|
|
22
|
+
description: "[classify] Confidence in the value, 0..1. Omitted or null: unscored for an 'llm' label, 1 for a 'user' label",
|
|
25
23
|
});
|
|
26
24
|
exports.CreateClassifierAction = typebox_1.Type.Object({
|
|
27
25
|
action: typebox_1.Type.Literal("create", {
|
|
@@ -38,7 +36,7 @@ exports.CreateClassifierAction = typebox_1.Type.Object({
|
|
|
38
36
|
}),
|
|
39
37
|
attribute_values: typebox_1.Type.Record(typebox_1.Type.String({ minLength: 1 }), typebox_1.Type.Object({
|
|
40
38
|
description: typebox_1.Type.String(),
|
|
41
|
-
examples: typebox_1.Type.Array(typebox_1.Type.String()),
|
|
39
|
+
examples: typebox_1.Type.Optional(typebox_1.Type.Array(typebox_1.Type.String())),
|
|
42
40
|
}, { additionalProperties: false }), {
|
|
43
41
|
minProperties: 1,
|
|
44
42
|
description: "[create] Map of attribute values to descriptions and examples.",
|
|
@@ -85,7 +83,7 @@ exports.ClassifyContentAction = typebox_1.Type.Object({
|
|
|
85
83
|
description: "[classify] Array of classifications to update (batch mode)",
|
|
86
84
|
})),
|
|
87
85
|
source: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.Literal("llm"), typebox_1.Type.Literal("user")], {
|
|
88
|
-
description: '[classify] Classification source: "llm" (AI-generated
|
|
86
|
+
description: '[classify] Classification source: "llm" (AI-generated) or "user" (manual). Defaults to "user" for a person and "llm" for an Automation or agent, which cannot write "user". Only "user" labels are manual, and they win over "llm" labels at read time.',
|
|
89
87
|
})),
|
|
90
88
|
reasoning: typebox_1.Type.Optional(typebox_1.Type.String({
|
|
91
89
|
description: "[classify] Reasoning/justification for the classification(s)",
|
|
@@ -516,7 +516,6 @@ export declare const ManageConnectionsResultSchema: import("@sinclair/typebox").
|
|
|
516
516
|
version_exists: import("@sinclair/typebox").TBoolean;
|
|
517
517
|
actions: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
|
|
518
518
|
kind: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"read">, import("@sinclair/typebox").TLiteral<"write">]>;
|
|
519
|
-
requires_approval: import("@sinclair/typebox").TBoolean;
|
|
520
519
|
required_scopes: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
521
520
|
}>>;
|
|
522
521
|
feed_keys: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
@@ -414,7 +414,7 @@ exports.UpdateConnectorDefaultConfigAction = typebox_1.Type.Object({
|
|
|
414
414
|
}),
|
|
415
415
|
connector_key: typebox_1.Type.String({ description: "Connector key" }),
|
|
416
416
|
default_connection_config: typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Any(), {
|
|
417
|
-
description: "Default connection config
|
|
417
|
+
description: "Default connection config",
|
|
418
418
|
}),
|
|
419
419
|
});
|
|
420
420
|
const CHANNEL_ID_DESC = "Platform channel id (may be platform-prefixed, e.g. 'slack:C…').";
|
|
@@ -694,12 +694,11 @@ exports.ManageConnectionsResultSchema = typebox_1.Type.Union([
|
|
|
694
694
|
installed: typebox_1.Type.Boolean(),
|
|
695
695
|
active_version: typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()]),
|
|
696
696
|
version_exists: typebox_1.Type.Boolean(),
|
|
697
|
-
// Extracted per-action semantic-policy summary (kind /
|
|
698
|
-
//
|
|
697
|
+
// Extracted per-action semantic-policy summary (kind / required_scopes),
|
|
698
|
+
// keyed by action key, so an author can confirm those
|
|
699
699
|
// fields survived extraction before persisting. Plus the extracted feed keys.
|
|
700
700
|
actions: typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Object({
|
|
701
701
|
kind: typebox_1.Type.Union([typebox_1.Type.Literal("read"), typebox_1.Type.Literal("write")]),
|
|
702
|
-
requires_approval: typebox_1.Type.Boolean(),
|
|
703
702
|
required_scopes: typebox_1.Type.Array(typebox_1.Type.String()),
|
|
704
703
|
})),
|
|
705
704
|
feed_keys: typebox_1.Type.Array(typebox_1.Type.String()),
|
|
@@ -51,7 +51,7 @@ export declare const ListEntitiesAction: import("@sinclair/typebox").TObject<{
|
|
|
51
51
|
offset: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
52
52
|
action: import("@sinclair/typebox").TLiteral<"list">;
|
|
53
53
|
entity_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
54
|
-
parent_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber
|
|
54
|
+
parent_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>>;
|
|
55
55
|
search: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
56
56
|
category: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
57
57
|
main_market: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -191,7 +191,7 @@ export declare const ManageEntitySchema: import("@sinclair/typebox").TUnion<[imp
|
|
|
191
191
|
offset: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
192
192
|
action: import("@sinclair/typebox").TLiteral<"list">;
|
|
193
193
|
entity_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
194
|
-
parent_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber
|
|
194
|
+
parent_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>>;
|
|
195
195
|
search: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
196
196
|
category: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
197
197
|
main_market: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -35,7 +35,7 @@ const EntityFields = {
|
|
|
35
35
|
pattern: "^[a-z0-9]+(-[a-z0-9]+)*$",
|
|
36
36
|
}),
|
|
37
37
|
parent_id: typebox_1.Type.Number({
|
|
38
|
-
description: "[create/update
|
|
38
|
+
description: "[create/update] Parent entity ID (for hierarchical entities).",
|
|
39
39
|
}),
|
|
40
40
|
domain: typebox_1.Type.String({
|
|
41
41
|
description: "[create/update] Primary domain (e.g., spotify.com)",
|
|
@@ -159,7 +159,9 @@ exports.ListEntitiesAction = typebox_1.Type.Object({
|
|
|
159
159
|
description: "Paginated entity list with filters.",
|
|
160
160
|
}),
|
|
161
161
|
entity_type: typebox_1.Type.Optional(EntityType),
|
|
162
|
-
parent_id: typebox_1.Type.Optional(
|
|
162
|
+
parent_id: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.Number(), typebox_1.Type.Null()], {
|
|
163
|
+
description: "[list] Parent filter: omit for all entities, null for roots, or an ID for that parent's children.",
|
|
164
|
+
})),
|
|
163
165
|
search: typebox_1.Type.Optional(typebox_1.Type.String({ description: "[list] Search by name" })),
|
|
164
166
|
category: typebox_1.Type.Optional(EntityFields.category),
|
|
165
167
|
main_market: typebox_1.Type.Optional(EntityFields.main_market),
|
|
@@ -51,7 +51,7 @@ function createConsoleLogger(serviceName) {
|
|
|
51
51
|
};
|
|
52
52
|
const currentLevel = levels[level] ?? 2;
|
|
53
53
|
const formatMessage = (lvl, message, ...args) => {
|
|
54
|
-
const timestamp = new Date().toISOString()
|
|
54
|
+
const timestamp = new Date().toISOString();
|
|
55
55
|
let msgStr;
|
|
56
56
|
// Handle pino-style format: logger.info({ key: value }, "message")
|
|
57
57
|
if (typeof message === "object" &&
|
|
@@ -73,11 +73,22 @@ function createConsoleLogger(serviceName) {
|
|
|
73
73
|
else {
|
|
74
74
|
msgStr = String(message);
|
|
75
75
|
}
|
|
76
|
+
if (USE_JSON_FORMAT) {
|
|
77
|
+
return safeStringify({
|
|
78
|
+
timestamp,
|
|
79
|
+
level: lvl,
|
|
80
|
+
service: serviceName,
|
|
81
|
+
message: msgStr,
|
|
82
|
+
...(args.length > 0
|
|
83
|
+
? { data: args.length === 1 ? args[0] : args }
|
|
84
|
+
: {}),
|
|
85
|
+
});
|
|
86
|
+
}
|
|
76
87
|
// Append remaining args
|
|
77
88
|
if (args.length > 0) {
|
|
78
89
|
msgStr += ` ${safeStringify(args.length === 1 ? args[0] : args)}`;
|
|
79
90
|
}
|
|
80
|
-
return `[${timestamp}] [${lvl}] [${serviceName}] ${msgStr}`;
|
|
91
|
+
return `[${timestamp.replace("T", " ").slice(0, 19)}] [${lvl}] [${serviceName}] ${msgStr}`;
|
|
81
92
|
};
|
|
82
93
|
return {
|
|
83
94
|
error: (message, ...args) => {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* Before this lived in core, the worker had its own `MessagePayload`
|
|
10
10
|
* declaration that was a structural subset of the gateway's (missing
|
|
11
|
-
* `organizationId`, `networkConfig`, `nixConfig
|
|
11
|
+
* `organizationId`, `networkConfig`, `nixConfig`). At
|
|
12
12
|
* runtime the worker's zod schema was patched with
|
|
13
13
|
* `.passthrough()` so the extra fields survived parsing, but the static type
|
|
14
14
|
* silently lied. Hoisting closes the gap.
|
|
@@ -108,11 +108,6 @@ export interface MessagePayload {
|
|
|
108
108
|
guardrailsInline?: AgentInlineGuardrail[];
|
|
109
109
|
/** Nix environment configuration for the agent workspace. */
|
|
110
110
|
nixConfig?: NixConfig;
|
|
111
|
-
/**
|
|
112
|
-
* MCP tool grant patterns the operator has pre-approved.
|
|
113
|
-
* Synced to the grant store at deployment time to bypass the approval card.
|
|
114
|
-
*/
|
|
115
|
-
preApprovedTools?: string[];
|
|
116
111
|
/**
|
|
117
112
|
* Digest of the org's connector-contributed agent tooling (which connections
|
|
118
113
|
* contribute, which installation each points at, and what it declares),
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*
|
|
10
10
|
* Before this lived in core, the worker had its own `MessagePayload`
|
|
11
11
|
* declaration that was a structural subset of the gateway's (missing
|
|
12
|
-
* `organizationId`, `networkConfig`, `nixConfig
|
|
12
|
+
* `organizationId`, `networkConfig`, `nixConfig`). At
|
|
13
13
|
* runtime the worker's zod schema was patched with
|
|
14
14
|
* `.passthrough()` so the extra fields survived parsing, but the static type
|
|
15
15
|
* silently lied. Hoisting closes the gap.
|
package/vendor/core/package.json
CHANGED
|
@@ -18,6 +18,36 @@
|
|
|
18
18
|
* - `setParams` → `ui/update-model-context` `{ structuredContent: { view,
|
|
19
19
|
* params } }`; the web host mirrors it into the address bar. Hosts without
|
|
20
20
|
* that capability keep params local to the frame.
|
|
21
|
+
*
|
|
22
|
+
* Read budget: reads run on a user-facing path, when the host is ready and
|
|
23
|
+
* the query changes or `refetch()` is called.
|
|
24
|
+
* `query_sql` runs in a read-only, org-scoped transaction with a 5 second
|
|
25
|
+
* statement timeout and returns at most 500 rows; `useQuery` reports a hit as
|
|
26
|
+
* `errorCode: "UPSTREAM_TIMEOUT"` or `truncated: true`, so render those
|
|
27
|
+
* states instead of an empty or partial table. Never aggregate history in a
|
|
28
|
+
* view: no `GROUP BY`, `DISTINCT ON`, per-row regexp, or leading-wildcard
|
|
29
|
+
* `LIKE` over `events` (or any other table that grows with history). History
|
|
30
|
+
* grows; the answer a view shows does not.
|
|
31
|
+
*
|
|
32
|
+
* For "latest state" views, compute state at write time. One event-based
|
|
33
|
+
* pattern is an Automation bound to the entity declaring a keyed event output
|
|
34
|
+
* (`outputs: { status: { event: "account_status", key: ["account"] } }`), so
|
|
35
|
+
* each emitted update supersedes the previous event with the same output
|
|
36
|
+
* identity. The view reads current events with `read_knowledge`
|
|
37
|
+
* (registry-marked `readOnlyHint`, so the host lets a view call it), which
|
|
38
|
+
* skips superseded rows:
|
|
39
|
+
*
|
|
40
|
+
* ```tsx
|
|
41
|
+
* const { entity } = useScope();
|
|
42
|
+
* const status = useQuery<{ content: Array<{ title: string | null;
|
|
43
|
+
* metadata: Record<string, unknown> }> }>(
|
|
44
|
+
* typeof entity === "number"
|
|
45
|
+
* ? tool("read_knowledge", { entity_id: entity,
|
|
46
|
+
* semantic_type: "account_status", sort_by: "date", limit: 1 })
|
|
47
|
+
* : null
|
|
48
|
+
* );
|
|
49
|
+
* const current = status.data?.content[0];
|
|
50
|
+
* ```
|
|
21
51
|
*/
|
|
22
52
|
import { type ReactNode } from "react";
|
|
23
53
|
import { ViewBridge, type ToolResult } from "./bridge.js";
|
|
@@ -129,15 +159,22 @@ export declare function tool(name: string, args?: Record<string, unknown>): Tool
|
|
|
129
159
|
* result: `query_sql` answers a rejected statement (unknown table, bad column)
|
|
130
160
|
* with a normal result carrying `error` beside `rows: []`, and `query_sdk`
|
|
131
161
|
* reports a thrown script as `success: false` — both would otherwise render as
|
|
132
|
-
* "no rows".
|
|
162
|
+
* "no rows". The server's typed code rides along as `errorCode`, and a capped
|
|
163
|
+
* result (`query_sql`'s `has_more`, `query_sdk`'s `return_truncated`) is
|
|
164
|
+
* flagged `truncated` instead of passing as the whole answer.
|
|
133
165
|
*/
|
|
134
|
-
export declare function queryResult<T>(kind: "sql" | "sdk" | "tool", result: ToolResult):
|
|
135
|
-
data: T | null;
|
|
136
|
-
error: string | null;
|
|
137
|
-
};
|
|
166
|
+
export declare function queryResult<T>(kind: "sql" | "sdk" | "tool", result: ToolResult): Pick<QueryState<T>, "data" | "error" | "errorCode" | "truncated">;
|
|
138
167
|
export interface QueryState<T> {
|
|
139
168
|
data: T | null;
|
|
140
169
|
error: string | null;
|
|
170
|
+
/** The server's typed code for a failed read, e.g. `UPSTREAM_TIMEOUT` when
|
|
171
|
+
* the statement ran past `query_sql`'s 5 second timeout. Branch on this,
|
|
172
|
+
* never on `error` text. Null on success or when the host gave no code. */
|
|
173
|
+
errorCode: string | null;
|
|
174
|
+
/** True when the server capped the answer: `query_sql` returns at most 500
|
|
175
|
+
* rows (fewer past its response-size ceiling) and `query_sdk` drops an
|
|
176
|
+
* oversized return value. `data` is then not the whole result. */
|
|
177
|
+
truncated: boolean;
|
|
141
178
|
loading: boolean;
|
|
142
179
|
refetch: () => void;
|
|
143
180
|
}
|
package/vendor/views/dist/api.js
CHANGED
|
@@ -19,6 +19,36 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
19
19
|
* - `setParams` → `ui/update-model-context` `{ structuredContent: { view,
|
|
20
20
|
* params } }`; the web host mirrors it into the address bar. Hosts without
|
|
21
21
|
* that capability keep params local to the frame.
|
|
22
|
+
*
|
|
23
|
+
* Read budget: reads run on a user-facing path, when the host is ready and
|
|
24
|
+
* the query changes or `refetch()` is called.
|
|
25
|
+
* `query_sql` runs in a read-only, org-scoped transaction with a 5 second
|
|
26
|
+
* statement timeout and returns at most 500 rows; `useQuery` reports a hit as
|
|
27
|
+
* `errorCode: "UPSTREAM_TIMEOUT"` or `truncated: true`, so render those
|
|
28
|
+
* states instead of an empty or partial table. Never aggregate history in a
|
|
29
|
+
* view: no `GROUP BY`, `DISTINCT ON`, per-row regexp, or leading-wildcard
|
|
30
|
+
* `LIKE` over `events` (or any other table that grows with history). History
|
|
31
|
+
* grows; the answer a view shows does not.
|
|
32
|
+
*
|
|
33
|
+
* For "latest state" views, compute state at write time. One event-based
|
|
34
|
+
* pattern is an Automation bound to the entity declaring a keyed event output
|
|
35
|
+
* (`outputs: { status: { event: "account_status", key: ["account"] } }`), so
|
|
36
|
+
* each emitted update supersedes the previous event with the same output
|
|
37
|
+
* identity. The view reads current events with `read_knowledge`
|
|
38
|
+
* (registry-marked `readOnlyHint`, so the host lets a view call it), which
|
|
39
|
+
* skips superseded rows:
|
|
40
|
+
*
|
|
41
|
+
* ```tsx
|
|
42
|
+
* const { entity } = useScope();
|
|
43
|
+
* const status = useQuery<{ content: Array<{ title: string | null;
|
|
44
|
+
* metadata: Record<string, unknown> }> }>(
|
|
45
|
+
* typeof entity === "number"
|
|
46
|
+
* ? tool("read_knowledge", { entity_id: entity,
|
|
47
|
+
* semantic_type: "account_status", sort_by: "date", limit: 1 })
|
|
48
|
+
* : null
|
|
49
|
+
* );
|
|
50
|
+
* const current = status.data?.content[0];
|
|
51
|
+
* ```
|
|
22
52
|
*/
|
|
23
53
|
import { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState, } from "react";
|
|
24
54
|
import { createRoot } from "react-dom/client";
|
|
@@ -113,33 +143,56 @@ function parseTextJson(result) {
|
|
|
113
143
|
* result: `query_sql` answers a rejected statement (unknown table, bad column)
|
|
114
144
|
* with a normal result carrying `error` beside `rows: []`, and `query_sdk`
|
|
115
145
|
* reports a thrown script as `success: false` — both would otherwise render as
|
|
116
|
-
* "no rows".
|
|
146
|
+
* "no rows". The server's typed code rides along as `errorCode`, and a capped
|
|
147
|
+
* result (`query_sql`'s `has_more`, `query_sdk`'s `return_truncated`) is
|
|
148
|
+
* flagged `truncated` instead of passing as the whole answer.
|
|
117
149
|
*/
|
|
118
150
|
export function queryResult(kind, result) {
|
|
119
|
-
const err = resultError(result);
|
|
120
|
-
if (err)
|
|
121
|
-
return { data: null, error: err };
|
|
122
151
|
// structuredContent when the tool declares an outputSchema (query_sql,
|
|
123
152
|
// query_sdk, every read tool on MCP hosts); otherwise the text body.
|
|
124
153
|
const sc = (result.structuredContent ??
|
|
125
154
|
parseTextJson(result) ??
|
|
126
155
|
{});
|
|
127
156
|
if (kind === "sql" && typeof sc.error === "string" && sc.error)
|
|
128
|
-
return {
|
|
157
|
+
return {
|
|
158
|
+
data: null,
|
|
159
|
+
error: sc.error,
|
|
160
|
+
errorCode: typeof sc.error_code === "string" ? sc.error_code : null,
|
|
161
|
+
truncated: false,
|
|
162
|
+
};
|
|
129
163
|
if (kind === "sdk" && sc.success === false) {
|
|
130
164
|
const e = sc.error;
|
|
131
165
|
const message = typeof e === "string" ? e : e?.message;
|
|
166
|
+
const code = typeof e === "object" ? e?.code : undefined;
|
|
132
167
|
return {
|
|
133
168
|
data: null,
|
|
134
169
|
error: typeof message === "string" && message
|
|
135
170
|
? message
|
|
136
171
|
: "Query script failed",
|
|
172
|
+
errorCode: typeof code === "string" ? code : null,
|
|
173
|
+
truncated: false,
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
// MCP also marks resolved SQL/SDK failures isError; decode their envelopes
|
|
177
|
+
// above before falling back to the host's text and thrown-error metadata.
|
|
178
|
+
const err = resultError(result);
|
|
179
|
+
if (err) {
|
|
180
|
+
const e = sc.error;
|
|
181
|
+
const code = typeof e === "object" ? e?.code : undefined;
|
|
182
|
+
return {
|
|
183
|
+
data: null,
|
|
184
|
+
error: err,
|
|
185
|
+
errorCode: typeof code === "string" ? code : null,
|
|
186
|
+
truncated: false,
|
|
137
187
|
};
|
|
138
188
|
}
|
|
139
189
|
// query_sdk → { success, return_value }, query_sql → { rows }, a named
|
|
140
190
|
// tool → its whole body.
|
|
141
191
|
const data = (kind === "sdk" ? sc.return_value : kind === "tool" ? sc : sc.rows);
|
|
142
|
-
|
|
192
|
+
const truncated = kind === "sql"
|
|
193
|
+
? sc.has_more === true
|
|
194
|
+
: kind === "sdk" && sc.return_truncated != null;
|
|
195
|
+
return { data: data ?? null, error: null, errorCode: null, truncated };
|
|
143
196
|
}
|
|
144
197
|
/**
|
|
145
198
|
* Run a read through the host. `sql\`…\`` → `query_sql`; a string →
|
|
@@ -152,6 +205,8 @@ export function useQuery(query) {
|
|
|
152
205
|
const [state, setState] = useState({
|
|
153
206
|
data: null,
|
|
154
207
|
error: null,
|
|
208
|
+
errorCode: null,
|
|
209
|
+
truncated: false,
|
|
155
210
|
loading: query !== null,
|
|
156
211
|
});
|
|
157
212
|
const [tick, setTick] = useState(0);
|
|
@@ -193,6 +248,8 @@ export function useQuery(query) {
|
|
|
193
248
|
setState({
|
|
194
249
|
data: null,
|
|
195
250
|
error: e instanceof Error ? e.message : String(e),
|
|
251
|
+
errorCode: null,
|
|
252
|
+
truncated: false,
|
|
196
253
|
loading: false,
|
|
197
254
|
});
|
|
198
255
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobu/views",
|
|
3
|
-
"version": "21.1
|
|
3
|
+
"version": "21.2.1",
|
|
4
4
|
"description": "Authoring runtime for Lobu views — React modules rendered in the sandboxed MCP Apps frame",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -29,6 +29,11 @@
|
|
|
29
29
|
"node": ">=18"
|
|
30
30
|
},
|
|
31
31
|
"license": "Apache-2.0",
|
|
32
|
+
"repository": {
|
|
33
|
+
"type": "git",
|
|
34
|
+
"url": "git+https://github.com/lobu-ai/lobu.git",
|
|
35
|
+
"directory": "packages/views"
|
|
36
|
+
},
|
|
32
37
|
"publishConfig": {
|
|
33
38
|
"access": "public"
|
|
34
39
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{cg as t,j as p,ch as m}from"./index-DtRfQcRH.js";import{A as e}from"./activity-route-view-BvtAoGVt.js";import"./device-automation-BIjs7DZJ.js";import"./agent-thread-storage-U6htL3ad.js";import"./pending-seed-CPbfgnLX.js";import"./clients-C7ubnFsS.js";import"./client-rows-EJSKR6z1.js";import"./connection-label-BobuYiAG.js";import"./events-feed-C4L8mQV7.js";import"./use-applied-views-DvMT3wap.js";import"./renderer-1nRJFMGx.js";import"./card-4Ull9W6d.js";import"./calendar-CHXehtu0.js";import"./agent-loading-shells-BQLjzMPy.js";import"./member-scope-gate-CJqJZk7T.js";function v(){const{owner:o,_splat:r}=t.useParams(),i=t.useSearch();return p.jsx(e,{owner:o,search:i,attentionLens:!1,entityScope:m(r||"").path})}export{v as component};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/entity-page-BxwuqqWk.js","assets/index-DtRfQcRH.js","assets/index-C8CR2-Ck.css","assets/schema-value-normalization-BspxVEGy.js","assets/calendar-CHXehtu0.js","assets/view-frame-HoBawpT2.js","assets/app-bridge-BH3g2mKG.js","assets/missing-view-CD4DOaG8.js","assets/use-applied-views-DvMT3wap.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{r as n,a$ as j,b0 as m,b1 as v,b2 as P,p as R,v as _,a4 as b,a0 as E,j as e,b3 as S,b4 as w,b5 as N}from"./index-DtRfQcRH.js";function h(){return n.useEffect(()=>{j()},[]),null}const F=w(async()=>({default:(await N(async()=>{const{EntityPage:s}=await import("./entity-page-BxwuqqWk.js");return{EntityPage:s}},__vite__mapDeps([0,1,2,3,4,5,6,7,8]))).EntityPage}));function r(){return e.jsx("div",{"data-public-loading":"true",children:e.jsx(S,{})})}function A(){const{owner:s,_splat:x}=m.useParams(),a=m.useSearch(),i=v(x||""),o=i?.viewKey,{path:f}=P(s,i?.entityPath),{data:t,isLoading:c,error:d}=R(f,{slug:s},{includeBootstrap:!0}),{session:y,isReady:l}=_(),u=b();if(n.useEffect(()=>{t?.redirect&&u({to:t.redirect.to,replace:!0})},[t?.redirect,u]),E({active:!c&&l&&!y&&(!!d||!t),owner:s}),c||!l&&!t)return e.jsx(r,{});if(t?.redirect)return e.jsx(r,{});if(d||!t||!t.entity)return e.jsxs(e.Fragment,{children:[e.jsx(h,{}),e.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[e.jsx("h1",{className:"text-2xl font-semibold",children:"Not Found"}),e.jsx("p",{className:"text-muted-foreground mt-2",children:"We couldn't resolve this path."})]})]});const g=!o&&typeof a.merged_from=="string"&&t.entity.merged_records?.some(p=>p.name===a.merged_from)?a.merged_from:void 0;return e.jsxs(e.Fragment,{children:[e.jsx(h,{}),e.jsx(n.Suspense,{fallback:e.jsx(r,{}),children:e.jsx(F,{namespace:t.workspace,path:t.path,entity:t.entity,mergedFrom:g,viewKey:o})})]})}export{A as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a4 as b,gk as w,r as u,j as n,al as D,cp as k,v as P,w as E,bz as M,bq as N,bL as R,cr as O,gl as $,gm as z,bW as B,a9 as Q}from"./index-DtRfQcRH.js";import{L as W,A as q}from"./agent-thread-D7AGGjRV.js";import{n as L}from"./agent-thread-storage-U6htL3ad.js";import{A as F,C as H}from"./agent-loading-shells-BQLjzMPy.js";import"./app-bridge-BH3g2mKG.js";import"./pending-seed-CPbfgnLX.js";import"./use-mention-search-CeTEE3oE.js";import"./index-Vcq4gwWv.js";function U({owner:t,agent:s,threadId:e,afterMessagesContent:d,className:i,initialDraft:x,newChatRequested:m=!1,preventAutoNavigate:g}){const o=b(),r=s.agentId,{data:a=[]}=w(r,{orgSlug:t}),[l,p]=u.useState(()=>L()),[h,A]=u.useState(null);u.useEffect(()=>{!m||e||(p(L()),A(null),o({to:".",search:(f=>{const{new:C,...S}=f;return S}),replace:!0}))},[m,e,o]);const v=u.useMemo(()=>!h||a.some(f=>f.id===h.id)?a:[h,...a],[a,h]),c=e??l,T=!e||!v.some(f=>f.id===e),j=u.useCallback(()=>{if(v.some(C=>C.id===c))return;A({id:c,title:`Conversation ${v.length+1}`,createdAt:Date.now(),updatedAt:Date.now()});const f=k(t,r,c);o({...f,replace:!0})},[v,c,o,t,r]),y=u.useCallback(()=>{T&&!g&&j()},[T,j,g]);return n.jsx("div",{className:D("flex min-h-0 flex-1 flex-col",i),children:n.jsx("div",{className:"flex min-h-0 flex-1 flex-col",children:n.jsx(W,{agentId:r,workspaceSlug:t,thread:c,loadHistory:!!e,onFirstUserMessage:y,initialDraft:x,children:n.jsx(q,{afterMessagesContent:d})},`${r}:${c}`)})})}function _({owner:t,agentId:s,threadId:e,initialDraft:d,newChatRequested:i,afterMessagesContent:x,preventAutoNavigate:m}){const{isAuthenticated:g}=P(),{isMember:o,isLoading:r}=E(),a=g&&o,{data:l=[],isLoading:p}=M({enabled:a}),h=s??null,A=l.find(c=>c.agentId===h)??null;return a&&p||r?n.jsx(F,{}):A?n.jsx(U,{owner:t,agent:A,threadId:e,initialDraft:d,newChatRequested:i,afterMessagesContent:x,preventAutoNavigate:m,className:"min-h-0 flex-1 overflow-hidden"}):n.jsx(N,{icon:R,title:"Agent not found",description:"This agent may have been removed."})}function G(t){return[...t].sort((s,e)=>e.updatedAt-s.updatedAt)[0]}function J({owner:t,agentId:s,threadId:e,initialDraft:d,forceComposer:i=!1,newChatRequested:x=!1,afterMessagesContent:m,preventAutoNavigate:g}){const o=b(),{data:r=[],isLoading:a}=O($(t,s,{strict:!1})),l=u.useMemo(()=>G(r),[r]);return u.useEffect(()=>{if(e||i||a||!l)return;const p=k(t,s,l.id);o({...p,replace:!0})},[s,a,l,o,t,e,i]),!e&&!i&&(a||l)?n.jsx(H,{}):n.jsx(_,{owner:t,agentId:s,threadId:e,initialDraft:d,newChatRequested:x,afterMessagesContent:m,preventAutoNavigate:g})}function se(){const{owner:t,agentId:s}=z.useParams(),{threadId:e}=B({strict:!1}),{new:d,prompt:i}=Q({strict:!1});return n.jsx("div",{className:"flex min-h-0 flex-1 flex-col overflow-hidden px-4 py-4 lg:px-6 lg:py-6",children:n.jsx("div",{className:"mx-auto flex min-h-0 w-full max-w-3xl flex-1 flex-col",children:n.jsx(J,{owner:t,agentId:s,threadId:e,initialDraft:i,forceComposer:!e,newChatRequested:!!d})})})}export{se as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{gv as r,j as e}from"./index-DtRfQcRH.js";import{A as n}from"./agents-workbench-Cl7FO7b3.js";import"./agent-editor-form-DwHD9j1Y.js";import"./model-selector-XC5CI2Et.js";import"./proposal-review-shell-C3K-JXjb.js";import"./runs-_yVh6PPB.js";function c(){const{owner:o,agentId:t}=r.useParams();return e.jsx(n,{owner:o,agentId:t})}export{c as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a4 as N,a3 as k,p as A,v as L,w as C,M as y,j as t,B as n,ez as b,bL as R,S as _,L as $,N as z,go as p,aY as D}from"./index-DtRfQcRH.js";import{a as O}from"./automation-detail-content-CKSywvzE.js";import"./create-automation-form-De8J-JD5.js";import"./cronstrue-C5yTgk5z.js";import"./entity-options-utGBmFX0.js";import"./connection-label-BobuYiAG.js";import"./switch-CxDXvPGE.js";import"./device-automation-BIjs7DZJ.js";import"./model-selector-XC5CI2Et.js";import"./skill-editor-D_W3QlRz.js";import"./code-editor-BHiWR94J.js";import"./index-CDz3-ieP.js";import"./index-Vcq4gwWv.js";import"./use-mention-search-CeTEE3oE.js";import"./proposal-review-shell-C3K-JXjb.js";import"./runs-_yVh6PPB.js";import"./json-diff-DYeX-xLk.js";import"./deployments-D1gbQwsy.js";import"./agent-loading-shells-BQLjzMPy.js";import"./agent-thread-D7AGGjRV.js";import"./app-bridge-BH3g2mKG.js";import"./pending-seed-CPbfgnLX.js";import"./events-feed-C4L8mQV7.js";import"./use-applied-views-DvMT3wap.js";import"./clients-C7ubnFsS.js";import"./renderer-1nRJFMGx.js";import"./card-4Ull9W6d.js";function P({owner:o,automationId:a,view:e,runId:s}){const r=N(),{orgContext:u,hasOrgContext:x}=k(),{data:g,isLoading:m}=A(`/${o}`,u),{isAuthenticated:h}=L(),{isLoading:c}=C(),v=g?.workspace?.id??"",f=h?!x||m||c:m||c,i=y(a,void 0,v).data?.automation,j=i?.automation_name??"Automation",l=()=>void r({to:"/$owner/automations",params:{owner:o}}),d=()=>void r({to:"/$owner/automations/$automationId",params:{owner:o,automationId:a},search:{view:"activity",run_id:void 0}}),w=!s&&e==="definition";return t.jsx("div",{className:"flex flex-1 flex-col gap-6 px-4 py-6 lg:px-6",children:t.jsxs("div",{className:"mx-auto flex w-full min-w-0 max-w-3xl flex-col gap-4",children:[t.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[t.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[t.jsxs(n,{type:"button",variant:"ghost",size:"sm",className:"h-8 gap-1.5 text-muted-foreground hover:text-foreground",onClick:l,children:[t.jsx(b,{className:"h-3.5 w-3.5"}),"Automations"]}),t.jsxs("h1",{className:"flex min-w-0 items-center gap-2 truncate font-display text-xl font-semibold",children:[t.jsx(R,{className:"h-4 w-4 shrink-0 text-muted-foreground","aria-hidden":!0}),f&&!i?t.jsx(_,{className:"h-5 w-40"}):s?"Review change":j]})]}),s?null:w?t.jsx(n,{type:"button",variant:"ghost",size:"sm",className:"h-8 text-muted-foreground hover:text-foreground",onClick:d,children:"Done"}):t.jsx(n,{asChild:!0,variant:"ghost",size:"sm",className:"h-8 gap-1.5",children:t.jsxs($,{to:"/$owner/automations/$automationId",params:{owner:o,automationId:a},search:{view:"definition",run_id:void 0},children:[t.jsx(z,{className:"h-3.5 w-3.5"}),"Edit"]})})]}),t.jsx(O,{owner:o,agentId:i?.managed_agent_id??null,automationId:a,view:e,runId:s,onDone:s?l:d})]})})}function ct(){const{owner:o,automationId:a}=p.useParams(),e=p.useSearch();return t.jsx(D,{owner:o,children:()=>t.jsx(P,{owner:o,automationId:a,view:e.view,runId:e.run_id})})}export{ct as component};
|