cueloop 0.1.0-alpha.88 → 0.1.0-alpha.89
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/package.json +5 -5
- package/src/thread-commands.ts +9 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cueloop",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.89",
|
|
4
4
|
"description": "Terminal review surface for coding agents: annotate plans and diffs, return a message, send structured feedback back",
|
|
5
5
|
"homepage": "https://github.com/mmurakaru/cueloop#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"build:binary": "bun build --compile --minify --external cpu-features ./src/main.ts --outfile dist/cueloop"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@cueloop/adapters": "0.1.0-alpha.
|
|
34
|
-
"@cueloop/client": "0.1.0-alpha.
|
|
35
|
-
"@cueloop/daemon": "0.1.0-alpha.
|
|
36
|
-
"@cueloop/schema": "0.1.0-alpha.
|
|
33
|
+
"@cueloop/adapters": "0.1.0-alpha.89",
|
|
34
|
+
"@cueloop/client": "0.1.0-alpha.89",
|
|
35
|
+
"@cueloop/daemon": "0.1.0-alpha.89",
|
|
36
|
+
"@cueloop/schema": "0.1.0-alpha.89",
|
|
37
37
|
"@modelcontextprotocol/server": "2.0.0",
|
|
38
38
|
"@valibot/to-json-schema": "1.4.0",
|
|
39
39
|
"valibot": "^1.5.0"
|
package/src/thread-commands.ts
CHANGED
|
@@ -84,6 +84,13 @@ async function sessionGetCommand({ client, positional }: SessionContext): Promis
|
|
|
84
84
|
return 0;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
+
async function sessionDeleteCommand({ client, positional }: SessionContext): Promise<number> {
|
|
88
|
+
await client.sessionDelete(required(positional[1], "session id"));
|
|
89
|
+
out({});
|
|
90
|
+
|
|
91
|
+
return 0;
|
|
92
|
+
}
|
|
93
|
+
|
|
87
94
|
async function sessionListCommand({ client, flags }: SessionContext): Promise<number> {
|
|
88
95
|
const rawStatus = stringFlag(flags, "status");
|
|
89
96
|
const status = rawStatus ? v.parse(SessionStatusSchema, rawStatus) : undefined;
|
|
@@ -426,6 +433,7 @@ interface SessionVerbHandlers {
|
|
|
426
433
|
const sessionVerbHandlers: SessionVerbHandlers = {
|
|
427
434
|
create: sessionCreate,
|
|
428
435
|
get: sessionGetCommand,
|
|
436
|
+
delete: sessionDeleteCommand,
|
|
429
437
|
list: sessionListCommand,
|
|
430
438
|
wait: sessionWaitCommand,
|
|
431
439
|
annotate: sessionAnnotateCommand,
|
|
@@ -466,7 +474,7 @@ export async function sessionCommand(argv: string[]): Promise<number> {
|
|
|
466
474
|
|
|
467
475
|
if (handler === undefined) {
|
|
468
476
|
console.error(
|
|
469
|
-
"usage: cueloop session <create|get|list|wait|annotate|remove|cut|restore|curate|set-viewed|navigate|branch|switch|label|fork|name-self|events|send-message|bind-harness|pending-deliveries|acknowledge-delivery|submit-revision> [flags]",
|
|
477
|
+
"usage: cueloop session <create|get|delete|list|wait|annotate|remove|cut|restore|curate|set-viewed|navigate|branch|switch|label|fork|name-self|events|send-message|bind-harness|pending-deliveries|acknowledge-delivery|submit-revision> [flags]",
|
|
470
478
|
);
|
|
471
479
|
|
|
472
480
|
return 2;
|