rrce-workflow 0.3.35 → 0.3.37
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 +5 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8092,7 +8092,8 @@ function detectExistingProject(workspacePath, workspaceName, globalPath) {
|
|
|
8092
8092
|
const rrceHome = globalPath || getDefaultRRCEHome2();
|
|
8093
8093
|
const globalConfigPath = path13.join(rrceHome, "workspaces", workspaceName, "config.yaml");
|
|
8094
8094
|
const workspaceConfigPath = path13.join(workspacePath, ".rrce-workflow", "config.yaml");
|
|
8095
|
-
const
|
|
8095
|
+
const workspaceOpenCodeConfig = path13.join(workspacePath, ".opencode", "opencode.json");
|
|
8096
|
+
const hasOpenCodeAgents = checkForWorkspaceOpenCodeAgents(workspaceOpenCodeConfig);
|
|
8096
8097
|
if (fs11.existsSync(globalConfigPath)) {
|
|
8097
8098
|
return {
|
|
8098
8099
|
isExisting: true,
|
|
@@ -8118,10 +8119,10 @@ function detectExistingProject(workspacePath, workspaceName, globalPath) {
|
|
|
8118
8119
|
configPath: null
|
|
8119
8120
|
};
|
|
8120
8121
|
}
|
|
8121
|
-
function
|
|
8122
|
-
if (!fs11.existsSync(
|
|
8122
|
+
function checkForWorkspaceOpenCodeAgents(configPath) {
|
|
8123
|
+
if (!fs11.existsSync(configPath)) return false;
|
|
8123
8124
|
try {
|
|
8124
|
-
const config = JSON.parse(fs11.readFileSync(
|
|
8125
|
+
const config = JSON.parse(fs11.readFileSync(configPath, "utf8"));
|
|
8125
8126
|
const agentKeys = Object.keys(config.agent || config.agents || {});
|
|
8126
8127
|
return agentKeys.some((key) => key.startsWith("rrce_"));
|
|
8127
8128
|
} catch {
|