wisp-agents 0.21.0 → 0.22.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/CHANGELOG.md +24 -1
- package/README.md +13 -8
- package/bin/wisp.js +10 -3
- package/package.json +4 -3
- package/server/adapters/claude.js +8 -4
- package/server/adapters/codex.js +9 -6
- package/server/adapters/cursor.js +4 -1
- package/server/adapters/grok.js +2 -1
- package/server/adapters/index.js +7 -2
- package/server/adapters/opencode.js +5 -2
- package/server/btw.js +76 -0
- package/server/client.js +19 -0
- package/server/git.js +80 -4
- package/server/handoff.js +13 -7
- package/server/index.js +4 -0
- package/server/machines.js +15 -4
- package/server/openapi.js +27 -2
- package/server/remote.js +4 -2
- package/server/routes/machines.js +1 -1
- package/server/routes/proxy.js +6 -0
- package/server/routes/sessions.js +32 -2
- package/server/routes/settings.js +24 -38
- package/server/routes/uploads.js +2 -0
- package/server/runner.js +154 -8
- package/server/services/launch.js +32 -4
- package/server/services/move.js +130 -0
- package/server/services/phone.js +20 -1
- package/server/services/places.js +150 -0
- package/server/services/uploads.js +23 -4
- package/server/store.js +39 -6
- package/skills/wisp/SKILL.md +1 -0
- package/web/css/blocks.css +2 -0
- package/web/css/composer.css +23 -1
- package/web/css/feed.css +49 -1
- package/web/css/machines.css +4 -0
- package/web/css/modals.css +19 -0
- package/web/css/ship.css +2 -0
- package/web/css/transcript.css +115 -0
- package/web/index.html +2 -0
- package/web/js/core/state.js +3 -2
- package/web/js/features/actions.js +42 -10
- package/web/js/features/btw.js +145 -0
- package/web/js/features/clones.js +7 -6
- package/web/js/features/commands.js +3 -1
- package/web/js/features/composer.js +162 -18
- package/web/js/features/feed.js +1 -1
- package/web/js/features/keys.js +2 -1
- package/web/js/features/launcher.js +104 -94
- package/web/js/features/place-menu.js +44 -0
- package/web/js/features/places.js +15 -5
- package/web/js/features/projects.js +14 -12
- package/web/js/features/settings.js +24 -3
- package/web/js/features/slash.js +63 -0
- package/web/js/features/transcript.js +290 -0
- package/web/js/features/turns.js +99 -28
- package/web/js/slash-text.js +22 -0
- package/web/js/ui/kbd.js +1 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// Slash commands in a follow-up box, DOM-free: what the / menu offers and how a message reads as
|
|
2
|
+
// one. The server knows /btw too (server/btw.js), so the CLI and the phone can use it.
|
|
3
|
+
|
|
4
|
+
export const SLASH = [
|
|
5
|
+
{ name: 'btw', args: 'question', hint: 'Ask on the side. The agent keeps working' },
|
|
6
|
+
{ name: 'feedback', args: 'note', hint: 'Tell the wisp team what works or breaks', bare: true }, // alone: opens the dialog
|
|
7
|
+
];
|
|
8
|
+
|
|
9
|
+
const BTW_CMD = /^\/btw(?:\s+|$)/i;
|
|
10
|
+
export const isBtw = (text) => BTW_CMD.test(String(text || '').trimStart());
|
|
11
|
+
|
|
12
|
+
// The question in "/btw did you …" ('' for a bare /btw), or null when the text isn't a /btw.
|
|
13
|
+
export function btwQuestion(text) {
|
|
14
|
+
const t = String(text || '').trim();
|
|
15
|
+
return BTW_CMD.test(t) ? t.replace(BTW_CMD, '').trim() : null;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// The commands a half-typed "/b" could be. Only while the box holds nothing but the command.
|
|
19
|
+
export function slashMatches(text, list = SLASH) {
|
|
20
|
+
const m = /^\/([a-z]*)$/i.exec(String(text || ''));
|
|
21
|
+
return m ? list.filter((c) => c.name.startsWith(m[1].toLowerCase())) : [];
|
|
22
|
+
}
|
package/web/js/ui/kbd.js
CHANGED
|
@@ -20,6 +20,7 @@ export function shortcuts() {
|
|
|
20
20
|
['⌫', 'Delete item'],
|
|
21
21
|
['T', 'Take over in terminal'],
|
|
22
22
|
['R', 'Replay presentation'],
|
|
23
|
+
['V', 'Full transcript / presentation'],
|
|
23
24
|
['⇧R', 'Rerun with another harness, model or thinking level'],
|
|
24
25
|
['S', 'Ship it: commit, push and open a PR (worktree tasks)'],
|
|
25
26
|
['1–9', 'Pick an answer when asked'],
|