@cueloop/pi 0.1.0-alpha.89 → 0.1.0-alpha.91
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 +1 -1
- package/package.json +2 -2
- package/skills/diff/SKILL.md +7 -1
- package/skills/pair/SKILL.md +21 -0
package/README.md
CHANGED
|
@@ -6,6 +6,6 @@ pi install npm:@cueloop/pi
|
|
|
6
6
|
|
|
7
7
|
The package opens cueloop Threads in the configured terminal surface and delivers Messages back into the active pi conversation.
|
|
8
8
|
|
|
9
|
-
Use `/cueloop:plan`, `/cueloop:diff`, `/cueloop:review`, `/cueloop:reply`, `/cueloop:prototype`, or `/cueloop:refine` to start a workflow. Each command loads the corresponding shared cueloop skill. The review skill uses the CLI to attach line anchored findings; the other workflow skills use `open_thread` when available.
|
|
9
|
+
Use `/cueloop:plan`, `/cueloop:diff`, `/cueloop:pair`, `/cueloop:review`, `/cueloop:reply`, `/cueloop:prototype`, or `/cueloop:refine` to start a workflow. Each command loads the corresponding shared cueloop skill. The review skill uses the CLI to attach line anchored findings; the pair skill opens a live workbench and follows its events; the other workflow skills use `open_thread` when available.
|
|
10
10
|
|
|
11
11
|
Pi reports available package updates on startup. If cueloop reports a version mismatch, run `cueloop restart`, then update the older component if needed: `cueloop update` or `pi update npm:@cueloop/pi`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cueloop/pi",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.91",
|
|
4
4
|
"description": "cueloop Thread integration for pi",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"prepack": "node prepare-skills.mjs"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@cueloop/adapters": "0.1.0-alpha.
|
|
34
|
+
"@cueloop/adapters": "0.1.0-alpha.91"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"@earendil-works/pi-coding-agent": "^0.86.0"
|
package/skills/diff/SKILL.md
CHANGED
|
@@ -9,7 +9,8 @@ Capture the working-tree patch, including untracked files, through the
|
|
|
9
9
|
harness's cueloop `diff` workflow when available. Submit full changed-file
|
|
10
10
|
contents so hunk curation stays applyable. Otherwise, write a complete patch
|
|
11
11
|
to a file and run `cueloop session create --type diff --content-file <patch>`.
|
|
12
|
-
|
|
12
|
+
When the patch matches cueloop's checkout capture, the CLI adds exact file
|
|
13
|
+
snapshots for curation. Otherwise curation is unavailable. Give the
|
|
13
14
|
user the returned Thread ID and collect the Message with
|
|
14
15
|
`cueloop session wait <id> --timeout-ms 60000`, repeating while pending.
|
|
15
16
|
|
|
@@ -17,3 +18,8 @@ File notes may explain intent in plain prose; they are context, not reviewer
|
|
|
17
18
|
feedback. If changes are requested, fix each cited line and submit an updated
|
|
18
19
|
diff for review with `cueloop session submit-revision <id> --content-file <patch>`
|
|
19
20
|
on the CLI path.
|
|
21
|
+
|
|
22
|
+
In a JJ checkout, capture the native change with `jj diff --git` and pass
|
|
23
|
+
`--vcs jj` to the CLI create command. Keep the patch exactly as JJ emitted it;
|
|
24
|
+
cueloop can then tie the review to JJ's change ID. In a Git checkout, keep the
|
|
25
|
+
existing `git diff HEAD` and untracked-file capture.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cueloop-pair
|
|
3
|
+
description: Start a live cueloop pairing session where you work through the user's code comments.
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# cueloop pair
|
|
8
|
+
|
|
9
|
+
Start pairing in the current repository. The user stays in control of which code changes.
|
|
10
|
+
|
|
11
|
+
1. Record the pairing start time. Run `cueloop pair --no-tui` and parse the JSON `threadId`. This finds or creates the repo's live workbench Thread. Its daemon watches the checkout through the configured VCS adapter, so Git, JJ, or another configured VCS appears in the Changes editor as it changes.
|
|
12
|
+
2. Read the Thread and remember the current history entry IDs. Start `cueloop session events <threadId> --ready` as a long-running command and wait for its `events.ready` JSON line. The event stream subscribes before it reads the Thread. Read the Thread again after readiness and reconcile any entries added since the first read. This catches activity in the gap before subscription.
|
|
13
|
+
3. Open `cueloop pair <threadId>` in a terminal pane the user can interact with. In a Herdr session, split the current pane with `herdr pane split --pane "$HERDR_PANE_ID" --direction right --ratio 0.72 --cwd "$PWD" --focus`, then send that command to the returned pane with `herdr pane send-text` and `herdr pane send-keys ... enter`. Use the host's terminal pane or tab control when it is not Herdr.
|
|
14
|
+
4. Build a queue from human-authored annotations in history order. Track processed annotation IDs in your context. Handle one item at a time, then reconcile the Thread again before waiting for another event.
|
|
15
|
+
5. Decide whether each comment requests a code change or asks for an answer. Use your language judgment for this first version. For a code change, follow the instruction with the host's edit tools and leave the annotation open. For a question, reply in that annotation's discussion as author `agent`; keep the comment open. Do not add annotations about your own code edits.
|
|
16
|
+
6. After each event, read the Thread and reconcile history. A `message` history entry created after the pairing start time ends pairing, even when its body is empty or the Thread remains pending. Stop the event stream when this happens.
|
|
17
|
+
7. If `session events` exits because the daemon disconnected, restart it with `--ready`. Once ready, read the Thread and reconcile all history entries since the last read before processing more events. The command exits with an error when its connection closes, so it cannot silently leave the agent waiting.
|
|
18
|
+
|
|
19
|
+
If the user leaves several comments while you are editing, finish the current item and then work through the rest in history order. Every human comment is one backlog item, either an edit or a reply.
|
|
20
|
+
|
|
21
|
+
Use `cueloop session get <threadId>` to inspect the Thread and `cueloop session annotate <threadId> --reply-to <annotationId> --author agent --author-name "Agent" --body "..."` to answer a question. Do not mark action comments addressed. The user reviews the edits in the live Changes panel and can add another comment.
|