@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.
- package/dist/gateway-core.js +33 -1
- package/dist/gateway-core.js.map +3 -3
- package/dist/mcp-client.js +2 -2
- package/dist/mcp-client.js.map +1 -1
- package/dist/types/agent/model.d.ts.map +1 -1
- package/dist/types/agent/subagents/subagent-launcher.d.ts.map +1 -1
- package/dist/types/channels/gateway-core.d.ts +3 -0
- package/dist/types/channels/gateway-core.d.ts.map +1 -1
- package/dist/types/mods/capabilities.d.ts +4 -0
- package/dist/types/mods/capabilities.d.ts.map +1 -1
- package/dist/types/mods/mod-adapter.d.ts.map +1 -1
- package/dist/types/tools/impl/task-update.d.ts +1 -1
- package/dist/types/tools/impl/task-update.d.ts.map +1 -1
- package/dist/types/tools/impl/task.d.ts +1 -0
- package/dist/types/tools/impl/task.d.ts.map +1 -1
- package/dist/types/tools/impl/tasks/store.d.ts +3 -6
- package/dist/types/tools/impl/tasks/store.d.ts.map +1 -1
- package/dist/types/types/protocol_v2.d.ts +8 -10
- package/dist/types/types/protocol_v2.d.ts.map +1 -1
- package/dist/types/types/service-protocol.d.ts +11 -0
- package/dist/types/types/service-protocol.d.ts.map +1 -1
- package/dist/types/types/teleport-protocol.d.ts +54 -0
- package/dist/types/types/teleport-protocol.d.ts.map +1 -0
- package/dist/types/websocket/listener/runtime.d.ts.map +1 -1
- package/dist/types/websocket/listener/types.d.ts +13 -1
- package/dist/types/websocket/listener/types.d.ts.map +1 -1
- package/letta.js +1282 -553
- package/package.json +1 -1
- package/scripts/source-file-size-baseline.json +4 -4
- package/skills/scheduling-tasks/SKILL.md +10 -8
- package/skills/teleporting-between-environments/SKILL.md +100 -0
package/dist/gateway-core.js
CHANGED
|
@@ -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=
|
|
2894
|
+
//# debugId=CA56D3159193925764756E2164756E21
|