@johpaz/hive-sdk 0.0.9 → 0.0.10
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/package.json +81 -78
- package/src/agents.ts +1 -0
- package/src/canvas.ts +1 -0
- package/src/channels.ts +1 -0
- package/src/config.ts +1 -0
- package/src/events.ts +1 -0
- package/src/gateway.ts +1 -0
- package/src/index.ts +129 -90
- package/src/mcp.ts +1 -0
- package/src/multimodal.ts +1 -0
- package/src/scheduler.ts +1 -0
- package/src/security.ts +1 -0
- package/src/skills.ts +1 -0
- package/src/state.ts +1 -0
- package/src/storage.ts +1 -0
- package/src/tools.ts +1 -0
- package/src/tts.ts +1 -0
- package/src/types.ts +82 -0
- package/src/utils.ts +1 -0
- package/src/voice.ts +1 -0
- package/README.md +0 -538
- package/dist/agents/index.d.ts +0 -30
- package/dist/agents/index.js +0 -175901
- package/dist/channels/index.d.ts +0 -18
- package/dist/channels/index.js +0 -11025
- package/dist/cron/index.d.ts +0 -15
- package/dist/cron/index.js +0 -3262
- package/dist/database/index.d.ts +0 -19
- package/dist/database/index.js +0 -8385
- package/dist/ethics/index.d.ts +0 -12
- package/dist/ethics/index.js +0 -8348
- package/dist/hivelearn/index.d.ts +0 -11
- package/dist/hivelearn/index.js +0 -5033
- package/dist/hivelearn/src/agent/agent-loop.d.ts +0 -14
- package/dist/hivelearn/src/agent/executor.d.ts +0 -10
- package/dist/hivelearn/src/agent/prompts.d.ts +0 -1
- package/dist/hivelearn/src/agent/runner.d.ts +0 -8
- package/dist/hivelearn/src/agent/tool-map.d.ts +0 -12
- package/dist/hivelearn/src/agents/coordinator.prompt.d.ts +0 -9
- package/dist/hivelearn/src/agents/prompts/audio.prompt.d.ts +0 -1
- package/dist/hivelearn/src/agents/prompts/challenge.prompt.d.ts +0 -1
- package/dist/hivelearn/src/agents/prompts/code.prompt.d.ts +0 -1
- package/dist/hivelearn/src/agents/prompts/evaluation.prompt.d.ts +0 -1
- package/dist/hivelearn/src/agents/prompts/exercise.prompt.d.ts +0 -1
- package/dist/hivelearn/src/agents/prompts/explanation.prompt.d.ts +0 -1
- package/dist/hivelearn/src/agents/prompts/feedback.prompt.d.ts +0 -1
- package/dist/hivelearn/src/agents/prompts/gamification.prompt.d.ts +0 -1
- package/dist/hivelearn/src/agents/prompts/gif.prompt.d.ts +0 -1
- package/dist/hivelearn/src/agents/prompts/infographic.prompt.d.ts +0 -1
- package/dist/hivelearn/src/agents/prompts/intent.prompt.d.ts +0 -1
- package/dist/hivelearn/src/agents/prompts/profile.prompt.d.ts +0 -1
- package/dist/hivelearn/src/agents/prompts/quiz.prompt.d.ts +0 -1
- package/dist/hivelearn/src/agents/prompts/structure.prompt.d.ts +0 -1
- package/dist/hivelearn/src/agents/prompts/svg.prompt.d.ts +0 -1
- package/dist/hivelearn/src/agents/registry.d.ts +0 -43
- package/dist/hivelearn/src/cache/CacheInvalidator.d.ts +0 -9
- package/dist/hivelearn/src/cache/NodeCache.d.ts +0 -15
- package/dist/hivelearn/src/events/swarm-events.d.ts +0 -12
- package/dist/hivelearn/src/index.d.ts +0 -17
- package/dist/hivelearn/src/persistence/LessonPersistence.d.ts +0 -90
- package/dist/hivelearn/src/scheduler/dag/DAGScheduler.d.ts +0 -29
- package/dist/hivelearn/src/scheduler/dag/EventBridge.d.ts +0 -16
- package/dist/hivelearn/src/scheduler/dag/TaskGraph.d.ts +0 -18
- package/dist/hivelearn/src/scheduler/dag/TaskNode.d.ts +0 -40
- package/dist/hivelearn/src/scheduler/dag/TaskResult.d.ts +0 -19
- package/dist/hivelearn/src/scheduler/dag/errors.d.ts +0 -17
- package/dist/hivelearn/src/scheduler/dag/index.d.ts +0 -13
- package/dist/hivelearn/src/scheduler/dag/strategies/ParallelStrategy.d.ts +0 -11
- package/dist/hivelearn/src/swarm/HiveLearnSwarm.d.ts +0 -16
- package/dist/hivelearn/src/swarm/orchestrator.d.ts +0 -15
- package/dist/hivelearn/src/swarm/presets/HiveLearnPreset.d.ts +0 -35
- package/dist/hivelearn/src/swarm/session.d.ts +0 -15
- package/dist/hivelearn/src/tools/canvas/disenar-estructura.tool.d.ts +0 -3
- package/dist/hivelearn/src/tools/canvas/poblar-nodo.tool.d.ts +0 -2
- package/dist/hivelearn/src/tools/content/generar-audio.tool.d.ts +0 -2
- package/dist/hivelearn/src/tools/content/generar-codigo.tool.d.ts +0 -2
- package/dist/hivelearn/src/tools/content/generar-ejercicio.tool.d.ts +0 -2
- package/dist/hivelearn/src/tools/content/generar-explicacion.tool.d.ts +0 -2
- package/dist/hivelearn/src/tools/content/generar-frames-gif.tool.d.ts +0 -2
- package/dist/hivelearn/src/tools/content/generar-imagen.tool.d.ts +0 -2
- package/dist/hivelearn/src/tools/content/generar-infografia.tool.d.ts +0 -2
- package/dist/hivelearn/src/tools/content/generar-quiz.tool.d.ts +0 -2
- package/dist/hivelearn/src/tools/content/generar-reto.tool.d.ts +0 -2
- package/dist/hivelearn/src/tools/content/generar-svg.tool.d.ts +0 -2
- package/dist/hivelearn/src/tools/coordinator/delegar-enjambre.tool.d.ts +0 -6
- package/dist/hivelearn/src/tools/coordinator/revisar-programa.tool.d.ts +0 -6
- package/dist/hivelearn/src/tools/evaluation/calificar-evaluacion.tool.d.ts +0 -20
- package/dist/hivelearn/src/tools/evaluation/generar-evaluacion.tool.d.ts +0 -2
- package/dist/hivelearn/src/tools/index.d.ts +0 -26
- package/dist/hivelearn/src/tools/profile/clasificar-intencion.tool.d.ts +0 -2
- package/dist/hivelearn/src/tools/search/buscar-curriculo-existente.tool.d.ts +0 -2
- package/dist/hivelearn/src/tools/search/buscar-en-hivelearn.tool.d.ts +0 -2
- package/dist/hivelearn/src/types/tool.d.ts +0 -17
- package/dist/hivelearn/src/types.d.ts +0 -187
- package/dist/hivelearn/src/utils/logger.d.ts +0 -21
- package/dist/index.d.ts +0 -35
- package/dist/index.js +0 -179740
- package/dist/mcp/index.d.ts +0 -14
- package/dist/mcp/index.js +0 -728
- package/dist/skills/index.d.ts +0 -12
- package/dist/skills/index.js +0 -5877
- package/dist/tools/index.d.ts +0 -25
- package/dist/tools/index.js +0 -175794
- package/dist/types/index.d.ts +0 -17
- package/dist/types/index.js +0 -1
- package/src/agents/index.ts +0 -61
- package/src/channels/index.ts +0 -31
- package/src/cron/index.ts +0 -40
- package/src/database/index.ts +0 -41
- package/src/ethics/index.ts +0 -16
- package/src/hivelearn/index.ts +0 -43
- package/src/mcp/index.ts +0 -17
- package/src/skills/index.ts +0 -23
- package/src/tools/index.ts +0 -111
- package/src/types/index.ts +0 -58
package/package.json
CHANGED
|
@@ -1,97 +1,99 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@johpaz/hive-sdk",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "Hive SDK
|
|
5
|
-
"private": false,
|
|
6
|
-
"main": "./dist/index.js",
|
|
7
|
-
"module": "./dist/index.js",
|
|
8
|
-
"types": "./dist/index.d.ts",
|
|
3
|
+
"version": "0.0.10",
|
|
4
|
+
"description": "Hive SDK — Crear agentes IA con todo incluido: agentes, tools, skills, MCP, TTS, canales, gateway y más.",
|
|
9
5
|
"license": "MIT",
|
|
10
|
-
"files": [
|
|
11
|
-
"dist/",
|
|
12
|
-
"src/"
|
|
13
|
-
],
|
|
14
6
|
"type": "module",
|
|
15
7
|
"scripts": {
|
|
16
|
-
"build": "bun
|
|
17
|
-
"prepublishOnly": "bun run build",
|
|
18
|
-
"test": "bun test",
|
|
19
|
-
"typecheck": "tsc --noEmit",
|
|
20
|
-
"lint": "tsc --noEmit"
|
|
21
|
-
},
|
|
22
|
-
"peerDependencies": {
|
|
23
|
-
"typescript": "6.0.2"
|
|
24
|
-
},
|
|
25
|
-
"peerDependenciesMeta": {
|
|
26
|
-
"typescript": {
|
|
27
|
-
"optional": true
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
"dependencies": {
|
|
31
|
-
"zod": "latest",
|
|
32
|
-
"@google/genai": "latest",
|
|
33
|
-
"@anthropic-ai/sdk": "latest",
|
|
34
|
-
"openai": "latest",
|
|
35
|
-
"ollama": "latest"
|
|
36
|
-
},
|
|
37
|
-
"optionalDependencies": {
|
|
38
|
-
"grammy": "latest",
|
|
39
|
-
"discord.js": "latest",
|
|
40
|
-
"@slack/bolt": "latest",
|
|
41
|
-
"@whiskeysockets/baileys": "latest",
|
|
42
|
-
"puppeteer": "latest",
|
|
43
|
-
"@puppeteer/browsers": "latest",
|
|
44
|
-
"better-sqlite3": "latest",
|
|
45
|
-
"@modelcontextprotocol/sdk": "latest"
|
|
46
|
-
},
|
|
47
|
-
"devDependencies": {
|
|
48
|
-
"@types/bun": "latest",
|
|
49
|
-
"typescript": "6.0.2"
|
|
8
|
+
"build": "bun run --cwd ../.. build"
|
|
50
9
|
},
|
|
10
|
+
"main": "./src/index.ts",
|
|
11
|
+
"module": "./src/index.ts",
|
|
12
|
+
"types": "./src/index.ts",
|
|
51
13
|
"exports": {
|
|
52
14
|
".": {
|
|
53
|
-
"types": "./
|
|
54
|
-
"default": "./
|
|
15
|
+
"types": "./src/index.ts",
|
|
16
|
+
"default": "./src/index.ts"
|
|
55
17
|
},
|
|
56
18
|
"./agents": {
|
|
57
|
-
"types": "./
|
|
58
|
-
"default": "./
|
|
19
|
+
"types": "./src/agents.ts",
|
|
20
|
+
"default": "./src/agents.ts"
|
|
59
21
|
},
|
|
60
22
|
"./tools": {
|
|
61
|
-
"types": "./
|
|
62
|
-
"default": "./
|
|
23
|
+
"types": "./src/tools.ts",
|
|
24
|
+
"default": "./src/tools.ts"
|
|
63
25
|
},
|
|
64
26
|
"./skills": {
|
|
65
|
-
"types": "./
|
|
66
|
-
"default": "./
|
|
27
|
+
"types": "./src/skills.ts",
|
|
28
|
+
"default": "./src/skills.ts"
|
|
67
29
|
},
|
|
68
30
|
"./mcp": {
|
|
69
|
-
"types": "./
|
|
70
|
-
"default": "./
|
|
31
|
+
"types": "./src/mcp.ts",
|
|
32
|
+
"default": "./src/mcp.ts"
|
|
33
|
+
},
|
|
34
|
+
"./tts": {
|
|
35
|
+
"types": "./src/tts.ts",
|
|
36
|
+
"default": "./src/tts.ts"
|
|
71
37
|
},
|
|
72
38
|
"./channels": {
|
|
73
|
-
"types": "./
|
|
74
|
-
"default": "./
|
|
39
|
+
"types": "./src/channels.ts",
|
|
40
|
+
"default": "./src/channels.ts"
|
|
75
41
|
},
|
|
76
|
-
"./
|
|
77
|
-
"types": "./
|
|
78
|
-
"default": "./
|
|
42
|
+
"./storage": {
|
|
43
|
+
"types": "./src/storage.ts",
|
|
44
|
+
"default": "./src/storage.ts"
|
|
79
45
|
},
|
|
80
|
-
"./
|
|
81
|
-
"types": "./
|
|
82
|
-
"default": "./
|
|
46
|
+
"./gateway": {
|
|
47
|
+
"types": "./src/gateway.ts",
|
|
48
|
+
"default": "./src/gateway.ts"
|
|
83
49
|
},
|
|
84
|
-
"./
|
|
85
|
-
"types": "./
|
|
86
|
-
"default": "./
|
|
50
|
+
"./scheduler": {
|
|
51
|
+
"types": "./src/scheduler.ts",
|
|
52
|
+
"default": "./src/scheduler.ts"
|
|
87
53
|
},
|
|
88
|
-
"./
|
|
89
|
-
"types": "./
|
|
90
|
-
"default": "./
|
|
54
|
+
"./events": {
|
|
55
|
+
"types": "./src/events.ts",
|
|
56
|
+
"default": "./src/events.ts"
|
|
57
|
+
},
|
|
58
|
+
"./state": {
|
|
59
|
+
"types": "./src/state.ts",
|
|
60
|
+
"default": "./src/state.ts"
|
|
91
61
|
},
|
|
92
|
-
"./
|
|
93
|
-
"types": "./
|
|
94
|
-
"default": "./
|
|
62
|
+
"./security": {
|
|
63
|
+
"types": "./src/security.ts",
|
|
64
|
+
"default": "./src/security.ts"
|
|
65
|
+
},
|
|
66
|
+
"./config": {
|
|
67
|
+
"types": "./src/config.ts",
|
|
68
|
+
"default": "./src/config.ts"
|
|
69
|
+
},
|
|
70
|
+
"./canvas": {
|
|
71
|
+
"types": "./src/canvas.ts",
|
|
72
|
+
"default": "./src/canvas.ts"
|
|
73
|
+
},
|
|
74
|
+
"./voice": {
|
|
75
|
+
"types": "./src/voice.ts",
|
|
76
|
+
"default": "./src/voice.ts"
|
|
77
|
+
},
|
|
78
|
+
"./multimodal": {
|
|
79
|
+
"types": "./src/multimodal.ts",
|
|
80
|
+
"default": "./src/multimodal.ts"
|
|
81
|
+
},
|
|
82
|
+
"./utils": {
|
|
83
|
+
"types": "./src/utils.ts",
|
|
84
|
+
"default": "./src/utils.ts"
|
|
85
|
+
},
|
|
86
|
+
"./types": {
|
|
87
|
+
"types": "./src/types.ts",
|
|
88
|
+
"default": "./src/types.ts"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"peerDependencies": {
|
|
92
|
+
"typescript": "6.0.2"
|
|
93
|
+
},
|
|
94
|
+
"peerDependenciesMeta": {
|
|
95
|
+
"typescript": {
|
|
96
|
+
"optional": true
|
|
95
97
|
}
|
|
96
98
|
},
|
|
97
99
|
"keywords": [
|
|
@@ -100,11 +102,12 @@
|
|
|
100
102
|
"agents",
|
|
101
103
|
"ai",
|
|
102
104
|
"llm",
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
|
|
105
|
+
"mcp",
|
|
106
|
+
"tts",
|
|
107
|
+
"multi-channel",
|
|
108
|
+
"telegram",
|
|
109
|
+
"discord",
|
|
110
|
+
"whatsapp",
|
|
111
|
+
"slack"
|
|
112
|
+
]
|
|
110
113
|
}
|
package/src/agents.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@hive-sdk/agent";
|
package/src/canvas.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@hive-sdk/canvas";
|
package/src/channels.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@hive-sdk/channels";
|
package/src/config.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@hive-sdk/config";
|
package/src/events.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@hive-sdk/events";
|
package/src/gateway.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@hive-sdk/gateway";
|
package/src/index.ts
CHANGED
|
@@ -1,21 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @johpaz/hive-
|
|
2
|
+
* @johpaz/hive-sdk
|
|
3
3
|
*
|
|
4
|
-
* Hive SDK
|
|
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.
|
|
4
|
+
* Hive SDK — Crear agentes IA con todo incluido.
|
|
8
5
|
*
|
|
9
6
|
* @example
|
|
10
|
-
* import {
|
|
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";
|
|
7
|
+
* import { AgentService, createAllTools, SkillLoader, MCPClientManager } from "@johpaz/hive-sdk";
|
|
16
8
|
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
9
|
+
* const tools = createAllTools(config);
|
|
10
|
+
* const skills = new SkillLoader();
|
|
11
|
+
* const mcp = new MCPClientManager({ servers: {} });
|
|
19
12
|
*/
|
|
20
13
|
|
|
21
14
|
// Agents
|
|
@@ -40,24 +33,8 @@ export {
|
|
|
40
33
|
selectPlaybookRules,
|
|
41
34
|
callLLM,
|
|
42
35
|
resolveProviderConfig,
|
|
43
|
-
|
|
44
|
-
|
|
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";
|
|
36
|
+
createAgentRunner,
|
|
37
|
+
} from "@hive-sdk/agent";
|
|
61
38
|
|
|
62
39
|
export type {
|
|
63
40
|
AgentServiceConfig,
|
|
@@ -70,7 +47,10 @@ export type {
|
|
|
70
47
|
LLMCallOptions,
|
|
71
48
|
LLMToolCall,
|
|
72
49
|
StoredMessage,
|
|
73
|
-
|
|
50
|
+
Provider,
|
|
51
|
+
ModelOptions,
|
|
52
|
+
ModelResponse,
|
|
53
|
+
} from "@hive-sdk/agent";
|
|
74
54
|
|
|
75
55
|
// Tools
|
|
76
56
|
export {
|
|
@@ -116,40 +96,54 @@ export {
|
|
|
116
96
|
codebridgeLaunchTool,
|
|
117
97
|
codebridgeStatusTool,
|
|
118
98
|
codebridgeCancelTool,
|
|
119
|
-
codebridgeFeedbackTool,
|
|
120
99
|
voiceTranscribeTool,
|
|
121
100
|
voiceSpeakTool,
|
|
122
101
|
searchKnowledgeTool,
|
|
123
102
|
notifyTool,
|
|
124
103
|
saveNoteTool,
|
|
125
104
|
reportProgressTool,
|
|
126
|
-
|
|
105
|
+
memoryWriteTool,
|
|
106
|
+
memoryReadTool,
|
|
107
|
+
memoryListTool,
|
|
108
|
+
memorySearchTool,
|
|
109
|
+
memoryDeleteTool,
|
|
110
|
+
agentCreateTool,
|
|
111
|
+
agentFindTool,
|
|
112
|
+
agentArchiveTool,
|
|
113
|
+
taskDelegateTool,
|
|
114
|
+
taskDelegateCodeTool,
|
|
115
|
+
taskStatusTool,
|
|
116
|
+
busPublishTool,
|
|
117
|
+
busReadTool,
|
|
118
|
+
projectUpdatesTool,
|
|
119
|
+
} from "@hive-sdk/tools";
|
|
127
120
|
|
|
128
|
-
export type { Tool, ToolResult } from "
|
|
121
|
+
export type { Tool, ToolResult } from "@hive-sdk/tools";
|
|
129
122
|
|
|
130
123
|
// Skills
|
|
131
|
-
export { SkillLoader, createSkillLoader } from "
|
|
124
|
+
export { SkillLoader, createSkillLoader } from "@hive-sdk/skills";
|
|
132
125
|
|
|
133
126
|
export type {
|
|
134
127
|
SkillsConfig,
|
|
135
|
-
Config,
|
|
136
128
|
SkillStep,
|
|
137
129
|
OutputFormat,
|
|
138
130
|
SkillExample,
|
|
139
131
|
SkillMetadata,
|
|
140
132
|
Skill,
|
|
141
|
-
} from "
|
|
133
|
+
} from "@hive-sdk/skills";
|
|
142
134
|
|
|
143
135
|
// MCP
|
|
144
|
-
export { MCPClientManager
|
|
136
|
+
export { MCPClientManager } from "@hive-sdk/mcp";
|
|
145
137
|
|
|
146
138
|
export type {
|
|
147
139
|
MCPTool,
|
|
148
140
|
MCPResource,
|
|
149
141
|
MCPPrompt,
|
|
142
|
+
} from "@hive-sdk/mcp";
|
|
143
|
+
|
|
144
|
+
export type {
|
|
150
145
|
MCPConfig,
|
|
151
|
-
|
|
152
|
-
} from "./mcp/index";
|
|
146
|
+
} from "@hive-sdk/mcp/config";
|
|
153
147
|
|
|
154
148
|
// Channels
|
|
155
149
|
export {
|
|
@@ -159,7 +153,7 @@ export {
|
|
|
159
153
|
WhatsAppChannel,
|
|
160
154
|
SlackChannel,
|
|
161
155
|
WebChatChannel,
|
|
162
|
-
} from "
|
|
156
|
+
} from "@hive-sdk/channels";
|
|
163
157
|
|
|
164
158
|
export type {
|
|
165
159
|
OutboundMessage,
|
|
@@ -174,26 +168,9 @@ export type {
|
|
|
174
168
|
SlackConfig,
|
|
175
169
|
SlackConnectionState,
|
|
176
170
|
WebChatConfig,
|
|
177
|
-
} from "
|
|
171
|
+
} from "@hive-sdk/channels";
|
|
178
172
|
|
|
179
|
-
//
|
|
180
|
-
export {
|
|
181
|
-
scheduleCreateTool,
|
|
182
|
-
scheduleListTool,
|
|
183
|
-
schedulePauseTool,
|
|
184
|
-
scheduleResumeTool,
|
|
185
|
-
scheduleDeleteTool,
|
|
186
|
-
scheduleTriggerTool,
|
|
187
|
-
scheduleHistoryTool,
|
|
188
|
-
createScheduleTools,
|
|
189
|
-
setSchedulerInstance,
|
|
190
|
-
createCronTools,
|
|
191
|
-
} from "./cron/index";
|
|
192
|
-
|
|
193
|
-
// Ethics
|
|
194
|
-
export { getAllEthics, activateEthics } from "./ethics/index";
|
|
195
|
-
|
|
196
|
-
// Database
|
|
173
|
+
// Storage / Database
|
|
197
174
|
export {
|
|
198
175
|
getDb,
|
|
199
176
|
initializeDatabase,
|
|
@@ -225,41 +202,103 @@ export {
|
|
|
225
202
|
getCoordinatorAgentId,
|
|
226
203
|
getDefaultAgentId,
|
|
227
204
|
getAgentConfig,
|
|
228
|
-
|
|
205
|
+
resolveAgentId,
|
|
206
|
+
resolveUserId,
|
|
207
|
+
} from "@hive-sdk/storage";
|
|
229
208
|
|
|
230
209
|
export type {
|
|
231
210
|
SCHEMA,
|
|
232
211
|
PROJECTS_SCHEMA,
|
|
233
212
|
CONTEXT_ENGINE_SCHEMA,
|
|
234
|
-
} from "
|
|
213
|
+
} from "@hive-sdk/storage";
|
|
214
|
+
|
|
215
|
+
// Gateway
|
|
216
|
+
export { startGateway } from "@hive-sdk/gateway";
|
|
217
|
+
|
|
218
|
+
// Scheduler
|
|
219
|
+
export {
|
|
220
|
+
CronScheduler,
|
|
221
|
+
executeScheduledTask,
|
|
222
|
+
createTaskHandler,
|
|
223
|
+
notifyTaskCompletion,
|
|
224
|
+
setSchedulerForCleanup,
|
|
225
|
+
} from "@hive-sdk/scheduler";
|
|
235
226
|
|
|
236
|
-
// Types
|
|
237
227
|
export type {
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
} from "
|
|
228
|
+
CronJob,
|
|
229
|
+
TaskRun,
|
|
230
|
+
CreateCronJobInput,
|
|
231
|
+
UpdateCronJobInput,
|
|
232
|
+
CronJobStatus,
|
|
233
|
+
CronJobExecutionHandler,
|
|
234
|
+
CronJobExecutionResult,
|
|
235
|
+
TaskType,
|
|
236
|
+
TaskStatus,
|
|
237
|
+
TaskRunStatus,
|
|
238
|
+
CronerOptions,
|
|
239
|
+
} from "@hive-sdk/scheduler";
|
|
240
|
+
|
|
241
|
+
// Events
|
|
242
|
+
export { eventBus } from "@hive-sdk/events";
|
|
243
|
+
|
|
244
|
+
// State
|
|
245
|
+
export { stateStore } from "@hive-sdk/state";
|
|
246
|
+
|
|
247
|
+
// Security
|
|
248
|
+
export {
|
|
249
|
+
TokenBucketRateLimiter,
|
|
250
|
+
SlidingWindowRateLimiter,
|
|
251
|
+
createTokenBucketLimiter,
|
|
252
|
+
createSlidingWindowLimiter,
|
|
253
|
+
} from "@hive-sdk/security";
|
|
254
|
+
|
|
255
|
+
// Config
|
|
256
|
+
export {
|
|
257
|
+
getHiveDir,
|
|
258
|
+
loadConfig,
|
|
259
|
+
expandConfigPath,
|
|
260
|
+
expandPath,
|
|
261
|
+
type Config,
|
|
262
|
+
type ProviderConfig,
|
|
263
|
+
type MCPServerConfig,
|
|
264
|
+
type AgentEntry,
|
|
265
|
+
type Binding,
|
|
266
|
+
type ConfigUserConfig,
|
|
267
|
+
} from "@hive-sdk/config";
|
|
268
|
+
|
|
269
|
+
// Canvas
|
|
270
|
+
export { canvasManager } from "@hive-sdk/canvas";
|
|
271
|
+
|
|
272
|
+
// Voice
|
|
273
|
+
export { voiceService } from "@hive-sdk/voice";
|
|
274
|
+
|
|
275
|
+
export type {
|
|
276
|
+
VoiceConfig,
|
|
277
|
+
AudioInput,
|
|
278
|
+
AudioOutput,
|
|
279
|
+
} from "@hive-sdk/voice";
|
|
280
|
+
|
|
281
|
+
// Multimodal
|
|
282
|
+
export { multimodalService } from "@hive-sdk/multimodal";
|
|
283
|
+
|
|
284
|
+
export type {
|
|
285
|
+
ContentPart,
|
|
286
|
+
ImageInput,
|
|
287
|
+
DocumentInput,
|
|
288
|
+
VisionConfig,
|
|
289
|
+
MultimodalMessageType,
|
|
290
|
+
} from "@hive-sdk/multimodal";
|
|
291
|
+
|
|
292
|
+
// Utils
|
|
293
|
+
export { logger, retry } from "@hive-sdk/utils";
|
|
294
|
+
|
|
295
|
+
// TTS
|
|
296
|
+
export {
|
|
297
|
+
isTTSAvailable,
|
|
298
|
+
synthesize,
|
|
299
|
+
synthesizeToFile,
|
|
300
|
+
listVoices,
|
|
301
|
+
detectPlatform,
|
|
302
|
+
} from "@hive-sdk/tts";
|
|
264
303
|
|
|
265
304
|
export const SDK_VERSION = "1.0.0";
|
package/src/mcp.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@hive-sdk/mcp";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@hive-sdk/multimodal";
|
package/src/scheduler.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@hive-sdk/scheduler";
|
package/src/security.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@hive-sdk/security";
|
package/src/skills.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@hive-sdk/skills";
|
package/src/state.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@hive-sdk/state";
|
package/src/storage.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@hive-sdk/storage";
|
package/src/tools.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@hive-sdk/tools";
|
package/src/tts.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@hive-sdk/tts";
|
package/src/types.ts
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
export type {
|
|
2
|
+
AgentDBRecord,
|
|
3
|
+
AgentServiceConfig,
|
|
4
|
+
AgentLoopOptions,
|
|
5
|
+
StepEvent,
|
|
6
|
+
StreamChunk,
|
|
7
|
+
LLMMessage,
|
|
8
|
+
LLMResponse,
|
|
9
|
+
LLMCallOptions,
|
|
10
|
+
LLMToolCall,
|
|
11
|
+
Provider,
|
|
12
|
+
ModelOptions,
|
|
13
|
+
ModelResponse,
|
|
14
|
+
} from "@hive-sdk/agent";
|
|
15
|
+
|
|
16
|
+
export type { Tool, ToolResult } from "@hive-sdk/tools";
|
|
17
|
+
|
|
18
|
+
export type {
|
|
19
|
+
OutboundMessage,
|
|
20
|
+
IncomingMessage,
|
|
21
|
+
ChannelConfig,
|
|
22
|
+
IChannel,
|
|
23
|
+
TelegramConfig,
|
|
24
|
+
DiscordConfig,
|
|
25
|
+
WhatsAppConfig,
|
|
26
|
+
WhatsAppConnectionState,
|
|
27
|
+
SlackConfig,
|
|
28
|
+
SlackConnectionState,
|
|
29
|
+
WebChatConfig,
|
|
30
|
+
} from "@hive-sdk/channels";
|
|
31
|
+
|
|
32
|
+
export type {
|
|
33
|
+
MCPTool,
|
|
34
|
+
MCPResource,
|
|
35
|
+
MCPPrompt,
|
|
36
|
+
} from "@hive-sdk/mcp";
|
|
37
|
+
|
|
38
|
+
export type {
|
|
39
|
+
MCPConfig,
|
|
40
|
+
MCPServerConfig,
|
|
41
|
+
} from "@hive-sdk/mcp/config";
|
|
42
|
+
|
|
43
|
+
export type {
|
|
44
|
+
Skill,
|
|
45
|
+
SkillMetadata,
|
|
46
|
+
SkillStep,
|
|
47
|
+
SkillExample,
|
|
48
|
+
OutputFormat,
|
|
49
|
+
SkillsConfig,
|
|
50
|
+
} from "@hive-sdk/skills";
|
|
51
|
+
|
|
52
|
+
export type {
|
|
53
|
+
StoredMessage,
|
|
54
|
+
} from "@hive-sdk/agent";
|
|
55
|
+
|
|
56
|
+
export type {
|
|
57
|
+
CronJob,
|
|
58
|
+
TaskRun,
|
|
59
|
+
CreateCronJobInput,
|
|
60
|
+
UpdateCronJobInput,
|
|
61
|
+
CronJobStatus,
|
|
62
|
+
CronJobExecutionHandler,
|
|
63
|
+
CronJobExecutionResult,
|
|
64
|
+
TaskType,
|
|
65
|
+
TaskStatus,
|
|
66
|
+
TaskRunStatus,
|
|
67
|
+
CronerOptions,
|
|
68
|
+
} from "@hive-sdk/scheduler";
|
|
69
|
+
|
|
70
|
+
export type {
|
|
71
|
+
VoiceConfig,
|
|
72
|
+
AudioInput,
|
|
73
|
+
AudioOutput,
|
|
74
|
+
} from "@hive-sdk/voice";
|
|
75
|
+
|
|
76
|
+
export type {
|
|
77
|
+
ContentPart,
|
|
78
|
+
ImageInput,
|
|
79
|
+
DocumentInput,
|
|
80
|
+
VisionConfig,
|
|
81
|
+
MultimodalMessageType,
|
|
82
|
+
} from "@hive-sdk/multimodal";
|
package/src/utils.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@hive-sdk/utils";
|
package/src/voice.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@hive-sdk/voice";
|