@shareai-lab/kode 2.1.11 → 2.1.13
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/chunks/{Doctor-CATM2XNU.js → Doctor-7FMNUHVK.js} +9 -9
- package/dist/chunks/{LogList-LFBDGSM2.js → LogList-7A45VEJ3.js} +7 -7
- package/dist/chunks/{REPL-QXAX74JS.js → REPL-RPMNB753.js} +36 -36
- package/dist/chunks/{ResumeConversation-RWILJAA4.js → ResumeConversation-ZHD2BGE2.js} +38 -38
- package/dist/chunks/{agentLoader-6Q5SPXTH.js → agentLoader-LXY26VUO.js} +5 -5
- package/dist/chunks/{agentsValidate-THCDNEHS.js → agentsValidate-3NQ5B536.js} +6 -6
- package/dist/chunks/{ask-45WQLHSB.js → ask-TTU5MIQL.js} +16 -16
- package/dist/chunks/{autoUpdater-MYQJ6SZ6.js → autoUpdater-OL2FHJW4.js} +4 -4
- package/dist/chunks/{chunk-47J6JKVO.js → chunk-2EAA62U6.js} +1 -1
- package/dist/chunks/{chunk-CLON3EB6.js → chunk-2NGYIYTT.js} +4 -4
- package/dist/chunks/{chunk-EXBCQFHX.js → chunk-3VH52KPZ.js} +7 -7
- package/dist/chunks/{chunk-2WCOBF3H.js → chunk-3WLJNJSS.js} +1 -1
- package/dist/chunks/{chunk-7IQW2CI4.js → chunk-5MQQUH4D.js} +1 -1
- package/dist/chunks/{chunk-CR3U5VLS.js → chunk-5QS3GMCU.js} +3 -3
- package/dist/chunks/{chunk-BOC5TWSC.js → chunk-64I4GZUZ.js} +1 -1
- package/dist/chunks/{chunk-AYIRV6KF.js → chunk-73UYWYPL.js} +2 -2
- package/dist/chunks/{chunk-4AYXXNBP.js → chunk-A4EMFTOH.js} +10 -10
- package/dist/chunks/{chunk-TQSAI7TB.js → chunk-CUJBKJNS.js} +26 -28
- package/dist/chunks/chunk-CUJBKJNS.js.map +7 -0
- package/dist/chunks/{chunk-ZNLL22BR.js → chunk-DQPWWE7E.js} +4 -4
- package/dist/chunks/{chunk-FV5EGWT2.js → chunk-EFTBBWD3.js} +31 -31
- package/dist/chunks/{chunk-FV5EGWT2.js.map → chunk-EFTBBWD3.js.map} +2 -2
- package/dist/chunks/{chunk-MFHYPPVF.js → chunk-GAURYXBG.js} +1 -1
- package/dist/chunks/{chunk-BIYAUAON.js → chunk-GQ5BR7LE.js} +1 -1
- package/dist/chunks/{chunk-B6WKFUVR.js → chunk-HABXSZIY.js} +3 -3
- package/dist/chunks/{chunk-LWEETYXC.js → chunk-I7VZ4GGD.js} +1 -1
- package/dist/chunks/{chunk-JFI7JPSS.js → chunk-KKX6BBCU.js} +5 -5
- package/dist/chunks/{chunk-TRUDQVOM.js → chunk-KRQX2YAN.js} +2 -2
- package/dist/chunks/{chunk-V724GMRT.js → chunk-MSBD7AHV.js} +1 -1
- package/dist/chunks/{chunk-7GSPVB7I.js → chunk-MTNFSTSP.js} +8 -8
- package/dist/chunks/{chunk-MV2CBNGN.js → chunk-OOAB5VYK.js} +1 -1
- package/dist/chunks/{chunk-DDKEOS6U.js → chunk-OYRUYKZ4.js} +2 -2
- package/dist/chunks/{chunk-V4F2JN34.js → chunk-Q4LETTXN.js} +2 -2
- package/dist/chunks/{chunk-YVNRRIP3.js → chunk-QFNRQTF5.js} +1 -1
- package/dist/chunks/{chunk-26QBEO4F.js → chunk-QP2E5HZ6.js} +2 -2
- package/dist/chunks/{chunk-7C2FPP6X.js → chunk-QQDJ4CXM.js} +13 -13
- package/dist/chunks/{chunk-7C2FPP6X.js.map → chunk-QQDJ4CXM.js.map} +1 -1
- package/dist/chunks/{chunk-GICGCOOF.js → chunk-RVJSFWNW.js} +1 -1
- package/dist/chunks/{chunk-HB3IGXGY.js → chunk-TU3DMACH.js} +31 -31
- package/dist/chunks/{chunk-KV2M7S6B.js → chunk-U5M5EV7S.js} +2 -2
- package/dist/chunks/{chunk-B33S2FYF.js → chunk-UNMVGIEM.js} +2 -2
- package/dist/chunks/{chunk-EYK2FFOG.js → chunk-USRQVHYN.js} +4 -4
- package/dist/chunks/{chunk-3ZUPPBMO.js → chunk-UTMBNP7U.js} +1 -1
- package/dist/chunks/{chunk-JYWWSSMK.js → chunk-X4BTBVLC.js} +2 -2
- package/dist/chunks/{chunk-ZI5Z3XMH.js → chunk-XBHDR2ZC.js} +3 -3
- package/dist/chunks/{chunk-HDQQDCSJ.js → chunk-XEBLTJNM.js} +5 -5
- package/dist/chunks/{chunk-AFI5XWCD.js → chunk-Y53KNUBH.js} +3 -3
- package/dist/chunks/{chunk-TV62M6SY.js → chunk-YDQZK4JM.js} +1 -1
- package/dist/chunks/{chunk-VA2JXT6V.js → chunk-ZIMHV3DG.js} +4 -4
- package/dist/chunks/{chunk-MOAWT5ID.js → chunk-ZTEJXST7.js} +2 -2
- package/dist/chunks/{chunk-FHJWXZVX.js → chunk-ZVDG6S37.js} +2 -2
- package/dist/chunks/{client-BCBHJ4NH.js → client-75F4KRQ3.js} +5 -5
- package/dist/chunks/{customCommands-ZDNOLIX3.js → customCommands-X7TG3N4B.js} +5 -5
- package/dist/chunks/{engine-VQ3VJBS3.js → engine-5Y76P7CV.js} +15 -15
- package/dist/chunks/{env-M42K2VMN.js → env-5PTUTHCP.js} +3 -3
- package/dist/chunks/{kodeAgentSessionLoad-NI5QABZQ.js → kodeAgentSessionLoad-UVOA24FK.js} +3 -3
- package/dist/chunks/{kodeAgentSessionResume-EXIMDDJZ.js → kodeAgentSessionResume-LF2LRCGV.js} +3 -3
- package/dist/chunks/{kodeHooks-RA6MO3XI.js → kodeHooks-YU54H6EG.js} +4 -4
- package/dist/chunks/{llm-DOCFAYF7.js → llm-4SNM4IDE.js} +13 -13
- package/dist/chunks/{llmLazy-EPG4VSGC.js → llmLazy-QZELFRLW.js} +1 -1
- package/dist/chunks/{mcpCli-GHQ4ZZVY.js → mcpCli-A6DOUI6K.js} +5 -5
- package/dist/chunks/{mentionProcessor-JW7LGNXX.js → mentionProcessor-UJFE5JNZ.js} +6 -6
- package/dist/chunks/{model-22JBEFFH.js → model-22KSMIFJ.js} +5 -5
- package/dist/chunks/{openai-PJKZ6SFT.js → openai-4UAVS6TI.js} +5 -5
- package/dist/chunks/{permissions-DZ4ZRT3E.js → permissions-4F7TX6N7.js} +6 -6
- package/dist/chunks/{pluginRuntime-2DYWCDL6.js → pluginRuntime-4GPEUR45.js} +3 -3
- package/dist/chunks/{pluginValidation-KUZBPB5G.js → pluginValidation-NVJ4H6AZ.js} +7 -7
- package/dist/chunks/{registry-REENP5FM.js → registry-R3N7PM3V.js} +29 -29
- package/dist/chunks/{ripgrep-4QIOLKJQ.js → ripgrep-FVYG25TF.js} +4 -4
- package/dist/chunks/{runNonTextPrintMode-T3KJLVDW.js → runNonTextPrintMode-ZXNYYTOM.js} +9 -9
- package/dist/chunks/{server-UG7VGSMK.js → server-DRM5LNJI.js} +27 -27
- package/dist/chunks/{server-427X65CM.js → server-KDPTHJ63.js} +25 -25
- package/dist/chunks/{skillMarketplace-4IPMZJOM.js → skillMarketplace-KMBZH3XB.js} +4 -4
- package/dist/chunks/{src-C65OF2CE.js → src-HS4JSOV7.js} +70 -70
- package/dist/chunks/{src-AWKZPH7X.js → src-NA4PARIJ.js} +27 -27
- package/dist/chunks/{src-PT7VYXGT.js → src-NAONSXUL.js} +24 -24
- package/dist/chunks/{thinking-PO4DIVS6.js → thinking-2CBSWTVB.js} +6 -6
- package/dist/chunks/{toolPermissionSettings-OBYPVTUI.js → toolPermissionSettings-AKHRQGA7.js} +4 -4
- package/dist/chunks/{webOnlyMode-MTYJLIX6.js → webOnlyMode-NYD23BP3.js} +1 -1
- package/dist/entrypoints/cli.js +1 -1
- package/dist/entrypoints/daemon.js +1 -1
- package/dist/entrypoints/mcp.js +25 -25
- package/dist/index.js +5 -5
- package/dist/sdk/core.cjs +13 -13
- package/dist/sdk/core.cjs.map +1 -1
- package/dist/sdk/core.js +13 -13
- package/dist/sdk/core.js.map +1 -1
- package/dist/sdk/tools.cjs +19 -20
- package/dist/sdk/tools.cjs.map +2 -2
- package/dist/sdk/tools.js +19 -20
- package/dist/sdk/tools.js.map +2 -2
- package/dist/vendor/seccomp/arm64/apply-seccomp +1 -0
- package/dist/vendor/seccomp/arm64/unix-block.bpf +1 -0
- package/dist/vendor/seccomp/x64/apply-seccomp +1 -0
- package/dist/vendor/seccomp/x64/unix-block.bpf +1 -0
- package/package.json +13 -13
- package/dist/chunks/chunk-TQSAI7TB.js.map +0 -7
- /package/dist/chunks/{Doctor-CATM2XNU.js.map → Doctor-7FMNUHVK.js.map} +0 -0
- /package/dist/chunks/{LogList-LFBDGSM2.js.map → LogList-7A45VEJ3.js.map} +0 -0
- /package/dist/chunks/{REPL-QXAX74JS.js.map → REPL-RPMNB753.js.map} +0 -0
- /package/dist/chunks/{ResumeConversation-RWILJAA4.js.map → ResumeConversation-ZHD2BGE2.js.map} +0 -0
- /package/dist/chunks/{agentLoader-6Q5SPXTH.js.map → agentLoader-LXY26VUO.js.map} +0 -0
- /package/dist/chunks/{agentsValidate-THCDNEHS.js.map → agentsValidate-3NQ5B536.js.map} +0 -0
- /package/dist/chunks/{ask-45WQLHSB.js.map → ask-TTU5MIQL.js.map} +0 -0
- /package/dist/chunks/{autoUpdater-MYQJ6SZ6.js.map → autoUpdater-OL2FHJW4.js.map} +0 -0
- /package/dist/chunks/{chunk-47J6JKVO.js.map → chunk-2EAA62U6.js.map} +0 -0
- /package/dist/chunks/{chunk-CLON3EB6.js.map → chunk-2NGYIYTT.js.map} +0 -0
- /package/dist/chunks/{chunk-EXBCQFHX.js.map → chunk-3VH52KPZ.js.map} +0 -0
- /package/dist/chunks/{chunk-2WCOBF3H.js.map → chunk-3WLJNJSS.js.map} +0 -0
- /package/dist/chunks/{chunk-7IQW2CI4.js.map → chunk-5MQQUH4D.js.map} +0 -0
- /package/dist/chunks/{chunk-CR3U5VLS.js.map → chunk-5QS3GMCU.js.map} +0 -0
- /package/dist/chunks/{chunk-BOC5TWSC.js.map → chunk-64I4GZUZ.js.map} +0 -0
- /package/dist/chunks/{chunk-AYIRV6KF.js.map → chunk-73UYWYPL.js.map} +0 -0
- /package/dist/chunks/{chunk-4AYXXNBP.js.map → chunk-A4EMFTOH.js.map} +0 -0
- /package/dist/chunks/{chunk-ZNLL22BR.js.map → chunk-DQPWWE7E.js.map} +0 -0
- /package/dist/chunks/{chunk-MFHYPPVF.js.map → chunk-GAURYXBG.js.map} +0 -0
- /package/dist/chunks/{chunk-BIYAUAON.js.map → chunk-GQ5BR7LE.js.map} +0 -0
- /package/dist/chunks/{chunk-B6WKFUVR.js.map → chunk-HABXSZIY.js.map} +0 -0
- /package/dist/chunks/{chunk-LWEETYXC.js.map → chunk-I7VZ4GGD.js.map} +0 -0
- /package/dist/chunks/{chunk-JFI7JPSS.js.map → chunk-KKX6BBCU.js.map} +0 -0
- /package/dist/chunks/{chunk-TRUDQVOM.js.map → chunk-KRQX2YAN.js.map} +0 -0
- /package/dist/chunks/{chunk-V724GMRT.js.map → chunk-MSBD7AHV.js.map} +0 -0
- /package/dist/chunks/{chunk-7GSPVB7I.js.map → chunk-MTNFSTSP.js.map} +0 -0
- /package/dist/chunks/{chunk-MV2CBNGN.js.map → chunk-OOAB5VYK.js.map} +0 -0
- /package/dist/chunks/{chunk-DDKEOS6U.js.map → chunk-OYRUYKZ4.js.map} +0 -0
- /package/dist/chunks/{chunk-V4F2JN34.js.map → chunk-Q4LETTXN.js.map} +0 -0
- /package/dist/chunks/{chunk-YVNRRIP3.js.map → chunk-QFNRQTF5.js.map} +0 -0
- /package/dist/chunks/{chunk-26QBEO4F.js.map → chunk-QP2E5HZ6.js.map} +0 -0
- /package/dist/chunks/{chunk-GICGCOOF.js.map → chunk-RVJSFWNW.js.map} +0 -0
- /package/dist/chunks/{chunk-HB3IGXGY.js.map → chunk-TU3DMACH.js.map} +0 -0
- /package/dist/chunks/{chunk-KV2M7S6B.js.map → chunk-U5M5EV7S.js.map} +0 -0
- /package/dist/chunks/{chunk-B33S2FYF.js.map → chunk-UNMVGIEM.js.map} +0 -0
- /package/dist/chunks/{chunk-EYK2FFOG.js.map → chunk-USRQVHYN.js.map} +0 -0
- /package/dist/chunks/{chunk-3ZUPPBMO.js.map → chunk-UTMBNP7U.js.map} +0 -0
- /package/dist/chunks/{chunk-JYWWSSMK.js.map → chunk-X4BTBVLC.js.map} +0 -0
- /package/dist/chunks/{chunk-ZI5Z3XMH.js.map → chunk-XBHDR2ZC.js.map} +0 -0
- /package/dist/chunks/{chunk-HDQQDCSJ.js.map → chunk-XEBLTJNM.js.map} +0 -0
- /package/dist/chunks/{chunk-AFI5XWCD.js.map → chunk-Y53KNUBH.js.map} +0 -0
- /package/dist/chunks/{chunk-TV62M6SY.js.map → chunk-YDQZK4JM.js.map} +0 -0
- /package/dist/chunks/{chunk-VA2JXT6V.js.map → chunk-ZIMHV3DG.js.map} +0 -0
- /package/dist/chunks/{chunk-MOAWT5ID.js.map → chunk-ZTEJXST7.js.map} +0 -0
- /package/dist/chunks/{chunk-FHJWXZVX.js.map → chunk-ZVDG6S37.js.map} +0 -0
- /package/dist/chunks/{client-BCBHJ4NH.js.map → client-75F4KRQ3.js.map} +0 -0
- /package/dist/chunks/{customCommands-ZDNOLIX3.js.map → customCommands-X7TG3N4B.js.map} +0 -0
- /package/dist/chunks/{engine-VQ3VJBS3.js.map → engine-5Y76P7CV.js.map} +0 -0
- /package/dist/chunks/{env-M42K2VMN.js.map → env-5PTUTHCP.js.map} +0 -0
- /package/dist/chunks/{kodeAgentSessionLoad-NI5QABZQ.js.map → kodeAgentSessionLoad-UVOA24FK.js.map} +0 -0
- /package/dist/chunks/{kodeAgentSessionResume-EXIMDDJZ.js.map → kodeAgentSessionResume-LF2LRCGV.js.map} +0 -0
- /package/dist/chunks/{kodeHooks-RA6MO3XI.js.map → kodeHooks-YU54H6EG.js.map} +0 -0
- /package/dist/chunks/{llm-DOCFAYF7.js.map → llm-4SNM4IDE.js.map} +0 -0
- /package/dist/chunks/{llmLazy-EPG4VSGC.js.map → llmLazy-QZELFRLW.js.map} +0 -0
- /package/dist/chunks/{mcpCli-GHQ4ZZVY.js.map → mcpCli-A6DOUI6K.js.map} +0 -0
- /package/dist/chunks/{mentionProcessor-JW7LGNXX.js.map → mentionProcessor-UJFE5JNZ.js.map} +0 -0
- /package/dist/chunks/{model-22JBEFFH.js.map → model-22KSMIFJ.js.map} +0 -0
- /package/dist/chunks/{openai-PJKZ6SFT.js.map → openai-4UAVS6TI.js.map} +0 -0
- /package/dist/chunks/{permissions-DZ4ZRT3E.js.map → permissions-4F7TX6N7.js.map} +0 -0
- /package/dist/chunks/{pluginRuntime-2DYWCDL6.js.map → pluginRuntime-4GPEUR45.js.map} +0 -0
- /package/dist/chunks/{pluginValidation-KUZBPB5G.js.map → pluginValidation-NVJ4H6AZ.js.map} +0 -0
- /package/dist/chunks/{registry-REENP5FM.js.map → registry-R3N7PM3V.js.map} +0 -0
- /package/dist/chunks/{ripgrep-4QIOLKJQ.js.map → ripgrep-FVYG25TF.js.map} +0 -0
- /package/dist/chunks/{runNonTextPrintMode-T3KJLVDW.js.map → runNonTextPrintMode-ZXNYYTOM.js.map} +0 -0
- /package/dist/chunks/{server-427X65CM.js.map → server-DRM5LNJI.js.map} +0 -0
- /package/dist/chunks/{server-UG7VGSMK.js.map → server-KDPTHJ63.js.map} +0 -0
- /package/dist/chunks/{skillMarketplace-4IPMZJOM.js.map → skillMarketplace-KMBZH3XB.js.map} +0 -0
- /package/dist/chunks/{src-C65OF2CE.js.map → src-HS4JSOV7.js.map} +0 -0
- /package/dist/chunks/{src-AWKZPH7X.js.map → src-NA4PARIJ.js.map} +0 -0
- /package/dist/chunks/{src-PT7VYXGT.js.map → src-NAONSXUL.js.map} +0 -0
- /package/dist/chunks/{thinking-PO4DIVS6.js.map → thinking-2CBSWTVB.js.map} +0 -0
- /package/dist/chunks/{toolPermissionSettings-OBYPVTUI.js.map → toolPermissionSettings-AKHRQGA7.js.map} +0 -0
- /package/dist/chunks/{webOnlyMode-MTYJLIX6.js.map → webOnlyMode-NYD23BP3.js.map} +0 -0
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
} from "./chunk-M7P3QNRU.js";
|
|
7
7
|
import {
|
|
8
8
|
debug
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-GQ5BR7LE.js";
|
|
10
10
|
import {
|
|
11
11
|
getKodeBaseDir,
|
|
12
12
|
logError
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-YDQZK4JM.js";
|
|
14
14
|
import {
|
|
15
15
|
getCwd
|
|
16
16
|
} from "./chunk-5ARRC2T2.js";
|
|
@@ -975,7 +975,7 @@ function emitCustomCommandReloaded(event) {
|
|
|
975
975
|
async function reloadCustomCommandsForSession(args) {
|
|
976
976
|
try {
|
|
977
977
|
reloadCustomCommands();
|
|
978
|
-
const { getCommands } = await import("./registry-
|
|
978
|
+
const { getCommands } = await import("./registry-R3N7PM3V.js");
|
|
979
979
|
getCommands.cache.clear?.();
|
|
980
980
|
} catch (error) {
|
|
981
981
|
logError(error);
|
|
@@ -3,22 +3,22 @@ import {
|
|
|
3
3
|
} from "./chunk-QAXE37B5.js";
|
|
4
4
|
import {
|
|
5
5
|
getAllTools
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CUJBKJNS.js";
|
|
7
7
|
import {
|
|
8
8
|
resolveToolDescription
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-Y53KNUBH.js";
|
|
10
10
|
import {
|
|
11
11
|
createAssistantMessage
|
|
12
12
|
} from "./chunk-L2LWCVUF.js";
|
|
13
13
|
import {
|
|
14
14
|
logError
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YDQZK4JM.js";
|
|
16
16
|
import {
|
|
17
17
|
setCwd
|
|
18
18
|
} from "./chunk-5ARRC2T2.js";
|
|
19
19
|
import {
|
|
20
20
|
MACRO
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-MSBD7AHV.js";
|
|
22
22
|
import {
|
|
23
23
|
LEGACY_ENV
|
|
24
24
|
} from "./chunk-IJOMPG6S.js";
|
|
@@ -155,7 +155,7 @@ async function startMCPServer(cwd) {
|
|
|
155
155
|
);
|
|
156
156
|
}
|
|
157
157
|
const assistantMessage = createAssistantMessage("");
|
|
158
|
-
const permission = await (await import("./permissions-
|
|
158
|
+
const permission = await (await import("./permissions-4F7TX6N7.js")).hasPermissionsToUseTool(
|
|
159
159
|
tool,
|
|
160
160
|
toolInput,
|
|
161
161
|
toolUseContext,
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-M7P3QNRU.js";
|
|
4
4
|
import {
|
|
5
5
|
debug
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GQ5BR7LE.js";
|
|
7
7
|
import {
|
|
8
8
|
logError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YDQZK4JM.js";
|
|
10
10
|
import {
|
|
11
11
|
getCwd
|
|
12
12
|
} from "./chunk-5ARRC2T2.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useDoublePress,
|
|
3
3
|
useExitOnCtrlCD
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-GAURYXBG.js";
|
|
5
5
|
import {
|
|
6
6
|
wrapLines
|
|
7
7
|
} from "./chunk-7FPYAZAS.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
terminalCapabilityManager,
|
|
11
11
|
useKeypress,
|
|
12
12
|
writeToStdout
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-UNMVGIEM.js";
|
|
14
14
|
import {
|
|
15
15
|
ScreenFrame
|
|
16
16
|
} from "./chunk-5LBRVQT5.js";
|
|
@@ -23,13 +23,13 @@ import {
|
|
|
23
23
|
import {
|
|
24
24
|
fetchCustomModels,
|
|
25
25
|
providers
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-RVJSFWNW.js";
|
|
27
27
|
import {
|
|
28
28
|
FileWriteTool,
|
|
29
29
|
normalizeLineEndings,
|
|
30
30
|
shouldAggregatePasteChunk,
|
|
31
31
|
shouldTreatAsSpecialPaste
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-USRQVHYN.js";
|
|
33
33
|
import {
|
|
34
34
|
getCachedStringWidth
|
|
35
35
|
} from "./chunk-UKNILZCN.js";
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
getCompatSyspromptPrefix,
|
|
39
39
|
getCompatSystemPrompt,
|
|
40
40
|
getSystemPrompt
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-5QS3GMCU.js";
|
|
42
42
|
import {
|
|
43
43
|
COMPAT_TOOL_ALLOWLIST,
|
|
44
44
|
buildCompatHeaders,
|
|
@@ -50,14 +50,14 @@ import {
|
|
|
50
50
|
} from "./chunk-HDVL5VTM.js";
|
|
51
51
|
import {
|
|
52
52
|
getModelManager
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-OYRUYKZ4.js";
|
|
54
54
|
import {
|
|
55
55
|
debug
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-GQ5BR7LE.js";
|
|
57
57
|
import {
|
|
58
58
|
PRODUCT_NAME,
|
|
59
59
|
logError
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-YDQZK4JM.js";
|
|
61
61
|
import {
|
|
62
62
|
DEFAULT_GLOBAL_CONFIG,
|
|
63
63
|
getGlobalConfig,
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
} from "./chunk-UINOTNT3.js";
|
|
8
8
|
import {
|
|
9
9
|
debug
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GQ5BR7LE.js";
|
|
11
11
|
import {
|
|
12
12
|
logError
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-YDQZK4JM.js";
|
|
14
14
|
import {
|
|
15
15
|
getKodeRoot
|
|
16
16
|
} from "./chunk-KGE74PKI.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
messagesToAgentEvents,
|
|
3
3
|
query
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-A4EMFTOH.js";
|
|
5
5
|
import {
|
|
6
6
|
getContext,
|
|
7
7
|
getSystemPrompt
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-5QS3GMCU.js";
|
|
9
9
|
|
|
10
10
|
// packages/core/src/engine/systemPrompt.ts
|
|
11
11
|
async function buildSystemPromptForSession(args) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// package.json
|
|
2
2
|
var package_default = {
|
|
3
3
|
name: "@shareai-lab/kode",
|
|
4
|
-
version: "2.1.
|
|
4
|
+
version: "2.1.13",
|
|
5
5
|
workspaces: [
|
|
6
6
|
"apps/*",
|
|
7
7
|
"packages/*"
|
|
@@ -156,18 +156,18 @@ var package_default = {
|
|
|
156
156
|
"zod-to-json-schema": "^3.24.6"
|
|
157
157
|
},
|
|
158
158
|
optionalDependencies: {
|
|
159
|
-
"@shareai-lab/kode-bin-darwin-arm64": "2.1.
|
|
160
|
-
"@shareai-lab/kode-bin-darwin-x64": "2.1.
|
|
161
|
-
"@shareai-lab/kode-bin-linux-arm64": "2.1.
|
|
162
|
-
"@shareai-lab/kode-bin-linux-x64": "2.1.
|
|
163
|
-
"@shareai-lab/kode-bin-win32-arm64": "2.1.
|
|
164
|
-
"@shareai-lab/kode-bin-win32-x64": "2.1.
|
|
165
|
-
"@shareai-lab/kode-ripgrep-darwin-arm64": "2.1.
|
|
166
|
-
"@shareai-lab/kode-ripgrep-darwin-x64": "2.1.
|
|
167
|
-
"@shareai-lab/kode-ripgrep-linux-arm64": "2.1.
|
|
168
|
-
"@shareai-lab/kode-ripgrep-linux-x64": "2.1.
|
|
169
|
-
"@shareai-lab/kode-ripgrep-win32-arm64": "2.1.
|
|
170
|
-
"@shareai-lab/kode-ripgrep-win32-x64": "2.1.
|
|
159
|
+
"@shareai-lab/kode-bin-darwin-arm64": "2.1.13",
|
|
160
|
+
"@shareai-lab/kode-bin-darwin-x64": "2.1.13",
|
|
161
|
+
"@shareai-lab/kode-bin-linux-arm64": "2.1.13",
|
|
162
|
+
"@shareai-lab/kode-bin-linux-x64": "2.1.13",
|
|
163
|
+
"@shareai-lab/kode-bin-win32-arm64": "2.1.13",
|
|
164
|
+
"@shareai-lab/kode-bin-win32-x64": "2.1.13",
|
|
165
|
+
"@shareai-lab/kode-ripgrep-darwin-arm64": "2.1.13",
|
|
166
|
+
"@shareai-lab/kode-ripgrep-darwin-x64": "2.1.13",
|
|
167
|
+
"@shareai-lab/kode-ripgrep-linux-arm64": "2.1.13",
|
|
168
|
+
"@shareai-lab/kode-ripgrep-linux-x64": "2.1.13",
|
|
169
|
+
"@shareai-lab/kode-ripgrep-win32-arm64": "2.1.13",
|
|
170
|
+
"@shareai-lab/kode-ripgrep-win32-x64": "2.1.13"
|
|
171
171
|
},
|
|
172
172
|
devDependencies: {
|
|
173
173
|
"@codemirror/lang-css": "^6.3.1",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../package.json"],
|
|
4
|
-
"sourcesContent": ["{\n \"name\": \"@shareai-lab/kode\",\n \"version\": \"2.1.
|
|
4
|
+
"sourcesContent": ["{\n \"name\": \"@shareai-lab/kode\",\n \"version\": \"2.1.13\",\n \"workspaces\": [\n \"apps/*\",\n \"packages/*\"\n ],\n \"bin\": {\n \"kode\": \"cli.js\",\n \"kwa\": \"cli.js\",\n \"kd\": \"cli.js\",\n \"mcp-cli\": \"mcp-cli.js\",\n \"kode-acp\": \"cli-acp.js\"\n },\n \"engines\": {\n \"node\": \">=20.18.1\"\n },\n \"main\": \"cli.js\",\n \"exports\": {\n \".\": {\n \"require\": \"./cli.js\",\n \"default\": \"./cli.js\"\n },\n \"./protocol\": {\n \"import\": \"./dist/sdk/protocol.js\",\n \"require\": \"./dist/sdk/protocol.cjs\"\n },\n \"./client\": {\n \"import\": \"./dist/sdk/client.js\",\n \"require\": \"./dist/sdk/client.cjs\"\n },\n \"./daemon-client\": {\n \"import\": \"./dist/sdk/daemon-client.js\",\n \"require\": \"./dist/sdk/daemon-client.cjs\"\n },\n \"./core\": {\n \"import\": \"./dist/sdk/core.js\",\n \"require\": \"./dist/sdk/core.cjs\"\n },\n \"./tools\": {\n \"import\": \"./dist/sdk/tools.js\",\n \"require\": \"./dist/sdk/tools.cjs\"\n },\n \"./runtime\": {\n \"import\": \"./dist/sdk/runtime.js\",\n \"require\": \"./dist/sdk/runtime.cjs\"\n },\n \"./runtime-node\": {\n \"import\": \"./dist/sdk/runtime-node.js\",\n \"require\": \"./dist/sdk/runtime-node.cjs\"\n }\n },\n \"author\": \"ShareAI-lab <ai-lab@foxmail.com>\",\n \"license\": \"Apache-2.0\",\n \"description\": \"AI-powered terminal assistant that understands your codebase, edits files, runs commands, and automates development workflows.\",\n \"homepage\": \"https://github.com/shareAI-lab/kode\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://github.com/shareAI-lab/kode.git\"\n },\n \"bugs\": {\n \"url\": \"https://github.com/shareAI-lab/kode/issues\"\n },\n \"files\": [\n \"cli.js\",\n \"cli-acp.js\",\n \"mcp-cli.js\",\n \"yoga.wasm\",\n \"dist/**/*\",\n \"!dist/bin/**\",\n \"!dist/binary/**\",\n \"packages/builtin-skills/THIRD_PARTY_NOTICES.md\",\n \"packages/builtin-skills/skills/**/*\",\n \"packages/builtin-skills/third_party/shareai-skills/LICENSE\",\n \"scripts/cli-wrapper.cjs\",\n \"scripts/cli-acp-wrapper.cjs\"\n ],\n \"scripts\": {\n \"dev\": \"bun run ./apps/cli/src/dispatch.ts --verbose\",\n \"dev:cli\": \"bun run ./apps/cli/src/dispatch.ts --verbose\",\n \"dev:server\": \"bun run --filter @kode/server dev\",\n \"dev:web\": \"bun run --filter @kode/web dev\",\n \"dev:bun\": \"bun run ./apps/cli/src/dispatch.ts --verbose\",\n \"build:cli\": \"node scripts/build-cli.mjs\",\n \"build:server\": \"node scripts/build-server.mjs\",\n \"build:web\": \"node scripts/build-web.mjs\",\n \"build\": \"bun run scripts/build.mjs\",\n \"build:binary\": \"bun run scripts/build-binary.mjs\",\n \"clean\": \"bun run scripts/clean.mjs\",\n \"prepublishOnly\": \"bun run scripts/build.mjs && bun run scripts/prepublish-check.js\",\n \"format\": \"prettier --write \\\"apps/**/*.{ts,tsx,js,jsx,json,md,css,html}\\\" \\\"packages/**/*.{ts,tsx,js,jsx,json,md}\\\" \\\"scripts/**/*.{ts,tsx,js,jsx,mjs,cjs,json}\\\" \\\"docs/**/*.{md,json}\\\"\",\n \"format:check\": \"prettier --check \\\"apps/**/*.{ts,tsx,js,jsx,json,md,css,html}\\\" \\\"packages/**/*.{ts,tsx,js,jsx,json,md}\\\" \\\"scripts/**/*.{ts,tsx,js,jsx,mjs,cjs,json}\\\" \\\"docs/**/*.{md,json}\\\"\",\n \"lint\": \"eslint . --ext .ts,.tsx,.js --max-warnings 0\",\n \"lint:fix\": \"eslint . --ext .ts,.tsx,.js --fix\",\n \"test\": \"bun test\",\n \"typecheck\": \"tsc --noEmit\",\n \"check\": \"bun run format:check && bun run typecheck && bun test && bun run build\",\n \"prepare\": \"node scripts/install-hooks.mjs\",\n \"publish:dev\": \"bun run scripts/publish-dev.js\",\n \"publish:release\": \"bun run scripts/publish-release.js\",\n \"bench:startup\": \"bun run scripts/bench-startup.mjs\"\n },\n \"dependencies\": {\n \"@anthropic-ai/bedrock-sdk\": \"^0.12.6\",\n \"@anthropic-ai/sdk\": \"^0.39.0\",\n \"@anthropic-ai/vertex-sdk\": \"^0.7.0\",\n \"@aws-sdk/client-bedrock-runtime\": \"3.797.0\",\n \"@commander-js/extra-typings\": \"^13.1.0\",\n \"@inkjs/ui\": \"^2.0.0\",\n \"@modelcontextprotocol/sdk\": \"^1.15.1\",\n \"@types/lodash-es\": \"^4.17.12\",\n \"@types/react\": \"19.2.9\",\n \"ajv\": \"^8.17.1\",\n \"ansi-escapes\": \"^7.0.0\",\n \"chalk\": \"^5.4.1\",\n \"cli-highlight\": \"^2.1.11\",\n \"cli-table3\": \"^0.6.5\",\n \"commander\": \"^13.1.0\",\n \"debug\": \"^4.4.1\",\n \"diff\": \"^7.0.0\",\n \"dotenv\": \"^16.6.1\",\n \"env-paths\": \"^3.0.0\",\n \"fflate\": \"^0.8.2\",\n \"figures\": \"^6.1.0\",\n \"glob\": \"^11.0.3\",\n \"gray-matter\": \"^4.0.3\",\n \"highlight.js\": \"^11.11.1\",\n \"ignore\": \"^7.0.5\",\n \"ink\": \"6.6.0\",\n \"ink-link\": \"^4.1.0\",\n \"ink-select-input\": \"^6.2.0\",\n \"ink-text-input\": \"^6.0.0\",\n \"js-yaml\": \"^4.1.1\",\n \"lodash-es\": \"^4.17.21\",\n \"lru-cache\": \"^11.1.0\",\n \"marked\": \"^15.0.12\",\n \"minimatch\": \"^10.0.3\",\n \"nanoid\": \"^5.1.5\",\n \"node-fetch\": \"^3.3.2\",\n \"node-html-parser\": \"^7.0.1\",\n \"openai\": \"^4.104.0\",\n \"react\": \"19.2.3\",\n \"semver\": \"^7.7.2\",\n \"shell-quote\": \"^1.8.3\",\n \"spawn-rx\": \"^5.1.2\",\n \"string-width\": \"^7.2.0\",\n \"strip-ansi\": \"^7.1.0\",\n \"tsx\": \"^4.20.3\",\n \"turndown\": \"^7.2.0\",\n \"undici\": \"^7.11.0\",\n \"which\": \"^5.0.0\",\n \"wrap-ansi\": \"^9.0.0\",\n \"ws\": \"^8.18.3\",\n \"zod\": \"^3.25.76\",\n \"zod-to-json-schema\": \"^3.24.6\"\n },\n \"optionalDependencies\": {\n \"@shareai-lab/kode-bin-darwin-arm64\": \"2.1.13\",\n \"@shareai-lab/kode-bin-darwin-x64\": \"2.1.13\",\n \"@shareai-lab/kode-bin-linux-arm64\": \"2.1.13\",\n \"@shareai-lab/kode-bin-linux-x64\": \"2.1.13\",\n \"@shareai-lab/kode-bin-win32-arm64\": \"2.1.13\",\n \"@shareai-lab/kode-bin-win32-x64\": \"2.1.13\",\n \"@shareai-lab/kode-ripgrep-darwin-arm64\": \"2.1.13\",\n \"@shareai-lab/kode-ripgrep-darwin-x64\": \"2.1.13\",\n \"@shareai-lab/kode-ripgrep-linux-arm64\": \"2.1.13\",\n \"@shareai-lab/kode-ripgrep-linux-x64\": \"2.1.13\",\n \"@shareai-lab/kode-ripgrep-win32-arm64\": \"2.1.13\",\n \"@shareai-lab/kode-ripgrep-win32-x64\": \"2.1.13\"\n },\n \"devDependencies\": {\n \"@codemirror/lang-css\": \"^6.3.1\",\n \"@codemirror/lang-html\": \"^6.4.10\",\n \"@codemirror/lang-javascript\": \"^6.2.4\",\n \"@codemirror/lang-json\": \"^6.0.2\",\n \"@codemirror/lang-markdown\": \"^6.3.4\",\n \"@codemirror/lang-python\": \"^6.2.1\",\n \"@codemirror/theme-one-dark\": \"^6.1.2\",\n \"@radix-ui/react-accordion\": \"^1.2.12\",\n \"@radix-ui/react-checkbox\": \"^1.3.3\",\n \"@radix-ui/react-collapsible\": \"^1.1.12\",\n \"@radix-ui/react-dialog\": \"^1.1.15\",\n \"@radix-ui/react-dropdown-menu\": \"^2.1.16\",\n \"@radix-ui/react-radio-group\": \"^1.3.8\",\n \"@radix-ui/react-scroll-area\": \"^1.2.10\",\n \"@radix-ui/react-separator\": \"^1.1.8\",\n \"@radix-ui/react-slot\": \"^1.2.4\",\n \"@radix-ui/react-tabs\": \"^1.1.13\",\n \"@radix-ui/react-tooltip\": \"^1.2.8\",\n \"@tailwindcss/postcss\": \"^4.1.18\",\n \"@tailwindcss/typography\": \"^0.5.19\",\n \"@types/bun\": \"latest\",\n \"@types/jest\": \"^30.0.0\",\n \"@types/node\": \"^24.1.0\",\n \"@types/which\": \"^3.0.4\",\n \"@uiw/react-codemirror\": \"^4.24.2\",\n \"@vitejs/plugin-react\": \"^4.7.0\",\n \"@xterm/addon-fit\": \"^0.10.0\",\n \"@xterm/xterm\": \"^5.5.0\",\n \"autoprefixer\": \"^10.4.21\",\n \"bun-types\": \"latest\",\n \"class-variance-authority\": \"^0.7.1\",\n \"clsx\": \"^2.1.1\",\n \"esbuild\": \"^0.25.9\",\n \"lucide-react\": \"^0.542.0\",\n \"next-themes\": \"^0.4.6\",\n \"postcss\": \"^8.5.6\",\n \"prettier\": \"^3.6.2\",\n \"react-devtools-core\": \"^7.0.1\",\n \"react-dom\": \"19.2.3\",\n \"react-markdown\": \"^10.1.0\",\n \"react-resizable-panels\": \"^3.0.5\",\n \"remark-gfm\": \"^4.0.1\",\n \"tailwind-merge\": \"^3.3.1\",\n \"tailwindcss\": \"^4.1.12\",\n \"tailwindcss-animate\": \"^1.0.7\",\n \"typescript\": \"^5.9.2\",\n \"vite\": \"^7.3.0\"\n },\n \"overrides\": {\n \"@aws-sdk/client-bedrock-runtime\": \"3.797.0\",\n \"@smithy/smithy-client\": \"2.5.1\"\n }\n}\n"],
|
|
5
5
|
"mappings": ";AAAA;AAAA,EACE,MAAQ;AAAA,EACR,SAAW;AAAA,EACX,YAAc;AAAA,IACZ;AAAA,IACA;AAAA,EACF;AAAA,EACA,KAAO;AAAA,IACL,MAAQ;AAAA,IACR,KAAO;AAAA,IACP,IAAM;AAAA,IACN,WAAW;AAAA,IACX,YAAY;AAAA,EACd;AAAA,EACA,SAAW;AAAA,IACT,MAAQ;AAAA,EACV;AAAA,EACA,MAAQ;AAAA,EACR,SAAW;AAAA,IACT,KAAK;AAAA,MACH,SAAW;AAAA,MACX,SAAW;AAAA,IACb;AAAA,IACA,cAAc;AAAA,MACZ,QAAU;AAAA,MACV,SAAW;AAAA,IACb;AAAA,IACA,YAAY;AAAA,MACV,QAAU;AAAA,MACV,SAAW;AAAA,IACb;AAAA,IACA,mBAAmB;AAAA,MACjB,QAAU;AAAA,MACV,SAAW;AAAA,IACb;AAAA,IACA,UAAU;AAAA,MACR,QAAU;AAAA,MACV,SAAW;AAAA,IACb;AAAA,IACA,WAAW;AAAA,MACT,QAAU;AAAA,MACV,SAAW;AAAA,IACb;AAAA,IACA,aAAa;AAAA,MACX,QAAU;AAAA,MACV,SAAW;AAAA,IACb;AAAA,IACA,kBAAkB;AAAA,MAChB,QAAU;AAAA,MACV,SAAW;AAAA,IACb;AAAA,EACF;AAAA,EACA,QAAU;AAAA,EACV,SAAW;AAAA,EACX,aAAe;AAAA,EACf,UAAY;AAAA,EACZ,YAAc;AAAA,IACZ,MAAQ;AAAA,IACR,KAAO;AAAA,EACT;AAAA,EACA,MAAQ;AAAA,IACN,KAAO;AAAA,EACT;AAAA,EACA,OAAS;AAAA,IACP;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAAA,EACA,SAAW;AAAA,IACT,KAAO;AAAA,IACP,WAAW;AAAA,IACX,cAAc;AAAA,IACd,WAAW;AAAA,IACX,WAAW;AAAA,IACX,aAAa;AAAA,IACb,gBAAgB;AAAA,IAChB,aAAa;AAAA,IACb,OAAS;AAAA,IACT,gBAAgB;AAAA,IAChB,OAAS;AAAA,IACT,gBAAkB;AAAA,IAClB,QAAU;AAAA,IACV,gBAAgB;AAAA,IAChB,MAAQ;AAAA,IACR,YAAY;AAAA,IACZ,MAAQ;AAAA,IACR,WAAa;AAAA,IACb,OAAS;AAAA,IACT,SAAW;AAAA,IACX,eAAe;AAAA,IACf,mBAAmB;AAAA,IACnB,iBAAiB;AAAA,EACnB;AAAA,EACA,cAAgB;AAAA,IACd,6BAA6B;AAAA,IAC7B,qBAAqB;AAAA,IACrB,4BAA4B;AAAA,IAC5B,mCAAmC;AAAA,IACnC,+BAA+B;AAAA,IAC/B,aAAa;AAAA,IACb,6BAA6B;AAAA,IAC7B,oBAAoB;AAAA,IACpB,gBAAgB;AAAA,IAChB,KAAO;AAAA,IACP,gBAAgB;AAAA,IAChB,OAAS;AAAA,IACT,iBAAiB;AAAA,IACjB,cAAc;AAAA,IACd,WAAa;AAAA,IACb,OAAS;AAAA,IACT,MAAQ;AAAA,IACR,QAAU;AAAA,IACV,aAAa;AAAA,IACb,QAAU;AAAA,IACV,SAAW;AAAA,IACX,MAAQ;AAAA,IACR,eAAe;AAAA,IACf,gBAAgB;AAAA,IAChB,QAAU;AAAA,IACV,KAAO;AAAA,IACP,YAAY;AAAA,IACZ,oBAAoB;AAAA,IACpB,kBAAkB;AAAA,IAClB,WAAW;AAAA,IACX,aAAa;AAAA,IACb,aAAa;AAAA,IACb,QAAU;AAAA,IACV,WAAa;AAAA,IACb,QAAU;AAAA,IACV,cAAc;AAAA,IACd,oBAAoB;AAAA,IACpB,QAAU;AAAA,IACV,OAAS;AAAA,IACT,QAAU;AAAA,IACV,eAAe;AAAA,IACf,YAAY;AAAA,IACZ,gBAAgB;AAAA,IAChB,cAAc;AAAA,IACd,KAAO;AAAA,IACP,UAAY;AAAA,IACZ,QAAU;AAAA,IACV,OAAS;AAAA,IACT,aAAa;AAAA,IACb,IAAM;AAAA,IACN,KAAO;AAAA,IACP,sBAAsB;AAAA,EACxB;AAAA,EACA,sBAAwB;AAAA,IACtB,sCAAsC;AAAA,IACtC,oCAAoC;AAAA,IACpC,qCAAqC;AAAA,IACrC,mCAAmC;AAAA,IACnC,qCAAqC;AAAA,IACrC,mCAAmC;AAAA,IACnC,0CAA0C;AAAA,IAC1C,wCAAwC;AAAA,IACxC,yCAAyC;AAAA,IACzC,uCAAuC;AAAA,IACvC,yCAAyC;AAAA,IACzC,uCAAuC;AAAA,EACzC;AAAA,EACA,iBAAmB;AAAA,IACjB,wBAAwB;AAAA,IACxB,yBAAyB;AAAA,IACzB,+BAA+B;AAAA,IAC/B,yBAAyB;AAAA,IACzB,6BAA6B;AAAA,IAC7B,2BAA2B;AAAA,IAC3B,8BAA8B;AAAA,IAC9B,6BAA6B;AAAA,IAC7B,4BAA4B;AAAA,IAC5B,+BAA+B;AAAA,IAC/B,0BAA0B;AAAA,IAC1B,iCAAiC;AAAA,IACjC,+BAA+B;AAAA,IAC/B,+BAA+B;AAAA,IAC/B,6BAA6B;AAAA,IAC7B,wBAAwB;AAAA,IACxB,wBAAwB;AAAA,IACxB,2BAA2B;AAAA,IAC3B,wBAAwB;AAAA,IACxB,2BAA2B;AAAA,IAC3B,cAAc;AAAA,IACd,eAAe;AAAA,IACf,eAAe;AAAA,IACf,gBAAgB;AAAA,IAChB,yBAAyB;AAAA,IACzB,wBAAwB;AAAA,IACxB,oBAAoB;AAAA,IACpB,gBAAgB;AAAA,IAChB,cAAgB;AAAA,IAChB,aAAa;AAAA,IACb,4BAA4B;AAAA,IAC5B,MAAQ;AAAA,IACR,SAAW;AAAA,IACX,gBAAgB;AAAA,IAChB,eAAe;AAAA,IACf,SAAW;AAAA,IACX,UAAY;AAAA,IACZ,uBAAuB;AAAA,IACvB,aAAa;AAAA,IACb,kBAAkB;AAAA,IAClB,0BAA0B;AAAA,IAC1B,cAAc;AAAA,IACd,kBAAkB;AAAA,IAClB,aAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,YAAc;AAAA,IACd,MAAQ;AAAA,EACV;AAAA,EACA,WAAa;AAAA,IACX,mCAAmC;AAAA,IACnC,yBAAyB;AAAA,EAC3B;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -5,17 +5,17 @@ import {
|
|
|
5
5
|
TextInput,
|
|
6
6
|
getInkInstanceForStdout,
|
|
7
7
|
performConnectionTest
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-MTNFSTSP.js";
|
|
9
9
|
import {
|
|
10
10
|
getWindowedList
|
|
11
11
|
} from "./chunk-YK3ZQM3C.js";
|
|
12
12
|
import {
|
|
13
13
|
useExitOnCtrlCD
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-GAURYXBG.js";
|
|
15
15
|
import {
|
|
16
16
|
Doctor,
|
|
17
17
|
KEYPRESS_PRIORITY
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-U5M5EV7S.js";
|
|
19
19
|
import {
|
|
20
20
|
wrapLines
|
|
21
21
|
} from "./chunk-7FPYAZAS.js";
|
|
@@ -32,11 +32,11 @@ import {
|
|
|
32
32
|
useKeypress,
|
|
33
33
|
withEphemeralAlternateScreen,
|
|
34
34
|
writeToStdout
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-UNMVGIEM.js";
|
|
36
36
|
import {
|
|
37
37
|
formatValidationResult,
|
|
38
38
|
validatePluginOrMarketplacePath
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-ZTEJXST7.js";
|
|
40
40
|
import {
|
|
41
41
|
addMarketplace,
|
|
42
42
|
disableSkillPlugin,
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
refreshMarketplaceAsync,
|
|
51
51
|
removeMarketplace,
|
|
52
52
|
uninstallSkillPlugin
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-3WLJNJSS.js";
|
|
54
54
|
import {
|
|
55
55
|
DEFAULT_OUTPUT_STYLE,
|
|
56
56
|
getAvailableOutputStyles,
|
|
@@ -62,14 +62,14 @@ import {
|
|
|
62
62
|
listAllKodeAgentSessions,
|
|
63
63
|
listKodeAgentSessions,
|
|
64
64
|
resolveResumeSessionIdentifier
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-5MQQUH4D.js";
|
|
66
66
|
import {
|
|
67
67
|
getCustomCommandDirectories,
|
|
68
68
|
hasCustomCommands,
|
|
69
69
|
loadCustomCommands,
|
|
70
70
|
refreshCustomCommandWatcher,
|
|
71
71
|
reloadCustomCommandsForSession
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-HABXSZIY.js";
|
|
73
73
|
import {
|
|
74
74
|
Divider,
|
|
75
75
|
ScreenFrame
|
|
@@ -88,7 +88,7 @@ import {
|
|
|
88
88
|
listBackgroundAgentTaskSnapshots,
|
|
89
89
|
listResolvedLspServers,
|
|
90
90
|
resolveExecutableFromEnv
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-USRQVHYN.js";
|
|
92
92
|
import {
|
|
93
93
|
addNotification,
|
|
94
94
|
clearNotifications,
|
|
@@ -99,16 +99,16 @@ import {
|
|
|
99
99
|
resetFileFreshnessSession,
|
|
100
100
|
subscribeNotifications,
|
|
101
101
|
triggerModelConfigChange
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-2NGYIYTT.js";
|
|
103
103
|
import {
|
|
104
104
|
clearAgentCache,
|
|
105
105
|
getActiveAgents,
|
|
106
106
|
getAllAgents
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-KRQX2YAN.js";
|
|
108
108
|
import {
|
|
109
109
|
loadKodeAgentSessionMessages,
|
|
110
110
|
loadKodeAgentSessionMessagesForResume
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-2EAA62U6.js";
|
|
112
112
|
import {
|
|
113
113
|
appendSessionCustomTitleRecord,
|
|
114
114
|
appendSessionJsonlFromMessage,
|
|
@@ -118,33 +118,33 @@ import {
|
|
|
118
118
|
getSessionLogFilePath,
|
|
119
119
|
getSessionStoreRoots,
|
|
120
120
|
sanitizeProjectNameForSessionStore
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-I7VZ4GGD.js";
|
|
122
122
|
import {
|
|
123
123
|
applyToolPermissionContextUpdateForConversationKey,
|
|
124
124
|
getBunShellSandboxPlan,
|
|
125
125
|
setPermissionMode
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-DQPWWE7E.js";
|
|
127
127
|
import {
|
|
128
128
|
clearContextCache,
|
|
129
129
|
getBranch,
|
|
130
130
|
getCodeStyle,
|
|
131
131
|
getContext,
|
|
132
132
|
getSystemPrompt
|
|
133
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-5QS3GMCU.js";
|
|
134
134
|
import {
|
|
135
135
|
getTodos,
|
|
136
136
|
resetReminderSession
|
|
137
|
-
} from "./chunk-
|
|
137
|
+
} from "./chunk-Q4LETTXN.js";
|
|
138
138
|
import {
|
|
139
139
|
setSessionId
|
|
140
140
|
} from "./chunk-UINOTNT3.js";
|
|
141
141
|
import {
|
|
142
142
|
queryLLM
|
|
143
|
-
} from "./chunk-
|
|
143
|
+
} from "./chunk-ZIMHV3DG.js";
|
|
144
144
|
import {
|
|
145
145
|
loadToolPermissionContextFromDisk,
|
|
146
146
|
persistToolPermissionUpdateToDisk
|
|
147
|
-
} from "./chunk-
|
|
147
|
+
} from "./chunk-64I4GZUZ.js";
|
|
148
148
|
import {
|
|
149
149
|
applyToolPermissionContextUpdate,
|
|
150
150
|
isPersistableToolPermissionDestination
|
|
@@ -159,7 +159,7 @@ import {
|
|
|
159
159
|
getMcpListChangedVersion,
|
|
160
160
|
getMcprcServerStatus,
|
|
161
161
|
listMCPServers
|
|
162
|
-
} from "./chunk-
|
|
162
|
+
} from "./chunk-X4BTBVLC.js";
|
|
163
163
|
import {
|
|
164
164
|
API_ERROR_MESSAGE_PREFIX,
|
|
165
165
|
createUserMessage,
|
|
@@ -182,20 +182,20 @@ import {
|
|
|
182
182
|
getDisableAllHooksState,
|
|
183
183
|
listHookConfigurations,
|
|
184
184
|
setDisableAllHooks
|
|
185
|
-
} from "./chunk-
|
|
185
|
+
} from "./chunk-73UYWYPL.js";
|
|
186
186
|
import {
|
|
187
187
|
getSessionPlugins
|
|
188
188
|
} from "./chunk-M7P3QNRU.js";
|
|
189
189
|
import {
|
|
190
190
|
getModelManager,
|
|
191
191
|
reloadModelManager
|
|
192
|
-
} from "./chunk-
|
|
192
|
+
} from "./chunk-OYRUYKZ4.js";
|
|
193
193
|
import {
|
|
194
194
|
debug
|
|
195
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-GQ5BR7LE.js";
|
|
196
196
|
import {
|
|
197
197
|
ensureRipgrepReady
|
|
198
|
-
} from "./chunk-
|
|
198
|
+
} from "./chunk-QFNRQTF5.js";
|
|
199
199
|
import {
|
|
200
200
|
ASCII_LOGO,
|
|
201
201
|
CACHE_PATHS,
|
|
@@ -210,7 +210,7 @@ import {
|
|
|
210
210
|
formatDate,
|
|
211
211
|
getPlanConversationKey,
|
|
212
212
|
logError
|
|
213
|
-
} from "./chunk-
|
|
213
|
+
} from "./chunk-YDQZK4JM.js";
|
|
214
214
|
import {
|
|
215
215
|
getCwd,
|
|
216
216
|
getOriginalCwd,
|
|
@@ -218,7 +218,7 @@ import {
|
|
|
218
218
|
} from "./chunk-5ARRC2T2.js";
|
|
219
219
|
import {
|
|
220
220
|
MACRO
|
|
221
|
-
} from "./chunk-
|
|
221
|
+
} from "./chunk-MSBD7AHV.js";
|
|
222
222
|
import {
|
|
223
223
|
getKodeAgentSessionId
|
|
224
224
|
} from "./chunk-SWQV4KSY.js";
|
|
@@ -3733,7 +3733,7 @@ async function createAndStoreApiKey(accessToken) {
|
|
|
3733
3733
|
}
|
|
3734
3734
|
saveGlobalConfig(config2);
|
|
3735
3735
|
try {
|
|
3736
|
-
const { resetAnthropicClient } = await import("./llm-
|
|
3736
|
+
const { resetAnthropicClient } = await import("./llm-4SNM4IDE.js");
|
|
3737
3737
|
resetAnthropicClient();
|
|
3738
3738
|
} catch {
|
|
3739
3739
|
}
|
|
@@ -4429,7 +4429,7 @@ async function refreshPluginRuntimeFromInstalls() {
|
|
|
4429
4429
|
const existingRoots = getSessionPlugins().map((p) => p.rootDir);
|
|
4430
4430
|
const dirs = Array.from(/* @__PURE__ */ new Set([...existingRoots, ...installedRoots]));
|
|
4431
4431
|
if (dirs.length === 0) return [];
|
|
4432
|
-
const { configureSessionPlugins } = await import("./pluginRuntime-
|
|
4432
|
+
const { configureSessionPlugins } = await import("./pluginRuntime-4GPEUR45.js");
|
|
4433
4433
|
const { errors } = await configureSessionPlugins({ pluginDirs: dirs });
|
|
4434
4434
|
return errors;
|
|
4435
4435
|
}
|
|
@@ -5436,7 +5436,7 @@ async function call(onDone, context) {
|
|
|
5436
5436
|
ModelConfig,
|
|
5437
5437
|
{
|
|
5438
5438
|
onClose: () => {
|
|
5439
|
-
import("./model-
|
|
5439
|
+
import("./model-22KSMIFJ.js").then(({ reloadModelManager: reloadModelManager2 }) => {
|
|
5440
5440
|
reloadModelManager2();
|
|
5441
5441
|
triggerModelConfigChange();
|
|
5442
5442
|
onDone();
|
|
@@ -7175,7 +7175,7 @@ async function refreshPluginRuntimeFromInstalls2() {
|
|
|
7175
7175
|
const existingRoots = getSessionPlugins().map((p) => p.rootDir);
|
|
7176
7176
|
const dirs = Array.from(/* @__PURE__ */ new Set([...existingRoots, ...installedRoots]));
|
|
7177
7177
|
if (dirs.length === 0) return [];
|
|
7178
|
-
const { configureSessionPlugins } = await import("./pluginRuntime-
|
|
7178
|
+
const { configureSessionPlugins } = await import("./pluginRuntime-4GPEUR45.js");
|
|
7179
7179
|
const { errors } = await configureSessionPlugins({ pluginDirs: dirs });
|
|
7180
7180
|
return errors;
|
|
7181
7181
|
}
|
|
@@ -8023,7 +8023,7 @@ var refreshCommands = {
|
|
|
8023
8023
|
async call(_, context) {
|
|
8024
8024
|
try {
|
|
8025
8025
|
await reloadCustomCommandsForSession();
|
|
8026
|
-
const { getCommands: getCommands2 } = await import("./registry-
|
|
8026
|
+
const { getCommands: getCommands2 } = await import("./registry-R3N7PM3V.js");
|
|
8027
8027
|
const commands = await getCommands2();
|
|
8028
8028
|
let projectCommands = 0;
|
|
8029
8029
|
let userCommands = 0;
|
|
@@ -11388,7 +11388,7 @@ Key principles for your system prompts:
|
|
|
11388
11388
|
Remember: The agents you create should be autonomous experts capable of handling their designated tasks with minimal additional guidance. Your system prompts are their complete operational manual.
|
|
11389
11389
|
`;
|
|
11390
11390
|
async function generateAgentWithModel(prompt, options) {
|
|
11391
|
-
const { queryModel } = await import("./llm-
|
|
11391
|
+
const { queryModel } = await import("./llm-4SNM4IDE.js");
|
|
11392
11392
|
const existing = (options?.existingIdentifiers ?? []).filter(Boolean);
|
|
11393
11393
|
const existingClause = existing.length > 0 ? `
|
|
11394
11394
|
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
shouldEnterAlternateScreen,
|
|
8
8
|
terminalCapabilityManager,
|
|
9
9
|
useKeypress
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UNMVGIEM.js";
|
|
11
11
|
import {
|
|
12
12
|
ScreenFrame
|
|
13
13
|
} from "./chunk-5LBRVQT5.js";
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
import {
|
|
18
18
|
describeToolPermissionRuleSource,
|
|
19
19
|
findUnreachablePermissionRules
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-DQPWWE7E.js";
|
|
21
21
|
import {
|
|
22
22
|
getTheme
|
|
23
23
|
} from "./chunk-HDVL5VTM.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
debug
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GQ5BR7LE.js";
|
|
4
4
|
import {
|
|
5
5
|
CACHE_PATHS,
|
|
6
6
|
DATE
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YDQZK4JM.js";
|
|
8
8
|
|
|
9
9
|
// apps/cli/src/utils/stdio.ts
|
|
10
10
|
import { mkdirSync, writeFileSync } from "node:fs";
|
|
@@ -11,14 +11,14 @@ import {
|
|
|
11
11
|
recordFileEdit,
|
|
12
12
|
recordFileRead,
|
|
13
13
|
writeTextContent
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-2NGYIYTT.js";
|
|
15
15
|
import {
|
|
16
16
|
hasReadPermission,
|
|
17
17
|
hasWritePermission
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-DQPWWE7E.js";
|
|
19
19
|
import {
|
|
20
20
|
emitReminderEvent
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-Q4LETTXN.js";
|
|
22
22
|
import {
|
|
23
23
|
createAssistantMessage
|
|
24
24
|
} from "./chunk-L2LWCVUF.js";
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
import {
|
|
35
35
|
getKodeBaseDir,
|
|
36
36
|
logError
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-YDQZK4JM.js";
|
|
38
38
|
import {
|
|
39
39
|
getCwd
|
|
40
40
|
} from "./chunk-5ARRC2T2.js";
|