modelstat 0.7.0 → 0.7.1

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
@@ -125,8 +125,12 @@ async function resolveGitContext(cwd) {
125
125
  function guessRepoSlugFromPath(cwd) {
126
126
  if (!cwd) return null;
127
127
  const m = /\/(?:www|src|code|repos|projects)\/([^/]+)\/([^/]+)/i.exec(cwd);
128
- if (m) return `${m[1]}/${m[2]}`;
129
- return null;
128
+ if (!m) return null;
129
+ const a = m[1];
130
+ const b = m[2];
131
+ if (!a || !b) return null;
132
+ if (b.startsWith(".") || b === "worktrees") return a;
133
+ return `${a}/${b}`;
130
134
  }
131
135
  var pexec, cache;
132
136
  var init_git = __esm({
@@ -37086,7 +37090,7 @@ var init_scan = __esm({
37086
37090
  init_api();
37087
37091
  init_config2();
37088
37092
  init_pipeline2();
37089
- DAEMON_VERSION = true ? "daemon-0.7.0" : "daemon-dev";
37093
+ DAEMON_VERSION = true ? "daemon-0.7.1" : "daemon-dev";
37090
37094
  BATCH_MAX_EVENTS = INGEST_BATCH_MAX_EVENTS;
37091
37095
  BATCH_MAX_TOOL_CALLS = 2e4;
37092
37096
  BATCH_BUFFER_HARD_CAP = BATCH_MAX_EVENTS * 2;
@@ -39832,7 +39836,7 @@ var init_daemon = __esm({
39832
39836
  init_scan();
39833
39837
  init_single_flight();
39834
39838
  init_update();
39835
- DAEMON_VERSION2 = true ? "daemon-0.7.0" : "daemon-dev";
39839
+ DAEMON_VERSION2 = true ? "daemon-0.7.1" : "daemon-dev";
39836
39840
  HEARTBEAT_INTERVAL_MS = 1e4;
39837
39841
  SCAN_INTERVAL_MS = 5 * 60 * 1e3;
39838
39842
  DISCOVERY_INTERVAL_MS = 6e4;
@@ -40436,7 +40440,7 @@ function tryOpenBrowser(url) {
40436
40440
  return false;
40437
40441
  }
40438
40442
  }
40439
- var DAEMON_VERSION3 = true ? "daemon-0.7.0" : "daemon-dev";
40443
+ var DAEMON_VERSION3 = true ? "daemon-0.7.1" : "daemon-dev";
40440
40444
  function osFamily() {
40441
40445
  const p = platform6();
40442
40446
  if (p === "darwin") return "macos";