@johpaz/hive-sdk 0.0.2 → 0.0.4
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/agents/index.d.ts +15 -15
- package/dist/agents/index.js +11 -11
- package/dist/channels/index.d.ts +7 -7
- package/dist/channels/index.js +6 -6
- package/dist/cron/index.d.ts +2 -2
- package/dist/cron/index.js +2 -2
- package/dist/database/index.d.ts +5 -5
- package/dist/database/index.js +5 -5
- package/dist/ethics/index.d.ts +1 -1
- package/dist/ethics/index.js +1 -1
- package/dist/index.d.ts +15 -9
- package/dist/index.js +63 -42
- package/dist/mcp/index.d.ts +14 -0
- package/dist/mcp/index.js +8 -0
- package/dist/skills/index.d.ts +12 -0
- package/dist/skills/index.js +10 -0
- package/dist/tools/index.d.ts +11 -11
- package/dist/tools/index.js +11 -11
- package/dist/types/index.d.ts +8 -8
- package/package.json +10 -6
- package/src/agents/index.ts +15 -15
- package/src/channels/index.ts +7 -7
- package/src/cron/index.ts +3 -2
- package/src/database/index.ts +5 -5
- package/src/ethics/index.ts +1 -1
- package/src/index.ts +245 -13
- package/src/mcp/index.ts +3 -3
- package/src/skills/index.ts +1 -1
- package/src/tools/index.ts +11 -11
- package/src/types/index.ts +8 -8
package/dist/tools/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import {
|
|
4
4
|
createAllTools,
|
|
5
5
|
createToolsByCategory
|
|
6
|
-
} from "@johpaz/hive-agents/tools
|
|
6
|
+
} from "@johpaz/hive-agents-core/tools";
|
|
7
7
|
import {
|
|
8
8
|
fsEditTool,
|
|
9
9
|
fsReadTool,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
fsListTool,
|
|
13
13
|
fsGlobTool,
|
|
14
14
|
fsExistsTool
|
|
15
|
-
} from "@johpaz/hive-agents/tools/filesystem
|
|
15
|
+
} from "@johpaz/hive-agents-core/tools/filesystem";
|
|
16
16
|
import {
|
|
17
17
|
webSearchTool,
|
|
18
18
|
webFetchTool,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
browserScreenshotTool,
|
|
21
21
|
browserClickTool,
|
|
22
22
|
browserTypeTool
|
|
23
|
-
} from "@johpaz/hive-agents/tools/web
|
|
23
|
+
} from "@johpaz/hive-agents-core/tools/web";
|
|
24
24
|
import {
|
|
25
25
|
projectCreateTool,
|
|
26
26
|
projectListTool,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
taskCreateTool,
|
|
31
31
|
taskUpdateTool,
|
|
32
32
|
taskEvaluateTool
|
|
33
|
-
} from "@johpaz/hive-agents/tools/projects
|
|
33
|
+
} from "@johpaz/hive-agents-core/tools/projects";
|
|
34
34
|
import {
|
|
35
35
|
cronAddTool,
|
|
36
36
|
cronListTool,
|
|
@@ -38,8 +38,8 @@ import {
|
|
|
38
38
|
cronRemoveTool,
|
|
39
39
|
initCronScheduler,
|
|
40
40
|
resolveBestChannel
|
|
41
|
-
} from "@johpaz/hive-agents/tools/cron
|
|
42
|
-
import { cliExecTool } from "@johpaz/hive-agents/tools/cli
|
|
41
|
+
} from "@johpaz/hive-agents-core/tools/cron";
|
|
42
|
+
import { cliExecTool } from "@johpaz/hive-agents-core/tools/cli";
|
|
43
43
|
import {
|
|
44
44
|
memoryWriteTool,
|
|
45
45
|
memoryReadTool,
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
busPublishTool,
|
|
56
56
|
busReadTool,
|
|
57
57
|
projectUpdatesTool
|
|
58
|
-
} from "@johpaz/hive-agents/tools/agents
|
|
58
|
+
} from "@johpaz/hive-agents-core/tools/agents";
|
|
59
59
|
import {
|
|
60
60
|
canvasRenderTool,
|
|
61
61
|
canvasAskTool,
|
|
@@ -64,23 +64,23 @@ import {
|
|
|
64
64
|
canvasShowProgressTool,
|
|
65
65
|
canvasShowListTool,
|
|
66
66
|
canvasClearTool
|
|
67
|
-
} from "@johpaz/hive-agents/tools/canvas
|
|
67
|
+
} from "@johpaz/hive-agents-core/tools/canvas";
|
|
68
68
|
import {
|
|
69
69
|
codebridgeLaunchTool,
|
|
70
70
|
codebridgeStatusTool,
|
|
71
71
|
codebridgeCancelTool,
|
|
72
72
|
codebridgeFeedbackTool
|
|
73
|
-
} from "@johpaz/hive-agents/tools/codebridge
|
|
73
|
+
} from "@johpaz/hive-agents-core/tools/codebridge";
|
|
74
74
|
import {
|
|
75
75
|
voiceTranscribeTool,
|
|
76
76
|
voiceSpeakTool
|
|
77
|
-
} from "@johpaz/hive-agents/tools/voice
|
|
77
|
+
} from "@johpaz/hive-agents-core/tools/voice";
|
|
78
78
|
import {
|
|
79
79
|
searchKnowledgeTool,
|
|
80
80
|
notifyTool,
|
|
81
81
|
saveNoteTool,
|
|
82
82
|
reportProgressTool
|
|
83
|
-
} from "@johpaz/hive-agents/tools/core
|
|
83
|
+
} from "@johpaz/hive-agents-core/tools/core";
|
|
84
84
|
export {
|
|
85
85
|
webSearchTool,
|
|
86
86
|
webFetchTool,
|
package/dist/types/index.d.ts
CHANGED
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
* @example
|
|
8
8
|
* import type { StoredMessage, LLMMessage } from "@johpaz/hive-agents-sdk/types";
|
|
9
9
|
*/
|
|
10
|
-
export type { AgentDBRecord, AgentServiceConfig, } from "@johpaz/hive-agents/agent/service";
|
|
11
|
-
export type { AgentLoopOptions, StepEvent, StreamChunk, } from "@johpaz/hive-agents/agent/agent-loop";
|
|
12
|
-
export type { LLMMessage, LLMResponse, LLMCallOptions, LLMToolCall, } from "@johpaz/hive-agents/agent/llm-client";
|
|
13
|
-
export type { OutboundMessage, IncomingMessage, ChannelConfig, IChannel, } from "@johpaz/hive-agents/channels/base";
|
|
14
|
-
export type { MCPTool, MCPResource, MCPPrompt, } from "@johpaz/hive-agents
|
|
15
|
-
export type { MCPConfig, MCPServerConfig, } from "@johpaz/hive-agents
|
|
16
|
-
export type { Skill, SkillMetadata, SkillStep, SkillExample, OutputFormat, SkillsConfig, } from "@johpaz/hive-agents
|
|
17
|
-
export type { StoredMessage, } from "@johpaz/hive-agents/agent/conversation-store";
|
|
10
|
+
export type { AgentDBRecord, AgentServiceConfig, } from "@johpaz/hive-agents-core/agent/service";
|
|
11
|
+
export type { AgentLoopOptions, StepEvent, StreamChunk, } from "@johpaz/hive-agents-core/agent/agent-loop";
|
|
12
|
+
export type { LLMMessage, LLMResponse, LLMCallOptions, LLMToolCall, } from "@johpaz/hive-agents-core/agent/llm-client";
|
|
13
|
+
export type { OutboundMessage, IncomingMessage, ChannelConfig, IChannel, } from "@johpaz/hive-agents-core/channels/base";
|
|
14
|
+
export type { MCPTool, MCPResource, MCPPrompt, } from "@johpaz/hive-agents-mcp/manager";
|
|
15
|
+
export type { MCPConfig, MCPServerConfig, } from "@johpaz/hive-agents-mcp/config";
|
|
16
|
+
export type { Skill, SkillMetadata, SkillStep, SkillExample, OutputFormat, SkillsConfig, } from "@johpaz/hive-agents-skills/loader";
|
|
17
|
+
export type { StoredMessage, } from "@johpaz/hive-agents-core/agent/conversation-store";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@johpaz/hive-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "Hive SDK - Build on top of Hive for enterprise and custom integrations",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -13,22 +13,26 @@
|
|
|
13
13
|
],
|
|
14
14
|
"type": "module",
|
|
15
15
|
"scripts": {
|
|
16
|
-
"build": "bun build src/index.ts src/agents/index.ts src/tools/index.ts src/skills/index.ts src/mcp/index.ts src/channels/index.ts src/cron/index.ts src/ethics/index.ts src/database/index.ts src/types/index.ts --outdir dist --target bun --packages external && bunx tsc -p tsconfig.build.json && cp -r dist/src/. dist/ && cp -r dist/sdk/src/. dist/ && rm -rf dist/src dist/sdk
|
|
16
|
+
"build": "bun build src/index.ts src/agents/index.ts src/tools/index.ts src/skills/index.ts src/mcp/index.ts src/channels/index.ts src/cron/index.ts src/ethics/index.ts src/database/index.ts src/types/index.ts --outdir dist --target bun --packages external && bunx tsc -p tsconfig.build.json && cp -r dist/src/. dist/ && cp -r dist/sdk/src/. dist/ && rm -rf dist/src dist/sdk",
|
|
17
17
|
"prepublishOnly": "bun run build",
|
|
18
18
|
"test": "bun test",
|
|
19
19
|
"typecheck": "tsc --noEmit",
|
|
20
20
|
"lint": "tsc --noEmit"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"
|
|
24
|
-
|
|
23
|
+
"typescript": "^5.0.0"
|
|
24
|
+
},
|
|
25
|
+
"peerDependenciesMeta": {
|
|
26
|
+
"typescript": {
|
|
27
|
+
"optional": true
|
|
28
|
+
}
|
|
25
29
|
},
|
|
26
30
|
"dependencies": {
|
|
27
31
|
"zod": "latest"
|
|
28
32
|
},
|
|
29
33
|
"devDependencies": {
|
|
30
34
|
"@types/bun": "latest",
|
|
31
|
-
"typescript": "
|
|
35
|
+
"typescript": "^5.0.0"
|
|
32
36
|
},
|
|
33
37
|
"exports": {
|
|
34
38
|
".": {
|
|
@@ -85,4 +89,4 @@
|
|
|
85
89
|
"type": "git",
|
|
86
90
|
"url": "git+https://github.com/johpaz/hive.git"
|
|
87
91
|
}
|
|
88
|
-
}
|
|
92
|
+
}
|
package/src/agents/index.ts
CHANGED
|
@@ -14,33 +14,33 @@
|
|
|
14
14
|
* });
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
export { AgentService, getAgentService, createAgentService } from "@johpaz/hive-agents/agent/service";
|
|
17
|
+
export { AgentService, getAgentService, createAgentService } from "@johpaz/hive-agents-core/agent/service";
|
|
18
18
|
|
|
19
|
-
export type { AgentServiceConfig, AgentDBRecord } from "@johpaz/hive-agents/agent/service";
|
|
19
|
+
export type { AgentServiceConfig, AgentDBRecord } from "@johpaz/hive-agents-core/agent/service";
|
|
20
20
|
|
|
21
|
-
export { runAgent, runAgentIsolated, rebuildAgentLoop, getAgentLoop } from "@johpaz/hive-agents/agent/agent-loop";
|
|
21
|
+
export { runAgent, runAgentIsolated, rebuildAgentLoop, getAgentLoop } from "@johpaz/hive-agents-core/agent/agent-loop";
|
|
22
22
|
|
|
23
|
-
export type { AgentLoopOptions, StepEvent, StreamChunk } from "@johpaz/hive-agents/agent/agent-loop";
|
|
23
|
+
export type { AgentLoopOptions, StepEvent, StreamChunk } from "@johpaz/hive-agents-core/agent/agent-loop";
|
|
24
24
|
|
|
25
|
-
export { compileContext } from "@johpaz/hive-agents/agent/context-compiler";
|
|
25
|
+
export { compileContext } from "@johpaz/hive-agents-core/agent/context-compiler";
|
|
26
26
|
|
|
27
|
-
export { buildSystemPromptWithProjects } from "@johpaz/hive-agents/agent/prompt-builder";
|
|
27
|
+
export { buildSystemPromptWithProjects } from "@johpaz/hive-agents-core/agent/prompt-builder";
|
|
28
28
|
|
|
29
|
-
export { addMessage, getHistory, getRecentMessages, getMessageCount, getTotalTokens, getMessagesAfter } from "@johpaz/hive-agents/agent/conversation-store";
|
|
29
|
+
export { addMessage, getHistory, getRecentMessages, getMessageCount, getTotalTokens, getMessagesAfter } from "@johpaz/hive-agents-core/agent/conversation-store";
|
|
30
30
|
|
|
31
|
-
export type { StoredMessage } from "@johpaz/hive-agents/agent/conversation-store";
|
|
31
|
+
export type { StoredMessage } from "@johpaz/hive-agents-core/agent/conversation-store";
|
|
32
32
|
|
|
33
|
-
export { selectTools } from "@johpaz/hive-agents/agent/tool-selector";
|
|
33
|
+
export { selectTools } from "@johpaz/hive-agents-core/agent/tool-selector";
|
|
34
34
|
|
|
35
|
-
export { selectSkills } from "@johpaz/hive-agents/agent/skill-selector";
|
|
35
|
+
export { selectSkills } from "@johpaz/hive-agents-core/agent/skill-selector";
|
|
36
36
|
|
|
37
|
-
export { selectPlaybookRules } from "@johpaz/hive-agents/agent/playbook-selector";
|
|
37
|
+
export { selectPlaybookRules } from "@johpaz/hive-agents-core/agent/playbook-selector";
|
|
38
38
|
|
|
39
|
-
export { callLLM, resolveProviderConfig } from "@johpaz/hive-agents/agent/llm-client";
|
|
39
|
+
export { callLLM, resolveProviderConfig } from "@johpaz/hive-agents-core/agent/llm-client";
|
|
40
40
|
|
|
41
|
-
export type { LLMMessage, LLMResponse, LLMCallOptions, LLMToolCall } from "@johpaz/hive-agents/agent/llm-client";
|
|
41
|
+
export type { LLMMessage, LLMResponse, LLMCallOptions, LLMToolCall } from "@johpaz/hive-agents-core/agent/llm-client";
|
|
42
42
|
|
|
43
|
-
export { resolveAgentId, resolveUserId } from "@johpaz/hive-agents/storage/onboarding";
|
|
43
|
+
export { resolveAgentId, resolveUserId } from "@johpaz/hive-agents-core/storage/onboarding";
|
|
44
44
|
|
|
45
45
|
export {
|
|
46
46
|
memoryWriteTool,
|
|
@@ -58,4 +58,4 @@ export {
|
|
|
58
58
|
busReadTool,
|
|
59
59
|
projectUpdatesTool,
|
|
60
60
|
createTools as createAgentTools,
|
|
61
|
-
} from "@johpaz/hive-agents/tools/agents
|
|
61
|
+
} from "@johpaz/hive-agents-core/tools/agents";
|
package/src/channels/index.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* const manager = new ChannelManager(config);
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
export { ChannelManager } from "@johpaz/hive-agents/channels/manager";
|
|
13
|
+
export { ChannelManager } from "@johpaz/hive-agents-core/channels/manager";
|
|
14
14
|
|
|
15
15
|
export type {
|
|
16
16
|
OutboundMessage,
|
|
@@ -18,14 +18,14 @@ export type {
|
|
|
18
18
|
ChannelConfig,
|
|
19
19
|
IChannel,
|
|
20
20
|
MessageHandler,
|
|
21
|
-
} from "@johpaz/hive-agents/channels/base";
|
|
21
|
+
} from "@johpaz/hive-agents-core/channels/base";
|
|
22
22
|
|
|
23
|
-
export { TelegramChannel, type TelegramConfig } from "@johpaz/hive-agents/channels/telegram";
|
|
23
|
+
export { TelegramChannel, type TelegramConfig } from "@johpaz/hive-agents-core/channels/telegram";
|
|
24
24
|
|
|
25
|
-
export { DiscordChannel, type DiscordConfig } from "@johpaz/hive-agents/channels/discord";
|
|
25
|
+
export { DiscordChannel, type DiscordConfig } from "@johpaz/hive-agents-core/channels/discord";
|
|
26
26
|
|
|
27
|
-
export { WhatsAppChannel, type WhatsAppConfig, type WhatsAppConnectionState } from "@johpaz/hive-agents/channels/whatsapp";
|
|
27
|
+
export { WhatsAppChannel, type WhatsAppConfig, type WhatsAppConnectionState } from "@johpaz/hive-agents-core/channels/whatsapp";
|
|
28
28
|
|
|
29
|
-
export { SlackChannel, type SlackConfig, type SlackConnectionState } from "@johpaz/hive-agents/channels/slack";
|
|
29
|
+
export { SlackChannel, type SlackConfig, type SlackConnectionState } from "@johpaz/hive-agents-core/channels/slack";
|
|
30
30
|
|
|
31
|
-
export { WebChatChannel, type WebChatConfig } from "@johpaz/hive-agents/channels/webchat";
|
|
31
|
+
export { WebChatChannel, type WebChatConfig } from "@johpaz/hive-agents-core/channels/webchat";
|
package/src/cron/index.ts
CHANGED
|
@@ -23,9 +23,10 @@ export {
|
|
|
23
23
|
scheduleHistoryTool,
|
|
24
24
|
createTools as createScheduleTools,
|
|
25
25
|
setSchedulerInstance,
|
|
26
|
-
} from "@johpaz/hive-agents/tools/schedule";
|
|
26
|
+
} from "@johpaz/hive-agents-core/tools/schedule";
|
|
27
27
|
|
|
28
28
|
// Legacy cron tools (cron_jobs table) - re-export for backward compatibility
|
|
29
|
+
// Note: These are also available via @johpaz/hive-agents-sdk/tools
|
|
29
30
|
export {
|
|
30
31
|
cronAddTool,
|
|
31
32
|
cronListTool,
|
|
@@ -34,4 +35,4 @@ export {
|
|
|
34
35
|
createTools as createCronTools,
|
|
35
36
|
initCronScheduler,
|
|
36
37
|
resolveBestChannel,
|
|
37
|
-
} from "@johpaz/hive-agents/tools/cron";
|
|
38
|
+
} from "@johpaz/hive-agents-core/tools/cron";
|
package/src/database/index.ts
CHANGED
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
* const db = getDb();
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
|
-
export { getDb, initializeDatabase, getDbPathLazy, dbService } from "@johpaz/hive-agents/storage/sqlite";
|
|
16
|
+
export { getDb, initializeDatabase, getDbPathLazy, dbService } from "@johpaz/hive-agents-core/storage/sqlite";
|
|
17
17
|
|
|
18
|
-
export { SCHEMA, PROJECTS_SCHEMA, CONTEXT_ENGINE_SCHEMA } from "@johpaz/hive-agents/storage/schema";
|
|
18
|
+
export { SCHEMA, PROJECTS_SCHEMA, CONTEXT_ENGINE_SCHEMA } from "@johpaz/hive-agents-core/storage/schema";
|
|
19
19
|
|
|
20
|
-
export { seedAllData, seedToolsAndSkills, getAllElements, getActiveElements } from "@johpaz/hive-agents/storage/seed";
|
|
20
|
+
export { seedAllData, seedToolsAndSkills, getAllElements, getActiveElements } from "@johpaz/hive-agents-core/storage/seed";
|
|
21
21
|
|
|
22
|
-
export { encrypt, decrypt, encryptApiKey, decryptApiKey, encryptConfig, decryptConfig, hashPassword, verifyPassword, maskApiKey } from "@johpaz/hive-agents/storage/crypto";
|
|
22
|
+
export { encrypt, decrypt, encryptApiKey, decryptApiKey, encryptConfig, decryptConfig, hashPassword, verifyPassword, maskApiKey } from "@johpaz/hive-agents-core/storage/crypto";
|
|
23
23
|
|
|
24
24
|
export {
|
|
25
25
|
getAllProviders,
|
|
@@ -38,4 +38,4 @@ export {
|
|
|
38
38
|
getCoordinatorAgentId,
|
|
39
39
|
getDefaultAgentId,
|
|
40
40
|
getAgentConfig,
|
|
41
|
-
} from "@johpaz/hive-agents/storage/onboarding";
|
|
41
|
+
} from "@johpaz/hive-agents-core/storage/onboarding";
|
package/src/ethics/index.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @johpaz/hive-agents-sdk
|
|
3
|
-
*
|
|
3
|
+
*
|
|
4
4
|
* Hive SDK - Build on top of Hive for enterprise and custom integrations.
|
|
5
|
-
*
|
|
5
|
+
*
|
|
6
6
|
* This package exposes all internal Hive functionality as a clean, organized API
|
|
7
7
|
* for developers who want to build on top of Hive, including hive-cloud Enterprise.
|
|
8
|
-
*
|
|
8
|
+
*
|
|
9
9
|
* @example
|
|
10
10
|
* import { runAgent, AgentService } from "@johpaz/hive-agents-sdk/agents";
|
|
11
11
|
* import { createAllTools } from "@johpaz/hive-agents-sdk/tools";
|
|
@@ -13,19 +13,251 @@
|
|
|
13
13
|
* import { MCPClientManager } from "@johpaz/hive-agents-sdk/mcp";
|
|
14
14
|
* import { ChannelManager } from "@johpaz/hive-agents-sdk/channels";
|
|
15
15
|
* import { getDb, initDatabase } from "@johpaz/hive-agents-sdk/database";
|
|
16
|
-
*
|
|
16
|
+
*
|
|
17
17
|
* // Or import everything
|
|
18
18
|
* import * as HiveSDK from "@johpaz/hive-agents-sdk";
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
export
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
21
|
+
// Agents
|
|
22
|
+
export {
|
|
23
|
+
AgentService,
|
|
24
|
+
getAgentService,
|
|
25
|
+
createAgentService,
|
|
26
|
+
runAgent,
|
|
27
|
+
runAgentIsolated,
|
|
28
|
+
rebuildAgentLoop,
|
|
29
|
+
getAgentLoop,
|
|
30
|
+
compileContext,
|
|
31
|
+
buildSystemPromptWithProjects,
|
|
32
|
+
addMessage,
|
|
33
|
+
getHistory,
|
|
34
|
+
getRecentMessages,
|
|
35
|
+
getMessageCount,
|
|
36
|
+
getTotalTokens,
|
|
37
|
+
getMessagesAfter,
|
|
38
|
+
selectTools,
|
|
39
|
+
selectSkills,
|
|
40
|
+
selectPlaybookRules,
|
|
41
|
+
callLLM,
|
|
42
|
+
resolveProviderConfig,
|
|
43
|
+
resolveAgentId,
|
|
44
|
+
resolveUserId,
|
|
45
|
+
memoryWriteTool as agentMemoryWriteTool,
|
|
46
|
+
memoryReadTool as agentMemoryReadTool,
|
|
47
|
+
memoryListTool as agentMemoryListTool,
|
|
48
|
+
memorySearchTool as agentMemorySearchTool,
|
|
49
|
+
memoryDeleteTool as agentMemoryDeleteTool,
|
|
50
|
+
agentCreateTool,
|
|
51
|
+
agentFindTool,
|
|
52
|
+
agentArchiveTool,
|
|
53
|
+
taskDelegateTool,
|
|
54
|
+
taskDelegateCodeTool,
|
|
55
|
+
taskStatusTool,
|
|
56
|
+
busPublishTool,
|
|
57
|
+
busReadTool,
|
|
58
|
+
projectUpdatesTool,
|
|
59
|
+
createAgentTools,
|
|
60
|
+
} from "./agents/index";
|
|
61
|
+
|
|
62
|
+
export type {
|
|
63
|
+
AgentServiceConfig,
|
|
64
|
+
AgentDBRecord,
|
|
65
|
+
AgentLoopOptions,
|
|
66
|
+
StepEvent,
|
|
67
|
+
StreamChunk,
|
|
68
|
+
LLMMessage,
|
|
69
|
+
LLMResponse,
|
|
70
|
+
LLMCallOptions,
|
|
71
|
+
LLMToolCall,
|
|
72
|
+
StoredMessage,
|
|
73
|
+
} from "./agents/index";
|
|
74
|
+
|
|
75
|
+
// Tools
|
|
76
|
+
export {
|
|
77
|
+
createAllTools,
|
|
78
|
+
createToolsByCategory,
|
|
79
|
+
fsEditTool,
|
|
80
|
+
fsReadTool,
|
|
81
|
+
fsWriteTool,
|
|
82
|
+
fsDeleteTool,
|
|
83
|
+
fsListTool,
|
|
84
|
+
fsGlobTool,
|
|
85
|
+
fsExistsTool,
|
|
86
|
+
webSearchTool,
|
|
87
|
+
webFetchTool,
|
|
88
|
+
browserNavigateTool,
|
|
89
|
+
browserScreenshotTool,
|
|
90
|
+
browserClickTool,
|
|
91
|
+
browserTypeTool,
|
|
92
|
+
projectCreateTool,
|
|
93
|
+
projectListTool,
|
|
94
|
+
projectUpdateTool,
|
|
95
|
+
projectDoneTool,
|
|
96
|
+
projectFailTool,
|
|
97
|
+
taskCreateTool,
|
|
98
|
+
taskUpdateTool,
|
|
99
|
+
taskEvaluateTool,
|
|
100
|
+
cronAddTool,
|
|
101
|
+
cronListTool,
|
|
102
|
+
cronEditTool,
|
|
103
|
+
cronRemoveTool,
|
|
104
|
+
initCronScheduler,
|
|
105
|
+
resolveBestChannel,
|
|
106
|
+
cliExecTool,
|
|
107
|
+
canvasRenderTool,
|
|
108
|
+
canvasAskTool,
|
|
109
|
+
canvasConfirmTool,
|
|
110
|
+
canvasShowCardTool,
|
|
111
|
+
canvasShowProgressTool,
|
|
112
|
+
canvasShowListTool,
|
|
113
|
+
canvasClearTool,
|
|
114
|
+
codebridgeLaunchTool,
|
|
115
|
+
codebridgeStatusTool,
|
|
116
|
+
codebridgeCancelTool,
|
|
117
|
+
codebridgeFeedbackTool,
|
|
118
|
+
voiceTranscribeTool,
|
|
119
|
+
voiceSpeakTool,
|
|
120
|
+
searchKnowledgeTool,
|
|
121
|
+
notifyTool,
|
|
122
|
+
saveNoteTool,
|
|
123
|
+
reportProgressTool,
|
|
124
|
+
} from "./tools/index";
|
|
125
|
+
|
|
126
|
+
export type { Tool, ToolResult } from "./tools/index";
|
|
127
|
+
|
|
128
|
+
// Skills
|
|
129
|
+
export { SkillLoader, createSkillLoader } from "./skills/index";
|
|
130
|
+
|
|
131
|
+
export type {
|
|
132
|
+
SkillsConfig,
|
|
133
|
+
Config,
|
|
134
|
+
SkillStep,
|
|
135
|
+
OutputFormat,
|
|
136
|
+
SkillExample,
|
|
137
|
+
SkillMetadata,
|
|
138
|
+
Skill,
|
|
139
|
+
} from "./skills/index";
|
|
140
|
+
|
|
141
|
+
// MCP
|
|
142
|
+
export { MCPClientManager, logger } from "./mcp/index";
|
|
143
|
+
|
|
144
|
+
export type {
|
|
145
|
+
MCPTool,
|
|
146
|
+
MCPResource,
|
|
147
|
+
MCPPrompt,
|
|
148
|
+
MCPConfig,
|
|
149
|
+
MCPServerConfig,
|
|
150
|
+
} from "./mcp/index";
|
|
151
|
+
|
|
152
|
+
// Channels
|
|
153
|
+
export {
|
|
154
|
+
ChannelManager,
|
|
155
|
+
TelegramChannel,
|
|
156
|
+
DiscordChannel,
|
|
157
|
+
WhatsAppChannel,
|
|
158
|
+
SlackChannel,
|
|
159
|
+
WebChatChannel,
|
|
160
|
+
} from "./channels/index";
|
|
161
|
+
|
|
162
|
+
export type {
|
|
163
|
+
OutboundMessage,
|
|
164
|
+
IncomingMessage,
|
|
165
|
+
ChannelConfig,
|
|
166
|
+
IChannel,
|
|
167
|
+
MessageHandler,
|
|
168
|
+
TelegramConfig,
|
|
169
|
+
DiscordConfig,
|
|
170
|
+
WhatsAppConfig,
|
|
171
|
+
WhatsAppConnectionState,
|
|
172
|
+
SlackConfig,
|
|
173
|
+
SlackConnectionState,
|
|
174
|
+
WebChatConfig,
|
|
175
|
+
} from "./channels/index";
|
|
176
|
+
|
|
177
|
+
// Cron
|
|
178
|
+
export {
|
|
179
|
+
scheduleCreateTool,
|
|
180
|
+
scheduleListTool,
|
|
181
|
+
schedulePauseTool,
|
|
182
|
+
scheduleResumeTool,
|
|
183
|
+
scheduleDeleteTool,
|
|
184
|
+
scheduleTriggerTool,
|
|
185
|
+
scheduleHistoryTool,
|
|
186
|
+
createScheduleTools,
|
|
187
|
+
setSchedulerInstance,
|
|
188
|
+
createCronTools,
|
|
189
|
+
} from "./cron/index";
|
|
190
|
+
|
|
191
|
+
// Ethics
|
|
192
|
+
export { getAllEthics, activateEthics } from "./ethics/index";
|
|
193
|
+
|
|
194
|
+
// Database
|
|
195
|
+
export {
|
|
196
|
+
getDb,
|
|
197
|
+
initializeDatabase,
|
|
198
|
+
getDbPathLazy,
|
|
199
|
+
dbService,
|
|
200
|
+
seedAllData,
|
|
201
|
+
seedToolsAndSkills,
|
|
202
|
+
getAllElements,
|
|
203
|
+
getActiveElements,
|
|
204
|
+
encrypt,
|
|
205
|
+
decrypt,
|
|
206
|
+
encryptApiKey,
|
|
207
|
+
decryptApiKey,
|
|
208
|
+
encryptConfig,
|
|
209
|
+
decryptConfig,
|
|
210
|
+
hashPassword,
|
|
211
|
+
verifyPassword,
|
|
212
|
+
maskApiKey,
|
|
213
|
+
getAllProviders,
|
|
214
|
+
getAllModels,
|
|
215
|
+
getAllCodeBridge,
|
|
216
|
+
getAllSkills,
|
|
217
|
+
getAllDbTools,
|
|
218
|
+
getAllMcpServers,
|
|
219
|
+
getAllChannels,
|
|
220
|
+
getActiveTools,
|
|
221
|
+
getUserAgents,
|
|
222
|
+
getSingleUserId,
|
|
223
|
+
getCoordinatorAgentId,
|
|
224
|
+
getDefaultAgentId,
|
|
225
|
+
getAgentConfig,
|
|
226
|
+
} from "./database/index";
|
|
227
|
+
|
|
228
|
+
export type {
|
|
229
|
+
SCHEMA,
|
|
230
|
+
PROJECTS_SCHEMA,
|
|
231
|
+
CONTEXT_ENGINE_SCHEMA,
|
|
232
|
+
} from "./database/index";
|
|
233
|
+
|
|
234
|
+
// Types
|
|
235
|
+
export type {
|
|
236
|
+
AgentDBRecord as AgentDBRecordType,
|
|
237
|
+
AgentServiceConfig as AgentServiceConfigType,
|
|
238
|
+
AgentLoopOptions as AgentLoopOptionsType,
|
|
239
|
+
StepEvent as StepEventType,
|
|
240
|
+
StreamChunk as StreamChunkType,
|
|
241
|
+
LLMMessage as LLMMessageType,
|
|
242
|
+
LLMResponse as LLMResponseType,
|
|
243
|
+
LLMCallOptions as LLMCallOptionsType,
|
|
244
|
+
LLMToolCall as LLMToolCallType,
|
|
245
|
+
OutboundMessage as OutboundMessageType,
|
|
246
|
+
IncomingMessage as IncomingMessageType,
|
|
247
|
+
ChannelConfig as ChannelConfigType,
|
|
248
|
+
IChannel as IChannelType,
|
|
249
|
+
MCPTool as MCPToolType,
|
|
250
|
+
MCPResource as MCPResourceType,
|
|
251
|
+
MCPPrompt as MCPPromptType,
|
|
252
|
+
MCPConfig as MCPConfigType,
|
|
253
|
+
MCPServerConfig as MCPServerConfigType,
|
|
254
|
+
Skill as SkillType,
|
|
255
|
+
SkillMetadata as SkillMetadataType,
|
|
256
|
+
SkillStep as SkillStepType,
|
|
257
|
+
SkillExample as SkillExampleType,
|
|
258
|
+
OutputFormat as OutputFormatType,
|
|
259
|
+
SkillsConfig as SkillsConfigType,
|
|
260
|
+
StoredMessage as StoredMessageType,
|
|
261
|
+
} from "./types/index";
|
|
30
262
|
|
|
31
263
|
export const SDK_VERSION = "1.0.0";
|
package/src/mcp/index.ts
CHANGED
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
* const manager = new MCPClientManager({ servers: {} });
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
export { MCPClientManager, type MCPTool, type MCPResource, type MCPPrompt } from "@johpaz/hive-agents
|
|
13
|
+
export { MCPClientManager, type MCPTool, type MCPResource, type MCPPrompt } from "@johpaz/hive-agents-mcp/manager";
|
|
14
14
|
|
|
15
|
-
export type { MCPConfig, MCPServerConfig } from "@johpaz/hive-agents
|
|
15
|
+
export type { MCPConfig, MCPServerConfig } from "@johpaz/hive-agents-mcp/config";
|
|
16
16
|
|
|
17
|
-
export { logger } from "@johpaz/hive-agents
|
|
17
|
+
export { logger } from "@johpaz/hive-agents-mcp/logger";
|
package/src/skills/index.ts
CHANGED
package/src/tools/index.ts
CHANGED
|
@@ -18,7 +18,7 @@ export {
|
|
|
18
18
|
createToolsByCategory,
|
|
19
19
|
type Tool,
|
|
20
20
|
type ToolResult,
|
|
21
|
-
} from "@johpaz/hive-agents/tools
|
|
21
|
+
} from "@johpaz/hive-agents-core/tools";
|
|
22
22
|
|
|
23
23
|
export {
|
|
24
24
|
fsEditTool,
|
|
@@ -28,7 +28,7 @@ export {
|
|
|
28
28
|
fsListTool,
|
|
29
29
|
fsGlobTool,
|
|
30
30
|
fsExistsTool,
|
|
31
|
-
} from "@johpaz/hive-agents/tools/filesystem
|
|
31
|
+
} from "@johpaz/hive-agents-core/tools/filesystem";
|
|
32
32
|
|
|
33
33
|
export {
|
|
34
34
|
webSearchTool,
|
|
@@ -37,7 +37,7 @@ export {
|
|
|
37
37
|
browserScreenshotTool,
|
|
38
38
|
browserClickTool,
|
|
39
39
|
browserTypeTool,
|
|
40
|
-
} from "@johpaz/hive-agents/tools/web
|
|
40
|
+
} from "@johpaz/hive-agents-core/tools/web";
|
|
41
41
|
|
|
42
42
|
export {
|
|
43
43
|
projectCreateTool,
|
|
@@ -48,7 +48,7 @@ export {
|
|
|
48
48
|
taskCreateTool,
|
|
49
49
|
taskUpdateTool,
|
|
50
50
|
taskEvaluateTool,
|
|
51
|
-
} from "@johpaz/hive-agents/tools/projects
|
|
51
|
+
} from "@johpaz/hive-agents-core/tools/projects";
|
|
52
52
|
|
|
53
53
|
export {
|
|
54
54
|
cronAddTool,
|
|
@@ -57,9 +57,9 @@ export {
|
|
|
57
57
|
cronRemoveTool,
|
|
58
58
|
initCronScheduler,
|
|
59
59
|
resolveBestChannel,
|
|
60
|
-
} from "@johpaz/hive-agents/tools/cron
|
|
60
|
+
} from "@johpaz/hive-agents-core/tools/cron";
|
|
61
61
|
|
|
62
|
-
export { cliExecTool } from "@johpaz/hive-agents/tools/cli
|
|
62
|
+
export { cliExecTool } from "@johpaz/hive-agents-core/tools/cli";
|
|
63
63
|
|
|
64
64
|
export {
|
|
65
65
|
memoryWriteTool,
|
|
@@ -76,7 +76,7 @@ export {
|
|
|
76
76
|
busPublishTool,
|
|
77
77
|
busReadTool,
|
|
78
78
|
projectUpdatesTool,
|
|
79
|
-
} from "@johpaz/hive-agents/tools/agents
|
|
79
|
+
} from "@johpaz/hive-agents-core/tools/agents";
|
|
80
80
|
|
|
81
81
|
export {
|
|
82
82
|
canvasRenderTool,
|
|
@@ -86,23 +86,23 @@ export {
|
|
|
86
86
|
canvasShowProgressTool,
|
|
87
87
|
canvasShowListTool,
|
|
88
88
|
canvasClearTool,
|
|
89
|
-
} from "@johpaz/hive-agents/tools/canvas
|
|
89
|
+
} from "@johpaz/hive-agents-core/tools/canvas";
|
|
90
90
|
|
|
91
91
|
export {
|
|
92
92
|
codebridgeLaunchTool,
|
|
93
93
|
codebridgeStatusTool,
|
|
94
94
|
codebridgeCancelTool,
|
|
95
95
|
codebridgeFeedbackTool,
|
|
96
|
-
} from "@johpaz/hive-agents/tools/codebridge
|
|
96
|
+
} from "@johpaz/hive-agents-core/tools/codebridge";
|
|
97
97
|
|
|
98
98
|
export {
|
|
99
99
|
voiceTranscribeTool,
|
|
100
100
|
voiceSpeakTool,
|
|
101
|
-
} from "@johpaz/hive-agents/tools/voice
|
|
101
|
+
} from "@johpaz/hive-agents-core/tools/voice";
|
|
102
102
|
|
|
103
103
|
export {
|
|
104
104
|
searchKnowledgeTool,
|
|
105
105
|
notifyTool,
|
|
106
106
|
saveNoteTool,
|
|
107
107
|
reportProgressTool,
|
|
108
|
-
} from "@johpaz/hive-agents/tools/core
|
|
108
|
+
} from "@johpaz/hive-agents-core/tools/core";
|