@akasecurity/ai-tc-codex 0.9.22 → 0.9.24

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.
@@ -8864,7 +8864,11 @@ var ListFindingTypesQuery = object({
8864
8864
  // and so is not bounded by what any page happens to hold.
8865
8865
  includeId: string2().optional(),
8866
8866
  limit: coerce_exports.number().int().min(1).max(MAX_FINDING_TYPES_LIMIT).optional(),
8867
- cursor: string2().optional()
8867
+ cursor: string2().optional(),
8868
+ // A row position to read from, for jumping to a page instead of stepping to
8869
+ // it. Takes precedence over `cursor`, and the page's `nextCursor` carries on
8870
+ // from wherever it lands.
8871
+ offset: coerce_exports.number().int().min(0).optional()
8868
8872
  });
8869
8873
  var ListFindingTypesResponse = object({
8870
8874
  totals: object({
@@ -8945,7 +8949,11 @@ var ListFindingInstancesQuery = object({
8945
8949
  sessionId: string2().optional(),
8946
8950
  from: iso_exports.datetime().optional(),
8947
8951
  limit: coerce_exports.number().int().min(1).max(MAX_FLAT_FINDINGS_LIMIT).optional(),
8948
- cursor: string2().optional()
8952
+ cursor: string2().optional(),
8953
+ // A row position to read from, for jumping to a page instead of stepping to
8954
+ // it. Takes precedence over `cursor`, and the page's `nextCursor` carries on
8955
+ // from wherever it lands.
8956
+ offset: coerce_exports.number().int().min(0).optional()
8949
8957
  });
8950
8958
  var ListFindingInstancesResponse = object({
8951
8959
  // Instances matching the filters across the whole scope, not just this
@@ -9017,7 +9025,11 @@ var ListFindingLocationsQuery = object({
9017
9025
  // rather than a deep-link corner. Never affects totals, facets or the cursor.
9018
9026
  includeId: string2().optional(),
9019
9027
  limit: coerce_exports.number().int().min(1).max(MAX_FINDING_LOCATIONS_LIMIT).optional(),
9020
- cursor: string2().optional()
9028
+ cursor: string2().optional(),
9029
+ // A row position to read from, for jumping to a page instead of stepping to
9030
+ // it. Takes precedence over `cursor`, and the page's `nextCursor` carries on
9031
+ // from wherever it lands.
9032
+ offset: coerce_exports.number().int().min(0).optional()
9021
9033
  });
9022
9034
  var ListFindingLocationsResponse = object({
9023
9035
  totals: object({
@@ -11649,7 +11661,11 @@ var MAX_VAULT_PAGE_LIMIT = 200;
11649
11661
  var ListVaultInventoryQuery = object({
11650
11662
  limit: coerce_exports.number().int().min(1).max(MAX_VAULT_PAGE_LIMIT).optional(),
11651
11663
  // Opaque; names the last row of the page just served.
11652
- cursor: string2().optional()
11664
+ cursor: string2().optional(),
11665
+ // A row position to read from, for jumping to a page instead of stepping to
11666
+ // it. Takes precedence over `cursor`, and the page's `nextCursor` carries on
11667
+ // from wherever it lands.
11668
+ offset: coerce_exports.number().int().min(0).optional()
11653
11669
  });
11654
11670
  var ListVaultInventoryResponse = object({
11655
11671
  // Vaulted values across the whole store, not just this page — cursor-
@@ -11661,7 +11677,11 @@ var ListVaultInventoryResponse = object({
11661
11677
  });
11662
11678
  var ListVaultReuseQuery = object({
11663
11679
  limit: coerce_exports.number().int().min(1).max(MAX_VAULT_PAGE_LIMIT).optional(),
11664
- cursor: string2().optional()
11680
+ cursor: string2().optional(),
11681
+ // A row position to read from, for jumping to a page instead of stepping to
11682
+ // it. Takes precedence over `cursor`, and the page's `nextCursor` carries on
11683
+ // from wherever it lands.
11684
+ offset: coerce_exports.number().int().min(0).optional()
11665
11685
  });
11666
11686
  var ListVaultReuseResponse = object({
11667
11687
  // Reused values across the whole store — the number the section's claim
@@ -11677,9 +11697,15 @@ var ListVaultDerefsQuery = object({
11677
11697
  // over a Server Action, which preserves the type, never as a URL param.
11678
11698
  includeBatched: boolean2().optional(),
11679
11699
  limit: coerce_exports.number().int().min(1).max(MAX_VAULT_PAGE_LIMIT).optional(),
11680
- cursor: string2().optional()
11700
+ cursor: string2().optional(),
11701
+ // A row position to read from, for jumping to a page instead of stepping to
11702
+ // it. Takes precedence over `cursor`, and the page's `nextCursor` carries on
11703
+ // from wherever it lands.
11704
+ offset: coerce_exports.number().int().min(0).optional()
11681
11705
  });
11682
11706
  var ListVaultDerefsResponse = object({
11707
+ // Rows this filter selects across the whole trail, not just this page.
11708
+ totals: object({ derefs: number2().int().nonnegative() }),
11683
11709
  items: array(VaultDeref),
11684
11710
  nextCursor: string2().nullable(),
11685
11711
  // Display/view-render rows the query hid, over the WHOLE trail rather than
@@ -20487,7 +20513,7 @@ var SqliteFindingsRepository = class {
20487
20513
  };
20488
20514
  const limit = query.limit ?? DEFAULT_FINDING_TYPES_LIMIT;
20489
20515
  const cursor = query.cursor === void 0 ? null : decodeGroupCursor(query.cursor);
20490
- const start = cursor === null ? 0 : firstAfter(sorted, cursor);
20516
+ const start = query.offset ?? (cursor === null ? 0 : firstAfter(sorted, cursor));
20491
20517
  const page = sorted.slice(start, start + limit);
20492
20518
  const lastOnPage = page.at(-1);
20493
20519
  const nextCursor = start + limit < sorted.length && lastOnPage ? encodeGroupCursor(lastOnPage) : null;
@@ -20581,7 +20607,7 @@ var SqliteFindingsRepository = class {
20581
20607
  accumulator.add(row);
20582
20608
  if (!matchesInstanceFilters(row, opts)) continue;
20583
20609
  total += 1;
20584
- if (!isPastCursor(row)) continue;
20610
+ if (query.offset === void 0 ? !isPastCursor(row) : total <= query.offset) continue;
20585
20611
  if (items.length < limit) {
20586
20612
  items.push(toInstanceDetail(row));
20587
20613
  last = row;
@@ -20670,7 +20696,7 @@ var SqliteFindingsRepository = class {
20670
20696
  }
20671
20697
  }
20672
20698
  sorted.sort(compareLocationOrder);
20673
- const start = cursor === null ? 0 : firstLocationAfter(sorted, cursor);
20699
+ const start = query.offset ?? (cursor === null ? 0 : firstLocationAfter(sorted, cursor));
20674
20700
  const page = sorted.slice(start, start + limit);
20675
20701
  const lastOnPage = page.at(-1);
20676
20702
  const nextCursor = start + limit < sorted.length && lastOnPage ? encodeLocationCursor(lastOnPage) : null;
@@ -23298,6 +23324,9 @@ function pageLimit(requested, fallback) {
23298
23324
  if (requested === void 0) return fallback;
23299
23325
  return Math.min(Math.max(1, Math.trunc(requested)), MAX_VAULT_PAGE_LIMIT);
23300
23326
  }
23327
+ function pageOffset(requested) {
23328
+ return requested === void 0 ? 0 : Math.max(0, Math.trunc(requested));
23329
+ }
23301
23330
  function encodeReuseCursor(payload) {
23302
23331
  return Buffer.from(JSON.stringify(payload)).toString("base64url");
23303
23332
  }
@@ -23645,7 +23674,8 @@ var SqliteSecretVaultRepository = class {
23645
23674
  */
23646
23675
  listInventory(query = {}, now = Date.now()) {
23647
23676
  const limit = pageLimit(query.limit, DEFAULT_VAULT_INVENTORY_LIMIT);
23648
- const cursor = query.cursor === void 0 ? null : decodeKeysetCursor(query.cursor);
23677
+ const offset = pageOffset(query.offset);
23678
+ const cursor = query.cursor === void 0 || query.offset !== void 0 ? null : decodeKeysetCursor(query.cursor);
23649
23679
  const where = cursor === null ? "" : "WHERE (v.last_seen < :cursorLastSeen OR (v.last_seen = :cursorLastSeen AND v.pointer_id < :cursorPointerId))";
23650
23680
  const rows = allRows(
23651
23681
  this.db.prepare(
@@ -23659,11 +23689,12 @@ var SqliteSecretVaultRepository = class {
23659
23689
  FROM secret_vault v
23660
23690
  ${where}
23661
23691
  ORDER BY v.last_seen DESC, v.pointer_id DESC
23662
- LIMIT :limit`
23692
+ LIMIT :limit OFFSET :offset`
23663
23693
  ),
23664
23694
  bindParams({
23665
23695
  now,
23666
23696
  limit: limit + 1,
23697
+ offset,
23667
23698
  ...cursor === null ? {} : { cursorLastSeen: cursor.startedAtMs, cursorPointerId: cursor.id }
23668
23699
  })
23669
23700
  );
@@ -23687,7 +23718,8 @@ var SqliteSecretVaultRepository = class {
23687
23718
  */
23688
23719
  listReuse(query = {}, now = Date.now()) {
23689
23720
  const limit = pageLimit(query.limit, DEFAULT_VAULT_INVENTORY_LIMIT);
23690
- const cursor = query.cursor === void 0 ? null : decodeReuseCursor(query.cursor);
23721
+ const offset = pageOffset(query.offset);
23722
+ const cursor = query.cursor === void 0 || query.offset !== void 0 ? null : decodeReuseCursor(query.cursor);
23691
23723
  const after = cursor === null ? "" : `AND (v.occurrence_count < :cursorOccurrences
23692
23724
  OR (v.occurrence_count = :cursorOccurrences AND v.pointer_id < :cursorPointerId))`;
23693
23725
  const rows = allRows(
@@ -23702,11 +23734,12 @@ var SqliteSecretVaultRepository = class {
23702
23734
  FROM secret_vault v
23703
23735
  WHERE ${REUSED_PREDICATE} ${after}
23704
23736
  ORDER BY v.occurrence_count DESC, v.pointer_id DESC
23705
- LIMIT :limit`
23737
+ LIMIT :limit OFFSET :offset`
23706
23738
  ),
23707
23739
  bindParams({
23708
23740
  now,
23709
23741
  limit: limit + 1,
23742
+ offset,
23710
23743
  ...cursor === null ? {} : { cursorOccurrences: cursor.occurrences, cursorPointerId: cursor.pointerId }
23711
23744
  })
23712
23745
  );
@@ -23731,7 +23764,8 @@ var SqliteSecretVaultRepository = class {
23731
23764
  */
23732
23765
  listDerefs(query = {}) {
23733
23766
  const limit = pageLimit(query.limit, DEFAULT_VAULT_DEREFS_LIMIT);
23734
- const cursor = query.cursor === void 0 ? null : decodeKeysetCursor(query.cursor);
23767
+ const offset = pageOffset(query.offset);
23768
+ const cursor = query.cursor === void 0 || query.offset !== void 0 ? null : decodeKeysetCursor(query.cursor);
23735
23769
  const conditions = [];
23736
23770
  if (query.includeBatched !== true) {
23737
23771
  conditions.push(`reason NOT IN ('display', 'view-render')`);
@@ -23744,21 +23778,28 @@ var SqliteSecretVaultRepository = class {
23744
23778
  this.db.prepare(
23745
23779
  `SELECT id, pointer_id, at, target, reason, outcome, grant_id, pointer_count
23746
23780
  FROM secret_vault_deref ${where}
23747
- ORDER BY at DESC, id DESC LIMIT :limit`
23781
+ ORDER BY at DESC, id DESC LIMIT :limit OFFSET :offset`
23748
23782
  ),
23749
23783
  bindParams({
23750
23784
  limit: limit + 1,
23785
+ offset,
23751
23786
  ...cursor === null ? {} : { cursorAt: cursor.startedAtMs, cursorId: cursor.id }
23752
23787
  })
23753
23788
  );
23754
23789
  const hasMore = rows.length > limit;
23755
23790
  const page = hasMore ? rows.slice(0, limit) : rows;
23756
23791
  const last = page[page.length - 1];
23757
- const hiddenBatched = query.includeBatched === true ? 0 : countScalar(
23758
- this.db,
23759
- `SELECT count(*) AS n FROM secret_vault_deref WHERE reason IN ('display', 'view-render')`
23760
- );
23792
+ const counts = getRow(
23793
+ this.db.prepare(
23794
+ `SELECT count(*) AS total,
23795
+ count(*) FILTER (WHERE reason IN ('display', 'view-render')) AS hidden
23796
+ FROM secret_vault_deref`
23797
+ )
23798
+ ) ?? { total: 0, hidden: 0 };
23799
+ const includeBatched = query.includeBatched === true;
23800
+ const hiddenBatched = includeBatched ? 0 : counts.hidden;
23761
23801
  return {
23802
+ totals: { derefs: includeBatched ? counts.total : counts.total - counts.hidden },
23762
23803
  items: page.map((r) => ({
23763
23804
  id: r.id,
23764
23805
  pointerId: r.pointer_id,
@@ -23783,6 +23824,43 @@ var SqliteSecretVaultRepository = class {
23783
23824
  `SELECT COUNT(*) AS n FROM secret_vault v WHERE ${REUSED_PREDICATE}`
23784
23825
  );
23785
23826
  }
23827
+ /**
23828
+ * Every entry held, and how many of them are NOT under `currentVersion` — the
23829
+ * standing record of a fingerprint-key rotation whose re-key did not reach
23830
+ * every row.
23831
+ *
23832
+ * This is the durable form of what `SecretVault.refreshFingerprints` reports
23833
+ * once. That count is an event, gone the moment it is printed; this is the
23834
+ * condition, and it stays true until some later rotation re-keys the rows. It
23835
+ * is therefore the one that can answer "is a shortfall still outstanding?" —
23836
+ * including for a rotation run from the CLI, which no dashboard render saw.
23837
+ *
23838
+ * `<>` rather than `<`: a row ahead of the current version is equally
23839
+ * unmatchable, and that is reachable — a key file restored from a backup, or
23840
+ * replaced after being lost, leaves rows stamped higher than the key is.
23841
+ *
23842
+ * Both numbers come from ONE statement, which is why this returns a pair
23843
+ * instead of offering two counts to call. Read separately, a purge landing
23844
+ * between them hands back a `stale` counted over rows the later `total` no
23845
+ * longer includes, and a disclosure built from that pair states a fraction
23846
+ * true of no state of the table — "1 of 0 stored values", or a negative
23847
+ * remainder. Same reasoning as `purgeVault`'s count, which comes from the
23848
+ * delete rather than from a `countEntries` standing beside it.
23849
+ */
23850
+ countFingerprintEpochs(currentVersion) {
23851
+ const row = getRow(
23852
+ this.db.prepare(
23853
+ `SELECT COUNT(*) AS total,
23854
+ COALESCE(
23855
+ SUM(CASE WHEN fingerprint_key_version <> :currentVersion THEN 1 ELSE 0 END),
23856
+ 0
23857
+ ) AS stale
23858
+ FROM secret_vault`
23859
+ ),
23860
+ { currentVersion }
23861
+ ) ?? { stale: 0, total: 0 };
23862
+ return { stale: row.stale, total: row.total };
23863
+ }
23786
23864
  };
23787
23865
 
23788
23866
  // ../../packages/persistence/src/repositories/security.ts
@@ -25505,13 +25583,22 @@ var SecretVault = class {
25505
25583
  * fingerprint collides with a row already refreshed, is skipped rather than
25506
25584
  * aborting the pass — one damaged entry must not strand the re-key of every
25507
25585
  * other. A skipped row keeps resolving under its old fingerprint epoch.
25586
+ *
25587
+ * Every skip is COUNTED, because best-effort and silent are different things:
25588
+ * the loss above is invisible at the moment it happens and only shows up later
25589
+ * as a duplicate pointer, so the pass owes its caller a denominator rather
25590
+ * than a bare success count.
25508
25591
  */
25509
25592
  async refreshFingerprints(next) {
25510
25593
  let refreshed = 0;
25594
+ let skipped = 0;
25511
25595
  for (const row of this.#repo.listAll()) {
25512
25596
  try {
25513
25597
  const raw = await this.#openRow(row);
25514
- if (raw === null) continue;
25598
+ if (raw === null) {
25599
+ skipped += 1;
25600
+ continue;
25601
+ }
25515
25602
  this.#repo.refreshFingerprint(row.pointerId, {
25516
25603
  valueFingerprint: exactFingerprintValue(next, raw),
25517
25604
  valueIdentityFingerprint: fingerprintValue(next, raw),
@@ -25519,10 +25606,10 @@ var SecretVault = class {
25519
25606
  });
25520
25607
  refreshed += 1;
25521
25608
  } catch {
25522
- continue;
25609
+ skipped += 1;
25523
25610
  }
25524
25611
  }
25525
- return refreshed;
25612
+ return { refreshed, skipped };
25526
25613
  }
25527
25614
  /**
25528
25615
  * Destroy every entry, making all outstanding pointers permanently
@@ -26892,6 +26979,21 @@ function passesPostValidators(rule, value) {
26892
26979
  function getLoadedRules() {
26893
26980
  return [...packs.values()].flatMap((p) => p.rules);
26894
26981
  }
26982
+ function outsideWrittenRegions(candidates, context) {
26983
+ const regions = context?.writtenRegions;
26984
+ if (!regions || regions.length === 0 || context.eventKind !== "tool_use") return candidates;
26985
+ return candidates.filter((c) => {
26986
+ if (c.rule.category !== "code_flaw") return true;
26987
+ const { start, end } = c.match.span;
26988
+ return !regions.some(
26989
+ (r) => r.start <= start && end <= r.end && ruleApplies(
26990
+ c.rule,
26991
+ r.filePath === void 0 ? void 0 : extensionOf(r.filePath),
26992
+ "code_change"
26993
+ )
26994
+ );
26995
+ });
26996
+ }
26895
26997
  function spansOverlap(a, b) {
26896
26998
  return a.start < b.end && a.end > b.start;
26897
26999
  }
@@ -27079,17 +27181,20 @@ function scanEncoded(text, ruleset, context) {
27079
27181
  function scanText(text, ruleset, context) {
27080
27182
  const extension = context?.filePath ? extensionOf(context.filePath) : void 0;
27081
27183
  const normalization = normalizeFormatChars(text);
27082
- const originalCandidates = buildCandidates(text, ruleset, extension, context?.eventKind);
27184
+ const originalCandidates = outsideWrittenRegions(
27185
+ buildCandidates(text, ruleset, extension, context?.eventKind),
27186
+ context
27187
+ );
27083
27188
  if (!normalization) return gate(originalCandidates, text, void 0);
27084
27189
  const pooledOriginal = originalCandidates.map(
27085
27190
  (candidate) => withNormalizedSpan(candidate, normalization)
27086
27191
  );
27087
- const normalizedCandidates = buildCandidates(
27088
- normalization.normalized,
27089
- ruleset,
27090
- extension,
27091
- context?.eventKind
27092
- ).map((candidate) => mapCandidateToOriginal(candidate, normalization, text));
27192
+ const normalizedCandidates = outsideWrittenRegions(
27193
+ buildCandidates(normalization.normalized, ruleset, extension, context?.eventKind).map(
27194
+ (candidate) => mapCandidateToOriginal(candidate, normalization, text)
27195
+ ),
27196
+ context
27197
+ );
27093
27198
  const findings = gate([...pooledOriginal, ...normalizedCandidates], text, normalization);
27094
27199
  return mergeOverlappingSameRule(findings, text);
27095
27200
  }
@@ -27980,7 +28085,7 @@ var sql_inject_concat_dot_default = {
27980
28085
  severity: "high",
27981
28086
  matcher: {
27982
28087
  type: "regex",
27983
- pattern: `["'](?=([^"'\\n]*?(?:select|insert|update|delete|drop|where)))\\1(?:(?!["'][^"'\\n]*?(?:select|insert|update|delete|drop|where))[^\\n])*?["']\\s*\\.`,
28088
+ pattern: "([\"'])(?=((?:(?!\\1)[^\\n])*?\\b(?:select\\b(?:(?!\\1|\\bselect\\b)[^\\n])*?\\bfrom\\b|insert\\s+(?:(?:ignore|low_priority|delayed|high_priority|or\\s+(?:replace|ignore|rollback|abort|fail))\\s+){0,2}into\\b|update\\s+(?:only\\s+)?\\S+(?:(?:\\s+as\\s+[\\w`\\[\\]]+)?\\s+set\\b|(?:\\s*,\\s*[\\w.`\\[\\]$]+)+\\s+set\\s+[\\w.`\\[\\]$]+\\s*=)|delete\\s+from\\b|drop\\s+(?:table|database|index|view)\\b|where\\s+[\\w.`\\[\\]${}]+(?:\\s*(?:!=|[=<>])|\\s+(?:in\\s*\\(|like\\s*(?!\\1)['\"%]|between\\b)))))\\2(?:(?!\\1(?:(?!\\1)[^\\n])*?\\b(?:select\\b|insert\\s+(?:(?:ignore|low_priority|delayed|high_priority|or\\s+(?:replace|ignore|rollback|abort|fail))\\s+){0,2}into\\b|update\\s+(?:only\\s+)?\\S+(?:(?:\\s+as\\s+[\\w`\\[\\]]+)?\\s+set\\b|(?:\\s*,\\s*[\\w.`\\[\\]$]+)+\\s+set\\s+[\\w.`\\[\\]$]+\\s*=)|delete\\s+from\\b|drop\\s+(?:table|database|index|view)\\b|where\\b))[^\\n])*?[\"']\\s*\\.",
27984
28089
  flags: "gi"
27985
28090
  },
27986
28091
  appliesTo: {
@@ -27998,7 +28103,7 @@ var sql_inject_concat_default = {
27998
28103
  severity: "high",
27999
28104
  matcher: {
28000
28105
  type: "regex",
28001
- pattern: `(["'])\\s*(?=(select\\b(?:(?!\\1\\s*(?:select\\b|insert\\s+into\\b|update\\s+\\S+\\s+set\\b|delete\\s+from\\b|drop\\s+(?:table|database)\\b|where\\b))[^\\n])*?\\bfrom\\b|insert\\s+into\\b|update\\s+\\S+\\s+set\\b|delete\\s+from\\b|drop\\s+(?:table|database)\\b|where\\b(?:(?!\\1\\s*(?:select\\b|insert\\s+into\\b|update\\s+\\S+\\s+set\\b|delete\\s+from\\b|drop\\s+(?:table|database)\\b|where\\b))[^\\n])*?=))\\2(?:(?!\\1\\s*(?:select\\b|insert\\s+into\\b|update\\s+\\S+\\s+set\\b|delete\\s+from\\b|drop\\s+(?:table|database)\\b|where\\b))[^\\n])*?["']\\s*\\+`,
28106
+ pattern: "([\"'])\\s*(?=(select\\b(?:(?!\\1\\s*(?:select\\b|insert\\s+(?:(?:ignore|low_priority|delayed|high_priority|or\\s+(?:replace|ignore|rollback|abort|fail))\\s+){0,2}into\\b|update\\s+(?:only\\s+)?\\S+(?:(?:\\s+as\\s+[\\w`\\[\\]]+)?\\s+set\\b|(?:\\s*,\\s*[\\w.`\\[\\]$]+)+\\s+set\\s+[\\w.`\\[\\]$]+\\s*=)|delete\\s+from\\b|drop\\s+(?:table|database|index|view)\\b|where\\b))[^\\n])*?\\bfrom\\b|insert\\s+(?:(?:ignore|low_priority|delayed|high_priority|or\\s+(?:replace|ignore|rollback|abort|fail))\\s+){0,2}into\\b|update\\s+(?:only\\s+)?\\S+(?:(?:\\s+as\\s+[\\w`\\[\\]]+)?\\s+set\\b|(?:\\s*,\\s*[\\w.`\\[\\]$]+)+\\s+set\\s+[\\w.`\\[\\]$]+\\s*=)|delete\\s+from\\b|drop\\s+(?:table|database|index|view)\\b|where\\s+[\\w.`\\[\\]${}]+(?:\\s*(?:!=|[=<>])|\\s+(?:in\\s*\\(|like\\s*(?!\\1)['\"%]|between\\b))))\\2(?:(?!\\1\\s*(?:select\\b|insert\\s+(?:(?:ignore|low_priority|delayed|high_priority|or\\s+(?:replace|ignore|rollback|abort|fail))\\s+){0,2}into\\b|update\\s+(?:only\\s+)?\\S+(?:(?:\\s+as\\s+[\\w`\\[\\]]+)?\\s+set\\b|(?:\\s*,\\s*[\\w.`\\[\\]$]+)+\\s+set\\s+[\\w.`\\[\\]$]+\\s*=)|delete\\s+from\\b|drop\\s+(?:table|database|index|view)\\b|where\\b))[^\\n])*?[\"']\\s*\\+",
28002
28107
  flags: "gi"
28003
28108
  },
28004
28109
  examples: ['"SELECT * FROM users WHERE id = " + userId']
@@ -28013,7 +28118,7 @@ var sql_inject_format_default = {
28013
28118
  severity: "high",
28014
28119
  matcher: {
28015
28120
  type: "regex",
28016
- pattern: `(["'\`])\\s*(?=((?:select\\b(?:(?!\\b(?:select\\b|insert\\s+into\\b|update\\s+\\S+\\s+set\\b|delete\\s+from\\b|drop\\s+(?:table|database)\\b)|\\1)[^\\n])*?\\bfrom\\b)|insert\\s+into\\b|update\\s+\\S+\\s+set\\b|delete\\s+from\\b|drop\\s+(?:table|database)\\b))\\2(?:(?!\\b(?:select\\b|insert\\s+into\\b|update\\s+\\S+\\s+set\\b|delete\\s+from\\b|drop\\s+(?:table|database)\\b)|\\1)[^\\n])*?(?:[%][sd]|\\{[^{}\\n]+\\})|(["'\`])\\s*(?=((?:(?!\\3)[^\\n])*?\\bwhere\\b(?:(?!\\bwhere\\b|\\3)[^\\n])*?=))\\4(?:(?!\\bwhere\\b|\\3)[^\\n])*?(?:[%][sd]|\\{[^{}\\n]+\\})|(?<=^|\\n)[ \\t]*(?=(select\\b(?:(?!\\b(?:select\\b|insert\\s+into\\b|update\\s+\\S+\\s+set\\b|delete\\s+from\\b|drop\\s+(?:table|database)\\b))[^\\n])*?\\bfrom\\b|insert\\s+into\\b|update\\s+\\S+\\s+set\\b|delete\\s+from\\b|drop\\s+(?:table|database)\\b))\\5(?:(?!\\b(?:select\\b|insert\\s+into\\b|update\\s+\\S+\\s+set\\b|delete\\s+from\\b|drop\\s+(?:table|database)\\b))[^\\n])*?(?:=\\s*['"]?\\s*(?:%[sd]|\\{[^{}\\n]+\\})|[#$]\\{[^{}\\n]+\\})`,
28121
+ pattern: "([\"'`])\\s*(?=((?:select\\b(?:(?!\\b(?:select\\b|insert\\s+(?:(?:ignore|low_priority|delayed|high_priority|or\\s+(?:replace|ignore|rollback|abort|fail))\\s+){0,2}into\\b|update\\s+\\S+\\s+set\\b|delete\\s+from\\b|drop\\s+(?:table|database|index|view)\\b)|\\1)[^\\n])*?\\bfrom\\b)|insert\\s+(?:(?:ignore|low_priority|delayed|high_priority|or\\s+(?:replace|ignore|rollback|abort|fail))\\s+){0,2}into\\b|update\\s+\\S+\\s+set\\b|delete\\s+from\\b|drop\\s+(?:table|database|index|view)\\b))\\2(?:(?!\\b(?:select\\b|insert\\s+(?:(?:ignore|low_priority|delayed|high_priority|or\\s+(?:replace|ignore|rollback|abort|fail))\\s+){0,2}into\\b|update\\s+\\S+\\s+set\\b|delete\\s+from\\b|drop\\s+(?:table|database|index|view)\\b)|\\1)[^\\n])*?(?:[%][sd]|\\{[^{}\\n]+\\})|([\"'`])\\s*(?=((?:(?!\\3)[^\\n])*?\\bwhere\\s+[\\w.`\\[\\]${}]+(?:\\s*(?:!=|[=<>])|\\s+(?:in\\s*\\(|like\\s*(?=(?!\\3)['\"%])|between\\b))))\\4(?:(?!\\bwhere\\b|\\3)[^\\n])*?(?:[%][sd]|\\{[^{}\\n]+\\})|(?<=^|\\n)[ \\t]*(?=(select\\b(?:(?!\\b(?:select\\b|insert\\s+(?:(?:ignore|low_priority|delayed|high_priority|or\\s+(?:replace|ignore|rollback|abort|fail))\\s+){0,2}into\\b|update\\s+\\S+\\s+set\\b|delete\\s+from\\b|drop\\s+(?:table|database|index|view)\\b))[^\\n])*?\\bfrom\\b|insert\\s+(?:(?:ignore|low_priority|delayed|high_priority|or\\s+(?:replace|ignore|rollback|abort|fail))\\s+){0,2}into\\b|update\\s+\\S+\\s+set\\b|delete\\s+from\\b|drop\\s+(?:table|database|index|view)\\b))\\5(?:(?!\\b(?:select\\b|insert\\s+(?:(?:ignore|low_priority|delayed|high_priority|or\\s+(?:replace|ignore|rollback|abort|fail))\\s+){0,2}into\\b|update\\s+\\S+\\s+set\\b|delete\\s+from\\b|drop\\s+(?:table|database|index|view)\\b))[^\\n])*?(?:=\\s*['\"]?\\s*(?:%[sd]|\\{[^{}\\n]+\\})|[#$]\\{[^{}\\n]+\\})",
28017
28122
  flags: "gi"
28018
28123
  },
28019
28124
  examples: [
@@ -28022,6 +28127,24 @@ var sql_inject_format_default = {
28022
28127
  ]
28023
28128
  };
28024
28129
 
28130
+ // ../../rules/code-flaws/sql-inject-interp-multiline.json
28131
+ var sql_inject_interp_multiline_default = {
28132
+ specVersion: 1,
28133
+ id: "code-flaws/sql-inject-interp-multiline",
28134
+ name: "SQL injection via Ruby string interpolation or PHP variable (statement on its own line, e.g. a heredoc)",
28135
+ category: "code_flaw",
28136
+ severity: "high",
28137
+ matcher: {
28138
+ type: "regex",
28139
+ pattern: '(?<=^|\\n)[ \\t]*(?=(?:select\\b(?:[^\\n]*\\n){0,3}?[^\\n]*?\\bfrom\\b|insert\\s+(?:(?:ignore|low_priority|delayed|high_priority|or\\s+\\w+)\\s+){0,2}into\\b|update\\s+(?:(?:low_priority|ignore|or\\s+\\w+)\\s+){0,2}(?:only\\s+)?(?:[\\w.`\\"$]|#\\{[^}\\n]{1,200}\\}|\\{\\$[^}\\n]{1,200}\\}|\\$\\{[^}\\n]{1,200}\\}|->|\\[[^\\]\\n]{1,200}\\])+(?:\\s+(?:as\\s+)?(?:[\\w.`\\"$]|#\\{[^}\\n]{1,200}\\}|\\{\\$[^}\\n]{1,200}\\}|\\$\\{[^}\\n]{1,200}\\}|->|\\[[^\\]\\n]{1,200}\\])+)?(?:\\s*,\\s*(?:[\\w.`\\"$]|#\\{[^}\\n]{1,200}\\}|\\{\\$[^}\\n]{1,200}\\}|\\$\\{[^}\\n]{1,200}\\}|->|\\[[^\\]\\n]{1,200}\\])+(?:\\s+(?:as\\s+)?(?:[\\w.`\\"$]|#\\{[^}\\n]{1,200}\\}|\\{\\$[^}\\n]{1,200}\\}|\\$\\{[^}\\n]{1,200}\\}|->|\\[[^\\]\\n]{1,200}\\])+)?){0,7}\\s+set(?:\\s+|(?=`))(?:(?:[\\w.`\\"$]|#\\{[^}\\n]{1,200}\\}|\\{\\$[^}\\n]{1,200}\\}|\\$\\{[^}\\n]{1,200}\\}|->|\\[[^\\]\\n]{1,200}\\])+\\s*=|#\\{|\\{\\$|\\$[a-z_]\\w*(?:\\[[^\\]\\n]{1,200}\\])*(?=\\s*(?:["\'`;),]|\\n|$|(?:where|order|limit)\\b)))|delete\\s+(?:(?:low_priority|quick|ignore)\\s+){0,3}(?:from\\b|[\\w.`]+(?:\\s*,\\s*[\\w.`]+)*\\s+from\\s+[\\w.`]+(?:\\s+(?:as\\s+)?\\w+)?\\s+(?:(?:inner|cross|(?:left|right)(?:\\s+outer)?)\\s+)?(?:join|using|where)\\b)|where\\s+(?:(?:not\\s+)?(?:\\(\\s*)*(?:#\\{|\\{\\$|\\$[a-z_]\\w*(?:\\[[^\\]\\n]{1,200}\\])*(?=\\s*(?:["\'`;)]|\\n|$|(?:and|or|order|group|limit)\\b)))|(?:not\\s+)?exists\\s*\\(|(?:not\\s+)?(?:\\(\\s*)*(?:[\\w.`$"]|#\\{[^}\\n]{1,200}\\}|\\{\\$[^}\\n]{1,200}\\}|\\[[^\\]\\n]{1,200}\\]|\'[^\'\\n]{0,200}\')+(?:\\s*\\((?:[^()\\n]|\\((?:[^()\\n]|\\([^()\\n]{0,200}\\))*\\))*\\))?(?:\\s*,\\s*(?:[\\w.`$"]|#\\{[^}\\n]{1,200}\\}|\\{\\$[^}\\n]{1,200}\\}|\\[[^\\]\\n]{1,200}\\]|\'[^\'\\n]{0,200}\')+(?:\\s*\\((?:[^()\\n]|\\((?:[^()\\n]|\\([^()\\n]{0,200}\\))*\\))*\\))?){0,4}\\s*(?:\\)\\s*)?(?:[=<>!~@|&:%^*/+-]+|\\b(?:is|in|not|i?like|regexp|rlike|similar\\s+to|glob|between|against|match|exists|and|or)\\b))))(?:select|insert|update|delete|where)\\s[^\\n]*?(?:#\\{|\\$[a-z_])',
28140
+ flags: "gi"
28141
+ },
28142
+ examples: ["sql = <<~SQL\n SELECT * FROM users WHERE id = #{params[:id]}\nSQL"],
28143
+ appliesTo: {
28144
+ extensions: [".rb", ".php"]
28145
+ }
28146
+ };
28147
+
28025
28148
  // ../../rules/code-flaws/sql-inject-interp.json
28026
28149
  var sql_inject_interp_default = {
28027
28150
  specVersion: 1,
@@ -28031,7 +28154,7 @@ var sql_inject_interp_default = {
28031
28154
  severity: "high",
28032
28155
  matcher: {
28033
28156
  type: "regex",
28034
- pattern: "([\"'`])\\s*\\b(?:select|insert|update|delete|where)\\b(?:(?!\\1)[^\\n])*?(?:#\\{|\\$[a-z_])|(?<=^|\\n)[ \\t]*(?:select|insert|update|delete|where)\\s[^\\n]*?(?:#\\{|\\$[a-z_])",
28157
+ pattern: '(?<![\\w\'"`})\\]])(["\'`])[ \\t]*(?=(?:select\\b(?:#\\{(?:[^{}\\n]|\\{(?:[^{}\\n]|\\{[^{}\\n]{0,100}\\}){0,100}\\}){0,200}\\}|\\{\\$[^}\\n]{0,200}\\}|\\\\(?!\\1[ \\t]*(?:select|insert|update|delete|where)\\b).|(?!\\1)(?!#\\{|\\{\\$|\\\\)[\\s\\S]){0,1000}?\\bfrom\\b|insert\\s+(?:(?:ignore|low_priority|delayed|high_priority|or\\s+\\w+)\\s+){0,2}(?:into\\b|[\\w.`]+\\s*\\()|update\\s+(?:(?:low_priority|ignore|or\\s+\\w+)\\s+){0,2}(?:only\\s+)?(?:[\\w.`\\"$]|#\\{[^}\\n]{1,200}\\}|\\{\\$[^}\\n]{1,200}\\}|\\$\\{[^}\\n]{1,200}\\}|->|\\[[^\\]\\n]{1,200}\\])+(?:\\s+(?:as\\s+)?(?:[\\w.`\\"$]|#\\{[^}\\n]{1,200}\\}|\\{\\$[^}\\n]{1,200}\\}|\\$\\{[^}\\n]{1,200}\\}|->|\\[[^\\]\\n]{1,200}\\])+)?(?:\\s*,\\s*(?:[\\w.`\\"$]|#\\{[^}\\n]{1,200}\\}|\\{\\$[^}\\n]{1,200}\\}|\\$\\{[^}\\n]{1,200}\\}|->|\\[[^\\]\\n]{1,200}\\])+(?:\\s+(?:as\\s+)?(?:[\\w.`\\"$]|#\\{[^}\\n]{1,200}\\}|\\{\\$[^}\\n]{1,200}\\}|\\$\\{[^}\\n]{1,200}\\}|->|\\[[^\\]\\n]{1,200}\\])+)?){0,7}(?:(?:\\s+\\w+){0,2}\\s+join\\b(?:(?!\\bset\\b)(?!\\1)[^\\n]){1,300})?\\s+set(?:\\s+|(?=`))(?:(?:[\\w.`\\"$]|#\\{[^}\\n]{1,200}\\}|\\{\\$[^}\\n]{1,200}\\}|\\$\\{[^}\\n]{1,200}\\}|->|\\[[^\\]\\n]{1,200}\\])+\\s*=|#\\{|\\{\\$|\\$[a-z_]\\w*(?:\\[[^\\]\\n]{1,200}\\])*(?=\\s*(?:["\'`;),]|\\n|$|(?:where|order|limit)\\b)))|delete\\s+(?:(?:low_priority|quick|ignore)\\s+){0,3}(?:from\\b|[\\w.`]+(?:\\s*,\\s*[\\w.`]+)*\\s+from\\s+[\\w.`]+(?:\\s+(?:as\\s+)?\\w+)?\\s+(?:(?:inner|cross|(?:left|right)(?:\\s+outer)?)\\s+)?(?:join|using|where)\\b)|where\\s+(?:(?:not\\s+)?(?:\\(\\s*)*(?:#\\{|\\{\\$|\\$[a-z_]\\w*(?:\\[[^\\]\\n]{1,200}\\])*(?=\\s*(?:["\'`;)]|\\n|$|(?:and|or|order|group|limit)\\b)))|(?:not\\s+)?exists\\s*\\(|(?:not\\s+)?(?:\\(\\s*)*(?:[\\w.`$"]|#\\{[^}\\n]{1,200}\\}|\\{\\$[^}\\n]{1,200}\\}|\\[[^\\]\\n]{1,200}\\]|\'[^\'\\n]{0,200}\')+(?:\\s*\\((?:[^()\\n]|\\((?:[^()\\n]|\\([^()\\n]{0,200}\\))*\\))*\\))?(?:\\s*,\\s*(?:[\\w.`$"]|#\\{[^}\\n]{1,200}\\}|\\{\\$[^}\\n]{1,200}\\}|\\[[^\\]\\n]{1,200}\\]|\'[^\'\\n]{0,200}\')+(?:\\s*\\((?:[^()\\n]|\\((?:[^()\\n]|\\([^()\\n]{0,200}\\))*\\))*\\))?){0,4}\\s*(?:\\)\\s*)?(?:[=<>!~@|&:%^*/+-]+|\\b(?:is|in|not|i?like|regexp|rlike|similar\\s+to|glob|between|against|match|exists|and|or)\\b))))\\b(?:select|insert|update|delete|where)\\b(?:(?!\\1)[^\\n])*?(?:#\\{|\\$[a-z_])',
28035
28158
  flags: "gi"
28036
28159
  },
28037
28160
  examples: [
@@ -29759,12 +29882,13 @@ var BUNDLED_PACKS = [
29759
29882
  {
29760
29883
  packId: "code-flaws",
29761
29884
  name: "Code Security Flaws",
29762
- version: "0.1.3",
29885
+ version: "0.1.6",
29763
29886
  rawRules: [
29764
29887
  sql_inject_concat_default,
29765
29888
  sql_inject_concat_dot_default,
29766
29889
  sql_inject_format_default,
29767
29890
  sql_inject_interp_default,
29891
+ sql_inject_interp_multiline_default,
29768
29892
  cmd_inject_shell_default,
29769
29893
  cmd_inject_exec_default,
29770
29894
  cmd_inject_node_exec_default,
@@ -29796,6 +29920,7 @@ var BUNDLED_PACKS = [
29796
29920
  "code-flaws/sql-inject-concat-dot": "SQL injection (PHP)",
29797
29921
  "code-flaws/sql-inject-format": "SQL injection (format string)",
29798
29922
  "code-flaws/sql-inject-interp": "SQL injection (interpolation)",
29923
+ "code-flaws/sql-inject-interp-multiline": "SQL injection (interpolation)",
29799
29924
  "code-flaws/cmd-inject-shell": "Command injection (shell)",
29800
29925
  "code-flaws/cmd-inject-exec": "Command injection (Java exec)",
29801
29926
  "code-flaws/cmd-inject-node-exec": "Command injection (Node exec)",
@@ -30166,7 +30291,7 @@ function shippedRegexMatchers() {
30166
30291
  }
30167
30292
 
30168
30293
  // ../../packages/plugin-sdk/src/repo.ts
30169
- import { existsSync as existsSync9, readFileSync as readFileSync16, statSync as statSync7 } from "fs";
30294
+ import { existsSync as existsSync9, statSync as statSync7 } from "fs";
30170
30295
  import { basename as basename2, dirname as dirname5, isAbsolute as isAbsolute3, join as join24, sep as sep4 } from "path";
30171
30296
  function remoteWithoutCredentials(remote) {
30172
30297
  const withoutInfo = withoutUserinfo(remote);
@@ -30200,6 +30325,7 @@ function unparsedWithoutCredentials(remote) {
30200
30325
  return `${scheme}${tail.split(/[?#]/, 1)[0] ?? ""}`;
30201
30326
  }
30202
30327
  var NO_ATTRIBUTION = Object.freeze({});
30328
+ var MAX_GIT_METADATA_BYTES = 1024 * 1024;
30203
30329
 
30204
30330
  // ../../packages/plugin-sdk/src/events.ts
30205
30331
  import { createHash as createHash9, randomUUID as randomUUID14 } from "crypto";
@@ -30452,6 +30578,7 @@ function createIsolatedScanner(data, opts = {}) {
30452
30578
  text,
30453
30579
  filePath: context?.filePath,
30454
30580
  eventKind: context?.eventKind,
30581
+ writtenRegions: context?.writtenRegions,
30455
30582
  attribute: scanOpts?.attribute === true
30456
30583
  }),
30457
30584
  reply: (message) => {
@@ -31783,7 +31910,7 @@ function sessionToolIsKeyed(tool) {
31783
31910
 
31784
31911
  // ../../packages/plugin-runtime/src/attached/config-inventory-sync.ts
31785
31912
  import { createHash as createHash11 } from "crypto";
31786
- import { readFileSync as readFileSync18 } from "fs";
31913
+ import { readFileSync as readFileSync17 } from "fs";
31787
31914
  import { join as join28 } from "path";
31788
31915
 
31789
31916
  // ../../packages/plugin-runtime/src/attached/config-inventory-wire.ts
@@ -31883,7 +32010,7 @@ async function publishByRename(tmp, file, move = rename2) {
31883
32010
 
31884
32011
  // ../../packages/plugin-runtime/src/attached/capture-settings.ts
31885
32012
  import { randomUUID as randomUUID17 } from "crypto";
31886
- import { readFileSync as readFileSync17 } from "fs";
32013
+ import { readFileSync as readFileSync16 } from "fs";
31887
32014
  import { rm, writeFile as writeFile2 } from "fs/promises";
31888
32015
  import { join as join26 } from "path";
31889
32016
  var HookCaptureSettingsSchema = CaptureSettings.pick({
@@ -32271,7 +32398,7 @@ function reportKey(request) {
32271
32398
  function readStagedEntries(dataDir2) {
32272
32399
  let parsed2;
32273
32400
  try {
32274
- parsed2 = JSON.parse(readFileSync18(stagedConfigInventoryPath(dataDir2), "utf8"));
32401
+ parsed2 = JSON.parse(readFileSync17(stagedConfigInventoryPath(dataDir2), "utf8"));
32275
32402
  } catch {
32276
32403
  return [];
32277
32404
  }
@@ -32295,7 +32422,7 @@ function isTimestamp(value) {
32295
32422
  }
32296
32423
 
32297
32424
  // ../../packages/plugin-runtime/src/attached/forward-drops.ts
32298
- import { readFileSync as readFileSync19 } from "fs";
32425
+ import { readFileSync as readFileSync18 } from "fs";
32299
32426
  import { join as join29 } from "path";
32300
32427
  var FORWARD_DROPS_FILENAME = ATTACHED_FORWARD_DROPS_FILENAME;
32301
32428
  function forwardDropsPath(dataDir2) {
@@ -32317,7 +32444,7 @@ function recordForwardDrops(dataDir2, count, nowMs) {
32317
32444
  }
32318
32445
  function readForwardDrops(dataDir2) {
32319
32446
  try {
32320
- const parsed2 = JSON.parse(readFileSync19(forwardDropsPath(dataDir2), "utf8"));
32447
+ const parsed2 = JSON.parse(readFileSync18(forwardDropsPath(dataDir2), "utf8"));
32321
32448
  if (typeof parsed2 !== "object" || parsed2 === null) return null;
32322
32449
  const record2 = parsed2;
32323
32450
  if (typeof record2.droppedForwards !== "number" || !Number.isFinite(record2.droppedForwards)) {
@@ -33421,7 +33548,7 @@ function toWireInspection(insp, nameKey) {
33421
33548
  }
33422
33549
 
33423
33550
  // ../../packages/plugin-runtime/src/attached/plugin-block.ts
33424
- import { readFileSync as readFileSync20 } from "fs";
33551
+ import { readFileSync as readFileSync19 } from "fs";
33425
33552
 
33426
33553
  // ../../packages/plugin-runtime/src/attached/install-record.ts
33427
33554
  import { readFile as readFile3, stat } from "fs/promises";
@@ -33494,7 +33621,7 @@ async function readInstalledVersionBounded(installRoot) {
33494
33621
  }
33495
33622
 
33496
33623
  // ../../packages/plugin-runtime/src/attached/posture-report-state.ts
33497
- import { readFileSync as readFileSync21 } from "fs";
33624
+ import { readFileSync as readFileSync20 } from "fs";
33498
33625
  import { join as join31 } from "path";
33499
33626
  var POSTURE_REPORT_STATE_FILENAME = ATTACHED_POSTURE_REPORT_FILENAME;
33500
33627
  var OUTCOME_KEYS = {
@@ -33770,11 +33897,11 @@ function createPostureStore(dir = settingsDir(), legacyDir) {
33770
33897
  }
33771
33898
 
33772
33899
  // ../../packages/plugin-runtime/src/attached/label-drops.ts
33773
- import { readFileSync as readFileSync22 } from "fs";
33900
+ import { readFileSync as readFileSync21 } from "fs";
33774
33901
  import { join as join33 } from "path";
33775
33902
 
33776
33903
  // ../../packages/plugin-runtime/src/attached/sync-state.ts
33777
- import { readFileSync as readFileSync23 } from "fs";
33904
+ import { readFileSync as readFileSync22 } from "fs";
33778
33905
  import { join as join34 } from "path";
33779
33906
 
33780
33907
  // ../../packages/plugin-runtime/src/attached/status.ts
@@ -34073,7 +34200,7 @@ var RANK = Object.fromEntries(
34073
34200
  );
34074
34201
 
34075
34202
  // ../../packages/setup-wizard/src/triage/plan-file.ts
34076
- import { mkdtempSync, readFileSync as readFileSync24, rmdirSync, rmSync as rmSync11, writeFileSync as writeFileSync6 } from "fs";
34203
+ import { mkdtempSync, readFileSync as readFileSync23, rmdirSync, rmSync as rmSync11, writeFileSync as writeFileSync6 } from "fs";
34077
34204
  import { tmpdir } from "os";
34078
34205
  import { basename as basename5, dirname as dirname10, join as join37 } from "path";
34079
34206
  var SuppressionEntrySchema = object({
@@ -34117,7 +34244,7 @@ var PersistedPlanSchema = object({
34117
34244
  });
34118
34245
 
34119
34246
  // src/skills-registry.ts
34120
- import { readdirSync as readdirSync3, readFileSync as readFileSync25 } from "fs";
34247
+ import { readdirSync as readdirSync3, readFileSync as readFileSync24 } from "fs";
34121
34248
  import { join as join38 } from "path";
34122
34249
  import { fileURLToPath as fileURLToPath5 } from "url";
34123
34250
  var SKILLS_DIR = fileURLToPath5(new URL("../skills", import.meta.url));
@@ -34131,7 +34258,7 @@ function readRegisteredSkills() {
34131
34258
  return readdirSync3(SKILLS_DIR, { withFileTypes: true }).filter((entry) => entry.isDirectory()).flatMap((entry) => {
34132
34259
  let content;
34133
34260
  try {
34134
- content = readFileSync25(join38(SKILLS_DIR, entry.name, "SKILL.md"), "utf8");
34261
+ content = readFileSync24(join38(SKILLS_DIR, entry.name, "SKILL.md"), "utf8");
34135
34262
  } catch {
34136
34263
  return [];
34137
34264
  }