@datalayer/agent-runtimes 1.6.36 → 1.6.39

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 (118) hide show
  1. package/dist-embed/chunks/{CollapsiblePlugin-Df_cvRKL.js → CollapsiblePlugin-y8sx_FL8.js} +1 -1
  2. package/dist-embed/chunks/DatalayerAgentBridge-BuGt8vDu.js +1 -0
  3. package/dist-embed/chunks/{DeckComponent-sQU5JWCV.js → DeckComponent-BnyeYRQq.js} +1 -1
  4. package/dist-embed/chunks/{DocumentView-BGthuEds.js → DocumentView-DT4DcdJI.js} +1 -1
  5. package/dist-embed/chunks/{EphemeralDocument-CPSZcPKd.js → EphemeralDocument-CGISw1N3.js} +1 -1
  6. package/dist-embed/chunks/{ExcalidrawComponent-F2NybZbz.js → ExcalidrawComponent-Bl3R2Mic.js} +1 -1
  7. package/dist-embed/chunks/{ExcalidrawModal-CDiyt5M-.js → ExcalidrawModal-DSL5jBhG.js} +1 -1
  8. package/dist-embed/chunks/{JupyterLexicalExtension-CEBuhvME.js → JupyterLexicalExtension-C55KdpCk.js} +6 -6
  9. package/dist-embed/chunks/{NotebookToolSurfaces-BDYXmM7k.js → NotebookToolSurfaces-Bvj9nwA9.js} +1 -1
  10. package/dist-embed/chunks/{Output-C6ZHZSBH.js → Output-D-7eUege.js} +1 -1
  11. package/dist-embed/chunks/{YouTubePlugin-ChcBEMI-.js → YouTubePlugin-BPUrB3sh.js} +1 -1
  12. package/dist-embed/chunks/{ar-SA-G6X2FPQ2-CnEVkWCp.js → ar-SA-G6X2FPQ2-Dq_tRQtR.js} +1 -1
  13. package/dist-embed/chunks/{az-AZ-76LH7QW2-CSwFJ6du.js → az-AZ-76LH7QW2-DQAoJi9C.js} +1 -1
  14. package/dist-embed/chunks/{bg-BG-XCXSNQG7-JG4F_3L3.js → bg-BG-XCXSNQG7-CfZUFj2_.js} +1 -1
  15. package/dist-embed/chunks/{bn-BD-2XOGV67Q-__W94Bx-.js → bn-BD-2XOGV67Q-DiqZdhkT.js} +1 -1
  16. package/dist-embed/chunks/{ca-ES-6MX7JW3Y-CgTiQ3-C.js → ca-ES-6MX7JW3Y-B6c2PcO9.js} +1 -1
  17. package/dist-embed/chunks/{cs-CZ-2BRQDIVT-CuzIST9-.js → cs-CZ-2BRQDIVT-ha7l75va.js} +1 -1
  18. package/dist-embed/chunks/{da-DK-5WZEPLOC-D4Z2Xglb.js → da-DK-5WZEPLOC-C3b8_hbR.js} +1 -1
  19. package/dist-embed/chunks/{de-DE-XR44H4JA-E0rMdm2C.js → de-DE-XR44H4JA-CxWFSn3l.js} +1 -1
  20. package/dist-embed/chunks/{el-GR-BZB4AONW-DHhs1347.js → el-GR-BZB4AONW-iSsL6em8.js} +1 -1
  21. package/dist-embed/chunks/{es-ES-U4NZUMDT-DI3jTuDV.js → es-ES-U4NZUMDT-BEbh9GGw.js} +1 -1
  22. package/dist-embed/chunks/{esm-DqlTXy-D.js → esm-RWOqF6ly.js} +1 -1
  23. package/dist-embed/chunks/{eu-ES-A7QVB2H4-ChXyoAj9.js → eu-ES-A7QVB2H4-C7o7R9hc.js} +1 -1
  24. package/dist-embed/chunks/{fa-IR-HGAKTJCU-D1qRoSi6.js → fa-IR-HGAKTJCU-DQNpeHKi.js} +1 -1
  25. package/dist-embed/chunks/{fi-FI-Z5N7JZ37-Cxzt5XFf.js → fi-FI-Z5N7JZ37-D083iC1R.js} +1 -1
  26. package/dist-embed/chunks/{fr-FR-RHASNOE6-DxKK7jD9.js → fr-FR-RHASNOE6-CUvaq7hG.js} +1 -1
  27. package/dist-embed/chunks/{gl-ES-HMX3MZ6V-CFdnAa4-.js → gl-ES-HMX3MZ6V-DU31KRvC.js} +1 -1
  28. package/dist-embed/chunks/{he-IL-6SHJWFNN-lBjIyRxj.js → he-IL-6SHJWFNN-bMtU7JNY.js} +1 -1
  29. package/dist-embed/chunks/{hi-IN-IWLTKZ5I-CtdCPck4.js → hi-IN-IWLTKZ5I-Pma0rKxO.js} +1 -1
  30. package/dist-embed/chunks/{hu-HU-A5ZG7DT2-D_CFF32t.js → hu-HU-A5ZG7DT2-Dof3afSc.js} +1 -1
  31. package/dist-embed/chunks/{id-ID-SAP4L64H-CwTXhwLK.js → id-ID-SAP4L64H-ZwqZHBDj.js} +1 -1
  32. package/dist-embed/chunks/{index-DCpvl_OP.js → index-9EhrHHj7.js} +2 -2
  33. package/dist-embed/chunks/{it-IT-JPQ66NNP-BUEFwYid.js → it-IT-JPQ66NNP-C-uM6NhO.js} +1 -1
  34. package/dist-embed/chunks/{ja-JP-DBVTYXUO-BAK_QQr1.js → ja-JP-DBVTYXUO-qzihtLnX.js} +1 -1
  35. package/dist-embed/chunks/{kaa-6HZHGXH3-C2yLyxLW.js → kaa-6HZHGXH3-Amx_Jfx0.js} +1 -1
  36. package/dist-embed/chunks/{kab-KAB-ZGHBKWFO-CW0xgQ8n.js → kab-KAB-ZGHBKWFO-BPZfDYRT.js} +1 -1
  37. package/dist-embed/chunks/{kk-KZ-P5N5QNE5-iG2uKF6i.js → kk-KZ-P5N5QNE5-B83bJ3Yw.js} +1 -1
  38. package/dist-embed/chunks/{km-KH-HSX4SM5Z-Bm_m99ak.js → km-KH-HSX4SM5Z-BvPDwBVw.js} +1 -1
  39. package/dist-embed/chunks/{ko-KR-MTYHY66A-Clgfny6b.js → ko-KR-MTYHY66A-jpQ_OpzG.js} +1 -1
  40. package/dist-embed/chunks/{ku-TR-6OUDTVRD-Y8Y_vzzq.js → ku-TR-6OUDTVRD-RsfwTm7i.js} +1 -1
  41. package/dist-embed/chunks/{lib-COZbOw0Z.js → lib-BBnVlTAj.js} +1 -1
  42. package/dist-embed/chunks/{lib-B9ahcmxX.js → lib-Bi95m_cb.js} +1 -1
  43. package/dist-embed/chunks/{lib-CbUWOQj9.js → lib-C7Y61LM1.js} +1 -1
  44. package/dist-embed/chunks/{lib-CpkMRAJY.js → lib-CFx15o08.js} +1 -1
  45. package/dist-embed/chunks/{lib-DBCP5fWa.js → lib-CdtiDxdA.js} +1 -1
  46. package/dist-embed/chunks/{lib-8ZUSfvoH.js → lib-CoK70EWs.js} +1 -1
  47. package/dist-embed/chunks/{lib-BepajD8I.js → lib-CsiCQ8oM.js} +1 -1
  48. package/dist-embed/chunks/{lib-B5Wbadbg.js → lib-D0Q8IWel.js} +1 -1
  49. package/dist-embed/chunks/{lib-j6VKUVII.js → lib-D6X8UF4a.js} +1 -1
  50. package/dist-embed/chunks/{lib-BP80BmI2.js → lib-DGhrI5Uw.js} +1 -1
  51. package/dist-embed/chunks/{lib-DmPUUoao.js → lib-DMy40SOL.js} +1 -1
  52. package/dist-embed/chunks/{lib-obIZUupc.js → lib-DTyx2eLX.js} +1 -1
  53. package/dist-embed/chunks/{lib-BFuQ3UQC.js → lib-DdeRC7g0.js} +1 -1
  54. package/dist-embed/chunks/{lib-NBgDVJov.js → lib-Dj12Ge-1.js} +1 -1
  55. package/dist-embed/chunks/{lib-DHHIihJW.js → lib-Pqxz_81N.js} +1 -1
  56. package/dist-embed/chunks/{lib-DggdYYmh.js → lib-UYAFV0Oh.js} +1 -1
  57. package/dist-embed/chunks/{lib-D25l5ZAy.js → lib-XSPvEMl2.js} +1 -1
  58. package/dist-embed/chunks/{lib-DwylwlRk.js → lib-p7v7zGkv.js} +1 -1
  59. package/dist-embed/chunks/{lt-LT-XHIRWOB4-D7Por38P.js → lt-LT-XHIRWOB4-qZ_KjUTQ.js} +1 -1
  60. package/dist-embed/chunks/{lv-LV-5QDEKY6T-Bz5t6-LB.js → lv-LV-5QDEKY6T-BOKJbljG.js} +1 -1
  61. package/dist-embed/chunks/{mr-IN-CRQNXWMA-B1NTMzvS.js → mr-IN-CRQNXWMA-xba6p6AI.js} +1 -1
  62. package/dist-embed/chunks/{my-MM-5M5IBNSE-C1gGuOaf.js → my-MM-5M5IBNSE-B_H0GaRX.js} +1 -1
  63. package/dist-embed/chunks/{nb-NO-T6EIAALU-o2E12ucR.js → nb-NO-T6EIAALU-Ddg4NpHf.js} +1 -1
  64. package/dist-embed/chunks/{nl-NL-IS3SIHDZ-Bqxu5mbZ.js → nl-NL-IS3SIHDZ-DS_Sofox.js} +1 -1
  65. package/dist-embed/chunks/{nn-NO-6E72VCQL-DxUXxDPK.js → nn-NO-6E72VCQL-CYSB6TTi.js} +1 -1
  66. package/dist-embed/chunks/{oc-FR-POXYY2M6-CDttJVdz.js → oc-FR-POXYY2M6-QrIn4XvF.js} +1 -1
  67. package/dist-embed/chunks/{pa-IN-N4M65BXN-Dp8ANANJ.js → pa-IN-N4M65BXN-BbacRfk_.js} +1 -1
  68. package/dist-embed/chunks/{percentages-BXMCSKIN-B5xVDaSp.js → percentages-BXMCSKIN-TyKhSuec.js} +3 -3
  69. package/dist-embed/chunks/{pl-PL-T2D74RX3-N3d_R6le.js → pl-PL-T2D74RX3-Cn2ehrU4.js} +1 -1
  70. package/dist-embed/chunks/{pt-BR-5N22H2LF-CpPiMZ-u.js → pt-BR-5N22H2LF-CpNtiBPh.js} +1 -1
  71. package/dist-embed/chunks/{pt-PT-UZXXM6DQ-EGdAVYif.js → pt-PT-UZXXM6DQ-CcDR3Igq.js} +1 -1
  72. package/dist-embed/chunks/{ro-RO-JPDTUUEW-Bkty7yik.js → ro-RO-JPDTUUEW-CANXxss1.js} +1 -1
  73. package/dist-embed/chunks/{ru-RU-B4JR7IUQ-BRHTHx-M.js → ru-RU-B4JR7IUQ-B_NkKbWo.js} +1 -1
  74. package/dist-embed/chunks/{si-LK-N5RQ5JYF-BnP3_yrO.js → si-LK-N5RQ5JYF-Da_Bg8Mv.js} +1 -1
  75. package/dist-embed/chunks/{sk-SK-C5VTKIMK-CcOBsX7R.js → sk-SK-C5VTKIMK-BKs6l_DT.js} +1 -1
  76. package/dist-embed/chunks/{sl-SI-NN7IZMDC-DjcpDjk-.js → sl-SI-NN7IZMDC-C4TvSXZU.js} +1 -1
  77. package/dist-embed/chunks/{subset-shared.chunk-DuIbGrTT.js → subset-shared.chunk-BZGTZU2h.js} +1 -1
  78. package/dist-embed/chunks/{subset-worker.chunk-CNz8UZDr.js → subset-worker.chunk-CNJFtQV7.js} +1 -1
  79. package/dist-embed/chunks/{sv-SE-XGPEYMSR-DbihwJ2w.js → sv-SE-XGPEYMSR-DdKzikID.js} +1 -1
  80. package/dist-embed/chunks/{ta-IN-2NMHFXQM--fKIkmrb.js → ta-IN-2NMHFXQM-CDzGLNXS.js} +1 -1
  81. package/dist-embed/chunks/{th-TH-HPSO5L25-CkS_jtXJ.js → th-TH-HPSO5L25-X4BJ7awj.js} +1 -1
  82. package/dist-embed/chunks/{tr-TR-DEFEU3FU-B7b1yuT5.js → tr-TR-DEFEU3FU-CN69_6_H.js} +1 -1
  83. package/dist-embed/chunks/{uk-UA-QMV73CPH-DMXQPyW5.js → uk-UA-QMV73CPH-KjB2cySI.js} +1 -1
  84. package/dist-embed/chunks/{vi-VN-M7AON7JQ-DQGL1ixT.js → vi-VN-M7AON7JQ-BqVSbGWG.js} +1 -1
  85. package/dist-embed/chunks/{zh-CN-LNUGB5OW-BzDVFX-Z.js → zh-CN-LNUGB5OW-oRPI4tbl.js} +1 -1
  86. package/dist-embed/chunks/{zh-HK-E62DVLB3-DwTp6Tkq.js → zh-HK-E62DVLB3-BUlz3y0i.js} +1 -1
  87. package/dist-embed/chunks/{zh-TW-RAJ6MFWO-VbTpKAX1.js → zh-TW-RAJ6MFWO-NxjUwhr3.js} +1 -1
  88. package/dist-embed/datalayer-app-main.js +90 -88
  89. package/dist-embed/datalayer-app.css +1 -1
  90. package/lib/AgentDocument.js +2 -2
  91. package/lib/AgentNotebook.js +2 -2
  92. package/lib/apps/plugins/agents/DatalayerAgentBridge.js +10 -3
  93. package/lib/apps/plugins/agents/SandboxSelector.js +1 -1
  94. package/lib/apps/plugins/agents/handoffRuntime.d.ts +36 -0
  95. package/lib/apps/plugins/agents/handoffRuntime.js +50 -0
  96. package/lib/apps/plugins/agents/plugin.d.ts +20 -6
  97. package/lib/apps/plugins/agents/plugin.js +1 -0
  98. package/lib/apps/plugins/agents/switchable.d.ts +14 -2
  99. package/lib/apps/plugins/agents/switchable.js +13 -3
  100. package/lib/examples/main.js +2 -2
  101. package/lib/loop-main.js +27 -25
  102. package/lib/portable/hosts/agentClient.d.ts +9 -9
  103. package/lib/portable/hosts/agentClient.js +34 -8
  104. package/lib/portable/hosts/contracts.json +3 -28
  105. package/lib/portable/hosts/index.d.ts +0 -1
  106. package/lib/portable/hosts/index.js +0 -1
  107. package/lib/specs/agents/agents.d.ts +1 -0
  108. package/lib/specs/agents/agents.js +246 -0
  109. package/lib/specs/apps.js +5 -9
  110. package/lib/specs/cogs.js +3 -0
  111. package/lib/types/agentspecs.d.ts +19 -0
  112. package/lib/types/agentspecs.js +7 -0
  113. package/package.json +1 -1
  114. package/scripts/codegen/generate_agents.py +28 -0
  115. package/scripts/codegen/generate_sandbox_agents.py +1 -0
  116. package/dist-embed/chunks/DatalayerAgentBridge-BmoysA2b.js +0 -1
  117. package/lib/portable/hosts/sessionUid.d.ts +0 -9
  118. package/lib/portable/hosts/sessionUid.js +0 -29
