@anchrd/intel-ui 0.8.7 → 0.9.0
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.
- package/README.md +2 -2
- package/package.json +5 -2
- package/src/agent/agent-avatar/agent-avatar.tsx +34 -0
- package/src/agent/agent-calendar/agent-calendar.tsx +79 -0
- package/src/agent/agent-chat/agent-chat.tsx +116 -0
- package/src/agent/agent-cron/agent-cron.ts +132 -0
- package/src/agent/agent-definition/agent-definition.ts +64 -0
- package/src/agent/agent-entry-title/agent-entry-title.ts +29 -0
- package/src/agent/agent-log/agent-log.tsx +159 -0
- package/src/agent/agent-models/agent-models.ts +63 -0
- package/src/agent/agent-profile/agent-profile.tsx +512 -0
- package/src/agent/agent-state/agent-state.ts +48 -0
- package/src/agent/agent.tsx +361 -0
- package/src/app/app-sidebar/app-sidebar.tsx +2 -2
- package/src/app/app-tree/app-tree.tsx +151 -23
- package/src/app/app.tsx +2 -2
- package/src/app/header-search/header-search.tsx +16 -16
- package/src/app/tree-move/tree-move.tsx +10 -10
- package/src/app/user-footer/user-footer.tsx +7 -1
- package/src/archive/archive.tsx +154 -0
- package/src/components/ui/avatar.tsx +39 -0
- package/src/components/ui/select.tsx +163 -0
- package/src/components/ui/tabs.tsx +52 -0
- package/src/data/agent-runtime/agent-runtime.ts +93 -0
- package/src/data/intel-data-provider/intel-data-provider.ts +206 -120
- package/src/data/intel-data-provider/intel-data-provider.types.ts +112 -54
- package/src/entry-picker/entry-picker.tsx +53 -17
- package/src/flow-runs/flow-runs.tsx +1 -1
- package/src/flows/flows.tsx +20 -20
- package/src/folder-contents/folder-contents.tsx +7 -7
- package/src/graph-pane/graph-pane.tsx +1 -1
- package/src/hooks/use-capabilities.ts +22 -0
- package/src/i18n/en.json +156 -64
- package/src/kind-icon.ts +5 -2
- package/src/{knowledge-editor/knowledge-editor.tsx → node-editor/node-editor.tsx} +20 -20
- package/src/{knowledge-graph → node-graph}/graph-notice.tsx +1 -1
- package/src/{knowledge-graph/knowledge-graph.tsx → node-graph/node-graph.tsx} +4 -4
- package/src/{knowledge-table/knowledge-table.tsx → node-table/node-table.tsx} +14 -14
- package/src/{knowledge/knowledge.tsx → nodes/nodes.tsx} +46 -29
- package/src/resource-menu/resource-menu.tsx +105 -62
- package/src/router/router.tsx +17 -5
- package/src/title-row/title-row.tsx +13 -5
- package/vite.config.ts +4 -0
- /package/src/{knowledge-graph/knowledge-graph.ts → node-graph/node-graph.ts} +0 -0
package/src/router/router.tsx
CHANGED
|
@@ -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="/
|
|
16
|
+
component: () => <Navigate to="/nodes" replace />,
|
|
17
17
|
});
|
|
18
|
-
const
|
|
18
|
+
const nodesRoute = createRoute({
|
|
19
19
|
getParentRoute: () => rootRoute,
|
|
20
|
-
path: "/
|
|
20
|
+
path: "/nodes",
|
|
21
21
|
validateSearch: selectionSearch,
|
|
22
|
-
component: lazyRouteComponent(() => import("@/
|
|
22
|
+
component: lazyRouteComponent(() => import("@/nodes/nodes.tsx"), "Nodes"),
|
|
23
23
|
});
|
|
24
24
|
const flowsRoute = createRoute({
|
|
25
25
|
getParentRoute: () => rootRoute,
|
|
@@ -27,13 +27,25 @@ const flowsRoute = createRoute({
|
|
|
27
27
|
validateSearch: selectionSearch,
|
|
28
28
|
component: lazyRouteComponent(() => import("@/flows/flows.tsx"), "Flows"),
|
|
29
29
|
});
|
|
30
|
+
const archiveRoute = createRoute({
|
|
31
|
+
getParentRoute: () => rootRoute,
|
|
32
|
+
path: "/archive",
|
|
33
|
+
validateSearch: selectionSearch,
|
|
34
|
+
component: lazyRouteComponent(() => import("@/archive/archive.tsx"), "Archive"),
|
|
35
|
+
});
|
|
30
36
|
const toolsRoute = createRoute({
|
|
31
37
|
getParentRoute: () => rootRoute,
|
|
32
38
|
path: "/tools",
|
|
33
39
|
validateSearch: selectionSearch,
|
|
34
40
|
component: lazyRouteComponent(() => import("@/tools/tools.tsx"), "Tools"),
|
|
35
41
|
});
|
|
36
|
-
const routeTree = rootRoute.addChildren([
|
|
42
|
+
const routeTree = rootRoute.addChildren([
|
|
43
|
+
redirectRoute,
|
|
44
|
+
nodesRoute,
|
|
45
|
+
flowsRoute,
|
|
46
|
+
toolsRoute,
|
|
47
|
+
archiveRoute,
|
|
48
|
+
]);
|
|
37
49
|
|
|
38
50
|
export function createIntelRouter(context: RouterContext) {
|
|
39
51
|
return createRouter({ routeTree, context });
|
|
@@ -20,21 +20,29 @@ export function TitleRow({
|
|
|
20
20
|
title,
|
|
21
21
|
description,
|
|
22
22
|
target,
|
|
23
|
+
leading,
|
|
23
24
|
children,
|
|
24
25
|
}: {
|
|
25
26
|
title: string;
|
|
26
27
|
description?: string | null;
|
|
27
28
|
target: ResourceTarget;
|
|
29
|
+
// ⚠️ A picture before the name, for the one kind that has a face: an agent's initials (#143). A
|
|
30
|
+
// prop rather than another slot because it must sit BEFORE the title, and a portal can only
|
|
31
|
+
// append — the same limitation that gave the shell two boxes instead of one list (#56).
|
|
32
|
+
leading?: React.ReactNode;
|
|
28
33
|
children?: React.ReactNode;
|
|
29
34
|
}) {
|
|
30
35
|
return (
|
|
31
36
|
<div className="flex items-start justify-between gap-5 border-b px-6 py-4">
|
|
32
|
-
<div className="min-w-0">
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
<
|
|
37
|
+
<div className="flex min-w-0 items-center gap-3">
|
|
38
|
+
{leading}
|
|
39
|
+
<div className="min-w-0">
|
|
40
|
+
<div className="flex min-w-0 flex-wrap items-baseline gap-x-3">
|
|
41
|
+
<h2 className="truncate text-lg font-semibold">{title}</h2>
|
|
42
|
+
<span data-slot="title-meta" className="text-sm text-muted-foreground" />
|
|
43
|
+
</div>
|
|
44
|
+
{description ? <p className="mt-1 text-sm text-muted-foreground">{description}</p> : null}
|
|
36
45
|
</div>
|
|
37
|
-
{description ? <p className="mt-1 text-sm text-muted-foreground">{description}</p> : null}
|
|
38
46
|
</div>
|
|
39
47
|
{/* ⚠️ Document order is tab order here — nothing carries a `tabIndex`. The menu is therefore
|
|
40
48
|
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
|
});
|
|
File without changes
|