@deveco-test/deveco-code-darwin-arm64 0.4.0-TD.5.1 → 0.4.0-TD.5.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/CHANGELOG.md CHANGED
@@ -1,5 +1,50 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.2.6 (2026-11-19)
4
+
5
+ ### DevEco Code 核心
6
+
7
+ #### 缺陷修复
8
+
9
+ - 修复鸿蒙版本若干已知问题
10
+
11
+ ## v0.2.5 (2026-10-28)
12
+
13
+ ### DevEco Code 核心
14
+
15
+ #### 新特性
16
+
17
+ - 新增 MasterGo 设计稿转 ArkTS 能力,与 Pixso / Figma 共用 Fast / Full 工作流;自动选择接入方案,支持社区插件引导安装、本机配对、断线自动重连与后台取数(`ca4e90b8a8`、`eac6390a05`)
18
+ - 新增 `/analyze` 故障分析命令与 `dfx` 子代理,自动识别 AppFreeze / CppCrash / JSCrash 并给出修复建议,输出会话内摘要与独立 HTML 报告(`a690f2fdf6`)
19
+ - 登录成功后保存国家 / 地区码,供 DevEco Studio 读取同一用户的国别设置(`cc7a159dc7`)
20
+
21
+ #### 优化
22
+
23
+ - 设计稿转 ArkTS 技能更名为 `hmos-design-to-arkts`,Pixso / Figma 路径新增 MCP 依赖前置检查与安装引导(`99ccfbb878`)
24
+ - ArkTS 静态检查改由 `devecocli check arkts` 提供,移除内置 `arkts_check` 工具(`d04f53cbf6`)
25
+ - 补充 ArkTS 导航路由规则:路由表与 `.navDestination` 互斥、`loadContent` 路径须与 `main_pages.json` 注册一致、禁止通过 `AppStorage` 共享 `NavPathStack`;同步修正 `globalThis` 替换与 `loadContent` 示例措辞(`dc24c217da`、`98c7eac57f`)
26
+ - 大幅降低运行时内存占用:启用 JSC 小堆模式、启动后执行一次全量回收、合并重复的模型目录副本、精简服务端与终端间的 provider 数据、缩小 SQLite 页缓存、tree-sitter 改为惰性加载(`58b604e8bd`、`d76dc150be`、`53a75727e6`、`acaee48d7e`、`6dbd51f048`、`ace7a2af99`)
27
+ - 体验数据上报新增缓存 token 统计,token 字段统一为 `inputTokens` / `outputTokens`;修复上报队列静默丢事件与同意状态未知时反复重试(`aa24ee3478`)
28
+ - 界面验证缺少模型时给出明确提示与配置指引(`13bafe6583`)
29
+
30
+ #### 缺陷修复
31
+
32
+ - 修复会话工作目录被删除后会话彻底不可用的问题:改为给出明确提示,并支持把会话迁移到仍存在的目录、完整保留历史(`f5f0a35a4f`)
33
+ - 修复首次登录需重复签署协议、协议面板偶发卡在加载态的问题;在线协议检查收敛到启动与华为登录两个时机(`abc2d62370`、`800418221a`)
34
+ - 模型排队不再受全局重试上限约束,保留服务端排队位置直到成功或用户中断(`b52d4be71b`)
35
+ - 用户中断主会话后,已完成的后台任务结果不再立即注入,改为随下一次提问一并提交(`cc1d2d3a04`)
36
+ - 为 SSE 事件订阅、工具 HTTP 响应体、MCP 资源附件设置大小上限,避免超大响应撑爆内存(`80a8cac569`、`1919b100ba`、`ffea464666`)
37
+
38
+ #### 重构
39
+
40
+ - 拆分协议检查与界面准入相关函数,降低复杂度(`8e630593d5`)
41
+
42
+ ### TUI 终端界面
43
+
44
+ #### 优化
45
+
46
+ - 切换会话时回收非活跃会话的消息、附件与差异数据,缓解长时使用下的内存增长(`f2ec8101a6`)
47
+
3
48
  ## v0.2.4 (2026-10-15)
4
49
 
5
50
  ### DevEco Code 核心
