@harmonyos-arkts/opencode-plugin 0.0.4 → 0.0.5
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 +2 -23
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -15222,28 +15222,6 @@ function createAscfAgent() {
|
|
|
15222
15222
|
return agent;
|
|
15223
15223
|
}
|
|
15224
15224
|
|
|
15225
|
-
// src/agents/one2many-agent.ts
|
|
15226
|
-
function getHmOne2ManyDescription() {
|
|
15227
|
-
return `
|
|
15228
|
-
HarmonyOS One-to-Many Adaptation \u2014 adapts applications for multiple device types (phone, tablet, foldable, 2-in-1, wearable, TV)
|
|
15229
|
-
`;
|
|
15230
|
-
}
|
|
15231
|
-
function createOne2ManyAgent() {
|
|
15232
|
-
const agent = {
|
|
15233
|
-
id: "harmonyos-one2many",
|
|
15234
|
-
name: "harmonyos-one2many",
|
|
15235
|
-
description: getHmOne2ManyDescription(),
|
|
15236
|
-
mode: "primary",
|
|
15237
|
-
prompt: buildHmAgentPrompt("one2many"),
|
|
15238
|
-
temperature: 0.3,
|
|
15239
|
-
permission: {
|
|
15240
|
-
"skillSearch": "deny"
|
|
15241
|
-
},
|
|
15242
|
-
metadata: void 0
|
|
15243
|
-
};
|
|
15244
|
-
return agent;
|
|
15245
|
-
}
|
|
15246
|
-
|
|
15247
15225
|
// src/agents/registry.ts
|
|
15248
15226
|
var AgentRegistry = class {
|
|
15249
15227
|
agents = /* @__PURE__ */ new Map();
|
|
@@ -15252,7 +15230,6 @@ var AgentRegistry = class {
|
|
|
15252
15230
|
this.register(createDesignAgent());
|
|
15253
15231
|
this.register(createHmDevelopmentAgent());
|
|
15254
15232
|
this.register(createAscfAgent());
|
|
15255
|
-
this.register(createOne2ManyAgent());
|
|
15256
15233
|
this.register(createHmExploreSubAgent());
|
|
15257
15234
|
}
|
|
15258
15235
|
register(agent) {
|
|
@@ -15484,6 +15461,8 @@ function createConfigHandler(_pluginConfig, agent, projectDir) {
|
|
|
15484
15461
|
config3.agent[id] = pluginAgentConfig;
|
|
15485
15462
|
}
|
|
15486
15463
|
}
|
|
15464
|
+
config3.agent.build = { "disable": true };
|
|
15465
|
+
config3.agent.plan = { "disable": true };
|
|
15487
15466
|
config3.default_agent = "harmonyos-plugin";
|
|
15488
15467
|
}
|
|
15489
15468
|
config3.command = config3.command || {};
|
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.5",
|
|
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",
|
|
@@ -48,4 +48,4 @@
|
|
|
48
48
|
"engines": {
|
|
49
49
|
"node": ">=18.0.0"
|
|
50
50
|
}
|
|
51
|
-
}
|
|
51
|
+
}
|