@letta-ai/letta-code 0.30.19 → 0.30.20

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 (31) hide show
  1. package/dist/gateway-core.js +33 -1
  2. package/dist/gateway-core.js.map +3 -3
  3. package/dist/mcp-client.js +2 -2
  4. package/dist/mcp-client.js.map +1 -1
  5. package/dist/types/agent/model.d.ts.map +1 -1
  6. package/dist/types/agent/subagents/subagent-launcher.d.ts.map +1 -1
  7. package/dist/types/channels/gateway-core.d.ts +3 -0
  8. package/dist/types/channels/gateway-core.d.ts.map +1 -1
  9. package/dist/types/mods/capabilities.d.ts +4 -0
  10. package/dist/types/mods/capabilities.d.ts.map +1 -1
  11. package/dist/types/mods/mod-adapter.d.ts.map +1 -1
  12. package/dist/types/tools/impl/task-update.d.ts +1 -1
  13. package/dist/types/tools/impl/task-update.d.ts.map +1 -1
  14. package/dist/types/tools/impl/task.d.ts +1 -0
  15. package/dist/types/tools/impl/task.d.ts.map +1 -1
  16. package/dist/types/tools/impl/tasks/store.d.ts +3 -6
  17. package/dist/types/tools/impl/tasks/store.d.ts.map +1 -1
  18. package/dist/types/types/protocol_v2.d.ts +8 -10
  19. package/dist/types/types/protocol_v2.d.ts.map +1 -1
  20. package/dist/types/types/service-protocol.d.ts +11 -0
  21. package/dist/types/types/service-protocol.d.ts.map +1 -1
  22. package/dist/types/types/teleport-protocol.d.ts +54 -0
  23. package/dist/types/types/teleport-protocol.d.ts.map +1 -0
  24. package/dist/types/websocket/listener/runtime.d.ts.map +1 -1
  25. package/dist/types/websocket/listener/types.d.ts +13 -1
  26. package/dist/types/websocket/listener/types.d.ts.map +1 -1
  27. package/letta.js +1282 -553
  28. package/package.json +1 -1
  29. package/scripts/source-file-size-baseline.json +4 -4
  30. package/skills/scheduling-tasks/SKILL.md +10 -8
  31. package/skills/teleporting-between-environments/SKILL.md +100 -0
@@ -1514,6 +1514,38 @@ class ChannelGateway {
1514
1514
  });
1515
1515
  });
1516
1516
  }
1517
+ async publishRuntimeTools(runtime, sources = []) {
1518
+ return await this.enqueueRegistration(async () => {
1519
+ if (this.states.has(runtimeKey(runtime)))
1520
+ return false;
1521
+ const tool = await this.hooks.buildExternalTool(runtime, sources);
1522
+ const response = await this.client.runtimeExternalToolsUpdate({
1523
+ updates: [
1524
+ {
1525
+ runtimes: [runtime],
1526
+ external_tools: tool ? [{ tools: [tool] }] : []
1527
+ }
1528
+ ]
1529
+ });
1530
+ if (!response.success) {
1531
+ throw new Error(response.error ?? "Failed to publish channel runtime tools");
1532
+ }
1533
+ return tool !== null;
1534
+ });
1535
+ }
1536
+ async releaseRuntimeTools(runtime, routedSources = []) {
1537
+ await this.enqueueRegistration(async () => {
1538
+ if (routedSources.length > 0 || this.states.has(runtimeKey(runtime))) {
1539
+ return;
1540
+ }
1541
+ const response = await this.client.runtimeExternalToolsUpdate({
1542
+ updates: [{ runtimes: [runtime], external_tools: [] }]
1543
+ });
1544
+ if (!response.success) {
1545
+ throw new Error(response.error ?? "Failed to release channel runtime tools");
1546
+ }
1547
+ });
1548
+ }
1517
1549
  async submitApprovalResponse(runtime, response) {
1518
1550
  const result = await this.client.submitInput({
1519
1551
  runtime,
@@ -2859,4 +2891,4 @@ export {
2859
2891
  ChannelControlRequestCoordinator
2860
2892
  };
2861
2893
 
2862
- //# debugId=8EA0293E1912A46464756E2164756E21
2894
+ //# debugId=CA56D3159193925764756E2164756E21