@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.
Files changed (78) hide show
  1. package/dist/index.js +227 -2767
  2. package/dist/templates/application/AppScope/app.json5 +10 -0
  3. package/dist/templates/application/AppScope/resources/base/element/string.json +8 -0
  4. package/dist/templates/application/AppScope/resources/base/media/background.png +0 -0
  5. package/dist/templates/application/AppScope/resources/base/media/foreground.png +0 -0
  6. package/dist/templates/application/AppScope/resources/base/media/layered_image.json +7 -0
  7. package/dist/templates/application/build-profile.json5 +42 -0
  8. package/dist/templates/application/code-linter.json5 +32 -0
  9. package/dist/templates/application/entry/build-profile.json5 +33 -0
  10. package/dist/templates/application/entry/hvigorfile.ts +6 -0
  11. package/dist/templates/application/entry/obfuscation-rules.txt +23 -0
  12. package/dist/templates/application/entry/oh-package.json5 +10 -0
  13. package/dist/templates/application/entry/src/main/ets/entryability/EntryAbility.ets +48 -0
  14. package/dist/templates/application/entry/src/main/ets/entrybackupability/EntryBackupAbility.ets +16 -0
  15. package/dist/templates/application/entry/src/main/ets/pages/Index.ets +23 -0
  16. package/dist/templates/application/entry/src/main/module.json5 +50 -0
  17. package/dist/templates/application/entry/src/main/resources/base/element/color.json +8 -0
  18. package/dist/templates/application/entry/src/main/resources/base/element/float.json +8 -0
  19. package/dist/templates/application/entry/src/main/resources/base/element/string.json +16 -0
  20. package/dist/templates/application/entry/src/main/resources/base/media/background.png +0 -0
  21. package/dist/templates/application/entry/src/main/resources/base/media/foreground.png +0 -0
  22. package/dist/templates/application/entry/src/main/resources/base/media/layered_image.json +7 -0
  23. package/dist/templates/application/entry/src/main/resources/base/media/startIcon.png +0 -0
  24. package/dist/templates/application/entry/src/main/resources/base/profile/backup_config.json +3 -0
  25. package/dist/templates/application/entry/src/main/resources/base/profile/main_pages.json +5 -0
  26. package/dist/templates/application/entry/src/main/resources/dark/element/color.json +8 -0
  27. package/dist/templates/application/entry/src/mock/mock-config.json5 +2 -0
  28. package/dist/templates/application/entry/src/ohosTest/ets/test/Ability.test.ets +35 -0
  29. package/dist/templates/application/entry/src/ohosTest/ets/test/List.test.ets +5 -0
  30. package/dist/templates/application/entry/src/ohosTest/module.json5 +11 -0
  31. package/dist/templates/application/entry/src/test/List.test.ets +5 -0
  32. package/dist/templates/application/entry/src/test/LocalUnit.test.ets +33 -0
  33. package/dist/templates/application/hvigor/hvigor-config.json5 +23 -0
  34. package/dist/templates/application/hvigorfile.ts +6 -0
  35. package/dist/templates/application/oh-package.json5 +10 -0
  36. package/dist/templates/atomic/AppScope/app.json5 +11 -0
  37. package/dist/templates/atomic/AppScope/resources/base/element/string.json +8 -0
  38. package/dist/templates/atomic/AppScope/resources/base/media/app_icon.png +0 -0
  39. package/dist/templates/atomic/build-profile.json5 +42 -0
  40. package/dist/templates/atomic/code-linter.json5 +32 -0
  41. package/dist/templates/atomic/entry/build-profile.json5 +33 -0
  42. package/dist/templates/atomic/entry/hvigorfile.ts +6 -0
  43. package/dist/templates/atomic/entry/obfuscation-rules.txt +23 -0
  44. package/dist/templates/atomic/entry/oh-package.json5 +10 -0
  45. package/dist/templates/atomic/entry/src/main/ets/entryability/EntryAbility.ets +43 -0
  46. package/dist/templates/atomic/entry/src/main/ets/pages/Index.ets +64 -0
  47. package/dist/templates/atomic/entry/src/main/module.json5 +36 -0
  48. package/dist/templates/atomic/entry/src/main/resources/base/element/color.json +8 -0
  49. package/dist/templates/atomic/entry/src/main/resources/base/element/float.json +8 -0
  50. package/dist/templates/atomic/entry/src/main/resources/base/element/string.json +16 -0
  51. package/dist/templates/atomic/entry/src/main/resources/base/media/icon.png +0 -0
  52. package/dist/templates/atomic/entry/src/main/resources/base/media/startIcon.png +0 -0
  53. package/dist/templates/atomic/entry/src/main/resources/base/profile/main_pages.json +5 -0
  54. package/dist/templates/atomic/entry/src/mock/mock-config.json5 +2 -0
  55. package/dist/templates/atomic/entry/src/ohosTest/ets/test/Ability.test.ets +35 -0
  56. package/dist/templates/atomic/entry/src/ohosTest/ets/test/List.test.ets +5 -0
  57. package/dist/templates/atomic/entry/src/ohosTest/module.json5 +11 -0
  58. package/dist/templates/atomic/entry/src/test/List.test.ets +5 -0
  59. package/dist/templates/atomic/entry/src/test/LocalUnit.test.ets +33 -0
  60. package/dist/templates/atomic/hvigor/hvigor-config.json5 +23 -0
  61. package/dist/templates/atomic/hvigorfile.ts +6 -0
  62. package/dist/templates/atomic/oh-package.json5 +9 -0
  63. package/dist/templates/module/Index.ets +1 -0
  64. package/dist/templates/module/build-profile.json5 +36 -0
  65. package/dist/templates/module/consumer-rules.txt +0 -0
  66. package/dist/templates/module/hvigorfile.ts +6 -0
  67. package/dist/templates/module/obfuscation-rules.txt +23 -0
  68. package/dist/templates/module/oh-package.json5 +9 -0
  69. package/dist/templates/module/src/main/ets/components/MainPage.ets +19 -0
  70. package/dist/templates/module/src/main/module.json5 +9 -0
  71. package/dist/templates/module/src/main/resources/base/element/float.json +8 -0
  72. package/dist/templates/module/src/main/resources/base/element/string.json +8 -0
  73. package/dist/templates/module/src/ohosTest/ets/test/Ability.test.ets +35 -0
  74. package/dist/templates/module/src/ohosTest/ets/test/List.test.ets +5 -0
  75. package/dist/templates/module/src/ohosTest/module.json5 +11 -0
  76. package/dist/templates/module/src/test/List.test.ets +5 -0
  77. package/dist/templates/module/src/test/LocalUnit.test.ets +33 -0
  78. 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.1",
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
- "typescript": "^5.7.3"
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": {