@kernlang/agon 0.1.4 → 0.1.5

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.
Files changed (35) hide show
  1. package/dist/{chunk-O6YP55RV.js → chunk-46WNYE4R.js} +114 -69
  2. package/dist/chunk-46WNYE4R.js.map +1 -0
  3. package/dist/{chunk-FCCH7IPJ.js → chunk-4NTH3EAR.js} +39 -11
  4. package/dist/chunk-4NTH3EAR.js.map +1 -0
  5. package/dist/{chunk-4LVYSUMN.js → chunk-73ETZFDH.js} +6 -27
  6. package/dist/chunk-73ETZFDH.js.map +1 -0
  7. package/dist/{chunk-WE32YJKT.js → chunk-DGTU4UWQ.js} +2 -2
  8. package/dist/{chunk-WE32YJKT.js.map → chunk-DGTU4UWQ.js.map} +1 -1
  9. package/dist/{chunk-ATUT2BUQ.js → chunk-GPYWJO2Q.js} +24 -7
  10. package/dist/chunk-GPYWJO2Q.js.map +1 -0
  11. package/dist/{chunk-C22VTCS6.js → chunk-HAJIKZGU.js} +846 -219
  12. package/dist/chunk-HAJIKZGU.js.map +1 -0
  13. package/dist/{chunk-6ANHPXGZ.js → chunk-HSPQEDHX.js} +1 -1
  14. package/dist/{chunk-6ANHPXGZ.js.map → chunk-HSPQEDHX.js.map} +1 -1
  15. package/dist/{chunk-5QMVQPHY.js → chunk-SOUF7XTW.js} +1 -1
  16. package/dist/{chunk-5QMVQPHY.js.map → chunk-SOUF7XTW.js.map} +1 -1
  17. package/dist/{dispatch-6LQSMMGI.js → dispatch-XHLJ44TF.js} +2 -2
  18. package/dist/{forge-ES4RN7YM.js → forge-ZI7NE73F.js} +6 -6
  19. package/dist/index.js +550 -121
  20. package/dist/index.js.map +1 -1
  21. package/dist/plan-mode-KIXDKD63.js +17 -0
  22. package/dist/{src-WJGIOESS.js → src-4A5FVACG.js} +49 -3
  23. package/dist/{update-HHN4PJQI.js → update-DLPMYTF3.js} +6 -6
  24. package/package.json +4 -4
  25. package/dist/chunk-4LVYSUMN.js.map +0 -1
  26. package/dist/chunk-ATUT2BUQ.js.map +0 -1
  27. package/dist/chunk-C22VTCS6.js.map +0 -1
  28. package/dist/chunk-FCCH7IPJ.js.map +0 -1
  29. package/dist/chunk-O6YP55RV.js.map +0 -1
  30. package/dist/plan-mode-4XRC2ZC7.js +0 -17
  31. /package/dist/{dispatch-6LQSMMGI.js.map → dispatch-XHLJ44TF.js.map} +0 -0
  32. /package/dist/{forge-ES4RN7YM.js.map → forge-ZI7NE73F.js.map} +0 -0
  33. /package/dist/{plan-mode-4XRC2ZC7.js.map → plan-mode-KIXDKD63.js.map} +0 -0
  34. /package/dist/{src-WJGIOESS.js.map → src-4A5FVACG.js.map} +0 -0
  35. /package/dist/{update-HHN4PJQI.js.map → update-DLPMYTF3.js.map} +0 -0
@@ -3,7 +3,7 @@ import {
3
3
  extractSummary,
4
4
  parsePatchPreview,
5
5
  parseToolInputPayload
6
- } from "./chunk-6ANHPXGZ.js";
6
+ } from "./chunk-HSPQEDHX.js";
7
7
  import {
8
8
  ENGINE_COLORS,
9
9
  bold,
@@ -20,10 +20,10 @@ import {
20
20
  success,
21
21
  truncateCodeLine,
22
22
  yellow
23
- } from "./chunk-WE32YJKT.js";
23
+ } from "./chunk-DGTU4UWQ.js";
24
24
  import {
25
25
  getAgonHome
26
- } from "./chunk-C22VTCS6.js";
26
+ } from "./chunk-HAJIKZGU.js";
27
27
 
28
28
  // src/generated/commands/update.ts
29
29
  import { defineCommand } from "citty";
@@ -1387,7 +1387,7 @@ function DashboardView({ event }) {
1387
1387
  /* @__PURE__ */ jsxs4(Text4, { dimColor: true, children: [
1388
1388
  " ",
1389
1389
  String(event.eloTop.rating),
1390
- " ELO"
1390
+ " Glicko"
1391
1391
  ] })
1392
1392
  ] })
1393
1393
  ] }),
@@ -2572,14 +2572,30 @@ function resolvePackageVersion(resolveSpecifier, wantName, fallback) {
2572
2572
  }
2573
2573
  return fallback;
2574
2574
  }
2575
- var VERSION = resolvePackageVersion(null, "@kernlang/agon", "0.1.4");
2575
+ var VERSION = resolvePackageVersion(null, "@kernlang/agon", "0.1.5");
2576
2576
  var KERN_VERSION = resolvePackageVersion("@kernlang/terminal/runtime", "@kernlang/terminal", "3.5.7");
2577
2577
 
2578
2578
  // src/generated/services/update-check.ts
2579
2579
  import { execFile } from "child_process";
2580
2580
  import { readFile, writeFile, mkdir } from "fs/promises";
2581
+ import { existsSync as existsSync2 } from "fs";
2581
2582
  import { homedir } from "os";
2582
- import { join as join2 } from "path";
2583
+ import { join as join2, dirname as dirname2, sep } from "path";
2584
+ import { fileURLToPath as fileURLToPath2 } from "url";
2585
+ function isLinkedDevInstall() {
2586
+ try {
2587
+ let dir = dirname2(fileURLToPath2(import.meta.url));
2588
+ for (let i = 0; i < 12; i++) {
2589
+ if (dir.split(sep).includes("node_modules")) return false;
2590
+ if (existsSync2(join2(dir, ".git"))) return true;
2591
+ const parent = dirname2(dir);
2592
+ if (parent === dir) break;
2593
+ dir = parent;
2594
+ }
2595
+ } catch {
2596
+ }
2597
+ return false;
2598
+ }
2583
2599
  function parseSemver(raw) {
2584
2600
  if (typeof raw !== "string") return null;
2585
2601
  const cleaned = raw.trim().replace(/^v/i, "");
@@ -2890,6 +2906,7 @@ export {
2890
2906
  LOGO_LINES,
2891
2907
  VERSION,
2892
2908
  KERN_VERSION,
2909
+ isLinkedDevInstall,
2893
2910
  checkForUpdate,
2894
2911
  loadDismissedVersion,
2895
2912
  saveDismissedVersion,
@@ -2904,4 +2921,4 @@ export {
2904
2921
  updateCommand,
2905
2922
  DEFAULT_UPDATE_PACKAGE
2906
2923
  };
2907
- //# sourceMappingURL=chunk-ATUT2BUQ.js.map
2924
+ //# sourceMappingURL=chunk-GPYWJO2Q.js.map