@datalayer/agent-runtimes 1.6.38 → 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.
- package/dist-embed/chunks/{AgentDetails-Ba3DRn2p.js → AgentDetails-DC7O2VWb.js} +1 -1
- package/dist-embed/chunks/{AgentDetailsDialog-CXN0RO_L.js → AgentDetailsDialog-BTJCl-o-.js} +1 -1
- package/dist-embed/chunks/{AgentInspector-C66D0b0W.js → AgentInspector-BXqYY8g-.js} +1 -1
- package/dist-embed/chunks/{AgentInspectorDialog-DeK96QG1.js → AgentInspectorDialog-dRHZ1p73.js} +1 -1
- package/dist-embed/chunks/Avatar-Cv5OpUWu.js +1 -0
- package/dist-embed/chunks/{CellSidebarExtension-D7aXShZc.js → CellSidebarExtension-DXPIz0Km.js} +7 -7
- package/dist-embed/chunks/{ChatView-2N7PbcDs.js → ChatView-CRitAB2i.js} +4 -4
- package/dist-embed/chunks/{CollapsiblePlugin-y8sx_FL8.js → CollapsiblePlugin-BPlfrDQU.js} +1 -1
- package/dist-embed/chunks/DatalayerAgentBridge-D01Ek4NE.js +1 -0
- package/dist-embed/chunks/{DeckComponent-BnyeYRQq.js → DeckComponent-jvb83Q__.js} +1 -1
- package/dist-embed/chunks/{DocumentView-DT4DcdJI.js → DocumentView-BrdFnTVh.js} +3 -3
- package/dist-embed/chunks/{EphemeralDocument-CGISw1N3.js → EphemeralDocument-CkPQKyfy.js} +1 -1
- package/dist-embed/chunks/{EphemeralNotebook-Dyx-25uN.js → EphemeralNotebook-CiQIC3MG.js} +1 -1
- package/dist-embed/chunks/{ExcalidrawComponent-Bl3R2Mic.js → ExcalidrawComponent-D6Cr_b0Z.js} +1 -1
- package/dist-embed/chunks/{ExcalidrawModal-DSL5jBhG.js → ExcalidrawModal-Bso7oDbl.js} +1 -1
- package/dist-embed/chunks/{JupyterLexicalExtension-C55KdpCk.js → JupyterLexicalExtension-DuD7IV6j.js} +6 -6
- package/dist-embed/chunks/{KernelVariables-D3DSQaD3.js → KernelVariables-CXQagESp.js} +2 -2
- package/dist-embed/chunks/{NotebookSkeleton-BkzTMhIX.js → NotebookSkeleton-CvO9WylK.js} +1 -1
- package/dist-embed/chunks/{NotebookToolSurfaces-Bvj9nwA9.js → NotebookToolSurfaces-B9fkzQNR.js} +1 -1
- package/dist-embed/chunks/{NotebookToolbar-BMjQTGrr.js → NotebookToolbar-D36duUxK.js} +1 -1
- package/dist-embed/chunks/{NotebookView-DRPnBAI2.js → NotebookView-BrdHwtKH.js} +1 -1
- package/dist-embed/chunks/{Output-D-7eUege.js → Output-D9cwH5rg.js} +1 -1
- package/dist-embed/chunks/{SandboxDetailsDialog-qJBg2naH.js → SandboxDetailsDialog-BYgLjg3W.js} +1 -1
- package/dist-embed/chunks/{SchemaForm-D6BAKaNe.js → SchemaForm-B3qMIWMy.js} +1 -1
- package/dist-embed/chunks/{SheetTabs-BLaEhX0D.js → SheetTabs-BR72mzuo.js} +2 -2
- package/dist-embed/chunks/{SpreadsheetPreviewView-CaFQASZ4.js → SpreadsheetPreviewView-RA8ASTBV.js} +1 -1
- package/dist-embed/chunks/{SpreadsheetView-DesdGLpm.js → SpreadsheetView-BfScdA-X.js} +1 -1
- package/dist-embed/chunks/{Toolbar-BncUh2ly.js → Toolbar-BAjGB6b-.js} +1 -1
- package/dist-embed/chunks/{WidgetVariableView-B4faSdWW.js → WidgetVariableView-7lvDcxCg.js} +1 -1
- package/dist-embed/chunks/{YouTubePlugin-BPUrB3sh.js → YouTubePlugin-BbjCzaT_.js} +1 -1
- package/dist-embed/chunks/{ar-SA-G6X2FPQ2-Dq_tRQtR.js → ar-SA-G6X2FPQ2-D4M2b5Lr.js} +1 -1
- package/dist-embed/chunks/{az-AZ-76LH7QW2-DQAoJi9C.js → az-AZ-76LH7QW2-Rn7oINhz.js} +1 -1
- package/dist-embed/chunks/{bg-BG-XCXSNQG7-CfZUFj2_.js → bg-BG-XCXSNQG7-xztohKe7.js} +1 -1
- package/dist-embed/chunks/{bn-BD-2XOGV67Q-DiqZdhkT.js → bn-BD-2XOGV67Q-C7Ssg1_2.js} +1 -1
- package/dist-embed/chunks/{ca-ES-6MX7JW3Y-B6c2PcO9.js → ca-ES-6MX7JW3Y-Cr0zd8Z6.js} +1 -1
- package/dist-embed/chunks/{celltoolbartracker-BHSFiiuz.js → celltoolbartracker-D1C_kGQL.js} +1 -1
- package/dist-embed/chunks/{component-BUTWfiVL.js → component-CmnuUtgX.js} +3 -3
- package/dist-embed/chunks/{cs-CZ-2BRQDIVT-ha7l75va.js → cs-CZ-2BRQDIVT-G9tBUkZh.js} +1 -1
- package/dist-embed/chunks/{da-DK-5WZEPLOC-C3b8_hbR.js → da-DK-5WZEPLOC-91_vyLpq.js} +1 -1
- package/dist-embed/chunks/{de-DE-XR44H4JA-CxWFSn3l.js → de-DE-XR44H4JA-Bb9tvIZa.js} +1 -1
- package/dist-embed/chunks/{dist-BF0YFIb6.js → dist-B5YvY_O1.js} +2 -2
- package/dist-embed/chunks/{dist-DsEDq9qF.js → dist-BBqWTRLi.js} +1 -1
- package/dist-embed/chunks/{dist-DRRbvr4-.js → dist-BC_2VyAM.js} +1 -1
- package/dist-embed/chunks/{dist-B_TGJsfl.js → dist-BhfyuH1D.js} +1 -1
- package/dist-embed/chunks/{dist-Cfvz7CF7.js → dist-BlIg6ytm.js} +1 -1
- package/dist-embed/chunks/{dist-COiURBxL.js → dist-Ct-bkqXx.js} +4 -4
- package/dist-embed/chunks/{dist-tosaS6vh.js → dist-CtFgtNKe.js} +1 -1
- package/dist-embed/chunks/{dist-B1tXS8Wo.js → dist-DLyNQ3Jj.js} +1 -1
- package/dist-embed/chunks/{document-CqNE0DPx.js → document-Dp0KpIjg.js} +1 -1
- package/dist-embed/chunks/{drivecontents-D1HzL7Fi.js → drivecontents-BsC6Y2Vl.js} +1 -1
- package/dist-embed/chunks/{el-GR-BZB4AONW-iSsL6em8.js → el-GR-BZB4AONW-B5kc3JC5.js} +1 -1
- package/dist-embed/chunks/{es-ES-U4NZUMDT-BEbh9GGw.js → es-ES-U4NZUMDT-CpFB18Kf.js} +1 -1
- package/dist-embed/chunks/{esm-RWOqF6ly.js → esm-BqqxV5QL.js} +1 -1
- package/dist-embed/chunks/{eu-ES-A7QVB2H4-C7o7R9hc.js → eu-ES-A7QVB2H4-CqCALK0Q.js} +1 -1
- package/dist-embed/chunks/{fa-IR-HGAKTJCU-DQNpeHKi.js → fa-IR-HGAKTJCU-BzSY8fri.js} +1 -1
- package/dist-embed/chunks/{fi-FI-Z5N7JZ37-D083iC1R.js → fi-FI-Z5N7JZ37-DPRPVT_v.js} +1 -1
- package/dist-embed/chunks/{fr-FR-RHASNOE6-CUvaq7hG.js → fr-FR-RHASNOE6-Cr4lVSvD.js} +1 -1
- package/dist-embed/chunks/{gl-ES-HMX3MZ6V-DU31KRvC.js → gl-ES-HMX3MZ6V-CZUw7dN0.js} +1 -1
- package/dist-embed/chunks/{he-IL-6SHJWFNN-bMtU7JNY.js → he-IL-6SHJWFNN-DaU5Odek.js} +1 -1
- package/dist-embed/chunks/{hi-IN-IWLTKZ5I-Pma0rKxO.js → hi-IN-IWLTKZ5I-BZ84Rooc.js} +1 -1
- package/dist-embed/chunks/{htmlselect-CqXICb9e.js → htmlselect-5N6NdDqL.js} +1 -1
- package/dist-embed/chunks/{hu-HU-A5ZG7DT2-Dof3afSc.js → hu-HU-A5ZG7DT2-SZiCSe0B.js} +1 -1
- package/dist-embed/chunks/{id-ID-SAP4L64H-ZwqZHBDj.js → id-ID-SAP4L64H-DrRa3vVi.js} +1 -1
- package/dist-embed/chunks/{index-9EhrHHj7.js → index-B6-uQd5L.js} +3 -3
- package/dist-embed/chunks/{index-9wJFadG-.js → index-CEeyR3FZ.js} +1 -1
- package/dist-embed/chunks/{index-CqP3xLL5.js → index-CKWSKbHe.js} +1 -1
- package/dist-embed/chunks/{index-BbcMy3Al.js → index-DpN8KK6c.js} +1 -1
- package/dist-embed/chunks/{index--S8WFITA.js → index-JmqWOkdt.js} +1 -1
- package/dist-embed/chunks/{index-CMhceBby.js → index-PKH5uAl-.js} +1 -1
- package/dist-embed/chunks/{index-C7UsrKrP.js → index-hhftmReh.js} +1 -1
- package/dist-embed/chunks/{index-6zxBQeM_.js → index-qhxI1VzX.js} +2 -2
- package/dist-embed/chunks/{index.esm-xgVG4GIx.js → index.esm-Bvtnemp7.js} +1 -1
- package/dist-embed/chunks/{it-IT-JPQ66NNP-C-uM6NhO.js → it-IT-JPQ66NNP-_TEhDIcF.js} +1 -1
- package/dist-embed/chunks/{ja-JP-DBVTYXUO-qzihtLnX.js → ja-JP-DBVTYXUO-IJaTVgTb.js} +1 -1
- package/dist-embed/chunks/{kaa-6HZHGXH3-Amx_Jfx0.js → kaa-6HZHGXH3-CTksAiLJ.js} +1 -1
- package/dist-embed/chunks/{kab-KAB-ZGHBKWFO-BPZfDYRT.js → kab-KAB-ZGHBKWFO-DbA7aOfU.js} +1 -1
- package/dist-embed/chunks/{kk-KZ-P5N5QNE5-B83bJ3Yw.js → kk-KZ-P5N5QNE5-Bdzg30AB.js} +1 -1
- package/dist-embed/chunks/{km-KH-HSX4SM5Z-BvPDwBVw.js → km-KH-HSX4SM5Z-Bwn2NP1-.js} +1 -1
- package/dist-embed/chunks/{ko-KR-MTYHY66A-jpQ_OpzG.js → ko-KR-MTYHY66A-KUaxlo0q.js} +1 -1
- package/dist-embed/chunks/{ku-TR-6OUDTVRD-RsfwTm7i.js → ku-TR-6OUDTVRD-DRegsFXo.js} +1 -1
- package/dist-embed/chunks/{lib-CFx15o08.js → lib--J3JPp2K.js} +1 -1
- package/dist-embed/chunks/{lib-D6X8UF4a.js → lib-9S57siQD.js} +1 -1
- package/dist-embed/chunks/{lib-CoK70EWs.js → lib-BpltV-0Y.js} +1 -1
- package/dist-embed/chunks/{lib-DGhrI5Uw.js → lib-C2mgrsS1.js} +1 -1
- package/dist-embed/chunks/{lib-XSPvEMl2.js → lib-C46CpvHb.js} +1 -1
- package/dist-embed/chunks/{lib-D0Q8IWel.js → lib-CHID83aM.js} +1 -1
- package/dist-embed/chunks/{lib-Pqxz_81N.js → lib-COJY2oKd.js} +25 -25
- package/dist-embed/chunks/{lib-p7v7zGkv.js → lib-CQeoQJWp.js} +1 -1
- package/dist-embed/chunks/{lib-CdtiDxdA.js → lib-CjBEbEzm.js} +1 -1
- package/dist-embed/chunks/{lib-BBnVlTAj.js → lib-Cpc8Fspj.js} +1 -1
- package/dist-embed/chunks/{lib-CsiCQ8oM.js → lib-D7CvuX1J.js} +1 -1
- package/dist-embed/chunks/{lib-7ge2Kma3.js → lib-DOnguzJf.js} +1 -1
- package/dist-embed/chunks/{lib-UYAFV0Oh.js → lib-Dh9o1esj.js} +1 -1
- package/dist-embed/chunks/{lib-DdeRC7g0.js → lib-DrEcjKb5.js} +1 -1
- package/dist-embed/chunks/{lib-Dj12Ge-1.js → lib-PbTUB5SW.js} +1 -1
- package/dist-embed/chunks/{lib-DMy40SOL.js → lib-QmOij8gS.js} +1 -1
- package/dist-embed/chunks/{lib-C7Y61LM1.js → lib-csBGF1d0.js} +1 -1
- package/dist-embed/chunks/{lib-DTyx2eLX.js → lib-op0DTswa.js} +1 -1
- package/dist-embed/chunks/{lib-CkcilPdy.js → lib-ox3VOLDA.js} +1 -1
- package/dist-embed/chunks/{lib-Bi95m_cb.js → lib-rn9DpcHi.js} +1 -1
- package/dist-embed/chunks/{lt-LT-XHIRWOB4-qZ_KjUTQ.js → lt-LT-XHIRWOB4-c6CdaS7u.js} +1 -1
- package/dist-embed/chunks/{lv-LV-5QDEKY6T-BOKJbljG.js → lv-LV-5QDEKY6T-D9RognOk.js} +1 -1
- package/dist-embed/chunks/{model-C2VRzh1c.js → model-DbDJZyri.js} +1 -1
- package/dist-embed/chunks/{mr-IN-CRQNXWMA-xba6p6AI.js → mr-IN-CRQNXWMA-ht3P_mrN.js} +1 -1
- package/dist-embed/chunks/{my-MM-5M5IBNSE-B_H0GaRX.js → my-MM-5M5IBNSE-CsIkhWRp.js} +1 -1
- package/dist-embed/chunks/{nb-NO-T6EIAALU-Ddg4NpHf.js → nb-NO-T6EIAALU-DJw7Uvbx.js} +1 -1
- package/dist-embed/chunks/{nl-NL-IS3SIHDZ-DS_Sofox.js → nl-NL-IS3SIHDZ-Dcrp-zwB.js} +1 -1
- package/dist-embed/chunks/{nn-NO-6E72VCQL-CYSB6TTi.js → nn-NO-6E72VCQL-DaBAIbM9.js} +1 -1
- package/dist-embed/chunks/{oc-FR-POXYY2M6-QrIn4XvF.js → oc-FR-POXYY2M6-DSdMEDCa.js} +1 -1
- package/dist-embed/chunks/{pa-IN-N4M65BXN-BbacRfk_.js → pa-IN-N4M65BXN-BMyPito1.js} +1 -1
- package/dist-embed/chunks/{percentages-BXMCSKIN-TyKhSuec.js → percentages-BXMCSKIN-pswfKMt2.js} +3 -3
- package/dist-embed/chunks/{pl-PL-T2D74RX3-Cn2ehrU4.js → pl-PL-T2D74RX3-CFk8rHgP.js} +1 -1
- package/dist-embed/chunks/{plugin-CPCdQWpK.js → plugin-BpyrQiv7.js} +1 -1
- package/dist-embed/chunks/{plugin-D7Giq2rW.js → plugin-NcgdmcAO.js} +1 -1
- package/dist-embed/chunks/{plugin-AdqytlNC.js → plugin-omHCT1Jk.js} +1 -1
- package/dist-embed/chunks/{pt-BR-5N22H2LF-CpNtiBPh.js → pt-BR-5N22H2LF-BYlDcalT.js} +1 -1
- package/dist-embed/chunks/{pt-PT-UZXXM6DQ-CcDR3Igq.js → pt-PT-UZXXM6DQ-xXdoFOOb.js} +1 -1
- package/dist-embed/chunks/{pyodide-kernel-CN7B4QLg.js → pyodide-kernel-bjLdubpe.js} +1 -1
- package/dist-embed/chunks/{pyodide-kernel-extension-CKE5jq9F.js → pyodide-kernel-extension-CshyO6Mm.js} +1 -1
- package/dist-embed/chunks/{renderer-8__rsP1H.js → renderer-We9CyR7b.js} +1 -1
- package/dist-embed/chunks/{ro-RO-JPDTUUEW-CANXxss1.js → ro-RO-JPDTUUEW-e-URCww-.js} +1 -1
- package/dist-embed/chunks/{ru-RU-B4JR7IUQ-B_NkKbWo.js → ru-RU-B4JR7IUQ-CrXBOpZl.js} +1 -1
- package/dist-embed/chunks/{server-extension-BvlUJPbJ.js → server-extension-D9R-wwz5.js} +1 -1
- package/dist-embed/chunks/{sessions-CgjtuOSm.js → sessions-DdXtI_C1.js} +1 -1
- package/dist-embed/chunks/{si-LK-N5RQ5JYF-Da_Bg8Mv.js → si-LK-N5RQ5JYF-DmJK04-A.js} +1 -1
- package/dist-embed/chunks/{sk-SK-C5VTKIMK-BKs6l_DT.js → sk-SK-C5VTKIMK-BDHycW1Q.js} +1 -1
- package/dist-embed/chunks/{sl-SI-NN7IZMDC-C4TvSXZU.js → sl-SI-NN7IZMDC-Bv9ZQTNb.js} +1 -1
- package/dist-embed/chunks/{subset-shared.chunk-BZGTZU2h.js → subset-shared.chunk-B0WCMaCa.js} +1 -1
- package/dist-embed/chunks/{subset-worker.chunk-CNJFtQV7.js → subset-worker.chunk-i0SNRqXr.js} +1 -1
- package/dist-embed/chunks/{sv-SE-XGPEYMSR-DdKzikID.js → sv-SE-XGPEYMSR-_HPzcZFc.js} +1 -1
- package/dist-embed/chunks/{ta-IN-2NMHFXQM-CDzGLNXS.js → ta-IN-2NMHFXQM-Ccvi-lqm.js} +1 -1
- package/dist-embed/chunks/{th-TH-HPSO5L25-X4BJ7awj.js → th-TH-HPSO5L25-DvAg4Mv1.js} +1 -1
- package/dist-embed/chunks/{tokens-CBhRbpQP.js → tokens-CTXFWLvM.js} +1 -1
- package/dist-embed/chunks/{tr-TR-DEFEU3FU-CN69_6_H.js → tr-TR-DEFEU3FU-DJsjfrja.js} +1 -1
- package/dist-embed/chunks/{uk-UA-QMV73CPH-KjB2cySI.js → uk-UA-QMV73CPH-3fvexlQA.js} +1 -1
- package/dist-embed/chunks/{usePrimerThemeBridge-DyX4EYyN.js → usePrimerThemeBridge-NsTRGuo7.js} +1 -1
- package/dist-embed/chunks/{vi-VN-M7AON7JQ-BqVSbGWG.js → vi-VN-M7AON7JQ-BoQ3ayAr.js} +1 -1
- package/dist-embed/chunks/{zh-CN-LNUGB5OW-oRPI4tbl.js → zh-CN-LNUGB5OW-Dzh0Ni_q.js} +1 -1
- package/dist-embed/chunks/{zh-HK-E62DVLB3-BUlz3y0i.js → zh-HK-E62DVLB3-_1FpSc_d.js} +1 -1
- package/dist-embed/chunks/{zh-TW-RAJ6MFWO-NxjUwhr3.js → zh-TW-RAJ6MFWO-CU-R8eF0.js} +1 -1
- package/dist-embed/datalayer-app-main.js +154 -154
- package/lib/apps/apps/AppRenderer.d.ts +6 -0
- package/lib/apps/apps/AppRenderer.js +3 -0
- package/lib/apps/plugins/agents/DatalayerAgentBridge.js +10 -3
- package/lib/apps/plugins/agents/SandboxSelector.js +1 -1
- package/lib/apps/plugins/agents/appLaunch.js +12 -0
- package/lib/apps/plugins/agents/handoffRuntime.d.ts +36 -0
- package/lib/apps/plugins/agents/handoffRuntime.js +50 -0
- package/lib/apps/plugins/agents/plugin.d.ts +20 -6
- package/lib/apps/plugins/agents/plugin.js +1 -0
- package/lib/apps/plugins/agents/switchable.d.ts +14 -2
- package/lib/apps/plugins/agents/switchable.js +13 -3
- package/lib/hooks/useAgentRuntimes.d.ts +1 -1
- package/lib/hooks/useAgentRuntimes.js +2 -0
- package/lib/loop-main.js +27 -25
- package/lib/portable/hosts/agentClient.d.ts +9 -9
- package/lib/portable/hosts/agentClient.js +34 -8
- package/lib/portable/hosts/contracts.json +3 -28
- package/lib/portable/hosts/index.d.ts +0 -1
- package/lib/portable/hosts/index.js +0 -1
- package/lib/runtimes/actions.js +6 -0
- package/lib/runtimes/apis.d.ts +8 -0
- package/lib/specs/agents/agents.js +1 -1
- package/lib/types/agents-lifecycle.d.ts +7 -0
- package/lib/types/agentspecs.d.ts +9 -4
- package/lib/types/agentspecs.js +7 -1
- package/package.json +1 -1
- package/dist-embed/chunks/Avatar-MNx1kN3F.js +0 -1
- package/dist-embed/chunks/DatalayerAgentBridge-BmoysA2b.js +0 -1
- package/lib/portable/hosts/sessionUid.d.ts +0 -9
- package/lib/portable/hosts/sessionUid.js +0 -29
|
@@ -23,7 +23,6 @@ export { askQuestionOf, semanticOf, turnOf, type TurnInfo, } from '../semanticOf
|
|
|
23
23
|
export * from './contracts';
|
|
24
24
|
export { DatalayerHostClient, HostRefusedError, type BoundHost, type HostProvider, type HostSelf, } from './client';
|
|
25
25
|
export { agUiEventsOf, assertTrustedStreamUrl, DevelopmentCredentials, HostKeyCredentials, hostSessionOf, HostStarters, HttpAgentClient, InstallationCredentials, lastAnswer, type AgentClient, type HostCredentials, type HostKeyLookup, type HostSession, type HostShape, type HostTurnRequest, type Place, type SessionBinder, type Starter, type StarterSource, type TurnProvenance, type TurnStream, } from './agentClient';
|
|
26
|
-
export { hostSessionUid } from './sessionUid';
|
|
27
26
|
export { DATALAYER_ONLY, MAIL_WORDS, RENDERERS, renderApproval, type RenderedAction, type RenderedField, } from './approvalRenderers';
|
|
28
27
|
export { DELIVERY_PATH, DELIVERY_ROUTE, DeliveryPoller, DeliveryRenewal, deliveryRoute, receiveDelivery, type BoundHostKey, type DeliveryClaimStore, type DeliveryJob, type DeliverySecret, type DeliverySink, } from './deliveries';
|
|
29
28
|
export { TurnState, type TurnEnding, type TurnFile, type TurnTool, } from './turnState';
|
|
@@ -28,7 +28,6 @@ export { askQuestionOf, semanticOf, turnOf, } from '../semanticOfAgUi.js';
|
|
|
28
28
|
export * from './contracts.js';
|
|
29
29
|
export { DatalayerHostClient, HostRefusedError, } from './client.js';
|
|
30
30
|
export { agUiEventsOf, assertTrustedStreamUrl, DevelopmentCredentials, HostKeyCredentials, hostSessionOf, HostStarters, HttpAgentClient, InstallationCredentials, lastAnswer, } from './agentClient.js';
|
|
31
|
-
export { hostSessionUid } from './sessionUid.js';
|
|
32
31
|
export { DATALAYER_ONLY, MAIL_WORDS, RENDERERS, renderApproval, } from './approvalRenderers.js';
|
|
33
32
|
export { DELIVERY_PATH, DELIVERY_ROUTE, DeliveryPoller, DeliveryRenewal, deliveryRoute, receiveDelivery, } from './deliveries.js';
|
|
34
33
|
export { TurnState, } from './turnState.js';
|
package/lib/runtimes/actions.js
CHANGED
|
@@ -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
|
}
|
package/lib/runtimes/apis.d.ts
CHANGED
|
@@ -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: '
|
|
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
|
|
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
|
|
1948
|
-
* the
|
|
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'). */
|
package/lib/types/agentspecs.js
CHANGED
|
@@ -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 +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 N,bl as U,bm as C,bn as I,a1 as L,bo as T,r as u,bp as k,bq as v,br as B}from"../datalayer-app-main.js";function D(d){const n=d?.app_spec;if(!n||typeof n!="object")return;const e=d?.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 j(){const n=N().getConfig(U),e=n?.datalayerAgentSpecId??C,t=n?.datalayerCreatePayload,r=n?.datalayerVisitors,b=n?.datalayerKept,i=r?.url??b?.url,a=I(),s=L(a?.target??T)==="datalayer",c=t?.app_spec?.id,[p,l]=u.useState({});u.useEffect(()=>{if(l({}),!r||!s)return;if(typeof c!="string"||!c){l({error:"A conversation without an account runs an application: none was given."});return}let f=!0;return k(r,c).then(()=>{f&&l({ready:!0})}).catch(y=>{f&&l({error:y instanceof Error?y.message:String(y)})}),()=>{f=!1}},[r?.url,r?.app,r?.inferenceUrl,c,s]);const _=typeof t?.name=="string"?t.name:e,A=t?.transport==="vercel-ai"?"vercel-ai":"ag-ui",E=u.useMemo(()=>({name:_,protocol:A,agentSpecId:e,model:v[e]?.model,description:v[e]?.description,...t?{createPayload:t}:{}}),[e,_,A,t]),S=u.useMemo(()=>D(t),[t]),{runtime:o,status:m,error:g}=B({agentSpecId:e,agentConfig:E,...S?{appLaunch:S}:{},variant:"cloud-pydanticai",autoStart:s&&!i,autoCreateAgent:s&&!i});return u.useEffect(()=>{if(!(!a||!s)){if(r){if(p.error){a.setState("error",p.error);return}if(!p.ready){a.setState("starting");return}}if(i){a.report({variant:"datalayer",sandbox_running:!1,agent_base_url:i});return}if(g){a.setState("error",g);return}if(!o?.jupyterBaseUrl){a.setState(m==="error"?"error":"starting");return}a.report({variant:"datalayer",sandbox_running:!!o.serviceManager,jupyter_url:o.jupyterBaseUrl,jupyter_token:o.serviceManager?.serverSettings?.token,kernel_id:o.kernelId,agent_base_url:o.agentBaseUrl})}},[a,s,o,m,g,i,r,p]),null}export{j as DatalayerAgentBridge,j as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `<kind>-<40 hex>`: the SHA-256 of the thread's parts joined by `:`, and
|
|
3
|
-
* `:<generation>` once the thread started over or switched application. The
|
|
4
|
-
* same parts give the same uid (Slack: app, enterprise or `-`, team,
|
|
5
|
-
* channel, thread ts; Discord: application, guild, channel, thread;
|
|
6
|
-
* WhatsApp: WABA, phone number id, and the person's BSUID for a chat or the
|
|
7
|
-
* group's id for a group).
|
|
8
|
-
*/
|
|
9
|
-
export declare function hostSessionUid(kind: string, parts: readonly string[], generation?: number): string;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2025-2026 Datalayer, Inc.
|
|
3
|
-
* Distributed under the terms of the Modified BSD License.
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* One host thread is one Datalayer session: its uid, derived from where the
|
|
7
|
-
* thread is, so that a retry names it again. Moved from the Slack service (DC-004).
|
|
8
|
-
*
|
|
9
|
-
* @module portable/hosts/sessionUid
|
|
10
|
-
*/
|
|
11
|
-
import { createHash } from 'node:crypto';
|
|
12
|
-
/**
|
|
13
|
-
* `<kind>-<40 hex>`: the SHA-256 of the thread's parts joined by `:`, and
|
|
14
|
-
* `:<generation>` once the thread started over or switched application. The
|
|
15
|
-
* same parts give the same uid (Slack: app, enterprise or `-`, team,
|
|
16
|
-
* channel, thread ts; Discord: application, guild, channel, thread;
|
|
17
|
-
* WhatsApp: WABA, phone number id, and the person's BSUID for a chat or the
|
|
18
|
-
* group's id for a group).
|
|
19
|
-
*/
|
|
20
|
-
export function hostSessionUid(kind, parts, generation) {
|
|
21
|
-
if (!/^[a-z][a-z0-9-]{1,31}$/.test(kind)) {
|
|
22
|
-
throw new Error(`A host kind is lowercase letters and digits: ${kind}.`);
|
|
23
|
-
}
|
|
24
|
-
if (parts.length === 0 || parts.some(part => part === '')) {
|
|
25
|
-
throw new Error('A thread is named by its parts, none of them empty.');
|
|
26
|
-
}
|
|
27
|
-
const key = `${parts.join(':')}${generation ? `:${generation}` : ''}`;
|
|
28
|
-
return `${kind}-${createHash('sha256').update(key).digest('hex').slice(0, 40)}`;
|
|
29
|
-
}
|