@lobu/runtime-server 21.2.1 → 23.0.0
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/automations.json +40 -13
- package/dist/catalogs/connectors.json +18435 -1259
- package/dist/catalogs/skills.json +1 -1
- package/dist/component.json +1 -1
- package/dist/connectors/README.md +21 -6
- package/dist/connectors/_google/actions.ts +270 -0
- package/dist/connectors/_google/discovery/calendar_v3.json +1 -0
- package/dist/connectors/_google/discovery/chat_v1.json +1 -0
- package/dist/connectors/_google/discovery/docs_v1.json +1 -0
- package/dist/connectors/_google/discovery/drive_v3.json +1 -0
- package/dist/connectors/_google/discovery/gmail_v1.json +1 -0
- package/dist/connectors/_google/discovery/people_v1.json +1 -0
- package/dist/connectors/_google/discovery/sheets_v4.json +1 -0
- package/dist/connectors/_google/discovery/tasks_v1.json +1 -0
- package/dist/connectors/_google/discovery/youtube_v3.json +1 -0
- package/dist/connectors/_google/discovery.ts +442 -0
- package/dist/connectors/_google/errors.ts +91 -0
- package/dist/connectors/_google/list-feed.ts +223 -0
- package/dist/connectors/_google/policies.ts +127 -0
- package/dist/connectors/agentid.ts +43 -0
- package/dist/connectors/chat-user-identity.ts +2 -1
- package/dist/connectors/github-automation-events.ts +9 -0
- package/dist/connectors/github-identity.ts +28 -3
- package/dist/connectors/github.ts +101 -59
- package/dist/connectors/google_calendar.ts +207 -719
- package/dist/connectors/google_drive.ts +16 -2
- package/dist/connectors/google_gmail.ts +52 -33
- package/dist/connectors/herdr.ts +406 -0
- package/dist/connectors/jira-helpers.ts +313 -0
- package/dist/connectors/jira.ts +35 -227
- package/dist/connectors/linear.ts +7 -4
- package/dist/connectors/linkedin-browser-script.ts +13 -0
- package/dist/connectors/linkedin-draft-page.js +104 -0
- package/dist/connectors/linkedin-drafts.ts +73 -0
- package/dist/connectors/linkedin-identity.ts +32 -0
- package/dist/connectors/linkedin-inbox-adapter.js +1185 -0
- package/dist/connectors/linkedin-inbox.ts +156 -0
- package/dist/connectors/linkedin-like.ts +114 -0
- package/dist/connectors/linkedin-takeout.ts +577 -0
- package/dist/connectors/linkedin.ts +3998 -0
- package/dist/connectors/postgres.ts +27 -2
- package/dist/connectors/takeout-utils.ts +240 -0
- package/dist/connectors/tiktok-inbox-page.js +230 -0
- package/dist/connectors/tiktok-web-page.js +217 -0
- package/dist/connectors/tiktok_web.ts +319 -0
- package/dist/connectors/whatsapp-web-adapter.js +285 -567
- package/dist/connectors/whatsapp-web-helpers.ts +74 -455
- package/dist/connectors/whatsapp-web-identity.ts +135 -0
- package/dist/connectors/whatsapp_web.ts +159 -618
- package/dist/connectors/x-dm-adapter.js +556 -0
- package/dist/connectors/x-identity.ts +31 -2
- package/dist/connectors/x.ts +539 -253
- package/dist/db/migrations/20261005150000_retire_agent_tool_config.sql +31 -0
- package/dist/db/migrations/20261005173700_drop_retired_agent_tool_config.sql +29 -0
- package/dist/db/migrations/20261007010000_identity_association_guards.sql +242 -0
- package/dist/db/migrations/20261007010001_identity_association_indexes.sql +35 -0
- package/dist/db/migrations/20261007012000_connector_browser_requirement.sql +7 -0
- package/dist/db/migrations/20261009010000_identity_member_decision_indexes.sql +22 -0
- package/dist/db/migrations/20261009015900_retire_remaining_physical_merges.sql +196 -0
- package/dist/db/migrations/20261009020000_retire_physical_entity_merge.sql +82 -0
- package/dist/db/migrations/20261009030000_retire_physical_merge_indexes.sql +39 -0
- package/dist/db/migrations/20261009030001_drop_physical_entity_redirect.sql +62 -0
- package/dist/db/migrations/20261009040000_normalize_identity_decisions.sql +60 -0
- package/dist/db/migrations/20261010220000_notification_targets_user_event_order.sql +53 -0
- package/dist/db/migrations/20261010223000_device_workers_user_fresh_cover.sql +39 -0
- package/dist/db/migrations/20261010223001_runs_org_default_view.sql +41 -0
- package/dist/db/migrations/20261010223002_events_org_guidance.sql +42 -0
- package/dist/db/migrations/20261011002000_finish_product_eval_retirement.sql +37 -0
- package/dist/db/migrations/20261011160000_mcp_conversation_workspaces.sql +97 -0
- package/dist/db/migrations/20261013120000_events_live_org_effective_date.sql +42 -0
- package/dist/db/migrations/20261013150000_events_live_linked_org_ids_gin.sql +41 -0
- package/dist/db/migrations/20261014120000_clear_team_device_auto_pause.sql +34 -0
- package/dist/db/migrations/20261014150000_connector_webhook_event_type_backfill.sql +30 -0
- package/dist/db/migrations/20261014170000_retire_atlassian_mcp_webhook_refresh.sql +51 -0
- package/dist/db/migrations/20261015010000_connection_auth_profile_fk_set_null_column.sql +53 -0
- package/dist/db/migrations/20261015120000_personal_org_connector_auto_policy.sql +38 -0
- package/dist/db/migrations/20261017120000_drop_feeds_kind_virtual.sql +26 -0
- package/dist/db/migrations/20261017130000_drop_retired_dead_code_columns.sql +46 -0
- package/dist/db/migrations/preconditions/20261005150000_retire_agent_tool_config.sql +22 -0
- package/dist/db/migrations/preconditions/20261005173700_drop_retired_agent_tool_config.sql +13 -0
- package/dist/db/migrations/preconditions/20261009020000_retire_physical_entity_merge.sql +26 -0
- package/dist/db/migrations/preconditions/20261011002000_finish_product_eval_retirement.sql +14 -0
- package/dist/dependencies.bun.lock +144 -137
- package/dist/guest.bundle.js +416 -330
- package/dist/owletto/dist/assets/_-3J-IrxWk.js +2 -0
- package/dist/owletto/dist/assets/_-DYUE3ix4.js +3 -0
- package/dist/owletto/dist/assets/_-DtqBFgK5.js +1 -0
- package/dist/owletto/dist/assets/_agentId-Bn2IAjIy.js +2 -0
- package/dist/owletto/dist/assets/_agentId-Cam7Z0N7.js +2 -0
- package/dist/owletto/dist/assets/_automationId-CXEiKVZJ.js +2 -0
- package/dist/owletto/dist/assets/_connectorKey._connectionId-CS85l61t.js +2 -0
- package/dist/owletto/dist/assets/_connectorKey.index-clVDIyW0.js +2 -0
- package/dist/owletto/dist/assets/_conversationId-Ci2k-BuN.js +2 -0
- package/dist/owletto/dist/assets/_deploymentId-BuUzGtVL.js +2 -0
- package/dist/owletto/dist/assets/_eventId-B0662F8h.js +2 -0
- package/dist/owletto/dist/assets/_name-CwWePlOl.js +2 -0
- package/dist/owletto/dist/assets/_owner-dTWkrKsK.js +3 -0
- package/dist/owletto/dist/assets/_shape-BtS3y4M9.js +2 -0
- package/dist/owletto/dist/assets/_skillKey-Dc9m-nlR.js +2 -0
- package/dist/owletto/dist/assets/_slug-DQHutM41.js +2 -0
- package/dist/owletto/dist/assets/_threadId-DtqBFgK5.js +1 -0
- package/dist/owletto/dist/assets/_viewKey-B30ik8ma.js +2 -0
- package/dist/owletto/dist/assets/_viewKey-CUHypQnF.js +2 -0
- package/dist/owletto/dist/assets/accept-invitation-w17IFTtf.js +2 -0
- package/dist/owletto/dist/assets/activity-route-view-CMqYiiKM.js +2 -0
- package/dist/owletto/dist/assets/agent-card-controls-mnTN2AZt.js +2 -0
- package/dist/owletto/dist/assets/{agent-client-setup-list-BFtgRwe8.js → agent-client-setup-list-Bg3hBfUV.js} +4 -3
- package/dist/owletto/dist/assets/agent-connect-pages-B_vrqLVc.js +2 -0
- package/dist/owletto/dist/assets/agent-editor-form-hTs7eO_U.js +2 -0
- package/dist/owletto/dist/assets/agent-guardrails-route-BOrCXcAl.js +2 -0
- package/dist/owletto/dist/assets/agent-loading-shells-Dqcvky-k.js +2 -0
- package/dist/owletto/dist/assets/agent-permissions-matrix-BOo_4r_4.js +2 -0
- package/dist/owletto/dist/assets/{agent-skill-context-BAr2Dw3F.js → agent-skill-context-CCdvtlmH.js} +2 -1
- package/dist/owletto/dist/assets/agent-skills-route-BUxIswuq.js +2 -0
- package/dist/owletto/dist/assets/agent-subpage-shell-D92imvSt.js +2 -0
- package/dist/owletto/dist/assets/agent-thread-BJOijbT0.js +6 -0
- package/dist/owletto/dist/assets/agents-9XjpDj_S.js +2 -0
- package/dist/owletto/dist/assets/agents-workbench-Bt5QCYQ7.js +2 -0
- package/dist/owletto/dist/assets/app-bridge-BCm4muqj.js +128 -0
- package/dist/owletto/dist/assets/app._appId-CKv7_squ.js +2 -0
- package/dist/owletto/dist/assets/automation-detail-content-vUwVumXf.js +2 -0
- package/dist/owletto/dist/assets/automations-9XjpDj_S.js +2 -0
- package/dist/owletto/dist/assets/{callback-CaRe2TOT.js → callback-BRgcL8gz.js} +2 -1
- package/dist/owletto/dist/assets/{card-CMmh2mzo.js → card-Djgp00r_.js} +2 -1
- package/dist/owletto/dist/assets/claim-BYUZnyMp.js +2 -0
- package/dist/owletto/dist/assets/client-rows-EJSKR6z1.js +1 -0
- package/dist/owletto/dist/assets/clients-D3Zbjxin.js +2 -0
- package/dist/owletto/dist/assets/code-editor-DHeyRGZI.js +16 -0
- package/dist/owletto/dist/assets/connect-CfsFsy9P.js +2 -0
- package/dist/owletto/dist/assets/connect._clientId-DkiC8xos.js +2 -0
- package/dist/owletto/dist/assets/connected._clientId-CIXrGOsT.js +2 -0
- package/dist/owletto/dist/assets/connected._clientId.activity-Ckdz6I0y.js +2 -0
- package/dist/owletto/dist/assets/connected._clientId.index-CNxafNeo.js +2 -0
- package/dist/owletto/dist/assets/connection-C3XXFEqh.js +2 -0
- package/dist/owletto/dist/assets/connection-feed-detail-CIJJLDP8.js +2 -0
- package/dist/owletto/dist/assets/connection-label-BobuYiAG.js +1 -0
- package/dist/owletto/dist/assets/connections-browser-CKZjzRz6.js +2 -0
- package/dist/owletto/dist/assets/{connector-provenance-BjKiUhYE.js → connector-provenance-8-d8hl10.js} +2 -1
- package/dist/owletto/dist/assets/connector-scope-lists-CadPVsI3.js +2 -0
- package/dist/owletto/dist/assets/{connectors-Baejya0T.js → connectors-lvLJ30lo.js} +2 -1
- package/dist/owletto/dist/assets/consent-CdSvVCgx.js +2 -0
- package/dist/owletto/dist/assets/conversations-table-BdXoZAfc.js +2 -0
- package/dist/owletto/dist/assets/{core.esm-QA7BQgiK.js → core.esm-CYvgWCuv.js} +2 -1
- package/dist/owletto/dist/assets/create-0xW9eXxG.js +2 -0
- package/dist/owletto/dist/assets/create-B0qhrrX4.js +2 -0
- package/dist/owletto/dist/assets/create-CAfF-yI1.js +2 -0
- package/dist/owletto/dist/assets/create-automation-form-CtSSeYj3.js +3 -0
- package/dist/owletto/dist/assets/create._connectorKey-i6xxkWKV.js +2 -0
- package/dist/owletto/dist/assets/{cronstrue-2GHCtD7h.js → cronstrue-n4qGUraE.js} +2 -1
- package/dist/owletto/dist/assets/deployments-4Itm35Xc.js +2 -0
- package/dist/owletto/dist/assets/deployments-RvUdVkj3.js +2 -0
- package/dist/owletto/dist/assets/{deployments-body-Bm2upStd.js → deployments-body-BMp7UsMo.js} +2 -1
- package/dist/owletto/dist/assets/device-CPU6CjkJ.js +2 -0
- package/dist/owletto/dist/assets/device-pin-tombstone-CrjG7gPo.js +2 -0
- package/dist/owletto/dist/assets/device._deviceId-Cs3ZmXWo.js +2 -0
- package/dist/owletto/dist/assets/{entity-options-CrbS6K-i.js → entity-options-uXjgT7y9.js} +2 -1
- package/dist/owletto/dist/assets/entity-page-Dc0LGr5U.js +2 -0
- package/dist/owletto/dist/assets/entity-type-page-CwZxa0BR.js +2 -0
- package/dist/owletto/dist/assets/event-detail-ve2d6Gbb.js +2 -0
- package/dist/owletto/dist/assets/events-feed-BtvhZF1f.js +2 -0
- package/dist/owletto/dist/assets/filter-editors-Cj-v6NtH.js +2 -0
- package/dist/owletto/dist/assets/full-page-spinner-DqpH99np.js +2 -0
- package/dist/owletto/dist/assets/guardrails-HFo2Ut8B.js +2 -0
- package/dist/owletto/dist/assets/identity-BigVSBCl.js +2 -0
- package/dist/owletto/dist/assets/index-B9uPN6FC.js +2 -0
- package/dist/owletto/dist/assets/index-BLEcy9-T.css +1 -0
- package/dist/owletto/dist/assets/index-BQVliQW1.js +2 -0
- package/dist/owletto/dist/assets/index-BfedB4Rc.js +2 -0
- package/dist/owletto/dist/assets/index-CDz3-ieP.js +1 -0
- package/dist/owletto/dist/assets/index-CUw3aKBI.js +2 -0
- package/dist/owletto/dist/assets/index-CXhxUkv3.js +2 -0
- package/dist/owletto/dist/assets/index-Cr5hwh-C.js +7950 -0
- package/dist/owletto/dist/assets/index-CzkTV4ZQ.js +2 -0
- package/dist/owletto/dist/assets/index-DKSx8JN_.js +2 -0
- package/dist/owletto/dist/assets/index-DVk7Ug0d.js +2 -0
- package/dist/owletto/dist/assets/index-DmZuKGf8.js +2 -0
- package/dist/owletto/dist/assets/index-DtqBFgK5.js +1 -0
- package/dist/owletto/dist/assets/index-Hio-HRfo.js +2 -0
- package/dist/owletto/dist/assets/{index-Cf0GJoiG.js → index-ICgKp3YK.js} +2 -1
- package/dist/owletto/dist/assets/index-Vcq4gwWv.js +1 -0
- package/dist/owletto/dist/assets/index-cPcroOH0.js +2 -0
- package/dist/owletto/dist/assets/{index-DlepU3cY.js → index-n7sTbNv4.js} +2 -1
- package/dist/owletto/dist/assets/index-rrnUF981.js +1 -0
- package/dist/owletto/dist/assets/index-xiFpcWKv.js +2 -0
- package/dist/owletto/dist/assets/json-diff-DBoag_OS.js +4 -0
- package/dist/owletto/dist/assets/{list-skeleton-BtWn2eo2.js → list-skeleton-C_GuoxAH.js} +2 -1
- package/dist/owletto/dist/assets/login-Ci6ixHuL.js +2 -0
- package/dist/owletto/dist/assets/logout-CLGgeZB7.js +2 -0
- package/dist/owletto/dist/assets/member-scope-gate-B44INDPY.js +2 -0
- package/dist/owletto/dist/assets/memory-browse-page-DyQiRvzl.js +103 -0
- package/dist/owletto/dist/assets/model-selector-dAbDgJvx.js +2 -0
- package/dist/owletto/dist/assets/models-DpVP7ZwX.js +2 -0
- package/dist/owletto/dist/assets/new-BUb7AnEW.js +2 -0
- package/dist/owletto/dist/assets/new-BkdULx2r.js +2 -0
- package/dist/owletto/dist/assets/new-CHOr-EcI.js +2 -0
- package/dist/owletto/dist/assets/oauth-workspace-access-BxsjwgdH.js +2 -0
- package/dist/owletto/dist/assets/organization-gxGeDjIV.js +2 -0
- package/dist/owletto/dist/assets/peek-pane-content-CHoQHe2H.js +2 -0
- package/dist/owletto/dist/assets/{permissions-h_qSft1A.js → permissions-aPHaKLec.js} +2 -1
- package/dist/owletto/dist/assets/proposal-review-shell-UcZr87_Q.js +2 -0
- package/dist/owletto/dist/assets/public-shell-ready-DcnlADmj.js +2 -0
- package/dist/owletto/dist/assets/{recent-JiBNvZzD.js → recent-D-65Pgu-.js} +2 -1
- package/dist/owletto/dist/assets/record-activity-CBXH6v1d.js +2 -0
- package/dist/owletto/dist/assets/{renderer-DgPLyEbx.js → renderer-mEDnVW0O.js} +28 -27
- package/dist/owletto/dist/assets/reset-password-uX_V6bip.js +2 -0
- package/dist/owletto/dist/assets/runs-C0rCgGwX.js +2 -0
- package/dist/owletto/dist/assets/runs-panel-Du1JMjg5.js +2 -0
- package/dist/owletto/dist/assets/runs-table-syPJ6r6T.js +2 -0
- package/dist/owletto/dist/assets/settings-9NkNA1G1.js +2 -0
- package/dist/owletto/dist/assets/settings-E-10sLQX.js +2 -0
- package/dist/owletto/dist/assets/skill-editor-D_W3QlRz.js +1 -0
- package/dist/owletto/dist/assets/skills-D2Ri9b4f.js +2 -0
- package/dist/owletto/dist/assets/source-record-panels-CPyzlfD1.js +2 -0
- package/dist/owletto/dist/assets/status-dot-B-EWMgq6.js +2 -0
- package/dist/owletto/dist/assets/tabs-DqIIkCX-.js +2 -0
- package/dist/owletto/dist/assets/{use-mention-search-B4DfZFm5.js → use-mention-search-By8RZyKW.js} +3 -2
- package/dist/owletto/dist/assets/view-param-filters-CqLZQrnO.js +2 -0
- package/dist/owletto/dist/assets/workspace-label-o_QfBuCM.js +2 -0
- package/dist/owletto/dist/index.html +46 -4
- package/dist/providers.json +1 -1
- package/dist/server-main.bundle.mjs +137029 -133673
- package/npm-shrinkwrap.json +612 -645
- package/package.json +4 -3
- package/vendor/connector-sdk/dist/browser-handoff-banner.d.ts +39 -0
- package/vendor/connector-sdk/dist/browser-handoff-banner.js +175 -0
- package/vendor/connector-sdk/dist/browser-requirement.d.ts +36 -0
- package/vendor/connector-sdk/dist/browser-requirement.js +60 -0
- package/vendor/connector-sdk/dist/browser-source-read.d.ts +52 -0
- package/vendor/connector-sdk/dist/browser-source-read.js +107 -0
- package/vendor/connector-sdk/dist/connector-runtime.d.ts +3 -1
- package/vendor/connector-sdk/dist/connector-runtime.js +10 -0
- package/vendor/connector-sdk/dist/connector-types.d.ts +169 -45
- package/vendor/connector-sdk/dist/define-connector.d.ts +4 -2
- package/vendor/connector-sdk/dist/define-connector.js +3 -0
- package/vendor/connector-sdk/dist/index.d.ts +8 -2
- package/vendor/connector-sdk/dist/index.js +3 -0
- package/vendor/connector-sdk/dist/reaction-client-types.d.ts +16 -21
- package/vendor/connector-sdk/dist/reaction-client-types.typecheck.d.ts +5 -0
- package/vendor/connector-sdk/package.json +13 -1
- package/vendor/core/dist/agent-policy.js +1 -1
- package/vendor/core/dist/agent-store.d.ts +2 -0
- package/vendor/core/dist/agent-tooling.d.ts +1 -1
- package/vendor/core/dist/agent-tooling.js +1 -1
- package/vendor/core/dist/capabilities.d.ts +1 -1
- package/vendor/core/dist/capabilities.js +2 -1
- package/vendor/core/dist/connector-query-errors.d.ts +32 -0
- package/vendor/core/dist/connector-query-errors.js +41 -1
- package/vendor/core/dist/contracts/agent-settings.d.ts +0 -11
- package/vendor/core/dist/contracts/agent-settings.js +1 -7
- package/vendor/core/dist/contracts/tools/collection-presentation.d.ts +93 -0
- package/vendor/core/dist/contracts/tools/collection-presentation.js +88 -0
- package/vendor/core/dist/contracts/tools/collection-selection.d.ts +47 -0
- package/vendor/core/dist/contracts/tools/collection-selection.js +74 -0
- package/vendor/core/dist/contracts/tools/manage-agents.d.ts +10 -4
- package/vendor/core/dist/contracts/tools/manage-auth-profiles.d.ts +1 -1
- package/vendor/core/dist/contracts/tools/manage-auth-profiles.js +5 -1
- package/vendor/core/dist/contracts/tools/manage-automations.d.ts +19 -4
- package/vendor/core/dist/contracts/tools/manage-automations.js +25 -8
- package/vendor/core/dist/contracts/tools/manage-connections.d.ts +1 -0
- package/vendor/core/dist/contracts/tools/manage-connections.js +3 -0
- package/vendor/core/dist/contracts/tools/manage-conversations.js +2 -2
- package/vendor/core/dist/contracts/tools/manage-entity-schema.d.ts +11 -0
- package/vendor/core/dist/contracts/tools/manage-entity-schema.js +42 -3
- package/vendor/core/dist/contracts/tools/manage-entity.d.ts +181 -152
- package/vendor/core/dist/contracts/tools/manage-entity.js +118 -162
- package/vendor/core/dist/contracts/tools/manage-feeds.d.ts +14 -0
- package/vendor/core/dist/contracts/tools/manage-feeds.js +17 -0
- package/vendor/core/dist/contracts/tools/manage-operations.d.ts +41 -3
- package/vendor/core/dist/contracts/tools/manage-operations.js +40 -2
- package/vendor/core/dist/contracts/tools/manage-views.d.ts +182 -7
- package/vendor/core/dist/contracts/tools/manage-views.js +49 -13
- package/vendor/core/dist/contracts/tools/read-knowledge.d.ts +11 -2
- package/vendor/core/dist/contracts/tools/read-knowledge.js +23 -3
- package/vendor/core/dist/contracts/tools/save-memory.d.ts +3 -6
- package/vendor/core/dist/contracts/tools/save-memory.js +2 -6
- package/vendor/core/dist/contracts/tools/view-attach.d.ts +2 -1
- package/vendor/core/dist/contracts/tools/view-attach.js +7 -2
- package/vendor/core/dist/contracts/worker/protocol.d.ts +130 -159
- package/vendor/core/dist/contracts/worker/protocol.js +88 -76
- package/vendor/core/dist/device-pin-tombstones.d.ts +44 -0
- package/vendor/core/dist/device-pin-tombstones.js +57 -0
- package/vendor/core/dist/index.d.ts +5 -5
- package/vendor/core/dist/index.js +4 -6
- package/vendor/core/dist/json-template.d.ts +6 -10
- package/vendor/core/dist/json-template.js +5 -9
- package/vendor/core/dist/logger.js +17 -26
- package/vendor/core/dist/shell-safety.d.ts +9 -0
- package/vendor/core/dist/shell-safety.js +154 -0
- package/vendor/core/dist/suggestions.d.ts +1 -1
- package/vendor/core/dist/suggestions.js +1 -1
- package/vendor/core/dist/tool-trace-summary.d.ts +1 -1
- package/vendor/core/dist/tool-trace-summary.js +1 -1
- package/vendor/core/dist/types.d.ts +1 -3
- package/vendor/core/dist/utils/diagnostic-scrubber.d.ts +7 -0
- package/vendor/core/dist/utils/diagnostic-scrubber.js +437 -0
- package/vendor/core/dist/worker/auth.d.ts +44 -6
- package/vendor/core/dist/worker/auth.js +44 -11
- package/vendor/core/dist/worker/wire.d.ts +0 -10
- package/vendor/core/package.json +20 -11
- package/vendor/views/dist/api.d.ts +39 -29
- package/vendor/views/dist/api.js +110 -83
- package/vendor/views/dist/bridge.d.ts +4 -0
- package/vendor/views/dist/bridge.js +15 -0
- package/vendor/views/dist/index.d.ts +1 -0
- package/vendor/views/dist/index.js +0 -7
- package/vendor/views/package.json +4 -1
- package/dist/owletto/dist/assets/_-CLhipgJI.js +0 -1
- package/dist/owletto/dist/assets/_-D0ZVGAIA.js +0 -2
- package/dist/owletto/dist/assets/_agentId-BLXUf3ot.js +0 -1
- package/dist/owletto/dist/assets/_agentId-DnI66MF3.js +0 -1
- package/dist/owletto/dist/assets/_automationId-ziwseLb7.js +0 -1
- package/dist/owletto/dist/assets/_connectorKey._connectionId-B6V3ySFK.js +0 -1
- package/dist/owletto/dist/assets/_connectorKey.index-CR5u_dtt.js +0 -1
- package/dist/owletto/dist/assets/_conversationId-FBMYmOl8.js +0 -1
- package/dist/owletto/dist/assets/_deploymentId-DNTXbT_m.js +0 -1
- package/dist/owletto/dist/assets/_name-B37LKIxH.js +0 -1
- package/dist/owletto/dist/assets/_owner-BxYumqC2.js +0 -1
- package/dist/owletto/dist/assets/_shape-Bxz-04jR.js +0 -1
- package/dist/owletto/dist/assets/_skillKey-D5MFbiw2.js +0 -1
- package/dist/owletto/dist/assets/_slug-Dlhit09k.js +0 -1
- package/dist/owletto/dist/assets/_viewKey-C6535i-t.js +0 -1
- package/dist/owletto/dist/assets/_viewKey-CQCtY3Y8.js +0 -1
- package/dist/owletto/dist/assets/_viewKey-CxKfKbRa.js +0 -1
- package/dist/owletto/dist/assets/accept-invitation-BQQwec3R.js +0 -1
- package/dist/owletto/dist/assets/activity-route-view-BwThvdGs.js +0 -1
- package/dist/owletto/dist/assets/agent-card-controls-B3RhzsPz.js +0 -1
- package/dist/owletto/dist/assets/agent-connect-pages-BO4wQn4L.js +0 -1
- package/dist/owletto/dist/assets/agent-editor-form-BYC4uSNz.js +0 -1
- package/dist/owletto/dist/assets/agent-guardrails-route-Dp02G1AQ.js +0 -1
- package/dist/owletto/dist/assets/agent-loading-shells-OagauQzV.js +0 -1
- package/dist/owletto/dist/assets/agent-permissions-matrix-B9Ho3P1t.js +0 -1
- package/dist/owletto/dist/assets/agent-skills-route-B4VUnVi0.js +0 -1
- package/dist/owletto/dist/assets/agent-subpage-shell-Dz8I-GUt.js +0 -1
- package/dist/owletto/dist/assets/agent-thread-B9-cdkaV.js +0 -8
- package/dist/owletto/dist/assets/agent-thread-storage-U6htL3ad.js +0 -1
- package/dist/owletto/dist/assets/agents-D0CIg4b9.js +0 -1
- package/dist/owletto/dist/assets/agents-workbench-C2sr5h82.js +0 -1
- package/dist/owletto/dist/assets/app-bridge-BH3g2mKG.js +0 -127
- package/dist/owletto/dist/assets/app._appId-DLsJ_QWS.js +0 -1
- package/dist/owletto/dist/assets/automation-detail-content-9Rjb_I9j.js +0 -1
- package/dist/owletto/dist/assets/automations-D0CIg4b9.js +0 -1
- package/dist/owletto/dist/assets/calendar-DAiyi1ZL.js +0 -1
- package/dist/owletto/dist/assets/claim-CYHnUF7G.js +0 -1
- package/dist/owletto/dist/assets/clients-Cp1BJ28u.js +0 -1
- package/dist/owletto/dist/assets/code-editor-CYsR2VBP.js +0 -15
- package/dist/owletto/dist/assets/connect-CZip2g_B.js +0 -1
- package/dist/owletto/dist/assets/connect._clientId-CEKY8Dnv.js +0 -1
- package/dist/owletto/dist/assets/connected._clientId-C5xRjxNO.js +0 -1
- package/dist/owletto/dist/assets/connection-C06HZ241.js +0 -1
- package/dist/owletto/dist/assets/connection-feed-detail-D1whY5hL.js +0 -1
- package/dist/owletto/dist/assets/consent-CfYDldcF.js +0 -1
- package/dist/owletto/dist/assets/create-C3P-3_8O.js +0 -1
- package/dist/owletto/dist/assets/create-CwnrPUEw.js +0 -1
- package/dist/owletto/dist/assets/create-DOScS9Gl.js +0 -1
- package/dist/owletto/dist/assets/create-automation-form-CuxiIRCF.js +0 -2
- package/dist/owletto/dist/assets/create._connectorKey-Bjv3lCf8.js +0 -1
- package/dist/owletto/dist/assets/deployments-ByBv1DW-.js +0 -1
- package/dist/owletto/dist/assets/deployments-C-_ECORv.js +0 -1
- package/dist/owletto/dist/assets/device-B0i7Xp8y.js +0 -1
- package/dist/owletto/dist/assets/device-automation-BIjs7DZJ.js +0 -1
- package/dist/owletto/dist/assets/device-pin-tombstone-Bd6vS2zu.js +0 -1
- package/dist/owletto/dist/assets/device-rows-Bwf8qDte.js +0 -1
- package/dist/owletto/dist/assets/device._deviceId-DJLAesm3.js +0 -1
- package/dist/owletto/dist/assets/entity-page-ijZe_1-6.js +0 -1
- package/dist/owletto/dist/assets/entity-type-page-onp2Tk_E.js +0 -1
- package/dist/owletto/dist/assets/event-page-C0B2UDY-.js +0 -1
- package/dist/owletto/dist/assets/events-feed-DK35T4g7.js +0 -1
- package/dist/owletto/dist/assets/full-page-spinner-Dd8eEaxq.js +0 -1
- package/dist/owletto/dist/assets/guardrails-DKO8_J-G.js +0 -1
- package/dist/owletto/dist/assets/identity-CKM54vrM.js +0 -1
- package/dist/owletto/dist/assets/index--VmN5WxW.js +0 -1
- package/dist/owletto/dist/assets/index-B2AmRqYh.js +0 -7898
- package/dist/owletto/dist/assets/index-B_rcEgFX.js +0 -1
- package/dist/owletto/dist/assets/index-BmAuAhub.css +0 -1
- package/dist/owletto/dist/assets/index-BmhGe6-Z.js +0 -1
- package/dist/owletto/dist/assets/index-C1dJSGrL.js +0 -1
- package/dist/owletto/dist/assets/index-CAFw4qCb.js +0 -1
- package/dist/owletto/dist/assets/index-CCcc_xBw.js +0 -52
- package/dist/owletto/dist/assets/index-CLU3gXVm.js +0 -1
- package/dist/owletto/dist/assets/index-CqQVnAY-.js +0 -1
- package/dist/owletto/dist/assets/index-CxT0uyIe.js +0 -1
- package/dist/owletto/dist/assets/index-DR08e6Ec.js +0 -1
- package/dist/owletto/dist/assets/index-DYb9L5FC.js +0 -1
- package/dist/owletto/dist/assets/index-SUUcQGT-.js +0 -1
- package/dist/owletto/dist/assets/index-SdiFOfR1.js +0 -1
- package/dist/owletto/dist/assets/index-zcfi5r1l.js +0 -1
- package/dist/owletto/dist/assets/json-diff-ClBBYBQD.js +0 -3
- package/dist/owletto/dist/assets/login-d3PdO-qV.js +0 -1
- package/dist/owletto/dist/assets/logout-DgckxwLn.js +0 -1
- package/dist/owletto/dist/assets/member-scope-gate-DXOCfx-v.js +0 -1
- package/dist/owletto/dist/assets/memory-browse-page-CeAnKoTR.js +0 -101
- package/dist/owletto/dist/assets/missing-view-DrZ8m8yo.js +0 -1
- package/dist/owletto/dist/assets/model-selector-CapL1ARf.js +0 -1
- package/dist/owletto/dist/assets/models-CB8mhq7j.js +0 -1
- package/dist/owletto/dist/assets/new-BBUb-VR4.js +0 -1
- package/dist/owletto/dist/assets/new-CBLJ25_w.js +0 -1
- package/dist/owletto/dist/assets/new-tTXB4qBW.js +0 -1
- package/dist/owletto/dist/assets/oauth-workspace-access-DearynqZ.js +0 -1
- package/dist/owletto/dist/assets/organization-BgdBg-PJ.js +0 -1
- package/dist/owletto/dist/assets/pending-seed-CPbfgnLX.js +0 -1
- package/dist/owletto/dist/assets/proposal-review-shell-D4YNrrye.js +0 -1
- package/dist/owletto/dist/assets/reset-password-B8tWPtIj.js +0 -1
- package/dist/owletto/dist/assets/runs-oHveuEUB.js +0 -1
- package/dist/owletto/dist/assets/runs-panel-C56GDaJm.js +0 -1
- package/dist/owletto/dist/assets/runs-table-BUKDjiBc.js +0 -1
- package/dist/owletto/dist/assets/schema-value-normalization-3JuM_r1H.js +0 -1
- package/dist/owletto/dist/assets/settings-DaKg6U5O.js +0 -1
- package/dist/owletto/dist/assets/settings-DhnRi2nq.js +0 -1
- package/dist/owletto/dist/assets/skills-BpQncuMC.js +0 -1
- package/dist/owletto/dist/assets/switch-BQ40_DMb.js +0 -1
- package/dist/owletto/dist/assets/use-applied-views-B-Z-Weji.js +0 -1
- package/dist/owletto/dist/assets/view-frame-C7ciEoLo.js +0 -1
- package/vendor/core/dist/contracts/worker/device-chat.d.ts +0 -4
- package/vendor/core/dist/contracts/worker/device-chat.js +0 -26
- package/vendor/core/dist/sentry.d.ts +0 -26
- package/vendor/core/dist/sentry.js +0 -133
- package/vendor/core/dist/tool-policy.d.ts +0 -74
- package/vendor/core/dist/tool-policy.js +0 -305
- package/vendor/core/dist/utils/sentry-scrubber.d.ts +0 -29
- package/vendor/core/dist/utils/sentry-scrubber.js +0 -228
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ListAutomationsResultSchema = exports.ListAutomationsSchema = exports.ManageAutomationsResultSchema = exports.AutomationTriggerResultSchema = exports.AutomationTriggerExecutionSchema = exports.AutomationClaimNextWindowResultSchema = exports.AutomationClaimNextWindowContextSchema = exports.ManageAutomationsPromotedEntitySchema = exports.ManageAutomationsFeedbackItemSchema = exports.ManageAutomationsDeleteResultSchema = exports.ManageAutomationsSchema = exports.AutomationSkillSchema = exports.SourceSchema = exports.AutomationDeliveryTargetSchema = exports.AutomationExecutionConfigSchema = exports.AutomationScriptExecutorSchema = exports.AutomationOutputsSchema = exports.AutomationOutputSchema = exports.AutomationEventOutputSchema = exports.AutomationEntityOutputSchema = exports.AutomationSourceSchema = exports.AutomationTriggerSchema = exports.AutomationScheduleTriggerSchema = exports.AutomationWorkspaceEventTriggerSchema = exports.AutomationEventTriggerSchema = void 0;
|
|
3
|
+
exports.ListAutomationsResultSchema = exports.ListAutomationsSchema = exports.ManageAutomationsResultSchema = exports.AutomationTriggerResultSchema = exports.AutomationTriggerExecutionSchema = exports.AutomationClaimNextWindowResultSchema = exports.AutomationClaimNextWindowContextSchema = exports.ManageAutomationsPromotedEntitySchema = exports.ManageAutomationsFeedbackItemSchema = exports.ManageAutomationsDeleteResultSchema = exports.ManageAutomationsSchema = exports.AutomationSkillSchema = exports.SourceSchema = exports.AutomationDeliveryTargetSchema = exports.AutomationExecutionConfigSchema = exports.AutomationExternalExecutorSchema = exports.AutomationScriptExecutorSchema = exports.AutomationOutputsSchema = exports.AutomationOutputSchema = exports.AutomationEventOutputSchema = exports.AutomationEntityOutputSchema = exports.AutomationSourceSchema = exports.AutomationTriggerSchema = exports.AutomationScheduleTriggerSchema = exports.AutomationWorkspaceEventTriggerSchema = exports.AutomationEventTriggerSchema = void 0;
|
|
4
4
|
exports.resolvedEventExecution = resolvedEventExecution;
|
|
5
5
|
exports.normalizeWorkspaceEventTrigger = normalizeWorkspaceEventTrigger;
|
|
6
6
|
exports.normalizeAutomationTags = normalizeAutomationTags;
|
|
@@ -117,7 +117,10 @@ exports.AutomationScheduleTriggerSchema = typebox_1.Type.Object({
|
|
|
117
117
|
active_run: typebox_1.Type.Optional(typebox_1.Type.Literal("coalesce", {
|
|
118
118
|
default: "coalesce",
|
|
119
119
|
})),
|
|
120
|
-
skip_if_unchanged: typebox_1.Type.Optional(typebox_1.Type.Boolean({
|
|
120
|
+
skip_if_unchanged: typebox_1.Type.Optional(typebox_1.Type.Boolean({
|
|
121
|
+
default: true,
|
|
122
|
+
description: "Native executors may skip unchanged source windows. External executors always receive due windows and decide whether to emit output.",
|
|
123
|
+
})),
|
|
121
124
|
}, { additionalProperties: false });
|
|
122
125
|
exports.AutomationTriggerSchema = typebox_1.Type.Union([
|
|
123
126
|
exports.AutomationEventTriggerSchema,
|
|
@@ -178,6 +181,13 @@ exports.AutomationEntityOutputSchema = typebox_1.Type.Object({
|
|
|
178
181
|
* convention two concurrent runs can silently break. Rows carrying no identity
|
|
179
182
|
* are inert — never a supersede target — so a keyed output cannot capture an
|
|
180
183
|
* unrelated event that happens to share metadata.
|
|
184
|
+
*
|
|
185
|
+
* A row may carry `entity_ids` to link that event to its own records instead
|
|
186
|
+
* of the Automation's bound entities (replace, not add). Linkage is not part
|
|
187
|
+
* of the identity, so a later version of a key carries its own row's
|
|
188
|
+
* `entity_ids`. One output array cannot emit the same key twice even for
|
|
189
|
+
* different entities. Put the record's id in a metadata key field when each
|
|
190
|
+
* record needs its own current event.
|
|
181
191
|
*/
|
|
182
192
|
exports.AutomationEventOutputSchema = typebox_1.Type.Object({
|
|
183
193
|
event: typebox_1.Type.String({
|
|
@@ -189,7 +199,7 @@ exports.AutomationEventOutputSchema = typebox_1.Type.Object({
|
|
|
189
199
|
minItems: 1,
|
|
190
200
|
maxItems: 4,
|
|
191
201
|
uniqueItems: true,
|
|
192
|
-
description: "One to four metadata fields whose exact values compose each draft's stable identity across Automation runs (e.g. channel + mode for per-channel voice profiles). Every key field must be present in every draft's `metadata` and be a non-blank string, safe integer, or boolean — the type is part of the identity, so 3 and \"3\" are different keys. Changing the fields, their order, or the semantic type changes identity and starts a new chain. When set, each run supersedes the current event carrying the same key values.",
|
|
202
|
+
description: "One to four metadata fields whose exact values compose each draft's stable identity across Automation runs (e.g. channel + mode for per-channel voice profiles). Every key field must be present in every draft's `metadata` and be a non-blank string, safe integer, or boolean — the type is part of the identity, so 3 and \"3\" are different keys. Changing the fields, their order, or the semantic type changes identity and starts a new chain. When set, each run supersedes the current event carrying the same key values. Row `entity_ids` are not part of the identity: include a record id in the key when each record needs its own current event.",
|
|
193
203
|
})),
|
|
194
204
|
}, { additionalProperties: false });
|
|
195
205
|
exports.AutomationOutputSchema = typebox_1.Type.Union([
|
|
@@ -200,7 +210,7 @@ exports.AutomationOutputsSchema = typebox_1.Type.Object({}, {
|
|
|
200
210
|
additionalProperties: exports.AutomationOutputSchema,
|
|
201
211
|
minProperties: 1,
|
|
202
212
|
maxProperties: 20,
|
|
203
|
-
description: "Named top-level arrays persisted after a completed window. Entity outputs are validated against their entity type; event rows require content and may include title, metadata, author, source_url, occurred_at, parent_event_id, payload_type, and
|
|
213
|
+
description: "Named top-level arrays persisted after a completed window. Entity outputs are validated against their entity type; event rows require content and may include title, metadata, author, source_url, occurred_at, parent_event_id, payload_type, idempotency_key, and entity_ids. entity_ids on a row replace the bound entities of the Automation for that row (omit to keep them); each id must be an entity in the same workspace the run may write, or the completion fails.",
|
|
204
214
|
});
|
|
205
215
|
exports.AutomationScriptExecutorSchema = typebox_1.Type.Object({
|
|
206
216
|
kind: typebox_1.Type.Literal("script"),
|
|
@@ -210,8 +220,15 @@ exports.AutomationScriptExecutorSchema = typebox_1.Type.Object({
|
|
|
210
220
|
additionalProperties: false,
|
|
211
221
|
description: "Run this TypeScript module directly in the Automation sandbox. Export default async (ctx, client). The runtime pins the script and window at activation and completes the run only after success. SDK writes retain the owning agent's permissions. Use ctx.window.run_id for retry idempotency.",
|
|
212
222
|
});
|
|
223
|
+
exports.AutomationExternalExecutorSchema = typebox_1.Type.Object({ kind: typebox_1.Type.Literal("external") }, {
|
|
224
|
+
additionalProperties: false,
|
|
225
|
+
description: "An authorized external MCP client claims and completes this Automation. Manual and schedule window activations only. The schedule remains authoritative; Lobu does not start a hosted agent or device CLI. managed_agent_id may retain the owning delivery principal.",
|
|
226
|
+
});
|
|
213
227
|
exports.AutomationExecutionConfigSchema = typebox_1.Type.Object({
|
|
214
|
-
executor: typebox_1.Type.Optional(
|
|
228
|
+
executor: typebox_1.Type.Optional(typebox_1.Type.Union([
|
|
229
|
+
exports.AutomationScriptExecutorSchema,
|
|
230
|
+
exports.AutomationExternalExecutorSchema,
|
|
231
|
+
])),
|
|
215
232
|
timeout_seconds: typebox_1.Type.Optional(typebox_1.Type.Integer({
|
|
216
233
|
minimum: 1,
|
|
217
234
|
maximum: 86400,
|
|
@@ -244,7 +261,7 @@ exports.AutomationExecutionConfigSchema = typebox_1.Type.Object({
|
|
|
244
261
|
})),
|
|
245
262
|
}, {
|
|
246
263
|
additionalProperties: false,
|
|
247
|
-
description: "[create/update] Per-Automation execution settings: a sandboxed script executor, device-worker CLI flags, or the server-side finalize-nudge budget. Omitted fields fall back to dispatcher/CLI/global defaults; pass null to clear.",
|
|
264
|
+
description: "[create/update] Per-Automation execution settings: an external MCP client, a sandboxed script executor, device-worker CLI flags, or the server-side finalize-nudge budget. Omitted fields fall back to dispatcher/CLI/global defaults; pass null to clear.",
|
|
248
265
|
});
|
|
249
266
|
exports.AutomationDeliveryTargetSchema = typebox_1.Type.Object({
|
|
250
267
|
connection_id: typebox_1.Type.Integer({
|
|
@@ -424,7 +441,7 @@ exports.ManageAutomationsSchema = typebox_1.Type.Object({
|
|
|
424
441
|
exports.AutomationOutputsSchema,
|
|
425
442
|
typebox_1.Type.Null(),
|
|
426
443
|
], {
|
|
427
|
-
description: '[create/create_version] Named durable outputs for window execution. `{ entity, key, name? }` validates and upserts entities; `{ event }` appends standard event drafts. The object key is the top-level extracted_data array name. Event rows require content and may include title, metadata, author, source_url, occurred_at, parent_event_id, payload_type, and
|
|
444
|
+
description: '[create/create_version] Named durable outputs for window execution. `{ entity, key, name? }` validates and upserts entities; `{ event }` appends standard event drafts. The object key is the top-level extracted_data array name. Event rows require content and may include title, metadata, author, source_url, occurred_at, parent_event_id, payload_type, idempotency_key, and entity_ids. entity_ids on a row replace the bound entities of the Automation for that row (omit to keep them); each id must be an entity in the same workspace the run may write, or the completion fails. Event triggers on an Automation with outputs must use execution="window". Pass null on create_version to remove all declared outputs.',
|
|
428
445
|
})),
|
|
429
446
|
triggers: typebox_1.Type.Optional(typebox_1.Type.Array(exports.AutomationTriggerSchema, {
|
|
430
447
|
minItems: 0,
|
|
@@ -432,7 +449,7 @@ exports.ManageAutomationsSchema = typebox_1.Type.Object({
|
|
|
432
449
|
description: "[create/update/create_version] Canonical Automation activations. Use a schedule trigger for cadence and timezone.",
|
|
433
450
|
})),
|
|
434
451
|
managed_agent_id: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.String({ minLength: 1 }), typebox_1.Type.Null()], {
|
|
435
|
-
description: "[create/update] Optional managed agent that
|
|
452
|
+
description: "[create/update] Optional managed agent that owns this Automation. Normally executes its runs; an explicit external executor retains the agent only as the permission and delivery principal. Null clears the assignment. Without a managed agent, device pin, or external executor, an Automation is manual-only. [list] Optional owner filter.",
|
|
436
453
|
})),
|
|
437
454
|
status: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.Literal("active"), typebox_1.Type.Literal("archived")], {
|
|
438
455
|
description: "[list] Optional status filter. Omit to include active Automations only.",
|
|
@@ -72,6 +72,7 @@ export declare const UpdateAction: import("@sinclair/typebox").TObject<{
|
|
|
72
72
|
entity_ids: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TNumber>>;
|
|
73
73
|
device_worker_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
74
74
|
replace_config: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
75
|
+
visibility: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"org">, import("@sinclair/typebox").TLiteral<"private">]>>;
|
|
75
76
|
}>;
|
|
76
77
|
export declare const ApplyChatConnectionAction: import("@sinclair/typebox").TObject<{
|
|
77
78
|
action: import("@sinclair/typebox").TLiteral<"apply_chat_connection">;
|
|
@@ -171,6 +171,9 @@ exports.UpdateAction = typebox_1.Type.Object({
|
|
|
171
171
|
replace_config: typebox_1.Type.Optional(typebox_1.Type.Boolean({
|
|
172
172
|
description: "When true and `config` is provided, replace the stored connection config with exactly that object (declarative apply); when false/omitted, merge into the existing config (default).",
|
|
173
173
|
})),
|
|
174
|
+
visibility: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.Literal("org"), typebox_1.Type.Literal("private")], {
|
|
175
|
+
description: "Who can read through this connection: 'org' shares it with every workspace member, 'private' limits it to its creator. Only the connection's creator may change it, and a personal-credential connection (a user's own OAuth login or browser session) cannot be shared.",
|
|
176
|
+
})),
|
|
174
177
|
});
|
|
175
178
|
exports.ApplyChatConnectionAction = typebox_1.Type.Object({
|
|
176
179
|
action: typebox_1.Type.Literal("apply_chat_connection", {
|
|
@@ -24,11 +24,11 @@ exports.ListConversationsAction = typebox_1.Type.Object({
|
|
|
24
24
|
});
|
|
25
25
|
exports.GetConversationAction = typebox_1.Type.Object({
|
|
26
26
|
action: typebox_1.Type.Literal("get", {
|
|
27
|
-
description: "Fetch one conversation by
|
|
27
|
+
description: "Fetch one conversation by id, optionally scoped to a platform.",
|
|
28
28
|
}),
|
|
29
29
|
agent_id: AgentId,
|
|
30
30
|
platform: typebox_1.Type.Optional(typebox_1.Type.String({
|
|
31
|
-
description: 'Conversation platform ("web" for app-owned conversations, or a channel platform like "slack").
|
|
31
|
+
description: 'Conversation platform ("web" for app-owned conversations, or a channel platform like "slack"). When omitted, resolves a unique active match for this agent across platforms; ambiguous ids return not found.',
|
|
32
32
|
})),
|
|
33
33
|
conversation_id: ConversationId,
|
|
34
34
|
});
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
import { type Static } from "@sinclair/typebox";
|
|
2
|
+
export interface EntityResolutionRule {
|
|
3
|
+
fields: string[];
|
|
4
|
+
normalizer: "email" | "phone" | "exact";
|
|
5
|
+
onMatch: "auto_link" | "review";
|
|
6
|
+
}
|
|
7
|
+
export declare class InvalidEntityResolutionPolicyError extends Error {
|
|
8
|
+
constructor(message: string);
|
|
9
|
+
}
|
|
10
|
+
/** Validate the whole policy before normalizing; dropping a field can weaken a match. */
|
|
11
|
+
export declare function parseEntityResolutionPolicy(value: unknown): EntityResolutionRule[];
|
|
2
12
|
/** Derived-entity backing: a read-only SQL view. */
|
|
3
13
|
export declare const BackingInputSchema: import("@sinclair/typebox").TObject<{
|
|
4
14
|
sql: import("@sinclair/typebox").TString;
|
|
@@ -28,6 +38,7 @@ export declare const ManageEntitySchemaSchema: import("@sinclair/typebox").TObje
|
|
|
28
38
|
}>]>>;
|
|
29
39
|
metrics_config: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNull, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>]>>;
|
|
30
40
|
rules_source: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNull, import("@sinclair/typebox").TString]>>;
|
|
41
|
+
purpose: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TLiteral<"identity">>;
|
|
31
42
|
is_symmetric: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
32
43
|
inverse_type_slug: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
33
44
|
status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"active">, import("@sinclair/typebox").TLiteral<"archived">]>>;
|
|
@@ -1,7 +1,43 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ManageEntitySchemaResultSchema = exports.ManageEntitySchemaProposalSchema = exports.EntitySchemaPolicyActionSchema = exports.RelationshipTypeRuleRowSchema = exports.RelationshipTypeRowSchema = exports.AuditEntrySchema = exports.EntityTypeRowSchema = exports.ViewTemplateTabSchema = exports.ManageEntitySchemaSchema = exports.BackingInputSchema = void 0;
|
|
3
|
+
exports.ManageEntitySchemaResultSchema = exports.ManageEntitySchemaProposalSchema = exports.EntitySchemaPolicyActionSchema = exports.RelationshipTypeRuleRowSchema = exports.RelationshipTypeRowSchema = exports.AuditEntrySchema = exports.EntityTypeRowSchema = exports.ViewTemplateTabSchema = exports.ManageEntitySchemaSchema = exports.BackingInputSchema = exports.InvalidEntityResolutionPolicyError = void 0;
|
|
4
|
+
exports.parseEntityResolutionPolicy = parseEntityResolutionPolicy;
|
|
4
5
|
const typebox_1 = require("@sinclair/typebox");
|
|
6
|
+
class InvalidEntityResolutionPolicyError extends Error {
|
|
7
|
+
constructor(message) {
|
|
8
|
+
super(message);
|
|
9
|
+
this.name = "InvalidEntityResolutionPolicyError";
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.InvalidEntityResolutionPolicyError = InvalidEntityResolutionPolicyError;
|
|
13
|
+
/** Validate the whole policy before normalizing; dropping a field can weaken a match. */
|
|
14
|
+
function parseEntityResolutionPolicy(value) {
|
|
15
|
+
if (!value ||
|
|
16
|
+
typeof value !== "object" ||
|
|
17
|
+
Array.isArray(value) ||
|
|
18
|
+
!Array.isArray(value.rules)) {
|
|
19
|
+
throw new InvalidEntityResolutionPolicyError("expected rules to be an array");
|
|
20
|
+
}
|
|
21
|
+
return Array.from(value.rules, (candidate, index) => {
|
|
22
|
+
const rule = candidate && typeof candidate === "object" && !Array.isArray(candidate)
|
|
23
|
+
? candidate
|
|
24
|
+
: {};
|
|
25
|
+
if (!Array.isArray(rule.fields) ||
|
|
26
|
+
rule.fields.length === 0 ||
|
|
27
|
+
!Array.from(rule.fields).every((field) => typeof field === "string" && field.trim().length > 0) ||
|
|
28
|
+
(rule.normalizer !== "email" &&
|
|
29
|
+
rule.normalizer !== "phone" &&
|
|
30
|
+
rule.normalizer !== "exact") ||
|
|
31
|
+
(rule.onMatch !== "auto_link" && rule.onMatch !== "review")) {
|
|
32
|
+
throw new InvalidEntityResolutionPolicyError(`rule ${index}: expected { fields: nonempty string[], normalizer: "email"|"phone"|"exact", onMatch: "auto_link"|"review" }`);
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
fields: [...new Set(rule.fields.map((field) => field.trim()))],
|
|
36
|
+
normalizer: rule.normalizer,
|
|
37
|
+
onMatch: rule.onMatch,
|
|
38
|
+
};
|
|
39
|
+
});
|
|
40
|
+
}
|
|
5
41
|
// ============================================
|
|
6
42
|
// Typebox Schema
|
|
7
43
|
// ============================================
|
|
@@ -59,7 +95,7 @@ exports.ManageEntitySchemaSchema = typebox_1.Type.Object({
|
|
|
59
95
|
name: typebox_1.Type.Optional(typebox_1.Type.String({ description: "[create/update] Display name", minLength: 1 })),
|
|
60
96
|
description: typebox_1.Type.Optional(typebox_1.Type.String({ description: "[create/update] Description" })),
|
|
61
97
|
metadata_schema: typebox_1.Type.Optional(typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Unknown(), {
|
|
62
|
-
description: "[create/update] JSON Schema for metadata validation",
|
|
98
|
+
description: "[create/update] JSON Schema for metadata validation. Entity property annotations: x-facet: true exposes scalar enum values as collection filters; x-sidebar: true also exposes those values as navigation shortcuts. x-enum-labels maps stringified enum values to display labels. x-table-label or title labels the attribute. These annotations do not grant access or define separate segments.",
|
|
63
99
|
})),
|
|
64
100
|
list_scope: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.Literal("accessible"), typebox_1.Type.Literal("organization")], {
|
|
65
101
|
description: "[list] accessible (default) includes the current org plus public schemas; organization returns only the bound org.",
|
|
@@ -78,7 +114,7 @@ exports.ManageEntitySchemaSchema = typebox_1.Type.Object({
|
|
|
78
114
|
interactions: typebox_1.Type.Optional(typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Object({ emits: typebox_1.Type.String() }))),
|
|
79
115
|
})),
|
|
80
116
|
], {
|
|
81
|
-
description: "[entity_type: create/update] Event semantic types this type produces, keyed by semantic_type slug. Each entry can have a description, optional metadataSchema (JSON Schema), optional jsonTemplate (render template), and optional interactions registry mapping template action names to emitted event kinds. Supplying an object replaces the entire registry: read the current value and merge before updating. `null` clears all kinds; omit to leave unchanged.",
|
|
117
|
+
description: "[entity_type: create/update] Event semantic types this type produces, keyed by semantic_type slug. Each entry can have a description, optional metadataSchema (JSON Schema), optional jsonTemplate (the event card's render template), and optional interactions registry mapping template action names to emitted event kinds. Author interactive dashboards as React views attached to the kind (views.set with attach [{ event_kind }]), not as jsonTemplate. Supplying an object replaces the entire registry: read the current value and merge before updating. `null` clears all kinds; omit to leave unchanged.",
|
|
82
118
|
})),
|
|
83
119
|
backing: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.Null(), exports.BackingInputSchema], {
|
|
84
120
|
description: "[entity_type: create/update] Makes the type DERIVED — a read-only SQL view. `{ sql }` runs over your org's internal tables; `{ sql, connection: <slug> }` runs LIVE against that connection's external database (read-only, no copy). `null` clears it (revert to a stored type); omit to leave unchanged. Read a derived type's rows by running its `backing_sql` (returned by `get`) through `query_sql` — and when `get` also returns a `backing_source`, pass it as `query_sql`'s `connection` so the view runs against the external DB instead of your internal tables. `get` also returns `measure_columns` (the view's aggregate columns, classified on read).",
|
|
@@ -90,6 +126,9 @@ exports.ManageEntitySchemaSchema = typebox_1.Type.Object({
|
|
|
90
126
|
description: "[entity_type: create/update] TypeScript write rules for this type, as source. The default export receives one row per write — `{ committed, patch, next, op, changed(field), deny(reason), escalate(fields, reason) }` — and may only NARROW what is allowed: there is no `allow`. Compiled server-side on save and executed at the entity write seam, so an illegal state is rejected no matter which caller proposed it. Note `patch` is the fully MERGED value set, not a delta, so compare against `committed` rather than testing for a key's presence. `null` clears the rules; omit to leave unchanged.",
|
|
91
127
|
})),
|
|
92
128
|
// Relationship type fields
|
|
129
|
+
purpose: typebox_1.Type.Optional(typebox_1.Type.Literal("identity", {
|
|
130
|
+
description: "[relationship_type: create/update] Governed stored identity association. Activate only after all server replicas support identity associations.",
|
|
131
|
+
})),
|
|
93
132
|
is_symmetric: typebox_1.Type.Optional(typebox_1.Type.Boolean({
|
|
94
133
|
description: "[relationship_type: create] Whether the relationship is symmetric (A↔B = B↔A). Default false. Create-only: affects relationship canonicalization/dedup for existing rows, so an update carrying is_symmetric is rejected (not silently dropped). To change it, create a new type and migrate.",
|
|
95
134
|
})),
|