coding-agent-adapters 0.4.3 → 0.5.0
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/index.cjs +64 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +64 -0
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -985,6 +985,15 @@ var GeminiAdapter = class extends BaseCodingAdapter {
|
|
|
985
985
|
instructions: "Gemini is asking to apply a change (file write, shell command, etc.)"
|
|
986
986
|
};
|
|
987
987
|
}
|
|
988
|
+
if (/Interactive\s+shell\s+awaiting\s+input/i.test(stripped)) {
|
|
989
|
+
return {
|
|
990
|
+
detected: true,
|
|
991
|
+
type: "tool_wait",
|
|
992
|
+
prompt: "Gemini interactive shell needs user focus",
|
|
993
|
+
canAutoRespond: false,
|
|
994
|
+
instructions: "Press Tab to focus the interactive shell, or wait for it to complete"
|
|
995
|
+
};
|
|
996
|
+
}
|
|
988
997
|
const loginDetection = this.detectLogin(output);
|
|
989
998
|
if (loginDetection.required) {
|
|
990
999
|
return {
|
|
@@ -1106,6 +1115,12 @@ var GeminiAdapter = class extends BaseCodingAdapter {
|
|
|
1106
1115
|
code: 0
|
|
1107
1116
|
};
|
|
1108
1117
|
}
|
|
1118
|
+
if (/Agent\s+powering\s+down/i.test(stripped)) {
|
|
1119
|
+
return {
|
|
1120
|
+
exited: true,
|
|
1121
|
+
code: 0
|
|
1122
|
+
};
|
|
1123
|
+
}
|
|
1109
1124
|
return super.detectExit(output);
|
|
1110
1125
|
}
|
|
1111
1126
|
getPromptPattern() {
|
|
@@ -1903,6 +1918,15 @@ var BASELINE_PATTERNS = {
|
|
|
1903
1918
|
"update available",
|
|
1904
1919
|
"[y/n]"
|
|
1905
1920
|
],
|
|
1921
|
+
loading: [
|
|
1922
|
+
"Reading X files\u2026"
|
|
1923
|
+
],
|
|
1924
|
+
turnComplete: [
|
|
1925
|
+
"Cooked for 1m 6s",
|
|
1926
|
+
"<CustomVerb> for 4m 39s"
|
|
1927
|
+
],
|
|
1928
|
+
toolWait: [],
|
|
1929
|
+
exit: [],
|
|
1906
1930
|
source: "baseline"
|
|
1907
1931
|
},
|
|
1908
1932
|
gemini: {
|
|
@@ -1924,6 +1948,20 @@ var BASELINE_PATTERNS = {
|
|
|
1924
1948
|
"update available",
|
|
1925
1949
|
"[y/n]"
|
|
1926
1950
|
],
|
|
1951
|
+
loading: [
|
|
1952
|
+
"<phrase> (esc to cancel, 25s)",
|
|
1953
|
+
"Waiting for user confirmation...",
|
|
1954
|
+
"Generating witty retort\u2026",
|
|
1955
|
+
"Reticulating splines",
|
|
1956
|
+
"Warming up the AI hamsters"
|
|
1957
|
+
],
|
|
1958
|
+
turnComplete: [],
|
|
1959
|
+
toolWait: [
|
|
1960
|
+
"Interactive shell awaiting input... press tab to focus shell"
|
|
1961
|
+
],
|
|
1962
|
+
exit: [
|
|
1963
|
+
"Agent powering down. Goodbye!"
|
|
1964
|
+
],
|
|
1927
1965
|
source: "baseline"
|
|
1928
1966
|
},
|
|
1929
1967
|
codex: {
|
|
@@ -1942,6 +1980,18 @@ var BASELINE_PATTERNS = {
|
|
|
1942
1980
|
"update available",
|
|
1943
1981
|
"[y/n]"
|
|
1944
1982
|
],
|
|
1983
|
+
loading: [
|
|
1984
|
+
"\u2022 Working (0s \u2022 esc to interrupt)",
|
|
1985
|
+
"Booting MCP server: alpha"
|
|
1986
|
+
],
|
|
1987
|
+
turnComplete: [
|
|
1988
|
+
"Worked for 1m 05s"
|
|
1989
|
+
],
|
|
1990
|
+
toolWait: [
|
|
1991
|
+
"Waiting for background terminal \xB7 <command>",
|
|
1992
|
+
"Searching the web"
|
|
1993
|
+
],
|
|
1994
|
+
exit: [],
|
|
1945
1995
|
source: "baseline"
|
|
1946
1996
|
},
|
|
1947
1997
|
aider: {
|
|
@@ -1960,6 +2010,16 @@ var BASELINE_PATTERNS = {
|
|
|
1960
2010
|
"(Y)es/(N)o",
|
|
1961
2011
|
"[y/n]"
|
|
1962
2012
|
],
|
|
2013
|
+
loading: [
|
|
2014
|
+
"Waiting for <model>",
|
|
2015
|
+
"Waiting for LLM",
|
|
2016
|
+
"Generating commit message with <model>"
|
|
2017
|
+
],
|
|
2018
|
+
turnComplete: [
|
|
2019
|
+
"Aider is waiting for your input"
|
|
2020
|
+
],
|
|
2021
|
+
toolWait: [],
|
|
2022
|
+
exit: [],
|
|
1963
2023
|
source: "baseline"
|
|
1964
2024
|
}
|
|
1965
2025
|
};
|
|
@@ -1977,6 +2037,10 @@ async function tryLoadFromMonitor(adapter, version) {
|
|
|
1977
2037
|
ready: patterns.readyPatterns || [],
|
|
1978
2038
|
auth: patterns.authPatterns || [],
|
|
1979
2039
|
blocking: patterns.blockingPatterns || [],
|
|
2040
|
+
loading: patterns.loadingPatterns || [],
|
|
2041
|
+
turnComplete: patterns.turnCompletePatterns || [],
|
|
2042
|
+
toolWait: patterns.toolWaitPatterns || [],
|
|
2043
|
+
exit: patterns.exitPatterns || [],
|
|
1980
2044
|
source: "snapshot",
|
|
1981
2045
|
version: patterns.version
|
|
1982
2046
|
};
|