The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
chore(shot): update shot page implementation
Steven Enamakelf470c77c6762
diff --git a/app/src/shot.html b/app/src/shot.htmlnew file mode 100644index 0000000000..65a0b72b2e--- /dev/null+++ b/app/src/shot.html@@ -0,0 +1,3 @@+<!doctype html>+<html><head><meta charset="utf-8"/><title>shot</title></head>+<body><div id="root"></div><script type="module" src="/shot.tsx"></script></body></html>diff --git a/app/src/shot.tsx b/app/src/shot.tsxnew file mode 100644index 0000000000..6ad4af4ab8--- /dev/null+++ b/app/src/shot.tsx@@ -0,0 +1,40 @@+import { createRoot } from 'react-dom/client';+import { ReactFlow, ReactFlowProvider, Background } from '@xyflow/react';+import '@xyflow/react/dist/style.css';+import './index.css';+import FlowNodeComponent from './components/flows/canvas/FlowNodeComponent';+import { StepNumberProvider } from './components/flows/canvas/stepNumbers';++const mk = (id: string, kind: string, name: string, y: number, outs = ['main'], ins = ['main']) => ({+ id, type: 'flowNode', position: { x: 120, y },+ data: { kind, name, config: {}, inputPorts: ins, outputPorts: outs },+});++const nodes = [+ mk('t', 'trigger', 'Every morning at 9am', 0, ['main'], []),+ mk('a', 'agent', 'Summarise unread inbox', 200),+ mk('c', 'condition', 'Anything urgent?', 400, ['true', 'false']),+ mk('s', 'tool_call', 'Send to #standup', 620),+];+const edges = [+ { id: 'e1', source: 't', target: 'a', sourceHandle: 'main', targetHandle: 'main' },+ { id: 'e2', source: 'a', target: 'c', sourceHandle: 'main', targetHandle: 'main' },+ { id: 'e3', source: 'c', target: 's', sourceHandle: 'true', targetHandle: 'main' },+];++createRoot(document.getElementById('root')!).render(+ <div className="h-screen w-screen">+ <ReactFlowProvider>+ <StepNumberProvider nodes={nodes as never} edges={edges as never}>+ <ReactFlow+ nodes={nodes as never}+ edges={edges as never}+ nodeTypes={{ flowNode: FlowNodeComponent } as never}+ fitView+ fitViewOptions={{ padding: 0.15 }}>+ <Background />+ </ReactFlow>+ </StepNumberProvider>+ </ReactFlowProvider>+ </div>+);