@promptbook/cli 0.112.0-121 → 0.112.0-123

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 (34) hide show
  1. package/apps/agents-server/src/app/agents/[agentName]/api/user-chats/[chatId]/messages/route.ts +4 -11
  2. package/esm/index.es.js +1353 -277
  3. package/esm/index.es.js.map +1 -1
  4. package/esm/scripts/run-codex-prompts/common/resolveAgentSystemMessage.d.ts +6 -0
  5. package/esm/scripts/run-codex-prompts/main/findUnwrittenPrompts.d.ts +19 -0
  6. package/esm/scripts/run-codex-prompts/main/runCodexPromptsServer.d.ts +27 -0
  7. package/esm/scripts/run-codex-prompts/main/runPromptRound.d.ts +2 -1
  8. package/esm/scripts/run-codex-prompts/server/coderServerHtml.d.ts +9 -0
  9. package/esm/scripts/run-codex-prompts/server/runCoderHttpServer.d.ts +23 -0
  10. package/esm/scripts/run-codex-prompts/server/updatePromptSection.d.ts +9 -0
  11. package/esm/src/cli/cli-commands/coder/find-unwritten.d.ts +10 -0
  12. package/esm/src/cli/cli-commands/coder/server.d.ts +13 -0
  13. package/esm/src/version.d.ts +1 -1
  14. package/package.json +1 -1
  15. package/src/cli/cli-commands/coder/find-unwritten.ts +58 -0
  16. package/src/cli/cli-commands/coder/init.ts +4 -1
  17. package/src/cli/cli-commands/coder/run.ts +26 -11
  18. package/src/cli/cli-commands/coder/server.ts +239 -0
  19. package/src/cli/cli-commands/coder.ts +6 -0
  20. package/src/other/templates/getTemplatesPipelineCollection.ts +825 -1034
  21. package/src/version.ts +2 -2
  22. package/src/versions.txt +2 -1
  23. package/umd/index.umd.js +1355 -279
  24. package/umd/index.umd.js.map +1 -1
  25. package/umd/scripts/run-codex-prompts/common/resolveAgentSystemMessage.d.ts +6 -0
  26. package/umd/scripts/run-codex-prompts/main/findUnwrittenPrompts.d.ts +19 -0
  27. package/umd/scripts/run-codex-prompts/main/runCodexPromptsServer.d.ts +27 -0
  28. package/umd/scripts/run-codex-prompts/main/runPromptRound.d.ts +2 -1
  29. package/umd/scripts/run-codex-prompts/server/coderServerHtml.d.ts +9 -0
  30. package/umd/scripts/run-codex-prompts/server/runCoderHttpServer.d.ts +23 -0
  31. package/umd/scripts/run-codex-prompts/server/updatePromptSection.d.ts +9 -0
  32. package/umd/src/cli/cli-commands/coder/find-unwritten.d.ts +10 -0
  33. package/umd/src/cli/cli-commands/coder/server.d.ts +13 -0
  34. package/umd/src/version.d.ts +1 -1
@@ -12,7 +12,6 @@ import {
12
12
  getUserChatJobByClientMessageId,
13
13
  isFrozenUserChatSource,
14
14
  resolveUserChatReplyReference,
15
- runImmediateUserChatAnswer,
16
15
  triggerUserChatJobWorker,
17
16
  } from '@/src/utils/userChat';
18
17
  import { UserChatReplyValidationError } from '@/src/utils/userChat/UserChatReplyValidationError';
@@ -171,16 +170,10 @@ export async function POST(
171
170
 
172
171
  after(() => {
173
172
  const origin = new URL(request.url).origin;
174
- return Promise.all([
175
- triggerUserChatJobWorker({
176
- origin,
177
- preferredJobId: enqueuedTurn.job.id,
178
- }).catch((error) => console.error('[user-chat] Failed to trigger durable worker', error)),
179
- runImmediateUserChatAnswer(enqueuedTurn.job, {
180
- agentSource: resolvedAgentContext.resolvedAgentSource,
181
- resolvedAgentName: resolvedAgentContext.resolvedAgentName,
182
- }).catch((error) => console.error('[user-chat] Failed to start immediate chat answer', error)),
183
- ]).then(() => undefined);
173
+ return triggerUserChatJobWorker({
174
+ origin,
175
+ preferredJobId: enqueuedTurn.job.id,
176
+ }).catch((error) => console.error('[user-chat] Failed to trigger durable worker', error));
184
177
  });
185
178
 
186
179
  return NextResponse.json(