@@ -202,10 +202,10 @@
202
202
  "agent": "agent-desk",
203
203
  "deployment_uid": "dep-1",
204
204
  "opener": "Summarize the launch risks",
205
- "session": "slack-T0-C0-1700000000-000001",
206
205
  "external_event_id": "Ev0123",
207
206
  "user_token": ""
208
207
  },
208
+ "session": "A start names no session: the runtime mints its uid (a ULID) and names it in the turn event's session, on the first run and on its replay; the host keeps it and sends the next messages to it.",
209
209
  "message_request": {
210
210
  "text": "And the costs?",
211
211
  "external_event_id": "Ev0124"
@@ -507,7 +507,7 @@
507
507
  }
508
508
  },
509
509
  "discord": {
510
- "about": "Discord's forms of the generic contracts: the installation is <application_id>:<guild_id>, a member is their snowflake, a thread is sent as its parent channel, the session uid is hostSessionUid(\"discord\", [application, guild, channel, thread]).",
510
+ "about": "Discord's forms of the generic contracts: the installation is <application_id>:<guild_id>, a member is their snowflake, a thread is sent as its parent channel; the session uid is the runtime's, kept by the service against its thread.",
511
511
  "application_id": "123456789012345678",
512
512
  "guild_id": "234567890123456789",
513
513
  "bind_request": {
@@ -539,15 +539,6 @@
539
539
  "id": "678901234567890123"
540
540
  }
541
541
  },
