@k-leumas/queque-cli 0.3.7 → 0.3.9
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/README.md +23 -51
- package/dist/cli/main.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,29 +1,35 @@
|
|
|
1
|
-
# QueQue
|
|
1
|
+
# QueQue — copy-pasting shell commands is dead
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
[](https://www.npmjs.com/package/@k-leumas/queque-cli?activeTab=versions)
|
|
5
|
-
[](https://github.com/k-leumas/queque/releases)
|
|
3
|
+
**Before:** Google it → copy → paste → tweak → pray.
|
|
6
4
|
|
|
7
|
-
**
|
|
5
|
+
**Now:** Type your intent, hit `??`, pick a command — it lands in your buffer, ready to tweak and run.
|
|
8
6
|
|
|
9
|
-
Type your intent, hit `??`, pick a command. It lands in your buffer ready to run or edit. No browser, no prompt takeover, no clipboard gymnastics.
|
|
10
7
|
|
|
11
|
-
|
|
8
|
+
#### Copy-pasting commands from the browser is dead.
|
|
12
9
|
|
|
13
|
-
|
|
10
|
+
Welcome to the **future** –
|
|
11
|
+
`
|
|
12
|
+
brew install k-leumas/tap/queque
|
|
13
|
+
`
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
```
|
|
15
|
+
|
|
16
|
+

|
|
18
17
|
|
|
19
18
|
> [!NOTE]
|
|
20
|
-
>
|
|
19
|
+
> After install, run `qq init zsh >> ~/.zshrc && source ~/.zshrc` to wire up the `??` keybinding.
|
|
21
20
|
|
|
22
21
|
|
|
23
22
|
<details>
|
|
24
|
-
<summary>Install via npm
|
|
23
|
+
<summary>Install via npm</summary>
|
|
25
24
|
|
|
26
|
-
|
|
25
|
+
## Requirements
|
|
26
|
+
|
|
27
|
+
- zsh
|
|
28
|
+
- Node.js ≥ 20
|
|
29
|
+
- [jq](https://jqlang.github.io/jq/)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
```shell
|
|
27
33
|
npm install -g @k-leumas/queque-cli
|
|
28
34
|
qq init zsh >> ~/.zshrc && source ~/.zshrc
|
|
29
35
|
```
|
|
@@ -36,7 +42,7 @@ QueQue resolves `ANTHROPIC_API_KEY` in order:
|
|
|
36
42
|
|
|
37
43
|
1. **Environment variable** — `export ANTHROPIC_API_KEY="sk-ant-..."` in your shell or `.zshrc`
|
|
38
44
|
2. **`.env.local` file** — place a `.env.local` in your project directory (or any parent). QueQue searches upward from the current working directory:
|
|
39
|
-
```
|
|
45
|
+
```shell
|
|
40
46
|
ANTHROPIC_API_KEY=sk-ant-...
|
|
41
47
|
```
|
|
42
48
|
|
|
@@ -46,7 +52,7 @@ The `.env.local` option is useful for project-specific keys or keeping the key o
|
|
|
46
52
|
|
|
47
53
|
Type anything before `??` and QueQue turns it into a shell command:
|
|
48
54
|
|
|
49
|
-
```
|
|
55
|
+
```shell
|
|
50
56
|
list files by size??
|
|
51
57
|
find docker containers using port 3000??
|
|
52
58
|
git undo last commit but keep changes??
|
|
@@ -54,45 +60,11 @@ git undo last commit but keep changes??
|
|
|
54
60
|
|
|
55
61
|
A selection UI opens in-terminal. Pick a command with arrow keys or fuzzy search, press `Enter`, and the command lands in your buffer — ready to run or edit before you commit.
|
|
56
62
|
|
|
57
|
-
Press `Esc` to cancel and return to what you were typing.
|
|
63
|
+
Press `Esc` to cancel and return to what you were typing, you can even tweak your intent and hit `??` again.
|
|
58
64
|
|
|
59
65
|
### Inside Zellij
|
|
60
66
|
|
|
61
67
|
QueQue detects Zellij automatically and opens in a floating pane instead of inline. Same trigger, same result, better layout.
|
|
62
68
|
|
|
63
|
-
## Requirements
|
|
64
|
-
|
|
65
|
-
- zsh
|
|
66
|
-
- Node.js ≥ 20
|
|
67
|
-
- [jq](https://jqlang.github.io/jq/)
|
|
68
|
-
- `ANTHROPIC_API_KEY`
|
|
69
|
-
|
|
70
|
-
## Configuration
|
|
71
|
-
|
|
72
|
-
| Variable | Default | Description |
|
|
73
|
-
|---|---|---|
|
|
74
|
-
| `ANTHROPIC_API_KEY` | — | Required. Your Anthropic API key. |
|
|
75
|
-
| `QQ_MODEL` | `claude-haiku-4-5-20251001` | Override the Claude model. |
|
|
76
|
-
| `QQ_DEBUG_LOG_FILE` | — | Path to write a debug log (e.g. `/tmp/qq.log`). |
|
|
77
69
|
|
|
78
|
-
Both env vars and `.env.local` are supported for all variables.
|
|
79
|
-
|
|
80
|
-
## Contributing
|
|
81
|
-
|
|
82
|
-
```zsh
|
|
83
|
-
git clone https://github.com/k-leumas/queque
|
|
84
|
-
cd queque
|
|
85
|
-
pnpm install
|
|
86
|
-
pnpm dev # watch build
|
|
87
|
-
pnpm test:run # run tests
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
To wire up the dev build as the live `??` trigger:
|
|
91
|
-
|
|
92
|
-
```zsh
|
|
93
|
-
export QQ_DEV_ROOT="$PWD"
|
|
94
|
-
qq init zsh >> ~/.zshrc
|
|
95
|
-
source ~/.zshrc
|
|
96
|
-
```
|
|
97
70
|
|
|
98
|
-
Changes to `src/` rebuild automatically and the widget picks them up immediately.
|
package/dist/cli/main.js
CHANGED
|
@@ -887,7 +887,7 @@ function CandidateSelect({
|
|
|
887
887
|
/* @__PURE__ */ jsx5(SearchInput, { query }),
|
|
888
888
|
content,
|
|
889
889
|
/* @__PURE__ */ jsx5(ControlsLine, {}),
|
|
890
|
-
process.env.QQ_DEV_ROOT != null && /* @__PURE__ */ jsx5(Box4, { justifyContent: "flex-end", children: /* @__PURE__ */ jsx5(Text4, { color: "yellow", children: `dev v${"0.3.
|
|
890
|
+
process.env.QQ_DEV_ROOT != null && /* @__PURE__ */ jsx5(Box4, { justifyContent: "flex-end", children: /* @__PURE__ */ jsx5(Text4, { color: "yellow", children: `dev v${"0.3.9"} ${"c770054"}` }) })
|
|
891
891
|
] });
|
|
892
892
|
}
|
|
893
893
|
|