@codyswann/lisa 4.55.8 → 4.55.10
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/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/nightly-e2e-guard-behavior-certificate.js.map +1 -1
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +12 -10
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/package.json +4 -4
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-evidence/SKILL.md +3 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-evidence/scripts/post-evidence.sh +32 -2
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-read-ticket/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-read-ticket/scripts/download-attachment.sh +57 -5
- package/plugins/lisa/skills/lisa-jira-evidence/SKILL.md +3 -0
- package/plugins/lisa/skills/lisa-jira-evidence/scripts/post-evidence.sh +32 -2
- package/plugins/lisa/skills/lisa-jira-read-ticket/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-jira-read-ticket/scripts/download-attachment.sh +57 -5
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/skills/lisa-jira-evidence/SKILL.md +3 -0
- package/plugins/lisa-agy/skills/lisa-jira-evidence/scripts/post-evidence.sh +32 -2
- package/plugins/lisa-agy/skills/lisa-jira-read-ticket/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-jira-read-ticket/scripts/download-attachment.sh +57 -5
- 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/lisa-jira-evidence/SKILL.md +3 -0
- package/plugins/lisa-copilot/skills/lisa-jira-evidence/scripts/post-evidence.sh +32 -2
- package/plugins/lisa-copilot/skills/lisa-jira-read-ticket/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-jira-read-ticket/scripts/download-attachment.sh +57 -5
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/skills/lisa-jira-evidence/SKILL.md +3 -0
- package/plugins/lisa-cursor/skills/lisa-jira-evidence/scripts/post-evidence.sh +32 -2
- package/plugins/lisa-cursor/skills/lisa-jira-read-ticket/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-jira-read-ticket/scripts/download-attachment.sh +57 -5
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/skills/jira-evidence/SKILL.md +3 -0
- package/plugins/lisa-expo/.codex-plugin/skills/jira-evidence/scripts/post-evidence.sh +32 -2
- package/plugins/lisa-expo/.codex-plugin/skills/jira-journey/SKILL.md +7 -2
- package/plugins/lisa-expo/.codex-plugin/skills/jira-journey/scripts/parse-plan.py +32 -0
- package/plugins/lisa-expo/skills/jira-evidence/SKILL.md +3 -0
- package/plugins/lisa-expo/skills/jira-evidence/scripts/post-evidence.sh +32 -2
- package/plugins/lisa-expo/skills/jira-journey/SKILL.md +7 -2
- package/plugins/lisa-expo/skills/jira-journey/scripts/parse-plan.py +32 -0
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-agy/skills/jira-evidence/SKILL.md +3 -0
- package/plugins/lisa-expo-agy/skills/jira-evidence/scripts/post-evidence.sh +32 -2
- package/plugins/lisa-expo-agy/skills/jira-journey/SKILL.md +7 -2
- package/plugins/lisa-expo-agy/skills/jira-journey/scripts/parse-plan.py +32 -0
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/skills/jira-evidence/SKILL.md +3 -0
- package/plugins/lisa-expo-copilot/skills/jira-evidence/scripts/post-evidence.sh +32 -2
- package/plugins/lisa-expo-copilot/skills/jira-journey/SKILL.md +7 -2
- package/plugins/lisa-expo-copilot/skills/jira-journey/scripts/parse-plan.py +32 -0
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/skills/jira-evidence/SKILL.md +3 -0
- package/plugins/lisa-expo-cursor/skills/jira-evidence/scripts/post-evidence.sh +32 -2
- package/plugins/lisa-expo-cursor/skills/jira-journey/SKILL.md +7 -2
- package/plugins/lisa-expo-cursor/skills/jira-journey/scripts/parse-plan.py +32 -0
- package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-agy/plugin.json +1 -1
- package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-agy/plugin.json +1 -1
- package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-agy/plugin.json +1 -1
- package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/skills/jira-evidence/SKILL.md +3 -0
- package/plugins/lisa-rails/.codex-plugin/skills/jira-evidence/scripts/post-evidence.sh +32 -2
- package/plugins/lisa-rails/skills/jira-evidence/SKILL.md +3 -0
- package/plugins/lisa-rails/skills/jira-evidence/scripts/post-evidence.sh +32 -2
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-agy/skills/jira-evidence/SKILL.md +3 -0
- package/plugins/lisa-rails-agy/skills/jira-evidence/scripts/post-evidence.sh +32 -2
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/skills/jira-evidence/SKILL.md +3 -0
- package/plugins/lisa-rails-copilot/skills/jira-evidence/scripts/post-evidence.sh +32 -2
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/skills/jira-evidence/SKILL.md +3 -0
- package/plugins/lisa-rails-cursor/skills/jira-evidence/scripts/post-evidence.sh +32 -2
- 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/lisa-jira-evidence/SKILL.md +3 -0
- package/plugins/src/base/skills/lisa-jira-evidence/scripts/post-evidence.sh +32 -2
- package/plugins/src/base/skills/lisa-jira-read-ticket/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-jira-read-ticket/scripts/download-attachment.sh +57 -5
- package/plugins/src/expo/skills/jira-evidence/SKILL.md +3 -0
- package/plugins/src/expo/skills/jira-evidence/scripts/post-evidence.sh +32 -2
- package/plugins/src/expo/skills/jira-journey/SKILL.md +7 -2
- package/plugins/src/expo/skills/jira-journey/scripts/parse-plan.py +32 -0
- package/plugins/src/rails/skills/jira-evidence/SKILL.md +3 -0
- package/plugins/src/rails/skills/jira-evidence/scripts/post-evidence.sh +32 -2
|
@@ -17,8 +17,13 @@ Read a JIRA ticket's Validation Journey, execute it via Playwright MCP browser t
|
|
|
17
17
|
## Prerequisites
|
|
18
18
|
|
|
19
19
|
- `JIRA_API_TOKEN` environment variable set
|
|
20
|
-
- `jira-cli` configured
|
|
21
|
-
|
|
20
|
+
- `jira-cli` configured in the operator's `~/.config/.jira/.config.yml`.
|
|
21
|
+
This Expo parser deliberately remains home-config-only: it does not consume
|
|
22
|
+
checkout configuration or a `JIRA_SERVER` environment override. Its server must
|
|
23
|
+
be a bare HTTPS origin with no userinfo, query, fragment, or path prefix.
|
|
24
|
+
ASCII DNS names, IPv4, and bracketed IPv6 are supported; default port `443`
|
|
25
|
+
and a root slash are canonicalized away. Whitespace, controls, encoded or
|
|
26
|
+
non-ASCII hosts, trailing dots, and port zero are rejected before the token is read.
|
|
22
27
|
- `gh` CLI authenticated
|
|
23
28
|
- Playwright MCP server running (browser tools available)
|
|
24
29
|
- Dev server running
|
|
@@ -25,6 +25,7 @@ Output (JSON):
|
|
|
25
25
|
}
|
|
26
26
|
"""
|
|
27
27
|
|
|
28
|
+
import ipaddress
|
|
28
29
|
import json
|
|
29
30
|
import os
|
|
30
31
|
import re
|
|
@@ -33,6 +34,31 @@ import sys
|
|
|
33
34
|
import urllib.request
|
|
34
35
|
from base64 import b64encode
|
|
35
36
|
from pathlib import Path
|
|
37
|
+
from urllib.parse import urlsplit
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def server_origin(server):
|
|
41
|
+
"""Validate the base parser's bare HTTPS grammar before accessing a token."""
|
|
42
|
+
if not server or any(char <= " " or char >= "\x7f" for char in server):
|
|
43
|
+
return ""
|
|
44
|
+
try:
|
|
45
|
+
parsed = urlsplit(server)
|
|
46
|
+
if (parsed.scheme != "https" or "@" in parsed.netloc
|
|
47
|
+
or "?" in server or "#" in server
|
|
48
|
+
or parsed.path not in ("", "/") or not parsed.hostname):
|
|
49
|
+
return ""
|
|
50
|
+
host = parsed.hostname
|
|
51
|
+
if parsed.netloc.startswith("["):
|
|
52
|
+
host = f"[{ipaddress.IPv6Address(host).compressed}]"
|
|
53
|
+
elif not re.fullmatch(r"[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*", host):
|
|
54
|
+
return ""
|
|
55
|
+
port = parsed.port
|
|
56
|
+
if port == 0:
|
|
57
|
+
return ""
|
|
58
|
+
suffix = f":{port}" if port is not None and port != 443 else ""
|
|
59
|
+
return f"https://{host}{suffix}"
|
|
60
|
+
except ValueError:
|
|
61
|
+
return ""
|
|
36
62
|
|
|
37
63
|
|
|
38
64
|
def get_jira_config():
|
|
@@ -51,6 +77,12 @@ def get_jira_config():
|
|
|
51
77
|
elif line.startswith("login:"):
|
|
52
78
|
login = line.split(":", 1)[1].strip()
|
|
53
79
|
|
|
80
|
+
# Home configuration remains the operator-owned source; never trust checkout input here.
|
|
81
|
+
server = server_origin(server)
|
|
82
|
+
if not server:
|
|
83
|
+
print("ERROR: Jira server must be a bare HTTPS origin without userinfo, path, query or fragment.", file=sys.stderr)
|
|
84
|
+
sys.exit(1)
|
|
85
|
+
|
|
54
86
|
token = os.environ.get("JIRA_API_TOKEN", "")
|
|
55
87
|
if not token:
|
|
56
88
|
print("ERROR: JIRA_API_TOKEN env var not set", file=sys.stderr)
|
|
@@ -17,6 +17,9 @@ Upload captured evidence and generated templates to GitHub PR description and JI
|
|
|
17
17
|
|
|
18
18
|
## Prerequisites
|
|
19
19
|
|
|
20
|
+
- `python3` for destination validation. Configure `server` as a bare HTTPS origin:
|
|
21
|
+
no userinfo, path prefix, query, or fragment. Invalid destinations are rejected
|
|
22
|
+
before Basic authorization is constructed.
|
|
20
23
|
- `JIRA_API_TOKEN` environment variable set
|
|
21
24
|
- a jira-cli config — `.lisa/jira-cli/.config.yml` if the `setup-jira-cli`
|
|
22
25
|
SessionStart hook wrote one, otherwise `~/.config/.jira/.config.yml`. `server`
|
|
@@ -73,8 +73,38 @@ else
|
|
|
73
73
|
echo " writes the project config — or run 'jira init' locally." >&2
|
|
74
74
|
exit 1
|
|
75
75
|
fi
|
|
76
|
-
JIRA_SERVER=$(
|
|
76
|
+
JIRA_SERVER=$(sed -n 's/^server:[[:space:]]*//p' "$JIRA_CONFIG")
|
|
77
77
|
JIRA_USER=$(grep '^login:' "$JIRA_CONFIG" | awk '{print $2}')
|
|
78
|
+
# Validate before constructing credentials; use only the approved HTTPS origin.
|
|
79
|
+
JIRA_SERVER=$(python3 - "$JIRA_SERVER" <<'PY_ORIGIN'
|
|
80
|
+
import ipaddress
|
|
81
|
+
import re
|
|
82
|
+
import sys
|
|
83
|
+
from urllib.parse import urlsplit
|
|
84
|
+
|
|
85
|
+
raw = sys.argv[1]
|
|
86
|
+
try:
|
|
87
|
+
if not raw or any(c <= " " or c >= "\x7f" for c in raw):
|
|
88
|
+
raise ValueError()
|
|
89
|
+
url = urlsplit(raw)
|
|
90
|
+
if (url.scheme != "https" or "@" in url.netloc or "?" in raw
|
|
91
|
+
or "#" in raw or url.path not in ("", "/") or not url.hostname):
|
|
92
|
+
raise ValueError()
|
|
93
|
+
host = url.hostname
|
|
94
|
+
if url.netloc.startswith("["):
|
|
95
|
+
host = f"[{ipaddress.IPv6Address(host).compressed}]"
|
|
96
|
+
elif not re.fullmatch(r"[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*", host):
|
|
97
|
+
raise ValueError()
|
|
98
|
+
port = url.port
|
|
99
|
+
if port == 0:
|
|
100
|
+
raise ValueError()
|
|
101
|
+
suffix = f":{port}" if port is not None and port != 443 else ""
|
|
102
|
+
print(f"https://{host}{suffix}")
|
|
103
|
+
except ValueError:
|
|
104
|
+
sys.exit("ERROR: JIRA_SERVER must be a bare HTTPS origin without userinfo, path, query or fragment.")
|
|
105
|
+
PY_ORIGIN
|
|
106
|
+
)
|
|
107
|
+
|
|
78
108
|
GH_REPO=$(gh repo view --json nameWithOwner --jq '.nameWithOwner')
|
|
79
109
|
RELEASE_TAG="pr-assets"
|
|
80
110
|
|
|
@@ -104,7 +134,7 @@ fi
|
|
|
104
134
|
echo "Found ${#SCREENSHOTS[@]} screenshots and ${#TEXT_EVIDENCE[@]} text evidence files to upload"
|
|
105
135
|
|
|
106
136
|
# Compute JIRA auth early (used in steps 3 and 4)
|
|
107
|
-
JIRA_AUTH=$(
|
|
137
|
+
JIRA_AUTH=$(printf '%s' "$JIRA_USER:$JIRA_API_TOKEN" | base64 | tr -d '\n')
|
|
108
138
|
|
|
109
139
|
# ── Step 1: Upload to GitHub pr-assets release ──────────────────────────────
|
|
110
140
|
echo ""
|