hypercore-cli 1.1.1 → 1.1.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/dist/{api-D4PUN5BN.js → api-JHHOZTL6.js} +13 -13
- package/dist/{auth-UTR4I6QY.js → auth-5QFJLW7J.js} +2 -2
- package/dist/{chunk-77FRUHTU.js → chunk-5GDYH676.js} +1 -1
- package/dist/{chunk-XMGHVNH2.js → chunk-5NLVGLD7.js} +1 -1
- package/dist/{chunk-V2EBSFPU.js → chunk-6XTEAFZQ.js} +4 -4
- package/dist/{chunk-LWDNLX6B.js → chunk-AQBSMYLT.js} +30 -30
- package/dist/{chunk-NHPDLYEW.js → chunk-CLKIMCXZ.js} +1 -1
- package/dist/{chunk-VQ35XX7B.js → chunk-DN4ASQ26.js} +2 -2
- package/dist/{chunk-OGQGKMDX.js → chunk-DUWREZXK.js} +2 -2
- package/dist/{chunk-E4NKO2KI.js → chunk-FCW3K6F2.js} +1 -1
- package/dist/{chunk-7ZYMJFCA.js → chunk-GFORWAMW.js} +1 -1
- package/dist/{chunk-SVF2VWOZ.js → chunk-I7WI3BMB.js} +18 -2
- package/dist/{chunk-CM423E2U.js → chunk-LBVHDGZE.js} +1 -1
- package/dist/{chunk-GMLQ7GZ5.js → chunk-NETIY5UB.js} +1 -1
- package/dist/{chunk-SHJQMIJL.js → chunk-NP47L7LG.js} +2 -2
- package/dist/{chunk-YWOSOTUO.js → chunk-O6MG7TOH.js} +1 -1
- package/dist/{chunk-ZQRNV2US.js → chunk-R5T3A2NQ.js} +2 -2
- package/dist/{chunk-VJDQNNSO.js → chunk-UCX4VZCT.js} +6 -6
- package/dist/{chunk-OWAOKDIN.js → chunk-Y6HMJZDJ.js} +2 -2
- package/dist/{claude-O5FSOXZC.js → claude-4BX3MJSK.js} +3 -3
- package/dist/{commands-43PLOWRU.js → commands-2X4OB5RF.js} +2 -2
- package/dist/{commands-VZMZJFZF.js → commands-GLBCEVQK.js} +1 -1
- package/dist/{commands-5YVUSUMP.js → commands-IINRNBYX.js} +3 -3
- package/dist/{config-WXXEEEVW.js → config-RSNQJQPS.js} +1 -1
- package/dist/{diagnose-BX45APUZ.js → diagnose-7UPLS7I4.js} +1 -1
- package/dist/{extractor-R5ABXNTJ.js → extractor-D3XWOAXI.js} +4 -4
- package/dist/{history-JPXZEOT3.js → history-6I6FADAU.js} +1 -1
- package/dist/index.js +31 -31
- package/dist/{instance-registry-6NJTCAE4.js → instance-registry-J7UJ7U4Z.js} +2 -2
- package/dist/{keybindings-ADWNOX5M.js → keybindings-PDXIOV3O.js} +2 -2
- package/dist/{loader-AXDDCB2G.js → loader-GKEYT6Y7.js} +2 -2
- package/dist/{network-V3O4UZYZ.js → network-JYGHQXAR.js} +8 -8
- package/dist/{openai-compat-UFDV2SCK.js → openai-compat-R7EKWG6Z.js} +3 -3
- package/dist/{prompt-5CZ34WGA.js → prompt-UWHSZU4P.js} +7 -7
- package/dist/{repl-EOWP6AAB.js → repl-QHIZ2JGF.js} +32 -32
- package/dist/{server-BB5AENWU.js → server-HCNIP7ZQ.js} +12 -12
- package/dist/{session-5NDKKFLN.js → session-5EBECDUP.js} +2 -2
- package/dist/{skills-JVLIQVJN.js → skills-HBQQTYO4.js} +2 -2
- package/dist/{store-G7KRD4PN.js → store-FKUTR7GW.js} +2 -2
- package/dist/{team-FVNNVDBY.js → team-7BBBP5YQ.js} +3 -3
- package/dist/{test-runner-REKSVPPY.js → test-runner-AUAGIBNM.js} +1 -1
- package/dist/{upgrade-YSXCO63I.js → upgrade-MZFH7OCN.js} +1 -1
- package/dist/{web-H2BJXUBZ.js → web-KS3FUGJA.js} +12 -12
- package/package.json +1 -1
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-6XTEAFZQ.js";
|
|
13
|
+
import "./chunk-Y6HMJZDJ.js";
|
|
14
|
+
import "./chunk-GFORWAMW.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-FCW3K6F2.js";
|
|
34
34
|
import {
|
|
35
35
|
createOpenAIClient
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-
|
|
36
|
+
} from "./chunk-5GDYH676.js";
|
|
37
|
+
import "./chunk-CLKIMCXZ.js";
|
|
38
38
|
import {
|
|
39
39
|
HYPERCORE_DIR as HYPERCORE_DIR2,
|
|
40
40
|
MODEL_PROVIDERS,
|
|
41
41
|
loadConfig
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-I7WI3BMB.js";
|
|
43
43
|
import {
|
|
44
44
|
listLines,
|
|
45
45
|
loadLine
|
|
@@ -285,26 +285,26 @@ program.command("run <line>").description("\u8FD0\u884C\u4E00\u6761\u751F\u4EA7\
|
|
|
285
285
|
var lineCmd = program.command("line").description("\u7BA1\u7406\u751F\u4EA7\u7EBF");
|
|
286
286
|
lineCmd.command("ls").description("\u5217\u51FA\u6240\u6709\u53EF\u7528\u7684\u751F\u4EA7\u7EBF").action(lineListCommand);
|
|
287
287
|
var historyCmd = program.command("history").description("\u67E5\u770B\u751F\u4EA7\u7EBF\u8FD0\u884C\u5386\u53F2").action(async () => {
|
|
288
|
-
const { historyCommand } = await import("./history-
|
|
288
|
+
const { historyCommand } = await import("./history-6I6FADAU.js");
|
|
289
289
|
await historyCommand();
|
|
290
290
|
});
|
|
291
291
|
historyCmd.command("view <file>").description("\u67E5\u770B\u5355\u6B21\u8FD0\u884C\u7684\u8BE6\u7EC6\u8BB0\u5F55").action(async (fileId) => {
|
|
292
|
-
const { historyViewCommand } = await import("./history-
|
|
292
|
+
const { historyViewCommand } = await import("./history-6I6FADAU.js");
|
|
293
293
|
await historyViewCommand(fileId);
|
|
294
294
|
});
|
|
295
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 () => {
|
|
296
|
-
const { upgradeCommand } = await import("./upgrade-
|
|
296
|
+
const { upgradeCommand } = await import("./upgrade-MZFH7OCN.js");
|
|
297
297
|
await upgradeCommand();
|
|
298
298
|
});
|
|
299
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) => {
|
|
300
|
-
const { loadConfig: loadConfig2 } = await import("./config-
|
|
301
|
-
const { startWebServer } = await import("./web-
|
|
300
|
+
const { loadConfig: loadConfig2 } = await import("./config-RSNQJQPS.js");
|
|
301
|
+
const { startWebServer } = await import("./web-KS3FUGJA.js");
|
|
302
302
|
const config = await loadConfig2();
|
|
303
303
|
await startWebServer(config, parseInt(opts.port, 10), opts.host);
|
|
304
304
|
});
|
|
305
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) => {
|
|
306
|
-
const { loadConfig: loadConfig2 } = await import("./config-
|
|
307
|
-
const { createWebServerAutoPort, resolveBrowserHost } = await import("./server-
|
|
306
|
+
const { loadConfig: loadConfig2 } = await import("./config-RSNQJQPS.js");
|
|
307
|
+
const { createWebServerAutoPort, resolveBrowserHost } = await import("./server-HCNIP7ZQ.js");
|
|
308
308
|
const config = await loadConfig2();
|
|
309
309
|
const port = parseInt(opts.port, 10);
|
|
310
310
|
const { port: actualPort } = await createWebServerAutoPort(config, port);
|
|
@@ -324,71 +324,71 @@ program.command("mirror").description("\u542F\u52A8\u5185\u89C2\u5F15\u64CE Hype
|
|
|
324
324
|
});
|
|
325
325
|
var teamCmd = program.command("team").description("\u56E2\u961F\u534F\u4F5C\u6A21\u5F0F");
|
|
326
326
|
teamCmd.command("create <name>").description("\u521B\u5EFA\u65B0\u56E2\u961F").option("--port <port>", "\u670D\u52A1\u7AEF\u53E3", "3210").action(async (name, opts) => {
|
|
327
|
-
const { teamCreateCommand } = await import("./team-
|
|
327
|
+
const { teamCreateCommand } = await import("./team-7BBBP5YQ.js");
|
|
328
328
|
await teamCreateCommand(name, opts);
|
|
329
329
|
});
|
|
330
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) => {
|
|
331
|
-
const { teamJoinCommand } = await import("./team-
|
|
331
|
+
const { teamJoinCommand } = await import("./team-7BBBP5YQ.js");
|
|
332
332
|
await teamJoinCommand(code, opts);
|
|
333
333
|
});
|
|
334
334
|
teamCmd.command("status").description("\u67E5\u770B\u56E2\u961F\u72B6\u6001").action(async () => {
|
|
335
|
-
const { teamStatusCommand } = await import("./team-
|
|
335
|
+
const { teamStatusCommand } = await import("./team-7BBBP5YQ.js");
|
|
336
336
|
await teamStatusCommand();
|
|
337
337
|
});
|
|
338
338
|
var taskCmd = teamCmd.command("task").description("\u56E2\u961F\u4EFB\u52A1\u7BA1\u7406");
|
|
339
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) => {
|
|
340
|
-
const { teamTaskAddCommand } = await import("./team-
|
|
340
|
+
const { teamTaskAddCommand } = await import("./team-7BBBP5YQ.js");
|
|
341
341
|
await teamTaskAddCommand(title, opts);
|
|
342
342
|
});
|
|
343
343
|
taskCmd.command("list").alias("ls").description("\u5217\u51FA\u6240\u6709\u4EFB\u52A1").action(async () => {
|
|
344
|
-
const { teamTaskListCommand } = await import("./team-
|
|
344
|
+
const { teamTaskListCommand } = await import("./team-7BBBP5YQ.js");
|
|
345
345
|
await teamTaskListCommand();
|
|
346
346
|
});
|
|
347
347
|
taskCmd.command("assign <id> <member>").description("\u5206\u914D\u4EFB\u52A1\u7ED9\u6210\u5458").action(async (id, member) => {
|
|
348
|
-
const { teamTaskAssignCommand } = await import("./team-
|
|
348
|
+
const { teamTaskAssignCommand } = await import("./team-7BBBP5YQ.js");
|
|
349
349
|
await teamTaskAssignCommand(id, member);
|
|
350
350
|
});
|
|
351
351
|
taskCmd.command("done <id>").description("\u6807\u8BB0\u4EFB\u52A1\u5B8C\u6210").action(async (id) => {
|
|
352
|
-
const { teamTaskDoneCommand } = await import("./team-
|
|
352
|
+
const { teamTaskDoneCommand } = await import("./team-7BBBP5YQ.js");
|
|
353
353
|
await teamTaskDoneCommand(id);
|
|
354
354
|
});
|
|
355
355
|
teamCmd.command("chat").description("\u8FDB\u5165\u56E2\u961F\u5B9E\u65F6\u804A\u5929").action(async () => {
|
|
356
|
-
const { teamChatCommand } = await import("./team-
|
|
356
|
+
const { teamChatCommand } = await import("./team-7BBBP5YQ.js");
|
|
357
357
|
await teamChatCommand();
|
|
358
358
|
});
|
|
359
359
|
teamCmd.command("leave").description("\u79BB\u5F00\u5F53\u524D\u56E2\u961F").action(async () => {
|
|
360
|
-
const { teamLeaveCommand } = await import("./team-
|
|
360
|
+
const { teamLeaveCommand } = await import("./team-7BBBP5YQ.js");
|
|
361
361
|
await teamLeaveCommand();
|
|
362
362
|
});
|
|
363
363
|
var networkCmd = program.command("network").alias("net").description("Hyper Network \u2014 Agent \u81EA\u4E3B\u7F51\u7EDC");
|
|
364
364
|
networkCmd.command("profile [field] [values...]").description("\u67E5\u770B/\u8BBE\u7F6E Agent Profile\uFF08skills/needs/offerings/customNote\uFF09").action(async (field, values) => {
|
|
365
|
-
const { networkProfileCommand } = await import("./network-
|
|
365
|
+
const { networkProfileCommand } = await import("./network-JYGHQXAR.js");
|
|
366
366
|
await networkProfileCommand(field, values);
|
|
367
367
|
});
|
|
368
368
|
networkCmd.command("run").description("\u624B\u52A8\u89E6\u53D1\u4E00\u8F6E\u7F51\u7EDC\u5339\u914D").action(async () => {
|
|
369
|
-
const { networkRunCommand } = await import("./network-
|
|
369
|
+
const { networkRunCommand } = await import("./network-JYGHQXAR.js");
|
|
370
370
|
await networkRunCommand();
|
|
371
371
|
});
|
|
372
372
|
networkCmd.command("digest").description("\u67E5\u770B\u6700\u65B0\u4E2A\u4EBA\u6458\u8981").action(async () => {
|
|
373
|
-
const { networkDigestCommand } = await import("./network-
|
|
373
|
+
const { networkDigestCommand } = await import("./network-JYGHQXAR.js");
|
|
374
374
|
await networkDigestCommand();
|
|
375
375
|
});
|
|
376
376
|
networkCmd.command("auto <action>").description("\u81EA\u52A8\u8F6E\u6B21 (on/off)").action(async (action) => {
|
|
377
|
-
const { networkAutoCommand } = await import("./network-
|
|
377
|
+
const { networkAutoCommand } = await import("./network-JYGHQXAR.js");
|
|
378
378
|
await networkAutoCommand(action);
|
|
379
379
|
});
|
|
380
380
|
networkCmd.command("rounds").description("\u67E5\u770B\u5386\u53F2\u8F6E\u6B21").action(async () => {
|
|
381
|
-
const { networkRoundsCommand } = await import("./network-
|
|
381
|
+
const { networkRoundsCommand } = await import("./network-JYGHQXAR.js");
|
|
382
382
|
await networkRoundsCommand();
|
|
383
383
|
});
|
|
384
384
|
networkCmd.command("config [key] [value]").description("\u67E5\u770B/\u4FEE\u6539\u7F51\u7EDC\u914D\u7F6E").action(async (key, value) => {
|
|
385
|
-
const { networkConfigCommand } = await import("./network-
|
|
385
|
+
const { networkConfigCommand } = await import("./network-JYGHQXAR.js");
|
|
386
386
|
await networkConfigCommand(key, value);
|
|
387
387
|
});
|
|
388
388
|
program.action(async () => {
|
|
389
389
|
const opts = program.opts();
|
|
390
390
|
if (opts.print) {
|
|
391
|
-
const { runPrompt } = await import("./prompt-
|
|
391
|
+
const { runPrompt } = await import("./prompt-UWHSZU4P.js");
|
|
392
392
|
await runPrompt({
|
|
393
393
|
prompt: opts.print,
|
|
394
394
|
outputFormat: opts.outputFormat,
|
|
@@ -396,7 +396,7 @@ program.action(async () => {
|
|
|
396
396
|
resumeId: opts.resume
|
|
397
397
|
});
|
|
398
398
|
} else {
|
|
399
|
-
const { startREPL } = await import("./repl-
|
|
399
|
+
const { startREPL } = await import("./repl-QHIZ2JGF.js");
|
|
400
400
|
await startREPL({ host: opts.host });
|
|
401
401
|
}
|
|
402
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-GFORWAMW.js";
|
|
6
|
+
import "./chunk-I7WI3BMB.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-UCX4VZCT.js";
|
|
12
|
+
import "./chunk-DN4ASQ26.js";
|
|
13
|
+
import "./chunk-DUWREZXK.js";
|
|
14
14
|
import {
|
|
15
15
|
loadLocalToken
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-5NLVGLD7.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-FCW3K6F2.js";
|
|
23
|
+
import "./chunk-5GDYH676.js";
|
|
24
|
+
import "./chunk-CLKIMCXZ.js";
|
|
25
25
|
import {
|
|
26
26
|
loadConfig
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-I7WI3BMB.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-5GDYH676.js";
|
|
6
|
+
import "./chunk-CLKIMCXZ.js";
|
|
7
|
+
import "./chunk-I7WI3BMB.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-Y6HMJZDJ.js";
|
|
5
|
+
import "./chunk-GFORWAMW.js";
|
|
6
6
|
import "./chunk-GU2FZQ6A.js";
|
|
7
7
|
import {
|
|
8
8
|
createLLMClient,
|
|
9
9
|
streamCallLLM
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-FCW3K6F2.js";
|
|
11
11
|
import {
|
|
12
12
|
createOpenAIClient,
|
|
13
13
|
streamOpenAIChat
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-5GDYH676.js";
|
|
15
|
+
import "./chunk-CLKIMCXZ.js";
|
|
16
16
|
import {
|
|
17
17
|
HYPERCORE_DIR,
|
|
18
18
|
loadConfig
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-I7WI3BMB.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-5EBECDUP.js");
|
|
83
83
|
if (options.resumeId) {
|
|
84
84
|
const msgs = await loadSession(options.resumeId);
|
|
85
85
|
history = msgs;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
loadKeyBindings,
|
|
3
3
|
matchKeyBinding
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-O6MG7TOH.js";
|
|
5
5
|
import {
|
|
6
6
|
notifyIfLong,
|
|
7
7
|
setNotificationsEnabled
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
createSubAgentTool,
|
|
11
11
|
runSubAgent
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-R5T3A2NQ.js";
|
|
13
13
|
import {
|
|
14
14
|
createMultiplexer,
|
|
15
15
|
createWebServerAutoPort,
|
|
@@ -43,9 +43,9 @@ import {
|
|
|
43
43
|
hasGUIClients,
|
|
44
44
|
isGitRepo,
|
|
45
45
|
registerREPLContext
|
|
46
|
-
} from "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
46
|
+
} from "./chunk-AQBSMYLT.js";
|
|
47
|
+
import "./chunk-DN4ASQ26.js";
|
|
48
|
+
import "./chunk-DUWREZXK.js";
|
|
49
49
|
import {
|
|
50
50
|
deleteSession,
|
|
51
51
|
exportSession,
|
|
@@ -55,14 +55,14 @@ import {
|
|
|
55
55
|
loadSession,
|
|
56
56
|
renameSession,
|
|
57
57
|
saveSession
|
|
58
|
-
} from "./chunk-
|
|
59
|
-
import "./chunk-
|
|
58
|
+
} from "./chunk-NETIY5UB.js";
|
|
59
|
+
import "./chunk-5NLVGLD7.js";
|
|
60
60
|
import {
|
|
61
61
|
getCanonicalDashboardPort,
|
|
62
62
|
registerInstance,
|
|
63
63
|
unregisterInstance,
|
|
64
64
|
updateInstanceRuntime
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-LBVHDGZE.js";
|
|
66
66
|
import {
|
|
67
67
|
handleCheckpoint
|
|
68
68
|
} from "./chunk-RKB2JOV2.js";
|
|
@@ -71,12 +71,12 @@ import {
|
|
|
71
71
|
} from "./chunk-GH7E2OJE.js";
|
|
72
72
|
import {
|
|
73
73
|
Engine
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-6XTEAFZQ.js";
|
|
75
75
|
import {
|
|
76
76
|
closeMCPConnections,
|
|
77
77
|
createToolRegistry
|
|
78
|
-
} from "./chunk-
|
|
79
|
-
import "./chunk-
|
|
78
|
+
} from "./chunk-Y6HMJZDJ.js";
|
|
79
|
+
import "./chunk-GFORWAMW.js";
|
|
80
80
|
import "./chunk-GU2FZQ6A.js";
|
|
81
81
|
import {
|
|
82
82
|
showBanner,
|
|
@@ -104,20 +104,20 @@ import {
|
|
|
104
104
|
import {
|
|
105
105
|
createLLMClient,
|
|
106
106
|
streamCallLLM
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-FCW3K6F2.js";
|
|
108
108
|
import {
|
|
109
109
|
createOpenAIClient,
|
|
110
110
|
streamOpenAIChat
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-5GDYH676.js";
|
|
112
112
|
import {
|
|
113
113
|
hookManager
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-CLKIMCXZ.js";
|
|
115
115
|
import {
|
|
116
116
|
HYPERCORE_DIR,
|
|
117
117
|
MODEL_ALIASES,
|
|
118
118
|
MODEL_PROVIDERS,
|
|
119
119
|
loadConfig
|
|
120
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-I7WI3BMB.js";
|
|
121
121
|
import {
|
|
122
122
|
listLines
|
|
123
123
|
} from "./chunk-WHLVZCQY.js";
|
|
@@ -208,7 +208,7 @@ ${conversationText}
|
|
|
208
208
|
\u8BF7\u76F4\u63A5\u8F93\u51FA\u6458\u8981\uFF0C\u4E0D\u8981\u6DFB\u52A0\u989D\u5916\u683C\u5F0F\u6216\u524D\u7F00\u3002`;
|
|
209
209
|
let summaryText;
|
|
210
210
|
if (config.modelConfig.sdkType === "openai") {
|
|
211
|
-
const { streamOpenAIChat: streamOpenAIChat2 } = await import("./openai-compat-
|
|
211
|
+
const { streamOpenAIChat: streamOpenAIChat2 } = await import("./openai-compat-R7EKWG6Z.js");
|
|
212
212
|
const OpenAI = (await import("openai")).default;
|
|
213
213
|
const openaiClient = client;
|
|
214
214
|
const result = await streamOpenAIChat2(openaiClient, [
|
|
@@ -224,7 +224,7 @@ ${conversationText}
|
|
|
224
224
|
});
|
|
225
225
|
summaryText = result.content;
|
|
226
226
|
} else {
|
|
227
|
-
const { streamCallLLM: streamCallLLM2 } = await import("./claude-
|
|
227
|
+
const { streamCallLLM: streamCallLLM2 } = await import("./claude-4BX3MJSK.js");
|
|
228
228
|
const Anthropic = (await import("@anthropic-ai/sdk")).default;
|
|
229
229
|
const anthropicClient = client;
|
|
230
230
|
const result = await streamCallLLM2(anthropicClient, {
|
|
@@ -338,7 +338,7 @@ function createCustomHandler(promptTemplate) {
|
|
|
338
338
|
ctx.chatHistory.push({ role: "user", content: prompt });
|
|
339
339
|
try {
|
|
340
340
|
if (ctx.config.modelConfig.sdkType === "openai") {
|
|
341
|
-
const { streamOpenAIChat: streamOpenAIChat2 } = await import("./openai-compat-
|
|
341
|
+
const { streamOpenAIChat: streamOpenAIChat2 } = await import("./openai-compat-R7EKWG6Z.js");
|
|
342
342
|
const OpenAI = (await import("openai")).default;
|
|
343
343
|
const openaiClient = ctx.getClient();
|
|
344
344
|
const messages = [
|
|
@@ -359,7 +359,7 @@ function createCustomHandler(promptTemplate) {
|
|
|
359
359
|
ctx.sessionTokens.inputTokens += result.tokenUsage.inputTokens;
|
|
360
360
|
ctx.sessionTokens.outputTokens += result.tokenUsage.outputTokens;
|
|
361
361
|
} else {
|
|
362
|
-
const { streamCallLLM: streamCallLLM2 } = await import("./claude-
|
|
362
|
+
const { streamCallLLM: streamCallLLM2 } = await import("./claude-4BX3MJSK.js");
|
|
363
363
|
const Anthropic = (await import("@anthropic-ai/sdk")).default;
|
|
364
364
|
const anthropicClient = ctx.getClient();
|
|
365
365
|
const result = await streamCallLLM2(anthropicClient, {
|
|
@@ -1444,7 +1444,7 @@ ${diff.slice(0, 3e3)}
|
|
|
1444
1444
|
let commitMsg = "";
|
|
1445
1445
|
try {
|
|
1446
1446
|
if (ctx.config.modelConfig.sdkType === "openai") {
|
|
1447
|
-
const { streamOpenAIChat: streamOpenAIChat2 } = await import("./openai-compat-
|
|
1447
|
+
const { streamOpenAIChat: streamOpenAIChat2 } = await import("./openai-compat-R7EKWG6Z.js");
|
|
1448
1448
|
const OpenAI = (await import("openai")).default;
|
|
1449
1449
|
const openaiClient = ctx.getClient();
|
|
1450
1450
|
const result = await streamOpenAIChat2(openaiClient, [
|
|
@@ -1460,7 +1460,7 @@ ${diff.slice(0, 3e3)}
|
|
|
1460
1460
|
});
|
|
1461
1461
|
commitMsg = result.content.trim();
|
|
1462
1462
|
} else {
|
|
1463
|
-
const { streamCallLLM: streamCallLLM2 } = await import("./claude-
|
|
1463
|
+
const { streamCallLLM: streamCallLLM2 } = await import("./claude-4BX3MJSK.js");
|
|
1464
1464
|
const Anthropic = (await import("@anthropic-ai/sdk")).default;
|
|
1465
1465
|
const anthropicClient = ctx.getClient();
|
|
1466
1466
|
const result = await streamCallLLM2(anthropicClient, {
|
|
@@ -1578,7 +1578,7 @@ BODY:
|
|
|
1578
1578
|
let prContent = "";
|
|
1579
1579
|
try {
|
|
1580
1580
|
if (ctx.config.modelConfig.sdkType === "openai") {
|
|
1581
|
-
const { streamOpenAIChat: streamOpenAIChat2 } = await import("./openai-compat-
|
|
1581
|
+
const { streamOpenAIChat: streamOpenAIChat2 } = await import("./openai-compat-R7EKWG6Z.js");
|
|
1582
1582
|
const OpenAI = (await import("openai")).default;
|
|
1583
1583
|
const openaiClient = ctx.getClient();
|
|
1584
1584
|
const result = await streamOpenAIChat2(openaiClient, [
|
|
@@ -1594,7 +1594,7 @@ BODY:
|
|
|
1594
1594
|
});
|
|
1595
1595
|
prContent = result.content.trim();
|
|
1596
1596
|
} else {
|
|
1597
|
-
const { streamCallLLM: streamCallLLM2 } = await import("./claude-
|
|
1597
|
+
const { streamCallLLM: streamCallLLM2 } = await import("./claude-4BX3MJSK.js");
|
|
1598
1598
|
const Anthropic = (await import("@anthropic-ai/sdk")).default;
|
|
1599
1599
|
const anthropicClient = ctx.getClient();
|
|
1600
1600
|
const result = await streamCallLLM2(anthropicClient, {
|
|
@@ -2337,7 +2337,7 @@ ${planResult.output}${checkpointResult.feedback ? `
|
|
|
2337
2337
|
description: "\u5217\u51FA\u6240\u6709\u53EF\u7528\u6280\u80FD",
|
|
2338
2338
|
category: "util",
|
|
2339
2339
|
handler: async () => {
|
|
2340
|
-
const { listAvailableSkills } = await import("./skills-
|
|
2340
|
+
const { listAvailableSkills } = await import("./skills-HBQQTYO4.js");
|
|
2341
2341
|
const skills = await listAvailableSkills();
|
|
2342
2342
|
if (skills.length === 0) {
|
|
2343
2343
|
console.log(chalk3.dim("\n \u6682\u65E0\u53EF\u7528\u6280\u80FD"));
|
|
@@ -2623,7 +2623,7 @@ ${planResult.output}${checkpointResult.feedback ? `
|
|
|
2623
2623
|
description: "\u67E5\u770B\u5FEB\u6377\u952E\u7ED1\u5B9A",
|
|
2624
2624
|
category: "util",
|
|
2625
2625
|
handler: async () => {
|
|
2626
|
-
const { listKeyBindings } = await import("./keybindings-
|
|
2626
|
+
const { listKeyBindings } = await import("./keybindings-PDXIOV3O.js");
|
|
2627
2627
|
const bindings = listKeyBindings();
|
|
2628
2628
|
console.log(chalk3.bold("\n \u5FEB\u6377\u952E\u7ED1\u5B9A:\n"));
|
|
2629
2629
|
for (const b of bindings) {
|
|
@@ -2712,7 +2712,7 @@ async function startREPL(options) {
|
|
|
2712
2712
|
let memoryRoundCount = 0;
|
|
2713
2713
|
const hyperMd = await loadHyperMd();
|
|
2714
2714
|
const project = await detectProject();
|
|
2715
|
-
const { loadMemoryForSystemPrompt } = await import("./loader-
|
|
2715
|
+
const { loadMemoryForSystemPrompt } = await import("./loader-GKEYT6Y7.js");
|
|
2716
2716
|
const { memoryBlock } = await loadMemoryForSystemPrompt();
|
|
2717
2717
|
let systemPrompt = "";
|
|
2718
2718
|
if (hyperMd) {
|
|
@@ -2755,13 +2755,13 @@ Git: ${branch} (${statusStr})`;
|
|
|
2755
2755
|
if (customCmds.length > 0) {
|
|
2756
2756
|
commandRegistry.registerAll(customCmds);
|
|
2757
2757
|
}
|
|
2758
|
-
const { createTeamSlashCommands } = await import("./commands-
|
|
2758
|
+
const { createTeamSlashCommands } = await import("./commands-2X4OB5RF.js");
|
|
2759
2759
|
commandRegistry.registerAll(createTeamSlashCommands());
|
|
2760
|
-
const { createMemorySlashCommands } = await import("./commands-
|
|
2760
|
+
const { createMemorySlashCommands } = await import("./commands-IINRNBYX.js");
|
|
2761
2761
|
commandRegistry.registerAll(createMemorySlashCommands());
|
|
2762
|
-
const { createAdminSlashCommands } = await import("./commands-
|
|
2762
|
+
const { createAdminSlashCommands } = await import("./commands-GLBCEVQK.js");
|
|
2763
2763
|
commandRegistry.registerAll(createAdminSlashCommands());
|
|
2764
|
-
const { loadSkills } = await import("./skills-
|
|
2764
|
+
const { loadSkills } = await import("./skills-HBQQTYO4.js");
|
|
2765
2765
|
const skillCmds = await loadSkills();
|
|
2766
2766
|
if (skillCmds.length > 0) {
|
|
2767
2767
|
commandRegistry.registerAll(skillCmds);
|
|
@@ -2943,7 +2943,7 @@ Git: ${branch} (${statusStr})`;
|
|
|
2943
2943
|
}
|
|
2944
2944
|
if (chatHistory.length >= 4) {
|
|
2945
2945
|
try {
|
|
2946
|
-
const { extractMemories } = await import("./extractor-
|
|
2946
|
+
const { extractMemories } = await import("./extractor-D3XWOAXI.js");
|
|
2947
2947
|
await extractMemories(chatHistory, client, config, "personal");
|
|
2948
2948
|
} catch {
|
|
2949
2949
|
}
|
|
@@ -3348,7 +3348,7 @@ Git: ${branch} (${statusStr})`;
|
|
|
3348
3348
|
_sessionRounds++;
|
|
3349
3349
|
memoryRoundCount++;
|
|
3350
3350
|
if (memoryRoundCount % 3 === 0) {
|
|
3351
|
-
const { triggerAutoExtraction } = await import("./extractor-
|
|
3351
|
+
const { triggerAutoExtraction } = await import("./extractor-D3XWOAXI.js");
|
|
3352
3352
|
triggerAutoExtraction(chatHistory, client, config, ["personal"]);
|
|
3353
3353
|
}
|
|
3354
3354
|
}
|
|
@@ -17,22 +17,22 @@ import {
|
|
|
17
17
|
sendError,
|
|
18
18
|
sendJSON,
|
|
19
19
|
setActivePort
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-AQBSMYLT.js";
|
|
21
|
+
import "./chunk-DN4ASQ26.js";
|
|
22
|
+
import "./chunk-DUWREZXK.js";
|
|
23
|
+
import "./chunk-NETIY5UB.js";
|
|
24
|
+
import "./chunk-5NLVGLD7.js";
|
|
25
|
+
import "./chunk-6XTEAFZQ.js";
|
|
26
|
+
import "./chunk-Y6HMJZDJ.js";
|
|
27
|
+
import "./chunk-GFORWAMW.js";
|
|
28
28
|
import "./chunk-GU2FZQ6A.js";
|
|
29
29
|
import "./chunk-R3GPQC7I.js";
|
|
30
30
|
import "./chunk-BE46C7JW.js";
|
|
31
31
|
import "./chunk-RNG3K465.js";
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-FCW3K6F2.js";
|
|
33
|
+
import "./chunk-5GDYH676.js";
|
|
34
|
+
import "./chunk-CLKIMCXZ.js";
|
|
35
|
+
import "./chunk-I7WI3BMB.js";
|
|
36
36
|
import "./chunk-WHLVZCQY.js";
|
|
37
37
|
import "./chunk-TGTYKBGC.js";
|
|
38
38
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runSubAgent
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-R5T3A2NQ.js";
|
|
4
4
|
import {
|
|
5
5
|
renderMarkdown
|
|
6
6
|
} from "./chunk-GH7E2OJE.js";
|
|
@@ -8,7 +8,7 @@ import "./chunk-GU2FZQ6A.js";
|
|
|
8
8
|
import "./chunk-BE46C7JW.js";
|
|
9
9
|
import {
|
|
10
10
|
HYPERCORE_DIR
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-I7WI3BMB.js";
|
|
12
12
|
|
|
13
13
|
// src/repl/skills.ts
|
|
14
14
|
import { existsSync } from "fs";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createTeam
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DUWREZXK.js";
|
|
4
4
|
import {
|
|
5
5
|
clearLocalToken,
|
|
6
6
|
loadLocalToken,
|
|
7
7
|
saveLocalToken
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-5NLVGLD7.js";
|
|
9
9
|
import {
|
|
10
10
|
showError,
|
|
11
11
|
showTaskList,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
} from "./chunk-R3GPQC7I.js";
|
|
15
15
|
import "./chunk-BE46C7JW.js";
|
|
16
16
|
import "./chunk-RNG3K465.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-I7WI3BMB.js";
|
|
18
18
|
|
|
19
19
|
// src/commands/team.ts
|
|
20
20
|
import chalk from "chalk";
|