@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.
- package/apps/agents-server/src/app/agents/[agentName]/api/user-chats/[chatId]/messages/route.ts +4 -11
- package/esm/index.es.js +1353 -277
- package/esm/index.es.js.map +1 -1
- package/esm/scripts/run-codex-prompts/common/resolveAgentSystemMessage.d.ts +6 -0
- package/esm/scripts/run-codex-prompts/main/findUnwrittenPrompts.d.ts +19 -0
- package/esm/scripts/run-codex-prompts/main/runCodexPromptsServer.d.ts +27 -0
- package/esm/scripts/run-codex-prompts/main/runPromptRound.d.ts +2 -1
- package/esm/scripts/run-codex-prompts/server/coderServerHtml.d.ts +9 -0
- package/esm/scripts/run-codex-prompts/server/runCoderHttpServer.d.ts +23 -0
- package/esm/scripts/run-codex-prompts/server/updatePromptSection.d.ts +9 -0
- package/esm/src/cli/cli-commands/coder/find-unwritten.d.ts +10 -0
- package/esm/src/cli/cli-commands/coder/server.d.ts +13 -0
- package/esm/src/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/cli/cli-commands/coder/find-unwritten.ts +58 -0
- package/src/cli/cli-commands/coder/init.ts +4 -1
- package/src/cli/cli-commands/coder/run.ts +26 -11
- package/src/cli/cli-commands/coder/server.ts +239 -0
- package/src/cli/cli-commands/coder.ts +6 -0
- package/src/other/templates/getTemplatesPipelineCollection.ts +825 -1034
- package/src/version.ts +2 -2
- package/src/versions.txt +2 -1
- package/umd/index.umd.js +1355 -279
- package/umd/index.umd.js.map +1 -1
- package/umd/scripts/run-codex-prompts/common/resolveAgentSystemMessage.d.ts +6 -0
- package/umd/scripts/run-codex-prompts/main/findUnwrittenPrompts.d.ts +19 -0
- package/umd/scripts/run-codex-prompts/main/runCodexPromptsServer.d.ts +27 -0
- package/umd/scripts/run-codex-prompts/main/runPromptRound.d.ts +2 -1
- package/umd/scripts/run-codex-prompts/server/coderServerHtml.d.ts +9 -0
- package/umd/scripts/run-codex-prompts/server/runCoderHttpServer.d.ts +23 -0
- package/umd/scripts/run-codex-prompts/server/updatePromptSection.d.ts +9 -0
- package/umd/src/cli/cli-commands/coder/find-unwritten.d.ts +10 -0
- package/umd/src/cli/cli-commands/coder/server.d.ts +13 -0
- package/umd/src/version.d.ts +1 -1
package/apps/agents-server/src/app/agents/[agentName]/api/user-chats/[chatId]/messages/route.ts
CHANGED
|
@@ -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
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
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(
|