@codyswann/lisa 2.229.2 → 2.230.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.
Files changed (79) hide show
  1. package/dist/cli/remote-environment-catalog.d.ts +17 -0
  2. package/dist/cli/remote-environment-catalog.d.ts.map +1 -0
  3. package/dist/cli/remote-environment-catalog.js +175 -0
  4. package/dist/cli/remote-environment-catalog.js.map +1 -0
  5. package/dist/cli/remote-environment-contract.d.ts +94 -0
  6. package/dist/cli/remote-environment-contract.d.ts.map +1 -0
  7. package/dist/cli/remote-environment-contract.js +58 -0
  8. package/dist/cli/remote-environment-contract.js.map +1 -0
  9. package/dist/cli/remote-environment-detection.d.ts +23 -0
  10. package/dist/cli/remote-environment-detection.d.ts.map +1 -0
  11. package/dist/cli/remote-environment-detection.js +120 -0
  12. package/dist/cli/remote-environment-detection.js.map +1 -0
  13. package/dist/cli/remote-environment.d.ts +12 -0
  14. package/dist/cli/remote-environment.d.ts.map +1 -0
  15. package/dist/cli/remote-environment.js +73 -0
  16. package/dist/cli/remote-environment.js.map +1 -0
  17. package/dist/cli/ui-cmd.d.ts +2 -19
  18. package/dist/cli/ui-cmd.d.ts.map +1 -1
  19. package/dist/cli/ui-cmd.js +6 -34
  20. package/dist/cli/ui-cmd.js.map +1 -1
  21. package/package.json +1 -1
  22. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  23. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  24. package/plugins/lisa/.codex-plugin/skills/lisa-generate-claude-remote-build-script/SKILL.md +23 -8
  25. package/plugins/lisa/skills/lisa-generate-claude-remote-build-script/SKILL.md +23 -8
  26. package/plugins/lisa-agy/plugin.json +1 -1
  27. package/plugins/lisa-agy/skills/lisa-generate-claude-remote-build-script/SKILL.md +23 -8
  28. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  29. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  30. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  31. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  32. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  33. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  34. package/plugins/lisa-copilot/skills/lisa-generate-claude-remote-build-script/SKILL.md +23 -8
  35. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  36. package/plugins/lisa-cursor/skills/lisa-generate-claude-remote-build-script/SKILL.md +23 -8
  37. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  38. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  39. package/plugins/lisa-expo-agy/plugin.json +1 -1
  40. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  41. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  42. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  43. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  44. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  45. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  46. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  47. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  48. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  49. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  50. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  51. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  52. package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
  53. package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
  54. package/plugins/lisa-openclaw-agy/plugin.json +1 -1
  55. package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
  56. package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
  57. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  58. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  59. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  60. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  61. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  62. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  63. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  64. package/plugins/lisa-rails-agy/plugin.json +1 -1
  65. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  66. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  67. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  68. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  69. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  70. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  71. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  72. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  73. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  74. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  75. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  76. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  77. package/plugins/src/base/skills/lisa-generate-claude-remote-build-script/SKILL.md +23 -8
  78. package/ui/README.md +28 -1
  79. package/ui/index.html +39 -80
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-harper-fabric",
3
- "version": "2.229.2",
3
+ "version": "2.230.0",
4
4
  "description": "Harper/Fabric-specific rules for TypeScript component apps",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-harper-fabric",
3
- "version": "2.229.2",
3
+ "version": "2.230.0",
4
4
  "description": "Harper/Fabric-specific rules for TypeScript component apps",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-harper-fabric",
3
- "version": "2.229.2",
3
+ "version": "2.230.0",
4
4
  "description": "Harper/Fabric-specific rules for TypeScript component apps",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-nestjs",
3
- "version": "2.229.2",
3
+ "version": "2.230.0",
4
4
  "description": "NestJS-specific skills (GraphQL, TypeORM) and hooks (migration write-protection)",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-nestjs",
3
- "version": "2.229.2",
3
+ "version": "2.230.0",
4
4
  "description": "NestJS-specific skills and migration write-protection hooks.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-nestjs",
3
- "version": "2.229.2",
3
+ "version": "2.230.0",
4
4
  "description": "NestJS-specific skills (GraphQL, TypeORM) and hooks (migration write-protection)",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-nestjs",
3
- "version": "2.229.2",
3
+ "version": "2.230.0",
4
4
  "description": "NestJS-specific skills (GraphQL, TypeORM) and hooks (migration write-protection)",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-nestjs",
