@cmflow/agents 3.4.0-beta.32 → 3.4.0-beta.34
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 +48 -43
- package/dist/bin/cm-agents.mjs +88 -90
- package/dist/bin/cm-agents.mjs.map +1 -1
- package/package.json +3 -2
- package/scripts/setup.ps1 +0 -63
- package/scripts/setup.sh +0 -29
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cmflow/agents",
|
|
3
|
-
"version": "3.4.0-beta.
|
|
3
|
+
"version": "3.4.0-beta.34",
|
|
4
4
|
"description": "Tool to install all AI stuff for ClubMed devs on Codex and Claude",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "romakita",
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
"test:agent": "vitest run --agent",
|
|
20
20
|
"cm-agents": "node dist/bin/cm-agents.mjs",
|
|
21
21
|
"cm-agents:check": "yarn run cm-agents check",
|
|
22
|
-
"cm-agents:install": "yarn run cm-agents install --dryRun --reinstall"
|
|
22
|
+
"cm-agents:install": "yarn run cm-agents install --dryRun --reinstall",
|
|
23
|
+
"cm-agents:kibana": "yarn run cm-agents kibana setup"
|
|
23
24
|
},
|
|
24
25
|
"devDependencies": {
|
|
25
26
|
"@clack/prompts": "1.7.0",
|
package/scripts/setup.ps1
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
#Requires -Version 5.1
|
|
2
|
-
<#
|
|
3
|
-
.SYNOPSIS
|
|
4
|
-
Club Med — AI Tools Bootstrap (Windows, non-admin)
|
|
5
|
-
.DESCRIPTION
|
|
6
|
-
Installs mise (via winget) + Node.js 24, then delegates to @cmflow/agents.
|
|
7
|
-
Usage : irm URL | iex
|
|
8
|
-
.PARAMETER Reinstall
|
|
9
|
-
Passed through to cm-agents install --reinstall.
|
|
10
|
-
#>
|
|
11
|
-
param([switch]$Reinstall)
|
|
12
|
-
|
|
13
|
-
Set-StrictMode -Version Latest
|
|
14
|
-
$ErrorActionPreference = 'Stop'
|
|
15
|
-
|
|
16
|
-
function RefreshPath {
|
|
17
|
-
$machine = [System.Environment]::GetEnvironmentVariable('PATH', 'Machine')
|
|
18
|
-
$user = [System.Environment]::GetEnvironmentVariable('PATH', 'User')
|
|
19
|
-
$env:PATH = "$machine;$user"
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
function Has { param($cmd) [bool](Get-Command $cmd -ErrorAction SilentlyContinue) }
|
|
23
|
-
|
|
24
|
-
# ── 1 — Git (required by @cmflow/agents install) ──────────────────────────
|
|
25
|
-
if (-not (Has 'git')) {
|
|
26
|
-
Write-Host "Installing Git for Windows..."
|
|
27
|
-
winget install --id Git.Git --accept-source-agreements --accept-package-agreements --silent
|
|
28
|
-
RefreshPath
|
|
29
|
-
if (-not (Has 'git')) { throw "git not found after install. Reopen PowerShell and retry." }
|
|
30
|
-
Write-Host " git $(git --version)"
|
|
31
|
-
} else {
|
|
32
|
-
Write-Host " git $(git --version)"
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
# ── 2 — mise ──────────────────────────────────────────────────────────────
|
|
36
|
-
if (-not (Has 'mise')) {
|
|
37
|
-
Write-Host "Installing mise via winget..."
|
|
38
|
-
winget install --id jdx.mise --accept-source-agreements --accept-package-agreements --silent
|
|
39
|
-
RefreshPath
|
|
40
|
-
}
|
|
41
|
-
if (-not (Has 'mise')) { throw "mise not found after install. Reopen PowerShell and retry." }
|
|
42
|
-
Write-Host " mise $(mise --version)"
|
|
43
|
-
|
|
44
|
-
$profileDir = Split-Path $PROFILE
|
|
45
|
-
if (-not (Test-Path $profileDir)) { New-Item -ItemType Directory -Path $profileDir -Force | Out-Null }
|
|
46
|
-
if (-not (Test-Path $PROFILE)) { New-Item -ItemType File -Path $PROFILE -Force | Out-Null }
|
|
47
|
-
|
|
48
|
-
if (-not (Select-String -Path $PROFILE -Pattern 'mise activate' -Quiet)) {
|
|
49
|
-
Add-Content -Path $PROFILE -Value "`n(&mise activate pwsh) | Out-String | Invoke-Expression"
|
|
50
|
-
}
|
|
51
|
-
Invoke-Expression (& mise activate pwsh | Out-String)
|
|
52
|
-
|
|
53
|
-
# ── 3 — Node.js 24 ────────────────────────────────────────────────────────
|
|
54
|
-
$nodeInstalled = & mise ls node 2>$null | Select-String '24'
|
|
55
|
-
if (-not $nodeInstalled) {
|
|
56
|
-
mise use -g node@24
|
|
57
|
-
}
|
|
58
|
-
Write-Host " node $(node -v) · npm $(npm -v)"
|
|
59
|
-
|
|
60
|
-
# ── 4 — Delegate to @cmflow/agents ────────────────────────────────────────
|
|
61
|
-
$agentArgs = @('--yes', '@cmflow/agents@latest', 'install')
|
|
62
|
-
if ($Reinstall) { $agentArgs += '--reinstall' }
|
|
63
|
-
& npx @agentArgs
|
package/scripts/setup.sh
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# Club Med — AI Tools Bootstrap (macOS / Linux)
|
|
3
|
-
# Installs mise + Node.js 24, then delegates to @cmflow/agents.
|
|
4
|
-
# Usage : curl -sSf URL | bash
|
|
5
|
-
# curl -sSf URL | bash -s -- --reinstall
|
|
6
|
-
set -euo pipefail
|
|
7
|
-
|
|
8
|
-
MISE_BIN="$HOME/.local/bin/mise"
|
|
9
|
-
|
|
10
|
-
# ── 1 — mise ──────────────────────────────────────────────────────────────
|
|
11
|
-
if ! command -v mise &>/dev/null && [[ ! -x "$MISE_BIN" ]]; then
|
|
12
|
-
echo "Installing mise..."
|
|
13
|
-
curl -sSf "https://mise.run/${SHELL##*/}" | sh
|
|
14
|
-
export PATH="$HOME/.local/bin:$PATH"
|
|
15
|
-
elif [[ -x "$MISE_BIN" ]] && ! command -v mise &>/dev/null; then
|
|
16
|
-
export PATH="$HOME/.local/bin:$PATH"
|
|
17
|
-
fi
|
|
18
|
-
|
|
19
|
-
eval "$(mise activate bash)"
|
|
20
|
-
echo " mise $(mise --version)"
|
|
21
|
-
|
|
22
|
-
# ── 2 — Node.js 24 ────────────────────────────────────────────────────────
|
|
23
|
-
if ! mise ls node 2>/dev/null | grep -q '24'; then
|
|
24
|
-
mise use -g node@24
|
|
25
|
-
fi
|
|
26
|
-
echo " node $(node -v) · npm $(npm -v)"
|
|
27
|
-
|
|
28
|
-
# ── 3 — Delegate to @cmflow/agents ────────────────────────────────────────
|
|
29
|
-
exec npx --yes @cmflow/agents@latest install "$@"
|