oh-my-opencode 2.12.3 → 2.12.4
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/cli/index.js +1 -1
- package/dist/index.js +5 -4
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -2657,7 +2657,7 @@ var require_napi = __commonJS((exports, module) => {
|
|
|
2657
2657
|
var require_package = __commonJS((exports, module) => {
|
|
2658
2658
|
module.exports = {
|
|
2659
2659
|
name: "oh-my-opencode",
|
|
2660
|
-
version: "2.12.
|
|
2660
|
+
version: "2.12.3",
|
|
2661
2661
|
description: "OpenCode plugin - custom agents (oracle, librarian) and enhanced features",
|
|
2662
2662
|
main: "dist/index.js",
|
|
2663
2663
|
types: "dist/index.d.ts",
|
package/dist/index.js
CHANGED
|
@@ -46279,12 +46279,13 @@ function createConfigHandler(deps) {
|
|
|
46279
46279
|
agentConfig["OpenCode-Builder"] = openCodeBuilderOverride ? { ...openCodeBuilderBase, ...openCodeBuilderOverride } : openCodeBuilderBase;
|
|
46280
46280
|
}
|
|
46281
46281
|
if (plannerEnabled) {
|
|
46282
|
-
const { name: _planName, ...planConfigWithoutName } = configAgent?.plan ?? {};
|
|
46282
|
+
const { name: _planName, mode: _planMode, ...planConfigWithoutName } = configAgent?.plan ?? {};
|
|
46283
46283
|
const migratedPlanConfig = migrateAgentConfig(planConfigWithoutName);
|
|
46284
46284
|
const plannerSisyphusOverride = pluginConfig.agents?.["Planner-Sisyphus"];
|
|
46285
|
+
const defaultModel = config3.model;
|
|
46285
46286
|
const plannerSisyphusBase = {
|
|
46286
|
-
|
|
46287
|
-
mode: "
|
|
46287
|
+
model: migratedPlanConfig.model ?? defaultModel,
|
|
46288
|
+
mode: "all",
|
|
46288
46289
|
prompt: PLAN_SYSTEM_PROMPT,
|
|
46289
46290
|
permission: PLAN_PERMISSION,
|
|
46290
46291
|
description: `${configAgent?.plan?.description ?? "Plan agent"} (OhMyOpenCode version)`,
|
|
@@ -46303,7 +46304,7 @@ function createConfigHandler(deps) {
|
|
|
46303
46304
|
value ? migrateAgentConfig(value) : value
|
|
46304
46305
|
])) : {};
|
|
46305
46306
|
const migratedBuild = configAgent?.build ? migrateAgentConfig(configAgent.build) : {};
|
|
46306
|
-
const planDemoteConfig = replacePlan ? {
|
|
46307
|
+
const planDemoteConfig = replacePlan ? { mode: "subagent", hidden: true } : undefined;
|
|
46307
46308
|
config3.agent = {
|
|
46308
46309
|
...agentConfig,
|
|
46309
46310
|
...Object.fromEntries(Object.entries(builtinAgents).filter(([k]) => k !== "Sisyphus")),
|