@codyswann/lisa 2.229.2 → 2.230.1

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 +110 -105
package/ui/index.html CHANGED
@@ -366,6 +366,13 @@
366
366
  border-color: var(--good);
367
367
  color: #fff;
368
368
  }
369
+ .ck:disabled {
370
+ cursor: not-allowed;
371
+ opacity: 0.65;
372
+ }
373
+ .ck:disabled:hover {
374
+ border-color: var(--line-strong);
375
+ }
369
376
  .check-content {
370
377
  flex: 1;
371
378
  min-width: 0;
@@ -732,6 +739,17 @@
732
739
  .action-btn:hover {
733
740
  background: var(--accent-soft);
734
741
  }
742
+ .action-btn:disabled {
743
+ border-color: var(--line-strong);
744
+ color: var(--muted);
745
+ background: var(--surface2);
746
+ cursor: not-allowed;
747
+ }
748
+ .readonly-reason {
749
+ display: block;
750
+ margin-top: 6px;
751
+ max-width: 28ch;
752
+ }
735
753
 
736
754
  .envmap {
737
755
  display: grid;
@@ -1078,6 +1096,11 @@
1078
1096
  background: var(--accent);
1079
1097
  color: var(--accent-ink);
1080
1098
  }
1099
+ .savebar .save:disabled {
1100
+ background: var(--surface2);
1101
+ color: var(--muted);
1102
+ cursor: not-allowed;
1103
+ }
1081
1104
 
1082
1105
  .toast {
1083
1106
  position: fixed;
@@ -1265,11 +1288,21 @@
1265
1288
  ></span
1266
1289
  >
1267
1290
  <button class="discard" id="discardBtn" type="button">Discard</button>
1268
- <button class="save" id="saveBtn" type="button">Save changes</button>
1269
- </div>
1270
- <div class="toast" id="toast">
1271
- Saved — prototype only, nothing was written
1291
+ <button
1292
+ class="save"
1293
+ id="saveBtn"
1294
+ type="button"
1295
+ disabled
1296
+ title="read-only: the write-path has not shipped yet"
1297
+ aria-describedby="saveReadonlyReason"
1298
+ >
1299
+ Save changes
1300
+ </button>
1301
+ <span class="status-why readonly-reason" id="saveReadonlyReason">
1302
+ read-only: the write-path has not shipped yet
1303
+ </span>
1272
1304
  </div>
1305
+ <div class="toast" id="toast"></div>
1273
1306
  <script>
1274
1307
  "use strict";
1275
1308
  document.title = "Lisa Console — Project Settings";
@@ -1807,8 +1840,8 @@
1807
1840
  control: {
1808
1841
  type: "button",
1809
1842
  label: "Run health check",
1810
- toast:
1811
- "Prototype the health-check skill is not wired up yet",
1843
+ disabled: true,
1844
+ reason: "read-only: the health engine has not shipped yet",
1812
1845
  },
1813
1846
  },
1814
1847
  {
@@ -2280,7 +2313,8 @@
2280
2313
  control: {
2281
2314
  type: "button",
2282
2315
  label: "Sync now",
2283
- toast: "Prototype — starter sync is not wired up yet",
2316
+ disabled: true,
2317
+ reason: "read-only: starter sync has not shipped yet",
2284
2318
  },
2285
2319
  },
2286
2320
  ],
@@ -2403,26 +2437,26 @@
2403
2437
  /* -------------------------- Remote environment -------------------------- */
2404
2438
  DATA.sections.remote = {
2405
2439
  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",
2440
+ 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.",
2441
+ src: ".lisa/remote-environment.json · project config · detected integrations",
2408
2442
  blocks: [
2409
2443
  {
2410
2444
  type: "table",
2411
2445
  card: "Variables",
2412
- note: "Set status reflects variables visible to the lisa ui process; values remain hidden",
2413
- cols: ["Variable", "Purpose", "Status"],
2446
+ note: "Only required variables are listed; status reflects the lisa ui process and values remain hidden",
2447
+ cols: ["Variable", "Why required", "Detected from", "Status"],
2414
2448
  rows: [],
2415
2449
  },
2416
2450
  {
2417
2451
  type: "table",
2418
2452
  card: "Startup Script",
2419
2453
  note: "Only agents enabled by the current harness are listed",
2420
- cols: ["Agent", "Remote environment setup", "Project artifact"],
2454
+ cols: ["Agent", "Project startup artifact", "Status"],
2421
2455
  rows: [],
2422
2456
  },
2423
2457
  {
2424
2458
  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.",
2459
+ 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
2460
  },
2427
2461
  ],
2428
2462
  };
