@tenux/cli 0.0.14 → 0.0.15
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.
|
@@ -253,6 +253,7 @@ async function handleClaudeQuery(command, supabase) {
|
|
|
253
253
|
proc.stdin.end();
|
|
254
254
|
let seq = 0;
|
|
255
255
|
let capturedSessionId = null;
|
|
256
|
+
const userId = command.user_id;
|
|
256
257
|
let batch = [];
|
|
257
258
|
const batchInterval = 100;
|
|
258
259
|
const flushBatch = async () => {
|
|
@@ -279,6 +280,7 @@ async function handleClaudeQuery(command, supabase) {
|
|
|
279
280
|
}
|
|
280
281
|
batch.push({
|
|
281
282
|
command_id: command.id,
|
|
283
|
+
user_id: userId,
|
|
282
284
|
seq: seq++,
|
|
283
285
|
type: event.type || "assistant",
|
|
284
286
|
data: event
|
|
@@ -286,6 +288,7 @@ async function handleClaudeQuery(command, supabase) {
|
|
|
286
288
|
} catch {
|
|
287
289
|
batch.push({
|
|
288
290
|
command_id: command.id,
|
|
291
|
+
user_id: userId,
|
|
289
292
|
seq: seq++,
|
|
290
293
|
type: "stdout",
|
|
291
294
|
data: { text: line }
|
|
@@ -299,6 +302,7 @@ async function handleClaudeQuery(command, supabase) {
|
|
|
299
302
|
stderrText += text;
|
|
300
303
|
batch.push({
|
|
301
304
|
command_id: command.id,
|
|
305
|
+
user_id: userId,
|
|
302
306
|
seq: seq++,
|
|
303
307
|
type: "stderr",
|
|
304
308
|
data: { text }
|
|
@@ -309,6 +313,7 @@ async function handleClaudeQuery(command, supabase) {
|
|
|
309
313
|
if (buffer.trim()) {
|
|
310
314
|
batch.push({
|
|
311
315
|
command_id: command.id,
|
|
316
|
+
user_id: userId,
|
|
312
317
|
seq: seq++,
|
|
313
318
|
type: "stdout",
|
|
314
319
|
data: { text: buffer }
|
|
@@ -316,6 +321,7 @@ async function handleClaudeQuery(command, supabase) {
|
|
|
316
321
|
}
|
|
317
322
|
batch.push({
|
|
318
323
|
command_id: command.id,
|
|
324
|
+
user_id: userId,
|
|
319
325
|
seq: seq++,
|
|
320
326
|
type: "done",
|
|
321
327
|
data: { exit_code: exitCode }
|
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED