@dipoleml/dcode-cli 1.2.1 → 1.2.3

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 (31) hide show
  1. package/dist/dcode.cjs +2214 -1891
  2. package/dist/packages/browser-use-plugin/.dcode-plugin/plugin.json +8 -8
  3. package/dist/packages/dcode-cua-plugin/.dcode-plugin/plugin.json +10 -0
  4. package/dist/packages/dcode-cua-plugin/docs/computer-use.md +470 -0
  5. package/dist/packages/dcode-cua-plugin/package.json +12 -0
  6. package/dist/packages/dcode-cua-plugin/scripts/bump-dcode-cua-producer.mjs +305 -0
  7. package/dist/packages/dcode-cua-plugin/scripts/check-cua-baseline.mjs +155 -0
  8. package/dist/packages/dcode-cua-plugin/scripts/check-sdk.mjs +4 -0
  9. package/dist/packages/dcode-cua-plugin/scripts/check-version-coherence.mjs +478 -0
  10. package/dist/packages/dcode-cua-plugin/scripts/computer-use-client.mjs +1208 -0
  11. package/dist/packages/dcode-cua-plugin/scripts/resolve-pnpm-invocation.mjs +26 -0
  12. package/dist/packages/dcode-cua-plugin/scripts/sync-cache.mjs +116 -0
  13. package/dist/packages/dcode-cua-plugin/scripts/sync-skill-from-dcode-cua.mjs +115 -0
  14. package/dist/packages/dcode-cua-plugin/skills/computer-use/SKILL.md +306 -0
  15. package/dist/packages/node-repl-host/dist/mcp/server.js +3 -3
  16. package/dist/packages/node-repl-host/package.json +1 -1
  17. package/dist/provider/dcode-builtin.json +6748 -6748
  18. package/node_modules/@dcode/contracts/dist/events/event-reducer-helpers.d.ts +1 -1
  19. package/node_modules/@dcode/contracts/dist/events/event-reducer-helpers.js +5 -1
  20. package/node_modules/@dcode/contracts/dist/events/event-reducer.js +26 -5
  21. package/node_modules/@dcode/contracts/dist/interfaces/session.port.d.ts +5 -1
  22. package/node_modules/@dcode/contracts/dist/tools/bash.js +4 -1
  23. package/node_modules/@dcode/i18n/dist/locales/en-US.js +11 -23
  24. package/node_modules/@dcode/i18n/dist/locales/fr-CA.js +9 -21
  25. package/node_modules/@dcode/i18n/dist/types.d.ts +0 -12
  26. package/node_modules/@dcode/model-option-map/package.json +1 -1
  27. package/node_modules/@dcode/shared/package.json +1 -1
  28. package/node_modules/@dcode/tui/dist/app-model-ref.js +9 -2
  29. package/node_modules/@dcode/tui/dist/index.js +57 -65
  30. package/node_modules/@dcode/tui/dist/theme/defaults.js +21 -15
  31. package/package.json +3 -3
@@ -1,13 +1,19 @@
1
1
  export const DEFAULT_TUI_THEME_MODE = "dark";
