modelstat 0.10.3 → 0.11.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/dist/cli.mjs CHANGED
@@ -4843,14 +4843,27 @@ function detectReferences(text, source = "content") {
4843
4843
  }
4844
4844
  for (const m of text.matchAll(SLUG_HASH)) {
4845
4845
  const slug = m[1] ?? "";
4846
- out.issues.push({
4847
- provider: "github",
4848
- key: m[2] ?? "",
4849
- slug,
4850
- url: null,
4851
- source,
4852
- confidence: 0.55
4853
- });
4846
+ const lead = text.slice(Math.max(0, (m.index ?? 0) - 20), m.index ?? 0).toLowerCase();
4847
+ if (/\b(pr|pull[ -]?request|merge[ -]?request|mr|merged)\s*$/.test(lead)) {
4848
+ out.pull_requests.push({
4849
+ host: "github.com",
4850
+ slug,
4851
+ number: Number(m[2] ?? ""),
4852
+ url: null,
4853
+ source,
4854
+ confidence: 0.6
4855
+ });
4856
+ out.repos.push(repoFrom("github.com", slug, source));
4857
+ } else {
4858
+ out.issues.push({
4859
+ provider: "github",
4860
+ key: m[2] ?? "",
4861
+ slug,
4862
+ url: null,
4863
+ source,
4864
+ confidence: 0.55
4865
+ });
4866
+ }
4854
4867
  }
4855
4868
  if (source === "model") {
4856
4869
  for (const m of text.matchAll(BARE_TICKET)) {
@@ -37315,7 +37328,7 @@ var init_scan = __esm({
37315
37328
  init_api();
37316
37329
  init_config2();
37317
37330
  init_pipeline2();
37318
- DAEMON_VERSION = true ? "daemon-0.10.3" : "daemon-dev";
37331
+ DAEMON_VERSION = true ? "daemon-0.11.0" : "daemon-dev";
37319
37332
  BATCH_MAX_EVENTS = INGEST_BATCH_MAX_EVENTS;
37320
37333
  BATCH_MAX_TOOL_CALLS = 2e4;
37321
37334
  BATCH_BUFFER_HARD_CAP = BATCH_MAX_EVENTS * 2;
@@ -40262,7 +40275,7 @@ var init_daemon = __esm({
40262
40275
  init_scan();
40263
40276
  init_single_flight();
40264
40277
  init_update();
40265
- DAEMON_VERSION2 = true ? "daemon-0.10.3" : "daemon-dev";
40278
+ DAEMON_VERSION2 = true ? "daemon-0.11.0" : "daemon-dev";
40266
40279
  HEARTBEAT_INTERVAL_MS = 1e4;
40267
40280
  SCAN_INTERVAL_MS = 5 * 60 * 1e3;
40268
40281
  DISCOVERY_INTERVAL_MS = 6e4;
@@ -40894,7 +40907,7 @@ function tryOpenBrowser(url) {
40894
40907
  return false;
40895
40908
  }
40896
40909
  }
40897
- var DAEMON_VERSION3 = true ? "daemon-0.10.3" : "daemon-dev";
40910
+ var DAEMON_VERSION3 = true ? "daemon-0.11.0" : "daemon-dev";
40898
40911
  function osFamily() {
40899
40912
  const p = platform6();
40900
40913
  if (p === "darwin") return "macos";