@threadbase-sh/streamer 1.69.1 → 1.69.2
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/dist/api/handlers/sessions.handlers.d.ts.map +1 -1
- package/dist/cli.cjs +15 -0
- package/dist/cli.cjs.map +1 -1
- package/dist/index.cjs +15 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -10482,6 +10482,21 @@ var SessionHandlers = class {
|
|
|
10482
10482
|
json(res, 400, { error: "Missing input field" });
|
|
10483
10483
|
return;
|
|
10484
10484
|
}
|
|
10485
|
+
const openPrompt = this.pendingPermission.has(sessionId) ? "permission" : this.pendingQuestions.has(sessionId) ? "question" : null;
|
|
10486
|
+
if (openPrompt) {
|
|
10487
|
+
this.log.info(`[input.prompt_pending] ${sessionId.slice(0, 8)} kind=${openPrompt}`, {
|
|
10488
|
+
event: "input.prompt_pending",
|
|
10489
|
+
sessionId,
|
|
10490
|
+
promptKind: openPrompt
|
|
10491
|
+
});
|
|
10492
|
+
json(res, 409, {
|
|
10493
|
+
ok: false,
|
|
10494
|
+
reason: "prompt_pending",
|
|
10495
|
+
promptKind: openPrompt,
|
|
10496
|
+
error: "A prompt is waiting for an answer; answer or dismiss it before sending text"
|
|
10497
|
+
});
|
|
10498
|
+
return;
|
|
10499
|
+
}
|
|
10485
10500
|
try {
|
|
10486
10501
|
const promptCount = this.ptyManager.sendInput(sessionId, input);
|
|
10487
10502
|
this.sessionStore.updateManaged(sessionId, { promptCount });
|