jinzd-ai-cli 0.4.221 → 0.4.223
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-LSWWSINO.js → batch-PJIRZJCT.js} +4 -3
- package/dist/{chunk-OJL3PY36.js → chunk-2X2DOHA6.js} +3 -2
- package/dist/{chunk-5BY4XICU.js → chunk-35AVZVXZ.js} +3 -3
- package/dist/{chunk-NZ4X6GUC.js → chunk-3ARPAVNV.js} +2 -2
- package/dist/{chunk-4AX2MEJA.js → chunk-5ZPO47YE.js} +21 -21
- package/dist/{chunk-S5EEKS4P.js → chunk-GH37CLOE.js} +1 -1
- package/dist/{chunk-QDN5G7JN.js → chunk-GXAGBILB.js} +1 -1
- package/dist/{chunk-OULVIHCT.js → chunk-OABKF7MR.js} +1 -1
- package/dist/{chunk-QT5FA2ZY.js → chunk-OJXYL2W2.js} +4 -4
- package/dist/{chunk-BYQEWWA4.js → chunk-OPAOQZDC.js} +13 -13
- package/dist/{chunk-6SKMGONY.js → chunk-PNFOWBKL.js} +8 -7
- package/dist/{chunk-QKJ3MAP7.js → chunk-RGL2KKCO.js} +8 -8
- package/dist/{chunk-Q3ZUDA6S.js → chunk-VT6NRDD2.js} +1 -1
- package/dist/{chunk-PMTEZTXP.js → chunk-WDUKU5HH.js} +1 -1
- package/dist/{chunk-4MOBTDS6.js → chunk-ZILWADNL.js} +1 -1
- package/dist/{ci-OIFTAJKR.js → ci-ESZOGOGZ.js} +4 -4
- package/dist/{ci-format-H6BLMWQ5.js → ci-format-TIDA4V7T.js} +2 -2
- package/dist/{constants-EJRLT7DM.js → constants-VFBSBHFO.js} +1 -1
- package/dist/{doctor-cli-EXC7YU5D.js → doctor-cli-W3I33E4Q.js} +4 -4
- package/dist/electron-server.js +2799 -2781
- package/dist/{hub-HQDRQBNM.js → hub-7BLT2JUU.js} +6 -6
- package/dist/{hub-server-LJ2JSKZ2.js → hub-server-XX36DX7O.js} +2 -2
- package/dist/index.js +2294 -2231
- package/dist/{persist-GTBEKVFL.js → persist-GJ2JGZFR.js} +1 -1
- package/dist/{pr-VSZNVKBS.js → pr-7YET7ODT.js} +4 -4
- package/dist/{run-tests-55JGEZYL.js → run-tests-4PNOUHC3.js} +1 -1
- package/dist/{run-tests-OYXK27XH.js → run-tests-HGBTHWNT.js} +2 -2
- package/dist/{semantic-PK7AUOJT.js → semantic-HLAE2O4F.js} +2 -2
- package/dist/{server-JKNIZ5CB.js → server-AN7HZVNG.js} +2414 -2396
- package/dist/{server-XX6UM4ZQ.js → server-APQHU4TR.js} +11 -11
- package/dist/{task-orchestrator-F3DUIACA.js → task-orchestrator-L7LBMQUQ.js} +22 -14
- package/dist/{usage-4KFX3HTK.js → usage-BTP5SSGC.js} +2 -2
- package/dist/web/client/actions.js +27 -1
- package/dist/web/client/app.js +3275 -3342
- package/dist/web/client/dom.js +34 -0
- package/dist/web/client/index.html +29 -22
- package/dist/web/client/state.js +103 -0
- package/dist/web/client/sw.js +1 -1
- package/dist/web/client/templates.js +191 -188
- package/dist/web/client/util.js +45 -0
- package/package.json +1 -1
- package/dist/{chunk-T2NL5ZIA.js → chunk-UUSRWSSX.js} +3 -3
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
ToolRegistry
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5ZPO47YE.js";
|
|
5
5
|
import "./chunk-K3CF65QH.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-UUSRWSSX.js";
|
|
7
|
+
import "./chunk-CKH4KQ4E.js";
|
|
7
8
|
import "./chunk-BXP6YZ2P.js";
|
|
8
|
-
import "./chunk-4MOBTDS6.js";
|
|
9
|
-
import "./chunk-4BKXL7SM.js";
|
|
10
|
-
import "./chunk-TB4W4Y4T.js";
|
|
11
|
-
import "./chunk-KHYD3WXE.js";
|
|
12
|
-
import "./chunk-SLSWPBK3.js";
|
|
13
9
|
import {
|
|
14
10
|
runTool
|
|
15
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-RGL2KKCO.js";
|
|
16
12
|
import {
|
|
17
13
|
getDangerLevel,
|
|
18
14
|
schemaToJsonSchema
|
|
19
15
|
} from "./chunk-XPBEJB27.js";
|
|
20
16
|
import "./chunk-5ULLIOVC.js";
|
|
17
|
+
import "./chunk-HOSJZMQS.js";
|
|
18
|
+
import "./chunk-4BKXL7SM.js";
|
|
19
|
+
import "./chunk-ZILWADNL.js";
|
|
21
20
|
import {
|
|
22
21
|
VERSION
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-GXAGBILB.js";
|
|
23
|
+
import "./chunk-TB4W4Y4T.js";
|
|
24
|
+
import "./chunk-KHYD3WXE.js";
|
|
25
|
+
import "./chunk-SLSWPBK3.js";
|
|
26
26
|
import "./chunk-IW3Q7AE5.js";
|
|
27
27
|
|
|
28
28
|
// src/mcp/server.ts
|
|
@@ -3,28 +3,28 @@ import {
|
|
|
3
3
|
ToolRegistry,
|
|
4
4
|
googleSearchContext,
|
|
5
5
|
truncateOutput
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5ZPO47YE.js";
|
|
7
7
|
import "./chunk-K3CF65QH.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-UUSRWSSX.js";
|
|
9
|
+
import "./chunk-CKH4KQ4E.js";
|
|
9
10
|
import "./chunk-BXP6YZ2P.js";
|
|
10
|
-
import "./chunk-4MOBTDS6.js";
|
|
11
|
-
import "./chunk-4BKXL7SM.js";
|
|
12
|
-
import "./chunk-TB4W4Y4T.js";
|
|
13
|
-
import "./chunk-KHYD3WXE.js";
|
|
14
|
-
import "./chunk-SLSWPBK3.js";
|
|
15
11
|
import {
|
|
16
12
|
runTool
|
|
17
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-RGL2KKCO.js";
|
|
18
14
|
import {
|
|
19
15
|
getDangerLevel,
|
|
20
16
|
runLeanAgentLoop
|
|
21
17
|
} from "./chunk-XPBEJB27.js";
|
|
22
18
|
import "./chunk-5ULLIOVC.js";
|
|
19
|
+
import "./chunk-HOSJZMQS.js";
|
|
20
|
+
import "./chunk-4BKXL7SM.js";
|
|
21
|
+
import "./chunk-ZILWADNL.js";
|
|
23
22
|
import {
|
|
24
23
|
SUBAGENT_ALLOWED_TOOLS
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
24
|
+
} from "./chunk-GXAGBILB.js";
|
|
25
|
+
import "./chunk-TB4W4Y4T.js";
|
|
26
|
+
import "./chunk-KHYD3WXE.js";
|
|
27
|
+
import "./chunk-SLSWPBK3.js";
|
|
28
28
|
import {
|
|
29
29
|
atomicWriteFileSync
|
|
30
30
|
} from "./chunk-IW3Q7AE5.js";
|
|
@@ -187,6 +187,14 @@ var TaskToolExecutor = class {
|
|
|
187
187
|
|
|
188
188
|
// src/hub/task-orchestrator.ts
|
|
189
189
|
var TASK_STATE_FILE = ".aicli-task.json";
|
|
190
|
+
function asToolCapable(p) {
|
|
191
|
+
if (typeof p.chatWithTools !== "function") {
|
|
192
|
+
throw new Error(
|
|
193
|
+
`Provider '${p.info?.id ?? "unknown"}' does not support tool calls. Hub task orchestration requires a tool-capable provider (e.g. claude, openai, deepseek).`
|
|
194
|
+
);
|
|
195
|
+
}
|
|
196
|
+
return p;
|
|
197
|
+
}
|
|
190
198
|
var TaskOrchestrator = class {
|
|
191
199
|
constructor(config, providers, configManager) {
|
|
192
200
|
this.config = config;
|
|
@@ -226,7 +234,7 @@ var TaskOrchestrator = class {
|
|
|
226
234
|
}
|
|
227
235
|
if (!plan) {
|
|
228
236
|
this.renderPhaseHeader("PLAN", "Architect is decomposing the goal into tasks...");
|
|
229
|
-
plan = await this.generatePlan(goal, provider);
|
|
237
|
+
plan = await this.generatePlan(goal, asToolCapable(provider));
|
|
230
238
|
if (!plan || plan.tasks.length === 0) {
|
|
231
239
|
console.log(chalk.red(" \u2717 Failed to generate a task plan."));
|
|
232
240
|
return;
|
|
@@ -240,9 +248,9 @@ var TaskOrchestrator = class {
|
|
|
240
248
|
}
|
|
241
249
|
}
|
|
242
250
|
this.renderPhaseHeader("EXECUTE", "Agents are executing tasks...");
|
|
243
|
-
await this.executePlan(plan, provider);
|
|
251
|
+
await this.executePlan(plan, asToolCapable(provider));
|
|
244
252
|
this.renderPhaseHeader("REVIEW", "Generating project summary...");
|
|
245
|
-
await this.generateReview(plan, provider);
|
|
253
|
+
await this.generateReview(plan, asToolCapable(provider));
|
|
246
254
|
const allDone = plan.tasks.every((t) => t.status === "done");
|
|
247
255
|
if (allDone) {
|
|
248
256
|
this.deleteState();
|
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
} from "./chunk-E44DTERW.js";
|
|
9
9
|
import {
|
|
10
10
|
ConfigManager
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-WDUKU5HH.js";
|
|
12
12
|
import "./chunk-5ULLIOVC.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-GXAGBILB.js";
|
|
14
14
|
import "./chunk-IW3Q7AE5.js";
|
|
15
15
|
|
|
16
16
|
// src/cli/usage.ts
|
|
@@ -1,8 +1,34 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Declarative Web UI actions and startup hooks.
|
|
2
|
+
* Declarative Web UI actions and startup hooks (ES module — P0-4 Phase 2).
|
|
3
3
|
* Kept separate from app.js so static and dynamic UI markup can avoid inline handlers.
|
|
4
|
+
*
|
|
5
|
+
* Note: functions exposed on `window.*` by app.js (startHub, respondConfirm, …)
|
|
6
|
+
* are still called via `window.` below and need no import.
|
|
4
7
|
*/
|
|
5
8
|
|
|
9
|
+
import {
|
|
10
|
+
toggleAuthMode,
|
|
11
|
+
showEnableAuthDialog,
|
|
12
|
+
handleLogout,
|
|
13
|
+
toggleBatchSelect,
|
|
14
|
+
selectAllSessions,
|
|
15
|
+
batchDeleteSelected,
|
|
16
|
+
closeSidebar,
|
|
17
|
+
insertFileRef,
|
|
18
|
+
send,
|
|
19
|
+
handleAuth,
|
|
20
|
+
} from './app.js';
|
|
21
|
+
import {
|
|
22
|
+
importTemplates,
|
|
23
|
+
exportTemplates,
|
|
24
|
+
showAddTemplate,
|
|
25
|
+
cancelTemplateForm,
|
|
26
|
+
saveTemplateForm,
|
|
27
|
+
useTemplate,
|
|
28
|
+
editTemplate,
|
|
29
|
+
deleteTemplate,
|
|
30
|
+
} from './templates.js';
|
|
31
|
+
|
|
6
32
|
function handleDeclarativeAction(action, el) {
|
|
7
33
|
switch (action) {
|
|
8
34
|
case 'toggle-auth-mode': toggleAuthMode(); break;
|