@autohq/cli 0.1.197 → 0.1.199
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/dist/agent-bridge.js +3 -2
- package/dist/index.js +35 -14
- package/package.json +1 -1
package/dist/agent-bridge.js
CHANGED
|
@@ -20975,7 +20975,8 @@ var GITHUB_MCP_TOOL_NAMES = [
|
|
|
20975
20975
|
"update_pull_request_branch"
|
|
20976
20976
|
];
|
|
20977
20977
|
var GITHUB_MCP_PROXY_TOOL_NAMES = [
|
|
20978
|
-
"enable_pull_request_auto_merge"
|
|
20978
|
+
"enable_pull_request_auto_merge",
|
|
20979
|
+
"upsert_issue_comment"
|
|
20979
20980
|
];
|
|
20980
20981
|
var GITHUB_MCP_SELECTABLE_TOOL_NAMES = [
|
|
20981
20982
|
...GITHUB_MCP_TOOL_NAMES,
|
|
@@ -26640,7 +26641,7 @@ Object.assign(lookup, {
|
|
|
26640
26641
|
// package.json
|
|
26641
26642
|
var package_default = {
|
|
26642
26643
|
name: "@autohq/cli",
|
|
26643
|
-
version: "0.1.
|
|
26644
|
+
version: "0.1.199",
|
|
26644
26645
|
license: "SEE LICENSE IN README.md",
|
|
26645
26646
|
publishConfig: {
|
|
26646
26647
|
access: "public"
|
package/dist/index.js
CHANGED
|
@@ -16666,7 +16666,8 @@ var init_github_mcp_catalog = __esm({
|
|
|
16666
16666
|
"update_pull_request_branch"
|
|
16667
16667
|
];
|
|
16668
16668
|
GITHUB_MCP_PROXY_TOOL_NAMES = [
|
|
16669
|
-
"enable_pull_request_auto_merge"
|
|
16669
|
+
"enable_pull_request_auto_merge",
|
|
16670
|
+
"upsert_issue_comment"
|
|
16670
16671
|
];
|
|
16671
16672
|
GITHUB_MCP_SELECTABLE_TOOL_NAMES = [
|
|
16672
16673
|
...GITHUB_MCP_TOOL_NAMES,
|
|
@@ -21623,7 +21624,7 @@ var init_package = __esm({
|
|
|
21623
21624
|
"package.json"() {
|
|
21624
21625
|
package_default = {
|
|
21625
21626
|
name: "@autohq/cli",
|
|
21626
|
-
version: "0.1.
|
|
21627
|
+
version: "0.1.199",
|
|
21627
21628
|
license: "SEE LICENSE IN README.md",
|
|
21628
21629
|
publishConfig: {
|
|
21629
21630
|
access: "public"
|
|
@@ -25935,14 +25936,6 @@ function ConversationView({
|
|
|
25935
25936
|
const isFailed = status === "failed";
|
|
25936
25937
|
const showPalette = input.startsWith("/") && !isFailed;
|
|
25937
25938
|
const paletteQuery = showPalette ? input.slice(1) : "";
|
|
25938
|
-
useInput3((_input, key) => {
|
|
25939
|
-
if (key.escape) {
|
|
25940
|
-
if (showPalette) {
|
|
25941
|
-
setInput("");
|
|
25942
|
-
return;
|
|
25943
|
-
}
|
|
25944
|
-
}
|
|
25945
|
-
});
|
|
25946
25939
|
const { finalized, pending } = useMemo2(
|
|
25947
25940
|
() => partitionTranscriptRows(entries),
|
|
25948
25941
|
[entries]
|
|
@@ -25950,6 +25943,21 @@ function ConversationView({
|
|
|
25950
25943
|
const pendingQuestion = isFailed ? null : pendingQuestionRow([...finalized, ...pending], answeredQuestionIds);
|
|
25951
25944
|
const showQuestionPrompt = pendingQuestion !== null && pendingQuestion.toolCallId !== null && !dismissedQuestionIds.has(pendingQuestion.toolCallId);
|
|
25952
25945
|
const pendingQuestionToolCallId = pendingQuestion?.toolCallId ?? null;
|
|
25946
|
+
useInput3((_input, key) => {
|
|
25947
|
+
if (!key.escape) {
|
|
25948
|
+
return;
|
|
25949
|
+
}
|
|
25950
|
+
switch (conversationEscapeAction({ showPalette, showQuestionPrompt })) {
|
|
25951
|
+
case "clear-command-palette":
|
|
25952
|
+
setInput("");
|
|
25953
|
+
return;
|
|
25954
|
+
case "defer-to-question-prompt":
|
|
25955
|
+
return;
|
|
25956
|
+
case "go-back":
|
|
25957
|
+
exit();
|
|
25958
|
+
return;
|
|
25959
|
+
}
|
|
25960
|
+
});
|
|
25953
25961
|
const handleSubmit = useCallback(
|
|
25954
25962
|
async (value) => {
|
|
25955
25963
|
if (!value.trim()) return;
|
|
@@ -26126,7 +26134,7 @@ function ConversationView({
|
|
|
26126
26134
|
/* @__PURE__ */ jsx4(Text4, { dimColor: true, children: workingDirectory })
|
|
26127
26135
|
] }),
|
|
26128
26136
|
/* @__PURE__ */ jsx4(Text4, { children: " " }),
|
|
26129
|
-
/* @__PURE__ */ jsx4(Text4, { dimColor: true, children: "/back to exit \xB7 scroll for history" })
|
|
26137
|
+
/* @__PURE__ */ jsx4(Text4, { dimColor: true, children: "esc or /back to exit \xB7 scroll for history" })
|
|
26130
26138
|
] })
|
|
26131
26139
|
}
|
|
26132
26140
|
) }, item.id) : /* @__PURE__ */ jsx4(Box4, { paddingX: 2, children: /* @__PURE__ */ jsx4(TranscriptRowView, { row: item }) }, item.id) }),
|
|
@@ -26210,9 +26218,13 @@ function ConversationView({
|
|
|
26210
26218
|
/* @__PURE__ */ jsx4(Text4, { dimColor: true, children: "\xB7" }),
|
|
26211
26219
|
/* @__PURE__ */ jsx4(Text4, { dimColor: true, children: sessionId })
|
|
26212
26220
|
] }),
|
|
26213
|
-
/* @__PURE__ */ jsxs4(
|
|
26214
|
-
|
|
26215
|
-
|
|
26221
|
+
/* @__PURE__ */ jsxs4(Box4, { gap: 2, children: [
|
|
26222
|
+
/* @__PURE__ */ jsx4(Text4, { dimColor: true, children: "esc to go back" }),
|
|
26223
|
+
/* @__PURE__ */ jsx4(Text4, { dimColor: true, children: "\xB7" }),
|
|
26224
|
+
/* @__PURE__ */ jsxs4(Text4, { dimColor: true, children: [
|
|
26225
|
+
awaitingReply && !isFailed ? "working" : status,
|
|
26226
|
+
debugActive ? " \xB7 debug" : ""
|
|
26227
|
+
] })
|
|
26216
26228
|
] })
|
|
26217
26229
|
] })
|
|
26218
26230
|
] }),
|
|
@@ -26233,6 +26245,15 @@ function ConversationView({
|
|
|
26233
26245
|
] })
|
|
26234
26246
|
] });
|
|
26235
26247
|
}
|
|
26248
|
+
function conversationEscapeAction(input) {
|
|
26249
|
+
if (input.showPalette) {
|
|
26250
|
+
return "clear-command-palette";
|
|
26251
|
+
}
|
|
26252
|
+
if (input.showQuestionPrompt) {
|
|
26253
|
+
return "defer-to-question-prompt";
|
|
26254
|
+
}
|
|
26255
|
+
return "go-back";
|
|
26256
|
+
}
|
|
26236
26257
|
function WorkingIndicator({
|
|
26237
26258
|
word,
|
|
26238
26259
|
startedAt,
|