@caddis/cli 0.4.58 → 0.4.60

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.
@@ -101,11 +101,15 @@ SECRET_RULES: list[tuple[str, re.Pattern]] = [
101
101
  ("npm-token", re.compile(r"\bnpm_[A-Za-z0-9]{36}\b")),
102
102
  ("slack-webhook", re.compile(r"https://hooks\.slack\.com/services/[A-Za-z0-9_/]+")),
103
103
  # user:password@host in a URL. `value` is the password; placeholders are exempted in code.
104
+ # Both rules below start a match only at the start of a run of the characters their first part takes (the
105
+ # lookbehind). A match that starts inside the run finds the same value from the run start too, and without the
106
+ # lookbehind each character of a long word started a new scan: quadratic, minutes on one long line.
104
107
  ("url-credentials", re.compile(
105
- r"[a-z][a-z0-9+.-]*://[^/\s:@]*:(?P<value>[^/\s@]{3,})@", re.I)),
108
+ r"(?<![a-z0-9+.-])[0-9+.-]*[a-z][a-z0-9+.-]*://[^/\s:@]*:(?P<value>[^/\s@]{3,})@", re.I)),
106
109
  # `name = "v"`, `name: "v"`, and a quoted key: `"name": "v"`, `'name': 'v'`.
107
110
  ("assignment", re.compile(
108
- r"(?i)[A-Za-z0-9_]*(password|passwd|secret|api[_-]?key|token)[A-Za-z0-9_]*['\"]?\s*[:=]\s*['\"](?P<value>[^'\"\s]{8,})['\"]"
111
+ r"(?i)(?<![A-Za-z0-9_])[A-Za-z0-9_]*(password|passwd|secret|api[_-]?key|token)[A-Za-z0-9_]*['\"]?\s*[:=]\s*"
112
+ r"['\"](?P<value>[^'\"\s]{8,})['\"]"
109
113
  )),
110
114
  ("env-assignment", re.compile(
111
115
  r"^\s*(?:export\s+)?[A-Za-z0-9_]*(?:PASSWORD|PASSWD|SECRET|API_KEY|APIKEY|TOKEN|PRIVATE_KEY)"
@@ -1,7 +1,7 @@
1
1
  {
2
- "poolVersion": "1.3.144",
2
+ "poolVersion": "1.3.146",
3
3
  "bundles": {
4
- "antigravity-plugin": "1.3.144",
4
+ "antigravity-plugin": "1.3.146",
5
5
  "antigravity-plugin-extras": "1.3.45",
6
6
  "codex": "unknown"
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caddis/cli",
3
- "version": "0.4.58",
3
+ "version": "0.4.60",
4
4
  "description": "Install, update and diagnose the caddis dev harness across every coding agent you use (Claude Code, agy/Antigravity, and more).",
5
5
  "keywords": [
6
6
  "caddis",