@codyswann/lisa 1.35.0 → 1.36.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.
@@ -0,0 +1,52 @@
1
+ #!/usr/bin/env bash
2
+ ##
3
+ # Writes the JIRA CLI config file from environment variables.
4
+ # Runs on SessionStart so the config is available for every session.
5
+ #
6
+ # Required env vars (must be created in your Claude Code Web environment):
7
+ # JIRA_INSTALLATION - cloud or local
8
+ # JIRA_SERVER - Atlassian instance URL
9
+ # JIRA_LOGIN - login email
10
+ # JIRA_PROJECT - default project key
11
+ # JIRA_API_TOKEN - already expected by jira-cli natively
12
+ #
13
+ # Optional env vars:
14
+ # JIRA_BOARD - default board name
15
+ ##
16
+
17
+ set -euo pipefail
18
+
19
+ # Fix jira-cli installation if install_pkgs.sh failed to extract correctly.
20
+ # The tarball nests the binary at jira_VERSION_linux_x86_64/bin/jira,
21
+ # but install_pkgs.sh expects a top-level "jira" file.
22
+ if ! command -v jira &>/dev/null; then
23
+ JIRA_CLI_VERSION="1.7.0"
24
+ TMPDIR=$(mktemp -d)
25
+ curl -sSfL "https://github.com/ankitpokhrel/jira-cli/releases/download/v${JIRA_CLI_VERSION}/jira_${JIRA_CLI_VERSION}_linux_x86_64.tar.gz" \
26
+ | tar -xz -C "${TMPDIR}"
27
+ cp "${TMPDIR}/jira_${JIRA_CLI_VERSION}_linux_x86_64/bin/jira" /usr/local/bin/jira
28
+ chmod +x /usr/local/bin/jira
29
+ rm -rf "${TMPDIR}"
30
+ fi
31
+
32
+ CONFIG_DIR="${HOME}/.config/.jira"
33
+ CONFIG_FILE="${CONFIG_DIR}/.config.yml"
34
+
35
+ # Skip config write if required vars are missing
36
+ if [[ -z "${JIRA_SERVER:-}" || -z "${JIRA_LOGIN:-}" ]]; then
37
+ exit 0
38
+ fi
39
+
40
+ mkdir -p "${CONFIG_DIR}"
41
+
42
+ cat > "${CONFIG_FILE}" << EOF
43
+ installation: ${JIRA_INSTALLATION:-cloud}
44
+ server: ${JIRA_SERVER}
45
+ login: ${JIRA_LOGIN}
46
+ project: ${JIRA_PROJECT:-}
47
+ board: "${JIRA_BOARD:-}"
48
+ auth_type: basic
49
+ epic:
50
+ name: Epic Name
51
+ link: Epic Link
52
+ EOF
@@ -32,6 +32,18 @@
32
32
  ]
33
33
  }
34
34
  ],
35
+ "SessionStart": [
36
+ {
37
+ "matcher": "",
38
+ "hooks": [
39
+ {
40
+ "type": "command",
41
+ "command": "$CLAUDE_PROJECT_DIR/.claude/hooks/setup-jira-cli.sh",
42
+ "timeout": 5
43
+ }
44
+ ]
45
+ }
46
+ ],
35
47
  "PostToolUse": [
36
48
  {
37
49
  "matcher": "Write|Edit",
@@ -45,6 +45,7 @@ Never delete anything that isn't tracked in git
45
45
  Never delete anything outside of this project's directory
46
46
  Never add "BREAKING CHANGE" to a commit message unless there is actually a breaking change
47
47
  Never stash changes you can't commit. Either fix whatever is prevening the commit or fail out and let the human know why.
48
+ Never lower thresholds for tests to pass a pre-push hook. You must increase test coverage to make it pass
48
49
 
49
50
  ONLY use eslint-disable as a last resort and confirm with human before doing so
50
51
  ONLY use eslint-disable for test file max-lines when comprehensive test coverage requires extensive test cases (must include matching eslint-enable)
@@ -20,14 +20,6 @@
20
20
  "SONARQUBE_TOKEN": "${SONAR_TOKEN}",
21
21
  "SONARQUBE_ORG": "${SONAR_ORG}"
22
22
  }
23
- },
24
- "atlassian": {
25
- "type": "sse",
26
- "url": "https://mcp.atlassian.com/v1/sse"
27
- },
28
- "playwright": {
29
- "command": "npx",
30
- "args": ["@playwright/mcp@latest"]
31
23
  }
32
24
  }
33
25
  }
package/package.json CHANGED
@@ -88,7 +88,7 @@
88
88
  "@isaacs/brace-expansion": "^5.0.1"
89
89
  },
90
90
  "name": "@codyswann/lisa",
91
- "version": "1.35.0",
91
+ "version": "1.36.0",
92
92
  "description": "Claude Code governance framework that applies guardrails, guidance, and automated enforcement to projects",
93
93
  "main": "dist/index.js",
94
94
  "bin": {
@@ -27,6 +27,19 @@ GITLEAKS_VERSION="8.18.4"
27
27
  curl -sSfL "https://github.com/gitleaks/gitleaks/releases/download/v${GITLEAKS_VERSION}/gitleaks_${GITLEAKS_VERSION}_linux_x64.tar.gz" | tar -xz -C /usr/local/bin gitleaks
28
28
  echo "Gitleaks installed: $(gitleaks version)"
29
29
 
30
+ # Install jira-cli for JIRA integration
31
+ # The tarball nests the binary at jira_VERSION_linux_x86_64/bin/jira,
32
+ # so we extract to a temp dir and copy the binary out.
33
+ echo "Installing jira-cli for JIRA integration..."
34
+ JIRA_CLI_VERSION="1.7.0"
35
+ JIRA_TMPDIR=$(mktemp -d)
36
+ curl -sSfL "https://github.com/ankitpokhrel/jira-cli/releases/download/v${JIRA_CLI_VERSION}/jira_${JIRA_CLI_VERSION}_linux_x86_64.tar.gz" \
37
+ | tar -xz -C "${JIRA_TMPDIR}"
38
+ cp "${JIRA_TMPDIR}/jira_${JIRA_CLI_VERSION}_linux_x86_64/bin/jira" /usr/local/bin/jira
39
+ chmod +x /usr/local/bin/jira
40
+ rm -rf "${JIRA_TMPDIR}"
41
+ echo "jira-cli installed: $(jira version)"
42
+
30
43
  # Install Chromium for Lighthouse CI (pre-push hook)
31
44
  # Playwright's bundled Chromium works with @lhci/cli
32
45
  echo "Installing Chromium for Lighthouse CI..."
@@ -43,6 +43,16 @@
43
43
  }
44
44
  ]
45
45
  },
46
+ {
47
+ "matcher": "",
48
+ "hooks": [
49
+ {
50
+ "type": "command",
51
+ "command": "$CLAUDE_PROJECT_DIR/.claude/hooks/setup-jira-cli.sh",
52
+ "timeout": 5
53
+ }
54
+ ]
55
+ },
46
56
  {
47
57
  "matcher": "",
48
58
  "hooks": [