@codyswann/lisa 2.227.0 → 2.228.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/all/copy-contents/gitignore +2 -0
- package/dist/cli/ui-cmd.d.ts +21 -1
- package/dist/cli/ui-cmd.d.ts.map +1 -1
- package/dist/cli/ui-cmd.js +49 -3
- package/dist/cli/ui-cmd.js.map +1 -1
- package/dist/core/lisa.d.ts +74 -1
- package/dist/core/lisa.d.ts.map +1 -1
- package/dist/core/lisa.js +165 -25
- package/dist/core/lisa.js.map +1 -1
- package/package.json +1 -1
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-agy/plugin.json +1 -1
- package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-agy/plugin.json +1 -1
- package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-agy/plugin.json +1 -1
- package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-agy/plugin.json +1 -1
- package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-agy/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/scripts/install-claude-plugins.sh +89 -9
- package/ui/README.md +1 -0
- package/ui/index.html +143 -8
|
@@ -55,9 +55,23 @@ detect_lisa_stack() {
|
|
|
55
55
|
done
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
+
# One-time migration marker: once the user-wide Codex registrations are
|
|
59
|
+
# confirmed retired, skip the `codex plugin marketplace list` probe (a codex
|
|
60
|
+
# CLI spawn) on every subsequent install.
|
|
61
|
+
CODEX_RETIRE_MARKER="$HOME/.codex/.lisa-legacy-plugins-retired"
|
|
62
|
+
|
|
63
|
+
write_codex_retire_marker() {
|
|
64
|
+
mkdir -p "$HOME/.codex" 2>/dev/null && touch "$CODEX_RETIRE_MARKER" 2>/dev/null || true
|
|
65
|
+
}
|
|
66
|
+
|
|
58
67
|
remove_user_wide_codex_lisa_plugins() {
|
|
59
68
|
command -v codex >/dev/null 2>&1 || return 0
|
|
60
69
|
|
|
70
|
+
# The marker is written only after the cleanup actually ran or was confirmed
|
|
71
|
+
# unnecessary — never on the CODEX_THREAD_ID deferral below, which must
|
|
72
|
+
# retry on a later install (see fix/defer-codex-retirement-postinstall).
|
|
73
|
+
[ -f "$CODEX_RETIRE_MARKER" ] && return 0
|
|
74
|
+
|
|
61
75
|
# Removing a plugin relocates its cache directory. A running Codex session
|
|
62
76
|
# has already captured absolute hook paths, so removal inside that session
|
|
63
77
|
# turns every later hook invocation into an EPIPE/broken-pipe failure. Defer
|
|
@@ -84,6 +98,7 @@ remove_user_wide_codex_lisa_plugins() {
|
|
|
84
98
|
}
|
|
85
99
|
});
|
|
86
100
|
'; then
|
|
101
|
+
write_codex_retire_marker
|
|
87
102
|
return 0
|
|
88
103
|
fi
|
|
89
104
|
|
|
@@ -102,6 +117,7 @@ remove_user_wide_codex_lisa_plugins() {
|
|
|
102
117
|
codex plugin remove "${plugin}@lisa" </dev/null >/dev/null 2>&1 || true
|
|
103
118
|
done
|
|
104
119
|
codex plugin marketplace remove lisa </dev/null >/dev/null 2>&1 || true
|
|
120
|
+
write_codex_retire_marker
|
|
105
121
|
}
|
|
106
122
|
|
|
107
123
|
# Skip running Lisa's full template engine on itself — the Lisa repo IS the
|
|
@@ -144,8 +160,23 @@ fi
|
|
|
144
160
|
# each path is written exactly once by its most-specific stack — there is no
|
|
145
161
|
# intermediate clobbered state to be interrupted in. See src/core/lisa.ts
|
|
146
162
|
# loadCopyOverwriteOwnership.
|
|
163
|
+
# Dedup guard: when the host's own package.json postinstall already invokes
|
|
164
|
+
# Lisa (wired by the ensure-lisa-postinstall migration), the package manager
|
|
165
|
+
# will run that root lifecycle script in this same install — running the full
|
|
166
|
+
# apply here too doubles the work for no benefit. The package-side apply
|
|
167
|
+
# exists for the bootstrap chicken-and-egg (#1017: a never-applied project
|
|
168
|
+
# has no postinstall to wire itself), so it still runs whenever the marker is
|
|
169
|
+
# absent. Detection matches LISA_MARKER in ensure-lisa-postinstall.ts.
|
|
170
|
+
HOST_HAS_LISA_POSTINSTALL="$(node -e "
|
|
171
|
+
const scripts = require('$PROJECT_ROOT/package.json').scripts || {};
|
|
172
|
+
const postinstall = scripts.postinstall || '';
|
|
173
|
+
process.stdout.write(postinstall.includes('node_modules/@codyswann/lisa/dist/index.js') ? 'true' : 'false');
|
|
174
|
+
" 2>/dev/null || echo false)"
|
|
175
|
+
|
|
147
176
|
if [ "$IS_LISA_SELF" != "true" ] && [ -z "${CI:-}" ]; then
|
|
148
|
-
if
|
|
177
|
+
if [ "$HOST_HAS_LISA_POSTINSTALL" = "true" ]; then
|
|
178
|
+
echo "Lisa apply deferred to the host project's own postinstall script."
|
|
179
|
+
elif ! LISA_BOOTSTRAP=1 node "$LISA_DIR/dist/index.js" --yes --skip-git-check "$PROJECT_ROOT"; then
|
|
149
180
|
echo "⚠️ Warning: Lisa template application failed. Migration may be incomplete." >&2
|
|
150
181
|
fi
|
|
151
182
|
fi
|
|
@@ -259,6 +290,38 @@ fi
|
|
|
259
290
|
# Install plugins only when claude CLI is available
|
|
260
291
|
if ! command -v claude &>/dev/null; then exit 0; fi
|
|
261
292
|
|
|
293
|
+
# Version-gated plugin sync (perf). `claude plugin marketplace update` is a
|
|
294
|
+
# network git pull of the whole Lisa repo and every `claude plugin install`
|
|
295
|
+
# spawns the Claude CLI (seconds each); re-running all of it on every install
|
|
296
|
+
# made a single `bun add` cost minutes. A full sync still runs whenever the
|
|
297
|
+
# installed Lisa version differs from the .claude/.lisa-plugins-synced marker
|
|
298
|
+
# (shared with Lisa.apply's registerPlugins); between version changes only
|
|
299
|
+
# plugins missing for this project are installed, so the self-heal property
|
|
300
|
+
# (a removed plugin comes back on the next install) survives at the cost of a
|
|
301
|
+
# single `claude plugin list` call.
|
|
302
|
+
LISA_VERSION="$(node -e "console.log(require('$LISA_DIR/package.json').version || '')" 2>/dev/null || true)"
|
|
303
|
+
PLUGIN_SYNC_MARKER="$PROJECT_ROOT/.claude/.lisa-plugins-synced"
|
|
304
|
+
FORCE_PLUGIN_SYNC=true
|
|
305
|
+
if [ -n "$LISA_VERSION" ] && [ -f "$PLUGIN_SYNC_MARKER" ] \
|
|
306
|
+
&& [ "$(cat "$PLUGIN_SYNC_MARKER" 2>/dev/null)" = "$LISA_VERSION" ]; then
|
|
307
|
+
FORCE_PLUGIN_SYNC=false
|
|
308
|
+
fi
|
|
309
|
+
|
|
310
|
+
INSTALLED_PLUGINS_FOR_PROJECT=""
|
|
311
|
+
if command -v jq >/dev/null 2>&1; then
|
|
312
|
+
INSTALLED_PLUGINS_FOR_PROJECT="$(claude plugin list --json 2>/dev/null \
|
|
313
|
+
| jq -r --arg cwd "$PROJECT_ROOT" '.[] | select(.projectPath == $cwd) | .id' 2>/dev/null || true)"
|
|
314
|
+
fi
|
|
315
|
+
|
|
316
|
+
install_plugin_if_missing() {
|
|
317
|
+
local plugin="$1"
|
|
318
|
+
if [ "$FORCE_PLUGIN_SYNC" != "true" ] && [ -n "$INSTALLED_PLUGINS_FOR_PROJECT" ] \
|
|
319
|
+
&& printf '%s\n' "$INSTALLED_PLUGINS_FOR_PROJECT" | grep -qxF "$plugin"; then
|
|
320
|
+
return 0
|
|
321
|
+
fi
|
|
322
|
+
claude plugin install "$plugin" --scope project </dev/null 2>&1 || true
|
|
323
|
+
}
|
|
324
|
+
|
|
262
325
|
# The Lisa marketplace is registered via extraKnownMarketplaces in .claude/settings.json
|
|
263
326
|
# pointing to the GitHub repo (CodySwannGT/lisa). Built plugins are committed to the repo
|
|
264
327
|
# so relative paths in marketplace.json resolve correctly.
|
|
@@ -272,7 +335,10 @@ if ! command -v claude &>/dev/null; then exit 0; fi
|
|
|
272
335
|
# "Update now" action with: "Local plugins cannot be updated remotely."
|
|
273
336
|
# If we detect a non-github marketplace named "lisa", uninstall the plugins
|
|
274
337
|
# sourced from it and remove the registration so the github source can take over.
|
|
275
|
-
|
|
338
|
+
# Gated on version change: the stale registration can only exist in state
|
|
339
|
+
# written by an older Lisa, so re-probing it on every same-version install
|
|
340
|
+
# spends a claude CLI spawn to re-confirm a fact that cannot have changed.
|
|
341
|
+
if [ "$FORCE_PLUGIN_SYNC" = "true" ] && command -v jq >/dev/null 2>&1; then
|
|
276
342
|
STALE_LISA_SOURCE=$(claude plugin marketplace list --json 2>/dev/null \
|
|
277
343
|
| jq -r '.[] | select(.name == "lisa" and .source != "github") | .source' 2>/dev/null \
|
|
278
344
|
| head -n 1)
|
|
@@ -339,7 +405,12 @@ heal_local_classification() {
|
|
|
339
405
|
|
|
340
406
|
if command -v jq >/dev/null 2>&1; then
|
|
341
407
|
# Refresh the cached marketplace.json so we're reading the latest schema.
|
|
342
|
-
|
|
408
|
+
# Gated: the pull is a network git fetch of the whole Lisa repo; once this
|
|
409
|
+
# version's plugins are synced and the project's heal-v2 marker exists, a
|
|
410
|
+
# fresh pull cannot change the outcome of the schema check below.
|
|
411
|
+
if [ "$FORCE_PLUGIN_SYNC" = "true" ] || [ ! -f "$PROJECT_ROOT/.claude/$HEAL_V2_MARKER_NAME" ]; then
|
|
412
|
+
claude plugin marketplace update lisa </dev/null >/dev/null 2>&1 || true
|
|
413
|
+
fi
|
|
343
414
|
|
|
344
415
|
MARKETPLACE_JSON_PATH="$HOME/.claude/plugins/marketplaces/lisa/.claude-plugin/marketplace.json"
|
|
345
416
|
NEW_SCHEMA="false"
|
|
@@ -364,8 +435,8 @@ if command -v jq >/dev/null 2>&1; then
|
|
|
364
435
|
fi
|
|
365
436
|
fi
|
|
366
437
|
|
|
367
|
-
# Always
|
|
368
|
-
|
|
438
|
+
# Always ensure the base plugin (universal governance for all projects)
|
|
439
|
+
install_plugin_if_missing "lisa@lisa"
|
|
369
440
|
|
|
370
441
|
# Detect which stack plugin to install from .claude/settings.json
|
|
371
442
|
LISA_STACK="$(detect_lisa_stack "$SETTINGS_FILE")"
|
|
@@ -374,13 +445,13 @@ LISA_STACK="$(detect_lisa_stack "$SETTINGS_FILE")"
|
|
|
374
445
|
case "$LISA_STACK" in
|
|
375
446
|
rails) ;; # Rails doesn't get typescript plugin
|
|
376
447
|
*)
|
|
377
|
-
|
|
448
|
+
install_plugin_if_missing "lisa-typescript@lisa"
|
|
378
449
|
;;
|
|
379
450
|
esac
|
|
380
451
|
|
|
381
452
|
# Install stack-specific plugin if not plain typescript
|
|
382
453
|
if [ -n "$LISA_STACK" ]; then
|
|
383
|
-
|
|
454
|
+
install_plugin_if_missing "lisa-${LISA_STACK}@lisa"
|
|
384
455
|
fi
|
|
385
456
|
|
|
386
457
|
# Uninstall old monolithic plugins during migration
|
|
@@ -403,7 +474,7 @@ for plugin in \
|
|
|
403
474
|
"skill-creator@claude-plugins-official" \
|
|
404
475
|
"atlassian@claude-plugins-official" \
|
|
405
476
|
"safety-net@cc-marketplace"; do
|
|
406
|
-
|
|
477
|
+
install_plugin_if_missing "$plugin"
|
|
407
478
|
done
|
|
408
479
|
|
|
409
480
|
# Install stack-specific third-party plugins
|
|
@@ -411,6 +482,15 @@ if [ "$LISA_STACK" = "expo" ] || [ "$LISA_STACK" = "harper-fabric" ]; then
|
|
|
411
482
|
for plugin in \
|
|
412
483
|
"playwright@claude-plugins-official" \
|
|
413
484
|
"posthog@claude-plugins-official"; do
|
|
414
|
-
|
|
485
|
+
install_plugin_if_missing "$plugin"
|
|
415
486
|
done
|
|
416
487
|
fi
|
|
488
|
+
|
|
489
|
+
# Record the fully-synced Lisa version so same-version installs skip the
|
|
490
|
+
# marketplace pulls and forced reinstalls above. Written last so any earlier
|
|
491
|
+
# failure exits (set -e) without recording a sync that did not finish.
|
|
492
|
+
if [ -n "$LISA_VERSION" ]; then
|
|
493
|
+
mkdir -p "$PROJECT_ROOT/.claude" 2>/dev/null \
|
|
494
|
+
&& printf '%s' "$LISA_VERSION" > "$PLUGIN_SYNC_MARKER" 2>/dev/null \
|
|
495
|
+
|| true
|
|
496
|
+
fi
|
package/ui/README.md
CHANGED
|
@@ -153,6 +153,7 @@ visible in the section.
|
|
|
153
153
|
| General (`harness`, `tracker`, `source`, `repo`, package manager) | `src/core/config.ts`, `plugins/src/base/rules/reference/config-resolution.md` |
|
|
154
154
|
| Project types (8 stacks + template strategies) | `src/detection/`, `src/strategies/`, `<stack>/` template dirs |
|
|
155
155
|
| Coding agents (claude/codex/cursor/agy/copilot/opencode/fleet) | `src/core/lisa.ts`, `scripts/generate-*-plugin-artifacts.mjs` |
|
|
156
|
+
| Remote Environment (variable presence + active-agent startup scripts) | `src/cli/ui-cmd.ts`, `plugins/src/base/scripts/remote-agent-aws-setup.sh` |
|
|
156
157
|
| Work tracker (JIRA / GitHub Issues / Linear) | `config-resolution.md`, `lisa-setup-*` skills |
|
|
157
158
|
| PRD source (Notion / Confluence / Linear / GitHub) | `config-resolution.md`, `lisa-setup-*` skills |
|
|
158
159
|
| Deploy & environments (`deploy.*`, `github.environments`) | `scripts/lisa-github-environments.sh` |
|
package/ui/index.html
CHANGED
|
@@ -1259,6 +1259,7 @@
|
|
|
1259
1259
|
"stacks",
|
|
1260
1260
|
"starters",
|
|
1261
1261
|
"agents",
|
|
1262
|
+
"remote",
|
|
1262
1263
|
],
|
|
1263
1264
|
},
|
|
1264
1265
|
{
|
|
@@ -2348,6 +2349,33 @@
|
|
|
2348
2349
|
],
|
|
2349
2350
|
};
|
|
2350
2351
|
|
|
2352
|
+
/* -------------------------- Remote environment -------------------------- */
|
|
2353
|
+
DATA.sections.remote = {
|
|
2354
|
+
title: "Remote Environment",
|
|
2355
|
+
desc: "AWS CLI bootstrap readiness for the project's active remote coding agents. Secret values are never sent to the browser — the console receives presence checks only.",
|
|
2356
|
+
src: "scripts/remote-agent-aws-setup.sh · remote platform environments",
|
|
2357
|
+
blocks: [
|
|
2358
|
+
{
|
|
2359
|
+
type: "table",
|
|
2360
|
+
card: "Variables",
|
|
2361
|
+
note: "Set status reflects variables visible to the lisa ui process; values remain hidden",
|
|
2362
|
+
cols: ["Variable", "Purpose", "Status"],
|
|
2363
|
+
rows: [],
|
|
2364
|
+
},
|
|
2365
|
+
{
|
|
2366
|
+
type: "table",
|
|
2367
|
+
card: "Startup Script",
|
|
2368
|
+
note: "Only agents enabled by the current harness are listed",
|
|
2369
|
+
cols: ["Agent", "Remote environment setup", "Project artifact"],
|
|
2370
|
+
rows: [],
|
|
2371
|
+
},
|
|
2372
|
+
{
|
|
2373
|
+
type: "callout",
|
|
2374
|
+
text: "<b>One bootstrap bundle, renewable sessions.</b> Store the complete Secrets Manager value as <code>LISA_AWS_BOOTSTRAP_JSON</code>. Each startup command writes the assume-only source credential and renewable role profiles; do not configure <code>AWS_ACCESS_KEY_ID</code> or <code>AWS_SECRET_ACCESS_KEY</code> directly.",
|
|
2375
|
+
},
|
|
2376
|
+
],
|
|
2377
|
+
};
|
|
2378
|
+
|
|
2351
2379
|
/* ---------------------------------- Tracker ---------------------------------- */
|
|
2352
2380
|
DATA.sections.tracker = {
|
|
2353
2381
|
title: "Work tracker",
|
|
@@ -5783,16 +5811,123 @@
|
|
|
5783
5811
|
if (control.type === "static" && typeof value === "string")
|
|
5784
5812
|
control.value = value;
|
|
5785
5813
|
}
|
|
5814
|
+
const REMOTE_AGENT_ORDER = [
|
|
5815
|
+
"claude",
|
|
5816
|
+
"codex",
|
|
5817
|
+
"cursor",
|
|
5818
|
+
"agy",
|
|
5819
|
+
"copilot",
|
|
5820
|
+
"opencode",
|
|
5821
|
+
];
|
|
5822
|
+
const REMOTE_STARTUP = {
|
|
5823
|
+
claude: {
|
|
5824
|
+
command:
|
|
5825
|
+
"LISA_REMOTE_AGENT=claude bash scripts/remote-agent-aws-setup.sh",
|
|
5826
|
+
artifacts: ["scripts/remote-agent-aws-setup.sh"],
|
|
5827
|
+
},
|
|
5828
|
+
codex: {
|
|
5829
|
+
command:
|
|
5830
|
+
"LISA_REMOTE_AGENT=codex bash scripts/remote-agent-aws-setup.sh",
|
|
5831
|
+
artifacts: ["scripts/remote-agent-aws-setup.sh"],
|
|
5832
|
+
},
|
|
5833
|
+
cursor: {
|
|
5834
|
+
command:
|
|
5835
|
+
".cursor/environment.json → LISA_REMOTE_AGENT=cursor bash scripts/remote-agent-aws-setup.sh",
|
|
5836
|
+
artifacts: [
|
|
5837
|
+
"scripts/remote-agent-aws-setup.sh",
|
|
5838
|
+
".cursor/environment.json",
|
|
5839
|
+
],
|
|
5840
|
+
},
|
|
5841
|
+
agy: {
|
|
5842
|
+
command:
|
|
5843
|
+
"LISA_REMOTE_AGENT=agy bash scripts/remote-agent-aws-setup.sh (user-managed host)",
|
|
5844
|
+
artifacts: ["scripts/remote-agent-aws-setup.sh"],
|
|
5845
|
+
},
|
|
5846
|
+
copilot: {
|
|
5847
|
+
command:
|
|
5848
|
+
".github/workflows/copilot-setup-steps.yml → bash scripts/remote-agent-aws-setup.sh",
|
|
5849
|
+
artifacts: [
|
|
5850
|
+
"scripts/remote-agent-aws-setup.sh",
|
|
5851
|
+
".github/workflows/copilot-setup-steps.yml",
|
|
5852
|
+
],
|
|
5853
|
+
},
|
|
5854
|
+
opencode: {
|
|
5855
|
+
command:
|
|
5856
|
+
"LISA_REMOTE_AGENT=opencode bash scripts/remote-agent-aws-setup.sh (opencode serve host)",
|
|
5857
|
+
artifacts: ["scripts/remote-agent-aws-setup.sh"],
|
|
5858
|
+
},
|
|
5859
|
+
};
|
|
5860
|
+
function configureRemoteEnvironment(cfg) {
|
|
5861
|
+
const snapshot = window.LISA_REMOTE_ENVIRONMENT || {
|
|
5862
|
+
variables: {},
|
|
5863
|
+
artifacts: {},
|
|
5864
|
+
};
|
|
5865
|
+
const harness = cfg && cfg.harness ? cfg.harness : "fleet";
|
|
5866
|
+
const activeAgents =
|
|
5867
|
+
harness === "fleet" || harness === "all"
|
|
5868
|
+
? REMOTE_AGENT_ORDER
|
|
5869
|
+
: REMOTE_AGENT_ORDER.includes(harness)
|
|
5870
|
+
? [harness]
|
|
5871
|
+
: ["claude"];
|
|
5872
|
+
const variableRows = [
|
|
5873
|
+
[
|
|
5874
|
+
"LISA_AWS_BOOTSTRAP_JSON",
|
|
5875
|
+
"Required secret — complete vendor-neutral bootstrap bundle",
|
|
5876
|
+
],
|
|
5877
|
+
[
|
|
5878
|
+
"LISA_REMOTE_AGENT",
|
|
5879
|
+
"Platform label used as the AWS role session name (startup commands set it inline)",
|
|
5880
|
+
],
|
|
5881
|
+
[
|
|
5882
|
+
"LISA_AWS_DEFAULT_PROFILE",
|
|
5883
|
+
"Optional default account profile; dev is used when unset",
|
|
5884
|
+
],
|
|
5885
|
+
].map(([name, purpose]) => {
|
|
5886
|
+
const isSet = snapshot.variables[name] === true;
|
|
5887
|
+
return [
|
|
5888
|
+
{ t: "mono", v: name },
|
|
5889
|
+
{ t: "text", v: purpose },
|
|
5890
|
+
{
|
|
5891
|
+
t: "badge",
|
|
5892
|
+
v: isSet ? "set" : "not set",
|
|
5893
|
+
cls: isSet
|
|
5894
|
+
? "pass"
|
|
5895
|
+
: name.endsWith("DEFAULT_PROFILE")
|
|
5896
|
+
? "warn"
|
|
5897
|
+
: "fail",
|
|
5898
|
+
},
|
|
5899
|
+
];
|
|
5900
|
+
});
|
|
5901
|
+
const startupRows = activeAgents.map(agent => {
|
|
5902
|
+
const startup = REMOTE_STARTUP[agent];
|
|
5903
|
+
const ready = startup.artifacts.every(
|
|
5904
|
+
artifact => snapshot.artifacts[artifact] === true
|
|
5905
|
+
);
|
|
5906
|
+
return [
|
|
5907
|
+
{ t: "mono", v: agent },
|
|
5908
|
+
{ t: "mono", v: startup.command },
|
|
5909
|
+
{
|
|
5910
|
+
t: "badge",
|
|
5911
|
+
v: ready ? "installed" : "missing",
|
|
5912
|
+
cls: ready ? "pass" : "fail",
|
|
5913
|
+
},
|
|
5914
|
+
];
|
|
5915
|
+
});
|
|
5916
|
+
DATA.sections.remote.blocks[0].rows = variableRows;
|
|
5917
|
+
DATA.sections.remote.blocks[1].rows = startupRows;
|
|
5918
|
+
}
|
|
5786
5919
|
function hydrateFromLiveConfig() {
|
|
5787
|
-
const cfg = window.LISA_LIVE_CONFIG;
|
|
5788
|
-
if (
|
|
5789
|
-
|
|
5790
|
-
|
|
5791
|
-
|
|
5792
|
-
|
|
5793
|
-
|
|
5920
|
+
const cfg = window.LISA_LIVE_CONFIG || {};
|
|
5921
|
+
if (window.LISA_LIVE_CONFIG) {
|
|
5922
|
+
Object.values(DATA.sections).forEach(section => {
|
|
5923
|
+
walkRows(section.blocks, row => {
|
|
5924
|
+
if (!row.key || !row.control) return;
|
|
5925
|
+
const value = liveGet(cfg, row.key);
|
|
5926
|
+
if (value !== undefined) hydrateControl(row.control, value);
|
|
5927
|
+
});
|
|
5794
5928
|
});
|
|
5795
|
-
}
|
|
5929
|
+
}
|
|
5930
|
+
configureRemoteEnvironment(cfg);
|
|
5796
5931
|
const repoEl = document.querySelector(".project-switch .repo");
|
|
5797
5932
|
if (repoEl && cfg.github && cfg.github.org && cfg.github.repo) {
|
|
5798
5933
|
repoEl.textContent = cfg.github.org + "/" + cfg.github.repo;
|