cuekit 0.0.14 → 0.0.15

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/bin/cuekit.js CHANGED
@@ -100269,6 +100269,35 @@ var init_react = __esm(async () => {
100269
100269
  extend2({ "time-to-first-draw": TimeToFirstDrawRenderable });
100270
100270
  });
100271
100271
 
100272
+ // packages/tui/package.json
100273
+ var package_default4;
100274
+ var init_package = __esm(() => {
100275
+ package_default4 = {
100276
+ name: "@cuekit/tui",
100277
+ version: "0.0.15",
100278
+ private: true,
100279
+ type: "module",
100280
+ exports: {
100281
+ ".": "./src/index.ts"
100282
+ },
100283
+ scripts: {
100284
+ typecheck: "tsc --noEmit",
100285
+ test: "bun test"
100286
+ },
100287
+ dependencies: {
100288
+ "@cuekit/core": "workspace:*",
100289
+ "@opentui/core": "0.2.1",
100290
+ "@opentui/react": "0.2.1",
100291
+ react: "19.2.5"
100292
+ },
100293
+ devDependencies: {
100294
+ "@cuekit/adapters": "workspace:*",
100295
+ "@cuekit/store": "workspace:*",
100296
+ "@types/react": "19.2.14"
100297
+ }
100298
+ };
100299
+ });
100300
+
100272
100301
  // packages/tui/src/attach.ts