@@ -5399,10 +5433,27 @@
5399
5433
  } else if (control.type === "button") {
5400
5434
  const b = el("button", "action-btn", esc(control.label));
5401
5435
  b.type = "button";
5402
- b.addEventListener("click", () =>
5403
- showToast(control.toast || "Prototype action")
5404
- );
5436
+ if (control.disabled) {
5437
+ b.disabled = true;
5438
+ if (control.reason) {
5439
+ b.title = control.reason;
5440
+ b.setAttribute("aria-describedby", id + "-reason");
5441
+ }
5442
+ } else {
5443
+ b.addEventListener("click", () =>
5444
+ showToast(control.toast || "Prototype action")
5445
+ );
5446
+ }
5405
5447
  wrap.appendChild(b);
5448
+ if (control.disabled && control.reason) {
5449
+ const reason = el(
5450
+ "span",
5451
+ "status-why readonly-reason",
5452
+ esc(control.reason)
5453
+ );
5454
+ reason.id = id + "-reason";
5455
+ wrap.appendChild(reason);
5456
+ }
5406
5457
  } else if (control.type === "static") {
5407
5458
  wrap.appendChild(
5408
5459
  el("span", control.cls === "mono" ? "mono" : "", esc(control.value))
@@ -5704,17 +5755,19 @@
5704
5755
  if (!isDone && item.why) {
5705
5756
  right.appendChild(el("span", "status-why", esc(item.why)));
5706
5757
  }
5758
+ right.appendChild(
5759
+ el(
5760
+ "span",
5761
+ "status-why",
5762
+ "read-only: setup checklist state has not shipped yet"
5763
+ )
5764
+ );
5707
5765
  };
5708
5766
  const ck = el("button", "ck");
5709
5767
  ck.type = "button";
5710
- ck.title = "Toggle (prototype)";
5711
- ck.setAttribute("aria-label", "Toggle " + item.label);
5712
- ck.addEventListener("click", () => {
5713
- row.classList.toggle("done");
5714
- refreshRight();
5715
- refreshNote();
5716
- markDirty("setup·" + item.label, null);
5717
- });
5768
+ ck.disabled = true;
5769
+ ck.title = "read-only: setup checklist state has not shipped yet";
5770
+ ck.setAttribute("aria-label", item.label + " checklist status");
5718
5771
  row.appendChild(ck);
5719
5772
  const content = el("div", "check-content");
5720
5773
  const lab = el("div", "check-label", esc(item.label));
@@ -5870,48 +5923,11 @@
5870
5923
  "copilot",
5871
5924
  "opencode",
5872
5925
  ];
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
5926
  function configureRemoteEnvironment(cfg) {
5912
5927
  const snapshot = window.LISA_REMOTE_ENVIRONMENT || {
5913
- variables: {},
5914
- artifacts: {},
5928
+ projectTypes: [],
5929
+ variables: [],
5930
+ startupScripts: [],
5915
5931
  };
5916
5932
  const harness = cfg && cfg.harness ? cfg.harness : "fleet";
5917
5933
  const activeAgents =
@@ -5920,50 +5936,46 @@
5920
5936
  : REMOTE_AGENT_ORDER.includes(harness)
5921
5937
  ? [harness]
5922
5938
  : ["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 },
5939
+ const variableRows = snapshot.variables.map(variable => [
5940
+ { t: "mono", v: variable.name },
5941
+ { t: "text", v: variable.reason },
5942
+ { t: "text", v: variable.source },
5943
+ {
5944
+ t: "badge",
5945
+ v: variable.set ? "set" : "not set",
5946
+ cls: variable.set ? "pass" : "fail",
5947
+ },
5948
+ ]);
5949
+ if (variableRows.length === 0) {
5950
+ variableRows.push([
5941
5951
  {
5942
- t: "badge",
5943
- v: isSet ? "set" : "not set",
5944
- cls: isSet
5945
- ? "pass"
5946
- : name.endsWith("DEFAULT_PROFILE")
5947
- ? "warn"
5948
- : "fail",
5952
+ t: "text",
5953
+ v: "No project-specific remote variables detected",
5949
5954
  },
5950
- ];
5951
- });
5955
+ { t: "text", v: "—" },
5956
+ { t: "text", v: "—" },
5957
+ { t: "badge", v: "none", cls: "default" },
5958
+ ]);
5959
+ }
5952
5960
  const startupRows = activeAgents.map(agent => {
5953
- const startup = REMOTE_STARTUP[agent];
5954
- const ready = startup.artifacts.every(
5955
- artifact => snapshot.artifacts[artifact] === true
5956
- );
5961
+ const startup = snapshot.startupScripts.find(
5962
+ candidate => candidate.agent === agent
5963
+ ) || { agent, installed: false };
5957
5964
  return [
5958
5965
  { t: "mono", v: agent },
5959
- { t: "mono", v: startup.command },
5966
+ { t: "mono", v: startup.artifact || "Not configured" },
5960
5967
  {
5961
5968
  t: "badge",
5962
- v: ready ? "installed" : "missing",
5963
- cls: ready ? "pass" : "fail",
5969
+ v: startup.installed ? "installed" : "missing",
5970
+ cls: startup.installed ? "pass" : "fail",
5964
5971
  },
5965
5972
  ];
5966
5973
  });
5974
+ const projectTypes = snapshot.projectTypes || [];
5975
+ DATA.sections.remote.blocks[0].note =
5976
+ "Required for this project (" +
5977
+ (projectTypes.length ? projectTypes.join(", ") : "no Lisa type") +
5978
+ "); values remain hidden";
5967
5979
  DATA.sections.remote.blocks[0].rows = variableRows;
5968
5980
  DATA.sections.remote.blocks[1].rows = startupRows;
5969
5981
  }
@@ -6119,13 +6131,6 @@
6119
6131
  }
6120
6132
  });
6121
6133
 
6122
- document.getElementById("saveBtn").addEventListener("click", () => {
6123
- clearDirty();
6124
- document
6125
- .querySelectorAll(".row.modified")
6126
- .forEach(r => r.classList.remove("modified"));
6127
- showToast("Saved — prototype only, nothing was written");
6128
- });
6129
6134
  document.getElementById("discardBtn").addEventListener("click", () => {
6130
6135
  clearDirty();
6131
6136
  renderAll();