@codyswann/lisa 2.296.1 → 2.297.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 (114) hide show
  1. package/dist/cli/doctor-sonar.d.ts +15 -0
  2. package/dist/cli/doctor-sonar.d.ts.map +1 -0
  3. package/dist/cli/doctor-sonar.js +28 -0
  4. package/dist/cli/doctor-sonar.js.map +1 -0
  5. package/dist/cli/doctor.d.ts +2 -0
  6. package/dist/cli/doctor.d.ts.map +1 -1
  7. package/dist/cli/doctor.js +4 -0
  8. package/dist/cli/doctor.js.map +1 -1
  9. package/dist/core/lisa.d.ts +13 -0
  10. package/dist/core/lisa.d.ts.map +1 -1
  11. package/dist/core/lisa.js +44 -0
  12. package/dist/core/lisa.js.map +1 -1
  13. package/dist/core/project-config-kane.d.ts +9 -0
  14. package/dist/core/project-config-kane.d.ts.map +1 -1
  15. package/dist/core/project-config-kane.js +35 -3
  16. package/dist/core/project-config-kane.js.map +1 -1
  17. package/dist/core/sonar-integration.d.ts +30 -0
  18. package/dist/core/sonar-integration.d.ts.map +1 -0
  19. package/dist/core/sonar-integration.js +55 -0
  20. package/dist/core/sonar-integration.js.map +1 -0
  21. package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
  22. package/dist/core/upstream-evidence-manifest.js +25 -4
  23. package/dist/core/upstream-evidence-manifest.js.map +1 -1
  24. package/dist/sonar/sonar-installer.d.ts +19 -0
  25. package/dist/sonar/sonar-installer.d.ts.map +1 -0
  26. package/dist/sonar/sonar-installer.js +69 -0
  27. package/dist/sonar/sonar-installer.js.map +1 -0
  28. package/package.json +1 -1
  29. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  30. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  31. package/plugins/lisa/.codex-plugin/skills/lisa-analyze-claude-remote/SKILL.md +6 -6
  32. package/plugins/lisa/.codex-plugin/skills/lisa-generate-claude-remote-build-script/SKILL.md +14 -6
  33. package/plugins/lisa/.codex-plugin/skills/lisa-setup-sonar/SKILL.md +108 -0
  34. package/plugins/lisa/.codex-plugin/skills/lisa-setup-sonar/agents/openai.yaml +4 -0
  35. package/plugins/lisa/.codex-plugin/skills/lisa-sonarcloud-access/SKILL.md +51 -46
  36. package/plugins/lisa/commands/setup/sonar.md +7 -0
  37. package/plugins/lisa/rules/reference/integration-access-layer.md +10 -2
  38. package/plugins/lisa/skills/lisa-analyze-claude-remote/SKILL.md +6 -6
  39. package/plugins/lisa/skills/lisa-generate-claude-remote-build-script/SKILL.md +14 -6
  40. package/plugins/lisa/skills/lisa-setup-sonar/SKILL.md +108 -0
  41. package/plugins/lisa/skills/lisa-setup-sonar/agents/openai.yaml +4 -0
  42. package/plugins/lisa/skills/lisa-sonarcloud-access/SKILL.md +52 -47
  43. package/plugins/lisa/skills/lisa-sonarcloud-access/agents/openai.yaml +2 -2
  44. package/plugins/lisa-agy/commands/lisa/setup/sonar.md +7 -0
  45. package/plugins/lisa-agy/plugin.json +1 -1
  46. package/plugins/lisa-agy/skills/lisa-analyze-claude-remote/SKILL.md +6 -6
  47. package/plugins/lisa-agy/skills/lisa-generate-claude-remote-build-script/SKILL.md +14 -6
  48. package/plugins/lisa-agy/skills/lisa-setup-sonar/SKILL.md +108 -0
  49. package/plugins/lisa-agy/skills/lisa-sonarcloud-access/SKILL.md +52 -47
  50. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  51. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  52. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  53. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  54. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  55. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  56. package/plugins/lisa-copilot/commands/lisa/setup/sonar.md +7 -0
  57. package/plugins/lisa-copilot/rules/reference/integration-access-layer.md +10 -2
  58. package/plugins/lisa-copilot/skills/lisa-analyze-claude-remote/SKILL.md +6 -6
  59. package/plugins/lisa-copilot/skills/lisa-generate-claude-remote-build-script/SKILL.md +14 -6
  60. package/plugins/lisa-copilot/skills/lisa-setup-sonar/SKILL.md +108 -0
  61. package/plugins/lisa-copilot/skills/lisa-sonarcloud-access/SKILL.md +52 -47
  62. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  63. package/plugins/lisa-cursor/commands/lisa/setup/sonar.md +7 -0
  64. package/plugins/lisa-cursor/rules/integration-access-layer-reference.mdc +10 -2
  65. package/plugins/lisa-cursor/skills/lisa-analyze-claude-remote/SKILL.md +6 -6
  66. package/plugins/lisa-cursor/skills/lisa-generate-claude-remote-build-script/SKILL.md +14 -6
  67. package/plugins/lisa-cursor/skills/lisa-setup-sonar/SKILL.md +108 -0
  68. package/plugins/lisa-cursor/skills/lisa-sonarcloud-access/SKILL.md +52 -47
  69. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  70. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  71. package/plugins/lisa-expo-agy/plugin.json +1 -1
  72. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  73. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  74. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  75. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  76. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  77. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  78. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  79. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  80. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  81. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  82. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  83. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  84. package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
  85. package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
  86. package/plugins/lisa-openclaw-agy/plugin.json +1 -1
  87. package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
  88. package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
  89. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  90. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  91. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  92. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  93. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  94. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  95. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  96. package/plugins/lisa-rails-agy/plugin.json +1 -1
  97. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  98. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  99. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  100. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  101. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  102. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  103. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  104. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  105. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  106. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  107. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  108. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  109. package/plugins/src/base/commands/setup/sonar.md +7 -0
  110. package/plugins/src/base/rules/reference/integration-access-layer.md +10 -2
  111. package/plugins/src/base/skills/lisa-analyze-claude-remote/SKILL.md +6 -6
  112. package/plugins/src/base/skills/lisa-generate-claude-remote-build-script/SKILL.md +14 -6
  113. package/plugins/src/base/skills/lisa-setup-sonar/SKILL.md +108 -0
  114. package/plugins/src/base/skills/lisa-sonarcloud-access/SKILL.md +52 -47
