funolio-agent 0.15.57 → 0.15.58
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/default-tool-profile.d.ts.map +1 -1
- package/dist/default-tool-profile.js +15 -0
- package/dist/default-tool-profile.js.map +1 -1
- package/dist/local-server.d.ts.map +1 -1
- package/dist/local-server.js +5 -0
- package/dist/local-server.js.map +1 -1
- package/dist/message-loop.d.ts.map +1 -1
- package/dist/message-loop.js +4 -0
- package/dist/message-loop.js.map +1 -1
- package/dist/tools/spawn-subagent.d.ts.map +1 -1
- package/dist/tools/spawn-subagent.js +33 -6
- package/dist/tools/spawn-subagent.js.map +1 -1
- package/dist/types.d.ts +8 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-tool-profile.d.ts","sourceRoot":"","sources":["../src/default-tool-profile.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,EAAG,qBAA8B,CAAC;AAEtE,eAAO,MAAM,6BAA6B,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"default-tool-profile.d.ts","sourceRoot":"","sources":["../src/default-tool-profile.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,EAAG,qBAA8B,CAAC;AAEtE,eAAO,MAAM,6BAA6B,EAAE,MAAM,EAyBjD,CAAC;AAEF,wBAAgB,qBAAqB,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,GAAG,MAAM,EAAE,CAKvE"}
|
|
@@ -10,9 +10,24 @@ exports.DEFAULT_ENABLED_BUILTIN_TOOLS = [
|
|
|
10
10
|
'web_fetch',
|
|
11
11
|
'git_status',
|
|
12
12
|
'git_diff',
|
|
13
|
+
'git_commit',
|
|
13
14
|
'run_command',
|
|
14
15
|
'write_file',
|
|
15
16
|
'edit_file',
|
|
17
|
+
'spawn_subagent',
|
|
18
|
+
'list_subagents',
|
|
19
|
+
'search_memory',
|
|
20
|
+
'schedule_task',
|
|
21
|
+
'add_task',
|
|
22
|
+
'list_tasks',
|
|
23
|
+
'check_task',
|
|
24
|
+
'edit_task',
|
|
25
|
+
'delete_task',
|
|
26
|
+
'notify_user',
|
|
27
|
+
'request_mcp_install',
|
|
28
|
+
'search_marketplace',
|
|
29
|
+
'search_codebase',
|
|
30
|
+
'analyze_image',
|
|
16
31
|
];
|
|
17
32
|
function normalizeEnabledTools(input) {
|
|
18
33
|
if (!Array.isArray(input) || input.length === 0) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-tool-profile.js","sourceRoot":"","sources":["../src/default-tool-profile.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"default-tool-profile.js","sourceRoot":"","sources":["../src/default-tool-profile.ts"],"names":[],"mappings":";;;AA6BA,sDAKC;AAlCY,QAAA,uBAAuB,GAAG,qBAA8B,CAAC;AAEzD,QAAA,6BAA6B,GAAa;IACrD,WAAW;IACX,gBAAgB;IAChB,YAAY;IACZ,WAAW;IACX,YAAY;IACZ,UAAU;IACV,YAAY;IACZ,aAAa;IACb,YAAY;IACZ,WAAW;IACX,gBAAgB;IAChB,gBAAgB;IAChB,eAAe;IACf,eAAe;IACf,UAAU;IACV,YAAY;IACZ,YAAY;IACZ,WAAW;IACX,aAAa;IACb,aAAa;IACb,qBAAqB;IACrB,oBAAoB;IACpB,iBAAiB;IACjB,eAAe;CAChB,CAAC;AAEF,SAAgB,qBAAqB,CAAC,KAAuB;IAC3D,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAChD,OAAO,CAAC,GAAG,qCAA6B,CAAC,CAAC;IAC5C,CAAC;IACD,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC;AAC7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-server.d.ts","sourceRoot":"","sources":["../src/local-server.ts"],"names":[],"mappings":"AA2HA,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"local-server.d.ts","sourceRoot":"","sources":["../src/local-server.ts"],"names":[],"mappings":"AA2HA,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,GAAG,CAAC,CA67HvE;AAED,wBAAgB,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC,CAa/C"}
|
package/dist/local-server.js
CHANGED
|
@@ -2407,10 +2407,15 @@ function startLocalServer(opts) {
|
|
|
2407
2407
|
if (!activeApiKey) {
|
|
2408
2408
|
return res.status(400).json({ error: `No API key for provider ${profile.provider}. Configure one in Settings.` });
|
|
2409
2409
|
}
|
|
2410
|
+
const isOAuthKey = activeApiKey?.startsWith('sk-ant-oat01-') || false;
|
|
2410
2411
|
const toolCtx = (0, index_2.createToolContext)(llmSpawnCwd, {
|
|
2411
2412
|
projectId: convId ? (data.getConversation(convId)?.project_id ?? null) : null,
|
|
2412
2413
|
actorType: 'llm',
|
|
2413
2414
|
actorId: profile?.name || profile?.id || 'LLM',
|
|
2415
|
+
llmProvider: activeProviderName,
|
|
2416
|
+
llmModel: activeModelName || undefined,
|
|
2417
|
+
llmApiKey: activeApiKey,
|
|
2418
|
+
llmAuthMode: isOAuthKey ? 'oauth-bearer' : 'api-key',
|
|
2414
2419
|
});
|
|
2415
2420
|
const toolManifest = toolDefs
|
|
2416
2421
|
.map(t => `- ${t.name}: ${t.description}`)
|