Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/core/guide-viewer-manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
import type { GuideViewerAssets } from "./guide-format";

export const GUIDE_VIEWER_MANIFEST: Omit<GuideViewerAssets, "baseUrl"> = {
js: "viewer.CCxlcIuw.js",
js: "viewer.nDh94Q9e.js",
css: "viewer.CnPJebib.css",
jsIntegrity: "sha384-TOvoE91kzAiLnFDdHEXT8IS8R4k/1pW1v3n3eCle7L6625BXp/XICRAYQkuoYiFg",
jsIntegrity: "sha384-fD48bkI8qvB/QjpliYetxj7FhuikIMCs+uQPGsowBM5gycLfke7OCbWQymsItlLK",
cssIntegrity: "sha384-dUTTm5EHtTlokz2EF7LWKAAPDxY3zVboluRdRiXZxvpaq1mhVXV51JRV0OR9HRoL",
langs: {
"astro": "chunks/astro.BykyiR6i.js",
Expand Down
17 changes: 16 additions & 1 deletion packages/guide-viewer/GuideViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,21 @@ export interface GuideViewerProps<P extends object> {
className?: string;
}

/**
* Engines an agent-authored guide names in `generator.engine` (the harness the
* agent ran in), beyond the in-app job engines `GUIDE_ENGINE_LABEL` knows.
* Anything unlisted renders as written.
*/
const AUTHORED_ENGINE_LABEL: Record<string, string> = {
'claude-code': 'Claude Code',
'codex-cli': 'Codex CLI',
'gemini-cli': 'Gemini CLI',
'copilot-cli': 'Copilot CLI',
'kiro-cli': 'Kiro CLI',
amp: 'Amp',
droid: 'Droid',
};

/**
* Human label for the guide's generator, mirroring the in-app "generated by …"
* wording: the engine's display name plus the model as recorded, when the
Expand All @@ -36,7 +51,7 @@ export interface GuideViewerProps<P extends object> {
*/
function engineLabel(engine: string | undefined, model: string | undefined): string | undefined {
if (!engine) return model || undefined;
const label = (GUIDE_ENGINE_LABEL as Record<string, string>)[engine] ?? engine;
const label = (GUIDE_ENGINE_LABEL as Record<string, string>)[engine] ?? AUTHORED_ENGINE_LABEL[engine] ?? engine;
return model ? `${label} · ${model}` : label;
}

Expand Down