@datalayer/agent-runtimes 1.6.39 → 1.6.40

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 (155) hide show
  1. package/dist-embed/chunks/{AgentDetails-Ba3DRn2p.js → AgentDetails-DC7O2VWb.js} +1 -1
  2. package/dist-embed/chunks/{AgentDetailsDialog-CXN0RO_L.js → AgentDetailsDialog-BTJCl-o-.js} +1 -1
  3. package/dist-embed/chunks/{AgentInspector-C66D0b0W.js → AgentInspector-BXqYY8g-.js} +1 -1
  4. package/dist-embed/chunks/{AgentInspectorDialog-DeK96QG1.js → AgentInspectorDialog-dRHZ1p73.js} +1 -1
  5. package/dist-embed/chunks/Avatar-Cv5OpUWu.js +1 -0
  6. package/dist-embed/chunks/{CellSidebarExtension-D7aXShZc.js → CellSidebarExtension-DXPIz0Km.js} +7 -7
  7. package/dist-embed/chunks/{ChatView-2N7PbcDs.js → ChatView-CRitAB2i.js} +4 -4
  8. package/dist-embed/chunks/{CollapsiblePlugin-y8sx_FL8.js → CollapsiblePlugin-BPlfrDQU.js} +1 -1
  9. package/dist-embed/chunks/DatalayerAgentBridge-D01Ek4NE.js +1 -0
  10. package/dist-embed/chunks/{DeckComponent-BnyeYRQq.js → DeckComponent-jvb83Q__.js} +1 -1
  11. package/dist-embed/chunks/{DocumentView-DT4DcdJI.js → DocumentView-BrdFnTVh.js} +3 -3
  12. package/dist-embed/chunks/{EphemeralDocument-CGISw1N3.js → EphemeralDocument-CkPQKyfy.js} +1 -1
  13. package/dist-embed/chunks/{EphemeralNotebook-Dyx-25uN.js → EphemeralNotebook-CiQIC3MG.js} +1 -1
  14. package/dist-embed/chunks/{ExcalidrawComponent-Bl3R2Mic.js → ExcalidrawComponent-D6Cr_b0Z.js} +1 -1
  15. package/dist-embed/chunks/{ExcalidrawModal-DSL5jBhG.js → ExcalidrawModal-Bso7oDbl.js} +1 -1
  16. package/dist-embed/chunks/{JupyterLexicalExtension-C55KdpCk.js → JupyterLexicalExtension-DuD7IV6j.js} +6 -6
  17. package/dist-embed/chunks/{KernelVariables-D3DSQaD3.js → KernelVariables-CXQagESp.js} +2 -2
  18. package/dist-embed/chunks/{NotebookSkeleton-BkzTMhIX.js → NotebookSkeleton-CvO9WylK.js} +1 -1
  19. package/dist-embed/chunks/{NotebookToolSurfaces-Bvj9nwA9.js → NotebookToolSurfaces-B9fkzQNR.js} +1 -1
  20. package/dist-embed/chunks/{NotebookToolbar-BMjQTGrr.js → NotebookToolbar-D36duUxK.js} +1 -1
  21. package/dist-embed/chunks/{NotebookView-DRPnBAI2.js → NotebookView-BrdHwtKH.js} +1 -1
  22. package/dist-embed/chunks/{Output-D-7eUege.js → Output-D9cwH5rg.js} +1 -1
  23. package/dist-embed/chunks/{SandboxDetailsDialog-qJBg2naH.js → SandboxDetailsDialog-BYgLjg3W.js} +1 -1
  24. package/dist-embed/chunks/{SchemaForm-D6BAKaNe.js → SchemaForm-B3qMIWMy.js} +1 -1
  25. package/dist-embed/chunks/{SheetTabs-BLaEhX0D.js → SheetTabs-BR72mzuo.js} +2 -2
  26. package/dist-embed/chunks/{SpreadsheetPreviewView-CaFQASZ4.js → SpreadsheetPreviewView-RA8ASTBV.js} +1 -1
  27. package/dist-embed/chunks/{SpreadsheetView-DesdGLpm.js → SpreadsheetView-BfScdA-X.js} +1 -1
  28. package/dist-embed/chunks/{Toolbar-BncUh2ly.js → Toolbar-BAjGB6b-.js} +1 -1
  29. package/dist-embed/chunks/{WidgetVariableView-B4faSdWW.js → WidgetVariableView-7lvDcxCg.js} +1 -1
  30. package/dist-embed/chunks/{YouTubePlugin-BPUrB3sh.js → YouTubePlugin-BbjCzaT_.js} +1 -1
  31. package/dist-embed/chunks/{ar-SA-G6X2FPQ2-Dq_tRQtR.js → ar-SA-G6X2FPQ2-D4M2b5Lr.js} +1 -1
  32. package/dist-embed/chunks/{az-AZ-76LH7QW2-DQAoJi9C.js → az-AZ-76LH7QW2-Rn7oINhz.js} +1 -1
  33. package/dist-embed/chunks/{bg-BG-XCXSNQG7-CfZUFj2_.js → bg-BG-XCXSNQG7-xztohKe7.js} +1 -1
  34. package/dist-embed/chunks/{bn-BD-2XOGV67Q-DiqZdhkT.js → bn-BD-2XOGV67Q-C7Ssg1_2.js} +1 -1
  35. package/dist-embed/chunks/{ca-ES-6MX7JW3Y-B6c2PcO9.js → ca-ES-6MX7JW3Y-Cr0zd8Z6.js} +1 -1
  36. package/dist-embed/chunks/{celltoolbartracker-BHSFiiuz.js → celltoolbartracker-D1C_kGQL.js} +1 -1
  37. package/dist-embed/chunks/{component-BUTWfiVL.js → component-CmnuUtgX.js} +3 -3
  38. package/dist-embed/chunks/{cs-CZ-2BRQDIVT-ha7l75va.js → cs-CZ-2BRQDIVT-G9tBUkZh.js} +1 -1
  39. package/dist-embed/chunks/{da-DK-5WZEPLOC-C3b8_hbR.js → da-DK-5WZEPLOC-91_vyLpq.js} +1 -1
  40. package/dist-embed/chunks/{de-DE-XR44H4JA-CxWFSn3l.js → de-DE-XR44H4JA-Bb9tvIZa.js} +1 -1
  41. package/dist-embed/chunks/{dist-BF0YFIb6.js → dist-B5YvY_O1.js} +2 -2
  42. package/dist-embed/chunks/{dist-DsEDq9qF.js → dist-BBqWTRLi.js} +1 -1
  43. package/dist-embed/chunks/{dist-DRRbvr4-.js → dist-BC_2VyAM.js} +1 -1
  44. package/dist-embed/chunks/{dist-B_TGJsfl.js → dist-BhfyuH1D.js} +1 -1
  45. package/dist-embed/chunks/{dist-Cfvz7CF7.js → dist-BlIg6ytm.js} +1 -1
  46. package/dist-embed/chunks/{dist-COiURBxL.js → dist-Ct-bkqXx.js} +4 -4
  47. package/dist-embed/chunks/{dist-tosaS6vh.js → dist-CtFgtNKe.js} +1 -1
  48. package/dist-embed/chunks/{dist-B1tXS8Wo.js → dist-DLyNQ3Jj.js} +1 -1
  49. package/dist-embed/chunks/{document-CqNE0DPx.js → document-Dp0KpIjg.js} +1 -1
  50. package/dist-embed/chunks/{drivecontents-D1HzL7Fi.js → drivecontents-BsC6Y2Vl.js} +1 -1
  51. package/dist-embed/chunks/{el-GR-BZB4AONW-iSsL6em8.js → el-GR-BZB4AONW-B5kc3JC5.js} +1 -1
  52. package/dist-embed/chunks/{es-ES-U4NZUMDT-BEbh9GGw.js → es-ES-U4NZUMDT-CpFB18Kf.js} +1 -1
  53. package/dist-embed/chunks/{esm-RWOqF6ly.js → esm-BqqxV5QL.js} +1 -1
  54. package/dist-embed/chunks/{eu-ES-A7QVB2H4-C7o7R9hc.js → eu-ES-A7QVB2H4-CqCALK0Q.js} +1 -1
  55. package/dist-embed/chunks/{fa-IR-HGAKTJCU-DQNpeHKi.js → fa-IR-HGAKTJCU-BzSY8fri.js} +1 -1
  56. package/dist-embed/chunks/{fi-FI-Z5N7JZ37-D083iC1R.js → fi-FI-Z5N7JZ37-DPRPVT_v.js} +1 -1
  57. package/dist-embed/chunks/{fr-FR-RHASNOE6-CUvaq7hG.js → fr-FR-RHASNOE6-Cr4lVSvD.js} +1 -1
  58. package/dist-embed/chunks/{gl-ES-HMX3MZ6V-DU31KRvC.js → gl-ES-HMX3MZ6V-CZUw7dN0.js} +1 -1
  59. package/dist-embed/chunks/{he-IL-6SHJWFNN-bMtU7JNY.js → he-IL-6SHJWFNN-DaU5Odek.js} +1 -1
  60. package/dist-embed/chunks/{hi-IN-IWLTKZ5I-Pma0rKxO.js → hi-IN-IWLTKZ5I-BZ84Rooc.js} +1 -1
  61. package/dist-embed/chunks/{htmlselect-CqXICb9e.js → htmlselect-5N6NdDqL.js} +1 -1
  62. package/dist-embed/chunks/{hu-HU-A5ZG7DT2-Dof3afSc.js → hu-HU-A5ZG7DT2-SZiCSe0B.js} +1 -1
  63. package/dist-embed/chunks/{id-ID-SAP4L64H-ZwqZHBDj.js → id-ID-SAP4L64H-DrRa3vVi.js} +1 -1
  64. package/dist-embed/chunks/{index-9EhrHHj7.js → index-B6-uQd5L.js} +3 -3
  65. package/dist-embed/chunks/{index-9wJFadG-.js → index-CEeyR3FZ.js} +1 -1
  66. package/dist-embed/chunks/{index-CqP3xLL5.js → index-CKWSKbHe.js} +1 -1
  67. package/dist-embed/chunks/{index-BbcMy3Al.js → index-DpN8KK6c.js} +1 -1
  68. package/dist-embed/chunks/{index--S8WFITA.js → index-JmqWOkdt.js} +1 -1
  69. package/dist-embed/chunks/{index-CMhceBby.js → index-PKH5uAl-.js} +1 -1
  70. package/dist-embed/chunks/{index-C7UsrKrP.js → index-hhftmReh.js} +1 -1
  71. package/dist-embed/chunks/{index-6zxBQeM_.js → index-qhxI1VzX.js} +2 -2
  72. package/dist-embed/chunks/{index.esm-xgVG4GIx.js → index.esm-Bvtnemp7.js} +1 -1
  73. package/dist-embed/chunks/{it-IT-JPQ66NNP-C-uM6NhO.js → it-IT-JPQ66NNP-_TEhDIcF.js} +1 -1
  74. package/dist-embed/chunks/{ja-JP-DBVTYXUO-qzihtLnX.js → ja-JP-DBVTYXUO-IJaTVgTb.js} +1 -1
  75. package/dist-embed/chunks/{kaa-6HZHGXH3-Amx_Jfx0.js → kaa-6HZHGXH3-CTksAiLJ.js} +1 -1
  76. package/dist-embed/chunks/{kab-KAB-ZGHBKWFO-BPZfDYRT.js → kab-KAB-ZGHBKWFO-DbA7aOfU.js} +1 -1
  77. package/dist-embed/chunks/{kk-KZ-P5N5QNE5-B83bJ3Yw.js → kk-KZ-P5N5QNE5-Bdzg30AB.js} +1 -1
  78. package/dist-embed/chunks/{km-KH-HSX4SM5Z-BvPDwBVw.js → km-KH-HSX4SM5Z-Bwn2NP1-.js} +1 -1
  79. package/dist-embed/chunks/{ko-KR-MTYHY66A-jpQ_OpzG.js → ko-KR-MTYHY66A-KUaxlo0q.js} +1 -1
  80. package/dist-embed/chunks/{ku-TR-6OUDTVRD-RsfwTm7i.js → ku-TR-6OUDTVRD-DRegsFXo.js} +1 -1
  81. package/dist-embed/chunks/{lib-CFx15o08.js → lib--J3JPp2K.js} +1 -1
  82. package/dist-embed/chunks/{lib-D6X8UF4a.js → lib-9S57siQD.js} +1 -1
  83. package/dist-embed/chunks/{lib-CoK70EWs.js → lib-BpltV-0Y.js} +1 -1
  84. package/dist-embed/chunks/{lib-DGhrI5Uw.js → lib-C2mgrsS1.js} +1 -1
  85. package/dist-embed/chunks/{lib-XSPvEMl2.js → lib-C46CpvHb.js} +1 -1
  86. package/dist-embed/chunks/{lib-D0Q8IWel.js → lib-CHID83aM.js} +1 -1
  87. package/dist-embed/chunks/{lib-Pqxz_81N.js → lib-COJY2oKd.js} +25 -25
  88. package/dist-embed/chunks/{lib-p7v7zGkv.js → lib-CQeoQJWp.js} +1 -1
  89. package/dist-embed/chunks/{lib-CdtiDxdA.js → lib-CjBEbEzm.js} +1 -1
  90. package/dist-embed/chunks/{lib-BBnVlTAj.js → lib-Cpc8Fspj.js} +1 -1
  91. package/dist-embed/chunks/{lib-CsiCQ8oM.js → lib-D7CvuX1J.js} +1 -1
  92. package/dist-embed/chunks/{lib-7ge2Kma3.js → lib-DOnguzJf.js} +1 -1
  93. package/dist-embed/chunks/{lib-UYAFV0Oh.js → lib-Dh9o1esj.js} +1 -1
  94. package/dist-embed/chunks/{lib-DdeRC7g0.js → lib-DrEcjKb5.js} +1 -1
  95. package/dist-embed/chunks/{lib-Dj12Ge-1.js → lib-PbTUB5SW.js} +1 -1
  96. package/dist-embed/chunks/{lib-DMy40SOL.js → lib-QmOij8gS.js} +1 -1
  97. package/dist-embed/chunks/{lib-C7Y61LM1.js → lib-csBGF1d0.js} +1 -1
  98. package/dist-embed/chunks/{lib-DTyx2eLX.js → lib-op0DTswa.js} +1 -1
  99. package/dist-embed/chunks/{lib-CkcilPdy.js → lib-ox3VOLDA.js} +1 -1
  100. package/dist-embed/chunks/{lib-Bi95m_cb.js → lib-rn9DpcHi.js} +1 -1
  101. package/dist-embed/chunks/{lt-LT-XHIRWOB4-qZ_KjUTQ.js → lt-LT-XHIRWOB4-c6CdaS7u.js} +1 -1
  102. package/dist-embed/chunks/{lv-LV-5QDEKY6T-BOKJbljG.js → lv-LV-5QDEKY6T-D9RognOk.js} +1 -1
  103. package/dist-embed/chunks/{model-C2VRzh1c.js → model-DbDJZyri.js} +1 -1
  104. package/dist-embed/chunks/{mr-IN-CRQNXWMA-xba6p6AI.js → mr-IN-CRQNXWMA-ht3P_mrN.js} +1 -1
  105. package/dist-embed/chunks/{my-MM-5M5IBNSE-B_H0GaRX.js → my-MM-5M5IBNSE-CsIkhWRp.js} +1 -1
  106. package/dist-embed/chunks/{nb-NO-T6EIAALU-Ddg4NpHf.js → nb-NO-T6EIAALU-DJw7Uvbx.js} +1 -1
  107. package/dist-embed/chunks/{nl-NL-IS3SIHDZ-DS_Sofox.js → nl-NL-IS3SIHDZ-Dcrp-zwB.js} +1 -1
  108. package/dist-embed/chunks/{nn-NO-6E72VCQL-CYSB6TTi.js → nn-NO-6E72VCQL-DaBAIbM9.js} +1 -1
  109. package/dist-embed/chunks/{oc-FR-POXYY2M6-QrIn4XvF.js → oc-FR-POXYY2M6-DSdMEDCa.js} +1 -1
  110. package/dist-embed/chunks/{pa-IN-N4M65BXN-BbacRfk_.js → pa-IN-N4M65BXN-BMyPito1.js} +1 -1
  111. package/dist-embed/chunks/{percentages-BXMCSKIN-TyKhSuec.js → percentages-BXMCSKIN-pswfKMt2.js} +3 -3
  112. package/dist-embed/chunks/{pl-PL-T2D74RX3-Cn2ehrU4.js → pl-PL-T2D74RX3-CFk8rHgP.js} +1 -1
  113. package/dist-embed/chunks/{plugin-CPCdQWpK.js → plugin-BpyrQiv7.js} +1 -1
  114. package/dist-embed/chunks/{plugin-D7Giq2rW.js → plugin-NcgdmcAO.js} +1 -1
  115. package/dist-embed/chunks/{plugin-AdqytlNC.js → plugin-omHCT1Jk.js} +1 -1
  116. package/dist-embed/chunks/{pt-BR-5N22H2LF-CpNtiBPh.js → pt-BR-5N22H2LF-BYlDcalT.js} +1 -1
  117. package/dist-embed/chunks/{pt-PT-UZXXM6DQ-CcDR3Igq.js → pt-PT-UZXXM6DQ-xXdoFOOb.js} +1 -1
  118. package/dist-embed/chunks/{pyodide-kernel-CN7B4QLg.js → pyodide-kernel-bjLdubpe.js} +1 -1
  119. package/dist-embed/chunks/{pyodide-kernel-extension-CKE5jq9F.js → pyodide-kernel-extension-CshyO6Mm.js} +1 -1
  120. package/dist-embed/chunks/{renderer-8__rsP1H.js → renderer-We9CyR7b.js} +1 -1
  121. package/dist-embed/chunks/{ro-RO-JPDTUUEW-CANXxss1.js → ro-RO-JPDTUUEW-e-URCww-.js} +1 -1
  122. package/dist-embed/chunks/{ru-RU-B4JR7IUQ-B_NkKbWo.js → ru-RU-B4JR7IUQ-CrXBOpZl.js} +1 -1
  123. package/dist-embed/chunks/{server-extension-BvlUJPbJ.js → server-extension-D9R-wwz5.js} +1 -1
  124. package/dist-embed/chunks/{sessions-CgjtuOSm.js → sessions-DdXtI_C1.js} +1 -1
  125. package/dist-embed/chunks/{si-LK-N5RQ5JYF-Da_Bg8Mv.js → si-LK-N5RQ5JYF-DmJK04-A.js} +1 -1
  126. package/dist-embed/chunks/{sk-SK-C5VTKIMK-BKs6l_DT.js → sk-SK-C5VTKIMK-BDHycW1Q.js} +1 -1
  127. package/dist-embed/chunks/{sl-SI-NN7IZMDC-C4TvSXZU.js → sl-SI-NN7IZMDC-Bv9ZQTNb.js} +1 -1
  128. package/dist-embed/chunks/{subset-shared.chunk-BZGTZU2h.js → subset-shared.chunk-B0WCMaCa.js} +1 -1
  129. package/dist-embed/chunks/{subset-worker.chunk-CNJFtQV7.js → subset-worker.chunk-i0SNRqXr.js} +1 -1
  130. package/dist-embed/chunks/{sv-SE-XGPEYMSR-DdKzikID.js → sv-SE-XGPEYMSR-_HPzcZFc.js} +1 -1
  131. package/dist-embed/chunks/{ta-IN-2NMHFXQM-CDzGLNXS.js → ta-IN-2NMHFXQM-Ccvi-lqm.js} +1 -1
  132. package/dist-embed/chunks/{th-TH-HPSO5L25-X4BJ7awj.js → th-TH-HPSO5L25-DvAg4Mv1.js} +1 -1
  133. package/dist-embed/chunks/{tokens-CBhRbpQP.js → tokens-CTXFWLvM.js} +1 -1
  134. package/dist-embed/chunks/{tr-TR-DEFEU3FU-CN69_6_H.js → tr-TR-DEFEU3FU-DJsjfrja.js} +1 -1
  135. package/dist-embed/chunks/{uk-UA-QMV73CPH-KjB2cySI.js → uk-UA-QMV73CPH-3fvexlQA.js} +1 -1
  136. package/dist-embed/chunks/{usePrimerThemeBridge-DyX4EYyN.js → usePrimerThemeBridge-NsTRGuo7.js} +1 -1
  137. package/dist-embed/chunks/{vi-VN-M7AON7JQ-BqVSbGWG.js → vi-VN-M7AON7JQ-BoQ3ayAr.js} +1 -1
  138. package/dist-embed/chunks/{zh-CN-LNUGB5OW-oRPI4tbl.js → zh-CN-LNUGB5OW-Dzh0Ni_q.js} +1 -1
  139. package/dist-embed/chunks/{zh-HK-E62DVLB3-BUlz3y0i.js → zh-HK-E62DVLB3-_1FpSc_d.js} +1 -1
  140. package/dist-embed/chunks/{zh-TW-RAJ6MFWO-NxjUwhr3.js → zh-TW-RAJ6MFWO-CU-R8eF0.js} +1 -1
  141. package/dist-embed/datalayer-app-main.js +18 -18
  142. package/lib/apps/apps/AppRenderer.d.ts +6 -0
  143. package/lib/apps/apps/AppRenderer.js +3 -0
  144. package/lib/apps/plugins/agents/appLaunch.js +12 -0
  145. package/lib/hooks/useAgentRuntimes.d.ts +1 -1
  146. package/lib/hooks/useAgentRuntimes.js +2 -0
  147. package/lib/runtimes/actions.js +6 -0
  148. package/lib/runtimes/apis.d.ts +8 -0
  149. package/lib/specs/agents/agents.js +1 -1
  150. package/lib/types/agents-lifecycle.d.ts +7 -0
  151. package/lib/types/agentspecs.d.ts +9 -4
  152. package/lib/types/agentspecs.js +7 -1
  153. package/package.json +1 -1
  154. package/dist-embed/chunks/Avatar-MNx1kN3F.js +0 -1
  155. package/dist-embed/chunks/DatalayerAgentBridge-BuGt8vDu.js +0 -1
