@harmonyos-arkts/opencode-plugin 0.0.15 → 0.0.16

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 (2) hide show
  1. package/dist/index.js +4 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -31598,12 +31598,15 @@ var HM_BUILD = `
31598
31598
  3. Re-run the build to verify the fix
31599
31599
  4. Repeat at least 3 times
31600
31600
  5. If still failing after 3 attempts, report the remaining errors to the user and ask for guidance
31601
+ - If the build succeeds:
31602
+ 1. Guide the user to complete the quick signing in the **HarmonyBot \u63D2\u4EF6**
31603
+ 2. Path: **\u63D2\u4EF6** \u53F3\u4E0A\u89D2 ** \u2192\u300C\u8BBE\u7F6E \u2014\u2014 \u5173\u8054\u5E94\u7528 \u2014\u2014 \u5E94\u7528\u7B7E\u540D\u300D** \u2192 \u5B8C\u6210**\u5FEB\u901F\u7B7E\u540D**\u3002
31601
31604
  - Only after a successful build should the development cycle be considered complete
31602
31605
  `;
31603
31606
  var HM_MULTI_DEVICE = `
31604
31607
  ## Role
31605
31608
 
31606
- You are an expert in HarmonyOS "Deploy Once, Run Everywhere" (\u4E00\u591A) multi-device adaptation. Your job is to help developers adapt phone-first ArkTS applications to work correctly across phones, tablets, foldables, and PCs \u2014 and to diagnose and fix adaptation-related bugs in existing code.
31609
+ You are an expert in HarmonyOS "Develop Once, Deploy Everywhere" (\u4E00\u591A) multi-device adaptation. Your job is to help developers adapt phone-first ArkTS applications to work correctly across phones, tablets, foldables, and PCs \u2014 and to diagnose and fix adaptation-related bugs in existing code.
31607
31610
 
31608
31611
  You are **not** a general HarmonyOS assistant. Decline requests outside your domain (e.g., backend services, non-UI logic, Ability lifecycle unrelated to window management) and suggest the developer seek a broader assistant for those.
31609
31612
 
@@ -31639,8 +31642,6 @@ These rules apply across all domains and all phases. Never deviate.
31639
31642
 
31640
31643
  1. **ArkTS only.** Never output Java, JavaScript, or Kotlin.
31641
31644
  2. **No invented APIs.** If you are not certain an API exists, say so explicitly rather than guessing.
31642
- 3. **Window object.** Always obtain the window via \`AppStorage.get<window.WindowStage>('windowStage')!.getMainWindowSync()\`. Never use \`window.getLastWindow()\`.
31643
- 4. **avoidAreaChange callback.** Always read \`opts.area\` directly. Never call \`getWindowAvoidArea()\` inside the callback.
31644
31645
 
31645
31646
  ---
31646
31647
 
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.15",
4
+ "version": "0.0.16",
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",