verybot 0.1.8
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 +167 -0
- package/dist/aliases/store.d.ts +21 -0
- package/dist/aliases/store.js +148 -0
- package/dist/aliases/types.d.ts +6 -0
- package/dist/aliases/types.js +1 -0
- package/dist/brain/agent-registry.d.ts +96 -0
- package/dist/brain/agent-registry.js +141 -0
- package/dist/brain/agent.d.ts +167 -0
- package/dist/brain/agent.js +932 -0
- package/dist/brain/channel-store.d.ts +27 -0
- package/dist/brain/channel-store.js +78 -0
- package/dist/brain/compaction.d.ts +37 -0
- package/dist/brain/compaction.js +214 -0
- package/dist/brain/context.d.ts +43 -0
- package/dist/brain/context.js +139 -0
- package/dist/brain/delegation-store.d.ts +33 -0
- package/dist/brain/delegation-store.js +106 -0
- package/dist/brain/loop.d.ts +24 -0
- package/dist/brain/loop.js +318 -0
- package/dist/brain/mcp-adapter.d.ts +43 -0
- package/dist/brain/mcp-adapter.js +244 -0
- package/dist/brain/memory-extractor.d.ts +26 -0
- package/dist/brain/memory-extractor.js +82 -0
- package/dist/brain/providers.d.ts +14 -0
- package/dist/brain/providers.js +85 -0
- package/dist/brain/queue.d.ts +18 -0
- package/dist/brain/queue.js +111 -0
- package/dist/brain/run-tools.d.ts +50 -0
- package/dist/brain/run-tools.js +136 -0
- package/dist/brain/session-key.d.ts +23 -0
- package/dist/brain/session-key.js +41 -0
- package/dist/brain/session-state.d.ts +36 -0
- package/dist/brain/session-state.js +51 -0
- package/dist/brain/session-store.d.ts +50 -0
- package/dist/brain/session-store.js +207 -0
- package/dist/brain/session.d.ts +32 -0
- package/dist/brain/session.js +75 -0
- package/dist/brain/task-subscriber.d.ts +56 -0
- package/dist/brain/task-subscriber.js +317 -0
- package/dist/brain/user-content.d.ts +16 -0
- package/dist/brain/user-content.js +32 -0
- package/dist/brain/utils.d.ts +4 -0
- package/dist/brain/utils.js +26 -0
- package/dist/brain/worker-coordinator.d.ts +25 -0
- package/dist/brain/worker-coordinator.js +83 -0
- package/dist/channels/commands.d.ts +50 -0
- package/dist/channels/commands.js +132 -0
- package/dist/channels/discord/channel.d.ts +29 -0
- package/dist/channels/discord/channel.js +159 -0
- package/dist/channels/discord/markdown.d.ts +19 -0
- package/dist/channels/discord/markdown.js +62 -0
- package/dist/channels/manager.d.ts +29 -0
- package/dist/channels/manager.js +100 -0
- package/dist/channels/slack/channel.d.ts +37 -0
- package/dist/channels/slack/channel.js +227 -0
- package/dist/channels/slack/markdown.d.ts +19 -0
- package/dist/channels/slack/markdown.js +62 -0
- package/dist/channels/specs.d.ts +32 -0
- package/dist/channels/specs.js +99 -0
- package/dist/channels/telegram/channel.d.ts +29 -0
- package/dist/channels/telegram/channel.js +182 -0
- package/dist/channels/telegram/markdown.d.ts +17 -0
- package/dist/channels/telegram/markdown.js +66 -0
- package/dist/channels/types.d.ts +26 -0
- package/dist/channels/types.js +1 -0
- package/dist/channels/whatsapp/channel.d.ts +34 -0
- package/dist/channels/whatsapp/channel.js +276 -0
- package/dist/channels/whatsapp/markdown.d.ts +20 -0
- package/dist/channels/whatsapp/markdown.js +51 -0
- package/dist/cli/claude-login.d.ts +5 -0
- package/dist/cli/claude-login.js +47 -0
- package/dist/cli/config.d.ts +5 -0
- package/dist/cli/config.js +78 -0
- package/dist/cli/index.d.ts +11 -0
- package/dist/cli/index.js +96 -0
- package/dist/computer/browser/actions.d.ts +31 -0
- package/dist/computer/browser/actions.js +148 -0
- package/dist/computer/browser/context-manager.d.ts +28 -0
- package/dist/computer/browser/context-manager.js +78 -0
- package/dist/computer/browser/manager.d.ts +91 -0
- package/dist/computer/browser/manager.js +344 -0
- package/dist/computer/browser/profile-badge.d.ts +13 -0
- package/dist/computer/browser/profile-badge.js +67 -0
- package/dist/computer/browser/screenshot.d.ts +5 -0
- package/dist/computer/browser/screenshot.js +21 -0
- package/dist/computer/browser/snapshot.d.ts +30 -0
- package/dist/computer/browser/snapshot.js +242 -0
- package/dist/computer/browser/tools.d.ts +5 -0
- package/dist/computer/browser/tools.js +167 -0
- package/dist/computer/browser/types.d.ts +26 -0
- package/dist/computer/browser/types.js +1 -0
- package/dist/computer/desktop/adapter.d.ts +25 -0
- package/dist/computer/desktop/adapter.js +11 -0
- package/dist/computer/desktop/macos.d.ts +24 -0
- package/dist/computer/desktop/macos.js +223 -0
- package/dist/computer/desktop/tools.d.ts +25 -0
- package/dist/computer/desktop/tools.js +114 -0
- package/dist/config/agent-config.d.ts +55 -0
- package/dist/config/agent-config.js +16 -0
- package/dist/config/model-catalog.d.ts +22 -0
- package/dist/config/model-catalog.js +112 -0
- package/dist/config/model-spec.d.ts +8 -0
- package/dist/config/model-spec.js +66 -0
- package/dist/config/store.d.ts +25 -0
- package/dist/config/store.js +143 -0
- package/dist/config.d.ts +110 -0
- package/dist/config.js +259 -0
- package/dist/control-ui/assets/index-Cbl7G5Sc.css +1 -0
- package/dist/control-ui/assets/index-Cu1P4C62.js +266 -0
- package/dist/control-ui/assets/noto-sans-cyrillic-ext-wght-normal-DSNfmdVt.woff2 +0 -0
- package/dist/control-ui/assets/noto-sans-cyrillic-wght-normal-B2hlT84T.woff2 +0 -0
- package/dist/control-ui/assets/noto-sans-devanagari-wght-normal-Cv-Vwajv.woff2 +0 -0
- package/dist/control-ui/assets/noto-sans-greek-ext-wght-normal-12T8GTDR.woff2 +0 -0
- package/dist/control-ui/assets/noto-sans-greek-wght-normal-Ymb6dZNd.woff2 +0 -0
- package/dist/control-ui/assets/noto-sans-latin-ext-wght-normal-W1qJv59z.woff2 +0 -0
- package/dist/control-ui/assets/noto-sans-latin-wght-normal-BYSzYMf3.woff2 +0 -0
- package/dist/control-ui/assets/noto-sans-vietnamese-wght-normal-DLTJy58D.woff2 +0 -0
- package/dist/control-ui/index.html +14 -0
- package/dist/control-ui/vite.svg +1 -0
- package/dist/events.d.ts +2 -0
- package/dist/events.js +11 -0
- package/dist/gateway/broadcast.d.ts +5 -0
- package/dist/gateway/broadcast.js +33 -0
- package/dist/gateway/methods/aliases.d.ts +17 -0
- package/dist/gateway/methods/aliases.js +22 -0
- package/dist/gateway/methods/chat.d.ts +33 -0
- package/dist/gateway/methods/chat.js +37 -0
- package/dist/gateway/methods/config.d.ts +14 -0
- package/dist/gateway/methods/config.js +24 -0
- package/dist/gateway/methods/models.d.ts +10 -0
- package/dist/gateway/methods/models.js +14 -0
- package/dist/gateway/methods/playbooks.d.ts +45 -0
- package/dist/gateway/methods/playbooks.js +488 -0
- package/dist/gateway/methods/prompt-templates.d.ts +27 -0
- package/dist/gateway/methods/prompt-templates.js +106 -0
- package/dist/gateway/methods/scheduler.d.ts +62 -0
- package/dist/gateway/methods/scheduler.js +129 -0
- package/dist/gateway/methods/sessions.d.ts +44 -0
- package/dist/gateway/methods/sessions.js +111 -0
- package/dist/gateway/methods/system.d.ts +12 -0
- package/dist/gateway/methods/system.js +39 -0
- package/dist/gateway/methods/tasks.d.ts +40 -0
- package/dist/gateway/methods/tasks.js +151 -0
- package/dist/gateway/methods/teams.d.ts +69 -0
- package/dist/gateway/methods/teams.js +376 -0
- package/dist/gateway/methods/tools.d.ts +6 -0
- package/dist/gateway/methods/tools.js +7 -0
- package/dist/gateway/methods/whatsapp.d.ts +19 -0
- package/dist/gateway/methods/whatsapp.js +35 -0
- package/dist/gateway/rpc.d.ts +38 -0
- package/dist/gateway/rpc.js +79 -0
- package/dist/gateway/server.d.ts +9 -0
- package/dist/gateway/server.js +137 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +254 -0
- package/dist/integrations/github.d.ts +7 -0
- package/dist/integrations/github.js +133 -0
- package/dist/integrations/mcp.d.ts +7 -0
- package/dist/integrations/mcp.js +106 -0
- package/dist/integrations/registry.d.ts +47 -0
- package/dist/integrations/registry.js +332 -0
- package/dist/integrations/scanner.d.ts +10 -0
- package/dist/integrations/scanner.js +122 -0
- package/dist/integrations/twitter.d.ts +10 -0
- package/dist/integrations/twitter.js +120 -0
- package/dist/integrations/types.d.ts +72 -0
- package/dist/integrations/types.js +1 -0
- package/dist/logger.d.ts +16 -0
- package/dist/logger.js +104 -0
- package/dist/markdown/chunk.d.ts +9 -0
- package/dist/markdown/chunk.js +52 -0
- package/dist/markdown/ir.d.ts +37 -0
- package/dist/markdown/ir.js +529 -0
- package/dist/markdown/render.d.ts +22 -0
- package/dist/markdown/render.js +148 -0
- package/dist/markdown/table-render.d.ts +43 -0
- package/dist/markdown/table-render.js +219 -0
- package/dist/markdown/tables.d.ts +17 -0
- package/dist/markdown/tables.js +27 -0
- package/dist/memory/embedding.d.ts +16 -0
- package/dist/memory/embedding.js +66 -0
- package/dist/memory/explicit.d.ts +16 -0
- package/dist/memory/explicit.js +29 -0
- package/dist/memory/extractor.d.ts +13 -0
- package/dist/memory/extractor.js +82 -0
- package/dist/memory/search.d.ts +15 -0
- package/dist/memory/search.js +57 -0
- package/dist/memory/session-learning.d.ts +23 -0
- package/dist/memory/session-learning.js +55 -0
- package/dist/memory/store.d.ts +36 -0
- package/dist/memory/store.js +334 -0
- package/dist/memory/types.d.ts +9 -0
- package/dist/memory/types.js +2 -0
- package/dist/paths.d.ts +28 -0
- package/dist/paths.js +48 -0
- package/dist/prompt-templates/builtins/index.d.ts +4 -0
- package/dist/prompt-templates/builtins/index.js +5 -0
- package/dist/prompt-templates/builtins/planner.d.ts +4 -0
- package/dist/prompt-templates/builtins/planner.js +77 -0
- package/dist/prompt-templates/store.d.ts +45 -0
- package/dist/prompt-templates/store.js +224 -0
- package/dist/prompt-templates/types.d.ts +10 -0
- package/dist/prompt-templates/types.js +1 -0
- package/dist/scheduler/connected-channels.d.ts +24 -0
- package/dist/scheduler/connected-channels.js +57 -0
- package/dist/scheduler/scheduler.d.ts +22 -0
- package/dist/scheduler/scheduler.js +132 -0
- package/dist/scheduler/store.d.ts +27 -0
- package/dist/scheduler/store.js +205 -0
- package/dist/scheduler/types.d.ts +29 -0
- package/dist/scheduler/types.js +1 -0
- package/dist/security/command-validator.d.ts +22 -0
- package/dist/security/command-validator.js +160 -0
- package/dist/security/docker-sandbox.d.ts +48 -0
- package/dist/security/docker-sandbox.js +218 -0
- package/dist/security/env-filter.d.ts +8 -0
- package/dist/security/env-filter.js +41 -0
- package/dist/skills/loader.d.ts +33 -0
- package/dist/skills/loader.js +132 -0
- package/dist/skills/prompt.d.ts +6 -0
- package/dist/skills/prompt.js +17 -0
- package/dist/skills/read-tool.d.ts +7 -0
- package/dist/skills/read-tool.js +24 -0
- package/dist/skills/scanner.d.ts +6 -0
- package/dist/skills/scanner.js +73 -0
- package/dist/skills/types.d.ts +15 -0
- package/dist/skills/types.js +1 -0
- package/dist/tasks/inline-attachment-content.d.ts +9 -0
- package/dist/tasks/inline-attachment-content.js +64 -0
- package/dist/tasks/store.d.ts +112 -0
- package/dist/tasks/store.js +519 -0
- package/dist/tasks/types.d.ts +129 -0
- package/dist/tasks/types.js +80 -0
- package/dist/teams/status-config.d.ts +8 -0
- package/dist/teams/status-config.js +40 -0
- package/dist/teams/store.d.ts +111 -0
- package/dist/teams/store.js +671 -0
- package/dist/teams/types.d.ts +30 -0
- package/dist/teams/types.js +1 -0
- package/dist/tools/bash.d.ts +18 -0
- package/dist/tools/bash.js +64 -0
- package/dist/tools/channel-history.d.ts +10 -0
- package/dist/tools/channel-history.js +43 -0
- package/dist/tools/delegate.d.ts +20 -0
- package/dist/tools/delegate.js +299 -0
- package/dist/tools/fs.d.ts +4 -0
- package/dist/tools/fs.js +335 -0
- package/dist/tools/integration-toggle.d.ts +14 -0
- package/dist/tools/integration-toggle.js +47 -0
- package/dist/tools/memory.d.ts +13 -0
- package/dist/tools/memory.js +59 -0
- package/dist/tools/prompt-templates.d.ts +7 -0
- package/dist/tools/prompt-templates.js +133 -0
- package/dist/tools/registry.d.ts +6 -0
- package/dist/tools/registry.js +9 -0
- package/dist/tools/schedule.d.ts +8 -0
- package/dist/tools/schedule.js +219 -0
- package/dist/tools/speak.d.ts +10 -0
- package/dist/tools/speak.js +56 -0
- package/dist/tools/tasks.d.ts +67 -0
- package/dist/tools/tasks.js +288 -0
- package/dist/tools/teams.d.ts +22 -0
- package/dist/tools/teams.js +470 -0
- package/dist/tools/web-fetch.d.ts +3 -0
- package/dist/tools/web-fetch.js +22 -0
- package/dist/tts/edge.d.ts +10 -0
- package/dist/tts/edge.js +60 -0
- package/dist/tts/speak.d.ts +12 -0
- package/dist/tts/speak.js +81 -0
- package/dist/tts/transcribe.d.ts +5 -0
- package/dist/tts/transcribe.js +40 -0
- package/dist/utils.d.ts +5 -0
- package/dist/utils.js +22 -0
- package/dist/version.d.ts +1 -0
- package/dist/version.js +13 -0
- package/package.json +102 -0
- package/verybot.js +2 -0
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import type { ToolSet } from "ai";
|
|
2
|
+
import type { IncomingMessage, Channel } from "../channels/types.js";
|
|
3
|
+
import type { Config } from "../config.js";
|
|
4
|
+
import type { ConfigStore } from "../config/store.js";
|
|
5
|
+
import type { MemoryStore } from "../memory/store.js";
|
|
6
|
+
import type { EmbeddingProvider } from "../memory/embedding.js";
|
|
7
|
+
import { Session } from "./session.js";
|
|
8
|
+
import { SessionStore } from "./session-store.js";
|
|
9
|
+
import type { DockerSandbox } from "../security/docker-sandbox.js";
|
|
10
|
+
import type { SkillManager } from "../skills/loader.js";
|
|
11
|
+
import { IntegrationRegistry } from "../integrations/registry.js";
|
|
12
|
+
import type { ScheduleStore } from "../scheduler/store.js";
|
|
13
|
+
import type { ConnectedChannelRegistry } from "../scheduler/connected-channels.js";
|
|
14
|
+
import type { TaskStore } from "../tasks/store.js";
|
|
15
|
+
import type { TeamStore } from "../teams/store.js";
|
|
16
|
+
import type { PromptTemplateStore } from "../prompt-templates/store.js";
|
|
17
|
+
import type { DesktopAdapter } from "../computer/desktop/adapter.js";
|
|
18
|
+
import { BrowserManager } from "../computer/browser/manager.js";
|
|
19
|
+
import { ChannelStore } from "./channel-store.js";
|
|
20
|
+
import { DelegationStore } from "./delegation-store.js";
|
|
21
|
+
import { type TeamInfo } from "./agent-registry.js";
|
|
22
|
+
import { ChannelManager } from "../channels/manager.js";
|
|
23
|
+
import { type SaveExplicitMemoryResult } from "../memory/explicit.js";
|
|
24
|
+
import { type LearnSessionMemoriesResult } from "../memory/session-learning.js";
|
|
25
|
+
export interface AgentDeps {
|
|
26
|
+
config: Config;
|
|
27
|
+
configStore: ConfigStore;
|
|
28
|
+
tools: ToolSet;
|
|
29
|
+
dataDir: string;
|
|
30
|
+
memoryStore?: MemoryStore | null;
|
|
31
|
+
embeddingProvider?: EmbeddingProvider | null;
|
|
32
|
+
sandbox?: DockerSandbox | null;
|
|
33
|
+
skillManager?: SkillManager;
|
|
34
|
+
integrationRegistry?: IntegrationRegistry;
|
|
35
|
+
scheduleStore?: ScheduleStore | null;
|
|
36
|
+
taskStore?: TaskStore | null;
|
|
37
|
+
desktopAdapter?: DesktopAdapter | null;
|
|
38
|
+
browserManager?: BrowserManager | null;
|
|
39
|
+
delegationStore?: DelegationStore | null;
|
|
40
|
+
channelStore?: ChannelStore | null;
|
|
41
|
+
teamStore?: TeamStore | null;
|
|
42
|
+
promptTemplateStore?: PromptTemplateStore | null;
|
|
43
|
+
channelManager?: ChannelManager | null;
|
|
44
|
+
connectedChannels?: ConnectedChannelRegistry | null;
|
|
45
|
+
}
|
|
46
|
+
export declare class Agent {
|
|
47
|
+
private sessions;
|
|
48
|
+
private sessionStore;
|
|
49
|
+
private queue;
|
|
50
|
+
private model;
|
|
51
|
+
private modelId;
|
|
52
|
+
private identity;
|
|
53
|
+
private language;
|
|
54
|
+
private tools;
|
|
55
|
+
private modelDef;
|
|
56
|
+
private memoryStore;
|
|
57
|
+
private embeddingProvider;
|
|
58
|
+
private memoryMaxResults;
|
|
59
|
+
private config;
|
|
60
|
+
private configStore;
|
|
61
|
+
private sandbox;
|
|
62
|
+
private skillManager;
|
|
63
|
+
private integrationRegistry;
|
|
64
|
+
private scheduleStore;
|
|
65
|
+
private taskStore;
|
|
66
|
+
private desktopAdapter;
|
|
67
|
+
private browserManager;
|
|
68
|
+
private sessionBrowserManagers;
|
|
69
|
+
private teamRegistry;
|
|
70
|
+
private delegationStore;
|
|
71
|
+
private channelStore;
|
|
72
|
+
private teamStore;
|
|
73
|
+
private promptTemplateStore;
|
|
74
|
+
private channelManager;
|
|
75
|
+
private connectedChannels;
|
|
76
|
+
private lastConfigMtime;
|
|
77
|
+
private teamRegistryDirty;
|
|
78
|
+
private newSessionPending;
|
|
79
|
+
private unsubTeamChange;
|
|
80
|
+
private memoryExtractor;
|
|
81
|
+
private workerCoordinator;
|
|
82
|
+
private taskSubscriber;
|
|
83
|
+
/** Cleanup functions for HTTP MCP servers (keyed by session key). */
|
|
84
|
+
private mcpCleanups;
|
|
85
|
+
constructor(deps: AgentDeps);
|
|
86
|
+
/** Force an immediate config reload + channel reconciliation. */
|
|
87
|
+
forceConfigReload(): Promise<void>;
|
|
88
|
+
getSession(key: string): Session | undefined;
|
|
89
|
+
getStore(): SessionStore;
|
|
90
|
+
/** Called from channels (Telegram, Discord, etc.) */
|
|
91
|
+
handleMessage(msg: IncomingMessage, channel: Channel, agentId?: string): Promise<void>;
|
|
92
|
+
/** Deliver reply as text or voice based on TTS reply mode. */
|
|
93
|
+
private deliverReply;
|
|
94
|
+
/** Called from gateway RPC (WebSocket UI) */
|
|
95
|
+
handleGatewayMessage(sessionKey: string, text: string, agentId?: string, images?: string[]): Promise<string>;
|
|
96
|
+
/** Validate and bind an agentId to an existing session state. */
|
|
97
|
+
private applyAgentBinding;
|
|
98
|
+
/** Return teams for the UI picker. Reads from TeamStore for immediate visibility. */
|
|
99
|
+
getTeams(): TeamInfo[];
|
|
100
|
+
/** Abort current run for a session. */
|
|
101
|
+
abortSession(sessionKey: string): boolean;
|
|
102
|
+
/** Clear conversation history (memories are preserved across clears). */
|
|
103
|
+
clearSession(sessionKey: string): Promise<void>;
|
|
104
|
+
/** Clear old sessions while keeping the newest N sessions (optionally within a team). */
|
|
105
|
+
clearOldSessions(keepLatest: number, teamId?: string): Promise<number>;
|
|
106
|
+
/** Save one explicit fact into long-term memory for a session. */
|
|
107
|
+
rememberMemory(sessionKey: string, fact: string): Promise<SaveExplicitMemoryResult>;
|
|
108
|
+
/** Save one explicit fact from a channel command (team-aware). */
|
|
109
|
+
rememberChannelMemory(channelType: string, channelId: string, fact: string, teamId?: string): Promise<SaveExplicitMemoryResult>;
|
|
110
|
+
/** Auto-learn facts from the current session, optionally filtered by topic. */
|
|
111
|
+
learnMemory(sessionKey: string, topic?: string): Promise<LearnSessionMemoriesResult>;
|
|
112
|
+
/** Auto-learn facts from channel session context. */
|
|
113
|
+
learnChannelMemory(channelType: string, channelId: string, topic?: string, teamId?: string): Promise<LearnSessionMemoriesResult>;
|
|
114
|
+
/**
|
|
115
|
+
* Run a scheduled task in a persistent scheduler session. Returns the raw LLM reply.
|
|
116
|
+
* Serialized through the message queue to avoid races with human messages.
|
|
117
|
+
* The caller (Scheduler) handles [SKIP] detection and channel delivery.
|
|
118
|
+
*/
|
|
119
|
+
runScheduledTask(opts: {
|
|
120
|
+
prompt: string;
|
|
121
|
+
teamId: string;
|
|
122
|
+
integrations: string[];
|
|
123
|
+
}): Promise<string>;
|
|
124
|
+
/**
|
|
125
|
+
* Handle a human message sent to the scheduler session.
|
|
126
|
+
* Serialized via the message queue to avoid overlap with scheduled task executions.
|
|
127
|
+
*/
|
|
128
|
+
handleSchedulerMessage(teamId: string, text: string, senderInfo?: string): Promise<string>;
|
|
129
|
+
/** Get the scheduler session for a team (for history display). */
|
|
130
|
+
getSchedulerSession(teamId: string): Session | undefined;
|
|
131
|
+
/** Start initial channels based on current config. Called once at boot. */
|
|
132
|
+
initChannels(): Promise<void>;
|
|
133
|
+
/** Clean up sandbox containers. */
|
|
134
|
+
cleanupSandbox(): void;
|
|
135
|
+
/** Extract remaining facts from all active sessions (call before shutdown). */
|
|
136
|
+
flushMemories(): Promise<void>;
|
|
137
|
+
private getOrCreateSession;
|
|
138
|
+
/** Build tools, adapt for MCP providers, and run the inference loop. */
|
|
139
|
+
private buildAdaptAndRun;
|
|
140
|
+
/** Build the RunToolsDeps from current agent state (agentRegistry filled per-call). */
|
|
141
|
+
private buildRunToolsDeps;
|
|
142
|
+
/** Return all tool names available in the current config (for UI discovery). */
|
|
143
|
+
getToolNames(): string[];
|
|
144
|
+
/** Run the loop with compaction retries on context overflow. */
|
|
145
|
+
private runLoopWithRetry;
|
|
146
|
+
/** (Re)build team registry from TeamStore (or skip if no store). */
|
|
147
|
+
private rebuildTeamRegistry;
|
|
148
|
+
/** Reload config from disk so API key / model changes take effect immediately. */
|
|
149
|
+
private reloadConfig;
|
|
150
|
+
/**
|
|
151
|
+
* Build channel specs from config and reconcile with ChannelManager.
|
|
152
|
+
* Handlers use dynamic orchestrator lookup (reads this.config at call time)
|
|
153
|
+
* so orchestrator-only changes don't require a channel restart.
|
|
154
|
+
*/
|
|
155
|
+
private reconcileChannels;
|
|
156
|
+
/** Resolve a human-readable team label for logs/console (name preferred, falls back to ID). */
|
|
157
|
+
private teamLabel;
|
|
158
|
+
/** Build a human-readable session label for logs: replaces team UUID with team name. */
|
|
159
|
+
private sessionLabel;
|
|
160
|
+
private resolveLearningModel;
|
|
161
|
+
private buildPerSessionBrowserConfig;
|
|
162
|
+
private getRunBrowserManager;
|
|
163
|
+
private closeAllSessionBrowsers;
|
|
164
|
+
/** Enrich session index entry with team/agent name metadata for UI display. */
|
|
165
|
+
private enrichSessionMetadata;
|
|
166
|
+
private main;
|
|
167
|
+
}
|