3
- "version": "2.229.2",
3
+ "version": "2.230.0",
4
4
  "description": "NestJS-specific skills (GraphQL, TypeORM) and hooks (migration write-protection)",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-openclaw",
3
- "version": "2.229.2",
3
+ "version": "2.230.0",
4
4
  "description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-openclaw",
3
- "version": "2.229.2",
3
+ "version": "2.230.0",
4
4
  "description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, across Claude and Codex.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-openclaw",
3
- "version": "2.229.2",
3
+ "version": "2.230.0",
4
4
  "description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-openclaw",
3
- "version": "2.229.2",
3
+ "version": "2.230.0",
4
4
  "description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-openclaw",
3
- "version": "2.229.2",
3
+ "version": "2.230.0",
4
4
  "description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-phaser",
3
- "version": "2.229.2",
3
+ "version": "2.230.0",
4
4
  "description": "Phaser 4 game-development rules for TypeScript projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-phaser",
3
- "version": "2.229.2",
3
+ "version": "2.230.0",
4
4
  "description": "Phaser 4 game-development rules for TypeScript projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-phaser",
3
- "version": "2.229.2",
3
+ "version": "2.230.0",
4
4
  "description": "Phaser 4 game-development rules for TypeScript projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-phaser",
3
- "version": "2.229.2",
3
+ "version": "2.230.0",
4
4
  "description": "Phaser 4 game-development rules for TypeScript projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-phaser",
3
- "version": "2.229.2",
3
+ "version": "2.230.0",
4
4
  "description": "Phaser 4 game-development rules for TypeScript projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-rails",
3
- "version": "2.229.2",
3
+ "version": "2.230.0",
4
4
  "description": "Ruby on Rails-specific hooks — RuboCop linting/formatting and ast-grep scanning on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-rails",
3
- "version": "2.229.2",
3
+ "version": "2.230.0",
4
4
  "description": "Ruby on Rails-specific skills and hooks for RuboCop and ast-grep scanning on edit.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-rails",
3
- "version": "2.229.2",
3
+ "version": "2.230.0",
4
4
  "description": "Ruby on Rails-specific hooks — RuboCop linting/formatting and ast-grep scanning on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-rails",
3
- "version": "2.229.2",
3
+ "version": "2.230.0",
4
4
  "description": "Ruby on Rails-specific hooks — RuboCop linting/formatting and ast-grep scanning on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-rails",
3
- "version": "2.229.2",
3
+ "version": "2.230.0",
4
4
  "description": "Ruby on Rails-specific hooks — RuboCop linting/formatting and ast-grep scanning on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "2.229.2",
3
+ "version": "2.230.0",
4
4
  "description": "TypeScript-specific hooks — Prettier formatting, ESLint linting, ast-grep scanning, and error-suppression blocking on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "2.229.2",
3
+ "version": "2.230.0",
4
4
  "description": "TypeScript-specific hooks for formatting, linting, and ast-grep scanning on edit.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "2.229.2",
3
+ "version": "2.230.0",
4
4
  "description": "TypeScript-specific hooks — Prettier formatting, ESLint linting, ast-grep scanning, and error-suppression blocking on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "2.229.2",
3
+ "version": "2.230.0",
4
4
  "description": "TypeScript-specific hooks — Prettier formatting, ESLint linting, ast-grep scanning, and error-suppression blocking on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "2.229.2",
3
+ "version": "2.230.0",
4
4
  "description": "TypeScript-specific hooks — Prettier formatting, ESLint linting, ast-grep scanning, and error-suppression blocking on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "2.229.2",
3
+ "version": "2.230.0",
4
4
  "description": "LLM Wiki — a distributable, git-native markdown knowledge base for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "2.229.2",
3
+ "version": "2.230.0",
4
4
  "description": "Distributable LLM Wiki kernel — ingest, query, lint, and maintain a git-native markdown knowledge base across Claude and Codex.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "2.229.2",
3
+ "version": "2.230.0",
4
4
  "description": "LLM Wiki — a distributable, git-native markdown knowledge base for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "2.229.2",
3
+ "version": "2.230.0",
4
4
  "description": "LLM Wiki — a distributable, git-native markdown knowledge base for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "2.229.2",
3
+ "version": "2.230.0",
4
4
  "description": "LLM Wiki — a distributable, git-native markdown knowledge base for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -7,8 +7,9 @@ allowed-tools: ["Skill", "Bash", "Read", "Write", "Glob", "Grep"]
7
7
  # Generate Claude Remote Build Script: $ARGUMENTS
8
8
 
9
9
  Produce the artifacts a user pastes into a **Claude Code remote routine environment** so this repo
