@dmsdc-ai/aigentry-telepty 0.1.34 → 0.1.35
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/daemon.js +4 -0
- package/package.json +1 -1
package/daemon.js
CHANGED
|
@@ -608,6 +608,10 @@ app.post('/api/sessions/:id/inject', (req, res) => {
|
|
|
608
608
|
if (from && !prompt.startsWith('[from:')) {
|
|
609
609
|
finalPrompt = `[from: ${from}] [reply-to: ${reply_to}] ${prompt}`;
|
|
610
610
|
}
|
|
611
|
+
// Append reply guide when reply_to is set (self-contained reply instructions)
|
|
612
|
+
if (reply_to && reply_to !== id) {
|
|
613
|
+
finalPrompt += `\n\n---\n[reply-to: ${reply_to}] 위 세션에 회신이 필요합니다. 답변 시 아래 명령을 실행하세요:\ntelepty inject --from ${id} ${reply_to} "답변 내용"\n---`;
|
|
614
|
+
}
|
|
611
615
|
const inject_id = crypto.randomUUID();
|
|
612
616
|
try {
|
|
613
617
|
// Always inject text WITHOUT \r first, then send \r separately after delay
|