@blockrun/franklin 3.3.2 → 3.5.0
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/README.md +58 -7
- package/dist/agent/commands.d.ts +1 -1
- package/dist/agent/commands.js +128 -17
- package/dist/agent/compact.d.ts +2 -2
- package/dist/agent/compact.js +148 -22
- package/dist/agent/context.d.ts +8 -3
- package/dist/agent/context.js +301 -108
- package/dist/agent/error-classifier.d.ts +11 -2
- package/dist/agent/error-classifier.js +64 -10
- package/dist/agent/llm.d.ts +8 -1
- package/dist/agent/llm.js +114 -19
- package/dist/agent/loop.d.ts +1 -2
- package/dist/agent/loop.js +509 -61
- package/dist/agent/optimize.d.ts +2 -2
- package/dist/agent/optimize.js +9 -7
- package/dist/agent/permissions.d.ts +1 -1
- package/dist/agent/permissions.js +1 -1
- package/dist/agent/planner.d.ts +42 -0
- package/dist/agent/planner.js +110 -0
- package/dist/agent/reduce.d.ts +7 -1
- package/dist/agent/reduce.js +85 -3
- package/dist/agent/streaming-executor.d.ts +6 -1
- package/dist/agent/streaming-executor.js +83 -5
- package/dist/agent/tokens.d.ts +11 -2
- package/dist/agent/tokens.js +38 -5
- package/dist/agent/tool-guard.d.ts +27 -0
- package/dist/agent/tool-guard.js +324 -0
- package/dist/agent/types.d.ts +7 -1
- package/dist/agent/types.js +1 -1
- package/dist/banner.js +27 -40
- package/dist/brain/extract.d.ts +11 -0
- package/dist/brain/extract.js +154 -0
- package/dist/brain/index.d.ts +3 -0
- package/dist/brain/index.js +2 -0
- package/dist/brain/store.d.ts +42 -0
- package/dist/brain/store.js +225 -0
- package/dist/brain/types.d.ts +45 -0
- package/dist/brain/types.js +5 -0
- package/dist/commands/daemon.js +2 -1
- package/dist/commands/start.js +16 -3
- package/dist/config.js +1 -1
- package/dist/index.js +27 -2
- package/dist/learnings/extractor.d.ts +13 -0
- package/dist/learnings/extractor.js +69 -8
- package/dist/learnings/index.d.ts +1 -1
- package/dist/learnings/index.js +1 -1
- package/dist/learnings/store.js +42 -13
- package/dist/learnings/types.d.ts +1 -1
- package/dist/mcp/client.d.ts +1 -1
- package/dist/mcp/client.js +5 -5
- package/dist/mcp/config.d.ts +1 -1
- package/dist/mcp/config.js +1 -1
- package/dist/panel/html.d.ts +2 -0
- package/dist/panel/html.js +409 -146
- package/dist/panel/server.js +19 -0
- package/dist/pricing.js +3 -2
- package/dist/proxy/fallback.d.ts +3 -1
- package/dist/proxy/fallback.js +4 -4
- package/dist/proxy/server.js +29 -11
- package/dist/proxy/sse-translator.js +1 -1
- package/dist/router/categories.d.ts +21 -0
- package/dist/router/categories.js +96 -0
- package/dist/router/index.d.ts +9 -2
- package/dist/router/index.js +106 -27
- package/dist/router/local-elo.d.ts +32 -0
- package/dist/router/local-elo.js +107 -0
- package/dist/router/selector.d.ts +46 -0
- package/dist/router/selector.js +106 -0
- package/dist/session/storage.d.ts +5 -1
- package/dist/session/storage.js +24 -2
- package/dist/social/a11y.d.ts +1 -1
- package/dist/social/a11y.js +5 -1
- package/dist/social/browser.d.ts +5 -0
- package/dist/social/browser.js +22 -0
- package/dist/social/preflight.d.ts +4 -0
- package/dist/social/preflight.js +42 -3
- package/dist/stats/failures.d.ts +20 -0
- package/dist/stats/failures.js +63 -0
- package/dist/stats/format.d.ts +6 -0
- package/dist/stats/format.js +23 -0
- package/dist/stats/insights.js +1 -21
- package/dist/stats/session-tracker.d.ts +21 -0
- package/dist/stats/session-tracker.js +28 -0
- package/dist/stats/tracker.d.ts +1 -1
- package/dist/stats/tracker.js +1 -1
- package/dist/tools/bash.d.ts +14 -1
- package/dist/tools/bash.js +132 -7
- package/dist/tools/edit.js +77 -14
- package/dist/tools/glob.js +13 -3
- package/dist/tools/grep.js +30 -12
- package/dist/tools/imagegen.js +3 -3
- package/dist/tools/index.d.ts +1 -1
- package/dist/tools/index.js +5 -1
- package/dist/tools/read.d.ts +16 -2
- package/dist/tools/read.js +36 -8
- package/dist/tools/searchx.d.ts +6 -2
- package/dist/tools/searchx.js +221 -44
- package/dist/tools/subagent.js +37 -3
- package/dist/tools/task.js +43 -7
- package/dist/tools/validate.d.ts +11 -0
- package/dist/tools/validate.js +42 -0
- package/dist/tools/webfetch.js +18 -7
- package/dist/tools/websearch.js +41 -7
- package/dist/tools/write.js +26 -6
- package/dist/ui/app.js +31 -6
- package/dist/ui/model-picker.d.ts +1 -1
- package/dist/ui/model-picker.js +1 -1
- package/dist/ui/terminal.d.ts +1 -1
- package/dist/ui/terminal.js +1 -1
- package/package.json +2 -2
|
@@ -14,7 +14,7 @@ export interface Learning {
|
|
|
14
14
|
last_confirmed: number;
|
|
15
15
|
times_confirmed: number;
|
|
16
16
|
}
|
|
17
|
-
export type LearningCategory = 'language' | 'model_preference' | 'tool_pattern' | 'coding_style' | 'communication' | 'domain' | 'correction' | 'workflow' | 'other';
|
|
17
|
+
export type LearningCategory = 'language' | 'model_preference' | 'tool_pattern' | 'coding_style' | 'communication' | 'domain' | 'correction' | 'negative' | 'project_context' | 'workflow' | 'other';
|
|
18
18
|
export interface ExtractionResult {
|
|
19
19
|
learnings: Array<{
|
|
20
20
|
learning: string;
|
package/dist/mcp/client.d.ts
CHANGED
package/dist/mcp/client.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* MCP Client for
|
|
2
|
+
* MCP Client for Franklin.
|
|
3
3
|
* Connects to MCP servers, discovers tools, and wraps them as CapabilityHandlers.
|
|
4
4
|
* Supports stdio and HTTP (SSE) transports.
|
|
5
5
|
*/
|
|
@@ -25,7 +25,7 @@ async function connectStdio(name, config) {
|
|
|
25
25
|
// versions read piped stderr and re-emit it.
|
|
26
26
|
stderr: 'ignore',
|
|
27
27
|
});
|
|
28
|
-
const client = new Client({ name: `
|
|
28
|
+
const client = new Client({ name: `franklin-mcp-${name}`, version: '1.0.0' }, { capabilities: {} });
|
|
29
29
|
try {
|
|
30
30
|
await client.connect(transport);
|
|
31
31
|
}
|
|
@@ -98,11 +98,11 @@ export async function connectMcpServers(config, debug) {
|
|
|
98
98
|
continue;
|
|
99
99
|
try {
|
|
100
100
|
if (debug) {
|
|
101
|
-
console.error(`[
|
|
101
|
+
console.error(`[franklin] Connecting to MCP server: ${name}...`);
|
|
102
102
|
}
|
|
103
103
|
if (serverConfig.transport !== 'stdio') {
|
|
104
104
|
if (debug) {
|
|
105
|
-
console.error(`[
|
|
105
|
+
console.error(`[franklin] MCP HTTP transport not yet supported for ${name}`);
|
|
106
106
|
}
|
|
107
107
|
continue;
|
|
108
108
|
}
|
|
@@ -112,7 +112,7 @@ export async function connectMcpServers(config, debug) {
|
|
|
112
112
|
const connected = await Promise.race([connectPromise, timeoutPromise]);
|
|
113
113
|
allTools.push(...connected.tools);
|
|
114
114
|
if (debug) {
|
|
115
|
-
console.error(`[
|
|
115
|
+
console.error(`[franklin] MCP ${name}: ${connected.tools.length} tools discovered`);
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
catch (err) {
|
package/dist/mcp/config.d.ts
CHANGED
package/dist/mcp/config.js
CHANGED
package/dist/panel/html.d.ts
CHANGED