100273
100302
  function getPaneAttachCommand(view) {
100274
100303
  if (view.attach_command)
@@ -100417,6 +100446,8 @@ var theme;
100417
100446
  var init_theme = __esm(() => {
100418
100447
  theme = {
100419
100448
  bg: "#2b2b2b",
100449
+ headerBg: "#1a1a1a",
100450
+ headerFg: "#76c7c8",
100420
100451
  panel: "#303030",
100421
100452
  panelAlt: "#242424",
100422
100453
  row: "#1b1b1b",
@@ -101819,6 +101850,18 @@ var init_team_list = __esm(() => {
101819
101850
  });
101820
101851
 
101821
101852
  // packages/tui/src/app.tsx
101853
+ function Header({ mode }) {
101854
+ const modeLabel = mode === "teams" ? "Teams" : mode === "parents" ? "Parent Sessions" : "Tasks";
101855
+ return /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("box", {
101856
+ height: 1,
101857
+ flexDirection: "row",
101858
+ backgroundColor: theme.headerBg,
101859
+ children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
101860
+ fg: theme.headerFg,
101861
+ children: ` cuekit ${CUEKIT_VERSION} \u2014 ${modeLabel} `
101862
+ }, undefined, false, undefined, this)
101863
+ }, undefined, false, undefined, this);
101864
+ }
101822
101865
  function confirmTitle(action) {
101823
101866
  if (action.kind === "cleanup-team")
101824
101867
  return "Cleanup team";
@@ -101865,7 +101908,7 @@ function App(props) {
101865
101908
  const debouncedTeam = import_react14.useMemo(() => teams.find((team2) => team2.team_id === debouncedTeamDetailId), [debouncedTeamDetailId, teams]);
101866
101909
  const selectedMember = import_react14.useMemo(() => teamDetail?.members[selectedMemberIndex], [teamDetail, selectedMemberIndex]);
101867
101910
  const selectedTeamCounts = selectedTeam?.task_counts ?? teamDetail?.status?.task_counts;
101868
- const listRows = Math.max(1, terminal.height - 7);
101911
+ const listRows = Math.max(1, terminal.height - 8);
101869
101912
  const detailLoadDebounceMs = props.ctx.detailLoadDebounceMs ?? DEFAULT_DETAIL_LOAD_DEBOUNCE_MS;
101870
101913
  const taskDetailLoading = Boolean((mode === "tasks" || mode === "parents") && selectedTaskId && detail?.status.task_id !== selectedTaskId);
101871
101914
  const teamDetailLoading = Boolean(mode === "teams" && selectedTeamId && teamDetail?.team.team_id !== selectedTeamId);
@@ -102350,6 +102393,9 @@ function App(props) {
102350
102393
  flexDirection: "column",
102351
102394
  backgroundColor: theme.bg,
102352
102395
  children: [
102396
+ /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV(Header, {
102397
+ mode
102398
+ }, undefined, false, undefined, this),
102353
102399
  /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("box", {
102354
102400
  flexDirection: "row",
102355
102401
  flexGrow: 1,
@@ -102417,8 +102463,9 @@ function App(props) {
102417
102463
  ]
102418
102464
  }, undefined, true, undefined, this);
102419
102465
  }
102420
- var import_react14, AUTO_REFRESH_MS = 3000, DEFAULT_DETAIL_LOAD_DEBOUNCE_MS = 30, LOADING_SPINNER_FRAMES, LOADING_SPINNER_MS = 120;
102466
+ var import_react14, CUEKIT_VERSION, AUTO_REFRESH_MS = 3000, DEFAULT_DETAIL_LOAD_DEBOUNCE_MS = 30, LOADING_SPINNER_FRAMES, LOADING_SPINNER_MS = 120;
102421
102467
  var init_app = __esm(async () => {
102468
+ init_package();
102422
102469
  init_attach();
102423
102470
  init_confirm_dialog();
102424
102471
  init_detail_tabs();
@@ -102434,6 +102481,7 @@ var init_app = __esm(async () => {
102434
102481
  init_jsx_dev_runtime();
102435
102482
  await init_react();
102436
102483
  import_react14 = __toESM(require_react(), 1);
102484
+ CUEKIT_VERSION = package_default4.version ?? "unknown";
102437
102485
  LOADING_SPINNER_FRAMES = ["\u280B", "\u2819", "\u2839", "\u2838", "\u283C", "\u2834", "\u2826", "\u2827", "\u2807", "\u280F"];
102438
102486
  });
102439
102487
 
@@ -108769,7 +108817,7 @@ function resolveDisplayName(name, aliases) {
108769
108817
  // packages/mcp/package.json
108770
108818
  var package_default = {
108771
108819
  name: "@cuekit/mcp",
108772
- version: "0.0.11",
108820
+ version: "0.0.15",
108773
108821
  private: true,
108774
108822
  type: "module",
108775
108823
  exports: {
@@ -113671,8 +113719,8 @@ import { dirname as dirname10 } from "path";
113671
113719
  init_src2();
113672
113720
  // packages/cli/package.json
113673
113721
  var package_default2 = {
113674
- name: "@cuekit/cli",
113675
- version: "0.0.14",
113722
+ name: "cuekit",
113723
+ version: "0.0.15",
113676
113724
  description: "cuekit \u2014 delegation substrate for coding agents",
113677
113725
  type: "module",
113678
113726
  exports: {
@@ -114212,18 +114260,18 @@ async function getLatestGitHubRelease() {
114212
114260
  return { ok: false, reason: error51 instanceof Error ? error51.message : String(error51) };
114213
114261
  }
114214
114262
  }
114215
- function installCommand(tag) {
114216
- return `bun install -g github:${REPO}#${tag}`;
114263
+ function installCommand(_tag) {
114264
+ return `npm install -g cuekit@latest`;
114217
114265
  }
114218
- var REMOVE_COMMAND = "bun remove -g cuekit-workspace";
114266
+ var REMOVE_COMMAND = "npm uninstall -g cuekit";
114219
114267
  async function runUpdate(options = {}) {
114220
114268
  const current = options.getCurrentVersion !== undefined ? options.getCurrentVersion() ?? "unknown" : package_default2.version ?? "unknown";
114221
114269
  const latest = await (options.getLatestRelease ?? getLatestGitHubRelease)();
114222
114270
  const lines = ["cuekit update", "", `Current: ${current}`];
114223
114271
  if (latest.ok) {
114224
- lines.push(`Latest: ${latest.tag}`, "", "Run:", "", ` ${REMOVE_COMMAND}`, ` ${installCommand(latest.tag)}`, "", "Removing first avoids Bun global GitHub dependency-loop errors when upgrading from an older cuekit tag.", "");
114272
+ lines.push(`Latest: ${latest.tag}`, "", "Run:", "", ` ${REMOVE_COMMAND}`, ` ${installCommand(latest.tag)}`, "", "After installing, restart any MCP client using cuekit.", "", "Note: If you installed cuekit before v0.0.12 via GitHub directly", "(bun install -g github:takemo101/cuekit#...), uninstall with:", " bun remove -g cuekit-workspace", "", "If you installed via Homebrew's npm (/opt/homebrew/bin/cuekit),", "uninstall with:", " /opt/homebrew/bin/npm uninstall -g cuekit", "");
114225
114273
  } else {
114226
- lines.push("Latest: unknown", "", `Could not fetch the latest release tag: ${latest.reason}`, "Open https://github.com/takemo101/cuekit/releases and choose a release tag.", "", "Manual update pattern:", ` ${REMOVE_COMMAND}`, ` ${installCommand("<release-tag>")}`, "(<release-tag> is a placeholder, not a discovered version.)", "");
114274
+ lines.push("Latest: unknown", "", `Could not fetch the latest release tag: ${latest.reason}`, "Open https://github.com/takemo101/cuekit/releases and choose a release tag.", "", "Manual update pattern:", ` ${REMOVE_COMMAND}`, ` npm install -g cuekit@<version>`, "(<version> is a placeholder, e.g., 0.0.14)", "", "Note: If you installed cuekit before v0.0.12 via GitHub directly", "(bun install -g github:takemo101/cuekit#...), uninstall with:", " bun remove -g cuekit-workspace", "", "If you installed via Homebrew's npm (/opt/homebrew/bin/cuekit),", "uninstall with:", " /opt/homebrew/bin/npm uninstall -g cuekit", "");
114227
114275
  }
114228
114276
  lines.push("Then restart any MCP client using cuekit.", "");
114229
114277
  return { exitCode: 0, stdout: lines.join(`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cuekit",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "description": "cuekit — delegation substrate for coding agents",
5
5
  "type": "module",
6
6
  "exports": {
package/src/doctor.ts CHANGED
@@ -410,8 +410,7 @@ export async function runDoctor(options: RunDoctorOptions = {}): Promise<DoctorR
410
410
  // PATH. This is especially common with herdr or when cuekit itself is
411
411
  // already running inside a multiplexer session.
412
412
  const anyAdapterFound = checks.some(
413
- (c) =>
414
- c.label.startsWith("adapter ") && c.level === "ok" && c.detail.includes("found"),
413
+ (c) => c.label.startsWith("adapter ") && c.level === "ok" && c.detail.includes("found"),
415
414
  );
416
415
  if (anyAdapterFound && requestedMultiplexer !== "tmux") {
417
416
  checks.push({
package/src/update.ts CHANGED
@@ -30,11 +30,11 @@ export async function getLatestGitHubRelease(): Promise<UpdateLatestReleaseResul
30
30
  }
31
31
  }
32
32
 
33
- function installCommand(tag: string): string {
34
- return `bun install -g github:${REPO}#${tag}`;
33
+ function installCommand(_tag: string): string {
34
+ return `npm install -g cuekit@latest`;
35
35
  }
36
36
 
37
- const REMOVE_COMMAND = "bun remove -g cuekit-workspace";
37
+ const REMOVE_COMMAND = "npm uninstall -g cuekit";
38
38
 
39
39
  export async function runUpdate(options: RunUpdateOptions = {}): Promise<UpdateResult> {
40
40
  const current =
@@ -53,7 +53,15 @@ export async function runUpdate(options: RunUpdateOptions = {}): Promise<UpdateR
53
53
  ` ${REMOVE_COMMAND}`,
54
54
  ` ${installCommand(latest.tag)}`,
55
55
  "",
56
- "Removing first avoids Bun global GitHub dependency-loop errors when upgrading from an older cuekit tag.",
56
+ "After installing, restart any MCP client using cuekit.",
57
+ "",
58
+ "Note: If you installed cuekit before v0.0.12 via GitHub directly",
59
+ "(bun install -g github:takemo101/cuekit#...), uninstall with:",
60
+ " bun remove -g cuekit-workspace",
61
+ "",
62
+ "If you installed via Homebrew's npm (/opt/homebrew/bin/cuekit),",
63
+ "uninstall with:",
64
+ " /opt/homebrew/bin/npm uninstall -g cuekit",
57
65
  "",
58
66
  );
59
67
  } else {
@@ -65,8 +73,16 @@ export async function runUpdate(options: RunUpdateOptions = {}): Promise<UpdateR
65
73
  "",
66
74
  "Manual update pattern:",
67
75
  ` ${REMOVE_COMMAND}`,
68
- ` ${installCommand("<release-tag>")}`,
69
- "(<release-tag> is a placeholder, not a discovered version.)",
76
+ ` npm install -g cuekit@<version>`,
77
+ "(<version> is a placeholder, e.g., 0.0.14)",
78
+ "",
79
+ "Note: If you installed cuekit before v0.0.12 via GitHub directly",
80
+ "(bun install -g github:takemo101/cuekit#...), uninstall with:",
81
+ " bun remove -g cuekit-workspace",
82
+ "",
83
+ "If you installed via Homebrew's npm (/opt/homebrew/bin/cuekit),",
84
+ "uninstall with:",
85
+ " /opt/homebrew/bin/npm uninstall -g cuekit",
70
86
  "",
71
87
  );
72
88
  }