@orchestraai/agent-tools 0.7.0 → 0.8.0
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/.agents/plugins/marketplace.json +1 -1
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/.cursor-plugin/plugin.json +1 -1
- package/.devin/adapter.json +1 -1
- package/.hermes/adapter.json +1 -1
- package/.opencode/adapter.json +1 -1
- package/AGENTS.md +51 -14
- package/README.md +18 -17
- package/dist/agent-platforms.d.ts +1 -1
- package/dist/agent-platforms.js +2 -2
- package/dist/agent-platforms.js.map +1 -1
- package/dist/bin.js +10 -0
- package/dist/bin.js.map +1 -1
- package/dist/commands/onboarding.d.ts +2 -0
- package/dist/commands/onboarding.js +155 -0
- package/dist/commands/onboarding.js.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/onboarding/agents.d.ts +48 -0
- package/dist/onboarding/agents.js +90 -0
- package/dist/onboarding/agents.js.map +1 -0
- package/dist/onboarding/checklist.d.ts +37 -0
- package/dist/onboarding/checklist.js +116 -0
- package/dist/onboarding/checklist.js.map +1 -0
- package/dist/onboarding/init.d.ts +47 -0
- package/dist/onboarding/init.js +197 -0
- package/dist/onboarding/init.js.map +1 -0
- package/dist/onboarding/prompt.d.ts +15 -0
- package/dist/onboarding/prompt.js +31 -0
- package/dist/onboarding/prompt.js.map +1 -0
- package/dist/onboarding/start.d.ts +31 -0
- package/dist/onboarding/start.js +50 -0
- package/dist/onboarding/start.js.map +1 -0
- package/docs/engagement-and-pacing.md +8 -6
- package/install.sh +419 -65
- package/package.json +1 -1
package/install.sh
CHANGED
|
@@ -39,6 +39,13 @@ INSTALL_VERSION="${UNDERSTUDY_INSTALL_VERSION:-latest}"
|
|
|
39
39
|
ADVANCED=0
|
|
40
40
|
SETUP_CHOSEN=0
|
|
41
41
|
SETUP_MENU_ANSWERED=0
|
|
42
|
+
# quiet (person at a terminal: one line per step, detail in the log) or
|
|
43
|
+
# verbose (everything; the default for --yes, --non-interactive and CI).
|
|
44
|
+
OUTPUT_MODE="${UNDERSTUDY_INSTALL_OUTPUT:-}"
|
|
45
|
+
QUIET_RUN=0
|
|
46
|
+
QUIET_DETAIL=0
|
|
47
|
+
# 1 when a person is at the terminal (no --yes, --non-interactive or CI).
|
|
48
|
+
HUMAN_RUN=0
|
|
42
49
|
NO_CLAUDE=0
|
|
43
50
|
START_STEP=1
|
|
44
51
|
ONLY_STEP=""
|
|
@@ -64,6 +71,7 @@ while [ "$#" -gt 0 ]; do
|
|
|
64
71
|
--local-models) LOCAL_MODELS=1; SETUP_CHOSEN=1 ;;
|
|
65
72
|
--advanced) ADVANCED=1 ;;
|
|
66
73
|
--from-source) INSTALL_FROM_SOURCE=1 ;;
|
|
74
|
+
--verbose) OUTPUT_MODE=verbose ;;
|
|
67
75
|
--from-step) START_STEP="${2:?missing step number}"; shift ;;
|
|
68
76
|
--only-step) ONLY_STEP="${2:?missing step number}"; shift ;;
|
|
69
77
|
--resume) RESUME=1 ;;
|
|
@@ -95,6 +103,7 @@ Options:
|
|
|
95
103
|
Orchestra 2B model download (about 3.6 GB) in the background
|
|
96
104
|
--advanced choose which coding agents get the plugin
|
|
97
105
|
--from-source build the CLI from the GitHub source instead of npm
|
|
106
|
+
--verbose print every step (the default outside an interactive terminal)
|
|
98
107
|
--lower-my-ant-bill focus onboarding on lowering Anthropic/Claude API spend
|
|
99
108
|
--lower-my-anthropic-bill
|
|
100
109
|
alias for --lower-my-ant-bill
|
|
@@ -128,6 +137,7 @@ Environment overrides:
|
|
|
128
137
|
UNDERSTUDY_INSTALL_PACKAGE optional npm package spec override
|
|
129
138
|
UNDERSTUDY_INSTALL_VERSION npm version or dist-tag to install, default latest
|
|
130
139
|
UNDERSTUDY_INSTALL_FROM_SOURCE set to 1 to build from the GitHub source instead of npm
|
|
140
|
+
UNDERSTUDY_INSTALL_OUTPUT quiet or verbose; default quiet in an interactive terminal
|
|
131
141
|
UNDERSTUDY_INSTALL_FROM_CWD set to 1 to install agent adapters from a checkout in the current directory
|
|
132
142
|
UNDERSTUDY_NONINTERACTIVE set to 1 to use safe defaults without prompting
|
|
133
143
|
UNDERSTUDY_REQUIRE_CONFIRM set to 1 to fail when no prompt TTY exists
|
|
@@ -195,7 +205,10 @@ else
|
|
|
195
205
|
fi
|
|
196
206
|
|
|
197
207
|
log() { printf '%s %s\n' "$(date -u +"%Y-%m-%dT%H:%M:%SZ")" "$*" >>"$LOG_FILE"; }
|
|
208
|
+
# While QUIET_DETAIL is 1, say and ok only reach the install log; warnings and
|
|
209
|
+
# failures always print.
|
|
198
210
|
say() {
|
|
211
|
+
if [ "${QUIET_DETAIL:-0}" = "1" ]; then log "$*"; return 0; fi
|
|
199
212
|
if [ "$FANCY" = "1" ]; then
|
|
200
213
|
printf ' %s│%s %s\n' "$D" "$R" "$*"
|
|
201
214
|
else
|
|
@@ -218,6 +231,7 @@ redact_url() {
|
|
|
218
231
|
printf '%s\n' "$*" | sed -E 's#(://)[^/@[:space:]]+@#\1<redacted>@#g'
|
|
219
232
|
}
|
|
220
233
|
ok() {
|
|
234
|
+
if [ "${QUIET_DETAIL:-0}" = "1" ]; then log "$*"; return 0; fi
|
|
221
235
|
if [ "$FANCY" = "1" ]; then
|
|
222
236
|
printf ' %s✓%s %s\n' "$OKC" "$R" "$*"
|
|
223
237
|
else
|
|
@@ -259,6 +273,51 @@ section() {
|
|
|
259
273
|
fi
|
|
260
274
|
log "$*"
|
|
261
275
|
}
|
|
276
|
+
# Step headers are structure for logs; a person sees one line per step.
|
|
277
|
+
step_section() {
|
|
278
|
+
if [ "${QUIET_RUN:-0}" = "1" ]; then log "$*"; return 0; fi
|
|
279
|
+
section "$@"
|
|
280
|
+
}
|
|
281
|
+
ok_unlogged() {
|
|
282
|
+
if [ "$FANCY" = "1" ]; then
|
|
283
|
+
printf ' %s✓%s %s\n' "$OKC" "$R" "$*"
|
|
284
|
+
else
|
|
285
|
+
printf '\033[1morchestra\033[0m %s\n' "$*"
|
|
286
|
+
fi
|
|
287
|
+
}
|
|
288
|
+
# Something the person should act on. In quiet runs it is collected and shown
|
|
289
|
+
# once, in a "Needs attention" block at the end, so problems never interleave
|
|
290
|
+
# with progress; otherwise it prints as a warning right away.
|
|
291
|
+
ATTENTION_TEXT=""
|
|
292
|
+
ATTENTION_COUNT=0
|
|
293
|
+
attention() {
|
|
294
|
+
local message="$1" fix="${2:-}"
|
|
295
|
+
log "ATTENTION $message${fix:+ | $fix}"
|
|
296
|
+
if [ -n "${STATE_DIR:-}" ]; then
|
|
297
|
+
private_mkdir "$STATE_DIR"
|
|
298
|
+
printf '%s\t%s\n' "$message" "$fix" >>"$STATE_DIR/attention.txt"
|
|
299
|
+
fi
|
|
300
|
+
if [ "${QUIET_RUN:-0}" = "1" ]; then
|
|
301
|
+
ATTENTION_COUNT=$((ATTENTION_COUNT + 1))
|
|
302
|
+
ATTENTION_TEXT="${ATTENTION_TEXT}${message}
|
|
303
|
+
${fix}
|
|
304
|
+
"
|
|
305
|
+
return 0
|
|
306
|
+
fi
|
|
307
|
+
warn "$message"
|
|
308
|
+
[ -z "$fix" ] || say "$fix"
|
|
309
|
+
}
|
|
310
|
+
print_attention() {
|
|
311
|
+
local message fix
|
|
312
|
+
[ "$ATTENTION_COUNT" -gt 0 ] || return 0
|
|
313
|
+
section "Needs attention"
|
|
314
|
+
while IFS= read -r message && IFS= read -r fix; do
|
|
315
|
+
warn "$message"
|
|
316
|
+
[ -z "$fix" ] || say " $fix"
|
|
317
|
+
done <<ATTENTION
|
|
318
|
+
$ATTENTION_TEXT
|
|
319
|
+
ATTENTION
|
|
320
|
+
}
|
|
262
321
|
banner() {
|
|
263
322
|
if [ "$FANCY" != "1" ]; then
|
|
264
323
|
return 0
|
|
@@ -382,6 +441,19 @@ validate_agent_platforms() {
|
|
|
382
441
|
return 1
|
|
383
442
|
fi
|
|
384
443
|
}
|
|
444
|
+
# Like agent_platform_requested, but "all" does not count.
|
|
445
|
+
agent_platform_named() {
|
|
446
|
+
local wanted token
|
|
447
|
+
wanted="$(normalize_agent_platform "$1")"
|
|
448
|
+
set -f
|
|
449
|
+
# shellcheck disable=SC2046
|
|
450
|
+
set -- $(printf '%s\n' "$AGENT_PLATFORMS" | tr ',;' ' ')
|
|
451
|
+
set +f
|
|
452
|
+
for token in "$@"; do
|
|
453
|
+
[ "$(normalize_agent_platform "$token")" = "$wanted" ] && return 0
|
|
454
|
+
done
|
|
455
|
+
return 1
|
|
456
|
+
}
|
|
385
457
|
agent_platform_requested() {
|
|
386
458
|
local wanted token normalized
|
|
387
459
|
wanted="$(normalize_agent_platform "$1")"
|
|
@@ -536,10 +608,10 @@ select_agent_platforms() {
|
|
|
536
608
|
say " ${G2}1.${R} $(detected_agent_label "claude-code" "Claude Code")"
|
|
537
609
|
say " ${G3}2.${R} $(detected_agent_label "cursor" "Cursor")"
|
|
538
610
|
say " ${G4}3.${R} $(detected_agent_label "codex" "Codex")"
|
|
539
|
-
say " ${G5}4.${R} $(detected_agent_label "opencode" "OpenCode")"
|
|
540
|
-
say " ${G6}5.${R} $(detected_agent_label "hermes" "Hermes Agent")"
|
|
611
|
+
say " ${G5}4.${R} $(detected_agent_label "opencode" "OpenCode") ${D}(deprecated)${R}"
|
|
612
|
+
say " ${G6}5.${R} $(detected_agent_label "hermes" "Hermes Agent") ${D}(deprecated)${R}"
|
|
541
613
|
say " ${G6}6.${R} $(detected_agent_label "devin" "Devin")"
|
|
542
|
-
say " ${G6}7.${R} All detected coding agents"
|
|
614
|
+
say " ${G6}7.${R} All detected coding agents ${D}(except deprecated ones)${R}"
|
|
543
615
|
say " ${G6}8.${R} CLI only, no coding-agent plugins"
|
|
544
616
|
say "Press Enter for: all detected coding agents."
|
|
545
617
|
|
|
@@ -587,19 +659,19 @@ should_install_codex_adapter() {
|
|
|
587
659
|
esac
|
|
588
660
|
agent_platform_requested "codex"
|
|
589
661
|
}
|
|
662
|
+
# OpenCode and Hermes are deprecated: neither auto nor all installs them, but
|
|
663
|
+
# naming one in --agents still does.
|
|
590
664
|
should_install_opencode_adapter() {
|
|
591
665
|
case "$(normalize_agent_platform "$AGENT_PLATFORMS")" in
|
|
592
|
-
none) return 1 ;;
|
|
593
|
-
auto) detect_opencode; return ;;
|
|
666
|
+
none|auto) return 1 ;;
|
|
594
667
|
esac
|
|
595
|
-
|
|
668
|
+
agent_platform_named "opencode"
|
|
596
669
|
}
|
|
597
670
|
should_install_hermes_adapter() {
|
|
598
671
|
case "$(normalize_agent_platform "$AGENT_PLATFORMS")" in
|
|
599
|
-
none) return 1 ;;
|
|
600
|
-
auto) detect_hermes; return ;;
|
|
672
|
+
none|auto) return 1 ;;
|
|
601
673
|
esac
|
|
602
|
-
|
|
674
|
+
agent_platform_named "hermes"
|
|
603
675
|
}
|
|
604
676
|
should_install_devin_adapter() {
|
|
605
677
|
case "$(normalize_agent_platform "$AGENT_PLATFORMS")" in
|
|
@@ -687,10 +759,73 @@ manual_adapter_instructions() {
|
|
|
687
759
|
say " Devin: cloud-based, no local install — ask Devin to use the Orchestra onboarding skill for this project"
|
|
688
760
|
say "Or rerun this installer with an explicit adapter, e.g.: --agents claude-code"
|
|
689
761
|
}
|
|
762
|
+
agent_display_name() {
|
|
763
|
+
case "$1" in
|
|
764
|
+
claude-code) printf 'Claude Code' ;;
|
|
765
|
+
cursor) printf 'Cursor' ;;
|
|
766
|
+
codex) printf 'Codex' ;;
|
|
767
|
+
opencode) printf 'OpenCode' ;;
|
|
768
|
+
hermes) printf 'Hermes' ;;
|
|
769
|
+
devin) printf 'Devin' ;;
|
|
770
|
+
*) printf '%s' "$1" ;;
|
|
771
|
+
esac
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
# One line for a person: which agents got the plugin. Failures go to Needs
|
|
775
|
+
# attention; agents that simply aren't on this machine only reach the log.
|
|
776
|
+
summarize_agent_adapters_quiet() {
|
|
777
|
+
local name status reason names="" installed=0 unmet=0 selection
|
|
778
|
+
selection="$(normalize_agent_platform "$AGENT_PLATFORMS")"
|
|
779
|
+
while IFS='|' read -r name status reason; do
|
|
780
|
+
[ -n "$name" ] || continue
|
|
781
|
+
log "adapter $name: $status — $reason"
|
|
782
|
+
case "$status" in
|
|
783
|
+
installed)
|
|
784
|
+
installed=$((installed + 1))
|
|
785
|
+
names="${names:+$names, }$(agent_display_name "$name")"
|
|
786
|
+
;;
|
|
787
|
+
failed)
|
|
788
|
+
unmet=$((unmet + 1))
|
|
789
|
+
attention "The $(agent_display_name "$name") plugin did not install: $reason." "Details are in $LOG_FILE."
|
|
790
|
+
;;
|
|
791
|
+
disabled) ;;
|
|
792
|
+
*)
|
|
793
|
+
case "$selection" in
|
|
794
|
+
auto|all) [ "$reason" = "not selected or not detected" ] || unmet=$((unmet + 1)) ;;
|
|
795
|
+
*)
|
|
796
|
+
if adapter_explicitly_requested "$name"; then
|
|
797
|
+
unmet=$((unmet + 1))
|
|
798
|
+
attention "The $(agent_display_name "$name") plugin was skipped: $reason."
|
|
799
|
+
fi
|
|
800
|
+
;;
|
|
801
|
+
esac
|
|
802
|
+
;;
|
|
803
|
+
esac
|
|
804
|
+
done <<ADAPTERS
|
|
805
|
+
$ADAPTER_RESULTS
|
|
806
|
+
ADAPTERS
|
|
807
|
+
ADAPTERS_INSTALLED_COUNT="$installed"
|
|
808
|
+
ADAPTERS_UNMET_COUNT="$unmet"
|
|
809
|
+
if [ "$installed" -gt 0 ]; then
|
|
810
|
+
ok "Plugin installed: $names"
|
|
811
|
+
elif [ "$selection" != "none" ]; then
|
|
812
|
+
fail_line "No coding-agent plugin was installed; the Orchestra skills are not available in any coding agent yet."
|
|
813
|
+
manual_adapter_instructions
|
|
814
|
+
fi
|
|
815
|
+
}
|
|
816
|
+
|
|
690
817
|
summarize_agent_adapters() {
|
|
691
818
|
local name status reason installed=0 unmet=0 selection
|
|
692
819
|
selection="$(normalize_agent_platform "$AGENT_PLATFORMS")"
|
|
693
820
|
ADAPTERS_ATTEMPTED=1
|
|
821
|
+
# Machine-readable copy for `orchestra init`, which runs this step for a person.
|
|
822
|
+
private_mkdir "$STATE_DIR"
|
|
823
|
+
printf '%s' "$ADAPTER_RESULTS" >"$STATE_DIR/adapter-results.txt"
|
|
824
|
+
QUIET_DETAIL=0
|
|
825
|
+
if [ "$QUIET_RUN" = "1" ]; then
|
|
826
|
+
summarize_agent_adapters_quiet
|
|
827
|
+
return 0
|
|
828
|
+
fi
|
|
694
829
|
say ""
|
|
695
830
|
say "${B}Adapter summary${R}"
|
|
696
831
|
while IFS='|' read -r name status reason; do
|
|
@@ -700,7 +835,12 @@ summarize_agent_adapters() {
|
|
|
700
835
|
failed) fail_line "$name: failed — $reason"; unmet=$((unmet + 1)) ;;
|
|
701
836
|
disabled) say "$name: skipped — $reason" ;;
|
|
702
837
|
*)
|
|
703
|
-
|
|
838
|
+
# Agents that simply aren't on this machine are noise for a person.
|
|
839
|
+
if [ "$QUIET_RUN" = "1" ] && [ "$reason" = "not selected or not detected" ]; then
|
|
840
|
+
log "$name: skipped — $reason"
|
|
841
|
+
else
|
|
842
|
+
say "$name: skipped — $reason"
|
|
843
|
+
fi
|
|
704
844
|
# A skip counts as an unmet adapter when it was a real candidate:
|
|
705
845
|
# any candidate under auto/all, or an explicitly requested adapter.
|
|
706
846
|
# Skips of adapters the user never asked for don't count, and
|
|
@@ -858,6 +998,22 @@ install_from_npm_registry() {
|
|
|
858
998
|
log "npm $PACKAGE_NAME@$version is deprecated: $deprecated"
|
|
859
999
|
return 1
|
|
860
1000
|
fi
|
|
1001
|
+
# npm can point latest at a pre-release stand-in (0.0.0-stage while a
|
|
1002
|
+
# staged publish awaits approval) that ships no CLI. Only a release that
|
|
1003
|
+
# declares the orchestra command may replace a working install; a
|
|
1004
|
+
# pre-release is used only when UNDERSTUDY_INSTALL_VERSION names it.
|
|
1005
|
+
case "$version" in
|
|
1006
|
+
*-*)
|
|
1007
|
+
if [ "$INSTALL_VERSION" != "$version" ]; then
|
|
1008
|
+
log "npm $PACKAGE_NAME@$INSTALL_VERSION resolves to pre-release $version"
|
|
1009
|
+
return 1
|
|
1010
|
+
fi
|
|
1011
|
+
;;
|
|
1012
|
+
esac
|
|
1013
|
+
if ! npm view "$PACKAGE_NAME@$version" bin --json 2>>"$LOG_FILE" | grep -q '"orchestra"'; then
|
|
1014
|
+
log "npm $PACKAGE_NAME@$version does not declare the orchestra command"
|
|
1015
|
+
return 1
|
|
1016
|
+
fi
|
|
861
1017
|
say "Installing $PACKAGE_NAME@$version from npm."
|
|
862
1018
|
remove_previous_global_package
|
|
863
1019
|
if ! run_logged "Install the orchestra command" npm install -g --ignore-scripts "$PACKAGE_NAME@$version"; then
|
|
@@ -1000,6 +1156,10 @@ prepare_agent_first_signin() {
|
|
|
1000
1156
|
existing_email="$(credentials_email)"
|
|
1001
1157
|
remember_known_email "$existing_email" "existing Orchestra credentials"
|
|
1002
1158
|
if [ "$KEEP_LOGIN" = "1" ]; then
|
|
1159
|
+
if [ "$QUIET_RUN" = "1" ]; then
|
|
1160
|
+
if [ -n "$KNOWN_EMAIL" ]; then ok_unlogged "Signed in as $KNOWN_EMAIL"; else ok "Signed in to Orchestra"; fi
|
|
1161
|
+
return 0
|
|
1162
|
+
fi
|
|
1003
1163
|
section "Orchestra account"
|
|
1004
1164
|
if [ -n "$KNOWN_EMAIL" ]; then
|
|
1005
1165
|
say_unlogged "Already signed in as $KNOWN_EMAIL; keeping that sign-in."
|
|
@@ -1115,7 +1275,7 @@ start_local_model_lab() {
|
|
|
1115
1275
|
warn "The orchestra command is not on PATH; skipping the local model lab."
|
|
1116
1276
|
return 0
|
|
1117
1277
|
fi
|
|
1118
|
-
|
|
1278
|
+
step_section "Local model lab"
|
|
1119
1279
|
private_mkdir "$LOG_DIR"
|
|
1120
1280
|
private_mkdir "$STATE_DIR"
|
|
1121
1281
|
runtime_log="$LOG_DIR/mlx-runtime-$(date -u +"%Y%m%dT%H%M%SZ").log"
|
|
@@ -1140,6 +1300,98 @@ start_local_model_lab() {
|
|
|
1140
1300
|
LOCAL_MODEL_LAB_STARTED=1
|
|
1141
1301
|
}
|
|
1142
1302
|
|
|
1303
|
+
# GUI coding agents (Cursor, Codex, the Claude desktop app, ...) cannot be
|
|
1304
|
+
# launched with a first message, so give the user the same one-line prompt
|
|
1305
|
+
# Claude Code would get, ready to paste.
|
|
1306
|
+
CLAUDE_LAUNCHED=0
|
|
1307
|
+
AGENT_LAUNCHED=0
|
|
1308
|
+
|
|
1309
|
+
show_paste_prompt() {
|
|
1310
|
+
[ "$ADAPTERS_ATTEMPTED" != "1" ] || [ "$ADAPTERS_INSTALLED_COUNT" -gt 0 ] || return 0
|
|
1311
|
+
section "Paste into your coding agent"
|
|
1312
|
+
say "In a coding agent app (Cursor, Codex, Claude desktop, OpenCode, ...), open this project in a new chat and paste:"
|
|
1313
|
+
say_unlogged " ${B}$INITIAL_CLAUDE_PROMPT${R}"
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1316
|
+
# Only when Claude Code is not opened here and a person is at the terminal:
|
|
1317
|
+
# the prompt is the next thing they need.
|
|
1318
|
+
copy_paste_prompt_to_clipboard() {
|
|
1319
|
+
[ "$ADAPTERS_ATTEMPTED" != "1" ] || [ "$ADAPTERS_INSTALLED_COUNT" -gt 0 ] || return 0
|
|
1320
|
+
[ "$YES" = "0" ] || return 0
|
|
1321
|
+
noninteractive_enabled && return 0
|
|
1322
|
+
{ : </dev/tty >/dev/tty; } 2>/dev/null || return 0
|
|
1323
|
+
need pbcopy || return 0
|
|
1324
|
+
if printf '%s' "$INITIAL_CLAUDE_PROMPT" | pbcopy 2>/dev/null; then
|
|
1325
|
+
ok "Copied the prompt to your clipboard."
|
|
1326
|
+
fi
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
# The ending for a person at a terminal: what to paste into any coding agent
|
|
1330
|
+
# (copied to the clipboard), the one thing each installed agent needs first,
|
|
1331
|
+
# and an offer to start a terminal agent here with that prompt.
|
|
1332
|
+
start_onboarding() {
|
|
1333
|
+
local copied="" first="" choices="" n=0 answer pick=""
|
|
1334
|
+
[ "$ADAPTERS_INSTALLED_COUNT" -gt 0 ] || return 0
|
|
1335
|
+
if need pbcopy && printf '%s' "$INITIAL_CLAUDE_PROMPT" | pbcopy 2>/dev/null; then
|
|
1336
|
+
copied=" (copied to your clipboard)"
|
|
1337
|
+
fi
|
|
1338
|
+
section "Start onboarding"
|
|
1339
|
+
say "Paste into your coding agent$copied:"
|
|
1340
|
+
say_unlogged " ${B}$INITIAL_CLAUDE_PROMPT${R}"
|
|
1341
|
+
adapter_installed "claude-code" && first="${first:+$first · }Claude Code already open → /reload-plugins"
|
|
1342
|
+
adapter_installed "cursor" && first="${first:+$first · }Cursor → Developer: Reload Window"
|
|
1343
|
+
adapter_installed "codex" && first="${first:+$first · }Codex → enable orchestra in /plugins"
|
|
1344
|
+
adapter_installed "opencode" && first="${first:+$first · }OpenCode → new session"
|
|
1345
|
+
adapter_installed "hermes" && first="${first:+$first · }Hermes → /reload-skills"
|
|
1346
|
+
[ -z "$first" ] || say "${D}First: $first${R}"
|
|
1347
|
+
|
|
1348
|
+
if ! should_run_step 3 || [ "$LAUNCH_CLAUDE" != "1" ]; then
|
|
1349
|
+
mark_step_done 3
|
|
1350
|
+
return 0
|
|
1351
|
+
fi
|
|
1352
|
+
if adapter_installed "claude-code" && [ "$NO_CLAUDE" = "0" ] && need claude; then
|
|
1353
|
+
n=$((n + 1)); choices="${choices}${n}:claude "
|
|
1354
|
+
fi
|
|
1355
|
+
if adapter_installed "codex" && need codex; then
|
|
1356
|
+
n=$((n + 1)); choices="${choices}${n}:codex "
|
|
1357
|
+
fi
|
|
1358
|
+
if [ "$n" -eq 0 ]; then
|
|
1359
|
+
mark_step_done 3
|
|
1360
|
+
return 0
|
|
1361
|
+
fi
|
|
1362
|
+
local line="Or start one here:" item
|
|
1363
|
+
for item in $choices; do
|
|
1364
|
+
line="$line ${item%%:*}. $(agent_display_name "$( [ "${item#*:}" = claude ] && echo claude-code || echo "${item#*:}")")"
|
|
1365
|
+
done
|
|
1366
|
+
say "$line"
|
|
1367
|
+
printf " %s?%s Start %s[1, or n to finish]%s " "$G4" "$R" "$D" "$R" >/dev/tty 2>/dev/null || { mark_step_done 3; return 0; }
|
|
1368
|
+
read -r answer </dev/tty 2>/dev/null || answer="n"
|
|
1369
|
+
case "$answer" in
|
|
1370
|
+
n|N|no|NO) mark_step_done 3; return 0 ;;
|
|
1371
|
+
"") answer=1 ;;
|
|
1372
|
+
esac
|
|
1373
|
+
for item in $choices; do
|
|
1374
|
+
[ "${item%%:*}" = "$answer" ] && pick="${item#*:}"
|
|
1375
|
+
done
|
|
1376
|
+
case "$pick" in
|
|
1377
|
+
claude)
|
|
1378
|
+
LAUNCH_CONFIRMED=1
|
|
1379
|
+
launch_claude_code
|
|
1380
|
+
;;
|
|
1381
|
+
codex)
|
|
1382
|
+
say "Opening Codex here. If it can't find the Orchestra skill yet, enable orchestra in /plugins and send the prompt again."
|
|
1383
|
+
log "LAUNCH codex <initial-prompt>"
|
|
1384
|
+
AGENT_LAUNCHED=1
|
|
1385
|
+
codex "$INITIAL_CLAUDE_PROMPT" </dev/tty >/dev/tty 2>&1 || say "Codex exited with status $?."
|
|
1386
|
+
mark_step_done 3
|
|
1387
|
+
;;
|
|
1388
|
+
*)
|
|
1389
|
+
say "No agent started. Paste the prompt into your coding agent when you're ready."
|
|
1390
|
+
mark_step_done 3
|
|
1391
|
+
;;
|
|
1392
|
+
esac
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1143
1395
|
compose_initial_prompt() {
|
|
1144
1396
|
if [ -n "$USER_PROMPT_OVERRIDE" ]; then
|
|
1145
1397
|
INITIAL_CLAUDE_PROMPT="$USER_PROMPT_OVERRIDE"
|
|
@@ -1433,6 +1685,12 @@ link_opencode_path() {
|
|
|
1433
1685
|
if [ "$current" = "$src" ]; then
|
|
1434
1686
|
return 0
|
|
1435
1687
|
fi
|
|
1688
|
+
# A link to something that no longer exists holds nothing to protect.
|
|
1689
|
+
if [ ! -e "$dest" ]; then
|
|
1690
|
+
rm -f "$dest"
|
|
1691
|
+
ln -s "$src" "$dest"
|
|
1692
|
+
return 0
|
|
1693
|
+
fi
|
|
1436
1694
|
case "$current" in
|
|
1437
1695
|
*/@orchestraai/agent-tools/skills/*|*/@orchestraai/agent-tools/.opencode/commands/*|*orchestra-agent-tools/skills/*|*orchestra-agent-tools/.opencode/commands/*|*understudy-agent-tools/skills/*|*understudy-agent-tools/.opencode/commands/*)
|
|
1438
1696
|
rm -f "$dest"
|
|
@@ -1440,11 +1698,11 @@ link_opencode_path() {
|
|
|
1440
1698
|
return 0
|
|
1441
1699
|
;;
|
|
1442
1700
|
esac
|
|
1443
|
-
warn "OpenCode $kind already exists at $dest; leaving it unchanged."
|
|
1701
|
+
[ "$kind" = "skill" ] || warn "OpenCode $kind already exists at $dest; leaving it unchanged."
|
|
1444
1702
|
return 1
|
|
1445
1703
|
fi
|
|
1446
1704
|
if [ -e "$dest" ]; then
|
|
1447
|
-
warn "OpenCode $kind already exists at $dest; leaving it unchanged."
|
|
1705
|
+
[ "$kind" = "skill" ] || warn "OpenCode $kind already exists at $dest; leaving it unchanged."
|
|
1448
1706
|
return 1
|
|
1449
1707
|
fi
|
|
1450
1708
|
ln -s "$src" "$dest"
|
|
@@ -1457,7 +1715,7 @@ install_opencode_adapter() {
|
|
|
1457
1715
|
return 0
|
|
1458
1716
|
fi
|
|
1459
1717
|
|
|
1460
|
-
local repo skill_root command_root skill skill_name linked skipped command_src command_dest
|
|
1718
|
+
local repo skill_root command_root skill skill_name linked skipped skipped_names command_src command_dest conflicts_file
|
|
1461
1719
|
if ! repo="$(resolve_skill_repo)"; then
|
|
1462
1720
|
say "Could not find skills/understudy/SKILL.md; skipping OpenCode skill install."
|
|
1463
1721
|
adapter_prereq_missing "opencode" "skills/understudy/SKILL.md was not found"
|
|
@@ -1469,7 +1727,9 @@ install_opencode_adapter() {
|
|
|
1469
1727
|
mkdir -p "$skill_root" "$command_root"
|
|
1470
1728
|
linked=0
|
|
1471
1729
|
skipped=0
|
|
1730
|
+
skipped_names=""
|
|
1472
1731
|
|
|
1732
|
+
attention "OpenCode support is deprecated and will be removed in a future release; Claude Code, Codex and Cursor are the supported coding agents."
|
|
1473
1733
|
say "Installing the Orchestra OpenCode skills from $repo."
|
|
1474
1734
|
for skill in "$repo"/skills/*; do
|
|
1475
1735
|
[ -f "$skill/SKILL.md" ] || continue
|
|
@@ -1478,6 +1738,8 @@ install_opencode_adapter() {
|
|
|
1478
1738
|
linked=$((linked + 1))
|
|
1479
1739
|
else
|
|
1480
1740
|
skipped=$((skipped + 1))
|
|
1741
|
+
skipped_names="${skipped_names}${skill_name}
|
|
1742
|
+
"
|
|
1481
1743
|
fi
|
|
1482
1744
|
done
|
|
1483
1745
|
|
|
@@ -1494,6 +1756,18 @@ install_opencode_adapter() {
|
|
|
1494
1756
|
fi
|
|
1495
1757
|
|
|
1496
1758
|
ok "Orchestra OpenCode skills linked: $linked; skipped existing conflicts: $skipped."
|
|
1759
|
+
if [ "$skipped" -gt 0 ]; then
|
|
1760
|
+
# Folders or foreign links the installer did not create are never touched;
|
|
1761
|
+
# one summary instead of a warning per skill, with the names in a file.
|
|
1762
|
+
private_mkdir "$STATE_DIR"
|
|
1763
|
+
conflicts_file="$STATE_DIR/opencode-skill-conflicts.txt"
|
|
1764
|
+
printf '%s' "$skipped_names" >"$conflicts_file"
|
|
1765
|
+
local quiet_before="$QUIET_DETAIL"
|
|
1766
|
+
QUIET_DETAIL=0
|
|
1767
|
+
attention "$skipped OpenCode skills already exist in $skill_root as folders or links this installer did not create, so OpenCode keeps using those copies (names in $conflicts_file). To switch them to the current skills, move them aside and rerun with --agents opencode:" \
|
|
1768
|
+
"mkdir -p \"$skill_root.bak\" && while read -r s; do mv \"$skill_root/\$s\" \"$skill_root.bak/\"; done < \"$conflicts_file\""
|
|
1769
|
+
QUIET_DETAIL="$quiet_before"
|
|
1770
|
+
fi
|
|
1497
1771
|
if [ "$linked" -gt 0 ]; then
|
|
1498
1772
|
record_adapter "opencode" "installed" "linked $linked skills"
|
|
1499
1773
|
else
|
|
@@ -1544,6 +1818,12 @@ hermes_register_dir() {
|
|
|
1544
1818
|
if [ "$current" = "$skills_dir" ]; then
|
|
1545
1819
|
printf '%s\n' "$stable_link"; return 0
|
|
1546
1820
|
fi
|
|
1821
|
+
# A link to a folder that no longer exists holds nothing to protect.
|
|
1822
|
+
if [ ! -e "$stable_link" ]; then
|
|
1823
|
+
rm -f "$stable_link"
|
|
1824
|
+
ln -s "$skills_dir" "$stable_link"
|
|
1825
|
+
printf '%s\n' "$stable_link"; return 0
|
|
1826
|
+
fi
|
|
1547
1827
|
case "$current" in
|
|
1548
1828
|
*/@orchestraai/agent-tools/skills|*orchestra-agent-tools/skills|*understudy-agent-tools/skills)
|
|
1549
1829
|
rm -f "$stable_link"
|
|
@@ -1580,6 +1860,7 @@ install_hermes_adapter() {
|
|
|
1580
1860
|
register_dir="$(hermes_register_dir "$skills_dir")"
|
|
1581
1861
|
config="$(hermes_config_path)"
|
|
1582
1862
|
|
|
1863
|
+
attention "Hermes support is deprecated and will be removed in a future release; Claude Code, Codex and Cursor are the supported coding agents."
|
|
1583
1864
|
say "Registering the Orchestra skills with Hermes via $register_dir."
|
|
1584
1865
|
|
|
1585
1866
|
if [ ! -f "$config" ]; then
|
|
@@ -1728,8 +2009,8 @@ launch_claude_code() {
|
|
|
1728
2009
|
return 0
|
|
1729
2010
|
fi
|
|
1730
2011
|
|
|
1731
|
-
section "Step 3/3 · Open Claude Code"
|
|
1732
|
-
if ! { [ "$YES" = "1" ] || noninteractive_enabled; } && ! confirm_default_yes "Open Claude Code in $(pwd) now?"; then
|
|
2012
|
+
[ "${LAUNCH_CONFIRMED:-0}" = "1" ] || section "Step 3/3 · Open Claude Code"
|
|
2013
|
+
if [ "${LAUNCH_CONFIRMED:-0}" != "1" ] && ! { [ "$YES" = "1" ] || noninteractive_enabled; } && ! confirm_default_yes "Open Claude Code in $(pwd) now?"; then
|
|
1733
2014
|
say "Open Claude Code here whenever you're ready, then run /orchestra:onboard."
|
|
1734
2015
|
mark_step_done 3
|
|
1735
2016
|
return 0
|
|
@@ -1745,6 +2026,8 @@ launch_claude_code() {
|
|
|
1745
2026
|
# curl | bash leaves stdin on the pipe, so Claude Code gets the terminal
|
|
1746
2027
|
# directly. No session transcript is recorded.
|
|
1747
2028
|
# shellcheck disable=SC2086
|
|
2029
|
+
CLAUDE_LAUNCHED=1
|
|
2030
|
+
AGENT_LAUNCHED=1
|
|
1748
2031
|
claude ${permission_args[@]+"${permission_args[@]}"} --plugin-dir "$PKG_DIR" ${UNDERSTUDY_CLAUDE_ARGS:-} "$INITIAL_CLAUDE_PROMPT" </dev/tty >/dev/tty 2>&1 || {
|
|
1749
2032
|
local status="$?"
|
|
1750
2033
|
say "Claude Code exited with status $status."
|
|
@@ -1843,6 +2126,48 @@ need npm || {
|
|
|
1843
2126
|
validate_agent_platforms || exit 2
|
|
1844
2127
|
configure_resume
|
|
1845
2128
|
|
|
2129
|
+
if [ "$YES" = "0" ] && ! noninteractive_enabled && { : </dev/tty >/dev/tty; } 2>/dev/null; then
|
|
2130
|
+
HUMAN_RUN=1
|
|
2131
|
+
fi
|
|
2132
|
+
case "$OUTPUT_MODE" in
|
|
2133
|
+
quiet) QUIET_RUN=1 ;;
|
|
2134
|
+
verbose) ;;
|
|
2135
|
+
*) [ "$FANCY" = "1" ] && [ "$HUMAN_RUN" = "1" ] && QUIET_RUN=1 ;;
|
|
2136
|
+
esac
|
|
2137
|
+
|
|
2138
|
+
# A person at a terminal gets the guided setup from the CLI itself
|
|
2139
|
+
# (`orchestra init`: menus, a checklist, sign-in, and the start screen). The
|
|
2140
|
+
# installer only installs the CLI first. Scripts, CI, --yes and partial runs
|
|
2141
|
+
# keep the installer's own steps below.
|
|
2142
|
+
if [ "$HUMAN_RUN" = "1" ] && [ -z "$ONLY_STEP" ] && [ "$START_STEP" = "1" ] && [ "$RESUME" = "0" ] && [ "${UNDERSTUDY_INSTALL_GUIDED:-1}" = "1" ]; then
|
|
2143
|
+
banner
|
|
2144
|
+
printf '\n'
|
|
2145
|
+
QUIET_DETAIL=1
|
|
2146
|
+
install_understudy_package
|
|
2147
|
+
QUIET_DETAIL=0
|
|
2148
|
+
PKG_DIR="$(npm root -g)/$PACKAGE_NAME"
|
|
2149
|
+
if need orchestra; then
|
|
2150
|
+
UNDERSTUDY_HOME_MIGRATION=1 orchestra --version >/dev/null 2>>"$LOG_FILE" || true
|
|
2151
|
+
fi
|
|
2152
|
+
mark_step_done 1
|
|
2153
|
+
[ "$KEEP_LOGIN" = "1" ] || prepare_agent_first_signin
|
|
2154
|
+
ORCHESTRA_BIN="$(command -v orchestra || printf '%s/bin/orchestra' "$(npm prefix -g)")"
|
|
2155
|
+
if "$ORCHESTRA_BIN" init --help >/dev/null 2>&1; then
|
|
2156
|
+
INIT_ARGS=()
|
|
2157
|
+
[ "$LOCAL_MODELS" = "1" ] && INIT_ARGS+=(--local-models)
|
|
2158
|
+
[ "$SKIP_LOGIN" = "1" ] && INIT_ARGS+=(--skip-login)
|
|
2159
|
+
[ "$ADVANCED" = "1" ] && INIT_ARGS+=(--advanced)
|
|
2160
|
+
[ "$AGENT_PLATFORMS_EXPLICIT" = "1" ] && INIT_ARGS+=(--agents "$AGENT_PLATFORMS")
|
|
2161
|
+
lower_my_ant_bill_enabled && INIT_ARGS+=(--lower-anthropic-bill)
|
|
2162
|
+
[ "$LAUNCH_CLAUDE" = "1" ] || INIT_ARGS+=(--no-start)
|
|
2163
|
+
log "EXEC orchestra init ${INIT_ARGS[*]:-}"
|
|
2164
|
+
export UNDERSTUDY_LAB="$LAB" ORCHESTRA_INIT_FROM_INSTALLER=1
|
|
2165
|
+
exec "$ORCHESTRA_BIN" init ${INIT_ARGS[@]+"${INIT_ARGS[@]}"} </dev/tty >/dev/tty 2>&1
|
|
2166
|
+
fi
|
|
2167
|
+
warn "This CLI has no guided setup; continuing with the installer's own steps."
|
|
2168
|
+
START_STEP=2
|
|
2169
|
+
fi
|
|
2170
|
+
|
|
1846
2171
|
banner
|
|
1847
2172
|
if [ "$FANCY" = "1" ]; then
|
|
1848
2173
|
section "Welcome"
|
|
@@ -1850,6 +2175,7 @@ else
|
|
|
1850
2175
|
section "Welcome. We are going to install Orchestra for your coding agent."
|
|
1851
2176
|
fi
|
|
1852
2177
|
say "This installer sets up the Orchestra CLI, your Orchestra account, and the plugin for your coding agents."
|
|
2178
|
+
QUIET_DETAIL="$QUIET_RUN"
|
|
1853
2179
|
if [ -n "$INSTALL_PACKAGE" ]; then
|
|
1854
2180
|
warn "Source: npm package $(redact_url "$INSTALL_PACKAGE") (UNDERSTUDY_INSTALL_PACKAGE override) ${D}(installer commit: $INSTALLER_COMMIT)${R}"
|
|
1855
2181
|
elif [ "$INSTALL_SOURCE_OVERRIDDEN" = "1" ]; then
|
|
@@ -1858,9 +2184,14 @@ else
|
|
|
1858
2184
|
say "Source: $INSTALL_REPO_URL#$INSTALL_REF ${D}(installer commit: $INSTALLER_COMMIT)${R}"
|
|
1859
2185
|
fi
|
|
1860
2186
|
say "Install log: $LOG_FILE"
|
|
1861
|
-
|
|
2187
|
+
QUIET_DETAIL=0
|
|
1862
2188
|
choose_setup
|
|
1863
2189
|
select_agent_platforms
|
|
2190
|
+
# After a menu choice the plan is already on screen in the person's own
|
|
2191
|
+
# words; keep the restatement for the log.
|
|
2192
|
+
if [ "$QUIET_RUN" = "1" ] && [ "$SETUP_MENU_ANSWERED" = "1" ]; then
|
|
2193
|
+
QUIET_DETAIL=1
|
|
2194
|
+
fi
|
|
1864
2195
|
report_agent_selection
|
|
1865
2196
|
say "${B}Install plan${R}"
|
|
1866
2197
|
say " ${G2}1.${R} Install the Orchestra CLI."
|
|
@@ -1880,10 +2211,11 @@ if lower_my_ant_bill_enabled; then
|
|
|
1880
2211
|
say " ${G6}·${R} Focus onboarding on the lower Anthropic bill audit path."
|
|
1881
2212
|
fi
|
|
1882
2213
|
say ""
|
|
2214
|
+
say "This installer writes only under $LAB, $HOME/.understudy, the global npm prefix, and selected coding-agent plugin state."
|
|
2215
|
+
QUIET_DETAIL=0
|
|
1883
2216
|
if [ "$LOCAL_MODELS" != "1" ]; then
|
|
1884
2217
|
say "No model weights are downloaded and no frontier calls are made. Add the local model lab any time with --local-models."
|
|
1885
2218
|
fi
|
|
1886
|
-
say "This installer writes only under $LAB, $HOME/.understudy, the global npm prefix, and selected coding-agent plugin state."
|
|
1887
2219
|
if [ -n "${UNDERSTUDY_INSTALL_SOURCE_DIR:-}" ]; then
|
|
1888
2220
|
say "Scratch checkout (UNDERSTUDY_INSTALL_SOURCE_DIR): $INSTALL_SOURCE_DIR is deleted before and after the install."
|
|
1889
2221
|
fi
|
|
@@ -1896,8 +2228,13 @@ fi
|
|
|
1896
2228
|
PKG_DIR="$(npm root -g)/$PACKAGE_NAME"
|
|
1897
2229
|
|
|
1898
2230
|
if should_run_step 1; then
|
|
1899
|
-
|
|
2231
|
+
step_section "Step 1/3 · Install the CLI"
|
|
2232
|
+
QUIET_DETAIL="$QUIET_RUN"
|
|
1900
2233
|
install_understudy_package
|
|
2234
|
+
QUIET_DETAIL=0
|
|
2235
|
+
if [ "$QUIET_RUN" = "1" ] && need orchestra; then
|
|
2236
|
+
ok "Orchestra CLI $(orchestra --version 2>/dev/null || true)"
|
|
2237
|
+
fi
|
|
1901
2238
|
PKG_DIR="$(npm root -g)/$PACKAGE_NAME"
|
|
1902
2239
|
# Move ~/.understudy to ~/.orchestra (leaving a symlink) now, before the
|
|
1903
2240
|
# coding agent starts; every path this installer writes later goes through
|
|
@@ -1914,8 +2251,10 @@ prepare_agent_first_signin
|
|
|
1914
2251
|
sign_in_in_terminal
|
|
1915
2252
|
|
|
1916
2253
|
if should_run_step 2; then
|
|
1917
|
-
|
|
2254
|
+
step_section "Step 2/3 · Install agent adapters"
|
|
2255
|
+
QUIET_DETAIL="$QUIET_RUN"
|
|
1918
2256
|
install_agent_adapters
|
|
2257
|
+
QUIET_DETAIL=0
|
|
1919
2258
|
# An incomplete adapter install must not be marked resumable-complete, or a
|
|
1920
2259
|
# later --resume would start at step 3 and exit 0 with no plugin installed.
|
|
1921
2260
|
if [ "$(adapter_exit_code)" = "0" ]; then
|
|
@@ -1930,60 +2269,75 @@ fi
|
|
|
1930
2269
|
start_local_model_lab
|
|
1931
2270
|
compose_initial_prompt
|
|
1932
2271
|
|
|
1933
|
-
|
|
1934
|
-
#
|
|
1935
|
-
#
|
|
1936
|
-
#
|
|
1937
|
-
if [ "$ADAPTERS_ATTEMPTED"
|
|
1938
|
-
|
|
1939
|
-
say " Claude Code: run /reload-plugins and then /orchestra:onboard."
|
|
1940
|
-
say " Cursor: restart Cursor or run Developer: Reload Window, then ask Cursor Agent to use the Orchestra onboarding skill."
|
|
1941
|
-
say " Codex: run /plugins, install or enable orchestra, then ask Codex to use the Orchestra onboarding skill."
|
|
1942
|
-
say " OpenCode: restart the TUI or open a new session, then run /orchestra-onboard."
|
|
1943
|
-
say " Hermes: run /reload-skills in an open session (or start a new hermes session), then run /onboard or ask Hermes to use the Orchestra onboarding skill."
|
|
1944
|
-
say " Devin: ask Devin to use the Orchestra onboarding skill for this project. For persistent installs, run this installer with --yes --agents devin --no-launch-agent in the Devin environment blueprint."
|
|
1945
|
-
elif [ "$ADAPTERS_INSTALLED_COUNT" -eq 0 ]; then
|
|
1946
|
-
if [ "$(normalize_agent_platform "$AGENT_PLATFORMS")" = "none" ]; then
|
|
1947
|
-
say "The installer is done. No coding-agent plugins were requested, so only the orchestra CLI was installed."
|
|
1948
|
-
say "Rerun this installer with --agents claude-code (or another adapter) when you want the skills inside a coding agent."
|
|
1949
|
-
elif [ "${ADAPTERS_UNMET_COUNT:-0}" -eq 0 ]; then
|
|
1950
|
-
say "The installer is done. Every selected coding-agent adapter was disabled by a flag (e.g. --no-claude), so only the orchestra CLI was installed."
|
|
1951
|
-
say "Rerun this installer without the disable flag (or with --agents <adapter>) when you want the skills inside a coding agent."
|
|
1952
|
-
else
|
|
1953
|
-
fail_line "The installer finished, but no coding-agent plugin was installed — the Orchestra skills are NOT ready in any coding agent."
|
|
1954
|
-
say "Use the manual install commands above (or rerun this installer with --agents <adapter>), then run the platform's reload step before onboarding."
|
|
1955
|
-
fi
|
|
2272
|
+
print_attention
|
|
2273
|
+
# A person at the terminal gets one ending: what to paste, what each agent
|
|
2274
|
+
# needs first, and an offer to start a terminal agent. Scripts and CI keep
|
|
2275
|
+
# the full per-agent instructions.
|
|
2276
|
+
if [ "$HUMAN_RUN" = "1" ] && [ "$ADAPTERS_ATTEMPTED" = "1" ] && [ "$ADAPTERS_INSTALLED_COUNT" -gt 0 ]; then
|
|
2277
|
+
start_onboarding
|
|
1956
2278
|
else
|
|
1957
|
-
|
|
1958
|
-
|
|
2279
|
+
section "Where this goes next"
|
|
2280
|
+
# Only promise per-agent next steps for adapters that actually installed;
|
|
2281
|
+
# when the adapter step ran and installed nothing, hand out recovery
|
|
2282
|
+
# instructions instead of claiming the skills are ready.
|
|
2283
|
+
if [ "$ADAPTERS_ATTEMPTED" != "1" ]; then
|
|
2284
|
+
say "The installer is done. The next experience belongs inside your coding agent:"
|
|
1959
2285
|
say " Claude Code: run /reload-plugins and then /orchestra:onboard."
|
|
1960
|
-
fi
|
|
1961
|
-
if adapter_installed "cursor"; then
|
|
1962
2286
|
say " Cursor: restart Cursor or run Developer: Reload Window, then ask Cursor Agent to use the Orchestra onboarding skill."
|
|
1963
|
-
fi
|
|
1964
|
-
if adapter_installed "codex"; then
|
|
1965
2287
|
say " Codex: run /plugins, install or enable orchestra, then ask Codex to use the Orchestra onboarding skill."
|
|
1966
|
-
fi
|
|
1967
|
-
if adapter_installed "opencode"; then
|
|
1968
2288
|
say " OpenCode: restart the TUI or open a new session, then run /orchestra-onboard."
|
|
1969
|
-
fi
|
|
1970
|
-
if adapter_installed "hermes"; then
|
|
1971
2289
|
say " Hermes: run /reload-skills in an open session (or start a new hermes session), then run /onboard or ask Hermes to use the Orchestra onboarding skill."
|
|
1972
|
-
fi
|
|
1973
|
-
if adapter_installed "devin"; then
|
|
1974
2290
|
say " Devin: ask Devin to use the Orchestra onboarding skill for this project. For persistent installs, run this installer with --yes --agents devin --no-launch-agent in the Devin environment blueprint."
|
|
2291
|
+
elif [ "$ADAPTERS_INSTALLED_COUNT" -eq 0 ]; then
|
|
2292
|
+
if [ "$(normalize_agent_platform "$AGENT_PLATFORMS")" = "none" ]; then
|
|
2293
|
+
say "The installer is done. No coding-agent plugins were requested, so only the orchestra CLI was installed."
|
|
2294
|
+
say "Rerun this installer with --agents claude-code (or another adapter) when you want the skills inside a coding agent."
|
|
2295
|
+
elif [ "${ADAPTERS_UNMET_COUNT:-0}" -eq 0 ]; then
|
|
2296
|
+
say "The installer is done. Every selected coding-agent adapter was disabled by a flag (e.g. --no-claude), so only the orchestra CLI was installed."
|
|
2297
|
+
say "Rerun this installer without the disable flag (or with --agents <adapter>) when you want the skills inside a coding agent."
|
|
2298
|
+
else
|
|
2299
|
+
fail_line "The installer finished, but no coding-agent plugin was installed — the Orchestra skills are NOT ready in any coding agent."
|
|
2300
|
+
say "Use the manual install commands above (or rerun this installer with --agents <adapter>), then run the platform's reload step before onboarding."
|
|
2301
|
+
fi
|
|
2302
|
+
else
|
|
2303
|
+
say "The installer is done. The next experience belongs inside your coding agent:"
|
|
2304
|
+
if adapter_installed "claude-code"; then
|
|
2305
|
+
say " Claude Code: run /reload-plugins and then /orchestra:onboard."
|
|
2306
|
+
fi
|
|
2307
|
+
if adapter_installed "cursor"; then
|
|
2308
|
+
say " Cursor: restart Cursor or run Developer: Reload Window, then ask Cursor Agent to use the Orchestra onboarding skill."
|
|
2309
|
+
fi
|
|
2310
|
+
if adapter_installed "codex"; then
|
|
2311
|
+
say " Codex: run /plugins, install or enable orchestra, then ask Codex to use the Orchestra onboarding skill."
|
|
2312
|
+
fi
|
|
2313
|
+
if adapter_installed "opencode"; then
|
|
2314
|
+
say " OpenCode: restart the TUI or open a new session, then run /orchestra-onboard."
|
|
2315
|
+
fi
|
|
2316
|
+
if adapter_installed "hermes"; then
|
|
2317
|
+
say " Hermes: run /reload-skills in an open session (or start a new hermes session), then run /onboard or ask Hermes to use the Orchestra onboarding skill."
|
|
2318
|
+
fi
|
|
2319
|
+
if adapter_installed "devin"; then
|
|
2320
|
+
say " Devin: ask Devin to use the Orchestra onboarding skill for this project. For persistent installs, run this installer with --yes --agents devin --no-launch-agent in the Devin environment blueprint."
|
|
2321
|
+
fi
|
|
2322
|
+
fi
|
|
2323
|
+
if lower_my_ant_bill_enabled; then
|
|
2324
|
+
say "Focused path: lower Anthropic bill. Ask the agent to use onboarding with the lower-Anthropic-bill path, then run the lower-anthropic-bill skill."
|
|
2325
|
+
fi
|
|
2326
|
+
if [ "$ADAPTERS_ATTEMPTED" != "1" ] || [ "$ADAPTERS_INSTALLED_COUNT" -gt 0 ]; then
|
|
2327
|
+
[ "$QUIET_RUN" = "1" ] || say "Onboarding profiles your setup, asks what you're working on, and points the plugin at your real workload."
|
|
2328
|
+
fi
|
|
2329
|
+
show_paste_prompt
|
|
2330
|
+
if should_run_step 3; then
|
|
2331
|
+
launch_selected_agent
|
|
2332
|
+
else
|
|
2333
|
+
say "Skipping step 3/3: open coding agent."
|
|
2334
|
+
fi
|
|
2335
|
+
if [ "$CLAUDE_LAUNCHED" != "1" ]; then
|
|
2336
|
+
copy_paste_prompt_to_clipboard
|
|
1975
2337
|
fi
|
|
1976
2338
|
fi
|
|
1977
|
-
if
|
|
1978
|
-
say "
|
|
1979
|
-
fi
|
|
1980
|
-
if [ "$ADAPTERS_ATTEMPTED" != "1" ] || [ "$ADAPTERS_INSTALLED_COUNT" -gt 0 ]; then
|
|
1981
|
-
say "Onboarding profiles your setup, asks what you're working on, and points the plugin at your real workload."
|
|
1982
|
-
fi
|
|
1983
|
-
if should_run_step 3; then
|
|
1984
|
-
launch_selected_agent
|
|
1985
|
-
else
|
|
1986
|
-
say "Skipping step 3/3: open coding agent."
|
|
2339
|
+
if [ "$QUIET_RUN" = "1" ]; then
|
|
2340
|
+
say "${D}Full install log: $LOG_FILE${R}"
|
|
1987
2341
|
fi
|
|
1988
2342
|
|
|
1989
2343
|
INSTALL_EXIT="$(adapter_exit_code)"
|