@@ -95,6 +95,12 @@ export type AppInstance = {
95
95
  * application of nobody's organization.
96
96
  */
97
97
  organizationUid?: string;
98
+ /**
99
+ * What runs and hosts its agent, as its deployment says (`runtime_engine`):
100
+ * a kagent deployment's runtime is launched on kagent. Unsaid, its agent
101
+ * spec's engine applies.
102
+ */
103
+ runtimeEngine?: 'datalayer' | 'kagent';
98
104
  };
99
105
  export type AppRendererProps = Omit<LoopEmbedProps, 'agentId'> & {
100
106
  /** The application to render. */
@@ -311,6 +311,9 @@ export function appDatalayerCreatePayload(app, instance) {
311
311
  ...(instance.organizationUid
312
312
  ? { organization_uid: instance.organizationUid }
313
313
  : {}),
314
+ ...(instance.runtimeEngine
315
+ ? { runtime_engine: instance.runtimeEngine }
316
+ : {}),
314
317
  },
315
318
  }
316
319
  : {}),
@@ -2,6 +2,7 @@
2
2
  * Copyright (c) 2025-2026 Datalayer, Inc.
3
3
  * Distributed under the terms of the Modified BSD License.
4
4
  */
5
+ import { RUNTIME_ENGINES } from '../../../types/agentspecs.js';
5
6
  /**
6
7
  * The launch of the application an agent is created with, or none.
7
8
  *
@@ -20,9 +21,20 @@ export function appLaunchOf(createPayload) {
20
21
  const deploymentUid = typeof instance.deployment_uid === 'string' && instance.deployment_uid
21
22
  ? instance.deployment_uid
22
23
  : undefined;
24
+ const said = instance.runtime_engine;
25
+ if (said !== undefined &&
26
+ said !== '' &&
27
+ !RUNTIME_ENGINES.includes(said)) {
28
+ throw new Error(`The application's instance runs on ${String(said)}: one of ${RUNTIME_ENGINES.join(', ')} (runtime_engine).`);
29
+ }
30
+ if (said === 'agentcore') {
31
+ throw new Error('An application deployed on AWS AgentCore is not launched on a runtime: AgentCore starts its agent runtime itself.');
32
+ }
33
+ const runtimeEngine = said ? said : undefined;
23
34
  return {
24
35
  appSpec: appSpec,
25
36
  ...(appUid ? { appUid } : {}),
26
37
  ...(deploymentUid ? { deploymentUid } : {}),
38
+ ...(runtimeEngine ? { runtimeEngine } : {}),
27
39
  };
28
40
  }
@@ -62,7 +62,7 @@ export interface UseAgentOptions {
62
62
  appLaunch?: AppLaunch;
63
63
  }
64
64
  /** What an application's launch carries besides its environment (R-19). */