@@ -1,71 +1,76 @@
1
1
  ---
2
2
  name: lisa-sonarcloud-access
3
- description: "Vendor-neutral access layer for SonarCloud/SonarQube Cloud. Sonar triage skills MUST delegate through this skill rather than calling Sonar MCP tools or REST directly. Resolves Sonar MCP first when available, then falls back to SONAR_TOKEN + SonarCloud Web API."
3
+ description: "Vendor-neutral access layer for SonarQube Cloud/Server. Sonar triage skills MUST delegate through this skill rather than calling the SonarQube MCP tools directly. Single substrate: the official SonarQube MCP server (mcp__sonarqube__*), authenticated headlessly from SONARQUBE_TOKEN (+ SONARQUBE_ORG for Cloud, SONARQUBE_URL for Server)."
4
4
  allowed-tools: ["Bash", "Read", "Skill"]
5
5
  ---
6
6
 
7
7
  # SonarCloud Access: $ARGUMENTS
8
8
 
9
- Single chokepoint for SonarCloud operations. Caller skills MUST NOT call
10
- `mcp__sonarqube__*` tools directly or curl `https://sonarcloud.io/api/`
11
- themselves.
9
+ Single chokepoint for Sonar quality and security data. Caller skills MUST NOT
10
+ invoke `mcp__sonarqube__*` tools directly; they ask for data by operation name and
11
+ this skill owns the tool selection.
12
12
 
13
- ## Invocation Contract
13
+ ## Substrate
14
14
 
