Files
loki/scripts/preview/knowledge-map.fixture.ts
Cato 85192684b9 feat(memory): explore project connections and export agent handoffs (#1735)
* feat(memory): explore project connections and export portable agent handoffs

* fix(memory): use the last report when development log dates tie
2026-11-15 17:00:52 +01:00

150 lines
3.6 KiB
TypeScript

import type { KnowledgeMap } from "../../src/lib/knowledge-map/model";
/** Synthetic records exercise the renderer; these are not portfolio claims. */
const at = "2026-11-15T12:00:00.000Z";
export const MAP_FIXTURE: KnowledgeMap = {
version: 1,
visibility: "private",
generatedAt: at,
notices: [],
nodes: [
{
id: "project:atlas",
name: "Atlas",
kind: "project",
description: "A place to turn scattered ideas into a clear next step.",
href: "/projects/11111111-1111-4111-8111-111111111111",
source: "Project profile",
updatedAt: at,
work: {
date: "2026-11-15",
done: "Connected project records.",
next: "Review the first guided project walkthrough with a customer.",
tests: "Navigation checks passed.",
},
},
{
id: "project:canvas",
name: "Canvas",
kind: "project",
description: "A creative workspace for teams.",
href: "/projects",
source: "Project profile",
updatedAt: at,
},
{
id: "package:search",
name: "@example/search",
kind: "package",
description: "Shared discovery tools.",
href: "/packages",
source: "Package scan",
updatedAt: at,
},
{
id: "package:chat",
name: "@example/chat",
kind: "package",
description: "A shared conversation interface.",
href: "/packages",
source: "Package scan",
updatedAt: at,
},
{
id: "goal:launch",
name: "First paying customer",
kind: "goal",
description: "Validate that the workflow saves time.",
href: "/goals",
source: "Active goal",
updatedAt: at,
},
{
id: "entity:research",
name: "Customer research",
kind: "concept",
description: "Observed needs and interview notes.",
source: "Remembered entity",
updatedAt: at,
},
],
edges: [
{
id: "a",
from: "project:atlas",
to: "package:search",
label: "built with",
source: "Package scan",
observedAt: at,
detail: "1.2.0",
},
{
id: "b",
from: "project:canvas",
to: "package:search",
label: "built with",
source: "Package scan",
observedAt: at,
detail: "1.1.0",
},
{
id: "c",
from: "project:atlas",
to: "package:chat",
label: "built with",
source: "Package scan",
observedAt: at,
},
{
id: "d",
from: "project:atlas",
to: "goal:launch",
label: "working toward",
source: "Goal project link",
observedAt: at,
},
{
id: "e",
from: "project:atlas",
to: "project:canvas",
label: "integrates with",
source: "Recorded relationship",
observedAt: at,
},
{
id: "f",
from: "entity:research",
to: "project:atlas",
label: "informs",
source: "Recorded relationship",
observedAt: at,
},
],
};
/** Busy workspace: source grows while the visible neighborhood remains bounded. */
export const BUSY_MAP: KnowledgeMap = {
...MAP_FIXTURE,
nodes: [
...MAP_FIXTURE.nodes,
...Array.from({ length: 494 }, (_, i) => ({
id: `project:fixture-${i}`,
name: `Example project ${i}`,
kind: "project",
description: "Synthetic scale fixture",
source: "Project profile",
updatedAt: at,
})),
],
edges: [
...MAP_FIXTURE.edges,
...Array.from({ length: 494 }, (_, i) => ({
id: `fixture-edge-${i}`,
from: "project:atlas",
to: `project:fixture-${i}`,
label: "integrates with",
source: "Recorded relationship",
observedAt: at,
})),
],
};