@harmonyos-arkts/opencode-plugin 0.0.1 → 0.0.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.
- package/dist/index.js +227 -2767
- package/dist/templates/application/AppScope/app.json5 +10 -0
- package/dist/templates/application/AppScope/resources/base/element/string.json +8 -0
- package/dist/templates/application/AppScope/resources/base/media/background.png +0 -0
- package/dist/templates/application/AppScope/resources/base/media/foreground.png +0 -0
- package/dist/templates/application/AppScope/resources/base/media/layered_image.json +7 -0
- package/dist/templates/application/build-profile.json5 +42 -0
- package/dist/templates/application/code-linter.json5 +32 -0
- package/dist/templates/application/entry/build-profile.json5 +33 -0
- package/dist/templates/application/entry/hvigorfile.ts +6 -0
- package/dist/templates/application/entry/obfuscation-rules.txt +23 -0
- package/dist/templates/application/entry/oh-package.json5 +10 -0
- package/dist/templates/application/entry/src/main/ets/entryability/EntryAbility.ets +48 -0
- package/dist/templates/application/entry/src/main/ets/entrybackupability/EntryBackupAbility.ets +16 -0
- package/dist/templates/application/entry/src/main/ets/pages/Index.ets +23 -0
- package/dist/templates/application/entry/src/main/module.json5 +50 -0
- package/dist/templates/application/entry/src/main/resources/base/element/color.json +8 -0
- package/dist/templates/application/entry/src/main/resources/base/element/float.json +8 -0
- package/dist/templates/application/entry/src/main/resources/base/element/string.json +16 -0
- package/dist/templates/application/entry/src/main/resources/base/media/background.png +0 -0
- package/dist/templates/application/entry/src/main/resources/base/media/foreground.png +0 -0
- package/dist/templates/application/entry/src/main/resources/base/media/layered_image.json +7 -0
- package/dist/templates/application/entry/src/main/resources/base/media/startIcon.png +0 -0
- package/dist/templates/application/entry/src/main/resources/base/profile/backup_config.json +3 -0
- package/dist/templates/application/entry/src/main/resources/base/profile/main_pages.json +5 -0
- package/dist/templates/application/entry/src/main/resources/dark/element/color.json +8 -0
- package/dist/templates/application/entry/src/mock/mock-config.json5 +2 -0
- package/dist/templates/application/entry/src/ohosTest/ets/test/Ability.test.ets +35 -0
- package/dist/templates/application/entry/src/ohosTest/ets/test/List.test.ets +5 -0
- package/dist/templates/application/entry/src/ohosTest/module.json5 +11 -0
- package/dist/templates/application/entry/src/test/List.test.ets +5 -0
- package/dist/templates/application/entry/src/test/LocalUnit.test.ets +33 -0
- package/dist/templates/application/hvigor/hvigor-config.json5 +23 -0
- package/dist/templates/application/hvigorfile.ts +6 -0
- package/dist/templates/application/oh-package.json5 +10 -0
- package/dist/templates/atomic/AppScope/app.json5 +11 -0
- package/dist/templates/atomic/AppScope/resources/base/element/string.json +8 -0
- package/dist/templates/atomic/AppScope/resources/base/media/app_icon.png +0 -0
- package/dist/templates/atomic/build-profile.json5 +42 -0
- package/dist/templates/atomic/code-linter.json5 +32 -0
- package/dist/templates/atomic/entry/build-profile.json5 +33 -0
- package/dist/templates/atomic/entry/hvigorfile.ts +6 -0
- package/dist/templates/atomic/entry/obfuscation-rules.txt +23 -0
- package/dist/templates/atomic/entry/oh-package.json5 +10 -0
- package/dist/templates/atomic/entry/src/main/ets/entryability/EntryAbility.ets +43 -0
- package/dist/templates/atomic/entry/src/main/ets/pages/Index.ets +64 -0
- package/dist/templates/atomic/entry/src/main/module.json5 +36 -0
- package/dist/templates/atomic/entry/src/main/resources/base/element/color.json +8 -0
- package/dist/templates/atomic/entry/src/main/resources/base/element/float.json +8 -0
- package/dist/templates/atomic/entry/src/main/resources/base/element/string.json +16 -0
- package/dist/templates/atomic/entry/src/main/resources/base/media/icon.png +0 -0
- package/dist/templates/atomic/entry/src/main/resources/base/media/startIcon.png +0 -0
- package/dist/templates/atomic/entry/src/main/resources/base/profile/main_pages.json +5 -0
- package/dist/templates/atomic/entry/src/mock/mock-config.json5 +2 -0
- package/dist/templates/atomic/entry/src/ohosTest/ets/test/Ability.test.ets +35 -0
- package/dist/templates/atomic/entry/src/ohosTest/ets/test/List.test.ets +5 -0
- package/dist/templates/atomic/entry/src/ohosTest/module.json5 +11 -0
- package/dist/templates/atomic/entry/src/test/List.test.ets +5 -0
- package/dist/templates/atomic/entry/src/test/LocalUnit.test.ets +33 -0
- package/dist/templates/atomic/hvigor/hvigor-config.json5 +23 -0
- package/dist/templates/atomic/hvigorfile.ts +6 -0
- package/dist/templates/atomic/oh-package.json5 +9 -0
- package/dist/templates/module/Index.ets +1 -0
- package/dist/templates/module/build-profile.json5 +36 -0
- package/dist/templates/module/consumer-rules.txt +0 -0
- package/dist/templates/module/hvigorfile.ts +6 -0
- package/dist/templates/module/obfuscation-rules.txt +23 -0
- package/dist/templates/module/oh-package.json5 +9 -0
- package/dist/templates/module/src/main/ets/components/MainPage.ets +19 -0
- package/dist/templates/module/src/main/module.json5 +9 -0
- package/dist/templates/module/src/main/resources/base/element/float.json +8 -0
- package/dist/templates/module/src/main/resources/base/element/string.json +8 -0
- package/dist/templates/module/src/ohosTest/ets/test/Ability.test.ets +35 -0
- package/dist/templates/module/src/ohosTest/ets/test/List.test.ets +5 -0
- package/dist/templates/module/src/ohosTest/module.json5 +11 -0
- package/dist/templates/module/src/test/List.test.ets +5 -0
- package/dist/templates/module/src/test/LocalUnit.test.ets +33 -0
- package/package.json +8 -3
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@harmonyos-arkts/opencode-plugin",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.3",
|
|
5
5
|
"description": "HarmonyOS Full-Lifecycle Development Assistant. Specialized in the complete development lifecycle of HarmonyOS applications, including project creation, UI development, state management, network requests, data storage, permission requests, performance optimization, testing, and release.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "MIT",
|
|
@@ -16,7 +16,9 @@
|
|
|
16
16
|
"scripts": {
|
|
17
17
|
"typecheck": "tsc --noEmit",
|
|
18
18
|
"build": "node scripts/build.mjs",
|
|
19
|
-
"prepublishOnly": "npm run build"
|
|
19
|
+
"prepublishOnly": "npm run build",
|
|
20
|
+
"test": "vitest run",
|
|
21
|
+
"test:watch": "vitest"
|
|
20
22
|
},
|
|
21
23
|
"files": [
|
|
22
24
|
"dist"
|
|
@@ -34,13 +36,16 @@
|
|
|
34
36
|
"esbuild": "^0.28.0",
|
|
35
37
|
"jsonc-parser": "^3.3.1",
|
|
36
38
|
"xdg-basedir": "^5.1.0",
|
|
39
|
+
"@node-rs/jieba": "^2.0.1",
|
|
37
40
|
"zod": "latest"
|
|
38
41
|
},
|
|
39
42
|
"devDependencies": {
|
|
40
43
|
"@opencode-ai/plugin": "latest",
|
|
41
44
|
"@types/adm-zip": "^0.5.5",
|
|
42
45
|
"@types/xdg-basedir": "^4.0.2",
|
|
43
|
-
"
|
|
46
|
+
"@vitest/coverage-v8": "^4.1.5",
|
|
47
|
+
"typescript": "^5.7.3",
|
|
48
|
+
"vitest": "^4.1.5"
|
|
44
49
|
},
|
|
45
50
|
"sideEffects": false,
|
|
46
51
|
"engines": {
|