@chatcode/chatcode-cli 3.0.4-rc.2 → 3.0.4-rc.4

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.
Files changed (41) hide show
  1. package/README.i18n.yaml +2 -2
  2. package/README.md +2 -0
  3. package/README.zh.md +2 -0
  4. package/lib/{command-errors-CScdshCl.js → command-errors-BJ_ZWzUU.js} +12 -12
  5. package/lib/{command-trees-Dc17MYfV.js → command-trees-C9b7-bci.js} +2 -2
  6. package/lib/{component-identity-DFJD_d-P.js → component-identity-Jb1DYjke.js} +3 -3
  7. package/lib/{extension-events-qXmhzmHo.js → extension-events-DKX4LXOd.js} +20 -20
  8. package/lib/{host-access-B0CRAwsX.js → host-access-CMg6rsWt.js} +1 -1
  9. package/lib/{keymap-CIoVICBI.js → keymap-CrC4pSNH.js} +2 -2
  10. package/lib/{plugin-BKQsL2xn.js → plugin-CmyMCGfb.js} +350 -339
  11. package/lib/{scenes-BRf-zMpF.js → scenes-Cil9RnwU.js} +3 -3
  12. package/lib/{settings-sections-4gMhveN_.js → settings-sections-jVCqXwdH.js} +3 -3
  13. package/lib/{statusBarSettings-CnmdSHkO.js → statusBarSettings-DNoBH3Cq.js} +3 -3
  14. package/lib/{themes-Ce97Zsri.js → themes-BdgeY3It.js} +12 -12
  15. package/lib/tui-compat-command-trees.js +1 -1
  16. package/lib/tui-compat-extensions.js +3 -3
  17. package/lib/tui-compat-plugin-host.js +5 -5
  18. package/lib/tui-compat-scenes.js +1 -1
  19. package/lib/tui-compat-settings-sections.js +1 -1
  20. package/lib/tui-compat-working-activity.js +1 -1
  21. package/lib/tui-compat-workspaces.js +1 -1
  22. package/lib/tui-compat.js +5 -5
  23. package/lib/{workspaces-1xrm-e3V.js → workspaces-DOatJRYr.js} +2 -2
  24. package/package.json +28 -28
  25. package/runtime/manifest.json +2 -2
  26. package/runtime/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js +2 -1
  27. package/runtime/node_modules/@deepseek-ai/dsh-atomic-write/lib/index.js +271 -51
  28. package/runtime/node_modules/@deepseek-ai/dsh-atomic-write/lib/types/index.d.ts +19 -7
  29. package/runtime/node_modules/@deepseek-ai/dsh-atomic-write/lib/types/linux-lock.d.ts +19 -0
  30. package/runtime/node_modules/@deepseek-ai/dsh-atomic-write/lib/types/linux-native.d.ts +12 -0
  31. package/runtime/node_modules/@deepseek-ai/dsh-atomic-write/lib/types/windows-lock.d.ts +7 -0
  32. package/runtime/node_modules/@deepseek-ai/dsh-atomic-write/package.json +4 -1
  33. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/client.js +2 -2
  34. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +1 -1
  35. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +1 -3
  36. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/adapter.d.ts +1 -1
  37. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/config.d.ts +3 -3
  38. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek-account/lib/types/config.d.ts +2 -2
  39. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/lib/types/config.d.ts +2 -2
  40. package/runtime/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/api-catalog.js +1 -1
  41. package/scripts/launch.mjs +8 -0
@@ -14,7 +14,7 @@ export declare const Config: z<Schemastery.ObjectS<NoInfer<{
14
14
  apiKeyEnv: z<string, string, "volatile-defined">;
15
15
  baseURL: z<string, string, "volatile">;
16
16
  thinking: z<"enabled" | "disabled", "enabled" | "disabled", "volatile">;
17
- reasoningEffort: z<"off" | "low" | "high" | "max", "off" | "low" | "high" | "max", "volatile">;
17
+ reasoningEffort: z<"low" | "off" | "high" | "max", "low" | "off" | "high" | "max", "volatile">;
18
18
  maxTokens: z<number, number, "volatile-defined">;
19
19
  defaultContextWindow: z<number, number, "volatile-defined">;
20
20
  models: z<NoInfer<import("@deepseek-ai/dsh-llm-deepseek").DeepSeekCatalogModel[]>, NoInfer<import("@deepseek-ai/dsh-llm-deepseek").DeepSeekCatalogModel[]>, "volatile-defined">;
@@ -34,7 +34,7 @@ export declare const Config: z<Schemastery.ObjectS<NoInfer<{
34
34
  apiKeyEnv: z<string, string, "volatile-defined">;
35
35
  baseURL: z<string, string, "volatile">;
36
36
  thinking: z<"enabled" | "disabled", "enabled" | "disabled", "volatile">;
37
- reasoningEffort: z<"off" | "low" | "high" | "max", "off" | "low" | "high" | "max", "volatile">;
37
+ reasoningEffort: z<"low" | "off" | "high" | "max", "low" | "off" | "high" | "max", "volatile">;
38
38
  maxTokens: z<number, number, "volatile-defined">;
39
39
  defaultContextWindow: z<number, number, "volatile-defined">;
40
40
  models: z<NoInfer<import("@deepseek-ai/dsh-llm-deepseek").DeepSeekCatalogModel[]>, NoInfer<import("@deepseek-ai/dsh-llm-deepseek").DeepSeekCatalogModel[]>, "volatile-defined">;
@@ -4741,7 +4741,7 @@ export const TYPE_API = [
4741
4741
  },
4742
4742
  {
4743
4743
  name: 'CommandInputDescriptor',
4744
- declaration: 'export interface CommandInputDescriptor {\n readonly hint: string;\n readonly attachments?: boolean;\n}',
4744
+ declaration: 'export interface CommandInputDescriptor {\n readonly hint: string;\n readonly suggestions?: readonly {\n readonly value: string;\n readonly description: string;\n }[];\n readonly attachments?: boolean;\n}',
4745
4745
  },
4746
4746
  {
4747
4747
  name: 'CommandInvocation',
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  import { readFileSync } from 'node:fs'
4
+ import { enableCompileCache } from 'node:module'
4
5
  import { dirname, join, resolve } from 'node:path'
5
6
  import { fileURLToPath, pathToFileURL } from 'node:url'
6
7
  import { registerEmbeddedRuntime } from './register-embedded-runtime.mjs'
@@ -8,6 +9,13 @@ import { registerEmbeddedRuntime } from './register-embedded-runtime.mjs'
8
9
  const packageDir = resolve(dirname(fileURLToPath(import.meta.url)), '..')
9
10
  const manifest = JSON.parse(readFileSync(join(packageDir, 'package.json'), 'utf8'))
10
11
 
12
+ // Cache the installed module graph before its first import. Node owns cache
13
+ // permissions, NODE_COMPILE_CACHE and NODE_DISABLE_COMPILE_CACHE handling.
14
+ try { enableCompileCache() } catch (error) {
15
+ // A restricted filesystem must not prevent launching without the optional cache.
16
+ void error
17
+ }
18
+
11
19
  // Register before loading the CLI's static imports. Global installations may
12
20
  // belong to root; launching must not rewrite their dependency directories.
13
21
  if (!manifest.dependencies?.['@deepseek-ai/dsh-app-boot']?.startsWith('workspace:')) {