@ultimat3/mcp 31.33.0 → 31.34.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultimat3/mcp",
3
- "version": "31.33.0",
3
+ "version": "31.34.0",
4
4
  "description": "MCP server, dev tools, and the action-to-tool projection \u2014 one authz system, two surfaces",
5
5
  "keywords": [
6
6
  "ultimate",
@@ -44,15 +44,15 @@
44
44
  "test": "bun test"
45
45
  },
46
46
  "dependencies": {
47
- "@ultimat3/action": "31.33.0",
48
- "@ultimat3/auth": "31.33.0",
49
- "@ultimat3/core": "31.33.0",
50
- "@ultimat3/db": "31.33.0",
51
- "@ultimat3/entity": "31.33.0",
52
- "@ultimat3/http": "31.33.0",
53
- "@ultimat3/jobs": "31.33.0",
54
- "@ultimat3/policy": "31.33.0",
55
- "@ultimat3/query": "31.33.0",
56
- "@ultimat3/schema": "31.33.0"
47
+ "@ultimat3/action": "31.34.0",
48
+ "@ultimat3/auth": "31.34.0",
49
+ "@ultimat3/core": "31.34.0",
50
+ "@ultimat3/db": "31.34.0",
51
+ "@ultimat3/entity": "31.34.0",
52
+ "@ultimat3/http": "31.34.0",
53
+ "@ultimat3/jobs": "31.34.0",
54
+ "@ultimat3/policy": "31.34.0",
55
+ "@ultimat3/query": "31.34.0",
56
+ "@ultimat3/schema": "31.34.0"
57
57
  }
58
58
  }
@@ -92,8 +92,13 @@ export function forbiddenFamily(called: string): string | undefined {
92
92
  /**
93
93
  * A call: an identifier immediately before `(`. Schema qualification falls out of the scan —
94
94
  * `pg_catalog.set_config(` matches on the last segment, which is the function being called.
95
+ *
96
+ * A match STARTS where a run of identifier characters starts (the lookbehind), skipping the run's
97
+ * leading digits and `$` to its first letter — the start the plain `([a-z_][a-z0-9_$]*)\s*\(`
98
+ * found too, which also retried every later letter of a run with no `(`: 15.9 s on 100k letters
99
+ * (CodeQL polynomial-redos).
95
100
  */
96
- const CALL_PATTERN = /([a-z_][a-z0-9_$]*)\s*\(/g;
101
+ const CALL_PATTERN = /(?<![a-z0-9_$])[0-9$]*([a-z_][a-z0-9_$]*)\s*\(/g;
97
102
 
98
103
  /** Every function `sql` calls, lowercased. Read from the identifier-preserving strip. */
99
104
  export function calledFunctions(sql: string): readonly string[] {