@deveco-test/deveco-code 0.3.0-1.2 → 0.3.0-19.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,49 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.2.0 (2026-09-20)
4
+
5
+ ### DevEco Code 核心
6
+
7
+ #### 新特性
8
+
9
+ - 支持第三方 Provider 直接接入使用,DevEco Code内置模型改用使用账号登录与实名认证(`c6f4854`)
10
+ - worktree 特性默认开启(`c97716f`)
11
+ - 向生成 `.ets` 代码的 agent 注入 ArkTS/ArkUI 代码规范(`fc6488e`)
12
+ - 支持在非空目录中安全创建项目(`884c5ff`)
13
+ - 文档检索命令统一经由内置 CLI 代理(`1d76bfd`)
14
+
15
+ #### 优化
16
+
17
+ - 构建、运行、日志能力收敛至内置 DevEco CLI,统一由 `devecocli` 承接,新增日志清理、`--tail` 校验、创建冲突检测与模拟器自动启动(`3f6eb64`、`559922d`、`1d60720`)
18
+ - 更新 UI 验证 MCP(`b24c309`)
19
+
20
+ #### 缺陷修复
21
+
22
+ - 修复自动启动模拟器后未等待就绪即运行导致阻塞(`5473f6d`)
23
+ - 恢复内置 CLI 技能加载(`2574319`)
24
+ - 修复 Windows 下 Bun 虚拟路径识别(`9cb1dc2`)
25
+ - 修复日志清理未校验目标设备、失败被误报为成功(`8bc95e6`)
26
+ - 修复文档预览截断后无法读取完整内容(`e65b278`)
27
+ - 修复 goal 模式文档检索范围与 build 模式不一致(`f71cc15`)
28
+ - 快照排除 `.codegenie` 目录(`431d772`)
29
+ - 修复 trace 上报字段因空值被平台丢弃(`e5bc1fa`)
30
+ - 升级 Bun 至 1.4.2,修复 pty 状态卡在运行中、SSE 超时未捕获异常(`aeb4536`)
31
+ - 修复自动合并工作流在合并失败时仍提示成功(`9d90028`)
32
+
33
+ #### 文档
34
+
35
+ - 对齐内置 CLI 技能文档(`29799f4`)
36
+
37
+ ### TUI 终端界面
38
+
39
+ #### 新特性
40
+
41
+ - 会话滚动至非边缘时显示跳转提示,点击可跳至最早/最新消息并重新吸附(`8f6bf1a`)
42
+
43
+ #### 缺陷修复
44
+
45
+ - 修复 token 耗尽时按 Esc 导致上下文丢失(`eee4fce`)
46
+
3
47
  ## v0.1.12 (2026-09-04)
4
48
 
5
49
  ### DevEco Code 核心
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "scripts": {
7
7
  "postinstall": "bun ./postinstall.mjs || node ./postinstall.mjs"
8
8
  },
9
- "version": "0.3.0-1.2",
9
+ "version": "0.3.0-19.1",
10
10
  "license": "MIT",
11
11
  "files": [
12
12
  "bin/**/*",
@@ -16,12 +16,13 @@
16
16
  "CHANGELOG.md"
17
17
  ],
18
18
  "optionalDependencies": {
19
- "@deveco-test/deveco-code-darwin-arm64": "0.3.0-1.2",
20
- "@deveco-test/deveco-code-darwin-x64": "0.3.0-1.2",
21
- "@deveco-test/deveco-code-windows-x64-baseline": "0.3.0-1.2",
22
- "@deveco-test/deveco-code-windows-x64": "0.3.0-1.2"
19
+ "@deveco-test/deveco-code-windows-x64": "0.3.0-19.1",
20
+ "@deveco-test/deveco-code-windows-x64-baseline": "0.3.0-19.1",
21
+ "@deveco-test/deveco-code-darwin-x64": "0.3.0-19.1",
22
+ "@deveco-test/deveco-code-darwin-arm64": "0.3.0-19.1"
23
23
  },
