@kernlang/agon 0.1.4 → 0.1.6

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 (37) hide show
  1. package/dist/{chunk-FCCH7IPJ.js → chunk-3PDYVGRS.js} +107 -24
  2. package/dist/chunk-3PDYVGRS.js.map +1 -0
  3. package/dist/{chunk-ATUT2BUQ.js → chunk-6IF2AV4Y.js} +28 -10
  4. package/dist/chunk-6IF2AV4Y.js.map +1 -0
  5. package/dist/{chunk-4LVYSUMN.js → chunk-7WZ2O5WZ.js} +6 -27
  6. package/dist/chunk-7WZ2O5WZ.js.map +1 -0
  7. package/dist/{chunk-6ANHPXGZ.js → chunk-HSPQEDHX.js} +1 -1
  8. package/dist/{chunk-6ANHPXGZ.js.map → chunk-HSPQEDHX.js.map} +1 -1
  9. package/dist/{chunk-WE32YJKT.js → chunk-NBV37VMW.js} +2 -2
  10. package/dist/{chunk-WE32YJKT.js.map → chunk-NBV37VMW.js.map} +1 -1
  11. package/dist/{chunk-O6YP55RV.js → chunk-PUNBDLQO.js} +141 -96
  12. package/dist/chunk-PUNBDLQO.js.map +1 -0
  13. package/dist/{chunk-C22VTCS6.js → chunk-TMNHJOKU.js} +1193 -226
  14. package/dist/chunk-TMNHJOKU.js.map +1 -0
  15. package/dist/{chunk-5QMVQPHY.js → chunk-XWHC6VAH.js} +3 -2
  16. package/dist/chunk-XWHC6VAH.js.map +1 -0
  17. package/dist/{dispatch-6LQSMMGI.js → dispatch-S3CR5HKX.js} +2 -2
  18. package/dist/engines/codex.json +3 -0
  19. package/dist/{forge-ES4RN7YM.js → forge-GUOEJ5DJ.js} +6 -6
  20. package/dist/index.js +561 -128
  21. package/dist/index.js.map +1 -1
  22. package/dist/plan-mode-35BONR7S.js +17 -0
  23. package/dist/{src-WJGIOESS.js → src-3NWTITZM.js} +55 -3
  24. package/dist/{update-HHN4PJQI.js → update-H3LE4ZSI.js} +6 -6
  25. package/package.json +5 -4
  26. package/dist/chunk-4LVYSUMN.js.map +0 -1
  27. package/dist/chunk-5QMVQPHY.js.map +0 -1
  28. package/dist/chunk-ATUT2BUQ.js.map +0 -1
  29. package/dist/chunk-C22VTCS6.js.map +0 -1
  30. package/dist/chunk-FCCH7IPJ.js.map +0 -1
  31. package/dist/chunk-O6YP55RV.js.map +0 -1
  32. package/dist/plan-mode-4XRC2ZC7.js +0 -17
  33. /package/dist/{dispatch-6LQSMMGI.js.map → dispatch-S3CR5HKX.js.map} +0 -0
  34. /package/dist/{forge-ES4RN7YM.js.map → forge-GUOEJ5DJ.js.map} +0 -0
  35. /package/dist/{plan-mode-4XRC2ZC7.js.map → plan-mode-35BONR7S.js.map} +0 -0
  36. /package/dist/{src-WJGIOESS.js.map → src-3NWTITZM.js.map} +0 -0
  37. /package/dist/{update-HHN4PJQI.js.map → update-H3LE4ZSI.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-NBV37VMW.js";
24
24
  import {
25
25
  getAgonHome
26
- } from "./chunk-C22VTCS6.js";
26
+ } from "./chunk-TMNHJOKU.js";
27
27
 
28
28
  // src/generated/commands/update.ts
29
29
  import { defineCommand } from "citty";
