@codyswann/lisa 1.81.3 → 1.81.4

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.
@@ -1 +1 @@
1
- {"version":3,"file":"ignore-patterns.d.ts","sourceRoot":"","sources":["../../src/utils/ignore-patterns.ts"],"names":[],"mappings":"AAWA;;GAEG;AACH,eAAO,MAAM,mBAAmB,gBAAgB,CAAC;AAEjD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,iCAAiC;IACjC,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,iDAAiD;IACjD,QAAQ,CAAC,YAAY,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,OAAO,CAAC;CAC1D;AAsED;;;;GAIG;AACH,wBAAsB,kBAAkB,CACtC,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,cAAc,CAAC,CAkBzB"}
1
+ {"version":3,"file":"ignore-patterns.d.ts","sourceRoot":"","sources":["../../src/utils/ignore-patterns.ts"],"names":[],"mappings":"AAyCA;;GAEG;AACH,eAAO,MAAM,mBAAmB,gBAAgB,CAAC;AAEjD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,iCAAiC;IACjC,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,iDAAiD;IACjD,QAAQ,CAAC,YAAY,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,OAAO,CAAC;CAC1D;AAsED;;;;GAIG;AACH,wBAAsB,kBAAkB,CACtC,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,cAAc,CAAC,CAkBzB"}
@@ -1,13 +1,28 @@
1
1
  import { readFile } from "node:fs/promises";
2
2
  import * as path from "node:path";
3
- // minimatch v3 is a CJS module that exports the function as the default export.
4
- // Using a default import works in both ts-jest (esModuleInterop wraps CJS exports)
5
- // and native Node.js ESM (CJS-ESM interop exposes module.exports as default).
6
- // v3 is used intentionally so bun hoists it top-level in downstream projects,
7
- // preventing test-exclude (which also requires ^3.x) from resolving to an
8
- // incompatible v9+ object via require().
9
- import minimatch from "minimatch";
3
+ // minimatch is imported as a namespace to support both v3 (CJS) and v9+ (ESM)
4
+ // interoperably. In downstream projects, bun may hoist whichever version a
5
+ // transitive dependency requires (e.g. @ts-morph/common pulls v10), so Lisa
6
+ // cannot assume a specific export shape:
7
+ // - v3: CJS `module.exports = fn` ESM interop exposes as `.default`
8
+ // - v9+: Native ESM with a named `minimatch` export and no default
9
+ // The `minimatchFn` local below picks whichever callable the resolved version
10
+ // provides so Lisa works regardless of which minimatch is hoisted top-level.
11
+ import * as minimatchModule from "minimatch";
10
12
  import { pathExists } from "./file-operations.js";
13
+ /**
14
+ * Resolve the minimatch predicate across v3 (CJS default export) and v9+
15
+ * (native ESM named export). Throws if neither is available so callers see
16
+ * a clear error instead of "undefined is not a function" at match time.
17
+ */
18
+ const minimatchFn = (() => {
19
+ const mod = minimatchModule;
20
+ const candidate = typeof mod.default === "function" ? mod.default : mod.minimatch;
21
+ if (typeof candidate !== "function") {
22
+ throw new TypeError("minimatch module did not expose a callable export; expected v3 default or v9+ named export");
23
+ }
24
+ return candidate;
25
+ })();
11
26
  /**
12
27
  * Name of the ignore file that projects can use to skip Lisa files
13
28
  */
@@ -49,18 +64,18 @@ function matchesAnyPattern(relativePath, patterns) {
49
64
  return true;
50
65
  }
51
66
  // Handle glob patterns
52
- if (minimatch(normalizedPath, pattern, { dot: true })) {
67
+ if (minimatchFn(normalizedPath, pattern, { dot: true })) {
53
68
  return true;
54
69
  }
55
70
  // Handle patterns that should match anywhere in path
56
71
  if (!pattern.includes("/")) {
57
72
  // Pattern without slashes matches any path segment
58
73
  const segments = normalizedPath.split("/");
59
- return segments.some(segment => minimatch(segment, pattern, { dot: true }));
74
+ return segments.some(segment => minimatchFn(segment, pattern, { dot: true }));
60
75
  }
61
76
  // Handle patterns starting with **/ (match anywhere)
62
77
  if (pattern.startsWith("**/")) {
63
- return minimatch(normalizedPath, pattern, { dot: true });
78
+ return minimatchFn(normalizedPath, pattern, { dot: true });
64
79
  }
65
80
  return false;
66
81
  });