10
- runs in the cloud: a setup/build script that installs everything the environment needs, plus an
11
- environment-variable template and a network-allowlist list.
10
+ runs in the cloud: a setup/build script that installs everything the environment needs, an
11
+ environment-variable template, a network-allowlist list, and the names-only
12
+ `.lisa/remote-environment.json` contract consumed by `lisa ui`.
12
13
 
13
14
  ## Purpose
14
15
 
@@ -97,6 +98,17 @@ tracker/source, plus the host project's own package manager and tooling — not
97
98
  profile implementation. Add `bash scripts/remote-agent-aws-setup.sh` to the
98
99
  generated cloud setup after required package installation.
99
100
 
101
+ 3c. **Write the project-aware console contract.** Write
102
+ `.lisa/remote-environment.json` from the same fresh inventory. Its `variables`
103
+ array must contain only entries that are `required: true` for this project and
104
+ its active integrations; omit optional, conditional, and dormant integrations.
105
+ Each entry contains `name`, `reason`, `source`, `secret`, and `required`, but
106
+ never a value. Set `startupScripts.claude` to the generated `--out` path. Do
107
+ not add AWS merely because Lisa ships AWS support: add
108
+ `LISA_AWS_BOOTSTRAP_JSON` only when the inventory reports active AWS usage.
109
+ Preserve any valid startup-script entries for other agents that already exist
110
+ in the manifest.
111
+
100
112
  4. **Emit the allowlist + gaps notice.** List any custom domains the setup or runtime reaches
101
113
  (from `networkAccess.allowlistDomains`, falling back to legacy `allowlistDomains`) that the user
102
114
  must add when the environment needs Custom network access. Do not include default Trusted domains
@@ -106,10 +118,13 @@ tracker/source, plus the host project's own package manager and tooling — not
106
118
  **cannot** fix.
107
119
 
108
120
  5. **Write and report.** Write the script to `--out` (default `scripts/claude-remote-setup.sh`),