65
- export type AppLaunch = Required<Pick<IRuntimeOptions, 'appSpec'>> & Pick<IRuntimeOptions, 'appUid' | 'deploymentUid'>;
65
+ export type AppLaunch = Required<Pick<IRuntimeOptions, 'appSpec'>> & Pick<IRuntimeOptions, 'appUid' | 'deploymentUid' | 'runtimeEngine'>;
66
66
  /**
67
67
  * Return type for the useAgents hook.
68
68
  */
@@ -958,6 +958,8 @@ export function useCreateAgentRuntime() {
958
958
  enable_codemode: data.enableCodemode ?? false,
959
959
  agent_spec_id: data.agentSpecId || undefined,
960
960
  agent_spec: data.agentSpec || undefined,
961
+ // The person's choice overrides the spec's; none is the spec's.
962
+ runtime_engine: data.runtimeEngine || undefined,
961
963
  user_account_handle: data.userAccountHandle || undefined,
962
964
  billing_entity_uid: data.billingEntityUid || undefined,
963
965
  billing_entity_type: data.billingEntityType || undefined,
@@ -95,6 +95,12 @@ export async function createRuntime(options) {
95
95
  if (options.deploymentUid) {
96
96
  body['deployment_uid'] = options.deploymentUid;
97
97
  }
98
+ if (options.runtimeEngine) {
99
+ // A deployment's engine, overriding its agent spec's: the Operator does
100
+ // not read the spec of a deployment's launch, so a kagent deployment
101
+ // reaches kagent only when its launch says so.
102
+ body['runtime_engine'] = options.runtimeEngine;
103
+ }
98
104
  if (options.appSpec) {
99
105
  body['app_spec'] = options.appSpec;
100
106
  }
@@ -2,6 +2,7 @@
2
2
  * Runtimes APIs.
3
3
  */
4
4
  import { ISessionContext } from '@jupyterlab/apputils';
5
+ import type { RuntimeEngine } from '../types/agentspecs';
5
6
  import { ServiceManager, Kernel, ServerConnection } from '@jupyterlab/services';
6
7
  import { IDisposable } from '@lumino/disposable';
7
8
  import { ISignal } from '@lumino/signaling';
@@ -68,6 +69,13 @@ export interface IRuntimeOptions {
68
69
  * of an application: one named without `appUid` is refused.
69
70
  */
70
71
  deploymentUid?: string;
72
+ /**
73
+ * What runs and hosts its agent (`datalayer` or `kagent`): a deployment's
74
+ * own `runtime_engine`, which overrides its agent spec's. Unsaid, the
75
+ * spec's applies. `agentcore` is never launched this way: AgentCore starts
76
+ * its agent runtime itself.
77
+ */
78
+ runtimeEngine?: RuntimeEngine;
71
79
  }
72
80
  /**
73
81
  * Interface for the Environments Manager
@@ -14429,7 +14429,7 @@ export const WORKER_STEWARD_AWS_AGENTSPEC_0_0_1 = {
14429
14429
  welcomeDocument: undefined,
14430
14430
  sandboxVariant: undefined,
14431
14431
  harness: 'pydantic-ai',
14432
- runtimeEngine: 'datalayer',
14432
+ runtimeEngine: 'agentcore',
14433
14433
  systemPrompt: `You are Datalayer Steward for AWS, the Steward. You read one AWS account with a read-only role and recommend cost savings.
14434
14434
  Evidence first. Read before you recommend: aws_cost_optimization_hub for AWS's own cost recommendations, aws_compute_optimizer for right-sizing and idle resources, aws_cost_explorer for spend, Savings Plans and Reserved Instance coverage and anomalies. Never state a number you did not read; when a source answers that it is not enabled or refuses, say so and go on with the others.
14435
14435
  Record each recommendation with record_recommendation: its evidence is the reading tool's source, call and read_at exactly as answered, with the values you rely on; its estimate says by aws when the number is AWS's estimate and by datalayer when you computed it, with the method; its fix is the change a person reviews (a CLI command, console steps or a CloudFormation change set) and how to undo it. When record_recommendation refuses, read what is missing or leave the recommendation out. Never show a recommendation that was not recorded.
@@ -5,6 +5,7 @@
5
5
  * @module types/agents-lifecycle
6
6
  */
7
7
  import type { AgentRuntimeData } from './agents';
8
+ import type { RuntimeEngine } from './agentspecs';
8
9
  /** Request payload for creating a new agent runtime. */
9
10
  export type CreateAgentRuntimeRequest = {
10
11
  environmentName?: string;
@@ -18,6 +19,12 @@ export type CreateAgentRuntimeRequest = {
18
19
  agentSpecId?: string;
19
20
  /** Full agent spec payload to propagate to backend services */
20
21
  agentSpec?: Record<string, any>;
22
+ /**
23
+ * What runs and hosts the agent, as the person chose it ("Where it
24
+ * runs"): it overrides the spec's `runtimeEngine`, and none means the
25
+ * spec's. `agentcore` is launched in the organization's AWS account.
26
+ */
27
+ runtimeEngine?: RuntimeEngine;
21
28
  /** Account UID (user or organization) charged for runtime costs */
22
29
  billingEntityUid?: string;
23
30
  /** User account handle used for user home mount path. */
@@ -1865,11 +1865,13 @@ export interface AgentPolicy {
1865
1865
  shield?: AgentShieldFirewall;
1866
1866
  }
1867
1867
  /** The engines that run and host an agent (`runtime_engine`), the default first. */
1868
- export declare const RUNTIME_ENGINES: readonly ["datalayer", "kagent"];
1869
- /** What runs and hosts an agent: a Datalayer runtime, or kagent. */
1868
+ export declare const RUNTIME_ENGINES: readonly ["datalayer", "kagent", "agentcore"];
1869
+ /** What runs and hosts an agent: a Datalayer runtime, kagent, or AWS AgentCore. */
1870
1870
  export type RuntimeEngine = (typeof RUNTIME_ENGINES)[number];
1871
1871
  /** How an engine is named to a person. */
1872
1872
  export declare const RUNTIME_ENGINE_LABELS: Record<RuntimeEngine, string>;
1873
+ /** The harnesses an engine can run; an engine absent here runs any. */
1874
+ export declare const RUNTIME_ENGINE_HARNESSES: Partial<Record<RuntimeEngine, readonly string[]>>;
1873
1875
  export interface Agentspec {
1874
1876
  /** Unique agent identifier */
1875
1877
  id: string;
@@ -1944,8 +1946,11 @@ export interface Agentspec {
1944
1946
  * running `agent-runtimes serve --target kagent`), reached through kagent's
1945
1947
  * A2A gateway at `/agents/{namespace}/{name}`, each conversation a session
1946
1948
  * actor of Agent Substrate, suspended when idle and resumed on the next
1947
- * message. Distinct from `harness`, which says which agent program turns
1948
- * the loop.
1949
+ * message; `agentcore` is Amazon Bedrock AgentCore Runtime in the AWS
1950
+ * account of the organization that launches it. The spec's engine is the
1951
+ * default a launch may override (`runtime_engine` on `POST /runtimes`).
1952
+ * Distinct from `harness`, which says which agent program turns the loop;
1953
+ * `kagent` and `agentcore` run `pydantic-ai` only.
1949
1954
  */
1950
1955
  runtimeEngine?: RuntimeEngine;
1951
1956
  /** Sandbox variant to use for this agent (e.g. 'eval', 'jupyter-server', 'kaggle'). */
@@ -7,9 +7,15 @@ export const stageKindOf = (stage) => (stage.scene ? 'scene' : stage.app ? 'app'
7
7
  /** What a Stage stages: the scene's, the app's or the Battle's reference. */
8
8
  export const stagedRefOf = (stage) => stage.scene || stage.app || stage.battle;
9
9
  /** The engines that run and host an agent (`runtime_engine`), the default first. */
10
- export const RUNTIME_ENGINES = ['datalayer', 'kagent'];
10
+ export const RUNTIME_ENGINES = ['datalayer', 'kagent', 'agentcore'];
11
11
  /** How an engine is named to a person. */
12
12
  export const RUNTIME_ENGINE_LABELS = {
13
13
  datalayer: 'Datalayer',
14
14
  kagent: 'kagent',
15
+ agentcore: 'AWS AgentCore',
16
+ };
17
+ /** The harnesses an engine can run; an engine absent here runs any. */
18
+ export const RUNTIME_ENGINE_HARNESSES = {
19
+ kagent: ['pydantic-ai'],
20
+ agentcore: ['pydantic-ai'],
15
21
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datalayer/agent-runtimes",
3
- "version": "1.6.39",
3
+ "version": "1.6.40",
4
4
  "type": "module",
5
5
  "workspaces": [
6
6
  ".",
@@ -1 +0,0 @@
1
- import{J as $,bt as g,cH as q,cI as y,j as V,bv as k}from"../datalayer-app-main.js";var w={Avatar:"prc-Avatar-Avatar-ZRS-m"};const D=20,N=$.forwardRef(function(A,u){const s=g.c(29);let o,i,a,l,n,d,f;s[0]!==A?({alt:n,size:d,square:f,sx:l,className:o,style:a,...i}=A,s[0]=A,s[1]=o,s[2]=i,s[3]=a,s[4]=l,s[5]=n,s[6]=d,s[7]=f):(o=s[1],i=s[2],a=s[3],l=s[4],n=s[5],d=s[6],f=s[7]);const m=n===void 0?"":n,t=d===void 0?D:d,h=f===void 0?!1:f;let p;s[8]!==t?(p=q(t),s[8]=t,s[9]=p):p=s[9];const r=p;let e;if(s[10]!==r||s[11]!==t){if(e={},r)for(const[j,E]of Object.entries(t))e[`--avatarSize-${j}`]=`${E}px`;else e["--avatarSize-regular"]=`${t}px`;s[10]=r,s[11]=t,s[12]=e}else e=s[12];let c;s[13]!==o?(c=y(o,w.Avatar),s[13]=o,s[14]=c):c=s[14];const R=r?"":void 0,z=h?"":void 0,S=r?void 0:t,b=r?void 0:t;let v;s[15]!==e||s[16]!==a?(v=a?{...e,...a}:e,s[15]=e,s[16]=a,s[17]=v):v=s[17];let x;return s[18]!==m||s[19]!==u||s[20]!==i||s[21]!==l||s[22]!==v||s[23]!==c||s[24]!==R||s[25]!==z||s[26]!==S||s[27]!==b?(x=V.jsx(k,{as:"img","data-component":"Avatar",className:c,ref:u,alt:m,"data-responsive":R,"data-square":z,width:S,height:b,style:v,sx:l,...i}),s[18]=m,s[19]=u,s[20]=i,s[21]=l,s[22]=v,s[23]=c,s[24]=R,s[25]=z,s[26]=S,s[27]=b,s[28]=x):x=s[28],x});export{N as A,D};
@@ -1 +0,0 @@
1
- import{bk as j,bl as k,bm as N,bn as U,a1 as B,bo as C,r as p,bp as I,bq as b,br as L}from"../datalayer-app-main.js";function T(g){const n=g?.app_spec;if(!n||typeof n!="object")return;const e=g?.app_instance??{},t=typeof e.app_uid=="string"&&e.app_uid?e.app_uid:void 0,r=typeof e.deployment_uid=="string"&&e.deployment_uid?e.deployment_uid:void 0;return{appSpec:n,...t?{appUid:t}:{},...r?{deploymentUid:r}:{}}}function h(){const n=j().getConfig(k),e=n?.datalayerAgentSpecId??N,t=n?.datalayerCreatePayload,r=n?.datalayerVisitors,f=n?.datalayerKept,u=r?.url??f?.url,a=U(),i=B(a?.target??C)==="datalayer",c=t?.app_spec?.id,[l,d]=p.useState({});p.useEffect(()=>{if(d({}),!r||!i)return;if(typeof c!="string"||!c){d({error:"A conversation without an account runs an application: none was given."});return}let o=!0;return I(r,c).then(()=>{o&&d({ready:!0})}).catch(_=>{o&&d({error:_ instanceof Error?_.message:String(_)})}),()=>{o=!1}},[r?.url,r?.app,r?.inferenceUrl,c,i]);const A=typeof t?.name=="string"?t.name:e,S=t?.transport==="vercel-ai"?"vercel-ai":"ag-ui",E=p.useMemo(()=>({name:A,protocol:S,agentSpecId:e,model:b[e]?.model,description:b[e]?.description,...t?{createPayload:t}:{}}),[e,A,S,t]),m=p.useMemo(()=>T(t),[t]),{runtime:s,status:v,error:y}=L({agentSpecId:e,agentConfig:E,...m?{appLaunch:m}:{},variant:"cloud-pydanticai",autoStart:i&&!u,autoCreateAgent:i&&!u});return p.useEffect(()=>{if(!(!a||!i)){if(r){if(l.error){a.setState("error",l.error);return}if(!l.ready){a.setState("starting");return}}if(u){const o=r?void 0:f?.jupyter;a.report({variant:"datalayer",sandbox_running:!!o,...o?{jupyter_url:o.url,jupyter_token:o.token}:{},agent_base_url:u});return}if(y){a.setState("error",y);return}if(!s?.jupyterBaseUrl){a.setState(v==="error"?"error":"starting");return}a.report({variant:"datalayer",sandbox_running:!!s.serviceManager,jupyter_url:s.jupyterBaseUrl,jupyter_token:s.serviceManager?.serverSettings?.token,kernel_id:s.kernelId,agent_base_url:s.agentBaseUrl})}},[a,i,s,v,y,u,f,r,l]),null}export{h as DatalayerAgentBridge,h as default};