aidevops 3.1.271 → 3.1.273
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/VERSION +1 -1
- package/aidevops.sh +1 -1
- package/package.json +1 -1
- package/setup-modules/post-setup.sh +42 -23
- package/setup-modules/schedulers.sh +13 -2
- package/setup.sh +1 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.1.
|
|
1
|
+
3.1.273
|
package/aidevops.sh
CHANGED
package/package.json
CHANGED
|
@@ -135,33 +135,52 @@ print_final_instructions() {
|
|
|
135
135
|
return 0
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
-
# Offer to launch onboarding for new users (only if not running inside
|
|
139
|
-
# and not non-interactive).
|
|
138
|
+
# Offer to launch onboarding for new users (only if not running inside an AI
|
|
139
|
+
# runtime session and not non-interactive). (t1665.5 — registry-driven)
|
|
140
140
|
# Respects config: aidevops config set ui.onboarding_prompt false
|
|
141
141
|
setup_onboarding_prompt() {
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
142
|
+
# Skip if non-interactive or already inside a runtime session
|
|
143
|
+
[[ "$NON_INTERACTIVE" == "true" ]] && return 0
|
|
144
|
+
[[ -n "${OPENCODE_SESSION:-}" || -n "${CLAUDE_SESSION:-}" ]] && return 0
|
|
145
|
+
is_feature_enabled onboarding_prompt 2>/dev/null || return 0
|
|
146
|
+
|
|
147
|
+
# Find first available headless runtime for onboarding dispatch
|
|
148
|
+
local _onb_bin="" _onb_name=""
|
|
149
|
+
if type rt_list_headless &>/dev/null; then
|
|
150
|
+
local _onb_rt_id
|
|
151
|
+
while IFS= read -r _onb_rt_id; do
|
|
152
|
+
_onb_bin=$(rt_binary "$_onb_rt_id") || continue
|
|
153
|
+
if [[ -n "$_onb_bin" ]] && command -v "$_onb_bin" &>/dev/null; then
|
|
154
|
+
_onb_name=$(rt_display_name "$_onb_rt_id") || _onb_name="$_onb_bin"
|
|
155
|
+
break
|
|
156
|
+
fi
|
|
157
|
+
_onb_bin=""
|
|
158
|
+
done < <(rt_list_headless)
|
|
159
|
+
fi
|
|
160
|
+
# Fallback
|
|
161
|
+
if [[ -z "$_onb_bin" ]] && command -v opencode &>/dev/null; then
|
|
162
|
+
_onb_bin="opencode"
|
|
163
|
+
_onb_name="OpenCode"
|
|
164
|
+
fi
|
|
165
|
+
[[ -z "$_onb_bin" ]] && return 0
|
|
166
|
+
|
|
167
|
+
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
|
168
|
+
echo ""
|
|
169
|
+
echo "Ready to configure your services?"
|
|
170
|
+
echo ""
|
|
171
|
+
echo "Launch ${_onb_name} with the onboarding wizard to:"
|
|
172
|
+
echo " - See which services are already configured"
|
|
173
|
+
echo " - Get personalized recommendations based on your work"
|
|
174
|
+
echo " - Set up API keys and credentials interactively"
|
|
175
|
+
echo ""
|
|
176
|
+
read -r -p "Launch ${_onb_name} with /onboarding now? [Y/n]: " launch_onboarding
|
|
177
|
+
if [[ "$launch_onboarding" =~ ^[Yy]?$ ]]; then
|
|
146
178
|
echo ""
|
|
147
|
-
echo "
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
echo " - Set up API keys and credentials interactively"
|
|
179
|
+
echo "Starting ${_onb_name} with onboarding wizard..."
|
|
180
|
+
"$_onb_bin" --prompt "/onboarding"
|
|
181
|
+
else
|
|
151
182
|
echo ""
|
|
152
|
-
|
|
153
|
-
if [[ "$launch_onboarding" =~ ^[Yy]?$ ]]; then
|
|
154
|
-
echo ""
|
|
155
|
-
echo "Starting OpenCode with onboarding wizard..."
|
|
156
|
-
# Launch with /onboarding prompt only — don't use --agent flag because
|
|
157
|
-
# the "Onboarding" agent only exists after generate-opencode-agents.sh
|
|
158
|
-
# writes to opencode.json, which requires opencode.json to already exist.
|
|
159
|
-
# On first run it won't, so --agent "Onboarding" causes a fatal error.
|
|
160
|
-
opencode --prompt "/onboarding"
|
|
161
|
-
else
|
|
162
|
-
echo ""
|
|
163
|
-
echo "You can run /onboarding anytime in OpenCode to configure services."
|
|
164
|
-
fi
|
|
183
|
+
echo "You can run /onboarding anytime in ${_onb_name} to configure services."
|
|
165
184
|
fi
|
|
166
185
|
return 0
|
|
167
186
|
}
|
|
@@ -150,9 +150,20 @@ setup_supervisor_pulse() {
|
|
|
150
150
|
_pulse_installed=true
|
|
151
151
|
fi
|
|
152
152
|
|
|
153
|
-
# Detect
|
|
153
|
+
# Detect dispatch backend binary location (t1665.5 — registry-driven)
|
|
154
154
|
local opencode_bin
|
|
155
|
-
|
|
155
|
+
if type rt_list_headless &>/dev/null; then
|
|
156
|
+
local _sched_rt_id _sched_bin
|
|
157
|
+
while IFS= read -r _sched_rt_id; do
|
|
158
|
+
_sched_bin=$(rt_binary "$_sched_rt_id") || continue
|
|
159
|
+
if [[ -n "$_sched_bin" ]] && command -v "$_sched_bin" &>/dev/null; then
|
|
160
|
+
opencode_bin=$(command -v "$_sched_bin")
|
|
161
|
+
break
|
|
162
|
+
fi
|
|
163
|
+
done < <(rt_list_headless)
|
|
164
|
+
fi
|
|
165
|
+
# Fallback if registry not loaded or no runtime found
|
|
166
|
+
opencode_bin="${opencode_bin:-$(command -v opencode 2>/dev/null || echo "/opt/homebrew/bin/opencode")}"
|
|
156
167
|
|
|
157
168
|
if [[ "$_do_install" == "true" ]]; then
|
|
158
169
|
mkdir -p "$HOME/.aidevops/logs"
|
package/setup.sh
CHANGED
|
@@ -10,7 +10,7 @@ shopt -s inherit_errexit 2>/dev/null || true
|
|
|
10
10
|
# AI Assistant Server Access Framework Setup Script
|
|
11
11
|
# Helps developers set up the framework for their infrastructure
|
|
12
12
|
#
|
|
13
|
-
# Version: 3.1.
|
|
13
|
+
# Version: 3.1.273
|
|
14
14
|
#
|
|
15
15
|
# Quick Install:
|
|
16
16
|
# npm install -g aidevops && aidevops update (recommended)
|