@rubytech/create-realagent 1.0.736 → 1.0.737

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rubytech/create-realagent",
3
- "version": "1.0.736",
3
+ "version": "1.0.737",
4
4
  "description": "Install Real Agent — Built for agents. By agents.",
5
5
  "bin": {
6
6
  "create-realagent": "./dist/index.js"
@@ -8271,10 +8271,13 @@ app11.post("/", requireAdminSession, async (c) => {
8271
8271
  const sseConvId = getConversationIdForSession(session_key);
8272
8272
  const sseLogStream = sseConvId ? agentLogStream("sse-events", account.accountDir, sseConvId) : preConversationLogStream("sse-events", account.accountDir);
8273
8273
  const sk = sseConvId?.slice(0, 8) ?? session_key.slice(0, 8);
8274
- const teeStreamLogKey = sseConvId ?? preflushStreamLogKey(session_key);
8275
- const teeStreamLogPath = resolve12(account.accountDir, "logs", `claude-agent-stream-${teeStreamLogKey}.log`);
8274
+ function resolveTeeStreamLogPath() {
8275
+ const liveConvId = getConversationIdForSession(session_key);
8276
+ const key = liveConvId ?? preflushStreamLogKey(session_key);
8277
+ return resolve12(account.accountDir, "logs", `claude-agent-stream-${key}.log`);
8278
+ }
8276
8279
  try {
8277
- appendFileSync4(teeStreamLogPath, `[${(/* @__PURE__ */ new Date()).toISOString()}] [chat-route-version=task606-incoming-close] sessionKey=${session_key.slice(0, 12)}\u2026
8280
+ appendFileSync4(resolveTeeStreamLogPath(), `[${(/* @__PURE__ */ new Date()).toISOString()}] [chat-route-version=task606-tee-path-resolve] sessionKey=${session_key.slice(0, 12)}\u2026
8278
8281
  `);
8279
8282
  } catch {
8280
8283
  }
@@ -8283,7 +8286,7 @@ app11.post("/", requireAdminSession, async (c) => {
8283
8286
  incoming.on("close", () => {
8284
8287
  const tsClose = (/* @__PURE__ */ new Date()).toISOString();
8285
8288
  try {
8286
- appendFileSync4(teeStreamLogPath, `[${tsClose}] [incoming-close] sessionKey=${session_key.slice(0, 12)}\u2026 complete=${incoming.complete}
8289
+ appendFileSync4(resolveTeeStreamLogPath(), `[${tsClose}] [incoming-close] sessionKey=${session_key.slice(0, 12)}\u2026 complete=${incoming.complete}
8287
8290
  `);
8288
8291
  } catch {
8289
8292
  }
@@ -8291,7 +8294,7 @@ app11.post("/", requireAdminSession, async (c) => {
8291
8294
  console.error(`[${tsClose}] [incoming-close] DISCONNECT sessionKey=${session_key.slice(0, 12)}\u2026`);
8292
8295
  interruptClient(session_key).catch((err) => {
8293
8296
  try {
8294
- appendFileSync4(teeStreamLogPath, `[${(/* @__PURE__ */ new Date()).toISOString()}] [incoming-close] interrupt-failed: ${err instanceof Error ? err.message : String(err)}
8297
+ appendFileSync4(resolveTeeStreamLogPath(), `[${(/* @__PURE__ */ new Date()).toISOString()}] [incoming-close] interrupt-failed: ${err instanceof Error ? err.message : String(err)}
8295
8298
  `);
8296
8299
  } catch {
8297
8300
  }
@@ -8300,7 +8303,7 @@ app11.post("/", requireAdminSession, async (c) => {
8300
8303
  });
8301
8304
  } else {
8302
8305
  try {
8303
- appendFileSync4(teeStreamLogPath, `[${(/* @__PURE__ */ new Date()).toISOString()}] [incoming-close] UNAVAILABLE \u2014 c.env.incoming is not an EventEmitter
8306
+ appendFileSync4(resolveTeeStreamLogPath(), `[${(/* @__PURE__ */ new Date()).toISOString()}] [incoming-close] UNAVAILABLE \u2014 c.env.incoming is not an EventEmitter
8304
8307
  `);
8305
8308
  } catch {
8306
8309
  }
@@ -8312,7 +8315,7 @@ app11.post("/", requireAdminSession, async (c) => {
8312
8315
  } catch {
8313
8316
  }
8314
8317
  try {
8315
- appendFileSync4(teeStreamLogPath, line);
8318
+ appendFileSync4(resolveTeeStreamLogPath(), line);
8316
8319
  } catch {
8317
8320
  }
8318
8321
  return true;