2
+ // 品牌蓝族(THE BLUE BRAND COLOUR HEX CODE):#0050df 是 Dipole ML Inc. 唯一的品牌蓝。
3
+ // 深色底(#0f1419)上 #0050df 作正文色对比不足,因此结构色(primary/borderActive)用
4
+ // 品牌本色,前景色(accent 及 markdown/syntax 强调)用其深色模式浅色变体 #7fb0ff。
5
+ const BRAND_BLUE = "#0050df";
6
+ const BRAND_BLUE_DARK_FG = "#7fb0ff";
7
+ const BRAND_BLUE_DARK_SOFT = "#9db8ff";
2
8
  export const DARK_TUI_THEME = {
3
9
  mode: "dark",
4
- primary: "#7dd3fc",
10
+ primary: BRAND_BLUE,
5
11
  secondary: "#c4b5fd",
6
- accent: "#7dd3fc",
12
+ accent: BRAND_BLUE_DARK_FG,
7
13
  error: "#fca5a5",
8
14
  warning: "#fbbf24",
9
15
  success: "#86efac",
10
- info: "#93c5fd",
16
+ info: BRAND_BLUE_DARK_SOFT,
11
17
  text: "#e5e7eb",
12
18
  textMuted: "#94a3b8",
13
19
  selectedListItemText: "#f8fafc",
@@ -17,7 +23,7 @@ export const DARK_TUI_THEME = {
17
23
  backgroundMenu: "#161b22",
18
24
  backgroundMessageUser: "#30363d",
19
25
  border: "#3b4450",
20
- borderActive: "#7dd3fc",
26
+ borderActive: BRAND_BLUE,
21
27
  borderSubtle: "#26313d",
22
28
  diffAdded: "#86efac",
23
29
  diffRemoved: "#fca5a5",
@@ -33,21 +39,21 @@ export const DARK_TUI_THEME = {
33
39
  diffRemovedLineNumberBg: "#7f1d1d",
34
40
  markdownText: "#e5e7eb",
35
41
  markdownHeading: "#e5e7eb",
36
- markdownLink: "#7dd3fc",
42
+ markdownLink: BRAND_BLUE_DARK_FG,
37
43
  markdownLinkText: "#86efac",
38
44
  markdownCode: "#86efac",
39
45
  markdownBlockQuote: "#fbbf24",
40
46
  markdownEmph: "#fbbf24",
41
47
  markdownStrong: "#e5e7eb",
42
48
  markdownHorizontalRule: "#3b4450",
43
- markdownListItem: "#7dd3fc",
44
- markdownListEnumeration: "#7dd3fc",
49
+ markdownListItem: BRAND_BLUE_DARK_FG,
50
+ markdownListEnumeration: BRAND_BLUE_DARK_FG,
45
51
  markdownImage: "#c4b5fd",
46
52
  markdownImageText: "#86efac",
47
53
  markdownCodeBlock: "#86efac",
48
54
  syntaxComment: "#94a3b8",
49
- syntaxKeyword: "#7dd3fc",
50
- syntaxFunction: "#7dd3fc",
55
+ syntaxKeyword: BRAND_BLUE_DARK_FG,
56
+ syntaxFunction: BRAND_BLUE_DARK_FG,
51
57
  syntaxVariable: "#e5e7eb",
52
58
  syntaxString: "#86efac",
53
59
  syntaxNumber: "#fbbf24",
@@ -58,9 +64,9 @@ export const DARK_TUI_THEME = {
58
64
  };
59
65
  export const LIGHT_TUI_THEME = {
60
66
  mode: "light",
61
- primary: "#0369a1",
67
+ primary: BRAND_BLUE,
62
68
  secondary: "#7c3aed",
63
- accent: "#0369a1",
69
+ accent: BRAND_BLUE,
64
70
  error: "#b91c1c",
65
71
  warning: "#a16207",
66
72
  success: "#15803d",
@@ -74,7 +80,7 @@ export const LIGHT_TUI_THEME = {
74
80
  backgroundMenu: "#ffffff",
75
81
  backgroundMessageUser: "#e0f2fe",
76
82
  border: "#cbd5e1",
77
- borderActive: "#0284c7",
83
+ borderActive: BRAND_BLUE,
78
84
  borderSubtle: "#e5e7eb",
79
85
  diffAdded: "#166534",
80
86
  diffRemoved: "#991b1b",
@@ -90,7 +96,7 @@ export const LIGHT_TUI_THEME = {
90
96
  diffRemovedLineNumberBg: "#fecaca",
91
97
  markdownText: "#111827",
92
98
  markdownHeading: "#111827",
93
- markdownLink: "#0369a1",
99
+ markdownLink: BRAND_BLUE,
94
100
  markdownLinkText: "#15803d",
95
101
  markdownCode: "#15803d",
96
102
  markdownBlockQuote: "#a16207",
@@ -103,8 +109,8 @@ export const LIGHT_TUI_THEME = {
103
109
  markdownImageText: "#15803d",
104
110
  markdownCodeBlock: "#15803d",
105
111
  syntaxComment: "#64748b",
106
- syntaxKeyword: "#0369a1",
107
- syntaxFunction: "#0369a1",
112
+ syntaxKeyword: BRAND_BLUE,
113
+ syntaxFunction: BRAND_BLUE,
108
114
  syntaxVariable: "#111827",
109
115
  syntaxString: "#15803d",
110
116
  syntaxNumber: "#a16207",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dipoleml/dcode-cli",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "DCode: the agentic coding CLI from DipoleML, powered by the raven model family.",
5
5
  "keywords": [
6
6
  "dcode",
@@ -122,8 +122,8 @@
122
122
  "dependencies": {
123
123
  "@dcode/contracts": "0.1.0",
124
124
  "@dcode/i18n": "0.1.0",
125
- "@dcode/model-option-map": "1.2.1",
126
- "@dcode/shared": "1.2.1",
125
+ "@dcode/model-option-map": "1.2.3",
126
+ "@dcode/shared": "1.2.3",
127
127
  "@dcode/tui": "0.1.0",
128
128
  "@mbears/opentui-core": "0.2.15",
129
129
  "@mbears/opentui-core-darwin-arm64": "0.2.15",