reasonix 0.46.1 → 0.47.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/README.md +62 -13
- package/README.zh-CN.md +52 -10
- package/dashboard/dist/app.js +217 -60
- package/dashboard/dist/app.js.map +1 -1
- package/dist/cli/{acp-LKJU5DZX.js → acp-QK3DMC53.js} +22 -22
- package/dist/cli/chat-VV5UWY4V.js +51 -0
- package/dist/cli/{chunk-DGA5QYFM.js → chunk-24A7FHGJ.js} +42 -13
- package/dist/cli/chunk-24A7FHGJ.js.map +1 -0
- package/dist/cli/{chunk-K3AIFMI6.js → chunk-6J6BSUCR.js} +2 -2
- package/dist/cli/{chunk-C72TNHDE.js → chunk-BWYVFFKR.js} +2 -2
- package/dist/cli/{chunk-EAOL43HB.js → chunk-BYYVYJDX.js} +3 -3
- package/dist/cli/{chunk-HNXDZGC6.js → chunk-CI2PF5QX.js} +2 -2
- package/dist/cli/{chunk-JVQT5IYP.js → chunk-COWPEX54.js} +19 -9
- package/dist/cli/chunk-COWPEX54.js.map +1 -0
- package/dist/cli/{chunk-IYQ325V7.js → chunk-E5WCLUIU.js} +2 -2
- package/dist/cli/{chunk-YRLC2EDF.js → chunk-EQATK2L2.js} +2 -2
- package/dist/cli/{chunk-R2ASNSEO.js → chunk-FDKOUJKZ.js} +8 -8
- package/dist/cli/{chunk-TEUDEGX2.js → chunk-FY4S7TJZ.js} +19 -5
- package/dist/cli/chunk-FY4S7TJZ.js.map +1 -0
- package/dist/cli/{chunk-JVFEJAJX.js → chunk-GDKB2PPK.js} +2 -2
- package/dist/cli/{chunk-WQ6ZRDQM.js → chunk-HIYTRCSW.js} +16 -12
- package/dist/cli/chunk-HIYTRCSW.js.map +1 -0
- package/dist/cli/{chunk-ZOQHVQON.js → chunk-ICAFSZHS.js} +307 -30
- package/dist/cli/chunk-ICAFSZHS.js.map +1 -0
- package/dist/cli/{chunk-SPXN5JIT.js → chunk-ICSYGIPN.js} +1386 -1021
- package/dist/cli/chunk-ICSYGIPN.js.map +1 -0
- package/dist/cli/{chunk-XPAUNFOL.js → chunk-K6GUKSXH.js} +3 -2
- package/dist/cli/chunk-K6GUKSXH.js.map +1 -0
- package/dist/cli/{chunk-6VANO7KB.js → chunk-KDRUEXII.js} +147 -20
- package/dist/cli/chunk-KDRUEXII.js.map +1 -0
- package/dist/cli/{chunk-NCBP5D6E.js → chunk-LBLR4CUZ.js} +2 -2
- package/dist/cli/{chunk-2425HK6U.js → chunk-LGEKVMMV.js} +7 -2
- package/dist/cli/{chunk-2425HK6U.js.map → chunk-LGEKVMMV.js.map} +1 -1
- package/dist/cli/{chunk-7SGGXNB2.js → chunk-OJVITDGB.js} +2 -2
- package/dist/cli/{chunk-SE7C5ZSI.js → chunk-QVDWH2A2.js} +3 -3
- package/dist/cli/{chunk-WRONKNIH.js → chunk-QVUFWDD2.js} +2 -2
- package/dist/cli/{chunk-3AAG2CUT.js → chunk-R6GQKKBW.js} +2 -2
- package/dist/cli/{chunk-E7TAHQ4A.js → chunk-RRXUIPWG.js} +19 -18
- package/dist/cli/chunk-RRXUIPWG.js.map +1 -0
- package/dist/cli/{chunk-CXVWUPA3.js → chunk-TKVXTQ3T.js} +26 -26
- package/dist/cli/chunk-TKVXTQ3T.js.map +1 -0
- package/dist/cli/{chunk-DHRVZJ2D.js → chunk-UDVFBEXC.js} +3 -3
- package/dist/cli/{chunk-7YW6TPXK.js → chunk-VC2CQA5D.js} +9 -9
- package/dist/cli/{chunk-M4E5JK6S.js → chunk-VJMBISEI.js} +2 -2
- package/dist/cli/{chunk-TDSBASOF.js → chunk-VKYSZKH2.js} +2 -2
- package/dist/cli/{chunk-7LOJS3LV.js → chunk-VMUUFWFF.js} +2 -2
- package/dist/cli/{chunk-MIIZJD5O.js → chunk-VNQGCA3Q.js} +2 -2
- package/dist/cli/{chunk-2AASOSD5.js → chunk-WF7TPVZM.js} +2 -2
- package/dist/cli/{chunk-JLQDNLZF.js → chunk-YDPLF7XR.js} +26 -14
- package/dist/cli/chunk-YDPLF7XR.js.map +1 -0
- package/dist/cli/{code-2JIHL5M2.js → code-C24TUAE5.js} +39 -34
- package/dist/cli/code-C24TUAE5.js.map +1 -0
- package/dist/cli/{commands-OPT5AJNH.js → commands-RR3GIYOK.js} +4 -4
- package/dist/cli/{commit-KA37H6GM.js → commit-FSHPIINM.js} +3 -3
- package/dist/cli/{desktop-5ONTRU3C.js → desktop-7NCHPEFB.js} +263 -36
- package/dist/cli/desktop-7NCHPEFB.js.map +1 -0
- package/dist/cli/{diff-SOIA7AKH.js → diff-RAAHHLHV.js} +8 -8
- package/dist/cli/{doctor-RCUP4XRV.js → doctor-PKVQIXRT.js} +9 -9
- package/dist/cli/{events-6KHITNX4.js → events-VRYXOSKI.js} +3 -3
- package/dist/cli/index.js +81 -40
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/{mcp-JP5OWD6R.js → mcp-CRJ26PP4.js} +2 -2
- package/dist/cli/{mcp-browse-ONCJJPJN.js → mcp-browse-QPAOWZOP.js} +2 -2
- package/dist/cli/{mcp-inspect-TPLHW5JA.js → mcp-inspect-CVCLABRS.js} +4 -4
- package/dist/cli/{prompt-RJDNCQAP.js → prompt-SKYXERSI.js} +4 -4
- package/dist/cli/{prune-sessions-MKEATRVL.js → prune-sessions-SEWX7GP6.js} +2 -2
- package/dist/cli/{replay-4NILJG4U.js → replay-KPDW2ZMJ.js} +9 -9
- package/dist/cli/{run-WFGXB4SB.js → run-WIKDIXTG.js} +17 -17
- package/dist/cli/{server-5VFQP3PV.js → server-P6V2G3P6.js} +82 -34
- package/dist/cli/server-P6V2G3P6.js.map +1 -0
- package/dist/cli/{sessions-5XDJDALO.js → sessions-2NULRMSA.js} +15 -15
- package/dist/cli/{setup-F6XSWLRA.js → setup-Y5WDBQFL.js} +6 -6
- package/dist/cli/{stats-ALHBZICE.js → stats-T7BL2YOR.js} +6 -6
- package/dist/cli/{version-JVRAHBMM.js → version-3KWDNWLN.js} +15 -15
- package/dist/index.d.ts +31 -10
- package/dist/index.js +505 -66
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/cli/chat-W7LAWEN6.js +0 -51
- package/dist/cli/chunk-6VANO7KB.js.map +0 -1
- package/dist/cli/chunk-CXVWUPA3.js.map +0 -1
- package/dist/cli/chunk-DGA5QYFM.js.map +0 -1
- package/dist/cli/chunk-E7TAHQ4A.js.map +0 -1
- package/dist/cli/chunk-JLQDNLZF.js.map +0 -1
- package/dist/cli/chunk-JVQT5IYP.js.map +0 -1
- package/dist/cli/chunk-SPXN5JIT.js.map +0 -1
- package/dist/cli/chunk-TEUDEGX2.js.map +0 -1
- package/dist/cli/chunk-WQ6ZRDQM.js.map +0 -1
- package/dist/cli/chunk-XPAUNFOL.js.map +0 -1
- package/dist/cli/chunk-ZOQHVQON.js.map +0 -1
- package/dist/cli/code-2JIHL5M2.js.map +0 -1
- package/dist/cli/desktop-5ONTRU3C.js.map +0 -1
- package/dist/cli/server-5VFQP3PV.js.map +0 -1
- /package/dist/cli/{acp-LKJU5DZX.js.map → acp-QK3DMC53.js.map} +0 -0
- /package/dist/cli/{chat-W7LAWEN6.js.map → chat-VV5UWY4V.js.map} +0 -0
- /package/dist/cli/{chunk-K3AIFMI6.js.map → chunk-6J6BSUCR.js.map} +0 -0
- /package/dist/cli/{chunk-C72TNHDE.js.map → chunk-BWYVFFKR.js.map} +0 -0
- /package/dist/cli/{chunk-EAOL43HB.js.map → chunk-BYYVYJDX.js.map} +0 -0
- /package/dist/cli/{chunk-HNXDZGC6.js.map → chunk-CI2PF5QX.js.map} +0 -0
- /package/dist/cli/{chunk-IYQ325V7.js.map → chunk-E5WCLUIU.js.map} +0 -0
- /package/dist/cli/{chunk-YRLC2EDF.js.map → chunk-EQATK2L2.js.map} +0 -0
- /package/dist/cli/{chunk-R2ASNSEO.js.map → chunk-FDKOUJKZ.js.map} +0 -0
- /package/dist/cli/{chunk-JVFEJAJX.js.map → chunk-GDKB2PPK.js.map} +0 -0
- /package/dist/cli/{chunk-NCBP5D6E.js.map → chunk-LBLR4CUZ.js.map} +0 -0
- /package/dist/cli/{chunk-7SGGXNB2.js.map → chunk-OJVITDGB.js.map} +0 -0
- /package/dist/cli/{chunk-SE7C5ZSI.js.map → chunk-QVDWH2A2.js.map} +0 -0
- /package/dist/cli/{chunk-WRONKNIH.js.map → chunk-QVUFWDD2.js.map} +0 -0
- /package/dist/cli/{chunk-3AAG2CUT.js.map → chunk-R6GQKKBW.js.map} +0 -0
- /package/dist/cli/{chunk-DHRVZJ2D.js.map → chunk-UDVFBEXC.js.map} +0 -0
- /package/dist/cli/{chunk-7YW6TPXK.js.map → chunk-VC2CQA5D.js.map} +0 -0
- /package/dist/cli/{chunk-M4E5JK6S.js.map → chunk-VJMBISEI.js.map} +0 -0
- /package/dist/cli/{chunk-TDSBASOF.js.map → chunk-VKYSZKH2.js.map} +0 -0
- /package/dist/cli/{chunk-7LOJS3LV.js.map → chunk-VMUUFWFF.js.map} +0 -0
- /package/dist/cli/{chunk-MIIZJD5O.js.map → chunk-VNQGCA3Q.js.map} +0 -0
- /package/dist/cli/{chunk-2AASOSD5.js.map → chunk-WF7TPVZM.js.map} +0 -0
- /package/dist/cli/{commands-OPT5AJNH.js.map → commands-RR3GIYOK.js.map} +0 -0
- /package/dist/cli/{commit-KA37H6GM.js.map → commit-FSHPIINM.js.map} +0 -0
- /package/dist/cli/{diff-SOIA7AKH.js.map → diff-RAAHHLHV.js.map} +0 -0
- /package/dist/cli/{doctor-RCUP4XRV.js.map → doctor-PKVQIXRT.js.map} +0 -0
- /package/dist/cli/{events-6KHITNX4.js.map → events-VRYXOSKI.js.map} +0 -0
- /package/dist/cli/{mcp-JP5OWD6R.js.map → mcp-CRJ26PP4.js.map} +0 -0
- /package/dist/cli/{mcp-browse-ONCJJPJN.js.map → mcp-browse-QPAOWZOP.js.map} +0 -0
- /package/dist/cli/{mcp-inspect-TPLHW5JA.js.map → mcp-inspect-CVCLABRS.js.map} +0 -0
- /package/dist/cli/{prompt-RJDNCQAP.js.map → prompt-SKYXERSI.js.map} +0 -0
- /package/dist/cli/{prune-sessions-MKEATRVL.js.map → prune-sessions-SEWX7GP6.js.map} +0 -0
- /package/dist/cli/{replay-4NILJG4U.js.map → replay-KPDW2ZMJ.js.map} +0 -0
- /package/dist/cli/{run-WFGXB4SB.js.map → run-WIKDIXTG.js.map} +0 -0
- /package/dist/cli/{sessions-5XDJDALO.js.map → sessions-2NULRMSA.js.map} +0 -0
- /package/dist/cli/{setup-F6XSWLRA.js.map → setup-Y5WDBQFL.js.map} +0 -0
- /package/dist/cli/{stats-ALHBZICE.js.map → stats-T7BL2YOR.js.map} +0 -0
- /package/dist/cli/{version-JVRAHBMM.js.map → version-3KWDNWLN.js.map} +0 -0
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
defaultConfigPath,
|
|
16
16
|
readConfig,
|
|
17
17
|
writeConfig
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-24A7FHGJ.js";
|
|
19
19
|
import "./chunk-TUK7OWJA.js";
|
|
20
20
|
|
|
21
21
|
// src/cli/commands/mcp.ts
|
|
@@ -274,4 +274,4 @@ export {
|
|
|
274
274
|
mcpListCommand,
|
|
275
275
|
mcpSearchCommand
|
|
276
276
|
};
|
|
277
|
-
//# sourceMappingURL=mcp-
|
|
277
|
+
//# sourceMappingURL=mcp-CRJ26PP4.js.map
|
|
@@ -23,7 +23,7 @@ import "./chunk-PLHAZOLZ.js";
|
|
|
23
23
|
import {
|
|
24
24
|
readConfig,
|
|
25
25
|
writeConfig
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-24A7FHGJ.js";
|
|
27
27
|
import {
|
|
28
28
|
__toESM
|
|
29
29
|
} from "./chunk-TUK7OWJA.js";
|
|
@@ -175,4 +175,4 @@ async function mcpBrowseCommand(_opts = {}) {
|
|
|
175
175
|
export {
|
|
176
176
|
mcpBrowseCommand
|
|
177
177
|
};
|
|
178
|
-
//# sourceMappingURL=mcp-browse-
|
|
178
|
+
//# sourceMappingURL=mcp-browse-QPAOWZOP.js.map
|
|
@@ -3,18 +3,18 @@ import { createRequire as __cr } from 'node:module'; if (typeof globalThis.requi
|
|
|
3
3
|
import {
|
|
4
4
|
buildTransportFromSpec,
|
|
5
5
|
preflightStdioSpec
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EQATK2L2.js";
|
|
7
7
|
import {
|
|
8
8
|
McpClient,
|
|
9
9
|
inspectMcpServer
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-HIYTRCSW.js";
|
|
11
11
|
import "./chunk-25T6CVUP.js";
|
|
12
12
|
import {
|
|
13
13
|
normalizeMcpConfig,
|
|
14
14
|
overlayMatchedSpec,
|
|
15
15
|
parseMcpSpec,
|
|
16
16
|
readConfig
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-24A7FHGJ.js";
|
|
18
18
|
import "./chunk-XXC2BYTV.js";
|
|
19
19
|
import "./chunk-TUK7OWJA.js";
|
|
20
20
|
|
|
@@ -145,4 +145,4 @@ export {
|
|
|
145
145
|
formatMcpInspectFailure,
|
|
146
146
|
mcpInspectCommand
|
|
147
147
|
};
|
|
148
|
-
//# sourceMappingURL=mcp-inspect-
|
|
148
|
+
//# sourceMappingURL=mcp-inspect-CVCLABRS.js.map
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
CODE_SYSTEM_PROMPT,
|
|
5
5
|
codeSystemBase,
|
|
6
6
|
codeSystemPrompt
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-UDVFBEXC.js";
|
|
8
|
+
import "./chunk-FY4S7TJZ.js";
|
|
9
|
+
import "./chunk-24A7FHGJ.js";
|
|
10
10
|
import "./chunk-TUK7OWJA.js";
|
|
11
11
|
export {
|
|
12
12
|
CODE_SYSTEM_PROMPT,
|
|
13
13
|
codeSystemBase,
|
|
14
14
|
codeSystemPrompt
|
|
15
15
|
};
|
|
16
|
-
//# sourceMappingURL=prompt-
|
|
16
|
+
//# sourceMappingURL=prompt-SKYXERSI.js.map
|
|
@@ -3,7 +3,7 @@ import { createRequire as __cr } from 'node:module'; if (typeof globalThis.requi
|
|
|
3
3
|
import {
|
|
4
4
|
listSessions,
|
|
5
5
|
pruneStaleSessions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RRXUIPWG.js";
|
|
7
7
|
import "./chunk-TUK7OWJA.js";
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/prune-sessions.ts
|
|
@@ -41,4 +41,4 @@ function pruneSessionsCommand(opts) {
|
|
|
41
41
|
export {
|
|
42
42
|
pruneSessionsCommand
|
|
43
43
|
};
|
|
44
|
-
//# sourceMappingURL=prune-sessions-
|
|
44
|
+
//# sourceMappingURL=prune-sessions-SEWX7GP6.js.map
|
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
import { createRequire as __cr } from 'node:module'; if (typeof globalThis.require === 'undefined') { globalThis.require = __cr(import.meta.url); }
|
|
3
3
|
import {
|
|
4
4
|
RecordView
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-R6GQKKBW.js";
|
|
6
6
|
import {
|
|
7
7
|
Bar,
|
|
8
8
|
ChromeRule,
|
|
9
9
|
stringWidth
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-TKVXTQ3T.js";
|
|
11
11
|
import {
|
|
12
12
|
computeCumulativeStats,
|
|
13
13
|
groupRecordsByTurn,
|
|
14
14
|
replayFromFile
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-BYYVYJDX.js";
|
|
16
16
|
import {
|
|
17
17
|
COLOR,
|
|
18
18
|
GRADIENT
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-OJVITDGB.js";
|
|
20
20
|
import {
|
|
21
21
|
Box_default,
|
|
22
22
|
Static,
|
|
@@ -27,16 +27,16 @@ import {
|
|
|
27
27
|
use_input_default,
|
|
28
28
|
use_stdout_default
|
|
29
29
|
} from "./chunk-X53B3JIX.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-VNQGCA3Q.js";
|
|
31
31
|
import "./chunk-25T6CVUP.js";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-VJMBISEI.js";
|
|
33
33
|
import {
|
|
34
34
|
t
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-KDRUEXII.js";
|
|
36
36
|
import {
|
|
37
37
|
formatBalance,
|
|
38
38
|
formatCost
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-24A7FHGJ.js";
|
|
40
40
|
import {
|
|
41
41
|
__toESM
|
|
42
42
|
} from "./chunk-TUK7OWJA.js";
|
|
@@ -288,4 +288,4 @@ function oneLine(s, max = 200) {
|
|
|
288
288
|
export {
|
|
289
289
|
replayCommand
|
|
290
290
|
};
|
|
291
|
-
//# sourceMappingURL=replay-
|
|
291
|
+
//# sourceMappingURL=replay-KPDW2ZMJ.js.map
|
|
@@ -3,47 +3,47 @@ import { createRequire as __cr } from 'node:module'; if (typeof globalThis.requi
|
|
|
3
3
|
import {
|
|
4
4
|
formatMcpLifecycleEvent,
|
|
5
5
|
formatMcpSlowToast
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LBLR4CUZ.js";
|
|
7
7
|
import {
|
|
8
8
|
buildTransportFromSpec,
|
|
9
9
|
preflightStdioSpec
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-EQATK2L2.js";
|
|
11
11
|
import {
|
|
12
12
|
CacheFirstLoop,
|
|
13
13
|
ImmutablePrefix,
|
|
14
14
|
ToolRegistry,
|
|
15
15
|
bridgeMcpTools
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-ICAFSZHS.js";
|
|
17
|
+
import "./chunk-VKYSZKH2.js";
|
|
18
18
|
import {
|
|
19
19
|
openTranscriptFile,
|
|
20
20
|
recordFromLoopEvent,
|
|
21
21
|
writeRecord
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-BYYVYJDX.js";
|
|
23
23
|
import {
|
|
24
24
|
McpClient
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-HIYTRCSW.js";
|
|
26
|
+
import "./chunk-UDVFBEXC.js";
|
|
27
27
|
import "./chunk-6OWJV3YW.js";
|
|
28
28
|
import {
|
|
29
29
|
DeepSeekClient
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-VNQGCA3Q.js";
|
|
31
31
|
import "./chunk-25T6CVUP.js";
|
|
32
32
|
import {
|
|
33
33
|
loadDotenv
|
|
34
34
|
} from "./chunk-2UQP6H6T.js";
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-GDKB2PPK.js";
|
|
36
|
+
import "./chunk-FY4S7TJZ.js";
|
|
37
|
+
import "./chunk-BWYVFFKR.js";
|
|
38
38
|
import "./chunk-S4XVGLRW.js";
|
|
39
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-RRXUIPWG.js";
|
|
40
40
|
import {
|
|
41
41
|
appendUsage
|
|
42
|
-
} from "./chunk-
|
|
43
|
-
import "./chunk-
|
|
42
|
+
} from "./chunk-QVUFWDD2.js";
|
|
43
|
+
import "./chunk-VJMBISEI.js";
|
|
44
44
|
import {
|
|
45
45
|
t
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-KDRUEXII.js";
|
|
47
47
|
import {
|
|
48
48
|
defaultConfigPath,
|
|
49
49
|
isPlausibleKey,
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
normalizeMcpConfig,
|
|
53
53
|
readConfig,
|
|
54
54
|
saveApiKey
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-24A7FHGJ.js";
|
|
56
56
|
import "./chunk-XXC2BYTV.js";
|
|
57
57
|
import "./chunk-TUK7OWJA.js";
|
|
58
58
|
|
|
@@ -217,4 +217,4 @@ transcript: ${opts.transcript}
|
|
|
217
217
|
export {
|
|
218
218
|
runCommand
|
|
219
219
|
};
|
|
220
|
-
//# sourceMappingURL=run-
|
|
220
|
+
//# sourceMappingURL=run-WIKDIXTG.js.map
|
|
@@ -13,8 +13,8 @@ import {
|
|
|
13
13
|
listCheckpoints,
|
|
14
14
|
loadCheckpoint,
|
|
15
15
|
restoreCheckpoint
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-WF7TPVZM.js";
|
|
17
|
+
import "./chunk-E5WCLUIU.js";
|
|
18
18
|
import {
|
|
19
19
|
fetchSmitheryDetail,
|
|
20
20
|
handleToFetchResult,
|
|
@@ -24,11 +24,11 @@ import {
|
|
|
24
24
|
} from "./chunk-XJXDHAES.js";
|
|
25
25
|
import {
|
|
26
26
|
registerSemanticSearchTool
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-K6GUKSXH.js";
|
|
28
28
|
import {
|
|
29
29
|
BUILTIN_ALLOWLIST,
|
|
30
30
|
lineDiff
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-GDKB2PPK.js";
|
|
32
32
|
import {
|
|
33
33
|
PROJECT_MEMORY_FILE,
|
|
34
34
|
SKILLS_DIRNAME,
|
|
@@ -38,13 +38,13 @@ import {
|
|
|
38
38
|
parseFrontmatter,
|
|
39
39
|
resolveProjectMemoryWritePath,
|
|
40
40
|
validateSkillFrontmatter
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-FY4S7TJZ.js";
|
|
42
42
|
import "./chunk-PLHAZOLZ.js";
|
|
43
43
|
import {
|
|
44
44
|
checkOllamaStatus,
|
|
45
45
|
pullOllamaModel,
|
|
46
46
|
startOllamaDaemon
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-VMUUFWFF.js";
|
|
48
48
|
import {
|
|
49
49
|
INDEX_DIR_NAME,
|
|
50
50
|
buildIndex,
|
|
@@ -53,34 +53,35 @@ import {
|
|
|
53
53
|
querySemantic,
|
|
54
54
|
readIndexMeta,
|
|
55
55
|
walkChunks
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-YDPLF7XR.js";
|
|
57
57
|
import {
|
|
58
58
|
HOOK_EVENTS,
|
|
59
59
|
globalSettingsPath,
|
|
60
60
|
loadHooks,
|
|
61
61
|
projectSettingsPath
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-BWYVFFKR.js";
|
|
63
63
|
import "./chunk-S4XVGLRW.js";
|
|
64
64
|
import {
|
|
65
|
+
deleteSession,
|
|
65
66
|
listSessions,
|
|
66
67
|
sessionPath,
|
|
67
68
|
sessionsDir
|
|
68
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-RRXUIPWG.js";
|
|
69
70
|
import {
|
|
70
71
|
aggregateUsage,
|
|
71
72
|
bucketCacheHitRatio,
|
|
72
73
|
formatLogSize,
|
|
73
74
|
readUsageLog
|
|
74
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-QVUFWDD2.js";
|
|
75
76
|
import {
|
|
76
77
|
DEEPSEEK_PRICING,
|
|
77
78
|
cacheSavingsUsd
|
|
78
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-VJMBISEI.js";
|
|
79
80
|
import {
|
|
80
81
|
getLanguage,
|
|
81
82
|
getSupportedLanguages,
|
|
82
83
|
setLanguage
|
|
83
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-KDRUEXII.js";
|
|
84
85
|
import {
|
|
85
86
|
DEFAULT_INDEX_EXCLUDES,
|
|
86
87
|
DEFAULT_MAX_FILE_BYTES,
|
|
@@ -103,7 +104,7 @@ import {
|
|
|
103
104
|
resolveSemanticEmbeddingConfig,
|
|
104
105
|
saveSemanticEmbeddingConfig,
|
|
105
106
|
writeConfig
|
|
106
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-24A7FHGJ.js";
|
|
107
108
|
import {
|
|
108
109
|
VERSION
|
|
109
110
|
} from "./chunk-XXC2BYTV.js";
|
|
@@ -1196,7 +1197,10 @@ async function handleMcp(method, rest, body, ctx, query = new URLSearchParams())
|
|
|
1196
1197
|
}
|
|
1197
1198
|
if (method === "GET" && rest[0] === "specs") {
|
|
1198
1199
|
const cfg = readConfig(ctx.configPath);
|
|
1199
|
-
return {
|
|
1200
|
+
return {
|
|
1201
|
+
status: 200,
|
|
1202
|
+
body: { specs: cfg.mcp ?? [], failures: ctx.getMcpFailures?.() ?? [] }
|
|
1203
|
+
};
|
|
1200
1204
|
}
|
|
1201
1205
|
if (method === "POST" && rest[0] === "specs") {
|
|
1202
1206
|
const { spec } = parseBody5(body);
|
|
@@ -2582,7 +2586,8 @@ function saveSemanticConfigApi(rawBody, ctx) {
|
|
|
2582
2586
|
baseUrl: typeof parsed.openaiCompat?.baseUrl === "string" ? parsed.openaiCompat.baseUrl : existing.openaiCompat?.baseUrl,
|
|
2583
2587
|
apiKey: typeof parsed.openaiCompat?.apiKey === "string" ? parsed.openaiCompat.apiKey.trim() || existing.openaiCompat?.apiKey : existing.openaiCompat?.apiKey,
|
|
2584
2588
|
model: typeof parsed.openaiCompat?.model === "string" ? parsed.openaiCompat.model : existing.openaiCompat?.model,
|
|
2585
|
-
extraBody: parsed.openaiCompat?.extraBody === void 0 ? existing.openaiCompat?.extraBody : parsed.openaiCompat.extraBody
|
|
2589
|
+
extraBody: parsed.openaiCompat?.extraBody === void 0 ? existing.openaiCompat?.extraBody : parsed.openaiCompat.extraBody,
|
|
2590
|
+
batchSize: parsed.openaiCompat?.batchSize === void 0 ? existing.openaiCompat?.batchSize : Number.isInteger(parsed.openaiCompat.batchSize) && parsed.openaiCompat.batchSize > 0 ? parsed.openaiCompat.batchSize : void 0
|
|
2586
2591
|
}
|
|
2587
2592
|
};
|
|
2588
2593
|
try {
|
|
@@ -2619,7 +2624,8 @@ async function getProviderStatusFromConfig(config) {
|
|
|
2619
2624
|
baseUrl: config.openaiCompat.baseUrl,
|
|
2620
2625
|
apiKeySet: config.openaiCompat.apiKeySet,
|
|
2621
2626
|
model: config.openaiCompat.model,
|
|
2622
|
-
extraBodyKeys: Object.keys(config.openaiCompat.extraBody)
|
|
2627
|
+
extraBodyKeys: Object.keys(config.openaiCompat.extraBody),
|
|
2628
|
+
batchSize: config.openaiCompat.batchSize
|
|
2623
2629
|
};
|
|
2624
2630
|
}
|
|
2625
2631
|
const ollama = await checkOllamaStatus(config.ollama.model, config.ollama.baseUrl).catch(
|
|
@@ -2674,12 +2680,10 @@ function parseTranscript(path, maxBytes = 4 * 1024 * 1024) {
|
|
|
2674
2680
|
}
|
|
2675
2681
|
return out;
|
|
2676
2682
|
}
|
|
2677
|
-
async function handleSessions(method, rest, _body,
|
|
2678
|
-
if (method
|
|
2679
|
-
return { status: 405, body: { error: "GET only" } };
|
|
2680
|
-
}
|
|
2681
|
-
if (rest.length === 0) {
|
|
2683
|
+
async function handleSessions(method, rest, _body, ctx) {
|
|
2684
|
+
if (method === "GET" && rest.length === 0) {
|
|
2682
2685
|
const sessions = listSessions();
|
|
2686
|
+
const currentName2 = ctx.getSessionName?.() ?? null;
|
|
2683
2687
|
return {
|
|
2684
2688
|
status: 200,
|
|
2685
2689
|
body: {
|
|
@@ -2689,25 +2693,69 @@ async function handleSessions(method, rest, _body, _ctx) {
|
|
|
2689
2693
|
size: s.size,
|
|
2690
2694
|
messageCount: s.messageCount,
|
|
2691
2695
|
mtime: s.mtime.getTime()
|
|
2692
|
-
}))
|
|
2696
|
+
})),
|
|
2697
|
+
currentSession: currentName2,
|
|
2698
|
+
canSwitch: Boolean(ctx.switchSession)
|
|
2693
2699
|
}
|
|
2694
2700
|
};
|
|
2695
2701
|
}
|
|
2702
|
+
if (method === "POST" && rest.length === 1 && rest[0] === "new") {
|
|
2703
|
+
if (!ctx.switchSession) {
|
|
2704
|
+
return {
|
|
2705
|
+
status: 503,
|
|
2706
|
+
body: { error: "live session swap requires an attached CLI session." }
|
|
2707
|
+
};
|
|
2708
|
+
}
|
|
2709
|
+
const result = ctx.switchSession(void 0);
|
|
2710
|
+
if (!result.ok) return { status: 500, body: { error: result.reason } };
|
|
2711
|
+
return { status: 200, body: { ok: true } };
|
|
2712
|
+
}
|
|
2713
|
+
if (rest.length === 0) {
|
|
2714
|
+
return { status: 405, body: { error: `method ${method} not supported on /sessions` } };
|
|
2715
|
+
}
|
|
2696
2716
|
const name = decodeURIComponent(rest[0]);
|
|
2697
2717
|
const path = sessionPath(name);
|
|
2698
|
-
|
|
2699
|
-
|
|
2718
|
+
const currentName = ctx.getSessionName?.() ?? null;
|
|
2719
|
+
if (method === "POST" && rest[1] === "switch") {
|
|
2720
|
+
if (!ctx.switchSession) {
|
|
2721
|
+
return {
|
|
2722
|
+
status: 503,
|
|
2723
|
+
body: { error: "live session swap requires an attached CLI session." }
|
|
2724
|
+
};
|
|
2725
|
+
}
|
|
2726
|
+
if (!existsSync8(path)) return { status: 404, body: { error: `no such session: ${name}` } };
|
|
2727
|
+
const result = ctx.switchSession(name);
|
|
2728
|
+
if (!result.ok) return { status: 500, body: { error: result.reason } };
|
|
2729
|
+
return { status: 200, body: { ok: true } };
|
|
2700
2730
|
}
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
body: {
|
|
2705
|
-
name,
|
|
2706
|
-
path,
|
|
2707
|
-
messages,
|
|
2708
|
-
messageCount: messages.length
|
|
2731
|
+
if (method === "DELETE") {
|
|
2732
|
+
if (rest.length !== 1) {
|
|
2733
|
+
return { status: 405, body: { error: `method ${method} not supported on this path` } };
|
|
2709
2734
|
}
|
|
2710
|
-
|
|
2735
|
+
if (currentName && name === currentName) {
|
|
2736
|
+
return {
|
|
2737
|
+
status: 409,
|
|
2738
|
+
body: { error: "cannot delete the currently-active session \u2014 switch away first." }
|
|
2739
|
+
};
|
|
2740
|
+
}
|
|
2741
|
+
if (!existsSync8(path)) return { status: 404, body: { error: `no such session: ${name}` } };
|
|
2742
|
+
const removed = deleteSession(name);
|
|
2743
|
+
if (!removed) return { status: 500, body: { error: `failed to delete ${name}` } };
|
|
2744
|
+
ctx.audit?.({ ts: Date.now(), action: "delete-session", payload: { name } });
|
|
2745
|
+
return { status: 200, body: { ok: true, deleted: name } };
|
|
2746
|
+
}
|
|
2747
|
+
if (method === "GET") {
|
|
2748
|
+
if (rest.length !== 1) {
|
|
2749
|
+
return { status: 405, body: { error: `method ${method} not supported on this path` } };
|
|
2750
|
+
}
|
|
2751
|
+
if (!existsSync8(path)) return { status: 404, body: { error: `no such session: ${name}` } };
|
|
2752
|
+
const messages = parseTranscript(path);
|
|
2753
|
+
return {
|
|
2754
|
+
status: 200,
|
|
2755
|
+
body: { name, path, messages, messageCount: messages.length }
|
|
2756
|
+
};
|
|
2757
|
+
}
|
|
2758
|
+
return { status: 405, body: { error: `method ${method} not supported on this path` } };
|
|
2711
2759
|
}
|
|
2712
2760
|
|
|
2713
2761
|
// src/server/api/settings.ts
|
|
@@ -3500,4 +3548,4 @@ export {
|
|
|
3500
3548
|
readBody,
|
|
3501
3549
|
startDashboardServer
|
|
3502
3550
|
};
|
|
3503
|
-
//# sourceMappingURL=server-
|
|
3551
|
+
//# sourceMappingURL=server-P6V2G3P6.js.map
|