@hailer/mcp 0.1.15 → 0.1.17
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/.claude/agents/agent-giuseppe-app-builder.md +7 -6
- package/.claude/agents/agent-lars-code-inspector.md +26 -14
- package/dist/agents/bot-manager.d.ts +48 -0
- package/dist/agents/bot-manager.js +254 -0
- package/dist/agents/factory.d.ts +150 -0
- package/dist/agents/factory.js +650 -0
- package/dist/agents/giuseppe/ai.d.ts +83 -0
- package/dist/agents/giuseppe/ai.js +466 -0
- package/dist/agents/giuseppe/bot.d.ts +110 -0
- package/dist/agents/giuseppe/bot.js +780 -0
- package/dist/agents/giuseppe/config.d.ts +25 -0
- package/dist/agents/giuseppe/config.js +227 -0
- package/dist/agents/giuseppe/files.d.ts +52 -0
- package/dist/agents/giuseppe/files.js +338 -0
- package/dist/agents/giuseppe/git.d.ts +48 -0
- package/dist/agents/giuseppe/git.js +298 -0
- package/dist/agents/giuseppe/index.d.ts +97 -0
- package/dist/agents/giuseppe/index.js +258 -0
- package/dist/agents/giuseppe/lsp.d.ts +113 -0
- package/dist/agents/giuseppe/lsp.js +485 -0
- package/dist/agents/giuseppe/monitor.d.ts +118 -0
- package/dist/agents/giuseppe/monitor.js +621 -0
- package/dist/agents/giuseppe/prompt.d.ts +5 -0
- package/dist/agents/giuseppe/prompt.js +94 -0
- package/dist/agents/giuseppe/registries/pending-classification.d.ts +28 -0
- package/dist/agents/giuseppe/registries/pending-classification.js +50 -0
- package/dist/agents/giuseppe/registries/pending-fix.d.ts +30 -0
- package/dist/agents/giuseppe/registries/pending-fix.js +42 -0
- package/dist/agents/giuseppe/registries/pending.d.ts +27 -0
- package/dist/agents/giuseppe/registries/pending.js +49 -0
- package/dist/agents/giuseppe/specialist.d.ts +47 -0
- package/dist/agents/giuseppe/specialist.js +237 -0
- package/dist/agents/giuseppe/types.d.ts +123 -0
- package/dist/agents/giuseppe/types.js +9 -0
- package/dist/agents/hailer-expert/index.d.ts +8 -0
- package/dist/agents/hailer-expert/index.js +14 -0
- package/dist/agents/hal/daemon.d.ts +142 -0
- package/dist/agents/hal/daemon.js +1103 -0
- package/dist/agents/hal/definitions.d.ts +55 -0
- package/dist/agents/hal/definitions.js +263 -0
- package/dist/agents/hal/index.d.ts +3 -0
- package/dist/agents/hal/index.js +8 -0
- package/dist/agents/index.d.ts +18 -0
- package/dist/agents/index.js +48 -0
- package/dist/agents/shared/base.d.ts +216 -0
- package/dist/agents/shared/base.js +846 -0
- package/dist/agents/shared/services/agent-registry.d.ts +107 -0
- package/dist/agents/shared/services/agent-registry.js +629 -0
- package/dist/agents/shared/services/conversation-manager.d.ts +50 -0
- package/dist/agents/shared/services/conversation-manager.js +136 -0
- package/dist/agents/shared/services/mcp-client.d.ts +56 -0
- package/dist/agents/shared/services/mcp-client.js +124 -0
- package/dist/agents/shared/services/message-classifier.d.ts +37 -0
- package/dist/agents/shared/services/message-classifier.js +187 -0
- package/dist/agents/shared/services/message-formatter.d.ts +89 -0
- package/dist/agents/shared/services/message-formatter.js +371 -0
- package/dist/agents/shared/services/session-logger.d.ts +106 -0
- package/dist/agents/shared/services/session-logger.js +446 -0
- package/dist/agents/shared/services/tool-executor.d.ts +41 -0
- package/dist/agents/shared/services/tool-executor.js +169 -0
- package/dist/agents/shared/services/workspace-schema-cache.d.ts +125 -0
- package/dist/agents/shared/services/workspace-schema-cache.js +578 -0
- package/dist/agents/shared/specialist.d.ts +91 -0
- package/dist/agents/shared/specialist.js +399 -0
- package/dist/agents/shared/tool-schema-loader.d.ts +62 -0
- package/dist/agents/shared/tool-schema-loader.js +232 -0
- package/dist/agents/shared/types.d.ts +327 -0
- package/dist/agents/shared/types.js +121 -0
- package/dist/app.js +21 -4
- package/dist/cli.js +0 -0
- package/dist/client/agents/orchestrator.d.ts +1 -0
- package/dist/client/agents/orchestrator.js +12 -1
- package/dist/commands/seed-config.d.ts +9 -0
- package/dist/commands/seed-config.js +372 -0
- package/dist/config.d.ts +10 -0
- package/dist/config.js +61 -1
- package/dist/core.d.ts +8 -0
- package/dist/core.js +137 -6
- package/dist/lib/discussion-lock.d.ts +42 -0
- package/dist/lib/discussion-lock.js +110 -0
- package/dist/mcp/UserContextCache.js +2 -2
- package/dist/mcp/hailer-clients.d.ts +15 -0
- package/dist/mcp/hailer-clients.js +100 -6
- package/dist/mcp/signal-handler.d.ts +16 -5
- package/dist/mcp/signal-handler.js +173 -122
- package/dist/mcp/tools/activity.js +9 -1
- package/dist/mcp/tools/bot-config.d.ts +184 -9
- package/dist/mcp/tools/bot-config.js +2177 -163
- package/dist/mcp/tools/giuseppe-tools.d.ts +21 -0
- package/dist/mcp/tools/giuseppe-tools.js +525 -0
- package/dist/mcp/utils/hailer-api-client.d.ts +42 -1
- package/dist/mcp/utils/hailer-api-client.js +128 -2
- package/dist/mcp/webhook-handler.d.ts +87 -0
- package/dist/mcp/webhook-handler.js +345 -0
- package/dist/mcp/workspace-cache.d.ts +5 -0
- package/dist/mcp/workspace-cache.js +11 -0
- package/dist/mcp-server.js +60 -5
- package/dist/modules/bug-reports/giuseppe-agent.d.ts +58 -0
- package/dist/modules/bug-reports/giuseppe-agent.js +467 -0
- package/dist/modules/bug-reports/giuseppe-ai.d.ts +25 -1
- package/dist/modules/bug-reports/giuseppe-ai.js +133 -2
- package/dist/modules/bug-reports/giuseppe-bot.d.ts +2 -2
- package/dist/modules/bug-reports/giuseppe-bot.js +66 -42
- package/dist/modules/bug-reports/giuseppe-daemon.d.ts +80 -0
- package/dist/modules/bug-reports/giuseppe-daemon.js +617 -0
- package/dist/modules/bug-reports/giuseppe-files.d.ts +12 -0
- package/dist/modules/bug-reports/giuseppe-files.js +37 -0
- package/dist/modules/bug-reports/giuseppe-lsp.d.ts +84 -13
- package/dist/modules/bug-reports/giuseppe-lsp.js +403 -61
- package/dist/modules/bug-reports/index.d.ts +1 -0
- package/dist/modules/bug-reports/index.js +31 -29
- package/package.json +3 -2
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent Registry Service
|
|
3
|
+
*
|
|
4
|
+
* Handles registration of agents in Hailer workspace workflows:
|
|
5
|
+
* - Agent Directory: Main registry of all bots
|
|
6
|
+
* - Positions: Job descriptions/roles
|
|
7
|
+
* - Teams: Groups of agents
|
|
8
|
+
* - Tool Registry: MCP server configurations
|
|
9
|
+
* - MCP Config: Per-agent MCP configuration
|
|
10
|
+
*
|
|
11
|
+
* WORKSPACE ISOLATION: Uses WorkspaceSchemaCacheService for dynamic ID lookup.
|
|
12
|
+
* Never relies on hardcoded IDs - each workspace has its own workflow IDs.
|
|
13
|
+
*/
|
|
14
|
+
import { Logger } from "../../../lib/logger";
|
|
15
|
+
import { McpToolCallback, ToolDefinition } from "../../shared/types";
|
|
16
|
+
import { WorkspaceSchemaCacheService } from "./workspace-schema-cache";
|
|
17
|
+
export interface AgentInfo {
|
|
18
|
+
firstName: string;
|
|
19
|
+
lastName: string;
|
|
20
|
+
description: string;
|
|
21
|
+
email: string;
|
|
22
|
+
userId: string;
|
|
23
|
+
}
|
|
24
|
+
export interface PositionDetails {
|
|
25
|
+
name: string;
|
|
26
|
+
purpose: string;
|
|
27
|
+
personaTone: string;
|
|
28
|
+
coreCapabilities: string;
|
|
29
|
+
boundaries: string;
|
|
30
|
+
}
|
|
31
|
+
export declare class AgentRegistryService {
|
|
32
|
+
private schemaCache;
|
|
33
|
+
private logger;
|
|
34
|
+
private callMcpTool;
|
|
35
|
+
private getDefaultTeamId;
|
|
36
|
+
private agentDirectoryId;
|
|
37
|
+
private positionId;
|
|
38
|
+
private teamId;
|
|
39
|
+
private toolRegistryId;
|
|
40
|
+
private mcpConfigId;
|
|
41
|
+
constructor(schemaCache: WorkspaceSchemaCacheService, logger: Logger, callMcpTool: McpToolCallback, getDefaultTeamId: () => string | undefined);
|
|
42
|
+
/**
|
|
43
|
+
* Load registration data - always returns false to force fresh Hailer lookup
|
|
44
|
+
* Kept for API compatibility with base.ts
|
|
45
|
+
*/
|
|
46
|
+
loadFromCache(_userId: string, _workspaceId: string): Promise<boolean>;
|
|
47
|
+
/**
|
|
48
|
+
* Get agent directory ID
|
|
49
|
+
*/
|
|
50
|
+
getAgentDirectoryId(): string | null;
|
|
51
|
+
/**
|
|
52
|
+
* Get position ID
|
|
53
|
+
*/
|
|
54
|
+
getPositionId(): string | null;
|
|
55
|
+
/**
|
|
56
|
+
* Get team ID
|
|
57
|
+
*/
|
|
58
|
+
getTeamId(): string | null;
|
|
59
|
+
/**
|
|
60
|
+
* Register all agent data across all workflows
|
|
61
|
+
* Uses schemaCache for dynamic workflow ID lookup
|
|
62
|
+
*/
|
|
63
|
+
registerAllAgentData(agentInfo: AgentInfo, positionDetails: PositionDetails, mcpServerUrl: string, toolIndex: ToolDefinition[], workspaceId: string): Promise<void>;
|
|
64
|
+
/**
|
|
65
|
+
* Register this agent in the Agent Directory
|
|
66
|
+
* Uses dynamic schema lookup for workflow/field IDs
|
|
67
|
+
*/
|
|
68
|
+
private registerAgentInDirectory;
|
|
69
|
+
/**
|
|
70
|
+
* Find phase ID by trying multiple names (case insensitive, partial match)
|
|
71
|
+
*/
|
|
72
|
+
private findPhaseId;
|
|
73
|
+
/**
|
|
74
|
+
* Find existing agent entry by hailerProfile (userId) - most reliable method
|
|
75
|
+
*/
|
|
76
|
+
private findAgentByUserId;
|
|
77
|
+
/**
|
|
78
|
+
* Parse first activity from list_activities response
|
|
79
|
+
*/
|
|
80
|
+
private parseFirstActivity;
|
|
81
|
+
/**
|
|
82
|
+
* Register/find shared Team for AI agents
|
|
83
|
+
*/
|
|
84
|
+
private registerTeam;
|
|
85
|
+
/**
|
|
86
|
+
* Register MCP server in Tool Registry (per-agent)
|
|
87
|
+
*/
|
|
88
|
+
private registerToolRegistry;
|
|
89
|
+
/**
|
|
90
|
+
* Register Position for this agent
|
|
91
|
+
*/
|
|
92
|
+
private registerPosition;
|
|
93
|
+
/**
|
|
94
|
+
* Register MCP Config for this agent
|
|
95
|
+
*/
|
|
96
|
+
private registerMcpConfig;
|
|
97
|
+
/**
|
|
98
|
+
* Link Agent Directory entry to Position and Team
|
|
99
|
+
*/
|
|
100
|
+
private linkAgentToPositionAndTeam;
|
|
101
|
+
/**
|
|
102
|
+
* Extract activity ID from MCP tool response text
|
|
103
|
+
* Specifically looks for created activity IDs, not workflow IDs
|
|
104
|
+
*/
|
|
105
|
+
private extractActivityId;
|
|
106
|
+
}
|
|
107
|
+
//# sourceMappingURL=agent-registry.d.ts.map
|