@kud/gh-cockpit 0.4.12 → 0.4.14

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.
@@ -70,9 +70,7 @@ var signalPath = () => {
70
70
  return join(dir, "cockpit-dirty");
71
71
  };
72
72
  var CANDIDATES = [
73
- { id: "claude", label: "Claude Code", cmd: "claude", acceptsPrompt: true },
74
- { id: "opencode", label: "opencode", cmd: "opencode" },
75
- { id: "codex", label: "Codex", cmd: "codex", acceptsPrompt: true }
73
+ { id: "claude", label: "Claude Code", cmd: "claude" }
76
74
  ];
77
75
  var PLACEMENTS = [
78
76
  { id: "here", label: "Right here" },
@@ -139,7 +137,7 @@ var AiLauncher = ({
139
137
  setNote(`\u22EF opening ${a.label}\u2026`);
140
138
  try {
141
139
  const base = await buildCheckoutCmd(item.repo, item.branch ?? "", login);
142
- const run = prompt && a.acceptsPrompt ? `${a.cmd} ${shellQuote(prompt)}` : a.cmd;
140
+ const run = prompt && a.cmd ? `${a.cmd} ${shellQuote(prompt)}` : a.cmd;
143
141
  const full = a.cmd ? `${base} && ${run}` : base;
144
142
  if (placement === "here") {
145
143
  runHere(full);
@@ -189,16 +187,7 @@ var AiLauncher = ({
189
187
  /* @__PURE__ */ jsx(Text, { bold: i === safeCursor, children: row.label }),
190
188
  row.hint ? /* @__PURE__ */ jsx(Text, { dimColor: true, children: " " + row.hint }) : null
191
189
  ] }, row.label)),
192
- prompt ? /* @__PURE__ */ jsxs(Box, { marginTop: 1, flexDirection: "column", children: [
193
- /* @__PURE__ */ jsx(Text, { dimColor: true, children: `prompt ${prompt}` }),
194
- focused && focused.cmd && !focused.acceptsPrompt ? /* @__PURE__ */ jsx(
195
- Text,
196
- {
197
- dimColor: true,
198
- children: ` ${focused.label} takes no prompt \u2014 starts cold`
199
- }
200
- ) : null
201
- ] }) : null,
190
+ prompt && focused?.cmd ? /* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { dimColor: true, children: `prompt ${prompt}` }) }) : null,
202
191
  note ? /* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: colors.success, children: note }) }) : null
203
192
  ] })
204
193
  }
@@ -1,4 +1,4 @@
1
- import { AiLauncher, seedPromptFor, CopyPromptNotice } from '../chunk-APWDGKQ2.js';
1
+ import { AiLauncher, seedPromptFor, CopyPromptNotice } from '../chunk-OGDDP5WY.js';
2
2
  import { useEffect } from 'react';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
 
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { useActionMenu, buildActions, AiLauncher, seedPromptFor, CopyPromptNotice, DrillView, ActionMenu, resolveRepoPath, openInTab } from './chunk-APWDGKQ2.js';
2
- export { ActionMenu, App, COLS, CiStatusLine, CommentsPanel, DrillView, HealthPanel, PIN_MARK, SIDEBAR_COLS, SidePanel, budgetNotice, buildActions, buildCheckoutCmd, buildInboxQueries, buildInboxQuery, checkoutDirs, clipboard, computeHealth, configureInbox, counts, drillCmd, explainGhAction, explainItem, filterByOrigin, filterByRepos, filterBySearch, fitCount, gapsAbove, healthColor, healthDisplay, healthGlyph, healthLegend, inboxConfig, insertRepoHeaders, itermRun, jumpToRepo, jumpToRepoPane, labelPriority, layoutGHItems, matchesFilter, maxViewStart, mergeInboxData, moveCursor, openInTab, parsePatterns, profileOf, railCapacity, readCache, registerPrompts, relativeTime, renderMarkdown, repoPriority, reposInSections, resetInboxConfig, resolveRepoPath, runHere, runInPane, runInPaneHorizontal, sameCiStatusState, signalPath, signatureOf, sortByRecency, sortItems, toCiStatusState, toGHItem, truncate, useActionMenu, whoseMove, windowCount, withHeaders, withRetry, withoutItem, workCount, writeCache } from './chunk-APWDGKQ2.js';
1
+ import { useActionMenu, buildActions, AiLauncher, seedPromptFor, CopyPromptNotice, DrillView, ActionMenu, resolveRepoPath, openInTab } from './chunk-OGDDP5WY.js';
2
+ export { ActionMenu, App, COLS, CiStatusLine, CommentsPanel, DrillView, HealthPanel, PIN_MARK, SIDEBAR_COLS, SidePanel, budgetNotice, buildActions, buildCheckoutCmd, buildInboxQueries, buildInboxQuery, checkoutDirs, clipboard, computeHealth, configureInbox, counts, drillCmd, explainGhAction, explainItem, filterByOrigin, filterByRepos, filterBySearch, fitCount, gapsAbove, healthColor, healthDisplay, healthGlyph, healthLegend, inboxConfig, insertRepoHeaders, itermRun, jumpToRepo, jumpToRepoPane, labelPriority, layoutGHItems, matchesFilter, maxViewStart, mergeInboxData, moveCursor, openInTab, parsePatterns, profileOf, railCapacity, readCache, registerPrompts, relativeTime, renderMarkdown, repoPriority, reposInSections, resetInboxConfig, resolveRepoPath, runHere, runInPane, runInPaneHorizontal, sameCiStatusState, signalPath, signatureOf, sortByRecency, sortItems, toCiStatusState, toGHItem, truncate, useActionMenu, whoseMove, windowCount, withHeaders, withRetry, withoutItem, workCount, writeCache } from './chunk-OGDDP5WY.js';
3
3
  import { parsePatterns, HealthPanel, CommentsPanel, inboxConfig } from '@kud/gh-ink';
4
4
  import { $ } from 'zx';
5
5
  import { useState, useEffect } from 'react';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kud/gh-cockpit",
3
- "version": "0.4.12",
3
+ "version": "0.4.14",
4
4
  "description": "A configurable GitHub cockpit for the terminal — your PRs, reviews and issues in one Ink TUI, grouped by whose move it is.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -54,7 +54,7 @@
54
54
  },
55
55
  "dependencies": {
56
56
  "@kud/gh": "0.12.2",
57
- "@kud/gh-ink": "0.45.6",
57
+ "@kud/gh-ink": "0.45.7",
58
58
  "@kud/ink-ui": "0.22.0",
59
59
  "zx": "8.8.5",
60
60
  "@kud/gh-workflow": "0.3.2"