hovclaw 0.1.0
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/LICENSE +21 -0
- package/README.md +280 -0
- package/dist/doctor-I8YVuapp.js +211 -0
- package/dist/gateway/ui/app.js +512 -0
- package/dist/gateway/ui/credentials.d.ts +19 -0
- package/dist/gateway/ui/credentials.js +66 -0
- package/dist/gateway/ui/index.html +209 -0
- package/dist/gateway/ui/styles.css +208 -0
- package/dist/hovclaw.js +5250 -0
- package/dist/index.js +5742 -0
- package/dist/login-Ca1_XRup.js +47 -0
- package/dist/oauth-6sxOTr3f.js +62 -0
- package/dist/onboard-Cgbgh2Jn.js +1314 -0
- package/dist/src-D_mIwpeq.js +2032 -0
- package/hovclaw.mjs +37 -0
- package/package.json +64 -0
package/hovclaw.mjs
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import module from "node:module";
|
|
4
|
+
|
|
5
|
+
// https://nodejs.org/api/module.html#module-compile-cache
|
|
6
|
+
if (module.enableCompileCache && !process.env.NODE_DISABLE_COMPILE_CACHE) {
|
|
7
|
+
try {
|
|
8
|
+
module.enableCompileCache();
|
|
9
|
+
} catch {
|
|
10
|
+
// Ignore errors
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const isModuleNotFoundError = (err) =>
|
|
15
|
+
err && typeof err === "object" && "code" in err && err.code === "ERR_MODULE_NOT_FOUND";
|
|
16
|
+
|
|
17
|
+
const tryImport = async (specifier) => {
|
|
18
|
+
try {
|
|
19
|
+
await import(specifier);
|
|
20
|
+
return true;
|
|
21
|
+
} catch (err) {
|
|
22
|
+
if (isModuleNotFoundError(err)) {
|
|
23
|
+
return false;
|
|
24
|
+
}
|
|
25
|
+
throw err;
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
if (await tryImport("./dist/hovclaw.js")) {
|
|
30
|
+
// OK — bundled CLI entry
|
|
31
|
+
} else if (await tryImport("./dist/hovclaw.mjs")) {
|
|
32
|
+
// OK — alternative extension
|
|
33
|
+
} else if (await tryImport("./dist/src/cli/hovclaw.js")) {
|
|
34
|
+
// OK — tsc output fallback
|
|
35
|
+
} else {
|
|
36
|
+
throw new Error("hovclaw: missing dist/hovclaw.(m)js (build output). Run `bun run build` first.");
|
|
37
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "hovclaw",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Multi-channel AI agent gateway",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": ">=22"
|
|
9
|
+
},
|
|
10
|
+
"bin": {
|
|
11
|
+
"hovclaw": "hovclaw.mjs"
|
|
12
|
+
},
|
|
13
|
+
"main": "dist/index.js",
|
|
14
|
+
"exports": {
|
|
15
|
+
".": "./dist/index.js",
|
|
16
|
+
"./cli-entry": "./hovclaw.mjs"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"dist/",
|
|
20
|
+
"hovclaw.mjs",
|
|
21
|
+
"README.md",
|
|
22
|
+
"LICENSE"
|
|
23
|
+
],
|
|
24
|
+
"scripts": {
|
|
25
|
+
"build": "tsdown && mkdir -p dist/gateway && cp -r src/gateway/ui dist/gateway/ui",
|
|
26
|
+
"build:tsc": "tsc -p tsconfig.json",
|
|
27
|
+
"build:container": "docker build -f Dockerfile.agent -t hovclaw-agent:latest .",
|
|
28
|
+
"prepack": "bun run build",
|
|
29
|
+
"dev": "tsx src/index.ts",
|
|
30
|
+
"onboard": "tsx src/cli/onboard.ts",
|
|
31
|
+
"login": "tsx src/cli/login.ts",
|
|
32
|
+
"doctor": "tsx src/cli/doctor.ts",
|
|
33
|
+
"test": "vitest run",
|
|
34
|
+
"test:watch": "vitest",
|
|
35
|
+
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
36
|
+
},
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"@clack/prompts": "^0.10.1",
|
|
39
|
+
"@mariozechner/pi-agent-core": "0.52.9",
|
|
40
|
+
"@mariozechner/pi-ai": "0.52.9",
|
|
41
|
+
"@mozilla/readability": "^0.6.0",
|
|
42
|
+
"better-sqlite3": "^12.4.1",
|
|
43
|
+
"commander": "^14.0.3",
|
|
44
|
+
"croner": "^9.1.0",
|
|
45
|
+
"discord.js": "^14.25.1",
|
|
46
|
+
"dotenv": "^17.2.3",
|
|
47
|
+
"jsdom": "^27.0.1",
|
|
48
|
+
"pino": "^9.14.0",
|
|
49
|
+
"rss-parser": "^3.13.0",
|
|
50
|
+
"ws": "^8.18.0",
|
|
51
|
+
"yaml": "^2.8.1",
|
|
52
|
+
"zod": "^4.1.5"
|
|
53
|
+
},
|
|
54
|
+
"devDependencies": {
|
|
55
|
+
"@types/better-sqlite3": "^7.6.13",
|
|
56
|
+
"@types/jsdom": "^27.0.0",
|
|
57
|
+
"@types/node": "^24.3.0",
|
|
58
|
+
"@types/ws": "^8.5.13",
|
|
59
|
+
"tsdown": "^0.20.3",
|
|
60
|
+
"tsx": "^4.20.6",
|
|
61
|
+
"typescript": "^5.9.2",
|
|
62
|
+
"vitest": "^3.2.4"
|
|
63
|
+
}
|
|
64
|
+
}
|