jinzd-ai-cli 0.4.334 → 0.4.338
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/{batch-6UJGEEVB.js → batch-N4DOEUEW.js} +2 -2
- package/dist/{chunk-W4P2KJZN.js → chunk-7BOHS5IX.js} +72 -0
- package/dist/{chunk-SZQ2C3HH.js → chunk-ATOF545W.js} +1 -1
- package/dist/{chunk-7GGWVBHG.js → chunk-DCWBDSMO.js} +2 -2
- package/dist/{chunk-RQOOEXDU.js → chunk-DOO4QAGJ.js} +2 -2
- package/dist/{chunk-XMHVHS2X.js → chunk-DRCN44SZ.js} +4 -4
- package/dist/{chunk-YTAYWGS4.js → chunk-JUYK4OML.js} +1 -1
- package/dist/{chunk-DPUZ22D7.js → chunk-KGHVSYGI.js} +27 -23
- package/dist/{chunk-EOYIIGBJ.js → chunk-NJREBH6A.js} +5 -5
- package/dist/{chunk-FHHBPCCZ.js → chunk-NRFAGZVJ.js} +1 -1
- package/dist/{chunk-YVEBRHSV.js → chunk-OXVJZLJM.js} +6 -5
- package/dist/{chunk-YY4QFBBZ.js → chunk-PKYNCSQC.js} +475 -240
- package/dist/{chunk-KSZEQADY.js → chunk-RIDNF4G2.js} +1 -1
- package/dist/{chunk-27RTBMY7.js → chunk-TTLLXFJC.js} +40 -3
- package/dist/{chunk-DX4Y4CRH.js → chunk-UWEBIOHD.js} +8 -20
- package/dist/{chunk-ZK5VCQD2.js → chunk-WQAUMAEV.js} +1 -1
- package/dist/{ci-S7WXRTZ6.js → ci-HFAPFMZY.js} +6 -6
- package/dist/{ci-format-TPCL2KWQ.js → ci-format-QTRMHY3N.js} +2 -2
- package/dist/{constants-WJAUJAQQ.js → constants-JZH2QKMQ.js} +1 -1
- package/dist/{constants-5VQMHBFU.js → constants-QJNJFMC6.js} +1 -1
- package/dist/{doctor-cli-DYQLNMPT.js → doctor-cli-FZ4IVZ6H.js} +6 -6
- package/dist/electron-server.js +622 -285
- package/dist/{hub-A7P2ZBYB.js → hub-IRILXTL3.js} +1 -1
- package/dist/index.js +25 -23
- package/dist/{persistent-memory-WFGBTGWT.js → persistent-memory-UZIZVHRT.js} +2 -2
- package/dist/{persistent-memory-SKGOCEGT.js → persistent-memory-VRBNWOWN.js} +2 -2
- package/dist/{pr-IPXLVP2K.js → pr-4KNQWYC6.js} +7 -7
- package/dist/{run-tests-BG6SGRWQ.js → run-tests-N2VKD7BU.js} +2 -2
- package/dist/{run-tests-TUTI7HIN.js → run-tests-UXEOFPAW.js} +2 -2
- package/dist/{server-4QJPQBEW.js → server-2VSO2ZX4.js} +6 -6
- package/dist/{server-S6OROC7S.js → server-HWKYWQEP.js} +21 -20
- package/dist/{task-orchestrator-6JG5GAXU.js → task-orchestrator-SC42LAFG.js} +6 -6
- package/dist/{usage-LPQQ6NGG.js → usage-ZVV27BHD.js} +2 -2
- package/dist/web/client/vendor/purify.es.mjs +272 -196
- package/dist/web/client/vendor/purify.es.mjs.br +0 -0
- package/dist/web/client/vendor/purify.es.mjs.gz +0 -0
- package/package.json +6 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
schemaToJsonSchema
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7BOHS5IX.js";
|
|
5
5
|
import {
|
|
6
6
|
detectsHallucinatedFileOp,
|
|
7
7
|
parseToolCallArguments
|
|
@@ -17,7 +17,42 @@ import {
|
|
|
17
17
|
} from "./chunk-BMLQPSHP.js";
|
|
18
18
|
import {
|
|
19
19
|
DEFAULT_MAX_TOKENS
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-NRFAGZVJ.js";
|
|
21
|
+
|
|
22
|
+
// src/core/proxy.ts
|
|
23
|
+
var DEFAULT_NO_PROXY_HOSTS = [
|
|
24
|
+
"deepseek.com",
|
|
25
|
+
"bigmodel.cn",
|
|
26
|
+
"moonshot.cn",
|
|
27
|
+
"moonshot.ai",
|
|
28
|
+
"aliyuncs.com",
|
|
29
|
+
"minimaxi.com"
|
|
30
|
+
];
|
|
31
|
+
function shouldBypassProxy(baseUrl, noProxy = DEFAULT_NO_PROXY_HOSTS) {
|
|
32
|
+
if (!baseUrl) return false;
|
|
33
|
+
let host;
|
|
34
|
+
try {
|
|
35
|
+
host = new URL(baseUrl).hostname.toLowerCase();
|
|
36
|
+
} catch {
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
if (!host) return false;
|
|
40
|
+
return noProxy.some((raw) => {
|
|
41
|
+
const entry = raw.trim().toLowerCase().replace(/^\*?\./, "");
|
|
42
|
+
if (!entry) return false;
|
|
43
|
+
if (entry === "*") return true;
|
|
44
|
+
return host === entry || host.endsWith("." + entry);
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
async function setupProxy(configProxy) {
|
|
48
|
+
const proxyUrl = process.env.HTTPS_PROXY ?? process.env.HTTP_PROXY ?? process.env.https_proxy ?? process.env.http_proxy ?? configProxy;
|
|
49
|
+
if (!proxyUrl) return;
|
|
50
|
+
try {
|
|
51
|
+
const { ProxyAgent, setGlobalDispatcher } = await import("undici");
|
|
52
|
+
setGlobalDispatcher(new ProxyAgent({ uri: proxyUrl }));
|
|
53
|
+
} catch {
|
|
54
|
+
}
|
|
55
|
+
}
|
|
21
56
|
|
|
22
57
|
// src/providers/claude.ts
|
|
23
58
|
import Anthropic from "@anthropic-ai/sdk";
|
|
@@ -1156,7 +1191,8 @@ var OpenAICompatibleProvider = class extends BaseProvider {
|
|
|
1156
1191
|
timeout: this.defaultTimeout,
|
|
1157
1192
|
maxRetries
|
|
1158
1193
|
};
|
|
1159
|
-
const
|
|
1194
|
+
const noProxy = Array.isArray(options?.noProxy) ? options.noProxy : DEFAULT_NO_PROXY_HOSTS;
|
|
1195
|
+
const proxyUrl = isLoopbackBaseUrl(clientOptions.baseURL) || shouldBypassProxy(clientOptions.baseURL, noProxy) ? void 0 : options?.proxy;
|
|
1160
1196
|
try {
|
|
1161
1197
|
const { Agent, ProxyAgent, fetch: undiciFetch } = await import("undici");
|
|
1162
1198
|
const STREAM_BODY_TIMEOUT = 30 * 60 * 1e3;
|
|
@@ -2736,6 +2772,7 @@ var ProviderRegistry = class {
|
|
|
2736
2772
|
};
|
|
2737
2773
|
|
|
2738
2774
|
export {
|
|
2775
|
+
setupProxy,
|
|
2739
2776
|
listBuiltInProviderMetadata,
|
|
2740
2777
|
ProviderRegistry
|
|
2741
2778
|
};
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
setPreferredAgentName,
|
|
17
17
|
truncateForPersist,
|
|
18
18
|
undoStack
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-PKYNCSQC.js";
|
|
20
20
|
import {
|
|
21
21
|
buildReviewPrompt,
|
|
22
22
|
buildSecurityReviewPrompt
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
touchMemoryReferences,
|
|
52
52
|
updateMemoryApproval,
|
|
53
53
|
updateMemoryEntry
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-WQAUMAEV.js";
|
|
55
55
|
import {
|
|
56
56
|
theme
|
|
57
57
|
} from "./chunk-5C76XDDF.js";
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
import {
|
|
66
66
|
buildDoctorReport,
|
|
67
67
|
formatDoctorReport
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-DRCN44SZ.js";
|
|
69
69
|
import {
|
|
70
70
|
describePlugin,
|
|
71
71
|
getActivePluginAssets,
|
|
@@ -80,7 +80,7 @@ import {
|
|
|
80
80
|
trustHook,
|
|
81
81
|
trustPlugin,
|
|
82
82
|
untrustHook
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-NJREBH6A.js";
|
|
84
84
|
import {
|
|
85
85
|
isCleanDocumentBody,
|
|
86
86
|
stripOuterCodeFence
|
|
@@ -109,7 +109,7 @@ import {
|
|
|
109
109
|
MCP_TOOL_PREFIX,
|
|
110
110
|
REPO_URL,
|
|
111
111
|
VERSION
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-NRFAGZVJ.js";
|
|
113
113
|
|
|
114
114
|
// src/skills/manager.ts
|
|
115
115
|
import { existsSync, readdirSync, mkdirSync, statSync } from "fs";
|
|
@@ -832,17 +832,6 @@ var McpManager = class {
|
|
|
832
832
|
}
|
|
833
833
|
};
|
|
834
834
|
|
|
835
|
-
// src/core/proxy.ts
|
|
836
|
-
async function setupProxy(configProxy) {
|
|
837
|
-
const proxyUrl = process.env.HTTPS_PROXY ?? process.env.HTTP_PROXY ?? process.env.https_proxy ?? process.env.http_proxy ?? configProxy;
|
|
838
|
-
if (!proxyUrl) return;
|
|
839
|
-
try {
|
|
840
|
-
const { ProxyAgent, setGlobalDispatcher } = await import("undici");
|
|
841
|
-
setGlobalDispatcher(new ProxyAgent({ uri: proxyUrl }));
|
|
842
|
-
} catch {
|
|
843
|
-
}
|
|
844
|
-
}
|
|
845
|
-
|
|
846
835
|
// src/repl/commands/project-init.ts
|
|
847
836
|
import { existsSync as existsSync2, readFileSync as readFileSync2, readdirSync as readdirSync2, statSync as statSync2 } from "fs";
|
|
848
837
|
import { join as join2 } from "path";
|
|
@@ -2445,7 +2434,7 @@ No tools match "${filter}".
|
|
|
2445
2434
|
const { join: join6 } = await import("path");
|
|
2446
2435
|
const { existsSync: existsSync6 } = await import("fs");
|
|
2447
2436
|
const { getGitRoot } = await import("./git-context-EXOEHQSF.js");
|
|
2448
|
-
const { MCP_PROJECT_CONFIG_NAME } = await import("./constants-
|
|
2437
|
+
const { MCP_PROJECT_CONFIG_NAME } = await import("./constants-QJNJFMC6.js");
|
|
2449
2438
|
const { approveProject, hashMcpFile } = await import("./project-trust-KGG2BWKC.js");
|
|
2450
2439
|
const cwd = process.cwd();
|
|
2451
2440
|
const projectRoot = getGitRoot(cwd) ?? cwd;
|
|
@@ -3553,7 +3542,7 @@ function createReviewCommands() {
|
|
|
3553
3542
|
usage: "/test [command|filter]",
|
|
3554
3543
|
async execute(args, ctx) {
|
|
3555
3544
|
try {
|
|
3556
|
-
const { executeTests } = await import("./run-tests-
|
|
3545
|
+
const { executeTests } = await import("./run-tests-N2VKD7BU.js");
|
|
3557
3546
|
const argStr = args.join(" ").trim();
|
|
3558
3547
|
let testArgs = {};
|
|
3559
3548
|
if (argStr) {
|
|
@@ -5737,6 +5726,5 @@ export {
|
|
|
5737
5726
|
McpManager,
|
|
5738
5727
|
snapshotFile,
|
|
5739
5728
|
armDeferredSave,
|
|
5740
|
-
decideDeferredSave
|
|
5741
|
-
setupProxy
|
|
5729
|
+
decideDeferredSave
|
|
5742
5730
|
};
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
MEMORY_FILE_NAME,
|
|
14
14
|
MEMORY_MAX_CHARS,
|
|
15
15
|
MEMORY_STORE_FILE_NAME
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-NRFAGZVJ.js";
|
|
17
17
|
|
|
18
18
|
// src/memory/persistent-memory.ts
|
|
19
19
|
import { copyFileSync, existsSync, mkdirSync, readFileSync, statSync } from "fs";
|
|
@@ -3,17 +3,17 @@ import {
|
|
|
3
3
|
CI_COMMENT_MARKER,
|
|
4
4
|
countSeverity,
|
|
5
5
|
runCi
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-OXVJZLJM.js";
|
|
7
|
+
import "./chunk-RIDNF4G2.js";
|
|
8
8
|
import "./chunk-HLWUDRBO.js";
|
|
9
9
|
import "./chunk-6YZEZFX5.js";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-TTLLXFJC.js";
|
|
11
|
+
import "./chunk-KGHVSYGI.js";
|
|
12
|
+
import "./chunk-7BOHS5IX.js";
|
|
13
13
|
import "./chunk-C6GA7H5D.js";
|
|
14
14
|
import "./chunk-TU3L3PW7.js";
|
|
15
15
|
import "./chunk-BMLQPSHP.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-NRFAGZVJ.js";
|
|
17
17
|
export {
|
|
18
18
|
CI_COMMENT_MARKER,
|
|
19
19
|
countSeverity,
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
import {
|
|
3
3
|
formatDoctorReport,
|
|
4
4
|
runDoctorCli
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-DRCN44SZ.js";
|
|
6
|
+
import "./chunk-NJREBH6A.js";
|
|
7
7
|
import "./chunk-RS7SKYTS.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-TTLLXFJC.js";
|
|
9
|
+
import "./chunk-KGHVSYGI.js";
|
|
10
|
+
import "./chunk-7BOHS5IX.js";
|
|
11
11
|
import "./chunk-C6GA7H5D.js";
|
|
12
12
|
import "./chunk-TU3L3PW7.js";
|
|
13
13
|
import "./chunk-HOSJZMQS.js";
|
|
14
14
|
import "./chunk-BMLQPSHP.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-NRFAGZVJ.js";
|
|
16
16
|
export {
|
|
17
17
|
formatDoctorReport,
|
|
18
18
|
runDoctorCli
|