542
- "session": {
543
- "parts": [
544
- "123456789012345678",
545
- "234567890123456789",
546
- "345678901234567890",
547
- "456789012345678901"
548
- ],
549
- "uid": "discord-15beb80510370bbe027882df9d4d4666925017df"
550
- },
551
542
  "target": {
552
543
  "applicationId": "123456789012345678",
553
544
  "channelId": "345678901234567890",
@@ -558,7 +549,7 @@
558
549
  }
559
550
  },
560
551
  "whatsapp": {
561
- "about": "WhatsApp's forms of the generic contracts: the installation is <waba_id>:<phone_number_id>, one per connected business number; a person is their business-scoped user id (BSUID: a country code, a period and up to 128 characters; never the phone number), which the external id pattern admits as it is, no hash in between; a 1:1 chat is a direct place named by the BSUID, a group a channel named by its group id; the session uid is hostSessionUid(\"whatsapp\", [waba_id, phone_number_id, user_id]) for a chat and [waba_id, phone_number_id, group_id] for a group; a turn's provenance names the message by its wamid.",
552
+ "about": "WhatsApp's forms of the generic contracts: the installation is <waba_id>:<phone_number_id>, one per connected business number; a person is their business-scoped user id (BSUID: a country code, a period and up to 128 characters; never the phone number), which the external id pattern admits as it is, no hash in between; a 1:1 chat is a direct place named by the BSUID, a group a channel named by its group id; the session uid is the runtime's, kept by the service against its chat or group; a turn's provenance names the message by its wamid.",
562
553
  "waba_id": "102290129340398",
563
554
  "phone_number_id": "106540352242922",
564
555
  "bind_request": {
@@ -584,22 +575,6 @@
584
575
  "id": "120363025246125486"
585
576
  }
586
577
  },
