@anchrd/intel-ui 0.8.8 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/README.md +2 -2
  2. package/package.json +5 -2
  3. package/src/agent/agent-avatar/agent-avatar.tsx +34 -0
  4. package/src/agent/agent-calendar/agent-calendar.tsx +79 -0
  5. package/src/agent/agent-chat/agent-chat.tsx +116 -0
  6. package/src/agent/agent-cron/agent-cron.ts +132 -0
  7. package/src/agent/agent-definition/agent-definition.ts +64 -0
  8. package/src/agent/agent-entry-title/agent-entry-title.ts +29 -0
  9. package/src/agent/agent-log/agent-log.tsx +159 -0
  10. package/src/agent/agent-models/agent-models.ts +63 -0
  11. package/src/agent/agent-profile/agent-profile.tsx +547 -0
  12. package/src/agent/agent-state/agent-state.ts +48 -0
  13. package/src/agent/agent.tsx +361 -0
  14. package/src/app/app-sidebar/app-sidebar.tsx +2 -2
  15. package/src/app/app-tree/app-tree.tsx +151 -23
  16. package/src/app/app.tsx +2 -2
  17. package/src/app/header-search/header-search.tsx +16 -16
  18. package/src/app/tree-move/tree-move.tsx +10 -10
  19. package/src/archive/archive.tsx +8 -8
  20. package/src/components/ui/avatar.tsx +39 -0
  21. package/src/components/ui/select.tsx +163 -0
  22. package/src/components/ui/tabs.tsx +52 -0
  23. package/src/data/agent-runtime/agent-runtime.ts +93 -0
  24. package/src/data/intel-data-provider/intel-data-provider.ts +201 -120
  25. package/src/data/intel-data-provider/intel-data-provider.types.ts +112 -54
  26. package/src/entry-picker/entry-picker.tsx +53 -17
  27. package/src/flow-runs/flow-runs.tsx +1 -1
  28. package/src/flows/flows.tsx +20 -20
  29. package/src/folder-contents/folder-contents.tsx +7 -7
  30. package/src/graph-pane/graph-pane.tsx +1 -1
  31. package/src/hooks/use-capabilities.ts +22 -0
  32. package/src/i18n/en.json +147 -64
  33. package/src/kind-icon.ts +5 -2
  34. package/src/{knowledge-editor/knowledge-editor.tsx → node-editor/node-editor.tsx} +20 -20
  35. package/src/{knowledge-graph → node-graph}/graph-notice.tsx +1 -1
  36. package/src/{knowledge-graph/knowledge-graph.tsx → node-graph/node-graph.tsx} +4 -4
  37. package/src/{knowledge-table/knowledge-table.tsx → node-table/node-table.tsx} +14 -14
  38. package/src/{knowledge/knowledge.tsx → nodes/nodes.tsx} +47 -29
  39. package/src/resource-menu/resource-menu.tsx +105 -62
  40. package/src/router/router.tsx +5 -5
  41. package/src/title-row/title-row.tsx +20 -6
  42. package/vite.config.ts +4 -0
  43. /package/src/{knowledge-graph/knowledge-graph.ts → node-graph/node-graph.ts} +0 -0
@@ -13,13 +13,13 @@ const rootRoute = createRootRouteWithContext<RouterContext>()({ component: App }
13
13
  const redirectRoute = createRoute({
14
14
  getParentRoute: () => rootRoute,
15
15
  path: "/",
16
- component: () => <Navigate to="/knowledge" replace />,
16
+ component: () => <Navigate to="/nodes" replace />,
17
17
  });
18
- const knowledgeRoute = createRoute({
18
+ const nodesRoute = createRoute({
19
19
  getParentRoute: () => rootRoute,
20
- path: "/knowledge",
20
+ path: "/nodes",
21
21
  validateSearch: selectionSearch,
22
- component: lazyRouteComponent(() => import("@/knowledge/knowledge.tsx"), "Knowledge"),
22
+ component: lazyRouteComponent(() => import("@/nodes/nodes.tsx"), "Nodes"),
23
23
  });
24
24
  const flowsRoute = createRoute({
25
25
  getParentRoute: () => rootRoute,
@@ -41,7 +41,7 @@ const toolsRoute = createRoute({
41
41
  });
42
42
  const routeTree = rootRoute.addChildren([
43
43
  redirectRoute,
44
- knowledgeRoute,
44
+ nodesRoute,
45
45
  flowsRoute,
46
46
  toolsRoute,
47
47
  archiveRoute,
@@ -20,21 +20,35 @@ export function TitleRow({
20
20
  title,
21
21
  description,
22
22
  target,
23
+ leading,
24
+ divider = true,
23
25
  children,
24
26
  }: {
25
27
  title: string;
26
28
  description?: string | null;
27
29
  target: ResourceTarget;
30
+ // ⚠️ A picture before the name, for the one kind that has a face: an agent's initials (#143). A
31
+ // prop rather than another slot because it must sit BEFORE the title, and a portal can only
32
+ // append — the same limitation that gave the shell two boxes instead of one list (#56).
33
+ leading?: React.ReactNode;
34
+ // Off for the one kind whose next line is its own tab bar: two rules a few pixels apart read as
35
+ // clutter, so the agent page keeps only the tab bar's (#204).
36
+ divider?: boolean;
28
37
  children?: React.ReactNode;
29
38
  }) {
30
39
  return (
31
- <div className="flex items-start justify-between gap-5 border-b px-6 py-4">
32
- <div className="min-w-0">
33
- <div className="flex min-w-0 items-baseline gap-3">
34
- <h2 className="truncate text-lg font-semibold">{title}</h2>
35
- <span data-slot="title-meta" className="shrink-0 text-sm text-muted-foreground" />
40
+ <div
41
+ className={`flex items-start justify-between gap-5 px-6 py-4${divider ? " border-b" : ""}`}
42
+ >
43
+ <div className="flex min-w-0 items-center gap-3">
44
+ {leading}
45
+ <div className="min-w-0">
46
+ <div className="flex min-w-0 flex-wrap items-baseline gap-x-3">
47
+ <h2 className="truncate text-lg font-semibold">{title}</h2>
48
+ <span data-slot="title-meta" className="text-sm text-muted-foreground" />
49
+ </div>
50
+ {description ? <p className="mt-1 text-sm text-muted-foreground">{description}</p> : null}
36
51
  </div>
37
- {description ? <p className="mt-1 text-sm text-muted-foreground">{description}</p> : null}
38
52
  </div>
39
53
  {/* ⚠️ Document order is tab order here — nothing carries a `tabIndex`. The menu is therefore
40
54
  reached last by the keyboard for the same reason it stands last on screen, and the two
package/vite.config.ts CHANGED
@@ -12,6 +12,10 @@ export default defineConfig({
12
12
  "/auth": { target: "http://localhost:8788", changeOrigin: true },
13
13
  "/mcp": { target: "http://localhost:8788", changeOrigin: true },
14
14
  "/.well-known": { target: "http://localhost:8788", changeOrigin: true },
15
+ // ⚠️ There is deliberately no `/agents` entry any more (#178). The browser reaches the agent
16
+ // runtime through intel, which forwards over its `AGENT` service binding — so in development
17
+ // the runtime still has to be running (`workers/agent`, port 8789, started separately from
18
+ // `bun run dev`), but Vite proxies nothing to it: wrangler's dev registry connects the two.
15
19
  },
16
20
  },
17
21
  });