15
- ```text
16
- operation: gate-status project_key:<KEY> [branch:<BRANCH>] [pull_request:<N>]
17
- operation: issues project_key:<KEY> [branch:<BRANCH>] [pull_request:<N>] [types:<csv>] [severities:<csv>]
18
- operation: hotspots project_key:<KEY> [branch:<BRANCH>] [pull_request:<N>]
19
- operation: rule-detail key:<RULE_KEY>
20
- operation: source-snippet component:<COMPONENT_KEY> from:<N> to:<N>
21
- ```
15
+ There is exactly one substrate: the **official SonarQube MCP server**, provided by
16
+ the `sonarqube` plugin and launched by the `sonar` CLI (`sonar run mcp`). It
17
+ authenticates headlessly from environment variables no browser, no OS keychain —
18
+ so it is the same substrate on a developer machine and in a headless cloud routine:
22
19
 
23
- Return parsed JSON in a `<result>` block.
20
+ - `SONARQUBE_TOKEN` required (Sonar user/analysis token).
21
+ - `SONARQUBE_ORG` — required for SonarQube Cloud.
22
+ - `SONARQUBE_URL` — required for a self-hosted SonarQube Server.
24
23
 
25
- ## Substrate Selection
24
+ Wiring is performed once by `/lisa:setup:sonar` (which drives `sonar integrate
25
+ <agent>`); this access layer assumes the MCP is already wired. This is distinct
26
+ from the CI `SONAR_TOKEN` secret that authenticates the SonarCloud scan job in
27
+ `quality.yml` — that gate is separate and unchanged.
26
28
 
27
- Probe in order:
29
+ ## Probe (tool-access-gate)
28
30
 
29
- 1. Sonar MCP, if available and authenticated.
30
- 2. `SONAR_TOKEN` against the SonarCloud Web API.
31
+ Prove access with a cheap read-only MCP call before relying on it — the `sonar` CLI
32
+ being on PATH is not access. Probe by searching projects (the `projects` toolset is
33
+ always enabled):
31
34
 
32
- SonarCloud documents bearer-token authentication for the Web API. Use:
35
+ - If a `mcp__sonarqube__*` project-search tool returns, access is proven.
36
+ - If no `mcp__sonarqube__*` tool is present, or the call fails authentication, fail
37
+ loudly and do not improvise a substitute:
33
38
 
