hyperclaw 5.3.4 → 5.4.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.
Files changed (84) hide show
  1. package/dist/banner-3jmKGq6t.js +143 -0
  2. package/dist/banner-B2Qo91lq.js +143 -0
  3. package/dist/banner-BhOid_rp.js +7 -0
  4. package/dist/banner-C5D09Afq.js +7 -0
  5. package/dist/banner-CmNA9NKE.js +7 -0
  6. package/dist/banner-D3-Ik5d2.js +143 -0
  7. package/dist/banner-D3X8tQ-0.js +7 -0
  8. package/dist/banner-DG3v43xA.js +143 -0
  9. package/dist/chat-BGD9AWhr.js +523 -0
  10. package/dist/chat-D-i8bqTf.js +523 -0
  11. package/dist/chat-D8wFNN4z.js +523 -0
  12. package/dist/daemon-BXfbyPBf.js +7 -0
  13. package/dist/daemon-C4j0wqxz.js +421 -0
  14. package/dist/daemon-CUNaq2Ls.js +421 -0
  15. package/dist/daemon-D-klsy3i.js +7 -0
  16. package/dist/daemon-D_bYfHgn.js +421 -0
  17. package/dist/daemon-DcE6vcjH.js +421 -0
  18. package/dist/daemon-IU5UIMJo.js +7 -0
  19. package/dist/daemon-NFwpuo3L.js +7 -0
  20. package/dist/engine-2Tc-z0e4.js +7 -0
  21. package/dist/engine-B7Q4Vx-C.js +7 -0
  22. package/dist/engine-C-G3G-U7.js +7 -0
  23. package/dist/engine-DQ3hT5JD.js +327 -0
  24. package/dist/engine-DRpy9Y5O.js +327 -0
  25. package/dist/engine-DetHi9LP.js +327 -0
  26. package/dist/hyperclawbot-BqyZr2GM.js +516 -0
  27. package/dist/hyperclawbot-DTzP20Up.js +516 -0
  28. package/dist/hyperclawbot-DcQt62PL.js +516 -0
  29. package/dist/mcp-loader-BAGRKfJz.js +93 -0
  30. package/dist/mcp-loader-CPlsbcja.js +93 -0
  31. package/dist/mcp-loader-Dt64EewT.js +93 -0
  32. package/dist/onboard-32d2Gsuy.js +14 -0
  33. package/dist/onboard-BF29mNbC.js +14 -0
  34. package/dist/onboard-C7vJegQc.js +3812 -0
  35. package/dist/onboard-CJKxKPBH.js +3812 -0
  36. package/dist/onboard-Cgj_CIrq.js +3812 -0
  37. package/dist/onboard-ChnsqU5z.js +14 -0
  38. package/dist/onboard-CjzqTYq3.js +3812 -0
  39. package/dist/onboard-CytL65jh.js +14 -0
  40. package/dist/orchestrator-Bcj7uc1F.js +189 -0
  41. package/dist/orchestrator-C7oLWNFW.js +6 -0
  42. package/dist/orchestrator-Cuyqncql.js +189 -0
  43. package/dist/orchestrator-CxlEm5li.js +6 -0
  44. package/dist/orchestrator-DcEHTInR.js +6 -0
  45. package/dist/orchestrator-PQY07fH7.js +189 -0
  46. package/dist/osint-ADgw_Gkd.js +283 -0
  47. package/dist/osint-B5j3IuJK.js +283 -0
  48. package/dist/osint-DsUwGzgP.js +283 -0
  49. package/dist/osint-DtRd_A_O.js +283 -0
  50. package/dist/osint-chat-BbH6eW8z.js +789 -0
  51. package/dist/osint-chat-CfexqWop.js +789 -0
  52. package/dist/osint-chat-DdclrVa6.js +789 -0
  53. package/dist/osint-chat-xRP672b-.js +789 -0
  54. package/dist/run-main.js +103 -44
  55. package/dist/server-6TIyu0mb.js +4 -0
  56. package/dist/server-C9f6qtEW.js +1366 -0
  57. package/dist/server-CdlilrcS.js +4 -0
  58. package/dist/server-Da_jSrfS.js +4 -0
  59. package/dist/server-DfrmKeE6.js +1356 -0
  60. package/dist/server-gai_RW1u.js +1356 -0
  61. package/dist/server-rHap51o6.js +4 -0
  62. package/dist/server-vbYKep6r.js +1356 -0
  63. package/dist/skill-runtime-249xckq3.js +5 -0
  64. package/dist/skill-runtime-Bv59FUVu.js +104 -0
  65. package/dist/skill-runtime-CHQT7c1k.js +5 -0
  66. package/dist/skill-runtime-Cfd0OLkP.js +104 -0
  67. package/dist/skill-runtime-Dr0fimDf.js +5 -0
  68. package/dist/skill-runtime-DtO4i9vK.js +104 -0
  69. package/dist/src-CDLnbsLp.js +458 -0
  70. package/dist/src-ClYgvXAj.js +63 -0
  71. package/dist/src-D4VRanxB.js +458 -0
  72. package/dist/src-DK-ayUx7.js +63 -0
  73. package/dist/src-DiYkDVnn.js +458 -0
  74. package/dist/src-H1I7JC2E.js +63 -0
  75. package/dist/sub-agent-tools-8-Imp1B5.js +39 -0
  76. package/dist/sub-agent-tools-BoMCZ6jz.js +39 -0
  77. package/dist/sub-agent-tools-Dla3ZB5N.js +39 -0
  78. package/package.json +145 -143
  79. package/scripts/fix-mojibake.mjs +166 -0
  80. package/static/chat.html +764 -764
  81. package/static/web/assets/index-B5N1LHGR.css +1 -0
  82. package/static/web/assets/{index-BhCDgT5S.js → index-Bf8pf7Wg.js} +1 -1
  83. package/static/web/index.html +2 -2
  84. package/static/web/assets/index-D2RfO0dG.css +0 -1
