@kud/gh-cockpit 0.4.13 → 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"
|
|
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.
|
|
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__ */
|
|
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
|
}
|
package/dist/extensions/index.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useActionMenu, buildActions, AiLauncher, seedPromptFor, CopyPromptNotice, DrillView, ActionMenu, resolveRepoPath, openInTab } from './chunk-
|
|
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-
|
|
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