deepcode-ai 1.1.8 → 1.1.10
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 +9 -26
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2085,32 +2085,7 @@ var DeepCodeConfigSchema = z.object({
|
|
|
2085
2085
|
blacklist: z.array(z.string()).default([])
|
|
2086
2086
|
}).strict().default({}),
|
|
2087
2087
|
lsp: z.object({
|
|
2088
|
-
servers: z.array(LspServerConfigSchema).default([
|
|
2089
|
-
{
|
|
2090
|
-
languages: ["typescript", "javascript"],
|
|
2091
|
-
command: "typescript-language-server",
|
|
2092
|
-
args: ["--stdio"],
|
|
2093
|
-
fileExtensions: [".ts", ".tsx", ".js", ".jsx", ".mjs", ".cjs"]
|
|
2094
|
-
},
|
|
2095
|
-
{
|
|
2096
|
-
languages: ["python"],
|
|
2097
|
-
command: "pylsp",
|
|
2098
|
-
args: [],
|
|
2099
|
-
fileExtensions: [".py"]
|
|
2100
|
-
},
|
|
2101
|
-
{
|
|
2102
|
-
languages: ["rust"],
|
|
2103
|
-
command: "rust-analyzer",
|
|
2104
|
-
args: [],
|
|
2105
|
-
fileExtensions: [".rs"]
|
|
2106
|
-
},
|
|
2107
|
-
{
|
|
2108
|
-
languages: ["go"],
|
|
2109
|
-
command: "gopls",
|
|
2110
|
-
args: [],
|
|
2111
|
-
fileExtensions: [".go"]
|
|
2112
|
-
}
|
|
2113
|
-
])
|
|
2088
|
+
servers: z.array(LspServerConfigSchema).default([])
|
|
2114
2089
|
}).strict().default({}),
|
|
2115
2090
|
github: z.object({
|
|
2116
2091
|
token: z.string().optional(),
|
|
@@ -10503,6 +10478,14 @@ async function runCommand(input, options) {
|
|
|
10503
10478
|
configPath: options.config,
|
|
10504
10479
|
interactive: Boolean(options.yes)
|
|
10505
10480
|
});
|
|
10481
|
+
runtime.events.on("app:warn", (payload) => {
|
|
10482
|
+
process.stderr.write(`warning: ${payload.message}
|
|
10483
|
+
`);
|
|
10484
|
+
});
|
|
10485
|
+
runtime.events.on("app:error", (payload) => {
|
|
10486
|
+
process.stderr.write(`error: ${payload.error.message}
|
|
10487
|
+
`);
|
|
10488
|
+
});
|
|
10506
10489
|
if (options.yes) {
|
|
10507
10490
|
runtime.events.on("approval:request", (request) => {
|
|
10508
10491
|
runtime.events.emit("approval:decision", {
|