@lobu/runtime-server 20.0.1 → 20.1.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.
Files changed (157) hide show
  1. package/dist/catalogs/connectors.json +98 -1
  2. package/dist/component.json +1 -1
  3. package/dist/connectors/chat-user-identity.ts +45 -0
  4. package/dist/connectors/google-identity.ts +107 -0
  5. package/dist/connectors/google_drive.ts +36 -151
  6. package/dist/connectors/google_gmail.ts +149 -0
  7. package/dist/connectors/microsoft_outlook.ts +193 -0
  8. package/dist/connectors/slack-identity.ts +20 -0
  9. package/dist/dependencies.bun.lock +42 -42
  10. package/dist/owletto/dist/assets/_-CfcfHJO8.js +1 -0
  11. package/dist/owletto/dist/assets/{_-BTmsEMQo.js → _-DdvHIadV.js} +2 -2
  12. package/dist/owletto/dist/assets/_agentId-BTmFhpb6.js +1 -0
  13. package/dist/owletto/dist/assets/{_agentId-DON3NuNk.js → _agentId-DbTBU4KZ.js} +1 -1
  14. package/dist/owletto/dist/assets/{_automationId-Bprfhhg8.js → _automationId-C7dZzg6X.js} +1 -1
  15. package/dist/owletto/dist/assets/{_connectorKey._connectionId-75LMK1pB.js → _connectorKey._connectionId-NQf43Ew3.js} +1 -1
  16. package/dist/owletto/dist/assets/{_connectorKey.index-N0fJPz8N.js → _connectorKey.index-D-0ZNsgM.js} +1 -1
  17. package/dist/owletto/dist/assets/{_conversationId-BY5q9MHG.js → _conversationId-F5YmyLV9.js} +1 -1
  18. package/dist/owletto/dist/assets/{_deploymentId-DFh2d5Pm.js → _deploymentId-3LTMi0ZT.js} +1 -1
  19. package/dist/owletto/dist/assets/_name-BKeZbc-h.js +1 -0
  20. package/dist/owletto/dist/assets/{_owner-B92z-CVu.js → _owner-DglbbDEx.js} +1 -1
  21. package/dist/owletto/dist/assets/_skillKey-DhiGYYFq.js +1 -0
  22. package/dist/owletto/dist/assets/{_slug-CvHxtUEf.js → _slug-CnQDfsCE.js} +1 -1
  23. package/dist/owletto/dist/assets/{accept-invitation-CXSrxBJN.js → accept-invitation-Dgoyublh.js} +1 -1
  24. package/dist/owletto/dist/assets/{activity-route-view-C9W2Ipni.js → activity-route-view-BNzKO6aD.js} +1 -1
  25. package/dist/owletto/dist/assets/{agent-card-controls-CLupkefQ.js → agent-card-controls-VJgcB5-0.js} +1 -1
  26. package/dist/owletto/dist/assets/{agent-client-setup-list-DgFv4h0W.js → agent-client-setup-list-C5KRNRw3.js} +1 -1
  27. package/dist/owletto/dist/assets/{agent-connect-pages-DT8R_qnj.js → agent-connect-pages-BFSb6vmW.js} +1 -1
  28. package/dist/owletto/dist/assets/{agent-editor-form-ayUg3Ws1.js → agent-editor-form-CajEehVn.js} +1 -1
  29. package/dist/owletto/dist/assets/{agent-guardrails-route-D-b6CIt2.js → agent-guardrails-route-CZ_rXj-3.js} +1 -1
  30. package/dist/owletto/dist/assets/{agent-loading-shells-DjMpSoub.js → agent-loading-shells-Dczhk067.js} +1 -1
  31. package/dist/owletto/dist/assets/{agent-permissions-matrix-BuGatiEq.js → agent-permissions-matrix-DIVHvpZG.js} +1 -1
  32. package/dist/owletto/dist/assets/{agent-skill-context-DKpIFmCh.js → agent-skill-context-CxglCznW.js} +1 -1
  33. package/dist/owletto/dist/assets/{agent-skills-route-DqIMttMK.js → agent-skills-route-CatU8soC.js} +1 -1
  34. package/dist/owletto/dist/assets/{agent-subpage-shell-Bojgj1uq.js → agent-subpage-shell-DVSUdIBn.js} +1 -1
  35. package/dist/owletto/dist/assets/agent-thread-DnLUOzXk.js +134 -0
  36. package/dist/owletto/dist/assets/agents-OLmcj-qM.js +1 -0
  37. package/dist/owletto/dist/assets/{agents-workbench-BojDv6gX.js → agents-workbench-BOKifKIO.js} +1 -1
  38. package/dist/owletto/dist/assets/{app._appId-DNNB5FaI.js → app._appId-BXmITXO7.js} +1 -1
  39. package/dist/owletto/dist/assets/{automation-detail-content-CzqrHc4P.js → automation-detail-content-wJC9hhmA.js} +1 -1
  40. package/dist/owletto/dist/assets/automations-OLmcj-qM.js +1 -0
  41. package/dist/owletto/dist/assets/{calendar-VAaxHxss.js → calendar-taCoBmAh.js} +1 -1
  42. package/dist/owletto/dist/assets/{callback-0VB9tUCF.js → callback-CJxC8u_x.js} +1 -1
  43. package/dist/owletto/dist/assets/{card-HMQT7vU5.js → card-kpw3EaKC.js} +1 -1
  44. package/dist/owletto/dist/assets/{claim-C2-YTMw-.js → claim-DLHRN0bA.js} +1 -1
  45. package/dist/owletto/dist/assets/{clients-C0I3V7XE.js → clients-R4JsT_Fz.js} +1 -1
  46. package/dist/owletto/dist/assets/{code-editor-hOZHdlxM.js → code-editor-D3X0yQdI.js} +1 -1
  47. package/dist/owletto/dist/assets/connect-1ysEq9l0.js +1 -0
  48. package/dist/owletto/dist/assets/connect._clientId-BbMPs6l3.js +1 -0
  49. package/dist/owletto/dist/assets/{connected._clientId-BFuU4-8j.js → connected._clientId-ByH4etku.js} +1 -1
  50. package/dist/owletto/dist/assets/{connection-De_2AD46.js → connection-DdBkXNbX.js} +1 -1
  51. package/dist/owletto/dist/assets/{connection-feed-detail-Cbn85fG9.js → connection-feed-detail-DF93zx0A.js} +1 -1
  52. package/dist/owletto/dist/assets/{connector-provenance-B17-ze5S.js → connector-provenance-N3sc0nbo.js} +1 -1
  53. package/dist/owletto/dist/assets/{connectors-KnNED_-4.js → connectors-Ckn_aoNE.js} +1 -1
  54. package/dist/owletto/dist/assets/{consent-BOYb4pNu.js → consent-Bi6KCVtT.js} +1 -1
  55. package/dist/owletto/dist/assets/{core.esm-COW6Pfy6.js → core.esm-CFYXLQXH.js} +1 -1
  56. package/dist/owletto/dist/assets/{create-BFpUZ_mU.js → create-BiHpu2f4.js} +1 -1
  57. package/dist/owletto/dist/assets/create-C37QtjbJ.js +1 -0
  58. package/dist/owletto/dist/assets/{create-automation-form-CRenA7Ix.js → create-automation-form-Cv2RHsQ6.js} +1 -1
  59. package/dist/owletto/dist/assets/create-kAQa5_Q7.js +1 -0
  60. package/dist/owletto/dist/assets/{create._connectorKey-D4dIDQIQ.js → create._connectorKey-Qynix_hA.js} +1 -1
  61. package/dist/owletto/dist/assets/{cronstrue-BrlFh5Jy.js → cronstrue-D7xlYtGk.js} +1 -1
  62. package/dist/owletto/dist/assets/deployments-C5kSeowq.js +1 -0
  63. package/dist/owletto/dist/assets/{deployments-body-CXqfjLqj.js → deployments-body-BPCALbQe.js} +1 -1
  64. package/dist/owletto/dist/assets/{device-B0BBIdVx.js → device-DToHXxDM.js} +1 -1
  65. package/dist/owletto/dist/assets/{device-pin-tombstone-BBYes4en.js → device-pin-tombstone-DrTJYNKG.js} +1 -1
  66. package/dist/owletto/dist/assets/{device-rows-E63OZ9Cp.js → device-rows-fVm-zAiU.js} +1 -1
  67. package/dist/owletto/dist/assets/{device._deviceId-JN0cUCGe.js → device._deviceId-CIe7taim.js} +1 -1
  68. package/dist/owletto/dist/assets/{entity-options-qan9-Ycm.js → entity-options-DOGD_EyZ.js} +1 -1
  69. package/dist/owletto/dist/assets/{entity-page-CozUOlVP.js → entity-page-C8oDszRY.js} +1 -1
  70. package/dist/owletto/dist/assets/{entity-type-page-xISySjVW.js → entity-type-page-BfxIgJLq.js} +1 -1
  71. package/dist/owletto/dist/assets/{events-feed-DmZ3Ig3X.js → events-feed-B9OqmSBy.js} +1 -1
  72. package/dist/owletto/dist/assets/{full-page-spinner-Q_J5Wcop.js → full-page-spinner-DTSqneUO.js} +1 -1
  73. package/dist/owletto/dist/assets/guardrails-9Mr6avxk.js +1 -0
  74. package/dist/owletto/dist/assets/identity-DMfCjdBz.js +1 -0
  75. package/dist/owletto/dist/assets/{index-BKZMzuMS.js → index-Bfux0kHb.js} +34 -34
  76. package/dist/owletto/dist/assets/{index-pKfsEvLt.js → index-Bq4m-sK0.js} +1 -1
  77. package/dist/owletto/dist/assets/{index-CGx4og7r.js → index-CK2-iHcz.js} +1 -1
  78. package/dist/owletto/dist/assets/{index-C78ucWDF.js → index-CMOHHdFH.js} +1 -1
  79. package/dist/owletto/dist/assets/{index-BwVojwkg.js → index-COgBJ_ab.js} +1 -1
  80. package/dist/owletto/dist/assets/index-CkwwaMrx.js +1 -0
  81. package/dist/owletto/dist/assets/index-D0lZrXrY.js +1 -0
  82. package/dist/owletto/dist/assets/{index-DmB-3GhU.js → index-DYe_DVHa.js} +1 -1
  83. package/dist/owletto/dist/assets/index-DZadnZpq.js +1 -0
  84. package/dist/owletto/dist/assets/{index-DLZbFRSM.js → index-DcWyuLQS.js} +1 -1
  85. package/dist/owletto/dist/assets/{index-BwN9pHNs.js → index-DkKALC2l.js} +1 -1
  86. package/dist/owletto/dist/assets/index-DlqjyZKQ.js +1 -0
  87. package/dist/owletto/dist/assets/index-Dv0huHrO.js +1 -0
  88. package/dist/owletto/dist/assets/index-DxIDxgPJ.js +1 -0
  89. package/dist/owletto/dist/assets/index-bKUccXCc.js +1 -0
  90. package/dist/owletto/dist/assets/{index-C9Dtjaoi.js → index-jGZeANLE.js} +1 -1
  91. package/dist/owletto/dist/assets/{json-diff-1FNS_wGA.js → json-diff-CANZD4MQ.js} +1 -1
  92. package/dist/owletto/dist/assets/{list-skeleton-B6gjzr8t.js → list-skeleton-DZTUxpBx.js} +1 -1
  93. package/dist/owletto/dist/assets/{login-S9EGV_EA.js → login-D53geSP7.js} +1 -1
  94. package/dist/owletto/dist/assets/{logout-BOXPSr57.js → logout-DKQS25qd.js} +1 -1
  95. package/dist/owletto/dist/assets/{member-scope-gate-yGr4lrGD.js → member-scope-gate-C4QyRm2Q.js} +1 -1
  96. package/dist/owletto/dist/assets/{memory-browse-page-5n3MvqdS.js → memory-browse-page-DOpV3vht.js} +1 -1
  97. package/dist/owletto/dist/assets/{model-selector-9ZRlR7Sa.js → model-selector-CvU3VP90.js} +1 -1
  98. package/dist/owletto/dist/assets/models-ooBIWFuB.js +1 -0
  99. package/dist/owletto/dist/assets/new-B8_sRMYD.js +1 -0
  100. package/dist/owletto/dist/assets/{new-D4wlbvAZ.js → new-DIjOVXrQ.js} +1 -1
  101. package/dist/owletto/dist/assets/{new-BeZJOJgR.js → new-Df1q7GEj.js} +1 -1
  102. package/dist/owletto/dist/assets/{oauth-workspace-access-DoE-9F42.js → oauth-workspace-access-DWfiekRz.js} +1 -1
  103. package/dist/owletto/dist/assets/{organization-BezNEJK7.js → organization-DHEC7kDq.js} +1 -1
  104. package/dist/owletto/dist/assets/{permissions-GkKtC6a5.js → permissions-i7iwnE1a.js} +1 -1
  105. package/dist/owletto/dist/assets/{proposal-review-shell-Bk9D_9YN.js → proposal-review-shell-C_LcyUEF.js} +1 -1
  106. package/dist/owletto/dist/assets/{recent-BVvscz1V.js → recent-By19_Buq.js} +1 -1
  107. package/dist/owletto/dist/assets/{renderer-CAyr3B3s.js → renderer-B1UThnk2.js} +1 -1
  108. package/dist/owletto/dist/assets/{reset-password-atCMI5uQ.js → reset-password-Dsz5-Xeo.js} +1 -1
  109. package/dist/owletto/dist/assets/{runs-CftQDTkq.js → runs-BQ11PAQT.js} +1 -1
  110. package/dist/owletto/dist/assets/{runs-panel-BkRtr_C4.js → runs-panel-wkV1aGD9.js} +1 -1
  111. package/dist/owletto/dist/assets/{runs-table-CWCl38L5.js → runs-table-DzSWYkaf.js} +1 -1
  112. package/dist/owletto/dist/assets/{schema-value-normalization-C9Lm83-q.js → schema-value-normalization--DhnhJNf.js} +1 -1
  113. package/dist/owletto/dist/assets/{settings-CgTgofgd.js → settings-Bu239SXe.js} +1 -1
  114. package/dist/owletto/dist/assets/settings-FxbIvOhH.js +1 -0
  115. package/dist/owletto/dist/assets/skills-MBZ5ilDK.js +1 -0
  116. package/dist/owletto/dist/assets/{switch-BOGbkDQb.js → switch-CCKllS7w.js} +1 -1
  117. package/dist/owletto/dist/assets/{use-mention-search-C9ckRw0s.js → use-mention-search-CldNZTiT.js} +1 -1
  118. package/dist/owletto/dist/index.html +1 -1
  119. package/dist/server-main.bundle.mjs +3950 -3509
  120. package/npm-shrinkwrap.json +164 -160
  121. package/package.json +1 -1
  122. package/vendor/connector-sdk/dist/file-output.d.ts +97 -0
  123. package/vendor/connector-sdk/dist/file-output.js +176 -0
  124. package/vendor/connector-sdk/dist/index.d.ts +2 -0
  125. package/vendor/connector-sdk/dist/index.js +1 -0
  126. package/vendor/connector-sdk/package.json +1 -1
  127. package/vendor/core/dist/classify-error.js +50 -2
  128. package/vendor/core/dist/constants.d.ts +13 -6
  129. package/vendor/core/dist/constants.js +22 -8
  130. package/vendor/core/dist/errors.d.ts +20 -0
  131. package/vendor/core/dist/errors.js +21 -1
  132. package/vendor/core/package.json +1 -1
  133. package/dist/owletto/dist/assets/_-ea0K1u_g.js +0 -1
  134. package/dist/owletto/dist/assets/_agentId-qF8hi8Cf.js +0 -1
  135. package/dist/owletto/dist/assets/_name-OY_X_Zm-.js +0 -1
  136. package/dist/owletto/dist/assets/_skillKey-CeEE23_w.js +0 -1
  137. package/dist/owletto/dist/assets/agent-thread-R8Pego9t.js +0 -134
  138. package/dist/owletto/dist/assets/agents-C9x76gSX.js +0 -1
  139. package/dist/owletto/dist/assets/automations-C9x76gSX.js +0 -1
  140. package/dist/owletto/dist/assets/connect-DSr_gD8x.js +0 -1
  141. package/dist/owletto/dist/assets/connect._clientId-CTamwGrw.js +0 -1
  142. package/dist/owletto/dist/assets/create-CblXKFGZ.js +0 -1
  143. package/dist/owletto/dist/assets/create-ChUbSYvl.js +0 -1
  144. package/dist/owletto/dist/assets/deployments-DTFrUY7p.js +0 -1
  145. package/dist/owletto/dist/assets/guardrails-BB9iOxE3.js +0 -1
  146. package/dist/owletto/dist/assets/identity-DYbfG4hU.js +0 -1
  147. package/dist/owletto/dist/assets/index-7d9B918E.js +0 -1
  148. package/dist/owletto/dist/assets/index-BsDA0XzK.js +0 -1
  149. package/dist/owletto/dist/assets/index-C4Lz_gB-.js +0 -1
  150. package/dist/owletto/dist/assets/index-CO65Rkad.js +0 -1
  151. package/dist/owletto/dist/assets/index-CT_kxGkR.js +0 -1
  152. package/dist/owletto/dist/assets/index-CrKgNtiq.js +0 -1
  153. package/dist/owletto/dist/assets/index-DUIbfL6x.js +0 -1
  154. package/dist/owletto/dist/assets/models-LOhfJ0sb.js +0 -1
  155. package/dist/owletto/dist/assets/new-Dxn1qrmS.js +0 -1
  156. package/dist/owletto/dist/assets/settings-BKMOjfYf.js +0 -1
  157. package/dist/owletto/dist/assets/skills-DWr8qR3U.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobu/runtime-server",
