rrce-workflow 0.2.74 → 0.2.76
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 +22 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1702,6 +1702,25 @@ function installAgentPrompts(config, workspacePath, dataPaths) {
|
|
|
1702
1702
|
const content = convertToOpenCodeAgent(prompt);
|
|
1703
1703
|
fs10.writeFileSync(path12.join(opencodePath, `${baseName}.md`), content);
|
|
1704
1704
|
}
|
|
1705
|
+
if (config.storageMode === "global") {
|
|
1706
|
+
const workspaceOpencode = path12.join(workspacePath, ".opencode");
|
|
1707
|
+
const globalOpencode = path12.join(primaryDataPath, ".opencode");
|
|
1708
|
+
try {
|
|
1709
|
+
if (fs10.existsSync(workspaceOpencode)) {
|
|
1710
|
+
fs10.rmSync(workspaceOpencode, { recursive: true, force: true });
|
|
1711
|
+
} else {
|
|
1712
|
+
try {
|
|
1713
|
+
if (fs10.lstatSync(workspaceOpencode).isSymbolicLink()) {
|
|
1714
|
+
fs10.unlinkSync(workspaceOpencode);
|
|
1715
|
+
}
|
|
1716
|
+
} catch (e) {
|
|
1717
|
+
}
|
|
1718
|
+
}
|
|
1719
|
+
fs10.symlinkSync(globalOpencode, workspaceOpencode, "dir");
|
|
1720
|
+
} catch (e) {
|
|
1721
|
+
console.error(`Warning: Could not create OpenCode symlink at ${workspaceOpencode}:`, e instanceof Error ? e.message : String(e));
|
|
1722
|
+
}
|
|
1723
|
+
}
|
|
1705
1724
|
}
|
|
1706
1725
|
}
|
|
1707
1726
|
}
|
|
@@ -1845,6 +1864,9 @@ function updateGitignore(workspacePath, storageMode, tools) {
|
|
|
1845
1864
|
if (tools.includes("antigravity")) {
|
|
1846
1865
|
entries.push(".agent/workflows/");
|
|
1847
1866
|
}
|
|
1867
|
+
if (tools.includes("opencode")) {
|
|
1868
|
+
entries.push(".opencode/");
|
|
1869
|
+
}
|
|
1848
1870
|
entries.push("*.code-workspace");
|
|
1849
1871
|
if (entries.length === 0) {
|
|
1850
1872
|
return false;
|