okstra 0.25.0 → 0.25.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 +1 -1
- package/runtime/BUILD.json +2 -2
- package/runtime/skills/okstra-run/SKILL.md +10 -18
package/package.json
CHANGED
package/runtime/BUILD.json
CHANGED
|
@@ -48,29 +48,21 @@ Never invent additional questions. Never reorder. Never use `AskUserQuestion` fo
|
|
|
48
48
|
|
|
49
49
|
```bash
|
|
50
50
|
if command -v okstra >/dev/null 2>&1; then
|
|
51
|
-
|
|
51
|
+
okstra ensure-installed >/dev/null 2>&1 || { echo "FAIL: okstra ensure-installed failed" >&2; exit 1; }
|
|
52
|
+
eval "$(okstra paths --shell)"
|
|
53
|
+
export PYTHONPATH="$OKSTRA_PYTHONPATH"
|
|
54
|
+
okstra check-project --json || { echo "FAIL: this project has no okstra setup. Tell the user to run /okstra-setup first." >&2; exit 1; }
|
|
52
55
|
else
|
|
53
|
-
|
|
56
|
+
npx -y okstra@latest ensure-installed >/dev/null 2>&1 || { echo "FAIL: okstra not installed; tell the user to run: npx okstra@latest install" >&2; exit 1; }
|
|
57
|
+
eval "$(npx -y okstra@latest paths --shell)"
|
|
58
|
+
export PYTHONPATH="$OKSTRA_PYTHONPATH"
|
|
59
|
+
npx -y okstra@latest check-project --json || { echo "FAIL: this project has no okstra setup. Tell the user to run /okstra-setup first." >&2; exit 1; }
|
|
54
60
|
fi
|
|
55
|
-
|
|
56
|
-
$OKSTRA_CMD ensure-installed >/dev/null 2>&1 || {
|
|
57
|
-
echo "FAIL: okstra not installed; tell the user to run: npx okstra@latest install" >&2
|
|
58
|
-
exit 1
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
eval "$($OKSTRA_CMD paths --shell)"
|
|
62
|
-
export PYTHONPATH="$OKSTRA_PYTHONPATH"
|
|
63
|
-
|
|
64
|
-
OKSTRA_PROJECT_INFO="$($OKSTRA_CMD check-project --json)" || {
|
|
65
|
-
echo "FAIL: this project has no okstra setup. Tell the user to run /okstra-setup first." >&2
|
|
66
|
-
echo "$OKSTRA_PROJECT_INFO" >&2
|
|
67
|
-
exit 1
|
|
68
|
-
}
|
|
69
61
|
```
|
|
70
62
|
|
|
71
|
-
If `
|
|
63
|
+
The `check-project --json` output goes to stdout; read it from the tool result. If its `ok` field is `false`, ask the user with a **plain text prompt** for an absolute project-root path; rerun `okstra check-project --cwd <path> --json`. Re-prompt with plain text on failure.
|
|
72
64
|
|
|
73
|
-
Parse `projectRoot` and `projectId` from
|
|
65
|
+
Parse `projectRoot` and `projectId` from that JSON output.
|
|
74
66
|
|
|
75
67
|
## Step 2: Initialize the wizard
|
|
76
68
|
|