osborn 0.9.180 → 0.9.182
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/config.d.ts +6 -46
- package/dist/config.js +20 -56
- package/dist/index.js +94 -849
- package/dist/pipeline-fastbrain.d.ts +10 -17
- package/dist/pipeline-fastbrain.js +269 -246
- package/dist/turn-detector-shim.js +6 -2
- package/dist/voice-io.d.ts +3 -34
- package/dist/voice-io.js +30 -76
- package/package.json +3 -5
- package/tests/autocompact-pct.test.ts +0 -77
- package/tests/voice-io-stt-config.test.ts +0 -177
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* pipeline-fastbrain.ts — Pipeline Fast Brain (Agent with
|
|
2
|
+
* pipeline-fastbrain.ts — Pipeline Fast Brain (Agent with tool loop)
|
|
3
3
|
*
|
|
4
|
-
* Uses
|
|
5
|
-
*
|
|
6
|
-
* -
|
|
7
|
-
* -
|
|
8
|
-
* -
|
|
9
|
-
* - AFC handles the tool loop internally (up to 3 rounds)
|
|
4
|
+
* Uses OpenRouter (OpenAI-compatible) instead of Google Gemini.
|
|
5
|
+
* Manual tool loop replaces Gemini's Automatic Function Calling (AFC).
|
|
6
|
+
* - Model decides IF it needs to search (skips for greetings/follow-ups)
|
|
7
|
+
* - Model decides WHAT to search (smart phrase selection)
|
|
8
|
+
* - Model can multi-step: search → not enough → refine → search again
|
|
10
9
|
*
|
|
11
10
|
* Tools:
|
|
12
11
|
* search_session — ripgrep the summary index + read full content via byte offsets
|
|
13
|
-
*
|
|
14
|
-
*
|
|
12
|
+
* get_recent — latest N index entries + full content
|
|
13
|
+
* emergency_stop — kill and restart the main agent
|
|
15
14
|
*/
|
|
16
15
|
export interface PipelineFastBrainResult {
|
|
17
16
|
script: string;
|
|
@@ -27,14 +26,6 @@ export interface PipelineFastBrainOptions {
|
|
|
27
26
|
sessionBaseDir?: string;
|
|
28
27
|
agentControl?: AgentControlCallbacks;
|
|
29
28
|
}
|
|
30
|
-
/** Clear the pipeline fast brain session (call on disconnect/reconnect) */
|
|
31
|
-
export declare function clearPipelineFastBrainSession(): void;
|
|
32
|
-
/** No-op — kept for backward compatibility with index.ts import */
|
|
33
|
-
export declare function prewarmBM25Index(_sessionId: string, _workingDir: string): Promise<void>;
|
|
34
|
-
/**
|
|
35
|
-
* Create a CallableTool that wraps ripgrep search of the summary index
|
|
36
|
-
* + byte-offset full content reads from raw JSONL.
|
|
37
|
-
*/
|
|
38
29
|
export interface AgentControlCallbacks {
|
|
39
30
|
interrupt: () => Promise<boolean>;
|
|
40
31
|
abort: () => void;
|
|
@@ -42,4 +33,6 @@ export interface AgentControlCallbacks {
|
|
|
42
33
|
getRecentUserMessages: (count: number) => string[];
|
|
43
34
|
sendPrompt: (prompt: string) => void;
|
|
44
35
|
}
|
|
36
|
+
export declare function clearPipelineFastBrainSession(): void;
|
|
37
|
+
export declare function prewarmBM25Index(_sessionId: string, _workingDir: string): Promise<void>;
|
|
45
38
|
export declare function askPipelineFastBrain(workingDir: string, sessionId: string, question: string, opts?: PipelineFastBrainOptions): Promise<PipelineFastBrainResult>;
|