@@ -1 +1 @@
1
- {"version":3,"file":"ignore-patterns.js","sourceRoot":"","sources":["../../src/utils/ignore-patterns.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,gFAAgF;AAChF,mFAAmF;AACnF,8EAA8E;AAC9E,8EAA8E;AAC9E,0EAA0E;AAC1E,yCAAyC;AACzC,OAAO,SAAS,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAAC;AAYjD;;;;;;;;;GASG;AACH,SAAS,mBAAmB,CAAC,OAAe;IAC1C,OAAO,OAAO;SACX,KAAK,CAAC,IAAI,CAAC;SACX,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;SACxB,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC;AAC9D,CAAC;AAED;;;;;GAKG;AACH,SAAS,iBAAiB,CACxB,YAAoB,EACpB,QAA2B;IAE3B,4BAA4B;IAC5B,MAAM,cAAc,GAAG,YAAY,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAExD,OAAO,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE;QAC7B,4CAA4C;QAC5C,IAAI,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YAC1B,MAAM,UAAU,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;YACxC,OAAO,CACL,cAAc,CAAC,UAAU,CAA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QACrD,IAAI,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC;YAC9B,OAAO,WAAW,CAAC,cAAc,EAAE,OAAO,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC;QAC7D,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC,CAAC,CAAC;AACL,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACtC,UAAkB;IAElB,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,mBAAmB,CAAC,CAAC;IAE9D,IAAI,CAAC,CAAC,MAAM,UAAU,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC;QACpC,OAAO;YACL,QAAQ,EAAE,EAAE;YACZ,YAAY,EAAE,GAAG,EAAE,CAAC,KAAK;SAC1B,CAAC;IACJ,CAAC;IAED,MAAM,OAAO,GAAG,MAAM,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IACpD,MAAM,QAAQ,GAAG,mBAAmB,CAAC,OAAO,CAAC,CAAC;IAE9C,OAAO;QACL,QAAQ;QACR,YAAY,EAAE,CAAC,YAAoB,EAAE,EAAE,CACrC,iBAAiB,CAAC,YAAY,EAAE,QAAQ,CAAC;KAC5C,CAAC;AACJ,CAAC"}
@@ -95,7 +95,6 @@
95
95
  "react-hook-form",
96
96
  "react-native-element-dropdown",
97
97
  "react-native-keyboard-controller",
98
- "react-native-store-version",
99
98
  "tailwind-variants",
100
99
  "tar",
101
100
  "text-encoding-polyfill",
@@ -106,7 +106,6 @@
106
106
  "react-native-reanimated": "~4.2.1",
107
107
  "react-native-safe-area-context": "^5.6.2",
108
108
  "react-native-screens": "~4.19.0",
109
- "react-native-store-version": "^1.4.1",
110
109
  "react-native-svg": "^15.15.1",
111
110
  "react-native-web": "^0.21.2",
112
111
  "tailwindcss": "^3.4.7",
package/package.json CHANGED
@@ -76,7 +76,7 @@
76
76
  "lodash": ">=4.18.1"
77
77
  },
78
78
  "name": "@codyswann/lisa",
79
- "version": "1.81.3",
79
+ "version": "1.81.4",
80
80
  "description": "Claude Code governance framework that applies guardrails, guidance, and automated enforcement to projects",
81
81
  "main": "dist/index.js",
82
82
  "exports": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "1.81.3",
3
+ "version": "1.81.4",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "1.81.3",
3
+ "version": "1.81.4",
4
4
  "description": "AWS CDK-specific plugin",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "1.81.3",
3
+ "version": "1.81.4",
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-nestjs",
3
- "version": "1.81.3",
3
+ "version": "1.81.4",
4
4
  "description": "NestJS-specific skills (GraphQL, TypeORM)",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-rails",
3
- "version": "1.81.3",
3
+ "version": "1.81.4",
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": "1.81.3",
3
+ "version": "1.81.4",
4
4
  "description": "TypeScript-specific hooks — Prettier formatting, ESLint linting, and ast-grep scanning on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -87,6 +87,11 @@
87
87
  "id": "GHSA-36jr-mh4h-2g58",
88
88
  "package": "d3-color",
89
89
  "reason": "ReDoS — transitive via react-native-svg-charts, color parsing not user-controlled"
90
+ },
91
+ {
92
+ "id": "GHSA-chqc-8p9q-pq6q",
93
+ "package": "basic-ftp",
94
+ "reason": "FTP command injection via CRLF — devDep only via @lhci/cli > proxy-agent > pac-proxy-agent > get-uri, no FTP usage in production code"
90
95
  }
91
96
  ]
92
97
  }