chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:32:57 +08:00
commit cd420f9332
4811 changed files with 884702 additions and 0 deletions
@@ -0,0 +1,7 @@
// `source: "code"` is reserved for the deploy path; no other caller may write
// it. Normalize anything that isn't a legitimate caller-supplied value to
// "dashboard". Dependency-free so the rule can be unit-tested directly; it
// backs the service-layer check (the route layer also constrains `source`).
export function normalizePromptOverrideSource(source: string | undefined | null): string {
return source && source !== "code" ? source : "dashboard";
}