mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-09-07 08:26:15 +00:00
fix(docs-test): format quickstart-v2 for Biome CI
Co-authored-by: Dhravya Shah <dhravya@supermemory.com>
This commit is contained in:
parent
83c6fe4dbe
commit
5411fcebc1
1 changed files with 17 additions and 6 deletions
|
|
@ -125,11 +125,15 @@ offsite city are common picks. Tokyo offsites often inspire travel-themed gifts.
|
|||
if (r.context) {
|
||||
console.log(
|
||||
" context parents:",
|
||||
(r.context.parents ?? []).map((p: any) => p.memory?.slice?.(0, 80) ?? p),
|
||||
(r.context.parents ?? []).map(
|
||||
(p: any) => p.memory?.slice?.(0, 80) ?? p,
|
||||
),
|
||||
)
|
||||
console.log(
|
||||
" context children:",
|
||||
(r.context.children ?? []).map((c: any) => c.memory?.slice?.(0, 80) ?? c),
|
||||
(r.context.children ?? []).map(
|
||||
(c: any) => c.memory?.slice?.(0, 80) ?? c,
|
||||
),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
@ -183,7 +187,8 @@ offsite city are common picks. Tokyo offsites often inspire travel-themed gifts.
|
|||
"## Profile (dynamic)",
|
||||
...p2.dynamic,
|
||||
"## Related memories",
|
||||
...(sr2?.results?.map((m: any) => m.memory ?? m.content).filter(Boolean) ?? []),
|
||||
...(sr2?.results?.map((m: any) => m.memory ?? m.content).filter(Boolean) ??
|
||||
[]),
|
||||
"## Docs",
|
||||
...docBits.map((t: string) => t.slice(0, 200)),
|
||||
].join("\n")
|
||||
|
|
@ -218,7 +223,8 @@ offsite city are common picks. Tokyo offsites often inspire travel-themed gifts.
|
|||
}
|
||||
console.log(checks)
|
||||
|
||||
const hardFail = !checks.convQueued || !checks.docQueued || !checks.contextNonEmpty
|
||||
const hardFail =
|
||||
!checks.convQueued || !checks.docQueued || !checks.contextNonEmpty
|
||||
const softIssues = Object.entries(checks)
|
||||
.filter(([k, v]) => !v && k !== "relatedPresent")
|
||||
.map(([k]) => k)
|
||||
|
|
@ -228,9 +234,14 @@ offsite city are common picks. Tokyo offsites often inspire travel-themed gifts.
|
|||
process.exit(1)
|
||||
}
|
||||
if (softIssues.length) {
|
||||
console.warn("\n⚠ Soft issues (flow ran but weak results):", softIssues.join(", "))
|
||||
console.warn(
|
||||
"\n⚠ Soft issues (flow ran but weak results):",
|
||||
softIssues.join(", "),
|
||||
)
|
||||
if (!checks.relatedPresent) {
|
||||
console.warn(" (relatedMemories edges may need more time / different query)")
|
||||
console.warn(
|
||||
" (relatedMemories edges may need more time / different query)",
|
||||
)
|
||||
}
|
||||
process.exit(0)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue