@johpaz/hive-sdk 0.0.3 → 0.0.5
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.js +15379 -28
- package/dist/channels/index.js +7365 -7
- package/dist/cron/index.d.ts +1 -1
- package/dist/cron/index.js +2447 -24
- package/dist/database/index.js +5711 -22
- package/dist/ethics/index.js +5708 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +18093 -176
- package/dist/mcp/index.js +698 -3
- package/dist/skills/index.js +3237 -4
- package/dist/tools/index.d.ts +1 -1
- package/dist/tools/index.js +15251 -85
- package/package.json +21 -7
- package/src/cron/index.ts +6 -4
- package/src/index.ts +6 -4
- package/src/tools/index.ts +7 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@johpaz/hive-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
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,21 +13,35 @@
|
|
|
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 --
|
|
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 --external zod --external @google/genai --external @anthropic-ai/sdk --external openai --external ollama --external grammy --external discord.js --external @slack/bolt --external @whiskeysockets/baileys --external puppeteer --external @puppeteer/browsers --external better-sqlite3 --external @modelcontextprotocol/sdk --external croner --external js-yaml --external jszip --external mammoth --external pdf-lib --external pdfjs-dist --external pptxgenjs --external xlsx --external docx --external qrcode-terminal --external toon-format-parser --external @sapphire/snowflake --external @ag-ui/core && 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
|
-
"@johpaz/hive-agents-core": "^0.0.10",
|
|
24
|
-
"@johpaz/hive-agents-mcp": "^0.0.10",
|
|
25
|
-
"@johpaz/hive-agents-skills": "^0.0.10",
|
|
26
|
-
"@johpaz/hive-agents-code-bridge": "^0.0.10",
|
|
27
23
|
"typescript": "^5.0.0"
|
|
28
24
|
},
|
|
25
|
+
"peerDependenciesMeta": {
|
|
26
|
+
"typescript": {
|
|
27
|
+
"optional": true
|
|
28
|
+
}
|
|
29
|
+
},
|
|
29
30
|
"dependencies": {
|
|
30
|
-
"zod": "latest"
|
|
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
|
+
"better-sqlite3": "latest",
|
|
44
|
+
"@modelcontextprotocol/sdk": "latest"
|
|
31
45
|
},
|
|
32
46
|
"devDependencies": {
|
|
33
47
|
"@types/bun": "latest",
|
package/src/cron/index.ts
CHANGED
|
@@ -28,11 +28,13 @@ export {
|
|
|
28
28
|
// Legacy cron tools (cron_jobs table) - re-export for backward compatibility
|
|
29
29
|
// Note: These are also available via @johpaz/hive-agents-sdk/tools
|
|
30
30
|
export {
|
|
31
|
-
|
|
31
|
+
cronCreateTool,
|
|
32
32
|
cronListTool,
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
cronPauseTool,
|
|
34
|
+
cronResumeTool,
|
|
35
|
+
cronDeleteTool,
|
|
36
|
+
cronTriggerTool,
|
|
37
|
+
cronHistoryTool,
|
|
35
38
|
createTools as createCronTools,
|
|
36
|
-
initCronScheduler,
|
|
37
39
|
resolveBestChannel,
|
|
38
40
|
} from "@johpaz/hive-agents-core/tools/cron";
|
package/src/index.ts
CHANGED
|
@@ -97,11 +97,13 @@ export {
|
|
|
97
97
|
taskCreateTool,
|
|
98
98
|
taskUpdateTool,
|
|
99
99
|
taskEvaluateTool,
|
|
100
|
-
|
|
100
|
+
cronCreateTool,
|
|
101
101
|
cronListTool,
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
102
|
+
cronPauseTool,
|
|
103
|
+
cronResumeTool,
|
|
104
|
+
cronDeleteTool,
|
|
105
|
+
cronTriggerTool,
|
|
106
|
+
cronHistoryTool,
|
|
105
107
|
resolveBestChannel,
|
|
106
108
|
cliExecTool,
|
|
107
109
|
canvasRenderTool,
|
package/src/tools/index.ts
CHANGED
|
@@ -51,11 +51,14 @@ export {
|
|
|
51
51
|
} from "@johpaz/hive-agents-core/tools/projects";
|
|
52
52
|
|
|
53
53
|
export {
|
|
54
|
-
|
|
54
|
+
cronCreateTool,
|
|
55
55
|
cronListTool,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
cronPauseTool,
|
|
57
|
+
cronResumeTool,
|
|
58
|
+
cronDeleteTool,
|
|
59
|
+
cronTriggerTool,
|
|
60
|
+
cronHistoryTool,
|
|
61
|
+
setSchedulerInstance,
|
|
59
62
|
resolveBestChannel,
|
|
60
63
|
} from "@johpaz/hive-agents-core/tools/cron";
|
|
61
64
|
|