@celljs/ta-host 4.11.0 → 4.12.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.
|
@@ -31,6 +31,7 @@ export declare class TaServerImpl implements TaServer {
|
|
|
31
31
|
prompt(sessionId: string, input: TaPromptInput): Promise<TaPromptReceipt>;
|
|
32
32
|
steer(sessionId: string, input: TaPromptInput): Promise<TaPromptReceipt>;
|
|
33
33
|
followUp(sessionId: string, input: TaPromptInput): Promise<TaPromptReceipt>;
|
|
34
|
+
/** Logs how long the run took to end here: with the times the box keeps (stop.times of @celljs/ta-web), where a slow stop went. */
|
|
34
35
|
abort(sessionId: string): Promise<void>;
|
|
35
36
|
clearQueue(sessionId: string): Promise<TaCommandResult<'clear_queue'>>;
|
|
36
37
|
removeQueued(sessionId: string, kind: 'steering' | 'followUp', index: number): Promise<boolean>;
|
|
@@ -109,8 +109,11 @@ let TaServerImpl = class TaServerImpl {
|
|
|
109
109
|
followUp(sessionId, input) {
|
|
110
110
|
return this.on(sessionId, session => session.followUp(input));
|
|
111
111
|
}
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
/** Logs how long the run took to end here: with the times the box keeps (stop.times of @celljs/ta-web), where a slow stop went. */
|
|
113
|
+
async abort(sessionId) {
|
|
114
|
+
const start = Date.now();
|
|
115
|
+
await this.on(sessionId, ({ pi }) => pi.abort());
|
|
116
|
+
console.log(`[${new Date().toISOString()}] ta serve: stopped ${sessionId.slice(0, 8)} in ${Date.now() - start} ms`);
|
|
114
117
|
}
|
|
115
118
|
clearQueue(sessionId) {
|
|
116
119
|
return this.on(sessionId, ({ pi }) => pi.clearQueue());
|
|
@@ -31,6 +31,7 @@ export declare class TaServerImpl implements TaServer {
|
|
|
31
31
|
prompt(sessionId: string, input: TaPromptInput): Promise<TaPromptReceipt>;
|
|
32
32
|
steer(sessionId: string, input: TaPromptInput): Promise<TaPromptReceipt>;
|
|
33
33
|
followUp(sessionId: string, input: TaPromptInput): Promise<TaPromptReceipt>;
|
|
34
|
+
/** Logs how long the run took to end here: with the times the box keeps (stop.times of @celljs/ta-web), where a slow stop went. */
|
|
34
35
|
abort(sessionId: string): Promise<void>;
|
|
35
36
|
clearQueue(sessionId: string): Promise<TaCommandResult<'clear_queue'>>;
|
|
36
37
|
removeQueued(sessionId: string, kind: 'steering' | 'followUp', index: number): Promise<boolean>;
|
|
@@ -112,8 +112,11 @@ let TaServerImpl = class TaServerImpl {
|
|
|
112
112
|
followUp(sessionId, input) {
|
|
113
113
|
return this.on(sessionId, session => session.followUp(input));
|
|
114
114
|
}
|
|
115
|
-
|
|
116
|
-
|
|
115
|
+
/** Logs how long the run took to end here: with the times the box keeps (stop.times of @celljs/ta-web), where a slow stop went. */
|
|
116
|
+
async abort(sessionId) {
|
|
117
|
+
const start = Date.now();
|
|
118
|
+
await this.on(sessionId, ({ pi }) => pi.abort());
|
|
119
|
+
console.log(`[${new Date().toISOString()}] ta serve: stopped ${sessionId.slice(0, 8)} in ${Date.now() - start} ms`);
|
|
117
120
|
}
|
|
118
121
|
clearQueue(sessionId) {
|
|
119
122
|
return this.on(sessionId, ({ pi }) => pi.clearQueue());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-host",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.12.0",
|
|
4
4
|
"description": "ta serve: pi sessions for many clients over WebSocket",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cell-component"
|
|
@@ -34,15 +34,15 @@
|
|
|
34
34
|
"watch": "tsc -b -w --preserveWatchOutput"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@celljs/ai-agent": "4.
|
|
38
|
-
"@celljs/ai-coding-agent": "4.
|
|
39
|
-
"@celljs/core": "4.
|
|
40
|
-
"@celljs/rpc": "4.
|
|
41
|
-
"@celljs/ta-exec": "4.
|
|
42
|
-
"@celljs/ta-harness": "4.
|
|
43
|
-
"@celljs/ta-protocol": "4.
|
|
44
|
-
"@celljs/ta-relay": "4.
|
|
45
|
-
"@celljs/web": "4.
|
|
37
|
+
"@celljs/ai-agent": "4.12.0",
|
|
38
|
+
"@celljs/ai-coding-agent": "4.12.0",
|
|
39
|
+
"@celljs/core": "4.12.0",
|
|
40
|
+
"@celljs/rpc": "4.12.0",
|
|
41
|
+
"@celljs/ta-exec": "4.12.0",
|
|
42
|
+
"@celljs/ta-harness": "4.12.0",
|
|
43
|
+
"@celljs/ta-protocol": "4.12.0",
|
|
44
|
+
"@celljs/ta-relay": "4.12.0",
|
|
45
|
+
"@celljs/web": "4.12.0",
|
|
46
46
|
"@earendil-works/pi-coding-agent": "^1.5.2"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|