@k-leumas/queque-cli 0.10.0 → 0.10.2
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/cli/app.js +6 -6
- package/package.json +1 -1
- package/shell/README.md +1 -0
- package/shell/zsh/queque.zsh +5 -1
package/dist/cli/app.js
CHANGED
|
@@ -60164,13 +60164,13 @@ function pingDaemonFetchCap(socketPath2) {
|
|
|
60164
60164
|
return;
|
|
60165
60165
|
}
|
|
60166
60166
|
const build = response.data.build;
|
|
60167
|
-
if (build === "0.10.
|
|
60167
|
+
if (build === "0.10.2+c73d9d6.mwkzco91") {
|
|
60168
60168
|
done("yes");
|
|
60169
60169
|
return;
|
|
60170
60170
|
}
|
|
60171
60171
|
void appendDebugLog("daemon", "daemon build differs", {
|
|
60172
60172
|
daemonBuild: build ?? null,
|
|
60173
|
-
clientBuild: "0.10.
|
|
60173
|
+
clientBuild: "0.10.2+c73d9d6.mwkzco91"
|
|
60174
60174
|
});
|
|
60175
60175
|
done("no");
|
|
60176
60176
|
});
|
|
@@ -61785,7 +61785,7 @@ function CandidateSelect({
|
|
|
61785
61785
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Text, { dimColor: true, children: legend.slice(MISSING_TOOL_MARK.length) })
|
|
61786
61786
|
] }),
|
|
61787
61787
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ControlsLine, {}),
|
|
61788
|
-
process.env.QQ_DEV_ROOT != null && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Box_default, { justifyContent: "flex-end", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Text, { color: "yellow", children: `dev v${"0.10.
|
|
61788
|
+
process.env.QQ_DEV_ROOT != null && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Box_default, { justifyContent: "flex-end", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Text, { color: "yellow", children: `dev v${"0.10.2"} ${"c73d9d6"}` }) })
|
|
61789
61789
|
] });
|
|
61790
61790
|
}
|
|
61791
61791
|
|
|
@@ -62646,7 +62646,7 @@ function startDaemonServer(socketPath2, options = {}) {
|
|
|
62646
62646
|
streamCandidates: true,
|
|
62647
62647
|
providerPin: true,
|
|
62648
62648
|
telemetry: true,
|
|
62649
|
-
build: "0.10.
|
|
62649
|
+
build: "0.10.2+c73d9d6.mwkzco91"
|
|
62650
62650
|
});
|
|
62651
62651
|
void appendDebugLog("daemon", "replied pong");
|
|
62652
62652
|
break;
|
|
@@ -62814,7 +62814,7 @@ function createTelemetryBuffer(deps = {}) {
|
|
|
62814
62814
|
const readState = deps.readState ?? (() => readTelemetryState());
|
|
62815
62815
|
const env3 = deps.env ?? (() => process.env);
|
|
62816
62816
|
const endpointFor = deps.endpoint ?? resolveTelemetryEndpoint;
|
|
62817
|
-
const version3 = deps.version ?? "0.10.
|
|
62817
|
+
const version3 = deps.version ?? "0.10.2";
|
|
62818
62818
|
let events = [];
|
|
62819
62819
|
let lastSent = null;
|
|
62820
62820
|
let lastEnvironment = null;
|
|
@@ -63649,7 +63649,7 @@ function defaultDoctorDeps() {
|
|
|
63649
63649
|
uid: process.getuid?.() ?? 0,
|
|
63650
63650
|
socketPath: socketPath(),
|
|
63651
63651
|
nodeVersion: process.versions.node,
|
|
63652
|
-
qqVersion: "0.10.
|
|
63652
|
+
qqVersion: "0.10.2",
|
|
63653
63653
|
which,
|
|
63654
63654
|
shellVersion: async (shell) => {
|
|
63655
63655
|
const binary = shellBinary(shell);
|
package/package.json
CHANGED
package/shell/README.md
CHANGED
|
@@ -17,6 +17,7 @@ This page is the contract a new adapter follows. When in doubt, read the zsh ada
|
|
|
17
17
|
- A shell version that cannot run the adapter refuses at source time with one line on stderr (bash: `queque: the ?? trigger needs bash 5.0+ (found …)`) and binds nothing. Keep the code above that check parseable by the oldest version you refuse.
|
|
18
18
|
- Call external tools through `command` (or the shell's equivalent), so a user's `alias rm='rm -i'` cannot change what the adapter runs. A user's `set -e` or similar must not leak in or out.
|
|
19
19
|
- The adapter never runs the chosen command. It places it in the line; the user presses Enter (insertion-only).
|
|
20
|
+
- A background job that runs Node (the daemon prewarm `qq daemon --ensure`) gets none of the terminal: redirect stdin, stdout and stderr (`</dev/null >/dev/null 2>&1`). A Node process with the terminal on any of them writes back the terminal settings it saw at startup when it exits, even in the background, so it can undo the picker's raw mode and turn Enter into text in FILTER.
|
|
20
21
|
|
|
21
22
|
## The trigger
|
|
22
23
|
|
package/shell/zsh/queque.zsh
CHANGED
|
@@ -200,13 +200,17 @@ _qq_prewarm_daemon() {
|
|
|
200
200
|
fi
|
|
201
201
|
|
|
202
202
|
QQ_DAEMON_PREWARMED=1
|
|
203
|
+
# stdin from /dev/null too, like the bash adapter: Node saves the terminal settings of a tty
|
|
204
|
+
# stdin at startup and writes them back at exit, even in the background. A prewarm still
|
|
205
|
+
# running when `??` opens the picker would put ZLE's settings back over Ink's raw mode, and
|
|
206
|
+
# Enter would arrive as LF and land in FILTER (smoke-picker-race).
|
|
203
207
|
(
|
|
204
208
|
if [[ -n "$QQ_DEV_ROOT" && -f "$QQ_DEV_ROOT/dist/cli/main.js" ]] && command -v node >/dev/null 2>&1; then
|
|
205
209
|
command node "$QQ_DEV_ROOT/dist/cli/main.js" daemon --ensure
|
|
206
210
|
elif command -v qq >/dev/null 2>&1; then
|
|
207
211
|
command qq daemon --ensure
|
|
208
212
|
fi
|
|
209
|
-
) >/dev/null 2>&1 &!
|
|
213
|
+
) </dev/null >/dev/null 2>&1 &!
|
|
210
214
|
}
|
|
211
215
|
#
|
|
212
216
|
# How it works:
|