@codyswann/lisa 2.159.0 → 2.159.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.
- 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/skills/atlassian-access/SKILL.md +23 -9
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/skills/atlassian-access/SKILL.md +23 -9
- 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-copilot/skills/atlassian-access/SKILL.md +23 -9
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/skills/atlassian-access/SKILL.md +23 -9
- 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-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/plugins/src/base/skills/atlassian-access/SKILL.md +23 -9
package/package.json
CHANGED
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"lodash": ">=4.18.1"
|
|
85
85
|
},
|
|
86
86
|
"name": "@codyswann/lisa",
|
|
87
|
-
"version": "2.159.
|
|
87
|
+
"version": "2.159.1",
|
|
88
88
|
"description": "Claude Code governance framework that applies guardrails, guidance, and automated enforcement to projects",
|
|
89
89
|
"main": "dist/index.js",
|
|
90
90
|
"exports": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: atlassian-access
|
|
3
|
-
description: "Vendor-neutral access layer for Atlassian (JIRA + Confluence). Every jira-* and confluence-* skill MUST delegate through this skill rather than calling Atlassian directly. Resolves a substrate per operation in this order: (1) acli if installed and
|
|
3
|
+
description: "Vendor-neutral access layer for Atlassian (JIRA + Confluence). Every jira-* and confluence-* skill MUST delegate through this skill rather than calling Atlassian directly. Resolves a substrate per operation in this order: (1) acli if installed and switchable to a profile matching the configured site, (2) Atlassian MCP if authenticated and the configured cloudId is in its accessible resources, (3) curl + API-token Basic auth. Verifies the active connection matches `.lisa.config.json` before every operation — substrates authenticated as a different Atlassian account are switched to the configured profile when one exists, and skipped only after switch plus re-verification fails."
|
|
4
4
|
allowed-tools: ["Bash", "Read", "Skill"]
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -35,7 +35,7 @@ EMAIL=$(jq -r '.atlassian.email // empty' .lisa.config.local.json 2>/dev/null)
|
|
|
35
35
|
[ -z "$CLOUDID" ] && { echo "Error: atlassian.cloudId not set. Run /lisa:setup:atlassian." >&2; exit 1; }
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
-
Probe each tier in order; the first that's ready AND identity-matches is the substrate for this operation. Identity-match is verified before any operation; substrates authenticated as a different Atlassian account are
|
|
38
|
+
Probe each tier in order; the first that's ready AND identity-matches is the substrate for this operation. Identity-match is verified before any operation; substrates authenticated as a different Atlassian account are switched to the configured profile when one exists, then skipped only if the switch fails or re-verification still mismatches.
|
|
39
39
|
|
|
40
40
|
```bash
|
|
41
41
|
substrate=""
|
|
@@ -43,13 +43,13 @@ substrate=""
|
|
|
43
43
|
# Tier 1: acli
|
|
44
44
|
if command -v acli >/dev/null 2>&1 && acli auth status >/dev/null 2>&1; then
|
|
45
45
|
current_site=$(acli auth status 2>/dev/null | awk '/^ Site:/{print $2}')
|
|
46
|
+
if [ "$current_site" != "$SITE" ]; then
|
|
47
|
+
# acli installed but pointing at a different site. Try switching profiles.
|
|
48
|
+
acli auth switch --site "$SITE" ${EMAIL:+--email "$EMAIL"} >/dev/null 2>&1 || true
|
|
49
|
+
current_site=$(acli auth status 2>/dev/null | awk '/^ Site:/{print $2}')
|
|
50
|
+
fi
|
|
46
51
|
if [ "$current_site" = "$SITE" ]; then
|
|
47
52
|
substrate="acli"
|
|
48
|
-
else
|
|
49
|
-
# acli installed but pointing at a different site. Try switching profiles.
|
|
50
|
-
if acli auth switch --site "$SITE" ${EMAIL:+--email "$EMAIL"} >/dev/null 2>&1; then
|
|
51
|
-
substrate="acli"
|
|
52
|
-
fi
|
|
53
53
|
fi
|
|
54
54
|
fi
|
|
55
55
|
|
|
@@ -164,7 +164,7 @@ Operation dispatch then uses `$substrate` for the primary route. If the operatio
|
|
|
164
164
|
|
|
165
165
|
### Step 2 — Connection-match check
|
|
166
166
|
|
|
167
|
-
The active connection MUST point at the cloudId/site declared in `.lisa.config.json`. Step 1's substrate selection already
|
|
167
|
+
The active connection MUST point at the cloudId/site declared in `.lisa.config.json`. Step 1's substrate selection already tries to switch mismatched acli profiles and verifies the result before selection. This step repeats the assertion before any operation runs — defensive in case the substrate state changed since selection.
|
|
168
168
|
|
|
169
169
|
Read configured site:
|
|
170
170
|
|
|
@@ -188,8 +188,22 @@ current_site=$(echo "$current" | jq -r '.site // empty')
|
|
|
188
188
|
current_email=$(echo "$current" | jq -r '.email // empty')
|
|
189
189
|
|
|
190
190
|
if [ -n "$site" ] && [ "$current_site" != "$site" ]; then
|
|
191
|
-
# Profile mismatch — switch.
|
|
191
|
+
# Profile mismatch — switch, then re-verify. Do not trust the switch exit
|
|
192
|
+
# status alone because acli's active account is machine-global state.
|
|
192
193
|
acli auth switch --site "$site" ${email:+--email "$email"}
|
|
194
|
+
current=$(acli auth status --json 2>/dev/null)
|
|
195
|
+
current_site=$(echo "$current" | jq -r '.site // empty')
|
|
196
|
+
current_email=$(echo "$current" | jq -r '.email // empty')
|
|
197
|
+
fi
|
|
198
|
+
|
|
199
|
+
if [ -n "$site" ] && [ "$current_site" != "$site" ]; then
|
|
200
|
+
echo "Error: acli active site is '$current_site', but .lisa.config.json requires '$site'. Run /lisa:setup:atlassian to add or repair the matching profile." >&2
|
|
201
|
+
exit 1
|
|
202
|
+
fi
|
|
203
|
+
|
|
204
|
+
if [ -n "$email" ] && [ -n "$current_email" ] && [ "$current_email" != "$email" ]; then
|
|
205
|
+
echo "Error: acli active account is '$current_email', but .lisa.config.json requires '$email'. Run /lisa:setup:atlassian to add or repair the matching profile." >&2
|
|
206
|
+
exit 1
|
|
193
207
|
fi
|
|
194
208
|
```
|
|
195
209
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: atlassian-access
|
|
3
|
-
description: "Vendor-neutral access layer for Atlassian (JIRA + Confluence). Every jira-* and confluence-* skill MUST delegate through this skill rather than calling Atlassian directly. Resolves a substrate per operation in this order: (1) acli if installed and
|
|
3
|
+
description: "Vendor-neutral access layer for Atlassian (JIRA + Confluence). Every jira-* and confluence-* skill MUST delegate through this skill rather than calling Atlassian directly. Resolves a substrate per operation in this order: (1) acli if installed and switchable to a profile matching the configured site, (2) Atlassian MCP if authenticated and the configured cloudId is in its accessible resources, (3) curl + API-token Basic auth. Verifies the active connection matches `.lisa.config.json` before every operation — substrates authenticated as a different Atlassian account are switched to the configured profile when one exists, and skipped only after switch plus re-verification fails."
|
|
4
4
|
allowed-tools: ["Bash", "Read", "Skill"]
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -35,7 +35,7 @@ EMAIL=$(jq -r '.atlassian.email // empty' .lisa.config.local.json 2>/dev/null)
|
|
|
35
35
|
[ -z "$CLOUDID" ] && { echo "Error: atlassian.cloudId not set. Run /lisa:setup:atlassian." >&2; exit 1; }
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
-
Probe each tier in order; the first that's ready AND identity-matches is the substrate for this operation. Identity-match is verified before any operation; substrates authenticated as a different Atlassian account are
|
|
38
|
+
Probe each tier in order; the first that's ready AND identity-matches is the substrate for this operation. Identity-match is verified before any operation; substrates authenticated as a different Atlassian account are switched to the configured profile when one exists, then skipped only if the switch fails or re-verification still mismatches.
|
|
39
39
|
|
|
40
40
|
```bash
|
|
41
41
|
substrate=""
|
|
@@ -43,13 +43,13 @@ substrate=""
|
|
|
43
43
|
# Tier 1: acli
|
|
44
44
|
if command -v acli >/dev/null 2>&1 && acli auth status >/dev/null 2>&1; then
|
|
45
45
|
current_site=$(acli auth status 2>/dev/null | awk '/^ Site:/{print $2}')
|
|
46
|
+
if [ "$current_site" != "$SITE" ]; then
|
|
47
|
+
# acli installed but pointing at a different site. Try switching profiles.
|
|
48
|
+
acli auth switch --site "$SITE" ${EMAIL:+--email "$EMAIL"} >/dev/null 2>&1 || true
|
|
49
|
+
current_site=$(acli auth status 2>/dev/null | awk '/^ Site:/{print $2}')
|
|
50
|
+
fi
|
|
46
51
|
if [ "$current_site" = "$SITE" ]; then
|
|
47
52
|
substrate="acli"
|
|
48
|
-
else
|
|
49
|
-
# acli installed but pointing at a different site. Try switching profiles.
|
|
50
|
-
if acli auth switch --site "$SITE" ${EMAIL:+--email "$EMAIL"} >/dev/null 2>&1; then
|
|
51
|
-
substrate="acli"
|
|
52
|
-
fi
|
|
53
53
|
fi
|
|
54
54
|
fi
|
|
55
55
|
|
|
@@ -164,7 +164,7 @@ Operation dispatch then uses `$substrate` for the primary route. If the operatio
|
|
|
164
164
|
|
|
165
165
|
### Step 2 — Connection-match check
|
|
166
166
|
|
|
167
|
-
The active connection MUST point at the cloudId/site declared in `.lisa.config.json`. Step 1's substrate selection already
|
|
167
|
+
The active connection MUST point at the cloudId/site declared in `.lisa.config.json`. Step 1's substrate selection already tries to switch mismatched acli profiles and verifies the result before selection. This step repeats the assertion before any operation runs — defensive in case the substrate state changed since selection.
|
|
168
168
|
|
|
169
169
|
Read configured site:
|
|
170
170
|
|
|
@@ -188,8 +188,22 @@ current_site=$(echo "$current" | jq -r '.site // empty')
|
|
|
188
188
|
current_email=$(echo "$current" | jq -r '.email // empty')
|
|
189
189
|
|
|
190
190
|
if [ -n "$site" ] && [ "$current_site" != "$site" ]; then
|
|
191
|
-
# Profile mismatch — switch.
|
|
191
|
+
# Profile mismatch — switch, then re-verify. Do not trust the switch exit
|
|
192
|
+
# status alone because acli's active account is machine-global state.
|
|
192
193
|
acli auth switch --site "$site" ${email:+--email "$email"}
|
|
194
|
+
current=$(acli auth status --json 2>/dev/null)
|
|
195
|
+
current_site=$(echo "$current" | jq -r '.site // empty')
|
|
196
|
+
current_email=$(echo "$current" | jq -r '.email // empty')
|
|
197
|
+
fi
|
|
198
|
+
|
|
199
|
+
if [ -n "$site" ] && [ "$current_site" != "$site" ]; then
|
|
200
|
+
echo "Error: acli active site is '$current_site', but .lisa.config.json requires '$site'. Run /lisa:setup:atlassian to add or repair the matching profile." >&2
|
|
201
|
+
exit 1
|
|
202
|
+
fi
|
|
203
|
+
|
|
204
|
+
if [ -n "$email" ] && [ -n "$current_email" ] && [ "$current_email" != "$email" ]; then
|
|
205
|
+
echo "Error: acli active account is '$current_email', but .lisa.config.json requires '$email'. Run /lisa:setup:atlassian to add or repair the matching profile." >&2
|
|
206
|
+
exit 1
|
|
193
207
|
fi
|
|
194
208
|
```
|
|
195
209
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: atlassian-access
|
|
3
|
-
description: "Vendor-neutral access layer for Atlassian (JIRA + Confluence). Every jira-* and confluence-* skill MUST delegate through this skill rather than calling Atlassian directly. Resolves a substrate per operation in this order: (1) acli if installed and
|
|
3
|
+
description: "Vendor-neutral access layer for Atlassian (JIRA + Confluence). Every jira-* and confluence-* skill MUST delegate through this skill rather than calling Atlassian directly. Resolves a substrate per operation in this order: (1) acli if installed and switchable to a profile matching the configured site, (2) Atlassian MCP if authenticated and the configured cloudId is in its accessible resources, (3) curl + API-token Basic auth. Verifies the active connection matches `.lisa.config.json` before every operation — substrates authenticated as a different Atlassian account are switched to the configured profile when one exists, and skipped only after switch plus re-verification fails."
|
|
4
4
|
allowed-tools: ["Bash", "Read", "Skill"]
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -35,7 +35,7 @@ EMAIL=$(jq -r '.atlassian.email // empty' .lisa.config.local.json 2>/dev/null)
|
|
|
35
35
|
[ -z "$CLOUDID" ] && { echo "Error: atlassian.cloudId not set. Run /lisa:setup:atlassian." >&2; exit 1; }
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
-
Probe each tier in order; the first that's ready AND identity-matches is the substrate for this operation. Identity-match is verified before any operation; substrates authenticated as a different Atlassian account are
|
|
38
|
+
Probe each tier in order; the first that's ready AND identity-matches is the substrate for this operation. Identity-match is verified before any operation; substrates authenticated as a different Atlassian account are switched to the configured profile when one exists, then skipped only if the switch fails or re-verification still mismatches.
|
|
39
39
|
|
|
40
40
|
```bash
|
|
41
41
|
substrate=""
|
|
@@ -43,13 +43,13 @@ substrate=""
|
|
|
43
43
|
# Tier 1: acli
|
|
44
44
|
if command -v acli >/dev/null 2>&1 && acli auth status >/dev/null 2>&1; then
|
|
45
45
|
current_site=$(acli auth status 2>/dev/null | awk '/^ Site:/{print $2}')
|
|
46
|
+
if [ "$current_site" != "$SITE" ]; then
|
|
47
|
+
# acli installed but pointing at a different site. Try switching profiles.
|
|
48
|
+
acli auth switch --site "$SITE" ${EMAIL:+--email "$EMAIL"} >/dev/null 2>&1 || true
|
|
49
|
+
current_site=$(acli auth status 2>/dev/null | awk '/^ Site:/{print $2}')
|
|
50
|
+
fi
|
|
46
51
|
if [ "$current_site" = "$SITE" ]; then
|
|
47
52
|
substrate="acli"
|
|
48
|
-
else
|
|
49
|
-
# acli installed but pointing at a different site. Try switching profiles.
|
|
50
|
-
if acli auth switch --site "$SITE" ${EMAIL:+--email "$EMAIL"} >/dev/null 2>&1; then
|
|
51
|
-
substrate="acli"
|
|
52
|
-
fi
|
|
53
53
|
fi
|
|
54
54
|
fi
|
|
55
55
|
|
|
@@ -164,7 +164,7 @@ Operation dispatch then uses `$substrate` for the primary route. If the operatio
|
|
|
164
164
|
|
|
165
165
|
### Step 2 — Connection-match check
|
|
166
166
|
|
|
167
|
-
The active connection MUST point at the cloudId/site declared in `.lisa.config.json`. Step 1's substrate selection already
|
|
167
|
+
The active connection MUST point at the cloudId/site declared in `.lisa.config.json`. Step 1's substrate selection already tries to switch mismatched acli profiles and verifies the result before selection. This step repeats the assertion before any operation runs — defensive in case the substrate state changed since selection.
|
|
168
168
|
|
|
169
169
|
Read configured site:
|
|
170
170
|
|
|
@@ -188,8 +188,22 @@ current_site=$(echo "$current" | jq -r '.site // empty')
|
|
|
188
188
|
current_email=$(echo "$current" | jq -r '.email // empty')
|
|
189
189
|
|
|
190
190
|
if [ -n "$site" ] && [ "$current_site" != "$site" ]; then
|
|
191
|
-
# Profile mismatch — switch.
|
|
191
|
+
# Profile mismatch — switch, then re-verify. Do not trust the switch exit
|
|
192
|
+
# status alone because acli's active account is machine-global state.
|
|
192
193
|
acli auth switch --site "$site" ${email:+--email "$email"}
|
|
194
|
+
current=$(acli auth status --json 2>/dev/null)
|
|
195
|
+
current_site=$(echo "$current" | jq -r '.site // empty')
|
|
196
|
+
current_email=$(echo "$current" | jq -r '.email // empty')
|
|
197
|
+
fi
|
|
198
|
+
|
|
199
|
+
if [ -n "$site" ] && [ "$current_site" != "$site" ]; then
|
|
200
|
+
echo "Error: acli active site is '$current_site', but .lisa.config.json requires '$site'. Run /lisa:setup:atlassian to add or repair the matching profile." >&2
|
|
201
|
+
exit 1
|
|
202
|
+
fi
|
|
203
|
+
|
|
204
|
+
if [ -n "$email" ] && [ -n "$current_email" ] && [ "$current_email" != "$email" ]; then
|
|
205
|
+
echo "Error: acli active account is '$current_email', but .lisa.config.json requires '$email'. Run /lisa:setup:atlassian to add or repair the matching profile." >&2
|
|
206
|
+
exit 1
|
|
193
207
|
fi
|
|
194
208
|
```
|
|
195
209
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: atlassian-access
|
|
3
|
-
description: "Vendor-neutral access layer for Atlassian (JIRA + Confluence). Every jira-* and confluence-* skill MUST delegate through this skill rather than calling Atlassian directly. Resolves a substrate per operation in this order: (1) acli if installed and
|
|
3
|
+
description: "Vendor-neutral access layer for Atlassian (JIRA + Confluence). Every jira-* and confluence-* skill MUST delegate through this skill rather than calling Atlassian directly. Resolves a substrate per operation in this order: (1) acli if installed and switchable to a profile matching the configured site, (2) Atlassian MCP if authenticated and the configured cloudId is in its accessible resources, (3) curl + API-token Basic auth. Verifies the active connection matches `.lisa.config.json` before every operation — substrates authenticated as a different Atlassian account are switched to the configured profile when one exists, and skipped only after switch plus re-verification fails."
|
|
4
4
|
allowed-tools: ["Bash", "Read", "Skill"]
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -35,7 +35,7 @@ EMAIL=$(jq -r '.atlassian.email // empty' .lisa.config.local.json 2>/dev/null)
|
|
|
35
35
|
[ -z "$CLOUDID" ] && { echo "Error: atlassian.cloudId not set. Run /lisa:setup:atlassian." >&2; exit 1; }
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
-
Probe each tier in order; the first that's ready AND identity-matches is the substrate for this operation. Identity-match is verified before any operation; substrates authenticated as a different Atlassian account are
|
|
38
|
+
Probe each tier in order; the first that's ready AND identity-matches is the substrate for this operation. Identity-match is verified before any operation; substrates authenticated as a different Atlassian account are switched to the configured profile when one exists, then skipped only if the switch fails or re-verification still mismatches.
|
|
39
39
|
|
|
40
40
|
```bash
|
|
41
41
|
substrate=""
|
|
@@ -43,13 +43,13 @@ substrate=""
|
|
|
43
43
|
# Tier 1: acli
|
|
44
44
|
if command -v acli >/dev/null 2>&1 && acli auth status >/dev/null 2>&1; then
|
|
45
45
|
current_site=$(acli auth status 2>/dev/null | awk '/^ Site:/{print $2}')
|
|
46
|
+
if [ "$current_site" != "$SITE" ]; then
|
|
47
|
+
# acli installed but pointing at a different site. Try switching profiles.
|
|
48
|
+
acli auth switch --site "$SITE" ${EMAIL:+--email "$EMAIL"} >/dev/null 2>&1 || true
|
|
49
|
+
current_site=$(acli auth status 2>/dev/null | awk '/^ Site:/{print $2}')
|
|
50
|
+
fi
|
|
46
51
|
if [ "$current_site" = "$SITE" ]; then
|
|
47
52
|
substrate="acli"
|
|
48
|
-
else
|
|
49
|
-
# acli installed but pointing at a different site. Try switching profiles.
|
|
50
|
-
if acli auth switch --site "$SITE" ${EMAIL:+--email "$EMAIL"} >/dev/null 2>&1; then
|
|
51
|
-
substrate="acli"
|
|
52
|
-
fi
|
|
53
53
|
fi
|
|
54
54
|
fi
|
|
55
55
|
|
|
@@ -164,7 +164,7 @@ Operation dispatch then uses `$substrate` for the primary route. If the operatio
|
|
|
164
164
|
|
|
165
165
|
### Step 2 — Connection-match check
|
|
166
166
|
|
|
167
|
-
The active connection MUST point at the cloudId/site declared in `.lisa.config.json`. Step 1's substrate selection already
|
|
167
|
+
The active connection MUST point at the cloudId/site declared in `.lisa.config.json`. Step 1's substrate selection already tries to switch mismatched acli profiles and verifies the result before selection. This step repeats the assertion before any operation runs — defensive in case the substrate state changed since selection.
|
|
168
168
|
|
|
169
169
|
Read configured site:
|
|
170
170
|
|
|
@@ -188,8 +188,22 @@ current_site=$(echo "$current" | jq -r '.site // empty')
|
|
|
188
188
|
current_email=$(echo "$current" | jq -r '.email // empty')
|
|
189
189
|
|
|
190
190
|
if [ -n "$site" ] && [ "$current_site" != "$site" ]; then
|
|
191
|
-
# Profile mismatch — switch.
|
|
191
|
+
# Profile mismatch — switch, then re-verify. Do not trust the switch exit
|
|
192
|
+
# status alone because acli's active account is machine-global state.
|
|
192
193
|
acli auth switch --site "$site" ${email:+--email "$email"}
|
|
194
|
+
current=$(acli auth status --json 2>/dev/null)
|
|
195
|
+
current_site=$(echo "$current" | jq -r '.site // empty')
|
|
196
|
+
current_email=$(echo "$current" | jq -r '.email // empty')
|
|
197
|
+
fi
|
|
198
|
+
|
|
199
|
+
if [ -n "$site" ] && [ "$current_site" != "$site" ]; then
|
|
200
|
+
echo "Error: acli active site is '$current_site', but .lisa.config.json requires '$site'. Run /lisa:setup:atlassian to add or repair the matching profile." >&2
|
|
201
|
+
exit 1
|
|
202
|
+
fi
|
|
203
|
+
|
|
204
|
+
if [ -n "$email" ] && [ -n "$current_email" ] && [ "$current_email" != "$email" ]; then
|
|
205
|
+
echo "Error: acli active account is '$current_email', but .lisa.config.json requires '$email'. Run /lisa:setup:atlassian to add or repair the matching profile." >&2
|
|
206
|
+
exit 1
|
|
193
207
|
fi
|
|
194
208
|
```
|
|
195
209
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "2.159.
|
|
3
|
+
"version": "2.159.1",
|
|
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.159.
|
|
3
|
+
"version": "2.159.1",
|
|
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.159.
|
|
3
|
+
"version": "2.159.1",
|
|
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.159.
|
|
3
|
+
"version": "2.159.1",
|
|
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.159.
|
|
3
|
+
"version": "2.159.1",
|
|
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: atlassian-access
|
|
3
|
-
description: "Vendor-neutral access layer for Atlassian (JIRA + Confluence). Every jira-* and confluence-* skill MUST delegate through this skill rather than calling Atlassian directly. Resolves a substrate per operation in this order: (1) acli if installed and
|
|
3
|
+
description: "Vendor-neutral access layer for Atlassian (JIRA + Confluence). Every jira-* and confluence-* skill MUST delegate through this skill rather than calling Atlassian directly. Resolves a substrate per operation in this order: (1) acli if installed and switchable to a profile matching the configured site, (2) Atlassian MCP if authenticated and the configured cloudId is in its accessible resources, (3) curl + API-token Basic auth. Verifies the active connection matches `.lisa.config.json` before every operation — substrates authenticated as a different Atlassian account are switched to the configured profile when one exists, and skipped only after switch plus re-verification fails."
|
|
4
4
|
allowed-tools: ["Bash", "Read", "Skill"]
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -35,7 +35,7 @@ EMAIL=$(jq -r '.atlassian.email // empty' .lisa.config.local.json 2>/dev/null)
|
|
|
35
35
|
[ -z "$CLOUDID" ] && { echo "Error: atlassian.cloudId not set. Run /lisa:setup:atlassian." >&2; exit 1; }
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
-
Probe each tier in order; the first that's ready AND identity-matches is the substrate for this operation. Identity-match is verified before any operation; substrates authenticated as a different Atlassian account are
|
|
38
|
+
Probe each tier in order; the first that's ready AND identity-matches is the substrate for this operation. Identity-match is verified before any operation; substrates authenticated as a different Atlassian account are switched to the configured profile when one exists, then skipped only if the switch fails or re-verification still mismatches.
|
|
39
39
|
|
|
40
40
|
```bash
|
|
41
41
|
substrate=""
|
|
@@ -43,13 +43,13 @@ substrate=""
|
|
|
43
43
|
# Tier 1: acli
|
|
44
44
|
if command -v acli >/dev/null 2>&1 && acli auth status >/dev/null 2>&1; then
|
|
45
45
|
current_site=$(acli auth status 2>/dev/null | awk '/^ Site:/{print $2}')
|
|
46
|
+
if [ "$current_site" != "$SITE" ]; then
|
|
47
|
+
# acli installed but pointing at a different site. Try switching profiles.
|
|
48
|
+
acli auth switch --site "$SITE" ${EMAIL:+--email "$EMAIL"} >/dev/null 2>&1 || true
|
|
49
|
+
current_site=$(acli auth status 2>/dev/null | awk '/^ Site:/{print $2}')
|
|
50
|
+
fi
|
|
46
51
|
if [ "$current_site" = "$SITE" ]; then
|
|
47
52
|
substrate="acli"
|
|
48
|
-
else
|
|
49
|
-
# acli installed but pointing at a different site. Try switching profiles.
|
|
50
|
-
if acli auth switch --site "$SITE" ${EMAIL:+--email "$EMAIL"} >/dev/null 2>&1; then
|
|
51
|
-
substrate="acli"
|
|
52
|
-
fi
|
|
53
53
|
fi
|
|
54
54
|
fi
|
|
55
55
|
|
|
@@ -164,7 +164,7 @@ Operation dispatch then uses `$substrate` for the primary route. If the operatio
|
|
|
164
164
|
|
|
165
165
|
### Step 2 — Connection-match check
|
|
166
166
|
|
|
167
|
-
The active connection MUST point at the cloudId/site declared in `.lisa.config.json`. Step 1's substrate selection already
|
|
167
|
+
The active connection MUST point at the cloudId/site declared in `.lisa.config.json`. Step 1's substrate selection already tries to switch mismatched acli profiles and verifies the result before selection. This step repeats the assertion before any operation runs — defensive in case the substrate state changed since selection.
|
|
168
168
|
|
|
169
169
|
Read configured site:
|
|
170
170
|
|
|
@@ -188,8 +188,22 @@ current_site=$(echo "$current" | jq -r '.site // empty')
|
|
|
188
188
|
current_email=$(echo "$current" | jq -r '.email // empty')
|
|
189
189
|
|
|
190
190
|
if [ -n "$site" ] && [ "$current_site" != "$site" ]; then
|
|
191
|
-
# Profile mismatch — switch.
|
|
191
|
+
# Profile mismatch — switch, then re-verify. Do not trust the switch exit
|
|
192
|
+
# status alone because acli's active account is machine-global state.
|
|
192
193
|
acli auth switch --site "$site" ${email:+--email "$email"}
|
|
194
|
+
current=$(acli auth status --json 2>/dev/null)
|
|
195
|
+
current_site=$(echo "$current" | jq -r '.site // empty')
|
|
196
|
+
current_email=$(echo "$current" | jq -r '.email // empty')
|
|
197
|
+
fi
|
|
198
|
+
|
|
199
|
+
if [ -n "$site" ] && [ "$current_site" != "$site" ]; then
|
|
200
|
+
echo "Error: acli active site is '$current_site', but .lisa.config.json requires '$site'. Run /lisa:setup:atlassian to add or repair the matching profile." >&2
|
|
201
|
+
exit 1
|
|
202
|
+
fi
|
|
203
|
+
|
|
204
|
+
if [ -n "$email" ] && [ -n "$current_email" ] && [ "$current_email" != "$email" ]; then
|
|
205
|
+
echo "Error: acli active account is '$current_email', but .lisa.config.json requires '$email'. Run /lisa:setup:atlassian to add or repair the matching profile." >&2
|
|
206
|
+
exit 1
|
|
193
207
|
fi
|
|
194
208
|
```
|
|
195
209
|
|