@codemcp/workflows 6.22.0 → 6.22.1
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/package.json +2 -2
- package/packages/cli/dist/{chunk-QMPDZD7D.js → chunk-ZKTSATU2.js} +2669 -39
- package/packages/cli/dist/{cli-CY4PLNWR.js → cli-6HOSC22C.js} +8 -8
- package/packages/cli/dist/{dist-S4HQ3JQN.js → dist-PUE2THQS.js} +1 -1
- package/packages/cli/dist/index.js +1 -1
- package/packages/cli/package.json +1 -1
- package/packages/core/package.json +1 -1
- package/packages/docs/package.json +1 -1
- package/packages/mcp-server/package.json +1 -1
- package/packages/opencode-plugin/package.json +1 -1
- package/packages/opencode-tui-plugin/package.json +1 -1
- package/packages/visualizer/package.json +1 -1
|
@@ -2,8 +2,9 @@ import {
|
|
|
2
2
|
ConfigManager,
|
|
3
3
|
StateMachineLoader,
|
|
4
4
|
WorkflowManager,
|
|
5
|
-
generateSystemPrompt
|
|
6
|
-
|
|
5
|
+
generateSystemPrompt,
|
|
6
|
+
jsYaml
|
|
7
|
+
} from "./chunk-ZKTSATU2.js";
|
|
7
8
|
import "./chunk-R5U7XKVJ.js";
|
|
8
9
|
|
|
9
10
|
// src/cli.ts
|
|
@@ -1003,7 +1004,6 @@ import { readFile as readFile3, writeFile as writeFile3, mkdir as mkdir3 } from
|
|
|
1003
1004
|
import { existsSync as existsSync3 } from "fs";
|
|
1004
1005
|
import { join as join5, dirname as dirname3 } from "path";
|
|
1005
1006
|
import { fileURLToPath as fileURLToPath3 } from "url";
|
|
1006
|
-
import yaml from "js-yaml";
|
|
1007
1007
|
var __filename3 = fileURLToPath3(import.meta.url);
|
|
1008
1008
|
var __dirname3 = dirname3(__filename3);
|
|
1009
1009
|
var SUPPORTED_CAPABILITIES = [
|
|
@@ -1063,7 +1063,7 @@ async function mergeCapabilityModels(configPath, models) {
|
|
|
1063
1063
|
existingConfig = loaded;
|
|
1064
1064
|
} else {
|
|
1065
1065
|
const existingRaw = await readFile3(configPath, "utf-8");
|
|
1066
|
-
const parsed =
|
|
1066
|
+
const parsed = jsYaml.load(existingRaw);
|
|
1067
1067
|
if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) {
|
|
1068
1068
|
existingConfig = parsed;
|
|
1069
1069
|
}
|
|
@@ -1076,9 +1076,9 @@ async function mergeCapabilityModels(configPath, models) {
|
|
|
1076
1076
|
...newEntries
|
|
1077
1077
|
}
|
|
1078
1078
|
};
|
|
1079
|
-
const serialized =
|
|
1079
|
+
const serialized = jsYaml.dump(mergedConfig, { noRefs: true, sortKeys: false });
|
|
1080
1080
|
if (configExisted) {
|
|
1081
|
-
const existingSerialized =
|
|
1081
|
+
const existingSerialized = jsYaml.dump(existingConfig, {
|
|
1082
1082
|
noRefs: true,
|
|
1083
1083
|
sortKeys: false
|
|
1084
1084
|
});
|
|
@@ -1341,11 +1341,11 @@ var isLocal = existsSync4(join6(__dirname4, "../../core/dist/index.js"));
|
|
|
1341
1341
|
var generateSystemPrompt2;
|
|
1342
1342
|
var StateMachineLoader2;
|
|
1343
1343
|
if (isLocal) {
|
|
1344
|
-
const coreModule = await import("./dist-
|
|
1344
|
+
const coreModule = await import("./dist-PUE2THQS.js");
|
|
1345
1345
|
generateSystemPrompt2 = coreModule.generateSystemPrompt;
|
|
1346
1346
|
StateMachineLoader2 = coreModule.StateMachineLoader;
|
|
1347
1347
|
} else {
|
|
1348
|
-
const coreModule = await import("./dist-
|
|
1348
|
+
const coreModule = await import("./dist-PUE2THQS.js");
|
|
1349
1349
|
generateSystemPrompt2 = coreModule.generateSystemPrompt;
|
|
1350
1350
|
StateMachineLoader2 = coreModule.StateMachineLoader;
|
|
1351
1351
|
}
|