aidevops 3.39.206 → 3.39.207
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 +1 -1
- package/VERSION +1 -1
- package/aidevops.sh +7 -489
- package/package.json +1 -1
- package/setup.sh +1 -1
package/README.md
CHANGED
|
@@ -25,7 +25,7 @@ token efficiency, and quality control built in.**
|
|
|
25
25
|
[](https://qlty.sh/gh/marcusquinn/projects/aidevops)
|
|
26
26
|
[](https://app.codacy.com/gh/marcusquinn/aidevops/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
|
|
27
27
|
[](https://opensource.org/licenses/MIT)
|
|
28
|
-
[](https://github.com/marcusquinn/aidevops/releases)
|
|
29
29
|
[](https://www.npmjs.com/package/aidevops)
|
|
30
30
|
[](https://github.com/marcusquinn/homebrew-tap)
|
|
31
31
|
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.39.
|
|
1
|
+
3.39.207
|
package/aidevops.sh
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
# AI DevOps Framework CLI
|
|
6
6
|
# Usage: aidevops <command> [options]
|
|
7
7
|
#
|
|
8
|
-
# Version: 3.39.
|
|
8
|
+
# Version: 3.39.207
|
|
9
9
|
|
|
10
10
|
set -euo pipefail
|
|
11
11
|
|
|
@@ -227,6 +227,12 @@ source "${AIDEVOPS_CLI_MODULES_DIR}/aidevops-update-lib.sh"
|
|
|
227
227
|
# shellcheck source=.agents/scripts/aidevops-cli/aidevops-upgrade-planning-lib.sh
|
|
228
228
|
# shellcheck disable=SC1091
|
|
229
229
|
source "${AIDEVOPS_CLI_MODULES_DIR}/aidevops-upgrade-planning-lib.sh"
|
|
230
|
+
# shellcheck source=.agents/scripts/aidevops-cli/aidevops-help-lib.sh
|
|
231
|
+
# shellcheck disable=SC1091
|
|
232
|
+
source "${AIDEVOPS_CLI_MODULES_DIR}/aidevops-help-lib.sh"
|
|
233
|
+
# shellcheck source=.agents/scripts/aidevops-cli/aidevops-launch-worker-lib.sh
|
|
234
|
+
# shellcheck disable=SC1091
|
|
235
|
+
source "${AIDEVOPS_CLI_MODULES_DIR}/aidevops-launch-worker-lib.sh"
|
|
230
236
|
# shellcheck source=.agents/scripts/runtime-bundle-verifier.sh
|
|
231
237
|
# shellcheck disable=SC1091
|
|
232
238
|
source "$AIDEVOPS_RUNTIME_BUNDLE_VERIFIER"
|
|
@@ -1252,329 +1258,6 @@ cmd_setup() {
|
|
|
1252
1258
|
}
|
|
1253
1259
|
|
|
1254
1260
|
|
|
1255
|
-
# Help text helpers (extracted for complexity reduction)
|
|
1256
|
-
_help_commands() {
|
|
1257
|
-
echo "Commands:"
|
|
1258
|
-
echo " init [features] Initialize aidevops in current project"
|
|
1259
|
-
echo " project-config restore <slug> [--backup FILE] [--apply] Restore missing ignored local config only"
|
|
1260
|
-
echo " project-config set validator_timeout_seconds <n> Set an audited, ignored canonical timeout from any worktree"
|
|
1261
|
-
echo " setup --scope <s> Run scoped setup/deploy (opencode, agents, source-access, hooks, tabby, pulse, gui-desktop, ai-session, full)"
|
|
1262
|
-
echo " init-routines Scaffold private routines repo (--org <name> | --local)"
|
|
1263
|
-
echo " upgrade-planning Upgrade TODO.md/PLANS.md to latest templates"
|
|
1264
|
-
echo " features List available features for init"
|
|
1265
|
-
echo " skill <cmd> Manage agent skills (add/list/check/update/remove)"
|
|
1266
|
-
echo " skills <cmd> Discover skills (search/browse/describe/recommend)"
|
|
1267
|
-
echo " plugin <cmd> Manage plugins (add/list/update/enable/disable/remove)"
|
|
1268
|
-
echo " status Check installation status of all components"
|
|
1269
|
-
echo " doctor Detect duplicate installs and PATH conflicts (--fix to resolve)"
|
|
1270
|
-
echo " update Update aidevops to the latest version (alias: upgrade)"
|
|
1271
|
-
echo " upgrade Alias for update"
|
|
1272
|
-
echo " runtime-bundle Inspect retained bundles or run an explicit audited rollback"
|
|
1273
|
-
echo " release <cmd> Publish/status/reconcile a provenance-bound aidevops release"
|
|
1274
|
-
echo " pulse <cmd> Session-based pulse control (start/stop/status)"
|
|
1275
|
-
echo " schedule <cmd> Durable one-shot jobs (once/status/cancel)"
|
|
1276
|
-
echo " launch-worker Manually launch headless workers for GitHub issues"
|
|
1277
|
-
echo " worktree <cmd> Manage safe linked worktrees (add/list/remove/status/switch/clean) (alias: wt)"
|
|
1278
|
-
echo " auto-update <cmd> Manage automatic update polling (enable/disable/status)"
|
|
1279
|
-
echo " repo-sync <cmd> Daily git pull for repos in parent dirs (enable/disable/status/dirs)"
|
|
1280
|
-
echo " update-tools Check for outdated tools (--update to auto-update)"
|
|
1281
|
-
echo " repos [cmd] Manage registered projects (list/add/remove/clean)"
|
|
1282
|
-
echo " lint [cmd] Audit/configure native repo lint, format, typecheck, and hooks"
|
|
1283
|
-
echo " design <cmd> DESIGN.md detection, scaffolding, and brand guideline exports"
|
|
1284
|
-
echo " keywords <cmd> context/keywords.md search targets: scaffold, brief, sync, track, budget"
|
|
1285
|
-
echo " cleanup [cmd] Storage report/reclaim (all --apply) and branch cleanup"
|
|
1286
|
-
echo " model-accounts-pool OAuth account pool (list/check/diagnose/add/rotate/reset-cooldowns)"
|
|
1287
|
-
echo " gpt56-context <cmd> Manage the 300K GPT-5.6 OpenCode context cap (enable/disable/status)"
|
|
1288
|
-
echo " gpt6-context <cmd> Manage the default ~240K GPT-6 Sol/Luna compaction cap (enable/disable/status)"
|
|
1289
|
-
echo " astra-context <cmd> Manage the default ~240K Astra compaction target (enable/disable/status; disable = 400K)"
|
|
1290
|
-
echo " client-format Client request format alignment (extract/check/canary/monitor)"
|
|
1291
|
-
echo " opencode-db <cmd> OpenCode SQLite maintenance/session lookup (check/report/sessions/maintain/window/status/install)"
|
|
1292
|
-
echo " opencode [agent] [args] Launch OpenCode with Build+ and per-session DB isolation"
|
|
1293
|
-
echo " codex|claude [agent] [args] Launch with full permissions (default agent: build-plus)"
|
|
1294
|
-
echo " <runtime> [agent] [args] Also cursor, droid, gemini, continue, kilo, kiro, aider, amp, kimi, qwen"
|
|
1295
|
-
echo " Use <runtime> --help or --list-agents for launch options"
|
|
1296
|
-
echo " opencode-desktop Launch/install OpenCode Desktop with aidevops DB isolation"
|
|
1297
|
-
echo " opencode-sandbox Test OpenCode versions in isolation (install/run/check/clean)"
|
|
1298
|
-
echo " sessions [cmd] Live OpenCode sessions: list/show/send/ask/inbox/outbox/prune (bare: list)"
|
|
1299
|
-
echo " approve <cmd> Cryptographic issue/PR approval (setup/issue/pr/verify/status)"
|
|
1300
|
-
echo " circuit-breaker Supervisor circuit breaker (status/reset/check/trip) (alias: cb)"
|
|
1301
|
-
echo " issue <cmd> Interactive issue ownership (claim/release/status/scan-stale)"
|
|
1302
|
-
echo " security [cmd] Full security assessment (posture + hygiene + supply chain)"
|
|
1303
|
-
echo " contributions External contributions inbox (bare: status | seed/scan/stop/restart/install/uninstall)"
|
|
1304
|
-
echo " inbox [cmd] Capture transit zone (bare: status | provision/add/find/digest/help)"
|
|
1305
|
-
echo " email [cmd] Email mailbox management (mailbox add/list/test/remove)"
|
|
1306
|
-
echo " ip-check <cmd> IP reputation checks (check/batch/report/providers)"
|
|
1307
|
-
echo " review-gate <cmd> Configure review_gate merge policies (rate-limit/completion)"
|
|
1308
|
-
echo " github auth <cmd> Repository auth routes, App profiles, checks and local usage"
|
|
1309
|
-
echo " github-app-auth GitHub App auth setup/status and API route decisions"
|
|
1310
|
-
echo " source-access <cmd> Session-bound, sudo-signed source-read approvals"
|
|
1311
|
-
echo " secret <cmd> Manage secrets (set/rm/list/run/init/import/status)"
|
|
1312
|
-
echo " vault <cmd> Local encrypted Vault broker (init/unlock/lock/status/read/update)"
|
|
1313
|
-
echo " config <cmd> Feature toggles (list/get/set/reset/path/help)"
|
|
1314
|
-
echo " knowledge <cmd> Knowledge plane management (init/status/provision)"
|
|
1315
|
-
echo " campaign <cmd> Campaign plane: init/provision/ls (P1) + asset (P4) + new/list/status/archive (P2) + draft (P5) + launch/promote (P6) + grow (orchestration)"
|
|
1316
|
-
echo " stats <cmd> LLM usage analytics (summary/models/projects/costs/trend)"
|
|
1317
|
-
echo " tabby <cmd> Manage Tabby profiles (sync/status) and remote tmux tabs (sessions)"
|
|
1318
|
-
echo " buzz <cmd> Manage Buzz Desktop OpenCode ACP compatibility"
|
|
1319
|
-
echo " opencode-browse [cmd] Drive your own browser via OpenCode browse (status/pair/install/doctor)"
|
|
1320
|
-
echo " parent-status <N> Show decomposition state of parent-task issue #N (alias: ps)"
|
|
1321
|
-
echo " detect Find and register aidevops projects"
|
|
1322
|
-
echo " uninstall Remove aidevops from your system"
|
|
1323
|
-
echo " version Show version information"
|
|
1324
|
-
echo " help Show this help message"
|
|
1325
|
-
return 0
|
|
1326
|
-
}
|
|
1327
|
-
|
|
1328
|
-
_help_security_sections() {
|
|
1329
|
-
echo "Security:"
|
|
1330
|
-
echo " aidevops security # Run ALL checks (posture + hygiene + supply chain)"
|
|
1331
|
-
echo " aidevops security posture # Interactive security posture setup (gopass, gh, SSH)"
|
|
1332
|
-
echo " aidevops security status # Combined posture + hygiene summary"
|
|
1333
|
-
echo " aidevops security scan # Secret hygiene & supply chain scan"
|
|
1334
|
-
echo " aidevops security fix # Interactive credential hygiene remediation"
|
|
1335
|
-
echo " aidevops security scan-pth # Python .pth file audit (supply chain IoC)"
|
|
1336
|
-
echo " aidevops security scan-secrets # Plaintext credential locations"
|
|
1337
|
-
echo " aidevops security scan-deps # Unpinned dependency check"
|
|
1338
|
-
echo " aidevops security supply-chain scan [path] # npm supply-chain IOC scan"
|
|
1339
|
-
echo " aidevops security check # Per-repo security posture assessment"
|
|
1340
|
-
echo " aidevops security dismiss <id> # Dismiss a security advisory"
|
|
1341
|
-
echo ""
|
|
1342
|
-
echo "Temporary source access:"
|
|
1343
|
-
echo " aidevops update # Install/verify broker during normal setup"
|
|
1344
|
-
echo " sudo -k /usr/bin/python3 -I -B /etc/aidevops/source-access/source-access-helper.py approve <id> --ttl 12h"
|
|
1345
|
-
echo " aidevops source-access status # List active/expired approvals"
|
|
1346
|
-
echo " sudo -k /usr/bin/python3 -I -B /etc/aidevops/source-access/source-access-helper.py revoke <approval-id>"
|
|
1347
|
-
echo ""
|
|
1348
|
-
echo "IP Reputation:"
|
|
1349
|
-
echo " aidevops ip-check check <ip> # Check IP reputation across providers"
|
|
1350
|
-
echo " aidevops ip-check batch <f> # Batch check IPs from file"
|
|
1351
|
-
echo " aidevops ip-check report <ip># Generate markdown report"
|
|
1352
|
-
echo " aidevops ip-check providers # List available providers"
|
|
1353
|
-
echo " aidevops ip-check cache-stats# Show cache statistics"
|
|
1354
|
-
echo ""
|
|
1355
|
-
echo "Model Accounts Pool (OAuth):"
|
|
1356
|
-
echo " aidevops model-accounts-pool status # Pool health at a glance"
|
|
1357
|
-
echo " aidevops model-accounts-pool list # Per-account detail"
|
|
1358
|
-
echo " aidevops model-accounts-pool check # Live token validity test"
|
|
1359
|
-
echo " aidevops model-accounts-pool diagnose # Full pipeline diagnostics (pool, plugin, CCH, runtime)"
|
|
1360
|
-
echo " aidevops model-accounts-pool rotate [provider] # Switch to next available account NOW (use when rate-limited)"
|
|
1361
|
-
echo " aidevops model-accounts-pool reset-cooldowns # Clear rate-limit cooldowns"
|
|
1362
|
-
echo " aidevops model-accounts-pool add anthropic # Add Claude Pro/Max account"
|
|
1363
|
-
echo " aidevops model-accounts-pool add openai # Add ChatGPT Plus/Pro account"
|
|
1364
|
-
echo " aidevops model-accounts-pool add cursor # Add Cursor Pro account"
|
|
1365
|
-
echo " aidevops model-accounts-pool add google # Add Google AI Pro/Ultra/Workspace account"
|
|
1366
|
-
echo " aidevops model-accounts-pool import claude-cli # Import from Claude CLI auth"
|
|
1367
|
-
echo " aidevops model-accounts-pool assign-pending <provider># Assign stranded token"
|
|
1368
|
-
echo " aidevops model-accounts-pool remove <provider> <email># Remove an account"
|
|
1369
|
-
echo ""
|
|
1370
|
-
echo " Auth troubleshooting (run diagnose first, then recovery if needed):"
|
|
1371
|
-
echo " aidevops model-accounts-pool diagnose # 0. Full pipeline check (start here)"
|
|
1372
|
-
echo " aidevops model-accounts-pool status # 1. Check pool health"
|
|
1373
|
-
echo " aidevops model-accounts-pool check # 2. Test token validity"
|
|
1374
|
-
echo " aidevops model-accounts-pool rotate anthropic# 3. Switch account if rate-limited"
|
|
1375
|
-
echo " aidevops model-accounts-pool reset-cooldowns # 4. Clear cooldowns if all stuck"
|
|
1376
|
-
echo " aidevops model-accounts-pool add anthropic # 5. Re-add if pool empty"
|
|
1377
|
-
echo ""
|
|
1378
|
-
echo "Client Format:"
|
|
1379
|
-
echo " aidevops client-format # Show status + cached constants"
|
|
1380
|
-
echo " aidevops client-format extract # Re-extract constants from installed CLI"
|
|
1381
|
-
echo " aidevops client-format check # Verify cache matches installed CLI version"
|
|
1382
|
-
echo " aidevops client-format canary # Run drift check against real CLI (uses tokens)"
|
|
1383
|
-
echo " aidevops client-format monitor [cmd] # Traffic capture + diff (requires mitmproxy)"
|
|
1384
|
-
echo " aidevops client-format install-canary # Install daily drift check (launchd)"
|
|
1385
|
-
echo ""
|
|
1386
|
-
echo " If requests stop working after a CLI update:"
|
|
1387
|
-
echo " aidevops client-format extract # 1. Re-extract constants"
|
|
1388
|
-
echo " aidevops client-format canary # 2. Verify against real CLI"
|
|
1389
|
-
echo ""
|
|
1390
|
-
return 0
|
|
1391
|
-
}
|
|
1392
|
-
|
|
1393
|
-
_help_detailed_sections_content() {
|
|
1394
|
-
_help_security_sections
|
|
1395
|
-
echo "Secrets:"
|
|
1396
|
-
echo " aidevops secret set NAME # Store a secret (hidden input)"
|
|
1397
|
-
echo " aidevops secret rm NAME # Remove from gopass + plaintext (confirm or --yes)"
|
|
1398
|
-
echo " aidevops secret list # List secret names (never values)"
|
|
1399
|
-
echo " aidevops secret run CMD # Run with secrets injected + redacted"
|
|
1400
|
-
echo " aidevops secret init # Initialize gopass encrypted store"
|
|
1401
|
-
echo " aidevops secret import # Import from credentials.sh to gopass"
|
|
1402
|
-
echo " aidevops secret status # Show backend status"
|
|
1403
|
-
echo ""
|
|
1404
|
-
_help_vault_and_config_sections
|
|
1405
|
-
echo "Knowledge Plane:"
|
|
1406
|
-
echo " aidevops knowledge init repo # Provision _knowledge/ in current repo"
|
|
1407
|
-
echo " aidevops knowledge init personal # Provision at ~/.aidevops/.agent-workspace/knowledge/"
|
|
1408
|
-
echo " aidevops knowledge init off # Disable knowledge plane"
|
|
1409
|
-
echo " aidevops knowledge status # Show provisioning state"
|
|
1410
|
-
echo " aidevops knowledge provision [path] # Re-provision (idempotent)"
|
|
1411
|
-
echo " aidevops knowledge add <file|url> # Ingest file or URL into sources/"
|
|
1412
|
-
echo " aidevops knowledge list [--state s] [--kind k] # List all known sources"
|
|
1413
|
-
echo " aidevops knowledge search <query> # Search sources (grep fallback)"
|
|
1414
|
-
echo ""
|
|
1415
|
-
echo "Design Systems:"
|
|
1416
|
-
echo " aidevops design detect [path] # Detect whether a repo has a GUI/interface"
|
|
1417
|
-
echo " aidevops design scaffold [path] # Create DESIGN.md skeleton when missing"
|
|
1418
|
-
echo " aidevops design guidelines [path] --pdf # Generate brand guideline HTML/PDF exports"
|
|
1419
|
-
echo " aidevops design survey [--json] # Audit owned initialized GUI repos"
|
|
1420
|
-
echo " aidevops design issues --apply # File auto-dispatch issues for missing design artifacts"
|
|
1421
|
-
echo ""
|
|
1422
|
-
echo "Search Targets (context/keywords.md):"
|
|
1423
|
-
echo " aidevops keywords scaffold [path] # Create strategy + registry, gitignore data for public repos"
|
|
1424
|
-
echo " aidevops keywords brief --asset image # Slice targets/entities/rules for one job"
|
|
1425
|
-
echo " aidevops keywords sync # Merge registry with the private team hub"
|
|
1426
|
-
echo " aidevops keywords track --source github # Record rank observations (budget-gated paid sources)"
|
|
1427
|
-
echo " aidevops keywords survey | issues --apply # Backfill registered repos"
|
|
1428
|
-
echo ""
|
|
1429
|
-
echo "Campaign Plane:"
|
|
1430
|
-
echo " aidevops campaign init [<path>] # Provision _campaigns/ directory contract (P1)"
|
|
1431
|
-
echo " aidevops campaign provision [<path>] # Re-provision / repair (idempotent, P1)"
|
|
1432
|
-
echo " aidevops campaign ls [--active|--launched|--all] [<path>] # Directory listing (P1)"
|
|
1433
|
-
echo " aidevops campaign new <name> --intake <file> # Create validated active campaign (P2)"
|
|
1434
|
-
echo " aidevops campaign update <id> --intake <file> # Atomically update campaign intake (P2)"
|
|
1435
|
-
echo " aidevops campaign migrate <id> --intake <file> # Explicitly upgrade a legacy brief (P2)"
|
|
1436
|
-
echo " aidevops campaign list # Show all campaigns (P2)"
|
|
1437
|
-
echo " aidevops campaign status <id> # Detailed dossier for a campaign (P2)"
|
|
1438
|
-
echo " aidevops campaign archive <id> # Move launched/<id> → archive/ (P2)"
|
|
1439
|
-
echo " aidevops campaign asset add <file> [--target lib-brand|lib-swipe|campaign] # Ingest asset (P4)"
|
|
1440
|
-
echo " aidevops campaign asset list [--type image|video|audio|pdf|all] # List assets (P4)"
|
|
1441
|
-
echo " aidevops campaign asset preview <file> [--size 640] # Generate preview PNG (P4)"
|
|
1442
|
-
echo " aidevops campaign asset manifest <asset-id> # Show asset manifest entry (P4)"
|
|
1443
|
-
echo " aidevops campaign draft <id> --channel <ch> # AI-generated content draft (P5)"
|
|
1444
|
-
echo " aidevops campaign launch <id> # Move active/<id> → launched/, create templates (P6)"
|
|
1445
|
-
echo " aidevops campaign promote <id> [--results|--learnings] # Cross-plane promotion (P6)"
|
|
1446
|
-
echo " aidevops campaign feedback [<id>] # Surface _feedback/ insights for research (P6)"
|
|
1447
|
-
echo " aidevops campaign grow plan --intake <file> # Non-mutating growth orchestration plan"
|
|
1448
|
-
echo " aidevops campaign grow <start|status|resume> <id> # Evidence-backed growth checkpoint"
|
|
1449
|
-
echo ""
|
|
1450
|
-
echo "Performance Plane:"
|
|
1451
|
-
echo " aidevops performance init # Provision _performance/marketing/"
|
|
1452
|
-
echo " aidevops performance validate --adapter normalized --input <file>"
|
|
1453
|
-
echo " aidevops performance ingest --adapter normalized --input <file> [--dry-run]"
|
|
1454
|
-
echo " aidevops performance backfill --input <phase1.jsonl> [--dry-run]"
|
|
1455
|
-
echo " aidevops performance list [--source <source>|--subjects|--results]"
|
|
1456
|
-
echo " aidevops performance status [--json] # Coverage, freshness, quarantine"
|
|
1457
|
-
echo " aidevops performance reconcile --input <file> # Append owner decisions"
|
|
1458
|
-
echo " aidevops performance rebuild # Rebuild campaign summaries"
|
|
1459
|
-
echo " aidevops performance export --purpose measurement|audience --output <file>"
|
|
1460
|
-
echo ""
|
|
1461
|
-
echo "LLM Stats:"
|
|
1462
|
-
echo " aidevops stats # Show usage summary (last 30 days)"
|
|
1463
|
-
echo " aidevops stats summary # Overall usage summary"
|
|
1464
|
-
echo " aidevops stats models # Per-model breakdown"
|
|
1465
|
-
echo " aidevops stats projects # Per-project breakdown"
|
|
1466
|
-
echo " aidevops stats costs # Cost analysis with category breakdown"
|
|
1467
|
-
echo " aidevops stats trend # Usage trends over time"
|
|
1468
|
-
echo " aidevops stats ingest # Parse new Claude JSONL log entries"
|
|
1469
|
-
echo " aidevops stats sync-budget # Sync to budget tracker (t1100)"
|
|
1470
|
-
echo ""
|
|
1471
|
-
echo "Supervisor Circuit Breaker (t1331):"
|
|
1472
|
-
echo " aidevops circuit-breaker # Show breaker state (alias: cb)"
|
|
1473
|
-
echo " aidevops circuit-breaker status # Show breaker state"
|
|
1474
|
-
echo " aidevops circuit-breaker reset # Manually reset (resumes worker dispatch)"
|
|
1475
|
-
echo " aidevops circuit-breaker check # Exit 0 if dispatch allowed, 1 if paused"
|
|
1476
|
-
echo " aidevops circuit-breaker trip # Manually trip (testing)"
|
|
1477
|
-
echo " aidevops cb reset # Short alias for reset"
|
|
1478
|
-
echo ""
|
|
1479
|
-
echo " When the breaker trips (auto-filed GH issue), copy/paste:"
|
|
1480
|
-
echo " aidevops circuit-breaker reset"
|
|
1481
|
-
echo ""
|
|
1482
|
-
_help_management_sections
|
|
1483
|
-
return 0
|
|
1484
|
-
}
|
|
1485
|
-
|
|
1486
|
-
_help_detailed_sections() {
|
|
1487
|
-
_help_detailed_sections_content
|
|
1488
|
-
return 0
|
|
1489
|
-
}
|
|
1490
|
-
|
|
1491
|
-
_help_management_sections() {
|
|
1492
|
-
echo "Auto-Update:"
|
|
1493
|
-
echo " aidevops auto-update enable # Poll for updates every 10 min"
|
|
1494
|
-
echo " aidevops auto-update disable # Stop auto-updating"
|
|
1495
|
-
echo " aidevops auto-update status # Show auto-update state"
|
|
1496
|
-
echo " aidevops auto-update check # One-shot check and update now"
|
|
1497
|
-
echo ""
|
|
1498
|
-
echo "Repo Sync:"
|
|
1499
|
-
echo " aidevops repo-sync enable # Enable daily git pull for repos"
|
|
1500
|
-
echo " aidevops repo-sync disable # Disable daily sync"
|
|
1501
|
-
echo " aidevops repo-sync status # Show sync state and last results"
|
|
1502
|
-
echo " aidevops repo-sync check # One-shot sync all repos now"
|
|
1503
|
-
echo " aidevops repo-sync dirs list # List configured parent directories"
|
|
1504
|
-
echo " aidevops repo-sync dirs add # Add a parent directory"
|
|
1505
|
-
echo " aidevops repo-sync dirs rm # Remove a parent directory"
|
|
1506
|
-
echo " aidevops repo-sync config # Show/edit configuration"
|
|
1507
|
-
echo " aidevops repo-sync logs # View sync logs"
|
|
1508
|
-
echo ""
|
|
1509
|
-
echo "Agent Sources (private repos):"
|
|
1510
|
-
echo " aidevops sources add <path> # Add a local repo as agent source"
|
|
1511
|
-
echo " aidevops sources add-remote <url> # Clone and add remote repo"
|
|
1512
|
-
echo " aidevops sources remove <n> # Remove a source (keeps agents)"
|
|
1513
|
-
echo " aidevops sources list # List configured sources"
|
|
1514
|
-
echo " aidevops sources status # Show sync status"
|
|
1515
|
-
echo " aidevops sources sync # Sync all sources to custom/"
|
|
1516
|
-
echo ""
|
|
1517
|
-
echo "Plugins:"
|
|
1518
|
-
echo " aidevops plugin add <url> # Install a plugin from git repo"
|
|
1519
|
-
echo " aidevops plugin list # List installed plugins"
|
|
1520
|
-
echo " aidevops plugin update # Update all plugins"
|
|
1521
|
-
echo " aidevops plugin remove <n> # Remove a plugin"
|
|
1522
|
-
echo ""
|
|
1523
|
-
echo "Skill Management:"
|
|
1524
|
-
echo " aidevops skill add <source> # Import a skill from GitHub"
|
|
1525
|
-
echo " aidevops skill list # List imported skills"
|
|
1526
|
-
echo " aidevops skill check # Check for upstream updates"
|
|
1527
|
-
echo " aidevops skill update [name] # Update skills to latest"
|
|
1528
|
-
echo " aidevops skill remove <name> # Remove an imported skill"
|
|
1529
|
-
echo ""
|
|
1530
|
-
echo "Skill Discovery:"
|
|
1531
|
-
echo " aidevops skills search <q> # Search skills by keyword"
|
|
1532
|
-
echo " aidevops skills browse # Browse skills by category"
|
|
1533
|
-
echo " aidevops skills describe <n> # Show skill description"
|
|
1534
|
-
echo " aidevops skills recommend <t># Suggest skills for a task"
|
|
1535
|
-
echo " aidevops skills categories # List all categories"
|
|
1536
|
-
echo ""
|
|
1537
|
-
echo "Installation:"
|
|
1538
|
-
echo " brew install marcusquinn/tap/aidevops && aidevops update # macOS/Homebrew"
|
|
1539
|
-
echo " npm install -g aidevops && aidevops update # Linux/cross-platform"
|
|
1540
|
-
echo ""
|
|
1541
|
-
echo "Documentation: https://github.com/marcusquinn/aidevops"
|
|
1542
|
-
return 0
|
|
1543
|
-
}
|
|
1544
|
-
|
|
1545
|
-
# Help command
|
|
1546
|
-
cmd_help() {
|
|
1547
|
-
local version
|
|
1548
|
-
version=$(get_version)
|
|
1549
|
-
echo "AI DevOps Framework CLI v$version"
|
|
1550
|
-
echo ""
|
|
1551
|
-
echo "Usage: aidevops <command> [options]"
|
|
1552
|
-
echo ""
|
|
1553
|
-
_help_commands
|
|
1554
|
-
echo ""
|
|
1555
|
-
echo "Examples:"
|
|
1556
|
-
echo " aidevops init # Initialize with all features"
|
|
1557
|
-
echo " aidevops init planning # Initialize with planning only"
|
|
1558
|
-
echo " aidevops upgrade-planning # Upgrade planning files to latest"
|
|
1559
|
-
echo " aidevops features # List available features"
|
|
1560
|
-
echo " aidevops status # Check what's installed"
|
|
1561
|
-
echo " aidevops doctor # Find duplicate/conflicting installs"
|
|
1562
|
-
echo " aidevops doctor --fix # Interactively remove duplicates"
|
|
1563
|
-
echo " aidevops update # Update framework + check projects"
|
|
1564
|
-
echo " aidevops runtime-bundle list # List retained validated runtime bundle IDs"
|
|
1565
|
-
echo " aidevops gpt56-context # Manage the 300K GPT-5.6 OpenCode context cap"
|
|
1566
|
-
echo " aidevops gpt6-context enable # Cap GPT-6 Sol/Luna usable input near 240K"
|
|
1567
|
-
echo " aidevops repos # List registered projects"
|
|
1568
|
-
echo " aidevops launch-worker 22259 marcusquinn/aidevops --dry-run"
|
|
1569
|
-
echo " aidevops repos add # Register current project"
|
|
1570
|
-
echo " aidevops detect # Find unregistered projects"
|
|
1571
|
-
echo " aidevops update-tools # Check for outdated tools"
|
|
1572
|
-
echo " aidevops update-tools -u # Update all outdated tools"
|
|
1573
|
-
echo " aidevops uninstall # Remove aidevops"
|
|
1574
|
-
echo ""
|
|
1575
|
-
_help_detailed_sections
|
|
1576
|
-
return 0
|
|
1577
|
-
}
|
|
1578
1261
|
|
|
1579
1262
|
# Version command
|
|
1580
1263
|
cmd_version() {
|
|
@@ -1620,171 +1303,6 @@ _dispatch_config() {
|
|
|
1620
1303
|
return 0
|
|
1621
1304
|
}
|
|
1622
1305
|
|
|
1623
|
-
_launch_worker_usage() {
|
|
1624
|
-
cat <<'EOF'
|
|
1625
|
-
Usage: aidevops launch-worker <issue|issue,issue> [owner/repo] [options]
|
|
1626
|
-
aidevops launch-worker --batch <issue,issue> [owner/repo] [options]
|
|
1627
|
-
aidevops launch-worker status <issue> [owner/repo]
|
|
1628
|
-
|
|
1629
|
-
Launch one or more headless workers manually without waiting for the pulse.
|
|
1630
|
-
If owner/repo is omitted, it defaults to the current git repository's origin.
|
|
1631
|
-
|
|
1632
|
-
Options:
|
|
1633
|
-
--model <id> Override model (for example, anthropic/claude-opus-4-7).
|
|
1634
|
-
--agent <name> Worker agent name (default: Build+).
|
|
1635
|
-
--batch <list> Comma-separated issue numbers to launch.
|
|
1636
|
-
--dry-run Print the planned dispatch without launching.
|
|
1637
|
-
--no-ceremony Skip status/origin/assignee ceremony (debug only).
|
|
1638
|
-
-h, --help Show this help.
|
|
1639
|
-
|
|
1640
|
-
Output includes the worker PID, worktree path, log path, session key, and a
|
|
1641
|
-
status command for each launched issue.
|
|
1642
|
-
EOF
|
|
1643
|
-
return 0
|
|
1644
|
-
}
|
|
1645
|
-
|
|
1646
|
-
_launch_worker_default_repo() {
|
|
1647
|
-
local remote_url=""
|
|
1648
|
-
remote_url=$(git remote get-url origin 2>/dev/null || true)
|
|
1649
|
-
if [[ "$remote_url" =~ github\.com[:/]([^/]+/[^/.]+)(\.git)?$ ]]; then
|
|
1650
|
-
printf '%s\n' "${BASH_REMATCH[1]}"
|
|
1651
|
-
return 0
|
|
1652
|
-
fi
|
|
1653
|
-
return 1
|
|
1654
|
-
}
|
|
1655
|
-
|
|
1656
|
-
_launch_worker_helper_path() {
|
|
1657
|
-
local source_dir helper_path
|
|
1658
|
-
source_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
1659
|
-
helper_path="$source_dir/.agents/scripts/dispatch-single-issue-helper.sh"
|
|
1660
|
-
[[ ! -f "$helper_path" ]] && helper_path="$INSTALL_DIR/.agents/scripts/dispatch-single-issue-helper.sh"
|
|
1661
|
-
[[ ! -f "$helper_path" ]] && helper_path="$AGENTS_DIR/scripts/dispatch-single-issue-helper.sh"
|
|
1662
|
-
if [[ ! -f "$helper_path" ]]; then
|
|
1663
|
-
print_error "dispatch-single-issue-helper.sh not found. Run: aidevops update"
|
|
1664
|
-
return 1
|
|
1665
|
-
fi
|
|
1666
|
-
printf '%s\n' "$helper_path"
|
|
1667
|
-
return 0
|
|
1668
|
-
}
|
|
1669
|
-
|
|
1670
|
-
_launch_worker_status() {
|
|
1671
|
-
local status_issue="${1:-}"
|
|
1672
|
-
local status_repo="${2:-}"
|
|
1673
|
-
if [[ -z "$status_issue" ]]; then
|
|
1674
|
-
print_error "launch-worker status requires <issue> [owner/repo]"
|
|
1675
|
-
return 2
|
|
1676
|
-
fi
|
|
1677
|
-
if [[ -z "$status_repo" ]]; then
|
|
1678
|
-
status_repo=$(_launch_worker_default_repo) || {
|
|
1679
|
-
print_error "Could not infer owner/repo from git remote; pass it explicitly"
|
|
1680
|
-
return 2
|
|
1681
|
-
}
|
|
1682
|
-
fi
|
|
1683
|
-
local status_helper_path
|
|
1684
|
-
status_helper_path=$(_launch_worker_helper_path) || return 1
|
|
1685
|
-
bash "$status_helper_path" status "$status_issue" "$status_repo"
|
|
1686
|
-
return 0
|
|
1687
|
-
}
|
|
1688
|
-
|
|
1689
|
-
cmd_launch_worker() {
|
|
1690
|
-
local sub_or_issue="${1:-}"
|
|
1691
|
-
if [[ -z "$sub_or_issue" || "$sub_or_issue" == "help" || "$sub_or_issue" == "--help" || "$sub_or_issue" == "-h" ]]; then
|
|
1692
|
-
_launch_worker_usage
|
|
1693
|
-
return 0
|
|
1694
|
-
fi
|
|
1695
|
-
|
|
1696
|
-
if [[ "$sub_or_issue" == "status" ]]; then
|
|
1697
|
-
shift || true
|
|
1698
|
-
_launch_worker_status "$@"
|
|
1699
|
-
return $?
|
|
1700
|
-
fi
|
|
1701
|
-
|
|
1702
|
-
local issue_spec=""
|
|
1703
|
-
local repo_slug=""
|
|
1704
|
-
local batch_spec=""
|
|
1705
|
-
local -a helper_opts=()
|
|
1706
|
-
while [[ $# -gt 0 ]]; do
|
|
1707
|
-
local arg="$1"
|
|
1708
|
-
case "$arg" in
|
|
1709
|
-
--batch)
|
|
1710
|
-
if [[ $# -lt 2 || -z "${2:-}" || "${2:-}" == --* ]]; then
|
|
1711
|
-
print_error "--batch requires a comma-separated issue list"
|
|
1712
|
-
return 2
|
|
1713
|
-
fi
|
|
1714
|
-
batch_spec="${2}"
|
|
1715
|
-
shift 2
|
|
1716
|
-
;;
|
|
1717
|
-
--model | --agent)
|
|
1718
|
-
if [[ $# -lt 2 || -z "${2:-}" || "${2:-}" == --* ]]; then
|
|
1719
|
-
print_error "$arg requires a value"
|
|
1720
|
-
return 2
|
|
1721
|
-
fi
|
|
1722
|
-
helper_opts+=("$arg" "${2}")
|
|
1723
|
-
shift 2
|
|
1724
|
-
;;
|
|
1725
|
-
--dry-run | --no-ceremony)
|
|
1726
|
-
helper_opts+=("$arg")
|
|
1727
|
-
shift
|
|
1728
|
-
;;
|
|
1729
|
-
--help | -h)
|
|
1730
|
-
_launch_worker_usage
|
|
1731
|
-
return 0
|
|
1732
|
-
;;
|
|
1733
|
-
--*)
|
|
1734
|
-
print_error "Unknown launch-worker flag: $arg"
|
|
1735
|
-
return 2
|
|
1736
|
-
;;
|
|
1737
|
-
*)
|
|
1738
|
-
if [[ -z "$issue_spec" ]]; then
|
|
1739
|
-
issue_spec="$arg"
|
|
1740
|
-
elif [[ -z "$repo_slug" ]]; then
|
|
1741
|
-
repo_slug="$arg"
|
|
1742
|
-
else
|
|
1743
|
-
print_error "Unexpected launch-worker argument: $arg"
|
|
1744
|
-
return 2
|
|
1745
|
-
fi
|
|
1746
|
-
shift
|
|
1747
|
-
;;
|
|
1748
|
-
esac
|
|
1749
|
-
done
|
|
1750
|
-
|
|
1751
|
-
[[ -n "$batch_spec" ]] && issue_spec="$batch_spec"
|
|
1752
|
-
if [[ -z "$issue_spec" ]]; then
|
|
1753
|
-
print_error "launch-worker requires an issue number or --batch list"
|
|
1754
|
-
return 2
|
|
1755
|
-
fi
|
|
1756
|
-
if [[ -z "$repo_slug" ]]; then
|
|
1757
|
-
repo_slug=$(_launch_worker_default_repo) || {
|
|
1758
|
-
print_error "Could not infer owner/repo from git remote; pass it explicitly"
|
|
1759
|
-
return 2
|
|
1760
|
-
}
|
|
1761
|
-
fi
|
|
1762
|
-
if [[ ! "$repo_slug" =~ ^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$ ]]; then
|
|
1763
|
-
print_error "Repo slug must be owner/repo format: $repo_slug"
|
|
1764
|
-
return 2
|
|
1765
|
-
fi
|
|
1766
|
-
|
|
1767
|
-
local old_ifs="$IFS"
|
|
1768
|
-
IFS=','
|
|
1769
|
-
local -a issues=()
|
|
1770
|
-
read -r -a issues <<<"$issue_spec"
|
|
1771
|
-
IFS="$old_ifs"
|
|
1772
|
-
|
|
1773
|
-
local helper_path
|
|
1774
|
-
helper_path=$(_launch_worker_helper_path) || return 1
|
|
1775
|
-
|
|
1776
|
-
local issue rc=0
|
|
1777
|
-
for issue in "${issues[@]}"; do
|
|
1778
|
-
if [[ ! "$issue" =~ ^[0-9]+$ ]]; then
|
|
1779
|
-
print_error "Issue number must be numeric: $issue"
|
|
1780
|
-
rc=2
|
|
1781
|
-
continue
|
|
1782
|
-
fi
|
|
1783
|
-
bash "$helper_path" dispatch "$issue" "$repo_slug" "${helper_opts[@]}" || rc=$?
|
|
1784
|
-
echo "Status: aidevops launch-worker status $issue $repo_slug"
|
|
1785
|
-
done
|
|
1786
|
-
return "$rc"
|
|
1787
|
-
}
|
|
1788
1306
|
|
|
1789
1307
|
# Emit tip if the current directory has aidevops but isn't registered
|
|
1790
1308
|
_main_check_unregistered() {
|
package/package.json
CHANGED
package/setup.sh
CHANGED
|
@@ -17,7 +17,7 @@ fi
|
|
|
17
17
|
# AI Assistant Server Access Framework Setup Script
|
|
18
18
|
# Helps developers set up the framework for their infrastructure
|
|
19
19
|
#
|
|
20
|
-
# Version: 3.39.
|
|
20
|
+
# Version: 3.39.207
|
|
21
21
|
#
|
|
22
22
|
# Quick Install:
|
|
23
23
|
# npm install -g aidevops && aidevops update (recommended)
|