109
- `chmod +x` it, and print: the path, a one-line summary of what it installs and which env vars to
110
- set, and the exact next step (paste its contents or a `bash scripts/claude-remote-setup.sh`
111
- invocation — into the routine environment's setup script, and add the env vars in the
112
- environment config). When `--print` is passed, print to stdout and do not write a file.
121
+ `chmod +x` it, and write `.lisa/remote-environment.json`. Print both paths, a
122
+ one-line summary of what the script installs and which env vars to set, and
123
+ the exact next step (paste its contents or a
124
+ `bash scripts/claude-remote-setup.sh` invocation into the routine
125
+ environment's setup script, and add the env vars in the environment config).
126
+ When `--print` is passed, print the script to stdout and do not write either
127
+ file.
113
128
 
114
129
  ## Generated script shape
115
130
 
@@ -192,8 +207,8 @@ to stop are: the analysis could not run, or the `--out` path is not writable.
192
207
 
193
208
  ## Rules
194
209
 
195
- - Always derive the script from a fresh `/lisa:analyze-claude-remote` run — never from a stale or
196
- assumed inventory.
210
+ - Always derive the script and `.lisa/remote-environment.json` from a fresh
211
+ `/lisa:analyze-claude-remote` run — never from a stale or assumed inventory.
197
212
  - Never write real secret values into the script or template — names and placeholders only.
198
213
  - For active tracker/source credentials, carry the analysis's `Acquire:` URL and `Access:` scope into
199
214
  the template as comments, and emit only the env-var form of the name — never a keychain command.
package/ui/README.md CHANGED
@@ -157,6 +157,33 @@ Results render as a per-check table (pass / warn / fail, with the layer that
157
157
  produced each finding), and the last full check's date + verdict stays
158
158
  visible in the section.
159
159
 
160
+ ### Remote-environment requirements
161
+
162
+ The console derives required remote-environment variables from the active
163
+ tracker/source, detected project types, and integration signals in the host
164
+ project. Projects can extend or override startup-artifact discovery with
165
+ `.lisa/remote-environment.json`:
166
+
167
+ ```json
168
+ {
169
+ "variables": [
170
+ {
171
+ "name": "PROJECT_API_TOKEN",
172
+ "reason": "Project-specific service access",
173
+ "secret": true,
174
+ "required": true
175
+ }
176
+ ],
177
+ "startupScripts": {
178
+ "claude": "scripts/claude-remote-setup.sh",
179
+ "codex": "scripts/codex-remote-setup.sh"
180
+ }
181
+ }
182
+ ```
183
+
184
+ Only required entries are displayed. Secret values are never read into the
185
+ browser payload; the server exposes names and boolean presence only.
186
+
160
187
  ## What it catalogs
161
188
 
162
189
  | Section | Source of truth in this repo |
@@ -168,7 +195,7 @@ visible in the section.
168
195
  | General (`harness`, `tracker`, `source`, `repo`, package manager) | `src/core/config.ts`, `plugins/src/base/rules/reference/config-resolution.md` |
169
196
  | Project types (8 stacks + template strategies) | `src/detection/`, `src/strategies/`, `<stack>/` template dirs |
170
197
  | Coding agents (claude/codex/cursor/agy/copilot/opencode/fleet) | `src/core/lisa.ts`, `scripts/generate-*-plugin-artifacts.mjs` |
171
- | Remote Environment (variable presence + active-agent startup scripts) | `src/cli/ui-cmd.ts`, `plugins/src/base/scripts/remote-agent-aws-setup.sh` |
198
+ | Remote Environment (project-aware variable presence + active-agent startup scripts) | `src/cli/remote-environment.ts`, `.lisa/remote-environment.json`, detected config/types/integrations |
172
199
  | Work tracker (JIRA / GitHub Issues / Linear) | `config-resolution.md`, `lisa-setup-*` skills |
173
200
  | PRD source (Notion / Confluence / Linear / GitHub) | `config-resolution.md`, `lisa-setup-*` skills |
174
201
  | Deploy & environments (`deploy.*`, `github.environments`) | `scripts/lisa-github-environments.sh` |
package/ui/index.html CHANGED
@@ -2403,26 +2403,26 @@
2403
2403
  /* -------------------------- Remote environment -------------------------- */
2404
2404
  DATA.sections.remote = {
2405
2405
  title: "Remote Environment",
2406
- 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.",
2407
- src: "scripts/remote-agent-aws-setup.sh · remote platform environments",
2406
+ desc: "Remote coding-environment requirements detected for this project, its project types, and its active integrations. Values are never sent to the browser — the console receives presence checks only.",
2407
+ src: ".lisa/remote-environment.json · project config · detected integrations",
2408
2408
  blocks: [
2409
2409
  {
2410
2410
  type: "table",
2411
2411
  card: "Variables",
2412
- note: "Set status reflects variables visible to the lisa ui process; values remain hidden",
2413
- cols: ["Variable", "Purpose", "Status"],
2412
+ note: "Only required variables are listed; status reflects the lisa ui process and values remain hidden",
2413
+ cols: ["Variable", "Why required", "Detected from", "Status"],
2414
2414
  rows: [],
2415
2415
  },
2416
2416
  {
2417
2417
  type: "table",
2418
2418
  card: "Startup Script",
2419
2419
  note: "Only agents enabled by the current harness are listed",
2420
- cols: ["Agent", "Remote environment setup", "Project artifact"],
2420
+ cols: ["Agent", "Project startup artifact", "Status"],
2421
2421
  rows: [],
2422
2422
  },
2423
2423
  {
2424
2424
  type: "callout",
2425
- 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.",
2425
+ text: "<b>Project-aware by design.</b> Lisa combines the active tracker/source, detected project types, integration signals, and an optional <code>.lisa/remote-environment.json</code> project contract. A credential is never listed merely because Lisa knows how to support it.",
2426
2426
  },
2427
2427
  ],
2428
2428
  };
@@ -5870,48 +5870,11 @@
5870
5870
  "copilot",
5871
5871
  "opencode",
5872
5872
  ];
