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
feat(assistant-ui-demo): add mock script for assistant UI demo
Steven Enamakele0ae5b3938cc
diff --git a/app/src/pages/dev/assistant-ui-demo/mockScript.ts b/app/src/pages/dev/assistant-ui-demo/mockScript.tsindex 9c6161a46d..72ada366f2 100644--- a/app/src/pages/dev/assistant-ui-demo/mockScript.ts+++ b/app/src/pages/dev/assistant-ui-demo/mockScript.ts@@ -6,6 +6,14 @@* no file is read, no search is run, no subagent exists.*/+/**+ * JSON-safe argument payload. Tool-call parts require their `args` to be plain+ * JSON (`ReadonlyJSONObject` upstream); `Record<string, unknown>` is wider than+ * that and does not satisfy it.+ */+type JsonValue = string | number | boolean | null | readonly JsonValue[] | JsonObject;+export type JsonObject = { readonly [key: string]: JsonValue };+export type MockSubagentStep = {/** Tool the subagent reached for. */tool: string;@@ -24,7 +32,7 @@ export type MockSubagentResult = {export type MockToolStep = {kind: 'tool';toolName: string;- args: Record<string, unknown>;+ args: JsonObject;/** Milliseconds the call "runs" before its result lands. */runMs: number;result: unknown;@@ -34,7 +42,7 @@ export type MockToolStep = {export type MockSubagentCall = {kind: 'subagent';subagent: string;- args: Record<string, unknown>;+ args: JsonObject;steps: MockSubagentStep[];/** Milliseconds between nested steps. */stepMs: number;