@@ -1096,6 +1096,7 @@ function PlanExecutionView({ plan }) {
1096
1096
  const result = s.result;
1097
1097
  const elapsed = result?.durationMs ? `${(result.durationMs / 1e3).toFixed(1)}s` : "";
1098
1098
  const cost = result?.actualCostUsd ? `$${result.actualCostUsd.toFixed(4)}` : "";
1099
+ const desc = typeof s.description === "string" ? s.description : "";
1099
1100
  return /* @__PURE__ */ jsxs3(Box3, { children: [
1100
1101
  /* @__PURE__ */ jsxs3(Text3, { color: stateInfo.color, children: [
1101
1102
  stateInfo.icon,
@@ -1110,8 +1111,8 @@ function PlanExecutionView({ plan }) {
1110
1111
  " "
1111
1112
  ] }),
1112
1113
  /* @__PURE__ */ jsxs3(Text3, { color: s.state === "done" ? "#64748b" : s.state === "running" ? "white" : void 0, children: [
1113
- s.description.slice(0, 50),
1114
- s.description.length > 50 ? "\u2026" : ""
1114
+ desc.slice(0, 50),
1115
+ desc.length > 50 ? "\u2026" : ""
1115
1116
  ] }),
1116
1117
  (elapsed || cost) && /* @__PURE__ */ jsxs3(Text3, { dimColor: true, children: [
1117
1118
  " (",
@@ -1128,7 +1129,7 @@ function PlanExecutionView({ plan }) {
1128
1129
  }),
1129
1130
  runningSteps.length > 0 && /* @__PURE__ */ jsxs3(Box3, { marginTop: 1, children: [
1130
1131
  /* @__PURE__ */ jsx3(Text3, { color: "#fbbf24", children: "\u25CF Running: " }),
1131
- /* @__PURE__ */ jsx3(Text3, { children: runningSteps.map((s) => s.description).join(", ") })
1132
+ /* @__PURE__ */ jsx3(Text3, { children: runningSteps.map((s) => typeof s.description === "string" ? s.description : "").join(", ") })
1132
1133
  ] })
1133
1134
  ] });
1134
1135
  }
@@ -1387,7 +1388,7 @@ function DashboardView({ event }) {
1387
1388
  /* @__PURE__ */ jsxs4(Text4, { dimColor: true, children: [
1388
1389
  " ",
1389
1390
  String(event.eloTop.rating),
1390
- " ELO"
1391
+ " Glicko"
1391
1392
  ] })
1392
1393
  ] })
1393
1394
  ] }),
@@ -2572,14 +2573,30 @@ function resolvePackageVersion(resolveSpecifier, wantName, fallback) {
2572
2573
  }
2573
2574
  return fallback;
2574
2575
  }
2575
- var VERSION = resolvePackageVersion(null, "@kernlang/agon", "0.1.4");
2576
+ var VERSION = resolvePackageVersion(null, "@kernlang/agon", "0.1.6");
2576
2577
  var KERN_VERSION = resolvePackageVersion("@kernlang/terminal/runtime", "@kernlang/terminal", "3.5.7");
2577
2578
 
2578
2579
  // src/generated/services/update-check.ts
2579
2580
  import { execFile } from "child_process";
2580
2581
  import { readFile, writeFile, mkdir } from "fs/promises";
2582
+ import { existsSync as existsSync2 } from "fs";
2581
2583
  import { homedir } from "os";
2582
- import { join as join2 } from "path";
2584
+ import { join as join2, dirname as dirname2, sep } from "path";
2585
+ import { fileURLToPath as fileURLToPath2 } from "url";
2586
+ function isLinkedDevInstall() {
2587
+ try {
2588
+ let dir = dirname2(fileURLToPath2(import.meta.url));
2589
+ for (let i = 0; i < 12; i++) {
2590
+ if (dir.split(sep).includes("node_modules")) return false;
2591
+ if (existsSync2(join2(dir, ".git"))) return true;
2592
+ const parent = dirname2(dir);
2593
+ if (parent === dir) break;
2594
+ dir = parent;
2595
+ }
2596
+ } catch {
2597
+ }
2598
+ return false;
2599
+ }
2583
2600
  function parseSemver(raw) {
2584
2601
  if (typeof raw !== "string") return null;
2585
2602
  const cleaned = raw.trim().replace(/^v/i, "");
@@ -2890,6 +2907,7 @@ export {
2890
2907
  LOGO_LINES,
2891
2908
  VERSION,
2892
2909
  KERN_VERSION,
2910
+ isLinkedDevInstall,
2893
2911
  checkForUpdate,
2894
2912
  loadDismissedVersion,
2895
2913
  saveDismissedVersion,
@@ -2904,4 +2922,4 @@ export {
2904
2922
  updateCommand,
2905
2923
  DEFAULT_UPDATE_PACKAGE
2906
2924
  };
2907
- //# sourceMappingURL=chunk-ATUT2BUQ.js.map
2925
+ //# sourceMappingURL=chunk-6IF2AV4Y.js.map