@insitue/claude-plugin 0.6.2 → 0.6.3
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/.claude-plugin/plugin.json +1 -1
- package/CHANGELOG.md +4 -0
- package/commands/connect.md +18 -10
- package/dist/mcp-server.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# @insitue/claude-plugin
|
|
2
2
|
|
|
3
|
+
## 0.6.3
|
|
4
|
+
|
|
5
|
+
- **Responsive watch — interject without cancelling.** The `next_pick` long-poll is now 8s (was 25s). While the watch is running you can just type a message: Claude Code queues it and delivers it the moment the poll returns (≤~8s), so you no longer have to cancel the watch to ask a question. The connect instructions now make clear the watch never needs to be cancelled to talk — Claude answers and resumes watching.
|
|
6
|
+
|
|
3
7
|
## 0.6.2
|
|
4
8
|
|
|
5
9
|
- **Echo the request before fixing.** The cloud-issue instructions (connect.md + the `claim_cloud_issue` tool) now require Claude to print the exact request verbatim ("Fixing locally: …") before any analysis or edits, so you always see what it's about to act on.
|
package/commands/connect.md
CHANGED
|
@@ -31,13 +31,17 @@ Either path is fine; pick whichever your runtime has.
|
|
|
31
31
|
any picks the user made before you attached, summarise them
|
|
32
32
|
("you picked X but haven't sent a description yet — make sure
|
|
33
33
|
to click Send in the InSitue panel"). Otherwise just say
|
|
34
|
-
"Connected
|
|
34
|
+
"Connected — pick something in the browser when you're ready.
|
|
35
|
+
You can also just type to ask me anything anytime; I'll answer
|
|
36
|
+
and keep watching, no need to cancel."
|
|
35
37
|
2. Enter the loop: call `mcp__insitue__next_pick`. It long-polls
|
|
36
|
-
(~
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
(~8s — deliberately short. The user can type at ANY time without
|
|
39
|
+
cancelling: Claude Code queues their message and delivers it the
|
|
40
|
+
moment this call returns, so a short poll means they wait at most
|
|
41
|
+
~8s to reach you and never need to hit Esc). When it returns with
|
|
42
|
+
`status: "timeout"` **and the user hasn't said anything**, call it
|
|
43
|
+
again immediately without announcing it — the timeout is just a
|
|
44
|
+
heartbeat, not news. When it returns with `status: "ok"`:
|
|
41
45
|
- **Always echo the prompt back first.** Before any action,
|
|
42
46
|
diff, or follow-up question, lead with:
|
|
43
47
|
|
|
@@ -73,10 +77,14 @@ Either path is fine; pick whichever your runtime has.
|
|
|
73
77
|
again. **Do not narrate the loop** — no "still waiting…", no
|
|
74
78
|
"polling again…". The user sees `[insitue] 📥 pick received`
|
|
75
79
|
on stderr the moment their pick lands; that's the
|
|
76
|
-
confirmation, not your narration.
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
`next_pick
|
|
80
|
+
confirmation, not your narration. **The user never has to cancel
|
|
81
|
+
the watch to talk to you.** When a message from the user arrives
|
|
82
|
+
while you're watching (it queues during the poll and lands the
|
|
83
|
+
moment `next_pick` returns), STOP looping, answer it fully, and do
|
|
84
|
+
whatever they ask — then resume the watch by calling `next_pick`
|
|
85
|
+
again. Their message is the priority; the watch waits for them, not
|
|
86
|
+
the other way around. Never tell the user to cancel or re-run
|
|
87
|
+
`/insitue:connect` just to ask a question.
|
|
80
88
|
4. **End the session properly.** When the user says "stop",
|
|
81
89
|
"done", "quit", "thanks", "exit", "disconnect", "stop
|
|
82
90
|
insitue", or anything else that clearly ends the InSitue
|
package/dist/mcp-server.js
CHANGED
|
@@ -204,7 +204,7 @@ function readPackageVersion() {
|
|
|
204
204
|
return "unknown";
|
|
205
205
|
}
|
|
206
206
|
var MAX_BUFFERED_PICKS = 32;
|
|
207
|
-
var NEXT_PICK_DEFAULT_TIMEOUT_MS =
|
|
207
|
+
var NEXT_PICK_DEFAULT_TIMEOUT_MS = 8 * 1e3;
|
|
208
208
|
var NEXT_PICK_MAX_TIMEOUT_MS = 30 * 60 * 1e3;
|
|
209
209
|
function findSession(projectDir2) {
|
|
210
210
|
const candidate = join3(projectDir2, ".insitue", "session.json");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@insitue/claude-plugin",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.3",
|
|
4
4
|
"description": "Drive Claude (Code AND Desktop) from the InSitue browser overlay — pick an element in your app, claude reads the file and proposes the edit.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"insitue",
|