@tea-agent/loop-agent 0.34.3 → 0.34.4

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.
@@ -14,6 +14,7 @@ import { InterviewSessionStore } from "./interview/session.js";
14
14
  import { isLoopbackHost } from "./loopback.js";
15
15
  import { ChatSessionStore } from "./chat/session-store.js";
16
16
  import { createChatEventStore, createChatOperationLinker, } from "./chat/chat-event-store.js";
17
+ import { createChatTurnExecutionRegistry } from "./chat/turn-execution-registry.js";
17
18
  import { ConsolePiRuntime } from "./chat/pi-runtime.js";
18
19
  import { handleChatRequest } from "./chat/routes.js";
19
20
  import { createOperationEventStore, } from "./operation-sse.js";
@@ -147,6 +148,7 @@ export async function createConsoleServer(options) {
147
148
  // than silently consume a different process' event namespace.
148
149
  const chatEventEpoch = randomBytes(12).toString("hex");
149
150
  const chatEvents = createChatEventStore({ appData, epoch: chatEventEpoch });
151
+ const chatTurnExecutions = createChatTurnExecutionRegistry();
150
152
  const chatOperationLinker = createChatOperationLinker({
151
153
  chatEvents,
152
154
  operations,
@@ -155,6 +157,7 @@ export async function createConsoleServer(options) {
155
157
  const chatRuntime = new ConsolePiRuntime({
156
158
  cwd: repoRoot,
157
159
  sessionDir: appData.chatSessions,
160
+ resourcePreferencesPath: appData.resourcePreferences,
158
161
  actionContext,
159
162
  });
160
163
  // chatRouteDeps is a plain object literal — it cannot throw. The previous
@@ -165,6 +168,7 @@ export async function createConsoleServer(options) {
165
168
  runtime: chatRuntime,
166
169
  store: chatStore,
167
170
  events: chatEvents,
171
+ turnExecutions: chatTurnExecutions,
168
172
  operationLinker: chatOperationLinker,
169
173
  appData,
170
174
  bootToken,