34
- ```bash
35
- sonar_api() {
36
- local path="$1"
37
- [ -n "$SONAR_TOKEN" ] || {
38
- echo "Error: SONAR_TOKEN is not set." >&2
39
- return 1
40
- }
41
- curl -sS "https://sonarcloud.io/api${path}" \
42
- -H "Authorization: Bearer $SONAR_TOKEN"
43
- }
39
+ ```text
40
+ Error: no SonarQube access. Run /lisa:setup:sonar (or `sonar integrate <agent>`), and set SONARQUBE_TOKEN (+ SONARQUBE_ORG for Cloud / SONARQUBE_URL for Server).
44
41
  ```
45
42
 
46
- If a host still requires the legacy token-as-basic-auth form, make that an
47
- explicit adapter branch in this skill; consumers do not choose auth style.
43
+ There is no hand-rolled REST fallback: the official MCP is headless-capable via the
44
+ token env vars, so it is the only sanctioned substrate. A missing MCP is a
45
+ tool-access-gate failure to surface, not a reason to curl the Web API.
48
46
 
49
- If neither tier works, fail with:
50
-
51
- ```text
52
- Error: no SonarCloud access substrate available. Authenticate the Sonar MCP or set SONAR_TOKEN.
53
- ```
47
+ ## Operation toolset map
54
48
 
55
- ## REST Dispatch
49
+ Consumers pass a coarse, vendor-native operation; resolve it with the matching
50
+ `mcp__sonarqube__*` tool from the named toolset and return parsed JSON in a
51
+ `<result>` block.
56
52
 
57
- | Operation | REST path |
53
+ | Operation | SonarQube MCP toolset |
58
54
  |---|---|
59
- | `gate-status` | `/qualitygates/project_status?projectKey=<KEY>[&branch=<BRANCH>][&pullRequest=<N>]` |
60
- | `issues` | `/issues/search?componentKeys=<KEY>[&branch=<BRANCH>][&pullRequest=<N>]...` |
61
- | `hotspots` | `/hotspots/search?projectKey=<KEY>[&branch=<BRANCH>][&pullRequest=<N>]` |
62
- | `rule-detail` | `/rules/show?key=<RULE_KEY>` |
63
- | `source-snippet` | `/sources/lines?key=<COMPONENT_KEY>&from=<N>&to=<N>` |
55
+ | `gate-status` | `quality-gates` |
56
+ | `issues` | `issues` |
57
+ | `hotspots` | `security-hotspots` |
58
+ | `rule-detail` | `rules` |
59
+ | `source-snippet` | `cag` (context augmentation) / component source |
60
+ | `coverage` | `coverage` |
61
+ | `duplication` | `duplications` |
62
+ | `dependency-risks` | `dependency-risks` |
63
+ | `projects` | `projects` |
64
+
65
+ Pass the project key through the tool's `projectKey` argument (or rely on a
66
+ server-configured `SONARQUBE_PROJECT_KEY`); pass `branch` / `pullRequest` where the
67
+ tool accepts them.
64
68
 
65
69
  ## Invariants
66
70
 
67
- - Fallback is gated on `SONAR_TOKEN`.
68
- - SonarCloud host access requires `sonarcloud.io` in any custom remote network
69
- allowlist.
70
- - Consumers ask for analysis data by operation name; this skill owns the Web API
71
- path shape.
71
+ - The official SonarQube MCP is the only substrate; there is no REST fallback.
72
+ - Auth is env-var only (`SONARQUBE_TOKEN` [+ `SONARQUBE_ORG` | `SONARQUBE_URL`]);
73
+ never the interactive `sonar auth login` keychain flow inside a factory.
74
+ - Sonar host access requires the host (`sonarcloud.io`, `sonarqube.us`, or the
75
+ Server URL) in any custom remote-network allowlist.
76
+ - Consumers ask for data by operation name; this skill owns tool selection.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "2.296.1",
3
+ "version": "2.297.0",
4
4
  "description": "Expo/React Native-specific skills, agents, rules, and MCP servers",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "2.296.1",
3
+ "version": "2.297.0",
4
4
  "description": "Expo and React Native-specific skills, agents, rules, and MCP servers.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "2.296.1",
3
+ "version": "2.297.0",
4
4
  "description": "Expo/React Native-specific skills, agents, rules, and MCP servers",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "2.296.1",
3
+ "version": "2.297.0",
4
4
  "description": "Expo/React Native-specific skills, agents, rules, and MCP servers",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "2.296.1",
3
+ "version": "2.297.0",
4
4
  "description": "Expo/React Native-specific skills, agents, rules, and MCP servers",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-harper-fabric",
3
- "version": "2.296.1",
3
+ "version": "2.297.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.296.1",
3
+ "version": "2.297.0",
4
4
  "description": "Harper/Fabric-specific Lisa 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.296.1",
3
+ "version": "2.297.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.296.1",
3
+ "version": "2.297.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.296.1",
3
+ "version": "2.297.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.296.1",
3
+ "version": "2.297.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.296.1",
3
+ "version": "2.297.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.296.1",
3
+ "version": "2.297.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.296.1",
3
+ "version": "2.297.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.296.1",
3
+ "version": "2.297.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.296.1",
3
+ "version": "2.297.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.296.1",
3
+ "version": "2.297.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.296.1",
3
+ "version": "2.297.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.296.1",
3
+ "version": "2.297.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.296.1",
3
+ "version": "2.297.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.296.1",
3
+ "version": "2.297.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.296.1",
3
+ "version": "2.297.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.296.1",
3
+ "version": "2.297.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.296.1",
3
+ "version": "2.297.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.296.1",
3
+ "version": "2.297.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.296.1",
3
+ "version": "2.297.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.296.1",
3
+ "version": "2.297.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.296.1",
3
+ "version": "2.297.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.296.1",
3
+ "version": "2.297.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.296.1",
3
+ "version": "2.297.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.296.1",
3
+ "version": "2.297.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.296.1",
3
+ "version": "2.297.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.296.1",
3
+ "version": "2.297.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.296.1",
3
+ "version": "2.297.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.296.1",
3
+ "version": "2.297.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.296.1",
3
+ "version": "2.297.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.296.1",
3
+ "version": "2.297.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.296.1",
3
+ "version": "2.297.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.296.1",
3
+ "version": "2.297.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.296.1",
3
+ "version": "2.297.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"
@@ -0,0 +1,7 @@
1
+ ---
2
+ description: "Wire the official SonarQube plugin + MCP into this project across every supported coding agent. Installs/updates the SonarQube CLI, authenticates (browser login on a dev machine, or SONARQUBE_TOKEN headless), selects the Test Manager target, runs `sonar integrate <agent>` for each supported agent, and writes only non-secret policy to `.lisa.config.json`. Does not touch the separate CI SonarCloud scan gate."
3
+ allowed-tools: ["Skill"]
4
+ argument-hint: "[--org=<org-key>] [--server-url=<url>] [--global]"
5
+ ---
6
+
7
+ Use the /lisa-setup-sonar skill to wire the official SonarQube MCP for this project across every supported agent. $ARGUMENTS
@@ -15,6 +15,14 @@ Do not blind-retry a failed or absent MCP. Fall back only after checking the
15
15
  documented env var for that vendor, and never silently no-op when neither tier is
16
16
  available.
17
17
 
18
+ Some MCPs authenticate headlessly from an env token and need no separate REST
19
+ tier — the MCP **is** the headless substrate on both developer machines and cloud
20
+ routines. The official SonarQube MCP is one such case (`SONARQUBE_TOKEN`
21
+ [+ `SONARQUBE_ORG`/`SONARQUBE_URL`]): `lisa-sonarcloud-access` resolves it as a
22
+ single substrate with no hand-rolled REST fallback. Reserve the two-tier
23
+ MCP-then-REST shape for vendors whose MCP is browser-OAuth or keychain-bound and
24
+ therefore dead headless.
25
+
18
26
  ## Access Skills
19
27
 
20
28
  | Vendor | Access skill | Headless env var | REST/token substrate |
@@ -23,7 +31,7 @@ available.
23
31
  | Notion | `lisa-notion-access` | `NOTION_API_TOKEN` | Notion REST |
24
32
  | Linear | `lisa-linear-access` | `LINEAR_API_KEY` | Linear GraphQL |
25
33
  | Jam | `lisa-jam-access` | `JAM_PAT` | Jam CLI |
26
- | SonarCloud | `lisa-sonarcloud-access` | `SONAR_TOKEN` | SonarCloud Web API |
34
+ | SonarCloud | `lisa-sonarcloud-access` | `SONARQUBE_TOKEN` (+ `SONARQUBE_ORG`/`SONARQUBE_URL`) | Official SonarQube MCP (headless via token) |
27
35
  | Sentry | `lisa-sentry-access` | `SENTRY_AUTH_TOKEN` | Sentry REST API |
28
36
  | PostHog | `lisa-posthog-access` | `POSTHOG_PERSONAL_API_KEY` | PostHog REST API |
29
37
  | Google Play | `lisa-expo:play-store-access` | `GOOGLE_PLAY_SERVICE_ACCOUNT_JSON` or `GOOGLE_PLAY_SERVICE_ACCOUNT_KEY_BASE64` | Google Play Developer API |
@@ -39,7 +47,7 @@ Source audit date: 2026-06-23. Scope: `plugins/src/**/skills/**` and
39
47
  | Notion | setup-only references | `notion-access` | Done. |
40
48
  | Linear | Multiple base queue/read/write/verify skills | Raw Linear MCP | Access layer added; consumers still need migration to `linear-access`. |
41
49
  | Jam | None in `plugins/src` at audit time | No access layer | Access layer added for host rules that include Jam triage. |
42
- | SonarCloud | None in `plugins/src` at audit time | No access layer | Access layer added for host rules that include SonarCloud gate triage. |
50
+ | SonarCloud | Routed through `sonarcloud-access` | Official SonarQube MCP (single substrate) | Migrated to the official token-authed SonarQube MCP; bespoke REST dispatch removed. |
43
51
  | Sentry | No Sentry MCP references in `plugins/src`; CLI/REST mentions only | CLI/REST scattered in observability docs | Access layer added for future MCP-backed consumers. |
44
52
  | PostHog | No PostHog MCP references in `plugins/src`; observability docs mention PostHog detection | No access layer | Access layer added for future MCP-backed consumers. |
45
53
  | Google Play | No MCP surface; EAS submit docs only | `play-store-access` for Expo post-submit release visibility | Done for Expo stack. |
@@ -195,7 +195,7 @@ Group the findings as:
195
195
  | Match | Substrate | Env | Setup / wiring | Domains |
196
196
  |---|---|---|---|---|
197
197
  | `mcp.jam.dev`, `jam`, or Jam MCP entries | Jam CLI (`jam`) authenticated by PAT | `JAM_PAT` | install with `curl -fsSL https://native.jam.dev/install | bash`; export `~/.local/bin`; run `printf '%s' "$JAM_PAT" | jam auth login --token`; optionally `jam skills install` | `native.jam.dev`, `api.jam.dev` |
198
- | `mcp/sonarqube`, `sonarqube`, or SonarCloud/SonarQube MCP entries | SonarCloud Web API | `SONAR_TOKEN` | use REST calls against `https://sonarcloud.io/api/`; if a host needs legacy token-as-basic-auth, put that in the access adapter | `sonarcloud.io` |
198
+ | `mcp/sonarqube`, `sonarqube`, or SonarQube/SonarCloud MCP entries | Official SonarQube MCP (`sonar run mcp`), token-authed — runs headless as-is, no REST substitute | `SONARQUBE_TOKEN` (+ `SONARQUBE_ORG` for Cloud / `SONARQUBE_URL` for Server) | install the SonarQube CLI (`curl -o- https://raw.githubusercontent.com/SonarSource/sonarqube-cli/refs/heads/master/user-scripts/install.sh \| bash`) and `sonar integrate <agent>`; pre-pull the MCP container image in the setup script so it fits the cache budget; the MCP authenticates from the env token — never `sonar auth login` | `sonarcloud.io`, `sonarqube.us` (or the Server URL) |
199
199
 
200
200
  For PAT-bearer MCP substrates that really use the same MCP transport, include `mcpHeaders` in
201
201
  the inventory with a snippet such as `headers: { "Authorization": "Bearer ${VAR}" }` so the
@@ -353,17 +353,17 @@ so the generator can render acquisition comments into its template:
353
353
  "setupSnippet": "curl -fsSL https://native.jam.dev/install | bash; export PATH=\"$HOME/.local/bin:$PATH\"; printf '%s' \"$JAM_PAT\" | jam auth login --token; jam skills install"
354
354
  },
355
355
  {
356
- "name": "SONAR_TOKEN", "required": false, "secret": true, "integration": "sonarcloud",
357
- "reason": "optional non-tracker MCP recovery; SonarQube MCP wraps the token-authenticated SonarCloud Web API",
358
- "headlessSubstrate": "SonarCloud Web API (token)",
356
+ "name": "SONARQUBE_TOKEN", "required": false, "secret": true, "integration": "sonarcloud",
357
+ "reason": "authenticates the official SonarQube MCP headlessly; the MCP runs as-is in a cloud routine (Docker is preinstalled), so no REST substitute is needed",
358
+ "headlessSubstrate": "Official SonarQube MCP (token-authed)",
359
359
  "acquireUrl": "https://docs.sonarsource.com/sonarqube-cloud/managing-your-account/managing-tokens",
360
- "accessScope": "token must be able to read the target SonarCloud organization/project quality gate, issues, hotspots, rules, and source snippets"
360
+ "accessScope": "token must be able to read the target Sonar organization/project quality gate, issues, hotspots, rules, coverage, duplications, and dependency risks; add SONARQUBE_ORG (Cloud) or SONARQUBE_URL (Server)"
361
361
  }
362
362
  ],
363
363
  "mcp": [
364
364
  { "name": "linear-server", "transport": "http", "auth": "oauth", "headlessUsable": false, "replacedBy": "LINEAR_API_KEY + Linear GraphQL", "dormant": true },
365
365
  { "name": "jam", "transport": "http", "auth": "oauth", "headlessUsable": true, "replacedBy": "jam CLI + JAM_PAT", "dormant": true },
366
- { "name": "sonarqube", "transport": "stdio", "auth": "local-wrapper", "headlessUsable": true, "replacedBy": "SONAR_TOKEN + SonarCloud Web API", "dormant": true }
366
+ { "name": "sonarqube", "transport": "stdio", "auth": "env-token", "headlessUsable": true, "replacedBy": null, "dormant": true }
367
367
  ],
368
368
  "awsProfiles": [
369
369
  {
@@ -69,9 +69,9 @@ tracker/source, plus the host project's own package manager and tooling — not
69
69
  sibling repos reachable through the routine's GitHub proxy.
70
70
  For OPTIONAL non-tracker MCP recovery entries discovered by
71
71
  `/lisa:analyze-claude-remote`, preserve the same names-only behavior:
72
- include `JAM_PAT`, `SONAR_TOKEN`, or similar documented substrate env vars
73
- only as optional secrets, with their acquire/scope comments when the analysis
74
- supplied them. Never invent values or promote dormant substrates to required.
72
+ include `JAM_PAT`, `SONARQUBE_TOKEN` (+ `SONARQUBE_ORG`/`SONARQUBE_URL`), or
73
+ similar documented substrate env vars only as optional secrets, with their
74
+ acquire/scope comments when the analysis supplied them. Never invent values or promote dormant substrates to required.
75
75
  When AWS entries are present, list only `LISA_AWS_BOOTSTRAP_JSON` as the
76
76
  required secret and `LISA_REMOTE_AGENT=claude` as plain configuration. Never
77
77
  emit standard `AWS_ACCESS_KEY_ID` variables and never recommend `aws sso login`.
@@ -84,9 +84,17 @@ tracker/source, plus the host project's own package manager and tooling — not
84
84
  `export PATH="$HOME/.local/bin:$PATH"`, `printf '%s' "$JAM_PAT" | jam auth login --token`,
85
85
  and `jam skills install`, all inside `[ -n "${JAM_PAT:-}" ] && ...` guards so missing
86
86
  optional secrets do not fail the environment build.
87
- - REST substitute substrates: do not install an MCP. Emit comments naming the
88
- REST host and env var (for example `SONAR_TOKEN` with `https://sonarcloud.io/api/`) and
89
- rely on the access skill or generated consumer to call the API.
87
+ - Container-backed MCP substrates (e.g. the official SonarQube MCP): the MCP
88
+ runs headless as-is in a cloud routine Docker is preinstalled — so wire the
89
+ real MCP rather than substituting REST. Emit, guarded on the optional env
90
+ token, the vendor CLI install (`curl -o- https://raw.githubusercontent.com/SonarSource/sonarqube-cli/refs/heads/master/user-scripts/install.sh | bash`),
91
+ `sonar integrate <agent>`, and a `sonar run mcp`-image pre-pull so the first
92
+ run fits the ~5-min cache budget. Provide `SONARQUBE_TOKEN`
93
+ (+ `SONARQUBE_ORG`/`SONARQUBE_URL`); never emit `sonar auth login` (keychain
94
+ does not exist headless).
95
+ - REST-only substitute substrates: for a vendor whose MCP genuinely cannot run
96
+ headless, do not install an MCP — emit comments naming the REST host and env
97
+ var, and rely on the access skill or generated consumer to call the API.
90
98
  - PAT-bearer MCP substrates: print a commented `.mcp.json` `headers` snippet from the
91
99
  inventory's `mcpHeaders`. Use this only when the analysis explicitly says the same MCP
92
100
  transport supports static-token auth. Do not print a Jam `.mcp.json` header snippet because