@ikieaneh/opencode-kit 0.6.6 → 0.6.7
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 +3 -2
- package/src/cli.js +6 -1
- package/src/init.sh +3 -0
- package/templates/contract.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ikieaneh/opencode-kit",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.7",
|
|
4
4
|
"description": "Standardized OpenCode orchestration framework — contract-based, rules-enforced, zero-touch agent workflow. Install as plugin.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "RizkiRachman",
|
|
@@ -46,7 +46,8 @@
|
|
|
46
46
|
"postinstall": "git config core.hooksPath .githooks 2>/dev/null || true",
|
|
47
47
|
"lint": "shellcheck -S error src/*.sh rules/*.sh test/shell/*.sh",
|
|
48
48
|
"lint-all": "shellcheck src/*.sh rules/*.sh test/shell/*.sh",
|
|
49
|
-
"format": "echo 'Formatting: not configured yet'"
|
|
49
|
+
"format": "echo 'Formatting: not configured yet'",
|
|
50
|
+
"test": "node test/integration.test.js && node test/e2e.test.js"
|
|
50
51
|
},
|
|
51
52
|
"bugs": {
|
|
52
53
|
"url": "https://github.com/RizkiRachman/opencode-kit/issues"
|
package/src/cli.js
CHANGED
|
@@ -76,7 +76,7 @@ const commands = {
|
|
|
76
76
|
const command = args[0];
|
|
77
77
|
|
|
78
78
|
if (commands[command]) {
|
|
79
|
-
const projectRoot = findProjectRoot(
|
|
79
|
+
const projectRoot = findProjectRoot(process.cwd());
|
|
80
80
|
|
|
81
81
|
if (!projectRoot) {
|
|
82
82
|
console.error('Not in an opencode-kit project');
|
|
@@ -87,3 +87,8 @@ if (commands[command]) {
|
|
|
87
87
|
const result = spawnSync('bash', [scriptPath], { stdio: 'inherit', cwd: projectRoot });
|
|
88
88
|
process.exit(result.status);
|
|
89
89
|
}
|
|
90
|
+
|
|
91
|
+
if (command === 'init' || command === 'update') {
|
|
92
|
+
console.log(`To run '${command}', use the script directly:\n bash src/${command}.sh [--force]\n`);
|
|
93
|
+
process.exit(0);
|
|
94
|
+
}
|
package/src/init.sh
CHANGED
|
@@ -127,6 +127,9 @@ if [ "$PLUGIN_MODE" = false ]; then
|
|
|
127
127
|
chmod +x .opencode/src/postflight.sh
|
|
128
128
|
echo " ✅ postflight.sh (executable)"
|
|
129
129
|
|
|
130
|
+
cp "$KIT_DIR/src/postflight.py" .opencode/src/postflight.py
|
|
131
|
+
echo " ✅ postflight.py"
|
|
132
|
+
|
|
130
133
|
cp "$KIT_DIR/src/update.sh" .opencode/src/update.sh
|
|
131
134
|
chmod +x .opencode/src/update.sh
|
|
132
135
|
echo " ✅ update.sh (executable)"
|