@darkrei08/setup-ai 3.0.1 → 3.0.2
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/README.md +9 -15
- package/package.json +1 -1
- package/setup-ai.ps1 +4 -3
- package/setup-ai.sh +8 -4
package/README.md
CHANGED
|
@@ -10,30 +10,24 @@ skill — each via its **official, current** method for your OS.
|
|
|
10
10
|
|
|
11
11
|
## Quick start
|
|
12
12
|
|
|
13
|
+
One command. No install, no clone. It opens a menu to choose what to set up:
|
|
14
|
+
|
|
13
15
|
```bash
|
|
14
|
-
# no install needed — runs the launcher once, then discards it
|
|
15
16
|
npx github:darkrei08/setup-ai
|
|
16
17
|
```
|
|
17
18
|
|
|
18
|
-
|
|
19
|
+
Prefer non-interactive? Same command, add a flag:
|
|
19
20
|
|
|
20
21
|
```bash
|
|
21
|
-
npx
|
|
22
|
-
npx
|
|
23
|
-
npx @darkrei08/setup-ai --all # everything incl. optional GUI apps
|
|
24
|
-
npm i -g @darkrei08/setup-ai && setup-ai # global command
|
|
22
|
+
npx github:darkrei08/setup-ai --only pi,codex,opencode # just these
|
|
23
|
+
npx github:darkrei08/setup-ai --all # everything
|
|
25
24
|
```
|
|
26
25
|
|
|
27
|
-
|
|
28
|
-
the right script: `setup-ai.ps1` on Windows (via `pwsh`), `setup-ai.sh` on
|
|
29
|
-
macOS/Linux (via `bash`). With no selection flag on an interactive terminal it
|
|
30
|
-
opens an arrow-key **multi-select menu** (↑/↓ move · Space toggle · `a` all ·
|
|
31
|
-
Enter confirm); on a non-interactive shell it installs the core set.
|
|
26
|
+
That's the whole thing. Three details worth knowing:
|
|
32
27
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
> updated PATH is picked up.
|
|
28
|
+
- **Windows PowerShell**: one command per line (no bash `\`). If node or git was just installed, open a **new terminal** so PATH refreshes.
|
|
29
|
+
- **What it does**: detects your OS and runs `setup-ai.sh` (macOS/Linux) or `setup-ai.ps1` (Windows). Menu keys: ↑/↓ move · Space toggle · `a` all · Enter.
|
|
30
|
+
- **Shorter name**: once it's on npm, drop `github:` → `npx @darkrei08/setup-ai` (run it from any folder except the repo's own source dir).
|
|
37
31
|
|
|
38
32
|
### npm vs npx
|
|
39
33
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@darkrei08/setup-ai",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"description": "Cross-OS installer for an AI coding toolchain (pi, codex, antigravity, opencode, herdr, gentle-ai, engram, Engineering Excellence) with an interactive module menu.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
package/setup-ai.ps1
CHANGED
|
@@ -33,7 +33,7 @@ param(
|
|
|
33
33
|
$ErrorActionPreference = 'Stop'
|
|
34
34
|
Set-StrictMode -Version Latest
|
|
35
35
|
|
|
36
|
-
$ScriptVersion = "3.0.
|
|
36
|
+
$ScriptVersion = "3.0.2"
|
|
37
37
|
$ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
|
|
38
38
|
$LogDir = Join-Path $ScriptDir "logs"
|
|
39
39
|
New-Item -ItemType Directory -Force -Path $LogDir | Out-Null
|
|
@@ -208,9 +208,10 @@ function Mod-Go {
|
|
|
208
208
|
function Mod-Ee {
|
|
209
209
|
Write-Log INFO "ee" "start" "Engineering Excellence"
|
|
210
210
|
if (-not (Test-Cmd npx)) { Write-Log WARN "ee" "npx_missing" "npx not found; install node first"; return }
|
|
211
|
-
|
|
211
|
+
# Keys are `skills` CLI agent names (claude-code, gemini-cli), not dir names.
|
|
212
|
+
$agents = @{ pi = ".pi"; 'claude-code' = ".claude"; 'gemini-cli' = ".gemini"; cursor = ".cursor"; antigravity = ".antigravity"; codex = ".codex"; opencode = ".config\opencode" }
|
|
212
213
|
$any = $false
|
|
213
|
-
foreach ($a in @('pi','claude','gemini','cursor','antigravity')) {
|
|
214
|
+
foreach ($a in @('pi','claude-code','gemini-cli','cursor','antigravity','codex','opencode')) {
|
|
214
215
|
if (Test-Path (Join-Path $HOME $agents[$a])) {
|
|
215
216
|
Invoke-Step -Phase "ee" -Optional -Action {
|
|
216
217
|
npx --yes skills@latest add $EE_Slug --skill $EE_Skill --global --agent $a --copy --yes
|
package/setup-ai.sh
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
set -Eeuo pipefail
|
|
27
27
|
IFS=$'\n\t'
|
|
28
28
|
|
|
29
|
-
SCRIPT_VERSION="3.0.
|
|
29
|
+
SCRIPT_VERSION="3.0.2"
|
|
30
30
|
|
|
31
31
|
SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
|
|
32
32
|
LOG_DIR="${SCRIPT_DIR}/logs"
|
|
@@ -602,16 +602,20 @@ mod_ee() {
|
|
|
602
602
|
|
|
603
603
|
# Install the skill for every detected agent using the modern skills CLI
|
|
604
604
|
# (replaces the old git-clone-and-move). Agents are detected by their config dir.
|
|
605
|
+
# Keys are the `skills` CLI agent names (claude-code, gemini-cli, ...), which
|
|
606
|
+
# differ from the config-dir basename; values are the dir we detect them by.
|
|
605
607
|
local agent dir
|
|
606
608
|
local -A agent_dir=(
|
|
607
609
|
[pi]="${HOME}/.pi"
|
|
608
|
-
[claude]="${HOME}/.claude"
|
|
609
|
-
[gemini]="${HOME}/.gemini"
|
|
610
|
+
[claude-code]="${HOME}/.claude"
|
|
611
|
+
[gemini-cli]="${HOME}/.gemini"
|
|
610
612
|
[cursor]="${HOME}/.cursor"
|
|
611
613
|
[antigravity]="${HOME}/.antigravity"
|
|
614
|
+
[codex]="${HOME}/.codex"
|
|
615
|
+
[opencode]="${HOME}/.config/opencode"
|
|
612
616
|
)
|
|
613
617
|
local installed_any=0
|
|
614
|
-
for agent in pi claude gemini cursor antigravity; do
|
|
618
|
+
for agent in pi claude-code gemini-cli cursor antigravity codex opencode; do
|
|
615
619
|
dir="${agent_dir[$agent]}"
|
|
616
620
|
[[ -d "${dir}" ]] || continue
|
|
617
621
|
run_optional "engineering-excellence" \
|