jinzd-ai-cli 0.4.263 → 0.4.265
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/README.md +59 -37
- package/README.zh-CN.md +63 -41
- package/dist/{batch-AN47AYCZ.js → batch-C7SHXRQ2.js} +2 -2
- package/dist/{chunk-VT6NRDD2.js → chunk-23SJVOQD.js} +6 -2
- package/dist/{chunk-QMB7QYZC.js → chunk-2MR7EP24.js} +1 -1
- package/dist/chunk-5C76XDDF.js +78 -0
- package/dist/chunk-6YZEZFX5.js +40 -0
- package/dist/{chunk-TL5MD5XU.js → chunk-AUEX6RNY.js} +17 -1
- package/dist/{chunk-MTZ6XHJD.js → chunk-CVI3LSGR.js} +2 -2
- package/dist/{chunk-B27MLWFJ.js → chunk-E3JRGJCJ.js} +4 -4
- package/dist/{chunk-MJICIIBW.js → chunk-IFTUBTDA.js} +1 -1
- package/dist/{chunk-VUZAKIZ5.js → chunk-LZBD2VGJ.js} +1 -1
- package/dist/{chunk-3RHY2HF7.js → chunk-M2RKBTVZ.js} +1 -1
- package/dist/{chunk-7YCA2BD3.js → chunk-NJLPA6S4.js} +1 -1
- package/dist/{chunk-GMZTY7DA.js → chunk-NOS3QV7G.js} +13 -8
- package/dist/{chunk-GKI7B4BD.js → chunk-TJBG4F2R.js} +24 -95
- package/dist/{chunk-QG4NG7KJ.js → chunk-V4D7YD24.js} +9 -2
- package/dist/{chunk-3ARPAVNV.js → chunk-VOIOUJXI.js} +11 -3
- package/dist/{chunk-WM4VTGAF.js → chunk-X6NWK2YK.js} +1 -1
- package/dist/{chunk-VKBGOFEO.js → chunk-Y7KJPNQI.js} +1 -1
- package/dist/{chunk-XST4N2JM.js → chunk-YDTYBUAB.js} +1 -1
- package/dist/{chunk-5K2LFD7D.js → chunk-YXYOLPDB.js} +1 -1
- package/dist/{ci-JTO7LN5S.js → ci-TDXLI3OM.js} +6 -5
- package/dist/{ci-format-2VGHOLBA.js → ci-format-AFX2LP4Y.js} +2 -2
- package/dist/{constants-HLSJL5HQ.js → constants-66TQEDGO.js} +1 -1
- package/dist/{doctor-cli-JML4FGH4.js → doctor-cli-GMCOGCDR.js} +5 -5
- package/dist/electron-server.js +57 -12
- package/dist/{hub-6EYFGJRT.js → hub-2YXETHPY.js} +8 -4
- package/dist/{hub-server-QGUSMN22.js → hub-server-RF6LURXY.js} +3 -1
- package/dist/index.js +123 -546
- package/dist/{persistent-memory-MPBPSZDN.js → persistent-memory-2DKCETB7.js} +2 -2
- package/dist/{persistent-memory-ANIMO5CF.js → persistent-memory-WTZO5CQ7.js} +2 -2
- package/dist/{pr-XE7NGT6U.js → pr-Y2LDG3R7.js} +15 -10
- package/dist/{run-tests-TF7UPUWW.js → run-tests-FIUGDIDL.js} +2 -2
- package/dist/{run-tests-ME5KED57.js → run-tests-PWTNSUVP.js} +2 -2
- package/dist/{server-VKA4FR2Z.js → server-OZ4RFDFH.js} +25 -15
- package/dist/{server-BIYJEJK3.js → server-ZCG5QD6P.js} +6 -5
- package/dist/setup-wizard-S55ICNHH.js +483 -0
- package/dist/{task-orchestrator-2RAKLFWN.js → task-orchestrator-Q2L6JEUX.js} +10 -7
- package/dist/{usage-5F5Q3GGR.js → usage-SDL5Z4CS.js} +3 -3
- package/package.json +1 -1
|
@@ -9,8 +9,11 @@ import {
|
|
|
9
9
|
getPreset,
|
|
10
10
|
listPresets,
|
|
11
11
|
resolveRoleProviders
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-23SJVOQD.js";
|
|
13
|
+
import "./chunk-VOIOUJXI.js";
|
|
14
|
+
import {
|
|
15
|
+
thinkingParamsFor
|
|
16
|
+
} from "./chunk-6YZEZFX5.js";
|
|
14
17
|
|
|
15
18
|
// src/hub/index.ts
|
|
16
19
|
import { readFileSync, existsSync } from "fs";
|
|
@@ -129,6 +132,7 @@ ${content}`);
|
|
|
129
132
|
maxToolRoundsPerTurn: mode === "task" ? options.taskRounds ?? 30 : void 0,
|
|
130
133
|
context,
|
|
131
134
|
contextFiles: contextFileNames.length > 0 ? contextFileNames : void 0,
|
|
135
|
+
thinking: thinkingParamsFor(configManager.get("modelParams"), defaultModel),
|
|
132
136
|
humanSteer: options.steer === true,
|
|
133
137
|
voteConverge: options.vote === true
|
|
134
138
|
};
|
|
@@ -154,7 +158,7 @@ ${content}`);
|
|
|
154
158
|
}
|
|
155
159
|
}
|
|
156
160
|
async function runTaskMode(config, providers, configManager, topic) {
|
|
157
|
-
const { TaskOrchestrator } = await import("./task-orchestrator-
|
|
161
|
+
const { TaskOrchestrator } = await import("./task-orchestrator-Q2L6JEUX.js");
|
|
158
162
|
const orchestrator = new TaskOrchestrator(config, providers, configManager);
|
|
159
163
|
let interrupted = false;
|
|
160
164
|
const onSigint = () => {
|
|
@@ -190,7 +194,7 @@ async function runTaskMode(config, providers, configManager, topic) {
|
|
|
190
194
|
}
|
|
191
195
|
}
|
|
192
196
|
async function runDistributedDiscussion(config, providers, topic, port) {
|
|
193
|
-
const { HubServer } = await import("./hub-server-
|
|
197
|
+
const { HubServer } = await import("./hub-server-RF6LURXY.js");
|
|
194
198
|
const hub = new HubServer(config, providers, port);
|
|
195
199
|
let interrupted = false;
|
|
196
200
|
const onSigint = () => {
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "./chunk-NR5U6LVG.js";
|
|
14
14
|
import {
|
|
15
15
|
HubAgent
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-VOIOUJXI.js";
|
|
17
17
|
|
|
18
18
|
// src/hub/hub-server.ts
|
|
19
19
|
import { WebSocketServer } from "ws";
|
|
@@ -261,6 +261,7 @@ var HubServer = class {
|
|
|
261
261
|
}
|
|
262
262
|
async getBuiltinResponse(role, topic, round, maxRounds) {
|
|
263
263
|
const agent = new HubAgent(role, this.providers, this.config.defaultProvider, this.config.defaultModel, this.config.context);
|
|
264
|
+
agent.thinking = this.config.thinking;
|
|
264
265
|
return agent.speak(topic, this.history, round, maxRounds);
|
|
265
266
|
}
|
|
266
267
|
async generateSummary(topic) {
|
|
@@ -274,6 +275,7 @@ var HubServer = class {
|
|
|
274
275
|
this.config.defaultModel,
|
|
275
276
|
this.config.context
|
|
276
277
|
);
|
|
278
|
+
summarizer.thinking = this.config.thinking;
|
|
277
279
|
try {
|
|
278
280
|
console.log(chalk.dim(" Generating summary..."));
|
|
279
281
|
const summary = await summarizer.summarize(topic, this.history);
|