@dp-bohrium/widget-cli 0.5.0 → 0.5.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/AGENTS.md +13 -5
- package/CHANGELOG.md +9 -0
- package/assets/toolchain.json +6 -6
- package/dist/cli.mjs +116 -15
- package/dist/core.d.mts +16 -14
- package/dist/core.mjs +1 -1
- package/dist/{dsh-BkPMTfZ_.mjs → dsh-BlpXm2Bv.mjs} +10051 -10236
- package/llms.txt +2 -2
- package/package.json +8 -11
- package/assets/licenses/widget-contracts.LICENSE +0 -21
package/llms.txt
CHANGED
|
@@ -41,8 +41,8 @@ pnpm exec bohr-widget --version --json
|
|
|
41
41
|
- `integration --json`: `interfaceVersion=3`,返回固定 profile、执行器位置、
|
|
42
42
|
`toolchain.formatVersion=3` 和 `documentation { url, quickStart, cli, llms, llmsFull }`,
|
|
43
43
|
不返回 `skills`。已有工程加 `--project <目录>` 核对锁定,再读取对应参考。
|
|
44
|
-
- `create`: 创建 vanilla 或 React 工程并写 `widget-toolchain.json
|
|
45
|
-
`--panel-id workspace-files
|
|
44
|
+
- `create`: 创建 vanilla 或 React 工程并写 `widget-toolchain.json`;Panel ID 可自定义,
|
|
45
|
+
`--panel-id workspace-files` 是可选的文件浏览面板预设。
|
|
46
46
|
- `adopt`: 为旧工程显式写入工具链锁,先核对精确依赖、实际 SDK 与内置协议摘要、Manifest 和 samples。
|
|
47
47
|
- SDK 0.5.0 的任务 Panel 在 Manifest 声明 `capabilities.tasks.list`;需要观察单个任务时再声明
|
|
48
48
|
`tasks.watch`。列表刷新遵守 grant 的 `minPollMs`,面板不可见后停止轮询;CLI 校验通过不代表
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dp-bohrium/widget-cli",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "Bohrium Widget 插件工程的创建、校验、开发和打包工具。",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -46,24 +46,21 @@
|
|
|
46
46
|
"@types/node": "^22.15.0",
|
|
47
47
|
"tsdown": "0.22.14",
|
|
48
48
|
"typescript": "5.9.3",
|
|
49
|
-
"@dp-bohrium/widget-
|
|
50
|
-
"@dp-bohrium/widget-contract-testing": "0.1.0-alpha.0",
|
|
51
|
-
"@dp-bohrium/widget-sdk": "0.7.0"
|
|
49
|
+
"@dp-bohrium/widget-sdk": "0.8.0"
|
|
52
50
|
},
|
|
53
51
|
"sideEffects": false,
|
|
54
52
|
"publishConfig": {
|
|
55
53
|
"access": "public"
|
|
56
54
|
},
|
|
57
55
|
"scripts": {
|
|
58
|
-
"build:assets": "node scripts/build-assets.mjs",
|
|
59
|
-
"build:types": "tsdown --config types.tsdown.config.ts",
|
|
60
56
|
"package:contents": "node ../../scripts/quality/check-widget-cli-package-contents.mjs ../../.artifacts/dp-bohrium-widget-cli-*.tgz",
|
|
61
|
-
"build
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"test": "pnpm build:inputs && pnpm build:assets && pnpm build:types && node --test test/*.test.mjs",
|
|
57
|
+
"build": "node ../../scripts/build/widget-build.mjs cli",
|
|
58
|
+
"typecheck": "node --check src/cli.mjs && node --check src/help.mjs && node --check src/core.mjs && node --check src/templates.mjs && node --check src/toolchain.mjs && node --check src/project-executor.mjs && node --check scripts/build-assets.mjs && tsc --project tsconfig.project.json",
|
|
59
|
+
"test": "node ../../scripts/build/with-build.mjs all -- node --test test/*.test.mjs test/project/*.test.mjs",
|
|
65
60
|
"lint": "biome check src test scripts",
|
|
66
61
|
"format:check": "biome check --linter-enabled=false src test scripts",
|
|
67
|
-
"check": "pnpm
|
|
62
|
+
"check": "pnpm typecheck && pnpm test && pnpm lint && pnpm format:check && pnpm build",
|
|
63
|
+
"test:coverage": "node ../../scripts/build/with-build.mjs all -- node --experimental-test-coverage --test-coverage-include=src/project/*.mjs --test-coverage-lines=80 --test-coverage-functions=80 --test-coverage-branches=70 --test test/project/*.test.mjs",
|
|
64
|
+
"build:tools": "node ../../scripts/build/widget-build.mjs tools"
|
|
68
65
|
}
|
|
69
66
|
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 DP Technology
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|