hypercore-cli 1.1.0 → 1.1.1
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/{api-XGC7D5AW.js → api-D4PUN5BN.js} +13 -13
- package/dist/{auth-DNQWYQKT.js → auth-UTR4I6QY.js} +2 -2
- package/dist/{chunk-GOOTEPBK.js → chunk-77FRUHTU.js} +1 -1
- package/dist/{chunk-KRPOPWGA.js → chunk-7ZYMJFCA.js} +1 -1
- package/dist/{chunk-GPPMJYSM.js → chunk-CM423E2U.js} +1 -1
- package/dist/{chunk-43OLRXM5.js → chunk-E4NKO2KI.js} +1 -1
- package/dist/{chunk-XOS6HPEF.js → chunk-GMLQ7GZ5.js} +1 -1
- package/dist/{chunk-AUHU7ALH.js → chunk-LWDNLX6B.js} +33 -31
- package/dist/{chunk-B6A2AKLN.js → chunk-NHPDLYEW.js} +1 -1
- package/dist/{chunk-6OL3GA3P.js → chunk-OGQGKMDX.js} +2 -2
- package/dist/{chunk-IXOIOGR5.js → chunk-OWAOKDIN.js} +2 -2
- package/dist/{chunk-3RPFCQKJ.js → chunk-SHJQMIJL.js} +2 -2
- package/dist/{chunk-V5UHPPSY.js → chunk-SVF2VWOZ.js} +8 -3
- package/dist/{chunk-MV4TTRYX.js → chunk-V2EBSFPU.js} +53 -11
- package/dist/{chunk-U5SGAIMM.js → chunk-VJDQNNSO.js} +6 -6
- package/dist/{chunk-2LJ2DVEB.js → chunk-VQ35XX7B.js} +2 -2
- package/dist/{chunk-XDRCBMZZ.js → chunk-XMGHVNH2.js} +1 -1
- package/dist/{chunk-CUVAUOXL.js → chunk-YWOSOTUO.js} +1 -1
- package/dist/{chunk-QTSLP47C.js → chunk-ZQRNV2US.js} +2 -2
- package/dist/{claude-NSQ442XD.js → claude-O5FSOXZC.js} +3 -3
- package/dist/{commands-CK3WFAGI.js → commands-43PLOWRU.js} +2 -2
- package/dist/{commands-ZE6GD3WC.js → commands-5YVUSUMP.js} +3 -3
- package/dist/{commands-U63OEO5J.js → commands-VZMZJFZF.js} +1 -1
- package/dist/{config-4EW42BSF.js → config-WXXEEEVW.js} +1 -1
- package/dist/{diagnose-AFW3ZTZ4.js → diagnose-BX45APUZ.js} +1 -1
- package/dist/{extractor-QV53W2YJ.js → extractor-R5ABXNTJ.js} +4 -4
- package/dist/{history-WMSCHERZ.js → history-JPXZEOT3.js} +1 -1
- package/dist/index.js +61 -64
- package/dist/{instance-registry-YSIJXSO7.js → instance-registry-6NJTCAE4.js} +2 -2
- package/dist/{keybindings-JAAMLH3G.js → keybindings-ADWNOX5M.js} +2 -2
- package/dist/{loader-WHNTZTLP.js → loader-AXDDCB2G.js} +2 -2
- package/dist/{network-MM6YWPGO.js → network-V3O4UZYZ.js} +8 -8
- package/dist/{openai-compat-UQWJXBEK.js → openai-compat-UFDV2SCK.js} +3 -3
- package/dist/{prompt-QV45TXRL.js → prompt-5CZ34WGA.js} +7 -7
- package/dist/{repl-RT3AHL7M.js → repl-EOWP6AAB.js} +32 -33
- package/dist/{server-PORT7OEG.js → server-BB5AENWU.js} +12 -12
- package/dist/{session-4VUNDWLH.js → session-5NDKKFLN.js} +2 -2
- package/dist/{skills-V4A35XKG.js → skills-JVLIQVJN.js} +2 -2
- package/dist/{store-Y4LU5QTO.js → store-G7KRD4PN.js} +2 -2
- package/dist/{team-HO7Z4SIM.js → team-FVNNVDBY.js} +3 -3
- package/dist/{test-runner-ZQH5Y6OJ.js → test-runner-REKSVPPY.js} +1 -1
- package/dist/{upgrade-7TGI3SXO.js → upgrade-YSXCO63I.js} +1 -1
- package/dist/web/static/onboard.html +11 -0
- package/dist/web/static/onboard.js +40 -0
- package/dist/{web-Z5HSCQHW.js → web-H2BJXUBZ.js} +12 -12
- package/package.json +1 -1
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
listMemories,
|
|
6
6
|
removeMemory,
|
|
7
7
|
searchMemories
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-7ZYMJFCA.js";
|
|
9
|
+
import "./chunk-SVF2VWOZ.js";
|
|
10
10
|
|
|
11
11
|
// src/memory/commands.ts
|
|
12
12
|
import chalk from "chalk";
|
|
@@ -173,7 +173,7 @@ function createMemorySlashCommands() {
|
|
|
173
173
|
}
|
|
174
174
|
console.log(chalk.dim("\n \u{1F504} \u6B63\u5728\u4ECE\u5F53\u524D\u4F1A\u8BDD\u63D0\u53D6\u8BB0\u5FC6...\n"));
|
|
175
175
|
try {
|
|
176
|
-
const { extractMemories } = await import("./extractor-
|
|
176
|
+
const { extractMemories } = await import("./extractor-R5ABXNTJ.js");
|
|
177
177
|
const extracted = await extractMemories(
|
|
178
178
|
ctx.chatHistory,
|
|
179
179
|
ctx.getClient(),
|
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
addMemory,
|
|
4
4
|
loadStore,
|
|
5
5
|
markExtraction
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-7ZYMJFCA.js";
|
|
7
|
+
import "./chunk-SVF2VWOZ.js";
|
|
8
8
|
|
|
9
9
|
// src/memory/extractor.ts
|
|
10
10
|
var EXTRACTION_SYSTEM = `You are a memory extraction assistant. Extract concise, durable facts from conversations.
|
|
@@ -37,7 +37,7 @@ async function extractMemories(history, client, config, layer, opts) {
|
|
|
37
37
|
const userPrompt = buildExtractionPrompt(history, existingTopics);
|
|
38
38
|
let rawOutput;
|
|
39
39
|
if (config.modelConfig.sdkType === "openai") {
|
|
40
|
-
const { streamOpenAIChat } = await import("./openai-compat-
|
|
40
|
+
const { streamOpenAIChat } = await import("./openai-compat-UFDV2SCK.js");
|
|
41
41
|
const OpenAI = (await import("openai")).default;
|
|
42
42
|
const openaiClient = client;
|
|
43
43
|
const result = await streamOpenAIChat(openaiClient, [
|
|
@@ -53,7 +53,7 @@ async function extractMemories(history, client, config, layer, opts) {
|
|
|
53
53
|
});
|
|
54
54
|
rawOutput = result.content;
|
|
55
55
|
} else {
|
|
56
|
-
const { streamCallLLM } = await import("./claude-
|
|
56
|
+
const { streamCallLLM } = await import("./claude-O5FSOXZC.js");
|
|
57
57
|
const Anthropic = (await import("@anthropic-ai/sdk")).default;
|
|
58
58
|
const anthropicClient = client;
|
|
59
59
|
const result = await streamCallLLM(anthropicClient, {
|
package/dist/index.js
CHANGED
|
@@ -9,9 +9,9 @@ import {
|
|
|
9
9
|
Engine,
|
|
10
10
|
HYPERCORE_DIR,
|
|
11
11
|
initializeWorkspace
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-V2EBSFPU.js";
|
|
13
|
+
import "./chunk-OWAOKDIN.js";
|
|
14
|
+
import "./chunk-7ZYMJFCA.js";
|
|
15
15
|
import "./chunk-GU2FZQ6A.js";
|
|
16
16
|
import {
|
|
17
17
|
showBanner,
|
|
@@ -30,16 +30,16 @@ import "./chunk-BE46C7JW.js";
|
|
|
30
30
|
import "./chunk-RNG3K465.js";
|
|
31
31
|
import {
|
|
32
32
|
createLLMClient
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-E4NKO2KI.js";
|
|
34
34
|
import {
|
|
35
35
|
createOpenAIClient
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-
|
|
36
|
+
} from "./chunk-77FRUHTU.js";
|
|
37
|
+
import "./chunk-NHPDLYEW.js";
|
|
38
38
|
import {
|
|
39
39
|
HYPERCORE_DIR as HYPERCORE_DIR2,
|
|
40
40
|
MODEL_PROVIDERS,
|
|
41
41
|
loadConfig
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-SVF2VWOZ.js";
|
|
43
43
|
import {
|
|
44
44
|
listLines,
|
|
45
45
|
loadLine
|
|
@@ -68,38 +68,42 @@ async function initCommand() {
|
|
|
68
68
|
return;
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
console.log(chalk.dim(" \
|
|
72
|
-
const role = await input({
|
|
73
|
-
message: "\u4F60\u4E3B\u8981\u505A\u4EC0\u4E48\u5DE5\u4F5C\uFF1F",
|
|
74
|
-
default: "\u521B\u4E1A\u8005\uFF0C\u505A AI \u65B9\u5411\u7684\u4EA7\u54C1"
|
|
75
|
-
});
|
|
76
|
-
const mainNeed = await select({
|
|
77
|
-
message: "\u6700\u60F3\u8BA9 AI \u5E2E\u4F60\u505A\u7684\u4E00\u4EF6\u4E8B\uFF1F",
|
|
78
|
-
choices: [
|
|
79
|
-
{ value: "content", name: "\u{1F4DD} \u5E2E\u6211\u5199\u516C\u4F17\u53F7/\u5185\u5BB9" },
|
|
80
|
-
{ value: "research", name: "\u{1F50D} \u5E2E\u6211\u505A\u8C03\u7814/\u7ADE\u54C1\u5206\u6790" },
|
|
81
|
-
{ value: "report", name: "\u{1F4CA} \u5E2E\u6211\u5199\u62A5\u544A/\u5468\u62A5" },
|
|
82
|
-
{ value: "other", name: "\u{1F3AF} \u5176\u4ED6" }
|
|
83
|
-
]
|
|
84
|
-
});
|
|
71
|
+
console.log(chalk.dim(" \u914D\u7F6E AI \u6A21\u578B\uFF0C\u53EA\u9700\u4E00\u6B65\u3002\n"));
|
|
85
72
|
const provider = await select({
|
|
86
73
|
message: "\u9009\u62E9 AI \u6A21\u578B\u63D0\u4F9B\u5546\uFF1A",
|
|
87
74
|
choices: [
|
|
88
|
-
{ value: "
|
|
89
|
-
{ value: "
|
|
90
|
-
{ value: "
|
|
75
|
+
{ value: "anthropic", name: "\u{1F9E0} Anthropic Claude\uFF08Claude Sonnet 4\uFF09" },
|
|
76
|
+
{ value: "deepseek", name: "\u{1F52E} DeepSeek Chat\uFF08\u901A\u7528\u5BF9\u8BDD\uFF09" },
|
|
77
|
+
{ value: "deepseek-coder", name: "\u{1F52E} DeepSeek Coder\uFF08\u4EE3\u7801\u4E13\u7CBE\uFF09" },
|
|
78
|
+
{ value: "gemini", name: "\u2728 Google Gemini\uFF08Gemini 2.5 Flash\uFF0C\u514D\u8D39\u989D\u5EA6\uFF09" },
|
|
79
|
+
{ value: "minimax", name: "\u{1F916} MiniMax\uFF08M2.5\uFF0C\u6027\u4EF7\u6BD4\u9AD8\uFF09" },
|
|
80
|
+
{ value: "openai-compatible", name: "\u{1F517} OpenAI \u517C\u5BB9\uFF08GPT-4o / \u81EA\u5B9A\u4E49\uFF09" }
|
|
91
81
|
]
|
|
92
82
|
});
|
|
93
83
|
const apiKeyLabels = {
|
|
84
|
+
anthropic: "Anthropic API Key",
|
|
85
|
+
deepseek: "DeepSeek API Key",
|
|
86
|
+
"deepseek-coder": "DeepSeek API Key",
|
|
94
87
|
gemini: "Google AI API Key",
|
|
95
88
|
minimax: "MiniMax API Key",
|
|
96
|
-
|
|
89
|
+
"openai-compatible": "OpenAI API Key"
|
|
97
90
|
};
|
|
98
|
-
const apiKeyPrompt = `${apiKeyLabels[provider] || "API Key"}\uFF08\u5B58\u50A8\u5728\u672C\u5730\uFF0C\u4E0D\u4F1A\u4E0A\u4F20\uFF09\uFF1A`;
|
|
99
91
|
const apiKey = await input({
|
|
100
|
-
message:
|
|
92
|
+
message: `${apiKeyLabels[provider] || "API Key"}\uFF08\u5B58\u50A8\u5728\u672C\u5730\uFF0C\u4E0D\u4F1A\u4E0A\u4F20\uFF09\uFF1A`,
|
|
101
93
|
validate: (v) => v.length > 5 ? true : "\u8BF7\u8F93\u5165\u6709\u6548\u7684 API Key"
|
|
102
94
|
});
|
|
95
|
+
let customBaseUrl;
|
|
96
|
+
let customModelName;
|
|
97
|
+
if (provider === "openai-compatible") {
|
|
98
|
+
customBaseUrl = await input({
|
|
99
|
+
message: "API Base URL\uFF08\u5982 https://api.openai.com/v1\uFF09\uFF1A",
|
|
100
|
+
validate: (v) => v.startsWith("http") ? true : "\u8BF7\u8F93\u5165\u6709\u6548\u7684 URL"
|
|
101
|
+
});
|
|
102
|
+
customModelName = await input({
|
|
103
|
+
message: "\u6A21\u578B\u540D\u79F0\uFF1A",
|
|
104
|
+
default: "gpt-4o"
|
|
105
|
+
});
|
|
106
|
+
}
|
|
103
107
|
const tavilyKey = await input({
|
|
104
108
|
message: "Tavily API Key\uFF08\u53EF\u9009\uFF0C\u7528\u4E8E\u7F51\u7EDC\u641C\u7D22\uFF0C\u56DE\u8F66\u8DF3\u8FC7\uFF09\uFF1A"
|
|
105
109
|
});
|
|
@@ -108,21 +112,14 @@ async function initCommand() {
|
|
|
108
112
|
provider,
|
|
109
113
|
apiKey,
|
|
110
114
|
tavilyKey: tavilyKey || void 0,
|
|
111
|
-
|
|
115
|
+
customBaseUrl,
|
|
116
|
+
customModelName
|
|
112
117
|
});
|
|
113
118
|
console.log(chalk.green("\n \u2705 \u521D\u59CB\u5316\u5B8C\u6210\uFF01"));
|
|
114
|
-
console.log(chalk.dim(` \u{1F4C1} \u914D\u7F6E\
|
|
115
|
-
console.log(chalk.dim(` \u{
|
|
116
|
-
console.log(chalk.
|
|
117
|
-
console.log(chalk.
|
|
118
|
-
console.log(chalk.bold("\n \u73B0\u5728\u8BD5\u8BD5\uFF1A"));
|
|
119
|
-
if (mainNeed === "content") {
|
|
120
|
-
console.log(chalk.cyan(' $ hypercore run \u516C\u4F17\u53F7\u6587\u7AE0 --topic "AI Agent \u7684\u73B0\u72B6\u548C\u672A\u6765"'));
|
|
121
|
-
} else if (mainNeed === "research") {
|
|
122
|
-
console.log(chalk.cyan(' $ hypercore run \u7ADE\u54C1\u5206\u6790 --topic "Dify, Coze, LangChain"'));
|
|
123
|
-
} else {
|
|
124
|
-
console.log(chalk.cyan(" $ hypercore line ls"));
|
|
125
|
-
}
|
|
119
|
+
console.log(chalk.dim(` \u{1F4C1} \u914D\u7F6E\uFF1A${HYPERCORE_DIR}/config.toml`));
|
|
120
|
+
console.log(chalk.dim(` \u{1F527} \u4FEE\u6539\u6A21\u578B/Key\uFF1Ahyper config \u6216\u76F4\u63A5\u7F16\u8F91 config.toml`));
|
|
121
|
+
console.log(chalk.bold("\n \u5F00\u59CB\u4F7F\u7528\uFF1A"));
|
|
122
|
+
console.log(chalk.cyan(" $ hyper"));
|
|
126
123
|
console.log();
|
|
127
124
|
}
|
|
128
125
|
|
|
@@ -288,26 +285,26 @@ program.command("run <line>").description("\u8FD0\u884C\u4E00\u6761\u751F\u4EA7\
|
|
|
288
285
|
var lineCmd = program.command("line").description("\u7BA1\u7406\u751F\u4EA7\u7EBF");
|
|
289
286
|
lineCmd.command("ls").description("\u5217\u51FA\u6240\u6709\u53EF\u7528\u7684\u751F\u4EA7\u7EBF").action(lineListCommand);
|
|
290
287
|
var historyCmd = program.command("history").description("\u67E5\u770B\u751F\u4EA7\u7EBF\u8FD0\u884C\u5386\u53F2").action(async () => {
|
|
291
|
-
const { historyCommand } = await import("./history-
|
|
288
|
+
const { historyCommand } = await import("./history-JPXZEOT3.js");
|
|
292
289
|
await historyCommand();
|
|
293
290
|
});
|
|
294
291
|
historyCmd.command("view <file>").description("\u67E5\u770B\u5355\u6B21\u8FD0\u884C\u7684\u8BE6\u7EC6\u8BB0\u5F55").action(async (fileId) => {
|
|
295
|
-
const { historyViewCommand } = await import("./history-
|
|
292
|
+
const { historyViewCommand } = await import("./history-JPXZEOT3.js");
|
|
296
293
|
await historyViewCommand(fileId);
|
|
297
294
|
});
|
|
298
295
|
program.command("upgrade").description("\u540C\u6B65\u65B0\u6A21\u677F\u5230\u5DE5\u4F5C\u7A7A\u95F4\uFF08\u4E0D\u8986\u76D6\u5DF2\u6709\u6587\u4EF6\uFF09").action(async () => {
|
|
299
|
-
const { upgradeCommand } = await import("./upgrade-
|
|
296
|
+
const { upgradeCommand } = await import("./upgrade-YSXCO63I.js");
|
|
300
297
|
await upgradeCommand();
|
|
301
298
|
});
|
|
302
299
|
program.command("web").description("\u542F\u52A8 Web Dashboard \u63A7\u5236\u53F0").option("--port <port>", "\u670D\u52A1\u7AEF\u53E3", "3210").option("--host <host>", "\u76D1\u542C\u5730\u5740 (\u9ED8\u8BA4 127.0.0.1, \u56E2\u961F\u6A21\u5F0F\u7528 0.0.0.0)", "127.0.0.1").action(async (opts) => {
|
|
303
|
-
const { loadConfig: loadConfig2 } = await import("./config-
|
|
304
|
-
const { startWebServer } = await import("./web-
|
|
300
|
+
const { loadConfig: loadConfig2 } = await import("./config-WXXEEEVW.js");
|
|
301
|
+
const { startWebServer } = await import("./web-H2BJXUBZ.js");
|
|
305
302
|
const config = await loadConfig2();
|
|
306
303
|
await startWebServer(config, parseInt(opts.port, 10), opts.host);
|
|
307
304
|
});
|
|
308
305
|
program.command("mirror").description("\u542F\u52A8\u5185\u89C2\u5F15\u64CE HyperMirror GUI \u63A7\u5236\u53F0").option("--port <port>", "\u670D\u52A1\u7AEF\u53E3", "3210").option("--no-open", "\u4E0D\u81EA\u52A8\u6253\u5F00\u6D4F\u89C8\u5668").action(async (opts) => {
|
|
309
|
-
const { loadConfig: loadConfig2 } = await import("./config-
|
|
310
|
-
const { createWebServerAutoPort, resolveBrowserHost } = await import("./server-
|
|
306
|
+
const { loadConfig: loadConfig2 } = await import("./config-WXXEEEVW.js");
|
|
307
|
+
const { createWebServerAutoPort, resolveBrowserHost } = await import("./server-BB5AENWU.js");
|
|
311
308
|
const config = await loadConfig2();
|
|
312
309
|
const port = parseInt(opts.port, 10);
|
|
313
310
|
const { port: actualPort } = await createWebServerAutoPort(config, port);
|
|
@@ -327,71 +324,71 @@ program.command("mirror").description("\u542F\u52A8\u5185\u89C2\u5F15\u64CE Hype
|
|
|
327
324
|
});
|
|
328
325
|
var teamCmd = program.command("team").description("\u56E2\u961F\u534F\u4F5C\u6A21\u5F0F");
|
|
329
326
|
teamCmd.command("create <name>").description("\u521B\u5EFA\u65B0\u56E2\u961F").option("--port <port>", "\u670D\u52A1\u7AEF\u53E3", "3210").action(async (name, opts) => {
|
|
330
|
-
const { teamCreateCommand } = await import("./team-
|
|
327
|
+
const { teamCreateCommand } = await import("./team-FVNNVDBY.js");
|
|
331
328
|
await teamCreateCommand(name, opts);
|
|
332
329
|
});
|
|
333
330
|
teamCmd.command("join <code>").description("\u52A0\u5165\u56E2\u961F\uFF08\u8F93\u5165\u52A0\u5165\u7801\uFF09").option("--server <url>", "\u670D\u52A1\u5668\u5730\u5740", "http://localhost:3210").action(async (code, opts) => {
|
|
334
|
-
const { teamJoinCommand } = await import("./team-
|
|
331
|
+
const { teamJoinCommand } = await import("./team-FVNNVDBY.js");
|
|
335
332
|
await teamJoinCommand(code, opts);
|
|
336
333
|
});
|
|
337
334
|
teamCmd.command("status").description("\u67E5\u770B\u56E2\u961F\u72B6\u6001").action(async () => {
|
|
338
|
-
const { teamStatusCommand } = await import("./team-
|
|
335
|
+
const { teamStatusCommand } = await import("./team-FVNNVDBY.js");
|
|
339
336
|
await teamStatusCommand();
|
|
340
337
|
});
|
|
341
338
|
var taskCmd = teamCmd.command("task").description("\u56E2\u961F\u4EFB\u52A1\u7BA1\u7406");
|
|
342
339
|
taskCmd.command("add <title>").description("\u65B0\u589E\u4EFB\u52A1").option("-p, --priority <priority>", "\u4F18\u5148\u7EA7 S/A/B/C", "B").option("-a, --assignee <member>", "\u5206\u914D\u7ED9\u6210\u5458").option("-d, --description <desc>", "\u4EFB\u52A1\u63CF\u8FF0").action(async (title, opts) => {
|
|
343
|
-
const { teamTaskAddCommand } = await import("./team-
|
|
340
|
+
const { teamTaskAddCommand } = await import("./team-FVNNVDBY.js");
|
|
344
341
|
await teamTaskAddCommand(title, opts);
|
|
345
342
|
});
|
|
346
343
|
taskCmd.command("list").alias("ls").description("\u5217\u51FA\u6240\u6709\u4EFB\u52A1").action(async () => {
|
|
347
|
-
const { teamTaskListCommand } = await import("./team-
|
|
344
|
+
const { teamTaskListCommand } = await import("./team-FVNNVDBY.js");
|
|
348
345
|
await teamTaskListCommand();
|
|
349
346
|
});
|
|
350
347
|
taskCmd.command("assign <id> <member>").description("\u5206\u914D\u4EFB\u52A1\u7ED9\u6210\u5458").action(async (id, member) => {
|
|
351
|
-
const { teamTaskAssignCommand } = await import("./team-
|
|
348
|
+
const { teamTaskAssignCommand } = await import("./team-FVNNVDBY.js");
|
|
352
349
|
await teamTaskAssignCommand(id, member);
|
|
353
350
|
});
|
|
354
351
|
taskCmd.command("done <id>").description("\u6807\u8BB0\u4EFB\u52A1\u5B8C\u6210").action(async (id) => {
|
|
355
|
-
const { teamTaskDoneCommand } = await import("./team-
|
|
352
|
+
const { teamTaskDoneCommand } = await import("./team-FVNNVDBY.js");
|
|
356
353
|
await teamTaskDoneCommand(id);
|
|
357
354
|
});
|
|
358
355
|
teamCmd.command("chat").description("\u8FDB\u5165\u56E2\u961F\u5B9E\u65F6\u804A\u5929").action(async () => {
|
|
359
|
-
const { teamChatCommand } = await import("./team-
|
|
356
|
+
const { teamChatCommand } = await import("./team-FVNNVDBY.js");
|
|
360
357
|
await teamChatCommand();
|
|
361
358
|
});
|
|
362
359
|
teamCmd.command("leave").description("\u79BB\u5F00\u5F53\u524D\u56E2\u961F").action(async () => {
|
|
363
|
-
const { teamLeaveCommand } = await import("./team-
|
|
360
|
+
const { teamLeaveCommand } = await import("./team-FVNNVDBY.js");
|
|
364
361
|
await teamLeaveCommand();
|
|
365
362
|
});
|
|
366
363
|
var networkCmd = program.command("network").alias("net").description("Hyper Network \u2014 Agent \u81EA\u4E3B\u7F51\u7EDC");
|
|
367
364
|
networkCmd.command("profile [field] [values...]").description("\u67E5\u770B/\u8BBE\u7F6E Agent Profile\uFF08skills/needs/offerings/customNote\uFF09").action(async (field, values) => {
|
|
368
|
-
const { networkProfileCommand } = await import("./network-
|
|
365
|
+
const { networkProfileCommand } = await import("./network-V3O4UZYZ.js");
|
|
369
366
|
await networkProfileCommand(field, values);
|
|
370
367
|
});
|
|
371
368
|
networkCmd.command("run").description("\u624B\u52A8\u89E6\u53D1\u4E00\u8F6E\u7F51\u7EDC\u5339\u914D").action(async () => {
|
|
372
|
-
const { networkRunCommand } = await import("./network-
|
|
369
|
+
const { networkRunCommand } = await import("./network-V3O4UZYZ.js");
|
|
373
370
|
await networkRunCommand();
|
|
374
371
|
});
|
|
375
372
|
networkCmd.command("digest").description("\u67E5\u770B\u6700\u65B0\u4E2A\u4EBA\u6458\u8981").action(async () => {
|
|
376
|
-
const { networkDigestCommand } = await import("./network-
|
|
373
|
+
const { networkDigestCommand } = await import("./network-V3O4UZYZ.js");
|
|
377
374
|
await networkDigestCommand();
|
|
378
375
|
});
|
|
379
376
|
networkCmd.command("auto <action>").description("\u81EA\u52A8\u8F6E\u6B21 (on/off)").action(async (action) => {
|
|
380
|
-
const { networkAutoCommand } = await import("./network-
|
|
377
|
+
const { networkAutoCommand } = await import("./network-V3O4UZYZ.js");
|
|
381
378
|
await networkAutoCommand(action);
|
|
382
379
|
});
|
|
383
380
|
networkCmd.command("rounds").description("\u67E5\u770B\u5386\u53F2\u8F6E\u6B21").action(async () => {
|
|
384
|
-
const { networkRoundsCommand } = await import("./network-
|
|
381
|
+
const { networkRoundsCommand } = await import("./network-V3O4UZYZ.js");
|
|
385
382
|
await networkRoundsCommand();
|
|
386
383
|
});
|
|
387
384
|
networkCmd.command("config [key] [value]").description("\u67E5\u770B/\u4FEE\u6539\u7F51\u7EDC\u914D\u7F6E").action(async (key, value) => {
|
|
388
|
-
const { networkConfigCommand } = await import("./network-
|
|
385
|
+
const { networkConfigCommand } = await import("./network-V3O4UZYZ.js");
|
|
389
386
|
await networkConfigCommand(key, value);
|
|
390
387
|
});
|
|
391
388
|
program.action(async () => {
|
|
392
389
|
const opts = program.opts();
|
|
393
390
|
if (opts.print) {
|
|
394
|
-
const { runPrompt } = await import("./prompt-
|
|
391
|
+
const { runPrompt } = await import("./prompt-5CZ34WGA.js");
|
|
395
392
|
await runPrompt({
|
|
396
393
|
prompt: opts.print,
|
|
397
394
|
outputFormat: opts.outputFormat,
|
|
@@ -399,7 +396,7 @@ program.action(async () => {
|
|
|
399
396
|
resumeId: opts.resume
|
|
400
397
|
});
|
|
401
398
|
} else {
|
|
402
|
-
const { startREPL } = await import("./repl-
|
|
399
|
+
const { startREPL } = await import("./repl-EOWP6AAB.js");
|
|
403
400
|
await startREPL({ host: opts.host });
|
|
404
401
|
}
|
|
405
402
|
});
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
CATEGORY_LABELS,
|
|
3
3
|
DEFAULT_EXTRACTION_CONFIG,
|
|
4
4
|
loadStore
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-7ZYMJFCA.js";
|
|
6
|
+
import "./chunk-SVF2VWOZ.js";
|
|
7
7
|
|
|
8
8
|
// src/memory/loader.ts
|
|
9
9
|
async function loadMemoryForSystemPrompt(opts) {
|
|
@@ -8,23 +8,23 @@ import {
|
|
|
8
8
|
startAutoRound,
|
|
9
9
|
stopAutoRound,
|
|
10
10
|
updateProfileField
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-VJDQNNSO.js";
|
|
12
|
+
import "./chunk-VQ35XX7B.js";
|
|
13
|
+
import "./chunk-OGQGKMDX.js";
|
|
14
14
|
import {
|
|
15
15
|
loadLocalToken
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-XMGHVNH2.js";
|
|
17
17
|
import {
|
|
18
18
|
showError
|
|
19
19
|
} from "./chunk-R3GPQC7I.js";
|
|
20
20
|
import "./chunk-BE46C7JW.js";
|
|
21
21
|
import "./chunk-RNG3K465.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-E4NKO2KI.js";
|
|
23
|
+
import "./chunk-77FRUHTU.js";
|
|
24
|
+
import "./chunk-NHPDLYEW.js";
|
|
25
25
|
import {
|
|
26
26
|
loadConfig
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-SVF2VWOZ.js";
|
|
28
28
|
|
|
29
29
|
// src/commands/network.ts
|
|
30
30
|
import chalk from "chalk";
|
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
callOpenAILLM,
|
|
3
3
|
createOpenAIClient,
|
|
4
4
|
streamOpenAIChat
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-77FRUHTU.js";
|
|
6
|
+
import "./chunk-NHPDLYEW.js";
|
|
7
|
+
import "./chunk-SVF2VWOZ.js";
|
|
8
8
|
export {
|
|
9
9
|
callOpenAILLM,
|
|
10
10
|
createOpenAIClient,
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
closeMCPConnections,
|
|
3
3
|
createToolRegistry
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-OWAOKDIN.js";
|
|
5
|
+
import "./chunk-7ZYMJFCA.js";
|
|
6
6
|
import "./chunk-GU2FZQ6A.js";
|
|
7
7
|
import {
|
|
8
8
|
createLLMClient,
|
|
9
9
|
streamCallLLM
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-E4NKO2KI.js";
|
|
11
11
|
import {
|
|
12
12
|
createOpenAIClient,
|
|
13
13
|
streamOpenAIChat
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-77FRUHTU.js";
|
|
15
|
+
import "./chunk-NHPDLYEW.js";
|
|
16
16
|
import {
|
|
17
17
|
HYPERCORE_DIR,
|
|
18
18
|
loadConfig
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-SVF2VWOZ.js";
|
|
20
20
|
import "./chunk-TGTYKBGC.js";
|
|
21
21
|
|
|
22
22
|
// src/commands/prompt.ts
|
|
@@ -79,7 +79,7 @@ ${content}`;
|
|
|
79
79
|
let history = [];
|
|
80
80
|
if (options.continueSession || options.resumeId) {
|
|
81
81
|
try {
|
|
82
|
-
const { loadSession, listSessions } = await import("./session-
|
|
82
|
+
const { loadSession, listSessions } = await import("./session-5NDKKFLN.js");
|
|
83
83
|
if (options.resumeId) {
|
|
84
84
|
const msgs = await loadSession(options.resumeId);
|
|
85
85
|
history = msgs;
|