5873
- const REMOTE_STARTUP = {
5874
- claude: {
5875
- command:
5876
- "LISA_REMOTE_AGENT=claude bash scripts/remote-agent-aws-setup.sh",
5877
- artifacts: ["scripts/remote-agent-aws-setup.sh"],
5878
- },
5879
- codex: {
5880
- command:
5881
- "LISA_REMOTE_AGENT=codex bash scripts/remote-agent-aws-setup.sh",
5882
- artifacts: ["scripts/remote-agent-aws-setup.sh"],
5883
- },
5884
- cursor: {
5885
- command:
5886
- ".cursor/environment.json → LISA_REMOTE_AGENT=cursor bash scripts/remote-agent-aws-setup.sh",
5887
- artifacts: [
5888
- "scripts/remote-agent-aws-setup.sh",
5889
- ".cursor/environment.json",
5890
- ],
5891
- },
5892
- agy: {
5893
- command:
5894
- "LISA_REMOTE_AGENT=agy bash scripts/remote-agent-aws-setup.sh (user-managed host)",
5895
- artifacts: ["scripts/remote-agent-aws-setup.sh"],
5896
- },
5897
- copilot: {
5898
- command:
5899
- ".github/workflows/copilot-setup-steps.yml → bash scripts/remote-agent-aws-setup.sh",
5900
- artifacts: [
5901
- "scripts/remote-agent-aws-setup.sh",
5902
- ".github/workflows/copilot-setup-steps.yml",
5903
- ],
5904
- },
5905
- opencode: {
5906
- command:
5907
- "LISA_REMOTE_AGENT=opencode bash scripts/remote-agent-aws-setup.sh (opencode serve host)",
5908
- artifacts: ["scripts/remote-agent-aws-setup.sh"],
5909
- },
5910
- };
5911
5873
  function configureRemoteEnvironment(cfg) {
5912
5874
  const snapshot = window.LISA_REMOTE_ENVIRONMENT || {
5913
- variables: {},
5914
- artifacts: {},
5875
+ projectTypes: [],
5876
+ variables: [],
5877
+ startupScripts: [],
5915
5878
  };
5916
5879
  const harness = cfg && cfg.harness ? cfg.harness : "fleet";
5917
5880
  const activeAgents =
@@ -5920,50 +5883,46 @@
5920
5883
  : REMOTE_AGENT_ORDER.includes(harness)
5921
5884
  ? [harness]
5922
5885
  : ["claude"];
5923
- const variableRows = [
5924
- [
5925
- "LISA_AWS_BOOTSTRAP_JSON",
5926
- "Required secret complete vendor-neutral bootstrap bundle",
5927
- ],
5928
- [
5929
- "LISA_REMOTE_AGENT",
5930
- "Platform label used as the AWS role session name (startup commands set it inline)",
5931
- ],
5932
- [
5933
- "LISA_AWS_DEFAULT_PROFILE",
5934
- "Optional default account profile; dev is used when unset",
5935
- ],
5936
- ].map(([name, purpose]) => {
5937
- const isSet = snapshot.variables[name] === true;
5938
- return [
5939
- { t: "mono", v: name },
5940
- { t: "text", v: purpose },
5886
+ const variableRows = snapshot.variables.map(variable => [
5887
+ { t: "mono", v: variable.name },
5888
+ { t: "text", v: variable.reason },
5889
+ { t: "text", v: variable.source },
5890
+ {
5891
+ t: "badge",
5892
+ v: variable.set ? "set" : "not set",
5893
+ cls: variable.set ? "pass" : "fail",
5894
+ },
5895
+ ]);
5896
+ if (variableRows.length === 0) {
5897
+ variableRows.push([
5941
5898
  {
5942
- t: "badge",
5943
- v: isSet ? "set" : "not set",
5944
- cls: isSet
5945
- ? "pass"
5946
- : name.endsWith("DEFAULT_PROFILE")
5947
- ? "warn"
5948
- : "fail",
5899
+ t: "text",
5900
+ v: "No project-specific remote variables detected",
5949
5901
  },
5950
- ];
5951
- });
5902
+ { t: "text", v: "—" },
5903
+ { t: "text", v: "—" },
5904
+ { t: "badge", v: "none", cls: "default" },
5905
+ ]);
5906
+ }
5952
5907
  const startupRows = activeAgents.map(agent => {
5953
- const startup = REMOTE_STARTUP[agent];
5954
- const ready = startup.artifacts.every(
5955
- artifact => snapshot.artifacts[artifact] === true
5956
- );
5908
+ const startup = snapshot.startupScripts.find(
5909
+ candidate => candidate.agent === agent
5910
+ ) || { agent, installed: false };
5957
5911
  return [
5958
5912
  { t: "mono", v: agent },
5959
- { t: "mono", v: startup.command },
5913
+ { t: "mono", v: startup.artifact || "Not configured" },
5960
5914
  {
5961
5915
  t: "badge",
5962
- v: ready ? "installed" : "missing",
5963
- cls: ready ? "pass" : "fail",
5916
+ v: startup.installed ? "installed" : "missing",
5917
+ cls: startup.installed ? "pass" : "fail",
5964
5918
  },
5965
5919
  ];
5966
5920
  });
5921
+ const projectTypes = snapshot.projectTypes || [];
5922
+ DATA.sections.remote.blocks[0].note =
5923
+ "Required for this project (" +
5924
+ (projectTypes.length ? projectTypes.join(", ") : "no Lisa type") +
5925
+ "); values remain hidden";
5967
5926
  DATA.sections.remote.blocks[0].rows = variableRows;
5968
5927
  DATA.sections.remote.blocks[1].rows = startupRows;
5969
5928
  }