24
24
  "dependencies": {
25
- "@deveco/deveco-cli": "npm:@deveco-test/deveco-cli@1.3.3-Test.2"
25
+ "@deveco/deveco-cli": "1.3.4",
26
+ "homegraph": "latest"
26
27
  }
27
28
  }
package/postinstall.mjs CHANGED
@@ -29,10 +29,14 @@ const base = `${scope}/deveco-code-${platform}-${arch}`
29
29
  const sourceBinary = platform === "windows" ? "deveco.exe" : "deveco"
30
30
  const targetBinary = path.join(__dirname, "bin", "deveco.exe")
31
31
  const devecoCliPackageName = "@deveco/deveco-cli"
32
+ const homegraphPackageName = "homegraph"
33
+ const HOMEGRAPH_ENTRY_REL = path.join("dist", "bin", "homegraph.js")
32
34
 
33
35
  function resolveLocalDevecoCliEntry() {
34
36
  const packageJsonPath = require.resolve(`${devecoCliPackageName}/package.json`)
35
- const entry = path.join(path.dirname(packageJsonPath), "dist", "cli.js")
37
+ const root = path.dirname(packageJsonPath)
38
+ const pkg = JSON.parse(fs.readFileSync(packageJsonPath, "utf8"))
39
+ const entry = path.join(root, pkg.bin?.devecocli ?? "dist/cli.js")
36
40
  if (fs.existsSync(entry)) return entry
37
41
  throw new Error(`Local dependency "${devecoCliPackageName}" has no CLI entry at ${entry}.`)
38
42
  }
@@ -43,6 +47,23 @@ function writeDevecoCliEntryMarker(installRoot) {
43
47
  fs.writeFileSync(marker, `${resolveLocalDevecoCliEntry()}\n`, "utf8")
44
48
  }
45
49
 
50
+ function resolveLocalHomegraphEntry() {
51
+ const packageJsonPath = require.resolve(`${homegraphPackageName}/package.json`)
52
+ const entry = path.join(path.dirname(packageJsonPath), HOMEGRAPH_ENTRY_REL)
53
+ if (fs.existsSync(entry)) return entry
54
+ throw new Error(`Local dependency "${homegraphPackageName}" has no entry at ${entry}.`)
55
+ }
56
+
57
+ function writeHomegraphEntryMarker(installRoot) {
58
+ try {
59
+ const marker = path.join(installRoot, "vendor", ".homegraph-entry")
60
+ fs.mkdirSync(path.dirname(marker), { recursive: true })
61
+ fs.writeFileSync(marker, `${resolveLocalHomegraphEntry()}\n`, "utf8")
62
+ } catch (error) {
63
+ console.warn(`[homegraph] postinstall: ${error instanceof Error ? error.message : String(error)}`)
64
+ }
65
+ }
66
+
46
67
  function supportsAvx2() {
47
68
  if (arch !== "x64") return false
48
69
 
@@ -216,6 +237,9 @@ function installPackage(name) {
216
237
  const packageDir = path.join(temp, "node_modules", name)
217
238
  copyBinary(path.join(packageDir, "bin", sourceBinary), targetBinary)
218
239
  copyVendor(packageDir)
240
+ writeDevecoCliEntryMarker(packageDir)
241
+ writeHomegraphEntryMarker(packageDir)
242
+ writeHomegraphEntryMarker(__dirname)
219
243
  return true
220
244
  } finally {
221
245
  fs.rmSync(temp, { recursive: true, force: true })
@@ -245,6 +269,7 @@ function verifyBinary() {
245
269
 
246
270
  function main() {
247
271
  writeDevecoCliEntryMarker(__dirname)
272
+ writeHomegraphEntryMarker(__dirname)
248
273
 
249
274
  for (const name of packageNames()) {
250
275
  try {
@@ -252,6 +277,7 @@ function main() {
252
277
  copyBinary(resolveBinary(name), targetBinary)
253
278
  copyVendor(packageDir)
254
279
  writeDevecoCliEntryMarker(packageDir)
280
+ writeHomegraphEntryMarker(packageDir)
255
281
  if (verifyBinary()) return
256
282
  } catch {
257
283
  if (installPackage(name) && verifyBinary()) return