@@ -0,0 +1,5 @@
1
+ const require_chunk = require('./chunk-jS-bbMI5.js');
2
+ const require_skill_runtime = require('./skill-runtime-Bv59FUVu.js');
3
+
4
+ require_skill_runtime.init_skill_runtime();
5
+ exports.getSkillInvokeTools = require_skill_runtime.getSkillInvokeTools;
@@ -0,0 +1,104 @@
1
+ const require_chunk = require('./chunk-jS-bbMI5.js');
2
+
3
+ //#region packages/core/src/agent/skill-runtime.ts
4
+ /** Extract execution contract from skill content. Parses ## Execution or ## Invoke blocks. */
5
+ function extractExecutionContract(skill) {
6
+ const raw = skill.content || "";
7
+ const content = raw.length > 1e5 ? raw.slice(0, 1e5) : raw;
8
+ const execMatch = content.match(/##\s*(?:Execution|Invoke)\s*\n+([\s\S]*?)(?=\n## |\n# |$)/i);
9
+ if (!execMatch) return null;
10
+ const block = execMatch[1].trim();
11
+ const contract = {
12
+ skillId: skill.id,
13
+ invokeMode: "prompt"
14
+ };
15
+ const schemaMatch = block.match(/input\s*:\s*\{([^}]+)\}/i) || block.match(/params\s*:\s*\{([^}]+)\}/i);
16
+ if (schemaMatch) {
17
+ const props = {};
18
+ const safeBlock = schemaMatch[1].slice(0, 2e3);
19
+ const parts = safeBlock.split(",");
20
+ for (const p of parts) {
21
+ const [key, typeDesc] = p.split(":").map((s) => s.trim());
22
+ if (key) props[key] = {
23
+ type: typeDesc || "string",
24
+ description: ""
25
+ };
26
+ }
27
+ contract.inputSchema = {
28
+ properties: props,
29
+ required: Object.keys(props)
30
+ };
31
+ }
32
+ if (block.toLowerCase().includes("subagent") || block.toLowerCase().includes("full run")) contract.invokeMode = "subagent";
33
+ return contract;
34
+ }
35
+ /** Invoke a skill with params. Runs as focused prompt or subagent call. */
36
+ async function invokeSkill(skillId, params, opts) {
37
+ const { loadSkills } = await Promise.resolve().then(() => require("./skill-loader-DK19Jm4e.js"));
38
+ const skills = opts?.skills ?? await loadSkills();
39
+ const skill = skills.find((s) => s.id === skillId);
40
+ if (!skill) return `Error: Skill "${skillId}" not found.`;
41
+ const contract = extractExecutionContract(skill);
42
+ const inputStr = Object.entries(params).map(([k, v]) => `${k}: ${typeof v === "object" ? JSON.stringify(v) : v}`).join(", ");
43
+ const { runAgentEngine } = await Promise.resolve().then(() => require("./engine-2Tc-z0e4.js"));
44
+ const prompt = `Execute the skill "${skillId}" with these inputs: ${inputStr}\n\nFollow the skill instructions exactly. Output only the result.`;
45
+ const result = await runAgentEngine(prompt, {});
46
+ return result.text;
47
+ }
48
+ /** Build tools for skill invocation. Agent can call invoke_skill(skillId, params). */
49
+ function getSkillInvokeTools(skills) {
50
+ const invokable = skills.filter((s) => extractExecutionContract(s) || s.capabilities);
51
+ if (invokable.length === 0) return [];
52
+ const descriptions = invokable.map((s) => `- ${s.id}: ${s.capabilities || s.title || "no description"}`).join("\n");
53
+ return [{
54
+ name: "invoke_skill",
55
+ description: `Invoke a loaded skill by id. Available: ${invokable.map((s) => s.id).join(", ")}. Use when the user wants to run a specific capability.`,
56
+ input_schema: {
57
+ type: "object",
58
+ properties: {
59
+ skill_id: {
60
+ type: "string",
61
+ description: `Skill id. Options: ${invokable.map((s) => s.id).join(", ")}`
62
+ },
63
+ params: {
64
+ type: "object",
65
+ description: "Optional key-value params for the skill"
66
+ }
67
+ },
68
+ required: ["skill_id"]
69
+ },
70
+ handler: async (input) => {
71
+ const id = String(input.skill_id || "").trim();
72
+ const params = typeof input.params === "object" && input.params !== null ? input.params : {};
73
+ if (!id) return "Error: skill_id is required.";
74
+ return invokeSkill(id, params);
75
+ }
76
+ }];
77
+ }
78
+ var init_skill_runtime = require_chunk.__esm({ "packages/core/src/agent/skill-runtime.ts"() {} });
79
+
80
+ //#endregion
81
+ Object.defineProperty(exports, 'extractExecutionContract', {
82
+ enumerable: true,
83
+ get: function () {
84
+ return extractExecutionContract;
85
+ }
86
+ });
87
+ Object.defineProperty(exports, 'getSkillInvokeTools', {
88
+ enumerable: true,
89
+ get: function () {
90
+ return getSkillInvokeTools;
91
+ }
92
+ });
93
+ Object.defineProperty(exports, 'init_skill_runtime', {
94
+ enumerable: true,
95
+ get: function () {
96
+ return init_skill_runtime;
97
+ }
98
+ });
99
+ Object.defineProperty(exports, 'invokeSkill', {
100
+ enumerable: true,
101
+ get: function () {
102
+ return invokeSkill;
103
+ }
104
+ });
@@ -0,0 +1,5 @@
1
+ const require_chunk = require('./chunk-jS-bbMI5.js');
2
+ const require_skill_runtime = require('./skill-runtime-Cfd0OLkP.js');
3
+
4
+ require_skill_runtime.init_skill_runtime();
5
+ exports.getSkillInvokeTools = require_skill_runtime.getSkillInvokeTools;
@@ -0,0 +1,104 @@
1
+ const require_chunk = require('./chunk-jS-bbMI5.js');
2
+
3
+ //#region packages/core/src/agent/skill-runtime.ts
4
+ /** Extract execution contract from skill content. Parses ## Execution or ## Invoke blocks. */
5
+ function extractExecutionContract(skill) {
6
+ const raw = skill.content || "";
7
+ const content = raw.length > 1e5 ? raw.slice(0, 1e5) : raw;
8
+ const execMatch = content.match(/##\s*(?:Execution|Invoke)\s*\n+([\s\S]*?)(?=\n## |\n# |$)/i);
9
+ if (!execMatch) return null;
10
+ const block = execMatch[1].trim();
11
+ const contract = {
12
+ skillId: skill.id,
13
+ invokeMode: "prompt"
14
+ };
15
+ const schemaMatch = block.match(/input\s*:\s*\{([^}]+)\}/i) || block.match(/params\s*:\s*\{([^}]+)\}/i);
16
+ if (schemaMatch) {
17
+ const props = {};
18
+ const safeBlock = schemaMatch[1].slice(0, 2e3);
19
+ const parts = safeBlock.split(",");
20
+ for (const p of parts) {
21
+ const [key, typeDesc] = p.split(":").map((s) => s.trim());
22
+ if (key) props[key] = {
23
+ type: typeDesc || "string",
24
+ description: ""
25
+ };
26
+ }
27
+ contract.inputSchema = {
28
+ properties: props,
29
+ required: Object.keys(props)
30
+ };
31
+ }
32
+ if (block.toLowerCase().includes("subagent") || block.toLowerCase().includes("full run")) contract.invokeMode = "subagent";
33
+ return contract;
34
+ }
35
+ /** Invoke a skill with params. Runs as focused prompt or subagent call. */
36
+ async function invokeSkill(skillId, params, opts) {
37
+ const { loadSkills } = await Promise.resolve().then(() => require("./skill-loader-DK19Jm4e.js"));
38
+ const skills = opts?.skills ?? await loadSkills();
39
+ const skill = skills.find((s) => s.id === skillId);
40
+ if (!skill) return `Error: Skill "${skillId}" not found.`;
41
+ const contract = extractExecutionContract(skill);
42
+ const inputStr = Object.entries(params).map(([k, v]) => `${k}: ${typeof v === "object" ? JSON.stringify(v) : v}`).join(", ");
43
+ const { runAgentEngine } = await Promise.resolve().then(() => require("./engine-C-G3G-U7.js"));
44
+ const prompt = `Execute the skill "${skillId}" with these inputs: ${inputStr}\n\nFollow the skill instructions exactly. Output only the result.`;
45
+ const result = await runAgentEngine(prompt, {});
46
+ return result.text;
47
+ }
48
+ /** Build tools for skill invocation. Agent can call invoke_skill(skillId, params). */
49
+ function getSkillInvokeTools(skills) {
50
+ const invokable = skills.filter((s) => extractExecutionContract(s) || s.capabilities);
51
+ if (invokable.length === 0) return [];
52
+ const descriptions = invokable.map((s) => `- ${s.id}: ${s.capabilities || s.title || "no description"}`).join("\n");
53
+ return [{
54
+ name: "invoke_skill",
55
+ description: `Invoke a loaded skill by id. Available: ${invokable.map((s) => s.id).join(", ")}. Use when the user wants to run a specific capability.`,
56
+ input_schema: {
57
+ type: "object",
58
+ properties: {
59
+ skill_id: {
60
+ type: "string",
61
+ description: `Skill id. Options: ${invokable.map((s) => s.id).join(", ")}`
62
+ },
63
+ params: {
64
+ type: "object",
65
+ description: "Optional key-value params for the skill"
66
+ }
67
+ },
68
+ required: ["skill_id"]
69
+ },
70
+ handler: async (input) => {
71
+ const id = String(input.skill_id || "").trim();
72
+ const params = typeof input.params === "object" && input.params !== null ? input.params : {};
73
+ if (!id) return "Error: skill_id is required.";
74
+ return invokeSkill(id, params);
75
+ }
76
+ }];
77
+ }
78
+ var init_skill_runtime = require_chunk.__esm({ "packages/core/src/agent/skill-runtime.ts"() {} });
79
+
80
+ //#endregion
81
+ Object.defineProperty(exports, 'extractExecutionContract', {
82
+ enumerable: true,
83
+ get: function () {
84
+ return extractExecutionContract;
85
+ }
86
+ });
87
+ Object.defineProperty(exports, 'getSkillInvokeTools', {
88
+ enumerable: true,
89
+ get: function () {
90
+ return getSkillInvokeTools;
91
+ }
92
+ });
93
+ Object.defineProperty(exports, 'init_skill_runtime', {
94
+ enumerable: true,
95
+ get: function () {
96
+ return init_skill_runtime;
97
+ }
98
+ });
99
+ Object.defineProperty(exports, 'invokeSkill', {
100
+ enumerable: true,
101
+ get: function () {
102
+ return invokeSkill;
103
+ }
104
+ });
@@ -0,0 +1,5 @@
1
+ const require_chunk = require('./chunk-jS-bbMI5.js');
2
+ const require_skill_runtime = require('./skill-runtime-DtO4i9vK.js');
3
+
4
+ require_skill_runtime.init_skill_runtime();
5
+ exports.getSkillInvokeTools = require_skill_runtime.getSkillInvokeTools;
@@ -0,0 +1,104 @@
1
+ const require_chunk = require('./chunk-jS-bbMI5.js');
2
+
3
+ //#region packages/core/src/agent/skill-runtime.ts
4
+ /** Extract execution contract from skill content. Parses ## Execution or ## Invoke blocks. */
5
+ function extractExecutionContract(skill) {
6
+ const raw = skill.content || "";
7
+ const content = raw.length > 1e5 ? raw.slice(0, 1e5) : raw;
8
+ const execMatch = content.match(/##\s*(?:Execution|Invoke)\s*\n+([\s\S]*?)(?=\n## |\n# |$)/i);
9
+ if (!execMatch) return null;
10
+ const block = execMatch[1].trim();
11
+ const contract = {
12
+ skillId: skill.id,
13
+ invokeMode: "prompt"
14
+ };
15
+ const schemaMatch = block.match(/input\s*:\s*\{([^}]+)\}/i) || block.match(/params\s*:\s*\{([^}]+)\}/i);
16
+ if (schemaMatch) {
17
+ const props = {};
18
+ const safeBlock = schemaMatch[1].slice(0, 2e3);
19
+ const parts = safeBlock.split(",");
20
+ for (const p of parts) {
21
+ const [key, typeDesc] = p.split(":").map((s) => s.trim());
22
+ if (key) props[key] = {
23
+ type: typeDesc || "string",
24
+ description: ""
25
+ };
26
+ }
27
+ contract.inputSchema = {
28
+ properties: props,
29
+ required: Object.keys(props)
30
+ };
31
+ }
32
+ if (block.toLowerCase().includes("subagent") || block.toLowerCase().includes("full run")) contract.invokeMode = "subagent";
33
+ return contract;
34
+ }
35
+ /** Invoke a skill with params. Runs as focused prompt or subagent call. */
36
+ async function invokeSkill(skillId, params, opts) {
37
+ const { loadSkills } = await Promise.resolve().then(() => require("./skill-loader-DK19Jm4e.js"));
38
+ const skills = opts?.skills ?? await loadSkills();
39
+ const skill = skills.find((s) => s.id === skillId);
40
+ if (!skill) return `Error: Skill "${skillId}" not found.`;
41
+ const contract = extractExecutionContract(skill);
42
+ const inputStr = Object.entries(params).map(([k, v]) => `${k}: ${typeof v === "object" ? JSON.stringify(v) : v}`).join(", ");
43
+ const { runAgentEngine } = await Promise.resolve().then(() => require("./engine-B7Q4Vx-C.js"));
44
+ const prompt = `Execute the skill "${skillId}" with these inputs: ${inputStr}\n\nFollow the skill instructions exactly. Output only the result.`;
45
+ const result = await runAgentEngine(prompt, {});
46
+ return result.text;
47
+ }
48
+ /** Build tools for skill invocation. Agent can call invoke_skill(skillId, params). */
49
+ function getSkillInvokeTools(skills) {
50
+ const invokable = skills.filter((s) => extractExecutionContract(s) || s.capabilities);
51
+ if (invokable.length === 0) return [];
52
+ const descriptions = invokable.map((s) => `- ${s.id}: ${s.capabilities || s.title || "no description"}`).join("\n");
53
+ return [{
54
+ name: "invoke_skill",
55
+ description: `Invoke a loaded skill by id. Available: ${invokable.map((s) => s.id).join(", ")}. Use when the user wants to run a specific capability.`,
56
+ input_schema: {
57
+ type: "object",
58
+ properties: {
59
+ skill_id: {
60
+ type: "string",
61
+ description: `Skill id. Options: ${invokable.map((s) => s.id).join(", ")}`
62
+ },
63
+ params: {
64
+ type: "object",
65
+ description: "Optional key-value params for the skill"
66
+ }
67
+ },
68
+ required: ["skill_id"]
69
+ },
70
+ handler: async (input) => {
71
+ const id = String(input.skill_id || "").trim();
72
+ const params = typeof input.params === "object" && input.params !== null ? input.params : {};
73
+ if (!id) return "Error: skill_id is required.";
74
+ return invokeSkill(id, params);
75
+ }
76
+ }];
77
+ }
78
+ var init_skill_runtime = require_chunk.__esm({ "packages/core/src/agent/skill-runtime.ts"() {} });
79
+
80
+ //#endregion
81
+ Object.defineProperty(exports, 'extractExecutionContract', {
82
+ enumerable: true,
83
+ get: function () {
84
+ return extractExecutionContract;
85
+ }
86
+ });
87
+ Object.defineProperty(exports, 'getSkillInvokeTools', {
88
+ enumerable: true,
89
+ get: function () {
90
+ return getSkillInvokeTools;
91
+ }
92
+ });
93
+ Object.defineProperty(exports, 'init_skill_runtime', {
94
+ enumerable: true,
95
+ get: function () {
96
+ return init_skill_runtime;
97
+ }
98
+ });
99
+ Object.defineProperty(exports, 'invokeSkill', {
100
+ enumerable: true,
101
+ get: function () {
102
+ return invokeSkill;
103
+ }
104
+ });