Skip to content

[feat] export the prompt builders from the package index - #35

Merged
Thibaut-Fatus merged 1 commit into
mainfrom
feat/export-prompt-builders
Sep 10, 2026
Merged

Thibaut-Fatus merged 1 commit into
mainfrom
feat/export-prompt-builders

Conversation

@Thibaut-Fatus

Copy link
Copy Markdown
Collaborator

What

Three added lines in packages/benchmark/src/index.ts:

 export * from "./prompts/conversationToMechanismAssessmentPrompt.js";
+export * from "./prompts/conversationToNextMessagePrompt.js";
 export * from "./prompts/promptsFingerprint.js";
+export * from "./prompts/scenarioToFirstUserMessagePrompt.js";
+export * from "./prompts/scenarioToNextUserMessagePrompt.js";

Why

kora-infra's new run export produces a self-contained package for a run, which
includes a prompts/ folder with the full text of every prompt the run used:
the four target system prompts (adult + one per age band) and the two
user-simulator prompts, alongside the two judge prompts.

It renders those by calling the builders against a placeholder scenario. The
two judge builders were already exported from the index; these three were not,
so they are unreachable through the package's export map and the consumer does
not compile.

Purely additive — no signature change, no behaviour change, nothing else in the
file moves. The alternative was reaching past the export map into build/,
which would break the next time the build layout changes.

Note

kora-infra's submodule pointer needs to move to the merged commit once this
lands; its export branch is blocked until then.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NExrgZ5EyiE2Ww9wP9RWMC

The system prompts (conversationToNextMessagePrompt) and the two user-simulator
prompts were reachable only from inside the package. kora-infra's run export
ships the full text of every prompt a run used, so it needs to call them.

Additive: no behaviour change, no signature change.
@Thibaut-Fatus
Thibaut-Fatus merged commit 7146ab4 into main Sep 10, 2026
4 checks passed
@Thibaut-Fatus
Thibaut-Fatus deleted the feat/export-prompt-builders branch September 10, 2026 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant