hyperclaw 5.0.1 → 5.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/LICENSE +2 -1
- package/README.md +247 -32
- package/dist/a2ui-protocol-Gzm29Gaw.js +75 -0
- package/dist/agents-routing-Biy5ew4a.js +4 -0
- package/dist/agents-routing-CL3HQNoM.js +327 -0
- package/dist/api-keys-guide-ChbThbPj.js +149 -0
- package/dist/audit-NPIMmOSq.js +441 -0
- package/dist/bounty-tools-BUqUKjt0.js +211 -0
- package/dist/browser-tools-CxJY6pAn.js +5 -0
- package/dist/browser-tools-JZ9ji6AW.js +179 -0
- package/dist/chat-qVuqhlPu.js +258 -0
- package/dist/claw-tasks-B-8RRMdq.js +80 -0
- package/dist/connector-1x1rCBHz.js +162 -0
- package/dist/connector-B4jeCULG.js +305 -0
- package/dist/connector-B7qngfkT.js +286 -0
- package/dist/connector-B8BK0GBo.js +531 -0
- package/dist/connector-BE9eJs8-.js +182 -0
- package/dist/connector-BEe-DTGQ.js +189 -0
- package/dist/connector-BU7p5ZgB.js +167 -0
- package/dist/connector-BUzzq7Ij.js +568 -0
- package/dist/connector-BpDqLgnW.js +419 -0
- package/dist/connector-BpW88ut2.js +189 -0
- package/dist/connector-Bxv-gy8U.js +167 -0
- package/dist/connector-Bz14zcJv.js +213 -0
- package/dist/connector-C1zP5-5q.js +85 -0
- package/dist/connector-CAcpcovF.js +498 -0
- package/dist/connector-CJgVjS58.js +181 -0
- package/dist/connector-Cf53D6qV.js +425 -0
- package/dist/connector-CyHmlbNz.js +508 -0
- package/dist/connector-D22mJGVu.js +340 -0
- package/dist/connector-D6RtMmlL.js +225 -0
- package/dist/connector-D9EnT8A4.js +280 -0
- package/dist/connector-DNDwIh37.js +239 -0
- package/dist/connector-Di27MeO4.js +350 -0
- package/dist/connector-Do0BPiHt.js +194 -0
- package/dist/connector-DvLwOfJy.js +192 -0
- package/dist/connector-DvU83NSq.js +181 -0
- package/dist/connector-DxskpDc_.js +173 -0
- package/dist/connector-byy3eISx.js +552 -0
- package/dist/connector-vV89hsyd.js +218 -0
- package/dist/cost-tracker-fnaj_6M9.js +103 -0
- package/dist/credentials-store-BxijEirw.js +77 -0
- package/dist/credentials-store-CPkVO6-z.js +4 -0
- package/dist/cron-tasks-L0mz1yyU.js +82 -0
- package/dist/daemon-CNyunwkR.js +5 -0
- package/dist/daemon-CindY8OK.js +318 -0
- package/dist/delivery-DgiZcJBp.js +4 -0
- package/dist/delivery-otAU4alM.js +95 -0
- package/dist/destructive-gate-CA0DtA5K.js +101 -0
- package/dist/developer-keys-Cnd1kswV.js +127 -0
- package/dist/developer-keys-DENo3ZA6.js +8 -0
- package/dist/doctor-Dgjoc3DG.js +230 -0
- package/dist/doctor-RwsOhtAl.js +6 -0
- package/dist/engine-D_VeoZHw.js +305 -0
- package/dist/engine-JjRnhlsE.js +7 -0
- package/dist/env-resolve-BFJXWl94.js +115 -0
- package/dist/env-resolve-bDYssfih.js +10 -0
- package/dist/extraction-tools-DbxnxIco.js +5 -0
- package/dist/extraction-tools-Dg7AHS35.js +91 -0
- package/dist/form_data-CGAy4HE0.js +8657 -0
- package/dist/gmail-watch-setup-C3uSWznp.js +40 -0
- package/dist/health-DUjluWHQ.js +6 -0
- package/dist/health-DVfkpUQW.js +152 -0
- package/dist/heartbeat-engine-CrgL4mrP.js +83 -0
- package/dist/hub-BO6bj8Yj.js +515 -0
- package/dist/hub-Bu52YZqW.js +6 -0
- package/dist/hyperclawbot-BrcoYLOp.js +505 -0
- package/dist/inference-DHR82Gh7.js +6 -0
- package/dist/inference-DhA8jpfH.js +2692 -0
- package/dist/knowledge-graph-BrYpSgxW.js +131 -0
- package/dist/loader-9JqY6Nlq.js +4 -0
- package/dist/loader-Cjdd1kw4.js +400 -0
- package/dist/logger-DCT2l9GV.js +83 -0
- package/dist/manager-3cq3DydI.js +4 -0
- package/dist/manager-BUrFrPuq.js +117 -0
- package/dist/manager-Bi9UYyVR.js +105 -0
- package/dist/manager-Biz9ixWJ.js +40 -0
- package/dist/manager-CBUHJiY7.js +6 -0
- package/dist/manager-CVLLaKmq.js +218 -0
- package/dist/mcp-CUoTCMw-.js +139 -0
- package/dist/mcp-loader-BIz-450x.js +94 -0
- package/dist/memory-OL77OMOr.js +270 -0
- package/dist/memory-auto-D-L2q21G.js +306 -0
- package/dist/memory-auto-DTcy5VBy.js +5 -0
- package/dist/memory-gUi4VaIf.js +4 -0
- package/dist/memory-integration-B8RSN4pr.js +91 -0
- package/dist/moltbook-B-40gQOL.js +81 -0
- package/dist/node-TWxRm84k.js +222 -0
- package/dist/nodes-registry-DKRtsbNg.js +52 -0
- package/dist/oauth-flow-JCfporKq.js +150 -0
- package/dist/oauth-provider-4R0EJlsT.js +110 -0
- package/dist/observability-CDZmeHfa.js +89 -0
- package/dist/onboard-BVOtKQdh.js +3641 -0
- package/dist/onboard-CGNIw27w.js +11 -0
- package/dist/orchestrator-CcKx1Ovk.js +189 -0
- package/dist/orchestrator-DcFfDLTX.js +6 -0
- package/dist/osint-B6BZKQAD.js +277 -0
- package/dist/pairing-B6RArWhD.js +196 -0
- package/dist/pairing-BsQ08DLq.js +4 -0
- package/dist/pc-access-B0KocJNe.js +819 -0
- package/dist/pc-access-DkzmugZ7.js +8 -0
- package/dist/pending-approval-C_HkX1QL.js +22 -0
- package/dist/providers-DxiamZSL.js +5 -0
- package/dist/providers-Dy15rDb7.js +657 -0
- package/dist/reminders-store-CzUY0zYx.js +58 -0
- package/dist/renderer-ANNfXsHn.js +225 -0
- package/dist/rules-BSQwwAYC.js +103 -0
- package/dist/run-main.js +112 -117
- package/dist/runner-BHRSOPEU.js +1271 -0
- package/dist/security--oQObeJO.js +4 -0
- package/dist/security-wBOg0TA8.js +73 -0
- package/dist/server-CbTTpB5m.js +1255 -0
- package/dist/server-DP_bPzvI.js +4 -0
- package/dist/session-store-B09r5HgB.js +5 -0
- package/dist/session-store-DCTQIVur.js +113 -0
- package/dist/sessions-tools-BdlN6Pb6.js +95 -0
- package/dist/sessions-tools-JVLDKSJ_.js +5 -0
- package/dist/skill-loader-B5oeliGu.js +7 -0
- package/dist/skill-loader-Wf3brNOj.js +160 -0
- package/dist/skill-runtime-BGlvly2s.js +102 -0
- package/dist/skill-runtime-DhL2T76p.js +5 -0
- package/dist/src-BbPa6Q8p.js +63 -0
- package/dist/src-BeXtfkK2.js +458 -0
- package/dist/src-CGQjRI4N.js +20 -0
- package/dist/sub-agent-tools-CmE345s_.js +39 -0
- package/dist/theme-D0smfC_l.js +8 -0
- package/dist/theme-DajRRZbA.js +180 -0
- package/dist/tool-policy-DgNqFWYn.js +189 -0
- package/dist/tts-elevenlabs-JeFaGNJU.js +61 -0
- package/dist/update-check-BVEqHhFY.js +83 -0
- package/dist/vision-fky3elEo.js +121 -0
- package/dist/vision-tools-C8B3776g.js +5 -0
- package/dist/vision-tools-dwn9p4el.js +51 -0
- package/dist/voice-transcription-B6RtplmN.js +138 -0
- package/dist/website-watch-tools-B-jRAeTe.js +139 -0
- package/dist/website-watch-tools-BC9xAL67.js +5 -0
- package/package.json +1 -1
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-jS-bbMI5.js');
|
|
2
|
+
const fs_extra = require_chunk.__toESM(require("fs-extra"));
|
|
3
|
+
const path = require_chunk.__toESM(require("path"));
|
|
4
|
+
const os = require_chunk.__toESM(require("os"));
|
|
5
|
+
const crypto = require_chunk.__toESM(require("crypto"));
|
|
6
|
+
const http = require_chunk.__toESM(require("http"));
|
|
7
|
+
const https = require_chunk.__toESM(require("https"));
|
|
8
|
+
|
|
9
|
+
//#region packages/core/src/agent/website-watch-tools.ts
|
|
10
|
+
async function fetchUrl(url) {
|
|
11
|
+
return new Promise((resolve, reject) => {
|
|
12
|
+
const client = url.startsWith("https") ? https.default : http.default;
|
|
13
|
+
const req = client.get(url, { timeout: 15e3 }, (res) => {
|
|
14
|
+
let data = "";
|
|
15
|
+
res.on("data", (c) => data += c);
|
|
16
|
+
res.on("end", () => resolve(data));
|
|
17
|
+
});
|
|
18
|
+
req.on("error", reject);
|
|
19
|
+
req.on("timeout", () => {
|
|
20
|
+
req.destroy();
|
|
21
|
+
reject(new Error("Timeout"));
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
function hashContent(html) {
|
|
26
|
+
const cleaned = html.replace(/\s+/g, " ").replace(/<script[^>]*>[\s\S]*?<\/script>/gi, "").slice(0, 5e4);
|
|
27
|
+
return crypto.default.createHash("sha256").update(cleaned).digest("hex").slice(0, 16);
|
|
28
|
+
}
|
|
29
|
+
async function loadWatches() {
|
|
30
|
+
try {
|
|
31
|
+
return await fs_extra.default.readJson(WATCH_FILE);
|
|
32
|
+
} catch {
|
|
33
|
+
return {};
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
async function saveWatches(watches) {
|
|
37
|
+
await fs_extra.default.ensureDir(path.default.dirname(WATCH_FILE));
|
|
38
|
+
await fs_extra.default.writeJson(WATCH_FILE, watches, { spaces: 2 });
|
|
39
|
+
}
|
|
40
|
+
function getWebsiteWatchTools() {
|
|
41
|
+
return [
|
|
42
|
+
{
|
|
43
|
+
name: "watch_website_add",
|
|
44
|
+
description: "Add a URL to the website change watch list. Use with watch_website_check to detect changes.",
|
|
45
|
+
input_schema: {
|
|
46
|
+
type: "object",
|
|
47
|
+
properties: { url: {
|
|
48
|
+
type: "string",
|
|
49
|
+
description: "URL to watch (e.g. https://example.com)"
|
|
50
|
+
} },
|
|
51
|
+
required: ["url"]
|
|
52
|
+
},
|
|
53
|
+
handler: async (input) => {
|
|
54
|
+
const url = input.url.trim();
|
|
55
|
+
if (!url.startsWith("http")) return "Error: URL must start with http:// or https://";
|
|
56
|
+
const watches = await loadWatches();
|
|
57
|
+
const content = await fetchUrl(url).catch((e) => `[fetch error: ${e.message}]`);
|
|
58
|
+
const hash = hashContent(content);
|
|
59
|
+
watches[url] = {
|
|
60
|
+
url,
|
|
61
|
+
lastHash: hash,
|
|
62
|
+
lastCheck: (/* @__PURE__ */ new Date()).toISOString(),
|
|
63
|
+
lastSnippet: content.slice(0, 200)
|
|
64
|
+
};
|
|
65
|
+
await saveWatches(watches);
|
|
66
|
+
return `Added: ${url}. Initial hash: ${hash}`;
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
name: "watch_website_check",
|
|
71
|
+
description: "Check watched URLs for changes. Returns list of URLs that changed since last check.",
|
|
72
|
+
input_schema: {
|
|
73
|
+
type: "object",
|
|
74
|
+
properties: { url: {
|
|
75
|
+
type: "string",
|
|
76
|
+
description: "Specific URL to check (optional — checks all if omitted)"
|
|
77
|
+
} }
|
|
78
|
+
},
|
|
79
|
+
handler: async (input) => {
|
|
80
|
+
const watches = await loadWatches();
|
|
81
|
+
const filterUrl = input.url;
|
|
82
|
+
const toCheck = filterUrl ? [filterUrl] : Object.keys(watches);
|
|
83
|
+
const changed = [];
|
|
84
|
+
for (const url of toCheck) {
|
|
85
|
+
const ent = watches[url];
|
|
86
|
+
if (!ent) continue;
|
|
87
|
+
try {
|
|
88
|
+
const content = await fetchUrl(url);
|
|
89
|
+
const hash = hashContent(content);
|
|
90
|
+
ent.lastCheck = (/* @__PURE__ */ new Date()).toISOString();
|
|
91
|
+
if (hash !== ent.lastHash) {
|
|
92
|
+
ent.lastHash = hash;
|
|
93
|
+
ent.lastSnippet = content.slice(0, 300);
|
|
94
|
+
changed.push(url);
|
|
95
|
+
}
|
|
96
|
+
watches[url] = ent;
|
|
97
|
+
} catch (e) {
|
|
98
|
+
changed.push(`${url} [error: ${e.message}]`);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
await saveWatches(watches);
|
|
102
|
+
if (changed.length === 0) return "No changes detected.";
|
|
103
|
+
return `Changed: ${changed.join(", ")}`;
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
name: "watch_website_list",
|
|
108
|
+
description: "List all watched URLs.",
|
|
109
|
+
input_schema: {
|
|
110
|
+
type: "object",
|
|
111
|
+
properties: {}
|
|
112
|
+
},
|
|
113
|
+
handler: async () => {
|
|
114
|
+
const watches = await loadWatches();
|
|
115
|
+
const urls = Object.keys(watches);
|
|
116
|
+
if (urls.length === 0) return "No watched URLs. Add with watch_website_add.";
|
|
117
|
+
return urls.map((u) => `- ${u} (last: ${watches[u].lastCheck})`).join("\n");
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
];
|
|
121
|
+
}
|
|
122
|
+
var WATCH_FILE;
|
|
123
|
+
var init_website_watch_tools = require_chunk.__esm({ "packages/core/src/agent/website-watch-tools.ts"() {
|
|
124
|
+
WATCH_FILE = path.default.join(os.default.homedir(), ".hyperclaw", "website-watches.json");
|
|
125
|
+
} });
|
|
126
|
+
|
|
127
|
+
//#endregion
|
|
128
|
+
Object.defineProperty(exports, 'getWebsiteWatchTools', {
|
|
129
|
+
enumerable: true,
|
|
130
|
+
get: function () {
|
|
131
|
+
return getWebsiteWatchTools;
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
Object.defineProperty(exports, 'init_website_watch_tools', {
|
|
135
|
+
enumerable: true,
|
|
136
|
+
get: function () {
|
|
137
|
+
return init_website_watch_tools;
|
|
138
|
+
}
|
|
139
|
+
});
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-jS-bbMI5.js');
|
|
2
|
+
const require_website_watch_tools = require('./website-watch-tools-B-jRAeTe.js');
|
|
3
|
+
|
|
4
|
+
require_website_watch_tools.init_website_watch_tools();
|
|
5
|
+
exports.getWebsiteWatchTools = require_website_watch_tools.getWebsiteWatchTools;
|