@tea-agent/loop-agent 0.29.1 → 0.29.3

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.
Files changed (42) hide show
  1. package/CHANGELOG.md +36 -16
  2. package/bin/agent-worker.js +0 -0
  3. package/dist/commands/client-recovery.js +2 -10
  4. package/dist/commands/init.js +1 -1
  5. package/dist/executors/dag-pi-executor.js +35 -10
  6. package/dist/executors/pi-executor.js +5 -3
  7. package/dist/executors/pi-playwright-cli-tool.js +9 -14
  8. package/dist/executors/pi-sdk-executor.js +16 -0
  9. package/dist/shared/operator/capabilities.js +9 -9
  10. package/dist/shared/pi-retry-settings.js +23 -0
  11. package/dist/worker/console/chat/pi-runtime.js +167 -41
  12. package/dist/worker/console/chat/routes.js +21 -2
  13. package/dist/worker/console/chat/runtime-context.js +50 -8
  14. package/dist/worker/console/chat/tool-preview.js +90 -0
  15. package/dist/worker/console/chat/turn-process.js +178 -0
  16. package/dist/worker/console/chat/usage.js +144 -16
  17. package/dist/worker/console/night-aux-ticker.js +141 -0
  18. package/dist/worker/console/operation-runner.js +21 -4
  19. package/dist/worker/console/operator-user-error.js +12 -0
  20. package/dist/worker/console/recovery-cta.js +6 -6
  21. package/dist/worker/console/routes.js +61 -0
  22. package/dist/worker/console/server.js +7 -0
  23. package/dist/worker/console/static/assets/index-D9gnJn_l.js +29 -0
  24. package/dist/worker/console/static/assets/index-rajoXwkM.css +1 -0
  25. package/dist/worker/console/static/index.html +2 -2
  26. package/dist/worker/console/static-src/night-prepare-result.js +118 -0
  27. package/dist/worker/scheduler/clock-install/win32-schtasks.js +70 -15
  28. package/dist/workflows/dag/backend-test-writer-completeness.js +98 -14
  29. package/dist/workflows/dag/frontend-test-case-checklist.js +3 -3
  30. package/dist/workflows/dag/init-hybrid.js +21 -12
  31. package/dist/workflows/dag/node-execution.js +41 -2
  32. package/docs/templates/frontend-test-case-checklist.md +1 -1
  33. package/docs/templates/frontend-test-dag.generate-cases.prompt.md +1 -1
  34. package/docs/templates/frontend-test-dag.json +1 -1
  35. package/docs/templates/frontend-test-dag.retrieve-context.prompt.md +1 -1
  36. package/docs/templates/frontend-test-dag.review-cases.prompt.md +1 -1
  37. package/docs/templates/init-managed-agents.md +6 -3
  38. package/package.json +1 -1
  39. package/skills/playwright-cli/SKILL.md +1 -1
  40. package/skills/playwright-cli-case-generator/SKILL.md +1 -1
  41. package/dist/worker/console/static/assets/index-Cwx-ZVEQ.js +0 -29
  42. package/dist/worker/console/static/assets/index-Yyn3ynVv.css +0 -1
@@ -20,6 +20,7 @@ import { probePiReadiness, } from "./pi-readiness.js";
20
20
  import { handleConsoleHealthRequest, handleConsoleOperatorRequest, sendJson, serveConsoleStatic, } from "./routes.js";
21
21
  import { issueBootCapabilityToken } from "./security.js";
22
22
  import { resolveSiblingLoopAgentBin } from "./sibling-controller.js";
23
+ import { NightAuxTicker } from "./night-aux-ticker.js";
23
24
  import { deriveObserveRouteCapabilities } from "../observe/health.js";
24
25
  import { createObserveRouteContext, defaultObserveStaticDir, handleMatchedObserveRoute, matchObserveGetRoute, ROUTES, serveObserveStatic, } from "../observe/routes.js";
25
26
  /** Built static assets live next to the compiled server under dist/worker/console/static. */
@@ -136,6 +137,10 @@ export async function createConsoleServer(options) {
136
137
  allowNonLoopbackAccess: !loopbackBind,
137
138
  skillsDir,
138
139
  };
140
+ const nightAuxTicker = new NightAuxTicker({
141
+ repoRoot,
142
+ client,
143
+ });
139
144
  const routeContext = {
140
145
  repoRoot,
141
146
  staticDir,
@@ -152,6 +157,7 @@ export async function createConsoleServer(options) {
152
157
  events,
153
158
  getReadiness,
154
159
  chat: chatRouteDeps,
160
+ nightAuxTicker,
155
161
  },
156
162
  };
157
163
  return new Promise((resolve, reject) => {
@@ -272,6 +278,7 @@ export async function createConsoleServer(options) {
272
278
  try {
273
279
  chatOperationLinker.dispose();
274
280
  chatRuntime.disposeAll();
281
+ nightAuxTicker.dispose();
275
282
  }
276
283
  catch (error) {
277
284
  // Best-effort: surface but do not block the HTTP close.