package/LICENSE ADDED
@@ -0,0 +1,180 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+ "Legal Entity" shall mean the union of the acting entity and all
15
+ other entities that control, are controlled by, or are under common
16
+ control with that entity. For the purposes of this definition,
17
+ "control" means (i) the power, direct or indirect, to cause the
18
+ direction or management of such entity, whether by contract or
19
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
20
+ outstanding shares, or (iii) beneficial ownership of such entity.
21
+ "You" (or "Your") shall mean an individual or Legal Entity
22
+ exercising permissions granted by this License.
23
+
24
+ "Source" form shall mean the preferred form for making modifications,
25
+ including but not limited to software source code, documentation
26
+ source, and configuration files.
27
+ "Object" form shall mean any form resulting from mechanical
28
+ transformation or translation of a Source form, including but
29
+ not limited to compiled object code, generated documentation,
30
+ and conversions to other media types.
31
+
32
+ "Work" shall mean the work of authorship, whether in Source or
33
+ Object form, made available under the License, as indicated by a
34
+ copyright notice that is included in or attached to the work
35
+ (an example is provided in the Appendix below).
36
+ "Derivative Works" shall mean any work, whether in Source or Object
37
+ form, that is based on (or derived from) the Work and for which the
38
+ editorial revisions, annotations, elaborations, or other modifications
39
+ represent, as a whole, an original work of authorship. For the purposes
40
+ of this License, Derivative Works shall not include works that remain
41
+ separable from, or merely link (or bind by name) to the interfaces of,
42
+ the Work and Derivative Works thereof.
43
+ "Contribution" shall mean any work of authorship, including
44
+ the original version of the Work and any modifications or additions
45
+ to that Work or Derivative Works thereof, that is intentionally
46
+ submitted to Licensor for inclusion in the Work by the copyright owner
47
+ or by an individual or Legal Entity authorized to submit on behalf of
48
+ the copyright owner. For the purposes of this definition, "submitted"
49
+ means any form of electronic, verbal, or written communication sent
50
+ to the Licensor or its representatives, including but not limited to
51
+ communication on electronic mailing lists, source code control systems,
52
+ and issue tracking systems that are managed by, or on behalf of, the
53
+ Licensor for the purpose of discussing and improving the Work, but
54
+ excluding communication that is conspicuously marked or otherwise
55
+ designated in writing by the copyright owner as "Not a Contribution."
56
+ "Contributor" shall mean Licensor and any individual or Legal Entity
57
+ on behalf of whom a Contribution has been received by Licensor and
58
+ subsequently incorporated within the Work.
59
+ 2. Grant of Copyright License. Subject to the terms and conditions of
60
+ this License, each Contributor hereby grants to You a perpetual,
61
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
62
+ copyright license to reproduce, prepare Derivative Works of,
63
+ publicly display, publicly perform, sublicense, and distribute the
64
+ Work and such Derivative Works in Source or Object form.
65
+ 3. Grant of Patent License. Subject to the terms and conditions of
66
+ this License, each Contributor hereby grants to You a perpetual,
67
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
68
+ (except as stated in this section) patent license to make, have made,
69
+ use, offer to sell, sell, import, and otherwise transfer the Work,
70
+ where such license applies only to those patent claims licensable
71
+ by such Contributor that are necessarily infringed by their
72
+ Contribution(s) alone or by combination of their Contribution(s)
73
+ with the Work to which such Contribution(s) was submitted. If You
74
+ institute patent litigation against any entity (including a
75
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
76
+ or a Contribution incorporated within the Work constitutes direct
77
+ or contributory patent infringement, then any patent licenses
78
+ granted to You under this License for that Work shall terminate
79
+ as of the date such litigation is filed.
80
+ 4. Redistribution. You may reproduce and distribute copies of the
81
+ Work or Derivative Works thereof in any medium, with or without
82
+ modifications, and in Source or Object form, provided that You
83
+ meet the following conditions:
84
+
85
+ (a) You must give any other recipients of the Work or
86
+ Derivative Works a copy of this License; and
87
+
88
+ (b) You must cause any modified files to carry prominent notices
89
+ stating that You changed the files; and
90
+ (c) You must retain, in the Source form of any Derivative Works
91
+ that You distribute, all copyright, patent, trademark, and
92
+ attribution notices from the Source form of the Work,
93
+ excluding those notices that do not pertain to any part of
94
+ the Derivative Works; and
95
+ (d) If the Work includes a "NOTICE" text file as part of its
96
+ distribution, then any Derivative Works that You distribute must
97
+ include a readable copy of the attribution notices contained
98
+ within such NOTICE file, excluding those notices that do not
99
+ pertain to any part of the Derivative Works, in at least one
100
+ of the following places: within a NOTICE text file distributed
101
+ as part of the Derivative Works; within the Source form or
102
+ documentation, if provided along with the Derivative Works; or,
103
+ within a display generated by the Derivative Works, if and
104
+ wherever such third-party notices normally appear. The contents
105
+ of the NOTICE file are for informational purposes only and
106
+ do not modify the License. You may add Your own attribution
107
+ notices within Derivative Works that You distribute, alongside
108
+ or as an addendum to the NOTICE text from the Work, provided
109
+ that such additional attribution notices cannot be construed
110
+ as modifying the License.
111
+ You may add Your own copyright statement to Your modifications and
112
+ may provide additional or different license terms and conditions
113
+ for use, reproduction, or distribution of Your modifications, or
114
+ for any such Derivative Works as a whole, provided Your use,
115
+ reproduction, and distribution of the Work otherwise complies with
116
+ the conditions stated in this License.
117
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
118
+ any Contribution intentionally submitted for inclusion in the Work
119
+ by You to the Licensor shall be under the terms and conditions of
120
+ this License, without any additional terms or conditions.
121
+ Notwithstanding the above, nothing herein shall supersede or modify
122
+ the terms of any separate license agreement you may have executed
123
+ with Licensor regarding such Contributions.
124
+ 6. Trademarks. This License does not grant permission to use the trade
125
+ names, trademarks, service marks, or product names of the Licensor,
126
+ except as required for reasonable and customary use in describing the
127
+ origin of the Work and reproducing the content of the NOTICE file.
128
+ 7. Disclaimer of Warranty. Unless required by applicable law or
129
+ agreed to in writing, Licensor provides the Work (and each
130
+ Contributor provides its Contributions) on an "AS IS" BASIS,
131
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
132
+ implied, including, without limitation, any warranties or conditions
133
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
134
+ PARTICULAR PURPOSE. You are solely responsible for determining the
135
+ appropriateness of using or redistributing the Work and assume any
136
+ risks associated with Your exercise of permissions under this License.
137
+ 8. Limitation of Liability. In no event and under no legal theory,
138
+ whether in tort (including negligence), contract, or otherwise,
139
+ unless required by applicable law (such as deliberate and grossly
140
+ negligent acts) or agreed to in writing, shall any Contributor be
141
+ liable to You for damages, including any direct, indirect, special,
142
+ incidental, or consequential damages of any character arising as a
143
+ result of this License or out of the use or inability to use the
144
+ Work (including but not limited to damages for loss of goodwill,
145
+ work stoppage, computer failure or malfunction, or any and all
146
+ other commercial damages or losses), even if such Contributor
147
+ has been advised of the possibility of such damages.
148
+ 9. Accepting Warranty or Additional Liability. While redistributing
149
+ the Work or Derivative Works thereof, You may choose to offer,
150
+ and charge a fee for, acceptance of support, warranty, indemnity,
151
+ or other liability obligations and/or rights consistent with this
152
+ License. However, in accepting such obligations, You may act only
153
+ on Your own behalf and on Your sole responsibility, not on behalf
154
+ of any other Contributor, and only if You agree to indemnify,
155
+ defend, and hold each Contributor harmless for any liability
156
+ incurred by, or claims asserted against, such Contributor by reason
157
+ of your accepting any such warranty or additional liability.
158
+ END OF TERMS AND CONDITIONS
159
+
160
+ APPENDIX: How to apply the Apache License to your work.
161
+ To apply the Apache License to your work, attach the following
162
+ boilerplate notice, with the fields enclosed by brackets "[]"
163
+ replaced with your own identifying information. (Don't include
164
+ the brackets!) The text should be enclosed in the appropriate
165
+ comment syntax for the file format. We also recommend that a
166
+ file or class name and description of purpose be included on the
167
+ same "printed page" as the copyright notice for easier
168
+ identification within third-party archives.
169
+ Copyright [yyyy] [name of copyright owner]
170
+
171
+ Licensed under the Apache License, Version 2.0 (the "License");
172
+ you may not use this file except in compliance with the License.
173
+ You may obtain a copy of the License at
174
+
175
+ http://www.apache.org/licenses/LICENSE-2.0
176
+ Unless required by applicable law or agreed to in writing, software
177
+ distributed under the License is distributed on an "AS IS" BASIS,
178
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
179
+ See the License for the specific language governing permissions and
180
+ limitations under the License.
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 opencode
4
+ Copyright (c) 2025-present DevEco Code Contributors
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.
package/LICENSING.md ADDED
@@ -0,0 +1,25 @@
1
+ # DevEco Code licensing policy
2
+
3
+ DevEco Code is distributed under the [Apache License 2.0](LICENSE). This policy
4
+ takes effect with the commit that introduces the repository-wide Apache-2.0
5
+ license. It applies to the project code throughout the repository, including
6
+ existing project files and new original contributions after that commit.
7
+
8
+ Project code previously distributed under MIT, including code derived from
9
+ OpenCode, is sublicensed under Apache-2.0 in DevEco Code distributions starting
10
+ with that commit. The upstream copyright and [MIT license notice](LICENSES/MIT.txt)
11
+ are preserved. Recipients of earlier MIT releases can continue to use those
12
+ releases under MIT. This sublicense grants no patent rights on behalf of
13
+ upstream MIT contributors.
14
+
15
+ Third-party material retains its applicable licenses and attribution.
16
+ Preserve existing copyright, license, and attribution notices when editing
17
+ or importing code. See [NOTICE](NOTICE) for attribution. Contributors must
18
+ have the right to submit their contributions under Apache-2.0.
19
+
20
+ New original project files are covered by this policy and do not require an
21
+ individual license header. An optional header can use
22
+ `SPDX-License-Identifier: Apache-2.0`.
23
+
24
+ Distribute `LICENSE`, `LICENSING.md`, `NOTICE`, and `LICENSES/MIT.txt`
25
+ with DevEco Code releases, along with applicable third-party notices.
package/NOTICE ADDED
@@ -0,0 +1,180 @@
1
+ NOTICE
2
+
3
+ DevEco Code
4
+ Copyright (c) 2025-present DevEco Code Contributors
5
+
6
+ DevEco Code is distributed under the Apache License 2.0 (LICENSE).
7
+ See LICENSING.md for the scope of the Apache-2.0 sublicense.
8
+ The original MIT license and copyright notices are in LICENSES/MIT.txt.
9
+
10
+ This project is derived from OpenCode (https://github.com/anomalyco/opencode)
11
+ and includes modifications for HarmonyOS development and DevEco integration.
12
+ Copyright (c) 2025 opencode
13
+
14
+ Third-party components retain their respective licenses and notices.
15
+
16
+ ===================================================================
17
+ THIRD-PARTY SOFTWARE NOTICES AND INFORMATION
18
+ ===================================================================
19
+
20
+ This project uses third-party software components. The following
21
+ is a list of these components and their license information.
22
+
23
+ MIT License
24
+
25
+ The following components are licensed under the MIT License:
26
+
27
+ - @actions/core (1.11.1)
28
+ - @actions/github (6.0.1)
29
+ - @clack/core (1.6.0)
30
+ - @clack/prompts (1.0.0-alpha.1) - Copyright (c) Nate Moore
31
+ - @clack/prompts (1.9.0)
32
+ - @deveco/deveco-cli (1.3.4)
33
+ - @effect/opentelemetry (4.0.0-beta.74)
34
+ - @effect/platform-node (4.0.0-beta.74)
35
+ - @ff-labs/fff-bun (0.9.4) - Copyright (c) Dmitry Kovalenko
36
+ - @gitlab/opencode-gitlab-auth (1.3.3) - Copyright (c) Vladimir Glafirov
37
+ - @modelcontextprotocol/sdk (1.29.0) - Copyright (c) Anthropic, PBC (https://anthropic.com)
38
+ - @octokit/graphql (9.0.2) - Copyright (c) Gregor Martynus (https://github.com/gr2m)
39
+ - @octokit/rest (22.0.0) - Copyright (c) Gregor Martynus (https://github.com/gr2m)
40
+ - @openauthjs/openauth (0.0.0-20250322224806)
41
+ - @opentui/core (0.3.4)
42
+ - @opentui/keymap (0.3.4)
43
+ - @opentui/solid (0.3.4)
44
+ - @parcel/watcher (2.5.1)
45
+ - @solid-primitives/event-bus (1.1.2) - Copyright (c) Damian Tarnawski @thetarnav <gthetarnav@gmail.com>
46
+ - @solid-primitives/scheduled (1.5.2)
47
+ - @standard-schema/spec (1.0.0) - Copyright (c) Colin McDonnell
48
+ - @types/ws (8.18.1)
49
+ - ai-gateway-provider (3.1.2) - Copyright (c) Cloudflare Inc.
50
+ - bonjour-service (1.3.0) - Copyright (c) ON LX Lited <team@onlx.ltd> (https://onlx.ltd)
51
+ - chokidar (4.0.3) - Copyright (c) Paul Miller (https://paulmillr.com)
52
+ - commander (13.1.0)
53
+ - commander (14.0.3)
54
+ - cross-spawn (7.0.6) - Copyright (c) André Cruz <andre@moxy.studio>
55
+ - date-format (4.0.14)
56
+ - debug (4.4.3)
57
+ - decimal.js (10.5.0) - Copyright (c) Michael Mclaughlin
58
+ - effect (4.0.0-beta.74)
59
+ - fast-string-truncated-width (3.0.3)
60
+ - fast-string-width (3.0.2)
61
+ - fast-wrap-ansi (0.2.2)
62
+ - fs-extra (8.1.0)
63
+ - fuzzysort (3.1.0) - Copyright (c) farzher
64
+ - gitlab-ai-provider (6.9.3) - Copyright (c) Vladimir Glafirov
65
+ - gray-matter (4.0.3) - Copyright (c) Jon Schlinkert (https://github.com/jonschlinkert)
66
+ - homegraph (1.6.4)
67
+ - hono (4.12.26) - Copyright (c) Yusuke Wada <yusuke@kamawada.com> (https://github.com/yusukebe)
68
+ - htmlparser2 (8.0.2) - Copyright (c) Felix Boehm <me@feedic.com>
69
+ - ignore (7.0.5) - Copyright (c) kael
70
+ - ignore (7.0.14)
71
+ - immer (11.1.4) - Copyright (c) Michel Weststrate <info@michel.codes>
72
+ - jsonc-parser (3.3.1) - Copyright (c) Microsoft Corporation
73
+ - jsonfile (4.0.0)
74
+ - mime-types (3.0.2)
75
+ - ms (2.1.3)
76
+ - node-sqlite3-wasm (0.8.61)
77
+ - open (10.1.2) - Copyright (c) Sindre Sorhus
78
+ - opencode-gitlab-auth (2.1.0) - Copyright (c) Vladimir Glafirov
79
+ - opencode-poe-auth (0.0.1)
80
+ - opentui-spinner (0.0.7) - Copyright (c) Matt Simpson
81
+ - partial-json (0.1.7) - Copyright (c) Muspi Merol <me@promplate.dev>
82
+ - picomatch (4.0.7)
83
+ - remeda (2.26.0) - Copyright (c) Łukasz Sentkiewicz
84
+ - rfdc (1.4.1)
85
+ - sisteransi (2.0.0)
86
+ - sisteransi (1.0.5)
87
+ - solid-js (1.9.10) - Copyright (c) Ryan Carniato
88
+ - streamroller (3.1.5)
89
+ - strip-ansi (7.1.2) - Copyright (c) Sindre Sorhus
90
+ - tree-sitter-bash (0.25.0) - Copyright (c) Max Brunsfeld
91
+ - tree-sitter-powershell (0.25.10)
92
+ - turndown (7.2.0) - Copyright (c) Dom Christie
93
+ - ui-verification-mcp (0.0.17)
94
+ - ulid (3.0.1) - Copyright (c) Alizain Feerasta
95
+ - universalify (0.1.2)
96
+ - vscode-jsonrpc (8.2.1) - Copyright (c) Microsoft Corporation
97
+ - web-tree-sitter (0.25.10) - Copyright (c) Max Brunsfeld
98
+ - ws (8.21.0) - Copyright (c) Einar Otto Stangvik <einaros@gmail.com> (http://2x.io)
99
+ - xdg-basedir (5.1.0) - Copyright (c) Sindre Sorhus
100
+ - yargs (18.0.0)
101
+ - zod (4.6.5) - Copyright (c) Colin McDonnell <zod@colinhacks.com>
102
+
103
+ -------------------------------------------------------------------
104
+
105
+ Apache License 2.0
106
+
107
+ The following components are licensed under the Apache License 2.0:
108
+
109
+ - @agentclientprotocol/sdk (0.21.0) - Copyright (c) Zed Industries
110
+ - @ai-sdk/alibaba (1.0.17)
111
+ - @ai-sdk/amazon-bedrock (4.0.112)
112
+ - @ai-sdk/anthropic (3.0.82)
113
+ - @ai-sdk/azure (3.0.49)
114
+ - @ai-sdk/cerebras (2.0.41)
115
+ - @ai-sdk/cohere (3.0.27)
116
+ - @ai-sdk/deepinfra (2.0.41)
117
+ - @ai-sdk/gateway (3.0.104)
118
+ - @ai-sdk/google (3.0.73)
119
+ - @ai-sdk/google-vertex (4.0.128)
120
+ - @ai-sdk/groq (3.0.31)
121
+ - @ai-sdk/mistral (3.0.27)
122
+ - @ai-sdk/openai (3.0.53)
123
+ - @ai-sdk/openai-compatible (2.0.41)
124
+ - @ai-sdk/perplexity (3.0.26)
125
+ - @ai-sdk/provider (3.0.8)
126
+ - @ai-sdk/togetherai (2.0.41)
127
+ - @ai-sdk/vercel (2.0.39)
128
+ - @ai-sdk/xai (3.0.82)
129
+ - @aws-sdk/credential-providers (3.1057.0) - Copyright (c) AWS SDK for JavaScript Team
130
+ - @openrouter/ai-sdk-provider (2.9.0)
131
+ - @opentelemetry/api (1.9.0) - Copyright (c) OpenTelemetry Authors
132
+ - @opentelemetry/context-async-hooks (2.6.1) - Copyright (c) OpenTelemetry Authors
133
+ - @opentelemetry/exporter-trace-otlp-http (0.214.0) - Copyright (c) OpenTelemetry Authors
134
+ - @opentelemetry/sdk-trace-base (2.6.1) - Copyright (c) OpenTelemetry Authors
135
+ - @opentelemetry/sdk-trace-node (2.6.1) - Copyright (c) OpenTelemetry Authors
136
+ - @pierre/diffs (1.2.10)
137
+ - @silvia-odwyer/photon-node (0.3.4)
138
+ - ai (6.0.168)
139
+ - arkanalyzer (1.0.95)
140
+ - drizzle-orm (1.0.0-rc.2) - Copyright (c) Drizzle Team
141
+ - google-auth-library (10.5.0) - Copyright (c) Google Inc.
142
+ - log4js (6.9.1)
143
+ - venice-ai-sdk-provider (2.0.2)
144
+
145
+ -------------------------------------------------------------------
146
+
147
+ BSD 3-Clause License
148
+
149
+ The following components are licensed under the BSD 3-Clause License:
150
+
151
+ - @zip.js/zip.js (2.7.62) - Copyright (c) Gildas Lormeau
152
+ - diff (9.0.0)
153
+
154
+ -------------------------------------------------------------------
155
+
156
+ ISC License
157
+
158
+ The following components are licensed under the ISC License:
159
+
160
+ - flatted (3.4.4)
161
+ - graceful-fs (4.2.11)
162
+ - minimatch (10.0.3) - Copyright (c) Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me)
163
+ - npm-package-arg (13.0.2) - Copyright (c) GitHub Inc.
164
+ - semver (7.8.5) - Copyright (c) GitHub Inc.
165
+
166
+ -------------------------------------------------------------------
167
+
168
+ BlueOak-1.0.0
169
+
170
+ The following components are licensed under the BlueOak-1.0.0:
171
+
172
+ - glob (13.0.5) - Copyright (c) Isaac Z. Schlueter <i@izs.me> (https://blog.izs.me/)
173
+
174
+ -------------------------------------------------------------------
175
+
176
+ Unlicense
177
+
178
+ The following components are licensed under the Unlicense:
179
+
180
+ - tree-sitter-wasms (0.1.13)
package/README.md CHANGED
@@ -12,7 +12,7 @@
12
12
  <img alt="Node.js" src="https://img.shields.io/badge/Node.js-%3E%3D22-green.svg" />
13
13
  <img alt="platform" src="https://img.shields.io/badge/platform-macOS%20(Arm%20%7C%20x64)%20%7C%20Windows-blue.svg" />
14
14
  <a href="https://developer.huawei.com/consumer/cn/deveco-studio/"><img alt="DevEco Studio" src="https://img.shields.io/badge/DevEco%20Studio-%3E%3D6.1-orange.svg" /></a>
15
- <a href="https://gitcode.com/openharmony-sig/deveco-code/blob/develop/LICENSE"><img alt="License" src="https://img.shields.io/badge/license-MIT-green.svg" /></a>
15
+ <a href="https://gitcode.com/openharmony-sig/deveco-code/blob/develop/LICENSE"><img alt="License" src="https://img.shields.io/badge/license-Apache--2.0-green.svg" /></a>
16
16
  </p>
17
17
 
18
18
  <p align="center">
@@ -188,7 +188,7 @@ deveco auth logout
188
188
 
189
189
  UI 检查是功能验证阶段的可选能力,用于验证界面是否符合需求描述。
190
190
 
191
- 该功能需调用多模态模型(仅用于 UI 检查,不作为主对话模型):已登录账号时默认使用内置 Qwen3-VL 模型,未登录时则跳过 UI 检查。
191
+ 该功能需调用多模态模型(仅用于 UI 检查,不作为主对话模型):已登录账号时默认使用内置 Qwen3.5 模型,未登录时则跳过 UI 检查。
192
192
 
193
193
  如需配置第三方多模态模型(仅支持 Qwen 系列),可在 `deveco.jsonc` 的 `agent` 中指定,以 qwen3-vl-plus 为例:
194
194
 
@@ -247,11 +247,32 @@ DevEco Code 集成了常用 HarmonyOS 开发工具能力:
247
247
  | `start_app` | 在模拟器或真机上运行应用 |
248
248
  | `hdc_log` | 收集/清理设备日志/查看连接模拟器 |
249
249
  | `verify_ui` | 执行 UI 操作验证功能是否正确 |
250
- | `arkts_check` | ArkTS 静态语法检查 |
251
250
  | `switch_cwd` | 切换构建项目路径 |
252
251
 
253
252
  常见场景包括:从零到一创建 HarmonyOS 工程、增量开发页面、修复编译报错、真机调试。
254
253
 
254
+ ### UX 设计稿生成 ArkTS 代码
255
+
256
+ 内置 `hmos-design-to-arkts` Skill 可把 Figma / Pixso / MasterGo 的 UX 设计稿转换成现有 ArkTS 工程中的页面。支持基于直板机设计稿生成一套 ArkTS 代码,同时具备响应式布局与多设备适配能力,可在直板机、双折叠、三折叠、阔折叠等设备上正常运行。
257
+
258
+ 使用前需按设计稿来源配置对应 MCP(配置后需重启 DevEco Code 生效):
259
+
260
+ | 来源 | 配置 |
261
+ | --- | --- |
262
+ | Figma | [Anchor MCP](https://gitcode.com/OpenHarmonyToolkitsPlaza/anchor-d2c-mcp):先设置 `FIGMA_ACCESS_TOKEN` 环境变量,再执行 `deveco mcp add`,名称 `anchor-d2c-mcp`、类型 `Local`、命令 `npx -y anchor-d2c-mcp@latest stdio` |
263
+ | Pixso | [Pixso MCP](https://pixso.cn/developer/zh/mcp/remote-mcp.html):远程形态免开客户端,执行 `deveco mcp add pixso-mcp --url https://pixso.cn/mcp` 后再执行 `deveco mcp auth pixso-mcp` 完成授权;也可以使用[本地 MCP](https://pixso.cn/developer/zh/mcp/local-mcp.html) 服务 |
264
+ | MasterGo | [Magic MCP](https://mastergo.com/help/ai-features/magic-mcp.html)(需团队版账号与 `MG_MCP_TOKEN` 环境变量)或 [Vibe MCP](https://mastergo.com/help/ai-features/vibe-mcp.html)(需已开启 MCP 的桌面客户端);两者都不适用时可用[社区插件](https://github.com/burnice-cn/mastergo-mcp-server)(插件通道,需本机配对) |
265
+
266
+ 说明:MCP 未就绪时,Skill 会先给出配置引导并停下,不会带着缺失依赖开始。
267
+
268
+ 在目标工程目录下启动 DevEco Code 后,给出设计稿链接和需求说明即可;Agent 会自动识别需求并加载 `hmos-design-to-arkts` Skill 生成页面代码(信息不全时会先澄清再开始):
269
+
270
+ ```text
271
+ 把这个 Figma 设计稿转成 ArkTS 页面:https://www.figma.com/design/xxxx/OrderList?node-id=1-2(订单列表画板),点击列表项进入详情页
272
+ ```
273
+
274
+ 提供 Fast 与 Full 两种工作流:Fast 直接快速出页面,推荐使用 Full,它额外包含组件树人工确认与按还原度评分迭代的视觉校准(需模拟器或真机)。`Goal` 模式默认 Full,`Build` 模式默认 Fast;也可在需求中直接说明使用哪一种。`Plan` 模式不支持该 Skill。
275
+
255
276
  ## 扩展能力
256
277
 
257
278
  DevEco Code 兼容 OpenCode 的 Skill、MCP 和 Plugin 扩展方式。
@@ -327,7 +348,7 @@ Skills、Agents、Plugins 也可以迁移到 `~/.config/deveco` 下的对应目
327
348
 
328
349
  ## 开源许可
329
350
 
330
- [MIT License](LICENSE)
351
+ DevEco Code 采用 [Apache-2.0](LICENSE)。自仓库切换至 Apache-2.0 的提交起,历史 MIT 项目代码在新分发版本中按 Apache-2.0 再许可,后续原创贡献同样采用 Apache-2.0。上游 [MIT 许可声明](LICENSES/MIT.txt)及版权归属随分发保留。授权范围见 [LICENSING.md](LICENSING.md),项目归属与第三方声明见 [NOTICE](NOTICE)。
331
352
 
332
353
  ## 基于 OpenCode 构建的声明
333
354
 
package/bin/deveco CHANGED
@@ -1,4 +1,4 @@
1
1
  [diffend] Oversized file quarantined before diffing.
2
2
  name: package/bin/deveco
3
- size: 157451634 bytes
4
- sha256: 66ddebfa2cb85e710f5ac395ee9397cc81f5184fae130b51a21bdfcdb8f6f91b
3
+ size: 160770546 bytes
4
+ sha256: e40ad1e8359c05cfb2849dfbda37288f05ee7d1e20a798535ee50be4bccdc1e7
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@deveco-test/deveco-code-darwin-arm64",
3
- "version": "0.4.0-TD.5.1",
3
+ "version": "0.4.0-TD.5.10",
4
+ "license": "Apache-2.0",
4
5
  "preferUnplugged": true,
5
6
  "os": [
6
7
  "darwin"
@@ -8,10 +9,17 @@
8
9
  "cpu": [
9
10
  "arm64"
10
11
  ],
12
+ "dependencies": {
13
+ "@deveco-test/deveco-harness": "0.2.0-test.16"
14
+ },
11
15
  "files": [
12
16
  "bin/**/*",
13
17
  "vendor/**/*",
14
18
  "CHANGELOG.md",
15
- "README.md"
19
+ "README.md",
20
+ "LICENSE",
21
+ "LICENSING.md",
22
+ "NOTICE",
23
+ "LICENSES/MIT.txt"
16
24
  ]
17
25
  }
@@ -0,0 +1,10 @@
1
+ {
2
+ "package_version": "0.3.1",
3
+ "contract_generation": 2,
4
+ "target_os": "darwin",
5
+ "target_arch": "arm64",
6
+ "napi_baseline": 8,
7
+ "rust_target": "aarch64-apple-darwin",
8
+ "profile": "release",
9
+ "sha256": "e74af290dd763e3e6e998d72e98fd6367482dbf9f308b691aa5a2a6b1e85d791"
10
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "@bitfun-ai/sandbox-darwin-arm64",
3
+ "version": "0.3.1",
4
+ "description": "BitFun sandbox native addon for macOS arm64",
5
+ "license": "MIT",
6
+ "repository": "https://gitcode.com/OpenBitFun/bitfun_agent_kernel",
7
+ "publishConfig": {
8
+ "access": "public",
9
+ "registry": "https://registry.npmjs.org/"
10
+ },
11
+ "os": [
12
+ "darwin"
13
+ ],
14
+ "cpu": [
15
+ "arm64"
16
+ ],
17
+ "files": [
18
+ "sandbox.node",
19
+ "build-identity.json"
20
+ ]
21
+ }
Binary file
@@ -0,0 +1,41 @@
1
+ {
2
+ "name": "@bitfun-ai/sandbox",
3
+ "version": "0.3.1",
4
+ "description": "Strict TypeScript API for the BitFun command sandbox",
5
+ "license": "MIT",
6
+ "repository": "https://gitcode.com/OpenBitFun/bitfun_agent_kernel",
7
+ "publishConfig": {
8
+ "access": "public",
9
+ "registry": "https://registry.npmjs.org/"
10
+ },
11
+ "type": "module",
12
+ "engines": {
13
+ "node": ">=22.12.0"
14
+ },
15
+ "exports": {
16
+ ".": {
17
+ "types": "./dist/index.d.ts",
18
+ "import": "./dist/index.js"
19
+ }
20
+ },
21
+ "files": [
22
+ "dist"
23
+ ],
24
+ "devDependencies": {
25
+ "@types/node": "22.19.7"
26
+ },
27
+ "optionalDependencies": {
28
+ "@bitfun-ai/sandbox-darwin-arm64": "0.3.1",
29
+ "@bitfun-ai/sandbox-darwin-x64": "0.3.1",
30
+ "@bitfun-ai/sandbox-win32-arm64": "0.3.1",
31
+ "@bitfun-ai/sandbox-win32-x64": "0.3.1"
32
+ },
33
+ "scripts": {
34
+ "build": "../../node_modules/.bin/tsc -p tsconfig.json",
35
+ "typecheck": "../../node_modules/.bin/tsc -p tsconfig.json --noEmit",
36
+ "test": "pnpm run build && node --test test/*.test.mjs",
37
+ "test:contract": "pnpm run build && node --test test/contract.test.mjs",
38
+ "test:runtime:macos": "pnpm run build && node --test test/runtime-macos.test.mjs",
39
+ "test:security:macos": "pnpm run build && node --test test/security-macos.test.mjs"
40
+ }
41
+ }
@@ -1 +0,0 @@
1
- 1.3.4
@@ -1,7 +0,0 @@
1
- {
2
- "name": "deveco-cli-vendor",
3
- "private": true,
4
- "dependencies": {
5
- "@deveco/deveco-cli": "1.3.4"
6
- }
7
- }