dskcode 0.1.33 → 0.1.34
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/index.js +87 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2098,6 +2098,79 @@ function TodoListPanel({ items }) {
|
|
|
2098
2098
|
] });
|
|
2099
2099
|
}
|
|
2100
2100
|
|
|
2101
|
+
// package.json
|
|
2102
|
+
var package_default = {
|
|
2103
|
+
name: "dskcode",
|
|
2104
|
+
version: "0.1.34",
|
|
2105
|
+
repository: {
|
|
2106
|
+
type: "git",
|
|
2107
|
+
url: "git+https://github.com/Awu12277/deepseek-agent-cli/tree/main"
|
|
2108
|
+
},
|
|
2109
|
+
keywords: [
|
|
2110
|
+
"cli",
|
|
2111
|
+
"ink",
|
|
2112
|
+
"commander",
|
|
2113
|
+
"deepseek",
|
|
2114
|
+
"asciichart"
|
|
2115
|
+
],
|
|
2116
|
+
description: "A DeepSeek-native AI coding agent for your terminal",
|
|
2117
|
+
type: "module",
|
|
2118
|
+
bin: {
|
|
2119
|
+
dskcode: "dist/index.js"
|
|
2120
|
+
},
|
|
2121
|
+
exports: {
|
|
2122
|
+
".": {
|
|
2123
|
+
import: "./dist/index.js",
|
|
2124
|
+
types: "./dist/index.d.ts"
|
|
2125
|
+
}
|
|
2126
|
+
},
|
|
2127
|
+
files: [
|
|
2128
|
+
"dist",
|
|
2129
|
+
"README.md",
|
|
2130
|
+
"LICENSE"
|
|
2131
|
+
],
|
|
2132
|
+
scripts: {
|
|
2133
|
+
dev: "tsup --watch",
|
|
2134
|
+
build: "tsup",
|
|
2135
|
+
"type-check": "tsc --noEmit",
|
|
2136
|
+
lint: "oxlint src/ tests/",
|
|
2137
|
+
"lint:fix": "oxlint --fix src/ tests/",
|
|
2138
|
+
format: "prettier --write src/ tests/",
|
|
2139
|
+
"format:check": "prettier --check src/ tests/",
|
|
2140
|
+
test: "vitest run",
|
|
2141
|
+
"test:watch": "vitest",
|
|
2142
|
+
"test:coverage": "vitest run --coverage",
|
|
2143
|
+
prepublishOnly: "npm run build && npm run test"
|
|
2144
|
+
},
|
|
2145
|
+
dependencies: {
|
|
2146
|
+
asciichart: "^1.5.25",
|
|
2147
|
+
chalk: "^5.6.2",
|
|
2148
|
+
commander: "^13.1.0",
|
|
2149
|
+
handlebars: "^4.7.9",
|
|
2150
|
+
ink: "^7.1.0",
|
|
2151
|
+
"ink-spinner": "^5.0.0",
|
|
2152
|
+
"ink-text-input": "^6.0.0",
|
|
2153
|
+
react: "^19.2.7"
|
|
2154
|
+
},
|
|
2155
|
+
devDependencies: {
|
|
2156
|
+
"@types/node": "^22.14.0",
|
|
2157
|
+
"@types/react": "^19.2.17",
|
|
2158
|
+
oxlint: "^1.71.0",
|
|
2159
|
+
"oxlint-tsgolint": "^0.23.0",
|
|
2160
|
+
prettier: "^3.5.3",
|
|
2161
|
+
tsup: "^8.4.0",
|
|
2162
|
+
typescript: "^5.8.3",
|
|
2163
|
+
vitest: "^3.1.1"
|
|
2164
|
+
},
|
|
2165
|
+
engines: {
|
|
2166
|
+
node: ">=22.0.0"
|
|
2167
|
+
},
|
|
2168
|
+
license: "MIT"
|
|
2169
|
+
};
|
|
2170
|
+
|
|
2171
|
+
// src/utils/version.ts
|
|
2172
|
+
var VERSION = package_default.version;
|
|
2173
|
+
|
|
2101
2174
|
// src/provider/registry.ts
|
|
2102
2175
|
var ProviderRegistry = class {
|
|
2103
2176
|
#factories = /* @__PURE__ */ new Map();
|
|
@@ -3954,7 +4027,7 @@ var Session = class _Session {
|
|
|
3954
4027
|
};
|
|
3955
4028
|
});
|
|
3956
4029
|
for (const item of results.items) {
|
|
3957
|
-
const todoSnapshot = item.name.startsWith("todo_") && this.#todoList ? this.#todoList.items : void 0;
|
|
4030
|
+
const todoSnapshot = item.name.startsWith("todo_") && this.#todoList ? this.#todoList.items.map((it) => ({ ...it })) : void 0;
|
|
3958
4031
|
yield {
|
|
3959
4032
|
type: "tool_result",
|
|
3960
4033
|
name: item.name,
|
|
@@ -5918,7 +5991,7 @@ registerCommand("/help", {
|
|
|
5918
5991
|
registerCommand("/clear", { desc: "\u6E05\u7A7A\u5BF9\u8BDD\u5386\u53F2", handler: () => ({ kind: "clear" }) });
|
|
5919
5992
|
registerCommand("/version", {
|
|
5920
5993
|
desc: "\u663E\u793A\u7248\u672C\u4FE1\u606F",
|
|
5921
|
-
handler: () => ({ kind: "text", content:
|
|
5994
|
+
handler: () => ({ kind: "text", content: `dskcode v${VERSION}` })
|
|
5922
5995
|
});
|
|
5923
5996
|
registerCommand("/model", {
|
|
5924
5997
|
desc: "\u5207\u6362\u6A21\u578B",
|
|
@@ -6739,6 +6812,7 @@ function ChatSession({
|
|
|
6739
6812
|
clearTimeout(rewindHintTimerRef.current);
|
|
6740
6813
|
rewindHintTimerRef.current = null;
|
|
6741
6814
|
}
|
|
6815
|
+
setTodoSnapshot([]);
|
|
6742
6816
|
const session = sessionRef.current;
|
|
6743
6817
|
const abortController = new AbortController();
|
|
6744
6818
|
abortRef.current = abortController;
|
|
@@ -6908,10 +6982,16 @@ function ChatSession({
|
|
|
6908
6982
|
}, [isStreaming, externalCostTracker]);
|
|
6909
6983
|
return /* @__PURE__ */ jsxs10(Box10, { flexDirection: "column", paddingLeft: 1, paddingRight: 1, children: [
|
|
6910
6984
|
!hasConversationStarted && /* @__PURE__ */ jsxs10(Box10, { flexDirection: "row", marginBottom: 1, children: [
|
|
6911
|
-
/* @__PURE__ */
|
|
6912
|
-
|
|
6913
|
-
|
|
6914
|
-
|
|
6985
|
+
/* @__PURE__ */ jsxs10(Box10, { flexDirection: "column", marginRight: 4, children: [
|
|
6986
|
+
LOGO_LINES.map((line, i) => {
|
|
6987
|
+
const colorIndex = (i + offset) % CYBER_PALETTE.length;
|
|
6988
|
+
return /* @__PURE__ */ jsx10(Box10, { children: /* @__PURE__ */ jsx10(Text11, { bold: true, color: CYBER_PALETTE[colorIndex], children: line }) }, i);
|
|
6989
|
+
}),
|
|
6990
|
+
/* @__PURE__ */ jsx10(Box10, { marginTop: 1, children: /* @__PURE__ */ jsxs10(Text11, { color: "#808080", children: [
|
|
6991
|
+
" \u{1F4E6} v",
|
|
6992
|
+
VERSION
|
|
6993
|
+
] }) })
|
|
6994
|
+
] }),
|
|
6915
6995
|
/* @__PURE__ */ jsxs10(Box10, { flexDirection: "column", justifyContent: "center", children: [
|
|
6916
6996
|
/* @__PURE__ */ jsxs10(Text11, { color: "#00ff41", children: [
|
|
6917
6997
|
" \u2714 ",
|
|
@@ -8790,7 +8870,7 @@ var SUBCOMMANDS = ["chat", "run", "setup", "init", "completion", "game", "stock"
|
|
|
8790
8870
|
function createCli() {
|
|
8791
8871
|
const program2 = new Command();
|
|
8792
8872
|
program2.exitOverride();
|
|
8793
|
-
program2.name("dskcode").description("\u57FA\u4E8E DeepSeek \u7684 AI \u7F16\u7A0B\u52A9\u624B\u7EC8\u7AEF\u5DE5\u5177").version(
|
|
8873
|
+
program2.name("dskcode").description("\u57FA\u4E8E DeepSeek \u7684 AI \u7F16\u7A0B\u52A9\u624B\u7EC8\u7AEF\u5DE5\u5177").version(VERSION, "-V, --version", "\u663E\u793A\u7248\u672C\u53F7").option("--verbose", "\u5F00\u542F\u8BE6\u7EC6\u65E5\u5FD7\u8F93\u51FA").option("--config <path>", "\u6307\u5B9A\u914D\u7F6E\u6587\u4EF6\u8DEF\u5F84");
|
|
8794
8874
|
program2.helpInformation = () => customHelp(program2);
|
|
8795
8875
|
program2.hook("preAction", async (thisCommand, actionCommand) => {
|
|
8796
8876
|
const ctx = await loadConfigMiddleware.call(thisCommand);
|