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.
@@ -1,17 +1,16 @@
1
1
  /**
2
- * pipeline-fastbrain.ts — Pipeline Fast Brain (Agent with AFC)
2
+ * pipeline-fastbrain.ts — Pipeline Fast Brain (Agent with tool loop)
3
3
  *
4
- * Uses Gemini Flash as an AGENT with Automatic Function Calling (AFC).
5
- * One generateContent() call handles everything:
6
- * - Gemini decides IF it needs to search (skips for greetings/follow-ups)
7
- * - Gemini decides WHAT to search (smart phrase selection)
8
- * - Gemini can multi-step: search → not enough → refine → search again
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
- * No separate phrase extraction call. No manual tool loop. One API invocation.
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>;