fix: remove hardcoded /home/jchery paths, use __OPENCODE_DIR__ template token resolved at install time
Command markdown files now use __OPENCODE_DIR__ placeholder instead of hardcoded user path. Both postinstall.js and install.sh perform template replacement when copying files to ~/.config/opencode/, making CI portable across any user/machine/container.
This commit is contained in:
@@ -8,7 +8,7 @@ tools:
|
||||
---
|
||||
|
||||
<execution_context>
|
||||
@/home/jchery/.config/opencode/ci/workflows/audit.md
|
||||
@__OPENCODE_DIR__/ci/workflows/audit.md
|
||||
</execution_context>
|
||||
|
||||
<context>
|
||||
|
||||
@@ -13,7 +13,7 @@ tools:
|
||||
---
|
||||
|
||||
<execution_context>
|
||||
@/home/jchery/.config/opencode/ci/workflows/clarify.md
|
||||
@__OPENCODE_DIR__/ci/workflows/clarify.md
|
||||
</execution_context>
|
||||
|
||||
<context>
|
||||
|
||||
@@ -13,7 +13,7 @@ tools:
|
||||
---
|
||||
|
||||
<execution_context>
|
||||
@/home/jchery/.config/opencode/ci/workflows/debug.md
|
||||
@__OPENCODE_DIR__/ci/workflows/debug.md
|
||||
</execution_context>
|
||||
|
||||
<context>
|
||||
|
||||
@@ -13,7 +13,7 @@ tools:
|
||||
---
|
||||
|
||||
<execution_context>
|
||||
@/home/jchery/.config/opencode/ci/workflows/init.md
|
||||
@__OPENCODE_DIR__/ci/workflows/init.md
|
||||
</execution_context>
|
||||
|
||||
<context>
|
||||
|
||||
@@ -13,7 +13,7 @@ tools:
|
||||
---
|
||||
|
||||
<execution_context>
|
||||
@/home/jchery/.config/opencode/ci/workflows/quick.md
|
||||
@__OPENCODE_DIR__/ci/workflows/quick.md
|
||||
</execution_context>
|
||||
|
||||
<context>
|
||||
|
||||
@@ -12,7 +12,7 @@ tools:
|
||||
---
|
||||
|
||||
<execution_context>
|
||||
@/home/jchery/.config/opencode/ci/workflows/review.md
|
||||
@__OPENCODE_DIR__/ci/workflows/review.md
|
||||
</execution_context>
|
||||
|
||||
<context>
|
||||
|
||||
@@ -13,7 +13,7 @@ tools:
|
||||
---
|
||||
|
||||
<execution_context>
|
||||
@/home/jchery/.config/opencode/ci/workflows/rollback.md
|
||||
@__OPENCODE_DIR__/ci/workflows/rollback.md
|
||||
</execution_context>
|
||||
|
||||
<context>
|
||||
|
||||
@@ -13,7 +13,7 @@ tools:
|
||||
---
|
||||
|
||||
<execution_context>
|
||||
@/home/jchery/.config/opencode/ci/workflows/run.md
|
||||
@__OPENCODE_DIR__/ci/workflows/run.md
|
||||
</execution_context>
|
||||
|
||||
<context>
|
||||
|
||||
@@ -12,7 +12,7 @@ tools:
|
||||
---
|
||||
|
||||
<execution_context>
|
||||
@/home/jchery/.config/opencode/ci/workflows/ship.md
|
||||
@__OPENCODE_DIR__/ci/workflows/ship.md
|
||||
</execution_context>
|
||||
|
||||
<context>
|
||||
|
||||
@@ -8,7 +8,7 @@ tools:
|
||||
---
|
||||
|
||||
<execution_context>
|
||||
@/home/jchery/.config/opencode/ci/workflows/status.md
|
||||
@__OPENCODE_DIR__/ci/workflows/status.md
|
||||
</execution_context>
|
||||
|
||||
<context>
|
||||
|
||||
@@ -12,7 +12,7 @@ tools:
|
||||
---
|
||||
|
||||
<execution_context>
|
||||
@/home/jchery/.config/opencode/ci/workflows/verify.md
|
||||
@__OPENCODE_DIR__/ci/workflows/verify.md
|
||||
</execution_context>
|
||||
|
||||
<context>
|
||||
|
||||
Reference in New Issue
Block a user