587
- "session": {
588
- "parts": [
589
- "102290129340398",
590
- "106540352242922",
591
- "US.13491208655302741918"
592
- ],
593
- "uid": "whatsapp-870e7e8165519947ec9c7df03d378b342cee380e"
594
- },
595
- "group_session": {
596
- "parts": [
597
- "102290129340398",
598
- "106540352242922",
599
- "120363025246125486"
600
- ],
601
- "uid": "whatsapp-49aeadff03b2d02e6359121f9a55bae904640b35"
602
- },
603
578
  "provenance": {
604
579
  "host_kind": "whatsapp",
605
580
  "place": {
@@ -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';
@@ -54,6 +54,7 @@ export declare const EXAMPLE_HOOKS_AGENTSPEC_0_0_1: Agentspec;
54
54
  export declare const EXAMPLE_HUMAN_APPROVED_AUTOMATION_AGENTSPEC_0_0_1: Agentspec;
55
55
  export declare const EXAMPLE_HUMAN_IN_THE_LOOP_AGENTSPEC_0_0_1: Agentspec;
56
56
  export declare const EXAMPLE_INFERENCE_AGENTSPEC_0_0_1: Agentspec;
57
+ export declare const EXAMPLE_KAGENT_AGENTSPEC_0_0_1: Agentspec;
57
58
  export declare const EXAMPLE_LONG_RUNNING_AGENT_OVERNIGHT_AGENTSPEC_0_0_1: Agentspec;
58
59
  export declare const EXAMPLE_MCP_AGENTSPEC_0_0_1: Agentspec;
59
60
  export declare const EXAMPLE_MEMORY_AGENTSPEC_0_0_1: Agentspec;