@lobu/runtime-server 20.1.0 → 20.2.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/component.json +1 -1
- package/dist/connectors/chat-user-identity.ts +41 -0
- package/dist/connectors/google-identity.ts +11 -0
- package/dist/connectors/slack-identity.ts +19 -0
- package/dist/db/migrations/20260915030000_owner_dm_delivery_request_platform.sql +51 -0
- package/dist/dependencies.bun.lock +28 -30
- package/dist/owletto/dist/assets/{_-DdvHIadV.js → _-Ds4DyQjj.js} +2 -2
- package/dist/owletto/dist/assets/_-VmyR6aN_.js +1 -0
- package/dist/owletto/dist/assets/{_agentId-DbTBU4KZ.js → _agentId-BAVnp0c7.js} +1 -1
- package/dist/owletto/dist/assets/_agentId-Df-3rGi5.js +1 -0
- package/dist/owletto/dist/assets/{_automationId-C7dZzg6X.js → _automationId-D696vOjd.js} +1 -1
- package/dist/owletto/dist/assets/{_connectorKey._connectionId-NQf43Ew3.js → _connectorKey._connectionId-BAJGfcy7.js} +1 -1
- package/dist/owletto/dist/assets/{_connectorKey.index-D-0ZNsgM.js → _connectorKey.index-BBF8vGJS.js} +1 -1
- package/dist/owletto/dist/assets/{_conversationId-F5YmyLV9.js → _conversationId-Ci4rgrHm.js} +1 -1
- package/dist/owletto/dist/assets/{_deploymentId-3LTMi0ZT.js → _deploymentId-Iy-D5PDq.js} +1 -1
- package/dist/owletto/dist/assets/_name-CeGwb0oK.js +1 -0
- package/dist/owletto/dist/assets/{_owner-DglbbDEx.js → _owner-CFR1G8OX.js} +1 -1
- package/dist/owletto/dist/assets/_skillKey-DuLcQWBu.js +1 -0
- package/dist/owletto/dist/assets/{_slug-CnQDfsCE.js → _slug-CDSO20ac.js} +1 -1
- package/dist/owletto/dist/assets/{accept-invitation-Dgoyublh.js → accept-invitation-Db5jklHT.js} +1 -1
- package/dist/owletto/dist/assets/{activity-route-view-BNzKO6aD.js → activity-route-view-DVW3DoB7.js} +1 -1
- package/dist/owletto/dist/assets/{agent-card-controls-VJgcB5-0.js → agent-card-controls-CZO6GI0s.js} +1 -1
- package/dist/owletto/dist/assets/{agent-client-setup-list-C5KRNRw3.js → agent-client-setup-list-_chLOorY.js} +1 -1
- package/dist/owletto/dist/assets/{agent-connect-pages-BFSb6vmW.js → agent-connect-pages-DWBgSIYT.js} +1 -1
- package/dist/owletto/dist/assets/{agent-editor-form-CajEehVn.js → agent-editor-form-BTNlg0kQ.js} +1 -1
- package/dist/owletto/dist/assets/{agent-guardrails-route-CZ_rXj-3.js → agent-guardrails-route-B5uoMC6o.js} +1 -1
- package/dist/owletto/dist/assets/{agent-loading-shells-Dczhk067.js → agent-loading-shells-CLoLeFcB.js} +1 -1
- package/dist/owletto/dist/assets/{agent-permissions-matrix-DIVHvpZG.js → agent-permissions-matrix-TP00-MYL.js} +1 -1
- package/dist/owletto/dist/assets/{agent-skill-context-CxglCznW.js → agent-skill-context-D4a2QCoZ.js} +1 -1
- package/dist/owletto/dist/assets/{agent-skills-route-CatU8soC.js → agent-skills-route-KVDDTbJB.js} +1 -1
- package/dist/owletto/dist/assets/{agent-subpage-shell-DVSUdIBn.js → agent-subpage-shell-DuVYZvBE.js} +1 -1
- package/dist/owletto/dist/assets/{agent-thread-DnLUOzXk.js → agent-thread-CzCJU3-R.js} +1 -1
- package/dist/owletto/dist/assets/agents-DFs57C3c.js +1 -0
- package/dist/owletto/dist/assets/{agents-workbench-BOKifKIO.js → agents-workbench-C2bUlJP2.js} +1 -1
- package/dist/owletto/dist/assets/{app._appId-BXmITXO7.js → app._appId-D0_LQTJU.js} +1 -1
- package/dist/owletto/dist/assets/{automation-detail-content-wJC9hhmA.js → automation-detail-content-DWkdhnv2.js} +1 -1
- package/dist/owletto/dist/assets/automations-DFs57C3c.js +1 -0
- package/dist/owletto/dist/assets/{calendar-taCoBmAh.js → calendar-C0XpOHd8.js} +1 -1
- package/dist/owletto/dist/assets/{callback-CJxC8u_x.js → callback-CO_K9eR-.js} +1 -1
- package/dist/owletto/dist/assets/{card-kpw3EaKC.js → card-DeFQuU_J.js} +1 -1
- package/dist/owletto/dist/assets/{claim-DLHRN0bA.js → claim-CUpWOSie.js} +1 -1
- package/dist/owletto/dist/assets/{clients-R4JsT_Fz.js → clients-DhYr4lyL.js} +1 -1
- package/dist/owletto/dist/assets/{code-editor-D3X0yQdI.js → code-editor-BqGUZFt6.js} +1 -1
- package/dist/owletto/dist/assets/connect-Dtb-E5An.js +1 -0
- package/dist/owletto/dist/assets/connect._clientId-DWtceAAw.js +1 -0
- package/dist/owletto/dist/assets/{connected._clientId-ByH4etku.js → connected._clientId-CMe-wTuV.js} +1 -1
- package/dist/owletto/dist/assets/{connection-DdBkXNbX.js → connection-BgAlYjeV.js} +1 -1
- package/dist/owletto/dist/assets/{connection-feed-detail-DF93zx0A.js → connection-feed-detail-B3ePAinf.js} +1 -1
- package/dist/owletto/dist/assets/{connector-provenance-N3sc0nbo.js → connector-provenance-DgsDg0Z9.js} +1 -1
- package/dist/owletto/dist/assets/{connectors-Ckn_aoNE.js → connectors-CqPQPo9U.js} +1 -1
- package/dist/owletto/dist/assets/{consent-Bi6KCVtT.js → consent-bswcIzsf.js} +1 -1
- package/dist/owletto/dist/assets/{core.esm-CFYXLQXH.js → core.esm-DsLgjoel.js} +1 -1
- package/dist/owletto/dist/assets/create-CcXUdke7.js +1 -0
- package/dist/owletto/dist/assets/create-Cp6hMoeU.js +1 -0
- package/dist/owletto/dist/assets/{create-BiHpu2f4.js → create-Dwo04oWV.js} +1 -1
- package/dist/owletto/dist/assets/{create-automation-form-Cv2RHsQ6.js → create-automation-form-CJ4meayB.js} +1 -1
- package/dist/owletto/dist/assets/{create._connectorKey-Qynix_hA.js → create._connectorKey-CCBb2pil.js} +1 -1
- package/dist/owletto/dist/assets/{cronstrue-D7xlYtGk.js → cronstrue-ChFyC9ps.js} +1 -1
- package/dist/owletto/dist/assets/deployments-CjfFxyDA.js +1 -0
- package/dist/owletto/dist/assets/{deployments-body-BPCALbQe.js → deployments-body-Cg0KiWGr.js} +1 -1
- package/dist/owletto/dist/assets/device-DpY67Jaj.js +1 -0
- package/dist/owletto/dist/assets/{device-pin-tombstone-DrTJYNKG.js → device-pin-tombstone-1ikyqSdb.js} +1 -1
- package/dist/owletto/dist/assets/{device-rows-fVm-zAiU.js → device-rows-Cp3yMcuV.js} +1 -1
- package/dist/owletto/dist/assets/{device._deviceId-CIe7taim.js → device._deviceId-DTYKGBY8.js} +1 -1
- package/dist/owletto/dist/assets/{entity-options-DOGD_EyZ.js → entity-options-1EaSGMX4.js} +1 -1
- package/dist/owletto/dist/assets/{entity-page-C8oDszRY.js → entity-page-DJmM70dv.js} +1 -1
- package/dist/owletto/dist/assets/{entity-type-page-BfxIgJLq.js → entity-type-page-C3mT7tXn.js} +1 -1
- package/dist/owletto/dist/assets/{events-feed-B9OqmSBy.js → events-feed-iliGfjit.js} +1 -1
- package/dist/owletto/dist/assets/{full-page-spinner-DTSqneUO.js → full-page-spinner-BN2G_YiM.js} +1 -1
- package/dist/owletto/dist/assets/guardrails-CLlnRRy9.js +1 -0
- package/dist/owletto/dist/assets/identity-MSLryUi8.js +1 -0
- package/dist/owletto/dist/assets/index-3o4Eepb4.js +1 -0
- package/dist/owletto/dist/assets/{index-Bfux0kHb.js → index-BUr8321-.js} +3 -3
- package/dist/owletto/dist/assets/{index-CK2-iHcz.js → index-Bulu5ldM.js} +1 -1
- package/dist/owletto/dist/assets/{index-DcWyuLQS.js → index-BvbfITqH.js} +1 -1
- package/dist/owletto/dist/assets/{index-Bq4m-sK0.js → index-C-u4yR8Z.js} +1 -1
- package/dist/owletto/dist/assets/{index-DkKALC2l.js → index-C2oCgDX7.js} +1 -1
- package/dist/owletto/dist/assets/{index-jGZeANLE.js → index-C6VAJ8Ku.js} +1 -1
- package/dist/owletto/dist/assets/index-Clw9ZBj-.js +1 -0
- package/dist/owletto/dist/assets/index-D2oL4Ydo.js +1 -0
- package/dist/owletto/dist/assets/index-D7wulT4y.js +1 -0
- package/dist/owletto/dist/assets/{index-COgBJ_ab.js → index-DOLFe19K.js} +1 -1
- package/dist/owletto/dist/assets/index-DTSA0Xh1.js +1 -0
- package/dist/owletto/dist/assets/index-DxXXVPU0.js +1 -0
- package/dist/owletto/dist/assets/{index-CMOHHdFH.js → index-hSE2E46p.js} +1 -1
- package/dist/owletto/dist/assets/index-nzvsA3hT.js +1 -0
- package/dist/owletto/dist/assets/{index-DYe_DVHa.js → index-vdqhlocx.js} +1 -1
- package/dist/owletto/dist/assets/{json-diff-CANZD4MQ.js → json-diff-DnsW7Pin.js} +1 -1
- package/dist/owletto/dist/assets/{list-skeleton-DZTUxpBx.js → list-skeleton-CHzLN7GK.js} +1 -1
- package/dist/owletto/dist/assets/{login-D53geSP7.js → login-CCKNM0gV.js} +1 -1
- package/dist/owletto/dist/assets/{logout-DKQS25qd.js → logout-B-N2aodZ.js} +1 -1
- package/dist/owletto/dist/assets/{member-scope-gate-C4QyRm2Q.js → member-scope-gate-B560Wg-t.js} +1 -1
- package/dist/owletto/dist/assets/{memory-browse-page-DOpV3vht.js → memory-browse-page-DMDqKJn7.js} +1 -1
- package/dist/owletto/dist/assets/{model-selector-CvU3VP90.js → model-selector-DfbmHjLu.js} +1 -1
- package/dist/owletto/dist/assets/models-M51OGDRE.js +1 -0
- package/dist/owletto/dist/assets/{new-B8_sRMYD.js → new-BVQS9H-Y.js} +1 -1
- package/dist/owletto/dist/assets/{new-DIjOVXrQ.js → new-Df_dY6Z5.js} +1 -1
- package/dist/owletto/dist/assets/{new-Df1q7GEj.js → new-DxDVE9nL.js} +1 -1
- package/dist/owletto/dist/assets/{oauth-workspace-access-DWfiekRz.js → oauth-workspace-access-D9GmiMfK.js} +1 -1
- package/dist/owletto/dist/assets/{organization-DHEC7kDq.js → organization-uSDYkJpX.js} +1 -1
- package/dist/owletto/dist/assets/{permissions-i7iwnE1a.js → permissions-Fe0DP6b8.js} +1 -1
- package/dist/owletto/dist/assets/{proposal-review-shell-C_LcyUEF.js → proposal-review-shell-D9HwnDda.js} +1 -1
- package/dist/owletto/dist/assets/{recent-By19_Buq.js → recent-C03LhMD7.js} +1 -1
- package/dist/owletto/dist/assets/{renderer-B1UThnk2.js → renderer-CHNejd95.js} +1 -1
- package/dist/owletto/dist/assets/{reset-password-Dsz5-Xeo.js → reset-password-CuISnlG_.js} +1 -1
- package/dist/owletto/dist/assets/{runs-BQ11PAQT.js → runs-BnYdToDc.js} +1 -1
- package/dist/owletto/dist/assets/{runs-panel-wkV1aGD9.js → runs-panel-DsdESupx.js} +1 -1
- package/dist/owletto/dist/assets/{runs-table-DzSWYkaf.js → runs-table-B7jKuILd.js} +1 -1
- package/dist/owletto/dist/assets/{schema-value-normalization--DhnhJNf.js → schema-value-normalization-B--OWDL8.js} +1 -1
- package/dist/owletto/dist/assets/settings-Bg9yCCoN.js +1 -0
- package/dist/owletto/dist/assets/{settings-Bu239SXe.js → settings-wGNHtsDP.js} +1 -1
- package/dist/owletto/dist/assets/skills-CN5Ube7A.js +1 -0
- package/dist/owletto/dist/assets/{switch-CCKllS7w.js → switch-Dzse_XFM.js} +1 -1
- package/dist/owletto/dist/assets/{use-mention-search-CldNZTiT.js → use-mention-search-uyW1Uwf6.js} +1 -1
- package/dist/owletto/dist/index.html +1 -1
- package/dist/server-main.bundle.mjs +9903 -9541
- package/npm-shrinkwrap.json +116 -140
- package/package.json +1 -1
- package/vendor/connector-sdk/package.json +1 -1
- package/vendor/core/dist/credentials.d.ts +16 -1
- package/vendor/core/dist/credentials.js +10 -1
- package/vendor/core/package.json +1 -1
- package/dist/owletto/dist/assets/_-CfcfHJO8.js +0 -1
- package/dist/owletto/dist/assets/_agentId-BTmFhpb6.js +0 -1
- package/dist/owletto/dist/assets/_name-BKeZbc-h.js +0 -1
- package/dist/owletto/dist/assets/_skillKey-DhiGYYFq.js +0 -1
- package/dist/owletto/dist/assets/agents-OLmcj-qM.js +0 -1
- package/dist/owletto/dist/assets/automations-OLmcj-qM.js +0 -1
- package/dist/owletto/dist/assets/connect-1ysEq9l0.js +0 -1
- package/dist/owletto/dist/assets/connect._clientId-BbMPs6l3.js +0 -1
- package/dist/owletto/dist/assets/create-C37QtjbJ.js +0 -1
- package/dist/owletto/dist/assets/create-kAQa5_Q7.js +0 -1
- package/dist/owletto/dist/assets/deployments-C5kSeowq.js +0 -1
- package/dist/owletto/dist/assets/device-DToHXxDM.js +0 -1
- package/dist/owletto/dist/assets/guardrails-9Mr6avxk.js +0 -1
- package/dist/owletto/dist/assets/identity-DMfCjdBz.js +0 -1
- package/dist/owletto/dist/assets/index-CkwwaMrx.js +0 -1
- package/dist/owletto/dist/assets/index-D0lZrXrY.js +0 -1
- package/dist/owletto/dist/assets/index-DZadnZpq.js +0 -1
- package/dist/owletto/dist/assets/index-DlqjyZKQ.js +0 -1
- package/dist/owletto/dist/assets/index-Dv0huHrO.js +0 -1
- package/dist/owletto/dist/assets/index-DxIDxgPJ.js +0 -1
- package/dist/owletto/dist/assets/index-bKUccXCc.js +0 -1
- package/dist/owletto/dist/assets/models-ooBIWFuB.js +0 -1
- package/dist/owletto/dist/assets/settings-FxbIvOhH.js +0 -1
- package/dist/owletto/dist/assets/skills-MBZ5ilDK.js +0 -1
package/dist/component.json
CHANGED
|
@@ -18,6 +18,18 @@
|
|
|
18
18
|
* these links authorize approvals and agent re-binding.
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
|
+
/**
|
|
22
|
+
* How a platform's stored user keys are scoped for a reverse lookup.
|
|
23
|
+
*
|
|
24
|
+
* `team-prefix` — keys for one tenant all begin with `prefix`, so a search must
|
|
25
|
+
* be constrained to it (Slack: `T0XYZ:`).
|
|
26
|
+
* `global` — ids are unique platform-wide, so the namespace needs no narrowing
|
|
27
|
+
* (Google: one account can only ever have one id).
|
|
28
|
+
*/
|
|
29
|
+
export type ChatUserKeyScope =
|
|
30
|
+
| { kind: 'team-prefix'; prefix: string }
|
|
31
|
+
| { kind: 'global' };
|
|
32
|
+
|
|
21
33
|
/** How one chat platform keys a sender identity. */
|
|
22
34
|
export interface ChatUserIdentity {
|
|
23
35
|
/** Chat platform key an inbound message arrives on (`slack`, `gchat`, …). */
|
|
@@ -42,4 +54,33 @@ export interface ChatUserIdentity {
|
|
|
42
54
|
teamId: string | null | undefined,
|
|
43
55
|
platformUserId: string | null | undefined,
|
|
44
56
|
): string | null;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* The REVERSE of `buildUserKey`, for "which platform id does this Lobu user
|
|
60
|
+
* have here?": how stored keys are scoped when searching within `teamId`.
|
|
61
|
+
*
|
|
62
|
+
* Required, not optional, and deliberately NOT a bare nullable string. The
|
|
63
|
+
* two failure shapes must not collapse into one value: `global` means the
|
|
64
|
+
* platform has no tenant axis so the whole namespace is in scope, while null
|
|
65
|
+
* means this platform REQUIRES a team and did not get a usable one. A caller
|
|
66
|
+
* that treats those alike widens a Slack search past its `TEAM:` prefix and
|
|
67
|
+
* can return an id from a DIFFERENT workspace — the exact cross-tenant bleed
|
|
68
|
+
* `buildUserKey` exists to prevent. Callers must refuse on null.
|
|
69
|
+
*/
|
|
70
|
+
userKeyScope(teamId: string | null | undefined): ChatUserKeyScope | null;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Recover from a stored key the id the PLATFORM addresses this user by — the
|
|
74
|
+
* form its API takes (`openDM`, a mention), which is also the form
|
|
75
|
+
* `buildUserKey` accepts back.
|
|
76
|
+
*
|
|
77
|
+
* NOT "the key minus its scope prefix". Google stores the bare account id but
|
|
78
|
+
* addresses `users/<id>`, and the chat SDK routes a DM by inferring the
|
|
79
|
+
* adapter from exactly that prefix, so a bare id does not reach Google Chat
|
|
80
|
+
* at all. Each platform owns the difference; core must never re-derive it.
|
|
81
|
+
*
|
|
82
|
+
* Returns null when the stored key is not one this platform could have
|
|
83
|
+
* written — fail closed rather than address a malformed id.
|
|
84
|
+
*/
|
|
85
|
+
platformUserIdFromKey(key: string): string | null;
|
|
45
86
|
}
|
|
@@ -104,4 +104,15 @@ export const gchatChatUserIdentity: ChatUserIdentity = {
|
|
|
104
104
|
buildUserKey(_teamId, platformUserId) {
|
|
105
105
|
return normalizeGoogleUserId(platformUserId);
|
|
106
106
|
},
|
|
107
|
+
// Global for the same reason `buildUserKey` ignores the team: one Google
|
|
108
|
+
// account has exactly one id, so there is no tenant axis to narrow by and
|
|
109
|
+
// nothing to bleed across. Never null — a missing team is not an error here.
|
|
110
|
+
userKeyScope: () => ({ kind: 'global' }),
|
|
111
|
+
// Re-wraps the bare stored id as the resource name Chat addresses people by.
|
|
112
|
+
// The `users/` prefix is load-bearing on the way out as well as in: the chat
|
|
113
|
+
// SDK picks the Google Chat adapter off it, so a bare id is not routable.
|
|
114
|
+
platformUserIdFromKey(key) {
|
|
115
|
+
const bare = normalizeGoogleUserId(key);
|
|
116
|
+
return bare ? `${GCHAT_USER_PREFIX}${bare}` : null;
|
|
117
|
+
},
|
|
107
118
|
};
|
|
@@ -143,6 +143,25 @@ export const slackChatUserIdentity: ChatUserIdentity = {
|
|
|
143
143
|
buildUserKey(teamId, platformUserId) {
|
|
144
144
|
return normalizeSlackUserId(teamId, platformUserId);
|
|
145
145
|
},
|
|
146
|
+
userKeyScope(teamId) {
|
|
147
|
+
// No usable team = REFUSE, never "search the whole namespace". Two
|
|
148
|
+
// workspaces can both hold `U12345`, so an unconstrained search here would
|
|
149
|
+
// hand back an id from the wrong one. Validate exactly as
|
|
150
|
+
// `normalizeSlackUserId` does so the prefix cannot disagree with the keys
|
|
151
|
+
// it wrote.
|
|
152
|
+
if (typeof teamId !== 'string') return null;
|
|
153
|
+
const t = teamId.trim();
|
|
154
|
+
if (!t || !/^[a-z0-9_-]+$/i.test(t)) return null;
|
|
155
|
+
return { kind: 'team-prefix', prefix: `${t.toUpperCase()}:` };
|
|
156
|
+
},
|
|
157
|
+
// Slack addresses a user by the BARE `U…`; the team prefix is storage scoping
|
|
158
|
+
// only and would not resolve if sent back. Re-validating through
|
|
159
|
+
// `normalizeTeamScopedId` first means a key this connector could not have
|
|
160
|
+
// written (no prefix, bad chars) yields null rather than a half-parsed id.
|
|
161
|
+
platformUserIdFromKey(key) {
|
|
162
|
+
const normalized = normalizeTeamScopedId(key);
|
|
163
|
+
return normalized ? normalized.slice(normalized.indexOf(':') + 1) : null;
|
|
164
|
+
},
|
|
146
165
|
};
|
|
147
166
|
|
|
148
167
|
/** A Slack channel and the (bare `U…`) ids of its members. */
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
-- `delivery_request.ownerDm` is a persisted snapshot of the owner's chat DM
|
|
2
|
+
-- destination, re-validated against a fresh resolve before the durable delivery
|
|
3
|
+
-- task posts. Owner routing used to be Slack-only, so the snapshot stored
|
|
4
|
+
-- `{connectionId, slackUserId}` and the task hardcoded the Slack adapter.
|
|
5
|
+
--
|
|
6
|
+
-- Now that any chat platform can own an approval, the snapshot carries the
|
|
7
|
+
-- platform it resolved on: `{connectionId, platform, platformUserId}`. A row
|
|
8
|
+
-- left in the old shape fails re-validation on EVERY field the new reader
|
|
9
|
+
-- compares, so its delivery task would retry to exhaustion and drop the owner
|
|
10
|
+
-- DM. Rewriting the snapshot in place is what lets the reader stay a single
|
|
11
|
+
-- shape instead of carrying a compat read of the retired key.
|
|
12
|
+
--
|
|
13
|
+
-- Every pre-existing row is Slack by construction: no other platform could
|
|
14
|
+
-- reach this code path before the change that adds this migration.
|
|
15
|
+
--
|
|
16
|
+
-- Scale, measured on prod 2026-09-15: 4,161,293 rows in `events`, 233 carrying
|
|
17
|
+
-- a `delivery_request`, and 2 in the retired shape. The predicate has no
|
|
18
|
+
-- supporting index, so this is ONE seq scan of `events` in a single
|
|
19
|
+
-- transaction that updates two rows — bounded work, and no narrower indexed
|
|
20
|
+
-- column exists to key it by (`delivery_request` lives in `metadata`, which
|
|
21
|
+
-- carries no GIN index). Writers are unblocked throughout: MVCC means the scan
|
|
22
|
+
-- takes no table lock and the row locks cover only the rows actually rewritten.
|
|
23
|
+
-- Idempotent — the guard names the retired key, so a re-run matches nothing.
|
|
24
|
+
-- migrate:up
|
|
25
|
+
UPDATE events
|
|
26
|
+
SET metadata = jsonb_set(
|
|
27
|
+
metadata,
|
|
28
|
+
'{delivery_request,ownerDm}',
|
|
29
|
+
jsonb_build_object(
|
|
30
|
+
'connectionId', metadata->'delivery_request'->'ownerDm'->'connectionId',
|
|
31
|
+
'platform', '"slack"'::jsonb,
|
|
32
|
+
'platformUserId', metadata->'delivery_request'->'ownerDm'->'slackUserId'
|
|
33
|
+
)
|
|
34
|
+
)
|
|
35
|
+
WHERE metadata->'delivery_request'->'ownerDm' ? 'slackUserId';
|
|
36
|
+
|
|
37
|
+
-- migrate:down
|
|
38
|
+
-- Reversible only for Slack rows, which is exactly the set the up migration
|
|
39
|
+
-- rewrote. A snapshot on any other platform has no representation in the old
|
|
40
|
+
-- Slack-only shape, so it is left alone rather than silently mislabelled.
|
|
41
|
+
UPDATE events
|
|
42
|
+
SET metadata = jsonb_set(
|
|
43
|
+
metadata,
|
|
44
|
+
'{delivery_request,ownerDm}',
|
|
45
|
+
jsonb_build_object(
|
|
46
|
+
'connectionId', metadata->'delivery_request'->'ownerDm'->'connectionId',
|
|
47
|
+
'slackUserId', metadata->'delivery_request'->'ownerDm'->'platformUserId'
|
|
48
|
+
)
|
|
49
|
+
)
|
|
50
|
+
WHERE metadata->'delivery_request'->'ownerDm' ? 'platformUserId'
|
|
51
|
+
AND metadata->'delivery_request'->'ownerDm'->>'platform' = 'slack';
|
|
@@ -78,11 +78,11 @@
|
|
|
78
78
|
|
|
79
79
|
"@asteasolutions/zod-to-openapi": ["@asteasolutions/zod-to-openapi@9.1.0", "", { "dependencies": { "openapi3-ts": "^4.6.0" }, "peerDependencies": { "zod": "^4.0.0" } }, "sha512-pLMeRgRYS7/vZIgAAkOe2P6+XGTifR1MT9pqDoxZ11EmcJJ+DPmdPqLN8ZZF4U8R9KHCCQCS9c2wtuE8wSrfkw=="],
|
|
80
80
|
|
|
81
|
-
"@aws-sdk/client-bedrock": ["@aws-sdk/client-bedrock@3.
|
|
81
|
+
"@aws-sdk/client-bedrock": ["@aws-sdk/client-bedrock@3.1135.0", "", { "dependencies": { "@aws-sdk/core": "^3.978.0", "@aws-sdk/credential-provider-node": "^3.972.83", "@aws-sdk/token-providers": "3.1135.0", "@aws-sdk/types": "^3.974.5", "@smithy/core": "^3.33.3", "@smithy/fetch-http-handler": "^5.7.2", "@smithy/node-http-handler": "^4.11.3", "@smithy/types": "^4.17.2", "tslib": "^2.6.2" } }, "sha512-g6Mah5L3mqvuUxVUJH5GnEegHh2R3R1aPM25RFH1/Orn5Ysldzk8olmpE+ck41fJg8GTrvzcb4U9T7xFVkn/KQ=="],
|
|
82
82
|
|
|
83
|
-
"@aws-sdk/client-bedrock-runtime": ["@aws-sdk/client-bedrock-runtime@3.
|
|
83
|
+
"@aws-sdk/client-bedrock-runtime": ["@aws-sdk/client-bedrock-runtime@3.1135.0", "", { "dependencies": { "@aws-sdk/core": "^3.978.0", "@aws-sdk/credential-provider-node": "^3.972.83", "@aws-sdk/eventstream-handler-node": "^3.972.34", "@aws-sdk/middleware-eventstream": "^3.972.29", "@aws-sdk/middleware-websocket": "^3.972.53", "@aws-sdk/token-providers": "3.1135.0", "@aws-sdk/types": "^3.974.5", "@smithy/core": "^3.33.3", "@smithy/fetch-http-handler": "^5.7.2", "@smithy/node-http-handler": "^4.11.3", "@smithy/types": "^4.17.2", "tslib": "^2.6.2" } }, "sha512-DDTMmWwVAJYsOOb83thk8AkBAJMQIJDm89n/doYbtlks9KGc//mbPYYvxfWgVTqFlUu+oCqwF2sJT2FxnSMk1Q=="],
|
|
84
84
|
|
|
85
|
-
"@aws-sdk/client-secrets-manager": ["@aws-sdk/client-secrets-manager@3.
|
|
85
|
+
"@aws-sdk/client-secrets-manager": ["@aws-sdk/client-secrets-manager@3.1135.0", "", { "dependencies": { "@aws-sdk/core": "^3.978.0", "@aws-sdk/credential-provider-node": "^3.972.83", "@aws-sdk/types": "^3.974.5", "@smithy/core": "^3.33.3", "@smithy/fetch-http-handler": "^5.7.2", "@smithy/node-http-handler": "^4.11.3", "@smithy/types": "^4.17.2", "tslib": "^2.6.2" } }, "sha512-sQciXpVRz0rXeHoq0jETBX+rnCiDcLTYTyGTgL8wXa+1qPAA0zaPiZs58KNIeTHP9PZvnTIBw6KwUmjAFWWVEw=="],
|
|
86
86
|
|
|
87
87
|
"@aws-sdk/core": ["@aws-sdk/core@3.978.0", "", { "dependencies": { "@aws-sdk/types": "^3.974.5", "@aws-sdk/xml-builder": "^3.972.40", "@aws/lambda-invoke-store": "^0.3.0", "@smithy/core": "^3.33.3", "@smithy/signature-v4": "^5.6.12", "@smithy/types": "^4.17.2", "bowser": "^2.11.0", "tslib": "^2.6.2" } }, "sha512-2yX9LUmxPklVjSGTb8dfnWRJSiFQ3TeH2nn7G1mdKHTfnabzF0+gfrS8rYfLWmZrQ8A3mEcxMJjRc51dL5KWaA=="],
|
|
88
88
|
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
|
|
113
113
|
"@aws-sdk/signature-v4-multi-region": ["@aws-sdk/signature-v4-multi-region@3.996.46", "", { "dependencies": { "@aws-sdk/types": "^3.974.5", "@smithy/signature-v4": "^5.6.12", "@smithy/types": "^4.17.2", "tslib": "^2.6.2" } }, "sha512-L+2xZTye/2T96f3lwCws0Zw6GG2JHZW9e8FpVgGBeeExSKyeoZ6CWRpBml/7DNiK/O26jrgPM9F+Ay8VkgzUWQ=="],
|
|
114
114
|
|
|
115
|
-
"@aws-sdk/token-providers": ["@aws-sdk/token-providers@3.
|
|
115
|
+
"@aws-sdk/token-providers": ["@aws-sdk/token-providers@3.1135.0", "", { "dependencies": { "@aws-sdk/core": "^3.978.0", "@aws-sdk/nested-clients": "^3.997.45", "@aws-sdk/types": "^3.974.5", "@smithy/core": "^3.33.3", "@smithy/types": "^4.17.2", "tslib": "^2.6.2" } }, "sha512-JEYc/NHSDKGLmtQtaG5xZ1hmyFZ0Lav6GGAG417VaYyUURT0EeQEAnfVIkZQsLg5+P8BxCAv8YLIEpU2aNh++A=="],
|
|
116
116
|
|
|
117
117
|
"@aws-sdk/types": ["@aws-sdk/types@3.974.5", "", { "dependencies": { "@smithy/types": "^4.17.2", "tslib": "^2.6.2" } }, "sha512-LkwLL2BLbC6wNNm4JaH9mbEqBMdOZCct6VAYqhdN4U1xrWM+fUJQEfbHwQgDypapOWTRtlk25akb5afM0P8CIQ=="],
|
|
118
118
|
|
|
@@ -236,7 +236,7 @@
|
|
|
236
236
|
|
|
237
237
|
"@googleapis/workspaceevents": ["@googleapis/workspaceevents@9.2.0", "", { "dependencies": { "googleapis-common": "^8.0.0" } }, "sha512-9tU0h6O/Ao9k53TQSgLs6D/mN++wKTHPIpT8tbPaayhOL3e4OhtJ3t+OD42avMe2pBmFcdRUVOSpZvqytxvWEg=="],
|
|
238
238
|
|
|
239
|
-
"@grpc/grpc-js": ["@grpc/grpc-js@1.14.
|
|
239
|
+
"@grpc/grpc-js": ["@grpc/grpc-js@1.14.5", "", { "dependencies": { "@grpc/proto-loader": "^0.8.0", "@js-sdsl/ordered-map": "^4.4.2" } }, "sha512-7VZM+SVdEcUUqSQeNI3zM8Qs/BhQKZndPo2h5VkYkAM8Iz0wJIa8mKV5ekQGqG8UUsnkQ0NMxIxwkIHYvj0qOw=="],
|
|
240
240
|
|
|
241
241
|
"@grpc/proto-loader": ["@grpc/proto-loader@0.8.1", "", { "dependencies": { "lodash.camelcase": "^4.3.0", "long": "^5.0.0", "protobufjs": "^7.5.5", "yargs": "^17.7.2" }, "bin": { "proto-loader-gen-types": "build/bin/proto-loader-gen-types.js" } }, "sha512-wtF6h+DY6M3YaDBPAmvuuA6jV8Sif9MjtOI5euKFWRgCDl5PeDpPsHR9u2l6St5ceY8AZgoNDww5+HvEsXFsGg=="],
|
|
242
242
|
|
|
@@ -300,17 +300,17 @@
|
|
|
300
300
|
|
|
301
301
|
"@mariozechner/pi-tui": ["@mariozechner/pi-tui@0.73.1", "", { "dependencies": { "@types/mime-types": "^2.1.4", "chalk": "^5.5.0", "get-east-asian-width": "^1.3.0", "marked": "^15.0.12", "mime-types": "^3.0.1" }, "optionalDependencies": { "koffi": "^2.9.0" } }, "sha512-ybVsRnUbzQRtbocltJ2OXb2QogrO67N2BlUyKjZz9BHcZYiDJtNkcKQockxDjsVvDc0uBCLDX6iZJoBElBd8fw=="],
|
|
302
302
|
|
|
303
|
-
"@microsoft/teams.api": ["@microsoft/teams.api@2.0
|
|
303
|
+
"@microsoft/teams.api": ["@microsoft/teams.api@2.1.0", "", { "dependencies": { "@microsoft/teams.cards": "2.1.0", "@microsoft/teams.common": "2.1.0", "@opentelemetry/api": "^1.9.1", "jwt-decode": "^4.0.0", "qs": "^6.16.0" } }, "sha512-tS7NRqxpyzrgCwHCZh4xUys1Waon/cEtVb801Yx6DekOIOZaOgHA4KFuspM6FvlErzTt5tm6GGlXDstm4dkHbw=="],
|
|
304
304
|
|
|
305
|
-
"@microsoft/teams.apps": ["@microsoft/teams.apps@2.0
|
|
305
|
+
"@microsoft/teams.apps": ["@microsoft/teams.apps@2.1.0", "", { "dependencies": { "@azure/msal-node": "^5.6.0", "@microsoft/teams.api": "2.1.0", "@microsoft/teams.common": "2.1.0", "@microsoft/teams.graph": "2.1.0", "@opentelemetry/api": "^1.9.1", "axios": "^1.18.1", "cors": "^2.8.5", "express": "^5.0.0", "jsonwebtoken": "^9.0.2", "jwks-rsa": "^4.1.0", "reflect-metadata": "^0.2.2" } }, "sha512-0nZDI4CGKQp5MnFPd+1wH+6PPdl/IEsg4likbXqDaoGiXCwJ8Y+5/4EeNPNR8q9wG2vbbX1Cyod7q7OOoY0kVQ=="],
|
|
306
306
|
|
|
307
|
-
"@microsoft/teams.cards": ["@microsoft/teams.cards@2.0
|
|
307
|
+
"@microsoft/teams.cards": ["@microsoft/teams.cards@2.1.0", "", {}, "sha512-Ok6WRhcfflCZmPqP5g3DtG5/MKPyXamll8gyuxGtNBhZLfitQtr0TAdcvXN8I4B6c7hoqSBDthvQ0aDReWTzXA=="],
|
|
308
308
|
|
|
309
|
-
"@microsoft/teams.common": ["@microsoft/teams.common@2.0
|
|
309
|
+
"@microsoft/teams.common": ["@microsoft/teams.common@2.1.0", "", { "dependencies": { "axios": "^1.18.1" } }, "sha512-7UVRGEYQtNLLYkMwAxaA+0S4ckRxSiJ67U5vfqg3xQnKgY4Wop5ZtVj8zNxCLtoeAROamUToGJSstHsl8SZpUg=="],
|
|
310
310
|
|
|
311
|
-
"@microsoft/teams.graph": ["@microsoft/teams.graph@2.0
|
|
311
|
+
"@microsoft/teams.graph": ["@microsoft/teams.graph@2.1.0", "", { "dependencies": { "@microsoft/teams.common": "2.1.0", "qs": "^6.16.0" } }, "sha512-/us8P/lyYTRu6TF98LiUoSggheyxWRCOe9oVcM1rQprA9TBbjB4LTwYNeBNw20ixu3BUQuD0ZYMSM1QdhUBXhQ=="],
|
|
312
312
|
|
|
313
|
-
"@microsoft/teams.graph-endpoints": ["@microsoft/teams.graph-endpoints@2.0
|
|
313
|
+
"@microsoft/teams.graph-endpoints": ["@microsoft/teams.graph-endpoints@2.1.0", "", {}, "sha512-kB+/sBbkNzLCxt8elpZxAmnSB54BE8GtnLhU4FoIqwGjipEN1lAsXpqCzpkJkz5CK9XPGYo+h4k07mRWlooOuQ=="],
|
|
314
314
|
|
|
315
315
|
"@mistralai/mistralai": ["@mistralai/mistralai@2.7.0", "", { "dependencies": { "@opentelemetry/semantic-conventions": "^1.40.0", "ws": "^8.18.0", "zod": "^3.25.0 || ^4.0.0", "zod-to-json-schema": "^3.25.0" }, "peerDependencies": { "@opentelemetry/api": "^1.9.0", "@opentelemetry/exporter-trace-otlp-http": "^0.220.0", "@opentelemetry/resources": "^2.9.0", "@opentelemetry/sdk-trace-base": "^2.9.0" }, "optionalPeers": ["@opentelemetry/exporter-trace-otlp-http"] }, "sha512-zCrx6MtNpcz+EL/Nqvg55QubSgmfwJfBmd3d3wSYfJGfnvlNnWcJYlxEW5xQpS3KR6A5qK9KUyRBwMDIWnyVGA=="],
|
|
316
316
|
|
|
@@ -520,15 +520,15 @@
|
|
|
520
520
|
|
|
521
521
|
"@sentry/conventions": ["@sentry/conventions@0.16.0", "", {}, "sha512-fO9PLmHdVURcSPUpWCItWAtgKiMwGdJHbovoSEyLplX5sxs2ugvI4CBPTrkkgqhObnZOD0CnWBKDzSVQYBKEyQ=="],
|
|
522
522
|
|
|
523
|
-
"@sentry/core": ["@sentry/core@10.
|
|
523
|
+
"@sentry/core": ["@sentry/core@10.75.0", "", { "dependencies": { "@sentry/conventions": "^0.16.0" } }, "sha512-5wDQpQqjJ6RHdPR+z6Q+47XlwoxRKBv0yyB0LKHqL/1azPOQbR+nllyLmmQDcoJpaksuLSmLA1q6hFX7gjDT2w=="],
|
|
524
524
|
|
|
525
|
-
"@sentry/node": ["@sentry/node@10.
|
|
525
|
+
"@sentry/node": ["@sentry/node@10.75.0", "", { "dependencies": { "@opentelemetry/api": "^1.9.1", "@opentelemetry/instrumentation": "^0.220.0", "@opentelemetry/sdk-trace-base": "^2.9.0", "@sentry/conventions": "^0.16.0", "@sentry/core": "10.75.0", "@sentry/node-core": "10.75.0", "@sentry/opentelemetry": "10.75.0", "@sentry/server-utils": "10.75.0", "import-in-the-middle": "^3.0.0" } }, "sha512-XdYW+SEiscQnuugh1hMldfnHurmleKSTSDqgfro6Y1yd7s0r2csnZ5/SEYxIeL4lSl1QXg1lIA1pBmAXjcdnKA=="],
|
|
526
526
|
|
|
527
|
-
"@sentry/node-core": ["@sentry/node-core@10.
|
|
527
|
+
"@sentry/node-core": ["@sentry/node-core@10.75.0", "", { "dependencies": { "@sentry/conventions": "^0.16.0", "@sentry/core": "10.75.0", "@sentry/opentelemetry": "10.75.0", "import-in-the-middle": "^3.0.0" }, "peerDependencies": { "@opentelemetry/api": "^1.9.0", "@opentelemetry/core": "^1.30.1 || ^2.1.0", "@opentelemetry/exporter-trace-otlp-http": ">=0.57.0 <1", "@opentelemetry/instrumentation": ">=0.57.1 <1", "@opentelemetry/sdk-trace-base": "^1.30.1 || ^2.1.0" }, "optionalPeers": ["@opentelemetry/exporter-trace-otlp-http"] }, "sha512-+E3KSX1oMqhpWQ23hj6NblIVUzLy3T2oceU7DfMX1s1ar+npaQZxR5K0/cMGcQgS1LLm8Jqwqo/lrZlKTCDm5A=="],
|
|
528
528
|
|
|
529
|
-
"@sentry/opentelemetry": ["@sentry/opentelemetry@10.
|
|
529
|
+
"@sentry/opentelemetry": ["@sentry/opentelemetry@10.75.0", "", { "dependencies": { "@sentry/conventions": "^0.16.0", "@sentry/core": "10.75.0" }, "peerDependencies": { "@opentelemetry/api": "^1.9.0", "@opentelemetry/core": "^1.30.1 || ^2.1.0", "@opentelemetry/sdk-trace-base": "^1.30.1 || ^2.1.0" } }, "sha512-reJoMtuHMuaiztoDVoaeitc22eHlTAvz2qpFhibWyzukJlF8oXB+o8EvDN9mmDDMedU89c//cXRcnPBlJvUxcw=="],
|
|
530
530
|
|
|
531
|
-
"@sentry/server-utils": ["@sentry/server-utils@10.
|
|
531
|
+
"@sentry/server-utils": ["@sentry/server-utils@10.75.0", "", { "dependencies": { "@sentry/conventions": "^0.16.0", "@sentry/core": "10.75.0" } }, "sha512-7fIa9vFGNzB13hmxl8Sip3xImSkqpc4wETzuQ7CLzVOwPvwI6y/gVEm0pxRhtJSq8SzfOp26eJWl80u8v78Osg=="],
|
|
532
532
|
|
|
533
533
|
"@silvia-odwyer/photon-node": ["@silvia-odwyer/photon-node@0.3.4", "", {}, "sha512-bnly4BKB3KDTFxrUIcgCLbaeVVS8lrAkri1pEzskpmxu9MdfGQTy8b8EgcD83ywD3RPMsIulY8xJH5Awa+t9fA=="],
|
|
534
534
|
|
|
@@ -582,7 +582,7 @@
|
|
|
582
582
|
|
|
583
583
|
"@types/ms": ["@types/ms@2.1.0", "", {}, "sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA=="],
|
|
584
584
|
|
|
585
|
-
"@types/node": ["@types/node@
|
|
585
|
+
"@types/node": ["@types/node@26.6.1", "", { "dependencies": { "undici-types": "~8.9.0" } }, "sha512-VqGJBMCtdhqkBUCcBLvywI0NJ+KLuVzgNnlBUNFOQjqVxzo2lxLUNg1DSey8+u2u6ktswSAxg+s68QLzWHNOuA=="],
|
|
586
586
|
|
|
587
587
|
"@types/retry": ["@types/retry@0.12.0", "", {}, "sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA=="],
|
|
588
588
|
|
|
@@ -684,7 +684,7 @@
|
|
|
684
684
|
|
|
685
685
|
"character-entities": ["character-entities@2.0.2", "", {}, "sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ=="],
|
|
686
686
|
|
|
687
|
-
"chat": ["chat@4.
|
|
687
|
+
"chat": ["chat@4.41.0", "", { "dependencies": { "@workflow/serde": "4.1.0-beta.2", "mdast-util-to-string": "^4.0.0", "remark-gfm": "^4.0.0", "remark-parse": "^11.0.0", "remark-stringify": "^11.0.0", "remend": "^1.2.1", "unified": "^11.0.5" }, "peerDependencies": { "ai": "^6.0.182 || ^7.0.0", "workflow": "^5.0.0-beta.35", "zod": "^3.0.0 || ^4.0.0" }, "optionalPeers": ["ai", "workflow"] }, "sha512-vMeODhulMdi7od1c6e4B/ZfIp/zq0f5KP3WKNCAAdNrTOeDgjRNZQZahaIax/t/gu+LE5vwJSjFU46Ro9Kx9tA=="],
|
|
688
688
|
|
|
689
689
|
"chownr": ["chownr@3.0.0", "", {}, "sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g=="],
|
|
690
690
|
|
|
@@ -892,7 +892,7 @@
|
|
|
892
892
|
|
|
893
893
|
"get-caller-file": ["get-caller-file@2.0.5", "", {}, "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg=="],
|
|
894
894
|
|
|
895
|
-
"get-east-asian-width": ["get-east-asian-width@1.
|
|
895
|
+
"get-east-asian-width": ["get-east-asian-width@1.7.0", "", {}, "sha512-XjH1AECxf0giL2V1aU8vKyRR2ppRUb5c0EvT7zuJTokQ74bNo52zOtghqdWIqrhUD79fo3x0WfKZdOqxF6LG1Q=="],
|
|
896
896
|
|
|
897
897
|
"get-intrinsic": ["get-intrinsic@1.3.0", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.2", "es-define-property": "^1.0.1", "es-errors": "^1.3.0", "es-object-atoms": "^1.1.1", "function-bind": "^1.1.2", "get-proto": "^1.0.1", "gopd": "^1.2.0", "has-symbols": "^1.1.0", "hasown": "^2.0.2", "math-intrinsics": "^1.1.0" } }, "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ=="],
|
|
898
898
|
|
|
@@ -1012,7 +1012,7 @@
|
|
|
1012
1012
|
|
|
1013
1013
|
"jwa": ["jwa@2.0.1", "", { "dependencies": { "buffer-equal-constant-time": "^1.0.1", "ecdsa-sig-formatter": "1.0.11", "safe-buffer": "^5.0.1" } }, "sha512-hRF04fqJIP8Abbkq5NKGN0Bbr3JxlQ+qhZufXVr0DvujKy93ZCbXZMHDL4EOtodSbCWxOqR8MS1tXA5hwqCXDg=="],
|
|
1014
1014
|
|
|
1015
|
-
"jwks-rsa": ["jwks-rsa@
|
|
1015
|
+
"jwks-rsa": ["jwks-rsa@4.1.0", "", { "dependencies": { "@types/jsonwebtoken": "^9.0.4", "debug": "^4.3.4", "jose": "^6.1.3", "limiter": "^1.1.5", "lru-cache": "^11.0.0", "lru-memoizer": "^3.0.0" } }, "sha512-sbkByqyATKYJP5F4RXj03N5TUNC0QLTjCAZvwTzC4BwJZ8e0/cWxN8YROnyUth2g1/ONWi4eSFHeu6oYalrc3Q=="],
|
|
1016
1016
|
|
|
1017
1017
|
"jws": ["jws@4.0.1", "", { "dependencies": { "jwa": "^2.0.1", "safe-buffer": "^5.0.1" } }, "sha512-EKI/M/yqPncGUUh44xz0PxSidXFr/+r0pA70+gIYhjv+et7yxM+s29Y+VGDkovRofQem0fs7Uvf4+YmAdyRduA=="],
|
|
1018
1018
|
|
|
@@ -1062,7 +1062,7 @@
|
|
|
1062
1062
|
|
|
1063
1063
|
"lru-cache": ["lru-cache@7.18.3", "", {}, "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA=="],
|
|
1064
1064
|
|
|
1065
|
-
"lru-memoizer": ["lru-memoizer@
|
|
1065
|
+
"lru-memoizer": ["lru-memoizer@3.0.0", "", { "dependencies": { "lodash.clonedeep": "^4.5.0", "lru-cache": "^11.0.1" } }, "sha512-m83w/cYXLdUIboKSPxzPAGfYnk+vqeDYXuoSrQRw1q+yVEd8IXhvMufN8Q5TIPe7e2jyX4SRNrDJI2Skw1yznQ=="],
|
|
1066
1066
|
|
|
1067
1067
|
"luxon": ["luxon@3.7.2", "", {}, "sha512-vtEhXh/gNjI9Yg1u4jX/0YVPMvxzHuGgCm6tC5kZyb08yjGWGnqAjGJvcXbqQR2P3MyMEFnRbpcdFS6PBcLqew=="],
|
|
1068
1068
|
|
|
@@ -1288,7 +1288,7 @@
|
|
|
1288
1288
|
|
|
1289
1289
|
"prebuild-install": ["prebuild-install@7.1.3", "", { "dependencies": { "detect-libc": "^2.0.0", "expand-template": "^2.0.3", "github-from-package": "0.0.0", "minimist": "^1.2.3", "mkdirp-classic": "^0.5.3", "napi-build-utils": "^2.0.0", "node-abi": "^3.3.0", "pump": "^3.0.0", "rc": "^1.2.7", "simple-get": "^4.0.0", "tar-fs": "^2.0.0", "tunnel-agent": "^0.6.0" }, "bin": "bin.js" }, "sha512-8Mf2cbV7x1cXPUILADGI3wuhfqWvtiLA1iclTDbFRZkgRQS0NqsPZphna9V+HyTEadheuPmjaJMsbzKQFOzLug=="],
|
|
1290
1290
|
|
|
1291
|
-
"prettier": ["prettier@3.9.
|
|
1291
|
+
"prettier": ["prettier@3.9.8", "", { "bin": "bin/prettier.cjs" }, "sha512-WRFq3Wn3WId7LLROfMLdH7xaFr2jR62wU8nLO6rQUOLOxNZUviyJQs1M0iIhLexSFy+L+w0ch66wtoO2jRjG0A=="],
|
|
1292
1292
|
|
|
1293
1293
|
"prismjs": ["prismjs@1.30.0", "", {}, "sha512-DEvV2ZF2r2/63V+tK8hQvrR2ZGn10srHbXviTlcv7Kpzw8jWiNTqbVgjO3IY8RxrrOUF8VPMQQFysYYYv0YZxw=="],
|
|
1294
1294
|
|
|
@@ -1498,11 +1498,11 @@
|
|
|
1498
1498
|
|
|
1499
1499
|
"turndown": ["turndown@7.2.2", "", { "dependencies": { "@mixmark-io/domino": "^2.2.0" } }, "sha512-1F7db8BiExOKxjSMU2b7if62D/XOyQyZbPKq/nUwopfgnHlqXHqQ0lvfUTeUIr1lZJzOPFn43dODyMSIfvWRKQ=="],
|
|
1500
1500
|
|
|
1501
|
-
"type-fest": ["type-fest@5.
|
|
1501
|
+
"type-fest": ["type-fest@5.10.0", "", { "dependencies": { "tagged-tag": "^1.0.0" } }, "sha512-NoSdpq/WEiAg5sjmBkmV/hfxv6HJH4NqPNrqjtSO5CwRmpsDfaf4begxW34KdJykH/l1yHtwBWQkCRdoXO8mPA=="],
|
|
1502
1502
|
|
|
1503
1503
|
"type-is": ["type-is@2.1.0", "", { "dependencies": { "content-type": "^2.0.0", "media-typer": "^1.1.0", "mime-types": "^3.0.0" } }, "sha512-faYHw0anBbc/kWF3zFTEnxSFOAGUX9GFbOBthvDdLsIlEoWOFOtS0zgCiQYwIskL9iGXZL3kAXD8OoZ4GmMATA=="],
|
|
1504
1504
|
|
|
1505
|
-
"typebox": ["typebox@1.3.
|
|
1505
|
+
"typebox": ["typebox@1.3.34", "", {}, "sha512-wbnzrXXDW8xEFHDZZs2jo1MkhaYlKAY4FRhpBc1+2LF1fZVBGCXGdLEhA/Z/NBbgzJMFfeM8m7elKPa/+KxaUQ=="],
|
|
1506
1506
|
|
|
1507
1507
|
"typed-array-buffer": ["typed-array-buffer@1.0.3", "", { "dependencies": { "call-bound": "^1.0.3", "es-errors": "^1.3.0", "is-typed-array": "^1.1.14" } }, "sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw=="],
|
|
1508
1508
|
|
|
@@ -1510,7 +1510,7 @@
|
|
|
1510
1510
|
|
|
1511
1511
|
"undici": ["undici@7.29.0", "", {}, "sha512-IDxfleLmmbSskfWSUATiN1nfn2rDuvnMOqb5CWR92iIfojA0Ud+ulOAAEQ57LPr9rWmsreUyf5lwyao+7GNNVw=="],
|
|
1512
1512
|
|
|
1513
|
-
"undici-types": ["undici-types@
|
|
1513
|
+
"undici-types": ["undici-types@8.9.0", "", {}, "sha512-KTDyRTYX8sWmKXAikPHHSyc63CRPETMctyjKFupcC6OBLXT3xsN0e9aF7m+mIXutFWpUXuedtowG7iLOzp0kQg=="],
|
|
1514
1514
|
|
|
1515
1515
|
"unified": ["unified@11.0.5", "", { "dependencies": { "@types/unist": "^3.0.0", "bail": "^2.0.0", "devlop": "^1.0.0", "extend": "^3.0.0", "is-plain-obj": "^4.0.0", "trough": "^2.0.0", "vfile": "^6.0.0" } }, "sha512-xKvGhPWw3k84Qjh8bI3ZeJjqnyadK+GEFtazSfZv/rKeTkTjOJho6mFqh2SM96iIcZokxiOpg78GazTSg8+KHA=="],
|
|
1516
1516
|
|
|
@@ -1542,7 +1542,7 @@
|
|
|
1542
1542
|
|
|
1543
1543
|
"which": ["which@2.0.2", "", { "dependencies": { "isexe": "^2.0.0" }, "bin": { "node-which": "bin/node-which" } }, "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA=="],
|
|
1544
1544
|
|
|
1545
|
-
"which-typed-array": ["which-typed-array@1.1.
|
|
1545
|
+
"which-typed-array": ["which-typed-array@1.1.23", "", { "dependencies": { "available-typed-arrays": "^1.0.7", "call-bind": "^1.0.9", "call-bound": "^1.0.4", "for-each": "^0.3.5", "get-proto": "^1.0.1", "gopd": "^1.2.0", "has-tostringtag": "^1.0.2" } }, "sha512-JMh8aK+1B/0bk/YNupICmH5MgCq6yNLKYQUfsZtSDLLCCmxUkHjUY+oOlIa90lO7lHN1woAfpenLdlKpXy9o+A=="],
|
|
1546
1546
|
|
|
1547
1547
|
"winston": ["winston@3.19.0", "", { "dependencies": { "@colors/colors": "^1.6.0", "@dabh/diagnostics": "^2.0.8", "async": "^3.2.3", "is-stream": "^2.0.0", "logform": "^2.7.0", "one-time": "^1.0.0", "readable-stream": "^3.4.0", "safe-stable-stringify": "^2.3.1", "stack-trace": "0.0.x", "triple-beam": "^1.3.0", "winston-transport": "^4.9.0" } }, "sha512-LZNJgPzfKR+/J3cHkxcpHKpKKvGfDZVPS4hfJCc4cCG0CgYzvlD6yE/S3CIL/Yt91ak327YCpiF/0MyeZHEHKA=="],
|
|
1548
1548
|
|
|
@@ -1672,13 +1672,13 @@
|
|
|
1672
1672
|
|
|
1673
1673
|
"isomorphic-git/ignore": ["ignore@5.3.2", "", {}, "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g=="],
|
|
1674
1674
|
|
|
1675
|
-
"jwks-rsa/
|
|
1675
|
+
"jwks-rsa/lru-cache": ["lru-cache@11.5.2", "", {}, "sha512-4pfM1Ff0x50o0tQwb5ucw/RzNyD0/YJME6IVcStalZuMWxdt3sR3huStTtxz4PUmvZfRguvDejasvQ2kifR11g=="],
|
|
1676
1676
|
|
|
1677
1677
|
"kysely-postgres-js/postgres": ["postgres@file:vendor/postgres", {}],
|
|
1678
1678
|
|
|
1679
1679
|
"logform/@colors/colors": ["@colors/colors@1.6.0", "", {}, "sha512-Ir+AOibqzrIsL6ajt3Rz3LskB7OiMVHqltZmspbW/TJuTVuyOMirVqAkjfY6JISiLHgyNqicAC8AyHHGzNd/dA=="],
|
|
1680
1680
|
|
|
1681
|
-
"lru-memoizer/lru-cache": ["lru-cache@
|
|
1681
|
+
"lru-memoizer/lru-cache": ["lru-cache@11.5.2", "", {}, "sha512-4pfM1Ff0x50o0tQwb5ucw/RzNyD0/YJME6IVcStalZuMWxdt3sR3huStTtxz4PUmvZfRguvDejasvQ2kifR11g=="],
|
|
1682
1682
|
|
|
1683
1683
|
"negotiator/content-type": ["content-type@2.1.0", "", {}, "sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag=="],
|
|
1684
1684
|
|
|
@@ -1752,8 +1752,6 @@
|
|
|
1752
1752
|
|
|
1753
1753
|
"gtoken/gaxios/https-proxy-agent": ["https-proxy-agent@7.0.6", "", { "dependencies": { "agent-base": "^7.1.2", "debug": "4" } }, "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw=="],
|
|
1754
1754
|
|
|
1755
|
-
"lru-memoizer/lru-cache/yallist": ["yallist@4.0.0", "", {}, "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="],
|
|
1756
|
-
|
|
1757
1755
|
"rimraf/glob/minimatch": ["minimatch@9.0.9", "", { "dependencies": { "brace-expansion": "^2.0.2" } }, "sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg=="],
|
|
1758
1756
|
|
|
1759
1757
|
"rimraf/glob/path-scurry": ["path-scurry@1.11.1", "", { "dependencies": { "lru-cache": "^10.2.0", "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" } }, "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA=="],
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/entity-page-
|
|
2
|
-
import{r as n,aY as p,aZ as l,a_ as y,p as j,Y as v,a2 as R,_,j as e,a$ as P,b0 as E,b1 as S}from"./index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/entity-page-DJmM70dv.js","assets/index-BUr8321-.js","assets/index-ChcQMdod.css","assets/schema-value-normalization-B--OWDL8.js","assets/calendar-C0XpOHd8.js","assets/renderer-CHNejd95.js","assets/card-DeFQuU_J.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{r as n,aY as p,aZ as l,a_ as y,p as j,Y as v,a2 as R,_,j as e,a$ as P,b0 as E,b1 as S}from"./index-BUr8321-.js";function u(){return n.useEffect(()=>{p()},[]),null}const b=E(async()=>({default:(await S(async()=>{const{EntityPage:s}=await import("./entity-page-DJmM70dv.js");return{EntityPage:s}},__vite__mapDeps([0,1,2,3,4,5,6]))).EntityPage}));function r(){return e.jsx("div",{"data-public-loading":"true",children:e.jsx(P,{})})}function N(){const{owner:s,_splat:m}=l.useParams(),a=l.useSearch(),{path:x}=y(s,m||""),{data:t,isLoading:i,error:o}=j(x,{slug:s},{includeBootstrap:!0}),{session:f,isReady:c}=v(),d=R();if(n.useEffect(()=>{t?.redirect&&d({to:t.redirect.to,replace:!0})},[t?.redirect,d]),_({active:!i&&c&&!f&&(!!o||!t),owner:s}),i||!c&&!t)return e.jsx(r,{});if(t?.redirect)return e.jsx(r,{});if(o||!t||!t.entity)return e.jsxs(e.Fragment,{children:[e.jsx(u,{}),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 h=typeof a.merged_from=="string"&&t.entity.merged_records?.some(g=>g.name===a.merged_from)?a.merged_from:void 0;return e.jsxs(e.Fragment,{children:[e.jsx(u,{}),e.jsx(n.Suspense,{fallback:e.jsx(r,{}),children:e.jsx(b,{namespace:t.workspace,path:t.path,entity:t.entity,mergedFrom:h})})]})}export{N as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d6 as t,j as p,d7 as e}from"./index-BUr8321-.js";import{A as m}from"./activity-route-view-DVW3DoB7.js";import"./device-automation-BIjs7DZJ.js";import"./agent-thread-storage-U6htL3ad.js";import"./pending-seed-CPbfgnLX.js";import"./clients-DhYr4lyL.js";import"./client-rows-EJSKR6z1.js";import"./connection-label-BobuYiAG.js";import"./events-feed-iliGfjit.js";import"./renderer-CHNejd95.js";import"./card-DeFQuU_J.js";import"./calendar-C0XpOHd8.js";import"./agent-loading-shells-CLoLeFcB.js";import"./member-scope-gate-B560Wg-t.js";function d(){const{owner:o,_splat:r}=t.useParams(),i=t.useSearch();return p.jsx(m,{owner:o,search:i,attentionLens:!1,entityScope:e(r||"").path})}export{d as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a2 as L,g6 as w,r as u,j as n,aj as D,db as y,Y as E,bM as M,bv as P,bm as N,bH as R,cE as O,g7 as $,g8 as B,cT as H,a7 as Q}from"./index-
|
|
1
|
+
import{a2 as L,g6 as w,r as u,j as n,aj as D,db as y,Y as E,bM as M,bv as P,bm as N,bH as R,cE as O,g7 as $,g8 as B,cT as H,a7 as Q}from"./index-BUr8321-.js";import{L as z,A as F}from"./agent-thread-CzCJU3-R.js";import{n as C}from"./agent-thread-storage-U6htL3ad.js";import{A as U,C as W}from"./agent-loading-shells-CLoLeFcB.js";import"./pending-seed-CPbfgnLX.js";import"./use-mention-search-uyW1Uwf6.js";import"./index-Vcq4gwWv.js";function Y({owner:t,agent:s,threadId:e,afterMessagesContent:d,className:r,initialDraft:x,newChatRequested:m=!1,preventAutoNavigate:g}){const o=L(),i=s.agentId,{data:a=[]}=w(i,{orgSlug:t}),[l,p]=u.useState(()=>C()),[h,A]=u.useState(null);u.useEffect(()=>{!m||e||(p(C()),A(null),o({to:".",search:(f=>{const{new:b,...k}=f;return k}),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(b=>b.id===c))return;A({id:c,title:`Conversation ${v.length+1}`,createdAt:Date.now(),updatedAt:Date.now()});const f=y(t,i,c);o({...f,replace:!0})},[v,c,o,t,i]),S=u.useCallback(()=>{T&&!g&&j()},[T,j,g]);return n.jsx("div",{className:D("flex min-h-0 flex-1 flex-col",r),children:n.jsx("div",{className:"flex min-h-0 flex-1 flex-col",children:n.jsx(z,{agentId:i,workspaceSlug:t,thread:c,loadHistory:!!e,onFirstUserMessage:S,initialDraft:x,children:n.jsx(F,{afterMessagesContent:d})},`${i}:${c}`)})})}function _({owner:t,agentId:s,threadId:e,initialDraft:d,newChatRequested:r,afterMessagesContent:x,preventAutoNavigate:m}){const{isAuthenticated:g}=E(),{isMember:o,isLoading:i}=M(),a=g&&o,{data:l=[],isLoading:p}=P({enabled:a}),h=s??null,A=l.find(c=>c.agentId===h)??null;return a&&p||i?n.jsx(U,{}):A?n.jsx(Y,{owner:t,agent:A,threadId:e,initialDraft:d,newChatRequested:r,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 q(t){return[...t].sort((s,e)=>e.updatedAt-s.updatedAt)[0]}function G({owner:t,agentId:s,threadId:e,initialDraft:d,forceComposer:r=!1,newChatRequested:x=!1,afterMessagesContent:m,preventAutoNavigate:g}){const o=L(),{data:i=[],isLoading:a}=O($(t,s,{strict:!1})),l=u.useMemo(()=>q(i),[i]);return u.useEffect(()=>{if(e||r||a||!l)return;const p=y(t,s,l.id);o({...p,replace:!0})},[s,a,l,o,t,e,r]),!e&&!r&&(a||l)?n.jsx(W,{}):n.jsx(_,{owner:t,agentId:s,threadId:e,initialDraft:d,newChatRequested:x,afterMessagesContent:m,preventAutoNavigate:g})}function te(){const{owner:t,agentId:s}=B.useParams(),{threadId:e}=H({strict:!1}),{new:d,prompt:r}=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(G,{owner:t,agentId:s,threadId:e,initialDraft:r,forceComposer:!e,newChatRequested:!!d})})})}export{te as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{gh as r,j as e}from"./index-BUr8321-.js";import{A as n}from"./agents-workbench-C2bUlJP2.js";import"./agent-editor-form-BTNlg0kQ.js";import"./model-selector-DfbmHjLu.js";import"./proposal-review-shell-D9HwnDda.js";import"./runs-BnYdToDc.js";function c(){const{owner:o,agentId:t}=r.useParams();return e.jsx(n,{owner:o,agentId:t})}export{c as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a2 as N,a1 as k,p as A,Y as L,bM as C,G as b,j as t,B as n,fa as y,bH as R,S as _,L as $,H as D,ga as p,aV as O}from"./index-
|
|
1
|
+
import{a2 as N,a1 as k,p as A,Y as L,bM as C,G as b,j as t,B as n,fa as y,bH as R,S as _,L as $,H as D,ga as p,aV as O}from"./index-BUr8321-.js";import{a as z}from"./automation-detail-content-DWkdhnv2.js";import"./create-automation-form-CJ4meayB.js";import"./cronstrue-ChFyC9ps.js";import"./entity-options-1EaSGMX4.js";import"./connection-label-BobuYiAG.js";import"./switch-Dzse_XFM.js";import"./device-automation-BIjs7DZJ.js";import"./model-selector-DfbmHjLu.js";import"./skill-editor-D_W3QlRz.js";import"./code-editor-BqGUZFt6.js";import"./index-OUb5Mlez.js";import"./index-Vcq4gwWv.js";import"./use-mention-search-uyW1Uwf6.js";import"./proposal-review-shell-D9HwnDda.js";import"./runs-BnYdToDc.js";import"./agent-loading-shells-CLoLeFcB.js";import"./agent-thread-CzCJU3-R.js";import"./pending-seed-CPbfgnLX.js";import"./events-feed-iliGfjit.js";import"./clients-DhYr4lyL.js";import"./renderer-CHNejd95.js";import"./card-DeFQuU_J.js";import"./json-diff-DnsW7Pin.js";function P({owner:a,automationId:o,view:e,runId:s}){const r=N(),{orgContext:u,hasOrgContext:x}=k(),{data:g,isLoading:m}=A(`/${a}`,u),{isAuthenticated:h}=L(),{isLoading:c}=C(),f=g?.workspace?.id??"",v=h?!x||m||c:m||c,i=b(o,void 0,f).data?.automation,j=i?.automation_name??"Automation",l=()=>void r({to:"/$owner/automations",params:{owner:a}}),d=()=>void r({to:"/$owner/automations/$automationId",params:{owner:a,automationId:o},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(y,{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}),v&&!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:a,automationId:o},search:{view:"definition",run_id:void 0},children:[t.jsx(D,{className:"h-3.5 w-3.5"}),"Edit"]})})]}),t.jsx(z,{owner:a,agentId:i?.managed_agent_id??null,automationId:o,view:e,runId:s,onDone:s?l:d})]})})}function nt(){const{owner:a,automationId:o}=p.useParams(),e=p.useSearch();return t.jsx(O,{owner:a,children:()=>t.jsx(P,{owner:a,automationId:o,view:e.view,runId:e.run_id})})}export{nt as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{hm as F,j as e,aV as B,a2 as H,bb as W,a as O,dI as V,n as G,S as L,L as h,g4 as v,g2 as U,br as q,dP as z,g3 as J,gH as I,a8 as Q}from"./index-
|
|
1
|
+
import{hm as F,j as e,aV as B,a2 as H,bb as W,a as O,dI as V,n as G,S as L,L as h,g4 as v,g2 as U,br as q,dP as z,g3 as J,gH as I,a8 as Q}from"./index-BUr8321-.js";import{R as X,c as Y,C as Z}from"./device-pin-tombstone-1ikyqSdb.js";import{a as K}from"./connector-provenance-DgsDg0Z9.js";import{f as ee,C as ne,F as se,b as ae,a as oe,A as te,c as ce}from"./connection-feed-detail-B3ePAinf.js";import{S as ie,g as re}from"./runs-table-B7jKuILd.js";import{c as de}from"./connection-label-BobuYiAG.js";import{c as le}from"./device-rows-Cp3yMcuV.js";import"./runs-panel-DsdESupx.js";import"./runs-BnYdToDc.js";import"./entity-options-1EaSGMX4.js";function Ne(){const{owner:r,connectorKey:a,connectionId:f}=F.useParams(),{addFeed:o,feedId:d,settings:u,auth_result:c}=F.useSearch();return e.jsx(B,{owner:r,children:l=>e.jsx(me,{organizationId:l.organizationId,ownerSlug:l.ownerSlug,isWorkspaceLoading:l.isWorkspaceLoading,connectorKey:a,connectionId:Number(f),showAddFeed:o===!0,feedId:d,openSettings:u===!0,authResult:c})})}function me({organizationId:r,ownerSlug:a,isWorkspaceLoading:f,connectorKey:o,connectionId:d,showAddFeed:u,feedId:c,openSettings:l,authResult:R}){const A=H(),{data:S=[]}=W(),{data:E=[],isLoading:M}=O(r??"",{connectorKey:o}),{data:C=[]}=V(r??""),{data:P=[]}=G(c?d:null),n=E.find(t=>t.id===d),s=C.find(t=>t.key===o),i=c?P.find(t=>t.id===c):null;if(f||M||!r)return e.jsxs("div",{className:"flex flex-1 flex-col gap-4",children:[e.jsxs("div",{className:"flex flex-wrap items-baseline gap-x-3 gap-y-1",children:[e.jsx(L,{className:"h-7 w-56"}),e.jsx(L,{className:"h-4 w-24"})]}),e.jsx(X,{})]});if(!n)return e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:"Connection not found."}),e.jsxs(h,{to:"/$owner/connectors/$connectorKey",params:{owner:a,connectorKey:o},className:"mt-2 inline-block text-sm text-primary hover:underline",children:["Back to ",s?.name??o]})]});const D=de({...n,connector_name:n.connector_name??s?.name??null}),p=!c&&!u,T=()=>void A({to:"/$owner/connectors/$connectorKey/$connectionId",params:{owner:a,connectorKey:o,connectionId:String(d)},search:{},replace:!0});let m,x=D,g,N,j;c?i?(x=ee(i,s),i.store==="channel_messages"?(m=e.jsx(ne,{feed:i,hideHeader:!0}),j="chat channel"):(g=e.jsx(se,{feed:i,ownerSlug:a}),N=e.jsx(ae,{feed:i}),m=e.jsx(oe,{feed:i,connectorDef:s,ownerSlug:a}))):(m=e.jsx("p",{className:"text-sm text-muted-foreground",children:"Feed not found."}),x="Feed"):u&&(m=e.jsx(te,{onClose:T,organizationId:r,connections:[n],connectorDefinitions:C}),x="Add feed",j=ce);const _=[e.jsx(h,{to:"/$owner/connectors",params:{owner:a},className:v,children:"Connectors"},"connectors"),e.jsx(h,{to:"/$owner/connectors/$connectorKey",params:{owner:a,connectorKey:o},search:{},className:v,children:s?.name??o},"connector")];p||_.push(e.jsx(h,{to:"/$owner/connectors/$connectorKey/$connectionId",params:{owner:a,connectorKey:o,connectionId:String(d)},search:{},className:v,children:D},"connection"));const b=p?Y(n):null,y=j??b??void 0,$=e.jsx(U,{breadcrumb:e.jsx(J,{crumbs:_}),icon:s?e.jsx(q,{icon:s.icon,name:s.name,faviconDomain:s.favicon_domain??z(s.auth_schema)}):null,title:x,status:g??e.jsx(ie,{status:re(n.status),showDot:!0,children:n.status}),meta:N,caption:y,captionTone:b?"error":"muted"});if(!p)return e.jsx(I,{header:$,children:e.jsx("div",{className:"mt-0",children:m})});const k=s&&le(s)?S.find(t=>t.id===n.device_worker_id&&t.connectors.some(w=>w.connection_id===n.id&&w.organization_slug===a)):void 0;return k?e.jsx(Q,{to:"/$owner/connectors/device/$deviceId",params:{owner:a,deviceId:k.id},search:{connection:n.id,settings:l||void 0},hash:`connection-${n.id}`,replace:!0}):e.jsxs(I,{header:$,children:[e.jsx(K,{connectorDef:s,connectorKey:o,ownerSlug:a,deviceWorkerId:n.device_worker_id,deviceLabel:n.device_label}),e.jsx(Z,{connection:n,connectorDef:s,ownerSlug:a,openSettings:l,authResult:R},n.id)]})}export{Ne as component};
|