-
Notifications
You must be signed in to change notification settings - Fork 2
agent: @U0AJM7X8FBR Admin - please update the mono/admin repo with a table show #93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| export const NEW_API_BASE_URL = "https://recoup-api.vercel.app"; | ||
| export const RECOUP_API_KEY = process.env.RECOUP_API_KEY; | ||
| export const CODING_AGENT_ACCOUNT_ID = "04e3aba9-c130-4fb8-8b92-34e95d43e66b"; | ||
| export const OPENCLAW_DEFAULT_MODEL = "vercel-ai-gateway/anthropic/claude-sonnet-4.6"; | ||
| export const OPENCLAW_DEFAULT_MODEL = "vercel-ai-gateway/anthropic/claude-sonnet-4.6"; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,16 +1,20 @@ | ||
| /** | ||
| * Fetches audience context (audience.md) from GitHub. | ||
| * Returns placeholder if not found. | ||
| * | ||
| * @param githubRepo | ||
| * @param artistSlug | ||
| * @param fetchFile | ||
| */ | ||
| export async function fetchAudienceContext( | ||
| githubRepo: string, | ||
| artistSlug: string, | ||
| fetchFile: (repo: string, path: string) => Promise<Buffer | null>, | ||
| ): Promise<string> { | ||
| const buffer = await fetchFile( | ||
| githubRepo, | ||
| `artists/${artistSlug}/context/audience.md`, | ||
| ); | ||
| const buffer = await fetchFile(githubRepo, `artists/${artistSlug}/context/audience.md`); | ||
| if (!buffer) return "(no audience context available)"; | ||
| return buffer.toString("utf-8").replace(/^---[\s\S]*?---\s*/, "").trim(); | ||
| return buffer | ||
| .toString("utf-8") | ||
| .replace(/^---[\s\S]*?---\s*/, "") | ||
| .trim(); | ||
| } |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -13,9 +13,12 @@ import { DEFAULT_PIPELINE_CONFIG } from "./defaultPipelineConfig"; | |||||||||||||||||||||
| * The prompt tells the model to replace the person in the reference scene | ||||||||||||||||||||||
| * with the person from the face-guide headshot. | ||||||||||||||||||||||
| * | ||||||||||||||||||||||
| * @param faceGuideUrl.faceGuideUrl | ||||||||||||||||||||||
| * @param faceGuideUrl - fal storage URL of the artist's face-guide (headshot) | ||||||||||||||||||||||
| * @param referenceImagePath - local path to a template reference image (or null) | ||||||||||||||||||||||
| * @param prompt - Scene/style prompt that instructs the face swap | ||||||||||||||||||||||
| * @param faceGuideUrl.referenceImagePath | ||||||||||||||||||||||
| * @param faceGuideUrl.prompt | ||||||||||||||||||||||
|
Comment on lines
+16
to
+21
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Malformed JSDoc parameter annotations. The JSDoc structure is incorrect. 📝 Proposed fix for JSDoc-* `@param` faceGuideUrl.faceGuideUrl
-* `@param` faceGuideUrl - fal storage URL of the artist's face-guide (headshot)
-* `@param` referenceImagePath - local path to a template reference image (or null)
-* `@param` prompt - Scene/style prompt that instructs the face swap
-* `@param` faceGuideUrl.referenceImagePath
-* `@param` faceGuideUrl.prompt
+* `@param` options - The generation options
+* `@param` options.faceGuideUrl - fal storage URL of the artist's face-guide (headshot)
+* `@param` options.referenceImagePath - local path to a template reference image (or null)
+* `@param` options.prompt - Scene/style prompt that instructs the face swap📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||
| * @returns URL of the generated image | ||||||||||||||||||||||
| */ | ||||||||||||||||||||||
| export async function generateContentImage({ | ||||||||||||||||||||||
|
|
@@ -75,7 +78,11 @@ export async function generateContentImage({ | |||||||||||||||||||||
| return imageUrl; | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| /** Extracts a media URL from various fal.ai response shapes. */ | ||||||||||||||||||||||
| /** | ||||||||||||||||||||||
| * Extracts a media URL from various fal.ai response shapes. | ||||||||||||||||||||||
| * | ||||||||||||||||||||||
| * @param data | ||||||||||||||||||||||
| */ | ||||||||||||||||||||||
| function extractFalUrl(data: Record<string, unknown>): string | undefined { | ||||||||||||||||||||||
| for (const key of ["image", "video"]) { | ||||||||||||||||||||||
| if (data[key] && typeof data[key] === "object") { | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Validate parsed clip payload with Zod before returning.
JSON.parse(... ) as SongClip[]is a blind cast on external/LLM output. Add runtime validation and fallback on invalid shape to avoid propagating malformed clips.Proposed fix
As per coding guidelines, "Use Zod for schema validation".
📝 Committable suggestion
🤖 Prompt for AI Agents