@johpaz/hive-sdk 0.0.1 → 0.0.2
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 +30 -0
- package/dist/agents/index.js +68 -0
- package/dist/channels/index.d.ts +18 -0
- package/dist/channels/index.js +16 -0
- package/dist/cron/index.d.ts +15 -0
- package/dist/cron/index.js +40 -0
- package/dist/database/index.d.ts +19 -0
- package/dist/database/index.js +62 -0
- package/dist/ethics/index.d.ts +12 -0
- package/dist/ethics/index.js +10 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.js +303 -0
- package/dist/tools/index.d.ts +25 -0
- package/dist/tools/index.js +146 -0
- package/dist/types/index.d.ts +17 -0
- package/dist/types/index.js +1 -0
- package/package.json +51 -18
- package/src/tools/index.ts +1 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hive SDK - Agents Module
|
|
3
|
+
*
|
|
4
|
+
* Exposes agent execution, context compilation, and agent loop functionality.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* import { runAgent, AgentService, compileContext } from "@johpaz/hive-agents-sdk/agents";
|
|
8
|
+
*
|
|
9
|
+
* // Run an agent with a message
|
|
10
|
+
* const response = await runAgent({
|
|
11
|
+
* agentId: "main",
|
|
12
|
+
* message: "Hello, agent!",
|
|
13
|
+
* threadId: "thread-123"
|
|
14
|
+
* });
|
|
15
|
+
*/
|
|
16
|
+
export { AgentService, getAgentService, createAgentService } from "@johpaz/hive-agents/agent/service";
|
|
17
|
+
export type { AgentServiceConfig, AgentDBRecord } from "@johpaz/hive-agents/agent/service";
|
|
18
|
+
export { runAgent, runAgentIsolated, rebuildAgentLoop, getAgentLoop } from "@johpaz/hive-agents/agent/agent-loop";
|
|
19
|
+
export type { AgentLoopOptions, StepEvent, StreamChunk } from "@johpaz/hive-agents/agent/agent-loop";
|
|
20
|
+
export { compileContext } from "@johpaz/hive-agents/agent/context-compiler";
|
|
21
|
+
export { buildSystemPromptWithProjects } from "@johpaz/hive-agents/agent/prompt-builder";
|
|
22
|
+
export { addMessage, getHistory, getRecentMessages, getMessageCount, getTotalTokens, getMessagesAfter } from "@johpaz/hive-agents/agent/conversation-store";
|
|
23
|
+
export type { StoredMessage } from "@johpaz/hive-agents/agent/conversation-store";
|
|
24
|
+
export { selectTools } from "@johpaz/hive-agents/agent/tool-selector";
|
|
25
|
+
export { selectSkills } from "@johpaz/hive-agents/agent/skill-selector";
|
|
26
|
+
export { selectPlaybookRules } from "@johpaz/hive-agents/agent/playbook-selector";
|
|
27
|
+
export { callLLM, resolveProviderConfig } from "@johpaz/hive-agents/agent/llm-client";
|
|
28
|
+
export type { LLMMessage, LLMResponse, LLMCallOptions, LLMToolCall } from "@johpaz/hive-agents/agent/llm-client";
|
|
29
|
+
export { resolveAgentId, resolveUserId } from "@johpaz/hive-agents/storage/onboarding";
|
|
30
|
+
export { memoryWriteTool, memoryReadTool, memoryListTool, memorySearchTool, memoryDeleteTool, agentCreateTool, agentFindTool, agentArchiveTool, taskDelegateTool, taskDelegateCodeTool, taskStatusTool, busPublishTool, busReadTool, projectUpdatesTool, createTools as createAgentTools, } from "@johpaz/hive-agents/tools/agents/index";
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
// src/agents/index.ts
|
|
3
|
+
import { AgentService, getAgentService, createAgentService } from "@johpaz/hive-agents/agent/service";
|
|
4
|
+
import { runAgent, runAgentIsolated, rebuildAgentLoop, getAgentLoop } from "@johpaz/hive-agents/agent/agent-loop";
|
|
5
|
+
import { compileContext } from "@johpaz/hive-agents/agent/context-compiler";
|
|
6
|
+
import { buildSystemPromptWithProjects } from "@johpaz/hive-agents/agent/prompt-builder";
|
|
7
|
+
import { addMessage, getHistory, getRecentMessages, getMessageCount, getTotalTokens, getMessagesAfter } from "@johpaz/hive-agents/agent/conversation-store";
|
|
8
|
+
import { selectTools } from "@johpaz/hive-agents/agent/tool-selector";
|
|
9
|
+
import { selectSkills } from "@johpaz/hive-agents/agent/skill-selector";
|
|
10
|
+
import { selectPlaybookRules } from "@johpaz/hive-agents/agent/playbook-selector";
|
|
11
|
+
import { callLLM, resolveProviderConfig } from "@johpaz/hive-agents/agent/llm-client";
|
|
12
|
+
import { resolveAgentId, resolveUserId } from "@johpaz/hive-agents/storage/onboarding";
|
|
13
|
+
import {
|
|
14
|
+
memoryWriteTool,
|
|
15
|
+
memoryReadTool,
|
|
16
|
+
memoryListTool,
|
|
17
|
+
memorySearchTool,
|
|
18
|
+
memoryDeleteTool,
|
|
19
|
+
agentCreateTool,
|
|
20
|
+
agentFindTool,
|
|
21
|
+
agentArchiveTool,
|
|
22
|
+
taskDelegateTool,
|
|
23
|
+
taskDelegateCodeTool,
|
|
24
|
+
taskStatusTool,
|
|
25
|
+
busPublishTool,
|
|
26
|
+
busReadTool,
|
|
27
|
+
projectUpdatesTool,
|
|
28
|
+
createTools
|
|
29
|
+
} from "@johpaz/hive-agents/tools/agents/index";
|
|
30
|
+
export {
|
|
31
|
+
taskStatusTool,
|
|
32
|
+
taskDelegateTool,
|
|
33
|
+
taskDelegateCodeTool,
|
|
34
|
+
selectTools,
|
|
35
|
+
selectSkills,
|
|
36
|
+
selectPlaybookRules,
|
|
37
|
+
runAgentIsolated,
|
|
38
|
+
runAgent,
|
|
39
|
+
resolveUserId,
|
|
40
|
+
resolveProviderConfig,
|
|
41
|
+
resolveAgentId,
|
|
42
|
+
rebuildAgentLoop,
|
|
43
|
+
projectUpdatesTool,
|
|
44
|
+
memoryWriteTool,
|
|
45
|
+
memorySearchTool,
|
|
46
|
+
memoryReadTool,
|
|
47
|
+
memoryListTool,
|
|
48
|
+
memoryDeleteTool,
|
|
49
|
+
getTotalTokens,
|
|
50
|
+
getRecentMessages,
|
|
51
|
+
getMessagesAfter,
|
|
52
|
+
getMessageCount,
|
|
53
|
+
getHistory,
|
|
54
|
+
getAgentService,
|
|
55
|
+
getAgentLoop,
|
|
56
|
+
createTools as createAgentTools,
|
|
57
|
+
createAgentService,
|
|
58
|
+
compileContext,
|
|
59
|
+
callLLM,
|
|
60
|
+
busReadTool,
|
|
61
|
+
busPublishTool,
|
|
62
|
+
buildSystemPromptWithProjects,
|
|
63
|
+
agentFindTool,
|
|
64
|
+
agentCreateTool,
|
|
65
|
+
agentArchiveTool,
|
|
66
|
+
addMessage,
|
|
67
|
+
AgentService
|
|
68
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hive SDK - Channels Module
|
|
3
|
+
*
|
|
4
|
+
* Exposes all channel adapters and channel management.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* import { ChannelManager, TelegramChannel, DiscordChannel } from "@johpaz/hive-agents-sdk/channels";
|
|
8
|
+
*
|
|
9
|
+
* // Get channel manager
|
|
10
|
+
* const manager = new ChannelManager(config);
|
|
11
|
+
*/
|
|
12
|
+
export { ChannelManager } from "@johpaz/hive-agents/channels/manager";
|
|
13
|
+
export type { OutboundMessage, IncomingMessage, ChannelConfig, IChannel, MessageHandler, } from "@johpaz/hive-agents/channels/base";
|
|
14
|
+
export { TelegramChannel, type TelegramConfig } from "@johpaz/hive-agents/channels/telegram";
|
|
15
|
+
export { DiscordChannel, type DiscordConfig } from "@johpaz/hive-agents/channels/discord";
|
|
16
|
+
export { WhatsAppChannel, type WhatsAppConfig, type WhatsAppConnectionState } from "@johpaz/hive-agents/channels/whatsapp";
|
|
17
|
+
export { SlackChannel, type SlackConfig, type SlackConnectionState } from "@johpaz/hive-agents/channels/slack";
|
|
18
|
+
export { WebChatChannel, type WebChatConfig } from "@johpaz/hive-agents/channels/webchat";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
// src/channels/index.ts
|
|
3
|
+
import { ChannelManager } from "@johpaz/hive-agents/channels/manager";
|
|
4
|
+
import { TelegramChannel } from "@johpaz/hive-agents/channels/telegram";
|
|
5
|
+
import { DiscordChannel } from "@johpaz/hive-agents/channels/discord";
|
|
6
|
+
import { WhatsAppChannel } from "@johpaz/hive-agents/channels/whatsapp";
|
|
7
|
+
import { SlackChannel } from "@johpaz/hive-agents/channels/slack";
|
|
8
|
+
import { WebChatChannel } from "@johpaz/hive-agents/channels/webchat";
|
|
9
|
+
export {
|
|
10
|
+
WhatsAppChannel,
|
|
11
|
+
WebChatChannel,
|
|
12
|
+
TelegramChannel,
|
|
13
|
+
SlackChannel,
|
|
14
|
+
DiscordChannel,
|
|
15
|
+
ChannelManager
|
|
16
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hive SDK - Cron Module
|
|
3
|
+
*
|
|
4
|
+
* Exposes the scheduler and cron job management functions.
|
|
5
|
+
* Includes both legacy cron tools and new Croner-based schedule tools.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* import {
|
|
9
|
+
* scheduleCreateTool,
|
|
10
|
+
* scheduleListTool,
|
|
11
|
+
* initCronScheduler,
|
|
12
|
+
* } from "@johpaz/hive-agents-sdk/cron";
|
|
13
|
+
*/
|
|
14
|
+
export { scheduleCreateTool, scheduleListTool, schedulePauseTool, scheduleResumeTool, scheduleDeleteTool, scheduleTriggerTool, scheduleHistoryTool, createTools as createScheduleTools, setSchedulerInstance, } from "@johpaz/hive-agents/tools/schedule";
|
|
15
|
+
export { cronAddTool, cronListTool, cronEditTool, cronRemoveTool, createTools as createCronTools, initCronScheduler, resolveBestChannel, } from "@johpaz/hive-agents/tools/cron";
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
// src/cron/index.ts
|
|
3
|
+
import {
|
|
4
|
+
scheduleCreateTool,
|
|
5
|
+
scheduleListTool,
|
|
6
|
+
schedulePauseTool,
|
|
7
|
+
scheduleResumeTool,
|
|
8
|
+
scheduleDeleteTool,
|
|
9
|
+
scheduleTriggerTool,
|
|
10
|
+
scheduleHistoryTool,
|
|
11
|
+
createTools,
|
|
12
|
+
setSchedulerInstance
|
|
13
|
+
} from "@johpaz/hive-agents/tools/schedule";
|
|
14
|
+
import {
|
|
15
|
+
cronAddTool,
|
|
16
|
+
cronListTool,
|
|
17
|
+
cronEditTool,
|
|
18
|
+
cronRemoveTool,
|
|
19
|
+
createTools as createTools2,
|
|
20
|
+
initCronScheduler,
|
|
21
|
+
resolveBestChannel
|
|
22
|
+
} from "@johpaz/hive-agents/tools/cron";
|
|
23
|
+
export {
|
|
24
|
+
setSchedulerInstance,
|
|
25
|
+
scheduleTriggerTool,
|
|
26
|
+
scheduleResumeTool,
|
|
27
|
+
schedulePauseTool,
|
|
28
|
+
scheduleListTool,
|
|
29
|
+
scheduleHistoryTool,
|
|
30
|
+
scheduleDeleteTool,
|
|
31
|
+
scheduleCreateTool,
|
|
32
|
+
resolveBestChannel,
|
|
33
|
+
initCronScheduler,
|
|
34
|
+
cronRemoveTool,
|
|
35
|
+
cronListTool,
|
|
36
|
+
cronEditTool,
|
|
37
|
+
cronAddTool,
|
|
38
|
+
createTools as createScheduleTools,
|
|
39
|
+
createTools2 as createCronTools
|
|
40
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hive SDK - Database Module
|
|
3
|
+
*
|
|
4
|
+
* Exposes database access, schema, and crypto utilities.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* import { getDb, initDatabase, SCHEMA } from "@johpaz/hive-agents-sdk/database";
|
|
8
|
+
*
|
|
9
|
+
* // Initialize database
|
|
10
|
+
* initDatabase();
|
|
11
|
+
*
|
|
12
|
+
* // Get database instance
|
|
13
|
+
* const db = getDb();
|
|
14
|
+
*/
|
|
15
|
+
export { getDb, initializeDatabase, getDbPathLazy, dbService } from "@johpaz/hive-agents/storage/sqlite";
|
|
16
|
+
export { SCHEMA, PROJECTS_SCHEMA, CONTEXT_ENGINE_SCHEMA } from "@johpaz/hive-agents/storage/schema";
|
|
17
|
+
export { seedAllData, seedToolsAndSkills, getAllElements, getActiveElements } from "@johpaz/hive-agents/storage/seed";
|
|
18
|
+
export { encrypt, decrypt, encryptApiKey, decryptApiKey, encryptConfig, decryptConfig, hashPassword, verifyPassword, maskApiKey } from "@johpaz/hive-agents/storage/crypto";
|
|
19
|
+
export { getAllProviders, getAllModels, getAllEthics, getAllCodeBridge, getAllSkills, getAllDbTools, getAllMcpServers, getAllChannels, getActiveTools, getUserAgents, resolveUserId, resolveAgentId, getSingleUserId, getCoordinatorAgentId, getDefaultAgentId, getAgentConfig, } from "@johpaz/hive-agents/storage/onboarding";
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
// src/database/index.ts
|
|
3
|
+
import { getDb, initializeDatabase, getDbPathLazy, dbService } from "@johpaz/hive-agents/storage/sqlite";
|
|
4
|
+
import { SCHEMA, PROJECTS_SCHEMA, CONTEXT_ENGINE_SCHEMA } from "@johpaz/hive-agents/storage/schema";
|
|
5
|
+
import { seedAllData, seedToolsAndSkills, getAllElements, getActiveElements } from "@johpaz/hive-agents/storage/seed";
|
|
6
|
+
import { encrypt, decrypt, encryptApiKey, decryptApiKey, encryptConfig, decryptConfig, hashPassword, verifyPassword, maskApiKey } from "@johpaz/hive-agents/storage/crypto";
|
|
7
|
+
import {
|
|
8
|
+
getAllProviders,
|
|
9
|
+
getAllModels,
|
|
10
|
+
getAllEthics,
|
|
11
|
+
getAllCodeBridge,
|
|
12
|
+
getAllSkills,
|
|
13
|
+
getAllDbTools,
|
|
14
|
+
getAllMcpServers,
|
|
15
|
+
getAllChannels,
|
|
16
|
+
getActiveTools,
|
|
17
|
+
getUserAgents,
|
|
18
|
+
resolveUserId,
|
|
19
|
+
resolveAgentId,
|
|
20
|
+
getSingleUserId,
|
|
21
|
+
getCoordinatorAgentId,
|
|
22
|
+
getDefaultAgentId,
|
|
23
|
+
getAgentConfig
|
|
24
|
+
} from "@johpaz/hive-agents/storage/onboarding";
|
|
25
|
+
export {
|
|
26
|
+
verifyPassword,
|
|
27
|
+
seedToolsAndSkills,
|
|
28
|
+
seedAllData,
|
|
29
|
+
resolveUserId,
|
|
30
|
+
resolveAgentId,
|
|
31
|
+
maskApiKey,
|
|
32
|
+
initializeDatabase,
|
|
33
|
+
hashPassword,
|
|
34
|
+
getUserAgents,
|
|
35
|
+
getSingleUserId,
|
|
36
|
+
getDefaultAgentId,
|
|
37
|
+
getDbPathLazy,
|
|
38
|
+
getDb,
|
|
39
|
+
getCoordinatorAgentId,
|
|
40
|
+
getAllSkills,
|
|
41
|
+
getAllProviders,
|
|
42
|
+
getAllModels,
|
|
43
|
+
getAllMcpServers,
|
|
44
|
+
getAllEthics,
|
|
45
|
+
getAllElements,
|
|
46
|
+
getAllDbTools,
|
|
47
|
+
getAllCodeBridge,
|
|
48
|
+
getAllChannels,
|
|
49
|
+
getAgentConfig,
|
|
50
|
+
getActiveTools,
|
|
51
|
+
getActiveElements,
|
|
52
|
+
encryptConfig,
|
|
53
|
+
encryptApiKey,
|
|
54
|
+
encrypt,
|
|
55
|
+
decryptConfig,
|
|
56
|
+
decryptApiKey,
|
|
57
|
+
decrypt,
|
|
58
|
+
dbService,
|
|
59
|
+
SCHEMA,
|
|
60
|
+
PROJECTS_SCHEMA,
|
|
61
|
+
CONTEXT_ENGINE_SCHEMA
|
|
62
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hive SDK - Ethics Module
|
|
3
|
+
*
|
|
4
|
+
* Exposes the constitutional ethics system and ethics rule management.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* import { getAllEthics, activateEthics } from "@johpaz/hive-agents-sdk/ethics";
|
|
8
|
+
*
|
|
9
|
+
* // Get all ethics rules
|
|
10
|
+
* const rules = getAllEthics();
|
|
11
|
+
*/
|
|
12
|
+
export { getAllEthics, activateEthics, } from "@johpaz/hive-agents/storage/onboarding";
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @johpaz/hive-agents-sdk
|
|
3
|
+
*
|
|
4
|
+
* Hive SDK - Build on top of Hive for enterprise and custom integrations.
|
|
5
|
+
*
|
|
6
|
+
* This package exposes all internal Hive functionality as a clean, organized API
|
|
7
|
+
* for developers who want to build on top of Hive, including hive-cloud Enterprise.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* import { runAgent, AgentService } from "@johpaz/hive-agents-sdk/agents";
|
|
11
|
+
* import { createAllTools } from "@johpaz/hive-agents-sdk/tools";
|
|
12
|
+
* import { SkillLoader } from "@johpaz/hive-agents-sdk/skills";
|
|
13
|
+
* import { MCPClientManager } from "@johpaz/hive-agents-sdk/mcp";
|
|
14
|
+
* import { ChannelManager } from "@johpaz/hive-agents-sdk/channels";
|
|
15
|
+
* import { getDb, initDatabase } from "@johpaz/hive-agents-sdk/database";
|
|
16
|
+
*
|
|
17
|
+
* // Or import everything
|
|
18
|
+
* import * as HiveSDK from "@johpaz/hive-agents-sdk";
|
|
19
|
+
*/
|
|
20
|
+
export * from "./agents/index";
|
|
21
|
+
export * from "./tools/index";
|
|
22
|
+
export * from "./skills/index";
|
|
23
|
+
export * from "./mcp/index";
|
|
24
|
+
export * from "./channels/index";
|
|
25
|
+
export * from "./cron/index";
|
|
26
|
+
export * from "./ethics/index";
|
|
27
|
+
export * from "./database/index";
|
|
28
|
+
export * from "./types/index";
|
|
29
|
+
export declare const SDK_VERSION = "1.0.0";
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
// src/agents/index.ts
|
|
3
|
+
import { AgentService, getAgentService, createAgentService } from "@johpaz/hive-agents/agent/service";
|
|
4
|
+
import { runAgent, runAgentIsolated, rebuildAgentLoop, getAgentLoop } from "@johpaz/hive-agents/agent/agent-loop";
|
|
5
|
+
import { compileContext } from "@johpaz/hive-agents/agent/context-compiler";
|
|
6
|
+
import { buildSystemPromptWithProjects } from "@johpaz/hive-agents/agent/prompt-builder";
|
|
7
|
+
import { addMessage, getHistory, getRecentMessages, getMessageCount, getTotalTokens, getMessagesAfter } from "@johpaz/hive-agents/agent/conversation-store";
|
|
8
|
+
import { selectTools } from "@johpaz/hive-agents/agent/tool-selector";
|
|
9
|
+
import { selectSkills } from "@johpaz/hive-agents/agent/skill-selector";
|
|
10
|
+
import { selectPlaybookRules } from "@johpaz/hive-agents/agent/playbook-selector";
|
|
11
|
+
import { callLLM, resolveProviderConfig } from "@johpaz/hive-agents/agent/llm-client";
|
|
12
|
+
import { resolveAgentId, resolveUserId } from "@johpaz/hive-agents/storage/onboarding";
|
|
13
|
+
import {
|
|
14
|
+
memoryWriteTool,
|
|
15
|
+
memoryReadTool,
|
|
16
|
+
memoryListTool,
|
|
17
|
+
memorySearchTool,
|
|
18
|
+
memoryDeleteTool,
|
|
19
|
+
agentCreateTool,
|
|
20
|
+
agentFindTool,
|
|
21
|
+
agentArchiveTool,
|
|
22
|
+
taskDelegateTool,
|
|
23
|
+
taskDelegateCodeTool,
|
|
24
|
+
taskStatusTool,
|
|
25
|
+
busPublishTool,
|
|
26
|
+
busReadTool,
|
|
27
|
+
projectUpdatesTool,
|
|
28
|
+
createTools
|
|
29
|
+
} from "@johpaz/hive-agents/tools/agents/index";
|
|
30
|
+
|
|
31
|
+
// src/tools/index.ts
|
|
32
|
+
import {
|
|
33
|
+
createAllTools,
|
|
34
|
+
createToolsByCategory
|
|
35
|
+
} from "@johpaz/hive-agents/tools/index";
|
|
36
|
+
import {
|
|
37
|
+
fsEditTool,
|
|
38
|
+
fsReadTool,
|
|
39
|
+
fsWriteTool,
|
|
40
|
+
fsDeleteTool,
|
|
41
|
+
fsListTool,
|
|
42
|
+
fsGlobTool,
|
|
43
|
+
fsExistsTool
|
|
44
|
+
} from "@johpaz/hive-agents/tools/filesystem/index";
|
|
45
|
+
import {
|
|
46
|
+
webSearchTool,
|
|
47
|
+
webFetchTool,
|
|
48
|
+
browserNavigateTool,
|
|
49
|
+
browserScreenshotTool,
|
|
50
|
+
browserClickTool,
|
|
51
|
+
browserTypeTool
|
|
52
|
+
} from "@johpaz/hive-agents/tools/web/index";
|
|
53
|
+
import {
|
|
54
|
+
projectCreateTool,
|
|
55
|
+
projectListTool,
|
|
56
|
+
projectUpdateTool,
|
|
57
|
+
projectDoneTool,
|
|
58
|
+
projectFailTool,
|
|
59
|
+
taskCreateTool,
|
|
60
|
+
taskUpdateTool,
|
|
61
|
+
taskEvaluateTool
|
|
62
|
+
} from "@johpaz/hive-agents/tools/projects/index";
|
|
63
|
+
import {
|
|
64
|
+
cronAddTool,
|
|
65
|
+
cronListTool,
|
|
66
|
+
cronEditTool,
|
|
67
|
+
cronRemoveTool,
|
|
68
|
+
initCronScheduler,
|
|
69
|
+
resolveBestChannel
|
|
70
|
+
} from "@johpaz/hive-agents/tools/cron/index";
|
|
71
|
+
import { cliExecTool } from "@johpaz/hive-agents/tools/cli/index";
|
|
72
|
+
import {
|
|
73
|
+
memoryWriteTool as memoryWriteTool2,
|
|
74
|
+
memoryReadTool as memoryReadTool2,
|
|
75
|
+
memoryListTool as memoryListTool2,
|
|
76
|
+
memorySearchTool as memorySearchTool2,
|
|
77
|
+
memoryDeleteTool as memoryDeleteTool2,
|
|
78
|
+
agentCreateTool as agentCreateTool2,
|
|
79
|
+
agentFindTool as agentFindTool2,
|
|
80
|
+
agentArchiveTool as agentArchiveTool2,
|
|
81
|
+
taskDelegateTool as taskDelegateTool2,
|
|
82
|
+
taskDelegateCodeTool as taskDelegateCodeTool2,
|
|
83
|
+
taskStatusTool as taskStatusTool2,
|
|
84
|
+
busPublishTool as busPublishTool2,
|
|
85
|
+
busReadTool as busReadTool2,
|
|
86
|
+
projectUpdatesTool as projectUpdatesTool2
|
|
87
|
+
} from "@johpaz/hive-agents/tools/agents/index";
|
|
88
|
+
import {
|
|
89
|
+
canvasRenderTool,
|
|
90
|
+
canvasAskTool,
|
|
91
|
+
canvasConfirmTool,
|
|
92
|
+
canvasShowCardTool,
|
|
93
|
+
canvasShowProgressTool,
|
|
94
|
+
canvasShowListTool,
|
|
95
|
+
canvasClearTool
|
|
96
|
+
} from "@johpaz/hive-agents/tools/canvas/index";
|
|
97
|
+
import {
|
|
98
|
+
codebridgeLaunchTool,
|
|
99
|
+
codebridgeStatusTool,
|
|
100
|
+
codebridgeCancelTool,
|
|
101
|
+
codebridgeFeedbackTool
|
|
102
|
+
} from "@johpaz/hive-agents/tools/codebridge/index";
|
|
103
|
+
import {
|
|
104
|
+
voiceTranscribeTool,
|
|
105
|
+
voiceSpeakTool
|
|
106
|
+
} from "@johpaz/hive-agents/tools/voice/index";
|
|
107
|
+
import {
|
|
108
|
+
searchKnowledgeTool,
|
|
109
|
+
notifyTool,
|
|
110
|
+
saveNoteTool,
|
|
111
|
+
reportProgressTool
|
|
112
|
+
} from "@johpaz/hive-agents/tools/core/index";
|
|
113
|
+
|
|
114
|
+
// src/skills/index.ts
|
|
115
|
+
import {
|
|
116
|
+
SkillLoader,
|
|
117
|
+
createSkillLoader
|
|
118
|
+
} from "@johpaz/hive-agents/skills/loader";
|
|
119
|
+
|
|
120
|
+
// src/mcp/index.ts
|
|
121
|
+
import { MCPClientManager } from "@johpaz/hive-agents/mcp/manager";
|
|
122
|
+
import { logger } from "@johpaz/hive-agents/mcp/logger";
|
|
123
|
+
|
|
124
|
+
// src/channels/index.ts
|
|
125
|
+
import { ChannelManager } from "@johpaz/hive-agents/channels/manager";
|
|
126
|
+
import { TelegramChannel } from "@johpaz/hive-agents/channels/telegram";
|
|
127
|
+
import { DiscordChannel } from "@johpaz/hive-agents/channels/discord";
|
|
128
|
+
import { WhatsAppChannel } from "@johpaz/hive-agents/channels/whatsapp";
|
|
129
|
+
import { SlackChannel } from "@johpaz/hive-agents/channels/slack";
|
|
130
|
+
import { WebChatChannel } from "@johpaz/hive-agents/channels/webchat";
|
|
131
|
+
|
|
132
|
+
// src/cron/index.ts
|
|
133
|
+
import {
|
|
134
|
+
scheduleCreateTool,
|
|
135
|
+
scheduleListTool,
|
|
136
|
+
schedulePauseTool,
|
|
137
|
+
scheduleResumeTool,
|
|
138
|
+
scheduleDeleteTool,
|
|
139
|
+
scheduleTriggerTool,
|
|
140
|
+
scheduleHistoryTool,
|
|
141
|
+
createTools as createTools2,
|
|
142
|
+
setSchedulerInstance
|
|
143
|
+
} from "@johpaz/hive-agents/tools/schedule";
|
|
144
|
+
import {
|
|
145
|
+
cronAddTool as cronAddTool2,
|
|
146
|
+
cronListTool as cronListTool2,
|
|
147
|
+
cronEditTool as cronEditTool2,
|
|
148
|
+
cronRemoveTool as cronRemoveTool2,
|
|
149
|
+
createTools as createTools3,
|
|
150
|
+
initCronScheduler as initCronScheduler2,
|
|
151
|
+
resolveBestChannel as resolveBestChannel2
|
|
152
|
+
} from "@johpaz/hive-agents/tools/cron";
|
|
153
|
+
|
|
154
|
+
// src/ethics/index.ts
|
|
155
|
+
import {
|
|
156
|
+
getAllEthics,
|
|
157
|
+
activateEthics
|
|
158
|
+
} from "@johpaz/hive-agents/storage/onboarding";
|
|
159
|
+
|
|
160
|
+
// src/database/index.ts
|
|
161
|
+
import { getDb, initializeDatabase, getDbPathLazy, dbService } from "@johpaz/hive-agents/storage/sqlite";
|
|
162
|
+
import { SCHEMA, PROJECTS_SCHEMA, CONTEXT_ENGINE_SCHEMA } from "@johpaz/hive-agents/storage/schema";
|
|
163
|
+
import { seedAllData, seedToolsAndSkills, getAllElements, getActiveElements } from "@johpaz/hive-agents/storage/seed";
|
|
164
|
+
import { encrypt, decrypt, encryptApiKey, decryptApiKey, encryptConfig, decryptConfig, hashPassword, verifyPassword, maskApiKey } from "@johpaz/hive-agents/storage/crypto";
|
|
165
|
+
import {
|
|
166
|
+
getAllProviders,
|
|
167
|
+
getAllModels,
|
|
168
|
+
getAllEthics as getAllEthics2,
|
|
169
|
+
getAllCodeBridge,
|
|
170
|
+
getAllSkills,
|
|
171
|
+
getAllDbTools,
|
|
172
|
+
getAllMcpServers,
|
|
173
|
+
getAllChannels,
|
|
174
|
+
getActiveTools,
|
|
175
|
+
getUserAgents,
|
|
176
|
+
resolveUserId as resolveUserId2,
|
|
177
|
+
resolveAgentId as resolveAgentId2,
|
|
178
|
+
getSingleUserId,
|
|
179
|
+
getCoordinatorAgentId,
|
|
180
|
+
getDefaultAgentId,
|
|
181
|
+
getAgentConfig
|
|
182
|
+
} from "@johpaz/hive-agents/storage/onboarding";
|
|
183
|
+
// src/index.ts
|
|
184
|
+
var SDK_VERSION = "1.0.0";
|
|
185
|
+
export {
|
|
186
|
+
webSearchTool,
|
|
187
|
+
webFetchTool,
|
|
188
|
+
voiceTranscribeTool,
|
|
189
|
+
voiceSpeakTool,
|
|
190
|
+
verifyPassword,
|
|
191
|
+
taskUpdateTool,
|
|
192
|
+
taskEvaluateTool,
|
|
193
|
+
taskCreateTool,
|
|
194
|
+
setSchedulerInstance,
|
|
195
|
+
selectTools,
|
|
196
|
+
selectSkills,
|
|
197
|
+
selectPlaybookRules,
|
|
198
|
+
seedToolsAndSkills,
|
|
199
|
+
seedAllData,
|
|
200
|
+
searchKnowledgeTool,
|
|
201
|
+
scheduleTriggerTool,
|
|
202
|
+
scheduleResumeTool,
|
|
203
|
+
schedulePauseTool,
|
|
204
|
+
scheduleListTool,
|
|
205
|
+
scheduleHistoryTool,
|
|
206
|
+
scheduleDeleteTool,
|
|
207
|
+
scheduleCreateTool,
|
|
208
|
+
saveNoteTool,
|
|
209
|
+
runAgentIsolated,
|
|
210
|
+
runAgent,
|
|
211
|
+
resolveProviderConfig,
|
|
212
|
+
reportProgressTool,
|
|
213
|
+
rebuildAgentLoop,
|
|
214
|
+
projectUpdateTool,
|
|
215
|
+
projectListTool,
|
|
216
|
+
projectFailTool,
|
|
217
|
+
projectDoneTool,
|
|
218
|
+
projectCreateTool,
|
|
219
|
+
notifyTool,
|
|
220
|
+
maskApiKey,
|
|
221
|
+
logger,
|
|
222
|
+
initializeDatabase,
|
|
223
|
+
hashPassword,
|
|
224
|
+
getUserAgents,
|
|
225
|
+
getTotalTokens,
|
|
226
|
+
getSingleUserId,
|
|
227
|
+
getRecentMessages,
|
|
228
|
+
getMessagesAfter,
|
|
229
|
+
getMessageCount,
|
|
230
|
+
getHistory,
|
|
231
|
+
getDefaultAgentId,
|
|
232
|
+
getDbPathLazy,
|
|
233
|
+
getDb,
|
|
234
|
+
getCoordinatorAgentId,
|
|
235
|
+
getAllSkills,
|
|
236
|
+
getAllProviders,
|
|
237
|
+
getAllModels,
|
|
238
|
+
getAllMcpServers,
|
|
239
|
+
getAllElements,
|
|
240
|
+
getAllDbTools,
|
|
241
|
+
getAllCodeBridge,
|
|
242
|
+
getAllChannels,
|
|
243
|
+
getAgentService,
|
|
244
|
+
getAgentLoop,
|
|
245
|
+
getAgentConfig,
|
|
246
|
+
getActiveTools,
|
|
247
|
+
getActiveElements,
|
|
248
|
+
fsWriteTool,
|
|
249
|
+
fsReadTool,
|
|
250
|
+
fsListTool,
|
|
251
|
+
fsGlobTool,
|
|
252
|
+
fsExistsTool,
|
|
253
|
+
fsEditTool,
|
|
254
|
+
fsDeleteTool,
|
|
255
|
+
encryptConfig,
|
|
256
|
+
encryptApiKey,
|
|
257
|
+
encrypt,
|
|
258
|
+
decryptConfig,
|
|
259
|
+
decryptApiKey,
|
|
260
|
+
decrypt,
|
|
261
|
+
dbService,
|
|
262
|
+
createToolsByCategory,
|
|
263
|
+
createSkillLoader,
|
|
264
|
+
createTools2 as createScheduleTools,
|
|
265
|
+
createTools3 as createCronTools,
|
|
266
|
+
createAllTools,
|
|
267
|
+
createTools as createAgentTools,
|
|
268
|
+
createAgentService,
|
|
269
|
+
compileContext,
|
|
270
|
+
codebridgeStatusTool,
|
|
271
|
+
codebridgeLaunchTool,
|
|
272
|
+
codebridgeFeedbackTool,
|
|
273
|
+
codebridgeCancelTool,
|
|
274
|
+
cliExecTool,
|
|
275
|
+
canvasShowProgressTool,
|
|
276
|
+
canvasShowListTool,
|
|
277
|
+
canvasShowCardTool,
|
|
278
|
+
canvasRenderTool,
|
|
279
|
+
canvasConfirmTool,
|
|
280
|
+
canvasClearTool,
|
|
281
|
+
canvasAskTool,
|
|
282
|
+
callLLM,
|
|
283
|
+
buildSystemPromptWithProjects,
|
|
284
|
+
browserTypeTool,
|
|
285
|
+
browserScreenshotTool,
|
|
286
|
+
browserNavigateTool,
|
|
287
|
+
browserClickTool,
|
|
288
|
+
addMessage,
|
|
289
|
+
activateEthics,
|
|
290
|
+
WhatsAppChannel,
|
|
291
|
+
WebChatChannel,
|
|
292
|
+
TelegramChannel,
|
|
293
|
+
SlackChannel,
|
|
294
|
+
SkillLoader,
|
|
295
|
+
SDK_VERSION,
|
|
296
|
+
SCHEMA,
|
|
297
|
+
PROJECTS_SCHEMA,
|
|
298
|
+
MCPClientManager,
|
|
299
|
+
DiscordChannel,
|
|
300
|
+
ChannelManager,
|
|
301
|
+
CONTEXT_ENGINE_SCHEMA,
|
|
302
|
+
AgentService
|
|
303
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hive SDK - Tools Module
|
|
3
|
+
*
|
|
4
|
+
* Exposes the tool registry, all seed tools, and tool creation utilities.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* import { createAllTools, ToolRegistry } from "@johpaz/hive-agents-sdk/tools";
|
|
8
|
+
*
|
|
9
|
+
* // Create all 52 tools
|
|
10
|
+
* const tools = createAllTools(config);
|
|
11
|
+
*
|
|
12
|
+
* // Or by category
|
|
13
|
+
* const fsTools = createToolsByCategory("filesystem", config);
|
|
14
|
+
*/
|
|
15
|
+
export { createAllTools, createToolsByCategory, type Tool, type ToolResult, } from "@johpaz/hive-agents/tools/index";
|
|
16
|
+
export { fsEditTool, fsReadTool, fsWriteTool, fsDeleteTool, fsListTool, fsGlobTool, fsExistsTool, } from "@johpaz/hive-agents/tools/filesystem/index";
|
|
17
|
+
export { webSearchTool, webFetchTool, browserNavigateTool, browserScreenshotTool, browserClickTool, browserTypeTool, } from "@johpaz/hive-agents/tools/web/index";
|
|
18
|
+
export { projectCreateTool, projectListTool, projectUpdateTool, projectDoneTool, projectFailTool, taskCreateTool, taskUpdateTool, taskEvaluateTool, } from "@johpaz/hive-agents/tools/projects/index";
|
|
19
|
+
export { cronAddTool, cronListTool, cronEditTool, cronRemoveTool, initCronScheduler, resolveBestChannel, } from "@johpaz/hive-agents/tools/cron/index";
|
|
20
|
+
export { cliExecTool } from "@johpaz/hive-agents/tools/cli/index";
|
|
21
|
+
export { memoryWriteTool, memoryReadTool, memoryListTool, memorySearchTool, memoryDeleteTool, agentCreateTool, agentFindTool, agentArchiveTool, taskDelegateTool, taskDelegateCodeTool, taskStatusTool, busPublishTool, busReadTool, projectUpdatesTool, } from "@johpaz/hive-agents/tools/agents/index";
|
|
22
|
+
export { canvasRenderTool, canvasAskTool, canvasConfirmTool, canvasShowCardTool, canvasShowProgressTool, canvasShowListTool, canvasClearTool, } from "@johpaz/hive-agents/tools/canvas/index";
|
|
23
|
+
export { codebridgeLaunchTool, codebridgeStatusTool, codebridgeCancelTool, codebridgeFeedbackTool, } from "@johpaz/hive-agents/tools/codebridge/index";
|
|
24
|
+
export { voiceTranscribeTool, voiceSpeakTool, } from "@johpaz/hive-agents/tools/voice/index";
|
|
25
|
+
export { searchKnowledgeTool, notifyTool, saveNoteTool, reportProgressTool, } from "@johpaz/hive-agents/tools/core/index";
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
// src/tools/index.ts
|
|
3
|
+
import {
|
|
4
|
+
createAllTools,
|
|
5
|
+
createToolsByCategory
|
|
6
|
+
} from "@johpaz/hive-agents/tools/index";
|
|
7
|
+
import {
|
|
8
|
+
fsEditTool,
|
|
9
|
+
fsReadTool,
|
|
10
|
+
fsWriteTool,
|
|
11
|
+
fsDeleteTool,
|
|
12
|
+
fsListTool,
|
|
13
|
+
fsGlobTool,
|
|
14
|
+
fsExistsTool
|
|
15
|
+
} from "@johpaz/hive-agents/tools/filesystem/index";
|
|
16
|
+
import {
|
|
17
|
+
webSearchTool,
|
|
18
|
+
webFetchTool,
|
|
19
|
+
browserNavigateTool,
|
|
20
|
+
browserScreenshotTool,
|
|
21
|
+
browserClickTool,
|
|
22
|
+
browserTypeTool
|
|
23
|
+
} from "@johpaz/hive-agents/tools/web/index";
|
|
24
|
+
import {
|
|
25
|
+
projectCreateTool,
|
|
26
|
+
projectListTool,
|
|
27
|
+
projectUpdateTool,
|
|
28
|
+
projectDoneTool,
|
|
29
|
+
projectFailTool,
|
|
30
|
+
taskCreateTool,
|
|
31
|
+
taskUpdateTool,
|
|
32
|
+
taskEvaluateTool
|
|
33
|
+
} from "@johpaz/hive-agents/tools/projects/index";
|
|
34
|
+
import {
|
|
35
|
+
cronAddTool,
|
|
36
|
+
cronListTool,
|
|
37
|
+
cronEditTool,
|
|
38
|
+
cronRemoveTool,
|
|
39
|
+
initCronScheduler,
|
|
40
|
+
resolveBestChannel
|
|
41
|
+
} from "@johpaz/hive-agents/tools/cron/index";
|
|
42
|
+
import { cliExecTool } from "@johpaz/hive-agents/tools/cli/index";
|
|
43
|
+
import {
|
|
44
|
+
memoryWriteTool,
|
|
45
|
+
memoryReadTool,
|
|
46
|
+
memoryListTool,
|
|
47
|
+
memorySearchTool,
|
|
48
|
+
memoryDeleteTool,
|
|
49
|
+
agentCreateTool,
|
|
50
|
+
agentFindTool,
|
|
51
|
+
agentArchiveTool,
|
|
52
|
+
taskDelegateTool,
|
|
53
|
+
taskDelegateCodeTool,
|
|
54
|
+
taskStatusTool,
|
|
55
|
+
busPublishTool,
|
|
56
|
+
busReadTool,
|
|
57
|
+
projectUpdatesTool
|
|
58
|
+
} from "@johpaz/hive-agents/tools/agents/index";
|
|
59
|
+
import {
|
|
60
|
+
canvasRenderTool,
|
|
61
|
+
canvasAskTool,
|
|
62
|
+
canvasConfirmTool,
|
|
63
|
+
canvasShowCardTool,
|
|
64
|
+
canvasShowProgressTool,
|
|
65
|
+
canvasShowListTool,
|
|
66
|
+
canvasClearTool
|
|
67
|
+
} from "@johpaz/hive-agents/tools/canvas/index";
|
|
68
|
+
import {
|
|
69
|
+
codebridgeLaunchTool,
|
|
70
|
+
codebridgeStatusTool,
|
|
71
|
+
codebridgeCancelTool,
|
|
72
|
+
codebridgeFeedbackTool
|
|
73
|
+
} from "@johpaz/hive-agents/tools/codebridge/index";
|
|
74
|
+
import {
|
|
75
|
+
voiceTranscribeTool,
|
|
76
|
+
voiceSpeakTool
|
|
77
|
+
} from "@johpaz/hive-agents/tools/voice/index";
|
|
78
|
+
import {
|
|
79
|
+
searchKnowledgeTool,
|
|
80
|
+
notifyTool,
|
|
81
|
+
saveNoteTool,
|
|
82
|
+
reportProgressTool
|
|
83
|
+
} from "@johpaz/hive-agents/tools/core/index";
|
|
84
|
+
export {
|
|
85
|
+
webSearchTool,
|
|
86
|
+
webFetchTool,
|
|
87
|
+
voiceTranscribeTool,
|
|
88
|
+
voiceSpeakTool,
|
|
89
|
+
taskUpdateTool,
|
|
90
|
+
taskStatusTool,
|
|
91
|
+
taskEvaluateTool,
|
|
92
|
+
taskDelegateTool,
|
|
93
|
+
taskDelegateCodeTool,
|
|
94
|
+
taskCreateTool,
|
|
95
|
+
searchKnowledgeTool,
|
|
96
|
+
saveNoteTool,
|
|
97
|
+
resolveBestChannel,
|
|
98
|
+
reportProgressTool,
|
|
99
|
+
projectUpdatesTool,
|
|
100
|
+
projectUpdateTool,
|
|
101
|
+
projectListTool,
|
|
102
|
+
projectFailTool,
|
|
103
|
+
projectDoneTool,
|
|
104
|
+
projectCreateTool,
|
|
105
|
+
notifyTool,
|
|
106
|
+
memoryWriteTool,
|
|
107
|
+
memorySearchTool,
|
|
108
|
+
memoryReadTool,
|
|
109
|
+
memoryListTool,
|
|
110
|
+
memoryDeleteTool,
|
|
111
|
+
initCronScheduler,
|
|
112
|
+
fsWriteTool,
|
|
113
|
+
fsReadTool,
|
|
114
|
+
fsListTool,
|
|
115
|
+
fsGlobTool,
|
|
116
|
+
fsExistsTool,
|
|
117
|
+
fsEditTool,
|
|
118
|
+
fsDeleteTool,
|
|
119
|
+
cronRemoveTool,
|
|
120
|
+
cronListTool,
|
|
121
|
+
cronEditTool,
|
|
122
|
+
cronAddTool,
|
|
123
|
+
createToolsByCategory,
|
|
124
|
+
createAllTools,
|
|
125
|
+
codebridgeStatusTool,
|
|
126
|
+
codebridgeLaunchTool,
|
|
127
|
+
codebridgeFeedbackTool,
|
|
128
|
+
codebridgeCancelTool,
|
|
129
|
+
cliExecTool,
|
|
130
|
+
canvasShowProgressTool,
|
|
131
|
+
canvasShowListTool,
|
|
132
|
+
canvasShowCardTool,
|
|
133
|
+
canvasRenderTool,
|
|
134
|
+
canvasConfirmTool,
|
|
135
|
+
canvasClearTool,
|
|
136
|
+
canvasAskTool,
|
|
137
|
+
busReadTool,
|
|
138
|
+
busPublishTool,
|
|
139
|
+
browserTypeTool,
|
|
140
|
+
browserScreenshotTool,
|
|
141
|
+
browserNavigateTool,
|
|
142
|
+
browserClickTool,
|
|
143
|
+
agentFindTool,
|
|
144
|
+
agentCreateTool,
|
|
145
|
+
agentArchiveTool
|
|
146
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hive SDK - Types Module
|
|
3
|
+
*
|
|
4
|
+
* Exposes all TypeScript types from the Hive system.
|
|
5
|
+
* Use this for complete type support when building on Hive.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* import type { StoredMessage, LLMMessage } from "@johpaz/hive-agents-sdk/types";
|
|
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/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/agent/conversation-store";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// @bun
|
package/package.json
CHANGED
|
@@ -1,43 +1,76 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@johpaz/hive-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "Hive SDK - Build on top of Hive for enterprise and custom integrations",
|
|
5
5
|
"private": false,
|
|
6
|
-
"main": "./
|
|
7
|
-
"module": "./
|
|
8
|
-
"types": "./
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"files": [
|
|
11
|
+
"dist/",
|
|
11
12
|
"src/"
|
|
12
13
|
],
|
|
13
14
|
"type": "module",
|
|
14
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 dist/core dist/mcp dist/skills dist/code-bridge",
|
|
17
|
+
"prepublishOnly": "bun run build",
|
|
15
18
|
"test": "bun test",
|
|
16
19
|
"typecheck": "tsc --noEmit",
|
|
17
20
|
"lint": "tsc --noEmit"
|
|
18
21
|
},
|
|
19
22
|
"peerDependencies": {
|
|
20
|
-
"@johpaz/hive-agents": "
|
|
21
|
-
"typescript": "
|
|
23
|
+
"@johpaz/hive-agents": "0.0.10",
|
|
24
|
+
"typescript": "6.0.2"
|
|
22
25
|
},
|
|
23
26
|
"dependencies": {
|
|
24
27
|
"zod": "latest"
|
|
25
28
|
},
|
|
26
29
|
"devDependencies": {
|
|
27
30
|
"@types/bun": "latest",
|
|
28
|
-
"typescript": "6.0.
|
|
31
|
+
"typescript": "6.0.2"
|
|
29
32
|
},
|
|
30
33
|
"exports": {
|
|
31
|
-
".":
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"./
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"./
|
|
40
|
-
|
|
34
|
+
".": {
|
|
35
|
+
"types": "./dist/index.d.ts",
|
|
36
|
+
"default": "./dist/index.js"
|
|
37
|
+
},
|
|
38
|
+
"./agents": {
|
|
39
|
+
"types": "./dist/agents/index.d.ts",
|
|
40
|
+
"default": "./dist/agents/index.js"
|
|
41
|
+
},
|
|
42
|
+
"./tools": {
|
|
43
|
+
"types": "./dist/tools/index.d.ts",
|
|
44
|
+
"default": "./dist/tools/index.js"
|
|
45
|
+
},
|
|
46
|
+
"./skills": {
|
|
47
|
+
"types": "./dist/skills/index.d.ts",
|
|
48
|
+
"default": "./dist/skills/index.js"
|
|
49
|
+
},
|
|
50
|
+
"./mcp": {
|
|
51
|
+
"types": "./dist/mcp/index.d.ts",
|
|
52
|
+
"default": "./dist/mcp/index.js"
|
|
53
|
+
},
|
|
54
|
+
"./channels": {
|
|
55
|
+
"types": "./dist/channels/index.d.ts",
|
|
56
|
+
"default": "./dist/channels/index.js"
|
|
57
|
+
},
|
|
58
|
+
"./cron": {
|
|
59
|
+
"types": "./dist/cron/index.d.ts",
|
|
60
|
+
"default": "./dist/cron/index.js"
|
|
61
|
+
},
|
|
62
|
+
"./ethics": {
|
|
63
|
+
"types": "./dist/ethics/index.d.ts",
|
|
64
|
+
"default": "./dist/ethics/index.js"
|
|
65
|
+
},
|
|
66
|
+
"./database": {
|
|
67
|
+
"types": "./dist/database/index.d.ts",
|
|
68
|
+
"default": "./dist/database/index.js"
|
|
69
|
+
},
|
|
70
|
+
"./types": {
|
|
71
|
+
"types": "./dist/types/index.d.ts",
|
|
72
|
+
"default": "./dist/types/index.js"
|
|
73
|
+
}
|
|
41
74
|
},
|
|
42
75
|
"keywords": [
|
|
43
76
|
"hive",
|
|
@@ -52,4 +85,4 @@
|
|
|
52
85
|
"type": "git",
|
|
53
86
|
"url": "git+https://github.com/johpaz/hive.git"
|
|
54
87
|
}
|
|
55
|
-
}
|
|
88
|
+
}
|