@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.
- package/AGENTS.md +7 -2
- package/CHANGELOG.md +50 -22
- package/dist/worker/console/app-data.js +2 -0
- package/dist/worker/console/chat/chat-event-store.js +85 -3
- package/dist/worker/console/chat/pi-runtime.js +230 -62
- package/dist/worker/console/chat/resource-preferences-store.js +152 -0
- package/dist/worker/console/chat/routes.js +401 -18
- package/dist/worker/console/chat/turn-execution-registry.js +82 -0
- package/dist/worker/console/dag-execution-receipt.js +14 -1
- package/dist/worker/console/server.js +4 -0
- package/dist/worker/console/static/assets/index-B6Qdbk8V.js +29 -0
- package/dist/worker/console/static/assets/index-Bt0NUxcQ.css +1 -0
- package/dist/worker/console/static/index.html +2 -2
- package/dist/worker/console/static-src/operator-chat/refs.js +24 -0
- package/dist/worker/console/static-src/operator-chat/resource-auto-invocation.js +91 -0
- package/dist/worker/console/static-src/operator-chat/turn-stream-controller.js +690 -0
- package/dist/worker/console/static-src/operator-chat/turn-submission.js +158 -0
- package/dist/worker/console/static-src/operator-chat/useChatStream.js +535 -86
- package/dist/workflows/dag/init-hybrid.js +2 -0
- package/docs/operations/local-development-environment.md +4 -2
- package/docs/templates/branch-merge-report.md +9 -0
- package/package.json +3 -2
- package/dist/worker/console/static/assets/index-BQkhJpV8.css +0 -1
- package/dist/worker/console/static/assets/index-BpuHmlSP.js +0 -29
|
@@ -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,
|