@letta-ai/letta-code 0.1.6 → 0.1.7
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/letta.js +18 -4
- package/package.json +1 -1
package/letta.js
CHANGED
|
@@ -118564,6 +118564,12 @@ function analyzeDefaultApproval(toolName) {
|
|
|
118564
118564
|
var init_analyzer = () => {};
|
|
118565
118565
|
|
|
118566
118566
|
// src/tools/manager.ts
|
|
118567
|
+
function getRegistry2() {
|
|
118568
|
+
if (!globalThis[REGISTRY_KEY2]) {
|
|
118569
|
+
globalThis[REGISTRY_KEY2] = new Map;
|
|
118570
|
+
}
|
|
118571
|
+
return globalThis[REGISTRY_KEY2];
|
|
118572
|
+
}
|
|
118567
118573
|
async function checkToolPermission(toolName, toolArgs, workingDirectory = process.cwd()) {
|
|
118568
118574
|
const { checkPermission: checkPermission2 } = await Promise.resolve().then(() => (init_checker(), exports_checker));
|
|
118569
118575
|
const { loadPermissions: loadPermissions2 } = await Promise.resolve().then(() => (init_loader(), exports_loader));
|
|
@@ -118689,11 +118695,12 @@ async function executeTool(name, args) {
|
|
|
118689
118695
|
function getToolNames() {
|
|
118690
118696
|
return Array.from(toolRegistry2.keys());
|
|
118691
118697
|
}
|
|
118692
|
-
var TOOL_NAMES2, toolRegistry2;
|
|
118698
|
+
var TOOL_NAMES2, REGISTRY_KEY2, toolRegistry2;
|
|
118693
118699
|
var init_manager = __esm(() => {
|
|
118694
118700
|
init_toolDefinitions();
|
|
118695
118701
|
TOOL_NAMES2 = Object.keys(TOOL_DEFINITIONS);
|
|
118696
|
-
|
|
118702
|
+
REGISTRY_KEY2 = Symbol.for("@letta/toolRegistry");
|
|
118703
|
+
toolRegistry2 = getRegistry2();
|
|
118697
118704
|
});
|
|
118698
118705
|
|
|
118699
118706
|
// src/agent/prompts/human.mdx
|
|
@@ -150765,7 +150772,14 @@ init_settings();
|
|
|
150765
150772
|
// src/tools/manager.ts
|
|
150766
150773
|
init_toolDefinitions();
|
|
150767
150774
|
var TOOL_NAMES = Object.keys(TOOL_DEFINITIONS);
|
|
150768
|
-
var
|
|
150775
|
+
var REGISTRY_KEY = Symbol.for("@letta/toolRegistry");
|
|
150776
|
+
function getRegistry() {
|
|
150777
|
+
if (!globalThis[REGISTRY_KEY]) {
|
|
150778
|
+
globalThis[REGISTRY_KEY] = new Map;
|
|
150779
|
+
}
|
|
150780
|
+
return globalThis[REGISTRY_KEY];
|
|
150781
|
+
}
|
|
150782
|
+
var toolRegistry = getRegistry();
|
|
150769
150783
|
function generatePythonStub(name, _description, schema) {
|
|
150770
150784
|
const params = schema.properties ?? {};
|
|
150771
150785
|
const required = schema.required ?? [];
|
|
@@ -151024,4 +151038,4 @@ Note: Flags should use double dashes for full names (e.g., --yolo, not -yolo)`);
|
|
|
151024
151038
|
}
|
|
151025
151039
|
main();
|
|
151026
151040
|
|
|
151027
|
-
//# debugId=
|
|
151041
|
+
//# debugId=37B80CB1E5E14EF264756E2164756E21
|