hypercore-cli 1.1.1 → 1.3.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 +92 -21
- package/README.md +8 -1
- package/dist/App-YMX7FSXR.js +1 -0
- package/dist/api-Q2TX5JJL.js +1 -0
- package/dist/auth-X6CUT3DW.js +1 -0
- package/dist/background-ACODXSUG.js +1 -0
- package/dist/backlog-JD2IM336.js +1 -0
- package/dist/chunk-2QI2IU2V.js +1 -0
- package/dist/chunk-3KFRDIPQ.js +1 -0
- package/dist/chunk-42C5J7PN.js +1 -0
- package/dist/chunk-4D7XVJ7Q.js +1 -0
- package/dist/chunk-545IGTXV.js +1 -0
- package/dist/chunk-5KUSGQP2.js +1 -0
- package/dist/chunk-AUQ64BK2.js +1 -0
- package/dist/chunk-AV244H5C.js +1 -0
- package/dist/chunk-BQVBEFS4.js +1 -0
- package/dist/chunk-BYWQLFP2.js +1 -0
- package/dist/chunk-COITWWZJ.js +1 -0
- package/dist/chunk-CR7UUJVX.js +1 -0
- package/dist/chunk-E3MULLBX.js +1 -0
- package/dist/chunk-EWBV7YPP.js +1 -0
- package/dist/chunk-EZHYVJGQ.js +1 -0
- package/dist/chunk-FAKXBY7Q.js +1 -0
- package/dist/chunk-FHGATV5B.js +1 -0
- package/dist/chunk-I2G27Y5P.js +1 -0
- package/dist/chunk-IKF43TX2.js +1 -0
- package/dist/chunk-INSPHCBN.js +1 -0
- package/dist/chunk-LQMDUKIE.js +1 -0
- package/dist/chunk-M3MTKGA5.js +1 -0
- package/dist/chunk-MPO54FU3.js +1 -0
- package/dist/chunk-PVKCZI6A.js +1 -0
- package/dist/chunk-Q7KEPCYL.js +1 -0
- package/dist/chunk-R5XD3NT2.js +1 -0
- package/dist/chunk-ROBZ6PAL.js +1 -0
- package/dist/chunk-RXB5BS2N.js +1 -0
- package/dist/chunk-RZ3HNYMT.js +1 -0
- package/dist/chunk-UCGLRMTG.js +1 -0
- package/dist/chunk-UEHJVRKB.js +1 -0
- package/dist/chunk-UZYX5GGF.js +1 -0
- package/dist/chunk-XQJBB725.js +1 -0
- package/dist/chunk-ZB5ZQSXH.js +1 -0
- package/dist/claude-US2QPRBA.js +1 -0
- package/dist/commands-5TFN74MD.js +1 -0
- package/dist/commands-EKPWCB3T.js +1 -0
- package/dist/commands-QHJLREPM.js +1 -0
- package/dist/config-2OUL5FLS.js +1 -0
- package/dist/config-loader-N7IBWN2P.js +1 -0
- package/dist/diagnose-NLHN4SAJ.js +1 -0
- package/dist/display-TB5YACJV.js +1 -0
- package/dist/extractor-3KTM2IUL.js +1 -0
- package/dist/feature-flag-VVIF5FJG.js +1 -0
- package/dist/history-GVNDPXXQ.js +1 -0
- package/dist/index.js +1 -402
- package/dist/instance-registry-I5AIVJE2.js +1 -0
- package/dist/keybindings-RN3A7CRW.js +1 -0
- package/dist/loader-3IKPXP4R.js +1 -0
- package/dist/network-GI2F3IDE.js +1 -0
- package/dist/notify-O6FNVHC4.js +1 -0
- package/dist/openai-compat-IPCMINVF.js +1 -0
- package/dist/permissions-5O7KVAXU.js +1 -0
- package/dist/prompt-VWFPFM4N.js +1 -0
- package/dist/quality-GPQD25UL.js +1 -0
- package/dist/repl-YNXCDVU4.js +1 -0
- package/dist/roadmap-QRZODSNJ.js +1 -0
- package/dist/server-USQP4GC4.js +1 -0
- package/dist/session-5HDDQQP6.js +1 -0
- package/dist/skills-DXWSVJSU.js +1 -0
- package/dist/store-WXXTKTTL.js +1 -0
- package/dist/team-VTPJ3WRT.js +1 -0
- package/dist/telemetry-NT4UZLBS.js +1 -0
- package/dist/test-runner-F6B6RH3S.js +1 -0
- package/dist/theme-JJJ6ABR2.js +1 -0
- package/dist/upgrade-RUG3R7R5.js +1 -0
- package/dist/verify-6OGRY2PR.js +1 -0
- package/dist/version-DLROA5JN.js +1 -0
- package/dist/web/static/app.js +1 -562
- package/dist/web/static/index.html +114 -126
- package/dist/web/static/mirror.css +1 -1001
- package/dist/web/static/mirror.html +155 -178
- package/dist/web/static/mirror.js +1 -1125
- package/dist/web/static/onboard.css +1 -302
- package/dist/web/static/onboard.html +121 -145
- package/dist/web/static/onboard.js +1 -300
- package/dist/web/static/style.css +1 -602
- package/dist/web/static/utils.js +1 -0
- package/dist/web/static/workspace.css +1 -1568
- package/dist/web/static/workspace.html +369 -402
- package/dist/web/static/workspace.js +1 -1683
- package/dist/web-P5YUKEAU.js +1 -0
- package/package.json +25 -4
- package/dist/api-D4PUN5BN.js +0 -162
- package/dist/auth-UTR4I6QY.js +0 -21
- package/dist/background-2EGCAAQH.js +0 -14
- package/dist/backlog-Q2NZCLNY.js +0 -24
- package/dist/chunk-2CMSCWQW.js +0 -162
- package/dist/chunk-4DVYJAJL.js +0 -57
- package/dist/chunk-77FRUHTU.js +0 -271
- package/dist/chunk-7ZYMJFCA.js +0 -251
- package/dist/chunk-BE46C7JW.js +0 -46
- package/dist/chunk-CM423E2U.js +0 -133
- package/dist/chunk-E4NKO2KI.js +0 -263
- package/dist/chunk-GH7E2OJE.js +0 -223
- package/dist/chunk-GMLQ7GZ5.js +0 -134
- package/dist/chunk-GU2FZQ6A.js +0 -69
- package/dist/chunk-IOPKN5GD.js +0 -190
- package/dist/chunk-LWDNLX6B.js +0 -2025
- package/dist/chunk-MGLJ53QN.js +0 -219
- package/dist/chunk-NHPDLYEW.js +0 -139
- package/dist/chunk-OGQGKMDX.js +0 -173
- package/dist/chunk-OPZYEVYR.js +0 -150
- package/dist/chunk-OWAOKDIN.js +0 -1505
- package/dist/chunk-R3GPQC7I.js +0 -393
- package/dist/chunk-RKB2JOV2.js +0 -43
- package/dist/chunk-RNG3K465.js +0 -80
- package/dist/chunk-SHJQMIJL.js +0 -288
- package/dist/chunk-SVF2VWOZ.js +0 -145
- package/dist/chunk-TGTYKBGC.js +0 -86
- package/dist/chunk-V2EBSFPU.js +0 -575
- package/dist/chunk-VJDQNNSO.js +0 -681
- package/dist/chunk-VQ35XX7B.js +0 -167
- package/dist/chunk-WHLVZCQY.js +0 -245
- package/dist/chunk-XMGHVNH2.js +0 -66
- package/dist/chunk-YWOSOTUO.js +0 -58
- package/dist/chunk-ZQRNV2US.js +0 -166
- package/dist/chunk-ZSBHUGWR.js +0 -262
- package/dist/claude-O5FSOXZC.js +0 -12
- package/dist/commands-43PLOWRU.js +0 -128
- package/dist/commands-5YVUSUMP.js +0 -232
- package/dist/commands-VZMZJFZF.js +0 -1044
- package/dist/config-WXXEEEVW.js +0 -8
- package/dist/config-loader-SXO674TF.js +0 -24
- package/dist/diagnose-BX45APUZ.js +0 -12
- package/dist/display-IIUBEYWN.js +0 -58
- package/dist/extractor-R5ABXNTJ.js +0 -129
- package/dist/history-JPXZEOT3.js +0 -180
- package/dist/index.d.ts +0 -1
- package/dist/instance-registry-6NJTCAE4.js +0 -15
- package/dist/keybindings-ADWNOX5M.js +0 -15
- package/dist/loader-AXDDCB2G.js +0 -58
- package/dist/network-V3O4UZYZ.js +0 -279
- package/dist/notify-HPTALZDC.js +0 -14
- package/dist/openai-compat-UFDV2SCK.js +0 -12
- package/dist/permissions-JUKXMNDH.js +0 -10
- package/dist/prompt-5CZ34WGA.js +0 -166
- package/dist/quality-ST7PPNFR.js +0 -16
- package/dist/repl-EOWP6AAB.js +0 -3374
- package/dist/roadmap-5OBEKROY.js +0 -17
- package/dist/server-BB5AENWU.js +0 -57
- package/dist/session-5NDKKFLN.js +0 -21
- package/dist/skills-JVLIQVJN.js +0 -175
- package/dist/store-G7KRD4PN.js +0 -25
- package/dist/team-FVNNVDBY.js +0 -385
- package/dist/telemetry-6R4EIE6O.js +0 -30
- package/dist/test-runner-REKSVPPY.js +0 -619
- package/dist/theme-3SYJ3UQA.js +0 -14
- package/dist/upgrade-YSXCO63I.js +0 -83
- package/dist/verify-JUDKTPKZ.js +0 -14
- package/dist/web-H2BJXUBZ.js +0 -39
package/dist/upgrade-YSXCO63I.js
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
HYPERCORE_DIR
|
|
3
|
-
} from "./chunk-SVF2VWOZ.js";
|
|
4
|
-
|
|
5
|
-
// src/commands/upgrade.ts
|
|
6
|
-
import { readdir, copyFile, mkdir } from "fs/promises";
|
|
7
|
-
import { join, dirname } from "path";
|
|
8
|
-
import { fileURLToPath } from "url";
|
|
9
|
-
import { existsSync } from "fs";
|
|
10
|
-
import chalk from "chalk";
|
|
11
|
-
function getTemplatesDir() {
|
|
12
|
-
const thisFile = fileURLToPath(import.meta.url);
|
|
13
|
-
const distDir = dirname(thisFile);
|
|
14
|
-
const projectRoot = join(distDir, "..");
|
|
15
|
-
return join(projectRoot, "templates");
|
|
16
|
-
}
|
|
17
|
-
async function syncDir(srcDir, destDir, category, result) {
|
|
18
|
-
if (!existsSync(srcDir)) return;
|
|
19
|
-
await mkdir(destDir, { recursive: true });
|
|
20
|
-
let entries;
|
|
21
|
-
try {
|
|
22
|
-
entries = await readdir(srcDir);
|
|
23
|
-
} catch {
|
|
24
|
-
return;
|
|
25
|
-
}
|
|
26
|
-
for (const file of entries) {
|
|
27
|
-
const srcPath = join(srcDir, file);
|
|
28
|
-
const destPath = join(destDir, file);
|
|
29
|
-
if (existsSync(destPath)) {
|
|
30
|
-
result.skipped.push(`${category}/${file}`);
|
|
31
|
-
} else {
|
|
32
|
-
try {
|
|
33
|
-
await copyFile(srcPath, destPath);
|
|
34
|
-
result.added.push(`${category}/${file}`);
|
|
35
|
-
} catch (err) {
|
|
36
|
-
result.errors.push(`${category}/${file}: ${err instanceof Error ? err.message : String(err)}`);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
async function upgradeCommand() {
|
|
42
|
-
if (!existsSync(HYPERCORE_DIR)) {
|
|
43
|
-
console.log(chalk.red("\n \u274C \u8BF7\u5148\u8FD0\u884C hypercore init \u521D\u59CB\u5316\n"));
|
|
44
|
-
process.exit(1);
|
|
45
|
-
}
|
|
46
|
-
console.log(chalk.bold("\n \u{1F504} \u68C0\u67E5\u6A21\u677F\u66F4\u65B0\u2026\n"));
|
|
47
|
-
const templatesDir = getTemplatesDir();
|
|
48
|
-
if (!existsSync(templatesDir)) {
|
|
49
|
-
console.log(chalk.red(" \u274C \u672A\u627E\u5230\u6A21\u677F\u76EE\u5F55\n"));
|
|
50
|
-
return;
|
|
51
|
-
}
|
|
52
|
-
const result = { added: [], skipped: [], errors: [] };
|
|
53
|
-
await syncDir(join(templatesDir, "agents"), join(HYPERCORE_DIR, "agents"), "agents", result);
|
|
54
|
-
await syncDir(join(templatesDir, "skills"), join(HYPERCORE_DIR, "skills"), "skills", result);
|
|
55
|
-
await syncDir(join(templatesDir, "lines"), join(HYPERCORE_DIR, "lines"), "lines", result);
|
|
56
|
-
if (result.added.length > 0) {
|
|
57
|
-
console.log(chalk.green(` \u2705 \u65B0\u589E ${result.added.length} \u4E2A\u6A21\u677F\uFF1A`));
|
|
58
|
-
for (const f of result.added) {
|
|
59
|
-
console.log(chalk.green(` + ${f}`));
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
if (result.skipped.length > 0) {
|
|
63
|
-
console.log(chalk.dim(`
|
|
64
|
-
\u23ED\uFE0F \u5DF2\u5B58\u5728 ${result.skipped.length} \u4E2A\uFF08\u672A\u8986\u76D6\uFF09\uFF1A`));
|
|
65
|
-
for (const f of result.skipped) {
|
|
66
|
-
console.log(chalk.dim(` = ${f}`));
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
if (result.errors.length > 0) {
|
|
70
|
-
console.log(chalk.red(`
|
|
71
|
-
\u274C ${result.errors.length} \u4E2A\u9519\u8BEF\uFF1A`));
|
|
72
|
-
for (const e of result.errors) {
|
|
73
|
-
console.log(chalk.red(` ${e}`));
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
if (result.added.length === 0 && result.errors.length === 0) {
|
|
77
|
-
console.log(chalk.dim(" \u6240\u6709\u6A21\u677F\u5DF2\u662F\u6700\u65B0\uFF0C\u65E0\u9700\u66F4\u65B0\u3002"));
|
|
78
|
-
}
|
|
79
|
-
console.log();
|
|
80
|
-
}
|
|
81
|
-
export {
|
|
82
|
-
upgradeCommand
|
|
83
|
-
};
|
package/dist/verify-JUDKTPKZ.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getMetricValue,
|
|
3
|
-
inferBaselineKey,
|
|
4
|
-
recordBaseline,
|
|
5
|
-
verifyCompletedItems
|
|
6
|
-
} from "./chunk-IOPKN5GD.js";
|
|
7
|
-
import "./chunk-2CMSCWQW.js";
|
|
8
|
-
import "./chunk-MGLJ53QN.js";
|
|
9
|
-
export {
|
|
10
|
-
getMetricValue,
|
|
11
|
-
inferBaselineKey,
|
|
12
|
-
recordBaseline,
|
|
13
|
-
verifyCompletedItems
|
|
14
|
-
};
|
package/dist/web-H2BJXUBZ.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
createWebServerAutoPort
|
|
3
|
-
} from "./chunk-LWDNLX6B.js";
|
|
4
|
-
import "./chunk-VQ35XX7B.js";
|
|
5
|
-
import "./chunk-OGQGKMDX.js";
|
|
6
|
-
import "./chunk-GMLQ7GZ5.js";
|
|
7
|
-
import "./chunk-XMGHVNH2.js";
|
|
8
|
-
import "./chunk-V2EBSFPU.js";
|
|
9
|
-
import "./chunk-OWAOKDIN.js";
|
|
10
|
-
import "./chunk-7ZYMJFCA.js";
|
|
11
|
-
import "./chunk-GU2FZQ6A.js";
|
|
12
|
-
import "./chunk-R3GPQC7I.js";
|
|
13
|
-
import "./chunk-BE46C7JW.js";
|
|
14
|
-
import "./chunk-RNG3K465.js";
|
|
15
|
-
import "./chunk-E4NKO2KI.js";
|
|
16
|
-
import "./chunk-77FRUHTU.js";
|
|
17
|
-
import "./chunk-NHPDLYEW.js";
|
|
18
|
-
import "./chunk-SVF2VWOZ.js";
|
|
19
|
-
import "./chunk-WHLVZCQY.js";
|
|
20
|
-
import "./chunk-TGTYKBGC.js";
|
|
21
|
-
|
|
22
|
-
// src/web/index.ts
|
|
23
|
-
async function startWebServer(config, port = 3210, host = "127.0.0.1") {
|
|
24
|
-
const { server, port: actualPort } = await createWebServerAutoPort(config, port, host);
|
|
25
|
-
const shutdown = () => {
|
|
26
|
-
console.log("\n Shutting down Hypercore Web Dashboard...");
|
|
27
|
-
server.close(() => {
|
|
28
|
-
process.exit(0);
|
|
29
|
-
});
|
|
30
|
-
setTimeout(() => process.exit(1), 3e3);
|
|
31
|
-
};
|
|
32
|
-
process.on("SIGINT", shutdown);
|
|
33
|
-
process.on("SIGTERM", shutdown);
|
|
34
|
-
await new Promise(() => {
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
export {
|
|
38
|
-
startWebServer
|
|
39
|
-
};
|