@kud/gh-cockpit 0.4.13 → 0.4.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.
@@ -17,7 +17,8 @@ var registered = {};
17
17
  var registerPrompts = (forms) => {
18
18
  registered = forms;
19
19
  };
20
- var seedPromptFor = (ctx) => registered.seed?.(ctx);
20
+ var DEFAULT_SEED = (ctx) => ctx.kind === "pr" ? `Review the pull request at ${ctx.url}. Its branch is already checked out here.` : `Work on the issue at ${ctx.url}. Its repository is already checked out here.`;
21
+ var seedPromptFor = (ctx) => registered.seed?.(ctx) ?? DEFAULT_SEED(ctx);
21
22
  var portablePromptFor = (ctx) => registered.portable?.(ctx) ?? ctx.url;
22
23
  var DrillView = ({
23
24
  title,
@@ -139,7 +140,7 @@ var AiLauncher = ({
139
140
  setNote(`\u22EF opening ${a.label}\u2026`);
140
141
  try {
141
142
  const base = await buildCheckoutCmd(item.repo, item.branch ?? "", login);
142
- const run = prompt && a.acceptsPrompt ? `${a.cmd} ${shellQuote(prompt)}` : a.cmd;
143
+ const run = prompt && a.cmd ? `${a.cmd} ${shellQuote(prompt)}` : a.cmd;
143
144
  const full = a.cmd ? `${base} && ${run}` : base;
144
145
  if (placement === "here") {
145
146
  runHere(full);
@@ -189,16 +190,7 @@ var AiLauncher = ({
189
190
  /* @__PURE__ */ jsx(Text, { bold: i === safeCursor, children: row.label }),
190
191
  row.hint ? /* @__PURE__ */ jsx(Text, { dimColor: true, children: " " + row.hint }) : null
191
192
  ] }, 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,
193
+ prompt && focused?.cmd ? /* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { dimColor: true, children: `prompt ${prompt}` }) }) : null,
202
194
  note ? /* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { color: colors.success, children: note }) }) : null
203
195
  ] })
204
196
  }
@@ -1,4 +1,4 @@
1
- import { AiLauncher, seedPromptFor, CopyPromptNotice } from '../chunk-APWDGKQ2.js';
1
+ import { AiLauncher, seedPromptFor, CopyPromptNotice } from '../chunk-2DEQARCM.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-2DEQARCM.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-2DEQARCM.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.13",
3
+ "version": "0.4.15",
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",