3
- "version": "20.0.1",
3
+ "version": "20.1.0",
4
4
  "type": "module",
5
5
  "license": "BUSL-1.1",
6
6
  "repository": {
@@ -0,0 +1,97 @@
1
+ /**
2
+ * Portable connector file OUTPUT — the symmetric counterpart to `file-input.ts`.
3
+ *
4
+ * A connector hands bytes back by emitting an `attachments` array. The gateway
5
+ * strips the bytes into the artifact store and rewrites each entry to an
6
+ * `artifact_id` plus a signed `download_url`, so the bytes reach a device or a
7
+ * sandbox over HTTP instead of through the model's context. A connector that
8
+ * returns file content any other way (a bare base64 string, a provider URL that
9
+ * needs the provider's credential) cannot be downloaded by an agent at all.
10
+ *
11
+ * The emit step is identical for every provider — only "which URL holds the
12
+ * bytes" differs — and getting any part of it subtly wrong is silent: a
13
+ * mis-sliced UTF-8 string stores a manufactured U+FFFD, and a missing size
14
+ * guard is an out-of-memory kill rather than a readable error. Hence one copy.
15
+ */
16
+ /**
17
+ * Ceiling on a single download, enforced by the connector.
18
+ *
19
+ * This sits ABOVE the gateway's own 8 MiB attachment cap on purpose: the
20
+ * gateway decides what is too big to STORE and reports it as
21
+ * `attachments_rejected`, while this decides what is too big to hold in memory.
22
+ * A connector isolate buffers the whole body and then base64s it at 4/3 the
23
+ * size, so an unbounded download is an OOM kill, not a rejected attachment.
24
+ */
25
+ export declare const MAX_CONNECTOR_DOWNLOAD_BYTES: number;
26
+ /** Inline text budget when the caller does not ask for one. */
27
+ export declare const DEFAULT_INLINE_CONTENT_BYTES: number;
28
+ /** Hard ceiling on inline text, whatever the caller asks for. */
29
+ export declare const MAX_INLINE_CONTENT_BYTES: number;
30
+ /** True when a media type's bytes are meaningfully readable as text. */
31
+ export declare function isTextualMimeType(mimeType: string | undefined): boolean;
32
+ /**
33
+ * Clamp a caller-supplied `inline_max_bytes` into the allowed range.
34
+ *
35
+ * A non-number, a negative, or an absent value all fall back to the default;
36
+ * `0` is honoured as "do not inline" rather than treated as absent, which is
37
+ * why this cannot be written with `??`.
38
+ */
39
+ export declare function inlineContentBudget(requested: unknown): number;
40
+ /**
41
+ * Refuse an oversized download and say why, or return null to proceed.
42
+ *
43
+ * Call it twice: once with the size the provider DECLARES and once with the
44
+ * bytes actually received. Neither call is redundant — Drive omits the declared
45
+ * size for its native documents, while Gmail and Graph only reveal it in the
46
+ * same response that carries the bytes.
47
+ */
48
+ export declare function downloadSizeError(size: number | undefined, label: string): string | null;
49
+ /**
50
+ * Decode downloaded bytes as text and cut them to the inline budget.
51
+ *
52
+ * The decode comes FIRST because `decodeTruncated` requires well-formed UTF-8
53
+ * (it hands back nothing rather than manufacture a U+FFFD), and a downloaded
54
+ * file is not required to be any such thing — a latin-1 CSV would otherwise
55
+ * inline as an empty string, the exact "looks like an empty file" outcome this
56
+ * module refuses everywhere else. Decoding lossily once and re-encoding gives
57
+ * the truncator the input it documents, and makes a truncated file read the
58
+ * same as the first page of an untruncated one.
59
+ */
60
+ export declare function inlineText(source: Uint8Array | string, maxBytes: number): {
61
+ content: string;
62
+ truncated: boolean;
63
+ };
64
+ export interface FileDownloadOptions {
65
+ bytes: Uint8Array;
66
+ filename: string;
67
+ mimeType: string;
68
+ /**
69
+ * Inline text budget. Omit for the default; re-clamped here either way, so
70
+ * the ceiling holds even for a caller that skipped {@link inlineContentBudget}.
71
+ */
72
+ inlineMaxBytes?: number;
73
+ /**
74
+ * Force the textual decision instead of deriving it from `mimeType`. Drive
75
+ * needs this: a Google Doc's own media type is not textual, but the bytes it
76
+ * exported are.
77
+ */
78
+ textual?: boolean;
79
+ }
80
+ /**
81
+ * Build the action output for one downloaded file.
82
+ *
83
+ * The attachment always carries the WHOLE file; inline text is a convenience
84
+ * head, truncated rather than withheld, so a caller peeking at a large CSV gets
85
+ * its first page instead of being told to go fetch a URL.
86
+ *
87
+ * `kind` is deliberately omitted from the attachment: the gateway infers it
88
+ * from the media type (`inferKindFromMime`), so there is one rule rather than
89
+ * two that can disagree about what counts as an image.
90
+ */
91
+ export declare function fileDownloadOutput(params: FileDownloadOptions): Record<string, unknown>;
92
+ /**
93
+ * The shared `inline_max_bytes` field, so every connector's download action
94
+ * documents the same budget with the same words.
95
+ */
96
+ export declare function inlineMaxBytesSchema(): Record<string, unknown>;
97
+ //# sourceMappingURL=file-output.d.ts.map
@@ -0,0 +1,176 @@
1
+ /**
2
+ * Portable connector file OUTPUT — the symmetric counterpart to `file-input.ts`.
3
+ *
4
+ * A connector hands bytes back by emitting an `attachments` array. The gateway
5
+ * strips the bytes into the artifact store and rewrites each entry to an
6
+ * `artifact_id` plus a signed `download_url`, so the bytes reach a device or a
7
+ * sandbox over HTTP instead of through the model's context. A connector that
8
+ * returns file content any other way (a bare base64 string, a provider URL that
9
+ * needs the provider's credential) cannot be downloaded by an agent at all.
10
+ *
11
+ * The emit step is identical for every provider — only "which URL holds the
12
+ * bytes" differs — and getting any part of it subtly wrong is silent: a
13
+ * mis-sliced UTF-8 string stores a manufactured U+FFFD, and a missing size
14
+ * guard is an out-of-memory kill rather than a readable error. Hence one copy.
15
+ */
16
+ /**
17
+ * Ceiling on a single download, enforced by the connector.
18
+ *
19
+ * This sits ABOVE the gateway's own 8 MiB attachment cap on purpose: the
20
+ * gateway decides what is too big to STORE and reports it as
21
+ * `attachments_rejected`, while this decides what is too big to hold in memory.
22
+ * A connector isolate buffers the whole body and then base64s it at 4/3 the
23
+ * size, so an unbounded download is an OOM kill, not a rejected attachment.
24
+ */
25
+ export const MAX_CONNECTOR_DOWNLOAD_BYTES = 10 * 1024 * 1024;
26
+ /** Inline text budget when the caller does not ask for one. */
27
+ export const DEFAULT_INLINE_CONTENT_BYTES = 256 * 1024;
28
+ /** Hard ceiling on inline text, whatever the caller asks for. */
29
+ export const MAX_INLINE_CONTENT_BYTES = 1024 * 1024;
30
+ /** Media types that are text even though they are not `text/*`. */
31
+ const TEXTUAL_MIME_TYPES = new Set([
32
+ 'application/json',
33
+ 'application/xml',
34
+ 'application/javascript',
35
+ 'application/x-javascript',
36
+ 'application/x-yaml',
37
+ 'application/yaml',
38
+ 'application/typescript',
39
+ 'application/rtf',
40
+ 'application/x-sh',
41
+ 'application/sql',
42
+ 'image/svg+xml',
43
+ ]);
44
+ /** True when a media type's bytes are meaningfully readable as text. */
45
+ export function isTextualMimeType(mimeType) {
46
+ if (!mimeType)
47
+ return false;
48
+ const base = mimeType.split(';')[0]?.trim().toLowerCase() ?? '';
49
+ return TEXTUAL_MIME_TYPES.has(base) || base.startsWith('text/');
50
+ }
51
+ /**
52
+ * Clamp a caller-supplied `inline_max_bytes` into the allowed range.
53
+ *
54
+ * A non-number, a negative, or an absent value all fall back to the default;
55
+ * `0` is honoured as "do not inline" rather than treated as absent, which is
56
+ * why this cannot be written with `??`.
57
+ */
58
+ export function inlineContentBudget(requested) {
59
+ const valid = typeof requested === 'number' && Number.isFinite(requested) && requested >= 0;
60
+ return Math.min(valid ? requested : DEFAULT_INLINE_CONTENT_BYTES, MAX_INLINE_CONTENT_BYTES);
61
+ }
62
+ /**
63
+ * Refuse an oversized download and say why, or return null to proceed.
64
+ *
65
+ * Call it twice: once with the size the provider DECLARES and once with the
66
+ * bytes actually received. Neither call is redundant — Drive omits the declared
67
+ * size for its native documents, while Gmail and Graph only reveal it in the
68
+ * same response that carries the bytes.
69
+ */
70
+ export function downloadSizeError(size, label) {
71
+ if (size === undefined || size <= MAX_CONNECTOR_DOWNLOAD_BYTES)
72
+ return null;
73
+ return `File ${label} is ${size} bytes, above the ${MAX_CONNECTOR_DOWNLOAD_BYTES}-byte download limit. Fetch it directly from the provider instead.`;
74
+ }
75
+ /**
76
+ * Cut already-valid UTF-8 to a byte budget without manufacturing a U+FFFD.
77
+ *
78
+ * A plain `slice(0, maxBytes)` can cut mid-sequence, and the decoder turns the
79
+ * orphaned bytes into U+FFFD — a garbage character that then gets stored and
80
+ * embedded. Back off up to three bytes (the longest UTF-8 tail) until the slice
81
+ * decodes cleanly, so a legitimate U+FFFD already in the source is preserved
82
+ * while a manufactured one is impossible.
83
+ */
84
+ function decodeTruncated(encoded, maxBytes) {
85
+ const strict = new TextDecoder('utf-8', { fatal: true });
86
+ for (let end = maxBytes; end > maxBytes - 4 && end >= 0; end--) {
87
+ try {
88
+ return strict.decode(encoded.slice(0, end));
89
+ }
90
+ catch {
91
+ // Slice ended mid-sequence — drop a byte and retry.
92
+ }
93
+ }
94
+ // Unreachable: `encoded` always comes from TextEncoder, so one of the four
95
+ // slices above lands on a character boundary. Returning lossily here would
96
+ // manufacture the very U+FFFD this function exists to prevent.
97
+ return '';
98
+ }
99
+ /**
100
+ * Decode downloaded bytes as text and cut them to the inline budget.
101
+ *
102
+ * The decode comes FIRST because `decodeTruncated` requires well-formed UTF-8
103
+ * (it hands back nothing rather than manufacture a U+FFFD), and a downloaded
104
+ * file is not required to be any such thing — a latin-1 CSV would otherwise
105
+ * inline as an empty string, the exact "looks like an empty file" outcome this
106
+ * module refuses everywhere else. Decoding lossily once and re-encoding gives
107
+ * the truncator the input it documents, and makes a truncated file read the
108
+ * same as the first page of an untruncated one.
109
+ */
110
+ export function inlineText(source, maxBytes) {
111
+ // A caller that already decoded (a feed reading `response.text()`) passes the
112
+ // string: re-encoding it only to decode it back here is a full extra copy of
113
+ // every file on the ingest path, and it is a no-op — `response.text()` has
114
+ // already substituted U+FFFD for anything undecodable, and that round-trips
115
+ // cleanly.
116
+ const text = typeof source === 'string' ? source : new TextDecoder('utf-8').decode(source);
117
+ const encoded = new TextEncoder().encode(text);
118
+ if (encoded.byteLength <= maxBytes)
119
+ return { content: text, truncated: false };
120
+ return { content: decodeTruncated(encoded, maxBytes), truncated: true };
121
+ }
122
+ /**
123
+ * Build the action output for one downloaded file.
124
+ *
125
+ * The attachment always carries the WHOLE file; inline text is a convenience
126
+ * head, truncated rather than withheld, so a caller peeking at a large CSV gets
127
+ * its first page instead of being told to go fetch a URL.
128
+ *
129
+ * `kind` is deliberately omitted from the attachment: the gateway infers it
130
+ * from the media type (`inferKindFromMime`), so there is one rule rather than
131
+ * two that can disagree about what counts as an image.
132
+ */
133
+ export function fileDownloadOutput(params) {
134
+ const { bytes, filename, mimeType } = params;
135
+ const budget = inlineContentBudget(params.inlineMaxBytes);
136
+ const textual = params.textual ?? isTextualMimeType(mimeType);
137
+ const inline = budget > 0 && textual ? inlineText(bytes, budget) : undefined;
138
+ return {
139
+ size_bytes: bytes.length,
140
+ attachments: [
141
+ {
142
+ filename,
143
+ mime_type: mimeType,
144
+ // A VIEW over the same memory, not `Buffer.from(bytes)` — that copies
145
+ // the whole payload, and at the 10 MiB ceiling an extra full copy is
146
+ // exactly the allocation this module's callers guard against.
147
+ data: Buffer.from(bytes.buffer, bytes.byteOffset, bytes.byteLength).toString('base64'),
148
+ size_bytes: bytes.length,
149
+ },
150
+ ],
151
+ ...(inline
152
+ ? {
153
+ content: inline.content,
154
+ content_truncated: inline.truncated,
155
+ line_count: inline.content.length === 0 ? 0 : inline.content.split('\n').length,
156
+ }
157
+ : {
158
+ content_omitted_reason: textual
159
+ ? 'inlining disabled'
160
+ : 'file is binary; fetch it through the attachment download_url',
161
+ }),
162
+ };
163
+ }
164
+ /**
165
+ * The shared `inline_max_bytes` field, so every connector's download action
166
+ * documents the same budget with the same words.
167
+ */
168
+ export function inlineMaxBytesSchema() {
169
+ return {
170
+ type: 'integer',
171
+ minimum: 0,
172
+ maximum: MAX_INLINE_CONTENT_BYTES,
173
+ description: `Return text content inline when the file is at most this many bytes (default ${DEFAULT_INLINE_CONTENT_BYTES}, max ${MAX_INLINE_CONTENT_BYTES}). Binary files are never inlined. 0 disables inlining; the attachment is still published.`,
174
+ };
175
+ }
176
+ //# sourceMappingURL=file-output.js.map
@@ -7,6 +7,8 @@ export { BridgeOnlyConnector, ConnectorRuntime, IntegrationConnector, } from './
7
7
  export { defineConnector } from './define-connector.js';
8
8
  export { fileInputSchema, MAX_CONNECTOR_FILE_BYTES } from './file-input.js';
9
9
  export type { ConnectorFile, FileInputOptions, FileReference } from './file-input.js';
10
+ export { DEFAULT_INLINE_CONTENT_BYTES, downloadSizeError, fileDownloadOutput, inlineContentBudget, inlineMaxBytesSchema, inlineText, isTextualMimeType, MAX_CONNECTOR_DOWNLOAD_BYTES, MAX_INLINE_CONTENT_BYTES, } from './file-output.js';
11
+ export type { FileDownloadOptions } from './file-output.js';
10
12
  export { canonicalDeviceManifestJson, defineDeviceConnector, serializeDeviceConnector, sortDeviceManifestJson, } from './device-manifest.js';
11
13
  export type { DeviceActionDefinition, DeviceConnectorDefinition, DeviceConnectorManifest, DeviceConnectorRuntimeInfo, DeviceConnectorSpec, DeviceFeedDefinition, DeviceManifestSchema, } from './device-manifest.js';
12
14
  import { validateEntityMetrics } from './metrics.js';
@@ -8,6 +8,7 @@ export { default as ky, HTTPError } from 'ky';
8
8
  export { BridgeOnlyConnector, ConnectorRuntime, IntegrationConnector, } from './connector-runtime.js';
9
9
  export { defineConnector } from './define-connector.js';
10
10
  export { fileInputSchema, MAX_CONNECTOR_FILE_BYTES } from './file-input.js';
11
+ export { DEFAULT_INLINE_CONTENT_BYTES, downloadSizeError, fileDownloadOutput, inlineContentBudget, inlineMaxBytesSchema, inlineText, isTextualMimeType, MAX_CONNECTOR_DOWNLOAD_BYTES, MAX_INLINE_CONTENT_BYTES, } from './file-output.js';
11
12
  export { canonicalDeviceManifestJson, defineDeviceConnector, serializeDeviceConnector, sortDeviceManifestJson, } from './device-manifest.js';
12
13
  import { validateEntityMetrics } from './metrics.js';
13
14
  export { validateEntityMetrics };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobu/connector-sdk",
3
- "version": "20.0.1",
3
+ "version": "20.1.0",
4
4
  "description": "Lobu memory SDK — build pluggable connectors for Lobu memory",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -51,6 +51,19 @@ function classifyErrorMessage(message) {
51
51
  // accurate, visible "didn't finish responding in time" message.
52
52
  if (/wall-clock budget of \d+ms exceeded/.test(message))
53
53
  return errors_js_1.AgentErrorCode.WORKER_UNRESPONSIVE;
54
+ // The isolate EXECUTOR's timeout, which is a different path from the host
55
+ // wall-clock kill above and was never classified: `IsolateExecutor` throws
56
+ // "Execution timed out after <n>ms" when `host.run` exceeds its budget. Same
57
+ // event class, same remediation, so it takes the same code — without it the
58
+ // user read a raw "…timed out after 600000ms" with no CTA (11 agent turns in
59
+ // the 30 days to 2026-09-15, all of them wedged for the full 600s).
60
+ //
61
+ // The leading `(?:Feed )?` is not optional politeness: that message said
62
+ // "Feed execution timed out" until this change, workers deploy on their own
63
+ // cadence, and the server classifies whatever text the worker sent. Matching
64
+ // both spellings keeps a mid-rollout worker's failures classified.
65
+ if (/(?:feed )?execution timed out after \d+ms/i.test(message))
66
+ return errors_js_1.AgentErrorCode.WORKER_UNRESPONSIVE;
54
67
  // Provider usage/rate limit. Covers "429 Weekly/Monthly Limit
55
68
  // Exhausted", generic rate-limit/quota phrasings, and a bare 429. Placed
56
69
  // before PROVIDER_AUTH because a rate-limited request can also echo auth-ish
@@ -63,7 +76,21 @@ function classifyErrorMessage(message) {
63
76
  // JSON blob in the user's chat.
64
77
  if (errors_js_1.PROVIDER_BALANCE_EXHAUSTED.test(message))
65
78
  return errors_js_1.AgentErrorCode.PROVIDER_QUOTA_EXHAUSTED;
66
- if (/weekly\/monthly limit exhausted|limit exhausted|rate[-\s]?limit|quota (?:exceeded|exhausted)|too many requests|\b429\b|resource_exhausted/i.test(message))
79
+ // `usage limit` is ChatGPT subscription wording ("You have hit your ChatGPT
80
+ // usage limit (pro plan)."). It was the single largest unclassified failure
81
+ // in prod over the 30 days to 2026-09-15 — 47 of the 52 runs the provider
82
+ // had refused and the platform blamed on the agent, across both agent turns
83
+ // and Automation runs — and being unclassified cost three things at once: the
84
+ // run was blamed on the agent (`outcome = agent_error`), the user got the
85
+ // raw provider sentence with no "Manage provider" CTA, and the failure
86
+ // dodged the PROVIDER_* alert.
87
+ //
88
+ // It belongs HERE and not in `PROVIDER_BALANCE_EXHAUSTED` above: a
89
+ // subscription usage limit is WINDOWED — the provider names its own reset,
90
+ // hours or days out — while that union parks an Automation for a flat day
91
+ // regardless. Parking a windowed limit on a balance schedule would be a
92
+ // worse bug than the one this fixes.
93
+ if (errors_js_1.PROVIDER_WINDOWED_QUOTA.test(message))
67
94
  return errors_js_1.AgentErrorCode.PROVIDER_QUOTA_EXHAUSTED;
68
95
  // Gemini can end a turn with this provider-side tool-call rejection instead
69
96
  // of a usable stop reason. Keep the match specific: other finish reasons can
@@ -109,7 +136,28 @@ function classifyErrorMessage(message) {
109
136
  // reaches here from an upstream provider, so its length is not ours to
110
137
  // trust. Lazy stops at the first " not found" and the bound caps the walk;
111
138
  // spaces stay allowed so a quoted multi-word id still classifies.
112
- if (/not a valid model|unknown model|model [^\n]{0,120}? not found/i.test(message))
139
+ //
140
+ // `access to model denied` / `eligible for using the model` is the provider
141
+ // refusing THIS account this model ("403 Access to model denied. Please make
142
+ // sure you are eligible for using the model.", seen in prod on agent turns).
143
+ // The credential is good and every other model still works, so this is the
144
+ // model class and not PROVIDER_AUTH: "Choose model" is the remediation that
145
+ // actually unblocks the user, where "Reconnect provider" would send them to
146
+ // re-auth a credential that is already valid.
147
+ //
148
+ // The model exists but cannot serve THIS request: OpenAI answers
149
+ // "404 This model is only supported in v1/responses and not in
150
+ // v1/chat/completions.", OpenRouter "404 No endpoints found that support tool
151
+ // use." Both are a model/capability mismatch the user fixes by picking a
152
+ // different model, so they take the model code and its "Choose model" CTA
153
+ // rather than reading as an agent crash.
154
+ //
155
+ // Unlike the other entries here these were reproduced locally (a live turn
156
+ // against `openai/o1-pro` and `openrouter/openai/o1-pro` on 2026-09-15), not
157
+ // observed in prod — the 90-day corpus has no agent-turn 404 of either shape.
158
+ // Replaying that corpus with these patterns moves nothing, which is the
159
+ // evidence they do not over-match real traffic.
160
+ if (/not a valid model|unknown model|model [^\n]{0,120}? not found|access to model denied|eligible for using the model|model is only supported in|no endpoints found that support/i.test(message))
113
161
  return errors_js_1.AgentErrorCode.PROVIDER_UNKNOWN_MODEL;
114
162
  // model-resolver.ts / session-runner.ts throw this when a non-OpenAI
115
163
  // provider cannot be routed through the Lobu gateway proxy. This is usually a
@@ -23,13 +23,20 @@ export declare const TIME: {
23
23
  */
24
24
  export declare const MCP_PROTOCOL_VERSION = "2025-11-25";
25
25
  /**
26
- * Chat platforms Lobu operates a hosted bot for. A project connection using
27
- * one of these connector keys with `credentialMode: "hosted"` is reached by
28
- * redeeming a `/lobu link <code>` claim; the user never supplies a bot token.
26
+ * Every chat platform Lobu ships a connector for — the connectors declaring
27
+ * `x-lobu-chat-platform` in their options schema. A `connectors/*-chat-platforms`
28
+ * guard test keeps this in step with those declarations.
29
+ *
30
+ * This answers "is this connector a chat platform", which is all a CLIENT can
31
+ * know. It deliberately does NOT answer "does Lobu run a hosted bot for it" —
32
+ * that depends on whether a hosted preview connection exists in the deployment,
33
+ * which only the server can see, and which it reports with a specific 400.
34
+ * Conflating the two is what previously hard-rejected Google Chat in `lobu
35
+ * apply` while happily minting Telegram codes that nothing could redeem.
29
36
  */
30
- export declare const HOSTED_CHAT_PLATFORMS: readonly ["slack", "telegram"];
31
- export type HostedChatPlatform = (typeof HOSTED_CHAT_PLATFORMS)[number];
32
- export declare function isHostedChatPlatform(type: string): type is HostedChatPlatform;
37
+ export declare const CHAT_PLATFORMS: readonly ["slack", "telegram", "gchat", "discord", "teams", "whatsapp"];
38
+ export type ChatPlatform = (typeof CHAT_PLATFORMS)[number];
39
+ export declare function isChatPlatform(type: string): type is ChatPlatform;
33
40
  export declare const DEFAULTS: {
34
41
  /** Default session TTL in milliseconds */
35
42
  readonly SESSION_TTL_MS: number;
@@ -5,8 +5,8 @@
5
5
  * These are platform-agnostic and used by core, gateway, and platform adapters
6
6
  */
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.DEFAULTS = exports.HOSTED_CHAT_PLATFORMS = exports.MCP_PROTOCOL_VERSION = exports.TIME = void 0;
9
- exports.isHostedChatPlatform = isHostedChatPlatform;
8
+ exports.DEFAULTS = exports.CHAT_PLATFORMS = exports.MCP_PROTOCOL_VERSION = exports.TIME = void 0;
9
+ exports.isChatPlatform = isChatPlatform;
10
10
  // Time constants (milliseconds)
11
11
  exports.TIME = {
12
12
  /** One hour in milliseconds */
@@ -28,13 +28,27 @@ exports.TIME = {
28
28
  */
29
29
  exports.MCP_PROTOCOL_VERSION = "2025-11-25";
30
30
  /**
31
- * Chat platforms Lobu operates a hosted bot for. A project connection using
32
- * one of these connector keys with `credentialMode: "hosted"` is reached by
33
- * redeeming a `/lobu link <code>` claim; the user never supplies a bot token.
31
+ * Every chat platform Lobu ships a connector for — the connectors declaring
32
+ * `x-lobu-chat-platform` in their options schema. A `connectors/*-chat-platforms`
33
+ * guard test keeps this in step with those declarations.
34
+ *
35
+ * This answers "is this connector a chat platform", which is all a CLIENT can
36
+ * know. It deliberately does NOT answer "does Lobu run a hosted bot for it" —
37
+ * that depends on whether a hosted preview connection exists in the deployment,
38
+ * which only the server can see, and which it reports with a specific 400.
39
+ * Conflating the two is what previously hard-rejected Google Chat in `lobu
40
+ * apply` while happily minting Telegram codes that nothing could redeem.
34
41
  */
35
- exports.HOSTED_CHAT_PLATFORMS = ["slack", "telegram"];
36
- function isHostedChatPlatform(type) {
37
- return exports.HOSTED_CHAT_PLATFORMS.includes(type);
42
+ exports.CHAT_PLATFORMS = [
43
+ "slack",
44
+ "telegram",
45
+ "gchat",
46
+ "discord",
47
+ "teams",
48
+ "whatsapp",
49
+ ];
50
+ function isChatPlatform(type) {
51
+ return exports.CHAT_PLATFORMS.includes(type);
38
52
  }
39
53
  // Default configuration values
40
54
  exports.DEFAULTS = {
@@ -178,6 +178,26 @@ export declare const AGENT_ERRORS: Record<AgentErrorCode, AgentErrorSpec>;
178
178
  * self-heal, often within the minute.
179
179
  */
180
180
  export declare const PROVIDER_BALANCE_EXHAUSTED: RegExp;
181
+ /**
182
+ * Provider says: not now — a WINDOWED limit that self-heals, as opposed to the
183
+ * balance wall above. A bare 429, a rate limit, an exhausted plan window, or a
184
+ * subscription usage limit.
185
+ *
186
+ * Hoisted here for exactly the reason {@link PROVIDER_BALANCE_EXHAUSTED} was.
187
+ * This alternation was maintained as three independent literals — the turn
188
+ * classifier (`classify-error.ts`), the device schedule parker
189
+ * (`deviceProviderQuotaResetNotBefore`) and the server's own `INFRA_PATTERNS`
190
+ * — and drifted the same way the balance list did: the device parker learned
191
+ * ChatGPT's `usage limit` and the other two did not, so over the 30 days to
192
+ * 2026-09-15, 47 runs the provider had refused were recorded as the agent's
193
+ * fault, rendered to the user with no remediation CTA, and dodged the
194
+ * PROVIDER_* alert.
195
+ *
196
+ * Keep windowed wording ONLY. These must classify as quota but must NOT reach
197
+ * the day-park: they often clear within the minute, and the caller decides the
198
+ * horizon from the provider's own named reset.
199
+ */
200
+ export declare const PROVIDER_WINDOWED_QUOTA: RegExp;
181
201
  /** Parse an `AgentErrorCode` from an unknown value (payload/DB boundary). */
182
202
  export declare function toAgentErrorCode(value: unknown): AgentErrorCode | undefined;
183
203
  //# sourceMappingURL=errors.d.ts.map
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PROVIDER_BALANCE_EXHAUSTED = exports.AGENT_ERRORS = exports.AgentErrorCode = exports.ConfigError = exports.ConversationOwnedElsewhereError = exports.OrchestratorError = exports.ErrorCode = exports.WorkspaceError = exports.WorkerError = exports.BaseError = void 0;
3
+ exports.PROVIDER_WINDOWED_QUOTA = exports.PROVIDER_BALANCE_EXHAUSTED = exports.AGENT_ERRORS = exports.AgentErrorCode = exports.ConfigError = exports.ConversationOwnedElsewhereError = exports.OrchestratorError = exports.ErrorCode = exports.WorkspaceError = exports.WorkerError = exports.BaseError = void 0;
4
4
  exports.getErrorMessage = getErrorMessage;
5
5
  exports.toAgentErrorCode = toAgentErrorCode;
6
6
  /**
@@ -253,6 +253,26 @@ exports.AGENT_ERRORS = {
253
253
  * self-heal, often within the minute.
254
254
  */
255
255
  exports.PROVIDER_BALANCE_EXHAUSTED = /credit balance is too low|insufficient (?:credits?|balance|funds|quota)\b|no resource package|billing_hard_limit_reached|payment required|exceeded your current quota|out of credits?\b|no credits remaining/i;
256
+ /**
257
+ * Provider says: not now — a WINDOWED limit that self-heals, as opposed to the
258
+ * balance wall above. A bare 429, a rate limit, an exhausted plan window, or a
259
+ * subscription usage limit.
260
+ *
261
+ * Hoisted here for exactly the reason {@link PROVIDER_BALANCE_EXHAUSTED} was.
262
+ * This alternation was maintained as three independent literals — the turn
263
+ * classifier (`classify-error.ts`), the device schedule parker
264
+ * (`deviceProviderQuotaResetNotBefore`) and the server's own `INFRA_PATTERNS`
265
+ * — and drifted the same way the balance list did: the device parker learned
266
+ * ChatGPT's `usage limit` and the other two did not, so over the 30 days to
267
+ * 2026-09-15, 47 runs the provider had refused were recorded as the agent's
268
+ * fault, rendered to the user with no remediation CTA, and dodged the
269
+ * PROVIDER_* alert.
270
+ *
271
+ * Keep windowed wording ONLY. These must classify as quota but must NOT reach
272
+ * the day-park: they often clear within the minute, and the caller decides the
273
+ * horizon from the provider's own named reset.
274
+ */
275
+ exports.PROVIDER_WINDOWED_QUOTA = /limit exhausted|usage limit|rate[-\s]?limit|quota (?:exceeded|exhausted)|too many requests|\b429\b|resource_exhausted/i;
256
276
  /** Parse an `AgentErrorCode` from an unknown value (payload/DB boundary). */
257
277
  function toAgentErrorCode(value) {
258
278
  if (typeof value !== "string")
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobu/core",
3
- "version": "20.0.1",
3
+ "version": "20.1.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Core types and utilities for Lobu agent platform",
6
6
  "repository": {
@@ -1 +0,0 @@
1
- import{d6 as t,j as p,d7 as e}from"./index-BKZMzuMS.js";import{A as m}from"./activity-route-view-C9W2Ipni.js";import"./device-automation-BIjs7DZJ.js";import"./agent-thread-storage-U6htL3ad.js";import"./pending-seed-CPbfgnLX.js";import"./clients-C0I3V7XE.js";import"./client-rows-EJSKR6z1.js";import"./connection-label-BobuYiAG.js";import"./events-feed-DmZ3Ig3X.js";import"./renderer-CAyr3B3s.js";import"./card-HMQT7vU5.js";import"./calendar-VAaxHxss.js";import"./agent-loading-shells-DjMpSoub.js";import"./member-scope-gate-yGr4lrGD.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 +0,0 @@
1
- import{gh as r,j as e}from"./index-BKZMzuMS.js";import{A as n}from"./agents-workbench-BojDv6gX.js";import"./agent-editor-form-ayUg3Ws1.js";import"./model-selector-9ZRlR7Sa.js";import"./proposal-review-shell-Bk9D_9YN.js";import"./runs-CftQDTkq.js";function c(){const{owner:o,agentId:t}=r.useParams();return e.jsx(n,{owner:o,agentId:t})}export{c as component};
@@ -1 +0,0 @@
1
- import{hC as a,j as e}from"./index-BKZMzuMS.js";import{b as i}from"./agent-guardrails-route-D-b6CIt2.js";import"./model-selector-9ZRlR7Sa.js";import"./agent-subpage-shell-Bojgj1uq.js";import"./agent-loading-shells-DjMpSoub.js";import"./agent-card-controls-CLupkefQ.js";import"./switch-BOGbkDQb.js";function x(){const{owner:t,agentId:r,name:o}=a.useParams();return e.jsx(i,{owner:t,agentId:r,name:o})}export{x as component};
@@ -1 +0,0 @@
1
- import{hA as i,j as e}from"./index-BKZMzuMS.js";import{b as m}from"./agent-skills-route-DqIMttMK.js";import"./agent-subpage-shell-Bojgj1uq.js";import"./agent-skill-context-DKpIFmCh.js";import"./core.esm-COW6Pfy6.js";import"./skill-editor-D_W3QlRz.js";import"./agent-loading-shells-DjMpSoub.js";import"./agent-card-controls-CLupkefQ.js";import"./switch-BOGbkDQb.js";function f(){const{owner:t,agentId:o,skillKey:r}=i.useParams();return e.jsx(m,{owner:t,agentId:o,skillKey:r})}export{f as component};