diff --git a/.agents/skills/ax-agent-optimize/SKILL.md b/.agents/skills/ax-agent-optimize/SKILL.md deleted file mode 100644 index dc543c7..0000000 --- a/.agents/skills/ax-agent-optimize/SKILL.md +++ /dev/null @@ -1,338 +0,0 @@ ---- -name: ax-agent-optimize -description: This skill helps an LLM generate correct AxAgent tuning and evaluation code using @ax-llm/ax. Use when the user asks about agent.optimize(...), judgeOptions, eval datasets, optimization targets, saved optimizedProgram artifacts, or recursive optimization guidance. -version: "19.0.33" ---- - -# AxAgent Optimize Codegen Rules (@ax-llm/ax) - -Use this skill for `agent.optimize(...)` workflows. Prefer short, modern, copyable patterns. Do not repeat general agent-authoring guidance unless the user needs it. - -Your job is to help the model choose a good optimization setup for the user's actual goal: - -- If the user wants better tool use, prefer action-aware tasks and either a deterministic metric or the built-in judge depending on how objective the scoring is. -- If the user wants better wording only, responder optimization may be enough. -- If the user wants reusable improvements, include artifact save/load. -- If the user wants cost or recursion behavior improved, make the eval tasks expose those tradeoffs explicitly. - -## Use These Defaults - -- Use `agent.optimize(...)` only after the agent is already configured and runnable. -- Prefer a deterministic custom `metric` when success is easy to score from the prediction and task record. -- Prefer the built-in judge path for open-ended assistant tasks: `judgeAI` plus `judgeOptions`. -- Only reach for a plain typed `AxGen` evaluator when the user needs LLM-as-judge behavior outside the built-in `agent.optimize(...)` flow. -- Default optimize target is `root.actor`; use `target: 'responder'` or explicit program IDs only when the user clearly asks for that. -- Use eval-safe tools or in-memory mocks because optimization replays tasks many times. -- Prefer precise tool return schemas such as `f.object(...)` over vague `f.json(...)` whenever the agent must reason about returned fields. -- Prefer task wording with canonical entity names like "the Atlas project" instead of ambiguous labels like "Atlas" when ambiguity could trigger pointless clarification. -- Save `result.optimizedProgram`, then restore with `new AxOptimizedProgramImpl(...)` and `agent.applyOptimization(...)`. -- When recursive behavior matters, keep `mode: 'advanced'` on the agent and tune against realistic `recursionOptions`. - -## Decision Guide - -Pick the optimization shape from the user's need: - -- "Make the agent use tools correctly" -> optimize `root.actor` with `expectedActions` and `forbiddenActions`. -- "Make final answers read better" -> consider `target: 'responder'`, but only if the task is not mostly tool-selection or clarification behavior. -- "Make the whole agent better" -> use the default actor target first; only broaden target selection when the user clearly wants that extra scope. -- "Tune recursive delegation" -> keep `mode: 'advanced'` and use tasks that actually exercise recursion depth, fan-out, and termination choices. -- "Compare before and after" -> include a held-out task plus artifact save/load and replay. - -Choose task design carefully: - -- Prefer a small number of realistic tasks over broad but vague datasets. -- Prefer concrete criteria over generic "be helpful" language. -- Prefer explicit action expectations when correctness depends on tools, recipients, dates, or side effects. -- Prefer eval-safe mocks anytime the task touches email, scheduling, external APIs, or persistence. - -## Make Agents Optimizable - -Optimization works much better when the agent and dataset remove avoidable ambiguity: - -- Prefer typed tool outputs over free-form JSON blobs so the actor can rely on exact field names. -- Tell the actor the exact tool fields it may use when payload shape matters. -- Explicitly ban invented fields if the model has any reason to guess hidden IDs or alternate key names. -- If recursive children only see explicit `llmQuery(..., context)` payloads, say that directly in the actor prompt. -- For recursive synthesis, tell the agent what the narrowed context should look like before delegation. -- Keep `maxSubAgentCalls` small in examples unless the user is explicitly testing broad fan-out behavior. -- Use canonical, unambiguous task wording so the model does not burn turns asking for fake clarification. -- In JS-runtime agents, require raw runnable JavaScript only. Ban `javascript:` prefixes, mixed prose/code, and multi-snippet turns. - -Good pattern: - -- tool schema says exactly what fields exist -- task names the exact entity to look up -- actor prompt says which fields to extract before delegation -- metric or judge penalizes unnecessary recursion and tool misuse - -Bad pattern: - -- tool returns `json` with an underspecified shape -- task uses overloaded names like `Atlas` without clarifying whether that is a project, team, or account -- recursive child is expected to infer hidden parent state that was never passed in context -- code agent is allowed to mix natural language with JavaScript in the same turn - -## Metric vs Judge - -Choose the scoring path based on how objectively the task can be measured: - -- Use a custom `metric` when you can score success directly from `prediction` and `example`. -- Use the built-in agent judge when success depends on a full-run qualitative review across tool choices, clarifications, and final output. -- Use `judgeOptions.description` to tell the built-in judge what to value most. -- Use helper-based judge code only when the user is not inside `agent.optimize(...)` and still wants LLM judging. - -Quick rules: - -- Tool correctness with exact expected calls or forbidden calls: prefer a deterministic metric first. -- Simple extraction or classification with known correct answers: prefer a deterministic metric. -- Open-ended assistant quality, nuanced clarification behavior, or broad synthesis quality: prefer the built-in judge. -- GEPA or optimizer flows outside agents that still need LLM judging: use a plain typed `AxGen` evaluator. - -Important: - -- A custom `metric` overrides the built-in judge path entirely. -- Do not introduce a dedicated judge abstraction in new examples; prefer a plain typed `AxGen`. -- Do not add both a custom `metric` and judge guidance unless the user explicitly wants two separate scoring systems and understands only the custom metric drives optimization. -- If the user builds a plain `AxGen` judge metric, prefer a numeric `score:number` output over a string tier when possible. It is simpler and less fragile in practice. - -## Canonical Pattern - -```typescript -import { - AxAIGoogleGeminiModel, - AxJSRuntime, - AxOptimizedProgramImpl, - axDefaultOptimizerLogger, - agent, - ai, - f, - fn, -} from '@ax-llm/ax'; - -const tools = [ - fn('sendEmail') - .namespace('email') - .description('Send an email message') - .arg('to', f.string('Recipient email address')) - .arg('body', f.string('Email body text')) - .returns( - f.object({ - sent: f.boolean('Whether the email was sent'), - to: f.string('Recipient email address'), - }) - ) - .handler(async ({ to }) => ({ sent: true, to })) - .build(), -]; - -const studentAI = ai({ - name: 'google-gemini', - apiKey: process.env.GOOGLE_APIKEY!, - config: { model: AxAIGoogleGeminiModel.Gemini25FlashLite, temperature: 0.2 }, -}); - -const judgeAI = ai({ - name: 'google-gemini', - apiKey: process.env.GOOGLE_APIKEY!, - config: { model: AxAIGoogleGeminiModel.Gemini3Pro, temperature: 1.0 }, -}); - -const assistant = agent('query:string -> answer:string', { - ai: studentAI, - judgeAI, - contextFields: [], - runtime: new AxJSRuntime(), - functions: { local: tools }, - contextPolicy: { preset: 'checkpointed', budget: 'balanced' }, - judgeOptions: { - description: 'Prefer correct tool use over polished wording.', - model: 'judge-model', - }, -}); - -const tasks = [ - { - input: { query: 'Send an email to Jim saying good morning.' }, - criteria: 'Use the email tool and send the message to Jim.', - expectedActions: ['email.sendEmail'], - }, -]; - -const result = await assistant.optimize(tasks, { - target: 'actor', - maxMetricCalls: 12, - verbose: true, - optimizerLogger: axDefaultOptimizerLogger, - onProgress: (progress) => { - console.log( - `round ${progress.round}/${progress.totalRounds} current=${progress.currentScore} best=${progress.bestScore}` - ); - }, -}); - -const saved = JSON.stringify(result.optimizedProgram, null, 2); -const restored = new AxOptimizedProgramImpl(JSON.parse(saved)); -assistant.applyOptimization(restored); -``` - -## Deterministic Metric Pattern - -Use this when the task has crisp correctness and cost/behavior tradeoffs: - -```typescript -const result = await assistant.optimize(tasks, { - target: 'actor', - metric: ({ prediction, example }) => { - if (prediction.completionType !== 'final' || !prediction.output) { - return 0; - } - - let score = 0; - - if (prediction.output.answer.includes('Jim')) score += 0.4; - - if ( - prediction.functionCalls.some( - (call) => call.qualifiedName === 'email.sendEmail' - ) - ) { - score += 0.4; - } - - if ((prediction.recursiveStats?.recursiveCallCount ?? 0) === 0) { - score += 0.2; - } - - return score; - }, -}); -``` - -Use this pattern when: - -- the task has a known correct answer or exact action pattern -- recursion cost or tool count must be measured explicitly -- you want repeatable, low-variance optimization runs - -## Built-In Judge Pattern - -Use this when the agent behavior needs holistic review: - -```typescript -const result = await assistant.optimize(tasks, { - judgeAI, - judgeOptions: { - model: AxAIGoogleGeminiModel.Gemini3Pro, - description: - 'Be strict about unnecessary delegation, weak clarifications, and incorrect tool choices.', - }, - maxMetricCalls: 12, -}); -``` - -Use this pattern when: - -- task quality is open-ended or hard to score exactly -- the final answer quality matters together with the action trace -- the user wants a judge to consider clarifications, tool errors, and overall completion quality - -## Plain `AxGen` Judge Pattern - -Use this only when the user needs LLM judging outside the built-in `agent.optimize(...)` path: - -```typescript -import { AxGen, s } from '@ax-llm/ax'; - -const judgeGen = new AxGen( - s(` - taskInput:json "Task input", - candidateOutput:json "Candidate output", - expectedOutput?:json "Optional reference output" - -> - score:number "Normalized score from 0 to 1" - `) -); -judgeGen.setInstruction( - 'Score the candidate output from 0 to 1. Reward correctness and task completion. Return only the score field.' -); - -const metric = async ({ prediction, example }) => { - const result = await judgeGen.forward(judgeAI, { - taskInput: example, - candidateOutput: prediction, - expectedOutput: example.expectedOutput, - }); - - return Math.max(0, Math.min(1, result.score)); -}; - -const result = await optimizer.compile(program, train, metric, { - validationExamples: validation, -}); -``` - -Use this pattern when: - -- the user is optimizing an `AxGen`, flow, or another program directly -- the user wants LLM judging without the higher-level `agent.optimize(...)` wrapper -- the user wants to inspect judge results directly, not just a numeric score - -## Dataset And Judge Rules - -- Pass already-loaded tasks. Do not invent a benchmark loader unless the user asks for one. -- Use `expectedActions` and `forbiddenActions` when tool correctness matters. -- `judgeOptions` mirrors normal forward options and supports extra judge guidance through `description`. -- The built-in judge scores from the full agent run, not just the final reply. It can see completion type, clarification payload, final output, action log, normalized function calls, tool errors, and turn count. -- For recursive advanced-mode evals, the built-in judge can also see `recursiveTrace` and `recursiveStats`. -- If the user provides a custom `metric`, that overrides the built-in judge path. -- If the user provides an LLM-based custom metric, keep the output schema as small as possible and prefer a direct numeric score. - -Decision rules: - -- Prefer a custom metric when the user has deterministic business scoring, exact action expectations, or explicit cost tradeoffs. -- Prefer the built-in judge when the user wants practical assistant-quality tuning and does not already have a trusted metric. -- Prefer a plain typed `AxGen` evaluator when the user is not calling `agent.optimize(...)` but still wants LLM judging. -- Prefer `judgeOptions.description` to steer the judge toward the user's real priority, such as tool correctness, brevity, groundedness, or policy compliance. - -## Eval Semantics - -- `agent.optimize(...)` runs each evaluation rollout from a clean continuation state. -- Saved runtime state from `getState()` and `setState(...)` is not used during eval rollouts. -- During optimize/eval, `askClarification(...)` is treated as a scored evaluation outcome instead of going through the responder. -- For clarification outcomes in custom metrics, expect `prediction.completionType === 'askClarification'`, populated `prediction.clarification`, and absent `prediction.output`. -- For final outcomes in custom metrics, expect `prediction.completionType === 'final'` and populated `prediction.output`. -- `target: 'responder'` still works, but clarification-heavy tasks are usually low-signal for responder optimization. - -## Recursive Optimization Notes - -- Recursive-slot artifacts require an agent configured for recursive advanced mode. -- Keep `mode: 'advanced'` top-level; child recursion behavior still follows `recursionOptions`. -- When recursive behavior matters, tune against the same `maxDepth` and tool/discovery structure you expect in production. -- Use recursive traces and recursive stats when the user wants to diagnose where token or delegation cost is coming from. -- For recursion-efficiency tuning, prefer a deterministic metric unless the user specifically needs a qualitative LLM review of decomposition quality. -- Tell the actor that recursive children only see passed context, not parent globals or prior tool results. -- For synthesis-style recursive tasks, specify the desired delegation pattern explicitly, for example "use at most one focused delegated child analysis after narrowing the tool output in JS." -- Penalize over-decomposition directly in the metric or judge prompt. -- If one training task keeps collapsing to zero, inspect that task first instead of adding more optimizer rounds. Most failures come from task ambiguity, weak tool schemas, or vague delegation guidance rather than GEPA itself. - -## Artifacts And Replay - -- Save `result.optimizedProgram` if the user wants portable artifacts. -- Restore artifacts with `new AxOptimizedProgramImpl(...)`, then call `agent.applyOptimization(...)`. -- For demonstrations, use fresh eval-safe tool state for baseline, optimize, and restored replay so side effects do not leak across phases. -- If the user wants to show improvement, run a held-out task before optimization, then replay it on a freshly restored optimized agent. - -## Examples - -- [RLM Agent Optimize](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/rlm-agent-optimize.ts) — Gemini office-assistant tuning with save/load -- [RLM Agent Recursive Optimize](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/rlm-agent-recursive-optimize.ts) — recursive-slot optimization artifacts - -## Do Not Generate - -- Do not optimize against production tools with real side effects unless the user explicitly wants that. -- Do not recommend responder-only optimization by default for clarification-heavy workflows. -- Do not omit artifact save/load steps when the user asks for reusable optimized configurations. -- Do not introduce a dedicated judge class or helper abstraction in new agent-optimize examples; prefer the built-in judge path or a plain typed `AxGen`. -- Do not rely on vague `json` tool returns when the agent must reason about specific fields across recursive steps. -- Do not leave recursive child context implicit. If the child needs a fact, pass it explicitly. -- Do not let code-generation agents mix prose and JavaScript if the user is optimizing runtime behavior. diff --git a/.agents/skills/ax-agent/SKILL.md b/.agents/skills/ax-agent/SKILL.md deleted file mode 100644 index 55f759f..0000000 --- a/.agents/skills/ax-agent/SKILL.md +++ /dev/null @@ -1,1090 +0,0 @@ ---- -name: ax-agent -description: This skill helps an LLM generate correct AxAgent code using @ax-llm/ax. Use when the user asks about agent(), child agents, namespaced functions, discovery mode, shared fields, llmQuery(...), RLM code execution, recursionOptions, or agent runtime behavior. For tuning and eval with agent.optimize(...), use ax-agent-optimize. -version: "19.0.33" ---- - -# AxAgent Codegen Rules (@ax-llm/ax) - -Use this skill to generate `AxAgent` code. Prefer short, modern, copyable patterns. Do not write tutorial prose unless the user explicitly asks for explanation. - -Your job is not just to write valid code. Your job is to choose the smallest correct `AxAgent` shape for the user's needs: - -- If the user wants a normal tool-using assistant, keep the config minimal. -- If the user wants long-running code execution, use RLM features deliberately. -- If the user wants delegated subtasks, decide whether they need plain `llmQuery(...)` or recursive advanced mode. -- If the user wants observability, add only the specific hooks or debug options that support that need. -- If the user is unsure, choose conservative defaults and avoid exotic options. - -## Use These Defaults - -- Use `agent(...)`, not `new AxAgent(...)`. -- Prefer `fn(...)` for host-side function definitions instead of hand-writing JSON Schema objects. -- Prefer namespaced functions such as `utils.search(...)` or `kb.find(...)`. -- Assume the child-agent module is `agents` unless `agentIdentity.namespace` is set. -- If `functions.discovery` is `true`, discover callables from modules before using them. -- In stdout-mode RLM, use one observable `console.log(...)` step per non-final actor turn. -- Prefer `promptLevel: 'default'` for normal use; use `promptLevel: 'detailed'` when you want extra anti-pattern examples and tighter teaching scaffolding in the actor prompt. -- Default to `contextPolicy: { preset: 'checkpointed', budget: 'balanced' }` for most RLM tasks. -- Prefer `contextPolicy: { preset: 'adaptive', budget: 'balanced' }` when older successful turns should collapse sooner while live runtime state stays visible. -- Prefer `actorModelPolicy` when the actor may need to upgrade after repeated error turns or discovery in specific namespaces without also upgrading the responder. -- Use `actorTurnCallback` when the user needs per-turn observability into generated code, raw runtime result, formatted output, or provider thoughts. - -## Decision Guide - -Map user intent to agent shape before writing code: - -- "Use tools and answer" -> plain `agent(...)` with local functions, no recursion, no extra observability. -- "Inspect large context with code" -> add `runtime`, `contextFields`, and usually `contextPolicy: { preset: 'checkpointed', budget: 'balanced' }`. -- "Delegate focused semantic subtasks" -> use `llmQuery(...)`; add `mode: 'advanced'` only when child tasks need their own runtime, tools, or discovery loop. -- "Need child agents with distinct responsibilities" -> use `agents.local`, and add `fields.shared` only when parent inputs truly need to flow into children. -- "Need tool discovery because names/schemas are not stable" -> use `functions.discovery: true` and generate discovery-first code. -- "Need a stronger actor only when the run gets noisy or large" -> use `actorModelPolicy` and keep the responder model separate. -- "Need debugging or traceability" -> start with `debug: true` or `actorTurnCallback`; do not add both unless the user clearly wants both prompt/runtime visibility and structured telemetry. - -Choose options based on user needs, not feature completeness: - -- Prefer `mode: 'simple'` unless recursive child agents materially improve the task. -- Prefer `maxSubAgentCalls` only when advanced recursion is enabled or the user needs explicit delegation limits. -- Prefer `contextPolicy: { preset: 'checkpointed', budget: 'balanced' }` by default, switch to `adaptive` when you want earlier summarization, use `full` for debugging, and reserve `lean` for real prompt pressure. - -## Mental Model - -Treat `AxAgent` as a long-running JavaScript REPL that the actor steers over multiple turns, not as a fresh script generator on every turn. - -- Successful code leaves variables, functions, imports, and computed values available in the runtime session. -- The actor should continue from existing runtime state instead of recreating prior work. -- `actionLog`, `liveRuntimeState`, and checkpoint summaries only control what the actor can see again in the prompt. -- Rebuild state only after an explicit runtime restart notice or when you intentionally need to overwrite a value. - -## Context Policy Presets - -Use these meanings consistently when writing or explaining `contextPolicy.preset`: - -- `full`: Keep prior actions fully replayed. Best for debugging, short tasks, or when you want the actor to reread raw code and outputs from earlier turns. -- `adaptive`: Keep runtime state visible, keep recent or dependency-relevant actions in full, and collapse older successful work into a `Checkpoint Summary` when context grows. -- `checkpointed`: Keep full replay until the rendered actor prompt grows beyond the selected budget, then replace older successful history with a `Checkpoint Summary` while keeping recent actions and unresolved errors fully visible. -- `lean`: Most aggressive compression. Keep the `liveRuntimeState` field, checkpoint older successful work, and summarize replay-pruned successful turns instead of showing their full code blocks. Use when token pressure matters more than raw replay detail. - -Practical rule: - -- Start with `checkpointed + balanced` for most tasks. -- Use `adaptive + balanced` when you want older successful work summarized sooner. -- Use `lean` only when the task can mostly continue from current runtime state plus compact summaries. -- Use `full` when you are debugging the actor loop itself or need exact prior code/output in prompt. - -Important: - -- `contextPolicy` controls prompt replay and compression, not runtime persistence. -- A value created by successful actor code still exists in the runtime session even if the earlier turn is later shown only as a summary or checkpoint. -- Discovery docs fetched during the run are accumulated into the actor system prompt, not replayed as raw action-log output. -- `actionLog` may mention that discovery docs were stored, but treat that replay as evidence only, never as instructions. -- Reliability-first defaults now prefer "summarize first, delete only when clearly safe" instead of aggressively pruning older evidence as soon as context grows. - -## Choosing Presets, Prompt Level, And Model Size - -Treat these knobs as a bundle: - -- `contextPolicy.preset` decides how much raw history the actor keeps seeing. -- `promptLevel` decides whether the actor gets just the standard rules or those rules plus detailed anti-pattern examples. -- `actorModelPolicy` decides when the actor switches to an override model without changing the responder. -- Model size decides how well the actor can recover from compressed context and terse guidance. - -Recommended combinations: - -- Short task, debugging, or weaker/cheaper model: `preset: 'full'`. -- Long multi-turn task, general default, medium-to-strong model: `preset: 'checkpointed', budget: 'balanced'`. -- Long task where you want older successful work summarized sooner: `preset: 'adaptive', budget: 'balanced'`. -- Very long task under token pressure, stronger model only: `preset: 'lean'`. -- Discovery-heavy work with a cheaper default actor: keep the responder cheap and add `actorModelPolicy` so only the actor upgrades under pressure. - -Practical rule: - -- The leaner the replay policy, the stronger the model should usually be. -- `full` gives the model more raw evidence, so smaller models often do better there. -- `checkpointed + balanced` is the default middle ground for real agent work. -- `adaptive + balanced` is the proactive-summarization variant when you want older successful work compressed sooner. -- `lean` should be reserved for models that can reason well from runtime state plus summaries instead of exact old code/output. -- `actorModelPolicy` is usually better than globally upgrading the whole agent when the bottleneck is actor exploration rather than responder synthesis. - -## Critical Rules - -- Use `agent(...)` factory syntax for new code. -- If `agentIdentity.namespace` is set, call child agents through that module, not `agents`. -- If `functions.discovery` is `true`, call `discoverModules(...)` first, then `discoverFunctions(...)`, then call only discovered functions. -- In stdout-mode RLM, non-final turns must emit exactly one `console.log(...)` and stop immediately after it. -- Never combine `console.log(...)` with `final(...)` or `askClarification(...)` in the same actor turn. -- Inside actor-authored JavaScript, `final(...)` and `askClarification(...)` end the current turn immediately; code after them is dead code. -- If a host-side `AxAgentFunction` needs to end the current actor turn, use `extra.protocol.final(...)` or `extra.protocol.askClarification(...)`. -- If a child agent needs parent inputs such as `audience`, use `fields.shared` or `fields.globallyShared`. -- `llmQuery(...)` failures may come back as `[ERROR] ...`; do not assume success. -- If `contextPolicy.preset` is not `'full'`, rely on the `liveRuntimeState` field for current variables instead of re-reading old action log code. -- If `contextPolicy.preset` is `'adaptive'`, `'checkpointed'`, or `'lean'`, assume older successful turns may be replaced by a `Checkpoint Summary` and that replay-pruned successful turns may appear as compact summaries instead of full code blocks. -- In public `forward()` and `streamingForward()` flows, `askClarification(...)` does not go through the responder; it throws `AxAgentClarificationError`. -- When resuming after clarification, prefer `error.getState()` from the thrown `AxAgentClarificationError`, then call `agent.setState(savedState)` before the next `forward(...)`. -- For offline tuning, hand off to the `ax-agent-optimize` skill and prefer eval-safe tools or in-memory mocks because `agent.optimize(...)` will replay tasks many times. - -## Canonical Pattern - -```typescript -import { agent, ai, f } from '@ax-llm/ax'; - -const llm = ai({ - name: 'openai', - apiKey: process.env.OPENAI_APIKEY!, -}); - -const assistant = agent( - f() - .input('query', f.string()) - .output('answer', f.string()) - .build(), - { - agentIdentity: { - name: 'Assistant', - description: 'Answers user questions', - }, - contextFields: [], - } -); - -const result = await assistant.forward(llm, { query: 'What is TypeScript?' }); -console.log(result.answer); -``` - -## Child Agents And Module Namespace - -Default child-agent module: - -```typescript -const writer = agent('draft:string -> revision:string', { - agentIdentity: { - name: 'Writer', - description: 'Polishes drafts', - }, - contextFields: [], -}); - -const coordinator = agent('query:string -> answer:string', { - agents: { local: [writer] }, - contextFields: [], -}); -``` - -Generated runtime call: - -```javascript -const result = await agents.writer({ draft: '...' }); -``` - -Custom child-agent module: - -```typescript -const writer = agent('draft:string -> revision:string', { - agentIdentity: { - name: 'Writer', - description: 'Polishes drafts', - }, - contextFields: [], -}); - -const coordinator = agent('query:string -> answer:string', { - agentIdentity: { - name: 'Coordinator', - description: 'Routes work', - namespace: 'team', - }, - agents: { local: [writer] }, - contextFields: [], -}); -``` - -Generated runtime call: - -```javascript -const result = await team.writer({ draft: '...' }); -``` - -Rules: - -- Default child-agent module is `agents`. -- If `agentIdentity.namespace` is set, that becomes the child-agent module. -- Do not hardcode `agents.(...)` when a custom namespace is configured. - -## Tool Functions And Namespaces - -```typescript -import { f, fn } from '@ax-llm/ax'; - -const tools = [ - fn('findSnippets') - .description('Find handbook snippets by topic') - .namespace('kb') - .arg('topic', f.string('Topic keyword')) - .returns(f.string('Matching snippet').array()) - .example({ - title: 'Find severity guidance', - code: 'await kb.findSnippets({ topic: "severity" });', - }) - .handler(async ({ topic }) => []) - .build(), -]; - -const analyst = agent('query:string -> answer:string', { - functions: { - local: [ - { - namespace: 'kb', - title: 'Knowledge Base', - selectionCriteria: 'Use for handbook and documentation lookups.', - description: 'Handbook and documentation search helpers.', - functions: tools.map(({ namespace: _namespace, ...tool }) => tool), - }, - ], - }, - contextFields: [], -}); -``` - -Generated runtime call: - -```javascript -const snippets = await kb.findSnippets({ topic: 'severity' }); -``` - -Rules: - -- Prefer namespaced functions. -- Default function namespace is `utils` when no namespace is set. -- Use the runtime call shape `await .({...})`. - -## Host-Side Completion From Functions - -Use this pattern when the actor should call a namespaced function, but the host-side function implementation should decide to end the turn: - -```typescript -import { f, fn } from '@ax-llm/ax'; - -const workflowTools = [ - fn('finishReply') - .description('Complete the actor turn with the final reply text') - .namespace('workflow') - .arg('reply', f.string('Final reply text')) - .returns(f.string('Final reply text')) - .handler(async ({ reply }, extra) => { - extra?.protocol?.final(reply); - return reply; - }) - .build(), - fn('askForOrderId') - .description('Complete the actor turn by requesting clarification') - .namespace('workflow') - .arg('question', f.string('Clarification question')) - .returns(f.string('Clarification question')) - .handler(async ({ question }, extra) => { - extra?.protocol?.askClarification(question); - return question; - }) - .build(), -]; -``` - -Rules: - -- `extra.protocol` is only available when the function call comes from an active AxAgent actor runtime session. -- Use `extra.protocol.final(...)`, `extra.protocol.askClarification(...)`, or `extra.protocol.guideAgent(...)` only inside host-side function handlers. -- Inside actor-authored JavaScript, keep using the runtime globals `final(...)` and `askClarification(...)`. -- `extra.protocol.guideAgent(...)` is handler-only internal control flow. It is not exposed as a JS runtime global or public completion type; it stops the current actor turn and appends trusted guidance to `guidanceLog` for the next iteration. -- `askClarification(...)` accepts either a simple string or a structured object with `question` plus optional UI hints such as `type: 'date' | 'number' | 'single_choice' | 'multiple_choice'` and `choices`. -- Do not model these protocol completions as normal registered tool functions or discovery entries. - -## Clarification And Resume State - -Use this pattern when the actor should pause for user input and continue later from the same runtime state. - -```typescript -import { - AxAgentClarificationError, - AxJSRuntime, - agent, - ai, -} from '@ax-llm/ax'; - -const llm = ai({ - name: 'openai', - apiKey: process.env.OPENAI_APIKEY!, -}); - -const tripAgent = agent('request:string, answer?:string -> reply:string', { - contextFields: [], - runtime: new AxJSRuntime(), -}); - -let savedState = tripAgent.getState(); - -try { - await tripAgent.forward(llm, { - request: 'Plan a Lisbon trip', - }); -} catch (error) { - if (error instanceof AxAgentClarificationError) { - console.log(error.question); - savedState = error.getState(); - } else { - throw error; - } -} - -if (savedState) { - tripAgent.setState(savedState); - const resumed = await tripAgent.forward(llm, { - request: 'Plan a Lisbon trip', - answer: 'June 1-5', - }); - console.log(resumed.reply); -} -``` - -Public flow rules: - -- `forward()` and `streamingForward()` throw `AxAgentClarificationError` when the actor calls `askClarification(...)`. -- The responder is skipped for clarification in those public flows. -- `AxAgentClarificationError.question` is the user-facing question text. -- `AxAgentClarificationError.clarification` is the normalized structured payload. -- `AxAgentClarificationError.getState()` returns the saved continuation state captured at throw time. -- `agent.getState()` and `agent.setState(...)` are the lower-level APIs for explicitly exporting or restoring continuation state on the agent instance. -- `test(...)` is different: it still returns structured completion payloads for harness/debug use instead of throwing clarification exceptions. - -Structured clarification payloads: - -- String shorthand is allowed: `askClarification("What dates should I use?")`. -- Structured form is preferred for richer chat UIs: - -```javascript -askClarification({ - question: 'Which route should I use?', - type: 'single_choice', - choices: ['Fastest', 'Scenic'], -}); -``` - -- Supported `type` values are `text`, `number`, `date`, `single_choice`, and `multiple_choice`. -- `single_choice` payloads with missing, empty, or malformed `choices` are downgraded to a plain clarification question instead of failing the turn. -- `multiple_choice` payloads must include at least two valid choices; otherwise the actor turn fails with a corrective runtime error that tells the model how to fix the call. -- Choice entries may be strings or `{ label, value? }` objects. -- Invalid clarification payloads such as a missing `question` are still treated as actor-turn runtime errors, not as successful clarification completions. - -What `AxAgentState` contains: - -- `version`: serialized state schema version. -- `runtimeBindings`: the actual restorable JavaScript globals, limited to serializable values. -- `runtimeEntries`: inspect-style metadata for prompt rendering, including summary-only non-restorable values. -- `actionLogEntries`: prior actor turns that should still be replayed after resume. -- `checkpointState`: checkpoint summary text plus the covered turns when checkpointing was active. -- `provenance`: per-binding metadata for the last actor code that set that variable. - -Practical notes: - -- `runtimeBindings` restores execution state; `runtimeEntries`, `actionLogEntries`, and `checkpointState` restore prompt context. -- Resume does not create a fake rehydration action-log turn; provenance still points to the original actor code that set the value. -- When `contextPolicy.preset` is `'adaptive'`, `'checkpointed'`, or `'lean'`, resumed prompts include a `Runtime Restore` notice plus the `liveRuntimeState` field. -- When `contextPolicy.preset` is `'full'`, restore still happens, but the `liveRuntimeState` field is absent from the actor signature. -- Only serializable/structured-clone-friendly values are guaranteed to round-trip through `getState()` / `setState(...)`. -- Reserved runtime globals such as `inputs`, tools, and protocol helpers are rebuilt fresh and are not part of saved state. -- Treat one agent instance as conversation-scoped when using `setState(...)`; do not share one mutable resumed instance across unrelated concurrent conversations. - -## Discovery Mode - -Enable discovery mode when you want the actor to discover modules and fetch callable definitions on demand: - -```typescript -const analyst = agent('context:string, query:string -> answer:string', { - agentIdentity: { - name: 'Analyst', - description: 'Analyzes long context', - namespace: 'team', - }, - contextFields: ['context'], - agents: { local: [writer] }, - functions: { - discovery: true, - local: tools, - }, -}); -``` - -Discovery APIs: - -- `await discoverModules(modules: string | string[])` -- `await discoverFunctions(functions: string | string[])` - -Both return Markdown. - -- `discoverModules(...)` only lists modules that actually have callable entries. -- Grouped modules render in the Actor prompt as ` - ` when criteria is provided. -- If a requested module does not exist, `discoverModules(...)` returns a per-module markdown error without failing the whole call. -- `discoverFunctions(...)` may include argument comments from schema descriptions and fenced code examples from `AxAgentFunction.examples`. - -Rules: - -1. Call `discoverModules(...)`. -2. If you need multiple modules, use one batched array call such as `discoverModules(['timeRange', 'schedulingOrganizer'])`. -3. Log or inspect the returned markdown directly. Do not wrap it in JSON or custom objects. -4. If you need multiple callable definitions, prefer one batched `discoverFunctions([...])` call. -5. Do not split discovery into separate calls with `Promise.all(...)`. -6. Inspect the logged result. -7. Call `discoverFunctions(...)` for only the callables you plan to use. -8. Inspect the logged result. -9. Call discovered functions and child agents. -10. If a guessed call fails with `TypeError`, `... is not a function`, or discovery `Not found`, stop guessing nearby names. Re-run `discoverModules(...)`, then `discoverFunctions(...)`, inspect the markdown again, and call only the exact discovered qualified name. -11. If tool docs or tool error messages specify an exact literal, type, or query format, reuse that exact documented value instead of synonyms or inferred aliases. - -Examples: - -```javascript -const modules = await discoverModules(['team', 'kb', 'utils']); -console.log(modules); -``` - -```javascript -const defs = await discoverFunctions(['team.writer', 'kb.findSnippets']); -console.log(defs); -``` - -Do not: - -- Do not guess callable names when discovery mode is on. -- Do not guess alternate callable names after invalid callable errors. -- Do not assume sub-agents live under `agents` if `agentIdentity.namespace` is configured. -- Do not dump large pre-known tool definitions into actor code when discovery mode is enabled. -- Do not use `Promise.all(...)` to fan out discovery calls across modules or definitions. -- Do not convert discovery markdown into JSON before logging or using it. - -## RLM Actor Code Rules - -Use these rules when generating actor JavaScript for RLM in stdout mode: - -- Treat each actor turn as exactly one observable step. -- Inspect what already exists before recomputing it. If a prior turn successfully created a value, prefer reusing that runtime value. -- If you need to inspect a value, compute it or read it, `console.log(...)` it, and stop immediately after that `console.log(...)`. -- On the next turn, continue from the existing runtime state and use the logged result from `Action Log` only as evidence for what happened. -- If the prompt contains `Live Runtime State`, treat it as the canonical view of current variables. -- Errors from child-agent or tool calls appear in `Action Log`; inspect them and fix the code on the next turn. -- Non-final turns should contain exactly one `console.log(...)`. -- Final turns should call `final(...)` or `askClarification(...)` without `console.log(...)`. -- Do not write a complete multi-step program in one actor turn. -- Do not re-declare or recompute values just because older turns are summarized; only rebuild after an explicit runtime restart or when you intentionally want a new value. -- Do not assume older successful turns remain fully replayed; adaptive or lean policies may collapse them into a `Checkpoint Summary` block or compact action summaries. - -Small reuse example: - -Turn 1: - -```javascript -const customers = await kb.findCustomers({ segment: 'active' }); -console.log(customers.length); -``` - -Turn 2: - -```javascript -const topCustomers = customers.slice(0, 3); -console.log(topCustomers); -``` - -Reason: turn 2 reuses `customers` from the persistent runtime. `Live Runtime State` or summaries may change how turn 1 is shown in the prompt, but they do not remove the value from the runtime session. - -## RLM Test Harness - -Use `agent.test(code, contextFieldValues?, options?)` when the user wants to validate JavaScript snippets against the actual AxAgent runtime environment without running the full Actor/Responder loop. - -```typescript -import { AxJSRuntime, agent, f, fn } from '@ax-llm/ax'; - -const runtime = new AxJSRuntime(); - -const tools = [ - fn('sum') - .description('Return the sum of the provided numeric values') - .namespace('math') - .arg('values', f.number('Value to add').array()) - .returns(f.number('Sum of all values')) - .handler(async ({ values }) => - values.reduce((total, value) => total + value, 0) - ) - .build(), -]; - -const harness = agent('query:string -> answer:string', { - contextFields: ['query'], - runtime, - functions: { local: tools }, - contextPolicy: { preset: 'checkpointed', budget: 'balanced' }, -}); - -const output = await harness.test( - 'console.log(await math.sum({ values: [3, 5, 8] }))', - { query: 'sum the values' } -); - -console.log(output); -``` - -Rules: - -- `test(...)` creates a fresh runtime session per call. -- It exposes the same runtime globals the actor would see for configured `contextFields`: `inputs`, non-colliding top-level aliases, namespaced functions, child agents, and `llmQuery`. -- In `AxJSRuntime`, do not rely on calling `inspect_runtime()` from inside `test(...)` snippets yet; prefer checking runtime globals directly inside the snippet. -- It returns the formatted runtime output string. -- It throws on runtime failures instead of returning LLM-style error strings. -- Do not call `final(...)` or `askClarification(...)` inside `test(...)` snippets. -- Pass only `contextFields` values to `test(...)`; it is not a general way to inject arbitrary non-context inputs. -- If the snippet uses `llmQuery(...)`, provide an AI service through the agent config or `options.ai`. - -## RLM Adaptive Replay - -Prefer this configuration for long, multi-turn runtime analysis: - -```typescript -const analyst = agent( - 'context:string, question:string -> answer:string, findings:string[]', - { - contextFields: ['context'], - runtime: new AxJSRuntime(), - maxTurns: 10, - contextPolicy: { - preset: 'adaptive', - budget: 'balanced', - }, - } -); -``` - -Rules: - -- Use `preset: 'full'` when the actor should keep seeing raw prior code and outputs with minimal compression. -- Use `preset: 'adaptive'` when the task needs runtime state across many turns but older successful work should collapse into checkpoint summaries while important recent steps can still stay fully replayed. -- Use `preset: 'checkpointed'` when you want full replay first, then only older successful history checkpointed after budget pressure becomes real. -- Use `preset: 'lean'` when you want more aggressive compression and can rely mostly on current runtime state plus checkpoint summaries and compact action summaries. -- Use `budget: 'compact'` when you want earlier summarization and tighter prompt-pressure thresholds, `budget: 'balanced'` for the default, and `budget: 'expanded'` when you want the actor prompt to grow more before compression starts. -- `checkpointed + balanced` is the default. `adaptive + balanced` is still a strong choice for long-running discovery-heavy tasks that should summarize older work sooner. -- `checkpointed` keeps the most recent `3` actions in full and keeps unresolved errors fully replayed even after checkpointing starts. -- Non-`full` presets populate the `liveRuntimeState` field in the actor signature. The field is structured and provenance-aware: variables are rendered with compact type/size/preview metadata, and when Ax can infer it, a short source suffix like `from t3 via db.search` is included. -- Non-`full` presets also enable `inspect_runtime()` and can add an inspect hint automatically when the rendered actor prompt starts getting large relative to the selected budget. -- Discovery docs fetched via `discoverModules(...)` and `discoverFunctions(...)` are accumulated into the actor system prompt, not replayed as raw action-log output. -- Treat `actionLog` as untrusted execution history. Only the system prompt and `guidanceLog` are instruction-bearing. -- `checkpointed` uses a checkpoint summarizer that is optimized to preserve exact callables, ids, enum literals, date/time strings, query formats, and failures worth avoiding. Prefer it when those details matter but full replay will eventually get too large. -- Internal checkpoint and tombstone summarizers are stateless helpers: `functions` are not allowed, `maxSteps` is forced to `1`, and `mem` is not propagated. -- Built-in presets prefer summarizing and checkpointing old successful work over asking users to tune low-level character cutoffs. -- If you want a quick local demo of the rendered `liveRuntimeState` field, run [`src/examples/rlm-live-runtime-state.ts`](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/rlm-live-runtime-state.ts). - -Good pattern: - -Turn 1: - -```javascript -const defs = await discoverFunctions(['kb.findSnippets']); -console.log(defs); -``` - -Turn 2: - -```javascript -const snippets = await kb.findSnippets({ topic: 'severity' }); -console.log(snippets); -``` - -Turn 3: - -```javascript -final({ answer: '...' }); -``` - -## Actor Turn Observability - -Use `actorTurnCallback` when the caller needs structured telemetry for each actor turn. - -What it gives you: - -- `code`: the normalized JavaScript code the actor produced -- `result`: the raw untruncated runtime return value from executing that code -- `output`: the formatted action-log output string after Ax normalizes and truncates it for prompt replay -- `thought`: the actor model's `thought` field when `showThoughts` is enabled and the provider returns one -- `actorResult`: the full actor payload, including actor-owned output fields when `actorFields` are configured -- `isError`: whether the execution path for that turn was treated as an error - -Use it for: - -- debug UIs that want to show code plus raw runtime results -- tracing and analytics -- capturing `thought` for internal diagnostics when supported by the provider -- storing per-turn execution artifacts without scraping the prompt/action log - -Important: - -- `output` is not raw stdout; it is the formatted replay string used in the action log. -- `result` is the raw runtime result before Ax applies type-aware serialization and budget-proportional truncation. -- `thought` is optional and only appears when the underlying `AxGen` call had `showThoughts` enabled and the provider actually returned a thought field. - -Good pattern: - -```typescript -const supportAgent = agent('query:string -> answer:string', { - contextFields: ['query'], - runtime, - actorTurnCallback: ({ turn, code, result, output, thought, isError }) => { - console.log({ - turn, - isError, - code, - rawResult: result, - replayOutput: output, - thought, - }); - }, - actorOptions: { - model: 'gpt-5.4-mini', - showThoughts: true, - }, -}); -``` - -## Option Layout - -Use these top-level controls consistently: - -- `mode`: controls whether `llmQuery(...)` stays simple or delegates to recursive child agents in advanced mode -- `recursionOptions.maxDepth`: limits recursive `llmQuery(...)` depth -- `maxSubAgentCalls`: shared delegated-call budget across the whole run, including recursive children -- `maxRuntimeChars`: runtime/output truncation ceiling for console logs, tool results, and interpreter output replay. The actual limit is computed dynamically each turn based on remaining context budget (see **Dynamic Output Truncation** below) -- `summarizerOptions`: default model/options for the internal checkpoint summarizer -- `actorOptions`: actor-only forward options such as `description`, `model`, `modelConfig`, `thinkingTokenBudget`, and `showThoughts` -- `actorModelPolicy`: actor-only model override rules based on consecutive error turns or discovery fetches from listed namespaces -- `responderOptions`: responder-only forward options -- `judgeOptions`: built-in judge options for `agent.optimize(...)`; for tuning workflows use the `ax-agent-optimize` skill - -Canonical shape: - -```typescript -const researchAgent = agent('query:string -> answer:string', { - contextFields: ['query'], - runtime, - mode: 'advanced', - recursionOptions: { - maxDepth: 2, - }, - maxRuntimeChars: 3000, - summarizerOptions: { - model: 'gpt-5.4-mini', - modelConfig: { temperature: 0.1, maxTokens: 180 }, - }, - contextPolicy: { - preset: 'checkpointed', - budget: 'balanced', - }, - actorOptions: { - description: 'Use tools first and keep JS steps small.', - model: 'gpt-5.4-mini', - }, - actorModelPolicy: [ - { - model: 'gpt-5.4', - aboveErrorTurns: 2, - namespaces: ['db', 'kb'], - }, - ], - responderOptions: { - model: 'gpt-5.4-mini', - }, -}); -``` - -Semantics: - -- `mode` stays top-level; there is no `recursionOptions.mode`. -- `maxRuntimeChars` sets the truncation ceiling and is separate from `contextPolicy.budget`. The effective limit per turn is computed dynamically (see below). -- `summarizerOptions` tunes only the internal checkpoint summarizer. It does not change actor or responder model selection. -- The current merged actor model stays the default base model. `actorModelPolicy` only overrides it when a rule matches. -- `actorModelPolicy` only switches the actor model. It does not change `responderOptions.model`. -- Recursive child agents can inherit `actorModelPolicy`; use a child override only when that child needs different routing behavior. -- `actorModelPolicy` entries are ordered from weaker to stronger. If multiple rules match, the last matching entry wins. -- If one entry also defines `namespaces`, any successful `discoverFunctions(...)` fetch from one of those namespaces marks the rule as matched starting on the next actor turn. - -When choosing these options for a user: - -- Do not add `mode: 'advanced'` just because recursion exists as a feature. Add it only when delegated children need their own tool/discovery/runtime loop. -- Do not add `recursionOptions` at all if the user does not need recursive delegation. -- Do not add `judgeOptions` in normal agent examples; reserve that for optimize/eval workflows. -- Keep `actorOptions` focused on actor-only forward concerns such as `description`, `model`, `modelConfig`, `thinkingTokenBudget`, and `showThoughts`. -- Use `actorModelPolicy` when the actor is the bottleneck and you want the responder to stay fixed. - -## Dynamic Output Truncation - -Runtime output truncation is **budget-proportional** and **type-aware**: - -**Budget-proportional sizing**: The effective truncation limit scales with remaining context budget. Early turns (empty action log) use the full `maxRuntimeChars` ceiling. As the action log fills toward `targetPromptChars`, the limit decays linearly down to 15% of the ceiling, hard-floored at 400 chars. This means early turns preserve more output detail while later turns conserve context for reasoning. - -**Type-aware serialization**: Non-string runtime output is serialized with structural awareness before the char-budget truncation pass: - -- **Large arrays** (>10 items): first 3 + last 2 items are kept; middle items replaced with `... [N hidden items]`. -- **Deep objects** (>3 levels): nested values beyond depth 3 replaced with `[Object]` or `[Array(N)]`. -- **Error stack traces**: first 3 + last 1 stack frames kept; middle frames replaced with `... [N frames hidden]`. -- **Simple values**: standard `JSON.stringify` passthrough. - -This means the actor sees structurally informative output even when the char budget is tight, rather than a blindly head-truncated string. - -Users do not need to configure this behavior — it is automatic. `maxRuntimeChars` sets the upper bound; the dynamic system only ever reduces, never exceeds it. - -## Actor Prompt Controls - -Use `actorOptions` for actor-only forward options and `responderOptions` for responder-only tuning. - -Key fields: - -- `actorOptions.description`: append extra actor-specific instructions without changing the responder prompt -- `actorOptions.model` / `responderOptions.model`: split model choice across actor and responder when needed -- `actorModelPolicy`: auto-switch only the actor when the run is on a consecutive error streak or discovery fetches land in specific namespaces - -Good split-model pattern: - -```typescript -const researchAgent = agent('query:string -> answer:string', { - contextFields: ['query'], - runtime, - contextPolicy: { preset: 'checkpointed', budget: 'balanced' }, - actorOptions: { - model: 'gpt-5.4', - }, - responderOptions: { - model: 'gpt-5.4-mini', - }, -}); -``` - -Model guidance: - -- Put the stronger model on the actor when the task depends on multi-turn exploration, discovery, runtime state reuse, or compressed replay. -- Put the stronger model on the responder only when the hard part is final synthesis/formatting rather than exploration. -- For cost-sensitive setups, a common pattern is stronger actor + cheaper responder, not the other way around. -- Prefer `actorModelPolicy` over globally upgrading the whole agent when the actor only needs help after context grows or the run starts thrashing. -- Pair `contextPolicy: { preset: 'checkpointed', budget: 'balanced' }` with `actorModelPolicy` when you want full replay first and actor-only upgrades triggered by errors or discovered tool domains. - -Invalid pattern: - -```javascript -const defs = await discoverFunctions(['kb.findSnippets']); -console.log(defs); -const snippets = await kb.findSnippets({ topic: 'severity' }); -final(snippets); -``` - -Reason: this mixes observation and follow-up work in one turn. - -## Shared Fields - -If a child agent requires a parent field such as `audience`, prefer shared fields: - -```typescript -const writingCoach = agent( - 'draft:string, audience:string -> revision:string', - { - agentIdentity: { - name: 'Writing Coach', - description: 'Polishes summaries for a target audience', - }, - contextFields: [], - } -); - -const analyst = agent( - 'context:string, audience:string, query:string -> answer:string', - { - agents: { local: [writingCoach] }, - fields: { shared: ['audience'] }, - contextFields: ['context'], - } -); -``` - -Generated runtime call: - -```javascript -const polished = await agents.writingCoach({ draft: summary }); -``` - -Rules: - -- Use `fields.shared` for direct children. -- Use `fields.globallyShared` for all descendants. -- Do not manually thread a parent field on every child call when shared fields fit the use case. - -## Shared Agents And Shared Functions - -Use grouped config: - -```typescript -const parent = agent('query:string -> answer:string', { - agents: { - local: [worker], - shared: [logger], - globallyShared: [auditor], - }, - functions: { - local: [searchTool], - shared: [scoreTool], - globallyShared: [traceTool], - }, - contextFields: [], -}); -``` - -Rules: - -- `agents.shared` and `functions.shared` propagate one level down. -- `agents.globallyShared` and `functions.globallyShared` propagate to all descendants. -- Use `excluded` when a child should not receive a propagated field, agent, or function. - -## Tuning Hand-off - -When the user wants `agent.optimize(...)`, judge configuration, eval datasets, saved optimization artifacts, or recursive optimization guidance, use the `ax-agent-optimize` skill. - -Keep this skill focused on building and running agents. For tuning work: - -- use eval-safe tools or in-memory mocks -- treat `judgeOptions` as part of the optimize workflow -- choose a deterministic `metric` when scoring is objective; use the built-in judge only when run quality needs qualitative review -- keep runtime authoring guidance here and optimization guidance in `ax-agent-optimize` - -## `llmQuery(...)` Rules - -Available forms: - -- `await llmQuery(query, context?)` -- `await llmQuery({ query, context? })` -- `await llmQuery([{ query, context }, ...])` - -Rules: - -- `llmQuery(...)` forwards only the explicit `context` argument. -- Parent inputs are not automatically available to `llmQuery(...)` children. -- In `mode: 'simple'`, `llmQuery(...)` is a direct semantic helper. -- In `mode: 'advanced'`, `llmQuery(...)` delegates a focused subtask to a child `AxAgent` with its own runtime and action log while recursion depth remains. -- In advanced mode, no parent `contextFields` are auto-inserted into recursive children. Only explicit `llmQuery(..., context)` payload is available there. -- If `context` is a plain object, safe keys are exposed as child runtime globals and the full payload is also available as `context`. -- In advanced mode, use `llmQuery(...)` to offload discovery-heavy, tool-heavy, or multi-turn semantic branches so the parent action log stays smaller and more focused. -- In advanced mode, use batched `llmQuery([...])` only for independent subtasks. Use serial calls when later work depends on earlier results. -- In advanced mode, a good pattern is: parent does coarse discovery and JS narrowing, child `llmQuery(...)` calls handle focused branch analysis, then parent merges child outputs and finishes. -- In advanced mode with `functions.discovery: true`, prefer putting noisy tool discovery, `discoverFunctions(...)`, and branch-specific tool chatter inside delegated child calls when those branches are independent or semantically distinct. -- In advanced mode, pass compact named object context to children instead of huge raw parent payloads. This makes the delegated prompt easier to follow and gives the child useful top-level globals. -- In advanced mode, do not assume child-created variables, discovered docs, or action-log history come back to the parent. Only the child return value comes back. -- In advanced mode, if a child calls `askClarification(...)`, that clarification bubbles up and ends the top-level run. -- In advanced mode, recursion is depth-limited: `maxDepth: 0` makes top-level `llmQuery(...)` simple, `maxDepth: 1` makes top-level `llmQuery(...)` advanced and child `llmQuery(...)` simple. -- In advanced mode, batched delegated children are cancelled when a sibling child asks for clarification or aborts, so use batched form only when those branches are truly independent. -- `maxSubAgentCalls` is a shared budget across the whole top-level run, including recursive children. -- Single-call `llmQuery(...)` may return `[ERROR] ...` on non-abort failures. -- Batched `llmQuery([...])` returns per-item `[ERROR] ...`. -- If a result starts with `[ERROR]`, inspect or branch on it instead of assuming success. - -Minimal example: - -```javascript -const summary = await llmQuery('Summarize this incident', inputs.context); -if (summary.startsWith('[ERROR]')) { - console.log(summary); -} else { - console.log(summary); -} -``` - -Advanced recursive discovery example: - -```javascript -const narrowedIncidents = incidents.map((incident) => ({ - id: incident.id, - timeline: incident.timeline, - notes: incident.notes.slice(0, 1200), -})); - -const [severityReview, followupReview] = await llmQuery([ - { - query: - 'Use discovery and available tools to review severity policy alignment. Return compact findings.', - context: { - incidents: narrowedIncidents, - rubric: 'severity-policy', - }, - }, - { - query: - 'Use discovery and available tools to review postmortem and follow-up obligations. Return compact findings.', - context: { - incidents: narrowedIncidents, - rubric: 'postmortem-followup', - }, - }, -]); - -const merged = await llmQuery( - 'Merge these delegated reviews into one manager-ready summary with next steps.', - { - severityReview, - followupReview, - audience: inputs.audience, - } -); -``` - -Delegation decision guide: - -- **JS-only** — deterministic logic (filter, sort, count, regex, date math) → do it inline, don't delegate. -- **Single-shot semantic** — needs LLM reasoning but no tools or multi-step exploration → single `llmQuery` with narrow context. -- **Full delegation** — needs its own discovery, tool calls, or >2 turns of exploratory work → `llmQuery` as child agent. -- **Parallel fan-out** — 2+ independent subtasks each qualifying for delegation → batched `llmQuery([...])`. - -Context handling: - -- In advanced mode, the `context` object is injected into the child's JS runtime as named globals — it does NOT go into the child's LLM prompt. The child's prompt sees only a compact metadata summary (types, sizes, element keys) of the delegated context. -- The child actor explores the delegated context with code, the same way the parent explores `inputs.*`. -- Always narrow with JS before delegating — never pass raw `inputs.*`. Name context keys semantically (e.g. `{ emails: filtered, rubric: 'classify-urgency' }`). -- Estimate total sub-agent calls before fanning out. `maxSubAgentCalls` is a shared budget across all recursion levels. - -Divide-and-conquer patterns: - -- **Fan-Out / Fan-In**: JS narrows into categories → `llmQuery([...])` fans out per category → JS or one more `llmQuery` merges results. -- **Pipeline**: serial `llmQuery` calls where each depends on the prior result. -- **Scout-then-Execute**: first child explores (e.g. check availability) → parent processes with JS → second child acts (e.g. draft invite). - -Notes: - -- Use these patterns when one task naturally splits into focused semantic branches with their own discovery or tool usage. -- Keep the parent responsible for orchestration, cheap JS narrowing, and final assembly. -- See `src/examples/rlm-discovery.ts` for the full recursive discovery demo. - -## Short API Reference - -### `agentIdentity` - -```typescript -agentIdentity?: { - name: string; - description: string; - namespace?: string; -} -``` - -- `name` is normalized to camelCase for child-agent function names. -- `namespace` changes the child-agent module from default `agents` to a custom module such as `team`. - -### `AxAgentOptions` - -```typescript -{ - contextFields: readonly (string | { field: string; promptMaxChars?: number })[]; - - agents?: { - local?: AxAnyAgentic[]; - shared?: AxAnyAgentic[]; - globallyShared?: AxAnyAgentic[]; - excluded?: string[]; - }; - - fields?: { - local?: string[]; - shared?: string[]; - globallyShared?: string[]; - excluded?: string[]; - }; - - functions?: { - local?: AxFunction[]; - shared?: AxFunction[]; - globallyShared?: AxFunction[]; - excluded?: string[]; - discovery?: boolean; - }; - - runtime?: AxCodeRuntime; - promptLevel?: 'default' | 'detailed'; - maxSubAgentCalls?: number; - maxBatchedLlmQueryConcurrency?: number; - maxTurns?: number; - maxRuntimeChars?: number; - contextPolicy?: AxContextPolicyConfig; - summarizerOptions?: Omit, 'functions'>; - actorFields?: string[]; - actorTurnCallback?: (turn: { - turn: number; - actorResult: Record; - code: string; - result: unknown; - output: string; - isError: boolean; - thought?: string; - }) => void | Promise; - inputUpdateCallback?: (currentInputs: Record) => Promise | undefined> | Record | undefined; - mode?: 'simple' | 'advanced'; - actorModelPolicy?: readonly [ - | { - model: string; - aboveErrorTurns: number; - namespaces?: string[]; - } - | { - model: string; - aboveErrorTurns?: number; - namespaces: string[]; - }, - ...Array< - | { - model: string; - aboveErrorTurns: number; - namespaces?: string[]; - } - | { - model: string; - aboveErrorTurns?: number; - namespaces: string[]; - } - >, - ]; - recursionOptions?: Partial> & { - maxDepth?: number; - }; - actorOptions?: Partial; - responderOptions?: Partial; - judgeOptions?: Partial; -} -``` - -- `actorTurnCallback` fires for the root agent and for recursive child agents that run actor turns. -- `actorModelPolicy` applies to the actor loop and can be inherited by recursive child agents unless you override it there. -- `namespaces` matches exact discovery namespaces from successful `discoverFunctions(...)` lookups and starts affecting model choice on the next actor turn. -- Consecutive error turns reset after a successful non-error turn and when checkpoint summarization refreshes to a new fingerprint. -- `maxSubAgentCalls` is a shared delegated-call budget across the entire run. - -## Examples - -Fetch these for full working code: - -- [Agent](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/agent.ts) — basic agent -- [Functions](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/function.ts) — function validation -- [Food Search](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/food-search.ts) — API tools -- [Smart Home](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/smart-home.ts) — state management -- [RLM](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/rlm.ts) — RLM basic -- [RLM Long Task](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/rlm-long-task.ts) — RLM context policy -- [RLM Discovery](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/rlm-discovery.ts) — advanced recursive `llmQuery` plus discovery-heavy delegated subtasks -- [RLM Shared Fields](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/rlm-shared-fields.ts) — shared fields -- [RLM Adaptive Replay](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/rlm-adaptive-replay.ts) — adaptive replay -- [RLM Live Runtime State](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/rlm-live-runtime-state.ts) — structured runtime-state rendering -- [RLM Clarification Resume](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/rlm-clarification-resume.ts) — clarification exception plus `getState()` / `setState(...)` -- [Customer Support](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/customer-support.ts) — classification agent -- [Abort Patterns](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/abort-patterns.ts) — abort handling - -## Do Not Generate - -- Do not use `new AxAgent(...)` for new code unless explicitly required. -- Do not assume child agents are always under `agents.*`. -- Do not guess function names in discovery mode. -- Do not write a full multi-step RLM actor program in one turn. -- Do not combine `console.log(...)` with `final(...)`. -- Do not forget `fields.shared` when child agents depend on parent inputs. diff --git a/.agents/skills/ax-ai/SKILL.md b/.agents/skills/ax-ai/SKILL.md deleted file mode 100644 index 617d7a2..0000000 --- a/.agents/skills/ax-ai/SKILL.md +++ /dev/null @@ -1,245 +0,0 @@ ---- -name: ax-ai -description: This skill helps an LLM generate correct AI provider setup and configuration code using @ax-llm/ax. Use when the user asks about ai(), providers, models, presets, embeddings, extended thinking, context caching, or mentions OpenAI/Anthropic/Google/Azure/Groq/DeepSeek/Mistral/Cohere/Together/Ollama/HuggingFace/Reka/OpenRouter with @ax-llm/ax. -version: "19.0.33" ---- - -# AI Provider Codegen Rules (@ax-llm/ax) - -Use this skill to generate AI provider setup, configuration, and chat code. Prefer short, modern, copyable patterns. Do not write tutorial prose unless the user explicitly asks for explanation. - -## Quick Setup - -```typescript -import { ai } from '@ax-llm/ax'; - -const openai = ai({ name: 'openai', apiKey: 'sk-...' }); -const Codex = ai({ name: 'anthropic', apiKey: 'sk-ant-...' }); -const gemini = ai({ name: 'google-gemini', apiKey: 'AIza...' }); -const azure = ai({ name: 'azure-openai', apiKey: 'your-key', resourceName: 'your-resource', deploymentName: 'gpt-4' }); -const groq = ai({ name: 'groq', apiKey: 'gsk_...' }); -const deepseek = ai({ name: 'deepseek', apiKey: 'sk-...' }); -const mistral = ai({ name: 'mistral', apiKey: 'your-key' }); -const cohere = ai({ name: 'cohere', apiKey: 'your-key' }); -const together = ai({ name: 'together', apiKey: 'your-key' }); -const openrouter = ai({ name: 'openrouter', apiKey: 'your-key' }); -const ollama = ai({ name: 'ollama', url: 'http://localhost:11434' }); -const hf = ai({ name: 'huggingface', apiKey: 'hf_...' }); -const reka = ai({ name: 'reka', apiKey: 'your-key' }); -const grok = ai({ name: 'x-grok', apiKey: 'your-key' }); -``` - -## Model Presets - -```typescript -import { ai, AxAIGoogleGeminiModel } from '@ax-llm/ax'; - -const gemini = ai({ - name: 'google-gemini', - apiKey: process.env.GOOGLE_APIKEY!, - config: { model: 'simple' }, - models: [ - { key: 'tiny', model: AxAIGoogleGeminiModel.Gemini20FlashLite, description: 'Fast + cheap', config: { maxTokens: 1024, temperature: 0.3 } }, - { key: 'simple', model: AxAIGoogleGeminiModel.Gemini20Flash, description: 'Balanced', config: { temperature: 0.6 } }, - ], -}); - -await gemini.chat({ model: 'tiny', chatPrompt: [{ role: 'user', content: 'Hi' }] }); -``` - -## Chat - -```typescript -const res = await llm.chat({ - chatPrompt: [ - { role: 'system', content: 'You are concise.' }, - { role: 'user', content: 'Write a haiku about the ocean.' }, - ], -}); -console.log(res.results[0]?.content); -``` - -## Common Options - -- `stream` (boolean): enable SSE; true by default -- `thinkingTokenBudget`: `'minimal'` | `'low'` | `'medium'` | `'high'` | `'highest'` | `'none'` -- `showThoughts`: include thoughts in output -- `functionCallMode`: `'auto'` | `'native'` | `'prompt'` -- `debug`, `logger`, `tracer`, `rateLimiter`, `timeout` - -## Extended Thinking - -```typescript -import { ai, AxAIAnthropicModel } from '@ax-llm/ax'; - -const Codex = ai({ - name: 'anthropic', - apiKey: process.env.ANTHROPIC_APIKEY!, - config: { model: AxAIAnthropicModel.Claude46Opus }, -}); - -const res = await Codex.chat( - { chatPrompt: [{ role: 'user', content: 'Solve step by step...' }] }, - { thinkingTokenBudget: 'medium', showThoughts: true }, -); -console.log(res.results[0]?.thought); -console.log(res.results[0]?.content); -``` - -### Budget Levels - -| Level | Anthropic (tokens) | Gemini (tokens) | -|---|---|---| -| `'none'` | disabled | minimal | -| `'minimal'` | 1,024 | 200 | -| `'low'` | 5,000 | 800 | -| `'medium'` | 10,000 | 5,000 | -| `'high'` | 20,000 | 10,000 | -| `'highest'` | 32,000 | 24,500 | - -### Anthropic Model-Specific Behavior - -- Opus 4.6: adaptive thinking, effort levels -- Opus 4.5: budget_tokens + effort levels (capped at `'high'`) -- Other thinking models: budget tokens only - -### Custom Thinking Levels - -```typescript -const Codex = ai({ - name: 'anthropic', - apiKey: '...', - config: { - model: AxAIAnthropicModel.Claude46Opus, - thinkingTokenBudgetLevels: { - minimal: 2048, - low: 8000, - medium: 16000, - high: 25000, - highest: 40000, - }, - effortLevelMapping: { - minimal: 'low', - low: 'medium', - medium: 'high', - high: 'high', - highest: 'max', - }, - }, -}); -``` - -## Embeddings - -```typescript -const { embeddings } = await llm.embed({ - texts: ['hello', 'world'], - embedModel: 'text-embedding-005', -}); -``` - -## Context Caching - -```typescript -const result = await gen.forward(llm, { code, language }, { - mem, - sessionId: 'code-review-session', - contextCache: { - ttlSeconds: 3600, - cacheBreakpoint: 'after-examples', - }, -}); -``` - -Breakpoint values: `'system'` | `'after-functions'` | `'after-examples'` - -Provider behavior: - -- Google Gemini: explicit caching with cache resource ID, auto TTL refresh -- Anthropic: implicit via `cache_control` markers - -### External Registry (serverless) - -```typescript -const registry: AxContextCacheRegistry = { - get: async (key) => { /* redis.get */ }, - set: async (key, entry) => { /* redis.set */ }, -}; -``` - -## AWS Bedrock - -```typescript -import { AxAIBedrock, AxAIBedrockModel } from '@ax-llm/ax-ai-aws-bedrock'; - -const bedrock = new AxAIBedrock({ - region: 'us-east-2', - fallbackRegions: ['us-west-2'], - config: { model: AxAIBedrockModel.ClaudeSonnet4 }, -}); -``` - -## Vercel AI SDK Integration - -```typescript -import { ai } from '@ax-llm/ax'; -import { AxAIProvider } from '@ax-llm/ax-ai-sdk-provider'; -import { generateText } from 'ai'; - -const axAI = ai({ name: 'openai', apiKey: process.env.OPENAI_APIKEY! }); -const model = new AxAIProvider(axAI); -const result = await generateText({ - model, - messages: [{ role: 'user', content: 'Hello!' }], -}); -``` - -## MCP + AxJSRuntime - -```typescript -import { AxMCPClient } from '@ax-llm/ax'; -import { axCreateMCPStdioTransport } from '@ax-llm/ax-tools'; - -const transport = axCreateMCPStdioTransport({ - command: 'npx', - args: ['-y', '@anthropic/mcp-server-filesystem'], -}); -const client = new AxMCPClient(transport); -``` - -## Critical Rules - -- Use `ai()` factory for all providers. -- Provider names: `'openai'`, `'anthropic'`, `'google-gemini'`, `'azure-openai'`, `'mistral'`, `'groq'`, `'cohere'`, `'together'`, `'deepseek'`, `'ollama'`, `'huggingface'`, `'openrouter'`, `'reka'`, `'x-grok'` -- Thinking constraints on Anthropic: `temperature` and `topK` are ignored; `topP` only sent if >= 0.95. -- Bedrock uses `new AxAIBedrock()`, not `ai()`. -- Vercel AI SDK uses `AxAIProvider` wrapper. - -## Examples - -Fetch these for full working code: - -- [Embeddings](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/embed.ts) — embedding generation -- [Anthropic Thinking](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/anthropic-thinking-function.ts) — extended thinking with functions -- [Anthropic Thinking Separation](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/anthropic-thinking-separation.ts) — thinking separation -- [Anthropic Web Search](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/anthropic-web-search.ts) — Anthropic web search -- [OpenAI Web Search](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/openai-web-search.ts) — OpenAI web search -- [OpenAI Responses](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/openai-responses.ts) — OpenAI responses API -- [o3 Reasoning](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/reasoning-o3-example.ts) — o3 reasoning -- [Gemini Context Cache](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/gemini-context-cache.ts) — Gemini context caching -- [Gemini Files](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/gemini-file-support.ts) — Gemini file handling -- [Grok Live Search](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/grok-live-search.ts) — Grok live search -- [OpenRouter](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/openrouter.ts) — OpenRouter provider -- [Vertex AI Auth](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/vertex-auth-example.ts) — Vertex AI authentication -- [MCP Stdio](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/mcp-client-memory.ts) — MCP stdio transport -- [MCP HTTP](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/mcp-client-pipedream.ts) — MCP HTTP transport -- [Telemetry](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/telemetry.ts) — OpenTelemetry tracing -- [Multi-Modal](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/multi-modal.ts) — image handling - -## Do Not Generate - -- Do not use `new AxAIOpenAI(...)` or similar class constructors for standard providers; use `ai()`. -- Do not hardcode provider class names when `ai({ name: ... })` covers the provider. -- Do not mix `thinkingTokenBudget` with explicit `temperature` on Anthropic thinking models. -- Do not use `ai()` for AWS Bedrock; use `new AxAIBedrock()`. -- Do not omit `resourceName` and `deploymentName` for Azure OpenAI. diff --git a/.agents/skills/ax-flow/SKILL.md b/.agents/skills/ax-flow/SKILL.md deleted file mode 100644 index 2fd96bb..0000000 --- a/.agents/skills/ax-flow/SKILL.md +++ /dev/null @@ -1,402 +0,0 @@ ---- -name: ax-flow -description: This skill helps an LLM generate correct AxFlow workflow code using @ax-llm/ax. Use when the user asks about flow(), AxFlow, workflow orchestration, parallel execution, DAG workflows, conditional routing, map/reduce patterns, or multi-node AI pipelines. -version: "19.0.33" ---- - -# AxFlow Codegen Rules (@ax-llm/ax) - -Use this skill to generate `AxFlow` workflow code. Prefer short, modern, copyable patterns. Do not write tutorial prose unless the user explicitly asks for explanation. - -## Use These Defaults - -- Use `flow()` factory, not `new AxFlow()`. -- Import: `import { ai, flow, f } from '@ax-llm/ax';` -- `autoParallel: true` is the default; independent executes run in parallel automatically. -- Node results are stored as `${nodeName}Result` in state. -- Always define `.node()` before `.execute()` for that node. -- Use `.returns()` (or `.r()`) as the last step to lock the output type. -- Use descriptive node names: `documentSummarizer`, not `proc1`. -- Use descriptive field names: `userInput`, `responseText`, not `text`, `result`. - -## Critical Rules - -- Use `flow()` factory syntax for new code. -- Node results in state follow the pattern `state.${nodeName}Result.${fieldName}`. -- `.execute()` maps current state to node inputs; `.map()` transforms state without AI calls. -- `.returns()` maps final state to the flow output type. -- Always define nodes before executing them; reversed order throws at runtime. -- Keep state flat; avoid deep nesting in `.map()`. -- Ensure loop conditions can change to avoid infinite loops. -- Structure independent executes to maximize auto-parallelization. -- Use `flow()` for typed flows. -- Aliases: `.n()` = `.node()`, `.nx()` = `.nodeExtended()`, `.m()` = `.map()`, `.r()` = `.returns()`. - -## Canonical Pattern - -```typescript -import { ai, flow } from '@ax-llm/ax'; - -const llm = ai({ name: 'openai', apiKey: process.env.OPENAI_APIKEY! }); - -const wf = flow<{ userInput: string }, { responseText: string }>() - .node('testNode', 'userInput:string -> responseText:string') - .execute('testNode', (state) => ({ userInput: state.userInput })) - .returns((state) => ({ responseText: state.testNodeResult.responseText })); - -const result = await wf.forward(llm, { userInput: 'Hello world' }); -console.log(result.responseText); -``` - -## Factory Options - -```typescript -// Basic -const wf = flow(); - -// With options -const wf = flow({ autoParallel: false }); - -// Typed -const wf = flow(); - -// Typed with options -const wf = flow({ autoParallel: true, batchSize: 5 }); -``` - -## State Evolution - -State grows with each executed node. Results are stored as `${nodeName}Result`: - -```typescript -// Initial state: { userInput: 'Hello' } -flow.execute('processor', (state) => ({ input: state.userInput })); -// State: { userInput: 'Hello', processorResult: { output: '...' } } - -flow.execute('analyzer', (state) => ({ text: state.processorResult.output })); -// State: { ..., analyzerResult: { sentiment: '...', confidence: 0.8 } } -``` - -## Node Definition - -```typescript -// String signature (creates AxGen automatically) -flow.node('processor', 'input:string -> output:string'); - -// Multiple outputs -flow.node('analyzer', 'text:string -> sentiment:string, confidence:number'); - -// Array outputs -flow.node('extractor', 'documentText:string -> entities:string[]'); - -// Short alias -flow.n('processor', 'input:string -> output:string'); -``` - -## Extended Nodes (nx) - -Add fields to a base signature without rewriting it: - -```typescript -import { f, flow } from '@ax-llm/ax'; - -// Chain-of-thought reasoning -flow.nx('reasoner', 'question:string -> answer:string', { - prependOutputs: [ - { name: 'reasoning', type: f.internal(f.string('Step-by-step reasoning')) }, - ], -}); - -// Add confidence scoring -flow.nx('analyzer', 'input:string -> result:string', { - appendOutputs: [{ name: 'confidence', type: f.number('Confidence 0-1') }], -}); - -// Add optional context input -flow.nx('processor', 'query:string -> response:string', { - appendInputs: [{ name: 'context', type: f.optional(f.string('Extra context')) }], -}); -``` - -Extension options: `prependInputs`, `appendInputs`, `prependOutputs`, `appendOutputs`. - -## Execute With Input Mapping - -```typescript -flow.execute('summarizer', (state) => ({ documentText: state.document })); - -// With AI override (use a different model for this node) -flow.execute('processor', (state) => ({ input: state.data }), { ai: alternativeAI }); -``` - -## Map (State Transformation) - -Use `map()` for data shaping without AI calls: - -```typescript -// Sync -flow.map((state) => ({ ...state, upperText: state.rawText.toUpperCase() })); - -// Async -flow.map(async (state) => { - const data = await fetchFromAPI(state.query); - return { ...state, enrichedData: data }; -}); - -// Parallel async transforms -flow.map([ - async (state) => ({ ...state, result1: await api1(state.data) }), - async (state) => ({ ...state, result2: await api2(state.data) }), -], { parallel: true }); -``` - -## Returns (Final Output) - -```typescript -const wf = flow<{ input: string }>() - .map((state) => ({ ...state, upper: state.input.toUpperCase(), len: state.input.length })) - .returns((state) => ({ upper: state.upper, isLong: state.len > 20 })); - -// Result is typed as { upper: string; isLong: boolean } -const result = await wf.forward(llm, { input: 'test' }); -``` - -## Sequential Processing - -```typescript -const wf = flow<{ input: string }, { finalResult: string }>() - .node('step1', 'input:string -> intermediate:string') - .node('step2', 'intermediate:string -> output:string') - .execute('step1', (state) => ({ input: state.input })) - .execute('step2', (state) => ({ intermediate: state.step1Result.intermediate })) - .returns((state) => ({ finalResult: state.step2Result.output })); -``` - -## Auto-Parallel Execution - -Independent executes run in parallel automatically (`autoParallel: true` by default): - -```typescript -const wf = flow<{ text: string }, { combined: string }>() - .node('sentimentAnalyzer', 'text:string -> sentiment:string') - .node('topicExtractor', 'text:string -> topics:string[]') - .node('entityRecognizer', 'text:string -> entities:string[]') - // These three run in parallel (all depend only on state.text) - .execute('sentimentAnalyzer', (state) => ({ text: state.text })) - .execute('topicExtractor', (state) => ({ text: state.text })) - .execute('entityRecognizer', (state) => ({ text: state.text })) - // This waits for all three - .returns((state) => ({ - combined: JSON.stringify({ - sentiment: state.sentimentAnalyzerResult.sentiment, - topics: state.topicExtractorResult.topics, - entities: state.entityRecognizerResult.entities, - }), - })); - -// Inspect execution plan -const plan = wf.getExecutionPlan(); -console.log(plan.parallelGroups, plan.maxParallelism); -``` - -Disable auto-parallel: - -```typescript -const wf = flow({ autoParallel: false }); -// or per execution: -await wf.forward(llm, input, { autoParallel: false }); -``` - -## Conditional Branching - -```typescript -const wf = flow<{ query: string; expertMode: boolean }, { response: string }>() - .node('simple', 'query:string -> response:string') - .node('expert', 'query:string -> response:string') - .branch((state) => state.expertMode) - .when(true) - .execute('expert', (state) => ({ query: state.query })) - .when(false) - .execute('simple', (state) => ({ query: state.query })) - .merge() - .returns((state) => ({ - response: state.expertResult?.response ?? state.simpleResult?.response, - })); -``` - -After `.merge()`, only the taken branch's result exists; use optional chaining (`?.`) on untaken branch results. - -## While Loops - -```typescript -const wf = flow<{ content: string }, { finalContent: string }>() - .node('processor', 'content:string -> processedContent:string') - .node('qualityChecker', 'content:string -> qualityScore:number') - .map((state) => ({ currentContent: state.content, iteration: 0, qualityScore: 0 })) - .while((state) => state.iteration < 3 && state.qualityScore < 0.8) - .map((state) => ({ ...state, iteration: state.iteration + 1 })) - .execute('processor', (state) => ({ content: state.currentContent })) - .execute('qualityChecker', (state) => ({ - content: state.processorResult.processedContent, - })) - .map((state) => ({ - ...state, - currentContent: state.processorResult.processedContent, - qualityScore: state.qualityCheckerResult.qualityScore, - })) - .endWhile() - .returns((state) => ({ finalContent: state.currentContent })); -``` - -Rules: -- Every `.while()` needs a matching `.endWhile()`. -- Ensure the loop condition can change to avoid infinite loops. - -## Feedback Loops (label/feedback) - -```typescript -const wf = flow<{ prompt: string }, { result: string }>() - .node('gen', 'prompt:string -> result:string, quality:number') - .map((state) => ({ ...state, tries: 0 })) - .label('retry') - .map((state) => ({ ...state, tries: state.tries + 1 })) - .execute('gen', (state) => ({ prompt: state.prompt })) - .feedback((state) => state.genResult.quality < 0.9 && state.tries < 3, 'retry') - .returns((state) => ({ result: state.genResult.result })); -``` - -Rules: -- Define the label before referencing it in `.feedback()`. -- Always include a max-iteration guard to avoid infinite loops. - -## Explicit Parallel Sub-Flows - -```typescript -flow - .parallel([ - (sub) => sub.execute('analyzer1', (state) => ({ text: state.input })), - (sub) => sub.execute('analyzer2', (state) => ({ text: state.input })), - (sub) => sub.execute('analyzer3', (state) => ({ text: state.input })), - ]) - .merge('combinedResults', (r1, r2, r3) => ({ - a1: r1.analyzer1Result.analysis, - a2: r2.analyzer2Result.analysis, - a3: r3.analyzer3Result.analysis, - })); -``` - -## Derive (Batch/Array Processing) - -```typescript -const wf = flow<{ items: string[] }, { processed: string[] }>({ batchSize: 3 }) - .derive('processed', 'items', (item, index) => `processed-${item}-${index}`, { - batchSize: 2, - }); -``` - -## Dynamic AI Context (Multi-Model) - -Route nodes to different AI providers: - -```typescript -const fast = ai({ name: 'groq', apiKey: '...' }); -const smart = ai({ name: 'anthropic', apiKey: '...' }); - -const wf = flow<{ text: string }, { out: string }>() - .node('draft', 'text:string -> out:string') - .node('refine', 'text:string -> out:string') - .execute('draft', (state) => ({ text: state.text }), { ai: fast }) - .execute('refine', (state) => ({ text: state.draftResult.out }), { ai: smart }) - .returns((state) => ({ out: state.refineResult.out })); -``` - -## Description and toFunction - -```typescript -const wf = flow<{ userQuestion: string }, { responseText: string }>() - .node('qa', 'userQuestion:string -> responseText:string') - .execute('qa', (state) => ({ userQuestion: state.userQuestion })) - .returns((state) => ({ responseText: state.qaResult.responseText })) - .description('Question Answerer', 'Answers user questions concisely.'); - -const fn = wf.toFunction(); -// fn.name, fn.parameters (JSON Schema), fn.func -``` - -## Instrumentation (Tracing) - -```typescript -import { ai, flow } from '@ax-llm/ax'; -import { context, trace } from '@opentelemetry/api'; - -const tracer = trace.getTracer('axflow'); -const llm = ai({ name: 'openai', apiKey: '...' }); - -const wf = flow<{ userQuestion: string }>() - .node('summarizer', 'documentText:string -> summaryText:string') - .execute('summarizer', (s) => ({ documentText: s.userQuestion })) - .returns((s) => ({ answer: s.summarizerResult.summaryText })); - -const result = await wf.forward(llm, { userQuestion: 'hi' }, { - tracer, - traceContext: context.active(), -}); -``` - -## Program IDs and Demos - -```typescript -const wf = flow<{ input: string }>() - .node('summarizer', 'text:string -> summary:string') - .node('classifier', 'text:string -> category:string'); - -// Discover program IDs -console.log(wf.namedPrograms()); -// [{ id: 'root.summarizer', ... }, { id: 'root.classifier', ... }] - -// Set demos (TypeScript catches typos) -wf.setDemos([{ programId: 'root.summarizer', traces: [] }]); - -// Apply optimization -wf.applyOptimization(optimizedProgram); -``` - -## Error Handling - -```typescript -try { - const result = await wf.forward(llm, input); -} catch (error) { - console.error('Flow execution failed:', error); -} -``` - -Common errors: -- `"Node 'x' not found"` -- define `.node()` before `.execute()`. -- `"endWhile() without matching while()"` -- every `.while()` needs `.endWhile()`. -- `"when() without matching branch()"` -- `.when()` must be inside `.branch()`/`.merge()`. -- `"merge() without matching branch()"` -- every `.branch()` needs `.merge()`. -- `"Label 'x' not found"` -- define `.label()` before `.feedback()` references it. - -## Examples - -Fetch these for full working code: - -- [Flow](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/ax-flow.ts) — complete flow usage -- [Auto-Parallel](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/ax-flow-auto-parallel.ts) — auto-parallelization -- [Async Map](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/ax-flow-async-map.ts) — async map transforms -- [Enhanced Demo](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/ax-flow-enhanced-demo.ts) — instance-based nodes -- [Flow as Function](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/ax-flow-to-function.ts) — flow as callable function -- [Fluent Builder](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/fluent-flow-example.ts) — fluent builder pattern -- [Flow Logging](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/flow-logging-simple.ts) — flow logging -- [Load Balancing](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/balancer.ts) — load balancing - -## Do Not Generate - -- Do not use `new AxFlow(...)` for new code. -- Do not execute a node before defining it with `.node()`. -- Do not use generic field names like `text`, `result`, `data`, `input`, `output`. -- Do not create deep-nested state objects in `.map()`. -- Do not create loop conditions that can never change. -- Do not add unnecessary dependencies between executes (kills auto-parallelism). -- Do not forget to use optional chaining on branch results after `.merge()`. diff --git a/.agents/skills/ax-gen/SKILL.md b/.agents/skills/ax-gen/SKILL.md deleted file mode 100644 index f56f10c..0000000 --- a/.agents/skills/ax-gen/SKILL.md +++ /dev/null @@ -1,323 +0,0 @@ ---- -name: ax-gen -description: This skill helps an LLM generate correct AxGen code using @ax-llm/ax. Use when the user asks about ax(), AxGen, generators, forward(), streamingForward(), assertions, field processors, step hooks, self-tuning, or structured outputs. -version: "19.0.33" ---- - -# AxGen Codegen Rules (@ax-llm/ax) - -Use this skill to generate `AxGen` code. Prefer short, modern, copyable patterns. Do not write tutorial prose unless the user explicitly asks for explanation. - -## Use These Defaults - -- Use `ax(...)` factory, not `new AxGen(...)`. -- Always pass an AI instance from `ai(...)` as the first argument to `forward()`. -- Streaming uses `streamingForward()`, not `forward()` with a stream option. -- Assertions auto-retry with error feedback on failure. -- Step hook mutations are applied at the next step boundary (pending pattern). -- `stopFunction` accepts a string or string[] for multiple stop functions. -- Multi-step continues until: all outputs filled, stop function called, or `maxSteps` reached. - -## Canonical Pattern - -```typescript -import { ai, ax, s } from '@ax-llm/ax'; - -const llm = ai({ - name: 'openai', - apiKey: process.env.OPENAI_APIKEY!, -}); - -// Inline signature -const gen = ax('input:string -> output:string, reasoning:string'); - -// Reusable signature -const sig = s('question:string, context:string[] -> answer:string'); -const gen2 = ax(sig); - -// With options -const gen3 = ax('input -> output', { - description: 'A helpful assistant', - maxRetries: 3, - maxSteps: 10, - temperature: 0.7, -}); - -const result = await gen.forward(llm, { input: 'Hello world' }); -console.log(result.output); -``` - -## Running AxGen - -### `forward()` - -```typescript -const result = await gen.forward(llm, { input: '...' }); - -// With options -const result = await gen.forward(llm, { input: '...' }, { - maxRetries: 5, - model: 'gpt-4.1', - modelConfig: { temperature: 0.9, maxTokens: 1000 }, - debug: true, -}); -``` - -### `streamingForward()` - -```typescript -const stream = gen.streamingForward(llm, { input: 'Write a long story' }); -for await (const chunk of stream) { - if (chunk.delta.output) process.stdout.write(chunk.delta.output); -} -``` - -## Stopping And Cancellation - -```typescript -import { AxAIServiceAbortedError } from '@ax-llm/ax'; - -const timer = setTimeout(() => gen.stop(), 3_000); - -try { - const result = await gen.forward(llm, { topic: 'Long document' }, { - abortSignal: AbortSignal.timeout(10_000), - }); -} catch (err) { - if (err instanceof AxAIServiceAbortedError) console.log('Aborted'); -} -``` - -Rules: - -- `gen.stop()` gracefully stops multi-step execution at the next step boundary. -- `abortSignal` cancels the underlying AI service call immediately. -- Catch `AxAIServiceAbortedError` when using either mechanism. - -## Assertions And Validation - -```typescript -// Standard assertion (checked after forward completes) -gen.addAssert( - (args) => args.output.length > 50, - 'Output must be at least 50 characters' -); - -// Streaming assertion (checked during streaming) -gen.addStreamingAssert( - 'output', - (text) => !text.includes('forbidden'), - 'Output contains forbidden text' -); -``` - -Rules: - -- Failed assertions cause an automatic retry with the error message fed back to the LLM. -- `addAssert` receives the full output object. -- `addStreamingAssert` targets a specific field and receives the partial text so far. - -## Field Processors - -```typescript -// Post-processing after generation -gen.addFieldProcessor('summary', (value, context) => value.toUpperCase()); - -// Streaming field processor (called on each chunk) -gen.addStreamingFieldProcessor('content', (partialValue, context) => { - console.log(`Received ${partialValue.length} chars`); - return partialValue; -}); -``` - -Rules: - -- `addFieldProcessor` runs once after the field is fully generated. -- `addStreamingFieldProcessor` runs on each streaming chunk for the target field. -- Both must return the (possibly transformed) value. - -## Function Calling - -```typescript -const result = await gen.forward(llm, { question: '...' }, { - functions: tools, - functionCallMode: 'auto', - stopFunction: 'finalAnswer', -}); -``` - -Rules: - -- `functionCallMode` can be `'auto'`, `'none'`, or a specific function name to force. -- `stopFunction` accepts a string or string[] to halt multi-step on specific function calls. -- Multi-step continues until all outputs filled, stop function called, or `maxSteps` reached. - -## Caching - -### Response Caching - -```typescript -const gen = ax('question:string -> answer:string', { - cachingFunction: async (key, value?) => { - if (value !== undefined) { - await cache.set(key, value); - return; - } - return await cache.get(key); - }, -}); -``` - -### Context Caching - -```typescript -const result = await gen.forward(llm, { question: '...' }, { - contextCache: { cacheBreakpoint: 'after-examples' }, -}); -``` - -Rules: - -- `cachingFunction` acts as a get/set: called with `(key)` to read, `(key, value)` to write. -- `contextCache` enables AI provider-level prompt caching for long context. - -## Sampling And Result Picker - -```typescript -const result = await gen.forward(llm, { question: '...' }, { - sampleCount: 3, - resultPicker: async (samples) => { - // Evaluate each sample and return the index of the best one - return bestIndex; - }, -}); -``` - -Rules: - -- `sampleCount` generates multiple completions in parallel. -- `resultPicker` receives all samples and must return the index of the chosen result. - -## Extended Thinking - -```typescript -const result = await gen.forward(llm, { question: '...' }, { - thinkingTokenBudget: 'medium', - showThoughts: true, -}); -console.log(result.thought); -``` - -Rules: - -- `thinkingTokenBudget` can be `'low'`, `'medium'`, `'high'`, or a number. -- Set `showThoughts: true` to include the model's reasoning in `result.thought`. - -## Step Hooks - -```typescript -const result = await gen.forward(llm, values, { - stepHooks: { - beforeStep: (ctx) => { - if (ctx.functionsExecuted.has('complexanalysis')) { - ctx.setModel('smart'); - ctx.setThinkingBudget('high'); - } - }, - afterStep: (ctx) => { - console.log(`Usage: ${ctx.usage.totalTokens} tokens`); - }, - }, -}); -``` - -### AxStepContext Read-Only Properties - -- `stepIndex` - current step number -- `maxSteps` - configured maximum steps -- `isFirstStep` - whether this is the first step -- `functionsExecuted` - `Set` of function names called so far -- `lastFunctionCalls` - array of the most recent function call results -- `usage` - token usage statistics -- `state` - current step state - -### AxStepContext Mutators - -- `setModel(model)` - change the model for the next step -- `setThinkingBudget(budget)` - adjust thinking budget -- `setTemperature(temp)` - adjust temperature -- `setMaxTokens(max)` - adjust max output tokens -- `setOptions(opts)` - set arbitrary forward options -- `addFunctions(fns)` - add functions for the next step -- `removeFunctions(names)` - remove functions by name -- `stop()` - stop multi-step execution - -Rules: - -- All mutations are pending and applied at the next step boundary. -- `beforeStep` runs before each LLM call; `afterStep` runs after. -- Use `afterFunctionExecution` to react to specific function results. - -## Self-Tuning - -```typescript -// Simple: enable all self-tuning -const result = await gen.forward(llm, values, { selfTuning: true }); - -// Granular: pick what to tune -const result = await gen.forward(llm, values, { - selfTuning: { - model: true, - thinkingBudget: true, - functions: [searchWeb, calculate], - }, -}); -``` - -Rules: - -- `selfTuning: true` enables automatic model and parameter selection. -- Granular config allows tuning specific aspects independently. -- `selfTuning.functions` provides a pool of functions the tuner may add or remove per step. - -## Error Handling - -```typescript -import { AxGenerateError } from '@ax-llm/ax'; - -try { - const result = await gen.forward(llm, { input: '...' }); -} catch (error) { - if (error instanceof AxGenerateError) { - console.log(error.details.model, error.details.signature); - } -} -``` - -Rules: - -- `AxGenerateError` includes `details` with `model` and `signature` for debugging. -- `AxAIServiceAbortedError` is thrown on cancellation via `stop()` or `abortSignal`. - -## Examples - -Fetch these for full working code: - -- [Streaming](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/streaming.ts) — streaming with assertions -- [Assertions](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/asserts.ts) — output validation -- [Streaming Assertions](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/streaming-asserts.ts) — streaming with assertion checks -- [Structured Output](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/structured_output.ts) — fluent API with validation -- [Debug Logging](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/debug-logging.ts) — debug mode and step hooks -- [Stop Function](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/stop-function.ts) — stop functions -- [Fibonacci](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/fibonacci.ts) — streaming with thinking -- [Extraction](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/extract.ts) — information extraction -- [Multi-Sampling](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/sample-count.ts) — sample count usage - -## Do Not Generate - -- Do not use `new AxGen(...)` for new code unless explicitly required. -- Do not pass raw API keys or config objects where an `ai(...)` instance is expected. -- Do not use `forward()` for streaming; use `streamingForward()`. -- Do not forget that assertions auto-retry; avoid manual retry loops around assertion logic. -- Do not mutate step hook context expecting immediate effect; mutations are pending until the next step. -- Do not assume multi-step stops after one LLM call; it continues until outputs are filled, a stop function fires, or `maxSteps` is reached. diff --git a/.agents/skills/ax-gepa/SKILL.md b/.agents/skills/ax-gepa/SKILL.md deleted file mode 100644 index a5a97d8..0000000 --- a/.agents/skills/ax-gepa/SKILL.md +++ /dev/null @@ -1,260 +0,0 @@ ---- -name: ax-gepa -description: This skill helps an LLM generate correct AxGEPA optimization code using @ax-llm/ax. Use when the user asks about AxGEPA, GEPA, Pareto optimization, multi-objective prompt tuning, reflective prompt evolution, validationExamples, maxMetricCalls, or optimizing a generator, flow, or agent tree. -version: "19.0.33" ---- - -# AxGEPA Codegen Rules (@ax-llm/ax) - -Use this skill to generate direct `AxGEPA` optimization code. Prefer short, modern, copyable patterns over long explanation. - -## Use These Defaults - -- Use `new AxGEPA({ studentAI, teacherAI, ... })`. -- Prefer `ai()`, `ax()`, and `flow()` for new code. -- Use a strong `teacherAI` and a cheaper `studentAI`. -- Always pass `validationExamples` to `compile()`. -- Always set `maxMetricCalls` to bound optimizer cost. -- Use scalar metrics for one objective and object metrics for Pareto optimization. -- Apply results with `program.applyOptimization(result.optimizedProgram!)`. -- For tree-wide runs, expect `optimizedProgram.instructionMap`. - -## Critical Rules - -- `AxGEPA.compile()` works for a single generator and for tree-aware roots such as flows or agents with registered instruction-bearing descendants. -- There is no separate flow-only GEPA optimizer. Use `AxGEPA` for flows too. -- The metric may return either `number` or `Record`. -- Keep metrics deterministic and cheap by default. -- Avoid extra LLM calls inside the metric unless the user explicitly wants judge-based evaluation. -- If the user needs LLM-as-judge scoring for a non-agent GEPA run, prefer a plain typed `AxGen` evaluator instead of writing a custom judge abstraction. -- `maxMetricCalls` must be large enough to cover the initial validation pass over `validationExamples`. -- GEPA optimizes instructions. If a tree has no instruction-bearing nodes, optimization will fail. -- Use held-out validation examples for selection. Do not reuse the training set as `validationExamples`. -- `result.optimizedProgram` is the easy-to-apply best candidate. `result.paretoFront` is the full trade-off set for multi-objective runs. - -## Metric Selection - -Choose the evaluation path deliberately: - -- Prefer a deterministic metric when correctness can be read directly from `prediction` and `example`. -- Prefer a deterministic metric when cost, latency, recursion depth, or tool count matters. -- Use a plain typed `AxGen` evaluator only when the task is genuinely qualitative and hard to score exactly. -- For `agent.optimize(...)`, prefer the built-in judge path instead of manually wrapping a judge metric. - -Rule of thumb: - -- `AxGEPA` on `AxGen` or flow: use a metric first, optionally a plain typed `AxGen` evaluator if needed. -- `agent.optimize(...)`: use custom `metric` for crisp scoring, otherwise `judgeAI` plus `judgeOptions`. - -## Canonical Scalar Pattern - -```typescript -import { ai, ax, AxAIOpenAIModel, AxGEPA } from '@ax-llm/ax'; - -const student = ai({ - name: 'openai', - apiKey: process.env.OPENAI_APIKEY!, - config: { model: AxAIOpenAIModel.GPT4OMini }, -}); - -const teacher = ai({ - name: 'openai', - apiKey: process.env.OPENAI_APIKEY!, - config: { model: AxAIOpenAIModel.GPT4O }, -}); - -const classifier = ax( - 'emailText:string -> priority:class "high, normal, low", rationale:string' -); - -const train = [ - { emailText: 'URGENT: Server down!', priority: 'high' }, - { emailText: 'Weekly newsletter', priority: 'low' }, -]; - -const validation = [ - { emailText: 'Invoice overdue', priority: 'high' }, - { emailText: 'Lunch plans?', priority: 'low' }, -]; - -const metric = ({ prediction, example }: { prediction: any; example: any }) => - prediction?.priority === example?.priority ? 1 : 0; - -const optimizer = new AxGEPA({ - studentAI: student, - teacherAI: teacher, - numTrials: 12, - minibatch: true, - minibatchSize: 4, - earlyStoppingTrials: 4, - sampleCount: 1, -}); - -const result = await optimizer.compile(classifier, train, metric, { - validationExamples: validation, - maxMetricCalls: 120, -}); - -classifier.applyOptimization(result.optimizedProgram!); -console.log(result.bestScore); -``` - -## Canonical Pareto Pattern - -```typescript -import { ai, flow, AxAIOpenAIModel, AxGEPA } from '@ax-llm/ax'; - -const student = ai({ - name: 'openai', - apiKey: process.env.OPENAI_APIKEY!, - config: { model: AxAIOpenAIModel.GPT4OMini }, -}); - -const teacher = ai({ - name: 'openai', - apiKey: process.env.OPENAI_APIKEY!, - config: { model: AxAIOpenAIModel.GPT4O }, -}); - -const wf = flow<{ emailText: string }>() - .n('classifier', 'emailText:string -> priority:class "high, normal, low"') - .n( - 'rationale', - 'emailText:string, priority:string -> rationale:string "One concise sentence"' - ) - .e('classifier', (state) => ({ emailText: state.emailText })) - .e('rationale', (state) => ({ - emailText: state.emailText, - priority: state.classifierResult.priority, - })) - .r((state) => ({ - priority: state.classifierResult.priority, - rationale: state.rationaleResult.rationale, - })); - -const train = [ - { emailText: 'URGENT: Server down!', priority: 'high' }, - { emailText: 'Weekly newsletter', priority: 'low' }, -]; - -const validation = [ - { emailText: 'Invoice overdue', priority: 'high' }, - { emailText: 'Lunch plans?', priority: 'low' }, -]; - -const metric = ({ prediction, example }: { prediction: any; example: any }) => { - const accuracy = prediction?.priority === example?.priority ? 1 : 0; - const rationale = typeof prediction?.rationale === 'string' - ? prediction.rationale - : ''; - const brevity = rationale.length <= 40 ? 1 : rationale.length <= 80 ? 0.5 : 0.1; - return { accuracy, brevity }; -}; - -const result = await new AxGEPA({ - studentAI: student, - teacherAI: teacher, - numTrials: 16, - minibatch: true, - minibatchSize: 6, - earlyStoppingTrials: 5, - sampleCount: 1, -}).compile(wf, train, metric, { - validationExamples: validation, - maxMetricCalls: 240, -}); - -for (const point of result.paretoFront) { - console.log(point.scores, point.configuration); -} - -wf.applyOptimization(result.optimizedProgram!); -console.log(result.optimizedProgram?.instructionMap); -``` - -## Metric Patterns - -```typescript -// Scalar objective -const scalarMetric = ({ prediction, example }) => - prediction.answer === example.answer ? 1 : 0; - -// Multi-objective -const multiMetric = ({ prediction, example }) => ({ - accuracy: prediction.answer === example.answer ? 1 : 0, - brevity: - typeof prediction?.reasoning === 'string' && - prediction.reasoning.length < 120 - ? 1 - : 0.2, -}); -``` - -- Return plain numbers or plain object literals. -- Keep objective names stable across calls. -- Prefer normalized scores such as `0..1` so trade-offs are easy to reason about. - -## Result Handling - -```typescript -const { optimizedProgram, paretoFront } = result; - -program.applyOptimization(optimizedProgram!); - -// Save for later -const saved = JSON.stringify(optimizedProgram); - -// Load later and re-apply -const loaded = JSON.parse(saved); -program.applyOptimization(loaded); -``` - -- Single-target runs usually populate both `optimizedProgram.instruction` and `optimizedProgram.instructionMap`. -- Tree-wide runs rely on `instructionMap`, keyed by full program ID. -- Pareto points expose candidate configs under `point.configuration.instructionMap`. - -## Useful Options - -```typescript -const optimizer = new AxGEPA({ - studentAI, - teacherAI, - numTrials: 20, - minibatch: true, - minibatchSize: 5, - minibatchFullEvalSteps: 5, - earlyStoppingTrials: 5, - minImprovementThreshold: 0, - sampleCount: 1, - seed: 42, - verbose: true, -}); -``` - -- `numTrials`: number of reflection/evolution rounds. -- `minibatch`: reduce per-round evaluation cost. -- `minibatchSize`: examples per minibatch. -- `earlyStoppingTrials`: stop after repeated non-improvement. -- `minImprovementThreshold`: reject tiny gains below this threshold. -- `seed`: stabilize sampling during demos and tests. - -## Budgeting and Validation - -- Always create distinct `train` and `validationExamples` arrays. -- Size `maxMetricCalls` for at least one full validation pass plus several rounds. -- If the user wants a strict budget, say so explicitly and set `maxMetricCalls`. -- For expensive trees, start with `auto: 'light'` or fewer `numTrials`, then scale up. - -## Troubleshooting - -- Error about `maxMetricCalls` being too small: increase it until the initial validation pass fits. -- Empty or poor Pareto front: verify the metric returns numbers for every example. -- No tree optimization effect: ensure child programs are registered under the root and have instructions to mutate. -- Saved optimization applies only partly: use `program.applyOptimization(...)`, not just `setInstruction(...)`, so `instructionMap` reaches the full tree. - -## Good Example Targets - -- `/Users/vr/src/ax/src/examples/gepa.ts` -- `/Users/vr/src/ax/src/examples/gepa-flow.ts` -- `/Users/vr/src/ax/src/examples/gepa-train-inference.ts` -- `/Users/vr/src/ax/src/examples/gepa-quality-vs-speed-optimization.ts` diff --git a/.agents/skills/ax-learn/SKILL.md b/.agents/skills/ax-learn/SKILL.md deleted file mode 100644 index e2a472f..0000000 --- a/.agents/skills/ax-learn/SKILL.md +++ /dev/null @@ -1,268 +0,0 @@ ---- -name: ax-learn -description: This skill helps an LLM generate correct AxLearn code using @ax-llm/ax. Use when the user asks about self-improving agents, trace-backed learning, feedback-aware updates, or AxLearn modes. -version: "19.0.33" ---- - -# AxLearn Codegen Rules (@ax-llm/ax) - -Use this skill to generate `AxLearn` code that matches the current API. - -## Core Model - -- `AxLearn` wraps an `AxGen`. -- `teacher` is for judging, synthesis, and reflection. -- `runtimeAI` is the model being improved. -- `forward()` and `streamingForward()` are inference-time APIs and auto-log traces when tracing is enabled. -- `optimize()` is offline learning. -- `applyUpdate()` is a bounded update API for `continuous` and `playbook` modes. -- `ready()` should be awaited before assuming checkpoints have been restored. -- `improvement` is the score delta from the previous/restored state. - -## Required Inputs - -- Always provide `name`. -- Always provide `storage`. -- Always provide `teacher`. -- Always provide `runtimeAI` if you call `optimize()` or `applyUpdate()`. - -## Modes - -- `batch`: offline prompt learning only. -- `continuous`: offline optimization plus bounded feedback-aware `applyUpdate(...)`. -- `playbook`: structured context/playbook learning plus `applyUpdate(...)`. - -## Preferred Construction - -```typescript -import { - AxLearn, - ax, - ai, - type AxCheckpoint, - type AxStorage, - type AxTrace, -} from '@ax-llm/ax'; - -const storage: AxStorage = { - save: async (_name, _item) => { - // persist trace/checkpoint - }, - load: async (_name, _query) => { - // return traces/checkpoints - return []; - }, -}; - -const teacher = ai({ - name: 'openai', - apiKey: process.env.OPENAI_APIKEY!, -}); - -const runtimeAI = ai({ - name: 'openai', - apiKey: process.env.OPENAI_APIKEY!, -}); - -const gen = ax(` - customerQuery:string "User message" -> - supportReply:string "Agent reply" -`); - -const agent = new AxLearn(gen, { - name: 'support-bot-v1', - storage, - teacher, - runtimeAI, - mode: 'continuous', - budget: 12, - examples: [ - { - customerQuery: 'Where is my order?', - supportReply: 'Your order is in transit and should arrive in 2 days.', - }, - { - customerQuery: 'I need a refund.', - supportReply: 'I can help with that. Please share your order number.', - }, - ], - generateExamples: false, -}); - -await agent.ready(); -``` - -## Runtime Pattern - -```typescript -const prediction = await agent.forward(runtimeAI, { - customerQuery: 'My package is late.', -}); - -const traces = await agent.getTraces({ limit: 1 }); -if (traces[0]) { - await agent.addFeedback(traces[0].id, { - score: 0, - label: 'needs-empathy', - comment: 'Acknowledge the frustration more directly.', - }); -} -``` - -## Offline Optimization - -```typescript -const result = await agent.optimize({ - // Optional overrides - budget: 20, -}); - -console.log(result.mode); -console.log(result.score); -console.log(result.improvement); -console.log(result.checkpointVersion); -``` - -`result.improvement` is the gain relative to the prior/restored score. - -## Continuous Update - -Use `applyUpdate(...)` only in `continuous` or `playbook` mode. - -- In `continuous` mode, `example` may be input-only. -- `prediction` is the observed runtime output being critiqued. -- If `example` includes expected output fields, that expected-output row stays eligible for scored optimization. -- The observed `prediction` row is feedback/reflection context, not a scored train/validation row by itself. -- Feedback-bearing scored examples should stay in the training pool when non-feedback rows can fill validation. -- In `playbook` mode, `getInstruction()` returns the active composed prompt. - -```typescript -const update = await agent.applyUpdate({ - example: { - customerQuery: 'My package is late.', - }, - prediction, - feedback: { - score: 0, - label: 'needs-empathy', - comment: 'Acknowledge the frustration more directly.', - }, -}); -``` - -## Playbook Mode - -- Use `mode: 'playbook'` when the learned artifact should be structured guidance, not just an instruction tweak. -- Playbook checkpoints restore through `ready()`. -- `applyUpdate(...)` in playbook mode performs an online structured update. -- `getInstruction()` should be treated as the active composed runtime prompt, even before optimization if the base prompt lives in the signature description. -- `artifact.playbookSummary` should match the persisted checkpoint `state.artifactSummary`. - -## How Learning Data Is Used - -- `examples` and usable traces become scored optimization rows. -- Feedback stored with `addFeedback(...)` becomes reflection feedback for later optimization. -- In continuous updates, `example + prediction + feedback` is used as an observed feedback event. -- Input-only update examples are useful for reflection, but they are not promoted into scored examples unless expected outputs are present. - -## Important Options - -```typescript -const agent = new AxLearn(gen, { - name: 'agent-id', - storage, - teacher, - runtimeAI, - mode: 'batch', // 'batch' | 'continuous' | 'playbook' - budget: 20, - metric: async ({ prediction, example }) => { - return prediction.supportReply === example.supportReply ? 1 : 0; - }, - criteria: 'accuracy and tone', - judgeOptions: {}, - examples: [], - useTraces: true, - generateExamples: false, - synthCount: 20, - validationSplit: 0.2, - continuousOptions: { - feedbackWindowSize: 25, - maxRecentTraces: 100, - updateBudget: 4, - }, - playbookOptions: { - maxEpochs: 2, - }, - onTrace: (trace) => { - console.log(trace.id); - }, - onProgress: (progress) => { - console.log(progress.round, progress.score); - }, -}); -``` - -## Result Shape - -```typescript -type AxLearnResult = { - mode: 'batch' | 'continuous' | 'playbook'; - score: number; - improvement: number; - checkpointVersion: number; - stats: { - trainingExamples: number; - validationExamples: number; - feedbackExamples: number; - durationMs: number; - mode: 'batch' | 'continuous' | 'playbook'; - }; - state?: { - mode: 'batch' | 'continuous' | 'playbook'; - instruction?: string; - baseInstruction?: string; - score?: number; - continuous?: { - feedbackTraceCount?: number; - lastUpdateAt?: string; - }; - playbook?: Record; - artifactSummary?: Record; - }; - artifact?: { - playbook?: Record; - playbookSummary?: { - feedbackEvents: number; - historyBatches: number; - bulletCount: number; - updatedAt?: string; - }; - lastUpdateAt?: string; - feedbackExamples?: number; - }; -}; -``` - -## Storage Notes - -- `AxStorage.save(name, item)` receives either a trace or checkpoint. -- `AxStorage.load(name, query)` should return arrays of traces or checkpoints. -- Checkpoints may be returned unsorted. `AxLearn` restores the newest one client-side. - -## Do This - -- Use `runtimeAI` explicitly. -- Await `ready()` before relying on restored state. -- Run `optimize()` off the hot path. -- Use `continuous` mode when you want bounded feedback-aware updates. -- Use `playbook` mode when you want persistent structured guidance. -- Pass the real observed model output as `prediction` in `applyUpdate(...)`. -- Treat `getInstruction()` in playbook mode as the live composed prompt, not just the raw base instruction. - -## Avoid This - -- Do not assume `teacher` is the optimized runtime model. -- Do not call `applyUpdate()` in `batch` mode. -- Do not claim feedback affects learning unless you are storing it with `addFeedback(...)` or passing it to `applyUpdate(...)`. -- Do not assume checkpoints load synchronously in the constructor. -- Do not treat `prediction` as the gold answer in continuous updates. diff --git a/.agents/skills/ax-signature/SKILL.md b/.agents/skills/ax-signature/SKILL.md deleted file mode 100644 index 05cc2e9..0000000 --- a/.agents/skills/ax-signature/SKILL.md +++ /dev/null @@ -1,192 +0,0 @@ ---- -name: ax-signature -description: This skill helps an LLM generate correct DSPy signature code using @ax-llm/ax. Use when the user asks about signatures, s(), f(), field types, string syntax, fluent builder API, validation constraints, or type-safe inputs/outputs. -version: "19.0.33" ---- - -# Ax Signature Reference - -## Signature Syntax - -``` -[description] input1:type, input2:type -> output1:type, output2:type -``` - -## Field Types - -| Type | Syntax | TypeScript | Example | -|------|--------|-----------|---------| -| String | `:string` | `string` | `userName:string` | -| Number | `:number` | `number` | `score:number` | -| Boolean | `:boolean` | `boolean` | `isValid:boolean` | -| JSON | `:json` | `any` | `metadata:json` | -| Date | `:date` | `Date` | `birthDate:date` | -| DateTime | `:datetime` | `Date` | `timestamp:datetime` | -| Image | `:image` | `{mimeType, data}` | `photo:image` (input only) | -| Audio | `:audio` | `{format?, data}` | `recording:audio` (input only) | -| File | `:file` | `{mimeType, data}` | `document:file` (input only) | -| URL | `:url` | `string` | `website:url` | -| Code | `:code` | `string` | `pythonScript:code` | -| Class | `:class "a, b, c"` | `"a" \| "b" \| "c"` | `mood:class "happy, sad"` | - -## Arrays, Optional, and Internal Fields - -```typescript -'tags:string[] -> processedTags:string[]' // arrays -'query:string, context?:string -> response:string' // optional with ? -'problem:string -> reasoning!:string, solution:string' // internal with ! -``` - -## Three Ways to Create Signatures - -### 1. String-Based (Recommended for simple cases) - -```typescript -import { ax, s } from '@ax-llm/ax'; -const gen = ax('input:string -> output:string'); -const sig = s('query:string -> response:string'); -``` - -### 2. Pure Fluent Builder API - -```typescript -import { f } from '@ax-llm/ax'; -const sig = f() - .input('userMessage', f.string('User input')) - .input('contextData', f.string('Additional context').optional()) - .input('tags', f.string('Keywords').array()) - .output('responseText', f.string('AI response')) - .output('confidenceScore', f.number('Confidence 0-1')) - .output('debugInfo', f.string('Debug info').internal()) - .build(); -``` - -### 3. Hybrid - -```typescript -import { s, f } from '@ax-llm/ax'; -const sig = s('base:string -> result:string') - .appendInputField('extra', f.json('Metadata').optional()) - .appendOutputField('score', f.number('Quality score')); -``` - -## Fluent API Reference - -Type creators: -- `f.string(desc)`, `f.number(desc)`, `f.boolean(desc)`, `f.json(desc)` -- `f.image(desc)`, `f.audio(desc)`, `f.file(desc)`, `f.url(desc)` -- `f.email(desc)`, `f.date(desc)`, `f.datetime(desc)` -- `f.class(['a','b','c'], desc)`, `f.code(desc)` -- `f.object({ field: f.string() }, desc)` - -Chainable modifiers (method chaining only, no nesting): -- `.optional()` - make field optional -- `.array()` / `.array('list description')` - make field an array -- `.internal()` - output only, hidden from final output -- `.cache()` - input only, mark for prompt caching - -```typescript -// Correct: pure fluent chaining -f.string('description').optional().array() -f.string('context').cache().optional() -f.object({ field: f.string() }, 'item desc').array('list desc') - -// Wrong: nested function calls (removed) -f.array(f.string('description')) // REMOVED -f.optional(f.string('description')) // REMOVED -f.internal(f.string('description')) // REMOVED -``` - -## Validation Constraints - -### String Constraints - -```typescript -f.string('username').min(3).max(20) -f.string('email').email() -f.string('website').url() -f.string('birthDate').date() -f.string('timestamp').datetime() -f.string('pattern').regex('^[A-Z0-9]') -``` - -### Number Constraints - -```typescript -f.number('age').min(18).max(120) -f.number('score').min(0).max(100) -``` - -### Complete Validation Example - -```typescript -const sig = f() - .input('formData', f.string('Raw form data')) - .output('user', f.object({ - username: f.string('Username').min(3).max(20), - email: f.string('Email').email(), - age: f.number('Age').min(18).max(120), - bio: f.string('Bio').max(500).optional(), - website: f.string('Website').url().optional(), - tags: f.string('Tag').min(2).max(30).array() - }, 'User profile')) - .build(); -``` - -## Cached Input Fields - -```typescript -const sig = f() - .input('staticContext', f.string('Context').cache()) - .input('userQuery', f.string('Dynamic query')) - .output('answer', f.string('Response')) - .build(); -``` - -## Field Naming Rules - -Good: `userQuestion`, `customerEmail`, `analysisResult`, `confidenceScore` -Bad: `text`, `data`, `input`, `output`, `a`, `x`, `val` (too generic), `1field` (starts with number) - -## Media Type Restrictions - -- Media types (image, audio, file) are **top-level input fields only** -- Cannot be nested in objects -- Cannot be output fields - -## Common Patterns - -```typescript -// Chain of Thought -'problem:string -> reasoning!:string, solution:string' - -// Classification -'email:string -> priority:class "urgent, normal, low"' - -// Multi-modal -'imageData:image, question?:string -> description:string, objects:string[]' - -// Data Extraction -'invoiceText:string -> invoiceNumber:string, totalAmount:number, lineItems:json[]' - -// With description -'"Answer TypeScript questions" question:string -> answer:string, confidence:number' -``` - -## Critical Rules - -- Use `f()` fluent builder, NOT nested `f.array(f.string())` -- those are removed. -- Field names must be descriptive (not generic like `text`, `data`, `input`). -- Media types are input-only, top-level only. -- `.internal()` is output-only (for chain-of-thought reasoning). -- `.cache()` is input-only (for prompt caching). -- Validation errors trigger auto-retry with correction feedback. -- `f.email()`, `f.url()`, `f.date()`, `f.datetime()` are shorthand for `f.string().email()` etc. - -## Examples - -Fetch these for full working code: - -- [Fluent Signature](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/fluent-signature-example.ts) — fluent f() API -- [Structured Output](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/structured_output.ts) — structured output with validation -- [Debug Schema](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/debug_schema.ts) — JSON schema validation diff --git a/.agents/skills/ax/SKILL.md b/.agents/skills/ax/SKILL.md deleted file mode 100644 index 8b3438f..0000000 --- a/.agents/skills/ax/SKILL.md +++ /dev/null @@ -1,292 +0,0 @@ ---- -name: ax -description: This skill helps with using the @ax-llm/ax TypeScript library for building LLM applications. Use when the user asks about ax(), ai(), f(), s(), agent(), flow(), AxGen, AxAgent, AxFlow, signatures, streaming, or mentions @ax-llm/ax. -version: "19.0.33" ---- - -# Ax Library (@ax-llm/ax) Quick Reference - -Ax is a TypeScript library for building LLM-powered applications with type-safe signatures, streaming support, and multi-provider compatibility. - -> **Detailed skills available:** ax-ai (providers), ax-signature (signatures/types), ax-gen (generators), ax-agent (agents/runtime), ax-agent-optimize (agent tuning/eval), ax-flow (workflows), ax-gepa (Pareto optimization), ax-learn (self-improving agents). - -## Imports & Factories - -```typescript -// Prefer factory functions: ax(), ai(), agent(), flow() — not new AxGen(), new AxAI(), etc. -import { ax, ai, f, s, fn, agent, flow, AxMemory, AxMCPClient, AxLearn } from '@ax-llm/ax'; - -// AI provider -const llm = ai({ name: 'openai', apiKey: process.env.OPENAI_APIKEY }); - -// Generator (from string signature) -const gen = ax('question:string -> answer:string'); - -// Generator (from fluent signature) -const gen = ax( - f() - .input('question', f.string('User question')) - .output('answer', f.string('AI response')) - .build() -); - -// Reusable signature -const sig = s('question:string, context:string[] -> answer:string'); - -// Agent -const myAgent = agent('userInput:string -> response:string', { - name: 'helper', - description: 'A helpful assistant', -}); - -// Flow -const wf = flow<{ input: string }, { output: string }>() - .node('step1', 'input:string -> output:string') - .execute('step1', (state) => ({ input: state.input })) - .returns((state) => ({ output: state.step1Result.output })); - -// Function tool -const tool = fn('search') - .description('Search the web') - .arg('query', f.string('Search query')) - .returns(f.string('Search results')) - .handler(({ query }) => searchWeb(query)) - .build(); -``` - -## Running - -```typescript -// Forward (blocking) -const result = await gen.forward(llm, { question: 'What is 2+2?' }); - -// Streaming -for await (const chunk of gen.streamingForward(llm, { question: 'Tell a story' })) { - if (chunk.delta.answer) process.stdout.write(chunk.delta.answer); -} -``` - -## Forward Options Quick Reference - -| Goal | Option | Example | -|------|--------|---------| -| Model override | `model` | `{ model: 'gpt-4o-mini' }` | -| Temperature | `modelConfig.temperature` | `{ modelConfig: { temperature: 0.8 } }` | -| Max tokens | `modelConfig.maxTokens` | `{ modelConfig: { maxTokens: 500 } }` | -| Retry on failure | `maxRetries` | `{ maxRetries: 3 }` | -| Max agent steps | `maxSteps` | `{ maxSteps: 10 }` | -| Fail fast | `fastFail` | `{ fastFail: true }` | -| Thinking budget | `thinkingTokenBudget` | `{ thinkingTokenBudget: 'medium' }` | -| Show thoughts | `showThoughts` | `{ showThoughts: true }` | -| Context caching | `contextCache` | `{ contextCache: { cacheBreakpoint: 'after-examples' } }` | -| Multi-sampling | `sampleCount` | `{ sampleCount: 5 }` | -| Debug logging | `debug` | `{ debug: true }` | -| Abort signal | `abortSignal` | `{ abortSignal: controller.signal }` | -| Memory | `mem` | `{ mem: new AxMemory() }` | -| Stop function | `stopFunction` | `{ stopFunction: 'finalAnswer' }` | -| Function mode | `functionCallMode` | `{ functionCallMode: 'auto' }` | - -## Memory and Context - -```typescript -import { AxMemory } from '@ax-llm/ax'; - -const memory = new AxMemory(); - -// Multi-turn conversation -await gen.forward(llm, { userMessage: 'My name is Alice' }, { mem: memory }); -const r = await gen.forward(llm, { userMessage: 'What is my name?' }, { mem: memory }); -``` - -## Few-Shot Examples - -```typescript -const classifier = ax('reviewText:string -> sentiment:class "positive, negative, neutral"'); - -classifier.setExamples([ - { reviewText: 'I love this!', sentiment: 'positive' }, - { reviewText: 'Terrible.', sentiment: 'negative' }, - { reviewText: 'It works.', sentiment: 'neutral' }, -]); -``` - -## Common Patterns - -### Classification - -```typescript -const classifier = ax( - f() - .input('text', f.string()) - .output('category', f.class(['spam', 'ham', 'uncertain'])) - .output('confidence', f.number().min(0).max(1)) - .build() -); -``` - -### Extraction - -```typescript -const extractor = ax( - f() - .input('text', f.string()) - .output('entities', f.object({ - people: f.string().array(), - organizations: f.string().array(), - locations: f.string().array() - })) - .build() -); -``` - -### Multi-modal (Images) - -```typescript -const analyzer = ax( - f() - .input('image', f.image('Image to analyze')) - .input('question', f.string('Question').optional()) - .output('description', f.string()) - .output('objects', f.string().array()) - .build() -); - -const result = await analyzer.forward(llm, { - image: { mimeType: 'image/jpeg', data: base64Data }, - question: 'What objects are in this image?' -}); -``` - -### Chaining Generators - -```typescript -const researcher = ax('topic:string -> research:string, keyFacts:string[]'); -const writer = ax('research:string, keyFacts:string[] -> article:string'); - -const research = await researcher.forward(llm, { topic: 'AGI' }); -const draft = await writer.forward(llm, { research: research.research, keyFacts: research.keyFacts }); -``` - -## Error Handling - -```typescript -import { AxGenerateError, AxAIServiceError, AxAIServiceAbortedError } from '@ax-llm/ax'; - -try { - const result = await gen.forward(llm, { input: 'test' }); -} catch (error) { - if (error instanceof AxGenerateError) { - console.error('Generation failed:', error.details.model, error.details.signature); - } else if (error instanceof AxAIServiceAbortedError) { - console.log('Request was aborted'); - } else if (error instanceof AxAIServiceError) { - console.error('AI service error:', error.message); - } -} -``` - -## Debugging - -```typescript -import { axCreateDefaultColorLogger } from '@ax-llm/ax'; - -const result = await gen.forward(llm, { input: 'test' }, { - debug: true, - logger: axCreateDefaultColorLogger(), - // OpenTelemetry - tracer: openTelemetryTracer, - meter: openTelemetryMeter, -}); -``` - -## MCP Integration - -```typescript -import { AxMCPClient } from '@ax-llm/ax'; -import { AxMCPStdioTransport } from '@ax-llm/ax-tools'; - -// Stdio transport (local MCP server) -const transport = new AxMCPStdioTransport({ - command: 'npx', - args: ['-y', '@modelcontextprotocol/server-memory'], -}); - -const mcpClient = new AxMCPClient(transport, { debug: false }); -await mcpClient.init(); - -// Use with agent -const myAgent = agent('userMessage:string -> response:string', { - name: 'assistant', - description: 'An assistant with MCP tools', - functions: [mcpClient], -}); -``` - -### HTTP Transport (Remote MCP) - -```typescript -import { AxMCPStreambleHTTPTransport } from '@ax-llm/ax/mcp/transports/httpStreamTransport.js'; - -const transport = new AxMCPStreambleHTTPTransport('https://remote.mcp.pipedream.net', { - headers: { 'x-pd-project-id': projectId }, - authorization: `Bearer ${accessToken}`, -}); -``` - -### MCP Capabilities - -| Capability | Prefix | Description | -|---|---|---| -| Tools | *(none)* | Function calls | -| Prompts | `prompt_` | Prompt templates | -| Resources | `resource_` | File/data access | - -```typescript -const caps = mcpClient.getCapabilities(); -const functions = mcpClient.toFunction(); -``` - -### Function Overrides - -```typescript -const mcpClient = new AxMCPClient(transport, { - functionOverrides: [ - { name: 'search_documents', updates: { name: 'findDocs', description: 'Search docs' } } - ] -}); -``` - -## Type Reference - -```typescript -class AxGen { - forward(ai: AxAIService, values: IN, options?: AxProgramForwardOptions): Promise; - streamingForward(ai: AxAIService, values: IN, options?: AxProgramStreamingForwardOptions): AsyncGenerator<{ delta: Partial }>; - setExamples(examples: Array>): void; - addAssert(fn: (output: OUT) => boolean, message?: string): void; - addFieldProcessor(field: keyof OUT, fn: (value: any) => any): void; - addStreamingFieldProcessor(field: keyof OUT, fn: (chunk: string, ctx: any) => void): void; - stop(): void; -} - -class AxAgent { - forward(ai: AxAIService, values: IN, options?: AxAgentOptions): Promise; - streamingForward(ai: AxAIService, values: IN, options?: AxAgentOptions): AsyncGenerator<{ delta: Partial }>; - getFunction(): AxFunction; -} - -class AxFlow { - node(name: string, signature: string | AxSignature): AxFlow; - execute(name: string, mapper: (state) => any): AxFlow; - returns(mapper: (state) => OUT): AxFlow; - forward(ai: AxAIService, values: IN): Promise; -} -``` - -## Examples - -Fetch these for full working code: - -- [Chat](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/chat.ts) — multi-turn conversation -- [Marketing](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/marketing.ts) — product use case -- [MCP Integration](https://raw.githubusercontent.com/ax-llm/ax/refs/heads/main/src/examples/mcp-client-memory.ts) — MCP integration diff --git a/.dockerignore b/.dockerignore index 6e2c557..c8fb40f 100644 --- a/.dockerignore +++ b/.dockerignore @@ -13,6 +13,5 @@ UI-UX *.md !README.md docker-compose*.yml -render.yaml .env* *.log diff --git a/.gitattributes b/.gitattributes index d8fe471..60dc9e7 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,60 +1,3 @@ -# Sprint 12 Task 1 Blocker #1 (2026-04-22): -# Pin benchmark canonical archive + meta to byte-exact treatment. The -# dataset_version hash is computed over the raw bytes at runtime (see -# benchmarks/harness/src/datasets.ts getDatasetVersion). If Git converts -# line endings on checkout the hash drifts per-platform, breaking -# H-AUDIT-2 replication across Windows/macOS/Linux clones. `-text` marks -# these files as binary — no auto-conversion regardless of autocrlf. -benchmarks/data/locomo/locomo-1540.jsonl -text -benchmarks/data/locomo/locomo-1540.meta.json -text - -# Sprint 12 Task 2.5 Stage 3 (2026-04-24): -# Same byte-exact treatment for pre-registration manifests. The YAML + -# md SHA-256 recorded in the anchor commit message is computed against -# these files' on-disk bytes; we need checkout bytes to match across -# platforms so any auditor can re-verify the hash after `git clone`. -benchmarks/results/manifest-*.md -text -benchmarks/results/manifest-*.yaml -text -benchmarks/results/stage*-gate-*.md -text -benchmarks/results/stage*-gate-*.jsonl -text - -# Sprint 12 Task 2.5 Stage 3 (v5 emission 2026-04-24): -# Pre-registration manifests relocated to benchmarks/preregistration/ per -# PM brief §Step 1. Same byte-exact treatment as v4. -benchmarks/preregistration/manifest-*.md -text -benchmarks/preregistration/manifest-*.yaml -text - -# Sprint 12 Task 2.5 Stage 3 §1.3f (2026-04-24): -# Vertex Batch eligibility probe artefacts — byte-exact audit. -benchmarks/probes/**/*.log -text -benchmarks/probes/**/*.jsonl -text -benchmarks/probes/**/*.py -text -benchmarks/probes/**/*.md -text - -# Sprint 12 Task 2.5 Stage 3 v6 N=400 final deliverables (2026-04-25): -# Same byte-exact treatment for the agentic-cell evidence JSONL + Phase C -# 5-cell summary / Fisher analysis / memo. The agentic JSONL feeds the -# H1 secondary-endpoint S4 reproducibility chain (see commit message body -# for the file-level SHA-256 capture). -benchmarks/results/stage3-n400-v6-*.md -text -benchmarks/results/agentic-locomo-2026-04-25T*.jsonl -text -benchmarks/results/agentic-locomo-2026-04-25T*.summary.json -text - -# v6 self-judge re-evaluation (2026-04-25): apples-to-apples vs Mem0. -# Same byte-exact treatment for the 2000-record results JSONL + comparison -# md + memo. SHA-256 of these files captured in commit message body. -benchmarks/results/v6-self-judge-rebench/*.jsonl -text -benchmarks/results/v6-self-judge-rebench/*.md -text - -# Agentic knowledge work pilot 2026-04-26 (FAIL verdict). All artefacts -# byte-exact pinned for audit. SHA-256s captured in commit body. -benchmarks/results/pilot-2026-04-26/*.jsonl -text -benchmarks/results/pilot-2026-04-26/*.json -text -benchmarks/results/pilot-2026-04-26/*.log -text -benchmarks/results/pilot-2026-04-26/prompts-archive/*.md -text -benchmarks/results/pilot-2026-04-26/invalidated/*.jsonl -text -decisions/*.md -text - # Installer arc (steal #5, 2026-07-10): the shell installer + process manager # are consumed by `curl | bash` on Linux/macOS. A CRLF checkout would break the # shebang and `read`/`printf` parsing, so pin them to LF regardless of core.autocrlf. diff --git a/.github/sync.md b/.github/sync.md deleted file mode 100644 index 0f6ce31..0000000 --- a/.github/sync.md +++ /dev/null @@ -1,241 +0,0 @@ -> **⚠️ DEPRECATED (2026-04-30 monorepo migration) — HISTORICAL/AUDIT REFERENCE ONLY.** -> This manual describes the retired dual-repo bidirectional-sync mechanism. The canonical -> substrate now lives only at **`packages/hive-mind-core/src/{mind,harvest}/`**. Its public -> mirror has a different layout and is updated through a maintainer-curated forward-port that -> removes excluded files and interleaved `install_audit` logic. A raw subtree split is unsafe -> and must never be pushed; [`scripts/oss-subtree-split.sh`](../scripts/oss-subtree-split.sh) -> is inspection-only. The workflows below are inert deprecation anchors because their old -> `packages/core/src/...` trigger paths no longer exist. Everything after this banner is -> historical and must not be treated as current instructions. See AGENTS.md §7.5 and -> [`packages/hive-mind-core/CONTRIBUTING.md`](../packages/hive-mind-core/CONTRIBUTING.md). - ---- - -# Memory Substrate Sync — `waggle-os` ↔ `hive-mind` - -This document is the operating manual for the two GitHub Actions workflows -that keep `packages/core/src/mind/` and `packages/core/src/harvest/` in -sync with the OSS release artifact at -[`marolinik/hive-mind`](https://github.com/marolinik/hive-mind). - -> **Audience:** anyone modifying files under `packages/core/src/mind/` or -> `packages/core/src/harvest/`. If you only touch `packages/agent/`, -> `packages/server/`, `apps/web/`, etc., none of this applies — those -> paths are explicitly Waggle-only per -> [`hive-mind/EXTRACTION.md`](https://github.com/marolinik/hive-mind/blob/master/EXTRACTION.md). - ---- - -## TL;DR - -| What you did | What happens | -|--------------|--------------| -| Modify `packages/core/src/mind/foo.ts` and open a PR | `mind-parity-check` runs hive-mind's tests against your change. Failure blocks merge unless allowlisted. | -| Merge the PR to `main` | `sync-mind-to-hive-mind` opens a PR on `marolinik/hive-mind` with the filtered diff. Manual review there before merge. | -| Want to skip a parity test that's intentionally divergent | Add the basename to `.parity-allowlist` with a comment explaining why. | -| Modify `packages/core/src/mind/vault.ts` (NOT-extracted) | Sync workflow filters this out automatically — nothing leaks to hive-mind. | - ---- - -## Why this exists - -Both repos carry their own copy of `packages/core/src/mind/` and -`packages/core/src/harvest/`. The audit at -`PM-Waggle-OS/decisions/2026-04-26-memory-sync-audit.md` documented the -status quo before this workflow shipped: - -- No automated sync existed; bug fixes flowed in both directions ad-hoc. -- Two production bug fixes that landed in hive-mind never made it back - to waggle-os until the manual Step 1 backport (commits `89c1004` + - `fed4a20`). -- The OSS release artifact and the production substrate had silently - drifted in 2/19 mind/ files. - -The two workflows below close that gap. Their goal is **detection + -human-reviewed propagation**, never automatic merge. - ---- - -## Workflow 1 — `mind-parity-check.yml` - -**File:** `.github/workflows/mind-parity-check.yml` -**Trigger:** PR or push to `main` that touches `packages/core/src/mind/`, -`packages/core/src/harvest/`, or `packages/core/tests/mind/`. -**Outcome:** test-pass = ✅ block-clear; test-fail = ❌ merge blocked. - -### What it does, step by step - -1. Checks out **both** repos — waggle-os in `./waggle-os/`, hive-mind - master in `./hive-mind/`. -2. Runs the **waggle-os baseline** mind/ test suite. This is the - committed Step 2 ports plus all pre-existing waggle-os mind/ tests. - If this fails, the PR is rejected on a regular regression — same as - any other failing test. -3. **Injects** the latest hive-mind tests into the waggle-os checkout - under `-hive-mind.test.ts` filenames, with import paths - adapted via `sed` from `./*.js` to `../../src/mind/*.js`. Three rules - govern what gets injected: - - **`.parity-allowlist`**: filenames listed here are skipped entirely. - - **Already-committed `-hive-mind` file**: kept as-is. The committed - version (typically a Step 2 port with bespoke header comments - documenting provenance and adaptation rationale) is what the parity - check exercises — overwriting it with the latest hive-mind verbatim - content would silently drop those headers and any waggle-os-side - adaptations. - - **No collision**: copy hive-mind file as `-hive-mind.test.ts` - into `tests/mind/`, sed the imports. -4. Runs the **combined suite** (waggle-os baseline + injected - hive-mind tests). If hive-mind has added new test cases since the - last Step 2 port, they'll surface here. Failure here means waggle-os - has accidentally diverged from hive-mind's surface contract. -5. Emits an **informational diff** of shared substrate file sizes — - not a gate, just visibility. - -### When it fails - -| Failure mode | What it means | What to do | -|--------------|---------------|------------| -| Baseline waggle-os mind/ tests fail | Regular regression | Fix your change | -| `-hive-mind.test.ts` (suffixed) fails | hive-mind tests a behavior waggle-os doesn't honor any more | Decide: (a) accept and fix waggle-os to match hive-mind, OR (b) document intentional divergence and add to `.parity-allowlist` | -| Test fails because of import-path adaptation drift | hive-mind reorganized imports | Update the `sed` rules in `mind-parity-check.yml` | -| `db-hive-mind.test.ts` fails (always — see allowlist) | The proprietary-tables-must-be-absent assertion mismatches Waggle's schema | This is in `.parity-allowlist` already; if you removed it, restore it | - -### `.parity-allowlist` policy - -The file at the repo root lists test basenames whose verbatim hive-mind -copy is intentionally skipped during the parity check. - -``` -# Comment describing why this entry exists -file-name.test.ts -``` - -**Adding an entry** requires a comment line directly above with the -divergence rationale and at least one cross-reference (EXTRACTION.md -section, PM-Waggle-OS memo, or related PR). - -**Removing an entry** is allowed only when the divergence is resolved -— either hive-mind upstream changed or waggle-os adopted the upstream -behavior. Re-running parity check should pass without the entry first. - -The current single entry is `db-hive-mind.test.ts` because hive-mind's -`db.test.ts` asserts proprietary tables (ai_interactions, -execution_traces, evolution_runs, improvement_signals, install_audit) -MUST BE ABSENT — its OSS-scrub guarantee. Waggle-os carries those -tables legitimately. The waggle-os adaptation lives in committed -`db.test.ts` (no suffix) which splits the original assertion into "OSS -shared must exist" (verbatim from hive-mind) + "Waggle-specific must -exist" (inverted). See -`PM-Waggle-OS/decisions/2026-04-26-memory-sync-step2-test-port-results.md`. - ---- - -## Workflow 2 — `sync-mind.yml` - -**File:** `.github/workflows/sync-mind.yml` -**Trigger:** push to `main` that touches `packages/core/src/mind/` or -`packages/core/src/harvest/`. -**Outcome:** opens a PR on `marolinik/hive-mind` with the filtered -diff. **Never auto-merges.** The PR sits for manual review on the -hive-mind side. - -### Direction note (binding) - -This workflow implements ONLY the **waggle-os → hive-mind** direction. -The empirically primary direction (**hive-mind → waggle-os**) requires -a workflow living **inside the hive-mind repo**, which is out of scope -for the waggle-os Step 3 PR. It will be added via a sibling PR to -hive-mind once Step 3 here is ratified by PM. The current Memory Sync -Repair audit shows hive-mind is the more active substrate repo (ahead -in 2/5 audit dimensions, +14 organic test files), so the -hive-mind-side workflow carries the heavier production burden. - -### Filter list — NOT-extracted paths - -The workflow excludes these paths from the patch — leaking them into -hive-mind would put Waggle-specific code into the Apache-2.0 release -artifact: - -``` -packages/core/src/mind/vault.ts -packages/core/src/mind/evolution-runs.ts -packages/core/src/mind/execution-traces.ts -packages/core/src/mind/improvement-signals.ts -packages/core/src/compliance/** -``` - -This list mirrors the "NOT Extracted" section of -[`hive-mind/EXTRACTION.md`](https://github.com/marolinik/hive-mind/blob/master/EXTRACTION.md). -**If you add a new NOT-extracted file, update the workflow's -`excluded_paths` array AND EXTRACTION.md in the same PR** — otherwise -the file will leak on the next mind/ push. - -### Setup — `HIVE_MIND_SYNC_TOKEN` - -This workflow needs a fine-grained PAT scoped to `marolinik/hive-mind` -with `pull_request: write` + `contents: write` permissions. Marko -configures it via: - -```bash -gh secret set HIVE_MIND_SYNC_TOKEN --repo marolinik/waggle-os -gh variable set MIND_SYNC_ENABLED --body 'true' --repo marolinik/waggle-os -``` - -The `MIND_SYNC_ENABLED` repository variable is the kill switch — set -it to `false` to disable the workflow entirely without removing the -secret. The workflow's `if:` condition checks this before running. - -If `HIVE_MIND_SYNC_TOKEN` is unset, the workflow fails fast with a -clear error rather than silently skipping. - -### When the patch doesn't apply - -`git apply --3way` falls back to a 3-way merge when the index -mismatch is small. If even that fails, the workflow exits with an -error pointing to the source SHA. Manual reconciliation: - -1. Check out hive-mind master locally. -2. `git apply` the patch from the workflow run's - `sync-patch-` artifact. -3. Resolve conflicts; commit on a branch named - `auto-sync/waggle-os-`. -4. Open the PR by hand following the same body template. - -This is rare in practice because hive-mind's mind/ files are mostly -verbatim extractions of waggle-os's — any genuine conflict means -hive-mind has its own change at the same lines, which is exactly the -case the human review is supposed to catch. - ---- - -## Bidirectional bug fix protocol - -When you find a bug whose fix should go into BOTH repos: - -1. Fix it in waggle-os first (production-impacted). -2. Merge to waggle-os main → `sync-mind.yml` auto-opens a hive-mind PR. -3. Review and merge the hive-mind PR. -4. Confirm the next `mind-parity-check` on waggle-os main is green — - that closes the loop. - -When the bug originates in hive-mind (e.g. an upstream contributor -reports it): - -1. Wait for the hive-mind PR (or open it yourself). -2. After it merges, the eventual hive-mind→waggle-os auto-PR (when - that workflow ships) will pick it up. -3. Until then, manual cherry-pick to waggle-os, identical to Step 1 - of the original sync repair (see Step 1 results memo at - `PM-Waggle-OS/decisions/2026-04-26-memory-sync-step1-results.md` - for the canonical pattern: commit message references hive-mind SHA - verbatim). - ---- - -## Cross-references - -- Audit + 3-step plan: `PM-Waggle-OS/decisions/2026-04-26-memory-sync-audit.md` -- Step 1 results (forward-port + bidirectional audit): `PM-Waggle-OS/decisions/2026-04-26-memory-sync-step1-results.md` -- Step 2 results (test port): `PM-Waggle-OS/decisions/2026-04-26-memory-sync-step2-test-port-results.md` -- Step 3 results (this workflow): `PM-Waggle-OS/decisions/2026-04-26-memory-sync-step3-cicd-results.md` -- EXTRACTION.md: `D:\Projects\hive-mind\EXTRACTION.md` (or [GitHub link](https://github.com/marolinik/hive-mind/blob/master/EXTRACTION.md)) diff --git a/.github/workflows/mind-parity-check.yml b/.github/workflows/mind-parity-check.yml deleted file mode 100644 index ea3cd00..0000000 --- a/.github/workflows/mind-parity-check.yml +++ /dev/null @@ -1,183 +0,0 @@ -name: mind-parity-check - -# DEPRECATED 2026-04-30 — CC Sesija B monorepo migration §2.6 Task B22. -# -# This workflow ran the (then-external) hive-mind repo's mind/+harvest/ tests -# against waggle-os's substrate to verify behavioral parity while the same code -# lived in both repos. After CC Sesija B migration, the substrate lives ONLY in -# waggle-os/packages/hive-mind-core/. The OSS mirror at -# github.com/marolinik/hive-mind is a separately curated layout produced from -# that canonical source. It is intentionally not byte-identical: imports and -# layout differ, and excluded files plus interleaved `install_audit` logic are -# removed during the maintainer-reviewed forward-port. -# -# This workflow is preserved as the deprecation anchor. It will NOT fire on -# push because trigger paths (packages/core/src/mind/**) no longer exist as -# tracked content. See sync-mind.yml's deprecation note for the full migration -# context. Do not reactivate this injection workflow as a substitute for the -# current drift review, curated export, and public-mirror test gates. - -# Memory Sync Repair Step 3.1. Verifies that hive-mind's mind/ + harvest/ -# tests pass against waggle-os's substrate. The check runs the waggle-os -# committed Step 2 ports (which include adapted versions like db.test.ts) -# AS BASELINE, then ALSO injects the latest hive-mind tests into the -# waggle-os checkout under `-hive-mind.test.ts` filenames so -# any NEW hive-mind cases since the Step 2 port get exercised. -# -# Triggers ONLY when shared substrate paths change. Failure blocks merge -# unless the failing test is allowlisted in `.parity-allowlist` at the -# repo root with a documented reason. -# -# See `.github/sync.md` for full design rationale and allowlist policy. - -on: - push: - branches: [main] - paths: - - 'packages/core/src/mind/**' - - 'packages/core/src/harvest/**' - - 'packages/core/tests/mind/**' - pull_request: - branches: [main] - paths: - - 'packages/core/src/mind/**' - - 'packages/core/src/harvest/**' - - 'packages/core/tests/mind/**' - -concurrency: - group: mind-parity-${{ github.ref }} - cancel-in-progress: true - -jobs: - parity-check: - # Permanently inert deprecation anchor. The old test-injection model is not a - # safe substitute for the curated forward-port and drift-review workflow. - if: ${{ false }} - name: hive-mind ↔ waggle-os mind substrate parity - runs-on: ubuntu-latest - timeout-minutes: 15 - - steps: - - name: Checkout waggle-os - uses: actions/checkout@v4 - with: - path: waggle-os - - - name: Checkout hive-mind master - uses: actions/checkout@v4 - with: - repository: marolinik/hive-mind - ref: master - path: hive-mind - - - name: Setup Node 20 - uses: actions/setup-node@v4 - with: - node-version: 20 - - - name: Cache npm dependencies - uses: actions/cache@v4 - with: - path: ~/.npm - key: ${{ runner.os }}-npm-${{ hashFiles('waggle-os/**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-npm- - - - name: Install waggle-os dependencies - working-directory: waggle-os - run: npm install - - - name: Run waggle-os baseline mind/ tests (committed Step 2 ports) - working-directory: waggle-os - run: npx vitest run --reporter=default packages/core/tests/mind/ - - - name: Inject latest hive-mind tests as -hive-mind suffix files - working-directory: waggle-os - run: | - set -euo pipefail - - allowlist_file=".parity-allowlist" - allowlist_basenames=() - if [ -f "$allowlist_file" ]; then - while IFS= read -r line; do - # Strip comments + leading/trailing whitespace; skip blanks - clean="${line%%#*}" - clean="$(echo "$clean" | tr -d '[:space:]')" - [ -z "$clean" ] && continue - allowlist_basenames+=("$clean") - done < "$allowlist_file" - echo "Allowlist entries: ${allowlist_basenames[@]:-}" - else - echo "No .parity-allowlist file present — no skips." - fi - - # Helper: is a basename in the allowlist? - is_allowlisted() { - local name="$1" - for a in "${allowlist_basenames[@]:-}"; do - [ "$a" = "$name" ] && return 0 - done - return 1 - } - - target_dir="packages/core/tests/mind" - source_dir="../hive-mind/packages/core/src/mind" - injected=0 - skipped=0 - - already_committed=0 - for src in "$source_dir"/*.test.ts; do - [ -e "$src" ] || continue - base="$(basename "$src" .test.ts)" - target_name="${base}-hive-mind.test.ts" - target_path="$target_dir/$target_name" - - if is_allowlisted "$target_name"; then - echo " SKIP (allowlist): $target_name" - skipped=$((skipped + 1)) - continue - fi - - if [ -f "$target_path" ]; then - # File is committed (Step 2 port). Preserve its bespoke - # header comments + any waggle-os adaptations. The - # committed version IS what the parity check should - # exercise — it's exactly what landed in main. - already_committed=$((already_committed + 1)) - echo " KEEP (committed): $target_name" - continue - fi - - cp "$src" "$target_path" - # Adapt import paths from hive-mind's adjacent style (`./x.js`) to - # waggle-os's separate-tests-folder style (`../../src/mind/x.js`). - sed -i "s|from \"\\./|from \"../../src/mind/|g" "$target_path" - sed -i "s|from '\\./|from '../../src/mind/|g" "$target_path" - injected=$((injected + 1)) - echo " INJECT: $target_name" - done - - echo "" - echo "Injected: $injected new hive-mind test file(s) under -hive-mind suffix" - echo "Kept: $already_committed already-committed Step 2 port file(s)" - echo "Skipped: $skipped allowlisted file(s)" - - - name: Run combined waggle-os + injected hive-mind suite - working-directory: waggle-os - run: npx vitest run --reporter=default packages/core/tests/mind/ - - - name: Informational diff — shared substrate file sizes - working-directory: waggle-os - if: always() - run: | - echo "## Substrate file size comparison (informational)" - for f in db.ts schema.ts frames.ts search.ts knowledge.ts identity.ts awareness.ts sessions.ts scoring.ts reconcile.ts ontology.ts concept-tracker.ts entity-normalizer.ts embedding-provider.ts inprocess-embedder.ts; do - wf="packages/core/src/mind/$f" - hf="../hive-mind/packages/core/src/mind/$f" - if [ -f "$wf" ] && [ -f "$hf" ]; then - wsize=$(wc -c < "$wf") - hsize=$(wc -c < "$hf") - diff_pct=$(awk -v w="$wsize" -v h="$hsize" 'BEGIN { if (h == 0) print "n/a"; else printf "%.1f%%", ((w - h) / h) * 100 }') - echo " $f: waggle-os=$wsize hive-mind=$hsize delta=$diff_pct" - fi - done diff --git a/.github/workflows/sync-mind.yml b/.github/workflows/sync-mind.yml deleted file mode 100644 index 0b02c46..0000000 --- a/.github/workflows/sync-mind.yml +++ /dev/null @@ -1,233 +0,0 @@ -name: sync-mind-to-hive-mind - -# DEPRECATED 2026-04-30 — CC Sesija B monorepo migration §2.6 Task B22. -# -# This workflow was the bidirectional-sync mechanism between waggle-os and the -# public `marolinik/hive-mind` repo while substrate code lived in BOTH -# places (packages/core/src/mind/ + packages/core/src/harvest/ in waggle-os, -# duplicated in hive-mind/packages/core/src/{mind,harvest}/). -# -# After CC Sesija B migration (commits ff5b4aa..b59d188 on -# feature/hive-mind-monorepo-migration), the substrate lives ONLY in -# waggle-os/packages/hive-mind-core/. The public mirror now has a curated layout -# and is updated through a maintainer-reviewed forward-port that removes excluded -# files and interleaved `install_audit` logic. Raw subtree branches are unsafe -# publish sources; see `packages/hive-mind-core/CONTRIBUTING.md`. -# -# This workflow is preserved for AUDIT TRAIL purposes (the historical -# trigger paths and concurrency settings are referenced in EXTRACTION.md and -# the .github/sync.md operating manual). It will NOT fire on push because the -# trigger paths (packages/core/src/mind/** + packages/core/src/harvest/**) no -# longer exist as tracked content — they were git-mv'd to packages/hive-mind-core/ -# on commit 3b556c0. -# -# DO NOT delete this file as part of cleanup — leave it as the deprecation -# anchor. Do not reactivate it by changing trigger paths: its filtered-patch -# model cannot safely remove interleaved proprietary schema logic. Build any -# future automation from the curated-forward-port contract instead. - -# Memory Sync Repair Step 3.2 — waggle-os → hive-mind direction. -# -# Triggered when waggle-os main receives a push that touches shared -# substrate paths (mind/ or harvest/), this workflow extracts the -# filtered diff (excluding NOT-extracted files per EXTRACTION.md), opens -# a PR against marolinik/hive-mind master with the patch applied, and -# tags the PR with the source SHA. -# -# This is the SECONDARY direction empirically — Steps 1+2 found -# hive-mind is the more active substrate repo (ahead in 2/5 audit -# dimensions, +14 organic test files). The PRIMARY direction -# (hive-mind push → auto-PR ka waggle-os) is intentionally NOT -# implemented in this file because it requires a workflow living in -# the hive-mind repo, which is out of CC-2 scope. It will be added -# via a sibling PR to hive-mind once Step 3 here is ratified. -# -# See `.github/sync.md` for full design rationale, EXTRACTION.md -# filter list, and how to extend bidirectional sync. - -on: - push: - branches: [main] - paths: - - 'packages/core/src/mind/**' - - 'packages/core/src/harvest/**' - -concurrency: - group: sync-mind-${{ github.ref }} - # Don't cancel — every main push to mind/ or harvest/ deserves its own - # sync attempt (the resulting hive-mind PR is per-commit traceable). - cancel-in-progress: false - -jobs: - open-hive-mind-pr: - # Permanently inert deprecation anchor. This filtered-patch publisher cannot - # enforce the current interleaved proprietary-content boundary. - name: Open auto-sync PR to marolinik/hive-mind - runs-on: ubuntu-latest - timeout-minutes: 10 - - # `HIVE_MIND_SYNC_TOKEN` is a fine-grained PAT scoped to - # marolinik/hive-mind with `pull_request: write` + `contents: write`. - # Configured by Marko via `gh secret set HIVE_MIND_SYNC_TOKEN`. - # Without the secret, the job fails fast with a documented error - # rather than silently skipping. - if: ${{ false }} - - steps: - - name: Checkout waggle-os (full history for the diff) - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Verify HIVE_MIND_SYNC_TOKEN is configured - run: | - if [ -z "${{ secrets.HIVE_MIND_SYNC_TOKEN }}" ]; then - echo "::error::HIVE_MIND_SYNC_TOKEN secret is not configured." - echo "::error::Run: gh secret set HIVE_MIND_SYNC_TOKEN --repo marolinik/waggle-os" - echo "::error::See .github/sync.md for full setup instructions." - exit 1 - fi - - - name: Compute filtered diff (exclude NOT-extracted paths) - id: diff - run: | - set -euo pipefail - - # Files that MUST be excluded from sync per EXTRACTION.md - # "NOT Extracted" section. Sync attempts that include these paths - # would leak Waggle-specific code (vault, compliance, evolution, - # tier system) into the hive-mind Apache-2.0 release artifact. - excluded_paths=( - 'packages/core/src/mind/vault.ts' - 'packages/core/src/mind/evolution-runs.ts' - 'packages/core/src/mind/execution-traces.ts' - 'packages/core/src/mind/improvement-signals.ts' - 'packages/core/src/compliance' - ) - - # Build the rev range. `${{ github.event.before }}` is the parent - # commit of this push; `${{ github.sha }}` is the new HEAD. For a - # branch's first push or a force-push, `before` may be all-zeros; - # in that case fall back to the previous merge-base via reflog. - before_sha='${{ github.event.before }}' - after_sha='${{ github.sha }}' - if [ "$before_sha" = "0000000000000000000000000000000000000000" ]; then - echo "::warning::push has no `before` SHA — falling back to HEAD~1" - before_sha="$(git rev-parse HEAD~1)" - fi - - # All shared-substrate files in this push, before exclusion. - changed=$(git diff --name-only "$before_sha" "$after_sha" -- \ - 'packages/core/src/mind/**' 'packages/core/src/harvest/**') - - # Apply EXTRACTION.md "NOT extracted" exclusions. - filtered_files=() - while IFS= read -r f; do - [ -z "$f" ] && continue - skip=false - for excl in "${excluded_paths[@]}"; do - case "$f" in - "$excl"|"$excl"/*) - skip=true - break - ;; - esac - done - $skip || filtered_files+=("$f") - done <<< "$changed" - - if [ ${#filtered_files[@]} -eq 0 ]; then - echo "No syncable changes after EXTRACTION.md filtering." - echo "skip=true" >> "$GITHUB_OUTPUT" - exit 0 - fi - - echo "Files to sync:" - printf ' %s\n' "${filtered_files[@]}" - - # Generate a patch limited to the filtered files. This patch will - # apply to hive-mind because the directory layout matches: - # waggle-os `packages/core/src/{mind,harvest}/...` ↔ - # hive-mind `packages/core/src/{mind,harvest}/...`. - mkdir -p .sync-output - git diff "$before_sha" "$after_sha" -- "${filtered_files[@]}" > .sync-output/patch.diff - - # Capture the original commit subjects for the PR description. - git log --format='- %h %s' "$before_sha".."$after_sha" -- "${filtered_files[@]}" > .sync-output/commits.txt - - echo "skip=false" >> "$GITHUB_OUTPUT" - echo "after_sha=$after_sha" >> "$GITHUB_OUTPUT" - echo "after_short=$(git rev-parse --short "$after_sha")" >> "$GITHUB_OUTPUT" - echo "first_subject=$(git log -1 --format=%s "$after_sha")" >> "$GITHUB_OUTPUT" - - - name: Checkout hive-mind for patch application - if: steps.diff.outputs.skip != 'true' - uses: actions/checkout@v4 - with: - repository: marolinik/hive-mind - ref: master - token: ${{ secrets.HIVE_MIND_SYNC_TOKEN }} - path: hive-mind - fetch-depth: 0 - - - name: Apply patch to hive-mind branch + push - if: steps.diff.outputs.skip != 'true' - working-directory: hive-mind - env: - GH_TOKEN: ${{ secrets.HIVE_MIND_SYNC_TOKEN }} - run: | - set -euo pipefail - - branch_name="auto-sync/waggle-os-${{ steps.diff.outputs.after_short }}" - git config user.name 'waggle-os-sync-bot' - git config user.email 'sync-bot@waggle-os.ai' - git checkout -b "$branch_name" - - # Apply the filtered patch. The waggle-os layout is identical - # under packages/core/src/{mind,harvest}/ so the patch applies - # directly without `--directory` rewriting. - if ! git apply --3way ../.sync-output/patch.diff; then - echo "::error::Patch did not apply cleanly. Manual reconciliation required." - echo "::error::Source SHA: ${{ steps.diff.outputs.after_sha }}" - exit 1 - fi - - git add -A - git commit -m "chore(sync): auto-sync from waggle-os@${{ steps.diff.outputs.after_short }} - - Source: marolinik/waggle-os main @ ${{ steps.diff.outputs.after_sha }} - Subject: ${{ steps.diff.outputs.first_subject }} - - See PR description for the full list of waggle-os commits in this batch." - - git push origin "$branch_name" - - - name: Open PR on hive-mind - if: steps.diff.outputs.skip != 'true' - working-directory: hive-mind - env: - GH_TOKEN: ${{ secrets.HIVE_MIND_SYNC_TOKEN }} - run: | - set -euo pipefail - branch_name="auto-sync/waggle-os-${{ steps.diff.outputs.after_short }}" - commit_list="$(cat ../.sync-output/commits.txt)" - - gh pr create \ - --repo marolinik/hive-mind \ - --base master \ - --head "$branch_name" \ - --title "auto-sync from waggle-os@${{ steps.diff.outputs.after_short }}: ${{ steps.diff.outputs.first_subject }}" \ - --body "$(printf 'Automated cross-repo sync — Memory Sync Repair Step 3.2 (waggle-os → hive-mind direction).\n\n## Source\n- Repo: marolinik/waggle-os\n- Branch: main\n- HEAD: %s\n- Workflow run: %s/%s/actions/runs/%s\n\n## Filtering\nThis patch was filtered to exclude paths listed under "NOT Extracted" in EXTRACTION.md:\n- packages/core/src/mind/vault.ts\n- packages/core/src/mind/evolution-runs.ts\n- packages/core/src/mind/execution-traces.ts\n- packages/core/src/mind/improvement-signals.ts\n- packages/core/src/compliance\n\n## Originating commits in this batch\n\n%s\n\n## Review checklist\n- [ ] Patch applied cleanly to hive-mind master without 3-way conflicts\n- [ ] No NOT-extracted paths sneaked through (sanity-check the diff against EXTRACTION.md)\n- [ ] Test deltas (if any) make sense for the OSS surface; no Waggle-specific test fixtures\n- [ ] mind-parity-check on waggle-os side is GREEN before merging this PR (otherwise the sync would re-introduce a regression)' \ - "${{ steps.diff.outputs.after_sha }}" \ - "${{ github.server_url }}" \ - "${{ github.repository }}" \ - "${{ github.run_id }}" \ - "$commit_list")" - - - name: Upload patch as artifact (debug aid) - if: always() && steps.diff.outputs.skip != 'true' - uses: actions/upload-artifact@v4 - with: - name: sync-patch-${{ steps.diff.outputs.after_short }} - path: .sync-output/ - retention-days: 30 diff --git a/.gitignore b/.gitignore index ae711fd..deee6c1 100644 --- a/.gitignore +++ b/.gitignore @@ -38,142 +38,6 @@ marketplace.db *.pfx app/src-tauri/.thumbprint.txt -# Preflight gate per-query raw JSONs carry retrieved frame previews that -# originate from Marko's personal AI exports. The report .md stays commit- -# eligible (adapter counts, timing, verbatim questions + model answers -# only); per-query JSONs and scratch dirs do not. -preflight-results/stage-0-query-*.json -preflight-results/stage-0-tmp/ -preflight-results/stage-*-attempt-*.md -preflight-results/stage-*-exclusions.md - -# Benchmark harness — data + run outputs stay local -benchmarks/data/* -!benchmarks/data/.gitkeep -# Committed sample-lock artifacts (stratified picks from public LoCoMo). Small, -# diff-reviewable, required for reproducibility. Raw LoCoMo dumps stay local. -!benchmarks/data/preflight-locomo-50.json -!benchmarks/data/failure-mode-calibration-10.jsonl -# Sprint 12 Task 1 Blocker #1 — canonical LoCoMo eval archive (1531 instances, -# derived from snap-research/locomo10.json via scripts/build-locomo-canonical.ts). -# Committed for hash determinism across clones + CI + H-AUDIT-2 replication. -!benchmarks/data/locomo/ -!benchmarks/data/locomo/locomo-1540.jsonl -!benchmarks/data/locomo/locomo-1540.meta.json -# LME V1 canonical outputs — meta.json is tracked; large JSONL + raw JSON are not. -# Re-ignore the dir's contents (the `!dir/` negation re-includes everything; the -# single-level `data/*` above does not cover nested files) then whitelist meta. -!benchmarks/data/longmemeval/ -benchmarks/data/longmemeval/* -!benchmarks/data/longmemeval/longmemeval.meta.json -# BEAM canonical meta — same pattern -!benchmarks/data/beam/ -benchmarks/data/beam/* -!benchmarks/data/beam/beam-128K.meta.json -!benchmarks/data/beam/beam-1M.meta.json -# Memori replication corpus + outputs stay local (large; not source). -benchmarks/memori-replication/ -benchmarks/results/* -!benchmarks/results/.gitkeep -# Sprint 12 Task 2.5 Stage 3 — per-stage manifest-adjacent audit artefacts: -# pre-registration anchors, clarification memos, RCA memos, probe logs. -# These are tamper-evident, NOT run output, so they MUST be tracked. -# Broadened 2026-04-24 for Stage 3 re-kick (Option A): clarification + -# RCA memos + Gate P+ probe log all need the same treatment. -!benchmarks/results/manifest-*.md -!benchmarks/results/manifest-*.yaml -!benchmarks/results/stage*-gate-*.md -!benchmarks/results/stage*-gate-*.jsonl -# Stage 3 v6 N=400 final deliverables (2026-04-25): cell-by-cell summary, -# Fisher H1 analysis, ≤300-word memo, and the agentic-cell evidence JSONL. -# Tracked under PM-RATIFY-V6-N400-COMPLETE; tamper-evident audit chain. -!benchmarks/results/stage3-n400-v6-*.md -!benchmarks/results/agentic-locomo-2026-04-25T*.jsonl -!benchmarks/results/agentic-locomo-2026-04-25T*.summary.json -# v6 self-judge re-evaluation (2026-04-25): apples-to-apples vs Mem0 -# methodology. 2000 records, side-by-side comparison, ≤300-word memo. -!benchmarks/results/v6-self-judge-rebench/ -!benchmarks/results/v6-self-judge-rebench/*.jsonl -!benchmarks/results/v6-self-judge-rebench/*.md -# Agentic knowledge work pilot 2026-04-26 (FAIL verdict, see -# decisions/2026-04-26-pilot-verdict-FAIL.md). 12 cell JSONLs + summary + -# run log + prompts archive + invalidated originals (audit-preserved). -!benchmarks/results/pilot-2026-04-26/ -!benchmarks/results/pilot-2026-04-26/*.jsonl -!benchmarks/results/pilot-2026-04-26/*.json -!benchmarks/results/pilot-2026-04-26/*.log -!benchmarks/results/pilot-2026-04-26/prompts-archive/ -!benchmarks/results/pilot-2026-04-26/prompts-archive/*.md -!benchmarks/results/pilot-2026-04-26/invalidated/ -!benchmarks/results/pilot-2026-04-26/invalidated/*.jsonl -# GEPA Faza 1 corpus + run logs + spot-audit reports + NULL/Gen1/held-out -# artefacts (per launch decision §G + manifest v7 §gepa). All instances + -# generation logs + checkpoint reports tracked for audit chain. -# Exception applies to BOTH the line-47 base pattern AND the line-98 -# `**/benchmarks/results/*` nested-mis-CWD catch (mirrors pilot-2026-04-26). -!benchmarks/results/gepa-faza1/ -!benchmarks/results/gepa-faza1/**/*.jsonl -!benchmarks/results/gepa-faza1/**/*.json -!benchmarks/results/gepa-faza1/**/*.md -!benchmarks/results/gepa-faza1/**/*.log -!benchmarks/results/gepa-faza1/**/*.yaml -!**/benchmarks/results/gepa-faza1 -!**/benchmarks/results/gepa-faza1/ -!**/benchmarks/results/gepa-faza1/** -# §1.3f Vertex Batch eligibility probe (2026-04-24): standalone probe -# artefacts outside §11 frozen paths. Logs + JSONL + script + memo all -# tracked; override the *.log line-3 wildcard for this specific folder. -!benchmarks/probes/**/*.log -!benchmarks/probes/**/*.jsonl -!benchmarks/probes/**/*.py -!benchmarks/probes/**/*.md -# Also catch nested mis-CWD writes (e.g. ran from benchmarks/harness/). -# Use a trailing `*` (not `/`) so the `!` exceptions above still apply. -**/benchmarks/results/* -# Canonical LoCoMo SOTA evidence — intentionally committed (see in-dir README). Do NOT remove: -# this exact swallow hid the 87.66 result from the repo (docs/analysis/locomo-sota-evidence-drift-2026-06-30.md). -!**/benchmarks/results/locomo-sota-2026-06/ -!**/benchmarks/results/locomo-sota-2026-06/** -**/benchmarks/data/* -!**/benchmarks/data/preflight-locomo-50.json -!**/benchmarks/data/failure-mode-calibration-10.jsonl -!**/benchmarks/data/locomo/ -!**/benchmarks/data/locomo/locomo-1540.jsonl -!**/benchmarks/data/locomo/locomo-1540.meta.json -!**/benchmarks/data/longmemeval/ -**/benchmarks/data/longmemeval/* -!**/benchmarks/data/longmemeval/longmemeval.meta.json -!**/benchmarks/data/beam/ -**/benchmarks/data/beam/* -!**/benchmarks/data/beam/beam-128K.meta.json -!**/benchmarks/data/beam/beam-1M.meta.json -!**/benchmarks/data/.gitkeep -!**/benchmarks/results/.gitkeep -!**/benchmarks/results/manifest-*.md -!**/benchmarks/results/manifest-*.yaml -!**/benchmarks/results/stage*-gate-*.md -!**/benchmarks/results/stage*-gate-*.jsonl -!**/benchmarks/results/stage3-n400-v6-*.md -!**/benchmarks/results/agentic-locomo-2026-04-25T*.jsonl -!**/benchmarks/results/agentic-locomo-2026-04-25T*.summary.json -!**/benchmarks/results/v6-self-judge-rebench/ -!**/benchmarks/results/v6-self-judge-rebench/*.jsonl -!**/benchmarks/results/v6-self-judge-rebench/*.md -!**/benchmarks/results/pilot-2026-04-26/ -!**/benchmarks/results/pilot-2026-04-26/*.jsonl -!**/benchmarks/results/pilot-2026-04-26/*.json -!**/benchmarks/results/pilot-2026-04-26/*.log -!**/benchmarks/results/pilot-2026-04-26/prompts-archive/ -!**/benchmarks/results/pilot-2026-04-26/prompts-archive/*.md -!**/benchmarks/results/pilot-2026-04-26/invalidated/ -!**/benchmarks/results/pilot-2026-04-26/invalidated/*.jsonl -# Sprint 11 A2 (ratification §Q5 Tier 2): `benchmarks/archive/` holds -# gzipped JSONL from launch-claim-supporting runs (H-42a/b full-run). -# Retention: 12 months minimum from commit per ratification §Q5. Files here -# ARE committed — do NOT gitignore the folder. Spring 11 only adds the -# folder + README; actual archival runs land in a later sprint. -!benchmarks/archive/ -!benchmarks/archive/** test-regression-*.log # SQLite WAL/SHM companions — always match the *.db they accompany marketplace.db-shm @@ -256,21 +120,6 @@ apps/www/lighthouse-report.json # Vision-harness capture output (regenerated per run) tests/vision/artifacts/ -# UX Refactor v2.1 handoff package — D10 doc-authority ruling (ratified -# 2026-06-10; register: docs/ux-refactor/deltas/open-questions.md, section -# "UX Refactor v2.1 — Ratification of Decision Register D1–D15"). -# Text sources stay TRACKED: PRD .md, Implementation Handoff .md, -# _blueprint_extracted.txt, NAMING-ERRATUM.md, and -# Waggle_OS_Handoff_Assets/{README.md,ASSET_MANIFEST.json}. -# Binary exports stay LOCAL-ONLY (~85 MB: pdf/docx/pptx + generated mockup -# png/jpg — mockups are visual direction, not authority; see the package's -# NAMING-ERRATUM.md for the authority chain). -docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/*.pdf -docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/*.docx -docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/*.pptx -docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/Waggle_OS_Handoff_Assets/*.png -docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/Waggle_OS_Handoff_Assets/*.jpg - # Internal / pre-OSS artifacts — kept on disk, excluded from the public repo. # These are currently tracked; run `git rm --cached ` once to stop tracking # them (the entries below keep them from being re-added). Root-anchored so nested @@ -284,26 +133,8 @@ docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/Waggle_OS_Handoff_Assets/*.jpg # divergent dependency graph from a stray `bun install`. bun.lock -# /understand tool trash — regenerable deleted-graph JSON, not for the public repo -.understand-anything/.trash* .gstack/ # Local plaintext API keys — never commit AI API KEYS.txt -# Sesija C external dependencies — vendored per-clone, not committed -# (ARE platform installed under external/meta-agents-research-environments; -# pinned SHA tracked in benchmarks/gaia2/README.md) -external/ - -# Sesija C per-run output dirs — large JSONL traces, not committed -# (Phase 2 smoke evidence summarized in benchmarks/gaia2/smoke-evidence.md; -# Phase 4 dry run JSONLs stay local + summarized in dry-run-results-memo.md) -benchmarks/gaia2/runs/* -!benchmarks/gaia2/runs/.gitkeep - -# Sesija C per-clone Gaia2 task dumps — produced by dump-tasks.py from HF, -# large JSONL (2.44–2.67M chars/scenario), not committed. Phase 3b-B -# regenerates locally; Phase 4 Docker run uses ARE-native HF loader directly. -benchmarks/gaia2/data/* -!benchmarks/gaia2/data/.gitkeep diff --git a/.lovable/plan.md b/.lovable/plan.md deleted file mode 100644 index 9f3f838..0000000 --- a/.lovable/plan.md +++ /dev/null @@ -1,23 +0,0 @@ - - -## Make App Windows Draggable - -### Problem -Windows currently use fixed `defaultPosition` via framer-motion `animate`, so they can't be repositioned by the user. - -### Approach -Use framer-motion's built-in `drag` prop on the window container, constrained by a `dragConstraints` ref (the desktop). The title bar acts as the drag handle via `dragListener={false}` on the main div + `dragControls` triggered from the title bar. - -### Changes - -**`src/components/os/AppWindow.tsx`** -- Add `useState` for `position` (initialized from `defaultPosition`) -- Use `useDragControls` from framer-motion -- Add `drag` prop to `motion.div` with `dragControls`, `dragMomentum={false}`, `dragListener={false}` -- Add `dragConstraints` prop (parent bounds or screen-based object) -- Title bar gets `onPointerDown` to start drag via `dragControls.start()` -- When maximized, disable drag -- Track position via `onDragEnd` to persist position across re-renders -- Remove the `x`/`y`/`top`/`left` from the `animate` prop (use `style` for initial positioning instead, so drag offset works correctly) -- Set `cursor-grab` / `cursor-grabbing` on title bar - diff --git a/.parity-allowlist b/.parity-allowlist deleted file mode 100644 index e85b19a..0000000 --- a/.parity-allowlist +++ /dev/null @@ -1,29 +0,0 @@ -# Memory Sync Repair — `mind-parity-check` allowlist -# -# Lines list test filenames (basename, e.g. `db-hive-mind.test.ts`) whose -# verbatim hive-mind copy is INTENTIONALLY skipped during the parity check -# because waggle-os has an adapted version under the natural name (e.g. -# `db.test.ts`) that handles a legitimate API divergence per -# `D:\Projects\hive-mind\EXTRACTION.md`. -# -# Format: one filename per line. `#` starts a comment. Blank lines ignored. -# -# Adding an entry: include a comment line directly above the entry that -# explains *why* the divergence exists (link to EXTRACTION.md section, PR, -# or PM-Waggle-OS decisions/ memo). -# -# Removing an entry: only when the divergence has been resolved (either -# hive-mind upstream changed or waggle-os adopted the upstream behavior). -# Re-running parity check should pass without the allowlist entry before -# removal lands. - -# `db-hive-mind.test.ts` — hive-mind asserts proprietary tables -# (ai_interactions, execution_traces, evolution_runs, improvement_signals, -# install_audit) MUST BE ABSENT, which is its OSS-scrub guarantee. Waggle-os -# legitimately carries those tables per EXTRACTION.md "NOT extracted" -# section. The waggle-os adaptation lives in committed `db.test.ts` (no -# suffix) which splits the original into "OSS shared must exist" (verbatim) -# + "Waggle-specific must exist" (inverted). See: -# - PM-Waggle-OS/decisions/2026-04-26-memory-sync-step2-test-port-results.md §2 -# - hive-mind EXTRACTION.md "NOT Extracted" section -db-hive-mind.test.ts diff --git a/.understand-anything/.understandignore b/.understand-anything/.understandignore deleted file mode 100644 index 1f9f20e..0000000 --- a/.understand-anything/.understandignore +++ /dev/null @@ -1,191 +0,0 @@ -# .understandignore — patterns for files/dirs to exclude from analysis -# Syntax: same as .gitignore (globs, # comments, ! negation, trailing / for dirs) -# Lines below are suggestions — uncomment to activate. -# Use ! prefix to force-include something excluded by defaults. -# -# Built-in defaults (always excluded unless negated): -# node_modules/, .git/, dist/, build/, obj/, *.lock, *.min.js, etc. -# - -# --- From .gitignore (uncomment to exclude) --- - -# .mcp.json -# logs -# npm-debug.log* -# yarn-debug.log* -# yarn-error.log* -# pnpm-debug.log* -# lerna-debug.log* -# dist-ssr -# *.local -# .env -# .env.local -# .env*.local -# .waggle/ -# *.mind -# marketplace.db -# *.pfx -# app/src-tauri/.thumbprint.txt -# preflight-results/stage-0-query-*.json -# preflight-results/stage-0-tmp/ -# preflight-results/stage-*-attempt-*.md -# preflight-results/stage-*-exclusions.md -# benchmarks/data/* -# !benchmarks/data/.gitkeep -# !benchmarks/data/preflight-locomo-50.json -# !benchmarks/data/failure-mode-calibration-10.jsonl -# !benchmarks/data/locomo/ -# !benchmarks/data/locomo/locomo-1540.jsonl -# !benchmarks/data/locomo/locomo-1540.meta.json -# !benchmarks/data/longmemeval/ -# benchmarks/data/longmemeval/* -# !benchmarks/data/longmemeval/longmemeval.meta.json -# !benchmarks/data/beam/ -# benchmarks/data/beam/* -# !benchmarks/data/beam/beam-128K.meta.json -# !benchmarks/data/beam/beam-1M.meta.json -# benchmarks/memori-replication/ -# benchmarks/results/* -# !benchmarks/results/.gitkeep -# !benchmarks/results/manifest-*.md -# !benchmarks/results/manifest-*.yaml -# !benchmarks/results/stage*-gate-*.md -# !benchmarks/results/stage*-gate-*.jsonl -# !benchmarks/results/stage3-n400-v6-*.md -# !benchmarks/results/agentic-locomo-2026-04-25T*.jsonl -# !benchmarks/results/agentic-locomo-2026-04-25T*.summary.json -# !benchmarks/results/v6-self-judge-rebench/ -# !benchmarks/results/v6-self-judge-rebench/*.jsonl -# !benchmarks/results/v6-self-judge-rebench/*.md -# !benchmarks/results/pilot-2026-04-26/ -# !benchmarks/results/pilot-2026-04-26/*.jsonl -# !benchmarks/results/pilot-2026-04-26/*.json -# !benchmarks/results/pilot-2026-04-26/*.log -# !benchmarks/results/pilot-2026-04-26/prompts-archive/ -# !benchmarks/results/pilot-2026-04-26/prompts-archive/*.md -# !benchmarks/results/pilot-2026-04-26/invalidated/ -# !benchmarks/results/pilot-2026-04-26/invalidated/*.jsonl -# !benchmarks/results/gepa-faza1/ -# !benchmarks/results/gepa-faza1/**/*.jsonl -# !benchmarks/results/gepa-faza1/**/*.json -# !benchmarks/results/gepa-faza1/**/*.md -# !benchmarks/results/gepa-faza1/**/*.log -# !benchmarks/results/gepa-faza1/**/*.yaml -# !**/benchmarks/results/gepa-faza1 -# !**/benchmarks/results/gepa-faza1/ -# !**/benchmarks/results/gepa-faza1/** -# !benchmarks/probes/**/*.log -# !benchmarks/probes/**/*.jsonl -# !benchmarks/probes/**/*.py -# !benchmarks/probes/**/*.md -# **/benchmarks/results/* -# **/benchmarks/data/* -# !**/benchmarks/data/preflight-locomo-50.json -# !**/benchmarks/data/failure-mode-calibration-10.jsonl -# !**/benchmarks/data/locomo/ -# !**/benchmarks/data/locomo/locomo-1540.jsonl -# !**/benchmarks/data/locomo/locomo-1540.meta.json -# !**/benchmarks/data/longmemeval/ -# **/benchmarks/data/longmemeval/* -# !**/benchmarks/data/longmemeval/longmemeval.meta.json -# !**/benchmarks/data/beam/ -# **/benchmarks/data/beam/* -# !**/benchmarks/data/beam/beam-128K.meta.json -# !**/benchmarks/data/beam/beam-1M.meta.json -# !**/benchmarks/data/.gitkeep -# !**/benchmarks/results/.gitkeep -# !**/benchmarks/results/manifest-*.md -# !**/benchmarks/results/manifest-*.yaml -# !**/benchmarks/results/stage*-gate-*.md -# !**/benchmarks/results/stage*-gate-*.jsonl -# !**/benchmarks/results/stage3-n400-v6-*.md -# !**/benchmarks/results/agentic-locomo-2026-04-25T*.jsonl -# !**/benchmarks/results/agentic-locomo-2026-04-25T*.summary.json -# !**/benchmarks/results/v6-self-judge-rebench/ -# !**/benchmarks/results/v6-self-judge-rebench/*.jsonl -# !**/benchmarks/results/v6-self-judge-rebench/*.md -# !**/benchmarks/results/pilot-2026-04-26/ -# !**/benchmarks/results/pilot-2026-04-26/*.jsonl -# !**/benchmarks/results/pilot-2026-04-26/*.json -# !**/benchmarks/results/pilot-2026-04-26/*.log -# !**/benchmarks/results/pilot-2026-04-26/prompts-archive/ -# !**/benchmarks/results/pilot-2026-04-26/prompts-archive/*.md -# !**/benchmarks/results/pilot-2026-04-26/invalidated/ -# !**/benchmarks/results/pilot-2026-04-26/invalidated/*.jsonl -# !benchmarks/archive/ -# !benchmarks/archive/** -# test-regression-*.log -# marketplace.db-shm -# marketplace.db-wal -# *.db-shm -# *.db-wal -# .workspace/ -# .scratch/ -# .mind/ -# .planning/ -# external/ -# *.tsbuildinfo -# scripts/.cache/ -# app/src-tauri/resources/node -# app/src-tauri/resources/node.exe -# app/src-tauri/resources/native/ -# app/src-tauri/resources/service.js -# app/src-tauri/resources/service.js.map -# .vscode/* -# !.vscode/extensions.json -# .DS_Store -# *.suo -# *.ntvs* -# *.njsproj -# *.sln -# *.sw? -# .claude/ -# .playwright-mcp/ -# .superpowers/ -# ~$* -# playwright-report/ -# test-results/ -# tests/screenshots/ -# s*.png -# screen*.png -# tmp_bench_results.json -# tmp_bench_results-v5.json -# tmp_hermes-skill-reuse.json -# tmp_hermes-pilot*.json -# tmp_hermes-pilot*.log -# tmp_lpv*.log -# tmp_lpv*.json -# apps/www/public/brand/_backup-*/ -# .vercel/ -# apps/www/lighthouse-report.json -# tests/vision/artifacts/ -# docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/*.pdf -# docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/*.docx -# docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/*.pptx -# docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/Waggle_OS_Handoff_Assets/*.png -# docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/Waggle_OS_Handoff_Assets/*.jpg - -# --- Detected directories (uncomment to exclude) --- - -# docs/ -# scripts/ -# tests/ - -# --- Test file patterns (uncomment to exclude) --- - -# JS / TS -# *.test.* -# *.spec.* -# *.snap -# C# / .NET -# **/*Tests.cs -# **/*Test.cs -# **/*Fixture.cs -# **/*.Tests.csproj -# Java / Kotlin -# **/src/test/** -# **/*Test.java -# **/*IT.java -# **/*Spec.kt -# Go -# **/*_test.go diff --git a/.understand-anything/fingerprints.json b/.understand-anything/fingerprints.json deleted file mode 100644 index 0b4c2e8..0000000 --- a/.understand-anything/fingerprints.json +++ /dev/null @@ -1,124685 +0,0 @@ -{ - "version": "1.0.0", - "gitCommitHash": "18aebe1f4bd035cfe2646173db7d2fa5326d2ec9", - "generatedAt": "2026-06-26T09:19:56.301Z", - "files": { - ".agents/skills/ax-agent-optimize/SKILL.md": { - "filePath": ".agents/skills/ax-agent-optimize/SKILL.md", - "contentHash": "16a661f7e7d543278d7fb11b9e360ae6a8ffdf1c9879c921f429632eeac78b0e", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 339, - "hasStructuralAnalysis": true - }, - ".agents/skills/ax-agent/SKILL.md": { - "filePath": ".agents/skills/ax-agent/SKILL.md", - "contentHash": "99e0a47ca24c7c21c54922ca7416f90caf258fe442d86568359f98a68654a00c", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 1091, - "hasStructuralAnalysis": true - }, - ".agents/skills/ax-ai/SKILL.md": { - "filePath": ".agents/skills/ax-ai/SKILL.md", - "contentHash": "438facd9f14b45a00555c59e4ae17b1a63a15a5ff853e785c913f39582d7134b", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 246, - "hasStructuralAnalysis": true - }, - ".agents/skills/ax-flow/SKILL.md": { - "filePath": ".agents/skills/ax-flow/SKILL.md", - "contentHash": "1ca28137d205571d5fb333cbb01817def18d8d271ebd75b252ff88831d03d31e", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 403, - "hasStructuralAnalysis": true - }, - ".agents/skills/ax-gen/SKILL.md": { - "filePath": ".agents/skills/ax-gen/SKILL.md", - "contentHash": "2831f56090cb2e0f8641054c7ec8a3c41604037f0e11aeaf1c61e309f3b2ed85", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 324, - "hasStructuralAnalysis": true - }, - ".agents/skills/ax-gepa/SKILL.md": { - "filePath": ".agents/skills/ax-gepa/SKILL.md", - "contentHash": "33ca14e9f3123e35bd28e543dddd25c31a030338c7315db757894a8252dd9119", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 261, - "hasStructuralAnalysis": true - }, - ".agents/skills/ax-learn/SKILL.md": { - "filePath": ".agents/skills/ax-learn/SKILL.md", - "contentHash": "0255ec6bfb8a3f978c909bbbb527c97572e61841c8def5a3934599355b56364e", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 269, - "hasStructuralAnalysis": true - }, - ".agents/skills/ax-signature/SKILL.md": { - "filePath": ".agents/skills/ax-signature/SKILL.md", - "contentHash": "a00c10bd467c838f1cf1d4294aad0d796d778b60aec66debc28e38869e0b8a07", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 193, - "hasStructuralAnalysis": true - }, - ".agents/skills/ax/SKILL.md": { - "filePath": ".agents/skills/ax/SKILL.md", - "contentHash": "08c301dae5d8140363df11cfc273618b0c566ad63a6af2d0ee1ea78b38b79f97", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 293, - "hasStructuralAnalysis": true - }, - ".dockerignore": { - "filePath": ".dockerignore", - "contentHash": "c25ea8b48f7cf42d520b965a181a0c8815b67ab157f4d2ff1dc8d360b8b62739", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 19, - "hasStructuralAnalysis": false - }, - ".env.example": { - "filePath": ".env.example", - "contentHash": "ecc0423c8938321380f6cdf280da41faffb4f48f9fc6f46089e604f47d4bb582", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 56, - "hasStructuralAnalysis": true - }, - ".gitattributes": { - "filePath": ".gitattributes", - "contentHash": "570ba0e509a51f7d7b78dc04440f8bfef80ffe1686174f6534d46ebf82644b67", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 57, - "hasStructuralAnalysis": false - }, - ".github/sync.md": { - "filePath": ".github/sync.md", - "contentHash": "2379fb78e6642132b87747205aa434fc0aeadd64745dd31ec9b76cc06b09a8e7", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 243, - "hasStructuralAnalysis": true - }, - ".github/workflows/ci.yml": { - "filePath": ".github/workflows/ci.yml", - "contentHash": "8777d1ceebec9eb0c95b4421186f377b666be67d70e5ad1488521f8537a32eb7", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 92, - "hasStructuralAnalysis": true - }, - ".github/workflows/deploy-www.yml": { - "filePath": ".github/workflows/deploy-www.yml", - "contentHash": "cf41e6943872dff70a032a7cfed086b7fa209b38bd4dbce2f334ee1f57f0f876", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 41, - "hasStructuralAnalysis": true - }, - ".github/workflows/hive-mind-cli-cross-platform.yml": { - "filePath": ".github/workflows/hive-mind-cli-cross-platform.yml", - "contentHash": "c5a73c428c7b6a42e6cda656b5857e4964cf0d0dbe41def52c4edd1e0404c9e8", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 102, - "hasStructuralAnalysis": true - }, - ".github/workflows/mind-parity-check.yml": { - "filePath": ".github/workflows/mind-parity-check.yml", - "contentHash": "ddd453d92aa2f1c386bdc349beb05623920130abfd71dec81e04c6f4685b8bce", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 179, - "hasStructuralAnalysis": true - }, - ".github/workflows/release.yml": { - "filePath": ".github/workflows/release.yml", - "contentHash": "9ee4aa4ce62bb4f10ec98044aed927824f3f88eb7e66de51f0e09abf6aca27d4", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 156, - "hasStructuralAnalysis": true - }, - ".github/workflows/sync-mind.yml": { - "filePath": ".github/workflows/sync-mind.yml", - "contentHash": "0d593b140a5b91a34a59ff17d17ba2a253e960cd87654d391859de047d1a1d6a", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 231, - "hasStructuralAnalysis": true - }, - ".github/workflows/tauri-build-pr.yml": { - "filePath": ".github/workflows/tauri-build-pr.yml", - "contentHash": "49db59b4eb94f0dbc8ac221a7f511006bbdf9de2b1a7c11d8dbc5981f13f8dc2", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 164, - "hasStructuralAnalysis": true - }, - ".lovable/plan.md": { - "filePath": ".lovable/plan.md", - "contentHash": "415cdfdb943fb99de2916700d8cae7dd1b3f714bf150b59968132f506cbc2767", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 24, - "hasStructuralAnalysis": true - }, - ".parity-allowlist": { - "filePath": ".parity-allowlist", - "contentHash": "e2b5a9d75f1510d2e3da661ccb75abfe4fd987df3233b97ee278632b5204ffa3", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 30, - "hasStructuralAnalysis": false - }, - ".understand-anything/.understandignore": { - "filePath": ".understand-anything/.understandignore", - "contentHash": "51c8e851e2fbbdc26657a0e470113a3917b8e93d4a34f42af4753a657fe7b872", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 192, - "hasStructuralAnalysis": false - }, - "app/components.json": { - "filePath": "app/components.json", - "contentHash": "be24567d1aa4a37c2bd82816667d65ea934529320756bd78281acec37ff5f170", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 26, - "hasStructuralAnalysis": true - }, - "app/icons/ICONS-README.txt": { - "filePath": "app/icons/ICONS-README.txt", - "contentHash": "d4cc605fb83ea1a66f988c149264655206bb0d5b79506bfd2997fccb26e7b52d", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 26, - "hasStructuralAnalysis": false - }, - "app/index.html": { - "filePath": "app/index.html", - "contentHash": "ce31159c2ec8e0d073454b38050bfb1dcccf49ebe24f30205c69d9d975d1d15f", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 14, - "hasStructuralAnalysis": false - }, - "app/package.json": { - "filePath": "app/package.json", - "contentHash": "1b4960e70d41842365c7344e251b26873bbb211c8c715e06f29cefa09c6ffaa6", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 46, - "hasStructuralAnalysis": true - }, - "app/scripts/apply-signing-config.mjs": { - "filePath": "app/scripts/apply-signing-config.mjs", - "contentHash": "c0f7108c550009680aee68efc607afcdc3ec3cd9a145ac5db02d47d3a70e0cbb", - "functions": [ - { - "name": "parseThumbprintString", - "params": [ - "raw" - ], - "exported": false, - "lineCount": 12 - }, - { - "name": "addWindowsSigningToOverride", - "params": [ - "config", - "thumbprint" - ], - "exported": false, - "lineCount": 21 - }, - { - "name": "main", - "params": [], - "exported": false, - "lineCount": 50 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "readFileSync", - "writeFileSync", - "existsSync" - ] - }, - { - "source": "node:path", - "specifiers": [ - "resolve", - "dirname" - ] - }, - { - "source": "node:url", - "specifiers": [ - "fileURLToPath" - ] - } - ], - "exports": [], - "totalLines": 131, - "hasStructuralAnalysis": true - }, - "app/scripts/bundle-runtimes.test.ts": { - "filePath": "app/scripts/bundle-runtimes.test.ts", - "contentHash": "c42dff437dfb7f1ae2e3de6090e290996374c58e6f509e7f1fae48d751f3eb78", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "./bundle-utils.js", - "specifiers": [ - "getNodeDownloadUrl", - "getPythonDownloadUrl", - "getResourcePaths", - "getBundleStatus", - "parseVersion", - "isValidVersion" - ] - } - ], - "exports": [], - "totalLines": 181, - "hasStructuralAnalysis": true - }, - "app/scripts/bundle-runtimes.ts": { - "filePath": "app/scripts/bundle-runtimes.ts", - "contentHash": "d4645fce44452543e3a0a1572a10ccebc8664fdc7aed58e88ba1c35f9e0edb3d", - "functions": [ - { - "name": "downloadFile", - "params": [ - "url", - "destPath" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 19 - }, - { - "name": "downloadNodeBinary", - "params": [ - "version", - "resourcesDir" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 5 - }, - { - "name": "downloadPythonEmbed", - "params": [ - "version", - "resourcesDir" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 22 - }, - { - "name": "installLiteLLM", - "params": [ - "resourcesDir" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 35 - }, - { - "name": "main", - "params": [], - "returnType": "Promise", - "exported": false, - "lineCount": 43 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "existsSync", - "readdirSync", - "readFileSync", - "writeFileSync", - "createWriteStream" - ] - }, - { - "source": "node:fs/promises", - "specifiers": [ - "mkdir", - "rm" - ] - }, - { - "source": "node:child_process", - "specifiers": [ - "execFileSync" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:stream/promises", - "specifiers": [ - "pipeline" - ] - }, - { - "source": "node:url", - "specifiers": [ - "fileURLToPath" - ] - }, - { - "source": "node:stream", - "specifiers": [ - "Readable" - ] - }, - { - "source": "./bundle-utils.js", - "specifiers": [ - "getNodeDownloadUrl", - "getPythonDownloadUrl", - "getResourcePaths", - "getBundleStatus" - ] - } - ], - "exports": [], - "totalLines": 167, - "hasStructuralAnalysis": true - }, - "app/scripts/bundle-utils.ts": { - "filePath": "app/scripts/bundle-utils.ts", - "contentHash": "2a90a09199e02e1a595e40dd9701827db1f15e624d45fcfaa592563741381c52", - "functions": [ - { - "name": "getNodeDownloadUrl", - "params": [ - "version", - "platform", - "arch" - ], - "returnType": "string", - "exported": true, - "lineCount": 14 - }, - { - "name": "getPythonDownloadUrl", - "params": [ - "version", - "platform", - "arch" - ], - "returnType": "string", - "exported": true, - "lineCount": 14 - }, - { - "name": "getResourcePaths", - "params": [ - "resourcesDir", - "platform" - ], - "returnType": "ResourcePaths", - "exported": true, - "lineCount": 15 - }, - { - "name": "getBundleStatus", - "params": [ - "resourcesDir", - "_existsSync" - ], - "returnType": "BundleStatus", - "exported": true, - "lineCount": 11 - }, - { - "name": "parseVersion", - "params": [ - "version" - ], - "returnType": "ParsedVersion", - "exported": true, - "lineCount": 8 - }, - { - "name": "isValidVersion", - "params": [ - "version" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "existsSync" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - } - ], - "exports": [ - "getNodeDownloadUrl", - "getPythonDownloadUrl", - "getResourcePaths", - "getBundleStatus", - "parseVersion", - "isValidVersion" - ], - "totalLines": 124, - "hasStructuralAnalysis": true - }, - "app/scripts/installer-config.test.ts": { - "filePath": "app/scripts/installer-config.test.ts", - "contentHash": "44fa0c573df8b532b1b171d2b67693a41d23928964f9588d1794dd7b59c7bd4f", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "writeFileSync", - "mkdirSync", - "rmSync" - ] - }, - { - "source": "node:os", - "specifiers": [ - "tmpdir" - ] - }, - { - "source": "./installer-config.js", - "specifiers": [ - "getDefaultInstallerConfig", - "generateNsisDefines", - "validateInstallPath", - "isSystemPath", - "getUninstallPrompt", - "getVersionFromPackage" - ] - } - ], - "exports": [], - "totalLines": 264, - "hasStructuralAnalysis": true - }, - "app/scripts/installer-config.ts": { - "filePath": "app/scripts/installer-config.ts", - "contentHash": "e44fc649104f0617bbc86ffabc0b8c68c0e1fdc2e14a92e0bcd937e462952145", - "functions": [ - { - "name": "getDefaultInstallerConfig", - "params": [], - "returnType": "InstallerConfig", - "exported": true, - "lineCount": 13 - }, - { - "name": "generateNsisDefines", - "params": [ - "config" - ], - "returnType": "Record", - "exported": true, - "lineCount": 15 - }, - { - "name": "validateInstallPath", - "params": [ - "installPath" - ], - "returnType": "{ valid: boolean; error?: string }", - "exported": true, - "lineCount": 47 - }, - { - "name": "isSystemPath", - "params": [ - "installPath" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 10 - }, - { - "name": "getUninstallPrompt", - "params": [ - "dataDir" - ], - "returnType": "string", - "exported": true, - "lineCount": 8 - }, - { - "name": "getVersionFromPackage", - "params": [ - "packageJsonPath" - ], - "returnType": "string", - "exported": true, - "lineCount": 15 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "readFileSync" - ] - } - ], - "exports": [ - "getDefaultInstallerConfig", - "generateNsisDefines", - "validateInstallPath", - "isSystemPath", - "getUninstallPrompt", - "getVersionFromPackage" - ], - "totalLines": 165, - "hasStructuralAnalysis": true - }, - "app/scripts/sign-macos-adhoc.sh": { - "filePath": "app/scripts/sign-macos-adhoc.sh", - "contentHash": "aedebcccca3faedad787ff4b2c1b532d835638f105d87a9922dd6f2acdea01c6", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 59, - "hasStructuralAnalysis": true - }, - "app/scripts/sign-windows-pilot.ps1": { - "filePath": "app/scripts/sign-windows-pilot.ps1", - "contentHash": "bd376b17af5b911628249d63863e9aabe48f10e0f7815b0e1ed8446a58989076", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 204, - "hasStructuralAnalysis": false - }, - "app/scripts/signing-config.test.ts": { - "filePath": "app/scripts/signing-config.test.ts", - "contentHash": "192f8a2d35fc468812159972ee9a48c2a79b103852eb12c3ee2db835ae470633", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "./signing-config.js", - "specifiers": [ - "parseThumbprintString", - "addWindowsSigningToOverride", - "addMacosAdhocToOverride", - "TauriOverrideConfig" - ] - } - ], - "exports": [], - "totalLines": 178, - "hasStructuralAnalysis": true - }, - "app/scripts/signing-config.ts": { - "filePath": "app/scripts/signing-config.ts", - "contentHash": "76979758b8066c3940fcf084e512aa188d9f2ee217456dcec52881804521308d", - "functions": [ - { - "name": "parseThumbprintString", - "params": [ - "raw" - ], - "returnType": "string", - "exported": true, - "lineCount": 15 - }, - { - "name": "addWindowsSigningToOverride", - "params": [ - "config", - "thumbprint", - "options" - ], - "returnType": "T", - "exported": true, - "lineCount": 29 - }, - { - "name": "addMacosAdhocToOverride", - "params": [ - "config" - ], - "returnType": "T", - "exported": true, - "lineCount": 21 - } - ], - "classes": [], - "imports": [], - "exports": [ - "parseThumbprintString", - "addWindowsSigningToOverride", - "addMacosAdhocToOverride" - ], - "totalLines": 148, - "hasStructuralAnalysis": true - }, - "app/src-tauri/.cargo/config.toml": { - "filePath": "app/src-tauri/.cargo/config.toml", - "contentHash": "5db936f76a008f4f79749911b1ea299a6ec3af6744da283c0c772fd555bc1929", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 18, - "hasStructuralAnalysis": true - }, - "app/src-tauri/build.rs": { - "filePath": "app/src-tauri/build.rs", - "contentHash": "4ae2333b11623039cc115e29b696e7ff5cdfcd5b7d628280ddf48fa733e6418d", - "functions": [ - { - "name": "main", - "params": [], - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 4, - "hasStructuralAnalysis": true - }, - "app/src-tauri/capabilities/default.json": { - "filePath": "app/src-tauri/capabilities/default.json", - "contentHash": "3c7da44e581690f3a3067f9906633c94e0728f52008f0917e43f717d37eef747", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 14, - "hasStructuralAnalysis": true - }, - "app/src-tauri/Cargo.toml": { - "filePath": "app/src-tauri/Cargo.toml", - "contentHash": "f95d5717a2484c9412e08ab48152d2711e55fa5a6374aae63a0cef6be88e488c", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 30, - "hasStructuralAnalysis": true - }, - "app/src-tauri/gen/schemas/acl-manifests.json": { - "filePath": "app/src-tauri/gen/schemas/acl-manifests.json", - "contentHash": "bf4c2cc63ce651ffdfe1452525b2b153a953a554a96a288af044844a7214c2b1", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 1, - "hasStructuralAnalysis": true - }, - "app/src-tauri/gen/schemas/capabilities.json": { - "filePath": "app/src-tauri/gen/schemas/capabilities.json", - "contentHash": "e7cd65baf6abc481d818ad76df813fd599eea23ed25c63d4d31bd3d3e9e66c59", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 1, - "hasStructuralAnalysis": true - }, - "app/src-tauri/gen/schemas/desktop-schema.json": { - "filePath": "app/src-tauri/gen/schemas/desktop-schema.json", - "contentHash": "c3c3411df5503fa557e693190e338f73823cf3b4d513758abfaeea869fa99672", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 2990, - "hasStructuralAnalysis": true - }, - "app/src-tauri/gen/schemas/windows-schema.json": { - "filePath": "app/src-tauri/gen/schemas/windows-schema.json", - "contentHash": "c3c3411df5503fa557e693190e338f73823cf3b4d513758abfaeea869fa99672", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 2990, - "hasStructuralAnalysis": true - }, - "app/src-tauri/icons/android/mipmap-anydpi-v26/ic_launcher.xml": { - "filePath": "app/src-tauri/icons/android/mipmap-anydpi-v26/ic_launcher.xml", - "contentHash": "7fe18cc0bcab884b6cd485758b8e5b3665737390fb8a35dabd37149aae83e1ee", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 5, - "hasStructuralAnalysis": false - }, - "app/src-tauri/icons/android/values/ic_launcher_background.xml": { - "filePath": "app/src-tauri/icons/android/values/ic_launcher_background.xml", - "contentHash": "388946bbba99e5a1b91750343f8dbdfd11692d51afb8ba5ea28d7e5ad13b4d79", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 4, - "hasStructuralAnalysis": false - }, - "app/src-tauri/icons/icon.icns": { - "filePath": "app/src-tauri/icons/icon.icns", - "contentHash": "e461aafd2838fd242e394a41852c729bea8d1d7dc0be313df81e8dea981b1449", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 1011, - "hasStructuralAnalysis": false - }, - "app/src-tauri/nsis/installer.nsi": { - "filePath": "app/src-tauri/nsis/installer.nsi", - "contentHash": "f60791eb0a2899058eac16a82649cc1ee90de4b167132a7e0c59798a9eb24239", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 70, - "hasStructuralAnalysis": false - }, - "app/src-tauri/resources/.gitkeep": { - "filePath": "app/src-tauri/resources/.gitkeep", - "contentHash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 1, - "hasStructuralAnalysis": false - }, - "app/src-tauri/resources/native/.gitkeep": { - "filePath": "app/src-tauri/resources/native/.gitkeep", - "contentHash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 1, - "hasStructuralAnalysis": false - }, - "app/src-tauri/resources/native/onnxruntime/.gitkeep": { - "filePath": "app/src-tauri/resources/native/onnxruntime/.gitkeep", - "contentHash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 1, - "hasStructuralAnalysis": false - }, - "app/src-tauri/src/commands/agent.rs": { - "filePath": "app/src-tauri/src/commands/agent.rs", - "contentHash": "236fc2fdb9797bf5be6af68504360120477292234a025a64cf5b7921900907fb", - "functions": [ - { - "name": "run_agent_query", - "params": [ - "app", - "state", - "query", - "shape", - "workspace_id", - "persona", - "model", - "session" - ], - "returnType": "Result", - "exported": true, - "lineCount": 37 - }, - { - "name": "stream_chat", - "params": [ - "app", - "port", - "request_id", - "query", - "shape", - "workspace_id", - "persona", - "model", - "session" - ], - "returnType": "Result<(), String>", - "exported": false, - "lineCount": 122 - }, - { - "name": "parse_sse_event", - "params": [ - "block" - ], - "returnType": "Option", - "exported": false, - "lineCount": 28 - } - ], - "classes": [], - "imports": [ - { - "source": "serde_json", - "specifiers": [ - "json", - "Value" - ] - }, - { - "source": "std::time", - "specifiers": [ - "Duration" - ] - }, - { - "source": "tauri", - "specifiers": [ - "AppHandle", - "Emitter", - "State" - ] - }, - { - "source": "uuid", - "specifiers": [ - "Uuid" - ] - }, - { - "source": "crate::service", - "specifiers": [ - "ServiceState" - ] - } - ], - "exports": [ - "run_agent_query" - ], - "totalLines": 269, - "hasStructuralAnalysis": true - }, - "app/src-tauri/src/commands/http.rs": { - "filePath": "app/src-tauri/src/commands/http.rs", - "contentHash": "f7b1949102648192657ea1064ff1ef3d9337a153220b34f321e2f564d4b58a4a", - "functions": [ - { - "name": "sidecar_url", - "params": [ - "port", - "path" - ], - "returnType": "String", - "exported": true, - "lineCount": 3 - }, - { - "name": "http_get", - "params": [ - "url" - ], - "returnType": "Result", - "exported": true, - "lineCount": 5 - }, - { - "name": "http_post", - "params": [ - "url", - "body" - ], - "returnType": "Result", - "exported": true, - "lineCount": 9 - }, - { - "name": "parse_json", - "params": [ - "resp" - ], - "returnType": "Result", - "exported": true, - "lineCount": 13 - } - ], - "classes": [], - "imports": [ - { - "source": "serde_json", - "specifiers": [ - "Value" - ] - } - ], - "exports": [ - "sidecar_url", - "http_get", - "http_post", - "parse_json" - ], - "totalLines": 44, - "hasStructuralAnalysis": true - }, - "app/src-tauri/src/commands/memory.rs": { - "filePath": "app/src-tauri/src/commands/memory.rs", - "contentHash": "56e3bde8588d53b4ff8dbe178e4f617c019249583a83d8bfcee2e5e37be8f570", - "functions": [ - { - "name": "recall_memory", - "params": [ - "state", - "query", - "scope", - "limit", - "workspace_id" - ], - "returnType": "Result", - "exported": true, - "lineCount": 25 - }, - { - "name": "save_memory", - "params": [ - "state", - "content", - "workspace_id", - "importance", - "source" - ], - "returnType": "Result", - "exported": true, - "lineCount": 22 - }, - { - "name": "search_entities", - "params": [ - "state", - "workspace_id", - "scope" - ], - "returnType": "Result", - "exported": true, - "lineCount": 21 - }, - { - "name": "get_identity", - "params": [ - "state" - ], - "returnType": "Result", - "exported": true, - "lineCount": 8 - }, - { - "name": "identity_placeholder", - "params": [ - "note" - ], - "returnType": "Value", - "exported": false, - "lineCount": 14 - } - ], - "classes": [], - "imports": [ - { - "source": "serde_json", - "specifiers": [ - "json", - "Value" - ] - }, - { - "source": "tauri", - "specifiers": [ - "State" - ] - }, - { - "source": "crate::commands::http", - "specifiers": [ - "http_get", - "http_post", - "parse_json", - "sidecar_url" - ] - }, - { - "source": "crate::service", - "specifiers": [ - "ServiceState" - ] - } - ], - "exports": [ - "recall_memory", - "save_memory", - "search_entities", - "get_identity" - ], - "totalLines": 136, - "hasStructuralAnalysis": true - }, - "app/src-tauri/src/commands/mod.rs": { - "filePath": "app/src-tauri/src/commands/mod.rs", - "contentHash": "15aec9214e31d3f00d746357591fae684e99cd8eda5f638a0487e686a7f77a41", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 9, - "hasStructuralAnalysis": true - }, - "app/src-tauri/src/commands/onboarding.rs": { - "filePath": "app/src-tauri/src/commands/onboarding.rs", - "contentHash": "a7f0097fd1e85e25bf87709b5e2ecbc9d106841466504c0315ed0d9de588fcbf", - "functions": [ - { - "name": "home_dir", - "params": [], - "returnType": "Option", - "exported": false, - "lineCount": 5 - }, - { - "name": "flag_path", - "params": [], - "returnType": "Result", - "exported": false, - "lineCount": 11 - }, - { - "name": "is_first_launch", - "params": [], - "returnType": "Result", - "exported": true, - "lineCount": 7 - }, - { - "name": "mark_first_launch_complete", - "params": [], - "returnType": "Result<(), String>", - "exported": true, - "lineCount": 10 - }, - { - "name": "reset_first_launch", - "params": [], - "returnType": "Result<(), String>", - "exported": true, - "lineCount": 8 - } - ], - "classes": [], - "imports": [ - { - "source": "std::path", - "specifiers": [ - "PathBuf" - ] - } - ], - "exports": [ - "is_first_launch", - "mark_first_launch_complete", - "reset_first_launch" - ], - "totalLines": 121, - "hasStructuralAnalysis": true - }, - "app/src-tauri/src/commands/wiki.rs": { - "filePath": "app/src-tauri/src/commands/wiki.rs", - "contentHash": "20be00178136a0a02148b0d55ca7febc09b9f3d0223fb0c89ff2f82c0ada73e4", - "functions": [ - { - "name": "get_wiki_pages", - "params": [ - "state" - ], - "returnType": "Result", - "exported": true, - "lineCount": 5 - }, - { - "name": "get_wiki_page", - "params": [ - "state", - "slug" - ], - "returnType": "Result", - "exported": true, - "lineCount": 8 - }, - { - "name": "get_wiki_page_content", - "params": [ - "state", - "slug" - ], - "returnType": "Result", - "exported": true, - "lineCount": 11 - }, - { - "name": "compile_wiki_section", - "params": [ - "state", - "workspace_id" - ], - "returnType": "Result", - "exported": true, - "lineCount": 12 - } - ], - "classes": [], - "imports": [ - { - "source": "serde_json", - "specifiers": [ - "json", - "Value" - ] - }, - { - "source": "tauri", - "specifiers": [ - "State" - ] - }, - { - "source": "crate::commands::http", - "specifiers": [ - "http_get", - "http_post", - "parse_json", - "sidecar_url" - ] - }, - { - "source": "crate::service", - "specifiers": [ - "ServiceState" - ] - } - ], - "exports": [ - "get_wiki_pages", - "get_wiki_page", - "get_wiki_page_content", - "compile_wiki_section" - ], - "totalLines": 76, - "hasStructuralAnalysis": true - }, - "app/src-tauri/src/lib.rs": { - "filePath": "app/src-tauri/src/lib.rs", - "contentHash": "a29192f82095bf85814505f5b1d8e21c06d1e68ee97ef579dfd3980e6e3d8f64", - "functions": [ - { - "name": "show_notification", - "params": [ - "app", - "title", - "body" - ], - "returnType": "Result<(), String>", - "exported": false, - "lineCount": 9 - }, - { - "name": "run", - "params": [], - "exported": true, - "lineCount": 134 - } - ], - "classes": [], - "imports": [ - { - "source": "service", - "specifiers": [ - "ServiceState" - ] - }, - { - "source": "tauri", - "specifiers": [ - "Emitter", - "Manager" - ] - }, - { - "source": "tauri_plugin_updater", - "specifiers": [ - "UpdaterExt" - ] - } - ], - "exports": [ - "run" - ], - "totalLines": 158, - "hasStructuralAnalysis": true - }, - "app/src-tauri/src/main.rs": { - "filePath": "app/src-tauri/src/main.rs", - "contentHash": "31d8dc3700fc7b4013816030587fb21edb440333afd840c8999c57773676e4bd", - "functions": [ - { - "name": "main", - "params": [], - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 7, - "hasStructuralAnalysis": true - }, - "app/src-tauri/src/service.rs": { - "filePath": "app/src-tauri/src/service.rs", - "contentHash": "72bf08dcd3413b8a3b7317435b6e80dbdd512df6370ded36e1a431f077f37532", - "functions": [ - { - "name": "new", - "params": [ - "port" - ], - "returnType": "Self", - "exported": true, - "lineCount": 6 - }, - { - "name": "resolve_node_path", - "params": [], - "returnType": "String", - "exported": false, - "lineCount": 37 - }, - { - "name": "build_service_command", - "params": [ - "port" - ], - "returnType": "Result", - "exported": false, - "lineCount": 69 - }, - { - "name": "spawn_service_sync", - "params": [ - "port", - "process" - ], - "returnType": "Result<(), String>", - "exported": true, - "lineCount": 17 - }, - { - "name": "ensure_service", - "params": [ - "state" - ], - "returnType": "Result", - "exported": true, - "lineCount": 25 - }, - { - "name": "stop_service", - "params": [ - "state" - ], - "returnType": "Result", - "exported": true, - "lineCount": 8 - }, - { - "name": "get_service_port", - "params": [ - "state" - ], - "returnType": "Result", - "exported": true, - "lineCount": 3 - }, - { - "name": "start_watchdog", - "params": [ - "app", - "port" - ], - "exported": true, - "lineCount": 65 - } - ], - "classes": [ - { - "name": "ServiceState", - "methods": [ - "new" - ], - "properties": [ - "process", - "port" - ], - "exported": true, - "lineCount": 4 - } - ], - "imports": [ - { - "source": "std::process", - "specifiers": [ - "Child", - "Command" - ] - }, - { - "source": "std::sync", - "specifiers": [ - "Mutex" - ] - }, - { - "source": "std::time", - "specifiers": [ - "Duration", - "Instant" - ] - }, - { - "source": "tauri", - "specifiers": [ - "AppHandle", - "Emitter", - "Manager", - "State" - ] - } - ], - "exports": [ - "ServiceState", - "new", - "spawn_service_sync", - "ensure_service", - "stop_service", - "get_service_port", - "start_watchdog" - ], - "totalLines": 259, - "hasStructuralAnalysis": true - }, - "app/src-tauri/src/tray.rs": { - "filePath": "app/src-tauri/src/tray.rs", - "contentHash": "1ef00802c25c88a0813a3bda33a66da9822a2c8331681620e05da0ee689288a4", - "functions": [ - { - "name": "generate_tray_icon", - "params": [], - "returnType": "(Vec, u32, u32)", - "exported": false, - "lineCount": 22 - }, - { - "name": "setup_tray", - "params": [ - "app" - ], - "returnType": "Result<(), Box>", - "exported": true, - "lineCount": 55 - } - ], - "classes": [], - "imports": [ - { - "source": "tauri", - "specifiers": [ - "image::Image", - "tray::TrayIconBuilder", - "AppHandle", - "Emitter", - "Manager" - ] - } - ], - "exports": [ - "setup_tray" - ], - "totalLines": 86, - "hasStructuralAnalysis": true - }, - "app/src-tauri/tauri.build-override.conf.json": { - "filePath": "app/src-tauri/tauri.build-override.conf.json", - "contentHash": "8c1cd6f08b786e73284a65071dc117d5f8d99f6e7836b70f40e0ae383aa43150", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 11, - "hasStructuralAnalysis": true - }, - "app/src-tauri/tauri.conf.json": { - "filePath": "app/src-tauri/tauri.conf.json", - "contentHash": "10a9f6421514f4c040e2fabe57a7650f688fea26fbcd9bc74b5065c9b7041016", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 64, - "hasStructuralAnalysis": true - }, - "app/src-tauri/tauri.dev-override.conf.json": { - "filePath": "app/src-tauri/tauri.dev-override.conf.json", - "contentHash": "a1b40b86516062fb02c38997481a1de27d7bccd9769c58571767a193a8463ea3", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 11, - "hasStructuralAnalysis": true - }, - "app/tailwind.config.ts": { - "filePath": "app/tailwind.config.ts", - "contentHash": "f0f11c34029499ce8539d16cbccdb25c439324deda060a41d5d8d284e80a1907", - "functions": [], - "classes": [], - "imports": [ - { - "source": "tailwindcss", - "specifiers": [ - "Config" - ] - } - ], - "exports": [], - "totalLines": 10, - "hasStructuralAnalysis": true - }, - "app/tests/auto-update.test.ts": { - "filePath": "app/tests/auto-update.test.ts", - "contentHash": "62fcb589eb01a06f7fde6b2ca057af92c70e62e9c851fa3c1ee59e7c3788260f", - "functions": [ - { - "name": "readJson", - "params": [ - "relPath" - ], - "returnType": "unknown", - "exported": false, - "lineCount": 4 - }, - { - "name": "readText", - "params": [ - "relPath" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "readFileSync" - ] - }, - { - "source": "node:path", - "specifiers": [ - "resolve" - ] - } - ], - "exports": [], - "totalLines": 148, - "hasStructuralAnalysis": true - }, - "app/tests/cockpit-agent-intelligence.test.ts": { - "filePath": "app/tests/cockpit-agent-intelligence.test.ts", - "contentHash": "c770953dfd8ea402b1349101123e4d9c72575ca01248106122aa29667332e9cb", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/components/cockpit/types", - "specifiers": [ - "FeedbackStats" - ] - } - ], - "exports": [], - "totalLines": 93, - "hasStructuralAnalysis": true - }, - "app/tests/e2e/chat.test.ts": { - "filePath": "app/tests/e2e/chat.test.ts", - "contentHash": "83eac4bb4e62ce1955cc44ecaad2f6298278de514a7a1a3e3ed2729422116a15", - "functions": [ - { - "name": "makeTmpDir", - "params": [], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "parseSSE", - "params": [ - "raw" - ], - "returnType": "Array<{ event: string; data: unknown }>", - "exported": false, - "lineCount": 25 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "@waggle/server/local/service", - "specifiers": [ - "startService" - ] - }, - { - "source": "@waggle/server/local/routes/chat", - "specifiers": [ - "AgentRunner" - ] - }, - { - "source": "./test-utils.js", - "specifiers": [ - "injectWithAuth" - ] - } - ], - "exports": [], - "totalLines": 315, - "hasStructuralAnalysis": true - }, - "app/tests/e2e/startup.test.ts": { - "filePath": "app/tests/e2e/startup.test.ts", - "contentHash": "a53382781c31895eb58b7711b44052e0a768dec7c643fa95514d87c6051ec711", - "functions": [ - { - "name": "makeTmpDir", - "params": [], - "returnType": "string", - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "@waggle/server/local/service", - "specifiers": [ - "startService" - ] - }, - { - "source": "./test-utils.js", - "specifiers": [ - "injectWithAuth" - ] - } - ], - "exports": [], - "totalLines": 133, - "hasStructuralAnalysis": true - }, - "app/tests/e2e/test-utils.ts": { - "filePath": "app/tests/e2e/test-utils.ts", - "contentHash": "5366ba3395b987f053ef6d0748e2e7be280ce915f203b27715c93ecdb0283fda", - "functions": [ - { - "name": "injectWithAuth", - "params": [ - "server", - "opts" - ], - "exported": true, - "lineCount": 11 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyInstance", - "InjectOptions" - ] - } - ], - "exports": [ - "injectWithAuth" - ], - "totalLines": 23, - "hasStructuralAnalysis": true - }, - "app/tests/e2e/workspaces.test.ts": { - "filePath": "app/tests/e2e/workspaces.test.ts", - "contentHash": "6765b40d9d5384903e12ace5f2b59d11f5d826df5735826e0944e77d2611f8a7", - "functions": [ - { - "name": "makeTmpDir", - "params": [], - "returnType": "string", - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "@waggle/server/local/service", - "specifiers": [ - "startService" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "FrameStore", - "SessionStore" - ] - }, - { - "source": "./test-utils.js", - "specifiers": [ - "injectWithAuth" - ] - } - ], - "exports": [], - "totalLines": 333, - "hasStructuralAnalysis": true - }, - "app/tsconfig.json": { - "filePath": "app/tsconfig.json", - "contentHash": "4ded6d6472fb60419e70783ef56fa1a3dcc52d5602c353e4fd7e64f57668631d", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 35, - "hasStructuralAnalysis": true - }, - "app/vite.config.ts": { - "filePath": "app/vite.config.ts", - "contentHash": "14126607895b142d72a25fccafd0a65da4a5c60bcab54f690fe965cd7e7ca7e9", - "functions": [], - "classes": [], - "imports": [ - { - "source": "path", - "specifiers": [ - "path" - ] - }, - { - "source": "vite", - "specifiers": [ - "defineConfig" - ] - }, - { - "source": "@vitejs/plugin-react", - "specifiers": [ - "react" - ] - }, - { - "source": "@tailwindcss/vite", - "specifiers": [ - "tailwindcss" - ] - } - ], - "exports": [], - "totalLines": 48, - "hasStructuralAnalysis": true - }, - "apps/browser-ext/background.js": { - "filePath": "apps/browser-ext/background.js", - "contentHash": "8fcd520ab068aa1bdaa8f2d915b75cb6eada7263c63fe53b29ebb58065c863ea", - "functions": [ - { - "name": "getAuthHeaders", - "params": [], - "exported": false, - "lineCount": 10 - }, - { - "name": "health", - "params": [], - "exported": false, - "lineCount": 12 - }, - { - "name": "saveMemory", - "params": [ - "payload" - ], - "exported": false, - "lineCount": 22 - } - ], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 87, - "hasStructuralAnalysis": true - }, - "apps/browser-ext/content.js": { - "filePath": "apps/browser-ext/content.js", - "contentHash": "263be045ace0793d40443ec3567ff249e7473444612cca6c6abffd39d9a11273", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 28, - "hasStructuralAnalysis": true - }, - "apps/browser-ext/manifest.json": { - "filePath": "apps/browser-ext/manifest.json", - "contentHash": "62478cf2de69c77beaa6254ea604e8e7f1fce5a38e14ff10d37b6f514a9f225b", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 31, - "hasStructuralAnalysis": true - }, - "apps/browser-ext/popup.html": { - "filePath": "apps/browser-ext/popup.html", - "contentHash": "4ffd5aa386da1fb950ee87fee0214c21bbc6bd72211eaf6be13bce1eac8e9708", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 91, - "hasStructuralAnalysis": false - }, - "apps/browser-ext/popup.js": { - "filePath": "apps/browser-ext/popup.js", - "contentHash": "e900978c48ca345f4742ea8ce343187f8815e358a00af109b3195de4e3c588fe", - "functions": [ - { - "name": "$", - "params": [ - "id" - ], - "exported": false, - "lineCount": 1 - }, - { - "name": "showToast", - "params": [ - "msg" - ], - "exported": false, - "lineCount": 7 - }, - { - "name": "refreshHealth", - "params": [], - "exported": false, - "lineCount": 19 - }, - { - "name": "readActiveTab", - "params": [], - "exported": false, - "lineCount": 14 - }, - { - "name": "save", - "params": [ - "kind" - ], - "exported": false, - "lineCount": 22 - } - ], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 91, - "hasStructuralAnalysis": true - }, - "apps/browser-ext/README.md": { - "filePath": "apps/browser-ext/README.md", - "contentHash": "83e99536512514cb28d7014526c87cc38c9c6ec001c6f5a064d515e742072518", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 69, - "hasStructuralAnalysis": true - }, - "apps/web/.env.example": { - "filePath": "apps/web/.env.example", - "contentHash": "46eac5ed76b605ac23e97d63544932d24d9352217cef8bb5d9dfe09a0bf63051", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 22, - "hasStructuralAnalysis": true - }, - "apps/web/components.json": { - "filePath": "apps/web/components.json", - "contentHash": "1b55b1d844ca520d6df6293c24d1366839511cf2d00a285300574327eb61ac27", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 21, - "hasStructuralAnalysis": true - }, - "apps/web/eslint.config.js": { - "filePath": "apps/web/eslint.config.js", - "contentHash": "a4cd6dafce32a4548f5e2dcfd420692c7cb930d3b6b445e113c63e80bb127dcd", - "functions": [], - "classes": [], - "imports": [ - { - "source": "@eslint/js", - "specifiers": [ - "js" - ] - }, - { - "source": "globals", - "specifiers": [ - "globals" - ] - }, - { - "source": "eslint-plugin-react-hooks", - "specifiers": [ - "reactHooks" - ] - }, - { - "source": "eslint-plugin-react-refresh", - "specifiers": [ - "reactRefresh" - ] - }, - { - "source": "typescript-eslint", - "specifiers": [ - "tseslint" - ] - } - ], - "exports": [], - "totalLines": 27, - "hasStructuralAnalysis": true - }, - "apps/web/index.html": { - "filePath": "apps/web/index.html", - "contentHash": "f1a418bc8757ae83305929c341623d00f447fb7f4b575f5fa0fc2b68a174000b", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 22, - "hasStructuralAnalysis": false - }, - "apps/web/package.json": { - "filePath": "apps/web/package.json", - "contentHash": "8afddb189446ecbc4a280bdc9ca2933f2a8b90e47067e04716b3bcef8ac2225b", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 101, - "hasStructuralAnalysis": true - }, - "apps/web/playwright-fixture.ts": { - "filePath": "apps/web/playwright-fixture.ts", - "contentHash": "79b7165caf385669b32ca0bd08abbf820784fc100b75c6abf8569412100d5cc3", - "functions": [], - "classes": [], - "imports": [], - "exports": [ - "test", - "expect" - ], - "totalLines": 4, - "hasStructuralAnalysis": true - }, - "apps/web/playwright.config.ts": { - "filePath": "apps/web/playwright.config.ts", - "contentHash": "0ce895719cf7fa4c25a4b9f5c940ce3e5f1ed6b2fa8d1423581432636b69c6f9", - "functions": [], - "classes": [], - "imports": [ - { - "source": "lovable-agent-playwright-config/config", - "specifiers": [ - "createLovableConfig" - ] - } - ], - "exports": [], - "totalLines": 11, - "hasStructuralAnalysis": true - }, - "apps/web/postcss.config.js": { - "filePath": "apps/web/postcss.config.js", - "contentHash": "98e8d8a143f16216f4b50a2520024f6254987049b2e199026742a96e16ba411e", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 7, - "hasStructuralAnalysis": true - }, - "apps/web/public/robots.txt": { - "filePath": "apps/web/public/robots.txt", - "contentHash": "52710c261d851bc1ad35604017862f2a8444e7a0f02cd7b8b49e3ba92e6d4cea", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 15, - "hasStructuralAnalysis": false - }, - "apps/web/src/App.tsx": { - "filePath": "apps/web/src/App.tsx", - "contentHash": "c8b5600dacbd75874ce9da9671cb413f394a337257423996a28a66d784c27613", - "functions": [ - { - "name": "App", - "params": [], - "exported": false, - "lineCount": 72 - } - ], - "classes": [], - "imports": [ - { - "source": "@tanstack/react-query", - "specifiers": [ - "QueryClient", - "QueryClientProvider" - ] - }, - { - "source": "react-router-dom", - "specifiers": [ - "BrowserRouter", - "Navigate", - "Route", - "Routes" - ] - }, - { - "source": "@/components/ui/sonner", - "specifiers": [ - "Sonner" - ] - }, - { - "source": "@/components/ui/toaster", - "specifiers": [ - "Toaster" - ] - }, - { - "source": "@/components/ui/tooltip", - "specifiers": [ - "TooltipProvider" - ] - }, - { - "source": "@/providers/ServiceProvider", - "specifiers": [ - "ServiceProvider" - ] - }, - { - "source": "@/providers/InstallProvider", - "specifiers": [ - "InstallProvider" - ] - }, - { - "source": "@/providers/ThemeProvider", - "specifiers": [ - "ThemeProvider" - ] - }, - { - "source": "@/components/os/ErrorBoundary", - "specifiers": [ - "AppErrorBoundary" - ] - }, - { - "source": "@/providers/WaggleClerkProvider", - "specifiers": [ - "WaggleClerkProvider" - ] - }, - { - "source": "@/components/os/AppShell", - "specifiers": [ - "AppShell", - "IndexRedirect" - ] - }, - { - "source": "./pages/NotFound.tsx", - "specifiers": [ - "NotFound" - ] - }, - { - "source": "@/routes", - "specifiers": [ - "HomeRoute", - "WorkspaceRoute", - "MemoryRoute", - "ArtifactsRoute", - "FilesRoute", - "AgentsRoute", - "AutomationsRoute", - "SkillsRoute", - "ConnectorsRoute", - "McpsRoute", - "MarketplaceRoute", - "LauncherRoute", - "RoomRoute", - "WaggleDanceRoute", - "ApprovalsRoute", - "TeamRoute", - "SettingsRoute", - "VaultRoute", - "ProfileRoute", - "MissionControlRoute", - "TimelineRoute", - "EventsRoute", - "UsageRoute", - "BenchmarkRoute", - "PlatformRoute", - "WorkspacesRoute", - "PaymentSuccessRoute", - "AuthRoute" - ] - } - ], - "exports": [], - "totalLines": 129, - "hasStructuralAnalysis": true - }, - "apps/web/src/assets/personas/README.md": { - "filePath": "apps/web/src/assets/personas/README.md", - "contentHash": "30301a001e1e7b95e2d6e19a79ff51f73b7e597eafe1f7b480c067ed1824cb18", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 51, - "hasStructuralAnalysis": true - }, - "apps/web/src/boot-connect.ts": { - "filePath": "apps/web/src/boot-connect.ts", - "contentHash": "c9fbf4c72d39855c9eb2e2989f2a4fe3ec193074dc154f2ebeee99d556ca97fe", - "functions": [], - "classes": [], - "imports": [ - { - "source": "./lib/adapter", - "specifiers": [ - "adapter" - ] - } - ], - "exports": [], - "totalLines": 19, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/NavLink.tsx": { - "filePath": "apps/web/src/components/NavLink.tsx", - "contentHash": "ae74980e699af0c3cd0ad42663626cf49c543ced33c81423bd345ac307b3c13a", - "functions": [], - "classes": [], - "imports": [ - { - "source": "react-router-dom", - "specifiers": [ - "RouterNavLink", - "NavLinkProps" - ] - }, - { - "source": "react", - "specifiers": [ - "forwardRef" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - } - ], - "exports": [ - "NavLink" - ], - "totalLines": 29, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/agents/AgentBuilder.tsx": { - "filePath": "apps/web/src/components/os/apps/agents/AgentBuilder.tsx", - "contentHash": "9fa919747cc974e9e65c057eaab05c2afd9fb1fa5938062dc5b27f45fb991011", - "functions": [ - { - "name": "TogglePill", - "params": [ - "{ active, label, onToggle }" - ], - "exported": false, - "lineCount": 14 - }, - { - "name": "FieldLabel", - "params": [ - "{ htmlFor, children }" - ], - "exported": false, - "lineCount": 7 - }, - { - "name": "ReviewList", - "params": [ - "{ label, items }" - ], - "exported": false, - "lineCount": 16 - }, - { - "name": "AgentBuilder", - "params": [ - "{ busy, initial, workspaces, onCreate, onCancel }" - ], - "exported": false, - "lineCount": 294 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect" - ] - }, - { - "source": "@/components/ui/input", - "specifiers": [ - "Input" - ] - }, - { - "source": "@/components/ui/textarea", - "specifiers": [ - "Textarea" - ] - }, - { - "source": "@/components/ui/stepper", - "specifiers": [ - "BuilderStepper", - "BuilderStep" - ] - }, - { - "source": "@/components/ui/approval-modal", - "specifiers": [ - "ApprovalModal", - "ApprovalRequest" - ] - }, - { - "source": "@/lib/risk-display", - "specifiers": [ - "actionRisk" - ] - }, - { - "source": "@/components/os/ModelSelector", - "specifiers": [ - "ModelSelector" - ] - }, - { - "source": "@/hooks/useProviders", - "specifiers": [ - "useProviders" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "Persona", - "Workspace" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "AgentType", - "AutonomyLevel", - "ConnectorDefinition", - "Scope" - ] - } - ], - "exports": [], - "totalLines": 399, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/agents/AgentCard.tsx": { - "filePath": "apps/web/src/components/os/apps/agents/AgentCard.tsx", - "contentHash": "00591506bf4c574fa17bdd203e4925a27f08755992a3ad545b1e8e11a26001b7", - "functions": [ - { - "name": "AgentCard", - "params": [ - "{ agent, localPersona, selected, onSelect, onDelete }" - ], - "exported": false, - "lineCount": 32 - } - ], - "classes": [], - "imports": [ - { - "source": "framer-motion", - "specifiers": [ - "motion" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Trash2", - "ChevronRight" - ] - }, - { - "source": "@/components/ui/avatar", - "specifiers": [ - "Avatar", - "AvatarImage", - "AvatarFallback" - ] - }, - { - "source": "./types", - "specifiers": [ - "BackendPersona" - ] - }, - { - "source": "@/lib/personas", - "specifiers": [ - "PersonaConfig" - ] - } - ], - "exports": [], - "totalLines": 49, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/agents/AgentCenterDetail.tsx": { - "filePath": "apps/web/src/components/os/apps/agents/AgentCenterDetail.tsx", - "contentHash": "dcbe79ef94113cc2e5783b61faca7d974161cb23a3ad82310e2d5cc2eefa832d", - "functions": [ - { - "name": "ScopeList", - "params": [ - "{ label, items }" - ], - "exported": false, - "lineCount": 16 - }, - { - "name": "AgentCenterDetail", - "params": [ - "{ agent, workspaces, busy, onOpenChange, onRun, onPause, onArchiveToggle }" - ], - "exported": false, - "lineCount": 117 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Play", - "Pause", - "Archive", - "RotateCcw" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "Agent", - "AgentTrace", - "Workspace" - ] - }, - { - "source": "@/components/ui/detail-drawer", - "specifiers": [ - "DetailDrawer" - ] - }, - { - "source": "@/components/ui/status-badge", - "specifiers": [ - "StatusBadge" - ] - }, - { - "source": "@/lib/agent-center-display", - "specifiers": [ - "AGENT_STATE_META", - "formatSuccessRate", - "formatRelativeTime" - ] - } - ], - "exports": [], - "totalLines": 170, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/agents/AgentCenterRow.tsx": { - "filePath": "apps/web/src/components/os/apps/agents/AgentCenterRow.tsx", - "contentHash": "620e38a869cb3908c8f3345ab707f986128c4408aea13e174fced2f8ddfcfe41", - "functions": [ - { - "name": "AgentCenterRow", - "params": [ - "{ agent, busy, onOpen, onRun, onPause }" - ], - "exported": false, - "lineCount": 54 - } - ], - "classes": [], - "imports": [ - { - "source": "lucide-react", - "specifiers": [ - "Play", - "Pause", - "Loader2" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "Agent" - ] - }, - { - "source": "@/components/ui/status-badge", - "specifiers": [ - "StatusBadge" - ] - }, - { - "source": "@/lib/agent-center-display", - "specifiers": [ - "AGENT_STATE_META", - "formatSuccessRate", - "formatRelativeTime" - ] - } - ], - "exports": [], - "totalLines": 76, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/agents/AgentDetail.tsx": { - "filePath": "apps/web/src/components/os/apps/agents/AgentDetail.tsx", - "contentHash": "a2c4bd0ffa1acd27a05d0449ac844b9ed01ef7ee0b4bb392eafa511d09a56148", - "functions": [ - { - "name": "AgentDetail", - "params": [ - "{ agent, localPersona, allTools, onEdit }" - ], - "exported": false, - "lineCount": 92 - } - ], - "classes": [], - "imports": [ - { - "source": "framer-motion", - "specifiers": [ - "motion" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Wrench", - "Pencil" - ] - }, - { - "source": "@/components/ui/avatar", - "specifiers": [ - "Avatar", - "AvatarImage", - "AvatarFallback" - ] - }, - { - "source": "@/components/ui/hint-tooltip", - "specifiers": [ - "HintTooltip" - ] - }, - { - "source": "./types", - "specifiers": [ - "BackendPersona", - "ToolDef" - ] - }, - { - "source": "@/lib/personas", - "specifiers": [ - "PersonaConfig" - ] - } - ], - "exports": [], - "totalLines": 109, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/agents/CreateAgentForm.tsx": { - "filePath": "apps/web/src/components/os/apps/agents/CreateAgentForm.tsx", - "contentHash": "7579fe9d7ce999642a16cc71ff02cdf69557fc211c848328d0e43c586c3ea9a7", - "functions": [ - { - "name": "CreateAgentForm", - "params": [ - "{ allTools, onSave, onCancel, onGenerate, initialData, editMode }" - ], - "exported": false, - "lineCount": 147 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState" - ] - }, - { - "source": "framer-motion", - "specifiers": [ - "motion" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Sparkles", - "Loader2", - "Search", - "Check", - "Plus", - "Save", - "Wrench" - ] - }, - { - "source": "@/components/ui/input", - "specifiers": [ - "Input" - ] - }, - { - "source": "./types", - "specifiers": [ - "ToolDef" - ] - } - ], - "exports": [], - "totalLines": 166, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/agents/CreateGroupForm.tsx": { - "filePath": "apps/web/src/components/os/apps/agents/CreateGroupForm.tsx", - "contentHash": "d55c1f8af0c4b22e5b9e8a11a830442247bba045ba86806ca7afdb688384fd59", - "functions": [ - { - "name": "CreateGroupForm", - "params": [ - "{ agents, onSave, onCancel, initialData, editMode }" - ], - "exported": false, - "lineCount": 157 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useRef" - ] - }, - { - "source": "framer-motion", - "specifiers": [ - "motion" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Plus", - "X", - "Users", - "GripVertical", - "ChevronUp", - "ChevronDown" - ] - }, - { - "source": "@/components/ui/input", - "specifiers": [ - "Input" - ] - }, - { - "source": "@/components/ui/hint-tooltip", - "specifiers": [ - "HintTooltip" - ] - }, - { - "source": "./types", - "specifiers": [ - "AgentGroupMember", - "BackendPersona" - ] - }, - { - "source": "./types", - "specifiers": [ - "STRATEGY_CONFIG" - ] - } - ], - "exports": [], - "totalLines": 176, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/agents/GroupCard.tsx": { - "filePath": "apps/web/src/components/os/apps/agents/GroupCard.tsx", - "contentHash": "d0da9714e44b74179a157b99272448584a11e49a492da1b699f2c0a364843845", - "functions": [ - { - "name": "GroupCard", - "params": [ - "{ group, selected, onSelect, onDelete }" - ], - "exported": false, - "lineCount": 32 - } - ], - "classes": [], - "imports": [ - { - "source": "framer-motion", - "specifiers": [ - "motion" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Users", - "Trash2", - "ChevronRight" - ] - }, - { - "source": "./types", - "specifiers": [ - "AgentGroup", - "BackendPersona" - ] - }, - { - "source": "./types", - "specifiers": [ - "STRATEGY_CONFIG" - ] - } - ], - "exports": [], - "totalLines": 48, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/agents/GroupDetail.tsx": { - "filePath": "apps/web/src/components/os/apps/agents/GroupDetail.tsx", - "contentHash": "a6d51fc12c1ac3606f2cf9ddae44e9467ebc1dd360d5b55b19d73340ebf2335e", - "functions": [ - { - "name": "GroupDetail", - "params": [ - "{ group, agents, onRun, onEdit, onDuplicate }" - ], - "exported": false, - "lineCount": 182 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect", - "useRef" - ] - }, - { - "source": "framer-motion", - "specifiers": [ - "motion", - "AnimatePresence" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Users", - "Pencil", - "Copy", - "Play", - "Loader2", - "Crown", - "Cog", - "CheckCircle2", - "XCircle", - "Clock" - ] - }, - { - "source": "@/components/ui/avatar", - "specifiers": [ - "Avatar", - "AvatarImage", - "AvatarFallback" - ] - }, - { - "source": "@/components/ui/input", - "specifiers": [ - "Input" - ] - }, - { - "source": "@/lib/personas", - "specifiers": [ - "PERSONAS" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "./GroupExecutionPanel", - "specifiers": [ - "GroupExecutionPanel" - ] - }, - { - "source": "./types", - "specifiers": [ - "AgentGroup", - "BackendPersona", - "GroupExecState", - "MemberExecStatus" - ] - }, - { - "source": "./types", - "specifiers": [ - "STRATEGY_CONFIG" - ] - } - ], - "exports": [], - "totalLines": 221, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/agents/GroupExecutionPanel.tsx": { - "filePath": "apps/web/src/components/os/apps/agents/GroupExecutionPanel.tsx", - "contentHash": "76bc53d9b531ba059722213eae2930edc01b8fae585cfa0ac65780960153ea5d", - "functions": [ - { - "name": "GroupExecutionPanel", - "params": [ - "{ exec, agents, strategy, onDismiss, onCancel }" - ], - "exported": false, - "lineCount": 140 - } - ], - "classes": [], - "imports": [ - { - "source": "framer-motion", - "specifiers": [ - "motion" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Activity", - "X", - "StopCircle", - "Clock", - "Loader2", - "CheckCircle2", - "XCircle" - ] - }, - { - "source": "@/components/ui/avatar", - "specifiers": [ - "Avatar", - "AvatarImage", - "AvatarFallback" - ] - }, - { - "source": "@/lib/personas", - "specifiers": [ - "PERSONAS" - ] - }, - { - "source": "./types", - "specifiers": [ - "BackendPersona", - "GroupExecState", - "MemberExecStatus", - "AgentGroup" - ] - } - ], - "exports": [], - "totalLines": 173, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/agents/TemplatesView.tsx": { - "filePath": "apps/web/src/components/os/apps/agents/TemplatesView.tsx", - "contentHash": "0dbc7f7538329b37b98b083311f94b950ab08ec2084a32906dd9e65fe6556681", - "functions": [ - { - "name": "TemplatesView", - "params": [ - "{ onUseTemplate }" - ], - "exported": false, - "lineCount": 344 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect", - "useCallback" - ] - }, - { - "source": "framer-motion", - "specifiers": [ - "AnimatePresence" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Bot", - "Plus", - "Search", - "Loader2", - "Users", - "X", - "AlertCircle", - "RefreshCw", - "Copy" - ] - }, - { - "source": "@/components/ui/input", - "specifiers": [ - "Input" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/lib/personas", - "specifiers": [ - "PERSONAS" - ] - }, - { - "source": "./types", - "specifiers": [ - "BackendPersona", - "AgentGroup", - "ToolDef", - "GroupExecState", - "MemberExecState" - ] - }, - { - "source": "./AgentCard", - "specifiers": [ - "AgentCard" - ] - }, - { - "source": "./AgentDetail", - "specifiers": [ - "AgentDetail" - ] - }, - { - "source": "./CreateAgentForm", - "specifiers": [ - "CreateAgentForm" - ] - }, - { - "source": "./GroupCard", - "specifiers": [ - "GroupCard" - ] - }, - { - "source": "./GroupDetail", - "specifiers": [ - "GroupDetail" - ] - }, - { - "source": "./CreateGroupForm", - "specifiers": [ - "CreateGroupForm" - ] - } - ], - "exports": [], - "totalLines": 372, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/agents/types.ts": { - "filePath": "apps/web/src/components/os/apps/agents/types.ts", - "contentHash": "18d22a8488e774c00a0e51f5f045fbdbad487a8f6e97aea101473cea292a4893", - "functions": [], - "classes": [], - "imports": [], - "exports": [ - "STRATEGY_CONFIG" - ], - "totalLines": 60, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/agents/WorkspacePickerDialog.tsx": { - "filePath": "apps/web/src/components/os/apps/agents/WorkspacePickerDialog.tsx", - "contentHash": "152ff39ecb6b1bf5b5016a65ec80e8662edb48b23896e0120d53df50954d06c3", - "functions": [ - { - "name": "WorkspacePickerDialog", - "params": [ - "{ agentName, workspaceIds, workspaces, onPick, onCancel }" - ], - "exported": false, - "lineCount": 43 - } - ], - "classes": [], - "imports": [ - { - "source": "react-dom", - "specifiers": [ - "createPortal" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "X" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "Workspace" - ] - }, - { - "source": "@/hooks/useFocusTrap", - "specifiers": [ - "useFocusTrap" - ] - } - ], - "exports": [], - "totalLines": 70, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/AgentsApp.tsx": { - "filePath": "apps/web/src/components/os/apps/AgentsApp.tsx", - "contentHash": "fc302f36cfaf88d534a98d7c8fa8059288bdb757a0d77ca9345dc63168c89a4f", - "functions": [ - { - "name": "AgentsApp", - "params": [ - "{ workspaces }" - ], - "exported": false, - "lineCount": 350 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect", - "useCallback" - ] - }, - { - "source": "react-router-dom", - "specifiers": [ - "useNavigate" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Bot", - "Plus", - "Search", - "Loader2", - "AlertCircle", - "RefreshCw", - "LibraryBig", - "ChevronRight", - "Network", - "ArrowRight" - ] - }, - { - "source": "@/components/ui/input", - "specifiers": [ - "Input" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/providers/ServiceProvider", - "specifiers": [ - "useService" - ] - }, - { - "source": "@/hooks/use-toast", - "specifiers": [ - "useToast" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "Agent", - "Workspace" - ] - }, - { - "source": "@/lib/agent-center-display", - "specifiers": [ - "AGENT_CENTER_TABS", - "AgentCenterTab", - "filterAgentsByTab", - "agentKpis", - "formatSuccessRate", - "workspaceAmbiguityIds" - ] - }, - { - "source": "./agents/AgentCenterRow", - "specifiers": [ - "AgentCenterRow" - ] - }, - { - "source": "./agents/AgentCenterDetail", - "specifiers": [ - "AgentCenterDetail" - ] - }, - { - "source": "./agents/WorkspacePickerDialog", - "specifiers": [ - "WorkspacePickerDialog" - ] - }, - { - "source": "./agents/AgentBuilder", - "specifiers": [ - "AgentBuilder", - "AgentBuilderInput" - ] - }, - { - "source": "./agents/TemplatesView", - "specifiers": [ - "TemplatesView" - ] - }, - { - "source": "./agents/types", - "specifiers": [ - "BackendPersona" - ] - } - ], - "exports": [], - "totalLines": 389, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/AllWorkspacesApp.test.tsx": { - "filePath": "apps/web/src/components/os/apps/AllWorkspacesApp.test.tsx", - "contentHash": "decd16abe3ab0913a513a6ba00a6fc90e5f0589dbc26520e271503932d685c50", - "functions": [ - { - "name": "ws", - "params": [ - "over" - ], - "returnType": "Workspace", - "exported": false, - "lineCount": 4 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "render", - "screen", - "fireEvent", - "cleanup" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "Workspace" - ] - }, - { - "source": "./AllWorkspacesApp", - "specifiers": [ - "AllWorkspacesApp" - ] - } - ], - "exports": [], - "totalLines": 133, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/AllWorkspacesApp.tsx": { - "filePath": "apps/web/src/components/os/apps/AllWorkspacesApp.tsx", - "contentHash": "05038ae843c97be5e64f7c686c4081a0779a5c6307a91ed098209563ba139759", - "functions": [ - { - "name": "formatRelative", - "params": [ - "iso" - ], - "returnType": "string | null", - "exported": false, - "lineCount": 14 - }, - { - "name": "FilterPills", - "params": [ - "{\r\n active, counts, onChange,\r\n}" - ], - "exported": false, - "lineCount": 34 - }, - { - "name": "WorkspaceCard", - "params": [ - "{\r\n ws, onOpen, onChanged, isDuplicateName,\r\n}" - ], - "exported": false, - "lineCount": 102 - }, - { - "name": "AllWorkspacesApp", - "params": [ - "{ onOpenWorkspace }" - ], - "exported": false, - "lineCount": 171 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useMemo", - "useState" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Search", - "Plus", - "Hexagon", - "AlertTriangle", - "ChevronRight" - ] - }, - { - "source": "@/providers/ShellContext", - "specifiers": [ - "useShell" - ] - }, - { - "source": "../WorkspaceActionsMenu", - "specifiers": [ - "WorkspaceActionsMenu" - ] - }, - { - "source": "../overlays/CreateWorkspaceDialog", - "specifiers": [ - "CreateWorkspaceDialog" - ] - }, - { - "source": "../warm", - "specifiers": [ - "HexAvatar", - "SectionLabel", - "DotLive" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "StorageType", - "Workspace" - ] - } - ], - "exports": [], - "totalLines": 385, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/ApprovalsApp.tsx": { - "filePath": "apps/web/src/components/os/apps/ApprovalsApp.tsx", - "contentHash": "a857eddfe5f25b865b23a6d0b313fc88efe6563a4db822dd1a38bcbadce97a83", - "functions": [ - { - "name": "formatRelative", - "params": [ - "iso" - ], - "returnType": "string", - "exported": false, - "lineCount": 17 - }, - { - "name": "summarizeInput", - "params": [ - "input" - ], - "returnType": "string", - "exported": false, - "lineCount": 8 - }, - { - "name": "ApprovalsError", - "params": [ - "{ message, onRetry, retrying }" - ], - "exported": false, - "lineCount": 16 - }, - { - "name": "ApprovalsApp", - "params": [], - "exported": false, - "lineCount": 241 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect", - "useCallback" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Shield", - "ShieldCheck", - "Clock", - "XIcon", - "AlertTriangle", - "CheckCircle2", - "RefreshCw" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/hooks/use-toast", - "specifiers": [ - "useToast" - ] - }, - { - "source": "@/components/ui/hint-tooltip", - "specifiers": [ - "HintTooltip" - ] - }, - { - "source": "./power/power-primitives", - "specifiers": [ - "RiskBadge", - "riskToneForTool" - ] - } - ], - "exports": [], - "totalLines": 328, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/ArtifactCenterApp.tsx": { - "filePath": "apps/web/src/components/os/apps/ArtifactCenterApp.tsx", - "contentHash": "6355c6034f86743cce4c4d0c6140967e31bc120960a949953d51ef454ea81f75", - "functions": [ - { - "name": "statusTone", - "params": [ - "s" - ], - "returnType": "'neutral' | 'healthy' | 'attention'", - "exported": false, - "lineCount": 5 - }, - { - "name": "ArtifactCenterApp", - "params": [ - "{ activeWorkspaceId, workspaceName }" - ], - "exported": true, - "lineCount": 348 - }, - { - "name": "RelatedGroup", - "params": [ - "{ label, items }" - ], - "exported": false, - "lineCount": 12 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect", - "useCallback", - "useRef" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Search", - "Loader2", - "FileText", - "Presentation", - "Table2", - "LayoutDashboard", - "Microscope", - "Code2", - "ImageIcon", - "Palette", - "File", - "Archive", - "Trash2", - "RotateCcw", - "Save", - "Plus", - "Link2" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "Artifact", - "ArtifactKind", - "ArtifactStatus", - "RelatedSearchResult" - ] - }, - { - "source": "@/components/ui/detail-drawer", - "specifiers": [ - "DetailDrawer" - ] - }, - { - "source": "@/components/ui/status-badge", - "specifiers": [ - "StatusBadge" - ] - }, - { - "source": "@/components/ui/input", - "specifiers": [ - "Input" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - } - ], - "exports": [ - "ArtifactCenterApp" - ], - "totalLines": 429, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/AutomationCenterApp.tsx": { - "filePath": "apps/web/src/components/os/apps/AutomationCenterApp.tsx", - "contentHash": "3b60e27944ad655770371e36546f1ff6818a3f1e209b112ccf82f9b91ec8737a", - "functions": [ - { - "name": "AutomationCenterApp", - "params": [], - "exported": false, - "lineCount": 444 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect", - "useCallback" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Clock", - "Plus", - "Loader2", - "AlertTriangle", - "RefreshCw" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/providers/ServiceProvider", - "specifiers": [ - "useService" - ] - }, - { - "source": "@/hooks/use-toast", - "specifiers": [ - "useToast" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "Automation" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "AutomationLog" - ] - }, - { - "source": "@/lib/app-deeplink", - "specifiers": [ - "consumeDeepLink" - ] - }, - { - "source": "@/lib/automation-display", - "specifiers": [ - "successRateFromLogs", - "formatRatePercent", - "describeTrigger" - ] - }, - { - "source": "./automations/AutomationRow", - "specifiers": [ - "AutomationRow" - ] - }, - { - "source": "./automations/AutomationLogList", - "specifiers": [ - "AutomationLogList", - "NamedLog" - ] - }, - { - "source": "./automations/AutomationBuilder", - "specifiers": [ - "AutomationBuilder", - "AutomationDraft" - ] - } - ], - "exports": [], - "totalLines": 483, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/automations/AutomationBuilder.tsx": { - "filePath": "apps/web/src/components/os/apps/automations/AutomationBuilder.tsx", - "contentHash": "8c71859e7a4c9e972347dffab59eb67db8a4c6b19383f5d2b8254de147ea3e52", - "functions": [ - { - "name": "AutomationBuilder", - "params": [ - "{ initial, busy, onSubmit, onCancel }" - ], - "exported": false, - "lineCount": 451 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect", - "useMemo" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Info", - "Loader2", - "FlaskConical", - "CheckCircle2", - "AlertTriangle" - ] - }, - { - "source": "@/components/ui/input", - "specifiers": [ - "Input" - ] - }, - { - "source": "@/components/ui/textarea", - "specifiers": [ - "Textarea" - ] - }, - { - "source": "@/components/ui/stepper", - "specifiers": [ - "BuilderStepper", - "BuilderStep" - ] - }, - { - "source": "@/components/ui/approval-modal", - "specifiers": [ - "ApprovalModal", - "ApprovalRequest" - ] - }, - { - "source": "@/lib/risk-display", - "specifiers": [ - "actionRisk" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "Automation" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "Workspace" - ] - }, - { - "source": "@/lib/cron-presets", - "specifiers": [ - "CRON_SCHEDULE_PRESETS", - "CRON_JOB_TYPES", - "DEFAULT_CRON_PRESET_ID", - "DEFAULT_CRON_JOB_TYPE", - "getCronPreset", - "presetForExpr", - "describeCronExpr", - "isPlausibleCronExpr", - "CronJobType" - ] - } - ], - "exports": [], - "totalLines": 532, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/automations/AutomationLogList.tsx": { - "filePath": "apps/web/src/components/os/apps/automations/AutomationLogList.tsx", - "contentHash": "152f01718adfaed0d15fe984696b00847f69fc6c73220758972c9ae506831c26", - "functions": [ - { - "name": "AutomationLogList", - "params": [ - "{ logs, loading, error, emptyText }" - ], - "exported": false, - "lineCount": 34 - } - ], - "classes": [], - "imports": [ - { - "source": "lucide-react", - "specifiers": [ - "Loader2" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "AutomationLog" - ] - }, - { - "source": "@/components/ui/status-badge", - "specifiers": [ - "StatusBadge" - ] - } - ], - "exports": [], - "totalLines": 59, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/automations/AutomationRow.tsx": { - "filePath": "apps/web/src/components/os/apps/automations/AutomationRow.tsx", - "contentHash": "1453e379911254dbcc5c3be597f381880b59062ed5030992275fd9835c5cbfeb", - "functions": [ - { - "name": "AutomationRow", - "params": [ - "{ automation: a, lastLog, runningNow, busy, onToggle, onRunNow, onLogs, onEdit, onDelete }" - ], - "exported": false, - "lineCount": 61 - } - ], - "classes": [], - "imports": [ - { - "source": "lucide-react", - "specifiers": [ - "Play", - "Trash2", - "Loader2", - "ToggleLeft", - "ToggleRight", - "ScrollText", - "Pencil" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "Automation" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "AutomationLog" - ] - }, - { - "source": "@/components/ui/status-badge", - "specifiers": [ - "StatusBadge" - ] - }, - { - "source": "@/components/ui/hint-tooltip", - "specifiers": [ - "HintTooltip" - ] - }, - { - "source": "@/lib/automation-display", - "specifiers": [ - "AUTOMATION_STATE_META", - "deriveAutomationStatus", - "describeTrigger" - ] - } - ], - "exports": [], - "totalLines": 90, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/BackupApp.tsx": { - "filePath": "apps/web/src/components/os/apps/BackupApp.tsx", - "contentHash": "49b5875f22c4522547cfce8e4586c9408b37ae3b1941119105d9bdafb07bfc3c", - "functions": [ - { - "name": "classifyMetadataStatus", - "params": [ - "status" - ], - "returnType": "'ok' | 'empty' | 'error'", - "exported": true, - "lineCount": 5 - }, - { - "name": "BackupApp", - "params": [], - "exported": false, - "lineCount": 164 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect", - "ChangeEvent" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Archive", - "Download", - "Upload", - "Loader2", - "CheckCircle2", - "Clock", - "AlertTriangle" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - } - ], - "exports": [ - "classifyMetadataStatus" - ], - "totalLines": 193, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/BenchmarkApp.test.tsx": { - "filePath": "apps/web/src/components/os/apps/BenchmarkApp.test.tsx", - "contentHash": "655c1fa857ffd944069ad609a05cc8d6cbd6dbcbd9777120afc210b20e491323", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "render", - "screen", - "cleanup", - "fireEvent", - "within" - ] - }, - { - "source": "./BenchmarkApp", - "specifiers": [ - "BenchmarkApp" - ] - } - ], - "exports": [], - "totalLines": 77, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/BenchmarkApp.tsx": { - "filePath": "apps/web/src/components/os/apps/BenchmarkApp.tsx", - "contentHash": "d1af0f0ced3f42c59291bb0fd8de3473a624352fd48ac316ae98ecff536957ab", - "functions": [ - { - "name": "markClass", - "params": [ - "mark", - "isUs" - ], - "returnType": "string", - "exported": false, - "lineCount": 6 - }, - { - "name": "markStyle", - "params": [ - "mark", - "isUs" - ], - "returnType": "React.CSSProperties", - "exported": false, - "lineCount": 6 - }, - { - "name": "Disclaimer", - "params": [ - "{ children }" - ], - "exported": false, - "lineCount": 11 - }, - { - "name": "BenchmarkApp", - "params": [], - "exported": false, - "lineCount": 44 - }, - { - "name": "CapabilitiesView", - "params": [], - "exported": false, - "lineCount": 170 - }, - { - "name": "MemorySotaView", - "params": [], - "exported": false, - "lineCount": 91 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "BarChart3", - "Info" - ] - } - ], - "exports": [], - "totalLines": 412, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/CapabilitiesApp.tsx": { - "filePath": "apps/web/src/components/os/apps/CapabilitiesApp.tsx", - "contentHash": "20aeb8e48d431ce979dcc3ab3f9011e68b03ee3224c3ee015e8476d85f43e1ec", - "functions": [ - { - "name": "CapabilitiesApp", - "params": [], - "exported": false, - "lineCount": 562 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect", - "useCallback" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Package", - "Download", - "CheckCircle2", - "Shield", - "Star", - "Search", - "Loader2", - "Store", - "Grid3X3", - "List", - "FlaskConical", - "X", - "Plus", - "FileCode2" - ] - }, - { - "source": "@/components/ui/input", - "specifiers": [ - "Input" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/providers/ServiceProvider", - "specifiers": [ - "useService" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "SkillPack", - "Skill" - ] - }, - { - "source": "@/lib/skill-pack-display", - "specifiers": [ - "describeTrust", - "summariseSkills" - ] - }, - { - "source": "@/lib/dedupe-packs", - "specifiers": [ - "dedupePacks" - ] - }, - { - "source": "@/components/ui/hint-tooltip", - "specifiers": [ - "HintTooltip" - ] - }, - { - "source": "./skills/SkillRow", - "specifiers": [ - "SkillRow" - ] - }, - { - "source": "./skills/SkillEditorDrawer", - "specifiers": [ - "SkillEditorDrawer" - ] - }, - { - "source": "./skills/SkillBuilder", - "specifiers": [ - "SkillBuilder" - ] - }, - { - "source": "./extend/InstallAuditPanel", - "specifiers": [ - "InstallAuditPanel" - ] - } - ], - "exports": [], - "totalLines": 633, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/chat-blocks/ArtifactBlock.tsx": { - "filePath": "apps/web/src/components/os/apps/chat-blocks/ArtifactBlock.tsx", - "contentHash": "5e7446527a502e6da32e7f0f597d3d305b6932f2bfe648d86016edd1f4777a2a", - "functions": [ - { - "name": "isArtifactBlock", - "params": [ - "block" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 8 - }, - { - "name": "iconFor", - "params": [ - "name" - ], - "exported": false, - "lineCount": 8 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "memo" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "FileText", - "FileCode", - "FileSpreadsheet", - "FileImage", - "FileIcon", - "ArrowUpRight", - "Sparkles" - ] - }, - { - "source": "@/lib/app-deeplink", - "specifiers": [ - "stashDeepLink" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "ToolUseContentBlock" - ] - } - ], - "exports": [ - "isArtifactBlock" - ], - "totalLines": 79, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/chat-blocks/BlockRenderer.tsx": { - "filePath": "apps/web/src/components/os/apps/chat-blocks/BlockRenderer.tsx", - "contentHash": "9eeb384f7385dcf4f2fc37cc38d0b14987558bc1f01b2e980a477c3f785b2926", - "functions": [ - { - "name": "getBlockKey", - "params": [ - "block", - "index" - ], - "returnType": "string", - "exported": false, - "lineCount": 5 - }, - { - "name": "renderStepGroup", - "params": [ - "steps", - "key", - "isStreaming" - ], - "returnType": "ReactNode", - "exported": false, - "lineCount": 22 - }, - { - "name": "BlockRenderer", - "params": [ - "{ blocks, isStreaming }" - ], - "exported": false, - "lineCount": 52 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "ReactNode" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "ContentBlock", - "StepContentBlock" - ] - }, - { - "source": "./TextBlock", - "specifiers": [ - "TextBlock" - ] - }, - { - "source": "./ToolUseBlock", - "specifiers": [ - "ToolUseBlock" - ] - }, - { - "source": "./ModelSwitchBlock", - "specifiers": [ - "ModelSwitchBlock" - ] - }, - { - "source": "./ArtifactBlock", - "specifiers": [ - "ArtifactBlock", - "isArtifactBlock" - ] - }, - { - "source": "../../warm", - "specifiers": [ - "ActivityStream", - "ActivityStep" - ] - }, - { - "source": "@/lib/frame-source", - "specifiers": [ - "frameSourceLabel" - ] - } - ], - "exports": [], - "totalLines": 107, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/chat-blocks/capability-request-parser.test.ts": { - "filePath": "apps/web/src/components/os/apps/chat-blocks/capability-request-parser.test.ts", - "contentHash": "82aa2c38f6d8c4224bf42b4bcc86c9e0e493afe08f3062ebfc1176861a49d637", - "functions": [ - { - "name": "capOf", - "params": [ - "segs" - ], - "exported": false, - "lineCount": 1 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "./capability-request-parser", - "specifiers": [ - "segmentText", - "Segment" - ] - } - ], - "exports": [], - "totalLines": 32, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/chat-blocks/capability-request-parser.ts": { - "filePath": "apps/web/src/components/os/apps/chat-blocks/capability-request-parser.ts", - "contentHash": "f4c94ed6e9b556c337597551871f9fa4ff32111144866a399f382049635fd6e5", - "functions": [ - { - "name": "parseRequest", - "params": [ - "jsonRaw" - ], - "returnType": "CapabilityRequest | null", - "exported": false, - "lineCount": 16 - }, - { - "name": "segmentText", - "params": [ - "content" - ], - "returnType": "Segment[]", - "exported": true, - "lineCount": 55 - } - ], - "classes": [], - "imports": [ - { - "source": "./CapabilityRequestCard", - "specifiers": [ - "CapabilityRequest" - ] - } - ], - "exports": [ - "segmentText" - ], - "totalLines": 93, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/chat-blocks/CapabilityRequestCard.tsx": { - "filePath": "apps/web/src/components/os/apps/chat-blocks/CapabilityRequestCard.tsx", - "contentHash": "cd12979d1c300b3d9253aa6715997f3de72b41576e6eb99de4b43d39aaeaed5d", - "functions": [ - { - "name": "CapabilityRequestCard", - "params": [ - "{ request }" - ], - "exported": true, - "lineCount": 194 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Loader2", - "Download", - "Plug", - "Zap", - "CheckCircle2", - "XCircle", - "Package", - "ShieldCheck" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/hooks/use-toast", - "specifiers": [ - "useToast" - ] - }, - { - "source": "@/components/ui/input", - "specifiers": [ - "Input" - ] - }, - { - "source": "@/providers/InstallProvider", - "specifiers": [ - "useInstallStore" - ] - }, - { - "source": "@/lib/install-store", - "specifiers": [ - "describeError", - "InstallOutcome", - "InstallTarget" - ] - } - ], - "exports": [ - "CapabilityRequestCard" - ], - "totalLines": 234, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/chat-blocks/ChatWorkCanvas.tsx": { - "filePath": "apps/web/src/components/os/apps/chat-blocks/ChatWorkCanvas.tsx", - "contentHash": "13cc800b630a94a3881f71e2cdbc14b63c67bedf9c1e90dea22c4ee1aafe3731", - "functions": [ - { - "name": "selectCanvasArtifact", - "params": [ - "messages" - ], - "returnType": "CanvasArtifact | null", - "exported": true, - "lineCount": 20 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "memo" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "X", - "ArrowUpRight" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "ChatMessage" - ] - }, - { - "source": "@/lib/app-deeplink", - "specifiers": [ - "stashDeepLink" - ] - }, - { - "source": "@/lib/render-markdown", - "specifiers": [ - "renderChatMarkdown" - ] - } - ], - "exports": [ - "selectCanvasArtifact" - ], - "totalLines": 123, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/chat-blocks/index.ts": { - "filePath": "apps/web/src/components/os/apps/chat-blocks/index.ts", - "contentHash": "762f8daf5d52594ee8819f82a1cbc9688eb9feedc4e8858d9fd17d5729d865e4", - "functions": [], - "classes": [], - "imports": [], - "exports": [ - "BlockRenderer", - "TextBlock", - "StepBlock", - "ToolUseBlock", - "ModelSwitchBlock" - ], - "totalLines": 6, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/chat-blocks/ModelSwitchBlock.tsx": { - "filePath": "apps/web/src/components/os/apps/chat-blocks/ModelSwitchBlock.tsx", - "contentHash": "2f085049fb598d539bbc4cb9318c88341edf71040915e385a28517095fddc5fa", - "functions": [], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "memo" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Hexagon" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "ModelSwitchContentBlock" - ] - } - ], - "exports": [], - "totalLines": 18, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/chat-blocks/StepBlock.tsx": { - "filePath": "apps/web/src/components/os/apps/chat-blocks/StepBlock.tsx", - "contentHash": "79f2efa1b32cb3bdffe768a871cc9d37a90431a6600f470947eaa9d5c4fe0484", - "functions": [], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "memo" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Loader2", - "CheckCircle2" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "StepContentBlock" - ] - } - ], - "exports": [], - "totalLines": 24, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/chat-blocks/TextBlock.test.tsx": { - "filePath": "apps/web/src/components/os/apps/chat-blocks/TextBlock.test.tsx", - "contentHash": "5b1ec823821f260dfd6ada139102b1c4889c43f6e6a1612a2d6ede2cb1a5f291", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "./capability-request-parser", - "specifiers": [ - "segmentText" - ] - } - ], - "exports": [], - "totalLines": 79, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/chat-blocks/TextBlock.tsx": { - "filePath": "apps/web/src/components/os/apps/chat-blocks/TextBlock.tsx", - "contentHash": "41d8cada30c4bd6e7182caca6a3100cad24243c6d110be9355b4b162056ae887", - "functions": [], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "memo", - "useMemo", - "Fragment" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "TextContentBlock" - ] - }, - { - "source": "./CapabilityRequestCard", - "specifiers": [ - "CapabilityRequestCard" - ] - }, - { - "source": "./capability-request-parser", - "specifiers": [ - "segmentText" - ] - }, - { - "source": "@/lib/render-markdown", - "specifiers": [ - "renderChatMarkdown" - ] - } - ], - "exports": [], - "totalLines": 58, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/chat-blocks/ToolUseBlock.tsx": { - "filePath": "apps/web/src/components/os/apps/chat-blocks/ToolUseBlock.tsx", - "contentHash": "3e2a1ec5130f74441a356a4b527c72dbc6a1a18ca2d4ea48ba82a80fc4d8500f", - "functions": [ - { - "name": "StatusIcon", - "params": [ - "{ status }" - ], - "exported": false, - "lineCount": 8 - }, - { - "name": "formatToolName", - "params": [ - "name" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "summarizeInput", - "params": [ - "name", - "input" - ], - "returnType": "string", - "exported": false, - "lineCount": 11 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "memo", - "useState" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Loader2", - "CheckCircle2", - "XCircle", - "ChevronDown", - "ChevronRight" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "ToolUseContentBlock" - ] - } - ], - "exports": [], - "totalLines": 74, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/ChatApp.tsx": { - "filePath": "apps/web/src/components/os/apps/ChatApp.tsx", - "contentHash": "032a51cf733bef44f1c514084823112d401cf98fb4af98aa0005c7ae23447d7a", - "functions": [ - { - "name": "ToolStatusIcon", - "params": [ - "{ status }" - ], - "exported": false, - "lineCount": 10 - }, - { - "name": "ToolCard", - "params": [ - "{ tool }" - ], - "exported": false, - "lineCount": 34 - }, - { - "name": "FeedbackButtons", - "params": [ - "{ messageId, messageIndex, sessionId, feedback }" - ], - "exported": false, - "lineCount": 80 - }, - { - "name": "ApprovalGate", - "params": [ - "{\r\n request,\r\n onRespond,\r\n}" - ], - "exported": false, - "lineCount": 87 - }, - { - "name": "formatCountdown", - "params": [ - "ms" - ], - "returnType": "string", - "exported": false, - "lineCount": 9 - }, - { - "name": "AutonomyToggle", - "params": [ - "{\r\n level,\r\n expiresAt,\r\n onChange,\r\n}" - ], - "exported": false, - "lineCount": 95 - }, - { - "name": "FileDropZone", - "params": [ - "{ onDrop, active }" - ], - "exported": false, - "lineCount": 12 - }, - { - "name": "ChatApp", - "params": [ - "{\r\n messages, isLoading, onSendMessage, onClearHistory,\r\n pendingApproval, onApprove, currentPersona,\r\n onPersonaChange, currentModel, onModelChange, availableModels,\r\n teamPresence,\r\n sessions, activeSessionId, onSelectSession, onNewSession,\r\n workspaceId, templateId, storageType,\r\n autonomyLevel = 'normal', autonomyExpiresAt = null, onAutonomyChange,\r\n onContextRail,\r\n initialMessage,\r\n}" - ], - "exported": false, - "lineCount": 826 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useRef", - "useEffect", - "useCallback", - "useMemo" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Send", - "Sparkles", - "Plus", - "Slash", - "Paperclip", - "ChevronDown", - "ChevronUp", - "ThumbsUp", - "ThumbsDown", - "Loader2", - "AlertTriangle", - "CheckCircle2", - "XCircle", - "Clock", - "Upload", - "Code", - "FileText", - "Users", - "X", - "Bot", - "Brain", - "Cpu", - "Layers", - "Pin", - "PinOff", - "Shield", - "Zap", - "MoreHorizontal" - ] - }, - { - "source": "@/components/ui/hint-tooltip", - "specifiers": [ - "HintTooltip" - ] - }, - { - "source": "@/components/ui/scroll-area", - "specifiers": [ - "ScrollArea" - ] - }, - { - "source": "@/components/ui/avatar", - "specifiers": [ - "Avatar", - "AvatarImage", - "AvatarFallback" - ] - }, - { - "source": "@/lib/personas", - "specifiers": [ - "getPersonaById", - "PERSONAS" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/lib/platform", - "specifiers": [ - "cmdKLabel" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "ChatMessage", - "ToolExecution", - "ApprovalRequest" - ] - }, - { - "source": "@/lib/risk-display", - "specifiers": [ - "RiskBadge", - "canAlwaysAllow" - ] - }, - { - "source": "./chat-blocks", - "specifiers": [ - "BlockRenderer" - ] - }, - { - "source": "./chat-blocks/ChatWorkCanvas", - "specifiers": [ - "ChatWorkCanvas", - "selectCanvasArtifact" - ] - }, - { - "source": "../warm", - "specifiers": [ - "DotLive" - ] - }, - { - "source": "@/components/os/WorkspaceBriefing", - "specifiers": [ - "WorkspaceBriefing" - ] - }, - { - "source": "@/hooks/useContainerWidth", - "specifiers": [ - "useContainerWidth" - ] - }, - { - "source": "@/lib/chat-header-layout", - "specifiers": [ - "shouldCollapseChatHeader" - ] - }, - { - "source": "@/lib/suggested-actions", - "specifiers": [ - "extractSuggestedActions" - ] - }, - { - "source": "@/lib/memory-recall-toast", - "specifiers": [ - "buildRecallQuery", - "previewRecall", - "shouldFireMemoryRecall" - ] - }, - { - "source": "@/hooks/use-toast", - "specifiers": [ - "useToast" - ] - } - ], - "exports": [], - "totalLines": 1281, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/ChatWindowInstance.tsx": { - "filePath": "apps/web/src/components/os/apps/ChatWindowInstance.tsx", - "contentHash": "a7bdbb7092db12ddcfb6c92676058bafa9158219cabf26a45ed17ce1458c3f0e", - "functions": [ - { - "name": "ChatWindowInstance", - "params": [ - "{\r\n workspaceId,\r\n workspaceName,\r\n initialPersona,\r\n initialMessage,\r\n templateId,\r\n storageType,\r\n onPersonaChange,\r\n autonomyLevel = 'normal',\r\n autonomyExpiresAt = null,\r\n onAutonomyChange,\r\n onContextRail,\r\n}" - ], - "exported": false, - "lineCount": 188 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect" - ] - }, - { - "source": "@/hooks/useChat", - "specifiers": [ - "useChat" - ] - }, - { - "source": "@/hooks/useSessions", - "specifiers": [ - "useSessions" - ] - }, - { - "source": "@/hooks/use-toast", - "specifiers": [ - "useToast" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "./ChatApp", - "specifiers": [ - "ChatApp" - ] - }, - { - "source": "./ChatApp", - "specifiers": [ - "TeamMember" - ] - } - ], - "exports": [], - "totalLines": 264, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/cockpit/ComplianceDashboard.tsx": { - "filePath": "apps/web/src/components/os/apps/cockpit/ComplianceDashboard.tsx", - "contentHash": "f4ce725c8a7cb11daa17919779465482d05f4339c882ea8a5d07f2895d8c08c8", - "functions": [ - { - "name": "formatRelative", - "params": [ - "iso" - ], - "returnType": "string", - "exported": false, - "lineCount": 18 - }, - { - "name": "ComplianceDashboard", - "params": [], - "exported": false, - "lineCount": 480 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect", - "useCallback" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Shield", - "CheckCircle2", - "AlertTriangle", - "XCircle", - "Download", - "Loader2", - "Activity", - "Eye", - "Clock", - "Database", - "RefreshCw", - "HardDrive", - "FileText", - "SettingsIcon", - "LayoutTemplate" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/hooks/useRevalidateOnError", - "specifiers": [ - "useRevalidateOnError" - ] - }, - { - "source": "@/components/ui/hint-tooltip", - "specifiers": [ - "HintTooltip" - ] - }, - { - "source": "./ComplianceTemplateModal", - "specifiers": [ - "ComplianceTemplateModal", - "ComplianceTemplate", - "ComplianceTemplateSections" - ] - } - ], - "exports": [], - "totalLines": 555, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/cockpit/ComplianceTemplateModal.tsx": { - "filePath": "apps/web/src/components/os/apps/cockpit/ComplianceTemplateModal.tsx", - "contentHash": "81de495c3cefdb4be5d9f6106327fcb67ff421acf73bd1aa2104a3385e75ba1c", - "functions": [ - { - "name": "ComplianceTemplateModal", - "params": [ - "{ open, onClose, onChange }" - ], - "exported": true, - "lineCount": 318 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect", - "useCallback" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "X", - "Plus", - "Loader2", - "Trash2", - "Pencil" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/hooks/useFocusTrap", - "specifiers": [ - "useFocusTrap" - ] - } - ], - "exports": [ - "ComplianceTemplateModal" - ], - "totalLines": 380, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/CockpitApp.tsx": { - "filePath": "apps/web/src/components/os/apps/CockpitApp.tsx", - "contentHash": "9a1a6c27fd5d2cf46bb1bec8c3232cbccf9067b075fee39bf0cb77ce40128989", - "functions": [ - { - "name": "CockpitApp", - "params": [], - "exported": false, - "lineCount": 293 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Activity", - "Server", - "DollarSign", - "Clock", - "Plug", - "RefreshCw", - "Timer", - "Brain", - "Shield", - "Network", - "FileText", - "ChevronDown", - "AlertTriangle" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "CronJob" - ] - }, - { - "source": "@/lib/cron-presets", - "specifiers": [ - "describeCronExpr" - ] - }, - { - "source": "./cockpit/ComplianceDashboard", - "specifiers": [ - "ComplianceDashboard" - ] - } - ], - "exports": [], - "totalLines": 321, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/connectors/brand-identity.ts": { - "filePath": "apps/web/src/components/os/apps/connectors/brand-identity.ts", - "contentHash": "8dfa5982d2af0a216bb5ef89e534873ef1d9ebb6e9ac1f7a32b0d60bc3021096", - "functions": [ - { - "name": "contrast", - "params": [ - "hex" - ], - "returnType": "'white' | 'black'", - "exported": false, - "lineCount": 9 - }, - { - "name": "si", - "params": [ - "icon", - "monogramOverride" - ], - "returnType": "BrandIdentity", - "exported": false, - "lineCount": 9 - }, - { - "name": "brand", - "params": [ - "color", - "monogram" - ], - "returnType": "BrandIdentity", - "exported": false, - "lineCount": 3 - }, - { - "name": "getBrandIdentity", - "params": [ - "serverId", - "name", - "category" - ], - "returnType": "BrandIdentity", - "exported": true, - "lineCount": 31 - }, - { - "name": "countWithRealLogos", - "params": [ - "ids" - ], - "returnType": "number", - "exported": true, - "lineCount": 12 - } - ], - "classes": [], - "imports": [ - { - "source": "simple-icons", - "specifiers": [ - "siPostgresql", - "siSqlite", - "siMysql", - "siMongodb", - "siRedis", - "siNeo4j", - "siSupabase", - "siQdrant", - "siTurso", - "siPlanetscale", - "siClickhouse", - "siGooglebigquery", - "siSnowflake", - "siDuckdb", - "siCouchbase", - "siTidb", - "siGoogledrive", - "siBox", - "siDropbox", - "siMinio", - "siGooglecloud", - "siBrave", - "siPuppeteer", - "siFirefox", - "siPerplexity", - "siKagi", - "siSearxng", - "siGithub", - "siGitlab", - "siSentry", - "siDocker", - "siKubernetes", - "siVercel", - "siNpm", - "siGrafana", - "siDatadog", - "siCircleci", - "siTerraform", - "siCloudflare", - "siGit", - "siPostman", - "siPulumi", - "siGitkraken", - "siBitbucket", - "siTrello", - "siDiscord", - "siGmail", - "siTelegram", - "siWhatsapp", - "siBluesky", - "siNotion", - "siLinear", - "siJira", - "siConfluence", - "siAsana", - "siTodoist", - "siGooglecalendar", - "siGoogledocs", - "siGooglesheets", - "siObsidian", - "siClickup", - "siAtlassian", - "siMake", - "siStripe", - "siShopify", - "siAirtable", - "siIntercom", - "siZendesk", - "siHubspot", - "siGoogleads", - "siFacebook", - "siGooglemaps", - "siFlydotio", - "siRailway", - "siRender", - "siDigitalocean", - "siHetzner", - "siHuggingface", - "siReplicate", - "siLangchain", - "siOllama", - "siPosthog", - "siMixpanel", - "siPlausibleanalytics", - "siPrometheus", - "siGoogleanalytics", - "siVictoriametrics", - "siVault", - "siSnyk", - "si1password", - "siBitwarden", - "siKeycloak", - "siFigma", - "siYoutube", - "siSpotify", - "siUnsplash", - "siApacheecharts", - "siAnthropic", - "siXcode" - ] - } - ], - "exports": [ - "getBrandIdentity", - "countWithRealLogos" - ], - "totalLines": 410, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/connectors/BrandTile.tsx": { - "filePath": "apps/web/src/components/os/apps/connectors/BrandTile.tsx", - "contentHash": "2dd1878d1bcaa1b2d1691d089e0bfb05c987cdebec1d544dbbb23c6f95ff52ad", - "functions": [ - { - "name": "buildShadow", - "params": [ - "color", - "official", - "connected" - ], - "returnType": "string", - "exported": false, - "lineCount": 7 - }, - { - "name": "BrandTile", - "params": [ - "{\r\n identity,\r\n size = 48,\r\n official = false,\r\n connected = false,\r\n className = '',\r\n}" - ], - "exported": false, - "lineCount": 93 - } - ], - "classes": [], - "imports": [ - { - "source": "./brand-identity", - "specifiers": [ - "BrandIdentity" - ] - } - ], - "exports": [], - "totalLines": 129, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/connectors/ConnectorCard.tsx": { - "filePath": "apps/web/src/components/os/apps/connectors/ConnectorCard.tsx", - "contentHash": "8c3ffbfcc3aee8ad614b5e33740a4a7be7199160159088417b396671c2d5e103", - "functions": [ - { - "name": "connectorStatusBadge", - "params": [ - "status", - "syncing" - ], - "returnType": "{ tone: StatusTone; label: string }", - "exported": true, - "lineCount": 9 - }, - { - "name": "ConnectorCard", - "params": [ - "{\r\n conn, categoryLabel, hint, expanded, onToggle,\r\n tokenInput, emailInput, onTokenChange, onEmailChange,\r\n connecting, onConnect, onDisconnect, onRevoke, onSynced,\r\n}" - ], - "exported": false, - "lineCount": 187 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "ChevronDown", - "ChevronRight", - "CheckCircle2", - "ExternalLink", - "History", - "Loader2", - "Plug", - "RefreshCw", - "ShieldOff", - "Trash2", - "Zap" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "ConnectorDefinition", - "ConnectorHealth" - ] - }, - { - "source": "@/components/ui/input", - "specifiers": [ - "Input" - ] - }, - { - "source": "@/components/ui/status-badge", - "specifiers": [ - "StatusBadge", - "StatusTone" - ] - }, - { - "source": "@/components/ui/hint-tooltip", - "specifiers": [ - "HintTooltip" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "./BrandTile", - "specifiers": [ - "BrandTile" - ] - }, - { - "source": "./brand-identity", - "specifiers": [ - "getBrandIdentity" - ] - }, - { - "source": "../extend/InstallAuditPanel", - "specifiers": [ - "InstallAuditPanel" - ] - } - ], - "exports": [ - "connectorStatusBadge" - ], - "totalLines": 254, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/connectors/mcp-registry.ts": { - "filePath": "apps/web/src/components/os/apps/connectors/mcp-registry.ts", - "contentHash": "e72ae391fccf7f1b8691a4204bcdbfb4b7f8923c7d7fcd8b548dd4bddf12a08d", - "functions": [], - "classes": [], - "imports": [], - "exports": [ - "MCP_CATEGORIES", - "CATEGORY_EMOJI", - "MCP_CATALOG", - "normalizeMcpId", - "McpServer" - ], - "totalLines": 17, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/connectors/McpCatalog.tsx": { - "filePath": "apps/web/src/components/os/apps/connectors/McpCatalog.tsx", - "contentHash": "f0b95070b9c44e60ee83669fd66c74f1bb22a2570ceaaa75b353b68722ff398d", - "functions": [ - { - "name": "McpCatalog", - "params": [ - "{ personaId, installedIds, installableIds, installingId, onInstall }" - ], - "exported": false, - "lineCount": 282 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useMemo", - "useState" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Search", - "Server", - "Sparkles", - "X", - "Star" - ] - }, - { - "source": "@/components/ui/input", - "specifiers": [ - "Input" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "recommendConnectors" - ] - }, - { - "source": "./mcp-registry", - "specifiers": [ - "MCP_CATALOG" - ] - }, - { - "source": "./McpServerCard", - "specifiers": [ - "McpServerCard" - ] - }, - { - "source": "./brand-identity", - "specifiers": [ - "countWithRealLogos" - ] - }, - { - "source": "@/lib/persona-display", - "specifiers": [ - "formatPersonaName" - ] - } - ], - "exports": [], - "totalLines": 329, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/connectors/McpServerCard.tsx": { - "filePath": "apps/web/src/components/os/apps/connectors/McpServerCard.tsx", - "contentHash": "59f1cf4c8d48b82878167ca30ad867e97578f6248071569a71d5cfe6bf0044d3", - "functions": [ - { - "name": "McpServerCard", - "params": [ - "{ server, installed, installing, onInstall }" - ], - "exported": false, - "lineCount": 138 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "ExternalLink", - "Check", - "CheckCircle2", - "Copy", - "Download", - "Info", - "Loader2" - ] - }, - { - "source": "@/components/ui/hint-tooltip", - "specifiers": [ - "HintTooltip" - ] - }, - { - "source": "./BrandTile", - "specifiers": [ - "BrandTile" - ] - }, - { - "source": "./brand-identity", - "specifiers": [ - "getBrandIdentity" - ] - }, - { - "source": "./mcp-registry", - "specifiers": [ - "McpServer" - ] - }, - { - "source": "@/components/ui/tooltip", - "specifiers": [ - "Tooltip", - "TooltipContent", - "TooltipTrigger" - ] - } - ], - "exports": [], - "totalLines": 172, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/ConnectorsApp.tsx": { - "filePath": "apps/web/src/components/os/apps/ConnectorsApp.tsx", - "contentHash": "767e704a123d3f0760d8b4e578e5d125ee031ff99f4577b055bd28663229cf31", - "functions": [ - { - "name": "shouldResetCredentialInputs", - "params": [ - "prev", - "next" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 3 - }, - { - "name": "buildRevokeRequest", - "params": [ - "conn" - ], - "returnType": "ApprovalRequest", - "exported": true, - "lineCount": 13 - }, - { - "name": "ConnectorsApp", - "params": [ - "{ personaId }" - ], - "exported": false, - "lineCount": 294 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect", - "useCallback" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "AlertTriangle", - "Loader2", - "RefreshCw", - "Zap" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "ConnectorDefinition" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "recommendConnectors" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/providers/ServiceProvider", - "specifiers": [ - "useService" - ] - }, - { - "source": "@/hooks/use-toast", - "specifiers": [ - "useToast" - ] - }, - { - "source": "@/components/ui/approval-modal", - "specifiers": [ - "ApprovalModal", - "ApprovalRequest" - ] - }, - { - "source": "@/lib/risk-display", - "specifiers": [ - "actionRisk" - ] - }, - { - "source": "./connectors/ConnectorCard", - "specifiers": [ - "ConnectorCard", - "ConnectorSetupHint" - ] - }, - { - "source": "./extend/InstallAuditPanel", - "specifiers": [ - "InstallAuditPanel" - ] - }, - { - "source": "@/lib/persona-display", - "specifiers": [ - "formatPersonaName" - ] - } - ], - "exports": [ - "shouldResetCredentialInputs", - "buildRevokeRequest" - ], - "totalLines": 393, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/DashboardApp.tsx": { - "filePath": "apps/web/src/components/os/apps/DashboardApp.tsx", - "contentHash": "7d40d3babcf9ad8a59bc0177116fa42a2367a414c8475eab80f19bbf66bab00f", - "functions": [ - { - "name": "DashboardApp", - "params": [ - "{ workspaces, activeWorkspaceId, onSelectWorkspace, onCreateWorkspace }" - ], - "exported": false, - "lineCount": 220 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Plus", - "Activity", - "Clock", - "Brain", - "ChevronRight", - "Users", - "Sparkles", - "CheckCircle2", - "Circle" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/components/ui/avatar", - "specifiers": [ - "Avatar", - "AvatarImage", - "AvatarFallback" - ] - }, - { - "source": "@/components/ui/hint-tooltip", - "specifiers": [ - "HintTooltip" - ] - }, - { - "source": "@/lib/personas", - "specifiers": [ - "getPersonaById" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "Workspace" - ] - }, - { - "source": "@/lib/workspace-groups", - "specifiers": [ - "getAllGroups" - ] - }, - { - "source": "@/lib/brain-health", - "specifiers": [ - "computeBrainHealth", - "brainHealthTier", - "brainHealthBreakdown", - "TIER_LABELS", - "BrainHealthCounts" - ] - } - ], - "exports": [], - "totalLines": 306, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/EventsApp.tsx": { - "filePath": "apps/web/src/components/os/apps/EventsApp.tsx", - "contentHash": "4fadc3d7ff589f6874cd96f07dbdad91afd73d8289e6d09eca44ba17beb24c2a", - "functions": [ - { - "name": "formatType", - "params": [ - "type" - ], - "returnType": "string", - "exported": false, - "lineCount": 4 - }, - { - "name": "formatTimestamp", - "params": [ - "ts" - ], - "returnType": "string", - "exported": false, - "lineCount": 5 - }, - { - "name": "formatDescription", - "params": [ - "description", - "type" - ], - "returnType": "string", - "exported": false, - "lineCount": 9 - }, - { - "name": "StepCard", - "params": [ - "{ step, onAbort }" - ], - "exported": false, - "lineCount": 50 - }, - { - "name": "buildAgentTree", - "params": [ - "steps" - ], - "returnType": "AgentNode[]", - "exported": false, - "lineCount": 65 - }, - { - "name": "TreeNode", - "params": [ - "{ node, depth = 0 }" - ], - "exported": false, - "lineCount": 72 - }, - { - "name": "AgentTreeView", - "params": [ - "{ steps }" - ], - "exported": false, - "lineCount": 31 - }, - { - "name": "EventsApp", - "params": [ - "{ steps, autoScroll, onToggleAutoScroll, filter, onFilterChange, onAbort, error }" - ], - "exported": false, - "lineCount": 155 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useMemo" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Activity", - "Loader2", - "CheckCircle2", - "XCircle", - "Zap", - "MessageSquare", - "Clock", - "ChevronRight", - "StopCircle", - "GitBranch", - "Circle" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "AgentStep" - ] - }, - { - "source": "@/lib/decode-entities", - "specifiers": [ - "decodeHtmlEntities" - ] - }, - { - "source": "@/components/ui/hint-tooltip", - "specifiers": [ - "HintTooltip" - ] - } - ], - "exports": [], - "totalLines": 457, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/extend/AgentSearchBox.tsx": { - "filePath": "apps/web/src/components/os/apps/extend/AgentSearchBox.tsx", - "contentHash": "8673a0f91736212baa41d555fa60f8b5e01fae0fb1c8d4f6aa542bd091278e8e", - "functions": [ - { - "name": "openApp", - "params": [ - "appId" - ], - "exported": false, - "lineCount": 3 - }, - { - "name": "AgentSearchBox", - "params": [], - "exported": false, - "lineCount": 141 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Loader2", - "Plug", - "Zap", - "Download", - "ExternalLink", - "Check" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/providers/InstallProvider", - "specifiers": [ - "useInstallStore" - ] - }, - { - "source": "@/hooks/use-toast", - "specifiers": [ - "useToast" - ] - }, - { - "source": "@/components/os/warm/AskBar", - "specifiers": [ - "AskBar" - ] - }, - { - "source": "@/components/ui/status-badge", - "specifiers": [ - "StatusBadge" - ] - }, - { - "source": "@/lib/install-store", - "specifiers": [ - "describeError" - ] - }, - { - "source": "@/lib/agent-search", - "specifiers": [ - "installTargetFor", - "AgentSearchResponse", - "AgentSearchSuggestion" - ] - } - ], - "exports": [], - "totalLines": 178, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/extend/ExtensionCard.tsx": { - "filePath": "apps/web/src/components/os/apps/extend/ExtensionCard.tsx", - "contentHash": "7772feb5a0c5f1ed009e2e91ac18d40cd060a1eea0216a1a590b77f1fe5c2cd2", - "functions": [ - { - "name": "actionKey", - "params": [ - "ext" - ], - "returnType": "ActionKey | null", - "exported": false, - "lineCount": 6 - }, - { - "name": "ExtensionCard", - "params": [ - "{ ext, onRemove, onOpenIn }" - ], - "exported": false, - "lineCount": 121 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Download", - "ExternalLink", - "Loader2", - "Package", - "Plug", - "Trash2", - "Zap" - ] - }, - { - "source": "@/components/ui/status-badge", - "specifiers": [ - "StatusBadge" - ] - }, - { - "source": "@/components/ui/input", - "specifiers": [ - "Input" - ] - }, - { - "source": "@/lib/extension-catalog", - "specifiers": [ - "Extension" - ] - }, - { - "source": "@/lib/install-store", - "specifiers": [ - "isTogglable" - ] - }, - { - "source": "@/providers/InstallProvider", - "specifiers": [ - "useInstallStore" - ] - } - ], - "exports": [], - "totalLines": 171, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/extend/InstallAuditPanel.tsx": { - "filePath": "apps/web/src/components/os/apps/extend/InstallAuditPanel.tsx", - "contentHash": "59ab6bc9e5f8b0013ce121af04320ae38edc89ebd55788c1a5d712439b1d3b58", - "functions": [ - { - "name": "normalizeAuditEntry", - "params": [ - "raw" - ], - "returnType": "ExtendAuditEntry", - "exported": true, - "lineCount": 16 - }, - { - "name": "InstallAuditPanel", - "params": [ - "{ type, capability, limit = 20, showFilter = false }" - ], - "exported": false, - "lineCount": 99 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useCallback", - "useEffect", - "useState" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "CheckCircle2", - "Loader2", - "ShieldAlert", - "X" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/lib/risk-display", - "specifiers": [ - "RISK_LABELS", - "RISK_TEXT_CLASSES", - "isKnownRiskLevel" - ] - } - ], - "exports": [ - "normalizeAuditEntry" - ], - "totalLines": 167, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/files/file-utils.ts": { - "filePath": "apps/web/src/components/os/apps/files/file-utils.ts", - "contentHash": "55b8f1e53fca1ed74155351d52bf2c59fa43c1eb7ec37086c51194a3f2f221f0", - "functions": [ - { - "name": "getFileIcon", - "params": [ - "name" - ], - "returnType": "ElementType", - "exported": true, - "lineCount": 12 - }, - { - "name": "formatSize", - "params": [ - "bytes" - ], - "returnType": "string", - "exported": true, - "lineCount": 7 - }, - { - "name": "normalizeWorkspacePath", - "params": [ - "input" - ], - "returnType": "string", - "exported": true, - "lineCount": 8 - } - ], - "classes": [], - "imports": [ - { - "source": "lucide-react", - "specifiers": [ - "File", - "Image", - "Video", - "Music", - "Archive", - "FileCode", - "FileSpreadsheet", - "FileText", - "Cloud", - "HardDrive", - "Server" - ] - }, - { - "source": "react", - "specifiers": [ - "ElementType" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "FileEntry", - "StorageType" - ] - } - ], - "exports": [ - "getFileIcon", - "formatSize", - "normalizeWorkspacePath", - "STORAGE_LABELS" - ], - "totalLines": 61, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/files/FileActions.tsx": { - "filePath": "apps/web/src/components/os/apps/files/FileActions.tsx", - "contentHash": "4091108c9c6b65cf3e9463b3c1a97a334f291a497d5d168bf6f4f0e18dc58c75", - "functions": [ - { - "name": "FileActions", - "params": [ - "{\r\n currentPath,\r\n storageType,\r\n breadcrumbs,\r\n viewMode,\r\n loading,\r\n showSearch,\r\n searchQuery,\r\n onGoUp,\r\n onRefresh,\r\n onNavigate,\r\n onSetViewMode,\r\n onSetShowSearch,\r\n onSetSearchQuery,\r\n onCreateFolder,\r\n fileInputRef,\r\n onBreadcrumbDragOver,\r\n onBreadcrumbDragLeave,\r\n onBreadcrumbDrop,\r\n breadcrumbDropTarget,\r\n}" - ], - "exported": false, - "lineCount": 128 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "RefObject" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "ArrowLeft", - "RefreshCw", - "ChevronRight", - "Search", - "X", - "FolderPlus", - "Upload", - "List", - "Grid3X3", - "Info" - ] - }, - { - "source": "@/components/ui/input", - "specifiers": [ - "Input" - ] - }, - { - "source": "@/components/ui/hint-tooltip", - "specifiers": [ - "HintTooltip" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "StorageType" - ] - }, - { - "source": "./file-utils", - "specifiers": [ - "STORAGE_LABELS" - ] - } - ], - "exports": [], - "totalLines": 185, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/files/FilePreview.tsx": { - "filePath": "apps/web/src/components/os/apps/files/FilePreview.tsx", - "contentHash": "67f316c263776edecfa27ef0d5ec4f52f66bba5a8a25fe8568ffb1608b077117", - "functions": [ - { - "name": "FilePreview", - "params": [ - "{ file, content, loading, isImage, onClose, onDownload }" - ], - "exported": false, - "lineCount": 72 - } - ], - "classes": [], - "imports": [ - { - "source": "lucide-react", - "specifiers": [ - "Eye", - "XIcon", - "Download", - "RefreshCw", - "Image" - ] - }, - { - "source": "framer-motion", - "specifiers": [ - "motion" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "FileEntry" - ] - }, - { - "source": "./file-utils", - "specifiers": [ - "formatSize" - ] - }, - { - "source": "./SyntaxPreview", - "specifiers": [ - "SyntaxPreview" - ] - } - ], - "exports": [], - "totalLines": 95, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/files/files-tabs.test.ts": { - "filePath": "apps/web/src/components/os/apps/files/files-tabs.test.ts", - "contentHash": "406d1b8008d1b729cbdf90a2971feae3783a6ec88960920499e3a14e9d7c6778", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "./files-tabs", - "specifiers": [ - "initialTabFor", - "FILES_TAB_ORDER" - ] - } - ], - "exports": [], - "totalLines": 27, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/files/files-tabs.ts": { - "filePath": "apps/web/src/components/os/apps/files/files-tabs.ts", - "contentHash": "4c5f0eafcba54ccd09f6c32910754d5a8910fe0c92122c657289aed76274545d", - "functions": [ - { - "name": "initialTabFor", - "params": [ - "configured" - ], - "returnType": "StorageType", - "exported": true, - "lineCount": 8 - } - ], - "classes": [], - "imports": [ - { - "source": "@/lib/types", - "specifiers": [ - "StorageType" - ] - } - ], - "exports": [ - "FILES_TAB_ORDER", - "initialTabFor" - ], - "totalLines": 32, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/files/FileTree.tsx": { - "filePath": "apps/web/src/components/os/apps/files/FileTree.tsx", - "contentHash": "69bbaf5fa688bd9870b6f81366e8860b5e8c21e651ded0876ca86f63a4cde7be", - "functions": [ - { - "name": "FileTree", - "params": [ - "{ treeDirs, currentPath, workspaceName, storageType, onNavigate }" - ], - "exported": false, - "lineCount": 38 - } - ], - "classes": [], - "imports": [ - { - "source": "lucide-react", - "specifiers": [ - "Folder", - "ChevronRight", - "ChevronDown", - "Home" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "FileEntry", - "StorageType" - ] - }, - { - "source": "./file-utils", - "specifiers": [ - "STORAGE_LABELS" - ] - } - ], - "exports": [], - "totalLines": 58, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/files/FileUploadZone.tsx": { - "filePath": "apps/web/src/components/os/apps/files/FileUploadZone.tsx", - "contentHash": "b4bfaba33fa2912b8ab45ff151ac08912623d91e06d3e9939f68e94f718de8ab", - "functions": [ - { - "name": "FileUploadZone", - "params": [ - "{ currentPath }" - ], - "exported": false, - "lineCount": 18 - } - ], - "classes": [], - "imports": [ - { - "source": "lucide-react", - "specifiers": [ - "Upload" - ] - }, - { - "source": "framer-motion", - "specifiers": [ - "motion" - ] - } - ], - "exports": [], - "totalLines": 33, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/files/SyntaxPreview.tsx": { - "filePath": "apps/web/src/components/os/apps/files/SyntaxPreview.tsx", - "contentHash": "4e8e7269ebe2049cbacaefad682ad19cf0c00e7f5d99f242af561b70dd920c17", - "functions": [ - { - "name": "tokenizeLine", - "params": [ - "line", - "lang" - ], - "returnType": "{ text: string; type: TokenType }[]", - "exported": false, - "lineCount": 78 - }, - { - "name": "SyntaxPreview", - "params": [ - "{ content, fileName }" - ], - "exported": true, - "lineCount": 50 - } - ], - "classes": [], - "imports": [], - "exports": [ - "SyntaxPreview" - ], - "totalLines": 169, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/files/WorkspaceRail.tsx": { - "filePath": "apps/web/src/components/os/apps/files/WorkspaceRail.tsx", - "contentHash": "ddc0834f32a20df86c83a595cc64e28d6c28e31227652e573114644b6498f0d3", - "functions": [ - { - "name": "storageIcon", - "params": [ - "storageType" - ], - "exported": false, - "lineCount": 5 - }, - { - "name": "WorkspaceRail", - "params": [ - "{ workspaces, activeWorkspaceId, onSelect, onDropFiles }" - ], - "exported": false, - "lineCount": 69 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "HardDrive", - "Folder", - "FolderOpen", - "Cloud", - "Users" - ] - }, - { - "source": "@/components/ui/hint-tooltip", - "specifiers": [ - "HintTooltip" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "Workspace" - ] - } - ], - "exports": [], - "totalLines": 104, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/FilesApp.tsx": { - "filePath": "apps/web/src/components/os/apps/FilesApp.tsx", - "contentHash": "6d6f8ce7711cc1e271ca5d89f3574445efddafbd5be2b9d3ae6d408e5c098478", - "functions": [ - { - "name": "VersionHistory", - "params": [ - "{ workspaceId, fileName }" - ], - "exported": false, - "lineCount": 28 - }, - { - "name": "isPreviewable", - "params": [ - "name" - ], - "exported": false, - "lineCount": 7 - }, - { - "name": "isImageFile", - "params": [ - "name" - ], - "exported": false, - "lineCount": 4 - }, - { - "name": "FilesApp", - "params": [ - "{\r\n workspaceId,\r\n workspaceName,\r\n storageType = 'virtual',\r\n workspaces,\r\n onSelectWorkspace,\r\n onContextRail,\r\n}" - ], - "exported": false, - "lineCount": 713 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useCallback", - "useRef", - "useMemo", - "useEffect" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Folder", - "Upload", - "Download", - "Trash2", - "Copy", - "Scissors", - "ClipboardPaste", - "Edit", - "FolderPlus", - "XIcon", - "RefreshCw", - "CheckSquare", - "XSquare", - "FolderInput", - "Info", - "Shield", - "MapPin", - "Clock", - "Hash", - "Lock", - "Unlock", - "FileText", - "HardDrive", - "Loader2", - "AlertTriangle" - ] - }, - { - "source": "framer-motion", - "specifiers": [ - "motion", - "AnimatePresence" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "FileEntry", - "StorageType", - "Workspace" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "./files/file-utils", - "specifiers": [ - "getFileIcon", - "formatSize", - "STORAGE_LABELS", - "normalizeWorkspacePath" - ] - }, - { - "source": "@/lib/app-deeplink", - "specifiers": [ - "consumeDeepLink" - ] - }, - { - "source": "@/hooks/use-toast", - "specifiers": [ - "useToast" - ] - }, - { - "source": "@/components/ui/hint-tooltip", - "specifiers": [ - "HintTooltip" - ] - }, - { - "source": "./files/FileTree", - "specifiers": [ - "FileTree" - ] - }, - { - "source": "./files/FilePreview", - "specifiers": [ - "FilePreview" - ] - }, - { - "source": "./files/FileActions", - "specifiers": [ - "FileActions" - ] - }, - { - "source": "./files/FileUploadZone", - "specifiers": [ - "FileUploadZone" - ] - }, - { - "source": "./files/WorkspaceRail", - "specifiers": [ - "WorkspaceRail" - ] - } - ], - "exports": [], - "totalLines": 802, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/FilesAppTabs.tsx": { - "filePath": "apps/web/src/components/os/apps/FilesAppTabs.tsx", - "contentHash": "a97b9d759f22907c4477eebfaefa8cbdf01c8e9457bbe7875abcaeaeb37bd211", - "functions": [ - { - "name": "FilesAppTabs", - "params": [ - "{\r\n workspaceId,\r\n workspaceName,\r\n defaultStorageType,\r\n workspaces,\r\n onSelectWorkspace,\r\n onContextRail,\r\n}" - ], - "exported": false, - "lineCount": 66 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "StorageType", - "Workspace" - ] - }, - { - "source": "./files/file-utils", - "specifiers": [ - "STORAGE_LABELS" - ] - }, - { - "source": "./files/files-tabs", - "specifiers": [ - "FILES_TAB_ORDER", - "initialTabFor" - ] - }, - { - "source": "./FilesApp", - "specifiers": [ - "FilesApp" - ] - } - ], - "exports": [], - "totalLines": 100, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/HomeCockpit.tsx": { - "filePath": "apps/web/src/components/os/apps/HomeCockpit.tsx", - "contentHash": "ccee1eae89b831f9cd5aca6fb06c4050056530ef4bd51b8e5fa4382013fd0d22", - "functions": [ - { - "name": "formatRelative", - "params": [ - "iso" - ], - "returnType": "string", - "exported": false, - "lineCount": 13 - }, - { - "name": "formatBriefingDate", - "params": [ - "iso" - ], - "returnType": "string", - "exported": false, - "lineCount": 5 - }, - { - "name": "formatClock", - "params": [ - "iso" - ], - "returnType": "string", - "exported": false, - "lineCount": 5 - }, - { - "name": "honey", - "params": [ - "n" - ], - "returnType": "ReactNode", - "exported": false, - "lineCount": 3 - }, - { - "name": "CockpitSkeleton", - "params": [], - "exported": false, - "lineCount": 14 - }, - { - "name": "FirstRunEmpty", - "params": [ - "{ greeting, onCreateWorkspace }" - ], - "exported": false, - "lineCount": 28 - }, - { - "name": "GreetingHeader", - "params": [ - "{\r\n greeting, date, workspaceCount,\r\n}" - ], - "exported": false, - "lineCount": 24 - }, - { - "name": "duplicateNameSet", - "params": [ - "names" - ], - "returnType": "Set", - "exported": false, - "lineCount": 8 - }, - { - "name": "RecentWorkspacesPanel", - "params": [ - "{\r\n cards, onContinue, onOpenDesktop, onWorkspaceChanged,\r\n}" - ], - "exported": false, - "lineCount": 69 - }, - { - "name": "SuggestedActionsPanel", - "params": [ - "{\r\n actions, subFor, onRun,\r\n}" - ], - "exported": false, - "lineCount": 35 - }, - { - "name": "UpNextPanel", - "params": [ - "{ items, onOpen }" - ], - "exported": false, - "lineCount": 26 - }, - { - "name": "overnightHasActivity", - "params": [ - "o" - ], - "exported": false, - "lineCount": 3 - }, - { - "name": "composeOvernightStory", - "params": [ - "o" - ], - "returnType": "ReactNode", - "exported": false, - "lineCount": 24 - }, - { - "name": "buildRunChips", - "params": [ - "o" - ], - "returnType": "RunChipProps[]", - "exported": false, - "lineCount": 8 - }, - { - "name": "HomeCockpit", - "params": [ - "{ onContinue, onOpenWorkspaceDesktop, onCreateWorkspace, userName }" - ], - "exported": false, - "lineCount": 228 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect", - "useCallback", - "useRef", - "ReactNode" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Sparkles", - "ChevronRight", - "Clock", - "Brain", - "AlertTriangle", - "Plus", - "Lightbulb", - "Calendar", - "ListTodo", - "WifiOff", - "RefreshCw" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/hooks/useOfflineStatus", - "specifiers": [ - "useOfflineStatus" - ] - }, - { - "source": "@/providers/ServiceProvider", - "specifiers": [ - "useService" - ] - }, - { - "source": "@/hooks/use-toast", - "specifiers": [ - "useToast" - ] - }, - { - "source": "../WorkspaceActionsMenu", - "specifiers": [ - "WorkspaceActionsMenu" - ] - }, - { - "source": "../warm", - "specifiers": [ - "HexAvatar", - "SectionLabel", - "DotLive", - "RunChip", - "IconTile", - "OvernightHero", - "AskBar", - "StreakChip", - "RunChipProps" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "HomeBriefing", - "OvernightSummary", - "RecentWorkspaceCard", - "SuggestedAction", - "UpNextItem", - "QuickCaptureInput" - ] - } - ], - "exports": [], - "totalLines": 597, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/LauncherApp.test.tsx": { - "filePath": "apps/web/src/components/os/apps/LauncherApp.test.tsx", - "contentHash": "de734de1c59de9901ca58ef9941971be5827a106dd50224712e126d1cad842af", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "render", - "screen", - "waitFor", - "cleanup", - "fireEvent" - ] - }, - { - "source": "./LauncherApp", - "specifiers": [ - "LauncherApp" - ] - } - ], - "exports": [], - "totalLines": 106, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/LauncherApp.tsx": { - "filePath": "apps/web/src/components/os/apps/LauncherApp.tsx", - "contentHash": "6a057befd5f70f3772c3408dce27dce5efa8195497a0d6c89ac5f0fc4de5e3f0", - "functions": [ - { - "name": "LauncherApp", - "params": [ - "{ activeWorkspaceId }" - ], - "exported": false, - "lineCount": 468 - }, - { - "name": "MemorySharingView", - "params": [], - "exported": false, - "lineCount": 105 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect", - "useCallback", - "useMemo" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Rocket", - "RefreshCw", - "CheckCircle2", - "XCircle", - "AlertTriangle", - "Play", - "Download", - "ShieldCheck", - "Trash2", - "Loader2", - "MessageSquare", - "Square", - "Workflow", - "ArrowDownToLine", - "ArrowRight", - "ShieldCheckIcon", - "Hexagon" - ] - }, - { - "source": "@/components/ui/button", - "specifiers": [ - "Button" - ] - }, - { - "source": "@/components/ui/badge", - "specifiers": [ - "Badge" - ] - }, - { - "source": "@/components/ui/scroll-area", - "specifiers": [ - "ScrollArea" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/lib/launcher-prompt-args", - "specifiers": [ - "promptArgsForTool", - "toolAcceptsInlinePrompt" - ] - } - ], - "exports": [], - "totalLines": 746, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/MarketplaceApp.tsx": { - "filePath": "apps/web/src/components/os/apps/MarketplaceApp.tsx", - "contentHash": "9db58beac8c66d7d006757c54abaed17b0de0e24c4747d225555dcf914f58bbc", - "functions": [ - { - "name": "installRiskFor", - "params": [ - "ext" - ], - "returnType": "ApprovalRequest['riskLevel']", - "exported": true, - "lineCount": 3 - }, - { - "name": "buildRemoveRequest", - "params": [ - "ext" - ], - "returnType": "ApprovalRequest", - "exported": true, - "lineCount": 10 - }, - { - "name": "buildInstallRequest", - "params": [ - "ext" - ], - "returnType": "ApprovalRequest", - "exported": true, - "lineCount": 15 - }, - { - "name": "MarketplaceApp", - "params": [], - "exported": false, - "lineCount": 244 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect", - "useCallback", - "useRef" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Store", - "Search", - "Loader2", - "Package" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "ExtensionType" - ] - }, - { - "source": "@/components/ui/input", - "specifiers": [ - "Input" - ] - }, - { - "source": "@/lib/risk-display", - "specifiers": [ - "classifyInstallRisk", - "actionRisk", - "installTrustSource" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/providers/ServiceProvider", - "specifiers": [ - "useService" - ] - }, - { - "source": "@/providers/InstallProvider", - "specifiers": [ - "useInstallStore" - ] - }, - { - "source": "@/components/ui/approval-modal", - "specifiers": [ - "ApprovalModal", - "ApprovalRequest" - ] - }, - { - "source": "@/lib/dedupe-packs", - "specifiers": [ - "dedupePacks" - ] - }, - { - "source": "@/lib/extension-catalog", - "specifiers": [ - "filterExtensions", - "sortExtensions", - "fromConnector", - "fromMarketplacePackage", - "fromMcpCatalogRow", - "fromSkillPack", - "Extension", - "MarketplacePackageRow", - "McpCatalogRow" - ] - }, - { - "source": "./extend/ExtensionCard", - "specifiers": [ - "ExtensionCard" - ] - }, - { - "source": "./extend/InstallAuditPanel", - "specifiers": [ - "InstallAuditPanel" - ] - }, - { - "source": "./extend/AgentSearchBox", - "specifiers": [ - "AgentSearchBox" - ] - } - ], - "exports": [ - "installRiskFor", - "buildRemoveRequest", - "buildInstallRequest" - ], - "totalLines": 337, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/mcp/AddCustomMcpForm.tsx": { - "filePath": "apps/web/src/components/os/apps/mcp/AddCustomMcpForm.tsx", - "contentHash": "8c347d9928c8c7493e5acd86b5b3b8d3360aeedb49d04f875fb3ddeca97e3c2a", - "functions": [ - { - "name": "parseEnvLines", - "params": [ - "text" - ], - "returnType": "Record", - "exported": true, - "lineCount": 11 - }, - { - "name": "AddCustomMcpForm", - "params": [ - "{ onAdded }" - ], - "exported": false, - "lineCount": 97 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useEffect", - "useState" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Loader2", - "Plus" - ] - }, - { - "source": "@/components/ui/input", - "specifiers": [ - "Input" - ] - }, - { - "source": "@/components/ui/textarea", - "specifiers": [ - "Textarea" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - } - ], - "exports": [ - "parseEnvLines" - ], - "totalLines": 130, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/mcp/InstalledMcpList.tsx": { - "filePath": "apps/web/src/components/os/apps/mcp/InstalledMcpList.tsx", - "contentHash": "d94456d78cd94679fefb2459f3327b97a50d9f018d324913ad65da44a0d66e93", - "functions": [ - { - "name": "InstalledMcpList", - "params": [ - "{ items, onRevoke, onScope, onChanged }" - ], - "exported": false, - "lineCount": 151 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "FlaskConical", - "Loader2", - "Play", - "ScrollText", - "ShieldOff", - "Square", - "Target" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/components/ui/status-badge", - "specifiers": [ - "StatusBadge" - ] - }, - { - "source": "@/components/ui/hint-tooltip", - "specifiers": [ - "HintTooltip" - ] - }, - { - "source": "./mcp-hub-types", - "specifiers": [ - "mcpStateBadge", - "McpListItem" - ] - } - ], - "exports": [], - "totalLines": 188, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/mcp/mcp-hub-types.ts": { - "filePath": "apps/web/src/components/os/apps/mcp/mcp-hub-types.ts", - "contentHash": "de852ab909ef8e5982281a2f02e8e0a16e2b96ef3132914e7a5ca3a7c5e9f034", - "functions": [ - { - "name": "mcpStateBadge", - "params": [ - "item" - ], - "returnType": "{ tone: StatusTone; label: string }", - "exported": true, - "lineCount": 13 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/shared", - "specifiers": [ - "McpInstance" - ] - }, - { - "source": "@/components/ui/status-badge", - "specifiers": [ - "StatusTone" - ] - } - ], - "exports": [ - "mcpStateBadge" - ], - "totalLines": 44, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/mcp/McpScopeDialog.tsx": { - "filePath": "apps/web/src/components/os/apps/mcp/McpScopeDialog.tsx", - "contentHash": "1cd572a50d9a033af6271415c32c25938ccffa1ec3459eb374b463d32be8456d", - "functions": [ - { - "name": "McpScopeDialog", - "params": [ - "{ serverId, currentWorkspaceId, busy, onSubmit, onClose }" - ], - "exported": false, - "lineCount": 87 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useEffect", - "useRef", - "useState" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "X" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/hooks/useFocusTrap", - "specifiers": [ - "useFocusTrap" - ] - } - ], - "exports": [], - "totalLines": 110, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/MCPHubApp.tsx": { - "filePath": "apps/web/src/components/os/apps/MCPHubApp.tsx", - "contentHash": "0549df5c526d4d4512424984f8d5b093572d909d26b872f973c75dbf527cefb8", - "functions": [ - { - "name": "MCPHubApp", - "params": [ - "{ personaId }" - ], - "exported": false, - "lineCount": 356 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useCallback", - "useEffect", - "useRef", - "useState" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "ExternalLink", - "Loader2", - "Server" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/providers/ServiceProvider", - "specifiers": [ - "useService" - ] - }, - { - "source": "@/hooks/use-toast", - "specifiers": [ - "useToast" - ] - }, - { - "source": "@/hooks/useRevalidateOnError", - "specifiers": [ - "useRevalidateOnError" - ] - }, - { - "source": "@/components/ui/approval-modal", - "specifiers": [ - "ApprovalModal", - "ApprovalRequest" - ] - }, - { - "source": "@/lib/risk-display", - "specifiers": [ - "actionRisk" - ] - }, - { - "source": "@/components/ui/hint-tooltip", - "specifiers": [ - "HintTooltip" - ] - }, - { - "source": "./connectors/McpCatalog", - "specifiers": [ - "McpCatalog" - ] - }, - { - "source": "./mcp/InstalledMcpList", - "specifiers": [ - "InstalledMcpList" - ] - }, - { - "source": "./mcp/AddCustomMcpForm", - "specifiers": [ - "AddCustomMcpForm" - ] - }, - { - "source": "./mcp/McpScopeDialog", - "specifiers": [ - "McpScopeDialog" - ] - }, - { - "source": "./extend/InstallAuditPanel", - "specifiers": [ - "InstallAuditPanel" - ] - }, - { - "source": "./mcp/mcp-hub-types", - "specifiers": [ - "McpListItem" - ] - } - ], - "exports": [], - "totalLines": 425, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/memory/EvolutionTab.test.tsx": { - "filePath": "apps/web/src/components/os/apps/memory/EvolutionTab.test.tsx", - "contentHash": "c75d561a213abdf9d8b12867167711bed24661215e3acc4d019e0ce540472615", - "functions": [ - { - "name": "renderTab", - "params": [], - "exported": false, - "lineCount": 7 - }, - { - "name": "baseRun", - "params": [ - "over" - ], - "returnType": "FakeRun", - "exported": false, - "lineCount": 15 - }, - { - "name": "routeFetch", - "params": [ - "url" - ], - "returnType": "Response", - "exported": false, - "lineCount": 17 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "render", - "screen", - "cleanup", - "fireEvent" - ] - }, - { - "source": "@/components/ui/tooltip", - "specifiers": [ - "TooltipProvider" - ] - }, - { - "source": "./EvolutionTab", - "specifiers": [ - "EvolutionTab" - ] - } - ], - "exports": [], - "totalLines": 189, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/memory/EvolutionTab.tsx": { - "filePath": "apps/web/src/components/os/apps/memory/EvolutionTab.tsx", - "contentHash": "8a9d7e2dec3de1a6844aac08065537419527dbcbb372445bc9ff60bee0fc12bf", - "functions": [ - { - "name": "consumeEvolutionSse", - "params": [ - "body", - "cb" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 28 - }, - { - "name": "dispatchSseBlock", - "params": [ - "block", - "cb" - ], - "returnType": "void", - "exported": false, - "lineCount": 30 - }, - { - "name": "formatDelta", - "params": [ - "delta" - ], - "returnType": "string", - "exported": false, - "lineCount": 4 - }, - { - "name": "formatDate", - "params": [ - "iso" - ], - "returnType": "string", - "exported": false, - "lineCount": 9 - }, - { - "name": "aggregateBySkill", - "params": [ - "runs" - ], - "returnType": "SkillGroup[]", - "exported": false, - "lineCount": 35 - }, - { - "name": "deriveProvenance", - "params": [ - "run" - ], - "returnType": "string | null", - "exported": false, - "lineCount": 10 - }, - { - "name": "EvolutionTab", - "params": [], - "exported": true, - "lineCount": 321 - }, - { - "name": "FilterChip", - "params": [ - "{ label, active, count, onClick }" - ], - "exported": false, - "lineCount": 15 - }, - { - "name": "RunRow", - "params": [ - "{ run, selected, onSelect }" - ], - "exported": false, - "lineCount": 34 - }, - { - "name": "RunDetailView", - "params": [ - "{\r\n detail, actionInFlight, error, noteText, onNoteChange, onAccept, onReject,\r\n}" - ], - "exported": false, - "lineCount": 118 - }, - { - "name": "TextPane", - "params": [ - "{ title, text, tone }" - ], - "exported": false, - "lineCount": 13 - }, - { - "name": "GateRow", - "params": [ - "{ gate }" - ], - "exported": false, - "lineCount": 19 - }, - { - "name": "SkillCard", - "params": [ - "{ group, selectedUuid, onSelectRun }" - ], - "exported": false, - "lineCount": 58 - }, - { - "name": "VersionRow", - "params": [ - "{ run, index, isBest, scaleBase, selected, onSelect }" - ], - "exported": false, - "lineCount": 68 - }, - { - "name": "NewRunModal", - "params": [ - "{ onClose, onSuccess }" - ], - "exported": false, - "lineCount": 302 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect", - "useCallback", - "useMemo" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Sparkles", - "Loader2", - "RefreshCw", - "Check", - "XIcon", - "ChevronRight", - "FileDiff", - "TrendingUp", - "TrendingDown", - "AlertTriangle", - "Ban", - "CheckCircle2", - "Clock", - "Zap", - "Plus", - "Hexagon", - "ShieldCheck" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/components/ui/hint-tooltip", - "specifiers": [ - "HintTooltip" - ] - } - ], - "exports": [ - "EvolutionTab" - ], - "totalLines": 1297, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/memory/HarvestTab.tsx": { - "filePath": "apps/web/src/components/os/apps/memory/HarvestTab.tsx", - "contentHash": "c45c2a0f5599a252edc6bddf7632c6bbf3918665a2e002164032168d2fff9a52", - "functions": [ - { - "name": "formatRelative", - "params": [ - "iso" - ], - "returnType": "string", - "exported": false, - "lineCount": 18 - }, - { - "name": "HarvestTab", - "params": [], - "exported": false, - "lineCount": 612 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect", - "useCallback" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Upload", - "RefreshCw", - "Clock", - "CheckCircle2", - "AlertCircle", - "Loader2", - "Plus", - "Zap", - "Brain", - "Trash2", - "Pause", - "Play", - "Sparkles", - "RotateCcw", - "XCircle" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/components/ui/hint-tooltip", - "specifiers": [ - "HintTooltip" - ] - } - ], - "exports": [], - "totalLines": 686, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/memory/ImportReminderBanner.tsx": { - "filePath": "apps/web/src/components/os/apps/memory/ImportReminderBanner.tsx", - "contentHash": "98b0455db05bd196cd0b16eeb5de800d0ff979dd72222f79ed5e826d72464ac7", - "functions": [ - { - "name": "ImportReminderBanner", - "params": [ - "{\r\n onboardingCompleted,\r\n totalFrameCount,\r\n onOpenHarvest,\r\n}" - ], - "exported": false, - "lineCount": 122 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Upload", - "Zap", - "X", - "ExternalLink" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/lib/import-reminder-state", - "specifiers": [ - "shouldShowImportReminder", - "readDismissedAt", - "writeDismissedAt", - "readRetired", - "writeRetired" - ] - } - ], - "exports": [], - "totalLines": 168, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/memory/KnowledgeGraphViewer.tsx": { - "filePath": "apps/web/src/components/os/apps/memory/KnowledgeGraphViewer.tsx", - "contentHash": "8b68e7d4fa523924dc9f1437cae2073e3b23734773b9fce1bd9f283d715b46e2", - "functions": [ - { - "name": "getNodeColor", - "params": [ - "type" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "getNodeLabel", - "params": [ - "type" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "chooseDefaultLimit", - "params": [ - "total" - ], - "returnType": "NodeLimit", - "exported": false, - "lineCount": 5 - }, - { - "name": "KnowledgeGraphViewer", - "params": [ - "{\r\n nodes, edges, onNodeClick, scope, onScopeChange,\r\n loading = false, error = null, onRetry,\r\n}" - ], - "exported": false, - "lineCount": 693 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect", - "useRef", - "useCallback", - "useMemo" - ] - }, - { - "source": "d3-force", - "specifiers": [ - "forceSimulation", - "forceLink", - "forceManyBody", - "forceCenter", - "forceCollide", - "SimulationNodeDatum", - "SimulationLinkDatum" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Network", - "ZoomIn", - "ZoomOut", - "Maximize2", - "Minimize2", - "RotateCcw", - "Search", - "Globe", - "Download", - "ImageIcon", - "AlertTriangle", - "Loader2" - ] - }, - { - "source": "@/components/ui/input", - "specifiers": [ - "Input" - ] - }, - { - "source": "@/components/ui/hint-tooltip", - "specifiers": [ - "HintTooltip" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "KGNode", - "KGEdge" - ] - }, - { - "source": "@/lib/kg-export", - "specifiers": [ - "downloadKgSvg", - "downloadKgPng" - ] - } - ], - "exports": [], - "totalLines": 799, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/memory/MemoryCard.tsx": { - "filePath": "apps/web/src/components/os/apps/memory/MemoryCard.tsx", - "contentHash": "7be08511f9a41fa19a53fae4eabba142d24b2bae13759c726485221fbf212177", - "functions": [ - { - "name": "statusMeta", - "params": [ - "status" - ], - "returnType": "{ tone: StatusTone; label: string } | null", - "exported": false, - "lineCount": 11 - }, - { - "name": "MemoryCard", - "params": [ - "{ memory, onClick, selected, onSelect, className }" - ], - "exported": true, - "lineCount": 50 - } - ], - "classes": [], - "imports": [ - { - "source": "@/lib/types", - "specifiers": [ - "Memory", - "MemoryStatus" - ] - }, - { - "source": "@/lib/harvest-kind-map", - "specifiers": [ - "memoryKindLabel" - ] - }, - { - "source": "@/components/ui/confidence-badge", - "specifiers": [ - "ConfidenceBadge" - ] - }, - { - "source": "@/components/ui/status-badge", - "specifiers": [ - "StatusBadge", - "StatusTone" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - } - ], - "exports": [ - "MemoryCard" - ], - "totalLines": 85, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/memory/MemoryCenterTab.tsx": { - "filePath": "apps/web/src/components/os/apps/memory/MemoryCenterTab.tsx", - "contentHash": "107bc191c03dcef34240c3b27d1536431eb4a3815ae0508f8c8cd67ca53472da", - "functions": [ - { - "name": "MemoryCenterTab", - "params": [ - "{\r\n mind = 'personal',\r\n workspaceId,\r\n consumeDeepLinks = true,\r\n}" - ], - "exported": true, - "lineCount": 359 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect", - "useCallback", - "useRef" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Search", - "Loader2", - "Brain", - "Archive", - "Trash2", - "GitMerge", - "RotateCcw", - "Check", - "Save" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/lib/app-deeplink", - "specifiers": [ - "consumeDeepLink" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "Memory", - "MemoryKind", - "MemoryStatus" - ] - }, - { - "source": "@/lib/harvest-kind-map", - "specifiers": [ - "MEMORY_KIND_META", - "memoryKindLabel" - ] - }, - { - "source": "./MemoryCard", - "specifiers": [ - "MemoryCard" - ] - }, - { - "source": "@/components/ui/detail-drawer", - "specifiers": [ - "DetailDrawer" - ] - }, - { - "source": "@/components/ui/confidence-badge", - "specifiers": [ - "ConfidenceBadge" - ] - }, - { - "source": "@/components/ui/status-badge", - "specifiers": [ - "StatusBadge" - ] - }, - { - "source": "@/components/ui/evidence-panel", - "specifiers": [ - "EvidencePanel" - ] - }, - { - "source": "@/components/ui/input", - "specifiers": [ - "Input" - ] - }, - { - "source": "@/lib/render-markdown", - "specifiers": [ - "renderChatMarkdown" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - } - ], - "exports": [ - "MemoryCenterTab" - ], - "totalLines": 418, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/memory/MemoryTrustManage.tsx": { - "filePath": "apps/web/src/components/os/apps/memory/MemoryTrustManage.tsx", - "contentHash": "77cf5c02f5e230fe7398a6edb039662eaafc439faf7fdd24919b5c22d9695d93", - "functions": [ - { - "name": "freshness", - "params": [ - "createdAt" - ], - "returnType": "Freshness", - "exported": true, - "lineCount": 8 - }, - { - "name": "isStale", - "params": [ - "m" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 4 - }, - { - "name": "ageLabel", - "params": [ - "createdAt" - ], - "returnType": "string", - "exported": false, - "lineCount": 6 - }, - { - "name": "DimensionChip", - "params": [ - "{ value, label, tone = 'default' }" - ], - "exported": false, - "lineCount": 15 - }, - { - "name": "MemoryRow", - "params": [ - "{ memory, onOpen, onForget, onConfirm, busy }" - ], - "exported": false, - "lineCount": 91 - }, - { - "name": "MemoryTrustManage", - "params": [ - "{ mind, workspaceId, onToast, onWhy, openMemoryId, onOpenConsumed }" - ], - "exported": true, - "lineCount": 306 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect", - "useCallback", - "useRef", - "useMemo" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Search", - "Loader2", - "Brain", - "Pencil", - "Trash2", - "Clock", - "Check", - "Save" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/lib/app-deeplink", - "specifiers": [ - "consumeDeepLink" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "Memory", - "MemoryStatus" - ] - }, - { - "source": "@/lib/frame-source", - "specifiers": [ - "frameSourceLabel" - ] - }, - { - "source": "../../warm", - "specifiers": [ - "ConfidenceRing" - ] - }, - { - "source": "@/components/ui/detail-drawer", - "specifiers": [ - "DetailDrawer" - ] - }, - { - "source": "@/components/ui/evidence-panel", - "specifiers": [ - "EvidencePanel" - ] - }, - { - "source": "@/lib/render-markdown", - "specifiers": [ - "renderChatMarkdown" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - } - ], - "exports": [ - "MemoryTrustManage", - "freshness", - "isStale", - "MemoryStatus" - ], - "totalLines": 520, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/memory/MemoryTrustWhy.tsx": { - "filePath": "apps/web/src/components/os/apps/memory/MemoryTrustWhy.tsx", - "contentHash": "5dbc1d5e8da93b98c965f8b3c24cb391b9792a48414ee48b582b963d2539ebba", - "functions": [ - { - "name": "humanizeTool", - "params": [ - "tool" - ], - "returnType": "string", - "exported": false, - "lineCount": 4 - }, - { - "name": "NodeRow", - "params": [ - "{ node, last }" - ], - "exported": false, - "lineCount": 14 - }, - { - "name": "Shell", - "params": [ - "{ children }" - ], - "exported": false, - "lineCount": 7 - }, - { - "name": "MemoryTrustWhy", - "params": [ - "{ mind, workspaceId, memoryId, onToast, onCorrect, onForget }" - ], - "exported": true, - "lineCount": 121 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect", - "ReactNode" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Loader2", - "Info", - "Sparkles" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "MemoryTrace" - ] - }, - { - "source": "../../warm", - "specifiers": [ - "HexAvatar", - "DotLive", - "WarmTone" - ] - } - ], - "exports": [ - "MemoryTrustWhy" - ], - "totalLines": 191, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/memory/TimelineTab.tsx": { - "filePath": "apps/web/src/components/os/apps/memory/TimelineTab.tsx", - "contentHash": "a4a98590b40645884c86025d4dfd189e1e48429c17db6bbff3a1aaa5763bb4d7", - "functions": [ - { - "name": "readFrameProvenanceTool", - "params": [ - "frame" - ], - "returnType": "string | null", - "exported": false, - "lineCount": 9 - }, - { - "name": "TimelineTab", - "params": [ - "{\r\n frames, selectedFrame, onSelectFrame, searchQuery, onSearchChange,\r\n onDeleteFrame, loading, error, stats, typeFilters = [], onTypeFiltersChange,\r\n minImportance = 0, onMinImportanceChange, onContextRail,\r\n}" - ], - "exported": false, - "lineCount": 216 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Brain", - "Search", - "Clock", - "Trash2", - "Edit3", - "Filter", - "Eye", - "Copy", - "Loader2", - "AlertTriangle" - ] - }, - { - "source": "framer-motion", - "specifiers": [ - "AnimatePresence" - ] - }, - { - "source": "@/components/ui/input", - "specifiers": [ - "Input" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "MemoryFrame" - ] - }, - { - "source": "@/lib/render-markdown", - "specifiers": [ - "renderChatMarkdown" - ] - }, - { - "source": "@/components/os/ContextMenu", - "specifiers": [ - "ContextMenu", - "ContextMenuItem" - ] - }, - { - "source": "@/components/ui/hint-tooltip", - "specifiers": [ - "HintTooltip" - ] - } - ], - "exports": [], - "totalLines": 280, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/memory/WeaverPanel.tsx": { - "filePath": "apps/web/src/components/os/apps/memory/WeaverPanel.tsx", - "contentHash": "5ceb2a3067a87361a71718762e68336d5ce76a358fa0530aded8b01fdfbddc31", - "functions": [ - { - "name": "timeAgo", - "params": [ - "iso" - ], - "returnType": "string", - "exported": false, - "lineCount": 10 - }, - { - "name": "WeaverPanel", - "params": [], - "exported": true, - "lineCount": 133 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "RefreshCw", - "Activity", - "Clock", - "Zap", - "TrendingDown", - "TrendingUp", - "Loader2" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - } - ], - "exports": [ - "WeaverPanel" - ], - "totalLines": 161, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/memory/WikiTab.tsx": { - "filePath": "apps/web/src/components/os/apps/memory/WikiTab.tsx", - "contentHash": "3f2ba3847b99aff8d08c05b8fa0645b81d5755c5728f65beec51507b567e0ccd", - "functions": [ - { - "name": "formatRelativeHealth", - "params": [ - "iso" - ], - "returnType": "string", - "exported": false, - "lineCount": 14 - }, - { - "name": "WikiTab", - "params": [], - "exported": true, - "lineCount": 384 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect", - "useCallback" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "BookOpen", - "RefreshCw", - "Loader2", - "Search", - "FileText", - "Heart", - "ChevronRight", - "Zap", - "Network", - "Lightbulb", - "Download", - "Upload" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/lib/render-markdown", - "specifiers": [ - "renderChatMarkdown" - ] - }, - { - "source": "@/components/ui/hint-tooltip", - "specifiers": [ - "HintTooltip" - ] - } - ], - "exports": [ - "WikiTab" - ], - "totalLines": 456, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/MemoryCenterApp.tsx": { - "filePath": "apps/web/src/components/os/apps/MemoryCenterApp.tsx", - "contentHash": "e8b97d90e5262d217ad1edf9c5003ce64b5a6834124da5b31913a36078003df0", - "functions": [ - { - "name": "MemoryCenterApp", - "params": [ - "{\r\n mind, onMindChange, view, onViewChange, workspaceId, workspaceName,\r\n timeline, knowledgeGraph, onRefreshKG, kgScope, onKGScopeChange,\r\n kgLoading = false, kgError = null, onContextRail,\r\n}" - ], - "exported": false, - "lineCount": 112 - } - ], - "classes": [], - "imports": [ - { - "source": "lucide-react", - "specifiers": [ - "Brain", - "Clock", - "Network", - "Download", - "Activity", - "BookOpen", - "Sparkles", - "User", - "Briefcase", - "ShieldCheck" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "KGNode", - "KGEdge" - ] - }, - { - "source": "@/components/ui/hint-tooltip", - "specifiers": [ - "HintTooltip" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - }, - { - "source": "./MemoryTrust", - "specifiers": [ - "MemoryTrust" - ] - }, - { - "source": "./memory/KnowledgeGraphViewer", - "specifiers": [ - "KnowledgeGraphViewer" - ] - }, - { - "source": "./memory/HarvestTab", - "specifiers": [ - "HarvestTab" - ] - }, - { - "source": "./memory/WeaverPanel", - "specifiers": [ - "WeaverPanel" - ] - }, - { - "source": "./memory/WikiTab", - "specifiers": [ - "WikiTab" - ] - }, - { - "source": "./memory/EvolutionTab", - "specifiers": [ - "EvolutionTab" - ] - }, - { - "source": "./memory/MemoryCenterTab", - "specifiers": [ - "MemoryCenterTab" - ] - }, - { - "source": "./memory/TimelineTab", - "specifiers": [ - "TimelineTab", - "TimelineTabProps" - ] - }, - { - "source": "./memory/ImportReminderBanner", - "specifiers": [ - "ImportReminderBanner" - ] - }, - { - "source": "@/hooks/useOnboarding", - "specifiers": [ - "useOnboarding" - ] - } - ], - "exports": [ - "MEMORY_VIEWS" - ], - "totalLines": 188, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/MemoryTrust.tsx": { - "filePath": "apps/web/src/components/os/apps/MemoryTrust.tsx", - "contentHash": "9db034a18560dcb4a43a1b0f145db418733e0a5662ba415e81a24be3953f4732", - "functions": [ - { - "name": "ManageHero", - "params": [], - "exported": false, - "lineCount": 20 - }, - { - "name": "WhyHero", - "params": [], - "exported": false, - "lineCount": 18 - }, - { - "name": "TrustPrincipleFooter", - "params": [ - "{ view }" - ], - "exported": false, - "lineCount": 27 - }, - { - "name": "MemoryTrust", - "params": [ - "{ mind, workspaceId }" - ], - "exported": true, - "lineCount": 115 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useRef", - "useCallback", - "useEffect" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "ShieldCheck", - "Info" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "../warm", - "specifiers": [ - "SectionLabel" - ] - }, - { - "source": "./memory/MemoryTrustManage", - "specifiers": [ - "MemoryTrustManage" - ] - }, - { - "source": "./memory/MemoryTrustWhy", - "specifiers": [ - "MemoryTrustWhy" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - } - ], - "exports": [ - "MemoryTrust" - ], - "totalLines": 225, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/MissionControlApp.tsx": { - "filePath": "apps/web/src/components/os/apps/MissionControlApp.tsx", - "contentHash": "0eb6e8c233ab78b78627e8b789277efc1d4af9eaf0d05098161147ba1df1fd51", - "functions": [ - { - "name": "MissionControlApp", - "params": [ - "{ onSpawnOpen }" - ], - "exported": false, - "lineCount": 243 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Play", - "Pause", - "Square", - "Radio", - "Clock", - "Zap", - "RefreshCw", - "Users", - "Plus", - "Rocket", - "AlertCircle" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "FleetSession", - "Workspace" - ] - }, - { - "source": "@/components/ui/button", - "specifiers": [ - "Button" - ] - } - ], - "exports": [], - "totalLines": 281, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/PaymentSuccessApp.tsx": { - "filePath": "apps/web/src/components/os/apps/PaymentSuccessApp.tsx", - "contentHash": "df2b6431110b39c2486611bedb914cda59760874bd7f49d74d4441fc236a43ec", - "functions": [ - { - "name": "PaymentSuccessApp", - "params": [], - "exported": true, - "lineCount": 75 - } - ], - "classes": [], - "imports": [ - { - "source": "react-router-dom", - "specifiers": [ - "useNavigate" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Check", - "Loader2", - "AlertCircle" - ] - }, - { - "source": "@/hooks/useBilling", - "specifiers": [ - "useBilling" - ] - } - ], - "exports": [ - "PaymentSuccessApp" - ], - "totalLines": 99, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/PlatformApp.test.tsx": { - "filePath": "apps/web/src/components/os/apps/PlatformApp.test.tsx", - "contentHash": "efccb6b1d612585d6924e2c2fcb5fb35db59db18e9a7da0fc97aeadc3f8a0529", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "render", - "screen", - "cleanup", - "fireEvent", - "within" - ] - }, - { - "source": "./PlatformApp", - "specifiers": [ - "PlatformApp" - ] - } - ], - "exports": [], - "totalLines": 65, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/PlatformApp.tsx": { - "filePath": "apps/web/src/components/os/apps/PlatformApp.tsx", - "contentHash": "c07355fe6bee1960292cc62f586d017729ac65339b9891bfed9748222c933eed", - "functions": [ - { - "name": "PlatformApp", - "params": [], - "exported": false, - "lineCount": 40 - }, - { - "name": "SectionHead", - "params": [ - "{ eyebrow, title, blurb }" - ], - "exported": false, - "lineCount": 9 - }, - { - "name": "DesktopView", - "params": [ - "{ os, onOsChange }" - ], - "exported": false, - "lineCount": 103 - }, - { - "name": "BootView", - "params": [], - "exported": false, - "lineCount": 39 - }, - { - "name": "RoadmapView", - "params": [], - "exported": false, - "lineCount": 46 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "ReactNode" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Monitor", - "Puzzle", - "MessageCircle", - "Smartphone", - "Check", - "Loader2" - ] - } - ], - "exports": [], - "totalLines": 364, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/power/power-primitives.test.tsx": { - "filePath": "apps/web/src/components/os/apps/power/power-primitives.test.tsx", - "contentHash": "1b72a64328b70f6e21105e9b195a0588d3882ed0f2ec1a778b3670e9524d2d6b", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "render", - "screen", - "cleanup", - "fireEvent" - ] - }, - { - "source": "./power-primitives", - "specifiers": [ - "SurfaceRow", - "SurfaceToggle", - "RiskBadge", - "StatusBadge", - "riskToneForTool" - ] - } - ], - "exports": [], - "totalLines": 100, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/power/power-primitives.tsx": { - "filePath": "apps/web/src/components/os/apps/power/power-primitives.tsx", - "contentHash": "606182742a28f51a23a007b7260f9b5c6aeb44cb23965f44477b834f97c6581b", - "functions": [ - { - "name": "SurfaceRow", - "params": [ - "{ leading, title, subtitle, actions, className }" - ], - "exported": true, - "lineCount": 23 - }, - { - "name": "SurfaceToggle", - "params": [ - "{ checked, onChange, label, disabled, className }" - ], - "exported": true, - "lineCount": 26 - }, - { - "name": "RiskBadge", - "params": [ - "{ level, withSuffix = true, className }" - ], - "exported": true, - "lineCount": 16 - }, - { - "name": "StatusBadge", - "params": [ - "{ tone, dot, children, className }" - ], - "exported": true, - "lineCount": 14 - }, - { - "name": "riskToneForTool", - "params": [ - "toolName", - "input" - ], - "returnType": "RiskTone", - "exported": true, - "lineCount": 7 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "ReactNode" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - }, - { - "source": "@/components/os/warm/tones", - "specifiers": [ - "TONE_COLOR", - "TONE_WASH", - "WarmTone" - ] - } - ], - "exports": [ - "SurfaceRow", - "SurfaceToggle", - "RiskBadge", - "StatusBadge", - "riskToneForTool" - ], - "totalLines": 193, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/RoomApp.test.tsx": { - "filePath": "apps/web/src/components/os/apps/RoomApp.test.tsx", - "contentHash": "371d0a4fd6b23575229ddf210425a8c38bfe47c030348a55c13ea1d9ccc6b658", - "functions": [ - { - "name": "agent", - "params": [ - "over" - ], - "returnType": "RoomAgent", - "exported": false, - "lineCount": 12 - }, - { - "name": "setRoster", - "params": [ - "live", - "recent" - ], - "exported": false, - "lineCount": 11 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "render", - "screen", - "cleanup", - "within" - ] - }, - { - "source": "@/lib/room-state-reducer", - "specifiers": [ - "RoomAgent" - ] - }, - { - "source": "./RoomApp", - "specifiers": [ - "RoomApp" - ] - } - ], - "exports": [], - "totalLines": 122, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/RoomApp.tsx": { - "filePath": "apps/web/src/components/os/apps/RoomApp.tsx", - "contentHash": "2cc9d88eb8b3cbe373b8c0ea5b692429ecd93af6e0b8808de9c71dccb2166cb0", - "functions": [ - { - "name": "roleStyle", - "params": [ - "role" - ], - "returnType": "{ color: string; background: string }", - "exported": false, - "lineCount": 3 - }, - { - "name": "formatElapsed", - "params": [ - "startedAt", - "completedAt" - ], - "returnType": "string", - "exported": false, - "lineCount": 10 - }, - { - "name": "AgentTile", - "params": [ - "{ agent, workspaceName }" - ], - "exported": false, - "lineCount": 70 - }, - { - "name": "RoomApp", - "params": [ - "{ workspaceId, workspaceNames = {} }" - ], - "exported": false, - "lineCount": 178 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useMemo", - "useState" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Users", - "CheckCircle2", - "AlertCircle", - "Loader2", - "Clock", - "Wrench" - ] - }, - { - "source": "@/hooks/useRoomState", - "specifiers": [ - "useRoomState", - "RoomAgent" - ] - } - ], - "exports": [], - "totalLines": 324, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/SettingsApp.tsx": { - "filePath": "apps/web/src/components/os/apps/SettingsApp.tsx", - "contentHash": "05b3f8109774a111226bee771b5ead39b68f0855e035eda5c97760d8d9c9a79b", - "functions": [ - { - "name": "SettingsApp", - "params": [], - "exported": false, - "lineCount": 1037 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect" - ] - }, - { - "source": "react-router-dom", - "specifiers": [ - "useSearchParams" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Cpu", - "Shield", - "Palette", - "Save", - "Loader2", - "Users", - "Database", - "Download", - "Upload", - "Link2", - "Building", - "Wrench", - "DollarSign", - "Key", - "Lock", - "BarChart3", - "Trash2", - "RotateCcw", - "GraduationCap", - "HelpCircle" - ] - }, - { - "source": "@/components/os/billing/PlanCards", - "specifiers": [ - "PlanCards" - ] - }, - { - "source": "@/hooks/use-toast", - "specifiers": [ - "useToast" - ] - }, - { - "source": "@/hooks/useFeatureGate", - "specifiers": [ - "useFeatureGate" - ] - }, - { - "source": "@/hooks/useBilling", - "specifiers": [ - "useBilling" - ] - }, - { - "source": "@/components/os/LockedFeature", - "specifiers": [ - "LockedFeature" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/components/ui/input", - "specifiers": [ - "Input" - ] - }, - { - "source": "@/components/ui/hint-tooltip", - "specifiers": [ - "HintTooltip" - ] - }, - { - "source": "@/hooks/useProviders", - "specifiers": [ - "useProviders" - ] - }, - { - "source": "@/providers/ThemeProvider", - "specifiers": [ - "useTheme" - ] - }, - { - "source": "@/hooks/useOnboarding", - "specifiers": [ - "useOnboarding" - ] - }, - { - "source": "@/hooks/useDeveloperMode", - "specifiers": [ - "useDeveloperMode" - ] - }, - { - "source": "@/hooks/useDockLabels", - "specifiers": [ - "useDockLabels" - ] - }, - { - "source": "@/lib/login-briefing", - "specifiers": [ - "readLoginBriefingDismissed", - "writeLoginBriefingDismissed" - ] - }, - { - "source": "@/lib/dock-tiers", - "specifiers": [ - "UserTier" - ] - }, - { - "source": "@/lib/settings-tier-filter", - "specifiers": [ - "getSettingsTabsForTier", - "resolveActiveSettingsTab" - ] - }, - { - "source": "@/components/os/ModelSelector", - "specifiers": [ - "ModelSelector" - ] - }, - { - "source": "@/components/os/ModelPilotCard", - "specifiers": [ - "ModelPilotCard" - ] - }, - { - "source": "@/components/os/model-gate/ModelGate", - "specifiers": [ - "ModelGate" - ] - }, - { - "source": "@/components/os/overlays/EraseDataDialog", - "specifiers": [ - "EraseDataDialog" - ] - }, - { - "source": "@/components/os/settings/TelegramDigestCard", - "specifiers": [ - "TelegramDigestCard" - ] - }, - { - "source": "@/components/os/settings/CoverageCompassCard", - "specifiers": [ - "CoverageCompassCard" - ] - }, - { - "source": "@/lib/shape-selection", - "specifiers": [ - "AVAILABLE_SHAPES", - "useSelectedShape", - "PromptShape" - ] - } - ], - "exports": [], - "totalLines": 1090, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/skills/SkillBuilder.tsx": { - "filePath": "apps/web/src/components/os/apps/skills/SkillBuilder.tsx", - "contentHash": "361cfa6ca7feb27e49f529e3eea36ce7b4d7813427902824c6e0d913699820bf", - "functions": [ - { - "name": "splitLines", - "params": [ - "text" - ], - "returnType": "string[]", - "exported": false, - "lineCount": 1 - }, - { - "name": "appendIoSections", - "params": [ - "content", - "inputs", - "outputs" - ], - "returnType": "string", - "exported": true, - "lineCount": 5 - }, - { - "name": "SkillBuilder", - "params": [ - "{ onCreated, onCancel, onTierError }" - ], - "exported": false, - "lineCount": 246 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useEffect", - "useState" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "ArrowDown", - "ArrowUp", - "Plus", - "Trash2" - ] - }, - { - "source": "@/components/ui/input", - "specifiers": [ - "Input" - ] - }, - { - "source": "@/components/ui/textarea", - "specifiers": [ - "Textarea" - ] - }, - { - "source": "@/components/ui/stepper", - "specifiers": [ - "BuilderStepper", - "BuilderStep" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - } - ], - "exports": [ - "appendIoSections" - ], - "totalLines": 308, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/skills/SkillEditorDrawer.tsx": { - "filePath": "apps/web/src/components/os/apps/skills/SkillEditorDrawer.tsx", - "contentHash": "fd62839253a900513c589b73f08d8f8e2b2ab4d31f3ec4fdf4840bd125ec5aa7", - "functions": [ - { - "name": "SkillEditorDrawer", - "params": [ - "{ skillName, onOpenChange, onSaved }" - ], - "exported": false, - "lineCount": 71 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Save", - "Loader2" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/components/ui/detail-drawer", - "specifiers": [ - "DetailDrawer" - ] - }, - { - "source": "@/components/ui/textarea", - "specifiers": [ - "Textarea" - ] - } - ], - "exports": [], - "totalLines": 92, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/skills/SkillRow.tsx": { - "filePath": "apps/web/src/components/os/apps/skills/SkillRow.tsx", - "contentHash": "f914a1d9bf1b3a4a144ecb15d8543a01a1bfa6a5565228dd8d0dc58d8980b180", - "functions": [ - { - "name": "SkillRow", - "params": [ - "{ skill, testing, onTest, onEdit }" - ], - "exported": false, - "lineCount": 31 - } - ], - "classes": [], - "imports": [ - { - "source": "lucide-react", - "specifiers": [ - "FlaskConical", - "Pencil", - "Loader2", - "FileCode2" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "Skill" - ] - }, - { - "source": "@/components/ui/status-badge", - "specifiers": [ - "StatusBadge" - ] - }, - { - "source": "@/components/ui/status-badge", - "specifiers": [ - "StatusTone" - ] - } - ], - "exports": [], - "totalLines": 61, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/StorageAndFilesApp.test.tsx": { - "filePath": "apps/web/src/components/os/apps/StorageAndFilesApp.test.tsx", - "contentHash": "86b5316edf1ebcde845b4571bbe8a87e606f5d8447006ecee54f60cf0889dfe6", - "functions": [ - { - "name": "renderApp", - "params": [], - "exported": false, - "lineCount": 11 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "render", - "screen", - "cleanup", - "fireEvent", - "within" - ] - }, - { - "source": "@/components/ui/tooltip", - "specifiers": [ - "TooltipProvider" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "FileEntry", - "Workspace" - ] - }, - { - "source": "./StorageAndFilesApp", - "specifiers": [ - "StorageAndFilesApp" - ] - } - ], - "exports": [], - "totalLines": 123, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/StorageAndFilesApp.tsx": { - "filePath": "apps/web/src/components/os/apps/StorageAndFilesApp.tsx", - "contentHash": "3d42b86ddc7951dd0bb5753d263b07b1f1fc7990e61653287cc01f4a62e22269", - "functions": [ - { - "name": "StorageAndFilesApp", - "params": [ - "{\r\n workspaceId,\r\n workspaceName,\r\n defaultStorageType,\r\n workspace,\r\n workspaces,\r\n onSelectWorkspace,\r\n onContextRail,\r\n}" - ], - "exported": false, - "lineCount": 77 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "MapPin", - "FolderTree" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "StorageType", - "Workspace" - ] - }, - { - "source": "./FilesAppTabs", - "specifiers": [ - "FilesAppTabs" - ] - }, - { - "source": "./StorageApp", - "specifiers": [ - "StorageApp" - ] - } - ], - "exports": [], - "totalLines": 126, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/StorageApp.tsx": { - "filePath": "apps/web/src/components/os/apps/StorageApp.tsx", - "contentHash": "e52f16755d8638a4f9249edaf02377b607def6237a44d0836683f98fb2946973", - "functions": [ - { - "name": "StorageApp", - "params": [ - "{ workspaceId, workspaceName, workspace }" - ], - "exported": false, - "lineCount": 213 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useEffect", - "useState" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Cloud", - "HardDrive", - "Server", - "ShieldCheck", - "Folder", - "FileText", - "Loader2" - ] - }, - { - "source": "react", - "specifiers": [ - "ElementType" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "FileEntry", - "StorageType", - "Workspace" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "./files/file-utils", - "specifiers": [ - "formatSize" - ] - } - ], - "exports": [], - "totalLines": 308, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/TeamGovernanceApp.tsx": { - "filePath": "apps/web/src/components/os/apps/TeamGovernanceApp.tsx", - "contentHash": "6c91e8f837b4e71218efede212e4752c1f8fc03a7a13278296c84210d7622242", - "functions": [ - { - "name": "TeamGovernanceApp", - "params": [], - "exported": false, - "lineCount": 40 - } - ], - "classes": [], - "imports": [ - { - "source": "lucide-react", - "specifiers": [ - "Shield", - "Lock", - "Users", - "Crown" - ] - } - ], - "exports": [], - "totalLines": 45, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/TelemetryApp.tsx": { - "filePath": "apps/web/src/components/os/apps/TelemetryApp.tsx", - "contentHash": "b1316fd138a7d5a5ba7ec4b7eec49c0eef4fd1150b314a56fe1ad3d2992fb5e1", - "functions": [ - { - "name": "modelLabel", - "params": [ - "id" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "TelemetryApp", - "params": [], - "exported": false, - "lineCount": 269 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect", - "useCallback" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "BarChart3", - "Loader2", - "Zap", - "DollarSign", - "TrendingUp", - "Check", - "AlertTriangle" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/hooks/use-toast", - "specifiers": [ - "useToast" - ] - }, - { - "source": "./power/power-primitives", - "specifiers": [ - "SurfaceRow" - ] - } - ], - "exports": [], - "totalLines": 315, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/TimelineApp.tsx": { - "filePath": "apps/web/src/components/os/apps/TimelineApp.tsx", - "contentHash": "31f60164015c04b8374fdeb633de47256ff168e9a9a291029990d59293e6ddba", - "functions": [ - { - "name": "getSinceDate", - "params": [ - "range" - ], - "returnType": "string | undefined", - "exported": false, - "lineCount": 19 - }, - { - "name": "formatTime", - "params": [ - "ts" - ], - "returnType": "string", - "exported": false, - "lineCount": 9 - }, - { - "name": "groupByDay", - "params": [ - "events" - ], - "returnType": "Map", - "exported": false, - "lineCount": 11 - }, - { - "name": "TimelineApp", - "params": [ - "{ workspaceId, workspaceName }" - ], - "exported": false, - "lineCount": 173 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect", - "useMemo" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Clock", - "Loader2", - "ChevronRight", - "Filter" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "TimelineEvent" - ] - }, - { - "source": "@/lib/timeline-events", - "specifiers": [ - "iconForEvent", - "colorForEvent", - "describeEvent" - ] - } - ], - "exports": [], - "totalLines": 242, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/UserProfileApp.test.tsx": { - "filePath": "apps/web/src/components/os/apps/UserProfileApp.test.tsx", - "contentHash": "a4e346370832fd20dd2d11e0b349e99885060ea40da3817286d02351ce2fd19a", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "render", - "screen", - "waitFor", - "cleanup", - "within" - ] - }, - { - "source": "./UserProfileApp", - "specifiers": [ - "UserProfileApp" - ] - } - ], - "exports": [], - "totalLines": 73, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/UserProfileApp.tsx": { - "filePath": "apps/web/src/components/os/apps/UserProfileApp.tsx", - "contentHash": "c55b7128f24b0cf5ca3552134a5797dff10cbb9327fb38e585288dda8e1ef58e", - "functions": [ - { - "name": "UserProfileApp", - "params": [], - "exported": false, - "lineCount": 533 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "User", - "PenLine", - "Palette", - "Heart", - "Save", - "Loader2", - "Search", - "Upload", - "Sparkles", - "CheckCircle2", - "Globe", - "Clock", - "MessageSquare", - "FileText", - "Presentation", - "FileSpreadsheet", - "FileDown", - "Check", - "X", - "Hexagon" - ] - }, - { - "source": "@/components/ui/input", - "specifiers": [ - "Input" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - } - ], - "exports": [], - "totalLines": 586, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/VaultApp.tsx": { - "filePath": "apps/web/src/components/os/apps/VaultApp.tsx", - "contentHash": "8b86a9db5df9a5f1df9c6f73a136ae85812d228212f2781b2802ced2af8fbe84", - "functions": [ - { - "name": "VaultApp", - "params": [], - "exported": false, - "lineCount": 320 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect", - "useRef" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Lock", - "Plus", - "Trash2", - "Eye", - "EyeOff", - "Loader2", - "Key", - "Plug", - "ExternalLink", - "Shield", - "ChevronDown", - "ChevronRight", - "RefreshCw", - "CheckCircle2", - "User", - "Pencil" - ] - }, - { - "source": "@/components/ui/input", - "specifiers": [ - "Input" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/hooks/use-toast", - "specifiers": [ - "useToast" - ] - }, - { - "source": "@/components/ui/hint-tooltip", - "specifiers": [ - "HintTooltip" - ] - } - ], - "exports": [], - "totalLines": 398, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/VoiceApp.tsx": { - "filePath": "apps/web/src/components/os/apps/VoiceApp.tsx", - "contentHash": "e30a3e8a7d65a1353463551b567a2d1b7fba442ffc6ab9861a39cbd7d2b3299f", - "functions": [ - { - "name": "VoiceApp", - "params": [], - "exported": false, - "lineCount": 7 - } - ], - "classes": [], - "imports": [ - { - "source": "lucide-react", - "specifiers": [ - "Mic" - ] - } - ], - "exports": [], - "totalLines": 12, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/WaggleDanceApp.tsx": { - "filePath": "apps/web/src/components/os/apps/WaggleDanceApp.tsx", - "contentHash": "d5317d486322e016f3cc9ebf78535e4b5fe4a83a15c632fb84ecc14055591a05", - "functions": [ - { - "name": "getTypeConfig", - "params": [ - "type" - ], - "returnType": "TypeConfigEntry", - "exported": false, - "lineCount": 4 - }, - { - "name": "WaggleDanceApp", - "params": [], - "exported": false, - "lineCount": 167 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useMemo", - "useState" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Zap", - "Eye", - "ArrowRightLeft", - "Lightbulb", - "AlertTriangle", - "Radio", - "RefreshCw", - "Check", - "Send" - ] - }, - { - "source": "@/hooks/useWaggleDance", - "specifiers": [ - "useWaggleDance" - ] - }, - { - "source": "@/components/ui/button", - "specifiers": [ - "Button" - ] - }, - { - "source": "@/components/ui/badge", - "specifiers": [ - "Badge" - ] - }, - { - "source": "@/components/ui/scroll-area", - "specifiers": [ - "ScrollArea" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "WaggleSignal" - ] - }, - { - "source": "@/lib/waggle-signals", - "specifiers": [ - "sortSignalsForDisplay" - ] - } - ], - "exports": [], - "totalLines": 202, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/workspace/TasksTab.tsx": { - "filePath": "apps/web/src/components/os/apps/workspace/TasksTab.tsx", - "contentHash": "6472b96fb81908df7c68a6e1f0be283a2b846353ec5f10bf11f640cb51ff6b05", - "functions": [ - { - "name": "StatusIcon", - "params": [ - "{ status }" - ], - "exported": false, - "lineCount": 5 - }, - { - "name": "TaskRow", - "params": [ - "{ task, onCycle, onDelete }" - ], - "exported": false, - "lineCount": 35 - }, - { - "name": "MemorySignals", - "params": [ - "{ state }" - ], - "exported": false, - "lineCount": 59 - }, - { - "name": "TasksTab", - "params": [ - "{ workspaceId, state }" - ], - "exported": false, - "lineCount": 111 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect", - "useCallback" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "ListTodo", - "Circle", - "CircleDot", - "CheckCircle2", - "AlertTriangle", - "Plus", - "X", - "Loader2" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/hooks/use-toast", - "specifiers": [ - "useToast" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "WorkspaceStateView", - "WorkspaceTask" - ] - } - ], - "exports": [], - "totalLines": 242, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/apps/WorkspaceDesktopApp.tsx": { - "filePath": "apps/web/src/components/os/apps/WorkspaceDesktopApp.tsx", - "contentHash": "1ba38ee09e46325d2b730619a48ab5c4ef481a402c385521a14276e4f0db0674", - "functions": [ - { - "name": "initialsOf", - "params": [ - "name" - ], - "returnType": "string", - "exported": false, - "lineCount": 6 - }, - { - "name": "relativeTime", - "params": [ - "iso" - ], - "returnType": "string", - "exported": false, - "lineCount": 13 - }, - { - "name": "FactsSection", - "params": [ - "{ ctx }" - ], - "exported": false, - "lineCount": 29 - }, - { - "name": "RecentWorkSection", - "params": [ - "{ artifacts }" - ], - "exported": false, - "lineCount": 19 - }, - { - "name": "StatusCard", - "params": [ - "{ ctx, agentsRunning }" - ], - "exported": false, - "lineCount": 28 - }, - { - "name": "UpNextCard", - "params": [ - "{ state, onOpenTab }" - ], - "exported": false, - "lineCount": 25 - }, - { - "name": "TeamCard", - "params": [ - "{ members }" - ], - "exported": false, - "lineCount": 17 - }, - { - "name": "OverviewTab", - "params": [ - "{\r\n ctx, state, artifacts, members, agentsRunning, onOpenTab,\r\n}" - ], - "exported": false, - "lineCount": 32 - }, - { - "name": "TabPlaceholder", - "params": [ - "{\r\n icon: Icon, title, body, cta,\r\n}" - ], - "exported": false, - "lineCount": 17 - }, - { - "name": "WorkspaceDesktopApp", - "params": [ - "{\r\n workspaceId, workspaceName, onOpenChat,\r\n activeTab: controlledTab, onTabChange, chatSlot,\r\n}" - ], - "exported": false, - "lineCount": 431 - }, - { - "name": "normalizeArtifacts", - "params": [ - "files" - ], - "returnType": "ArtifactRow[]", - "exported": false, - "lineCount": 22 - }, - { - "name": "FullScreenState", - "params": [ - "{\r\n icon: Icon, iconClass, title, body, testId, cta,\r\n}" - ], - "exported": false, - "lineCount": 19 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect", - "useMemo", - "useCallback" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "LayoutGrid", - "MessageSquare", - "FileBox", - "Brain", - "Loader2", - "Users", - "WifiOff", - "ShieldAlert", - "ChevronRight", - "FileText", - "SearchX", - "RefreshCw" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/hooks/useRoomState", - "specifiers": [ - "useRoomState" - ] - }, - { - "source": "@/hooks/useRevalidateOnError", - "specifiers": [ - "useRevalidateOnError" - ] - }, - { - "source": "./memory/MemoryCenterTab", - "specifiers": [ - "MemoryCenterTab" - ] - }, - { - "source": "./workspace/TasksTab", - "specifiers": [ - "TasksTab" - ] - }, - { - "source": "../WorkspaceActionsMenu", - "specifiers": [ - "WorkspaceActionsMenu" - ] - }, - { - "source": "../warm", - "specifiers": [ - "HexAvatar", - "DotLive", - "SectionLabel", - "HexCheckTile", - "IconTile", - "ProvenanceLine" - ] - }, - { - "source": "@/lib/frame-source", - "specifiers": [ - "frameSourceLabel" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "WorkspaceContext", - "WorkspaceStateView", - "WorkspaceActivityEvent" - ] - } - ], - "exports": [], - "totalLines": 810, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/AppShell.tsx": { - "filePath": "apps/web/src/components/os/AppShell.tsx", - "contentHash": "67628f301d8f43592654e6b91139262793fc82cd9df8f6d202879ec469ce43aa", - "functions": [ - { - "name": "flattenAppEntries", - "params": [ - "entries" - ], - "returnType": "DockEntry[]", - "exported": false, - "lineCount": 10 - }, - { - "name": "ShellLayout", - "params": [], - "exported": false, - "lineCount": 367 - }, - { - "name": "AppShell", - "params": [], - "exported": false, - "lineCount": 39 - }, - { - "name": "IndexRedirect", - "params": [], - "exported": true, - "lineCount": 5 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useCallback", - "useEffect", - "useMemo", - "useState" - ] - }, - { - "source": "framer-motion", - "specifiers": [ - "AnimatePresence" - ] - }, - { - "source": "react-router-dom", - "specifiers": [ - "Navigate", - "Outlet", - "useLocation", - "useNavigate" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Home", - "MessageSquare", - "Brain", - "ListTodo", - "Library", - "Network", - "Plug", - "Shield" - ] - }, - { - "source": "@/assets/wallpaper.jpg", - "specifiers": [ - "wallpaperDark" - ] - }, - { - "source": "@/assets/wallpaper-light.jpg", - "specifiers": [ - "wallpaperLight" - ] - }, - { - "source": "./BootScreen", - "specifiers": [ - "BootScreen" - ] - }, - { - "source": "./StatusBar", - "specifiers": [ - "StatusBar" - ] - }, - { - "source": "./ChatHost", - "specifiers": [ - "ChatHost" - ] - }, - { - "source": "./overlays/CommandCenter", - "specifiers": [ - "CommandCenter" - ] - }, - { - "source": "./Sidebar", - "specifiers": [ - "Sidebar", - "SidebarNavItem" - ] - }, - { - "source": "./ErrorBoundary", - "specifiers": [ - "AppErrorBoundary" - ] - }, - { - "source": "./overlays/CreateWorkspaceDialog", - "specifiers": [ - "CreateWorkspaceDialog" - ] - }, - { - "source": "./overlays/PersonaSwitcher", - "specifiers": [ - "PersonaSwitcher" - ] - }, - { - "source": "./overlays/SpawnAgentDialog", - "specifiers": [ - "SpawnAgentDialog" - ] - }, - { - "source": "./overlays/WorkspaceSwitcher", - "specifiers": [ - "WorkspaceSwitcher" - ] - }, - { - "source": "./overlays/NotificationInbox", - "specifiers": [ - "NotificationInbox" - ] - }, - { - "source": "./overlays/KeyboardShortcutsHelp", - "specifiers": [ - "KeyboardShortcutsHelp" - ] - }, - { - "source": "./overlays/OnboardingWizard", - "specifiers": [ - "OnboardingWizard" - ] - }, - { - "source": "./overlays/OnboardingTooltips", - "specifiers": [ - "OnboardingTooltips" - ] - }, - { - "source": "./overlays/LoginBriefing", - "specifiers": [ - "LoginBriefing" - ] - }, - { - "source": "./overlays/ContextRail", - "specifiers": [ - "ContextRail" - ] - }, - { - "source": "./overlays/UpgradeModal", - "specifiers": [ - "UpgradeModal" - ] - }, - { - "source": "./overlays/TrialExpiredModal", - "specifiers": [ - "TrialExpiredModal" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/lib/app-deeplink", - "specifiers": [ - "stashDeepLink" - ] - }, - { - "source": "@/lib/login-briefing", - "specifiers": [ - "writeLoginBriefingDismissed", - "writeLoginBriefingLastDismissedAt" - ] - }, - { - "source": "@/lib/routes", - "specifiers": [ - "matchNavRoute", - "queryString", - "routeFor", - "routeForSearchResult" - ] - }, - { - "source": "@/lib/window-state-migration", - "specifiers": [ - "bootWindowStateMigration", - "indexLandingRoute" - ] - }, - { - "source": "@/lib/dock-tiers", - "specifiers": [ - "getDockForTier", - "AppId", - "DockEntry" - ] - }, - { - "source": "@/lib/command-catalog", - "specifiers": [ - "buildCommandCatalog", - "CatalogCommand" - ] - }, - { - "source": "@/providers/ShellContext", - "specifiers": [ - "ShellProvider", - "useShell" - ] - }, - { - "source": "@/hooks/useChatWidgetState", - "specifiers": [ - "seedChat", - "useChatWidgetState" - ] - }, - { - "source": "@/hooks/useKeyboardShortcuts", - "specifiers": [ - "useKeyboardShortcuts" - ] - }, - { - "source": "@/hooks/useWaggleDance", - "specifiers": [ - "useWaggleDance" - ] - }, - { - "source": "@/hooks/useDockLabels", - "specifiers": [ - "useBumpSessionCount" - ] - }, - { - "source": "@/hooks/useDockNudge", - "specifiers": [ - "useDockNudge" - ] - }, - { - "source": "@/hooks/use-toast", - "specifiers": [ - "useToast" - ] - } - ], - "exports": [ - "IndexRedirect" - ], - "totalLines": 500, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/auth/AccountlessNotice.tsx": { - "filePath": "apps/web/src/components/os/auth/AccountlessNotice.tsx", - "contentHash": "5d0adc6910cbd6435961775f4bc1059568c6f876435755662e2e899e60a2cd06", - "functions": [ - { - "name": "AccountlessNotice", - "params": [], - "exported": true, - "lineCount": 34 - } - ], - "classes": [], - "imports": [ - { - "source": "react-router-dom", - "specifiers": [ - "useNavigate" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Check" - ] - } - ], - "exports": [ - "AccountlessNotice" - ], - "totalLines": 48, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/auth/AuthBrandPanel.tsx": { - "filePath": "apps/web/src/components/os/auth/AuthBrandPanel.tsx", - "contentHash": "0e9c09b633ff307f90de67fa7a94df6146dd8b39cee067cf0b29bc586c243219", - "functions": [ - { - "name": "AuthBrandPanel", - "params": [], - "exported": true, - "lineCount": 52 - } - ], - "classes": [], - "imports": [ - { - "source": "lucide-react", - "specifiers": [ - "Shield", - "ArrowRight" - ] - } - ], - "exports": [ - "AuthBrandPanel" - ], - "totalLines": 64, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/auth/AuthScreen.tsx": { - "filePath": "apps/web/src/components/os/auth/AuthScreen.tsx", - "contentHash": "f7b8b93670e0a7c0051c795384f483a48d26df98b511b8bf1f6c0793c5c06474", - "functions": [ - { - "name": "AuthScreen", - "params": [ - "{ children }" - ], - "exported": true, - "lineCount": 10 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "ReactNode" - ] - }, - { - "source": "./AuthBrandPanel", - "specifiers": [ - "AuthBrandPanel" - ] - } - ], - "exports": [ - "AuthScreen" - ], - "totalLines": 24, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/auth/ClerkAuthForm.tsx": { - "filePath": "apps/web/src/components/os/auth/ClerkAuthForm.tsx", - "contentHash": "ea88d9da0513052af1f0778f6dee7f1d373a6ea43b17b127c17cd80342d0004f", - "functions": [ - { - "name": "ClerkAuthForm", - "params": [], - "exported": true, - "lineCount": 36 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState" - ] - }, - { - "source": "@clerk/clerk-react", - "specifiers": [ - "SignIn", - "SignUp" - ] - }, - { - "source": "./EnterpriseCTA", - "specifiers": [ - "EnterpriseCTA" - ] - } - ], - "exports": [ - "ClerkAuthForm" - ], - "totalLines": 57, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/auth/EnterpriseCTA.tsx": { - "filePath": "apps/web/src/components/os/auth/EnterpriseCTA.tsx", - "contentHash": "73f992c8b252efcdc828794aa79c43a451438d395706e422989dfd32cf7e00b2", - "functions": [ - { - "name": "EnterpriseCTA", - "params": [], - "exported": true, - "lineCount": 18 - } - ], - "classes": [], - "imports": [], - "exports": [ - "EnterpriseCTA" - ], - "totalLines": 25, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/billing/PlanCards.tsx": { - "filePath": "apps/web/src/components/os/billing/PlanCards.tsx", - "contentHash": "d5e8db678117d3c49c803cbc9f2cdda9423005c4af20164ad5e7cdb36efb68d5", - "functions": [ - { - "name": "PlanCards", - "params": [ - "{ currentTier, onChoose, disabled = false }" - ], - "exported": true, - "lineCount": 111 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Check" - ] - } - ], - "exports": [ - "PlanCards" - ], - "totalLines": 190, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/BootScreen.tsx": { - "filePath": "apps/web/src/components/os/BootScreen.tsx", - "contentHash": "c96b8def2ceb440ff389444f5645a8812d15f1155488da1ef64117578984f056", - "functions": [ - { - "name": "BootScreen", - "params": [ - "{ onComplete }" - ], - "exported": false, - "lineCount": 163 - } - ], - "classes": [], - "imports": [ - { - "source": "framer-motion", - "specifiers": [ - "motion", - "AnimatePresence" - ] - }, - { - "source": "react", - "specifiers": [ - "useState", - "useEffect", - "useCallback" - ] - }, - { - "source": "@/assets/waggle-logo.jpeg", - "specifiers": [ - "waggleLogoDark" - ] - }, - { - "source": "@/assets/waggle-logo.png", - "specifiers": [ - "waggleLogoLight" - ] - }, - { - "source": "@/hooks/useIsLightTheme", - "specifiers": [ - "useIsLightTheme" - ] - } - ], - "exports": [], - "totalLines": 185, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/ChatHost.tsx": { - "filePath": "apps/web/src/components/os/ChatHost.tsx", - "contentHash": "c2a7cf61ebff5ebf360fd5a72e99e3816d19b37a8d210029ec3c769cb65b396e", - "functions": [ - { - "name": "getHoldingHost", - "params": [], - "returnType": "HTMLDivElement", - "exported": false, - "lineCount": 9 - }, - { - "name": "getChatContainer", - "params": [ - "workspaceId" - ], - "returnType": "HTMLDivElement", - "exported": false, - "lineCount": 11 - }, - { - "name": "parkChatContainer", - "params": [ - "workspaceId" - ], - "returnType": "void", - "exported": false, - "lineCount": 6 - }, - { - "name": "ChatSlot", - "params": [ - "{ workspaceId }" - ], - "exported": true, - "lineCount": 8 - }, - { - "name": "ChatHostInstance", - "params": [ - "{ workspaceId }" - ], - "exported": false, - "lineCount": 52 - }, - { - "name": "ChatHost", - "params": [], - "exported": false, - "lineCount": 33 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useEffect", - "useRef", - "useState" - ] - }, - { - "source": "react-dom", - "specifiers": [ - "createPortal" - ] - }, - { - "source": "react-router-dom", - "specifiers": [ - "matchPath", - "useLocation" - ] - }, - { - "source": "./apps/ChatWindowInstance", - "specifiers": [ - "ChatWindowInstance" - ] - }, - { - "source": "@/providers/ShellContext", - "specifiers": [ - "useShell" - ] - }, - { - "source": "@/hooks/useChatWidgetState", - "specifiers": [ - "composeChatTitle", - "rekeyLocalDefaultChatState", - "takeChatSeed", - "useChatWidgetState", - "ChatSeed" - ] - } - ], - "exports": [ - "ChatSlot" - ], - "totalLines": 186, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/ContextMenu.tsx": { - "filePath": "apps/web/src/components/os/ContextMenu.tsx", - "contentHash": "d32514ecc8d8b68c3c83f799bb7a574a75f3008bcaa8744425a7022af1ab91aa", - "functions": [ - { - "name": "ContextMenu", - "params": [ - "{ items, position, onClose }" - ], - "exported": false, - "lineCount": 71 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect", - "useRef" - ] - }, - { - "source": "framer-motion", - "specifiers": [ - "motion" - ] - }, - { - "source": "../../lib/context-menu-index", - "specifiers": [ - "isActionItem", - "actionIndexForRenderItem" - ] - } - ], - "exports": [], - "totalLines": 93, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/ErrorBoundary.tsx": { - "filePath": "apps/web/src/components/os/ErrorBoundary.tsx", - "contentHash": "c2bd903de286d3225dfd841ec5882c388f3729328db6e1d40611fdb5a9c2f1c1", - "functions": [], - "classes": [ - { - "name": "AppErrorBoundary", - "methods": [ - "getDerivedStateFromError", - "componentDidCatch", - "render" - ], - "properties": [ - "state" - ], - "exported": false, - "lineCount": 36 - } - ], - "imports": [ - { - "source": "react", - "specifiers": [ - "Component", - "ReactNode" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "AlertTriangle" - ] - } - ], - "exports": [], - "totalLines": 53, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/LockedFeature.tsx": { - "filePath": "apps/web/src/components/os/LockedFeature.tsx", - "contentHash": "3eb26a28bf5930d8afae97ae464b5ef48bb1537fb0d2b41fefb187b9317329f8", - "functions": [ - { - "name": "LockedFeature", - "params": [ - "{ featureName, upgradePrompt, children }" - ], - "exported": false, - "lineCount": 20 - } - ], - "classes": [], - "imports": [ - { - "source": "lucide-react", - "specifiers": [ - "Lock", - "ArrowUpRight" - ] - } - ], - "exports": [], - "totalLines": 31, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/model-gate/ModelGate.test.tsx": { - "filePath": "apps/web/src/components/os/model-gate/ModelGate.test.tsx", - "contentHash": "f178e8f7490c14581cd5ab7f6854a11b0261f5e9a4286166d91c40c91509b738", - "functions": [ - { - "name": "providersResp", - "params": [ - "...defs" - ], - "exported": false, - "lineCount": 13 - }, - { - "name": "selectProviderAndType", - "params": [ - "providerName", - "key" - ], - "exported": false, - "lineCount": 5 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "render", - "screen", - "waitFor", - "cleanup", - "fireEvent" - ] - }, - { - "source": "./ModelGate", - "specifiers": [ - "ModelGate" - ] - } - ], - "exports": [], - "totalLines": 122, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/model-gate/ModelGate.tsx": { - "filePath": "apps/web/src/components/os/model-gate/ModelGate.tsx", - "contentHash": "416555dc2fcf2cc7e19643886239595df8744ac3cb1af1cf459ed42ad3164f19", - "functions": [ - { - "name": "ModelGate", - "params": [ - "{ onModelReady, variant = 'settings' }" - ], - "exported": true, - "lineCount": 260 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useCallback", - "useEffect", - "useMemo", - "useState" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Check", - "AlertTriangle", - "Loader2", - "KeyRound", - "Cpu", - "ExternalLink" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/hooks/useProviders", - "specifiers": [ - "useProviders" - ] - }, - { - "source": "@/components/ui/input", - "specifiers": [ - "Input" - ] - } - ], - "exports": [ - "ModelGate" - ], - "totalLines": 308, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/model-gate/NoModelBanner.test.tsx": { - "filePath": "apps/web/src/components/os/model-gate/NoModelBanner.test.tsx", - "contentHash": "009c3a3123a757a2d86cf0a401212b9c085a4841f94a4c54551446cfa04f5a75", - "functions": [ - { - "name": "state", - "params": [ - "over" - ], - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "render", - "screen", - "fireEvent", - "cleanup" - ] - }, - { - "source": "./NoModelBanner", - "specifiers": [ - "NoModelBanner" - ] - } - ], - "exports": [], - "totalLines": 40, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/model-gate/NoModelBanner.tsx": { - "filePath": "apps/web/src/components/os/model-gate/NoModelBanner.tsx", - "contentHash": "e4f17d19da917fc80eda7d3fe950a34e6c53161f9c539f06b94aa701224218bc", - "functions": [ - { - "name": "NoModelBanner", - "params": [ - "{ onSetup }" - ], - "exported": true, - "lineCount": 25 - } - ], - "classes": [], - "imports": [ - { - "source": "lucide-react", - "specifiers": [ - "AlertTriangle", - "ArrowRight" - ] - }, - { - "source": "@/hooks/useHasWorkingModel", - "specifiers": [ - "useHasWorkingModel" - ] - } - ], - "exports": [ - "NoModelBanner" - ], - "totalLines": 41, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/ModelPilotCard.tsx": { - "filePath": "apps/web/src/components/os/ModelPilotCard.tsx", - "contentHash": "1ad8628f20e5afe10305322ff487dcd9b8adfb08a172b9834d8e110318394f65", - "functions": [ - { - "name": "LaneDropdown", - "params": [ - "{\r\n providers,\r\n value,\r\n onChange,\r\n onClose,\r\n}" - ], - "exported": false, - "lineCount": 89 - }, - { - "name": "resolveModelName", - "params": [ - "modelId", - "providers" - ], - "returnType": "string", - "exported": false, - "lineCount": 9 - }, - { - "name": "resolveModelCost", - "params": [ - "modelId", - "providers" - ], - "returnType": "string | null", - "exported": false, - "lineCount": 8 - }, - { - "name": "ModelPilotCard", - "params": [ - "{\r\n defaultModel,\r\n fallbackModel,\r\n budgetModel,\r\n budgetThreshold,\r\n dailyBudget,\r\n providers,\r\n onUpdate,\r\n}" - ], - "exported": false, - "lineCount": 201 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useRef", - "useEffect", - "useCallback" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Zap", - "Shield", - "Coins", - "ChevronDown", - "Info", - "ToggleLeft", - "ToggleRight", - "Key" - ] - }, - { - "source": "@/hooks/useProviders", - "specifiers": [ - "Provider" - ] - }, - { - "source": "@/components/ui/hint-tooltip", - "specifiers": [ - "HintTooltip" - ] - } - ], - "exports": [], - "totalLines": 399, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/ModelSelector.tsx": { - "filePath": "apps/web/src/components/os/ModelSelector.tsx", - "contentHash": "0ac9e77492cb96d29280be23016969ed9831cdf08a32ed0ca0d9225b50b79688", - "functions": [ - { - "name": "ModelSelector", - "params": [ - "{ value, onChange, providers, variant = 'dropdown', onlyAvailable = false, className = '' }" - ], - "exported": false, - "lineCount": 103 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "ChevronDown", - "Key", - "AlertTriangle" - ] - }, - { - "source": "@/hooks/useProviders", - "specifiers": [ - "Provider", - "ProviderModel" - ] - } - ], - "exports": [], - "totalLines": 142, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/overlays/CommandCenter.tsx": { - "filePath": "apps/web/src/components/os/overlays/CommandCenter.tsx", - "contentHash": "8cc9abfff751ddd35033008bf043602504e6782add675e48423840b2c4778da9", - "functions": [ - { - "name": "PermissionPrompt", - "params": [ - "{\r\n result,\r\n onConfirm,\r\n onCancel,\r\n busy,\r\n}" - ], - "exported": false, - "lineCount": 52 - }, - { - "name": "ResultRow", - "params": [ - "{ result, onSelect }" - ], - "exported": false, - "lineCount": 33 - }, - { - "name": "groupHeading", - "params": [ - "label", - "pinned" - ], - "exported": false, - "lineCount": 5 - }, - { - "name": "CatalogRow", - "params": [ - "{ cmd, onSelect }" - ], - "exported": false, - "lineCount": 21 - }, - { - "name": "groupByCategory", - "params": [ - "results" - ], - "returnType": "Array<{ category: CommandCategory; items: CommandResult[] }>", - "exported": false, - "lineCount": 11 - }, - { - "name": "CommandCenter", - "params": [ - "{ open, onClose, onNavigate, onExecute, workspaceId, catalog, onCatalogSelect }" - ], - "exported": false, - "lineCount": 362 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect", - "useRef", - "useMemo", - "useCallback" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Search", - "Rocket", - "Plus", - "Play", - "Compass", - "Puzzle", - "Loader2", - "Sparkles", - "Brain", - "MessageSquare", - "Package", - "Plug", - "Server", - "Bot", - "Workflow", - "FileText", - "UserCircle", - "Terminal", - "AlertTriangle", - "CheckCircle2", - "History", - "Lightbulb", - "CornerDownLeft" - ] - }, - { - "source": "cmdk", - "specifiers": [ - "CommandPrimitive" - ] - }, - { - "source": "@/components/ui/command", - "specifiers": [ - "CommandMenu", - "CommandList", - "CommandEmpty", - "CommandGroup", - "CommandItem" - ] - }, - { - "source": "@/components/ui/dialog", - "specifiers": [ - "Dialog", - "DialogContent", - "DialogTitle" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/lib/fuzzy-match", - "specifiers": [ - "fuzzyMatch" - ] - }, - { - "source": "@/lib/platform", - "specifiers": [ - "cmdKLabel" - ] - }, - { - "source": "@/hooks/use-toast", - "specifiers": [ - "useToast" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "CommandCategory", - "CommandResultType", - "CommandResult" - ] - }, - { - "source": "@/lib/command-catalog", - "specifiers": [ - "CatalogCommand", - "CatalogGroup" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "Command" - ] - } - ], - "exports": [], - "totalLines": 609, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/overlays/ContextRail.tsx": { - "filePath": "apps/web/src/components/os/overlays/ContextRail.tsx", - "contentHash": "3bccf32ed3bf9e06f7b1ec35a2956b04695ccc3c82df737d33eb256930f5c546", - "functions": [ - { - "name": "ContextRail", - "params": [ - "{ target, onClose }" - ], - "exported": false, - "lineCount": 108 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "X", - "Brain", - "Loader2", - "ChevronRight", - "FileText", - "Zap", - "Link2" - ] - }, - { - "source": "framer-motion", - "specifiers": [ - "motion", - "AnimatePresence" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/lib/context-rail-fetch", - "specifiers": [ - "fetchContextRailItems", - "FetchTarget", - "ContextRailItem" - ] - } - ], - "exports": [], - "totalLines": 142, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/overlays/CreateWorkspaceDialog.tsx": { - "filePath": "apps/web/src/components/os/overlays/CreateWorkspaceDialog.tsx", - "contentHash": "15212fe12b4d085ee22d81ce10248d17ada7621aed669bb0dec9dd9a2369c911", - "functions": [ - { - "name": "pickFolderNative", - "params": [], - "returnType": "Promise", - "exported": false, - "lineCount": 9 - }, - { - "name": "defaultVirtualPath", - "params": [ - "workspaceName" - ], - "returnType": "string", - "exported": false, - "lineCount": 4 - }, - { - "name": "Tooltip", - "params": [ - "{ text, children }" - ], - "exported": false, - "lineCount": 21 - }, - { - "name": "ChipPicker", - "params": [ - "{ options, selected, onChange, label }" - ], - "exported": false, - "lineCount": 36 - }, - { - "name": "FolderPickerModal", - "params": [ - "{ open, storageType, currentPath, onSelect, onClose }" - ], - "exported": false, - "lineCount": 149 - }, - { - "name": "TemplateCreatorModal", - "params": [ - "{ open, onClose, onCreated, availableConnectors, editingTemplate, initialData }" - ], - "exported": false, - "lineCount": 265 - }, - { - "name": "CreateWorkspaceDialog", - "params": [ - "{ open, onClose, onCreate }" - ], - "exported": false, - "lineCount": 524 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useCallback", - "useEffect", - "useRef" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "X", - "Plus", - "Users", - "Cloud", - "HardDrive", - "Server", - "FolderOpen", - "Folder", - "FolderPlus", - "ChevronRight", - "Home", - "Check", - "Loader2", - "LayoutTemplate", - "Sparkles", - "Info", - "Wand2", - "Target", - "Microscope", - "Code", - "Megaphone", - "Rocket", - "Scale", - "Building", - "FileText", - "Laptop", - "PenLine", - "BarChart3", - "ClipboardList", - "Mail", - "Plug", - "Terminal", - "Pencil", - "Trash2", - "Copy", - "Filter", - "Search" - ] - }, - { - "source": "@/components/ui/avatar", - "specifiers": [ - "Avatar", - "AvatarImage", - "AvatarFallback" - ] - }, - { - "source": "@/components/ui/input", - "specifiers": [ - "Input" - ] - }, - { - "source": "@/components/ui/hint-tooltip", - "specifiers": [ - "HintTooltip" - ] - }, - { - "source": "@/lib/personas", - "specifiers": [ - "PERSONAS" - ] - }, - { - "source": "framer-motion", - "specifiers": [ - "motion", - "AnimatePresence", - "useDragControls" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/hooks/useFeatureGate", - "specifiers": [ - "useFeatureGate" - ] - }, - { - "source": "@/hooks/useWorkspaces", - "specifiers": [ - "useWorkspaces" - ] - }, - { - "source": "@/components/os/LockedFeature", - "specifiers": [ - "LockedFeature" - ] - }, - { - "source": "@/lib/browse-breadcrumbs", - "specifiers": [ - "buildBreadcrumbs" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "StorageType", - "WorkspaceTemplate", - "TemplateCategory" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "ConnectorDefinition" - ] - }, - { - "source": "@/lib/workspace-groups", - "specifiers": [ - "STANDARD_GROUPS" - ] - } - ], - "exports": [], - "totalLines": 1151, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/overlays/EraseDataDialog.tsx": { - "filePath": "apps/web/src/components/os/overlays/EraseDataDialog.tsx", - "contentHash": "e3ceb79bd44387212905c712a413e35a92e9562c460e61427ff1097be6a93cb1", - "functions": [ - { - "name": "formatBytes", - "params": [ - "n" - ], - "returnType": "string", - "exported": false, - "lineCount": 6 - }, - { - "name": "EraseDataDialog", - "params": [ - "{ open, onClose }" - ], - "exported": true, - "lineCount": 194 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect" - ] - }, - { - "source": "framer-motion", - "specifiers": [ - "motion", - "AnimatePresence" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "AlertTriangle", - "X", - "Trash2", - "CheckCircle2", - "Loader2" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - } - ], - "exports": [ - "EraseDataDialog" - ], - "totalLines": 243, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/overlays/KeyboardShortcutsHelp.tsx": { - "filePath": "apps/web/src/components/os/overlays/KeyboardShortcutsHelp.tsx", - "contentHash": "7564c5822f352347f44989fea9775c043db97fbd35bfefa92557bc8b3e5b4be6", - "functions": [ - { - "name": "KeyboardShortcutsHelp", - "params": [ - "{ open, onClose }" - ], - "exported": false, - "lineCount": 56 - } - ], - "classes": [], - "imports": [ - { - "source": "framer-motion", - "specifiers": [ - "motion", - "AnimatePresence" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Keyboard", - "X" - ] - } - ], - "exports": [], - "totalLines": 92, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/overlays/LoginBriefing.tsx": { - "filePath": "apps/web/src/components/os/overlays/LoginBriefing.tsx", - "contentHash": "744c63f2724e74eddf5c9e228ebe2d629fe937d08cddf135073c9e59a6b0eca1", - "functions": [ - { - "name": "truncateHighlight", - "params": [ - "content" - ], - "returnType": "string", - "exported": false, - "lineCount": 9 - }, - { - "name": "isTestWorkspace", - "params": [ - "name" - ], - "returnType": "boolean", - "exported": false, - "lineCount": 2 - }, - { - "name": "LoginBriefing", - "params": [ - "{ onDismiss, onOpenWorkspace }" - ], - "exported": false, - "lineCount": 340 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect", - "useRef" - ] - }, - { - "source": "framer-motion", - "specifiers": [ - "motion", - "AnimatePresence" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Brain", - "Clock", - "MessageSquare", - "Sparkles", - "ChevronRight", - "Loader2", - "X", - "AlertTriangle", - "Lightbulb" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/providers/ServiceProvider", - "specifiers": [ - "useService" - ] - }, - { - "source": "@/hooks/useRevalidateOnError", - "specifiers": [ - "useRevalidateOnError" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "Workspace" - ] - }, - { - "source": "@/lib/briefing-highlights", - "specifiers": [ - "selectBriefingHighlights" - ] - }, - { - "source": "@/components/ui/hint-tooltip", - "specifiers": [ - "HintTooltip" - ] - }, - { - "source": "@/lib/login-briefing-brag", - "specifiers": [ - "computeBragSummary", - "formatBragLine", - "bragTimeAgo", - "BragSummary" - ] - } - ], - "exports": [], - "totalLines": 425, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/overlays/NotificationInbox.tsx": { - "filePath": "apps/web/src/components/os/overlays/NotificationInbox.tsx", - "contentHash": "34fe1a811307f466c480427bbf1907c9fb806d8ef78f104ab4b6e1d4929bdc4f", - "functions": [ - { - "name": "NotificationInbox", - "params": [ - "{ open, onClose, notifications, onMarkRead, onMarkAllRead }" - ], - "exported": false, - "lineCount": 72 - } - ], - "classes": [], - "imports": [ - { - "source": "lucide-react", - "specifiers": [ - "Bell", - "Check", - "CheckCheck", - "X", - "CheckCircle2" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "Notification" - ] - }, - { - "source": "framer-motion", - "specifiers": [ - "motion", - "AnimatePresence" - ] - }, - { - "source": "@/components/ui/hint-tooltip", - "specifiers": [ - "HintTooltip" - ] - } - ], - "exports": [], - "totalLines": 92, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/overlays/onboarding/constants.ts": { - "filePath": "apps/web/src/components/os/overlays/onboarding/constants.ts", - "contentHash": "6102078ab5a3272293e218edb0e17f687ae814c0e243756d97c06c04640c09eb", - "functions": [ - { - "name": "getPersonasForTemplate", - "params": [ - "templateId" - ], - "returnType": "readonly OnboardingPersona[]", - "exported": true, - "lineCount": 12 - } - ], - "classes": [], - "imports": [ - { - "source": "lucide-react", - "specifiers": [ - "Brain", - "Layers", - "Wrench", - "Target", - "Microscope", - "Laptop", - "Megaphone", - "Rocket", - "Scale", - "Building", - "Plus", - "PenLine", - "BarChart3", - "Code", - "ClipboardList", - "Mail", - "Hexagon", - "Zap", - "Crown", - "HeadphonesIcon", - "Settings", - "Database", - "Users", - "Palette", - "DollarSign", - "Briefcase" - ] - }, - { - "source": "./types", - "specifiers": [ - "OnboardingTemplate", - "OnboardingPersona", - "ValueProp", - "TierOption" - ] - }, - { - "source": "@/lib/dock-tiers", - "specifiers": [ - "UserTier" - ] - } - ], - "exports": [ - "TEMPLATES", - "TEMPLATE_PERSONA", - "CURATED_ONBOARDING_TEMPLATE_IDS", - "CURATED_ONBOARDING_TEMPLATES", - "ALL_ONBOARDING_PERSONAS", - "getPersonasForTemplate", - "TIER_OPTIONS", - "VALUE_PROPS", - "fadeSlide" - ], - "totalLines": 139, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/overlays/onboarding/curated-templates.test.ts": { - "filePath": "apps/web/src/components/os/overlays/onboarding/curated-templates.test.ts", - "contentHash": "a042878aa62499ebf684723bf834dde6fdfe059ac678b22d2ff37c02be296a35", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "./constants", - "specifiers": [ - "CURATED_ONBOARDING_TEMPLATES", - "CURATED_ONBOARDING_TEMPLATE_IDS", - "TEMPLATE_PERSONA" - ] - } - ], - "exports": [], - "totalLines": 27, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/overlays/onboarding/FirstTaskStep.test.tsx": { - "filePath": "apps/web/src/components/os/overlays/onboarding/FirstTaskStep.test.tsx", - "contentHash": "3a56d8ca5fa79350e38ae35b8edb4a91b3b047233ff703795c6f7fe7dc3abeff", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "render", - "screen", - "fireEvent", - "cleanup" - ] - }, - { - "source": "./FirstTaskStep", - "specifiers": [ - "FirstTaskStep" - ] - } - ], - "exports": [], - "totalLines": 41, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/overlays/onboarding/FirstTaskStep.tsx": { - "filePath": "apps/web/src/components/os/overlays/onboarding/FirstTaskStep.tsx", - "contentHash": "db137f73181cbac0a1f46b2512f3332f22b0e0a62812a75c3d862f7569cf59e9", - "functions": [ - { - "name": "FirstTaskStep", - "params": [ - "{ message, onMessageChange, suggestions, onPickSuggestion, onLetsGo, createError }" - ], - "exported": false, - "lineCount": 45 - } - ], - "classes": [], - "imports": [ - { - "source": "framer-motion", - "specifiers": [ - "motion" - ] - }, - { - "source": "./constants", - "specifiers": [ - "fadeSlide" - ] - }, - { - "source": "./types", - "specifiers": [ - "FirstTaskStepProps" - ] - } - ], - "exports": [], - "totalLines": 59, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/overlays/onboarding/ImportStep.tsx": { - "filePath": "apps/web/src/components/os/overlays/onboarding/ImportStep.tsx", - "contentHash": "a197022f8048f91385990e00f41bbce3a03e56ae9bd4ab46bad30fc8e14604de", - "functions": [ - { - "name": "ImportStep", - "params": [ - "{\r\n importSource,\r\n importItems,\r\n importDone,\r\n importing,\r\n onFileImport,\r\n onImportCommit,\r\n claudeCodeDetected,\r\n onClaudeCodeHarvest,\r\n onBack,\r\n onContinue,\r\n}" - ], - "exported": false, - "lineCount": 160 - } - ], - "classes": [], - "imports": [ - { - "source": "framer-motion", - "specifiers": [ - "motion" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Brain", - "Upload", - "Loader2", - "Check", - "Zap", - "ExternalLink", - "Info" - ] - }, - { - "source": "./constants", - "specifiers": [ - "fadeSlide" - ] - }, - { - "source": "@/components/ui/confidence-badge", - "specifiers": [ - "ConfidenceBadge" - ] - }, - { - "source": "@/lib/harvest-kind-map", - "specifiers": [ - "memoryKindLabel" - ] - }, - { - "source": "./types", - "specifiers": [ - "ImportStepProps" - ] - } - ], - "exports": [], - "totalLines": 201, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/overlays/onboarding/index.ts": { - "filePath": "apps/web/src/components/os/overlays/onboarding/index.ts", - "contentHash": "3daca1de00dead299cb0144ef5e4fc509d0ecf45495a9d0ccf92268cf1b75042", - "functions": [], - "classes": [], - "imports": [], - "exports": [ - "WelcomeStep", - "WhoAreYouStep", - "ModelGateStep", - "ImportStep", - "TemplateStep", - "FirstTaskStep", - "WorkspaceCreateStep", - "ReadyStep", - "WelcomeStepProps", - "WhoAreYouStepProps", - "ModelGateStepProps", - "ImportStepProps", - "TemplateStepProps", - "FirstTaskStepProps", - "WorkspaceCreateStepProps", - "ReadyStepProps", - "OnboardingProfileFields", - "OnboardingWorkspaceType" - ], - "totalLines": 22, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/overlays/onboarding/ModelGateStep.test.tsx": { - "filePath": "apps/web/src/components/os/overlays/onboarding/ModelGateStep.test.tsx", - "contentHash": "bf05b7baaf2467963be69c0a544d41b6c17e0ec8f97acd46a220d21b5ef77d30", - "functions": [ - { - "name": "state", - "params": [ - "over" - ], - "exported": false, - "lineCount": 3 - }, - { - "name": "props", - "params": [], - "exported": false, - "lineCount": 1 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "render", - "screen", - "fireEvent", - "cleanup" - ] - }, - { - "source": "./ModelGateStep", - "specifiers": [ - "ModelGateStep" - ] - } - ], - "exports": [], - "totalLines": 61, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/overlays/onboarding/ModelGateStep.tsx": { - "filePath": "apps/web/src/components/os/overlays/onboarding/ModelGateStep.tsx", - "contentHash": "fb083519be786094334e609e947d6de8cb729aebf2234247121f73ec196e2b93", - "functions": [ - { - "name": "ModelGateStep", - "params": [ - "{ onContinue, onBack, onLater }" - ], - "exported": false, - "lineCount": 44 - } - ], - "classes": [], - "imports": [ - { - "source": "framer-motion", - "specifiers": [ - "motion" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Cpu", - "ArrowRight", - "Loader2" - ] - }, - { - "source": "./constants", - "specifiers": [ - "fadeSlide" - ] - }, - { - "source": "@/components/os/model-gate/ModelGate", - "specifiers": [ - "ModelGate" - ] - }, - { - "source": "@/hooks/useHasWorkingModel", - "specifiers": [ - "useHasWorkingModel" - ] - }, - { - "source": "./types", - "specifiers": [ - "ModelGateStepProps" - ] - } - ], - "exports": [], - "totalLines": 64, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/overlays/onboarding/ReadyStep.tsx": { - "filePath": "apps/web/src/components/os/overlays/onboarding/ReadyStep.tsx", - "contentHash": "e2a5ffd8003ffe1c8905f5b5f716c56ad8accff0464035980d274f1f1e64b0e2", - "functions": [ - { - "name": "ReadyStep", - "params": [ - "{ createError, onLetsGo }" - ], - "exported": false, - "lineCount": 37 - } - ], - "classes": [], - "imports": [ - { - "source": "framer-motion", - "specifiers": [ - "motion" - ] - }, - { - "source": "@/assets/waggle-logo.jpeg", - "specifiers": [ - "waggleLogoDark" - ] - }, - { - "source": "@/assets/waggle-logo.png", - "specifiers": [ - "waggleLogoLight" - ] - }, - { - "source": "@/hooks/useIsLightTheme", - "specifiers": [ - "useIsLightTheme" - ] - }, - { - "source": "./constants", - "specifiers": [ - "fadeSlide" - ] - }, - { - "source": "./types", - "specifiers": [ - "ReadyStepProps" - ] - } - ], - "exports": [], - "totalLines": 47, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/overlays/onboarding/TemplateStep.test.tsx": { - "filePath": "apps/web/src/components/os/overlays/onboarding/TemplateStep.test.tsx", - "contentHash": "303c68162b88d964ae3fc091e86eb4574748ac0a4f57a9b7924068eef7684817", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "render", - "screen", - "fireEvent", - "cleanup" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Microscope" - ] - }, - { - "source": "./TemplateStep", - "specifiers": [ - "TemplateStep" - ] - } - ], - "exports": [], - "totalLines": 33, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/overlays/onboarding/TemplateStep.tsx": { - "filePath": "apps/web/src/components/os/overlays/onboarding/TemplateStep.tsx", - "contentHash": "ba91b2cf0e5aef6a807950b70b52aaba1e3a96c5a82c9cab986e6ae0342d632e", - "functions": [ - { - "name": "TemplateStep", - "params": [ - "{ templates, onSelect, onBack, creating, creatingId, createError }" - ], - "exported": false, - "lineCount": 47 - } - ], - "classes": [], - "imports": [ - { - "source": "framer-motion", - "specifiers": [ - "motion" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Loader2" - ] - }, - { - "source": "./constants", - "specifiers": [ - "fadeSlide" - ] - }, - { - "source": "./types", - "specifiers": [ - "TemplateStepProps" - ] - } - ], - "exports": [], - "totalLines": 61, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/overlays/onboarding/types.ts": { - "filePath": "apps/web/src/components/os/overlays/onboarding/types.ts", - "contentHash": "7b650f909640ee371dca3a650fdd0e5f8081e3b137a38cdc9286db1feb5ee3a8", - "functions": [], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "ElementType" - ] - }, - { - "source": "@/lib/dock-tiers", - "specifiers": [ - "UserTier" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "UserProfile", - "ClassifiedHarvestItem" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "WorkspaceType" - ] - } - ], - "exports": [], - "totalLines": 138, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/overlays/onboarding/WelcomeStep.tsx": { - "filePath": "apps/web/src/components/os/overlays/onboarding/WelcomeStep.tsx", - "contentHash": "30d2a8cafeecbf37a676cd485ca363a10d39584c14380c0ae163135f89a45943", - "functions": [ - { - "name": "WelcomeStep", - "params": [ - "{ onClickAnywhere, offline }" - ], - "exported": false, - "lineCount": 65 - } - ], - "classes": [], - "imports": [ - { - "source": "framer-motion", - "specifiers": [ - "motion" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "ShieldCheck", - "Lock" - ] - }, - { - "source": "@/assets/waggle-logo.jpeg", - "specifiers": [ - "waggleLogoDark" - ] - }, - { - "source": "@/assets/waggle-logo.png", - "specifiers": [ - "waggleLogoLight" - ] - }, - { - "source": "@/hooks/useIsLightTheme", - "specifiers": [ - "useIsLightTheme" - ] - }, - { - "source": "./constants", - "specifiers": [ - "fadeSlide" - ] - }, - { - "source": "./types", - "specifiers": [ - "WelcomeStepProps" - ] - } - ], - "exports": [], - "totalLines": 84, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/overlays/onboarding/WhoAreYouStep.tsx": { - "filePath": "apps/web/src/components/os/overlays/onboarding/WhoAreYouStep.tsx", - "contentHash": "bd872fa01cedf2bffc6c9478cf340442043a02ef3a9ad888991a112aa8417523", - "functions": [ - { - "name": "WhoAreYouStep", - "params": [ - "{ profile, onChange, onContinue, onBack, saving }" - ], - "exported": false, - "lineCount": 161 - } - ], - "classes": [], - "imports": [ - { - "source": "framer-motion", - "specifiers": [ - "motion" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "UserRound", - "Loader2" - ] - }, - { - "source": "./constants", - "specifiers": [ - "fadeSlide" - ] - }, - { - "source": "@/lib/onboarding-profile", - "specifiers": [ - "WORK_TYPES", - "TEAM_SIZES", - "GOALS", - "buildProfilePreview" - ] - }, - { - "source": "./types", - "specifiers": [ - "WhoAreYouStepProps" - ] - } - ], - "exports": [], - "totalLines": 184, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/overlays/onboarding/WorkspaceCreateStep.tsx": { - "filePath": "apps/web/src/components/os/overlays/onboarding/WorkspaceCreateStep.tsx", - "contentHash": "6c81823799002633812f7846aa3104cfbe9df3ee2b5a76fd55cbb3f172360ade", - "functions": [ - { - "name": "WorkspaceCreateStep", - "params": [ - "{\r\n workspaceType,\r\n workspaceName,\r\n onSelectType,\r\n onNameChange,\r\n onCreate,\r\n onBack,\r\n creating,\r\n createError,\r\n}" - ], - "exported": false, - "lineCount": 80 - } - ], - "classes": [], - "imports": [ - { - "source": "framer-motion", - "specifiers": [ - "motion" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "FolderPlus", - "Briefcase", - "Users2", - "Microscope", - "User", - "Loader2" - ] - }, - { - "source": "react", - "specifiers": [ - "ElementType" - ] - }, - { - "source": "./constants", - "specifiers": [ - "fadeSlide" - ] - }, - { - "source": "./types", - "specifiers": [ - "WorkspaceCreateStepProps", - "OnboardingWorkspaceType" - ] - } - ], - "exports": [], - "totalLines": 110, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/overlays/OnboardingTooltips.tsx": { - "filePath": "apps/web/src/components/os/overlays/OnboardingTooltips.tsx", - "contentHash": "68edf7980c396e707903bc89bdd912ff9e09f2b9ec8b7c2c8e272edb04f6e174", - "functions": [ - { - "name": "OnboardingTooltips", - "params": [ - "{ templateId, onDismiss, suppressed }" - ], - "exported": false, - "lineCount": 89 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useMemo" - ] - }, - { - "source": "framer-motion", - "specifiers": [ - "motion", - "AnimatePresence" - ] - } - ], - "exports": [], - "totalLines": 148, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/overlays/OnboardingWizard.tsx": { - "filePath": "apps/web/src/components/os/overlays/OnboardingWizard.tsx", - "contentHash": "6e026e8052a42acb0f480c1b26325916daee13e86c0ed58b8780839e0ab8b918", - "functions": [ - { - "name": "trackTelemetry", - "params": [ - "_serverBaseUrl", - "event", - "properties" - ], - "exported": false, - "lineCount": 3 - }, - { - "name": "stepIndex", - "params": [ - "name" - ], - "returnType": "number", - "exported": false, - "lineCount": 1 - }, - { - "name": "OnboardingWizard", - "params": [ - "{ serverBaseUrl, state, onUpdate, onComplete, onDismiss, onFinish }" - ], - "exported": false, - "lineCount": 356 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect", - "useCallback", - "useRef" - ] - }, - { - "source": "framer-motion", - "specifiers": [ - "motion", - "AnimatePresence" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/lib/posthog", - "specifiers": [ - "captureOnboardingComplete" - ] - }, - { - "source": "@/hooks/useOfflineStatus", - "specifiers": [ - "useOfflineStatus" - ] - }, - { - "source": "@/hooks/useOnboarding", - "specifiers": [ - "OnboardingState" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "UserProfile", - "ClassifiedHarvestItem" - ] - }, - { - "source": "./onboarding", - "specifiers": [ - "WelcomeStep", - "WhoAreYouStep", - "ModelGateStep", - "ImportStep", - "TemplateStep", - "FirstTaskStep" - ] - }, - { - "source": "./onboarding", - "specifiers": [ - "OnboardingProfileFields" - ] - }, - { - "source": "./onboarding/constants", - "specifiers": [ - "CURATED_ONBOARDING_TEMPLATES", - "TEMPLATE_PERSONA" - ] - } - ], - "exports": [], - "totalLines": 409, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/overlays/PersonaSwitcher.tsx": { - "filePath": "apps/web/src/components/os/overlays/PersonaSwitcher.tsx", - "contentHash": "2fdcbf762f9f12af52be618f4ac039fe2fb452c667d263c58bad440ac2a30d9e", - "functions": [ - { - "name": "PersonaAgentsList", - "params": [ - "{\r\n personas, currentTemplateId, showAllSpecialists, onToggleShowAll,\r\n allPersonasUnlocked, renderPersonaCard, isLocked,\r\n}" - ], - "exported": false, - "lineCount": 68 - }, - { - "name": "PersonaSwitcher", - "params": [ - "{\r\n open, onClose, currentPersona, currentGroupId, currentTemplateId,\r\n onSelect, onSelectGroup,\r\n}" - ], - "exported": false, - "lineCount": 226 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect", - "useMemo" - ] - }, - { - "source": "@/components/ui/avatar", - "specifiers": [ - "Avatar", - "AvatarImage", - "AvatarFallback" - ] - }, - { - "source": "@/lib/personas", - "specifiers": [ - "PERSONAS" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "framer-motion", - "specifiers": [ - "motion", - "AnimatePresence" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Bot", - "Users", - "Loader2", - "Lock", - "Sparkles", - "ChevronDown", - "Eye" - ] - }, - { - "source": "@/hooks/useFeatureGate", - "specifiers": [ - "useFeatureGate" - ] - }, - { - "source": "@/lib/persona-tier", - "specifiers": [ - "UNIVERSAL_MODE_IDS", - "ALL_SPECIALIST_IDS", - "getSpecialistsForTemplate" - ] - }, - { - "source": "@/lib/persona-tooltip", - "specifiers": [ - "buildPersonaTooltip" - ] - }, - { - "source": "@/components/ui/tooltip", - "specifiers": [ - "Tooltip", - "TooltipContent", - "TooltipTrigger" - ] - } - ], - "exports": [], - "totalLines": 373, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/overlays/SpawnAgentDialog.tsx": { - "filePath": "apps/web/src/components/os/overlays/SpawnAgentDialog.tsx", - "contentHash": "288e02cd2076da733c98b461c983a68200c3cc26432768e332809cc7d4ba547b", - "functions": [ - { - "name": "SpawnAgentDialog", - "params": [ - "{ open, onClose, workspaces, activeWorkspaceId, onWorkspaceCreated, onSpawned }" - ], - "exported": false, - "lineCount": 419 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect", - "useCallback" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Rocket", - "RefreshCw", - "ChevronDown", - "ChevronRight", - "ArrowLeft", - "Zap", - "Key" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/lib/personas", - "specifiers": [ - "PERSONAS" - ] - }, - { - "source": "@/lib/spawn-agent-helpers", - "specifiers": [ - "countProvidersWithKeys", - "selectDefaultModel" - ] - }, - { - "source": "@/hooks/use-toast", - "specifiers": [ - "useToast" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "Workspace", - "ModelPricing" - ] - }, - { - "source": "@/components/ui/dialog", - "specifiers": [ - "Dialog", - "DialogContent", - "DialogHeader", - "DialogTitle", - "DialogDescription", - "DialogFooter" - ] - }, - { - "source": "@/components/ui/button", - "specifiers": [ - "Button" - ] - }, - { - "source": "@/components/ui/input", - "specifiers": [ - "Input" - ] - }, - { - "source": "@/components/ui/textarea", - "specifiers": [ - "Textarea" - ] - }, - { - "source": "@/components/ui/label", - "specifiers": [ - "Label" - ] - }, - { - "source": "@/components/ui/tooltip", - "specifiers": [ - "Tooltip", - "TooltipContent", - "TooltipProvider", - "TooltipTrigger" - ] - } - ], - "exports": [], - "totalLines": 447, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/overlays/TrialExpiredModal.tsx": { - "filePath": "apps/web/src/components/os/overlays/TrialExpiredModal.tsx", - "contentHash": "017c53ea2bf0ffec7b5973b003bb6dca031d62eaf73a493323f951d1409d094b", - "functions": [ - { - "name": "TrialExpiredModal", - "params": [ - "{ open, onDismiss, onUpgrade }" - ], - "exported": true, - "lineCount": 105 - } - ], - "classes": [], - "imports": [ - { - "source": "framer-motion", - "specifiers": [ - "motion", - "AnimatePresence" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Crown", - "Users", - "Check", - "X", - "ArrowRight" - ] - }, - { - "source": "@/hooks/useFocusTrap", - "specifiers": [ - "useFocusTrap" - ] - } - ], - "exports": [ - "TrialExpiredModal" - ], - "totalLines": 132, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/overlays/UpgradeModal.tsx": { - "filePath": "apps/web/src/components/os/overlays/UpgradeModal.tsx", - "contentHash": "3895199468fdcb14c4d94ef7c4b5d96c12f5f89e57ff7d49bf74cc56a62e6477", - "functions": [ - { - "name": "CellValue", - "params": [ - "{ value, isBool }" - ], - "exported": false, - "lineCount": 5 - }, - { - "name": "UpgradeModal", - "params": [ - "{ onStartTrial, onUpgrade }" - ], - "exported": true, - "lineCount": 130 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect", - "useCallback" - ] - }, - { - "source": "framer-motion", - "specifiers": [ - "motion", - "AnimatePresence" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Zap", - "X", - "Check", - "Crown", - "Users" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "TIER_CAPABILITIES" - ] - }, - { - "source": "@/hooks/useFocusTrap", - "specifiers": [ - "useFocusTrap" - ] - } - ], - "exports": [ - "UpgradeModal" - ], - "totalLines": 174, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/overlays/WorkspaceSwitcher.tsx": { - "filePath": "apps/web/src/components/os/overlays/WorkspaceSwitcher.tsx", - "contentHash": "0c3ef1d50a8803237099f9fa0574a3f302c3953b921ec88757742e908b2baf85", - "functions": [ - { - "name": "relativeTime", - "params": [ - "iso" - ], - "returnType": "string | null", - "exported": false, - "lineCount": 13 - }, - { - "name": "WorkspaceRow", - "params": [ - "{ ws, isActive, isDuplicateName, onSelect }" - ], - "exported": false, - "lineCount": 47 - }, - { - "name": "WorkspaceSwitcher", - "params": [ - "{ open, onClose, workspaces, activeWorkspaceId, onSelect, onCreateNew, error, onRetry }" - ], - "exported": false, - "lineCount": 105 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Brain", - "ChevronRight", - "Plus", - "Archive" - ] - }, - { - "source": "@/components/ui/avatar", - "specifiers": [ - "Avatar", - "AvatarImage", - "AvatarFallback" - ] - }, - { - "source": "@/lib/personas", - "specifiers": [ - "getPersonaById" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "Workspace" - ] - }, - { - "source": "framer-motion", - "specifiers": [ - "motion", - "AnimatePresence" - ] - }, - { - "source": "../WorkspaceActionsMenu", - "specifiers": [ - "WorkspaceActionsMenu" - ] - } - ], - "exports": [], - "totalLines": 202, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/settings/CoverageCompassCard.tsx": { - "filePath": "apps/web/src/components/os/settings/CoverageCompassCard.tsx", - "contentHash": "4069846977a4e4d25749d4849c51e80cdffefe3789717ac3f1599829eb8dd679", - "functions": [ - { - "name": "CoverageCompassCard", - "params": [], - "exported": false, - "lineCount": 57 - } - ], - "classes": [], - "imports": [ - { - "source": "lucide-react", - "specifiers": [ - "Check", - "CircleDashed", - "X" - ] - } - ], - "exports": [], - "totalLines": 106, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/settings/TelegramDigestCard.tsx": { - "filePath": "apps/web/src/components/os/settings/TelegramDigestCard.tsx", - "contentHash": "dab12deaddcd8da9f96564ec5af45bbf9464534191b319b18ac74509b8d605da", - "functions": [ - { - "name": "fetchStatus", - "params": [], - "returnType": "Promise", - "exported": false, - "lineCount": 9 - }, - { - "name": "TelegramDigestCard", - "params": [], - "exported": false, - "lineCount": 163 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Send", - "Loader2", - "CheckCircle2", - "AlertCircle", - "Eye", - "EyeOff" - ] - }, - { - "source": "@/components/ui/input", - "specifiers": [ - "Input" - ] - }, - { - "source": "@/hooks/use-toast", - "specifiers": [ - "useToast" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - } - ], - "exports": [], - "totalLines": 198, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/Sidebar.tsx": { - "filePath": "apps/web/src/components/os/Sidebar.tsx", - "contentHash": "8cb80128990805634c9b02cd32bc514f4c8e3ba7badef6b2afe9cf8ed9102939", - "functions": [ - { - "name": "initialOf", - "params": [ - "name", - "fallback" - ], - "returnType": "string", - "exported": false, - "lineCount": 4 - }, - { - "name": "Sidebar", - "params": [ - "{\r\n workspaceName,\r\n spine,\r\n pinned = [],\r\n onOpenWorkspaceSwitcher,\r\n onOpenCommand,\r\n onSpawnAgent,\r\n userName,\r\n tierLabel,\r\n}" - ], - "exported": false, - "lineCount": 139 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "ElementType" - ] - }, - { - "source": "react-router-dom", - "specifiers": [ - "useLocation", - "useNavigate" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "ChevronDown", - "Plus", - "Search" - ] - }, - { - "source": "@/lib/platform", - "specifiers": [ - "cmdKLabel" - ] - } - ], - "exports": [], - "totalLines": 190, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/StatusBar.tsx": { - "filePath": "apps/web/src/components/os/StatusBar.tsx", - "contentHash": "2813e70a15201ad2d2e14d7e86514c223a63a0e6fedb6c22e0625849e2f24efb", - "functions": [ - { - "name": "StatusBar", - "params": [ - "{ workspaceName, focusedWindowLabel, model, tokensUsed, costUsd, offline, unreadNotifications = 0, trialDaysRemaining: trialDays, trialExpired, onSearchClick, onNotificationClick }" - ], - "exported": false, - "lineCount": 148 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "WifiOff", - "Search", - "Bell", - "Brain" - ] - }, - { - "source": "@/assets/waggle-logo.jpeg", - "specifiers": [ - "waggleLogoDark" - ] - }, - { - "source": "@/assets/waggle-logo.png", - "specifiers": [ - "waggleLogoLight" - ] - }, - { - "source": "@/hooks/useIsLightTheme", - "specifiers": [ - "useIsLightTheme" - ] - }, - { - "source": "@/components/ui/hint-tooltip", - "specifiers": [ - "HintTooltip" - ] - }, - { - "source": "@/hooks/useDeveloperMode", - "specifiers": [ - "useDeveloperMode" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - } - ], - "exports": [], - "totalLines": 179, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/warm/ActivityStream.tsx": { - "filePath": "apps/web/src/components/os/warm/ActivityStream.tsx", - "contentHash": "2dbce4fe6efa24381f4a03f0a4aa5d3fa6dc45efbd579a072ce6a4bf08f54bad", - "functions": [ - { - "name": "ActivityStream", - "params": [ - "{\r\n summary,\r\n durationMs,\r\n steps,\r\n defaultOpen = false,\r\n className,\r\n}" - ], - "exported": true, - "lineCount": 50 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "ReactNode" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "ChevronDown", - "Sparkles" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - }, - { - "source": "./DotLive", - "specifiers": [ - "DotLive" - ] - }, - { - "source": "./ProvenanceLine", - "specifiers": [ - "ProvenanceLine" - ] - }, - { - "source": "./tones", - "specifiers": [ - "WarmTone" - ] - } - ], - "exports": [ - "ActivityStream" - ], - "totalLines": 80, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/warm/AskBar.tsx": { - "filePath": "apps/web/src/components/os/warm/AskBar.tsx", - "contentHash": "2406d9799525327d74cbbe2fcbfa336433cb7eeabf7817d91238a83b6c807505", - "functions": [ - { - "name": "AskBar", - "params": [ - "{\r\n placeholder = 'Start something new — “draft the board update from this week’s work”…',\r\n onSubmit,\r\n onPlus,\r\n cmdkHint = true,\r\n className,\r\n}" - ], - "exported": true, - "lineCount": 61 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Plus", - "ArrowUp" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - }, - { - "source": "@/lib/platform", - "specifiers": [ - "cmdKLabel" - ] - } - ], - "exports": [ - "AskBar" - ], - "totalLines": 82, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/warm/ConfidenceRing.tsx": { - "filePath": "apps/web/src/components/os/warm/ConfidenceRing.tsx", - "contentHash": "03323dda701404c25040d1236f5cdec3d36e2ce9b2aa51b69921b740caa5d73a", - "functions": [ - { - "name": "confidenceColor", - "params": [ - "c" - ], - "returnType": "string", - "exported": true, - "lineCount": 5 - }, - { - "name": "ConfidenceRing", - "params": [ - "{ value, className }" - ], - "exported": true, - "lineCount": 21 - } - ], - "classes": [], - "imports": [ - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - } - ], - "exports": [ - "confidenceColor", - "ConfidenceRing" - ], - "totalLines": 51, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/warm/DotLive.tsx": { - "filePath": "apps/web/src/components/os/warm/DotLive.tsx", - "contentHash": "2ca437d8e9c90cf9565cd06b131b0486196ed5b4718358068d82f6b6243df733", - "functions": [ - { - "name": "DotLive", - "params": [ - "{ tone = 'healthy', live = true, size = 8, className }" - ], - "exported": true, - "lineCount": 13 - } - ], - "classes": [], - "imports": [ - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - }, - { - "source": "./tones", - "specifiers": [ - "TONE_COLOR", - "WarmTone" - ] - } - ], - "exports": [ - "DotLive" - ], - "totalLines": 30, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/warm/HexAvatar.tsx": { - "filePath": "apps/web/src/components/os/warm/HexAvatar.tsx", - "contentHash": "f5d7e4d935b2047689abc5355ccfb5f3cc2f21f22e38049ff1ac342a4319ad92", - "functions": [ - { - "name": "firstInitial", - "params": [ - "label" - ], - "returnType": "string", - "exported": false, - "lineCount": 4 - }, - { - "name": "HexAvatar", - "params": [ - "{ label, size = 28, gradient = true, className }" - ], - "exported": true, - "lineCount": 17 - } - ], - "classes": [], - "imports": [ - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - } - ], - "exports": [ - "HexAvatar" - ], - "totalLines": 41, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/warm/HexCheckTile.tsx": { - "filePath": "apps/web/src/components/os/warm/HexCheckTile.tsx", - "contentHash": "07f5cd518f4d31855569d036ba0717ed51238894b943043125a359221c00887d", - "functions": [ - { - "name": "HexCheckTile", - "params": [ - "{ tone = 'healthy', size = 26, className }" - ], - "exported": true, - "lineCount": 12 - } - ], - "classes": [], - "imports": [ - { - "source": "lucide-react", - "specifiers": [ - "Check" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - }, - { - "source": "./tones", - "specifiers": [ - "TONE_COLOR", - "TONE_WASH", - "WarmTone" - ] - } - ], - "exports": [ - "HexCheckTile" - ], - "totalLines": 27, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/warm/IconTile.tsx": { - "filePath": "apps/web/src/components/os/warm/IconTile.tsx", - "contentHash": "e1b20c9809b3cb365321e5f9c662d895012a6e3dc3d72fa959aa98360c16b467", - "functions": [ - { - "name": "IconTile", - "params": [ - "{ icon: Icon, tone = 'honey', size = 38, className }" - ], - "exported": true, - "lineCount": 12 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "ElementType" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - }, - { - "source": "./tones", - "specifiers": [ - "TONE_COLOR", - "TONE_WASH", - "WarmTone" - ] - } - ], - "exports": [ - "IconTile" - ], - "totalLines": 28, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/warm/index.ts": { - "filePath": "apps/web/src/components/os/warm/index.ts", - "contentHash": "a5c6e7c1f32525637f87496ec2a0258782713ee45954861af23ba8bce23c6b9e", - "functions": [], - "classes": [], - "imports": [], - "exports": [ - "HexAvatar", - "SectionLabel", - "DotLive", - "ProvenanceLine", - "RunChip", - "RunChipProps", - "IconTile", - "HexCheckTile", - "StreakChip", - "ModelPill", - "OvernightHero", - "AskBar", - "ActivityStream", - "ActivityStep", - "InlineApprovalCard", - "ConfidenceRing", - "confidenceColor", - "TONE_COLOR", - "TONE_WASH", - "WarmTone" - ], - "totalLines": 22, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/warm/InlineApprovalCard.tsx": { - "filePath": "apps/web/src/components/os/warm/InlineApprovalCard.tsx", - "contentHash": "c5f8e71b1f763e87bf3d4a25246f5a8e97bfd3fd20d2f100d2743dfdebba9818", - "functions": [ - { - "name": "InlineApprovalCard", - "params": [ - "{\r\n request,\r\n title = 'Approve before I leave your machine',\r\n onApprove,\r\n onDecline,\r\n onAlwaysAllow,\r\n approveLabel = 'Approve & continue',\r\n className,\r\n}" - ], - "exported": true, - "lineCount": 49 - } - ], - "classes": [], - "imports": [ - { - "source": "lucide-react", - "specifiers": [ - "AlertTriangle" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - }, - { - "source": "@/components/ui/approval-modal", - "specifiers": [ - "ApprovalRequest" - ] - }, - { - "source": "@/lib/risk-display", - "specifiers": [ - "RISK_LABELS", - "canAlwaysAllow" - ] - } - ], - "exports": [ - "InlineApprovalCard" - ], - "totalLines": 72, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/warm/ModelPill.tsx": { - "filePath": "apps/web/src/components/os/warm/ModelPill.tsx", - "contentHash": "3cfa0898bd47583dbce28218d5edf97281b702287c09f0cacf92044d25a89eb6", - "functions": [ - { - "name": "ModelPill", - "params": [ - "{ mode = 'auto', model, onClick, title, className }" - ], - "exported": true, - "lineCount": 31 - } - ], - "classes": [], - "imports": [ - { - "source": "lucide-react", - "specifiers": [ - "ChevronDown" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - }, - { - "source": "./DotLive", - "specifiers": [ - "DotLive" - ] - } - ], - "exports": [ - "ModelPill" - ], - "totalLines": 49, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/warm/OvernightHero.tsx": { - "filePath": "apps/web/src/components/os/warm/OvernightHero.tsx", - "contentHash": "718421396c39e54cc7333992838d2e35f9bba844637a6e619830cbb421f16696", - "functions": [ - { - "name": "OvernightHero", - "params": [ - "{\r\n eyebrow = 'While you slept',\r\n statement,\r\n runs = [],\r\n emptyText = 'Nothing ran overnight — a calm night for the hive.',\r\n className,\r\n}" - ], - "exported": true, - "lineCount": 38 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "ReactNode" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - }, - { - "source": "./DotLive", - "specifiers": [ - "DotLive" - ] - }, - { - "source": "./RunChip", - "specifiers": [ - "RunChip", - "RunChipProps" - ] - } - ], - "exports": [ - "OvernightHero" - ], - "totalLines": 59, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/warm/ProvenanceLine.tsx": { - "filePath": "apps/web/src/components/os/warm/ProvenanceLine.tsx", - "contentHash": "e234542e0afc1c7b661c2ee659c765e3ff9cc9df3cb10d80bf9d51958673fd3b", - "functions": [ - { - "name": "ProvenanceLine", - "params": [ - "{ source, when, onClick, className }" - ], - "exported": true, - "lineCount": 14 - } - ], - "classes": [], - "imports": [ - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - }, - { - "source": "@/components/ui/evidence-chip", - "specifiers": [ - "EvidenceChip" - ] - } - ], - "exports": [ - "ProvenanceLine" - ], - "totalLines": 33, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/warm/RunChip.tsx": { - "filePath": "apps/web/src/components/os/warm/RunChip.tsx", - "contentHash": "5e6f502aedda8165e3a862f396db36f541e1702342ccfb374e00cb9e65d6d196", - "functions": [ - { - "name": "RunChip", - "params": [ - "{ label, tone = 'healthy', className }" - ], - "exported": true, - "lineCount": 13 - } - ], - "classes": [], - "imports": [ - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - }, - { - "source": "./DotLive", - "specifiers": [ - "DotLive" - ] - }, - { - "source": "./tones", - "specifiers": [ - "WarmTone" - ] - } - ], - "exports": [ - "RunChip" - ], - "totalLines": 28, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/warm/SectionLabel.tsx": { - "filePath": "apps/web/src/components/os/warm/SectionLabel.tsx", - "contentHash": "a6fe7e57894389e4e7b798a366ee8fd054e4318ab89cb609f283197bb175b60d", - "functions": [ - { - "name": "SectionLabel", - "params": [ - "{ children, rule = false, className }" - ], - "exported": true, - "lineCount": 10 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "ReactNode" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - } - ], - "exports": [ - "SectionLabel" - ], - "totalLines": 25, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/warm/StreakChip.tsx": { - "filePath": "apps/web/src/components/os/warm/StreakChip.tsx", - "contentHash": "8c7223992e528f6017d985a58e16bc5e43e50a6cb4ce46e003433e229a84a6dd", - "functions": [ - { - "name": "StreakChip", - "params": [ - "{ days, className }" - ], - "exported": true, - "lineCount": 13 - } - ], - "classes": [], - "imports": [ - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - } - ], - "exports": [ - "StreakChip" - ], - "totalLines": 27, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/warm/tones.ts": { - "filePath": "apps/web/src/components/os/warm/tones.ts", - "contentHash": "8bdb53150a193788c52ea6a90887ca8c6e197aa1f00946007969b671921315d4", - "functions": [], - "classes": [], - "imports": [], - "exports": [ - "TONE_COLOR", - "TONE_WASH" - ], - "totalLines": 37, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/WorkspaceActionsMenu.tsx": { - "filePath": "apps/web/src/components/os/WorkspaceActionsMenu.tsx", - "contentHash": "d22b1595800679474da232ca4b366bae22c280e67a8abb1a123b1f41673586d4", - "functions": [ - { - "name": "downloadMarkdown", - "params": [ - "blob", - "filename" - ], - "exported": false, - "lineCount": 8 - }, - { - "name": "WorkspaceActionsMenu", - "params": [ - "{ workspace, onChanged, buttonClassName }" - ], - "exported": false, - "lineCount": 205 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useRef", - "useState" - ] - }, - { - "source": "react-dom", - "specifiers": [ - "createPortal" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "MoreHorizontal", - "Pencil", - "Archive", - "ArchiveRestore", - "Download", - "Trash2" - ] - }, - { - "source": "./ContextMenu", - "specifiers": [ - "ContextMenu", - "ContextMenuItem" - ] - }, - { - "source": "@/providers/ShellContext", - "specifiers": [ - "useShell" - ] - }, - { - "source": "@/hooks/use-toast", - "specifiers": [ - "useToast" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - } - ], - "exports": [], - "totalLines": 245, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/os/WorkspaceBriefing.tsx": { - "filePath": "apps/web/src/components/os/WorkspaceBriefing.tsx", - "contentHash": "80f6a21bc7b8f0ddee0d1ec4421a8bda4edc4ed02bf9d0efbc172757be82403e", - "functions": [ - { - "name": "WorkspaceBriefing", - "params": [ - "{ workspaceId, personaId, onSendMessage, onPrefill, onSelectSession }" - ], - "exported": false, - "lineCount": 240 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect", - "useMemo" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Brain", - "Clock", - "CheckCircle2", - "AlertTriangle", - "MessageSquare", - "Lightbulb", - "Loader2", - "ChevronRight", - "Sparkles", - "ChevronDown", - "ChevronUp", - "Wrench" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/components/ui/hint-tooltip", - "specifiers": [ - "HintTooltip" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "WorkspaceContext" - ] - }, - { - "source": "@/lib/workspace-briefing-state", - "specifiers": [ - "readWorkspaceBriefingCollapsed", - "writeWorkspaceBriefingCollapsed" - ] - }, - { - "source": "@/lib/skill-recommendations", - "specifiers": [ - "recommendSkills" - ] - }, - { - "source": "@/lib/persona-display", - "specifiers": [ - "formatPersonaName" - ] - } - ], - "exports": [], - "totalLines": 284, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/accordion.tsx": { - "filePath": "apps/web/src/components/ui/accordion.tsx", - "contentHash": "dedb1e79e973f5be7bbe9149c56e6de293e3c831269192084a664cb40eb9ea49", - "functions": [], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "* as React" - ] - }, - { - "source": "@radix-ui/react-accordion", - "specifiers": [ - "* as AccordionPrimitive" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "ChevronDown" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - } - ], - "exports": [ - "Accordion", - "AccordionItem", - "AccordionTrigger", - "AccordionContent" - ], - "totalLines": 53, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/alert-dialog.tsx": { - "filePath": "apps/web/src/components/ui/alert-dialog.tsx", - "contentHash": "26892ecf3644081f8af613b482871f3d1971ff37c0853cdc02a6258ca93a1ea2", - "functions": [ - { - "name": "AlertDialogHeader", - "params": [ - "{ className, ...props }" - ], - "exported": true, - "lineCount": 3 - }, - { - "name": "AlertDialogFooter", - "params": [ - "{ className, ...props }" - ], - "exported": true, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "* as React" - ] - }, - { - "source": "@radix-ui/react-alert-dialog", - "specifiers": [ - "* as AlertDialogPrimitive" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - }, - { - "source": "@/components/ui/button", - "specifiers": [ - "buttonVariants" - ] - } - ], - "exports": [ - "AlertDialog", - "AlertDialogPortal", - "AlertDialogOverlay", - "AlertDialogTrigger", - "AlertDialogContent", - "AlertDialogHeader", - "AlertDialogFooter", - "AlertDialogTitle", - "AlertDialogDescription", - "AlertDialogAction", - "AlertDialogCancel" - ], - "totalLines": 105, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/alert.tsx": { - "filePath": "apps/web/src/components/ui/alert.tsx", - "contentHash": "f6e25204c7dbe2d52bca2d8fa6ba2b770cd92fc6b6182b24b8504cd2cfa14235", - "functions": [], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "* as React" - ] - }, - { - "source": "class-variance-authority", - "specifiers": [ - "cva", - "VariantProps" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - } - ], - "exports": [ - "Alert", - "AlertTitle", - "AlertDescription" - ], - "totalLines": 44, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/approval-modal.tsx": { - "filePath": "apps/web/src/components/ui/approval-modal.tsx", - "contentHash": "e926a727868dc9c771ef7e12e3b013edd567bdc1104c3b1674591ea0e6472355", - "functions": [ - { - "name": "ApprovalModal", - "params": [ - "{ request, approveLabel = 'Approve', busy, onApprove, onCancel }" - ], - "exported": true, - "lineCount": 57 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useRef" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "RiskLevel", - "ApprovalClass", - "TrustSource" - ] - }, - { - "source": "@/lib/risk-display", - "specifiers": [ - "RISK_LABELS", - "RISK_TEXT_CLASSES", - "TRUST_SOURCE_LABELS" - ] - }, - { - "source": "@/components/ui/alert-dialog", - "specifiers": [ - "AlertDialog", - "AlertDialogContent", - "AlertDialogHeader", - "AlertDialogTitle", - "AlertDialogDescription", - "AlertDialogFooter", - "AlertDialogAction", - "AlertDialogCancel" - ] - } - ], - "exports": [ - "ApprovalModal" - ], - "totalLines": 117, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/aspect-ratio.tsx": { - "filePath": "apps/web/src/components/ui/aspect-ratio.tsx", - "contentHash": "67c60b91df6dc9fc729390742b04c02d40c19f51f7a2d4f79110911a061266bb", - "functions": [], - "classes": [], - "imports": [ - { - "source": "@radix-ui/react-aspect-ratio", - "specifiers": [ - "* as AspectRatioPrimitive" - ] - } - ], - "exports": [ - "AspectRatio" - ], - "totalLines": 6, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/avatar.tsx": { - "filePath": "apps/web/src/components/ui/avatar.tsx", - "contentHash": "fb40d976244fd1053055b2c01bf8789aabca8299d2b6383c5d23c15ed06dd961", - "functions": [], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "* as React" - ] - }, - { - "source": "@radix-ui/react-avatar", - "specifiers": [ - "* as AvatarPrimitive" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - } - ], - "exports": [ - "Avatar", - "AvatarImage", - "AvatarFallback" - ], - "totalLines": 39, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/badge.tsx": { - "filePath": "apps/web/src/components/ui/badge.tsx", - "contentHash": "b82f8dfedd3c17c96d5660d4b2b83dec832b1c72631919dd1ff595b62086d7c5", - "functions": [ - { - "name": "Badge", - "params": [ - "{ className, variant, ...props }" - ], - "exported": true, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "* as React" - ] - }, - { - "source": "class-variance-authority", - "specifiers": [ - "cva", - "VariantProps" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - } - ], - "exports": [ - "Badge", - "badgeVariants" - ], - "totalLines": 30, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/breadcrumb.tsx": { - "filePath": "apps/web/src/components/ui/breadcrumb.tsx", - "contentHash": "cdb4909b5375a2b2e3b6613a217b1b357e6fe1bac86a98e0ba9a55ed8a96101d", - "functions": [ - { - "name": "BreadcrumbSeparator", - "params": [ - "{ children, className, ...props }" - ], - "exported": true, - "lineCount": 5 - }, - { - "name": "BreadcrumbEllipsis", - "params": [ - "{ className, ...props }" - ], - "exported": true, - "lineCount": 11 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "* as React" - ] - }, - { - "source": "@radix-ui/react-slot", - "specifiers": [ - "Slot" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "ChevronRight", - "MoreHorizontal" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - } - ], - "exports": [ - "Breadcrumb", - "BreadcrumbList", - "BreadcrumbItem", - "BreadcrumbLink", - "BreadcrumbPage", - "BreadcrumbSeparator", - "BreadcrumbEllipsis" - ], - "totalLines": 91, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/button.tsx": { - "filePath": "apps/web/src/components/ui/button.tsx", - "contentHash": "4db26751eb4c3ef04638436ec125d034a6611cddcbeead3a57775dae9c46a45f", - "functions": [], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "* as React" - ] - }, - { - "source": "@radix-ui/react-slot", - "specifiers": [ - "Slot" - ] - }, - { - "source": "class-variance-authority", - "specifiers": [ - "cva", - "VariantProps" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - } - ], - "exports": [ - "Button", - "buttonVariants" - ], - "totalLines": 48, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/calendar.tsx": { - "filePath": "apps/web/src/components/ui/calendar.tsx", - "contentHash": "72e7b51ae1edc552995e0c755864f25fc30712b477177ac5e4d9bf1dddbd272b", - "functions": [ - { - "name": "Calendar", - "params": [ - "{ className, classNames, showOutsideDays = true, ...props }" - ], - "exported": true, - "lineCount": 48 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "* as React" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "ChevronLeft", - "ChevronRight" - ] - }, - { - "source": "react-day-picker", - "specifiers": [ - "DayPicker" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - }, - { - "source": "@/components/ui/button", - "specifiers": [ - "buttonVariants" - ] - } - ], - "exports": [ - "Calendar" - ], - "totalLines": 61, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/card.tsx": { - "filePath": "apps/web/src/components/ui/card.tsx", - "contentHash": "88e728bd33911310f5e8018409448cef61147c841683bb0ed243bac2e2c96895", - "functions": [], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "* as React" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - } - ], - "exports": [ - "Card", - "CardHeader", - "CardFooter", - "CardTitle", - "CardDescription", - "CardContent" - ], - "totalLines": 44, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/carousel.tsx": { - "filePath": "apps/web/src/components/ui/carousel.tsx", - "contentHash": "b6cc2145ceae0ad822d8c51f25e4df947338249112ea2552acb08c9af69aeff9", - "functions": [ - { - "name": "useCarousel", - "params": [], - "exported": false, - "lineCount": 9 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "* as React" - ] - }, - { - "source": "embla-carousel-react", - "specifiers": [ - "useEmblaCarousel", - "UseEmblaCarouselType" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "ArrowLeft", - "ArrowRight" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - }, - { - "source": "@/components/ui/button", - "specifiers": [ - "Button" - ] - } - ], - "exports": [ - "CarouselApi", - "Carousel", - "CarouselContent", - "CarouselItem", - "CarouselPrevious", - "CarouselNext" - ], - "totalLines": 225, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/chart.tsx": { - "filePath": "apps/web/src/components/ui/chart.tsx", - "contentHash": "01d05066c8c4e1cdcce6525407eb8344433009a6e65bdb350ecee27fed1be532", - "functions": [ - { - "name": "useChart", - "params": [], - "exported": false, - "lineCount": 9 - }, - { - "name": "ChartStyle", - "params": [ - "{ id, config }" - ], - "exported": true, - "lineCount": 28 - }, - { - "name": "getPayloadConfigFromPayload", - "params": [ - "config", - "payload", - "key" - ], - "exported": false, - "lineCount": 24 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "* as React" - ] - }, - { - "source": "recharts", - "specifiers": [ - "* as RechartsPrimitive" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - } - ], - "exports": [ - "ChartContainer", - "ChartTooltip", - "ChartTooltipContent", - "ChartLegend", - "ChartLegendContent", - "ChartStyle" - ], - "totalLines": 304, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/checkbox.tsx": { - "filePath": "apps/web/src/components/ui/checkbox.tsx", - "contentHash": "dbe4c3e16b760ccadcc654e7f69d5ed95621cb88909e83dc7d50015f694f8b8d", - "functions": [], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "* as React" - ] - }, - { - "source": "@radix-ui/react-checkbox", - "specifiers": [ - "* as CheckboxPrimitive" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Check" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - } - ], - "exports": [ - "Checkbox" - ], - "totalLines": 27, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/collapsible.tsx": { - "filePath": "apps/web/src/components/ui/collapsible.tsx", - "contentHash": "f375e9bb056882208fc140c8f65d8878398c891351d369950bf4cd431e4a98e6", - "functions": [], - "classes": [], - "imports": [ - { - "source": "@radix-ui/react-collapsible", - "specifiers": [ - "* as CollapsiblePrimitive" - ] - } - ], - "exports": [ - "Collapsible", - "CollapsibleTrigger", - "CollapsibleContent" - ], - "totalLines": 10, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/command.tsx": { - "filePath": "apps/web/src/components/ui/command.tsx", - "contentHash": "b445c96c8d4315c793e40020cd9f4bf2c95b72579f5afc8eedc99dd39d411b73", - "functions": [ - { - "name": "CommandDialog", - "params": [ - "{ children, ...props }" - ], - "exported": true, - "lineCount": 11 - }, - { - "name": "CommandShortcut", - "params": [ - "{ className, ...props }" - ], - "exported": true, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "* as React" - ] - }, - { - "source": "@radix-ui/react-dialog", - "specifiers": [ - "DialogProps" - ] - }, - { - "source": "cmdk", - "specifiers": [ - "CommandPrimitive" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Search" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - }, - { - "source": "@/components/ui/dialog", - "specifiers": [ - "Dialog", - "DialogContent" - ] - } - ], - "exports": [ - "Command", - "CommandDialog", - "CommandInput", - "CommandList", - "CommandEmpty", - "CommandGroup", - "CommandItem", - "CommandShortcut", - "CommandSeparator" - ], - "totalLines": 133, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/confidence-badge.tsx": { - "filePath": "apps/web/src/components/ui/confidence-badge.tsx", - "contentHash": "3c9645779e24cb366e2b22b6ce871d309e85a6bf08627e82206207f630c27eb8", - "functions": [ - { - "name": "band", - "params": [ - "value" - ], - "returnType": "{ label: string; color: string }", - "exported": false, - "lineCount": 5 - }, - { - "name": "ConfidenceBadge", - "params": [ - "{ value, compact, className }" - ], - "exported": true, - "lineCount": 22 - } - ], - "classes": [], - "imports": [ - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - } - ], - "exports": [ - "ConfidenceBadge" - ], - "totalLines": 44, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/context-menu.tsx": { - "filePath": "apps/web/src/components/ui/context-menu.tsx", - "contentHash": "44641f2907e8b225c250bf2f5df28461400b3a1ce30bcdee113a8e3b662f2c92", - "functions": [ - { - "name": "ContextMenuShortcut", - "params": [ - "{ className, ...props }" - ], - "exported": true, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "* as React" - ] - }, - { - "source": "@radix-ui/react-context-menu", - "specifiers": [ - "* as ContextMenuPrimitive" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Check", - "ChevronRight", - "Circle" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - } - ], - "exports": [ - "ContextMenu", - "ContextMenuTrigger", - "ContextMenuContent", - "ContextMenuItem", - "ContextMenuCheckboxItem", - "ContextMenuRadioItem", - "ContextMenuLabel", - "ContextMenuSeparator", - "ContextMenuShortcut", - "ContextMenuGroup", - "ContextMenuPortal", - "ContextMenuSub", - "ContextMenuSubContent", - "ContextMenuSubTrigger", - "ContextMenuRadioGroup" - ], - "totalLines": 179, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/detail-drawer.tsx": { - "filePath": "apps/web/src/components/ui/detail-drawer.tsx", - "contentHash": "76f3d65fc64be500ff366e9fe296bb6dda5335e4d58ef7e51de04785caddf121", - "functions": [ - { - "name": "DetailDrawer", - "params": [ - "{ open, onOpenChange, title, subtitle, headerExtra, footer, children, className }" - ], - "exported": true, - "lineCount": 17 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "ReactNode" - ] - }, - { - "source": "./sheet", - "specifiers": [ - "Sheet", - "SheetContent", - "SheetHeader", - "SheetTitle", - "SheetDescription", - "SheetFooter" - ] - } - ], - "exports": [ - "DetailDrawer" - ], - "totalLines": 39, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/dialog.tsx": { - "filePath": "apps/web/src/components/ui/dialog.tsx", - "contentHash": "137f3e8fa158010e1b113034d89ef3f808f4eaae4d9555f6c281ae003680befb", - "functions": [ - { - "name": "DialogHeader", - "params": [ - "{ className, ...props }" - ], - "exported": true, - "lineCount": 3 - }, - { - "name": "DialogFooter", - "params": [ - "{ className, ...props }" - ], - "exported": true, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "* as React" - ] - }, - { - "source": "@radix-ui/react-dialog", - "specifiers": [ - "* as DialogPrimitive" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "X" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - } - ], - "exports": [ - "Dialog", - "DialogPortal", - "DialogOverlay", - "DialogClose", - "DialogTrigger", - "DialogContent", - "DialogHeader", - "DialogFooter", - "DialogTitle", - "DialogDescription" - ], - "totalLines": 96, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/drawer.tsx": { - "filePath": "apps/web/src/components/ui/drawer.tsx", - "contentHash": "173e0d771230a244c5899ec6ac8e162e38ac551e00cd43ea50af2dfdf96538e9", - "functions": [ - { - "name": "Drawer", - "params": [ - "{ shouldScaleBackground = true, ...props }" - ], - "exported": true, - "lineCount": 3 - }, - { - "name": "DrawerHeader", - "params": [ - "{ className, ...props }" - ], - "exported": true, - "lineCount": 3 - }, - { - "name": "DrawerFooter", - "params": [ - "{ className, ...props }" - ], - "exported": true, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "* as React" - ] - }, - { - "source": "vaul", - "specifiers": [ - "DrawerPrimitive" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - } - ], - "exports": [ - "Drawer", - "DrawerPortal", - "DrawerOverlay", - "DrawerTrigger", - "DrawerClose", - "DrawerContent", - "DrawerHeader", - "DrawerFooter", - "DrawerTitle", - "DrawerDescription" - ], - "totalLines": 88, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/dropdown-menu.tsx": { - "filePath": "apps/web/src/components/ui/dropdown-menu.tsx", - "contentHash": "3c031a123dbb144a925d2720ec43b5fab495ee0f52ce62dbe7fbfdd17194b729", - "functions": [ - { - "name": "DropdownMenuShortcut", - "params": [ - "{ className, ...props }" - ], - "exported": true, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "* as React" - ] - }, - { - "source": "@radix-ui/react-dropdown-menu", - "specifiers": [ - "* as DropdownMenuPrimitive" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Check", - "ChevronRight", - "Circle" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - } - ], - "exports": [ - "DropdownMenu", - "DropdownMenuTrigger", - "DropdownMenuContent", - "DropdownMenuItem", - "DropdownMenuCheckboxItem", - "DropdownMenuRadioItem", - "DropdownMenuLabel", - "DropdownMenuSeparator", - "DropdownMenuShortcut", - "DropdownMenuGroup", - "DropdownMenuPortal", - "DropdownMenuSub", - "DropdownMenuSubContent", - "DropdownMenuSubTrigger", - "DropdownMenuRadioGroup" - ], - "totalLines": 180, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/evidence-chip.tsx": { - "filePath": "apps/web/src/components/ui/evidence-chip.tsx", - "contentHash": "3925102e96f299d8ffa537903683805b4d75560e3a4066735e32b96bd5ed4631", - "functions": [ - { - "name": "EvidenceChip", - "params": [ - "{ label, title, onClick, className }" - ], - "exported": true, - "lineCount": 16 - } - ], - "classes": [], - "imports": [ - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - } - ], - "exports": [ - "EvidenceChip" - ], - "totalLines": 32, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/evidence-panel.tsx": { - "filePath": "apps/web/src/components/ui/evidence-panel.tsx", - "contentHash": "5a5c2a2a3ae7b3ee0420ab2be61ceef3adaa6a77245a6ab7e773e580caa41ed3", - "functions": [ - { - "name": "EvidencePanel", - "params": [ - "{ source, sourceId, sourceUrl, evidence, className }" - ], - "exported": true, - "lineCount": 28 - } - ], - "classes": [], - "imports": [ - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - }, - { - "source": "./evidence-chip", - "specifiers": [ - "EvidenceChip" - ] - } - ], - "exports": [ - "EvidencePanel" - ], - "totalLines": 46, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/form.tsx": { - "filePath": "apps/web/src/components/ui/form.tsx", - "contentHash": "109f343145aad66795974ecd8f53646c09d02760f66e8bab81e539d12bd41d57", - "functions": [ - { - "name": "FormField", - "params": [ - "{\r\n ...props\r\n}" - ], - "exported": true, - "lineCount": 12 - }, - { - "name": "useFormField", - "params": [], - "exported": true, - "lineCount": 22 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "* as React" - ] - }, - { - "source": "@radix-ui/react-label", - "specifiers": [ - "* as LabelPrimitive" - ] - }, - { - "source": "@radix-ui/react-slot", - "specifiers": [ - "Slot" - ] - }, - { - "source": "react-hook-form", - "specifiers": [ - "Controller", - "ControllerProps", - "FieldPath", - "FieldValues", - "FormProvider", - "useFormContext" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - }, - { - "source": "@/components/ui/label", - "specifiers": [ - "Label" - ] - } - ], - "exports": [ - "useFormField", - "Form", - "FormItem", - "FormLabel", - "FormControl", - "FormDescription", - "FormMessage", - "FormField" - ], - "totalLines": 130, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/hint-tooltip.tsx": { - "filePath": "apps/web/src/components/ui/hint-tooltip.tsx", - "contentHash": "4d227fd7cb314232cdc4408888e6b66bb9f0f21eb0559822dccc042a790485bc", - "functions": [ - { - "name": "HintTooltip", - "params": [ - "{\r\n content,\r\n children,\r\n side = 'top',\r\n align = 'center',\r\n delay = 200,\r\n className,\r\n}" - ], - "exported": true, - "lineCount": 18 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "* as React" - ] - }, - { - "source": "@/components/ui/tooltip", - "specifiers": [ - "Tooltip", - "TooltipContent", - "TooltipTrigger" - ] - } - ], - "exports": [ - "HintTooltip" - ], - "totalLines": 53, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/hover-card.tsx": { - "filePath": "apps/web/src/components/ui/hover-card.tsx", - "contentHash": "643dc4bb95e37a4c8244c9b00f6042ad52ad8deeb44eb212c7e6aadce0662350", - "functions": [], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "* as React" - ] - }, - { - "source": "@radix-ui/react-hover-card", - "specifiers": [ - "* as HoverCardPrimitive" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - } - ], - "exports": [ - "HoverCard", - "HoverCardTrigger", - "HoverCardContent" - ], - "totalLines": 28, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/input-otp.tsx": { - "filePath": "apps/web/src/components/ui/input-otp.tsx", - "contentHash": "832723e92321ae391222df9c83d60c405f15ec54ad61b8c954b14b4b74243d5a", - "functions": [], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "* as React" - ] - }, - { - "source": "input-otp", - "specifiers": [ - "OTPInput", - "OTPInputContext" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Dot" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - } - ], - "exports": [ - "InputOTP", - "InputOTPGroup", - "InputOTPSlot", - "InputOTPSeparator" - ], - "totalLines": 62, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/input.tsx": { - "filePath": "apps/web/src/components/ui/input.tsx", - "contentHash": "3b09ee25c1c65e8890236eb3df0bb7b664f21ca694481815b955cbe6fdf25b22", - "functions": [], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "* as React" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - } - ], - "exports": [ - "Input" - ], - "totalLines": 23, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/label.tsx": { - "filePath": "apps/web/src/components/ui/label.tsx", - "contentHash": "9365711e408fc8add0e7a7fe4ddf513ee346b98a54aa1de131f34a9afedc753d", - "functions": [], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "* as React" - ] - }, - { - "source": "@radix-ui/react-label", - "specifiers": [ - "* as LabelPrimitive" - ] - }, - { - "source": "class-variance-authority", - "specifiers": [ - "cva", - "VariantProps" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - } - ], - "exports": [ - "Label" - ], - "totalLines": 18, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/menubar.tsx": { - "filePath": "apps/web/src/components/ui/menubar.tsx", - "contentHash": "1e9b2239e995d7a1fe6dfea7cf4ef571658eb99c8b744f540853350d1cbb1b7f", - "functions": [ - { - "name": "MenubarShortcut", - "params": [ - "{ className, ...props }" - ], - "exported": true, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "* as React" - ] - }, - { - "source": "@radix-ui/react-menubar", - "specifiers": [ - "* as MenubarPrimitive" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Check", - "ChevronRight", - "Circle" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - } - ], - "exports": [ - "Menubar", - "MenubarMenu", - "MenubarTrigger", - "MenubarContent", - "MenubarItem", - "MenubarSeparator", - "MenubarLabel", - "MenubarCheckboxItem", - "MenubarRadioGroup", - "MenubarRadioItem", - "MenubarPortal", - "MenubarSubContent", - "MenubarSubTrigger", - "MenubarGroup", - "MenubarSub", - "MenubarShortcut" - ], - "totalLines": 208, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/navigation-menu.tsx": { - "filePath": "apps/web/src/components/ui/navigation-menu.tsx", - "contentHash": "4e3cb2bf59e67f930f395c94cabfc63c03c4d6b0d86dc5735fa666852f8022cd", - "functions": [], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "* as React" - ] - }, - { - "source": "@radix-ui/react-navigation-menu", - "specifiers": [ - "* as NavigationMenuPrimitive" - ] - }, - { - "source": "class-variance-authority", - "specifiers": [ - "cva" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "ChevronDown" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - } - ], - "exports": [ - "navigationMenuTriggerStyle", - "NavigationMenu", - "NavigationMenuList", - "NavigationMenuItem", - "NavigationMenuContent", - "NavigationMenuTrigger", - "NavigationMenuLink", - "NavigationMenuIndicator", - "NavigationMenuViewport" - ], - "totalLines": 121, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/pagination.tsx": { - "filePath": "apps/web/src/components/ui/pagination.tsx", - "contentHash": "8fa329509f89ebfce9cb4fdb5fd57e7bc595724831485d9c24dfa6a755e17a66", - "functions": [ - { - "name": "Pagination", - "params": [ - "{ className, ...props }" - ], - "exported": true, - "lineCount": 8 - }, - { - "name": "PaginationLink", - "params": [ - "{ className, isActive, size = \"icon\", ...props }" - ], - "exported": true, - "lineCount": 13 - }, - { - "name": "PaginationPrevious", - "params": [ - "{ className, ...props }" - ], - "exported": true, - "lineCount": 6 - }, - { - "name": "PaginationNext", - "params": [ - "{ className, ...props }" - ], - "exported": true, - "lineCount": 6 - }, - { - "name": "PaginationEllipsis", - "params": [ - "{ className, ...props }" - ], - "exported": true, - "lineCount": 6 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "* as React" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "ChevronLeft", - "ChevronRight", - "MoreHorizontal" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - }, - { - "source": "@/components/ui/button", - "specifiers": [ - "ButtonProps", - "buttonVariants" - ] - } - ], - "exports": [ - "Pagination", - "PaginationContent", - "PaginationEllipsis", - "PaginationItem", - "PaginationLink", - "PaginationNext", - "PaginationPrevious" - ], - "totalLines": 82, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/popover.tsx": { - "filePath": "apps/web/src/components/ui/popover.tsx", - "contentHash": "3c3c138c4ca584e2449599fa87467cf96085fe6518d03645b3adfc83f118202b", - "functions": [], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "* as React" - ] - }, - { - "source": "@radix-ui/react-popover", - "specifiers": [ - "* as PopoverPrimitive" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - } - ], - "exports": [ - "Popover", - "PopoverTrigger", - "PopoverContent" - ], - "totalLines": 30, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/progress.tsx": { - "filePath": "apps/web/src/components/ui/progress.tsx", - "contentHash": "aa219168fea49b768544e7da6d6b6776d97df6f499fefd69e9cca69e80e38d61", - "functions": [], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "* as React" - ] - }, - { - "source": "@radix-ui/react-progress", - "specifiers": [ - "* as ProgressPrimitive" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - } - ], - "exports": [ - "Progress" - ], - "totalLines": 24, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/radio-group.tsx": { - "filePath": "apps/web/src/components/ui/radio-group.tsx", - "contentHash": "e7bcb8238a536581930a50e37912b11003a4e5f9b2e0a5e17aeffc024edd1394", - "functions": [], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "* as React" - ] - }, - { - "source": "@radix-ui/react-radio-group", - "specifiers": [ - "* as RadioGroupPrimitive" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Circle" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - } - ], - "exports": [ - "RadioGroup", - "RadioGroupItem" - ], - "totalLines": 37, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/resizable.tsx": { - "filePath": "apps/web/src/components/ui/resizable.tsx", - "contentHash": "649c0537bd8f0784f11a5e7666284ad42a0665a0525b93e69f0287c7bf1f000d", - "functions": [ - { - "name": "ResizablePanelGroup", - "params": [ - "{ className, ...props }" - ], - "exported": true, - "lineCount": 6 - }, - { - "name": "ResizableHandle", - "params": [ - "{\r\n withHandle,\r\n className,\r\n ...props\r\n}" - ], - "exported": true, - "lineCount": 21 - } - ], - "classes": [], - "imports": [ - { - "source": "lucide-react", - "specifiers": [ - "GripVertical" - ] - }, - { - "source": "react-resizable-panels", - "specifiers": [ - "* as ResizablePrimitive" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - } - ], - "exports": [ - "ResizablePanelGroup", - "ResizablePanel", - "ResizableHandle" - ], - "totalLines": 38, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/scroll-area.tsx": { - "filePath": "apps/web/src/components/ui/scroll-area.tsx", - "contentHash": "3d5021162483838dab258477d4752e6194428424fc74d75a30efa30d83200b59", - "functions": [], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "* as React" - ] - }, - { - "source": "@radix-ui/react-scroll-area", - "specifiers": [ - "* as ScrollAreaPrimitive" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - } - ], - "exports": [ - "ScrollArea", - "ScrollBar" - ], - "totalLines": 39, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/select.tsx": { - "filePath": "apps/web/src/components/ui/select.tsx", - "contentHash": "37eaf6e792144f80187df0e3a6314246b2bd3c61fa401a78bf6c3fdd49d7a210", - "functions": [], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "* as React" - ] - }, - { - "source": "@radix-ui/react-select", - "specifiers": [ - "* as SelectPrimitive" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Check", - "ChevronDown", - "ChevronUp" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - } - ], - "exports": [ - "Select", - "SelectGroup", - "SelectValue", - "SelectTrigger", - "SelectContent", - "SelectLabel", - "SelectItem", - "SelectSeparator", - "SelectScrollUpButton", - "SelectScrollDownButton" - ], - "totalLines": 144, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/separator.tsx": { - "filePath": "apps/web/src/components/ui/separator.tsx", - "contentHash": "8ec59e1c43ca286a97e5ced3a3473352dbdaf4f0b1cade910c95dfdf251ae209", - "functions": [], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "* as React" - ] - }, - { - "source": "@radix-ui/react-separator", - "specifiers": [ - "* as SeparatorPrimitive" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - } - ], - "exports": [ - "Separator" - ], - "totalLines": 21, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/sheet.tsx": { - "filePath": "apps/web/src/components/ui/sheet.tsx", - "contentHash": "3ce2628215cc3742c53baa6d5a0c4ca39ef63db33027cf57b5b159949cebefda", - "functions": [ - { - "name": "SheetHeader", - "params": [ - "{ className, ...props }" - ], - "exported": true, - "lineCount": 3 - }, - { - "name": "SheetFooter", - "params": [ - "{ className, ...props }" - ], - "exported": true, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "@radix-ui/react-dialog", - "specifiers": [ - "* as SheetPrimitive" - ] - }, - { - "source": "class-variance-authority", - "specifiers": [ - "cva", - "VariantProps" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "X" - ] - }, - { - "source": "react", - "specifiers": [ - "* as React" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - } - ], - "exports": [ - "Sheet", - "SheetClose", - "SheetContent", - "SheetDescription", - "SheetFooter", - "SheetHeader", - "SheetOverlay", - "SheetPortal", - "SheetTitle", - "SheetTrigger" - ], - "totalLines": 108, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/sidebar.tsx": { - "filePath": "apps/web/src/components/ui/sidebar.tsx", - "contentHash": "4d898b00c646352cf4ac4241a288d36d72833fdda1be588578c2109e140a4d43", - "functions": [ - { - "name": "useSidebar", - "params": [], - "exported": true, - "lineCount": 8 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "* as React" - ] - }, - { - "source": "@radix-ui/react-slot", - "specifiers": [ - "Slot" - ] - }, - { - "source": "class-variance-authority", - "specifiers": [ - "VariantProps", - "cva" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "PanelLeft" - ] - }, - { - "source": "@/hooks/use-mobile", - "specifiers": [ - "useIsMobile" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - }, - { - "source": "@/components/ui/button", - "specifiers": [ - "Button" - ] - }, - { - "source": "@/components/ui/input", - "specifiers": [ - "Input" - ] - }, - { - "source": "@/components/ui/separator", - "specifiers": [ - "Separator" - ] - }, - { - "source": "@/components/ui/sheet", - "specifiers": [ - "Sheet", - "SheetContent" - ] - }, - { - "source": "@/components/ui/skeleton", - "specifiers": [ - "Skeleton" - ] - }, - { - "source": "@/components/ui/tooltip", - "specifiers": [ - "Tooltip", - "TooltipContent", - "TooltipProvider", - "TooltipTrigger" - ] - } - ], - "exports": [ - "Sidebar", - "SidebarContent", - "SidebarFooter", - "SidebarGroup", - "SidebarGroupAction", - "SidebarGroupContent", - "SidebarGroupLabel", - "SidebarHeader", - "SidebarInput", - "SidebarInset", - "SidebarMenu", - "SidebarMenuAction", - "SidebarMenuBadge", - "SidebarMenuButton", - "SidebarMenuItem", - "SidebarMenuSkeleton", - "SidebarMenuSub", - "SidebarMenuSubButton", - "SidebarMenuSubItem", - "SidebarProvider", - "SidebarRail", - "SidebarSeparator", - "SidebarTrigger", - "useSidebar" - ], - "totalLines": 638, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/skeleton.tsx": { - "filePath": "apps/web/src/components/ui/skeleton.tsx", - "contentHash": "1911c26c08ed186e51ef65279bff95eae5f3bf6d237bca0018b10f1e70ba6d7b", - "functions": [ - { - "name": "Skeleton", - "params": [ - "{ className, ...props }" - ], - "exported": true, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - } - ], - "exports": [ - "Skeleton" - ], - "totalLines": 8, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/slider.tsx": { - "filePath": "apps/web/src/components/ui/slider.tsx", - "contentHash": "527bb9cfea006f3b70eecbdd40c1ac2ff1b7e687014b4112863bccabde3be735", - "functions": [], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "* as React" - ] - }, - { - "source": "@radix-ui/react-slider", - "specifiers": [ - "* as SliderPrimitive" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - } - ], - "exports": [ - "Slider" - ], - "totalLines": 24, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/sonner.tsx": { - "filePath": "apps/web/src/components/ui/sonner.tsx", - "contentHash": "b945ad2be234fb2971bebb4bb41608f203dc40e1e8e4586827b00a601826f711", - "functions": [ - { - "name": "Toaster", - "params": [ - "{ ...props }" - ], - "exported": true, - "lineCount": 20 - } - ], - "classes": [], - "imports": [ - { - "source": "next-themes", - "specifiers": [ - "useTheme" - ] - }, - { - "source": "sonner", - "specifiers": [ - "Sonner", - "toast" - ] - } - ], - "exports": [ - "Toaster", - "toast" - ], - "totalLines": 28, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/status-badge.tsx": { - "filePath": "apps/web/src/components/ui/status-badge.tsx", - "contentHash": "b0c9bbaf4cb7a27e75ffd776dc55db651c4a88cf89988da9b08b280a6b5e10c5", - "functions": [ - { - "name": "StatusBadge", - "params": [ - "{ tone, label, icon, className }" - ], - "exported": true, - "lineCount": 27 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "ReactNode" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - } - ], - "exports": [ - "StatusBadge" - ], - "totalLines": 58, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/stepper.tsx": { - "filePath": "apps/web/src/components/ui/stepper.tsx", - "contentHash": "bef0f44db145d85ca16a0be1aecbc3df448aa63c11ea77a17f5d72a8dd6b97c8", - "functions": [ - { - "name": "BuilderStepper", - "params": [ - "{\r\n title, subtitle, steps, current, onNavigate, onCancel, onFinish,\r\n finishLabel, busy, footerExtra, testId, children,\r\n}" - ], - "exported": true, - "lineCount": 118 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useEffect", - "useState", - "ReactNode" - ] - }, - { - "source": "react-dom", - "specifiers": [ - "createPortal" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "X", - "ChevronLeft", - "ChevronRight", - "Loader2", - "Check" - ] - }, - { - "source": "@/hooks/useFocusTrap", - "specifiers": [ - "useFocusTrap" - ] - } - ], - "exports": [ - "BuilderStepper" - ], - "totalLines": 171, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/switch.tsx": { - "filePath": "apps/web/src/components/ui/switch.tsx", - "contentHash": "82d20b0bbe0880e62ab6471e3ba5f1f5a5f8337e1a5420420380314a653cfea7", - "functions": [], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "* as React" - ] - }, - { - "source": "@radix-ui/react-switch", - "specifiers": [ - "* as SwitchPrimitives" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - } - ], - "exports": [ - "Switch" - ], - "totalLines": 28, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/table.tsx": { - "filePath": "apps/web/src/components/ui/table.tsx", - "contentHash": "5cee937c372bce9af767f5d87e57c3220694d0c29b682bb6f1c834c4fff888ec", - "functions": [], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "* as React" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - } - ], - "exports": [ - "Table", - "TableHeader", - "TableBody", - "TableFooter", - "TableHead", - "TableRow", - "TableCell", - "TableCaption" - ], - "totalLines": 73, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/tabs.tsx": { - "filePath": "apps/web/src/components/ui/tabs.tsx", - "contentHash": "ea49795ab5cc253c7d2ab1138f27cb7807b19e254c5e661141cde7aa8c4187d4", - "functions": [], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "* as React" - ] - }, - { - "source": "@radix-ui/react-tabs", - "specifiers": [ - "* as TabsPrimitive" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - } - ], - "exports": [ - "Tabs", - "TabsList", - "TabsTrigger", - "TabsContent" - ], - "totalLines": 54, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/textarea.tsx": { - "filePath": "apps/web/src/components/ui/textarea.tsx", - "contentHash": "3ef3096c7143ea4cfc44be33890b564ab3128cbe3aac54e382188f9254ff9a41", - "functions": [], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "* as React" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - } - ], - "exports": [ - "Textarea" - ], - "totalLines": 22, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/toast.tsx": { - "filePath": "apps/web/src/components/ui/toast.tsx", - "contentHash": "87ab93db171be019c37982e95b47732c0fe58592aa26998ef62b9ca8362ff8ca", - "functions": [], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "* as React" - ] - }, - { - "source": "@radix-ui/react-toast", - "specifiers": [ - "* as ToastPrimitives" - ] - }, - { - "source": "class-variance-authority", - "specifiers": [ - "cva", - "VariantProps" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "X" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - } - ], - "exports": [ - "ToastProps", - "ToastActionElement", - "ToastProvider", - "ToastViewport", - "Toast", - "ToastTitle", - "ToastDescription", - "ToastClose", - "ToastAction" - ], - "totalLines": 112, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/toaster.tsx": { - "filePath": "apps/web/src/components/ui/toaster.tsx", - "contentHash": "6cce09ccc4cecbd88e2b249c7d60ff87d7d7ca6271906c80f281050668aa93c0", - "functions": [ - { - "name": "Toaster", - "params": [], - "exported": true, - "lineCount": 21 - } - ], - "classes": [], - "imports": [ - { - "source": "@/hooks/use-toast", - "specifiers": [ - "useToast" - ] - }, - { - "source": "@/components/ui/toast", - "specifiers": [ - "Toast", - "ToastClose", - "ToastDescription", - "ToastProvider", - "ToastTitle", - "ToastViewport" - ] - } - ], - "exports": [ - "Toaster" - ], - "totalLines": 25, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/toggle-group.tsx": { - "filePath": "apps/web/src/components/ui/toggle-group.tsx", - "contentHash": "80ca2245a6104b972681ff574543fbbd076142361db9370e8b70ab349aa1c537", - "functions": [], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "* as React" - ] - }, - { - "source": "@radix-ui/react-toggle-group", - "specifiers": [ - "* as ToggleGroupPrimitive" - ] - }, - { - "source": "class-variance-authority", - "specifiers": [ - "VariantProps" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - }, - { - "source": "@/components/ui/toggle", - "specifiers": [ - "toggleVariants" - ] - } - ], - "exports": [ - "ToggleGroup", - "ToggleGroupItem" - ], - "totalLines": 50, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/toggle.tsx": { - "filePath": "apps/web/src/components/ui/toggle.tsx", - "contentHash": "834fecdf28eccf12796fdb428c249947d21f4db4941fe8b7f07fbbcf379f17cf", - "functions": [], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "* as React" - ] - }, - { - "source": "@radix-ui/react-toggle", - "specifiers": [ - "* as TogglePrimitive" - ] - }, - { - "source": "class-variance-authority", - "specifiers": [ - "cva", - "VariantProps" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - } - ], - "exports": [ - "Toggle", - "toggleVariants" - ], - "totalLines": 38, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/tooltip.tsx": { - "filePath": "apps/web/src/components/ui/tooltip.tsx", - "contentHash": "0d43ec6da30ba92a66c6b098a5123563ebd4153c8d53983f105109b8da7031c4", - "functions": [], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "* as React" - ] - }, - { - "source": "@radix-ui/react-tooltip", - "specifiers": [ - "* as TooltipPrimitive" - ] - }, - { - "source": "@/lib/utils", - "specifiers": [ - "cn" - ] - } - ], - "exports": [ - "Tooltip", - "TooltipTrigger", - "TooltipContent", - "TooltipProvider" - ], - "totalLines": 29, - "hasStructuralAnalysis": true - }, - "apps/web/src/components/ui/use-toast.ts": { - "filePath": "apps/web/src/components/ui/use-toast.ts", - "contentHash": "3fbe3b856affdf39f3eb2a82c898b96d44560d93d05674ab2fd6105825ca78d1", - "functions": [], - "classes": [], - "imports": [ - { - "source": "@/hooks/use-toast", - "specifiers": [ - "useToast", - "toast" - ] - } - ], - "exports": [ - "useToast", - "toast" - ], - "totalLines": 4, - "hasStructuralAnalysis": true - }, - "apps/web/src/hooks/use-mobile.tsx": { - "filePath": "apps/web/src/hooks/use-mobile.tsx", - "contentHash": "f6f7a7643d4607721c57e2b8c4081a8f84aefbb0a240f4b9dd1fc20d8d7a61e6", - "functions": [ - { - "name": "useIsMobile", - "params": [], - "exported": true, - "lineCount": 15 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "* as React" - ] - } - ], - "exports": [ - "useIsMobile" - ], - "totalLines": 20, - "hasStructuralAnalysis": true - }, - "apps/web/src/hooks/use-toast.ts": { - "filePath": "apps/web/src/hooks/use-toast.ts", - "contentHash": "6bf9e146f489a0c63de9c7e52c2c4d94d2c4618214b106cf3b871f02ca9b5925", - "functions": [ - { - "name": "genId", - "params": [], - "exported": false, - "lineCount": 4 - }, - { - "name": "addToRemoveQueue", - "params": [ - "toastId" - ], - "exported": false, - "lineCount": 15 - }, - { - "name": "reducer", - "params": [ - "state", - "action" - ], - "returnType": "State", - "exported": true, - "lineCount": 52 - }, - { - "name": "dispatch", - "params": [ - "action" - ], - "exported": false, - "lineCount": 6 - }, - { - "name": "toast", - "params": [ - "{ ...props }" - ], - "exported": true, - "lineCount": 28 - }, - { - "name": "useToast", - "params": [], - "exported": true, - "lineCount": 19 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "* as React" - ] - }, - { - "source": "@/components/ui/toast", - "specifiers": [ - "ToastActionElement", - "ToastProps" - ] - } - ], - "exports": [ - "reducer", - "useToast", - "toast" - ], - "totalLines": 187, - "hasStructuralAnalysis": true - }, - "apps/web/src/hooks/useAgentStatus.ts": { - "filePath": "apps/web/src/hooks/useAgentStatus.ts", - "contentHash": "f1b9fa3b92e5fa2ec6e69b1c420a4836a5f66030471f112d9056a4ccd5105e9b", - "functions": [ - { - "name": "useAgentStatus", - "params": [], - "exported": true, - "lineCount": 45 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect", - "useRef" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "AgentStatus" - ] - } - ], - "exports": [ - "useAgentStatus" - ], - "totalLines": 50, - "hasStructuralAnalysis": true - }, - "apps/web/src/hooks/useBilling.ts": { - "filePath": "apps/web/src/hooks/useBilling.ts", - "contentHash": "72db0082c9659585652241f55030c933b4d879f98a76c69c16a4a83a3f789c9f", - "functions": [ - { - "name": "useBilling", - "params": [], - "exported": true, - "lineCount": 129 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useCallback", - "useEffect", - "useRef" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/hooks/useRevalidateOnError", - "specifiers": [ - "useRevalidateOnError" - ] - } - ], - "exports": [ - "useBilling" - ], - "totalLines": 157, - "hasStructuralAnalysis": true - }, - "apps/web/src/hooks/useChat.ts": { - "filePath": "apps/web/src/hooks/useChat.ts", - "contentHash": "2fb0b11086bc4877741d98a38a6f5732cd9e6cad4ce500c6505211979d790515", - "functions": [ - { - "name": "nextBlockId", - "params": [ - "prefix" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "ensureBlocks", - "params": [ - "msg" - ], - "returnType": "ChatMessage", - "exported": false, - "lineCount": 29 - }, - { - "name": "flattenBlocks", - "params": [ - "blocks" - ], - "returnType": "string", - "exported": false, - "lineCount": 6 - }, - { - "name": "useChat", - "params": [ - "{ workspaceId, sessionId, persona, autonomy }" - ], - "exported": true, - "lineCount": 266 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useCallback", - "useRef", - "useEffect" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "ChatMessage", - "StreamEvent", - "ApprovalRequest", - "ContentBlock", - "TextContentBlock", - "ToolExecution" - ] - } - ], - "exports": [ - "useChat" - ], - "totalLines": 337, - "hasStructuralAnalysis": true - }, - "apps/web/src/hooks/useChatWidgetState.ts": { - "filePath": "apps/web/src/hooks/useChatWidgetState.ts", - "contentHash": "7f8ec12f744ef08aa1df006b0a5ad59ea007d0c1c94d0d08981b36a351f27ae8", - "functions": [ - { - "name": "personaLabelFor", - "params": [ - "personaId" - ], - "returnType": "string | undefined", - "exported": true, - "lineCount": 4 - }, - { - "name": "composeChatTitle", - "params": [ - "workspaceName", - "templateId", - "personaId" - ], - "returnType": "string", - "exported": true, - "lineCount": 10 - }, - { - "name": "sanitizeEntry", - "params": [ - "value" - ], - "returnType": "ChatWidgetEntry | null", - "exported": false, - "lineCount": 17 - }, - { - "name": "parseChatState", - "params": [ - "raw" - ], - "returnType": "Record", - "exported": false, - "lineCount": 15 - }, - { - "name": "subscribeChatState", - "params": [ - "listener" - ], - "returnType": "() => void", - "exported": false, - "lineCount": 4 - }, - { - "name": "loadChatEntries", - "params": [], - "returnType": "Record", - "exported": true, - "lineCount": 9 - }, - { - "name": "persistChatEntries", - "params": [ - "chats" - ], - "returnType": "void", - "exported": false, - "lineCount": 12 - }, - { - "name": "writeChatEntry", - "params": [ - "workspaceId", - "patch" - ], - "returnType": "void", - "exported": true, - "lineCount": 4 - }, - { - "name": "mergeChatEntries", - "params": [ - "entries" - ], - "returnType": "void", - "exported": true, - "lineCount": 3 - }, - { - "name": "rekeyLocalDefaultChatState", - "params": [ - "firstRealWorkspaceId" - ], - "returnType": "void", - "exported": true, - "lineCount": 11 - }, - { - "name": "seedChat", - "params": [ - "workspaceId", - "seed" - ], - "returnType": "void", - "exported": true, - "lineCount": 3 - }, - { - "name": "takeChatSeed", - "params": [ - "workspaceId" - ], - "returnType": "ChatSeed | undefined", - "exported": true, - "lineCount": 5 - }, - { - "name": "useChatWidgetState", - "params": [ - "workspaceId", - "opts" - ], - "exported": true, - "lineCount": 65 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useCallback", - "useEffect", - "useSyncExternalStore" - ] - } - ], - "exports": [ - "CHAT_STATE_KEY", - "personaLabelFor", - "composeChatTitle", - "loadChatEntries", - "writeChatEntry", - "mergeChatEntries", - "rekeyLocalDefaultChatState", - "seedChat", - "takeChatSeed", - "useChatWidgetState" - ], - "totalLines": 302, - "hasStructuralAnalysis": true - }, - "apps/web/src/hooks/useContainerWidth.ts": { - "filePath": "apps/web/src/hooks/useContainerWidth.ts", - "contentHash": "4071595e3683e938544e6b1c7a6ce5d8e79a987c17026e27109570ed21ef1cb9", - "functions": [ - { - "name": "useContainerWidth", - "params": [ - "ref" - ], - "returnType": "number | null", - "exported": true, - "lineCount": 25 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useEffect", - "useState", - "RefObject" - ] - } - ], - "exports": [ - "useContainerWidth" - ], - "totalLines": 35, - "hasStructuralAnalysis": true - }, - "apps/web/src/hooks/useDeveloperMode.test.ts": { - "filePath": "apps/web/src/hooks/useDeveloperMode.test.ts", - "contentHash": "f9ca8511a07c8514b0ed60bf499322c5c4741733d367b16a0446a22f5704e530", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "vi" - ] - }, - { - "source": "./useDeveloperMode", - "specifiers": [ - "readDeveloperMode", - "DEVELOPER_MODE_STORAGE_KEY" - ] - } - ], - "exports": [], - "totalLines": 72, - "hasStructuralAnalysis": true - }, - "apps/web/src/hooks/useDeveloperMode.ts": { - "filePath": "apps/web/src/hooks/useDeveloperMode.ts", - "contentHash": "3aa25d4e04f319413f0f42ef676014ede2e1359d03f2c634d03a9132fc2baea3", - "functions": [ - { - "name": "readDeveloperMode", - "params": [], - "returnType": "boolean", - "exported": true, - "lineCount": 7 - }, - { - "name": "writeDeveloperMode", - "params": [ - "value" - ], - "returnType": "void", - "exported": false, - "lineCount": 10 - }, - { - "name": "useDeveloperMode", - "params": [], - "returnType": "readonly [boolean, (value: boolean) => void]", - "exported": true, - "lineCount": 20 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useEffect", - "useState" - ] - } - ], - "exports": [ - "DEVELOPER_MODE_STORAGE_KEY", - "readDeveloperMode", - "useDeveloperMode" - ], - "totalLines": 55, - "hasStructuralAnalysis": true - }, - "apps/web/src/hooks/useDockLabels.ts": { - "filePath": "apps/web/src/hooks/useDockLabels.ts", - "contentHash": "8d2711b3e264c2da9cc22e80ab6a50fb1ff553d3757a51f3bdea240e33f488be", - "functions": [ - { - "name": "readSessionCount", - "params": [], - "returnType": "number", - "exported": false, - "lineCount": 9 - }, - { - "name": "readFirstLaunch", - "params": [], - "returnType": "number | null", - "exported": false, - "lineCount": 10 - }, - { - "name": "readDockLabelsMode", - "params": [], - "returnType": "DockLabelsMode", - "exported": true, - "lineCount": 9 - }, - { - "name": "writeDockLabelsMode", - "params": [ - "mode" - ], - "returnType": "void", - "exported": false, - "lineCount": 8 - }, - { - "name": "useBumpSessionCount", - "params": [], - "returnType": "void", - "exported": true, - "lineCount": 16 - }, - { - "name": "useDockLabels", - "params": [], - "returnType": "{\r\n visible: boolean;\r\n mode: DockLabelsMode;\r\n setMode: (mode: DockLabelsMode) => void;\r\n}", - "exported": true, - "lineCount": 32 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useEffect", - "useRef", - "useState" - ] - }, - { - "source": "@/lib/dock-labels", - "specifiers": [ - "shouldShowDockLabels", - "DockLabelsMode" - ] - } - ], - "exports": [ - "SESSION_COUNT_KEY", - "FIRST_LAUNCH_KEY", - "DOCK_LABELS_MODE_KEY", - "readDockLabelsMode", - "useBumpSessionCount", - "useDockLabels" - ], - "totalLines": 123, - "hasStructuralAnalysis": true - }, - "apps/web/src/hooks/useDockNudge.ts": { - "filePath": "apps/web/src/hooks/useDockNudge.ts", - "contentHash": "0e8c4f5cf9b513613fa3229847159e191f447ce2774eae1739def0b17a69a0e0", - "functions": [ - { - "name": "readSessionCount", - "params": [], - "returnType": "number", - "exported": false, - "lineCount": 9 - }, - { - "name": "readDismissedMilestones", - "params": [], - "returnType": "number[]", - "exported": true, - "lineCount": 11 - }, - { - "name": "writeDismissedMilestones", - "params": [ - "milestones" - ], - "returnType": "void", - "exported": false, - "lineCount": 7 - }, - { - "name": "useDockNudge", - "params": [ - "{ onNudge }" - ], - "returnType": "void", - "exported": true, - "lineCount": 21 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useEffect", - "useRef" - ] - }, - { - "source": "@/lib/dock-nudge", - "specifiers": [ - "copyForMilestone", - "findPendingMilestone", - "DockNudgeCopy" - ] - }, - { - "source": "./useDockLabels", - "specifiers": [ - "SESSION_COUNT_KEY" - ] - } - ], - "exports": [ - "DOCK_NUDGE_DISMISSED_KEY", - "readDismissedMilestones", - "useDockNudge" - ], - "totalLines": 82, - "hasStructuralAnalysis": true - }, - "apps/web/src/hooks/useEvents.ts": { - "filePath": "apps/web/src/hooks/useEvents.ts", - "contentHash": "d9ef1d72e400ef71d033945a70274a598e8b88451c051c92cebb6d7e7c5c0717", - "functions": [ - { - "name": "useEvents", - "params": [ - "workspaceId" - ], - "exported": true, - "lineCount": 32 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect", - "useCallback" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "AgentStep" - ] - } - ], - "exports": [ - "useEvents" - ], - "totalLines": 37, - "hasStructuralAnalysis": true - }, - "apps/web/src/hooks/useFeatureGate.ts": { - "filePath": "apps/web/src/hooks/useFeatureGate.ts", - "contentHash": "f07e2dbba6a27cc24cd1bc16f0aad6ad2792ebf1ca2d5ba022c200f2a1f897bd", - "functions": [ - { - "name": "useFeatureGate", - "params": [], - "exported": true, - "lineCount": 15 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useCallback" - ] - }, - { - "source": "./useOnboarding", - "specifiers": [ - "useOnboarding" - ] - }, - { - "source": "@/lib/feature-gates", - "specifiers": [ - "dockTierToPlanTier", - "isFeatureEnabled", - "getGate", - "PlanTier", - "FeatureGate" - ] - } - ], - "exports": [ - "useFeatureGate" - ], - "totalLines": 20, - "hasStructuralAnalysis": true - }, - "apps/web/src/hooks/useFocusTrap.test.tsx": { - "filePath": "apps/web/src/hooks/useFocusTrap.test.tsx", - "contentHash": "80f740e29d3ce28599ccd40eadf1a75a39c55239a25218d85f3b84126f54a274", - "functions": [ - { - "name": "Dialog", - "params": [ - "{ onEscape }" - ], - "exported": false, - "lineCount": 10 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "render", - "fireEvent", - "cleanup" - ] - }, - { - "source": "./useFocusTrap", - "specifiers": [ - "useFocusTrap" - ] - } - ], - "exports": [], - "totalLines": 65, - "hasStructuralAnalysis": true - }, - "apps/web/src/hooks/useFocusTrap.ts": { - "filePath": "apps/web/src/hooks/useFocusTrap.ts", - "contentHash": "a606bd2c178ded071a093e06ed27d730b467134b6c63d6c1ecb4891d36fcf1b3", - "functions": [ - { - "name": "useFocusTrap", - "params": [ - "active", - "onEscape" - ], - "exported": true, - "lineCount": 92 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useEffect", - "useRef" - ] - } - ], - "exports": [ - "useFocusTrap" - ], - "totalLines": 118, - "hasStructuralAnalysis": true - }, - "apps/web/src/hooks/useHasWorkingModel.test.ts": { - "filePath": "apps/web/src/hooks/useHasWorkingModel.test.ts", - "contentHash": "714629303b66ff407c0c07ecc6249cafe11ce1aa03d9887644f42ec0d6d5296c", - "functions": [ - { - "name": "providers", - "params": [ - "...withKey" - ], - "exported": false, - "lineCount": 5 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "renderHook", - "waitFor", - "cleanup" - ] - }, - { - "source": "./useHasWorkingModel", - "specifiers": [ - "useHasWorkingModel" - ] - } - ], - "exports": [], - "totalLines": 63, - "hasStructuralAnalysis": true - }, - "apps/web/src/hooks/useHasWorkingModel.ts": { - "filePath": "apps/web/src/hooks/useHasWorkingModel.ts", - "contentHash": "5016c0a484f43cf1c971533225ba65d540d9e9ad40711131c38e1979837d964c", - "functions": [ - { - "name": "useHasWorkingModel", - "params": [], - "returnType": "WorkingModelState", - "exported": true, - "lineCount": 32 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useCallback", - "useEffect", - "useState" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "./useProviders", - "specifiers": [ - "useProviders" - ] - } - ], - "exports": [ - "useHasWorkingModel" - ], - "totalLines": 60, - "hasStructuralAnalysis": true - }, - "apps/web/src/hooks/useIsLightTheme.ts": { - "filePath": "apps/web/src/hooks/useIsLightTheme.ts", - "contentHash": "b27f141de7b1b44437f85d28c5c653e014e6d1d1d419c00e927ca036b795b519", - "functions": [ - { - "name": "useIsLightTheme", - "params": [], - "returnType": "boolean", - "exported": true, - "lineCount": 22 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useEffect", - "useState" - ] - } - ], - "exports": [ - "useIsLightTheme" - ], - "totalLines": 33, - "hasStructuralAnalysis": true - }, - "apps/web/src/hooks/useKeyboardShortcuts.ts": { - "filePath": "apps/web/src/hooks/useKeyboardShortcuts.ts", - "contentHash": "255a94465366fc7d0c437ade48a67638b3dc46997b1e53ec4f41ca00c532e42e", - "functions": [ - { - "name": "isGlobalShortcut", - "params": [ - "e" - ], - "returnType": "boolean", - "exported": false, - "lineCount": 4 - }, - { - "name": "isInputFocused", - "params": [], - "returnType": "boolean", - "exported": false, - "lineCount": 6 - }, - { - "name": "useKeyboardShortcuts", - "params": [ - "options" - ], - "exported": true, - "lineCount": 69 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useEffect", - "useRef" - ] - }, - { - "source": "@/lib/dock-tiers", - "specifiers": [ - "AppId" - ] - } - ], - "exports": [ - "useKeyboardShortcuts" - ], - "totalLines": 114, - "hasStructuralAnalysis": true - }, - "apps/web/src/hooks/useKnowledgeGraph.ts": { - "filePath": "apps/web/src/hooks/useKnowledgeGraph.ts", - "contentHash": "f8d09974478fa585a6c04b07ee50294141344354572d5e4ad1ce4a747f38d03b", - "functions": [ - { - "name": "useKnowledgeGraph", - "params": [ - "workspaceId" - ], - "exported": true, - "lineCount": 25 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useCallback", - "useEffect" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "KGNode", - "KGEdge" - ] - } - ], - "exports": [ - "useKnowledgeGraph" - ], - "totalLines": 32, - "hasStructuralAnalysis": true - }, - "apps/web/src/hooks/useMemory.ts": { - "filePath": "apps/web/src/hooks/useMemory.ts", - "contentHash": "222c0810143f7e1311bcddfd840a86b09c1d6b19c6cee3ee5ec0976b0510c0e2", - "functions": [ - { - "name": "useMemory", - "params": [ - "workspaceId" - ], - "exported": true, - "lineCount": 71 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useCallback", - "useEffect" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "MemoryFrame" - ] - } - ], - "exports": [ - "useMemory" - ], - "totalLines": 82, - "hasStructuralAnalysis": true - }, - "apps/web/src/hooks/useNotifications.ts": { - "filePath": "apps/web/src/hooks/useNotifications.ts", - "contentHash": "0cfef52adfea1292cc03c47f8d9e5df47226f7af6966ccb9855dd78cf252add5", - "functions": [ - { - "name": "useNotifications", - "params": [], - "exported": true, - "lineCount": 41 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect", - "useCallback" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "Notification" - ] - } - ], - "exports": [ - "useNotifications" - ], - "totalLines": 46, - "hasStructuralAnalysis": true - }, - "apps/web/src/hooks/useOfflineStatus.ts": { - "filePath": "apps/web/src/hooks/useOfflineStatus.ts", - "contentHash": "43bcdfa73b889525b3e7d18ab5ede458e4f4f26b6640ae3500e3385c6afc1133", - "functions": [ - { - "name": "useOfflineStatus", - "params": [], - "exported": true, - "lineCount": 65 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect", - "useRef" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - } - ], - "exports": [ - "useOfflineStatus" - ], - "totalLines": 101, - "hasStructuralAnalysis": true - }, - "apps/web/src/hooks/useOnboarding.ts": { - "filePath": "apps/web/src/hooks/useOnboarding.ts", - "contentHash": "fa843eb025b7d79475c05f53cc7589e111fdc3a2cf3384b14ef6613bd86ebce9", - "functions": [ - { - "name": "loadState", - "params": [], - "returnType": "OnboardingState", - "exported": false, - "lineCount": 51 - }, - { - "name": "saveState", - "params": [ - "state" - ], - "exported": false, - "lineCount": 5 - }, - { - "name": "useOnboarding", - "params": [], - "exported": true, - "lineCount": 156 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useCallback", - "useEffect" - ] - }, - { - "source": "@/lib/dock-tiers", - "specifiers": [ - "UserTier" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/lib/tauri-bindings", - "specifiers": [ - "isTauri", - "tauriIsFirstLaunch", - "tauriMarkFirstLaunchComplete" - ] - } - ], - "exports": [ - "useOnboarding" - ], - "totalLines": 256, - "hasStructuralAnalysis": true - }, - "apps/web/src/hooks/useOverlayState.ts": { - "filePath": "apps/web/src/hooks/useOverlayState.ts", - "contentHash": "b584cc3edbe6aa2ba2fbca209f45354eef5110a70c997b5e48fbf5a4392eac4b", - "functions": [ - { - "name": "useOverlayState", - "params": [], - "exported": true, - "lineCount": 33 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useCallback" - ] - }, - { - "source": "@/lib/login-briefing", - "specifiers": [ - "shouldShowLoginBriefing", - "readLoginBriefingDismissed", - "readMinutesSinceLastDismiss", - "readSkipBriefingParam" - ] - } - ], - "exports": [ - "useOverlayState" - ], - "totalLines": 53, - "hasStructuralAnalysis": true - }, - "apps/web/src/hooks/useProviders.ts": { - "filePath": "apps/web/src/hooks/useProviders.ts", - "contentHash": "492726b45f01730dbef8d09b9029370bc7cf96464c38e518ce2f3dabe6df9c08", - "functions": [ - { - "name": "useProviders", - "params": [], - "exported": true, - "lineCount": 52 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect", - "useCallback" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - } - ], - "exports": [ - "useProviders" - ], - "totalLines": 84, - "hasStructuralAnalysis": true - }, - "apps/web/src/hooks/useRevalidateOnError.test.ts": { - "filePath": "apps/web/src/hooks/useRevalidateOnError.test.ts", - "contentHash": "c8ab47b86af0048c11532b056291234386ad7e57fff4bd3a4727c9ef5e844a35", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "renderHook", - "cleanup" - ] - }, - { - "source": "./useRevalidateOnError", - "specifiers": [ - "useRevalidateOnError", - "CONNECT_SETTLED_EVENT" - ] - } - ], - "exports": [], - "totalLines": 63, - "hasStructuralAnalysis": true - }, - "apps/web/src/hooks/useRevalidateOnError.ts": { - "filePath": "apps/web/src/hooks/useRevalidateOnError.ts", - "contentHash": "8334a28355b7d6411facfd7513a0effe815899b54724e06f0fe81edce74543d1", - "functions": [ - { - "name": "useRevalidateOnError", - "params": [ - "errored", - "revalidate" - ], - "returnType": "void", - "exported": true, - "lineCount": 23 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useEffect", - "useRef" - ] - } - ], - "exports": [ - "CONNECT_SETTLED_EVENT", - "useRevalidateOnError" - ], - "totalLines": 44, - "hasStructuralAnalysis": true - }, - "apps/web/src/hooks/useRoomState.ts": { - "filePath": "apps/web/src/hooks/useRoomState.ts", - "contentHash": "225ba4353ca4603a85dd946b9f9ee0386e6c57dfcab16935e66ba13c1e06ac72", - "functions": [ - { - "name": "useRoomState", - "params": [], - "exported": true, - "lineCount": 68 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useCallback", - "useEffect", - "useMemo", - "useState" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/lib/room-state-reducer", - "specifiers": [ - "applyStatusEvent", - "pruneRecent", - "_RoomAgent", - "WorkspaceAgents" - ] - } - ], - "exports": [ - "useRoomState" - ], - "totalLines": 91, - "hasStructuralAnalysis": true - }, - "apps/web/src/hooks/useSessions.ts": { - "filePath": "apps/web/src/hooks/useSessions.ts", - "contentHash": "52f0781e76c953f3881535756c24a3a5b31bed7095fe36abd1c7964e8056ceb2", - "functions": [ - { - "name": "makeDefaultSession", - "params": [ - "workspaceId" - ], - "returnType": "Session", - "exported": false, - "lineCount": 7 - }, - { - "name": "useSessions", - "params": [ - "workspaceId" - ], - "exported": true, - "lineCount": 74 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useCallback", - "useEffect" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "Session" - ] - } - ], - "exports": [ - "useSessions" - ], - "totalLines": 87, - "hasStructuralAnalysis": true - }, - "apps/web/src/hooks/useWaggleDance.ts": { - "filePath": "apps/web/src/hooks/useWaggleDance.ts", - "contentHash": "174aed83374976b460e787c344d0a0f037ccc29f52d86a2d8644954083a6330f", - "functions": [ - { - "name": "useWaggleDance", - "params": [], - "exported": true, - "lineCount": 55 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useEffect", - "useCallback" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "WaggleSignal" - ] - } - ], - "exports": [ - "useWaggleDance" - ], - "totalLines": 60, - "hasStructuralAnalysis": true - }, - "apps/web/src/hooks/useWorkspaces.ts": { - "filePath": "apps/web/src/hooks/useWorkspaces.ts", - "contentHash": "dfd7ef746866b75d9a38aa4a21a8b2d44ea8e7da3202804da58a8d02418fb611", - "functions": [ - { - "name": "useWorkspaces", - "params": [], - "exported": true, - "lineCount": 95 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "useCallback", - "useEffect" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "Workspace" - ] - }, - { - "source": "@/hooks/useRevalidateOnError", - "specifiers": [ - "useRevalidateOnError" - ] - } - ], - "exports": [ - "useWorkspaces" - ], - "totalLines": 101, - "hasStructuralAnalysis": true - }, - "apps/web/src/index.css": { - "filePath": "apps/web/src/index.css", - "contentHash": "4e8da04044dc5a1b5d695781f0cf9f74f6287bbd343ea20a5d2015b1517bef81", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 519, - "hasStructuralAnalysis": false - }, - "apps/web/src/lib/activity-labels.test.ts": { - "filePath": "apps/web/src/lib/activity-labels.test.ts", - "contentHash": "fd0ac42daa27baf4b8e5d6ef68a47d4f8b74008abf0dbdf1995ee820b4faca19", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "./activity-labels", - "specifiers": [ - "humanizeActivitySummary" - ] - } - ], - "exports": [], - "totalLines": 18, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/activity-labels.ts": { - "filePath": "apps/web/src/lib/activity-labels.ts", - "contentHash": "f647c6c5e03649f4aa05267b835f0ba71c8a0a48140e06a8ebd86056272be689", - "functions": [ - { - "name": "humanizeToolName", - "params": [ - "tool" - ], - "returnType": "string", - "exported": false, - "lineCount": 6 - }, - { - "name": "humanizeActivitySummary", - "params": [ - "summary" - ], - "returnType": "string", - "exported": true, - "lineCount": 5 - } - ], - "classes": [], - "imports": [], - "exports": [ - "humanizeActivitySummary" - ], - "totalLines": 38, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/adapter.authgate.test.ts": { - "filePath": "apps/web/src/lib/adapter.authgate.test.ts", - "contentHash": "ead5e98c6653b3c6e32ba7350ec6699b49db175361f0d7f2d3e5fa2a2cf52732", - "functions": [ - { - "name": "jsonRes", - "params": [ - "body", - "status" - ], - "exported": false, - "lineCount": 2 - }, - { - "name": "routeMock", - "params": [ - "fetchSpy", - "routes" - ], - "exported": false, - "lineCount": 9 - }, - { - "name": "callsTo", - "params": [ - "fetchSpy", - "needle" - ], - "exported": false, - "lineCount": 2 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "./adapter", - "specifiers": [ - "LocalAdapter", - "AdapterHttpError", - "singletonAdapter" - ] - } - ], - "exports": [], - "totalLines": 488, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/adapter.createCron.test.ts": { - "filePath": "apps/web/src/lib/adapter.createCron.test.ts", - "contentHash": "25c8dc1cff8dd5e31d0cf5e143196f117d9b3fcbcb6ff32b4ef2fd6dfb6a57bf", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "./adapter", - "specifiers": [ - "LocalAdapter" - ] - } - ], - "exports": [], - "totalLines": 90, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/adapter.eraseData.test.ts": { - "filePath": "apps/web/src/lib/adapter.eraseData.test.ts", - "contentHash": "8988978c657aaae61442f94424ee6fb305961c6a5544ee24a32240b81b8c2221", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "./adapter", - "specifiers": [ - "LocalAdapter" - ] - } - ], - "exports": [], - "totalLines": 86, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/adapter.files.test.ts": { - "filePath": "apps/web/src/lib/adapter.files.test.ts", - "contentHash": "cfa6c091deba90e27e91f7c96f8f643e7ffa7d0e25ffaca1470a6522780cd2b8", - "functions": [ - { - "name": "jsonRes", - "params": [ - "body", - "status" - ], - "exported": false, - "lineCount": 2 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "./adapter", - "specifiers": [ - "LocalAdapter" - ] - } - ], - "exports": [], - "totalLines": 50, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/adapter.memoryStats.test.ts": { - "filePath": "apps/web/src/lib/adapter.memoryStats.test.ts", - "contentHash": "23a56ee88e227ee51f15d436b72aed26c39f6a84bd9a28bfd099fc8e00341852", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "./adapter", - "specifiers": [ - "LocalAdapter" - ] - } - ], - "exports": [], - "totalLines": 92, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/adapter.permissions.test.ts": { - "filePath": "apps/web/src/lib/adapter.permissions.test.ts", - "contentHash": "1eae5e2069ee4a265b2a3d461c1d07637263454ae91e0f26035a83a1ec49ed57", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "./adapter", - "specifiers": [ - "LocalAdapter" - ] - } - ], - "exports": [], - "totalLines": 106, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/adapter.spawnAgent.test.ts": { - "filePath": "apps/web/src/lib/adapter.spawnAgent.test.ts", - "contentHash": "f82a57bc74b2d2773e1a7d7a0ac4f9bffcbd8a2d5ad7ebf1426e92fb09316955", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "./adapter", - "specifiers": [ - "LocalAdapter" - ] - } - ], - "exports": [], - "totalLines": 91, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/adapter.sse.test.ts": { - "filePath": "apps/web/src/lib/adapter.sse.test.ts", - "contentHash": "e4c9238278be08a8d7c3765dee960275e1525d3a7fafe29d155ada050c2d0bf7", - "functions": [ - { - "name": "jsonRes", - "params": [ - "body", - "status" - ], - "exported": false, - "lineCount": 2 - }, - { - "name": "flush", - "params": [], - "exported": false, - "lineCount": 1 - } - ], - "classes": [ - { - "name": "FakeEventSource", - "methods": [ - "constructor", - "addEventListener", - "removeEventListener", - "close", - "fireOpen", - "fireError", - "fireNamed" - ], - "properties": [ - "instances", - "OPEN", - "url", - "readyState", - "onmessage", - "onerror", - "onopen", - "closed", - "listeners" - ], - "exported": false, - "lineCount": 31 - } - ], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "./adapter", - "specifiers": [ - "LocalAdapter" - ] - } - ], - "exports": [], - "totalLines": 273, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/adapter.startTrial.test.ts": { - "filePath": "apps/web/src/lib/adapter.startTrial.test.ts", - "contentHash": "b00c6526135b5579a88b50f7298b4181d3fe399c58bb3e9039111786eeadf1eb", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "./adapter", - "specifiers": [ - "LocalAdapter" - ] - } - ], - "exports": [], - "totalLines": 90, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/adapter.tauri-branch.test.ts": { - "filePath": "apps/web/src/lib/adapter.tauri-branch.test.ts", - "contentHash": "14c038ac55d20747759b38dcb4a1ee3fbee6b1e9f8ff8329a11c8391e7dc36f8", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach", - "vi" - ] - }, - { - "source": "@tauri-apps/api/core", - "specifiers": [ - "invoke" - ] - }, - { - "source": "./adapter", - "specifiers": [ - "adapter" - ] - } - ], - "exports": [], - "totalLines": 145, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/adapter.ts": { - "filePath": "apps/web/src/lib/adapter.ts", - "contentHash": "44c1e616f064c464d82d7fb45ab1d12168bc7d4884ae3d6608c221d831046a44", - "functions": [ - { - "name": "deadlined", - "params": [ - "p", - "ms", - "label" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 7 - }, - { - "name": "unwrapArray", - "params": [ - "data" - ], - "returnType": "T[]", - "exported": false, - "lineCount": 8 - }, - { - "name": "normalizeCronJob", - "params": [ - "raw" - ], - "returnType": "CronJob", - "exported": false, - "lineCount": 16 - }, - { - "name": "normalizeFrame", - "params": [ - "raw" - ], - "returnType": "MemoryFrame", - "exported": false, - "lineCount": 20 - } - ], - "classes": [ - { - "name": "AdapterHttpError", - "methods": [ - "constructor" - ], - "properties": [ - "status", - "statusText", - "body", - "code" - ], - "exported": true, - "lineCount": 17 - }, - { - "name": "LocalAdapter", - "methods": [ - "constructor", - "isConnected", - "hasAttemptedConnect", - "setServerUrl", - "getServerUrl", - "forceReconnect", - "connect", - "doConnect", - "ensureReady", - "fetchSessionToken", - "refreshSessionToken", - "healthProbe", - "doHealthProbe", - "fetch", - "fetchRaw", - "request", - "getOnboardingStatus", - "markOnboardingComplete", - "getWorkspaces", - "getWorkspaceTemplates", - "createWorkspaceTemplate", - "generateTemplateFromPrompt", - "updateWorkspaceTemplate", - "deleteWorkspaceTemplate", - "createWorkspace", - "updateWorkspace", - "patchWorkspace", - "deleteWorkspace", - "exportWorkspaceBriefing", - "getWorkspaceTasks", - "createWorkspaceTask", - "patchWorkspaceTask", - "deleteWorkspaceTask", - "getWorkspaceContext", - "getWorkspaceFiles", - "getWorkspaceState", - "getWorkspaceActivity", - "getHomeBriefing", - "getHomeOvernight", - "quickCapture", - "browseLocal", - "browseLocalMkdir", - "listFiles", - "uploadFile", - "downloadFile", - "createDirectory", - "deleteFile", - "moveFile", - "copyFile", - "sendMessage", - "abortAgent", - "clearHistory", - "getHistory", - "getSessions", - "createSession", - "renameSession", - "deleteSession", - "searchSessions", - "exportSession", - "getMemoryFrames", - "addMemoryFrame", - "updateMemoryFrame", - "deleteMemoryFrame", - "incrementFrameAccess", - "searchMemory", - "listMemories", - "memoryScopeQs", - "getMemory", - "createMemory", - "patchMemory", - "archiveMemory", - "deleteMemoryById", - "confirmMemory", - "getMemoryTrace", - "mergeMemories", - "listArtifacts", - "getArtifact", - "createArtifact", - "patchArtifact", - "archiveArtifact", - "deleteArtifact", - "searchRelatedArtifacts", - "searchTeamMemory", - "getLocalInferenceHardware", - "getLocalInferenceModels", - "getLocalInferenceStatus", - "pullLocalModel", - "getKnowledgeGraph", - "getIdentity", - "setIdentity", - "getEvents", - "getTimeline", - "subscribeEvents", - "getAgentStatus", - "getAgentCost", - "setModel", - "getModel", - "getSkills", - "createSkill", - "updateSkill", - "testSkill", - "installSkill", - "getStarterPacks", - "getCapabilityPacks", - "installPack", - "getCapabilitiesStatus", - "getMarketplacePacks", - "searchMarketplace", - "installMarketplacePackage", - "agentSearch", - "uninstallMarketplacePackage", - "uninstallMarketplacePack", - "getFleet", - "fleetAction", - "spawnAgent", - "listAgents", - "createAgent", - "getAgent", - "patchAgent", - "runAgent", - "pauseAgent", - "getAgentTraces", - "getCronJobs", - "createCronJob", - "updateCronJob", - "deleteCronJob", - "triggerCronJob", - "listAutomations", - "createAutomation", - "updateAutomation", - "runAutomation", - "pauseAutomation", - "getAutomationLogs", - "testAutomation", - "subscribeNotifications", - "subscribeSubagentStatus", - "subscribeHarvestProgress", - "getNotificationHistory", - "markNotificationRead", - "markAllNotificationsRead", - "getPendingApprovals", - "respondApproval", - "getApprovalGrants", - "revokeApprovalGrant", - "clearApprovalGrants", - "getSettings", - "saveSettings", - "getPermissions", - "savePermissions", - "testApiKey", - "setProviderKey", - "getModels", - "getProviders", - "getLiteLLMStatus", - "getModelPricing", - "getPersonas", - "createPersona", - "deletePersona", - "updatePersona", - "generatePersona", - "getCapabilityStatus", - "getAgentGroups", - "createAgentGroup", - "deleteAgentGroup", - "updateAgentGroup", - "runAgentGroup", - "getJobStatus", - "cancelJob", - "getSystemHealth", - "getConnectors", - "getConnectorHealth", - "connectConnector", - "disconnectConnector", - "syncConnector", - "revokeConnector", - "getMcps", - "installMcp", - "addCustomMcp", - "testMcp", - "startMcp", - "stopMcp", - "revokeMcp", - "updateMcpPermissions", - "getMarketplace", - "getExtendAudit", - "getVault", - "getProfile", - "updateProfile", - "analyzeWritingStyle", - "analyzeBrand", - "researchProfile", - "addVaultSecret", - "deleteVaultSecret", - "getMindIdentity", - "getMindAwareness", - "getMindSkills", - "teamConnect", - "teamDisconnect", - "getTeamStatus", - "getTeamMembers", - "getTeamActivity", - "getTeamMessages", - "getCosts", - "getCostByWorkspace", - "getCostSummary", - "getMemoryStats", - "getEventStats", - "getWeaverStatus", - "getAuditInstalls", - "ingestFile", - "executeCommand", - "commandSearch", - "commandRecent", - "commandSuggestions", - "commandExecute", - "getPins", - "addPin", - "removePin", - "getDocuments", - "getDocumentVersions", - "submitFeedback", - "getWaggleSignals", - "publishWaggleSignal", - "acknowledgeWaggleSignal", - "detectTools", - "launchTool", - "getToolProcesses", - "killTool", - "manageHooks", - "subscribeWaggleDance", - "openSSE", - "subscribeSSE", - "getTelemetryStatus", - "toggleTelemetry", - "clearTelemetry", - "trackTelemetry", - "syncStripeCheckout", - "createCheckoutSession", - "createPortalSession", - "getStripeStatus", - "getTier", - "eraseData", - "startTrial", - "importPreview", - "importCommit", - "harvestPreview", - "harvestCommit", - "getHarvestSources", - "scanClaudeCode", - "extractHarvestIdentity", - "getLatestInterruptedHarvestRun", - "resumeHarvestRun", - "abandonHarvestRun", - "removeHarvestSource", - "toggleHarvestAutoSync", - "getWikiPages", - "getWikiPage", - "getWikiPageContent", - "compileWiki", - "getWikiHealth", - "getWikiWatermark", - "exportWikiToObsidian", - "exportWikiToNotion", - "getComplianceStatus", - "exportComplianceReportPdf", - "exportComplianceReport", - "getComplianceInteractions", - "getComplianceModels", - "listComplianceTemplates", - "createComplianceTemplate", - "updateComplianceTemplate", - "deleteComplianceTemplate", - "connectWebSocket" - ], - "properties": [ - "baseUrl", - "authToken", - "ws", - "sseStreams", - "_connected", - "_connectAttempted", - "_connectPromise", - "_healthProbePromise", - "_refreshPromise", - "_epoch" - ], - "exported": true, - "lineCount": 2929 - } - ], - "imports": [ - { - "source": "./fetch-utils", - "specifiers": [ - "fetchWithTimeout", - "TimeoutError" - ] - }, - { - "source": "./agent-search", - "specifiers": [ - "AgentSearchResponse" - ] - }, - { - "source": "./tauri-bindings", - "specifiers": [ - "isTauri", - "tauriRecallMemory", - "tauriSaveMemory", - "tauriSearchEntities", - "tauriGetIdentity", - "FrameImportance", - "FrameSource", - "IdentityResponse" - ] - }, - { - "source": "./types", - "specifiers": [ - "Workspace", - "WorkspaceContext", - "ChatMessage", - "MemoryFrame", - "Memory", - "AgentStep", - "Session", - "SkillPack", - "FleetSession", - "CronJob", - "Notification", - "AgentStatus", - "Persona", - "SystemHealth", - "Settings", - "StreamEvent", - "KGNode", - "KGEdge", - "ModelPricing", - "WaggleSignal", - "FileEntry", - "WorkspaceTemplate", - "TimelineEvent", - "HomeBriefing", - "OvernightSummary", - "QuickCaptureInput", - "WorkspaceStateView", - "WorkspaceActivityEvent", - "WorkspaceTask", - "Artifact", - "RelatedSearchResult", - "Agent", - "AgentTrace", - "Automation", - "AutomationLog", - "MemoryTrace" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "Command", - "CommandResult", - "WorkspaceType", - "ConnectorDefinition", - "ConnectorHealth", - "McpInstance", - "ExtensionType" - ] - } - ], - "exports": [ - "AdapterHttpError", - "LocalAdapter", - "adapter" - ], - "totalLines": 3094, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/agent-center-display.test.ts": { - "filePath": "apps/web/src/lib/agent-center-display.test.ts", - "contentHash": "2759a784e46356007badb5bce0cdf40cddd54a0f62ac6cb2fc9026275e808493", - "functions": [ - { - "name": "makeAgent", - "params": [ - "over" - ], - "returnType": "Agent", - "exported": false, - "lineCount": 8 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "AGENT_RUN_STATES" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "Agent" - ] - }, - { - "source": "./agent-center-display", - "specifiers": [ - "AGENT_STATE_META", - "AGENT_CENTER_TABS", - "filterAgentsByTab", - "formatSuccessRate", - "formatRelativeTime", - "agentKpis", - "workspaceAmbiguityIds" - ] - } - ], - "exports": [], - "totalLines": 130, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/agent-center-display.ts": { - "filePath": "apps/web/src/lib/agent-center-display.ts", - "contentHash": "3aa3dc87ff8882482b45979fb9f3e86c7ad367d24f9a70f0b11c750521fbe301", - "functions": [ - { - "name": "filterAgentsByTab", - "params": [ - "agents", - "tab" - ], - "returnType": "Agent[]", - "exported": true, - "lineCount": 6 - }, - { - "name": "formatSuccessRate", - "params": [ - "rate" - ], - "returnType": "string", - "exported": true, - "lineCount": 4 - }, - { - "name": "formatRelativeTime", - "params": [ - "iso", - "now" - ], - "returnType": "string", - "exported": true, - "lineCount": 11 - }, - { - "name": "agentKpis", - "params": [ - "agents" - ], - "returnType": "{\r\n total: number;\r\n running: number;\r\n /** Mean of the agents that HAVE a derived rate; null when none do. */\r\n avgSuccessRate: number | null;\r\n}", - "exported": true, - "lineCount": 16 - }, - { - "name": "workspaceAmbiguityIds", - "params": [ - "err" - ], - "returnType": "string[] | null", - "exported": true, - "lineCount": 7 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/shared", - "specifiers": [ - "AgentRunState", - "AgentType" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "Agent" - ] - }, - { - "source": "@/components/ui/status-badge", - "specifiers": [ - "StatusTone" - ] - } - ], - "exports": [ - "AGENT_STATE_META", - "AGENT_CENTER_TABS", - "filterAgentsByTab", - "formatSuccessRate", - "formatRelativeTime", - "agentKpis", - "workspaceAmbiguityIds" - ], - "totalLines": 97, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/agent-search.test.ts": { - "filePath": "apps/web/src/lib/agent-search.test.ts", - "contentHash": "8b51cb65935f065a446b992ba4b742d94efb9c24a86de28ed430736713cabcd8", - "functions": [ - { - "name": "sug", - "params": [ - "install" - ], - "returnType": "AgentSearchSuggestion", - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "./agent-search", - "specifiers": [ - "installTargetFor", - "AgentSearchSuggestion" - ] - } - ], - "exports": [], - "totalLines": 23, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/agent-search.ts": { - "filePath": "apps/web/src/lib/agent-search.ts", - "contentHash": "a79ccae27c3a2a8d707e768302bb119bb150ac73e73889ef0803aa4911dbb94f", - "functions": [ - { - "name": "installTargetFor", - "params": [ - "s" - ], - "returnType": "InstallTarget | null", - "exported": true, - "lineCount": 11 - } - ], - "classes": [], - "imports": [ - { - "source": "./install-store", - "specifiers": [ - "InstallTarget" - ] - } - ], - "exports": [ - "installTargetFor" - ], - "totalLines": 60, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/app-deeplink.ts": { - "filePath": "apps/web/src/lib/app-deeplink.ts", - "contentHash": "33d49e4902749c1036fcdf67c3d8eda66e0cbe7453d7624f6df80fbcc8f6cdce", - "functions": [ - { - "name": "stashDeepLink", - "params": [ - "detail" - ], - "returnType": "void", - "exported": true, - "lineCount": 4 - }, - { - "name": "consumeDeepLink", - "params": [ - "appId" - ], - "returnType": "AppDeepLink | null", - "exported": true, - "lineCount": 5 - } - ], - "classes": [], - "imports": [], - "exports": [ - "stashDeepLink", - "consumeDeepLink" - ], - "totalLines": 38, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/automation-display.test.ts": { - "filePath": "apps/web/src/lib/automation-display.test.ts", - "contentHash": "a7b5e3fb2aab064dd16a75252a509e0ae44717c28231a8648ac28f58afc318aa", - "functions": [ - { - "name": "log", - "params": [ - "success" - ], - "returnType": "AutomationLog", - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "AutomationLog" - ] - }, - { - "source": "./automation-display", - "specifiers": [ - "AUTOMATION_STATE_META", - "AutomationViewStatus", - "deriveAutomationStatus", - "successRateFromLogs", - "formatRatePercent", - "describeTrigger" - ] - } - ], - "exports": [], - "totalLines": 90, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/automation-display.ts": { - "filePath": "apps/web/src/lib/automation-display.ts", - "contentHash": "2ce836a4e9cf089726314a2ac503c401d404428134b9faf218b457db95536520", - "functions": [ - { - "name": "deriveAutomationStatus", - "params": [ - "a", - "lastLog", - "runningNow" - ], - "returnType": "AutomationViewStatus", - "exported": true, - "lineCount": 12 - }, - { - "name": "successRateFromLogs", - "params": [ - "logs" - ], - "returnType": "number | null", - "exported": true, - "lineCount": 4 - }, - { - "name": "formatRatePercent", - "params": [ - "rate" - ], - "returnType": "string", - "exported": true, - "lineCount": 4 - }, - { - "name": "describeTrigger", - "params": [ - "a" - ], - "returnType": "string", - "exported": true, - "lineCount": 4 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/shared", - "specifiers": [ - "Automation" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "AutomationLog" - ] - }, - { - "source": "@/components/ui/status-badge", - "specifiers": [ - "StatusTone" - ] - }, - { - "source": "@/lib/cron-presets", - "specifiers": [ - "describeCronExpr" - ] - } - ], - "exports": [ - "AUTOMATION_STATE_META", - "deriveAutomationStatus", - "successRateFromLogs", - "formatRatePercent", - "describeTrigger" - ], - "totalLines": 74, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/brain-health.test.ts": { - "filePath": "apps/web/src/lib/brain-health.test.ts", - "contentHash": "eca4cab91551db92814129813f7296a4ac63a3aabef5b4cafafa0596c31029f0", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "./brain-health", - "specifiers": [ - "computeBrainHealth", - "brainHealthTier", - "brainHealthBreakdown", - "HEALTH_TARGETS", - "HEALTH_WEIGHTS" - ] - } - ], - "exports": [], - "totalLines": 134, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/brain-health.ts": { - "filePath": "apps/web/src/lib/brain-health.ts", - "contentHash": "38f3a0d26cc184d4ccea554df7642bf2d69b64889198de9aa30044ffdd7d3937", - "functions": [ - { - "name": "computeBrainHealth", - "params": [ - "counts" - ], - "returnType": "number", - "exported": true, - "lineCount": 16 - }, - { - "name": "brainHealthTier", - "params": [ - "score" - ], - "returnType": "BrainHealthTier", - "exported": true, - "lineCount": 7 - }, - { - "name": "brainHealthBreakdown", - "params": [ - "counts" - ], - "returnType": "{\r\n frames: number;\r\n entities: number;\r\n relations: number;\r\n}", - "exported": true, - "lineCount": 15 - } - ], - "classes": [], - "imports": [], - "exports": [ - "HEALTH_TARGETS", - "HEALTH_WEIGHTS", - "TIER_LABELS", - "computeBrainHealth", - "brainHealthTier", - "brainHealthBreakdown" - ], - "totalLines": 105, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/briefing-highlights.test.ts": { - "filePath": "apps/web/src/lib/briefing-highlights.test.ts", - "contentHash": "df74305f5cf5bef840d0abc78423699eb743f935b05c5c0984961709c62396c1", - "functions": [ - { - "name": "make", - "params": [ - "overrides" - ], - "returnType": "BriefingFrameLike", - "exported": false, - "lineCount": 8 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "./briefing-highlights", - "specifiers": [ - "BRIEFING_HIGHLIGHT_LIMIT", - "selectBriefingHighlights", - "BriefingFrameLike" - ] - } - ], - "exports": [], - "totalLines": 107, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/briefing-highlights.ts": { - "filePath": "apps/web/src/lib/briefing-highlights.ts", - "contentHash": "5d0f198b5bf2e870230b10e262b39aa9d7a271c3a40e820a3f6119d843e58681", - "functions": [ - { - "name": "importanceScore", - "params": [ - "f" - ], - "returnType": "number", - "exported": false, - "lineCount": 11 - }, - { - "name": "timestampMs", - "params": [ - "f" - ], - "returnType": "number", - "exported": false, - "lineCount": 9 - }, - { - "name": "isConcrete", - "params": [ - "f" - ], - "returnType": "boolean", - "exported": false, - "lineCount": 10 - }, - { - "name": "highlightKey", - "params": [ - "f" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "selectBriefingHighlights", - "params": [ - "frames" - ], - "returnType": "T[]", - "exported": true, - "lineCount": 27 - } - ], - "classes": [], - "imports": [], - "exports": [ - "BRIEFING_HIGHLIGHT_LIMIT", - "selectBriefingHighlights" - ], - "totalLines": 113, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/browse-breadcrumbs.test.ts": { - "filePath": "apps/web/src/lib/browse-breadcrumbs.test.ts", - "contentHash": "469e754cb5a5d2235d67292a804203eb978e5c65d5d6ad2de0ea0db57e7182c9", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "./browse-breadcrumbs", - "specifiers": [ - "buildBreadcrumbs" - ] - } - ], - "exports": [], - "totalLines": 113, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/browse-breadcrumbs.ts": { - "filePath": "apps/web/src/lib/browse-breadcrumbs.ts", - "contentHash": "ea358040fc0df1915afc9ac935a0f9c49c89a078895e56214188735bbd29d8e6", - "functions": [ - { - "name": "buildBreadcrumbs", - "params": [ - "currentPath", - "rootLabel", - "storageType" - ], - "returnType": "Crumb[]", - "exported": true, - "lineCount": 14 - }, - { - "name": "buildLocalCrumbs", - "params": [ - "currentPath", - "rootLabel" - ], - "returnType": "Crumb[]", - "exported": false, - "lineCount": 24 - }, - { - "name": "buildPosixCrumbs", - "params": [ - "currentPath", - "rootLabel" - ], - "returnType": "Crumb[]", - "exported": false, - "lineCount": 10 - }, - { - "name": "splitPathParts", - "params": [ - "p" - ], - "returnType": "string[]", - "exported": false, - "lineCount": 3 - }, - { - "name": "joinWindows", - "params": [ - "base", - "part" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [], - "exports": [ - "buildBreadcrumbs" - ], - "totalLines": 89, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/chat-header-layout.test.ts": { - "filePath": "apps/web/src/lib/chat-header-layout.test.ts", - "contentHash": "248d8be651c48a810512375fd7120564fab7f31cd0d1ea5e8d67bee01bb1932b", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "./chat-header-layout", - "specifiers": [ - "CHAT_HEADER_COMPACT_THRESHOLD_PX", - "CHAT_HEADER_OVERFLOW_CONTROLS", - "CHAT_HEADER_PRIMARY_CONTROLS", - "shouldCollapseChatHeader" - ] - } - ], - "exports": [], - "totalLines": 64, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/chat-header-layout.ts": { - "filePath": "apps/web/src/lib/chat-header-layout.ts", - "contentHash": "d142ba7e3fb96161cbcdc7aa8f092a92169a3b45dfc255dafa590c3d334d4a13", - "functions": [ - { - "name": "shouldCollapseChatHeader", - "params": [ - "containerWidth" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 5 - } - ], - "classes": [], - "imports": [], - "exports": [ - "CHAT_HEADER_COMPACT_THRESHOLD_PX", - "shouldCollapseChatHeader", - "CHAT_HEADER_OVERFLOW_CONTROLS", - "CHAT_HEADER_PRIMARY_CONTROLS" - ], - "totalLines": 54, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/clerk.ts": { - "filePath": "apps/web/src/lib/clerk.ts", - "contentHash": "7af9565cb16f0421b5c6949c3cb8512276f5d56332f70569e0e8bb22ffe20c4c", - "functions": [ - { - "name": "isValidPublishableKey", - "params": [ - "key" - ], - "returnType": "boolean", - "exported": false, - "lineCount": 8 - }, - { - "name": "clerkPublishableKey", - "params": [], - "returnType": "string | undefined", - "exported": true, - "lineCount": 4 - }, - { - "name": "clerkAppearance", - "params": [ - "isDark" - ], - "exported": true, - "lineCount": 18 - } - ], - "classes": [], - "imports": [ - { - "source": "@clerk/themes", - "specifiers": [ - "dark" - ] - } - ], - "exports": [ - "clerkPublishableKey", - "clerkAppearance" - ], - "totalLines": 70, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/command-catalog.ts": { - "filePath": "apps/web/src/lib/command-catalog.ts", - "contentHash": "31660202117bc8df3356d37245bb37dee27045712911ef7b38830d455df9a9ea", - "functions": [ - { - "name": "buildCommandCatalog", - "params": [ - "ctx" - ], - "returnType": "CatalogGroup[]", - "exported": true, - "lineCount": 60 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "ElementType" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Home", - "MessageSquare", - "Brain", - "ListTodo", - "Library", - "UserCircle", - "Plus", - "Rocket", - "Settings", - "Sparkles", - "Network", - "Server", - "Plug", - "Store", - "Package", - "Shield", - "Clock", - "FolderOpen", - "Lock", - "Activity", - "History", - "BarChart3", - "Users", - "Radio", - "Gauge", - "Monitor", - "LayoutGrid" - ] - } - ], - "exports": [ - "buildCommandCatalog" - ], - "totalLines": 121, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/context-menu-index.test.ts": { - "filePath": "apps/web/src/lib/context-menu-index.test.ts", - "contentHash": "3adf0e95391f71b673a888b5dc50f82f5fb31a5be246266fac6debbf1a1de554", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "./context-menu-index", - "specifiers": [ - "isActionItem", - "actionIndexForRenderItem", - "ContextMenuActionItem" - ] - } - ], - "exports": [], - "totalLines": 74, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/context-menu-index.ts": { - "filePath": "apps/web/src/lib/context-menu-index.ts", - "contentHash": "f13ce1741449fd3906779acdfd2760f7fc16eb7c1d33002f797b6346484d3edb", - "functions": [ - { - "name": "isActionItem", - "params": [ - "item" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 3 - }, - { - "name": "actionIndexForRenderItem", - "params": [ - "items", - "i" - ], - "returnType": "number | null", - "exported": true, - "lineCount": 9 - } - ], - "classes": [], - "imports": [], - "exports": [ - "isActionItem", - "actionIndexForRenderItem" - ], - "totalLines": 39, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/context-rail-fetch.test.ts": { - "filePath": "apps/web/src/lib/context-rail-fetch.test.ts", - "contentHash": "dba4fef58359356e97541cc8757385133a1676bb2113a21b340358ddb2084f7d", - "functions": [ - { - "name": "mkFrame", - "params": [ - "overrides" - ], - "returnType": "MemoryFrame", - "exported": false, - "lineCount": 12 - }, - { - "name": "mkNode", - "params": [ - "id", - "label", - "type" - ], - "returnType": "KGNode", - "exported": false, - "lineCount": 3 - }, - { - "name": "mkEdge", - "params": [ - "source", - "target", - "relationship" - ], - "returnType": "KGEdge", - "exported": false, - "lineCount": 3 - }, - { - "name": "mkAdapter", - "params": [ - "searchMemory", - "getKnowledgeGraph" - ], - "returnType": "ContextRailAdapter", - "exported": false, - "lineCount": 7 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "./context-rail-fetch", - "specifiers": [ - "buildMemoryQuery", - "rankNeighbors", - "fetchContextRailItems", - "DEFAULT_MEMORY_LIMIT", - "DEFAULT_NEIGHBOR_LIMIT", - "ContextRailAdapter", - "ContextRailTarget" - ] - }, - { - "source": "./types", - "specifiers": [ - "MemoryFrame", - "KGNode", - "KGEdge" - ] - } - ], - "exports": [], - "totalLines": 223, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/context-rail-fetch.ts": { - "filePath": "apps/web/src/lib/context-rail-fetch.ts", - "contentHash": "8085b55c01bbef7cd757d2e5f7bcf7d17f08bdfe89127e2193e20ef897a17557", - "functions": [ - { - "name": "buildMemoryQuery", - "params": [ - "target" - ], - "returnType": "string", - "exported": true, - "lineCount": 6 - }, - { - "name": "frameToItem", - "params": [ - "frame" - ], - "returnType": "ContextRailItem", - "exported": false, - "lineCount": 21 - }, - { - "name": "nodeToItem", - "params": [ - "node" - ], - "returnType": "ContextRailItem", - "exported": false, - "lineCount": 8 - }, - { - "name": "edgeToItem", - "params": [ - "edge", - "nodesById" - ], - "returnType": "ContextRailItem", - "exported": false, - "lineCount": 12 - }, - { - "name": "rankNeighbors", - "params": [ - "entityId", - "nodes", - "edges" - ], - "returnType": "{ neighbors: KGNode[]; relations: KGEdge[] }", - "exported": true, - "lineCount": 34 - }, - { - "name": "fetchContextRailItems", - "params": [ - "target", - "adapter", - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 41 - } - ], - "classes": [], - "imports": [ - { - "source": "./types", - "specifiers": [ - "MemoryFrame", - "KGNode", - "KGEdge" - ] - } - ], - "exports": [ - "DEFAULT_MEMORY_LIMIT", - "DEFAULT_NEIGHBOR_LIMIT", - "DEFAULT_RELATION_LIMIT", - "buildMemoryQuery", - "rankNeighbors", - "fetchContextRailItems" - ], - "totalLines": 199, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/cron-presets.test.ts": { - "filePath": "apps/web/src/lib/cron-presets.test.ts", - "contentHash": "e20f812514d39c136d92e7eaf611c0cb65e0bb290f00d450b0ccfea2624cb414", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "./cron-presets", - "specifiers": [ - "CRON_SCHEDULE_PRESETS", - "CRON_JOB_TYPES", - "DEFAULT_CRON_PRESET_ID", - "DEFAULT_CRON_JOB_TYPE", - "getCronPreset", - "presetForExpr", - "describeCronExpr", - "humanizeCron", - "isPlausibleCronExpr" - ] - } - ], - "exports": [], - "totalLines": 142, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/cron-presets.ts": { - "filePath": "apps/web/src/lib/cron-presets.ts", - "contentHash": "9548cb451c48af14cb0173eac186441689e91aeba72d28098421e5ecdce2ba05", - "functions": [ - { - "name": "getCronPreset", - "params": [ - "id" - ], - "returnType": "CronSchedulePreset | undefined", - "exported": true, - "lineCount": 3 - }, - { - "name": "presetForExpr", - "params": [ - "cronExpr" - ], - "returnType": "CronSchedulePreset | undefined", - "exported": true, - "lineCount": 4 - }, - { - "name": "describeCronExpr", - "params": [ - "cronExpr" - ], - "returnType": "string", - "exported": true, - "lineCount": 8 - }, - { - "name": "formatCronTime", - "params": [ - "min", - "hour" - ], - "returnType": "string | null", - "exported": false, - "lineCount": 9 - }, - { - "name": "ordinal", - "params": [ - "d" - ], - "returnType": "string", - "exported": false, - "lineCount": 6 - }, - { - "name": "humanizeCron", - "params": [ - "cronExpr" - ], - "returnType": "string | null", - "exported": true, - "lineCount": 34 - }, - { - "name": "isPlausibleCronExpr", - "params": [ - "cronExpr" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 5 - } - ], - "classes": [], - "imports": [], - "exports": [ - "CRON_SCHEDULE_PRESETS", - "CRON_JOB_TYPES", - "DEFAULT_CRON_PRESET_ID", - "DEFAULT_CRON_JOB_TYPE", - "getCronPreset", - "presetForExpr", - "describeCronExpr", - "humanizeCron", - "isPlausibleCronExpr" - ], - "totalLines": 182, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/decode-entities.ts": { - "filePath": "apps/web/src/lib/decode-entities.ts", - "contentHash": "c4568034c5ee67cd7a355bfdc3f3afb8d8517017e3e7b02bcf499ea301490b8b", - "functions": [ - { - "name": "decodeHtmlEntities", - "params": [ - "text" - ], - "returnType": "string", - "exported": true, - "lineCount": 5 - } - ], - "classes": [], - "imports": [], - "exports": [ - "decodeHtmlEntities" - ], - "totalLines": 11, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/dedupe-packs.test.ts": { - "filePath": "apps/web/src/lib/dedupe-packs.test.ts", - "contentHash": "25d1dec55b4c11782079ebae958e6692289f7d96002c126844a233c1e6b0a58d", - "functions": [ - { - "name": "pack", - "params": [ - "over" - ], - "returnType": "SkillPack", - "exported": false, - "lineCount": 10 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "./dedupe-packs", - "specifiers": [ - "dedupePacks", - "packKey" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "SkillPack" - ] - } - ], - "exports": [], - "totalLines": 68, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/dedupe-packs.ts": { - "filePath": "apps/web/src/lib/dedupe-packs.ts", - "contentHash": "e4024f4f9a5ea1a4c95a3067bf669b1be2b82082c9a93b80edc913575aaf5ad1", - "functions": [ - { - "name": "packKey", - "params": [ - "pack" - ], - "returnType": "string", - "exported": true, - "lineCount": 3 - }, - { - "name": "dedupePacks", - "params": [ - "packs" - ], - "returnType": "SkillPack[]", - "exported": true, - "lineCount": 11 - } - ], - "classes": [], - "imports": [ - { - "source": "@/lib/types", - "specifiers": [ - "SkillPack" - ] - } - ], - "exports": [ - "packKey", - "dedupePacks" - ], - "totalLines": 30, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/dock-labels.test.ts": { - "filePath": "apps/web/src/lib/dock-labels.test.ts", - "contentHash": "9795b808894546e5c26a49450b80367dedeefeb62dc6d1d3bd2f4772fe80332f", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "./dock-labels", - "specifiers": [ - "shouldShowDockLabels", - "DOCK_LABELS_AGE_THRESHOLD_MS", - "DOCK_LABELS_SESSION_THRESHOLD" - ] - } - ], - "exports": [], - "totalLines": 110, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/dock-labels.ts": { - "filePath": "apps/web/src/lib/dock-labels.ts", - "contentHash": "f858fcad8b9ce29ac3f5e6004dc0710f6c03965499de6c138b4ec43d77704d3c", - "functions": [ - { - "name": "shouldShowDockLabels", - "params": [ - "input" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 16 - } - ], - "classes": [], - "imports": [], - "exports": [ - "DOCK_LABELS_SESSION_THRESHOLD", - "DOCK_LABELS_AGE_THRESHOLD_MS", - "shouldShowDockLabels" - ], - "totalLines": 52, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/dock-nudge.test.ts": { - "filePath": "apps/web/src/lib/dock-nudge.test.ts", - "contentHash": "66a7a8f7f4858f9713b4a8e7082eada37d7534fc8a85e879adcb314506bde4e4", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "./dock-nudge", - "specifiers": [ - "DOCK_NUDGE_MILESTONES", - "DOCK_NUDGE_COPY", - "findPendingMilestone", - "copyForMilestone" - ] - } - ], - "exports": [], - "totalLines": 81, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/dock-nudge.ts": { - "filePath": "apps/web/src/lib/dock-nudge.ts", - "contentHash": "b6fc07052c0c3f7cc35978cd140617b7a20ec32089b75e522c5a897f2abb29a8", - "functions": [ - { - "name": "findPendingMilestone", - "params": [ - "sessionCount", - "dismissed" - ], - "returnType": "number | null", - "exported": true, - "lineCount": 13 - }, - { - "name": "copyForMilestone", - "params": [ - "milestone" - ], - "returnType": "DockNudgeCopy", - "exported": true, - "lineCount": 8 - } - ], - "classes": [], - "imports": [], - "exports": [ - "DOCK_NUDGE_MILESTONES", - "DOCK_NUDGE_COPY", - "findPendingMilestone", - "copyForMilestone" - ], - "totalLines": 66, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/dock-tiers.ts": { - "filePath": "apps/web/src/lib/dock-tiers.ts", - "contentHash": "75f9f37dd3b42d2ae73b5b507f5054abde2b8fea5eafe83f806f883d60011af4", - "functions": [ - { - "name": "filterByBillingTier", - "params": [ - "entries", - "billingTier" - ], - "returnType": "DockEntry[]", - "exported": false, - "lineCount": 15 - }, - { - "name": "getDockForTier", - "params": [ - "tier", - "billingTier" - ], - "returnType": "DockEntry[]", - "exported": true, - "lineCount": 4 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "ElementType" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "LayoutDashboard", - "MessageSquare", - "FolderOpen", - "Settings", - "Bot", - "Brain", - "Zap", - "Activity", - "Radio", - "Clock", - "Package", - "Plug", - "Store", - "Lock", - "Users", - "Shield", - "Rocket", - "FileStack", - "Server" - ] - } - ], - "exports": [ - "DEFAULT_TIER", - "TIER_DOCK_CONFIG", - "getDockForTier" - ], - "totalLines": 172, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/extension-catalog.test.ts": { - "filePath": "apps/web/src/lib/extension-catalog.test.ts", - "contentHash": "c53a726535c90e2ade7d018733075cf0deb64bfd9cf07ba8b0b3e1f85a2be836", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "ConnectorDefinition" - ] - }, - { - "source": "./types", - "specifiers": [ - "SkillPack" - ] - }, - { - "source": "./extension-catalog", - "specifiers": [ - "filterExtensions", - "sortExtensions", - "fromConnector", - "fromMarketplacePackage", - "fromMcpCatalogRow", - "fromModel", - "fromPersona", - "fromSkillPack", - "fromTemplate", - "Extension" - ] - } - ], - "exports": [], - "totalLines": 130, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/extension-catalog.ts": { - "filePath": "apps/web/src/lib/extension-catalog.ts", - "contentHash": "37e3baf21c94e72d4f251bfe4abd162e3b13cb2a3399e5b7c3c4ccf42cc875a5", - "functions": [ - { - "name": "lifecycle", - "params": [ - "installed" - ], - "returnType": "ExtensionLifecycle", - "exported": false, - "lineCount": 1 - }, - { - "name": "fromMarketplacePackage", - "params": [ - "pkg" - ], - "returnType": "Extension", - "exported": true, - "lineCount": 19 - }, - { - "name": "fromSkillPack", - "params": [ - "pack" - ], - "returnType": "Extension", - "exported": true, - "lineCount": 24 - }, - { - "name": "fromConnector", - "params": [ - "conn" - ], - "returnType": "Extension", - "exported": true, - "lineCount": 20 - }, - { - "name": "fromPersona", - "params": [ - "persona" - ], - "returnType": "Extension", - "exported": true, - "lineCount": 14 - }, - { - "name": "fromModel", - "params": [ - "modelId" - ], - "returnType": "Extension", - "exported": true, - "lineCount": 14 - }, - { - "name": "fromTemplate", - "params": [ - "tpl" - ], - "returnType": "Extension", - "exported": true, - "lineCount": 15 - }, - { - "name": "fromMcpCatalogRow", - "params": [ - "row" - ], - "returnType": "Extension", - "exported": true, - "lineCount": 18 - }, - { - "name": "filterExtensions", - "params": [ - "list", - "query" - ], - "returnType": "Extension[]", - "exported": true, - "lineCount": 7 - }, - { - "name": "sortExtensions", - "params": [ - "list" - ], - "returnType": "Extension[]", - "exported": true, - "lineCount": 6 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/shared", - "specifiers": [ - "ExtensionType" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "ConnectorDefinition" - ] - }, - { - "source": "./types", - "specifiers": [ - "Persona", - "WorkspaceTemplate" - ] - } - ], - "exports": [ - "fromMarketplacePackage", - "fromSkillPack", - "fromConnector", - "fromPersona", - "fromModel", - "fromTemplate", - "fromMcpCatalogRow", - "filterExtensions", - "sortExtensions" - ], - "totalLines": 246, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/feature-gates.ts": { - "filePath": "apps/web/src/lib/feature-gates.ts", - "contentHash": "a31caefd61a047762d944f8275096240bcfbcac7e9321a0ca804a85b35242e93", - "functions": [ - { - "name": "dockTierToPlanTier", - "params": [ - "dockTier" - ], - "returnType": "PlanTier", - "exported": true, - "lineCount": 9 - }, - { - "name": "isFeatureEnabled", - "params": [ - "feature", - "currentTier" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 5 - }, - { - "name": "getGate", - "params": [ - "feature" - ], - "returnType": "FeatureGate | undefined", - "exported": true, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "./dock-tiers", - "specifiers": [ - "UserTier" - ] - } - ], - "exports": [ - "FEATURE_GATES", - "dockTierToPlanTier", - "isFeatureEnabled", - "getGate" - ], - "totalLines": 47, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/fetch-utils.ts": { - "filePath": "apps/web/src/lib/fetch-utils.ts", - "contentHash": "efea7742cf37a24e121e85f3ce5c94e27451c16aa37da7b14d11a776ad6ea5ef", - "functions": [ - { - "name": "fetchWithTimeout", - "params": [ - "url", - "options", - "timeoutMs" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 23 - } - ], - "classes": [ - { - "name": "TimeoutError", - "methods": [ - "constructor" - ], - "properties": [], - "exported": true, - "lineCount": 6 - }, - { - "name": "NetworkError", - "methods": [ - "constructor" - ], - "properties": [], - "exported": true, - "lineCount": 6 - } - ], - "imports": [], - "exports": [ - "TimeoutError", - "NetworkError", - "fetchWithTimeout" - ], - "totalLines": 38, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/frame-source.ts": { - "filePath": "apps/web/src/lib/frame-source.ts", - "contentHash": "1136106e685d9912f2e3200cfb9c002912ad90fc822e1080ea234a9ddc68ae87", - "functions": [ - { - "name": "frameSourceLabel", - "params": [ - "source" - ], - "returnType": "string | undefined", - "exported": true, - "lineCount": 4 - }, - { - "name": "frameSourceDescription", - "params": [ - "source" - ], - "returnType": "string | undefined", - "exported": true, - "lineCount": 4 - }, - { - "name": "isVerifiedSource", - "params": [ - "source" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 3 - } - ], - "classes": [], - "imports": [], - "exports": [ - "frameSourceLabel", - "frameSourceDescription", - "isVerifiedSource" - ], - "totalLines": 56, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/fuzzy-match.ts": { - "filePath": "apps/web/src/lib/fuzzy-match.ts", - "contentHash": "8a30dd21a345050ddab00a61a926d3bcec34b1f5ec3ab76105d89b603f038190", - "functions": [ - { - "name": "fuzzyMatch", - "params": [ - "query", - "text" - ], - "returnType": "FuzzyResult", - "exported": true, - "lineCount": 22 - } - ], - "classes": [], - "imports": [], - "exports": [ - "fuzzyMatch" - ], - "totalLines": 33, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/harvest-kind-map.ts": { - "filePath": "apps/web/src/lib/harvest-kind-map.ts", - "contentHash": "92385b62c12f873b18314233bf511df5e9f2e92a8ca10bdb5eb4d57616387f4a", - "functions": [ - { - "name": "memoryKindLabel", - "params": [ - "kind" - ], - "returnType": "string", - "exported": true, - "lineCount": 3 - }, - { - "name": "memoryKindDisplayCategory", - "params": [ - "kind" - ], - "returnType": "MemoryDisplayCategory", - "exported": true, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/shared", - "specifiers": [ - "MemoryKind" - ] - } - ], - "exports": [ - "MEMORY_KIND_META", - "memoryKindLabel", - "memoryKindDisplayCategory", - "MEMORY_DISPLAY_CATEGORIES" - ], - "totalLines": 52, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/import-reminder-state.test.ts": { - "filePath": "apps/web/src/lib/import-reminder-state.test.ts", - "contentHash": "745e881ea53d8748cc28aaf7aa304d98943da112c3105248f92b2ff7f6c102ad", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach" - ] - }, - { - "source": "./import-reminder-state", - "specifiers": [ - "shouldShowImportReminder", - "readDismissedAt", - "writeDismissedAt", - "readRetired", - "writeRetired", - "IMPORT_REMINDER_DISMISSED_KEY", - "IMPORT_REMINDER_RETIRED_KEY", - "DEFAULT_RESHOW_WINDOW_MS" - ] - } - ], - "exports": [], - "totalLines": 157, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/import-reminder-state.ts": { - "filePath": "apps/web/src/lib/import-reminder-state.ts", - "contentHash": "c5e6d5522150956c34d75f985e4b1a693a9d238e4436d480fce58c7cbca63d6b", - "functions": [ - { - "name": "shouldShowImportReminder", - "params": [ - "input" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 16 - }, - { - "name": "readDismissedAt", - "params": [], - "returnType": "string | null", - "exported": true, - "lineCount": 7 - }, - { - "name": "writeDismissedAt", - "params": [ - "iso" - ], - "returnType": "void", - "exported": true, - "lineCount": 7 - }, - { - "name": "readRetired", - "params": [], - "returnType": "boolean", - "exported": true, - "lineCount": 7 - }, - { - "name": "writeRetired", - "params": [], - "returnType": "void", - "exported": true, - "lineCount": 7 - }, - { - "name": "readCCSignature", - "params": [], - "returnType": "string | null", - "exported": true, - "lineCount": 7 - }, - { - "name": "writeCCSignature", - "params": [ - "signature" - ], - "returnType": "void", - "exported": true, - "lineCount": 7 - } - ], - "classes": [], - "imports": [], - "exports": [ - "IMPORT_REMINDER_DISMISSED_KEY", - "IMPORT_REMINDER_RETIRED_KEY", - "IMPORT_REMINDER_CC_SIGNATURE_KEY", - "DEFAULT_RESHOW_WINDOW_MS", - "shouldShowImportReminder", - "readDismissedAt", - "writeDismissedAt", - "readRetired", - "writeRetired", - "readCCSignature", - "writeCCSignature" - ], - "totalLines": 118, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/install-store.test.ts": { - "filePath": "apps/web/src/lib/install-store.test.ts", - "contentHash": "24428517b9c818a51260576183578242b4e4dfa96e067b4df390786dfaeb2f39", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "./install-store", - "specifiers": [ - "rawId", - "isTogglable", - "describeError", - "isTierError" - ] - } - ], - "exports": [], - "totalLines": 58, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/install-store.ts": { - "filePath": "apps/web/src/lib/install-store.ts", - "contentHash": "0a76c8092379976791292b646c0f479e1acea9012d97f0e52cf92d0effae6b34", - "functions": [ - { - "name": "rawId", - "params": [ - "namespacedId" - ], - "returnType": "string", - "exported": true, - "lineCount": 4 - }, - { - "name": "isTogglable", - "params": [ - "target" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 5 - }, - { - "name": "describeError", - "params": [ - "e" - ], - "returnType": "string", - "exported": true, - "lineCount": 4 - }, - { - "name": "isTierError", - "params": [ - "e" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 4 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/shared", - "specifiers": [ - "ExtensionType" - ] - } - ], - "exports": [ - "rawId", - "isTogglable", - "describeError", - "isTierError" - ], - "totalLines": 82, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/kg-export.test.ts": { - "filePath": "apps/web/src/lib/kg-export.test.ts", - "contentHash": "56da0e105169b554640201873a4e54975f2740abd390a0e2c414dac4507d496b", - "functions": [ - { - "name": "makeSvg", - "params": [], - "returnType": "SVGSVGElement", - "exported": false, - "lineCount": 12 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "vi", - "afterEach" - ] - }, - { - "source": "./kg-export", - "specifiers": [ - "KG_THEME_VARS", - "buildKgExportFilename", - "buildKgPngFilename", - "resolveThemeStyleAttr", - "serializeKgSvg", - "downloadKgSvg", - "downloadKgPng" - ] - } - ], - "exports": [], - "totalLines": 325, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/kg-export.ts": { - "filePath": "apps/web/src/lib/kg-export.ts", - "contentHash": "03f6775427b592781b4c67fb64a1bdacf4c35fa4aa75455aa60ed9f1fcae22af", - "functions": [ - { - "name": "buildKgExportFilename", - "params": [ - "now" - ], - "returnType": "string", - "exported": true, - "lineCount": 4 - }, - { - "name": "resolveThemeStyleAttr", - "params": [ - "root", - "vars" - ], - "returnType": "string", - "exported": true, - "lineCount": 14 - }, - { - "name": "serializeKgSvg", - "params": [ - "svg", - "root" - ], - "returnType": "string", - "exported": true, - "lineCount": 20 - }, - { - "name": "downloadKgSvg", - "params": [ - "svg", - "filename" - ], - "returnType": "string", - "exported": true, - "lineCount": 14 - }, - { - "name": "buildKgPngFilename", - "params": [ - "now" - ], - "returnType": "string", - "exported": true, - "lineCount": 4 - }, - { - "name": "downloadKgPng", - "params": [ - "svg", - "filename", - "scale" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 71 - } - ], - "classes": [], - "imports": [], - "exports": [ - "KG_THEME_VARS", - "buildKgExportFilename", - "resolveThemeStyleAttr", - "serializeKgSvg", - "downloadKgSvg", - "buildKgPngFilename", - "downloadKgPng" - ], - "totalLines": 190, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/launcher-prompt-args.test.ts": { - "filePath": "apps/web/src/lib/launcher-prompt-args.test.ts", - "contentHash": "596f27360bed7575179f165e02665dfb84dae8d9f8b8953510983cf35815abb7", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "./launcher-prompt-args", - "specifiers": [ - "promptArgsForTool", - "toolAcceptsInlinePrompt" - ] - } - ], - "exports": [], - "totalLines": 99, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/launcher-prompt-args.ts": { - "filePath": "apps/web/src/lib/launcher-prompt-args.ts", - "contentHash": "2982d2ac217bf020f505fa98db74c6a152a204fccc3d1752088014208a5d093a", - "functions": [ - { - "name": "promptArgsForTool", - "params": [ - "toolId", - "prompt" - ], - "returnType": "string[] | null", - "exported": true, - "lineCount": 41 - }, - { - "name": "toolAcceptsInlinePrompt", - "params": [ - "toolId" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 3 - } - ], - "classes": [], - "imports": [], - "exports": [ - "promptArgsForTool", - "toolAcceptsInlinePrompt" - ], - "totalLines": 97, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/login-briefing-brag.test.ts": { - "filePath": "apps/web/src/lib/login-briefing-brag.test.ts", - "contentHash": "4218a42a423fec1d985d2134cde01b7eb529ea3f56bd9051a142b6829059bd0b", - "functions": [ - { - "name": "mkSummary", - "params": [ - "lastActive", - "pending" - ], - "returnType": "BriefingWorkspaceSummary", - "exported": false, - "lineCount": 6 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "./login-briefing-brag", - "specifiers": [ - "computeBragSummary", - "pickGlobalLastActive", - "timeAgo", - "formatBragLine", - "BriefingWorkspaceSummary" - ] - } - ], - "exports": [], - "totalLines": 234, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/login-briefing-brag.ts": { - "filePath": "apps/web/src/lib/login-briefing-brag.ts", - "contentHash": "b99d82008f35d0049a64b33ffb6eee74e868955d43f43d5bd556aa958f318bac", - "functions": [ - { - "name": "computeBragSummary", - "params": [ - "stats", - "summaries", - "now" - ], - "returnType": "BragSummary", - "exported": true, - "lineCount": 33 - }, - { - "name": "pickGlobalLastActive", - "params": [ - "summaries" - ], - "returnType": "string | null", - "exported": true, - "lineCount": 15 - }, - { - "name": "timeAgo", - "params": [ - "iso", - "now" - ], - "returnType": "string", - "exported": true, - "lineCount": 16 - }, - { - "name": "formatBragLine", - "params": [ - "summary" - ], - "returnType": "string", - "exported": true, - "lineCount": 30 - }, - { - "name": "plural", - "params": [ - "word", - "count" - ], - "returnType": "string", - "exported": false, - "lineCount": 6 - } - ], - "classes": [], - "imports": [], - "exports": [ - "MIN_BRAG_FRAME_COUNT", - "computeBragSummary", - "pickGlobalLastActive", - "timeAgo", - "formatBragLine" - ], - "totalLines": 171, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/login-briefing.test.ts": { - "filePath": "apps/web/src/lib/login-briefing.test.ts", - "contentHash": "de2d213b2209ae3f80a22dc02d3dd9e91293b381ff2a232a35cbd186db4817d3", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach" - ] - }, - { - "source": "./login-briefing", - "specifiers": [ - "shouldShowLoginBriefing", - "readLoginBriefingDismissed", - "writeLoginBriefingDismissed", - "writeLoginBriefingLastDismissedAt", - "readMinutesSinceLastDismiss", - "LOGIN_BRIEFING_DISMISSED_KEY", - "LOGIN_BRIEFING_LAST_DISMISSED_AT_KEY", - "LOGIN_BRIEFING_COOLDOWN_MINUTES" - ] - } - ], - "exports": [], - "totalLines": 115, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/login-briefing.ts": { - "filePath": "apps/web/src/lib/login-briefing.ts", - "contentHash": "846fd4d7d8204169ad04c0048fc8c72bfd1561ea50028b0f2e2e327231d43ec0", - "functions": [ - { - "name": "shouldShowLoginBriefing", - "params": [ - "input" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 11 - }, - { - "name": "readLoginBriefingDismissed", - "params": [], - "returnType": "boolean", - "exported": true, - "lineCount": 7 - }, - { - "name": "writeLoginBriefingDismissed", - "params": [ - "value" - ], - "returnType": "void", - "exported": true, - "lineCount": 7 - }, - { - "name": "writeLoginBriefingLastDismissedAt", - "params": [ - "now" - ], - "returnType": "void", - "exported": true, - "lineCount": 7 - }, - { - "name": "readMinutesSinceLastDismiss", - "params": [ - "now" - ], - "returnType": "number | null", - "exported": true, - "lineCount": 11 - }, - { - "name": "readSkipBriefingParam", - "params": [], - "returnType": "boolean", - "exported": true, - "lineCount": 9 - } - ], - "classes": [], - "imports": [], - "exports": [ - "LOGIN_BRIEFING_DISMISSED_KEY", - "LOGIN_BRIEFING_LAST_DISMISSED_AT_KEY", - "LOGIN_BRIEFING_COOLDOWN_MINUTES", - "shouldShowLoginBriefing", - "readLoginBriefingDismissed", - "writeLoginBriefingDismissed", - "writeLoginBriefingLastDismissedAt", - "readMinutesSinceLastDismiss", - "readSkipBriefingParam" - ], - "totalLines": 101, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/memory-recall-toast.test.ts": { - "filePath": "apps/web/src/lib/memory-recall-toast.test.ts", - "contentHash": "b7be59d556e39dca749b6bb3445b7331331422fa83ef5bd84185104fcad681c9", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "./memory-recall-toast", - "specifiers": [ - "MEMORY_RECALL_TRIGGER_AT", - "MEMORY_RECALL_PREVIEW_LIMIT", - "shouldFireMemoryRecall", - "buildRecallQuery", - "previewRecall" - ] - } - ], - "exports": [], - "totalLines": 106, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/memory-recall-toast.ts": { - "filePath": "apps/web/src/lib/memory-recall-toast.ts", - "contentHash": "2b2e00d01be30fd32a185eef90147b6c238a1fb0c052a1b34635fb0215e9bbe5", - "functions": [ - { - "name": "shouldFireMemoryRecall", - "params": [ - "input" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 5 - }, - { - "name": "buildRecallQuery", - "params": [ - "messages" - ], - "returnType": "string", - "exported": true, - "lineCount": 9 - }, - { - "name": "previewRecall", - "params": [ - "content", - "limit" - ], - "returnType": "string", - "exported": true, - "lineCount": 8 - } - ], - "classes": [], - "imports": [], - "exports": [ - "MEMORY_RECALL_TRIGGER_AT", - "MEMORY_RECALL_PREVIEW_LIMIT", - "MEMORY_RECALL_QUERY_WINDOW", - "shouldFireMemoryRecall", - "buildRecallQuery", - "previewRecall" - ], - "totalLines": 72, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/modal-drag.test.ts": { - "filePath": "apps/web/src/lib/modal-drag.test.ts", - "contentHash": "dd66cf610fc6d898d8f0e525c9f8cf4913b873946166b2c2d2c7b2f2fd7d4a23", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "./modal-drag", - "specifiers": [ - "computeDragConstraints" - ] - } - ], - "exports": [], - "totalLines": 57, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/modal-drag.ts": { - "filePath": "apps/web/src/lib/modal-drag.ts", - "contentHash": "bd9526fafafb5a46143851b6360bca126ed3d07d25df356c24f48da67265773b", - "functions": [ - { - "name": "computeDragConstraints", - "params": [ - "containerWidth", - "containerHeight", - "modalWidth", - "modalHeight" - ], - "returnType": "DragConstraints", - "exported": true, - "lineCount": 16 - } - ], - "classes": [], - "imports": [], - "exports": [ - "computeDragConstraints" - ], - "totalLines": 48, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/onboarding-profile.test.ts": { - "filePath": "apps/web/src/lib/onboarding-profile.test.ts", - "contentHash": "3c92fd6b337b1a638e2ecea59deac140bc1b99bd51e7e763ab7e271ae47804f9", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "./onboarding-profile", - "specifiers": [ - "WORK_TYPES", - "TEAM_SIZES", - "GOALS", - "buildProfilePreview" - ] - } - ], - "exports": [], - "totalLines": 60, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/onboarding-profile.ts": { - "filePath": "apps/web/src/lib/onboarding-profile.ts", - "contentHash": "cf9d93fff5d4ee87dbfdc1d3a7290d560abcea69733cd45469b9430f879816ca", - "functions": [ - { - "name": "labelFor", - "params": [ - "options", - "id" - ], - "returnType": "string | undefined", - "exported": false, - "lineCount": 4 - }, - { - "name": "salutation", - "params": [ - "hour" - ], - "returnType": "string", - "exported": false, - "lineCount": 5 - }, - { - "name": "buildProfilePreview", - "params": [ - "partial", - "now" - ], - "returnType": "string", - "exported": true, - "lineCount": 11 - } - ], - "classes": [], - "imports": [], - "exports": [ - "WORK_TYPES", - "TEAM_SIZES", - "GOALS", - "buildProfilePreview" - ], - "totalLines": 90, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/onboarding-skip.test.ts": { - "filePath": "apps/web/src/lib/onboarding-skip.test.ts", - "contentHash": "0dc769dbe2b596efa87a38c06d2e13a8640327d600379ca69b33a4dc268f5683", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "./onboarding-skip", - "specifiers": [ - "SKIP_SETUP_DEFAULTS" - ] - } - ], - "exports": [], - "totalLines": 38, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/onboarding-skip.ts": { - "filePath": "apps/web/src/lib/onboarding-skip.ts", - "contentHash": "9e71bb5b5a33aa90cf7a3e5e7f8f62630be73dc6ec78fa7163b4e05b2a0b4fc5", - "functions": [], - "classes": [], - "imports": [], - "exports": [ - "SKIP_SETUP_DEFAULTS" - ], - "totalLines": 28, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/onboarding-tier-filter.test.ts": { - "filePath": "apps/web/src/lib/onboarding-tier-filter.test.ts", - "contentHash": "0b658961eb28751c2cb1af1a1fa9aa3b83270bc121f4718c1281814cec02bd6f", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "./onboarding-tier-filter", - "specifiers": [ - "ESSENTIAL_TEMPLATE_IDS", - "ESSENTIAL_PERSONA_IDS", - "getTemplatesForTier", - "getPersonasForTier" - ] - }, - { - "source": "@/components/os/overlays/onboarding/constants", - "specifiers": [ - "TEMPLATES", - "ALL_ONBOARDING_PERSONAS", - "getPersonasForTemplate" - ] - } - ], - "exports": [], - "totalLines": 190, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/onboarding-tier-filter.ts": { - "filePath": "apps/web/src/lib/onboarding-tier-filter.ts", - "contentHash": "47c528df70701126d149cf608ac1b6c7297d3b48fe46abe0e94ea7f69ad49320", - "functions": [ - { - "name": "getTemplatesForTier", - "params": [ - "tier", - "all" - ], - "returnType": "readonly OnboardingTemplate[]", - "exported": true, - "lineCount": 15 - }, - { - "name": "getPersonasForTier", - "params": [ - "tier", - "all" - ], - "returnType": "readonly OnboardingPersona[]", - "exported": true, - "lineCount": 21 - } - ], - "classes": [], - "imports": [ - { - "source": "@/lib/dock-tiers", - "specifiers": [ - "UserTier" - ] - }, - { - "source": "@/components/os/overlays/onboarding/types", - "specifiers": [ - "OnboardingTemplate", - "OnboardingPersona" - ] - } - ], - "exports": [ - "ESSENTIAL_TEMPLATE_IDS", - "ESSENTIAL_PERSONA_IDS", - "getTemplatesForTier", - "getPersonasForTier" - ], - "totalLines": 102, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/persona-display.test.ts": { - "filePath": "apps/web/src/lib/persona-display.test.ts", - "contentHash": "ed12c3dcb02f6f3dc7e715c9c2e483428d4797229d37a723d9264b22db33c7cb", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "./persona-display", - "specifiers": [ - "formatPersonaName" - ] - } - ], - "exports": [], - "totalLines": 28, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/persona-display.ts": { - "filePath": "apps/web/src/lib/persona-display.ts", - "contentHash": "54265a2f613094538483d298a2216727c297b89e3520f363e3da97639c856273", - "functions": [ - { - "name": "formatPersonaName", - "params": [ - "id" - ], - "returnType": "string", - "exported": true, - "lineCount": 7 - } - ], - "classes": [], - "imports": [], - "exports": [ - "formatPersonaName" - ], - "totalLines": 25, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/persona-tier.test.ts": { - "filePath": "apps/web/src/lib/persona-tier.test.ts", - "contentHash": "321f22430e8e700c55a3ca16ef2149c11626914bd68967615c6a2b390b3c72b7", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "./persona-tier", - "specifiers": [ - "UNIVERSAL_MODE_IDS", - "ALL_SPECIALIST_IDS", - "TEMPLATE_SPECIALISTS", - "getPersonaTier", - "getSpecialistsForTemplate", - "isUniversalMode" - ] - } - ], - "exports": [], - "totalLines": 132, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/persona-tier.ts": { - "filePath": "apps/web/src/lib/persona-tier.ts", - "contentHash": "f44fd9e3962ddf85d663f9e080b2f203dec66efe6b81057528227824afe99bdd", - "functions": [ - { - "name": "getPersonaTier", - "params": [ - "id" - ], - "returnType": "PersonaTier", - "exported": true, - "lineCount": 3 - }, - { - "name": "getSpecialistsForTemplate", - "params": [ - "templateId", - "availableIds" - ], - "returnType": "ScopedSpecialists", - "exported": true, - "lineCount": 21 - }, - { - "name": "isUniversalMode", - "params": [ - "id" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 3 - } - ], - "classes": [], - "imports": [], - "exports": [ - "UNIVERSAL_MODE_IDS", - "TEMPLATE_SPECIALISTS", - "ALL_SPECIALIST_IDS", - "getPersonaTier", - "getSpecialistsForTemplate", - "isUniversalMode" - ], - "totalLines": 121, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/persona-tooltip.test.ts": { - "filePath": "apps/web/src/lib/persona-tooltip.test.ts", - "contentHash": "db344e0efa0745d24b6f4d86325bcf645c1392b0aca5b99768bac4d948f4c889", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "./persona-tooltip", - "specifiers": [ - "buildPersonaTooltip", - "MAX_BEST_FOR" - ] - } - ], - "exports": [], - "totalLines": 72, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/persona-tooltip.ts": { - "filePath": "apps/web/src/lib/persona-tooltip.ts", - "contentHash": "9bcd7d0cbc4a2aac13f649774c92aa91d996f4f632ff2d5025b7d503907b9469", - "functions": [ - { - "name": "buildPersonaTooltip", - "params": [ - "p" - ], - "returnType": "PersonaTooltipContent", - "exported": true, - "lineCount": 27 - } - ], - "classes": [], - "imports": [], - "exports": [ - "MAX_BEST_FOR", - "buildPersonaTooltip" - ], - "totalLines": 62, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/personas.ts": { - "filePath": "apps/web/src/lib/personas.ts", - "contentHash": "609741d3a5429fcdbcab46e7c7c57015d5d860584524cdee3ccea8b9bd434940", - "functions": [ - { - "name": "getPersonaById", - "params": [ - "id" - ], - "returnType": "PersonaConfig | undefined", - "exported": true, - "lineCount": 2 - }, - { - "name": "getPersonaAvatar", - "params": [ - "id" - ], - "returnType": "string", - "exported": true, - "lineCount": 2 - } - ], - "classes": [], - "imports": [ - { - "source": "@/assets/personas/analytics.jpeg", - "specifiers": [ - "analyticsAvatar" - ] - }, - { - "source": "@/assets/personas/content-writer.jpeg", - "specifiers": [ - "contentWriterAvatar" - ] - }, - { - "source": "@/assets/personas/forecaster.jpeg", - "specifiers": [ - "forecasterAvatar" - ] - }, - { - "source": "@/assets/personas/hook-analyzer.jpeg", - "specifiers": [ - "hookAnalyzerAvatar" - ] - }, - { - "source": "@/assets/personas/publisher.jpeg", - "specifiers": [ - "publisherAvatar" - ] - }, - { - "source": "@/assets/personas/researcher.jpeg", - "specifiers": [ - "researcherAvatar" - ] - }, - { - "source": "@/assets/personas/synthesizer.jpeg", - "specifiers": [ - "synthesizerAvatar" - ] - }, - { - "source": "@/assets/personas/trend-detector.jpeg", - "specifiers": [ - "trendDetectorAvatar" - ] - } - ], - "exports": [ - "PERSONAS", - "getPersonaById", - "getPersonaAvatar" - ], - "totalLines": 99, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/platform.ts": { - "filePath": "apps/web/src/lib/platform.ts", - "contentHash": "91bbf44fbc0a595266462a8990cab051242655daa4fadaf51c5549d2cf844251", - "functions": [ - { - "name": "isMac", - "params": [], - "returnType": "boolean", - "exported": true, - "lineCount": 3 - } - ], - "classes": [], - "imports": [], - "exports": [ - "isMac", - "cmdKLabel" - ], - "totalLines": 18, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/posthog.test.ts": { - "filePath": "apps/web/src/lib/posthog.test.ts", - "contentHash": "f83ce5165ad5bf61714490d93ffbcf89ed7cd9c1ac05c56f753e100751fdad3d", - "functions": [ - { - "name": "importPostHog", - "params": [], - "exported": false, - "lineCount": 5 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - } - ], - "exports": [], - "totalLines": 132, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/posthog.ts": { - "filePath": "apps/web/src/lib/posthog.ts", - "contentHash": "45edb38dc78b9d0c220a0cfbbceadbdb6d3c19babb5309843807b4c2e0fb6c36", - "functions": [ - { - "name": "isOptedOut", - "params": [], - "returnType": "boolean", - "exported": false, - "lineCount": 8 - }, - { - "name": "initPostHog", - "params": [], - "returnType": "Promise", - "exported": true, - "lineCount": 26 - }, - { - "name": "captureOnboardingComplete", - "params": [ - "payload" - ], - "returnType": "void", - "exported": true, - "lineCount": 14 - }, - { - "name": "optOutPostHog", - "params": [], - "returnType": "void", - "exported": true, - "lineCount": 14 - }, - { - "name": "optInPostHog", - "params": [], - "returnType": "void", - "exported": true, - "lineCount": 14 - } - ], - "classes": [], - "imports": [ - { - "source": "posthog-js/dist/module.no-external", - "specifiers": [ - "posthog" - ] - } - ], - "exports": [ - "initPostHog", - "captureOnboardingComplete", - "optOutPostHog", - "optInPostHog" - ], - "totalLines": 167, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/providers.ts": { - "filePath": "apps/web/src/lib/providers.ts", - "contentHash": "aa6917663683a20072887d0e8367fca84e27ac77197e7ba9aa89e0db77ca98dc", - "functions": [ - { - "name": "loadCustomProviders", - "params": [], - "returnType": "ProviderConfig[]", - "exported": false, - "lineCount": 6 - }, - { - "name": "saveCustomProviders", - "params": [ - "customs" - ], - "exported": false, - "lineCount": 3 - }, - { - "name": "getProviders", - "params": [], - "returnType": "ProviderConfig[]", - "exported": true, - "lineCount": 3 - }, - { - "name": "getProvider", - "params": [ - "id" - ], - "returnType": "ProviderConfig | undefined", - "exported": true, - "lineCount": 3 - } - ], - "classes": [], - "imports": [], - "exports": [ - "getProviders", - "getProvider" - ], - "totalLines": 224, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/render-markdown.test.ts": { - "filePath": "apps/web/src/lib/render-markdown.test.ts", - "contentHash": "a77b1ec79bc54d65d91448c6bfbce932d14773c01a0454064a8b0481fd7fc725", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "./render-markdown", - "specifiers": [ - "renderSimpleMarkdown", - "renderChatMarkdown" - ] - } - ], - "exports": [], - "totalLines": 78, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/render-markdown.ts": { - "filePath": "apps/web/src/lib/render-markdown.ts", - "contentHash": "5ff931e6eda61f4ea9f205ea99810569b3ecd913d1114149f0e000980b33e5dc", - "functions": [ - { - "name": "escapeHtml", - "params": [ - "text" - ], - "returnType": "string", - "exported": false, - "lineCount": 7 - }, - { - "name": "applyInline", - "params": [ - "escaped" - ], - "returnType": "string", - "exported": false, - "lineCount": 13 - }, - { - "name": "renderSimpleMarkdown", - "params": [ - "text" - ], - "returnType": "string", - "exported": true, - "lineCount": 3 - }, - { - "name": "renderChatMarkdown", - "params": [ - "text" - ], - "returnType": "string", - "exported": true, - "lineCount": 29 - } - ], - "classes": [], - "imports": [], - "exports": [ - "renderSimpleMarkdown", - "renderChatMarkdown" - ], - "totalLines": 80, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/risk-display.tsx": { - "filePath": "apps/web/src/lib/risk-display.tsx", - "contentHash": "91dd5a2e934ec0a614036f9808e3d003eea6b672b6c1c9b0e412e9472b7a5f13", - "functions": [ - { - "name": "canAlwaysAllow", - "params": [ - "approvalClass" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 3 - }, - { - "name": "classifyInstallRisk", - "params": [ - "signal" - ], - "returnType": "RiskLevel", - "exported": true, - "lineCount": 6 - }, - { - "name": "isKnownRiskLevel", - "params": [ - "v" - ], - "exported": true, - "lineCount": 3 - }, - { - "name": "actionRisk", - "params": [ - "kind" - ], - "returnType": "RiskLevel", - "exported": true, - "lineCount": 3 - }, - { - "name": "installTrustSource", - "params": [ - "signal" - ], - "returnType": "TrustSource", - "exported": true, - "lineCount": 6 - }, - { - "name": "RiskBadge", - "params": [ - "{ level, className = '' }" - ], - "exported": true, - "lineCount": 9 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/shared", - "specifiers": [ - "RiskLevel", - "ApprovalClass", - "TrustSource" - ] - } - ], - "exports": [ - "RISK_LABELS", - "RISK_TEXT_CLASSES", - "RISK_BADGE_CLASSES", - "canAlwaysAllow", - "classifyInstallRisk", - "isKnownRiskLevel", - "actionRisk", - "TRUST_SOURCE_LABELS", - "installTrustSource", - "RiskBadge" - ], - "totalLines": 142, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/room-state-reducer.test.ts": { - "filePath": "apps/web/src/lib/room-state-reducer.test.ts", - "contentHash": "02ebb27063935234a25cf0427e4ed1d0d5b5d486356adf22376e6834994b8999", - "functions": [ - { - "name": "mkAgent", - "params": [ - "partial" - ], - "returnType": "RoomAgent", - "exported": false, - "lineCount": 10 - }, - { - "name": "mkEvent", - "params": [ - "workspaceId", - "agents" - ], - "returnType": "StatusEvent", - "exported": false, - "lineCount": 8 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "./room-state-reducer", - "specifiers": [ - "applyStatusEvent", - "dedupeAgents", - "pruneRecent", - "flattenWorkspaceMap", - "RoomAgent", - "StatusEvent", - "WorkspaceAgents" - ] - } - ], - "exports": [], - "totalLines": 180, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/room-state-reducer.ts": { - "filePath": "apps/web/src/lib/room-state-reducer.ts", - "contentHash": "a286bb091ed85412a040e9148872dc924dfc7cc1afbbed56574488ad129141aa", - "functions": [ - { - "name": "applyStatusEvent", - "params": [ - "current", - "event", - "now", - "recentWindowMs" - ], - "returnType": "WorkspaceAgents", - "exported": true, - "lineCount": 34 - }, - { - "name": "dedupeAgents", - "params": [ - "agents" - ], - "returnType": "RoomAgent[]", - "exported": true, - "lineCount": 10 - }, - { - "name": "pruneRecent", - "params": [ - "agents", - "now", - "windowMs" - ], - "returnType": "RoomAgent[]", - "exported": true, - "lineCount": 11 - }, - { - "name": "flattenWorkspaceMap", - "params": [ - "workspaceMap", - "filterWorkspaceId" - ], - "returnType": "{\r\n liveAgents: Array<{ agent: RoomAgent; workspaceId: string }>;\r\n recentAgents: Array<{ agent: RoomAgent; workspaceId: string }>;\r\n}", - "exported": true, - "lineCount": 22 - } - ], - "classes": [], - "imports": [], - "exports": [ - "DEFAULT_RECENT_WINDOW_MS", - "applyStatusEvent", - "dedupeAgents", - "pruneRecent", - "flattenWorkspaceMap" - ], - "totalLines": 141, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/routes.ts": { - "filePath": "apps/web/src/lib/routes.ts", - "contentHash": "05753dbcb46a0b5427d4632a3d04b3e8d0edb87c7fc2a8b9d519707bb8c2a4f7", - "functions": [ - { - "name": "isAppId", - "params": [ - "value" - ], - "exported": true, - "lineCount": 3 - }, - { - "name": "routeFor", - "params": [ - "appId", - "ctx" - ], - "returnType": "string", - "exported": true, - "lineCount": 11 - }, - { - "name": "queryString", - "params": [ - "params" - ], - "returnType": "string", - "exported": true, - "lineCount": 9 - }, - { - "name": "routeForSearchResult", - "params": [ - "type", - "id", - "ctx" - ], - "returnType": "string | null", - "exported": true, - "lineCount": 30 - }, - { - "name": "matchNavRoute", - "params": [ - "pathname", - "routes" - ], - "returnType": "string | null", - "exported": true, - "lineCount": 9 - } - ], - "classes": [], - "imports": [ - { - "source": "@/lib/dock-tiers", - "specifiers": [ - "AppId" - ] - } - ], - "exports": [ - "APP_ROUTES", - "isAppId", - "routeFor", - "queryString", - "routeForSearchResult", - "matchNavRoute" - ], - "totalLines": 155, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/settings-tier-filter.test.ts": { - "filePath": "apps/web/src/lib/settings-tier-filter.test.ts", - "contentHash": "eb86e9e7161d6a5dcb59cce1aafd74db3cacf5ea8a7412fc1284764469939aa0", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "./settings-tier-filter", - "specifiers": [ - "ESSENTIAL_SETTINGS_TAB_IDS", - "STANDARD_SETTINGS_TAB_IDS", - "POWER_SETTINGS_TAB_IDS", - "getSettingsTabsForTier", - "resolveActiveSettingsTab" - ] - } - ], - "exports": [], - "totalLines": 175, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/settings-tier-filter.ts": { - "filePath": "apps/web/src/lib/settings-tier-filter.ts", - "contentHash": "532be548c31f1b585c2f77cf16a0978401edfc9c9dbbcbcef1dbf6695414bd16", - "functions": [ - { - "name": "getSettingsTabsForTier", - "params": [ - "tier", - "all" - ], - "returnType": "readonly T[]", - "exported": true, - "lineCount": 10 - }, - { - "name": "resolveActiveSettingsTab", - "params": [ - "tier", - "active", - "all" - ], - "returnType": "string | null", - "exported": true, - "lineCount": 12 - } - ], - "classes": [], - "imports": [ - { - "source": "@/lib/dock-tiers", - "specifiers": [ - "UserTier" - ] - } - ], - "exports": [ - "ESSENTIAL_SETTINGS_TAB_IDS", - "STANDARD_SETTINGS_TAB_IDS", - "POWER_SETTINGS_TAB_IDS", - "getSettingsTabsForTier", - "resolveActiveSettingsTab" - ], - "totalLines": 90, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/shape-selection.test.ts": { - "filePath": "apps/web/src/lib/shape-selection.test.ts", - "contentHash": "f66b33f0b4575ff0103dd7fc390234ef45de229a1ed7b7dd46ca523907e0e1c6", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach" - ] - }, - { - "source": "./shape-selection", - "specifiers": [ - "AVAILABLE_SHAPES", - "DEFAULT_SHAPE", - "getSelectedShape", - "setSelectedShape", - "PromptShape" - ] - } - ], - "exports": [], - "totalLines": 102, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/shape-selection.ts": { - "filePath": "apps/web/src/lib/shape-selection.ts", - "contentHash": "ca1cb1333b2db9d908c1506d325a6b15d44d6820f6da9fa2f262f445fd286098", - "functions": [ - { - "name": "isValidShape", - "params": [ - "value" - ], - "exported": false, - "lineCount": 3 - }, - { - "name": "getSelectedShape", - "params": [], - "returnType": "PromptShape", - "exported": true, - "lineCount": 12 - }, - { - "name": "setSelectedShape", - "params": [ - "shape" - ], - "returnType": "void", - "exported": true, - "lineCount": 12 - }, - { - "name": "useSelectedShape", - "params": [], - "returnType": "[PromptShape, (shape: PromptShape) => void]", - "exported": true, - "lineCount": 28 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useCallback", - "useEffect", - "useState" - ] - } - ], - "exports": [ - "AVAILABLE_SHAPES", - "DEFAULT_SHAPE", - "getSelectedShape", - "setSelectedShape", - "useSelectedShape" - ], - "totalLines": 114, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/skill-pack-display.test.ts": { - "filePath": "apps/web/src/lib/skill-pack-display.test.ts", - "contentHash": "1e82f36340e48d7be01b1d0400f49583c417f4859f44f4e71d1edcbaa18e5c00", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "./skill-pack-display", - "specifiers": [ - "describeTrust", - "packIdentity", - "summariseSkills" - ] - } - ], - "exports": [], - "totalLines": 66, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/skill-pack-display.ts": { - "filePath": "apps/web/src/lib/skill-pack-display.ts", - "contentHash": "613fd54e8d12b60bf6b0636490716ef9fb70b9108cb8fdd460c554bcc12169c1", - "functions": [ - { - "name": "describeTrust", - "params": [ - "trust" - ], - "returnType": "{ label: string; explainer: string }", - "exported": true, - "lineCount": 24 - }, - { - "name": "packIdentity", - "params": [ - "pack" - ], - "returnType": "string", - "exported": true, - "lineCount": 5 - }, - { - "name": "summariseSkills", - "params": [ - "skills" - ], - "returnType": "string", - "exported": true, - "lineCount": 6 - } - ], - "classes": [], - "imports": [], - "exports": [ - "describeTrust", - "packIdentity", - "summariseSkills" - ], - "totalLines": 66, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/skill-recommendations.test.ts": { - "filePath": "apps/web/src/lib/skill-recommendations.test.ts", - "contentHash": "3bfb8850c237006d04db82bd44f4f3cf5faa67489ebf5f080ee0cbc94427fc3f", - "functions": [ - { - "name": "readStarterSkillIds", - "params": [], - "returnType": "Set", - "exported": false, - "lineCount": 9 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "./skill-recommendations", - "specifiers": [ - "recommendSkills", - "allReferencedSkillIds", - "SKILL_CATALOG", - "SKILL_RECOMMENDATIONS" - ] - } - ], - "exports": [], - "totalLines": 126, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/skill-recommendations.ts": { - "filePath": "apps/web/src/lib/skill-recommendations.ts", - "contentHash": "dc2a2e75df381f792d43156fb0499f557d1edaa047de73889ebe11d110e912d5", - "functions": [ - { - "name": "recommendSkills", - "params": [ - "personaId" - ], - "returnType": "SkillRecommendation[]", - "exported": true, - "lineCount": 8 - }, - { - "name": "allReferencedSkillIds", - "params": [], - "returnType": "string[]", - "exported": true, - "lineCount": 8 - } - ], - "classes": [], - "imports": [], - "exports": [ - "SKILL_CATALOG", - "SKILL_RECOMMENDATIONS", - "recommendSkills", - "allReferencedSkillIds" - ], - "totalLines": 123, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/spawn-agent-helpers.test.ts": { - "filePath": "apps/web/src/lib/spawn-agent-helpers.test.ts", - "contentHash": "1548934d51af37b896edf22109eb9e2158dbccc063d2aaaa2043a5749c031d2c", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "./spawn-agent-helpers", - "specifiers": [ - "countProvidersWithKeys", - "selectDefaultModel", - "ProviderSummary" - ] - } - ], - "exports": [], - "totalLines": 65, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/spawn-agent-helpers.ts": { - "filePath": "apps/web/src/lib/spawn-agent-helpers.ts", - "contentHash": "1a072347a8329c9c605e827608de8ce912d87619ea74aa3159c277e8d8d1bdbd", - "functions": [ - { - "name": "countProvidersWithKeys", - "params": [ - "providers" - ], - "returnType": "number", - "exported": true, - "lineCount": 3 - }, - { - "name": "selectDefaultModel", - "params": [ - "workspaceModel", - "availableModels" - ], - "returnType": "string", - "exported": true, - "lineCount": 9 - } - ], - "classes": [], - "imports": [], - "exports": [ - "countProvidersWithKeys", - "selectDefaultModel" - ], - "totalLines": 45, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/suggested-actions.test.ts": { - "filePath": "apps/web/src/lib/suggested-actions.test.ts", - "contentHash": "6c818968a585dbce8ed6b00b9357a61060530eba09e16ffe5f8b8fd8e627b8f8", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "./suggested-actions", - "specifiers": [ - "extractSuggestedActions", - "SUGGESTED_ACTIONS_MAX" - ] - } - ], - "exports": [], - "totalLines": 150, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/suggested-actions.ts": { - "filePath": "apps/web/src/lib/suggested-actions.ts", - "contentHash": "13e7cdf00027a27b5c9062bdec7479afd9c08bf7bba68ba773a63d818c364401", - "functions": [ - { - "name": "normalizeAction", - "params": [ - "raw" - ], - "returnType": "string | null", - "exported": false, - "lineCount": 7 - }, - { - "name": "extractOffers", - "params": [ - "content" - ], - "returnType": "string[]", - "exported": false, - "lineCount": 8 - }, - { - "name": "extractListSection", - "params": [ - "content" - ], - "returnType": "string[]", - "exported": false, - "lineCount": 21 - }, - { - "name": "extractSuggestedActions", - "params": [ - "content" - ], - "returnType": "string[]", - "exported": true, - "lineCount": 15 - } - ], - "classes": [], - "imports": [], - "exports": [ - "SUGGESTED_ACTIONS_MAX", - "extractSuggestedActions" - ], - "totalLines": 95, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/tauri-bindings.test.ts": { - "filePath": "apps/web/src/lib/tauri-bindings.test.ts", - "contentHash": "00bd3a9ff9e2eb3564f850580b352cee2690b0c070710f80bd03598a9b529cb8", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach", - "vi" - ] - }, - { - "source": "@tauri-apps/api/core", - "specifiers": [ - "invoke" - ] - }, - { - "source": "./tauri-bindings", - "specifiers": [ - "isTauri", - "recallMemory", - "saveMemory", - "searchEntities", - "getIdentity", - "compileWikiSection", - "getWikiPages", - "getWikiPage", - "getWikiPageContent", - "isFirstLaunch", - "markFirstLaunchComplete", - "resetFirstLaunch" - ] - } - ], - "exports": [], - "totalLines": 140, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/tauri-bindings.ts": { - "filePath": "apps/web/src/lib/tauri-bindings.ts", - "contentHash": "80f92726fa35650951b04385ccefdde2aa1cdca2aef914493c244ddc070abca6", - "functions": [ - { - "name": "recallMemory", - "params": [ - "args" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 3 - }, - { - "name": "saveMemory", - "params": [ - "args" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 3 - }, - { - "name": "searchEntities", - "params": [ - "args" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 3 - }, - { - "name": "getIdentity", - "params": [], - "returnType": "Promise", - "exported": true, - "lineCount": 3 - }, - { - "name": "getWikiPages", - "params": [], - "returnType": "Promise", - "exported": true, - "lineCount": 3 - }, - { - "name": "getWikiPage", - "params": [ - "slug" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 3 - }, - { - "name": "getWikiPageContent", - "params": [ - "slug" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 3 - }, - { - "name": "compileWikiSection", - "params": [ - "args" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 3 - }, - { - "name": "runAgentQuery", - "params": [ - "args", - "onChunk" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 14 - }, - { - "name": "listenAgentEnd", - "params": [ - "requestId", - "onEnd" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 8 - }, - { - "name": "isFirstLaunch", - "params": [], - "returnType": "Promise", - "exported": true, - "lineCount": 3 - }, - { - "name": "markFirstLaunchComplete", - "params": [], - "returnType": "Promise", - "exported": true, - "lineCount": 3 - }, - { - "name": "resetFirstLaunch", - "params": [], - "returnType": "Promise", - "exported": true, - "lineCount": 3 - }, - { - "name": "isTauri", - "params": [], - "returnType": "boolean", - "exported": true, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "@tauri-apps/api/core", - "specifiers": [ - "invoke" - ] - }, - { - "source": "@tauri-apps/api/event", - "specifiers": [ - "listen", - "UnlistenFn" - ] - } - ], - "exports": [ - "recallMemory", - "saveMemory", - "searchEntities", - "getIdentity", - "getWikiPages", - "getWikiPage", - "getWikiPageContent", - "compileWikiSection", - "runAgentQuery", - "listenAgentEnd", - "isFirstLaunch", - "markFirstLaunchComplete", - "resetFirstLaunch", - "isTauri" - ], - "totalLines": 327, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/tiers.test.ts": { - "filePath": "apps/web/src/lib/tiers.test.ts", - "contentHash": "9514ab46884286d8f0615b91274b92cb856b17e07f85c340235c8acc5a1bdd19", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "isTrialExpired", - "getEffectiveTier", - "trialDaysRemaining", - "TRIAL_DURATION_DAYS" - ] - } - ], - "exports": [], - "totalLines": 200, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/timeline-events.test.ts": { - "filePath": "apps/web/src/lib/timeline-events.test.ts", - "contentHash": "bf354d01444ed1557917a63c0b6f644ff7f08766d49422af546120d073c28263", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "./timeline-events", - "specifiers": [ - "EVENT_ICONS", - "EVENT_COLORS", - "iconForEvent", - "colorForEvent", - "describeEvent", - "DEFAULT_EVENT_ICON", - "DEFAULT_EVENT_COLOR" - ] - } - ], - "exports": [], - "totalLines": 114, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/timeline-events.ts": { - "filePath": "apps/web/src/lib/timeline-events.ts", - "contentHash": "641e47334297a7663d1478599e304ff691cd40d9d87078fe1f7daa79a8f78946", - "functions": [ - { - "name": "iconForEvent", - "params": [ - "eventType" - ], - "returnType": "TimelineIcon", - "exported": true, - "lineCount": 3 - }, - { - "name": "colorForEvent", - "params": [ - "eventType" - ], - "returnType": "string", - "exported": true, - "lineCount": 3 - }, - { - "name": "describeEvent", - "params": [ - "e" - ], - "returnType": "string", - "exported": true, - "lineCount": 51 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "ElementType" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Clock", - "Zap", - "Brain", - "FileText", - "Bot", - "Shield", - "CheckCircle2", - "XCircle" - ] - }, - { - "source": "./types", - "specifiers": [ - "TimelineEvent" - ] - } - ], - "exports": [ - "EVENT_ICONS", - "EVENT_COLORS", - "DEFAULT_EVENT_ICON", - "DEFAULT_EVENT_COLOR", - "iconForEvent", - "colorForEvent", - "describeEvent" - ], - "totalLines": 184, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/types.ts": { - "filePath": "apps/web/src/lib/types.ts", - "contentHash": "12e3f6f85df00af999931e1bae24f893d9e6f2163e2c1e82d71f02c11e226026", - "functions": [], - "classes": [], - "imports": [ - { - "source": "@waggle/shared", - "specifiers": [ - "WorkspaceType", - "MemoryKind", - "CommandCategory", - "CommandResultType", - "CommandResult", - "CommandAction", - "SharedMemory", - "AgentRunState" - ] - } - ], - "exports": [ - "CommandCategory", - "CommandResultType", - "CommandResult", - "CommandAction", - "Artifact", - "ArtifactStatus", - "ArtifactKind", - "RelatedSearchResult", - "RelatedRef", - "MemoryKind", - "MemoryStatus", - "Scope", - "Confidence", - "AgentType", - "AutonomyLevel", - "Automation", - "AutomationTriggerType", - "AgentRunState" - ], - "totalLines": 697, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/utils.ts": { - "filePath": "apps/web/src/lib/utils.ts", - "contentHash": "c0adf27efbfa148d5abcf99e860f8e3e6c8fc77a1f99e023c08ef4f12e6ece29", - "functions": [ - { - "name": "cn", - "params": [ - "...inputs" - ], - "exported": true, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "clsx", - "specifiers": [ - "clsx", - "ClassValue" - ] - }, - { - "source": "tailwind-merge", - "specifiers": [ - "twMerge" - ] - } - ], - "exports": [ - "cn" - ], - "totalLines": 7, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/waggle-signals.test.ts": { - "filePath": "apps/web/src/lib/waggle-signals.test.ts", - "contentHash": "642ec3d484d649b548f48722db704371ac22d716666df8ac5d1a7c5f5fa9fd9a", - "functions": [ - { - "name": "make", - "params": [ - "overrides" - ], - "returnType": "WaggleSignalLike", - "exported": false, - "lineCount": 10 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "./waggle-signals", - "specifiers": [ - "sortSignalsForDisplay", - "groupSignalsByType", - "countUnacknowledged", - "WaggleSignalLike" - ] - } - ], - "exports": [], - "totalLines": 125, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/waggle-signals.ts": { - "filePath": "apps/web/src/lib/waggle-signals.ts", - "contentHash": "38ec5522d527d5bc1d7a3e994a14a4cd1e98f9019117c6c7fec7a561f26ef308", - "functions": [ - { - "name": "severityScore", - "params": [ - "s" - ], - "returnType": "number", - "exported": false, - "lineCount": 4 - }, - { - "name": "timestampMs", - "params": [ - "s" - ], - "returnType": "number", - "exported": false, - "lineCount": 9 - }, - { - "name": "sortSignalsForDisplay", - "params": [ - "signals" - ], - "returnType": "T[]", - "exported": true, - "lineCount": 10 - }, - { - "name": "groupSignalsByType", - "params": [ - "signals" - ], - "returnType": "Record", - "exported": true, - "lineCount": 9 - }, - { - "name": "countUnacknowledged", - "params": [ - "signals" - ], - "returnType": "number", - "exported": true, - "lineCount": 3 - } - ], - "classes": [], - "imports": [], - "exports": [ - "sortSignalsForDisplay", - "groupSignalsByType", - "countUnacknowledged" - ], - "totalLines": 74, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/window-state-migration.ts": { - "filePath": "apps/web/src/lib/window-state-migration.ts", - "contentHash": "b98972443681412ac923e42fb3d3d9bf24edebc8929f64d2cbe59c73d735b9cb", - "functions": [ - { - "name": "loadLegacyWindows", - "params": [], - "returnType": "LegacyWindowState[]", - "exported": false, - "lineCount": 19 - }, - { - "name": "computeWindowStateMigration", - "params": [ - "windows" - ], - "returnType": "WindowStateMigrationResult", - "exported": true, - "lineCount": 46 - }, - { - "name": "runWindowStateMigration", - "params": [], - "returnType": "WindowStateMigrationResult", - "exported": true, - "lineCount": 17 - }, - { - "name": "bootWindowStateMigration", - "params": [ - "entryPathname" - ], - "returnType": "void", - "exported": true, - "lineCount": 5 - }, - { - "name": "indexLandingRoute", - "params": [], - "returnType": "string", - "exported": true, - "lineCount": 5 - }, - { - "name": "resetWindowStateMigrationForTests", - "params": [], - "returnType": "void", - "exported": true, - "lineCount": 4 - } - ], - "classes": [], - "imports": [ - { - "source": "@/lib/routes", - "specifiers": [ - "isAppId", - "routeFor" - ] - }, - { - "source": "@/hooks/useChatWidgetState", - "specifiers": [ - "mergeChatEntries", - "personaLabelFor", - "AutonomyLevel", - "ChatWidgetEntry" - ] - } - ], - "exports": [ - "WINDOW_STATE_KEY", - "computeWindowStateMigration", - "runWindowStateMigration", - "bootWindowStateMigration", - "indexLandingRoute", - "resetWindowStateMigrationForTests" - ], - "totalLines": 187, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/workspace-briefing-state.test.ts": { - "filePath": "apps/web/src/lib/workspace-briefing-state.test.ts", - "contentHash": "32e575b22112b8c51b7704718665e215f7318f4fed0711e347f2c9fedc9cdc8d", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach" - ] - }, - { - "source": "./workspace-briefing-state", - "specifiers": [ - "workspaceBriefingStorageKey", - "readWorkspaceBriefingCollapsed", - "writeWorkspaceBriefingCollapsed" - ] - } - ], - "exports": [], - "totalLines": 72, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/workspace-briefing-state.ts": { - "filePath": "apps/web/src/lib/workspace-briefing-state.ts", - "contentHash": "7bbe427b0505a1c2b853cdd6f00013f76638afc49646a55cdb9e4272d400708d", - "functions": [ - { - "name": "workspaceBriefingStorageKey", - "params": [ - "workspaceId" - ], - "returnType": "string", - "exported": true, - "lineCount": 7 - }, - { - "name": "readWorkspaceBriefingCollapsed", - "params": [ - "workspaceId" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 8 - }, - { - "name": "writeWorkspaceBriefingCollapsed", - "params": [ - "workspaceId", - "collapsed" - ], - "returnType": "void", - "exported": true, - "lineCount": 11 - } - ], - "classes": [], - "imports": [], - "exports": [ - "workspaceBriefingStorageKey", - "readWorkspaceBriefingCollapsed", - "writeWorkspaceBriefingCollapsed" - ], - "totalLines": 44, - "hasStructuralAnalysis": true - }, - "apps/web/src/lib/workspace-groups.ts": { - "filePath": "apps/web/src/lib/workspace-groups.ts", - "contentHash": "1808ea1783f2e830875626ddae924ec758b26ebc8292aa7966916e02b7953a73", - "functions": [ - { - "name": "getAllGroups", - "params": [ - "existingGroups" - ], - "returnType": "string[]", - "exported": true, - "lineCount": 6 - } - ], - "classes": [], - "imports": [], - "exports": [ - "STANDARD_GROUPS", - "getAllGroups" - ], - "totalLines": 31, - "hasStructuralAnalysis": true - }, - "apps/web/src/main.tsx": { - "filePath": "apps/web/src/main.tsx", - "contentHash": "5f25180fadf5761abd87a0214d3714adbecf15f2fdb8178b3d629d2108bf5bf2", - "functions": [], - "classes": [], - "imports": [ - { - "source": "./boot-connect", - "specifiers": [] - }, - { - "source": "react-dom/client", - "specifiers": [ - "createRoot" - ] - }, - { - "source": "./App.tsx", - "specifiers": [ - "App" - ] - }, - { - "source": "./index.css", - "specifiers": [] - }, - { - "source": "@/lib/posthog", - "specifiers": [ - "initPostHog" - ] - }, - { - "source": "@/providers/ThemeProvider", - "specifiers": [ - "applyStoredThemeEarly" - ] - } - ], - "exports": [], - "totalLines": 19, - "hasStructuralAnalysis": true - }, - "apps/web/src/pages/NotFound.tsx": { - "filePath": "apps/web/src/pages/NotFound.tsx", - "contentHash": "8b7d254d0900a8dbd0f906de6e518197ce5a914e1e71f244047df0a156c50477", - "functions": [ - { - "name": "NotFound", - "params": [], - "exported": false, - "lineCount": 33 - } - ], - "classes": [], - "imports": [ - { - "source": "react-router-dom", - "specifiers": [ - "Link", - "useLocation" - ] - }, - { - "source": "react", - "specifiers": [ - "useEffect" - ] - }, - { - "source": "@/lib/platform", - "specifiers": [ - "cmdKLabel" - ] - } - ], - "exports": [], - "totalLines": 46, - "hasStructuralAnalysis": true - }, - "apps/web/src/providers/InstallProvider.tsx": { - "filePath": "apps/web/src/providers/InstallProvider.tsx", - "contentHash": "7892768bf3384f0de15e019cd0811c38339f1b397c969b9702636bf5c3c50a57", - "functions": [ - { - "name": "useInstallStore", - "params": [], - "returnType": "InstallStore", - "exported": true, - "lineCount": 5 - }, - { - "name": "securityMessage", - "params": [ - "e" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "mcpOptsFrom", - "params": [ - "c" - ], - "returnType": "{ settings?: Record; force?: boolean; forceInsecure?: boolean } | undefined", - "exported": false, - "lineCount": 8 - }, - { - "name": "InstallProvider", - "params": [ - "{ children }" - ], - "exported": true, - "lineCount": 232 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "createContext", - "useCallback", - "useContext", - "useEffect", - "useMemo", - "useRef", - "useState", - "ReactNode" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/providers/ServiceProvider", - "specifiers": [ - "useService" - ] - }, - { - "source": "@/hooks/use-toast", - "specifiers": [ - "useToast" - ] - }, - { - "source": "@/hooks/useRevalidateOnError", - "specifiers": [ - "CONNECT_SETTLED_EVENT" - ] - }, - { - "source": "@/lib/extension-catalog", - "specifiers": [ - "MarketplacePackageRow" - ] - }, - { - "source": "@/lib/install-store", - "specifiers": [ - "describeError", - "isTierError", - "isTogglable", - "rawId", - "InstallCredentials", - "InstallOutcome", - "InstallTarget" - ] - } - ], - "exports": [ - "useInstallStore", - "InstallProvider" - ], - "totalLines": 303, - "hasStructuralAnalysis": true - }, - "apps/web/src/providers/ServiceProvider.tsx": { - "filePath": "apps/web/src/providers/ServiceProvider.tsx", - "contentHash": "0eb55d2bb2bcff759ab13c82488f90c13ebdffebf57d3b7e6d72ea93d2547c2a", - "functions": [ - { - "name": "useService", - "params": [], - "exported": true, - "lineCount": 5 - }, - { - "name": "ServiceProvider", - "params": [ - "{ children }" - ], - "exported": true, - "lineCount": 52 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "createContext", - "useContext", - "useState", - "useEffect", - "useRef", - "ReactNode" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "LocalAdapter" - ] - }, - { - "source": "@/hooks/useRevalidateOnError", - "specifiers": [ - "CONNECT_SETTLED_EVENT" - ] - } - ], - "exports": [ - "useService", - "ServiceProvider" - ], - "totalLines": 80, - "hasStructuralAnalysis": true - }, - "apps/web/src/providers/ShellContext.tsx": { - "filePath": "apps/web/src/providers/ShellContext.tsx", - "contentHash": "dc78dc2274634fc815a4c0760077113af41dab0444c54ab2b1d742d4fd88322b", - "functions": [ - { - "name": "useShell", - "params": [], - "exported": true, - "lineCount": 5 - }, - { - "name": "ShellProvider", - "params": [ - "{ children }" - ], - "exported": true, - "lineCount": 77 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "createContext", - "useCallback", - "useContext", - "useEffect", - "useState", - "ReactNode" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - }, - { - "source": "@/lib/dock-tiers", - "specifiers": [ - "BillingTier", - "UserTier" - ] - }, - { - "source": "@/components/os/overlays/ContextRail", - "specifiers": [ - "ContextRailTarget" - ] - }, - { - "source": "@/hooks/useWorkspaces", - "specifiers": [ - "useWorkspaces" - ] - }, - { - "source": "@/hooks/useAgentStatus", - "specifiers": [ - "useAgentStatus" - ] - }, - { - "source": "@/hooks/useNotifications", - "specifiers": [ - "useNotifications" - ] - }, - { - "source": "@/hooks/useOnboarding", - "specifiers": [ - "useOnboarding" - ] - }, - { - "source": "@/hooks/useOfflineStatus", - "specifiers": [ - "useOfflineStatus" - ] - }, - { - "source": "@/hooks/useOverlayState", - "specifiers": [ - "useOverlayState" - ] - }, - { - "source": "@/hooks/useRevalidateOnError", - "specifiers": [ - "useRevalidateOnError" - ] - } - ], - "exports": [ - "useShell", - "ShellProvider" - ], - "totalLines": 183, - "hasStructuralAnalysis": true - }, - "apps/web/src/providers/ThemeProvider.tsx": { - "filePath": "apps/web/src/providers/ThemeProvider.tsx", - "contentHash": "ca3eb1050b2b190ce072c7fc4968934e8436299ba825c21b5d7dbba141c51708", - "functions": [ - { - "name": "readStored", - "params": [], - "returnType": "ThemeMode", - "exported": false, - "lineCount": 5 - }, - { - "name": "systemPrefersDark", - "params": [], - "returnType": "boolean", - "exported": false, - "lineCount": 7 - }, - { - "name": "resolve", - "params": [ - "mode" - ], - "returnType": "ResolvedTheme", - "exported": false, - "lineCount": 4 - }, - { - "name": "applyTheme", - "params": [ - "resolved" - ], - "returnType": "void", - "exported": false, - "lineCount": 6 - }, - { - "name": "applyStoredThemeEarly", - "params": [], - "returnType": "void", - "exported": true, - "lineCount": 3 - }, - { - "name": "ThemeProvider", - "params": [ - "{ children }" - ], - "exported": true, - "lineCount": 45 - }, - { - "name": "useTheme", - "params": [], - "returnType": "ThemeContextValue", - "exported": true, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "createContext", - "useCallback", - "useContext", - "useEffect", - "useLayoutEffect", - "useState", - "ReactNode" - ] - } - ], - "exports": [ - "applyStoredThemeEarly", - "ThemeProvider", - "useTheme" - ], - "totalLines": 158, - "hasStructuralAnalysis": true - }, - "apps/web/src/providers/WaggleClerkProvider.tsx": { - "filePath": "apps/web/src/providers/WaggleClerkProvider.tsx", - "contentHash": "d6a09234f9bb1daace9d48a783e29901a6470e00d8bd20bf01aef6ba35006d56", - "functions": [ - { - "name": "WaggleClerkProvider", - "params": [ - "{ children }" - ], - "exported": true, - "lineCount": 18 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "ReactNode" - ] - }, - { - "source": "react-router-dom", - "specifiers": [ - "useNavigate" - ] - }, - { - "source": "@clerk/clerk-react", - "specifiers": [ - "ClerkProvider" - ] - }, - { - "source": "@/providers/ThemeProvider", - "specifiers": [ - "useTheme" - ] - }, - { - "source": "@/lib/clerk", - "specifiers": [ - "clerkPublishableKey", - "clerkAppearance" - ] - } - ], - "exports": [ - "WaggleClerkProvider" - ], - "totalLines": 36, - "hasStructuralAnalysis": true - }, - "apps/web/src/routes/AgentsRoute.tsx": { - "filePath": "apps/web/src/routes/AgentsRoute.tsx", - "contentHash": "cb4ff1ae4e16e5535cdad452078ac60ffbc509ab010a4db5d6b7b0b95a91e652", - "functions": [ - { - "name": "AgentsRoute", - "params": [], - "exported": false, - "lineCount": 8 - } - ], - "classes": [], - "imports": [ - { - "source": "@/components/os/apps/AgentsApp", - "specifiers": [ - "AgentsApp" - ] - }, - { - "source": "./SurfaceBoundary", - "specifiers": [ - "SurfaceBoundary" - ] - }, - { - "source": "@/providers/ShellContext", - "specifiers": [ - "useShell" - ] - } - ], - "exports": [], - "totalLines": 16, - "hasStructuralAnalysis": true - }, - "apps/web/src/routes/ApprovalsRoute.tsx": { - "filePath": "apps/web/src/routes/ApprovalsRoute.tsx", - "contentHash": "bf6903b9e543ca36abaa7f491ed30d627860fbdf4d372409b4836874b52253ba", - "functions": [ - { - "name": "ApprovalsRoute", - "params": [], - "exported": false, - "lineCount": 5 - } - ], - "classes": [], - "imports": [ - { - "source": "@/components/os/apps/ApprovalsApp", - "specifiers": [ - "ApprovalsApp" - ] - }, - { - "source": "./SurfaceBoundary", - "specifiers": [ - "SurfaceBoundary" - ] - } - ], - "exports": [], - "totalLines": 17, - "hasStructuralAnalysis": true - }, - "apps/web/src/routes/ArtifactsRoute.tsx": { - "filePath": "apps/web/src/routes/ArtifactsRoute.tsx", - "contentHash": "de58f4f6e4393b7c93e941cbda70d04617d40c99b339c588132fa248cdb829bb", - "functions": [ - { - "name": "ArtifactsRoute", - "params": [], - "exported": false, - "lineCount": 11 - } - ], - "classes": [], - "imports": [ - { - "source": "react-router-dom", - "specifiers": [ - "useSearchParams" - ] - }, - { - "source": "@/components/os/apps/ArtifactCenterApp", - "specifiers": [ - "ArtifactCenterApp" - ] - }, - { - "source": "./SurfaceBoundary", - "specifiers": [ - "SurfaceBoundary" - ] - }, - { - "source": "@/providers/ShellContext", - "specifiers": [ - "useShell" - ] - } - ], - "exports": [], - "totalLines": 23, - "hasStructuralAnalysis": true - }, - "apps/web/src/routes/AuthRoute.tsx": { - "filePath": "apps/web/src/routes/AuthRoute.tsx", - "contentHash": "01053c311dc7ed6ce9e2cd8985a22eab35b8cb34a7e2aa6907cffd46140fa5f1", - "functions": [ - { - "name": "AuthRoute", - "params": [], - "exported": false, - "lineCount": 5 - } - ], - "classes": [], - "imports": [ - { - "source": "@/components/os/auth/AuthScreen", - "specifiers": [ - "AuthScreen" - ] - }, - { - "source": "@/components/os/auth/AccountlessNotice", - "specifiers": [ - "AccountlessNotice" - ] - }, - { - "source": "@/components/os/auth/ClerkAuthForm", - "specifiers": [ - "ClerkAuthForm" - ] - }, - { - "source": "@/lib/clerk", - "specifiers": [ - "clerkPublishableKey" - ] - } - ], - "exports": [], - "totalLines": 21, - "hasStructuralAnalysis": true - }, - "apps/web/src/routes/AutomationsRoute.tsx": { - "filePath": "apps/web/src/routes/AutomationsRoute.tsx", - "contentHash": "1a35ad0a2465e03af8d07ff8959f70208faa0320e78371c7b468bea3e1a8464c", - "functions": [ - { - "name": "AutomationsRoute", - "params": [], - "exported": false, - "lineCount": 19 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useRef" - ] - }, - { - "source": "react-router-dom", - "specifiers": [ - "useSearchParams" - ] - }, - { - "source": "@/components/os/apps/AutomationCenterApp", - "specifiers": [ - "AutomationCenterApp" - ] - }, - { - "source": "./SurfaceBoundary", - "specifiers": [ - "SurfaceBoundary" - ] - }, - { - "source": "@/lib/app-deeplink", - "specifiers": [ - "stashDeepLink" - ] - } - ], - "exports": [], - "totalLines": 37, - "hasStructuralAnalysis": true - }, - "apps/web/src/routes/BenchmarkRoute.tsx": { - "filePath": "apps/web/src/routes/BenchmarkRoute.tsx", - "contentHash": "8e057bd159f76c21cf8763e65c76e805c7431e159f610d4e241f5acd434fe7a4", - "functions": [ - { - "name": "BenchmarkRoute", - "params": [], - "exported": false, - "lineCount": 5 - } - ], - "classes": [], - "imports": [ - { - "source": "@/components/os/apps/BenchmarkApp", - "specifiers": [ - "BenchmarkApp" - ] - }, - { - "source": "./SurfaceBoundary", - "specifiers": [ - "SurfaceBoundary" - ] - } - ], - "exports": [], - "totalLines": 12, - "hasStructuralAnalysis": true - }, - "apps/web/src/routes/ConnectorsRoute.tsx": { - "filePath": "apps/web/src/routes/ConnectorsRoute.tsx", - "contentHash": "0b3d242befa16fc0445833367883ab9905848e04875b18ffe759e866089aa88d", - "functions": [ - { - "name": "ConnectorsRoute", - "params": [], - "exported": false, - "lineCount": 8 - } - ], - "classes": [], - "imports": [ - { - "source": "@/components/os/apps/ConnectorsApp", - "specifiers": [ - "ConnectorsApp" - ] - }, - { - "source": "./SurfaceBoundary", - "specifiers": [ - "SurfaceBoundary" - ] - }, - { - "source": "@/providers/ShellContext", - "specifiers": [ - "useShell" - ] - } - ], - "exports": [], - "totalLines": 16, - "hasStructuralAnalysis": true - }, - "apps/web/src/routes/EventsRoute.tsx": { - "filePath": "apps/web/src/routes/EventsRoute.tsx", - "contentHash": "7b404bfa11e517888d3bf937fd67953c153bac0e7faec00672a1bf7c45b26c64", - "functions": [ - { - "name": "EventsRoute", - "params": [], - "exported": false, - "lineCount": 11 - } - ], - "classes": [], - "imports": [ - { - "source": "@/components/os/apps/EventsApp", - "specifiers": [ - "EventsApp" - ] - }, - { - "source": "./SurfaceBoundary", - "specifiers": [ - "SurfaceBoundary" - ] - }, - { - "source": "@/providers/ShellContext", - "specifiers": [ - "useShell" - ] - }, - { - "source": "@/hooks/useEvents", - "specifiers": [ - "useEvents" - ] - }, - { - "source": "@/lib/adapter", - "specifiers": [ - "adapter" - ] - } - ], - "exports": [], - "totalLines": 25, - "hasStructuralAnalysis": true - }, - "apps/web/src/routes/FilesRoute.tsx": { - "filePath": "apps/web/src/routes/FilesRoute.tsx", - "contentHash": "a8687c5d79cd52a4f4a7891369dae78125291e5d05070931fc5d2e1132c8a24e", - "functions": [ - { - "name": "FilesRoute", - "params": [], - "exported": false, - "lineCount": 21 - } - ], - "classes": [], - "imports": [ - { - "source": "react-router-dom", - "specifiers": [ - "useSearchParams" - ] - }, - { - "source": "@/components/os/apps/StorageAndFilesApp", - "specifiers": [ - "StorageAndFilesApp" - ] - }, - { - "source": "./SurfaceBoundary", - "specifiers": [ - "SurfaceBoundary" - ] - }, - { - "source": "@/providers/ShellContext", - "specifiers": [ - "useShell" - ] - } - ], - "exports": [], - "totalLines": 39, - "hasStructuralAnalysis": true - }, - "apps/web/src/routes/HomeRoute.tsx": { - "filePath": "apps/web/src/routes/HomeRoute.tsx", - "contentHash": "eb330020e2662ab84bcc31c3f28da19236ea8d1d3084adc92d7d2aeb3d7ed31c", - "functions": [ - { - "name": "HomeRoute", - "params": [], - "exported": false, - "lineCount": 26 - } - ], - "classes": [], - "imports": [ - { - "source": "react-router-dom", - "specifiers": [ - "useNavigate" - ] - }, - { - "source": "@/components/os/apps/HomeCockpit", - "specifiers": [ - "HomeCockpit" - ] - }, - { - "source": "./SurfaceBoundary", - "specifiers": [ - "SurfaceBoundary" - ] - }, - { - "source": "@/providers/ShellContext", - "specifiers": [ - "useShell" - ] - }, - { - "source": "@/lib/routes", - "specifiers": [ - "routeFor" - ] - }, - { - "source": "@/components/os/model-gate/NoModelBanner", - "specifiers": [ - "NoModelBanner" - ] - } - ], - "exports": [], - "totalLines": 37, - "hasStructuralAnalysis": true - }, - "apps/web/src/routes/index.ts": { - "filePath": "apps/web/src/routes/index.ts", - "contentHash": "9042995797b20b45af9e3c98959726acdafe15fc398faa7705976f78d03db325", - "functions": [], - "classes": [], - "imports": [], - "exports": [ - "HomeRoute", - "WorkspaceRoute", - "MemoryRoute", - "ArtifactsRoute", - "FilesRoute", - "AgentsRoute", - "AutomationsRoute", - "SkillsRoute", - "ConnectorsRoute", - "McpsRoute", - "MarketplaceRoute", - "LauncherRoute", - "RoomRoute", - "WaggleDanceRoute", - "ApprovalsRoute", - "TeamRoute", - "SettingsRoute", - "VaultRoute", - "ProfileRoute", - "MissionControlRoute", - "TimelineRoute", - "EventsRoute", - "UsageRoute", - "BenchmarkRoute", - "PlatformRoute", - "WorkspacesRoute", - "PaymentSuccessRoute", - "AuthRoute" - ], - "totalLines": 64, - "hasStructuralAnalysis": true - }, - "apps/web/src/routes/LauncherRoute.tsx": { - "filePath": "apps/web/src/routes/LauncherRoute.tsx", - "contentHash": "c47aa16e736a0173eb3659851bcf5d1b9ef4230b958741c18ac63f6ced70db2b", - "functions": [ - { - "name": "LauncherRoute", - "params": [], - "exported": false, - "lineCount": 8 - } - ], - "classes": [], - "imports": [ - { - "source": "@/components/os/apps/LauncherApp", - "specifiers": [ - "LauncherApp" - ] - }, - { - "source": "./SurfaceBoundary", - "specifiers": [ - "SurfaceBoundary" - ] - }, - { - "source": "@/providers/ShellContext", - "specifiers": [ - "useShell" - ] - } - ], - "exports": [], - "totalLines": 16, - "hasStructuralAnalysis": true - }, - "apps/web/src/routes/MarketplaceRoute.tsx": { - "filePath": "apps/web/src/routes/MarketplaceRoute.tsx", - "contentHash": "4f469cd642007c5e264b2e0353e3a3bb502cae4618ea8273d5ab1fb0ff066b2d", - "functions": [ - { - "name": "MarketplaceRoute", - "params": [], - "exported": false, - "lineCount": 5 - } - ], - "classes": [], - "imports": [ - { - "source": "@/components/os/apps/MarketplaceApp", - "specifiers": [ - "MarketplaceApp" - ] - }, - { - "source": "./SurfaceBoundary", - "specifiers": [ - "SurfaceBoundary" - ] - } - ], - "exports": [], - "totalLines": 12, - "hasStructuralAnalysis": true - }, - "apps/web/src/routes/McpsRoute.tsx": { - "filePath": "apps/web/src/routes/McpsRoute.tsx", - "contentHash": "912561573e06177f3acf9708c13390fa750b8287bfc63b319c4b71af0e14f337", - "functions": [ - { - "name": "McpsRoute", - "params": [], - "exported": false, - "lineCount": 8 - } - ], - "classes": [], - "imports": [ - { - "source": "@/components/os/apps/MCPHubApp", - "specifiers": [ - "MCPHubApp" - ] - }, - { - "source": "./SurfaceBoundary", - "specifiers": [ - "SurfaceBoundary" - ] - }, - { - "source": "@/providers/ShellContext", - "specifiers": [ - "useShell" - ] - } - ], - "exports": [], - "totalLines": 16, - "hasStructuralAnalysis": true - }, - "apps/web/src/routes/MemoryRoute.tsx": { - "filePath": "apps/web/src/routes/MemoryRoute.tsx", - "contentHash": "13a1e77d9912c8453328759732c6f9f76f23dd1e22b7d1210e9e08335496a80c", - "functions": [ - { - "name": "MemoryRoute", - "params": [], - "exported": false, - "lineCount": 96 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useEffect", - "useRef" - ] - }, - { - "source": "react-router-dom", - "specifiers": [ - "useNavigate", - "useParams", - "useSearchParams" - ] - }, - { - "source": "@/components/os/apps/MemoryCenterApp", - "specifiers": [ - "MemoryCenterApp", - "MEMORY_VIEWS", - "MemoryView", - "MindScope" - ] - }, - { - "source": "./SurfaceBoundary", - "specifiers": [ - "SurfaceBoundary" - ] - }, - { - "source": "@/providers/ShellContext", - "specifiers": [ - "useShell" - ] - }, - { - "source": "@/hooks/useMemory", - "specifiers": [ - "useMemory" - ] - }, - { - "source": "@/hooks/useKnowledgeGraph", - "specifiers": [ - "useKnowledgeGraph" - ] - }, - { - "source": "@/lib/app-deeplink", - "specifiers": [ - "stashDeepLink" - ] - } - ], - "exports": [], - "totalLines": 129, - "hasStructuralAnalysis": true - }, - "apps/web/src/routes/MissionControlRoute.tsx": { - "filePath": "apps/web/src/routes/MissionControlRoute.tsx", - "contentHash": "2396bd925cfac61626390b586a6f4ece9ef663a15fc6bf10f5586776edf8a8c0", - "functions": [ - { - "name": "MissionControlRoute", - "params": [], - "exported": false, - "lineCount": 5 - } - ], - "classes": [], - "imports": [ - { - "source": "@/components/os/apps/CockpitApp", - "specifiers": [ - "CockpitApp" - ] - }, - { - "source": "./SurfaceBoundary", - "specifiers": [ - "SurfaceBoundary" - ] - } - ], - "exports": [], - "totalLines": 17, - "hasStructuralAnalysis": true - }, - "apps/web/src/routes/PaymentSuccessRoute.tsx": { - "filePath": "apps/web/src/routes/PaymentSuccessRoute.tsx", - "contentHash": "7e2f578990862940f3f6e099f41c65f4b3c727b4d6cd7d3f060f2ae2b16397f3", - "functions": [ - { - "name": "PaymentSuccessRoute", - "params": [], - "exported": false, - "lineCount": 5 - } - ], - "classes": [], - "imports": [ - { - "source": "@/components/os/apps/PaymentSuccessApp", - "specifiers": [ - "PaymentSuccessApp" - ] - }, - { - "source": "./SurfaceBoundary", - "specifiers": [ - "SurfaceBoundary" - ] - } - ], - "exports": [], - "totalLines": 14, - "hasStructuralAnalysis": true - }, - "apps/web/src/routes/PlatformRoute.tsx": { - "filePath": "apps/web/src/routes/PlatformRoute.tsx", - "contentHash": "bb4a6285ce069edb62dab6ed16a12e44103dbc4f9e7803281dbece4fb216abe6", - "functions": [ - { - "name": "PlatformRoute", - "params": [], - "exported": false, - "lineCount": 5 - } - ], - "classes": [], - "imports": [ - { - "source": "@/components/os/apps/PlatformApp", - "specifiers": [ - "PlatformApp" - ] - }, - { - "source": "./SurfaceBoundary", - "specifiers": [ - "SurfaceBoundary" - ] - } - ], - "exports": [], - "totalLines": 12, - "hasStructuralAnalysis": true - }, - "apps/web/src/routes/ProfileRoute.tsx": { - "filePath": "apps/web/src/routes/ProfileRoute.tsx", - "contentHash": "872fbe37c59011ec0e5e7cc20a97bde3b20015299b5d7c88856db8dfbdea4dbb", - "functions": [ - { - "name": "ProfileRoute", - "params": [], - "exported": false, - "lineCount": 5 - } - ], - "classes": [], - "imports": [ - { - "source": "@/components/os/apps/UserProfileApp", - "specifiers": [ - "UserProfileApp" - ] - }, - { - "source": "./SurfaceBoundary", - "specifiers": [ - "SurfaceBoundary" - ] - } - ], - "exports": [], - "totalLines": 17, - "hasStructuralAnalysis": true - }, - "apps/web/src/routes/RoomRoute.tsx": { - "filePath": "apps/web/src/routes/RoomRoute.tsx", - "contentHash": "0b49992078a22533f8e07aca113a2a3be14eedb254c5932fcddd1a9189bfe42f", - "functions": [ - { - "name": "RoomRoute", - "params": [], - "exported": false, - "lineCount": 11 - } - ], - "classes": [], - "imports": [ - { - "source": "@/components/os/apps/RoomApp", - "specifiers": [ - "RoomApp" - ] - }, - { - "source": "./SurfaceBoundary", - "specifiers": [ - "SurfaceBoundary" - ] - }, - { - "source": "@/providers/ShellContext", - "specifiers": [ - "useShell" - ] - } - ], - "exports": [], - "totalLines": 19, - "hasStructuralAnalysis": true - }, - "apps/web/src/routes/SettingsRoute.tsx": { - "filePath": "apps/web/src/routes/SettingsRoute.tsx", - "contentHash": "2a51dfa890b51a7ff19dc2f7bc84139be418f3c5147b2bc85fd5a3db24879b86", - "functions": [ - { - "name": "SettingsRoute", - "params": [], - "exported": false, - "lineCount": 5 - } - ], - "classes": [], - "imports": [ - { - "source": "@/components/os/apps/SettingsApp", - "specifiers": [ - "SettingsApp" - ] - }, - { - "source": "./SurfaceBoundary", - "specifiers": [ - "SurfaceBoundary" - ] - } - ], - "exports": [], - "totalLines": 17, - "hasStructuralAnalysis": true - }, - "apps/web/src/routes/SkillsRoute.tsx": { - "filePath": "apps/web/src/routes/SkillsRoute.tsx", - "contentHash": "fcf63b0da4655bdb7cd6d90cc5375b3f5893c2d104acf6f6add34e7742ef2c81", - "functions": [ - { - "name": "SkillsRoute", - "params": [], - "exported": false, - "lineCount": 5 - } - ], - "classes": [], - "imports": [ - { - "source": "@/components/os/apps/CapabilitiesApp", - "specifiers": [ - "CapabilitiesApp" - ] - }, - { - "source": "./SurfaceBoundary", - "specifiers": [ - "SurfaceBoundary" - ] - } - ], - "exports": [], - "totalLines": 12, - "hasStructuralAnalysis": true - }, - "apps/web/src/routes/SurfaceBoundary.tsx": { - "filePath": "apps/web/src/routes/SurfaceBoundary.tsx", - "contentHash": "6f9ee406aaf7ec24b5cd7e0412422ddbfad3726a651b759ea5019c5a253f0a84", - "functions": [ - { - "name": "SurfaceBoundary", - "params": [ - "{ appName, children }" - ], - "exported": false, - "lineCount": 8 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "ReactNode" - ] - }, - { - "source": "react-router-dom", - "specifiers": [ - "useNavigate" - ] - }, - { - "source": "@/components/os/ErrorBoundary", - "specifiers": [ - "AppErrorBoundary" - ] - } - ], - "exports": [], - "totalLines": 20, - "hasStructuralAnalysis": true - }, - "apps/web/src/routes/TeamRoute.tsx": { - "filePath": "apps/web/src/routes/TeamRoute.tsx", - "contentHash": "802e04a40cac600a185e94ac71b8266f975c059d20312d0819dcea4367154e52", - "functions": [ - { - "name": "TeamRoute", - "params": [], - "exported": false, - "lineCount": 5 - } - ], - "classes": [], - "imports": [ - { - "source": "@/components/os/apps/TeamGovernanceApp", - "specifiers": [ - "TeamGovernanceApp" - ] - }, - { - "source": "./SurfaceBoundary", - "specifiers": [ - "SurfaceBoundary" - ] - } - ], - "exports": [], - "totalLines": 16, - "hasStructuralAnalysis": true - }, - "apps/web/src/routes/TimelineRoute.tsx": { - "filePath": "apps/web/src/routes/TimelineRoute.tsx", - "contentHash": "39c4f14025b45620346b1380ac9b77c8041fa62b460679e83d6454ce6525ec7a", - "functions": [ - { - "name": "TimelineRoute", - "params": [], - "exported": false, - "lineCount": 8 - } - ], - "classes": [], - "imports": [ - { - "source": "@/components/os/apps/TimelineApp", - "specifiers": [ - "TimelineApp" - ] - }, - { - "source": "./SurfaceBoundary", - "specifiers": [ - "SurfaceBoundary" - ] - }, - { - "source": "@/providers/ShellContext", - "specifiers": [ - "useShell" - ] - } - ], - "exports": [], - "totalLines": 16, - "hasStructuralAnalysis": true - }, - "apps/web/src/routes/UsageRoute.tsx": { - "filePath": "apps/web/src/routes/UsageRoute.tsx", - "contentHash": "9024876135710220527099df0bf185b2e53bcb18391402f34d3a52ba61d7efb5", - "functions": [ - { - "name": "UsageRoute", - "params": [], - "exported": false, - "lineCount": 5 - } - ], - "classes": [], - "imports": [ - { - "source": "@/components/os/apps/TelemetryApp", - "specifiers": [ - "TelemetryApp" - ] - }, - { - "source": "./SurfaceBoundary", - "specifiers": [ - "SurfaceBoundary" - ] - } - ], - "exports": [], - "totalLines": 12, - "hasStructuralAnalysis": true - }, - "apps/web/src/routes/VaultRoute.tsx": { - "filePath": "apps/web/src/routes/VaultRoute.tsx", - "contentHash": "28f341a7d8a76f345e88e216cb891a88d09c16a062b3fe4c0c6d3dff2051d92c", - "functions": [ - { - "name": "VaultRoute", - "params": [], - "exported": false, - "lineCount": 5 - } - ], - "classes": [], - "imports": [ - { - "source": "@/components/os/apps/VaultApp", - "specifiers": [ - "VaultApp" - ] - }, - { - "source": "./SurfaceBoundary", - "specifiers": [ - "SurfaceBoundary" - ] - } - ], - "exports": [], - "totalLines": 16, - "hasStructuralAnalysis": true - }, - "apps/web/src/routes/WaggleDanceRoute.tsx": { - "filePath": "apps/web/src/routes/WaggleDanceRoute.tsx", - "contentHash": "722b5d2f911bebc2ad53256c8f081d555eceb8753db45ff5c19d9171e28da540", - "functions": [ - { - "name": "WaggleDanceRoute", - "params": [], - "exported": false, - "lineCount": 5 - } - ], - "classes": [], - "imports": [ - { - "source": "@/components/os/apps/WaggleDanceApp", - "specifiers": [ - "WaggleDanceApp" - ] - }, - { - "source": "./SurfaceBoundary", - "specifiers": [ - "SurfaceBoundary" - ] - } - ], - "exports": [], - "totalLines": 12, - "hasStructuralAnalysis": true - }, - "apps/web/src/routes/WorkspaceRoute.tsx": { - "filePath": "apps/web/src/routes/WorkspaceRoute.tsx", - "contentHash": "71b39afe534eefd9e76b1711d7ce2a97451a95de6a6c56ea5c5b623f6d3d4fa7", - "functions": [ - { - "name": "WorkspaceRoute", - "params": [], - "exported": false, - "lineCount": 42 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useEffect" - ] - }, - { - "source": "react-router-dom", - "specifiers": [ - "useNavigate", - "useParams" - ] - }, - { - "source": "@/components/os/apps/WorkspaceDesktopApp", - "specifiers": [ - "WorkspaceDesktopApp", - "WorkspaceTabId" - ] - }, - { - "source": "@/components/os/ChatHost", - "specifiers": [ - "ChatSlot" - ] - }, - { - "source": "./SurfaceBoundary", - "specifiers": [ - "SurfaceBoundary" - ] - }, - { - "source": "@/providers/ShellContext", - "specifiers": [ - "useShell" - ] - } - ], - "exports": [], - "totalLines": 69, - "hasStructuralAnalysis": true - }, - "apps/web/src/routes/WorkspacesRoute.tsx": { - "filePath": "apps/web/src/routes/WorkspacesRoute.tsx", - "contentHash": "ff42e0b602456e809a805378564671a865f91ab67ef43316f2c329fa50a3dca8", - "functions": [ - { - "name": "WorkspacesRoute", - "params": [], - "exported": false, - "lineCount": 14 - } - ], - "classes": [], - "imports": [ - { - "source": "react-router-dom", - "specifiers": [ - "useNavigate" - ] - }, - { - "source": "@/components/os/apps/AllWorkspacesApp", - "specifiers": [ - "AllWorkspacesApp" - ] - }, - { - "source": "./SurfaceBoundary", - "specifiers": [ - "SurfaceBoundary" - ] - }, - { - "source": "@/providers/ShellContext", - "specifiers": [ - "useShell" - ] - }, - { - "source": "@/lib/routes", - "specifiers": [ - "routeFor" - ] - } - ], - "exports": [], - "totalLines": 25, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/chat-artifact-block.test.tsx": { - "filePath": "apps/web/src/test/chat-artifact-block.test.tsx", - "contentHash": "f36937c1292a81e59231410ca5405b6472059e277f4461d34682e4d579c912cd", - "functions": [ - { - "name": "toolBlock", - "params": [ - "over" - ], - "returnType": "ToolUseContentBlock", - "exported": false, - "lineCount": 8 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "render", - "screen", - "fireEvent", - "cleanup" - ] - }, - { - "source": "@/components/os/apps/chat-blocks/BlockRenderer", - "specifiers": [ - "BlockRenderer" - ] - }, - { - "source": "@/components/os/apps/chat-blocks/ArtifactBlock", - "specifiers": [ - "isArtifactBlock" - ] - }, - { - "source": "@/lib/app-deeplink", - "specifiers": [ - "consumeDeepLink" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "ToolUseContentBlock" - ] - } - ], - "exports": [], - "totalLines": 73, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/chat-work-canvas.test.tsx": { - "filePath": "apps/web/src/test/chat-work-canvas.test.tsx", - "contentHash": "4d3a7513a61ef9de2e56d46fc149ee63103683823bcd40d55c15825328a72528", - "functions": [ - { - "name": "asstMsg", - "params": [ - "blocks" - ], - "returnType": "ChatMessage", - "exported": false, - "lineCount": 3 - }, - { - "name": "writeBlock", - "params": [ - "path", - "content", - "result" - ], - "returnType": "ContentBlock", - "exported": false, - "lineCount": 5 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "render", - "screen", - "cleanup", - "fireEvent" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "ChatMessage", - "ContentBlock" - ] - }, - { - "source": "@/components/os/apps/chat-blocks", - "specifiers": [ - "BlockRenderer" - ] - }, - { - "source": "@/components/os/apps/chat-blocks/ChatWorkCanvas", - "specifiers": [ - "selectCanvasArtifact" - ] - } - ], - "exports": [], - "totalLines": 73, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/example.test.ts": { - "filePath": "apps/web/src/test/example.test.ts", - "contentHash": "59e65dfa496976f02d41b5b54cd30cc8bb0a5edd46879a1a419a87051821d0a2", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - } - ], - "exports": [], - "totalLines": 8, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/file-utils-path.test.ts": { - "filePath": "apps/web/src/test/file-utils-path.test.ts", - "contentHash": "bb0dd55d093e2d6b46a0ee3dec1ca155effbe1515c2dcdf3f6f6a42a129d88a2", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "@/components/os/apps/files/file-utils", - "specifiers": [ - "normalizeWorkspacePath" - ] - } - ], - "exports": [], - "totalLines": 44, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/files-deeplink.test.tsx": { - "filePath": "apps/web/src/test/files-deeplink.test.tsx", - "contentHash": "b2a42411486313a8d6932597db89fec59616a421d836f6ce54cf657bc817dfba", - "functions": [ - { - "name": "render", - "params": [], - "exported": false, - "lineCount": 2 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "rtlRender", - "waitFor", - "cleanup" - ] - }, - { - "source": "@/components/ui/tooltip", - "specifiers": [ - "TooltipProvider" - ] - }, - { - "source": "@/lib/app-deeplink", - "specifiers": [ - "stashDeepLink", - "consumeDeepLink" - ] - }, - { - "source": "@/components/os/apps/FilesApp", - "specifiers": [ - "FilesApp" - ] - } - ], - "exports": [], - "totalLines": 90, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/light-mode-tokens.test.ts": { - "filePath": "apps/web/src/test/light-mode-tokens.test.ts", - "contentHash": "461264d92e96be4f6049741bb7015c84d66046a16d4f95946f7682ece8fee8dd", - "functions": [ - { - "name": "block", - "params": [ - "selector" - ], - "returnType": "string", - "exported": false, - "lineCount": 15 - }, - { - "name": "tokens", - "params": [ - "body" - ], - "returnType": "Map", - "exported": false, - "lineCount": 7 - }, - { - "name": "hexToRgb", - "params": [ - "x" - ], - "returnType": "[number, number, number]", - "exported": false, - "lineCount": 4 - }, - { - "name": "hslToRgb", - "params": [ - "h", - "s", - "l" - ], - "returnType": "[number, number, number]", - "exported": false, - "lineCount": 7 - }, - { - "name": "lum", - "params": [ - "[r, g, b]" - ], - "returnType": "number", - "exported": false, - "lineCount": 7 - }, - { - "name": "ratio", - "params": [ - "c1", - "c2" - ], - "returnType": "number", - "exported": false, - "lineCount": 4 - }, - { - "name": "hslTriple", - "params": [ - "body", - "name" - ], - "returnType": "[number, number, number] | null", - "exported": false, - "lineCount": 4 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "readFileSync" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - } - ], - "exports": [], - "totalLines": 123, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/p1a-chat-state.test.tsx": { - "filePath": "apps/web/src/test/p1a-chat-state.test.tsx", - "contentHash": "d1b717d241a4c7530f59a6c6a56885b5c1f33d85cd8d354cd77b8acb5cc30e08", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "render", - "screen", - "fireEvent", - "cleanup", - "renderHook", - "act" - ] - }, - { - "source": "@/hooks/useChatWidgetState", - "specifiers": [ - "CHAT_STATE_KEY", - "composeChatTitle", - "loadChatEntries", - "rekeyLocalDefaultChatState", - "seedChat", - "takeChatSeed", - "useChatWidgetState", - "writeChatEntry" - ] - }, - { - "source": "@/components/os/apps/WorkspaceDesktopApp", - "specifiers": [ - "WorkspaceDesktopApp" - ] - } - ], - "exports": [], - "totalLines": 250, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/p1a-routes.test.ts": { - "filePath": "apps/web/src/test/p1a-routes.test.ts", - "contentHash": "bab21eb5cbf0f8abc1ad7344f0583334c4b40737b9e354bdd84e92bf96156497", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "@/lib/routes", - "specifiers": [ - "APP_ROUTES", - "matchNavRoute", - "queryString", - "routeFor", - "routeForSearchResult" - ] - }, - { - "source": "@/lib/dock-tiers", - "specifiers": [ - "TIER_DOCK_CONFIG", - "getDockForTier", - "AppId", - "DockEntry" - ] - } - ], - "exports": [], - "totalLines": 246, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/p1a-window-migration.test.ts": { - "filePath": "apps/web/src/test/p1a-window-migration.test.ts", - "contentHash": "fd0fde2fa3925d3493930ee40ed2c7a3327af7b8e50f6f027da72158f0709d26", - "functions": [ - { - "name": "win", - "params": [ - "over" - ], - "returnType": "LegacyWindowState", - "exported": false, - "lineCount": 7 - }, - { - "name": "setLegacy", - "params": [ - "windows" - ], - "returnType": "void", - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach" - ] - }, - { - "source": "@/lib/window-state-migration", - "specifiers": [ - "bootWindowStateMigration", - "computeWindowStateMigration", - "indexLandingRoute", - "resetWindowStateMigrationForTests", - "runWindowStateMigration", - "WINDOW_STATE_KEY", - "LegacyWindowState" - ] - }, - { - "source": "@/hooks/useChatWidgetState", - "specifiers": [ - "CHAT_STATE_KEY", - "loadChatEntries", - "rekeyLocalDefaultChatState" - ] - } - ], - "exports": [], - "totalLines": 203, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/p1a-workspace-route.test.tsx": { - "filePath": "apps/web/src/test/p1a-workspace-route.test.tsx", - "contentHash": "fda92bfdce044abf64d3a8d9a663b4738f774b6f38ca111b690a8dc3f4615026", - "functions": [ - { - "name": "renderAt", - "params": [ - "path" - ], - "exported": false, - "lineCount": 9 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "render", - "cleanup" - ] - }, - { - "source": "react-router-dom", - "specifiers": [ - "MemoryRouter", - "Route", - "Routes" - ] - }, - { - "source": "@/routes/WorkspaceRoute", - "specifiers": [ - "WorkspaceRoute" - ] - } - ], - "exports": [], - "totalLines": 81, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/p1b-authgate-surfaces.test.tsx": { - "filePath": "apps/web/src/test/p1b-authgate-surfaces.test.tsx", - "contentHash": "fc7124a1537df531345bdf955a983d2884bbc40874bdb843cb74c85d986db4c8", - "functions": [ - { - "name": "httpError", - "params": [ - "status", - "body", - "message" - ], - "exported": false, - "lineCount": 7 - }, - { - "name": "settleConnect", - "params": [], - "exported": false, - "lineCount": 2 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "renderHook", - "act", - "waitFor", - "cleanup" - ] - }, - { - "source": "@/hooks/useRevalidateOnError", - "specifiers": [ - "CONNECT_SETTLED_EVENT" - ] - } - ], - "exports": [], - "totalLines": 311, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/p2-home-desktop.test.tsx": { - "filePath": "apps/web/src/test/p2-home-desktop.test.tsx", - "contentHash": "2194b73f6d9df3532eee9a6a195cbd68e001d12775b37a38ef0d5b71c8fef422", - "functions": [ - { - "name": "httpError", - "params": [ - "status", - "message" - ], - "exported": false, - "lineCount": 6 - }, - { - "name": "briefing", - "params": [ - "over" - ], - "exported": false, - "lineCount": 11 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "render", - "screen", - "waitFor", - "cleanup", - "fireEvent" - ] - }, - { - "source": "@/lib/app-deeplink", - "specifiers": [ - "stashDeepLink" - ] - } - ], - "exports": [], - "totalLines": 244, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/p2-onboarding-forcewizard.test.ts": { - "filePath": "apps/web/src/test/p2-onboarding-forcewizard.test.ts", - "contentHash": "f93f797390d5a38d948c8dca55ae801cd37b3e7c182a87d199ef77710e7dd6a2", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "renderHook", - "act", - "cleanup" - ] - } - ], - "exports": [], - "totalLines": 85, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/p3-memory-center-app.test.tsx": { - "filePath": "apps/web/src/test/p3-memory-center-app.test.tsx", - "contentHash": "7f4b51f607098a9ec023050e22b09dc5382d100340b8037f6a3d4c70c7cd772e", - "functions": [ - { - "name": "LocationProbe", - "params": [], - "exported": false, - "lineCount": 4 - }, - { - "name": "renderRoute", - "params": [ - "path" - ], - "exported": false, - "lineCount": 13 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "render", - "screen", - "waitFor", - "cleanup", - "fireEvent" - ] - }, - { - "source": "react-router-dom", - "specifiers": [ - "MemoryRouter", - "Route", - "Routes", - "useLocation" - ] - }, - { - "source": "@/components/ui/tooltip", - "specifiers": [ - "TooltipProvider" - ] - }, - { - "source": "@/lib/app-deeplink", - "specifiers": [ - "consumeDeepLink" - ] - } - ], - "exports": [], - "totalLines": 225, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/p3-two-mind-memory.test.tsx": { - "filePath": "apps/web/src/test/p3-two-mind-memory.test.tsx", - "contentHash": "be1b6ae65ce96a6dadd15c379b9fec79723559633a522e01c318257455c2a2f4", - "functions": [ - { - "name": "mem", - "params": [ - "over" - ], - "returnType": "Memory", - "exported": false, - "lineCount": 15 - }, - { - "name": "renderTab", - "params": [ - "props" - ], - "exported": false, - "lineCount": 4 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "render", - "screen", - "waitFor", - "cleanup", - "fireEvent" - ] - }, - { - "source": "@/lib/app-deeplink", - "specifiers": [ - "stashDeepLink", - "consumeDeepLink" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "Memory" - ] - } - ], - "exports": [], - "totalLines": 206, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/p4-onboarding-status.test.ts": { - "filePath": "apps/web/src/test/p4-onboarding-status.test.ts", - "contentHash": "02173851fdb307b67f569614394ff01963e68bc2e28087293bc3c502f226fc71", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "renderHook", - "act", - "waitFor", - "cleanup" - ] - } - ], - "exports": [], - "totalLines": 92, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/p7-a5-approval-card-risk.test.tsx": { - "filePath": "apps/web/src/test/p7-a5-approval-card-risk.test.tsx", - "contentHash": "7e64d1a0dc0688116cd2b28c8010547460e712b9f9bde069f2540928546ddf41", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "render", - "screen", - "cleanup" - ] - }, - { - "source": "@/lib/risk-display", - "specifiers": [ - "RiskBadge", - "RISK_LABELS", - "canAlwaysAllow" - ] - } - ], - "exports": [], - "totalLines": 38, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/p7-a6-approval-gating.test.tsx": { - "filePath": "apps/web/src/test/p7-a6-approval-gating.test.tsx", - "contentHash": "efbc5f2a2eb02e9ca20deb28e3ec687015f842e563750349f95ffa42e05ff14b", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "render", - "screen", - "cleanup" - ] - }, - { - "source": "@/components/ui/approval-modal", - "specifiers": [ - "ApprovalModal" - ] - }, - { - "source": "@/lib/risk-display", - "specifiers": [ - "canAlwaysAllow" - ] - } - ], - "exports": [], - "totalLines": 38, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/p7-a7-install-risk.test.tsx": { - "filePath": "apps/web/src/test/p7-a7-install-risk.test.tsx", - "contentHash": "92f0177caa949744995e2facf8a045f27444fcef576b8e6983563fdfb432854b", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "@/lib/risk-display", - "specifiers": [ - "classifyInstallRisk", - "isKnownRiskLevel", - "RISK_LABELS" - ] - }, - { - "source": "@/components/os/apps/MarketplaceApp", - "specifiers": [ - "installRiskFor" - ] - } - ], - "exports": [], - "totalLines": 42, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/p7-b1-approvals-error.test.tsx": { - "filePath": "apps/web/src/test/p7-b1-approvals-error.test.tsx", - "contentHash": "6cde1643283458359bc994a543155418b054bf1dc3f12295f0607bd91e028228", - "functions": [ - { - "name": "render", - "params": [], - "exported": false, - "lineCount": 1 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "rtlRender", - "screen", - "cleanup", - "waitFor", - "fireEvent" - ] - }, - { - "source": "@/components/ui/tooltip", - "specifiers": [ - "TooltipProvider" - ] - }, - { - "source": "@/components/os/apps/ApprovalsApp", - "specifiers": [ - "ApprovalsApp" - ] - } - ], - "exports": [], - "totalLines": 60, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/p7-b2-room-state.test.ts": { - "filePath": "apps/web/src/test/p7-b2-room-state.test.ts", - "contentHash": "a90437bc71b1ab43e9e24dcc663847c50c5784bfca66d188e8645126c031372b", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "renderHook", - "act", - "waitFor" - ] - }, - { - "source": "@/hooks/useRoomState", - "specifiers": [ - "useRoomState" - ] - } - ], - "exports": [], - "totalLines": 47, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/p7-b3-command-center.test.tsx": { - "filePath": "apps/web/src/test/p7-b3-command-center.test.tsx", - "contentHash": "a4de0e486085c481763682bee504f083c6d855fc8bb84bbf6fe726059ac10e0f", - "functions": [], - "classes": [ - { - "name": "ResizeObserverStub", - "methods": [ - "observe", - "unobserve", - "disconnect" - ], - "properties": [], - "exported": false, - "lineCount": 1 - } - ], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "render", - "screen", - "cleanup", - "waitFor", - "fireEvent" - ] - }, - { - "source": "@/components/os/ErrorBoundary", - "specifiers": [ - "AppErrorBoundary" - ] - }, - { - "source": "@/components/os/overlays/CommandCenter", - "specifiers": [ - "CommandCenter" - ] - } - ], - "exports": [], - "totalLines": 73, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/p7-b4-files-error.test.tsx": { - "filePath": "apps/web/src/test/p7-b4-files-error.test.tsx", - "contentHash": "c347cf19a4b5bda59cfba8166ca30aebd657d1112e36c8c24724bd0cbe02fef3", - "functions": [ - { - "name": "render", - "params": [], - "exported": false, - "lineCount": 2 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "rtlRender", - "screen", - "cleanup", - "waitFor", - "fireEvent" - ] - }, - { - "source": "@/components/ui/tooltip", - "specifiers": [ - "TooltipProvider" - ] - }, - { - "source": "@/components/os/apps/FilesApp", - "specifiers": [ - "FilesApp" - ] - } - ], - "exports": [], - "totalLines": 76, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/p7-b5-error-threading.test.tsx": { - "filePath": "apps/web/src/test/p7-b5-error-threading.test.tsx", - "contentHash": "e5a324a851e6a17581d620b2df78e49dee29365f86d12ec5f34dcccec924129e", - "functions": [ - { - "name": "render", - "params": [ - "ui" - ], - "exported": false, - "lineCount": 1 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "rtlRender", - "screen", - "cleanup" - ] - }, - { - "source": "react", - "specifiers": [ - "ReactElement" - ] - }, - { - "source": "@/components/ui/tooltip", - "specifiers": [ - "TooltipProvider" - ] - } - ], - "exports": [], - "totalLines": 54, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/p7-issue17-trust-source.test.tsx": { - "filePath": "apps/web/src/test/p7-issue17-trust-source.test.tsx", - "contentHash": "108e8bebd785fb12c74e2b01ab57188e01210bcf632d710130d715e6eea90894", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "render", - "screen", - "cleanup" - ] - }, - { - "source": "@/components/ui/approval-modal", - "specifiers": [ - "ApprovalModal" - ] - }, - { - "source": "@/lib/risk-display", - "specifiers": [ - "installTrustSource", - "TRUST_SOURCE_LABELS" - ] - }, - { - "source": "@/components/os/apps/MarketplaceApp", - "specifiers": [ - "buildInstallRequest" - ] - } - ], - "exports": [], - "totalLines": 58, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/p7-issue8-action-risk.test.ts": { - "filePath": "apps/web/src/test/p7-issue8-action-risk.test.ts", - "contentHash": "d321e5a9511de6c68cf0c34b1696fae4d8e71e28e0e98c5411b09a5951ebb75b", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "@/lib/risk-display", - "specifiers": [ - "actionRisk" - ] - } - ], - "exports": [], - "totalLines": 22, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/phase3b-agent-center.test.tsx": { - "filePath": "apps/web/src/test/phase3b-agent-center.test.tsx", - "contentHash": "9435f9f25af2897025cc4da5a8315e850b9e31b00f52175420be8e90941b69f3", - "functions": [ - { - "name": "makeAgent", - "params": [ - "over" - ], - "returnType": "Agent", - "exported": false, - "lineCount": 9 - }, - { - "name": "renderApp", - "params": [], - "exported": false, - "lineCount": 12 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "render", - "screen", - "fireEvent", - "cleanup", - "within", - "waitFor" - ] - }, - { - "source": "react-router-dom", - "specifiers": [ - "MemoryRouter" - ] - }, - { - "source": "@/components/ui/tooltip", - "specifiers": [ - "TooltipProvider" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "Agent" - ] - }, - { - "source": "@/components/os/apps/AgentsApp", - "specifiers": [ - "AgentsApp" - ] - }, - { - "source": "@/providers/ServiceProvider", - "specifiers": [ - "ServiceProvider" - ] - } - ], - "exports": [], - "totalLines": 172, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/phase3b-automation-center.test.tsx": { - "filePath": "apps/web/src/test/phase3b-automation-center.test.tsx", - "contentHash": "f47e12bba7fcace53248967ffd021adade6887ec8b500a3b06faa918290ae68a", - "functions": [ - { - "name": "makeAutomation", - "params": [ - "over" - ], - "returnType": "Automation", - "exported": false, - "lineCount": 7 - }, - { - "name": "log", - "params": [ - "id", - "success" - ], - "returnType": "AutomationLog", - "exported": false, - "lineCount": 3 - }, - { - "name": "renderApp", - "params": [], - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "render", - "screen", - "fireEvent", - "cleanup" - ] - }, - { - "source": "@/components/ui/tooltip", - "specifiers": [ - "TooltipProvider" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "Automation" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "AutomationLog" - ] - }, - { - "source": "@/components/os/apps/AutomationCenterApp", - "specifiers": [ - "AutomationCenterApp" - ] - }, - { - "source": "@/providers/ServiceProvider", - "specifiers": [ - "ServiceProvider" - ] - }, - { - "source": "@/lib/app-deeplink", - "specifiers": [ - "stashDeepLink" - ] - } - ], - "exports": [], - "totalLines": 223, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/phase3b-skills-hub.test.tsx": { - "filePath": "apps/web/src/test/phase3b-skills-hub.test.tsx", - "contentHash": "7213aee340a0b705fc1b1d26760f7c0d1c2a50201fc242464394dcb1ad6c9b96", - "functions": [ - { - "name": "renderApp", - "params": [], - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "render", - "screen", - "fireEvent", - "cleanup" - ] - }, - { - "source": "@/components/ui/tooltip", - "specifiers": [ - "TooltipProvider" - ] - }, - { - "source": "@/components/os/apps/CapabilitiesApp", - "specifiers": [ - "CapabilitiesApp" - ] - }, - { - "source": "@/providers/ServiceProvider", - "specifiers": [ - "ServiceProvider" - ] - } - ], - "exports": [], - "totalLines": 162, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/phase3c-agent-builder.test.tsx": { - "filePath": "apps/web/src/test/phase3c-agent-builder.test.tsx", - "contentHash": "03c4a048886a378b2ce413edfd00091ed7affe7f3da5809b5559bfe705207086", - "functions": [ - { - "name": "makeAgent", - "params": [ - "over" - ], - "returnType": "Agent", - "exported": false, - "lineCount": 8 - }, - { - "name": "renderApp", - "params": [], - "exported": false, - "lineCount": 9 - }, - { - "name": "openBuilder", - "params": [], - "exported": false, - "lineCount": 4 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "render", - "screen", - "fireEvent", - "cleanup", - "waitFor" - ] - }, - { - "source": "react-router-dom", - "specifiers": [ - "MemoryRouter" - ] - }, - { - "source": "@/components/ui/tooltip", - "specifiers": [ - "TooltipProvider" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "Agent" - ] - }, - { - "source": "@/components/os/apps/AgentsApp", - "specifiers": [ - "AgentsApp" - ] - }, - { - "source": "@/components/os/apps/agents/AgentBuilder", - "specifiers": [ - "AgentBuilder" - ] - }, - { - "source": "@/providers/ServiceProvider", - "specifiers": [ - "ServiceProvider" - ] - } - ], - "exports": [], - "totalLines": 235, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/phase3c-automation-builder.test.tsx": { - "filePath": "apps/web/src/test/phase3c-automation-builder.test.tsx", - "contentHash": "8be0ad155230a34f900472b88bf87533e66c2dc4334be3e88b063df3c015f400", - "functions": [ - { - "name": "makeAutomation", - "params": [ - "over" - ], - "returnType": "Automation", - "exported": false, - "lineCount": 7 - }, - { - "name": "renderApp", - "params": [], - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "render", - "screen", - "fireEvent", - "cleanup", - "waitFor", - "within" - ] - }, - { - "source": "@/components/ui/tooltip", - "specifiers": [ - "TooltipProvider" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "Automation" - ] - }, - { - "source": "@/components/os/apps/AutomationCenterApp", - "specifiers": [ - "AutomationCenterApp" - ] - }, - { - "source": "@/components/os/apps/automations/AutomationBuilder", - "specifiers": [ - "AutomationBuilder" - ] - }, - { - "source": "@/providers/ServiceProvider", - "specifiers": [ - "ServiceProvider" - ] - } - ], - "exports": [], - "totalLines": 264, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/phase3c-skill-builder.test.tsx": { - "filePath": "apps/web/src/test/phase3c-skill-builder.test.tsx", - "contentHash": "1524c8bd991bece0b1a810e44189585db1aa75056c77bdfcfa298a88c09bbbe1", - "functions": [ - { - "name": "renderBuilder", - "params": [ - "over" - ], - "exported": false, - "lineCount": 10 - }, - { - "name": "fillIdentity", - "params": [ - "name" - ], - "exported": false, - "lineCount": 4 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "render", - "screen", - "fireEvent", - "cleanup", - "waitFor" - ] - }, - { - "source": "@/components/ui/tooltip", - "specifiers": [ - "TooltipProvider" - ] - }, - { - "source": "@/components/os/apps/CapabilitiesApp", - "specifiers": [ - "CapabilitiesApp" - ] - }, - { - "source": "@/components/os/apps/skills/SkillBuilder", - "specifiers": [ - "SkillBuilder", - "appendIoSections" - ] - }, - { - "source": "@/providers/ServiceProvider", - "specifiers": [ - "ServiceProvider" - ] - } - ], - "exports": [], - "totalLines": 255, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/phase4b-connector-hub.test.tsx": { - "filePath": "apps/web/src/test/phase4b-connector-hub.test.tsx", - "contentHash": "30f7f58593c13bea7aeb25dfefc2b786a3bb8487e3c070bc247c508bc59b70d9", - "functions": [ - { - "name": "renderApp", - "params": [], - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "render", - "screen", - "fireEvent", - "cleanup", - "waitFor" - ] - }, - { - "source": "@/components/ui/tooltip", - "specifiers": [ - "TooltipProvider" - ] - }, - { - "source": "@/components/os/apps/ConnectorsApp", - "specifiers": [ - "ConnectorsApp", - "buildRevokeRequest", - "shouldResetCredentialInputs" - ] - }, - { - "source": "@/providers/ServiceProvider", - "specifiers": [ - "ServiceProvider" - ] - } - ], - "exports": [], - "totalLines": 182, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/phase4b-marketplace-extend.test.tsx": { - "filePath": "apps/web/src/test/phase4b-marketplace-extend.test.tsx", - "contentHash": "7efaba89d050d920b7e9449d17eb565e62cfa925d3e30b5597ca51d9e6a9e717", - "functions": [ - { - "name": "renderApp", - "params": [], - "exported": false, - "lineCount": 3 - }, - { - "name": "skillRows", - "params": [ - "installed" - ], - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "render", - "screen", - "fireEvent", - "cleanup", - "waitFor" - ] - }, - { - "source": "@/components/ui/tooltip", - "specifiers": [ - "TooltipProvider" - ] - }, - { - "source": "@/components/os/apps/MarketplaceApp", - "specifiers": [ - "MarketplaceApp" - ] - }, - { - "source": "@/providers/ServiceProvider", - "specifiers": [ - "ServiceProvider" - ] - }, - { - "source": "@/providers/InstallProvider", - "specifiers": [ - "InstallProvider" - ] - } - ], - "exports": [], - "totalLines": 233, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/phase4b-mcp-hub.test.tsx": { - "filePath": "apps/web/src/test/phase4b-mcp-hub.test.tsx", - "contentHash": "d6b1779a1e9a61b3706460b893baf7feddd5f54642e1ebdb2d283d8a86b408b3", - "functions": [ - { - "name": "renderApp", - "params": [], - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "render", - "screen", - "fireEvent", - "cleanup", - "waitFor" - ] - }, - { - "source": "@/components/ui/tooltip", - "specifiers": [ - "TooltipProvider" - ] - }, - { - "source": "@/components/os/apps/MCPHubApp", - "specifiers": [ - "MCPHubApp" - ] - }, - { - "source": "@/components/os/apps/mcp/mcp-hub-types", - "specifiers": [ - "mcpStateBadge" - ] - }, - { - "source": "@/providers/ServiceProvider", - "specifiers": [ - "ServiceProvider" - ] - } - ], - "exports": [], - "totalLines": 305, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/phase5b-backup.test.tsx": { - "filePath": "apps/web/src/test/phase5b-backup.test.tsx", - "contentHash": "d48534cebf5b680af8fbe292586ad80c3566ec7a0a4a22f1261abd0b900f5da9", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "@/components/os/apps/BackupApp", - "specifiers": [ - "classifyMetadataStatus" - ] - } - ], - "exports": [], - "totalLines": 49, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/phase5b-connectors.test.tsx": { - "filePath": "apps/web/src/test/phase5b-connectors.test.tsx", - "contentHash": "3b44ef3568f4abffae03d74038345809e6cb10cf8dd44ee6d46822199ca2bab8", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "@/components/os/apps/ConnectorsApp", - "specifiers": [ - "shouldResetCredentialInputs" - ] - } - ], - "exports": [], - "totalLines": 47, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/phase5b-error-boundary.test.tsx": { - "filePath": "apps/web/src/test/phase5b-error-boundary.test.tsx", - "contentHash": "54dff7f43424d9ec0446940d61c3f0a367f02be47d162e95f88ed17c051aced2", - "functions": [ - { - "name": "Boom", - "params": [], - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "react", - "specifiers": [ - "act" - ] - }, - { - "source": "react-dom/client", - "specifiers": [ - "createRoot", - "Root" - ] - }, - { - "source": "@/components/os/ErrorBoundary", - "specifiers": [ - "AppErrorBoundary" - ] - } - ], - "exports": [], - "totalLines": 77, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/phase5b-usechat.test.ts": { - "filePath": "apps/web/src/test/phase5b-usechat.test.ts", - "contentHash": "d518ea14262cc6204e777d47ceb0ade25fecbe29bc9f503bf304704bdc9d4361", - "functions": [ - { - "name": "unguardedUpdater", - "params": [ - "prev" - ], - "returnType": "ChatMessage[]", - "exported": false, - "lineCount": 6 - }, - { - "name": "guardedUpdater", - "params": [ - "prev" - ], - "returnType": "ChatMessage[]", - "exported": false, - "lineCount": 6 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "ChatMessage" - ] - } - ], - "exports": [], - "totalLines": 71, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/pr35-memory-trust-manage.test.tsx": { - "filePath": "apps/web/src/test/pr35-memory-trust-manage.test.tsx", - "contentHash": "e6f705fbe28d040274417204982104c0b893e2f97738b992a077e3ca8c1a0e5c", - "functions": [ - { - "name": "iso", - "params": [ - "ageDays" - ], - "exported": false, - "lineCount": 1 - }, - { - "name": "mem", - "params": [ - "over" - ], - "returnType": "Memory", - "exported": false, - "lineCount": 9 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "afterEach", - "vi", - "beforeEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "render", - "screen", - "cleanup", - "fireEvent", - "waitFor" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "Memory" - ] - }, - { - "source": "@/components/os/apps/memory/MemoryTrustManage", - "specifiers": [ - "MemoryTrustManage" - ] - } - ], - "exports": [], - "totalLines": 115, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/pr35-memory-trust-why.test.tsx": { - "filePath": "apps/web/src/test/pr35-memory-trust-why.test.tsx", - "contentHash": "f5a8648dccf2fa79fabae5dfd8f67c77e8f3adca1cc5e2324fe1931882a4b98c", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "afterEach", - "vi" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "render", - "screen", - "cleanup", - "fireEvent", - "waitFor" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "MemoryTrace" - ] - }, - { - "source": "@/components/os/apps/memory/MemoryTrustWhy", - "specifiers": [ - "MemoryTrustWhy" - ] - } - ], - "exports": [], - "totalLines": 75, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/pr35-memory-trust.test.tsx": { - "filePath": "apps/web/src/test/pr35-memory-trust.test.tsx", - "contentHash": "67c062967b10c8b5892f467ce8c46ec0d3b8902943eee5a0702c0bc3ce223b26", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "render", - "screen", - "cleanup", - "fireEvent" - ] - }, - { - "source": "vitest", - "specifiers": [ - "vi" - ] - }, - { - "source": "@/components/os/apps/MemoryTrust", - "specifiers": [ - "MemoryTrust" - ] - } - ], - "exports": [], - "totalLines": 55, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/pr4-agent-search.test.tsx": { - "filePath": "apps/web/src/test/pr4-agent-search.test.tsx", - "contentHash": "9e433ed816c51c0446f9825822eecd21557605d2a40b9d3c92aa8b7b7513515c", - "functions": [ - { - "name": "wrapper", - "params": [ - "{ children }" - ], - "exported": false, - "lineCount": 3 - }, - { - "name": "ask", - "params": [ - "text" - ], - "exported": false, - "lineCount": 5 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "render", - "screen", - "fireEvent", - "cleanup", - "waitFor" - ] - }, - { - "source": "react", - "specifiers": [ - "ReactNode" - ] - }, - { - "source": "@/lib/agent-search", - "specifiers": [ - "AgentSearchResponse" - ] - }, - { - "source": "@/providers/ServiceProvider", - "specifiers": [ - "ServiceProvider" - ] - }, - { - "source": "@/providers/InstallProvider", - "specifiers": [ - "InstallProvider" - ] - }, - { - "source": "@/components/os/apps/extend/AgentSearchBox", - "specifiers": [ - "AgentSearchBox" - ] - } - ], - "exports": [], - "totalLines": 122, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/pr4-inline-capability.test.tsx": { - "filePath": "apps/web/src/test/pr4-inline-capability.test.tsx", - "contentHash": "04d29a046c49b9b795077b7aba4fabf1f9b00ff25bb7a98240e9342fa7dc3899", - "functions": [ - { - "name": "wrapper", - "params": [ - "{ children }" - ], - "exported": false, - "lineCount": 3 - }, - { - "name": "renderCard", - "params": [ - "request" - ], - "exported": false, - "lineCount": 1 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "render", - "screen", - "fireEvent", - "cleanup", - "waitFor" - ] - }, - { - "source": "react", - "specifiers": [ - "ReactNode" - ] - }, - { - "source": "@/components/os/apps/chat-blocks/CapabilityRequestCard", - "specifiers": [ - "CapabilityRequest" - ] - }, - { - "source": "@/providers/ServiceProvider", - "specifiers": [ - "ServiceProvider" - ] - }, - { - "source": "@/providers/InstallProvider", - "specifiers": [ - "InstallProvider" - ] - }, - { - "source": "@/components/os/apps/chat-blocks/CapabilityRequestCard", - "specifiers": [ - "CapabilityRequestCard" - ] - } - ], - "exports": [], - "totalLines": 114, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/pr4-install-store.test.tsx": { - "filePath": "apps/web/src/test/pr4-install-store.test.tsx", - "contentHash": "742efa3ef447ec7c0943f69538ef0594a94cd2a2f1c7c124995f18b2fcd038cd", - "functions": [ - { - "name": "wrapper", - "params": [ - "{ children }" - ], - "exported": false, - "lineCount": 3 - }, - { - "name": "mountStore", - "params": [], - "exported": false, - "lineCount": 6 - }, - { - "name": "pkg", - "params": [ - "id", - "name" - ], - "returnType": "InstallTarget", - "exported": false, - "lineCount": 2 - }, - { - "name": "connector", - "params": [ - "id", - "name" - ], - "returnType": "InstallTarget", - "exported": false, - "lineCount": 2 - }, - { - "name": "catalogMcp", - "params": [ - "id", - "name" - ], - "returnType": "InstallTarget", - "exported": false, - "lineCount": 2 - }, - { - "name": "httpError", - "params": [ - "status", - "body" - ], - "returnType": "Error", - "exported": false, - "lineCount": 7 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "renderHook", - "act", - "waitFor", - "cleanup" - ] - }, - { - "source": "react", - "specifiers": [ - "ReactNode" - ] - }, - { - "source": "@/providers/ServiceProvider", - "specifiers": [ - "ServiceProvider" - ] - }, - { - "source": "@/providers/InstallProvider", - "specifiers": [ - "InstallProvider", - "useInstallStore" - ] - }, - { - "source": "@/lib/install-store", - "specifiers": [ - "InstallTarget" - ] - } - ], - "exports": [], - "totalLines": 287, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/pr5-settings-reskin.test.tsx": { - "filePath": "apps/web/src/test/pr5-settings-reskin.test.tsx", - "contentHash": "73f33897100fc1f0ccd9331a1070158caa5ffc4627fc50e978874af73fab9746", - "functions": [ - { - "name": "renderSettings", - "params": [], - "exported": false, - "lineCount": 15 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "render", - "screen", - "fireEvent", - "cleanup" - ] - } - ], - "exports": [], - "totalLines": 66, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/pr7a-billing.test.tsx": { - "filePath": "apps/web/src/test/pr7a-billing.test.tsx", - "contentHash": "d9c3381b69998a0d5681bcc9ec0ee0f0bb61003458debd6d0017d2d5d101afd2", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "render", - "screen", - "fireEvent", - "cleanup", - "renderHook", - "act", - "waitFor" - ] - }, - { - "source": "react-router-dom", - "specifiers": [ - "MemoryRouter" - ] - } - ], - "exports": [], - "totalLines": 168, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/pr7b-auth.test.tsx": { - "filePath": "apps/web/src/test/pr7b-auth.test.tsx", - "contentHash": "a3133d5c6ed4f1ac75ec0226de828b340b1de1438856a69d83f0f26bcd75a5df", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "afterEach", - "beforeEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "render", - "screen", - "cleanup", - "fireEvent" - ] - }, - { - "source": "react-router-dom", - "specifiers": [ - "MemoryRouter" - ] - } - ], - "exports": [], - "totalLines": 118, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/setup.ts": { - "filePath": "apps/web/src/test/setup.ts", - "contentHash": "04f2798b91d274d3a353c678412ff265cd9c45345090808925f13c8d55408049", - "functions": [], - "classes": [], - "imports": [ - { - "source": "@testing-library/jest-dom", - "specifiers": [] - } - ], - "exports": [], - "totalLines": 16, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/warm-primitives.test.tsx": { - "filePath": "apps/web/src/test/warm-primitives.test.tsx", - "contentHash": "719b79d49b558246fe320fc2a3e9742192cccfa94b9079072ae0ff87b29bbf21", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "afterEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "render", - "screen", - "cleanup", - "fireEvent" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Sparkles" - ] - }, - { - "source": "@/components/os/warm", - "specifiers": [ - "HexAvatar", - "SectionLabel", - "DotLive", - "ProvenanceLine", - "RunChip", - "IconTile", - "HexCheckTile", - "StreakChip", - "ModelPill", - "OvernightHero", - "AskBar", - "ActivityStream", - "InlineApprovalCard", - "ConfidenceRing", - "confidenceColor" - ] - }, - { - "source": "@/components/ui/approval-modal", - "specifiers": [ - "ApprovalRequest" - ] - } - ], - "exports": [], - "totalLines": 149, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/workspace-actions-menu.test.tsx": { - "filePath": "apps/web/src/test/workspace-actions-menu.test.tsx", - "contentHash": "e41982debfcfc75fdebcc567741e4765506c09ecf49098995277b132152c5d59", - "functions": [ - { - "name": "openMenu", - "params": [], - "exported": false, - "lineCount": 1 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "afterEach", - "beforeEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "render", - "screen", - "fireEvent", - "waitFor", - "cleanup" - ] - }, - { - "source": "@/components/os/WorkspaceActionsMenu", - "specifiers": [ - "WorkspaceActionsMenu" - ] - } - ], - "exports": [], - "totalLines": 130, - "hasStructuralAnalysis": true - }, - "apps/web/src/test/workspace-tasks-tab.test.tsx": { - "filePath": "apps/web/src/test/workspace-tasks-tab.test.tsx", - "contentHash": "8d0ddd24edf38cfdbd59788c13ad4966df91620614fe1da3da48979fc3794ec2", - "functions": [ - { - "name": "task", - "params": [ - "id", - "title", - "status" - ], - "returnType": "WorkspaceTask", - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "afterEach", - "beforeEach" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "render", - "screen", - "fireEvent", - "waitFor", - "cleanup" - ] - }, - { - "source": "@/components/os/apps/workspace/TasksTab", - "specifiers": [ - "TasksTab" - ] - }, - { - "source": "@/lib/types", - "specifiers": [ - "WorkspaceTask", - "WorkspaceStateView" - ] - } - ], - "exports": [], - "totalLines": 103, - "hasStructuralAnalysis": true - }, - "apps/web/src/vite-env.d.ts": { - "filePath": "apps/web/src/vite-env.d.ts", - "contentHash": "424faf9241dd699dda995b367ed36665732da1e6ec1f33b2fd40394488ecac92", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 2, - "hasStructuralAnalysis": true - }, - "apps/web/src/waggle-theme.css": { - "filePath": "apps/web/src/waggle-theme.css", - "contentHash": "7750543b4eac2e7dddef5596f8a71a51d2f2a7eed51ad36de2e2e36c3c72aa4f", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 166, - "hasStructuralAnalysis": false - }, - "apps/web/tailwind.config.ts": { - "filePath": "apps/web/tailwind.config.ts", - "contentHash": "f7de5d4c54affd021bb4e94a87893770a57e36b9ffdd6aa52f9d4f3a6a1f6183", - "functions": [], - "classes": [], - "imports": [ - { - "source": "tailwindcss", - "specifiers": [ - "Config" - ] - } - ], - "exports": [], - "totalLines": 161, - "hasStructuralAnalysis": true - }, - "apps/web/tsconfig.app.json": { - "filePath": "apps/web/tsconfig.app.json", - "contentHash": "51df310233b0775f468284c4b0bcaf9fb48355ffc31fd261343bf7830066f773", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 35, - "hasStructuralAnalysis": true - }, - "apps/web/tsconfig.json": { - "filePath": "apps/web/tsconfig.json", - "contentHash": "612c042ead9a9ee32b02bcdcf12a748d71a1b79b9cfedb7b593ab564dd813a4f", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 25, - "hasStructuralAnalysis": true - }, - "apps/web/tsconfig.node.json": { - "filePath": "apps/web/tsconfig.node.json", - "contentHash": "8dc2fd2a2ff7497afa9e29037a36bcddbfa7c89ea8ff3b7c62b2814b55995449", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 23, - "hasStructuralAnalysis": true - }, - "apps/web/vite.config.ts": { - "filePath": "apps/web/vite.config.ts", - "contentHash": "d13b274e551fedb1e49c03096457b9a8a3e93671ec252b182dde0e1793a2f99c", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vite", - "specifiers": [ - "defineConfig" - ] - }, - { - "source": "@vitejs/plugin-react-swc", - "specifiers": [ - "react" - ] - }, - { - "source": "path", - "specifiers": [ - "path" - ] - }, - { - "source": "lovable-tagger", - "specifiers": [ - "componentTagger" - ] - } - ], - "exports": [], - "totalLines": 39, - "hasStructuralAnalysis": true - }, - "apps/web/vitest.config.ts": { - "filePath": "apps/web/vitest.config.ts", - "contentHash": "1b7b7feb0587b3e6a2ee171138e17d042777d848b6c53498457e98c1882ff394", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest/config", - "specifiers": [ - "defineConfig" - ] - }, - { - "source": "@vitejs/plugin-react-swc", - "specifiers": [ - "react" - ] - }, - { - "source": "path", - "specifiers": [ - "path" - ] - } - ], - "exports": [], - "totalLines": 17, - "hasStructuralAnalysis": true - }, - "apps/www/__tests__/BrandPersonasCard.test.tsx": { - "filePath": "apps/www/__tests__/BrandPersonasCard.test.tsx", - "contentHash": "72fcbd83e6c5cd1a97187499568df373287e37eea87de9a1e2664ebc6fee51e4", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it", - "vi" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "cleanup", - "fireEvent", - "render", - "screen", - "within" - ] - }, - { - "source": "vitest", - "specifiers": [ - "afterEach" - ] - }, - { - "source": "../app/_components/BrandPersonasCard", - "specifiers": [ - "BrandPersonasCard" - ] - }, - { - "source": "../app/_data/personas", - "specifiers": [ - "personas", - "PersonaSlug" - ] - } - ], - "exports": [], - "totalLines": 154, - "hasStructuralAnalysis": true - }, - "apps/www/__tests__/setup.ts": { - "filePath": "apps/www/__tests__/setup.ts", - "contentHash": "12c6d353bfa4a9b2d28b32b3d13f4e53a4f41d507bd7565174f81c4cdf3852a1", - "functions": [], - "classes": [], - "imports": [ - { - "source": "@testing-library/jest-dom", - "specifiers": [] - }, - { - "source": "vitest", - "specifiers": [ - "vi" - ] - }, - { - "source": "react", - "specifiers": [ - "ReactNode" - ] - } - ], - "exports": [], - "totalLines": 46, - "hasStructuralAnalysis": true - }, - "apps/www/.env.example": { - "filePath": "apps/www/.env.example", - "contentHash": "a55229374fd93f34201d6fb639810a1ae3c9d3422c1a33df71a45f5ffe86136a", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 12, - "hasStructuralAnalysis": true - }, - "apps/www/.env.local.example": { - "filePath": "apps/www/.env.local.example", - "contentHash": "7fca956687f6d753be7a975207ba2cf4d559e237412ab7c2f6f6c56fa9c60e90", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 50, - "hasStructuralAnalysis": false - }, - "apps/www/app/_components/BrandPersonasCard.tsx": { - "filePath": "apps/www/app/_components/BrandPersonasCard.tsx", - "contentHash": "0c8483b7165cee94c47f0bec207e83d03d8667063213f868c9a91d31c0efab2d", - "functions": [ - { - "name": "BrandPersonasCard", - "params": [ - "{\r\n eyebrow,\r\n heading,\r\n subtitle,\r\n showFillerTiles = true,\r\n variant = 'landing',\r\n onTileHover,\r\n onPersonaClick,\r\n cta,\r\n}" - ], - "exported": true, - "lineCount": 102 - }, - { - "name": "PersonaTile", - "params": [ - "{\r\n persona,\r\n hasError,\r\n onAssetError,\r\n onPersonaClick,\r\n onTileHover,\r\n}" - ], - "exported": false, - "lineCount": 90 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useCallback", - "useState", - "CSSProperties", - "KeyboardEvent", - "ReactNode" - ] - }, - { - "source": "next-intl", - "specifiers": [ - "useTranslations" - ] - }, - { - "source": "../_data/personas", - "specifiers": [ - "HEX_TEXTURE_PATH", - "personas", - "Persona", - "PersonaSlug" - ] - } - ], - "exports": [ - "BrandPersonasCard" - ], - "totalLines": 438, - "hasStructuralAnalysis": true - }, - "apps/www/app/_components/ComparisonBeat.tsx": { - "filePath": "apps/www/app/_components/ComparisonBeat.tsx", - "contentHash": "146c6733a01369eddc6b1d9bf4467a83773eb7ad783be8ed811b77af30220b6b", - "functions": [ - { - "name": "ComparisonBeat", - "params": [], - "exported": true, - "lineCount": 13 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "CSSProperties" - ] - }, - { - "source": "next-intl/server", - "specifiers": [ - "getTranslations" - ] - } - ], - "exports": [ - "ComparisonBeat" - ], - "totalLines": 62, - "hasStructuralAnalysis": true - }, - "apps/www/app/_components/DownloadCTA.tsx": { - "filePath": "apps/www/app/_components/DownloadCTA.tsx", - "contentHash": "0e02c707447fff3b3ae15b2455e60167320c35bdba16359e9cd122310fdf4c64", - "functions": [ - { - "name": "DownloadCTA", - "params": [ - "{\r\n variant = 'primary',\r\n section,\r\n children,\r\n style,\r\n}" - ], - "exported": true, - "lineCount": 39 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useEffect", - "useState", - "CSSProperties", - "ReactNode" - ] - }, - { - "source": "next-intl", - "specifiers": [ - "useTranslations" - ] - }, - { - "source": "../_lib/os-detection", - "specifiers": [ - "detectOSFromUserAgent", - "OSId" - ] - }, - { - "source": "../_lib/event-taxonomy", - "specifiers": [ - "emit", - "events" - ] - } - ], - "exports": [ - "DownloadCTA" - ], - "totalLines": 90, - "hasStructuralAnalysis": true - }, - "apps/www/app/_components/FinalCTA.tsx": { - "filePath": "apps/www/app/_components/FinalCTA.tsx", - "contentHash": "313a9e1ea0d926250c499983258a4c918eb3a2d955bbd2aa1b2bad5ff9d0c675", - "functions": [ - { - "name": "FinalCTA", - "params": [], - "exported": true, - "lineCount": 26 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "CSSProperties" - ] - }, - { - "source": "next-intl/server", - "specifiers": [ - "getTranslations" - ] - }, - { - "source": "./DownloadCTA", - "specifiers": [ - "DownloadCTA" - ] - } - ], - "exports": [ - "FinalCTA" - ], - "totalLines": 100, - "hasStructuralAnalysis": true - }, - "apps/www/app/_components/Footer.tsx": { - "filePath": "apps/www/app/_components/Footer.tsx", - "contentHash": "81e0d8b3574d197d62a731a26ca280ab5977b8a1da9aa0587f5ddb05f9f60725", - "functions": [ - { - "name": "Footer", - "params": [], - "exported": true, - "lineCount": 41 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "CSSProperties" - ] - }, - { - "source": "next-intl/server", - "specifiers": [ - "getTranslations" - ] - } - ], - "exports": [ - "Footer" - ], - "totalLines": 159, - "hasStructuralAnalysis": true - }, - "apps/www/app/_components/Hero.tsx": { - "filePath": "apps/www/app/_components/Hero.tsx", - "contentHash": "65dfd5f257825d6cf87baa44aebc88c00b3a4e55993c43582ef54a726ce5cf60", - "functions": [ - { - "name": "Hero", - "params": [ - "{ variantId }" - ], - "exported": true, - "lineCount": 61 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "CSSProperties" - ] - }, - { - "source": "next-intl/server", - "specifiers": [ - "getTranslations" - ] - }, - { - "source": "./DownloadCTA", - "specifiers": [ - "DownloadCTA" - ] - }, - { - "source": "./HeroVisual", - "specifiers": [ - "HeroVisual" - ] - }, - { - "source": "../_data/hero-variants", - "specifiers": [ - "HeroVariantId" - ] - } - ], - "exports": [ - "Hero" - ], - "totalLines": 207, - "hasStructuralAnalysis": true - }, - "apps/www/app/_components/HeroVisual.tsx": { - "filePath": "apps/www/app/_components/HeroVisual.tsx", - "contentHash": "a10f91637e78e2788605940620657147a60c3337c2a97410f43025428ba1be4f", - "functions": [ - { - "name": "HeroVisual", - "params": [ - "{ initialVariant = 'A' }" - ], - "exported": true, - "lineCount": 127 - }, - { - "name": "ChipLabel", - "params": [ - "{ x, y, primary, sub }" - ], - "exported": false, - "lineCount": 36 - }, - { - "name": "Stat", - "params": [ - "{ value, label }" - ], - "exported": false, - "lineCount": 8 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useState", - "CSSProperties" - ] - }, - { - "source": "next-intl", - "specifiers": [ - "useTranslations" - ] - }, - { - "source": "../_data/hero-variants", - "specifiers": [ - "heroVariantsMeta", - "HeroVariantId" - ] - } - ], - "exports": [ - "HeroVisual" - ], - "totalLines": 355, - "hasStructuralAnalysis": true - }, - "apps/www/app/_components/HowItWorks.tsx": { - "filePath": "apps/www/app/_components/HowItWorks.tsx", - "contentHash": "28b9486f546508a06df450a811983fd7be200e6cce0970f3c8d192c539e11c25", - "functions": [ - { - "name": "HowItWorks", - "params": [], - "exported": true, - "lineCount": 40 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "CSSProperties" - ] - }, - { - "source": "next-intl/server", - "specifiers": [ - "getTranslations" - ] - } - ], - "exports": [ - "HowItWorks" - ], - "totalLines": 138, - "hasStructuralAnalysis": true - }, - "apps/www/app/_components/Navbar.tsx": { - "filePath": "apps/www/app/_components/Navbar.tsx", - "contentHash": "aeb097dffb7590834bb834490617e18e1af55936fe06df72b56ed72eb695c562", - "functions": [ - { - "name": "Navbar", - "params": [], - "exported": true, - "lineCount": 126 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useEffect", - "useState", - "CSSProperties" - ] - }, - { - "source": "next-intl", - "specifiers": [ - "useTranslations" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Menu", - "X", - "Download" - ] - }, - { - "source": "@clerk/nextjs", - "specifiers": [ - "SignInButton", - "UserButton", - "Show" - ] - } - ], - "exports": [ - "Navbar" - ], - "totalLines": 280, - "hasStructuralAnalysis": true - }, - "apps/www/app/_components/Pillars.tsx": { - "filePath": "apps/www/app/_components/Pillars.tsx", - "contentHash": "dea1be55c03b260263295b2fdfdb1de512d3cbdcf6507d4bc14ecdd124269d85", - "functions": [ - { - "name": "Pillars", - "params": [], - "exported": true, - "lineCount": 27 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "CSSProperties" - ] - }, - { - "source": "next-intl/server", - "specifiers": [ - "getTranslations" - ] - } - ], - "exports": [ - "Pillars" - ], - "totalLines": 111, - "hasStructuralAnalysis": true - }, - "apps/www/app/_components/Pricing.tsx": { - "filePath": "apps/www/app/_components/Pricing.tsx", - "contentHash": "31e3872e18e82e9cd21fe28f48a0086fa151b955dfc70a5181add9b887c26b93", - "functions": [ - { - "name": "Pricing", - "params": [], - "exported": true, - "lineCount": 168 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "useCallback", - "useState", - "CSSProperties" - ] - }, - { - "source": "next-intl", - "specifiers": [ - "useTranslations" - ] - }, - { - "source": "lucide-react", - "specifiers": [ - "Check" - ] - }, - { - "source": "./DownloadCTA", - "specifiers": [ - "DownloadCTA" - ] - }, - { - "source": "../_lib/event-taxonomy", - "specifiers": [ - "emit", - "events" - ] - } - ], - "exports": [ - "Pricing" - ], - "totalLines": 485, - "hasStructuralAnalysis": true - }, - "apps/www/app/_components/ProofPointsBand.tsx": { - "filePath": "apps/www/app/_components/ProofPointsBand.tsx", - "contentHash": "7068a0a8fed4c940ae7e010c14920c1ee4a3c13b0da02ebfb83d4aaa5bef42e4", - "functions": [ - { - "name": "ProofPointsBand", - "params": [], - "exported": true, - "lineCount": 40 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "CSSProperties" - ] - }, - { - "source": "next-intl/server", - "specifiers": [ - "getTranslations" - ] - }, - { - "source": "../_data/proof-points", - "specifiers": [ - "proofPoints" - ] - } - ], - "exports": [ - "ProofPointsBand" - ], - "totalLines": 175, - "hasStructuralAnalysis": true - }, - "apps/www/app/_components/TrustBand.tsx": { - "filePath": "apps/www/app/_components/TrustBand.tsx", - "contentHash": "6fac7cfe0a4e2a877eee575e32d5596a0d4b1984c6a95ef52e82e0c91523baa8", - "functions": [ - { - "name": "TrustBand", - "params": [], - "exported": true, - "lineCount": 34 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "CSSProperties" - ] - }, - { - "source": "next-intl/server", - "specifiers": [ - "getTranslations" - ] - } - ], - "exports": [ - "TrustBand" - ], - "totalLines": 143, - "hasStructuralAnalysis": true - }, - "apps/www/app/_components/WowBeat.tsx": { - "filePath": "apps/www/app/_components/WowBeat.tsx", - "contentHash": "26f878620a0bd29dab8f2054bb7ac0db979a737214378f6362a994d10ae1eedf", - "functions": [ - { - "name": "WowBeat", - "params": [], - "exported": true, - "lineCount": 12 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "CSSProperties" - ] - }, - { - "source": "next-intl/server", - "specifiers": [ - "getTranslations" - ] - } - ], - "exports": [ - "WowBeat" - ], - "totalLines": 48, - "hasStructuralAnalysis": true - }, - "apps/www/app/_data/hero-variants.ts": { - "filePath": "apps/www/app/_data/hero-variants.ts", - "contentHash": "356d3f7cdadab78c6f94f9523a71a30754499a56c8617dd12b9b0bedc0a692c0", - "functions": [], - "classes": [], - "imports": [], - "exports": [ - "heroVariantsMeta" - ], - "totalLines": 31, - "hasStructuralAnalysis": true - }, - "apps/www/app/_data/personas.ts": { - "filePath": "apps/www/app/_data/personas.ts", - "contentHash": "10d77a94cfda147483815bb2fbffff92ca1d1d6c45d61838c6a9c125704cafa4", - "functions": [ - { - "name": "buildPersona", - "params": [ - "slug", - "title", - "role", - "order" - ], - "returnType": "Persona", - "exported": false, - "lineCount": 15 - } - ], - "classes": [], - "imports": [], - "exports": [ - "personas", - "personaBySlug", - "HEX_TEXTURE_PATH" - ], - "totalLines": 126, - "hasStructuralAnalysis": true - }, - "apps/www/app/_data/proof-points.ts": { - "filePath": "apps/www/app/_data/proof-points.ts", - "contentHash": "a16650ed69acd64e276f017926338a5d9228271a0d33e43f08ee275f66c65b45", - "functions": [], - "classes": [], - "imports": [], - "exports": [ - "proofPoints" - ], - "totalLines": 46, - "hasStructuralAnalysis": true - }, - "apps/www/app/_lib/event-taxonomy.ts": { - "filePath": "apps/www/app/_lib/event-taxonomy.ts", - "contentHash": "f0eb7b14ca545ed719bbc40d5ebe8cc1dd9eaebf96221257d59f95484d0eafec", - "functions": [ - { - "name": "emit", - "params": [ - "event" - ], - "returnType": "void", - "exported": true, - "lineCount": 5 - } - ], - "classes": [], - "imports": [], - "exports": [ - "events", - "emit" - ], - "totalLines": 25, - "hasStructuralAnalysis": true - }, - "apps/www/app/_lib/hero-headline-resolver.ts": { - "filePath": "apps/www/app/_lib/hero-headline-resolver.ts", - "contentHash": "c78a7b8a4df4084d8caa6641b031db0bda2708830c2aa540090dfaa72051eef9", - "functions": [ - { - "name": "resolveHeroVariant", - "params": [ - "params" - ], - "returnType": "HeroVariantId", - "exported": true, - "lineCount": 10 - } - ], - "classes": [], - "imports": [ - { - "source": "../_data/hero-variants", - "specifiers": [ - "HeroVariantId" - ] - } - ], - "exports": [ - "resolveHeroVariant" - ], - "totalLines": 28, - "hasStructuralAnalysis": true - }, - "apps/www/app/_lib/os-detection.ts": { - "filePath": "apps/www/app/_lib/os-detection.ts", - "contentHash": "a7bf6449b9b4945b35c86b5f65173ae721497c32314210cb6accb86f15ed79b1", - "functions": [ - { - "name": "detectOSFromUserAgent", - "params": [ - "ua" - ], - "returnType": "OSId", - "exported": true, - "lineCount": 5 - } - ], - "classes": [], - "imports": [], - "exports": [ - "detectOSFromUserAgent" - ], - "totalLines": 16, - "hasStructuralAnalysis": true - }, - "apps/www/app/(legal)/cookies/page.tsx": { - "filePath": "apps/www/app/(legal)/cookies/page.tsx", - "contentHash": "2933ca4b47e0131c4e9c1bf1b269d66bce77cef6cf4276583515116db5bb434f", - "functions": [ - { - "name": "CookiesPage", - "params": [], - "exported": true, - "lineCount": 84 - } - ], - "classes": [], - "imports": [ - { - "source": "next", - "specifiers": [ - "Metadata" - ] - }, - { - "source": "react", - "specifiers": [ - "CSSProperties" - ] - } - ], - "exports": [ - "metadata", - "CookiesPage" - ], - "totalLines": 154, - "hasStructuralAnalysis": true - }, - "apps/www/app/(legal)/eu-ai-act/page.tsx": { - "filePath": "apps/www/app/(legal)/eu-ai-act/page.tsx", - "contentHash": "13b1f2f6c76568c46aff4de3899cc0b5fb436be75c5edcfdde7c650858ac6a09", - "functions": [ - { - "name": "EuAiActPage", - "params": [], - "exported": true, - "lineCount": 157 - } - ], - "classes": [], - "imports": [ - { - "source": "next", - "specifiers": [ - "Metadata" - ] - }, - { - "source": "react", - "specifiers": [ - "CSSProperties" - ] - } - ], - "exports": [ - "metadata", - "EuAiActPage" - ], - "totalLines": 224, - "hasStructuralAnalysis": true - }, - "apps/www/app/(legal)/layout.tsx": { - "filePath": "apps/www/app/(legal)/layout.tsx", - "contentHash": "38425ec3f1854c39c6727182114352c97eca68c94d7df2fa0fb8c4ebd830574d", - "functions": [ - { - "name": "LegalLayout", - "params": [ - "{ children }" - ], - "exported": true, - "lineCount": 9 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "CSSProperties", - "ReactNode" - ] - }, - { - "source": "../_components/Navbar", - "specifiers": [ - "Navbar" - ] - }, - { - "source": "../_components/Footer", - "specifiers": [ - "Footer" - ] - } - ], - "exports": [ - "LegalLayout" - ], - "totalLines": 30, - "hasStructuralAnalysis": true - }, - "apps/www/app/(legal)/privacy/page.tsx": { - "filePath": "apps/www/app/(legal)/privacy/page.tsx", - "contentHash": "90043316f3bf46a203c6ea4786d4414013e84a651b0a07efd75031c684420a1a", - "functions": [ - { - "name": "PrivacyPage", - "params": [], - "exported": true, - "lineCount": 157 - } - ], - "classes": [], - "imports": [ - { - "source": "next", - "specifiers": [ - "Metadata" - ] - }, - { - "source": "react", - "specifiers": [ - "CSSProperties" - ] - } - ], - "exports": [ - "metadata", - "PrivacyPage" - ], - "totalLines": 224, - "hasStructuralAnalysis": true - }, - "apps/www/app/(legal)/terms/page.tsx": { - "filePath": "apps/www/app/(legal)/terms/page.tsx", - "contentHash": "268cbc3cff8da491593e24d5277e86fb638f1654dae61aeb2e587806e8b32d07", - "functions": [ - { - "name": "TermsPage", - "params": [], - "exported": true, - "lineCount": 147 - } - ], - "classes": [], - "imports": [ - { - "source": "next", - "specifiers": [ - "Metadata" - ] - }, - { - "source": "react", - "specifiers": [ - "CSSProperties" - ] - } - ], - "exports": [ - "metadata", - "TermsPage" - ], - "totalLines": 214, - "hasStructuralAnalysis": true - }, - "apps/www/app/account/page.tsx": { - "filePath": "apps/www/app/account/page.tsx", - "contentHash": "8fcc8ab1d493dfd6ff59a2512e2482cfabf3c9e0559c182a28ac47e88d764499", - "functions": [ - { - "name": "AccountPage", - "params": [], - "exported": true, - "lineCount": 12 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "CSSProperties" - ] - }, - { - "source": "@clerk/nextjs/server", - "specifiers": [ - "auth" - ] - }, - { - "source": "next/navigation", - "specifiers": [ - "redirect" - ] - }, - { - "source": "@clerk/nextjs", - "specifiers": [ - "UserProfile" - ] - } - ], - "exports": [ - "AccountPage" - ], - "totalLines": 40, - "hasStructuralAnalysis": true - }, - "apps/www/app/api/stripe/checkout/route.ts": { - "filePath": "apps/www/app/api/stripe/checkout/route.ts", - "contentHash": "1a85c5e263365a27e2293fb36276dffdf203027022420ee5ac938f8a71146f81", - "functions": [ - { - "name": "normalizeTier", - "params": [ - "value" - ], - "returnType": "Tier | null", - "exported": false, - "lineCount": 5 - }, - { - "name": "normalizeBilling", - "params": [ - "value" - ], - "returnType": "Billing | null", - "exported": false, - "lineCount": 5 - }, - { - "name": "isValidStripeKey", - "params": [ - "key" - ], - "exported": false, - "lineCount": 6 - }, - { - "name": "ensureStripeCustomer", - "params": [ - "userId", - "email", - "existingId", - "stripe" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 20 - }, - { - "name": "resolvePriceId", - "params": [ - "stripe", - "tier", - "billing" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 19 - }, - { - "name": "runCheckout", - "params": [ - "origin", - "tier", - "billing" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 69 - }, - { - "name": "originOf", - "params": [ - "req" - ], - "returnType": "string", - "exported": false, - "lineCount": 5 - }, - { - "name": "safeRunCheckout", - "params": [ - "origin", - "tier", - "billing" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 12 - }, - { - "name": "GET", - "params": [ - "req" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 28 - }, - { - "name": "POST", - "params": [ - "req" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 43 - } - ], - "classes": [], - "imports": [ - { - "source": "next/server", - "specifiers": [ - "NextResponse" - ] - }, - { - "source": "@clerk/nextjs/server", - "specifiers": [ - "auth", - "clerkClient" - ] - }, - { - "source": "stripe", - "specifiers": [ - "Stripe" - ] - } - ], - "exports": [ - "GET", - "POST" - ], - "totalLines": 283, - "hasStructuralAnalysis": true - }, - "apps/www/app/api/webhooks/stripe/route.ts": { - "filePath": "apps/www/app/api/webhooks/stripe/route.ts", - "contentHash": "833bbbd0524b7fc2e0bf90d77b1642847b7cb617c29949a911554a1e3b21869b", - "functions": [ - { - "name": "isValidStripeKey", - "params": [ - "key" - ], - "exported": false, - "lineCount": 6 - }, - { - "name": "isValidWebhookSecret", - "params": [ - "value" - ], - "exported": false, - "lineCount": 3 - }, - { - "name": "asTier", - "params": [ - "value" - ], - "returnType": "Tier | undefined", - "exported": false, - "lineCount": 3 - }, - { - "name": "mapStatus", - "params": [ - "status" - ], - "returnType": "NonNullable", - "exported": false, - "lineCount": 21 - }, - { - "name": "findClerkUserIdFromCustomer", - "params": [ - "customerId", - "stripe" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 9 - }, - { - "name": "patchClerkPublicMetadata", - "params": [ - "userId", - "patch" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 11 - }, - { - "name": "handleCheckoutCompleted", - "params": [ - "event" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 18 - }, - { - "name": "handleSubscriptionUpdated", - "params": [ - "event", - "stripe" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 20 - }, - { - "name": "handleSubscriptionDeleted", - "params": [ - "event", - "stripe" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 14 - }, - { - "name": "POST", - "params": [ - "req" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 68 - } - ], - "classes": [], - "imports": [ - { - "source": "next/server", - "specifiers": [ - "NextResponse" - ] - }, - { - "source": "@clerk/nextjs/server", - "specifiers": [ - "clerkClient" - ] - }, - { - "source": "stripe", - "specifiers": [ - "Stripe" - ] - } - ], - "exports": [ - "POST" - ], - "totalLines": 221, - "hasStructuralAnalysis": true - }, - "apps/www/app/design/personas/page.tsx": { - "filePath": "apps/www/app/design/personas/page.tsx", - "contentHash": "251e4196ca907079d50e0ce67f091ab828e73c50cd0072c3e6ef752431cac20b", - "functions": [ - { - "name": "DesignPersonasPage", - "params": [], - "exported": true, - "lineCount": 15 - } - ], - "classes": [], - "imports": [ - { - "source": "next", - "specifiers": [ - "Metadata" - ] - }, - { - "source": "@/app/_components/BrandPersonasCard", - "specifiers": [ - "BrandPersonasCard" - ] - } - ], - "exports": [ - "metadata", - "DesignPersonasPage" - ], - "totalLines": 39, - "hasStructuralAnalysis": true - }, - "apps/www/app/docs/methodology/page.tsx": { - "filePath": "apps/www/app/docs/methodology/page.tsx", - "contentHash": "cc77ae74aaa2a8f6abfba76639d39184a6290152da9838500afb037fb8b20443", - "functions": [ - { - "name": "MethodologyPage", - "params": [], - "exported": true, - "lineCount": 32 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "readFileSync" - ] - }, - { - "source": "node:path", - "specifiers": [ - "resolve" - ] - }, - { - "source": "react", - "specifiers": [ - "CSSProperties" - ] - }, - { - "source": "next", - "specifiers": [ - "Metadata" - ] - }, - { - "source": "react-markdown", - "specifiers": [ - "ReactMarkdown" - ] - }, - { - "source": "remark-gfm", - "specifiers": [ - "remarkGfm" - ] - } - ], - "exports": [ - "dynamic", - "metadata", - "MethodologyPage" - ], - "totalLines": 273, - "hasStructuralAnalysis": true - }, - "apps/www/app/globals.css": { - "filePath": "apps/www/app/globals.css", - "contentHash": "e85df1957e030824158e25ca8a340a5a45987e4301d9441f7ed81bef5e30d84f", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 145, - "hasStructuralAnalysis": false - }, - "apps/www/app/layout.tsx": { - "filePath": "apps/www/app/layout.tsx", - "contentHash": "b92c94da13331881757d7320f37c6d7bcb6bff8f43f7c88b241abe0fdbbae57b", - "functions": [ - { - "name": "RootLayout", - "params": [ - "{ children }" - ], - "exported": true, - "lineCount": 26 - }, - { - "name": "IntlWrapper", - "params": [ - "{ children }" - ], - "exported": false, - "lineCount": 9 - } - ], - "classes": [], - "imports": [ - { - "source": "next", - "specifiers": [ - "Metadata" - ] - }, - { - "source": "react", - "specifiers": [ - "ReactNode" - ] - }, - { - "source": "next/font/google", - "specifiers": [ - "Hanken_Grotesk", - "JetBrains_Mono" - ] - }, - { - "source": "next-intl", - "specifiers": [ - "NextIntlClientProvider" - ] - }, - { - "source": "next-intl/server", - "specifiers": [ - "getLocale", - "getMessages" - ] - }, - { - "source": "@clerk/nextjs", - "specifiers": [ - "ClerkProvider" - ] - }, - { - "source": "@clerk/themes", - "specifiers": [ - "dark" - ] - }, - { - "source": "./globals.css", - "specifiers": [] - } - ], - "exports": [ - "metadata", - "RootLayout" - ], - "totalLines": 197, - "hasStructuralAnalysis": true - }, - "apps/www/app/page.tsx": { - "filePath": "apps/www/app/page.tsx", - "contentHash": "94b4d36884495cf59177ca52053c2e416628325298553a9f16ecb2f3d7c8bb39", - "functions": [ - { - "name": "HomePage", - "params": [ - "{ searchParams }" - ], - "exported": true, - "lineCount": 38 - }, - { - "name": "pickFirst", - "params": [ - "value" - ], - "returnType": "string | undefined", - "exported": false, - "lineCount": 4 - } - ], - "classes": [], - "imports": [ - { - "source": "next-intl/server", - "specifiers": [ - "getTranslations" - ] - }, - { - "source": "./_components/Navbar", - "specifiers": [ - "Navbar" - ] - }, - { - "source": "./_components/Hero", - "specifiers": [ - "Hero" - ] - }, - { - "source": "./_components/HowItWorks", - "specifiers": [ - "HowItWorks" - ] - }, - { - "source": "./_components/Pillars", - "specifiers": [ - "Pillars" - ] - }, - { - "source": "./_components/ComparisonBeat", - "specifiers": [ - "ComparisonBeat" - ] - }, - { - "source": "./_components/ProofPointsBand", - "specifiers": [ - "ProofPointsBand" - ] - }, - { - "source": "./_components/WowBeat", - "specifiers": [ - "WowBeat" - ] - }, - { - "source": "./_components/BrandPersonasCard", - "specifiers": [ - "BrandPersonasCard" - ] - }, - { - "source": "./_components/Pricing", - "specifiers": [ - "Pricing" - ] - }, - { - "source": "./_components/TrustBand", - "specifiers": [ - "TrustBand" - ] - }, - { - "source": "./_components/FinalCTA", - "specifiers": [ - "FinalCTA" - ] - }, - { - "source": "./_components/Footer", - "specifiers": [ - "Footer" - ] - }, - { - "source": "./_lib/hero-headline-resolver", - "specifiers": [ - "resolveHeroVariant" - ] - } - ], - "exports": [ - "HomePage" - ], - "totalLines": 78, - "hasStructuralAnalysis": true - }, - "apps/www/app/sign-in/[[...sign-in]]/page.tsx": { - "filePath": "apps/www/app/sign-in/[[...sign-in]]/page.tsx", - "contentHash": "a679f8afc5c75d30c5d1ac245252280d402978609397c80e310809a8e239bb24", - "functions": [ - { - "name": "SignInPage", - "params": [], - "exported": true, - "lineCount": 7 - } - ], - "classes": [], - "imports": [ - { - "source": "@clerk/nextjs", - "specifiers": [ - "SignIn" - ] - }, - { - "source": "react", - "specifiers": [ - "CSSProperties" - ] - } - ], - "exports": [ - "SignInPage" - ], - "totalLines": 33, - "hasStructuralAnalysis": true - }, - "apps/www/app/sign-up/[[...sign-up]]/page.tsx": { - "filePath": "apps/www/app/sign-up/[[...sign-up]]/page.tsx", - "contentHash": "225608d8facf81c38e53a9fe4fd07dfba2d428a957fa8e73da5e8db80ac4bbf1", - "functions": [ - { - "name": "SignUpPage", - "params": [], - "exported": true, - "lineCount": 7 - } - ], - "classes": [], - "imports": [ - { - "source": "@clerk/nextjs", - "specifiers": [ - "SignUp" - ] - }, - { - "source": "react", - "specifiers": [ - "CSSProperties" - ] - } - ], - "exports": [ - "SignUpPage" - ], - "totalLines": 33, - "hasStructuralAnalysis": true - }, - "apps/www/app/sitemap.ts": { - "filePath": "apps/www/app/sitemap.ts", - "contentHash": "f029c2fbe49f07c59851634af2c080e0d4620f98e7f11f28c9dd01eca798f11a", - "functions": [ - { - "name": "sitemap", - "params": [], - "returnType": "MetadataRoute.Sitemap", - "exported": true, - "lineCount": 17 - } - ], - "classes": [], - "imports": [ - { - "source": "next", - "specifiers": [ - "MetadataRoute" - ] - } - ], - "exports": [ - "sitemap" - ], - "totalLines": 31, - "hasStructuralAnalysis": true - }, - "apps/www/i18n/request.ts": { - "filePath": "apps/www/i18n/request.ts", - "contentHash": "327efca2f13b270693f23f1a59728b7b3a5e04f169b4c98f278a896bf48092c1", - "functions": [], - "classes": [], - "imports": [ - { - "source": "next-intl/server", - "specifiers": [ - "getRequestConfig" - ] - } - ], - "exports": [], - "totalLines": 16, - "hasStructuralAnalysis": true - }, - "apps/www/LIGHTHOUSE.md": { - "filePath": "apps/www/LIGHTHOUSE.md", - "contentHash": "85670004b80b45e8e2db7e14a981167860960792099afe6c69d298ac266c01b8", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 70, - "hasStructuralAnalysis": true - }, - "apps/www/messages/en.json": { - "filePath": "apps/www/messages/en.json", - "contentHash": "f96843b2a4c2cd1d841267f4ef050d5704f2b7cb189e002a209d4bcdc6b14ef1", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 312, - "hasStructuralAnalysis": true - }, - "apps/www/middleware.ts": { - "filePath": "apps/www/middleware.ts", - "contentHash": "21907465e2174f262e57121fddae5a27a5829a993f373a8a419ded365929d2c0", - "functions": [], - "classes": [], - "imports": [ - { - "source": "@clerk/nextjs/server", - "specifiers": [ - "clerkMiddleware" - ] - } - ], - "exports": [ - "config" - ], - "totalLines": 27, - "hasStructuralAnalysis": true - }, - "apps/www/next-env.d.ts": { - "filePath": "apps/www/next-env.d.ts", - "contentHash": "f4e8976c19fc926644d72610bf1058bd6bf52add97e46a02bc0b912a751625c0", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 7, - "hasStructuralAnalysis": true - }, - "apps/www/next.config.mjs": { - "filePath": "apps/www/next.config.mjs", - "contentHash": "758736c008da291a7da704b825622cec8ea81316d69641b57a16bc20d10fec4e", - "functions": [], - "classes": [], - "imports": [ - { - "source": "next-intl/plugin", - "specifiers": [ - "createNextIntlPlugin" - ] - } - ], - "exports": [], - "totalLines": 16, - "hasStructuralAnalysis": true - }, - "apps/www/package.json": { - "filePath": "apps/www/package.json", - "contentHash": "bddc74d98d02ac978b30dc2a627687fe1fbc933f706a27934880019d8e883dd5", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 35, - "hasStructuralAnalysis": true - }, - "apps/www/SESIJA-D-MANIFEST.md": { - "filePath": "apps/www/SESIJA-D-MANIFEST.md", - "contentHash": "f55a3774bee051dc8b36e71806cea0e8c0132c4452eda0c21757470250022772", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 120, - "hasStructuralAnalysis": true - }, - "apps/www/SESIJA-E-MANIFEST.md": { - "filePath": "apps/www/SESIJA-E-MANIFEST.md", - "contentHash": "51c0fd203939627b3e7846197ba1611212f83df29667eb4d2fc560ec3dfe9004", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 189, - "hasStructuralAnalysis": true - }, - "apps/www/tsconfig.json": { - "filePath": "apps/www/tsconfig.json", - "contentHash": "43b412489195994870405fd5b760263c2783f72a3f395e7a87e39ffabae7058c", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 32, - "hasStructuralAnalysis": true - }, - "apps/www/vitest.config.ts": { - "filePath": "apps/www/vitest.config.ts", - "contentHash": "ccd0d30c225a7969e902c3363c751664240e5313bfc8e9968a4720871d706d14", - "functions": [], - "classes": [], - "imports": [ - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "vitest/config", - "specifiers": [ - "defineConfig" - ] - }, - { - "source": "@vitejs/plugin-react", - "specifiers": [ - "react" - ] - } - ], - "exports": [], - "totalLines": 38, - "hasStructuralAnalysis": true - }, - "benchmarks/archive/README.md": { - "filePath": "benchmarks/archive/README.md", - "contentHash": "e9b12385023647069db8ee36dd16e7f5e7835934ae891c94f9f97e70acef472e", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 35, - "hasStructuralAnalysis": true - }, - "benchmarks/calibration/v6-kappa-recal/_summary-v6-kappa.json": { - "filePath": "benchmarks/calibration/v6-kappa-recal/_summary-v6-kappa.json", - "contentHash": "657d4490bab28d35cf8a9c3ccea8a6b79e92835d700155184e51f3900836684c", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 76, - "hasStructuralAnalysis": true - }, - "benchmarks/calibration/v6-kappa-recal/cold-probes-phase2.py": { - "filePath": "benchmarks/calibration/v6-kappa-recal/cold-probes-phase2.py", - "contentHash": "659a6e1db684b184686e3da20eddc60177fc4a89253a47e3985fa5952887f7a9", - "functions": [ - { - "name": "ts", - "params": [], - "returnType": "str", - "exported": true, - "lineCount": 2 - }, - { - "name": "logmsg", - "params": [ - "msg" - ], - "returnType": "None", - "exported": true, - "lineCount": 2 - }, - { - "name": "load_env", - "params": [], - "returnType": "dict[str, str]", - "exported": true, - "lineCount": 10 - }, - { - "name": "extract_json_body", - "params": [ - "raw" - ], - "returnType": "dict | None", - "exported": true, - "lineCount": 20 - }, - { - "name": "parse_verdict", - "params": [ - "raw" - ], - "returnType": "tuple[str | None, str | None, str | None]", - "exported": true, - "lineCount": 12 - }, - { - "name": "http_post_json", - "params": [ - "url", - "headers", - "body", - "timeout_s" - ], - "returnType": "tuple[int, dict | str]", - "exported": true, - "lineCount": 19 - }, - { - "name": "call_minimax", - "params": [ - "prompt", - "or_key" - ], - "returnType": "dict", - "exported": true, - "lineCount": 40 - }, - { - "name": "call_kimi", - "params": [ - "prompt", - "moonshot_key" - ], - "returnType": "dict", - "exported": true, - "lineCount": 42 - }, - { - "name": "main", - "params": [], - "returnType": "int", - "exported": true, - "lineCount": 63 - } - ], - "classes": [], - "imports": [ - { - "source": "json", - "specifiers": [ - "json" - ] - }, - { - "source": "re", - "specifiers": [ - "re" - ] - }, - { - "source": "sys", - "specifiers": [ - "sys" - ] - }, - { - "source": "time", - "specifiers": [ - "time" - ] - }, - { - "source": "urllib.error", - "specifiers": [ - "urllib.error" - ] - }, - { - "source": "urllib.request", - "specifiers": [ - "urllib.request" - ] - }, - { - "source": "datetime", - "specifiers": [ - "datetime", - "timezone" - ] - }, - { - "source": "pathlib", - "specifiers": [ - "Path" - ] - } - ], - "exports": [ - "ts", - "logmsg", - "load_env", - "extract_json_body", - "parse_verdict", - "http_post_json", - "call_minimax", - "call_kimi", - "main" - ], - "totalLines": 313, - "hasStructuralAnalysis": true - }, - "benchmarks/calibration/v6-kappa-recal/kappa-sample-instances.jsonl": { - "filePath": "benchmarks/calibration/v6-kappa-recal/kappa-sample-instances.jsonl", - "contentHash": "edfc51da9529aed95d62bc612b7469f457527b7b351750375229808a23ffc609", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 101, - "hasStructuralAnalysis": false - }, - "benchmarks/calibration/v6-kappa-recal/kappa-v6-analysis.md": { - "filePath": "benchmarks/calibration/v6-kappa-recal/kappa-v6-analysis.md", - "contentHash": "457357db1ad7f5941c045c3ef6724b653d2050ba8a4b61bf3f02a751adae5d47", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 91, - "hasStructuralAnalysis": true - }, - "benchmarks/calibration/v6-kappa-recal/kappa-v6-compute.py": { - "filePath": "benchmarks/calibration/v6-kappa-recal/kappa-v6-compute.py", - "contentHash": "6ebfafe3d03a58042f75de008531ee253b2f66cf4bde98c8fb98641dd095cf79", - "functions": [ - { - "name": "load_jsonl", - "params": [ - "path" - ], - "returnType": "list[dict]", - "exported": true, - "lineCount": 8 - }, - { - "name": "cohen_kappa", - "params": [ - "pairs" - ], - "returnType": "tuple[float, dict]", - "exported": true, - "lineCount": 23 - }, - { - "name": "confusion_matrix", - "params": [ - "pairs" - ], - "returnType": "dict", - "exported": true, - "lineCount": 8 - }, - { - "name": "classify_verdict", - "params": [ - "trio_kappa" - ], - "returnType": "str", - "exported": true, - "lineCount": 8 - }, - { - "name": "fmt_k", - "params": [ - "x" - ], - "returnType": "str", - "exported": true, - "lineCount": 4 - }, - { - "name": "pct_str", - "params": [ - "num", - "denom" - ], - "returnType": "str", - "exported": true, - "lineCount": 4 - }, - { - "name": "main", - "params": [], - "returnType": "int", - "exported": true, - "lineCount": 221 - } - ], - "classes": [], - "imports": [ - { - "source": "json", - "specifiers": [ - "json" - ] - }, - { - "source": "statistics", - "specifiers": [ - "statistics" - ] - }, - { - "source": "collections", - "specifiers": [ - "Counter" - ] - }, - { - "source": "pathlib", - "specifiers": [ - "Path" - ] - } - ], - "exports": [ - "load_jsonl", - "cohen_kappa", - "confusion_matrix", - "classify_verdict", - "fmt_k", - "pct_str", - "main" - ], - "totalLines": 331, - "hasStructuralAnalysis": true - }, - "benchmarks/calibration/v6-kappa-recal/minimax-kappa-probe.py": { - "filePath": "benchmarks/calibration/v6-kappa-recal/minimax-kappa-probe.py", - "contentHash": "bea67403b4339ba6ff8aa98a6eccddb33a1d6393d9031eef20608cb7c6925398", - "functions": [ - { - "name": "ts", - "params": [], - "returnType": "str", - "exported": true, - "lineCount": 2 - }, - { - "name": "logmsg", - "params": [ - "msg" - ], - "returnType": "None", - "exported": true, - "lineCount": 2 - }, - { - "name": "load_env", - "params": [], - "returnType": "dict[str, str]", - "exported": true, - "lineCount": 10 - }, - { - "name": "extract_json_body", - "params": [ - "raw" - ], - "returnType": "dict | None", - "exported": true, - "lineCount": 20 - }, - { - "name": "parse_verdict", - "params": [ - "raw" - ], - "returnType": "tuple[str | None, str | None, str | None]", - "exported": true, - "lineCount": 12 - }, - { - "name": "http_post_json", - "params": [ - "url", - "headers", - "body", - "timeout_s" - ], - "returnType": "tuple[int, dict | str]", - "exported": true, - "lineCount": 19 - }, - { - "name": "call_minimax_via_openrouter", - "params": [ - "prompt", - "or_key", - "max_attempts" - ], - "returnType": "dict", - "exported": true, - "lineCount": 42 - }, - { - "name": "build_sample", - "params": [], - "returnType": "list[dict]", - "exported": true, - "lineCount": 43 - }, - { - "name": "main", - "params": [], - "returnType": "int", - "exported": true, - "lineCount": 82 - } - ], - "classes": [], - "imports": [ - { - "source": "json", - "specifiers": [ - "json" - ] - }, - { - "source": "sys", - "specifiers": [ - "sys" - ] - }, - { - "source": "time", - "specifiers": [ - "time" - ] - }, - { - "source": "urllib.error", - "specifiers": [ - "urllib.error" - ] - }, - { - "source": "urllib.request", - "specifiers": [ - "urllib.request" - ] - }, - { - "source": "datetime", - "specifiers": [ - "datetime", - "timezone" - ] - }, - { - "source": "pathlib", - "specifiers": [ - "Path" - ] - }, - { - "source": "re", - "specifiers": [ - "re" - ] - } - ], - "exports": [ - "ts", - "logmsg", - "load_env", - "extract_json_body", - "parse_verdict", - "http_post_json", - "call_minimax_via_openrouter", - "build_sample", - "main" - ], - "totalLines": 368, - "hasStructuralAnalysis": true - }, - "benchmarks/calibration/v6-kappa-recal/minimax-kappa-responses.jsonl": { - "filePath": "benchmarks/calibration/v6-kappa-recal/minimax-kappa-responses.jsonl", - "contentHash": "274fc65b97481c527feed7fc39c12f641c26dcb9f0f725c1c94274b7d90fbaf7", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 101, - "hasStructuralAnalysis": false - }, - "benchmarks/calibration/v6-kappa-recal/phase2-cold-probes.jsonl": { - "filePath": "benchmarks/calibration/v6-kappa-recal/phase2-cold-probes.jsonl", - "contentHash": "1b407b4a264881cea524f719192737ddb0b5a9f9f8069a0380ae25d78586edbb", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 7, - "hasStructuralAnalysis": false - }, - "benchmarks/calibration/v6-kappa-recal/v6-kappa-memo.md": { - "filePath": "benchmarks/calibration/v6-kappa-recal/v6-kappa-memo.md", - "contentHash": "fe66358bd8facd9d84495fa9cf4c07d71f500d4b00db0ebb8717018ab14c3dce", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 49, - "hasStructuralAnalysis": true - }, - "benchmarks/chunk-probe/run-probe.mjs": { - "filePath": "benchmarks/chunk-probe/run-probe.mjs", - "contentHash": "312e98020292f9d9de96e2e8b29991c8e7dac111c14f70930761ab3e8d5682f7", - "functions": [ - { - "name": "extractNeedle", - "params": [ - "content" - ], - "exported": false, - "lineCount": 10 - } - ], - "classes": [], - "imports": [ - { - "source": "node:url", - "specifiers": [ - "pathToFileURL", - "fileURLToPath" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - } - ], - "exports": [], - "totalLines": 145, - "hasStructuralAnalysis": true - }, - "benchmarks/data/.gitkeep": { - "filePath": "benchmarks/data/.gitkeep", - "contentHash": "3cad8e9d54ae0a65381d1a4612a7d8f720035d2990687d2d43ffa5c19ebea990", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 3, - "hasStructuralAnalysis": false - }, - "benchmarks/data/beam/beam-128K.meta.json": { - "filePath": "benchmarks/data/beam/beam-128K.meta.json", - "contentHash": "9da20e601086977eddf17d36734d89d2b7cb3982129e8c9b97ff312bc387aba9", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 48, - "hasStructuralAnalysis": true - }, - "benchmarks/data/failure-mode-calibration-10.jsonl": { - "filePath": "benchmarks/data/failure-mode-calibration-10.jsonl", - "contentHash": "0aec3ec7f051ac32bfd8145c1b6cab54d96a8f90a913b87c3e543c79d666173f", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 19, - "hasStructuralAnalysis": false - }, - "benchmarks/data/locomo/locomo-1540.jsonl": { - "filePath": "benchmarks/data/locomo/locomo-1540.jsonl", - "contentHash": "39e415e2f3a0fa1bd3cb1804a58d0b440b50d3070b2100698437e4ec402a5b24", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 1532, - "hasStructuralAnalysis": false - }, - "benchmarks/data/locomo/locomo-1540.meta.json": { - "filePath": "benchmarks/data/locomo/locomo-1540.meta.json", - "contentHash": "f53e9df54c313b52246ee297cf321f30a0c5ec637479a3cf6488c5787a014917", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 42, - "hasStructuralAnalysis": true - }, - "benchmarks/data/longmemeval/longmemeval.meta.json": { - "filePath": "benchmarks/data/longmemeval/longmemeval.meta.json", - "contentHash": "d527466c2f309eb26247fdf3e25d39d212ddbf6385d6f9791573a77937f05f8c", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 43, - "hasStructuralAnalysis": true - }, - "benchmarks/data/preflight-locomo-50.json": { - "filePath": "benchmarks/data/preflight-locomo-50.json", - "contentHash": "b84b8b22d440a0fadb5216a2e93bdd7e00556104796c9048d7cd7c850d40a420", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 919, - "hasStructuralAnalysis": true - }, - "benchmarks/gaia2/runs/smoke-c2-2026-04-30/smoke-A-oracle/final_state.jsonl": { - "filePath": "benchmarks/gaia2/runs/smoke-c2-2026-04-30/smoke-A-oracle/final_state.jsonl", - "contentHash": "68005ce9f7f9ce22c891c575087e56c5d174f3826122796eb523dd17e392f9c0", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 2, - "hasStructuralAnalysis": false - }, - "benchmarks/gaia2/runs/smoke-c2-2026-04-30/smoke-A-oracle/initial_state.jsonl": { - "filePath": "benchmarks/gaia2/runs/smoke-c2-2026-04-30/smoke-A-oracle/initial_state.jsonl", - "contentHash": "0c76a514de873597ef8fbb5d53cf8b0bfe5175315e8069e68f9efef3949b6bde", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 2, - "hasStructuralAnalysis": false - }, - "benchmarks/gaia2/runs/smoke-c2-2026-04-30/smoke-A-oracle/output.jsonl": { - "filePath": "benchmarks/gaia2/runs/smoke-c2-2026-04-30/smoke-A-oracle/output.jsonl", - "contentHash": "f4e7d72c1aacd3e1f6ca252b1a96a22f34ba271cedc8b9a82f1afbf520bb9b55", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 2, - "hasStructuralAnalysis": false - }, - "benchmarks/gaia2/runs/smoke-c2-2026-04-30/smoke-B-gaia2-mock-thread/benchmark_stats.json": { - "filePath": "benchmarks/gaia2/runs/smoke-c2-2026-04-30/smoke-B-gaia2-mock-thread/benchmark_stats.json", - "contentHash": "2ac0cbf1d042bec16471ce6b0d5416fc63f2e99d8a2dfe536eed4eab842ccd30", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 68, - "hasStructuralAnalysis": true - }, - "benchmarks/gaia2/runs/smoke-c2-2026-04-30/smoke-B-gaia2-mock-thread/output.jsonl": { - "filePath": "benchmarks/gaia2/runs/smoke-c2-2026-04-30/smoke-B-gaia2-mock-thread/output.jsonl", - "contentHash": "879199aadae7e9d5be3dc06003159a29c670056d54bbc0f1f33b7ad1ef8564e9", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 4, - "hasStructuralAnalysis": false - }, - "benchmarks/gepa/oracle/faza-1/mutation-prompt-template-non-qwen.md": { - "filePath": "benchmarks/gepa/oracle/faza-1/mutation-prompt-template-non-qwen.md", - "contentHash": "ed5dab08bbe881f3c14a4fd141ebc3f838157a55d5b52e9f22621b7a89d615af", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 55, - "hasStructuralAnalysis": true - }, - "benchmarks/gepa/oracle/faza-1/mutation-prompt-template-qwen.md": { - "filePath": "benchmarks/gepa/oracle/faza-1/mutation-prompt-template-qwen.md", - "contentHash": "e9d084d7d5885a056d861d1cea9301b19903afe2895065d5ff85b629a263f4f0", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 65, - "hasStructuralAnalysis": true - }, - "benchmarks/gepa/README.md": { - "filePath": "benchmarks/gepa/README.md", - "contentHash": "115484d77e01c6d2afb916a103d72c160b674afd3acfe1bb23bcdddb4f4b8ea4", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 118, - "hasStructuralAnalysis": true - }, - "benchmarks/gepa/scripts/faza-1/analyze-checkpoint-a.py": { - "filePath": "benchmarks/gepa/scripts/faza-1/analyze-checkpoint-a.py", - "contentHash": "57849015fa327b0b3da3b34e3b924f6a2a2a8d04e899ae5abfa7f555267bffd3", - "functions": [ - { - "name": "per_judge", - "params": [ - "model", - "t" - ], - "exported": true, - "lineCount": 2 - }, - { - "name": "raw_agree", - "params": [ - "a", - "b" - ], - "exported": true, - "lineCount": 1 - }, - { - "name": "kappa", - "params": [ - "a", - "b" - ], - "exported": true, - "lineCount": 5 - } - ], - "classes": [], - "imports": [ - { - "source": "json", - "specifiers": [ - "json" - ] - }, - { - "source": "sys", - "specifiers": [ - "sys" - ] - }, - { - "source": "io", - "specifiers": [ - "io" - ] - }, - { - "source": "math", - "specifiers": [ - "math" - ] - }, - { - "source": "os", - "specifiers": [ - "os" - ] - } - ], - "exports": [ - "per_judge", - "raw_agree", - "kappa" - ], - "totalLines": 143, - "hasStructuralAnalysis": true - }, - "benchmarks/gepa/scripts/faza-1/compute-final-kappa.ts": { - "filePath": "benchmarks/gepa/scripts/faza-1/compute-final-kappa.ts", - "contentHash": "03b9b6386ae4d0319c8627f5186d3fae8858480436bfc80b7642795e840e2342", - "functions": [ - { - "name": "loadJsonl", - "params": [ - "filepath" - ], - "returnType": "EvalRec[]", - "exported": false, - "lineCount": 7 - }, - { - "name": "judgePassPerEval", - "params": [ - "rec" - ], - "returnType": "{ opus: boolean | null; gpt: boolean | null; minimax: boolean | null }", - "exported": false, - "lineCount": 11 - }, - { - "name": "buildConfusion", - "params": [ - "pairs" - ], - "returnType": "ConfusionMatrix", - "exported": false, - "lineCount": 10 - }, - { - "name": "rawAgreement", - "params": [ - "pairs" - ], - "returnType": "number", - "exported": false, - "lineCount": 6 - }, - { - "name": "main", - "params": [], - "exported": false, - "lineCount": 99 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:url", - "specifiers": [ - "fileURLToPath" - ] - }, - { - "source": "../../src/faza-1/kappa-audit.js", - "specifiers": [ - "auditKappa", - "computeCohensKappa", - "CANONICAL_KAPPA", - "KAPPA_DRIFT_BAND_LOW", - "KAPPA_DRIFT_BAND_HIGH" - ] - } - ], - "exports": [], - "totalLines": 195, - "hasStructuralAnalysis": true - }, - "benchmarks/gepa/scripts/faza-1/generate-h3-corpus.ts": { - "filePath": "benchmarks/gepa/scripts/faza-1/generate-h3-corpus.ts", - "contentHash": "51ec0fe2f838c6d5497cbc25189c22bca8f4db8feef6213ebf8199157bca61a0", - "functions": [ - { - "name": "log", - "params": [ - "msg" - ], - "returnType": "void", - "exported": false, - "lineCount": 5 - }, - { - "name": "parseArgs", - "params": [ - "argv" - ], - "returnType": "Args", - "exported": false, - "lineCount": 18 - }, - { - "name": "callOpusOracle", - "params": [ - "prompt", - "options" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 57 - }, - { - "name": "parseInstanceJson", - "params": [ - "content" - ], - "returnType": "ParsedInstance | { error: string }", - "exported": false, - "lineCount": 29 - }, - { - "name": "assembleInstance", - "params": [ - "cell", - "instanceId", - "parsed", - "llm" - ], - "returnType": "CorpusInstance", - "exported": false, - "lineCount": 33 - }, - { - "name": "extractScenarioFromPersonaText", - "params": [ - "personaText" - ], - "returnType": "string", - "exported": false, - "lineCount": 4 - }, - { - "name": "generateOneCell", - "params": [ - "cell", - "ordinal", - "options" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 28 - }, - { - "name": "writeSpotAuditReport", - "params": [ - "instances", - "totalCostUsd" - ], - "returnType": "void", - "exported": false, - "lineCount": 56 - }, - { - "name": "main", - "params": [], - "returnType": "Promise", - "exported": false, - "lineCount": 111 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:fs/promises", - "specifiers": [ - "* as fsp" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:crypto", - "specifiers": [ - "* as crypto" - ] - }, - { - "source": "node:url", - "specifiers": [ - "fileURLToPath" - ] - }, - { - "source": "../../src/faza-1/corpus.js", - "specifiers": [ - "TOTAL_INSTANCES", - "STRATIFICATION_SEED", - "CorpusInstance", - "StratificationCell", - "listStratificationCells", - "buildInstanceId", - "validateInstance", - "runSpotAudit", - "corpusSha256" - ] - }, - { - "source": "../../src/faza-1/corpus-prompt.js", - "specifiers": [ - "buildCorpusInstancePrompt" - ] - } - ], - "exports": [], - "totalLines": 489, - "hasStructuralAnalysis": true - }, - "benchmarks/gepa/scripts/faza-1/probe-registry-injection.ts": { - "filePath": "benchmarks/gepa/scripts/faza-1/probe-registry-injection.ts", - "contentHash": "b2f6f9242875bae0a3357ae79fbc2f029db26d4744090f1bb26a23ca86323103", - "functions": [ - { - "name": "log", - "params": [ - "line" - ], - "returnType": "void", - "exported": false, - "lineCount": 3 - }, - { - "name": "header", - "params": [ - "t" - ], - "returnType": "void", - "exported": false, - "lineCount": 6 - } - ], - "classes": [], - "imports": [ - { - "source": "../../../../packages/agent/src/prompt-shapes/selector.js", - "specifiers": [ - "RegistryFromScriptDeepPath" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "RegistryFromPackage", - "selectShapeFromPackage" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "RegistryFromPromptShapes" - ] - } - ], - "exports": [], - "totalLines": 162, - "hasStructuralAnalysis": true - }, - "benchmarks/gepa/scripts/faza-1/run-checkpoint-c.ts": { - "filePath": "benchmarks/gepa/scripts/faza-1/run-checkpoint-c.ts", - "contentHash": "3fecfe16aef5313ac78a69c324529f609708f4815f5fd5eebbf88ec996405736", - "functions": [ - { - "name": "log", - "params": [ - "msg" - ], - "returnType": "void", - "exported": false, - "lineCount": 5 - }, - { - "name": "parseArgs", - "params": [ - "argv" - ], - "returnType": "Args", - "exported": false, - "lineCount": 20 - }, - { - "name": "mulberry32", - "params": [ - "seed" - ], - "returnType": "() => number", - "exported": false, - "lineCount": 10 - }, - { - "name": "deterministicShuffle", - "params": [ - "items", - "seed" - ], - "returnType": "T[]", - "exported": false, - "lineCount": 9 - }, - { - "name": "loadCorpus", - "params": [], - "returnType": "CorpusInstance[]", - "exported": false, - "lineCount": 3 - }, - { - "name": "loadCandidatesById", - "params": [ - "candidateIds" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 30 - }, - { - "name": "llmCall", - "params": [ - "input" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 41 - }, - { - "name": "parseJudgeJson", - "params": [ - "text" - ], - "returnType": "{ mean: number; raw: any } | null", - "exported": false, - "lineCount": 11 - }, - { - "name": "runJudge", - "params": [ - "model", - "prompt" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 11 - }, - { - "name": "judgeTrio", - "params": [ - "instance", - "response" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 16 - }, - { - "name": "runOneEval", - "params": [ - "cand", - "instance", - "embedder" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 67 - }, - { - "name": "loadInSampleStats", - "params": [ - "candidateIds" - ], - "returnType": "Map", - "exported": false, - "lineCount": 26 - }, - { - "name": "buildCheckpointCSummary", - "params": [ - "args", - "candidates", - "heldOutInstances", - "recordsByCandidate", - "inSampleStats", - "totalCost" - ], - "returnType": "CheckpointCSummary", - "exported": false, - "lineCount": 112 - }, - { - "name": "main", - "params": [], - "returnType": "Promise", - "exported": false, - "lineCount": 106 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:url", - "specifiers": [ - "fileURLToPath", - "pathToFileURL" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "FrameStore", - "SessionStore", - "HybridSearch", - "createOllamaEmbedder", - "Embedder" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "runRetrievalAgentLoop", - "LlmCallFn", - "LlmCallInput", - "AgentLlmCallResult", - "RetrievalSearchFn", - "AgentRunResult", - "REGISTRY", - "registerShape", - "PromptShape" - ] - }, - { - "source": "../../src/faza-1/corpus.js", - "specifiers": [ - "CorpusInstance" - ] - }, - { - "source": "../../src/faza-1/types.js", - "specifiers": [ - "NULL_BASELINE_PER_SHAPE", - "NULL_BASELINE_AGGREGATE", - "TieredFitnessComponents", - "ShapeName" - ] - }, - { - "source": "../../src/faza-1/fitness.js", - "specifiers": [ - "computeTieredFitness" - ] - }, - { - "source": "../../src/faza-1/mutation-validator.js", - "specifiers": [ - "validateCandidate" - ] - } - ], - "exports": [], - "totalLines": 723, - "hasStructuralAnalysis": true - }, - "benchmarks/gepa/scripts/faza-1/run-gen-1.ts": { - "filePath": "benchmarks/gepa/scripts/faza-1/run-gen-1.ts", - "contentHash": "c0cd74a72681b9782ffd82360dead37c7f10c91d7cc64b469c4a059e78bcea1f", - "functions": [ - { - "name": "log", - "params": [ - "msg" - ], - "returnType": "void", - "exported": false, - "lineCount": 5 - }, - { - "name": "parseArgs", - "params": [ - "argv" - ], - "returnType": "Args", - "exported": false, - "lineCount": 9 - }, - { - "name": "mulberry32", - "params": [ - "seed" - ], - "returnType": "() => number", - "exported": false, - "lineCount": 10 - }, - { - "name": "deterministicShuffle", - "params": [ - "items", - "seed" - ], - "returnType": "T[]", - "exported": false, - "lineCount": 9 - }, - { - "name": "loadCorpus", - "params": [], - "returnType": "CorpusInstance[]", - "exported": false, - "lineCount": 3 - }, - { - "name": "loadCandidates", - "params": [], - "returnType": "Promise>", - "exported": false, - "lineCount": 30 - }, - { - "name": "llmCall", - "params": [ - "input" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 41 - }, - { - "name": "parseJudgeJson", - "params": [ - "text" - ], - "returnType": "{ mean: number; raw: any } | null", - "exported": false, - "lineCount": 11 - }, - { - "name": "runJudge", - "params": [ - "model", - "prompt" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 11 - }, - { - "name": "judgeTrio", - "params": [ - "instance", - "response" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 16 - }, - { - "name": "runOneEval", - "params": [ - "cand", - "instance", - "embedder" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 75 - }, - { - "name": "makeCandidateAcc", - "params": [ - "cand", - "validatorPassed" - ], - "returnType": "CandidateAcc", - "exported": false, - "lineCount": 14 - }, - { - "name": "ingestEvalIntoAcc", - "params": [ - "acc", - "r" - ], - "returnType": "void", - "exported": false, - "lineCount": 8 - }, - { - "name": "accMeanCostPerEval", - "params": [ - "acc" - ], - "returnType": "number", - "exported": false, - "lineCount": 3 - }, - { - "name": "accPassRateII", - "params": [ - "acc" - ], - "returnType": "number", - "exported": false, - "lineCount": 3 - }, - { - "name": "accMeanRetrievalCallsPerTask", - "params": [ - "acc" - ], - "returnType": "number", - "exported": false, - "lineCount": 3 - }, - { - "name": "checkMidRunHalts", - "params": [ - "accs" - ], - "returnType": "MidRunHaltCheckResult", - "exported": false, - "lineCount": 82 - }, - { - "name": "buildCheckpointBSummary", - "params": [ - "args", - "accs", - "totalEvals", - "totalCostUsd", - "haltReason" - ], - "returnType": "CheckpointBSummary", - "exported": false, - "lineCount": 152 - }, - { - "name": "main", - "params": [], - "returnType": "Promise", - "exported": false, - "lineCount": 127 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:url", - "specifiers": [ - "fileURLToPath", - "pathToFileURL" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "FrameStore", - "SessionStore", - "HybridSearch", - "createOllamaEmbedder", - "Embedder" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "runRetrievalAgentLoop", - "LlmCallFn", - "LlmCallInput", - "AgentLlmCallResult", - "RetrievalSearchFn", - "AgentRunResult", - "REGISTRY", - "registerShape", - "PromptShape" - ] - }, - { - "source": "../../src/faza-1/corpus.js", - "specifiers": [ - "CorpusInstance" - ] - }, - { - "source": "../../src/faza-1/types.js", - "specifiers": [ - "NULL_BASELINE_PER_SHAPE", - "NULL_BASELINE_AGGREGATE", - "DeltaFloorVerdict", - "TieredFitnessComponents" - ] - }, - { - "source": "../../src/faza-1/fitness.js", - "specifiers": [ - "computeTieredFitness", - "computeDeltaFloorVerdict", - "computeTier2RetrievalBonus" - ] - }, - { - "source": "../../src/faza-1/mutation-validator.js", - "specifiers": [ - "validateCandidate", - "ValidatorVerdict" - ] - } - ], - "exports": [], - "totalLines": 913, - "hasStructuralAnalysis": true - }, - "benchmarks/gepa/scripts/faza-1/run-mutation-oracle.ts": { - "filePath": "benchmarks/gepa/scripts/faza-1/run-mutation-oracle.ts", - "contentHash": "d650ad550218f515726798cbeb291457688ecb5850c88d30d62e97d821bf33ec", - "functions": [ - { - "name": "log", - "params": [ - "msg" - ], - "returnType": "void", - "exported": false, - "lineCount": 5 - }, - { - "name": "loadBaselineShape", - "params": [ - "shapeName" - ], - "returnType": "BaselineShapeMetadata", - "exported": false, - "lineCount": 11 - }, - { - "name": "buildOraclePrompt", - "params": [ - "shapeName", - "baseline", - "mutationIdx" - ], - "returnType": "string", - "exported": false, - "lineCount": 72 - }, - { - "name": "callOpusOracle", - "params": [ - "prompt" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 40 - }, - { - "name": "parseOracleOutput", - "params": [ - "content" - ], - "returnType": "MutationFields | { error: string }", - "exported": false, - "lineCount": 21 - }, - { - "name": "buildShapeFile", - "params": [ - "shapeName", - "baseline", - "fields", - "mutationIdx" - ], - "returnType": "string", - "exported": false, - "lineCount": 57 - }, - { - "name": "validateAssembledFile", - "params": [ - "filepath", - "baselineShapeName" - ], - "returnType": "{ valid: boolean; reason?: string }", - "exported": false, - "lineCount": 21 - }, - { - "name": "main", - "params": [], - "returnType": "Promise", - "exported": false, - "lineCount": 95 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:url", - "specifiers": [ - "fileURLToPath" - ] - }, - { - "source": "../../src/faza-1/mutation-validator.js", - "specifiers": [ - "validateCandidate", - "ValidatorVerdict" - ] - }, - { - "source": "../../src/faza-1/mutation-oracle-fork.js", - "specifiers": [ - "classifyShape", - "TemplateClass" - ] - }, - { - "source": "../../src/faza-1/types.js", - "specifiers": [ - "ShapeName", - "QWEN_TARGETED_SHAPES" - ] - } - ], - "exports": [], - "totalLines": 439, - "hasStructuralAnalysis": true - }, - "benchmarks/gepa/scripts/faza-1/run-null-baseline.ts": { - "filePath": "benchmarks/gepa/scripts/faza-1/run-null-baseline.ts", - "contentHash": "56a19ba8a4193d3c05fd5fea4f6429d6e06996a1fa9f8f1ebac95b8055f74d22", - "functions": [ - { - "name": "log", - "params": [ - "msg" - ], - "returnType": "void", - "exported": false, - "lineCount": 5 - }, - { - "name": "parseArgs", - "params": [ - "argv" - ], - "returnType": "Args", - "exported": false, - "lineCount": 17 - }, - { - "name": "mulberry32", - "params": [ - "seed" - ], - "returnType": "() => number", - "exported": false, - "lineCount": 10 - }, - { - "name": "deterministicShuffle", - "params": [ - "items", - "seed" - ], - "returnType": "T[]", - "exported": false, - "lineCount": 9 - }, - { - "name": "loadCorpus", - "params": [], - "returnType": "CorpusInstance[]", - "exported": false, - "lineCount": 4 - }, - { - "name": "sampleInstances", - "params": [ - "corpus", - "n", - "seed" - ], - "returnType": "CorpusInstance[]", - "exported": false, - "lineCount": 4 - }, - { - "name": "llmCall", - "params": [ - "input" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 53 - }, - { - "name": "parseJudgeJson", - "params": [ - "text" - ], - "returnType": "JudgeVerdict | null", - "exported": false, - "lineCount": 19 - }, - { - "name": "buildJudgePrompt", - "params": [ - "instance", - "response" - ], - "returnType": "string", - "exported": false, - "lineCount": 6 - }, - { - "name": "runJudge", - "params": [ - "judgeModel", - "prompt" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 16 - }, - { - "name": "judgeTrio", - "params": [ - "instance", - "response" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 10 - }, - { - "name": "runOneEval", - "params": [ - "shape", - "instance", - "embedder" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 88 - }, - { - "name": "aggregatePerShape", - "params": [ - "records" - ], - "returnType": "ShapeAggregate[]", - "exported": false, - "lineCount": 34 - }, - { - "name": "main", - "params": [], - "returnType": "Promise", - "exported": false, - "lineCount": 91 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:url", - "specifiers": [ - "fileURLToPath" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "FrameStore", - "SessionStore", - "HybridSearch", - "createOllamaEmbedder", - "Embedder" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "runRetrievalAgentLoop", - "LlmCallFn", - "LlmCallInput", - "AgentLlmCallResult", - "RetrievalSearchFn", - "AgentRunResult" - ] - }, - { - "source": "../../../../packages/agent/src/prompt-shapes/selector.js", - "specifiers": [ - "REGISTRY", - "selectShape" - ] - }, - { - "source": "../../../../packages/agent/src/prompt-shapes/types.js", - "specifiers": [ - "PromptShape" - ] - }, - { - "source": "../../src/faza-1/corpus.js", - "specifiers": [ - "CorpusInstance" - ] - } - ], - "exports": [], - "totalLines": 663, - "hasStructuralAnalysis": true - }, - "benchmarks/gepa/src/faza-1/acceptance.ts": { - "filePath": "benchmarks/gepa/src/faza-1/acceptance.ts", - "contentHash": "7451315906695bea0c3c9cf3cc8e2a20c5b16b08e1b2bf0f44ed56d53346a206", - "functions": [ - { - "name": "evaluateCandidate", - "params": [ - "inputs" - ], - "returnType": "AcceptanceVerdict", - "exported": true, - "lineCount": 52 - }, - { - "name": "buildReason", - "params": [ - "i" - ], - "returnType": "string", - "exported": false, - "lineCount": 29 - } - ], - "classes": [], - "imports": [ - { - "source": "./types.js", - "specifiers": [ - "AcceptanceInputs", - "AcceptanceVerdict", - "QWEN_TARGETED_SHAPES" - ] - } - ], - "exports": [ - "TRIO_STRICT_DELTA_THRESHOLD_PP", - "QWEN_RETRIEVAL_ENGAGEMENT_FLOOR", - "QWEN_FALSE_POSITIVE_RETRIEVAL_FLOOR", - "evaluateCandidate" - ], - "totalLines": 155, - "hasStructuralAnalysis": true - }, - "benchmarks/gepa/src/faza-1/corpus-prompt.ts": { - "filePath": "benchmarks/gepa/src/faza-1/corpus-prompt.ts", - "contentHash": "7b35a379e52b343b2e1e176be2bd3c37dfecbc44752f0ca8ff8b635cb2038a51", - "functions": [ - { - "name": "buildCorpusInstancePrompt", - "params": [ - "inputs" - ], - "returnType": "string", - "exported": true, - "lineCount": 54 - } - ], - "classes": [], - "imports": [ - { - "source": "./corpus.js", - "specifiers": [ - "StratificationCell", - "CorpusInstance", - "TASK_FAMILY_DESCRIPTORS" - ] - } - ], - "exports": [ - "buildCorpusInstancePrompt" - ], - "totalLines": 115, - "hasStructuralAnalysis": true - }, - "benchmarks/gepa/src/faza-1/corpus.ts": { - "filePath": "benchmarks/gepa/src/faza-1/corpus.ts", - "contentHash": "cb4df9ad716d15c5c2b211b12c48a2e4837bf02a4f42114b2aecf91ba32b85e1", - "functions": [ - { - "name": "listStratificationCells", - "params": [], - "returnType": "StratificationCell[]", - "exported": true, - "lineCount": 3 - }, - { - "name": "buildInstanceId", - "params": [ - "cell", - "ordinal" - ], - "returnType": "string", - "exported": true, - "lineCount": 3 - }, - { - "name": "validateInstance", - "params": [ - "instance" - ], - "returnType": "InstanceValidationResult", - "exported": true, - "lineCount": 49 - }, - { - "name": "mulberry32", - "params": [ - "seed" - ], - "returnType": "() => number", - "exported": false, - "lineCount": 10 - }, - { - "name": "deterministicSample", - "params": [ - "items", - "sampleSize", - "seed" - ], - "returnType": "T[]", - "exported": true, - "lineCount": 17 - }, - { - "name": "selectSpotAuditSample", - "params": [ - "instances" - ], - "returnType": "CorpusInstance[]", - "exported": true, - "lineCount": 3 - }, - { - "name": "runSpotAudit", - "params": [ - "instances" - ], - "returnType": "SpotAuditReport", - "exported": true, - "lineCount": 16 - }, - { - "name": "corpusSha256", - "params": [ - "instances" - ], - "returnType": "string", - "exported": true, - "lineCount": 11 - } - ], - "classes": [], - "imports": [ - { - "source": "node:crypto", - "specifiers": [ - "* as crypto" - ] - } - ], - "exports": [ - "TASK_FAMILIES", - "PERSONAS", - "COMPANY_STAGES", - "TOTAL_INSTANCES", - "DOCS_PER_INSTANCE_MIN", - "DOCS_PER_INSTANCE_MAX", - "SPOT_AUDIT_SAMPLE_SIZE", - "STRATIFICATION_SEED", - "TASK_FAMILY_DESCRIPTORS", - "listStratificationCells", - "buildInstanceId", - "validateInstance", - "deterministicSample", - "selectSpotAuditSample", - "runSpotAudit", - "corpusSha256" - ], - "totalLines": 312, - "hasStructuralAnalysis": true - }, - "benchmarks/gepa/src/faza-1/cost-tracker.ts": { - "filePath": "benchmarks/gepa/src/faza-1/cost-tracker.ts", - "contentHash": "2c2d577bb4090e228dde57398a194fa60c28d8c3921ebcf12f5098d3cc047da4", - "functions": [ - { - "name": "createCostTracker", - "params": [ - "baselineMedianCostPerEvalUsd" - ], - "returnType": "CostTrackerState", - "exported": true, - "lineCount": 7 - }, - { - "name": "recordEvaluation", - "params": [ - "state", - "evalCostUsd" - ], - "returnType": "CostTrackerState", - "exported": true, - "lineCount": 7 - }, - { - "name": "checkHaltTriggers", - "params": [ - "state" - ], - "returnType": "HaltCheckResult", - "exported": true, - "lineCount": 44 - }, - { - "name": "shouldAudit", - "params": [ - "state" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 3 - } - ], - "classes": [], - "imports": [], - "exports": [ - "HARD_CAP_USD", - "INTERNAL_HALT_USD", - "SUPER_LINEAR_MULTIPLIER", - "SUPER_LINEAR_OVERAGE_THRESHOLD", - "AUDIT_CADENCE_EVAL_COUNT", - "createCostTracker", - "recordEvaluation", - "checkHaltTriggers", - "shouldAudit" - ], - "totalLines": 134, - "hasStructuralAnalysis": true - }, - "benchmarks/gepa/src/faza-1/fitness.ts": { - "filePath": "benchmarks/gepa/src/faza-1/fitness.ts", - "contentHash": "924cd1ac875e2b459963a7f524bcc47e2560dfcdb7db9d5f863319b6cf82bf08", - "functions": [ - { - "name": "computeRetrievalEngagementBonus", - "params": [ - "shape", - "meanRetrievalCallsPerTask" - ], - "returnType": "number", - "exported": true, - "lineCount": 15 - }, - { - "name": "computeCostPenalty", - "params": [ - "candidateMeanCostUsd", - "baselineMedianCostUsd" - ], - "returnType": "number", - "exported": true, - "lineCount": 12 - }, - { - "name": "computeFitness", - "params": [ - "inputs" - ], - "returnType": "FitnessComponents", - "exported": true, - "lineCount": 22 - }, - { - "name": "computeTier2RetrievalBonus", - "params": [ - "shape", - "candidateMeanRetrievalCallsPerTask", - "baselineMeanRetrievalCallsPerTask" - ], - "returnType": "number", - "exported": true, - "lineCount": 11 - }, - { - "name": "computeTieredFitness", - "params": [ - "inputs" - ], - "returnType": "TieredFitnessComponents", - "exported": true, - "lineCount": 39 - }, - { - "name": "computeDeltaFloorVerdict", - "params": [ - "inputs" - ], - "returnType": "DeltaFloorVerdict", - "exported": true, - "lineCount": 47 - } - ], - "classes": [], - "imports": [ - { - "source": "./types.js", - "specifiers": [ - "FitnessInputs", - "FitnessComponents", - "ShapeName", - "TieredFitnessInputs", - "TieredFitnessComponents", - "DeltaFloorInputs", - "DeltaFloorVerdict", - "QWEN_TARGETED_SHAPES" - ] - } - ], - "exports": [ - "RETRIEVAL_ENGAGEMENT_BANDS", - "computeRetrievalEngagementBonus", - "computeCostPenalty", - "computeFitness", - "TIER_2_BONUS_CAP", - "TIER_2_BONUS_PER_PP", - "TIER_3_BONUS_FULL_INVARIANCE", - "TIER_3_ANCHOR_COUNT_FULL", - "computeTier2RetrievalBonus", - "computeTieredFitness", - "DELTA_FLOOR_THRESHOLDS", - "computeDeltaFloorVerdict" - ], - "totalLines": 299, - "hasStructuralAnalysis": true - }, - "benchmarks/gepa/src/faza-1/index.ts": { - "filePath": "benchmarks/gepa/src/faza-1/index.ts", - "contentHash": "6809d038e47406677e686b30ede0d2b45c6d5b454cd0618960efea7837c7b9f3", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 25, - "hasStructuralAnalysis": true - }, - "benchmarks/gepa/src/faza-1/kappa-audit.ts": { - "filePath": "benchmarks/gepa/src/faza-1/kappa-audit.ts", - "contentHash": "94f39907099524a79d43d7496a28e063d9c70cb109c55a3b0ab0d136ce97279e", - "functions": [ - { - "name": "auditKappa", - "params": [ - "pairwise" - ], - "returnType": "KappaAuditResult", - "exported": true, - "lineCount": 37 - }, - { - "name": "computeCohensKappa", - "params": [ - "confusion" - ], - "returnType": "number", - "exported": true, - "lineCount": 24 - } - ], - "classes": [], - "imports": [], - "exports": [ - "CANONICAL_KAPPA", - "KAPPA_DRIFT_THRESHOLD", - "KAPPA_DRIFT_BAND_LOW", - "KAPPA_DRIFT_BAND_HIGH", - "V6_KAPPA_POLICY_FLOOR_PASS", - "V6_KAPPA_POLICY_FLOOR_BORDERLINE", - "auditKappa", - "computeCohensKappa" - ], - "totalLines": 142, - "hasStructuralAnalysis": true - }, - "benchmarks/gepa/src/faza-1/mutation-oracle-fork.ts": { - "filePath": "benchmarks/gepa/src/faza-1/mutation-oracle-fork.ts", - "contentHash": "ecc5a60916c92d297522cf3d0b619f6464d9a6c0d39f3602eec7c367e2746a06", - "functions": [ - { - "name": "classifyShape", - "params": [ - "shape" - ], - "returnType": "TemplateClass", - "exported": true, - "lineCount": 3 - }, - { - "name": "templatePathForShape", - "params": [ - "shape", - "oracleDir" - ], - "returnType": "string", - "exported": true, - "lineCount": 11 - }, - { - "name": "loadTemplate", - "params": [ - "shape", - "oracleDir" - ], - "returnType": "string", - "exported": true, - "lineCount": 7 - }, - { - "name": "buildOraclePrompt", - "params": [ - "inputs" - ], - "returnType": "string", - "exported": true, - "lineCount": 10 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "./types.js", - "specifiers": [ - "ShapeName", - "QWEN_TARGETED_SHAPES" - ] - } - ], - "exports": [ - "classifyShape", - "templatePathForShape", - "loadTemplate", - "buildOraclePrompt" - ], - "totalLines": 86, - "hasStructuralAnalysis": true - }, - "benchmarks/gepa/src/faza-1/mutation-validator.ts": { - "filePath": "benchmarks/gepa/src/faza-1/mutation-validator.ts", - "contentHash": "f1bb5805e260fc5442ed6ce0ec18db434266030a4b04b5b60096c1826a92f722", - "functions": [ - { - "name": "sha256", - "params": [ - "bytes" - ], - "returnType": "string", - "exported": true, - "lineCount": 4 - }, - { - "name": "sha256File", - "params": [ - "filepath" - ], - "returnType": "string", - "exported": true, - "lineCount": 3 - }, - { - "name": "extractMultiStepActionContractBytes", - "params": [ - "typesFileContent" - ], - "returnType": "string | null", - "exported": true, - "lineCount": 5 - }, - { - "name": "validateCandidate", - "params": [ - "inputs" - ], - "returnType": "ValidatorVerdict", - "exported": true, - "lineCount": 78 - } - ], - "classes": [], - "imports": [ - { - "source": "node:crypto", - "specifiers": [ - "* as crypto" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - } - ], - "exports": [ - "BOUNDARY_SHAS", - "BASELINE_SHAPE_SHAS", - "sha256", - "sha256File", - "extractMultiStepActionContractBytes", - "validateCandidate" - ], - "totalLines": 195, - "hasStructuralAnalysis": true - }, - "benchmarks/gepa/src/faza-1/selection.ts": { - "filePath": "benchmarks/gepa/src/faza-1/selection.ts", - "contentHash": "8e4479f2bcc5514071ae8ab7339cf2c4af95089d00e0d92c03a7e47b03197eb0", - "functions": [ - { - "name": "runSelection", - "params": [ - "inputs" - ], - "returnType": "SelectionReport", - "exported": true, - "lineCount": 55 - } - ], - "classes": [], - "imports": [ - { - "source": "./fitness.js", - "specifiers": [ - "computeFitness" - ] - }, - { - "source": "./acceptance.js", - "specifiers": [ - "evaluateCandidate" - ] - }, - { - "source": "./types.js", - "specifiers": [ - "CandidateMetrics", - "FitnessComponents", - "AcceptanceVerdict", - "ShapeName" - ] - } - ], - "exports": [ - "runSelection" - ], - "totalLines": 129, - "hasStructuralAnalysis": true - }, - "benchmarks/gepa/src/faza-1/types.ts": { - "filePath": "benchmarks/gepa/src/faza-1/types.ts", - "contentHash": "1412aa94bd6d1220c9e5e24280ec6ba5b7ccc9185665f3d51f24f7a9b879c247", - "functions": [], - "classes": [], - "imports": [], - "exports": [ - "QWEN_TARGETED_SHAPES", - "NON_QWEN_SHAPES", - "NULL_BASELINE_PER_SHAPE", - "NULL_BASELINE_AGGREGATE" - ], - "totalLines": 322, - "hasStructuralAnalysis": true - }, - "benchmarks/gepa/tests/faza-1/__faza1-closed/mutation-validator.test.ts": { - "filePath": "benchmarks/gepa/tests/faza-1/__faza1-closed/mutation-validator.test.ts", - "contentHash": "481288e2ec59e94b1bf3b9cb359c6e6c0095fea266e45ea4be2335092cb9099e", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "../../src/faza-1/mutation-validator.js", - "specifiers": [ - "BOUNDARY_SHAS", - "BASELINE_SHAPE_SHAS", - "sha256", - "sha256File", - "extractMultiStepActionContractBytes", - "validateCandidate" - ] - } - ], - "exports": [], - "totalLines": 255, - "hasStructuralAnalysis": true - }, - "benchmarks/gepa/tests/faza-1/__faza1-closed/README.md": { - "filePath": "benchmarks/gepa/tests/faza-1/__faza1-closed/README.md", - "contentHash": "4f6f555e817ea3fee3f361b2a3eb5a45f5544f21d4d68ffdfd0c63b0f738534b", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 61, - "hasStructuralAnalysis": true - }, - "benchmarks/gepa/tests/faza-1/__faza1-closed/registry-injection.test.ts": { - "filePath": "benchmarks/gepa/tests/faza-1/__faza1-closed/registry-injection.test.ts", - "contentHash": "5a87df549831340378695ae54e7633e760cc462986c2746ee58c8abc50377d87", - "functions": [ - { - "name": "makeProbeShape", - "params": [ - "name" - ], - "returnType": "PromptShape", - "exported": false, - "lineCount": 18 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "../../../../packages/agent/src/prompt-shapes/selector.js", - "specifiers": [ - "RegistryFromScriptDeepPath" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "RegistryFromPackage", - "registerShape", - "selectShape", - "PromptShape" - ] - } - ], - "exports": [], - "totalLines": 155, - "hasStructuralAnalysis": true - }, - "benchmarks/gepa/tests/faza-1/acceptance.test.ts": { - "filePath": "benchmarks/gepa/tests/faza-1/acceptance.test.ts", - "contentHash": "da0563d52dfd076b0cba4455e345b5e1152c8cafe9c5ffafc1b0aea354efacd8", - "functions": [ - { - "name": "makeCandidate", - "params": [ - "overrides" - ], - "returnType": "CandidateMetrics", - "exported": false, - "lineCount": 11 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "../../src/faza-1/acceptance.js", - "specifiers": [ - "evaluateCandidate", - "TRIO_STRICT_DELTA_THRESHOLD_PP", - "QWEN_RETRIEVAL_ENGAGEMENT_FLOOR", - "QWEN_FALSE_POSITIVE_RETRIEVAL_FLOOR" - ] - }, - { - "source": "../../src/faza-1/types.js", - "specifiers": [ - "CandidateMetrics", - "ShapeName" - ] - } - ], - "exports": [], - "totalLines": 264, - "hasStructuralAnalysis": true - }, - "benchmarks/gepa/tests/faza-1/corpus.test.ts": { - "filePath": "benchmarks/gepa/tests/faza-1/corpus.test.ts", - "contentHash": "00f009e84e1213db6e1c56d2923fde0e17def56cb32064dda6d8e153e26f8b5c", - "functions": [ - { - "name": "makeValidInstance", - "params": [ - "cell", - "ordinal" - ], - "returnType": "CorpusInstance", - "exported": false, - "lineCount": 20 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "../../src/faza-1/corpus.js", - "specifiers": [ - "TASK_FAMILIES", - "PERSONAS", - "COMPANY_STAGES", - "TOTAL_INSTANCES", - "DOCS_PER_INSTANCE_MIN", - "DOCS_PER_INSTANCE_MAX", - "SPOT_AUDIT_SAMPLE_SIZE", - "STRATIFICATION_SEED", - "TASK_FAMILY_DESCRIPTORS", - "StratificationCell", - "CorpusInstance", - "iterateStratificationCells", - "listStratificationCells", - "buildInstanceId", - "validateInstance", - "deterministicSample", - "selectSpotAuditSample", - "runSpotAudit", - "corpusSha256" - ] - } - ], - "exports": [], - "totalLines": 350, - "hasStructuralAnalysis": true - }, - "benchmarks/gepa/tests/faza-1/cost-tracker.test.ts": { - "filePath": "benchmarks/gepa/tests/faza-1/cost-tracker.test.ts", - "contentHash": "108fe4996984d64e34b2b0cd91a3f8f000faefdbcc8ecccf570af5f95c02be65", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "../../src/faza-1/cost-tracker.js", - "specifiers": [ - "HARD_CAP_USD", - "INTERNAL_HALT_USD", - "SUPER_LINEAR_MULTIPLIER", - "SUPER_LINEAR_OVERAGE_THRESHOLD", - "AUDIT_CADENCE_EVAL_COUNT", - "createCostTracker", - "recordEvaluation", - "checkHaltTriggers", - "shouldAudit" - ] - } - ], - "exports": [], - "totalLines": 181, - "hasStructuralAnalysis": true - }, - "benchmarks/gepa/tests/faza-1/fitness.test.ts": { - "filePath": "benchmarks/gepa/tests/faza-1/fitness.test.ts", - "contentHash": "3a7be602501fa1bb114e7361ba660961efe9de5c7b7e22bd63b05b3c8f5555e3", - "functions": [ - { - "name": "makeCandidate", - "params": [ - "overrides" - ], - "returnType": "CandidateMetrics", - "exported": false, - "lineCount": 11 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "../../src/faza-1/fitness.js", - "specifiers": [ - "computeRetrievalEngagementBonus", - "computeCostPenalty", - "computeFitness", - "RETRIEVAL_ENGAGEMENT_BANDS", - "computeTier2RetrievalBonus", - "computeTieredFitness", - "computeDeltaFloorVerdict", - "TIER_2_BONUS_CAP", - "TIER_2_BONUS_PER_PP", - "TIER_3_BONUS_FULL_INVARIANCE", - "TIER_3_ANCHOR_COUNT_FULL", - "DELTA_FLOOR_THRESHOLDS" - ] - }, - { - "source": "../../src/faza-1/types.js", - "specifiers": [ - "CandidateMetrics", - "ShapeName", - "QWEN_TARGETED_SHAPES", - "NON_QWEN_SHAPES", - "NULL_BASELINE_PER_SHAPE", - "NULL_BASELINE_AGGREGATE" - ] - } - ], - "exports": [], - "totalLines": 596, - "hasStructuralAnalysis": true - }, - "benchmarks/gepa/tests/faza-1/kappa-audit.test.ts": { - "filePath": "benchmarks/gepa/tests/faza-1/kappa-audit.test.ts", - "contentHash": "65870b68d7fb5e107f5d51f514fe1019a15d0d0e5dbd719a4b14dc7599d09487", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "../../src/faza-1/kappa-audit.js", - "specifiers": [ - "CANONICAL_KAPPA", - "KAPPA_DRIFT_THRESHOLD", - "KAPPA_DRIFT_BAND_LOW", - "KAPPA_DRIFT_BAND_HIGH", - "V6_KAPPA_POLICY_FLOOR_PASS", - "auditKappa", - "computeCohensKappa" - ] - } - ], - "exports": [], - "totalLines": 205, - "hasStructuralAnalysis": true - }, - "benchmarks/gepa/tests/faza-1/mutation-oracle-fork.test.ts": { - "filePath": "benchmarks/gepa/tests/faza-1/mutation-oracle-fork.test.ts", - "contentHash": "170d969c23ad63748dd99750575cf7cc0e0877db902d87fc62fe954f22bec57d", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "../../src/faza-1/mutation-oracle-fork.js", - "specifiers": [ - "classifyShape", - "templatePathForShape", - "loadTemplate", - "buildOraclePrompt" - ] - }, - { - "source": "../../src/faza-1/types.js", - "specifiers": [ - "ShapeName" - ] - } - ], - "exports": [], - "totalLines": 181, - "hasStructuralAnalysis": true - }, - "benchmarks/gepa/tests/faza-1/null-baseline-shape-override.test.ts": { - "filePath": "benchmarks/gepa/tests/faza-1/null-baseline-shape-override.test.ts", - "contentHash": "7218c7cc370897539e75ea4e9242ea63dd34b6f3bb80e43d59df1403a7bf89ee", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - } - ], - "exports": [], - "totalLines": 49, - "hasStructuralAnalysis": true - }, - "benchmarks/gepa/tests/faza-1/selection.test.ts": { - "filePath": "benchmarks/gepa/tests/faza-1/selection.test.ts", - "contentHash": "7049021c738df59b3513d85265cdf736b947445ff6ae961d0c2107db90e4b497", - "functions": [ - { - "name": "makeCandidate", - "params": [ - "shape", - "candidateId", - "trioII", - "retrieval", - "cost" - ], - "returnType": "CandidateMetrics", - "exported": false, - "lineCount": 17 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "../../src/faza-1/selection.js", - "specifiers": [ - "runSelection" - ] - }, - { - "source": "../../src/faza-1/types.js", - "specifiers": [ - "CandidateMetrics", - "ShapeName" - ] - } - ], - "exports": [], - "totalLines": 207, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/config/datasets.json": { - "filePath": "benchmarks/harness/config/datasets.json", - "contentHash": "d1cc0434d9b5dbeb8b014e2496292d39b229adfd287827d1ad9dffa3b08abbb6", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 33, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/config/models.json": { - "filePath": "benchmarks/harness/config/models.json", - "contentHash": "ffd9ad43c70b421d3bba30b064af29407b260ab11b09a3bd6f27d21b229c3fe2", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 155, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/package.json": { - "filePath": "benchmarks/harness/package.json", - "contentHash": "73d92994391f43d578a57340ad61ef3c2dca207fcec6be624afe26fff4cde160", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 29, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/README.md": { - "filePath": "benchmarks/harness/README.md", - "contentHash": "094647e09eb69e748e03608106418a3bdfebeee31c64a187625ec353c9163944", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 126, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/scripts/build-beam-canonical.ts": { - "filePath": "benchmarks/harness/scripts/build-beam-canonical.ts", - "contentHash": "989159a197b445ce2093dc4d4673089e7885419be2d6cc21a544fe1d37e9e51f", - "functions": [ - { - "name": "flattenBeamTurns", - "params": [ - "batches" - ], - "returnType": "Array<{ role: string; content: string }>", - "exported": false, - "lineCount": 17 - }, - { - "name": "buildContext", - "params": [ - "msgs" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "normaliseAnswer", - "params": [ - "pq" - ], - "returnType": "string | null", - "exported": false, - "lineCount": 10 - }, - { - "name": "serializeCanonical", - "params": [ - "inst" - ], - "returnType": "string", - "exported": false, - "lineCount": 7 - }, - { - "name": "locateChatSizeDir", - "params": [ - "beamChatsPath", - "chatSize" - ], - "returnType": "string | null", - "exported": false, - "lineCount": 10 - }, - { - "name": "discoverConversationDirs", - "params": [ - "chatSizeDir" - ], - "returnType": "string[]", - "exported": false, - "lineCount": 7 - }, - { - "name": "parseArgs", - "params": [], - "returnType": "{ beamChatsPath: string; chatSize: ChatSize }", - "exported": false, - "lineCount": 32 - }, - { - "name": "main", - "params": [], - "returnType": "void", - "exported": false, - "lineCount": 227 - } - ], - "classes": [], - "imports": [ - { - "source": "node:crypto", - "specifiers": [ - "crypto" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:process", - "specifiers": [ - "process" - ] - }, - { - "source": "node:url", - "specifiers": [ - "url" - ] - } - ], - "exports": [], - "totalLines": 532, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/scripts/build-locomo-canonical.ts": { - "filePath": "benchmarks/harness/scripts/build-locomo-canonical.ts", - "contentHash": "440558bf8aa6a8b8565dc7676be71341336f5f42ca345d6814f6a9cd3489cd81", - "functions": [ - { - "name": "parseDiaId", - "params": [ - "eid" - ], - "returnType": "{ session: number; turn: number } | null", - "exported": false, - "lineCount": 4 - }, - { - "name": "buildContext", - "params": [ - "sample", - "evidence" - ], - "returnType": "string", - "exported": false, - "lineCount": 31 - }, - { - "name": "toCanonicalInstance", - "params": [ - "sample", - "qaIndex", - "qa" - ], - "returnType": "CanonicalInstance | null", - "exported": false, - "lineCount": 31 - }, - { - "name": "serializeCanonical", - "params": [ - "inst" - ], - "returnType": "string", - "exported": false, - "lineCount": 7 - }, - { - "name": "main", - "params": [], - "returnType": "void", - "exported": false, - "lineCount": 103 - } - ], - "classes": [], - "imports": [ - { - "source": "node:crypto", - "specifiers": [ - "crypto" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:url", - "specifiers": [ - "url" - ] - } - ], - "exports": [], - "totalLines": 302, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/scripts/build-longmemeval-canonical.ts": { - "filePath": "benchmarks/harness/scripts/build-longmemeval-canonical.ts", - "contentHash": "e97ddb6e86a66c54144a97a65f7d84ebe5f86b75e3d36a8fa8b8651aaf649c82", - "functions": [ - { - "name": "buildContext", - "params": [ - "sessions" - ], - "returnType": "string", - "exported": false, - "lineCount": 11 - }, - { - "name": "serializeCanonical", - "params": [ - "inst" - ], - "returnType": "string", - "exported": false, - "lineCount": 7 - }, - { - "name": "downloadFile", - "params": [ - "remoteUrl", - "destPath" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 57 - }, - { - "name": "parseArgs", - "params": [], - "returnType": "{ variant: string; skipDownload: boolean }", - "exported": false, - "lineCount": 17 - }, - { - "name": "main", - "params": [], - "returnType": "Promise", - "exported": false, - "lineCount": 192 - } - ], - "classes": [], - "imports": [ - { - "source": "node:crypto", - "specifiers": [ - "crypto" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:https", - "specifiers": [ - "https" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:process", - "specifiers": [ - "process" - ] - }, - { - "source": "node:url", - "specifiers": [ - "url" - ] - } - ], - "exports": [], - "totalLines": 446, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/scripts/build-preflight-samples.ts": { - "filePath": "benchmarks/harness/scripts/build-preflight-samples.ts", - "contentHash": "cee57483d32b4462033a23a3f55cbf266964c64cd8175c9659bd889f6cbc0de5", - "functions": [ - { - "name": "makeRng", - "params": [ - "seed" - ], - "returnType": "() => number", - "exported": false, - "lineCount": 9 - }, - { - "name": "fisherYates", - "params": [ - "items", - "rand" - ], - "returnType": "T[]", - "exported": false, - "lineCount": 8 - }, - { - "name": "parseDiaId", - "params": [ - "eid" - ], - "returnType": "{ session: number; turn: number } | null", - "exported": false, - "lineCount": 5 - }, - { - "name": "buildContext", - "params": [ - "sample", - "evidence" - ], - "returnType": "string", - "exported": false, - "lineCount": 36 - }, - { - "name": "toPreflightInstance", - "params": [ - "sample", - "qaIndex", - "qa" - ], - "returnType": "PreflightInstance | null", - "exported": false, - "lineCount": 24 - }, - { - "name": "bucketByCategory", - "params": [ - "instances" - ], - "returnType": "Record", - "exported": false, - "lineCount": 13 - }, - { - "name": "pickStratified", - "params": [ - "buckets", - "distribution", - "seed", - "exclude" - ], - "returnType": "PreflightInstance[]", - "exported": false, - "lineCount": 22 - }, - { - "name": "main", - "params": [], - "returnType": "void", - "exported": false, - "lineCount": 127 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:url", - "specifiers": [ - "url" - ] - } - ], - "exports": [], - "totalLines": 355, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/scripts/run-v8.ts": { - "filePath": "benchmarks/harness/scripts/run-v8.ts", - "contentHash": "798795249d3e938059c377f226874a708bcbf5765ffcc8cf3b20be902a219467", - "functions": [ - { - "name": "generateTurnId", - "params": [], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "logTurnEvent", - "params": [ - "_turnId", - "_event" - ], - "returnType": "void", - "exported": false, - "lineCount": 3 - }, - { - "name": "loadCells", - "params": [], - "returnType": "Promise<{\r\n cells: typeof import('../src/cells.js').cells;\r\n isCellName: typeof import('../src/cells.js').isCellName;\r\n hiveMindIpbCell: typeof import('../src/cells-ipb.js').hiveMindIpbCell;\r\n}>", - "exported": false, - "lineCount": 15 - }, - { - "name": "harnessRoot", - "params": [], - "returnType": "string", - "exported": false, - "lineCount": 5 - }, - { - "name": "benchRoot", - "params": [], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "defaultOutputDir", - "params": [ - "track" - ], - "returnType": "string", - "exported": false, - "lineCount": 6 - }, - { - "name": "outputPath", - "params": [ - "dir", - "cell", - "dataset" - ], - "returnType": "string", - "exported": false, - "lineCount": 4 - }, - { - "name": "loadModels", - "params": [], - "returnType": "Record", - "exported": false, - "lineCount": 4 - }, - { - "name": "loadDatasets", - "params": [], - "returnType": "Record", - "exported": false, - "lineCount": 4 - }, - { - "name": "parseArgs", - "params": [ - "argv" - ], - "returnType": "V8Args", - "exported": false, - "lineCount": 46 - }, - { - "name": "printHelp", - "params": [], - "returnType": "void", - "exported": false, - "lineCount": 26 - }, - { - "name": "round", - "params": [ - "n", - "decimals" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 4 - }, - { - "name": "computeFileHash", - "params": [ - "p" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "runOneV8", - "params": [ - "config" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 181 - }, - { - "name": "runTrack", - "params": [ - "config", - "args", - "primaryModel", - "strongModel", - "allDatasets", - "litellmUrl", - "litellmApiKey", - "dryRun", - "judgeConfig", - "judgeCosts" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 150 - }, - { - "name": "main", - "params": [], - "returnType": "Promise", - "exported": false, - "lineCount": 156 - } - ], - "classes": [], - "imports": [ - { - "source": "node:crypto", - "specifiers": [ - "crypto" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:url", - "specifiers": [ - "url" - ] - }, - { - "source": "node:process", - "specifiers": [ - "process" - ] - }, - { - "source": "../src/types.js", - "specifiers": [ - "CellName", - "DatasetSpec", - "JsonlRecord", - "ModelSpec", - "RunConfig" - ] - }, - { - "source": "../src/datasets.js", - "specifiers": [ - "loadDataset", - "getDatasetVersion", - "sampleInstances" - ] - }, - { - "source": "../src/llm.js", - "specifiers": [ - "createLlmClient" - ] - }, - { - "source": "../src/metrics.js", - "specifiers": [ - "JsonlWriter", - "buildAggregate", - "scoreAccuracy", - "percentile" - ] - }, - { - "source": "../src/substrate.js", - "specifiers": [ - "createSubstrate" - ] - }, - { - "source": "../src/substrate.js", - "specifiers": [ - "Substrate" - ] - }, - { - "source": "../src/ingest-longmemeval.js", - "specifiers": [ - "extractTurnsFromLongMemEval", - "ingestLongMemEvalCorpus" - ] - }, - { - "source": "../src/ingest-beam.js", - "specifiers": [ - "extractTurnsFromBeam", - "ingestBeamCorpus" - ] - }, - { - "source": "../src/streak-tracker.js", - "specifiers": [ - "StreakTracker" - ] - }, - { - "source": "../src/health-check.js", - "specifiers": [ - "preCellHealthCheck" - ] - }, - { - "source": "../src/runner-lock.js", - "specifiers": [ - "acquireRunnerLock" - ] - }, - { - "source": "../src/runner-lock.js", - "specifiers": [ - "LockHandle" - ] - }, - { - "source": "../src/judge-client.js", - "specifiers": [ - "createJudgeLlmClient" - ] - }, - { - "source": "../src/judge-runner.js", - "specifiers": [ - "runJudge" - ] - }, - { - "source": "../src/judge-runner.js", - "specifiers": [ - "JudgeConfig", - "JudgePayload" - ] - }, - { - "source": "../src/judge-client.js", - "specifiers": [ - "JudgeClientCostEntry" - ] - } - ], - "exports": [], - "totalLines": 782, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/src/cells-ipb.ts": { - "filePath": "benchmarks/harness/src/cells-ipb.ts", - "contentHash": "bed433cf16b71e35811a615cac39d4179aa9cffe500b30be38e4d04f380ce2fb", - "functions": [ - { - "name": "buildSystemPrompt", - "params": [ - "persona" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "formatRecalledMemories", - "params": [ - "results" - ], - "returnType": "string", - "exported": false, - "lineCount": 11 - }, - { - "name": "assertSubstrate", - "params": [ - "cellName", - "substrate" - ], - "exported": false, - "lineCount": 9 - }, - { - "name": "buildContradictionCheckPrompt", - "params": [ - "priorPFrames", - "retrievedResults" - ], - "returnType": "string", - "exported": false, - "lineCount": 18 - }, - { - "name": "hiveMindIpbCell", - "params": [ - "{\r\n instance,\r\n model,\r\n llm,\r\n turnId: _turnId,\r\n substrate,\r\n retrievalTopK,\r\n}" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 144 - } - ], - "classes": [], - "imports": [ - { - "source": "./types.js", - "specifiers": [ - "DatasetInstance", - "ModelSpec", - "CellName" - ] - }, - { - "source": "./llm.js", - "specifiers": [ - "LlmClient", - "LlmCallResult" - ] - }, - { - "source": "./substrate.js", - "specifiers": [ - "Substrate" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "SearchResult", - "MemoryFrame" - ] - } - ], - "exports": [ - "hiveMindIpbCell" - ], - "totalLines": 331, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/src/cells.ts": { - "filePath": "benchmarks/harness/src/cells.ts", - "contentHash": "a7c6ee625ff7ce0338b1bec5d6d5aba1a66f0a9d0373fe40ff942296ebde16ce", - "functions": [ - { - "name": "systemPromptForCell", - "params": [ - "model", - "persona" - ], - "returnType": "string", - "exported": false, - "lineCount": 4 - }, - { - "name": "buildUserPromptRaw", - "params": [ - "instance" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "buildUserPromptRetrieved", - "params": [ - "instance" - ], - "returnType": "string", - "exported": false, - "lineCount": 7 - }, - { - "name": "formatRecalledMemories", - "params": [ - "results" - ], - "returnType": "string", - "exported": false, - "lineCount": 11 - }, - { - "name": "makeSearchMemoryTool", - "params": [ - "substrate", - "defaultLimit", - "boundToGopId" - ], - "returnType": "ToolDefinition", - "exported": true, - "lineCount": 45 - }, - { - "name": "assertSubstrate", - "params": [ - "cellName", - "substrate" - ], - "exported": false, - "lineCount": 9 - }, - { - "name": "assertLitellm", - "params": [ - "cellName", - "litellm" - ], - "exported": false, - "lineCount": 11 - }, - { - "name": "isCellName", - "params": [ - "name" - ], - "exported": true, - "lineCount": 11 - }, - { - "name": "isControlName", - "params": [ - "name" - ], - "exported": true, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "./types.js", - "specifiers": [ - "DatasetInstance", - "ModelSpec", - "CellName", - "ControlName" - ] - }, - { - "source": "./llm.js", - "specifiers": [ - "LlmClient", - "LlmCallResult" - ] - }, - { - "source": "./substrate.js", - "specifiers": [ - "Substrate" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "SearchResult" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "runAgentLoop", - "selectShape", - "AgentLoopConfig", - "ToolDefinition" - ] - } - ], - "exports": [ - "SYSTEM_AGENTIC", - "SYSTEM_AGENTIC_FORCED_FALLBACK", - "makeSearchMemoryTool", - "cells", - "isCellName", - "isControlName" - ], - "totalLines": 505, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/src/controls.ts": { - "filePath": "benchmarks/harness/src/controls.ts", - "contentHash": "5f721782732b7ac1a845386941de2db884a6a57ae14e168139e9b7bc15d6956b", - "functions": [], - "classes": [], - "imports": [ - { - "source": "./types.js", - "specifiers": [ - "DatasetInstance", - "ModelSpec", - "ControlName" - ] - }, - { - "source": "./llm.js", - "specifiers": [ - "LlmClient", - "LlmCallResult" - ] - } - ], - "exports": [ - "controls" - ], - "totalLines": 39, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/src/datasets.ts": { - "filePath": "benchmarks/harness/src/datasets.ts", - "contentHash": "3d79591436d58c813eed37e3e9430d06754a710ee6389375a6ebb75ff35a8e0f", - "functions": [ - { - "name": "getDatasetVersion", - "params": [ - "spec", - "dataRoot" - ], - "returnType": "string", - "exported": true, - "lineCount": 12 - }, - { - "name": "distributionOf", - "params": [ - "instances" - ], - "returnType": "Record", - "exported": false, - "lineCount": 5 - }, - { - "name": "loadPreflightSampleLock", - "params": [ - "lockPath" - ], - "returnType": "DatasetInstance[]", - "exported": true, - "lineCount": 40 - }, - { - "name": "loadDataset", - "params": [ - "spec", - "dataRoot" - ], - "returnType": "DatasetInstance[]", - "exported": true, - "lineCount": 48 - }, - { - "name": "sampleInstances", - "params": [ - "all", - "seed", - "limit" - ], - "returnType": "DatasetInstance[]", - "exported": true, - "lineCount": 17 - } - ], - "classes": [ - { - "name": "DatasetMissingError", - "methods": [ - "constructor" - ], - "properties": [], - "exported": true, - "lineCount": 14 - } - ], - "imports": [ - { - "source": "node:crypto", - "specifiers": [ - "crypto" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "./types.js", - "specifiers": [ - "DatasetInstance", - "DatasetSpec" - ] - } - ], - "exports": [ - "SYNTHETIC_DATASET_VERSION", - "DatasetMissingError", - "getDatasetVersion", - "PREFLIGHT_LOCOMO_50_DISTRIBUTION", - "loadPreflightSampleLock", - "loadDataset", - "sampleInstances" - ], - "totalLines": 238, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/src/failure-taxonomy/aggregate.ts": { - "filePath": "benchmarks/harness/src/failure-taxonomy/aggregate.ts", - "contentHash": "59ceba73fdc20eac77a2002f9a2adedbe59c821faae6ebbcd8c6d83948f48597", - "functions": [ - { - "name": "emptyCounts", - "params": [], - "returnType": "FailureDistribution['counts']", - "exported": false, - "lineCount": 12 - }, - { - "name": "computeFailureDistribution", - "params": [ - "rows" - ], - "returnType": "FailureDistribution", - "exported": true, - "lineCount": 50 - } - ], - "classes": [], - "imports": [ - { - "source": "./codes.js", - "specifiers": [ - "FAILURE_CODES", - "F_OTHER_REVIEW_THRESHOLD", - "FailureCode" - ] - } - ], - "exports": [ - "computeFailureDistribution" - ], - "totalLines": 99, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/src/failure-taxonomy/codes.ts": { - "filePath": "benchmarks/harness/src/failure-taxonomy/codes.ts", - "contentHash": "3fab4ad2e79089c3a9e3a4c9c57a38b251b9c421c9f7dc83a48b2569278b11d0", - "functions": [], - "classes": [], - "imports": [], - "exports": [ - "FAILURE_CODES", - "FAILURE_CODE_DEFINITIONS", - "FAILURE_TAXONOMY_VERSION", - "F_OTHER_REVIEW_THRESHOLD" - ], - "totalLines": 53, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/src/failure-taxonomy/index.ts": { - "filePath": "benchmarks/harness/src/failure-taxonomy/index.ts", - "contentHash": "c4338f8cc03a4dbab90189ed5073ccda19bb1d157bd6a405fc6b2367ad720088", - "functions": [], - "classes": [], - "imports": [], - "exports": [ - "FAILURE_CODES", - "FAILURE_CODE_DEFINITIONS", - "FAILURE_TAXONOMY_VERSION", - "F_OTHER_REVIEW_THRESHOLD", - "FailureCode", - "buildJudgeRubricBlock", - "validateFailureCodeEntry", - "F_OTHER_RATIONALE_MIN_TOKENS", - "FailureCodeEntryInput", - "ValidationErrorCode", - "ValidationFailure", - "ValidationResult", - "ValidationSuccess", - "computeFailureDistribution", - "FailureRow", - "FailureDistribution" - ], - "totalLines": 35, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/src/failure-taxonomy/rubric.ts": { - "filePath": "benchmarks/harness/src/failure-taxonomy/rubric.ts", - "contentHash": "524cc69e322e4142fd1be3681747135f15b65c368598d1ee8d6e0d386fafdd03", - "functions": [ - { - "name": "buildJudgeRubricBlock", - "params": [], - "returnType": "string", - "exported": true, - "lineCount": 16 - } - ], - "classes": [], - "imports": [ - { - "source": "./codes.js", - "specifiers": [ - "FAILURE_CODE_DEFINITIONS", - "FAILURE_TAXONOMY_VERSION" - ] - } - ], - "exports": [ - "buildJudgeRubricBlock" - ], - "totalLines": 48, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/src/failure-taxonomy/validator.ts": { - "filePath": "benchmarks/harness/src/failure-taxonomy/validator.ts", - "contentHash": "967de60c6be3b2ac94b8399f74e23dd28493bd190a04649b4fadadcf190c4d42", - "functions": [ - { - "name": "countRationaleTokens", - "params": [ - "rationale" - ], - "returnType": "number", - "exported": false, - "lineCount": 3 - }, - { - "name": "isRecognisedCode", - "params": [ - "code" - ], - "exported": false, - "lineCount": 5 - }, - { - "name": "validateFailureCodeEntry", - "params": [ - "entry" - ], - "returnType": "ValidationResult", - "exported": true, - "lineCount": 57 - } - ], - "classes": [], - "imports": [ - { - "source": "./codes.js", - "specifiers": [ - "FAILURE_CODES", - "FailureCode" - ] - } - ], - "exports": [ - "F_OTHER_RATIONALE_MIN_TOKENS", - "validateFailureCodeEntry" - ], - "totalLines": 112, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/src/health-check.ts": { - "filePath": "benchmarks/harness/src/health-check.ts", - "contentHash": "8f5b11f42104a6521e8e526a57c9ee8563fd983c93cf2713d531ad428089214d", - "functions": [ - { - "name": "probeOnce", - "params": [ - "label", - "fn", - "failures" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 15 - }, - { - "name": "preCellHealthCheck", - "params": [ - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 69 - } - ], - "classes": [], - "imports": [], - "exports": [ - "preCellHealthCheck" - ], - "totalLines": 141, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/src/ingest-beam.ts": { - "filePath": "benchmarks/harness/src/ingest-beam.ts", - "contentHash": "841e0f48c765234d5120bb394053bca81ec3a396ab451e96a1e068173093e0bc", - "functions": [ - { - "name": "parseContextToTurns", - "params": [ - "context" - ], - "returnType": "Array<{ role: 'user' | 'assistant'; content: string }>", - "exported": false, - "lineCount": 34 - }, - { - "name": "extractTurnsFromBeam", - "params": [ - "jsonlPath" - ], - "returnType": "BeamTurn[]", - "exported": true, - "lineCount": 57 - }, - { - "name": "ingestBeamCorpus", - "params": [ - "db", - "search", - "frames", - "sessions", - "turns", - "options" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 40 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "HybridSearch", - "FrameStore", - "SessionStore" - ] - } - ], - "exports": [ - "extractTurnsFromBeam", - "ingestBeamCorpus" - ], - "totalLines": 275, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/src/ingest-longmemeval.ts": { - "filePath": "benchmarks/harness/src/ingest-longmemeval.ts", - "contentHash": "cce81044b12f96e7e92944a18b1dc3ea1a5511227f836241b699c395641092fb", - "functions": [ - { - "name": "extractTurnsFromLongMemEval", - "params": [ - "jsonlPath" - ], - "returnType": "LongMemEvalTurn[]", - "exported": true, - "lineCount": 63 - }, - { - "name": "ingestLongMemEvalCorpus", - "params": [ - "db", - "search", - "frames", - "sessions", - "turns", - "options" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 41 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "HybridSearch", - "FrameStore", - "SessionStore" - ] - } - ], - "exports": [ - "extractTurnsFromLongMemEval", - "ingestLongMemEvalCorpus" - ], - "totalLines": 256, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/src/ingest.ts": { - "filePath": "benchmarks/harness/src/ingest.ts", - "contentHash": "e40e7fc9049d7e9a639bf817baee072086d12cdeba88488a326740f330c4b996", - "functions": [ - { - "name": "extractTurnsFromLocomoRaw", - "params": [ - "rawPath" - ], - "returnType": "LocomoTurn[]", - "exported": true, - "lineCount": 43 - }, - { - "name": "parseSessionNumber", - "params": [ - "key" - ], - "returnType": "number", - "exported": false, - "lineCount": 4 - }, - { - "name": "ingestLoCoMoCorpus", - "params": [ - "db", - "search", - "frames", - "sessions", - "turns", - "options" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 42 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "HybridSearch", - "FrameStore", - "SessionStore" - ] - } - ], - "exports": [ - "extractTurnsFromLocomoRaw", - "ingestLoCoMoCorpus" - ], - "totalLines": 210, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/src/judge-client.ts": { - "filePath": "benchmarks/harness/src/judge-client.ts", - "contentHash": "67e15d70594e53372ab2e9c211a5e7c8f31a644b9115f6a70f755874b90c14e4", - "functions": [ - { - "name": "createJudgeLlmClient", - "params": [ - "config" - ], - "returnType": "LlmClient", - "exported": true, - "lineCount": 115 - } - ], - "classes": [], - "imports": [ - { - "source": "./judge-types.js", - "specifiers": [ - "LlmClient" - ] - } - ], - "exports": [ - "LlmClient", - "createJudgeLlmClient" - ], - "totalLines": 177, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/src/judge-runner.ts": { - "filePath": "benchmarks/harness/src/judge-runner.ts", - "contentHash": "e40816c0721a99b8ee5708170d14a58fb538f4848ab8b97c11c85429e2579989", - "functions": [ - { - "name": "mapLegacyToA3", - "params": [ - "legacy" - ], - "returnType": "FailureCode", - "exported": false, - "lineCount": 5 - }, - { - "name": "loadJudgeModule", - "params": [], - "returnType": "Promise", - "exported": false, - "lineCount": 23 - }, - { - "name": "loadTieBreakModule", - "params": [], - "returnType": "Promise", - "exported": false, - "lineCount": 21 - }, - { - "name": "runJudge", - "params": [ - "triple", - "config" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 159 - } - ], - "classes": [], - "imports": [ - { - "source": "./judge-types.js", - "specifiers": [ - "LlmClient" - ] - }, - { - "source": "./types.js", - "specifiers": [ - "FailureCode", - "FailureMode", - "JudgeEnsembleEntry", - "JudgeVerdict" - ] - } - ], - "exports": [ - "runJudge" - ], - "totalLines": 402, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/src/judge-types.ts": { - "filePath": "benchmarks/harness/src/judge-types.ts", - "contentHash": "38da62df093a47af5b9716eb88a5c6d7b53bb94797c505af12e31fb98c496ffb", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 33, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/src/llm.ts": { - "filePath": "benchmarks/harness/src/llm.ts", - "contentHash": "51b01eae201906070761e994ed1978105da7dec3a8a5f6cc56f75293bf5fcd62", - "functions": [ - { - "name": "createLlmClient", - "params": [ - "opts" - ], - "returnType": "LlmClient", - "exported": true, - "lineCount": 8 - }, - { - "name": "approximateTokenCount", - "params": [ - "s" - ], - "returnType": "number", - "exported": true, - "lineCount": 3 - } - ], - "classes": [ - { - "name": "DryRunClient", - "methods": [ - "call" - ], - "properties": [], - "exported": false, - "lineCount": 28 - }, - { - "name": "LiteLlmClient", - "methods": [ - "constructor", - "call", - "attemptOnce" - ], - "properties": [], - "exported": false, - "lineCount": 157 - } - ], - "imports": [ - { - "source": "./types.js", - "specifiers": [ - "ModelSpec" - ] - } - ], - "exports": [ - "createLlmClient", - "approximateTokenCount" - ], - "totalLines": 297, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/src/metrics.ts": { - "filePath": "benchmarks/harness/src/metrics.ts", - "contentHash": "dc8dc74f9c0427ac8a0f15851d7b22fa82a56178d89a1534e305f8604639ddaa", - "functions": [ - { - "name": "readJsonl", - "params": [ - "filePath", - "options" - ], - "returnType": "JsonlRecord[]", - "exported": true, - "lineCount": 19 - }, - { - "name": "scoreAccuracy", - "params": [ - "output", - "expected" - ], - "returnType": "number", - "exported": true, - "lineCount": 8 - }, - { - "name": "percentile", - "params": [ - "values", - "p" - ], - "returnType": "number", - "exported": true, - "lineCount": 6 - }, - { - "name": "buildAggregate", - "params": [ - "config", - "records", - "startedAt", - "finishedAt", - "budgetStoppedAt" - ], - "returnType": "AggregateSummary", - "exported": true, - "lineCount": 79 - }, - { - "name": "round", - "params": [ - "n", - "decimals" - ], - "returnType": "number", - "exported": false, - "lineCount": 4 - } - ], - "classes": [ - { - "name": "JsonlWriter", - "methods": [ - "constructor", - "write", - "all", - "close" - ], - "properties": [ - "stream", - "records" - ], - "exported": true, - "lineCount": 29 - } - ], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "./types.js", - "specifiers": [ - "AggregateSummary", - "JsonlRecord", - "RunConfig" - ] - }, - { - "source": "./failure-taxonomy/index.js", - "specifiers": [ - "computeFailureDistribution", - "FailureRow" - ] - } - ], - "exports": [ - "readJsonl", - "scoreAccuracy", - "percentile", - "JsonlWriter", - "buildAggregate" - ], - "totalLines": 189, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/src/preregistration.ts": { - "filePath": "benchmarks/harness/src/preregistration.ts", - "contentHash": "a37630c1ac3963633572ccb5ecbcf5109dc5aefe206119194cc40a75d475876c", - "functions": [ - { - "name": "resolveManifestPath", - "params": [ - "override" - ], - "returnType": "string", - "exported": true, - "lineCount": 29 - }, - { - "name": "computeBenchSpecManifestHash", - "params": [ - "manifestPath" - ], - "returnType": "string", - "exported": true, - "lineCount": 5 - }, - { - "name": "readManifestLockedDate", - "params": [ - "manifestPath" - ], - "returnType": "string", - "exported": true, - "lineCount": 12 - }, - { - "name": "getRunnerVersion", - "params": [], - "returnType": "string", - "exported": true, - "lineCount": 12 - }, - { - "name": "emitPreregistrationManifest", - "params": [ - "payload" - ], - "returnType": "void", - "exported": true, - "lineCount": 3 - }, - { - "name": "sanitizeArgv", - "params": [ - "argv" - ], - "returnType": "string[]", - "exported": true, - "lineCount": 18 - } - ], - "classes": [ - { - "name": "ManifestNotFoundError", - "methods": [ - "constructor" - ], - "properties": [], - "exported": true, - "lineCount": 10 - } - ], - "imports": [ - { - "source": "node:child_process", - "specifiers": [ - "execFileSync" - ] - }, - { - "source": "node:crypto", - "specifiers": [ - "crypto" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "createCoreLogger" - ] - } - ], - "exports": [ - "CANONICAL_MANIFEST_PATH", - "PREREGISTRATION_EVENT_NAME", - "RUNNER_VERSION_FALLBACK", - "ManifestNotFoundError", - "resolveManifestPath", - "computeBenchSpecManifestHash", - "readManifestLockedDate", - "getRunnerVersion", - "emitPreregistrationManifest", - "sanitizeArgv" - ], - "totalLines": 245, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/src/runner-lock.ts": { - "filePath": "benchmarks/harness/src/runner-lock.ts", - "contentHash": "a6fb4dfc8fd742864393f875c73fdd639651204e95c5a69be169ec0cecb6828f", - "functions": [ - { - "name": "readExistingLock", - "params": [ - "lockPath" - ], - "returnType": "{ payload: LockPayload | null; ageMs: number | null }", - "exported": false, - "lineCount": 12 - }, - { - "name": "acquireRunnerLock", - "params": [ - "outputPath", - "opts" - ], - "returnType": "LockHandle", - "exported": true, - "lineCount": 76 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - } - ], - "exports": [ - "acquireRunnerLock" - ], - "totalLines": 153, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/src/runner.ts": { - "filePath": "benchmarks/harness/src/runner.ts", - "contentHash": "5c2420aa9fa612347dfb05a3bd07df4f1a3583a9ad450bc42fe76d1da02f358c", - "functions": [ - { - "name": "parseArgs", - "params": [ - "argv" - ], - "returnType": "ParsedArgs", - "exported": true, - "lineCount": 109 - }, - { - "name": "printHelp", - "params": [], - "returnType": "void", - "exported": false, - "lineCount": 71 - }, - { - "name": "harnessRoot", - "params": [], - "returnType": "string", - "exported": false, - "lineCount": 7 - }, - { - "name": "loadModels", - "params": [], - "returnType": "Record", - "exported": false, - "lineCount": 4 - }, - { - "name": "loadDatasets", - "params": [], - "returnType": "Record", - "exported": false, - "lineCount": 4 - }, - { - "name": "runOne", - "params": [ - "config" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 243 - }, - { - "name": "round", - "params": [ - "n", - "decimals" - ], - "returnType": "number", - "exported": false, - "lineCount": 4 - }, - { - "name": "computeFileHash", - "params": [ - "absolutePath" - ], - "returnType": "string", - "exported": false, - "lineCount": 4 - }, - { - "name": "resolveJudgeModelsForPreregistration", - "params": [ - "models", - "args" - ], - "returnType": "JudgeModelManifestEntry[]", - "exported": false, - "lineCount": 30 - }, - { - "name": "assemblePreregistrationPayload", - "params": [ - "config", - "datasetVersion", - "datasetInstanceCount" - ], - "returnType": "PreregistrationManifestPayload", - "exported": false, - "lineCount": 43 - }, - { - "name": "buildRuns", - "params": [ - "args" - ], - "returnType": "RunKind[]", - "exported": true, - "lineCount": 38 - }, - { - "name": "defaultOutputPath", - "params": [ - "kind", - "dataset" - ], - "returnType": "string", - "exported": true, - "lineCount": 5 - }, - { - "name": "main", - "params": [], - "returnType": "Promise", - "exported": true, - "lineCount": 227 - } - ], - "classes": [], - "imports": [ - { - "source": "node:crypto", - "specifiers": [ - "crypto" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:url", - "specifiers": [ - "url" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "generateTurnId", - "logTurnEvent" - ] - }, - { - "source": "./types.js", - "specifiers": [ - "CellName", - "ControlName", - "DatasetSpec", - "JsonlRecord", - "ModelSpec", - "RunConfig", - "RunKind" - ] - }, - { - "source": "./datasets.js", - "specifiers": [ - "getDatasetVersion", - "loadDataset", - "loadPreflightSampleLock", - "sampleInstances" - ] - }, - { - "source": "./llm.js", - "specifiers": [ - "createLlmClient" - ] - }, - { - "source": "./preregistration.js", - "specifiers": [ - "CANONICAL_MANIFEST_PATH", - "computeBenchSpecManifestHash", - "emitPreregistrationManifest", - "getRunnerVersion", - "readManifestLockedDate", - "sanitizeArgv", - "JudgeModelManifestEntry", - "PreregistrationManifestPayload" - ] - }, - { - "source": "./metrics.js", - "specifiers": [ - "JsonlWriter", - "buildAggregate", - "scoreAccuracy", - "percentile" - ] - }, - { - "source": "./cells.js", - "specifiers": [ - "cells", - "isCellName", - "isControlName" - ] - }, - { - "source": "./controls.js", - "specifiers": [ - "controls" - ] - }, - { - "source": "./judge-client.js", - "specifiers": [ - "createJudgeLlmClient", - "JudgeClientCostEntry" - ] - }, - { - "source": "./judge-runner.js", - "specifiers": [ - "runJudge", - "JudgeConfig" - ] - }, - { - "source": "./substrate.js", - "specifiers": [ - "createSubstrate", - "Substrate" - ] - }, - { - "source": "./ingest.js", - "specifiers": [ - "extractTurnsFromLocomoRaw", - "ingestLoCoMoCorpus" - ] - }, - { - "source": "./streak-tracker.js", - "specifiers": [ - "StreakTracker" - ] - }, - { - "source": "./health-check.js", - "specifiers": [ - "preCellHealthCheck" - ] - }, - { - "source": "./runner-lock.js", - "specifiers": [ - "acquireRunnerLock", - "LockHandle" - ] - } - ], - "exports": [ - "main", - "parseArgs", - "buildRuns", - "runOne", - "defaultOutputPath" - ], - "totalLines": 980, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/src/stats/cluster-bootstrap.ts": { - "filePath": "benchmarks/harness/src/stats/cluster-bootstrap.ts", - "contentHash": "b1368de483c5bc934cd2609cfed693468a70b89c74b15ded2067f59dbedea83e", - "functions": [ - { - "name": "mulberry32", - "params": [ - "seed" - ], - "returnType": "() => number", - "exported": false, - "lineCount": 10 - }, - { - "name": "computeClusterBootstrapCI", - "params": [ - "input" - ], - "returnType": "BootstrapResult", - "exported": true, - "lineCount": 93 - } - ], - "classes": [], - "imports": [], - "exports": [ - "computeClusterBootstrapCI" - ], - "totalLines": 170, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/src/stats/fleiss-kappa.ts": { - "filePath": "benchmarks/harness/src/stats/fleiss-kappa.ts", - "contentHash": "d51e99fdf49e9f012a78b51316d155d6dbd447e0f383a57ad81efe8269744a14", - "functions": [ - { - "name": "computeFleissKappa", - "params": [ - "matrix" - ], - "returnType": "FleissKappaResult", - "exported": true, - "lineCount": 83 - } - ], - "classes": [], - "imports": [], - "exports": [ - "computeFleissKappa" - ], - "totalLines": 148, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/src/stats/index.ts": { - "filePath": "benchmarks/harness/src/stats/index.ts", - "contentHash": "14015f2a44e20de6c4fbdb8ca7471af7f3575e054f4415bdf5503bf9f2a7a28f", - "functions": [], - "classes": [], - "imports": [], - "exports": [ - "computeFleissKappa", - "VoteMatrix", - "FleissKappaResult", - "computeWilsonCI", - "Z_95_TWO_SIDED", - "WilsonInput", - "WilsonResult", - "computeClusterBootstrapCI", - "CorrectnessRow", - "BootstrapInput", - "BootstrapResult" - ], - "totalLines": 27, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/src/stats/wilson-ci.ts": { - "filePath": "benchmarks/harness/src/stats/wilson-ci.ts", - "contentHash": "57e65fc6267734c937ca63fe15b2f26ab59ff851bbb8278c65eb2a7d11f1c1a5", - "functions": [ - { - "name": "computeWilsonCI", - "params": [ - "input" - ], - "returnType": "WilsonResult", - "exported": true, - "lineCount": 44 - } - ], - "classes": [], - "imports": [], - "exports": [ - "Z_95_TWO_SIDED", - "computeWilsonCI" - ], - "totalLines": 99, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/src/streak-tracker.ts": { - "filePath": "benchmarks/harness/src/streak-tracker.ts", - "contentHash": "5a8fd94e6d87c03dbe09754925c7fa09ae4730629c9df23bf307fca746ee6ddb", - "functions": [ - { - "name": "isFetchTransportFailure", - "params": [ - "failureMode" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 3 - } - ], - "classes": [ - { - "name": "StreakTracker", - "methods": [ - "constructor", - "record", - "getConsecutiveFailures", - "getRecentWindow", - "summary", - "reset" - ], - "properties": [ - "consecutive", - "recent", - "threshold", - "windowSize" - ], - "exported": true, - "lineCount": 50 - } - ], - "imports": [], - "exports": [ - "isFetchTransportFailure", - "StreakTracker" - ], - "totalLines": 91, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/src/substrate.ts": { - "filePath": "benchmarks/harness/src/substrate.ts", - "contentHash": "c615f77556563ee866b099bc4c95e65ffcc21971dff3bdc4a77c05047472ed7a", - "functions": [ - { - "name": "createSubstrate", - "params": [ - "opts" - ], - "returnType": "Substrate", - "exported": true, - "lineCount": 22 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/core", - "specifiers": [ - "FrameStore", - "HybridSearch", - "MindDB", - "SessionStore", - "createOllamaEmbedder", - "Embedder" - ] - } - ], - "exports": [ - "createSubstrate" - ], - "totalLines": 80, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/src/types.ts": { - "filePath": "benchmarks/harness/src/types.ts", - "contentHash": "8416dcb22351a1267e8362f6dbe1a270367765d0f67dcc61ef88d51de5208c83", - "functions": [], - "classes": [], - "imports": [ - { - "source": "./failure-taxonomy/codes.js", - "specifiers": [ - "FailureCode" - ] - }, - { - "source": "./failure-taxonomy/aggregate.js", - "specifiers": [ - "FailureDistribution" - ] - }, - { - "source": "./substrate.js", - "specifiers": [ - "Substrate" - ] - } - ], - "exports": [ - "FailureCode", - "FailureDistribution" - ], - "totalLines": 508, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/tests/a3-namespace-split.test.ts": { - "filePath": "benchmarks/harness/tests/a3-namespace-split.test.ts", - "contentHash": "9292926ff7f178ab75377f6bc117d9a4f7558facceecb0ce2e1541ff647d6d0b", - "functions": [ - { - "name": "stubClient", - "params": [ - "verdict", - "failureMode" - ], - "returnType": "LlmClient", - "exported": false, - "lineCount": 14 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "../src/judge-runner.js", - "specifiers": [ - "runJudge", - "JudgeConfig", - "JudgeTriple" - ] - }, - { - "source": "../src/judge-types.js", - "specifiers": [ - "LlmClient" - ] - }, - { - "source": "../src/metrics.js", - "specifiers": [ - "buildAggregate" - ] - }, - { - "source": "../src/types.js", - "specifiers": [ - "FailureMode", - "JsonlRecord", - "RunConfig" - ] - } - ], - "exports": [], - "totalLines": 271, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/tests/agent-loop-exhaustion.test.ts": { - "filePath": "benchmarks/harness/tests/agent-loop-exhaustion.test.ts", - "contentHash": "cbae2720c7e12dd4df75f6aec93dde9fe73a060daf9e4a827ee4d9f1094626fd", - "functions": [ - { - "name": "createFakeEmbedder", - "params": [], - "returnType": "Embedder", - "exported": false, - "lineCount": 31 - }, - { - "name": "makeScriptedAgentLoop", - "params": [ - "script" - ], - "returnType": "(config: AgentLoopConfig) => Promise", - "exported": false, - "lineCount": 22 - }, - { - "name": "makeCapturingLlm", - "params": [ - "response" - ], - "returnType": "{\r\n client: LlmClient;\r\n calls: LlmCallInput[];\r\n}", - "exported": false, - "lineCount": 20 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "AgentLoopConfig", - "AgentResponse" - ] - }, - { - "source": "../src/llm.js", - "specifiers": [ - "LlmCallInput", - "LlmCallResult", - "LlmClient" - ] - }, - { - "source": "../src/types.js", - "specifiers": [ - "DatasetInstance", - "ModelSpec" - ] - }, - { - "source": "../src/cells.js", - "specifiers": [ - "cells", - "SYSTEM_AGENTIC", - "SYSTEM_AGENTIC_FORCED_FALLBACK" - ] - }, - { - "source": "../src/substrate.js", - "specifiers": [ - "createSubstrate" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "Embedder" - ] - } - ], - "exports": [], - "totalLines": 329, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/tests/b2-fold-in.test.ts": { - "filePath": "benchmarks/harness/tests/b2-fold-in.test.ts", - "contentHash": "9a368ed7684cddc64b0830bcc76de8f951ef08c0d08547614ef76ab6ac178535", - "functions": [ - { - "name": "stubClient", - "params": [ - "verdict", - "failureMode" - ], - "returnType": "LlmClient", - "exported": false, - "lineCount": 11 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/judge-runner.js", - "specifiers": [ - "runJudge", - "JudgeConfig", - "JudgeTriple" - ] - }, - { - "source": "../src/judge-types.js", - "specifiers": [ - "LlmClient" - ] - } - ], - "exports": [], - "totalLines": 175, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/tests/cells-substrate.test.ts": { - "filePath": "benchmarks/harness/tests/cells-substrate.test.ts", - "contentHash": "a841358e3cb922afbd26ae7d3364ed4a70bf5b5392d0e5e25402af1f0074c601", - "functions": [ - { - "name": "createFakeEmbedder", - "params": [ - "dims" - ], - "returnType": "Embedder", - "exported": false, - "lineCount": 30 - }, - { - "name": "createCapturingLlm", - "params": [ - "response" - ], - "returnType": "{\r\n client: LlmClient;\r\n calls: LlmCallInput[];\r\n}", - "exported": false, - "lineCount": 20 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it", - "vi" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "Embedder" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "AgentLoopConfig", - "AgentResponse" - ] - }, - { - "source": "../src/llm.js", - "specifiers": [ - "LlmCallInput", - "LlmCallResult", - "LlmClient" - ] - }, - { - "source": "../src/types.js", - "specifiers": [ - "DatasetInstance", - "ModelSpec" - ] - }, - { - "source": "../src/cells.js", - "specifiers": [ - "cells", - "makeSearchMemoryTool", - "SYSTEM_AGENTIC" - ] - }, - { - "source": "../src/substrate.js", - "specifiers": [ - "createSubstrate" - ] - } - ], - "exports": [], - "totalLines": 589, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/tests/cells.test.ts": { - "filePath": "benchmarks/harness/tests/cells.test.ts", - "contentHash": "dbe893f815471e2e4ba3c7b6ad52e7a6635452f367e905993b2e5d656c0182c8", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "../src/cells.js", - "specifiers": [ - "cells", - "isCellName" - ] - }, - { - "source": "../src/types.js", - "specifiers": [ - "CellName" - ] - } - ], - "exports": [], - "totalLines": 71, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/tests/cli-flags.test.ts": { - "filePath": "benchmarks/harness/tests/cli-flags.test.ts", - "contentHash": "9856cf969a278c29404ee95cc7bbe6b0341fc910ed7222c74d2cf645ce0bd48c", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "../src/runner.js", - "specifiers": [ - "buildRuns", - "parseArgs" - ] - } - ], - "exports": [], - "totalLines": 134, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/tests/dataset-loader.test.ts": { - "filePath": "benchmarks/harness/tests/dataset-loader.test.ts", - "contentHash": "118960cc8c88adb122a99fa39c780590528cd2bd543d7d730610cff339167a86", - "functions": [], - "classes": [], - "imports": [ - { - "source": "node:crypto", - "specifiers": [ - "crypto" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:url", - "specifiers": [ - "url" - ] - }, - { - "source": "vitest", - "specifiers": [ - "afterEach", - "beforeEach", - "describe", - "expect", - "it" - ] - }, - { - "source": "../src/datasets.js", - "specifiers": [ - "DatasetMissingError", - "SYNTHETIC_DATASET_VERSION", - "getDatasetVersion", - "loadDataset" - ] - }, - { - "source": "../src/types.js", - "specifiers": [ - "DatasetSpec" - ] - } - ], - "exports": [], - "totalLines": 178, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/tests/failure-taxonomy/aggregate.test.ts": { - "filePath": "benchmarks/harness/tests/failure-taxonomy/aggregate.test.ts", - "contentHash": "c325838ed45143da022cd7ab2bb651429a0414036cbd1265810e0c121cfeb6d9", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "../../src/failure-taxonomy/aggregate.js", - "specifiers": [ - "computeFailureDistribution", - "FailureRow" - ] - } - ], - "exports": [], - "totalLines": 124, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/tests/failure-taxonomy/codes.test.ts": { - "filePath": "benchmarks/harness/tests/failure-taxonomy/codes.test.ts", - "contentHash": "018f3aa61116dd083bb7790c470aeb537d4f03cfdbf9e83833b0c03a87914c36", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "../../src/failure-taxonomy/codes.js", - "specifiers": [ - "FAILURE_CODE_DEFINITIONS", - "FAILURE_CODES", - "FAILURE_TAXONOMY_VERSION", - "F_OTHER_REVIEW_THRESHOLD", - "FailureCode" - ] - } - ], - "exports": [], - "totalLines": 85, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/tests/failure-taxonomy/rubric.test.ts": { - "filePath": "benchmarks/harness/tests/failure-taxonomy/rubric.test.ts", - "contentHash": "dc85c465bee71373ff6a63a2d4c00a354deb904067e7a33c13f257c07ad7655a", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "../../src/failure-taxonomy/rubric.js", - "specifiers": [ - "buildJudgeRubricBlock" - ] - } - ], - "exports": [], - "totalLines": 44, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/tests/failure-taxonomy/validator.test.ts": { - "filePath": "benchmarks/harness/tests/failure-taxonomy/validator.test.ts", - "contentHash": "dcff952d3a06545e7e90161650ce2a77d4b1b1ea49a36a93b2d9fc57a98acba1", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "../../src/failure-taxonomy/validator.js", - "specifiers": [ - "validateFailureCodeEntry" - ] - } - ], - "exports": [], - "totalLines": 124, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/tests/health-check.test.ts": { - "filePath": "benchmarks/harness/tests/health-check.test.ts", - "contentHash": "6f82b8591040a2d79d1c84b1445ac92c835d3a1f524854929d0d2d351e58ea31", - "functions": [ - { - "name": "okResponse", - "params": [ - "body" - ], - "returnType": "Response", - "exported": false, - "lineCount": 3 - }, - { - "name": "errorResponse", - "params": [ - "status" - ], - "returnType": "Response", - "exported": false, - "lineCount": 3 - }, - { - "name": "seqFetch", - "params": [ - "responses" - ], - "returnType": "{\r\n fn: typeof globalThis.fetch;\r\n calls: Array<{ url: string; method: string }>;\r\n}", - "exported": false, - "lineCount": 17 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "../src/health-check.js", - "specifiers": [ - "preCellHealthCheck" - ] - } - ], - "exports": [], - "totalLines": 187, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/tests/ingest.test.ts": { - "filePath": "benchmarks/harness/tests/ingest.test.ts", - "contentHash": "0e6dc1cff55f80ee048c01ec94e28ba97896a444afcf4ceebfcf0b886cebbab6", - "functions": [ - { - "name": "createFakeEmbedder", - "params": [ - "dims" - ], - "returnType": "Embedder", - "exported": false, - "lineCount": 32 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "vitest", - "specifiers": [ - "afterEach", - "beforeEach", - "describe", - "expect", - "it" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "FrameStore", - "HybridSearch", - "MindDB", - "SessionStore", - "Embedder" - ] - }, - { - "source": "../src/ingest.js", - "specifiers": [ - "extractTurnsFromLocomoRaw", - "ingestLoCoMoCorpus", - "LocomoRawSample" - ] - } - ], - "exports": [], - "totalLines": 276, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/tests/jsonl-record-schema.test.ts": { - "filePath": "benchmarks/harness/tests/jsonl-record-schema.test.ts", - "contentHash": "ac158eab39a1007f32a38e123535516937233ab7c0c0ec705b41a5273b203c8a", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/types.js", - "specifiers": [ - "JsonlRecord", - "FailureMode", - "JudgeVerdict", - "JudgeEnsembleEntry", - "PinningSurface" - ] - } - ], - "exports": [], - "totalLines": 266, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/tests/judge-wiring.test.ts": { - "filePath": "benchmarks/harness/tests/judge-wiring.test.ts", - "contentHash": "9d77ca3358d9ce0b06ac8a5dfa5f04f66b51be0a7e60528bc8946155bc6ada55", - "functions": [ - { - "name": "readJsonl", - "params": [ - "file" - ], - "returnType": "JsonlRecord[]", - "exported": false, - "lineCount": 7 - } - ], - "classes": [ - { - "name": "ScriptedLlmClient", - "methods": [ - "constructor", - "complete" - ], - "properties": [ - "calls", - "queue" - ], - "exported": false, - "lineCount": 14 - } - ], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach", - "vi" - ] - }, - { - "source": "../src/judge-client.js", - "specifiers": [ - "createJudgeLlmClient", - "JudgeClientCostEntry" - ] - }, - { - "source": "../src/judge-runner.js", - "specifiers": [ - "runJudge", - "JudgeConfig" - ] - }, - { - "source": "../src/runner.js", - "specifiers": [ - "runOne" - ] - }, - { - "source": "../src/judge-types.js", - "specifiers": [ - "LlmClient" - ] - }, - { - "source": "../src/types.js", - "specifiers": [ - "DatasetSpec", - "JsonlRecord", - "ModelSpec" - ] - } - ], - "exports": [], - "totalLines": 369, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/tests/llm-retry.test.ts": { - "filePath": "benchmarks/harness/tests/llm-retry.test.ts", - "contentHash": "5ee21c270e0ec0c09affba27510bcc82a0fa447b304fd02fdc94196703fb91f1", - "functions": [ - { - "name": "buildInput", - "params": [], - "exported": false, - "lineCount": 7 - }, - { - "name": "mockSuccess", - "params": [ - "content", - "usage" - ], - "returnType": "Response", - "exported": false, - "lineCount": 9 - }, - { - "name": "mockHttpError", - "params": [ - "status" - ], - "returnType": "Response", - "exported": false, - "lineCount": 3 - }, - { - "name": "throwTypeError", - "params": [], - "returnType": "never", - "exported": false, - "lineCount": 5 - }, - { - "name": "throwAbortError", - "params": [], - "returnType": "never", - "exported": false, - "lineCount": 5 - }, - { - "name": "throwRangeError", - "params": [], - "returnType": "never", - "exported": false, - "lineCount": 5 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "afterEach", - "beforeEach", - "describe", - "expect", - "it", - "vi" - ] - }, - { - "source": "../src/llm.js", - "specifiers": [ - "createLlmClient" - ] - }, - { - "source": "../src/types.js", - "specifiers": [ - "ModelSpec" - ] - } - ], - "exports": [], - "totalLines": 211, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/tests/models-config.test.ts": { - "filePath": "benchmarks/harness/tests/models-config.test.ts", - "contentHash": "93db2c1eaa2e3295fae3a9ba8e6f0cf99a6f1e9dba6e28140ae34fdee2f47ed0", - "functions": [ - { - "name": "loadModels", - "params": [], - "returnType": "Record", - "exported": false, - "lineCount": 4 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:url", - "specifiers": [ - "url" - ] - }, - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "../src/types.js", - "specifiers": [ - "JudgeRole", - "ModelSpec", - "PinningSurface" - ] - } - ], - "exports": [], - "totalLines": 187, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/tests/preregistration.test.ts": { - "filePath": "benchmarks/harness/tests/preregistration.test.ts", - "contentHash": "160680b7f867b4df352fb17c6d06aa6a63b956cf0541e53357da02bbf8aaf42a", - "functions": [ - { - "name": "makeValidPayload", - "params": [ - "overrides" - ], - "returnType": "PreregistrationManifestPayload", - "exported": false, - "lineCount": 17 - } - ], - "classes": [], - "imports": [ - { - "source": "node:crypto", - "specifiers": [ - "crypto" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "vitest", - "specifiers": [ - "afterEach", - "beforeEach", - "describe", - "expect", - "it", - "vi", - "MockInstance" - ] - }, - { - "source": "../src/preregistration.js", - "specifiers": [ - "CANONICAL_MANIFEST_PATH", - "ManifestNotFoundError", - "PREREGISTRATION_EVENT_NAME", - "RUNNER_VERSION_FALLBACK", - "computeBenchSpecManifestHash", - "emitPreregistrationManifest", - "getRunnerVersion", - "readManifestLockedDate", - "resolveManifestPath", - "sanitizeArgv", - "PreregistrationManifestPayload" - ] - } - ], - "exports": [], - "totalLines": 343, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/tests/reasoning-capture.test.ts": { - "filePath": "benchmarks/harness/tests/reasoning-capture.test.ts", - "contentHash": "aff25e0ceab5df952632e85d275f93bbb71b650c8289eccf7029c7a7cc192505", - "functions": [ - { - "name": "respondWith", - "params": [ - "body" - ], - "returnType": "Response", - "exported": false, - "lineCount": 6 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach", - "vi" - ] - }, - { - "source": "../src/llm.js", - "specifiers": [ - "createLlmClient" - ] - }, - { - "source": "../src/metrics.js", - "specifiers": [ - "JsonlWriter", - "readJsonl", - "buildAggregate" - ] - }, - { - "source": "../src/types.js", - "specifiers": [ - "JsonlRecord", - "ModelSpec", - "DatasetSpec", - "RunConfig" - ] - } - ], - "exports": [], - "totalLines": 350, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/tests/runner-lock.test.ts": { - "filePath": "benchmarks/harness/tests/runner-lock.test.ts", - "contentHash": "d905ec78598f1fa47f9f66b32636c78c5d69675499df101f5eb4e73bcfd5c3b5", - "functions": [], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "vitest", - "specifiers": [ - "afterEach", - "beforeEach", - "describe", - "expect", - "it" - ] - }, - { - "source": "../src/runner-lock.js", - "specifiers": [ - "acquireRunnerLock" - ] - } - ], - "exports": [], - "totalLines": 168, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/tests/smoke.test.ts": { - "filePath": "benchmarks/harness/tests/smoke.test.ts", - "contentHash": "390b9521d451cd326ccbe36ac99f8646f789edbdc17527a41c6b854ed4ce9d84", - "functions": [ - { - "name": "readJsonl", - "params": [ - "file" - ], - "returnType": "JsonlRecord[]", - "exported": false, - "lineCount": 7 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:url", - "specifiers": [ - "url" - ] - }, - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "../src/runner.js", - "specifiers": [ - "parseArgs", - "buildRuns", - "runOne" - ] - }, - { - "source": "../src/datasets.js", - "specifiers": [ - "loadDataset", - "sampleInstances", - "loadPreflightSampleLock", - "PREFLIGHT_LOCOMO_50_DISTRIBUTION" - ] - }, - { - "source": "../src/types.js", - "specifiers": [ - "JsonlRecord" - ] - } - ], - "exports": [], - "totalLines": 404, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/tests/smoke/fixtures/mock-judge-responses.json": { - "filePath": "benchmarks/harness/tests/smoke/fixtures/mock-judge-responses.json", - "contentHash": "37d74fc1b949f7fd14fbf9e3a185baa697471c9a2433ed8e70d57307440a2900", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 120, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/tests/smoke/fixtures/mock-locomo-instances.json": { - "filePath": "benchmarks/harness/tests/smoke/fixtures/mock-locomo-instances.json", - "contentHash": "ae20f4101ea1ae6aef8db84a53f3652a2aa938f1bb163923723ca91c81f7bb30", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 76, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/tests/smoke/smoke-run.test.ts": { - "filePath": "benchmarks/harness/tests/smoke/smoke-run.test.ts", - "contentHash": "f0bdedc09fd6153167ee6839a3e82be0da04f948eea463b55b8ec9cbf0565ea1", - "functions": [ - { - "name": "loadFixtures", - "params": [], - "returnType": "MockFixtures", - "exported": false, - "lineCount": 18 - }, - { - "name": "buildVerdictVoteMatrix", - "params": [ - "responses" - ], - "returnType": "VoteMatrix", - "exported": false, - "lineCount": 19 - }, - { - "name": "resolveFinalVerdict", - "params": [ - "entry" - ], - "returnType": "{ correct: 0 | 1; failure_code: FailureCode; rationale: string | null }", - "exported": false, - "lineCount": 48 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:url", - "specifiers": [ - "url" - ] - }, - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "createCoreLogger" - ] - }, - { - "source": "../../src/stats/index.js", - "specifiers": [ - "computeClusterBootstrapCI", - "computeFleissKappa", - "computeWilsonCI", - "CorrectnessRow", - "VoteMatrix" - ] - }, - { - "source": "../../src/failure-taxonomy/index.js", - "specifiers": [ - "FAILURE_TAXONOMY_VERSION", - "computeFailureDistribution", - "FailureCode", - "FailureRow" - ] - } - ], - "exports": [], - "totalLines": 324, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/tests/stage2-config.test.ts": { - "filePath": "benchmarks/harness/tests/stage2-config.test.ts", - "contentHash": "000ce209c570400028fbf54b0ad4bcd2845a02df69aff9519ad25ca666ab6474", - "functions": [ - { - "name": "loadModels", - "params": [], - "returnType": "ModelsRegistry", - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:url", - "specifiers": [ - "url" - ] - }, - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach", - "vi" - ] - }, - { - "source": "../src/llm.js", - "specifiers": [ - "createLlmClient" - ] - }, - { - "source": "../src/types.js", - "specifiers": [ - "ModelSpec" - ] - } - ], - "exports": [], - "totalLines": 230, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/tests/stats/cluster-bootstrap.test.ts": { - "filePath": "benchmarks/harness/tests/stats/cluster-bootstrap.test.ts", - "contentHash": "b60aa9da138d1eab7b7b63985771128a12f341271acc1f1098aebf2778689fb6", - "functions": [ - { - "name": "buildClusteredRows", - "params": [ - "clusterCount", - "rowsPerCluster", - "correctRate" - ], - "returnType": "CorrectnessRow[]", - "exported": false, - "lineCount": 17 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "../../src/stats/cluster-bootstrap.js", - "specifiers": [ - "computeClusterBootstrapCI", - "CorrectnessRow" - ] - }, - { - "source": "../../src/stats/wilson-ci.js", - "specifiers": [ - "computeWilsonCI" - ] - } - ], - "exports": [], - "totalLines": 162, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/tests/stats/fleiss-kappa.test.ts": { - "filePath": "benchmarks/harness/tests/stats/fleiss-kappa.test.ts", - "contentHash": "096fcbaf7968f54e51bb8cf5ebd00a14d5e37284f33c3cbc0ab776002ffbe8de", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "../../src/stats/fleiss-kappa.js", - "specifiers": [ - "computeFleissKappa", - "VoteMatrix" - ] - } - ], - "exports": [], - "totalLines": 197, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/tests/stats/wilson-ci.test.ts": { - "filePath": "benchmarks/harness/tests/stats/wilson-ci.test.ts", - "contentHash": "2c9fbcc48897a441120a85933465e8a54d9e8458be4f0a5f155e5fdce94c0e88", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "../../src/stats/wilson-ci.js", - "specifiers": [ - "computeWilsonCI", - "Z_95_TWO_SIDED" - ] - } - ], - "exports": [], - "totalLines": 95, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/tests/streak-tracker.test.ts": { - "filePath": "benchmarks/harness/tests/streak-tracker.test.ts", - "contentHash": "71505b0d778645bb974f5f76762e44bc0382a1db286f375b72d4ef4a952c98d1", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "../src/streak-tracker.js", - "specifiers": [ - "StreakTracker", - "isFetchTransportFailure" - ] - } - ], - "exports": [], - "totalLines": 146, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/tests/substrate.test.ts": { - "filePath": "benchmarks/harness/tests/substrate.test.ts", - "contentHash": "7c93eab78517f05d9d9c1a031c2eaa5f5ddb7677cf348bae57023509ea522fed", - "functions": [ - { - "name": "createFakeEmbedder", - "params": [ - "dims" - ], - "returnType": "Embedder", - "exported": false, - "lineCount": 30 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "Embedder" - ] - }, - { - "source": "../src/substrate.js", - "specifiers": [ - "createSubstrate" - ] - } - ], - "exports": [], - "totalLines": 102, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/tests/wrapper-v3-cells.test.ts": { - "filePath": "benchmarks/harness/tests/wrapper-v3-cells.test.ts", - "contentHash": "6ae9abb92334ea5090da8cc4b91aaf7a062a12d86764f7aa7b5a1facc7823fdf", - "functions": [], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:url", - "specifiers": [ - "url" - ] - }, - { - "source": "vitest", - "specifiers": [ - "afterEach", - "beforeEach", - "describe", - "expect", - "it" - ] - } - ], - "exports": [], - "totalLines": 155, - "hasStructuralAnalysis": true - }, - "benchmarks/harness/tsconfig.json": { - "filePath": "benchmarks/harness/tsconfig.json", - "contentHash": "33c0db58ba9b41885199ea6cdf1c0e19a51e26c0c7f90a4c7d078ebcb9e41b73", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 23, - "hasStructuralAnalysis": true - }, - "benchmarks/preregistration/manifest-v5-preregistration.md": { - "filePath": "benchmarks/preregistration/manifest-v5-preregistration.md", - "contentHash": "dcbc5da07dabd621e3756c2fb43b0d23c761da70d1f87359311a1568a6ffc85c", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 357, - "hasStructuralAnalysis": true - }, - "benchmarks/preregistration/manifest-v5-preregistration.yaml": { - "filePath": "benchmarks/preregistration/manifest-v5-preregistration.yaml", - "contentHash": "b4dc90cb1db04c2ce69d499d24a903e47abfb1d12cbab3a808f9d578e7d2d8e6", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 499, - "hasStructuralAnalysis": true - }, - "benchmarks/preregistration/manifest-v6-preregistration.md": { - "filePath": "benchmarks/preregistration/manifest-v6-preregistration.md", - "contentHash": "02ca0a0dfe45152013548f2a7cded485192d6acc85d28d0e27ec4bf372608534", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 479, - "hasStructuralAnalysis": true - }, - "benchmarks/preregistration/manifest-v6-preregistration.yaml": { - "filePath": "benchmarks/preregistration/manifest-v6-preregistration.yaml", - "contentHash": "5d5c1023421cd1a79f4913bb4c0a59415e21f50797255bff7dfec8e16b68e3ed", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 688, - "hasStructuralAnalysis": true - }, - "benchmarks/preregistration/manifest-v7-gepa-faza1.yaml": { - "filePath": "benchmarks/preregistration/manifest-v7-gepa-faza1.yaml", - "contentHash": "fa716ff90a4345eb87962789f3a2ab3d54994edc93964f850ad64cf6fbf6d227", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 1607, - "hasStructuralAnalysis": true - }, - "benchmarks/preregistration/manifest-v8-gaia2-preregistration.md": { - "filePath": "benchmarks/preregistration/manifest-v8-gaia2-preregistration.md", - "contentHash": "b428a35c5619f2881188a7291d98027b3cca75f7d53a01becd28cf3dfbd1b97c", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 459, - "hasStructuralAnalysis": true - }, - "benchmarks/preregistration/manifest-v8-gaia2-preregistration.yaml": { - "filePath": "benchmarks/preregistration/manifest-v8-gaia2-preregistration.yaml", - "contentHash": "eb72daf04b1889fa887b4009a965b9d06ddf71a001e011899cad7e94cc526600", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 499, - "hasStructuralAnalysis": true - }, - "benchmarks/preregistration/manifest-v8.1-multi-benchmark.md": { - "filePath": "benchmarks/preregistration/manifest-v8.1-multi-benchmark.md", - "contentHash": "73900852da78c767ed9c88fda5b084e6c519a4a5145c374b60cd5e0b2c05379f", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 450, - "hasStructuralAnalysis": true - }, - "benchmarks/preregistration/manifest-v8.2-final.md": { - "filePath": "benchmarks/preregistration/manifest-v8.2-final.md", - "contentHash": "2bb4e64830b99ea27e33c7f1f17a32edc9932b18938841531b32196c28c4cf49", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 111, - "hasStructuralAnalysis": true - }, - "benchmarks/probes/judge-swap-validation/_summary-split.json": { - "filePath": "benchmarks/probes/judge-swap-validation/_summary-split.json", - "contentHash": "d990c4e563ca0a51706f7197ec492364b51c729042cfc799b607b884ae5f89af", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 210, - "hasStructuralAnalysis": true - }, - "benchmarks/probes/judge-swap-validation/deepseek-mt-comparison-memo.md": { - "filePath": "benchmarks/probes/judge-swap-validation/deepseek-mt-comparison-memo.md", - "contentHash": "b520d0359638adef37caa905e1d28756054152b5acc4b025e1514d3c0afbb558", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 25, - "hasStructuralAnalysis": true - }, - "benchmarks/probes/judge-swap-validation/deepseek-mt2048-probe.py": { - "filePath": "benchmarks/probes/judge-swap-validation/deepseek-mt2048-probe.py", - "contentHash": "e7be4ca9426d849b462f4a2b343e03c3fb098a460b5216d07d64e8fd0414ff34", - "functions": [ - { - "name": "ts", - "params": [], - "returnType": "str", - "exported": true, - "lineCount": 2 - }, - { - "name": "logmsg", - "params": [ - "msg" - ], - "returnType": "None", - "exported": true, - "lineCount": 2 - }, - { - "name": "load_env", - "params": [], - "returnType": "dict[str, str]", - "exported": true, - "lineCount": 10 - }, - { - "name": "extract_json_body", - "params": [ - "raw" - ], - "returnType": "dict | None", - "exported": true, - "lineCount": 21 - }, - { - "name": "parse_verdict", - "params": [ - "raw" - ], - "returnType": "tuple[str | None, str | None, str | None]", - "exported": true, - "lineCount": 12 - }, - { - "name": "http_post_json", - "params": [ - "url", - "headers", - "body", - "timeout_s" - ], - "returnType": "tuple[int, dict | str]", - "exported": true, - "lineCount": 19 - }, - { - "name": "call_deepseek_mt2048", - "params": [ - "prompt", - "api_key", - "max_attempts" - ], - "returnType": "dict", - "exported": true, - "lineCount": 42 - }, - { - "name": "main", - "params": [], - "returnType": "int", - "exported": true, - "lineCount": 61 - } - ], - "classes": [], - "imports": [ - { - "source": "json", - "specifiers": [ - "json" - ] - }, - { - "source": "sys", - "specifiers": [ - "sys" - ] - }, - { - "source": "time", - "specifiers": [ - "time" - ] - }, - { - "source": "urllib.error", - "specifiers": [ - "urllib.error" - ] - }, - { - "source": "urllib.request", - "specifiers": [ - "urllib.request" - ] - }, - { - "source": "datetime", - "specifiers": [ - "datetime", - "timezone" - ] - }, - { - "source": "pathlib", - "specifiers": [ - "Path" - ] - } - ], - "exports": [ - "ts", - "logmsg", - "load_env", - "extract_json_body", - "parse_verdict", - "http_post_json", - "call_deepseek_mt2048", - "main" - ], - "totalLines": 275, - "hasStructuralAnalysis": true - }, - "benchmarks/probes/judge-swap-validation/deepseek-responses.jsonl": { - "filePath": "benchmarks/probes/judge-swap-validation/deepseek-responses.jsonl", - "contentHash": "da8c8c285596932b6635fecd05808e768b2ada2ab7803c7e0b57c4abb02aa51f", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 21, - "hasStructuralAnalysis": false - }, - "benchmarks/probes/judge-swap-validation/deepseek-split-responses-v2-mt2048.jsonl": { - "filePath": "benchmarks/probes/judge-swap-validation/deepseek-split-responses-v2-mt2048.jsonl", - "contentHash": "53298ecad8aa98549c31f2d1c9db89d9ee35bf76729ab662679db4e327d1fdc4", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 8, - "hasStructuralAnalysis": false - }, - "benchmarks/probes/judge-swap-validation/deepseek-split-responses.jsonl": { - "filePath": "benchmarks/probes/judge-swap-validation/deepseek-split-responses.jsonl", - "contentHash": "1a987d2be59f442fef6390ce43700c6bc1de9db12cdedd5665aab1c478f3f081", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 8, - "hasStructuralAnalysis": false - }, - "benchmarks/probes/judge-swap-validation/kappa-analysis.md": { - "filePath": "benchmarks/probes/judge-swap-validation/kappa-analysis.md", - "contentHash": "77528bce97845fb38c943951cea2cf42fd59795488bc93bf008bd229d14dd2ca", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 88, - "hasStructuralAnalysis": true - }, - "benchmarks/probes/judge-swap-validation/kappa-split-analysis.md": { - "filePath": "benchmarks/probes/judge-swap-validation/kappa-split-analysis.md", - "contentHash": "0effd80cb523013c4f75efe2fcbf281abcabb7698144126fe8a79add216d78b0", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 159, - "hasStructuralAnalysis": true - }, - "benchmarks/probes/judge-swap-validation/kappa-split-analysis.py": { - "filePath": "benchmarks/probes/judge-swap-validation/kappa-split-analysis.py", - "contentHash": "777a1fb93c7f109b86860eda322c5365b2a07093aff833e8579611187b4be2c6", - "functions": [ - { - "name": "load_jsonl", - "params": [ - "path" - ], - "returnType": "list[dict]", - "exported": true, - "lineCount": 8 - }, - { - "name": "cohen_kappa", - "params": [ - "pairs" - ], - "returnType": "tuple[float, dict]", - "exported": true, - "lineCount": 24 - }, - { - "name": "split_verdict", - "params": [ - "kappa_cons" - ], - "returnType": "str", - "exported": true, - "lineCount": 8 - }, - { - "name": "pct", - "params": [ - "x", - "n" - ], - "returnType": "str", - "exported": true, - "lineCount": 4 - }, - { - "name": "fmt_k", - "params": [ - "x" - ], - "returnType": "str", - "exported": true, - "lineCount": 4 - }, - { - "name": "main", - "params": [], - "returnType": "int", - "exported": true, - "lineCount": 319 - } - ], - "classes": [], - "imports": [ - { - "source": "json", - "specifiers": [ - "json" - ] - }, - { - "source": "statistics", - "specifiers": [ - "statistics" - ] - }, - { - "source": "pathlib", - "specifiers": [ - "Path" - ] - }, - { - "source": "typing", - "specifiers": [ - "Any" - ] - } - ], - "exports": [ - "load_jsonl", - "cohen_kappa", - "split_verdict", - "pct", - "fmt_k", - "main" - ], - "totalLines": 418, - "hasStructuralAnalysis": true - }, - "benchmarks/probes/judge-swap-validation/kimi-responses.jsonl": { - "filePath": "benchmarks/probes/judge-swap-validation/kimi-responses.jsonl", - "contentHash": "aabab3e7b44492dab87ac298587ffb6d5f0f147a1ff652de35f34e0921d4bc81", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 21, - "hasStructuralAnalysis": false - }, - "benchmarks/probes/judge-swap-validation/kimi-split-responses.jsonl": { - "filePath": "benchmarks/probes/judge-swap-validation/kimi-split-responses.jsonl", - "contentHash": "1a32b61e9c5297ff929d01892953a1177d6d0605524af411e55339b55d145b83", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 8, - "hasStructuralAnalysis": false - }, - "benchmarks/probes/judge-swap-validation/minimax-responses.jsonl": { - "filePath": "benchmarks/probes/judge-swap-validation/minimax-responses.jsonl", - "contentHash": "617cfedda9bcfc1fe0a0ab8b8f510b513d68eb33bbec1c9eb49638c5ca5e03a6", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 21, - "hasStructuralAnalysis": false - }, - "benchmarks/probes/judge-swap-validation/minimax-split-responses.jsonl": { - "filePath": "benchmarks/probes/judge-swap-validation/minimax-split-responses.jsonl", - "contentHash": "db4986a72597865f443d39a5d3cadaaf89257a5baca4cf5b83c15e58748f0dae", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 8, - "hasStructuralAnalysis": false - }, - "benchmarks/probes/judge-swap-validation/probe-script-split.py": { - "filePath": "benchmarks/probes/judge-swap-validation/probe-script-split.py", - "contentHash": "7a36d3c60ca3ea09c67fe03ed58d011f8b0261f7dd8f3b7f0b18ea85b059b306", - "functions": [ - { - "name": "ts", - "params": [], - "returnType": "str", - "exported": true, - "lineCount": 2 - }, - { - "name": "logmsg", - "params": [ - "msg" - ], - "returnType": "None", - "exported": true, - "lineCount": 2 - }, - { - "name": "load_env", - "params": [], - "returnType": "dict[str, str]", - "exported": true, - "lineCount": 15 - }, - { - "name": "extract_json_body", - "params": [ - "raw" - ], - "returnType": "dict | None", - "exported": true, - "lineCount": 20 - }, - { - "name": "parse_verdict", - "params": [ - "raw_text" - ], - "returnType": "tuple[str | None, str | None, str | None]", - "exported": true, - "lineCount": 12 - }, - { - "name": "http_post_json", - "params": [ - "url", - "headers", - "body", - "timeout_s" - ], - "returnType": "tuple[int, dict | str]", - "exported": true, - "lineCount": 22 - }, - { - "name": "_retry_call", - "params": [ - "url", - "headers", - "body", - "model_id", - "routing", - "max_attempts" - ], - "returnType": "dict", - "exported": true, - "lineCount": 45 - }, - { - "name": "call_kimi", - "params": [ - "prompt", - "env" - ], - "returnType": "dict", - "exported": true, - "lineCount": 9 - }, - { - "name": "call_deepseek", - "params": [ - "prompt", - "env" - ], - "returnType": "dict", - "exported": true, - "lineCount": 10 - }, - { - "name": "call_zhipu", - "params": [ - "prompt", - "env" - ], - "returnType": "dict", - "exported": true, - "lineCount": 10 - }, - { - "name": "call_minimax_direct_with_fallback", - "params": [ - "prompt", - "env" - ], - "returnType": "dict", - "exported": true, - "lineCount": 37 - }, - { - "name": "_call_minimax_direct", - "params": [ - "prompt", - "api_key", - "group_id", - "variant" - ], - "returnType": "dict", - "exported": true, - "lineCount": 20 - }, - { - "name": "_call_minimax_openrouter", - "params": [ - "prompt", - "or_key" - ], - "returnType": "dict", - "exported": true, - "lineCount": 10 - }, - { - "name": "load_split_sample", - "params": [], - "returnType": "list[dict]", - "exported": true, - "lineCount": 8 - }, - { - "name": "run_provider", - "params": [ - "name", - "call_fn", - "sample", - "env" - ], - "returnType": "list[dict]", - "exported": true, - "lineCount": 39 - }, - { - "name": "write_jsonl", - "params": [ - "path", - "rows" - ], - "returnType": "None", - "exported": true, - "lineCount": 5 - }, - { - "name": "main", - "params": [], - "returnType": "int", - "exported": true, - "lineCount": 47 - } - ], - "classes": [], - "imports": [ - { - "source": "json", - "specifiers": [ - "json" - ] - }, - { - "source": "os", - "specifiers": [ - "os" - ] - }, - { - "source": "re", - "specifiers": [ - "re" - ] - }, - { - "source": "sys", - "specifiers": [ - "sys" - ] - }, - { - "source": "time", - "specifiers": [ - "time" - ] - }, - { - "source": "traceback", - "specifiers": [ - "traceback" - ] - }, - { - "source": "urllib.error", - "specifiers": [ - "urllib.error" - ] - }, - { - "source": "urllib.request", - "specifiers": [ - "urllib.request" - ] - }, - { - "source": "concurrent.futures", - "specifiers": [ - "ThreadPoolExecutor", - "as_completed" - ] - }, - { - "source": "datetime", - "specifiers": [ - "datetime", - "timezone" - ] - }, - { - "source": "pathlib", - "specifiers": [ - "Path" - ] - } - ], - "exports": [ - "ts", - "logmsg", - "load_env", - "extract_json_body", - "parse_verdict", - "http_post_json", - "_retry_call", - "call_kimi", - "call_deepseek", - "call_zhipu", - "call_minimax_direct_with_fallback", - "_call_minimax_direct", - "_call_minimax_openrouter", - "load_split_sample", - "run_provider", - "write_jsonl", - "main" - ], - "totalLines": 486, - "hasStructuralAnalysis": true - }, - "benchmarks/probes/judge-swap-validation/probe-script.py": { - "filePath": "benchmarks/probes/judge-swap-validation/probe-script.py", - "contentHash": "5400934951511e1fc30d8bbedc7de0b9c8bff547f7729918f268da6b45831240", - "functions": [ - { - "name": "ts", - "params": [], - "returnType": "str", - "exported": true, - "lineCount": 2 - }, - { - "name": "logmsg", - "params": [ - "msg" - ], - "returnType": "None", - "exported": true, - "lineCount": 2 - }, - { - "name": "load_env", - "params": [], - "returnType": "dict[str, str]", - "exported": true, - "lineCount": 15 - }, - { - "name": "extract_json_body", - "params": [ - "raw" - ], - "returnType": "dict | None", - "exported": true, - "lineCount": 23 - }, - { - "name": "parse_verdict", - "params": [ - "raw_text" - ], - "returnType": "tuple[str | None, str | None, str | None]", - "exported": true, - "lineCount": 12 - }, - { - "name": "http_post_json", - "params": [ - "url", - "headers", - "body", - "timeout_s" - ], - "returnType": "tuple[int, dict | str]", - "exported": true, - "lineCount": 22 - }, - { - "name": "call_kimi", - "params": [ - "prompt", - "env" - ], - "returnType": "dict", - "exported": true, - "lineCount": 14 - }, - { - "name": "call_deepseek", - "params": [ - "prompt", - "env" - ], - "returnType": "dict", - "exported": true, - "lineCount": 10 - }, - { - "name": "call_zhipu", - "params": [ - "prompt", - "env" - ], - "returnType": "dict", - "exported": true, - "lineCount": 10 - }, - { - "name": "call_minimax_via_openrouter", - "params": [ - "prompt", - "env" - ], - "returnType": "dict", - "exported": true, - "lineCount": 13 - }, - { - "name": "_retry_call", - "params": [ - "url", - "headers", - "body", - "model_id", - "routing", - "max_attempts" - ], - "returnType": "dict", - "exported": true, - "lineCount": 40 - }, - { - "name": "build_sample", - "params": [], - "returnType": "list[dict]", - "exported": true, - "lineCount": 43 - }, - { - "name": "enrich_sample_with_locomo", - "params": [ - "sample" - ], - "returnType": "list[dict]", - "exported": true, - "lineCount": 30 - }, - { - "name": "run_provider", - "params": [ - "name", - "call_fn", - "sample", - "env" - ], - "returnType": "list[dict]", - "exported": true, - "lineCount": 33 - }, - { - "name": "write_jsonl", - "params": [ - "path", - "rows" - ], - "returnType": "None", - "exported": true, - "lineCount": 5 - }, - { - "name": "main", - "params": [], - "returnType": "int", - "exported": true, - "lineCount": 43 - } - ], - "classes": [], - "imports": [ - { - "source": "json", - "specifiers": [ - "json" - ] - }, - { - "source": "os", - "specifiers": [ - "os" - ] - }, - { - "source": "re", - "specifiers": [ - "re" - ] - }, - { - "source": "sys", - "specifiers": [ - "sys" - ] - }, - { - "source": "time", - "specifiers": [ - "time" - ] - }, - { - "source": "traceback", - "specifiers": [ - "traceback" - ] - }, - { - "source": "concurrent.futures", - "specifiers": [ - "ThreadPoolExecutor", - "as_completed" - ] - }, - { - "source": "datetime", - "specifiers": [ - "datetime", - "timezone" - ] - }, - { - "source": "pathlib", - "specifiers": [ - "Path" - ] - }, - { - "source": "urllib.error", - "specifiers": [ - "urllib.error" - ] - }, - { - "source": "urllib.request", - "specifiers": [ - "urllib.request" - ] - } - ], - "exports": [ - "ts", - "logmsg", - "load_env", - "extract_json_body", - "parse_verdict", - "http_post_json", - "call_kimi", - "call_deepseek", - "call_zhipu", - "call_minimax_via_openrouter", - "_retry_call", - "build_sample", - "enrich_sample_with_locomo", - "run_provider", - "write_jsonl", - "main" - ], - "totalLines": 487, - "hasStructuralAnalysis": true - }, - "benchmarks/probes/judge-swap-validation/reprobe-memo.md": { - "filePath": "benchmarks/probes/judge-swap-validation/reprobe-memo.md", - "contentHash": "6b64583ab3dc4a7e1782b6108f1f3197c78becd287d8eece47fffab691fd16f9", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 40, - "hasStructuralAnalysis": true - }, - "benchmarks/probes/judge-swap-validation/sample-instances.jsonl": { - "filePath": "benchmarks/probes/judge-swap-validation/sample-instances.jsonl", - "contentHash": "f4770feccfe72b1f1a1811c66e6d23db645de170fdcbf127f6f77b06d5b66ebe", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 21, - "hasStructuralAnalysis": false - }, - "benchmarks/probes/judge-swap-validation/split-cases-sample.jsonl": { - "filePath": "benchmarks/probes/judge-swap-validation/split-cases-sample.jsonl", - "contentHash": "6df4ed0f2754339c08c81ee1c81014dc18ef004696b402e1c88258475468fb9b", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 8, - "hasStructuralAnalysis": false - }, - "benchmarks/probes/judge-swap-validation/validation-memo.md": { - "filePath": "benchmarks/probes/judge-swap-validation/validation-memo.md", - "contentHash": "6070b29e0ee8c9e24008c4684651319f20ec93656862b53884fca4d0dd241ea1", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 31, - "hasStructuralAnalysis": true - }, - "benchmarks/probes/judge-swap-validation/zhipu-responses.jsonl": { - "filePath": "benchmarks/probes/judge-swap-validation/zhipu-responses.jsonl", - "contentHash": "7206e045cf621b83ff103264990cca33c547a65782abc43592f06cbc57e6ad63", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 21, - "hasStructuralAnalysis": false - }, - "benchmarks/probes/judge-swap-validation/zhipu-split-responses.jsonl": { - "filePath": "benchmarks/probes/judge-swap-validation/zhipu-split-responses.jsonl", - "contentHash": "8af0d49b841e3c490d7d0da1f506b4ea4724d72c9b362797728a767a5f8be4dd", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 8, - "hasStructuralAnalysis": false - }, - "benchmarks/probes/vertex-batch-eligibility/eligibility-memo.md": { - "filePath": "benchmarks/probes/vertex-batch-eligibility/eligibility-memo.md", - "contentHash": "f3c0a74740b797297a5bd2484b8f78bedf0d8667b3922af9e7af0c8a067d7326", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 33, - "hasStructuralAnalysis": true - }, - "benchmarks/probes/vertex-batch-eligibility/probe-input.jsonl": { - "filePath": "benchmarks/probes/vertex-batch-eligibility/probe-input.jsonl", - "contentHash": "2c90f83b7a5cf700d079700948449e668e0ce374fe7a9d934bd50f7653a539af", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 6, - "hasStructuralAnalysis": false - }, - "benchmarks/probes/vertex-batch-eligibility/probe-script.py": { - "filePath": "benchmarks/probes/vertex-batch-eligibility/probe-script.py", - "contentHash": "4c30d25e89aeb3886338b0d1faf539939988f0b8ec4dcd6d213e534686f5636f", - "functions": [ - { - "name": "ts", - "params": [], - "returnType": "str", - "exported": true, - "lineCount": 2 - }, - { - "name": "logline", - "params": [ - "text" - ], - "returnType": "None", - "exported": true, - "lineCount": 8 - }, - { - "name": "build_input_jsonl", - "params": [], - "returnType": "int", - "exported": true, - "lineCount": 29 - }, - { - "name": "upload_to_gcs", - "params": [ - "local_path", - "gcs_uri" - ], - "returnType": "None", - "exported": true, - "lineCount": 10 - }, - { - "name": "download_first_output_jsonl", - "params": [ - "gcs_prefix", - "local_path" - ], - "returnType": "int", - "exported": true, - "lineCount": 16 - }, - { - "name": "submit_via_preview_api", - "params": [ - "model_variant" - ], - "returnType": "object | None", - "exported": true, - "lineCount": 24 - }, - { - "name": "submit_via_legacy_api", - "params": [], - "returnType": "object | None", - "exported": true, - "lineCount": 23 - }, - { - "name": "poll_until_terminal", - "params": [ - "job", - "max_seconds", - "cadence_s" - ], - "returnType": "str", - "exported": true, - "lineCount": 18 - }, - { - "name": "resume_job", - "params": [ - "resource_name" - ], - "exported": true, - "lineCount": 17 - }, - { - "name": "main", - "params": [], - "returnType": "int", - "exported": true, - "lineCount": 80 - } - ], - "classes": [], - "imports": [ - { - "source": "argparse", - "specifiers": [ - "argparse" - ] - }, - { - "source": "json", - "specifiers": [ - "json" - ] - }, - { - "source": "sys", - "specifiers": [ - "sys" - ] - }, - { - "source": "time", - "specifiers": [ - "time" - ] - }, - { - "source": "traceback", - "specifiers": [ - "traceback" - ] - }, - { - "source": "datetime", - "specifiers": [ - "datetime", - "timezone" - ] - }, - { - "source": "pathlib", - "specifiers": [ - "Path" - ] - } - ], - "exports": [ - "ts", - "logline", - "build_input_jsonl", - "upload_to_gcs", - "download_first_output_jsonl", - "submit_via_preview_api", - "submit_via_legacy_api", - "poll_until_terminal", - "resume_job", - "main" - ], - "totalLines": 379, - "hasStructuralAnalysis": true - }, - "benchmarks/results/.gitkeep": { - "filePath": "benchmarks/results/.gitkeep", - "contentHash": "d7243e427e4cb3c7a6cfcca7547ab75eb863732f80f3ce94958df6cfe790448c", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 2, - "hasStructuralAnalysis": false - }, - "benchmarks/results/agentic-locomo-2026-04-25T16-13-29-924Z.jsonl": { - "filePath": "benchmarks/results/agentic-locomo-2026-04-25T16-13-29-924Z.jsonl", - "contentHash": "27483c76d5668d9779446a993723eeca24e30a4b4f28d2fcc8622d92665a4c21", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 401, - "hasStructuralAnalysis": false - }, - "benchmarks/results/agentic-locomo-2026-04-25T16-13-29-924Z.summary.json": { - "filePath": "benchmarks/results/agentic-locomo-2026-04-25T16-13-29-924Z.summary.json", - "contentHash": "bcfe5a04775856e963156659e46ec73b6f368e3d7b3f63117c4f8394bfc0603d", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 43, - "hasStructuralAnalysis": true - }, - "benchmarks/results/gepa-faza1/checkpoint-c/checkpoint-c-eval.jsonl": { - "filePath": "benchmarks/results/gepa-faza1/checkpoint-c/checkpoint-c-eval.jsonl", - "contentHash": "8f538603dbaad4a554a4072ae1ad6b5a3ecc21d78f4eebe2c806f65b3b3d46f1", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 16, - "hasStructuralAnalysis": false - }, - "benchmarks/results/gepa-faza1/checkpoint-c/checkpoint-c-report.md": { - "filePath": "benchmarks/results/gepa-faza1/checkpoint-c/checkpoint-c-report.md", - "contentHash": "ee77b4803f7da38e66a868132bd98e79a76dcaf6829a3ebf038f5888e453f209", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 253, - "hasStructuralAnalysis": true - }, - "benchmarks/results/gepa-faza1/checkpoint-c/checkpoint-c-summary.json": { - "filePath": "benchmarks/results/gepa-faza1/checkpoint-c/checkpoint-c-summary.json", - "contentHash": "92a260e1b38cfa531eb590eb62b5487bf8767bbe882bfeb1d278e3f7c5acb82f", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 114, - "hasStructuralAnalysis": true - }, - "benchmarks/results/gepa-faza1/checkpoint-c/final-kappa-audit.json": { - "filePath": "benchmarks/results/gepa-faza1/checkpoint-c/final-kappa-audit.json", - "contentHash": "00a02651512dffca8166cbdd2f3804c26b62d610da88e2cf0a6c362e5fdd3eba", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 44, - "hasStructuralAnalysis": true - }, - "benchmarks/results/gepa-faza1/corpus/h3-northlane-cfo-50-instances.jsonl": { - "filePath": "benchmarks/results/gepa-faza1/corpus/h3-northlane-cfo-50-instances.jsonl", - "contentHash": "b9b4ca9b5afa16301b4ef38f1f72b5d32b1477c6206916dcb1c05317017df44f", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 51, - "hasStructuralAnalysis": false - }, - "benchmarks/results/gepa-faza1/corpus/h3-spot-audit-pre-a-addendum.md": { - "filePath": "benchmarks/results/gepa-faza1/corpus/h3-spot-audit-pre-a-addendum.md", - "contentHash": "7fca3dbd196d10eb3232358ea00024a203a49fc98099f004a13c7cdc1209fd6b", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 160, - "hasStructuralAnalysis": true - }, - "benchmarks/results/gepa-faza1/corpus/h3-spot-audit-pre-a-report.md": { - "filePath": "benchmarks/results/gepa-faza1/corpus/h3-spot-audit-pre-a-report.md", - "contentHash": "b257f1b3cf5fd6782c7de1509061f9986fdea68ea43a8b3c9249fe2ce6043d9d", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 160, - "hasStructuralAnalysis": true - }, - "benchmarks/results/gepa-faza1/corpus/texture-audit-side-by-side.md": { - "filePath": "benchmarks/results/gepa-faza1/corpus/texture-audit-side-by-side.md", - "contentHash": "7aec6f4a47aa73e9a6e1d679e226cad179c6044db736944c308286e8ea1d667b", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 298, - "hasStructuralAnalysis": true - }, - "benchmarks/results/gepa-faza1/gen-1/checkpoint-b-report.md": { - "filePath": "benchmarks/results/gepa-faza1/gen-1/checkpoint-b-report.md", - "contentHash": "d44b73adf847403023e6bac71978f7ef4e159d7b3a705fd640b967ca19dbd7dd", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 240, - "hasStructuralAnalysis": true - }, - "benchmarks/results/gepa-faza1/gen-1/final-gen-1-close-report.md": { - "filePath": "benchmarks/results/gepa-faza1/gen-1/final-gen-1-close-report.md", - "contentHash": "037a681571ca5af1aa2d8627e4495e3e2cd6180292867bf2f54b1b2e77fcc76e", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 306, - "hasStructuralAnalysis": true - }, - "benchmarks/results/gepa-faza1/gen-1/full-gen-1-halt-report.md": { - "filePath": "benchmarks/results/gepa-faza1/gen-1/full-gen-1-halt-report.md", - "contentHash": "12e719c9ed7368356b5f90f5037b45f065647215b9275ca516d99ef39025b2cb", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 306, - "hasStructuralAnalysis": true - }, - "benchmarks/results/gepa-faza1/gen-1/gen-1-eval-void-registry-bug-superseded.jsonl": { - "filePath": "benchmarks/results/gepa-faza1/gen-1/gen-1-eval-void-registry-bug-superseded.jsonl", - "contentHash": "600eb3944f67f8683892106195988941eeafaefa31fe8bf2f39bd532017860fe", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 12, - "hasStructuralAnalysis": false - }, - "benchmarks/results/gepa-faza1/gen-1/gen-1-eval.jsonl": { - "filePath": "benchmarks/results/gepa-faza1/gen-1/gen-1-eval.jsonl", - "contentHash": "d453c175722152073f342b11269d7ff70672441c1ff51f4dd383fabd937ad708", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 121, - "hasStructuralAnalysis": false - }, - "benchmarks/results/gepa-faza1/gen-1/gen-1-summary-void-registry-bug-superseded.json": { - "filePath": "benchmarks/results/gepa-faza1/gen-1/gen-1-summary-void-registry-bug-superseded.json", - "contentHash": "2b2174ebbe056e85c847633ef4ac146c5cd38de1a037011b29bef1109ca44510", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 87, - "hasStructuralAnalysis": true - }, - "benchmarks/results/gepa-faza1/gen-1/gen-1-summary.json": { - "filePath": "benchmarks/results/gepa-faza1/gen-1/gen-1-summary.json", - "contentHash": "d9a210b2ef53fca615406f2404514457cb0d51049ef37ad8edbc4cbf393e3f38", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 334, - "hasStructuralAnalysis": true - }, - "benchmarks/results/gepa-faza1/gen-1/investigate-report.md": { - "filePath": "benchmarks/results/gepa-faza1/gen-1/investigate-report.md", - "contentHash": "62ee57a2044ef19bffb8adcbf9d5adf61abb093a24fdb4c523ae549e4f719101", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 273, - "hasStructuralAnalysis": true - }, - "benchmarks/results/gepa-faza1/gen-1/mutation-oracle-manifest.json": { - "filePath": "benchmarks/results/gepa-faza1/gen-1/mutation-oracle-manifest.json", - "contentHash": "333e767e1d0af8e03461cb3e6ca0e243080802bda90c754aaa8766a8b265549f", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 99, - "hasStructuralAnalysis": true - }, - "benchmarks/results/gepa-faza1/gen-1/post-amendment-10-halt-report.md": { - "filePath": "benchmarks/results/gepa-faza1/gen-1/post-amendment-10-halt-report.md", - "contentHash": "1281fd4d82bab55ef132b46fc3150ef424903fbd35e3ad0569ae8f76d42721cd", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 247, - "hasStructuralAnalysis": true - }, - "benchmarks/results/gepa-faza1/null-baseline/checkpoint-a-aggregates-artifactual-bug-superseded.json": { - "filePath": "benchmarks/results/gepa-faza1/null-baseline/checkpoint-a-aggregates-artifactual-bug-superseded.json", - "contentHash": "5bd40c8d57013b6c12525a658ba7a677effa459a48166b588c2ec717c5f7b78a", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 65, - "hasStructuralAnalysis": true - }, - "benchmarks/results/gepa-faza1/null-baseline/checkpoint-a-report-artifactual-bug-superseded.md": { - "filePath": "benchmarks/results/gepa-faza1/null-baseline/checkpoint-a-report-artifactual-bug-superseded.md", - "contentHash": "e520a6099f8cd2d57e3029510213ba22bf2f1ea1e823d0836814fd832541a114", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 228, - "hasStructuralAnalysis": true - }, - "benchmarks/results/gepa-faza1/null-baseline/checkpoint-a-report.md": { - "filePath": "benchmarks/results/gepa-faza1/null-baseline/checkpoint-a-report.md", - "contentHash": "60035e1245a032d22bee29d8cc5b2e7ce1f1bf8c00ca05e057561e437f9270f8", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 228, - "hasStructuralAnalysis": true - }, - "benchmarks/results/gepa-faza1/null-baseline/checkpoint-a-v2-aggregates.json": { - "filePath": "benchmarks/results/gepa-faza1/null-baseline/checkpoint-a-v2-aggregates.json", - "contentHash": "bd3b8e433cf7cba8eec227356397fc72b5c3f6124f0055d4dec67d7c179d98f6", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 102, - "hasStructuralAnalysis": true - }, - "benchmarks/results/gepa-faza1/null-baseline/null-baseline-eval-artifactual-bug-superseded.jsonl": { - "filePath": "benchmarks/results/gepa-faza1/null-baseline/null-baseline-eval-artifactual-bug-superseded.jsonl", - "contentHash": "b149a660a0e0508d9038049dcd58bbd3cb77963580c8ae78ebc9779e148611bc", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 41, - "hasStructuralAnalysis": false - }, - "benchmarks/results/gepa-faza1/null-baseline/null-baseline-eval.jsonl": { - "filePath": "benchmarks/results/gepa-faza1/null-baseline/null-baseline-eval.jsonl", - "contentHash": "5177fdaec4ccbf90134ea0b9b9454616eeb2c1a33fef7c2ea0b92a66c2e71acc", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 41, - "hasStructuralAnalysis": false - }, - "benchmarks/results/gepa-faza1/null-baseline/null-baseline-summary-artifactual-bug-superseded.json": { - "filePath": "benchmarks/results/gepa-faza1/null-baseline/null-baseline-summary-artifactual-bug-superseded.json", - "contentHash": "e30ec43b6f88951623c71193416ab8b662aafe1d85d28f92c0ab3a17f43ba740", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 86, - "hasStructuralAnalysis": true - }, - "benchmarks/results/gepa-faza1/null-baseline/null-baseline-summary.json": { - "filePath": "benchmarks/results/gepa-faza1/null-baseline/null-baseline-summary.json", - "contentHash": "495e4c0c9b008e2ddface76ae8663a09570fcd91d75d4a16057055c97a7585ba", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 86, - "hasStructuralAnalysis": true - }, - "benchmarks/results/manifest-v4-litellm-config-scope-audit.md": { - "filePath": "benchmarks/results/manifest-v4-litellm-config-scope-audit.md", - "contentHash": "4abb3b2ee65068ce25fd38972665c5113bfe21a69125f4c3ed27091c3fa87538", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 17, - "hasStructuralAnalysis": true - }, - "benchmarks/results/manifest-v4-lock-semantics-clarification.md": { - "filePath": "benchmarks/results/manifest-v4-lock-semantics-clarification.md", - "contentHash": "f410b4f5e6c97c405cd39c51c385dfca9079a6f80a0a296a904309d5ab239d83", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 46, - "hasStructuralAnalysis": true - }, - "benchmarks/results/manifest-v4-preregistration.md": { - "filePath": "benchmarks/results/manifest-v4-preregistration.md", - "contentHash": "ce35b7eb159a93108cf1c5737e6d4417d6f103c56c41336a0d6a9eaaa743525f", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 412, - "hasStructuralAnalysis": true - }, - "benchmarks/results/manifest-v4-preregistration.yaml": { - "filePath": "benchmarks/results/manifest-v4-preregistration.yaml", - "contentHash": "b626322dc7fae3caee5543511d93d68af0f34b0b33d0b577ee5102318d3401d3", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 458, - "hasStructuralAnalysis": true - }, - "benchmarks/results/manifest-v4-runner-early-exit-rca.md": { - "filePath": "benchmarks/results/manifest-v4-runner-early-exit-rca.md", - "contentHash": "1d53c9d2d54e715812c3f2e3586876f595b123700ddfdc53e22124b2f38535ac", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 42, - "hasStructuralAnalysis": true - }, - "benchmarks/results/manifest-v5-rpd-feasibility-check.md": { - "filePath": "benchmarks/results/manifest-v5-rpd-feasibility-check.md", - "contentHash": "985b035b4e755ab4f30c11c00f047eea7bbd1c343c8ffa11045b4850fde2e090", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 34, - "hasStructuralAnalysis": true - }, - "benchmarks/results/pilot-2026-04-26/invalidated/pilot-task-1-C.invalidated-2026-04-26T01-33-08-392Z.jsonl": { - "filePath": "benchmarks/results/pilot-2026-04-26/invalidated/pilot-task-1-C.invalidated-2026-04-26T01-33-08-392Z.jsonl", - "contentHash": "b25c28811b60606a2354794a7d583bc88ca127bcf968001658c6c1f1dbeb353b", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 2, - "hasStructuralAnalysis": false - }, - "benchmarks/results/pilot-2026-04-26/invalidated/pilot-task-1-D.invalidated-2026-04-26T01-35-05-441Z.jsonl": { - "filePath": "benchmarks/results/pilot-2026-04-26/invalidated/pilot-task-1-D.invalidated-2026-04-26T01-35-05-441Z.jsonl", - "contentHash": "084bf2657123b861ed9b7c7ec1a5b729ee98140ee52652b1f7ee778930390c90", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 2, - "hasStructuralAnalysis": false - }, - "benchmarks/results/pilot-2026-04-26/pilot-summary.json": { - "filePath": "benchmarks/results/pilot-2026-04-26/pilot-summary.json", - "contentHash": "d33de91d53c3067f99be05171a435decb705c1f627239e555b3d13c819a0a8f9", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 54, - "hasStructuralAnalysis": true - }, - "benchmarks/results/pilot-2026-04-26/pilot-task-1-A.jsonl": { - "filePath": "benchmarks/results/pilot-2026-04-26/pilot-task-1-A.jsonl", - "contentHash": "a701b2f0c9e53dcfacb94ee67f180ff5375a7ecb19d514a5975dcb8ac59a3a97", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 2, - "hasStructuralAnalysis": false - }, - "benchmarks/results/pilot-2026-04-26/pilot-task-1-B.jsonl": { - "filePath": "benchmarks/results/pilot-2026-04-26/pilot-task-1-B.jsonl", - "contentHash": "a17e1a3a66739cc3bb762e0b9664ef00e8e7277b34b6317e563b41b5be34adcb", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 2, - "hasStructuralAnalysis": false - }, - "benchmarks/results/pilot-2026-04-26/pilot-task-1-C.jsonl": { - "filePath": "benchmarks/results/pilot-2026-04-26/pilot-task-1-C.jsonl", - "contentHash": "011f82d26bda250284f29dcceb0c0b15c8184dbf7e674257dba6a8d02e10df5a", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 2, - "hasStructuralAnalysis": false - }, - "benchmarks/results/pilot-2026-04-26/pilot-task-1-D.jsonl": { - "filePath": "benchmarks/results/pilot-2026-04-26/pilot-task-1-D.jsonl", - "contentHash": "c4f994e5d5914ac98aefc8d1ce221df6514f7fe19d7a4341c7f32b509be48232", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 2, - "hasStructuralAnalysis": false - }, - "benchmarks/results/pilot-2026-04-26/pilot-task-2-A.jsonl": { - "filePath": "benchmarks/results/pilot-2026-04-26/pilot-task-2-A.jsonl", - "contentHash": "9f62df06bcdaffa12fc600a1b12a2a79332bfdd4a308a45dcefe739e21a9654d", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 2, - "hasStructuralAnalysis": false - }, - "benchmarks/results/pilot-2026-04-26/pilot-task-2-B.jsonl": { - "filePath": "benchmarks/results/pilot-2026-04-26/pilot-task-2-B.jsonl", - "contentHash": "48c17ba5e0d63e440970c79ab9bbb0082a01742da6620789890b8db9c9d6ba9f", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 2, - "hasStructuralAnalysis": false - }, - "benchmarks/results/pilot-2026-04-26/pilot-task-2-C.jsonl": { - "filePath": "benchmarks/results/pilot-2026-04-26/pilot-task-2-C.jsonl", - "contentHash": "895f6adc52f8e84f43b0478d5b56308ca3bcbd782171c4ada0bacf05fb25af5a", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 2, - "hasStructuralAnalysis": false - }, - "benchmarks/results/pilot-2026-04-26/pilot-task-2-D.jsonl": { - "filePath": "benchmarks/results/pilot-2026-04-26/pilot-task-2-D.jsonl", - "contentHash": "bfe34466a45687b3273eeae313110bbd503f9b71adf506cda23b9fc89f27bed6", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 2, - "hasStructuralAnalysis": false - }, - "benchmarks/results/pilot-2026-04-26/pilot-task-3-A.jsonl": { - "filePath": "benchmarks/results/pilot-2026-04-26/pilot-task-3-A.jsonl", - "contentHash": "2179819bdc1496dacc7e1cdaa279fb42be32578be80c2d18b8661cec2f02a177", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 2, - "hasStructuralAnalysis": false - }, - "benchmarks/results/pilot-2026-04-26/pilot-task-3-B.jsonl": { - "filePath": "benchmarks/results/pilot-2026-04-26/pilot-task-3-B.jsonl", - "contentHash": "f802ac5b9db9a7f6d379fb0ae5b69efb324454f2da8d1337b79261b9c4462eb5", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 2, - "hasStructuralAnalysis": false - }, - "benchmarks/results/pilot-2026-04-26/pilot-task-3-C.jsonl": { - "filePath": "benchmarks/results/pilot-2026-04-26/pilot-task-3-C.jsonl", - "contentHash": "3e92097a6821af6089156375cb9ec4257cdf95ef594a247ae0783edcabe23a76", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 2, - "hasStructuralAnalysis": false - }, - "benchmarks/results/pilot-2026-04-26/pilot-task-3-D.jsonl": { - "filePath": "benchmarks/results/pilot-2026-04-26/pilot-task-3-D.jsonl", - "contentHash": "109114633721da4a6f243c277ee7374f25440dc414d31015d36dfd86212570f4", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 2, - "hasStructuralAnalysis": false - }, - "benchmarks/results/pilot-2026-04-26/prompts-archive/task-1-cell-A-prompt.md": { - "filePath": "benchmarks/results/pilot-2026-04-26/prompts-archive/task-1-cell-A-prompt.md", - "contentHash": "3e3225097d8d2299b4e325be60229e805af1fbbabdd13b4c4d49bc597fe2ca73", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 187, - "hasStructuralAnalysis": true - }, - "benchmarks/results/pilot-2026-04-26/prompts-archive/task-1-cell-B-trace.md": { - "filePath": "benchmarks/results/pilot-2026-04-26/prompts-archive/task-1-cell-B-trace.md", - "contentHash": "f7396cc04900abd26db99fa55dcb83419d1a151dd6be4202337362efa5c46b5d", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 104, - "hasStructuralAnalysis": true - }, - "benchmarks/results/pilot-2026-04-26/prompts-archive/task-1-cell-C-prompt.md": { - "filePath": "benchmarks/results/pilot-2026-04-26/prompts-archive/task-1-cell-C-prompt.md", - "contentHash": "3e3225097d8d2299b4e325be60229e805af1fbbabdd13b4c4d49bc597fe2ca73", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 187, - "hasStructuralAnalysis": true - }, - "benchmarks/results/pilot-2026-04-26/prompts-archive/task-1-cell-D-trace.md": { - "filePath": "benchmarks/results/pilot-2026-04-26/prompts-archive/task-1-cell-D-trace.md", - "contentHash": "dbca3028e3899bb9cc414697c29e1cb54d9304d737d100a42e20263f8a932880", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 76, - "hasStructuralAnalysis": true - }, - "benchmarks/results/pilot-2026-04-26/prompts-archive/task-2-cell-A-prompt.md": { - "filePath": "benchmarks/results/pilot-2026-04-26/prompts-archive/task-2-cell-A-prompt.md", - "contentHash": "cc4e568fae687629fd57e12834229ce77940ae3b16aa7e88b381f30a7e15c8c1", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 272, - "hasStructuralAnalysis": true - }, - "benchmarks/results/pilot-2026-04-26/prompts-archive/task-2-cell-B-trace.md": { - "filePath": "benchmarks/results/pilot-2026-04-26/prompts-archive/task-2-cell-B-trace.md", - "contentHash": "96136f6f1410bec9f7cafb2dae7a8a4c726850adc005c0b5e16314ecf726a986", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 99, - "hasStructuralAnalysis": true - }, - "benchmarks/results/pilot-2026-04-26/prompts-archive/task-2-cell-C-prompt.md": { - "filePath": "benchmarks/results/pilot-2026-04-26/prompts-archive/task-2-cell-C-prompt.md", - "contentHash": "cc4e568fae687629fd57e12834229ce77940ae3b16aa7e88b381f30a7e15c8c1", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 272, - "hasStructuralAnalysis": true - }, - "benchmarks/results/pilot-2026-04-26/prompts-archive/task-2-cell-D-trace.md": { - "filePath": "benchmarks/results/pilot-2026-04-26/prompts-archive/task-2-cell-D-trace.md", - "contentHash": "a7e5a3174b67977b73cd86e626452e5ed3c5af049f8b2f5f789af413d9d9b379", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 77, - "hasStructuralAnalysis": true - }, - "benchmarks/results/pilot-2026-04-26/prompts-archive/task-3-cell-A-prompt.md": { - "filePath": "benchmarks/results/pilot-2026-04-26/prompts-archive/task-3-cell-A-prompt.md", - "contentHash": "14d26bba09b0cd83d2bc4b1d097dce8966bc46a7de114b06adb89d1072294be3", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 152, - "hasStructuralAnalysis": true - }, - "benchmarks/results/pilot-2026-04-26/prompts-archive/task-3-cell-B-trace.md": { - "filePath": "benchmarks/results/pilot-2026-04-26/prompts-archive/task-3-cell-B-trace.md", - "contentHash": "473ec00837c4c65e1a69b8890cdbd325505680d7f2f920d759bfe3af83362e27", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 150, - "hasStructuralAnalysis": true - }, - "benchmarks/results/pilot-2026-04-26/prompts-archive/task-3-cell-C-prompt.md": { - "filePath": "benchmarks/results/pilot-2026-04-26/prompts-archive/task-3-cell-C-prompt.md", - "contentHash": "14d26bba09b0cd83d2bc4b1d097dce8966bc46a7de114b06adb89d1072294be3", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 152, - "hasStructuralAnalysis": true - }, - "benchmarks/results/pilot-2026-04-26/prompts-archive/task-3-cell-D-trace.md": { - "filePath": "benchmarks/results/pilot-2026-04-26/prompts-archive/task-3-cell-D-trace.md", - "contentHash": "8717a48be609bdc32fb40d52efa5d6c915df953619839500b19957b684b1372b", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 127, - "hasStructuralAnalysis": true - }, - "benchmarks/results/stage3-gate-p-plus-probe-log.jsonl": { - "filePath": "benchmarks/results/stage3-gate-p-plus-probe-log.jsonl", - "contentHash": "8b6503aaeed6b2ab799c7b31b989e38c93f226f7ac4d505c81726637f207c665", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 51, - "hasStructuralAnalysis": false - }, - "benchmarks/results/stage3-gate-p-plus-probe-summary.md": { - "filePath": "benchmarks/results/stage3-gate-p-plus-probe-summary.md", - "contentHash": "ed959f1204dde26afe45da8832783805d767e9f11b57fdc1401ff356b72f51e7", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 16, - "hasStructuralAnalysis": true - }, - "benchmarks/results/stage3-gate-p-plus-probe-v2-log.jsonl": { - "filePath": "benchmarks/results/stage3-gate-p-plus-probe-v2-log.jsonl", - "contentHash": "429ec2ee61f0e96a08da3731254daf1823045c12a6c9693e3f946a2bceb200ea", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 31, - "hasStructuralAnalysis": false - }, - "benchmarks/results/stage3-gate-p-plus-probe-v2-summary.md": { - "filePath": "benchmarks/results/stage3-gate-p-plus-probe-v2-summary.md", - "contentHash": "c48efee108cf58a395d66d38b2cecb3b5a532b8ff8b496d5e07f2c164125de93", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 8, - "hasStructuralAnalysis": true - }, - "benchmarks/results/stage3-n400-v6-final-5cell-summary.md": { - "filePath": "benchmarks/results/stage3-n400-v6-final-5cell-summary.md", - "contentHash": "92320dd7dda43fe4723a49e0f8caaeeb54d6ded05b6df2fa799479d8439f42c3", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 77, - "hasStructuralAnalysis": true - }, - "benchmarks/results/stage3-n400-v6-final-analysis.md": { - "filePath": "benchmarks/results/stage3-n400-v6-final-analysis.md", - "contentHash": "6160688886af2c712e1a58d8771b1e11dc4a55ac3e13d2f45059def9d86e2c76", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 160, - "hasStructuralAnalysis": true - }, - "benchmarks/results/stage3-n400-v6-final-memo.md": { - "filePath": "benchmarks/results/stage3-n400-v6-final-memo.md", - "contentHash": "d10fdc0e352c85617c3bc530ec92543dd835105c2bf167c869fe73c3f4ec6108", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 47, - "hasStructuralAnalysis": true - }, - "benchmarks/results/stage3-n400-v6-followup-typeerror-cluster.md": { - "filePath": "benchmarks/results/stage3-n400-v6-followup-typeerror-cluster.md", - "contentHash": "abb1846acd84ebb7e62e47edfeb61581de0e1229843b87ebd914fff3f17a1deb", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 44, - "hasStructuralAnalysis": true - }, - "benchmarks/results/v6-self-judge-rebench/apples-to-apples-memo.md": { - "filePath": "benchmarks/results/v6-self-judge-rebench/apples-to-apples-memo.md", - "contentHash": "7edac94b5d4c2aadeb2d9ecb606191d8d879dd765418b4c76e0d380aba33f206", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 41, - "hasStructuralAnalysis": true - }, - "benchmarks/results/v6-self-judge-rebench/qwen-self-judge-results.jsonl": { - "filePath": "benchmarks/results/v6-self-judge-rebench/qwen-self-judge-results.jsonl", - "contentHash": "9f9755ade3a5dd5ce37cfabd5a90a00459129767f305b7d0a47aacc4ca34b716", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 2001, - "hasStructuralAnalysis": false - }, - "benchmarks/results/v6-self-judge-rebench/self-judge-vs-trio-comparison.md": { - "filePath": "benchmarks/results/v6-self-judge-rebench/self-judge-vs-trio-comparison.md", - "contentHash": "46808d2145250ae52dee39e60de1b414dc665b637c3bb073ac599a735163f411", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 79, - "hasStructuralAnalysis": true - }, - "benchmarks/scripts/migrate-cell-names.ts": { - "filePath": "benchmarks/scripts/migrate-cell-names.ts", - "contentHash": "ed24660a8373c8804b9a1351d30bc5c98de0e2a4262904c23ad9a44c917633d8", - "functions": [ - { - "name": "walkJsonlFiles", - "params": [ - "root" - ], - "returnType": "string[]", - "exported": false, - "lineCount": 20 - }, - { - "name": "copyTree", - "params": [ - "src", - "dest" - ], - "returnType": "void", - "exported": false, - "lineCount": 21 - }, - { - "name": "migrateFile", - "params": [ - "filePath", - "stats" - ], - "returnType": "{ rewritten: boolean; rowsTouched: number }", - "exported": false, - "lineCount": 50 - }, - { - "name": "parseCliArgs", - "params": [ - "argv" - ], - "returnType": "{ path: string; dryRun: boolean }", - "exported": false, - "lineCount": 22 - }, - { - "name": "main", - "params": [], - "returnType": "void", - "exported": false, - "lineCount": 73 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:url", - "specifiers": [ - "url" - ] - } - ], - "exports": [], - "totalLines": 246, - "hasStructuralAnalysis": true - }, - "CLAUDE.md": { - "filePath": "CLAUDE.md", - "contentHash": "f712e5cffde055fa2abffc5f5ee64f5360e70fcd1f2a4c156c7fc74633adde23", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 632, - "hasStructuralAnalysis": true - }, - "decisions/2026-04-26-agent-fix-sprint-plan.md": { - "filePath": "decisions/2026-04-26-agent-fix-sprint-plan.md", - "contentHash": "de710a6dc53fd733d6e2c38efb154713c932f2da9106fffe46fea983d71f9325", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 238, - "hasStructuralAnalysis": true - }, - "decisions/2026-04-26-pilot-verdict-FAIL.md": { - "filePath": "decisions/2026-04-26-pilot-verdict-FAIL.md", - "contentHash": "af85777b945b3dc191139134ac6ec0a51c606fe72c50d424cc171af75f05d933", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 176, - "hasStructuralAnalysis": true - }, - "docker-compose.production.yml": { - "filePath": "docker-compose.production.yml", - "contentHash": "d176867dce4a3927b24c5c40f02811813147654b1bfecfbb7e2514206e6361c9", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 118, - "hasStructuralAnalysis": true - }, - "docker-compose.yml": { - "filePath": "docker-compose.yml", - "contentHash": "80c9730451dc8b97d6c1dd7ac820bb7698bb3de688dd7bea0765b9509cecfcfb", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 94, - "hasStructuralAnalysis": true - }, - "Dockerfile": { - "filePath": "Dockerfile", - "contentHash": "155ecd54d1ebd4ea60e7937b8f0349d64fa299281ca7994163472d09b9e49677", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 99, - "hasStructuralAnalysis": true - }, - "docs/.evolution-hypothesis-2026-04-14T08-04-57/01-evolved-prompt.json": { - "filePath": "docs/.evolution-hypothesis-2026-04-14T08-04-57/01-evolved-prompt.json", - "contentHash": "f18ffd1831364fa2ddda66edcbfcbe8a44f82e42c71970d900c7f9f10037b94b", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 20, - "hasStructuralAnalysis": true - }, - "docs/.evolution-hypothesis-2026-04-14T08-04-57/02a-arm-a-outputs.json": { - "filePath": "docs/.evolution-hypothesis-2026-04-14T08-04-57/02a-arm-a-outputs.json", - "contentHash": "7029ebc479703d954b94905c54e20d817d1cde1e01c11d028e184d4c59246cfc", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 42, - "hasStructuralAnalysis": true - }, - "docs/.evolution-hypothesis-2026-04-14T08-04-57/02b-arm-b-outputs.json": { - "filePath": "docs/.evolution-hypothesis-2026-04-14T08-04-57/02b-arm-b-outputs.json", - "contentHash": "115cde8fecc32c16911e65e594211cb338be628eba31d3e49d8a403b2db1c38c", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 42, - "hasStructuralAnalysis": true - }, - "docs/.evolution-hypothesis-2026-04-14T08-04-57/02c-arm-c-outputs.json": { - "filePath": "docs/.evolution-hypothesis-2026-04-14T08-04-57/02c-arm-c-outputs.json", - "contentHash": "cd462210a7575c4a3038c33065025a89fa1f770c021d6256e11c9b92d5b82815", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 42, - "hasStructuralAnalysis": true - }, - "docs/.evolution-hypothesis-2026-04-14T08-04-57/03-judge-scores.json": { - "filePath": "docs/.evolution-hypothesis-2026-04-14T08-04-57/03-judge-scores.json", - "contentHash": "de02ea96316ed74842bf22cec8897acf1ef823917ccd3a42f9c3d7224822a9ed", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 1114, - "hasStructuralAnalysis": true - }, - "docs/addiction-features/01-memory-streak.md": { - "filePath": "docs/addiction-features/01-memory-streak.md", - "contentHash": "c4e254e29c6f457462114984621e03c9113c92636cb7a07a5080b90346116525", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 93, - "hasStructuralAnalysis": true - }, - "docs/addiction-features/02-daily-brief.md": { - "filePath": "docs/addiction-features/02-daily-brief.md", - "contentHash": "675a965f46f39a7d43aca94a5ee30cac99f71bb7245c633f997ab4dbfff050b4", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 119, - "hasStructuralAnalysis": true - }, - "docs/addiction-features/03-continuity-banner.md": { - "filePath": "docs/addiction-features/03-continuity-banner.md", - "contentHash": "c1e9670b11d3613b991ac733a9d78e7e30b201c77c033faa0d27f7d4f5451bf0", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 88, - "hasStructuralAnalysis": true - }, - "docs/addiction-features/04-weekly-wins-digest.md": { - "filePath": "docs/addiction-features/04-weekly-wins-digest.md", - "contentHash": "4d71c22c8b65165c2f3ca1ec01873a4e695b8d5d0f75632f151aba82d15a539d", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 127, - "hasStructuralAnalysis": true - }, - "docs/addiction-features/05-milestone-cards.md": { - "filePath": "docs/addiction-features/05-milestone-cards.md", - "contentHash": "cbac43ee9577e8c605911b14e345043d5ca397b945789316d9a8c2979579cc46", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 110, - "hasStructuralAnalysis": true - }, - "docs/addiction-features/06-tour-replay.md": { - "filePath": "docs/addiction-features/06-tour-replay.md", - "contentHash": "eee3f49d7935860918624c1c110df902f63c3f0fb8b0e0d6ecfe9d47fb858268", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 81, - "hasStructuralAnalysis": true - }, - "docs/addiction-features/07-pending-imports-reminder.md": { - "filePath": "docs/addiction-features/07-pending-imports-reminder.md", - "contentHash": "6c4803c1ae7a7540e98de738205d89c168e70b8d923d42996a883605c0594882", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 94, - "hasStructuralAnalysis": true - }, - "docs/addiction-features/README.md": { - "filePath": "docs/addiction-features/README.md", - "contentHash": "d0a810063f6333b760198a690408c7d7189f96f25458888d25761c71f8f37560", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 123, - "hasStructuralAnalysis": true - }, - "docs/addictiveness-audit-2026-05-28/BASELINE.md": { - "filePath": "docs/addictiveness-audit-2026-05-28/BASELINE.md", - "contentHash": "bdfdbcf14188fde7606dfebc7251b7316ff8325e18eefcf6ed6852230c69a5d1", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 92, - "hasStructuralAnalysis": true - }, - "docs/addictiveness-audit-2026-05-28/BENCHMARK-claude-code-nc.md": { - "filePath": "docs/addictiveness-audit-2026-05-28/BENCHMARK-claude-code-nc.md", - "contentHash": "e8471dff98021bab91934c8800b5180eaa497137a728cb3ebf1d3d7b2d3dc2e0", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 69, - "hasStructuralAnalysis": true - }, - "docs/addictiveness-audit-2026-05-28/BENCHMARK-cowork.md": { - "filePath": "docs/addictiveness-audit-2026-05-28/BENCHMARK-cowork.md", - "contentHash": "a79c5b0a632fea81b499750f3dcd373f754aeb4c4e789c39d2ba26cc5d33d07d", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 52, - "hasStructuralAnalysis": true - }, - "docs/addictiveness-audit-2026-05-28/BENCHMARK-hermes.md": { - "filePath": "docs/addictiveness-audit-2026-05-28/BENCHMARK-hermes.md", - "contentHash": "5b52505ce2564351af38a7b5b8f622b147c67296e5fe8ea901f23c4701941dc8", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 78, - "hasStructuralAnalysis": true - }, - "docs/addictiveness-audit-2026-05-28/BENCHMARK-openclaw.md": { - "filePath": "docs/addictiveness-audit-2026-05-28/BENCHMARK-openclaw.md", - "contentHash": "45b61621c7a7f39f654fc3dbc4c390eaae173b53fbae35f9bc96af70c4306336", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 64, - "hasStructuralAnalysis": true - }, - "docs/addictiveness-audit-2026-05-28/FEATURE-REQUESTS.md": { - "filePath": "docs/addictiveness-audit-2026-05-28/FEATURE-REQUESTS.md", - "contentHash": "21c2cd38c5bd323beed012435d8717a18ca3f45bb3a66dc9796d4c50095d5c13", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 109, - "hasStructuralAnalysis": true - }, - "docs/addictiveness-audit-2026-05-28/ITER-1-RESULTS.md": { - "filePath": "docs/addictiveness-audit-2026-05-28/ITER-1-RESULTS.md", - "contentHash": "02998e09c17f0b07eb67315523a69815e29dd6f6735934bc80ff5fb6387ed974", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 46, - "hasStructuralAnalysis": true - }, - "docs/addictiveness-audit-2026-05-28/ITER-2-RESULTS.md": { - "filePath": "docs/addictiveness-audit-2026-05-28/ITER-2-RESULTS.md", - "contentHash": "48299e687ce8bb134af629cb642bc4caa235444ca876c65aed9af00ade1a7540", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 52, - "hasStructuralAnalysis": true - }, - "docs/addictiveness-audit-2026-05-28/ITER-3-RESULTS.md": { - "filePath": "docs/addictiveness-audit-2026-05-28/ITER-3-RESULTS.md", - "contentHash": "8c22f1154f6c6e3bf051b33392ef5fcbae331d006a25fe6d288ef1730dad93fd", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 54, - "hasStructuralAnalysis": true - }, - "docs/addictiveness-audit-2026-05-28/ITER-4-RESULTS.md": { - "filePath": "docs/addictiveness-audit-2026-05-28/ITER-4-RESULTS.md", - "contentHash": "e9f45b5513b23f2360951aec903eb1d1ed057b60009d5ef566daa78898f9a1a8", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 53, - "hasStructuralAnalysis": true - }, - "docs/addictiveness-audit-2026-05-28/ITER-5-RESULTS.md": { - "filePath": "docs/addictiveness-audit-2026-05-28/ITER-5-RESULTS.md", - "contentHash": "cd7a0292646de492f1cca85c9808acd389216d9cb3364b950609a077c87f05ee", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 62, - "hasStructuralAnalysis": true - }, - "docs/addictiveness-audit-2026-05-28/ITER-6-RESULTS.md": { - "filePath": "docs/addictiveness-audit-2026-05-28/ITER-6-RESULTS.md", - "contentHash": "5380d99f0e92895b81f9434a6e7482675fd97c9d911a4170b26f0339526594ab", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 69, - "hasStructuralAnalysis": true - }, - "docs/addictiveness-audit-2026-05-28/ITER-7-RESULTS.md": { - "filePath": "docs/addictiveness-audit-2026-05-28/ITER-7-RESULTS.md", - "contentHash": "903b0dea00928c50b0f05f0c93d207f828282511ea78475375461aa3c4907312", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 77, - "hasStructuralAnalysis": true - }, - "docs/addictiveness-audit-2026-05-28/PERSONAS.md": { - "filePath": "docs/addictiveness-audit-2026-05-28/PERSONAS.md", - "contentHash": "0b9e6b29ee34536993b2fd828863383f1f9ee03a6074bfa6d369e6dc7fba2aa8", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 122, - "hasStructuralAnalysis": true - }, - "docs/addictiveness-audit-2026-05-28/PLAN.md": { - "filePath": "docs/addictiveness-audit-2026-05-28/PLAN.md", - "contentHash": "7aa631b6d92c52bcf88bc38a0aed2d36c96c32a27ffeeeab14c044cd5b2b42b4", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 28, - "hasStructuralAnalysis": true - }, - "docs/addictiveness-audit-2026-05-28/REDUNDANCY-AUDIT.md": { - "filePath": "docs/addictiveness-audit-2026-05-28/REDUNDANCY-AUDIT.md", - "contentHash": "3c1600a1287767c07c161e726284765f9f005320f2470ccfb132e52cc76568c5", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 55, - "hasStructuralAnalysis": true - }, - "docs/addictiveness-audit-2026-05-28/RUBRIC.md": { - "filePath": "docs/addictiveness-audit-2026-05-28/RUBRIC.md", - "contentHash": "06d7e4b102b22253c8c2333791edc40d0c355a3d4519e5d16a9aa9b66b17271e", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 49, - "hasStructuralAnalysis": true - }, - "docs/addictiveness-audit-2026-05-28/SURFACES.md": { - "filePath": "docs/addictiveness-audit-2026-05-28/SURFACES.md", - "contentHash": "77b9f08d1f3e365fe1e3d35c3d7af5c4e5b8f475f6cf8ddf808f43a712731d9e", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 103, - "hasStructuralAnalysis": true - }, - "docs/AGENT-AUDIT-RESULTS-2026-04-16.json": { - "filePath": "docs/AGENT-AUDIT-RESULTS-2026-04-16.json", - "contentHash": "913d030287921bed3dae41033613165b43afccc2dda533e6b363f4683113a8f2", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 272, - "hasStructuralAnalysis": true - }, - "docs/AGENT-BEHAVIOR-AUDIT-2026-04-16.md": { - "filePath": "docs/AGENT-BEHAVIOR-AUDIT-2026-04-16.md", - "contentHash": "84e8f73eced0703dd87aeca469c3ab785bb7fba4f1b509a545a991be6eedd918", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 55, - "hasStructuralAnalysis": true - }, - "docs/AI-ACT-AUDIT-2026-04-10.json": { - "filePath": "docs/AI-ACT-AUDIT-2026-04-10.json", - "contentHash": "dea1477861f02b14283fe645bd036d9fd8a6a4edc29f4c5ce5ef3619719a9e42", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 94, - "hasStructuralAnalysis": true - }, - "docs/AI-ACT-AUDIT-2026-04-10.md": { - "filePath": "docs/AI-ACT-AUDIT-2026-04-10.md", - "contentHash": "3814e13ba10a9f8fe576e3f52a8a7c2dcdaaac577db053dc28ce1bee7f7dee49", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 144, - "hasStructuralAnalysis": true - }, - "docs/AI-ACT-COMPLIANCE-PROOF-2026-04-16.md": { - "filePath": "docs/AI-ACT-COMPLIANCE-PROOF-2026-04-16.md", - "contentHash": "e8a2128bbcb4e1d1393575f212f4e03e250ed4910521b2590c7d92d087bef4ed", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 700, - "hasStructuralAnalysis": true - }, - "docs/ARCHITECTURE.md": { - "filePath": "docs/ARCHITECTURE.md", - "contentHash": "a03b19c3b102ea013b1abfd800cba6baac311c1d29aeae3570c22c5b20a760a2", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 246, - "hasStructuralAnalysis": true - }, - "docs/AUDIT-PERSONAL-MIND-2026-04-10.md": { - "filePath": "docs/AUDIT-PERSONAL-MIND-2026-04-10.md", - "contentHash": "37716a83f0f4d4ab58fb144dfaf7af10a38f3fb8699c6a7a6a3394bf68f7e649", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 277, - "hasStructuralAnalysis": true - }, - "docs/audits/2026-05-29-prod-readiness/REPORT.md": { - "filePath": "docs/audits/2026-05-29-prod-readiness/REPORT.md", - "contentHash": "5e43c6666a25eb8a55470d9e2cdef034e1d70617325dff6567e56bfef4a9a416", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 163, - "hasStructuralAnalysis": true - }, - "docs/audits/2026-06-01-full-repo-verification-sweep.md": { - "filePath": "docs/audits/2026-06-01-full-repo-verification-sweep.md", - "contentHash": "6ff3f649ffab16151560bbc16f541df9175f163a5a4f4a4c69acb69f893d084a", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 76, - "hasStructuralAnalysis": true - }, - "docs/audits/2026-06-01-memory-overclaim-investigation.md": { - "filePath": "docs/audits/2026-06-01-memory-overclaim-investigation.md", - "contentHash": "b81c4d26fcfded9c7a4ac4045a2a908d2fbbf8f9a37d5b88756db65026b295c1", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 89, - "hasStructuralAnalysis": true - }, - "docs/audits/2026-06-01-production-readiness-assessment.md": { - "filePath": "docs/audits/2026-06-01-production-readiness-assessment.md", - "contentHash": "36b03295363ca637cfa99b1464235d23d2fb22344b85340001214b7cd38345a2", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 118, - "hasStructuralAnalysis": true - }, - "docs/audits/2026-06-01-vision-e2e-harness-design.md": { - "filePath": "docs/audits/2026-06-01-vision-e2e-harness-design.md", - "contentHash": "06ab0fa43ea21cc8208875683475ff63ab9fed567eac315aba0650e9e357b32d", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 146, - "hasStructuralAnalysis": true - }, - "docs/backend-map/00-MENTAL-MODEL.md": { - "filePath": "docs/backend-map/00-MENTAL-MODEL.md", - "contentHash": "8d77f560d5d3cdc3733a25933b72e6b86f47520d446a8f69b058345da13b379c", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 219, - "hasStructuralAnalysis": true - }, - "docs/backend-map/07-FRONTEND-REBUILD-GUIDE.md": { - "filePath": "docs/backend-map/07-FRONTEND-REBUILD-GUIDE.md", - "contentHash": "e0262b935618c5542635213492758b60dc4d143e6abbf54aa64c2cfc89e796a0", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 448, - "hasStructuralAnalysis": true - }, - "docs/backend-map/AUDIT.md": { - "filePath": "docs/backend-map/AUDIT.md", - "contentHash": "6303eb1903873ea9bd3f2842785f185aec03e2c766078e012c3bf2682d1d2256", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 145, - "hasStructuralAnalysis": true - }, - "docs/backend-map/DIAGRAMS/01-system-architecture.md": { - "filePath": "docs/backend-map/DIAGRAMS/01-system-architecture.md", - "contentHash": "4bd1113462a04205eb006835e682891eb6e45e226fdf243ce7a8ffa13a4b4877", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 148, - "hasStructuralAnalysis": true - }, - "docs/backend-map/DIAGRAMS/02-master-er.md": { - "filePath": "docs/backend-map/DIAGRAMS/02-master-er.md", - "contentHash": "cc776684af531d4715d8eaa7e8683c4e100c191dbeec91b086ac35200745aece", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 467, - "hasStructuralAnalysis": true - }, - "docs/backend-map/DIAGRAMS/03-chat-turn-sequence.md": { - "filePath": "docs/backend-map/DIAGRAMS/03-chat-turn-sequence.md", - "contentHash": "d252dd02948d5269cf51965c29fda6ebc5741e1036a77eea88711363030cd730", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 81, - "hasStructuralAnalysis": true - }, - "docs/backend-map/DIAGRAMS/04-feature-api-map.md": { - "filePath": "docs/backend-map/DIAGRAMS/04-feature-api-map.md", - "contentHash": "69a7e8a4f814128698879e138d00dea1ff924fdcbfbb96713dc12d85dde60a7e", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 219, - "hasStructuralAnalysis": true - }, - "docs/backend-map/DIAGRAMS/05-tier-gating.md": { - "filePath": "docs/backend-map/DIAGRAMS/05-tier-gating.md", - "contentHash": "7f858c4dfa146c4c68e379b73b67eba5fbd79c7953e37f584339e7b16d80fa1f", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 160, - "hasStructuralAnalysis": true - }, - "docs/backend-map/DIAGRAMS/06-api-domains.md": { - "filePath": "docs/backend-map/DIAGRAMS/06-api-domains.md", - "contentHash": "5597b9be1111e47e53421d4e33c52dac3267dd0218932aae5445e1bbb7a1143f", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 111, - "hasStructuralAnalysis": true - }, - "docs/backend-map/README.md": { - "filePath": "docs/backend-map/README.md", - "contentHash": "366e5d6fd7c263e1148e332763bab2bd60ccc7c1ea5b78bc9a4ca4d83a50eb28", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 110, - "hasStructuralAnalysis": true - }, - "docs/backend-map/sections/02a-data-model-memory.md": { - "filePath": "docs/backend-map/sections/02a-data-model-memory.md", - "contentHash": "581e9b3b8132e2285d557eb3bc32dcd40b584d6196ac67d4a9ceceb7a77aea80", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 543, - "hasStructuralAnalysis": true - }, - "docs/backend-map/sections/02b-data-model-relational.md": { - "filePath": "docs/backend-map/sections/02b-data-model-relational.md", - "contentHash": "e75e7f0ab35dce36bd1471b8257686c0eb08543c2d2fcbf8bb6b055b02095140", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 576, - "hasStructuralAnalysis": true - }, - "docs/backend-map/sections/02c-shared-types-tiers.md": { - "filePath": "docs/backend-map/sections/02c-shared-types-tiers.md", - "contentHash": "ee5f83aa5e342640f6345fa0f30e2b7bf222f82d8a27568c100c9ab8df28fbc2", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 647, - "hasStructuralAnalysis": true - }, - "docs/backend-map/sections/03a-api-chat-agents.md": { - "filePath": "docs/backend-map/sections/03a-api-chat-agents.md", - "contentHash": "8228213094555da5f7efba0bf3c73bcf7bd388dbfe449d3d2945827668472f15", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 297, - "hasStructuralAnalysis": true - }, - "docs/backend-map/sections/03b-api-memory.md": { - "filePath": "docs/backend-map/sections/03b-api-memory.md", - "contentHash": "e3fd7becf12b1742e24acfd62349f937d91dddf7fa2e881367f2dc55cdf7f20d", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 431, - "hasStructuralAnalysis": true - }, - "docs/backend-map/sections/03c-api-workspace-team.md": { - "filePath": "docs/backend-map/sections/03c-api-workspace-team.md", - "contentHash": "6f243668cf8c40aab05de4fad60cf5dce7b8f8e3408de94260b784b21092839c", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 462, - "hasStructuralAnalysis": true - }, - "docs/backend-map/sections/03d-api-marketplace-skills.md": { - "filePath": "docs/backend-map/sections/03d-api-marketplace-skills.md", - "contentHash": "a6301d421378bfbff7e060ea6e2b74279153f1d255336daabe2c4bd04d73440a", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 532, - "hasStructuralAnalysis": true - }, - "docs/backend-map/sections/03e-api-evolution-governance.md": { - "filePath": "docs/backend-map/sections/03e-api-evolution-governance.md", - "contentHash": "7d0f0d09424e9e83bdd96e64208160acce44b0d98c0645ce045aef19fc62ba54", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 458, - "hasStructuralAnalysis": true - }, - "docs/backend-map/sections/03f-api-realtime-ops.md": { - "filePath": "docs/backend-map/sections/03f-api-realtime-ops.md", - "contentHash": "536a5e404db7a76155599118369251698e051f4a55da8f151938cc744d23e4cc", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 348, - "hasStructuralAnalysis": true - }, - "docs/backend-map/sections/03g-api-cloud-billing-kvark.md": { - "filePath": "docs/backend-map/sections/03g-api-cloud-billing-kvark.md", - "contentHash": "3e0423b10aa1a05447bae9d3dabbc4b1181d1a036b8d5c48550635944450da37", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 295, - "hasStructuralAnalysis": true - }, - "docs/backend-map/sections/04-feature-map.md": { - "filePath": "docs/backend-map/sections/04-feature-map.md", - "contentHash": "5c3972717e68e96d3f0f1c5d048f28cd0a116087c60b41d2e9859f5be38a1f98", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 526, - "hasStructuralAnalysis": true - }, - "docs/backend-map/sections/05a-subsystem-agent-runtime.md": { - "filePath": "docs/backend-map/sections/05a-subsystem-agent-runtime.md", - "contentHash": "8cf2e3af65f767ab9f3df4f141d1d898144ec80bf7f230d54470886af4c4656c", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 405, - "hasStructuralAnalysis": true - }, - "docs/backend-map/sections/05b-subsystem-memory.md": { - "filePath": "docs/backend-map/sections/05b-subsystem-memory.md", - "contentHash": "e59ab5a245535c0ffffa58b4e7c3e68a4f4b0517b272a96b80e69fa1d96b3f90", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 338, - "hasStructuralAnalysis": true - }, - "docs/backend-map/sections/05c-subsystem-harvest.md": { - "filePath": "docs/backend-map/sections/05c-subsystem-harvest.md", - "contentHash": "c5b15dcd70c160f30e7497f5dc662c9a6762451aeebb60740010548e41a65af6", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 262, - "hasStructuralAnalysis": true - }, - "docs/backend-map/sections/05d-subsystem-evolution.md": { - "filePath": "docs/backend-map/sections/05d-subsystem-evolution.md", - "contentHash": "13cc6e0d28d7cdce02cb7d5a79a008ee92674182d45b493b7bce9e9b8074d7c8", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 353, - "hasStructuralAnalysis": true - }, - "docs/backend-map/sections/05e-subsystem-waggledance-aios.md": { - "filePath": "docs/backend-map/sections/05e-subsystem-waggledance-aios.md", - "contentHash": "a7eb83791733c9d45cecc14a46519fd56d76190ee45e81cbcf9be4a6280e8bba", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 414, - "hasStructuralAnalysis": true - }, - "docs/backend-map/sections/05f-subsystem-capabilities-tiers.md": { - "filePath": "docs/backend-map/sections/05f-subsystem-capabilities-tiers.md", - "contentHash": "01ccb3f0512a1f1ab91de709685ad48541921e0a13d18347e09ae426e1ca4cfe", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 440, - "hasStructuralAnalysis": true - }, - "docs/backend-map/sections/05g-subsystem-skills-marketplace-wiki.md": { - "filePath": "docs/backend-map/sections/05g-subsystem-skills-marketplace-wiki.md", - "contentHash": "74c0a22bbfba7402f4a51db789e00d93d38503782e02739ae995278cb369ef5e", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 548, - "hasStructuralAnalysis": true - }, - "docs/backend-map/WAGGLE-BACKEND-VISUAL.html": { - "filePath": "docs/backend-map/WAGGLE-BACKEND-VISUAL.html", - "contentHash": "94721ddc2b6adc3600c0927a09131814f568e770c04d72982fcb79067b5cecc4", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 1553, - "hasStructuralAnalysis": false - }, - "docs/BRAND-VOICE.md": { - "filePath": "docs/BRAND-VOICE.md", - "contentHash": "d74131d69ed33c7f539218482f0f9dda1d5fcd16523ac233c4d8dfdccc122e6e", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 107, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-19-engineering-audit-pre-benchmark.md": { - "filePath": "docs/briefs/2026-04-19-engineering-audit-pre-benchmark.md", - "contentHash": "90d2b22fb3c01d78be7ccf982f2b8159c2fff4c2db832dfe4901b2b1d30195ed", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 226, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-19-handoff-claude-code.md": { - "filePath": "docs/briefs/2026-04-19-handoff-claude-code.md", - "contentHash": "8a9de7457fcded75ebe828f724c0cfb4d270979d4a1d21cf433ea0c9d3b561f0", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 93, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-19-launch-copy-variants.md": { - "filePath": "docs/briefs/2026-04-19-launch-copy-variants.md", - "contentHash": "e8373f685c01e78fdd33886985d442e2541591de79fc5cc8f752acd1f972951c", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 379, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-19-sota-benchmark-audit-readiness.md": { - "filePath": "docs/briefs/2026-04-19-sota-benchmark-audit-readiness.md", - "contentHash": "143991a0409e83175c0b6d920f8de7e2a5a0ec9c9b327cf0ebc79c64e526e8a6", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 193, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-19-sota-benchmark-pre-mortem.md": { - "filePath": "docs/briefs/2026-04-19-sota-benchmark-pre-mortem.md", - "contentHash": "5b193aae6085f6864df8a7e9c0407832164721e4bf34ff8b6991033ef1bf024f", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 262, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-20-benchmark-scope-expansion-paired.md": { - "filePath": "docs/briefs/2026-04-20-benchmark-scope-expansion-paired.md", - "contentHash": "442e60fd496ef7b975a357b199acd4eca632aea305ca181f0e93097c72764066", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 123, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-20-cc-preflight-prep-tasks.md": { - "filePath": "docs/briefs/2026-04-20-cc-preflight-prep-tasks.md", - "contentHash": "a86804b69b1cffacef6a0c0afa5c51dc436f4755dbff519c41e98de369e6a21d", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 185, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-20-cc-sprint-7-tasks.md": { - "filePath": "docs/briefs/2026-04-20-cc-sprint-7-tasks.md", - "contentHash": "345524e57d268512313b25f8509f4700ad83d8cefc093dac9b0c3ed472564372", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 427, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-20-cc-sprint-9-tasks.md": { - "filePath": "docs/briefs/2026-04-20-cc-sprint-9-tasks.md", - "contentHash": "8d39e14b7f149c93bcc9aed2de6b3bb01c94ce15b74d3991f365146ea62cf90a", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 279, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-20-cc-stage-0-dogfood-tasks.md": { - "filePath": "docs/briefs/2026-04-20-cc-stage-0-dogfood-tasks.md", - "contentHash": "f007617310f523758c1d12b6ceacdced37ae49bc26e97dd2dcf64172dddcf3d8", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 198, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-20-claude-design-setup-submission.md": { - "filePath": "docs/briefs/2026-04-20-claude-design-setup-submission.md", - "contentHash": "cea394ef2d9f27025621da252c7ef3ffc736a9df91e002f1070165a67a310a2e", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 83, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-20-launch-copy-dual-axis-revision.md": { - "filePath": "docs/briefs/2026-04-20-launch-copy-dual-axis-revision.md", - "contentHash": "4085d4682d87b5edc8cff87c1f5fe2770f1b63e5f195e5e1c0bdc560d56377e6", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 203, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-21-cc-sprint-10-tasks.md": { - "filePath": "docs/briefs/2026-04-21-cc-sprint-10-tasks.md", - "contentHash": "74b2d43e6f8e190738327f1cd69e51cb84f58de511cd6abad7ceb758cc46733c", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 283, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-22-bee-writer-sleeping-regen-brief.md": { - "filePath": "docs/briefs/2026-04-22-bee-writer-sleeping-regen-brief.md", - "contentHash": "98d78cb2b6d7f32ab48cd18afad086992c526a7876b5e5673b8922a1ac39f1d9", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 111, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-22-brand-bee-personas-card-spec.md": { - "filePath": "docs/briefs/2026-04-22-brand-bee-personas-card-spec.md", - "contentHash": "4fd68f6550783dcf78f611b78c3e7c2d39a4858eb6c82698eccf425c716b888a", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 139, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-22-cc-bee-regen-execution.md": { - "filePath": "docs/briefs/2026-04-22-cc-bee-regen-execution.md", - "contentHash": "c5f24482842b4967d151c5df2ee72332b93ad04c5800141b2cb06d82a6b4af0e", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 149, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-22-cc-c2-stage1-mikroeval-kickoff.md": { - "filePath": "docs/briefs/2026-04-22-cc-c2-stage1-mikroeval-kickoff.md", - "contentHash": "e0f6a2990c4ce12f199fd7071f91a15e8762136e4df5de7cb163a80a923a4ba0", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 110, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-22-cc-c3-stage2-mini-kickoff.md": { - "filePath": "docs/briefs/2026-04-22-cc-c3-stage2-mini-kickoff.md", - "contentHash": "4c424a28bef42ba1fb063bdb3997d9ce5164401fcacaecec2324fdc33ee50259", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 173, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-22-cc-day2-am-kickoff.md": { - "filePath": "docs/briefs/2026-04-22-cc-day2-am-kickoff.md", - "contentHash": "cff7a5d6e9cd4e576592b29e934383049b4a4205f2edbcdfa348dcc644e5dfff", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 140, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-22-cc-personas-card-component-parallel.md": { - "filePath": "docs/briefs/2026-04-22-cc-personas-card-component-parallel.md", - "contentHash": "229ffe161c7fc4b3cdafd7cf4bd63a4a3653e07dd4390adfa86202c6c99b52d9", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 222, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-22-cc-sprint-10-day-3.md": { - "filePath": "docs/briefs/2026-04-22-cc-sprint-10-day-3.md", - "contentHash": "b2da5e8e8c95e49668cc83945686e1aaec5772996519c42f01124572b9cc5396", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 161, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-22-cc-sprint-10-parallel-close-tasks.md": { - "filePath": "docs/briefs/2026-04-22-cc-sprint-10-parallel-close-tasks.md", - "contentHash": "8f23095b4726de9d1c23029933c87775781246a4e2ac64d28702a3dde1cab895", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 172, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-22-cc-sprint-11-kickoff.md": { - "filePath": "docs/briefs/2026-04-22-cc-sprint-11-kickoff.md", - "contentHash": "304fa696b993be92671d20973a4042460566be685752a49f507a57bee9d5f5ee", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 318, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-22-cc-sprint-12-task1-judge-role-remap.md": { - "filePath": "docs/briefs/2026-04-22-cc-sprint-12-task1-judge-role-remap.md", - "contentHash": "cd1e92d1c13cc1671a75a57bf9f644f4aebf2511f1103df1b54f17acbaf8f3f2", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 137, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-22-cc-sprint-12-task1-session2-brief.md": { - "filePath": "docs/briefs/2026-04-22-cc-sprint-12-task1-session2-brief.md", - "contentHash": "d1b630565c6da0666e5e1451ead8a48ef1333a53c45757d4ef5c960f83104ee6", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 314, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-22-cc-sprint-12-task1-session3-brief.md": { - "filePath": "docs/briefs/2026-04-22-cc-sprint-12-task1-session3-brief.md", - "contentHash": "a44e338cec08f01a7dcad873c1f74284a80746323c0831830e19deb458d8afe3", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 293, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-22-claude-design-landing-brief.md": { - "filePath": "docs/briefs/2026-04-22-claude-design-landing-brief.md", - "contentHash": "571ead0355f6653fb015aac8e1e3b4b15099c68bc4b7bdcb661b44a7ef4906ed", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 360, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-22-personas-card-copy-refinement.md": { - "filePath": "docs/briefs/2026-04-22-personas-card-copy-refinement.md", - "contentHash": "ab250d96fa626d4dff8117e905f230aebd25615d5f4614da0246849f90228427", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 157, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-22-sprint-12-scope-draft.md": { - "filePath": "docs/briefs/2026-04-22-sprint-12-scope-draft.md", - "contentHash": "bda80ba44277c3cea8124b37795faf3388ed95d7cde1c0513b7472e19efd538f", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 239, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-23-cc-sprint-12-task2-c3-mini-kickoff.md": { - "filePath": "docs/briefs/2026-04-23-cc-sprint-12-task2-c3-mini-kickoff.md", - "contentHash": "837497387e6798f9a90482ffb0f5671c6a56863c78e3f31cc90a635eaa2d9e36", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 209, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-23-cc1-prompt-v3-c3-stage2-trilateral-smoke-full-retry.md": { - "filePath": "docs/briefs/2026-04-23-cc1-prompt-v3-c3-stage2-trilateral-smoke-full-retry.md", - "contentHash": "1f7858fab3ef661a026007d30dd774f53818a9ff24c1bac48c7590519dbbfe34", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 212, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-23-ds-audit-honeycomb-and-stubs-findings.md": { - "filePath": "docs/briefs/2026-04-23-ds-audit-honeycomb-and-stubs-findings.md", - "contentHash": "180d749721f43fb6a1071c67d1c3a61b420cdb28a305769056d31d7ab9843869", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 128, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-23-ds-audit-v2-macOS-paradigm-correction.md": { - "filePath": "docs/briefs/2026-04-23-ds-audit-v2-macOS-paradigm-correction.md", - "contentHash": "b960559a0e1cf2d9bfa11724eddc18a06bfd77c6b0ecfa309a7d39ee87effc08", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 150, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-24-cc-task25-stage2-retry-kickoff.md": { - "filePath": "docs/briefs/2026-04-24-cc-task25-stage2-retry-kickoff.md", - "contentHash": "fb88bcfb63ff405cbfe96b8a896976ea857015e2b9bee46070a509e539b21dc3", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 348, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-24-cc-task25-stage3-n400-kickoff.md": { - "filePath": "docs/briefs/2026-04-24-cc-task25-stage3-n400-kickoff.md", - "contentHash": "b869e0b3c1a728667740788981cd2ac60befe1d68df23311ed839e58b398af04", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 286, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-24-cc-task25-stage3-rekick-option-a.md": { - "filePath": "docs/briefs/2026-04-24-cc-task25-stage3-rekick-option-a.md", - "contentHash": "bc6bf732c562e4a532e517969d9ac5b51b0718a1cbbefd36876609fd297afec2", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 189, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-24-cc1-judge-swap-stratified-reprobe-brief.md": { - "filePath": "docs/briefs/2026-04-24-cc1-judge-swap-stratified-reprobe-brief.md", - "contentHash": "aa488dc0ca31dada210efc36365179b319c97f95815c7ef55bda3efa2d25b3ec", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 204, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-24-cc1-judge-swap-validation-probe-brief.md": { - "filePath": "docs/briefs/2026-04-24-cc1-judge-swap-validation-probe-brief.md", - "contentHash": "25b308896b9fc230238e76cbf2e1226954533218e7de4ba2eb81c569daaf6755", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 274, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-24-cc1-manifest-v6-phase1-kappa-recal-brief.md": { - "filePath": "docs/briefs/2026-04-24-cc1-manifest-v6-phase1-kappa-recal-brief.md", - "contentHash": "022ebfcd1adbd20cccff9c8d1851768148aadf75c39b594967f34cf7f1cc7d33", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 258, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-24-cc1-manifest-v6-phase2-n400-execution-brief.md": { - "filePath": "docs/briefs/2026-04-24-cc1-manifest-v6-phase2-n400-execution-brief.md", - "contentHash": "f0281d67ecbd8ff7f41d4fe1759c1e305a9c7ffa4c3b6ab4a773fca05170883d", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 226, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-24-cc1-v6-section-5-2-clarification-brief.md": { - "filePath": "docs/briefs/2026-04-24-cc1-v6-section-5-2-clarification-brief.md", - "contentHash": "54212118a0475e128ddeb4ff1da30a0c74945a831951563aa334a3cf0f981237", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 162, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-24-cc1-vertex-batch-eligibility-probe-brief.md": { - "filePath": "docs/briefs/2026-04-24-cc1-vertex-batch-eligibility-probe-brief.md", - "contentHash": "aae30184f8c917825e84b7f1d8b24cf129822486d3a90683fb6a62d6ae683683", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 178, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-25-cc1-apps-www-nextjs-port-brief.md": { - "filePath": "docs/briefs/2026-04-25-cc1-apps-www-nextjs-port-brief.md", - "contentHash": "d9a7f7ca06c90e7ad7116591983c0f0a37ee9c0456fdaf1da7cc3bf83a0accf7", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 519, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-25-launch-comms-templates.md": { - "filePath": "docs/briefs/2026-04-25-launch-comms-templates.md", - "contentHash": "e2ff0788b27eff067aa0a7a7b532d303f562771c4549ecb3fed503920ed66c9d", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 412, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-25-mvp-shim-package-layouts.md": { - "filePath": "docs/briefs/2026-04-25-mvp-shim-package-layouts.md", - "contentHash": "2f23f5ba64732bc58054f62c10a27073edf03c4898d349097a58f323ddc795cb", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 399, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-25-universal-silent-capture-strategy.md": { - "filePath": "docs/briefs/2026-04-25-universal-silent-capture-strategy.md", - "contentHash": "babd54d88398e3dd4448ec9cc0d26e59118d3111335bcdcc86bdbe9d81fb086e", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 335, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-26-agentic-knowledge-work-pilot/cc1-brief-amendment-2026-04-26.md": { - "filePath": "docs/briefs/2026-04-26-agentic-knowledge-work-pilot/cc1-brief-amendment-2026-04-26.md", - "contentHash": "3946d3e00fbb1996fb7e63096ecef51abf1e209e5ff166fd0d8758e9a3a14aad", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 224, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-26-agentic-knowledge-work-pilot/cc1-brief-amendment-v2-2026-04-26.md": { - "filePath": "docs/briefs/2026-04-26-agentic-knowledge-work-pilot/cc1-brief-amendment-v2-2026-04-26.md", - "contentHash": "1ab5082ff773538a26b3c3294f7fbee4e30063a8d994bdb3753bdc9dd6d6cd99", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 165, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-26-agentic-knowledge-work-pilot/cc1-brief.md": { - "filePath": "docs/briefs/2026-04-26-agentic-knowledge-work-pilot/cc1-brief.md", - "contentHash": "9805adae478333178d36d71b88795afc37f8fb543c2ebccaecb7b01faf06afee", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 218, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-26-agentic-knowledge-work-pilot/judge-rubric.md": { - "filePath": "docs/briefs/2026-04-26-agentic-knowledge-work-pilot/judge-rubric.md", - "contentHash": "2e24826eb75e92ef1e64055bb2c632eec64ded8fedf7d5b6897ccaec9ffff2eb", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 222, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-26-agentic-knowledge-work-pilot/README.md": { - "filePath": "docs/briefs/2026-04-26-agentic-knowledge-work-pilot/README.md", - "contentHash": "5118843a3fb3a27da3d03fc9851be1097bd1f5d8a0c0d9409df2390e128f12af", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 65, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-26-agentic-knowledge-work-pilot/task-1-strategic-synthesis.md": { - "filePath": "docs/briefs/2026-04-26-agentic-knowledge-work-pilot/task-1-strategic-synthesis.md", - "contentHash": "6c2f217f7d27067a44919fed41e21ff4b7c8cbc5ee54cb35d78a83bab3d006c7", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 187, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-26-agentic-knowledge-work-pilot/task-2-cross-thread-coordination.md": { - "filePath": "docs/briefs/2026-04-26-agentic-knowledge-work-pilot/task-2-cross-thread-coordination.md", - "contentHash": "14b711727d1b4fa2818413feef8b51e33654b30479d265f14581a74799a65a4b", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 278, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-26-agentic-knowledge-work-pilot/task-3-decision-support.md": { - "filePath": "docs/briefs/2026-04-26-agentic-knowledge-work-pilot/task-3-decision-support.md", - "contentHash": "a407a7c4c1a14fd578f9631b2de06f8f065c47a8a30fdd9ca2525511088ca8f2", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 161, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-26-harness-audit-tiered-fix-plan.md": { - "filePath": "docs/briefs/2026-04-26-harness-audit-tiered-fix-plan.md", - "contentHash": "689952b741af05241f79f5b2e8b8ab4f640ac1ed619bb0ec05041305bfe0c247", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 381, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-26-landing-copy-v3.md": { - "filePath": "docs/briefs/2026-04-26-landing-copy-v3.md", - "contentHash": "2ebb06cec1cd1d0e376ed0679b3a2db19171d5a231a7f05133c0d7686116f570", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 320, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-26-memory-sync-repair-cc2-brief.md": { - "filePath": "docs/briefs/2026-04-26-memory-sync-repair-cc2-brief.md", - "contentHash": "61950f35b99c4a573c987d7876fa936bebc8b16f295e2fea3025af1bbb40716c", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 268, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-26-retrieval-v2-embeddings-audit-brief.md": { - "filePath": "docs/briefs/2026-04-26-retrieval-v2-embeddings-audit-brief.md", - "contentHash": "f176ecd45a84c845cd53ffc580e6a66b33ca1ace756f0b2379ea86721b62afe1", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 353, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-27-substrate-integrity-audit-brief.md": { - "filePath": "docs/briefs/2026-04-27-substrate-integrity-audit-brief.md", - "contentHash": "740673ae9ea89229549509ed50a24457c43ab94bb1363463258ee808eea46e37", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 183, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-28-cc4-faza1-amendment-1.md": { - "filePath": "docs/briefs/2026-04-28-cc4-faza1-amendment-1.md", - "contentHash": "a83a7fb05debaf2221397c0cd1b646b710c1f41130c8088aae4e1de2d13571aa", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 252, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-28-cc4-faza1-amendment-2.md": { - "filePath": "docs/briefs/2026-04-28-cc4-faza1-amendment-2.md", - "contentHash": "af077e538910d0f408e8250ef5bb1fed99f79af1712beb65a209fe168ff5a967", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 172, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-28-cc4-faza1-preflight-report.md": { - "filePath": "docs/briefs/2026-04-28-cc4-faza1-preflight-report.md", - "contentHash": "6b104813f529b839d84c36d81f676f0f13984fd0e45c83a93318b1ed29aa3dcd", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 239, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-28-cc4-gepa-tier2-evolution-faza1-brief.md": { - "filePath": "docs/briefs/2026-04-28-cc4-gepa-tier2-evolution-faza1-brief.md", - "contentHash": "a853d42181d69588c4288bcc14c2463c4ebf870fcd50158049218d1e7e769308", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 266, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-28-claude-design-landing-setup.md": { - "filePath": "docs/briefs/2026-04-28-claude-design-landing-setup.md", - "contentHash": "5c036fb51b7923d6b742e1e72bb03666d8dd8c500d37a629be50645e8c08da50", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 321, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-28-claude-design-landing-v2-prompt.md": { - "filePath": "docs/briefs/2026-04-28-claude-design-landing-v2-prompt.md", - "contentHash": "3cd14417cce0830aca5598ec61becaa814d798541e506dc8cd2b5a7f778c2e38", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 509, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-28-claude-design-landing-v2.1-prompt.md": { - "filePath": "docs/briefs/2026-04-28-claude-design-landing-v2.1-prompt.md", - "contentHash": "3c66a77466a52317d5097de3f4dea37c6b9e5c5b3f028c23d9a4c733652599b0", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 483, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-28-claude-design-landing-v2.2-prompt.md": { - "filePath": "docs/briefs/2026-04-28-claude-design-landing-v2.2-prompt.md", - "contentHash": "ce89f4a9be1ae13c25321391e9d24f5b174caa2fc4471df3d98b9405f27fcb4f", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 528, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-28-claude-design-landing-v2.3-prompt.md": { - "filePath": "docs/briefs/2026-04-28-claude-design-landing-v2.3-prompt.md", - "contentHash": "90904ab529a0c4e82a9a84fe2a33b699b8c191b3ab4ddfeab9106ea1c6fdfe84", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 514, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-28-landing-copy-v4-waggle-product.md": { - "filePath": "docs/briefs/2026-04-28-landing-copy-v4-waggle-product.md", - "contentHash": "904271470f9c981ce8cb0a6049a9dd3fc464847dc5e6f96b5cba6efb3de38af6", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 460, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-29-benchmark-portfolio-refresh-2026-venues.md": { - "filePath": "docs/briefs/2026-04-29-benchmark-portfolio-refresh-2026-venues.md", - "contentHash": "48cf5ec9176730f5bc9e75bd4eb9b56941ff32fe2c7ad6dcd01eca92383e544c", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 234, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-29-phase-5-deployment-brief-v1.md": { - "filePath": "docs/briefs/2026-04-29-phase-5-deployment-brief-v1.md", - "contentHash": "f5f29e895ea709b5e9e583a262554d5fcc4654c0fb036ad4b70685628a500800", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 428, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-29-ui-ux-component-inventory.md": { - "filePath": "docs/briefs/2026-04-29-ui-ux-component-inventory.md", - "contentHash": "974f521807b873da1a70a8e0957efbb8e552994d67c8eef2be54625a12bad577", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 407, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-29-ui-ux-inventory-landing.md": { - "filePath": "docs/briefs/2026-04-29-ui-ux-inventory-landing.md", - "contentHash": "e6b140a7d1de2bdb291a59f50fd15f942610a14987d9671f2b0fe81603a5442d", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 303, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-29-ui-ux-inventory-os-shell.md": { - "filePath": "docs/briefs/2026-04-29-ui-ux-inventory-os-shell.md", - "contentHash": "d13d2d8e16ba83dfc295f4c4d38196a788a2d575d19d52a4bd2840e798ba7342", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 392, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-29-wave1-hooks-cleanup-brief.md": { - "filePath": "docs/briefs/2026-04-29-wave1-hooks-cleanup-brief.md", - "contentHash": "ac766475ce181e8c1735505d75d8c3d6dce86ef9b5fbf91cbe75dd1b8de4bb4b", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 129, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-30-cc-kickoff-phase-5.md": { - "filePath": "docs/briefs/2026-04-30-cc-kickoff-phase-5.md", - "contentHash": "2a7b3572cc0e334c0f5db08f198f299669d685bebc0b0f7d2bd988c05ef8eba8", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 116, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-30-cc-sesija-A-waggle-apps-web-integration.md": { - "filePath": "docs/briefs/2026-04-30-cc-sesija-A-waggle-apps-web-integration.md", - "contentHash": "26d8601b77208e6a4dbc401cfd97ee321ead813488427b47ae392d37aa904716", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 195, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-30-cc-sesija-B-hive-mind-monorepo-migration.md": { - "filePath": "docs/briefs/2026-04-30-cc-sesija-B-hive-mind-monorepo-migration.md", - "contentHash": "4b27ac7cb73a24cbcec4d24bc39dff79b9bcc5ef678844f1f7c837d4f9b12ec0", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 246, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-30-cc-sesija-C-gaia2-setup-dry-verification.md": { - "filePath": "docs/briefs/2026-04-30-cc-sesija-C-gaia2-setup-dry-verification.md", - "contentHash": "eb8011698c4af57bef88c4b1b1b5e1ba8ddad6b57db9a0696f44d0cc69364106", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 175, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-04-30-cc-sesija-C-gaia2-setup-evidence.md": { - "filePath": "docs/briefs/2026-04-30-cc-sesija-C-gaia2-setup-evidence.md", - "contentHash": "bc7db0140515afb52963cfbacae93d42801f0630809cf642234482198719d56a", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 160, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-05-01-cc-e2e-support-build-and-fix.md": { - "filePath": "docs/briefs/2026-05-01-cc-e2e-support-build-and-fix.md", - "contentHash": "be03eb491ab44074b95fcfa5967216b03a5a64fad1fde2bafa28ed44153afcb5", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 166, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-05-01-cc-sesija-D-apps-web-ui-alignment.md": { - "filePath": "docs/briefs/2026-05-01-cc-sesija-D-apps-web-ui-alignment.md", - "contentHash": "8095d9ade26cdcc436feefe313f119715a1eb46445c3d5d098441759b2c318dc", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 224, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-05-02-cc-sesija-D-apps-www-port-v3.2-amendment.md": { - "filePath": "docs/briefs/2026-05-02-cc-sesija-D-apps-www-port-v3.2-amendment.md", - "contentHash": "4a3ccc3ac6d54e728663b72c911422eda4c6308f169b356cb8ca63c6bee37009", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 171, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-05-03-cc-sesija-E-clerk-stripe-linkage-logo-fix.md": { - "filePath": "docs/briefs/2026-05-03-cc-sesija-E-clerk-stripe-linkage-logo-fix.md", - "contentHash": "d9192c71cc7a76d98184c6808c5f2b55dfd9a967090ba350a7b0ba920014926e", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 353, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-05-05-claude-md-amendment-invariants.md": { - "filePath": "docs/briefs/2026-05-05-claude-md-amendment-invariants.md", - "contentHash": "4a11a6f511b3760d9e46757e995aacfa1a5649626566bde069e2a4a5a5456631", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 208, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-05-05-day-0-minus-1-runbook.md": { - "filePath": "docs/briefs/2026-05-05-day-0-minus-1-runbook.md", - "contentHash": "45cb6d7e8121ac91f6773320456cd96797211b100be63ea93e0f10d402ae588b", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 589, - "hasStructuralAnalysis": true - }, - "docs/briefs/2026-05-10-day-0-minus-1-runbook-amendment-post-consolidation.md": { - "filePath": "docs/briefs/2026-05-10-day-0-minus-1-runbook-amendment-post-consolidation.md", - "contentHash": "2ebe554a4a7afcecfbf9d6e4696dd306d1018bb322bb4487f998fc704740d20a", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 128, - "hasStructuralAnalysis": true - }, - "docs/briefs/COWORK-PM-HUB-BRIEF.txt": { - "filePath": "docs/briefs/COWORK-PM-HUB-BRIEF.txt", - "contentHash": "08c52e3f5532112fe747e6aa9db1960c5391afd26ee9c0c39b035cc8c915b8c0", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 302, - "hasStructuralAnalysis": false - }, - "docs/briefs/e2e-persona-tests/2026-04-25-e2e-persona-test-matrix.md": { - "filePath": "docs/briefs/e2e-persona-tests/2026-04-25-e2e-persona-test-matrix.md", - "contentHash": "2b9da941e0c1dc300c8f570321e23138bae32f6c2e4c273e3b18fe86682b4ae2", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 505, - "hasStructuralAnalysis": true - }, - "docs/briefs/hive-mind-ci-npm-publish-brief-2026-04-19.md": { - "filePath": "docs/briefs/hive-mind-ci-npm-publish-brief-2026-04-19.md", - "contentHash": "98d811746f2086ca04940ef48bdf3d79fb397116f9671b291d4906dd5859447a", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 155, - "hasStructuralAnalysis": true - }, - "docs/briefs/landing-auth-infra-brief-2026-04-18.md": { - "filePath": "docs/briefs/landing-auth-infra-brief-2026-04-18.md", - "contentHash": "e106a8fa9aa335f336b45bbfcbdb15f4612e686422f06f8c4f58b7645915ff7b", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 167, - "hasStructuralAnalysis": true - }, - "docs/briefs/track-b-benchmarks-brief-2026-04-19.md": { - "filePath": "docs/briefs/track-b-benchmarks-brief-2026-04-19.md", - "contentHash": "246217590dd869251df9dd6bc379ecd0d13e602488b9acc03ce223b102f4c8f5", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 106, - "hasStructuralAnalysis": true - }, - "docs/briefs/WAGGLE-RECONCILIATION-BRIEF-V2.txt": { - "filePath": "docs/briefs/WAGGLE-RECONCILIATION-BRIEF-V2.txt", - "contentHash": "ee80934d0377311cc3e59679f8a9612e93688100bab33a3e0f5e1320dee8ed19", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 272, - "hasStructuralAnalysis": false - }, - "docs/briefs/WAGGLE-RECONCILIATION-BRIEF.md": { - "filePath": "docs/briefs/WAGGLE-RECONCILIATION-BRIEF.md", - "contentHash": "5ff5d6b36c5755a9fa2ab355b5d0a665c13c93cfa9aa509397d23a267587ebab", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 309, - "hasStructuralAnalysis": true - }, - "docs/code-signing-pilot-and-launch.md": { - "filePath": "docs/code-signing-pilot-and-launch.md", - "contentHash": "fcb36b1af36ccf9dcfdd739d25da6e94c506392836c0ffd32d68d22cf1825ec9", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 289, - "hasStructuralAnalysis": true - }, - "docs/CONTRIBUTING.md": { - "filePath": "docs/CONTRIBUTING.md", - "contentHash": "5d02c8a562ddc45401f974dfbee077478e418c5209cb992786ba71db7d7926a6", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 149, - "hasStructuralAnalysis": true - }, - "docs/DAY-2-BACKLOG-2026-05-01.md": { - "filePath": "docs/DAY-2-BACKLOG-2026-05-01.md", - "contentHash": "c88ba8bfda52eae5bc770aae2d6b24683e2a5635243ed01206e68503b64c9f42", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 332, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-18-h34-hive-mind-extraction-closed.md": { - "filePath": "docs/decisions/2026-04-18-h34-hive-mind-extraction-closed.md", - "contentHash": "d6cfbe69ce7c29cc18efb5eebb5a03f6e093b4e1dacb6d791c37f7d48e57c795", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 57, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-18-hive-mind-extraction-effort.md": { - "filePath": "docs/decisions/2026-04-18-hive-mind-extraction-effort.md", - "contentHash": "7f4a672ca70a7af207a31d47dc5f4355a1a945646440f1cf587f81bb566f5489", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 46, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-18-landing-e2e-persona-workstream-authorized.md": { - "filePath": "docs/decisions/2026-04-18-landing-e2e-persona-workstream-authorized.md", - "contentHash": "b11a30e852972b2926f089f682bb58675c6d54751c2189eca19b0f65d5ecf3a6", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 37, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-18-launch-timing.md": { - "filePath": "docs/decisions/2026-04-18-launch-timing.md", - "contentHash": "3cc0f7b4a431349c95f3e59dfe9061bf20efefddc37b2616749750e1e3fd47e4", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 32, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-18-stripe-pricing.md": { - "filePath": "docs/decisions/2026-04-18-stripe-pricing.md", - "contentHash": "d0fe9ed0b9c999b1191316a406ac1eb805486aec82c0080f17b2d21cd765d805", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 39, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-19-audit-findings-track1-backlog.md": { - "filePath": "docs/decisions/2026-04-19-audit-findings-track1-backlog.md", - "contentHash": "410dd5a5387a6813778abf44ddcf1cf4532ee9951660fa0b7acea50469d39b1e", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 78, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-19-hive-mind-npm-shipped.md": { - "filePath": "docs/decisions/2026-04-19-hive-mind-npm-shipped.md", - "contentHash": "ad42fa1aea0bdb3ef6f9c1a712595a436aaa05f5fbd0d67625d4a31882835aa2", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 70, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-19-persona-research-rev1-approved.md": { - "filePath": "docs/decisions/2026-04-19-persona-research-rev1-approved.md", - "contentHash": "f6bf5940402c43dd6588d6210449215aae189f94e65bcd9c272c9135165a9721", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 118, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-19-target-model-qwen35b-locked.md": { - "filePath": "docs/decisions/2026-04-19-target-model-qwen35b-locked.md", - "contentHash": "26ad57e0dfd1881ae1a86cfcfb063a22c3ac5f1ec730503b992fef2cd993fe1a", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 67, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-19-tracks-sequencing-locked.md": { - "filePath": "docs/decisions/2026-04-19-tracks-sequencing-locked.md", - "contentHash": "b9fb7a61a6b819fdbaeb809a84b357193983f3fbf9eca45abc016fe83f7d9a33", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 70, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-20-benchmark-7-obligations-locked.md": { - "filePath": "docs/decisions/2026-04-20-benchmark-7-obligations-locked.md", - "contentHash": "cdc5016bbe82e972d7f8c45b342fdb1bf4c35358f221265a603126ef91c369f7", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 55, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-20-failure-mode-oq-resolutions-locked.md": { - "filePath": "docs/decisions/2026-04-20-failure-mode-oq-resolutions-locked.md", - "contentHash": "c0f39d0efc7589432217e001a54d0de57854ceb226f113c3cc68f661ef156e26", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 80, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-20-gemma-week3-probe-locked.md": { - "filePath": "docs/decisions/2026-04-20-gemma-week3-probe-locked.md", - "contentHash": "c6c75452798b2aec30aff207613faf22b5e7effa69995fdfc1f731c69348663e", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 52, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-20-harness-spec-4-oq-locked.md": { - "filePath": "docs/decisions/2026-04-20-harness-spec-4-oq-locked.md", - "contentHash": "005bc24ecf88fa1a33225c9c0e893033c2da38a3e232ed3874fc12354a3ff365", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 105, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-20-preflight-oq-resolutions-locked.md": { - "filePath": "docs/decisions/2026-04-20-preflight-oq-resolutions-locked.md", - "contentHash": "042a385404a93a13db25ac63eacf79a915f234ead9391ba700e2b11f4873a45c", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 104, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-20-preflight-stage2-4cell-amendment.md": { - "filePath": "docs/decisions/2026-04-20-preflight-stage2-4cell-amendment.md", - "contentHash": "8d72f7f26bd133fba66372e3e7355133ccb457c6bc095bfa32582c466e3e9300", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 84, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-20-verbose-fixed-oq-resolutions-locked.md": { - "filePath": "docs/decisions/2026-04-20-verbose-fixed-oq-resolutions-locked.md", - "contentHash": "77334f59cafebc387624efc9f6dd66b1c748ec58996aee7a88b337584bb8e17c", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 92, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-21-sprint-10-task-1.2-ratified-opus46-deferred.md": { - "filePath": "docs/decisions/2026-04-21-sprint-10-task-1.2-ratified-opus46-deferred.md", - "contentHash": "f92a3de5c96a49b68f10e728c2fb09d9ee85baf28767ef91dd4037ae35d97494", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 52, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-22-b3-lock-dashscope-addendum.md": { - "filePath": "docs/decisions/2026-04-22-b3-lock-dashscope-addendum.md", - "contentHash": "017ddfb05e8468f9f98e5aab3055be44831c1a51531aa47ae0fb74d39967a214", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 133, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-22-bench-spec-locked.manifest.yaml": { - "filePath": "docs/decisions/2026-04-22-bench-spec-locked.manifest.yaml", - "contentHash": "605f9e0754ac5e57143150324b120855b08d7b5fcff6fe8a208024d126b5624c", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 259, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-22-bench-spec-locked.md": { - "filePath": "docs/decisions/2026-04-22-bench-spec-locked.md", - "contentHash": "80d12c2662054b1e77df21d6b60d444c8ab883db0843eea5102c344b215fe7e6", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 280, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-22-h-audit-1-design-ratified.md": { - "filePath": "docs/decisions/2026-04-22-h-audit-1-design-ratified.md", - "contentHash": "6dae9ce56150f6e520ed4cab5cbdbbe3c3ee3d756209fd4361f8afcd792f73f2", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 156, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-22-landing-personas-ia-locked.md": { - "filePath": "docs/decisions/2026-04-22-landing-personas-ia-locked.md", - "contentHash": "3cb8a35599336492dafd8979492d7c84e85a9a097a3916c28b256ed9674b081d", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 106, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-22-model-route-naming-locked.md": { - "filePath": "docs/decisions/2026-04-22-model-route-naming-locked.md", - "contentHash": "2b60b50dc8f6ade8991dc491b9a5e74e75cd3e5c4a54a54c17114e28afa9e8b9", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 83, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-22-personas-card-copy-locked.md": { - "filePath": "docs/decisions/2026-04-22-personas-card-copy-locked.md", - "contentHash": "cea37999a83f6d93610b72f765d1ae13a3cd69723315818b2b87500e483c16c3", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 78, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-22-sprint-11-scope-locked.md": { - "filePath": "docs/decisions/2026-04-22-sprint-11-scope-locked.md", - "contentHash": "bfae788754568a81cdc05525c8f1f7f847caa75182bbbbccdeec07e7f8752fa7", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 171, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-22-stage-2-full-kickoff-memo-DRAFT.md": { - "filePath": "docs/decisions/2026-04-22-stage-2-full-kickoff-memo-DRAFT.md", - "contentHash": "887e6b96bc199d4c16e36edb1ae8619581bca327f3e04fc8742f5ab4e81c0e17", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 187, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-22-stage-2-full-kickoff-memo.md": { - "filePath": "docs/decisions/2026-04-22-stage-2-full-kickoff-memo.md", - "contentHash": "e91e381ba702dd62a03d73fe566c715af7e2836ca22b18c557de78fc86904905", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 184, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-22-stage-2-primary-config-locked.md": { - "filePath": "docs/decisions/2026-04-22-stage-2-primary-config-locked.md", - "contentHash": "12607e22aecaaf9849b027c0023a489f42dc37f9d752f3d8dba879137b602eaf", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 129, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-22-tie-break-policy-locked.md": { - "filePath": "docs/decisions/2026-04-22-tie-break-policy-locked.md", - "contentHash": "20ad229d962ff1debfd22d45aa5f75857b169436e71946b0313c5eab329c05c7", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 117, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-23-jsonl-record-taxonomy-split-locked.md": { - "filePath": "docs/decisions/2026-04-23-jsonl-record-taxonomy-split-locked.md", - "contentHash": "0fbab81dcdad69cc7aa0e73eec4f306f816d2d361b1c3c673a9b32d867ae5d76", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 55, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-23-stage2-mini-manifest-v3.md": { - "filePath": "docs/decisions/2026-04-23-stage2-mini-manifest-v3.md", - "contentHash": "24b3232eec7b11d4f0b9952f897722ea80625627c756afcad0a18fca27ef48f2", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 351, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-23-stage2-mini-manifest-v3.yaml": { - "filePath": "docs/decisions/2026-04-23-stage2-mini-manifest-v3.yaml", - "contentHash": "628e44734be8edcd1f900eb4d782d11d8c13a7aaf3c1763e360502d6aca80191", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 189, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-23-stage2-mini-manifest.manifest.yaml": { - "filePath": "docs/decisions/2026-04-23-stage2-mini-manifest.manifest.yaml", - "contentHash": "07cd1d8fe139498f8c54262db8fe6f260f3757bedf86b127bf32d7dc5894eb9d", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 264, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-23-stage2-mini-manifest.md": { - "filePath": "docs/decisions/2026-04-23-stage2-mini-manifest.md", - "contentHash": "c08c9ecbd310b25ecb6f09ddbfe0dac26b3d761bbd5f91abb928a5f4de27d9c7", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 190, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-24-gate-d-option-a-ratified.md": { - "filePath": "docs/decisions/2026-04-24-gate-d-option-a-ratified.md", - "contentHash": "43ab5a4c2d33ec2b29b8ab04859ad1eb86728a62a84a05f32648cbf6dfff5e51", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 54, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-24-pm-correctness-reanalysis-memo.md": { - "filePath": "docs/decisions/2026-04-24-pm-correctness-reanalysis-memo.md", - "contentHash": "9b31bc98e325ea4ab274488adf6edce0f3a1914e8bec3bb2b0c15dea4f02c4ae", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 75, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-24-pm-let-it-run-n400-phase-b.md": { - "filePath": "docs/decisions/2026-04-24-pm-let-it-run-n400-phase-b.md", - "contentHash": "6076d1a24345b10f8b50672bd9af65d460b97e56e3d2144383bcf092a26383ed", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 117, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-24-pm-ratify-judge-swap-validation-sequence.md": { - "filePath": "docs/decisions/2026-04-24-pm-ratify-judge-swap-validation-sequence.md", - "contentHash": "452fe24453a1e6de12ee81f094db3013c184a761d2e6f99e45b3d71433047d4c", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 96, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-24-pm-ratify-litellm-scope-in-scope.md": { - "filePath": "docs/decisions/2026-04-24-pm-ratify-litellm-scope-in-scope.md", - "contentHash": "9aa166315f15283b9d99b7f4c4dff68593ef256ce4a63fc8d79ca9c42bf4216c", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 51, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-24-pm-ratify-lock-semantics-path-l1.md": { - "filePath": "docs/decisions/2026-04-24-pm-ratify-lock-semantics-path-l1.md", - "contentHash": "cae325bdb122146dbe930ee4cf4c9f7d2cad1be80035d6f4bd3db95ab09733c8", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 42, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-24-pm-ratify-probe-p2-path.md": { - "filePath": "docs/decisions/2026-04-24-pm-ratify-probe-p2-path.md", - "contentHash": "9cc92cfff7a45959ef6b8eba33ee2bb6bd38d2245eab076904c4db8dbc81bf9c", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 62, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-24-pm-ratify-rca-task26-path.md": { - "filePath": "docs/decisions/2026-04-24-pm-ratify-rca-task26-path.md", - "contentHash": "297642fa7f4927e4c98103798e1c512494f6edd8b221c5546171d4854e125bf5", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 52, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-24-pm-ratify-v5-rpd.md": { - "filePath": "docs/decisions/2026-04-24-pm-ratify-v5-rpd.md", - "contentHash": "2e71e271e69217e9389ba6f4a86695af249c2610e58a4f2575631d83d4eece9e", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 104, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-24-pm-ratify-v5-throttle.md": { - "filePath": "docs/decisions/2026-04-24-pm-ratify-v5-throttle.md", - "contentHash": "3acc231940d1d88cc5ae2c850db1eaaac69e682db8d734e2988d85cf76261f34", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 81, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-24-pm-ratify-v6-5-2-clarification.md": { - "filePath": "docs/decisions/2026-04-24-pm-ratify-v6-5-2-clarification.md", - "contentHash": "cd9115f7c6f91953a6ad10939ac75fdbb35a070869e709f10fac9daf1691bad7", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 126, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-24-pm-ratify-v6-kappa.md": { - "filePath": "docs/decisions/2026-04-24-pm-ratify-v6-kappa.md", - "contentHash": "0dee06536590805fd80cf43b1d1ed0d573c03812f1d83c8443601449bc111e46", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 120, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-24-pm-ratify-vertex-batch-eligibility.md": { - "filePath": "docs/decisions/2026-04-24-pm-ratify-vertex-batch-eligibility.md", - "contentHash": "9da6143332bbb107b6c676def57a61e855d3d1416b618d5d5388b93b0b7ed70f", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 96, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-25-launch-gate-reframe-decision-matrix.md": { - "filePath": "docs/decisions/2026-04-25-launch-gate-reframe-decision-matrix.md", - "contentHash": "7dfa52310b6ccf4ec1917c605b0795a295a0d93e56fe5c787b338af44dd5bdb0", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 299, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-25-overnight-pm-execution-log.md": { - "filePath": "docs/decisions/2026-04-25-overnight-pm-execution-log.md", - "contentHash": "57759b339a965a680ae8ae523f5449f139224af5b7291e4e94e160f36c13a294", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 219, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-25-pm-pre-fill-decision-matrix-recommendations.md": { - "filePath": "docs/decisions/2026-04-25-pm-pre-fill-decision-matrix-recommendations.md", - "contentHash": "a25fadeff838bbf226dc42c143c2a18c5c6b090892f6333b7f9450cfded52ac4", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 330, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-26-decision-matrix-self-judge-reframe.md": { - "filePath": "docs/decisions/2026-04-26-decision-matrix-self-judge-reframe.md", - "contentHash": "dfb73cdd2cad2154887fd543ead6c18bd4915c45f87cb65be11cb3f6e45b26ad", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 222, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-26-memory-sync-audit.md": { - "filePath": "docs/decisions/2026-04-26-memory-sync-audit.md", - "contentHash": "e95c2a91d515f3367c0a311b82de291a44b6127500ac4903bbed70d45664b027", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 242, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-26-memory-sync-step1-results.md": { - "filePath": "docs/decisions/2026-04-26-memory-sync-step1-results.md", - "contentHash": "40fe9efb8538816b2bae3961cdb482d2274413d709833342f3706901f66020b6", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 128, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-26-memory-sync-step2-test-port-results.md": { - "filePath": "docs/decisions/2026-04-26-memory-sync-step2-test-port-results.md", - "contentHash": "12901288355522b1a92fe97510717458cde87aa333ffe0aba24701b20ac93c1a", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 143, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-26-memory-sync-step3-cicd-results.md": { - "filePath": "docs/decisions/2026-04-26-memory-sync-step3-cicd-results.md", - "contentHash": "a492658fcb742cd5ed27c84e6b1d6d5d6b4f5f11aa5eadc0ff00349d257c3f48", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 311, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-26-phase-1-acceptance-gate-results.md": { - "filePath": "docs/decisions/2026-04-26-phase-1-acceptance-gate-results.md", - "contentHash": "0dab4de8d6c20eb530ef7af95fe792cca5a3f20c273c62f06d2fdb2c747f51bb", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 189, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-26-pilot-decision-template.md": { - "filePath": "docs/decisions/2026-04-26-pilot-decision-template.md", - "contentHash": "633da6a7ce9bc5a49ba04c289e0df9fae1ac9d62e8cc699f07e412b62c31db9d", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 232, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-26-pilot-verdict-FAIL.md": { - "filePath": "docs/decisions/2026-04-26-pilot-verdict-FAIL.md", - "contentHash": "2dad35cafb2d1d2d1e5591b7c8c55922fa2151cf954c84d35fd0f20ce01ee8b4", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 250, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-26-v2-pre-launch-sequencing-addendum.md": { - "filePath": "docs/decisions/2026-04-26-v2-pre-launch-sequencing-addendum.md", - "contentHash": "4ddcb8dfc0950ad7a4147e58e2f6abcea9c22a6f21a91440727850d4d3b4c818", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 132, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-27-memory-sync-repair-CLOSED.md": { - "filePath": "docs/decisions/2026-04-27-memory-sync-repair-CLOSED.md", - "contentHash": "2d78c11cb9d739c11076e5590dbcfa9b2d148b9d7ec222b1a141b78335e37c61", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 502, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-27-phase-2-acceptance-gate-PASS.md": { - "filePath": "docs/decisions/2026-04-27-phase-2-acceptance-gate-PASS.md", - "contentHash": "800f3f98dbe3e411ab8f52208f48223f4c570c8685380a3433967a6547127078", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 241, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-27-phase-2-gate-d3-rule-inspection.md": { - "filePath": "docs/decisions/2026-04-27-phase-2-gate-d3-rule-inspection.md", - "contentHash": "520582283ae91d3d1c921cb44a7ce232fcedcdc763b780511ead00913f5fa97d", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 171, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-27-phase-3-acceptance-gate-pre-run-halt.md": { - "filePath": "docs/decisions/2026-04-27-phase-3-acceptance-gate-pre-run-halt.md", - "contentHash": "0b08f89f2d1c9479d89c0ce104087549ee5170ef3a7e942b192c8d1516a67096", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 254, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-27-phase-3-acceptance-gate-results.md": { - "filePath": "docs/decisions/2026-04-27-phase-3-acceptance-gate-results.md", - "contentHash": "2d22aeacc35b6cc5cee6add4d6143f2097e2650527467b0455ec01eed0199ad0", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 225, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-28-agent-fix-sprint-closure.md": { - "filePath": "docs/decisions/2026-04-28-agent-fix-sprint-closure.md", - "contentHash": "d6a6e830e74e48d78cc5d324384b2e88832bb2e2422b42e1276ad63ae5c37e57", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 252, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-28-gepa-faza1-launch.md": { - "filePath": "docs/decisions/2026-04-28-gepa-faza1-launch.md", - "contentHash": "6caaeeaf0e206e586f1c5f788ca5d441ca7aa9934078e5f0485f45b228d434a7", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 324, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-28-phase-4-3-pre-run-halt.md": { - "filePath": "docs/decisions/2026-04-28-phase-4-3-pre-run-halt.md", - "contentHash": "a9dc70e2b65a6545ee9de5a26f23b504b822971d6d7c83477d73c8bdb9e67a03", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 216, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-28-phase-4-3-rescore-delta-report.md": { - "filePath": "docs/decisions/2026-04-28-phase-4-3-rescore-delta-report.md", - "contentHash": "704c70c4d0946a2cc3c82312966d6e5cb012890dd6a21e3a8fb9908fa35f76d5", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 173, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-28-phase-4-4-skills-audit-results.md": { - "filePath": "docs/decisions/2026-04-28-phase-4-4-skills-audit-results.md", - "contentHash": "0d752e08b6fa3e5d106b2792689b61c908048c166578709be706380a6d4686cf", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 191, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-28-phase-4-5-tools-audit-results.md": { - "filePath": "docs/decisions/2026-04-28-phase-4-5-tools-audit-results.md", - "contentHash": "cb230d2a568b3511b19a572d9d821e6f960dc48823a1ca2b9d392050c157b009", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 205, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-28-test-coverage-gap-report.md": { - "filePath": "docs/decisions/2026-04-28-test-coverage-gap-report.md", - "contentHash": "7b3d6759fc623f56fb289cfbc3f7a0bc09412ad6a08c71a3e1ef9bacff277712", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 191, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-29-gepa-faza1-results.md": { - "filePath": "docs/decisions/2026-04-29-gepa-faza1-results.md", - "contentHash": "3f75f01bfa9e0bf3c3cc12ba90c8d8c2a7c1b87bd59b112ad252629ee9fecb95", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 252, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-29-phase-5-brief-LOCKED.md": { - "filePath": "docs/decisions/2026-04-29-phase-5-brief-LOCKED.md", - "contentHash": "149dbe56d552cbbea1f8dadd27da50e468b2ffad677af3f0be52dc374f1465aa", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 98, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-29-phase-5-scope-LOCKED.md": { - "filePath": "docs/decisions/2026-04-29-phase-5-scope-LOCKED.md", - "contentHash": "55c52fba5d6f3841bb299d1f0eb26db237d734014a5c403b025ad4abe38abb55", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 70, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-30-branch-architecture-opcija-c.md": { - "filePath": "docs/decisions/2026-04-30-branch-architecture-opcija-c.md", - "contentHash": "07e0d98b60710c976fff506e9ecf70c61a2101f4afe9c0f996708e7c11fab8d7", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 108, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-30-phase-5-1-5-pm-signoff-canary-authorize.md": { - "filePath": "docs/decisions/2026-04-30-phase-5-1-5-pm-signoff-canary-authorize.md", - "contentHash": "95d7a473b764616430cbeed112c669ecc2dd7b9766916b17e97db5bac3927c8c", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 121, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-30-phase-5-cost-amendment-LOCKED.md": { - "filePath": "docs/decisions/2026-04-30-phase-5-cost-amendment-LOCKED.md", - "contentHash": "84b110d690687f714bae8b3ab3eb31ca2817df02edd405bda3f9084e0156a87f", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 81, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-30-pre-launch-sprint-consolidation-LOCKED.md": { - "filePath": "docs/decisions/2026-04-30-pre-launch-sprint-consolidation-LOCKED.md", - "contentHash": "1ed6443f24f783d979ed697b721fcd380e68c80643f7cdc2e8b5d62d0a633249", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 158, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-30-wave-1-5-brief-queued-behind-live-test.md": { - "filePath": "docs/decisions/2026-04-30-wave-1-5-brief-queued-behind-live-test.md", - "contentHash": "a7105677bfd4858a8f52862a1081468ed3aeed2f07eaec36af2933b0db4255a5", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 74, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-04-30-wave-1-memory-install-cleanup-LOCKED.md": { - "filePath": "docs/decisions/2026-04-30-wave-1-memory-install-cleanup-LOCKED.md", - "contentHash": "424f5b540a11a704b583d4e5d598256d58e689baf162c9c8ff7b04f4c7fb1a1d", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 116, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-05-01-pass-7-block-c-close.md": { - "filePath": "docs/decisions/2026-05-01-pass-7-block-c-close.md", - "contentHash": "23e276b8c9fc30bc53d5cf81969e246a30b2794c8670c9b196c55d3f1990396c", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 65, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-05-02-landing-v32-surgical-edits.md": { - "filePath": "docs/decisions/2026-05-02-landing-v32-surgical-edits.md", - "contentHash": "95c6a1ffdebf67f23b8fc7b36db155e091d405dbdca007e68e033974aeb1ca39", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 90, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-05-02-track-e-arxiv-7-decisions.md": { - "filePath": "docs/decisions/2026-05-02-track-e-arxiv-7-decisions.md", - "contentHash": "3e11aa8a0eeaf36eb9a0a8c77d7f396ee56f4d50a5874025b0d86eed6ab6ee0d", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 131, - "hasStructuralAnalysis": true - }, - "docs/decisions/2026-05-02-track-h-hermes-canonical-integration.md": { - "filePath": "docs/decisions/2026-05-02-track-h-hermes-canonical-integration.md", - "contentHash": "89f8ca7cdc248326a48132be036ade95f041d3598d69a07370b6619b2b712bc5", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 105, - "hasStructuralAnalysis": true - }, - "docs/design_handoff_waggle_app/DESIGN_POV.md": { - "filePath": "docs/design_handoff_waggle_app/DESIGN_POV.md", - "contentHash": "c7a4acd96c629789bc7e1aa2718ea59749625e87ff404205f98f8e06711b94d8", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 91, - "hasStructuralAnalysis": true - }, - "docs/design_handoff_waggle_app/design-files/screens/appsurfaces.html": { - "filePath": "docs/design_handoff_waggle_app/design-files/screens/appsurfaces.html", - "contentHash": "1d5fbadc4474d95a4fac59fffbfacd2c7157a8e40a869b72a9aa1667f0843a3a", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 251, - "hasStructuralAnalysis": false - }, - "docs/design_handoff_waggle_app/design-files/screens/auth.html": { - "filePath": "docs/design_handoff_waggle_app/design-files/screens/auth.html", - "contentHash": "c3c08db473748ed576a6b5857c32321b73b6eefddda70f17212b8d915761a0d4", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 181, - "hasStructuralAnalysis": false - }, - "docs/design_handoff_waggle_app/design-files/screens/benchmark.html": { - "filePath": "docs/design_handoff_waggle_app/design-files/screens/benchmark.html", - "contentHash": "f9c94a5a0cc5695b550cb87173450185db57de3172cff98a09642a52ab6edf66", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 196, - "hasStructuralAnalysis": false - }, - "docs/design_handoff_waggle_app/design-files/screens/billing.html": { - "filePath": "docs/design_handoff_waggle_app/design-files/screens/billing.html", - "contentHash": "293b2c8aa87e848afdbd73307b155affd7a4e7c5b9858193d4a99a20f540dbe8", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 248, - "hasStructuralAnalysis": false - }, - "docs/design_handoff_waggle_app/design-files/screens/chat.html": { - "filePath": "docs/design_handoff_waggle_app/design-files/screens/chat.html", - "contentHash": "d806476b02c5df1e96a69a337bad3af426c8fde87308f55edebf0c0dd62b5752", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 272, - "hasStructuralAnalysis": false - }, - "docs/design_handoff_waggle_app/design-files/screens/evolution.html": { - "filePath": "docs/design_handoff_waggle_app/design-files/screens/evolution.html", - "contentHash": "c140c4e8bfb72b275736cf410ac26d868b5d54156fd648bba1b6acc7689afc11", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 203, - "hasStructuralAnalysis": false - }, - "docs/design_handoff_waggle_app/design-files/screens/habit.html": { - "filePath": "docs/design_handoff_waggle_app/design-files/screens/habit.html", - "contentHash": "4f9ace28ce2ae7223dd91f378834dbd26d965ff07c652e343d99e3e759b4aaae", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 147, - "hasStructuralAnalysis": false - }, - "docs/design_handoff_waggle_app/design-files/screens/home.html": { - "filePath": "docs/design_handoff_waggle_app/design-files/screens/home.html", - "contentHash": "fbb22cf0fef7dafd1b01df6f247da478f5fe5b2b55322619303a4b1750651eaa", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 340, - "hasStructuralAnalysis": false - }, - "docs/design_handoff_waggle_app/design-files/screens/ia.html": { - "filePath": "docs/design_handoff_waggle_app/design-files/screens/ia.html", - "contentHash": "bd653d9024062cbf09bcfa92ca64b50c4b34d6439287e8371586da47b0c98e97", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 288, - "hasStructuralAnalysis": false - }, - "docs/design_handoff_waggle_app/design-files/screens/launcher.html": { - "filePath": "docs/design_handoff_waggle_app/design-files/screens/launcher.html", - "contentHash": "70ed8c31a6d339a41e3551f1975177785ee35e5ad1540aab85c4fdea91cb6efc", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 246, - "hasStructuralAnalysis": false - }, - "docs/design_handoff_waggle_app/design-files/screens/marketplace.html": { - "filePath": "docs/design_handoff_waggle_app/design-files/screens/marketplace.html", - "contentHash": "7005ee28afea5c9fb19274dd3d6242e20208576e6a21483df35ce29968aa1f73", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 320, - "hasStructuralAnalysis": false - }, - "docs/design_handoff_waggle_app/design-files/screens/memory-trust.html": { - "filePath": "docs/design_handoff_waggle_app/design-files/screens/memory-trust.html", - "contentHash": "ae91f5045149bfe8fc435600638abec29befce16ea230ef1e7ec351b80088a81", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 228, - "hasStructuralAnalysis": false - }, - "docs/design_handoff_waggle_app/design-files/screens/onboarding.html": { - "filePath": "docs/design_handoff_waggle_app/design-files/screens/onboarding.html", - "contentHash": "1a96d7c70aea564104e07c4331710bcf2fa8815cdd1c027af0deb472de59365e", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 261, - "hasStructuralAnalysis": false - }, - "docs/design_handoff_waggle_app/design-files/screens/platform.html": { - "filePath": "docs/design_handoff_waggle_app/design-files/screens/platform.html", - "contentHash": "3a3f456e0ec6fdd1fffef0a8368f6ba72dd8b04f86389c2ece137734c133d290", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 214, - "hasStructuralAnalysis": false - }, - "docs/design_handoff_waggle_app/design-files/screens/settings.html": { - "filePath": "docs/design_handoff_waggle_app/design-files/screens/settings.html", - "contentHash": "e81b183476cd074e6c5e8f9b02de09aa27d9092071858a8c576bab3335097832", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 281, - "hasStructuralAnalysis": false - }, - "docs/design_handoff_waggle_app/design-files/screens/storage.html": { - "filePath": "docs/design_handoff_waggle_app/design-files/screens/storage.html", - "contentHash": "5ff9aacb24819fb88875f3550c51d9c87357a79c500afb1d09f169f65b36a60d", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 226, - "hasStructuralAnalysis": false - }, - "docs/design_handoff_waggle_app/design-files/screens/surfaces.html": { - "filePath": "docs/design_handoff_waggle_app/design-files/screens/surfaces.html", - "contentHash": "ef5824bbdeaac62e7a6d3d6c22413e060dbe0bcae4330da3e92e3e3912a4833c", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 218, - "hasStructuralAnalysis": false - }, - "docs/design_handoff_waggle_app/design-files/screens/workspace.html": { - "filePath": "docs/design_handoff_waggle_app/design-files/screens/workspace.html", - "contentHash": "85b51d858ac67ef12b0dff282b2cfa81aa7b74f5fc56472effb2b5f16ee3f874", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 339, - "hasStructuralAnalysis": false - }, - "docs/design_handoff_waggle_app/design-files/screens/workspaces.html": { - "filePath": "docs/design_handoff_waggle_app/design-files/screens/workspaces.html", - "contentHash": "6625e8732278633665bd617d80c92977a863e29aaed55390e795b94f434e322d", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 173, - "hasStructuralAnalysis": false - }, - "docs/design_handoff_waggle_app/design-files/styles/waggle.css": { - "filePath": "docs/design_handoff_waggle_app/design-files/styles/waggle.css", - "contentHash": "97cea27c56d125d72924c301a9b5b2b12ea1c53aadddb41b9f578101eec7cc42", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 155, - "hasStructuralAnalysis": false - }, - "docs/design_handoff_waggle_app/design-files/Waggle Landing.html": { - "filePath": "docs/design_handoff_waggle_app/design-files/Waggle Landing.html", - "contentHash": "8e00bb258cf062951735b9fc9ba286704db07add1f63d4aa82dba5fc89748c93", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 649, - "hasStructuralAnalysis": false - }, - "docs/design_handoff_waggle_app/design-files/Waggle Reimagined.html": { - "filePath": "docs/design_handoff_waggle_app/design-files/Waggle Reimagined.html", - "contentHash": "89cee3830a970531045096d440fac15a2f3d250c0e8c18086b4ee32ec27a1c1f", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 906, - "hasStructuralAnalysis": false - }, - "docs/design_handoff_waggle_app/README.md": { - "filePath": "docs/design_handoff_waggle_app/README.md", - "contentHash": "5faa91be977ba45517a367c945375a8732aed65c8fb2a072967ee8df23a116b1", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 334, - "hasStructuralAnalysis": true - }, - "docs/design_handoff_waggle_app/SCREENS.md": { - "filePath": "docs/design_handoff_waggle_app/SCREENS.md", - "contentHash": "d1b2593095f94da59dd2f86ec9894a63b1ee1fc5c4d3f75b32df66a664c5ee4c", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 372, - "hasStructuralAnalysis": true - }, - "docs/design_handoff_waggle_app/screenshots/README.md": { - "filePath": "docs/design_handoff_waggle_app/screenshots/README.md", - "contentHash": "7a238b33a04cd4beef84196a5bad2fc7c9ee27285c47284b07d5889e54b9a720", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 35, - "hasStructuralAnalysis": true - }, - "docs/e2e-2026-04-30-fix-log.md": { - "filePath": "docs/e2e-2026-04-30-fix-log.md", - "contentHash": "38141c2351bd9b35e8ff15a5827015c73ed221b21bb49ca0bc542da2043a760a", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 607, - "hasStructuralAnalysis": true - }, - "docs/evidence/2026-04-30-cc-sesija-A-apps-web-integration-evidence.md": { - "filePath": "docs/evidence/2026-04-30-cc-sesija-A-apps-web-integration-evidence.md", - "contentHash": "b24a17a41f2913788ac30c7410cb956e91c58f79cf9b9f79014e759387b133de", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 302, - "hasStructuralAnalysis": true - }, - "docs/evidence/2026-04-30-cc-sesija-A-PHASE-5-SMOKE-COMPLETE.md": { - "filePath": "docs/evidence/2026-04-30-cc-sesija-A-PHASE-5-SMOKE-COMPLETE.md", - "contentHash": "738a68e83ea79fc4ba123fe429289941b3d734de1264b7da98f7f65f7ea6fd22", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 167, - "hasStructuralAnalysis": true - }, - "docs/ga/GA-STATUS-2026-05-30.md": { - "filePath": "docs/ga/GA-STATUS-2026-05-30.md", - "contentHash": "2f50363aaa777a20e7016f7d8f4ae3cec6cc04a01987243d30fbbbcc75e53c1b", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 81, - "hasStructuralAnalysis": true - }, - "docs/ga/OPERATING-MANUAL.md": { - "filePath": "docs/ga/OPERATING-MANUAL.md", - "contentHash": "1bb1564ae309eb86eae53360e14482740e31ff45d3f41308eefd2c20e6b65e8e", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 208, - "hasStructuralAnalysis": true - }, - "docs/ga/PHASE2-FAILURE-INJECTION-2026-05-30.md": { - "filePath": "docs/ga/PHASE2-FAILURE-INJECTION-2026-05-30.md", - "contentHash": "a17f00aa9917a2bd52eade5ff3a00c0070b35b25d6412fa0e7d962d3b5f8e194", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 162, - "hasStructuralAnalysis": true - }, - "docs/ga/PRODUCTION-PLAN.md": { - "filePath": "docs/ga/PRODUCTION-PLAN.md", - "contentHash": "13d023a51159bf37b79b2fd1aa3e8bf60c5d5ec878b67979dc52f7aeea993a87", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 142, - "hasStructuralAnalysis": true - }, - "docs/ga/RECONCILIATION-2026-05-30.md": { - "filePath": "docs/ga/RECONCILIATION-2026-05-30.md", - "contentHash": "eca3e7d370fe0d689580f584ec35223ee1f3a51eead490336d9c8672209cddb6", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 66, - "hasStructuralAnalysis": true - }, - "docs/ga/TRUST-REPORT.md": { - "filePath": "docs/ga/TRUST-REPORT.md", - "contentHash": "778d866d06cd8ec98fe4b6806e88fb6e7997c3fe886fe4773c2535b2181aa909", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 101, - "hasStructuralAnalysis": true - }, - "docs/GEPA-SCOPE-AUDIT-2026-04-30.md": { - "filePath": "docs/GEPA-SCOPE-AUDIT-2026-04-30.md", - "contentHash": "827928c49957a4dff2601aee793ef91bc25770a5d0e20f381b69988b2ed590ac", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 172, - "hasStructuralAnalysis": true - }, - "docs/GETTING-STARTED.md": { - "filePath": "docs/GETTING-STARTED.md", - "contentHash": "f276e6bc3183ea49c411a3330415fc0dcd5e99aca6d5b15bfc61ff394052a087", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 93, - "hasStructuralAnalysis": true - }, - "docs/guides/capabilities.md": { - "filePath": "docs/guides/capabilities.md", - "contentHash": "07c6e066664949245d41c050fcfdccc0ac12d132f9c29116c51e926f1a47fb56", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 212, - "hasStructuralAnalysis": true - }, - "docs/guides/connectors.md": { - "filePath": "docs/guides/connectors.md", - "contentHash": "ddbed611fda6f959398db83d47a6348240bea05d96a545419c5ab4f21f2405d7", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 196, - "hasStructuralAnalysis": true - }, - "docs/guides/getting-started.md": { - "filePath": "docs/guides/getting-started.md", - "contentHash": "745d7d426c3338fd6289ecb7d5cab8c14319d628b06ea2a687c4686d55e66564", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 200, - "hasStructuralAnalysis": true - }, - "docs/guides/team-mode.md": { - "filePath": "docs/guides/team-mode.md", - "contentHash": "339f701722465b912584cce59b496549d46d172200f134136b9e77802aca4b6f", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 203, - "hasStructuralAnalysis": true - }, - "docs/guides/troubleshooting.md": { - "filePath": "docs/guides/troubleshooting.md", - "contentHash": "b2fe7c936f7a7dbcb1309d220025471c9037b1a169e4be47d6e7e236d448105f", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 208, - "hasStructuralAnalysis": true - }, - "docs/guides/workspaces.md": { - "filePath": "docs/guides/workspaces.md", - "contentHash": "ff3c593705d2243d8944f90c4059171b64d5fc7de9c828ccee81bbc8652ef7b6", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 150, - "hasStructuralAnalysis": true - }, - "docs/handoffs/2026-04-30-overnight-handoff-for-morning.md": { - "filePath": "docs/handoffs/2026-04-30-overnight-handoff-for-morning.md", - "contentHash": "6b0db3747c413ecb3be0ddaae586cf44d385fe8e8b5a763c7063b40b55e32bd2", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 91, - "hasStructuralAnalysis": true - }, - "docs/handoffs/2026-05-01-end-of-day-handoff.md": { - "filePath": "docs/handoffs/2026-05-01-end-of-day-handoff.md", - "contentHash": "a56f0df4db348f5d9f5c384e05f1a2a0bf355121fcf3c6e6ababd14ad4f03b2a", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 88, - "hasStructuralAnalysis": true - }, - "docs/handoffs/2026-05-02-day-0-readiness-checklist.md": { - "filePath": "docs/handoffs/2026-05-02-day-0-readiness-checklist.md", - "contentHash": "1cca9e9e1106221f4bee3b4333b48ea164316a9b658b4ac9b22c7d674296e47e", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 74, - "hasStructuralAnalysis": true - }, - "docs/handoffs/2026-05-26-technical-team-handoff.md": { - "filePath": "docs/handoffs/2026-05-26-technical-team-handoff.md", - "contentHash": "b2d2da0335937247e04d261705b32633dfd84228d4b7a313a020493a5426e4e3", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 953, - "hasStructuralAnalysis": true - }, - "docs/handoffs/2026-05-27-agent-core-review.md": { - "filePath": "docs/handoffs/2026-05-27-agent-core-review.md", - "contentHash": "5710153c291b43469cf5c9ab67736bade21dc14e0b28bc74e22b7e3065f22748", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 175, - "hasStructuralAnalysis": true - }, - "docs/handoffs/2026-05-27-web-guidelines-review.md": { - "filePath": "docs/handoffs/2026-05-27-web-guidelines-review.md", - "contentHash": "6ec0093bd5133e0b3dc9109c5e088ae1a7314b1d6aeb5b7e82ee99720fb8c6df", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 711, - "hasStructuralAnalysis": true - }, - "docs/HARVEST-EXPORT-MANUAL.md": { - "filePath": "docs/HARVEST-EXPORT-MANUAL.md", - "contentHash": "e429c291b21e83ce39e1e343a4d9d185ab5dbf1d4d6fe2af5a722d49f0d62434", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 293, - "hasStructuralAnalysis": true - }, - "docs/HIVE-MIND-INTEGRATION-DESIGN.md": { - "filePath": "docs/HIVE-MIND-INTEGRATION-DESIGN.md", - "contentHash": "660256b3abac3515e0f2c0de83e34b159c17bc57de2c8fee87ada7bef584f506", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 346, - "hasStructuralAnalysis": true - }, - "docs/kvark-http-api-requirements.md": { - "filePath": "docs/kvark-http-api-requirements.md", - "contentHash": "b097055df755bc1c3ee36f12c92acc993f4ba2efdbff17ce9ec490e8423cbb8a", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 429, - "hasStructuralAnalysis": true - }, - "docs/launch/drafts/2026-05-10-day-0-linkedin-post.md": { - "filePath": "docs/launch/drafts/2026-05-10-day-0-linkedin-post.md", - "contentHash": "54b000e4f03c717bc09e06d33484834cf4150ee47a2bbc3ee87b844d71d17e58", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 124, - "hasStructuralAnalysis": true - }, - "docs/launch/drafts/2026-05-10-pavlukhin-evolveschema-arxiv-email.md": { - "filePath": "docs/launch/drafts/2026-05-10-pavlukhin-evolveschema-arxiv-email.md", - "contentHash": "ce0648369eb88021840ffd64f41996c6701987447db714dec8add3360b235a55", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 71, - "hasStructuralAnalysis": true - }, - "docs/launch/drafts/2026-05-12-apps-www-deployment-readiness.md": { - "filePath": "docs/launch/drafts/2026-05-12-apps-www-deployment-readiness.md", - "contentHash": "585ec0f6f0943a6ae3316ac6eed23bdd7087b7894b8810e74c019c3e8f637e91", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 240, - "hasStructuralAnalysis": true - }, - "docs/launch/drafts/2026-05-12-egzakta-legal-text-drafts.md": { - "filePath": "docs/launch/drafts/2026-05-12-egzakta-legal-text-drafts.md", - "contentHash": "33e6dd2df25d85b1143df406e8d3ab419651b64ebbb001ad15daf7b0ae8218ea", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 399, - "hasStructuralAnalysis": true - }, - "docs/light-mode-audit-2026-05-07.md": { - "filePath": "docs/light-mode-audit-2026-05-07.md", - "contentHash": "ba8357df16c1b073f3c5d29d4fd6aa250c2b9ce0df30a6d2452e82842b7693fa", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 122, - "hasStructuralAnalysis": true - }, - "docs/MAY-8-FOLLOWUP-REPORT-2026-05-08.md": { - "filePath": "docs/MAY-8-FOLLOWUP-REPORT-2026-05-08.md", - "contentHash": "1818bd209f8b13405c946469fb42dd1911a8a066508dffe80c3331fdd5dabcb7", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 120, - "hasStructuralAnalysis": true - }, - "docs/memory-architecture.md": { - "filePath": "docs/memory-architecture.md", - "contentHash": "103edb718f7a93c6d9cf88b2bcbb9b57c21aa684584e8bce38a82297bed26586", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 410, - "hasStructuralAnalysis": true - }, - "docs/methodology.md": { - "filePath": "docs/methodology.md", - "contentHash": "ed7c0cd24005b9d2dc42509918d1cfc1f2007f34e339ebba0a9a65b0b3e9d957", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 235, - "hasStructuralAnalysis": true - }, - "docs/MILESTONE-LAUNCH-STORY-VALIDATED-2026-04-30.md": { - "filePath": "docs/MILESTONE-LAUNCH-STORY-VALIDATED-2026-04-30.md", - "contentHash": "74e059384d2ea16a8ed4ccdd8f98e1c5632dda7630805f8b7855da709dacb718", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 163, - "hasStructuralAnalysis": true - }, - "docs/ONBOARDING-DAY-2-BACKLOG-2026-04-30.md": { - "filePath": "docs/ONBOARDING-DAY-2-BACKLOG-2026-04-30.md", - "contentHash": "3c1d4adee5f15afd9acace8e51ee7b248b0aedb113cbdf8bdfca4b7eb75c981d", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 188, - "hasStructuralAnalysis": true - }, - "docs/ONBOARDING-INVESTIGATION-2026-04-30.md": { - "filePath": "docs/ONBOARDING-INVESTIGATION-2026-04-30.md", - "contentHash": "45bde3d117a23447799898c83db6ca2d8f1a3b333c9b6b1d931986177ab584b7", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 226, - "hasStructuralAnalysis": true - }, - "docs/ONBOARDING.md": { - "filePath": "docs/ONBOARDING.md", - "contentHash": "38e054abc049e7819bfa8f8b3a86b538735457c58cc68decbbac2c278916582f", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 109, - "hasStructuralAnalysis": true - }, - "docs/OPS/stripe-smoke.md": { - "filePath": "docs/OPS/stripe-smoke.md", - "contentHash": "4b689d581354c2ab26fa8c027f8d4eab244d6ee5958d5a5a808c27877c96448d", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 186, - "hasStructuralAnalysis": true - }, - "docs/pilot/data-handling-policy.md": { - "filePath": "docs/pilot/data-handling-policy.md", - "contentHash": "95565cc9e1d5299056064d52620a6813c53784999b067eda621aaa244ec3fc63", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 189, - "hasStructuralAnalysis": true - }, - "docs/pilot/nda-template.md": { - "filePath": "docs/pilot/nda-template.md", - "contentHash": "a66eceadb8ada85151f586425f248c4f0170390a8f3c0ec26db20c7d75c3c6a7", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 134, - "hasStructuralAnalysis": true - }, - "docs/plans/AI-OS-EXPLORATION-2026-05-19.md": { - "filePath": "docs/plans/AI-OS-EXPLORATION-2026-05-19.md", - "contentHash": "ea6e361225be63242c64d8e0385641a4bafd3ee7b71119bfc76cfd00cc185a62", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 299, - "hasStructuralAnalysis": true - }, - "docs/plans/APP-DIR-AUDIT-2026-04-19.md": { - "filePath": "docs/plans/APP-DIR-AUDIT-2026-04-19.md", - "contentHash": "d87ad04c722e560e98c8b58bc44a7f3b2ab93292a231ee6b206e44972512ae2d", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 133, - "hasStructuralAnalysis": true - }, - "docs/plans/BACKLOG-CONSOLIDATED-2026-04-17.md": { - "filePath": "docs/plans/BACKLOG-CONSOLIDATED-2026-04-17.md", - "contentHash": "be1370e7fa3d8e695676d041d7f4eff9415a2bc0774439faf1504f568af0e02c", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 361, - "hasStructuralAnalysis": true - }, - "docs/plans/BACKLOG-FULL-2026-04-18.md": { - "filePath": "docs/plans/BACKLOG-FULL-2026-04-18.md", - "contentHash": "9d4787a6b4a537ddddeda838575b696a95114fca720c73f12f62980c87b7e5a8", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 386, - "hasStructuralAnalysis": true - }, - "docs/plans/BACKLOG-MASTER-2026-04-18.md": { - "filePath": "docs/plans/BACKLOG-MASTER-2026-04-18.md", - "contentHash": "c955b7035a3893aa0ce293c17bc493a9ba5fd77b490109dc2dfe938f1d565009", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 920, - "hasStructuralAnalysis": true - }, - "docs/plans/BACKLOG-RECONCILIATION-2026-04-19.md": { - "filePath": "docs/plans/BACKLOG-RECONCILIATION-2026-04-19.md", - "contentHash": "64d8aba2c2d73590b332f049ded53235a9dc77db734ef684341e1e36b43ae736", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 117, - "hasStructuralAnalysis": true - }, - "docs/plans/BENCHMARK-LANDSCAPE-RESEARCH-2026-05-22.md": { - "filePath": "docs/plans/BENCHMARK-LANDSCAPE-RESEARCH-2026-05-22.md", - "contentHash": "4774361fab349e6c073916787a7107dbbd5027c86f54ef83608166f40e2bc79c", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 61, - "hasStructuralAnalysis": true - }, - "docs/plans/COMPLIANCE-AUDIT-2026-04-20.md": { - "filePath": "docs/plans/COMPLIANCE-AUDIT-2026-04-20.md", - "contentHash": "e5922ce6006835afd2d181e51aa7b454e430ca05b75e24aedd761172f446f170", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 62, - "hasStructuralAnalysis": true - }, - "docs/plans/E-4-OSS-EXTRACTION-VERIFIED-2026-05-20.md": { - "filePath": "docs/plans/E-4-OSS-EXTRACTION-VERIFIED-2026-05-20.md", - "contentHash": "407ec311227aa796a0dd109e7fe78ce2beaded0699a00c3859ef73e3318886d6", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 88, - "hasStructuralAnalysis": true - }, - "docs/plans/FILE-TOOLS-AUDIT-2026-04-20.md": { - "filePath": "docs/plans/FILE-TOOLS-AUDIT-2026-04-20.md", - "contentHash": "af0fac48092b2ab6294bcfb5c93e353a4087671b1f67f98cdc3305464ccdecf5", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 78, - "hasStructuralAnalysis": true - }, - "docs/plans/H-AUDIT-1-DESIGN-DOC-2026-04-22.md": { - "filePath": "docs/plans/H-AUDIT-1-DESIGN-DOC-2026-04-22.md", - "contentHash": "c577ea1905ca515ba2eedfc9273f128b3a0ca6a622d5d586c1fbb5a0990b106e", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 242, - "hasStructuralAnalysis": true - }, - "docs/plans/HARNESS-BENCHMARK-GOAL-2026-05-22.md": { - "filePath": "docs/plans/HARNESS-BENCHMARK-GOAL-2026-05-22.md", - "contentHash": "9df4380a098f18f53eb4b73272b7ff8c4bbcc476b3362fadcea14527292d8758", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 100, - "hasStructuralAnalysis": true - }, - "docs/plans/HARNESS-BENCHMARK-PLAN-2026-05-22.md": { - "filePath": "docs/plans/HARNESS-BENCHMARK-PLAN-2026-05-22.md", - "contentHash": "ca31ca5db9a6cafb49e9666daccc37e61044472f23d42b5dd44c81b71c6d0c67", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 203, - "hasStructuralAnalysis": true - }, - "docs/plans/HARVEST-AUDIT-2026-04-20.md": { - "filePath": "docs/plans/HARVEST-AUDIT-2026-04-20.md", - "contentHash": "07cf10c5d29d13a265e76f21bef02cc6a9c8d602135451be9998bedec1561f49", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 134, - "hasStructuralAnalysis": true - }, - "docs/plans/HERMES-40-PREREG-2026-05-19.md": { - "filePath": "docs/plans/HERMES-40-PREREG-2026-05-19.md", - "contentHash": "161a40b57e3c7b0c2acaf050e058d831705f1f889c885cfa083d59a74e896bae", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 97, - "hasStructuralAnalysis": true - }, - "docs/plans/HERMES-40-RESULTS-2026-05-19.md": { - "filePath": "docs/plans/HERMES-40-RESULTS-2026-05-19.md", - "contentHash": "9515619004d077f94f9184fc950a4ac115d86a7a31f85aa77cd6f6ca30f7b8fb", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 114, - "hasStructuralAnalysis": true - }, - "docs/plans/L-17-placeholder-audit-2026-04-19.md": { - "filePath": "docs/plans/L-17-placeholder-audit-2026-04-19.md", - "contentHash": "31e39e3818c68df335d97b25b984ed6294eb008395458efd13b932e625a0ceb8", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 106, - "hasStructuralAnalysis": true - }, - "docs/plans/LIVE-PREMIUM-VALIDATION-PREREG-2026-05-19.md": { - "filePath": "docs/plans/LIVE-PREMIUM-VALIDATION-PREREG-2026-05-19.md", - "contentHash": "c49a195226fa4e55168653f2da61af9fef3043964213964b305e09b208890a29", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 52, - "hasStructuralAnalysis": true - }, - "docs/plans/LIVE-PREMIUM-VALIDATION-RESULTS-2026-05-19.md": { - "filePath": "docs/plans/LIVE-PREMIUM-VALIDATION-RESULTS-2026-05-19.md", - "contentHash": "4660e43d9ae1a098e84b82fb51c8506c5cde53d9a7bc19e3c9c4394f3ff0c06b", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 88, - "hasStructuralAnalysis": true - }, - "docs/plans/LPV2-PREREG-2026-05-19.md": { - "filePath": "docs/plans/LPV2-PREREG-2026-05-19.md", - "contentHash": "7609a0e1c96b83b3605e6a693968387e22085ab499ae89f307516569c49ab69c", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 35, - "hasStructuralAnalysis": true - }, - "docs/plans/M-13-NOTION-DECISION-2026-04-20.md": { - "filePath": "docs/plans/M-13-NOTION-DECISION-2026-04-20.md", - "contentHash": "a02c0c40437b0b8c052d35f43816b50a8f8d68eb32006c5eb3ffc8976fb67fe7", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 126, - "hasStructuralAnalysis": true - }, - "docs/plans/MEMORY-SOTA-PROPOSAL-2026-06-10.md": { - "filePath": "docs/plans/MEMORY-SOTA-PROPOSAL-2026-06-10.md", - "contentHash": "556350d898a6a9b381c5072319366f62766cb2e3fbbe1bbffac150efb349dbac", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 208, - "hasStructuralAnalysis": true - }, - "docs/plans/MOCK-STUB-AUDIT-2026-04-19.md": { - "filePath": "docs/plans/MOCK-STUB-AUDIT-2026-04-19.md", - "contentHash": "33000686ec1cb8e04ebc9c29ebc0e132caaa08e8325bfb5eda0d912b3f84ea47", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 155, - "hasStructuralAnalysis": true - }, - "docs/plans/monorepo-migration-progress.md": { - "filePath": "docs/plans/monorepo-migration-progress.md", - "contentHash": "b20cb000b92c3e678546338c0b650b949617631bc3f6f7314e38b921cffd3984", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 447, - "hasStructuralAnalysis": true - }, - "docs/plans/OPEN-TASKS-2026-05-20.md": { - "filePath": "docs/plans/OPEN-TASKS-2026-05-20.md", - "contentHash": "6fd5aff68a868c33a4459f7597b7ead3e25781707906832b517ca22df438b1a1", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 215, - "hasStructuralAnalysis": true - }, - "docs/plans/OPEN-WORK-SUMMARY-2026-05-26.md": { - "filePath": "docs/plans/OPEN-WORK-SUMMARY-2026-05-26.md", - "contentHash": "edef522a2a51a60f621187a6d3e49efcc38ce08556f1969bf3a87321247701b0", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 171, - "hasStructuralAnalysis": true - }, - "docs/plans/OPUS-4-6-ROUTE-AUDIT.md": { - "filePath": "docs/plans/OPUS-4-6-ROUTE-AUDIT.md", - "contentHash": "d6d17b9bc136ae86051e5c18207b54394472c8f04a8e64a82b518e97d21a46c3", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 128, - "hasStructuralAnalysis": true - }, - "docs/plans/OS-PRODUCTION-AUDIT-2026-05-13.md": { - "filePath": "docs/plans/OS-PRODUCTION-AUDIT-2026-05-13.md", - "contentHash": "da7beafa78e280141a36e11958bcfe554716589d0fce8f2325335c223fa83f62", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 75, - "hasStructuralAnalysis": true - }, - "docs/plans/OSS-DRIFT-TRIAGE-2026-06-11.md": { - "filePath": "docs/plans/OSS-DRIFT-TRIAGE-2026-06-11.md", - "contentHash": "a0f8e44a21510b6ca05db8b512fc7ebf09b67b5444ceed1ef206f4cd1338fda3", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 105, - "hasStructuralAnalysis": true - }, - "docs/plans/PDF-AUDIT-2026-04-20.md": { - "filePath": "docs/plans/PDF-AUDIT-2026-04-20.md", - "contentHash": "c9d041bdfde2966918d0532ec0ce085e754385c50bab10a886e51297bd5b88b9", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 108, - "hasStructuralAnalysis": true - }, - "docs/plans/PDF-DEFERRED-DECISIONS-2026-04-19.md": { - "filePath": "docs/plans/PDF-DEFERRED-DECISIONS-2026-04-19.md", - "contentHash": "ac8f5fdc1dad299e27d7a8b3a5328fcb4b1d3f40b96dc02dd256668e570f5592", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 254, - "hasStructuralAnalysis": true - }, - "docs/plans/PDF-E2E-ISSUES-2026-04-17.md": { - "filePath": "docs/plans/PDF-E2E-ISSUES-2026-04-17.md", - "contentHash": "465bc49585d4295c9c22e4e08793c1209da012d0f6bfc5f2d7cffc67a3584422", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 61, - "hasStructuralAnalysis": true - }, - "docs/plans/PILLAR2-MEMORY-LONGMEMEVAL-PLAN-2026-05-22.md": { - "filePath": "docs/plans/PILLAR2-MEMORY-LONGMEMEVAL-PLAN-2026-05-22.md", - "contentHash": "db27b0947ee087e90588a544d0a4ef431072df2760d5274da5b5337c07819f74", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 64, - "hasStructuralAnalysis": true - }, - "docs/plans/PLAN-2026-04-19-TO-DO.md": { - "filePath": "docs/plans/PLAN-2026-04-19-TO-DO.md", - "contentHash": "221de44b89f8eceb797cacc7a164a5662646572a94cb10880127053445b5a777", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 95, - "hasStructuralAnalysis": true - }, - "docs/plans/POLISH-SPRINT-2026-04-18.md": { - "filePath": "docs/plans/POLISH-SPRINT-2026-04-18.md", - "contentHash": "82413b186282afd42bf34db39f73683614d61868577ba5d306b23f287ee20002", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 101, - "hasStructuralAnalysis": true - }, - "docs/plans/SPRINT-10-CLOSEOUT-2026-04-22.md": { - "filePath": "docs/plans/SPRINT-10-CLOSEOUT-2026-04-22.md", - "contentHash": "bbfc0f7a474ade8e64ecdec03a2207c515391ce494810487ac5776eeafa38058", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 174, - "hasStructuralAnalysis": true - }, - "docs/plans/STAGE-2-PREP-BACKLOG.md": { - "filePath": "docs/plans/STAGE-2-PREP-BACKLOG.md", - "contentHash": "efcc68c99d8435563a149034ddde3171215a2ded05fcde64be41bc09a0cbba4e", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 90, - "hasStructuralAnalysis": true - }, - "docs/plans/UX-NORTHSTAR-2026-06-13.md": { - "filePath": "docs/plans/UX-NORTHSTAR-2026-06-13.md", - "contentHash": "d5b8b6905259bf7027baeb16886fc9cffe4f8cf311fe4f580d487eb53443883f", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 118, - "hasStructuralAnalysis": true - }, - "docs/plans/W4-PRODUCTION-PORT-PLAN-2026-06-11.md": { - "filePath": "docs/plans/W4-PRODUCTION-PORT-PLAN-2026-06-11.md", - "contentHash": "d7bc03e7410065f927b2053f30f650467f4a609eed695c8d4893e75198e1bf23", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 162, - "hasStructuralAnalysis": true - }, - "docs/plans/WIKI-V2-AUDIT-2026-04-20.md": { - "filePath": "docs/plans/WIKI-V2-AUDIT-2026-04-20.md", - "contentHash": "24d36ce5eae2173b61f0e9fbd61071d588f9306cfa190fae32da6058868289ca", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 197, - "hasStructuralAnalysis": true - }, - "docs/PM-SYNC-PRE-DAY0-2026-05-05.md": { - "filePath": "docs/PM-SYNC-PRE-DAY0-2026-05-05.md", - "contentHash": "8fa3add3c207daa2d8af24f7fe534936bd5ceccf3224d397d7840ccc1d2dd228", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 457, - "hasStructuralAnalysis": true - }, - "docs/product-analysis/architecture-analysis.md": { - "filePath": "docs/product-analysis/architecture-analysis.md", - "contentHash": "4f0b8f13b7b41dfc6a3b58d639644440df629c1456ef1e1298da4f2c45ba25c0", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 588, - "hasStructuralAnalysis": true - }, - "docs/product-analysis/competitive-analysis.md": { - "filePath": "docs/product-analysis/competitive-analysis.md", - "contentHash": "0393103cd62216fe660c76e7b98a32c1295013bf0a05ff685c72f89552a34d35", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 922, - "hasStructuralAnalysis": true - }, - "docs/product-analysis/design-audit.md": { - "filePath": "docs/product-analysis/design-audit.md", - "contentHash": "e302f92e1f33e21650d7c6c149c3f83546d3eb50634b53d2f5ac83b948bb2b4b", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 433, - "hasStructuralAnalysis": true - }, - "docs/product-analysis/feature-inventory.md": { - "filePath": "docs/product-analysis/feature-inventory.md", - "contentHash": "c8492d03ecd65e5df3ecc32bff922c739d8a18ba122a87c2ebd8d753bdc6c235", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 745, - "hasStructuralAnalysis": true - }, - "docs/product-analysis/FOUNDER-REVIEW-V2.md": { - "filePath": "docs/product-analysis/FOUNDER-REVIEW-V2.md", - "contentHash": "10016f23e853a96df42334590adc98fdcf9a5728c9b32f674b53d59eb9facdc5", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 272, - "hasStructuralAnalysis": true - }, - "docs/product-analysis/FOUNDER-REVIEW.md": { - "filePath": "docs/product-analysis/FOUNDER-REVIEW.md", - "contentHash": "3c9224c256ac4d64945eb24066c5274d11ba3dab3bcac0ebdd970a7bc4db4730", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 302, - "hasStructuralAnalysis": true - }, - "docs/product-analysis/ux-analysis.md": { - "filePath": "docs/product-analysis/ux-analysis.md", - "contentHash": "35d5980b982f9b84f846248cb85ca2d9c8fd6bb40c2f4e54557324ddcc53f3a6", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 652, - "hasStructuralAnalysis": true - }, - "docs/product-analysis/WAGGLE-OS-PRODUCT-INTELLIGENCE.md": { - "filePath": "docs/product-analysis/WAGGLE-OS-PRODUCT-INTELLIGENCE.md", - "contentHash": "5fb08775c73764c0c06e981022d172ff0bc94b699caf8a1ec7c9a462ef4b80a2", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 294, - "hasStructuralAnalysis": true - }, - "docs/production-readiness/01A-FEATURE_WAVES.md": { - "filePath": "docs/production-readiness/01A-FEATURE_WAVES.md", - "contentHash": "834f435d47daefca979a99d3ce47575ccf643498bcdd9c3529936a1ee74be871", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 167, - "hasStructuralAnalysis": true - }, - "docs/production-readiness/01B-DEPLOYMENT_PHASES.md": { - "filePath": "docs/production-readiness/01B-DEPLOYMENT_PHASES.md", - "contentHash": "7a361e089b7a76f00c1063d10ed07fb831eb21dcc0b1c21533479821dc0d1a0a", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 141, - "hasStructuralAnalysis": true - }, - "docs/production-readiness/02-UX_AUDIT.md": { - "filePath": "docs/production-readiness/02-UX_AUDIT.md", - "contentHash": "52c0fdb3ea6675eb43b795dd0c0645dab192fe8f2de92baf8fe0df0ff58d10dd", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 551, - "hasStructuralAnalysis": true - }, - "docs/production-readiness/03A-AGENT_QUALITY.md": { - "filePath": "docs/production-readiness/03A-AGENT_QUALITY.md", - "contentHash": "353c8c408c166b9a076d166e9583d41a4da8e9652afaa91be86248854abc8b5a", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 226, - "hasStructuralAnalysis": true - }, - "docs/production-readiness/03B-SERVER_QUALITY.md": { - "filePath": "docs/production-readiness/03B-SERVER_QUALITY.md", - "contentHash": "7b19c65e65db33e2ed6f2cb8ef524c0cb6adee0b2f1600b9705d694a63668093", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 268, - "hasStructuralAnalysis": true - }, - "docs/production-readiness/03C-UI_QUALITY.md": { - "filePath": "docs/production-readiness/03C-UI_QUALITY.md", - "contentHash": "1ab60a5c35fbeddf7e54e1c5e1174c6ebf5c9957c9175d8da2b62cd1dda9dde2", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 249, - "hasStructuralAnalysis": true - }, - "docs/production-readiness/04A-APP_SECURITY.md": { - "filePath": "docs/production-readiness/04A-APP_SECURITY.md", - "contentHash": "ae072da35d2a970efc56fb80b3abc02129b642c5dc483a69e7557dca3af2236b", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 207, - "hasStructuralAnalysis": true - }, - "docs/production-readiness/04B-SECRETS_DEPS.md": { - "filePath": "docs/production-readiness/04B-SECRETS_DEPS.md", - "contentHash": "b5f52e06dc6059d03f7653e0d8b5d473076ebea3ebb17ba9e8962dc5fb53b1fd", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 245, - "hasStructuralAnalysis": true - }, - "docs/production-readiness/05-TEST_REPORT.md": { - "filePath": "docs/production-readiness/05-TEST_REPORT.md", - "contentHash": "3e0113e00a8e40c353d28c6ce16ca99a02e572e78dfcb757717072c062e4d729", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 272, - "hasStructuralAnalysis": true - }, - "docs/production-readiness/06-BUILD_REPORT.md": { - "filePath": "docs/production-readiness/06-BUILD_REPORT.md", - "contentHash": "40616f016117f0c8654593835b9997ffa78c2d04c751400fd81f58fc9daafc85", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 329, - "hasStructuralAnalysis": true - }, - "docs/production-readiness/07-ISSUE_REGISTER.md": { - "filePath": "docs/production-readiness/07-ISSUE_REGISTER.md", - "contentHash": "60cf7b701083966dc48bf33f5951d5a4857d3dc07163a851cc078c9c8d6b02fd", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 115, - "hasStructuralAnalysis": true - }, - "docs/production-readiness/08-CONFIDENCE_MATRIX.md": { - "filePath": "docs/production-readiness/08-CONFIDENCE_MATRIX.md", - "contentHash": "bf3940a265c3857c7d35effbf3cc8401e484524eece0c4b60d7403004d4f90bd", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 140, - "hasStructuralAnalysis": true - }, - "docs/production-readiness/09-LAUNCH_RECOMMENDATION.md": { - "filePath": "docs/production-readiness/09-LAUNCH_RECOMMENDATION.md", - "contentHash": "8b1a046c78bbb37406893931e3661cbebc3d18aa3ec70257468369467ab22e96", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 144, - "hasStructuralAnalysis": true - }, - "docs/production-readiness/AUDIT_COMPLETE.md": { - "filePath": "docs/production-readiness/AUDIT_COMPLETE.md", - "contentHash": "e3147b2a0f45d0c299b646693f5ea15f7eb0dbcbf7bede0ac9e75740195ff1cf", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 105, - "hasStructuralAnalysis": true - }, - "docs/qa-polish-2026-06-24/FIX-PLAN.md": { - "filePath": "docs/qa-polish-2026-06-24/FIX-PLAN.md", - "contentHash": "170de9c3fa0fe1bccf88e5de84efa5ff33fda1bf1f9ca70110b25cd137ab73ca", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 46, - "hasStructuralAnalysis": true - }, - "docs/qa-polish-2026-06-24/SMOKE-REPORT.md": { - "filePath": "docs/qa-polish-2026-06-24/SMOKE-REPORT.md", - "contentHash": "d173c7acf3f7018bd928c0821bf13d48193a3882523f75bda0fd03f5cc59a50b", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 27, - "hasStructuralAnalysis": true - }, - "docs/redesign-warm-hive/BUILD-PLAN.md": { - "filePath": "docs/redesign-warm-hive/BUILD-PLAN.md", - "contentHash": "d1576d5fcd42f7762c0e0d2004c7538f04585b1829d8f12b5c5e2ec458bc442d", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 192, - "hasStructuralAnalysis": true - }, - "docs/redesign-warm-hive/PR3-BUILD-PLAN.md": { - "filePath": "docs/redesign-warm-hive/PR3-BUILD-PLAN.md", - "contentHash": "c7637ec592d3df00c2a6bb3d035ed341bd51df3eb60c683d2858e58335a38f02", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 408, - "hasStructuralAnalysis": true - }, - "docs/redesign-warm-hive/pr3-recon/chat.md": { - "filePath": "docs/redesign-warm-hive/pr3-recon/chat.md", - "contentHash": "62c9ac03e1e4f9457c2e4461a449b42388b650c80d64e3e0d05129c86d60d6a0", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 302, - "hasStructuralAnalysis": true - }, - "docs/redesign-warm-hive/pr3-recon/home.md": { - "filePath": "docs/redesign-warm-hive/pr3-recon/home.md", - "contentHash": "e2a0695630a13f8ba285c3fb95f8667c59fee6d8fea0da096f283de96f250e16", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 294, - "hasStructuralAnalysis": true - }, - "docs/redesign-warm-hive/pr3-recon/primitives.md": { - "filePath": "docs/redesign-warm-hive/pr3-recon/primitives.md", - "contentHash": "f696feae80e60a32bc58fc112b1c1a5b92ae1960fabb05c4cdb3c447fa62c973", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 201, - "hasStructuralAnalysis": true - }, - "docs/redesign-warm-hive/pr3-recon/workspace.md": { - "filePath": "docs/redesign-warm-hive/pr3-recon/workspace.md", - "contentHash": "05e0edac0e3d0be23b0e16ad68070f5b1ce5563f579e39e53a2cd02540b80e30", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 277, - "hasStructuralAnalysis": true - }, - "docs/redesign-warm-hive/PR35-BUILD-PLAN.md": { - "filePath": "docs/redesign-warm-hive/PR35-BUILD-PLAN.md", - "contentHash": "1bed5dcfc83bc51eef22179dd04abd29d56deffc0bd3d792bdf14ca67ccebfe0", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 350, - "hasStructuralAnalysis": true - }, - "docs/redesign-warm-hive/pr35-recon/01-frame-source-server.md": { - "filePath": "docs/redesign-warm-hive/pr35-recon/01-frame-source-server.md", - "contentHash": "93fb34621b06f61188607f32671655600df3653f13f4fa5db6831aba2c8d4156", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 302, - "hasStructuralAnalysis": true - }, - "docs/redesign-warm-hive/pr35-recon/02-sse-step-path.md": { - "filePath": "docs/redesign-warm-hive/pr35-recon/02-sse-step-path.md", - "contentHash": "1bdba6651ea4b2fb41f6c88ba1863aa7d8a0dab1c7f06c40b42f390e7402d181", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 216, - "hasStructuralAnalysis": true - }, - "docs/redesign-warm-hive/pr35-recon/03-pr3-hooks-primitives.md": { - "filePath": "docs/redesign-warm-hive/pr35-recon/03-pr3-hooks-primitives.md", - "contentHash": "f765db73358ceb18ba4ea5318cc7b2999d0742a6e8c083ebce6b9681aa81c8e5", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 156, - "hasStructuralAnalysis": true - }, - "docs/redesign-warm-hive/pr35-recon/04-design-screen19.md": { - "filePath": "docs/redesign-warm-hive/pr35-recon/04-design-screen19.md", - "contentHash": "26968aa9e7a56cd55f22b658653f23d506513d548690ab396397772a4523f75d", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 318, - "hasStructuralAnalysis": true - }, - "docs/redesign-warm-hive/pr35-recon/05-memory-store-api.md": { - "filePath": "docs/redesign-warm-hive/pr35-recon/05-memory-store-api.md", - "contentHash": "d573af8dfed6069b5b520870cb32f2c25106b7a7caafe844c33eda1314c44706", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 250, - "hasStructuralAnalysis": true - }, - "docs/redesign-warm-hive/PR4-BUILD-PLAN.md": { - "filePath": "docs/redesign-warm-hive/PR4-BUILD-PLAN.md", - "contentHash": "04086f804e59de8af30f695dad4db5010ef58f2ed4e89762ab0a4ab9137472c8", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 63, - "hasStructuralAnalysis": true - }, - "docs/redesign-warm-hive/pr4-recon/01-marketplace-fe.md": { - "filePath": "docs/redesign-warm-hive/pr4-recon/01-marketplace-fe.md", - "contentHash": "8849e95ca8d264fdd3cd07878b9d4ec6d3d0b0e1556c6349eae8c42df3e61d17", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 250, - "hasStructuralAnalysis": true - }, - "docs/redesign-warm-hive/pr4-recon/02-marketplace-backend.md": { - "filePath": "docs/redesign-warm-hive/pr4-recon/02-marketplace-backend.md", - "contentHash": "f83eb209aa1e82976a0d6d8b3f1e9d9033ced74d000d13db8adc3818331c1601", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 184, - "hasStructuralAnalysis": true - }, - "docs/redesign-warm-hive/pr4-recon/03-install-state-sync.md": { - "filePath": "docs/redesign-warm-hive/pr4-recon/03-install-state-sync.md", - "contentHash": "622371e1028cb633f40ec5da4fbc1513b547f77a944a98f50620d7f8d42ffe8a", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 371, - "hasStructuralAnalysis": true - }, - "docs/redesign-warm-hive/pr4-recon/04-inline-in-chat.md": { - "filePath": "docs/redesign-warm-hive/pr4-recon/04-inline-in-chat.md", - "contentHash": "d17f6922f67e81b02c11f60b1bc9946d0fa45cc12504160dc473359a603613c5", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 349, - "hasStructuralAnalysis": true - }, - "docs/redesign-warm-hive/pr4-recon/05-agent-pick-search.md": { - "filePath": "docs/redesign-warm-hive/pr4-recon/05-agent-pick-search.md", - "contentHash": "f4a4c32a6c04691eabb557a5d4c61c10a8f9e41f371b844be0ed7834a6b1bc05", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 235, - "hasStructuralAnalysis": true - }, - "docs/redesign-warm-hive/pr4-recon/GROUNDING-2026-06-16.md": { - "filePath": "docs/redesign-warm-hive/pr4-recon/GROUNDING-2026-06-16.md", - "contentHash": "4951ae612e9a1d26b26e7dcd1f1c57ae9988cc6a262f4357097ee4950eb52513", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 41, - "hasStructuralAnalysis": true - }, - "docs/redesign-warm-hive/PR5-BUILD-PLAN.md": { - "filePath": "docs/redesign-warm-hive/PR5-BUILD-PLAN.md", - "contentHash": "b0c8a7b37c06d5f1e0cc06f8afe90b765a83cd0edb500db1cf41eecf0f54764b", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 58, - "hasStructuralAnalysis": true - }, - "docs/redesign-warm-hive/PR6-BUILD-PLAN.md": { - "filePath": "docs/redesign-warm-hive/PR6-BUILD-PLAN.md", - "contentHash": "0960fbc0c536e7a587134bbb179813987331380968ae53f795687b689eab4f57", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 127, - "hasStructuralAnalysis": true - }, - "docs/redesign-warm-hive/PR7-BUILD-PLAN.md": { - "filePath": "docs/redesign-warm-hive/PR7-BUILD-PLAN.md", - "contentHash": "11f409c13bde5893bcf54d09aadbcfae05d70f89794afae3627b7aeb7a79e8a9", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 174, - "hasStructuralAnalysis": true - }, - "docs/redesign-warm-hive/pr7-recon/01-stripe-backend.md": { - "filePath": "docs/redesign-warm-hive/pr7-recon/01-stripe-backend.md", - "contentHash": "7b151e157055bef837eb02c9c85061bd172b554f844446d99ef0a908c1822c7f", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 117, - "hasStructuralAnalysis": true - }, - "docs/redesign-warm-hive/pr7-recon/02-auth-session.md": { - "filePath": "docs/redesign-warm-hive/pr7-recon/02-auth-session.md", - "contentHash": "2ea6569e2071229320bec9368ddef3d42169faf34610cdb97446bc282d167b3c", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 130, - "hasStructuralAnalysis": true - }, - "docs/redesign-warm-hive/pr7-recon/03-screen-auth-design.md": { - "filePath": "docs/redesign-warm-hive/pr7-recon/03-screen-auth-design.md", - "contentHash": "ae52e76cd42ebf65709dda3157852fef751c36f444afbc7c252b57c0602bc52a", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 284, - "hasStructuralAnalysis": true - }, - "docs/redesign-warm-hive/pr7-recon/04-screen-billing-design.md": { - "filePath": "docs/redesign-warm-hive/pr7-recon/04-screen-billing-design.md", - "contentHash": "7a6ac05ce236c02016b01c10079daa6f93399fde8f226e74432ee99a7e247673", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 272, - "hasStructuralAnalysis": true - }, - "docs/redesign-warm-hive/pr7-recon/05-clerk-integration.md": { - "filePath": "docs/redesign-warm-hive/pr7-recon/05-clerk-integration.md", - "contentHash": "9aa2ede3067077e222209f3ee93fde0116fb023f36ae0064ad3affb0bb96304d", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 252, - "hasStructuralAnalysis": true - }, - "docs/redesign-warm-hive/pr7-recon/06-routing-surfaces.md": { - "filePath": "docs/redesign-warm-hive/pr7-recon/06-routing-surfaces.md", - "contentHash": "d557f2b79bbb067dd18234e1584c2ed04e352285920f0001801f28333f1c341c", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 321, - "hasStructuralAnalysis": true - }, - "docs/redesign-warm-hive/pr7-recon/07-byo-vs-metered.md": { - "filePath": "docs/redesign-warm-hive/pr7-recon/07-byo-vs-metered.md", - "contentHash": "e50cb89ebe6b00debc270f1d2f13042f53b1d15175c7e204a4af8e7bb8c60637", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 167, - "hasStructuralAnalysis": true - }, - "docs/redesign-warm-hive/PR8-BUILD-PLAN.md": { - "filePath": "docs/redesign-warm-hive/PR8-BUILD-PLAN.md", - "contentHash": "26cc98c6e724e75d5b234d20ca39f1a26471b097dc68cfee6a37eafe3917ba08", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 145, - "hasStructuralAnalysis": true - }, - "docs/redesign-warm-hive/smoke-20260615/FILE-CHOOSER-ROOT-CAUSE.md": { - "filePath": "docs/redesign-warm-hive/smoke-20260615/FILE-CHOOSER-ROOT-CAUSE.md", - "contentHash": "95ebb68a643eeffe6c89531bba9d2d497b3b44b194df60320d096af197492630", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 45, - "hasStructuralAnalysis": true - }, - "docs/redesign-warm-hive/smoke-pr3-20260616/SMOKE-RESULTS.md": { - "filePath": "docs/redesign-warm-hive/smoke-pr3-20260616/SMOKE-RESULTS.md", - "contentHash": "47eb0ff6c71cebf03d8e5120a941249cedad7f8da1630aed1a2779575f6e9e23", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 56, - "hasStructuralAnalysis": true - }, - "docs/redesign-warm-hive/smoke-pr35-20260616/SMOKE.md": { - "filePath": "docs/redesign-warm-hive/smoke-pr35-20260616/SMOKE.md", - "contentHash": "2a19079d2f8050110aca5e348fda2557b0dbb934e2950342ccd5c0e2802fd5c9", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 44, - "hasStructuralAnalysis": true - }, - "docs/redesign-warm-hive/smoke-pr35-routes-live-20260616/REPORT.md": { - "filePath": "docs/redesign-warm-hive/smoke-pr35-routes-live-20260616/REPORT.md", - "contentHash": "4eb39dc41da6b58d222dbf117b0c7fd3cde5e5361b705ed8c2965f58b6494c0b", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 86, - "hasStructuralAnalysis": true - }, - "docs/redesign-warm-hive/smoke-pr4-20260617-after-search.txt": { - "filePath": "docs/redesign-warm-hive/smoke-pr4-20260617-after-search.txt", - "contentHash": "cb5afaca79eeb8323bc3e35ddab7cdc85a748d64655450dc4bcbb95c74f7aa0b", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 1899, - "hasStructuralAnalysis": false - }, - "docs/redesign-warm-hive/smoke-pr4-20260617.md": { - "filePath": "docs/redesign-warm-hive/smoke-pr4-20260617.md", - "contentHash": "e0538a3f0614bc4ec3dc7cc56aa6fa572643dcbe4d536857cf96988cc9107902", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 35, - "hasStructuralAnalysis": true - }, - "docs/redesign-warm-hive/smoke-pr5-20260617/REPORT.md": { - "filePath": "docs/redesign-warm-hive/smoke-pr5-20260617/REPORT.md", - "contentHash": "640645188bbd50c04385dadf3a1491d0890c068fdbd0e9e3c883493a41d899ea", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 61, - "hasStructuralAnalysis": true - }, - "docs/redesign-warm-hive/smoke-pr6a-20260618/REPORT.md": { - "filePath": "docs/redesign-warm-hive/smoke-pr6a-20260618/REPORT.md", - "contentHash": "3b8ccbbc7c425866ceb547c90be6a5881c60c5fdeb267267d9533ff9f4ac244f", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 45, - "hasStructuralAnalysis": true - }, - "docs/redesign-warm-hive/smoke-pr6b-20260618/REPORT.md": { - "filePath": "docs/redesign-warm-hive/smoke-pr6b-20260618/REPORT.md", - "contentHash": "4832d54bfde28fb2e6926125176c1e5fbfb841f02caeb4ba3f678a2770a258a1", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 46, - "hasStructuralAnalysis": true - }, - "docs/redesign-warm-hive/smoke-pr6c-20260618/REPORT.md": { - "filePath": "docs/redesign-warm-hive/smoke-pr6c-20260618/REPORT.md", - "contentHash": "1b0df85b83a385f3b4aa06ff29bf4d0a112ed1ebae84258003e48915daf8f907", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 39, - "hasStructuralAnalysis": true - }, - "docs/redesign-warm-hive/smoke-pr7a-20260624/REPORT.md": { - "filePath": "docs/redesign-warm-hive/smoke-pr7a-20260624/REPORT.md", - "contentHash": "04cb00851518ee25a7b39b31109fc223e6551e363267a8e77d13cfa2b6c3a292", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 47, - "hasStructuralAnalysis": true - }, - "docs/redesign-warm-hive/smoke-pr7b-20260624/REPORT.md": { - "filePath": "docs/redesign-warm-hive/smoke-pr7b-20260624/REPORT.md", - "contentHash": "c7e54bf68494b3e7b1e314a3e1fb21df118d6069e224dcfd9505b759c3d15a08", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 74, - "hasStructuralAnalysis": true - }, - "docs/redesign-warm-hive/smoke-pr8-20260624/REPORT.md": { - "filePath": "docs/redesign-warm-hive/smoke-pr8-20260624/REPORT.md", - "contentHash": "6ec8839d0ca3c5f10d431df63b92dd99b6151d3af189fe727dd3be646c8fb848", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 48, - "hasStructuralAnalysis": true - }, - "docs/reference/api.md": { - "filePath": "docs/reference/api.md", - "contentHash": "ae2bbf6747460eb449bd0a8fbcd206ba3501d83b8c9b7e765dd66739969d94aa", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 242, - "hasStructuralAnalysis": true - }, - "docs/reference/commands.md": { - "filePath": "docs/reference/commands.md", - "contentHash": "a870b8d2eec2a98a8bb1aed9aa20ff1dafcf655625437e4dbc2b14a178cdf0ae", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 139, - "hasStructuralAnalysis": true - }, - "docs/REMAINING-BACKLOG-2026-04-16.md": { - "filePath": "docs/REMAINING-BACKLOG-2026-04-16.md", - "contentHash": "ce71c40b8149a4098a3a5c6e79e761aaecf27574854864a6052664fa2d838303", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 318, - "hasStructuralAnalysis": true - }, - "docs/reports/multi-vendor-ensemble-baseline-2026-04-21T08-56-43Z.md": { - "filePath": "docs/reports/multi-vendor-ensemble-baseline-2026-04-21T08-56-43Z.md", - "contentHash": "cd0f3274f75f1d6da2135735764816b73c5f50ca035cc759d53d2c46b36222a8", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 147, - "hasStructuralAnalysis": true - }, - "docs/reports/opus-4-6-route-audit-2026-04-22.md": { - "filePath": "docs/reports/opus-4-6-route-audit-2026-04-22.md", - "contentHash": "4859b0fa9776115f99af89f08c6644c2a83193a442ff37a389619969925c6dee", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 217, - "hasStructuralAnalysis": true - }, - "docs/reports/sonnet-calibration-2026-04-21T08-55-51Z.md": { - "filePath": "docs/reports/sonnet-calibration-2026-04-21T08-55-51Z.md", - "contentHash": "90ed9df664904ecdcc622c1bf90b5670a8148c9d8f10b97a5a24d7e6f06cdd95", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 85, - "hasStructuralAnalysis": true - }, - "docs/research/01-oss-memory-packaging-strategy.md": { - "filePath": "docs/research/01-oss-memory-packaging-strategy.md", - "contentHash": "d6836d8e563b5b52f98886f3f9748a9cfa880a7467d6fd8d2a88d419e94f6bc6", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 429, - "hasStructuralAnalysis": true - }, - "docs/research/02-memory-system-scientific-draft.md": { - "filePath": "docs/research/02-memory-system-scientific-draft.md", - "contentHash": "5a55afb62217e267353f7a92a457f4f60013be781818442be0054e513e24e25f", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 446, - "hasStructuralAnalysis": true - }, - "docs/research/03-memory-harvesting-strategy.md": { - "filePath": "docs/research/03-memory-harvesting-strategy.md", - "contentHash": "6951df32495a7cba15dfa4e68dcdbbcaa63458bfbcacc18eed4adf2c4611a68a", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 282, - "hasStructuralAnalysis": true - }, - "docs/research/03-paper-skeleton-v2-2026-04-30.md": { - "filePath": "docs/research/03-paper-skeleton-v2-2026-04-30.md", - "contentHash": "130b51e92bf9d67d0a98f5f589d489d9f0e41fe3011047731416006d25114983", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 329, - "hasStructuralAnalysis": true - }, - "docs/research/04-competitive-landscape.md": { - "filePath": "docs/research/04-competitive-landscape.md", - "contentHash": "5f8cc3093d1cc890d1ea1398016b7ebaa06ab99c222ddd0d564425049f80a0ef", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 199, - "hasStructuralAnalysis": true - }, - "docs/research/04-gepa-public-reveal-strategy.md": { - "filePath": "docs/research/04-gepa-public-reveal-strategy.md", - "contentHash": "28cd8c928f83487c051655dd966b59eb5af53f6b017486a526df924506f0d299", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 393, - "hasStructuralAnalysis": true - }, - "docs/research/05-user-personas-ai-os.md": { - "filePath": "docs/research/05-user-personas-ai-os.md", - "contentHash": "bd9e53a15f89366046d9258f267542bc3a994909ec52febe692a049529832ea4", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 273, - "hasStructuralAnalysis": true - }, - "docs/research/06-waggle-os-product-overview.md": { - "filePath": "docs/research/06-waggle-os-product-overview.md", - "contentHash": "4b2c901134eda3b842db12ee668a3fe2fd1895d4c0c2b05de9056e5b82e33801", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 407, - "hasStructuralAnalysis": true - }, - "docs/research/07-skills-connectors-strategy.md": { - "filePath": "docs/research/07-skills-connectors-strategy.md", - "contentHash": "96274bc3d41e6213855115354ac11aa59e3cbca30b5e02ea0efdac0d65338524", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 356, - "hasStructuralAnalysis": true - }, - "docs/research/PAPER-1-CONCEPT_hive-mind-memory.md": { - "filePath": "docs/research/PAPER-1-CONCEPT_hive-mind-memory.md", - "contentHash": "9ad924651956229bb3ea35e0e95851956d6962a0a7235f3bf2f30b24b623b83e", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 132, - "hasStructuralAnalysis": true - }, - "docs/research/PAPER-2-CONCEPT_gepa-evolution.md": { - "filePath": "docs/research/PAPER-2-CONCEPT_gepa-evolution.md", - "contentHash": "411225ac8bc1b563d18e10fc7660a3fcf17d3ed6164b1cf26153e7af24cba6f5", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 175, - "hasStructuralAnalysis": true - }, - "docs/research/README.md": { - "filePath": "docs/research/README.md", - "contentHash": "f115ebca578c17dfd4f6f02005793550fdcf95f4c574bfc35f7f377f6d1b6179", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 216, - "hasStructuralAnalysis": true - }, - "docs/research/waggle-hive-mind-paper.md": { - "filePath": "docs/research/waggle-hive-mind-paper.md", - "contentHash": "3898fb2f9cec870ac30dd1a2b79ec90acb83dd78be33a5cecf497b155062c5c5", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 1145, - "hasStructuralAnalysis": true - }, - "docs/sessions/2026-05-01-S1-handoff.md": { - "filePath": "docs/sessions/2026-05-01-S1-handoff.md", - "contentHash": "7ff73e185c3e86946ad6ebfc7ac63c1f7f5abe84a20ab92c29163a1d026cd06a", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 99, - "hasStructuralAnalysis": true - }, - "docs/specs/agent-backend-gaps.md": { - "filePath": "docs/specs/agent-backend-gaps.md", - "contentHash": "152e2d3a9a995f713612de583992c9f6a477707ef437d9f35c1a1185f6f5c9ee", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 162, - "hasStructuralAnalysis": true - }, - "docs/specs/PROMPT-ASSEMBLER-V4.md": { - "filePath": "docs/specs/PROMPT-ASSEMBLER-V4.md", - "contentHash": "f6fb08823476db5106e6dec1d76ed1b70dbbd2d7d70ce7069d3f527b48ee4f97", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 640, - "hasStructuralAnalysis": true - }, - "docs/specs/WIKI-COMPILER-SPEC.md": { - "filePath": "docs/specs/WIKI-COMPILER-SPEC.md", - "contentHash": "c37e355d1ae12e1bc18215b6414dba6eba79419f3b53b78639fb1436e4c6b67f", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 1688, - "hasStructuralAnalysis": true - }, - "docs/strategy/2026-05-02-methodology-doc-FINAL.md": { - "filePath": "docs/strategy/2026-05-02-methodology-doc-FINAL.md", - "contentHash": "5135d41ad6988c3534c137ee3a9ce3ad69d84ea5908ea2fe5edbe8ddd1e06fe2", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 210, - "hasStructuralAnalysis": true - }, - "docs/strategy/2026-05-05-current-state-master.md": { - "filePath": "docs/strategy/2026-05-05-current-state-master.md", - "contentHash": "8920ea7cd9a5b61c045c626edd0ececb5fc93289efec8eddc0e2b8cb3eb5d286", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 315, - "hasStructuralAnalysis": true - }, - "docs/superpowers/plans/2026-05-29-prod-readiness-phase1-network-auth.md": { - "filePath": "docs/superpowers/plans/2026-05-29-prod-readiness-phase1-network-auth.md", - "contentHash": "00e6c796ff055647738f169ab4cd244554eaa23eeeed06122157a3c5f248771b", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 221, - "hasStructuralAnalysis": true - }, - "docs/superpowers/specs/2026-05-23-waggle-os-ux-design.md": { - "filePath": "docs/superpowers/specs/2026-05-23-waggle-os-ux-design.md", - "contentHash": "0daaec9d1f1c8c8f4507c0c5295cf07bc2f07bf155b803c1cb3eec8a41666a6d", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 306, - "hasStructuralAnalysis": true - }, - "docs/superpowers/specs/2026-06-01-hermes-compact-on-stop-design.md": { - "filePath": "docs/superpowers/specs/2026-06-01-hermes-compact-on-stop-design.md", - "contentHash": "0b5753f28f18f3789ee65fce5fe8e712ee6e157266f29d40f2182139d16d3254", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 210, - "hasStructuralAnalysis": true - }, - "docs/superpowers/specs/2026-06-01-openclaw-dedup-design.md": { - "filePath": "docs/superpowers/specs/2026-06-01-openclaw-dedup-design.md", - "contentHash": "78917ecc9e411c9cbfe87ffd61ff16cf68cde5af3724695a97b9afd94aecdfdc", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 88, - "hasStructuralAnalysis": true - }, - "docs/superpowers/specs/2026-06-01-wave23-hook-feasibility-research.md": { - "filePath": "docs/superpowers/specs/2026-06-01-wave23-hook-feasibility-research.md", - "contentHash": "3442f72b4b67b016a911d51b1c4e365664632f68910005f833a7c721a2dd4d86", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 384, - "hasStructuralAnalysis": true - }, - "docs/superpowers/specs/2026-06-01-wave23-hook-stubs-design.md": { - "filePath": "docs/superpowers/specs/2026-06-01-wave23-hook-stubs-design.md", - "contentHash": "6b7d936fbb064b72e1bdd93b4f507ec744c15e989fbd802bea7fcf137b94e76f", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 784, - "hasStructuralAnalysis": true - }, - "docs/superpowers/specs/2026-06-09-temporal-substrate-fix-design.md": { - "filePath": "docs/superpowers/specs/2026-06-09-temporal-substrate-fix-design.md", - "contentHash": "69df66f613ac21aca1f830c941213a8704a712f5b9d04f5bb571445b3f5125eb", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 53, - "hasStructuralAnalysis": true - }, - "docs/test-plans/COMBINED-EFFECT-TEST-PLAN.docx": { - "filePath": "docs/test-plans/COMBINED-EFFECT-TEST-PLAN.docx", - "contentHash": "3c2b6f6beb23141907e9ef6feb7bb51b9d9d3ae219f262146f77c2a2f549f32b", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 111, - "hasStructuralAnalysis": false - }, - "docs/test-plans/generate-combined-plan.mjs": { - "filePath": "docs/test-plans/generate-combined-plan.mjs", - "contentHash": "3ce823979236ba767d9f07ed60fc034c991949c9e3d08765313fabaa6f0cd60a", - "functions": [ - { - "name": "heading", - "params": [ - "text" - ], - "exported": false, - "lineCount": 15 - }, - { - "name": "para", - "params": [ - "text" - ], - "exported": false, - "lineCount": 18 - }, - { - "name": "bullet", - "params": [ - "text" - ], - "exported": false, - "lineCount": 16 - }, - { - "name": "spacer", - "params": [], - "exported": false, - "lineCount": 3 - }, - { - "name": "headerCell", - "params": [ - "text", - "width" - ], - "exported": false, - "lineCount": 15 - }, - { - "name": "cell", - "params": [ - "text", - "width" - ], - "exported": false, - "lineCount": 16 - }, - { - "name": "altRow", - "params": [ - "i" - ], - "exported": false, - "lineCount": 4 - }, - { - "name": "titlePage", - "params": [], - "exported": false, - "lineCount": 71 - }, - { - "name": "section1", - "params": [], - "exported": false, - "lineCount": 23 - }, - { - "name": "section2", - "params": [], - "exported": false, - "lineCount": 41 - }, - { - "name": "section3", - "params": [], - "exported": false, - "lineCount": 81 - }, - { - "name": "section4", - "params": [], - "exported": false, - "lineCount": 19 - }, - { - "name": "section5", - "params": [], - "exported": false, - "lineCount": 23 - }, - { - "name": "section6", - "params": [], - "exported": false, - "lineCount": 47 - }, - { - "name": "section7", - "params": [], - "exported": false, - "lineCount": 40 - }, - { - "name": "section8", - "params": [], - "exported": false, - "lineCount": 49 - }, - { - "name": "section9", - "params": [], - "exported": false, - "lineCount": 58 - }, - { - "name": "section10", - "params": [], - "exported": false, - "lineCount": 19 - }, - { - "name": "section11", - "params": [], - "exported": false, - "lineCount": 58 - } - ], - "classes": [], - "imports": [ - { - "source": "module", - "specifiers": [ - "createRequire" - ] - } - ], - "exports": [], - "totalLines": 831, - "hasStructuralAnalysis": true - }, - "docs/test-plans/generate-gepa-plan.mjs": { - "filePath": "docs/test-plans/generate-gepa-plan.mjs", - "contentHash": "ae797e9b89e8f274b21e9a4e400859445d46f9c8930f4ed5601b06aa0d420735", - "functions": [ - { - "name": "heading1", - "params": [ - "text" - ], - "exported": false, - "lineCount": 15 - }, - { - "name": "heading2", - "params": [ - "text" - ], - "exported": false, - "lineCount": 15 - }, - { - "name": "heading3", - "params": [ - "text" - ], - "exported": false, - "lineCount": 15 - }, - { - "name": "para", - "params": [ - "text" - ], - "exported": false, - "lineCount": 16 - }, - { - "name": "richPara", - "params": [ - "runs" - ], - "exported": false, - "lineCount": 15 - }, - { - "name": "bullet", - "params": [ - "text" - ], - "exported": false, - "lineCount": 14 - }, - { - "name": "richBullet", - "params": [ - "runs" - ], - "exported": false, - "lineCount": 15 - }, - { - "name": "numberedItem", - "params": [ - "text", - "numberingRef" - ], - "exported": false, - "lineCount": 14 - }, - { - "name": "spacer", - "params": [], - "exported": false, - "lineCount": 3 - }, - { - "name": "makeTable", - "params": [ - "headers", - "rows", - "colWidths" - ], - "exported": false, - "lineCount": 91 - }, - { - "name": "buildTitlePage", - "params": [], - "exported": false, - "lineCount": 88 - }, - { - "name": "buildSection1", - "params": [], - "exported": false, - "lineCount": 41 - }, - { - "name": "buildSection2", - "params": [], - "exported": false, - "lineCount": 79 - }, - { - "name": "buildSection3", - "params": [], - "exported": false, - "lineCount": 32 - }, - { - "name": "buildSection4", - "params": [], - "exported": false, - "lineCount": 85 - }, - { - "name": "buildSection5", - "params": [], - "exported": false, - "lineCount": 109 - }, - { - "name": "buildSection6", - "params": [], - "exported": false, - "lineCount": 59 - }, - { - "name": "buildSection7", - "params": [], - "exported": false, - "lineCount": 71 - }, - { - "name": "buildSection8", - "params": [], - "exported": false, - "lineCount": 68 - }, - { - "name": "buildSection9", - "params": [], - "exported": false, - "lineCount": 59 - }, - { - "name": "buildSection10", - "params": [], - "exported": false, - "lineCount": 91 - }, - { - "name": "buildSection11", - "params": [], - "exported": false, - "lineCount": 65 - }, - { - "name": "buildSection12", - "params": [], - "exported": false, - "lineCount": 75 - }, - { - "name": "buildSection13", - "params": [], - "exported": false, - "lineCount": 64 - }, - { - "name": "buildSection14", - "params": [], - "exported": false, - "lineCount": 118 - } - ], - "classes": [], - "imports": [ - { - "source": "docx", - "specifiers": [ - "Document", - "Packer", - "Paragraph", - "Table", - "TableRow", - "TableCell", - "TextRun", - "HeadingLevel", - "AlignmentType", - "WidthType", - "BorderStyle", - "Header", - "Footer", - "PageNumber", - "ShadingType", - "PageBreak", - "Tab", - "TabStopType", - "convertInchesToTwip", - "NumberFormat" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "writeFileSync" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join", - "dirname" - ] - }, - { - "source": "node:url", - "specifiers": [ - "fileURLToPath" - ] - } - ], - "exports": [], - "totalLines": 1503, - "hasStructuralAnalysis": true - }, - "docs/test-plans/generate-memory-plan.mjs": { - "filePath": "docs/test-plans/generate-memory-plan.mjs", - "contentHash": "1a6a9f7d3fc218b253b0047be5f6ec9e65743b9a1f80a55427e88a24a3e54f87", - "functions": [ - { - "name": "h1", - "params": [ - "text" - ], - "exported": false, - "lineCount": 7 - }, - { - "name": "h2", - "params": [ - "text" - ], - "exported": false, - "lineCount": 7 - }, - { - "name": "h3", - "params": [ - "text" - ], - "exported": false, - "lineCount": 7 - }, - { - "name": "para", - "params": [ - "text" - ], - "exported": false, - "lineCount": 14 - }, - { - "name": "bullet", - "params": [ - "text" - ], - "exported": false, - "lineCount": 7 - }, - { - "name": "numberedItem", - "params": [ - "number", - "text" - ], - "exported": false, - "lineCount": 10 - }, - { - "name": "emptyLine", - "params": [], - "exported": false, - "lineCount": 3 - }, - { - "name": "pageBreak", - "params": [], - "exported": false, - "lineCount": 3 - }, - { - "name": "cell", - "params": [ - "text" - ], - "exported": false, - "lineCount": 18 - }, - { - "name": "makeTable", - "params": [ - "headers", - "rows" - ], - "exported": false, - "lineCount": 18 - }, - { - "name": "titlePage", - "params": [], - "exported": false, - "lineCount": 49 - }, - { - "name": "section1_executiveSummary", - "params": [], - "exported": false, - "lineCount": 24 - }, - { - "name": "section2_testSubjects", - "params": [], - "exported": false, - "lineCount": 29 - }, - { - "name": "section3_dataSources", - "params": [], - "exported": false, - "lineCount": 23 - }, - { - "name": "section4_testProtocol", - "params": [], - "exported": false, - "lineCount": 247 - }, - { - "name": "section5_successCriteria", - "params": [], - "exported": false, - "lineCount": 33 - }, - { - "name": "section6_judgeConfig", - "params": [], - "exported": false, - "lineCount": 29 - }, - { - "name": "section7_statisticalMethods", - "params": [], - "exported": false, - "lineCount": 27 - }, - { - "name": "section8_riskMitigation", - "params": [], - "exported": false, - "lineCount": 61 - }, - { - "name": "section9_timeline", - "params": [], - "exported": false, - "lineCount": 40 - }, - { - "name": "section10_appendix", - "params": [], - "exported": false, - "lineCount": 86 - }, - { - "name": "main", - "params": [], - "exported": false, - "lineCount": 68 - } - ], - "classes": [], - "imports": [ - { - "source": "node:module", - "specifiers": [ - "createRequire" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "writeFileSync" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join", - "dirname" - ] - }, - { - "source": "node:url", - "specifiers": [ - "fileURLToPath" - ] - } - ], - "exports": [], - "totalLines": 907, - "hasStructuralAnalysis": true - }, - "docs/test-plans/GEPA-EVOLUTION-TEST-PLAN.docx": { - "filePath": "docs/test-plans/GEPA-EVOLUTION-TEST-PLAN.docx", - "contentHash": "8b83c567536d9d505a6833ad526d4308b35ea58a4169983bbe9f0486327c9906", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 124, - "hasStructuralAnalysis": false - }, - "docs/test-plans/MEMORY-HARVEST-TEST-PLAN.docx": { - "filePath": "docs/test-plans/MEMORY-HARVEST-TEST-PLAN.docx", - "contentHash": "a49e81689497992384c5f971316843a742b27771edf2d9d9f7cba04eee431fae", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 137, - "hasStructuralAnalysis": false - }, - "docs/TOTAL-WORK-ESTIMATE.md": { - "filePath": "docs/TOTAL-WORK-ESTIMATE.md", - "contentHash": "44743bf8d000d541769c2d0535c9983fcd1790946daab2fd8caa435739d2dcd8", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 169, - "hasStructuralAnalysis": true - }, - "docs/ui-ux-audit-2026-05-27/BASELINE-FINDINGS.md": { - "filePath": "docs/ui-ux-audit-2026-05-27/BASELINE-FINDINGS.md", - "contentHash": "268e1924bec0d541d6fc8963050e3631cf884f658eb5e1c956838baff9694079", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 222, - "hasStructuralAnalysis": true - }, - "docs/ui-ux-audit-2026-05-27/FINAL-SCORECARD.md": { - "filePath": "docs/ui-ux-audit-2026-05-27/FINAL-SCORECARD.md", - "contentHash": "9953c6e56cf3ab86adcd74acc6faf248fe21dd1ab3e43093992b44d9fbd047f9", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 90, - "hasStructuralAnalysis": true - }, - "docs/ui-ux-audit-2026-05-27/FIX-LIST.md": { - "filePath": "docs/ui-ux-audit-2026-05-27/FIX-LIST.md", - "contentHash": "23549b6e530119077a6bacbb0af5f00c252e29df14d27b8430611d4db8eecb13", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 47, - "hasStructuralAnalysis": true - }, - "docs/ui-ux-audit-2026-05-27/ITER-1-RESULTS.md": { - "filePath": "docs/ui-ux-audit-2026-05-27/ITER-1-RESULTS.md", - "contentHash": "fccbf91069dd6b32453b003b7ab86200aca920c1d8bfeefedeacbf514057ac0a", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 58, - "hasStructuralAnalysis": true - }, - "docs/ui-ux-audit-2026-05-27/PERSONAS.md": { - "filePath": "docs/ui-ux-audit-2026-05-27/PERSONAS.md", - "contentHash": "14bfe4860a4d3dfdde6f5a89e3d96aa3dab69e9b60f81790586c3f4104cbf3cf", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 105, - "hasStructuralAnalysis": true - }, - "docs/ui-ux-audit-2026-05-27/PLAN.md": { - "filePath": "docs/ui-ux-audit-2026-05-27/PLAN.md", - "contentHash": "8f1632a7160db70af98fca67027041573fa0e7c6e307f816d5dfdb6d5dfd6e29", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 25, - "hasStructuralAnalysis": true - }, - "docs/UX_REFACTOR_STATE_AUDIT.md": { - "filePath": "docs/UX_REFACTOR_STATE_AUDIT.md", - "contentHash": "16569bfa7098a7ca97c1d5f1c87c975063289ac99f510c7170f8fb31f7af6b92", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 518, - "hasStructuralAnalysis": true - }, - "docs/UX-ASSESSMENT-2026-04-16.md": { - "filePath": "docs/UX-ASSESSMENT-2026-04-16.md", - "contentHash": "8a693cac040fdb17a03f2f81917ca3544821ed9b04e1e3b32e5d89f56e4ef853", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 317, - "hasStructuralAnalysis": true - }, - "docs/ux-disclosure-levels.md": { - "filePath": "docs/ux-disclosure-levels.md", - "contentHash": "489c9d3763b7151fca9f87d3514edfbddc6334f59fddcf9a0a12a298b9d254dc", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 339, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/_inventory/backend-routes.md": { - "filePath": "docs/ux-refactor/_inventory/backend-routes.md", - "contentHash": "8eeee4430b7f92df47eb9a4ef7e7753defa5c772858a22e8caa72ccdc91d7510", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 608, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/_inventory/frontend.md": { - "filePath": "docs/ux-refactor/_inventory/frontend.md", - "contentHash": "7b22fc581c13b725b821bfdae03a4f5ad151b438026a909093affa9c775e5c7b", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 381, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/_inventory/substrate-types.md": { - "filePath": "docs/ux-refactor/_inventory/substrate-types.md", - "contentHash": "fe0fe5cf46be9f26fd8c21820be21ac5b17177799c342e1102a74077c4c543db", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 287, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/_phase1-contract.md": { - "filePath": "docs/ux-refactor/_phase1-contract.md", - "contentHash": "2a6534140cd4c4d02d6a5d9c4f67c2be7b6828703214478f6d5b4ad976f31d15", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 198, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/2D-BUILD-PLAN.md": { - "filePath": "docs/ux-refactor/2D-BUILD-PLAN.md", - "contentHash": "41590829038c2c6f8e0ccdd07c9bdb83dafbeaf0b68b2c857b75157e472de5ab", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 336, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/appshell-conversion-plan.md": { - "filePath": "docs/ux-refactor/appshell-conversion-plan.md", - "contentHash": "76b1b3210e9fee49ae796afc6740fe0c36308e0ab23ead234d1896439d8ae960", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 291, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/deltas/backend-api-delta.md": { - "filePath": "docs/ux-refactor/deltas/backend-api-delta.md", - "contentHash": "9932836aceccc021ac095eb166e28306137260ec9df142fb6bd6768658de4276", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 384, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/deltas/coverage-check.md": { - "filePath": "docs/ux-refactor/deltas/coverage-check.md", - "contentHash": "c2a006fec5d458dd805f23dde69b59de4af1a44ad7a9eb1282f0f931b5ccb6d7", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 273, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/deltas/design-system-delta.md": { - "filePath": "docs/ux-refactor/deltas/design-system-delta.md", - "contentHash": "152172540ea712d15a4ba6e90a073f84814dee253ec09a5d27604a46dd5b34d9", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 174, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/deltas/open-questions.md": { - "filePath": "docs/ux-refactor/deltas/open-questions.md", - "contentHash": "084404ffd87d76655d689b447806a34b4940b50b503cb52641e27224b0295774", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 702, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/deltas/rbac-security-delta.md": { - "filePath": "docs/ux-refactor/deltas/rbac-security-delta.md", - "contentHash": "45a0d1e3924d35e03892f15a429edd7aa6b5c623742bfb495f919a85d46fcf94", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 203, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/deltas/shared-types-delta.md": { - "filePath": "docs/ux-refactor/deltas/shared-types-delta.md", - "contentHash": "d376192231d5bfc3528c294296513a7b6c18be616b774cdb97030eb463cc4685", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 419, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/gap-cards/S00-appshell-ia.md": { - "filePath": "docs/ux-refactor/gap-cards/S00-appshell-ia.md", - "contentHash": "f3fff0a3db4e74f5866f0db03fdafcc0baa88ebc0607af068043d8716df1b787", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 270, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/gap-cards/S01-home-cockpit.md": { - "filePath": "docs/ux-refactor/gap-cards/S01-home-cockpit.md", - "contentHash": "b2db3964131850f19628c03b6fa26c3b6e3ca443f1b0a4675b9b104a40ac2242", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 198, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/gap-cards/S02-workspace-desktop.md": { - "filePath": "docs/ux-refactor/gap-cards/S02-workspace-desktop.md", - "contentHash": "6adf1f59faccdb0adaac9e372ff72fb7c7b1edf0664885be28be6bfa99fade26", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 220, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/gap-cards/S03-command-center.md": { - "filePath": "docs/ux-refactor/gap-cards/S03-command-center.md", - "contentHash": "1bf79bc1f4904ebc29fc6e8ce82e39392e66f6bb1145dc8f0b2c42147dfa3c21", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 183, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/gap-cards/S04-memory-center.md": { - "filePath": "docs/ux-refactor/gap-cards/S04-memory-center.md", - "contentHash": "5314762e3b517ccf39afcc17c3e0a42632a2eeec57e2ecc18043f912751dec6c", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 268, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/gap-cards/S05-artifact-center.md": { - "filePath": "docs/ux-refactor/gap-cards/S05-artifact-center.md", - "contentHash": "7638393aa612a1dfc5a6ad39a12a1ed693dd9dbe91c30fbf0e5beb4b97ed3e65", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 244, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/gap-cards/S06-skills-hub.md": { - "filePath": "docs/ux-refactor/gap-cards/S06-skills-hub.md", - "contentHash": "01db09921840df5e39aff55a8392e0c8567aa60889d1b318cd95eb6a161c93f4", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 154, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/gap-cards/S07-connector-hub.md": { - "filePath": "docs/ux-refactor/gap-cards/S07-connector-hub.md", - "contentHash": "688e97e129162b32157bb6fa0c0bda6c24d1da71eaf28201a6d735b0ef970480", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 191, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/gap-cards/S08-mcp-hub.md": { - "filePath": "docs/ux-refactor/gap-cards/S08-mcp-hub.md", - "contentHash": "97916980b0de9435696b570e163b035f1afe744baecdcbbd2612b1d249270a6d", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 271, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/gap-cards/S09-agent-center.md": { - "filePath": "docs/ux-refactor/gap-cards/S09-agent-center.md", - "contentHash": "2ba8cb244aa382a2413f3845161c604317a8d088c5b916e2f24d869c150b2d01", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 145, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/gap-cards/S10-team-workspace.md": { - "filePath": "docs/ux-refactor/gap-cards/S10-team-workspace.md", - "contentHash": "083fafe825c87f2cba0a2ea298cc9bcc303f27415b9ca54a3347935c754b6c5b", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 275, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/gap-cards/S11-automation-center.md": { - "filePath": "docs/ux-refactor/gap-cards/S11-automation-center.md", - "contentHash": "18e8893f0ddf9cd280c9b80e7790e5cdd11ee09c179b1528a81f18354cc7b8e1", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 250, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/gap-cards/S12-first-launch.md": { - "filePath": "docs/ux-refactor/gap-cards/S12-first-launch.md", - "contentHash": "543bdaac99bcf646075c5167f42611518730cbc4765a2cd3e1e79801e7ff5316", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 226, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/gap-cards/S13-who-are-you.md": { - "filePath": "docs/ux-refactor/gap-cards/S13-who-are-you.md", - "contentHash": "d95b91395e1ca9ff509b7490d7a00758ca9ea8eac1d4bca73cba644d69970e95", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 232, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/gap-cards/S14-tool-discovery.md": { - "filePath": "docs/ux-refactor/gap-cards/S14-tool-discovery.md", - "contentHash": "1e6ad08601620a27e49dfad1044942f55f03933673d79683069d4609498ff3ac", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 251, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/gap-cards/S15-memory-import.md": { - "filePath": "docs/ux-refactor/gap-cards/S15-memory-import.md", - "contentHash": "a4c7e5e03d03b7e79dfabed7e0b2a67be79e1436ef240f51b630c667501a0e41", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 145, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/gap-cards/S16-memory-review.md": { - "filePath": "docs/ux-refactor/gap-cards/S16-memory-review.md", - "contentHash": "71dd15a8f093f1e4c15bc29af159dfc42e815ed70d7d245a2a60874f731f0146", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 279, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/gap-cards/S17-workspace-creation.md": { - "filePath": "docs/ux-refactor/gap-cards/S17-workspace-creation.md", - "contentHash": "be6ba925508eaf7265c2740e28a25b3c5424c860c868c7b827d0944f78eb06b6", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 224, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/gap-cards/S18-agent-builder.md": { - "filePath": "docs/ux-refactor/gap-cards/S18-agent-builder.md", - "contentHash": "79dd8bfb40056808d08222518174701ba63762e745d9fad8347a1c68ab0049c7", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 206, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/gap-cards/S19-skill-builder.md": { - "filePath": "docs/ux-refactor/gap-cards/S19-skill-builder.md", - "contentHash": "bbe76dac5197831182db952e12573289d8e12b2a0f01a4881ef294c899058386", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 243, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/gap-cards/S20-automation-builder.md": { - "filePath": "docs/ux-refactor/gap-cards/S20-automation-builder.md", - "contentHash": "a23e59cad07f5948dcc0c769a32052d79b66e7d9a4971268fe911fd11cd14634", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 225, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/gap-cards/S21-marketplace-extend.md": { - "filePath": "docs/ux-refactor/gap-cards/S21-marketplace-extend.md", - "contentHash": "73924c596d5ad9e2dfd60c81efa68914f7f73be43a535adcd57045988c26ce22", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 138, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/IMPLEMENTATION-PLAN.md": { - "filePath": "docs/ux-refactor/IMPLEMENTATION-PLAN.md", - "contentHash": "7ef3e04d220f396ee557144c394918e7f0981668138b3bee5f3ec7f4ac0a0f09", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 539, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/oss-sync-finding-2026-06-12.md": { - "filePath": "docs/ux-refactor/oss-sync-finding-2026-06-12.md", - "contentHash": "8f7baa26a914d510e29e85b7da11f150e4643f5640926166c3a2abd4ea5156f9", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 73, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/p1a-residuals.md": { - "filePath": "docs/ux-refactor/p1a-residuals.md", - "contentHash": "e36013443080b8ee7d0e00124967a7c9d2436cb47e133c8c7f094d902a773fd4", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 53, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/p1b-auth-gate-plan.md": { - "filePath": "docs/ux-refactor/p1b-auth-gate-plan.md", - "contentHash": "be03bb1fdabbfbce0df894e32f9a3cd4ef9a295accd7f575006f0da212584d2e", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 130, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/p1b-plan-review-record.md": { - "filePath": "docs/ux-refactor/p1b-plan-review-record.md", - "contentHash": "52f56b50ad0619aaa4f5b3d22ea1b2d72e0227e4519a9dbc3f7f62c773ea3898", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 47, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/p1b-residuals.md": { - "filePath": "docs/ux-refactor/p1b-residuals.md", - "contentHash": "27c3b298687aff10cee3b898ee24f8dd902a46342e4a0bde6817402eb46d8001", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 63, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/p2-verification-record.md": { - "filePath": "docs/ux-refactor/p2-verification-record.md", - "contentHash": "64cc433015e236e7a1d3164fe611bcb7df511fbc7b10f6d888e6de9e53c90241", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 104, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/p3-memory-center-plan.md": { - "filePath": "docs/ux-refactor/p3-memory-center-plan.md", - "contentHash": "8927c3e2c67897f54f6cffd70ea88be5c13fceac9de19e7c5c5b3623f8d13b7c", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 121, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/p3-review-record.md": { - "filePath": "docs/ux-refactor/p3-review-record.md", - "contentHash": "f9f5c256c64c9161568de60cde716da4ffe19448a4779e21b5882d40e6a16601", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 58, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/p4-launch-integrity-record.md": { - "filePath": "docs/ux-refactor/p4-launch-integrity-record.md", - "contentHash": "81ddbf1d4a2ea222b3b1613179baf674e57daf49e13883e9d9414e57070cae4e", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 125, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/p5-review-record.md": { - "filePath": "docs/ux-refactor/p5-review-record.md", - "contentHash": "4f38d0217e787e87517bc1a3c43dca7a7bd617be9f24e3a521839268dcfcfac1", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 29, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/p5-skill-governance-plan.md": { - "filePath": "docs/ux-refactor/p5-skill-governance-plan.md", - "contentHash": "86cfbcc3d9f3597d55b016746491904980ed1ff6d2aecf8d8b15df92880be510", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 112, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/p7-d15-scope.md": { - "filePath": "docs/ux-refactor/p7-d15-scope.md", - "contentHash": "7cf4594ceb768310a6158743e0e4bdb9aa8c6c20eb94310cfad52d4466ecd289", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 385, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/p7-p5-live-smoke-record.md": { - "filePath": "docs/ux-refactor/p7-p5-live-smoke-record.md", - "contentHash": "c4b6e020486869f1df4e51592d186637fb6e9efa45242bf396d79547d266777a", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 64, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/p7-track-a-review-record.md": { - "filePath": "docs/ux-refactor/p7-track-a-review-record.md", - "contentHash": "41a8ad753c715dc4a4a5cb8b314814086db8ea3c8c475a7eaa0cf943e987da7e", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 43, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/p7-track-b-review-record.md": { - "filePath": "docs/ux-refactor/p7-track-b-review-record.md", - "contentHash": "fad0922d4eb75861dbfb7fde2b4cbee6159e4831ccf1dd8a87da3aa4031a6c26", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 46, - "hasStructuralAnalysis": true - }, - "docs/ux-refactor/README.md": { - "filePath": "docs/ux-refactor/README.md", - "contentHash": "e718417873f4e8fd2688e342d78c005fab44c57f9b728dcf2446545c07ac7c72", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 122, - "hasStructuralAnalysis": true - }, - "docs/visuals/AGENT-BEHAVIOR.html": { - "filePath": "docs/visuals/AGENT-BEHAVIOR.html", - "contentHash": "90d932362a8e85dd6414f287ec4fdce6d4feed17f7e55aa3ede692e91edfdb7e", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 1164, - "hasStructuralAnalysis": false - }, - "docs/visuals/MARKETPLACE-CONNECTORS.html": { - "filePath": "docs/visuals/MARKETPLACE-CONNECTORS.html", - "contentHash": "5490311c2cf34446a941557a58869d9c7e8173157972f47b91dcc93885aa81f1", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 752, - "hasStructuralAnalysis": false - }, - "docs/visuals/STRATEGIC-LAUNCH-SEQUENCE.html": { - "filePath": "docs/visuals/STRATEGIC-LAUNCH-SEQUENCE.html", - "contentHash": "0e786e01cbb406d53103880f7f8d539183f1e82a2444b521264b340cf80f6a3d", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 1323, - "hasStructuralAnalysis": false - }, - "docs/visuals/TEAMS-ARCHITECTURE.html": { - "filePath": "docs/visuals/TEAMS-ARCHITECTURE.html", - "contentHash": "c8ef35f4acd07ed70e172836dd111802d13e82e039f6aa411fa28469bcd9f1f5", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 1043, - "hasStructuralAnalysis": false - }, - "docs/visuals/TEMPLATES-PERSONAS.html": { - "filePath": "docs/visuals/TEMPLATES-PERSONAS.html", - "contentHash": "8e459c9b49fd354298ca0e9e5f4aec35eddcb66624c826b29ed1050330bc7566", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 720, - "hasStructuralAnalysis": false - }, - "docs/visuals/TIERS-FEATURES.html": { - "filePath": "docs/visuals/TIERS-FEATURES.html", - "contentHash": "d1be592ffcd795ef0d697a18489fb4dc13bc7029dd563c0faff576bbf33449e4", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 1268, - "hasStructuralAnalysis": false - }, - "docs/visuals/WAGGLE-DANCE.html": { - "filePath": "docs/visuals/WAGGLE-DANCE.html", - "contentHash": "f2d15a8b30bc996e6a315964f719942f009b2f89679f40c30f58ae7ef43594cc", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 951, - "hasStructuralAnalysis": false - }, - "docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/_blueprint_extracted.txt": { - "filePath": "docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/_blueprint_extracted.txt", - "contentHash": "1b514eb9de0a0537dff8728d770abcf352b343e02f9db9cc85e60489cc74ae28", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 740, - "hasStructuralAnalysis": false - }, - "docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/NAMING-ERRATUM.md": { - "filePath": "docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/NAMING-ERRATUM.md", - "contentHash": "98e0c9e93497b00c83f12f8e2f07566c1e75a07a98f6c61b729f669e7bd91302", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 60, - "hasStructuralAnalysis": true - }, - "docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/Waggle_OS_Claude_Code_Implementation_Handoff.md": { - "filePath": "docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/Waggle_OS_Claude_Code_Implementation_Handoff.md", - "contentHash": "610fa3f3202a6a1f3914be66afe00df32023acbeaf91deb1cd3cb60b319bef7b", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 197, - "hasStructuralAnalysis": true - }, - "docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/Waggle_OS_Handoff_Assets/ASSET_MANIFEST.json": { - "filePath": "docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/Waggle_OS_Handoff_Assets/ASSET_MANIFEST.json", - "contentHash": "d648156ad096eba23ff0d424818b5f03b33f39333692de2e7751774dbc17873f", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 176, - "hasStructuralAnalysis": true - }, - "docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/Waggle_OS_Handoff_Assets/README.md": { - "filePath": "docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/Waggle_OS_Handoff_Assets/README.md", - "contentHash": "884033cdb3d87b56a8645c4ab23db0ca76667a67895716c6b59038858f000dc3", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 33, - "hasStructuralAnalysis": true - }, - "docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/Waggle_OS_UX_Refactor_PRD.md": { - "filePath": "docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/Waggle_OS_UX_Refactor_PRD.md", - "contentHash": "c571939a9ab64fdd00e36a1afe3d429d09e69e326ba5ea2bd653b467101639e1", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 1500, - "hasStructuralAnalysis": true - }, - "docs/WAGGLE_USER_TEST_PROTOCOL.md": { - "filePath": "docs/WAGGLE_USER_TEST_PROTOCOL.md", - "contentHash": "1bae776943878eef7880932f65808fa3452967a43b9e8516b669057568a65ee5", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 356, - "hasStructuralAnalysis": true - }, - "docs/WAGGLE-COMPLETE-CONSOLIDATED-BRIEF.md": { - "filePath": "docs/WAGGLE-COMPLETE-CONSOLIDATED-BRIEF.md", - "contentHash": "61ad3e1d1bc7024f474eeb250a61b619f7b23d38b44d0044ced6f40d6adf5245", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 662, - "hasStructuralAnalysis": true - }, - "docs/WAGGLE-CORNERSTONE.md": { - "filePath": "docs/WAGGLE-CORNERSTONE.md", - "contentHash": "78a46fbf21baa14f2a7661e269188c2b376213fb61a601f685b562ee495ef6c9", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 502, - "hasStructuralAnalysis": true - }, - "docs/WAGGLE-MEMORY-PLUGIN-BRIEF.md": { - "filePath": "docs/WAGGLE-MEMORY-PLUGIN-BRIEF.md", - "contentHash": "e3dd1682f42a711560212c37e430347889227036490a5fc40a935b46531b7596", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 403, - "hasStructuralAnalysis": true - }, - "docs/waggle-mental-model.html": { - "filePath": "docs/waggle-mental-model.html", - "contentHash": "8bba678923c7329aaca9cb8b734cbd9a8dcf3cbd8398bd4d1cc16955a4528004", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 1038, - "hasStructuralAnalysis": false - }, - "docs/waggle-os-architecture-mindmap.html": { - "filePath": "docs/waggle-os-architecture-mindmap.html", - "contentHash": "5a58e87a1262290fbdaae1833b64547ce4e7743efc6293244fb7dad28b52859b", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 216, - "hasStructuralAnalysis": false - }, - "docs/waggle-os-explained-simply.html": { - "filePath": "docs/waggle-os-explained-simply.html", - "contentHash": "9d8a5dbebe08cf7bf50b93154d6be7cb1e74dbd9062e15769e5faff97f9bdd7f", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 173, - "hasStructuralAnalysis": false - }, - "docs/waggle-os-features-and-comparison.html": { - "filePath": "docs/waggle-os-features-and-comparison.html", - "contentHash": "96b0aa78e4440718145d0cfc15ee7c7e99a4810c7c56cb3657ff99219b401ce0", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 270, - "hasStructuralAnalysis": false - }, - "docs/waggle-os-mental-model.html": { - "filePath": "docs/waggle-os-mental-model.html", - "contentHash": "52ac60c90401ba479318da0036a0c5995c310b28c11935bc96498e83fc19f8af", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 244, - "hasStructuralAnalysis": false - }, - "docs/WAGGLE-SYSTEM-MAP.md": { - "filePath": "docs/WAGGLE-SYSTEM-MAP.md", - "contentHash": "db8b1b76543aa650db635b424a61282e270198731658e5525a818eee4dae483e", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 227, - "hasStructuralAnalysis": true - }, - "docs/WAGGLE-SYSTEM-VISUAL.html": { - "filePath": "docs/WAGGLE-SYSTEM-VISUAL.html", - "contentHash": "02a74d8930228c664044550d0aebe7ce9610efb44460c10eced1db31b1e5b09d", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 1388, - "hasStructuralAnalysis": false - }, - "docs/wiki-live/egzakta-group.md": { - "filePath": "docs/wiki-live/egzakta-group.md", - "contentHash": "673959e2088e7f3c5fbe16749212ee5da6e63f3f3eda6a52203951449d9aa9d5", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 91, - "hasStructuralAnalysis": true - }, - "docs/wiki-live/index.md": { - "filePath": "docs/wiki-live/index.md", - "contentHash": "127690ea8629a8f90388749531f72376426919681592e481ce22b0757f55b25b", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 37, - "hasStructuralAnalysis": true - }, - "docs/wiki-live/kvark.md": { - "filePath": "docs/wiki-live/kvark.md", - "contentHash": "2bf2a937b5ba9476a26adc4c222329d376c0a5ea9a552b83ce2d1456e3e31c6b", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 78, - "hasStructuralAnalysis": true - }, - "docs/wiki-live/marko-markovic.md": { - "filePath": "docs/wiki-live/marko-markovic.md", - "contentHash": "e791caa0d4421e4afda677da75b87cf6b03738e1b4efcb34e15bc6592e1f61e7", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 81, - "hasStructuralAnalysis": true - }, - "docs/wiki-live/memory-harvest.md": { - "filePath": "docs/wiki-live/memory-harvest.md", - "contentHash": "92b762c79d23ad61febb01c8a98df237486c8cfb75d39fc1f58e8564041e7742", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 114, - "hasStructuralAnalysis": true - }, - "docs/wiki-live/synthesis-waggle-os.md": { - "filePath": "docs/wiki-live/synthesis-waggle-os.md", - "contentHash": "97653bb6e9e322c932b3210b6d4c453941aa62a28da9abda201a399533915846", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 94, - "hasStructuralAnalysis": true - }, - "docs/wiki-live/waggle-os.md": { - "filePath": "docs/wiki-live/waggle-os.md", - "contentHash": "43e514b073198c99b1de1e26499f257b43015f152b730a8a4f82af350150d1da", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 81, - "hasStructuralAnalysis": true - }, - "docs/wiki-live/wiki-compiler.md": { - "filePath": "docs/wiki-live/wiki-compiler.md", - "contentHash": "8d43e7f1762bc836f1f3e35f969a0638c6c2d77ac67c2ed707e091a9a0ae461e", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 119, - "hasStructuralAnalysis": true - }, - "docs/wiki-test/concepts/development-velocity.md": { - "filePath": "docs/wiki-test/concepts/development-velocity.md", - "contentHash": "c83ed5f82362cebcbaa7753c3ff8d6d9b5226d20429ae477579dedb2ce7fab68", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 93, - "hasStructuralAnalysis": true - }, - "docs/wiki-test/concepts/mind-architecture.md": { - "filePath": "docs/wiki-test/concepts/mind-architecture.md", - "contentHash": "b5f7e6c778c5c805fb6a93419f157160550ab9e2c743b20a1c831bfa9da215fd", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 60, - "hasStructuralAnalysis": true - }, - "docs/wiki-test/entities/egzakta-group.md": { - "filePath": "docs/wiki-test/entities/egzakta-group.md", - "contentHash": "48564e42bd10ac409ba8e3d390937ecbc64505dd91ba7544d9b7a58e7c7053dd", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 59, - "hasStructuralAnalysis": true - }, - "docs/wiki-test/entities/kvark.md": { - "filePath": "docs/wiki-test/entities/kvark.md", - "contentHash": "af767ba98a4921169f06880b9a190cddb95c1da60e9946ba47179344a7138534", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 61, - "hasStructuralAnalysis": true - }, - "docs/wiki-test/entities/marko-markovic.md": { - "filePath": "docs/wiki-test/entities/marko-markovic.md", - "contentHash": "4a52aa53bb5f390e3ef2d5ebdc167762c7053965b7352395253ff7bc5fd83051", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 82, - "hasStructuralAnalysis": true - }, - "docs/wiki-test/entities/waggle-os.md": { - "filePath": "docs/wiki-test/entities/waggle-os.md", - "contentHash": "96b10b83fabc264549de5b0c7b95fcbab85ba9313d5c3a0f9fe8ce6ff8e31e45", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 101, - "hasStructuralAnalysis": true - }, - "docs/wiki-test/health.md": { - "filePath": "docs/wiki-test/health.md", - "contentHash": "9eebb477621945e60429a7da70a13e4b420332acd4af81f1b5d433902fd9b736", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 92, - "hasStructuralAnalysis": true - }, - "docs/wiki-test/index.md": { - "filePath": "docs/wiki-test/index.md", - "contentHash": "7a92c8001113b13ff6fbeebea1694ce5296344f9c682fa8f6b231dad7cc29aa6", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 52, - "hasStructuralAnalysis": true - }, - "eslint.config.js": { - "filePath": "eslint.config.js", - "contentHash": "4e45c3dcec6961f89dabbe48242990984e93acb5172cf7df7dcc8020b4bf47fa", - "functions": [], - "classes": [], - "imports": [ - { - "source": "@eslint/js", - "specifiers": [ - "js" - ] - }, - { - "source": "globals", - "specifiers": [ - "globals" - ] - }, - { - "source": "eslint-plugin-react-hooks", - "specifiers": [ - "reactHooks" - ] - }, - { - "source": "typescript-eslint", - "specifiers": [ - "tseslint" - ] - } - ], - "exports": [], - "totalLines": 84, - "hasStructuralAnalysis": true - }, - "EVAL-RESULTS-V5.md": { - "filePath": "EVAL-RESULTS-V5.md", - "contentHash": "0bbeda0a6d6edde6e4e805eec9d22b2eb397b7858015e2cbd8e2add89a01bb92", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 259, - "hasStructuralAnalysis": true - }, - "EVAL-RESULTS.md": { - "filePath": "EVAL-RESULTS.md", - "contentHash": "5504bf3423ad8dda60dc4958cf8c6a5711a865dd46feb5f2d72b85d85b3bde5a", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 247, - "hasStructuralAnalysis": true - }, - "gepa-phase-5/canary-kickoff.jsonl": { - "filePath": "gepa-phase-5/canary-kickoff.jsonl", - "contentHash": "141903d5020e279b4db69ea684348f34ae004d41b871cae8cbb9805e7eee643c", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 2, - "hasStructuralAnalysis": false - }, - "gepa-phase-5/cost-probe-2026-04-29-summary.md": { - "filePath": "gepa-phase-5/cost-probe-2026-04-29-summary.md", - "contentHash": "496919b00a09ccef71977fe7f83585ddaa9f500bfbe18872cb69e3f6550ddd4f", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 33, - "hasStructuralAnalysis": true - }, - "gepa-phase-5/cost-probe-2026-04-29.jsonl": { - "filePath": "gepa-phase-5/cost-probe-2026-04-29.jsonl", - "contentHash": "aedeebe91da3bb10190bdf8dbc76205c1b01fd6df7914019944bd2475f87d96b", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 11, - "hasStructuralAnalysis": false - }, - "gepa-phase-5/cross-stream.md": { - "filePath": "gepa-phase-5/cross-stream.md", - "contentHash": "4998a93cbf3b37bff035b4f41af08b7a342e912e93226cb4081a39db6c4a333f", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 121, - "hasStructuralAnalysis": true - }, - "gepa-phase-5/exit-criteria-coverage.md": { - "filePath": "gepa-phase-5/exit-criteria-coverage.md", - "contentHash": "fd8533c3b3c46196c18ec1353daca32d4ae47856e99ed764dc1be2fc74e3f87a", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 89, - "hasStructuralAnalysis": true - }, - "gepa-phase-5/manifest.yaml": { - "filePath": "gepa-phase-5/manifest.yaml", - "contentHash": "62bc1e33afa6c03b7252be70f59df971a41bbb73bb69206c3342388138eb4393", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 420, - "hasStructuralAnalysis": true - }, - "gepa-phase-5/preflight-evidence.md": { - "filePath": "gepa-phase-5/preflight-evidence.md", - "contentHash": "bc1aac49de54247007d1f0bdc89227166892cbee7c46827c979a50602b09944e", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 371, - "hasStructuralAnalysis": true - }, - "gepa-phase-5/scripts/cost-probe.ts": { - "filePath": "gepa-phase-5/scripts/cost-probe.ts", - "contentHash": "13295a5bd18d2b7409a66d0f8fefa5a8b0060ea63a4187f342287bb3bbbdb53f", - "functions": [ - { - "name": "appendJsonl", - "params": [ - "file", - "row" - ], - "exported": false, - "lineCount": 3 - }, - { - "name": "callViaLitellm", - "params": [ - "model", - "system", - "user", - "max_tokens" - ], - "exported": false, - "lineCount": 37 - }, - { - "name": "probe", - "params": [ - "variant", - "prompt" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 48 - }, - { - "name": "percentile", - "params": [ - "values", - "p" - ], - "returnType": "number", - "exported": false, - "lineCount": 6 - }, - { - "name": "summarize", - "params": [ - "results", - "variant" - ], - "returnType": "VariantSummary", - "exported": false, - "lineCount": 28 - }, - { - "name": "main", - "params": [], - "exported": false, - "lineCount": 114 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:url", - "specifiers": [ - "fileURLToPath" - ] - }, - { - "source": "../../packages/agent/src/prompt-shapes/gepa-evolved/claude-gen1-v1.js", - "specifiers": [ - "claudeGen1V1Shape" - ] - }, - { - "source": "../../packages/agent/src/prompt-shapes/gepa-evolved/qwen-thinking-gen1-v1.js", - "specifiers": [ - "qwenThinkingGen1V1Shape" - ] - } - ], - "exports": [], - "totalLines": 426, - "hasStructuralAnalysis": true - }, - "gepa-phase-5/scripts/phase-5-daily-summary.ts": { - "filePath": "gepa-phase-5/scripts/phase-5-daily-summary.ts", - "contentHash": "a72b907f20ef6343b0b3afc9de825d895830c17750f4c21cdf1963127b22a29a", - "functions": [ - { - "name": "todayIsoUtc", - "params": [], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "readJsonlSafe", - "params": [ - "filePath" - ], - "returnType": "T[]", - "exported": false, - "lineCount": 6 - }, - { - "name": "p50", - "params": [ - "values" - ], - "returnType": "number | null", - "exported": false, - "lineCount": 5 - }, - { - "name": "p95", - "params": [ - "values" - ], - "returnType": "number | null", - "exported": false, - "lineCount": 5 - }, - { - "name": "mean", - "params": [ - "values" - ], - "returnType": "number | null", - "exported": false, - "lineCount": 4 - }, - { - "name": "ensureDir", - "params": [ - "dir" - ], - "returnType": "void", - "exported": false, - "lineCount": 3 - }, - { - "name": "summarizeVariant", - "params": [ - "variant", - "entries" - ], - "returnType": "VariantSummary", - "exported": false, - "lineCount": 28 - }, - { - "name": "fmtNum", - "params": [ - "v", - "decimals" - ], - "returnType": "string", - "exported": false, - "lineCount": 4 - }, - { - "name": "formatMarkdown", - "params": [ - "date", - "summaries", - "alerts" - ], - "returnType": "string", - "exported": false, - "lineCount": 74 - }, - { - "name": "main", - "params": [], - "returnType": "void", - "exported": false, - "lineCount": 33 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:url", - "specifiers": [ - "fileURLToPath" - ] - } - ], - "exports": [], - "totalLines": 245, - "hasStructuralAnalysis": true - }, - "judging/FINAL-REPORT.md": { - "filePath": "judging/FINAL-REPORT.md", - "contentHash": "dc759f3b277a90d94f29382b124c49cec6499f43f0cfd23805c0b38ee8fe08c3", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 80, - "hasStructuralAnalysis": true - }, - "judging/judge-1-novice.md": { - "filePath": "judging/judge-1-novice.md", - "contentHash": "994f69ed59979a0719df17c1c1c7afa0d1ac9c175ab46c972d40e4eacc3b377d", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 84, - "hasStructuralAnalysis": true - }, - "judging/judge-2-casual-professional.md": { - "filePath": "judging/judge-2-casual-professional.md", - "contentHash": "da9600a70ec2e69d067e54b4f76efd2f8c58e98287aafb7317108960cad1b950", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 69, - "hasStructuralAnalysis": true - }, - "judging/judge-3-power-user.md": { - "filePath": "judging/judge-3-power-user.md", - "contentHash": "02697c1d6d0e355058d0863a0f2590fe9270391845032ec1d76f7aa98433bde3", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 172, - "hasStructuralAnalysis": true - }, - "judging/judge-4-junior-developer.md": { - "filePath": "judging/judge-4-junior-developer.md", - "contentHash": "a07e97b56c789a98114d632dc53e2b006940d501289f83ed387f47566e3c0b35", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 84, - "hasStructuralAnalysis": true - }, - "judging/judge-5-senior-skeptic.md": { - "filePath": "judging/judge-5-senior-skeptic.md", - "contentHash": "377d07041db75accb2dc3b13fc93f1d9735560119b4d632d772aa24083c99f5f", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 82, - "hasStructuralAnalysis": true - }, - "judging/round1-fixes.md": { - "filePath": "judging/round1-fixes.md", - "contentHash": "d4539a75b7851fcbd80a9367f3121b25e88944a72cec98fac90992b22819865c", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 32, - "hasStructuralAnalysis": true - }, - "judging/round2/judge-1-novice.md": { - "filePath": "judging/round2/judge-1-novice.md", - "contentHash": "97931d1bee4f37f262907aebad7ce6480b3a0c332bd4f95dbf62534ba07cb303", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 81, - "hasStructuralAnalysis": true - }, - "judging/round2/judge-2-casual-professional.md": { - "filePath": "judging/round2/judge-2-casual-professional.md", - "contentHash": "8856ed0c1a40dfea8e93acd400c8a6b884217ea94caf953b66e0b8cfc159baf4", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 164, - "hasStructuralAnalysis": true - }, - "judging/round2/judge-3-power-user.md": { - "filePath": "judging/round2/judge-3-power-user.md", - "contentHash": "7865104cf7cec9e77c7395b7b091985074996eb79c3295b4103d9f63f9aea3c9", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 76, - "hasStructuralAnalysis": true - }, - "judging/round2/judge-4-junior-developer.md": { - "filePath": "judging/round2/judge-4-junior-developer.md", - "contentHash": "dd58f08f92568cf5e466070c38ba7110586c11b096f7f61141a1e359f5939643", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 67, - "hasStructuralAnalysis": true - }, - "judging/round2/judge-5-senior-skeptic.md": { - "filePath": "judging/round2/judge-5-senior-skeptic.md", - "contentHash": "8d504114d9c34621be859bfb715e4cb0b63adeea8082ff1d8ed6a663e4904095", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 120, - "hasStructuralAnalysis": true - }, - "judging/round2/verifier-report.md": { - "filePath": "judging/round2/verifier-report.md", - "contentHash": "88afc778b36433bdc7473c5740fde1b0c1aa69d9ef29d55a524784571c12b757", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 92, - "hasStructuralAnalysis": true - }, - "judging/round3/judge-1-novice.md": { - "filePath": "judging/round3/judge-1-novice.md", - "contentHash": "78da0dfb42ef3a30889fce8ba986410c47efccd80a301f01fd8bd221975daf0d", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 146, - "hasStructuralAnalysis": true - }, - "judging/round3/judge-2-casual-professional.md": { - "filePath": "judging/round3/judge-2-casual-professional.md", - "contentHash": "90245ebb0e959d1ccf58d3da8dcb44b0e41b07bc8f99f2818a31d43577e5c290", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 68, - "hasStructuralAnalysis": true - }, - "judging/round3/judge-3-power-user.md": { - "filePath": "judging/round3/judge-3-power-user.md", - "contentHash": "091f5474cbd5200a743810aeb54140da1ecea747e0cb647059f1800e8c396baa", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 141, - "hasStructuralAnalysis": true - }, - "judging/round3/judge-4-junior-developer.md": { - "filePath": "judging/round3/judge-4-junior-developer.md", - "contentHash": "3c3632219d704035f96f7e319dad3d1b4c226749d4fd8b798a7100b9da8852db", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 61, - "hasStructuralAnalysis": true - }, - "judging/round3/judge-5-senior-skeptic.md": { - "filePath": "judging/round3/judge-5-senior-skeptic.md", - "contentHash": "4b642b03d790ad57c93060e24a63d39352a00bef8c3cb2f33b22f92b093c9159", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 105, - "hasStructuralAnalysis": true - }, - "judging/round3/verifier-report.md": { - "filePath": "judging/round3/verifier-report.md", - "contentHash": "c1ba36a31e9df64ab6e0d3129fb92f64e3bd9edb5b9c1beae1dc523533f094c6", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 126, - "hasStructuralAnalysis": true - }, - "judging/verifier-report.md": { - "filePath": "judging/verifier-report.md", - "contentHash": "c1f95663214a1e83debba4a32b1f07965187d06c0c4ffeae7a2b8ee1e1ed2505", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 82, - "hasStructuralAnalysis": true - }, - "litellm-config.yaml": { - "filePath": "litellm-config.yaml", - "contentHash": "400a497a5a31aee706362ffe52658ad70a09450da10cc20be3bbf73581ff3fb2", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 499, - "hasStructuralAnalysis": true - }, - "notes/error-as-empty.md": { - "filePath": "notes/error-as-empty.md", - "contentHash": "25a9502918a1eb2b4d17f5d70c53ec97b095c8725cc938f54b7bfb4123518a92", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 11, - "hasStructuralAnalysis": true - }, - "notes/judge-round1-patterns.md": { - "filePath": "notes/judge-round1-patterns.md", - "contentHash": "d80a03e3c5b071a0c24ca78d099f6de28b62317d7b35abcf87b543d466e32e85", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 18, - "hasStructuralAnalysis": true - }, - "notes/memory-import-is-the-aha.md": { - "filePath": "notes/memory-import-is-the-aha.md", - "contentHash": "430ecbdb4bae401f2b8a6581d0709e55629a56b2c88b2d2d232217a7a8ee48ee", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 11, - "hasStructuralAnalysis": true - }, - "notes/provenance-not-raw-logs.md": { - "filePath": "notes/provenance-not-raw-logs.md", - "contentHash": "4735298f7b751e914773201d2169c505a4b1fcd1bc5e08605464c1c1d3ac159d", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 11, - "hasStructuralAnalysis": true - }, - "notes/risk-vocabulary-drift.md": { - "filePath": "notes/risk-vocabulary-drift.md", - "contentHash": "aaf1994cffe97de54dacd35e964427fe79f052497f0bc8e3c119d41c8b2ddd04", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 11, - "hasStructuralAnalysis": true - }, - "notes/silent-defaults-over-ratification.md": { - "filePath": "notes/silent-defaults-over-ratification.md", - "contentHash": "f8a3273e0789ab49433d7b5061c6b6a520ccc1961f054c1376fe5df1700ce0c8", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 9, - "hasStructuralAnalysis": true - }, - "notes/staged-evidence-catch22.md": { - "filePath": "notes/staged-evidence-catch22.md", - "contentHash": "43f1e4d3bb984f71823bca617f824bc3d4b20f48d5f317951b09439cc837063e", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 15, - "hasStructuralAnalysis": true - }, - "ops/litellm/README.md": { - "filePath": "ops/litellm/README.md", - "contentHash": "ff4658152acab0705e6fb035c2cf282a619b2a781c120b9cade61ceb39f35c13", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 162, - "hasStructuralAnalysis": true - }, - "package.json": { - "filePath": "package.json", - "contentHash": "7bce8940175dfd53d15e522380440e9b8e93517937d3fb2457fd245c728e3a42", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 87, - "hasStructuralAnalysis": true - }, - "packages/admin-web/index.html": { - "filePath": "packages/admin-web/index.html", - "contentHash": "a0c5f358db86e05c658cb521919e9716cb7dc4ebd3045a91e7964ca111c4059a", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 13, - "hasStructuralAnalysis": false - }, - "packages/admin-web/package.json": { - "filePath": "packages/admin-web/package.json", - "contentHash": "a2886292a0678f80fea8e8678fbc67d94359259bb98c5e589e701dab37e5309f", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 23, - "hasStructuralAnalysis": true - }, - "packages/admin-web/src/api.ts": { - "filePath": "packages/admin-web/src/api.ts", - "contentHash": "56a23740febefe66870a93af1a13d2f1ee00f7b9e9c22c1a7ba63995e98c0824", - "functions": [ - { - "name": "getErrorMessage", - "params": [ - "error", - "fallback" - ], - "returnType": "string", - "exported": true, - "lineCount": 5 - }, - { - "name": "apiFetch", - "params": [ - "path", - "token" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 9 - }, - { - "name": "apiMutate", - "params": [ - "path", - "token", - "method", - "body" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 21 - } - ], - "classes": [], - "imports": [], - "exports": [ - "getErrorMessage", - "api" - ], - "totalLines": 211, - "hasStructuralAnalysis": true - }, - "packages/admin-web/src/App.tsx": { - "filePath": "packages/admin-web/src/App.tsx", - "contentHash": "4c67e65aa555c0786b3338b26d43196c898875833e899042dc8342e36e5782d2", - "functions": [ - { - "name": "App", - "params": [], - "exported": true, - "lineCount": 117 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "React", - "useState" - ] - }, - { - "source": "./pages/Dashboard.js", - "specifiers": [ - "Dashboard" - ] - }, - { - "source": "./pages/Jobs.js", - "specifiers": [ - "Jobs" - ] - }, - { - "source": "./pages/Audit.js", - "specifiers": [ - "Audit" - ] - }, - { - "source": "./pages/Members.js", - "specifiers": [ - "Members" - ] - }, - { - "source": "./pages/Capabilities.js", - "specifiers": [ - "Capabilities" - ] - }, - { - "source": "./pages/TeamSettings.js", - "specifiers": [ - "TeamSettings" - ] - }, - { - "source": "./pages/Analytics.js", - "specifiers": [ - "Analytics" - ] - } - ], - "exports": [ - "App" - ], - "totalLines": 139, - "hasStructuralAnalysis": true - }, - "packages/admin-web/src/main.tsx": { - "filePath": "packages/admin-web/src/main.tsx", - "contentHash": "d24c8de3e44e88b9ad2f28c6f1ad021a8d6eb68622a9313a40630b574330b72f", - "functions": [], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "React" - ] - }, - { - "source": "react-dom/client", - "specifiers": [ - "ReactDOM" - ] - }, - { - "source": "./App.js", - "specifiers": [ - "App" - ] - } - ], - "exports": [], - "totalLines": 10, - "hasStructuralAnalysis": true - }, - "packages/admin-web/src/pages/Analytics.tsx": { - "filePath": "packages/admin-web/src/pages/Analytics.tsx", - "contentHash": "f35b30ba1d3b28aeb473896deb5cebf9c0c1237c6a5342dd5961385dcff6793c", - "functions": [ - { - "name": "ActiveUsersCard", - "params": [ - "{ data }" - ], - "exported": false, - "lineCount": 21 - }, - { - "name": "TokenUsageCard", - "params": [ - "{ data }" - ], - "exported": false, - "lineCount": 42 - }, - { - "name": "TopToolsCard", - "params": [ - "{ data }" - ], - "exported": false, - "lineCount": 42 - }, - { - "name": "TopCommandsCard", - "params": [ - "{ data }" - ], - "exported": false, - "lineCount": 40 - }, - { - "name": "CapabilityGapsCard", - "params": [ - "{ data }" - ], - "exported": false, - "lineCount": 42 - }, - { - "name": "PerformanceTrendsCard", - "params": [ - "{ data }" - ], - "exported": false, - "lineCount": 29 - }, - { - "name": "Analytics", - "params": [ - "{ token, teamSlug }" - ], - "exported": true, - "lineCount": 90 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "React", - "useEffect", - "useState" - ] - }, - { - "source": "../api.js", - "specifiers": [ - "api", - "getErrorMessage", - "AnalyticsResponse" - ] - } - ], - "exports": [ - "Analytics" - ], - "totalLines": 377, - "hasStructuralAnalysis": true - }, - "packages/admin-web/src/pages/Audit.tsx": { - "filePath": "packages/admin-web/src/pages/Audit.tsx", - "contentHash": "f7b84d4d64b52d54fb3b39da750396e077a1c474086590fb5b0f8c1603ea8ec2", - "functions": [ - { - "name": "approvalLabel", - "params": [ - "entry" - ], - "returnType": "string", - "exported": false, - "lineCount": 6 - }, - { - "name": "approvalColor", - "params": [ - "entry" - ], - "returnType": "string", - "exported": false, - "lineCount": 6 - }, - { - "name": "Audit", - "params": [ - "{ token, teamSlug }" - ], - "exported": true, - "lineCount": 112 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "React", - "useEffect", - "useState" - ] - }, - { - "source": "../api.js", - "specifiers": [ - "api", - "AuditEntryResponse" - ] - } - ], - "exports": [ - "Audit" - ], - "totalLines": 162, - "hasStructuralAnalysis": true - }, - "packages/admin-web/src/pages/Capabilities.tsx": { - "filePath": "packages/admin-web/src/pages/Capabilities.tsx", - "contentHash": "ba872f6309930a4944c9217918f5fdf5b34746cfe69e0c0af6862b5ae5665c5e", - "functions": [ - { - "name": "badge", - "params": [ - "label", - "bg", - "fg" - ], - "returnType": "React.ReactElement", - "exported": false, - "lineCount": 20 - }, - { - "name": "relativeTime", - "params": [ - "dateStr" - ], - "returnType": "string", - "exported": false, - "lineCount": 12 - }, - { - "name": "PoliciesTab", - "params": [ - "{ token, teamSlug }" - ], - "exported": false, - "lineCount": 230 - }, - { - "name": "OverridesTab", - "params": [ - "{ token, teamSlug }" - ], - "exported": false, - "lineCount": 248 - }, - { - "name": "RequestsTab", - "params": [ - "{\r\n token,\r\n teamSlug,\r\n onPendingCount,\r\n}" - ], - "exported": false, - "lineCount": 226 - }, - { - "name": "Capabilities", - "params": [ - "{ token, teamSlug }" - ], - "exported": true, - "lineCount": 61 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "React", - "useCallback", - "useEffect", - "useState" - ] - }, - { - "source": "../api.js", - "specifiers": [ - "api", - "getErrorMessage", - "CapabilityPolicyResponse", - "CapabilityOverrideResponse", - "CapabilityRequestResponse" - ] - } - ], - "exports": [ - "Capabilities" - ], - "totalLines": 887, - "hasStructuralAnalysis": true - }, - "packages/admin-web/src/pages/Dashboard.tsx": { - "filePath": "packages/admin-web/src/pages/Dashboard.tsx", - "contentHash": "ef9b852f4c904924d4262a61c6f525222d6352ac5c80c523848d4e4a5d0d8940", - "functions": [ - { - "name": "StatCard", - "params": [ - "{ title, value }" - ], - "exported": false, - "lineCount": 18 - }, - { - "name": "Dashboard", - "params": [ - "{ token, teamSlug }" - ], - "exported": true, - "lineCount": 178 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "React", - "useEffect", - "useState" - ] - }, - { - "source": "../api.js", - "specifiers": [ - "api", - "getErrorMessage", - "TeamResponse", - "TaskResponse" - ] - } - ], - "exports": [ - "Dashboard" - ], - "totalLines": 232, - "hasStructuralAnalysis": true - }, - "packages/admin-web/src/pages/Jobs.tsx": { - "filePath": "packages/admin-web/src/pages/Jobs.tsx", - "contentHash": "44de2ad7f36b699deca7a339a084de0dcacaa7b8479de330988c3d912ae67c13", - "functions": [ - { - "name": "Jobs", - "params": [ - "{ token, teamSlug }" - ], - "exported": true, - "lineCount": 105 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "React", - "useEffect", - "useState" - ] - }, - { - "source": "../api.js", - "specifiers": [ - "api", - "JobResponse" - ] - } - ], - "exports": [ - "Jobs" - ], - "totalLines": 148, - "hasStructuralAnalysis": true - }, - "packages/admin-web/src/pages/Members.tsx": { - "filePath": "packages/admin-web/src/pages/Members.tsx", - "contentHash": "4170ab0340f82521a0a67b411c943f944a0de8b155821694437b673c663f7949", - "functions": [ - { - "name": "Members", - "params": [ - "{ token, teamSlug }" - ], - "exported": true, - "lineCount": 232 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "React", - "useCallback", - "useEffect", - "useState" - ] - }, - { - "source": "../api.js", - "specifiers": [ - "api", - "getErrorMessage", - "TeamMemberResponse" - ] - } - ], - "exports": [ - "Members" - ], - "totalLines": 264, - "hasStructuralAnalysis": true - }, - "packages/admin-web/src/pages/TeamSettings.tsx": { - "filePath": "packages/admin-web/src/pages/TeamSettings.tsx", - "contentHash": "6bd39c702e7da6dcb04d62b8a2cf35f219fb858ccf1cc36c18ca43e629d0b08a", - "functions": [ - { - "name": "TeamSettings", - "params": [ - "{ token, teamSlug, onTeamUpdated }" - ], - "exported": true, - "lineCount": 127 - } - ], - "classes": [], - "imports": [ - { - "source": "react", - "specifiers": [ - "React", - "useEffect", - "useState" - ] - }, - { - "source": "../api.js", - "specifiers": [ - "api", - "getErrorMessage", - "TeamResponse" - ] - } - ], - "exports": [ - "TeamSettings" - ], - "totalLines": 153, - "hasStructuralAnalysis": true - }, - "packages/admin-web/src/vite-env.d.ts": { - "filePath": "packages/admin-web/src/vite-env.d.ts", - "contentHash": "65996936fbb042915f7b74a200fcdde7e410f32a669b1ab9597cfaa4b0faddb5", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 2, - "hasStructuralAnalysis": true - }, - "packages/admin-web/tests/admin-pages.test.ts": { - "filePath": "packages/admin-web/tests/admin-pages.test.ts", - "contentHash": "248bbceada0eadfb0cc6c0e6f2b32d151e1faad73fb23eb740248129a655cc48", - "functions": [ - { - "name": "mockFetch", - "params": [ - "responses" - ], - "exported": false, - "lineCount": 29 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "react", - "specifiers": [ - "React" - ] - }, - { - "source": "@testing-library/react", - "specifiers": [ - "render", - "screen", - "waitFor" - ] - }, - { - "source": "../src/App.js", - "specifiers": [ - "App" - ] - }, - { - "source": "../src/pages/Dashboard.js", - "specifiers": [ - "Dashboard" - ] - }, - { - "source": "../src/pages/Members.js", - "specifiers": [ - "Members" - ] - }, - { - "source": "../src/pages/Capabilities.js", - "specifiers": [ - "Capabilities" - ] - }, - { - "source": "../src/pages/Jobs.js", - "specifiers": [ - "Jobs" - ] - }, - { - "source": "../src/pages/Audit.js", - "specifiers": [ - "Audit" - ] - }, - { - "source": "../src/pages/TeamSettings.js", - "specifiers": [ - "TeamSettings" - ] - }, - { - "source": "../src/pages/Analytics.js", - "specifiers": [ - "Analytics" - ] - }, - { - "source": "../src/api.js", - "specifiers": [ - "api" - ] - } - ], - "exports": [], - "totalLines": 538, - "hasStructuralAnalysis": true - }, - "packages/admin-web/tsconfig.json": { - "filePath": "packages/admin-web/tsconfig.json", - "contentHash": "20cf99b4c5c0874dfa2c3f2b1fd0765b45116a2805cfe4332d301c022d5affb4", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 16, - "hasStructuralAnalysis": true - }, - "packages/admin-web/vite.config.ts": { - "filePath": "packages/admin-web/vite.config.ts", - "contentHash": "8479f3c85da58e02bb5238519c2bd3db789feab367dd22ec835f38744420578c", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vite", - "specifiers": [ - "defineConfig" - ] - }, - { - "source": "@vitejs/plugin-react", - "specifiers": [ - "react" - ] - } - ], - "exports": [], - "totalLines": 8, - "hasStructuralAnalysis": true - }, - "packages/agent/config/model-prompt-shapes.json": { - "filePath": "packages/agent/config/model-prompt-shapes.json", - "contentHash": "779aff8aae4a54422bd14555c085d74a470caafc3d544fe7215b1fff83a0a959", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 31, - "hasStructuralAnalysis": true - }, - "packages/agent/package.json": { - "filePath": "packages/agent/package.json", - "contentHash": "c8248b52155413fbc0ca46b21a80b68a2464f0315f95f0c597ccbb443f6ba1d8", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 26, - "hasStructuralAnalysis": true - }, - "packages/agent/src/agent-comms-tools.ts": { - "filePath": "packages/agent/src/agent-comms-tools.ts", - "contentHash": "55a61594742a15059e657b969c9bb88f1d6a192048e649fa1dff0681a393fc98", - "functions": [ - { - "name": "createAgentCommsTools", - "params": [ - "bus", - "currentWorkspaceId", - "isSessionActive" - ], - "returnType": "ToolDefinition[]", - "exported": true, - "lineCount": 73 - } - ], - "classes": [], - "imports": [ - { - "source": "./tools.js", - "specifiers": [ - "ToolDefinition" - ] - }, - { - "source": "./agent-message-bus.js", - "specifiers": [ - "AgentMessageBus" - ] - } - ], - "exports": [ - "createAgentCommsTools" - ], - "totalLines": 81, - "hasStructuralAnalysis": true - }, - "packages/agent/src/agent-learning.ts": { - "filePath": "packages/agent/src/agent-learning.ts", - "contentHash": "e1261787cd519457c46f64c70e4a2a5ccc918a48b64e7ffd5fce5d17468f92b1", - "functions": [], - "classes": [ - { - "name": "AgentLearning", - "methods": [ - "constructor", - "recordSuccess", - "recordPositiveFeedback", - "recordPersonaTask", - "getSnapshot", - "formatLearningPrompt" - ], - "properties": [ - "store" - ], - "exported": true, - "lineCount": 154 - } - ], - "imports": [ - { - "source": "@waggle/core", - "specifiers": [ - "ImprovementSignalStore" - ] - } - ], - "exports": [ - "AgentLearning" - ], - "totalLines": 195, - "hasStructuralAnalysis": true - }, - "packages/agent/src/agent-loop.ts": { - "filePath": "packages/agent/src/agent-loop.ts", - "contentHash": "6a080a6f9d137885382bd08e083cb4aebe8cab14ced0548d0940c7ac86972a93", - "functions": [ - { - "name": "runAgentLoop", - "params": [ - "config" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 337 - } - ], - "classes": [], - "imports": [ - { - "source": "./tools.js", - "specifiers": [ - "ToolDefinition" - ] - }, - { - "source": "./loop-guard.js", - "specifiers": [ - "LoopGuard" - ] - }, - { - "source": "./sse-parser.js", - "specifiers": [ - "parseChatCompletionStream" - ] - }, - { - "source": "./loop-gates.js", - "specifiers": [ - "maybeFireCompletionGate", - "initialGateState" - ] - }, - { - "source": "./tool-executor.js", - "specifiers": [ - "executeToolCall" - ] - }, - { - "source": "./retry-policy.js", - "specifiers": [ - "handleNonOkResponse", - "handleNetworkError", - "initialRetryState" - ] - }, - { - "source": "./hooks.js", - "specifiers": [ - "HookRegistry" - ] - }, - { - "source": "./capability-router.js", - "specifiers": [ - "CapabilityRouter" - ] - }, - { - "source": "./trace-recorder.js", - "specifiers": [ - "TraceRecorder", - "TraceHandle" - ] - }, - { - "source": "./turn-context.js", - "specifiers": [ - "logTurnEvent" - ] - } - ], - "exports": [ - "runSoloAgent", - "runRetrievalAgentLoop", - "SoloAgentRunConfig", - "MultiStepAgentRunConfig", - "AgentRunResult", - "LlmCallFn", - "LlmCallInput", - "LlmCallResult", - "RetrievalSearchFn", - "RetrievalSearchInput", - "RetrievalSearchResult", - "NormalizationPresetName", - "BaseAgentRunConfig", - "runRetrievalAgentLoopWithRecovery", - "LoopRecoveryOptions", - "AgentRunProgressEvent", - "AgentRunProgressEventType", - "AgentRunProgressCallback", - "runAgentLoop" - ], - "totalLines": 480, - "hasStructuralAnalysis": true - }, - "packages/agent/src/agent-message-bus.ts": { - "filePath": "packages/agent/src/agent-message-bus.ts", - "contentHash": "1d0c271fa1ae1b3880504b89496b32560fbebdbb08630ab23ba7409ea18f60d4", - "functions": [], - "classes": [ - { - "name": "AgentMessageBus", - "methods": [ - "send", - "reply", - "receive", - "peek", - "pendingCount", - "cleanup" - ], - "properties": [ - "queues" - ], - "exported": true, - "lineCount": 79 - } - ], - "imports": [ - { - "source": "node:crypto", - "specifiers": [ - "randomUUID" - ] - } - ], - "exports": [ - "AgentMessageBus" - ], - "totalLines": 102, - "hasStructuralAnalysis": true - }, - "packages/agent/src/audit-tools.ts": { - "filePath": "packages/agent/src/audit-tools.ts", - "contentHash": "e0154e7b1d0ca98c266ee83220d07b6d3ddf32243b5916d17dde518eca0fdd9f", - "functions": [ - { - "name": "createAuditTools", - "params": [ - "waggleDir" - ], - "returnType": "ToolDefinition[]", - "exported": true, - "lineCount": 54 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "./tools.js", - "specifiers": [ - "ToolDefinition" - ] - } - ], - "exports": [ - "createAuditTools" - ], - "totalLines": 67, - "hasStructuralAnalysis": true - }, - "packages/agent/src/auto-identity.ts": { - "filePath": "packages/agent/src/auto-identity.ts", - "contentHash": "7fb7ccbc39ccd0f0919a7fe17b458fb915ca87947770714aa811785b27f02a31", - "functions": [ - { - "name": "ensureIdentity", - "params": [ - "identity", - "config" - ], - "returnType": "void", - "exported": true, - "lineCount": 17 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/core", - "specifiers": [ - "IdentityLayer" - ] - } - ], - "exports": [ - "ensureIdentity" - ], - "totalLines": 47, - "hasStructuralAnalysis": true - }, - "packages/agent/src/behavioral-spec.ts": { - "filePath": "packages/agent/src/behavioral-spec.ts", - "contentHash": "9df859c0ce9c2995bd3b299f6a42637394f0152ade1bc75b15a18cedaf6ad826", - "functions": [ - { - "name": "buildActiveBehavioralSpec", - "params": [ - "overrides" - ], - "returnType": "{\r\n version: string;\r\n coreLoop: string;\r\n qualityRules: string;\r\n behavioralRules: string;\r\n workPatterns: string;\r\n intelligenceDefaults: string;\r\n rules: string;\r\n}", - "exported": true, - "lineCount": 27 - }, - { - "name": "pickOverride", - "params": [ - "override", - "baseline" - ], - "returnType": "string", - "exported": false, - "lineCount": 4 - } - ], - "classes": [], - "imports": [], - "exports": [ - "BEHAVIORAL_SPEC", - "buildActiveBehavioralSpec", - "COMPACTION_PROMPT" - ], - "totalLines": 450, - "hasStructuralAnalysis": true - }, - "packages/agent/src/browser-tools.ts": { - "filePath": "packages/agent/src/browser-tools.ts", - "contentHash": "64e2db573348f13bb378b411baf9c383755f969d23e0b0b246b8c457bf3b0894", - "functions": [ - { - "name": "getPlaywright", - "params": [], - "returnType": "Promise", - "exported": false, - "lineCount": 9 - }, - { - "name": "ensureBrowser", - "params": [ - "workspacePath" - ], - "returnType": "Promise<{ browser: BrowserInstance; page: BrowserPage }>", - "exported": false, - "lineCount": 55 - }, - { - "name": "closeBrowser", - "params": [], - "returnType": "Promise", - "exported": true, - "lineCount": 11 - }, - { - "name": "_resetBrowserState", - "params": [], - "returnType": "void", - "exported": true, - "lineCount": 5 - }, - { - "name": "createBrowserTools", - "params": [ - "workspacePath" - ], - "returnType": "ToolDefinition[]", - "exported": true, - "lineCount": 236 - } - ], - "classes": [], - "imports": [ - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "./tools.js", - "specifiers": [ - "ToolDefinition" - ] - } - ], - "exports": [ - "closeBrowser", - "_resetBrowserState", - "createBrowserTools" - ], - "totalLines": 381, - "hasStructuralAnalysis": true - }, - "packages/agent/src/builtin-harnesses.ts": { - "filePath": "packages/agent/src/builtin-harnesses.ts", - "contentHash": "d0121e5dec2629e6d613e0931be1840a37d40191500e439a2abaf2d81008e7fe", - "functions": [ - { - "name": "hasToolCalls", - "params": [ - "output", - "toolNames", - "minCount" - ], - "returnType": "GateResult", - "exported": false, - "lineCount": 12 - }, - { - "name": "hasMinSections", - "params": [ - "output", - "minSections" - ], - "returnType": "GateResult", - "exported": false, - "lineCount": 16 - }, - { - "name": "hasPattern", - "params": [ - "output", - "pattern", - "description" - ], - "returnType": "GateResult", - "exported": false, - "lineCount": 9 - }, - { - "name": "hasMinLength", - "params": [ - "output", - "minChars" - ], - "returnType": "GateResult", - "exported": false, - "lineCount": 9 - }, - { - "name": "hasSpecificImprovement", - "params": [ - "output" - ], - "returnType": "GateResult", - "exported": false, - "lineCount": 27 - }, - { - "name": "getHarnessById", - "params": [ - "id" - ], - "returnType": "WorkflowHarness | undefined", - "exported": true, - "lineCount": 3 - }, - { - "name": "matchHarness", - "params": [ - "task" - ], - "returnType": "WorkflowHarness | undefined", - "exported": true, - "lineCount": 5 - } - ], - "classes": [], - "imports": [ - { - "source": "./workflow-harness.js", - "specifiers": [ - "WorkflowHarness", - "PhaseOutput", - "GateResult" - ] - } - ], - "exports": [ - "researchVerifyHarness", - "codeReviewFixHarness", - "documentDraftHarness", - "BUILTIN_HARNESSES", - "getHarnessById", - "matchHarness" - ], - "totalLines": 260, - "hasStructuralAnalysis": true - }, - "packages/agent/src/canary/phase-5-monitoring.ts": { - "filePath": "packages/agent/src/canary/phase-5-monitoring.ts", - "contentHash": "36799542b5753ce2e49c8e82d50dcc77b68c146ef8c96e8095570ff279ac686b", - "functions": [ - { - "name": "defaultClock", - "params": [], - "returnType": "Date", - "exported": false, - "lineCount": 3 - }, - { - "name": "defaultAppendLine", - "params": [ - "filePath", - "line" - ], - "returnType": "void", - "exported": false, - "lineCount": 4 - }, - { - "name": "ensureDir", - "params": [ - "dirPath" - ], - "returnType": "void", - "exported": false, - "lineCount": 5 - }, - { - "name": "isoDateUtc", - "params": [ - "d" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "sanitizeVariantForFilename", - "params": [ - "variant" - ], - "returnType": "string", - "exported": true, - "lineCount": 4 - }, - { - "name": "defaultContext", - "params": [], - "returnType": "Required> & {\r\n paths: MonitoringPaths;\r\n}", - "exported": false, - "lineCount": 12 - }, - { - "name": "withDefaults", - "params": [ - "ctx" - ], - "returnType": "Required> & {\r\n paths: MonitoringPaths;\r\n}", - "exported": false, - "lineCount": 10 - }, - { - "name": "emitMetric", - "params": [ - "entry", - "ctx" - ], - "returnType": "void", - "exported": false, - "lineCount": 7 - }, - { - "name": "emitPassIIRate", - "params": [ - "variant", - "requestId", - "passIiRate", - "options" - ], - "returnType": "void", - "exported": true, - "lineCount": 19 - }, - { - "name": "emitRetrievalEngagement", - "params": [ - "variant", - "requestId", - "retrievalCallCount", - "options" - ], - "returnType": "void", - "exported": true, - "lineCount": 19 - }, - { - "name": "emitLatency", - "params": [ - "variant", - "requestId", - "latencyMs", - "options" - ], - "returnType": "void", - "exported": true, - "lineCount": 19 - }, - { - "name": "emitCost", - "params": [ - "variant", - "requestId", - "costUsd", - "options" - ], - "returnType": "void", - "exported": true, - "lineCount": 19 - }, - { - "name": "emitError", - "params": [ - "variant", - "requestId", - "errorType", - "options" - ], - "returnType": "void", - "exported": true, - "lineCount": 20 - }, - { - "name": "checkSingleEventRollback", - "params": [ - "check", - "now" - ], - "returnType": "AlertEntry | null", - "exported": true, - "lineCount": 40 - }, - { - "name": "emitAlert", - "params": [ - "alert", - "ctx" - ], - "returnType": "void", - "exported": true, - "lineCount": 14 - }, - { - "name": "computeMovingWindowMean", - "params": [ - "values", - "windowSize" - ], - "returnType": "MovingWindowResult | null", - "exported": true, - "lineCount": 10 - }, - { - "name": "checkPassIIRateCollapse", - "params": [ - "variantPassIiSeries", - "baselinePassIi", - "variant", - "now" - ], - "returnType": "AlertEntry | null", - "exported": true, - "lineCount": 33 - }, - { - "name": "checkErrorRateSpike", - "params": [ - "variantErrorRateHourly", - "baselineErrorRate", - "variant", - "now" - ], - "returnType": "AlertEntry | null", - "exported": true, - "lineCount": 25 - }, - { - "name": "checkLoopExhaustedRate", - "params": [ - "loopExhaustedRatePct", - "variant", - "now" - ], - "returnType": "AlertEntry | null", - "exported": true, - "lineCount": 20 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:url", - "specifiers": [ - "fileURLToPath" - ] - } - ], - "exports": [ - "ROLLBACK_THRESHOLDS", - "PROMOTION_THRESHOLDS", - "sanitizeVariantForFilename", - "emitPassIIRate", - "emitRetrievalEngagement", - "emitLatency", - "emitCost", - "emitError", - "checkSingleEventRollback", - "emitAlert", - "computeMovingWindowMean", - "checkPassIIRateCollapse", - "checkErrorRateSpike", - "checkLoopExhaustedRate" - ], - "totalLines": 491, - "hasStructuralAnalysis": true - }, - "packages/agent/src/canary/phase-5-router.ts": { - "filePath": "packages/agent/src/canary/phase-5-router.ts", - "contentHash": "554df3282ae9c402b518496a04b45d926da9596492bf75d65115e2c07b467588", - "functions": [ - { - "name": "hashRequestIdToBucket", - "params": [ - "requestId" - ], - "returnType": "number", - "exported": true, - "lineCount": 12 - }, - { - "name": "clampCanaryPct", - "params": [ - "raw" - ], - "returnType": "number", - "exported": false, - "lineCount": 7 - }, - { - "name": "resolveBaseShapeName", - "params": [ - "modelAlias", - "options" - ], - "returnType": "string", - "exported": false, - "lineCount": 5 - }, - { - "name": "routeRequestToVariant", - "params": [ - "modelAlias", - "requestId", - "options" - ], - "returnType": "RouteResult", - "exported": true, - "lineCount": 39 - }, - { - "name": "listCanaryEligibleShapes", - "params": [], - "returnType": "string[]", - "exported": true, - "lineCount": 3 - }, - { - "name": "listCanaryVariants", - "params": [], - "returnType": "string[]", - "exported": true, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "../feature-flags.js", - "specifiers": [ - "FEATURE_FLAGS" - ] - }, - { - "source": "../prompt-shapes/selector.js", - "specifiers": [ - "selectShape", - "REGISTRY", - "SelectShapeOptions" - ] - }, - { - "source": "../prompt-shapes/types.js", - "specifiers": [ - "PromptShape" - ] - } - ], - "exports": [ - "BASE_TO_CANARY_VARIANT_MAP", - "hashRequestIdToBucket", - "routeRequestToVariant", - "listCanaryEligibleShapes", - "listCanaryVariants" - ], - "totalLines": 181, - "hasStructuralAnalysis": true - }, - "packages/agent/src/capability-acquisition.ts": { - "filePath": "packages/agent/src/capability-acquisition.ts", - "contentHash": "860d6ecb698710fa2cf86dc2300f752e6ed80732afbcba67edb507e2099def3f", - "functions": [ - { - "name": "extractKeywords", - "params": [ - "text" - ], - "returnType": "string[]", - "exported": false, - "lineCount": 7 - }, - { - "name": "scoreMatch", - "params": [ - "keywords", - "name", - "content" - ], - "returnType": "{ score: number; nameHits: string[]; contentHits: string[] }", - "exported": false, - "lineCount": 24 - }, - { - "name": "buildMatchReason", - "params": [ - "nameHits", - "contentHits" - ], - "returnType": "string", - "exported": false, - "lineCount": 10 - }, - { - "name": "loadStarterSkillsMeta", - "params": [ - "starterDir" - ], - "returnType": "StarterSkillMeta[]", - "exported": true, - "lineCount": 15 - }, - { - "name": "searchCapabilities", - "params": [ - "input" - ], - "returnType": "AcquisitionProposal", - "exported": true, - "lineCount": 148 - }, - { - "name": "buildProposalSummary", - "params": [ - "need", - "candidates", - "recommendation", - "alreadyHandled" - ], - "returnType": "string", - "exported": false, - "lineCount": 78 - }, - { - "name": "capitalize", - "params": [ - "s" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "validateInstallCandidate", - "params": [ - "name", - "source", - "starterSkillsDir", - "installedSkillNames" - ], - "returnType": "InstallValidation", - "exported": true, - "lineCount": 24 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "./trust-model.js", - "specifiers": [ - "assessTrust", - "formatTrustSummary", - "TrustAssessment" - ] - }, - { - "source": "./skill-frontmatter.js", - "specifiers": [ - "parseSkillFrontmatter" - ] - } - ], - "exports": [ - "loadStarterSkillsMeta", - "searchCapabilities", - "validateInstallCandidate" - ], - "totalLines": 448, - "hasStructuralAnalysis": true - }, - "packages/agent/src/capability-router.ts": { - "filePath": "packages/agent/src/capability-router.ts", - "contentHash": "954dcf70beff03e86c78434cccdd17a8e4f8dbc9e0c6dbbad0f2966320ed0d8b", - "functions": [], - "classes": [ - { - "name": "CapabilityRouter", - "methods": [ - "constructor", - "resolve" - ], - "properties": [ - "deps" - ], - "exported": true, - "lineCount": 136 - } - ], - "imports": [], - "exports": [ - "CapabilityRouter" - ], - "totalLines": 187, - "hasStructuralAnalysis": true - }, - "packages/agent/src/cli-tools.ts": { - "filePath": "packages/agent/src/cli-tools.ts", - "contentHash": "df2dcb745e646ba86131554953e904e2193911ad353ff59f9025c698a5446078", - "functions": [ - { - "name": "createCliTools", - "params": [ - "config" - ], - "returnType": "ToolDefinition[]", - "exported": true, - "lineCount": 110 - } - ], - "classes": [], - "imports": [ - { - "source": "node:child_process", - "specifiers": [ - "execFile" - ] - }, - { - "source": "node:util", - "specifiers": [ - "promisify" - ] - }, - { - "source": "./tools.js", - "specifiers": [ - "ToolDefinition" - ] - } - ], - "exports": [ - "createCliTools" - ], - "totalLines": 164, - "hasStructuralAnalysis": true - }, - "packages/agent/src/cognify.ts": { - "filePath": "packages/agent/src/cognify.ts", - "contentHash": "eef2755f2cf3f5c5117a24a268678b829bd4b11a87149e43db3c3b57ac4042f7", - "functions": [], - "classes": [ - { - "name": "CognifyPipeline", - "methods": [ - "constructor", - "cognify", - "cognifyFrame", - "cognifyBatch", - "ensureSession", - "upsertEntities", - "createCoOccurrenceRelations", - "createSemanticRelations" - ], - "properties": [ - "frames", - "sessions", - "knowledge", - "search", - "linker" - ], - "exported": true, - "lineCount": 228 - } - ], - "imports": [ - { - "source": "@waggle/core", - "specifiers": [ - "FrameStore", - "SessionStore", - "KnowledgeGraph", - "HybridSearch", - "Importance", - "FrameSource" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "createCoreLogger" - ] - }, - { - "source": "./entity-extractor.js", - "specifiers": [ - "extractEntities", - "extractRelations", - "ExtractedEntity" - ] - }, - { - "source": "./memory-linker.js", - "specifiers": [ - "MemoryLinker", - "MemoryLink" - ] - }, - { - "source": "./turn-context.js", - "specifiers": [ - "logTurnEvent" - ] - } - ], - "exports": [ - "CognifyPipeline" - ], - "totalLines": 259, - "hasStructuralAnalysis": true - }, - "packages/agent/src/combined-retrieval.ts": { - "filePath": "packages/agent/src/combined-retrieval.ts", - "contentHash": "fef9adf6c7c04aad1a59d4276b90e42d0ca958cb2d144fc56142feeebede6f5f", - "functions": [ - { - "name": "detectConflict", - "params": [ - "workspaceResults", - "kvarkResults" - ], - "returnType": "string | null", - "exported": true, - "lineCount": 26 - }, - { - "name": "extractPolarity", - "params": [ - "texts" - ], - "returnType": "Polarity", - "exported": false, - "lineCount": 10 - }, - { - "name": "mapMemoryResult", - "params": [ - "result", - "source" - ], - "returnType": "CombinedResult", - "exported": true, - "lineCount": 16 - }, - { - "name": "mapKvarkResult", - "params": [ - "result" - ], - "returnType": "CombinedResult", - "exported": true, - "lineCount": 12 - }, - { - "name": "hasSufficientLocalCoverage", - "params": [ - "results" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 4 - }, - { - "name": "shouldQueryKvark", - "params": [ - "kvarkClient", - "scope", - "localResults" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 10 - } - ], - "classes": [ - { - "name": "CombinedRetrieval", - "methods": [ - "constructor", - "search", - "searchWorkspace", - "searchPersonal", - "searchKvark" - ], - "properties": [ - "deps" - ], - "exported": true, - "lineCount": 100 - } - ], - "imports": [ - { - "source": "./kvark-tools.js", - "specifiers": [ - "parseSearchResults", - "KvarkClientLike", - "KvarkStructuredResult" - ] - }, - { - "source": "./turn-context.js", - "specifiers": [ - "logTurnEvent" - ] - } - ], - "exports": [ - "detectConflict", - "mapMemoryResult", - "mapKvarkResult", - "hasSufficientLocalCoverage", - "shouldQueryKvark", - "CombinedRetrieval" - ], - "totalLines": 307, - "hasStructuralAnalysis": true - }, - "packages/agent/src/commands/command-registry.ts": { - "filePath": "packages/agent/src/commands/command-registry.ts", - "contentHash": "82bbb2acac783b2415a25e7572ee787a39046445725eff22248410d60c519338", - "functions": [], - "classes": [ - { - "name": "CommandRegistry", - "methods": [ - "register", - "get", - "list", - "isCommand", - "search", - "execute" - ], - "properties": [ - "commands", - "aliasMap" - ], - "exported": true, - "lineCount": 84 - } - ], - "imports": [], - "exports": [ - "AGENT_LOOP_REROUTE_PREFIX", - "CommandRegistry" - ], - "totalLines": 122, - "hasStructuralAnalysis": true - }, - "packages/agent/src/commands/marketplace-commands.ts": { - "filePath": "packages/agent/src/commands/marketplace-commands.ts", - "contentHash": "1fef74bae38cc17d22c4899e75cfe64612de8693bd2aeff37f5f2e5c1c06a69b", - "functions": [ - { - "name": "formatSearchResults", - "params": [ - "data" - ], - "returnType": "string", - "exported": false, - "lineCount": 36 - }, - { - "name": "formatPacks", - "params": [ - "data" - ], - "returnType": "string", - "exported": false, - "lineCount": 40 - }, - { - "name": "formatInstalled", - "params": [ - "data" - ], - "returnType": "string", - "exported": false, - "lineCount": 35 - }, - { - "name": "marketplaceCommand", - "params": [], - "returnType": "CommandDefinition", - "exported": false, - "lineCount": 173 - }, - { - "name": "registerMarketplaceCommands", - "params": [ - "registry" - ], - "returnType": "void", - "exported": true, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "./command-registry.js", - "specifiers": [ - "CommandRegistry", - "CommandDefinition" - ] - } - ], - "exports": [ - "registerMarketplaceCommands" - ], - "totalLines": 314, - "hasStructuralAnalysis": true - }, - "packages/agent/src/commands/workflow-commands.ts": { - "filePath": "packages/agent/src/commands/workflow-commands.ts", - "contentHash": "03fb7fd2ab355d696ca731ac280f13ecc8c04190c959e6a90934ba5b588e1f93", - "functions": [ - { - "name": "catchupCommand", - "params": [], - "returnType": "CommandDefinition", - "exported": false, - "lineCount": 27 - }, - { - "name": "nowCommand", - "params": [], - "returnType": "CommandDefinition", - "exported": false, - "lineCount": 26 - }, - { - "name": "researchCommand", - "params": [], - "returnType": "CommandDefinition", - "exported": false, - "lineCount": 18 - }, - { - "name": "draftCommand", - "params": [], - "returnType": "CommandDefinition", - "exported": false, - "lineCount": 18 - }, - { - "name": "decideCommand", - "params": [], - "returnType": "CommandDefinition", - "exported": false, - "lineCount": 18 - }, - { - "name": "reviewCommand", - "params": [], - "returnType": "CommandDefinition", - "exported": false, - "lineCount": 15 - }, - { - "name": "spawnCommand", - "params": [], - "returnType": "CommandDefinition", - "exported": false, - "lineCount": 24 - }, - { - "name": "skillsCommand", - "params": [], - "returnType": "CommandDefinition", - "exported": false, - "lineCount": 19 - }, - { - "name": "statusCommand", - "params": [], - "returnType": "CommandDefinition", - "exported": false, - "lineCount": 42 - }, - { - "name": "memoryCommand", - "params": [], - "returnType": "CommandDefinition", - "exported": false, - "lineCount": 18 - }, - { - "name": "planCommand", - "params": [], - "returnType": "CommandDefinition", - "exported": false, - "lineCount": 18 - }, - { - "name": "focusCommand", - "params": [], - "returnType": "CommandDefinition", - "exported": false, - "lineCount": 21 - }, - { - "name": "helpCommand", - "params": [], - "returnType": "CommandDefinition", - "exported": false, - "lineCount": 39 - }, - { - "name": "pluginsCommand", - "params": [], - "returnType": "CommandDefinition", - "exported": false, - "lineCount": 19 - }, - { - "name": "exportCommand", - "params": [], - "returnType": "CommandDefinition", - "exported": false, - "lineCount": 49 - }, - { - "name": "importCommand", - "params": [], - "returnType": "CommandDefinition", - "exported": false, - "lineCount": 33 - }, - { - "name": "settingsCommand", - "params": [], - "returnType": "CommandDefinition", - "exported": false, - "lineCount": 11 - }, - { - "name": "searchAllCommand", - "params": [], - "returnType": "CommandDefinition", - "exported": false, - "lineCount": 15 - }, - { - "name": "connectorsCommand", - "params": [], - "returnType": "CommandDefinition", - "exported": false, - "lineCount": 11 - }, - { - "name": "cliCommand", - "params": [], - "returnType": "CommandDefinition", - "exported": false, - "lineCount": 37 - }, - { - "name": "workflowCommand", - "params": [], - "returnType": "CommandDefinition", - "exported": false, - "lineCount": 56 - }, - { - "name": "prCommand", - "params": [], - "returnType": "CommandDefinition", - "exported": false, - "lineCount": 16 - }, - { - "name": "registerWorkflowCommands", - "params": [ - "registry" - ], - "returnType": "void", - "exported": true, - "lineCount": 30 - } - ], - "classes": [], - "imports": [ - { - "source": "./command-registry.js", - "specifiers": [ - "CommandRegistry", - "CommandDefinition" - ] - }, - { - "source": "./command-registry.js", - "specifiers": [ - "AGENT_LOOP_REROUTE_PREFIX" - ] - } - ], - "exports": [ - "registerWorkflowCommands" - ], - "totalLines": 623, - "hasStructuralAnalysis": true - }, - "packages/agent/src/compliance-pdf.ts": { - "filePath": "packages/agent/src/compliance-pdf.ts", - "contentHash": "6a65ae55803294aae6d93a7f82d8aeb73175660dd521c4cc60f73411fd25fc54", - "functions": [ - { - "name": "statusBadge", - "params": [ - "status" - ], - "returnType": "Content", - "exported": false, - "lineCount": 9 - }, - { - "name": "coverContent", - "params": [ - "report", - "overrides" - ], - "returnType": "Content[]", - "exported": false, - "lineCount": 26 - }, - { - "name": "articleGrid", - "params": [ - "status" - ], - "returnType": "Content", - "exported": false, - "lineCount": 23 - }, - { - "name": "modelInventoryTable", - "params": [ - "report" - ], - "returnType": "Content", - "exported": false, - "lineCount": 41 - }, - { - "name": "oversightLogTable", - "params": [ - "report" - ], - "returnType": "Content", - "exported": false, - "lineCount": 33 - }, - { - "name": "provenanceTable", - "params": [ - "report" - ], - "returnType": "Content", - "exported": false, - "lineCount": 24 - }, - { - "name": "buildComplianceDocDefinition", - "params": [ - "report", - "overrides" - ], - "returnType": "TDocumentDefinitions", - "exported": true, - "lineCount": 88 - }, - { - "name": "renderComplianceReportPdf", - "params": [ - "report", - "overrides" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 15 - }, - { - "name": "writeComplianceReportPdf", - "params": [ - "report", - "outputPath", - "overrides" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 10 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "AuditReport", - "ComplianceStatus", - "ArticleStatus", - "AIActRiskLevel" - ] - }, - { - "source": "pdfmake/interfaces.js", - "specifiers": [ - "TDocumentDefinitions", - "Content", - "TableCell" - ] - } - ], - "exports": [ - "buildComplianceDocDefinition", - "renderComplianceReportPdf", - "writeComplianceReportPdf" - ], - "totalLines": 344, - "hasStructuralAnalysis": true - }, - "packages/agent/src/compose-evolution.ts": { - "filePath": "packages/agent/src/compose-evolution.ts", - "contentHash": "ce42c04207c322856181efa8a299a0d9e1bc175022fbea6f9d26d48899a6e920", - "functions": [ - { - "name": "defaultFeedbackFilter", - "params": [ - "feedback" - ], - "returnType": "'structural' | 'value'", - "exported": true, - "lineCount": 24 - }, - { - "name": "filterJudgeFeedback", - "params": [ - "judge", - "filter" - ], - "returnType": "Pick", - "exported": true, - "lineCount": 21 - }, - { - "name": "stripStructuralLines", - "params": [ - "feedback", - "filter" - ], - "returnType": "string", - "exported": true, - "lineCount": 11 - }, - { - "name": "schemaExecutorFromInstructionRunner", - "params": [ - "runInstructions" - ], - "returnType": "SchemaExecuteFn", - "exported": true, - "lineCount": 14 - }, - { - "name": "actualLooksLikeJson", - "params": [ - "s" - ], - "returnType": "boolean", - "exported": false, - "lineCount": 6 - }, - { - "name": "assembleAbortedResult", - "params": [ - "schemaResult", - "instructionBaseline" - ], - "returnType": "ComposeEvolutionResult", - "exported": false, - "lineCount": 30 - } - ], - "classes": [ - { - "name": "ComposeEvolution", - "methods": [ - "run" - ], - "properties": [], - "exported": true, - "lineCount": 47 - } - ], - "imports": [ - { - "source": "./evolve-schema.js", - "specifiers": [ - "EvolveSchema", - "EvolveSchemaOptions", - "EvolveSchemaResult", - "Schema", - "SchemaExecuteFn" - ] - }, - { - "source": "./iterative-optimizer.js", - "specifiers": [ - "IterativeGEPA", - "IterativeGEPAOptions", - "GEPARunResult" - ] - }, - { - "source": "./judge.js", - "specifiers": [ - "LLMJudge", - "JudgeScore" - ] - }, - { - "source": "./eval-dataset.js", - "specifiers": [ - "EvalExample" - ] - }, - { - "source": "./evolution-llm-wiring.js", - "specifiers": [ - "RUNNING_JUDGE_BRAND", - "isRunningJudge" - ] - } - ], - "exports": [ - "defaultFeedbackFilter", - "filterJudgeFeedback", - "stripStructuralLines", - "ComposeEvolution", - "schemaExecutorFromInstructionRunner", - "EvolveSchemaResult", - "GEPARunResult" - ], - "totalLines": 282, - "hasStructuralAnalysis": true - }, - "packages/agent/src/confirmation.ts": { - "filePath": "packages/agent/src/confirmation.ts", - "contentHash": "e7f6b58da0d97a0edc38a7e4fd6cc037e899873675ba20f8f1bade7e1f31507a", - "functions": [ - { - "name": "needsConfirmation", - "params": [ - "toolName", - "args" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 41 - }, - { - "name": "getApprovalClass", - "params": [ - "toolName", - "args" - ], - "returnType": "ApprovalClass", - "exported": true, - "lineCount": 20 - }, - { - "name": "classifyGatedToolRisk", - "params": [ - "toolName", - "args" - ], - "returnType": "{ riskLevel: RiskLevel; approvalClass: ApprovalClass }", - "exported": true, - "lineCount": 22 - }, - { - "name": "isCriticalNeverAutopass", - "params": [ - "toolName", - "args" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 23 - }, - { - "name": "needsConfirmationWithAutonomy", - "params": [ - "toolName", - "args", - "level" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 25 - } - ], - "classes": [ - { - "name": "ConfirmationGate", - "methods": [ - "constructor", - "confirm" - ], - "properties": [ - "interactive", - "autoApprove", - "promptFn" - ], - "exported": true, - "lineCount": 19 - } - ], - "imports": [ - { - "source": "@waggle/shared", - "specifiers": [ - "RISK_LEVELS", - "RiskLevel" - ] - }, - { - "source": "./trust-model.js", - "specifiers": [ - "deriveApprovalClass" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "ApprovalClass" - ] - } - ], - "exports": [ - "needsConfirmation", - "ApprovalClass", - "getApprovalClass", - "classifyGatedToolRisk", - "isCriticalNeverAutopass", - "needsConfirmationWithAutonomy", - "ConfirmationGate" - ], - "totalLines": 316, - "hasStructuralAnalysis": true - }, - "packages/agent/src/connector-registry.ts": { - "filePath": "packages/agent/src/connector-registry.ts", - "contentHash": "f19fa1de4aea7afc437e71b0c714a9453a4f4357918a78019d6c0f3bebcd5190", - "functions": [], - "classes": [ - { - "name": "ConnectorRegistry", - "methods": [ - "constructor", - "register", - "unregister", - "getAll", - "get", - "getConnected", - "getDefinitions", - "healthCheck", - "generateTools" - ], - "properties": [ - "connectors", - "vault", - "auditLogger" - ], - "exported": true, - "lineCount": 105 - } - ], - "imports": [ - { - "source": "./connector-sdk.js", - "specifiers": [ - "WaggleConnector", - "ConnectorResult" - ] - }, - { - "source": "./tools.js", - "specifiers": [ - "ToolDefinition" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "ConnectorDefinition", - "ConnectorHealth" - ] - } - ], - "exports": [ - "ConnectorRegistry" - ], - "totalLines": 122, - "hasStructuralAnalysis": true - }, - "packages/agent/src/connector-sdk.ts": { - "filePath": "packages/agent/src/connector-sdk.ts", - "contentHash": "e63a43eeef17a696b5e02bdf7dbe43e86385309e28222a8cfff1d218f507f6a1", - "functions": [], - "classes": [], - "imports": [ - { - "source": "@waggle/shared", - "specifiers": [ - "ConnectorDefinition", - "ConnectorHealth", - "ConnectorStatus", - "ConnectorActionMeta" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - } - ], - "exports": [], - "totalLines": 131, - "hasStructuralAnalysis": true - }, - "packages/agent/src/connector-search.ts": { - "filePath": "packages/agent/src/connector-search.ts", - "contentHash": "767b1e252deef567e5a50670b05426285a6d5efaed232067be6ef22ce9b6fc5d", - "functions": [ - { - "name": "stem", - "params": [ - "word" - ], - "returnType": "string", - "exported": false, - "lineCount": 10 - }, - { - "name": "expandQueryWords", - "params": [ - "words" - ], - "returnType": "string[]", - "exported": false, - "lineCount": 13 - }, - { - "name": "scoreEntry", - "params": [ - "server", - "query", - "words" - ], - "returnType": "number", - "exported": false, - "lineCount": 38 - }, - { - "name": "formatMatch", - "params": [ - "server", - "score" - ], - "exported": false, - "lineCount": 13 - }, - { - "name": "createConnectorSearchTools", - "params": [], - "returnType": "ToolDefinition[]", - "exported": true, - "lineCount": 105 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/shared", - "specifiers": [ - "MCP_CATALOG", - "MCP_CATEGORIES", - "McpServer" - ] - }, - { - "source": "./tools.js", - "specifiers": [ - "ToolDefinition" - ] - } - ], - "exports": [ - "createConnectorSearchTools" - ], - "totalLines": 266, - "hasStructuralAnalysis": true - }, - "packages/agent/src/connectors/airtable-connector.ts": { - "filePath": "packages/agent/src/connectors/airtable-connector.ts", - "contentHash": "d42afb4065308bd57121b80e14f1a2b0f45556b025626b47184ab8f10dfb5a5e", - "functions": [], - "classes": [ - { - "name": "AirtableConnector", - "methods": [ - "connect", - "healthCheck", - "execute", - "headers", - "listBases", - "listRecords", - "getRecord", - "createRecord", - "updateRecord", - "searchRecords" - ], - "properties": [ - "id", - "name", - "description", - "service", - "authType", - "substrate", - "logoUrl", - "category", - "setupGuide", - "actions", - "token" - ], - "exported": true, - "lineCount": 248 - } - ], - "imports": [ - { - "source": "../connector-sdk.js", - "specifiers": [ - "BaseConnector", - "ConnectorAction", - "ConnectorResult" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "ConnectorHealth" - ] - } - ], - "exports": [ - "AirtableConnector" - ], - "totalLines": 260, - "hasStructuralAnalysis": true - }, - "packages/agent/src/connectors/asana-connector.ts": { - "filePath": "packages/agent/src/connectors/asana-connector.ts", - "contentHash": "0cc98ef30ee068cdab4dcc2ca50291e8d4d77cdbe17f526f5739479ba8301894", - "functions": [], - "classes": [ - { - "name": "AsanaConnector", - "methods": [ - "connect", - "healthCheck", - "execute", - "headers", - "apiGet", - "apiPost", - "apiPut", - "listTasks", - "createTask", - "updateTask", - "listProjects", - "searchTasks" - ], - "properties": [ - "id", - "name", - "description", - "service", - "authType", - "substrate", - "logoUrl", - "category", - "setupGuide", - "actions", - "token" - ], - "exported": true, - "lineCount": 243 - } - ], - "imports": [ - { - "source": "../connector-sdk.js", - "specifiers": [ - "BaseConnector", - "ConnectorAction", - "ConnectorResult" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "ConnectorHealth" - ] - } - ], - "exports": [ - "AsanaConnector" - ], - "totalLines": 255, - "hasStructuralAnalysis": true - }, - "packages/agent/src/connectors/bitbucket-connector.ts": { - "filePath": "packages/agent/src/connectors/bitbucket-connector.ts", - "contentHash": "5ebec14ab4d7ac9b81ba6155ce8533053bddcb52c24b50775f4d69ff0c8944e5", - "functions": [], - "classes": [ - { - "name": "BitbucketConnector", - "methods": [ - "connect", - "healthCheck", - "execute", - "headers", - "listRepos", - "getUsername", - "getFile", - "createPR", - "apiGet" - ], - "properties": [ - "id", - "name", - "description", - "service", - "authType", - "substrate", - "logoUrl", - "category", - "setupGuide", - "actions", - "token" - ], - "exported": true, - "lineCount": 215 - } - ], - "imports": [ - { - "source": "../connector-sdk.js", - "specifiers": [ - "BaseConnector", - "ConnectorAction", - "ConnectorResult" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "ConnectorHealth" - ] - } - ], - "exports": [ - "BitbucketConnector" - ], - "totalLines": 227, - "hasStructuralAnalysis": true - }, - "packages/agent/src/connectors/composio-connector.ts": { - "filePath": "packages/agent/src/connectors/composio-connector.ts", - "contentHash": "8c406df66e3a25bb9b5de1ee7c54e3ee5dc00d4fedf9e68b3b3d2dd77ac37e84", - "functions": [], - "classes": [ - { - "name": "ComposioConnector", - "methods": [ - "connect", - "healthCheck", - "execute", - "headers", - "listIntegrations", - "listActions", - "executeAction", - "listConnectedAccounts", - "searchActions" - ], - "properties": [ - "id", - "name", - "description", - "service", - "authType", - "substrate", - "logoUrl", - "category", - "setupGuide", - "actions", - "apiKey" - ], - "exported": true, - "lineCount": 228 - } - ], - "imports": [ - { - "source": "../connector-sdk.js", - "specifiers": [ - "BaseConnector", - "ConnectorAction", - "ConnectorResult" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "ConnectorHealth" - ] - } - ], - "exports": [ - "ComposioConnector" - ], - "totalLines": 244, - "hasStructuralAnalysis": true - }, - "packages/agent/src/connectors/confluence-connector.ts": { - "filePath": "packages/agent/src/connectors/confluence-connector.ts", - "contentHash": "0bb76b8a7fcfdd72a99f95a2e0346f82434d8f131aae4e28fa0bd080ed7c86f4", - "functions": [], - "classes": [ - { - "name": "ConfluenceConnector", - "methods": [ - "connect", - "healthCheck", - "execute", - "headers", - "searchContent", - "getPage", - "listSpaces", - "createPage", - "updatePage" - ], - "properties": [ - "id", - "name", - "description", - "service", - "authType", - "substrate", - "logoUrl", - "category", - "setupGuide", - "actions", - "authHeader", - "baseUrl" - ], - "exported": true, - "lineCount": 264 - } - ], - "imports": [ - { - "source": "../connector-sdk.js", - "specifiers": [ - "BaseConnector", - "ConnectorAction", - "ConnectorResult" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "ConnectorHealth" - ] - } - ], - "exports": [ - "ConfluenceConnector" - ], - "totalLines": 274, - "hasStructuralAnalysis": true - }, - "packages/agent/src/connectors/discord-connector.ts": { - "filePath": "packages/agent/src/connectors/discord-connector.ts", - "contentHash": "6444722308373bc67462528f7d561144f3bbe73af27091050a650e2879b6ad70", - "functions": [], - "classes": [ - { - "name": "DiscordConnector", - "methods": [ - "connect", - "healthCheck", - "execute", - "headers", - "discordGet", - "discordPost" - ], - "properties": [ - "id", - "name", - "description", - "service", - "authType", - "substrate", - "logoUrl", - "category", - "setupGuide", - "actions", - "token" - ], - "exported": true, - "lineCount": 181 - } - ], - "imports": [ - { - "source": "../connector-sdk.js", - "specifiers": [ - "BaseConnector", - "ConnectorAction", - "ConnectorResult" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "ConnectorHealth" - ] - } - ], - "exports": [ - "DiscordConnector" - ], - "totalLines": 193, - "hasStructuralAnalysis": true - }, - "packages/agent/src/connectors/dropbox-connector.ts": { - "filePath": "packages/agent/src/connectors/dropbox-connector.ts", - "contentHash": "411a303cb8b0ce50d279323b9828ce09dbf358ec71b69a259ae4d27ee750c6b5", - "functions": [], - "classes": [ - { - "name": "DropboxConnector", - "methods": [ - "connect", - "healthCheck", - "execute", - "rpcHeaders", - "listFolder", - "getMetadata", - "searchFiles", - "downloadFile", - "uploadFile" - ], - "properties": [ - "id", - "name", - "description", - "service", - "authType", - "substrate", - "logoUrl", - "category", - "setupGuide", - "actions", - "token" - ], - "exported": true, - "lineCount": 247 - } - ], - "imports": [ - { - "source": "../connector-sdk.js", - "specifiers": [ - "BaseConnector", - "ConnectorAction", - "ConnectorResult" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "ConnectorHealth" - ] - } - ], - "exports": [ - "DropboxConnector" - ], - "totalLines": 261, - "hasStructuralAnalysis": true - }, - "packages/agent/src/connectors/email-connector.ts": { - "filePath": "packages/agent/src/connectors/email-connector.ts", - "contentHash": "f7c7b94a192e91be9df23d2c63a6ad7263a7aa6d8a3a7b29f263a876d1827b36", - "functions": [], - "classes": [ - { - "name": "EmailConnector", - "methods": [ - "connect", - "healthCheck", - "execute", - "checkRateLimit", - "headers", - "sendEmail", - "sendTemplate", - "checkDelivery" - ], - "properties": [ - "id", - "name", - "description", - "service", - "authType", - "substrate", - "logoUrl", - "category", - "setupGuide", - "actions", - "apiKey", - "fromEmail", - "fromName", - "dailySendCount", - "dailyResetDate", - "maxDailyEmails" - ], - "exported": true, - "lineCount": 212 - } - ], - "imports": [ - { - "source": "../connector-sdk.js", - "specifiers": [ - "BaseConnector", - "ConnectorAction", - "ConnectorResult" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "ConnectorHealth" - ] - } - ], - "exports": [ - "EmailConnector" - ], - "totalLines": 225, - "hasStructuralAnalysis": true - }, - "packages/agent/src/connectors/gcal-connector.ts": { - "filePath": "packages/agent/src/connectors/gcal-connector.ts", - "contentHash": "d23fda68b3fcf73ed7561948c62323eeff3a10793f88700f12a2d0e721dfbf5e", - "functions": [], - "classes": [ - { - "name": "GoogleCalendarConnector", - "methods": [ - "connect", - "healthCheck", - "execute", - "headers", - "ensureValidToken", - "listEvents", - "createEvent", - "updateEvent", - "findFreeTime" - ], - "properties": [ - "id", - "name", - "description", - "service", - "authType", - "substrate", - "logoUrl", - "category", - "setupGuide", - "actions", - "accessToken", - "refreshToken", - "expiresAt", - "clientId", - "clientSecret", - "vault" - ], - "exported": true, - "lineCount": 282 - } - ], - "imports": [ - { - "source": "../connector-sdk.js", - "specifiers": [ - "BaseConnector", - "ConnectorAction", - "ConnectorResult" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "ConnectorHealth" - ] - } - ], - "exports": [ - "GoogleCalendarConnector" - ], - "totalLines": 295, - "hasStructuralAnalysis": true - }, - "packages/agent/src/connectors/gdocs-connector.ts": { - "filePath": "packages/agent/src/connectors/gdocs-connector.ts", - "contentHash": "4784e651c1ad6a0386aa6e41187c2d1815a074f1b34ee5753a58e4d7f2b6586a", - "functions": [], - "classes": [ - { - "name": "GoogleDocsConnector", - "methods": [ - "connect", - "healthCheck", - "execute", - "headers", - "getDocument", - "createDocument", - "updateDocument", - "listComments" - ], - "properties": [ - "id", - "name", - "description", - "service", - "authType", - "substrate", - "logoUrl", - "category", - "setupGuide", - "actions", - "token" - ], - "exported": true, - "lineCount": 183 - } - ], - "imports": [ - { - "source": "../connector-sdk.js", - "specifiers": [ - "BaseConnector", - "ConnectorAction", - "ConnectorResult" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "ConnectorHealth" - ] - } - ], - "exports": [ - "GoogleDocsConnector" - ], - "totalLines": 196, - "hasStructuralAnalysis": true - }, - "packages/agent/src/connectors/gdrive-connector.ts": { - "filePath": "packages/agent/src/connectors/gdrive-connector.ts", - "contentHash": "8a659b4f324effd871ca35d4deba24d541870c2877cb57c3b2cb55fdd952f44c", - "functions": [], - "classes": [ - { - "name": "GoogleDriveConnector", - "methods": [ - "connect", - "healthCheck", - "execute", - "headers", - "listFiles", - "searchFiles", - "getFileMetadata", - "downloadFile", - "uploadFile", - "createFolder" - ], - "properties": [ - "id", - "name", - "description", - "service", - "authType", - "substrate", - "logoUrl", - "category", - "setupGuide", - "actions", - "token" - ], - "exported": true, - "lineCount": 283 - } - ], - "imports": [ - { - "source": "../connector-sdk.js", - "specifiers": [ - "BaseConnector", - "ConnectorAction", - "ConnectorResult" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "ConnectorHealth" - ] - } - ], - "exports": [ - "GoogleDriveConnector" - ], - "totalLines": 296, - "hasStructuralAnalysis": true - }, - "packages/agent/src/connectors/github-connector.ts": { - "filePath": "packages/agent/src/connectors/github-connector.ts", - "contentHash": "a77dd7e74f8c3b89d5b99f429ebb300f468dbf5ad88ae70b4e6c33980f3c5a56", - "functions": [], - "classes": [ - { - "name": "GitHubConnector", - "methods": [ - "connect", - "healthCheck", - "execute", - "headers", - "apiGet", - "apiPost" - ], - "properties": [ - "id", - "name", - "description", - "service", - "authType", - "substrate", - "logoUrl", - "category", - "setupGuide", - "actions", - "token", - "baseUrl" - ], - "exported": true, - "lineCount": 207 - } - ], - "imports": [ - { - "source": "../connector-sdk.js", - "specifiers": [ - "BaseConnector", - "ConnectorAction", - "ConnectorResult" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "ConnectorHealth" - ] - } - ], - "exports": [ - "GitHubConnector" - ], - "totalLines": 219, - "hasStructuralAnalysis": true - }, - "packages/agent/src/connectors/gitlab-connector.ts": { - "filePath": "packages/agent/src/connectors/gitlab-connector.ts", - "contentHash": "2a37682d68a495f0367fb3e376be2e552f2ba37ceaf6e3b48e7ba3542c9e588c", - "functions": [], - "classes": [ - { - "name": "GitLabConnector", - "methods": [ - "connect", - "healthCheck", - "execute", - "encodeProject", - "headers", - "apiGet", - "apiPost", - "getFile", - "searchCode" - ], - "properties": [ - "id", - "name", - "description", - "service", - "authType", - "substrate", - "logoUrl", - "category", - "setupGuide", - "actions", - "token", - "baseUrl" - ], - "exported": true, - "lineCount": 228 - } - ], - "imports": [ - { - "source": "../connector-sdk.js", - "specifiers": [ - "BaseConnector", - "ConnectorAction", - "ConnectorResult" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "ConnectorHealth" - ] - } - ], - "exports": [ - "GitLabConnector" - ], - "totalLines": 241, - "hasStructuralAnalysis": true - }, - "packages/agent/src/connectors/gmail-connector.ts": { - "filePath": "packages/agent/src/connectors/gmail-connector.ts", - "contentHash": "fc4fbf63ed88c0409154f26470e2372e58784ff91a862e8ebb6ad96730dc060e", - "functions": [], - "classes": [ - { - "name": "GmailConnector", - "methods": [ - "connect", - "healthCheck", - "execute", - "headers", - "listMessages", - "getMessage", - "sendMessage", - "searchMessages", - "listLabels" - ], - "properties": [ - "id", - "name", - "description", - "service", - "authType", - "substrate", - "logoUrl", - "category", - "setupGuide", - "actions", - "token" - ], - "exported": true, - "lineCount": 226 - } - ], - "imports": [ - { - "source": "../connector-sdk.js", - "specifiers": [ - "BaseConnector", - "ConnectorAction", - "ConnectorResult" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "ConnectorHealth" - ] - } - ], - "exports": [ - "GmailConnector" - ], - "totalLines": 238, - "hasStructuralAnalysis": true - }, - "packages/agent/src/connectors/gsheets-connector.ts": { - "filePath": "packages/agent/src/connectors/gsheets-connector.ts", - "contentHash": "0221ca6e71be5f60eabac51b75f64339ad9194828820506bb2f16d91d1aa7300", - "functions": [], - "classes": [ - { - "name": "GoogleSheetsConnector", - "methods": [ - "connect", - "healthCheck", - "execute", - "headers", - "getSpreadsheet", - "getValues", - "updateValues", - "appendValues", - "createSpreadsheet" - ], - "properties": [ - "id", - "name", - "description", - "service", - "authType", - "substrate", - "logoUrl", - "category", - "setupGuide", - "actions", - "token" - ], - "exported": true, - "lineCount": 238 - } - ], - "imports": [ - { - "source": "../connector-sdk.js", - "specifiers": [ - "BaseConnector", - "ConnectorAction", - "ConnectorResult" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "ConnectorHealth" - ] - } - ], - "exports": [ - "GoogleSheetsConnector" - ], - "totalLines": 250, - "hasStructuralAnalysis": true - }, - "packages/agent/src/connectors/hubspot-connector.ts": { - "filePath": "packages/agent/src/connectors/hubspot-connector.ts", - "contentHash": "8bc9c27e99647af9d74a5f1762804acca9cd26b26700c399d723bf16dc04c7fa", - "functions": [], - "classes": [ - { - "name": "HubSpotConnector", - "methods": [ - "connect", - "healthCheck", - "execute", - "headers", - "listObjects", - "getContact", - "createObject", - "searchContacts" - ], - "properties": [ - "id", - "name", - "description", - "service", - "authType", - "substrate", - "logoUrl", - "category", - "setupGuide", - "actions", - "token" - ], - "exported": true, - "lineCount": 232 - } - ], - "imports": [ - { - "source": "../connector-sdk.js", - "specifiers": [ - "BaseConnector", - "ConnectorAction", - "ConnectorResult" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "ConnectorHealth" - ] - } - ], - "exports": [ - "HubSpotConnector" - ], - "totalLines": 244, - "hasStructuralAnalysis": true - }, - "packages/agent/src/connectors/index.ts": { - "filePath": "packages/agent/src/connectors/index.ts", - "contentHash": "cf729dd9dca9720a0ea67ec5dd74f24155a54601cea3d57e3ee61327ccc61a5a", - "functions": [], - "classes": [], - "imports": [], - "exports": [ - "GitHubConnector", - "SlackConnector", - "JiraConnector", - "EmailConnector", - "GoogleCalendarConnector", - "DiscordConnector", - "LinearConnector", - "AsanaConnector", - "TrelloConnector", - "MondayConnector", - "NotionConnector", - "ConfluenceConnector", - "ObsidianConnector", - "HubSpotConnector", - "SalesforceConnector", - "PipedriveConnector", - "AirtableConnector", - "GitLabConnector", - "BitbucketConnector", - "DropboxConnector", - "PostgresConnector", - "GmailConnector", - "GoogleDocsConnector", - "GoogleDriveConnector", - "GoogleSheetsConnector", - "ComposioConnector", - "MSTeamsConnector", - "OutlookConnector", - "OneDriveConnector", - "OneNoteConnector" - ], - "totalLines": 31, - "hasStructuralAnalysis": true - }, - "packages/agent/src/connectors/jira-connector.ts": { - "filePath": "packages/agent/src/connectors/jira-connector.ts", - "contentHash": "af26afc14206b71128f92268293081ef599a994834a9e87cfa1dd9eac149cdf5", - "functions": [], - "classes": [ - { - "name": "JiraConnector", - "methods": [ - "connect", - "healthCheck", - "execute", - "headers", - "search", - "createIssue", - "updateIssue", - "transitionIssue" - ], - "properties": [ - "id", - "name", - "description", - "service", - "authType", - "substrate", - "logoUrl", - "category", - "setupGuide", - "actions", - "authHeader", - "baseUrl" - ], - "exported": true, - "lineCount": 247 - } - ], - "imports": [ - { - "source": "../connector-sdk.js", - "specifiers": [ - "BaseConnector", - "ConnectorAction", - "ConnectorResult" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "ConnectorHealth" - ] - } - ], - "exports": [ - "JiraConnector" - ], - "totalLines": 257, - "hasStructuralAnalysis": true - }, - "packages/agent/src/connectors/linear-connector.ts": { - "filePath": "packages/agent/src/connectors/linear-connector.ts", - "contentHash": "19754d48882a7a07e0ad910b4d5fa27bfb7ec750e4189ac5c92d7b014ab85591", - "functions": [], - "classes": [ - { - "name": "LinearConnector", - "methods": [ - "connect", - "healthCheck", - "execute", - "headers", - "graphql", - "listIssues", - "createIssue", - "updateIssue", - "searchIssues", - "listProjects", - "listTeams" - ], - "properties": [ - "id", - "name", - "description", - "service", - "authType", - "substrate", - "logoUrl", - "category", - "setupGuide", - "actions", - "token" - ], - "exported": true, - "lineCount": 226 - } - ], - "imports": [ - { - "source": "../connector-sdk.js", - "specifiers": [ - "BaseConnector", - "ConnectorAction", - "ConnectorResult" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "ConnectorHealth" - ] - } - ], - "exports": [ - "LinearConnector" - ], - "totalLines": 238, - "hasStructuralAnalysis": true - }, - "packages/agent/src/connectors/monday-connector.ts": { - "filePath": "packages/agent/src/connectors/monday-connector.ts", - "contentHash": "75a2041adf0daff1ba345baf5ae87ed5108f1a3d4e74cd4e586a95ad3438b88b", - "functions": [], - "classes": [ - { - "name": "MondayConnector", - "methods": [ - "connect", - "healthCheck", - "execute", - "headers", - "graphql", - "listBoards", - "listItems", - "createItem", - "updateItem", - "searchItems" - ], - "properties": [ - "id", - "name", - "description", - "service", - "authType", - "substrate", - "logoUrl", - "category", - "setupGuide", - "actions", - "token" - ], - "exported": true, - "lineCount": 199 - } - ], - "imports": [ - { - "source": "../connector-sdk.js", - "specifiers": [ - "BaseConnector", - "ConnectorAction", - "ConnectorResult" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "ConnectorHealth" - ] - } - ], - "exports": [ - "MondayConnector" - ], - "totalLines": 211, - "hasStructuralAnalysis": true - }, - "packages/agent/src/connectors/ms-teams-connector.ts": { - "filePath": "packages/agent/src/connectors/ms-teams-connector.ts", - "contentHash": "5816918ed3dd2e0d5e4432eda39a53b6e54f9774411e6c47316a5ac6f1d00639", - "functions": [], - "classes": [ - { - "name": "MSTeamsConnector", - "methods": [ - "connect", - "healthCheck", - "execute", - "headers", - "apiGet", - "sendChannelMessage", - "sendChatMessage" - ], - "properties": [ - "id", - "name", - "description", - "service", - "authType", - "substrate", - "logoUrl", - "category", - "setupGuide", - "actions", - "token" - ], - "exported": true, - "lineCount": 188 - } - ], - "imports": [ - { - "source": "../connector-sdk.js", - "specifiers": [ - "BaseConnector", - "ConnectorAction", - "ConnectorResult" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "ConnectorHealth" - ] - } - ], - "exports": [ - "MSTeamsConnector" - ], - "totalLines": 200, - "hasStructuralAnalysis": true - }, - "packages/agent/src/connectors/notion-connector.ts": { - "filePath": "packages/agent/src/connectors/notion-connector.ts", - "contentHash": "3712280ed064b37298b3107d1154bd769c8acbfdfedbb731b0be4ef8d979a700", - "functions": [], - "classes": [ - { - "name": "NotionConnector", - "methods": [ - "connect", - "healthCheck", - "execute", - "headers", - "apiGet", - "searchPages", - "queryDatabase", - "createPage", - "updatePage" - ], - "properties": [ - "id", - "name", - "description", - "service", - "authType", - "substrate", - "logoUrl", - "category", - "setupGuide", - "actions", - "token" - ], - "exported": true, - "lineCount": 273 - } - ], - "imports": [ - { - "source": "../connector-sdk.js", - "specifiers": [ - "BaseConnector", - "ConnectorAction", - "ConnectorResult" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "ConnectorHealth" - ] - } - ], - "exports": [ - "NotionConnector" - ], - "totalLines": 286, - "hasStructuralAnalysis": true - }, - "packages/agent/src/connectors/obsidian-connector.ts": { - "filePath": "packages/agent/src/connectors/obsidian-connector.ts", - "contentHash": "cf0020f959c8096b815b6842c46df3ea6adfa9e07ec39d57c5838399e20632ef", - "functions": [], - "classes": [ - { - "name": "ObsidianConnector", - "methods": [ - "connect", - "healthCheck", - "execute", - "resolveSafe", - "collectMarkdownFiles", - "searchNotes", - "getNote", - "listNotes", - "createNote", - "updateNote", - "listFolders" - ], - "properties": [ - "id", - "name", - "description", - "service", - "authType", - "substrate", - "logoUrl", - "category", - "setupGuide", - "actions", - "vaultPath" - ], - "exported": true, - "lineCount": 331 - } - ], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "../connector-sdk.js", - "specifiers": [ - "BaseConnector", - "ConnectorAction", - "ConnectorResult" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "ConnectorHealth" - ] - } - ], - "exports": [ - "ObsidianConnector" - ], - "totalLines": 346, - "hasStructuralAnalysis": true - }, - "packages/agent/src/connectors/onedrive-connector.ts": { - "filePath": "packages/agent/src/connectors/onedrive-connector.ts", - "contentHash": "dc6725e20908fac679971a0f4e45aa7a76465368d7177f3e7d093fecef4aaae3", - "functions": [], - "classes": [ - { - "name": "OneDriveConnector", - "methods": [ - "connect", - "healthCheck", - "execute", - "headers", - "apiGet", - "listFiles", - "getFile", - "searchFiles", - "uploadFile" - ], - "properties": [ - "id", - "name", - "description", - "service", - "authType", - "substrate", - "logoUrl", - "category", - "setupGuide", - "actions", - "token" - ], - "exported": true, - "lineCount": 200 - } - ], - "imports": [ - { - "source": "../connector-sdk.js", - "specifiers": [ - "BaseConnector", - "ConnectorAction", - "ConnectorResult" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "ConnectorHealth" - ] - } - ], - "exports": [ - "OneDriveConnector" - ], - "totalLines": 212, - "hasStructuralAnalysis": true - }, - "packages/agent/src/connectors/onenote-connector.ts": { - "filePath": "packages/agent/src/connectors/onenote-connector.ts", - "contentHash": "289df63f81040ac4f2f9aaafb5c2b904312c117ffff725fec73ed01a8d2c83e1", - "functions": [], - "classes": [ - { - "name": "OneNoteConnector", - "methods": [ - "connect", - "healthCheck", - "execute", - "headers", - "buildQuery", - "apiGet", - "listSections", - "listPages", - "getPage", - "searchPages" - ], - "properties": [ - "id", - "name", - "description", - "service", - "authType", - "substrate", - "logoUrl", - "category", - "setupGuide", - "actions", - "token" - ], - "exported": true, - "lineCount": 273 - } - ], - "imports": [ - { - "source": "../connector-sdk.js", - "specifiers": [ - "BaseConnector", - "ConnectorAction", - "ConnectorResult" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "ConnectorHealth" - ] - } - ], - "exports": [ - "OneNoteConnector" - ], - "totalLines": 293, - "hasStructuralAnalysis": true - }, - "packages/agent/src/connectors/outlook-connector.ts": { - "filePath": "packages/agent/src/connectors/outlook-connector.ts", - "contentHash": "e55218e23b525f079b982f0d41c4a2030c3666cb417b4941211235790279c112", - "functions": [], - "classes": [ - { - "name": "OutlookConnector", - "methods": [ - "connect", - "healthCheck", - "execute", - "headers", - "apiGet", - "createEvent", - "sendEmail", - "searchEmails" - ], - "properties": [ - "id", - "name", - "description", - "service", - "authType", - "substrate", - "logoUrl", - "category", - "setupGuide", - "actions", - "token" - ], - "exported": true, - "lineCount": 252 - } - ], - "imports": [ - { - "source": "../connector-sdk.js", - "specifiers": [ - "BaseConnector", - "ConnectorAction", - "ConnectorResult" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "ConnectorHealth" - ] - } - ], - "exports": [ - "OutlookConnector" - ], - "totalLines": 264, - "hasStructuralAnalysis": true - }, - "packages/agent/src/connectors/pipedrive-connector.ts": { - "filePath": "packages/agent/src/connectors/pipedrive-connector.ts", - "contentHash": "a0b0c296cb935294ac8f90d49b1c89698dd89194707e77f7b18add44f8d27b7f", - "functions": [], - "classes": [ - { - "name": "PipedriveConnector", - "methods": [ - "connect", - "healthCheck", - "execute", - "buildUrl", - "apiGet", - "apiPost" - ], - "properties": [ - "id", - "name", - "description", - "service", - "authType", - "substrate", - "logoUrl", - "category", - "setupGuide", - "actions", - "apiToken" - ], - "exported": true, - "lineCount": 190 - } - ], - "imports": [ - { - "source": "../connector-sdk.js", - "specifiers": [ - "BaseConnector", - "ConnectorAction", - "ConnectorResult" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "ConnectorHealth" - ] - } - ], - "exports": [ - "PipedriveConnector" - ], - "totalLines": 202, - "hasStructuralAnalysis": true - }, - "packages/agent/src/connectors/postgres-connector.ts": { - "filePath": "packages/agent/src/connectors/postgres-connector.ts", - "contentHash": "15bdf8486998557c02201a246302e7fe8c5f0c6d66123c15fd27ea84125ab74c", - "functions": [], - "classes": [ - { - "name": "PostgresConnector", - "methods": [ - "connect", - "healthCheck", - "execute", - "getClient", - "runQuery", - "runExecute", - "listTables", - "describeTable" - ], - "properties": [ - "id", - "name", - "description", - "service", - "authType", - "substrate", - "logoUrl", - "category", - "setupGuide", - "actions", - "connectionString", - "pgModule", - "client" - ], - "exported": true, - "lineCount": 260 - } - ], - "imports": [ - { - "source": "../connector-sdk.js", - "specifiers": [ - "BaseConnector", - "ConnectorAction", - "ConnectorResult" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "ConnectorHealth" - ] - } - ], - "exports": [ - "PostgresConnector" - ], - "totalLines": 288, - "hasStructuralAnalysis": true - }, - "packages/agent/src/connectors/salesforce-connector.ts": { - "filePath": "packages/agent/src/connectors/salesforce-connector.ts", - "contentHash": "c1d0825a7a9d066cb8057b8f78dc79d9ea332313a7861bdd70aeb3cca222000a", - "functions": [], - "classes": [ - { - "name": "SalesforceConnector", - "methods": [ - "connect", - "healthCheck", - "execute", - "headers", - "apiBase", - "soqlQuery", - "listObjects", - "getRecord", - "createRecord", - "updateRecord" - ], - "properties": [ - "id", - "name", - "description", - "service", - "authType", - "substrate", - "logoUrl", - "category", - "setupGuide", - "actions", - "token", - "instanceUrl" - ], - "exported": true, - "lineCount": 236 - } - ], - "imports": [ - { - "source": "../connector-sdk.js", - "specifiers": [ - "BaseConnector", - "ConnectorAction", - "ConnectorResult" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "ConnectorHealth" - ] - } - ], - "exports": [ - "SalesforceConnector" - ], - "totalLines": 249, - "hasStructuralAnalysis": true - }, - "packages/agent/src/connectors/slack-connector.ts": { - "filePath": "packages/agent/src/connectors/slack-connector.ts", - "contentHash": "0e986ea8668f0a781000e42373dbccae72c044cf0834a590fb4704f7e32aa6dc", - "functions": [], - "classes": [ - { - "name": "SlackConnector", - "methods": [ - "connect", - "healthCheck", - "execute", - "headers", - "slackGet", - "slackPost" - ], - "properties": [ - "id", - "name", - "description", - "service", - "authType", - "substrate", - "logoUrl", - "category", - "setupGuide", - "actions", - "token" - ], - "exported": true, - "lineCount": 151 - } - ], - "imports": [ - { - "source": "../connector-sdk.js", - "specifiers": [ - "BaseConnector", - "ConnectorAction", - "ConnectorResult" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "ConnectorHealth" - ] - } - ], - "exports": [ - "SlackConnector" - ], - "totalLines": 163, - "hasStructuralAnalysis": true - }, - "packages/agent/src/connectors/trello-connector.ts": { - "filePath": "packages/agent/src/connectors/trello-connector.ts", - "contentHash": "893abf7527fce03db1aee362ac4b10b970e67d6b2572b2567c8524059a8a9199", - "functions": [], - "classes": [ - { - "name": "TrelloConnector", - "methods": [ - "connect", - "healthCheck", - "execute", - "authParams", - "apiGet", - "apiPost", - "apiPut", - "listBoards", - "listCards", - "createCard", - "updateCard", - "listLists", - "searchCards" - ], - "properties": [ - "id", - "name", - "description", - "service", - "authType", - "substrate", - "logoUrl", - "category", - "setupGuide", - "actions", - "apiKey", - "apiToken" - ], - "exported": true, - "lineCount": 259 - } - ], - "imports": [ - { - "source": "../connector-sdk.js", - "specifiers": [ - "BaseConnector", - "ConnectorAction", - "ConnectorResult" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "ConnectorHealth" - ] - } - ], - "exports": [ - "TrelloConnector" - ], - "totalLines": 271, - "hasStructuralAnalysis": true - }, - "packages/agent/src/content-constants.ts": { - "filePath": "packages/agent/src/content-constants.ts", - "contentHash": "c1f0981916113bb4ad1d669d45e52edde9c005756eaa9652b46c855d7d4cdbba", - "functions": [], - "classes": [], - "imports": [], - "exports": [ - "MIN_CONTENT_LENGTH", - "DEDUP_SLICE_LENGTH", - "RECALLED_SNIPPET_LENGTH", - "CONTEXT_PREVIEW_LENGTH", - "RECALL_LINE_LENGTH", - "FINDINGS_SLICE_LENGTH", - "STRUCTURED_EXTRACT_THRESHOLD" - ], - "totalLines": 27, - "hasStructuralAnalysis": true - }, - "packages/agent/src/context-compressor.ts": { - "filePath": "packages/agent/src/context-compressor.ts", - "contentHash": "dcd45395a72d8854caf9fb438754f36af1350a3f96fd7dbd769cffa0be784599", - "functions": [ - { - "name": "detectContentType", - "params": [ - "text" - ], - "returnType": "'code' | 'json' | 'prose' | 'mixed'", - "exported": false, - "lineCount": 24 - }, - { - "name": "estimateStringTokens", - "params": [ - "text" - ], - "returnType": "number", - "exported": true, - "lineCount": 6 - }, - { - "name": "estimateTokens", - "params": [ - "messages" - ], - "returnType": "number", - "exported": true, - "lineCount": 9 - }, - { - "name": "needsCompression", - "params": [ - "messages", - "config" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 7 - }, - { - "name": "pruneToolResults", - "params": [ - "messages", - "protectedTailCount" - ], - "returnType": "CompressibleMessage[]", - "exported": true, - "lineCount": 29 - }, - { - "name": "splitProtectedRegions", - "params": [ - "messages", - "config" - ], - "returnType": "ProtectedRegions", - "exported": true, - "lineCount": 23 - }, - { - "name": "summarizeMiddle", - "params": [ - "middle", - "config", - "previousSummary" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 62 - }, - { - "name": "buildFallbackSummary", - "params": [ - "middle", - "previousSummary" - ], - "returnType": "string", - "exported": false, - "lineCount": 20 - }, - { - "name": "compressConversation", - "params": [ - "messages", - "config", - "previousSummary" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 62 - }, - { - "name": "createDefaultCompressionConfig", - "params": [ - "overrides" - ], - "returnType": "CompressionConfig", - "exported": true, - "lineCount": 11 - } - ], - "classes": [], - "imports": [ - { - "source": "./behavioral-spec.js", - "specifiers": [ - "COMPACTION_PROMPT" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "createCoreLogger" - ] - } - ], - "exports": [ - "estimateStringTokens", - "estimateTokens", - "needsCompression", - "pruneToolResults", - "splitProtectedRegions", - "summarizeMiddle", - "compressConversation", - "createDefaultCompressionConfig" - ], - "totalLines": 411, - "hasStructuralAnalysis": true - }, - "packages/agent/src/context-loader.ts": { - "filePath": "packages/agent/src/context-loader.ts", - "contentHash": "1ca5cc64e684bed90623cf28aba1828399b8b4e3c8403f349a66b155c9a9112e", - "functions": [ - { - "name": "fetchRecentFrames", - "params": [ - "db", - "limit", - "opts" - ], - "returnType": "RecentFrameRow[]", - "exported": true, - "lineCount": 25 - }, - { - "name": "loadRecentContext", - "params": [ - "deps", - "limit" - ], - "returnType": "string", - "exported": true, - "lineCount": 80 - }, - { - "name": "loadRecentContextFrames", - "params": [ - "deps", - "limit" - ], - "returnType": "ContextFrames", - "exported": true, - "lineCount": 66 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "MemoryFrame", - "AwarenessLayer", - "createCoreLogger" - ] - }, - { - "source": "./injection-scanner.js", - "specifiers": [ - "scanForInjection" - ] - }, - { - "source": "./content-constants.js", - "specifiers": [ - "CONTEXT_PREVIEW_LENGTH" - ] - } - ], - "exports": [ - "fetchRecentFrames", - "loadRecentContext", - "loadRecentContextFrames" - ], - "totalLines": 262, - "hasStructuralAnalysis": true - }, - "packages/agent/src/contradiction-detector.ts": { - "filePath": "packages/agent/src/contradiction-detector.ts", - "contentHash": "c02e9557547056b35303dfa8c4b88093914062df1bfb5b897bdbc5a9e2224ec9", - "functions": [ - { - "name": "extractKeywords", - "params": [ - "text" - ], - "returnType": "Set", - "exported": false, - "lineCount": 12 - }, - { - "name": "countSentimentWords", - "params": [ - "text", - "wordSet" - ], - "returnType": "number", - "exported": false, - "lineCount": 10 - }, - { - "name": "detectContradiction", - "params": [ - "newContent", - "existingFrames" - ], - "returnType": "ContradictionResult", - "exported": true, - "lineCount": 49 - } - ], - "classes": [], - "imports": [], - "exports": [ - "detectContradiction" - ], - "totalLines": 112, - "hasStructuralAnalysis": true - }, - "packages/agent/src/correction-detector.ts": { - "filePath": "packages/agent/src/correction-detector.ts", - "contentHash": "6949c9f5ff47d7da969c61e84b81426cbaa81c39f156121befbfc9b962302d8e", - "functions": [ - { - "name": "detectCorrection", - "params": [ - "userMessage", - "previousAssistantMessage" - ], - "returnType": "DetectedCorrection | null", - "exported": true, - "lineCount": 38 - }, - { - "name": "classifyDurability", - "params": [ - "message" - ], - "returnType": "CorrectionDurability", - "exported": false, - "lineCount": 21 - }, - { - "name": "extractPatternKey", - "params": [ - "message" - ], - "returnType": "string", - "exported": false, - "lineCount": 11 - }, - { - "name": "extractDetail", - "params": [ - "message" - ], - "returnType": "string", - "exported": false, - "lineCount": 8 - }, - { - "name": "detectCorrectionsInHistory", - "params": [ - "messages" - ], - "returnType": "DetectedCorrection[]", - "exported": true, - "lineCount": 19 - } - ], - "classes": [], - "imports": [], - "exports": [ - "detectCorrection", - "detectCorrectionsInHistory" - ], - "totalLines": 200, - "hasStructuralAnalysis": true - }, - "packages/agent/src/cost-tracker.ts": { - "filePath": "packages/agent/src/cost-tracker.ts", - "contentHash": "84fcfdc6b77c89ad5f155886cbd0a5ff8b10cd76b25368c22e88ae8addd92bd9", - "functions": [], - "classes": [ - { - "name": "BudgetExceededError", - "methods": [ - "constructor" - ], - "properties": [ - "budgetUsd", - "currentUsd" - ], - "exported": true, - "lineCount": 10 - }, - { - "name": "CostTracker", - "methods": [ - "constructor", - "setBudget", - "getBudget", - "checkBudget", - "addUsage", - "getUsageEntries", - "calculateCost", - "getStats", - "getWorkspaceCost", - "getDailyTotal", - "formatSummary" - ], - "properties": [ - "pricing", - "usage", - "dailyBudgetUsd", - "budgetMode" - ], - "exported": true, - "lineCount": 99 - } - ], - "imports": [], - "exports": [ - "DEFAULT_MODEL_PRICING", - "BudgetExceededError", - "CostTracker" - ], - "totalLines": 144, - "hasStructuralAnalysis": true - }, - "packages/agent/src/credential-pool.ts": { - "filePath": "packages/agent/src/credential-pool.ts", - "contentHash": "312cd2bc8259410399977dc5bfc5c0f03a69141658925f3fcea3501015b437c3", - "functions": [ - { - "name": "loadCredentialPool", - "params": [ - "vault", - "provider", - "maxKeys" - ], - "returnType": "CredentialPool", - "exported": true, - "lineCount": 25 - }, - { - "name": "extractStatusCode", - "params": [ - "err" - ], - "returnType": "number | null", - "exported": true, - "lineCount": 17 - } - ], - "classes": [ - { - "name": "CredentialPool", - "methods": [ - "constructor", - "recoverExpiredCooldowns", - "addCredential", - "getKey", - "getNameForKey", - "reportSuccess", - "reportError", - "hasAvailableKeys", - "getStatus", - "size" - ], - "properties": [ - "entries", - "config", - "roundRobinIndex", - "nowFn" - ], - "exported": true, - "lineCount": 181 - } - ], - "imports": [], - "exports": [ - "CredentialPool", - "loadCredentialPool", - "extractStatusCode" - ], - "totalLines": 310, - "hasStructuralAnalysis": true - }, - "packages/agent/src/cron-delivery-router.ts": { - "filePath": "packages/agent/src/cron-delivery-router.ts", - "contentHash": "de49a601c0f90b2bf3bafeaceeca04300e91945a00cba29867c933d3f8efe2d9", - "functions": [ - { - "name": "escapeHtml", - "params": [ - "str" - ], - "returnType": "string", - "exported": false, - "lineCount": 7 - }, - { - "name": "deliverCronResult", - "params": [ - "message", - "preferences", - "connectorRegistry", - "emitInApp" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 70 - }, - { - "name": "buildChannelParams", - "params": [ - "channel", - "message", - "preferences" - ], - "returnType": "Record", - "exported": false, - "lineCount": 34 - }, - { - "name": "createDefaultDeliveryPreferences", - "params": [ - "overrides" - ], - "returnType": "DeliveryPreferences", - "exported": true, - "lineCount": 9 - } - ], - "classes": [], - "imports": [], - "exports": [ - "deliverCronResult", - "createDefaultDeliveryPreferences" - ], - "totalLines": 214, - "hasStructuralAnalysis": true - }, - "packages/agent/src/cron-tools.ts": { - "filePath": "packages/agent/src/cron-tools.ts", - "contentHash": "ef3446dfe95f00e99ac18ec41fe1e856388d26780165faf0aaf9191ea53723ee", - "functions": [ - { - "name": "isValidCronExpression", - "params": [ - "expr" - ], - "returnType": "boolean", - "exported": false, - "lineCount": 19 - }, - { - "name": "createCronTools", - "params": [], - "returnType": "ToolDefinition[]", - "exported": true, - "lineCount": 277 - } - ], - "classes": [], - "imports": [ - { - "source": "./tools.js", - "specifiers": [ - "ToolDefinition" - ] - } - ], - "exports": [ - "createCronTools" - ], - "totalLines": 319, - "hasStructuralAnalysis": true - }, - "packages/agent/src/cross-workspace-tools.ts": { - "filePath": "packages/agent/src/cross-workspace-tools.ts", - "contentHash": "d90a657e4b8b9ce3d060f704ae830f4e880fe49830fe288f7dbe5224e0f6ce2f", - "functions": [ - { - "name": "createCrossWorkspaceTools", - "params": [ - "deps" - ], - "returnType": "ToolDefinition[]", - "exported": true, - "lineCount": 276 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "HybridSearch" - ] - }, - { - "source": "./tools.js", - "specifiers": [ - "ToolDefinition" - ] - } - ], - "exports": [ - "createCrossWorkspaceTools" - ], - "totalLines": 319, - "hasStructuralAnalysis": true - }, - "packages/agent/src/custom-personas.ts": { - "filePath": "packages/agent/src/custom-personas.ts", - "contentHash": "c27b38874e4d5e6296b70616f13d7ccfdd22e32ef3848ca1681b2aad5d17b158", - "functions": [ - { - "name": "loadCustomPersonas", - "params": [ - "dataDir" - ], - "returnType": "AgentPersona[]", - "exported": true, - "lineCount": 19 - }, - { - "name": "saveCustomPersona", - "params": [ - "dataDir", - "persona" - ], - "returnType": "void", - "exported": true, - "lineCount": 6 - }, - { - "name": "deleteCustomPersona", - "params": [ - "dataDir", - "id" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 8 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "./personas.js", - "specifiers": [ - "AgentPersona" - ] - } - ], - "exports": [ - "loadCustomPersonas", - "saveCustomPersona", - "deleteCustomPersona" - ], - "totalLines": 47, - "hasStructuralAnalysis": true - }, - "packages/agent/src/custom-workflows.ts": { - "filePath": "packages/agent/src/custom-workflows.ts", - "contentHash": "85d0deb743ddc1386ab4080899161209e9ffc9c602434bcd6c0f7013f29e7d64", - "functions": [ - { - "name": "loadCustomWorkflows", - "params": [ - "dataDir" - ], - "returnType": "WorkflowTemplate[]", - "exported": true, - "lineCount": 19 - }, - { - "name": "saveCustomWorkflow", - "params": [ - "dataDir", - "workflow" - ], - "returnType": "void", - "exported": true, - "lineCount": 6 - }, - { - "name": "deleteCustomWorkflow", - "params": [ - "dataDir", - "name" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 9 - }, - { - "name": "listAllWorkflows", - "params": [ - "dataDir", - "builtIn" - ], - "returnType": "WorkflowTemplate[]", - "exported": true, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "./subagent-orchestrator.js", - "specifiers": [ - "WorkflowTemplate" - ] - } - ], - "exports": [ - "loadCustomWorkflows", - "saveCustomWorkflow", - "deleteCustomWorkflow", - "listAllWorkflows" - ], - "totalLines": 51, - "hasStructuralAnalysis": true - }, - "packages/agent/src/document-tools.ts": { - "filePath": "packages/agent/src/document-tools.ts", - "contentHash": "a82b03bf6a8eb9aa3911608df2c496cbebb9be9b025274784bf13160bf83bfcb", - "functions": [ - { - "name": "resolveSafe", - "params": [ - "workspace", - "filePath" - ], - "returnType": "string", - "exported": false, - "lineCount": 7 - }, - { - "name": "parseInlineFormatting", - "params": [ - "text" - ], - "returnType": "IRunOptions[]", - "exported": false, - "lineCount": 22 - }, - { - "name": "parseMarkdown", - "params": [ - "content" - ], - "returnType": "ParsedBlock[]", - "exported": false, - "lineCount": 109 - }, - { - "name": "blocksToDocx", - "params": [ - "blocks" - ], - "returnType": "(Paragraph | Table)[]", - "exported": false, - "lineCount": 108 - }, - { - "name": "createDocumentTools", - "params": [ - "workspace" - ], - "returnType": "ToolDefinition[]", - "exported": true, - "lineCount": 313 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "docx", - "specifiers": [ - "Document", - "Packer", - "Paragraph", - "TextRun", - "HeadingLevel", - "AlignmentType", - "TableOfContents", - "Table", - "TableRow", - "TableCell", - "WidthType", - "BorderStyle", - "PageBreak", - "Footer", - "Header", - "LevelFormat", - "IRunOptions", - "ISectionOptions" - ] - }, - { - "source": "./tools.js", - "specifiers": [ - "ToolDefinition" - ] - } - ], - "exports": [ - "createDocumentTools" - ], - "totalLines": 627, - "hasStructuralAnalysis": true - }, - "packages/agent/src/entity-extractor.ts": { - "filePath": "packages/agent/src/entity-extractor.ts", - "contentHash": "366ba989d2e6158894ce09c9ec898369e5e3352bb20705b74cc36d51e4843752", - "functions": [ - { - "name": "classifyProperNoun", - "params": [ - "name" - ], - "returnType": "ExtractedEntity['type']", - "exported": false, - "lineCount": 34 - }, - { - "name": "extractEntities", - "params": [ - "text" - ], - "returnType": "ExtractedEntity[]", - "exported": true, - "lineCount": 33 - }, - { - "name": "extractEntitiesWithLLM", - "params": [ - "text", - "llmCall" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 29 - }, - { - "name": "extractRelations", - "params": [ - "text", - "entities" - ], - "returnType": "ExtractedRelation[]", - "exported": true, - "lineCount": 19 - } - ], - "classes": [], - "imports": [], - "exports": [ - "extractEntities", - "extractEntitiesWithLLM", - "extractRelations" - ], - "totalLines": 201, - "hasStructuralAnalysis": true - }, - "packages/agent/src/eval-dataset.ts": { - "filePath": "packages/agent/src/eval-dataset.ts", - "contentHash": "77525f91933f5201468985208266395f0ca3d5c5afce32a956b0110cafceba2e", - "functions": [ - { - "name": "detectSecrets", - "params": [ - "text" - ], - "returnType": "string | null", - "exported": true, - "lineCount": 6 - }, - { - "name": "redactSecrets", - "params": [ - "text" - ], - "returnType": "{ text: string; found: string[] }", - "exported": true, - "lineCount": 13 - }, - { - "name": "makeRng", - "params": [ - "seed" - ], - "returnType": "() => number", - "exported": false, - "lineCount": 10 - }, - { - "name": "shuffle", - "params": [ - "arr", - "rng" - ], - "returnType": "T[]", - "exported": false, - "lineCount": 7 - }, - { - "name": "toJSONL", - "params": [ - "examples" - ], - "returnType": "string", - "exported": true, - "lineCount": 3 - }, - { - "name": "fromJSONL", - "params": [ - "jsonl" - ], - "returnType": "EvalExample[]", - "exported": true, - "lineCount": 20 - }, - { - "name": "traceToExample", - "params": [ - "trace", - "includeCorrections" - ], - "returnType": "EvalExample", - "exported": false, - "lineCount": 23 - }, - { - "name": "validateRatios", - "params": [ - "ratios" - ], - "returnType": "void", - "exported": false, - "lineCount": 9 - }, - { - "name": "splitExamples", - "params": [ - "examples", - "ratios" - ], - "returnType": "{ train: EvalExample[]; val: EvalExample[]; holdout: EvalExample[] }", - "exported": false, - "lineCount": 16 - }, - { - "name": "isLowSignal", - "params": [ - "text" - ], - "returnType": "boolean", - "exported": false, - "lineCount": 15 - }, - { - "name": "hashKey", - "params": [ - "text" - ], - "returnType": "string", - "exported": false, - "lineCount": 8 - } - ], - "classes": [ - { - "name": "EvalDatasetBuilder", - "methods": [ - "constructor", - "sourceFromTraces", - "build" - ], - "properties": [ - "store" - ], - "exported": true, - "lineCount": 156 - } - ], - "imports": [ - { - "source": "@waggle/core", - "specifiers": [ - "ExecutionTraceStore", - "ParsedExecutionTrace", - "TraceOutcome", - "TraceQueryFilter" - ] - } - ], - "exports": [ - "detectSecrets", - "SECRET_PATTERN_NAMES", - "redactSecrets", - "EvalDatasetBuilder", - "toJSONL", - "fromJSONL" - ], - "totalLines": 442, - "hasStructuralAnalysis": true - }, - "packages/agent/src/evolution-deploy.ts": { - "filePath": "packages/agent/src/evolution-deploy.ts", - "contentHash": "8de4c42e9480071bf0957a07c30b32478e1f7c2458e456140944b7f5373dcba7", - "functions": [ - { - "name": "deployPersonaOverride", - "params": [ - "dataDir", - "input" - ], - "returnType": "DeployResult", - "exported": true, - "lineCount": 40 - }, - { - "name": "rollbackPersonaOverride", - "params": [ - "dataDir", - "personaId" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 16 - }, - { - "name": "deployBehavioralSpecOverride", - "params": [ - "dataDir", - "input" - ], - "returnType": "DeployResult", - "exported": true, - "lineCount": 34 - }, - { - "name": "rollbackBehavioralSpecOverride", - "params": [ - "dataDir", - "section" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 16 - }, - { - "name": "loadBehavioralSpecOverrides", - "params": [ - "dataDir" - ], - "returnType": "Partial>", - "exported": true, - "lineCount": 22 - }, - { - "name": "applyBehavioralSpecOverrides", - "params": [ - "baseline", - "overrides" - ], - "returnType": "Record", - "exported": true, - "lineCount": 12 - }, - { - "name": "writeAtomic", - "params": [ - "filePath", - "contents" - ], - "returnType": "void", - "exported": false, - "lineCount": 5 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "./personas.js", - "specifiers": [ - "AgentPersona" - ] - }, - { - "source": "./personas.js", - "specifiers": [ - "getPersona" - ] - } - ], - "exports": [ - "deployPersonaOverride", - "rollbackPersonaOverride", - "BEHAVIORAL_SPEC_SECTIONS", - "deployBehavioralSpecOverride", - "rollbackBehavioralSpecOverride", - "loadBehavioralSpecOverrides", - "applyBehavioralSpecOverrides" - ], - "totalLines": 275, - "hasStructuralAnalysis": true - }, - "packages/agent/src/evolution-gates.ts": { - "filePath": "packages/agent/src/evolution-gates.ts", - "contentHash": "ba3c61ba09f542108f1638b5d65c529a3bb27b86173452df685afc9e8f7d3ff4", - "functions": [ - { - "name": "runGates", - "params": [ - "input", - "options" - ], - "returnType": "GateCheckResult", - "exported": true, - "lineCount": 37 - }, - { - "name": "checkNonEmpty", - "params": [ - "candidate" - ], - "returnType": "GateResult", - "exported": true, - "lineCount": 11 - }, - { - "name": "checkSize", - "params": [ - "candidate", - "targetKind", - "limits" - ], - "returnType": "GateResult", - "exported": true, - "lineCount": 22 - }, - { - "name": "checkGrowth", - "params": [ - "candidate", - "baseline", - "maxGrowthRatio" - ], - "returnType": "GateResult", - "exported": true, - "lineCount": 41 - }, - { - "name": "checkBalancedFences", - "params": [ - "candidate" - ], - "returnType": "GateResult", - "exported": true, - "lineCount": 18 - }, - { - "name": "checkNoPlaceholders", - "params": [ - "candidate" - ], - "returnType": "GateResult", - "exported": true, - "lineCount": 19 - }, - { - "name": "checkNoObviousTodos", - "params": [ - "candidate" - ], - "returnType": "GateResult", - "exported": true, - "lineCount": 14 - }, - { - "name": "checkRegression", - "params": [ - "baselineScore", - "candidateScore", - "maxRegression" - ], - "returnType": "GateResult", - "exported": true, - "lineCount": 24 - }, - { - "name": "resolveSizeLimit", - "params": [ - "target", - "limits" - ], - "returnType": "number", - "exported": false, - "lineCount": 11 - } - ], - "classes": [], - "imports": [ - { - "source": "./iterative-optimizer.js", - "specifiers": [ - "EvolutionTarget" - ] - } - ], - "exports": [ - "DEFAULT_SIZE_LIMITS", - "runGates", - "checkNonEmpty", - "checkSize", - "checkGrowth", - "checkBalancedFences", - "checkNoPlaceholders", - "checkNoObviousTodos", - "checkRegression" - ], - "totalLines": 317, - "hasStructuralAnalysis": true - }, - "packages/agent/src/evolution-llm-wiring.ts": { - "filePath": "packages/agent/src/evolution-llm-wiring.ts", - "contentHash": "93fe5979abb77dcc617a204e93e92c1784079b4e849d96f213ffc5940633fd04", - "functions": [ - { - "name": "DEFAULT_SLEEP", - "params": [ - "ms" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 1 - }, - { - "name": "isRetryableEvolutionError", - "params": [ - "err" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 12 - }, - { - "name": "computeRetryDelay", - "params": [ - "attempt", - "options" - ], - "returnType": "number", - "exported": true, - "lineCount": 11 - }, - { - "name": "retryWithBackoff", - "params": [ - "op", - "options" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 28 - }, - { - "name": "wrapWithRetry", - "params": [ - "llm", - "options" - ], - "returnType": "EvolutionLLM", - "exported": true, - "lineCount": 7 - }, - { - "name": "createAnthropicEvolutionLLM", - "params": [ - "apiKey", - "options" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 47 - }, - { - "name": "buildJudgeLLMCall", - "params": [ - "llm" - ], - "returnType": "JudgeLLMCall", - "exported": true, - "lineCount": 3 - }, - { - "name": "buildReflectiveMutationPrompt", - "params": [ - "args" - ], - "returnType": "string", - "exported": true, - "lineCount": 27 - }, - { - "name": "buildGEPAMutateFn", - "params": [ - "llm" - ], - "returnType": "MutateFn", - "exported": true, - "lineCount": 20 - }, - { - "name": "buildSchemaFillPrompt", - "params": [ - "args" - ], - "returnType": "string", - "exported": true, - "lineCount": 13 - }, - { - "name": "formatField", - "params": [ - "field" - ], - "returnType": "string", - "exported": false, - "lineCount": 7 - }, - { - "name": "stringifyConstraintValue", - "params": [ - "value" - ], - "returnType": "string", - "exported": false, - "lineCount": 4 - }, - { - "name": "buildSchemaExecuteFn", - "params": [ - "llm" - ], - "returnType": "SchemaExecuteFn", - "exported": true, - "lineCount": 12 - }, - { - "name": "isRunningJudge", - "params": [ - "j" - ], - "exported": true, - "lineCount": 3 - }, - { - "name": "makeRunningJudge", - "params": [ - "baseJudge", - "llm" - ], - "returnType": "RunningJudge", - "exported": true, - "lineCount": 28 - }, - { - "name": "buildRunPrompt", - "params": [ - "candidatePrompt", - "userInput" - ], - "returnType": "string", - "exported": false, - "lineCount": 8 - }, - { - "name": "stripFences", - "params": [ - "raw" - ], - "returnType": "string", - "exported": false, - "lineCount": 7 - }, - { - "name": "looksLikeJSON", - "params": [ - "s" - ], - "returnType": "boolean", - "exported": false, - "lineCount": 11 - } - ], - "classes": [], - "imports": [ - { - "source": "./judge.js", - "specifiers": [ - "JudgeLLMCall", - "JudgeInput", - "JudgeScore" - ] - }, - { - "source": "./judge.js", - "specifiers": [ - "LLMJudge" - ] - }, - { - "source": "./iterative-optimizer.js", - "specifiers": [ - "MutateArgs", - "MutateFn", - "EvolutionTarget" - ] - }, - { - "source": "./evolve-schema.js", - "specifiers": [ - "SchemaExecuteFn", - "Schema", - "SchemaField" - ] - } - ], - "exports": [ - "DEFAULT_RETRY_OPTIONS", - "isRetryableEvolutionError", - "computeRetryDelay", - "retryWithBackoff", - "wrapWithRetry", - "createAnthropicEvolutionLLM", - "buildJudgeLLMCall", - "buildReflectiveMutationPrompt", - "buildGEPAMutateFn", - "buildSchemaFillPrompt", - "buildSchemaExecuteFn", - "RUNNING_JUDGE_BRAND", - "isRunningJudge", - "makeRunningJudge" - ], - "totalLines": 485, - "hasStructuralAnalysis": true - }, - "packages/agent/src/evolution-orchestrator.ts": { - "filePath": "packages/agent/src/evolution-orchestrator.ts", - "contentHash": "e492efa001036fcecb3415620831c3b4f5a146bb57e9aaefafc98cd2ecf8613a", - "functions": [ - { - "name": "eligibleForEvolution", - "params": [ - "traces" - ], - "returnType": "ParsedExecutionTrace[]", - "exported": true, - "lineCount": 7 - }, - { - "name": "summarizeRuns", - "params": [ - "runs" - ], - "returnType": "{\r\n total: number;\r\n byStatus: Record;\r\n byTargetKind: Record;\r\n bestDelta: number;\r\n}", - "exported": true, - "lineCount": 25 - } - ], - "classes": [ - { - "name": "EvolutionOrchestrator", - "methods": [ - "constructor", - "runOnce", - "accept", - "reject", - "list", - "get", - "meetsAutoTrigger", - "buildExamplesFromTraces" - ], - "properties": [ - "deps" - ], - "exported": true, - "lineCount": 202 - } - ], - "imports": [ - { - "source": "@waggle/core", - "specifiers": [ - "ExecutionTraceStore", - "EvolutionRun", - "EvolutionRunStore", - "EvolutionRunStatus", - "EvolutionRunTarget", - "ParsedExecutionTrace", - "TraceOutcome" - ] - }, - { - "source": "./compose-evolution.js", - "specifiers": [ - "ComposeEvolution", - "ComposeEvolutionOptions", - "ComposeEvolutionResult" - ] - }, - { - "source": "./evolution-gates.js", - "specifiers": [ - "runGates", - "GateResult", - "GateOptions" - ] - }, - { - "source": "./eval-dataset.js", - "specifiers": [ - "EvalDatasetBuilder", - "EvalExample" - ] - } - ], - "exports": [ - "EvolutionOrchestrator", - "eligibleForEvolution", - "summarizeRuns" - ], - "totalLines": 372, - "hasStructuralAnalysis": true - }, - "packages/agent/src/evolve-schema.ts": { - "filePath": "packages/agent/src/evolve-schema.ts", - "contentHash": "f09253bd5694e86652803408f524dae21f0b91a08c0aa01862980d0ea33d4c51", - "functions": [ - { - "name": "addOutputField", - "params": [ - "schema", - "field", - "position" - ], - "returnType": "Schema", - "exported": true, - "lineCount": 10 - }, - { - "name": "removeField", - "params": [ - "schema", - "fieldName" - ], - "returnType": "Schema", - "exported": true, - "lineCount": 7 - }, - { - "name": "editFieldDescription", - "params": [ - "schema", - "fieldName", - "newDescription" - ], - "returnType": "Schema", - "exported": true, - "lineCount": 13 - }, - { - "name": "changeFieldType", - "params": [ - "schema", - "fieldName", - "newType" - ], - "returnType": "Schema", - "exported": true, - "lineCount": 13 - }, - { - "name": "addConstraint", - "params": [ - "schema", - "fieldName", - "constraint" - ], - "returnType": "Schema", - "exported": true, - "lineCount": 13 - }, - { - "name": "removeConstraint", - "params": [ - "schema", - "fieldName", - "constraintIndex" - ], - "returnType": "Schema", - "exported": true, - "lineCount": 15 - }, - { - "name": "reorderFields", - "params": [ - "schema", - "newOrder" - ], - "returnType": "Schema", - "exported": true, - "lineCount": 13 - }, - { - "name": "replaceOutputFields", - "params": [ - "schema", - "newFields" - ], - "returnType": "Schema", - "exported": true, - "lineCount": 7 - }, - { - "name": "schemaComplexity", - "params": [ - "schema" - ], - "returnType": "number", - "exported": true, - "lineCount": 9 - }, - { - "name": "aggregateSchemaScores", - "params": [ - "results" - ], - "returnType": "SchemaCandidateScore", - "exported": true, - "lineCount": 15 - }, - { - "name": "paretoFrontSchema", - "params": [ - "candidates" - ], - "returnType": "SchemaCandidate[]", - "exported": true, - "lineCount": 16 - }, - { - "name": "dominatesSchema", - "params": [ - "a", - "b" - ], - "returnType": "boolean", - "exported": false, - "lineCount": 5 - }, - { - "name": "scoreSchemaCandidate", - "params": [ - "candidate", - "examples", - "execute", - "judge", - "signal" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 28 - }, - { - "name": "generateStructureMutations", - "params": [ - "parent", - "n", - "rng" - ], - "returnType": "Mutation[]", - "exported": true, - "lineCount": 76 - }, - { - "name": "generateOrderMutations", - "params": [ - "parent", - "n", - "rng" - ], - "returnType": "Mutation[]", - "exported": true, - "lineCount": 46 - }, - { - "name": "generateRefinementMutations", - "params": [ - "parent", - "weakness", - "n", - "editFieldDescription" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 67 - }, - { - "name": "applyMutations", - "params": [ - "mutations", - "parent", - "generation" - ], - "returnType": "SchemaCandidate[]", - "exported": false, - "lineCount": 16 - }, - { - "name": "pickTopByAccuracy", - "params": [ - "candidates" - ], - "returnType": "SchemaCandidate | undefined", - "exported": false, - "lineCount": 6 - }, - { - "name": "pickSchemaWinner", - "params": [ - "candidates" - ], - "returnType": "SchemaCandidate", - "exported": true, - "lineCount": 15 - }, - { - "name": "bestAccuracy", - "params": [ - "cs" - ], - "returnType": "number", - "exported": false, - "lineCount": 4 - }, - { - "name": "minComplexity", - "params": [ - "cs" - ], - "returnType": "number", - "exported": false, - "lineCount": 5 - }, - { - "name": "cloneSchema", - "params": [ - "s" - ], - "returnType": "Schema", - "exported": false, - "lineCount": 6 - }, - { - "name": "deterministicClarifyDescription", - "params": [ - "field" - ], - "returnType": "string", - "exported": false, - "lineCount": 6 - }, - { - "name": "pickN", - "params": [ - "arr", - "n", - "rng" - ], - "returnType": "T[]", - "exported": false, - "lineCount": 9 - }, - { - "name": "shuffle", - "params": [ - "arr", - "rng" - ], - "returnType": "T[]", - "exported": false, - "lineCount": 7 - }, - { - "name": "arraysEqual", - "params": [ - "a", - "b" - ], - "returnType": "boolean", - "exported": false, - "lineCount": 5 - }, - { - "name": "pickSample", - "params": [ - "examples", - "k", - "rng" - ], - "returnType": "EvalExample[]", - "exported": true, - "lineCount": 9 - }, - { - "name": "emitProgress", - "params": [ - "config", - "phase", - "generation", - "populationSize", - "bestAcc", - "bestCmp", - "message" - ], - "returnType": "void", - "exported": false, - "lineCount": 18 - }, - { - "name": "normalizeOptions", - "params": [ - "opts" - ], - "exported": false, - "lineCount": 17 - }, - { - "name": "makeRng", - "params": [ - "seed" - ], - "returnType": "() => number", - "exported": false, - "lineCount": 10 - } - ], - "classes": [ - { - "name": "EvolveSchema", - "methods": [ - "run" - ], - "properties": [], - "exported": true, - "lineCount": 111 - } - ], - "imports": [ - { - "source": "./eval-dataset.js", - "specifiers": [ - "EvalExample" - ] - }, - { - "source": "./judge.js", - "specifiers": [ - "LLMJudge", - "JudgeScore" - ] - } - ], - "exports": [ - "addOutputField", - "removeField", - "editFieldDescription", - "changeFieldType", - "addConstraint", - "removeConstraint", - "reorderFields", - "replaceOutputFields", - "schemaComplexity", - "aggregateSchemaScores", - "paretoFrontSchema", - "scoreSchemaCandidate", - "generateStructureMutations", - "generateOrderMutations", - "generateRefinementMutations", - "EvolveSchema", - "pickSchemaWinner", - "pickSample" - ], - "totalLines": 853, - "hasStructuralAnalysis": true - }, - "packages/agent/src/feature-flags.ts": { - "filePath": "packages/agent/src/feature-flags.ts", - "contentHash": "7eb19177ce6350700b4244831cfda5096c2089a27dacd1a47714b486c178378e", - "functions": [ - { - "name": "parsePhase5CanaryPct", - "params": [ - "raw" - ], - "returnType": "number", - "exported": true, - "lineCount": 9 - }, - { - "name": "isEnabled", - "params": [ - "flag" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 3 - } - ], - "classes": [], - "imports": [], - "exports": [ - "FEATURE_FLAGS", - "parsePhase5CanaryPct", - "isEnabled" - ], - "totalLines": 96, - "hasStructuralAnalysis": true - }, - "packages/agent/src/feedback-handler.ts": { - "filePath": "packages/agent/src/feedback-handler.ts", - "contentHash": "165b3c348c97c88516aed4112054e63763937586cebcfd9f69e4bff697a742d2", - "functions": [], - "classes": [ - { - "name": "FeedbackHandler", - "methods": [ - "constructor", - "correctEntity", - "invalidateEntity" - ], - "properties": [ - "kg" - ], - "exported": true, - "lineCount": 38 - } - ], - "imports": [ - { - "source": "@waggle/core", - "specifiers": [ - "KnowledgeGraph" - ] - } - ], - "exports": [ - "FeedbackHandler" - ], - "totalLines": 41, - "hasStructuralAnalysis": true - }, - "packages/agent/src/git-tools.ts": { - "filePath": "packages/agent/src/git-tools.ts", - "contentHash": "51efc9e33f1ef3b560358ff2364b2c233b06b56dc59c19b241df10a5e78703d8", - "functions": [ - { - "name": "spawnErrorText", - "params": [ - "err" - ], - "returnType": "string", - "exported": false, - "lineCount": 5 - }, - { - "name": "runGit", - "params": [ - "cwd", - "args", - "timeoutMs" - ], - "returnType": "string", - "exported": false, - "lineCount": 7 - }, - { - "name": "runCmd", - "params": [ - "cmd", - "cmdArgs", - "cwd", - "timeoutMs" - ], - "returnType": "string", - "exported": false, - "lineCount": 7 - }, - { - "name": "isAvailable", - "params": [ - "cmd" - ], - "returnType": "boolean", - "exported": false, - "lineCount": 9 - }, - { - "name": "createGitTools", - "params": [ - "workspace" - ], - "returnType": "ToolDefinition[]", - "exported": true, - "lineCount": 260 - } - ], - "classes": [], - "imports": [ - { - "source": "node:child_process", - "specifiers": [ - "execFileSync" - ] - }, - { - "source": "./tools.js", - "specifiers": [ - "ToolDefinition" - ] - } - ], - "exports": [ - "createGitTools" - ], - "totalLines": 299, - "hasStructuralAnalysis": true - }, - "packages/agent/src/grounding-check.ts": { - "filePath": "packages/agent/src/grounding-check.ts", - "contentHash": "aa7dd466e383d98744cb9bddb4b06f3a0856e2d9d563a4a3d137b6f0e9332421", - "functions": [ - { - "name": "num", - "params": [ - "s" - ], - "returnType": "string", - "exported": false, - "lineCount": 1 - }, - { - "name": "stem", - "params": [ - "w" - ], - "returnType": "string", - "exported": false, - "lineCount": 1 - }, - { - "name": "extractClaimedSpecifics", - "params": [ - "text" - ], - "returnType": "ClaimedSpecific[]", - "exported": true, - "lineCount": 26 - }, - { - "name": "isGrounded", - "params": [ - "s", - "normalizedSources" - ], - "returnType": "boolean", - "exported": false, - "lineCount": 18 - }, - { - "name": "checkGrounding", - "params": [ - "reply", - "sources" - ], - "returnType": "GroundingResult", - "exported": true, - "lineCount": 11 - } - ], - "classes": [], - "imports": [], - "exports": [ - "extractClaimedSpecifics", - "checkGrounding" - ], - "totalLines": 129, - "hasStructuralAnalysis": true - }, - "packages/agent/src/harness-trace-bridge.ts": { - "filePath": "packages/agent/src/harness-trace-bridge.ts", - "contentHash": "3b3e55672452105b0d262a028333f89aaf1efe20988b083abfe1d71d4d61291b", - "functions": [ - { - "name": "normalizeArgs", - "params": [ - "value" - ], - "returnType": "Record", - "exported": false, - "lineCount": 6 - } - ], - "classes": [ - { - "name": "HarnessTraceBridge", - "methods": [ - "constructor", - "start", - "stop", - "isRunning", - "writeTrace" - ], - "properties": [ - "recorder", - "emitter", - "resolveContext", - "completeListener", - "failListener" - ], - "exported": true, - "lineCount": 99 - } - ], - "imports": [ - { - "source": "node:events", - "specifiers": [ - "EventEmitter" - ] - }, - { - "source": "./workflow-harness.js", - "specifiers": [ - "harnessEvents", - "HarnessPhaseCompleteEvent", - "HarnessPhaseFailEvent" - ] - }, - { - "source": "./trace-recorder.js", - "specifiers": [ - "TraceRecorder" - ] - } - ], - "exports": [ - "HarnessTraceBridge" - ], - "totalLines": 178, - "hasStructuralAnalysis": true - }, - "packages/agent/src/hook-loader.ts": { - "filePath": "packages/agent/src/hook-loader.ts", - "contentHash": "075e7c85b4feb4f1295e3c0eae16b336bb059423969cdec51829998522fb2b72", - "functions": [ - { - "name": "loadHooksFromConfig", - "params": [ - "configPath", - "registry" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 27 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "./hooks.js", - "specifiers": [ - "HookRegistry", - "HookContext" - ] - } - ], - "exports": [ - "loadHooksFromConfig" - ], - "totalLines": 52, - "hasStructuralAnalysis": true - }, - "packages/agent/src/hooks.ts": { - "filePath": "packages/agent/src/hooks.ts", - "contentHash": "02b0b5d87b6bcf04f7a5e22c089a234708831780918d9b2ec9fa9ea7069eb34e", - "functions": [], - "classes": [ - { - "name": "HookRegistry", - "methods": [ - "on", - "onScoped", - "fire", - "getActivityLog", - "recordActivity" - ], - "properties": [ - "hooks", - "activityLog", - "MAX_LOG" - ], - "exported": true, - "lineCount": 59 - } - ], - "imports": [], - "exports": [ - "HookRegistry" - ], - "totalLines": 101, - "hasStructuralAnalysis": true - }, - "packages/agent/src/improvement-detector.ts": { - "filePath": "packages/agent/src/improvement-detector.ts", - "contentHash": "6c1653fd5486cabf70f4aa4181bbb32c9e44f15cc5177c0e41287ef1af045902", - "functions": [ - { - "name": "recordCapabilityGap", - "params": [ - "store", - "toolName", - "context" - ], - "returnType": "void", - "exported": true, - "lineCount": 10 - }, - { - "name": "analyzeAndRecordCorrection", - "params": [ - "store", - "userMessage", - "previousAssistantMessage" - ], - "returnType": "DetectedCorrection | null", - "exported": true, - "lineCount": 18 - }, - { - "name": "recordWorkflowPattern", - "params": [ - "store", - "taskShape", - "taskDescription" - ], - "returnType": "void", - "exported": true, - "lineCount": 10 - }, - { - "name": "buildAwarenessSummary", - "params": [ - "store" - ], - "returnType": "AwarenessSummary", - "exported": true, - "lineCount": 31 - }, - { - "name": "formatAwarenessPrompt", - "params": [ - "summary" - ], - "returnType": "string | null", - "exported": true, - "lineCount": 31 - }, - { - "name": "markSummarySurfaced", - "params": [ - "store", - "summary" - ], - "returnType": "void", - "exported": true, - "lineCount": 8 - }, - { - "name": "formatCapabilityGap", - "params": [ - "signal" - ], - "returnType": "CapabilityGapSignal", - "exported": false, - "lineCount": 9 - }, - { - "name": "formatCorrection", - "params": [ - "signal" - ], - "returnType": "CorrectionSignal", - "exported": false, - "lineCount": 11 - }, - { - "name": "formatWorkflowPattern", - "params": [ - "signal" - ], - "returnType": "WorkflowPatternSignal", - "exported": false, - "lineCount": 9 - }, - { - "name": "isRecent", - "params": [ - "dateStr" - ], - "returnType": "boolean", - "exported": false, - "lineCount": 8 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/core", - "specifiers": [ - "ImprovementSignalStore", - "ActionableSignal", - "SignalCategory" - ] - }, - { - "source": "./correction-detector.js", - "specifiers": [ - "detectCorrection", - "DetectedCorrection" - ] - } - ], - "exports": [ - "recordCapabilityGap", - "analyzeAndRecordCorrection", - "recordWorkflowPattern", - "buildAwarenessSummary", - "formatAwarenessPrompt", - "markSummarySurfaced" - ], - "totalLines": 250, - "hasStructuralAnalysis": true - }, - "packages/agent/src/improvement-wiring.ts": { - "filePath": "packages/agent/src/improvement-wiring.ts", - "contentHash": "140486e2e2cf3892c166a48dc2f4ff417143d0ac272d28f7385674f221c8aede", - "functions": [ - { - "name": "processInteractionForImprovement", - "params": [ - "params" - ], - "returnType": "ImprovementWiringResult", - "exported": true, - "lineCount": 30 - }, - { - "name": "detectCapabilityGap", - "params": [ - "userMessage", - "agentResponse", - "toolsUsed" - ], - "returnType": "string | undefined", - "exported": false, - "lineCount": 27 - }, - { - "name": "detectWorkflowPattern", - "params": [ - "userMessage" - ], - "returnType": "string | undefined", - "exported": false, - "lineCount": 13 - } - ], - "classes": [], - "imports": [ - { - "source": "./correction-detector.js", - "specifiers": [ - "detectCorrection", - "DetectedCorrection" - ] - }, - { - "source": "./task-shape.js", - "specifiers": [ - "detectTaskShape", - "TaskShape" - ] - } - ], - "exports": [ - "processInteractionForImprovement" - ], - "totalLines": 182, - "hasStructuralAnalysis": true - }, - "packages/agent/src/index.ts": { - "filePath": "packages/agent/src/index.ts", - "contentHash": "7213675dd270a700018d00c1c1990ffad4e4571ac098279306e317a846f83a8d", - "functions": [], - "classes": [], - "imports": [], - "exports": [ - "Orchestrator", - "OrchestratorConfig", - "generateTurnId", - "logTurnEvent", - "startTurnCapture", - "stopTurnCapture", - "TurnLogPayload", - "TurnEventRecord", - "createMindTools", - "createToolUtilizationTracker", - "formatCombinedResult", - "ToolDefinition", - "MindToolDeps", - "ToolUtilizationTracker", - "ConfidenceLevel", - "createSystemTools", - "FileBackend", - "SystemToolDeps", - "ModelRouter", - "createLiteLLMRouter", - "ProviderConfig", - "ProviderEntry", - "ResolvedModel", - "openaiChat", - "ChatMessage", - "ChatResponse", - "Workspace", - "WorkspaceConfig", - "runAgentLoop", - "AgentLoopConfig", - "AgentResponse", - "AgentMessage", - "runSoloAgent", - "runRetrievalAgentLoop", - "SoloAgentRunConfig", - "MultiStepAgentRunConfig", - "AgentRunResult", - "LlmCallFn", - "LlmCallInput", - "LlmCallResult", - "RetrievalSearchFn", - "RetrievalSearchInput", - "RetrievalSearchResult", - "NormalizationPresetName", - "BaseAgentRunConfig", - "runRetrievalAgentLoopWithRecovery", - "LoopRecoveryOptions", - "AgentRunProgressEvent", - "AgentRunProgressEventType", - "AgentRunProgressCallback", - "selectShape", - "listShapes", - "getShapeMetadata", - "REGISTRY", - "registerShape", - "claudeShape", - "qwenThinkingShape", - "qwenNonThinkingShape", - "gptShape", - "genericSimpleShape", - "claudeGen1V1Shape", - "qwenThinkingGen1V1Shape", - "MULTI_STEP_ACTION_CONTRACT", - "PromptShape", - "PromptShapeMetadata", - "SystemPromptInput", - "SoloUserPromptInput", - "MultiStepKickoffInput", - "RetrievalInjectionInput", - "SelectShapeOptions", - "normalize", - "normalizeWithPreset", - "PRESETS", - "NormalizationConfig", - "NormalizationAction", - "NormalizationResult", - "RunMetaCapture", - "RunMetaReader", - "verifyDeterministicReplay", - "RUN_META_SCHEMA_VERSION", - "RunMeta", - "PredictionRecord", - "JudgeCallTrace", - "AuditSha", - "ModelVersion", - "ProviderRoute", - "ReplayResult", - "ReplayMismatch", - "CheckpointStore", - "CHECKPOINT_SCHEMA_VERSION", - "makeInitialState", - "nextStateFrom", - "CheckpointStepState", - "CheckpointStoreOptions", - "CheckpointDecision", - "CheckpointIntegrityReport", - "RecoveryRunner", - "RecoveryRunnerOptions", - "RecoveryRunResult", - "RecoveryRunOptions", - "RecoveryEvent", - "RecoveryEventType", - "RecoveryStepFn", - "RecoveryStepFnInput", - "RecoveryStepFnResult", - "RecoveryErrorClass", - "RecoveryErrorClassifier", - "ContextManager", - "ContextManagerOptions", - "ContextCompressionStrategy", - "ContextCompressionEvent", - "ContextCompressionEventDetail", - "DecisionsCompressionEvent", - "CacheEvictionEvent", - "ArchivedContextRange", - "ContextCompressOptions", - "classifyFailure", - "classifyFailureBatch", - "failureDistribution", - "FAILURE_CATEGORIES", - "FailureCategory", - "FailureClassification", - "ClassifierInput", - "ClassifierOptions", - "FailureConfidenceLevel", - "generateReport", - "writeReportToDisk", - "fromPilotRecord", - "AgentPredictionRecord", - "ReportOptions", - "CellMetrics", - "ModelComparisonMatrix", - "RunSummary", - "ReportArtifacts", - "WrittenReportPaths", - "PilotJsonlRecord", - "maybeCompressMessages", - "shouldCompressMessages", - "MessagesContextManagerConfig", - "MessagesCompressionEvent", - "CompressMessagesResult", - "createTeamTools", - "TeamToolDeps", - "ensureIdentity", - "IdentityConfig", - "buildSelfAwareness", - "AgentCapabilities", - "loadSystemPrompt", - "loadSystemPromptWithOverrides", - "assertOverridesReachActiveSpec", - "loadSkills", - "ComposedSystemPrompt", - "LoadedSkill", - "LoopGuard", - "LoopGuardConfig", - "scanForInjection", - "ScanResult", - "checkGrounding", - "extractClaimedSpecifics", - "GroundingResult", - "ClaimedSpecific", - "CostTracker", - "DEFAULT_MODEL_PRICING", - "ModelPricing", - "UsageStats", - "UsageEntry", - "extractEntities", - "ExtractedEntity", - "CognifyPipeline", - "CognifyConfig", - "CognifyResult", - "AgentLearning", - "LearnedBehavior", - "PersonaEffectiveness", - "LearningSnapshot", - "TraceRecorder", - "truncateTraceText", - "scrubSecrets", - "TraceHandle", - "TraceFinalizeOptions", - "EvalDatasetBuilder", - "detectSecrets", - "SECRET_PATTERN_NAMES", - "evalToJSONL", - "evalFromJSONL", - "EvalExample", - "EvalExampleMetadata", - "DatasetSplit", - "EvalBuildOptions", - "JudgeVerdict", - "IterativeGEPA", - "paretoFront", - "scoreCandidate", - "aggregateScores", - "pickWinner", - "pickGepaSample", - "GEPACandidate", - "GEPACandidateScore", - "IterativeGEPAOptions", - "GEPARunResult", - "GEPAProgress", - "ScoreCandidateOptions", - "MutateArgs", - "MutateFn", - "MutationStrategy", - "EvolutionTarget", - "runGates", - "DEFAULT_SIZE_LIMITS", - "checkNonEmpty", - "checkSize", - "checkGrowth", - "checkBalancedFences", - "checkNoPlaceholders", - "checkNoObviousTodos", - "checkRegression", - "GateVerdict", - "EvolutionGateResult", - "GateCheckResult", - "SizeLimits", - "GateOptions", - "GateCheckInput", - "EvolveSchema", - "addOutputField", - "removeField", - "editFieldDescription", - "changeFieldType", - "addConstraint", - "removeConstraint", - "reorderFields", - "replaceOutputFields", - "schemaComplexity", - "aggregateSchemaScores", - "paretoFrontSchema", - "scoreSchemaCandidate", - "pickSchemaWinner", - "generateStructureMutations", - "generateOrderMutations", - "generateRefinementMutations", - "pickSchemaSample", - "Schema", - "SchemaField", - "FieldType", - "FieldConstraint", - "SchemaMutation", - "SchemaMutationKind", - "SchemaCandidate", - "SchemaCandidateScore", - "SchemaExampleResult", - "SchemaExecuteFn", - "EvolveSchemaOptions", - "EvolveSchemaResult", - "EvolveSchemaProgress", - "ComposeEvolution", - "defaultFeedbackFilter", - "filterJudgeFeedback", - "stripStructuralLines", - "schemaExecutorFromInstructionRunner", - "ComposeEvolutionOptions", - "ComposeEvolutionResult", - "ComposeProgress", - "FeedbackFilter", - "EvolutionOrchestrator", - "eligibleForEvolution", - "summarizeRuns", - "EvolutionOrchestratorDeps", - "EvolutionOrchestratorOptions", - "EvolutionAutoTriggerConfig", - "OrchestratorRunResult", - "OrchestratorOutcome", - "EvolutionProgress", - "SchemaBaselineInput", - "deployPersonaOverride", - "rollbackPersonaOverride", - "deployBehavioralSpecOverride", - "rollbackBehavioralSpecOverride", - "loadBehavioralSpecOverrides", - "applyBehavioralSpecOverrides", - "BEHAVIORAL_SPEC_SECTIONS", - "DeployResult", - "DeployPersonaInput", - "DeployBehavioralSpecInput", - "BehavioralSpecOverride", - "BehavioralSpecSection", - "LLMJudge", - "DEFAULT_WEIGHTS", - "DEFAULT_RUBRIC", - "buildJudgePrompt", - "parseJudgeResponse", - "computeLengthPenalty", - "JudgeLLMCall", - "JudgeInput", - "JudgeScore", - "JudgeOptions", - "ParsedJudgeResponse", - "createAnthropicEvolutionLLM", - "buildJudgeLLMCall", - "buildGEPAMutateFn", - "buildSchemaExecuteFn", - "buildReflectiveMutationPrompt", - "buildSchemaFillPrompt", - "makeRunningJudge", - "isRunningJudge", - "RUNNING_JUDGE_BRAND", - "retryWithBackoff", - "wrapWithRetry", - "isRetryableEvolutionError", - "computeRetryDelay", - "DEFAULT_RETRY_OPTIONS", - "EvolutionLLM", - "CreateAnthropicEvolutionLLMOptions", - "BuildReflectiveMutationPromptArgs", - "RetryOptions", - "RetryInfo", - "RunningJudge", - "createHarnessRun", - "advancePhase", - "getCurrentPhaseInstruction", - "canRetry", - "getRunSummary", - "harnessEvents", - "WorkflowHarness", - "HarnessPhase", - "PhaseGate", - "GateResult", - "PhaseOutput", - "HarnessCheckpoint", - "HarnessRunState", - "PhaseStatus", - "HarnessPhaseStartEvent", - "HarnessPhaseCompleteEvent", - "HarnessPhaseFailEvent", - "HarnessGatePassEvent", - "HarnessGateFailEvent", - "HarnessTraceBridge", - "HarnessTraceBridgeOptions", - "HarnessTraceContext", - "HarnessTraceContextResolver", - "BUILTIN_HARNESSES", - "getHarnessById", - "matchHarness", - "researchVerifyHarness", - "codeReviewFixHarness", - "documentDraftHarness", - "FeedbackHandler", - "checkResponseQuality", - "QualityIssue", - "HookRegistry", - "HookEvent", - "HookContext", - "HookResult", - "HookActivityEntry", - "HookFn", - "loadHooksFromConfig", - "Plan", - "PlanStep", - "createPlanTools", - "createGitTools", - "PermissionManager", - "READONLY_TOOLS", - "filterToolsForContext", - "filterAvailableTools", - "filterOfflineTools", - "getOfflineCapableToolNames", - "ToolContext", - "ToolFilterConfig", - "needsConfirmation", - "needsConfirmationWithAutonomy", - "isCriticalNeverAutopass", - "ConfirmationGate", - "getApprovalClass", - "classifyGatedToolRisk", - "ConfirmationGateConfig", - "ApprovalClass", - "AutonomyLevel", - "createAuditTools", - "createDocumentTools", - "createSpreadsheetTools", - "createPresentationTools", - "createPdfTools", - "createInsightsTools", - "InsightsDeps", - "createConnectorSearchTools", - "createCrossWorkspaceTools", - "CrossWorkspaceToolDeps", - "extractEntitiesWithLLM", - "EntityLLMCallFn", - "createSkillTools", - "SkillToolsDeps", - "SkillRecommender", - "SkillRecommendation", - "SkillRecommenderDeps", - "createSubAgentTools", - "ROLE_TOOL_PRESETS", - "SubAgentToolsDeps", - "SubAgentDef", - "SubAgentResult", - "MemoryLinker", - "MemoryLink", - "CapabilityRouter", - "CapabilityRoute", - "CapabilitySource", - "CapabilityRouterDeps", - "ConnectorInfo", - "searchCapabilities", - "validateInstallCandidate", - "loadStarterSkillsMeta", - "CapabilityCandidate", - "CapabilitySourceType", - "CapabilityAvailability", - "AcquisitionProposal", - "InstallValidation", - "SearchCapabilitiesInput", - "MarketplaceCandidate", - "McpServerInstance", - "McpRuntime", - "McpServerConfig", - "McpServerState", - "McpToolInfo", - "McpProcess", - "SpawnFn", - "SubagentOrchestrator", - "WorkerState", - "WorkerStatus", - "WorkflowStep", - "WorkflowTemplate", - "SubagentOrchestratorConfig", - "BEHAVIORAL_SPEC", - "COMPACTION_PROMPT", - "buildActiveBehavioralSpec", - "BehavioralSpecSectionName", - "FEATURE_FLAGS", - "isEnabled", - "FeatureFlag", - "WORKFLOW_TEMPLATES", - "listWorkflowTemplates", - "createResearchTeamTemplate", - "createReviewPairTemplate", - "createPlanExecuteTemplate", - "createTicketResolveTemplate", - "createContentPipelineTemplate", - "loadCustomWorkflows", - "saveCustomWorkflow", - "deleteCustomWorkflow", - "listAllWorkflows", - "createWorkflowTools", - "WorkflowToolsConfig", - "detectTaskShape", - "TaskShape", - "TaskShapeType", - "TaskShapeSignal", - "ComponentPhase", - "PromptAssembler", - "AssembledPrompt", - "AssembleOptions", - "AssembleInput", - "ScaffoldStyle", - "composeWorkflow", - "validateTemplate", - "WorkflowPlan", - "ExecutionMode", - "ComposerPlanStep", - "ComposerContext", - "ValidationError", - "CommandRegistry", - "AGENT_LOOP_REROUTE_PREFIX", - "CommandDefinition", - "CommandContext", - "registerWorkflowCommands", - "registerMarketplaceCommands", - "createCronTools", - "createKvarkTools", - "parseSearchResults", - "KvarkClientLike", - "KvarkToolsDeps", - "KvarkSearchResponseLike", - "KvarkAskResponseLike", - "KvarkStructuredResult", - "KvarkFeedbackResponseLike", - "KvarkActionResponseLike", - "PERSONAS", - "getPersona", - "listPersonas", - "composePersonaPrompt", - "setPersonaDataDir", - "AgentPersona", - "loadCustomPersonas", - "saveCustomPersona", - "deleteCustomPersona", - "AgentMessageBus", - "BusAgentMessage", - "createAgentCommsTools", - "createCliTools", - "CliToolsConfig", - "createSearchTools", - "createBrowserTools", - "closeBrowser", - "createLspTools", - "stopLsp", - "assessTrust", - "resolveTrustSource", - "detectPermissions", - "classifyRisk", - "deriveApprovalClass", - "formatTrustSummary", - "TrustAssessment", - "TrustSource", - "RiskLevel", - "RiskFactor", - "PermissionSummary", - "AssessmentMode", - "AssessTrustInput", - "parseSkillFrontmatter", - "serializeFrontmatter", - "nextScope", - "SKILL_SCOPE_ORDER", - "SkillFrontmatter", - "SkillScope", - "generateSkillMarkdown", - "SkillTemplate", - "autoExtractAndCreateSkill", - "skillFilename", - "AutoExtractMessage", - "AutoExtractDeps", - "AutoExtractResult", - "getSkillDirForScope", - "redactSkillContent", - "SkillRedactionResult", - "writeSkill", - "deleteSkill", - "SkillWriteDeps", - "WriteSkillInput", - "DeleteSkillInput", - "SkillWriteResult", - "shouldDistillSkill", - "planSkillDistillation", - "SKILL_DISTILL_MIN_TOOL_CALLS", - "SkillDistillationPlan", - "assertsUnverifiedCompletion", - "VERIFICATION_GATE_DIRECTIVE", - "loadSkillUsage", - "saveSkillUsage", - "recordSkillUsage", - "forgetSkillUsage", - "getSkillUsagePath", - "SkillUsageEntry", - "SkillUsageIndex", - "retireStaleSkills", - "RetireOptions", - "RetireReport", - "buildComplianceDocDefinition", - "renderComplianceReportPdf", - "writeComplianceReportPdf", - "PdfTemplateOverrides", - "watchSkillDirectory", - "SkillWatcherOptions", - "SkillWatcherHandle", - "BaseConnector", - "WaggleConnector", - "ConnectorAction", - "ConnectorResult", - "ConnectorRegistry", - "AuditLogger", - "GitHubConnector", - "SlackConnector", - "JiraConnector", - "EmailConnector", - "GoogleCalendarConnector", - "DiscordConnector", - "LinearConnector", - "AsanaConnector", - "TrelloConnector", - "MondayConnector", - "NotionConnector", - "ConfluenceConnector", - "ObsidianConnector", - "HubSpotConnector", - "SalesforceConnector", - "PipedriveConnector", - "AirtableConnector", - "GitLabConnector", - "BitbucketConnector", - "DropboxConnector", - "PostgresConnector", - "GmailConnector", - "GoogleDocsConnector", - "GoogleDriveConnector", - "GoogleSheetsConnector", - "ComposioConnector", - "MSTeamsConnector", - "OutlookConnector", - "OneDriveConnector", - "OneNoteConnector", - "IterationBudget", - "IterationBudgetConfig", - "captureInteraction", - "getRecentLogs", - "isWithinBudget", - "CaptureInteractionInput", - "routeMessage", - "RoutingDecision", - "compressConversation", - "estimateTokens", - "needsCompression", - "pruneToolResults", - "splitProtectedRegions", - "summarizeMiddle", - "createDefaultCompressionConfig", - "CompressionConfig", - "CompressionResult", - "CompressibleMessage", - "CredentialPool", - "loadCredentialPool", - "extractStatusCode", - "CredentialEntry", - "CredentialPoolConfig", - "PoolStatus", - "VaultLike", - "shouldSuggestCapture", - "CaptureCheckParams", - "CaptureResult", - "CaptureNotification", - "deliverCronResult", - "createDefaultDeliveryPreferences", - "DeliveryChannel", - "DeliveryPreferences", - "DeliveryMessage", - "DeliveryResult", - "DeliveryConnector", - "DeliveryConnectorRegistry", - "InAppEmitter", - "detectCorrection", - "detectCorrectionsInHistory", - "DetectedCorrection", - "CorrectionDurability", - "detectContradiction", - "ContradictionResult", - "recordCapabilityGap", - "analyzeAndRecordCorrection", - "recordWorkflowPattern", - "buildAwarenessSummary", - "formatAwarenessPrompt", - "markSummarySurfaced", - "AwarenessSummary", - "CapabilityGapSignal", - "CorrectionSignal", - "WorkflowPatternSignal", - "detectInstalledTools", - "ToolDetectionDeps", - "launchTool", - "runHookCommand", - "hookPackageFor", - "ToolLauncherDeps", - "LaunchOptions", - "LaunchResult", - "HookAction", - "HookCommandOptions", - "HookCommandResult", - "ToolProcessTracker", - "TrackedProcess", - "ToolProcessTrackerDeps" - ], - "totalLines": 472, - "hasStructuralAnalysis": true - }, - "packages/agent/src/insights-tools.ts": { - "filePath": "packages/agent/src/insights-tools.ts", - "contentHash": "00c009ddd47500d10ff0463de9ae5eb6e391f6801a66d4376c5588d374b572a5", - "functions": [ - { - "name": "createInsightsTools", - "params": [ - "deps" - ], - "returnType": "ToolDefinition[]", - "exported": true, - "lineCount": 107 - } - ], - "classes": [], - "imports": [ - { - "source": "./tools.js", - "specifiers": [ - "ToolDefinition" - ] - } - ], - "exports": [ - "createInsightsTools" - ], - "totalLines": 141, - "hasStructuralAnalysis": true - }, - "packages/agent/src/injection-scanner.ts": { - "filePath": "packages/agent/src/injection-scanner.ts", - "contentHash": "b8f809ccf860b93768985004a1a6508bbfec2b321176559bdcd8804ad1084a8d", - "functions": [], - "classes": [], - "imports": [], - "exports": [ - "scanForInjection", - "ScanResult" - ], - "totalLines": 11, - "hasStructuralAnalysis": true - }, - "packages/agent/src/iteration-budget.ts": { - "filePath": "packages/agent/src/iteration-budget.ts", - "contentHash": "c80e72c20469a7dfffc34d5a8ccbeab23598d7eeac3a45410f835b9121013371", - "functions": [], - "classes": [ - { - "name": "IterationBudget", - "methods": [ - "constructor", - "tick", - "used", - "remaining", - "exhausted", - "getPressureMessage" - ], - "properties": [ - "max", - "cautionAt", - "warningAt", - "freeTools", - "count" - ], - "exported": true, - "lineCount": 34 - } - ], - "imports": [], - "exports": [ - "IterationBudget" - ], - "totalLines": 46, - "hasStructuralAnalysis": true - }, - "packages/agent/src/iterative-optimizer.ts": { - "filePath": "packages/agent/src/iterative-optimizer.ts", - "contentHash": "4f3b8966e171f1b16cf040fb5b6fae2e954f9bd1856c5f81b5478d8f6bee7051", - "functions": [ - { - "name": "paretoFront", - "params": [ - "candidates" - ], - "returnType": "Candidate[]", - "exported": true, - "lineCount": 17 - }, - { - "name": "dominates", - "params": [ - "a", - "b" - ], - "returnType": "boolean", - "exported": false, - "lineCount": 11 - }, - { - "name": "scoreCandidate", - "params": [ - "candidate", - "examples", - "judge", - "signalOrOptions" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 39 - }, - { - "name": "resolveScoreOptions", - "params": [ - "arg" - ], - "returnType": "ScoreCandidateOptions", - "exported": false, - "lineCount": 11 - }, - { - "name": "runSequential", - "params": [ - "items", - "fn" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 10 - }, - { - "name": "mapWithConcurrency", - "params": [ - "items", - "concurrency", - "fn" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 18 - }, - { - "name": "aggregateScores", - "params": [ - "scores" - ], - "returnType": "CandidateScore", - "exported": true, - "lineCount": 35 - }, - { - "name": "pickWinner", - "params": [ - "candidates" - ], - "returnType": "Candidate", - "exported": true, - "lineCount": 16 - }, - { - "name": "pickTopParent", - "params": [ - "survivors" - ], - "returnType": "Candidate | undefined", - "exported": false, - "lineCount": 6 - }, - { - "name": "bestOverall", - "params": [ - "candidates" - ], - "returnType": "number", - "exported": false, - "lineCount": 4 - }, - { - "name": "pickSample", - "params": [ - "examples", - "k", - "rng" - ], - "returnType": "EvalExample[]", - "exported": true, - "lineCount": 10 - }, - { - "name": "cycleStrategies", - "params": [ - "n", - "generation" - ], - "returnType": "MutationStrategy[]", - "exported": false, - "lineCount": 20 - }, - { - "name": "emit", - "params": [ - "config", - "phase", - "generation", - "populationSize", - "best", - "message" - ], - "returnType": "void", - "exported": false, - "lineCount": 12 - }, - { - "name": "normalizeOptions", - "params": [ - "opts" - ], - "returnType": "Required> & {\r\n onProgress?: IterativeGEPAOptions['onProgress'];\r\n signal?: AbortSignal;\r\n}", - "exported": false, - "lineCount": 22 - }, - { - "name": "makeRng", - "params": [ - "seed" - ], - "returnType": "() => number", - "exported": false, - "lineCount": 10 - } - ], - "classes": [ - { - "name": "IterativeGEPA", - "methods": [ - "run" - ], - "properties": [], - "exported": true, - "lineCount": 165 - } - ], - "imports": [ - { - "source": "./eval-dataset.js", - "specifiers": [ - "EvalExample" - ] - }, - { - "source": "./judge.js", - "specifiers": [ - "LLMJudge", - "JudgeScore" - ] - }, - { - "source": "./evolution-llm-wiring.js", - "specifiers": [ - "isRunningJudge" - ] - } - ], - "exports": [ - "IterativeGEPA", - "paretoFront", - "scoreCandidate", - "aggregateScores", - "pickWinner", - "pickSample" - ], - "totalLines": 627, - "hasStructuralAnalysis": true - }, - "packages/agent/src/judge.ts": { - "filePath": "packages/agent/src/judge.ts", - "contentHash": "12df7c226947f56a80297c524030d5e9cc411b0372138ca0e0b79d6ca4029771", - "functions": [ - { - "name": "buildPrompt", - "params": [ - "rubric", - "input" - ], - "returnType": "string", - "exported": true, - "lineCount": 15 - }, - { - "name": "parseJudgeResponse", - "params": [ - "raw" - ], - "returnType": "ParsedJudgeResponse | null", - "exported": true, - "lineCount": 33 - }, - { - "name": "extractJsonCandidates", - "params": [ - "text" - ], - "returnType": "string[]", - "exported": false, - "lineCount": 32 - }, - { - "name": "computeLengthPenalty", - "params": [ - "actualLength", - "target", - "tolerance", - "floor" - ], - "returnType": "number", - "exported": true, - "lineCount": 17 - }, - { - "name": "clampUnit", - "params": [ - "x" - ], - "returnType": "number", - "exported": false, - "lineCount": 6 - }, - { - "name": "validateWeights", - "params": [ - "w" - ], - "returnType": "void", - "exported": false, - "lineCount": 9 - }, - { - "name": "errorScore", - "params": [ - "feedback" - ], - "returnType": "JudgeScore", - "exported": false, - "lineCount": 12 - } - ], - "classes": [ - { - "name": "LLMJudge", - "methods": [ - "constructor", - "score", - "scoreBatch" - ], - "properties": [ - "llmCall", - "weights", - "lengthTarget", - "lengthTolerance", - "lengthFloor", - "rubric" - ], - "exported": true, - "lineCount": 77 - } - ], - "imports": [], - "exports": [ - "DEFAULT_WEIGHTS", - "DEFAULT_RUBRIC", - "LLMJudge", - "buildPrompt", - "parseJudgeResponse", - "computeLengthPenalty" - ], - "totalLines": 342, - "hasStructuralAnalysis": true - }, - "packages/agent/src/kvark-tools.ts": { - "filePath": "packages/agent/src/kvark-tools.ts", - "contentHash": "197157da67bda66eed48391806fe0358f367766ad97ca74c4ca00bb64aa5b900", - "functions": [ - { - "name": "parseSearchResults", - "params": [ - "response" - ], - "returnType": "KvarkStructuredResult[]", - "exported": true, - "lineCount": 10 - }, - { - "name": "formatKvarkAttribution", - "params": [ - "result" - ], - "returnType": "string", - "exported": false, - "lineCount": 8 - }, - { - "name": "formatSearchOutput", - "params": [ - "response", - "query" - ], - "returnType": "string", - "exported": false, - "lineCount": 14 - }, - { - "name": "formatAskOutput", - "params": [ - "response", - "documentId" - ], - "returnType": "string", - "exported": false, - "lineCount": 6 - }, - { - "name": "createKvarkTools", - "params": [ - "deps" - ], - "returnType": "ToolDefinition[]", - "exported": true, - "lineCount": 145 - }, - { - "name": "handleKvarkError", - "params": [ - "err", - "operation" - ], - "returnType": "string", - "exported": false, - "lineCount": 37 - } - ], - "classes": [], - "imports": [ - { - "source": "./tools.js", - "specifiers": [ - "ToolDefinition" - ] - } - ], - "exports": [ - "parseSearchResults", - "createKvarkTools" - ], - "totalLines": 312, - "hasStructuralAnalysis": true - }, - "packages/agent/src/long-task/checkpoint.ts": { - "filePath": "packages/agent/src/long-task/checkpoint.ts", - "contentHash": "e4b8c514b7db59ef28188b9cce1d26d2c9dd89be83968bdc81f165e5b7a7d018", - "functions": [ - { - "name": "stepFilename", - "params": [ - "stepIndex" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "fileExists", - "params": [ - "filePath" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 8 - }, - { - "name": "makeInitialState", - "params": [ - "opts" - ], - "returnType": "CheckpointStepState", - "exported": true, - "lineCount": 19 - }, - { - "name": "nextStateFrom", - "params": [ - "prior", - "opts" - ], - "returnType": "CheckpointStepState", - "exported": true, - "lineCount": 30 - } - ], - "classes": [ - { - "name": "CheckpointStore", - "methods": [ - "constructor", - "directory", - "taskId", - "init", - "save", - "load", - "loadLatest", - "listSteps", - "verifyIntegrity", - "dispose" - ], - "properties": [ - "taskIdInternal", - "taskDir" - ], - "exported": true, - "lineCount": 172 - } - ], - "imports": [ - { - "source": "node:fs/promises", - "specifiers": [ - "* as fsp" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:crypto", - "specifiers": [ - "* as crypto" - ] - } - ], - "exports": [ - "CHECKPOINT_SCHEMA_VERSION", - "CheckpointStore", - "makeInitialState", - "nextStateFrom" - ], - "totalLines": 368, - "hasStructuralAnalysis": true - }, - "packages/agent/src/long-task/context-manager.ts": { - "filePath": "packages/agent/src/long-task/context-manager.ts", - "contentHash": "7de5076379995a1f1e74f921f66d4a66d28b03cdbbe0271b65947fe557acab9d", - "functions": [ - { - "name": "buildHeuristicDecisionSummary", - "params": [ - "decisions" - ], - "returnType": "string", - "exported": false, - "lineCount": 8 - } - ], - "classes": [ - { - "name": "ContextManager", - "methods": [ - "constructor", - "estimateTokens", - "needsCompression", - "compress", - "evictRetrievalCache", - "compressDecisionHistory", - "_summarize", - "_summarizeDecisions" - ], - "properties": [ - "contextTokenBudget", - "compressionThreshold", - "strategy", - "llmCall", - "retrievalSearch", - "estimateFn", - "summarizationModel", - "summarizationMaxTokens", - "retainRecentChars", - "retainRecentDecisions", - "retrievalCacheMaxSize", - "emit", - "archiveDecisionsTo", - "archiveCacheTo" - ], - "exported": true, - "lineCount": 308 - } - ], - "imports": [ - { - "source": "../context-compressor.js", - "specifiers": [ - "estimateStringTokens" - ] - }, - { - "source": "../retrieval-agent-loop.js", - "specifiers": [ - "LlmCallFn", - "RetrievalSearchFn" - ] - }, - { - "source": "./checkpoint.js", - "specifiers": [ - "CHECKPOINT_SCHEMA_VERSION", - "CheckpointStepState", - "Decision" - ] - } - ], - "exports": [ - "ContextManager" - ], - "totalLines": 496, - "hasStructuralAnalysis": true - }, - "packages/agent/src/long-task/failure-classify.ts": { - "filePath": "packages/agent/src/long-task/failure-classify.ts", - "contentHash": "c651b2254adb24d95024bb84d36fdf709ecf42570aea134a22cabbd82ad7ef5e", - "functions": [ - { - "name": "asGoldArray", - "params": [ - "g" - ], - "returnType": "readonly string[]", - "exported": false, - "lineCount": 3 - }, - { - "name": "lc", - "params": [ - "s" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "normalizeForCompare", - "params": [ - "s" - ], - "returnType": "string", - "exported": false, - "lineCount": 7 - }, - { - "name": "tokenize", - "params": [ - "s" - ], - "returnType": "string[]", - "exported": false, - "lineCount": 3 - }, - { - "name": "tokenSet", - "params": [ - "s" - ], - "returnType": "Set", - "exported": false, - "lineCount": 3 - }, - { - "name": "tokenOverlap", - "params": [ - "a", - "b" - ], - "returnType": "number", - "exported": false, - "lineCount": 10 - }, - { - "name": "lowercaseSubstringMatch", - "params": [ - "output", - "gold" - ], - "returnType": "boolean", - "exported": false, - "lineCount": 7 - }, - { - "name": "detectUpstreamError", - "params": [ - "input" - ], - "returnType": "DetectorResult | null", - "exported": false, - "lineCount": 11 - }, - { - "name": "detectThinkingLeakage", - "params": [ - "input" - ], - "returnType": "DetectorResult | null", - "exported": false, - "lineCount": 20 - }, - { - "name": "detectMetadataCopy", - "params": [ - "input" - ], - "returnType": "DetectorResult | null", - "exported": false, - "lineCount": 27 - }, - { - "name": "detectFormatViolation", - "params": [ - "input" - ], - "returnType": "DetectorResult | null", - "exported": false, - "lineCount": 36 - }, - { - "name": "detectUnknownFalseNegative", - "params": [ - "input" - ], - "returnType": "DetectorResult | null", - "exported": false, - "lineCount": 25 - }, - { - "name": "detectPunctuationOrCaseOnly", - "params": [ - "input" - ], - "returnType": "DetectorResult | null", - "exported": false, - "lineCount": 17 - }, - { - "name": "detectCorrectWithExtraText", - "params": [ - "input" - ], - "returnType": "DetectorResult | null", - "exported": false, - "lineCount": 17 - }, - { - "name": "detectWrongSpan", - "params": [ - "input" - ], - "returnType": "DetectorResult | null", - "exported": false, - "lineCount": 17 - }, - { - "name": "detectWrongEntity", - "params": [ - "input" - ], - "returnType": "DetectorResult | null", - "exported": false, - "lineCount": 20 - }, - { - "name": "LLM_JUDGE_PROMPT_TEMPLATE", - "params": [ - "input" - ], - "returnType": "string", - "exported": false, - "lineCount": 25 - }, - { - "name": "invokeLlmJudge", - "params": [ - "input", - "opts" - ], - "returnType": "Promise<{ primary: FailureCategory; confidence: ConfidenceLevel; rationale: string } | null>", - "exported": false, - "lineCount": 29 - }, - { - "name": "runRuleCascade", - "params": [ - "input" - ], - "returnType": "RuleHit[]", - "exported": false, - "lineCount": 19 - }, - { - "name": "classifyFailure", - "params": [ - "input", - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 54 - }, - { - "name": "classifyFailureBatch", - "params": [ - "inputs", - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 10 - }, - { - "name": "failureDistribution", - "params": [ - "classifications" - ], - "returnType": "Readonly>", - "exported": true, - "lineCount": 20 - } - ], - "classes": [], - "imports": [ - { - "source": "../retrieval-agent-loop.js", - "specifiers": [ - "LlmCallFn" - ] - } - ], - "exports": [ - "FAILURE_CATEGORIES", - "classifyFailure", - "classifyFailureBatch", - "failureDistribution" - ], - "totalLines": 595, - "hasStructuralAnalysis": true - }, - "packages/agent/src/long-task/messages-compressor.ts": { - "filePath": "packages/agent/src/long-task/messages-compressor.ts", - "contentHash": "42a4aaf54bda8f3b969fc43fdb7392acb3136107c01d8b43597fe6a1c1c7bacc", - "functions": [ - { - "name": "estimateMessagesTokens", - "params": [ - "messages", - "perStringFn" - ], - "returnType": "number", - "exported": false, - "lineCount": 11 - }, - { - "name": "splitForCompress", - "params": [ - "messages", - "protectedHead", - "retainRecentTurns" - ], - "returnType": "SplitRegions", - "exported": false, - "lineCount": 13 - }, - { - "name": "summarizeMiddleViaLlmCall", - "params": [ - "middle", - "llmCall", - "model", - "maxTokens", - "previousSummary" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 41 - }, - { - "name": "buildFallbackSummary", - "params": [ - "middle", - "previousSummary" - ], - "returnType": "string", - "exported": false, - "lineCount": 17 - }, - { - "name": "maybeCompressMessages", - "params": [ - "messages", - "config", - "previousSummary" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 71 - }, - { - "name": "shouldCompressMessages", - "params": [ - "messages", - "config" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 8 - } - ], - "classes": [], - "imports": [ - { - "source": "../context-compressor.js", - "specifiers": [ - "estimateStringTokens", - "pruneToolResults", - "CompressibleMessage" - ] - }, - { - "source": "../behavioral-spec.js", - "specifiers": [ - "COMPACTION_PROMPT" - ] - }, - { - "source": "../retrieval-agent-loop.js", - "specifiers": [ - "LlmCallFn" - ] - } - ], - "exports": [ - "maybeCompressMessages", - "shouldCompressMessages" - ], - "totalLines": 324, - "hasStructuralAnalysis": true - }, - "packages/agent/src/long-task/recovery.ts": { - "filePath": "packages/agent/src/long-task/recovery.ts", - "contentHash": "b4283b5999a75bd0a2a2ec3546a6dad1ce4b2cf181ff68d329e664720438b5d0", - "functions": [ - { - "name": "ALWAYS_RETRYABLE", - "params": [], - "exported": false, - "lineCount": 1 - }, - { - "name": "defaultSleep", - "params": [ - "ms" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 6 - }, - { - "name": "errMessage", - "params": [ - "err" - ], - "returnType": "string", - "exported": false, - "lineCount": 9 - }, - { - "name": "computeBackoff", - "params": [ - "opts" - ], - "returnType": "number", - "exported": false, - "lineCount": 16 - } - ], - "classes": [ - { - "name": "RecoveryRunner", - "methods": [ - "constructor", - "run", - "_resolveStartingPoint", - "_buildSuccessState", - "_buildErrorState" - ], - "properties": [ - "store", - "runId", - "maxRetries", - "baseBackoffMs", - "maxBackoffMs", - "jitterFactor", - "fallbackChain", - "classify", - "rng", - "sleep", - "emit" - ], - "exported": true, - "lineCount": 264 - } - ], - "imports": [ - { - "source": "./checkpoint.js", - "specifiers": [ - "CheckpointStore", - "CHECKPOINT_SCHEMA_VERSION", - "nextStateFrom", - "CheckpointStepState", - "Decision" - ] - } - ], - "exports": [ - "RecoveryRunner" - ], - "totalLines": 465, - "hasStructuralAnalysis": true - }, - "packages/agent/src/long-task/report.ts": { - "filePath": "packages/agent/src/long-task/report.ts", - "contentHash": "b78bc2975091c9ec63d48fc3cbc3ceed73db48ef841f02cdeeebc457bd504ae2", - "functions": [ - { - "name": "wilsonCI", - "params": [ - "successes", - "trials" - ], - "returnType": "WilsonResult", - "exported": false, - "lineCount": 15 - }, - { - "name": "bootstrapCI", - "params": [ - "correctness", - "iterations", - "rng" - ], - "returnType": "{ lower: number; upper: number }", - "exported": false, - "lineCount": 17 - }, - { - "name": "asGolds", - "params": [ - "g" - ], - "returnType": "readonly string[]", - "exported": false, - "lineCount": 3 - }, - { - "name": "scoreAccuracy", - "params": [ - "output", - "gold" - ], - "returnType": "number", - "exported": false, - "lineCount": 9 - }, - { - "name": "isAbstention", - "params": [ - "output" - ], - "returnType": "boolean", - "exported": false, - "lineCount": 4 - }, - { - "name": "hasThinkingLeakage", - "params": [ - "rawOutput" - ], - "returnType": "boolean", - "exported": false, - "lineCount": 3 - }, - { - "name": "computeCellMetrics", - "params": [ - "records", - "opts" - ], - "returnType": "Promise<{ metrics: CellMetrics; failures: ReadonlyArray }>", - "exported": false, - "lineCount": 86 - }, - { - "name": "buildCrossModelMatrix", - "params": [ - "perMperC", - "models", - "cells" - ], - "returnType": "ModelComparisonMatrix", - "exported": false, - "lineCount": 11 - }, - { - "name": "bestModelPerCell", - "params": [ - "perMperC", - "models", - "cells" - ], - "returnType": "Record", - "exported": false, - "lineCount": 20 - }, - { - "name": "regressionNotes", - "params": [ - "perMperC", - "models", - "cells", - "baselineCell", - "thresholdPp" - ], - "returnType": "string[]", - "exported": false, - "lineCount": 25 - }, - { - "name": "aggregateFailureDistribution", - "params": [ - "perMperC" - ], - "returnType": "Record", - "exported": false, - "lineCount": 13 - }, - { - "name": "renderSummaryMd", - "params": [ - "summary" - ], - "returnType": "string", - "exported": false, - "lineCount": 80 - }, - { - "name": "generateReport", - "params": [ - "records", - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 55 - }, - { - "name": "writeReportToDisk", - "params": [ - "records", - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 18 - }, - { - "name": "fromPilotRecord", - "params": [ - "record", - "opts" - ], - "returnType": "AgentPredictionRecord", - "exported": true, - "lineCount": 20 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:fs/promises", - "specifiers": [ - "* as fsp" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "./failure-classify.js", - "specifiers": [ - "classifyFailure", - "failureDistribution", - "FAILURE_CATEGORIES", - "FailureCategory", - "FailureClassification", - "ClassifierOptions" - ] - } - ], - "exports": [ - "generateReport", - "writeReportToDisk", - "fromPilotRecord" - ], - "totalLines": 600, - "hasStructuralAnalysis": true - }, - "packages/agent/src/loop-gates.ts": { - "filePath": "packages/agent/src/loop-gates.ts", - "contentHash": "2e8586fc0ab6ebacb920e20c229723e1e065e5607c49728ac59417b9419dff83", - "functions": [ - { - "name": "initialGateState", - "params": [], - "returnType": "GateState", - "exported": true, - "lineCount": 7 - }, - { - "name": "maybeFireCompletionGate", - "params": [ - "args" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 63 - } - ], - "classes": [], - "imports": [ - { - "source": "./verification-gate.js", - "specifiers": [ - "assertsUnverifiedCompletion", - "VERIFICATION_GATE_DIRECTIVE" - ] - }, - { - "source": "./skill-distillation.js", - "specifiers": [ - "planSkillDistillation" - ] - }, - { - "source": "./turn-context.js", - "specifiers": [ - "logTurnEvent" - ] - } - ], - "exports": [ - "initialGateState", - "maybeFireCompletionGate" - ], - "totalLines": 172, - "hasStructuralAnalysis": true - }, - "packages/agent/src/loop-guard.ts": { - "filePath": "packages/agent/src/loop-guard.ts", - "contentHash": "4ad3349b862498a9f1c4b49e15281e8f3bd51f421eb1c3d03ad618d321592e2c", - "functions": [], - "classes": [ - { - "name": "LoopGuard", - "methods": [ - "constructor", - "check", - "reset" - ], - "properties": [ - "maxRepeats", - "lastHash", - "consecutiveCount", - "window", - "windowSize", - "windowThreshold" - ], - "exported": true, - "lineCount": 58 - } - ], - "imports": [ - { - "source": "node:crypto", - "specifiers": [ - "createHash" - ] - } - ], - "exports": [ - "LoopGuard" - ], - "totalLines": 69, - "hasStructuralAnalysis": true - }, - "packages/agent/src/lsp-tools.ts": { - "filePath": "packages/agent/src/lsp-tools.ts", - "contentHash": "1890c350596653154f7f2bf8c48e1899f8c6b5f7aa1f66d63e204c6ec910fef7", - "functions": [ - { - "name": "_resetLspState", - "params": [], - "returnType": "void", - "exported": true, - "lineCount": 8 - }, - { - "name": "sendMessage", - "params": [ - "msg" - ], - "returnType": "void", - "exported": false, - "lineCount": 8 - }, - { - "name": "sendRequest", - "params": [ - "method", - "params" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 15 - }, - { - "name": "sendNotification", - "params": [ - "method", - "params" - ], - "returnType": "void", - "exported": false, - "lineCount": 3 - }, - { - "name": "handleData", - "params": [ - "data" - ], - "returnType": "void", - "exported": false, - "lineCount": 40 - }, - { - "name": "ensureLsp", - "params": [ - "workspacePath" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 69 - }, - { - "name": "stopLsp", - "params": [], - "returnType": "Promise", - "exported": true, - "lineCount": 13 - }, - { - "name": "fileUri", - "params": [ - "filePath" - ], - "returnType": "string", - "exported": false, - "lineCount": 5 - }, - { - "name": "openFile", - "params": [ - "filePath" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 23 - }, - { - "name": "createLspTools", - "params": [ - "workspacePath" - ], - "returnType": "ToolDefinition[]", - "exported": true, - "lineCount": 255 - } - ], - "classes": [], - "imports": [ - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:child_process", - "specifiers": [ - "spawn", - "ChildProcess" - ] - }, - { - "source": "./tools.js", - "specifiers": [ - "ToolDefinition" - ] - } - ], - "exports": [ - "_resetLspState", - "createLspTools", - "stopLsp" - ], - "totalLines": 510, - "hasStructuralAnalysis": true - }, - "packages/agent/src/mcp/mcp-runtime.ts": { - "filePath": "packages/agent/src/mcp/mcp-runtime.ts", - "contentHash": "1c3adf501488cccaf35359d7b7b10d97ead0dd947c9fdd9fa16990e6f2b30262", - "functions": [ - { - "name": "defaultSpawn", - "params": [ - "command", - "args", - "options" - ], - "returnType": "McpProcess", - "exported": false, - "lineCount": 10 - } - ], - "classes": [ - { - "name": "McpServerInstance", - "methods": [ - "constructor", - "getState", - "isHealthy", - "getTools", - "start", - "refreshTools", - "stop", - "callTool", - "setState", - "sendNotification", - "sendRequest", - "processBuffer", - "handleProcessExit", - "rejectAllPending" - ], - "properties": [ - "config", - "state", - "process", - "spawnFn", - "nextId", - "pendingRequests", - "tools", - "stdoutBuffer", - "autoRestart", - "toolCallTimeoutMs" - ], - "exported": true, - "lineCount": 263 - }, - { - "name": "McpRuntime", - "methods": [ - "constructor", - "addServer", - "removeServer", - "getServer", - "startAll", - "stopAll", - "getServerStates", - "getHealthy", - "getAllTools", - "getToolsForWorkspace", - "isServerHealthy", - "wrapServerTools" - ], - "properties": [ - "servers", - "configs", - "spawnFn", - "autoRestart", - "toolCallTimeoutMs" - ], - "exported": true, - "lineCount": 129 - } - ], - "imports": [ - { - "source": "events", - "specifiers": [ - "EventEmitter" - ] - }, - { - "source": "node:child_process", - "specifiers": [ - "spawn", - "StdioOptions" - ] - }, - { - "source": "stream", - "specifiers": [ - "Readable", - "Writable" - ] - }, - { - "source": "../tools.js", - "specifiers": [ - "ToolDefinition" - ] - } - ], - "exports": [ - "McpServerInstance", - "McpRuntime" - ], - "totalLines": 467, - "hasStructuralAnalysis": true - }, - "packages/agent/src/memory-linker.ts": { - "filePath": "packages/agent/src/memory-linker.ts", - "contentHash": "5e22b4ac235dbc3f29bed08c415f80bd17480e7a736babfc649cecafdddfa1a9", - "functions": [], - "classes": [ - { - "name": "MemoryLinker", - "methods": [ - "constructor", - "findRelated" - ], - "properties": [ - "search", - "threshold" - ], - "exported": true, - "lineCount": 20 - } - ], - "imports": [ - { - "source": "@waggle/core", - "specifiers": [ - "HybridSearch", - "SearchResult" - ] - } - ], - "exports": [ - "MemoryLinker" - ], - "totalLines": 29, - "hasStructuralAnalysis": true - }, - "packages/agent/src/memory-sign-gate.ts": { - "filePath": "packages/agent/src/memory-sign-gate.ts", - "contentHash": "8378a5c6fd7e23eda462dffa193a151520b6d5169fac03f4b1617a3dc4d8566f", - "functions": [ - { - "name": "isSelfIncapacityAssertion", - "params": [ - "content" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 4 - } - ], - "classes": [], - "imports": [], - "exports": [ - "isSelfIncapacityAssertion" - ], - "totalLines": 54, - "hasStructuralAnalysis": true - }, - "packages/agent/src/model-family.ts": { - "filePath": "packages/agent/src/model-family.ts", - "contentHash": "1cd770dc56ff66fea441dd149c885fd3d8d8d7f4ebec6820d4f4e6825efc4bd4", - "functions": [ - { - "name": "familyForModel", - "params": [ - "model" - ], - "returnType": "ModelFamily", - "exported": true, - "lineCount": 32 - } - ], - "classes": [], - "imports": [], - "exports": [ - "familyForModel" - ], - "totalLines": 77, - "hasStructuralAnalysis": true - }, - "packages/agent/src/model-router.ts": { - "filePath": "packages/agent/src/model-router.ts", - "contentHash": "f72c2412da29824fe29db2a545e608c671ad3370894e629ff2419ebe268d3c42", - "functions": [ - { - "name": "createLiteLLMRouter", - "params": [ - "config" - ], - "returnType": "ModelRouter", - "exported": true, - "lineCount": 20 - } - ], - "classes": [ - { - "name": "ModelRouter", - "methods": [ - "constructor", - "resolve", - "listModels", - "getDefaultModel" - ], - "properties": [ - "config", - "modelIndex" - ], - "exported": true, - "lineCount": 52 - } - ], - "imports": [], - "exports": [ - "ModelRouter", - "createLiteLLMRouter" - ], - "totalLines": 104, - "hasStructuralAnalysis": true - }, - "packages/agent/src/model-tier.ts": { - "filePath": "packages/agent/src/model-tier.ts", - "contentHash": "e0db1108785280613fda3ababc0e8356605547a4417d7e00e30fe9ec77ae6d9b", - "functions": [ - { - "name": "tierForModel", - "params": [ - "model" - ], - "returnType": "ModelTier", - "exported": true, - "lineCount": 15 - } - ], - "classes": [], - "imports": [], - "exports": [ - "tierForModel" - ], - "totalLines": 44, - "hasStructuralAnalysis": true - }, - "packages/agent/src/optimization-capture.ts": { - "filePath": "packages/agent/src/optimization-capture.ts", - "contentHash": "c9710489aa641d466f6a2c3594165879ad41fafbe7170b4a3acab35cd71ec331", - "functions": [ - { - "name": "captureInteraction", - "params": [ - "store", - "input" - ], - "returnType": "OptimizationLogEntry", - "exported": true, - "lineCount": 16 - }, - { - "name": "getRecentLogs", - "params": [ - "store", - "limit" - ], - "returnType": "OptimizationLogEntry[]", - "exported": true, - "lineCount": 6 - }, - { - "name": "getWorkspaceLogs", - "params": [ - "store", - "workspaceId", - "limit" - ], - "returnType": "OptimizationLogEntry[]", - "exported": true, - "lineCount": 7 - }, - { - "name": "isWithinBudget", - "params": [ - "store", - "budgetCents", - "costPerInputToken", - "costPerOutputToken" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 13 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/core", - "specifiers": [ - "OptimizationLogStore", - "CreateOptimizationLogInput", - "OptimizationLogEntry" - ] - }, - { - "source": "./agent-loop.js", - "specifiers": [ - "AgentResponse" - ] - } - ], - "exports": [ - "captureInteraction", - "getRecentLogs", - "getWorkspaceLogs", - "isWithinBudget" - ], - "totalLines": 97, - "hasStructuralAnalysis": true - }, - "packages/agent/src/orchestrator.ts": { - "filePath": "packages/agent/src/orchestrator.ts", - "contentHash": "a6875995a551990a7b74bc1bb1fa7a9c84c3eb6197653fcc084edc682bf510ba", - "functions": [], - "classes": [ - { - "name": "Orchestrator", - "methods": [ - "constructor", - "setWorkspaceMind", - "clearWorkspaceMind", - "setTeamSync", - "hasWorkspaceMind", - "getMemoryStats", - "loadRecentContext", - "loadRecentContextFrames", - "contextLoaderDeps", - "cachedSection", - "uncachedSection", - "buildSystemPrompt", - "buildAssembledPrompt", - "commitSurfacedSignals", - "getReranker", - "recallMemory", - "autoSaveFromExchange", - "getTools", - "executeTool", - "getIdentity", - "getAwareness", - "getFrames", - "getSessions", - "getSearch", - "getKnowledge", - "getImprovementSignals" - ], - "properties": [ - "db", - "embedder", - "identity", - "awareness", - "frames", - "sessions", - "search", - "knowledge", - "tools", - "model", - "mode", - "version", - "skills", - "improvementSignals", - "_pendingSurfacedAwareness", - "workspaceLayers", - "rerankerPromise", - "teamSync", - "_sectionCache" - ], - "exported": true, - "lineCount": 765 - } - ], - "imports": [ - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "MemoryFrame", - "ScoringProfile", - "IdentityLayer", - "AwarenessLayer", - "FrameStore", - "SessionStore", - "HybridSearch", - "KnowledgeGraph", - "ImprovementSignalStore", - "createCoreLogger", - "Embedder", - "TEMPORAL_GUIDANCE", - "renderReferenceDateLine", - "parseDateWindow", - "createInProcessReranker", - "Reranker", - "MIND_FACT_PREFIX", - "MIND_EVENT_PREFIX", - "MIND_PROFILE_PREFIX", - "MIND_RAWTURN_PREFIX", - "fetchRawDetailLane", - "rawTurnBody", - "RawTurnHit" - ] - }, - { - "source": "./tools.js", - "specifiers": [ - "createMindTools", - "ToolDefinition" - ] - }, - { - "source": "./self-awareness.js", - "specifiers": [ - "buildSelfAwareness", - "AgentCapabilities" - ] - }, - { - "source": "./improvement-detector.js", - "specifiers": [ - "buildAwarenessSummary", - "markSummarySurfaced", - "AwarenessSummary" - ] - }, - { - "source": "./cognify.js", - "specifiers": [ - "CognifyPipeline" - ] - }, - { - "source": "./injection-scanner.js", - "specifiers": [ - "scanForInjection" - ] - }, - { - "source": "./pattern-write-back.js", - "specifiers": [ - "runPatternWriteBack" - ] - }, - { - "source": "./context-loader.js", - "specifiers": [ - "fetchRecentFrames", - "loadRecentContextImpl", - "loadRecentContextFramesImpl", - "ContextFramesImpl" - ] - }, - { - "source": "./turn-context.js", - "specifiers": [ - "logTurnEvent" - ] - }, - { - "source": "./model-tier.js", - "specifiers": [ - "tierForModel", - "ModelTier" - ] - }, - { - "source": "./personas.js", - "specifiers": [ - "AgentPersona" - ] - }, - { - "source": "./prompt-assembler.js", - "specifiers": [ - "PromptAssembler", - "AssembleOptions", - "AssembledPrompt", - "RecalledMemory" - ] - }, - { - "source": "./content-constants.js", - "specifiers": [ - "CONTEXT_PREVIEW_LENGTH", - "RECALL_LINE_LENGTH", - "RECALLED_SNIPPET_LENGTH" - ] - } - ], - "exports": [ - "Orchestrator" - ], - "totalLines": 880, - "hasStructuralAnalysis": true - }, - "packages/agent/src/output-normalize.ts": { - "filePath": "packages/agent/src/output-normalize.ts", - "contentHash": "2a4e0423817c443ada07d59ed63131fb18f6ee1222b3a43aa3181c9838ce6ac0", - "functions": [ - { - "name": "recordAction", - "params": [ - "actions", - "rule", - "before", - "after" - ], - "returnType": "void", - "exported": false, - "lineCount": 9 - }, - { - "name": "applyStripThinkTags", - "params": [ - "text", - "actions" - ], - "returnType": "string", - "exported": false, - "lineCount": 7 - }, - { - "name": "applyStripAnswerLabels", - "params": [ - "text", - "actions" - ], - "returnType": "string", - "exported": false, - "lineCount": 6 - }, - { - "name": "applyStripWholeResponseMarkdownFence", - "params": [ - "text", - "actions" - ], - "returnType": "string", - "exported": false, - "lineCount": 10 - }, - { - "name": "applyStripCopiedMetadata", - "params": [ - "text", - "actions" - ], - "returnType": "string", - "exported": false, - "lineCount": 16 - }, - { - "name": "applyCollapseBlankLines", - "params": [ - "text", - "actions" - ], - "returnType": "string", - "exported": false, - "lineCount": 6 - }, - { - "name": "applyTrimWhitespace", - "params": [ - "text", - "actions" - ], - "returnType": "string", - "exported": false, - "lineCount": 6 - }, - { - "name": "applyUnknownAliases", - "params": [ - "text", - "unknownAliases", - "actions" - ], - "returnType": "string", - "exported": false, - "lineCount": 17 - }, - { - "name": "normalize", - "params": [ - "text", - "config" - ], - "returnType": "NormalizationResult", - "exported": true, - "lineCount": 34 - }, - { - "name": "normalizeWithPreset", - "params": [ - "text", - "presetName" - ], - "returnType": "NormalizationResult", - "exported": true, - "lineCount": 10 - } - ], - "classes": [], - "imports": [], - "exports": [ - "PRESETS", - "normalize", - "normalizeWithPreset" - ], - "totalLines": 280, - "hasStructuralAnalysis": true - }, - "packages/agent/src/pattern-write-back.ts": { - "filePath": "packages/agent/src/pattern-write-back.ts", - "contentHash": "b138c9ecb77997062c7433cc30d7720969216a5d2e9fd5d67c3a13177da40bc2", - "functions": [ - { - "name": "runPatternWriteBack", - "params": [ - "deps", - "userMsg", - "assistantMsg", - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 244 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/core", - "specifiers": [ - "FrameStore", - "SessionStore", - "Importance", - "FrameSource", - "MemoryFrame", - "MindDB", - "TeamSync", - "createCoreLogger" - ] - }, - { - "source": "./memory-sign-gate.js", - "specifiers": [ - "isSelfIncapacityAssertion" - ] - }, - { - "source": "./cognify.js", - "specifiers": [ - "CognifyPipeline" - ] - }, - { - "source": "./content-constants.js", - "specifiers": [ - "MIN_CONTENT_LENGTH", - "DEDUP_SLICE_LENGTH", - "RECALL_LINE_LENGTH", - "FINDINGS_SLICE_LENGTH", - "STRUCTURED_EXTRACT_THRESHOLD", - "CONTEXT_PREVIEW_LENGTH" - ] - } - ], - "exports": [ - "runPatternWriteBack" - ], - "totalLines": 378, - "hasStructuralAnalysis": true - }, - "packages/agent/src/pdf-tools.ts": { - "filePath": "packages/agent/src/pdf-tools.ts", - "contentHash": "95068b34c87e5a1b1b30ae32cb9898fae23e2c6ac100d4327287d726e9d2782a", - "functions": [ - { - "name": "resolveSafe", - "params": [ - "workspace", - "filePath" - ], - "returnType": "string", - "exported": false, - "lineCount": 7 - }, - { - "name": "parseContent", - "params": [ - "text" - ], - "returnType": "Content[]", - "exported": false, - "lineCount": 60 - }, - { - "name": "parseInlineFormatting", - "params": [ - "text" - ], - "returnType": "Array<{ text: string; bold?: boolean; italics?: boolean; font?: string }>", - "exported": false, - "lineCount": 23 - }, - { - "name": "createPdfTools", - "params": [ - "workspace" - ], - "returnType": "ToolDefinition[]", - "exported": true, - "lineCount": 115 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "pdfmake/interfaces.js", - "specifiers": [ - "TDocumentDefinitions", - "Content" - ] - }, - { - "source": "./tools.js", - "specifiers": [ - "ToolDefinition" - ] - } - ], - "exports": [ - "createPdfTools" - ], - "totalLines": 229, - "hasStructuralAnalysis": true - }, - "packages/agent/src/permissions.ts": { - "filePath": "packages/agent/src/permissions.ts", - "contentHash": "3f837054e67f9154057ad1dcccbc18ba207717c608848e8f791a33c55cdc2a05", - "functions": [], - "classes": [ - { - "name": "PermissionManager", - "methods": [ - "constructor", - "sandbox", - "isAllowed", - "filterTools" - ], - "properties": [ - "blacklist", - "whitelist" - ], - "exported": true, - "lineCount": 23 - } - ], - "imports": [ - { - "source": "./tools.js", - "specifiers": [ - "ToolDefinition" - ] - } - ], - "exports": [ - "READONLY_TOOLS", - "PermissionManager" - ], - "totalLines": 39, - "hasStructuralAnalysis": true - }, - "packages/agent/src/persona-data.ts": { - "filePath": "packages/agent/src/persona-data.ts", - "contentHash": "d192c3bd557ea4d39d47d11e08281d566b056fb00b1299aac1e726f39624ef9a", - "functions": [], - "classes": [], - "imports": [ - { - "source": "./personas.js", - "specifiers": [ - "AgentPersona" - ] - } - ], - "exports": [ - "PERSONAS" - ], - "totalLines": 966, - "hasStructuralAnalysis": true - }, - "packages/agent/src/personas.ts": { - "filePath": "packages/agent/src/personas.ts", - "contentHash": "1962ccc1c3b7219859f604bfdfff291970e3d7a51d9304cac512b7aee1b150a8", - "functions": [ - { - "name": "getPersona", - "params": [ - "id" - ], - "returnType": "AgentPersona | null", - "exported": true, - "lineCount": 3 - }, - { - "name": "setPersonaDataDir", - "params": [ - "dataDir" - ], - "returnType": "void", - "exported": true, - "lineCount": 3 - }, - { - "name": "listPersonas", - "params": [], - "returnType": "AgentPersona[]", - "exported": true, - "lineCount": 4 - }, - { - "name": "composePersonaPrompt", - "params": [ - "corePrompt", - "persona", - "maxChars", - "workspaceTone" - ], - "returnType": "string", - "exported": true, - "lineCount": 27 - } - ], - "classes": [], - "imports": [ - { - "source": "./custom-personas.js", - "specifiers": [ - "loadCustomPersonas" - ] - }, - { - "source": "./persona-data.js", - "specifiers": [ - "PERSONAS" - ] - } - ], - "exports": [ - "PERSONAS", - "getPersona", - "setPersonaDataDir", - "listPersonas", - "composePersonaPrompt" - ], - "totalLines": 120, - "hasStructuralAnalysis": true - }, - "packages/agent/src/plan-tools.ts": { - "filePath": "packages/agent/src/plan-tools.ts", - "contentHash": "65d9a87ad317d82742232b586c0bbb405ba3c4b0f9531b834d59772b88db8b3c", - "functions": [ - { - "name": "createPlanTools", - "params": [], - "returnType": "ToolDefinition[]", - "exported": true, - "lineCount": 76 - } - ], - "classes": [], - "imports": [ - { - "source": "./tools.js", - "specifiers": [ - "ToolDefinition" - ] - }, - { - "source": "./plan.js", - "specifiers": [ - "Plan" - ] - } - ], - "exports": [ - "createPlanTools" - ], - "totalLines": 80, - "hasStructuralAnalysis": true - }, - "packages/agent/src/plan.ts": { - "filePath": "packages/agent/src/plan.ts", - "contentHash": "ba887be8aaf2918a2ff6e818571eceefece5783ffc497ae00da9e7a8bf5c24e2", - "functions": [], - "classes": [ - { - "name": "Plan", - "methods": [ - "addStep", - "getSteps", - "getCurrentStep", - "completeCurrentStep", - "failCurrentStep", - "isComplete", - "toJSON", - "fromJSON" - ], - "properties": [ - "steps", - "currentIndex" - ], - "exported": true, - "lineCount": 49 - } - ], - "imports": [], - "exports": [ - "Plan" - ], - "totalLines": 59, - "hasStructuralAnalysis": true - }, - "packages/agent/src/presentation-tools.ts": { - "filePath": "packages/agent/src/presentation-tools.ts", - "contentHash": "e153eb85f5de963a17c973667596ec793bf7d4211188292a1e2676ecfbe591fc", - "functions": [ - { - "name": "resolveSafe", - "params": [ - "workspace", - "filePath" - ], - "returnType": "string", - "exported": false, - "lineCount": 7 - }, - { - "name": "createPresentationTools", - "params": [ - "workspace" - ], - "returnType": "ToolDefinition[]", - "exported": true, - "lineCount": 165 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "pptxgenjs", - "specifiers": [ - "PptxGenJS" - ] - }, - { - "source": "./tools.js", - "specifiers": [ - "ToolDefinition" - ] - } - ], - "exports": [ - "createPresentationTools" - ], - "totalLines": 204, - "hasStructuralAnalysis": true - }, - "packages/agent/src/prompt-assembler.ts": { - "filePath": "packages/agent/src/prompt-assembler.ts", - "contentHash": "42908bd5b875c8717365a6d5d4ba88912a09abcfa19047d57870d53527c1e9dd", - "functions": [ - { - "name": "selectFrames", - "params": [ - "frames", - "limit" - ], - "returnType": "MemoryFrame[]", - "exported": false, - "lineCount": 16 - }, - { - "name": "selectScaffold", - "params": [ - "tier", - "taskShape", - "confidenceThreshold", - "style" - ], - "returnType": "string | null", - "exported": false, - "lineCount": 15 - }, - { - "name": "renderPersona", - "params": [ - "persona" - ], - "returnType": "string", - "exported": false, - "lineCount": 6 - }, - { - "name": "renderFrames", - "params": [ - "frames" - ], - "returnType": "string", - "exported": false, - "lineCount": 5 - }, - { - "name": "renderActiveWork", - "params": [ - "items" - ], - "returnType": "string", - "exported": false, - "lineCount": 4 - }, - { - "name": "renderPreferences", - "params": [ - "prefs" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - } - ], - "classes": [ - { - "name": "PromptAssembler", - "methods": [ - "assemble" - ], - "properties": [], - "exported": true, - "lineCount": 149 - } - ], - "imports": [ - { - "source": "@waggle/core", - "specifiers": [ - "MemoryFrame", - "Importance" - ] - }, - { - "source": "./personas.js", - "specifiers": [ - "AgentPersona" - ] - }, - { - "source": "./model-tier.js", - "specifiers": [ - "ModelTier" - ] - }, - { - "source": "./task-shape.js", - "specifiers": [ - "detectTaskShape", - "TaskShape", - "TaskShapeType" - ] - }, - { - "source": "./orchestrator.js", - "specifiers": [ - "ContextFrames" - ] - }, - { - "source": "./turn-context.js", - "specifiers": [ - "logTurnEvent" - ] - } - ], - "exports": [ - "PromptAssembler" - ], - "totalLines": 468, - "hasStructuralAnalysis": true - }, - "packages/agent/src/prompt-loader.ts": { - "filePath": "packages/agent/src/prompt-loader.ts", - "contentHash": "6cf525d8cd3a0e0cd5b6ac46f6201a0f6811a0a531f4b5ed365e4964d2e56283", - "functions": [ - { - "name": "loadSystemPrompt", - "params": [ - "waggleDir" - ], - "returnType": "string | null", - "exported": true, - "lineCount": 6 - }, - { - "name": "loadSystemPromptWithOverrides", - "params": [ - "waggleDir" - ], - "returnType": "ComposedSystemPrompt", - "exported": true, - "lineCount": 8 - }, - { - "name": "assertOverridesReachActiveSpec", - "params": [ - "waggleDir", - "activeSpec" - ], - "returnType": "void", - "exported": true, - "lineCount": 22 - }, - { - "name": "loadSkills", - "params": [ - "waggleDir" - ], - "returnType": "LoadedSkill[]", - "exported": true, - "lineCount": 10 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "./behavioral-spec.js", - "specifiers": [ - "buildActiveBehavioralSpec" - ] - }, - { - "source": "./evolution-deploy.js", - "specifiers": [ - "loadBehavioralSpecOverrides" - ] - }, - { - "source": "./custom-personas.js", - "specifiers": [ - "loadCustomPersonas" - ] - }, - { - "source": "./personas.js", - "specifiers": [ - "AgentPersona" - ] - } - ], - "exports": [ - "loadSystemPrompt", - "loadSystemPromptWithOverrides", - "assertOverridesReachActiveSpec", - "loadSkills" - ], - "totalLines": 116, - "hasStructuralAnalysis": true - }, - "packages/agent/src/prompt-shapes/claude.ts": { - "filePath": "packages/agent/src/prompt-shapes/claude.ts", - "contentHash": "cbaf0c37b067b025a1fe97f2feeec11fae4070a8b3fcfaad1da8775dda451cc0", - "functions": [], - "classes": [], - "imports": [ - { - "source": "./types.js", - "specifiers": [ - "PromptShape", - "SystemPromptInput", - "SoloUserPromptInput", - "MultiStepKickoffInput", - "RetrievalInjectionInput", - "MULTI_STEP_ACTION_CONTRACT" - ] - } - ], - "exports": [ - "claudeShape" - ], - "totalLines": 97, - "hasStructuralAnalysis": true - }, - "packages/agent/src/prompt-shapes/generic-simple.ts": { - "filePath": "packages/agent/src/prompt-shapes/generic-simple.ts", - "contentHash": "81189817f560e26a69394248d8bd9089cae72c7d40825323e2b7407e36026172", - "functions": [], - "classes": [], - "imports": [ - { - "source": "./types.js", - "specifiers": [ - "PromptShape", - "SystemPromptInput", - "SoloUserPromptInput", - "MultiStepKickoffInput", - "RetrievalInjectionInput", - "MULTI_STEP_ACTION_CONTRACT" - ] - } - ], - "exports": [ - "genericSimpleShape" - ], - "totalLines": 80, - "hasStructuralAnalysis": true - }, - "packages/agent/src/prompt-shapes/gepa-evolved/claude-gen1-v1.ts": { - "filePath": "packages/agent/src/prompt-shapes/gepa-evolved/claude-gen1-v1.ts", - "contentHash": "58c8b83e8c8e01c1f59583bdd70fdac8c219c15c97996ee6182139c518b7ab60", - "functions": [], - "classes": [], - "imports": [ - { - "source": "../types.js", - "specifiers": [ - "PromptShape", - "SystemPromptInput", - "SoloUserPromptInput", - "MultiStepKickoffInput", - "RetrievalInjectionInput", - "MULTI_STEP_ACTION_CONTRACT" - ] - } - ], - "exports": [ - "claudeGen1V1Shape" - ], - "totalLines": 148, - "hasStructuralAnalysis": true - }, - "packages/agent/src/prompt-shapes/gepa-evolved/claude-gen1-v2.ts": { - "filePath": "packages/agent/src/prompt-shapes/gepa-evolved/claude-gen1-v2.ts", - "contentHash": "d37f0da08b9dd39aa2c27bea15e93dab045c568c432d9827a5bad3961032fed8", - "functions": [], - "classes": [], - "imports": [ - { - "source": "../types.js", - "specifiers": [ - "PromptShape", - "SystemPromptInput", - "SoloUserPromptInput", - "MultiStepKickoffInput", - "RetrievalInjectionInput", - "MULTI_STEP_ACTION_CONTRACT" - ] - } - ], - "exports": [ - "claudeGen1V2Shape" - ], - "totalLines": 147, - "hasStructuralAnalysis": true - }, - "packages/agent/src/prompt-shapes/gepa-evolved/generic-simple-gen1-v1.ts": { - "filePath": "packages/agent/src/prompt-shapes/gepa-evolved/generic-simple-gen1-v1.ts", - "contentHash": "cfad603405e32d6b8abc46fc3c02840cc799ee922c6c081cd58f62e54bf94b7f", - "functions": [], - "classes": [], - "imports": [ - { - "source": "../types.js", - "specifiers": [ - "PromptShape", - "SystemPromptInput", - "SoloUserPromptInput", - "MultiStepKickoffInput", - "RetrievalInjectionInput", - "MULTI_STEP_ACTION_CONTRACT" - ] - } - ], - "exports": [ - "genericSimpleGen1V1Shape" - ], - "totalLines": 95, - "hasStructuralAnalysis": true - }, - "packages/agent/src/prompt-shapes/gepa-evolved/generic-simple-gen1-v2.ts": { - "filePath": "packages/agent/src/prompt-shapes/gepa-evolved/generic-simple-gen1-v2.ts", - "contentHash": "2cc110d4091d785ccff3e1397253ec60d1c3ba1fd0d57ed4a7e69ba022e5d392", - "functions": [], - "classes": [], - "imports": [ - { - "source": "../types.js", - "specifiers": [ - "PromptShape", - "SystemPromptInput", - "SoloUserPromptInput", - "MultiStepKickoffInput", - "RetrievalInjectionInput", - "MULTI_STEP_ACTION_CONTRACT" - ] - } - ], - "exports": [ - "genericSimpleGen1V2Shape" - ], - "totalLines": 53, - "hasStructuralAnalysis": true - }, - "packages/agent/src/prompt-shapes/gepa-evolved/gpt-gen1-v1.ts": { - "filePath": "packages/agent/src/prompt-shapes/gepa-evolved/gpt-gen1-v1.ts", - "contentHash": "d649bb5e2e7b115f56d9fbe2bf898240a6bfffe7f8340e91724896142146881a", - "functions": [], - "classes": [], - "imports": [ - { - "source": "../types.js", - "specifiers": [ - "PromptShape", - "SystemPromptInput", - "SoloUserPromptInput", - "MultiStepKickoffInput", - "RetrievalInjectionInput", - "MULTI_STEP_ACTION_CONTRACT" - ] - } - ], - "exports": [ - "gptGen1V1Shape" - ], - "totalLines": 74, - "hasStructuralAnalysis": true - }, - "packages/agent/src/prompt-shapes/gepa-evolved/gpt-gen1-v2.ts": { - "filePath": "packages/agent/src/prompt-shapes/gepa-evolved/gpt-gen1-v2.ts", - "contentHash": "0e6779fd0efab39b2aac5c0797ffac00a49e41331b90d766fff65b8c305d8d8e", - "functions": [], - "classes": [], - "imports": [ - { - "source": "../types.js", - "specifiers": [ - "PromptShape", - "SystemPromptInput", - "SoloUserPromptInput", - "MultiStepKickoffInput", - "RetrievalInjectionInput", - "MULTI_STEP_ACTION_CONTRACT" - ] - } - ], - "exports": [ - "gptGen1V2Shape" - ], - "totalLines": 53, - "hasStructuralAnalysis": true - }, - "packages/agent/src/prompt-shapes/gepa-evolved/qwen-non-thinking-gen1-v1.ts": { - "filePath": "packages/agent/src/prompt-shapes/gepa-evolved/qwen-non-thinking-gen1-v1.ts", - "contentHash": "f98704afa0fc37fcde856f9b87f296910486c2e18ce63b0046f9d4f79126c9d1", - "functions": [], - "classes": [], - "imports": [ - { - "source": "../types.js", - "specifiers": [ - "PromptShape", - "SystemPromptInput", - "SoloUserPromptInput", - "MultiStepKickoffInput", - "RetrievalInjectionInput", - "MULTI_STEP_ACTION_CONTRACT" - ] - } - ], - "exports": [ - "qwenNonThinkingGen1V1Shape" - ], - "totalLines": 53, - "hasStructuralAnalysis": true - }, - "packages/agent/src/prompt-shapes/gepa-evolved/qwen-non-thinking-gen1-v2.ts": { - "filePath": "packages/agent/src/prompt-shapes/gepa-evolved/qwen-non-thinking-gen1-v2.ts", - "contentHash": "d335a8d50ccf5b6df4e4056845b7d59682373b6c5dd26814952adbfc47a7c5a4", - "functions": [], - "classes": [], - "imports": [ - { - "source": "../types.js", - "specifiers": [ - "PromptShape", - "SystemPromptInput", - "SoloUserPromptInput", - "MultiStepKickoffInput", - "RetrievalInjectionInput", - "MULTI_STEP_ACTION_CONTRACT" - ] - } - ], - "exports": [ - "qwenNonThinkingGen1V2Shape" - ], - "totalLines": 100, - "hasStructuralAnalysis": true - }, - "packages/agent/src/prompt-shapes/gepa-evolved/qwen-thinking-gen1-v1.ts": { - "filePath": "packages/agent/src/prompt-shapes/gepa-evolved/qwen-thinking-gen1-v1.ts", - "contentHash": "74bf049fdea3f99f321eb573cdd65baee8109c1639391682b3b5f53b4cc64d97", - "functions": [], - "classes": [], - "imports": [ - { - "source": "../types.js", - "specifiers": [ - "PromptShape", - "SystemPromptInput", - "SoloUserPromptInput", - "MultiStepKickoffInput", - "RetrievalInjectionInput", - "MULTI_STEP_ACTION_CONTRACT" - ] - } - ], - "exports": [ - "qwenThinkingGen1V1Shape" - ], - "totalLines": 102, - "hasStructuralAnalysis": true - }, - "packages/agent/src/prompt-shapes/gepa-evolved/qwen-thinking-gen1-v2.ts": { - "filePath": "packages/agent/src/prompt-shapes/gepa-evolved/qwen-thinking-gen1-v2.ts", - "contentHash": "271dc6e44346e3c2bbfca96471765744e930dfa29e3df5eb8a8cdf0ac391354f", - "functions": [], - "classes": [], - "imports": [ - { - "source": "../types.js", - "specifiers": [ - "PromptShape", - "SystemPromptInput", - "SoloUserPromptInput", - "MultiStepKickoffInput", - "RetrievalInjectionInput", - "MULTI_STEP_ACTION_CONTRACT" - ] - } - ], - "exports": [ - "qwenThinkingGen1V2Shape" - ], - "totalLines": 53, - "hasStructuralAnalysis": true - }, - "packages/agent/src/prompt-shapes/gpt.ts": { - "filePath": "packages/agent/src/prompt-shapes/gpt.ts", - "contentHash": "5dc6d750d52a68feb9d37ad8384b2bcd59d70962066122ff086b0e5888413576", - "functions": [], - "classes": [], - "imports": [ - { - "source": "./types.js", - "specifiers": [ - "PromptShape", - "SystemPromptInput", - "SoloUserPromptInput", - "MultiStepKickoffInput", - "RetrievalInjectionInput", - "MULTI_STEP_ACTION_CONTRACT" - ] - } - ], - "exports": [ - "gptShape" - ], - "totalLines": 69, - "hasStructuralAnalysis": true - }, - "packages/agent/src/prompt-shapes/index.ts": { - "filePath": "packages/agent/src/prompt-shapes/index.ts", - "contentHash": "bb48ab4e7cfd4bcb728f672f2900268b0ee94708d4dc7439d64fed0243d0a98f", - "functions": [], - "classes": [], - "imports": [], - "exports": [ - "PromptShape", - "PromptShapeMetadata", - "SystemPromptInput", - "SoloUserPromptInput", - "MultiStepKickoffInput", - "RetrievalInjectionInput", - "MULTI_STEP_ACTION_CONTRACT", - "claudeShape", - "qwenThinkingShape", - "qwenNonThinkingShape", - "gptShape", - "genericSimpleShape", - "claudeGen1V1Shape", - "qwenThinkingGen1V1Shape", - "selectShape", - "listShapes", - "getShapeMetadata", - "REGISTRY", - "registerShape", - "_resetConfigCache", - "SelectShapeOptions" - ], - "totalLines": 55, - "hasStructuralAnalysis": true - }, - "packages/agent/src/prompt-shapes/qwen-non-thinking.ts": { - "filePath": "packages/agent/src/prompt-shapes/qwen-non-thinking.ts", - "contentHash": "35be379be9a8caafc2c419e32da5f63f92fc83f6f6d70d9df76029c1e8584572", - "functions": [], - "classes": [], - "imports": [ - { - "source": "./types.js", - "specifiers": [ - "PromptShape", - "SystemPromptInput", - "SoloUserPromptInput", - "MultiStepKickoffInput", - "RetrievalInjectionInput", - "MULTI_STEP_ACTION_CONTRACT" - ] - } - ], - "exports": [ - "qwenNonThinkingShape" - ], - "totalLines": 86, - "hasStructuralAnalysis": true - }, - "packages/agent/src/prompt-shapes/qwen-thinking.ts": { - "filePath": "packages/agent/src/prompt-shapes/qwen-thinking.ts", - "contentHash": "848a4e4917baa5c7bbcc3bb35fb8cb4b4ac8f0ab537243f14cbef3a99197aacb", - "functions": [], - "classes": [], - "imports": [ - { - "source": "./types.js", - "specifiers": [ - "PromptShape", - "SystemPromptInput", - "SoloUserPromptInput", - "MultiStepKickoffInput", - "RetrievalInjectionInput", - "MULTI_STEP_ACTION_CONTRACT" - ] - } - ], - "exports": [ - "qwenThinkingShape" - ], - "totalLines": 88, - "hasStructuralAnalysis": true - }, - "packages/agent/src/prompt-shapes/README.md": { - "filePath": "packages/agent/src/prompt-shapes/README.md", - "contentHash": "3d1f39e82951bdcc4ee1ac928017e1331ad166ca5c689ab23fc368c3bbda80db", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 161, - "hasStructuralAnalysis": true - }, - "packages/agent/src/prompt-shapes/selector.ts": { - "filePath": "packages/agent/src/prompt-shapes/selector.ts", - "contentHash": "8d890952c51ebb645867bc295cb968c82eb055e671b36890a8cca630c4de2556", - "functions": [ - { - "name": "registerShape", - "params": [ - "name", - "shape" - ], - "returnType": "void", - "exported": true, - "lineCount": 12 - }, - { - "name": "loadConfig", - "params": [ - "configPath" - ], - "returnType": "ConfigSchema", - "exported": false, - "lineCount": 18 - }, - { - "name": "_resetConfigCache", - "params": [], - "returnType": "void", - "exported": true, - "lineCount": 3 - }, - { - "name": "selectShape", - "params": [ - "modelAlias", - "options" - ], - "returnType": "PromptShape", - "exported": true, - "lineCount": 31 - }, - { - "name": "resolve", - "params": [ - "shapeName", - "alias" - ], - "returnType": "PromptShape", - "exported": false, - "lineCount": 10 - }, - { - "name": "listShapes", - "params": [], - "returnType": "string[]", - "exported": true, - "lineCount": 3 - }, - { - "name": "getShapeMetadata", - "params": [ - "name" - ], - "exported": true, - "lineCount": 7 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:url", - "specifiers": [ - "fileURLToPath" - ] - }, - { - "source": "./types.js", - "specifiers": [ - "PromptShape" - ] - }, - { - "source": "./claude.js", - "specifiers": [ - "claudeShape" - ] - }, - { - "source": "./qwen-thinking.js", - "specifiers": [ - "qwenThinkingShape" - ] - }, - { - "source": "./qwen-non-thinking.js", - "specifiers": [ - "qwenNonThinkingShape" - ] - }, - { - "source": "./gpt.js", - "specifiers": [ - "gptShape" - ] - }, - { - "source": "./generic-simple.js", - "specifiers": [ - "genericSimpleShape" - ] - } - ], - "exports": [ - "REGISTRY", - "registerShape", - "_resetConfigCache", - "selectShape", - "listShapes", - "getShapeMetadata" - ], - "totalLines": 178, - "hasStructuralAnalysis": true - }, - "packages/agent/src/prompt-shapes/types.ts": { - "filePath": "packages/agent/src/prompt-shapes/types.ts", - "contentHash": "1a9fa329e4b66ed9f0abe8bc22cbbf0124e0c879e1e78ec806d557cab25bc94d", - "functions": [], - "classes": [], - "imports": [], - "exports": [ - "MULTI_STEP_ACTION_CONTRACT" - ], - "totalLines": 102, - "hasStructuralAnalysis": true - }, - "packages/agent/src/providers/openai-compat.ts": { - "filePath": "packages/agent/src/providers/openai-compat.ts", - "contentHash": "3393fa067c8e9944c635665b114dc0086f82e592dbccaa7a45e18820ad2bebc1", - "functions": [ - { - "name": "openaiChat", - "params": [ - "resolved", - "messages", - "systemPrompt" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 53 - } - ], - "classes": [], - "imports": [ - { - "source": "../model-router.js", - "specifiers": [ - "ResolvedModel" - ] - } - ], - "exports": [ - "openaiChat" - ], - "totalLines": 82, - "hasStructuralAnalysis": true - }, - "packages/agent/src/quality-controller.ts": { - "filePath": "packages/agent/src/quality-controller.ts", - "contentHash": "e4f08a4f3a4f78d5d1518388dfc335674fa9a1515fefb060dc736694dd77768c", - "functions": [ - { - "name": "checkResponseQuality", - "params": [ - "text" - ], - "returnType": "QualityIssue[]", - "exported": true, - "lineCount": 31 - } - ], - "classes": [], - "imports": [], - "exports": [ - "checkResponseQuality" - ], - "totalLines": 56, - "hasStructuralAnalysis": true - }, - "packages/agent/src/result-formatter.ts": { - "filePath": "packages/agent/src/result-formatter.ts", - "contentHash": "866318ebd26326dd175eadbd43a714d62961a5431a6421f1ffa4e76df7638dcf", - "functions": [ - { - "name": "formatResultEntry", - "params": [ - "r", - "includeFrameType" - ], - "returnType": "string", - "exported": false, - "lineCount": 11 - }, - { - "name": "formatCombinedResult", - "params": [ - "result", - "hasWorkspace" - ], - "returnType": "string", - "exported": true, - "lineCount": 47 - } - ], - "classes": [], - "imports": [ - { - "source": "./combined-retrieval.js", - "specifiers": [ - "CombinedRetrievalResult", - "CombinedResult" - ] - } - ], - "exports": [ - "formatCombinedResult" - ], - "totalLines": 69, - "hasStructuralAnalysis": true - }, - "packages/agent/src/retrieval-agent-loop.ts": { - "filePath": "packages/agent/src/retrieval-agent-loop.ts", - "contentHash": "901b8dc11c7fb95b6a143271ed8e076771f9398c9daba4f93e51b9a2d387eac0", - "functions": [ - { - "name": "resolveNormalizationConfig", - "params": [ - "preset" - ], - "returnType": "NormalizationConfig", - "exported": false, - "lineCount": 13 - }, - { - "name": "pickShape", - "params": [ - "modelAlias", - "override", - "requestId" - ], - "returnType": "PromptShape", - "exported": false, - "lineCount": 7 - }, - { - "name": "normalizeFinal", - "params": [ - "text", - "preset" - ], - "exported": false, - "lineCount": 4 - }, - { - "name": "recordPredictionIfCapturing", - "params": [ - "capture", - "fields" - ], - "returnType": "void", - "exported": false, - "lineCount": 34 - }, - { - "name": "flatten", - "params": [ - "messages" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "buildAccumulatedAudit", - "params": [ - "prior", - "turn", - "action" - ], - "returnType": "string", - "exported": false, - "lineCount": 10 - }, - { - "name": "applyContextCompression", - "params": [ - "state", - "contextManager", - "emit" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 17 - }, - { - "name": "parseAgentAction", - "params": [ - "text" - ], - "returnType": "ParsedAction", - "exported": false, - "lineCount": 16 - }, - { - "name": "runSoloAgent", - "params": [ - "config" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 70 - }, - { - "name": "runRetrievalAgentLoop", - "params": [ - "config" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 359 - }, - { - "name": "defaultLoopSleep", - "params": [ - "ms" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 6 - }, - { - "name": "computeLoopBackoff", - "params": [ - "attempt", - "opts" - ], - "returnType": "number", - "exported": false, - "lineCount": 6 - }, - { - "name": "loopErrorMessage", - "params": [ - "err" - ], - "returnType": "string", - "exported": false, - "lineCount": 5 - }, - { - "name": "runRetrievalAgentLoopWithRecovery", - "params": [ - "config", - "recoveryOpts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 37 - } - ], - "classes": [], - "imports": [ - { - "source": "node:crypto", - "specifiers": [ - "* as crypto" - ] - }, - { - "source": "./output-normalize.js", - "specifiers": [ - "normalize", - "PRESETS", - "NormalizationAction", - "NormalizationConfig" - ] - }, - { - "source": "./prompt-shapes/index.js", - "specifiers": [ - "selectShape", - "MULTI_STEP_ACTION_CONTRACT", - "PromptShape" - ] - }, - { - "source": "./run-meta.js", - "specifiers": [ - "RunMetaCapture" - ] - }, - { - "source": "./long-task/checkpoint.js", - "specifiers": [ - "CHECKPOINT_SCHEMA_VERSION", - "CheckpointStepState", - "CheckpointStore", - "Decision" - ] - }, - { - "source": "./long-task/context-manager.js", - "specifiers": [ - "ContextManager" - ] - }, - { - "source": "./long-task/messages-compressor.js", - "specifiers": [ - "maybeCompressMessages", - "MessagesContextManagerConfig" - ] - }, - { - "source": "./canary/phase-5-router.js", - "specifiers": [ - "routeRequestToVariant" - ] - } - ], - "exports": [ - "runSoloAgent", - "runRetrievalAgentLoop", - "runRetrievalAgentLoopWithRecovery" - ], - "totalLines": 974, - "hasStructuralAnalysis": true - }, - "packages/agent/src/retry-policy.ts": { - "filePath": "packages/agent/src/retry-policy.ts", - "contentHash": "126b2d940c060905802a991a0fd4c1ceef89c6bbc43dc44e32b9d8e6dcfd616a", - "functions": [ - { - "name": "initialRetryState", - "params": [], - "returnType": "RetryState", - "exported": true, - "lineCount": 3 - }, - { - "name": "parseRetryAfterSeconds", - "params": [ - "headerValue" - ], - "returnType": "number", - "exported": false, - "lineCount": 13 - }, - { - "name": "handleNonOkResponse", - "params": [ - "response", - "state" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 51 - }, - { - "name": "handleNetworkError", - "params": [ - "err", - "state" - ], - "returnType": "RetryAction", - "exported": true, - "lineCount": 20 - } - ], - "classes": [], - "imports": [], - "exports": [ - "initialRetryState", - "handleNonOkResponse", - "handleNetworkError" - ], - "totalLines": 169, - "hasStructuralAnalysis": true - }, - "packages/agent/src/run-meta.ts": { - "filePath": "packages/agent/src/run-meta.ts", - "contentHash": "52b5ad27060440d8f469c6d9541972e72593113993781c0e99930a38e5d37ac4", - "functions": [ - { - "name": "verifyDeterministicReplay", - "params": [ - "meta", - "replayFn" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 29 - } - ], - "classes": [ - { - "name": "RunMetaCapture", - "methods": [ - "constructor", - "assertOpen", - "setConfigSnapshot", - "setDatasetSha256", - "addModelVersion", - "addProviderRoute", - "setPromptShapePerModel", - "addAuditSha", - "recordPrediction", - "recordJudgeCall", - "finish", - "freeze", - "serialize" - ], - "properties": [ - "finished", - "run_id", - "started_at_iso", - "finished_at_iso", - "config_snapshot", - "dataset_sha256", - "model_versions", - "provider_routing", - "prompt_shape_per_model", - "seed", - "git_sha", - "audit_shas", - "predictions", - "judge_call_traces" - ], - "exported": true, - "lineCount": 163 - }, - { - "name": "RunMetaReader", - "methods": [ - "constructor", - "load", - "loadRawResponse" - ], - "properties": [], - "exported": true, - "lineCount": 45 - } - ], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:fs/promises", - "specifiers": [ - "* as fsp" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:zlib", - "specifiers": [ - "* as zlib" - ] - }, - { - "source": "node:crypto", - "specifiers": [ - "* as crypto" - ] - }, - { - "source": "node:util", - "specifiers": [ - "promisify" - ] - }, - { - "source": "./output-normalize.js", - "specifiers": [ - "NormalizationAction" - ] - } - ], - "exports": [ - "RUN_META_SCHEMA_VERSION", - "RunMetaCapture", - "RunMetaReader", - "verifyDeterministicReplay" - ], - "totalLines": 454, - "hasStructuralAnalysis": true - }, - "packages/agent/src/search-tools.ts": { - "filePath": "packages/agent/src/search-tools.ts", - "contentHash": "82b180feb7fbfa1efeaa9b265efb3c2b2c9ea9efe8a19f0bdd852b43af47c35c", - "functions": [ - { - "name": "createSearchTools", - "params": [ - "vaultFetch" - ], - "returnType": "ToolDefinition[]", - "exported": true, - "lineCount": 237 - } - ], - "classes": [ - { - "name": "DailyRateLimiter", - "methods": [ - "constructor", - "canProceed", - "getCount", - "reset" - ], - "properties": [ - "count", - "resetDate", - "maxPerDay" - ], - "exported": false, - "lineCount": 26 - } - ], - "imports": [ - { - "source": "./tools.js", - "specifiers": [ - "ToolDefinition" - ] - } - ], - "exports": [ - "createSearchTools", - "perplexityLimiter", - "tavilyLimiter", - "braveLimiter" - ], - "totalLines": 288, - "hasStructuralAnalysis": true - }, - "packages/agent/src/self-awareness.ts": { - "filePath": "packages/agent/src/self-awareness.ts", - "contentHash": "42a31ba595ee7f01c57e44bbe6c848883c6324b2f29664a552e1281225e1a9b1", - "functions": [ - { - "name": "buildSelfAwareness", - "params": [ - "caps" - ], - "returnType": "string", - "exported": true, - "lineCount": 94 - } - ], - "classes": [], - "imports": [ - { - "source": "./improvement-detector.js", - "specifiers": [ - "AwarenessSummary" - ] - } - ], - "exports": [ - "buildSelfAwareness" - ], - "totalLines": 108, - "hasStructuralAnalysis": true - }, - "packages/agent/src/skill-autoextract.ts": { - "filePath": "packages/agent/src/skill-autoextract.ts", - "contentHash": "cabc6cad481e2ccaad885c2b44832d1b61eb71595ddf02b30572e9838684f852", - "functions": [ - { - "name": "skillFilename", - "params": [ - "template" - ], - "returnType": "string", - "exported": true, - "lineCount": 6 - }, - { - "name": "annotateWithScope", - "params": [ - "md" - ], - "returnType": "string", - "exported": false, - "lineCount": 9 - }, - { - "name": "autoExtractAndCreateSkill", - "params": [ - "messages", - "deps" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 53 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "ImprovementSignalStore" - ] - }, - { - "source": "./skill-creator.js", - "specifiers": [ - "detectWorkflowPattern", - "generateSkillMarkdown", - "SkillTemplate" - ] - }, - { - "source": "./skill-redaction.js", - "specifiers": [ - "redactSkillContent" - ] - } - ], - "exports": [ - "skillFilename", - "autoExtractAndCreateSkill" - ], - "totalLines": 139, - "hasStructuralAnalysis": true - }, - "packages/agent/src/skill-creator.ts": { - "filePath": "packages/agent/src/skill-creator.ts", - "contentHash": "485044d8e2f09b4087beb16dd14a0a834c68c474678d35835cbebce0903a8442", - "functions": [ - { - "name": "generateSkillMarkdown", - "params": [ - "template" - ], - "returnType": "string", - "exported": true, - "lineCount": 37 - }, - { - "name": "extractToolSequence", - "params": [ - "messages" - ], - "returnType": "string[]", - "exported": false, - "lineCount": 11 - }, - { - "name": "longestCommonSubsequenceLength", - "params": [ - "a", - "b" - ], - "returnType": "number", - "exported": false, - "lineCount": 20 - }, - { - "name": "toolSequenceSimilarity", - "params": [ - "a", - "b" - ], - "returnType": "number", - "exported": false, - "lineCount": 5 - }, - { - "name": "detectWorkflowPattern", - "params": [ - "messages" - ], - "returnType": "SkillTemplate | null", - "exported": true, - "lineCount": 88 - }, - { - "name": "inferCategory", - "params": [ - "tools" - ], - "returnType": "string", - "exported": false, - "lineCount": 12 - } - ], - "classes": [], - "imports": [], - "exports": [ - "generateSkillMarkdown", - "detectWorkflowPattern" - ], - "totalLines": 228, - "hasStructuralAnalysis": true - }, - "packages/agent/src/skill-distillation.ts": { - "filePath": "packages/agent/src/skill-distillation.ts", - "contentHash": "a530525074e394dfad2aa57ba891c2ae53c702956cd71a82ed992dad11960bb0", - "functions": [ - { - "name": "shouldDistillSkill", - "params": [ - "toolCallCount", - "assistantMsg" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 8 - }, - { - "name": "planSkillDistillation", - "params": [ - "toolsUsed", - "assistantMsg" - ], - "returnType": "SkillDistillationPlan | null", - "exported": true, - "lineCount": 22 - } - ], - "classes": [], - "imports": [ - { - "source": "./memory-sign-gate.js", - "specifiers": [ - "isSelfIncapacityAssertion" - ] - } - ], - "exports": [ - "SKILL_DISTILL_MIN_TOOL_CALLS", - "shouldDistillSkill", - "planSkillDistillation" - ], - "totalLines": 81, - "hasStructuralAnalysis": true - }, - "packages/agent/src/skill-frontmatter.ts": { - "filePath": "packages/agent/src/skill-frontmatter.ts", - "contentHash": "e79974def594256b88442c3bfa73b3d78ec4585da178ce4a501fb0259431d0d4", - "functions": [ - { - "name": "parseSkillFrontmatter", - "params": [ - "content" - ], - "returnType": "ParsedSkill", - "exported": true, - "lineCount": 74 - }, - { - "name": "isSkillScope", - "params": [ - "s" - ], - "exported": false, - "lineCount": 3 - }, - { - "name": "isSkillInitiator", - "params": [ - "s" - ], - "exported": false, - "lineCount": 3 - }, - { - "name": "nextScope", - "params": [ - "current" - ], - "returnType": "SkillScope | null", - "exported": true, - "lineCount": 5 - }, - { - "name": "serializeFrontmatter", - "params": [ - "fm", - "body" - ], - "returnType": "string", - "exported": true, - "lineCount": 19 - } - ], - "classes": [], - "imports": [], - "exports": [ - "SKILL_SCOPE_ORDER", - "parseSkillFrontmatter", - "nextScope", - "serializeFrontmatter" - ], - "totalLines": 197, - "hasStructuralAnalysis": true - }, - "packages/agent/src/skill-recommender.ts": { - "filePath": "packages/agent/src/skill-recommender.ts", - "contentHash": "c03103d3b713e833af11d93bdf5b1f065971cd0148f009592f1b087616ad8f4b", - "functions": [ - { - "name": "buildSynonymMap", - "params": [], - "returnType": "Map>", - "exported": false, - "lineCount": 15 - }, - { - "name": "extractKeywords", - "params": [ - "text" - ], - "returnType": "string[]", - "exported": false, - "lineCount": 7 - }, - { - "name": "extractBigrams", - "params": [ - "words" - ], - "returnType": "string[]", - "exported": false, - "lineCount": 7 - }, - { - "name": "expandWithSynonyms", - "params": [ - "keyword" - ], - "returnType": "string[]", - "exported": false, - "lineCount": 5 - }, - { - "name": "buildTermFrequency", - "params": [ - "text" - ], - "returnType": "Map", - "exported": false, - "lineCount": 10 - } - ], - "classes": [ - { - "name": "SkillRecommender", - "methods": [ - "constructor", - "recommend" - ], - "properties": [], - "exported": true, - "lineCount": 134 - } - ], - "imports": [], - "exports": [ - "SkillRecommender" - ], - "totalLines": 252, - "hasStructuralAnalysis": true - }, - "packages/agent/src/skill-redaction.ts": { - "filePath": "packages/agent/src/skill-redaction.ts", - "contentHash": "559a0c479fb8fde6a9a3e92d6bc35b9297a07a3e6b7d2cff7178623c50011c8f", - "functions": [ - { - "name": "redactSkillContent", - "params": [ - "content" - ], - "returnType": "SkillRedactionResult", - "exported": true, - "lineCount": 27 - } - ], - "classes": [], - "imports": [ - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "./eval-dataset.js", - "specifiers": [ - "redactSecrets" - ] - } - ], - "exports": [ - "redactSkillContent" - ], - "totalLines": 63, - "hasStructuralAnalysis": true - }, - "packages/agent/src/skill-retirement.ts": { - "filePath": "packages/agent/src/skill-retirement.ts", - "contentHash": "53f6977956be23255c3080d413a7f5f6e66847ad51235706f8b902e16202b85d", - "functions": [ - { - "name": "lastActivityMs", - "params": [ - "skillPath", - "skillName", - "usage" - ], - "returnType": "number", - "exported": false, - "lineCount": 19 - }, - { - "name": "retireStaleSkills", - "params": [ - "waggleHome", - "opts" - ], - "returnType": "RetireReport", - "exported": true, - "lineCount": 71 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "ImprovementSignalStore" - ] - }, - { - "source": "./skill-usage.js", - "specifiers": [ - "loadSkillUsage", - "forgetSkillUsage" - ] - } - ], - "exports": [ - "retireStaleSkills" - ], - "totalLines": 146, - "hasStructuralAnalysis": true - }, - "packages/agent/src/skill-tools.ts": { - "filePath": "packages/agent/src/skill-tools.ts", - "contentHash": "4e7f90310893f9caf95bad5851f0c5bd9c311fbbddd3ca1ba3c4878ed92d9cda", - "functions": [ - { - "name": "getSecurityGate", - "params": [], - "returnType": "Promise", - "exported": false, - "lineCount": 7 - }, - { - "name": "getSkillDirForScope", - "params": [ - "waggleHome", - "scope", - "ctx" - ], - "returnType": "string | null", - "exported": true, - "lineCount": 18 - }, - { - "name": "createSkillTools", - "params": [ - "deps" - ], - "returnType": "ToolDefinition[]", - "exported": true, - "lineCount": 828 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "./tools.js", - "specifiers": [ - "ToolDefinition" - ] - }, - { - "source": "./skill-recommender.js", - "specifiers": [ - "SkillRecommender" - ] - }, - { - "source": "./capability-acquisition.js", - "specifiers": [ - "searchCapabilities", - "validateInstallCandidate", - "MarketplaceCandidate" - ] - }, - { - "source": "./trust-model.js", - "specifiers": [ - "assessTrust", - "formatTrustSummary" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "InstallAuditStore" - ] - }, - { - "source": "@waggle/marketplace", - "specifiers": [ - "SecurityGate", - "MarketplacePackage" - ] - }, - { - "source": "./skill-creator.js", - "specifiers": [ - "generateSkillMarkdown", - "SkillTemplate" - ] - }, - { - "source": "./skill-redaction.js", - "specifiers": [ - "redactSkillContent" - ] - }, - { - "source": "./skill-write-service.js", - "specifiers": [ - "writeSkill", - "deleteSkillWrite" - ] - }, - { - "source": "./skill-frontmatter.js", - "specifiers": [ - "parseSkillFrontmatter", - "serializeFrontmatter", - "nextScope", - "SKILL_SCOPE_ORDER", - "SkillScope" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "ImprovementSignalStore" - ] - }, - { - "source": "./skill-autoextract.js", - "specifiers": [ - "autoExtractAndCreateSkill", - "AutoExtractMessage" - ] - }, - { - "source": "./skill-retirement.js", - "specifiers": [ - "retireStaleSkills" - ] - } - ], - "exports": [ - "getSkillDirForScope", - "createSkillTools" - ], - "totalLines": 932, - "hasStructuralAnalysis": true - }, - "packages/agent/src/skill-usage.ts": { - "filePath": "packages/agent/src/skill-usage.ts", - "contentHash": "3004665ec791b910e27bd23169ffcfbda8cd87fdc6196347c6b13527cb1b3e3b", - "functions": [ - { - "name": "getSkillUsagePath", - "params": [ - "waggleHome" - ], - "returnType": "string", - "exported": true, - "lineCount": 3 - }, - { - "name": "loadSkillUsage", - "params": [ - "waggleHome" - ], - "returnType": "SkillUsageIndex", - "exported": true, - "lineCount": 14 - }, - { - "name": "saveSkillUsage", - "params": [ - "waggleHome", - "index" - ], - "returnType": "void", - "exported": true, - "lineCount": 9 - }, - { - "name": "recordSkillUsage", - "params": [ - "waggleHome", - "skillName", - "nowFn" - ], - "returnType": "SkillUsageEntry", - "exported": true, - "lineCount": 15 - }, - { - "name": "forgetSkillUsage", - "params": [ - "waggleHome", - "skillName" - ], - "returnType": "void", - "exported": true, - "lineCount": 6 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - } - ], - "exports": [ - "getSkillUsagePath", - "loadSkillUsage", - "saveSkillUsage", - "recordSkillUsage", - "forgetSkillUsage" - ], - "totalLines": 89, - "hasStructuralAnalysis": true - }, - "packages/agent/src/skill-watcher.ts": { - "filePath": "packages/agent/src/skill-watcher.ts", - "contentHash": "53697b29c25c1557c8f718aefe4d91c130f41635747f3c23dd31a27251648edf", - "functions": [ - { - "name": "watchSkillDirectory", - "params": [ - "dir", - "opts" - ], - "returnType": "SkillWatcherHandle", - "exported": true, - "lineCount": 68 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - } - ], - "exports": [ - "watchSkillDirectory" - ], - "totalLines": 104, - "hasStructuralAnalysis": true - }, - "packages/agent/src/skill-write-service.ts": { - "filePath": "packages/agent/src/skill-write-service.ts", - "contentHash": "63f2d1a5eaee8fdfb013c9077603f39f8f3876ab8d90c8a740cc29a6afa52ca5", - "functions": [ - { - "name": "invalidName", - "params": [ - "name" - ], - "returnType": "boolean", - "exported": false, - "lineCount": 3 - }, - { - "name": "stampProvenance", - "params": [ - "content", - "initiator", - "source" - ], - "returnType": "string", - "exported": false, - "lineCount": 27 - }, - { - "name": "writeSkill", - "params": [ - "deps", - "input" - ], - "returnType": "SkillWriteResult", - "exported": true, - "lineCount": 49 - }, - { - "name": "deleteSkill", - "params": [ - "deps", - "input" - ], - "returnType": "SkillWriteResult", - "exported": true, - "lineCount": 32 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "./skill-redaction.js", - "specifiers": [ - "redactSkillContent" - ] - }, - { - "source": "./skill-frontmatter.js", - "specifiers": [ - "SkillInitiator" - ] - }, - { - "source": "./skill-frontmatter.js", - "specifiers": [ - "parseSkillFrontmatter" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "InstallAuditStore" - ] - } - ], - "exports": [ - "writeSkill", - "deleteSkill" - ], - "totalLines": 191, - "hasStructuralAnalysis": true - }, - "packages/agent/src/smart-router.ts": { - "filePath": "packages/agent/src/smart-router.ts", - "contentHash": "eee59ed2415a71221481bb8c845c2aa8b5eeae0a91174730038a67826a848c0d", - "functions": [ - { - "name": "routeMessage", - "params": [ - "message", - "primaryModel", - "budgetModel" - ], - "returnType": "RoutingDecision", - "exported": true, - "lineCount": 14 - } - ], - "classes": [], - "imports": [], - "exports": [ - "routeMessage" - ], - "totalLines": 26, - "hasStructuralAnalysis": true - }, - "packages/agent/src/spreadsheet-tools.ts": { - "filePath": "packages/agent/src/spreadsheet-tools.ts", - "contentHash": "0d9e5d2b92ac0b44416cff03cd9b3d3a9ade45f55c4fb68f42bdce39e91f0559", - "functions": [ - { - "name": "resolveSafe", - "params": [ - "workspace", - "filePath" - ], - "returnType": "string", - "exported": false, - "lineCount": 7 - }, - { - "name": "createSpreadsheetTools", - "params": [ - "workspace" - ], - "returnType": "ToolDefinition[]", - "exported": true, - "lineCount": 115 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "exceljs", - "specifiers": [ - "ExcelJS" - ] - }, - { - "source": "./tools.js", - "specifiers": [ - "ToolDefinition" - ] - } - ], - "exports": [ - "createSpreadsheetTools" - ], - "totalLines": 142, - "hasStructuralAnalysis": true - }, - "packages/agent/src/sse-parser.ts": { - "filePath": "packages/agent/src/sse-parser.ts", - "contentHash": "e826f38d59557e08b01c4c8cce106d17d467c82c388f9436cccdb59b75b82dbc", - "functions": [ - { - "name": "parseChatCompletionStream", - "params": [ - "body", - "options" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 117 - } - ], - "classes": [], - "imports": [], - "exports": [ - "parseChatCompletionStream" - ], - "totalLines": 159, - "hasStructuralAnalysis": true - }, - "packages/agent/src/subagent-orchestrator.ts": { - "filePath": "packages/agent/src/subagent-orchestrator.ts", - "contentHash": "8d21edc143918e65278b91f1d42eabe4666eff32ac6e25edc0fa6f25bf7e68bb", - "functions": [], - "classes": [ - { - "name": "SubagentOrchestrator", - "methods": [ - "constructor", - "setParentContext", - "runWorkflow", - "getWorkers", - "getActiveWorkers", - "makeWorkerId", - "runWorker", - "buildWorkerContext", - "aggregateResults" - ], - "properties": [ - "config", - "workers", - "workflowCounter", - "parentContext", - "ROLE_TOOL_PRESETS" - ], - "exported": true, - "lineCount": 262 - } - ], - "imports": [ - { - "source": "events", - "specifiers": [ - "EventEmitter" - ] - }, - { - "source": "./tools.js", - "specifiers": [ - "ToolDefinition" - ] - }, - { - "source": "./agent-loop.js", - "specifiers": [ - "AgentLoopConfig", - "AgentResponse" - ] - } - ], - "exports": [ - "SubagentOrchestrator" - ], - "totalLines": 321, - "hasStructuralAnalysis": true - }, - "packages/agent/src/subagent-tools.ts": { - "filePath": "packages/agent/src/subagent-tools.ts", - "contentHash": "6602bd11a2522c4f6a9ab114f83566f774b53a3ef52818ff6af1f98b10dbd8f5", - "functions": [ - { - "name": "evictOldestResult", - "params": [], - "returnType": "void", - "exported": false, - "lineCount": 14 - }, - { - "name": "cleanupStaleEntries", - "params": [], - "returnType": "number", - "exported": true, - "lineCount": 11 - }, - { - "name": "createSubAgentTools", - "params": [ - "deps" - ], - "returnType": "ToolDefinition[]", - "exported": true, - "lineCount": 239 - } - ], - "classes": [], - "imports": [ - { - "source": "./tools.js", - "specifiers": [ - "ToolDefinition" - ] - }, - { - "source": "./agent-loop.js", - "specifiers": [ - "AgentLoopConfig", - "AgentResponse" - ] - }, - { - "source": "./hooks.js", - "specifiers": [ - "HookRegistry" - ] - } - ], - "exports": [ - "cleanupStaleEntries", - "ROLE_TOOL_PRESETS", - "createSubAgentTools", - "activeAgents", - "agentResults", - "agentCounter", - "MAX_AGENT_RESULTS", - "STALE_THRESHOLD_MS" - ], - "totalLines": 383, - "hasStructuralAnalysis": true - }, - "packages/agent/src/system-tools-helpers.ts": { - "filePath": "packages/agent/src/system-tools-helpers.ts", - "contentHash": "8718f7da82fada4072cad3bfa97b4e9dce727450a05fd6286c49286ed762c4de", - "functions": [ - { - "name": "checkDeniedBinaries", - "params": [ - "command" - ], - "returnType": "string | null", - "exported": true, - "lineCount": 9 - }, - { - "name": "createSanitizedEnv", - "params": [], - "returnType": "Record", - "exported": true, - "lineCount": 7 - }, - { - "name": "truncateOutput", - "params": [ - "output" - ], - "returnType": "string", - "exported": true, - "lineCount": 4 - }, - { - "name": "resolveSafe", - "params": [ - "workspace", - "filePath" - ], - "returnType": "string", - "exported": true, - "lineCount": 7 - } - ], - "classes": [], - "imports": [ - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - } - ], - "exports": [ - "IMAGE_EXTENSIONS", - "DENIED_BINARIES", - "SENSITIVE_ENV_VARS", - "MAX_OUTPUT_SIZE", - "checkDeniedBinaries", - "createSanitizedEnv", - "truncateOutput", - "resolveSafe" - ], - "totalLines": 73, - "hasStructuralAnalysis": true - }, - "packages/agent/src/system-tools.ts": { - "filePath": "packages/agent/src/system-tools.ts", - "contentHash": "6f3ba5226d01caba95709df48bca5df4bd9e3d2475c533bb525a3e38570811b5", - "functions": [ - { - "name": "evictOldestTask", - "params": [], - "returnType": "void", - "exported": false, - "lineCount": 14 - }, - { - "name": "cleanupStaleTasks", - "params": [], - "returnType": "number", - "exported": true, - "lineCount": 11 - }, - { - "name": "createSystemTools", - "params": [ - "wsOrDeps" - ], - "returnType": "ToolDefinition[]", - "exported": true, - "lineCount": 891 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:crypto", - "specifiers": [ - "* as crypto" - ] - }, - { - "source": "node:child_process", - "specifiers": [ - "execFile", - "ChildProcess" - ] - }, - { - "source": "glob", - "specifiers": [ - "glob" - ] - }, - { - "source": "./tools.js", - "specifiers": [ - "ToolDefinition" - ] - }, - { - "source": "./web-search-utils.js", - "specifiers": [ - "SearchCache", - "RateLimiter" - ] - }, - { - "source": "./system-tools-helpers.js", - "specifiers": [ - "IMAGE_EXTENSIONS", - "DENIED_BINARIES", - "SENSITIVE_ENV_VARS", - "MAX_OUTPUT_SIZE", - "checkDeniedBinaries", - "createSanitizedEnv", - "truncateOutput", - "resolveSafe" - ] - } - ], - "exports": [ - "cleanupStaleTasks", - "createSystemTools", - "backgroundTasks", - "MAX_BACKGROUND_TASKS", - "STALE_TASK_THRESHOLD_MS", - "DENIED_BINARIES", - "SENSITIVE_ENV_VARS", - "MAX_OUTPUT_SIZE", - "checkDeniedBinaries", - "createSanitizedEnv", - "truncateOutput", - "resolveSafe" - ], - "totalLines": 996, - "hasStructuralAnalysis": true - }, - "packages/agent/src/task-shape.ts": { - "filePath": "packages/agent/src/task-shape.ts", - "contentHash": "d85a063d9403ec99006ead6fb21631edd411d5736dcf8c61a2b93773d899f1cb", - "functions": [ - { - "name": "detectTaskShape", - "params": [ - "message" - ], - "returnType": "TaskShape", - "exported": true, - "lineCount": 82 - }, - { - "name": "extractPhases", - "params": [ - "message", - "shapes" - ], - "returnType": "ComponentPhase[]", - "exported": false, - "lineCount": 42 - } - ], - "classes": [], - "imports": [], - "exports": [ - "detectTaskShape" - ], - "totalLines": 273, - "hasStructuralAnalysis": true - }, - "packages/agent/src/team-tools.ts": { - "filePath": "packages/agent/src/team-tools.ts", - "contentHash": "2198fef205207c116be509ef8d532c2982601be4aa1eecf0762e09adaeb34b39", - "functions": [ - { - "name": "apiCall", - "params": [ - "deps", - "method", - "path", - "body" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 25 - }, - { - "name": "createTeamTools", - "params": [ - "deps" - ], - "returnType": "ToolDefinition[]", - "exported": true, - "lineCount": 162 - }, - { - "name": "createLocalTeamTools", - "params": [ - "deps" - ], - "returnType": "ToolDefinition[]", - "exported": true, - "lineCount": 125 - } - ], - "classes": [], - "imports": [ - { - "source": "./tools.js", - "specifiers": [ - "ToolDefinition" - ] - } - ], - "exports": [ - "createTeamTools", - "createLocalTeamTools" - ], - "totalLines": 335, - "hasStructuralAnalysis": true - }, - "packages/agent/src/text-analysis.ts": { - "filePath": "packages/agent/src/text-analysis.ts", - "contentHash": "3e6b9c3747a615af604ee0e1711fc3a4fb4fe42b3060bd5caa244a91bbb44dba", - "functions": [ - { - "name": "normalizeForDedup", - "params": [ - "text" - ], - "returnType": "string", - "exported": true, - "lineCount": 7 - }, - { - "name": "cosineSimilarity", - "params": [ - "a", - "b" - ], - "returnType": "number", - "exported": true, - "lineCount": 11 - }, - { - "name": "detectDramaticClaims", - "params": [ - "content" - ], - "returnType": "string[]", - "exported": true, - "lineCount": 10 - }, - { - "name": "deriveConfidence", - "params": [ - "source" - ], - "returnType": "ConfidenceLevel", - "exported": true, - "lineCount": 8 - } - ], - "classes": [], - "imports": [], - "exports": [ - "normalizeForDedup", - "cosineSimilarity", - "DRAMATIC_CLAIM_PATTERNS", - "detectDramaticClaims", - "deriveConfidence" - ], - "totalLines": 57, - "hasStructuralAnalysis": true - }, - "packages/agent/src/tool-detection.ts": { - "filePath": "packages/agent/src/tool-detection.ts", - "contentHash": "1c2889f324e9d42ebc9b9b37dffb21419f4b622eee6c44f7951e63df4d421a95", - "functions": [ - { - "name": "joinForPlatform", - "params": [ - "platform", - "...parts" - ], - "returnType": "string", - "exported": false, - "lineCount": 5 - }, - { - "name": "defaultExists", - "params": [ - "p" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 8 - }, - { - "name": "defaultExecVersion", - "params": [ - "binary", - "args" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 16 - }, - { - "name": "defaultReadJson", - "params": [ - "p" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 8 - }, - { - "name": "defaultPathFromEnv", - "params": [ - "name" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 14 - }, - { - "name": "resolveDeps", - "params": [ - "opts" - ], - "returnType": "ResolvedDeps", - "exported": false, - "lineCount": 18 - }, - { - "name": "probeHooks", - "params": [ - "toolId", - "deps" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 18 - }, - { - "name": "detectClaudeCode", - "params": [ - "deps" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 29 - }, - { - "name": "detectCursor", - "params": [ - "deps" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 5 - }, - { - "name": "detectClaudeDesktop", - "params": [ - "deps" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 5 - }, - { - "name": "detectByPath", - "params": [ - "id", - "binaryName", - "deps" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 30 - }, - { - "name": "detectCodex", - "params": [ - "deps" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 3 - }, - { - "name": "detectHermes", - "params": [ - "deps" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 3 - }, - { - "name": "detectOpenClaw", - "params": [ - "deps" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 3 - }, - { - "name": "detectCodexDesktop", - "params": [ - "deps" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 5 - }, - { - "name": "cursorCandidatePaths", - "params": [ - "deps" - ], - "returnType": "string[]", - "exported": false, - "lineCount": 17 - }, - { - "name": "claudeDesktopCandidatePaths", - "params": [ - "deps" - ], - "returnType": "string[]", - "exported": false, - "lineCount": 18 - }, - { - "name": "codexDesktopCandidatePaths", - "params": [ - "deps" - ], - "returnType": "string[]", - "exported": false, - "lineCount": 19 - }, - { - "name": "detectByCandidates", - "params": [ - "id", - "candidates", - "deps", - "withVersion" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 34 - }, - { - "name": "detectInstalledTools", - "params": [ - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 23 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs/promises", - "specifiers": [ - "access", - "constants", - "readFile" - ] - }, - { - "source": "node:os", - "specifiers": [ - "homedir", - "osPlatform" - ] - }, - { - "source": "node:path", - "specifiers": [ - "pathPosix", - "pathWin32" - ] - }, - { - "source": "node:child_process", - "specifiers": [ - "execFile" - ] - }, - { - "source": "node:util", - "specifiers": [ - "promisify" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "SUPPORTED_TOOLS", - "TOOL_DISPLAY_NAMES", - "DetectedTool", - "ToolDetectionResult", - "ToolId" - ] - } - ], - "exports": [ - "detectInstalledTools" - ], - "totalLines": 459, - "hasStructuralAnalysis": true - }, - "packages/agent/src/tool-executor.ts": { - "filePath": "packages/agent/src/tool-executor.ts", - "contentHash": "c86df326b0e0335b6536dcf287a85e86a62c3d7b1a7bef6dce373242901faaf0", - "functions": [ - { - "name": "executeToolCall", - "params": [ - "toolCall", - "deps" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 125 - } - ], - "classes": [], - "imports": [ - { - "source": "./tools.js", - "specifiers": [ - "ToolDefinition" - ] - }, - { - "source": "./hooks.js", - "specifiers": [ - "HookRegistry" - ] - }, - { - "source": "./capability-router.js", - "specifiers": [ - "CapabilityRouter" - ] - }, - { - "source": "./loop-guard.js", - "specifiers": [ - "LoopGuard" - ] - }, - { - "source": "./injection-scanner.js", - "specifiers": [ - "scanForInjection" - ] - }, - { - "source": "./turn-context.js", - "specifiers": [ - "logTurnEvent" - ] - } - ], - "exports": [ - "executeToolCall" - ], - "totalLines": 187, - "hasStructuralAnalysis": true - }, - "packages/agent/src/tool-filter.ts": { - "filePath": "packages/agent/src/tool-filter.ts", - "contentHash": "186c6904e85ccd511d3dba04f744f81fde18e2c5dca5dd2c717c206d942bbd7d", - "functions": [ - { - "name": "filterToolsForContext", - "params": [ - "tools", - "context", - "config" - ], - "returnType": "ToolDefinition[]", - "exported": true, - "lineCount": 25 - }, - { - "name": "filterAvailableTools", - "params": [ - "tools" - ], - "returnType": "ToolDefinition[]", - "exported": true, - "lineCount": 10 - }, - { - "name": "filterOfflineTools", - "params": [ - "tools" - ], - "returnType": "ToolDefinition[]", - "exported": true, - "lineCount": 3 - }, - { - "name": "getOfflineCapableToolNames", - "params": [ - "tools" - ], - "returnType": "string[]", - "exported": true, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "./tools.js", - "specifiers": [ - "ToolDefinition" - ] - } - ], - "exports": [ - "filterToolsForContext", - "filterAvailableTools", - "filterOfflineTools", - "getOfflineCapableToolNames" - ], - "totalLines": 81, - "hasStructuralAnalysis": true - }, - "packages/agent/src/tool-launcher.ts": { - "filePath": "packages/agent/src/tool-launcher.ts", - "contentHash": "c5b4a96616349e7c6a42e900ad5e3dce23fc82b88d65d8ba6859013a0d43e30a", - "functions": [ - { - "name": "defaultSpawnDetached", - "params": [ - "binary", - "args", - "options" - ], - "returnType": "{ pid: number | null; error?: string }", - "exported": false, - "lineCount": 21 - }, - { - "name": "defaultExecCapture", - "params": [ - "binary", - "args", - "options" - ], - "returnType": "Promise<{ stdout: string; stderr: string; code: number } | null>", - "exported": false, - "lineCount": 27 - }, - { - "name": "resolveDeps", - "params": [ - "opts" - ], - "returnType": "ResolvedDeps", - "exported": false, - "lineCount": 7 - }, - { - "name": "launchTool", - "params": [ - "opts" - ], - "returnType": "LaunchResult", - "exported": true, - "lineCount": 34 - }, - { - "name": "hookPackageFor", - "params": [ - "id" - ], - "returnType": "string", - "exported": true, - "lineCount": 3 - }, - { - "name": "runHookCommand", - "params": [ - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 40 - } - ], - "classes": [], - "imports": [ - { - "source": "node:child_process", - "specifiers": [ - "spawn", - "execFile" - ] - }, - { - "source": "node:util", - "specifiers": [ - "promisify" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "ToolId" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "LAUNCH_COHORT" - ] - } - ], - "exports": [ - "HOOKS_COHORT", - "launchTool", - "hookPackageFor", - "runHookCommand" - ], - "totalLines": 331, - "hasStructuralAnalysis": true - }, - "packages/agent/src/tool-process-tracker.ts": { - "filePath": "packages/agent/src/tool-process-tracker.ts", - "contentHash": "69e62c3d697203dd7d49753d8500b8471d894fc9f65d2c011edd3a57a630fdcb", - "functions": [ - { - "name": "defaultIsAlive", - "params": [ - "pid" - ], - "returnType": "boolean", - "exported": false, - "lineCount": 12 - }, - { - "name": "defaultSendSignal", - "params": [ - "pid", - "signal" - ], - "returnType": "boolean", - "exported": false, - "lineCount": 8 - }, - { - "name": "defaultDelay", - "params": [ - "ms" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 3 - } - ], - "classes": [ - { - "name": "ToolProcessTracker", - "methods": [ - "constructor", - "register", - "list", - "forget", - "kill", - "size", - "clear" - ], - "properties": [ - "processes", - "isAlive", - "now", - "sendSignal", - "delay" - ], - "exported": true, - "lineCount": 114 - } - ], - "imports": [ - { - "source": "@waggle/shared", - "specifiers": [ - "ToolId" - ] - } - ], - "exports": [ - "ToolProcessTracker" - ], - "totalLines": 196, - "hasStructuralAnalysis": true - }, - "packages/agent/src/tools.ts": { - "filePath": "packages/agent/src/tools.ts", - "contentHash": "fb7024bbcd6e9b3345083ed0aae4aeb7dc2b129437bf123ffc4951a6293b3f3b", - "functions": [ - { - "name": "createToolUtilizationTracker", - "params": [ - "totalAvailable" - ], - "returnType": "ToolUtilizationTracker", - "exported": true, - "lineCount": 16 - }, - { - "name": "createMindTools", - "params": [ - "deps" - ], - "returnType": "ToolDefinition[]", - "exported": true, - "lineCount": 559 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "IdentityLayer", - "AwarenessLayer", - "FrameStore", - "SessionStore", - "HybridSearch", - "KnowledgeGraph", - "Embedder", - "Importance", - "FrameSource" - ] - }, - { - "source": "./cognify.js", - "specifiers": [ - "CognifyPipeline" - ] - }, - { - "source": "./feedback-handler.js", - "specifiers": [ - "FeedbackHandler" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "ImprovementSignalStore" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "createCoreLogger" - ] - }, - { - "source": "./contradiction-detector.js", - "specifiers": [ - "detectContradiction" - ] - }, - { - "source": "./injection-scanner.js", - "specifiers": [ - "scanForInjection" - ] - }, - { - "source": "./text-analysis.js", - "specifiers": [ - "normalizeForDedup", - "cosineSimilarity", - "detectDramaticClaims", - "deriveConfidence", - "ConfidenceLevel" - ] - } - ], - "exports": [ - "ConfidenceLevel", - "formatCombinedResult", - "createToolUtilizationTracker", - "createMindTools" - ], - "totalLines": 674, - "hasStructuralAnalysis": true - }, - "packages/agent/src/trace-recorder.ts": { - "filePath": "packages/agent/src/trace-recorder.ts", - "contentHash": "4204a387d9b125d16a3f4a6241fc93ce696b71198125d14c973ca670d77a4ffd", - "functions": [ - { - "name": "truncate", - "params": [ - "text", - "maxChars" - ], - "returnType": "string", - "exported": true, - "lineCount": 5 - }, - { - "name": "scrubSecrets", - "params": [ - "args" - ], - "returnType": "Record", - "exported": true, - "lineCount": 15 - } - ], - "classes": [ - { - "name": "TraceRecorder", - "methods": [ - "constructor", - "start", - "recordReasoning", - "startToolCall", - "completeToolCall", - "recordToolCall", - "recordArtifact", - "flush", - "finalize", - "markCorrected", - "wireAgentLoopCallbacks", - "peekReasoning", - "peekToolCalls", - "peekArtifacts", - "pendingToolCount" - ], - "properties": [ - "store", - "reasoningBuffer", - "toolCallBuffer", - "artifactBuffer", - "pendingTools", - "maxToolResultChars" - ], - "exported": true, - "lineCount": 229 - } - ], - "imports": [ - { - "source": "@waggle/core", - "specifiers": [ - "ExecutionTrace", - "ExecutionTraceStore", - "StartTraceInput", - "TraceOutcome", - "TracePayload", - "TraceReasoningStep", - "TraceToolCall" - ] - } - ], - "exports": [ - "truncate", - "scrubSecrets", - "TraceRecorder" - ], - "totalLines": 313, - "hasStructuralAnalysis": true - }, - "packages/agent/src/trust-model.ts": { - "filePath": "packages/agent/src/trust-model.ts", - "contentHash": "3d7ad4ee442b489767b7f21981ae5a37b7ee5804ebcb5f72f1ddcc0024a95438", - "functions": [ - { - "name": "resolveTrustSource", - "params": [ - "capabilityType", - "source" - ], - "returnType": "TrustSource", - "exported": true, - "lineCount": 16 - }, - { - "name": "testPatterns", - "params": [ - "content", - "patterns" - ], - "returnType": "boolean", - "exported": false, - "lineCount": 3 - }, - { - "name": "detectPermissions", - "params": [ - "content" - ], - "returnType": "PermissionSummary", - "exported": true, - "lineCount": 10 - }, - { - "name": "classifyRisk", - "params": [ - "points" - ], - "returnType": "RiskLevel", - "exported": true, - "lineCount": 6 - }, - { - "name": "deriveApprovalClass", - "params": [ - "riskLevel", - "blocked" - ], - "returnType": "ApprovalClass", - "exported": true, - "lineCount": 9 - }, - { - "name": "collectRiskFactors", - "params": [ - "trustSource", - "permissions" - ], - "returnType": "RiskFactor[]", - "exported": false, - "lineCount": 19 - }, - { - "name": "generateExplanation", - "params": [ - "riskLevel", - "trustSource", - "permissions", - "assessmentMode" - ], - "returnType": "string", - "exported": false, - "lineCount": 45 - }, - { - "name": "assertNeverRisk", - "params": [ - "level" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "formatPermissionName", - "params": [ - "key" - ], - "returnType": "string", - "exported": false, - "lineCount": 11 - }, - { - "name": "determineAssessmentMode", - "params": [ - "hasDeclaredMetadata", - "hasContentAnalysis" - ], - "returnType": "AssessmentMode", - "exported": false, - "lineCount": 8 - }, - { - "name": "assessTrust", - "params": [ - "input" - ], - "returnType": "TrustAssessment", - "exported": true, - "lineCount": 61 - }, - { - "name": "formatTrustSummary", - "params": [ - "assessment" - ], - "returnType": "string", - "exported": true, - "lineCount": 24 - }, - { - "name": "capitalize", - "params": [ - "s" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "./capability-acquisition.js", - "specifiers": [ - "CapabilitySourceType" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "RiskLevel", - "TrustSource", - "ApprovalClass", - "AssessmentMode" - ] - } - ], - "exports": [ - "RiskLevel", - "TrustSource", - "ApprovalClass", - "AssessmentMode", - "resolveTrustSource", - "detectPermissions", - "classifyRisk", - "deriveApprovalClass", - "assessTrust", - "formatTrustSummary" - ], - "totalLines": 448, - "hasStructuralAnalysis": true - }, - "packages/agent/src/turn-context.ts": { - "filePath": "packages/agent/src/turn-context.ts", - "contentHash": "daf7d369cdf76c7e4a49ba127ec028e7ce96deb18d21d3db2c72ef5ca7387881", - "functions": [ - { - "name": "generateTurnId", - "params": [], - "returnType": "string", - "exported": true, - "lineCount": 3 - }, - { - "name": "logTurnEvent", - "params": [ - "turnId", - "payload" - ], - "returnType": "void", - "exported": true, - "lineCount": 7 - }, - { - "name": "startTurnCapture", - "params": [], - "returnType": "TurnEventRecord[]", - "exported": true, - "lineCount": 4 - }, - { - "name": "stopTurnCapture", - "params": [], - "returnType": "void", - "exported": true, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "node:crypto", - "specifiers": [ - "randomUUID" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "createCoreLogger" - ] - } - ], - "exports": [ - "generateTurnId", - "logTurnEvent", - "startTurnCapture", - "stopTurnCapture" - ], - "totalLines": 77, - "hasStructuralAnalysis": true - }, - "packages/agent/src/verification-gate.ts": { - "filePath": "packages/agent/src/verification-gate.ts", - "contentHash": "cbe683ef9ad44f894920d65616cbca854f57650d472b50ca13a03c69344c7504", - "functions": [ - { - "name": "assertsUnverifiedCompletion", - "params": [ - "content", - "toolsUsed" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 6 - } - ], - "classes": [], - "imports": [], - "exports": [ - "assertsUnverifiedCompletion", - "VERIFICATION_GATE_DIRECTIVE" - ], - "totalLines": 61, - "hasStructuralAnalysis": true - }, - "packages/agent/src/web-search-utils.ts": { - "filePath": "packages/agent/src/web-search-utils.ts", - "contentHash": "e68118c5883d9fda4ca1d0a8364fc316d188148823f37c6477f7f84befa81dce", - "functions": [], - "classes": [ - { - "name": "SearchCache", - "methods": [ - "constructor", - "get", - "set" - ], - "properties": [ - "cache", - "ttl" - ], - "exported": true, - "lineCount": 22 - }, - { - "name": "RateLimiter", - "methods": [ - "constructor", - "canProceed" - ], - "properties": [ - "timestamps", - "maxCalls", - "windowMs" - ], - "exported": true, - "lineCount": 18 - } - ], - "imports": [], - "exports": [ - "SearchCache", - "RateLimiter" - ], - "totalLines": 46, - "hasStructuralAnalysis": true - }, - "packages/agent/src/workflow-capture.ts": { - "filePath": "packages/agent/src/workflow-capture.ts", - "contentHash": "88a0b76d5ffe84d584fb0e891795e60493f57dc935620697d190e32c32f31fa3", - "functions": [ - { - "name": "shouldSuggestCapture", - "params": [ - "params" - ], - "returnType": "CaptureResult", - "exported": true, - "lineCount": 72 - }, - { - "name": "extractCurrentToolSequence", - "params": [ - "messages" - ], - "returnType": "string[]", - "exported": false, - "lineCount": 11 - }, - { - "name": "computeSequenceSimilarity", - "params": [ - "a", - "b" - ], - "returnType": "number", - "exported": false, - "lineCount": 17 - }, - { - "name": "lcsLength", - "params": [ - "a", - "b" - ], - "returnType": "number", - "exported": false, - "lineCount": 19 - }, - { - "name": "inferCategoryFromTools", - "params": [ - "tools" - ], - "returnType": "string", - "exported": false, - "lineCount": 9 - } - ], - "classes": [], - "imports": [ - { - "source": "./skill-creator.js", - "specifiers": [ - "detectWorkflowPattern", - "SkillTemplate" - ] - } - ], - "exports": [ - "shouldSuggestCapture" - ], - "totalLines": 200, - "hasStructuralAnalysis": true - }, - "packages/agent/src/workflow-composer.ts": { - "filePath": "packages/agent/src/workflow-composer.ts", - "contentHash": "06e8d61b33a47c3ce6d5af8625ba9f25e2346f0e76f3fb09244914e257c424df", - "functions": [ - { - "name": "composeWorkflow", - "params": [ - "shape", - "task", - "context" - ], - "returnType": "WorkflowPlan", - "exported": true, - "lineCount": 26 - }, - { - "name": "selectExecutionMode", - "params": [ - "shape", - "task", - "context" - ], - "returnType": "ExecutionMode", - "exported": false, - "lineCount": 41 - }, - { - "name": "findMatchingSkill", - "params": [ - "shape", - "skills" - ], - "returnType": "LoadedSkill | undefined", - "exported": false, - "lineCount": 15 - }, - { - "name": "explainModeChoice", - "params": [ - "mode", - "shape", - "context" - ], - "returnType": "string", - "exported": false, - "lineCount": 14 - }, - { - "name": "getEscalationTrigger", - "params": [ - "mode" - ], - "returnType": "string", - "exported": false, - "lineCount": 14 - }, - { - "name": "buildPlanSteps", - "params": [ - "shape", - "task", - "context" - ], - "returnType": "PlanStep[]", - "exported": false, - "lineCount": 6 - }, - { - "name": "buildShapeSteps", - "params": [ - "shapeType", - "task", - "context" - ], - "returnType": "PlanStep[]", - "exported": false, - "lineCount": 51 - }, - { - "name": "buildMixedSteps", - "params": [ - "phases", - "_task", - "context" - ], - "returnType": "PlanStep[]", - "exported": false, - "lineCount": 22 - }, - { - "name": "buildTemplate", - "params": [ - "shape", - "task", - "steps" - ], - "returnType": "WorkflowTemplate", - "exported": false, - "lineCount": 17 - }, - { - "name": "mapStepToRole", - "params": [ - "step" - ], - "returnType": "string", - "exported": false, - "lineCount": 9 - }, - { - "name": "buildExplanation", - "params": [ - "shape", - "steps", - "mode" - ], - "returnType": "string", - "exported": false, - "lineCount": 33 - }, - { - "name": "validateTemplate", - "params": [ - "template" - ], - "returnType": "ValidationError[]", - "exported": true, - "lineCount": 37 - }, - { - "name": "hasCycle", - "params": [ - "steps" - ], - "returnType": "boolean", - "exported": false, - "lineCount": 26 - }, - { - "name": "capitalize", - "params": [ - "s" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "./task-shape.js", - "specifiers": [ - "TaskShape", - "TaskShapeType", - "ComponentPhase" - ] - }, - { - "source": "./subagent-orchestrator.js", - "specifiers": [ - "WorkflowTemplate", - "WorkflowStep" - ] - }, - { - "source": "./prompt-loader.js", - "specifiers": [ - "LoadedSkill" - ] - }, - { - "source": "./workflow-harness.js", - "specifiers": [ - "WorkflowHarness" - ] - }, - { - "source": "./builtin-harnesses.js", - "specifiers": [ - "matchHarness" - ] - }, - { - "source": "./feature-flags.js", - "specifiers": [ - "FEATURE_FLAGS" - ] - } - ], - "exports": [ - "composeWorkflow", - "validateTemplate" - ], - "totalLines": 410, - "hasStructuralAnalysis": true - }, - "packages/agent/src/workflow-harness.ts": { - "filePath": "packages/agent/src/workflow-harness.ts", - "contentHash": "a115a01cf021bf31ba490fd890589f78040987a6d4da660dfdb4d0108a10f7e8", - "functions": [ - { - "name": "createHarnessRun", - "params": [ - "harness" - ], - "returnType": "HarnessRunState", - "exported": true, - "lineCount": 27 - }, - { - "name": "advancePhase", - "params": [ - "state", - "harness", - "output" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 162 - }, - { - "name": "getCurrentPhaseInstruction", - "params": [ - "state", - "harness" - ], - "returnType": "string | null", - "exported": true, - "lineCount": 31 - }, - { - "name": "canRetry", - "params": [ - "state", - "harness" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 8 - }, - { - "name": "getRunSummary", - "params": [ - "state", - "harness" - ], - "returnType": "string", - "exported": true, - "lineCount": 51 - }, - { - "name": "shouldSkipVerify", - "params": [], - "returnType": "boolean", - "exported": false, - "lineCount": 9 - } - ], - "classes": [], - "imports": [ - { - "source": "node:events", - "specifiers": [ - "EventEmitter" - ] - } - ], - "exports": [ - "harnessEvents", - "createHarnessRun", - "advancePhase", - "getCurrentPhaseInstruction", - "canRetry", - "getRunSummary" - ], - "totalLines": 483, - "hasStructuralAnalysis": true - }, - "packages/agent/src/workflow-templates.ts": { - "filePath": "packages/agent/src/workflow-templates.ts", - "contentHash": "9ffa9423580c7e1290dac6373505c67ebb7ccf8a378869d4427493853d53f46e", - "functions": [ - { - "name": "createResearchTeamTemplate", - "params": [ - "task" - ], - "returnType": "WorkflowTemplate", - "exported": true, - "lineCount": 31 - }, - { - "name": "createReviewPairTemplate", - "params": [ - "task" - ], - "returnType": "WorkflowTemplate", - "exported": true, - "lineCount": 31 - }, - { - "name": "createPlanExecuteTemplate", - "params": [ - "task" - ], - "returnType": "WorkflowTemplate", - "exported": true, - "lineCount": 31 - }, - { - "name": "createTicketResolveTemplate", - "params": [ - "task" - ], - "returnType": "WorkflowTemplate", - "exported": true, - "lineCount": 31 - }, - { - "name": "createContentPipelineTemplate", - "params": [ - "task" - ], - "returnType": "WorkflowTemplate", - "exported": true, - "lineCount": 31 - }, - { - "name": "listWorkflowTemplates", - "params": [], - "returnType": "string[]", - "exported": true, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "./subagent-orchestrator.js", - "specifiers": [ - "WorkflowTemplate" - ] - } - ], - "exports": [ - "createResearchTeamTemplate", - "createReviewPairTemplate", - "createPlanExecuteTemplate", - "createTicketResolveTemplate", - "createContentPipelineTemplate", - "WORKFLOW_TEMPLATES", - "listWorkflowTemplates" - ], - "totalLines": 181, - "hasStructuralAnalysis": true - }, - "packages/agent/src/workflow-tools.ts": { - "filePath": "packages/agent/src/workflow-tools.ts", - "contentHash": "9133d6c1bf44c12be7b4ecbfbbd9216aa098852ef33bea9857a7df5028af0a21", - "functions": [ - { - "name": "createWorkflowTools", - "params": [ - "config" - ], - "returnType": "ToolDefinition[]", - "exported": true, - "lineCount": 327 - }, - { - "name": "generateHarnessRunId", - "params": [ - "harnessId" - ], - "returnType": "string", - "exported": false, - "lineCount": 5 - }, - { - "name": "__resetActiveHarnessRunsForTests", - "params": [], - "returnType": "void", - "exported": true, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "./tools.js", - "specifiers": [ - "ToolDefinition" - ] - }, - { - "source": "./subagent-orchestrator.js", - "specifiers": [ - "SubagentOrchestrator", - "OrchestratorConfig", - "WorkflowTemplate" - ] - }, - { - "source": "./workflow-templates.js", - "specifiers": [ - "WORKFLOW_TEMPLATES", - "listWorkflowTemplates" - ] - }, - { - "source": "./task-shape.js", - "specifiers": [ - "detectTaskShape" - ] - }, - { - "source": "./workflow-composer.js", - "specifiers": [ - "composeWorkflow", - "validateTemplate", - "ComposerContext" - ] - }, - { - "source": "./workflow-harness.js", - "specifiers": [ - "createHarnessRun", - "advancePhase", - "getCurrentPhaseInstruction", - "getRunSummary", - "PhaseOutput", - "HarnessRunState" - ] - }, - { - "source": "./builtin-harnesses.js", - "specifiers": [ - "BUILTIN_HARNESSES", - "getHarnessById" - ] - }, - { - "source": "./hooks.js", - "specifiers": [ - "HookRegistry" - ] - }, - { - "source": "./prompt-loader.js", - "specifiers": [ - "LoadedSkill" - ] - } - ], - "exports": [ - "createWorkflowTools", - "__resetActiveHarnessRunsForTests" - ], - "totalLines": 378, - "hasStructuralAnalysis": true - }, - "packages/agent/src/workspace.ts": { - "filePath": "packages/agent/src/workspace.ts", - "contentHash": "33464c21d6d8bde2f552e3224b3569ee30e8613db99a07e22b12ac39f6897fdb", - "functions": [], - "classes": [ - { - "name": "Workspace", - "methods": [ - "constructor", - "getRoot", - "init", - "getConfig", - "updateConfig", - "startSession", - "logTurn", - "logAudit" - ], - "properties": [ - "root", - "waggleDir" - ], - "exported": true, - "lineCount": 83 - } - ], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - } - ], - "exports": [ - "Workspace" - ], - "totalLines": 99, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/agent-intelligence.test.ts": { - "filePath": "packages/agent/tests/agent-intelligence.test.ts", - "contentHash": "e3600eb239072e2aab9c56617134a3375f7d59f66301087b8d7d34c1cc3afbd5", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/tools.js", - "specifiers": [ - "createToolUtilizationTracker" - ] - }, - { - "source": "../../server/src/local/routes/chat.js", - "specifiers": [ - "buildSkillPromptSection" - ] - } - ], - "exports": [], - "totalLines": 98, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/agent-loop-network-retry.test.ts": { - "filePath": "packages/agent/tests/agent-loop-network-retry.test.ts", - "contentHash": "cefb4bd98ada985b1c2be00471fd77e40137b1912aacb30fd5c1935b271ab208", - "functions": [ - { - "name": "okResponse", - "params": [ - "content" - ], - "returnType": "Response", - "exported": false, - "lineCount": 10 - }, - { - "name": "baseConfig", - "params": [ - "overrides" - ], - "returnType": "AgentLoopConfig", - "exported": false, - "lineCount": 12 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi" - ] - }, - { - "source": "../src/agent-loop.js", - "specifiers": [ - "runAgentLoop", - "AgentLoopConfig" - ] - }, - { - "source": "../src/retry-policy.js", - "specifiers": [ - "handleNetworkError", - "initialRetryState", - "RetryState" - ] - } - ], - "exports": [], - "totalLines": 78, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/agent-loop-tracing.test.ts": { - "filePath": "packages/agent/tests/agent-loop-tracing.test.ts", - "contentHash": "a60acb681e4fb7f5d4b32fbb97f7e1f2f8488c26a3e790d1f775437e9bd8c2e1", - "functions": [ - { - "name": "mockFetch", - "params": [ - "responses" - ], - "exported": false, - "lineCount": 23 - }, - { - "name": "baseConfig", - "params": [ - "overrides" - ], - "returnType": "AgentLoopConfig", - "exported": false, - "lineCount": 12 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "ExecutionTraceStore" - ] - }, - { - "source": "../src/agent-loop.js", - "specifiers": [ - "runAgentLoop", - "AgentLoopConfig" - ] - }, - { - "source": "../src/trace-recorder.js", - "specifiers": [ - "TraceRecorder" - ] - }, - { - "source": "../src/tools.js", - "specifiers": [ - "ToolDefinition" - ] - } - ], - "exports": [], - "totalLines": 224, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/agent-loop.test.ts": { - "filePath": "packages/agent/tests/agent-loop.test.ts", - "contentHash": "2cd1d0bba3f132bd98b89d6e59645ccf5e788569ae7e0b740859bd0481390aa5", - "functions": [ - { - "name": "mockFetch", - "params": [ - "responses" - ], - "exported": false, - "lineCount": 30 - }, - { - "name": "makeConfig", - "params": [ - "overrides" - ], - "returnType": "AgentLoopConfig", - "exported": false, - "lineCount": 11 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi" - ] - }, - { - "source": "../src/agent-loop.js", - "specifiers": [ - "runAgentLoop", - "AgentLoopConfig", - "PluginToolProvider" - ] - }, - { - "source": "../src/tools.js", - "specifiers": [ - "ToolDefinition" - ] - }, - { - "source": "../src/capability-router.js", - "specifiers": [ - "CapabilityRouter" - ] - }, - { - "source": "better-sqlite3", - "specifiers": [ - "Database" - ] - } - ], - "exports": [], - "totalLines": 762, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/agent-message-bus.test.ts": { - "filePath": "packages/agent/tests/agent-message-bus.test.ts", - "contentHash": "0da068e61648f6eb081983dfc809c36043ffd11a4b54e6f9b9a39097e1328df8", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi" - ] - }, - { - "source": "../src/agent-message-bus.js", - "specifiers": [ - "AgentMessageBus" - ] - }, - { - "source": "../src/agent-comms-tools.js", - "specifiers": [ - "createAgentCommsTools" - ] - } - ], - "exports": [], - "totalLines": 153, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/audit-tools.test.ts": { - "filePath": "packages/agent/tests/audit-tools.test.ts", - "contentHash": "01dba0eaf07f915a490f7c7d24be7393c1fab64540cb13c002ec01a1677f15ba", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "../src/audit-tools.js", - "specifiers": [ - "createAuditTools" - ] - } - ], - "exports": [], - "totalLines": 65, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/auto-identity.test.ts": { - "filePath": "packages/agent/tests/auto-identity.test.ts", - "contentHash": "67e054a2378c36d79bf14dc10ea46b5f3df5651110d28139f1a8d74f4cadca3f", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "IdentityLayer" - ] - }, - { - "source": "../src/auto-identity.js", - "specifiers": [ - "ensureIdentity" - ] - } - ], - "exports": [], - "totalLines": 78, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/background-bash.test.ts": { - "filePath": "packages/agent/tests/background-bash.test.ts", - "contentHash": "da34e4873919be388d0d36d89de86e90c80ada49ccd61ae4177df36817828862", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "../src/system-tools.js", - "specifiers": [ - "createSystemTools", - "backgroundTasks" - ] - }, - { - "source": "../src/tools.js", - "specifiers": [ - "ToolDefinition" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - } - ], - "exports": [], - "totalLines": 196, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/background-task-cleanup.test.ts": { - "filePath": "packages/agent/tests/background-task-cleanup.test.ts", - "contentHash": "3da9909199a1969ea2fcd57a42ae0450d33753bb6fde34d5911abf75ad324f18", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach" - ] - }, - { - "source": "node:child_process", - "specifiers": [ - "ChildProcess" - ] - }, - { - "source": "../src/system-tools.js", - "specifiers": [ - "backgroundTasks", - "cleanupStaleTasks", - "MAX_BACKGROUND_TASKS", - "STALE_TASK_THRESHOLD_MS" - ] - } - ], - "exports": [], - "totalLines": 112, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/bash-sandboxing.test.ts": { - "filePath": "packages/agent/tests/bash-sandboxing.test.ts", - "contentHash": "0687b36cfebf7f39bce5678bcc15472b4b8d760d8894c438edd7bade841b4c95", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "../src/system-tools.js", - "specifiers": [ - "createSystemTools", - "checkDeniedBinaries", - "createSanitizedEnv", - "truncateOutput", - "DENIED_BINARIES", - "SENSITIVE_ENV_VARS", - "MAX_OUTPUT_SIZE" - ] - }, - { - "source": "../src/tools.js", - "specifiers": [ - "ToolDefinition" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - } - ], - "exports": [], - "totalLines": 317, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/behavioral-spec-overrides.test.ts": { - "filePath": "packages/agent/tests/behavioral-spec-overrides.test.ts", - "contentHash": "8f62bfc3be3d2b6d287514f30af7182d10b318503306ffa1e877d198ba1f40f7", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/behavioral-spec.js", - "specifiers": [ - "BEHAVIORAL_SPEC", - "buildActiveBehavioralSpec" - ] - } - ], - "exports": [], - "totalLines": 105, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/browser-tools.test.ts": { - "filePath": "packages/agent/tests/browser-tools.test.ts", - "contentHash": "f8e0d618f90e6c58432079f27072a86a567c721902f7f7e2063ec0275fef3f62", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach" - ] - }, - { - "source": "../src/browser-tools.js", - "specifiers": [ - "createBrowserTools", - "_resetBrowserState" - ] - }, - { - "source": "../src/tools.js", - "specifiers": [ - "ToolDefinition" - ] - } - ], - "exports": [], - "totalLines": 130, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/capability-acquisition-trust.test.ts": { - "filePath": "packages/agent/tests/capability-acquisition-trust.test.ts", - "contentHash": "70b2adbfa99b40fffb87beee90c5bc5bcc9aa46d01e9ce51670f32e6fe7f4db7", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "../src/capability-acquisition.js", - "specifiers": [ - "searchCapabilities" - ] - } - ], - "exports": [], - "totalLines": 272, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/capability-acquisition.test.ts": { - "filePath": "packages/agent/tests/capability-acquisition.test.ts", - "contentHash": "9176f79dd5999a129a53c4bd7e23619b213d751537cf16ed0fd4e14a2e607f5f", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "../src/capability-acquisition.js", - "specifiers": [ - "searchCapabilities", - "validateInstallCandidate", - "loadStarterSkillsMeta", - "SearchCapabilitiesInput" - ] - } - ], - "exports": [], - "totalLines": 310, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/capability-marketplace.test.ts": { - "filePath": "packages/agent/tests/capability-marketplace.test.ts", - "contentHash": "46615d5fa544fde9ef90f3ef67a2fe7516d415a1894428ff15e1a3371c79d87b", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "../src/capability-acquisition.js", - "specifiers": [ - "searchCapabilities", - "SearchCapabilitiesInput", - "MarketplaceCandidate" - ] - }, - { - "source": "../src/skill-tools.js", - "specifiers": [ - "createSkillTools" - ] - } - ], - "exports": [], - "totalLines": 243, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/capability-router.test.ts": { - "filePath": "packages/agent/tests/capability-router.test.ts", - "contentHash": "5e76cc4130b36710dff039c6c4c46e8cc3e5480ca5296edd27b7862fb2db736d", - "functions": [ - { - "name": "makeDeps", - "params": [ - "overrides" - ], - "returnType": "CapabilityRouterDeps", - "exported": false, - "lineCount": 10 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/capability-router.js", - "specifiers": [ - "CapabilityRouter", - "CapabilityRouterDeps" - ] - } - ], - "exports": [], - "totalLines": 149, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/cli-tools.test.ts": { - "filePath": "packages/agent/tests/cli-tools.test.ts", - "contentHash": "7792380a9f2c16877e6ecbcda5bc8089752820b0165b4e9d50b390058429947e", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi" - ] - }, - { - "source": "../src/cli-tools.js", - "specifiers": [ - "createCliTools" - ] - } - ], - "exports": [], - "totalLines": 135, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/cognify-linking.test.ts": { - "filePath": "packages/agent/tests/cognify-linking.test.ts", - "contentHash": "fc0632bd772ed5665bf64c8f630fe7adce82b96660052b16e7fab408edba188a", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "FrameStore", - "SessionStore", - "KnowledgeGraph", - "HybridSearch" - ] - }, - { - "source": "../../hive-mind-core/tests/mind/helpers/mock-embedder.js", - "specifiers": [ - "MockEmbedder" - ] - }, - { - "source": "../src/cognify.js", - "specifiers": [ - "CognifyPipeline" - ] - } - ], - "exports": [], - "totalLines": 80, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/cognify.test.ts": { - "filePath": "packages/agent/tests/cognify.test.ts", - "contentHash": "ad2a072b6d8b8279632d0047d2fe671b5d5c5382c140baf816b7e0a39c9f61ea", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "FrameStore", - "SessionStore", - "KnowledgeGraph", - "HybridSearch" - ] - }, - { - "source": "../../hive-mind-core/tests/mind/helpers/mock-embedder.js", - "specifiers": [ - "MockEmbedder" - ] - }, - { - "source": "../src/cognify.js", - "specifiers": [ - "CognifyPipeline" - ] - } - ], - "exports": [], - "totalLines": 111, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/combined-retrieval.test.ts": { - "filePath": "packages/agent/tests/combined-retrieval.test.ts", - "contentHash": "818e69c04f2a6d5ed6646cacfe5fd2fd11bc6f2aa62530e68963335e9fa58c0a", - "functions": [ - { - "name": "makeMemoryResult", - "params": [ - "overrides" - ], - "returnType": "MemorySearchResultLike", - "exported": false, - "lineCount": 13 - }, - { - "name": "makeSearchMock", - "params": [ - "results" - ], - "returnType": "MemorySearchLike", - "exported": false, - "lineCount": 3 - }, - { - "name": "makeKvarkClient", - "params": [ - "overrides" - ], - "returnType": "KvarkClientLike", - "exported": false, - "lineCount": 6 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi" - ] - }, - { - "source": "../src/combined-retrieval.js", - "specifiers": [ - "CombinedRetrieval", - "mapMemoryResult", - "mapKvarkResult", - "hasSufficientLocalCoverage", - "shouldQueryKvark", - "MemorySearchLike", - "MemorySearchResultLike", - "CombinedResult" - ] - }, - { - "source": "../src/kvark-tools.js", - "specifiers": [ - "KvarkClientLike", - "KvarkSearchResponseLike" - ] - } - ], - "exports": [], - "totalLines": 378, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/compliance-pdf.test.ts": { - "filePath": "packages/agent/tests/compliance-pdf.test.ts", - "contentHash": "bb5b3576b6f3d24f48dff19d2a67adadb66b31282331c591b38f65ac2fc6cfd5", - "functions": [ - { - "name": "sampleReport", - "params": [ - "overrides" - ], - "returnType": "AuditReport", - "exported": false, - "lineCount": 37 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "AuditReport" - ] - }, - { - "source": "../src/compliance-pdf.js", - "specifiers": [ - "buildComplianceDocDefinition" - ] - } - ], - "exports": [], - "totalLines": 194, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/compose-evolution.test.ts": { - "filePath": "packages/agent/tests/compose-evolution.test.ts", - "contentHash": "d6baec9b7ea18d5d9bb87e89c194a060cff2e653d4c97cedc05a8018a31c54e0", - "functions": [ - { - "name": "makeSchema", - "params": [ - "fields" - ], - "returnType": "Schema", - "exported": false, - "lineCount": 12 - }, - { - "name": "makeExamples", - "params": [ - "n" - ], - "returnType": "EvalExample[]", - "exported": false, - "lineCount": 7 - }, - { - "name": "makeJudgeScore", - "params": [ - "overall", - "feedback" - ], - "returnType": "JudgeScore", - "exported": false, - "lineCount": 7 - }, - { - "name": "makeFakeRunner", - "params": [], - "returnType": "SchemaExecuteFn", - "exported": false, - "lineCount": 6 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi" - ] - }, - { - "source": "../src/compose-evolution.js", - "specifiers": [ - "ComposeEvolution", - "defaultFeedbackFilter", - "filterJudgeFeedback", - "stripStructuralLines", - "schemaExecutorFromInstructionRunner" - ] - }, - { - "source": "../src/evolve-schema.js", - "specifiers": [ - "Schema", - "SchemaExecuteFn" - ] - }, - { - "source": "../src/eval-dataset.js", - "specifiers": [ - "EvalExample" - ] - }, - { - "source": "../src/judge.js", - "specifiers": [ - "JudgeScore" - ] - } - ], - "exports": [], - "totalLines": 374, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/compose-workflow-tool.test.ts": { - "filePath": "packages/agent/tests/compose-workflow-tool.test.ts", - "contentHash": "75cbe51512b21333b8606f69f946a1bdbc1c4c01d3a6a8b0a80beff521e7e962", - "functions": [ - { - "name": "makeConfig", - "params": [ - "overrides" - ], - "returnType": "WorkflowToolsConfig", - "exported": false, - "lineCount": 11 - }, - { - "name": "findTool", - "params": [ - "tools", - "name" - ], - "returnType": "ToolDefinition", - "exported": false, - "lineCount": 5 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi" - ] - }, - { - "source": "../src/workflow-tools.js", - "specifiers": [ - "createWorkflowTools", - "WorkflowToolsConfig" - ] - }, - { - "source": "../src/tools.js", - "specifiers": [ - "ToolDefinition" - ] - }, - { - "source": "../src/agent-loop.js", - "specifiers": [ - "AgentLoopConfig", - "AgentResponse" - ] - } - ], - "exports": [], - "totalLines": 145, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/confirmation.test.ts": { - "filePath": "packages/agent/tests/confirmation.test.ts", - "contentHash": "4a68d3211dfeee8599ad0be0c869f327d788ddecc5332cb19c18b039c39b4831", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi" - ] - }, - { - "source": "../src/confirmation.js", - "specifiers": [ - "needsConfirmation", - "needsConfirmationWithAutonomy", - "isCriticalNeverAutopass", - "classifyGatedToolRisk", - "ConfirmationGate" - ] - } - ], - "exports": [], - "totalLines": 182, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/conflict-detection.test.ts": { - "filePath": "packages/agent/tests/conflict-detection.test.ts", - "contentHash": "b359f58382b92999a53221594eec19e12a90a92cba529c65d686f05b565d33b2", - "functions": [ - { - "name": "makeResult", - "params": [ - "source", - "content", - "score" - ], - "returnType": "CombinedResult", - "exported": false, - "lineCount": 9 - }, - { - "name": "makeMemoryResult", - "params": [ - "id", - "content", - "score" - ], - "returnType": "MemorySearchResultLike", - "exported": false, - "lineCount": 3 - }, - { - "name": "makeSearch", - "params": [ - "results" - ], - "returnType": "MemorySearchLike", - "exported": false, - "lineCount": 3 - }, - { - "name": "makeKvarkClient", - "params": [ - "results" - ], - "returnType": "KvarkClientLike", - "exported": false, - "lineCount": 17 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi" - ] - }, - { - "source": "../src/combined-retrieval.js", - "specifiers": [ - "detectConflict", - "CombinedRetrieval", - "CombinedResult", - "MemorySearchLike", - "MemorySearchResultLike" - ] - }, - { - "source": "../src/tools.js", - "specifiers": [ - "formatCombinedResult" - ] - }, - { - "source": "../src/kvark-tools.js", - "specifiers": [ - "KvarkClientLike", - "KvarkSearchResponseLike" - ] - } - ], - "exports": [], - "totalLines": 197, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/connector-routing.test.ts": { - "filePath": "packages/agent/tests/connector-routing.test.ts", - "contentHash": "07d1dbaa46e1518eca42eaaa74056c57e38dd6a5a9dd8361bee1e5b6cfdd69f1", - "functions": [ - { - "name": "createDeps", - "params": [ - "overrides" - ], - "returnType": "CapabilityRouterDeps", - "exported": false, - "lineCount": 16 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/capability-router.js", - "specifiers": [ - "CapabilityRouter", - "CapabilityRouterDeps" - ] - } - ], - "exports": [], - "totalLines": 96, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/connector-sdk.test.ts": { - "filePath": "packages/agent/tests/connector-sdk.test.ts", - "contentHash": "a3a765b27db3e123c225c8494387b4707e9a3f30b8876d6ea3817ca6c096e070", - "functions": [ - { - "name": "createMockVault", - "params": [ - "credentials" - ], - "returnType": "VaultStore", - "exported": false, - "lineCount": 16 - } - ], - "classes": [ - { - "name": "MockConnector", - "methods": [ - "connect", - "healthCheck", - "execute" - ], - "properties": [ - "id", - "name", - "description", - "service", - "authType", - "substrate", - "actions", - "token", - "connectCalled", - "healthCheckCalled", - "executeCalls" - ], - "exported": false, - "lineCount": 56 - } - ], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach" - ] - }, - { - "source": "../src/connector-sdk.js", - "specifiers": [ - "BaseConnector", - "ConnectorAction", - "ConnectorResult", - "WaggleConnector" - ] - }, - { - "source": "../src/connector-registry.js", - "specifiers": [ - "ConnectorRegistry", - "AuditLogger" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "ConnectorHealth", - "ConnectorStatus" - ] - } - ], - "exports": [], - "totalLines": 335, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/connector-search.test.ts": { - "filePath": "packages/agent/tests/connector-search.test.ts", - "contentHash": "01d46d52c751e9813d11a9f4e0802cc297563603246070e57791a691397c6a50", - "functions": [ - { - "name": "search", - "params": [ - "query", - "extras" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 5 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/connector-search.js", - "specifiers": [ - "createConnectorSearchTools" - ] - } - ], - "exports": [], - "totalLines": 135, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/connectors-communication.test.ts": { - "filePath": "packages/agent/tests/connectors-communication.test.ts", - "contentHash": "9e4ac9beb302032ba3a396da490cc419a9c27fcd47be228fc0b8ed5fedfb612f", - "functions": [ - { - "name": "createMockVault", - "params": [ - "connectorId", - "cred" - ], - "returnType": "VaultStore", - "exported": false, - "lineCount": 15 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "../src/connectors/discord-connector.js", - "specifiers": [ - "DiscordConnector" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - } - ], - "exports": [], - "totalLines": 55, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/connectors/connectors-composio.test.ts": { - "filePath": "packages/agent/tests/connectors/connectors-composio.test.ts", - "contentHash": "0cac24fed8a64bd7e04cd28a731ae72b3e1aa230c828aceb9be264c4f48a6eef", - "functions": [ - { - "name": "createMockVault", - "params": [ - "cred" - ], - "returnType": "VaultStore", - "exported": false, - "lineCount": 15 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "../../src/connectors/composio-connector.js", - "specifiers": [ - "ComposioConnector" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - } - ], - "exports": [], - "totalLines": 209, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/connectors/connectors-crm-data.test.ts": { - "filePath": "packages/agent/tests/connectors/connectors-crm-data.test.ts", - "contentHash": "60a656cc5ffecc4a427482d407fb7c0ca842610d863b7ab2884de8d73a28db32", - "functions": [ - { - "name": "createMockVault", - "params": [ - "connectorId", - "cred", - "extras" - ], - "returnType": "VaultStore", - "exported": false, - "lineCount": 18 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "../../src/connectors/hubspot-connector.js", - "specifiers": [ - "HubSpotConnector" - ] - }, - { - "source": "../../src/connectors/salesforce-connector.js", - "specifiers": [ - "SalesforceConnector" - ] - }, - { - "source": "../../src/connectors/pipedrive-connector.js", - "specifiers": [ - "PipedriveConnector" - ] - }, - { - "source": "../../src/connectors/airtable-connector.js", - "specifiers": [ - "AirtableConnector" - ] - }, - { - "source": "../../src/connectors/gitlab-connector.js", - "specifiers": [ - "GitLabConnector" - ] - }, - { - "source": "../../src/connectors/bitbucket-connector.js", - "specifiers": [ - "BitbucketConnector" - ] - }, - { - "source": "../../src/connectors/dropbox-connector.js", - "specifiers": [ - "DropboxConnector" - ] - }, - { - "source": "../../src/connectors/postgres-connector.js", - "specifiers": [ - "PostgresConnector" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - } - ], - "exports": [], - "totalLines": 491, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/connectors/connectors-google.test.ts": { - "filePath": "packages/agent/tests/connectors/connectors-google.test.ts", - "contentHash": "d0387573c8b804ccb864f911baf5ef08edb37f7ce3f2ef1ab7a759140fb9975d", - "functions": [ - { - "name": "createMockVault", - "params": [ - "connectorId", - "cred" - ], - "returnType": "VaultStore", - "exported": false, - "lineCount": 15 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "../../src/connectors/gmail-connector.js", - "specifiers": [ - "GmailConnector" - ] - }, - { - "source": "../../src/connectors/gdocs-connector.js", - "specifiers": [ - "GoogleDocsConnector" - ] - }, - { - "source": "../../src/connectors/gdrive-connector.js", - "specifiers": [ - "GoogleDriveConnector" - ] - }, - { - "source": "../../src/connectors/gsheets-connector.js", - "specifiers": [ - "GoogleSheetsConnector" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - } - ], - "exports": [], - "totalLines": 489, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/connectors/connectors-knowledge.test.ts": { - "filePath": "packages/agent/tests/connectors/connectors-knowledge.test.ts", - "contentHash": "30ea4f89e7e07a675808dc34880bca71b0bb83742a5ccfad2323e7f4d8ddfe4c", - "functions": [ - { - "name": "createMockVault", - "params": [ - "connectorId", - "cred", - "extras" - ], - "returnType": "VaultStore", - "exported": false, - "lineCount": 19 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "../../src/connectors/notion-connector.js", - "specifiers": [ - "NotionConnector" - ] - }, - { - "source": "../../src/connectors/confluence-connector.js", - "specifiers": [ - "ConfluenceConnector" - ] - }, - { - "source": "../../src/connectors/obsidian-connector.js", - "specifiers": [ - "ObsidianConnector" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - } - ], - "exports": [], - "totalLines": 523, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/connectors/connectors-microsoft.test.ts": { - "filePath": "packages/agent/tests/connectors/connectors-microsoft.test.ts", - "contentHash": "a346aa0d153b2191c4bafcdd9b289ca746a7bc7841f51a0f8b6102c7137c4bcc", - "functions": [ - { - "name": "createMockVault", - "params": [ - "connectorId", - "cred" - ], - "returnType": "VaultStore", - "exported": false, - "lineCount": 18 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "../../src/connectors/ms-teams-connector.js", - "specifiers": [ - "MSTeamsConnector" - ] - }, - { - "source": "../../src/connectors/outlook-connector.js", - "specifiers": [ - "OutlookConnector" - ] - }, - { - "source": "../../src/connectors/onedrive-connector.js", - "specifiers": [ - "OneDriveConnector" - ] - }, - { - "source": "../../src/connectors/onenote-connector.js", - "specifiers": [ - "OneNoteConnector" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - } - ], - "exports": [], - "totalLines": 712, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/connectors/connectors-pm.test.ts": { - "filePath": "packages/agent/tests/connectors/connectors-pm.test.ts", - "contentHash": "72cb0b5a01d530a86b02d8432ecb39ab364d2c35fc613db1177833d229a63d1f", - "functions": [ - { - "name": "createMockVault", - "params": [ - "connectorId", - "cred", - "extras" - ], - "returnType": "VaultStore", - "exported": false, - "lineCount": 18 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "../../src/connectors/linear-connector.js", - "specifiers": [ - "LinearConnector" - ] - }, - { - "source": "../../src/connectors/asana-connector.js", - "specifiers": [ - "AsanaConnector" - ] - }, - { - "source": "../../src/connectors/trello-connector.js", - "specifiers": [ - "TrelloConnector" - ] - }, - { - "source": "../../src/connectors/monday-connector.js", - "specifiers": [ - "MondayConnector" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - } - ], - "exports": [], - "totalLines": 440, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/connectors/discord-connector.test.ts": { - "filePath": "packages/agent/tests/connectors/discord-connector.test.ts", - "contentHash": "a0010c295a07efa196219ae248abc3711e3f8fa5d32edf32cf85c3e9cf266c34", - "functions": [ - { - "name": "createMockVault", - "params": [ - "cred" - ], - "returnType": "VaultStore", - "exported": false, - "lineCount": 15 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "../../src/connectors/discord-connector.js", - "specifiers": [ - "DiscordConnector" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - } - ], - "exports": [], - "totalLines": 138, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/connectors/email-connector.test.ts": { - "filePath": "packages/agent/tests/connectors/email-connector.test.ts", - "contentHash": "00304f8bd3f852d4be82acc477c352d7fe6f42b2d2e0a51045ac31c1e47e088f", - "functions": [ - { - "name": "createMockVault", - "params": [ - "cred" - ], - "returnType": "VaultStore", - "exported": false, - "lineCount": 15 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "../../src/connectors/email-connector.js", - "specifiers": [ - "EmailConnector" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - } - ], - "exports": [], - "totalLines": 145, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/connectors/gcal-connector.test.ts": { - "filePath": "packages/agent/tests/connectors/gcal-connector.test.ts", - "contentHash": "8d35fd09ea5b74c7691b295b769ab6a43cd25a73497a255f15a42fd20cd01ff6", - "functions": [ - { - "name": "createMockVault", - "params": [ - "opts" - ], - "returnType": "VaultStore", - "exported": false, - "lineCount": 33 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "../../src/connectors/gcal-connector.js", - "specifiers": [ - "GoogleCalendarConnector" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - } - ], - "exports": [], - "totalLines": 233, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/connectors/github-connector.test.ts": { - "filePath": "packages/agent/tests/connectors/github-connector.test.ts", - "contentHash": "124d44a348d32022449230dbd821a1bcd32e23c0bcaaeecad7a4d5d59bc016d2", - "functions": [ - { - "name": "createMockVault", - "params": [ - "cred" - ], - "returnType": "VaultStore", - "exported": false, - "lineCount": 15 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "../../src/connectors/github-connector.js", - "specifiers": [ - "GitHubConnector" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - } - ], - "exports": [], - "totalLines": 113, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/connectors/jira-connector.test.ts": { - "filePath": "packages/agent/tests/connectors/jira-connector.test.ts", - "contentHash": "8fc1cf66fa10b384f7988a63dafce894c34c65e9bdbdc42db97723d4b7764534", - "functions": [ - { - "name": "createMockVault", - "params": [ - "opts" - ], - "returnType": "VaultStore", - "exported": false, - "lineCount": 19 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "../../src/connectors/jira-connector.js", - "specifiers": [ - "JiraConnector" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - } - ], - "exports": [], - "totalLines": 132, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/connectors/slack-connector.test.ts": { - "filePath": "packages/agent/tests/connectors/slack-connector.test.ts", - "contentHash": "20455c07406e80d085c4979e65d0ef6171ee2729e3bfa056c116d0616ea0f005", - "functions": [ - { - "name": "createMockVault", - "params": [ - "cred" - ], - "returnType": "VaultStore", - "exported": false, - "lineCount": 15 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "../../src/connectors/slack-connector.js", - "specifiers": [ - "SlackConnector" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - } - ], - "exports": [], - "totalLines": 90, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/context-compressor.test.ts": { - "filePath": "packages/agent/tests/context-compressor.test.ts", - "contentHash": "5db2510d0334ecf893ca8ba6be707efb73759f4707c07cad9a1f23b527481e8e", - "functions": [ - { - "name": "msg", - "params": [ - "role", - "content" - ], - "returnType": "CompressibleMessage", - "exported": false, - "lineCount": 3 - }, - { - "name": "makeHistory", - "params": [ - "count", - "contentSize" - ], - "returnType": "CompressibleMessage[]", - "exported": false, - "lineCount": 8 - }, - { - "name": "mockFetch", - "params": [ - "responseContent", - "ok" - ], - "returnType": "typeof globalThis.fetch", - "exported": false, - "lineCount": 8 - }, - { - "name": "testConfig", - "params": [ - "overrides" - ], - "returnType": "CompressionConfig", - "exported": false, - "lineCount": 8 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi" - ] - }, - { - "source": "../src/context-compressor.js", - "specifiers": [ - "estimateTokens", - "needsCompression", - "pruneToolResults", - "splitProtectedRegions", - "summarizeMiddle", - "compressConversation", - "createDefaultCompressionConfig", - "CompressibleMessage", - "CompressionConfig" - ] - } - ], - "exports": [], - "totalLines": 435, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/correction-detector.test.ts": { - "filePath": "packages/agent/tests/correction-detector.test.ts", - "contentHash": "27cc3a6c5830b5de78ceb20b5702bded246ad1cf17fd981b473dafd70fc57ae7", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/correction-detector.js", - "specifiers": [ - "detectCorrection", - "detectCorrectionsInHistory" - ] - } - ], - "exports": [], - "totalLines": 205, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/cost-tracker.test.ts": { - "filePath": "packages/agent/tests/cost-tracker.test.ts", - "contentHash": "8239ce2a0fd58fbdeb37c2a94ecf410bc7e0ea77a3c0c208acde9f7ba7193e54", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/cost-tracker.js", - "specifiers": [ - "CostTracker", - "ModelPricing" - ] - } - ], - "exports": [], - "totalLines": 56, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/credential-pool.test.ts": { - "filePath": "packages/agent/tests/credential-pool.test.ts", - "contentHash": "766a2421fd0e9551aa8c4db99c2c4b766a1b7759bc3def60c365c0fc04ca5430", - "functions": [ - { - "name": "createPool", - "params": [ - "keyCount", - "nowFn" - ], - "returnType": "CredentialPool", - "exported": false, - "lineCount": 7 - }, - { - "name": "mockVault", - "params": [ - "keys" - ], - "returnType": "VaultLike", - "exported": false, - "lineCount": 10 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/credential-pool.js", - "specifiers": [ - "CredentialPool", - "loadCredentialPool", - "extractStatusCode", - "VaultLike" - ] - } - ], - "exports": [], - "totalLines": 370, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/cron-delivery-router.test.ts": { - "filePath": "packages/agent/tests/cron-delivery-router.test.ts", - "contentHash": "bb5193dd9669809224f1a11155543a9806a3957f3426b5fa63dd103305532108", - "functions": [ - { - "name": "makeMessage", - "params": [ - "overrides" - ], - "returnType": "DeliveryMessage", - "exported": false, - "lineCount": 8 - }, - { - "name": "makeConnector", - "params": [ - "success" - ], - "returnType": "DeliveryConnector", - "exported": false, - "lineCount": 5 - }, - { - "name": "makeRegistry", - "params": [ - "connectors" - ], - "returnType": "DeliveryConnectorRegistry", - "exported": false, - "lineCount": 7 - }, - { - "name": "makeEmitter", - "params": [], - "returnType": "InAppEmitter", - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi" - ] - }, - { - "source": "../src/cron-delivery-router.js", - "specifiers": [ - "deliverCronResult", - "createDefaultDeliveryPreferences", - "DeliveryMessage", - "DeliveryPreferences", - "DeliveryConnectorRegistry", - "DeliveryConnector", - "InAppEmitter" - ] - } - ], - "exports": [], - "totalLines": 271, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/cron-tools.test.ts": { - "filePath": "packages/agent/tests/cron-tools.test.ts", - "contentHash": "700dbae626a0bd8d1d159515d5ddebb3ae4ac2b3acfed8c37748976954a43c8d", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "../src/cron-tools.js", - "specifiers": [ - "createCronTools" - ] - }, - { - "source": "../src/tools.js", - "specifiers": [ - "ToolDefinition" - ] - } - ], - "exports": [], - "totalLines": 349, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/d6-recovery-confab.test.ts": { - "filePath": "packages/agent/tests/d6-recovery-confab.test.ts", - "contentHash": "5ec8efc772dc3495ff9100e47c380c17a6938ef6b2208653b26f65e713b54e10", - "functions": [ - { - "name": "mockFetch", - "params": [ - "responses" - ], - "exported": false, - "lineCount": 22 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi" - ] - }, - { - "source": "../src/agent-loop.js", - "specifiers": [ - "runAgentLoop", - "AgentLoopConfig" - ] - }, - { - "source": "../src/tools.js", - "specifiers": [ - "ToolDefinition" - ] - } - ], - "exports": [], - "totalLines": 84, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/document-tools.test.ts": { - "filePath": "packages/agent/tests/document-tools.test.ts", - "contentHash": "ee78c0eb6820b82097983f1c2b16924506212ea7bc026a398bfbaf9f6cb1b094", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "../src/document-tools.js", - "specifiers": [ - "createDocumentTools" - ] - } - ], - "exports": [], - "totalLines": 149, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/e2e/connector-swarm-scenarios.test.ts": { - "filePath": "packages/agent/tests/e2e/connector-swarm-scenarios.test.ts", - "contentHash": "9499aaf97db9abd88041da1c9be15d7e73574357144bf94e0e6eebba9a3f28aa", - "functions": [ - { - "name": "createMockVault", - "params": [ - "connected" - ], - "returnType": "VaultStore", - "exported": false, - "lineCount": 12 - }, - { - "name": "createMockDeps", - "params": [], - "returnType": "ExecutionDeps", - "exported": false, - "lineCount": 13 - } - ], - "classes": [ - { - "name": "MockConnector", - "methods": [ - "constructor", - "connect", - "healthCheck", - "execute" - ], - "properties": [ - "id", - "name", - "description", - "service", - "authType", - "substrate", - "actions" - ], - "exported": false, - "lineCount": 26 - } - ], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi" - ] - }, - { - "source": "../../src/connector-registry.js", - "specifiers": [ - "ConnectorRegistry", - "AuditLogger" - ] - }, - { - "source": "../../src/connector-sdk.js", - "specifiers": [ - "BaseConnector", - "ConnectorAction", - "ConnectorResult" - ] - }, - { - "source": "../../../worker/src/execution/parallel.js", - "specifiers": [ - "executeParallel", - "ExecutionDeps", - "AgentMemberConfig", - "AgentResult" - ] - }, - { - "source": "../../../worker/src/execution/sequential.js", - "specifiers": [ - "executeSequential" - ] - }, - { - "source": "../../../worker/src/execution/coordinator.js", - "specifiers": [ - "executeCoordinator" - ] - }, - { - "source": "../../src/agent-message-bus.js", - "specifiers": [ - "AgentMessageBus" - ] - }, - { - "source": "../../src/agent-comms-tools.js", - "specifiers": [ - "createAgentCommsTools" - ] - }, - { - "source": "../../../server/src/local/workspace-sessions.js", - "specifiers": [ - "WorkspaceSessionManager" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "VaultStore" - ] - }, - { - "source": "../../src/orchestrator.js", - "specifiers": [ - "Orchestrator" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "ConnectorHealth" - ] - } - ], - "exports": [], - "totalLines": 248, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/e2e/scenario-framework.ts": { - "filePath": "packages/agent/tests/e2e/scenario-framework.ts", - "contentHash": "3e9de0c8fe68d51939a66f5aa82c698fee8ce5319c42c03f78013e2b9f078b8d", - "functions": [ - { - "name": "executeScenario", - "params": [ - "tools", - "steps", - "toolArgs" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 33 - }, - { - "name": "verifyScenario", - "params": [ - "result", - "expectedTools", - "expectedPatterns" - ], - "returnType": "{ passed: boolean; failures: string[] }", - "exported": true, - "lineCount": 32 - } - ], - "classes": [], - "imports": [ - { - "source": "../../src/tools.js", - "specifiers": [ - "ToolDefinition" - ] - } - ], - "exports": [ - "executeScenario", - "verifyScenario" - ], - "totalLines": 98, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/e2e/solo-scenarios.test.ts": { - "filePath": "packages/agent/tests/e2e/solo-scenarios.test.ts", - "contentHash": "9925c81819ed86c124ef9132ba73b985c85664141b9a85d2062eb19bf2c381f1", - "functions": [ - { - "name": "mockTool", - "params": [ - "name", - "response" - ], - "returnType": "ToolDefinition", - "exported": false, - "lineCount": 8 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach" - ] - }, - { - "source": "./scenario-framework.js", - "specifiers": [ - "executeScenario", - "verifyScenario" - ] - }, - { - "source": "../../src/tools.js", - "specifiers": [ - "ToolDefinition" - ] - }, - { - "source": "../../src/connector-registry.js", - "specifiers": [ - "ConnectorRegistry" - ] - }, - { - "source": "../../src/capability-router.js", - "specifiers": [ - "CapabilityRouter" - ] - }, - { - "source": "../../src/personas.js", - "specifiers": [ - "composePersonaPrompt", - "getPersona", - "PERSONAS" - ] - }, - { - "source": "../../src/agent-message-bus.js", - "specifiers": [ - "AgentMessageBus" - ] - }, - { - "source": "../../src/confirmation.js", - "specifiers": [ - "needsConfirmation", - "getApprovalClass" - ] - } - ], - "exports": [], - "totalLines": 205, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/enhanced-grep.test.ts": { - "filePath": "packages/agent/tests/enhanced-grep.test.ts", - "contentHash": "24a39c675ea6d406fd6a63d96cca860498a0ab0d6ab0fddf0d78ee3025fed99d", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "../src/system-tools.js", - "specifiers": [ - "createSystemTools" - ] - }, - { - "source": "../src/tools.js", - "specifiers": [ - "ToolDefinition" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - } - ], - "exports": [], - "totalLines": 224, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/enhanced-read-file.test.ts": { - "filePath": "packages/agent/tests/enhanced-read-file.test.ts", - "contentHash": "db043549ed4a990e509f0c2e3ef8c4cc418ae5e2a8b715da78ec42da4514c51f", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "../src/system-tools.js", - "specifiers": [ - "createSystemTools" - ] - }, - { - "source": "../src/tools.js", - "specifiers": [ - "ToolDefinition" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - } - ], - "exports": [], - "totalLines": 145, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/entity-extractor.test.ts": { - "filePath": "packages/agent/tests/entity-extractor.test.ts", - "contentHash": "becf4d6288c65834ee99df78098a7636e6e8effca2c7ab34fefad70a3d68330a", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/entity-extractor.js", - "specifiers": [ - "extractEntities" - ] - } - ], - "exports": [], - "totalLines": 28, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/eval-dataset.test.ts": { - "filePath": "packages/agent/tests/eval-dataset.test.ts", - "contentHash": "c47963615e6240d214bd50c70d116a4dff7c0e1ec4c4788481c7d31afc5e5579", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "ExecutionTraceStore" - ] - }, - { - "source": "../src/eval-dataset.js", - "specifiers": [ - "EvalDatasetBuilder", - "detectSecrets", - "SECRET_PATTERN_NAMES", - "evalToJSONL", - "evalFromJSONL", - "EvalExample" - ] - } - ], - "exports": [], - "totalLines": 349, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/eval/adversarial.ts": { - "filePath": "packages/agent/tests/eval/adversarial.ts", - "contentHash": "6b8482d71c535da4bbec441f5041502c06461a8057ca11f85046e8c208e3d47b", - "functions": [], - "classes": [], - "imports": [ - { - "source": "./framework.js", - "specifiers": [ - "EvalScenario" - ] - } - ], - "exports": [ - "ADVERSARIAL_SCENARIOS" - ], - "totalLines": 69, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/eval/eval.test.ts": { - "filePath": "packages/agent/tests/eval/eval.test.ts", - "contentHash": "3fbd9023f6529b3beda716942e7362dd480f5e94ac72c81263f559f2779cc5ba", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "./framework.js", - "specifiers": [ - "evaluateScenario", - "MockAgentResponse" - ] - }, - { - "source": "./scenarios.js", - "specifiers": [ - "SCENARIOS" - ] - }, - { - "source": "./adversarial.js", - "specifiers": [ - "ADVERSARIAL_SCENARIOS" - ] - } - ], - "exports": [], - "totalLines": 61, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/eval/framework.ts": { - "filePath": "packages/agent/tests/eval/framework.ts", - "contentHash": "0eb302cbc3463b79415746516f54c9bfba0b8040667710e405a42ca7d9f15913", - "functions": [ - { - "name": "evaluateScenario", - "params": [ - "scenario", - "response" - ], - "returnType": "EvalResult", - "exported": true, - "lineCount": 48 - } - ], - "classes": [], - "imports": [], - "exports": [ - "evaluateScenario" - ], - "totalLines": 73, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/eval/hermes-skill-reuse-eval.ts": { - "filePath": "packages/agent/tests/eval/hermes-skill-reuse-eval.ts", - "contentHash": "8d2c757e86aab0d01b6635d47e2b94ef87788ab2cf2ee444036acfc39c5f79bc", - "functions": [ - { - "name": "traceTask", - "params": [ - "pipe" - ], - "returnType": "TaskSpec", - "exported": false, - "lineCount": 18 - }, - { - "name": "flounderTask", - "params": [ - "pipe" - ], - "returnType": "TaskSpec", - "exported": false, - "lineCount": 18 - }, - { - "name": "pooledPairs", - "params": [ - "n" - ], - "returnType": "Family[]", - "exported": false, - "lineCount": 5 - }, - { - "name": "makeTools", - "params": [ - "skillDir", - "withCreateSkill", - "counter" - ], - "returnType": "ToolDefinition[]", - "exported": false, - "lineCount": 58 - }, - { - "name": "runTask", - "params": [ - "task", - "skillDir", - "withCreateSkill", - "cost", - "openrouterKey" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 24 - }, - { - "name": "runDistillTurn", - "params": [ - "taskPrompt", - "priorAnswer", - "directive", - "skillDir", - "cost", - "key" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 24 - }, - { - "name": "signTestP", - "params": [ - "wins", - "losses" - ], - "returnType": "number", - "exported": false, - "lineCount": 12 - }, - { - "name": "median", - "params": [ - "xs" - ], - "returnType": "number", - "exported": false, - "lineCount": 6 - }, - { - "name": "runPair", - "params": [ - "fam", - "idx", - "cost", - "key" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 37 - }, - { - "name": "main", - "params": [], - "exported": false, - "lineCount": 81 - } - ], - "classes": [], - "imports": [ - { - "source": "../../src/agent-loop.js", - "specifiers": [ - "runAgentLoop" - ] - }, - { - "source": "../../src/tools.js", - "specifiers": [ - "ToolDefinition" - ] - }, - { - "source": "../../src/skill-distillation.js", - "specifiers": [ - "planSkillDistillation" - ] - }, - { - "source": "../../src/cost-tracker.js", - "specifiers": [ - "CostTracker", - "BudgetExceededError" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - } - ], - "exports": [], - "totalLines": 507, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/eval/prompt-assembler-eval.ts": { - "filePath": "packages/agent/tests/eval/prompt-assembler-eval.ts", - "contentHash": "6926e85ad67e87b7b97786d9d669dfb4383f1553bdd49c020012e93da8d77b81", - "functions": [ - { - "name": "hydrateVault", - "params": [], - "returnType": "{ anthropic: string | null; openrouter: string | null }", - "exported": false, - "lineCount": 8 - }, - { - "name": "callAnthropic", - "params": [ - "model", - "systemPrompt", - "userMsg", - "opts" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 35 - }, - { - "name": "callOpenRouter", - "params": [ - "model", - "systemPrompt", - "userMsg", - "opts" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 38 - }, - { - "name": "callModel", - "params": [ - "provider", - "model", - "systemPrompt", - "userMsg", - "opts" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 10 - }, - { - "name": "setupCleanScenario", - "params": [ - "scenarioName" - ], - "returnType": "ScenarioSetup", - "exported": false, - "lineCount": 21 - }, - { - "name": "runPriming", - "params": [ - "orch", - "scenario" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 15 - }, - { - "name": "verifyMemory", - "params": [ - "db", - "scenario" - ], - "returnType": "{ count: number; matches: Record }", - "exported": false, - "lineCount": 13 - }, - { - "name": "runCondition", - "params": [ - "snapshotPath", - "condition", - "scenario", - "workDir", - "seed" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 62 - }, - { - "name": "judgeRun", - "params": [ - "judge", - "scenario", - "goldOutput", - "candidateOutput" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 13 - }, - { - "name": "mean", - "params": [ - "xs" - ], - "returnType": "number", - "exported": false, - "lineCount": 4 - }, - { - "name": "conditionMean", - "params": [ - "runs" - ], - "returnType": "number", - "exported": false, - "lineCount": 5 - }, - { - "name": "renderMarkdown", - "params": [ - "result" - ], - "returnType": "string", - "exported": false, - "lineCount": 193 - }, - { - "name": "main", - "params": [], - "returnType": "Promise", - "exported": false, - "lineCount": 146 - } - ], - "classes": [ - { - "name": "StubEmbedder", - "methods": [ - "embed", - "embedBatch", - "getDimension" - ], - "properties": [ - "dim" - ], - "exported": false, - "lineCount": 10 - } - ], - "imports": [ - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "VaultStore", - "Embedder" - ] - }, - { - "source": "../../src/orchestrator.js", - "specifiers": [ - "Orchestrator" - ] - }, - { - "source": "../../src/model-tier.js", - "specifiers": [ - "ModelTier" - ] - }, - { - "source": "../../src/task-shape.js", - "specifiers": [ - "detectTaskShape" - ] - }, - { - "source": "../../src/judge.js", - "specifiers": [ - "LLMJudge", - "JudgeScore" - ] - }, - { - "source": "./scenarios-prompt-assembler.js", - "specifiers": [ - "SCENARIOS", - "PromptAssemblerScenario" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "node:url", - "specifiers": [ - "fileURLToPath" - ] - }, - { - "source": "node:child_process", - "specifiers": [ - "execFileSync" - ] - } - ], - "exports": [], - "totalLines": 746, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/eval/prompt-assembler-v5-eval.ts": { - "filePath": "packages/agent/tests/eval/prompt-assembler-v5-eval.ts", - "contentHash": "aea890257fc8e3a7584571287e85ef2b08148208a9fb7e62d87c81bcf9973b04", - "functions": [ - { - "name": "hydrateVault", - "params": [], - "returnType": "Record", - "exported": false, - "lineCount": 18 - }, - { - "name": "fetchWithTimeout", - "params": [ - "url", - "init", - "timeoutMs" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 9 - }, - { - "name": "callAnthropic", - "params": [ - "model", - "systemPrompt", - "userMsg", - "opts" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 34 - }, - { - "name": "callOpenRouter", - "params": [ - "model", - "systemPrompt", - "userMsg", - "opts" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 39 - }, - { - "name": "callOpenAICompat", - "params": [ - "baseUrl", - "apiKey", - "apiKeyName", - "model", - "systemPrompt", - "userMsg", - "opts", - "extraBody", - "shape" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 39 - }, - { - "name": "callGemini", - "params": [ - "model", - "systemPrompt", - "userMsg", - "opts" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 19 - }, - { - "name": "callGenerationModel", - "params": [ - "provider", - "model", - "systemPrompt", - "userMsg", - "opts" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 10 - }, - { - "name": "stripThinkingBlocks", - "params": [ - "raw" - ], - "returnType": "string", - "exported": false, - "lineCount": 9 - }, - { - "name": "withThinkingStripper", - "params": [ - "fn" - ], - "returnType": "(prompt: string) => Promise", - "exported": false, - "lineCount": 5 - }, - { - "name": "buildJudgeWirings", - "params": [], - "returnType": "JudgeWiring[]", - "exported": false, - "lineCount": 66 - }, - { - "name": "buildSlugProbeSpecs", - "params": [], - "returnType": "SlugProbeSpec[]", - "exported": false, - "lineCount": 62 - }, - { - "name": "runSlugProbe", - "params": [], - "returnType": "Promise", - "exported": false, - "lineCount": 17 - }, - { - "name": "setupCleanScenario", - "params": [ - "scenarioName" - ], - "returnType": "ScenarioSetup", - "exported": false, - "lineCount": 16 - }, - { - "name": "runPriming", - "params": [ - "orch", - "scenario" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 10 - }, - { - "name": "verifyMemory", - "params": [ - "db", - "scenario" - ], - "returnType": "{ count: number; matches: Record }", - "exported": false, - "lineCount": 10 - }, - { - "name": "runCondition", - "params": [ - "snapshotPath", - "condition", - "scenario", - "workDir", - "seed" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 62 - }, - { - "name": "judgeWithEnsemble", - "params": [ - "judges", - "scenario", - "goldOutput", - "candidateOutput" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 53 - }, - { - "name": "conditionMeanFromRuns", - "params": [ - "runs" - ], - "returnType": "number", - "exported": false, - "lineCount": 6 - }, - { - "name": "perSeedDisagreement", - "params": [ - "runs" - ], - "returnType": "number", - "exported": false, - "lineCount": 5 - }, - { - "name": "mean", - "params": [ - "xs" - ], - "returnType": "number", - "exported": false, - "lineCount": 4 - }, - { - "name": "renderMarkdown", - "params": [ - "result" - ], - "returnType": "string", - "exported": false, - "lineCount": 229 - }, - { - "name": "main", - "params": [], - "returnType": "Promise", - "exported": false, - "lineCount": 206 - } - ], - "classes": [ - { - "name": "StubEmbedder", - "methods": [ - "embed", - "embedBatch", - "getDimension" - ], - "properties": [ - "dim" - ], - "exported": false, - "lineCount": 6 - } - ], - "imports": [ - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "VaultStore", - "Embedder" - ] - }, - { - "source": "../../src/orchestrator.js", - "specifiers": [ - "Orchestrator" - ] - }, - { - "source": "../../src/model-tier.js", - "specifiers": [ - "ModelTier" - ] - }, - { - "source": "../../src/task-shape.js", - "specifiers": [ - "detectTaskShape" - ] - }, - { - "source": "../../src/judge.js", - "specifiers": [ - "LLMJudge", - "JudgeScore" - ] - }, - { - "source": "../../src/prompt-assembler.js", - "specifiers": [ - "ScaffoldStyle" - ] - }, - { - "source": "./scenarios-prompt-assembler-v5.js", - "specifiers": [ - "SCENARIOS_V5", - "PromptAssemblerScenario" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "node:url", - "specifiers": [ - "fileURLToPath" - ] - }, - { - "source": "node:child_process", - "specifiers": [ - "execFileSync" - ] - } - ], - "exports": [], - "totalLines": 1248, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/eval/scenarios-prompt-assembler-v5.ts": { - "filePath": "packages/agent/tests/eval/scenarios-prompt-assembler-v5.ts", - "contentHash": "3e216bbee839b4dbee51c75cb38fddf1338b6364bcd8a990d6bccccf588a0c62", - "functions": [], - "classes": [], - "imports": [ - { - "source": "./scenarios-prompt-assembler.js", - "specifiers": [ - "PromptAssemblerScenario" - ] - } - ], - "exports": [ - "ScenarioLanguage", - "PrimingTurn", - "PromptAssemblerScenario", - "SCENARIOS_V5" - ], - "totalLines": 242, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/eval/scenarios-prompt-assembler.ts": { - "filePath": "packages/agent/tests/eval/scenarios-prompt-assembler.ts", - "contentHash": "e1234f91408c60880bb998bd5bb1f3b63aa6ac1f1e7e86fa8245ffc2ec69ba75", - "functions": [], - "classes": [], - "imports": [ - { - "source": "../../src/task-shape.js", - "specifiers": [ - "TaskShape" - ] - } - ], - "exports": [ - "SCENARIOS" - ], - "totalLines": 226, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/eval/scenarios.ts": { - "filePath": "packages/agent/tests/eval/scenarios.ts", - "contentHash": "563579d81c3c63cb98a3afbb8493e0a3e346c9a68216a7810a1b724cceacb5b1", - "functions": [], - "classes": [], - "imports": [ - { - "source": "./framework.js", - "specifiers": [ - "EvalScenario" - ] - } - ], - "exports": [ - "SCENARIOS" - ], - "totalLines": 72, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/evolution-deploy.test.ts": { - "filePath": "packages/agent/tests/evolution-deploy.test.ts", - "contentHash": "736796a7ea1259013a69a5a5a2dfb9d5790cc4775660d9f4748985e37d5b7347", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "../src/evolution-deploy.js", - "specifiers": [ - "deployPersonaOverride", - "rollbackPersonaOverride", - "deployBehavioralSpecOverride", - "rollbackBehavioralSpecOverride", - "loadBehavioralSpecOverrides", - "applyBehavioralSpecOverrides", - "BEHAVIORAL_SPEC_SECTIONS", - "BehavioralSpecSection" - ] - }, - { - "source": "../src/personas.js", - "specifiers": [ - "getPersona", - "listPersonas", - "setPersonaDataDir" - ] - }, - { - "source": "../src/custom-personas.js", - "specifiers": [ - "loadCustomPersonas" - ] - } - ], - "exports": [], - "totalLines": 304, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/evolution-gates.test.ts": { - "filePath": "packages/agent/tests/evolution-gates.test.ts", - "contentHash": "9af2a658da4d9dabcc8563497f5d10c2b79bfb285c86ece535452a7f8067afa4", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/evolution-gates.js", - "specifiers": [ - "runGates", - "DEFAULT_SIZE_LIMITS", - "checkNonEmpty", - "checkSize", - "checkGrowth", - "checkBalancedFences", - "checkNoPlaceholders", - "checkNoObviousTodos", - "checkRegression" - ] - } - ], - "exports": [], - "totalLines": 246, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/evolution-llm-wiring.test.ts": { - "filePath": "packages/agent/tests/evolution-llm-wiring.test.ts", - "contentHash": "f0832e5a6952c3093ae16e5ad934b9bb3ad8679fc5a28bfaa3919aa0610640c5", - "functions": [ - { - "name": "makeMockLLM", - "params": [ - "handler" - ], - "returnType": "{\r\n llm: EvolutionLLM;\r\n calls: string[];\r\n}", - "exported": false, - "lineCount": 15 - }, - { - "name": "makeCandidate", - "params": [ - "overrides" - ], - "returnType": "GEPACandidate", - "exported": false, - "lineCount": 12 - }, - { - "name": "makeSchema", - "params": [ - "overrides" - ], - "returnType": "Schema", - "exported": false, - "lineCount": 11 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi" - ] - }, - { - "source": "../src/evolution-llm-wiring.js", - "specifiers": [ - "buildJudgeLLMCall", - "buildGEPAMutateFn", - "buildSchemaExecuteFn", - "makeRunningJudge", - "buildReflectiveMutationPrompt", - "buildSchemaFillPrompt", - "retryWithBackoff", - "wrapWithRetry", - "isRetryableEvolutionError", - "computeRetryDelay", - "DEFAULT_RETRY_OPTIONS", - "EvolutionLLM", - "RetryOptions", - "RetryInfo" - ] - }, - { - "source": "../src/index.js", - "specifiers": [ - "MutateArgs", - "GEPACandidate" - ] - }, - { - "source": "../src/evolve-schema.js", - "specifiers": [ - "Schema" - ] - }, - { - "source": "../src/judge.js", - "specifiers": [ - "JudgeInput" - ] - } - ], - "exports": [], - "totalLines": 607, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/evolution-orchestrator.test.ts": { - "filePath": "packages/agent/tests/evolution-orchestrator.test.ts", - "contentHash": "ed25ccd080e35ade5fa6816e2144f871b0c993993dd485b0b71e3ab47c01bf45", - "functions": [ - { - "name": "makeSchema", - "params": [ - "fields" - ], - "returnType": "Schema", - "exported": false, - "lineCount": 11 - }, - { - "name": "makeJudgeScore", - "params": [ - "overall", - "feedback" - ], - "returnType": "JudgeScore", - "exported": false, - "lineCount": 7 - }, - { - "name": "makeExec", - "params": [], - "returnType": "SchemaExecuteFn", - "exported": false, - "lineCount": 6 - }, - { - "name": "makeJudge", - "params": [], - "returnType": "{ score: (args: { input: string; expected: string; actual: string }) => Promise }", - "exported": false, - "lineCount": 9 - }, - { - "name": "mutateAppend", - "params": [ - "{ parent }" - ], - "exported": false, - "lineCount": 1 - }, - { - "name": "seedSuccessfulTraces", - "params": [ - "store", - "n", - "personaId" - ], - "exported": false, - "lineCount": 14 - }, - { - "name": "baseComposeOptions", - "params": [], - "exported": false, - "lineCount": 19 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach", - "vi" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "ExecutionTraceStore", - "EvolutionRunStore" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "ParsedExecutionTrace", - "EvolutionRun" - ] - }, - { - "source": "../src/evolution-orchestrator.js", - "specifiers": [ - "EvolutionOrchestrator", - "eligibleForEvolution", - "summarizeRuns" - ] - }, - { - "source": "../src/judge.js", - "specifiers": [ - "JudgeScore" - ] - }, - { - "source": "../src/evolve-schema.js", - "specifiers": [ - "Schema", - "SchemaExecuteFn" - ] - }, - { - "source": "../src/iterative-optimizer.js", - "specifiers": [ - "MutateFn" - ] - } - ], - "exports": [], - "totalLines": 448, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/evolve-schema.test.ts": { - "filePath": "packages/agent/tests/evolve-schema.test.ts", - "contentHash": "bda73e1a93c3290b02cbd36e3ca6bb8e1baaba819ffce8e63e71ef8ae833e73d", - "functions": [ - { - "name": "makeField", - "params": [ - "name", - "partial" - ], - "returnType": "SchemaField", - "exported": false, - "lineCount": 10 - }, - { - "name": "makeSchema", - "params": [ - "fields" - ], - "returnType": "Schema", - "exported": false, - "lineCount": 7 - }, - { - "name": "makeExamples", - "params": [ - "n" - ], - "returnType": "EvalExample[]", - "exported": false, - "lineCount": 7 - }, - { - "name": "makeJudgeScore", - "params": [ - "overall", - "feedback" - ], - "returnType": "JudgeScore", - "exported": false, - "lineCount": 7 - }, - { - "name": "makeCandidate", - "params": [ - "id", - "schema", - "score" - ], - "returnType": "SchemaCandidate", - "exported": false, - "lineCount": 12 - }, - { - "name": "makeFakeExecutor", - "params": [ - "bias" - ], - "returnType": "SchemaExecuteFn", - "exported": false, - "lineCount": 6 - }, - { - "name": "makeJudge", - "params": [ - "bias" - ], - "exported": false, - "lineCount": 17 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/evolve-schema.js", - "specifiers": [ - "EvolveSchema", - "addOutputField", - "removeField", - "editFieldDescription", - "changeFieldType", - "addConstraint", - "removeConstraint", - "reorderFields", - "replaceOutputFields", - "schemaComplexity", - "aggregateSchemaScores", - "paretoFrontSchema", - "pickSchemaWinner", - "generateStructureMutations", - "generateOrderMutations", - "generateRefinementMutations", - "pickSample", - "Schema", - "SchemaField", - "SchemaCandidate", - "SchemaCandidateScore", - "SchemaExecuteFn" - ] - }, - { - "source": "../src/eval-dataset.js", - "specifiers": [ - "EvalExample" - ] - }, - { - "source": "../src/judge.js", - "specifiers": [ - "JudgeScore" - ] - } - ], - "exports": [], - "totalLines": 546, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/feature-flags.test.ts": { - "filePath": "packages/agent/tests/feature-flags.test.ts", - "contentHash": "9592804790e7fdeae4321c0432583f42bdb53e5e2fa5eb812094bae4b66a5d27", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/feature-flags.js", - "specifiers": [ - "parsePhase5CanaryPct" - ] - } - ], - "exports": [], - "totalLines": 55, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/feedback-handler.test.ts": { - "filePath": "packages/agent/tests/feedback-handler.test.ts", - "contentHash": "c537a03090a6ff310124936652bc5840aab9947e46186f27908b9a998c41c37a", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "KnowledgeGraph" - ] - }, - { - "source": "../src/feedback-handler.js", - "specifiers": [ - "FeedbackHandler" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - } - ], - "exports": [], - "totalLines": 76, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/git-tools.test.ts": { - "filePath": "packages/agent/tests/git-tools.test.ts", - "contentHash": "5cd747860136f915dcb67cffcda5a2ca4271ddbaf916d0f96ecca771f8f050ff", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:child_process", - "specifiers": [ - "execFileSync" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "../src/tools.js", - "specifiers": [ - "ToolDefinition" - ] - }, - { - "source": "../src/git-tools.js", - "specifiers": [ - "createGitTools" - ] - } - ], - "exports": [], - "totalLines": 204, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/governance-enforcement.test.ts": { - "filePath": "packages/agent/tests/governance-enforcement.test.ts", - "contentHash": "7aead1d06c99cda756b7abefd4dc53f188c10f8e7c43192ed52f5382b2cf7c48", - "functions": [ - { - "name": "mockFetch", - "params": [ - "responses" - ], - "exported": false, - "lineCount": 30 - }, - { - "name": "makeConfig", - "params": [ - "overrides" - ], - "returnType": "AgentLoopConfig", - "exported": false, - "lineCount": 11 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi" - ] - }, - { - "source": "../src/agent-loop.js", - "specifiers": [ - "runAgentLoop", - "AgentLoopConfig" - ] - }, - { - "source": "../src/tools.js", - "specifiers": [ - "ToolDefinition" - ] - } - ], - "exports": [], - "totalLines": 186, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/grounding-check.test.ts": { - "filePath": "packages/agent/tests/grounding-check.test.ts", - "contentHash": "15a639d05877ed143da2c62aef7ad50a47c83473075f8975b8f51df778a27c8e", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/grounding-check.js", - "specifiers": [ - "extractClaimedSpecifics", - "checkGrounding" - ] - } - ], - "exports": [], - "totalLines": 66, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/harness-trace-bridge.test.ts": { - "filePath": "packages/agent/tests/harness-trace-bridge.test.ts", - "contentHash": "fa31e260c383f361c1ae94f648ae48f4dabbcd578f9ee51e7f73a7d0d588a561", - "functions": [ - { - "name": "makeRecorder", - "params": [], - "returnType": "{ recorder: TraceRecorder; store: ExecutionTraceStore; db: MindDB }", - "exported": false, - "lineCount": 6 - }, - { - "name": "makeBasicOutput", - "params": [ - "overrides" - ], - "returnType": "PhaseOutput", - "exported": false, - "lineCount": 13 - }, - { - "name": "makeCompleteEvent", - "params": [ - "overrides" - ], - "returnType": "HarnessPhaseCompleteEvent", - "exported": false, - "lineCount": 13 - }, - { - "name": "makeFailEvent", - "params": [ - "overrides" - ], - "returnType": "HarnessPhaseFailEvent", - "exported": false, - "lineCount": 15 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:events", - "specifiers": [ - "EventEmitter" - ] - }, - { - "source": "../src/workflow-harness.js", - "specifiers": [ - "advancePhase", - "createHarnessRun", - "HarnessPhaseCompleteEvent", - "HarnessPhaseFailEvent", - "PhaseOutput", - "WorkflowHarness" - ] - }, - { - "source": "../src/harness-trace-bridge.js", - "specifiers": [ - "HarnessTraceBridge" - ] - }, - { - "source": "../src/trace-recorder.js", - "specifiers": [ - "TraceRecorder" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "ExecutionTraceStore" - ] - } - ], - "exports": [], - "totalLines": 337, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/hook-loader.test.ts": { - "filePath": "packages/agent/tests/hook-loader.test.ts", - "contentHash": "932597d8325418c0c660a3e958061daac429e262b39235c2ff6075b2aaca2b1a", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "../src/hooks.js", - "specifiers": [ - "HookRegistry" - ] - }, - { - "source": "../src/hook-loader.js", - "specifiers": [ - "loadHooksFromConfig" - ] - } - ], - "exports": [], - "totalLines": 113, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/hooks-expansion.test.ts": { - "filePath": "packages/agent/tests/hooks-expansion.test.ts", - "contentHash": "9f67c675cf21079594d4bdc72f46b693c128b7712f48f6649fbaf0afaa630969", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach" - ] - }, - { - "source": "../src/hooks.js", - "specifiers": [ - "HookRegistry", - "HookContext", - "HookEvent" - ] - } - ], - "exports": [], - "totalLines": 211, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/hooks-integration.test.ts": { - "filePath": "packages/agent/tests/hooks-integration.test.ts", - "contentHash": "6266305892d18b8c998d94ba20740994101d6b629ed55714bc345d3f634d9620", - "functions": [ - { - "name": "mockFetch", - "params": [ - "responses" - ], - "exported": false, - "lineCount": 30 - }, - { - "name": "makeConfig", - "params": [ - "overrides" - ], - "returnType": "AgentLoopConfig", - "exported": false, - "lineCount": 11 - }, - { - "name": "makeEchoTool", - "params": [], - "returnType": "ToolDefinition", - "exported": false, - "lineCount": 12 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi" - ] - }, - { - "source": "../src/agent-loop.js", - "specifiers": [ - "runAgentLoop", - "AgentLoopConfig" - ] - }, - { - "source": "../src/tools.js", - "specifiers": [ - "ToolDefinition" - ] - }, - { - "source": "../src/hooks.js", - "specifiers": [ - "HookRegistry" - ] - } - ], - "exports": [], - "totalLines": 148, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/hooks.test.ts": { - "filePath": "packages/agent/tests/hooks.test.ts", - "contentHash": "57eb2205284df19af17476e18ffca454c742f7657b5aff25f23c4ba12bd16553", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi" - ] - }, - { - "source": "../src/hooks.js", - "specifiers": [ - "HookRegistry", - "HookEvent", - "HookContext" - ] - } - ], - "exports": [], - "totalLines": 89, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/improvement-detector.test.ts": { - "filePath": "packages/agent/tests/improvement-detector.test.ts", - "contentHash": "c2a9d6c2c54e1dcf22b79ad0dc8e83f2bc8530f7ee751a0e042b9b43e8a1322f", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "ImprovementSignalStore" - ] - }, - { - "source": "../src/improvement-detector.js", - "specifiers": [ - "recordCapabilityGap", - "analyzeAndRecordCorrection", - "recordWorkflowPattern", - "buildAwarenessSummary", - "formatAwarenessPrompt", - "markSummarySurfaced" - ] - } - ], - "exports": [], - "totalLines": 227, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/improvement-wiring.test.ts": { - "filePath": "packages/agent/tests/improvement-wiring.test.ts", - "contentHash": "12d42d7d4fa257b23331b15e14ec9138776b5296acdb4c53a4bd4f9da65aed71", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/improvement-wiring.js", - "specifiers": [ - "processInteractionForImprovement" - ] - } - ], - "exports": [], - "totalLines": 154, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/integration-local.test.ts": { - "filePath": "packages/agent/tests/integration-local.test.ts", - "contentHash": "3f46951dc288d5f533aec74fc5c8b6a65504454dce68ff5fc333961d7e860bc0", - "functions": [ - { - "name": "mockFetch", - "params": [ - "responses" - ], - "exported": false, - "lineCount": 30 - }, - { - "name": "makeConfig", - "params": [ - "overrides" - ], - "returnType": "AgentLoopConfig", - "exported": false, - "lineCount": 11 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "../src/agent-loop.js", - "specifiers": [ - "runAgentLoop", - "AgentLoopConfig" - ] - }, - { - "source": "../src/system-tools.js", - "specifiers": [ - "createSystemTools" - ] - }, - { - "source": "../src/workspace.js", - "specifiers": [ - "Workspace" - ] - } - ], - "exports": [], - "totalLines": 345, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/integration-m3b.test.ts": { - "filePath": "packages/agent/tests/integration-m3b.test.ts", - "contentHash": "229f35f4ff5d156ea5781f74bef9378792825f7003c1a47c90c2f15c7eb431d4", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "FrameStore", - "SessionStore", - "KnowledgeGraph", - "HybridSearch" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "ensureIdentity", - "CognifyPipeline", - "LoopGuard", - "scanForInjection", - "CostTracker", - "checkResponseQuality", - "Orchestrator" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - } - ], - "exports": [], - "totalLines": 117, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/integration-m3c.test.ts": { - "filePath": "packages/agent/tests/integration-m3c.test.ts", - "contentHash": "94cf76054c2d5df9a88c6793ee04746c9176edaf0c8009d119cb028853d5c5e4", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "HookRegistry", - "Plan", - "PermissionManager", - "READONLY_TOOLS", - "filterToolsForContext", - "needsConfirmation", - "ConfirmationGate", - "MemoryLinker" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "Ontology", - "validateEntity" - ] - } - ], - "exports": [], - "totalLines": 113, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/integration/phase6-capability-truth.test.ts": { - "filePath": "packages/agent/tests/integration/phase6-capability-truth.test.ts", - "contentHash": "673af68dacced8ac08c84577a80853dcfebc0c14f2bb57ffc3698991530d165e", - "functions": [ - { - "name": "makeDeps", - "params": [ - "overrides" - ], - "returnType": "CapabilityRouterDeps", - "exported": false, - "lineCount": 10 - }, - { - "name": "makeTestPlugin", - "params": [ - "name", - "tools" - ], - "returnType": "PluginManifestWithTools", - "exported": false, - "lineCount": 12 - }, - { - "name": "makeTmpDir", - "params": [], - "returnType": "string", - "exported": false, - "lineCount": 5 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "../../src/capability-router.js", - "specifiers": [ - "CapabilityRouter", - "CapabilityRouterDeps" - ] - }, - { - "source": "@waggle/sdk", - "specifiers": [ - "listStarterSkills", - "installStarterSkills", - "PluginRuntimeManager", - "PluginManifestWithTools" - ] - }, - { - "source": "../../src/commands/command-registry.js", - "specifiers": [ - "CommandRegistry" - ] - }, - { - "source": "../../src/commands/workflow-commands.js", - "specifiers": [ - "registerWorkflowCommands" - ] - }, - { - "source": "../../src/hooks.js", - "specifiers": [ - "HookRegistry", - "HookEvent" - ] - }, - { - "source": "../../src/workflow-templates.js", - "specifiers": [ - "listWorkflowTemplates", - "WORKFLOW_TEMPLATES" - ] - } - ], - "exports": [], - "totalLines": 452, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/injection-scanner.test.ts": { - "filePath": "packages/agent/tests/injection-scanner.test.ts", - "contentHash": "33e885eb40281e04fd95d8157a2e48a7bab18c34d41148be6e4b725f9f04fadf", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/injection-scanner.js", - "specifiers": [ - "scanForInjection" - ] - } - ], - "exports": [], - "totalLines": 45, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/iteration-budget.test.ts": { - "filePath": "packages/agent/tests/iteration-budget.test.ts", - "contentHash": "6da7aa51b42a0bc79ec9c8095e6038e1c4bc53ad594c8dbb301430302891a42f", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/iteration-budget.js", - "specifiers": [ - "IterationBudget" - ] - } - ], - "exports": [], - "totalLines": 71, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/iterative-optimizer.test.ts": { - "filePath": "packages/agent/tests/iterative-optimizer.test.ts", - "contentHash": "de5a9ba5f3548cc0915a56305adfdc7ffa0e873c99ceff4ae80aa46ec2d2e4e6", - "functions": [ - { - "name": "runGEPA", - "params": [ - "options" - ], - "exported": false, - "lineCount": 4 - }, - { - "name": "makeExamples", - "params": [ - "n" - ], - "returnType": "EvalExample[]", - "exported": false, - "lineCount": 7 - }, - { - "name": "makeScore", - "params": [ - "overall", - "extra" - ], - "returnType": "JudgeScore", - "exported": false, - "lineCount": 12 - }, - { - "name": "makeCandidate", - "params": [ - "id", - "score" - ], - "returnType": "Candidate", - "exported": false, - "lineCount": 11 - }, - { - "name": "makeCandidateScore", - "params": [ - "overall", - "dims" - ], - "returnType": "CandidateScore", - "exported": false, - "lineCount": 14 - }, - { - "name": "makeFakeJudge", - "params": [ - "bias" - ], - "exported": false, - "lineCount": 20 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi" - ] - }, - { - "source": "../src/iterative-optimizer.js", - "specifiers": [ - "IterativeGEPA", - "paretoFront", - "scoreCandidate", - "aggregateScores", - "pickWinner", - "pickSample", - "Candidate", - "CandidateScore", - "IterativeGEPAOptions", - "MutateFn" - ] - }, - { - "source": "../src/eval-dataset.js", - "specifiers": [ - "EvalExample" - ] - }, - { - "source": "../src/judge.js", - "specifiers": [ - "JudgeScore" - ] - } - ], - "exports": [], - "totalLines": 656, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/judge.test.ts": { - "filePath": "packages/agent/tests/judge.test.ts", - "contentHash": "fe2291b0a6b85b2a7fb18d2f4ceaa98018bf6fa40ff70f455a42e321cbf867f4", - "functions": [ - { - "name": "makeLLM", - "params": [ - "responses" - ], - "returnType": "JudgeLLMCall", - "exported": false, - "lineCount": 11 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/judge.js", - "specifiers": [ - "LLMJudge", - "DEFAULT_WEIGHTS", - "DEFAULT_RUBRIC", - "buildJudgePrompt", - "parseJudgeResponse", - "computeLengthPenalty", - "JudgeLLMCall", - "JudgeInput" - ] - } - ], - "exports": [], - "totalLines": 258, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/kvark-pipeline-smoke.test.ts": { - "filePath": "packages/agent/tests/kvark-pipeline-smoke.test.ts", - "contentHash": "db123a0e54576b34a31144a3559f3fa0a6b29f0df6676d6616bdac96dbee7567", - "functions": [ - { - "name": "memStub", - "params": [ - "r" - ], - "returnType": "MemorySearchLike", - "exported": false, - "lineCount": 4 - }, - { - "name": "kStub", - "params": [ - "r" - ], - "returnType": "KvarkClientLike", - "exported": false, - "lineCount": 4 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi" - ] - }, - { - "source": "../src/combined-retrieval.js", - "specifiers": [ - "CombinedRetrieval", - "detectConflict", - "MemorySearchLike", - "MemorySearchResultLike" - ] - }, - { - "source": "../src/tools.js", - "specifiers": [ - "formatCombinedResult" - ] - }, - { - "source": "../src/kvark-tools.js", - "specifiers": [ - "createKvarkTools", - "KvarkClientLike", - "KvarkSearchResponseLike" - ] - } - ], - "exports": [], - "totalLines": 139, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/kvark-tools.test.ts": { - "filePath": "packages/agent/tests/kvark-tools.test.ts", - "contentHash": "c1e70f2fa770ddab53224e4922d668d507af4dca6c9b766694cb30d0b0c93877", - "functions": [ - { - "name": "mockClient", - "params": [ - "overrides" - ], - "returnType": "KvarkClientLike", - "exported": false, - "lineCount": 8 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi" - ] - }, - { - "source": "../src/kvark-tools.js", - "specifiers": [ - "createKvarkTools", - "parseSearchResults", - "KvarkClientLike", - "KvarkSearchResponseLike", - "KvarkAskResponseLike" - ] - } - ], - "exports": [], - "totalLines": 432, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/long-task-checkpoint.test.ts": { - "filePath": "packages/agent/tests/long-task-checkpoint.test.ts", - "contentHash": "ea3e23f434b79e8bc5f0bbfa619e9af07d6fc4ea26c7464101e6e6fee49c7b3e", - "functions": [ - { - "name": "buildState", - "params": [ - "overrides" - ], - "returnType": "CheckpointStepState", - "exported": false, - "lineCount": 16 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:fs/promises", - "specifiers": [ - "* as fsp" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "node:crypto", - "specifiers": [ - "* as crypto" - ] - }, - { - "source": "../src/long-task/checkpoint.js", - "specifiers": [ - "CheckpointStore", - "CHECKPOINT_SCHEMA_VERSION", - "makeInitialState", - "nextStateFrom", - "CheckpointStepState", - "Decision" - ] - } - ], - "exports": [], - "totalLines": 522, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/long-task-context-manager.test.ts": { - "filePath": "packages/agent/tests/long-task-context-manager.test.ts", - "contentHash": "a9f3852a591d398240b0753cdf425b3cac9804b5b9aba47fdcdaf316113951b4", - "functions": [ - { - "name": "buildState", - "params": [ - "overrides" - ], - "returnType": "CheckpointStepState", - "exported": false, - "lineCount": 16 - }, - { - "name": "makeFakeLlmCall", - "params": [ - "opts" - ], - "returnType": "{\r\n fn: LlmCallFn;\r\n calls: Array<{ model: string; messages: Array<{ role: string; content: string }> }>;\r\n}", - "exported": false, - "lineCount": 18 - }, - { - "name": "makeMgr", - "params": [ - "overrides" - ], - "returnType": "{\r\n mgr: ContextManager;\r\n events: CompressionEvent[];\r\n}", - "exported": false, - "lineCount": 14 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi" - ] - }, - { - "source": "../src/long-task/checkpoint.js", - "specifiers": [ - "CHECKPOINT_SCHEMA_VERSION", - "CheckpointStepState", - "Decision" - ] - }, - { - "source": "../src/long-task/context-manager.js", - "specifiers": [ - "ContextManager", - "ContextManagerOptions", - "CompressionEvent", - "ContextCompressionEvent" - ] - }, - { - "source": "../src/retrieval-agent-loop.js", - "specifiers": [ - "LlmCallFn", - "LlmCallResult" - ] - } - ], - "exports": [], - "totalLines": 684, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/long-task-failure-classify.test.ts": { - "filePath": "packages/agent/tests/long-task-failure-classify.test.ts", - "contentHash": "8cc7ac5673c95e22d1c4864ac8d34b5aacc42fa134aa0d5d1acbb1cb2fcd6427", - "functions": [ - { - "name": "inp", - "params": [ - "overrides" - ], - "returnType": "ClassifierInput", - "exported": false, - "lineCount": 3 - }, - { - "name": "makeJudge", - "params": [ - "verdict" - ], - "returnType": "LlmCallFn", - "exported": false, - "lineCount": 9 - }, - { - "name": "makeMalformedJudge", - "params": [], - "returnType": "LlmCallFn", - "exported": false, - "lineCount": 9 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/long-task/failure-classify.js", - "specifiers": [ - "classifyFailure", - "classifyFailureBatch", - "failureDistribution", - "FAILURE_CATEGORIES", - "ClassifierInput", - "FailureCategory" - ] - }, - { - "source": "../src/retrieval-agent-loop.js", - "specifiers": [ - "LlmCallFn", - "LlmCallResult" - ] - } - ], - "exports": [], - "totalLines": 642, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/long-task-loop-integration.test.ts": { - "filePath": "packages/agent/tests/long-task-loop-integration.test.ts", - "contentHash": "7ec711a81567d929f1e1cf984de54b2501d261dda46f02a7eb49d0537c9cd537", - "functions": [ - { - "name": "makeStore", - "params": [ - "taskId" - ], - "returnType": "CheckpointStore", - "exported": false, - "lineCount": 3 - }, - { - "name": "makeScriptedLlm", - "params": [ - "replies" - ], - "returnType": "{ fn: LlmCallFn; calls: number; resetIdx(): void }", - "exported": false, - "lineCount": 27 - }, - { - "name": "fakeSearch", - "params": [ - "{ query }" - ], - "exported": false, - "lineCount": 4 - }, - { - "name": "baseConfig", - "params": [ - "overrides" - ], - "returnType": "MultiStepAgentRunConfig", - "exported": false, - "lineCount": 11 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:fs/promises", - "specifiers": [ - "* as fsp" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "node:crypto", - "specifiers": [ - "* as crypto" - ] - }, - { - "source": "../src/retrieval-agent-loop.js", - "specifiers": [ - "runRetrievalAgentLoop", - "runRetrievalAgentLoopWithRecovery", - "LlmCallFn", - "LlmCallResult", - "RetrievalSearchFn", - "MultiStepAgentRunConfig", - "AgentRunProgressEvent" - ] - }, - { - "source": "../src/long-task/checkpoint.js", - "specifiers": [ - "CheckpointStore" - ] - }, - { - "source": "../src/long-task/context-manager.js", - "specifiers": [ - "ContextManager" - ] - }, - { - "source": "../src/long-task/messages-compressor.js", - "specifiers": [ - "MessagesCompressionEvent" - ] - } - ], - "exports": [], - "totalLines": 851, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/long-task-messages-compressor.test.ts": { - "filePath": "packages/agent/tests/long-task-messages-compressor.test.ts", - "contentHash": "e913d88572b8389b19aa9dca6840c189600836ece7e57206b46808155b4013a6", - "functions": [ - { - "name": "makeMessages", - "params": [ - "count", - "fillerChars" - ], - "returnType": "Array<{ role: string; content: string }>", - "exported": false, - "lineCount": 11 - }, - { - "name": "makeFakeLlm", - "params": [ - "content", - "costUsd" - ], - "returnType": "LlmCallFn", - "exported": false, - "lineCount": 9 - }, - { - "name": "fakeSearch", - "params": [ - "{ query }" - ], - "exported": false, - "lineCount": 4 - }, - { - "name": "makeScriptedLlm", - "params": [ - "replies" - ], - "returnType": "LlmCallFn", - "exported": false, - "lineCount": 17 - }, - { - "name": "baseConfig", - "params": [ - "overrides" - ], - "returnType": "MultiStepAgentRunConfig", - "exported": false, - "lineCount": 11 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:fs/promises", - "specifiers": [ - "* as fsp" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "../src/long-task/messages-compressor.js", - "specifiers": [ - "maybeCompressMessages", - "shouldCompressMessages", - "MessagesContextManagerConfig", - "MessagesCompressionEvent" - ] - }, - { - "source": "../src/retrieval-agent-loop.js", - "specifiers": [ - "runRetrievalAgentLoop", - "LlmCallFn", - "LlmCallResult", - "RetrievalSearchFn", - "MultiStepAgentRunConfig", - "AgentRunProgressEvent" - ] - } - ], - "exports": [], - "totalLines": 508, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/long-task-recovery.test.ts": { - "filePath": "packages/agent/tests/long-task-recovery.test.ts", - "contentHash": "827ac0cfb3c01a5ce1ff9069a8b79ffe1a1443ed98e4b7dcf2ef95d0bd83426a", - "functions": [ - { - "name": "makeStore", - "params": [ - "taskId" - ], - "returnType": "CheckpointStore", - "exported": false, - "lineCount": 3 - }, - { - "name": "makeRunner", - "params": [ - "overrides" - ], - "returnType": "RunnerHandle", - "exported": false, - "lineCount": 17 - }, - { - "name": "makeStepFn", - "params": [ - "impl" - ], - "returnType": "{ fn: StepFn; calls: number; inputs: Parameters[0][] }", - "exported": false, - "lineCount": 14 - }, - { - "name": "okResult", - "params": [ - "output", - "extras" - ], - "returnType": "StepFnResult", - "exported": false, - "lineCount": 4 - }, - { - "name": "errMessage", - "params": [ - "err" - ], - "returnType": "string", - "exported": false, - "lineCount": 4 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach", - "vi" - ] - }, - { - "source": "node:fs/promises", - "specifiers": [ - "* as fsp" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "node:crypto", - "specifiers": [ - "* as crypto" - ] - }, - { - "source": "../src/long-task/checkpoint.js", - "specifiers": [ - "CheckpointStore", - "CHECKPOINT_SCHEMA_VERSION", - "CheckpointStepState", - "Decision" - ] - }, - { - "source": "../src/long-task/recovery.js", - "specifiers": [ - "RecoveryRunner", - "RecoveryEvent", - "StepFn", - "StepFnResult", - "RecoveryRunnerOptions" - ] - } - ], - "exports": [], - "totalLines": 821, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/long-task-report.test.ts": { - "filePath": "packages/agent/tests/long-task-report.test.ts", - "contentHash": "d0ad31ac980823ad01f477f3168939b4a60cccaf8392ff737d4677ce3e30f7db", - "functions": [ - { - "name": "rec", - "params": [ - "overrides" - ], - "returnType": "AgentPredictionRecord", - "exported": false, - "lineCount": 9 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:fs/promises", - "specifiers": [ - "* as fsp" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "../src/long-task/report.js", - "specifiers": [ - "generateReport", - "writeReportToDisk", - "fromPilotRecord", - "AgentPredictionRecord", - "ReportOptions", - "PilotJsonlRecord" - ] - } - ], - "exports": [], - "totalLines": 507, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/loop-guard-window.test.ts": { - "filePath": "packages/agent/tests/loop-guard-window.test.ts", - "contentHash": "96bf6be9e46bb66a3e9ed01d943b2d306fc99103cd8ab6cfde0005096b334b9f", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/loop-guard.js", - "specifiers": [ - "LoopGuard" - ] - } - ], - "exports": [], - "totalLines": 124, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/loop-guard.test.ts": { - "filePath": "packages/agent/tests/loop-guard.test.ts", - "contentHash": "72c04f6b24fe7cb068e6e4eac0a2e38cdd214d4acf5bd8b88da17a3762cead01", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/loop-guard.js", - "specifiers": [ - "LoopGuard" - ] - } - ], - "exports": [], - "totalLines": 39, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/lsp-tools.test.ts": { - "filePath": "packages/agent/tests/lsp-tools.test.ts", - "contentHash": "309e470c651a58e1ce76fbc61bfff53d4744d6c946a03d5e09de800c6e67e100", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach" - ] - }, - { - "source": "../src/lsp-tools.js", - "specifiers": [ - "createLspTools", - "_resetLspState" - ] - }, - { - "source": "../src/tools.js", - "specifiers": [ - "ToolDefinition" - ] - } - ], - "exports": [], - "totalLines": 129, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/marketplace-commands.test.ts": { - "filePath": "packages/agent/tests/marketplace-commands.test.ts", - "contentHash": "f40a22602349242c75713804dc9990534daf6945a071d4185b23c0af3bd2d195", - "functions": [ - { - "name": "mockContext", - "params": [], - "returnType": "CommandContext", - "exported": false, - "lineCount": 6 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "../src/commands/command-registry.js", - "specifiers": [ - "CommandRegistry", - "CommandContext" - ] - }, - { - "source": "../src/commands/marketplace-commands.js", - "specifiers": [ - "registerMarketplaceCommands" - ] - } - ], - "exports": [], - "totalLines": 304, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/mcp-runtime.test.ts": { - "filePath": "packages/agent/tests/mcp-runtime.test.ts", - "contentHash": "cb3d44df32db5b3afbf0f894d5802ffd1a695ac40e04388b0f96dd7a0ed7a0e7", - "functions": [ - { - "name": "createMockMcpProcess", - "params": [], - "exported": false, - "lineCount": 73 - }, - { - "name": "createMockSpawn", - "params": [], - "returnType": "{ spawn: SpawnFn; lastProcess: () => ReturnType }", - "exported": false, - "lineCount": 8 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach" - ] - }, - { - "source": "stream", - "specifiers": [ - "PassThrough" - ] - }, - { - "source": "../src/mcp/mcp-runtime.js", - "specifiers": [ - "McpServerInstance", - "McpRuntime", - "McpServerConfig", - "McpProcess", - "SpawnFn" - ] - } - ], - "exports": [], - "totalLines": 456, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/memory-linker.test.ts": { - "filePath": "packages/agent/tests/memory-linker.test.ts", - "contentHash": "6b662bceb050c19f1476a72cc61e96303b398356818471f5550ac55dfee7bba7", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "HybridSearch", - "MemoryFrame" - ] - }, - { - "source": "../src/memory-linker.js", - "specifiers": [ - "MemoryLinker" - ] - } - ], - "exports": [], - "totalLines": 60, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/memory-sign-gate.test.ts": { - "filePath": "packages/agent/tests/memory-sign-gate.test.ts", - "contentHash": "663205d36f9e02a4dd640e263ce619fa4be72ea9e6127bb95565a5575ff55f7a", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/memory-sign-gate.js", - "specifiers": [ - "isSelfIncapacityAssertion" - ] - } - ], - "exports": [], - "totalLines": 53, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/model-family.test.ts": { - "filePath": "packages/agent/tests/model-family.test.ts", - "contentHash": "51b6775d8c409fd5b8f1517c4a3ba9c2d3b4ca024192ca3c9bc14571f3127406", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/model-family.js", - "specifiers": [ - "familyForModel" - ] - } - ], - "exports": [], - "totalLines": 166, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/model-router.test.ts": { - "filePath": "packages/agent/tests/model-router.test.ts", - "contentHash": "a52b7ca994969b71956a00c816c6999f1a08d19f266ab410473a64dc6f884aa5", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/model-router.js", - "specifiers": [ - "ModelRouter", - "createLiteLLMRouter", - "ProviderConfig" - ] - } - ], - "exports": [], - "totalLines": 96, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/model-tier.test.ts": { - "filePath": "packages/agent/tests/model-tier.test.ts", - "contentHash": "3c2a10ed534718a90bcaf727f7e8ebe38b97f5088e9f6b515b6e301b3b587017", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/model-tier.js", - "specifiers": [ - "tierForModel" - ] - } - ], - "exports": [], - "totalLines": 65, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/multi-edit.test.ts": { - "filePath": "packages/agent/tests/multi-edit.test.ts", - "contentHash": "46d30cec7fe8d3b064d52818cc6568d97ba0cff6a063b7ebb8c298a5d252c26f", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "../src/system-tools.js", - "specifiers": [ - "createSystemTools" - ] - }, - { - "source": "../src/tools.js", - "specifiers": [ - "ToolDefinition" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - } - ], - "exports": [], - "totalLines": 196, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/optimization-capture.test.ts": { - "filePath": "packages/agent/tests/optimization-capture.test.ts", - "contentHash": "974be212572956edd373952fe85dd9de4897792d3d481c8f961bf9225cf77d50", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "OptimizationLogStore" - ] - }, - { - "source": "../src/optimization-capture.js", - "specifiers": [ - "captureInteraction", - "getRecentLogs", - "getWorkspaceLogs", - "isWithinBudget" - ] - }, - { - "source": "../src/agent-loop.js", - "specifiers": [ - "AgentResponse" - ] - } - ], - "exports": [], - "totalLines": 281, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/orchestrator-context-frames.test.ts": { - "filePath": "packages/agent/tests/orchestrator-context-frames.test.ts", - "contentHash": "3f6dff9004eca01c0a7f9b2588b1437c81d765fb22720feef2989fe5628e4489", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../src/orchestrator.js", - "specifiers": [ - "Orchestrator", - "ContextFrames" - ] - }, - { - "source": "../../hive-mind-core/tests/mind/helpers/mock-embedder.js", - "specifiers": [ - "MockEmbedder" - ] - } - ], - "exports": [], - "totalLines": 139, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/orchestrator-recall-hardening.test.ts": { - "filePath": "packages/agent/tests/orchestrator-recall-hardening.test.ts", - "contentHash": "8b6074df8bc2ab495862eebb57238129d95d73d1ca4fcdd5e246b88021ea4cb3", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../src/orchestrator.js", - "specifiers": [ - "Orchestrator" - ] - }, - { - "source": "../../hive-mind-core/tests/mind/helpers/mock-embedder.js", - "specifiers": [ - "MockEmbedder" - ] - } - ], - "exports": [], - "totalLines": 272, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/orchestrator.test.ts": { - "filePath": "packages/agent/tests/orchestrator.test.ts", - "contentHash": "13c639838b1fde1a8144eb185c9fbb8fd80cbaf3054cff3f635693747a338708", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../src/orchestrator.js", - "specifiers": [ - "Orchestrator" - ] - }, - { - "source": "../../hive-mind-core/tests/mind/helpers/mock-embedder.js", - "specifiers": [ - "MockEmbedder" - ] - } - ], - "exports": [], - "totalLines": 245, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/output-normalize.test.ts": { - "filePath": "packages/agent/tests/output-normalize.test.ts", - "contentHash": "f0bcc83ef02b80026f4f1a10f8899cc6a507232211569973b4f38c12b0951db5", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/output-normalize.js", - "specifiers": [ - "normalize", - "normalizeWithPreset", - "PRESETS", - "NormalizationConfig" - ] - } - ], - "exports": [], - "totalLines": 351, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/performance/perf-baselines.test.ts": { - "filePath": "packages/agent/tests/performance/perf-baselines.test.ts", - "contentHash": "1e97f2af3e76bcef7f78a528ebf36d3b285cc86b9f43cec0478bfaf52766eb54", - "functions": [ - { - "name": "createMockVault", - "params": [ - "connectedIds" - ], - "returnType": "VaultStore", - "exported": false, - "lineCount": 12 - }, - { - "name": "timeMs", - "params": [ - "fn" - ], - "returnType": "number", - "exported": false, - "lineCount": 5 - }, - { - "name": "timeMsAsync", - "params": [ - "fn" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 5 - } - ], - "classes": [ - { - "name": "PerfConnector", - "methods": [ - "constructor", - "connect", - "healthCheck", - "execute" - ], - "properties": [ - "id", - "name", - "description", - "service", - "authType", - "substrate", - "actions" - ], - "exported": false, - "lineCount": 31 - } - ], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi" - ] - }, - { - "source": "../../src/connector-registry.js", - "specifiers": [ - "ConnectorRegistry" - ] - }, - { - "source": "../../src/connector-sdk.js", - "specifiers": [ - "BaseConnector", - "ConnectorAction", - "ConnectorResult" - ] - }, - { - "source": "../../src/capability-router.js", - "specifiers": [ - "CapabilityRouter" - ] - }, - { - "source": "../../src/personas.js", - "specifiers": [ - "composePersonaPrompt", - "PERSONAS", - "getPersona" - ] - }, - { - "source": "../../src/agent-message-bus.js", - "specifiers": [ - "AgentMessageBus" - ] - }, - { - "source": "../../src/confirmation.js", - "specifiers": [ - "needsConfirmation", - "getApprovalClass" - ] - }, - { - "source": "../../../server/src/local/workspace-sessions.js", - "specifiers": [ - "WorkspaceSessionManager" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "VaultStore" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "ConnectorHealth" - ] - } - ], - "exports": [], - "totalLines": 183, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/permissions.test.ts": { - "filePath": "packages/agent/tests/permissions.test.ts", - "contentHash": "394a4951d126344f42590ac82936f2dd86bcc2c58cd352c1b05800f71a9f941f", - "functions": [ - { - "name": "makeTool", - "params": [ - "name" - ], - "returnType": "ToolDefinition", - "exported": false, - "lineCount": 8 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/permissions.js", - "specifiers": [ - "PermissionManager", - "READONLY_TOOLS" - ] - }, - { - "source": "../src/tools.js", - "specifiers": [ - "ToolDefinition" - ] - } - ], - "exports": [], - "totalLines": 71, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/personas.test.ts": { - "filePath": "packages/agent/tests/personas.test.ts", - "contentHash": "817cf1982c44ad8f1eed35705e991a9bdf470f47bda85a8e246b8f8f4fba9f40", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/personas.js", - "specifiers": [ - "PERSONAS", - "getPersona", - "listPersonas", - "composePersonaPrompt" - ] - } - ], - "exports": [], - "totalLines": 223, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/phase-5-canary-router.test.ts": { - "filePath": "packages/agent/tests/phase-5-canary-router.test.ts", - "contentHash": "410ecc3662f5bc46725664b60e91d5ddc036ec28ab5927a42ee56ab699d2a34c", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "afterEach", - "beforeEach", - "describe", - "expect", - "it" - ] - }, - { - "source": "../src/canary/phase-5-router.js", - "specifiers": [ - "hashRequestIdToBucket", - "routeRequestToVariant", - "listCanaryEligibleShapes", - "listCanaryVariants", - "BASE_TO_CANARY_VARIANT_MAP" - ] - }, - { - "source": "../src/prompt-shapes/index.js", - "specifiers": [ - "REGISTRY", - "registerShape" - ] - }, - { - "source": "../src/prompt-shapes/gepa-evolved/claude-gen1-v1.js", - "specifiers": [ - "claudeGen1V1Shape" - ] - }, - { - "source": "../src/prompt-shapes/gepa-evolved/qwen-thinking-gen1-v1.js", - "specifiers": [ - "qwenThinkingGen1V1Shape" - ] - } - ], - "exports": [], - "totalLines": 319, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/phase-5-monitoring.test.ts": { - "filePath": "packages/agent/tests/phase-5-monitoring.test.ts", - "contentHash": "e782c33a93c004e9d27a826e5490f367b4dcf70196e1af4735e929c5db95d257", - "functions": [ - { - "name": "makeInMemoryWriter", - "params": [], - "exported": false, - "lineCount": 7 - }, - { - "name": "makeCtx", - "params": [ - "now" - ], - "returnType": "{\r\n ctx: MonitoringContext;\r\n writer: ReturnType;\r\n}", - "exported": false, - "lineCount": 17 - }, - { - "name": "parseLastEntry", - "params": [ - "writer" - ], - "returnType": "MetricEntry", - "exported": false, - "lineCount": 5 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "afterEach", - "beforeEach", - "describe", - "expect", - "it", - "vi" - ] - }, - { - "source": "../src/canary/phase-5-monitoring.js", - "specifiers": [ - "emitPassIIRate", - "emitRetrievalEngagement", - "emitLatency", - "emitCost", - "emitError", - "emitAlert", - "checkSingleEventRollback", - "checkPassIIRateCollapse", - "checkErrorRateSpike", - "checkLoopExhaustedRate", - "computeMovingWindowMean", - "sanitizeVariantForFilename", - "ROLLBACK_THRESHOLDS", - "PROMOTION_THRESHOLDS", - "MetricEntry", - "AlertEntry", - "MonitoringContext" - ] - } - ], - "exports": [], - "totalLines": 405, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/phase4-hooks-cohort.test.ts": { - "filePath": "packages/agent/tests/phase4-hooks-cohort.test.ts", - "contentHash": "0a3a16d38528f47b4a786dafb081244a48d3efe72c662a470e37795216fd7441", - "functions": [ - { - "name": "hookPackageHasBin", - "params": [ - "id" - ], - "returnType": "boolean", - "exported": false, - "lineCount": 5 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "readFileSync" - ] - }, - { - "source": "node:url", - "specifiers": [ - "fileURLToPath" - ] - }, - { - "source": "node:path", - "specifiers": [ - "dirname", - "join" - ] - }, - { - "source": "../src/tool-launcher.js", - "specifiers": [ - "runHookCommand", - "HOOKS_COHORT", - "ToolLauncherDeps" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "SUPPORTED_TOOLS", - "LAUNCH_COHORT", - "ToolId" - ] - } - ], - "exports": [], - "totalLines": 142, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/phase4-retry-after-nan.test.ts": { - "filePath": "packages/agent/tests/phase4-retry-after-nan.test.ts", - "contentHash": "4e6e15fef77cf4fc49a1c2c9faeca3945d59db0fdac88777557d244fe42a3d94", - "functions": [ - { - "name": "rateLimitedResponse", - "params": [ - "retryAfter" - ], - "returnType": "Response", - "exported": false, - "lineCount": 5 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/retry-policy.js", - "specifiers": [ - "handleNonOkResponse", - "initialRetryState" - ] - } - ], - "exports": [], - "totalLines": 87, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/phase4-subagent-dup-worker.test.ts": { - "filePath": "packages/agent/tests/phase4-subagent-dup-worker.test.ts", - "contentHash": "3a1f26254b4d06e65ce8d40a82f3b5d81b8e6ffd95dc930a60f757ea4767b0b7", - "functions": [ - { - "name": "makeMockTools", - "params": [], - "returnType": "ToolDefinition[]", - "exported": false, - "lineCount": 6 - }, - { - "name": "makeMockRunner", - "params": [], - "exported": false, - "lineCount": 7 - }, - { - "name": "makeConfig", - "params": [ - "runLoop" - ], - "returnType": "OrchestratorConfig", - "exported": false, - "lineCount": 9 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach" - ] - }, - { - "source": "../src/subagent-orchestrator.js", - "specifiers": [ - "SubagentOrchestrator", - "WorkflowTemplate", - "OrchestratorConfig" - ] - }, - { - "source": "../src/tools.js", - "specifiers": [ - "ToolDefinition" - ] - }, - { - "source": "../src/agent-loop.js", - "specifiers": [ - "AgentLoopConfig", - "AgentResponse" - ] - } - ], - "exports": [], - "totalLines": 103, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/plan-tools.test.ts": { - "filePath": "packages/agent/tests/plan-tools.test.ts", - "contentHash": "fd77d3813a85adc3bacc232407dea5eb72f6b2e87f93e9b70f37f3babe5636d3", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/plan-tools.js", - "specifiers": [ - "createPlanTools" - ] - } - ], - "exports": [], - "totalLines": 61, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/plan.test.ts": { - "filePath": "packages/agent/tests/plan.test.ts", - "contentHash": "370a602951427dc1d16a7772bb167bf71d56662034cf6eaeddd69bd3b14077e1", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/plan.js", - "specifiers": [ - "Plan" - ] - } - ], - "exports": [], - "totalLines": 81, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/premium-contract-e2e.test.ts": { - "filePath": "packages/agent/tests/premium-contract-e2e.test.ts", - "contentHash": "96d8b9a9ad1e713504be1ada73aa84cd333113307d4f49612afd438dceae0334", - "functions": [ - { - "name": "mockFetch", - "params": [ - "turns" - ], - "exported": false, - "lineCount": 13 - }, - { - "name": "cfg", - "params": [ - "fetch" - ], - "returnType": "AgentLoopConfig", - "exported": false, - "lineCount": 8 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi" - ] - }, - { - "source": "../src/agent-loop.js", - "specifiers": [ - "runAgentLoop", - "AgentLoopConfig" - ] - }, - { - "source": "../src/verification-gate.js", - "specifiers": [ - "VERIFICATION_GATE_DIRECTIVE" - ] - }, - { - "source": "../src/skill-distillation.js", - "specifiers": [ - "planSkillDistillation" - ] - }, - { - "source": "../src/tools.js", - "specifiers": [ - "ToolDefinition" - ] - } - ], - "exports": [], - "totalLines": 97, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/promote-skill.test.ts": { - "filePath": "packages/agent/tests/promote-skill.test.ts", - "contentHash": "2225f20486099b5d63e2a679fcd9c1b44a3c1e9bf5d7ea375234304b62d15925", - "functions": [ - { - "name": "seedSkill", - "params": [ - "dir", - "name", - "scope", - "body" - ], - "returnType": "void", - "exported": false, - "lineCount": 6 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "ImprovementSignalStore" - ] - }, - { - "source": "../src/skill-tools.js", - "specifiers": [ - "createSkillTools", - "getSkillDirForScope" - ] - }, - { - "source": "../src/skill-frontmatter.js", - "specifiers": [ - "parseSkillFrontmatter" - ] - } - ], - "exports": [], - "totalLines": 187, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/prompt-assembler-feature-flag.test.ts": { - "filePath": "packages/agent/tests/prompt-assembler-feature-flag.test.ts", - "contentHash": "d15fc337b71986b8436852ae384d6e367cb1e9a0bbb7c065a328bb4ffc4d7126", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../src/orchestrator.js", - "specifiers": [ - "Orchestrator" - ] - }, - { - "source": "../src/feature-flags.js", - "specifiers": [ - "FEATURE_FLAGS", - "isEnabled" - ] - }, - { - "source": "../../hive-mind-core/tests/mind/helpers/mock-embedder.js", - "specifiers": [ - "MockEmbedder" - ] - } - ], - "exports": [], - "totalLines": 98, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/prompt-assembler.test.ts": { - "filePath": "packages/agent/tests/prompt-assembler.test.ts", - "contentHash": "fb711c35325bb9b233d47b0b40af5ea7e32ea28c1bbb1ec042e71938f4d2211e", - "functions": [ - { - "name": "frame", - "params": [ - "content", - "opts" - ], - "returnType": "MemoryFrame", - "exported": false, - "lineCount": 18 - }, - { - "name": "persona", - "params": [ - "overrides" - ], - "returnType": "AgentPersona", - "exported": false, - "lineCount": 16 - }, - { - "name": "emptyContext", - "params": [], - "returnType": "ContextFrames", - "exported": false, - "lineCount": 9 - }, - { - "name": "emptyRecalled", - "params": [], - "returnType": "RecalledMemory", - "exported": false, - "lineCount": 3 - }, - { - "name": "shape", - "params": [ - "type", - "confidence" - ], - "returnType": "TaskShape", - "exported": false, - "lineCount": 8 - }, - { - "name": "baseInput", - "params": [ - "overrides" - ], - "returnType": "AssembleInput", - "exported": false, - "lineCount": 11 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MemoryFrame", - "Importance", - "FrameType", - "FrameSource" - ] - }, - { - "source": "../src/personas.js", - "specifiers": [ - "AgentPersona" - ] - }, - { - "source": "../src/task-shape.js", - "specifiers": [ - "TaskShape" - ] - }, - { - "source": "../src/orchestrator.js", - "specifiers": [ - "ContextFrames" - ] - }, - { - "source": "../src/prompt-assembler.js", - "specifiers": [ - "PromptAssembler", - "AssembleInput", - "RecalledMemory" - ] - } - ], - "exports": [], - "totalLines": 532, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/prompt-loader.test.ts": { - "filePath": "packages/agent/tests/prompt-loader.test.ts", - "contentHash": "31ecb4a63f9dc14ab048b825c7feb03c140ae06a006e577b50847520cfe2b880", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach", - "vi" - ] - }, - { - "source": "../src/prompt-loader.js", - "specifiers": [ - "loadSystemPrompt", - "loadSystemPromptWithOverrides", - "assertOverridesReachActiveSpec", - "loadSkills" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - } - ], - "exports": [], - "totalLines": 141, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/prompt-shapes.test.ts": { - "filePath": "packages/agent/tests/prompt-shapes.test.ts", - "contentHash": "11947678c525e81881ff6ab39bfcfd97856ef15cb87828acf84168c18dcbf839", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/prompt-shapes/index.js", - "specifiers": [ - "selectShape", - "listShapes", - "getShapeMetadata", - "REGISTRY", - "claudeShape", - "qwenThinkingShape", - "qwenNonThinkingShape", - "gptShape", - "genericSimpleShape", - "MULTI_STEP_ACTION_CONTRACT", - "_resetConfigCache" - ] - } - ], - "exports": [], - "totalLines": 239, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/quality-controller.test.ts": { - "filePath": "packages/agent/tests/quality-controller.test.ts", - "contentHash": "f431eaf463a6b0d0c2754433a4edf49ab52f5ed78787e3d9d9184c2ee3c38c05", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/quality-controller.js", - "specifiers": [ - "checkResponseQuality" - ] - } - ], - "exports": [], - "totalLines": 30, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/r2-recall-closure.test.ts": { - "filePath": "packages/agent/tests/r2-recall-closure.test.ts", - "contentHash": "29b96506431fd6194b31e5364f9e4a5ae13728ab4be64f1b2f4ca0ebc66e2e32", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../src/orchestrator.js", - "specifiers": [ - "Orchestrator" - ] - }, - { - "source": "../../hive-mind-core/tests/mind/helpers/mock-embedder.js", - "specifiers": [ - "MockEmbedder" - ] - } - ], - "exports": [], - "totalLines": 80, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/retrieval-agent-loop.test.ts": { - "filePath": "packages/agent/tests/retrieval-agent-loop.test.ts", - "contentHash": "17f13cd19531d8b1c45cd03242a699c5911bb661a43e5945768b191444ea0a31", - "functions": [ - { - "name": "makeLlmCall", - "params": [ - "responses" - ], - "returnType": "{\r\n fn: LlmCallFn;\r\n calls: Array[0]>;\r\n}", - "exported": false, - "lineCount": 24 - }, - { - "name": "mockSearch", - "params": [ - "results", - "count" - ], - "returnType": "RetrievalSearchFn", - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi" - ] - }, - { - "source": "../src/retrieval-agent-loop.js", - "specifiers": [ - "runSoloAgent", - "runRetrievalAgentLoop", - "LlmCallFn", - "LlmCallResult", - "RetrievalSearchFn" - ] - }, - { - "source": "../src/run-meta.js", - "specifiers": [ - "RunMetaCapture" - ] - } - ], - "exports": [], - "totalLines": 512, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/run-meta.test.ts": { - "filePath": "packages/agent/tests/run-meta.test.ts", - "contentHash": "18adb8f06e07f9f2f831080c66153957a3c77394ffcc8238ccd9d0a64b124f52", - "functions": [ - { - "name": "makePrediction", - "params": [ - "idx", - "opts" - ], - "returnType": "Omit", - "exported": false, - "lineCount": 16 - }, - { - "name": "makeJudgeTrace", - "params": [ - "idx", - "predId" - ], - "returnType": "Omit", - "exported": false, - "lineCount": 14 - }, - { - "name": "tmpDir", - "params": [ - "label" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:fs/promises", - "specifiers": [ - "* as fsp" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "node:crypto", - "specifiers": [ - "* as crypto" - ] - }, - { - "source": "../src/run-meta.js", - "specifiers": [ - "RunMetaCapture", - "RunMetaReader", - "RUN_META_SCHEMA_VERSION", - "verifyDeterministicReplay", - "PredictionRecord", - "JudgeCallTrace", - "ModelVersion", - "ProviderRoute" - ] - } - ], - "exports": [], - "totalLines": 449, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/save-memory-conflict.test.ts": { - "filePath": "packages/agent/tests/save-memory-conflict.test.ts", - "contentHash": "7e15f8985378ff5175f250ad3f9fb59fef3ee80b320d3320d3251b5cb3486ca4", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "IdentityLayer", - "AwarenessLayer", - "FrameStore", - "SessionStore", - "KnowledgeGraph", - "HybridSearch", - "ImprovementSignalStore" - ] - }, - { - "source": "../src/tools.js", - "specifiers": [ - "createMindTools" - ] - }, - { - "source": "../src/tools.js", - "specifiers": [ - "ToolDefinition" - ] - }, - { - "source": "../../hive-mind-core/tests/mind/helpers/mock-embedder.js", - "specifiers": [ - "MockEmbedder" - ] - } - ], - "exports": [], - "totalLines": 151, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/search-memory-combined.test.ts": { - "filePath": "packages/agent/tests/search-memory-combined.test.ts", - "contentHash": "9574e580b0b8ddf1bb10b0a17c3dc7d2506a8a2edf61d1eff6eade7e9c5050f2", - "functions": [ - { - "name": "makeCombinedResult", - "params": [ - "overrides" - ], - "returnType": "CombinedResult", - "exported": false, - "lineCount": 9 - }, - { - "name": "makeRetrievalResult", - "params": [ - "overrides" - ], - "returnType": "CombinedRetrievalResult", - "exported": false, - "lineCount": 11 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi" - ] - }, - { - "source": "../src/tools.js", - "specifiers": [ - "formatCombinedResult" - ] - }, - { - "source": "../src/combined-retrieval.js", - "specifiers": [ - "CombinedRetrievalResult", - "CombinedResult" - ] - } - ], - "exports": [], - "totalLines": 180, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/search-tools.test.ts": { - "filePath": "packages/agent/tests/search-tools.test.ts", - "contentHash": "22278edad8a9b683ab115c0a19d536c71b76c3861b4c08b6287c80861365ba52", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "../src/search-tools.js", - "specifiers": [ - "createSearchTools", - "tavilyLimiter", - "braveLimiter" - ] - }, - { - "source": "../src/tools.js", - "specifiers": [ - "ToolDefinition" - ] - } - ], - "exports": [], - "totalLines": 238, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/self-awareness.test.ts": { - "filePath": "packages/agent/tests/self-awareness.test.ts", - "contentHash": "ebdbebc42b182cdb78f420d6827ad14553015184350b36c2eb8ea43ef093f388", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/self-awareness.js", - "specifiers": [ - "buildSelfAwareness", - "AgentCapabilities" - ] - } - ], - "exports": [], - "totalLines": 149, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/skill-autoextract.test.ts": { - "filePath": "packages/agent/tests/skill-autoextract.test.ts", - "contentHash": "5e50b85333726a0cee98d0640ec638320243ac66ff7a6f00abe3ad6cadb1ea89", - "functions": [ - { - "name": "repeatedSession", - "params": [], - "returnType": "AutoExtractMessage[]", - "exported": false, - "lineCount": 10 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "ImprovementSignalStore" - ] - }, - { - "source": "../src/skill-autoextract.js", - "specifiers": [ - "autoExtractAndCreateSkill", - "skillFilename", - "AutoExtractMessage" - ] - }, - { - "source": "../src/skill-frontmatter.js", - "specifiers": [ - "parseSkillFrontmatter" - ] - }, - { - "source": "../src/skill-creator.js", - "specifiers": [ - "SkillTemplate" - ] - } - ], - "exports": [], - "totalLines": 152, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/skill-creator.test.ts": { - "filePath": "packages/agent/tests/skill-creator.test.ts", - "contentHash": "831542d7402803b74cff83f2b69feb3ed9c6a9389312784f04acf81a38327a67", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "../src/skill-creator.js", - "specifiers": [ - "generateSkillMarkdown", - "detectWorkflowPattern", - "SkillTemplate" - ] - }, - { - "source": "../src/workflow-capture.js", - "specifiers": [ - "shouldSuggestCapture" - ] - }, - { - "source": "../src/skill-tools.js", - "specifiers": [ - "createSkillTools" - ] - } - ], - "exports": [], - "totalLines": 395, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/skill-diffusion.test.ts": { - "filePath": "packages/agent/tests/skill-diffusion.test.ts", - "contentHash": "9308b7e97458bad9ffa1cf1ffe92ab6bd0558fa6bda8124059f34a2b858c5cfb", - "functions": [ - { - "name": "mockFetch", - "params": [ - "responses" - ], - "returnType": "typeof globalThis.fetch", - "exported": false, - "lineCount": 25 - }, - { - "name": "makeNoopTool", - "params": [ - "name" - ], - "returnType": "ToolDefinition", - "exported": false, - "lineCount": 8 - }, - { - "name": "makeConfig", - "params": [ - "overrides" - ], - "returnType": "AgentLoopConfig", - "exported": false, - "lineCount": 19 - }, - { - "name": "fiveTooThenDone", - "params": [], - "returnType": "FakeResponse[]", - "exported": false, - "lineCount": 20 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi" - ] - }, - { - "source": "../src/agent-loop.js", - "specifiers": [ - "runAgentLoop", - "AgentLoopConfig" - ] - }, - { - "source": "../src/tools.js", - "specifiers": [ - "ToolDefinition" - ] - } - ], - "exports": [], - "totalLines": 174, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/skill-distillation-loop.test.ts": { - "filePath": "packages/agent/tests/skill-distillation-loop.test.ts", - "contentHash": "ca173c4f1a4ec2ffdeee3436788239a76875b85665729e35098b7ac5adf81195", - "functions": [ - { - "name": "mockFetch", - "params": [ - "turns" - ], - "exported": false, - "lineCount": 13 - }, - { - "name": "cfg", - "params": [ - "fetch", - "over" - ], - "returnType": "AgentLoopConfig", - "exported": false, - "lineCount": 9 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi" - ] - }, - { - "source": "../src/agent-loop.js", - "specifiers": [ - "runAgentLoop", - "AgentLoopConfig" - ] - }, - { - "source": "../src/skill-distillation.js", - "specifiers": [ - "planSkillDistillation" - ] - }, - { - "source": "../src/tools.js", - "specifiers": [ - "ToolDefinition" - ] - } - ], - "exports": [], - "totalLines": 151, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/skill-distillation.test.ts": { - "filePath": "packages/agent/tests/skill-distillation.test.ts", - "contentHash": "5206a0451a1c06b70d18c950da6a36020de3e897ced3f0a26b0b935f41bd45a6", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/skill-distillation.js", - "specifiers": [ - "shouldDistillSkill", - "planSkillDistillation", - "SKILL_DISTILL_MIN_TOOL_CALLS" - ] - } - ], - "exports": [], - "totalLines": 83, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/skill-frontmatter.test.ts": { - "filePath": "packages/agent/tests/skill-frontmatter.test.ts", - "contentHash": "f4a8077ddaa4f16161e82e1c760be42dbd6b3a193d36cd8ae99940d93d6c07eb", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/skill-frontmatter.js", - "specifiers": [ - "parseSkillFrontmatter", - "nextScope", - "serializeFrontmatter", - "SKILL_SCOPE_ORDER" - ] - } - ], - "exports": [], - "totalLines": 287, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/skill-recommender.test.ts": { - "filePath": "packages/agent/tests/skill-recommender.test.ts", - "contentHash": "6d1ff2d61a9a9353ccc6ca49cee6df7d70d34249c0248ed66c2d518e2804203b", - "functions": [ - { - "name": "makeDeps", - "params": [ - "skills", - "activeSkills" - ], - "returnType": "SkillRecommenderDeps", - "exported": false, - "lineCount": 9 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/skill-recommender.js", - "specifiers": [ - "SkillRecommender", - "SkillRecommenderDeps" - ] - } - ], - "exports": [], - "totalLines": 115, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/skill-redaction.test.ts": { - "filePath": "packages/agent/tests/skill-redaction.test.ts", - "contentHash": "7e043ce738a449077f27ce6cb09d3815a64c21058fb2d7b61417c59772026152", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "../src/skill-redaction.js", - "specifiers": [ - "redactSkillContent" - ] - } - ], - "exports": [], - "totalLines": 53, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/skill-retirement.test.ts": { - "filePath": "packages/agent/tests/skill-retirement.test.ts", - "contentHash": "b68ab7f9302ae3cdc5ebc636a3c7004263cdbf76c92b69f836da21cb6497ac74", - "functions": [ - { - "name": "seedSkill", - "params": [ - "dir", - "name", - "mtimeMs", - "content" - ], - "returnType": "string", - "exported": false, - "lineCount": 8 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "ImprovementSignalStore" - ] - }, - { - "source": "../src/skill-retirement.js", - "specifiers": [ - "retireStaleSkills" - ] - }, - { - "source": "../src/skill-usage.js", - "specifiers": [ - "recordSkillUsage", - "loadSkillUsage", - "saveSkillUsage", - "forgetSkillUsage" - ] - } - ], - "exports": [], - "totalLines": 159, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/skill-tools.test.ts": { - "filePath": "packages/agent/tests/skill-tools.test.ts", - "contentHash": "3625621e00d4f3ab6537d17619ca5c145698c9ba5aa953a78759fb71acdb0c83", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "../src/skill-tools.js", - "specifiers": [ - "createSkillTools" - ] - } - ], - "exports": [], - "totalLines": 117, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/skill-watcher.test.ts": { - "filePath": "packages/agent/tests/skill-watcher.test.ts", - "contentHash": "61fc7d384c7290730d9f83d44f9b241745e481de27a43740eafc7ff7e80b2b6c", - "functions": [ - { - "name": "sleep", - "params": [ - "ms" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "../src/skill-watcher.js", - "specifiers": [ - "watchSkillDirectory" - ] - } - ], - "exports": [], - "totalLines": 122, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/skill-write-service.test.ts": { - "filePath": "packages/agent/tests/skill-write-service.test.ts", - "contentHash": "0f0aaccdfe8f1561615f70e978eea9f0d5086d458d32603cac4e97d876fcee08", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach", - "vi" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "../src/skill-write-service.js", - "specifiers": [ - "writeSkill", - "deleteSkill", - "SkillWriteDeps" - ] - }, - { - "source": "../src/skill-frontmatter.js", - "specifiers": [ - "parseSkillFrontmatter" - ] - } - ], - "exports": [], - "totalLines": 131, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/smart-router.test.ts": { - "filePath": "packages/agent/tests/smart-router.test.ts", - "contentHash": "23bca7a25f21045c4f1172d1f2fb6eafcb95bcce46e69da88559b5a7afcb96fa", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/smart-router.js", - "specifiers": [ - "routeMessage" - ] - } - ], - "exports": [], - "totalLines": 68, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/sse-parser.test.ts": { - "filePath": "packages/agent/tests/sse-parser.test.ts", - "contentHash": "96d02e44bda2d0987224473c245788b3da8a3a5a81c03e9a828c6ceabd873eb4", - "functions": [ - { - "name": "streamFrom", - "params": [ - "events" - ], - "returnType": "ReadableStream", - "exported": false, - "lineCount": 9 - }, - { - "name": "sse", - "params": [ - "obj" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/sse-parser.js", - "specifiers": [ - "parseChatCompletionStream" - ] - } - ], - "exports": [], - "totalLines": 63, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/streaming.test.ts": { - "filePath": "packages/agent/tests/streaming.test.ts", - "contentHash": "b74c6166f114739a5e2370b58fc08fb119e8b78d4370cd5d54387bc034bc2bee", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi" - ] - }, - { - "source": "../src/agent-loop.js", - "specifiers": [ - "runAgentLoop" - ] - } - ], - "exports": [], - "totalLines": 237, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/subagent-cleanup.test.ts": { - "filePath": "packages/agent/tests/subagent-cleanup.test.ts", - "contentHash": "8a0f9cca56ed68fcd269db7c6224649262284dd1a865b7b5b2331680f33f3282", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach" - ] - }, - { - "source": "../src/subagent-tools.js", - "specifiers": [ - "agentResults", - "activeAgents", - "cleanupStaleEntries", - "MAX_AGENT_RESULTS", - "STALE_THRESHOLD_MS", - "SubAgentResult" - ] - } - ], - "exports": [], - "totalLines": 242, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/subagent-isolation.test.ts": { - "filePath": "packages/agent/tests/subagent-isolation.test.ts", - "contentHash": "bc44ff0bd4da2549146949a1e42369eb61d95d9037348ad6bf1aa82715ac76b0", - "functions": [ - { - "name": "spawnTool", - "params": [ - "runLoop" - ], - "returnType": "ToolDefinition", - "exported": false, - "lineCount": 20 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach" - ] - }, - { - "source": "../src/subagent-tools.js", - "specifiers": [ - "createSubAgentTools", - "agentResults", - "activeAgents" - ] - }, - { - "source": "../src/tools.js", - "specifiers": [ - "ToolDefinition" - ] - }, - { - "source": "../src/agent-loop.js", - "specifiers": [ - "AgentLoopConfig", - "AgentResponse" - ] - } - ], - "exports": [], - "totalLines": 102, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/subagent-orchestrator.test.ts": { - "filePath": "packages/agent/tests/subagent-orchestrator.test.ts", - "contentHash": "4c8108d737c00e1591fcf1d64c1cbe055c80d6632b290aa7aff51231a1b4d2b6", - "functions": [ - { - "name": "makeMockTools", - "params": [], - "returnType": "ToolDefinition[]", - "exported": false, - "lineCount": 13 - }, - { - "name": "makeMockRunner", - "params": [], - "exported": false, - "lineCount": 7 - }, - { - "name": "makeConfig", - "params": [ - "runLoop" - ], - "returnType": "OrchestratorConfig", - "exported": false, - "lineCount": 9 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach" - ] - }, - { - "source": "../src/subagent-orchestrator.js", - "specifiers": [ - "SubagentOrchestrator", - "WorkflowTemplate", - "OrchestratorConfig" - ] - }, - { - "source": "../src/tools.js", - "specifiers": [ - "ToolDefinition" - ] - }, - { - "source": "../src/agent-loop.js", - "specifiers": [ - "AgentLoopConfig", - "AgentResponse" - ] - } - ], - "exports": [], - "totalLines": 434, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/subagent-tools.test.ts": { - "filePath": "packages/agent/tests/subagent-tools.test.ts", - "contentHash": "d1942583694568872c775094ecdae0d158e1cdb0c1330339728c0fe38f2f665d", - "functions": [ - { - "name": "makeMockTools", - "params": [], - "returnType": "ToolDefinition[]", - "exported": false, - "lineCount": 11 - }, - { - "name": "makeMockRunner", - "params": [], - "returnType": "(config: AgentLoopConfig) => Promise", - "exported": false, - "lineCount": 8 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi" - ] - }, - { - "source": "../src/subagent-tools.js", - "specifiers": [ - "createSubAgentTools" - ] - }, - { - "source": "../src/tools.js", - "specifiers": [ - "ToolDefinition" - ] - }, - { - "source": "../src/agent-loop.js", - "specifiers": [ - "AgentLoopConfig", - "AgentResponse" - ] - } - ], - "exports": [], - "totalLines": 231, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/system-tools-backend.test.ts": { - "filePath": "packages/agent/tests/system-tools-backend.test.ts", - "contentHash": "3d627f1018b36f0dfc4a784b15f2521e24b788ea6220e9a0dd1ddf143e404b00", - "functions": [], - "classes": [ - { - "name": "InMemoryBackend", - "methods": [ - "read", - "write", - "exists", - "delete", - "seed", - "dump", - "normalize" - ], - "properties": [ - "files" - ], - "exported": false, - "lineCount": 32 - } - ], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach" - ] - }, - { - "source": "../src/system-tools.js", - "specifiers": [ - "createSystemTools", - "FileBackend", - "SystemToolDeps" - ] - }, - { - "source": "../src/tools.js", - "specifiers": [ - "ToolDefinition" - ] - } - ], - "exports": [], - "totalLines": 210, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/system-tools.test.ts": { - "filePath": "packages/agent/tests/system-tools.test.ts", - "contentHash": "eca61b721b3d6689ef6983410f9fc7c30be15bab1cc1a74c24f47cc6c758f1cd", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "../src/system-tools.js", - "specifiers": [ - "createSystemTools" - ] - }, - { - "source": "../src/tools.js", - "specifiers": [ - "ToolDefinition" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - } - ], - "exports": [], - "totalLines": 203, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/task-shape.test.ts": { - "filePath": "packages/agent/tests/task-shape.test.ts", - "contentHash": "aaa8df0f7c376d7ce45a1e3a73c7afd2a70ba02f138e740589eb1f6ffa3f73a9", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/task-shape.js", - "specifiers": [ - "detectTaskShape", - "TaskShape" - ] - } - ], - "exports": [], - "totalLines": 194, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/team-tools.test.ts": { - "filePath": "packages/agent/tests/team-tools.test.ts", - "contentHash": "c2c0b6a366df8d864e2fe9093e874b39e160ed9aba1c3c11698c7bd92f103e8f", - "functions": [ - { - "name": "makeDeps", - "params": [ - "fetchMock" - ], - "returnType": "TeamToolDeps", - "exported": false, - "lineCount": 8 - }, - { - "name": "okResponse", - "params": [ - "data" - ], - "returnType": "Response", - "exported": false, - "lineCount": 8 - }, - { - "name": "errorResponse", - "params": [ - "status", - "message" - ], - "returnType": "Response", - "exported": false, - "lineCount": 8 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach" - ] - }, - { - "source": "../src/team-tools.js", - "specifiers": [ - "createTeamTools", - "createLocalTeamTools", - "TeamToolDeps", - "LocalTeamToolDeps" - ] - }, - { - "source": "../src/tools.js", - "specifiers": [ - "ToolDefinition" - ] - } - ], - "exports": [], - "totalLines": 350, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/text-analysis.test.ts": { - "filePath": "packages/agent/tests/text-analysis.test.ts", - "contentHash": "61af1925e42cf481ad67a8047207b6a8aa30b048f5d23b834cfd9cf5ec0dfbeb", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/text-analysis.js", - "specifiers": [ - "normalizeForDedup", - "cosineSimilarity", - "detectDramaticClaims", - "DRAMATIC_CLAIM_PATTERNS", - "deriveConfidence" - ] - }, - { - "source": "../src/text-analysis.js", - "specifiers": [ - "ConfidenceLevel" - ] - } - ], - "exports": [], - "totalLines": 307, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/tool-detection.test.ts": { - "filePath": "packages/agent/tests/tool-detection.test.ts", - "contentHash": "045076066047945507070da86dbb89d01bc901993354ebf7aa3e4bfefb2f19b1", - "functions": [ - { - "name": "makeDeps", - "params": [ - "overrides" - ], - "returnType": "ToolDetectionDeps", - "exported": false, - "lineCount": 12 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "SUPPORTED_TOOLS", - "ToolId" - ] - }, - { - "source": "../src/tool-detection.js", - "specifiers": [ - "detectInstalledTools", - "ToolDetectionDeps" - ] - } - ], - "exports": [], - "totalLines": 355, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/tool-filter.test.ts": { - "filePath": "packages/agent/tests/tool-filter.test.ts", - "contentHash": "3c6199493853110871c4804b5789cfd52fbcaa52eb00f7e73d66cd4237c71978", - "functions": [ - { - "name": "makeTool", - "params": [ - "name" - ], - "returnType": "ToolDefinition", - "exported": false, - "lineCount": 8 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/tool-filter.js", - "specifiers": [ - "filterToolsForContext", - "filterAvailableTools" - ] - }, - { - "source": "../src/tools.js", - "specifiers": [ - "ToolDefinition" - ] - } - ], - "exports": [], - "totalLines": 135, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/tool-launcher.test.ts": { - "filePath": "packages/agent/tests/tool-launcher.test.ts", - "contentHash": "20d4989e47a2d935ce17e9e2f33bab06f225761a94e19ec340c3ae590166b163", - "functions": [ - { - "name": "captureSpawn", - "params": [], - "exported": false, - "lineCount": 16 - }, - { - "name": "captureExec", - "params": [ - "result" - ], - "exported": false, - "lineCount": 22 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi" - ] - }, - { - "source": "../src/tool-launcher.js", - "specifiers": [ - "launchTool", - "runHookCommand", - "hookPackageFor", - "ToolLauncherDeps" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "ToolId" - ] - } - ], - "exports": [], - "totalLines": 303, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/tool-process-tracker.test.ts": { - "filePath": "packages/agent/tests/tool-process-tracker.test.ts", - "contentHash": "a793bcc4cbcbf1d50b61c1481a72c318f3f239299e05d69db08983c4f1066dff", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/tool-process-tracker.js", - "specifiers": [ - "ToolProcessTracker" - ] - } - ], - "exports": [], - "totalLines": 170, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/trace-recorder.test.ts": { - "filePath": "packages/agent/tests/trace-recorder.test.ts", - "contentHash": "5fb27ac9757874047c872bd4955a4c6838289970466c413ff66a281b0af2f15c", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "ExecutionTraceStore" - ] - }, - { - "source": "../src/trace-recorder.js", - "specifiers": [ - "TraceRecorder", - "truncateTraceText", - "scrubSecrets" - ] - } - ], - "exports": [], - "totalLines": 291, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/trust-model.test.ts": { - "filePath": "packages/agent/tests/trust-model.test.ts", - "contentHash": "568bd5bb0123b917afba8adf7f49d7b3c790184be0aabf338c6417d7d909fc9b", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/trust-model.js", - "specifiers": [ - "assessTrust", - "resolveTrustSource", - "detectPermissions", - "classifyRisk", - "deriveApprovalClass", - "formatTrustSummary" - ] - } - ], - "exports": [], - "totalLines": 371, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/turn-context.test.ts": { - "filePath": "packages/agent/tests/turn-context.test.ts", - "contentHash": "07ced589ac4fb59030463e9fbb1cf31ddfd76a9d6fea256260f6cc2603bdc4ec", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "../src/turn-context.js", - "specifiers": [ - "generateTurnId", - "logTurnEvent", - "startTurnCapture", - "stopTurnCapture" - ] - } - ], - "exports": [], - "totalLines": 143, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/verification-gate-loop.test.ts": { - "filePath": "packages/agent/tests/verification-gate-loop.test.ts", - "contentHash": "74867a58029c6659cc46673af6be6df6d08394ebeddf6cef80f6222f7f57412c", - "functions": [ - { - "name": "mockFetch", - "params": [ - "contents" - ], - "exported": false, - "lineCount": 11 - }, - { - "name": "cfg", - "params": [ - "fetch", - "over" - ], - "returnType": "AgentLoopConfig", - "exported": false, - "lineCount": 7 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi" - ] - }, - { - "source": "../src/agent-loop.js", - "specifiers": [ - "runAgentLoop", - "AgentLoopConfig" - ] - }, - { - "source": "../src/verification-gate.js", - "specifiers": [ - "VERIFICATION_GATE_DIRECTIVE" - ] - } - ], - "exports": [], - "totalLines": 70, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/verification-gate.test.ts": { - "filePath": "packages/agent/tests/verification-gate.test.ts", - "contentHash": "e905bf1cc41e46a3fe52e97aeaee78a0ef5d9245b50731c469827a21e6913e4b", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/verification-gate.js", - "specifiers": [ - "assertsUnverifiedCompletion", - "VERIFICATION_GATE_DIRECTIVE" - ] - } - ], - "exports": [], - "totalLines": 63, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/w41-temporal-recall.test.ts": { - "filePath": "packages/agent/tests/w41-temporal-recall.test.ts", - "contentHash": "0327f52f1dc5eba865ba03f74d5415b68fd6f7fe7bf8069fb0a09c262972aa12", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "TEMPORAL_GUIDANCE" - ] - }, - { - "source": "../src/orchestrator.js", - "specifiers": [ - "Orchestrator" - ] - }, - { - "source": "../../hive-mind-core/tests/mind/helpers/mock-embedder.js", - "specifiers": [ - "MockEmbedder" - ] - } - ], - "exports": [], - "totalLines": 125, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/w42-reranker-recall.test.ts": { - "filePath": "packages/agent/tests/w42-reranker-recall.test.ts", - "contentHash": "074791edd07c876bbfb08143730acd8b8e643351d432b051fe144acbab216c55", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "Reranker" - ] - }, - { - "source": "../src/orchestrator.js", - "specifiers": [ - "Orchestrator" - ] - }, - { - "source": "../../hive-mind-core/tests/mind/helpers/mock-embedder.js", - "specifiers": [ - "MockEmbedder" - ] - } - ], - "exports": [], - "totalLines": 70, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/w43-recall-lanes.test.ts": { - "filePath": "packages/agent/tests/w43-recall-lanes.test.ts", - "contentHash": "4fdd5d2829eb7406f5834821e7e0b01c583e289873b2dc1024ad7b6c81b1c9b2", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "FrameStore", - "SessionStore", - "MIND_FACT_PREFIX", - "MIND_EVENT_PREFIX", - "MIND_PROFILE_PREFIX" - ] - }, - { - "source": "../src/orchestrator.js", - "specifiers": [ - "Orchestrator" - ] - }, - { - "source": "../../hive-mind-core/tests/mind/helpers/mock-embedder.js", - "specifiers": [ - "MockEmbedder" - ] - } - ], - "exports": [], - "totalLines": 82, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/w45-assembler-recall.test.ts": { - "filePath": "packages/agent/tests/w45-assembler-recall.test.ts", - "contentHash": "ac8681a538b79a00c1134d99b2aeeea837b1f0e60b9e8cb44b4d0657be089cb9", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../src/orchestrator.js", - "specifiers": [ - "Orchestrator" - ] - }, - { - "source": "../src/prompt-assembler.js", - "specifiers": [ - "PromptAssembler", - "RecalledMemory" - ] - }, - { - "source": "../../hive-mind-core/tests/mind/helpers/mock-embedder.js", - "specifiers": [ - "MockEmbedder" - ] - } - ], - "exports": [], - "totalLines": 94, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/w46-rawdetail-recall.test.ts": { - "filePath": "packages/agent/tests/w46-rawdetail-recall.test.ts", - "contentHash": "563736fe518f53892b7399573a304da11af205e6018ddc1f417852331bad3059", - "functions": [ - { - "name": "markerReranker", - "params": [ - "marker" - ], - "returnType": "Reranker", - "exported": false, - "lineCount": 6 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "FrameStore", - "SessionStore", - "rawTurnHeader", - "Reranker" - ] - }, - { - "source": "../src/orchestrator.js", - "specifiers": [ - "Orchestrator" - ] - }, - { - "source": "../../hive-mind-core/tests/mind/helpers/mock-embedder.js", - "specifiers": [ - "MockEmbedder" - ] - } - ], - "exports": [], - "totalLines": 124, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/wave-e-topology.test.ts": { - "filePath": "packages/agent/tests/wave-e-topology.test.ts", - "contentHash": "b680ff2263c604be064c63d0fbc9061ce296086db0436c9876efec68133f82b9", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/index.js", - "specifiers": [ - "ROLE_TOOL_PRESETS", - "listWorkflowTemplates", - "WORKFLOW_TEMPLATES" - ] - } - ], - "exports": [], - "totalLines": 144, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/web-search-cache.test.ts": { - "filePath": "packages/agent/tests/web-search-cache.test.ts", - "contentHash": "ab22f8c2ce0d6f05777b98561274caeee8eb94dd3c7ab403901f1b95b07bd97f", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/web-search-utils.js", - "specifiers": [ - "SearchCache", - "RateLimiter" - ] - } - ], - "exports": [], - "totalLines": 53, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/workflow-commands.test.ts": { - "filePath": "packages/agent/tests/workflow-commands.test.ts", - "contentHash": "e55519aff56e1d4834c7ab2669ddbb9d1b8f41938e594927c53833c08f24fc6e", - "functions": [ - { - "name": "mockContext", - "params": [ - "overrides" - ], - "returnType": "CommandContext", - "exported": false, - "lineCount": 12 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach" - ] - }, - { - "source": "../src/commands/command-registry.js", - "specifiers": [ - "CommandRegistry", - "CommandContext" - ] - }, - { - "source": "../src/commands/workflow-commands.js", - "specifiers": [ - "registerWorkflowCommands" - ] - } - ], - "exports": [], - "totalLines": 288, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/workflow-composer.test.ts": { - "filePath": "packages/agent/tests/workflow-composer.test.ts", - "contentHash": "7bd765a9f3e8b9dc2261fb7ee3e57558f127370b011974db0add4051a25d3fb3", - "functions": [ - { - "name": "makeShape", - "params": [ - "overrides" - ], - "returnType": "TaskShape", - "exported": false, - "lineCount": 9 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/workflow-composer.js", - "specifiers": [ - "composeWorkflow", - "validateTemplate", - "ComposerContext", - "WorkflowPlan" - ] - }, - { - "source": "../src/task-shape.js", - "specifiers": [ - "TaskShape" - ] - }, - { - "source": "../src/subagent-orchestrator.js", - "specifiers": [ - "WorkflowTemplate" - ] - } - ], - "exports": [], - "totalLines": 302, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/workflow-templates-new.test.ts": { - "filePath": "packages/agent/tests/workflow-templates-new.test.ts", - "contentHash": "ac66b8929c970a6e17da1e98369b0050e9c6afb96745ae0b6501cbe2a2cc8c83", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/workflow-templates.js", - "specifiers": [ - "WORKFLOW_TEMPLATES", - "listWorkflowTemplates" - ] - } - ], - "exports": [], - "totalLines": 29, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/workflow-templates.test.ts": { - "filePath": "packages/agent/tests/workflow-templates.test.ts", - "contentHash": "2e54a2347a0902fa104641a24ca5dae8e9cf992e8e4a2337816dacc8283578d1", - "functions": [ - { - "name": "makeMockTools", - "params": [], - "returnType": "ToolDefinition[]", - "exported": false, - "lineCount": 17 - }, - { - "name": "makeMockRunner", - "params": [], - "exported": false, - "lineCount": 7 - }, - { - "name": "makeConfig", - "params": [ - "runLoop" - ], - "returnType": "OrchestratorConfig", - "exported": false, - "lineCount": 9 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach" - ] - }, - { - "source": "../src/workflow-templates.js", - "specifiers": [ - "createResearchTeamTemplate", - "createReviewPairTemplate", - "createPlanExecuteTemplate", - "WORKFLOW_TEMPLATES", - "listWorkflowTemplates" - ] - }, - { - "source": "../src/workflow-tools.js", - "specifiers": [ - "createWorkflowTools" - ] - }, - { - "source": "../src/tools.js", - "specifiers": [ - "ToolDefinition" - ] - }, - { - "source": "../src/agent-loop.js", - "specifiers": [ - "AgentLoopConfig", - "AgentResponse" - ] - }, - { - "source": "../src/subagent-orchestrator.js", - "specifiers": [ - "OrchestratorConfig" - ] - } - ], - "exports": [], - "totalLines": 265, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/workflow-tools-harness.test.ts": { - "filePath": "packages/agent/tests/workflow-tools-harness.test.ts", - "contentHash": "fba3d6d3a8a3b6eedbee3d98b3821beb87b87276128e488ee4eaa18311b4cb4b", - "functions": [ - { - "name": "makeConfig", - "params": [], - "returnType": "Parameters[0]", - "exported": false, - "lineCount": 19 - }, - { - "name": "findTool", - "params": [ - "tools", - "name" - ], - "returnType": "ToolDefinition", - "exported": false, - "lineCount": 5 - }, - { - "name": "extractRunId", - "params": [ - "output" - ], - "returnType": "string", - "exported": false, - "lineCount": 5 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach" - ] - }, - { - "source": "../src/workflow-tools.js", - "specifiers": [ - "createWorkflowTools", - "__resetActiveHarnessRunsForTests" - ] - }, - { - "source": "../src/tools.js", - "specifiers": [ - "ToolDefinition" - ] - } - ], - "exports": [], - "totalLines": 247, - "hasStructuralAnalysis": true - }, - "packages/agent/tests/workspace.test.ts": { - "filePath": "packages/agent/tests/workspace.test.ts", - "contentHash": "f1ede4399809da59aa5b43a117967d25c46b13c41a5ad85f5366b771d8c3797d", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "../src/workspace.js", - "specifiers": [ - "Workspace", - "WorkspaceConfig" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - } - ], - "exports": [], - "totalLines": 174, - "hasStructuralAnalysis": true - }, - "packages/agent/tsconfig.json": { - "filePath": "packages/agent/tsconfig.json", - "contentHash": "4f1361341aac2cb7a238b4c898b70844523e6c15c52a10c65a556226da2c14d9", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 25, - "hasStructuralAnalysis": true - }, - "packages/agent/vitest.config.ts": { - "filePath": "packages/agent/vitest.config.ts", - "contentHash": "4ba97855139186dae9493b7e8a537d4eb0c7331d05d7f877688d4133e9ee02e7", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest/config", - "specifiers": [ - "defineConfig" - ] - } - ], - "exports": [], - "totalLines": 10, - "hasStructuralAnalysis": true - }, - "packages/cli/bin/waggle.js": { - "filePath": "packages/cli/bin/waggle.js", - "contentHash": "69ba81887b21d8f19d62d47b491de7229e39441f13979caef7d3029489e7c23f", - "functions": [], - "classes": [], - "imports": [ - { - "source": "../dist/index.js", - "specifiers": [] - } - ], - "exports": [], - "totalLines": 3, - "hasStructuralAnalysis": true - }, - "packages/cli/package.json": { - "filePath": "packages/cli/package.json", - "contentHash": "aeb6468e55aea64824f4321d511d34d298a727c5404472ebd18d0e7a063c6137", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 64, - "hasStructuralAnalysis": true - }, - "packages/cli/src/auth.ts": { - "filePath": "packages/cli/src/auth.ts", - "contentHash": "d356a3d875e8c8e9df63076f23ad79888b61df73e0ef4e26a22739351e2a8dfd", - "functions": [ - { - "name": "openBrowser", - "params": [ - "url" - ], - "returnType": "void", - "exported": true, - "lineCount": 10 - } - ], - "classes": [ - { - "name": "AuthManager", - "methods": [ - "constructor", - "getToken", - "getEmail", - "getServerUrl", - "isLoggedIn", - "saveToken", - "logout", - "loginWithBrowser", - "readAuth", - "readConfig", - "writeConfig" - ], - "properties": [ - "configDir", - "configPath" - ], - "exported": true, - "lineCount": 114 - } - ], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "readFileSync", - "writeFileSync", - "mkdirSync", - "existsSync" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join" - ] - }, - { - "source": "node:os", - "specifiers": [ - "homedir" - ] - }, - { - "source": "node:http", - "specifiers": [ - "createServer" - ] - }, - { - "source": "node:child_process", - "specifiers": [ - "execFile" - ] - }, - { - "source": "node:url", - "specifiers": [ - "URL" - ] - } - ], - "exports": [ - "AuthManager", - "openBrowser" - ], - "totalLines": 148, - "hasStructuralAnalysis": true - }, - "packages/cli/src/commands.ts": { - "filePath": "packages/cli/src/commands.ts", - "contentHash": "f1a2b844282ecda51c2c3d5a4288a569d41da2aa7fb9652b53490335c66aa972", - "functions": [ - { - "name": "parseCommand", - "params": [ - "input" - ], - "returnType": "SlashCommand | null", - "exported": true, - "lineCount": 14 - } - ], - "classes": [], - "imports": [], - "exports": [ - "parseCommand", - "COMMANDS" - ], - "totalLines": 51, - "hasStructuralAnalysis": true - }, - "packages/cli/src/commands/admin.ts": { - "filePath": "packages/cli/src/commands/admin.ts", - "contentHash": "3ec2531df132c5b125efd8fe5be7069351a2dfb3b03ac84cb54486da3e0167e6", - "functions": [ - { - "name": "formatTable", - "params": [ - "rows", - "columns" - ], - "returnType": "string", - "exported": true, - "lineCount": 16 - } - ], - "classes": [ - { - "name": "AdminClient", - "methods": [ - "constructor", - "request", - "listTeams", - "listJobs", - "listCron", - "listAudit", - "getStats" - ], - "properties": [ - "apiBase", - "token" - ], - "exported": true, - "lineCount": 48 - } - ], - "imports": [], - "exports": [ - "AdminClient", - "formatTable" - ], - "totalLines": 79, - "hasStructuralAnalysis": true - }, - "packages/cli/src/index.ts": { - "filePath": "packages/cli/src/index.ts", - "contentHash": "4f6a8b63256ed05e6198b74415845242659a8ed39e6c5a0d3b77f4bec7b3c6d5", - "functions": [ - { - "name": "printHelp", - "params": [], - "returnType": "void", - "exported": false, - "lineCount": 24 - } - ], - "classes": [], - "imports": [ - { - "source": "./repl.js", - "specifiers": [ - "startRepl" - ] - } - ], - "exports": [], - "totalLines": 57, - "hasStructuralAnalysis": true - }, - "packages/cli/src/mode-detector.ts": { - "filePath": "packages/cli/src/mode-detector.ts", - "contentHash": "d3658eaf05267298a2f10de1bbf81e60d52c51d045031e967594d0bd93ecf590", - "functions": [ - { - "name": "detectMode", - "params": [ - "deps" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 30 - }, - { - "name": "checkServerHealth", - "params": [ - "serverUrl" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 11 - } - ], - "classes": [], - "imports": [], - "exports": [ - "detectMode", - "checkServerHealth" - ], - "totalLines": 57, - "hasStructuralAnalysis": true - }, - "packages/cli/src/renderer.ts": { - "filePath": "packages/cli/src/renderer.ts", - "contentHash": "9932f9eb6a1d9f76b6a1c1ea3ef1781919b09bc752b6159c139545fc03678869", - "functions": [ - { - "name": "renderMarkdown", - "params": [ - "text" - ], - "returnType": "string", - "exported": true, - "lineCount": 57 - }, - { - "name": "formatInline", - "params": [ - "text" - ], - "returnType": "string", - "exported": false, - "lineCount": 9 - } - ], - "classes": [], - "imports": [ - { - "source": "chalk", - "specifiers": [ - "chalk" - ] - } - ], - "exports": [ - "renderMarkdown" - ], - "totalLines": 83, - "hasStructuralAnalysis": true - }, - "packages/cli/src/repl.ts": { - "filePath": "packages/cli/src/repl.ts", - "contentHash": "adbf91afd8815522571846cd82e7a455656a42c98e8697e3464d8d4d0b978981", - "functions": [ - { - "name": "buildEmbedder", - "params": [ - "litellmUrl", - "litellmApiKey" - ], - "exported": false, - "lineCount": 9 - }, - { - "name": "startRepl", - "params": [ - "options" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 455 - } - ], - "classes": [], - "imports": [ - { - "source": "node:readline", - "specifiers": [ - "readline" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "chalk", - "specifiers": [ - "chalk" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "WaggleConfig", - "createLiteLLMEmbedder" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "Orchestrator", - "ModelRouter", - "runAgentLoop", - "createSystemTools", - "createPlanTools", - "createGitTools", - "Workspace", - "ensureIdentity", - "loadSystemPromptWithOverrides", - "assertOverridesReachActiveSpec", - "loadSkills", - "CostTracker", - "HookRegistry", - "loadHooksFromConfig", - "needsConfirmation" - ] - }, - { - "source": "./commands.js", - "specifiers": [ - "parseCommand", - "COMMANDS" - ] - }, - { - "source": "./renderer.js", - "specifiers": [ - "renderMarkdown" - ] - }, - { - "source": "./commands/admin.js", - "specifiers": [ - "AdminClient", - "formatTable" - ] - }, - { - "source": "./auth.js", - "specifiers": [ - "AuthManager" - ] - }, - { - "source": "./mode-detector.js", - "specifiers": [ - "detectMode", - "checkServerHealth" - ] - } - ], - "exports": [ - "startRepl" - ], - "totalLines": 497, - "hasStructuralAnalysis": true - }, - "packages/cli/test-hello.txt": { - "filePath": "packages/cli/test-hello.txt", - "contentHash": "04ed232cb8cb6d8e08553fbe3ef59963023194617b73ecf111da721b54c7902a", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 1, - "hasStructuralAnalysis": false - }, - "packages/cli/tests/admin.test.ts": { - "filePath": "packages/cli/tests/admin.test.ts", - "contentHash": "f6098840d6b289df8c66ba19e307cb90decaa46e5fa9089dbe4676225b8712cb", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/commands/admin.js", - "specifiers": [ - "AdminClient", - "formatTable" - ] - } - ], - "exports": [], - "totalLines": 76, - "hasStructuralAnalysis": true - }, - "packages/cli/tests/auth.test.ts": { - "filePath": "packages/cli/tests/auth.test.ts", - "contentHash": "bb89dfd026b1a61723a1406dfc1bc5f23f11cc6c19a75c814d0549d930ef0033", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "afterEach" - ] - }, - { - "source": "../src/auth.js", - "specifiers": [ - "AuthManager" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "mkdtempSync", - "rmSync", - "readFileSync", - "writeFileSync", - "mkdirSync" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join" - ] - }, - { - "source": "node:os", - "specifiers": [ - "tmpdir" - ] - } - ], - "exports": [], - "totalLines": 91, - "hasStructuralAnalysis": true - }, - "packages/cli/tests/commands.test.ts": { - "filePath": "packages/cli/tests/commands.test.ts", - "contentHash": "ac758bf6ceaff463e275a7c16afc6728619adc9a47e3d6abfda3528edd1a7179", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/commands.js", - "specifiers": [ - "parseCommand" - ] - } - ], - "exports": [], - "totalLines": 37, - "hasStructuralAnalysis": true - }, - "packages/cli/tests/comprehensive-e2e.test.ts": { - "filePath": "packages/cli/tests/comprehensive-e2e.test.ts", - "contentHash": "fbb88e1ab2f0653d2f0a0f49992d326a46187320dab81150a3f29ef5e78aebb6", - "functions": [ - { - "name": "createTmpMind", - "params": [], - "returnType": "{ path: string; db: MindDB }", - "exported": false, - "lineCount": 4 - }, - { - "name": "cleanup", - "params": [ - "filePath" - ], - "exported": false, - "lineCount": 5 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "Orchestrator", - "createSystemTools", - "createPlanTools", - "createGitTools", - "HookRegistry", - "PermissionManager", - "filterToolsForContext", - "needsConfirmation" - ] - }, - { - "source": "../../hive-mind-core/tests/mind/helpers/mock-embedder.js", - "specifiers": [ - "MockEmbedder" - ] - } - ], - "exports": [], - "totalLines": 374, - "hasStructuralAnalysis": true - }, - "packages/cli/tests/memory-persistence-hard.test.ts": { - "filePath": "packages/cli/tests/memory-persistence-hard.test.ts", - "contentHash": "0c4f139e7c74f682f4f63c531745301fde89f2e79c70938af8a41ec61c433e18", - "functions": [ - { - "name": "cleanup", - "params": [], - "exported": false, - "lineCount": 7 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "afterAll" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "Orchestrator" - ] - }, - { - "source": "../../hive-mind-core/tests/mind/helpers/mock-embedder.js", - "specifiers": [ - "MockEmbedder" - ] - } - ], - "exports": [], - "totalLines": 284, - "hasStructuralAnalysis": true - }, - "packages/cli/tests/mode-detector.test.ts": { - "filePath": "packages/cli/tests/mode-detector.test.ts", - "contentHash": "4decd7f719130e363eab5194788a19f00a9a156cbfd911d98788667b08732dc0", - "functions": [ - { - "name": "makeDeps", - "params": [ - "overrides" - ], - "returnType": "ModeDetectorDeps", - "exported": false, - "lineCount": 10 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi" - ] - }, - { - "source": "../src/mode-detector.js", - "specifiers": [ - "detectMode", - "ModeDetectorDeps" - ] - } - ], - "exports": [], - "totalLines": 72, - "hasStructuralAnalysis": true - }, - "packages/cli/tests/real-session-simulation.ts": { - "filePath": "packages/cli/tests/real-session-simulation.ts", - "contentHash": "01b446d3d4100828bcb354b0f0c7eaf4aae320dca516387f25b25d6fb6b8fe09", - "functions": [ - { - "name": "populateSession", - "params": [], - "exported": false, - "lineCount": 138 - }, - { - "name": "coldStartTest", - "params": [], - "exported": false, - "lineCount": 138 - }, - { - "name": "main", - "params": [], - "exported": false, - "lineCount": 9 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "Orchestrator" - ] - }, - { - "source": "../../core/tests/mind/helpers/mock-embedder.js", - "specifiers": [ - "MockEmbedder" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - } - ], - "exports": [], - "totalLines": 318, - "hasStructuralAnalysis": true - }, - "packages/cli/tests/renderer.test.ts": { - "filePath": "packages/cli/tests/renderer.test.ts", - "contentHash": "18627a32792020f5f94ee7cce3e5c90ec2f05d642f3e3287ac405e63bd495ea7", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/renderer.js", - "specifiers": [ - "renderMarkdown" - ] - } - ], - "exports": [], - "totalLines": 25, - "hasStructuralAnalysis": true - }, - "packages/cli/tsconfig.json": { - "filePath": "packages/cli/tsconfig.json", - "contentHash": "ac94a51cbd2534d8e05a75a57680c8d6809c0fa0613f13967535346a176e3c09", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 27, - "hasStructuralAnalysis": true - }, - "packages/core/package.json": { - "filePath": "packages/core/package.json", - "contentHash": "3e551b5316c7448ef779f062d1cb5f262fee1131d00d67d79315bafc56cad021", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 26, - "hasStructuralAnalysis": true - }, - "packages/core/src/compliance/index.ts": { - "filePath": "packages/core/src/compliance/index.ts", - "contentHash": "1c2e4ef036498daf640d3e972ce39257709a6aaecc8e0a4390d1f29d545554c1", - "functions": [], - "classes": [], - "imports": [], - "exports": [ - "InteractionStore", - "ComplianceStatusChecker", - "ReportGenerator", - "ComplianceTemplateStore" - ], - "totalLines": 6, - "hasStructuralAnalysis": true - }, - "packages/core/src/compliance/interaction-store.ts": { - "filePath": "packages/core/src/compliance/interaction-store.ts", - "contentHash": "40da51a226c465658a69d871d84df006ac7b161e945e529edd21600e175e24d2", - "functions": [], - "classes": [ - { - "name": "InteractionStore", - "methods": [ - "constructor", - "record", - "getByWorkspace", - "getByDateRange", - "count", - "getOldestTimestamp", - "getFirstRunAt", - "getModelInventory", - "getOversightLog", - "getOversightCounts", - "getRecent", - "rowToInteraction" - ], - "properties": [ - "db" - ], - "exported": true, - "lineCount": 198 - } - ], - "imports": [ - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "./types.js", - "specifiers": [ - "AIInteraction", - "RecordInteractionInput", - "HumanAction", - "ModelInventoryEntry", - "OversightLogEntry" - ] - } - ], - "exports": [ - "InteractionStore" - ], - "totalLines": 209, - "hasStructuralAnalysis": true - }, - "packages/core/src/compliance/report-generator.ts": { - "filePath": "packages/core/src/compliance/report-generator.ts", - "contentHash": "af7fbfab91f56039f186406df69ce8001c1e25380a06b0587374bf26e5d2134f", - "functions": [], - "classes": [ - { - "name": "ReportGenerator", - "methods": [ - "constructor", - "generate" - ], - "properties": [ - "interactions", - "harvest", - "getWorkspaceRisk", - "getWorkspaceName", - "getWorkspaceRiskClassifiedAt" - ], - "exported": true, - "lineCount": 76 - } - ], - "imports": [ - { - "source": "./interaction-store.js", - "specifiers": [ - "InteractionStore" - ] - }, - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "HarvestSourceStore" - ] - }, - { - "source": "./status-checker.js", - "specifiers": [ - "ComplianceStatusChecker" - ] - }, - { - "source": "./types.js", - "specifiers": [ - "AuditReport", - "AuditReportRequest", - "AIActRiskLevel" - ] - } - ], - "exports": [ - "ReportGenerator" - ], - "totalLines": 105, - "hasStructuralAnalysis": true - }, - "packages/core/src/compliance/status-checker.ts": { - "filePath": "packages/core/src/compliance/status-checker.ts", - "contentHash": "1695d1dc75cc53e69f373f5d60f87c7e59a7297afeecbd06b4e043def9cbc245", - "functions": [], - "classes": [ - { - "name": "ComplianceStatusChecker", - "methods": [ - "constructor", - "check", - "checkArt12", - "checkArt14", - "checkArt19", - "checkArt26", - "checkArt50" - ], - "properties": [ - "store" - ], - "exported": true, - "lineCount": 159 - } - ], - "imports": [ - { - "source": "./interaction-store.js", - "specifiers": [ - "InteractionStore" - ] - }, - { - "source": "./types.js", - "specifiers": [ - "ComplianceStatus", - "ArticleStatus" - ] - } - ], - "exports": [ - "ComplianceStatusChecker" - ], - "totalLines": 176, - "hasStructuralAnalysis": true - }, - "packages/core/src/compliance/template-store.ts": { - "filePath": "packages/core/src/compliance/template-store.ts", - "contentHash": "97e4ed819f1af76b575048341e55721539a8ccf89cc054af6cbe6cb4dfc06f2b", - "functions": [], - "classes": [ - { - "name": "ComplianceTemplateStore", - "methods": [ - "constructor", - "ensureTable", - "create", - "getById", - "list", - "update", - "delete", - "mergeSections", - "normalizeSections", - "seedKvarkTemplateIfMissing", - "rowToTemplate" - ], - "properties": [ - "db" - ], - "exported": true, - "lineCount": 183 - } - ], - "imports": [ - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "./types.js", - "specifiers": [ - "AIActRiskLevel", - "ComplianceTemplate", - "ComplianceTemplateSections", - "CreateComplianceTemplateInput", - "UpdateComplianceTemplateInput" - ] - } - ], - "exports": [ - "KVARK_TEMPLATE_NAME", - "ComplianceTemplateStore" - ], - "totalLines": 243, - "hasStructuralAnalysis": true - }, - "packages/core/src/compliance/types.ts": { - "filePath": "packages/core/src/compliance/types.ts", - "contentHash": "9e928c4a9f08e337746c4a9d95f548d79455fd8394bf0797f56e28322bb0ba84", - "functions": [], - "classes": [], - "imports": [], - "exports": [ - "TEMPLATE_RISK_MAP" - ], - "totalLines": 202, - "hasStructuralAnalysis": true - }, - "packages/core/src/config.ts": { - "filePath": "packages/core/src/config.ts", - "contentHash": "01baf654b49d0ec713d8053dbc3680fd23f2c4137e92a5f01cff2a01cdd3fb1f", - "functions": [ - { - "name": "getDefaultConfigDir", - "params": [], - "returnType": "string", - "exported": false, - "lineCount": 4 - } - ], - "classes": [ - { - "name": "WaggleConfig", - "methods": [ - "constructor", - "load", - "save", - "getDefaultModel", - "setDefaultModel", - "getProviders", - "setProvider", - "removeProvider", - "getMindPath", - "getConfigDir", - "getDailyBudget", - "setDailyBudget", - "getBudgetHardCap", - "setBudgetHardCap", - "getFallbackModel", - "setFallbackModel", - "clearFallbackModel", - "getBudgetModel", - "setBudgetModel", - "clearBudgetModel", - "getBudgetThreshold", - "setBudgetThreshold", - "getMaxIterations", - "setMaxIterations", - "getTeamServer", - "setTeamServer", - "clearTeamServer", - "isTeamConnected", - "getTelemetryEnabled", - "setTelemetryEnabled", - "getEmbeddingConfig", - "setEmbeddingProvider" - ], - "properties": [ - "configDir", - "configPath", - "data" - ], - "exported": true, - "lineCount": 177 - } - ], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "EmbeddingProviderConfig", - "EmbeddingProviderType" - ] - } - ], - "exports": [ - "WaggleConfig" - ], - "totalLines": 231, - "hasStructuralAnalysis": true - }, - "packages/core/src/cron-store.ts": { - "filePath": "packages/core/src/cron-store.ts", - "contentHash": "7565a6c7b411a74bb4a8e4dd9c1d2d6b7a68c5ff67a5fb330130ca0fbafb192a", - "functions": [ - { - "name": "computeNextRun", - "params": [ - "cronExpr" - ], - "returnType": "string", - "exported": false, - "lineCount": 4 - }, - { - "name": "cronExprError", - "params": [ - "cronExpr" - ], - "returnType": "string | null", - "exported": true, - "lineCount": 8 - } - ], - "classes": [ - { - "name": "CronStore", - "methods": [ - "constructor", - "ensureTable", - "create", - "list", - "getById", - "update", - "delete", - "getDue", - "markRun", - "clear", - "recordExecution", - "getExecutionHistory", - "pruneExecutionHistory", - "saveNotification", - "getNotifications", - "markNotificationRead", - "markAllRead", - "countUnread" - ], - "properties": [ - "db" - ], - "exported": true, - "lineCount": 226 - } - ], - "imports": [ - { - "source": "cron-parser", - "specifiers": [ - "cronParser" - ] - }, - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "MindDB" - ] - } - ], - "exports": [ - "VALID_JOB_TYPES", - "CRON_SCHEDULES_TABLE_SQL", - "CRON_HISTORY_TABLE_SQL", - "NOTIFICATIONS_TABLE_SQL", - "cronExprError", - "CronStore" - ], - "totalLines": 368, - "hasStructuralAnalysis": true - }, - "packages/core/src/file-indexer.ts": { - "filePath": "packages/core/src/file-indexer.ts", - "contentHash": "42de9d543b1a04a8c23ed443c2e64a57c16cddee324fe970a80411a6b081b965", - "functions": [], - "classes": [ - { - "name": "FileIndexer", - "methods": [ - "constructor", - "ensureTable", - "shouldIndex", - "ensureSession", - "indexFile", - "removeFile", - "moveFile", - "getRow", - "listAll", - "normalizeText", - "buildFrameContent" - ], - "properties": [ - "db", - "frames", - "sessions", - "cachedGopId" - ], - "exported": true, - "lineCount": 197 - } - ], - "imports": [ - { - "source": "node:crypto", - "specifiers": [ - "createHash" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "FrameStore" - ] - }, - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "SessionStore" - ] - } - ], - "exports": [ - "MAX_CONTENT_BYTES", - "FileIndexer" - ], - "totalLines": 260, - "hasStructuralAnalysis": true - }, - "packages/core/src/file-store.ts": { - "filePath": "packages/core/src/file-store.ts", - "contentHash": "c4471c83485f66aa99012825d21243869a4a5da8c6e37435136c84163fb95a15", - "functions": [ - { - "name": "resolveSafe", - "params": [ - "root", - "relativePath" - ], - "returnType": "string", - "exported": false, - "lineCount": 7 - }, - { - "name": "ensureDir", - "params": [ - "dirPath" - ], - "returnType": "void", - "exported": false, - "lineCount": 5 - }, - { - "name": "createFileStore", - "params": [ - "dataDir", - "workspaceId", - "linkedDirectory", - "s3Config" - ], - "returnType": "FileStore", - "exported": true, - "lineCount": 12 - } - ], - "classes": [ - { - "name": "LocalFileStore", - "methods": [ - "constructor", - "getRootPath", - "getStorageType", - "readFile", - "listFiles", - "searchFiles", - "writeFile", - "deleteFile", - "moveFile", - "getStorageInfo" - ], - "properties": [ - "root" - ], - "exported": true, - "lineCount": 109 - }, - { - "name": "LinkedDirStore", - "methods": [ - "constructor", - "getRootPath", - "getStorageType", - "readFile", - "listFiles", - "searchFiles", - "writeFile", - "deleteFile", - "moveFile", - "getStorageInfo" - ], - "properties": [ - "root" - ], - "exported": true, - "lineCount": 110 - }, - { - "name": "S3FileStore", - "methods": [ - "constructor", - "getClient", - "getRootPath", - "getStorageType", - "readFile", - "writeFile", - "deleteFile", - "listFiles", - "searchFiles", - "moveFile", - "getStorageInfo" - ], - "properties": [ - "config", - "client" - ], - "exported": true, - "lineCount": 138 - } - ], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "glob", - "specifiers": [ - "glob" - ] - }, - { - "source": "@aws-sdk/client-s3", - "specifiers": [ - "S3Client" - ] - } - ], - "exports": [ - "LocalFileStore", - "LinkedDirStore", - "S3FileStore", - "createFileStore" - ], - "totalLines": 466, - "hasStructuralAnalysis": true - }, - "packages/core/src/index.ts": { - "filePath": "packages/core/src/index.ts", - "contentHash": "29aaee1eda1124a7f6b4732d686ec4ae32d30afa0245d4e9ef8c8b40874b321b", - "functions": [], - "classes": [], - "imports": [], - "exports": [ - "createCoreLogger", - "CoreLogger", - "scanForInjection", - "ScanResult", - "MindDB", - "EmbeddingDimMismatchError", - "EmbeddingFingerprint", - "FingerprintCheck", - "IdentityLayer", - "Identity", - "AwarenessLayer", - "AwarenessItem", - "AwarenessCategory", - "FrameStore", - "stripHmPrefix", - "hashFrameContent", - "MemoryFrame", - "FrameType", - "Importance", - "FrameSource", - "SessionStore", - "Session", - "HybridSearch", - "SearchResult", - "chunkRetrievalEnabled", - "rechunkAllFrames", - "RechunkResult", - "chunkText", - "ChunkOptions", - "FrameChunk", - "KnowledgeGraph", - "Entity", - "Relation", - "ValidationSchema", - "SCHEMA_SQL", - "VEC_TABLE_SQL", - "CHUNKS_VEC_TABLE_SQL", - "SCHEMA_VERSION", - "vecTableSqlForDim", - "chunksVecTableSqlForDim", - "computeRelevance", - "computeTemporalScore", - "computePopularityScore", - "computeContextualScore", - "computeImportanceScore", - "SCORING_PROFILES", - "ScoringProfile", - "ScoringWeights", - "Embedder", - "createLiteLLMEmbedder", - "LiteLLMEmbedderConfig", - "createInProcessEmbedder", - "normalizeDimensions", - "InProcessEmbedderConfig", - "createOllamaEmbedder", - "OllamaEmbedderConfig", - "createApiEmbedder", - "ApiEmbedderConfig", - "createEmbeddingProvider", - "EmbeddingQuotaExceededError", - "getMinimumTierForProvider", - "EmbeddingProviderConfig", - "EmbeddingProviderStatus", - "EmbeddingProviderType", - "EmbeddingProviderInstance", - "EmbeddingQuotaStatus", - "normalizeEntityName", - "findDuplicates", - "isNoiseName", - "isLikelyAcronym", - "Ontology", - "validateEntity", - "EntitySchema", - "ValidationResult", - "ImprovementSignalStore", - "ImprovementSignal", - "ActionableSignal", - "SignalCategory", - "ActionableThresholds", - "ExecutionTraceStore", - "EXECUTION_TRACES_TABLE_SQL", - "ExecutionTrace", - "ParsedExecutionTrace", - "TraceOutcome", - "TracePayload", - "TraceToolCall", - "TraceReasoningStep", - "StartTraceInput", - "FinalizeTraceInput", - "TraceQueryFilter", - "EvolutionRunStore", - "EVOLUTION_RUNS_TABLE_SQL", - "EvolutionRun", - "EvolutionRunStatus", - "EvolutionRunTarget", - "CreateEvolutionRunInput", - "EvolutionRunFilter", - "reconcileIndexes", - "reconcileFtsIndex", - "reconcileVecIndex", - "cleanOrphanVectors", - "cleanOrphanFts", - "ReconcileResult", - "ConceptTracker", - "CONCEPT_MASTERY_TABLE_SQL", - "ConceptEntry", - "ConceptUpdate", - "TEMPORAL_GUIDANCE", - "toDatePrefix", - "renderDatedSnippet", - "referenceDate", - "renderReferenceDateLine", - "parseDateWindow", - "DateWindow", - "resolveRelativeDate", - "ResolvedDate", - "createInProcessReranker", - "Reranker", - "InProcessRerankerConfig", - "HarvestSourceStore", - "HarvestRunStore", - "HarvestRun", - "HarvestRunStatus", - "ChatGPTAdapter", - "ClaudeAdapter", - "ClaudeCodeAdapter", - "GeminiAdapter", - "UniversalAdapter", - "MarkdownAdapter", - "PlaintextAdapter", - "UrlAdapter", - "PdfAdapter", - "HarvestPipeline", - "LLMCallFn", - "PipelineOptions", - "extractMemoryLanes", - "writeMemoryLaneFrames", - "MIND_FACT_PREFIX", - "MIND_EVENT_PREFIX", - "MIND_PROFILE_PREFIX", - "MemoryLaneExtraction", - "ExtractedEvent", - "ExtractedFact", - "ExtractedProfile", - "WriteLaneFramesResult", - "extractKgEntities", - "writeKgEntities", - "KG_ENTITY_TYPES", - "KgEntity", - "KgEntityType", - "KgEntityExtraction", - "WriteKgEntitiesResult", - "writeRawTurnFrames", - "rawTurnHeader", - "parseRawTurnHeader", - "rawTurnConvKey", - "MIND_RAWTURN_PREFIX", - "MAX_TURNS_PER_ITEM", - "RAWDETAIL_KILL_SWITCH", - "WriteRawTurnsResult", - "ParsedRawTurnHeader", - "fetchRawDetailLane", - "rawTurnBody", - "RAW_DETAIL_K", - "RawTurnHit", - "RawDetailLaneOptions", - "dedup", - "harvestSetHash", - "HARVEST_FRAME_CONTENT_CAP", - "ImportSourceType", - "ImportItemType", - "UniversalImportItem", - "DistilledKnowledge", - "HarvestPipelineResult", - "HarvestSource", - "SourceAdapter", - "FilesystemAdapter", - "ClassifiedItem", - "ExtractedContent", - "KnowledgeProvenance", - "MultiMind", - "MultiMindSearchResult", - "MindSource", - "SearchScope", - "MultiMindCache", - "MultiMindCacheConfig", - "WorkspaceManager", - "WorkspaceConfig", - "CreateWorkspaceOptions", - "WaggleConfig", - "ProviderEntry", - "TeamServerConfig", - "needsMigration", - "migrateToMultiMind", - "TeamSync", - "frameToEntity", - "entityToSyncedFrame", - "TeamSyncConfig", - "SyncedFrame", - "InstallAuditStore", - "INSTALL_AUDIT_TABLE_SQL", - "InstallAuditEntry", - "RecordAuditInput", - "AuditAction", - "AuditRiskLevel", - "AuditTrustSource", - "AuditApprovalClass", - "AuditInitiator", - "AuditCapabilityType", - "CronStore", - "CRON_SCHEDULES_TABLE_SQL", - "VALID_JOB_TYPES", - "cronExprError", - "CronSchedule", - "CreateScheduleInput", - "CronJobType", - "CronExecutionRow", - "VaultStore", - "VaultEntry", - "TelemetryStore", - "TelemetryCollector", - "TELEMETRY_EVENTS", - "TelemetryEvent", - "TelemetrySummary", - "SkillHashStore", - "computeSkillHash", - "SKILL_HASHES_TABLE_SQL", - "SkillHash", - "processImport", - "parseChatGPTExport", - "parseClaudeExport", - "extractKnowledge", - "createFileStore", - "LocalFileStore", - "LinkedDirStore", - "S3FileStore", - "FileStore", - "FileEntry", - "StorageInfo", - "S3Config", - "FileIndexer", - "MAX_CONTENT_BYTES", - "FileIndexRow", - "FileIndexResult", - "ImportSource", - "ImportResult", - "ExtractedKnowledge", - "ParsedConversation", - "ConversationMessage", - "OptimizationLogStore", - "OPTIMIZATION_LOG_TABLE_SQL", - "OptimizationLogEntry", - "CreateOptimizationLogInput", - "InteractionStore", - "ComplianceStatusChecker", - "ReportGenerator", - "ReportGeneratorDeps", - "ComplianceTemplateStore", - "KVARK_TEMPLATE_NAME", - "TEMPLATE_RISK_MAP", - "AIActRiskLevel", - "HumanAction", - "AIInteraction", - "RecordInteractionInput", - "ComplianceStatus", - "ArticleStatus", - "AuditReport", - "AuditReportRequest", - "ModelInventoryEntry", - "OversightLogEntry", - "HarvestProvenanceEntry", - "ComplianceTemplate", - "ComplianceTemplateSections", - "CreateComplianceTemplateInput", - "UpdateComplianceTemplateInput" - ], - "totalLines": 151, - "hasStructuralAnalysis": true - }, - "packages/core/src/install-audit.ts": { - "filePath": "packages/core/src/install-audit.ts", - "contentHash": "ba913e01bee321d4f93efb19dea2098f2ba1b40ccf53ceaed1eada943d2a38ef", - "functions": [], - "classes": [ - { - "name": "InstallAuditStore", - "methods": [ - "constructor", - "ensureTable", - "rebuildForWidenedActionCheck", - "record", - "getByCapability", - "getByAction", - "getRecent", - "getRecentByType", - "getAll", - "clear" - ], - "properties": [ - "db" - ], - "exported": true, - "lineCount": 128 - } - ], - "imports": [ - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "sqlInList", - "RISK_LEVELS", - "APPROVAL_CLASSES", - "AUDIT_ACTIONS", - "AUDIT_CAPABILITY_TYPES", - "AUDIT_INITIATORS", - "TRUST_SOURCES" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "AuditAction", - "AuditCapabilityType", - "AuditInitiator", - "AuditRiskLevel", - "AuditApprovalClass", - "AuditTrustSource" - ] - } - ], - "exports": [ - "AuditAction", - "AuditCapabilityType", - "AuditInitiator", - "AuditRiskLevel", - "AuditApprovalClass", - "AuditTrustSource", - "INSTALL_AUDIT_TABLE_SQL", - "InstallAuditStore" - ], - "totalLines": 222, - "hasStructuralAnalysis": true - }, - "packages/core/src/memory-import.ts": { - "filePath": "packages/core/src/memory-import.ts", - "contentHash": "a3382e696d74134d680e8f926d4785e4fb6fcd0ea17155b83d21337439f990d8", - "functions": [ - { - "name": "extractConversations", - "params": [ - "json" - ], - "returnType": "unknown[]", - "exported": false, - "lineCount": 8 - }, - { - "name": "parseChatGPTExport", - "params": [ - "json" - ], - "returnType": "ParsedConversation[]", - "exported": true, - "lineCount": 44 - }, - { - "name": "parseClaudeExport", - "params": [ - "json" - ], - "returnType": "ParsedConversation[]", - "exported": true, - "lineCount": 29 - }, - { - "name": "extractKnowledge", - "params": [ - "conversations" - ], - "returnType": "ExtractedKnowledge[]", - "exported": true, - "lineCount": 76 - }, - { - "name": "processImport", - "params": [ - "jsonData", - "source" - ], - "returnType": "ImportResult", - "exported": true, - "lineCount": 33 - } - ], - "classes": [], - "imports": [], - "exports": [ - "parseChatGPTExport", - "parseClaudeExport", - "extractKnowledge", - "processImport" - ], - "totalLines": 293, - "hasStructuralAnalysis": true - }, - "packages/core/src/migration.ts": { - "filePath": "packages/core/src/migration.ts", - "contentHash": "be6ebd68451592b020817439e5efe9fd1c9f0b46e8db1c32be763bbc97085055", - "functions": [ - { - "name": "needsMigration", - "params": [ - "waggleDir" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 5 - }, - { - "name": "migrateToMultiMind", - "params": [ - "waggleDir" - ], - "returnType": "{ migrated: boolean; message: string }", - "exported": true, - "lineCount": 21 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - } - ], - "exports": [ - "needsMigration", - "migrateToMultiMind" - ], - "totalLines": 46, - "hasStructuralAnalysis": true - }, - "packages/core/src/optimization-log.ts": { - "filePath": "packages/core/src/optimization-log.ts", - "contentHash": "55f0d4be0ede5c155b85d59df0bee731dd7d08e1a5c668560ca52607d64e7fa2", - "functions": [], - "classes": [ - { - "name": "OptimizationLogStore", - "methods": [ - "constructor", - "ensureTable", - "insert", - "getRecent", - "getByWorkspace", - "getStats", - "pruneOlderThan", - "clear" - ], - "properties": [ - "db" - ], - "exported": true, - "lineCount": 95 - } - ], - "imports": [ - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "MindDB" - ] - } - ], - "exports": [ - "OPTIMIZATION_LOG_TABLE_SQL", - "OptimizationLogStore" - ], - "totalLines": 155, - "hasStructuralAnalysis": true - }, - "packages/core/src/skill-hashes.ts": { - "filePath": "packages/core/src/skill-hashes.ts", - "contentHash": "fe7511477aa19d9533fc9ed1afdee7b9a5e27b9de2c5850fac0760ed98749a1d", - "functions": [ - { - "name": "computeSkillHash", - "params": [ - "content" - ], - "returnType": "string", - "exported": true, - "lineCount": 3 - } - ], - "classes": [ - { - "name": "SkillHashStore", - "methods": [ - "constructor", - "ensureTable", - "setHash", - "getHash", - "removeHash", - "checkAll", - "verify", - "clear" - ], - "properties": [ - "db" - ], - "exported": true, - "lineCount": 84 - } - ], - "imports": [ - { - "source": "node:crypto", - "specifiers": [ - "* as crypto" - ] - }, - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "MindDB" - ] - } - ], - "exports": [ - "SKILL_HASHES_TABLE_SQL", - "computeSkillHash", - "SkillHashStore" - ], - "totalLines": 123, - "hasStructuralAnalysis": true - }, - "packages/core/src/team-sync.ts": { - "filePath": "packages/core/src/team-sync.ts", - "contentHash": "86fc00371c523b6a587dd2bbf7080f44dc577a4e9075e6d6b09073e349185660", - "functions": [ - { - "name": "frameToEntity", - "params": [ - "frame", - "authorId", - "authorName" - ], - "exported": true, - "lineCount": 16 - }, - { - "name": "entityToSyncedFrame", - "params": [ - "entity" - ], - "returnType": "SyncedFrame", - "exported": true, - "lineCount": 19 - } - ], - "classes": [ - { - "name": "TeamSync", - "methods": [ - "constructor", - "pushFrame", - "pullFrames", - "getLastSyncTimestamp", - "setLastSyncTimestamp" - ], - "properties": [ - "config", - "lastSyncTimestamp" - ], - "exported": true, - "lineCount": 98 - } - ], - "imports": [ - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "MemoryFrame", - "FrameType", - "Importance" - ] - }, - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "createCoreLogger" - ] - } - ], - "exports": [ - "frameToEntity", - "entityToSyncedFrame", - "TeamSync" - ], - "totalLines": 187, - "hasStructuralAnalysis": true - }, - "packages/core/src/telemetry.ts": { - "filePath": "packages/core/src/telemetry.ts", - "contentHash": "7420b9f2dfc0ba95094ca522d1c08998abf4a8e2abe18f2d384f5970bbf547b9", - "functions": [], - "classes": [ - { - "name": "TelemetryStore", - "methods": [ - "constructor", - "track", - "setEnabled", - "isEnabled", - "getSummary", - "getEvents", - "clear", - "close" - ], - "properties": [ - "db", - "enabled" - ], - "exported": true, - "lineCount": 128 - }, - { - "name": "TelemetryCollector", - "methods": [ - "constructor", - "recordToolUse", - "recordCommand", - "recordError", - "recordCapabilityGap", - "recordSession", - "upsertEvent", - "getReport", - "flush", - "setEnabled", - "isEnabled", - "close" - ], - "properties": [ - "db", - "enabled", - "dataDir" - ], - "exported": true, - "lineCount": 98 - } - ], - "imports": [ - { - "source": "better-sqlite3", - "specifiers": [ - "Database" - ] - }, - { - "source": "better-sqlite3", - "specifiers": [ - "DatabaseType" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - } - ], - "exports": [ - "TELEMETRY_EVENTS", - "TelemetryStore", - "TelemetryCollector" - ], - "totalLines": 325, - "hasStructuralAnalysis": true - }, - "packages/core/src/vault.ts": { - "filePath": "packages/core/src/vault.ts", - "contentHash": "fd82958c3c19d7047e99ea02b8625e0c005ab71789f9d39ce8bf783e77665440", - "functions": [], - "classes": [ - { - "name": "VaultStore", - "methods": [ - "constructor", - "ensureKey", - "encrypt", - "decrypt", - "readVault", - "writeVault", - "set", - "setAsync", - "get", - "delete", - "deleteAsync", - "list", - "has", - "setConnectorCredential", - "getConnectorCredential", - "migrateFromConfig" - ], - "properties": [ - "dataDir", - "vaultPath", - "keyPath", - "encryptionKey" - ], - "exported": true, - "lineCount": 266 - } - ], - "imports": [ - { - "source": "node:crypto", - "specifiers": [ - "* as crypto" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:child_process", - "specifiers": [ - "execFileSync" - ] - }, - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "createCoreLogger" - ] - } - ], - "exports": [ - "VaultStore" - ], - "totalLines": 300, - "hasStructuralAnalysis": true - }, - "packages/core/tests/compliance/template-store.test.ts": { - "filePath": "packages/core/tests/compliance/template-store.test.ts", - "contentHash": "8e145e14c4e68909b28a59524b02c0d2b89e3fe11e3dbafbcc31927bd190c0fc", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../../src/compliance/template-store.js", - "specifiers": [ - "ComplianceTemplateStore", - "KVARK_TEMPLATE_NAME" - ] - }, - { - "source": "../../src/compliance/types.js", - "specifiers": [ - "ComplianceTemplateSections" - ] - } - ], - "exports": [], - "totalLines": 255, - "hasStructuralAnalysis": true - }, - "packages/core/tests/config.test.ts": { - "filePath": "packages/core/tests/config.test.ts", - "contentHash": "c4cf1f72cb42e5dc1b953b4d332c1aaed8dcfb6d756928e54e1f26d9a8da4afc", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "../src/config.js", - "specifiers": [ - "WaggleConfig", - "ProviderEntry", - "TeamServerConfig" - ] - } - ], - "exports": [], - "totalLines": 232, - "hasStructuralAnalysis": true - }, - "packages/core/tests/cron-store.test.ts": { - "filePath": "packages/core/tests/cron-store.test.ts", - "contentHash": "809aaf2a86b5d89c4c7250f3fdb276646ad45383dbe546a24edfe628de657ab0", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../src/cron-store.js", - "specifiers": [ - "CronStore", - "CreateScheduleInput" - ] - } - ], - "exports": [], - "totalLines": 178, - "hasStructuralAnalysis": true - }, - "packages/core/tests/embedding-provider-quota.test.ts": { - "filePath": "packages/core/tests/embedding-provider-quota.test.ts", - "contentHash": "0d8468ea27cfdaa17fe62a05fcbdb04526fd79143c75072b508a6d0475831efc", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach", - "vi" - ] - }, - { - "source": "better-sqlite3", - "specifiers": [ - "Database" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "createEmbeddingProvider", - "EmbeddingQuotaExceededError", - "getMinimumTierForProvider" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "TierError", - "TIER_CAPABILITIES" - ] - } - ], - "exports": [], - "totalLines": 268, - "hasStructuralAnalysis": true - }, - "packages/core/tests/file-indexer.test.ts": { - "filePath": "packages/core/tests/file-indexer.test.ts", - "contentHash": "55779d96136adf090a14a8a9d49e393dc4bb5af1117cf93eb4947195cfee97c7", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach", - "vi" - ] - }, - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "FrameStore" - ] - }, - { - "source": "../src/file-indexer.js", - "specifiers": [ - "FileIndexer", - "MAX_CONTENT_BYTES" - ] - } - ], - "exports": [], - "totalLines": 268, - "hasStructuralAnalysis": true - }, - "packages/core/tests/file-store-s3.test.ts": { - "filePath": "packages/core/tests/file-store-s3.test.ts", - "contentHash": "e5a269756f29fe6d49eb34459458a38d0a5a31ac452697b7e7103e2717ad45e4", - "functions": [], - "classes": [ - { - "name": "MockS3Client", - "methods": [ - "constructor" - ], - "properties": [ - "send" - ], - "exported": false, - "lineCount": 4 - } - ], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach" - ] - }, - { - "source": "../src/file-store.js", - "specifiers": [ - "S3FileStore", - "S3Config" - ] - } - ], - "exports": [], - "totalLines": 237, - "hasStructuralAnalysis": true - }, - "packages/core/tests/install-audit-check-parity.test.ts": { - "filePath": "packages/core/tests/install-audit-check-parity.test.ts", - "contentHash": "d3c1ced34658d5de8c03984c2179182dff9e29e1802d983f1cf83595d71adf6f", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "sqlInList", - "RISK_LEVELS", - "APPROVAL_CLASSES", - "AUDIT_ACTIONS", - "AUDIT_CAPABILITY_TYPES", - "AUDIT_INITIATORS", - "TRUST_SOURCES" - ] - }, - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "SCHEMA_SQL" - ] - }, - { - "source": "../src/install-audit.js", - "specifiers": [ - "INSTALL_AUDIT_TABLE_SQL" - ] - } - ], - "exports": [], - "totalLines": 45, - "hasStructuralAnalysis": true - }, - "packages/core/tests/install-audit.test.ts": { - "filePath": "packages/core/tests/install-audit.test.ts", - "contentHash": "5268badc7a1406f4c60b67f63f2a2911919f907a97d14c47bfbe34c13a846487", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../src/install-audit.js", - "specifiers": [ - "InstallAuditStore", - "RecordAuditInput" - ] - } - ], - "exports": [], - "totalLines": 480, - "hasStructuralAnalysis": true - }, - "packages/core/tests/litellm-embedder.test.ts": { - "filePath": "packages/core/tests/litellm-embedder.test.ts", - "contentHash": "9b07ecccbb289216318140a86f2f2550ee67dbfad4831300ea93249c3083cd47", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi" - ] - }, - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "createLiteLLMEmbedder" - ] - } - ], - "exports": [], - "totalLines": 163, - "hasStructuralAnalysis": true - }, - "packages/core/tests/memory-import.test.ts": { - "filePath": "packages/core/tests/memory-import.test.ts", - "contentHash": "2f1cb8cad32b55c7f637eaeba37c2ff93b8cbe5228639c60b72da7ba1fceac85", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/memory-import", - "specifiers": [ - "parseChatGPTExport", - "parseClaudeExport", - "extractKnowledge", - "processImport" - ] - } - ], - "exports": [], - "totalLines": 341, - "hasStructuralAnalysis": true - }, - "packages/core/tests/migration.test.ts": { - "filePath": "packages/core/tests/migration.test.ts", - "contentHash": "0ad4ddb0f3193b56c95eeb68ed97512734846f0d8d97b35eefbddddb8da0bfd2", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "FrameStore" - ] - }, - { - "source": "../src/migration.js", - "specifiers": [ - "needsMigration", - "migrateToMultiMind" - ] - } - ], - "exports": [], - "totalLines": 126, - "hasStructuralAnalysis": true - }, - "packages/core/tests/skill-hashes.test.ts": { - "filePath": "packages/core/tests/skill-hashes.test.ts", - "contentHash": "2bccc4e1c28065486d92cb160b23730a1d9ff97bd52f1de2037ee35bcea2feb8", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../src/skill-hashes.js", - "specifiers": [ - "SkillHashStore", - "computeSkillHash" - ] - } - ], - "exports": [], - "totalLines": 116, - "hasStructuralAnalysis": true - }, - "packages/core/tests/structured-tasks.test.ts": { - "filePath": "packages/core/tests/structured-tasks.test.ts", - "contentHash": "fc510f0d6e6c1a0b85f05d2b97c9c7a31782108e010c50ca9b2c1ffce48fb47c", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "AwarenessLayer" - ] - } - ], - "exports": [], - "totalLines": 100, - "hasStructuralAnalysis": true - }, - "packages/core/tests/team-sync.test.ts": { - "filePath": "packages/core/tests/team-sync.test.ts", - "contentHash": "389cebfec6808eec3b45f77a5d1101bc21f4f098f2158b3dafc87183c4a1b6a5", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "../src/team-sync.js", - "specifiers": [ - "frameToEntity", - "entityToSyncedFrame", - "TeamSync", - "TeamSyncConfig" - ] - }, - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "MemoryFrame" - ] - } - ], - "exports": [], - "totalLines": 298, - "hasStructuralAnalysis": true - }, - "packages/core/tests/telemetry.test.ts": { - "filePath": "packages/core/tests/telemetry.test.ts", - "contentHash": "4eb81456f0c3a8ad253d9fc05ed8b27ba61d5febd51e5034b45851c8796a91ce", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach" - ] - }, - { - "source": "../src/telemetry.js", - "specifiers": [ - "TelemetryCollector" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - } - ], - "exports": [], - "totalLines": 113, - "hasStructuralAnalysis": true - }, - "packages/core/tests/vault-concurrency.test.ts": { - "filePath": "packages/core/tests/vault-concurrency.test.ts", - "contentHash": "87f4181a0e3752aea5a6b00ce188cbc1d2f7597dd2bd304c43501e08cef0aadf", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "../src/vault.js", - "specifiers": [ - "VaultStore" - ] - } - ], - "exports": [], - "totalLines": 137, - "hasStructuralAnalysis": true - }, - "packages/core/tests/vault-edge-cases.test.ts": { - "filePath": "packages/core/tests/vault-edge-cases.test.ts", - "contentHash": "3ac39d8eeccf0ad618a8eddd91a080e0103cdc82748563229ac00bd0f490a76b", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "../src/vault.js", - "specifiers": [ - "VaultStore" - ] - } - ], - "exports": [], - "totalLines": 262, - "hasStructuralAnalysis": true - }, - "packages/core/tests/vault.test.ts": { - "filePath": "packages/core/tests/vault.test.ts", - "contentHash": "2b3594bec18ce008f56f4cd032a99dd640d700b28bbecebad35aa6f6080dc14a", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "afterEach", - "vi" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "../src/vault.js", - "specifiers": [ - "VaultStore", - "VaultEntry" - ] - } - ], - "exports": [], - "totalLines": 392, - "hasStructuralAnalysis": true - }, - "packages/core/tsconfig.json": { - "filePath": "packages/core/tsconfig.json", - "contentHash": "a57864dee001d032dcac41711ba5a9c07c8c1e15fe8969bfe933d2bd0bb10b13", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 22, - "hasStructuralAnalysis": true - }, - "packages/core/vitest.config.ts": { - "filePath": "packages/core/vitest.config.ts", - "contentHash": "4ba97855139186dae9493b7e8a537d4eb0c7331d05d7f877688d4133e9ee02e7", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest/config", - "specifiers": [ - "defineConfig" - ] - } - ], - "exports": [], - "totalLines": 10, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-cli/assets/mcp-health-check-fixed.js": { - "filePath": "packages/hive-mind-cli/assets/mcp-health-check-fixed.js", - "contentHash": "daf25b6a25e8e4c57ca36dfa11e1b0d5cf9c15630a14fae6fdefbd08b9bd4f1a", - "functions": [ - { - "name": "envNumber", - "params": [ - "name", - "fallback" - ], - "exported": false, - "lineCount": 4 - }, - { - "name": "stateFilePath", - "params": [], - "exported": false, - "lineCount": 6 - }, - { - "name": "configPaths", - "params": [], - "exported": false, - "lineCount": 19 - }, - { - "name": "readJsonFile", - "params": [ - "filePath" - ], - "exported": false, - "lineCount": 7 - }, - { - "name": "loadState", - "params": [ - "filePath" - ], - "exported": false, - "lineCount": 12 - }, - { - "name": "saveState", - "params": [ - "filePath", - "state" - ], - "exported": false, - "lineCount": 8 - }, - { - "name": "readRawStdin", - "params": [], - "exported": false, - "lineCount": 20 - }, - { - "name": "safeParse", - "params": [ - "raw" - ], - "exported": false, - "lineCount": 7 - }, - { - "name": "extractMcpTarget", - "params": [ - "input" - ], - "exported": false, - "lineCount": 35 - }, - { - "name": "extractMcpTargetFromRaw", - "params": [ - "raw" - ], - "exported": false, - "lineCount": 11 - }, - { - "name": "resolveServerConfig", - "params": [ - "serverName" - ], - "exported": false, - "lineCount": 17 - }, - { - "name": "markHealthy", - "params": [ - "state", - "serverName", - "now" - ], - "exported": false, - "lineCount": 13 - }, - { - "name": "markUnhealthy", - "params": [ - "state", - "serverName", - "now", - "failureCode", - "errorMessage" - ], - "exported": false, - "lineCount": 17 - }, - { - "name": "failureSummary", - "params": [ - "input" - ], - "exported": false, - "lineCount": 14 - }, - { - "name": "detectFailureCode", - "params": [ - "text" - ], - "exported": false, - "lineCount": 9 - }, - { - "name": "requestHttp", - "params": [ - "urlString", - "headers", - "timeoutMs" - ], - "exported": false, - "lineCount": 44 - }, - { - "name": "probeCommandServer", - "params": [ - "serverName", - "config" - ], - "exported": false, - "lineCount": 93 - }, - { - "name": "probeServer", - "params": [ - "serverName", - "resolvedConfig" - ], - "exported": false, - "lineCount": 32 - }, - { - "name": "reconnectCommand", - "params": [ - "serverName" - ], - "exported": false, - "lineCount": 11 - }, - { - "name": "attemptReconnect", - "params": [ - "serverName" - ], - "exported": false, - "lineCount": 28 - }, - { - "name": "shouldFailOpen", - "params": [], - "exported": false, - "lineCount": 3 - }, - { - "name": "emitLogs", - "params": [ - "logs" - ], - "exported": false, - "lineCount": 5 - }, - { - "name": "handlePreToolUse", - "params": [ - "rawInput", - "input", - "target", - "statePathValue", - "now" - ], - "exported": false, - "lineCount": 64 - }, - { - "name": "handlePostToolUseFailure", - "params": [ - "rawInput", - "input", - "target", - "statePathValue", - "now" - ], - "exported": false, - "lineCount": 47 - }, - { - "name": "main", - "params": [], - "exported": false, - "lineCount": 36 - } - ], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 652, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-cli/docs/WINDOWS-QUIRKS.md": { - "filePath": "packages/hive-mind-cli/docs/WINDOWS-QUIRKS.md", - "contentHash": "69d89a21e3d72adf64720c883aab78acce0ee7148eb0aa813c301b08fa785efa", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 116, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-cli/NOTICE": { - "filePath": "packages/hive-mind-cli/NOTICE", - "contentHash": "e66618b880ebd171ee3c1fcc9faa101950eff95d9b566e4090c30ba8d01061fd", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 37, - "hasStructuralAnalysis": false - }, - "packages/hive-mind-cli/package.json": { - "filePath": "packages/hive-mind-cli/package.json", - "contentHash": "46ba16d9c1ecca91f4a747ef4e228814e0a842252aec2d7c035e210a265f6e87", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 67, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-cli/postinstall.cjs": { - "filePath": "packages/hive-mind-cli/postinstall.cjs", - "contentHash": "793bb89a6949c99528a143027e22fcce61fc66e42a63e84a68cf72b1aadca43a", - "functions": [ - { - "name": "log", - "params": [ - "msg" - ], - "exported": false, - "lineCount": 3 - }, - { - "name": "fileContains", - "params": [ - "filePath", - "needle" - ], - "exported": false, - "lineCount": 7 - }, - { - "name": "ensureDir", - "params": [ - "dir" - ], - "exported": false, - "lineCount": 5 - }, - { - "name": "dropOverride", - "params": [ - "reason" - ], - "exported": false, - "lineCount": 26 - }, - { - "name": "detectAndPatch", - "params": [], - "exported": false, - "lineCount": 21 - } - ], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 136, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-cli/README.md": { - "filePath": "packages/hive-mind-cli/README.md", - "contentHash": "34d823634b6de146d166fedc46e25aec77d9106ca5c23e320e9618214170161c", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 56, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-cli/src/commands/cognify.ts": { - "filePath": "packages/hive-mind-cli/src/commands/cognify.ts", - "contentHash": "681aa033d2c1aec64db79ad42f974d6fe172330e009b9daec0e7e5072e434dfc", - "functions": [ - { - "name": "extractCandidateEntities", - "params": [ - "text" - ], - "returnType": "string[]", - "exported": false, - "lineCount": 19 - }, - { - "name": "runCognify", - "params": [ - "options" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 61 - }, - { - "name": "safeParse", - "params": [ - "raw" - ], - "returnType": "Record", - "exported": false, - "lineCount": 4 - } - ], - "classes": [], - "imports": [ - { - "source": "../setup.js", - "specifiers": [ - "openPersonalMind", - "CliEnv" - ] - }, - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "normalizeEntityName" - ] - } - ], - "exports": [ - "runCognify" - ], - "totalLines": 127, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-cli/src/commands/compile-wiki.ts": { - "filePath": "packages/hive-mind-cli/src/commands/compile-wiki.ts", - "contentHash": "5544862aff0da628c906dbc6b43464839881ba1a3cfbc5a6518b8269544b407f", - "functions": [ - { - "name": "runCompileWiki", - "params": [ - "options" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 35 - } - ], - "classes": [], - "imports": [ - { - "source": "../setup.js", - "specifiers": [ - "openPersonalMind", - "CliEnv" - ] - }, - { - "source": "@waggle/hive-mind-wiki-compiler", - "specifiers": [ - "WikiCompiler", - "CompilationState", - "resolveSynthesizer" - ] - } - ], - "exports": [ - "runCompileWiki" - ], - "totalLines": 69, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-cli/src/commands/doctor.ts": { - "filePath": "packages/hive-mind-cli/src/commands/doctor.ts", - "contentHash": "e7e06b3c4cd4534fb49075f16ae5c98f5fde3f663bd305d375e11ceb57eb7bd8", - "functions": [ - { - "name": "renderDoctorResult", - "params": [ - "result" - ], - "returnType": "string", - "exported": true, - "lineCount": 19 - }, - { - "name": "spawnSelfProbe", - "params": [], - "returnType": "Promise", - "exported": false, - "lineCount": 56 - }, - { - "name": "frameRoundtripProbe", - "params": [ - "env" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 60 - }, - { - "name": "inspectAndCleanQuarantineCache", - "params": [], - "returnType": "DoctorStep", - "exported": false, - "lineCount": 30 - }, - { - "name": "runDoctor", - "params": [ - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 60 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "node:child_process", - "specifiers": [ - "spawn" - ] - }, - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "FrameStore", - "SessionStore", - "Importance" - ] - }, - { - "source": "../setup.js", - "specifiers": [ - "openPersonalMind", - "resolveDataDir", - "CliEnv" - ] - } - ], - "exports": [ - "renderDoctorResult", - "runDoctor" - ], - "totalLines": 280, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-cli/src/commands/harvest-local.test.ts": { - "filePath": "packages/hive-mind-cli/src/commands/harvest-local.test.ts", - "contentHash": "10610cc332bb1c33d560ebf504c3588808c41e1c1346a1c18dbda70867f93fe4", - "functions": [ - { - "name": "writeClaudeExport", - "params": [ - "dir", - "convCreatedAt" - ], - "returnType": "string", - "exported": false, - "lineCount": 24 - }, - { - "name": "fetchCreatedAt", - "params": [ - "env" - ], - "returnType": "{ id: number; created_at: string } | undefined", - "exported": false, - "lineCount": 9 - }, - { - "name": "writeClaudeExportWithAssistantLength", - "params": [ - "dir", - "assistantLen" - ], - "returnType": "string", - "exported": false, - "lineCount": 22 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "afterEach", - "beforeEach", - "describe", - "expect", - "it", - "vi" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "mkdtempSync", - "rmSync", - "writeFileSync" - ] - }, - { - "source": "node:os", - "specifiers": [ - "tmpdir" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join" - ] - }, - { - "source": "../setup.js", - "specifiers": [ - "openPersonalMind", - "CliEnv" - ] - }, - { - "source": "./harvest-local.js", - "specifiers": [ - "runHarvestLocal" - ] - } - ], - "exports": [], - "totalLines": 400, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-cli/src/commands/harvest-local.ts": { - "filePath": "packages/hive-mind-cli/src/commands/harvest-local.ts", - "contentHash": "d81ec3e01dfc61e91c15394cc86a3845d78b34ad9ca8b34d11675082987b8e2f", - "functions": [ - { - "name": "isIsoTimestamp", - "params": [ - "value" - ], - "returnType": "boolean", - "exported": false, - "lineCount": 6 - }, - { - "name": "parseWithAdapter", - "params": [ - "source", - "pathOrJson" - ], - "returnType": "UniversalImportItem[]", - "exported": false, - "lineCount": 39 - }, - { - "name": "runHarvestLocal", - "params": [ - "options" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 150 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "ChatGPTAdapter", - "ClaudeAdapter", - "ClaudeCodeAdapter", - "GeminiAdapter", - "UniversalAdapter", - "UniversalImportItem" - ] - }, - { - "source": "../setup.js", - "specifiers": [ - "openPersonalMind", - "CliEnv" - ] - } - ], - "exports": [ - "runHarvestLocal" - ], - "totalLines": 238, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-cli/src/commands/init.ts": { - "filePath": "packages/hive-mind-cli/src/commands/init.ts", - "contentHash": "36f940591d2070f2b76cb9100963996bdfe0498f4381ad34e088459e8066aaea", - "functions": [ - { - "name": "runInit", - "params": [ - "options" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 22 - }, - { - "name": "renderInitResult", - "params": [ - "result", - "format" - ], - "returnType": "string", - "exported": true, - "lineCount": 22 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "../setup.js", - "specifiers": [ - "openPersonalMind", - "resolveDataDir", - "CliEnv" - ] - } - ], - "exports": [ - "runInit", - "renderInitResult" - ], - "totalLines": 72, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-cli/src/commands/maintenance.ts": { - "filePath": "packages/hive-mind-cli/src/commands/maintenance.ts", - "contentHash": "592ba49193c6da925a6a3e6f3755a00d1feabd24e196dce1dcc87b42293eb1df", - "functions": [ - { - "name": "runMaintenance", - "params": [ - "options" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 76 - } - ], - "classes": [], - "imports": [ - { - "source": "../setup.js", - "specifiers": [ - "openPersonalMind", - "CliEnv" - ] - }, - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "reconcileIndexes" - ] - }, - { - "source": "./cognify.js", - "specifiers": [ - "runCognify" - ] - }, - { - "source": "./compile-wiki.js", - "specifiers": [ - "runCompileWiki" - ] - } - ], - "exports": [ - "runMaintenance" - ], - "totalLines": 126, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-cli/src/commands/mcp-call.ts": { - "filePath": "packages/hive-mind-cli/src/commands/mcp-call.ts", - "contentHash": "53a5daf1313e4237000902659f5aa068e262c91b81992ffe9bff0747627ebab6", - "functions": [ - { - "name": "spawnMcpChild", - "params": [ - "envOverride" - ], - "returnType": "{\r\n stdin: Writable;\r\n stdout: Readable;\r\n kill: () => void;\r\n exitPromise: Promise;\r\n}", - "exported": false, - "lineCount": 30 - }, - { - "name": "createLineParser", - "params": [], - "returnType": "{\r\n feed: (chunk: string) => Array>;\r\n}", - "exported": false, - "lineCount": 25 - }, - { - "name": "awaitResponse", - "params": [ - "stdout", - "parser", - "id", - "timeoutMs" - ], - "returnType": "Promise>", - "exported": false, - "lineCount": 27 - }, - { - "name": "runMcpCall", - "params": [ - "options" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 80 - }, - { - "name": "renderMcpCallResult", - "params": [ - "result", - "format" - ], - "returnType": "string", - "exported": true, - "lineCount": 22 - } - ], - "classes": [], - "imports": [ - { - "source": "node:child_process", - "specifiers": [ - "spawn", - "ChildProcessByStdio" - ] - }, - { - "source": "node:stream", - "specifiers": [ - "Readable", - "Writable" - ] - }, - { - "source": "./mcp-start.js", - "specifiers": [ - "resolveMcpServerEntry" - ] - } - ], - "exports": [ - "runMcpCall", - "renderMcpCallResult" - ], - "totalLines": 237, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-cli/src/commands/mcp-start.ts": { - "filePath": "packages/hive-mind-cli/src/commands/mcp-start.ts", - "contentHash": "6608dbed6ce63179d7849782e3760a580beb6b54685f7c1e28fc23021570c944", - "functions": [ - { - "name": "resolveMcpServerEntry", - "params": [], - "returnType": "string", - "exported": true, - "lineCount": 13 - }, - { - "name": "runMcpStart", - "params": [ - "options" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 33 - } - ], - "classes": [], - "imports": [ - { - "source": "node:child_process", - "specifiers": [ - "spawn" - ] - }, - { - "source": "node:module", - "specifiers": [ - "createRequire" - ] - } - ], - "exports": [ - "resolveMcpServerEntry", - "runMcpStart" - ], - "totalLines": 81, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-cli/src/commands/recall-context.ts": { - "filePath": "packages/hive-mind-cli/src/commands/recall-context.ts", - "contentHash": "c74183fe9eb92b373a9d040360b0280e8d8275e04c0761836e3daca0f329b3c4", - "functions": [ - { - "name": "runRecallContext", - "params": [ - "options" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 62 - }, - { - "name": "renderRecallResult", - "params": [ - "result", - "format" - ], - "returnType": "string", - "exported": true, - "lineCount": 14 - } - ], - "classes": [], - "imports": [ - { - "source": "../setup.js", - "specifiers": [ - "openPersonalMind", - "CliEnv" - ] - } - ], - "exports": [ - "runRecallContext", - "renderRecallResult" - ], - "totalLines": 111, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-cli/src/commands/save-session.ts": { - "filePath": "packages/hive-mind-cli/src/commands/save-session.ts", - "contentHash": "1c4ad018aba3eeac2e89b7a9c059c69c2b034e5e252ebe1dfe1b6afa9b0f2548", - "functions": [ - { - "name": "readStdinSync", - "params": [], - "returnType": "string", - "exported": false, - "lineCount": 9 - }, - { - "name": "runSaveSession", - "params": [ - "options" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 58 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "../setup.js", - "specifiers": [ - "openPersonalMind", - "CliEnv" - ] - }, - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "Importance" - ] - } - ], - "exports": [ - "runSaveSession" - ], - "totalLines": 100, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-cli/src/commands/status.ts": { - "filePath": "packages/hive-mind-cli/src/commands/status.ts", - "contentHash": "b89057d1741d210de49ec52e11fd23b240649d93e444711457175b5bcfd8a615", - "functions": [ - { - "name": "runStatus", - "params": [ - "options" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 73 - }, - { - "name": "previewOf", - "params": [ - "content" - ], - "returnType": "string", - "exported": false, - "lineCount": 6 - }, - { - "name": "renderStatusResult", - "params": [ - "result", - "format" - ], - "returnType": "string", - "exported": true, - "lineCount": 44 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "../setup.js", - "specifiers": [ - "openPersonalMind", - "resolveDataDir", - "CliEnv" - ] - } - ], - "exports": [ - "runStatus", - "renderStatusResult" - ], - "totalLines": 163, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-cli/src/dispatch.test.ts": { - "filePath": "packages/hive-mind-cli/src/dispatch.test.ts", - "contentHash": "3a03848868dbd09fc19db81801c3404afbcd053b39525e8e8bdaab72f43a8909", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "afterEach", - "beforeEach", - "describe", - "expect", - "it" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "mkdtempSync", - "rmSync", - "writeFileSync" - ] - }, - { - "source": "node:os", - "specifiers": [ - "tmpdir" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join" - ] - }, - { - "source": "node:stream", - "specifiers": [ - "PassThrough" - ] - }, - { - "source": "./setup.js", - "specifiers": [ - "openPersonalMind", - "CliEnv" - ] - }, - { - "source": "./dispatch.js", - "specifiers": [ - "dispatch" - ] - }, - { - "source": "./commands/mcp-call.js", - "specifiers": [ - "runMcpCall" - ] - } - ], - "exports": [], - "totalLines": 443, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-cli/src/dispatch.ts": { - "filePath": "packages/hive-mind-cli/src/dispatch.ts", - "contentHash": "1c624e11d30750d1315b8d09d75aefcfdb9952daa052878d36043cc7cf667866", - "functions": [ - { - "name": "intArg", - "params": [ - "values", - "key" - ], - "returnType": "number | undefined", - "exported": false, - "lineCount": 6 - }, - { - "name": "formatOf", - "params": [ - "values" - ], - "returnType": "OutputFormat", - "exported": false, - "lineCount": 3 - }, - { - "name": "json", - "params": [ - "obj" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "dispatch", - "params": [ - "args" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 158 - } - ], - "classes": [], - "imports": [ - { - "source": "./commands/recall-context.js", - "specifiers": [ - "runRecallContext", - "renderRecallResult" - ] - }, - { - "source": "./commands/save-session.js", - "specifiers": [ - "runSaveSession" - ] - }, - { - "source": "./commands/harvest-local.js", - "specifiers": [ - "runHarvestLocal", - "HarvestSource" - ] - }, - { - "source": "./commands/cognify.js", - "specifiers": [ - "runCognify" - ] - }, - { - "source": "./commands/compile-wiki.js", - "specifiers": [ - "runCompileWiki" - ] - }, - { - "source": "./commands/maintenance.js", - "specifiers": [ - "runMaintenance" - ] - }, - { - "source": "./commands/init.js", - "specifiers": [ - "runInit", - "renderInitResult" - ] - }, - { - "source": "./commands/status.js", - "specifiers": [ - "runStatus", - "renderStatusResult" - ] - }, - { - "source": "./commands/mcp-start.js", - "specifiers": [ - "runMcpStart" - ] - }, - { - "source": "./commands/mcp-call.js", - "specifiers": [ - "runMcpCall", - "renderMcpCallResult" - ] - }, - { - "source": "./commands/doctor.js", - "specifiers": [ - "runDoctor", - "renderDoctorResult" - ] - }, - { - "source": "./setup.js", - "specifiers": [ - "CliEnv" - ] - }, - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "Importance" - ] - } - ], - "exports": [ - "dispatch" - ], - "totalLines": 203, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-cli/src/index.ts": { - "filePath": "packages/hive-mind-cli/src/index.ts", - "contentHash": "8d2705844868b6a482fddee8e3dc9ec2b6671b27d51dd88e1feaf6506b0d8ec1", - "functions": [ - { - "name": "parseRootArgs", - "params": [ - "argv" - ], - "returnType": "DispatchArgs | null", - "exported": false, - "lineCount": 51 - }, - { - "name": "printHelp", - "params": [], - "returnType": "void", - "exported": false, - "lineCount": 29 - }, - { - "name": "main", - "params": [], - "returnType": "Promise", - "exported": false, - "lineCount": 23 - } - ], - "classes": [], - "imports": [ - { - "source": "node:util", - "specifiers": [ - "parseArgs" - ] - }, - { - "source": "./dispatch.js", - "specifiers": [ - "dispatch", - "DispatchArgs" - ] - } - ], - "exports": [], - "totalLines": 137, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-cli/src/setup.test.ts": { - "filePath": "packages/hive-mind-cli/src/setup.test.ts", - "contentHash": "664d8dc944de81dec30f937b06364ffe7ee49869a3cc06de93fea05504ee0a19", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "afterEach", - "beforeEach", - "describe", - "expect", - "it" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "existsSync", - "mkdtempSync", - "rmSync" - ] - }, - { - "source": "node:os", - "specifiers": [ - "tmpdir" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join" - ] - }, - { - "source": "./setup.js", - "specifiers": [ - "openPersonalMind", - "resolveDataDir" - ] - } - ], - "exports": [], - "totalLines": 73, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-cli/src/setup.ts": { - "filePath": "packages/hive-mind-cli/src/setup.ts", - "contentHash": "c837db6afcd45d6231ebff1325efa8d4ebbccae409a03df8b03a63afd8720de4", - "functions": [ - { - "name": "resolveDataDir", - "params": [], - "returnType": "string", - "exported": true, - "lineCount": 10 - }, - { - "name": "embedderConfigFromEnv", - "params": [ - "dataDir" - ], - "returnType": "EmbeddingProviderConfig", - "exported": false, - "lineCount": 34 - }, - { - "name": "openPersonalMind", - "params": [ - "dataDir" - ], - "returnType": "CliEnv", - "exported": true, - "lineCount": 52 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "MindDB", - "FrameStore", - "HybridSearch", - "KnowledgeGraph", - "IdentityLayer", - "AwarenessLayer", - "SessionStore", - "HarvestSourceStore", - "WorkspaceManager", - "MultiMindCache", - "createEmbeddingProvider", - "EmbeddingProviderConfig", - "EmbeddingProviderInstance" - ] - } - ], - "exports": [ - "resolveDataDir", - "openPersonalMind" - ], - "totalLines": 154, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-cli/tsconfig.json": { - "filePath": "packages/hive-mind-cli/tsconfig.json", - "contentHash": "a903a5a8b776511357b9e839652f2efec1ed7ccbe07f21e44dfdccfa64277468", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 17, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/CONTRIBUTING.md": { - "filePath": "packages/hive-mind-core/CONTRIBUTING.md", - "contentHash": "1294a26c2ceef929b80c6db6e1debeed1b3fe2a104f0159df9d4f08f0a137477", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 88, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/package.json": { - "filePath": "packages/hive-mind-core/package.json", - "contentHash": "47ee6a7a6928b923ba9fc0c25d911870f55d48d481f07b33e6a8c8f28ab72a5c", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 30, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/README.md": { - "filePath": "packages/hive-mind-core/README.md", - "contentHash": "11600c658fcf5d6ec5f4e24f29b01d14c7197e059cf82ed9492dcd057e75eb4e", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 46, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/harvest/chatgpt-adapter.ts": { - "filePath": "packages/hive-mind-core/src/harvest/chatgpt-adapter.ts", - "contentHash": "bbaa3853f628b17e48f4e39a70d6145ecbe509d4baf8151fa4b9d802b78c2f28", - "functions": [], - "classes": [ - { - "name": "ChatGPTAdapter", - "methods": [ - "parse" - ], - "properties": [ - "sourceType", - "displayName" - ], - "exported": true, - "lineCount": 143 - } - ], - "imports": [ - { - "source": "node:crypto", - "specifiers": [ - "randomUUID" - ] - }, - { - "source": "./types.js", - "specifiers": [ - "SourceAdapter", - "UniversalImportItem", - "ConversationMessage" - ] - }, - { - "source": "./raw-types.js", - "specifiers": [ - "asRecord", - "getArray", - "getNumber", - "getString", - "RawRecord" - ] - } - ], - "exports": [ - "ChatGPTAdapter" - ], - "totalLines": 155, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/harvest/chunk-utils.ts": { - "filePath": "packages/hive-mind-core/src/harvest/chunk-utils.ts", - "contentHash": "36ce9cda2fa2ef87f7c119167b6f83f11cf63a0ac451195590ac92ba1d891f22", - "functions": [ - { - "name": "chunkByParagraphs", - "params": [ - "text", - "maxLen" - ], - "returnType": "string[]", - "exported": true, - "lineCount": 21 - } - ], - "classes": [], - "imports": [], - "exports": [ - "chunkByParagraphs" - ], - "totalLines": 31, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/harvest/claude-adapter.ts": { - "filePath": "packages/hive-mind-core/src/harvest/claude-adapter.ts", - "contentHash": "704327dd05296b51f6916a4e77a857da7226c2725c6af3317e2e2be8b300d7ee", - "functions": [], - "classes": [ - { - "name": "ClaudeAdapter", - "methods": [ - "parse", - "parseMessage", - "parseConversation", - "parseProjectDocs", - "parseMemories", - "parseDesignChat" - ], - "properties": [ - "sourceType", - "displayName" - ], - "exported": true, - "lineCount": 244 - } - ], - "imports": [ - { - "source": "node:crypto", - "specifiers": [ - "randomUUID" - ] - }, - { - "source": "./types.js", - "specifiers": [ - "SourceAdapter", - "UniversalImportItem", - "ConversationMessage" - ] - }, - { - "source": "./raw-types.js", - "specifiers": [ - "asRecord", - "firstString", - "getArray", - "getString", - "RawRecord" - ] - } - ], - "exports": [ - "ClaudeAdapter" - ], - "totalLines": 269, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/harvest/claude-code-adapter.ts": { - "filePath": "packages/hive-mind-core/src/harvest/claude-code-adapter.ts", - "contentHash": "d9053a4f1c754185113dddd4d78c41d88977379c9919551005934d301a45c98c", - "functions": [ - { - "name": "parseFrontmatter", - "params": [ - "content" - ], - "returnType": "{ frontmatter: MemoryFrontmatter; body: string }", - "exported": false, - "lineCount": 20 - }, - { - "name": "readFilesRecursive", - "params": [ - "dir", - "ext" - ], - "returnType": "{ filePath: string; content: string }[]", - "exported": false, - "lineCount": 17 - } - ], - "classes": [ - { - "name": "ClaudeCodeAdapter", - "methods": [ - "parse", - "scan", - "scanMindDir", - "extractDecisions", - "scanMemoryDir", - "getFileMtime" - ], - "properties": [ - "sourceType", - "displayName" - ], - "exported": true, - "lineCount": 261 - } - ], - "imports": [ - { - "source": "node:crypto", - "specifiers": [ - "randomUUID" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "./types.js", - "specifiers": [ - "FilesystemAdapter", - "UniversalImportItem", - "ImportItemType" - ] - } - ], - "exports": [ - "ClaudeCodeAdapter" - ], - "totalLines": 352, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/harvest/dedup.ts": { - "filePath": "packages/hive-mind-core/src/harvest/dedup.ts", - "contentHash": "af7849d44b22a56c5a995bb840fdce95e00fff49a669207756a3416bcf25d6c9", - "functions": [ - { - "name": "normalize", - "params": [ - "text" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "contentHash", - "params": [ - "text" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "harvestSetHash", - "params": [ - "items" - ], - "returnType": "string", - "exported": true, - "lineCount": 8 - }, - { - "name": "trigramSimilarity", - "params": [ - "a", - "b" - ], - "returnType": "number", - "exported": false, - "lineCount": 18 - }, - { - "name": "dedup", - "params": [ - "incoming", - "existingContents", - "similarityThreshold" - ], - "returnType": "DedupResult", - "exported": true, - "lineCount": 43 - } - ], - "classes": [], - "imports": [ - { - "source": "node:crypto", - "specifiers": [ - "createHash" - ] - }, - { - "source": "./types.js", - "specifiers": [ - "DistilledKnowledge" - ] - } - ], - "exports": [ - "harvestSetHash", - "dedup" - ], - "totalLines": 113, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/harvest/extract-kg-entities.ts": { - "filePath": "packages/hive-mind-core/src/harvest/extract-kg-entities.ts", - "contentHash": "50760cc99659f3e6c3f550469ab45d58df64ae07c2227ec712dad7010c2f730f", - "functions": [ - { - "name": "buildBatchPrompt", - "params": [ - "frames" - ], - "returnType": "string", - "exported": false, - "lineCount": 11 - }, - { - "name": "unwrapFencedBlock", - "params": [ - "text" - ], - "returnType": "string", - "exported": false, - "lineCount": 5 - }, - { - "name": "parseJsonlOutput", - "params": [ - "raw", - "validFrameIds" - ], - "returnType": "KgEntity[]", - "exported": false, - "lineCount": 38 - }, - { - "name": "extractKgEntities", - "params": [ - "datedFrames", - "llmCall" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 22 - }, - { - "name": "safeParseProps", - "params": [ - "raw" - ], - "returnType": "Record", - "exported": false, - "lineCount": 4 - }, - { - "name": "writeKgEntities", - "params": [ - "kg", - "extraction" - ], - "returnType": "WriteKgEntitiesResult", - "exported": true, - "lineCount": 36 - } - ], - "classes": [], - "imports": [ - { - "source": "./pipeline.js", - "specifiers": [ - "LLMCallFn" - ] - }, - { - "source": "../injection-scanner.js", - "specifiers": [ - "scanForInjection" - ] - }, - { - "source": "../logger.js", - "specifiers": [ - "createCoreLogger" - ] - }, - { - "source": "../mind/entity-normalizer.js", - "specifiers": [ - "isNoiseName", - "normalizeEntityName" - ] - }, - { - "source": "../mind/knowledge.js", - "specifiers": [ - "KnowledgeGraph" - ] - } - ], - "exports": [ - "KG_ENTITY_TYPES", - "extractKgEntities", - "writeKgEntities" - ], - "totalLines": 266, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/harvest/extract-memory-lanes.ts": { - "filePath": "packages/hive-mind-core/src/harvest/extract-memory-lanes.ts", - "contentHash": "47e51c3b7a7d60264592f63000df51f92bd5a03026776fa125cd49a69aab1004", - "functions": [ - { - "name": "factsPrompt", - "params": [ - "text" - ], - "returnType": "string", - "exported": false, - "lineCount": 22 - }, - { - "name": "eventsPrompt", - "params": [ - "text" - ], - "returnType": "string", - "exported": false, - "lineCount": 31 - }, - { - "name": "profilesPrompt", - "params": [ - "text" - ], - "returnType": "string", - "exported": false, - "lineCount": 22 - }, - { - "name": "parseJsonObject", - "params": [ - "raw" - ], - "returnType": "Record | null", - "exported": false, - "lineCount": 11 - }, - { - "name": "extractMemoryLanes", - "params": [ - "text", - "llmCall" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 68 - }, - { - "name": "writeMemoryLaneFrames", - "params": [ - "frames", - "gopId", - "extraction" - ], - "returnType": "WriteLaneFramesResult", - "exported": true, - "lineCount": 48 - } - ], - "classes": [], - "imports": [ - { - "source": "./pipeline.js", - "specifiers": [ - "LLMCallFn" - ] - }, - { - "source": "../injection-scanner.js", - "specifiers": [ - "scanForInjection" - ] - }, - { - "source": "../logger.js", - "specifiers": [ - "createCoreLogger" - ] - }, - { - "source": "../mind/frames.js", - "specifiers": [ - "FrameStore" - ] - } - ], - "exports": [ - "MIND_FACT_PREFIX", - "MIND_EVENT_PREFIX", - "MIND_PROFILE_PREFIX", - "extractMemoryLanes", - "writeMemoryLaneFrames" - ], - "totalLines": 336, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/harvest/gemini-adapter.ts": { - "filePath": "packages/hive-mind-core/src/harvest/gemini-adapter.ts", - "contentHash": "9cb1d8841f292904824b27df79d929158c7043b0867eaef47f23028d748c213c", - "functions": [], - "classes": [ - { - "name": "GeminiAdapter", - "methods": [ - "parse", - "parseConversationArray", - "parseSingleConversation", - "resolveRole", - "extractText" - ], - "properties": [ - "sourceType", - "displayName" - ], - "exported": true, - "lineCount": 151 - } - ], - "imports": [ - { - "source": "node:crypto", - "specifiers": [ - "randomUUID" - ] - }, - { - "source": "./types.js", - "specifiers": [ - "SourceAdapter", - "UniversalImportItem", - "ConversationMessage" - ] - }, - { - "source": "./raw-types.js", - "specifiers": [ - "asRecord", - "firstString", - "getArray", - "getString", - "RawRecord" - ] - } - ], - "exports": [ - "GeminiAdapter" - ], - "totalLines": 162, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/harvest/index.ts": { - "filePath": "packages/hive-mind-core/src/harvest/index.ts", - "contentHash": "e76e8158b75ad8eb15006735c1d5a03e0829e11d29ddc14cbc6026442fa78ac7", - "functions": [], - "classes": [], - "imports": [], - "exports": [ - "HarvestSourceStore", - "HarvestRunStore", - "HarvestRun", - "HarvestRunStatus", - "ChatGPTAdapter", - "ClaudeAdapter", - "ClaudeCodeAdapter", - "GeminiAdapter", - "PerplexityAdapter", - "UniversalAdapter", - "MarkdownAdapter", - "PlaintextAdapter", - "UrlAdapter", - "PdfAdapter", - "HarvestPipeline" - ], - "totalLines": 15, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/harvest/markdown-adapter.ts": { - "filePath": "packages/hive-mind-core/src/harvest/markdown-adapter.ts", - "contentHash": "ecaa4a0c88efe0f91136f35cec8f868960c7c8bc0ab2ddf3ff60c78de92875dc", - "functions": [ - { - "name": "splitByHeadings", - "params": [ - "text" - ], - "returnType": "MarkdownSection[]", - "exported": false, - "lineCount": 37 - }, - { - "name": "extractBoldTerms", - "params": [ - "text" - ], - "returnType": "string[]", - "exported": false, - "lineCount": 11 - } - ], - "classes": [ - { - "name": "MarkdownAdapter", - "methods": [ - "parse" - ], - "properties": [ - "sourceType", - "displayName" - ], - "exported": true, - "lineCount": 74 - } - ], - "imports": [ - { - "source": "node:crypto", - "specifiers": [ - "randomUUID" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "./types.js", - "specifiers": [ - "SourceAdapter", - "UniversalImportItem" - ] - } - ], - "exports": [ - "MarkdownAdapter" - ], - "totalLines": 143, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/harvest/pdf-adapter.ts": { - "filePath": "packages/hive-mind-core/src/harvest/pdf-adapter.ts", - "contentHash": "a435e9cbc6921f7316acb90776a53507f370f81adc876c5b73ee5357e6279194", - "functions": [], - "classes": [ - { - "name": "PdfAdapter", - "methods": [ - "parse", - "parseFile" - ], - "properties": [ - "sourceType", - "displayName" - ], - "exported": true, - "lineCount": 81 - } - ], - "imports": [ - { - "source": "node:crypto", - "specifiers": [ - "randomUUID" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "./types.js", - "specifiers": [ - "SourceAdapter", - "UniversalImportItem" - ] - }, - { - "source": "./chunk-utils.js", - "specifiers": [ - "chunkByParagraphs" - ] - } - ], - "exports": [ - "PdfAdapter" - ], - "totalLines": 98, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/harvest/perplexity-adapter.ts": { - "filePath": "packages/hive-mind-core/src/harvest/perplexity-adapter.ts", - "contentHash": "a75d6e7c37d760227b4d4db7d1b7df4f96fc1226ea5d058d1d7379929a392969", - "functions": [], - "classes": [ - { - "name": "PerplexityAdapter", - "methods": [ - "parse", - "parseThreadArray", - "parseSingleThread", - "buildItem", - "resolveRole", - "extractText", - "extractSources", - "extractTimestamp" - ], - "properties": [ - "sourceType", - "displayName" - ], - "exported": true, - "lineCount": 142 - } - ], - "imports": [ - { - "source": "node:crypto", - "specifiers": [ - "randomUUID" - ] - }, - { - "source": "./types.js", - "specifiers": [ - "SourceAdapter", - "UniversalImportItem", - "ConversationMessage" - ] - } - ], - "exports": [ - "PerplexityAdapter" - ], - "totalLines": 164, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/harvest/pipeline.ts": { - "filePath": "packages/hive-mind-core/src/harvest/pipeline.ts", - "contentHash": "a12f927e7a4227aef31314828185020668c276c82beb2faf926a3a808234a8d5", - "functions": [ - { - "name": "parseLLMJson", - "params": [ - "raw" - ], - "returnType": "T[]", - "exported": false, - "lineCount": 9 - }, - { - "name": "batch", - "params": [ - "items", - "size" - ], - "returnType": "T[][]", - "exported": false, - "lineCount": 7 - }, - { - "name": "runWithConcurrency", - "params": [ - "tasks", - "cap" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 12 - } - ], - "classes": [ - { - "name": "HarvestPipeline", - "methods": [ - "constructor", - "run", - "classify", - "extract", - "synthesize" - ], - "properties": [ - "llmCall", - "existingContents", - "onProgress", - "classifyFailureFallback", - "batchSize", - "concurrency" - ], - "exported": true, - "lineCount": 257 - } - ], - "imports": [ - { - "source": "./types.js", - "specifiers": [ - "UniversalImportItem", - "ClassifiedItem", - "ExtractedContent", - "DistilledKnowledge", - "HarvestPipelineResult", - "ImportSourceType" - ] - }, - { - "source": "./prompts.js", - "specifiers": [ - "CLASSIFY_PROMPT", - "EXTRACT_PROMPT", - "SYNTHESIZE_PROMPT" - ] - }, - { - "source": "./dedup.js", - "specifiers": [ - "dedup" - ] - }, - { - "source": "../injection-scanner.js", - "specifiers": [ - "scanForInjection" - ] - }, - { - "source": "../logger.js", - "specifiers": [ - "createCoreLogger" - ] - } - ], - "exports": [ - "HarvestPipeline" - ], - "totalLines": 340, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/harvest/plaintext-adapter.ts": { - "filePath": "packages/hive-mind-core/src/harvest/plaintext-adapter.ts", - "contentHash": "94e7f21ef139b4549efa837a5158303e861765f9670d62ddb718290ad3462d5d", - "functions": [], - "classes": [ - { - "name": "PlaintextAdapter", - "methods": [ - "parse" - ], - "properties": [ - "sourceType", - "displayName" - ], - "exported": true, - "lineCount": 49 - } - ], - "imports": [ - { - "source": "node:crypto", - "specifiers": [ - "randomUUID" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "./types.js", - "specifiers": [ - "SourceAdapter", - "UniversalImportItem" - ] - }, - { - "source": "./chunk-utils.js", - "specifiers": [ - "chunkByParagraphs" - ] - } - ], - "exports": [ - "PlaintextAdapter" - ], - "totalLines": 62, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/harvest/prompts.ts": { - "filePath": "packages/hive-mind-core/src/harvest/prompts.ts", - "contentHash": "f80269c77cdd045ec4b627401f412e257e3ab7250e114ccee87d835a9fbb0b56", - "functions": [], - "classes": [], - "imports": [], - "exports": [ - "CLASSIFY_PROMPT", - "EXTRACT_PROMPT", - "SYNTHESIZE_PROMPT" - ], - "totalLines": 73, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/harvest/raw-turns.ts": { - "filePath": "packages/hive-mind-core/src/harvest/raw-turns.ts", - "contentHash": "d548366ba6f8044979b64c5379ad3047dba62c20cde1793eb59707d04e408ad6", - "functions": [ - { - "name": "isIsoTimestamp", - "params": [ - "value" - ], - "exported": false, - "lineCount": 5 - }, - { - "name": "sanitizeToken", - "params": [ - "value", - "maxLen" - ], - "returnType": "string", - "exported": false, - "lineCount": 4 - }, - { - "name": "rawTurnHeader", - "params": [ - "convKey", - "turn", - "speaker" - ], - "returnType": "string", - "exported": true, - "lineCount": 3 - }, - { - "name": "parseRawTurnHeader", - "params": [ - "content" - ], - "returnType": "ParsedRawTurnHeader | null", - "exported": true, - "lineCount": 5 - }, - { - "name": "rawTurnConvKey", - "params": [ - "item" - ], - "returnType": "string", - "exported": true, - "lineCount": 3 - }, - { - "name": "writeRawTurnFrames", - "params": [ - "frames", - "gopId", - "item" - ], - "returnType": "WriteRawTurnsResult", - "exported": true, - "lineCount": 55 - } - ], - "classes": [], - "imports": [ - { - "source": "../mind/frames.js", - "specifiers": [ - "FrameStore" - ] - }, - { - "source": "./types.js", - "specifiers": [ - "UniversalImportItem" - ] - }, - { - "source": "./types.js", - "specifiers": [ - "HARVEST_FRAME_CONTENT_CAP" - ] - }, - { - "source": "../injection-scanner.js", - "specifiers": [ - "scanForInjection" - ] - }, - { - "source": "../logger.js", - "specifiers": [ - "createCoreLogger" - ] - } - ], - "exports": [ - "MIND_RAWTURN_PREFIX", - "MAX_TURNS_PER_ITEM", - "RAWDETAIL_KILL_SWITCH", - "rawTurnHeader", - "parseRawTurnHeader", - "rawTurnConvKey", - "writeRawTurnFrames" - ], - "totalLines": 167, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/harvest/raw-types.ts": { - "filePath": "packages/hive-mind-core/src/harvest/raw-types.ts", - "contentHash": "6ffd83cf19eef90c69bed642a082b933b4fea624206218f0132e3e296d31d816", - "functions": [ - { - "name": "asRecord", - "params": [ - "value" - ], - "returnType": "RawRecord | null", - "exported": true, - "lineCount": 5 - }, - { - "name": "getString", - "params": [ - "obj", - "key" - ], - "returnType": "string | undefined", - "exported": true, - "lineCount": 4 - }, - { - "name": "getNumber", - "params": [ - "obj", - "key" - ], - "returnType": "number | undefined", - "exported": true, - "lineCount": 4 - }, - { - "name": "getArray", - "params": [ - "obj", - "key" - ], - "returnType": "unknown[] | undefined", - "exported": true, - "lineCount": 4 - }, - { - "name": "firstString", - "params": [ - "obj", - "...keys" - ], - "returnType": "string | undefined", - "exported": true, - "lineCount": 7 - } - ], - "classes": [], - "imports": [], - "exports": [ - "asRecord", - "getString", - "getNumber", - "getArray", - "firstString" - ], - "totalLines": 46, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/harvest/run-store.ts": { - "filePath": "packages/hive-mind-core/src/harvest/run-store.ts", - "contentHash": "4c3cc7ab2500fdad81d41306c7e5e1e40263e9f8b0cec0e78a2cf2b544d227d7", - "functions": [], - "classes": [ - { - "name": "HarvestRunStore", - "methods": [ - "constructor", - "ensureTable", - "start", - "heartbeat", - "complete", - "fail", - "abandon", - "getById", - "getLatestInterrupted", - "getAll", - "rowToRun" - ], - "properties": [ - "db" - ], - "exported": true, - "lineCount": 137 - } - ], - "imports": [ - { - "source": "../mind/db.js", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "./types.js", - "specifiers": [ - "ImportSourceType" - ] - } - ], - "exports": [ - "HarvestRunStore" - ], - "totalLines": 192, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/harvest/source-store.ts": { - "filePath": "packages/hive-mind-core/src/harvest/source-store.ts", - "contentHash": "9f36498f619b3bbb7b3455c210cd7cebb4f90069dad19ed3a95f23c50296546b", - "functions": [], - "classes": [ - { - "name": "HarvestSourceStore", - "methods": [ - "constructor", - "ensureTable", - "upsert", - "recordSync", - "setAutoSync", - "getBySource", - "getAll", - "getStale", - "remove", - "rowToSource" - ], - "properties": [ - "db" - ], - "exported": true, - "lineCount": 103 - } - ], - "imports": [ - { - "source": "../mind/db.js", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "./types.js", - "specifiers": [ - "HarvestSource", - "ImportSourceType" - ] - } - ], - "exports": [ - "HarvestSourceStore" - ], - "totalLines": 127, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/harvest/types.ts": { - "filePath": "packages/hive-mind-core/src/harvest/types.ts", - "contentHash": "c7ea3afd207f08f1a0c73efdf3fa90e0560e5f65c48eb0004a3bb7a160f252a9", - "functions": [], - "classes": [], - "imports": [], - "exports": [ - "HARVEST_FRAME_CONTENT_CAP" - ], - "totalLines": 141, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/harvest/universal-adapter.ts": { - "filePath": "packages/hive-mind-core/src/harvest/universal-adapter.ts", - "contentHash": "c117c87d95d3527bb08eef03ab90fc2392ffadc8108f206609b7ed404fee1e8f", - "functions": [ - { - "name": "detectSource", - "params": [ - "input" - ], - "returnType": "ImportSourceType", - "exported": false, - "lineCount": 24 - }, - { - "name": "findConversations", - "params": [ - "obj" - ], - "returnType": "RawRecord[] | null", - "exported": false, - "lineCount": 23 - } - ], - "classes": [ - { - "name": "UniversalAdapter", - "methods": [ - "parse", - "parseText", - "parseJson", - "splitConversations", - "extractMessagesFromText", - "resolveRole", - "extractText" - ], - "properties": [ - "sourceType", - "displayName" - ], - "exported": true, - "lineCount": 171 - } - ], - "imports": [ - { - "source": "node:crypto", - "specifiers": [ - "randomUUID" - ] - }, - { - "source": "./types.js", - "specifiers": [ - "SourceAdapter", - "UniversalImportItem", - "ImportSourceType", - "ConversationMessage" - ] - }, - { - "source": "./raw-types.js", - "specifiers": [ - "asRecord", - "firstString", - "getArray", - "getString", - "RawRecord" - ] - } - ], - "exports": [ - "UniversalAdapter" - ], - "totalLines": 239, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/harvest/url-adapter.ts": { - "filePath": "packages/hive-mind-core/src/harvest/url-adapter.ts", - "contentHash": "f8bb2a5b92046df57f7bf66aa08fbd815d07de3b7437e581f44cc90897130290", - "functions": [ - { - "name": "stripHtml", - "params": [ - "html" - ], - "returnType": "string", - "exported": false, - "lineCount": 35 - }, - { - "name": "extractTitle", - "params": [ - "html" - ], - "returnType": "string | undefined", - "exported": false, - "lineCount": 4 - }, - { - "name": "extractDescription", - "params": [ - "html" - ], - "returnType": "string | undefined", - "exported": false, - "lineCount": 5 - } - ], - "classes": [ - { - "name": "UrlAdapter", - "methods": [ - "parse", - "fetchAndParse", - "parseHtml" - ], - "properties": [ - "sourceType", - "displayName" - ], - "exported": true, - "lineCount": 117 - } - ], - "imports": [ - { - "source": "node:crypto", - "specifiers": [ - "randomUUID" - ] - }, - { - "source": "./types.js", - "specifiers": [ - "SourceAdapter", - "UniversalImportItem" - ] - } - ], - "exports": [ - "UrlAdapter" - ], - "totalLines": 178, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/index.ts": { - "filePath": "packages/hive-mind-core/src/index.ts", - "contentHash": "b713b53518320a3b84f0a42d171ec0046ef4eae4e663ecb653a08225f832e122", - "functions": [], - "classes": [], - "imports": [], - "exports": [ - "createCoreLogger", - "CoreLogger", - "scanForInjection", - "ScanResult", - "MindDB", - "EmbeddingDimMismatchError", - "EmbeddingFingerprint", - "FingerprintCheck", - "IdentityLayer", - "Identity", - "AwarenessLayer", - "AwarenessItem", - "AwarenessCategory", - "FrameStore", - "stripHmPrefix", - "MemoryFrame", - "FrameType", - "Importance", - "FrameSource", - "hashFrameContent", - "SessionStore", - "Session", - "HybridSearch", - "SearchResult", - "chunkRetrievalEnabled", - "rechunkAllFrames", - "RechunkResult", - "chunkText", - "ChunkOptions", - "FrameChunk", - "KnowledgeGraph", - "Entity", - "Relation", - "ValidationSchema", - "SCHEMA_SQL", - "VEC_TABLE_SQL", - "CHUNKS_VEC_TABLE_SQL", - "SCHEMA_VERSION", - "vecTableSqlForDim", - "chunksVecTableSqlForDim", - "computeRelevance", - "computeTemporalScore", - "computePopularityScore", - "computeContextualScore", - "computeImportanceScore", - "SCORING_PROFILES", - "ScoringProfile", - "ScoringWeights", - "Embedder", - "createLiteLLMEmbedder", - "LiteLLMEmbedderConfig", - "createInProcessEmbedder", - "normalizeDimensions", - "InProcessEmbedderConfig", - "createOllamaEmbedder", - "OllamaEmbedderConfig", - "createApiEmbedder", - "ApiEmbedderConfig", - "createEmbeddingProvider", - "EmbeddingQuotaExceededError", - "getMinimumTierForProvider", - "maxEmbedCharsForModel", - "capEmbedText", - "reembedPerText", - "EmbeddingProviderConfig", - "EmbeddingProviderStatus", - "EmbeddingProviderType", - "EmbeddingProviderInstance", - "EmbeddingQuotaStatus", - "normalizeEntityName", - "findDuplicates", - "isNoiseName", - "isLikelyAcronym", - "Ontology", - "validateEntity", - "EntitySchema", - "ValidationResult", - "ImprovementSignalStore", - "ImprovementSignal", - "ActionableSignal", - "SignalCategory", - "ActionableThresholds", - "ExecutionTraceStore", - "EXECUTION_TRACES_TABLE_SQL", - "ExecutionTrace", - "ParsedExecutionTrace", - "TraceOutcome", - "TracePayload", - "TraceToolCall", - "TraceReasoningStep", - "StartTraceInput", - "FinalizeTraceInput", - "TraceQueryFilter", - "EvolutionRunStore", - "EVOLUTION_RUNS_TABLE_SQL", - "EvolutionRun", - "EvolutionRunStatus", - "EvolutionRunTarget", - "CreateEvolutionRunInput", - "EvolutionRunFilter", - "reconcileIndexes", - "reconcileFtsIndex", - "reconcileVecIndex", - "cleanOrphanVectors", - "cleanOrphanFts", - "ReconcileResult", - "ConceptTracker", - "CONCEPT_MASTERY_TABLE_SQL", - "ConceptEntry", - "ConceptUpdate", - "TEMPORAL_GUIDANCE", - "toDatePrefix", - "renderDatedSnippet", - "referenceDate", - "renderReferenceDateLine", - "resolveRelativeDate", - "ResolvedDate", - "parseDateWindow", - "DateWindow", - "createInProcessReranker", - "Reranker", - "InProcessRerankerConfig", - "HarvestSourceStore", - "HarvestRunStore", - "HarvestRun", - "HarvestRunStatus", - "ChatGPTAdapter", - "ClaudeAdapter", - "ClaudeCodeAdapter", - "GeminiAdapter", - "UniversalAdapter", - "MarkdownAdapter", - "PlaintextAdapter", - "UrlAdapter", - "PdfAdapter", - "HarvestPipeline", - "LLMCallFn", - "PipelineOptions", - "extractMemoryLanes", - "writeMemoryLaneFrames", - "MIND_FACT_PREFIX", - "MIND_EVENT_PREFIX", - "MIND_PROFILE_PREFIX", - "MemoryLaneExtraction", - "ExtractedEvent", - "ExtractedFact", - "ExtractedProfile", - "WriteLaneFramesResult", - "extractKgEntities", - "writeKgEntities", - "KG_ENTITY_TYPES", - "KgEntity", - "KgEntityType", - "KgEntityExtraction", - "WriteKgEntitiesResult", - "writeRawTurnFrames", - "rawTurnHeader", - "parseRawTurnHeader", - "rawTurnConvKey", - "MIND_RAWTURN_PREFIX", - "MAX_TURNS_PER_ITEM", - "RAWDETAIL_KILL_SWITCH", - "WriteRawTurnsResult", - "ParsedRawTurnHeader", - "fetchRawDetailLane", - "rawTurnBody", - "RAW_DETAIL_K", - "RawTurnHit", - "RawDetailLaneOptions", - "dedup", - "harvestSetHash", - "HARVEST_FRAME_CONTENT_CAP", - "ImportSourceType", - "ImportItemType", - "UniversalImportItem", - "DistilledKnowledge", - "HarvestPipelineResult", - "HarvestSource", - "SourceAdapter", - "FilesystemAdapter", - "ClassifiedItem", - "ExtractedContent", - "KnowledgeProvenance", - "MultiMind", - "MultiMindSearchResult", - "MindSource", - "SearchScope", - "MultiMindCache", - "MultiMindCacheConfig", - "WorkspaceManager", - "WorkspaceConfig", - "CreateWorkspaceOptions" - ], - "totalLines": 133, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/injection-scanner.ts": { - "filePath": "packages/hive-mind-core/src/injection-scanner.ts", - "contentHash": "949b5b29dc42cad11848dddbb6beacaf0f7d43eafc0a38f5edff943f40d79187", - "functions": [ - { - "name": "scanForInjection", - "params": [ - "text", - "context" - ], - "returnType": "ScanResult", - "exported": true, - "lineCount": 27 - } - ], - "classes": [], - "imports": [], - "exports": [ - "scanForInjection" - ], - "totalLines": 86, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/logger.ts": { - "filePath": "packages/hive-mind-core/src/logger.ts", - "contentHash": "c7b412c7699967fa7d70dada8b173f4f8a455efe6eb7a727340220bcf357978c", - "functions": [ - { - "name": "createCoreLogger", - "params": [ - "tag" - ], - "returnType": "CoreLogger", - "exported": true, - "lineCount": 15 - } - ], - "classes": [], - "imports": [], - "exports": [ - "createCoreLogger" - ], - "totalLines": 31, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/mind/api-embedder.ts": { - "filePath": "packages/hive-mind-core/src/mind/api-embedder.ts", - "contentHash": "377398dc92c97b74cb5973c849a551966c35aacf12b7df854e17c2310f653fb7", - "functions": [ - { - "name": "createApiEmbedder", - "params": [ - "config" - ], - "returnType": "Embedder", - "exported": true, - "lineCount": 52 - } - ], - "classes": [], - "imports": [ - { - "source": "./embeddings.js", - "specifiers": [ - "Embedder" - ] - }, - { - "source": "./inprocess-embedder.js", - "specifiers": [ - "normalizeDimensions" - ] - } - ], - "exports": [ - "createApiEmbedder" - ], - "totalLines": 74, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/mind/awareness.ts": { - "filePath": "packages/hive-mind-core/src/mind/awareness.ts", - "contentHash": "bd913d12c21627b0f36bd54da2d73ad98f371451f04742a2a977fcfa1d4e155e", - "functions": [], - "classes": [ - { - "name": "AwarenessLayer", - "methods": [ - "constructor", - "ensureMetadataColumn", - "add", - "get", - "remove", - "update", - "updateMetadata", - "getByStatus", - "parseMetadata", - "getAll", - "getByCategory", - "clear", - "clearCategory", - "toContext" - ], - "properties": [ - "db" - ], - "exported": true, - "lineCount": 144 - } - ], - "imports": [ - { - "source": "./db.js", - "specifiers": [ - "MindDB" - ] - } - ], - "exports": [ - "AwarenessLayer" - ], - "totalLines": 171, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/mind/chunker.ts": { - "filePath": "packages/hive-mind-core/src/mind/chunker.ts", - "contentHash": "1cced95b2e0166a8378941a3e2f6037b0d8a16dceeed8fbeb92f44959800601f", - "functions": [ - { - "name": "chunkText", - "params": [ - "text", - "opts" - ], - "returnType": "FrameChunk[]", - "exported": true, - "lineCount": 105 - }, - { - "name": "splitSentencesWithOffsets", - "params": [ - "text", - "baseOffset" - ], - "returnType": "Array<{ text: string; start: number; end: number }>", - "exported": false, - "lineCount": 25 - } - ], - "classes": [], - "imports": [], - "exports": [ - "chunkText" - ], - "totalLines": 195, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/mind/concept-tracker.ts": { - "filePath": "packages/hive-mind-core/src/mind/concept-tracker.ts", - "contentHash": "3c46608f253816da06ddc2b8b8b831559266b245d3ea74b5efccf959ab44808a", - "functions": [], - "classes": [ - { - "name": "ConceptTracker", - "methods": [ - "constructor", - "ensureTable", - "upsertConcept", - "getConcept", - "listConcepts", - "recordAnswer", - "getDueForReview" - ], - "properties": [ - "db" - ], - "exported": true, - "lineCount": 138 - } - ], - "imports": [ - { - "source": "./db.js", - "specifiers": [ - "MindDB" - ] - } - ], - "exports": [ - "CONCEPT_MASTERY_TABLE_SQL", - "ConceptTracker" - ], - "totalLines": 181, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/mind/content-hash.ts": { - "filePath": "packages/hive-mind-core/src/mind/content-hash.ts", - "contentHash": "c5038878705a9310273ef15594b8906e992c4064314e5ccafe4aa7332efc448f", - "functions": [ - { - "name": "stripHmPrefix", - "params": [ - "content" - ], - "returnType": "string", - "exported": true, - "lineCount": 3 - }, - { - "name": "hashFrameContent", - "params": [ - "content" - ], - "returnType": "string", - "exported": true, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "node:crypto", - "specifiers": [ - "createHash" - ] - } - ], - "exports": [ - "stripHmPrefix", - "hashFrameContent" - ], - "totalLines": 41, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/mind/db.ts": { - "filePath": "packages/hive-mind-core/src/mind/db.ts", - "contentHash": "a11717559272aaa6eacd983231e15c5dc9910f8474c3011106897b5018b982f9", - "functions": [], - "classes": [ - { - "name": "EmbeddingDimMismatchError", - "methods": [ - "constructor" - ], - "properties": [], - "exported": true, - "lineCount": 14 - }, - { - "name": "MindDB", - "methods": [ - "constructor", - "initSchema", - "getFirstRunAt", - "runMigrations", - "backfillContentHash", - "getMeta", - "setMeta", - "ensureEmbeddingFingerprint", - "setEmbeddingFingerprint", - "getEmbeddingFingerprint", - "recreateVecTables", - "getDatabase", - "close" - ], - "properties": [ - "db" - ], - "exported": true, - "lineCount": 364 - } - ], - "imports": [ - { - "source": "better-sqlite3", - "specifiers": [ - "Database" - ] - }, - { - "source": "better-sqlite3", - "specifiers": [ - "DatabaseType" - ] - }, - { - "source": "sqlite-vec", - "specifiers": [ - "* as sqliteVec" - ] - }, - { - "source": "./schema.js", - "specifiers": [ - "SCHEMA_SQL", - "VEC_TABLE_SQL", - "CHUNKS_VEC_TABLE_SQL", - "SCHEMA_VERSION", - "vecTableSqlForDim", - "chunksVecTableSqlForDim" - ] - }, - { - "source": "./content-hash.js", - "specifiers": [ - "hashFrameContent" - ] - } - ], - "exports": [ - "EmbeddingDimMismatchError", - "MindDB" - ], - "totalLines": 406, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/mind/embedding-provider.ts": { - "filePath": "packages/hive-mind-core/src/mind/embedding-provider.ts", - "contentHash": "63f0d6566c623fb1c4dac7f4df994d58e0fdeeffea8fce4992ff47a917744ea8", - "functions": [ - { - "name": "getMinimumTierForProvider", - "params": [ - "provider" - ], - "returnType": "Tier", - "exported": true, - "lineCount": 7 - }, - { - "name": "ensureQuotaTable", - "params": [ - "db" - ], - "returnType": "void", - "exported": false, - "lineCount": 3 - }, - { - "name": "getCurrentYearMonth", - "params": [], - "returnType": "string", - "exported": false, - "lineCount": 4 - }, - { - "name": "getUsageCount", - "params": [ - "db", - "userId", - "yearMonth" - ], - "returnType": "number", - "exported": false, - "lineCount": 6 - }, - { - "name": "incrementUsage", - "params": [ - "db", - "userId", - "yearMonth", - "amount" - ], - "returnType": "void", - "exported": false, - "lineCount": 7 - }, - { - "name": "getNextMonthReset", - "params": [], - "returnType": "string", - "exported": false, - "lineCount": 6 - }, - { - "name": "mockEmbed", - "params": [ - "text", - "dims" - ], - "returnType": "Float32Array", - "exported": false, - "lineCount": 8 - }, - { - "name": "createMockEmbedder", - "params": [ - "dims" - ], - "returnType": "Embedder", - "exported": false, - "lineCount": 7 - }, - { - "name": "maxEmbedCharsForModel", - "params": [ - "modelName" - ], - "returnType": "number", - "exported": true, - "lineCount": 3 - }, - { - "name": "capEmbedText", - "params": [ - "text", - "maxChars" - ], - "returnType": "string", - "exported": true, - "lineCount": 3 - }, - { - "name": "reembedPerText", - "params": [ - "embedder", - "texts", - "dims" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 15 - }, - { - "name": "probeProvider", - "params": [ - "type", - "config" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 84 - }, - { - "name": "createEmbeddingProvider", - "params": [ - "config" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 221 - } - ], - "classes": [ - { - "name": "EmbeddingQuotaExceededError", - "methods": [ - "constructor" - ], - "properties": [ - "tier", - "quota", - "current", - "upgradeUrl" - ], - "exported": true, - "lineCount": 14 - } - ], - "imports": [ - { - "source": "./embeddings.js", - "specifiers": [ - "Embedder" - ] - }, - { - "source": "better-sqlite3", - "specifiers": [ - "DatabaseType" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "Tier", - "TIERS", - "TIER_CAPABILITIES", - "TierError" - ] - }, - { - "source": "../logger.js", - "specifiers": [ - "createCoreLogger" - ] - } - ], - "exports": [ - "getMinimumTierForProvider", - "EmbeddingQuotaExceededError", - "maxEmbedCharsForModel", - "capEmbedText", - "reembedPerText", - "createEmbeddingProvider" - ], - "totalLines": 510, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/mind/embeddings.ts": { - "filePath": "packages/hive-mind-core/src/mind/embeddings.ts", - "contentHash": "1470a5961e84d378c131fe73b13b9a2a1dbae4c2b6a5ec0e2f7f5edc3d7dc13f", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 6, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/mind/entity-normalizer.ts": { - "filePath": "packages/hive-mind-core/src/mind/entity-normalizer.ts", - "contentHash": "6b5c086d7380e314eb8a6c89e93d9536e2cfba853d43ec5b23a58a22bb1329d3", - "functions": [ - { - "name": "normalizeEntityName", - "params": [ - "name" - ], - "returnType": "string", - "exported": true, - "lineCount": 4 - }, - { - "name": "findDuplicates", - "params": [ - "entities" - ], - "returnType": "EntityRef[][]", - "exported": true, - "lineCount": 13 - }, - { - "name": "isLikelyAcronym", - "params": [ - "s" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 3 - }, - { - "name": "isNoiseName", - "params": [ - "name" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 8 - } - ], - "classes": [], - "imports": [], - "exports": [ - "normalizeEntityName", - "findDuplicates", - "isLikelyAcronym", - "isNoiseName" - ], - "totalLines": 113, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/mind/evolution-runs.ts": { - "filePath": "packages/hive-mind-core/src/mind/evolution-runs.ts", - "contentHash": "b6cc0211462dcaffd02a81605e217e9a46924ec93578f6874145e136ce6a401f", - "functions": [ - { - "name": "generateUuid", - "params": [], - "returnType": "string", - "exported": false, - "lineCount": 4 - } - ], - "classes": [ - { - "name": "EvolutionRunStore", - "methods": [ - "constructor", - "ensureTable", - "create", - "accept", - "reject", - "markDeployed", - "markFailed", - "getByUuid", - "get", - "list", - "statusCounts", - "delete", - "clear" - ], - "properties": [ - "db" - ], - "exported": true, - "lineCount": 183 - } - ], - "imports": [ - { - "source": "./db.js", - "specifiers": [ - "MindDB" - ] - } - ], - "exports": [ - "EVOLUTION_RUNS_TABLE_SQL", - "EvolutionRunStore" - ], - "totalLines": 300, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/mind/execution-traces.ts": { - "filePath": "packages/hive-mind-core/src/mind/execution-traces.ts", - "contentHash": "6f1fa48b5ecfc337a87d57707398eb637153086ddeaf2876b6d14ea75d5306e3", - "functions": [ - { - "name": "parsePayload", - "params": [ - "json" - ], - "returnType": "TracePayload", - "exported": false, - "lineCount": 26 - }, - { - "name": "toParsed", - "params": [ - "row" - ], - "returnType": "ParsedExecutionTrace", - "exported": false, - "lineCount": 4 - } - ], - "classes": [ - { - "name": "ExecutionTraceStore", - "methods": [ - "constructor", - "ensureTable", - "start", - "append", - "finalize", - "markCorrected", - "get", - "getParsed", - "query", - "queryParsed", - "outcomeCounts", - "delete", - "clear", - "count" - ], - "properties": [ - "db" - ], - "exported": true, - "lineCount": 249 - } - ], - "imports": [ - { - "source": "./db.js", - "specifiers": [ - "MindDB" - ] - } - ], - "exports": [ - "EXECUTION_TRACES_TABLE_SQL", - "ExecutionTraceStore" - ], - "totalLines": 447, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/mind/frames.ts": { - "filePath": "packages/hive-mind-core/src/mind/frames.ts", - "contentHash": "5f9b2de3bcd51db2ba45215a7d8872c41fef396ee84ae87229a2dc0ec96b4478", - "functions": [ - { - "name": "isValidIsoTimestamp", - "params": [ - "value" - ], - "returnType": "boolean", - "exported": false, - "lineCount": 6 - } - ], - "classes": [ - { - "name": "FrameStore", - "methods": [ - "constructor", - "createIFrame", - "createPFrame", - "createBFrame", - "getById", - "getLatestIFrame", - "getPFramesSinceLastI", - "getGopFrames", - "reconstructState", - "touch", - "getImportanceMultiplier", - "list", - "getRecent", - "getRecentFiltered", - "getBFrameReferences", - "findDuplicate", - "update", - "setMetadata", - "delete", - "deleteByContentPrefix", - "compact", - "getStats", - "nextT", - "indexFts" - ], - "properties": [ - "db" - ], - "exported": true, - "lineCount": 405 - } - ], - "imports": [ - { - "source": "./db.js", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "./content-hash.js", - "specifiers": [ - "hashFrameContent", - "stripHmPrefix" - ] - } - ], - "exports": [ - "stripHmPrefix", - "FrameStore" - ], - "totalLines": 468, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/mind/identity.ts": { - "filePath": "packages/hive-mind-core/src/mind/identity.ts", - "contentHash": "c45a9da819c33dbe89e7980a5d895edfdefdad2ef002ea3e2cd10e38f69353b7", - "functions": [], - "classes": [ - { - "name": "IdentityLayer", - "methods": [ - "constructor", - "create", - "get", - "exists", - "update", - "toContext" - ], - "properties": [ - "db" - ], - "exported": true, - "lineCount": 56 - } - ], - "imports": [ - { - "source": "./db.js", - "specifiers": [ - "MindDB" - ] - } - ], - "exports": [ - "IdentityLayer" - ], - "totalLines": 81, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/mind/improvement-signals.ts": { - "filePath": "packages/hive-mind-core/src/mind/improvement-signals.ts", - "contentHash": "af03ad927b693f865781d9b3683f935ef0400751cfe5c7207d34ea0ecc89cfaf", - "functions": [ - { - "name": "parseMetadata", - "params": [ - "json" - ], - "returnType": "Record", - "exported": false, - "lineCount": 7 - } - ], - "classes": [ - { - "name": "ImprovementSignalStore", - "methods": [ - "constructor", - "ensureTable", - "record", - "getByCategory", - "getActionable", - "markSurfaced", - "get", - "getByKey", - "clear" - ], - "properties": [ - "db" - ], - "exported": true, - "lineCount": 129 - } - ], - "imports": [ - { - "source": "./db.js", - "specifiers": [ - "MindDB" - ] - } - ], - "exports": [ - "ImprovementSignalStore" - ], - "totalLines": 175, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/mind/inprocess-embedder.ts": { - "filePath": "packages/hive-mind-core/src/mind/inprocess-embedder.ts", - "contentHash": "5ed4b6397b433cd2de639f12224d9cfd7ef68e088285bba6a046bc0bf7c2a456", - "functions": [ - { - "name": "normalizeDimensions", - "params": [ - "embedding", - "targetDims" - ], - "returnType": "Float32Array", - "exported": true, - "lineCount": 7 - }, - { - "name": "createInProcessEmbedder", - "params": [ - "config" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 38 - } - ], - "classes": [], - "imports": [ - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "./embeddings.js", - "specifiers": [ - "Embedder" - ] - }, - { - "source": "../logger.js", - "specifiers": [ - "createCoreLogger" - ] - } - ], - "exports": [ - "normalizeDimensions", - "createInProcessEmbedder" - ], - "totalLines": 68, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/mind/inprocess-reranker.ts": { - "filePath": "packages/hive-mind-core/src/mind/inprocess-reranker.ts", - "contentHash": "ebdbd92fb71e48d847e7ee043740f0f0517d2fb2c4a0796d4f65af6a446536a0", - "functions": [ - { - "name": "createInProcessReranker", - "params": [ - "config" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 79 - } - ], - "classes": [], - "imports": [ - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "../logger.js", - "specifiers": [ - "createCoreLogger" - ] - } - ], - "exports": [ - "createInProcessReranker" - ], - "totalLines": 130, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/mind/knowledge.ts": { - "filePath": "packages/hive-mind-core/src/mind/knowledge.ts", - "contentHash": "ac5cd7d9ef450545b9def7f6af48a1fbfb61e1718a1fe76e2070767aac334a6c", - "functions": [ - { - "name": "safeParseProps", - "params": [ - "json" - ], - "returnType": "Record", - "exported": false, - "lineCount": 8 - }, - { - "name": "escapeLikeTerm", - "params": [ - "term" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - } - ], - "classes": [ - { - "name": "KnowledgeGraph", - "methods": [ - "constructor", - "setValidationSchema", - "createEntity", - "getEntity", - "updateEntity", - "retireEntity", - "getEntitiesByType", - "getEntities", - "getEntityTypeCounts", - "getEntityCount", - "searchEntities", - "findEntityByName", - "getEntitiesValidAt", - "createRelation", - "getRelation", - "getRelationsFrom", - "getRelationsTo", - "retireRelation", - "dedupeByName", - "traverse", - "bfsDistances", - "validateEntityProperties", - "validateRelation" - ], - "properties": [ - "db", - "schema" - ], - "exported": true, - "lineCount": 324 - } - ], - "imports": [ - { - "source": "./db.js", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "./entity-normalizer.js", - "specifiers": [ - "normalizeEntityName" - ] - } - ], - "exports": [ - "KnowledgeGraph" - ], - "totalLines": 378, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/mind/litellm-embedder.ts": { - "filePath": "packages/hive-mind-core/src/mind/litellm-embedder.ts", - "contentHash": "c8882ddc09ee696938d4e92a8502e32acfc15b1eaee71014b22656eab17bb666", - "functions": [ - { - "name": "mockEmbed", - "params": [ - "text", - "dims" - ], - "returnType": "Float32Array", - "exported": false, - "lineCount": 8 - }, - { - "name": "createLiteLLMEmbedder", - "params": [ - "config" - ], - "returnType": "Embedder", - "exported": true, - "lineCount": 65 - } - ], - "classes": [], - "imports": [ - { - "source": "./embeddings.js", - "specifiers": [ - "Embedder" - ] - } - ], - "exports": [ - "createLiteLLMEmbedder" - ], - "totalLines": 94, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/mind/ollama-embedder.ts": { - "filePath": "packages/hive-mind-core/src/mind/ollama-embedder.ts", - "contentHash": "82551ba693f1646a6ef88e688256a9f5caeedaf3716f6429caa1ae776d8e1b9c", - "functions": [ - { - "name": "createOllamaEmbedder", - "params": [ - "config" - ], - "returnType": "Embedder", - "exported": true, - "lineCount": 44 - } - ], - "classes": [], - "imports": [ - { - "source": "./embeddings.js", - "specifiers": [ - "Embedder" - ] - }, - { - "source": "./inprocess-embedder.js", - "specifiers": [ - "normalizeDimensions" - ] - } - ], - "exports": [ - "createOllamaEmbedder" - ], - "totalLines": 59, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/mind/ontology.ts": { - "filePath": "packages/hive-mind-core/src/mind/ontology.ts", - "contentHash": "289d37d97eb2825a1b8835b2ca4c35a610c5a95ecb7793582b4b9df163473f4d", - "functions": [ - { - "name": "validateEntity", - "params": [ - "ontology", - "entity" - ], - "returnType": "ValidationResult", - "exported": true, - "lineCount": 28 - } - ], - "classes": [ - { - "name": "Ontology", - "methods": [ - "define", - "getSchema", - "hasType", - "getTypes" - ], - "properties": [ - "schemas" - ], - "exported": true, - "lineCount": 19 - } - ], - "imports": [], - "exports": [ - "Ontology", - "validateEntity" - ], - "totalLines": 59, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/mind/parse-date-window.ts": { - "filePath": "packages/hive-mind-core/src/mind/parse-date-window.ts", - "contentHash": "4ba482d24958a4188f0e3ba0871f8d8199dc37b2999aa42010bac0631fe89365", - "functions": [ - { - "name": "lastDayOfMonth", - "params": [ - "y", - "m" - ], - "returnType": "number", - "exported": false, - "lineCount": 3 - }, - { - "name": "isoOf", - "params": [ - "y", - "m", - "d" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "parseDateWindow", - "params": [ - "query" - ], - "returnType": "DateWindow | null", - "exported": true, - "lineCount": 62 - } - ], - "classes": [], - "imports": [], - "exports": [ - "parseDateWindow" - ], - "totalLines": 114, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/mind/raw-detail-lane.ts": { - "filePath": "packages/hive-mind-core/src/mind/raw-detail-lane.ts", - "contentHash": "72c392d43293ae1e7f5ed7218d57bd7d0c4263feba82d7b75e3baf635a174bcb", - "functions": [ - { - "name": "rawTurnBody", - "params": [ - "content" - ], - "returnType": "string", - "exported": true, - "lineCount": 4 - }, - { - "name": "ftsOrQuery", - "params": [ - "query" - ], - "returnType": "string", - "exported": false, - "lineCount": 8 - }, - { - "name": "ftsPool", - "params": [ - "db", - "query", - "limit" - ], - "returnType": "FrameRow[]", - "exported": false, - "lineCount": 16 - }, - { - "name": "windowPool", - "params": [ - "db", - "since", - "until" - ], - "returnType": "FrameRow[]", - "exported": false, - "lineCount": 8 - }, - { - "name": "convTurnMap", - "params": [ - "db", - "conv" - ], - "returnType": "Map", - "exported": false, - "lineCount": 15 - }, - { - "name": "fetchRawDetailLane", - "params": [ - "db", - "query", - "reranker", - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 72 - } - ], - "classes": [], - "imports": [ - { - "source": "better-sqlite3", - "specifiers": [ - "DatabaseType" - ] - }, - { - "source": "./inprocess-reranker.js", - "specifiers": [ - "Reranker" - ] - }, - { - "source": "../harvest/raw-turns.js", - "specifiers": [ - "MIND_RAWTURN_PREFIX", - "parseRawTurnHeader" - ] - } - ], - "exports": [ - "RAW_DETAIL_K", - "rawTurnBody", - "fetchRawDetailLane" - ], - "totalLines": 206, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/mind/recall-context.ts": { - "filePath": "packages/hive-mind-core/src/mind/recall-context.ts", - "contentHash": "e6b0c32bac55b6f91112c98474d6bad8035d9ae586a95a58031541c35decdccf", - "functions": [ - { - "name": "toDatePrefix", - "params": [ - "createdAt" - ], - "returnType": "string | null", - "exported": true, - "lineCount": 4 - }, - { - "name": "renderDatedSnippet", - "params": [ - "createdAt", - "text" - ], - "returnType": "string", - "exported": true, - "lineCount": 4 - }, - { - "name": "referenceDate", - "params": [ - "createdAts" - ], - "returnType": "string | null", - "exported": true, - "lineCount": 8 - }, - { - "name": "renderReferenceDateLine", - "params": [ - "createdAts" - ], - "returnType": "string | null", - "exported": true, - "lineCount": 6 - } - ], - "classes": [], - "imports": [], - "exports": [ - "TEMPORAL_GUIDANCE", - "toDatePrefix", - "renderDatedSnippet", - "referenceDate", - "renderReferenceDateLine" - ], - "totalLines": 101, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/mind/reconcile.ts": { - "filePath": "packages/hive-mind-core/src/mind/reconcile.ts", - "contentHash": "3fd0faaf02c3ab7d6471ef17d62ec84a27ee1a2441acd37a6371c04e7794a763", - "functions": [ - { - "name": "reconcileFtsIndex", - "params": [ - "db" - ], - "returnType": "number", - "exported": true, - "lineCount": 25 - }, - { - "name": "reconcileVecIndex", - "params": [ - "db", - "embedder" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 41 - }, - { - "name": "cleanOrphanVectors", - "params": [ - "db" - ], - "returnType": "number", - "exported": true, - "lineCount": 26 - }, - { - "name": "cleanOrphanFts", - "params": [ - "db" - ], - "returnType": "number", - "exported": true, - "lineCount": 19 - }, - { - "name": "reconcileIndexes", - "params": [ - "db", - "embedder" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 14 - } - ], - "classes": [], - "imports": [ - { - "source": "./db.js", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "./embeddings.js", - "specifiers": [ - "Embedder" - ] - } - ], - "exports": [ - "reconcileFtsIndex", - "reconcileVecIndex", - "cleanOrphanVectors", - "cleanOrphanFts", - "reconcileIndexes" - ], - "totalLines": 169, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/mind/resolve-relative-date.ts": { - "filePath": "packages/hive-mind-core/src/mind/resolve-relative-date.ts", - "contentHash": "d64b2c860dfacad23264d237e82f82e4bd939148da7302dc873994bff1324385", - "functions": [ - { - "name": "parseReference", - "params": [ - "referenceDate" - ], - "returnType": "Date | null", - "exported": false, - "lineCount": 7 - }, - { - "name": "toIso", - "params": [ - "dt" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "addDays", - "params": [ - "dt", - "n" - ], - "returnType": "Date", - "exported": false, - "lineCount": 5 - }, - { - "name": "addMonths", - "params": [ - "dt", - "n" - ], - "returnType": "Date", - "exported": false, - "lineCount": 10 - }, - { - "name": "addYears", - "params": [ - "dt", - "n" - ], - "returnType": "Date", - "exported": false, - "lineCount": 5 - }, - { - "name": "lastWeekday", - "params": [ - "dt", - "weekday" - ], - "returnType": "Date", - "exported": false, - "lineCount": 5 - }, - { - "name": "resolveRelativeDate", - "params": [ - "text", - "referenceDate" - ], - "returnType": "ResolvedDate | null", - "exported": true, - "lineCount": 47 - } - ], - "classes": [], - "imports": [], - "exports": [ - "resolveRelativeDate" - ], - "totalLines": 132, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/mind/schema.ts": { - "filePath": "packages/hive-mind-core/src/mind/schema.ts", - "contentHash": "fe355001a5f0b99a32d8667c54a31ec7b9ba4064dbbc62ca48357d3e1cdff7cb", - "functions": [ - { - "name": "vecTableSqlForDim", - "params": [ - "dim" - ], - "returnType": "string", - "exported": true, - "lineCount": 8 - }, - { - "name": "chunksVecTableSqlForDim", - "params": [ - "dim" - ], - "returnType": "string", - "exported": true, - "lineCount": 8 - } - ], - "classes": [], - "imports": [], - "exports": [ - "SCHEMA_VERSION", - "SCHEMA_SQL", - "vecTableSqlForDim", - "VEC_TABLE_SQL", - "chunksVecTableSqlForDim", - "CHUNKS_VEC_TABLE_SQL" - ], - "totalLines": 324, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/mind/scoring.ts": { - "filePath": "packages/hive-mind-core/src/mind/scoring.ts", - "contentHash": "449bd85a09aa1721c991197d0d6857c165b42d69523bccc6e0b41d41c1a46b27", - "functions": [ - { - "name": "computeTemporalScore", - "params": [ - "lastAccessedIso" - ], - "returnType": "number", - "exported": true, - "lineCount": 12 - }, - { - "name": "computePopularityScore", - "params": [ - "accessCount" - ], - "returnType": "number", - "exported": true, - "lineCount": 3 - }, - { - "name": "computeContextualScore", - "params": [ - "frameId", - "graphDistances" - ], - "returnType": "number", - "exported": true, - "lineCount": 12 - }, - { - "name": "computeImportanceScore", - "params": [ - "importance" - ], - "returnType": "number", - "exported": true, - "lineCount": 3 - }, - { - "name": "computeRelevance", - "params": [ - "frame", - "weights", - "context" - ], - "returnType": "number", - "exported": true, - "lineCount": 23 - } - ], - "classes": [], - "imports": [ - { - "source": "./frames.js", - "specifiers": [ - "Importance" - ] - } - ], - "exports": [ - "SCORING_PROFILES", - "computeTemporalScore", - "computePopularityScore", - "computeContextualScore", - "computeImportanceScore", - "computeRelevance" - ], - "totalLines": 109, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/mind/search.ts": { - "filePath": "packages/hive-mind-core/src/mind/search.ts", - "contentHash": "afa773a1f5bef2bc2b416bad16f5d635a03e1f76ed2a0079e86f929c05e52ea2", - "functions": [ - { - "name": "chunkRetrievalEnabled", - "params": [], - "returnType": "boolean", - "exported": true, - "lineCount": 3 - }, - { - "name": "f32ToBlob", - "params": [ - "f32" - ], - "returnType": "Uint8Array", - "exported": false, - "lineCount": 3 - }, - { - "name": "escapeLikeTerm", - "params": [ - "term" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "rechunkAllFrames", - "params": [ - "db", - "search" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 25 - } - ], - "classes": [ - { - "name": "HybridSearch", - "methods": [ - "constructor", - "ensureFingerprint", - "search", - "keywordSearch", - "likeFallbackSearch", - "vectorSearch", - "indexFrame", - "indexFramesBatch", - "indexChunksForFrame", - "vectorSearchChunks" - ], - "properties": [ - "db", - "embedder", - "fingerprintChecked" - ], - "exported": true, - "lineCount": 518 - } - ], - "imports": [ - { - "source": "./db.js", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "./embeddings.js", - "specifiers": [ - "Embedder" - ] - }, - { - "source": "./frames.js", - "specifiers": [ - "MemoryFrame", - "Importance" - ] - }, - { - "source": "./inprocess-reranker.js", - "specifiers": [ - "Reranker" - ] - }, - { - "source": "./chunker.js", - "specifiers": [ - "chunkText", - "ChunkOptions" - ] - }, - { - "source": "../logger.js", - "specifiers": [ - "createCoreLogger" - ] - }, - { - "source": "./scoring.js", - "specifiers": [ - "computeRelevance", - "SCORING_PROFILES", - "ScoringProfile", - "ScoringContext", - "ScoredResult" - ] - } - ], - "exports": [ - "chunkRetrievalEnabled", - "HybridSearch", - "rechunkAllFrames" - ], - "totalLines": 638, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/mind/sessions.ts": { - "filePath": "packages/hive-mind-core/src/mind/sessions.ts", - "contentHash": "e4d58badf5a79742e6e5780afbaf549a153ef00ae3f4e5a326959337449010b4", - "functions": [], - "classes": [ - { - "name": "SessionStore", - "methods": [ - "constructor", - "create", - "close", - "archive", - "getByProject", - "getActive", - "ensureActive", - "getByGopId", - "ensure" - ], - "properties": [ - "db" - ], - "exported": true, - "lineCount": 95 - } - ], - "imports": [ - { - "source": "./db.js", - "specifiers": [ - "MindDB" - ] - } - ], - "exports": [ - "SessionStore" - ], - "totalLines": 108, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/multi-mind-cache.ts": { - "filePath": "packages/hive-mind-core/src/multi-mind-cache.ts", - "contentHash": "e9f627f6033eb7015fb8615221eafd0cf47d47d0d40c813d50c7316adce080a1", - "functions": [], - "classes": [ - { - "name": "MultiMindCache", - "methods": [ - "constructor", - "getOrOpen", - "getIfOpen", - "has", - "close", - "closeAll", - "size", - "keys", - "evictLRU" - ], - "properties": [ - "cache", - "maxOpen", - "getMindPath", - "allowedRoot" - ], - "exported": true, - "lineCount": 106 - } - ], - "imports": [ - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "./mind/db.js", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "./logger.js", - "specifiers": [ - "createCoreLogger" - ] - } - ], - "exports": [ - "MultiMindCache" - ], - "totalLines": 134, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/multi-mind.ts": { - "filePath": "packages/hive-mind-core/src/multi-mind.ts", - "contentHash": "43c551a4df1d28c9d619c1215571318cf7e585bb90d728c8cb9e47787b42b79d", - "functions": [], - "classes": [ - { - "name": "MultiMind", - "methods": [ - "constructor", - "searchAll", - "search", - "getIdentity", - "hasIdentity", - "getAwareness", - "switchWorkspace", - "setWorkspace", - "close", - "getFrameStore", - "getAwarenessLayer", - "getIdentityLayer", - "ftsSearch" - ], - "properties": [ - "personal", - "workspace", - "personalFrames", - "workspaceFrames", - "personalIdentity", - "personalAwareness", - "workspaceAwareness" - ], - "exported": true, - "lineCount": 187 - } - ], - "imports": [ - { - "source": "./mind/db.js", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "./mind/identity.js", - "specifiers": [ - "IdentityLayer", - "Identity" - ] - }, - { - "source": "./mind/awareness.js", - "specifiers": [ - "AwarenessLayer", - "AwarenessItem" - ] - }, - { - "source": "./mind/frames.js", - "specifiers": [ - "FrameStore", - "MemoryFrame" - ] - }, - { - "source": "./logger.js", - "specifiers": [ - "createCoreLogger" - ] - } - ], - "exports": [ - "MultiMind" - ], - "totalLines": 208, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/src/workspace-manager.ts": { - "filePath": "packages/hive-mind-core/src/workspace-manager.ts", - "contentHash": "67f5b0a24d31827d1566c2d3a2d0b04d30fb7e8e89ca0b5a08e4653b65c16f42", - "functions": [], - "classes": [ - { - "name": "WorkspaceManager", - "methods": [ - "constructor", - "create", - "ensure", - "createWithId", - "list", - "listByGroup", - "listGroups", - "get", - "update", - "delete", - "isTeamWorkspace", - "listTeamWorkspaces", - "getMindPath", - "setDefault", - "getDefault", - "ensureDefault", - "generateId", - "workspaceExists", - "loadMeta", - "saveMeta" - ], - "properties": [ - "workspacesDir", - "metaPath" - ], - "exported": true, - "lineCount": 266 - } - ], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "WorkspaceType" - ] - } - ], - "exports": [ - "WorkspaceManager" - ], - "totalLines": 399, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/entity-normalizer.test.ts": { - "filePath": "packages/hive-mind-core/tests/entity-normalizer.test.ts", - "contentHash": "ffb3681290f1988b6367207f01a7a582c802f8783d86587ad4505b3cb38fd6ac", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/mind/entity-normalizer.js", - "specifiers": [ - "normalizeEntityName", - "findDuplicates" - ] - } - ], - "exports": [], - "totalLines": 34, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/harvest/caption-parity.test.ts": { - "filePath": "packages/hive-mind-core/tests/harvest/caption-parity.test.ts", - "contentHash": "ed02958d865f5ef6689747e305163a6b97fa797786e4d55ee8078e56307c848d", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../../src/harvest/chatgpt-adapter.js", - "specifiers": [ - "ChatGPTAdapter" - ] - }, - { - "source": "../../src/harvest/claude-adapter.js", - "specifiers": [ - "ClaudeAdapter" - ] - }, - { - "source": "../../src/harvest/gemini-adapter.js", - "specifiers": [ - "GeminiAdapter" - ] - }, - { - "source": "../../src/harvest/universal-adapter.js", - "specifiers": [ - "UniversalAdapter" - ] - } - ], - "exports": [], - "totalLines": 134, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/harvest/claude-adapter.test.ts": { - "filePath": "packages/hive-mind-core/tests/harvest/claude-adapter.test.ts", - "contentHash": "4cf4335837ff02e78afbed1644e7912ac9e6a6690321cbff9b570c94fa252445", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../../src/harvest/claude-adapter.js", - "specifiers": [ - "ClaudeAdapter" - ] - } - ], - "exports": [], - "totalLines": 160, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/harvest/extract-kg-entities.test.ts": { - "filePath": "packages/hive-mind-core/tests/harvest/extract-kg-entities.test.ts", - "contentHash": "df9ca608f721a709bddc28c66de70a1c9e81c13f55c74e121df450fe9362b56d", - "functions": [ - { - "name": "staticLLM", - "params": [ - "response" - ], - "returnType": "LLMCallFn", - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "../../src/mind/db.js", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../../src/mind/knowledge.js", - "specifiers": [ - "KnowledgeGraph" - ] - }, - { - "source": "../../src/harvest/extract-kg-entities.js", - "specifiers": [ - "extractKgEntities", - "writeKgEntities", - "KgEntityExtraction" - ] - }, - { - "source": "../../src/harvest/pipeline.js", - "specifiers": [ - "LLMCallFn" - ] - } - ], - "exports": [], - "totalLines": 168, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/harvest/extract-memory-lanes.test.ts": { - "filePath": "packages/hive-mind-core/tests/harvest/extract-memory-lanes.test.ts", - "contentHash": "4256a4ffac67baed8053fb2114969e9f671975766d0c515701633864adcda135", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "../../src/mind/db.js", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../../src/mind/frames.js", - "specifiers": [ - "FrameStore" - ] - }, - { - "source": "../../src/mind/sessions.js", - "specifiers": [ - "SessionStore" - ] - }, - { - "source": "../../src/harvest/extract-memory-lanes.js", - "specifiers": [ - "extractMemoryLanes", - "writeMemoryLaneFrames", - "MIND_FACT_PREFIX", - "MIND_EVENT_PREFIX", - "MIND_PROFILE_PREFIX", - "MemoryLaneExtraction" - ] - }, - { - "source": "../../src/harvest/pipeline.js", - "specifiers": [ - "LLMCallFn" - ] - } - ], - "exports": [], - "totalLines": 142, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/harvest/perplexity-adapter.test.ts": { - "filePath": "packages/hive-mind-core/tests/harvest/perplexity-adapter.test.ts", - "contentHash": "ca73aa3713f7d5ce25d1d0aba913d9d6bdf288e00bc07e0bf50da81f17034bb6", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../../src/harvest/perplexity-adapter.js", - "specifiers": [ - "PerplexityAdapter" - ] - } - ], - "exports": [], - "totalLines": 136, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/harvest/pipeline-injection.test.ts": { - "filePath": "packages/hive-mind-core/tests/harvest/pipeline-injection.test.ts", - "contentHash": "a246be01fda4cfd7095ffe9bb23e626f54d279b5f911106e0ce2d1ba5fbc0357", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../../src/harvest/pipeline.js", - "specifiers": [ - "HarvestPipeline" - ] - }, - { - "source": "../../src/harvest/types.js", - "specifiers": [ - "UniversalImportItem" - ] - } - ], - "exports": [], - "totalLines": 116, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/harvest/pipeline-progress.test.ts": { - "filePath": "packages/hive-mind-core/tests/harvest/pipeline-progress.test.ts", - "contentHash": "6163f2de35e7a6a11eb5410f0e2952600816eab662aa503fb6e0d54c8e4995cd", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../../src/harvest/pipeline.js", - "specifiers": [ - "HarvestPipeline" - ] - }, - { - "source": "../../src/harvest/types.js", - "specifiers": [ - "UniversalImportItem" - ] - } - ], - "exports": [], - "totalLines": 52, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/harvest/raw-turns.test.ts": { - "filePath": "packages/hive-mind-core/tests/harvest/raw-turns.test.ts", - "contentHash": "59597ef1d60b2a9215845617bffd391c032a381e4168a1c53f2a0f5439f00e9c", - "functions": [ - { - "name": "makeItem", - "params": [ - "overrides" - ], - "returnType": "UniversalImportItem", - "exported": false, - "lineCount": 17 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "../../src/mind/db.js", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../../src/mind/frames.js", - "specifiers": [ - "FrameStore" - ] - }, - { - "source": "../../src/mind/sessions.js", - "specifiers": [ - "SessionStore" - ] - }, - { - "source": "../../src/harvest/raw-turns.js", - "specifiers": [ - "writeRawTurnFrames", - "rawTurnHeader", - "parseRawTurnHeader", - "rawTurnConvKey", - "MIND_RAWTURN_PREFIX" - ] - }, - { - "source": "../../src/harvest/types.js", - "specifiers": [ - "UniversalImportItem" - ] - } - ], - "exports": [], - "totalLines": 148, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/harvest/run-store.test.ts": { - "filePath": "packages/hive-mind-core/tests/harvest/run-store.test.ts", - "contentHash": "7f6d9d2283936d63a413aa55ef5f8c983062d6c1866d42432ea5c2870e532145", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "../../src/mind/db.js", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../../src/harvest/run-store.js", - "specifiers": [ - "HarvestRunStore" - ] - } - ], - "exports": [], - "totalLines": 197, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/harvest/set-hash.test.ts": { - "filePath": "packages/hive-mind-core/tests/harvest/set-hash.test.ts", - "contentHash": "ab63590888a32af9d8bc355384b7f850ab8a2d65373b02022063021642d82a16", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../../src/harvest/dedup.js", - "specifiers": [ - "harvestSetHash" - ] - } - ], - "exports": [], - "totalLines": 51, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/integration/full-stack.test.ts": { - "filePath": "packages/hive-mind-core/tests/integration/full-stack.test.ts", - "contentHash": "e8d86190a8eec5a1963d4440c383e34c13daec9d23a11766b98a21f69abe5381", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "afterEach" - ] - }, - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "IdentityLayer" - ] - }, - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "AwarenessLayer" - ] - }, - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "FrameStore" - ] - }, - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "SessionStore" - ] - }, - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "HybridSearch" - ] - }, - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "KnowledgeGraph" - ] - }, - { - "source": "@waggle/weaver", - "specifiers": [ - "MemoryWeaver" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "Orchestrator" - ] - }, - { - "source": "../mind/helpers/mock-embedder.js", - "specifiers": [ - "MockEmbedder" - ] - }, - { - "source": "@waggle/optimizer", - "specifiers": [ - "PROGRAM_REGISTRY", - "createSummarizer", - "createClassifier", - "createPromptExpander" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - } - ], - "exports": [], - "totalLines": 389, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/logger.test.ts": { - "filePath": "packages/hive-mind-core/tests/logger.test.ts", - "contentHash": "54760a65ee4214c2be4b13726fa7936a117b685c5633ff9f0f7c167302fc44bf", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "afterEach" - ] - }, - { - "source": "../src/logger.js", - "specifiers": [ - "createCoreLogger", - "CoreLogger" - ] - } - ], - "exports": [], - "totalLines": 49, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/mind/awareness-hive-mind.test.ts": { - "filePath": "packages/hive-mind-core/tests/mind/awareness-hive-mind.test.ts", - "contentHash": "4f858ffe178712f335dad252aed197bd9ce655f465965636315d798e6402cc8a", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:os", - "specifiers": [ - "tmpdir" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "rmSync", - "existsSync" - ] - }, - { - "source": "../../src/mind/db.js", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../../src/mind/awareness.js", - "specifiers": [ - "AwarenessLayer" - ] - } - ], - "exports": [], - "totalLines": 169, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/mind/awareness.test.ts": { - "filePath": "packages/hive-mind-core/tests/mind/awareness.test.ts", - "contentHash": "f6f676e7d8b48b47c984671975817d36d0f15ee72fcf830996b30d0192292fed", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "../../src/mind/db.js", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../../src/mind/awareness.js", - "specifiers": [ - "AwarenessLayer", - "AwarenessItem", - "AwarenessCategory" - ] - } - ], - "exports": [], - "totalLines": 196, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/mind/chunker.test.ts": { - "filePath": "packages/hive-mind-core/tests/mind/chunker.test.ts", - "contentHash": "28d1d55b8c17a301d4a26a89487191a1ee48f09abec4529042b289fa05d26804", - "functions": [ - { - "name": "para", - "params": [ - "topic", - "sentences" - ], - "returnType": "string", - "exported": false, - "lineCount": 6 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../../src/mind/chunker.js", - "specifiers": [ - "chunkText" - ] - } - ], - "exports": [], - "totalLines": 114, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/mind/concept-tracker-hive-mind.test.ts": { - "filePath": "packages/hive-mind-core/tests/mind/concept-tracker-hive-mind.test.ts", - "contentHash": "e31a99564dc10fe6cb99ccb0445f6aa414a7cc6dfb4c313d59526aa649ff29b8", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:os", - "specifiers": [ - "tmpdir" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "rmSync", - "existsSync" - ] - }, - { - "source": "../../src/mind/db.js", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../../src/mind/concept-tracker.js", - "specifiers": [ - "ConceptTracker" - ] - } - ], - "exports": [], - "totalLines": 121, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/mind/concept-tracker.test.ts": { - "filePath": "packages/hive-mind-core/tests/mind/concept-tracker.test.ts", - "contentHash": "e4ddedfe6edbd6885ea9325e9392885c7d4a417371eaded5b5874fb21fe9e860", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "../../src/mind/db.js", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../../src/mind/concept-tracker.js", - "specifiers": [ - "ConceptTracker" - ] - } - ], - "exports": [], - "totalLines": 210, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/mind/content-hash-dedup.test.ts": { - "filePath": "packages/hive-mind-core/tests/mind/content-hash-dedup.test.ts", - "contentHash": "d1f86a5f3bd2feb6c3b368c424a74b36dc7305ef1851e291620680c7c9004912", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "../../src/mind/db.js", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../../src/mind/frames.js", - "specifiers": [ - "FrameStore" - ] - }, - { - "source": "../../src/mind/sessions.js", - "specifiers": [ - "SessionStore" - ] - }, - { - "source": "../../src/mind/content-hash.js", - "specifiers": [ - "hashFrameContent", - "stripHmPrefix" - ] - } - ], - "exports": [], - "totalLines": 94, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/mind/db.test.ts": { - "filePath": "packages/hive-mind-core/tests/mind/db.test.ts", - "contentHash": "9a948b35b9702b16f3d23243d688448ece7a8f19981fee4278f4a1ada329bf2b", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:os", - "specifiers": [ - "tmpdir" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "rmSync", - "existsSync" - ] - }, - { - "source": "../../src/mind/db.js", - "specifiers": [ - "MindDB", - "EmbeddingDimMismatchError" - ] - } - ], - "exports": [], - "totalLines": 245, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/mind/embedding-provider.test.ts": { - "filePath": "packages/hive-mind-core/tests/mind/embedding-provider.test.ts", - "contentHash": "7ee2763d62355e2843267a685fa87116ceb15d2551fc40b1b4ed14e065613076", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../../src/mind/embedding-provider.js", - "specifiers": [ - "createEmbeddingProvider", - "capEmbedText", - "maxEmbedCharsForModel", - "reembedPerText" - ] - }, - { - "source": "../../src/mind/embeddings.js", - "specifiers": [ - "Embedder" - ] - } - ], - "exports": [], - "totalLines": 146, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/mind/entity-normalizer.test.ts": { - "filePath": "packages/hive-mind-core/tests/mind/entity-normalizer.test.ts", - "contentHash": "dd77a9ebf88276eb610ca85af852940a82254b4705ce76ce4c64d65dc6981e2c", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../../src/mind/entity-normalizer.js", - "specifiers": [ - "normalizeEntityName", - "findDuplicates", - "isNoiseName" - ] - } - ], - "exports": [], - "totalLines": 89, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/mind/evolution-runs.test.ts": { - "filePath": "packages/hive-mind-core/tests/mind/evolution-runs.test.ts", - "contentHash": "118a33f5c268161b3ffdb1d60841a1e279b8619218084106df563cd322621b09", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "../../src/mind/db.js", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../../src/mind/evolution-runs.js", - "specifiers": [ - "EvolutionRunStore", - "EvolutionRunTarget" - ] - } - ], - "exports": [], - "totalLines": 267, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/mind/execution-traces.test.ts": { - "filePath": "packages/hive-mind-core/tests/mind/execution-traces.test.ts", - "contentHash": "737766f4b552fbed5c0d6b4cd79eb3c85b3cb0d8f6a9c227ded1bea12f3532d9", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "../../src/mind/db.js", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../../src/mind/execution-traces.js", - "specifiers": [ - "ExecutionTraceStore", - "TraceToolCall", - "TraceReasoningStep" - ] - } - ], - "exports": [], - "totalLines": 357, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/mind/frames-hive-mind.test.ts": { - "filePath": "packages/hive-mind-core/tests/mind/frames-hive-mind.test.ts", - "contentHash": "a2fa571983fbd4dd66008d7ac3c37aee2e800880a3ce5558baef355141804111", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:os", - "specifiers": [ - "tmpdir" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "rmSync", - "existsSync" - ] - }, - { - "source": "../../src/mind/db.js", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../../src/mind/frames.js", - "specifiers": [ - "FrameStore", - "stripHmPrefix" - ] - } - ], - "exports": [], - "totalLines": 316, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/mind/frames.test.ts": { - "filePath": "packages/hive-mind-core/tests/mind/frames.test.ts", - "contentHash": "c2b83fa62c45a1e2006a921b0c71009c4ccc1e2d4108d04887387a496e2abb08", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "../../src/mind/db.js", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../../src/mind/frames.js", - "specifiers": [ - "FrameStore", - "MemoryFrame", - "FrameType", - "Importance" - ] - }, - { - "source": "../../src/mind/sessions.js", - "specifiers": [ - "SessionStore", - "Session" - ] - } - ], - "exports": [], - "totalLines": 376, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/mind/helpers/mock-embedder.ts": { - "filePath": "packages/hive-mind-core/tests/mind/helpers/mock-embedder.ts", - "contentHash": "a8aa5b711a020f125a469b48d85559affba977d655be1cbf4dc4f0efd9ea29c3", - "functions": [], - "classes": [ - { - "name": "MockEmbedder", - "methods": [ - "embed", - "embedBatch", - "textToVector", - "simpleHash" - ], - "properties": [ - "dimensions" - ], - "exported": true, - "lineCount": 43 - } - ], - "imports": [ - { - "source": "../../../src/mind/embeddings.js", - "specifiers": [ - "Embedder" - ] - } - ], - "exports": [ - "MockEmbedder" - ], - "totalLines": 51, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/mind/identity-hive-mind.test.ts": { - "filePath": "packages/hive-mind-core/tests/mind/identity-hive-mind.test.ts", - "contentHash": "317e8ea2689e79335fdadf7ff097607966d1f42e26b10530ab1a5fb30a746de3", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:os", - "specifiers": [ - "tmpdir" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "rmSync", - "existsSync" - ] - }, - { - "source": "../../src/mind/db.js", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../../src/mind/identity.js", - "specifiers": [ - "IdentityLayer" - ] - } - ], - "exports": [], - "totalLines": 121, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/mind/identity.test.ts": { - "filePath": "packages/hive-mind-core/tests/mind/identity.test.ts", - "contentHash": "864b569e980c85057fdb635119f82ba24dc09aa4765f8db6f7c49a18367e7452", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "../../src/mind/db.js", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../../src/mind/identity.js", - "specifiers": [ - "IdentityLayer", - "Identity" - ] - } - ], - "exports": [], - "totalLines": 127, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/mind/improvement-signals.test.ts": { - "filePath": "packages/hive-mind-core/tests/mind/improvement-signals.test.ts", - "contentHash": "bc0201598ac752f933603f9f87faa2821bf55d85919b805656ae66a4329984db", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "../../src/mind/db.js", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../../src/mind/improvement-signals.js", - "specifiers": [ - "ImprovementSignalStore", - "SignalCategory" - ] - } - ], - "exports": [], - "totalLines": 202, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/mind/inprocess-embedder.test.ts": { - "filePath": "packages/hive-mind-core/tests/mind/inprocess-embedder.test.ts", - "contentHash": "28525a9e6795479779ea5dd5fc3adfe3892de530f6b5bdbdaf8aa09856ff4b83", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../../src/mind/inprocess-embedder.js", - "specifiers": [ - "normalizeDimensions" - ] - } - ], - "exports": [], - "totalLines": 47, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/mind/knowledge-hive-mind.test.ts": { - "filePath": "packages/hive-mind-core/tests/mind/knowledge-hive-mind.test.ts", - "contentHash": "a8854089ca97adab5b4e48f24059d63e199e64419439327ba7f042fe58e62888", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:os", - "specifiers": [ - "tmpdir" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "rmSync", - "existsSync" - ] - }, - { - "source": "../../src/mind/db.js", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../../src/mind/knowledge.js", - "specifiers": [ - "KnowledgeGraph", - "ValidationSchema" - ] - } - ], - "exports": [], - "totalLines": 190, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/mind/knowledge.test.ts": { - "filePath": "packages/hive-mind-core/tests/mind/knowledge.test.ts", - "contentHash": "8fa1b36546c3550f4cc8beb7a3d5b12a0ca8cf16232df9c8745019e11c3998cf", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "../../src/mind/db.js", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../../src/mind/knowledge.js", - "specifiers": [ - "KnowledgeGraph", - "Entity", - "Relation", - "ValidationSchema" - ] - } - ], - "exports": [], - "totalLines": 415, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/mind/ontology.test.ts": { - "filePath": "packages/hive-mind-core/tests/mind/ontology.test.ts", - "contentHash": "8ffa3b1f4d07ed328d2db863597719300ab5169791e2ca827dbc135c3e5382c1", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../../src/mind/ontology.js", - "specifiers": [ - "Ontology", - "validateEntity" - ] - } - ], - "exports": [], - "totalLines": 70, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/mind/parse-date-window.test.ts": { - "filePath": "packages/hive-mind-core/tests/mind/parse-date-window.test.ts", - "contentHash": "facbc53be01144d4bc45486467c0a2816ed3e6b1e7e8f5eb8cfc4ac51ce6ff43", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../../src/mind/parse-date-window.js", - "specifiers": [ - "parseDateWindow" - ] - } - ], - "exports": [], - "totalLines": 64, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/mind/raw-detail-lane.test.ts": { - "filePath": "packages/hive-mind-core/tests/mind/raw-detail-lane.test.ts", - "contentHash": "c156ef95555ebcb38f84b380d2c14614a8aa8d30b4a9e124dfffcd20c0285eea", - "functions": [ - { - "name": "markerReranker", - "params": [ - "markers" - ], - "returnType": "Reranker", - "exported": false, - "lineCount": 6 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "../../src/mind/db.js", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../../src/mind/frames.js", - "specifiers": [ - "FrameStore" - ] - }, - { - "source": "../../src/mind/sessions.js", - "specifiers": [ - "SessionStore" - ] - }, - { - "source": "../../src/harvest/raw-turns.js", - "specifiers": [ - "rawTurnHeader" - ] - }, - { - "source": "../../src/mind/raw-detail-lane.js", - "specifiers": [ - "fetchRawDetailLane", - "rawTurnBody" - ] - }, - { - "source": "../../src/mind/inprocess-reranker.js", - "specifiers": [ - "Reranker" - ] - } - ], - "exports": [], - "totalLines": 145, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/mind/reconcile-hive-mind.test.ts": { - "filePath": "packages/hive-mind-core/tests/mind/reconcile-hive-mind.test.ts", - "contentHash": "e8f6ae51f0861b4fe58c158867b3542349eadd6699fcf38a9abf4ac709a40e07", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:os", - "specifiers": [ - "tmpdir" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "rmSync", - "existsSync" - ] - }, - { - "source": "../../src/mind/db.js", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../../src/mind/frames.js", - "specifiers": [ - "FrameStore" - ] - }, - { - "source": "../../src/mind/reconcile.js", - "specifiers": [ - "reconcileFtsIndex", - "reconcileVecIndex", - "cleanOrphanFts", - "cleanOrphanVectors", - "reconcileIndexes" - ] - }, - { - "source": "../../src/mind/embedding-provider.js", - "specifiers": [ - "createEmbeddingProvider", - "EmbeddingProviderInstance" - ] - } - ], - "exports": [], - "totalLines": 244, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/mind/reconcile.test.ts": { - "filePath": "packages/hive-mind-core/tests/mind/reconcile.test.ts", - "contentHash": "87b6c11ea1f4663d2132ddd1cdd9dabad352bb0ad51e11a8e8fa370fd8c1c910", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "../../src/mind/db.js", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../../src/mind/frames.js", - "specifiers": [ - "FrameStore" - ] - }, - { - "source": "../../src/mind/sessions.js", - "specifiers": [ - "SessionStore" - ] - }, - { - "source": "../../src/mind/search.js", - "specifiers": [ - "HybridSearch" - ] - }, - { - "source": "../../src/mind/reconcile.js", - "specifiers": [ - "reconcileIndexes", - "reconcileFtsIndex", - "reconcileVecIndex" - ] - }, - { - "source": "./helpers/mock-embedder.js", - "specifiers": [ - "MockEmbedder" - ] - } - ], - "exports": [], - "totalLines": 217, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/mind/resolve-relative-date.test.ts": { - "filePath": "packages/hive-mind-core/tests/mind/resolve-relative-date.test.ts", - "contentHash": "1b769e69a31211ed2ecb843594c5f2beeef85684eb4db12c0fe6e6dc47c820e6", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../../src/mind/resolve-relative-date.js", - "specifiers": [ - "resolveRelativeDate" - ] - } - ], - "exports": [], - "totalLines": 77, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/mind/schema.test.ts": { - "filePath": "packages/hive-mind-core/tests/mind/schema.test.ts", - "contentHash": "dcc503406dda1d4b7e5eb1e33a155a4983d5ca4f7b0690cdb145351ce8828f4f", - "functions": [ - { - "name": "getColumns", - "params": [ - "db", - "table" - ], - "exported": false, - "lineCount": 10 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "../../src/mind/db.js", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "better-sqlite3", - "specifiers": [ - "Database" - ] - }, - { - "source": "fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "path", - "specifiers": [ - "path" - ] - }, - { - "source": "os", - "specifiers": [ - "os" - ] - } - ], - "exports": [], - "totalLines": 231, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/mind/scoring.test.ts": { - "filePath": "packages/hive-mind-core/tests/mind/scoring.test.ts", - "contentHash": "419b5bf31266ab82139f5e5f9407e7c8186e1b52064883febaed433c79360844", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../../src/mind/scoring.js", - "specifiers": [ - "SCORING_PROFILES", - "computeTemporalScore", - "computePopularityScore", - "computeContextualScore", - "computeImportanceScore", - "computeRelevance" - ] - } - ], - "exports": [], - "totalLines": 137, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/mind/search-chunks.test.ts": { - "filePath": "packages/hive-mind-core/tests/mind/search-chunks.test.ts", - "contentHash": "7f20c36748e72cb6972e17a30249f9fe0ca0e43dc5606e9029f7241952ca8f50", - "functions": [ - { - "name": "para", - "params": [ - "topic", - "sentences" - ], - "returnType": "string", - "exported": false, - "lineCount": 6 - }, - { - "name": "longContent", - "params": [ - "topic" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach", - "vi" - ] - }, - { - "source": "../../src/mind/db.js", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../../src/mind/frames.js", - "specifiers": [ - "FrameStore" - ] - }, - { - "source": "../../src/mind/sessions.js", - "specifiers": [ - "SessionStore" - ] - }, - { - "source": "../../src/mind/search.js", - "specifiers": [ - "HybridSearch", - "rechunkAllFrames" - ] - }, - { - "source": "./helpers/mock-embedder.js", - "specifiers": [ - "MockEmbedder" - ] - } - ], - "exports": [], - "totalLines": 277, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/mind/search-date-window.test.ts": { - "filePath": "packages/hive-mind-core/tests/mind/search-date-window.test.ts", - "contentHash": "2d7d2ba92a3a2d2f5694af7b442144ce5e75bf8bee76753ccc490aa3d87fbbb6", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "../../src/mind/db.js", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../../src/mind/frames.js", - "specifiers": [ - "FrameStore" - ] - }, - { - "source": "../../src/mind/sessions.js", - "specifiers": [ - "SessionStore" - ] - }, - { - "source": "../../src/mind/search.js", - "specifiers": [ - "HybridSearch" - ] - }, - { - "source": "./helpers/mock-embedder.js", - "specifiers": [ - "MockEmbedder" - ] - } - ], - "exports": [], - "totalLines": 131, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/mind/search-hive-mind.test.ts": { - "filePath": "packages/hive-mind-core/tests/mind/search-hive-mind.test.ts", - "contentHash": "deb26841c0ddf8dc75303c216dc8dd3eba3453c79bf80c86eb0eb267df9dbfe2", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:os", - "specifiers": [ - "tmpdir" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "rmSync", - "existsSync" - ] - }, - { - "source": "../../src/mind/db.js", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../../src/mind/frames.js", - "specifiers": [ - "FrameStore" - ] - }, - { - "source": "../../src/mind/search.js", - "specifiers": [ - "HybridSearch" - ] - }, - { - "source": "../../src/mind/embedding-provider.js", - "specifiers": [ - "createEmbeddingProvider", - "EmbeddingProviderInstance" - ] - } - ], - "exports": [], - "totalLines": 161, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/mind/search-reranker.test.ts": { - "filePath": "packages/hive-mind-core/tests/mind/search-reranker.test.ts", - "contentHash": "aa3437499fd3265478e6e765f48f20fca5927e661c69241025925ea2ad493647", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "../../src/mind/db.js", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../../src/mind/frames.js", - "specifiers": [ - "FrameStore" - ] - }, - { - "source": "../../src/mind/sessions.js", - "specifiers": [ - "SessionStore" - ] - }, - { - "source": "../../src/mind/search.js", - "specifiers": [ - "HybridSearch" - ] - }, - { - "source": "../../src/mind/inprocess-reranker.js", - "specifiers": [ - "Reranker" - ] - }, - { - "source": "../../src/mind/scoring.js", - "specifiers": [ - "computeRelevance", - "SCORING_PROFILES" - ] - }, - { - "source": "./helpers/mock-embedder.js", - "specifiers": [ - "MockEmbedder" - ] - } - ], - "exports": [], - "totalLines": 108, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/mind/search.test.ts": { - "filePath": "packages/hive-mind-core/tests/mind/search.test.ts", - "contentHash": "c3513c1186fe2bffed2d09e469019e7e093c01e5cc0e92a0178b8239fd04102a", - "functions": [ - { - "name": "getTopicContent", - "params": [ - "i" - ], - "returnType": "string", - "exported": false, - "lineCount": 15 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "../../src/mind/db.js", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../../src/mind/frames.js", - "specifiers": [ - "FrameStore" - ] - }, - { - "source": "../../src/mind/sessions.js", - "specifiers": [ - "SessionStore" - ] - }, - { - "source": "../../src/mind/search.js", - "specifiers": [ - "HybridSearch" - ] - }, - { - "source": "../../src/mind/scoring.js", - "specifiers": [ - "computeTemporalScore", - "computePopularityScore", - "computeContextualScore", - "computeImportanceScore", - "computeRelevance", - "SCORING_PROFILES" - ] - }, - { - "source": "./helpers/mock-embedder.js", - "specifiers": [ - "MockEmbedder" - ] - } - ], - "exports": [], - "totalLines": 358, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/mind/sessions-hive-mind.test.ts": { - "filePath": "packages/hive-mind-core/tests/mind/sessions-hive-mind.test.ts", - "contentHash": "c8ca1afc74b4dfb41e431bf4d956ac97dc272a72d8f133b26196e9bf4d30a29e", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:os", - "specifiers": [ - "tmpdir" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "rmSync", - "existsSync" - ] - }, - { - "source": "../../src/mind/db.js", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../../src/mind/sessions.js", - "specifiers": [ - "SessionStore" - ] - } - ], - "exports": [], - "totalLines": 97, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/mind/sessions.test.ts": { - "filePath": "packages/hive-mind-core/tests/mind/sessions.test.ts", - "contentHash": "48aaa4fd73c2f36be24de4ec86b770a7958b5ecbe355afbeb64655c12dc486c9", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "../../src/mind/db.js", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../../src/mind/sessions.js", - "specifiers": [ - "SessionStore" - ] - } - ], - "exports": [], - "totalLines": 66, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/mind/temporal-knowledge.test.ts": { - "filePath": "packages/hive-mind-core/tests/mind/temporal-knowledge.test.ts", - "contentHash": "6d6483557756cba5aa8d8a06b0d122b5691dfd16aa577e7ac8c65be951147cce", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "../../src/mind/db.js", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../../src/mind/knowledge.js", - "specifiers": [ - "KnowledgeGraph" - ] - } - ], - "exports": [], - "totalLines": 62, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/multi-mind.test.ts": { - "filePath": "packages/hive-mind-core/tests/multi-mind.test.ts", - "contentHash": "be2c6e7351364b3d998d6f39c5d933d40a46d573ed9782625ef818b648070cbc", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "../src/mind/db.js", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../src/mind/frames.js", - "specifiers": [ - "FrameStore" - ] - }, - { - "source": "../src/mind/identity.js", - "specifiers": [ - "IdentityLayer" - ] - }, - { - "source": "../src/mind/awareness.js", - "specifiers": [ - "AwarenessLayer" - ] - }, - { - "source": "../src/multi-mind.js", - "specifiers": [ - "MultiMind" - ] - } - ], - "exports": [], - "totalLines": 297, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/ontology.test.ts": { - "filePath": "packages/hive-mind-core/tests/ontology.test.ts", - "contentHash": "42da93b4ebf28d3c8d932e8231aa9ae412f9c2d4592041209a2067e2338a4c32", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/mind/ontology.js", - "specifiers": [ - "Ontology", - "validateEntity" - ] - } - ], - "exports": [], - "totalLines": 68, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tests/workspace-manager.test.ts": { - "filePath": "packages/hive-mind-core/tests/workspace-manager.test.ts", - "contentHash": "2c68b761807e603b5ac25817ab913b0547ab8446d6fa9566461aaae57467b406", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "../src/workspace-manager.js", - "specifiers": [ - "WorkspaceManager", - "WorkspaceConfig" - ] - } - ], - "exports": [], - "totalLines": 375, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-core/tsconfig.json": { - "filePath": "packages/hive-mind-core/tsconfig.json", - "contentHash": "a57864dee001d032dcac41711ba5a9c07c8c1e15fe8969bfe933d2bd0bb10b13", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 22, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-claude-code/package.json": { - "filePath": "packages/hive-mind-hooks-claude-code/package.json", - "contentHash": "4f0de1e2065488ed895dbc1ef745035651222b0f48458e9a207fdb3c9f6b65b9", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 67, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-claude-code/README.md": { - "filePath": "packages/hive-mind-hooks-claude-code/README.md", - "contentHash": "601a85eee5b656c3c04ed3046d2917df7439a3cf253c533331da0dba9ba9405b", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 85, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-claude-code/src/bin/claude-code-hooks-cli.ts": { - "filePath": "packages/hive-mind-hooks-claude-code/src/bin/claude-code-hooks-cli.ts", - "contentHash": "62c505c9b7d45586d6033705b23390afab4299d1c06393ea819bf5d5d10bdcf1", - "functions": [ - { - "name": "parseArgs", - "params": [ - "argv" - ], - "returnType": "ParsedArgs", - "exported": false, - "lineCount": 26 - }, - { - "name": "printHelp", - "params": [], - "returnType": "void", - "exported": false, - "lineCount": 22 - }, - { - "name": "printInstallSummary", - "params": [ - "result" - ], - "returnType": "void", - "exported": false, - "lineCount": 15 - }, - { - "name": "printUninstallSummary", - "params": [ - "result" - ], - "returnType": "void", - "exported": false, - "lineCount": 13 - }, - { - "name": "printVerifySummary", - "params": [ - "result" - ], - "returnType": "void", - "exported": false, - "lineCount": 12 - }, - { - "name": "main", - "params": [], - "returnType": "Promise", - "exported": false, - "lineCount": 46 - } - ], - "classes": [], - "imports": [ - { - "source": "../install.js", - "specifiers": [ - "install", - "InstallResult" - ] - }, - { - "source": "../uninstall.js", - "specifiers": [ - "uninstall", - "UninstallResult" - ] - }, - { - "source": "../verify.js", - "specifiers": [ - "verify", - "VerifyResult" - ] - } - ], - "exports": [], - "totalLines": 160, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-claude-code/src/hooks/_shared.ts": { - "filePath": "packages/hive-mind-hooks-claude-code/src/hooks/_shared.ts", - "contentHash": "6b0967ea5ec06d60f67bb007f27f68433b1e17fda98993cd107905f7fd96a783", - "functions": [ - { - "name": "parseHookArgs", - "params": [ - "argv" - ], - "returnType": "{ cliPath?: string }", - "exported": true, - "lineCount": 8 - }, - { - "name": "readStdinAsString", - "params": [ - "timeoutMs" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 25 - }, - { - "name": "safeJsonParse", - "params": [ - "raw" - ], - "returnType": "unknown", - "exported": true, - "lineCount": 8 - }, - { - "name": "runHook", - "params": [ - "handler", - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 31 - }, - { - "name": "pickStringField", - "params": [ - "payload", - "...keys" - ], - "returnType": "string | undefined", - "exported": true, - "lineCount": 9 - }, - { - "name": "pickStringFromObject", - "params": [ - "obj", - "key" - ], - "returnType": "string | undefined", - "exported": true, - "lineCount": 4 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/hive-mind-shim-core", - "specifiers": [ - "createCliBridge", - "createLogger", - "CliBridge", - "CliBridgeOptions", - "Logger" - ] - } - ], - "exports": [ - "parseHookArgs", - "readStdinAsString", - "safeJsonParse", - "runHook", - "pickStringField", - "pickStringFromObject" - ], - "totalLines": 149, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-claude-code/src/hooks/pre-compact.ts": { - "filePath": "packages/hive-mind-hooks-claude-code/src/hooks/pre-compact.ts", - "contentHash": "7aac15b5df8bd9b075c4a529727ac9762ddb812c5e7fe50f52792a41eb5ae8a9", - "functions": [ - { - "name": "runPreCompact", - "params": [ - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "./_shared.js", - "specifiers": [ - "pickStringFromObject", - "runHook", - "HookHandler", - "HookRunOptions" - ] - } - ], - "exports": [ - "preCompactHandler", - "runPreCompact" - ], - "totalLines": 53, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-claude-code/src/hooks/session-start.ts": { - "filePath": "packages/hive-mind-hooks-claude-code/src/hooks/session-start.ts", - "contentHash": "42075d9b39d37d145f89d0fd10c60181a8640cc629b79947fe2f11a003c2bdde", - "functions": [ - { - "name": "formatHitsForContext", - "params": [ - "hits" - ], - "returnType": "string", - "exported": false, - "lineCount": 16 - }, - { - "name": "runSessionStart", - "params": [ - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/hive-mind-shim-core", - "specifiers": [ - "MemoryHit" - ] - }, - { - "source": "./_shared.js", - "specifiers": [ - "pickStringFromObject", - "runHook", - "HookHandler", - "HookRunOptions" - ] - } - ], - "exports": [ - "sessionStartHandler", - "runSessionStart" - ], - "totalLines": 103, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-claude-code/src/hooks/stop.ts": { - "filePath": "packages/hive-mind-hooks-claude-code/src/hooks/stop.ts", - "contentHash": "8b9c6fe3f4907b2df16c0cf056e86de4c559bee5a767ff2bc21f8b4b32051928", - "functions": [ - { - "name": "runStop", - "params": [ - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/hive-mind-shim-core", - "specifiers": [ - "classifyImportance", - "encodeFrame", - "maybeEmitDiscovery", - "summarizeTurn", - "HookEvent" - ] - }, - { - "source": "./_shared.js", - "specifiers": [ - "pickStringFromObject", - "runHook", - "HookHandler", - "HookRunOptions" - ] - } - ], - "exports": [ - "stopHandler", - "runStop" - ], - "totalLines": 127, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-claude-code/src/hooks/user-prompt-submit.ts": { - "filePath": "packages/hive-mind-hooks-claude-code/src/hooks/user-prompt-submit.ts", - "contentHash": "84b0f66680b72433a126155f8b72f041d2a64511623b1fdaa2785f97f958d8de", - "functions": [ - { - "name": "runUserPromptSubmit", - "params": [ - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/hive-mind-shim-core", - "specifiers": [ - "encodeFrame", - "HookEvent" - ] - }, - { - "source": "./_shared.js", - "specifiers": [ - "pickStringFromObject", - "runHook", - "HookHandler", - "HookRunOptions" - ] - } - ], - "exports": [ - "userPromptSubmitHandler", - "runUserPromptSubmit" - ], - "totalLines": 73, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-claude-code/src/index.ts": { - "filePath": "packages/hive-mind-hooks-claude-code/src/index.ts", - "contentHash": "99a8202829793a1c3c0b5fc372c14658053d8fd2b3d7ee5bee6a212a0bd30e6a", - "functions": [], - "classes": [], - "imports": [], - "exports": [ - "InstallOptions", - "InstallResult", - "install", - "UninstallOptions", - "UninstallResult", - "uninstall", - "VerifyOptions", - "VerifyResult", - "VerifyCheck", - "verify", - "ShimPaths", - "ResolvePathsOptions", - "HookBasename", - "resolvePaths", - "hookCommandFor", - "backupPathFor", - "allHookBasenames", - "ClaudeCodeSettings", - "HookGroup", - "HookEntrySpec", - "HIVE_MIND_MARKER", - "HOOK_EVENT_BY_BASENAME", - "defaultHookEntries", - "hasHiveHooks", - "mergeHiveHooks" - ], - "totalLines": 52, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-claude-code/src/install.ts": { - "filePath": "packages/hive-mind-hooks-claude-code/src/install.ts", - "contentHash": "da3868ea709a47a6f55c56b6eb0ca9274d38f50af5b519f3348a751435368baf", - "functions": [ - { - "name": "ensureDir", - "params": [ - "p" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 3 - }, - { - "name": "install", - "params": [ - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 70 - }, - { - "name": "normalizeCliPath", - "params": [ - "input" - ], - "returnType": "string | undefined", - "exported": false, - "lineCount": 13 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs/promises", - "specifiers": [ - "readFile", - "writeFile", - "mkdir" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "existsSync" - ] - }, - { - "source": "node:path", - "specifiers": [ - "dirname" - ] - }, - { - "source": "@waggle/hive-mind-shim-core", - "specifiers": [ - "createLogger", - "Logger" - ] - }, - { - "source": "./settings-merger.js", - "specifiers": [ - "defaultHookEntries", - "mergeHiveHooks", - "ClaudeCodeSettings" - ] - }, - { - "source": "./paths.js", - "specifiers": [ - "backupPathFor", - "hookCommandFor", - "resolvePaths", - "ResolvePathsOptions", - "ShimPaths" - ] - } - ], - "exports": [ - "install" - ], - "totalLines": 155, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-claude-code/src/paths.ts": { - "filePath": "packages/hive-mind-hooks-claude-code/src/paths.ts", - "contentHash": "b4581cc0b8aaabe481aafce9a46fe87eb1a44d2c7c749a914b6179493f5d6f20", - "functions": [ - { - "name": "allHookBasenames", - "params": [], - "returnType": "readonly HookBasename[]", - "exported": true, - "lineCount": 3 - }, - { - "name": "defaultHooksDirFromUrl", - "params": [ - "moduleUrl" - ], - "returnType": "string", - "exported": false, - "lineCount": 7 - }, - { - "name": "resolvePaths", - "params": [ - "opts" - ], - "returnType": "ShimPaths", - "exported": true, - "lineCount": 20 - }, - { - "name": "hookCommandFor", - "params": [ - "hooksDir", - "basename", - "cliPath" - ], - "returnType": "string", - "exported": true, - "lineCount": 11 - }, - { - "name": "backupPathFor", - "params": [ - "settingsPath", - "isoTimestamp" - ], - "returnType": "string", - "exported": true, - "lineCount": 5 - } - ], - "classes": [], - "imports": [ - { - "source": "node:os", - "specifiers": [ - "homedir" - ] - }, - { - "source": "node:url", - "specifiers": [ - "fileURLToPath" - ] - }, - { - "source": "node:path", - "specifiers": [ - "dirname", - "join", - "resolve" - ] - } - ], - "exports": [ - "allHookBasenames", - "resolvePaths", - "hookCommandFor", - "backupPathFor" - ], - "totalLines": 91, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-claude-code/src/settings-merger.ts": { - "filePath": "packages/hive-mind-hooks-claude-code/src/settings-merger.ts", - "contentHash": "f7cc5d47a936d302808617f84a7683cdcf68f44bffe323920f98d02a7e931701", - "functions": [ - { - "name": "buildGroup", - "params": [ - "spec" - ], - "returnType": "HookGroup", - "exported": false, - "lineCount": 11 - }, - { - "name": "isHiveGroup", - "params": [ - "group" - ], - "returnType": "boolean", - "exported": false, - "lineCount": 3 - }, - { - "name": "mergeHiveHooks", - "params": [ - "settings", - "entries" - ], - "returnType": "ClaudeCodeSettings", - "exported": true, - "lineCount": 30 - }, - { - "name": "hasHiveHooks", - "params": [ - "settings" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 7 - }, - { - "name": "defaultHookEntries", - "params": [ - "hooksDir", - "timeoutSeconds", - "cmdBuilder", - "cliPath" - ], - "returnType": "HookEntrySpec[]", - "exported": true, - "lineCount": 12 - } - ], - "classes": [], - "imports": [ - { - "source": "./paths.js", - "specifiers": [ - "allHookBasenames", - "HookBasename" - ] - } - ], - "exports": [ - "HIVE_MIND_MARKER", - "HOOK_EVENT_BY_BASENAME", - "mergeHiveHooks", - "hasHiveHooks", - "defaultHookEntries" - ], - "totalLines": 131, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-claude-code/src/uninstall.ts": { - "filePath": "packages/hive-mind-hooks-claude-code/src/uninstall.ts", - "contentHash": "ac409c4e545867b5ff066641bb83986d156b716e65d0b5f2df68fd94f27f167d", - "functions": [ - { - "name": "isPointer", - "params": [ - "value" - ], - "exported": false, - "lineCount": 5 - }, - { - "name": "uninstall", - "params": [ - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 56 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs/promises", - "specifiers": [ - "readFile", - "writeFile", - "unlink" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "existsSync" - ] - }, - { - "source": "@waggle/hive-mind-shim-core", - "specifiers": [ - "createLogger", - "Logger" - ] - }, - { - "source": "./paths.js", - "specifiers": [ - "resolvePaths", - "ResolvePathsOptions", - "ShimPaths" - ] - } - ], - "exports": [ - "uninstall" - ], - "totalLines": 99, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-claude-code/src/verify.ts": { - "filePath": "packages/hive-mind-hooks-claude-code/src/verify.ts", - "contentHash": "e2b3c75c74da517c1492a17650702b44747528701bd24b9d757e1378c525cbd0", - "functions": [ - { - "name": "fileReadable", - "params": [ - "p" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 3 - }, - { - "name": "findHiveGroup", - "params": [ - "groups", - "command" - ], - "returnType": "HookGroup | undefined", - "exported": false, - "lineCount": 4 - }, - { - "name": "isJsPath", - "params": [ - "p" - ], - "returnType": "boolean", - "exported": false, - "lineCount": 3 - }, - { - "name": "probeCliVersion", - "params": [ - "cliPath", - "spawnImpl", - "timeoutMs" - ], - "returnType": "Promise<{ ok: boolean; output: string }>", - "exported": false, - "lineCount": 38 - }, - { - "name": "verify", - "params": [ - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 81 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs/promises", - "specifiers": [ - "readFile", - "access" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "constants", - "existsSync" - ] - }, - { - "source": "node:child_process", - "specifiers": [ - "spawn" - ] - }, - { - "source": "@waggle/hive-mind-shim-core", - "specifiers": [ - "createLogger", - "Logger" - ] - }, - { - "source": "./paths.js", - "specifiers": [ - "resolvePaths", - "allHookBasenames", - "ResolvePathsOptions" - ] - }, - { - "source": "./settings-merger.js", - "specifiers": [ - "HIVE_MIND_MARKER", - "HOOK_EVENT_BY_BASENAME", - "ClaudeCodeSettings", - "HookGroup" - ] - } - ], - "exports": [ - "verify" - ], - "totalLines": 176, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-claude-code/tests/hooks/_test-helpers.ts": { - "filePath": "packages/hive-mind-hooks-claude-code/tests/hooks/_test-helpers.ts", - "contentHash": "22f1af6ca9fc7c55e8c3dea844445429a6d088c92bea9b03a29ce666a3116633", - "functions": [ - { - "name": "makeMockBridge", - "params": [ - "overrides" - ], - "returnType": "MockBridge", - "exported": true, - "lineCount": 19 - }, - { - "name": "makeHookCaptures", - "params": [], - "returnType": "CapturedHookOutput & {\r\n writeStdout: (s: string) => void;\r\n exit: (code: number) => void;\r\n}", - "exported": true, - "lineCount": 13 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "vi" - ] - }, - { - "source": "@waggle/hive-mind-shim-core", - "specifiers": [ - "CliBridge", - "MemoryHit" - ] - } - ], - "exports": [ - "makeMockBridge", - "makeHookCaptures" - ], - "totalLines": 58, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-claude-code/tests/hooks/pre-compact.test.ts": { - "filePath": "packages/hive-mind-hooks-claude-code/tests/hooks/pre-compact.test.ts", - "contentHash": "37ce96ff35d8ea8ab582cd3d401b8aa52e0ed8a1471cd783ac8abfe652234626", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "../../src/hooks/pre-compact.js", - "specifiers": [ - "preCompactHandler", - "runPreCompact" - ] - }, - { - "source": "./_test-helpers.js", - "specifiers": [ - "makeHookCaptures", - "makeMockBridge" - ] - } - ], - "exports": [], - "totalLines": 51, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-claude-code/tests/hooks/session-start.test.ts": { - "filePath": "packages/hive-mind-hooks-claude-code/tests/hooks/session-start.test.ts", - "contentHash": "560fedd8f53c5e2f5bde4bed96f67bbd77649bc2c498417a6536add5ac85b42e", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "../../src/hooks/session-start.js", - "specifiers": [ - "sessionStartHandler", - "runSessionStart" - ] - }, - { - "source": "./_test-helpers.js", - "specifiers": [ - "makeHookCaptures", - "makeMockBridge" - ] - }, - { - "source": "@waggle/hive-mind-shim-core", - "specifiers": [ - "MemoryHit" - ] - } - ], - "exports": [], - "totalLines": 85, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-claude-code/tests/hooks/shared.test.ts": { - "filePath": "packages/hive-mind-hooks-claude-code/tests/hooks/shared.test.ts", - "contentHash": "17895c56f8908355885350a98fd503e0917ae89dd151eaf9df6fd0325197cc26", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "../../src/hooks/_shared.js", - "specifiers": [ - "parseHookArgs", - "pickStringField", - "pickStringFromObject", - "safeJsonParse" - ] - } - ], - "exports": [], - "totalLines": 66, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-claude-code/tests/hooks/stop.test.ts": { - "filePath": "packages/hive-mind-hooks-claude-code/tests/hooks/stop.test.ts", - "contentHash": "08ed40fe00a76991628bf521aec0c62066848ceb2ecc5653a645073ba31b11e2", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "../../src/hooks/stop.js", - "specifiers": [ - "runStop", - "stopHandler" - ] - }, - { - "source": "./_test-helpers.js", - "specifiers": [ - "makeHookCaptures", - "makeMockBridge" - ] - } - ], - "exports": [], - "totalLines": 260, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-claude-code/tests/hooks/user-prompt-submit.test.ts": { - "filePath": "packages/hive-mind-hooks-claude-code/tests/hooks/user-prompt-submit.test.ts", - "contentHash": "ca9eacf84988899cf6041465007eccff458208e0dc83f182f86b815a8d4d0a36", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "../../src/hooks/user-prompt-submit.js", - "specifiers": [ - "runUserPromptSubmit", - "userPromptSubmitHandler" - ] - }, - { - "source": "./_test-helpers.js", - "specifiers": [ - "makeHookCaptures", - "makeMockBridge" - ] - } - ], - "exports": [], - "totalLines": 61, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-claude-code/tests/install.test.ts": { - "filePath": "packages/hive-mind-hooks-claude-code/tests/install.test.ts", - "contentHash": "8c0b5a0bf1eadcaf1ab520c20543a237ce50ff9fc9307953cf3670dd36324cc0", - "functions": [ - { - "name": "bootstrap", - "params": [ - "initial" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 10 - }, - { - "name": "cleanup", - "params": [ - "env" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it", - "afterEach" - ] - }, - { - "source": "node:fs/promises", - "specifiers": [ - "mkdtemp", - "mkdir", - "readFile", - "writeFile", - "rm", - "stat" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "existsSync" - ] - }, - { - "source": "node:os", - "specifiers": [ - "tmpdir" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join", - "resolve" - ] - }, - { - "source": "../src/install.js", - "specifiers": [ - "install" - ] - }, - { - "source": "../src/settings-merger.js", - "specifiers": [ - "HIVE_MIND_MARKER", - "ClaudeCodeSettings" - ] - } - ], - "exports": [], - "totalLines": 151, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-claude-code/tests/paths.test.ts": { - "filePath": "packages/hive-mind-hooks-claude-code/tests/paths.test.ts", - "contentHash": "2f07f70f84a90f9ec77ebff48dd559270f5b9f1afbd5dc3d919fedac03b9c1b9", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join", - "resolve" - ] - }, - { - "source": "../src/paths.js", - "specifiers": [ - "allHookBasenames", - "backupPathFor", - "hookCommandFor", - "resolvePaths" - ] - } - ], - "exports": [], - "totalLines": 74, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-claude-code/tests/settings-merger.test.ts": { - "filePath": "packages/hive-mind-hooks-claude-code/tests/settings-merger.test.ts", - "contentHash": "d93bee2942dad337b691f35c5d5b2b7ab8022945a351e39d8de91b580d8d8064", - "functions": [ - { - "name": "makeEntry", - "params": [ - "basename" - ], - "returnType": "HookEntrySpec", - "exported": false, - "lineCount": 7 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "../src/settings-merger.js", - "specifiers": [ - "HIVE_MIND_MARKER", - "HOOK_EVENT_BY_BASENAME", - "defaultHookEntries", - "hasHiveHooks", - "mergeHiveHooks", - "ClaudeCodeSettings", - "HookEntrySpec" - ] - }, - { - "source": "../src/paths.js", - "specifiers": [ - "hookCommandFor" - ] - } - ], - "exports": [], - "totalLines": 114, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-claude-code/tests/uninstall.test.ts": { - "filePath": "packages/hive-mind-hooks-claude-code/tests/uninstall.test.ts", - "contentHash": "56e67090607c1673c46e714e93d7277120f9a45c125f6f277dec8667eec0f44a", - "functions": [ - { - "name": "bootstrap", - "params": [ - "initial" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 10 - }, - { - "name": "sha256", - "params": [ - "s" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it", - "afterEach" - ] - }, - { - "source": "node:crypto", - "specifiers": [ - "createHash" - ] - }, - { - "source": "node:fs/promises", - "specifiers": [ - "mkdtemp", - "mkdir", - "readFile", - "writeFile", - "rm" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "existsSync" - ] - }, - { - "source": "node:os", - "specifiers": [ - "tmpdir" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join", - "resolve" - ] - }, - { - "source": "../src/install.js", - "specifiers": [ - "install" - ] - }, - { - "source": "../src/uninstall.js", - "specifiers": [ - "uninstall" - ] - }, - { - "source": "../src/settings-merger.js", - "specifiers": [ - "ClaudeCodeSettings" - ] - } - ], - "exports": [], - "totalLines": 101, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-claude-code/tests/verify.test.ts": { - "filePath": "packages/hive-mind-hooks-claude-code/tests/verify.test.ts", - "contentHash": "ab467fea5300c0232b4bc81da97c34926c38f4369a03314fb84c8d0d64c6e04a", - "functions": [ - { - "name": "bootstrap", - "params": [ - "initial", - "withHookFiles" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 15 - }, - { - "name": "mockSpawnImpl", - "params": [ - "opts" - ], - "returnType": "typeof import('node:child_process').spawn", - "exported": false, - "lineCount": 14 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it", - "vi", - "afterEach" - ] - }, - { - "source": "node:events", - "specifiers": [ - "EventEmitter" - ] - }, - { - "source": "node:stream", - "specifiers": [ - "Readable" - ] - }, - { - "source": "node:fs/promises", - "specifiers": [ - "mkdtemp", - "mkdir", - "writeFile", - "rm" - ] - }, - { - "source": "node:os", - "specifiers": [ - "tmpdir" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join" - ] - }, - { - "source": "node:child_process", - "specifiers": [ - "ChildProcess" - ] - }, - { - "source": "../src/install.js", - "specifiers": [ - "install" - ] - }, - { - "source": "../src/verify.js", - "specifiers": [ - "verify" - ] - }, - { - "source": "../src/settings-merger.js", - "specifiers": [ - "ClaudeCodeSettings" - ] - } - ], - "exports": [], - "totalLines": 146, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-claude-code/tsconfig.json": { - "filePath": "packages/hive-mind-hooks-claude-code/tsconfig.json", - "contentHash": "34ca1993f28c117082c2e22ea155dd58c5149b7ca00402810180cf917d99f09e", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 15, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-claude-code/tsconfig.test.json": { - "filePath": "packages/hive-mind-hooks-claude-code/tsconfig.test.json", - "contentHash": "dd35a0eeeff0814c8fd641df9b32ef35949ee8f0e50a54c86b8306d327b6c2ca", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 13, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-claude-code/upstream-pr/0001-fix-resolve-windows-cmd-shims.patch": { - "filePath": "packages/hive-mind-hooks-claude-code/upstream-pr/0001-fix-resolve-windows-cmd-shims.patch", - "contentHash": "d08b80e21da5698c9ae4cde2d1ff88f6f9f2554038cd346377513482893c9eb3", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 56, - "hasStructuralAnalysis": false - }, - "packages/hive-mind-hooks-claude-code/upstream-pr/README.md": { - "filePath": "packages/hive-mind-hooks-claude-code/upstream-pr/README.md", - "contentHash": "e71a448eab653309ff3a597daf3c1956854ccd9848e6a73a82b3da1a00988feb", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 77, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-claude-desktop/package.json": { - "filePath": "packages/hive-mind-hooks-claude-desktop/package.json", - "contentHash": "d635d90aea0e8569226a3e053d54225710ffde42cf4c29d1b08747cb33ca4805", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 46, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-claude-desktop/README.md": { - "filePath": "packages/hive-mind-hooks-claude-desktop/README.md", - "contentHash": "569e6111e1acff21d12d8df0407223b6f7a7a77334c91039711dba8531b06615", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 10, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-claude-desktop/src/index.ts": { - "filePath": "packages/hive-mind-hooks-claude-desktop/src/index.ts", - "contentHash": "29f13a9f0865f84e203cff21e9ac9f3561e92ced41ec9f02d268a0b7e2bc5aea", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 12, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-claude-desktop/tsconfig.json": { - "filePath": "packages/hive-mind-hooks-claude-desktop/tsconfig.json", - "contentHash": "602a5d7da91ceeacece5e658f9e8c3ca218f3be5c30ff72fd8d55cf0dbc788b8", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 13, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-codex-desktop/package.json": { - "filePath": "packages/hive-mind-hooks-codex-desktop/package.json", - "contentHash": "98ddaae096e5302dc2cc0d88ed5fa53f4be760f8b7fe957ba9c8f159df37056a", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 63, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-codex-desktop/README.md": { - "filePath": "packages/hive-mind-hooks-codex-desktop/README.md", - "contentHash": "e94749fdbdf21c6a0b31726a262bd9c783e1868fbb30157e64a1e170d0b4fe85", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 74, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-codex-desktop/src/bin/codex-desktop-hooks.ts": { - "filePath": "packages/hive-mind-hooks-codex-desktop/src/bin/codex-desktop-hooks.ts", - "contentHash": "cb560993e3853d48b87aba92ad1d40d0b9915590db82e2c619bc5562725ac72c", - "functions": [ - { - "name": "parseArgs", - "params": [ - "argv" - ], - "returnType": "ParsedArgs", - "exported": false, - "lineCount": 26 - }, - { - "name": "printHelp", - "params": [], - "returnType": "void", - "exported": false, - "lineCount": 25 - }, - { - "name": "printInstallSummary", - "params": [ - "result" - ], - "returnType": "void", - "exported": false, - "lineCount": 25 - }, - { - "name": "printUninstallSummary", - "params": [ - "result" - ], - "returnType": "void", - "exported": false, - "lineCount": 14 - }, - { - "name": "printVerifySummary", - "params": [ - "result" - ], - "returnType": "void", - "exported": false, - "lineCount": 12 - }, - { - "name": "main", - "params": [], - "returnType": "Promise", - "exported": false, - "lineCount": 45 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/hive-mind-hooks-codex", - "specifiers": [ - "install", - "uninstall", - "verify", - "InstallResult", - "UninstallResult", - "VerifyResult" - ] - } - ], - "exports": [], - "totalLines": 186, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-codex-desktop/src/index.ts": { - "filePath": "packages/hive-mind-hooks-codex-desktop/src/index.ts", - "contentHash": "e01a504968728b19bb20e0638814e7873b033dba272bbea241e27ab9b3424532", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 18, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-codex-desktop/tests/parity.test.ts": { - "filePath": "packages/hive-mind-hooks-codex-desktop/tests/parity.test.ts", - "contentHash": "c86f3b5a3482a555379bb7ed6b065e5d09aa4043538d16fec95771342d0beb51", - "functions": [ - { - "name": "bootstrap", - "params": [ - "initial" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 12 - }, - { - "name": "sha256", - "params": [ - "s" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it", - "afterEach" - ] - }, - { - "source": "node:crypto", - "specifiers": [ - "createHash" - ] - }, - { - "source": "node:fs/promises", - "specifiers": [ - "mkdtemp", - "mkdir", - "readFile", - "writeFile", - "rm" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "existsSync" - ] - }, - { - "source": "node:os", - "specifiers": [ - "tmpdir" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join", - "resolve" - ] - }, - { - "source": "../src/index.js", - "specifiers": [ - "install", - "uninstall" - ] - }, - { - "source": "@waggle/hive-mind-hooks-codex", - "specifiers": [ - "codexInstall" - ] - }, - { - "source": "@waggle/hive-mind-hooks-codex", - "specifiers": [ - "HIVE_MIND_MARKER" - ] - } - ], - "exports": [], - "totalLines": 168, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-codex-desktop/tsconfig.json": { - "filePath": "packages/hive-mind-hooks-codex-desktop/tsconfig.json", - "contentHash": "8a93c9a60500ade9e2cd85a8b14f9ea68988ea3c5da12ea9309b850e747319df", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 15, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-codex-desktop/tsconfig.test.json": { - "filePath": "packages/hive-mind-hooks-codex-desktop/tsconfig.test.json", - "contentHash": "dd35a0eeeff0814c8fd641df9b32ef35949ee8f0e50a54c86b8306d327b6c2ca", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 13, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-codex/package.json": { - "filePath": "packages/hive-mind-hooks-codex/package.json", - "contentHash": "f22a23745d5d291d4c3e01187e63715b384c7f060df64063c9abe64afca5fd22", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 67, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-codex/README.md": { - "filePath": "packages/hive-mind-hooks-codex/README.md", - "contentHash": "a3f6be6c81a1e75edd6200df4e54d7af04497e277c8d17432672090fd6e95a87", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 60, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-codex/src/adapter.ts": { - "filePath": "packages/hive-mind-hooks-codex/src/adapter.ts", - "contentHash": "0d38049fc151f3285f32185a4df3ee3946e8158be74b20cc31cd13f10fb1991c", - "functions": [ - { - "name": "asObject", - "params": [ - "payload" - ], - "returnType": "Record | undefined", - "exported": false, - "lineCount": 5 - }, - { - "name": "extractTrigger", - "params": [ - "payload" - ], - "returnType": "string | undefined", - "exported": true, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/hive-mind-hooks-core", - "specifiers": [ - "pickStringField", - "HIVE_MIND_MARKER_BASE", - "EventAdapter", - "JsonRegisterSpec", - "Lifecycle" - ] - } - ], - "exports": [ - "HIVE_MIND_MARKER", - "SESSION_START_MATCHER", - "CODEX_EVENT_NAME", - "codexAdapter", - "extractTrigger", - "codexRegisterSpec" - ], - "totalLines": 133, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-codex/src/bin/codex-hooks.ts": { - "filePath": "packages/hive-mind-hooks-codex/src/bin/codex-hooks.ts", - "contentHash": "90fbee122f5e42a79d25ae4f0cc8001ec6404af251f608e14958b6b070ade1c9", - "functions": [ - { - "name": "parseArgs", - "params": [ - "argv" - ], - "returnType": "ParsedArgs", - "exported": false, - "lineCount": 26 - }, - { - "name": "printHelp", - "params": [], - "returnType": "void", - "exported": false, - "lineCount": 22 - }, - { - "name": "printInstallSummary", - "params": [ - "result" - ], - "returnType": "void", - "exported": false, - "lineCount": 18 - }, - { - "name": "printUninstallSummary", - "params": [ - "result" - ], - "returnType": "void", - "exported": false, - "lineCount": 14 - }, - { - "name": "printVerifySummary", - "params": [ - "result" - ], - "returnType": "void", - "exported": false, - "lineCount": 12 - }, - { - "name": "main", - "params": [], - "returnType": "Promise", - "exported": false, - "lineCount": 46 - } - ], - "classes": [], - "imports": [ - { - "source": "../install.js", - "specifiers": [ - "install", - "InstallResult" - ] - }, - { - "source": "../uninstall.js", - "specifiers": [ - "uninstall", - "UninstallResult" - ] - }, - { - "source": "../verify.js", - "specifiers": [ - "verify", - "VerifyResult" - ] - } - ], - "exports": [], - "totalLines": 165, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-codex/src/hooks/pre-compact.ts": { - "filePath": "packages/hive-mind-hooks-codex/src/hooks/pre-compact.ts", - "contentHash": "ede4a4847ea885417cf56ce50676031b2a05b96208092f678bfa3e08f4e9de2e", - "functions": [ - { - "name": "runPreCompact", - "params": [ - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 7 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/hive-mind-hooks-core", - "specifiers": [ - "makePreCompactHandler", - "runHook", - "HookRunOptions" - ] - }, - { - "source": "../adapter.js", - "specifiers": [ - "codexAdapter" - ] - } - ], - "exports": [ - "runPreCompact" - ], - "totalLines": 35, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-codex/src/hooks/session-start.ts": { - "filePath": "packages/hive-mind-hooks-codex/src/hooks/session-start.ts", - "contentHash": "6a91e464796b441e654d8d593c246fe454a9d86e9870ae93659b1c02369362d9", - "functions": [ - { - "name": "runSessionStart", - "params": [ - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 7 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/hive-mind-hooks-core", - "specifiers": [ - "makeSessionStartHandler", - "runHook", - "HookRunOptions" - ] - }, - { - "source": "../adapter.js", - "specifiers": [ - "codexAdapter" - ] - } - ], - "exports": [ - "runSessionStart" - ], - "totalLines": 38, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-codex/src/hooks/stop.ts": { - "filePath": "packages/hive-mind-hooks-codex/src/hooks/stop.ts", - "contentHash": "cb255dfd88a5ed860650e02f643d6962b98912bb3cb59cd6bde3fb4d8e1bd235", - "functions": [ - { - "name": "runStop", - "params": [ - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 7 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/hive-mind-hooks-core", - "specifiers": [ - "makeStopHandler", - "runHook", - "HookRunOptions" - ] - }, - { - "source": "../adapter.js", - "specifiers": [ - "codexAdapter" - ] - } - ], - "exports": [ - "runStop" - ], - "totalLines": 36, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-codex/src/hooks/user-prompt-submit.ts": { - "filePath": "packages/hive-mind-hooks-codex/src/hooks/user-prompt-submit.ts", - "contentHash": "2b73f797e6ed1e44ff04075ce47a925bad0e705f8c7c62f4a06432049b73d1cc", - "functions": [ - { - "name": "runUserPromptSubmit", - "params": [ - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 7 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/hive-mind-hooks-core", - "specifiers": [ - "makeUserPromptSubmitHandler", - "runHook", - "HookRunOptions" - ] - }, - { - "source": "../adapter.js", - "specifiers": [ - "codexAdapter" - ] - } - ], - "exports": [ - "runUserPromptSubmit" - ], - "totalLines": 34, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-codex/src/index.ts": { - "filePath": "packages/hive-mind-hooks-codex/src/index.ts", - "contentHash": "15e54019291226ecf23e3b69552d7f6898465ccd57916929f94d65eee27678bb", - "functions": [], - "classes": [], - "imports": [], - "exports": [ - "InstallOptions", - "InstallResult", - "install", - "UninstallOptions", - "UninstallResult", - "uninstall", - "VerifyOptions", - "VerifyResult", - "VerifyCheck", - "verify", - "CodexPaths", - "ResolvePathsOptions", - "HookBasename", - "resolvePaths", - "allHookBasenames", - "backupPathFor", - "hookCommandFor", - "codexAdapter", - "codexRegisterSpec", - "extractTrigger", - "CODEX_EVENT_NAME", - "HIVE_MIND_MARKER", - "SESSION_START_MATCHER" - ], - "totalLines": 50, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-codex/src/install.ts": { - "filePath": "packages/hive-mind-hooks-codex/src/install.ts", - "contentHash": "53d9486eca781dbdabd3f234087fba40021c4c832f40b9b81ec202eaef4fa8bc", - "functions": [ - { - "name": "ensureDir", - "params": [ - "p" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 3 - }, - { - "name": "install", - "params": [ - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 79 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs/promises", - "specifiers": [ - "readFile", - "writeFile", - "mkdir" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "existsSync" - ] - }, - { - "source": "node:path", - "specifiers": [ - "dirname" - ] - }, - { - "source": "@waggle/hive-mind-shim-core", - "specifiers": [ - "createLogger", - "Logger" - ] - }, - { - "source": "@waggle/hive-mind-hooks-core", - "specifiers": [ - "backupByteIdentical", - "hookCommandFor", - "hookScriptPath", - "jsonRegister", - "normalizeCliPath", - "writePointer", - "InstallPointer", - "JsonRegisterEntry", - "Lifecycle" - ] - }, - { - "source": "./paths.js", - "specifiers": [ - "resolvePaths", - "allHookBasenames", - "CodexPaths", - "ResolvePathsOptions" - ] - }, - { - "source": "./adapter.js", - "specifiers": [ - "codexRegisterSpec" - ] - } - ], - "exports": [ - "install" - ], - "totalLines": 162, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-codex/src/paths.ts": { - "filePath": "packages/hive-mind-hooks-codex/src/paths.ts", - "contentHash": "724d3dd1928eeb691677cee5a6b9da8ea968b552a4d3c66ee52c51c64a6c702b", - "functions": [ - { - "name": "allHookBasenames", - "params": [], - "returnType": "readonly HookBasename[]", - "exported": true, - "lineCount": 3 - }, - { - "name": "resolvePaths", - "params": [ - "opts" - ], - "returnType": "CodexPaths", - "exported": true, - "lineCount": 18 - } - ], - "classes": [], - "imports": [ - { - "source": "node:os", - "specifiers": [ - "homedir" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join", - "resolve" - ] - }, - { - "source": "@waggle/hive-mind-hooks-core", - "specifiers": [ - "backupPathFor", - "hookCommandFor", - "hooksDirFromModuleUrl" - ] - } - ], - "exports": [ - "allHookBasenames", - "resolvePaths", - "backupPathFor", - "hookCommandFor" - ], - "totalLines": 74, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-codex/src/uninstall.ts": { - "filePath": "packages/hive-mind-hooks-codex/src/uninstall.ts", - "contentHash": "9207bc3fb5d34f860890936e1456c0b3cf637f274067a5eafc3f1566b60fa8db", - "functions": [ - { - "name": "uninstall", - "params": [ - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 38 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs/promises", - "specifiers": [ - "unlink" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "existsSync" - ] - }, - { - "source": "@waggle/hive-mind-shim-core", - "specifiers": [ - "createLogger", - "Logger" - ] - }, - { - "source": "@waggle/hive-mind-hooks-core", - "specifiers": [ - "readPointer", - "restoreFromBackup" - ] - }, - { - "source": "./paths.js", - "specifiers": [ - "resolvePaths", - "CodexPaths", - "ResolvePathsOptions" - ] - } - ], - "exports": [ - "uninstall" - ], - "totalLines": 77, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-codex/src/verify.ts": { - "filePath": "packages/hive-mind-hooks-codex/src/verify.ts", - "contentHash": "9cee7b069b861b49f857c1c6afb42ac6a7460f114e9f48c9d8aa5a7b761214ac", - "functions": [ - { - "name": "fileReadable", - "params": [ - "p" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 3 - }, - { - "name": "isJsPath", - "params": [ - "p" - ], - "returnType": "boolean", - "exported": false, - "lineCount": 3 - }, - { - "name": "probeCliVersion", - "params": [ - "cliPath", - "spawnImpl", - "timeoutMs" - ], - "returnType": "Promise<{ ok: boolean; output: string }>", - "exported": false, - "lineCount": 36 - }, - { - "name": "verify", - "params": [ - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 92 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs/promises", - "specifiers": [ - "readFile", - "access" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "constants", - "existsSync" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join" - ] - }, - { - "source": "node:child_process", - "specifiers": [ - "spawn" - ] - }, - { - "source": "@waggle/hive-mind-shim-core", - "specifiers": [ - "createLogger", - "Logger" - ] - }, - { - "source": "@waggle/hive-mind-hooks-core", - "specifiers": [ - "hasHiveEntries" - ] - }, - { - "source": "./paths.js", - "specifiers": [ - "resolvePaths", - "allHookBasenames", - "ResolvePathsOptions" - ] - }, - { - "source": "./adapter.js", - "specifiers": [ - "codexRegisterSpec" - ] - } - ], - "exports": [ - "verify" - ], - "totalLines": 182, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-codex/tests/hooks/_test-helpers.ts": { - "filePath": "packages/hive-mind-hooks-codex/tests/hooks/_test-helpers.ts", - "contentHash": "09845f86b85957a24130787064a2d2b6b0251c9a547504e575d1b5b063024e20", - "functions": [ - { - "name": "makeMockBridge", - "params": [ - "overrides" - ], - "returnType": "MockBridge", - "exported": true, - "lineCount": 19 - }, - { - "name": "makeHookCaptures", - "params": [], - "returnType": "CapturedHookOutput & {\r\n writeStdout: (s: string) => void;\r\n exit: (code: number) => void;\r\n}", - "exported": true, - "lineCount": 13 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "vi" - ] - }, - { - "source": "@waggle/hive-mind-shim-core", - "specifiers": [ - "CliBridge", - "MemoryHit" - ] - } - ], - "exports": [ - "makeMockBridge", - "makeHookCaptures" - ], - "totalLines": 63, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-codex/tests/hooks/pre-compact.test.ts": { - "filePath": "packages/hive-mind-hooks-codex/tests/hooks/pre-compact.test.ts", - "contentHash": "f675a9bea3ca3ef06f0b530033cfc93f533a16c3d774e7a2e0ed7183ab29f8d7", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "../../src/hooks/pre-compact.js", - "specifiers": [ - "runPreCompact" - ] - }, - { - "source": "./_test-helpers.js", - "specifiers": [ - "makeHookCaptures", - "makeMockBridge" - ] - } - ], - "exports": [], - "totalLines": 45, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-codex/tests/hooks/session-start.test.ts": { - "filePath": "packages/hive-mind-hooks-codex/tests/hooks/session-start.test.ts", - "contentHash": "2365920adf34412affb004b459dac8f59f879bcc820c6f1fae0f91ea222ab0e5", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "../../src/hooks/session-start.js", - "specifiers": [ - "runSessionStart" - ] - }, - { - "source": "./_test-helpers.js", - "specifiers": [ - "makeHookCaptures", - "makeMockBridge" - ] - }, - { - "source": "@waggle/hive-mind-shim-core", - "specifiers": [ - "MemoryHit" - ] - } - ], - "exports": [], - "totalLines": 78, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-codex/tests/hooks/stop.test.ts": { - "filePath": "packages/hive-mind-hooks-codex/tests/hooks/stop.test.ts", - "contentHash": "575ba03a26cc71b807ddaa93e2d0f8a8f5391b69ddee9004eefacd7cc400066d", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it", - "afterEach", - "vi" - ] - }, - { - "source": "../../src/hooks/stop.js", - "specifiers": [ - "runStop" - ] - }, - { - "source": "./_test-helpers.js", - "specifiers": [ - "makeHookCaptures", - "makeMockBridge" - ] - }, - { - "source": "@waggle/hive-mind-shim-core", - "specifiers": [ - "HookFrame" - ] - } - ], - "exports": [], - "totalLines": 104, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-codex/tests/hooks/user-prompt-submit.test.ts": { - "filePath": "packages/hive-mind-hooks-codex/tests/hooks/user-prompt-submit.test.ts", - "contentHash": "67017cb53f10a6b4f02b7a9e8b29b18cf40c71da68925141aa31d11d536b676a", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "../../src/hooks/user-prompt-submit.js", - "specifiers": [ - "runUserPromptSubmit" - ] - }, - { - "source": "./_test-helpers.js", - "specifiers": [ - "makeHookCaptures", - "makeMockBridge" - ] - }, - { - "source": "@waggle/hive-mind-shim-core", - "specifiers": [ - "HookFrame" - ] - } - ], - "exports": [], - "totalLines": 70, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-codex/tests/install.test.ts": { - "filePath": "packages/hive-mind-hooks-codex/tests/install.test.ts", - "contentHash": "8fc98d11deafa1ef42a47653f54f48f00a1fafe522023566216e964d52cce1e3", - "functions": [ - { - "name": "bootstrap", - "params": [ - "initial" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 14 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it", - "afterEach" - ] - }, - { - "source": "node:fs/promises", - "specifiers": [ - "mkdtemp", - "mkdir", - "readFile", - "writeFile", - "rm", - "stat" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "existsSync" - ] - }, - { - "source": "node:os", - "specifiers": [ - "tmpdir" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join", - "resolve" - ] - }, - { - "source": "node:child_process", - "specifiers": [ - "execFile" - ] - }, - { - "source": "node:util", - "specifiers": [ - "promisify" - ] - }, - { - "source": "node:url", - "specifiers": [ - "fileURLToPath" - ] - }, - { - "source": "../src/install.js", - "specifiers": [ - "install" - ] - }, - { - "source": "../src/adapter.js", - "specifiers": [ - "HIVE_MIND_MARKER" - ] - } - ], - "exports": [], - "totalLines": 185, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-codex/tests/paths.test.ts": { - "filePath": "packages/hive-mind-hooks-codex/tests/paths.test.ts", - "contentHash": "5b724262b9a4b4c75db7774db1d7d116eeb67315e267b70d8bffe3ec56674c28", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join", - "resolve" - ] - }, - { - "source": "../src/paths.js", - "specifiers": [ - "allHookBasenames", - "backupPathFor", - "hookCommandFor", - "resolvePaths" - ] - } - ], - "exports": [], - "totalLines": 75, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-codex/tests/register.test.ts": { - "filePath": "packages/hive-mind-hooks-codex/tests/register.test.ts", - "contentHash": "87b6e2f9475bd2f5233ff587fe5c4fc2ac0226052b5fb854ae80523b7289c3eb", - "functions": [ - { - "name": "entry", - "params": [ - "lifecycle", - "basename", - "timeout" - ], - "returnType": "JsonRegisterEntry", - "exported": false, - "lineCount": 11 - }, - { - "name": "groupsAt", - "params": [ - "config", - "eventKey" - ], - "returnType": "CodexGroup[]", - "exported": false, - "lineCount": 4 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "@waggle/hive-mind-hooks-core", - "specifiers": [ - "jsonRegister", - "jsonUnregister", - "hasHiveEntries", - "JsonRegisterEntry" - ] - }, - { - "source": "../src/adapter.js", - "specifiers": [ - "codexRegisterSpec", - "HIVE_MIND_MARKER", - "SESSION_START_MATCHER" - ] - }, - { - "source": "../src/paths.js", - "specifiers": [ - "hookCommandFor" - ] - } - ], - "exports": [], - "totalLines": 151, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-codex/tests/uninstall.test.ts": { - "filePath": "packages/hive-mind-hooks-codex/tests/uninstall.test.ts", - "contentHash": "3d9f3554a74bfea34d0d1019e5a3154d192d936020aa2148815c8dc36de44a7e", - "functions": [ - { - "name": "bootstrap", - "params": [ - "initial" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 12 - }, - { - "name": "sha256", - "params": [ - "s" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it", - "afterEach" - ] - }, - { - "source": "node:crypto", - "specifiers": [ - "createHash" - ] - }, - { - "source": "node:fs/promises", - "specifiers": [ - "mkdtemp", - "mkdir", - "readFile", - "writeFile", - "rm" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "existsSync" - ] - }, - { - "source": "node:os", - "specifiers": [ - "tmpdir" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join", - "resolve" - ] - }, - { - "source": "../src/install.js", - "specifiers": [ - "install" - ] - }, - { - "source": "../src/uninstall.js", - "specifiers": [ - "uninstall" - ] - } - ], - "exports": [], - "totalLines": 119, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-codex/tests/verify.test.ts": { - "filePath": "packages/hive-mind-hooks-codex/tests/verify.test.ts", - "contentHash": "754811adde7857e55f97c3c382f976c59471eeda70685e6915dd5c50e4be7ed7", - "functions": [ - { - "name": "bootstrap", - "params": [ - "initial", - "withHookFiles" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 19 - }, - { - "name": "mockSpawnImpl", - "params": [ - "opts" - ], - "returnType": "typeof import('node:child_process').spawn", - "exported": false, - "lineCount": 14 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it", - "vi", - "afterEach" - ] - }, - { - "source": "node:events", - "specifiers": [ - "EventEmitter" - ] - }, - { - "source": "node:stream", - "specifiers": [ - "Readable" - ] - }, - { - "source": "node:fs/promises", - "specifiers": [ - "mkdtemp", - "mkdir", - "writeFile", - "rm" - ] - }, - { - "source": "node:os", - "specifiers": [ - "tmpdir" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join" - ] - }, - { - "source": "node:child_process", - "specifiers": [ - "ChildProcess" - ] - }, - { - "source": "../src/install.js", - "specifiers": [ - "install" - ] - }, - { - "source": "../src/verify.js", - "specifiers": [ - "verify" - ] - } - ], - "exports": [], - "totalLines": 207, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-codex/tsconfig.json": { - "filePath": "packages/hive-mind-hooks-codex/tsconfig.json", - "contentHash": "68a799ec76ee57fa6d15a9026f8030af75be3b0bcdb86bd8e860aa7087ce2c48", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 16, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-codex/tsconfig.test.json": { - "filePath": "packages/hive-mind-hooks-codex/tsconfig.test.json", - "contentHash": "dd35a0eeeff0814c8fd641df9b32ef35949ee8f0e50a54c86b8306d327b6c2ca", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 13, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-core/package.json": { - "filePath": "packages/hive-mind-hooks-core/package.json", - "contentHash": "8275c497fed3b50c8557a49384a2944feecaad7742fbb42dccea483da3d21a64", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 59, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-core/src/event-adapter.ts": { - "filePath": "packages/hive-mind-hooks-core/src/event-adapter.ts", - "contentHash": "21f77f1ada74203e35fd14628cf2918c294375567fdab47368a4de1de895716a", - "functions": [], - "classes": [], - "imports": [ - { - "source": "@waggle/hive-mind-shim-core", - "specifiers": [ - "ShimSource" - ] - } - ], - "exports": [], - "totalLines": 58, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-core/src/handlers-core.ts": { - "filePath": "packages/hive-mind-hooks-core/src/handlers-core.ts", - "contentHash": "0f7a2737e8d1ad738df4f4dfc041f565be2e3ac0529b2040586ed8b03c23c578", - "functions": [ - { - "name": "formatHitsForContext", - "params": [ - "hits" - ], - "returnType": "string", - "exported": false, - "lineCount": 14 - }, - { - "name": "defaultFormatInject", - "params": [ - "source", - "additionalContext" - ], - "returnType": "unknown", - "exported": false, - "lineCount": 9 - }, - { - "name": "runSessionStartBody", - "params": [ - "a", - "payload", - "ctx" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 15 - }, - { - "name": "runUserPromptBody", - "params": [ - "a", - "payload", - "ctx" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 24 - }, - { - "name": "runStopBody", - "params": [ - "a", - "payload", - "ctx", - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 62 - }, - { - "name": "runPreCompactBody", - "params": [ - "_a", - "payload", - "ctx" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 9 - }, - { - "name": "extractSessionStart", - "params": [ - "a", - "raw", - "recallLimit" - ], - "returnType": "SessionStartExtracted", - "exported": false, - "lineCount": 7 - }, - { - "name": "resolveRecallLimit", - "params": [ - "raw", - "fallback" - ], - "returnType": "number", - "exported": false, - "lineCount": 8 - }, - { - "name": "extractUserPrompt", - "params": [ - "a", - "raw" - ], - "returnType": "UserPromptExtracted", - "exported": false, - "lineCount": 7 - }, - { - "name": "extractStop", - "params": [ - "a", - "raw", - "ctx" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 9 - }, - { - "name": "extractPreCompact", - "params": [ - "a", - "raw" - ], - "returnType": "PreCompactExtracted", - "exported": false, - "lineCount": 3 - }, - { - "name": "makeSessionStartHandler", - "params": [ - "a", - "opts" - ], - "returnType": "HookHandler", - "exported": true, - "lineCount": 15 - }, - { - "name": "makeUserPromptSubmitHandler", - "params": [ - "a" - ], - "returnType": "HookHandler", - "exported": true, - "lineCount": 12 - }, - { - "name": "makeStopHandler", - "params": [ - "a", - "opts" - ], - "returnType": "HookHandler", - "exported": true, - "lineCount": 14 - }, - { - "name": "makePreCompactHandler", - "params": [ - "a" - ], - "returnType": "HookHandler", - "exported": true, - "lineCount": 12 - }, - { - "name": "lifecycleForOpenclawEvent", - "params": [ - "a", - "ev" - ], - "returnType": "Lifecycle | undefined", - "exported": false, - "lineCount": 18 - }, - { - "name": "makeOpenclawHandler", - "params": [ - "a", - "opts" - ], - "returnType": "OpenclawHandler", - "exported": true, - "lineCount": 86 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/hive-mind-shim-core", - "specifiers": [ - "classifyImportance", - "encodeFrame", - "maybeEmitDiscovery", - "summarizeTurn", - "HookEvent", - "MemoryHit" - ] - }, - { - "source": "./event-adapter.js", - "specifiers": [ - "EventAdapter", - "ExtractContext", - "Lifecycle" - ] - }, - { - "source": "./hook-shared.js", - "specifiers": [ - "HookContext", - "HookHandler" - ] - } - ], - "exports": [ - "runSessionStartBody", - "runUserPromptBody", - "runStopBody", - "runPreCompactBody", - "makeSessionStartHandler", - "makeUserPromptSubmitHandler", - "makeStopHandler", - "makePreCompactHandler", - "makeOpenclawHandler" - ], - "totalLines": 524, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-core/src/hook-shared.ts": { - "filePath": "packages/hive-mind-hooks-core/src/hook-shared.ts", - "contentHash": "47fcacd5b6f9b8a110fc9447a568e89b774ed46113168963fefe428685f7b8dd", - "functions": [ - { - "name": "parseHookArgs", - "params": [ - "argv" - ], - "returnType": "{ cliPath?: string }", - "exported": true, - "lineCount": 8 - }, - { - "name": "readStdinAsString", - "params": [ - "timeoutMs" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 27 - }, - { - "name": "safeJsonParse", - "params": [ - "raw" - ], - "returnType": "unknown", - "exported": true, - "lineCount": 8 - }, - { - "name": "runHook", - "params": [ - "handler", - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 32 - }, - { - "name": "pickStringField", - "params": [ - "payload", - "...keys" - ], - "returnType": "string | undefined", - "exported": true, - "lineCount": 9 - }, - { - "name": "pickStringFromObject", - "params": [ - "obj", - "key" - ], - "returnType": "string | undefined", - "exported": true, - "lineCount": 4 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/hive-mind-shim-core", - "specifiers": [ - "createCliBridge", - "createLogger", - "CliBridge", - "CliBridgeOptions", - "Logger" - ] - } - ], - "exports": [ - "parseHookArgs", - "readStdinAsString", - "safeJsonParse", - "runHook", - "pickStringField", - "pickStringFromObject" - ], - "totalLines": 172, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-core/src/index.ts": { - "filePath": "packages/hive-mind-hooks-core/src/index.ts", - "contentHash": "bc1aece6f4b23474dc40eec7b004f4045077f50cccdbd172762d0d944e8a9c66", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 30, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-core/src/install-core.ts": { - "filePath": "packages/hive-mind-hooks-core/src/install-core.ts", - "contentHash": "78f5cc1fc2bd9a1c8e682c9ccc35fb405963f2848d8426949643bf49f2a9074d", - "functions": [ - { - "name": "backupByteIdentical", - "params": [ - "configPath", - "isoTimestamp" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 12 - }, - { - "name": "writePointer", - "params": [ - "pointerPath", - "pointer" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 3 - }, - { - "name": "isInstallPointer", - "params": [ - "value" - ], - "exported": false, - "lineCount": 10 - }, - { - "name": "readPointer", - "params": [ - "pointerPath" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 19 - }, - { - "name": "restoreFromBackup", - "params": [ - "args" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 61 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs/promises", - "specifiers": [ - "readFile", - "writeFile", - "unlink" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "existsSync" - ] - }, - { - "source": "./paths-core.js", - "specifiers": [ - "backupPathFor" - ] - } - ], - "exports": [ - "backupByteIdentical", - "writePointer", - "readPointer", - "restoreFromBackup" - ], - "totalLines": 191, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-core/src/json-register.ts": { - "filePath": "packages/hive-mind-hooks-core/src/json-register.ts", - "contentHash": "d3eae2f2e351826ea8a8b4126fc84a9b3222b3498735ce45fafbd34b8c3aa287", - "functions": [ - { - "name": "asRecord", - "params": [ - "value" - ], - "returnType": "Record | undefined", - "exported": false, - "lineCount": 5 - }, - { - "name": "asGroupArray", - "params": [ - "value" - ], - "returnType": "Record[]", - "exported": false, - "lineCount": 3 - }, - { - "name": "jsonRegister", - "params": [ - "config", - "entries", - "spec" - ], - "returnType": "Record", - "exported": true, - "lineCount": 36 - }, - { - "name": "jsonUnregister", - "params": [ - "config", - "spec" - ], - "returnType": "Record", - "exported": true, - "lineCount": 20 - }, - { - "name": "hasHiveEntries", - "params": [ - "config", - "spec" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 12 - } - ], - "classes": [], - "imports": [ - { - "source": "./event-adapter.js", - "specifiers": [ - "Lifecycle" - ] - } - ], - "exports": [ - "HIVE_MIND_MARKER_BASE", - "jsonRegister", - "jsonUnregister", - "hasHiveEntries" - ], - "totalLines": 143, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-core/src/paths-core.ts": { - "filePath": "packages/hive-mind-hooks-core/src/paths-core.ts", - "contentHash": "91bc21b6300d2130f4bd5c031ed4a69609ddb61cf8df8d21e7ee372c47965fe2", - "functions": [ - { - "name": "backupPathFor", - "params": [ - "configPath", - "isoTimestamp" - ], - "returnType": "string", - "exported": true, - "lineCount": 4 - }, - { - "name": "hookCommandFor", - "params": [ - "scriptPath", - "cliPath" - ], - "returnType": "string", - "exported": true, - "lineCount": 4 - }, - { - "name": "normalizeCliPath", - "params": [ - "input" - ], - "returnType": "string | undefined", - "exported": true, - "lineCount": 11 - }, - { - "name": "hooksDirFromModuleUrl", - "params": [ - "moduleUrl" - ], - "returnType": "string", - "exported": true, - "lineCount": 4 - }, - { - "name": "hookScriptPath", - "params": [ - "hooksDir", - "basename" - ], - "returnType": "string", - "exported": true, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "node:url", - "specifiers": [ - "fileURLToPath" - ] - }, - { - "source": "node:path", - "specifiers": [ - "dirname", - "join", - "resolve" - ] - } - ], - "exports": [ - "backupPathFor", - "hookCommandFor", - "normalizeCliPath", - "hooksDirFromModuleUrl", - "hookScriptPath" - ], - "totalLines": 75, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-core/tests/_helpers.ts": { - "filePath": "packages/hive-mind-hooks-core/tests/_helpers.ts", - "contentHash": "13bd7695e903ed36dbb22250ae0e2ca0a689855ea093e78405aed0346c37a725", - "functions": [ - { - "name": "makeMockBridge", - "params": [ - "overrides" - ], - "returnType": "MockBridge", - "exported": true, - "lineCount": 23 - }, - { - "name": "makeMockLogger", - "params": [], - "returnType": "Logger & {\r\n debug: ReturnType;\r\n info: ReturnType;\r\n warn: ReturnType;\r\n error: ReturnType;\r\n}", - "exported": true, - "lineCount": 13 - }, - { - "name": "makeCtx", - "params": [ - "bridge" - ], - "returnType": "HookContext", - "exported": true, - "lineCount": 3 - }, - { - "name": "pick", - "params": [ - "payload", - "...keys" - ], - "returnType": "string | undefined", - "exported": false, - "lineCount": 9 - }, - { - "name": "makeMockAdapter", - "params": [ - "overrides" - ], - "returnType": "EventAdapter", - "exported": true, - "lineCount": 25 - }, - { - "name": "withEnv", - "params": [ - "key", - "value", - "fn" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 13 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "vi" - ] - }, - { - "source": "@waggle/hive-mind-shim-core", - "specifiers": [ - "CliBridge", - "Logger", - "MemoryHit", - "ShimSource" - ] - }, - { - "source": "../src/event-adapter.js", - "specifiers": [ - "EventAdapter", - "Lifecycle" - ] - }, - { - "source": "../src/hook-shared.js", - "specifiers": [ - "HookContext" - ] - } - ], - "exports": [ - "makeMockBridge", - "makeMockLogger", - "makeCtx", - "makeMockAdapter", - "HIT_FIXTURE", - "withEnv" - ], - "totalLines": 155, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-core/tests/handlers-core.test.ts": { - "filePath": "packages/hive-mind-hooks-core/tests/handlers-core.test.ts", - "contentHash": "a2c9cabc491bbc8f034d51750f16598e10e4f41f78bad4d98ae05119b221cdc0", - "functions": [ - { - "name": "openclawAdapter", - "params": [], - "returnType": "EventAdapter", - "exported": false, - "lineCount": 10 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "../src/handlers-core.js", - "specifiers": [ - "makeOpenclawHandler", - "makePreCompactHandler", - "makeSessionStartHandler", - "makeStopHandler", - "makeUserPromptSubmitHandler", - "OpenclawHandlerInput", - "PreCompactExtracted", - "SessionStartExtracted", - "StopExtracted", - "UserPromptExtracted" - ] - }, - { - "source": "../src/event-adapter.js", - "specifiers": [ - "EventAdapter", - "Lifecycle" - ] - }, - { - "source": "./_helpers.js", - "specifiers": [ - "HIT_FIXTURE", - "makeCtx", - "makeMockAdapter", - "makeMockBridge", - "withEnv" - ] - } - ], - "exports": [], - "totalLines": 371, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-core/tests/hook-shared.test.ts": { - "filePath": "packages/hive-mind-hooks-core/tests/hook-shared.test.ts", - "contentHash": "8a03f591ce4729e0630bc66465be1aaebaaef0d1411dc4f7a9a1cb089250161c", - "functions": [ - { - "name": "makeCaptures", - "params": [], - "returnType": "{\r\n stdout: string[];\r\n exits: number[];\r\n writeStdout: (s: string) => void;\r\n exit: (code: number) => void;\r\n}", - "exported": false, - "lineCount": 10 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "../src/hook-shared.js", - "specifiers": [ - "parseHookArgs", - "pickStringField", - "pickStringFromObject", - "runHook", - "safeJsonParse", - "HookContext", - "HookHandler" - ] - }, - { - "source": "./_helpers.js", - "specifiers": [ - "makeMockBridge", - "makeMockLogger" - ] - } - ], - "exports": [], - "totalLines": 216, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-core/tests/install-core.test.ts": { - "filePath": "packages/hive-mind-hooks-core/tests/install-core.test.ts", - "contentHash": "4000049e89709dc37d5c10a66f0ec0208e3206322a83e4e3a9863c1dca02ee5a", - "functions": [ - { - "name": "sha256", - "params": [ - "buf" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "tmp", - "params": [], - "returnType": "Promise", - "exported": false, - "lineCount": 4 - }, - { - "name": "basePointer", - "params": [ - "over" - ], - "returnType": "InstallPointer", - "exported": false, - "lineCount": 13 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "afterEach", - "describe", - "expect", - "it" - ] - }, - { - "source": "node:crypto", - "specifiers": [ - "createHash" - ] - }, - { - "source": "node:fs/promises", - "specifiers": [ - "mkdtemp", - "readFile", - "writeFile", - "rm" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "existsSync" - ] - }, - { - "source": "node:os", - "specifiers": [ - "tmpdir" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join" - ] - }, - { - "source": "../src/install-core.js", - "specifiers": [ - "backupByteIdentical", - "readPointer", - "restoreFromBackup", - "writePointer", - "InstallPointer" - ] - }, - { - "source": "../src/paths-core.js", - "specifiers": [ - "backupPathFor" - ] - } - ], - "exports": [], - "totalLines": 234, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-core/tests/json-register.test.ts": { - "filePath": "packages/hive-mind-hooks-core/tests/json-register.test.ts", - "contentHash": "796d51630595dc8e59d5301143c74187382122c8dc88fef0dd0220ebeab09f46", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "../src/json-register.js", - "specifiers": [ - "HIVE_MIND_MARKER_BASE", - "hasHiveEntries", - "jsonRegister", - "jsonUnregister", - "JsonRegisterEntry", - "JsonRegisterSpec" - ] - }, - { - "source": "../src/event-adapter.js", - "specifiers": [ - "Lifecycle" - ] - } - ], - "exports": [], - "totalLines": 208, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-core/tests/paths-core.test.ts": { - "filePath": "packages/hive-mind-hooks-core/tests/paths-core.test.ts", - "contentHash": "af6f782a23bd20624435803d31a046e63b63623017d769e6280d16418e8d50f7", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "node:url", - "specifiers": [ - "pathToFileURL" - ] - }, - { - "source": "node:path", - "specifiers": [ - "dirname", - "join", - "resolve" - ] - }, - { - "source": "../src/paths-core.js", - "specifiers": [ - "backupPathFor", - "hookCommandFor", - "hooksDirFromModuleUrl", - "hookScriptPath", - "normalizeCliPath" - ] - } - ], - "exports": [], - "totalLines": 103, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-core/tsconfig.json": { - "filePath": "packages/hive-mind-hooks-core/tsconfig.json", - "contentHash": "34ca1993f28c117082c2e22ea155dd58c5149b7ca00402810180cf917d99f09e", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 15, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-core/tsconfig.test.json": { - "filePath": "packages/hive-mind-hooks-core/tsconfig.test.json", - "contentHash": "dd35a0eeeff0814c8fd641df9b32ef35949ee8f0e50a54c86b8306d327b6c2ca", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 13, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-cursor/package.json": { - "filePath": "packages/hive-mind-hooks-cursor/package.json", - "contentHash": "373e5a99435867a601f92467b54fa7511f2b0cde18911576db8af371e9dd02f6", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 66, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-cursor/README.md": { - "filePath": "packages/hive-mind-hooks-cursor/README.md", - "contentHash": "2942bd33eccc84105951b37fedc279a6cc6a626d2fbddc9b0dbde0f0b4d1f317", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 67, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-cursor/src/adapter.ts": { - "filePath": "packages/hive-mind-hooks-cursor/src/adapter.ts", - "contentHash": "4bddd469bb6783737a2890d9ad1bcf68307694c32f7169148cfa5b58c5f15ab6", - "functions": [ - { - "name": "asObject", - "params": [ - "payload" - ], - "returnType": "Record | undefined", - "exported": false, - "lineCount": 5 - }, - { - "name": "readTranscript", - "params": [ - "transcriptPath", - "ctx" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 14 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs/promises", - "specifiers": [ - "readFile" - ] - }, - { - "source": "@waggle/hive-mind-hooks-core", - "specifiers": [ - "pickStringField", - "HIVE_MIND_MARKER_BASE", - "EventAdapter", - "ExtractContext", - "JsonRegisterSpec", - "Lifecycle" - ] - } - ], - "exports": [ - "HIVE_MIND_MARKER", - "CURSOR_EVENT_NAME", - "cursorAdapter", - "cursorRegisterSpec" - ], - "totalLines": 167, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-cursor/src/bin/cursor-hooks.ts": { - "filePath": "packages/hive-mind-hooks-cursor/src/bin/cursor-hooks.ts", - "contentHash": "c498c69838c833d81a5d536e9697297a3733c3ca5d0166fe5a0f939ca6f78661", - "functions": [ - { - "name": "parseArgs", - "params": [ - "argv" - ], - "returnType": "ParsedArgs", - "exported": false, - "lineCount": 26 - }, - { - "name": "printHelp", - "params": [], - "returnType": "void", - "exported": false, - "lineCount": 22 - }, - { - "name": "printInstallSummary", - "params": [ - "result" - ], - "returnType": "void", - "exported": false, - "lineCount": 22 - }, - { - "name": "printUninstallSummary", - "params": [ - "result" - ], - "returnType": "void", - "exported": false, - "lineCount": 15 - }, - { - "name": "printVerifySummary", - "params": [ - "result" - ], - "returnType": "void", - "exported": false, - "lineCount": 12 - }, - { - "name": "main", - "params": [], - "returnType": "Promise", - "exported": false, - "lineCount": 46 - } - ], - "classes": [], - "imports": [ - { - "source": "../install.js", - "specifiers": [ - "install", - "InstallResult" - ] - }, - { - "source": "../uninstall.js", - "specifiers": [ - "uninstall", - "UninstallResult" - ] - }, - { - "source": "../verify.js", - "specifiers": [ - "verify", - "VerifyResult" - ] - } - ], - "exports": [], - "totalLines": 170, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-cursor/src/hooks/pre-compact.ts": { - "filePath": "packages/hive-mind-hooks-cursor/src/hooks/pre-compact.ts", - "contentHash": "285d020a62dece9a8056f742fabe2e00939f2571df22ae4817001ee9b77c66b5", - "functions": [ - { - "name": "runPreCompact", - "params": [ - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 7 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/hive-mind-hooks-core", - "specifiers": [ - "makePreCompactHandler", - "runHook", - "HookRunOptions" - ] - }, - { - "source": "../adapter.js", - "specifiers": [ - "cursorAdapter" - ] - } - ], - "exports": [ - "runPreCompact" - ], - "totalLines": 39, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-cursor/src/hooks/session-start.ts": { - "filePath": "packages/hive-mind-hooks-cursor/src/hooks/session-start.ts", - "contentHash": "667b6b6111487485c14057ccf51eb1fa35c560c3850c1a4b675a1fd90d5aa871", - "functions": [ - { - "name": "runSessionStart", - "params": [ - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 7 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/hive-mind-hooks-core", - "specifiers": [ - "makeSessionStartHandler", - "runHook", - "HookRunOptions" - ] - }, - { - "source": "../adapter.js", - "specifiers": [ - "cursorAdapter" - ] - } - ], - "exports": [ - "runSessionStart" - ], - "totalLines": 40, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-cursor/src/hooks/stop.ts": { - "filePath": "packages/hive-mind-hooks-cursor/src/hooks/stop.ts", - "contentHash": "09e14bf4fb0452f87819ff5e013f97f943a9ab2d3d43a8e62a172371cfc45203", - "functions": [ - { - "name": "runStop", - "params": [ - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 7 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/hive-mind-hooks-core", - "specifiers": [ - "makeStopHandler", - "runHook", - "HookRunOptions" - ] - }, - { - "source": "../adapter.js", - "specifiers": [ - "cursorAdapter" - ] - } - ], - "exports": [ - "runStop" - ], - "totalLines": 41, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-cursor/src/hooks/user-prompt-submit.ts": { - "filePath": "packages/hive-mind-hooks-cursor/src/hooks/user-prompt-submit.ts", - "contentHash": "1a8ce36c3e0e074d211f1847dd2a4161fa68357094aaa5a147310248ee2c81c5", - "functions": [ - { - "name": "runUserPromptSubmit", - "params": [ - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 7 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/hive-mind-hooks-core", - "specifiers": [ - "makeUserPromptSubmitHandler", - "runHook", - "HookRunOptions" - ] - }, - { - "source": "../adapter.js", - "specifiers": [ - "cursorAdapter" - ] - } - ], - "exports": [ - "runUserPromptSubmit" - ], - "totalLines": 40, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-cursor/src/index.ts": { - "filePath": "packages/hive-mind-hooks-cursor/src/index.ts", - "contentHash": "6e198de8b6be5a1245807d5c34f0576d7e2b54d991dc279a4350c9a1bd68c021", - "functions": [], - "classes": [], - "imports": [], - "exports": [ - "InstallOptions", - "InstallResult", - "install", - "UninstallOptions", - "UninstallResult", - "uninstall", - "VerifyOptions", - "VerifyResult", - "VerifyCheck", - "verify", - "CursorPaths", - "ResolvePathsOptions", - "HookBasename", - "resolvePaths", - "allHookBasenames", - "backupPathFor", - "hookCommandFor", - "cursorAdapter", - "cursorRegisterSpec", - "CURSOR_EVENT_NAME", - "HIVE_MIND_MARKER" - ], - "totalLines": 51, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-cursor/src/install.ts": { - "filePath": "packages/hive-mind-hooks-cursor/src/install.ts", - "contentHash": "f9cb7f1134c3ceae80b79a051bab4d3751cccb9976a5e32a665b0c364d4c5373", - "functions": [ - { - "name": "ensureDir", - "params": [ - "p" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 3 - }, - { - "name": "install", - "params": [ - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 79 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs/promises", - "specifiers": [ - "readFile", - "writeFile", - "mkdir" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "existsSync" - ] - }, - { - "source": "node:path", - "specifiers": [ - "dirname" - ] - }, - { - "source": "@waggle/hive-mind-shim-core", - "specifiers": [ - "createLogger", - "Logger" - ] - }, - { - "source": "@waggle/hive-mind-hooks-core", - "specifiers": [ - "backupByteIdentical", - "hookCommandFor", - "hookScriptPath", - "jsonRegister", - "normalizeCliPath", - "writePointer", - "InstallPointer", - "JsonRegisterEntry", - "Lifecycle" - ] - }, - { - "source": "./paths.js", - "specifiers": [ - "resolvePaths", - "allHookBasenames", - "CursorPaths", - "ResolvePathsOptions" - ] - }, - { - "source": "./adapter.js", - "specifiers": [ - "cursorRegisterSpec" - ] - } - ], - "exports": [ - "install" - ], - "totalLines": 165, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-cursor/src/paths.ts": { - "filePath": "packages/hive-mind-hooks-cursor/src/paths.ts", - "contentHash": "b280a4e78252f718842d297b79598aa8da37cb08db6bafbb1d74eee2535d8044", - "functions": [ - { - "name": "allHookBasenames", - "params": [], - "returnType": "readonly HookBasename[]", - "exported": true, - "lineCount": 3 - }, - { - "name": "resolvePaths", - "params": [ - "opts" - ], - "returnType": "CursorPaths", - "exported": true, - "lineCount": 18 - } - ], - "classes": [], - "imports": [ - { - "source": "node:os", - "specifiers": [ - "homedir" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join", - "resolve" - ] - }, - { - "source": "@waggle/hive-mind-hooks-core", - "specifiers": [ - "backupPathFor", - "hookCommandFor", - "hooksDirFromModuleUrl" - ] - } - ], - "exports": [ - "allHookBasenames", - "resolvePaths", - "backupPathFor", - "hookCommandFor" - ], - "totalLines": 74, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-cursor/src/uninstall.ts": { - "filePath": "packages/hive-mind-hooks-cursor/src/uninstall.ts", - "contentHash": "eb90f747ab20f73b28fdb683b1d4b7d5d05b4dff903cb69fb95ea491e64da5dd", - "functions": [ - { - "name": "uninstall", - "params": [ - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 38 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs/promises", - "specifiers": [ - "unlink" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "existsSync" - ] - }, - { - "source": "@waggle/hive-mind-shim-core", - "specifiers": [ - "createLogger", - "Logger" - ] - }, - { - "source": "@waggle/hive-mind-hooks-core", - "specifiers": [ - "readPointer", - "restoreFromBackup" - ] - }, - { - "source": "./paths.js", - "specifiers": [ - "resolvePaths", - "CursorPaths", - "ResolvePathsOptions" - ] - } - ], - "exports": [ - "uninstall" - ], - "totalLines": 77, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-cursor/src/verify.ts": { - "filePath": "packages/hive-mind-hooks-cursor/src/verify.ts", - "contentHash": "adf3f66a6a800642006ba54a2857789c7405bc48effdd726a57e3829322cb854", - "functions": [ - { - "name": "fileReadable", - "params": [ - "p" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 3 - }, - { - "name": "isJsPath", - "params": [ - "p" - ], - "returnType": "boolean", - "exported": false, - "lineCount": 3 - }, - { - "name": "probeCliVersion", - "params": [ - "cliPath", - "spawnImpl", - "timeoutMs" - ], - "returnType": "Promise<{ ok: boolean; output: string }>", - "exported": false, - "lineCount": 36 - }, - { - "name": "verify", - "params": [ - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 77 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs/promises", - "specifiers": [ - "readFile", - "access" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "constants", - "existsSync" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join" - ] - }, - { - "source": "node:child_process", - "specifiers": [ - "spawn" - ] - }, - { - "source": "@waggle/hive-mind-shim-core", - "specifiers": [ - "createLogger", - "Logger" - ] - }, - { - "source": "@waggle/hive-mind-hooks-core", - "specifiers": [ - "hasHiveEntries" - ] - }, - { - "source": "./paths.js", - "specifiers": [ - "resolvePaths", - "allHookBasenames", - "ResolvePathsOptions" - ] - }, - { - "source": "./adapter.js", - "specifiers": [ - "cursorRegisterSpec" - ] - } - ], - "exports": [ - "verify" - ], - "totalLines": 163, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-cursor/tests/hooks/_test-helpers.ts": { - "filePath": "packages/hive-mind-hooks-cursor/tests/hooks/_test-helpers.ts", - "contentHash": "8c707e262e1df7dbfc0b76ea868bb5b9aba1d57b74f57c6b90d8938312ce7bd1", - "functions": [ - { - "name": "makeMockBridge", - "params": [ - "overrides" - ], - "returnType": "MockBridge", - "exported": true, - "lineCount": 19 - }, - { - "name": "makeHookCaptures", - "params": [], - "returnType": "CapturedHookOutput & {\r\n writeStdout: (s: string) => void;\r\n exit: (code: number) => void;\r\n}", - "exported": true, - "lineCount": 13 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "vi" - ] - }, - { - "source": "@waggle/hive-mind-shim-core", - "specifiers": [ - "CliBridge", - "MemoryHit" - ] - } - ], - "exports": [ - "makeMockBridge", - "makeHookCaptures" - ], - "totalLines": 63, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-cursor/tests/hooks/pre-compact.test.ts": { - "filePath": "packages/hive-mind-hooks-cursor/tests/hooks/pre-compact.test.ts", - "contentHash": "9ff9be0f9d9fcbf839fb0d69a0346e977b1b348047ad44c10df4fa4a95bb6bb7", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "../../src/hooks/pre-compact.js", - "specifiers": [ - "runPreCompact" - ] - }, - { - "source": "./_test-helpers.js", - "specifiers": [ - "makeHookCaptures", - "makeMockBridge" - ] - } - ], - "exports": [], - "totalLines": 45, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-cursor/tests/hooks/session-start.test.ts": { - "filePath": "packages/hive-mind-hooks-cursor/tests/hooks/session-start.test.ts", - "contentHash": "8f2a70adcfeff2f29ba9b408f90b08c6697819d03afa86cf1b98773e2cea270d", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "../../src/hooks/session-start.js", - "specifiers": [ - "runSessionStart" - ] - }, - { - "source": "./_test-helpers.js", - "specifiers": [ - "makeHookCaptures", - "makeMockBridge" - ] - }, - { - "source": "@waggle/hive-mind-shim-core", - "specifiers": [ - "MemoryHit" - ] - } - ], - "exports": [], - "totalLines": 78, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-cursor/tests/hooks/stop.test.ts": { - "filePath": "packages/hive-mind-hooks-cursor/tests/hooks/stop.test.ts", - "contentHash": "72be897145d917d2554f3826a664ef259b73cc2ab3e298065d7fc7f44f8f17e4", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it", - "afterEach", - "vi" - ] - }, - { - "source": "node:fs/promises", - "specifiers": [ - "mkdtemp", - "writeFile", - "rm" - ] - }, - { - "source": "node:os", - "specifiers": [ - "tmpdir" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join" - ] - }, - { - "source": "../../src/hooks/stop.js", - "specifiers": [ - "runStop" - ] - }, - { - "source": "../../src/adapter.js", - "specifiers": [ - "cursorAdapter" - ] - }, - { - "source": "./_test-helpers.js", - "specifiers": [ - "makeHookCaptures", - "makeMockBridge" - ] - }, - { - "source": "@waggle/hive-mind-shim-core", - "specifiers": [ - "HookFrame" - ] - } - ], - "exports": [], - "totalLines": 191, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-cursor/tests/hooks/user-prompt-submit.test.ts": { - "filePath": "packages/hive-mind-hooks-cursor/tests/hooks/user-prompt-submit.test.ts", - "contentHash": "0515740b0dba64e5de15a1909625f128fedc6375ab308c8b312778eb380abdd2", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "../../src/hooks/user-prompt-submit.js", - "specifiers": [ - "runUserPromptSubmit" - ] - }, - { - "source": "./_test-helpers.js", - "specifiers": [ - "makeHookCaptures", - "makeMockBridge" - ] - }, - { - "source": "@waggle/hive-mind-shim-core", - "specifiers": [ - "HookFrame" - ] - } - ], - "exports": [], - "totalLines": 84, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-cursor/tests/install.test.ts": { - "filePath": "packages/hive-mind-hooks-cursor/tests/install.test.ts", - "contentHash": "10e63a2d20a80b4dd093df65e4b9d7602f82d227c173323042632b1ddc7cc74d", - "functions": [ - { - "name": "bootstrap", - "params": [ - "initial" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 12 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it", - "afterEach" - ] - }, - { - "source": "node:fs/promises", - "specifiers": [ - "mkdtemp", - "mkdir", - "readFile", - "writeFile", - "rm", - "stat" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "existsSync" - ] - }, - { - "source": "node:os", - "specifiers": [ - "tmpdir" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join", - "resolve" - ] - }, - { - "source": "../src/install.js", - "specifiers": [ - "install" - ] - }, - { - "source": "../src/adapter.js", - "specifiers": [ - "HIVE_MIND_MARKER" - ] - } - ], - "exports": [], - "totalLines": 176, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-cursor/tests/paths.test.ts": { - "filePath": "packages/hive-mind-hooks-cursor/tests/paths.test.ts", - "contentHash": "4f91556dde20cdabf4cb1dd151e260004218457d62ccdfe2bd405a9b9b1ff70d", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join", - "resolve" - ] - }, - { - "source": "../src/paths.js", - "specifiers": [ - "allHookBasenames", - "backupPathFor", - "hookCommandFor", - "resolvePaths" - ] - } - ], - "exports": [], - "totalLines": 75, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-cursor/tests/register.test.ts": { - "filePath": "packages/hive-mind-hooks-cursor/tests/register.test.ts", - "contentHash": "01589ca855203dcd9ff501ac096213cfeea6ef8dabab84a27156dfea9ba4db5f", - "functions": [ - { - "name": "entry", - "params": [ - "lifecycle", - "basename", - "timeout" - ], - "returnType": "JsonRegisterEntry", - "exported": false, - "lineCount": 11 - }, - { - "name": "groupsAt", - "params": [ - "config", - "eventKey" - ], - "returnType": "CursorGroup[]", - "exported": false, - "lineCount": 4 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "@waggle/hive-mind-hooks-core", - "specifiers": [ - "jsonRegister", - "jsonUnregister", - "hasHiveEntries", - "JsonRegisterEntry" - ] - }, - { - "source": "../src/adapter.js", - "specifiers": [ - "cursorRegisterSpec", - "HIVE_MIND_MARKER", - "CURSOR_EVENT_NAME" - ] - }, - { - "source": "../src/paths.js", - "specifiers": [ - "hookCommandFor" - ] - } - ], - "exports": [], - "totalLines": 169, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-cursor/tests/uninstall.test.ts": { - "filePath": "packages/hive-mind-hooks-cursor/tests/uninstall.test.ts", - "contentHash": "4ef1454d5f4eee6fe9e423261bc10494c0fc300ff6ef01756927b7d3a6953eed", - "functions": [ - { - "name": "bootstrap", - "params": [ - "initial" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 12 - }, - { - "name": "sha256", - "params": [ - "s" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it", - "afterEach" - ] - }, - { - "source": "node:crypto", - "specifiers": [ - "createHash" - ] - }, - { - "source": "node:fs/promises", - "specifiers": [ - "mkdtemp", - "mkdir", - "readFile", - "writeFile", - "rm" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "existsSync" - ] - }, - { - "source": "node:os", - "specifiers": [ - "tmpdir" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join", - "resolve" - ] - }, - { - "source": "../src/install.js", - "specifiers": [ - "install" - ] - }, - { - "source": "../src/uninstall.js", - "specifiers": [ - "uninstall" - ] - } - ], - "exports": [], - "totalLines": 119, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-cursor/tests/verify.test.ts": { - "filePath": "packages/hive-mind-hooks-cursor/tests/verify.test.ts", - "contentHash": "a0b4f0b9d918683132292706022abb4a1207574a4742fa437ea3269fed31c6fd", - "functions": [ - { - "name": "bootstrap", - "params": [ - "initial", - "withHookFiles" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 19 - }, - { - "name": "mockSpawnImpl", - "params": [ - "opts" - ], - "returnType": "typeof import('node:child_process').spawn", - "exported": false, - "lineCount": 14 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it", - "vi", - "afterEach" - ] - }, - { - "source": "node:events", - "specifiers": [ - "EventEmitter" - ] - }, - { - "source": "node:stream", - "specifiers": [ - "Readable" - ] - }, - { - "source": "node:fs/promises", - "specifiers": [ - "mkdtemp", - "mkdir", - "writeFile", - "rm" - ] - }, - { - "source": "node:os", - "specifiers": [ - "tmpdir" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join" - ] - }, - { - "source": "node:child_process", - "specifiers": [ - "ChildProcess" - ] - }, - { - "source": "../src/install.js", - "specifiers": [ - "install" - ] - }, - { - "source": "../src/verify.js", - "specifiers": [ - "verify" - ] - } - ], - "exports": [], - "totalLines": 168, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-cursor/tsconfig.json": { - "filePath": "packages/hive-mind-hooks-cursor/tsconfig.json", - "contentHash": "68a799ec76ee57fa6d15a9026f8030af75be3b0bcdb86bd8e860aa7087ce2c48", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 16, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-cursor/tsconfig.test.json": { - "filePath": "packages/hive-mind-hooks-cursor/tsconfig.test.json", - "contentHash": "dd35a0eeeff0814c8fd641df9b32ef35949ee8f0e50a54c86b8306d327b6c2ca", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 13, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-hermes/package.json": { - "filePath": "packages/hive-mind-hooks-hermes/package.json", - "contentHash": "fb2e6b34f2bfdde435d506b6a9a5af153238831963aa737ec3decd935bcea8c1", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 67, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-hermes/README.md": { - "filePath": "packages/hive-mind-hooks-hermes/README.md", - "contentHash": "e7265fd5c36c6e83df9a279899149432036b0f04fc356d9b3b24fe013dea9b41", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 85, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-hermes/src/adapter.ts": { - "filePath": "packages/hive-mind-hooks-hermes/src/adapter.ts", - "contentHash": "60835d340a7097c04950905e131e12507902a8923c611ccfa7954a1bc270927e", - "functions": [ - { - "name": "pickFromExtra", - "params": [ - "payload", - "...keys" - ], - "returnType": "string | undefined", - "exported": false, - "lineCount": 8 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/hive-mind-hooks-core", - "specifiers": [ - "pickStringField", - "EventAdapter", - "Lifecycle" - ] - } - ], - "exports": [ - "HERMES_EVENT_NAME", - "HERMES_SESSION_START_OBSERVE_EVENT", - "hermesAdapter" - ], - "totalLines": 107, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-hermes/src/bin/hermes-hooks.ts": { - "filePath": "packages/hive-mind-hooks-hermes/src/bin/hermes-hooks.ts", - "contentHash": "9cf33fd85fc03afd47656b521f0fd9dc171c2f3e8f7c18df93f211f4a44d6c47", - "functions": [ - { - "name": "parseArgs", - "params": [ - "argv" - ], - "returnType": "ParsedArgs", - "exported": false, - "lineCount": 26 - }, - { - "name": "printHelp", - "params": [], - "returnType": "void", - "exported": false, - "lineCount": 25 - }, - { - "name": "printInstallSummary", - "params": [ - "result" - ], - "returnType": "void", - "exported": false, - "lineCount": 32 - }, - { - "name": "printUninstallSummary", - "params": [ - "result" - ], - "returnType": "void", - "exported": false, - "lineCount": 14 - }, - { - "name": "printVerifySummary", - "params": [ - "result" - ], - "returnType": "void", - "exported": false, - "lineCount": 12 - }, - { - "name": "main", - "params": [], - "returnType": "Promise", - "exported": false, - "lineCount": 48 - } - ], - "classes": [], - "imports": [ - { - "source": "../install.js", - "specifiers": [ - "install", - "InstallResult" - ] - }, - { - "source": "../uninstall.js", - "specifiers": [ - "uninstall", - "UninstallResult" - ] - }, - { - "source": "../verify.js", - "specifiers": [ - "verify", - "VerifyResult" - ] - } - ], - "exports": [], - "totalLines": 184, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-hermes/src/compact-on-stop.ts": { - "filePath": "packages/hive-mind-hooks-hermes/src/compact-on-stop.ts", - "contentHash": "19e84b1f78142abb72f7917e97de52b9c40a5f5e8095c84d67239471112fb6d8", - "functions": [ - { - "name": "compactStatePath", - "params": [ - "home" - ], - "returnType": "string", - "exported": true, - "lineCount": 3 - }, - { - "name": "isCompactEnabled", - "params": [ - "env" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 4 - }, - { - "name": "resolveWindowMs", - "params": [ - "env", - "overrideMs" - ], - "returnType": "number", - "exported": true, - "lineCount": 12 - }, - { - "name": "readLastCompactTs", - "params": [ - "path" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 9 - }, - { - "name": "writeLastCompactTs", - "params": [ - "path", - "ts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 4 - }, - { - "name": "maybeCompactOnStop", - "params": [ - "ctx", - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 19 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs/promises", - "specifiers": [ - "mkdir", - "readFile", - "writeFile" - ] - }, - { - "source": "node:path", - "specifiers": [ - "dirname", - "join" - ] - }, - { - "source": "@waggle/hive-mind-hooks-core", - "specifiers": [ - "HookContext" - ] - }, - { - "source": "./paths.js", - "specifiers": [ - "resolvePaths" - ] - } - ], - "exports": [ - "DEFAULT_WINDOW_MS", - "compactStatePath", - "isCompactEnabled", - "resolveWindowMs", - "readLastCompactTs", - "writeLastCompactTs", - "maybeCompactOnStop" - ], - "totalLines": 127, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-hermes/src/hooks/session-start.ts": { - "filePath": "packages/hive-mind-hooks-hermes/src/hooks/session-start.ts", - "contentHash": "6e69742b03449b2df072056662157702ae260d46009a16b75e613350133fee7b", - "functions": [ - { - "name": "isFirstTurn", - "params": [ - "raw" - ], - "returnType": "boolean", - "exported": false, - "lineCount": 11 - }, - { - "name": "runSessionStart", - "params": [ - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 29 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/hive-mind-hooks-core", - "specifiers": [ - "makeSessionStartHandler", - "readStdinAsString", - "runHook", - "safeJsonParse", - "HookRunOptions" - ] - }, - { - "source": "../adapter.js", - "specifiers": [ - "hermesAdapter" - ] - } - ], - "exports": [ - "runSessionStart" - ], - "totalLines": 91, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-hermes/src/hooks/stop.ts": { - "filePath": "packages/hive-mind-hooks-hermes/src/hooks/stop.ts", - "contentHash": "536573758c4f5747cd73a196cbc220087493bb26b0c1d6ebb5596fa620fefe18", - "functions": [ - { - "name": "runStop", - "params": [ - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 21 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/hive-mind-hooks-core", - "specifiers": [ - "makeStopHandler", - "runHook", - "HookRunOptions" - ] - }, - { - "source": "../adapter.js", - "specifiers": [ - "hermesAdapter" - ] - }, - { - "source": "../compact-on-stop.js", - "specifiers": [ - "maybeCompactOnStop" - ] - } - ], - "exports": [ - "runStop" - ], - "totalLines": 69, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-hermes/src/hooks/user-prompt-submit.ts": { - "filePath": "packages/hive-mind-hooks-hermes/src/hooks/user-prompt-submit.ts", - "contentHash": "d9c4100f92acc8dccb594e0d4d96cc732e35290756727c45fd6a192945d00831", - "functions": [ - { - "name": "runUserPromptSubmit", - "params": [ - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 7 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/hive-mind-hooks-core", - "specifiers": [ - "makeUserPromptSubmitHandler", - "runHook", - "HookRunOptions" - ] - }, - { - "source": "../adapter.js", - "specifiers": [ - "hermesAdapter" - ] - } - ], - "exports": [ - "runUserPromptSubmit" - ], - "totalLines": 45, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-hermes/src/index.ts": { - "filePath": "packages/hive-mind-hooks-hermes/src/index.ts", - "contentHash": "09a79cdf03a6d99b4abd57fa4bd1558bb9339356953b1f384240c671af069892", - "functions": [], - "classes": [], - "imports": [], - "exports": [ - "InstallOptions", - "InstallResult", - "install", - "UninstallOptions", - "UninstallResult", - "uninstall", - "VerifyOptions", - "VerifyResult", - "VerifyCheck", - "verify", - "HermesPaths", - "ResolvePathsOptions", - "HookBasename", - "resolvePaths", - "allHookBasenames", - "backupPathFor", - "hookCommandFor", - "hermesAdapter", - "HERMES_EVENT_NAME", - "HERMES_SESSION_START_OBSERVE_EVENT", - "MaybeCompactOptions", - "maybeCompactOnStop", - "compactStatePath", - "isCompactEnabled", - "resolveWindowMs", - "DEFAULT_WINDOW_MS", - "HermesHookEntry", - "HermesRegisterEntry", - "parseConfig", - "serializeConfig", - "yamlRegister", - "yamlUnregister", - "hasHiveEntries", - "isHiveEntry", - "HIVE_MIND_MARKER", - "HOOKS_KEY" - ], - "totalLines": 86, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-hermes/src/install.ts": { - "filePath": "packages/hive-mind-hooks-hermes/src/install.ts", - "contentHash": "848e883ead213d4c31212f7880dfbb6dfdbf68b41f51abbcb5c5853a8153e328", - "functions": [ - { - "name": "ensureDir", - "params": [ - "p" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 3 - }, - { - "name": "buildEntries", - "params": [ - "hooksDir", - "cliPath", - "timeout" - ], - "returnType": "HermesRegisterEntry[]", - "exported": false, - "lineCount": 16 - }, - { - "name": "install", - "params": [ - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 82 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs/promises", - "specifiers": [ - "readFile", - "writeFile", - "mkdir" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "existsSync" - ] - }, - { - "source": "node:path", - "specifiers": [ - "dirname" - ] - }, - { - "source": "@waggle/hive-mind-shim-core", - "specifiers": [ - "createLogger", - "Logger" - ] - }, - { - "source": "@waggle/hive-mind-hooks-core", - "specifiers": [ - "backupByteIdentical", - "hookCommandFor", - "hookScriptPath", - "normalizeCliPath", - "writePointer", - "InstallPointer" - ] - }, - { - "source": "./paths.js", - "specifiers": [ - "resolvePaths", - "HermesPaths", - "ResolvePathsOptions" - ] - }, - { - "source": "./yaml-merger.js", - "specifiers": [ - "parseConfig", - "serializeConfig", - "yamlRegister", - "HermesRegisterEntry" - ] - }, - { - "source": "./adapter.js", - "specifiers": [ - "HERMES_SESSION_START_OBSERVE_EVENT" - ] - } - ], - "exports": [ - "install" - ], - "totalLines": 201, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-hermes/src/paths.ts": { - "filePath": "packages/hive-mind-hooks-hermes/src/paths.ts", - "contentHash": "abeacc4675d03face55dd20cffc594bb33d232e2b8ba5ac5c1fc645651a76db7", - "functions": [ - { - "name": "allHookBasenames", - "params": [], - "returnType": "readonly HookBasename[]", - "exported": true, - "lineCount": 3 - }, - { - "name": "resolvePaths", - "params": [ - "opts" - ], - "returnType": "HermesPaths", - "exported": true, - "lineCount": 18 - } - ], - "classes": [], - "imports": [ - { - "source": "node:os", - "specifiers": [ - "homedir" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join", - "resolve" - ] - }, - { - "source": "@waggle/hive-mind-hooks-core", - "specifiers": [ - "backupPathFor", - "hookCommandFor", - "hooksDirFromModuleUrl" - ] - } - ], - "exports": [ - "allHookBasenames", - "resolvePaths", - "backupPathFor", - "hookCommandFor" - ], - "totalLines": 82, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-hermes/src/uninstall.ts": { - "filePath": "packages/hive-mind-hooks-hermes/src/uninstall.ts", - "contentHash": "04442cafce01bc90e8dc660e87fcd86a330c63e7c668076a0aa9dd9604ea2d47", - "functions": [ - { - "name": "uninstall", - "params": [ - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 38 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs/promises", - "specifiers": [ - "unlink" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "existsSync" - ] - }, - { - "source": "@waggle/hive-mind-shim-core", - "specifiers": [ - "createLogger", - "Logger" - ] - }, - { - "source": "@waggle/hive-mind-hooks-core", - "specifiers": [ - "readPointer", - "restoreFromBackup" - ] - }, - { - "source": "./paths.js", - "specifiers": [ - "resolvePaths", - "HermesPaths", - "ResolvePathsOptions" - ] - } - ], - "exports": [ - "uninstall" - ], - "totalLines": 80, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-hermes/src/verify.ts": { - "filePath": "packages/hive-mind-hooks-hermes/src/verify.ts", - "contentHash": "f5d8bec7fd2bdefbf12cf4bf88d20f6452fa07c2a789858fba39315c14f45e33", - "functions": [ - { - "name": "fileReadable", - "params": [ - "p" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 3 - }, - { - "name": "isJsPath", - "params": [ - "p" - ], - "returnType": "boolean", - "exported": false, - "lineCount": 3 - }, - { - "name": "probeCliVersion", - "params": [ - "cliPath", - "spawnImpl", - "timeoutMs" - ], - "returnType": "Promise<{ ok: boolean; output: string }>", - "exported": false, - "lineCount": 36 - }, - { - "name": "verify", - "params": [ - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 75 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs/promises", - "specifiers": [ - "readFile", - "access" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "constants", - "existsSync" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join" - ] - }, - { - "source": "node:child_process", - "specifiers": [ - "spawn" - ] - }, - { - "source": "@waggle/hive-mind-shim-core", - "specifiers": [ - "createLogger", - "Logger" - ] - }, - { - "source": "./paths.js", - "specifiers": [ - "resolvePaths", - "allHookBasenames", - "ResolvePathsOptions" - ] - }, - { - "source": "./yaml-merger.js", - "specifiers": [ - "parseConfig", - "hasHiveEntries" - ] - } - ], - "exports": [ - "verify" - ], - "totalLines": 163, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-hermes/src/yaml-merger.ts": { - "filePath": "packages/hive-mind-hooks-hermes/src/yaml-merger.ts", - "contentHash": "09c5f9074857db785167245ee49b9bad46086d0e57e91e571469460b6fea0fc0", - "functions": [ - { - "name": "asRecord", - "params": [ - "value" - ], - "returnType": "Record | undefined", - "exported": false, - "lineCount": 5 - }, - { - "name": "asEntryArray", - "params": [ - "value" - ], - "returnType": "Record[]", - "exported": false, - "lineCount": 3 - }, - { - "name": "isHiveEntry", - "params": [ - "entry" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 4 - }, - { - "name": "entryCommand", - "params": [ - "entry" - ], - "returnType": "string | undefined", - "exported": false, - "lineCount": 5 - }, - { - "name": "parseConfig", - "params": [ - "raw" - ], - "returnType": "Record", - "exported": true, - "lineCount": 17 - }, - { - "name": "serializeConfig", - "params": [ - "config" - ], - "returnType": "string", - "exported": true, - "lineCount": 4 - }, - { - "name": "yamlRegister", - "params": [ - "config", - "entries" - ], - "returnType": "Record", - "exported": true, - "lineCount": 32 - }, - { - "name": "yamlUnregister", - "params": [ - "config" - ], - "returnType": "Record", - "exported": true, - "lineCount": 19 - }, - { - "name": "hasHiveEntries", - "params": [ - "config" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 9 - } - ], - "classes": [], - "imports": [ - { - "source": "yaml", - "specifiers": [ - "parseYaml", - "stringifyYaml" - ] - } - ], - "exports": [ - "HIVE_MIND_MARKER", - "HOOKS_KEY", - "isHiveEntry", - "parseConfig", - "serializeConfig", - "yamlRegister", - "yamlUnregister", - "hasHiveEntries" - ], - "totalLines": 187, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-hermes/tests/adapter.test.ts": { - "filePath": "packages/hive-mind-hooks-hermes/tests/adapter.test.ts", - "contentHash": "76fdc08e210624428ced390bd1cfdfb6b99fb35ed42933588d907618184abb19", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "existsSync" - ] - }, - { - "source": "node:url", - "specifiers": [ - "fileURLToPath" - ] - }, - { - "source": "node:path", - "specifiers": [ - "dirname", - "join" - ] - }, - { - "source": "../src/adapter.js", - "specifiers": [ - "HERMES_EVENT_NAME", - "HERMES_SESSION_START_OBSERVE_EVENT", - "hermesAdapter" - ] - } - ], - "exports": [], - "totalLines": 83, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-hermes/tests/compact-on-stop.test.ts": { - "filePath": "packages/hive-mind-hooks-hermes/tests/compact-on-stop.test.ts", - "contentHash": "759081cfa75ebca89ebb5dfddb1aa680744f896d7070df92411c26d5a4fa6433", - "functions": [ - { - "name": "makeLogger", - "params": [], - "returnType": "Logger", - "exported": false, - "lineCount": 8 - }, - { - "name": "makeCtx", - "params": [ - "bridge" - ], - "returnType": "HookContext", - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "afterEach", - "beforeEach", - "describe", - "expect", - "it", - "vi" - ] - }, - { - "source": "node:fs/promises", - "specifiers": [ - "mkdtemp", - "readFile", - "rm", - "writeFile" - ] - }, - { - "source": "node:os", - "specifiers": [ - "tmpdir" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join" - ] - }, - { - "source": "../src/compact-on-stop.js", - "specifiers": [ - "compactStatePath", - "isCompactEnabled", - "maybeCompactOnStop", - "readLastCompactTs", - "resolveWindowMs", - "writeLastCompactTs" - ] - }, - { - "source": "./hooks/_test-helpers.js", - "specifiers": [ - "makeMockBridge" - ] - }, - { - "source": "@waggle/hive-mind-hooks-core", - "specifiers": [ - "HookContext" - ] - }, - { - "source": "@waggle/hive-mind-shim-core", - "specifiers": [ - "Logger" - ] - }, - { - "source": "./hooks/_test-helpers.js", - "specifiers": [ - "MockBridge" - ] - } - ], - "exports": [], - "totalLines": 170, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-hermes/tests/hooks/_test-helpers.ts": { - "filePath": "packages/hive-mind-hooks-hermes/tests/hooks/_test-helpers.ts", - "contentHash": "8763b6b372ede63aeb12212311d134523e3f452e9dc5f4e30885a41c6e416a93", - "functions": [ - { - "name": "makeMockBridge", - "params": [ - "overrides" - ], - "returnType": "MockBridge", - "exported": true, - "lineCount": 19 - }, - { - "name": "makeHookCaptures", - "params": [], - "returnType": "CapturedHookOutput & {\r\n writeStdout: (s: string) => void;\r\n exit: (code: number) => void;\r\n}", - "exported": true, - "lineCount": 13 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "vi" - ] - }, - { - "source": "@waggle/hive-mind-shim-core", - "specifiers": [ - "CliBridge", - "MemoryHit" - ] - } - ], - "exports": [ - "makeMockBridge", - "makeHookCaptures" - ], - "totalLines": 63, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-hermes/tests/hooks/session-start.test.ts": { - "filePath": "packages/hive-mind-hooks-hermes/tests/hooks/session-start.test.ts", - "contentHash": "6b5db5238f8f883364764290d4dd6723134b99e95b81899bbfde05428f7a761f", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "../../src/hooks/session-start.js", - "specifiers": [ - "runSessionStart" - ] - }, - { - "source": "./_test-helpers.js", - "specifiers": [ - "makeHookCaptures", - "makeMockBridge" - ] - }, - { - "source": "@waggle/hive-mind-shim-core", - "specifiers": [ - "MemoryHit" - ] - } - ], - "exports": [], - "totalLines": 139, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-hermes/tests/hooks/stop.test.ts": { - "filePath": "packages/hive-mind-hooks-hermes/tests/hooks/stop.test.ts", - "contentHash": "515bd7a43daf632f80782d5c5f30ad73aeda0a8130e96fc547ce9a44b50cfd3f", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "afterEach", - "beforeEach", - "describe", - "expect", - "it", - "vi" - ] - }, - { - "source": "node:fs/promises", - "specifiers": [ - "mkdtemp", - "rm" - ] - }, - { - "source": "node:os", - "specifiers": [ - "tmpdir" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join" - ] - }, - { - "source": "../../src/hooks/stop.js", - "specifiers": [ - "runStop" - ] - }, - { - "source": "./_test-helpers.js", - "specifiers": [ - "makeHookCaptures", - "makeMockBridge" - ] - }, - { - "source": "@waggle/hive-mind-shim-core", - "specifiers": [ - "HookFrame" - ] - } - ], - "exports": [], - "totalLines": 247, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-hermes/tests/hooks/user-prompt-submit.test.ts": { - "filePath": "packages/hive-mind-hooks-hermes/tests/hooks/user-prompt-submit.test.ts", - "contentHash": "4a230d86c4fe3f394112c48d38f7c5c5d595a34800f0b69107dd9090b3d11331", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "../../src/hooks/user-prompt-submit.js", - "specifiers": [ - "runUserPromptSubmit" - ] - }, - { - "source": "./_test-helpers.js", - "specifiers": [ - "makeHookCaptures", - "makeMockBridge" - ] - }, - { - "source": "@waggle/hive-mind-shim-core", - "specifiers": [ - "HookFrame" - ] - } - ], - "exports": [], - "totalLines": 99, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-hermes/tests/install.test.ts": { - "filePath": "packages/hive-mind-hooks-hermes/tests/install.test.ts", - "contentHash": "61084269c2d8fc1c2630df34b5d68cdbe5c1d3f9ba52bc6821ddaae4eb2a11f8", - "functions": [ - { - "name": "bootstrap", - "params": [ - "initialYaml" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 12 - }, - { - "name": "readPointer", - "params": [ - "p" - ], - "returnType": "Promise>", - "exported": false, - "lineCount": 3 - }, - { - "name": "hooksOf", - "params": [ - "config" - ], - "returnType": "Record>>", - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it", - "afterEach" - ] - }, - { - "source": "node:fs/promises", - "specifiers": [ - "mkdtemp", - "mkdir", - "readFile", - "writeFile", - "rm", - "stat" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "existsSync" - ] - }, - { - "source": "node:os", - "specifiers": [ - "tmpdir" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join", - "resolve" - ] - }, - { - "source": "yaml", - "specifiers": [ - "parseYaml" - ] - }, - { - "source": "../src/install.js", - "specifiers": [ - "install" - ] - }, - { - "source": "../src/yaml-merger.js", - "specifiers": [ - "HIVE_MIND_MARKER" - ] - } - ], - "exports": [], - "totalLines": 218, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-hermes/tests/paths.test.ts": { - "filePath": "packages/hive-mind-hooks-hermes/tests/paths.test.ts", - "contentHash": "5baa3267d5c852a303a765ae369e5f701449cf17d22f6fdd67019e8fdfd9e973", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join", - "resolve" - ] - }, - { - "source": "../src/paths.js", - "specifiers": [ - "allHookBasenames", - "backupPathFor", - "hookCommandFor", - "resolvePaths" - ] - } - ], - "exports": [], - "totalLines": 77, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-hermes/tests/register.test.ts": { - "filePath": "packages/hive-mind-hooks-hermes/tests/register.test.ts", - "contentHash": "cf1d1257ae36d4664089d134425795d15b3412b0a1255d2f14314694e40cc6fd", - "functions": [ - { - "name": "entry", - "params": [ - "eventKey", - "command", - "timeout" - ], - "returnType": "HermesRegisterEntry", - "exported": false, - "lineCount": 3 - }, - { - "name": "eventArray", - "params": [ - "config", - "eventKey" - ], - "returnType": "Record[]", - "exported": false, - "lineCount": 4 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "yaml", - "specifiers": [ - "parseYaml" - ] - }, - { - "source": "../src/yaml-merger.js", - "specifiers": [ - "HIVE_MIND_MARKER", - "HOOKS_KEY", - "hasHiveEntries", - "isHiveEntry", - "parseConfig", - "serializeConfig", - "yamlRegister", - "yamlUnregister", - "HermesRegisterEntry" - ] - } - ], - "exports": [], - "totalLines": 226, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-hermes/tests/uninstall.test.ts": { - "filePath": "packages/hive-mind-hooks-hermes/tests/uninstall.test.ts", - "contentHash": "51748a266fcefdbf4ebfe77e173ea1f78c77788f1ec1a40e06ecd6efb08939d0", - "functions": [ - { - "name": "bootstrap", - "params": [ - "initialYaml" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 12 - }, - { - "name": "sha256", - "params": [ - "s" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it", - "afterEach" - ] - }, - { - "source": "node:crypto", - "specifiers": [ - "createHash" - ] - }, - { - "source": "node:fs/promises", - "specifiers": [ - "mkdtemp", - "mkdir", - "readFile", - "writeFile", - "rm" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "existsSync" - ] - }, - { - "source": "node:os", - "specifiers": [ - "tmpdir" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join", - "resolve" - ] - }, - { - "source": "../src/install.js", - "specifiers": [ - "install" - ] - }, - { - "source": "../src/uninstall.js", - "specifiers": [ - "uninstall" - ] - } - ], - "exports": [], - "totalLines": 131, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-hermes/tests/verify.test.ts": { - "filePath": "packages/hive-mind-hooks-hermes/tests/verify.test.ts", - "contentHash": "f715c008d0ac04bd02f173b801172c3857f8bb4fe2d4101b9e13c3ae5d452b27", - "functions": [ - { - "name": "bootstrap", - "params": [ - "initialYaml", - "withHookFiles" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 20 - }, - { - "name": "mockSpawnImpl", - "params": [ - "opts" - ], - "returnType": "typeof import('node:child_process').spawn", - "exported": false, - "lineCount": 14 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it", - "vi", - "afterEach" - ] - }, - { - "source": "node:events", - "specifiers": [ - "EventEmitter" - ] - }, - { - "source": "node:stream", - "specifiers": [ - "Readable" - ] - }, - { - "source": "node:fs/promises", - "specifiers": [ - "mkdtemp", - "mkdir", - "writeFile", - "rm" - ] - }, - { - "source": "node:os", - "specifiers": [ - "tmpdir" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join" - ] - }, - { - "source": "node:child_process", - "specifiers": [ - "ChildProcess" - ] - }, - { - "source": "../src/install.js", - "specifiers": [ - "install" - ] - }, - { - "source": "../src/verify.js", - "specifiers": [ - "verify" - ] - } - ], - "exports": [], - "totalLines": 188, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-hermes/tsconfig.json": { - "filePath": "packages/hive-mind-hooks-hermes/tsconfig.json", - "contentHash": "68a799ec76ee57fa6d15a9026f8030af75be3b0bcdb86bd8e860aa7087ce2c48", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 16, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-hermes/tsconfig.test.json": { - "filePath": "packages/hive-mind-hooks-hermes/tsconfig.test.json", - "contentHash": "dd35a0eeeff0814c8fd641df9b32ef35949ee8f0e50a54c86b8306d327b6c2ca", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 13, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-openclaw/package.json": { - "filePath": "packages/hive-mind-hooks-openclaw/package.json", - "contentHash": "4b74c220b1f27a29992adea2a890275d54452d9cdb09361302885457120a6b61", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 66, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-openclaw/README.md": { - "filePath": "packages/hive-mind-hooks-openclaw/README.md", - "contentHash": "20bf9849a56d53ee1b006d96c45e4cb2bc5014a7a88f50d11515738071c02c92", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 105, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-openclaw/src/adapter.ts": { - "filePath": "packages/hive-mind-hooks-openclaw/src/adapter.ts", - "contentHash": "0060b97af6a6d7fe80aa2501f17f1720deaae94dc95d16d15a48f5bf4008d9e7", - "functions": [], - "classes": [], - "imports": [ - { - "source": "@waggle/hive-mind-hooks-core", - "specifiers": [ - "pickStringField", - "EventAdapter", - "Lifecycle" - ] - } - ], - "exports": [ - "OPENCLAW_EVENT_NAME", - "OPENCLAW_PROVENANCE", - "openclawAdapter" - ], - "totalLines": 108, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-openclaw/src/bin/openclaw-hooks.ts": { - "filePath": "packages/hive-mind-hooks-openclaw/src/bin/openclaw-hooks.ts", - "contentHash": "8387a2f5d3a7f9a0a06363f89df2a0467263a85236e01f0c98b59a2ec9b0506a", - "functions": [ - { - "name": "parseArgs", - "params": [ - "argv" - ], - "returnType": "ParsedArgs", - "exported": false, - "lineCount": 26 - }, - { - "name": "printHelp", - "params": [], - "returnType": "void", - "exported": false, - "lineCount": 22 - }, - { - "name": "printInstallSummary", - "params": [ - "result" - ], - "returnType": "void", - "exported": false, - "lineCount": 30 - }, - { - "name": "printUninstallSummary", - "params": [ - "result" - ], - "returnType": "void", - "exported": false, - "lineCount": 15 - }, - { - "name": "printVerifySummary", - "params": [ - "result" - ], - "returnType": "void", - "exported": false, - "lineCount": 12 - }, - { - "name": "main", - "params": [], - "returnType": "Promise", - "exported": false, - "lineCount": 41 - } - ], - "classes": [], - "imports": [ - { - "source": "../install.js", - "specifiers": [ - "install", - "InstallResult" - ] - }, - { - "source": "../uninstall.js", - "specifiers": [ - "uninstall", - "UninstallResult" - ] - }, - { - "source": "../verify.js", - "specifiers": [ - "verify", - "VerifyResult" - ] - } - ], - "exports": [], - "totalLines": 174, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-openclaw/src/handler.ts": { - "filePath": "packages/hive-mind-hooks-openclaw/src/handler.ts", - "contentHash": "5eba34b6772f0b23d0d1f744310cc3780870feb17499f0eac0de51a3ac4728fa", - "functions": [ - { - "name": "asContext", - "params": [ - "event" - ], - "returnType": "OpenclawRuntimeContext", - "exported": false, - "lineCount": 3 - }, - { - "name": "provenanceScope", - "params": [ - "ctx" - ], - "returnType": "string", - "exported": false, - "lineCount": 4 - }, - { - "name": "lifecycleFor", - "params": [ - "event" - ], - "returnType": "Lifecycle | undefined", - "exported": false, - "lineCount": 13 - }, - { - "name": "extractFor", - "params": [ - "lifecycle", - "ctx" - ], - "returnType": "SessionStartExtracted | UserPromptExtracted | StopExtracted | PreCompactExtracted", - "exported": false, - "lineCount": 23 - }, - { - "name": "buildBridge", - "params": [], - "returnType": "ReturnType", - "exported": false, - "lineCount": 7 - }, - { - "name": "openclawHook", - "params": [ - "event" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 22 - }, - { - "name": "injectBootstrap", - "params": [ - "ctx", - "extracted" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 25 - }, - { - "name": "formatHits", - "params": [ - "hits" - ], - "returnType": "string", - "exported": false, - "lineCount": 10 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/hive-mind-shim-core", - "specifiers": [ - "createCliBridge", - "createLogger", - "CliBridgeOptions", - "MemoryHit" - ] - }, - { - "source": "@waggle/hive-mind-hooks-core", - "specifiers": [ - "makeOpenclawHandler", - "HookContext", - "InternalHookEventLike", - "Lifecycle", - "OpenclawHandlerInput", - "PreCompactExtracted", - "SessionStartExtracted", - "StopExtracted", - "UserPromptExtracted" - ] - }, - { - "source": "./adapter.js", - "specifiers": [ - "openclawAdapter", - "OPENCLAW_PROVENANCE" - ] - } - ], - "exports": [ - "openclawHook" - ], - "totalLines": 228, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-openclaw/src/hook-md.ts": { - "filePath": "packages/hive-mind-hooks-openclaw/src/hook-md.ts", - "contentHash": "ee9b0b0c03483fb2731af3f09fdd353028227c61b4afd2d03e38cfd5a45dd13a", - "functions": [ - { - "name": "renderHookMd", - "params": [ - "handlerFile" - ], - "returnType": "string", - "exported": true, - "lineCount": 33 - } - ], - "classes": [], - "imports": [], - "exports": [ - "HOOK_MD_EVENTS", - "renderHookMd" - ], - "totalLines": 61, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-openclaw/src/index.ts": { - "filePath": "packages/hive-mind-hooks-openclaw/src/index.ts", - "contentHash": "8aecc91bb6ee8d80e0fe2b4a5151240f827d55bc8a311d1b1e71a8a444bc8a0f", - "functions": [], - "classes": [], - "imports": [], - "exports": [ - "InstallOptions", - "InstallResult", - "install", - "UninstallOptions", - "UninstallResult", - "uninstall", - "VerifyOptions", - "VerifyResult", - "VerifyCheck", - "verify", - "OpenclawPaths", - "ResolvePathsOptions", - "HookBasename", - "resolvePaths", - "allHookBasenames", - "backupPathFor", - "hookCommandFor", - "HIVE_HOOK_DIR_NAME", - "HIVE_HOOK_ENTRY_KEY", - "openclawAdapter", - "OPENCLAW_EVENT_NAME", - "OPENCLAW_PROVENANCE", - "HiveEntryEnv", - "RegisterOptions", - "parseConfig", - "serializeConfig", - "jsonRegister", - "jsonUnregister", - "hasHiveEntries", - "HIVE_ENTRY_KEY", - "HOOKS_KEY", - "renderHookMd", - "HOOK_MD_EVENTS", - "openclawHook" - ], - "totalLines": 87, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-openclaw/src/install.ts": { - "filePath": "packages/hive-mind-hooks-openclaw/src/install.ts", - "contentHash": "94bc1978499c84377ed6de0bb0f0339c31b7067df02440b5b133dcfcbd0e457a", - "functions": [ - { - "name": "ensureDir", - "params": [ - "p" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 3 - }, - { - "name": "install", - "params": [ - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 78 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs/promises", - "specifiers": [ - "readFile", - "writeFile", - "mkdir", - "copyFile" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "existsSync" - ] - }, - { - "source": "node:path", - "specifiers": [ - "dirname" - ] - }, - { - "source": "@waggle/hive-mind-shim-core", - "specifiers": [ - "createLogger", - "Logger" - ] - }, - { - "source": "@waggle/hive-mind-hooks-core", - "specifiers": [ - "backupByteIdentical", - "normalizeCliPath", - "writePointer", - "InstallPointer" - ] - }, - { - "source": "./paths.js", - "specifiers": [ - "resolvePaths", - "HIVE_HOOK_DIR_NAME", - "HIVE_HOOK_ENTRY_KEY", - "OpenclawPaths", - "ResolvePathsOptions" - ] - }, - { - "source": "./json5-merger.js", - "specifiers": [ - "parseConfig", - "serializeConfig", - "jsonRegister" - ] - }, - { - "source": "./hook-md.js", - "specifiers": [ - "renderHookMd" - ] - } - ], - "exports": [ - "install" - ], - "totalLines": 169, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-openclaw/src/json5-merger.ts": { - "filePath": "packages/hive-mind-hooks-openclaw/src/json5-merger.ts", - "contentHash": "c24d6142bdc9d866eb3de2c7bf52d3f868a81e55d514e96cf3c264f31f63df39", - "functions": [ - { - "name": "asRecord", - "params": [ - "value" - ], - "returnType": "Record | undefined", - "exported": false, - "lineCount": 5 - }, - { - "name": "parseConfig", - "params": [ - "raw" - ], - "returnType": "Record", - "exported": true, - "lineCount": 21 - }, - { - "name": "serializeConfig", - "params": [ - "config" - ], - "returnType": "string", - "exported": true, - "lineCount": 3 - }, - { - "name": "jsonRegister", - "params": [ - "config", - "opts" - ], - "returnType": "Record", - "exported": true, - "lineCount": 24 - }, - { - "name": "jsonUnregister", - "params": [ - "config" - ], - "returnType": "Record", - "exported": true, - "lineCount": 26 - }, - { - "name": "hasHiveEntries", - "params": [ - "config" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 7 - } - ], - "classes": [], - "imports": [ - { - "source": "json5", - "specifiers": [ - "JSON5" - ] - } - ], - "exports": [ - "HIVE_ENTRY_KEY", - "HOOKS_KEY", - "parseConfig", - "serializeConfig", - "jsonRegister", - "jsonUnregister", - "hasHiveEntries" - ], - "totalLines": 173, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-openclaw/src/paths.ts": { - "filePath": "packages/hive-mind-hooks-openclaw/src/paths.ts", - "contentHash": "4bc5140a8190359420a8b62d28eb414bd6dd72396450da74814d040d5b725d41", - "functions": [ - { - "name": "allHookBasenames", - "params": [], - "returnType": "readonly HookBasename[]", - "exported": true, - "lineCount": 3 - }, - { - "name": "handlerSourceFromModuleUrl", - "params": [ - "moduleUrl" - ], - "returnType": "string", - "exported": false, - "lineCount": 4 - }, - { - "name": "resolvePaths", - "params": [ - "opts" - ], - "returnType": "OpenclawPaths", - "exported": true, - "lineCount": 31 - } - ], - "classes": [], - "imports": [ - { - "source": "node:os", - "specifiers": [ - "homedir" - ] - }, - { - "source": "node:path", - "specifiers": [ - "dirname", - "join", - "resolve" - ] - }, - { - "source": "node:url", - "specifiers": [ - "fileURLToPath" - ] - }, - { - "source": "@waggle/hive-mind-hooks-core", - "specifiers": [ - "backupPathFor", - "hookCommandFor" - ] - } - ], - "exports": [ - "HIVE_HOOK_DIR_NAME", - "HIVE_HOOK_ENTRY_KEY", - "allHookBasenames", - "resolvePaths", - "backupPathFor", - "hookCommandFor" - ], - "totalLines": 121, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-openclaw/src/uninstall.ts": { - "filePath": "packages/hive-mind-hooks-openclaw/src/uninstall.ts", - "contentHash": "46eead96e8d9919efc633d54a6c2664b881b00906c13a90fe6b5138c2d5ae2ee", - "functions": [ - { - "name": "uninstall", - "params": [ - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 53 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs/promises", - "specifiers": [ - "unlink", - "rm" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "existsSync" - ] - }, - { - "source": "@waggle/hive-mind-shim-core", - "specifiers": [ - "createLogger", - "Logger" - ] - }, - { - "source": "@waggle/hive-mind-hooks-core", - "specifiers": [ - "readPointer", - "restoreFromBackup" - ] - }, - { - "source": "./paths.js", - "specifiers": [ - "resolvePaths", - "OpenclawPaths", - "ResolvePathsOptions" - ] - } - ], - "exports": [ - "uninstall" - ], - "totalLines": 99, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-openclaw/src/verify.ts": { - "filePath": "packages/hive-mind-hooks-openclaw/src/verify.ts", - "contentHash": "47c37115020e9c542534df9ba3d517a65e82b62782b0fcf99ee564bce84a69d7", - "functions": [ - { - "name": "fileReadable", - "params": [ - "p" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 3 - }, - { - "name": "isJsPath", - "params": [ - "p" - ], - "returnType": "boolean", - "exported": false, - "lineCount": 3 - }, - { - "name": "internalEnabled", - "params": [ - "config" - ], - "returnType": "boolean", - "exported": false, - "lineCount": 7 - }, - { - "name": "probeCliVersion", - "params": [ - "cliPath", - "spawnImpl", - "timeoutMs" - ], - "returnType": "Promise<{ ok: boolean; output: string }>", - "exported": false, - "lineCount": 36 - }, - { - "name": "verify", - "params": [ - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 87 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs/promises", - "specifiers": [ - "readFile", - "access" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "constants", - "existsSync" - ] - }, - { - "source": "node:child_process", - "specifiers": [ - "spawn" - ] - }, - { - "source": "@waggle/hive-mind-shim-core", - "specifiers": [ - "createLogger", - "Logger" - ] - }, - { - "source": "./paths.js", - "specifiers": [ - "resolvePaths", - "ResolvePathsOptions" - ] - }, - { - "source": "./json5-merger.js", - "specifiers": [ - "parseConfig", - "hasHiveEntries", - "HOOKS_KEY" - ] - } - ], - "exports": [ - "verify" - ], - "totalLines": 180, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-openclaw/tests/handler.test.ts": { - "filePath": "packages/hive-mind-hooks-openclaw/tests/handler.test.ts", - "contentHash": "53ac1fe0632f0fd1c09be6e9ed58bae4417b5c794ff2f4ca2758dc79f66b260f", - "functions": [ - { - "name": "makeMockBridge", - "params": [ - "opts" - ], - "returnType": "MockBridge", - "exported": false, - "lineCount": 29 - }, - { - "name": "ctxFor", - "params": [ - "bridge" - ], - "returnType": "HookContext", - "exported": false, - "lineCount": 3 - }, - { - "name": "provScope", - "params": [ - "sessionId" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "hit", - "params": [ - "content" - ], - "returnType": "MemoryHit", - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it", - "vi" - ] - }, - { - "source": "@waggle/hive-mind-shim-core", - "specifiers": [ - "createLogger" - ] - }, - { - "source": "@waggle/hive-mind-shim-core", - "specifiers": [ - "CliBridge", - "HookFrame", - "MemoryHit", - "SaveMemoryResult" - ] - }, - { - "source": "@waggle/hive-mind-hooks-core", - "specifiers": [ - "makeOpenclawHandler", - "HookContext", - "InternalHookEventLike", - "OpenclawHandlerInput", - "SessionStartExtracted", - "StopExtracted", - "UserPromptExtracted" - ] - }, - { - "source": "../src/adapter.js", - "specifiers": [ - "openclawAdapter", - "OPENCLAW_EVENT_NAME", - "OPENCLAW_PROVENANCE" - ] - } - ], - "exports": [], - "totalLines": 272, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-openclaw/tests/install.test.ts": { - "filePath": "packages/hive-mind-hooks-openclaw/tests/install.test.ts", - "contentHash": "6c86f8ef00e68fd88fd3cf04810870463344d70169276e1f0a85c2a06b51f02b", - "functions": [ - { - "name": "bootstrap", - "params": [ - "initial" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 21 - }, - { - "name": "readPointer", - "params": [ - "p" - ], - "returnType": "Promise>", - "exported": false, - "lineCount": 3 - }, - { - "name": "internalEntries", - "params": [ - "config" - ], - "returnType": "Record", - "exported": false, - "lineCount": 5 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it", - "afterEach" - ] - }, - { - "source": "node:fs/promises", - "specifiers": [ - "mkdtemp", - "mkdir", - "readFile", - "writeFile", - "rm", - "stat" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "existsSync" - ] - }, - { - "source": "node:os", - "specifiers": [ - "tmpdir" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join" - ] - }, - { - "source": "json5", - "specifiers": [ - "JSON5" - ] - }, - { - "source": "../src/install.js", - "specifiers": [ - "install" - ] - }, - { - "source": "../src/json5-merger.js", - "specifiers": [ - "HIVE_ENTRY_KEY", - "HOOKS_KEY" - ] - } - ], - "exports": [], - "totalLines": 213, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-openclaw/tests/json5-merger.test.ts": { - "filePath": "packages/hive-mind-hooks-openclaw/tests/json5-merger.test.ts", - "contentHash": "3b3afcdeda85df957a346b2f582b1859f1ca88c9aa92d0045939a92c68bed119", - "functions": [ - { - "name": "internal", - "params": [ - "config" - ], - "returnType": "Record", - "exported": false, - "lineCount": 4 - }, - { - "name": "entries", - "params": [ - "config" - ], - "returnType": "Record", - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "json5", - "specifiers": [ - "JSON5" - ] - }, - { - "source": "../src/json5-merger.js", - "specifiers": [ - "HIVE_ENTRY_KEY", - "HOOKS_KEY", - "hasHiveEntries", - "jsonRegister", - "jsonUnregister", - "parseConfig", - "serializeConfig" - ] - } - ], - "exports": [], - "totalLines": 175, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-openclaw/tests/paths.test.ts": { - "filePath": "packages/hive-mind-hooks-openclaw/tests/paths.test.ts", - "contentHash": "24182febe240876d38fb5c6395055e8b749df5a98794add82e3f71afae918d2d", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join", - "resolve" - ] - }, - { - "source": "node:url", - "specifiers": [ - "pathToFileURL" - ] - }, - { - "source": "../src/paths.js", - "specifiers": [ - "allHookBasenames", - "backupPathFor", - "hookCommandFor", - "resolvePaths", - "HIVE_HOOK_DIR_NAME", - "HIVE_HOOK_ENTRY_KEY" - ] - } - ], - "exports": [], - "totalLines": 88, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-openclaw/tests/uninstall.test.ts": { - "filePath": "packages/hive-mind-hooks-openclaw/tests/uninstall.test.ts", - "contentHash": "b9dd7197e0945de261eedbdad9e58976cf6e5a54d4c2e39f46c2a893e2ccbb54", - "functions": [ - { - "name": "bootstrap", - "params": [ - "initial" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 20 - }, - { - "name": "sha256", - "params": [ - "s" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it", - "afterEach" - ] - }, - { - "source": "node:crypto", - "specifiers": [ - "createHash" - ] - }, - { - "source": "node:fs/promises", - "specifiers": [ - "mkdtemp", - "mkdir", - "readFile", - "writeFile", - "rm" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "existsSync" - ] - }, - { - "source": "node:os", - "specifiers": [ - "tmpdir" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join" - ] - }, - { - "source": "../src/install.js", - "specifiers": [ - "install" - ] - }, - { - "source": "../src/uninstall.js", - "specifiers": [ - "uninstall" - ] - } - ], - "exports": [], - "totalLines": 146, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-openclaw/tests/verify.test.ts": { - "filePath": "packages/hive-mind-hooks-openclaw/tests/verify.test.ts", - "contentHash": "e7e0aace5f58e7e4dd9464878cf99d54e634e97ffa000a169fe4ab2c6035fed2", - "functions": [ - { - "name": "bootstrap", - "params": [ - "initial" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 14 - }, - { - "name": "mockSpawnImpl", - "params": [ - "opts" - ], - "returnType": "typeof import('node:child_process').spawn", - "exported": false, - "lineCount": 14 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it", - "vi", - "afterEach" - ] - }, - { - "source": "node:events", - "specifiers": [ - "EventEmitter" - ] - }, - { - "source": "node:stream", - "specifiers": [ - "Readable" - ] - }, - { - "source": "node:fs/promises", - "specifiers": [ - "mkdtemp", - "mkdir", - "writeFile", - "readFile", - "rm" - ] - }, - { - "source": "node:os", - "specifiers": [ - "tmpdir" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join" - ] - }, - { - "source": "node:child_process", - "specifiers": [ - "ChildProcess" - ] - }, - { - "source": "../src/install.js", - "specifiers": [ - "install" - ] - }, - { - "source": "../src/verify.js", - "specifiers": [ - "verify" - ] - } - ], - "exports": [], - "totalLines": 171, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-openclaw/tsconfig.json": { - "filePath": "packages/hive-mind-hooks-openclaw/tsconfig.json", - "contentHash": "68a799ec76ee57fa6d15a9026f8030af75be3b0bcdb86bd8e860aa7087ce2c48", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 16, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-hooks-openclaw/tsconfig.test.json": { - "filePath": "packages/hive-mind-hooks-openclaw/tsconfig.test.json", - "contentHash": "dd35a0eeeff0814c8fd641df9b32ef35949ee8f0e50a54c86b8306d327b6c2ca", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 13, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-mcp-server/NOTICE": { - "filePath": "packages/hive-mind-mcp-server/NOTICE", - "contentHash": "e66618b880ebd171ee3c1fcc9faa101950eff95d9b566e4090c30ba8d01061fd", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 37, - "hasStructuralAnalysis": false - }, - "packages/hive-mind-mcp-server/package.json": { - "filePath": "packages/hive-mind-mcp-server/package.json", - "contentHash": "e9ca124761c5ddd48248c50dafbe153c669c646abbf233e89abd9f0d8fbd60db", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 56, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-mcp-server/README.md": { - "filePath": "packages/hive-mind-mcp-server/README.md", - "contentHash": "b56997676b7c1fcf79ca8cfa6e0af3ab972b5f6bf0cd4f36b301eafac174ea1f", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 54, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-mcp-server/src/core/setup.ts": { - "filePath": "packages/hive-mind-mcp-server/src/core/setup.ts", - "contentHash": "4effbe87e66368385cb49aab82cebc9ea80c91a8da296c92852b76e5b2fb80ee", - "functions": [ - { - "name": "resolveDataDir", - "params": [], - "returnType": "string", - "exported": false, - "lineCount": 10 - }, - { - "name": "getAdapter", - "params": [ - "source" - ], - "exported": true, - "lineCount": 13 - }, - { - "name": "initialize", - "params": [], - "returnType": "Promise", - "exported": true, - "lineCount": 78 - }, - { - "name": "getDataDir", - "params": [], - "returnType": "string", - "exported": true, - "lineCount": 1 - }, - { - "name": "getPersonalDb", - "params": [], - "returnType": "MindDB", - "exported": true, - "lineCount": 1 - }, - { - "name": "getFrameStore", - "params": [], - "returnType": "FrameStore", - "exported": true, - "lineCount": 1 - }, - { - "name": "getSearch", - "params": [], - "returnType": "HybridSearch", - "exported": true, - "lineCount": 1 - }, - { - "name": "getKnowledgeGraph", - "params": [], - "returnType": "KnowledgeGraph", - "exported": true, - "lineCount": 1 - }, - { - "name": "getIdentity", - "params": [], - "returnType": "IdentityLayer", - "exported": true, - "lineCount": 1 - }, - { - "name": "getAwareness", - "params": [], - "returnType": "AwarenessLayer", - "exported": true, - "lineCount": 1 - }, - { - "name": "getSessions", - "params": [], - "returnType": "SessionStore", - "exported": true, - "lineCount": 1 - }, - { - "name": "getWorkspaceManager", - "params": [], - "returnType": "WorkspaceManager", - "exported": true, - "lineCount": 1 - }, - { - "name": "getMindCache", - "params": [], - "returnType": "MultiMindCache", - "exported": true, - "lineCount": 1 - }, - { - "name": "getEmbedder", - "params": [], - "returnType": "EmbeddingProviderInstance", - "exported": true, - "lineCount": 1 - }, - { - "name": "getHarvestSourceStore", - "params": [], - "returnType": "HarvestSourceStore", - "exported": true, - "lineCount": 1 - }, - { - "name": "getWorkspaceMind", - "params": [ - "workspaceId" - ], - "returnType": "WorkspaceMindHandle | null", - "exported": true, - "lineCount": 18 - }, - { - "name": "shutdown", - "params": [], - "returnType": "void", - "exported": true, - "lineCount": 6 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "MindDB", - "FrameStore", - "HybridSearch", - "KnowledgeGraph", - "IdentityLayer", - "AwarenessLayer", - "SessionStore", - "WorkspaceManager", - "MultiMindCache", - "createEmbeddingProvider", - "HarvestSourceStore", - "ChatGPTAdapter", - "ClaudeAdapter", - "ClaudeCodeAdapter", - "GeminiAdapter", - "UniversalAdapter", - "MarkdownAdapter", - "PlaintextAdapter", - "UrlAdapter", - "PdfAdapter", - "EmbeddingProviderInstance", - "EmbeddingProviderConfig" - ] - } - ], - "exports": [ - "getAdapter", - "initialize", - "getDataDir", - "getPersonalDb", - "getFrameStore", - "getSearch", - "getKnowledgeGraph", - "getIdentity", - "getAwareness", - "getSessions", - "getWorkspaceManager", - "getMindCache", - "getEmbedder", - "getHarvestSourceStore", - "getWorkspaceMind", - "shutdown" - ], - "totalLines": 234, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-mcp-server/src/index.ts": { - "filePath": "packages/hive-mind-mcp-server/src/index.ts", - "contentHash": "a79dc7f597c090b85d3edfbcd849aa3540bf100ac964148e35561fc9ab236e8e", - "functions": [ - { - "name": "main", - "params": [], - "returnType": "Promise", - "exported": false, - "lineCount": 12 - }, - { - "name": "handleShutdown", - "params": [], - "returnType": "void", - "exported": false, - "lineCount": 5 - } - ], - "classes": [], - "imports": [ - { - "source": "@modelcontextprotocol/sdk/server/mcp.js", - "specifiers": [ - "McpServer" - ] - }, - { - "source": "@modelcontextprotocol/sdk/server/stdio.js", - "specifiers": [ - "StdioServerTransport" - ] - }, - { - "source": "./core/setup.js", - "specifiers": [ - "initialize", - "shutdown" - ] - }, - { - "source": "./tools/memory.js", - "specifiers": [ - "registerMemoryTools" - ] - }, - { - "source": "./tools/knowledge.js", - "specifiers": [ - "registerKnowledgeTools" - ] - }, - { - "source": "./tools/identity.js", - "specifiers": [ - "registerIdentityTools" - ] - }, - { - "source": "./tools/awareness.js", - "specifiers": [ - "registerAwarenessTools" - ] - }, - { - "source": "./tools/workspace.js", - "specifiers": [ - "registerWorkspaceTools" - ] - }, - { - "source": "./tools/harvest.js", - "specifiers": [ - "registerHarvestTools" - ] - }, - { - "source": "./tools/cleanup.js", - "specifiers": [ - "registerCleanupTools" - ] - }, - { - "source": "./tools/ingest.js", - "specifiers": [ - "registerIngestTools" - ] - }, - { - "source": "./tools/wiki.js", - "specifiers": [ - "registerWikiTools" - ] - }, - { - "source": "./resources/memory.js", - "specifiers": [ - "registerResources" - ] - } - ], - "exports": [], - "totalLines": 112, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-mcp-server/src/integration.test.ts": { - "filePath": "packages/hive-mind-mcp-server/src/integration.test.ts", - "contentHash": "3ee3fe831f7d70058ee537d3f5878cf4570db25e976d7e9918993ca758ce0682", - "functions": [ - { - "name": "makeStub", - "params": [], - "returnType": "{\r\n server: McpServer;\r\n tools: { name: string; description: string }[];\r\n resources: { name: string; uri: string }[];\r\n}", - "exported": false, - "lineCount": 17 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "@modelcontextprotocol/sdk/server/mcp.js", - "specifiers": [ - "McpServer" - ] - }, - { - "source": "./tools/memory.js", - "specifiers": [ - "registerMemoryTools" - ] - }, - { - "source": "./tools/knowledge.js", - "specifiers": [ - "registerKnowledgeTools" - ] - }, - { - "source": "./tools/identity.js", - "specifiers": [ - "registerIdentityTools" - ] - }, - { - "source": "./tools/awareness.js", - "specifiers": [ - "registerAwarenessTools" - ] - }, - { - "source": "./tools/workspace.js", - "specifiers": [ - "registerWorkspaceTools" - ] - }, - { - "source": "./tools/harvest.js", - "specifiers": [ - "registerHarvestTools" - ] - }, - { - "source": "./tools/cleanup.js", - "specifiers": [ - "registerCleanupTools" - ] - }, - { - "source": "./tools/ingest.js", - "specifiers": [ - "registerIngestTools" - ] - }, - { - "source": "./tools/wiki.js", - "specifiers": [ - "registerWikiTools" - ] - }, - { - "source": "./resources/memory.js", - "specifiers": [ - "registerResources" - ] - } - ], - "exports": [], - "totalLines": 134, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-mcp-server/src/resources/memory.ts": { - "filePath": "packages/hive-mind-mcp-server/src/resources/memory.ts", - "contentHash": "ac632cd81730762ed2ad2aef957a506070b33b3e0c306b7190351aed986eb98c", - "functions": [ - { - "name": "registerResources", - "params": [ - "server" - ], - "returnType": "void", - "exported": true, - "lineCount": 167 - } - ], - "classes": [], - "imports": [ - { - "source": "@modelcontextprotocol/sdk/server/mcp.js", - "specifiers": [ - "McpServer" - ] - }, - { - "source": "../core/setup.js", - "specifiers": [ - "getFrameStore", - "getKnowledgeGraph", - "getIdentity", - "getAwareness", - "getEmbedder", - "getWorkspaceManager", - "getWorkspaceMind" - ] - } - ], - "exports": [ - "registerResources" - ], - "totalLines": 189, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-mcp-server/src/tools/awareness.ts": { - "filePath": "packages/hive-mind-mcp-server/src/tools/awareness.ts", - "contentHash": "d74e62822abc471efa2f8222cf478c5d49aa5441b3d09c9711fdf5a60aacd916", - "functions": [ - { - "name": "registerAwarenessTools", - "params": [ - "server" - ], - "returnType": "void", - "exported": true, - "lineCount": 129 - } - ], - "classes": [], - "imports": [ - { - "source": "@modelcontextprotocol/sdk/server/mcp.js", - "specifiers": [ - "McpServer" - ] - }, - { - "source": "zod", - "specifiers": [ - "z" - ] - }, - { - "source": "../core/setup.js", - "specifiers": [ - "getAwareness" - ] - }, - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "AwarenessCategory" - ] - } - ], - "exports": [ - "registerAwarenessTools" - ], - "totalLines": 140, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-mcp-server/src/tools/cleanup.ts": { - "filePath": "packages/hive-mind-mcp-server/src/tools/cleanup.ts", - "contentHash": "8693158588258696138bc132330e281ec02e8e194606d0a9fce1654365f0000e", - "functions": [ - { - "name": "isNoiseEntity", - "params": [ - "name", - "entityType" - ], - "returnType": "boolean", - "exported": false, - "lineCount": 22 - }, - { - "name": "registerCleanupTools", - "params": [ - "server" - ], - "returnType": "void", - "exported": true, - "lineCount": 360 - } - ], - "classes": [], - "imports": [ - { - "source": "@modelcontextprotocol/sdk/server/mcp.js", - "specifiers": [ - "McpServer" - ] - }, - { - "source": "zod", - "specifiers": [ - "z" - ] - }, - { - "source": "../core/setup.js", - "specifiers": [ - "getPersonalDb", - "getFrameStore", - "getKnowledgeGraph", - "getEmbedder", - "getWorkspaceMind" - ] - }, - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "reconcileIndexes", - "normalizeEntityName" - ] - } - ], - "exports": [ - "registerCleanupTools" - ], - "totalLines": 423, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-mcp-server/src/tools/harvest.ts": { - "filePath": "packages/hive-mind-mcp-server/src/tools/harvest.ts", - "contentHash": "004e61411f2ef65367fcc7cef5b68b32cb1e7fbf94362945c0db67278e65acbe", - "functions": [ - { - "name": "registerHarvestTools", - "params": [ - "server" - ], - "returnType": "void", - "exported": true, - "lineCount": 209 - } - ], - "classes": [], - "imports": [ - { - "source": "@modelcontextprotocol/sdk/server/mcp.js", - "specifiers": [ - "McpServer" - ] - }, - { - "source": "zod", - "specifiers": [ - "z" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "resolveRelativeDate", - "HARVEST_FRAME_CONTENT_CAP", - "writeRawTurnFrames" - ] - }, - { - "source": "../core/setup.js", - "specifiers": [ - "getFrameStore", - "getSessions", - "getSearch", - "getKnowledgeGraph", - "getHarvestSourceStore", - "getPersonalDb", - "getAdapter" - ] - } - ], - "exports": [ - "registerHarvestTools" - ], - "totalLines": 229, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-mcp-server/src/tools/identity.ts": { - "filePath": "packages/hive-mind-mcp-server/src/tools/identity.ts", - "contentHash": "8261591c229f6e8821490332486919a9d43cf7d889eef58e49be44b691c50421", - "functions": [ - { - "name": "registerIdentityTools", - "params": [ - "server" - ], - "returnType": "void", - "exported": true, - "lineCount": 113 - } - ], - "classes": [], - "imports": [ - { - "source": "@modelcontextprotocol/sdk/server/mcp.js", - "specifiers": [ - "McpServer" - ] - }, - { - "source": "zod", - "specifiers": [ - "z" - ] - }, - { - "source": "../core/setup.js", - "specifiers": [ - "getIdentity" - ] - } - ], - "exports": [ - "registerIdentityTools" - ], - "totalLines": 123, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-mcp-server/src/tools/ingest.ts": { - "filePath": "packages/hive-mind-mcp-server/src/tools/ingest.ts", - "contentHash": "571cb82fb8db3dbb37a3d46b01e775f5b127d44816f750bedadc2c7881935800", - "functions": [ - { - "name": "registerIngestTools", - "params": [ - "server" - ], - "returnType": "void", - "exported": true, - "lineCount": 150 - }, - { - "name": "detectContentType", - "params": [ - "input" - ], - "returnType": "'markdown' | 'plaintext' | 'pdf' | 'url'", - "exported": false, - "lineCount": 32 - } - ], - "classes": [], - "imports": [ - { - "source": "@modelcontextprotocol/sdk/server/mcp.js", - "specifiers": [ - "McpServer" - ] - }, - { - "source": "zod", - "specifiers": [ - "z" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "../core/setup.js", - "specifiers": [ - "getFrameStore", - "getSessions", - "getSearch", - "getKnowledgeGraph", - "getHarvestSourceStore", - "getPersonalDb", - "getAdapter" - ] - }, - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "UrlAdapter" - ] - }, - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "PdfAdapter" - ] - }, - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "UniversalImportItem" - ] - } - ], - "exports": [ - "registerIngestTools" - ], - "totalLines": 208, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-mcp-server/src/tools/knowledge.ts": { - "filePath": "packages/hive-mind-mcp-server/src/tools/knowledge.ts", - "contentHash": "5f4f4af7a494b7207c2e3196c1faae596dec768ad6b7b9781579fd1a126aa49a", - "functions": [ - { - "name": "registerKnowledgeTools", - "params": [ - "server" - ], - "returnType": "void", - "exported": true, - "lineCount": 167 - }, - { - "name": "safeParseJson", - "params": [ - "raw" - ], - "returnType": "Record", - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "@modelcontextprotocol/sdk/server/mcp.js", - "specifiers": [ - "McpServer" - ] - }, - { - "source": "zod", - "specifiers": [ - "z" - ] - }, - { - "source": "../core/setup.js", - "specifiers": [ - "getKnowledgeGraph", - "getWorkspaceMind" - ] - } - ], - "exports": [ - "registerKnowledgeTools" - ], - "totalLines": 186, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-mcp-server/src/tools/memory.ts": { - "filePath": "packages/hive-mind-mcp-server/src/tools/memory.ts", - "contentHash": "0a07bb4a246755f83a5e7e3b68052bf219dbe00f1f9771376a8c0e129ed64645", - "functions": [ - { - "name": "registerMemoryTools", - "params": [ - "server" - ], - "returnType": "void", - "exported": true, - "lineCount": 173 - } - ], - "classes": [], - "imports": [ - { - "source": "@modelcontextprotocol/sdk/server/mcp.js", - "specifiers": [ - "McpServer" - ] - }, - { - "source": "zod", - "specifiers": [ - "z" - ] - }, - { - "source": "../core/setup.js", - "specifiers": [ - "getFrameStore", - "getSearch", - "getSessions", - "getWorkspaceMind", - "getWorkspaceManager" - ] - }, - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "Importance", - "FrameSource" - ] - } - ], - "exports": [ - "registerMemoryTools" - ], - "totalLines": 190, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-mcp-server/src/tools/wiki.ts": { - "filePath": "packages/hive-mind-mcp-server/src/tools/wiki.ts", - "contentHash": "12d17ec6c4dc0c4ad50d017310992661932d5a4cf4de7e0dcd333339dfbfbfe3", - "functions": [ - { - "name": "getSynthesizer", - "params": [], - "returnType": "Promise", - "exported": false, - "lineCount": 7 - }, - { - "name": "getCompiler", - "params": [], - "returnType": "Promise<{ compiler: WikiCompiler; state: CompilationState; provider: string }>", - "exported": false, - "lineCount": 13 - }, - { - "name": "registerWikiTools", - "params": [ - "server" - ], - "returnType": "void", - "exported": true, - "lineCount": 183 - } - ], - "classes": [], - "imports": [ - { - "source": "@modelcontextprotocol/sdk/server/mcp.js", - "specifiers": [ - "McpServer" - ] - }, - { - "source": "zod", - "specifiers": [ - "z" - ] - }, - { - "source": "../core/setup.js", - "specifiers": [ - "getPersonalDb", - "getFrameStore", - "getSearch", - "getKnowledgeGraph" - ] - }, - { - "source": "@waggle/hive-mind-wiki-compiler", - "specifiers": [ - "WikiCompiler", - "CompilationState", - "resolveWikiSynthesizer" - ] - }, - { - "source": "@waggle/hive-mind-wiki-compiler", - "specifiers": [ - "ResolvedSynthesizer" - ] - } - ], - "exports": [ - "registerWikiTools" - ], - "totalLines": 233, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-mcp-server/src/tools/workspace.ts": { - "filePath": "packages/hive-mind-mcp-server/src/tools/workspace.ts", - "contentHash": "51fb694ddd935ae4da88520223db5358984cb67cc0a5cad9f20e6194e90e6532", - "functions": [ - { - "name": "registerWorkspaceTools", - "params": [ - "server" - ], - "returnType": "void", - "exported": true, - "lineCount": 93 - } - ], - "classes": [], - "imports": [ - { - "source": "@modelcontextprotocol/sdk/server/mcp.js", - "specifiers": [ - "McpServer" - ] - }, - { - "source": "zod", - "specifiers": [ - "z" - ] - }, - { - "source": "../core/setup.js", - "specifiers": [ - "getWorkspaceManager", - "getWorkspaceMind", - "getFrameStore", - "getKnowledgeGraph" - ] - } - ], - "exports": [ - "registerWorkspaceTools" - ], - "totalLines": 103, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-mcp-server/tsconfig.json": { - "filePath": "packages/hive-mind-mcp-server/tsconfig.json", - "contentHash": "db89669bb6626dee43b408b7def25ea1dcdf9aaa68b32ee1e1081efd4fbcdefb", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 16, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-shim-core/package.json": { - "filePath": "packages/hive-mind-shim-core/package.json", - "contentHash": "13534a57da1fee19744f594a487ddf483f1c9647ac8c21aae7005a96cceb0a65", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 47, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-shim-core/README.md": { - "filePath": "packages/hive-mind-shim-core/README.md", - "contentHash": "d382e70b4184c395a02663a267c5274f2c3ed250a352f9149f589aec42b21b22", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 62, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-shim-core/src/cli-bridge.ts": { - "filePath": "packages/hive-mind-shim-core/src/cli-bridge.ts", - "contentHash": "3e0638d6ad758cd9543c23676a80cf0fdf000b5b1a80b90b08aa5ad645875d20", - "functions": [ - { - "name": "buildSpawnTarget", - "params": [ - "cliPath", - "args" - ], - "returnType": "SpawnTarget", - "exported": false, - "lineCount": 6 - }, - { - "name": "spawnAndCollect", - "params": [ - "cliPath", - "args", - "timeoutMs", - "spawnImpl" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 40 - }, - { - "name": "parseMcpCallOutput", - "params": [ - "stdout" - ], - "returnType": "McpCallResult", - "exported": false, - "lineCount": 15 - }, - { - "name": "unwrapTextContent", - "params": [ - "result" - ], - "returnType": "string", - "exported": false, - "lineCount": 5 - }, - { - "name": "tryParseJson", - "params": [ - "text" - ], - "returnType": "T | undefined", - "exported": false, - "lineCount": 8 - }, - { - "name": "createCliBridge", - "params": [ - "opts" - ], - "returnType": "CliBridge", - "exported": true, - "lineCount": 129 - } - ], - "classes": [], - "imports": [ - { - "source": "node:child_process", - "specifiers": [ - "spawn", - "ChildProcess", - "SpawnOptions" - ] - }, - { - "source": "./frame-encoder.js", - "specifiers": [ - "frameToSavePayload", - "HookFrame", - "SaveMemorySource" - ] - }, - { - "source": "./retry-bridge.js", - "specifiers": [ - "withRetry", - "RetryOptions" - ] - }, - { - "source": "./logger.js", - "specifiers": [ - "createLogger", - "Logger" - ] - } - ], - "exports": [ - "SaveMemorySource", - "createCliBridge" - ], - "totalLines": 362, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-shim-core/src/frame-encoder.ts": { - "filePath": "packages/hive-mind-shim-core/src/frame-encoder.ts", - "contentHash": "1fd823e298a06c97a28b0c032cb928fbf34f75728f69b99d3a94d86e575eaeb1", - "functions": [ - { - "name": "pickString", - "params": [ - "payload", - "keys" - ], - "returnType": "string | undefined", - "exported": false, - "lineCount": 7 - }, - { - "name": "encodeFrame", - "params": [ - "event", - "opts" - ], - "returnType": "HookFrame", - "exported": true, - "lineCount": 26 - }, - { - "name": "buildPrefix", - "params": [ - "frame" - ], - "returnType": "string", - "exported": false, - "lineCount": 9 - }, - { - "name": "frameToSavePayload", - "params": [ - "frame", - "opts" - ], - "returnType": "SavePayload", - "exported": true, - "lineCount": 11 - } - ], - "classes": [], - "imports": [ - { - "source": "./hook-event-types.js", - "specifiers": [ - "HookEvent", - "ShimSource" - ] - }, - { - "source": "./importance-classifier.js", - "specifiers": [ - "classifyImportance", - "Importance" - ] - } - ], - "exports": [ - "encodeFrame", - "frameToSavePayload" - ], - "totalLines": 138, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-shim-core/src/hook-event-types.ts": { - "filePath": "packages/hive-mind-shim-core/src/hook-event-types.ts", - "contentHash": "c799e7c7a250a293199989d1f162cc0896c5176b1e7feeba50d4fe0eadfd72a4", - "functions": [ - { - "name": "isEventType", - "params": [ - "value" - ], - "exported": true, - "lineCount": 4 - }, - { - "name": "isShimSource", - "params": [ - "value" - ], - "exported": true, - "lineCount": 4 - } - ], - "classes": [], - "imports": [], - "exports": [ - "ALL_EVENT_TYPES", - "ALL_SOURCES", - "isEventType", - "isShimSource" - ], - "totalLines": 62, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-shim-core/src/importance-classifier.ts": { - "filePath": "packages/hive-mind-shim-core/src/importance-classifier.ts", - "contentHash": "7bf020385158e6354bc3d57f98838db44962f0862172d774ea11a2ac46d52940", - "functions": [ - { - "name": "compilePattern", - "params": [ - "p" - ], - "returnType": "RegExp", - "exported": false, - "lineCount": 3 - }, - { - "name": "applyRules", - "params": [ - "content", - "rules", - "floor" - ], - "returnType": "Importance", - "exported": false, - "lineCount": 10 - }, - { - "name": "classifyImportance", - "params": [ - "content", - "context" - ], - "returnType": "Importance", - "exported": true, - "lineCount": 18 - }, - { - "name": "classifyWithRules", - "params": [ - "content", - "rules", - "fallback" - ], - "returnType": "Importance", - "exported": true, - "lineCount": 8 - } - ], - "classes": [], - "imports": [], - "exports": [ - "DEFAULT_RULES", - "classifyImportance", - "classifyWithRules" - ], - "totalLines": 100, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-shim-core/src/index.ts": { - "filePath": "packages/hive-mind-shim-core/src/index.ts", - "contentHash": "75c41de8cdab822a9ef7bd22b742f584ed30b1b9521856e16d7b19824b4bbc26", - "functions": [], - "classes": [], - "imports": [], - "exports": [ - "HookEvent", - "EventType", - "ShimSource", - "ALL_EVENT_TYPES", - "ALL_SOURCES", - "isEventType", - "isShimSource", - "HookFrame", - "HookFrameMetadata", - "EncodeOptions", - "SavePayload", - "SaveMemorySource", - "encodeFrame", - "frameToSavePayload", - "Workspace", - "WorkspaceMode", - "ResolveOptions", - "resolveWorkspace", - "isAbsoluteWorkspacePath", - "CliBridge", - "CliBridgeOptions", - "McpCallResult", - "McpCallResultContent", - "SaveMemoryResult", - "MemoryHit", - "RecallMemoryOptions", - "CleanupFramesOptions", - "CleanupMode", - "CallMcpOptions", - "SpawnFn", - "createCliBridge", - "Importance", - "ImportanceRule", - "ClassifyContext", - "classifyImportance", - "classifyWithRules", - "DEFAULT_RULES", - "SummarizeOptions", - "summarizeTurn", - "RetryOptions", - "withRetry", - "computeBackoff", - "Logger", - "LogLevel", - "CreateLoggerOptions", - "createLogger", - "EmitSignalOptions", - "EmittedSignal", - "SignalSubtype", - "SignalType", - "emitSignalToWaggleDance", - "maybeEmitDiscovery" - ], - "totalLines": 80, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-shim-core/src/logger.ts": { - "filePath": "packages/hive-mind-shim-core/src/logger.ts", - "contentHash": "11f2db8dd5775e2babe426b94d78043618d1510d30584df4151991bf71bec7bf", - "functions": [ - { - "name": "isLogLevel", - "params": [ - "value" - ], - "exported": false, - "lineCount": 3 - }, - { - "name": "parseLevel", - "params": [ - "value" - ], - "returnType": "LogLevel | undefined", - "exported": false, - "lineCount": 5 - }, - { - "name": "createLogger", - "params": [ - "opts" - ], - "returnType": "Logger", - "exported": true, - "lineCount": 31 - } - ], - "classes": [], - "imports": [], - "exports": [ - "createLogger" - ], - "totalLines": 77, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-shim-core/src/prompt-summarizer.ts": { - "filePath": "packages/hive-mind-shim-core/src/prompt-summarizer.ts", - "contentHash": "5cf23eca6d7454d38208a47a347f6660c37b73a8b15533bcce117df321e7dd3a", - "functions": [ - { - "name": "summarizeTurn", - "params": [ - "content", - "opts" - ], - "returnType": "string", - "exported": true, - "lineCount": 30 - } - ], - "classes": [], - "imports": [], - "exports": [ - "summarizeTurn" - ], - "totalLines": 57, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-shim-core/src/retry-bridge.ts": { - "filePath": "packages/hive-mind-shim-core/src/retry-bridge.ts", - "contentHash": "9b8328fb46cd06346c3acd8972191f643b864d224453748fdaf5b0f00924fbaa", - "functions": [ - { - "name": "defaultDelay", - "params": [ - "ms" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 3 - }, - { - "name": "withTimeout", - "params": [ - "promise", - "ms" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 11 - }, - { - "name": "computeBackoff", - "params": [ - "attempt", - "baseMs", - "maxMs", - "jitterFactor", - "random" - ], - "returnType": "number", - "exported": true, - "lineCount": 12 - }, - { - "name": "withRetry", - "params": [ - "fn", - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 22 - } - ], - "classes": [], - "imports": [], - "exports": [ - "computeBackoff", - "withRetry" - ], - "totalLines": 89, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-shim-core/src/signal-emitter.ts": { - "filePath": "packages/hive-mind-shim-core/src/signal-emitter.ts", - "contentHash": "ff9c96aa9f09b688d52bd9c7fa6dea5afb5eef8f61f1c095225cfac6abcfb7dd", - "functions": [ - { - "name": "resolveUrl", - "params": [ - "opts" - ], - "returnType": "string", - "exported": false, - "lineCount": 7 - }, - { - "name": "warn", - "params": [ - "opts", - "message" - ], - "returnType": "void", - "exported": false, - "lineCount": 11 - }, - { - "name": "emitSignalToWaggleDance", - "params": [ - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 45 - }, - { - "name": "maybeEmitDiscovery", - "params": [ - "eventType", - "importance", - "payload", - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 15 - } - ], - "classes": [], - "imports": [ - { - "source": "./hook-event-types.js", - "specifiers": [ - "EventType" - ] - } - ], - "exports": [ - "emitSignalToWaggleDance", - "maybeEmitDiscovery" - ], - "totalLines": 209, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-shim-core/src/workspace-resolver.ts": { - "filePath": "packages/hive-mind-shim-core/src/workspace-resolver.ts", - "contentHash": "0adc05562c5e2769173d43fca25a8a5ec5186b7627a0d999d179ff3aeeaf3220", - "functions": [ - { - "name": "defaultExists", - "params": [ - "p" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 8 - }, - { - "name": "resolveWorkspace", - "params": [ - "cwd", - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 30 - }, - { - "name": "isAbsoluteWorkspacePath", - "params": [ - "p" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs/promises", - "specifiers": [ - "access", - "constants" - ] - }, - { - "source": "node:os", - "specifiers": [ - "homedir" - ] - }, - { - "source": "node:path", - "specifiers": [ - "dirname", - "isAbsolute", - "join", - "pathResolve" - ] - } - ], - "exports": [ - "resolveWorkspace", - "isAbsoluteWorkspacePath" - ], - "totalLines": 86, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-shim-core/tests/cli-bridge.test.ts": { - "filePath": "packages/hive-mind-shim-core/tests/cli-bridge.test.ts", - "contentHash": "215a79aec272a27c20ea9778819941af3f50c7c51da6449123892bb5cd4538a4", - "functions": [ - { - "name": "mockChild", - "params": [ - "opts" - ], - "returnType": "ChildProcess", - "exported": false, - "lineCount": 24 - }, - { - "name": "makeSpawnImpl", - "params": [ - "records", - "childOpts" - ], - "returnType": "SpawnFn", - "exported": false, - "lineCount": 6 - }, - { - "name": "jsonResultEnvelope", - "params": [ - "payload", - "opts" - ], - "returnType": "string", - "exported": false, - "lineCount": 9 - }, - { - "name": "plainTextEnvelope", - "params": [ - "text" - ], - "returnType": "string", - "exported": false, - "lineCount": 8 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it", - "vi" - ] - }, - { - "source": "node:events", - "specifiers": [ - "EventEmitter" - ] - }, - { - "source": "node:stream", - "specifiers": [ - "Readable" - ] - }, - { - "source": "../src/cli-bridge.js", - "specifiers": [ - "createCliBridge", - "SpawnFn" - ] - }, - { - "source": "node:child_process", - "specifiers": [ - "ChildProcess" - ] - }, - { - "source": "../src/frame-encoder.js", - "specifiers": [ - "HookFrame" - ] - } - ], - "exports": [], - "totalLines": 271, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-shim-core/tests/frame-encoder.test.ts": { - "filePath": "packages/hive-mind-shim-core/tests/frame-encoder.test.ts", - "contentHash": "994be6b7d185df4c0865804c709bde629cf44d83068d111ee7550a09b3dbfcd8", - "functions": [ - { - "name": "event", - "params": [ - "overrides" - ], - "returnType": "HookEvent", - "exported": false, - "lineCount": 10 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "../src/frame-encoder.js", - "specifiers": [ - "encodeFrame", - "frameToSavePayload", - "HookFrame" - ] - }, - { - "source": "../src/hook-event-types.js", - "specifiers": [ - "HookEvent" - ] - } - ], - "exports": [], - "totalLines": 144, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-shim-core/tests/hook-event-types.test.ts": { - "filePath": "packages/hive-mind-shim-core/tests/hook-event-types.test.ts", - "contentHash": "ffde00dde9b818fa94150fcee52fe356d7fd940f5bb5b0378eda1ddc4504d82b", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "../src/hook-event-types.js", - "specifiers": [ - "ALL_EVENT_TYPES", - "ALL_SOURCES", - "isEventType", - "isShimSource" - ] - } - ], - "exports": [], - "totalLines": 54, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-shim-core/tests/importance-classifier.test.ts": { - "filePath": "packages/hive-mind-shim-core/tests/importance-classifier.test.ts", - "contentHash": "5feaf21759f75a7582d83d277e803be652d3703547378c13ed16426336edf74d", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "../src/importance-classifier.js", - "specifiers": [ - "classifyImportance", - "classifyWithRules", - "DEFAULT_RULES" - ] - } - ], - "exports": [], - "totalLines": 91, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-shim-core/tests/integration/wire-roundtrip.integration.test.ts": { - "filePath": "packages/hive-mind-shim-core/tests/integration/wire-roundtrip.integration.test.ts", - "contentHash": "030b4743b5182c0a09fbd4ba19889f99ac67b69527323d5c9933fafb11b4c9f9", - "functions": [ - { - "name": "resolveCliJsPath", - "params": [], - "returnType": "string | undefined", - "exported": false, - "lineCount": 7 - }, - { - "name": "probeCli", - "params": [], - "returnType": "boolean", - "exported": false, - "lineCount": 14 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it", - "beforeAll", - "afterAll" - ] - }, - { - "source": "node:fs/promises", - "specifiers": [ - "mkdtemp", - "rm" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "existsSync" - ] - }, - { - "source": "node:os", - "specifiers": [ - "tmpdir" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join", - "resolve" - ] - }, - { - "source": "node:child_process", - "specifiers": [ - "spawnSync" - ] - }, - { - "source": "../../src/cli-bridge.js", - "specifiers": [ - "createCliBridge" - ] - }, - { - "source": "../../src/frame-encoder.js", - "specifiers": [ - "encodeFrame" - ] - }, - { - "source": "../../src/hook-event-types.js", - "specifiers": [ - "HookEvent" - ] - } - ], - "exports": [], - "totalLines": 163, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-shim-core/tests/logger.test.ts": { - "filePath": "packages/hive-mind-shim-core/tests/logger.test.ts", - "contentHash": "9216dcf4c7abe0ba556e9fcc1dd86de2eb7c5b725c64435307e26ad62f43186a", - "functions": [ - { - "name": "captureLines", - "params": [], - "returnType": "{ lines: string[]; write: (l: string) => void }", - "exported": false, - "lineCount": 4 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "../src/logger.js", - "specifiers": [ - "createLogger" - ] - } - ], - "exports": [], - "totalLines": 85, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-shim-core/tests/prompt-summarizer.test.ts": { - "filePath": "packages/hive-mind-shim-core/tests/prompt-summarizer.test.ts", - "contentHash": "53e4683759b3a4fddbe8f63d558c38708da6bbc356e6a2086af0586c09324453", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "../src/prompt-summarizer.js", - "specifiers": [ - "summarizeTurn" - ] - } - ], - "exports": [], - "totalLines": 56, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-shim-core/tests/retry-bridge.test.ts": { - "filePath": "packages/hive-mind-shim-core/tests/retry-bridge.test.ts", - "contentHash": "6ebb343d7608cc1c40aabff6da40596bf5e16d886178b72876eb823f441ee9ed", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it", - "vi" - ] - }, - { - "source": "../src/retry-bridge.js", - "specifiers": [ - "computeBackoff", - "withRetry" - ] - } - ], - "exports": [], - "totalLines": 92, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-shim-core/tests/signal-emitter.test.ts": { - "filePath": "packages/hive-mind-shim-core/tests/signal-emitter.test.ts", - "contentHash": "932198c0af61eb6f06e8422600e670b6b52583380c9b72513cb02c6aae7acf49", - "functions": [ - { - "name": "makeOkFetch", - "params": [], - "returnType": "typeof fetch & { calls: Array<{ url: string; init: RequestInit | undefined }> }", - "exported": false, - "lineCount": 23 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/signal-emitter.js", - "specifiers": [ - "emitSignalToWaggleDance", - "maybeEmitDiscovery", - "EmittedSignal" - ] - } - ], - "exports": [], - "totalLines": 273, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-shim-core/tests/workspace-resolver.test.ts": { - "filePath": "packages/hive-mind-shim-core/tests/workspace-resolver.test.ts", - "contentHash": "bafe0d1f5d6766040f24a2e12a2607e703b49cca521028c8cfd964f205587037", - "functions": [ - { - "name": "makeExists", - "params": [ - "present" - ], - "returnType": "(p: string) => Promise", - "exported": false, - "lineCount": 4 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "expect", - "it" - ] - }, - { - "source": "../src/workspace-resolver.js", - "specifiers": [ - "isAbsoluteWorkspacePath", - "resolveWorkspace" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join", - "resolve" - ] - } - ], - "exports": [], - "totalLines": 92, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-shim-core/tsconfig.json": { - "filePath": "packages/hive-mind-shim-core/tsconfig.json", - "contentHash": "03a1457745848e42df43edae12465556def334b2f2fb73ad18c39b44fcdff752", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 12, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-shim-core/tsconfig.test.json": { - "filePath": "packages/hive-mind-shim-core/tsconfig.test.json", - "contentHash": "dd35a0eeeff0814c8fd641df9b32ef35949ee8f0e50a54c86b8306d327b6c2ca", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 13, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-wiki-compiler/NOTICE": { - "filePath": "packages/hive-mind-wiki-compiler/NOTICE", - "contentHash": "e66618b880ebd171ee3c1fcc9faa101950eff95d9b566e4090c30ba8d01061fd", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 37, - "hasStructuralAnalysis": false - }, - "packages/hive-mind-wiki-compiler/package.json": { - "filePath": "packages/hive-mind-wiki-compiler/package.json", - "contentHash": "06ca5b57f1bdf2cc51fdaf84e83501fcb9835158a428523edfddb2683fd33775", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 59, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-wiki-compiler/README.md": { - "filePath": "packages/hive-mind-wiki-compiler/README.md", - "contentHash": "c263a8cb7b6d57989cc8882abc3ab0f83d238279f7577424d3a7a46701c00591", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 49, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-wiki-compiler/src/compiler.test.ts": { - "filePath": "packages/hive-mind-wiki-compiler/src/compiler.test.ts", - "contentHash": "f6d3286534430c9019ab4979e4491cdfe8ba5f7ba8d018d2797d373e08976dbe", - "functions": [ - { - "name": "stubSynthesize", - "params": [ - "prompt" - ], - "exported": false, - "lineCount": 4 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "afterEach", - "beforeEach", - "describe", - "expect", - "it" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "existsSync", - "readFileSync", - "rmSync" - ] - }, - { - "source": "node:os", - "specifiers": [ - "tmpdir" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join" - ] - }, - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "MindDB", - "FrameStore", - "HybridSearch", - "KnowledgeGraph", - "createEmbeddingProvider", - "EmbeddingProviderInstance" - ] - }, - { - "source": "./compiler.js", - "specifiers": [ - "WikiCompiler" - ] - }, - { - "source": "./state.js", - "specifiers": [ - "CompilationState" - ] - }, - { - "source": "./types.js", - "specifiers": [ - "LLMSynthesizeFn" - ] - } - ], - "exports": [], - "totalLines": 213, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-wiki-compiler/src/compiler.ts": { - "filePath": "packages/hive-mind-wiki-compiler/src/compiler.ts", - "contentHash": "f88653a6c798d600303e2e7a5d735796a09d10f39363b1d39e124e8f2c944ed7", - "functions": [ - { - "name": "slugify", - "params": [ - "name" - ], - "returnType": "string", - "exported": false, - "lineCount": 7 - }, - { - "name": "buildFrontmatter", - "params": [ - "type", - "name", - "frameIds", - "relatedEntities", - "confidence", - "entityType" - ], - "returnType": "string", - "exported": false, - "lineCount": 22 - } - ], - "classes": [ - { - "name": "WikiCompiler", - "methods": [ - "constructor", - "compileEntityPage", - "compileConceptPage", - "compileSynthesisPage", - "compileIndex", - "compileHealth", - "compile", - "detectConcepts", - "exportToMarkdown", - "exportToDirectory" - ], - "properties": [ - "kg", - "frames", - "search", - "state", - "config" - ], - "exported": true, - "lineCount": 496 - } - ], - "imports": [ - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "KnowledgeGraph", - "FrameStore", - "HybridSearch", - "Entity" - ] - }, - { - "source": "./types.js", - "specifiers": [ - "WikiPage", - "WikiPageType", - "CompilerConfig", - "CompilationResult", - "HealthReport", - "HealthIssue" - ] - }, - { - "source": "./state.js", - "specifiers": [ - "CompilationState", - "contentHash" - ] - }, - { - "source": "./prompts.js", - "specifiers": [ - "entityPagePrompt", - "conceptPagePrompt", - "synthesisPagePrompt" - ] - } - ], - "exports": [ - "WikiCompiler" - ], - "totalLines": 556, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-wiki-compiler/src/index.ts": { - "filePath": "packages/hive-mind-wiki-compiler/src/index.ts", - "contentHash": "7e6a118aacb00d454ddf7014c86d9ad27b1ed604f5f60309fd821f34f462f0c2", - "functions": [], - "classes": [], - "imports": [], - "exports": [ - "WikiCompiler", - "CompilationState", - "contentHash", - "resolveSynthesizer", - "ResolvedSynthesizer", - "SynthesizerConfig", - "entityPagePrompt", - "conceptPagePrompt", - "synthesisPagePrompt", - "WikiPage", - "WikiPageType", - "WikiPageFrontmatter", - "CompilationWatermark", - "PageRecord", - "CompilerConfig", - "LLMSynthesizeFn", - "CompilationResult", - "HealthReport", - "HealthIssue", - "HealthIssueType" - ], - "totalLines": 39, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-wiki-compiler/src/prompts.ts": { - "filePath": "packages/hive-mind-wiki-compiler/src/prompts.ts", - "contentHash": "9dfebcac68cc31b5cfb4115b332e5a1de7db8d395ff3b5b2a1f201e9ec98c95e", - "functions": [ - { - "name": "entityPagePrompt", - "params": [ - "entityName", - "entityType", - "frames", - "relations" - ], - "returnType": "string", - "exported": true, - "lineCount": 33 - }, - { - "name": "conceptPagePrompt", - "params": [ - "conceptName", - "frames", - "relatedEntities" - ], - "returnType": "string", - "exported": true, - "lineCount": 31 - }, - { - "name": "synthesisPagePrompt", - "params": [ - "topic", - "crossSourceFrames" - ], - "returnType": "string", - "exported": true, - "lineCount": 24 - } - ], - "classes": [], - "imports": [], - "exports": [ - "entityPagePrompt", - "conceptPagePrompt", - "synthesisPagePrompt" - ], - "totalLines": 95, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-wiki-compiler/src/state.test.ts": { - "filePath": "packages/hive-mind-wiki-compiler/src/state.test.ts", - "contentHash": "15b39e97eb531cdfe2db83b515822f08219afae6f6ecad4677bfd8a41c560958", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "afterEach", - "beforeEach", - "describe", - "expect", - "it" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "existsSync", - "rmSync" - ] - }, - { - "source": "node:os", - "specifiers": [ - "tmpdir" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join" - ] - }, - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "./state.js", - "specifiers": [ - "CompilationState", - "contentHash" - ] - } - ], - "exports": [], - "totalLines": 133, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-wiki-compiler/src/state.ts": { - "filePath": "packages/hive-mind-wiki-compiler/src/state.ts", - "contentHash": "51c4a425d137281ab57a1c4cf58b3188aeca3b8d42b2ebf9ef54c88508703c30", - "functions": [ - { - "name": "contentHash", - "params": [ - "content" - ], - "returnType": "string", - "exported": true, - "lineCount": 3 - } - ], - "classes": [ - { - "name": "CompilationState", - "methods": [ - "constructor", - "ensureSchema", - "getWatermark", - "updateWatermark", - "getPage", - "getAllPages", - "getPagesByType", - "upsertPage", - "deletePage", - "getMaxFrameId", - "getFramesSince" - ], - "properties": [ - "db" - ], - "exported": true, - "lineCount": 125 - } - ], - "imports": [ - { - "source": "node:crypto", - "specifiers": [ - "createHash" - ] - }, - { - "source": "@waggle/hive-mind-core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "./types.js", - "specifiers": [ - "WikiPageType", - "CompilationWatermark", - "PageRecord" - ] - } - ], - "exports": [ - "contentHash", - "CompilationState" - ], - "totalLines": 161, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-wiki-compiler/src/synthesizer.test.ts": { - "filePath": "packages/hive-mind-wiki-compiler/src/synthesizer.test.ts", - "contentHash": "d5add993810f901a6070dba7200dea5a8b7ffdacef30a15b47f7fb63cac9c7d7", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "afterEach", - "beforeEach", - "describe", - "expect", - "it", - "vi" - ] - }, - { - "source": "./synthesizer.js", - "specifiers": [ - "resolveSynthesizer" - ] - } - ], - "exports": [], - "totalLines": 103, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-wiki-compiler/src/synthesizer.ts": { - "filePath": "packages/hive-mind-wiki-compiler/src/synthesizer.ts", - "contentHash": "fbdbb2d86a0a6b5479d90178e2a2af7b9f3501c42d18154b03aca572c771053b", - "functions": [ - { - "name": "createAnthropicSynthesizer", - "params": [ - "apiKey", - "model", - "maxTokens" - ], - "returnType": "LLMSynthesizeFn", - "exported": false, - "lineCount": 16 - }, - { - "name": "createOllamaSynthesizer", - "params": [ - "baseUrl", - "model", - "maxTokens" - ], - "returnType": "LLMSynthesizeFn", - "exported": false, - "lineCount": 24 - }, - { - "name": "createEchoSynthesizer", - "params": [], - "returnType": "LLMSynthesizeFn", - "exported": false, - "lineCount": 20 - }, - { - "name": "resolveSynthesizer", - "params": [ - "config" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 50 - } - ], - "classes": [], - "imports": [ - { - "source": "./types.js", - "specifiers": [ - "LLMSynthesizeFn" - ] - } - ], - "exports": [ - "resolveSynthesizer" - ], - "totalLines": 158, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-wiki-compiler/src/types.ts": { - "filePath": "packages/hive-mind-wiki-compiler/src/types.ts", - "contentHash": "73f69add25b5127835a82a2c333851268b91f052b86a08e9dcaa9144838714bb", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 116, - "hasStructuralAnalysis": true - }, - "packages/hive-mind-wiki-compiler/tsconfig.json": { - "filePath": "packages/hive-mind-wiki-compiler/tsconfig.json", - "contentHash": "0e8520083eaa70d04835ff70c537e054568785e667bcd39af558a3a7e1d0a6a9", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 13, - "hasStructuralAnalysis": true - }, - "packages/launcher/package.json": { - "filePath": "packages/launcher/package.json", - "contentHash": "77a5d4c2321a7bbcc76dca3e0c58626037392f3e15a4f9769a81869d7d286eef", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 62, - "hasStructuralAnalysis": true - }, - "packages/launcher/src/cli.ts": { - "filePath": "packages/launcher/src/cli.ts", - "contentHash": "69c7fa0f64e8a0eb7105ad2b542275802252f34dd96579eb5ba488a995511a49", - "functions": [ - { - "name": "parseArgs", - "params": [ - "argv" - ], - "returnType": "{\r\n port: number;\r\n skipLiteLLM: boolean;\r\n noBrowser: boolean;\r\n help: boolean;\r\n}", - "exported": false, - "lineCount": 28 - }, - { - "name": "openBrowser", - "params": [ - "url" - ], - "returnType": "void", - "exported": false, - "lineCount": 14 - }, - { - "name": "checkNodeVersion", - "params": [], - "returnType": "boolean", - "exported": false, - "lineCount": 9 - }, - { - "name": "main", - "params": [], - "exported": false, - "lineCount": 76 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/server/local/service", - "specifiers": [ - "startService", - "isFirstRun" - ] - }, - { - "source": "node:child_process", - "specifiers": [ - "execFile" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - } - ], - "exports": [], - "totalLines": 158, - "hasStructuralAnalysis": true - }, - "packages/launcher/tests/cli.test.ts": { - "filePath": "packages/launcher/tests/cli.test.ts", - "contentHash": "9934beb062353381ebaad813792cfdabc3e0d17079c705a3a1fef16570cf5975", - "functions": [ - { - "name": "parseArgs", - "params": [ - "argv" - ], - "returnType": "{\r\n port: number;\r\n skipLiteLLM: boolean;\r\n noBrowser: boolean;\r\n help: boolean;\r\n}", - "exported": false, - "lineCount": 28 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - } - ], - "exports": [], - "totalLines": 121, - "hasStructuralAnalysis": true - }, - "packages/launcher/tsup.config.ts": { - "filePath": "packages/launcher/tsup.config.ts", - "contentHash": "2426ce7f66b3d3a7da67ad7b8804352d5f6c0609abd2d789bdcc86ae8d8c16bc", - "functions": [], - "classes": [], - "imports": [ - { - "source": "tsup", - "specifiers": [ - "defineConfig" - ] - } - ], - "exports": [], - "totalLines": 21, - "hasStructuralAnalysis": true - }, - "packages/marketplace/ARCHITECTURE.md": { - "filePath": "packages/marketplace/ARCHITECTURE.md", - "contentHash": "6f6ca0e4bc23777a29ee4a093107798ef25a1f7c9a0307179ca0ad9850e45c4d", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 661, - "hasStructuralAnalysis": true - }, - "packages/marketplace/package.json": { - "filePath": "packages/marketplace/package.json", - "contentHash": "d85e9d006fa05ed9d10bba5801ae8985e586109ef0a15a92fb80f88c45a659a8", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 57, - "hasStructuralAnalysis": true - }, - "packages/marketplace/skills/browser-automation.md": { - "filePath": "packages/marketplace/skills/browser-automation.md", - "contentHash": "06a6de5fe5ac44c69068a590bf826165a98fd292cbc6ab8e3ca1b88def56ab1d", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 31, - "hasStructuralAnalysis": true - }, - "packages/marketplace/skills/chart-generator.md": { - "filePath": "packages/marketplace/skills/chart-generator.md", - "contentHash": "b73cf421de01fdd59fa042f95d8f4679c7ed92ab9b0f6295d479feb213c6d8fc", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 32, - "hasStructuralAnalysis": true - }, - "packages/marketplace/skills/pdf-generator.md": { - "filePath": "packages/marketplace/skills/pdf-generator.md", - "contentHash": "e0860da357b6058c3eb4a77ffab67d118ebfc6fd247fb032745b4a4d994e0348", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 72, - "hasStructuralAnalysis": true - }, - "packages/marketplace/skills/pptx-generator.md": { - "filePath": "packages/marketplace/skills/pptx-generator.md", - "contentHash": "b50fd9fd6f82ce41968014ad5d0f814302367e319f868dd7504abccf0f97b9c7", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 55, - "hasStructuralAnalysis": true - }, - "packages/marketplace/skills/xlsx-generator.md": { - "filePath": "packages/marketplace/skills/xlsx-generator.md", - "contentHash": "b8c9224b1ee350f58e8cd3fa82e8fcc63548b82ad1e6d8e0eaf8f35e0f28ce1a", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 66, - "hasStructuralAnalysis": true - }, - "packages/marketplace/src/categories.ts": { - "filePath": "packages/marketplace/src/categories.ts", - "contentHash": "42dc7e8ccb624fd4388cfcd9d219ae8b85283d5a44f09d6f6b43cfda03c1319a", - "functions": [ - { - "name": "categorizePackage", - "params": [ - "name", - "description" - ], - "returnType": "string", - "exported": true, - "lineCount": 31 - }, - { - "name": "recategorizeAll", - "params": [ - "db" - ], - "returnType": "{ updated: number; total: number }", - "exported": true, - "lineCount": 20 - } - ], - "classes": [], - "imports": [ - { - "source": "./db", - "specifiers": [ - "MarketplaceDB" - ] - } - ], - "exports": [ - "PACKAGE_CATEGORIES", - "categorizePackage", - "recategorizeAll" - ], - "totalLines": 101, - "hasStructuralAnalysis": true - }, - "packages/marketplace/src/cisco-scanner.ts": { - "filePath": "packages/marketplace/src/cisco-scanner.ts", - "contentHash": "f2f57729670665d407bf05c9c489b8ad00cf70e296b141f128f3d072f4a3fa2f", - "functions": [ - { - "name": "setExecFile", - "params": [ - "fn" - ], - "returnType": "void", - "exported": true, - "lineCount": 3 - }, - { - "name": "asExecFailure", - "params": [ - "err" - ], - "returnType": "ExecFailure", - "exported": false, - "lineCount": 3 - }, - { - "name": "isCiscoScannerAvailable", - "params": [], - "returnType": "Promise", - "exported": true, - "lineCount": 43 - }, - { - "name": "getCiscoScannerVersion", - "params": [], - "returnType": "string", - "exported": true, - "lineCount": 3 - }, - { - "name": "resetAvailabilityCache", - "params": [], - "returnType": "void", - "exported": true, - "lineCount": 3 - }, - { - "name": "ciscoScan", - "params": [ - "content", - "filename" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 99 - }, - { - "name": "parseJsonOutput", - "params": [ - "stdout", - "exitCode" - ], - "returnType": "CiscoScanResult", - "exported": false, - "lineCount": 72 - }, - { - "name": "normalizeSeverity", - "params": [ - "level" - ], - "returnType": "CiscoScanIssue['severity']", - "exported": false, - "lineCount": 9 - } - ], - "classes": [], - "imports": [ - { - "source": "child_process", - "specifiers": [ - "execFileCb" - ] - }, - { - "source": "fs", - "specifiers": [ - "writeFileSync", - "unlinkSync", - "mkdirSync" - ] - }, - { - "source": "path", - "specifiers": [ - "join" - ] - }, - { - "source": "os", - "specifiers": [ - "tmpdir" - ] - }, - { - "source": "crypto", - "specifiers": [ - "randomBytes" - ] - }, - { - "source": "util", - "specifiers": [ - "promisify" - ] - } - ], - "exports": [ - "setExecFile", - "isCiscoScannerAvailable", - "getCiscoScannerVersion", - "resetAvailabilityCache", - "ciscoScan" - ], - "totalLines": 368, - "hasStructuralAnalysis": true - }, - "packages/marketplace/src/cli.ts": { - "filePath": "packages/marketplace/src/cli.ts", - "contentHash": "31b4951a25e8085ab1d203375086458ab2a4e87d778ad1e643b57c01b5f28120", - "functions": [ - { - "name": "main", - "params": [], - "exported": false, - "lineCount": 357 - } - ], - "classes": [], - "imports": [ - { - "source": "./db", - "specifiers": [ - "MarketplaceDB" - ] - }, - { - "source": "./installer", - "specifiers": [ - "MarketplaceInstaller" - ] - }, - { - "source": "./sync", - "specifiers": [ - "MarketplaceSync" - ] - }, - { - "source": "./security", - "specifiers": [ - "SecurityGate" - ] - }, - { - "source": "./types", - "specifiers": [ - "InstallationType", - "ScannedPackage" - ] - } - ], - "exports": [], - "totalLines": 399, - "hasStructuralAnalysis": true - }, - "packages/marketplace/src/db.ts": { - "filePath": "packages/marketplace/src/db.ts", - "contentHash": "4ab4f72bcacf71f8f554f1b0d1d550e37ffaba85df53557927ff0744a325996a", - "functions": [], - "classes": [ - { - "name": "MarketplaceDB", - "methods": [ - "constructor", - "getRawDb", - "migrateSchema", - "search", - "getPackage", - "getPackageByName", - "getPacksBySlug", - "listPacks", - "listSources", - "listSourcesWithCounts", - "getSource", - "getSourceByName", - "addSource", - "deleteSource", - "ensureIsCustomColumn", - "getSyncState", - "setSyncState", - "recordInstallation", - "getInstallation", - "listInstallations", - "isInstalled", - "markUninstalled", - "upsertPackage", - "parsePackageJson", - "toFtsMatchQuery", - "buildOrderClause", - "getInstalledCount", - "buildFacets", - "close" - ], - "properties": [ - "db" - ], - "exported": true, - "lineCount": 516 - } - ], - "imports": [ - { - "source": "better-sqlite3", - "specifiers": [ - "Database" - ] - }, - { - "source": "path", - "specifiers": [ - "join" - ] - }, - { - "source": "os", - "specifiers": [ - "homedir" - ] - }, - { - "source": "./mcp-registry", - "specifiers": [ - "seedMcpServers" - ] - }, - { - "source": "./types", - "specifiers": [ - "MarketplacePackage", - "MarketplaceSource", - "MarketplacePack", - "Installation", - "InstalledPackageRow", - "PackageUpsertInput", - "SearchOptions", - "SearchResult", - "SearchSort" - ] - } - ], - "exports": [ - "MarketplaceDB" - ], - "totalLines": 542, - "hasStructuralAnalysis": true - }, - "packages/marketplace/src/enterprise-packs.ts": { - "filePath": "packages/marketplace/src/enterprise-packs.ts", - "contentHash": "f49d89b4be485a135fc26fa630b1050ca2947bb26e53b022fbf79dc69e48fe03", - "functions": [], - "classes": [], - "imports": [], - "exports": [ - "ENTERPRISE_PACKS" - ], - "totalLines": 53, - "hasStructuralAnalysis": true - }, - "packages/marketplace/src/index.ts": { - "filePath": "packages/marketplace/src/index.ts", - "contentHash": "8730a14e3513e755d5a7499db1e9a499119293ed4453b9b88c6e5647e1199940", - "functions": [], - "classes": [], - "imports": [], - "exports": [ - "MarketplaceDB", - "MarketplaceInstaller", - "MarketplaceSync", - "deduplicatePackages", - "parseAwesomeListMarkdown", - "parseNpmSearchResults", - "normalizeName", - "VaultLookupFn", - "seedNewSources", - "NEW_SOURCES", - "SecurityGate", - "isCiscoScannerAvailable", - "ciscoScan", - "getCiscoScannerVersion", - "resetAvailabilityCache", - "setExecFile", - "CiscoScanResult", - "CiscoScanIssue", - "ENTERPRISE_PACKS", - "EnterprisePack", - "MCP_SERVERS", - "seedMcpServers", - "McpServerEntry", - "PACKAGE_CATEGORIES", - "categorizePackage", - "recategorizeAll", - "PackageCategoryId", - "MarketplaceSource", - "MarketplacePackage", - "MarketplacePack", - "Installation", - "InstallManifest", - "PluginManifest", - "McpServerConfig", - "SettingField", - "PostInstallHook", - "InstallationType", - "InstallRequest", - "InstallResult", - "PackInstallResult", - "SearchOptions", - "SearchResult", - "SearchSort", - "SyncOptions", - "SyncResult", - "Severity", - "SecurityFinding", - "SecurityCategory", - "SecurityEngine", - "ScanResult", - "SecurityGateConfig" - ], - "totalLines": 73, - "hasStructuralAnalysis": true - }, - "packages/marketplace/src/installer.ts": { - "filePath": "packages/marketplace/src/installer.ts", - "contentHash": "b2e457807926c8dcf6885a5515a191384a0845727d8da84d89d67e76ac5fc2b7", - "functions": [ - { - "name": "mcpConfigPath", - "params": [], - "returnType": "string", - "exported": false, - "lineCount": 3 - } - ], - "classes": [ - { - "name": "MarketplaceInstaller", - "methods": [ - "constructor", - "install", - "scanOnly", - "getSecurityReport", - "installPack", - "uninstall", - "installSkill", - "installPlugin", - "installMcp", - "uninstallSkill", - "uninstallPlugin", - "uninstallMcp", - "resolveContent", - "recordScanResult", - "ensureDirectories", - "fetchContent", - "githubRawUrl", - "generateSkillStub", - "updatePluginRegistry", - "removeFromPluginRegistry", - "updateMcpConfig", - "removeMcpConfig", - "runPostInstallHook", - "notifyServer" - ], - "properties": [ - "db", - "security" - ], - "exported": true, - "lineCount": 710 - } - ], - "imports": [ - { - "source": "fs", - "specifiers": [ - "existsSync", - "mkdirSync", - "writeFileSync", - "readFileSync", - "copyFileSync", - "rmSync" - ] - }, - { - "source": "path", - "specifiers": [ - "join", - "dirname" - ] - }, - { - "source": "os", - "specifiers": [ - "homedir" - ] - }, - { - "source": "child_process", - "specifiers": [ - "execSync" - ] - }, - { - "source": "./db", - "specifiers": [ - "MarketplaceDB" - ] - }, - { - "source": "./security", - "specifiers": [ - "SecurityGate", - "ScanResult", - "SecurityGateConfig" - ] - }, - { - "source": "./types", - "specifiers": [ - "MarketplacePackage", - "InstallManifest", - "InstallRequest", - "InstallResult", - "PackInstallResult", - "InstallationType", - "McpServerConfig", - "PluginManifest", - "PostInstallHook" - ] - } - ], - "exports": [ - "MarketplaceInstaller" - ], - "totalLines": 776, - "hasStructuralAnalysis": true - }, - "packages/marketplace/src/mcp-registry.ts": { - "filePath": "packages/marketplace/src/mcp-registry.ts", - "contentHash": "a9307362dc29fc11590ddc171cac745ceb952132796b593f1f285e0916393e14", - "functions": [ - { - "name": "ensureMcpSource", - "params": [ - "db" - ], - "returnType": "number", - "exported": false, - "lineCount": 29 - }, - { - "name": "seedMcpServers", - "params": [ - "db" - ], - "returnType": "number", - "exported": true, - "lineCount": 59 - } - ], - "classes": [], - "imports": [ - { - "source": "./types", - "specifiers": [ - "MarketplacePackage" - ] - }, - { - "source": "./db", - "specifiers": [ - "MarketplaceDB" - ] - } - ], - "exports": [ - "MCP_SERVERS", - "seedMcpServers" - ], - "totalLines": 796, - "hasStructuralAnalysis": true - }, - "packages/marketplace/src/security.ts": { - "filePath": "packages/marketplace/src/security.ts", - "contentHash": "113cbdb3f616ba0f7860bd91da07982da89f47dda1abc16b42b6be531e5761b5", - "functions": [ - { - "name": "asExecError", - "params": [ - "err" - ], - "returnType": "ExecError", - "exported": false, - "lineCount": 3 - }, - { - "name": "maxSeverity", - "params": [ - "a", - "b" - ], - "returnType": "Severity", - "exported": false, - "lineCount": 3 - }, - { - "name": "severityToScore", - "params": [ - "severity" - ], - "returnType": "number", - "exported": false, - "lineCount": 9 - }, - { - "name": "shouldBlock", - "params": [ - "severity", - "threshold" - ], - "returnType": "boolean", - "exported": false, - "lineCount": 3 - } - ], - "classes": [ - { - "name": "SecurityGate", - "methods": [ - "constructor", - "scan", - "isSafe", - "verifyIntegrity", - "scanWithGenTrustHub", - "mapGenCategory", - "scanWithCiscoScanner", - "isCiscoScannerInstalled", - "mapCiscoSeverity", - "mapCiscoCategory", - "scanWithCiscoScannerAdapter", - "scanWithMcpGuardian", - "mcpPatternScan", - "mapGuardianCategory", - "scanWithHeuristics", - "hash", - "findLineNumber", - "getCacheKey", - "getCachedResult", - "cacheResult", - "formatReport" - ], - "properties": [ - "config" - ], - "exported": true, - "lineCount": 1010 - } - ], - "imports": [ - { - "source": "fs", - "specifiers": [ - "existsSync", - "readFileSync", - "writeFileSync", - "mkdirSync", - "unlinkSync" - ] - }, - { - "source": "path", - "specifiers": [ - "join", - "dirname" - ] - }, - { - "source": "os", - "specifiers": [ - "homedir" - ] - }, - { - "source": "child_process", - "specifiers": [ - "execFileSync" - ] - }, - { - "source": "crypto", - "specifiers": [ - "createHash" - ] - }, - { - "source": "./types", - "specifiers": [ - "MarketplacePackage", - "InstallManifest", - "McpServerConfig" - ] - }, - { - "source": "./cisco-scanner", - "specifiers": [ - "isCiscoScannerAvailable", - "ciscoScan", - "getCiscoScannerVersion", - "CiscoScanResult" - ] - } - ], - "exports": [ - "SecurityGate" - ], - "totalLines": 1227, - "hasStructuralAnalysis": true - }, - "packages/marketplace/src/sources-seed.ts": { - "filePath": "packages/marketplace/src/sources-seed.ts", - "contentHash": "3d40ee881c3b7584e1d18408c8fe856ff9b8ef4b98f8c91673a3e7270df662dd", - "functions": [ - { - "name": "seedNewSources", - "params": [ - "db" - ], - "returnType": "number", - "exported": true, - "lineCount": 33 - } - ], - "classes": [], - "imports": [ - { - "source": "./db", - "specifiers": [ - "MarketplaceDB" - ] - } - ], - "exports": [ - "seedNewSources", - "NEW_SOURCES" - ], - "totalLines": 224, - "hasStructuralAnalysis": true - }, - "packages/marketplace/src/sync.ts": { - "filePath": "packages/marketplace/src/sync.ts", - "contentHash": "e058bce16f2da1de77abd06e4b4293a5335be373e910eb11b63af791eca85d63", - "functions": [ - { - "name": "safeErrorText", - "params": [ - "err", - "maxLen" - ], - "returnType": "string", - "exported": false, - "lineCount": 4 - }, - { - "name": "isAwesomeListUrl", - "params": [ - "url" - ], - "returnType": "boolean", - "exported": false, - "lineCount": 3 - }, - { - "name": "githubHeaders", - "params": [], - "returnType": "Record", - "exported": false, - "lineCount": 10 - }, - { - "name": "detectPackageType", - "params": [ - "name", - "url" - ], - "returnType": "'skill' | 'plugin' | 'mcp'", - "exported": false, - "lineCount": 6 - }, - { - "name": "slugify", - "params": [ - "name" - ], - "returnType": "string", - "exported": false, - "lineCount": 7 - }, - { - "name": "displayNameFromSlug", - "params": [ - "slug" - ], - "returnType": "string", - "exported": false, - "lineCount": 5 - }, - { - "name": "parseAwesomeListMarkdown", - "params": [ - "markdown" - ], - "returnType": "Array<{\r\n name: string;\r\n url: string;\r\n description: string;\r\n}>", - "exported": true, - "lineCount": 34 - }, - { - "name": "parseNpmSearchResults", - "params": [ - "data" - ], - "returnType": "NpmPackageEntry[]", - "exported": true, - "lineCount": 18 - }, - { - "name": "normalizeName", - "params": [ - "name" - ], - "returnType": "string", - "exported": true, - "lineCount": 8 - }, - { - "name": "deduplicatePackages", - "params": [ - "db" - ], - "returnType": "number", - "exported": true, - "lineCount": 45 - } - ], - "classes": [ - { - "name": "MarketplaceSync", - "methods": [ - "constructor", - "syncAll" - ], - "properties": [ - "db", - "vaultLookup" - ], - "exported": true, - "lineCount": 61 - } - ], - "imports": [ - { - "source": "./db", - "specifiers": [ - "MarketplaceDB" - ] - }, - { - "source": "./types", - "specifiers": [ - "MarketplacePackage", - "MarketplaceSource", - "SyncOptions", - "SyncResult", - "InstallManifest" - ] - } - ], - "exports": [ - "parseAwesomeListMarkdown", - "parseNpmSearchResults", - "normalizeName", - "deduplicatePackages", - "MarketplaceSync" - ], - "totalLines": 1374, - "hasStructuralAnalysis": true - }, - "packages/marketplace/src/types.ts": { - "filePath": "packages/marketplace/src/types.ts", - "contentHash": "e1e2b8950ef8bca1d7f35ed950a5908061efd65fda5aa876f746e3b05520411d", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 264, - "hasStructuralAnalysis": true - }, - "packages/marketplace/tests/categories.test.ts": { - "filePath": "packages/marketplace/tests/categories.test.ts", - "contentHash": "e92614b06f59583c33fba44e9cff788ab7b2d2566674d688f180045c57c42cf4", - "functions": [ - { - "name": "createEmptyTempDb", - "params": [], - "returnType": "{ db: MarketplaceDB; tmpDir: string; dbPath: string }", - "exported": false, - "lineCount": 133 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "better-sqlite3", - "specifiers": [ - "Database" - ] - }, - { - "source": "../src/categories", - "specifiers": [ - "PACKAGE_CATEGORIES", - "categorizePackage", - "recategorizeAll" - ] - }, - { - "source": "../src/db", - "specifiers": [ - "MarketplaceDB" - ] - } - ], - "exports": [], - "totalLines": 391, - "hasStructuralAnalysis": true - }, - "packages/marketplace/tests/cisco-scanner.test.ts": { - "filePath": "packages/marketplace/tests/cisco-scanner.test.ts", - "contentHash": "5f5153c31143dbb1c89f511dd6cdcb1dca2b57efe67e462c9c5aaed54e2a4bf3", - "functions": [ - { - "name": "makeSkillPackage", - "params": [ - "overrides" - ], - "returnType": "MarketplacePackage", - "exported": false, - "lineCount": 31 - }, - { - "name": "mockScannerInstalledExec", - "params": [ - "scanOutput" - ], - "exported": false, - "lineCount": 16 - }, - { - "name": "mockScannerNotInstalledExec", - "params": [], - "exported": false, - "lineCount": 5 - }, - { - "name": "mockScannerWithFindingsExec", - "params": [ - "findingsJson" - ], - "exported": false, - "lineCount": 17 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "../src/cisco-scanner", - "specifiers": [ - "isCiscoScannerAvailable", - "ciscoScan", - "getCiscoScannerVersion", - "resetAvailabilityCache", - "setExecFile", - "CiscoScanResult" - ] - }, - { - "source": "../src/security", - "specifiers": [ - "SecurityGate", - "ScanResult" - ] - }, - { - "source": "../src/types", - "specifiers": [ - "MarketplacePackage" - ] - } - ], - "exports": [], - "totalLines": 554, - "hasStructuralAnalysis": true - }, - "packages/marketplace/tests/enterprise-packs.test.ts": { - "filePath": "packages/marketplace/tests/enterprise-packs.test.ts", - "contentHash": "1cb358f9982fe0ee1f444cea659ee76931448151acea6c7b593f48b8348c85f0", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/enterprise-packs", - "specifiers": [ - "ENTERPRISE_PACKS", - "EnterprisePack" - ] - } - ], - "exports": [], - "totalLines": 108, - "hasStructuralAnalysis": true - }, - "packages/marketplace/tests/mcp-registry.test.ts": { - "filePath": "packages/marketplace/tests/mcp-registry.test.ts", - "contentHash": "17a786adc6253ed64ab581c1320d166a278d2e0ddba0ced43b3c7afddaa3e87c", - "functions": [ - { - "name": "createTempDb", - "params": [], - "returnType": "string", - "exported": false, - "lineCount": 10 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "better-sqlite3", - "specifiers": [ - "Database" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "../src/mcp-registry", - "specifiers": [ - "MCP_SERVERS", - "seedMcpServers", - "McpServerEntry" - ] - }, - { - "source": "../src/db", - "specifiers": [ - "MarketplaceDB" - ] - } - ], - "exports": [], - "totalLines": 457, - "hasStructuralAnalysis": true - }, - "packages/marketplace/tests/sync-adapters.test.ts": { - "filePath": "packages/marketplace/tests/sync-adapters.test.ts", - "contentHash": "556108204120798148df8335cd4f13822eda63d31d98c69e4e857703003f82c7", - "functions": [ - { - "name": "createEmptyTempDb", - "params": [], - "returnType": "{\r\n db: MarketplaceDB;\r\n tmpDir: string;\r\n dbPath: string;\r\n}", - "exported": false, - "lineCount": 137 - }, - { - "name": "insertSource", - "params": [ - "db", - "source" - ], - "returnType": "number", - "exported": false, - "lineCount": 26 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach", - "vi" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "better-sqlite3", - "specifiers": [ - "Database" - ] - }, - { - "source": "../src/db", - "specifiers": [ - "MarketplaceDB" - ] - }, - { - "source": "../src/sync", - "specifiers": [ - "MarketplaceSync", - "parseAwesomeListMarkdown", - "parseNpmSearchResults", - "normalizeName", - "deduplicatePackages" - ] - }, - { - "source": "../src/sources-seed", - "specifiers": [ - "seedNewSources", - "NEW_SOURCES" - ] - }, - { - "source": "../src/types", - "specifiers": [ - "MarketplaceSource" - ] - } - ], - "exports": [], - "totalLines": 1684, - "hasStructuralAnalysis": true - }, - "packages/marketplace/tests/sync-verification.test.ts": { - "filePath": "packages/marketplace/tests/sync-verification.test.ts", - "contentHash": "e757d3376d5f71bc428cb11a0960ebc7b343da20416d8e7ad62b45a4b53e7940", - "functions": [ - { - "name": "getRepoRoot", - "params": [], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "getBundledDbPath", - "params": [], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "createTempDb", - "params": [], - "returnType": "{ db: MarketplaceDB; tmpDir: string; dbPath: string }", - "exported": false, - "lineCount": 7 - }, - { - "name": "createEmptyTempDb", - "params": [], - "returnType": "{ db: MarketplaceDB; tmpDir: string; dbPath: string }", - "exported": false, - "lineCount": 138 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach", - "vi" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "better-sqlite3", - "specifiers": [ - "Database" - ] - }, - { - "source": "../src/db", - "specifiers": [ - "MarketplaceDB" - ] - }, - { - "source": "../src/sync", - "specifiers": [ - "MarketplaceSync" - ] - }, - { - "source": "../src/types", - "specifiers": [ - "SyncResult", - "MarketplaceSource" - ] - } - ], - "exports": [], - "totalLines": 677, - "hasStructuralAnalysis": true - }, - "packages/marketplace/tsconfig.json": { - "filePath": "packages/marketplace/tsconfig.json", - "contentHash": "fa9de0446419b2036f98530ac68950d7ae126598b620a418f0d22c9e85e61912", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 22, - "hasStructuralAnalysis": true - }, - "packages/memory-mcp/package.json": { - "filePath": "packages/memory-mcp/package.json", - "contentHash": "db972cf289cbe51c29466161f600b8c60e775dfea16c2775ee204d05e8ea128a", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 54, - "hasStructuralAnalysis": true - }, - "packages/memory-mcp/README.md": { - "filePath": "packages/memory-mcp/README.md", - "contentHash": "a9e2a9d083371f3589c44fc7311398d44a1bb34055c1579c2c390921d5096e60", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 160, - "hasStructuralAnalysis": true - }, - "packages/memory-mcp/src/core/setup.ts": { - "filePath": "packages/memory-mcp/src/core/setup.ts", - "contentHash": "e3404fdbeaef8813b3f8eff43d856e56f60bed422dbaa3eccf475ea5e909adaf", - "functions": [ - { - "name": "resolveDataDir", - "params": [], - "returnType": "string", - "exported": false, - "lineCount": 10 - }, - { - "name": "getAdapter", - "params": [ - "source" - ], - "exported": true, - "lineCount": 13 - }, - { - "name": "initialize", - "params": [], - "returnType": "Promise", - "exported": true, - "lineCount": 78 - }, - { - "name": "getDataDir", - "params": [], - "returnType": "string", - "exported": true, - "lineCount": 1 - }, - { - "name": "getPersonalDb", - "params": [], - "returnType": "MindDB", - "exported": true, - "lineCount": 1 - }, - { - "name": "getFrameStore", - "params": [], - "returnType": "FrameStore", - "exported": true, - "lineCount": 1 - }, - { - "name": "getSearch", - "params": [], - "returnType": "HybridSearch", - "exported": true, - "lineCount": 1 - }, - { - "name": "getKnowledgeGraph", - "params": [], - "returnType": "KnowledgeGraph", - "exported": true, - "lineCount": 1 - }, - { - "name": "getIdentity", - "params": [], - "returnType": "IdentityLayer", - "exported": true, - "lineCount": 1 - }, - { - "name": "getAwareness", - "params": [], - "returnType": "AwarenessLayer", - "exported": true, - "lineCount": 1 - }, - { - "name": "getSessions", - "params": [], - "returnType": "SessionStore", - "exported": true, - "lineCount": 1 - }, - { - "name": "getWorkspaceManager", - "params": [], - "returnType": "WorkspaceManager", - "exported": true, - "lineCount": 1 - }, - { - "name": "getMindCache", - "params": [], - "returnType": "MultiMindCache", - "exported": true, - "lineCount": 1 - }, - { - "name": "getEmbedder", - "params": [], - "returnType": "EmbeddingProviderInstance", - "exported": true, - "lineCount": 1 - }, - { - "name": "getHarvestSourceStore", - "params": [], - "returnType": "HarvestSourceStore", - "exported": true, - "lineCount": 1 - }, - { - "name": "getWorkspaceMind", - "params": [ - "workspaceId" - ], - "returnType": "WorkspaceMindHandle | null", - "exported": true, - "lineCount": 18 - }, - { - "name": "shutdown", - "params": [], - "returnType": "void", - "exported": true, - "lineCount": 6 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "FrameStore", - "HybridSearch", - "KnowledgeGraph", - "IdentityLayer", - "AwarenessLayer", - "SessionStore", - "WorkspaceManager", - "MultiMindCache", - "createEmbeddingProvider", - "HarvestSourceStore", - "ChatGPTAdapter", - "ClaudeAdapter", - "ClaudeCodeAdapter", - "GeminiAdapter", - "UniversalAdapter", - "MarkdownAdapter", - "PlaintextAdapter", - "UrlAdapter", - "PdfAdapter", - "EmbeddingProviderInstance", - "EmbeddingProviderConfig" - ] - } - ], - "exports": [ - "getAdapter", - "initialize", - "getDataDir", - "getPersonalDb", - "getFrameStore", - "getSearch", - "getKnowledgeGraph", - "getIdentity", - "getAwareness", - "getSessions", - "getWorkspaceManager", - "getMindCache", - "getEmbedder", - "getHarvestSourceStore", - "getWorkspaceMind", - "shutdown" - ], - "totalLines": 234, - "hasStructuralAnalysis": true - }, - "packages/memory-mcp/src/index.ts": { - "filePath": "packages/memory-mcp/src/index.ts", - "contentHash": "4a10896d0f9b077c3db283bedcb39944a14c0f8429219bafc47512c852c79b01", - "functions": [ - { - "name": "main", - "params": [], - "returnType": "Promise", - "exported": false, - "lineCount": 12 - }, - { - "name": "handleShutdown", - "params": [], - "returnType": "void", - "exported": false, - "lineCount": 5 - } - ], - "classes": [], - "imports": [ - { - "source": "@modelcontextprotocol/sdk/server/mcp.js", - "specifiers": [ - "McpServer" - ] - }, - { - "source": "@modelcontextprotocol/sdk/server/stdio.js", - "specifiers": [ - "StdioServerTransport" - ] - }, - { - "source": "./core/setup.js", - "specifiers": [ - "initialize", - "shutdown" - ] - }, - { - "source": "./tools/memory.js", - "specifiers": [ - "registerMemoryTools" - ] - }, - { - "source": "./tools/knowledge.js", - "specifiers": [ - "registerKnowledgeTools" - ] - }, - { - "source": "./tools/identity.js", - "specifiers": [ - "registerIdentityTools" - ] - }, - { - "source": "./tools/awareness.js", - "specifiers": [ - "registerAwarenessTools" - ] - }, - { - "source": "./tools/workspace.js", - "specifiers": [ - "registerWorkspaceTools" - ] - }, - { - "source": "./tools/harvest.js", - "specifiers": [ - "registerHarvestTools" - ] - }, - { - "source": "./tools/cleanup.js", - "specifiers": [ - "registerCleanupTools" - ] - }, - { - "source": "./tools/ingest.js", - "specifiers": [ - "registerIngestTools" - ] - }, - { - "source": "./tools/wiki.js", - "specifiers": [ - "registerWikiTools" - ] - }, - { - "source": "./resources/memory.js", - "specifiers": [ - "registerResources" - ] - } - ], - "exports": [], - "totalLines": 111, - "hasStructuralAnalysis": true - }, - "packages/memory-mcp/src/resources/memory.ts": { - "filePath": "packages/memory-mcp/src/resources/memory.ts", - "contentHash": "eb5d8bc9539cfa5a1cafe9978ab7e869b75c0faf95609735ecdcf45257eb8c21", - "functions": [ - { - "name": "registerResources", - "params": [ - "server" - ], - "returnType": "void", - "exported": true, - "lineCount": 168 - } - ], - "classes": [], - "imports": [ - { - "source": "@modelcontextprotocol/sdk/server/mcp.js", - "specifiers": [ - "McpServer" - ] - }, - { - "source": "../core/setup.js", - "specifiers": [ - "getFrameStore", - "getKnowledgeGraph", - "getIdentity", - "getAwareness", - "getEmbedder", - "getWorkspaceManager", - "getWorkspaceMind" - ] - } - ], - "exports": [ - "registerResources" - ], - "totalLines": 190, - "hasStructuralAnalysis": true - }, - "packages/memory-mcp/src/tools/awareness.ts": { - "filePath": "packages/memory-mcp/src/tools/awareness.ts", - "contentHash": "bdc9dbaeafcdab3c43fbfe5f2f4f39c037fdcb12ffe55e6efc80bb0d031e243a", - "functions": [ - { - "name": "registerAwarenessTools", - "params": [ - "server" - ], - "returnType": "void", - "exported": true, - "lineCount": 129 - } - ], - "classes": [], - "imports": [ - { - "source": "@modelcontextprotocol/sdk/server/mcp.js", - "specifiers": [ - "McpServer" - ] - }, - { - "source": "zod", - "specifiers": [ - "z" - ] - }, - { - "source": "../core/setup.js", - "specifiers": [ - "getAwareness" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "AwarenessCategory" - ] - } - ], - "exports": [ - "registerAwarenessTools" - ], - "totalLines": 140, - "hasStructuralAnalysis": true - }, - "packages/memory-mcp/src/tools/cleanup.ts": { - "filePath": "packages/memory-mcp/src/tools/cleanup.ts", - "contentHash": "8d8069d9a491cc1a1daa647ba3c6061e4cbc398429880574bf59f16f729332d9", - "functions": [ - { - "name": "isNoiseEntity", - "params": [ - "name", - "entityType" - ], - "returnType": "boolean", - "exported": false, - "lineCount": 22 - }, - { - "name": "registerCleanupTools", - "params": [ - "server" - ], - "returnType": "void", - "exported": true, - "lineCount": 360 - } - ], - "classes": [], - "imports": [ - { - "source": "@modelcontextprotocol/sdk/server/mcp.js", - "specifiers": [ - "McpServer" - ] - }, - { - "source": "zod", - "specifiers": [ - "z" - ] - }, - { - "source": "../core/setup.js", - "specifiers": [ - "getPersonalDb", - "getFrameStore", - "getKnowledgeGraph", - "getEmbedder", - "getWorkspaceMind" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "reconcileIndexes", - "normalizeEntityName" - ] - } - ], - "exports": [ - "registerCleanupTools" - ], - "totalLines": 423, - "hasStructuralAnalysis": true - }, - "packages/memory-mcp/src/tools/harvest.ts": { - "filePath": "packages/memory-mcp/src/tools/harvest.ts", - "contentHash": "4025288d5481daf01f2c9842822c59c2292fd1dc693d4bb9b9bb0ba021f2173b", - "functions": [ - { - "name": "registerHarvestTools", - "params": [ - "server" - ], - "returnType": "void", - "exported": true, - "lineCount": 207 - } - ], - "classes": [], - "imports": [ - { - "source": "@modelcontextprotocol/sdk/server/mcp.js", - "specifiers": [ - "McpServer" - ] - }, - { - "source": "zod", - "specifiers": [ - "z" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "../core/setup.js", - "specifiers": [ - "getFrameStore", - "getSessions", - "getSearch", - "getKnowledgeGraph", - "getHarvestSourceStore", - "getPersonalDb", - "getAdapter" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "resolveRelativeDate", - "HARVEST_FRAME_CONTENT_CAP", - "writeRawTurnFrames" - ] - } - ], - "exports": [ - "registerHarvestTools" - ], - "totalLines": 227, - "hasStructuralAnalysis": true - }, - "packages/memory-mcp/src/tools/identity.ts": { - "filePath": "packages/memory-mcp/src/tools/identity.ts", - "contentHash": "061d7d5ed95afda4ab5824b6f3c14a019db8edc0841ac207d383c148de005d27", - "functions": [ - { - "name": "registerIdentityTools", - "params": [ - "server" - ], - "returnType": "void", - "exported": true, - "lineCount": 113 - } - ], - "classes": [], - "imports": [ - { - "source": "@modelcontextprotocol/sdk/server/mcp.js", - "specifiers": [ - "McpServer" - ] - }, - { - "source": "zod", - "specifiers": [ - "z" - ] - }, - { - "source": "../core/setup.js", - "specifiers": [ - "getIdentity" - ] - } - ], - "exports": [ - "registerIdentityTools" - ], - "totalLines": 123, - "hasStructuralAnalysis": true - }, - "packages/memory-mcp/src/tools/ingest.ts": { - "filePath": "packages/memory-mcp/src/tools/ingest.ts", - "contentHash": "1554251b5f00933b0cb21aba35dbcee64679e1c47c4e02e7b2d733f7d049b84c", - "functions": [ - { - "name": "registerIngestTools", - "params": [ - "server" - ], - "returnType": "void", - "exported": true, - "lineCount": 150 - }, - { - "name": "detectContentType", - "params": [ - "input" - ], - "returnType": "'markdown' | 'plaintext' | 'pdf' | 'url'", - "exported": false, - "lineCount": 32 - } - ], - "classes": [], - "imports": [ - { - "source": "@modelcontextprotocol/sdk/server/mcp.js", - "specifiers": [ - "McpServer" - ] - }, - { - "source": "zod", - "specifiers": [ - "z" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "../core/setup.js", - "specifiers": [ - "getFrameStore", - "getSessions", - "getSearch", - "getKnowledgeGraph", - "getHarvestSourceStore", - "getPersonalDb", - "getAdapter" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "UrlAdapter" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "PdfAdapter" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "UniversalImportItem" - ] - } - ], - "exports": [ - "registerIngestTools" - ], - "totalLines": 208, - "hasStructuralAnalysis": true - }, - "packages/memory-mcp/src/tools/knowledge.ts": { - "filePath": "packages/memory-mcp/src/tools/knowledge.ts", - "contentHash": "cd721d67283515e86726a98318d731f842a380753d33686c62bcfa3b0609acce", - "functions": [ - { - "name": "registerKnowledgeTools", - "params": [ - "server" - ], - "returnType": "void", - "exported": true, - "lineCount": 167 - }, - { - "name": "safeParseJson", - "params": [ - "raw" - ], - "returnType": "Record", - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "@modelcontextprotocol/sdk/server/mcp.js", - "specifiers": [ - "McpServer" - ] - }, - { - "source": "zod", - "specifiers": [ - "z" - ] - }, - { - "source": "../core/setup.js", - "specifiers": [ - "getKnowledgeGraph", - "getWorkspaceMind" - ] - } - ], - "exports": [ - "registerKnowledgeTools" - ], - "totalLines": 186, - "hasStructuralAnalysis": true - }, - "packages/memory-mcp/src/tools/memory.ts": { - "filePath": "packages/memory-mcp/src/tools/memory.ts", - "contentHash": "0d56e469640ca45d84ae51762a7ed1fc9c23266a9f26f229abf3385303e88208", - "functions": [ - { - "name": "registerMemoryTools", - "params": [ - "server" - ], - "returnType": "void", - "exported": true, - "lineCount": 173 - } - ], - "classes": [], - "imports": [ - { - "source": "@modelcontextprotocol/sdk/server/mcp.js", - "specifiers": [ - "McpServer" - ] - }, - { - "source": "zod", - "specifiers": [ - "z" - ] - }, - { - "source": "../core/setup.js", - "specifiers": [ - "getFrameStore", - "getSearch", - "getSessions", - "getEmbedder", - "getWorkspaceMind", - "getWorkspaceManager" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "Importance", - "FrameSource" - ] - } - ], - "exports": [ - "registerMemoryTools" - ], - "totalLines": 191, - "hasStructuralAnalysis": true - }, - "packages/memory-mcp/src/tools/wiki.ts": { - "filePath": "packages/memory-mcp/src/tools/wiki.ts", - "contentHash": "6950cd437ab254d1be3ed4808388a8c15852e715e3562a5a80dd4995651415c2", - "functions": [ - { - "name": "getSynthesizer", - "params": [], - "returnType": "Promise", - "exported": false, - "lineCount": 7 - }, - { - "name": "getCompiler", - "params": [], - "returnType": "Promise<{ compiler: WikiCompiler; state: CompilationState; provider: string }>", - "exported": false, - "lineCount": 13 - }, - { - "name": "registerWikiTools", - "params": [ - "server" - ], - "returnType": "void", - "exported": true, - "lineCount": 183 - } - ], - "classes": [], - "imports": [ - { - "source": "@modelcontextprotocol/sdk/server/mcp.js", - "specifiers": [ - "McpServer" - ] - }, - { - "source": "zod", - "specifiers": [ - "z" - ] - }, - { - "source": "../core/setup.js", - "specifiers": [ - "getPersonalDb", - "getFrameStore", - "getSearch", - "getKnowledgeGraph" - ] - }, - { - "source": "@waggle/wiki-compiler", - "specifiers": [ - "WikiCompiler", - "CompilationState", - "resolveWikiSynthesizer" - ] - }, - { - "source": "@waggle/wiki-compiler", - "specifiers": [ - "LLMSynthesizeFn", - "ResolvedSynthesizer" - ] - } - ], - "exports": [ - "registerWikiTools" - ], - "totalLines": 233, - "hasStructuralAnalysis": true - }, - "packages/memory-mcp/src/tools/workspace.ts": { - "filePath": "packages/memory-mcp/src/tools/workspace.ts", - "contentHash": "c4baf6e46b5692e965e9a476fed764ec2e126845b83f2cb64973d6fffd875be7", - "functions": [ - { - "name": "registerWorkspaceTools", - "params": [ - "server" - ], - "returnType": "void", - "exported": true, - "lineCount": 87 - } - ], - "classes": [], - "imports": [ - { - "source": "@modelcontextprotocol/sdk/server/mcp.js", - "specifiers": [ - "McpServer" - ] - }, - { - "source": "zod", - "specifiers": [ - "z" - ] - }, - { - "source": "../core/setup.js", - "specifiers": [ - "getWorkspaceManager", - "getWorkspaceMind", - "getFrameStore", - "getKnowledgeGraph" - ] - } - ], - "exports": [ - "registerWorkspaceTools" - ], - "totalLines": 97, - "hasStructuralAnalysis": true - }, - "packages/memory-mcp/tsconfig.json": { - "filePath": "packages/memory-mcp/tsconfig.json", - "contentHash": "a57864dee001d032dcac41711ba5a9c07c8c1e15fe8969bfe933d2bd0bb10b13", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 22, - "hasStructuralAnalysis": true - }, - "packages/optimizer/package.json": { - "filePath": "packages/optimizer/package.json", - "contentHash": "4eb9b3317d376ceba39b6c7a745814493ab4a93003b9182bfc33b178507c4f88", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 19, - "hasStructuralAnalysis": true - }, - "packages/optimizer/README.md": { - "filePath": "packages/optimizer/README.md", - "contentHash": "3225c655a601950deebedd62eb9c0feb928700750600714d81c2231af3418c6d", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 42, - "hasStructuralAnalysis": true - }, - "packages/optimizer/src/index.ts": { - "filePath": "packages/optimizer/src/index.ts", - "contentHash": "3d634ea63d6b923b006225e7513d071294faafeaba90a527b9e86d8d7611cea7", - "functions": [], - "classes": [], - "imports": [], - "exports": [ - "PromptOptimizer", - "OptimizerConfig", - "ExecutionResult", - "SUMMARIZER_SIGNATURE", - "CLASSIFIER_SIGNATURE", - "PROMPT_EXPANDER_SIGNATURE", - "createSummarizer", - "createClassifier", - "createPromptExpander", - "getProgram", - "PROGRAM_REGISTRY", - "ProgramName", - "ProgramEntry" - ], - "totalLines": 14, - "hasStructuralAnalysis": true - }, - "packages/optimizer/src/optimizer.ts": { - "filePath": "packages/optimizer/src/optimizer.ts", - "contentHash": "9c13044f062520a836705feb004ee9935839a692f7778181a4d958704c0ad97b", - "functions": [], - "classes": [ - { - "name": "PromptOptimizer", - "methods": [ - "constructor", - "execute", - "summarize", - "classify", - "expandPrompt", - "listPrograms" - ], - "properties": [ - "ai" - ], - "exported": true, - "lineCount": 37 - } - ], - "imports": [ - { - "source": "@ax-llm/ax", - "specifiers": [ - "AxAIService" - ] - }, - { - "source": "./signatures.js", - "specifiers": [ - "ProgramName", - "getProgram", - "PROGRAM_REGISTRY" - ] - } - ], - "exports": [ - "PromptOptimizer" - ], - "totalLines": 51, - "hasStructuralAnalysis": true - }, - "packages/optimizer/src/signatures.ts": { - "filePath": "packages/optimizer/src/signatures.ts", - "contentHash": "824d132c52c759417f30d9fe2668871b5486668a726cb757fa2b91134f6a42dc", - "functions": [ - { - "name": "createSummarizer", - "params": [], - "returnType": "AxGen", - "exported": true, - "lineCount": 8 - }, - { - "name": "createClassifier", - "params": [], - "returnType": "AxGen", - "exported": true, - "lineCount": 9 - }, - { - "name": "createPromptExpander", - "params": [], - "returnType": "AxGen", - "exported": true, - "lineCount": 9 - }, - { - "name": "getProgram", - "params": [ - "name" - ], - "returnType": "ProgramEntry", - "exported": true, - "lineCount": 5 - } - ], - "classes": [], - "imports": [ - { - "source": "@ax-llm/ax", - "specifiers": [ - "AxGen", - "AxSignature" - ] - }, - { - "source": "@ax-llm/ax", - "specifiers": [ - "AxAIService" - ] - } - ], - "exports": [ - "SUMMARIZER_SIGNATURE", - "CLASSIFIER_SIGNATURE", - "PROMPT_EXPANDER_SIGNATURE", - "createSummarizer", - "createClassifier", - "createPromptExpander", - "PROGRAM_REGISTRY", - "getProgram" - ], - "totalLines": 70, - "hasStructuralAnalysis": true - }, - "packages/optimizer/tests/optimizer.test.ts": { - "filePath": "packages/optimizer/tests/optimizer.test.ts", - "contentHash": "ac791f916f83bd3e2f5e95432f63964b748c9a695a3616cdf6db9cb4dbf4702b", - "functions": [ - { - "name": "toTitleCase", - "params": [ - "camel" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "createMockAI", - "params": [ - "responses" - ], - "returnType": "AxAIService", - "exported": false, - "lineCount": 35 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi" - ] - }, - { - "source": "../src/signatures.js", - "specifiers": [ - "SUMMARIZER_SIGNATURE", - "CLASSIFIER_SIGNATURE", - "PROMPT_EXPANDER_SIGNATURE", - "createSummarizer", - "createClassifier", - "createPromptExpander", - "getProgram", - "PROGRAM_REGISTRY", - "ProgramName" - ] - }, - { - "source": "../src/optimizer.js", - "specifiers": [ - "PromptOptimizer" - ] - }, - { - "source": "@ax-llm/ax", - "specifiers": [ - "AxAIService" - ] - } - ], - "exports": [], - "totalLines": 224, - "hasStructuralAnalysis": true - }, - "packages/optimizer/tsconfig.json": { - "filePath": "packages/optimizer/tsconfig.json", - "contentHash": "a57864dee001d032dcac41711ba5a9c07c8c1e15fe8969bfe933d2bd0bb10b13", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 22, - "hasStructuralAnalysis": true - }, - "packages/optimizer/vitest.config.ts": { - "filePath": "packages/optimizer/vitest.config.ts", - "contentHash": "4ba97855139186dae9493b7e8a537d4eb0c7331d05d7f877688d4133e9ee02e7", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest/config", - "specifiers": [ - "defineConfig" - ] - } - ], - "exports": [], - "totalLines": 10, - "hasStructuralAnalysis": true - }, - "packages/sdk/package.json": { - "filePath": "packages/sdk/package.json", - "contentHash": "8f11f2cce1cc586fc7c9735f9e2e431fa757d5c4a00ebbb5ad024f90f2b225de", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 21, - "hasStructuralAnalysis": true - }, - "packages/sdk/src/capability-packs/decision-framework.json": { - "filePath": "packages/sdk/src/capability-packs/decision-framework.json", - "contentHash": "579a4b97a8d721d3cc02d4acd381ef65e2c9405b548d300c446e7e56aa37beec", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 7, - "hasStructuralAnalysis": true - }, - "packages/sdk/src/capability-packs/index.ts": { - "filePath": "packages/sdk/src/capability-packs/index.ts", - "contentHash": "d78086a8eda931f3852a25d99d747bd3c65f6c2ffb4b476e339f230da2070fb7", - "functions": [ - { - "name": "getCapabilityPacksDir", - "params": [], - "returnType": "string", - "exported": true, - "lineCount": 9 - }, - { - "name": "listCapabilityPacks", - "params": [], - "returnType": "CapabilityPack[]", - "exported": true, - "lineCount": 11 - }, - { - "name": "getPackManifest", - "params": [ - "packId" - ], - "returnType": "CapabilityPack | null", - "exported": true, - "lineCount": 6 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:url", - "specifiers": [ - "fileURLToPath" - ] - } - ], - "exports": [ - "getCapabilityPacksDir", - "listCapabilityPacks", - "getPackManifest" - ], - "totalLines": 52, - "hasStructuralAnalysis": true - }, - "packages/sdk/src/capability-packs/planning-master.json": { - "filePath": "packages/sdk/src/capability-packs/planning-master.json", - "contentHash": "0caff0f835f82c1cf145c928fef02d5a5684d46c2849c9c7adff50f8616c4b20", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 7, - "hasStructuralAnalysis": true - }, - "packages/sdk/src/capability-packs/research-workflow.json": { - "filePath": "packages/sdk/src/capability-packs/research-workflow.json", - "contentHash": "1a315bf2bb040aff710b60db464a8711e5dbf0000cee30e4a62bd11e265e75e0", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 7, - "hasStructuralAnalysis": true - }, - "packages/sdk/src/capability-packs/team-collaboration.json": { - "filePath": "packages/sdk/src/capability-packs/team-collaboration.json", - "contentHash": "66d22b4fdc250fedbc658e16ba6c8fa0364d02a49319772d55330eb2d5543511", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 7, - "hasStructuralAnalysis": true - }, - "packages/sdk/src/capability-packs/writing-suite.json": { - "filePath": "packages/sdk/src/capability-packs/writing-suite.json", - "contentHash": "52cdafcddaa426e30a526189c44657fa1485ea87a690acfc3fc525c54e13cd7f", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 7, - "hasStructuralAnalysis": true - }, - "packages/sdk/src/index.ts": { - "filePath": "packages/sdk/src/index.ts", - "contentHash": "449dcf12e72adeffa45d621efa2d04a58edb34728d3d8ad9c4b1c46b29c60362", - "functions": [], - "classes": [], - "imports": [], - "exports": [ - "validateSkillMd", - "checkSkillDependencies", - "checkVersionDowngrade", - "isValidSemver", - "compareSemver", - "SkillMetadata", - "ValidationResult", - "initSkill", - "validatePluginManifest", - "PluginManifest", - "ManifestValidation", - "PluginManager", - "PluginRuntime", - "PluginRuntimeManager", - "webResearchPluginManifest", - "PluginLifecycleState", - "PluginToolDef", - "PluginTool", - "PluginManifestWithTools", - "ActivationDependencies", - "listStarterSkills", - "installStarterSkills", - "getStarterSkillsDir", - "listCapabilityPacks", - "getCapabilityPacksDir", - "getPackManifest", - "CapabilityPack" - ], - "totalLines": 17, - "hasStructuralAnalysis": true - }, - "packages/sdk/src/init-skill.ts": { - "filePath": "packages/sdk/src/init-skill.ts", - "contentHash": "b50fff43e3a5b78c4d2a9ac13659695684d7b66d0febd23275a2592bf66fef0b", - "functions": [ - { - "name": "initSkill", - "params": [ - "dir", - "name" - ], - "returnType": "void", - "exported": true, - "lineCount": 29 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "mkdirSync", - "writeFileSync" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join" - ] - } - ], - "exports": [ - "initSkill" - ], - "totalLines": 39, - "hasStructuralAnalysis": true - }, - "packages/sdk/src/plugin-manager.ts": { - "filePath": "packages/sdk/src/plugin-manager.ts", - "contentHash": "bfef3093c02adddacd6e8694d9441ff727da1621b8c147a941ce7300dc57ca90", - "functions": [], - "classes": [ - { - "name": "PluginManager", - "methods": [ - "constructor", - "list", - "installLocal", - "uninstall", - "toRuntimeManager", - "ensurePluginsDir", - "readRegistry", - "writeRegistry", - "copyDirSync" - ], - "properties": [ - "pluginsDir", - "registryPath" - ], - "exported": true, - "lineCount": 113 - } - ], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "./plugin-manifest.js", - "specifiers": [ - "PluginManifest", - "validatePluginManifest" - ] - }, - { - "source": "./plugin-runtime.js", - "specifiers": [ - "PluginRuntimeManager" - ] - } - ], - "exports": [ - "PluginManager" - ], - "totalLines": 128, - "hasStructuralAnalysis": true - }, - "packages/sdk/src/plugin-manifest.ts": { - "filePath": "packages/sdk/src/plugin-manifest.ts", - "contentHash": "ebe4dbede2d80d4c6b7d03acc6f30013daddae3141daeedd1fed19a38875b408", - "functions": [ - { - "name": "validatePluginManifest", - "params": [ - "manifest" - ], - "returnType": "ManifestValidation", - "exported": true, - "lineCount": 83 - } - ], - "classes": [], - "imports": [], - "exports": [ - "validatePluginManifest" - ], - "totalLines": 107, - "hasStructuralAnalysis": true - }, - "packages/sdk/src/plugin-runtime.ts": { - "filePath": "packages/sdk/src/plugin-runtime.ts", - "contentHash": "eb918c510bf28c98dd7d2e315dba13326f864cd7788e1255280af8defe7eacc2", - "functions": [ - { - "name": "makePluginToolExecutor", - "params": [ - "def", - "pluginDir" - ], - "returnType": "(args: Record) => Promise", - "exported": false, - "lineCount": 28 - } - ], - "classes": [ - { - "name": "PluginRuntime", - "methods": [ - "constructor", - "getState", - "getManifest", - "getContributedTools", - "getContributedSkills", - "enable", - "activate", - "disable", - "transition" - ], - "properties": [ - "state", - "manifest", - "deps", - "contributedTools", - "contributedSkills" - ], - "exported": true, - "lineCount": 106 - }, - { - "name": "PluginRuntimeManager", - "methods": [ - "register", - "enable", - "disable", - "getActive", - "getAllTools", - "getAllSkills", - "getPluginStates", - "getRuntime" - ], - "properties": [ - "plugins" - ], - "exported": true, - "lineCount": 78 - } - ], - "imports": [ - { - "source": "events", - "specifiers": [ - "EventEmitter" - ] - }, - { - "source": "fs", - "specifiers": [ - "existsSync" - ] - }, - { - "source": "path", - "specifiers": [ - "join" - ] - }, - { - "source": "./plugin-manifest.js", - "specifiers": [ - "PluginManifest" - ] - } - ], - "exports": [ - "PluginRuntime", - "PluginRuntimeManager", - "webResearchPluginManifest" - ], - "totalLines": 326, - "hasStructuralAnalysis": true - }, - "packages/sdk/src/starter-skills/brainstorm.md": { - "filePath": "packages/sdk/src/starter-skills/brainstorm.md", - "contentHash": "1d1ea6edb0724e305ca80e3fa4c7e0f54227ad8b6ceea147feb9baa2de31e47c", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 40, - "hasStructuralAnalysis": true - }, - "packages/sdk/src/starter-skills/catch-up.md": { - "filePath": "packages/sdk/src/starter-skills/catch-up.md", - "contentHash": "8606c728f5f013ea3b7aa9d99baaf5f83aa9d61e0cc8ff060f32029478276d08", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 29, - "hasStructuralAnalysis": true - }, - "packages/sdk/src/starter-skills/code-review.md": { - "filePath": "packages/sdk/src/starter-skills/code-review.md", - "contentHash": "bd8fd816d16f266d6734b0bff026f5d9d5d57d4459dcd2354620c1c5efa9c899", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 45, - "hasStructuralAnalysis": true - }, - "packages/sdk/src/starter-skills/compare-docs.md": { - "filePath": "packages/sdk/src/starter-skills/compare-docs.md", - "contentHash": "4a3521ecd06d43c36577ce58c4dc3c1b2e817026b2699aef30a780bc78646c48", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 36, - "hasStructuralAnalysis": true - }, - "packages/sdk/src/starter-skills/daily-plan.md": { - "filePath": "packages/sdk/src/starter-skills/daily-plan.md", - "contentHash": "cad2ab08abe73f9ec422727e87c4c15e1bb921c72f53de5331558f7c6da27ca6", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 41, - "hasStructuralAnalysis": true - }, - "packages/sdk/src/starter-skills/decision-matrix.md": { - "filePath": "packages/sdk/src/starter-skills/decision-matrix.md", - "contentHash": "b37acee35d3034e91af1e63200ff50790f8098bffdc602c2527263965caa240a", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 35, - "hasStructuralAnalysis": true - }, - "packages/sdk/src/starter-skills/draft-memo.md": { - "filePath": "packages/sdk/src/starter-skills/draft-memo.md", - "contentHash": "903d992fbdee3dcc991f0c8c844ac9be4f8e0fdc78ae6e400646819935622998", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 31, - "hasStructuralAnalysis": true - }, - "packages/sdk/src/starter-skills/explain-concept.md": { - "filePath": "packages/sdk/src/starter-skills/explain-concept.md", - "contentHash": "cf75848f7acbf01c8d1a86e525e1b68f12107d96597fe0a9909cf81bd3191c01", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 31, - "hasStructuralAnalysis": true - }, - "packages/sdk/src/starter-skills/extract-actions.md": { - "filePath": "packages/sdk/src/starter-skills/extract-actions.md", - "contentHash": "00ee712c735451c2edbabd4651257fdde9eb657aa073afe616585198017f36aa", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 43, - "hasStructuralAnalysis": true - }, - "packages/sdk/src/starter-skills/index.ts": { - "filePath": "packages/sdk/src/starter-skills/index.ts", - "contentHash": "9d41d01df78676abbd9261892e04b88996f6d03fe30ea3ced5223803d0d62389", - "functions": [ - { - "name": "getStarterSkillsDir", - "params": [], - "returnType": "string", - "exported": true, - "lineCount": 10 - }, - { - "name": "listStarterSkills", - "params": [], - "returnType": "string[]", - "exported": true, - "lineCount": 8 - }, - { - "name": "installStarterSkills", - "params": [ - "targetDir" - ], - "returnType": "string[]", - "exported": true, - "lineCount": 18 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:url", - "specifiers": [ - "fileURLToPath" - ] - } - ], - "exports": [ - "getStarterSkillsDir", - "listStarterSkills", - "installStarterSkills" - ], - "totalLines": 57, - "hasStructuralAnalysis": true - }, - "packages/sdk/src/starter-skills/meeting-prep.md": { - "filePath": "packages/sdk/src/starter-skills/meeting-prep.md", - "contentHash": "3e304ccd959ca157c8f6d3e15876ead15382b1782a9606eacc1c97bbfa422c21", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 35, - "hasStructuralAnalysis": true - }, - "packages/sdk/src/starter-skills/plan-execute.md": { - "filePath": "packages/sdk/src/starter-skills/plan-execute.md", - "contentHash": "9857ffd40b96556e7f1cedbb50d83a37c9b8c84358c72c3b0fa641d47ff84c7e", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 28, - "hasStructuralAnalysis": true - }, - "packages/sdk/src/starter-skills/research-synthesis.md": { - "filePath": "packages/sdk/src/starter-skills/research-synthesis.md", - "contentHash": "eaee0c37dc7ca020c6f57917dfe4415e76b8c1e25de7e1f1e68fdbd376f500a1", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 36, - "hasStructuralAnalysis": true - }, - "packages/sdk/src/starter-skills/research-team.md": { - "filePath": "packages/sdk/src/starter-skills/research-team.md", - "contentHash": "c873abb1904229e86324ce99dbcde1bd85d1147c15ac3e74801c11f3688207c9", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 27, - "hasStructuralAnalysis": true - }, - "packages/sdk/src/starter-skills/retrospective.md": { - "filePath": "packages/sdk/src/starter-skills/retrospective.md", - "contentHash": "76a6ef0e7580efc21da0689f80e5a2c167ae92ec96877aeb840fb59f84481e13", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 49, - "hasStructuralAnalysis": true - }, - "packages/sdk/src/starter-skills/review-pair.md": { - "filePath": "packages/sdk/src/starter-skills/review-pair.md", - "contentHash": "976c5111ae224d09d19f67f385ec04a191afa5baf5cad4463911740640246495", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 22, - "hasStructuralAnalysis": true - }, - "packages/sdk/src/starter-skills/risk-assessment.md": { - "filePath": "packages/sdk/src/starter-skills/risk-assessment.md", - "contentHash": "d833c1a3b0e60dbd51d7960f3b606963b32233693419dc23fd028ceb9e743533", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 42, - "hasStructuralAnalysis": true - }, - "packages/sdk/src/starter-skills/status-update.md": { - "filePath": "packages/sdk/src/starter-skills/status-update.md", - "contentHash": "bceb92d3f99a4819d724e73fa333d6c26a60896cd5961684e625f1759159b588", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 32, - "hasStructuralAnalysis": true - }, - "packages/sdk/src/starter-skills/task-breakdown.md": { - "filePath": "packages/sdk/src/starter-skills/task-breakdown.md", - "contentHash": "ec0c5066835668e45d100425e15d54986a9ac2b71256ebed8f2fdb3d93f980ca", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 39, - "hasStructuralAnalysis": true - }, - "packages/sdk/src/validate-skill.ts": { - "filePath": "packages/sdk/src/validate-skill.ts", - "contentHash": "5566383cbf4ddb7ee4cde561613dc97b39b6b69226a27a4013475e24005f2695", - "functions": [ - { - "name": "isValidSemver", - "params": [ - "version" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 3 - }, - { - "name": "compareSemver", - "params": [ - "a", - "b" - ], - "returnType": "-1 | 0 | 1", - "exported": true, - "lineCount": 10 - }, - { - "name": "parseFrontmatter", - "params": [ - "raw" - ], - "returnType": "Record", - "exported": false, - "lineCount": 13 - }, - { - "name": "parseArrayField", - "params": [ - "value" - ], - "returnType": "string[]", - "exported": false, - "lineCount": 8 - }, - { - "name": "validateSkillMd", - "params": [ - "content" - ], - "returnType": "ValidationResult", - "exported": true, - "lineCount": 45 - }, - { - "name": "checkSkillDependencies", - "params": [ - "metadata", - "availableTools" - ], - "returnType": "string[]", - "exported": true, - "lineCount": 15 - }, - { - "name": "checkVersionDowngrade", - "params": [ - "skillName", - "existingVersion", - "newVersion" - ], - "returnType": "string | null", - "exported": true, - "lineCount": 17 - } - ], - "classes": [], - "imports": [], - "exports": [ - "isValidSemver", - "compareSemver", - "validateSkillMd", - "checkSkillDependencies", - "checkVersionDowngrade" - ], - "totalLines": 180, - "hasStructuralAnalysis": true - }, - "packages/sdk/tests/plugin-manager.test.ts": { - "filePath": "packages/sdk/tests/plugin-manager.test.ts", - "contentHash": "f5c8f3f5f5f68d810c2ffcd3fb9caeb261f03f02e9aa922b1fc336b3d1b05e95", - "functions": [ - { - "name": "makeTempDir", - "params": [], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "writePluginJson", - "params": [ - "dir", - "manifest" - ], - "returnType": "void", - "exported": false, - "lineCount": 4 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "../src/plugin-manifest.js", - "specifiers": [ - "validatePluginManifest" - ] - }, - { - "source": "../src/plugin-manager.js", - "specifiers": [ - "PluginManager" - ] - } - ], - "exports": [], - "totalLines": 166, - "hasStructuralAnalysis": true - }, - "packages/sdk/tests/plugin-runtime.test.ts": { - "filePath": "packages/sdk/tests/plugin-runtime.test.ts", - "contentHash": "a138d889edbb118631dd239f2667a25911b1ba03b80f0a63a4886b4f0f8b7096", - "functions": [ - { - "name": "simpleManifest", - "params": [ - "overrides" - ], - "returnType": "PluginManifestWithTools", - "exported": false, - "lineCount": 16 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "../src/plugin-runtime.js", - "specifiers": [ - "PluginRuntime", - "PluginRuntimeManager", - "webResearchPluginManifest", - "PluginManifestWithTools", - "PluginLifecycleState" - ] - }, - { - "source": "../src/plugin-manager.js", - "specifiers": [ - "PluginManager" - ] - } - ], - "exports": [], - "totalLines": 441, - "hasStructuralAnalysis": true - }, - "packages/sdk/tests/starter-skills.test.ts": { - "filePath": "packages/sdk/tests/starter-skills.test.ts", - "contentHash": "6718b7b5cfa25d36a114362cafe6e3d089b90a3053ed12d0c22b14672c10a976", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "../src/starter-skills/index.js", - "specifiers": [ - "listStarterSkills", - "installStarterSkills", - "getStarterSkillsDir" - ] - } - ], - "exports": [], - "totalLines": 111, - "hasStructuralAnalysis": true - }, - "packages/sdk/tests/validate-skill.test.ts": { - "filePath": "packages/sdk/tests/validate-skill.test.ts", - "contentHash": "43c1102a8b20ce527dec8403256ea1a876036400018e96caf83ddbe48cdb2421", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/validate-skill.js", - "specifiers": [ - "validateSkillMd", - "isValidSemver", - "compareSemver", - "checkSkillDependencies", - "checkVersionDowngrade" - ] - } - ], - "exports": [], - "totalLines": 285, - "hasStructuralAnalysis": true - }, - "packages/sdk/tests/wave-g-capability-surface.test.ts": { - "filePath": "packages/sdk/tests/wave-g-capability-surface.test.ts", - "contentHash": "3c2b3f9c52800092ff0d85ac4487b7e09624c1688913c561be8c7343a194d2a8", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/capability-packs/index.js", - "specifiers": [ - "listCapabilityPacks", - "getPackManifest" - ] - } - ], - "exports": [], - "totalLines": 125, - "hasStructuralAnalysis": true - }, - "packages/sdk/tsconfig.json": { - "filePath": "packages/sdk/tsconfig.json", - "contentHash": "a57864dee001d032dcac41711ba5a9c07c8c1e15fe8969bfe933d2bd0bb10b13", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 22, - "hasStructuralAnalysis": true - }, - "packages/sdk/vitest.config.ts": { - "filePath": "packages/sdk/vitest.config.ts", - "contentHash": "4ba97855139186dae9493b7e8a537d4eb0c7331d05d7f877688d4133e9ee02e7", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest/config", - "specifiers": [ - "defineConfig" - ] - } - ], - "exports": [], - "totalLines": 10, - "hasStructuralAnalysis": true - }, - "packages/server/.mcp.json": { - "filePath": "packages/server/.mcp.json", - "contentHash": "2f68d2224625e222298f9b9d69758eaddf7248613d316671b3c74fa5a11a8ffc", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 3, - "hasStructuralAnalysis": true - }, - "packages/server/drizzle.config.ts": { - "filePath": "packages/server/drizzle.config.ts", - "contentHash": "60aba5de3d3697a246bd5feada48bc46c79a583027cf68bd42d9cb49e135ed78", - "functions": [], - "classes": [], - "imports": [ - { - "source": "drizzle-kit", - "specifiers": [ - "defineConfig" - ] - } - ], - "exports": [], - "totalLines": 11, - "hasStructuralAnalysis": true - }, - "packages/server/drizzle/0000_wild_glorian.sql": { - "filePath": "packages/server/drizzle/0000_wild_glorian.sql", - "contentHash": "6ee6ea28aa240fc40d30371ad513f9734abde19c531b245a8840a34e0319c4fd", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 229, - "hasStructuralAnalysis": true - }, - "packages/server/drizzle/0001_redundant_sauron.sql": { - "filePath": "packages/server/drizzle/0001_redundant_sauron.sql", - "contentHash": "027b2ab6c6c529fb235bb515e6860cd414fcc7417c4aa21f89241b4974e0605f", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 45, - "hasStructuralAnalysis": true - }, - "packages/server/drizzle/meta/_journal.json": { - "filePath": "packages/server/drizzle/meta/_journal.json", - "contentHash": "59bc91bc6a999eae7f9701c7e697af3bee5747dc650a923d832b4076228c5b36", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 20, - "hasStructuralAnalysis": true - }, - "packages/server/drizzle/meta/0000_snapshot.json": { - "filePath": "packages/server/drizzle/meta/0000_snapshot.json", - "contentHash": "f736dcb0e6ab6acae7651f1b9385aab7d4a050d9d951326ca9d213f79c38d29b", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 1604, - "hasStructuralAnalysis": true - }, - "packages/server/drizzle/meta/0001_snapshot.json": { - "filePath": "packages/server/drizzle/meta/0001_snapshot.json", - "contentHash": "d9fc39e8971c858362a005f53b6a0a4a603abd06e9aff8a29d5dcc33870f011b", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 1924, - "hasStructuralAnalysis": true - }, - "packages/server/package.json": { - "filePath": "packages/server/package.json", - "contentHash": "dd4258bd868e5601b293ef38da70bd0299d2a3340ed347dd8eb25b1866079f4e", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 47, - "hasStructuralAnalysis": true - }, - "packages/server/src/benchmarks/aggregate.ts": { - "filePath": "packages/server/src/benchmarks/aggregate.ts", - "contentHash": "a4f84e3cebd108622126e3bdd8f3c2cdb7e11fa1a2494b44505a562dd1087a74", - "functions": [ - { - "name": "projectVerdict6", - "params": [ - "r" - ], - "returnType": "Verdict6", - "exported": true, - "lineCount": 17 - }, - { - "name": "emptyVerdictMap", - "params": [ - "fill" - ], - "returnType": "Record", - "exported": false, - "lineCount": 5 - }, - { - "name": "perCellRollup", - "params": [ - "records" - ], - "returnType": "PerCellRow[]", - "exported": true, - "lineCount": 34 - }, - { - "name": "perCategoryRollup", - "params": [ - "records" - ], - "returnType": "PerCategoryRow[]", - "exported": true, - "lineCount": 29 - }, - { - "name": "crossCellDeltaMatrix", - "params": [ - "perCell" - ], - "returnType": "CrossCellDelta[] | null", - "exported": true, - "lineCount": 15 - }, - { - "name": "costSummary", - "params": [ - "records" - ], - "returnType": "CostSummary", - "exported": true, - "lineCount": 47 - }, - { - "name": "buildReport", - "params": [ - "records", - "opts" - ], - "returnType": "AggregateReport", - "exported": true, - "lineCount": 28 - }, - { - "name": "pct", - "params": [ - "n" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "fmtUsd", - "params": [ - "n" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "renderMarkdown", - "params": [ - "report" - ], - "returnType": "string", - "exported": true, - "lineCount": 70 - } - ], - "classes": [], - "imports": [], - "exports": [ - "projectVerdict6", - "VERDICT6_VALUES", - "WEIGHTS", - "perCellRollup", - "perCategoryRollup", - "crossCellDeltaMatrix", - "costSummary", - "buildReport", - "renderMarkdown" - ], - "totalLines": 433, - "hasStructuralAnalysis": true - }, - "packages/server/src/benchmarks/judge/ensemble-tiebreak.ts": { - "filePath": "packages/server/src/benchmarks/judge/ensemble-tiebreak.ts", - "contentHash": "22bd2f4d9c83197619c22dd9d86360ab11fe8ae4d45a6fa939ced243dafdd35b", - "functions": [ - { - "name": "voteKey", - "params": [ - "v" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "countByKey", - "params": [ - "votes" - ], - "returnType": "Map", - "exported": false, - "lineCount": 10 - }, - { - "name": "pluralityTop", - "params": [ - "tally" - ], - "returnType": "{\r\n topCount: number;\r\n topKeys: string[];\r\n}", - "exported": false, - "lineCount": 10 - }, - { - "name": "resolveTieBreak", - "params": [ - "votes", - "options" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 157 - } - ], - "classes": [], - "imports": [ - { - "source": "./failure-mode-judge.js", - "specifiers": [ - "JudgeResult" - ] - } - ], - "exports": [ - "PM_ESCALATION_VERDICT", - "DEFAULT_FOURTH_VENDOR", - "resolveTieBreak" - ], - "totalLines": 315, - "hasStructuralAnalysis": true - }, - "packages/server/src/benchmarks/judge/failure-mode-judge.ts": { - "filePath": "packages/server/src/benchmarks/judge/failure-mode-judge.ts", - "contentHash": "5f383c6bf0281164730109ee678537818a51fabb9d3ec4689a8f5e4708d3e22f", - "functions": [ - { - "name": "buildJudgePrompt", - "params": [ - "params" - ], - "returnType": "string", - "exported": true, - "lineCount": 48 - }, - { - "name": "extractJsonBody", - "params": [ - "raw" - ], - "returnType": "string | null", - "exported": true, - "lineCount": 13 - }, - { - "name": "tryParse", - "params": [ - "raw" - ], - "returnType": "{ ok: true; value: JudgeResult } | { ok: false; error: string }", - "exported": false, - "lineCount": 23 - }, - { - "name": "judgeAnswer", - "params": [ - "params" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 39 - }, - { - "name": "judgeEnsemble", - "params": [ - "params" - ], - "returnType": "Promise<{ ensemble: JudgeResult[]; majority: JudgeResult; fleissKappa: number }>", - "exported": true, - "lineCount": 37 - }, - { - "name": "computeMajority", - "params": [ - "results", - "tieBreakerModel" - ], - "returnType": "JudgeResult", - "exported": false, - "lineCount": 37 - }, - { - "name": "categoryOf", - "params": [ - "r" - ], - "returnType": "KappaCategory", - "exported": false, - "lineCount": 4 - }, - { - "name": "computeFleissKappa", - "params": [ - "ratings" - ], - "returnType": "number", - "exported": true, - "lineCount": 54 - } - ], - "classes": [ - { - "name": "JudgeParseError", - "methods": [ - "constructor" - ], - "properties": [ - "lastResponse", - "lastParseError", - "judgeModel" - ], - "exported": true, - "lineCount": 12 - } - ], - "imports": [ - { - "source": "zod", - "specifiers": [ - "z" - ] - } - ], - "exports": [ - "JudgeParseError", - "buildJudgePrompt", - "RETRY_REMINDER", - "extractJsonBody", - "judgeAnswer", - "judgeEnsemble", - "computeFleissKappa" - ], - "totalLines": 384, - "hasStructuralAnalysis": true - }, - "packages/server/src/config.ts": { - "filePath": "packages/server/src/config.ts", - "contentHash": "88b4d353a02108fe2e70f0ff824fc8d62617789e5f937f8e03f340ef09cf2fac", - "functions": [ - { - "name": "loadConfig", - "params": [], - "returnType": "ServerConfig", - "exported": true, - "lineCount": 32 - } - ], - "classes": [], - "imports": [], - "exports": [ - "loadConfig" - ], - "totalLines": 43, - "hasStructuralAnalysis": true - }, - "packages/server/src/daemons/hive-mind.ts": { - "filePath": "packages/server/src/daemons/hive-mind.ts", - "contentHash": "28f765fc072c07d9757d0ec9540d68b9c0fd4713c27012955af68988940771f2", - "functions": [], - "classes": [ - { - "name": "HiveMindAgent", - "methods": [ - "constructor", - "generateWeeklyDigest", - "detectDuplicateWork", - "generateRecommendations" - ], - "properties": [], - "exported": true, - "lineCount": 104 - } - ], - "imports": [ - { - "source": "drizzle-orm", - "specifiers": [ - "eq", - "and", - "desc", - "gte", - "sql" - ] - }, - { - "source": "../db/schema.js", - "specifiers": [ - "agentJobs", - "teamResources", - "tasks", - "messages", - "teamMembers" - ] - }, - { - "source": "../db/connection.js", - "specifiers": [ - "Db" - ] - } - ], - "exports": [ - "HiveMindAgent" - ], - "totalLines": 127, - "hasStructuralAnalysis": true - }, - "packages/server/src/daemons/scout.ts": { - "filePath": "packages/server/src/daemons/scout.ts", - "contentHash": "a0299d873c7d717df4d03259426608fc591c34d13379f363e85b4dc5c44c3dec", - "functions": [], - "classes": [ - { - "name": "ScoutAgent", - "methods": [ - "constructor", - "scan", - "checkTeamResources", - "checkMarketplace", - "scoreRelevance", - "adopt", - "dismiss", - "listFindings" - ], - "properties": [], - "exported": true, - "lineCount": 108 - } - ], - "imports": [ - { - "source": "drizzle-orm", - "specifiers": [ - "eq", - "and", - "desc" - ] - }, - { - "source": "../db/schema.js", - "specifiers": [ - "scoutFindings", - "agents", - "teamMembers", - "teamResources" - ] - }, - { - "source": "../db/connection.js", - "specifiers": [ - "Db" - ] - } - ], - "exports": [ - "ScoutAgent" - ], - "totalLines": 122, - "hasStructuralAnalysis": true - }, - "packages/server/src/daemons/subconscious.ts": { - "filePath": "packages/server/src/daemons/subconscious.ts", - "contentHash": "5e46bd0384e7f9b2ddd917ed394d283cf1cb8087f18ec376e600f9c1feccce72", - "functions": [], - "classes": [ - { - "name": "SubconsciousAgent", - "methods": [ - "constructor", - "shouldReflect", - "reflect", - "analyzePatterns" - ], - "properties": [], - "exported": true, - "lineCount": 83 - } - ], - "imports": [ - { - "source": "drizzle-orm", - "specifiers": [ - "eq", - "desc", - "and", - "sql" - ] - }, - { - "source": "../db/schema.js", - "specifiers": [ - "agentJobs", - "agentAuditLog" - ] - }, - { - "source": "../db/connection.js", - "specifiers": [ - "Db" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "SUBCONSCIOUS_INTERACTION_THRESHOLD" - ] - } - ], - "exports": [ - "SubconsciousAgent" - ], - "totalLines": 95, - "hasStructuralAnalysis": true - }, - "packages/server/src/db/connection.ts": { - "filePath": "packages/server/src/db/connection.ts", - "contentHash": "e1023c1cfcb4f423ef2030010f36af37a73c14cfb44769578e0cb6cb39c5ef7f", - "functions": [ - { - "name": "createDb", - "params": [ - "connectionString" - ], - "exported": true, - "lineCount": 4 - } - ], - "classes": [], - "imports": [ - { - "source": "drizzle-orm/postgres-js", - "specifiers": [ - "drizzle" - ] - }, - { - "source": "postgres", - "specifiers": [ - "postgres" - ] - }, - { - "source": "./schema.js", - "specifiers": [ - "* as schema" - ] - } - ], - "exports": [ - "createDb" - ], - "totalLines": 17, - "hasStructuralAnalysis": true - }, - "packages/server/src/db/migrate.ts": { - "filePath": "packages/server/src/db/migrate.ts", - "contentHash": "dd07fe48e5309a559d0c2eafe7a0e8f68615965747cf14db5c36fff3069c7afb", - "functions": [ - { - "name": "main", - "params": [], - "exported": false, - "lineCount": 6 - } - ], - "classes": [], - "imports": [ - { - "source": "drizzle-orm/postgres-js/migrator", - "specifiers": [ - "migrate" - ] - }, - { - "source": "./connection.js", - "specifiers": [ - "createDb" - ] - }, - { - "source": "../local/logger.js", - "specifiers": [ - "createLogger" - ] - } - ], - "exports": [], - "totalLines": 21, - "hasStructuralAnalysis": true - }, - "packages/server/src/db/schema.ts": { - "filePath": "packages/server/src/db/schema.ts", - "contentHash": "953089533f95d40d0dc1d61fa0996de3201f5697cfcbdcd9405b378bdec595ee", - "functions": [], - "classes": [], - "imports": [ - { - "source": "drizzle-orm/pg-core", - "specifiers": [ - "pgTable", - "uuid", - "text", - "timestamp", - "boolean", - "real", - "integer", - "jsonb", - "primaryKey" - ] - } - ], - "exports": [ - "users", - "teams", - "teamMembers", - "agents", - "agentGroups", - "agentGroupMembers", - "tasks", - "messages", - "teamEntities", - "teamRelations", - "teamResources", - "teamCapabilityPolicies", - "teamCapabilityOverrides", - "teamCapabilityRequests", - "agentJobs", - "cronSchedules", - "scoutFindings", - "proactivePatterns", - "suggestionsLog", - "agentAuditLog" - ], - "totalLines": 235, - "hasStructuralAnalysis": true - }, - "packages/server/src/index.ts": { - "filePath": "packages/server/src/index.ts", - "contentHash": "4da0e956ebb2b064a4da537be3c057bf3e1216c0dd486890809020f9ddcbe356", - "functions": [ - { - "name": "buildServer", - "params": [ - "configOverrides" - ], - "exported": true, - "lineCount": 40 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "Fastify" - ] - }, - { - "source": "@fastify/cors", - "specifiers": [ - "cors" - ] - }, - { - "source": "@fastify/websocket", - "specifiers": [ - "websocket" - ] - }, - { - "source": "./config.js", - "specifiers": [ - "loadConfig", - "ServerConfig" - ] - }, - { - "source": "./db/connection.js", - "specifiers": [ - "createDb", - "Db" - ] - }, - { - "source": "./plugins/redis.js", - "specifiers": [ - "redisPlugin" - ] - }, - { - "source": "./plugins/auth.js", - "specifiers": [ - "authPlugin" - ] - }, - { - "source": "./routes/webhooks.js", - "specifiers": [ - "webhookRoutes" - ] - }, - { - "source": "./routes/teams.js", - "specifiers": [ - "teamRoutes" - ] - }, - { - "source": "./routes/agents.js", - "specifiers": [ - "agentRoutes" - ] - }, - { - "source": "./routes/tasks.js", - "specifiers": [ - "taskRoutes" - ] - }, - { - "source": "./routes/messages.js", - "specifiers": [ - "messageRoutes" - ] - }, - { - "source": "./routes/knowledge.js", - "specifiers": [ - "knowledgeRoutes" - ] - }, - { - "source": "./routes/resources.js", - "specifiers": [ - "resourceRoutes" - ] - }, - { - "source": "./routes/jobs.js", - "specifiers": [ - "jobRoutes" - ] - }, - { - "source": "./routes/cron.js", - "specifiers": [ - "cronRoutes" - ] - }, - { - "source": "./routes/suggestions.js", - "specifiers": [ - "suggestionRoutes" - ] - }, - { - "source": "./routes/scout.js", - "specifiers": [ - "scoutRoutes" - ] - }, - { - "source": "./routes/audit.js", - "specifiers": [ - "auditRoutes" - ] - }, - { - "source": "./routes/capability-governance.js", - "specifiers": [ - "capabilityGovernanceRoutes" - ] - }, - { - "source": "./routes/analytics.js", - "specifiers": [ - "analyticsRoutes" - ] - }, - { - "source": "./ws/gateway.js", - "specifiers": [ - "wsGateway" - ] - }, - { - "source": "./services/job-service.js", - "specifiers": [ - "JobService" - ] - }, - { - "source": "./local/logger.js", - "specifiers": [ - "createLogger" - ] - } - ], - "exports": [ - "buildServer" - ], - "totalLines": 84, - "hasStructuralAnalysis": true - }, - "packages/server/src/kvark/index.ts": { - "filePath": "packages/server/src/kvark/index.ts", - "contentHash": "2a8d5ebc20600c11378dbb2274af1371a50b1605506371776ddcdb19170d18f6", - "functions": [], - "classes": [], - "imports": [], - "exports": [ - "KvarkClient", - "KvarkAuth", - "getKvarkConfig", - "VaultLike", - "KvarkClientConfig", - "KvarkLoginRequest", - "KvarkLoginResponse", - "KvarkUser", - "KvarkSearchResult", - "KvarkSearchResponse", - "KvarkAskRequest", - "KvarkAskResponse", - "KvarkChatEvent", - "KvarkTokenUsage", - "KvarkErrorResponse", - "KvarkAuthError", - "KvarkNotFoundError", - "KvarkNotImplementedError", - "KvarkServerError", - "KvarkUnavailableError" - ], - "totalLines": 24, - "hasStructuralAnalysis": true - }, - "packages/server/src/kvark/kvark-auth.ts": { - "filePath": "packages/server/src/kvark/kvark-auth.ts", - "contentHash": "b9e031d8232653f094ffdfe6e0ae1b9511fdddd57482f96f7950b9e5d2973e72", - "functions": [], - "classes": [ - { - "name": "KvarkAuth", - "methods": [ - "constructor", - "getToken", - "login", - "invalidate", - "hasToken", - "tokenAgeMs" - ], - "properties": [ - "token", - "tokenObtainedAt", - "config", - "timeoutMs", - "fetchFn" - ], - "exported": true, - "lineCount": 87 - } - ], - "imports": [ - { - "source": "./kvark-types.js", - "specifiers": [ - "KvarkLoginResponse" - ] - }, - { - "source": "./kvark-types.js", - "specifiers": [ - "KvarkAuthError", - "KvarkUnavailableError" - ] - } - ], - "exports": [ - "KvarkAuth" - ], - "totalLines": 107, - "hasStructuralAnalysis": true - }, - "packages/server/src/kvark/kvark-client.ts": { - "filePath": "packages/server/src/kvark/kvark-client.ts", - "contentHash": "6d8f753d4b8b28ef6b440536d75d34af9e3b651f0499d6e80fc3fd216f11ded9", - "functions": [], - "classes": [ - { - "name": "KvarkClient", - "methods": [ - "constructor", - "search", - "askDocument", - "feedback", - "action", - "ping", - "get", - "post", - "request", - "doFetch", - "handleResponse" - ], - "properties": [ - "auth", - "baseUrl", - "timeoutMs", - "retryOnServerError", - "fetchFn" - ], - "exported": true, - "lineCount": 214 - } - ], - "imports": [ - { - "source": "./kvark-auth.js", - "specifiers": [ - "KvarkAuth" - ] - }, - { - "source": "./kvark-types.js", - "specifiers": [ - "KvarkActionRequest", - "KvarkActionResponse", - "KvarkAskRequest", - "KvarkAskResponse", - "KvarkClientConfig", - "KvarkFeedbackRequest", - "KvarkFeedbackResponse", - "KvarkSearchResponse", - "KvarkUser" - ] - }, - { - "source": "./kvark-types.js", - "specifiers": [ - "KvarkAuthError", - "KvarkNotFoundError", - "KvarkNotImplementedError", - "KvarkServerError", - "KvarkUnavailableError" - ] - } - ], - "exports": [ - "KvarkClient" - ], - "totalLines": 249, - "hasStructuralAnalysis": true - }, - "packages/server/src/kvark/kvark-config.ts": { - "filePath": "packages/server/src/kvark/kvark-config.ts", - "contentHash": "eb598f9d397e0998e1adaef620165a3289750353c8e1b4ea0d67ed6c83a54c6a", - "functions": [ - { - "name": "getKvarkConfig", - "params": [ - "vault" - ], - "returnType": "KvarkClientConfig | null", - "exported": true, - "lineCount": 27 - } - ], - "classes": [], - "imports": [ - { - "source": "./kvark-types.js", - "specifiers": [ - "KvarkClientConfig" - ] - } - ], - "exports": [ - "getKvarkConfig" - ], - "totalLines": 45, - "hasStructuralAnalysis": true - }, - "packages/server/src/kvark/kvark-types.ts": { - "filePath": "packages/server/src/kvark/kvark-types.ts", - "contentHash": "b5dca110440f7fa1954b9a1224d54bc5a7ece659973ef6723d41612cfc598ddd", - "functions": [], - "classes": [ - { - "name": "KvarkAuthError", - "methods": [ - "constructor" - ], - "properties": [], - "exported": true, - "lineCount": 6 - }, - { - "name": "KvarkNotFoundError", - "methods": [ - "constructor" - ], - "properties": [], - "exported": true, - "lineCount": 6 - }, - { - "name": "KvarkNotImplementedError", - "methods": [ - "constructor" - ], - "properties": [], - "exported": true, - "lineCount": 6 - }, - { - "name": "KvarkServerError", - "methods": [ - "constructor" - ], - "properties": [], - "exported": true, - "lineCount": 6 - }, - { - "name": "KvarkUnavailableError", - "methods": [ - "constructor" - ], - "properties": [], - "exported": true, - "lineCount": 6 - } - ], - "imports": [], - "exports": [ - "KvarkAuthError", - "KvarkNotFoundError", - "KvarkNotImplementedError", - "KvarkServerError", - "KvarkUnavailableError" - ], - "totalLines": 203, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/agents-store.ts": { - "filePath": "packages/server/src/local/agents-store.ts", - "contentHash": "eb87ab635d0c6f9b6aee44912b1accb6737ec759aed0bcfa52f7a195036d6fa4", - "functions": [ - { - "name": "agentsFilePath", - "params": [ - "dataDir" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "readAgents", - "params": [ - "dataDir" - ], - "returnType": "AgentRecord[]", - "exported": true, - "lineCount": 12 - }, - { - "name": "writeAgents", - "params": [ - "dataDir", - "agents" - ], - "returnType": "void", - "exported": false, - "lineCount": 17 - }, - { - "name": "addAgent", - "params": [ - "dataDir", - "input" - ], - "returnType": "AgentRecord", - "exported": true, - "lineCount": 12 - }, - { - "name": "getAgent", - "params": [ - "dataDir", - "id" - ], - "returnType": "AgentRecord | undefined", - "exported": true, - "lineCount": 3 - }, - { - "name": "patchAgent", - "params": [ - "dataDir", - "id", - "patch" - ], - "returnType": "AgentRecord | undefined", - "exported": true, - "lineCount": 20 - }, - { - "name": "deleteAgent", - "params": [ - "dataDir", - "id" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 7 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/shared", - "specifiers": [ - "AgentRunState", - "AgentType", - "AutonomyLevel", - "Scope" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "AGENT_RUN_STATES" - ] - }, - { - "source": "node:crypto", - "specifiers": [ - "randomUUID" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - } - ], - "exports": [ - "AGENT_RUN_STATES", - "AgentRunState", - "readAgents", - "addAgent", - "getAgent", - "patchAgent", - "deleteAgent" - ], - "totalLines": 150, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/approval-grants.ts": { - "filePath": "packages/server/src/local/approval-grants.ts", - "contentHash": "d66ad306a5b9d437dfc125c24995837f91b1c70b9b91c4a7109f073d8d3833e4", - "functions": [ - { - "name": "keyForTool", - "params": [ - "toolName", - "args" - ], - "returnType": "string", - "exported": true, - "lineCount": 23 - }, - { - "name": "describeGrant", - "params": [ - "toolName", - "targetKey", - "sourceWorkspaceId" - ], - "returnType": "string", - "exported": true, - "lineCount": 16 - } - ], - "classes": [ - { - "name": "ApprovalGrantStore", - "methods": [ - "constructor", - "load", - "save", - "isValidGrant", - "has", - "grant", - "revoke", - "list", - "clear" - ], - "properties": [ - "grants", - "filePath" - ], - "exported": true, - "lineCount": 122 - } - ], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:crypto", - "specifiers": [ - "randomUUID" - ] - } - ], - "exports": [ - "keyForTool", - "describeGrant", - "ApprovalGrantStore" - ], - "totalLines": 212, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/cors-config.ts": { - "filePath": "packages/server/src/local/cors-config.ts", - "contentHash": "2a4f4c8a2819037bea3f3007d7f90ec753a2ab3fc350640df848de74fa020bbd", - "functions": [ - { - "name": "corsOriginAllowed", - "params": [ - "origin" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 3 - }, - { - "name": "validateOrigin", - "params": [ - "requestOrigin" - ], - "returnType": "string", - "exported": true, - "lineCount": 5 - } - ], - "classes": [], - "imports": [], - "exports": [ - "ALLOWED_ORIGINS", - "corsOriginAllowed", - "validateOrigin" - ], - "totalLines": 74, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/cron.ts": { - "filePath": "packages/server/src/local/cron.ts", - "contentHash": "3cd0e89a08fd132519d2c0fc3211a6b7e0d16ff5375dec61fbbaa4a05c5a3194", - "functions": [ - { - "name": "makeRecordExecutionCallback", - "params": [ - "store" - ], - "returnType": "JobCompleteCallback", - "exported": true, - "lineCount": 12 - } - ], - "classes": [ - { - "name": "LocalScheduler", - "methods": [ - "constructor", - "getFailCount", - "isDisabled", - "resetFailure", - "start", - "stop", - "isRunning", - "executeJob", - "tick" - ], - "properties": [ - "store", - "executor", - "onJobComplete", - "timer", - "ticking", - "failCounts", - "disabledJobs" - ], - "exported": true, - "lineCount": 125 - } - ], - "imports": [ - { - "source": "@waggle/core", - "specifiers": [ - "CronStore", - "CronSchedule" - ] - }, - { - "source": "./logger.js", - "specifiers": [ - "createLogger" - ] - } - ], - "exports": [ - "makeRecordExecutionCallback", - "LocalScheduler", - "MAX_CONSECUTIVE_FAILURES" - ], - "totalLines": 171, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/data-erase-helpers.ts": { - "filePath": "packages/server/src/local/data-erase-helpers.ts", - "contentHash": "4f3d2077e2f047ed38d11fd8209a238684f93841d32f0554a5147d6f03157f20", - "functions": [ - { - "name": "validateEraseConfirmation", - "params": [ - "headers", - "body" - ], - "returnType": "ConfirmationResult", - "exported": true, - "lineCount": 21 - }, - { - "name": "snapshotDataDir", - "params": [ - "dataDir" - ], - "returnType": "DataDirSnapshot", - "exported": true, - "lineCount": 30 - }, - { - "name": "walkSize", - "params": [ - "dir", - "dataDirRoot" - ], - "returnType": "{ fileCount: number; totalBytes: number }", - "exported": false, - "lineCount": 29 - }, - { - "name": "assertDataDirIsSafeToWipe", - "params": [ - "dataDir" - ], - "returnType": "string | null", - "exported": true, - "lineCount": 30 - }, - { - "name": "writeEraseMarker", - "params": [ - "dataDir", - "marker" - ], - "returnType": "string", - "exported": true, - "lineCount": 5 - }, - { - "name": "readEraseMarker", - "params": [ - "dataDir" - ], - "returnType": "EraseMarker | null", - "exported": true, - "lineCount": 13 - }, - { - "name": "performWipe", - "params": [ - "dataDir", - "marker" - ], - "returnType": "WipeReceipt", - "exported": true, - "lineCount": 71 - }, - { - "name": "writeWipeReceipt", - "params": [ - "dataDir", - "receipt" - ], - "returnType": "string", - "exported": true, - "lineCount": 9 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - } - ], - "exports": [ - "ERASE_CONFIRMATION_PHRASE", - "ERASE_CONFIRMATION_HEADER_VALUE", - "ERASE_MARKER_FILENAME", - "ERASE_RECEIPT_FILENAME_PREFIX", - "validateEraseConfirmation", - "snapshotDataDir", - "assertDataDirIsSafeToWipe", - "writeEraseMarker", - "readEraseMarker", - "performWipe", - "writeWipeReceipt" - ], - "totalLines": 327, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/index.ts": { - "filePath": "packages/server/src/local/index.ts", - "contentHash": "248575d8d965c04f2ba70a922f3bfde65eb1f76d4193bbcc8ff3d77585e9b1c9", - "functions": [ - { - "name": "buildLocalServer", - "params": [ - "config" - ], - "exported": true, - "lineCount": 2267 - } - ], - "classes": [], - "imports": [ - { - "source": "node:crypto", - "specifiers": [ - "crypto" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:url", - "specifiers": [ - "fileURLToPath" - ] - }, - { - "source": "fastify", - "specifiers": [ - "Fastify", - "FastifyInstance" - ] - }, - { - "source": "@fastify/cors", - "specifiers": [ - "cors" - ] - }, - { - "source": "@fastify/static", - "specifiers": [ - "fastifyStatic" - ] - }, - { - "source": "@fastify/websocket", - "specifiers": [ - "websocket" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "MultiMind", - "MultiMindCache", - "WorkspaceManager", - "WaggleConfig", - "createEmbeddingProvider", - "EmbeddingProviderConfig", - "EmbeddingProviderInstance", - "FrameStore", - "SessionStore", - "InstallAuditStore", - "CronStore", - "AwarenessLayer", - "VaultStore", - "SkillHashStore", - "OptimizationLogStore", - "ImprovementSignalStore", - "HarvestSourceStore", - "ClaudeCodeAdapter", - "reconcileIndexes", - "TeamSync", - "TelemetryStore", - "TELEMETRY_EVENTS", - "ExecutionTraceStore", - "EvolutionRunStore", - "ComplianceTemplateStore", - "harvestSetHash", - "WorkspaceConfig" - ] - }, - { - "source": "./cors-config.js", - "specifiers": [ - "corsOriginAllowed" - ] - }, - { - "source": "./storage/index.js", - "specifiers": [ - "getStorageProvider" - ] - }, - { - "source": "./net-config.js", - "specifiers": [ - "resolveBindHost" - ] - }, - { - "source": "./origin-guard.js", - "specifiers": [ - "isLocalRequest" - ] - }, - { - "source": "@waggle/weaver", - "specifiers": [ - "MemoryWeaver" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "Orchestrator", - "createSystemTools", - "createPlanTools", - "createGitTools", - "createDocumentTools", - "createSpreadsheetTools", - "createPresentationTools", - "createPdfTools", - "createSkillTools", - "createSubAgentTools", - "createWorkflowTools", - "runAgentLoop", - "ensureIdentity", - "loadSystemPrompt", - "loadSkills", - "HookRegistry", - "loadHooksFromConfig", - "CostTracker", - "CommandRegistry", - "registerWorkflowCommands", - "registerMarketplaceCommands", - "createCronTools", - "createSearchTools", - "createBrowserTools", - "createLspTools", - "createCliTools", - "createInsightsTools", - "createConnectorSearchTools", - "createCrossWorkspaceTools", - "McpRuntime", - "isWithinBudget", - "getRecentLogs", - "setPersonaDataDir", - "deliverCronResult", - "createDefaultDeliveryPreferences", - "buildActiveBehavioralSpec", - "loadBehavioralSpecOverrides", - "TraceRecorder", - "HarnessTraceBridge", - "ToolDefinition", - "LoadedSkill", - "DeliveryPreferences" - ] - }, - { - "source": "@waggle/sdk", - "specifiers": [ - "PluginRuntimeManager", - "getStarterSkillsDir", - "validatePluginManifest" - ] - }, - { - "source": "@waggle/marketplace", - "specifiers": [ - "MarketplaceDB", - "MarketplaceSync", - "seedMcpServers", - "seedNewSources" - ] - }, - { - "source": "./routes/workspaces.js", - "specifiers": [ - "workspaceRoutes" - ] - }, - { - "source": "./routes/chat.js", - "specifiers": [ - "chatRoutes", - "AgentRunner" - ] - }, - { - "source": "./routes/memory.js", - "specifiers": [ - "memoryRoutes" - ] - }, - { - "source": "./routes/memory-center.js", - "specifiers": [ - "memoryCenterRoutes" - ] - }, - { - "source": "./routes/artifacts.js", - "specifiers": [ - "artifactRoutes" - ] - }, - { - "source": "./routes/settings.js", - "specifiers": [ - "settingsRoutes" - ] - }, - { - "source": "./routes/sessions.js", - "specifiers": [ - "sessionRoutes", - "findUndistilledSessions", - "markSessionDistilled" - ] - }, - { - "source": "./routes/knowledge.js", - "specifiers": [ - "knowledgeRoutes" - ] - }, - { - "source": "./routes/litellm.js", - "specifiers": [ - "litellmRoutes" - ] - }, - { - "source": "./memory-lane-cron.js", - "specifiers": [ - "runMemoryLaneExtraction" - ] - }, - { - "source": "./vector-backfill.js", - "specifiers": [ - "runVectorBackfill" - ] - }, - { - "source": "./routes/ingest.js", - "specifiers": [ - "ingestRoutes", - "readFileRegistry" - ] - }, - { - "source": "./routes/mind.js", - "specifiers": [ - "mindRoutes" - ] - }, - { - "source": "./routes/agent.js", - "specifiers": [ - "agentRoutes" - ] - }, - { - "source": "./routes/skills.js", - "specifiers": [ - "skillRoutes" - ] - }, - { - "source": "./routes/skills-aliases.js", - "specifiers": [ - "skillsAliasRoutes" - ] - }, - { - "source": "./routes/approval.js", - "specifiers": [ - "approvalRoutes" - ] - }, - { - "source": "./routes/anthropic-proxy.js", - "specifiers": [ - "anthropicProxyRoutes" - ] - }, - { - "source": "./routes/team.js", - "specifiers": [ - "teamRoutes" - ] - }, - { - "source": "./routes/tasks.js", - "specifiers": [ - "taskRoutes" - ] - }, - { - "source": "./routes/capabilities.js", - "specifiers": [ - "capabilitiesRoutes" - ] - }, - { - "source": "./routes/tools.js", - "specifiers": [ - "toolsRoutes" - ] - }, - { - "source": "./routes/waggle-dance.js", - "specifiers": [ - "waggleDanceRoutes" - ] - }, - { - "source": "./routes/commands.js", - "specifiers": [ - "commandRoutes" - ] - }, - { - "source": "./routes/command.js", - "specifiers": [ - "commandCenterRoutes" - ] - }, - { - "source": "./routes/home.js", - "specifiers": [ - "homeRoutes" - ] - }, - { - "source": "./routes/onboarding.js", - "specifiers": [ - "onboardingRoutes" - ] - }, - { - "source": "./routes/cron.js", - "specifiers": [ - "cronRoutes" - ] - }, - { - "source": "./routes/notifications.js", - "specifiers": [ - "notificationRoutes", - "emitNotification", - "emitSubagentStatus" - ] - }, - { - "source": "./routes/marketplace-dev.js", - "specifiers": [ - "marketplaceDevRoutes" - ] - }, - { - "source": "./routes/marketplace.js", - "specifiers": [ - "marketplaceRoutes" - ] - }, - { - "source": "./routes/agent-search.js", - "specifiers": [ - "agentSearchRoutes" - ] - }, - { - "source": "./routes/connectors.js", - "specifiers": [ - "connectorRoutes" - ] - }, - { - "source": "./routes/mcps.js", - "specifiers": [ - "mcpRoutes" - ] - }, - { - "source": "./routes/extend.js", - "specifiers": [ - "extendRoutes" - ] - }, - { - "source": "./mcp-config.js", - "specifiers": [ - "populateMcpRuntimeFromConfig" - ] - }, - { - "source": "./marketplace-background-sync.js", - "specifiers": [ - "scheduleMarketplaceBackgroundSync" - ] - }, - { - "source": "./routes/fleet.js", - "specifiers": [ - "fleetRoutes" - ] - }, - { - "source": "./routes/import.js", - "specifiers": [ - "importRoutes" - ] - }, - { - "source": "./routes/vault.js", - "specifiers": [ - "vaultRoutes" - ] - }, - { - "source": "./routes/personas.js", - "specifiers": [ - "personaRoutes" - ] - }, - { - "source": "./routes/feedback.js", - "specifiers": [ - "feedbackRoutes" - ] - }, - { - "source": "./routes/workflows.js", - "specifiers": [ - "workflowRoutes" - ] - }, - { - "source": "./routes/workspace-templates.js", - "specifiers": [ - "workspaceTemplateRoutes" - ] - }, - { - "source": "./routes/evolution.js", - "specifiers": [ - "evolutionRoutes" - ] - }, - { - "source": "./routes/export.js", - "specifiers": [ - "exportRoutes" - ] - }, - { - "source": "./routes/data-erase.js", - "specifiers": [ - "dataEraseRoutes" - ] - }, - { - "source": "./routes/cost.js", - "specifiers": [ - "costRoutes" - ] - }, - { - "source": "./routes/backup.js", - "specifiers": [ - "backupRoutes" - ] - }, - { - "source": "./routes/offline.js", - "specifiers": [ - "offlineRoutes" - ] - }, - { - "source": "./routes/weaver.js", - "specifiers": [ - "weaverRoutes" - ] - }, - { - "source": "./routes/events.js", - "specifiers": [ - "eventRoutes", - "closeAuditDb", - "cleanupAuditEvents" - ] - }, - { - "source": "./routes/team.js", - "specifiers": [ - "closeTeamsDb" - ] - }, - { - "source": "./routes/pins.js", - "specifiers": [ - "pinRoutes" - ] - }, - { - "source": "./routes/documents.js", - "specifiers": [ - "documentRoutes" - ] - }, - { - "source": "./routes/files.js", - "specifiers": [ - "fileRoutes" - ] - }, - { - "source": "./routes/browse.js", - "specifiers": [ - "browseRoutes" - ] - }, - { - "source": "./routes/browser-ext.js", - "specifiers": [ - "browserExtRoutes" - ] - }, - { - "source": "./routes/telegram.js", - "specifiers": [ - "telegramRoutes", - "pushTelegramMessage" - ] - }, - { - "source": "./routes/oauth.js", - "specifiers": [ - "oauthRoutes" - ] - }, - { - "source": "./routes/waggle-signals.js", - "specifiers": [ - "waggleSignalRoutes" - ] - }, - { - "source": "./routes/providers.js", - "specifiers": [ - "providerRoutes" - ] - }, - { - "source": "./routes/profile.js", - "specifiers": [ - "profileRoutes" - ] - }, - { - "source": "./routes/telemetry.js", - "specifiers": [ - "telemetryRoutes" - ] - }, - { - "source": "../stripe/index.js", - "specifiers": [ - "stripeRoutes" - ] - }, - { - "source": "./routes/agent-groups.js", - "specifiers": [ - "agentGroupRoutes" - ] - }, - { - "source": "./routes/agents.js", - "specifiers": [ - "agentEntityRoutes" - ] - }, - { - "source": "./routes/automations.js", - "specifiers": [ - "automationRoutes" - ] - }, - { - "source": "./routes/harvest.js", - "specifiers": [ - "harvestRoutes" - ] - }, - { - "source": "./routes/wiki.js", - "specifiers": [ - "wikiRoutes" - ] - }, - { - "source": "./routes/identity.js", - "specifiers": [ - "identityRoutes" - ] - }, - { - "source": "./routes/agent-run.js", - "specifiers": [ - "agentRunRoutes" - ] - }, - { - "source": "./routes/local-inference.js", - "specifiers": [ - "localInferenceRoutes" - ] - }, - { - "source": "./routes/compliance.js", - "specifiers": [ - "complianceRoutes" - ] - }, - { - "source": "./offline-manager.js", - "specifiers": [ - "OfflineManager" - ] - }, - { - "source": "./logger.js", - "specifiers": [ - "log", - "createLogger" - ] - }, - { - "source": "./setup-crons.js", - "specifiers": [ - "seedDefaultCrons" - ] - }, - { - "source": "./setup-connectors.js", - "specifiers": [ - "registerConnectors" - ] - }, - { - "source": "./security-middleware.js", - "specifiers": [ - "securityMiddleware" - ] - }, - { - "source": "./cron.js", - "specifiers": [ - "LocalScheduler", - "makeRecordExecutionCallback" - ] - }, - { - "source": "./services/evolution-service.js", - "specifiers": [ - "EvolutionService", - "isEvolutionAutoEnabled" - ] - }, - { - "source": "./proactive-handlers.js", - "specifiers": [ - "generateMorningBriefing", - "checkStaleWorkspaces", - "checkPendingTasks", - "suggestCapabilities", - "ProactiveContext", - "ProactiveMessage" - ] - }, - { - "source": "./monthly-assessment.js", - "specifiers": [ - "generateMonthlyAssessment", - "saveAssessmentToMind" - ] - }, - { - "source": "./workspace-sessions.js", - "specifiers": [ - "WorkspaceSessionManager" - ] - }, - { - "source": "node:events", - "specifiers": [ - "EventEmitter" - ] - } - ], - "exports": [ - "buildLocalServer" - ], - "totalLines": 2570, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/lifecycle.ts": { - "filePath": "packages/server/src/local/lifecycle.ts", - "contentHash": "2fb14a1a5cd06e2edab612ed661754c1cbeac455f403c1c220e12833df755aa9", - "functions": [ - { - "name": "getBundledPythonPath", - "params": [], - "returnType": "string | null", - "exported": true, - "lineCount": 16 - }, - { - "name": "checkHealth", - "params": [ - "port" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 8 - }, - { - "name": "getLiteLLMStatus", - "params": [ - "port" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 8 - }, - { - "name": "startLiteLLM", - "params": [ - "port" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 60 - }, - { - "name": "stopLiteLLM", - "params": [], - "returnType": "Promise", - "exported": true, - "lineCount": 6 - } - ], - "classes": [], - "imports": [ - { - "source": "node:child_process", - "specifiers": [ - "spawn", - "ChildProcess" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "existsSync" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:url", - "specifiers": [ - "fileURLToPath" - ] - } - ], - "exports": [ - "getBundledPythonPath", - "getLiteLLMStatus", - "startLiteLLM", - "stopLiteLLM" - ], - "totalLines": 143, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/llm-key-probe.ts": { - "filePath": "packages/server/src/local/llm-key-probe.ts", - "contentHash": "92b29e9313491179db50452a1346376f4a4b07588e4ac577b26d90245e2b970c", - "functions": [ - { - "name": "validateKeyFormat", - "params": [ - "provider", - "apiKey" - ], - "returnType": "{ valid: boolean; error?: string }", - "exported": true, - "lineCount": 35 - }, - { - "name": "hashKey", - "params": [ - "key" - ], - "returnType": "string", - "exported": false, - "lineCount": 8 - }, - { - "name": "_clearKeyProbeCache", - "params": [], - "returnType": "void", - "exported": true, - "lineCount": 3 - }, - { - "name": "probeProviderKey", - "params": [ - "provider", - "apiKey", - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 51 - } - ], - "classes": [], - "imports": [], - "exports": [ - "validateKeyFormat", - "_clearKeyProbeCache", - "probeProviderKey" - ], - "totalLines": 208, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/logger.ts": { - "filePath": "packages/server/src/local/logger.ts", - "contentHash": "f666c9ee9c68fd9c828db08ae592106eee262ddbaa7895bba4a91973ec138660", - "functions": [ - { - "name": "formatMessage", - "params": [ - "tag", - "level", - "msg", - "data" - ], - "returnType": "string", - "exported": false, - "lineCount": 9 - }, - { - "name": "createLogger", - "params": [ - "tag" - ], - "returnType": "Logger", - "exported": true, - "lineCount": 8 - } - ], - "classes": [], - "imports": [], - "exports": [ - "createLogger", - "log" - ], - "totalLines": 46, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/mcp-config.ts": { - "filePath": "packages/server/src/local/mcp-config.ts", - "contentHash": "41ad625e69ce8463112864379fb3421328d767a12902ada537c5bfc4da19e4cc", - "functions": [ - { - "name": "mcpConfigPath", - "params": [ - "dataDir" - ], - "returnType": "string", - "exported": true, - "lineCount": 4 - }, - { - "name": "validateMcpEntry", - "params": [ - "name", - "entry" - ], - "returnType": "string | null", - "exported": true, - "lineCount": 21 - }, - { - "name": "loadMcpConfig", - "params": [ - "dataDir", - "log" - ], - "returnType": "McpConfigFile", - "exported": true, - "lineCount": 24 - }, - { - "name": "writeMcpConfig", - "params": [ - "dataDir", - "config" - ], - "returnType": "void", - "exported": false, - "lineCount": 14 - }, - { - "name": "saveMcpServerEntry", - "params": [ - "dataDir", - "name", - "entry" - ], - "returnType": "void", - "exported": true, - "lineCount": 6 - }, - { - "name": "removeMcpServerEntry", - "params": [ - "dataDir", - "name" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 7 - }, - { - "name": "populateMcpRuntimeFromConfig", - "params": [ - "runtime", - "dataDir", - "log" - ], - "returnType": "{ registered: string[]; skipped: Array<{ name: string; reason: string }> }", - "exported": true, - "lineCount": 42 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "node:crypto", - "specifiers": [ - "randomUUID" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "McpRuntime" - ] - } - ], - "exports": [ - "mcpConfigPath", - "validateMcpEntry", - "loadMcpConfig", - "saveMcpServerEntry", - "removeMcpServerEntry", - "populateMcpRuntimeFromConfig" - ], - "totalLines": 193, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/memory-lane-cron.ts": { - "filePath": "packages/server/src/local/memory-lane-cron.ts", - "contentHash": "47cd7791b35abfad819897279ad5c3fa99c1a625d746bd1f209b4e245d89a5c2", - "functions": [ - { - "name": "getWatermark", - "params": [ - "db" - ], - "returnType": "number", - "exported": false, - "lineCount": 7 - }, - { - "name": "setWatermark", - "params": [ - "db", - "id" - ], - "returnType": "void", - "exported": false, - "lineCount": 5 - }, - { - "name": "runMemoryLaneExtraction", - "params": [ - "db", - "llmCall" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 65 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "FrameStore", - "SessionStore", - "KnowledgeGraph", - "extractMemoryLanes", - "writeMemoryLaneFrames", - "extractKgEntities", - "writeKgEntities", - "LLMCallFn", - "WriteLaneFramesResult" - ] - } - ], - "exports": [ - "runMemoryLaneExtraction" - ], - "totalLines": 131, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/model-availability.ts": { - "filePath": "packages/server/src/local/model-availability.ts", - "contentHash": "495d408e3e2da6708e73df05fed6789e85184173129da85e059f3b08d094e0e2", - "functions": [ - { - "name": "providerForModel", - "params": [ - "model" - ], - "returnType": "string | null", - "exported": false, - "lineCount": 36 - }, - { - "name": "providerIsReady", - "params": [ - "server", - "provider" - ], - "returnType": "boolean", - "exported": false, - "lineCount": 5 - }, - { - "name": "isEmbeddingModel", - "params": [ - "modelId" - ], - "returnType": "boolean", - "exported": false, - "lineCount": 4 - }, - { - "name": "fetchOllamaRoutingModels", - "params": [], - "returnType": "Promise", - "exported": true, - "lineCount": 22 - }, - { - "name": "listOllamaChatModelIds", - "params": [], - "returnType": "Promise", - "exported": true, - "lineCount": 6 - }, - { - "name": "resolveUsableModel", - "params": [ - "server", - "preferredModel" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 14 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - } - ], - "exports": [ - "fetchOllamaRoutingModels", - "listOllamaChatModelIds", - "resolveUsableModel" - ], - "totalLines": 100, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/monthly-assessment.ts": { - "filePath": "packages/server/src/local/monthly-assessment.ts", - "contentHash": "ef6a1c9480b059b7738a34defa1fb1026605ce9130a9af93c1ae18b670e08356", - "functions": [ - { - "name": "computeMonthCorrectionRate", - "params": [ - "db", - "yearMonth" - ], - "returnType": "{ total: number; correctionRate: number }", - "exported": false, - "lineCount": 28 - }, - { - "name": "computePriorMonthCorrectionRate", - "params": [ - "db", - "yearMonth" - ], - "returnType": "number", - "exported": false, - "lineCount": 11 - }, - { - "name": "getTopFeedbackReasons", - "params": [ - "db", - "yearMonth" - ], - "returnType": "{ positiveReasons: string[]; negativeReasons: string[] }", - "exported": false, - "lineCount": 45 - }, - { - "name": "getCapabilityGaps", - "params": [ - "signalStore" - ], - "returnType": "string[]", - "exported": false, - "lineCount": 12 - }, - { - "name": "countSkillsInstalled", - "params": [ - "db", - "yearMonth" - ], - "returnType": "number", - "exported": false, - "lineCount": 22 - }, - { - "name": "generateRecommendation", - "params": [ - "correctionRate", - "trend", - "gaps", - "weaknesses" - ], - "returnType": "string", - "exported": false, - "lineCount": 34 - }, - { - "name": "generateMonthlyAssessment", - "params": [ - "config", - "personalMind", - "periodOverride" - ], - "returnType": "MonthlyAssessment", - "exported": true, - "lineCount": 60 - }, - { - "name": "ensureAssessmentSession", - "params": [ - "personalMind" - ], - "returnType": "string", - "exported": false, - "lineCount": 13 - }, - { - "name": "saveAssessmentToMind", - "params": [ - "personalMind", - "assessment" - ], - "returnType": "void", - "exported": true, - "lineCount": 45 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "OptimizationLogStore", - "FrameStore", - "SessionStore", - "ImprovementSignalStore" - ] - }, - { - "source": "./index.js", - "specifiers": [ - "LocalConfig" - ] - } - ], - "exports": [ - "generateMonthlyAssessment", - "saveAssessmentToMind" - ], - "totalLines": 345, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/net-config.ts": { - "filePath": "packages/server/src/local/net-config.ts", - "contentHash": "d36ac045cd77617b2197c76c9a82386abb392bb0e30c556dd115956c432c38a1", - "functions": [ - { - "name": "resolveBindHost", - "params": [ - "env" - ], - "returnType": "string", - "exported": true, - "lineCount": 4 - }, - { - "name": "isLoopbackBind", - "params": [ - "env" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 3 - } - ], - "classes": [], - "imports": [], - "exports": [ - "resolveBindHost", - "isLoopbackBind" - ], - "totalLines": 33, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/offline-manager.ts": { - "filePath": "packages/server/src/local/offline-manager.ts", - "contentHash": "f793969cb9e63d42420c944cdaeaac7223e91f625128a3c241d76fda3a06995c", - "functions": [], - "classes": [ - { - "name": "OfflineManager", - "methods": [ - "constructor", - "state", - "isOffline", - "lastCheck", - "start", - "stop", - "queueMessage", - "getQueue", - "dequeue", - "clearQueue", - "checkHealth", - "_checkHealth", - "_loadQueue", - "_persistQueue" - ], - "properties": [ - "_offline", - "_since", - "_queue", - "_queuePath", - "_timer", - "_checkIntervalMs", - "_getLlmEndpoint", - "_getLlmApiKey", - "_eventBus", - "_lastCheck" - ], - "exported": true, - "lineCount": 196 - } - ], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:crypto", - "specifiers": [ - "crypto" - ] - }, - { - "source": "node:events", - "specifiers": [ - "EventEmitter" - ] - } - ], - "exports": [ - "OfflineManager" - ], - "totalLines": 235, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/origin-guard.ts": { - "filePath": "packages/server/src/local/origin-guard.ts", - "contentHash": "e2188fdc86f0ec0a0b7718f1b1d88e7ca13f89570b8c0ff40fe7d4d386550865", - "functions": [ - { - "name": "isLocalOrigin", - "params": [ - "raw" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 13 - }, - { - "name": "isLocalRequest", - "params": [ - "request" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 7 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyRequest" - ] - } - ], - "exports": [ - "isLocalOrigin", - "isLocalRequest" - ], - "totalLines": 42, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/persona-tool-filter.ts": { - "filePath": "packages/server/src/local/persona-tool-filter.ts", - "contentHash": "e3e162bc9f2df399c4600431224f80be44cf72bc0f338b9ab9c6f5b2226c4ed6", - "functions": [ - { - "name": "applyPersonaToolFilter", - "params": [ - "tools", - "persona" - ], - "returnType": "ToolDefinition[]", - "exported": true, - "lineCount": 22 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/agent", - "specifiers": [ - "ToolDefinition", - "AgentPersona" - ] - } - ], - "exports": [ - "ALWAYS_AVAILABLE_TOOLS", - "READ_ONLY_WRITE_TOOLS", - "applyPersonaToolFilter" - ], - "totalLines": 78, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/proactive-handlers.ts": { - "filePath": "packages/server/src/local/proactive-handlers.ts", - "contentHash": "a3799da6c231f07ab2bc84c56d0c08342105e55782e83f0ec93cec6342d35699", - "functions": [ - { - "name": "getLastSessionActivity", - "params": [ - "dataDir", - "workspaceId" - ], - "returnType": "Date | null", - "exported": false, - "lineCount": 17 - }, - { - "name": "countPendingAwareness", - "params": [ - "ctx", - "workspaceId" - ], - "returnType": "number", - "exported": false, - "lineCount": 13 - }, - { - "name": "countMemoryFrames", - "params": [ - "ctx", - "workspaceId" - ], - "returnType": "number", - "exported": false, - "lineCount": 11 - }, - { - "name": "countToolSignals", - "params": [ - "ctx" - ], - "returnType": "number", - "exported": false, - "lineCount": 12 - }, - { - "name": "hasInstalledCapabilities", - "params": [ - "dataDir" - ], - "returnType": "boolean", - "exported": false, - "lineCount": 10 - }, - { - "name": "generateMorningBriefing", - "params": [ - "ctx" - ], - "returnType": "ProactiveMessage | null", - "exported": true, - "lineCount": 71 - }, - { - "name": "checkStaleWorkspaces", - "params": [ - "ctx" - ], - "returnType": "ProactiveMessage[]", - "exported": true, - "lineCount": 33 - }, - { - "name": "checkPendingTasks", - "params": [ - "ctx" - ], - "returnType": "ProactiveMessage[]", - "exported": true, - "lineCount": 22 - }, - { - "name": "suggestCapabilities", - "params": [ - "ctx" - ], - "returnType": "ProactiveMessage | null", - "exported": true, - "lineCount": 46 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "WorkspaceManager", - "WorkspaceConfig" - ] - } - ], - "exports": [ - "generateMorningBriefing", - "checkStaleWorkspaces", - "checkPendingTasks", - "suggestCapabilities" - ], - "totalLines": 291, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/agent-groups.ts": { - "filePath": "packages/server/src/local/routes/agent-groups.ts", - "contentHash": "0b842b43a68c590bc8f0ff17a236ea74ad899b63ec6f9bfdc18541054b3a8c4b", - "functions": [ - { - "name": "getGroupsPath", - "params": [ - "dataDir" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "loadGroups", - "params": [ - "dataDir" - ], - "returnType": "AgentGroup[]", - "exported": false, - "lineCount": 7 - }, - { - "name": "saveGroups", - "params": [ - "dataDir", - "groups" - ], - "returnType": "void", - "exported": false, - "lineCount": 3 - }, - { - "name": "agentGroupRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 84 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:crypto", - "specifiers": [ - "crypto" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - } - ], - "exports": [ - "agentGroupRoutes" - ], - "totalLines": 129, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/agent-run.ts": { - "filePath": "packages/server/src/local/routes/agent-run.ts", - "contentHash": "baaf82096df11ca8b39f3ba2c572815b1579b2636311fa1f0ac1a96352ec4198", - "functions": [ - { - "name": "resolveLlmEndpoint", - "params": [ - "server" - ], - "returnType": "{ url: string; apiKey: string }", - "exported": true, - "lineCount": 9 - }, - { - "name": "agentRunRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 210 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "HybridSearch" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "runRetrievalAgentLoop", - "listShapes", - "registerShape", - "claudeGen1V1Shape", - "qwenThinkingGen1V1Shape", - "LlmCallFn", - "LlmCallInput", - "LlmCallResult", - "RetrievalSearchFn" - ] - } - ], - "exports": [ - "resolveLlmEndpoint", - "agentRunRoutes" - ], - "totalLines": 290, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/agent-search.ts": { - "filePath": "packages/server/src/local/routes/agent-search.ts", - "contentHash": "381d1af54b361828e480f7d49e16ba430da9ddff7273ee53513d67efca3bf941", - "functions": [ - { - "name": "tokenizeNeed", - "params": [ - "need" - ], - "returnType": "string[]", - "exported": true, - "lineCount": 5 - }, - { - "name": "scoreConnectors", - "params": [ - "defs", - "need" - ], - "returnType": "AgentSearchCandidate[]", - "exported": true, - "lineCount": 28 - }, - { - "name": "annotateEngineCandidate", - "params": [ - "c", - "marketplaceByName" - ], - "returnType": "AgentSearchCandidate", - "exported": true, - "lineCount": 18 - }, - { - "name": "pickThreeUp", - "params": [ - "all" - ], - "returnType": "AgentSearchPicks", - "exported": true, - "lineCount": 13 - }, - { - "name": "agentSearchRoutes", - "params": [ - "fastify" - ], - "exported": true, - "lineCount": 52 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "searchCapabilities", - "CapabilityCandidate", - "MarketplaceCandidate" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "ConnectorDefinition" - ] - }, - { - "source": "@waggle/marketplace", - "specifiers": [ - "MarketplacePackage" - ] - }, - { - "source": "@waggle/sdk", - "specifiers": [ - "getStarterSkillsDir" - ] - } - ], - "exports": [ - "tokenizeNeed", - "scoreConnectors", - "annotateEngineCandidate", - "pickThreeUp", - "agentSearchRoutes" - ], - "totalLines": 174, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/agent.ts": { - "filePath": "packages/server/src/local/routes/agent.ts", - "contentHash": "b2bf0ad8a939735c9982e48e32ef74f920f26cd688f7dcf05e19ebcebd7d68d2", - "functions": [ - { - "name": "agentRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 122 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - }, - { - "source": "../model-availability.js", - "specifiers": [ - "resolveUsableModel" - ] - } - ], - "exports": [ - "agentRoutes" - ], - "totalLines": 132, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/agents.ts": { - "filePath": "packages/server/src/local/routes/agents.ts", - "contentHash": "51619942e9f1a26896b15561e70268ee6d299606c51437131d6e22eb4ba1f335", - "functions": [ - { - "name": "asAgentType", - "params": [ - "v" - ], - "returnType": "AgentType | undefined", - "exported": false, - "lineCount": 2 - }, - { - "name": "asAutonomy", - "params": [ - "v" - ], - "returnType": "AutonomyLevel | undefined", - "exported": false, - "lineCount": 2 - }, - { - "name": "asRunState", - "params": [ - "v" - ], - "returnType": "AgentRunState | undefined", - "exported": false, - "lineCount": 2 - }, - { - "name": "asScopes", - "params": [ - "v" - ], - "returnType": "Scope[] | undefined", - "exported": false, - "lineCount": 3 - }, - { - "name": "sqliteUtcToIso", - "params": [ - "ts" - ], - "returnType": "string", - "exported": false, - "lineCount": 5 - }, - { - "name": "agentEntityRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 409 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "AgentType", - "AutonomyLevel", - "Scope" - ] - }, - { - "source": "../agents-store.js", - "specifiers": [ - "readAgents", - "addAgent", - "getAgent", - "patchAgent", - "AGENT_RUN_STATES", - "AgentRecord", - "AgentRunState", - "NewAgentInput" - ] - }, - { - "source": "./validate.js", - "specifiers": [ - "assertSafeSegment", - "authHeaders", - "clampStr", - "clampStrArray" - ] - } - ], - "exports": [ - "agentEntityRoutes" - ], - "totalLines": 507, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/anthropic-proxy.ts": { - "filePath": "packages/server/src/local/routes/anthropic-proxy.ts", - "contentHash": "d5e4d448ac1e092a6974e076e44f5e19e3628792511894e84d115a97e0f30ef1", - "functions": [ - { - "name": "mapModel", - "params": [ - "model" - ], - "returnType": "string", - "exported": false, - "lineCount": 24 - }, - { - "name": "anthropicProxyRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 267 - }, - { - "name": "getAnthropicKey", - "params": [ - "server" - ], - "returnType": "string | null", - "exported": false, - "lineCount": 26 - }, - { - "name": "mergeConsecutiveMessages", - "params": [ - "messages" - ], - "returnType": "Array<{ role: string; content: unknown }>", - "exported": false, - "lineCount": 18 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync", - "FastifyInstance" - ] - }, - { - "source": "../cors-config.js", - "specifiers": [ - "validateOrigin" - ] - } - ], - "exports": [ - "anthropicProxyRoutes" - ], - "totalLines": 393, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/approval.ts": { - "filePath": "packages/server/src/local/routes/approval.ts", - "contentHash": "27ab96e117ac52eb295ed00529ebb102bf1debab60fe2eb399d73a9d9fd0a1a7", - "functions": [ - { - "name": "approvalRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 65 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - } - ], - "exports": [ - "approvalRoutes" - ], - "totalLines": 68, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/artifact-index.ts": { - "filePath": "packages/server/src/local/routes/artifact-index.ts", - "contentHash": "e9feceab80e3a726efe2e4f2922b4a52ec9e76a574274dade2f942e0b1378626", - "functions": [ - { - "name": "artifactsFilePath", - "params": [ - "dataDir", - "workspaceId" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "readArtifactIndex", - "params": [ - "dataDir", - "workspaceId" - ], - "returnType": "Artifact[]", - "exported": true, - "lineCount": 13 - }, - { - "name": "writeArtifactIndex", - "params": [ - "dataDir", - "workspaceId", - "artifacts" - ], - "returnType": "void", - "exported": false, - "lineCount": 8 - }, - { - "name": "addArtifact", - "params": [ - "dataDir", - "workspaceId", - "input" - ], - "returnType": "Artifact", - "exported": true, - "lineCount": 14 - }, - { - "name": "getArtifactInWorkspace", - "params": [ - "dataDir", - "workspaceId", - "id" - ], - "returnType": "Artifact | undefined", - "exported": true, - "lineCount": 5 - }, - { - "name": "patchArtifactInWorkspace", - "params": [ - "dataDir", - "workspaceId", - "id", - "patch" - ], - "returnType": "Artifact | undefined", - "exported": true, - "lineCount": 22 - }, - { - "name": "deleteArtifactFromWorkspace", - "params": [ - "dataDir", - "workspaceId", - "id" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 9 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/shared", - "specifiers": [ - "Artifact" - ] - }, - { - "source": "node:crypto", - "specifiers": [ - "randomUUID" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - } - ], - "exports": [ - "readArtifactIndex", - "addArtifact", - "getArtifactInWorkspace", - "patchArtifactInWorkspace", - "deleteArtifactFromWorkspace" - ], - "totalLines": 119, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/artifacts.ts": { - "filePath": "packages/server/src/local/routes/artifacts.ts", - "contentHash": "9efc48f203cb7879bfbca4373688930669db76f0e38d7bbf3e9d3e1473ef8b2f", - "functions": [ - { - "name": "asKind", - "params": [ - "v" - ], - "returnType": "ArtifactKind | undefined", - "exported": false, - "lineCount": 2 - }, - { - "name": "asStatus", - "params": [ - "v" - ], - "returnType": "ArtifactStatus | undefined", - "exported": false, - "lineCount": 2 - }, - { - "name": "clampStr", - "params": [ - "s", - "max" - ], - "returnType": "string", - "exported": false, - "lineCount": 1 - }, - { - "name": "clampStrArray", - "params": [ - "a", - "maxItems", - "maxLen" - ], - "returnType": "string[]", - "exported": false, - "lineCount": 2 - }, - { - "name": "artifactMatches", - "params": [ - "a", - "ql" - ], - "returnType": "boolean", - "exported": false, - "lineCount": 4 - }, - { - "name": "artifactRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 301 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "Artifact", - "ArtifactKind", - "ArtifactStatus", - "Memory", - "RelatedRef", - "RelatedSearchResult" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "FrameStore", - "SessionStore" - ] - }, - { - "source": "./artifact-index.js", - "specifiers": [ - "readArtifactIndex", - "addArtifact", - "getArtifactInWorkspace", - "patchArtifactInWorkspace", - "deleteArtifactFromWorkspace", - "NewArtifactInput" - ] - }, - { - "source": "./memory-center.js", - "specifiers": [ - "normalizeToMemory" - ] - }, - { - "source": "./tasks.js", - "specifiers": [ - "readTasks" - ] - }, - { - "source": "./events.js", - "specifiers": [ - "emitAuditEvent" - ] - }, - { - "source": "./validate.js", - "specifiers": [ - "assertSafeSegment" - ] - } - ], - "exports": [ - "artifactRoutes" - ], - "totalLines": 373, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/automations.ts": { - "filePath": "packages/server/src/local/routes/automations.ts", - "contentHash": "086e97ec2d3948e5dc88fcf5f1608014136d1f5d61cfb6e7ff68fe6c46496cc8", - "functions": [ - { - "name": "sqliteUtcToIso", - "params": [ - "ts" - ], - "returnType": "string", - "exported": false, - "lineCount": 5 - }, - { - "name": "resolveTriggerType", - "params": [ - "trigger" - ], - "returnType": "AutomationTriggerType", - "exported": false, - "lineCount": 5 - }, - { - "name": "resolveCronExpr", - "params": [ - "body" - ], - "returnType": "string | undefined", - "exported": false, - "lineCount": 3 - }, - { - "name": "resolveJobType", - "params": [ - "body" - ], - "returnType": "CronJobType", - "exported": false, - "lineCount": 6 - }, - { - "name": "buildJobConfig", - "params": [ - "body", - "triggerType" - ], - "returnType": "Record", - "exported": false, - "lineCount": 12 - }, - { - "name": "toAutomation", - "params": [ - "row" - ], - "returnType": "Automation", - "exported": false, - "lineCount": 21 - }, - { - "name": "automationRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 292 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "Automation", - "AutomationTriggerType" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "CronExecutionRow", - "CronJobType" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VALID_JOB_TYPES", - "cronExprError" - ] - }, - { - "source": "./validate.js", - "specifiers": [ - "authHeaders", - "clampStr" - ] - } - ], - "exports": [ - "automationRoutes" - ], - "totalLines": 441, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/backup.ts": { - "filePath": "packages/server/src/local/routes/backup.ts", - "contentHash": "11d401ed55128d4d75cd41f8deb8b2d718085f69944209b74504319714b38946", - "functions": [ - { - "name": "enumerateFiles", - "params": [ - "baseDir", - "currentDir" - ], - "returnType": "FileMeta[]", - "exported": true, - "lineCount": 32 - }, - { - "name": "readFileBatch", - "params": [ - "metas" - ], - "returnType": "FileEntry[]", - "exported": false, - "lineCount": 16 - }, - { - "name": "collectFiles", - "params": [ - "baseDir", - "currentDir" - ], - "returnType": "FileEntry[]", - "exported": false, - "lineCount": 4 - }, - { - "name": "encryptArchive", - "params": [ - "data", - "key" - ], - "returnType": "Buffer", - "exported": false, - "lineCount": 9 - }, - { - "name": "decryptArchive", - "params": [ - "data", - "key" - ], - "returnType": "Buffer", - "exported": false, - "lineCount": 16 - }, - { - "name": "getEncryptionKey", - "params": [ - "dataDir" - ], - "returnType": "Buffer | null", - "exported": false, - "lineCount": 11 - }, - { - "name": "backupRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 248 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:crypto", - "specifiers": [ - "* as crypto" - ] - }, - { - "source": "node:zlib", - "specifiers": [ - "* as zlib" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - } - ], - "exports": [ - "backupRoutes", - "MAX_BACKUP_SIZE", - "BATCH_SIZE", - "enumerateFiles" - ], - "totalLines": 440, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/browse-helpers.ts": { - "filePath": "packages/server/src/local/routes/browse-helpers.ts", - "contentHash": "6b948486ea9132251cc989305a96d3f58a30a9fe87623268e9322907d045d957", - "functions": [ - { - "name": "listWindowsDrives", - "params": [ - "existsFn" - ], - "returnType": "BrowseEntry[]", - "exported": true, - "lineCount": 12 - }, - { - "name": "shouldListDrives", - "params": [ - "platform", - "requestedPath" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 8 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - } - ], - "exports": [ - "listWindowsDrives", - "shouldListDrives" - ], - "totalLines": 57, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/browse.ts": { - "filePath": "packages/server/src/local/routes/browse.ts", - "contentHash": "1ad408f174303247d3e85e3c27fde269380b32f3d0821bf02656101a82d7491f", - "functions": [ - { - "name": "browseRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 92 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "./browse-helpers.js", - "specifiers": [ - "listWindowsDrives", - "shouldListDrives", - "BrowseEntry" - ] - }, - { - "source": "../origin-guard.js", - "specifiers": [ - "isLocalRequest" - ] - } - ], - "exports": [ - "browseRoutes" - ], - "totalLines": 113, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/browser-ext.ts": { - "filePath": "packages/server/src/local/routes/browser-ext.ts", - "contentHash": "4f4a380bc09f629aef95c8e5ea24dc2a96bb76e2b368eab3e19c416ce289393c", - "functions": [ - { - "name": "browserExtRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 11 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - } - ], - "exports": [ - "browserExtRoutes" - ], - "totalLines": 26, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/capabilities.ts": { - "filePath": "packages/server/src/local/routes/capabilities.ts", - "contentHash": "7b9b93e8459ed60ac101132bdd341d79ad1416924432ef3b5ef16638e61b3690", - "functions": [ - { - "name": "capabilitiesRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 138 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "listWorkflowTemplates", - "WORKFLOW_TEMPLATES" - ] - } - ], - "exports": [ - "capabilitiesRoutes" - ], - "totalLines": 146, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/chat-context.ts": { - "filePath": "packages/server/src/local/routes/chat-context.ts", - "contentHash": "dd2a9831a13fdd927628916d729709cce4bc04741fae55afb481be8ee4c0a4e2", - "functions": [ - { - "name": "applyContextWindow", - "params": [ - "fullHistory", - "maxMessages" - ], - "returnType": "Array<{ role: string; content: string }>", - "exported": true, - "lineCount": 19 - }, - { - "name": "summarizeDroppedContext", - "params": [ - "messages" - ], - "returnType": "string", - "exported": true, - "lineCount": 43 - }, - { - "name": "buildSkillPromptSection", - "params": [ - "skills" - ], - "returnType": "string", - "exported": true, - "lineCount": 16 - } - ], - "classes": [], - "imports": [], - "exports": [ - "MAX_CONTEXT_MESSAGES", - "applyContextWindow", - "summarizeDroppedContext", - "buildSkillPromptSection" - ], - "totalLines": 102, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/chat-governance.ts": { - "filePath": "packages/server/src/local/routes/chat-governance.ts", - "contentHash": "165e5296f32ff86829c2930358e10ddeb6531400e01f763658507abe2d059b48", - "functions": [ - { - "name": "getGovernancePermissions", - "params": [ - "dataDir", - "workspaceId", - "teamRole" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 36 - }, - { - "name": "extractRolePolicy", - "params": [ - "permissions", - "teamRole" - ], - "returnType": "GovernancePolicies | undefined", - "exported": false, - "lineCount": 13 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/core", - "specifiers": [ - "WaggleConfig" - ] - } - ], - "exports": [ - "getGovernancePermissions" - ], - "totalLines": 77, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/chat-helpers.ts": { - "filePath": "packages/server/src/local/routes/chat-helpers.ts", - "contentHash": "942e213534defe01a8b78012cf21c732b1990144fa3f6f6e747480acbebbfa16", - "functions": [ - { - "name": "isRegulatedContent", - "params": [ - "content", - "personaId" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 12 - }, - { - "name": "isRetryableError", - "params": [ - "err" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 12 - }, - { - "name": "isAmbiguousMessage", - "params": [ - "text" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 25 - }, - { - "name": "shouldSuggestSchedule", - "params": [ - "responseText", - "toolsUsed" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 5 - }, - { - "name": "describeToolUse", - "params": [ - "name", - "input" - ], - "returnType": "string", - "exported": true, - "lineCount": 100 - } - ], - "classes": [], - "imports": [], - "exports": [ - "isRegulatedContent", - "isRetryableError", - "ACTION_VERBS", - "ACTION_VERB_PATTERN", - "isAmbiguousMessage", - "shouldSuggestSchedule", - "SCHEDULE_SUGGESTION", - "AMBIGUITY_PROMPT", - "describeToolUse" - ], - "totalLines": 206, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/chat-persistence.ts": { - "filePath": "packages/server/src/local/routes/chat-persistence.ts", - "contentHash": "c2a97126134a24da15a32b93e0d84ea90436a00dfef26fa8579675d5fd3f99d7", - "functions": [ - { - "name": "persistMessage", - "params": [ - "dataDir", - "workspaceId", - "sessionId", - "msg" - ], - "returnType": "void", - "exported": true, - "lineCount": 21 - }, - { - "name": "loadSessionMessages", - "params": [ - "dataDir", - "workspaceId", - "sessionId" - ], - "returnType": "Array<{ role: string; content: string }>", - "exported": true, - "lineCount": 26 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - } - ], - "exports": [ - "persistMessage", - "loadSessionMessages" - ], - "totalLines": 67, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/chat.ts": { - "filePath": "packages/server/src/local/routes/chat.ts", - "contentHash": "6d8c2d20feb0a468d309455822c47e9a0c6f1af9eab0ce67223c2433c97cf76d", - "functions": [ - { - "name": "resolvePersona", - "params": [ - "id" - ], - "exported": false, - "lineCount": 3 - }, - { - "name": "chatRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 1716 - } - ], - "classes": [], - "imports": [ - { - "source": "node:crypto", - "specifiers": [ - "crypto" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - }, - { - "source": "../logger.js", - "specifiers": [ - "createLogger" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "runAgentLoop", - "needsConfirmation", - "needsConfirmationWithAutonomy", - "classifyGatedToolRisk", - "CapabilityRouter", - "analyzeAndRecordCorrection", - "recordCapabilityGap", - "assessTrust", - "formatTrustSummary", - "scanForInjection", - "AGENT_LOOP_REROUTE_PREFIX", - "extractEntities", - "IterationBudget", - "routeMessage", - "compressConversation", - "createDefaultCompressionConfig", - "CredentialPool", - "loadCredentialPool", - "extractStatusCode", - "filterAvailableTools", - "shouldSuggestCapture", - "planSkillDistillation", - "TraceRecorder", - "generateTurnId", - "logTurnEvent", - "checkGrounding", - "TraceHandle" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "AgentLoopConfig", - "AgentResponse", - "Orchestrator", - "AutonomyLevel" - ] - }, - { - "source": "../workspace-sessions.js", - "specifiers": [ - "WorkspaceSession" - ] - }, - { - "source": "./workspace-context.js", - "specifiers": [ - "buildWorkspaceNowBlock", - "formatWorkspaceNowPrompt" - ] - }, - { - "source": "../workspace-state.js", - "specifiers": [ - "formatWorkspaceStatePrompt" - ] - }, - { - "source": "./notifications.js", - "specifiers": [ - "emitNotification" - ] - }, - { - "source": "./waggle-signals.js", - "specifiers": [ - "emitWaggleSignal" - ] - }, - { - "source": "./events.js", - "specifiers": [ - "emitAuditEvent" - ] - }, - { - "source": "../services/optimizer-service.js", - "specifiers": [ - "getOptimizerService" - ] - }, - { - "source": "../cors-config.js", - "specifiers": [ - "validateOrigin" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "listPersonas", - "composePersonaPrompt", - "BEHAVIORAL_SPEC", - "isEnabled", - "detectTaskShape", - "AssembledPrompt" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "TeamSync", - "WaggleConfig" - ] - }, - { - "source": "./chat-helpers.js", - "specifiers": [ - "isRegulatedContent", - "isRetryableError", - "isAmbiguousMessage", - "shouldSuggestSchedule", - "SCHEDULE_SUGGESTION", - "AMBIGUITY_PROMPT", - "describeToolUse" - ] - }, - { - "source": "./chat-persistence.js", - "specifiers": [ - "persistMessage", - "loadSessionMessages" - ] - }, - { - "source": "./chat-context.js", - "specifiers": [ - "MAX_CONTEXT_MESSAGES", - "applyContextWindow", - "buildSkillPromptSection" - ] - }, - { - "source": "./chat-governance.js", - "specifiers": [ - "getGovernancePermissions" - ] - }, - { - "source": "../persona-tool-filter.js", - "specifiers": [ - "applyPersonaToolFilter" - ] - }, - { - "source": "./validate.js", - "specifiers": [ - "assertSafeSegment" - ] - }, - { - "source": "../model-availability.js", - "specifiers": [ - "resolveUsableModel" - ] - } - ], - "exports": [ - "isAmbiguousMessage", - "shouldSuggestSchedule", - "MAX_CONTEXT_MESSAGES", - "applyContextWindow", - "buildSkillPromptSection", - "chatRoutes" - ], - "totalLines": 1772, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/command.ts": { - "filePath": "packages/server/src/local/routes/command.ts", - "contentHash": "c9b097eef52bb446f61d87d0cd430c4bf92af762e6a5f7f6398db465d6dce7e4", - "functions": [ - { - "name": "loadSkillsCached", - "params": [ - "waggleHome" - ], - "returnType": "LoadedSkill[]", - "exported": false, - "lineCount": 7 - }, - { - "name": "safeFederate", - "params": [ - "label", - "fn", - "log" - ], - "returnType": "T[]", - "exported": false, - "lineCount": 9 - }, - { - "name": "toSubtitle", - "params": [ - "content", - "max" - ], - "returnType": "string", - "exported": false, - "lineCount": 4 - }, - { - "name": "commandRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 203 - } - ], - "classes": [], - "imports": [ - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "CommandResult", - "Command" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "Orchestrator", - "LoadedSkill" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "loadSkills" - ] - }, - { - "source": "./workspace-context.js", - "specifiers": [ - "buildWorkspaceNowBlock", - "formatWorkspaceNowPrompt" - ] - }, - { - "source": "./session-utils.js", - "specifiers": [ - "searchSessions" - ] - } - ], - "exports": [ - "commandRoutes" - ], - "totalLines": 271, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/commands.ts": { - "filePath": "packages/server/src/local/routes/commands.ts", - "contentHash": "a0617837b06174d1cb8aa0e864cc62b1908e169c56605bb9ebe9771f96b7e881", - "functions": [ - { - "name": "commandRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 72 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "Orchestrator" - ] - }, - { - "source": "./workspace-context.js", - "specifiers": [ - "buildWorkspaceNowBlock", - "formatWorkspaceNowPrompt" - ] - } - ], - "exports": [ - "commandRoutes" - ], - "totalLines": 88, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/compliance.ts": { - "filePath": "packages/server/src/local/routes/compliance.ts", - "contentHash": "c0b836221b4bca761b82aef7888551d1fbc88a290cc15cd3ddbbb14cf4ce522c", - "functions": [ - { - "name": "extractPdfOverrides", - "params": [ - "body" - ], - "returnType": "PdfTemplateOverrides | undefined", - "exported": false, - "lineCount": 12 - }, - { - "name": "complianceRoutes", - "params": [ - "fastify" - ], - "exported": true, - "lineCount": 238 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "zod", - "specifiers": [ - "z" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "InteractionStore", - "ComplianceStatusChecker", - "ReportGenerator", - "HarvestSourceStore", - "ComplianceTemplateStore", - "RecordInteractionInput", - "AuditReportRequest", - "CreateComplianceTemplateInput", - "UpdateComplianceTemplateInput", - "AIActRiskLevel" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "renderComplianceReportPdf", - "PdfTemplateOverrides" - ] - } - ], - "exports": [ - "complianceRoutes" - ], - "totalLines": 313, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/connectors.ts": { - "filePath": "packages/server/src/local/routes/connectors.ts", - "contentHash": "99a58b4b252711ef9490adbd7f973788449c878be7172ef65f01778c7fa94f62", - "functions": [ - { - "name": "connectorCapExceeded", - "params": [ - "tier", - "connectedIds", - "id" - ], - "returnType": "{ limit: number; current: number } | null", - "exported": true, - "lineCount": 11 - }, - { - "name": "lastSyncKey", - "params": [ - "id" - ], - "exported": false, - "lineCount": 1 - }, - { - "name": "oauthProviderFor", - "params": [ - "id" - ], - "exported": false, - "lineCount": 1 - }, - { - "name": "connectorRoutes", - "params": [ - "fastify" - ], - "exported": true, - "lineCount": 280 - } - ], - "classes": [], - "imports": [ - { - "source": "fs", - "specifiers": [ - "existsSync", - "readFileSync" - ] - }, - { - "source": "path", - "specifiers": [ - "join" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "ConnectorHealth" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "getCapabilities", - "parseTier", - "Tier" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "RecordAuditInput" - ] - } - ], - "exports": [ - "connectorCapExceeded", - "connectorRoutes" - ], - "totalLines": 327, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/cost.ts": { - "filePath": "packages/server/src/local/routes/cost.ts", - "contentHash": "59f5a85cea990a7f2a2fc7090d5c0a89468b3ddafcc8d4e275cd66e9c6a22c90", - "functions": [ - { - "name": "startOfDayUTC", - "params": [ - "date" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "lastNDays", - "params": [ - "n" - ], - "returnType": "string[]", - "exported": false, - "lineCount": 10 - }, - { - "name": "filterByDays", - "params": [ - "entries", - "days" - ], - "returnType": "UsageEntryLike[]", - "exported": false, - "lineCount": 6 - }, - { - "name": "estimateCost", - "params": [ - "input", - "output" - ], - "returnType": "number", - "exported": false, - "lineCount": 3 - }, - { - "name": "costRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 206 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - }, - { - "source": "../../middleware/assert-tier.js", - "specifiers": [ - "requireTier" - ] - } - ], - "exports": [ - "costRoutes" - ], - "totalLines": 271, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/cron.ts": { - "filePath": "packages/server/src/local/routes/cron.ts", - "contentHash": "570989ef40b36851932b2a60b10a39b10ebdc0bf6129500903503bcbf0f49f11", - "functions": [ - { - "name": "parseJobConfig", - "params": [ - "scheduleId", - "raw" - ], - "returnType": "Record", - "exported": false, - "lineCount": 12 - }, - { - "name": "toResponse", - "params": [ - "s" - ], - "exported": false, - "lineCount": 14 - }, - { - "name": "cronRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 161 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "CronSchedule", - "CronJobType" - ] - }, - { - "source": "./notifications.js", - "specifiers": [ - "emitNotification" - ] - } - ], - "exports": [ - "cronRoutes" - ], - "totalLines": 217, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/data-erase.ts": { - "filePath": "packages/server/src/local/routes/data-erase.ts", - "contentHash": "c2ccc7b08150aba6cd760374cedf3ea448b1037e476fc6879b0435ff39aa28dc", - "functions": [ - { - "name": "dataEraseRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 81 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - }, - { - "source": "../data-erase-helpers.js", - "specifiers": [ - "validateEraseConfirmation", - "snapshotDataDir", - "assertDataDirIsSafeToWipe", - "writeEraseMarker", - "ERASE_CONFIRMATION_PHRASE", - "ERASE_CONFIRMATION_HEADER_VALUE", - "EraseMarker" - ] - }, - { - "source": "./events.js", - "specifiers": [ - "emitAuditEvent" - ] - } - ], - "exports": [ - "dataEraseRoutes" - ], - "totalLines": 113, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/documents.ts": { - "filePath": "packages/server/src/local/routes/documents.ts", - "contentHash": "91e2e27856cf7d2b632262a71ab05c483d17cb380b8d3f40ae488499eae71fef", - "functions": [ - { - "name": "documentsFilePath", - "params": [ - "workspaceId" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "readRegistry", - "params": [ - "workspaceId" - ], - "returnType": "DocumentsRegistry", - "exported": false, - "lineCount": 12 - }, - { - "name": "writeRegistry", - "params": [ - "workspaceId", - "registry" - ], - "returnType": "void", - "exported": false, - "lineCount": 8 - }, - { - "name": "documentRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 77 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "./validate.js", - "specifiers": [ - "assertSafeSegment" - ] - } - ], - "exports": [ - "documentRoutes" - ], - "totalLines": 141, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/events.ts": { - "filePath": "packages/server/src/local/routes/events.ts", - "contentHash": "0d29d85bf54abf6e57d672f0e7c0e09fac68edad4d8c4414813d855cb6a1401e", - "functions": [ - { - "name": "getAuditDb", - "params": [ - "dataDir" - ], - "returnType": "Database.Database", - "exported": true, - "lineCount": 35 - }, - { - "name": "emitAuditEvent", - "params": [ - "server", - "event" - ], - "returnType": "void", - "exported": true, - "lineCount": 73 - }, - { - "name": "cleanupAuditEvents", - "params": [ - "dataDir", - "retentionDays" - ], - "returnType": "number", - "exported": true, - "lineCount": 10 - }, - { - "name": "closeAuditDb", - "params": [], - "returnType": "void", - "exported": true, - "lineCount": 6 - }, - { - "name": "eventRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 157 - }, - { - "name": "normalizeEvent", - "params": [ - "raw" - ], - "returnType": "Record", - "exported": false, - "lineCount": 17 - }, - { - "name": "tryParse", - "params": [ - "json" - ], - "returnType": "unknown", - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync", - "FastifyInstance" - ] - }, - { - "source": "better-sqlite3", - "specifiers": [ - "Database" - ] - }, - { - "source": "../cors-config.js", - "specifiers": [ - "validateOrigin" - ] - } - ], - "exports": [ - "getAuditDb", - "emitAuditEvent", - "cleanupAuditEvents", - "closeAuditDb", - "eventRoutes" - ], - "totalLines": 376, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/evolution.ts": { - "filePath": "packages/server/src/local/routes/evolution.ts", - "contentHash": "71b365ced8ea3d42ad810bfa2d18a081c36cebe142baa6d2ec1f6aaa239673de", - "functions": [ - { - "name": "deployFromRun", - "params": [ - "dataDir", - "run" - ], - "returnType": "{ path: string }", - "exported": false, - "lineCount": 32 - }, - { - "name": "evolutionRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 441 - }, - { - "name": "validateRunBody", - "params": [ - "body" - ], - "returnType": "ValidationOk | ValidationErr", - "exported": false, - "lineCount": 35 - }, - { - "name": "defaultSchemaBaseline", - "params": [ - "kind" - ], - "returnType": "Schema", - "exported": false, - "lineCount": 22 - }, - { - "name": "buildEvolutionLLM", - "params": [ - "apiKey", - "logger" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 30 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "EvolutionRun", - "EvolutionRunStatus" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "EvolutionOrchestrator", - "LLMJudge", - "deployPersonaOverride", - "deployBehavioralSpecOverride", - "createAnthropicEvolutionLLM", - "buildJudgeLLMCall", - "buildGEPAMutateFn", - "buildSchemaExecuteFn", - "makeRunningJudge", - "listPersonas", - "getPersona", - "BEHAVIORAL_SPEC", - "BEHAVIORAL_SPEC_SECTIONS", - "BehavioralSpecSection", - "EvolutionLLM", - "Schema", - "SchemaBaselineInput", - "EvolutionTarget", - "GateOptions" - ] - }, - { - "source": "../logger.js", - "specifiers": [ - "createLogger" - ] - } - ], - "exports": [ - "evolutionRoutes" - ], - "totalLines": 662, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/export.ts": { - "filePath": "packages/server/src/local/routes/export.ts", - "contentHash": "14f752467712c93847b0044fe5ec6938b69977d3ddcea083876ade66891f58c7", - "functions": [ - { - "name": "maskApiKey", - "params": [ - "key" - ], - "returnType": "string", - "exported": false, - "lineCount": 4 - }, - { - "name": "exportRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 194 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:stream", - "specifiers": [ - "PassThrough" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - }, - { - "source": "archiver", - "specifiers": [ - "archiver" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "FrameStore", - "MindDB", - "WaggleConfig" - ] - }, - { - "source": "./sessions.js", - "specifiers": [ - "exportSessionToMarkdown" - ] - }, - { - "source": "./events.js", - "specifiers": [ - "emitAuditEvent" - ] - } - ], - "exports": [ - "exportRoutes" - ], - "totalLines": 220, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/extend.ts": { - "filePath": "packages/server/src/local/routes/extend.ts", - "contentHash": "7a7f7773f1a99aaff6152bb6fc44e1340198ca4978c624e89f456a08f3fd633e", - "functions": [ - { - "name": "toAuditResponse", - "params": [ - "e" - ], - "exported": false, - "lineCount": 15 - }, - { - "name": "extendRoutes", - "params": [ - "fastify" - ], - "exported": true, - "lineCount": 71 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "EXTENSION_TYPES", - "ExtensionType" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "AuditCapabilityType", - "InstallAuditEntry" - ] - }, - { - "source": "./validate.js", - "specifiers": [ - "authHeaders" - ] - } - ], - "exports": [ - "extendRoutes" - ], - "totalLines": 118, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/feedback.ts": { - "filePath": "packages/server/src/local/routes/feedback.ts", - "contentHash": "a1d60bbd15ab341da71b86b267e4b3358145117dba9e7ca7787ec4560939e2b4", - "functions": [ - { - "name": "ensureFeedbackTable", - "params": [ - "db" - ], - "returnType": "void", - "exported": false, - "lineCount": 21 - }, - { - "name": "feedbackRoutes", - "params": [ - "fastify" - ], - "exported": true, - "lineCount": 124 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - } - ], - "exports": [ - "feedbackRoutes" - ], - "totalLines": 185, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/files.ts": { - "filePath": "packages/server/src/local/routes/files.ts", - "contentHash": "1f8ded870a149a8ffaf711547faecf2e0bd1414e2f4df9c998b4586b4bcfbec3", - "functions": [ - { - "name": "errMessage", - "params": [ - "err" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "errCode", - "params": [ - "err" - ], - "returnType": "string | undefined", - "exported": false, - "lineCount": 7 - }, - { - "name": "resolveWorkspace", - "params": [ - "server", - "workspaceId" - ], - "exported": false, - "lineCount": 18 - }, - { - "name": "resolveIndexer", - "params": [ - "server", - "workspaceId" - ], - "returnType": "FileIndexer | null", - "exported": false, - "lineCount": 9 - }, - { - "name": "safeIndex", - "params": [ - "indexer", - "op" - ], - "returnType": "void", - "exported": false, - "lineCount": 11 - }, - { - "name": "fileRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 248 - }, - { - "name": "getRawBody", - "params": [ - "request", - "maxBytes" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 51 - }, - { - "name": "parseMultipart", - "params": [ - "body", - "boundary" - ], - "returnType": "{ filename?: string; targetDir?: string; fileData?: Buffer }", - "exported": false, - "lineCount": 43 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyInstance", - "FastifyRequest", - "FastifyReply" - ] - }, - { - "source": "../storage/index.js", - "specifiers": [ - "getStorageProvider", - "MAX_UPLOAD_SIZE" - ] - }, - { - "source": "../utils/mime.js", - "specifiers": [ - "lookup" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "FileIndexer" - ] - } - ], - "exports": [ - "fileRoutes", - "MAX_BODY_BYTES_EXCEEDED", - "getRawBody" - ], - "totalLines": 449, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/fleet.ts": { - "filePath": "packages/server/src/local/routes/fleet.ts", - "contentHash": "64bbd7c5cb88ffe537e86793ec82690a9fde083da12dea39319a568dc7c055d1", - "functions": [ - { - "name": "fleetRoutes", - "params": [ - "fastify" - ], - "exported": true, - "lineCount": 285 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "parseTier", - "getCapabilities" - ] - }, - { - "source": "../../middleware/assert-tier.js", - "specifiers": [ - "requireTier" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "runAgentLoop", - "isEnabled", - "detectTaskShape", - "listPersonas" - ] - }, - { - "source": "./waggle-signals.js", - "specifiers": [ - "emitWaggleSignal" - ] - }, - { - "source": "./chat-persistence.js", - "specifiers": [ - "persistMessage" - ] - }, - { - "source": "../logger.js", - "specifiers": [ - "createLogger" - ] - } - ], - "exports": [ - "fleetRoutes" - ], - "totalLines": 301, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/harvest-classify.ts": { - "filePath": "packages/server/src/local/routes/harvest-classify.ts", - "contentHash": "acea83d32c25285ed1a0d7e58fe51fdefbeacbf832b316625b4abd6ebc2dc022", - "functions": [ - { - "name": "importItemTypeToMemoryKind", - "params": [ - "type" - ], - "returnType": "MemoryKind", - "exported": true, - "lineCount": 3 - }, - { - "name": "harvestConfidence", - "params": [ - "item" - ], - "returnType": "number", - "exported": true, - "lineCount": 5 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/core", - "specifiers": [ - "ImportItemType", - "UniversalImportItem" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "MemoryKind" - ] - } - ], - "exports": [ - "importItemTypeToMemoryKind", - "harvestConfidence" - ], - "totalLines": 71, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/harvest.ts": { - "filePath": "packages/server/src/local/routes/harvest.ts", - "contentHash": "0c2120b003edd5ab970df380d802fdd14284420a8c93257c7f8b6ddcbf7234ce", - "functions": [ - { - "name": "isIsoTimestamp", - "params": [ - "value" - ], - "returnType": "boolean", - "exported": false, - "lineCount": 6 - }, - { - "name": "getHarvestCacheDir", - "params": [ - "dataDir" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "writeHarvestCache", - "params": [ - "dataDir", - "cacheKey", - "data" - ], - "returnType": "string", - "exported": true, - "lineCount": 14 - }, - { - "name": "readHarvestCache", - "params": [ - "file" - ], - "returnType": "unknown | null", - "exported": true, - "lineCount": 13 - }, - { - "name": "deleteHarvestCache", - "params": [ - "file" - ], - "returnType": "void", - "exported": false, - "lineCount": 4 - }, - { - "name": "escapeXml", - "params": [ - "s" - ], - "returnType": "string", - "exported": true, - "lineCount": 8 - }, - { - "name": "extractJsonObject", - "params": [ - "text" - ], - "returnType": "unknown | null", - "exported": true, - "lineCount": 42 - }, - { - "name": "getAdapter", - "params": [ - "source" - ], - "returnType": "SourceAdapter", - "exported": false, - "lineCount": 9 - }, - { - "name": "isFilesystemAdapter", - "params": [ - "adapter" - ], - "exported": false, - "lineCount": 3 - }, - { - "name": "getDefaultLocalDir", - "params": [ - "source" - ], - "returnType": "string | null", - "exported": false, - "lineCount": 6 - }, - { - "name": "isScanLocalRequest", - "params": [ - "data" - ], - "returnType": "boolean", - "exported": false, - "lineCount": 6 - }, - { - "name": "emitHarvestProgress", - "params": [ - "data" - ], - "exported": false, - "lineCount": 6 - }, - { - "name": "harvestRoutes", - "params": [ - "fastify" - ], - "exported": true, - "lineCount": 655 - }, - { - "name": "countByField", - "params": [ - "items", - "field" - ], - "returnType": "Record", - "exported": false, - "lineCount": 8 - }, - { - "name": "isValidSuggestionShape", - "params": [ - "x" - ], - "exported": true, - "lineCount": 12 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:crypto", - "specifiers": [ - "randomUUID" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "HarvestSourceStore", - "HarvestRunStore", - "ChatGPTAdapter", - "ClaudeAdapter", - "ClaudeCodeAdapter", - "GeminiAdapter", - "UniversalAdapter", - "harvestSetHash", - "ImportSourceType", - "UniversalImportItem", - "SourceAdapter", - "FilesystemAdapter", - "resolveRelativeDate", - "HARVEST_FRAME_CONTENT_CAP", - "writeRawTurnFrames" - ] - }, - { - "source": "./profile.js", - "specifiers": [ - "loadProfile", - "saveProfile", - "IdentitySuggestion" - ] - }, - { - "source": "./harvest-classify.js", - "specifiers": [ - "importItemTypeToMemoryKind", - "harvestConfidence" - ] - } - ], - "exports": [ - "writeHarvestCache", - "readHarvestCache", - "escapeXml", - "extractJsonObject", - "harvestRoutes", - "MIN_SUGGESTION_CONFIDENCE", - "isValidSuggestionShape" - ], - "totalLines": 918, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/home.ts": { - "filePath": "packages/server/src/local/routes/home.ts", - "contentHash": "6f21c1411fa2bc75f69049d9a306c310b0ad07667cb7ae8388ad6160da880544", - "functions": [ - { - "name": "resolveRankTimestamp", - "params": [ - "ws" - ], - "returnType": "{ ts: number; iso: string }", - "exported": false, - "lineCount": 9 - }, - { - "name": "personalizeGreeting", - "params": [ - "greeting", - "name" - ], - "returnType": "string", - "exported": true, - "lineCount": 6 - }, - { - "name": "applyPriorityRanking", - "params": [ - "rankedCards" - ], - "returnType": "RecentWorkspaceCard[]", - "exported": true, - "lineCount": 10 - }, - { - "name": "readAuditCounts", - "params": [ - "dataDir", - "fromIso", - "toIso" - ], - "returnType": "{ consolidated: number; artifactsCreated: number }", - "exported": false, - "lineCount": 35 - }, - { - "name": "homeRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 279 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "FrameStore", - "IdentityLayer" - ] - }, - { - "source": "./memory-center.js", - "specifiers": [ - "normalizeToMemory" - ] - }, - { - "source": "../workspace-state.js", - "specifiers": [ - "buildWorkspaceState" - ] - }, - { - "source": "./workspace-context.js", - "specifiers": [ - "buildTimeAwareGreeting", - "buildUpcomingSchedules", - "CronScheduleLike" - ] - }, - { - "source": "./events.js", - "specifiers": [ - "getAuditDb" - ] - }, - { - "source": "../logger.js", - "specifiers": [ - "createLogger" - ] - } - ], - "exports": [ - "personalizeGreeting", - "applyPriorityRanking", - "homeRoutes" - ], - "totalLines": 505, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/identity.ts": { - "filePath": "packages/server/src/local/routes/identity.ts", - "contentHash": "28007ea0af6dfaf9a3ea1234624ad585b18e78acfc230497570b1c1bb08cdc60", - "functions": [ - { - "name": "placeholder", - "params": [ - "note" - ], - "returnType": "IdentityResponseShape", - "exported": false, - "lineCount": 14 - }, - { - "name": "identityRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 118 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "IdentityLayer" - ] - } - ], - "exports": [ - "identityRoutes" - ], - "totalLines": 161, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/import.ts": { - "filePath": "packages/server/src/local/routes/import.ts", - "contentHash": "18bee0f0ca8647487b629963d4873f0a94407110e962e870c24bb39025e40d63", - "functions": [ - { - "name": "importRoutes", - "params": [ - "fastify" - ], - "exported": true, - "lineCount": 66 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "processImport", - "FrameStore", - "ImportSource" - ] - } - ], - "exports": [ - "importRoutes" - ], - "totalLines": 70, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/ingest.ts": { - "filePath": "packages/server/src/local/routes/ingest.ts", - "contentHash": "c1b75f628a050cab82b4e7deb25498e6a4d9f10e1ddbf12e11a56e4c04548b7a", - "functions": [ - { - "name": "extOf", - "params": [ - "name" - ], - "returnType": "string", - "exported": false, - "lineCount": 6 - }, - { - "name": "categoryOf", - "params": [ - "ext" - ], - "returnType": "FileCategory", - "exported": false, - "lineCount": 3 - }, - { - "name": "isValidBase64", - "params": [ - "str" - ], - "returnType": "boolean", - "exported": false, - "lineCount": 3 - }, - { - "name": "parseCsvLine", - "params": [ - "line" - ], - "returnType": "string[]", - "exported": false, - "lineCount": 19 - }, - { - "name": "readFileRegistry", - "params": [ - "dataDir", - "workspaceId" - ], - "returnType": "FileRegistryEntry[]", - "exported": true, - "lineCount": 14 - }, - { - "name": "addToFileRegistry", - "params": [ - "dataDir", - "workspaceId", - "entry" - ], - "returnType": "void", - "exported": false, - "lineCount": 6 - }, - { - "name": "processImage", - "params": [ - "name", - "ext", - "b64" - ], - "returnType": "IngestFileResult", - "exported": false, - "lineCount": 9 - }, - { - "name": "processPdf", - "params": [ - "name", - "b64" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 22 - }, - { - "name": "processDocx", - "params": [ - "name", - "b64" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 21 - }, - { - "name": "processPptx", - "params": [ - "name", - "b64" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 38 - }, - { - "name": "tryLoadAdmZip", - "params": [], - "returnType": "Promise", - "exported": false, - "lineCount": 8 - }, - { - "name": "processXlsx", - "params": [ - "name", - "b64" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 41 - }, - { - "name": "processCsv", - "params": [ - "name", - "b64" - ], - "returnType": "IngestFileResult", - "exported": false, - "lineCount": 12 - }, - { - "name": "processText", - "params": [ - "name", - "ext", - "b64" - ], - "returnType": "IngestFileResult", - "exported": false, - "lineCount": 11 - }, - { - "name": "processZip", - "params": [ - "name", - "b64" - ], - "returnType": "IngestFileResult", - "exported": false, - "lineCount": 36 - }, - { - "name": "processFile", - "params": [ - "input" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 19 - }, - { - "name": "ingestRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 74 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:module", - "specifiers": [ - "createRequire" - ] - }, - { - "source": "node:stream", - "specifiers": [ - "Readable" - ] - }, - { - "source": "node:zlib", - "specifiers": [ - "zlib" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - }, - { - "source": "./validate.js", - "specifiers": [ - "assertSafeSegment" - ] - } - ], - "exports": [ - "readFileRegistry", - "ingestRoutes" - ], - "totalLines": 475, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/knowledge.ts": { - "filePath": "packages/server/src/local/routes/knowledge.ts", - "contentHash": "e139fe772df9b00d5e3333b5a84a359a8773c4bb82ca8040a088b44849c00ef5", - "functions": [ - { - "name": "extractKGFromMind", - "params": [ - "mindDb" - ], - "returnType": "{ entities: KGRow[]; relations: KGRow[] }", - "exported": false, - "lineCount": 14 - }, - { - "name": "asStr", - "params": [ - "v" - ], - "returnType": "string | undefined", - "exported": false, - "lineCount": 2 - }, - { - "name": "projectKG", - "params": [ - "kg" - ], - "returnType": "{\r\n nodes: ProjectedNode[];\r\n edges: ProjectedEdge[];\r\n}", - "exported": false, - "lineCount": 18 - }, - { - "name": "knowledgeRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 72 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "KnowledgeGraph" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "./validate.js", - "specifiers": [ - "assertSafeSegment" - ] - } - ], - "exports": [ - "knowledgeRoutes" - ], - "totalLines": 136, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/litellm.ts": { - "filePath": "packages/server/src/local/routes/litellm.ts", - "contentHash": "e3cd1cb592385689e0783cb2455e9cbdb2c4bd1f16dbcce36f6fa7c5ba7ea470", - "functions": [ - { - "name": "litellmRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 71 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - }, - { - "source": "../lifecycle.js", - "specifiers": [ - "getLiteLLMStatus", - "startLiteLLM", - "stopLiteLLM" - ] - }, - { - "source": "../model-availability.js", - "specifiers": [ - "listOllamaChatModelIds" - ] - } - ], - "exports": [ - "litellmRoutes" - ], - "totalLines": 76, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/local-inference.ts": { - "filePath": "packages/server/src/local/routes/local-inference.ts", - "contentHash": "25b7f636ca44f4cb59b62f0bcee57666fd058ff897a449efbe49387d7c588083", - "functions": [ - { - "name": "findLlmfitBinary", - "params": [], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "callLlmfit", - "params": [ - "args" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 12 - }, - { - "name": "detectHardwareViaLlmfit", - "params": [], - "returnType": "Promise", - "exported": false, - "lineCount": 20 - }, - { - "name": "getModelsViaLlmfit", - "params": [ - "useCase", - "limit" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 27 - }, - { - "name": "detectHardwareBasic", - "params": [], - "returnType": "HardwareInfo", - "exported": false, - "lineCount": 18 - }, - { - "name": "basicModelRecommendations", - "params": [ - "ramGb" - ], - "returnType": "ModelRecommendation[]", - "exported": false, - "lineCount": 9 - }, - { - "name": "checkOllama", - "params": [ - "baseUrl" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 16 - }, - { - "name": "checkVllm", - "params": [ - "baseUrl" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 10 - }, - { - "name": "localInferenceRoutes", - "params": [ - "fastify" - ], - "exported": true, - "lineCount": 58 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:child_process", - "specifiers": [ - "execFile" - ] - }, - { - "source": "node:util", - "specifiers": [ - "promisify" - ] - } - ], - "exports": [ - "localInferenceRoutes" - ], - "totalLines": 260, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/marketplace-dev.ts": { - "filePath": "packages/server/src/local/routes/marketplace-dev.ts", - "contentHash": "3825deb93b215ee5822ea3a8c21d517898f57221116a01e615727800733d6513", - "functions": [ - { - "name": "marketplaceDevRoutes", - "params": [ - "fastify" - ], - "exported": true, - "lineCount": 166 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "../logger.js", - "specifiers": [ - "createLogger" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "@waggle/marketplace", - "specifiers": [ - "MarketplaceDB", - "SecurityGate" - ] - }, - { - "source": "@waggle/marketplace", - "specifiers": [ - "InstallationType", - "MarketplacePack", - "MarketplacePackage" - ] - } - ], - "exports": [ - "marketplaceDevRoutes" - ], - "totalLines": 189, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/marketplace.ts": { - "filePath": "packages/server/src/local/routes/marketplace.ts", - "contentHash": "72890563353af83fdeffd68037510ba1c6d3e392a6736412fcdd316842fd1475", - "functions": [ - { - "name": "marketplaceRoutes", - "params": [ - "fastify" - ], - "exported": true, - "lineCount": 855 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyInstance", - "FastifyReply" - ] - }, - { - "source": "fs", - "specifiers": [ - "existsSync", - "readFileSync" - ] - }, - { - "source": "path", - "specifiers": [ - "join" - ] - }, - { - "source": "os", - "specifiers": [ - "homedir" - ] - }, - { - "source": "@waggle/marketplace", - "specifiers": [ - "MarketplaceDB", - "MarketplaceInstaller", - "MarketplaceSync", - "SecurityGate", - "ENTERPRISE_PACKS", - "PACKAGE_CATEGORIES", - "recategorizeAll", - "isCiscoScannerAvailable" - ] - }, - { - "source": "@waggle/marketplace", - "specifiers": [ - "InstallationType", - "SearchSort", - "ScanResult", - "MarketplacePackage" - ] - }, - { - "source": "@waggle/sdk", - "specifiers": [ - "validateSkillMd" - ] - }, - { - "source": "../../kvark/kvark-config.js", - "specifiers": [ - "getKvarkConfig" - ] - }, - { - "source": "./notifications.js", - "specifiers": [ - "emitNotification" - ] - }, - { - "source": "../../middleware/assert-tier.js", - "specifiers": [ - "requireTier" - ] - }, - { - "source": "../mcp-config.js", - "specifiers": [ - "removeMcpServerEntry" - ] - } - ], - "exports": [ - "marketplaceRoutes" - ], - "totalLines": 890, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/mcps.ts": { - "filePath": "packages/server/src/local/routes/mcps.ts", - "contentHash": "215025cffe93c9171865cd3ddea7b3edb99136ec48593e3cdcef7ea3170959d0", - "functions": [ - { - "name": "clampEnv", - "params": [ - "env" - ], - "returnType": "Record", - "exported": false, - "lineCount": 10 - }, - { - "name": "toInstanceStatus", - "params": [ - "state" - ], - "returnType": "McpInstance['status']", - "exported": false, - "lineCount": 9 - }, - { - "name": "withTimeout", - "params": [ - "p", - "ms", - "label" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 9 - }, - { - "name": "mcpRoutes", - "params": [ - "fastify" - ], - "exported": true, - "lineCount": 491 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "MCP_CATALOG", - "McpInstance", - "McpServer" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "McpRuntime", - "McpServerState" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "scanForInjection", - "RecordAuditInput" - ] - }, - { - "source": "../../middleware/assert-tier.js", - "specifiers": [ - "requireTier" - ] - }, - { - "source": "../mcp-config.js", - "specifiers": [ - "loadMcpConfig", - "saveMcpServerEntry", - "removeMcpServerEntry", - "validateMcpEntry", - "PersistedMcpEntry" - ] - }, - { - "source": "./validate.js", - "specifiers": [ - "authHeaders", - "clampStr", - "clampStrArray" - ] - } - ], - "exports": [ - "mcpRoutes" - ], - "totalLines": 578, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/memory-center.ts": { - "filePath": "packages/server/src/local/routes/memory-center.ts", - "contentHash": "fe7fc46aa9cd9d9aa91925eebe50edeb7b372350458f7f42d1037e56f0913f94", - "functions": [ - { - "name": "safeTraceText", - "params": [ - "s" - ], - "returnType": "string", - "exported": false, - "lineCount": 4 - }, - { - "name": "clampStr", - "params": [ - "s", - "max" - ], - "returnType": "string", - "exported": false, - "lineCount": 1 - }, - { - "name": "clampStrArray", - "params": [ - "a", - "maxItems", - "maxLen" - ], - "returnType": "string[]", - "exported": false, - "lineCount": 2 - }, - { - "name": "asKind", - "params": [ - "v" - ], - "returnType": "MemoryKind | undefined", - "exported": false, - "lineCount": 2 - }, - { - "name": "asStatus", - "params": [ - "v" - ], - "returnType": "MemoryStatus | undefined", - "exported": false, - "lineCount": 2 - }, - { - "name": "asScope", - "params": [ - "v" - ], - "returnType": "Scope | undefined", - "exported": false, - "lineCount": 2 - }, - { - "name": "asImportance", - "params": [ - "v" - ], - "returnType": "Importance | undefined", - "exported": false, - "lineCount": 2 - }, - { - "name": "parseFrameMetadata", - "params": [ - "raw" - ], - "returnType": "Record", - "exported": false, - "lineCount": 9 - }, - { - "name": "deriveTitle", - "params": [ - "content" - ], - "returnType": "string", - "exported": false, - "lineCount": 4 - }, - { - "name": "stringArray", - "params": [ - "v" - ], - "returnType": "string[] | undefined", - "exported": false, - "lineCount": 2 - }, - { - "name": "normalizeToMemory", - "params": [ - "frame", - "mind", - "workspaceId" - ], - "returnType": "Memory", - "exported": true, - "lineCount": 36 - }, - { - "name": "memoryCenterRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 485 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "Importance", - "MemoryFrame" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "FrameStore", - "SessionStore" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "Memory", - "MemoryKind", - "MemoryStatus", - "Scope" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "redactSkillContent" - ] - }, - { - "source": "./events.js", - "specifiers": [ - "emitAuditEvent" - ] - }, - { - "source": "./memory.js", - "specifiers": [ - "sanitizeFrameContent" - ] - } - ], - "exports": [ - "normalizeToMemory", - "memoryCenterRoutes" - ], - "totalLines": 614, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/memory.ts": { - "filePath": "packages/server/src/local/routes/memory.ts", - "contentHash": "a650f67d7dcc0b1399b5cb1cb33426471b2a2ebe4b401b5d11394e1c9f946970", - "functions": [ - { - "name": "sanitizeFrameContent", - "params": [ - "content" - ], - "returnType": "string", - "exported": true, - "lineCount": 11 - }, - { - "name": "normalizeFrame", - "params": [ - "raw" - ], - "returnType": "Record", - "exported": false, - "lineCount": 34 - }, - { - "name": "memoryRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 612 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "SearchScope", - "Importance", - "FrameSource", - "MemoryFrame" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "FrameStore", - "SessionStore", - "KnowledgeGraph", - "AwarenessLayer" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "extractEntities" - ] - }, - { - "source": "./events.js", - "specifiers": [ - "emitAuditEvent" - ] - } - ], - "exports": [ - "sanitizeFrameContent", - "memoryRoutes" - ], - "totalLines": 680, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/mind.ts": { - "filePath": "packages/server/src/local/routes/mind.ts", - "contentHash": "80efb048b5d4b482d60f40d9868681e3317e708d4eb05ca405e2986a02663d2f", - "functions": [ - { - "name": "mindRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 23 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - } - ], - "exports": [ - "mindRoutes" - ], - "totalLines": 30, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/notifications.ts": { - "filePath": "packages/server/src/local/routes/notifications.ts", - "contentHash": "58b02cd39988158b97bb86f813e21cd535cd0de10eeeda23e461f93ca72f258f", - "functions": [ - { - "name": "emitNotification", - "params": [ - "fastify", - "event" - ], - "exported": true, - "lineCount": 13 - }, - { - "name": "emitSubagentStatus", - "params": [ - "fastify", - "workspaceId", - "agents" - ], - "exported": true, - "lineCount": 9 - }, - { - "name": "emitWorkflowSuggestion", - "params": [ - "fastify", - "workspaceId", - "pattern", - "reason" - ], - "exported": true, - "lineCount": 15 - }, - { - "name": "notificationRoutes", - "params": [ - "fastify" - ], - "exported": true, - "lineCount": 125 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "../cors-config.js", - "specifiers": [ - "validateOrigin" - ] - } - ], - "exports": [ - "emitNotification", - "emitSubagentStatus", - "emitWorkflowSuggestion", - "notificationRoutes" - ], - "totalLines": 212, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/oauth.ts": { - "filePath": "packages/server/src/local/routes/oauth.ts", - "contentHash": "3005ebbae104e219d346f7122da9b0743a907114ca64e0c8e903c88168782429", - "functions": [ - { - "name": "oauthRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 245 - } - ], - "classes": [], - "imports": [ - { - "source": "node:crypto", - "specifiers": [ - "crypto" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - }, - { - "source": "./harvest.js", - "specifiers": [ - "escapeXml" - ] - } - ], - "exports": [ - "oauthRoutes" - ], - "totalLines": 322, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/offline.ts": { - "filePath": "packages/server/src/local/routes/offline.ts", - "contentHash": "6e18c0b3dff81e70bd0c746d1e5ffcd4c3c9e6f8329e01907ce6e7939ceb78d1", - "functions": [ - { - "name": "offlineRoutes", - "params": [ - "fastify" - ], - "exported": true, - "lineCount": 70 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - } - ], - "exports": [ - "offlineRoutes" - ], - "totalLines": 83, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/onboarding.ts": { - "filePath": "packages/server/src/local/routes/onboarding.ts", - "contentHash": "55a5953bdd2bbcf6f824e745d9175df9beebd7256cdeeafdd23f8fbc120aa2af", - "functions": [ - { - "name": "onboardingRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 51 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "FrameStore" - ] - } - ], - "exports": [ - "onboardingRoutes" - ], - "totalLines": 83, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/personas.ts": { - "filePath": "packages/server/src/local/routes/personas.ts", - "contentHash": "b37c82cd8192e5b5531d3637c15061e604cb0f8fddfadf8f6ad387e32d567a88", - "functions": [ - { - "name": "personaRoutes", - "params": [ - "fastify" - ], - "exported": true, - "lineCount": 169 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "listPersonas", - "getPersona", - "saveCustomPersona", - "deleteCustomPersona", - "AgentPersona" - ] - }, - { - "source": "../../middleware/assert-tier.js", - "specifiers": [ - "requireTier" - ] - } - ], - "exports": [ - "personaRoutes" - ], - "totalLines": 179, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/pins.ts": { - "filePath": "packages/server/src/local/routes/pins.ts", - "contentHash": "57fcf3fbacf084c0d2e871b8ffea9ee7916b8dbf6728558fdcf97597b7c63a19", - "functions": [ - { - "name": "pinsFilePath", - "params": [ - "workspaceId" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "readPins", - "params": [ - "workspaceId" - ], - "returnType": "PinnedItem[]", - "exported": false, - "lineCount": 12 - }, - { - "name": "writePins", - "params": [ - "workspaceId", - "pins" - ], - "returnType": "void", - "exported": false, - "lineCount": 8 - }, - { - "name": "pinRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 85 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:crypto", - "specifiers": [ - "crypto" - ] - } - ], - "exports": [ - "pinRoutes" - ], - "totalLines": 144, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/profile.ts": { - "filePath": "packages/server/src/local/routes/profile.ts", - "contentHash": "2ec037297221252fc78ef880148d65e7abfeaf2647648641380db85f0987b346", - "functions": [ - { - "name": "getProfilePath", - "params": [ - "dataDir" - ], - "returnType": "string", - "exported": true, - "lineCount": 3 - }, - { - "name": "loadProfile", - "params": [ - "dataDir" - ], - "returnType": "UserProfile", - "exported": true, - "lineCount": 10 - }, - { - "name": "saveProfile", - "params": [ - "dataDir", - "profile" - ], - "returnType": "void", - "exported": true, - "lineCount": 5 - }, - { - "name": "profileRoutes", - "params": [ - "fastify" - ], - "exported": true, - "lineCount": 292 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - } - ], - "exports": [ - "getProfilePath", - "loadProfile", - "saveProfile", - "profileRoutes" - ], - "totalLines": 458, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/providers.ts": { - "filePath": "packages/server/src/local/routes/providers.ts", - "contentHash": "6cbc90704b5edea3e3f6c8a5c8fbe1ed09ea93e8c90e7d076839cc45bbaa98b4", - "functions": [ - { - "name": "fetchOpenRouterFreeModels", - "params": [], - "returnType": "Promise", - "exported": false, - "lineCount": 39 - }, - { - "name": "fetchOllamaModels", - "params": [], - "returnType": "Promise<{ models: ProviderModel[]; reachable: boolean }>", - "exported": false, - "lineCount": 33 - }, - { - "name": "providerRoutes", - "params": [ - "fastify" - ], - "exported": true, - "lineCount": 59 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - }, - { - "source": "../logger.js", - "specifiers": [ - "createLogger" - ] - } - ], - "exports": [ - "providerRoutes", - "LLM_PROVIDERS", - "SEARCH_PROVIDERS" - ], - "totalLines": 299, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/session-utils.ts": { - "filePath": "packages/server/src/local/routes/session-utils.ts", - "contentHash": "6436e9b4e5d95b70b15ea0e8d00dde1e5266bdb8967c0198eafe738514c253b5", - "functions": [ - { - "name": "generateSessionSummary", - "params": [ - "messageLines" - ], - "returnType": "string | null", - "exported": false, - "lineCount": 94 - }, - { - "name": "readSessionMeta", - "params": [ - "filePath", - "sessionId" - ], - "returnType": "SessionInfo", - "exported": true, - "lineCount": 106 - }, - { - "name": "findUndistilledSessions", - "params": [ - "sessionsDir" - ], - "returnType": "DistillableSession[]", - "exported": true, - "lineCount": 73 - }, - { - "name": "sanitizeExtracted", - "params": [ - "raw", - "maxLen" - ], - "returnType": "string", - "exported": true, - "lineCount": 14 - }, - { - "name": "enclosingSentence", - "params": [ - "text", - "index" - ], - "returnType": "string", - "exported": false, - "lineCount": 8 - }, - { - "name": "extractProgressItems", - "params": [ - "sessionsDir", - "maxSessions" - ], - "returnType": "ProgressItem[]", - "exported": true, - "lineCount": 99 - }, - { - "name": "markSessionDistilled", - "params": [ - "filePath" - ], - "returnType": "void", - "exported": true, - "lineCount": 14 - }, - { - "name": "extractSessionOutcome", - "params": [ - "messageLines" - ], - "returnType": "SessionOutcome | null", - "exported": true, - "lineCount": 91 - }, - { - "name": "persistSessionOutcome", - "params": [ - "filePath", - "outcome" - ], - "returnType": "void", - "exported": true, - "lineCount": 14 - }, - { - "name": "extractOpenQuestions", - "params": [ - "sessionsDir", - "maxSessions" - ], - "returnType": "OpenQuestion[]", - "exported": true, - "lineCount": 65 - }, - { - "name": "computeThreadFreshness", - "params": [ - "dateStr" - ], - "returnType": "ThreadFreshness", - "exported": false, - "lineCount": 8 - }, - { - "name": "classifyThreads", - "params": [ - "sessionsDir", - "maxSessions" - ], - "returnType": "ThreadInfo[]", - "exported": true, - "lineCount": 63 - }, - { - "name": "extractSnippet", - "params": [ - "text", - "lowerQuery" - ], - "returnType": "string", - "exported": false, - "lineCount": 12 - }, - { - "name": "searchSessions", - "params": [ - "sessionsDir", - "query", - "maxResults" - ], - "returnType": "SessionSearchResult[]", - "exported": true, - "lineCount": 80 - }, - { - "name": "exportSessionToMarkdown", - "params": [ - "filePath", - "sessionId" - ], - "returnType": "string", - "exported": true, - "lineCount": 54 - }, - { - "name": "parseSessionTimeline", - "params": [ - "filePath" - ], - "returnType": "TimelineEvent[]", - "exported": true, - "lineCount": 84 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - } - ], - "exports": [ - "readSessionMeta", - "findUndistilledSessions", - "sanitizeExtracted", - "extractProgressItems", - "markSessionDistilled", - "extractSessionOutcome", - "persistSessionOutcome", - "extractOpenQuestions", - "classifyThreads", - "searchSessions", - "exportSessionToMarkdown", - "KNOWN_TOOLS", - "TOOL_CONTENT_PATTERNS", - "parseSessionTimeline" - ], - "totalLines": 1172, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/sessions.ts": { - "filePath": "packages/server/src/local/routes/sessions.ts", - "contentHash": "c8482cda5bf406726915a4f884e7a31284e8e0e6ff2ad38dd8cd2c8cf245c759", - "functions": [ - { - "name": "sessionRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 365 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:crypto", - "specifiers": [ - "randomUUID" - ] - }, - { - "source": "./validate.js", - "specifiers": [ - "assertSafeSegment" - ] - }, - { - "source": "./session-utils.js", - "specifiers": [ - "readSessionMeta", - "findUndistilledSessions", - "extractProgressItems", - "markSessionDistilled", - "extractSessionOutcome", - "persistSessionOutcome", - "extractOpenQuestions", - "classifyThreads", - "searchSessions", - "exportSessionToMarkdown", - "parseSessionTimeline", - "TOOL_CONTENT_PATTERNS", - "SessionInfo", - "DistillableSession", - "ProgressItem", - "SessionOutcome", - "OpenQuestion", - "ThreadFreshness", - "ThreadInfo", - "SessionSearchResult", - "TimelineEvent" - ] - } - ], - "exports": [ - "readSessionMeta", - "findUndistilledSessions", - "extractProgressItems", - "markSessionDistilled", - "extractSessionOutcome", - "persistSessionOutcome", - "extractOpenQuestions", - "classifyThreads", - "searchSessions", - "exportSessionToMarkdown", - "parseSessionTimeline", - "SessionInfo", - "DistillableSession", - "ProgressItem", - "SessionOutcome", - "OpenQuestion", - "ThreadFreshness", - "ThreadInfo", - "SessionSearchResult", - "TimelineEvent", - "sessionRoutes" - ], - "totalLines": 425, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/settings.ts": { - "filePath": "packages/server/src/local/routes/settings.ts", - "contentHash": "70e2c91f3fab439f510e1e102a44d242f57fb32fe081787c61af9ff3507f95a8", - "functions": [ - { - "name": "coerceDefaultAutonomy", - "params": [ - "parsed" - ], - "returnType": "AutonomyLevel", - "exported": false, - "lineCount": 9 - }, - { - "name": "maskApiKey", - "params": [ - "key" - ], - "returnType": "string", - "exported": false, - "lineCount": 4 - }, - { - "name": "settingsRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 489 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "WaggleConfig" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "Tier", - "TIERS", - "TIER_CAPABILITIES", - "parseTier", - "getCapabilities", - "getEffectiveTier", - "trialDaysRemaining" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "AutonomyLevel" - ] - }, - { - "source": "../../middleware/assert-tier.js", - "specifiers": [ - "requireTier" - ] - }, - { - "source": "../llm-key-probe.js", - "specifiers": [ - "probeProviderKey", - "validateKeyFormat" - ] - } - ], - "exports": [ - "settingsRoutes" - ], - "totalLines": 530, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/skills-aliases.ts": { - "filePath": "packages/server/src/local/routes/skills-aliases.ts", - "contentHash": "3dacb34caf48b27a1574f70eb8bb8b225f1fde9cf4fe2bc24c2b02f9c14acef7", - "functions": [ - { - "name": "skillsAliasRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 84 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - }, - { - "source": "./validate.js", - "specifiers": [ - "authHeaders" - ] - } - ], - "exports": [ - "skillsAliasRoutes" - ], - "totalLines": 99, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/skills.ts": { - "filePath": "packages/server/src/local/routes/skills.ts", - "contentHash": "0c42d990c4ca0a912f7fde0073be7a88c8e97db3fa1b6619679f2aa3933fb6e7", - "functions": [ - { - "name": "skillRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 893 - } - ], - "classes": [], - "imports": [ - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "../logger.js", - "specifiers": [ - "createLogger" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - }, - { - "source": "@waggle/sdk", - "specifiers": [ - "PluginManager", - "getStarterSkillsDir", - "listStarterSkills", - "listCapabilityPacks", - "getPackManifest" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "loadSkills", - "SkillRecommender", - "assessTrust", - "generateSkillMarkdown", - "writeSkill", - "deleteSkillWrite", - "parseSkillFrontmatter", - "SkillTemplate" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "computeSkillHash" - ] - } - ], - "exports": [ - "skillRoutes" - ], - "totalLines": 935, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/tasks.ts": { - "filePath": "packages/server/src/local/routes/tasks.ts", - "contentHash": "4913034301a8ce09afc95d6b450dfbd6cd75762ecefa786535b91db9e5368a3f", - "functions": [ - { - "name": "tasksPath", - "params": [ - "dataDir", - "workspaceId" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "readTasks", - "params": [ - "dataDir", - "workspaceId" - ], - "returnType": "TeamTask[]", - "exported": true, - "lineCount": 14 - }, - { - "name": "writeTasks", - "params": [ - "dataDir", - "workspaceId", - "tasks" - ], - "returnType": "void", - "exported": false, - "lineCount": 7 - }, - { - "name": "taskRoutes", - "params": [ - "fastify" - ], - "exported": true, - "lineCount": 151 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:crypto", - "specifiers": [ - "randomUUID" - ] - }, - { - "source": "./notifications.js", - "specifiers": [ - "emitNotification" - ] - }, - { - "source": "./validate.js", - "specifiers": [ - "assertSafeSegment" - ] - } - ], - "exports": [ - "readTasks", - "taskRoutes" - ], - "totalLines": 205, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/team.ts": { - "filePath": "packages/server/src/local/routes/team.ts", - "contentHash": "2d1de79bb7ac4eb95065dbdbc3274483a8c3ea850059405235388b6235a5b08a", - "functions": [ - { - "name": "getTeamsDb", - "params": [ - "dataDir" - ], - "returnType": "Database.Database", - "exported": false, - "lineCount": 34 - }, - { - "name": "closeTeamsDb", - "params": [], - "returnType": "void", - "exported": true, - "lineCount": 6 - }, - { - "name": "getLocalUserId", - "params": [ - "dataDir" - ], - "returnType": "string", - "exported": false, - "lineCount": 8 - }, - { - "name": "getLocalDisplayName", - "params": [ - "dataDir" - ], - "returnType": "string", - "exported": false, - "lineCount": 8 - }, - { - "name": "teamRoutes", - "params": [ - "fastify" - ], - "exported": true, - "lineCount": 685 - }, - { - "name": "normalizeTeam", - "params": [ - "row" - ], - "exported": false, - "lineCount": 10 - }, - { - "name": "normalizeMember", - "params": [ - "row" - ], - "exported": false, - "lineCount": 9 - } - ], - "classes": [], - "imports": [ - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:crypto", - "specifiers": [ - "crypto" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "better-sqlite3", - "specifiers": [ - "Database" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "WaggleConfig" - ] - }, - { - "source": "./notifications.js", - "specifiers": [ - "emitNotification" - ] - }, - { - "source": "./events.js", - "specifiers": [ - "emitAuditEvent" - ] - }, - { - "source": "../../middleware/assert-tier.js", - "specifiers": [ - "requireTier" - ] - } - ], - "exports": [ - "closeTeamsDb", - "teamRoutes" - ], - "totalLines": 811, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/telegram.ts": { - "filePath": "packages/server/src/local/routes/telegram.ts", - "contentHash": "16eaf956445d82b2425c28f945604e0274167d86ef12ddf7e7cb8b4fae2028c3", - "functions": [ - { - "name": "getStoredCreds", - "params": [ - "server" - ], - "returnType": "{\n token: string | null;\n chatId: string | null;\n}", - "exported": false, - "lineCount": 16 - }, - { - "name": "sendToTelegram", - "params": [ - "token", - "chatId", - "text", - "parseMode" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 16 - }, - { - "name": "pushTelegramMessage", - "params": [ - "server", - "text" - ], - "returnType": "Promise<{ ok: boolean; reason?: string; messageId?: number }>", - "exported": true, - "lineCount": 16 - }, - { - "name": "telegramRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 86 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - } - ], - "exports": [ - "BOT_TOKEN_PATTERN", - "CHAT_ID_PATTERN", - "pushTelegramMessage", - "telegramRoutes" - ], - "totalLines": 193, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/telemetry.ts": { - "filePath": "packages/server/src/local/routes/telemetry.ts", - "contentHash": "12ffee8586e58182aeb6a9cdb773a9be71c6811be74cf8d28dccb9a128472598", - "functions": [ - { - "name": "telemetryRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 53 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "WaggleConfig" - ] - } - ], - "exports": [ - "telemetryRoutes" - ], - "totalLines": 63, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/tools.ts": { - "filePath": "packages/server/src/local/routes/tools.ts", - "contentHash": "694b0f65e4f035d3fe4db032b04092326b1dac39da32ffc69fe247ba18518409", - "functions": [ - { - "name": "toolsRoutesImpl", - "params": [ - "server" - ], - "exported": false, - "lineCount": 105 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - }, - { - "source": "fastify-plugin", - "specifiers": [ - "fp" - ] - }, - { - "source": "zod", - "specifiers": [ - "z" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "detectInstalledTools", - "launchTool", - "runHookCommand", - "ToolProcessTracker", - "HookAction" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "SUPPORTED_TOOLS", - "ToolId" - ] - } - ], - "exports": [ - "toolsRoutes" - ], - "totalLines": 183, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/validate.ts": { - "filePath": "packages/server/src/local/routes/validate.ts", - "contentHash": "6280b8529885bd087ec4f675dcc9bd8e2da8ba58caabfe0af86b891a56eefb83", - "functions": [ - { - "name": "isSafeSegment", - "params": [ - "s" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 3 - }, - { - "name": "assertSafeSegment", - "params": [ - "s", - "name" - ], - "returnType": "void", - "exported": true, - "lineCount": 8 - }, - { - "name": "authHeaders", - "params": [ - "request" - ], - "returnType": "Record", - "exported": true, - "lineCount": 6 - }, - { - "name": "clampStr", - "params": [ - "s", - "max" - ], - "returnType": "string", - "exported": true, - "lineCount": 1 - }, - { - "name": "clampStrArray", - "params": [ - "a", - "maxItems", - "maxLen" - ], - "returnType": "string[]", - "exported": true, - "lineCount": 2 - } - ], - "classes": [], - "imports": [], - "exports": [ - "isSafeSegment", - "assertSafeSegment", - "authHeaders", - "clampStr", - "clampStrArray" - ], - "totalLines": 34, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/vault.ts": { - "filePath": "packages/server/src/local/routes/vault.ts", - "contentHash": "9e5b7ce57e9cbe21aae8d6244dfd6b14ab247340b3db9ea37876ff61639278de", - "functions": [ - { - "name": "vaultRoutes", - "params": [ - "fastify" - ], - "exported": true, - "lineCount": 86 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "../origin-guard.js", - "specifiers": [ - "isLocalRequest" - ] - } - ], - "exports": [ - "vaultRoutes" - ], - "totalLines": 189, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/waggle-dance.ts": { - "filePath": "packages/server/src/local/routes/waggle-dance.ts", - "contentHash": "8f76ec98cf9792392471ed4c9ab1007f24f071baea79a73fbb7932e80da8fdb3", - "functions": [ - { - "name": "waggleDanceRoutesImpl", - "params": [ - "server" - ], - "exported": false, - "lineCount": 115 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - }, - { - "source": "fastify-plugin", - "specifiers": [ - "fp" - ] - }, - { - "source": "node:crypto", - "specifiers": [ - "randomUUID" - ] - }, - { - "source": "zod", - "specifiers": [ - "z" - ] - }, - { - "source": "@waggle/waggle-dance", - "specifiers": [ - "validateMessageTypeCombo", - "WaggleDanceDispatcher", - "DispatchDeps" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "WaggleMessage", - "MessageType", - "MessageSubtype" - ] - }, - { - "source": "../signal-bus.js", - "specifiers": [ - "SignalBus" - ] - }, - { - "source": "../waggle-dance-bridge.js", - "specifiers": [ - "installWaggleDanceBridge" - ] - } - ], - "exports": [ - "waggleDanceRoutes" - ], - "totalLines": 214, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/waggle-signals.ts": { - "filePath": "packages/server/src/local/routes/waggle-signals.ts", - "contentHash": "83d14034228b1d2267c1ea690af1dca391f4d0306b944c9f1dff8cfad2e2fe42", - "functions": [ - { - "name": "emitWaggleSignal", - "params": [ - "signal" - ], - "exported": true, - "lineCount": 12 - }, - { - "name": "waggleSignalRoutes", - "params": [ - "fastify" - ], - "exported": true, - "lineCount": 76 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - }, - { - "source": "node:events", - "specifiers": [ - "EventEmitter" - ] - }, - { - "source": "../cors-config.js", - "specifiers": [ - "corsOriginAllowed" - ] - } - ], - "exports": [ - "emitWaggleSignal", - "waggleSignalRoutes" - ], - "totalLines": 124, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/weaver.ts": { - "filePath": "packages/server/src/local/routes/weaver.ts", - "contentHash": "e8e0b5f36e00d0654c3e0d3e10223fcbc4b5c5ff4632482524f8787f4ca42a61", - "functions": [ - { - "name": "weaverRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 118 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "FrameStore", - "SessionStore" - ] - }, - { - "source": "@waggle/weaver", - "specifiers": [ - "MemoryWeaver" - ] - } - ], - "exports": [ - "weaverRoutes" - ], - "totalLines": 131, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/wiki.ts": { - "filePath": "packages/server/src/local/routes/wiki.ts", - "contentHash": "97f31dc8eab519ba81d0ab85881ad8992e542136f0e6fef8538ade5ca6f028c7", - "functions": [ - { - "name": "wikiRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 188 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "FrameStore", - "KnowledgeGraph", - "HybridSearch" - ] - }, - { - "source": "@waggle/wiki-compiler", - "specifiers": [ - "WikiCompiler", - "CompilationState", - "resolveSynthesizer", - "writeToObsidianVault", - "writeToNotionWorkspace", - "extractNotionPageId", - "NotionStateHelpers" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - } - ], - "exports": [ - "wikiRoutes" - ], - "totalLines": 202, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/workflows.ts": { - "filePath": "packages/server/src/local/routes/workflows.ts", - "contentHash": "517e089c7577d88822d002dfe4c1e3fcae75cb3d5611bca9a3f1f34ebfe39566", - "functions": [ - { - "name": "workflowRoutes", - "params": [ - "fastify" - ], - "exported": true, - "lineCount": 46 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "saveCustomWorkflow", - "deleteCustomWorkflow", - "loadCustomWorkflows", - "WORKFLOW_TEMPLATES" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "WorkflowTemplate" - ] - } - ], - "exports": [ - "workflowRoutes" - ], - "totalLines": 55, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/workspace-context.ts": { - "filePath": "packages/server/src/local/routes/workspace-context.ts", - "contentHash": "2ae368dd626e29e3c31d74484f3c015fee22141353bd32c43d9117e4d3010415", - "functions": [ - { - "name": "buildCompactSummary", - "params": [ - "frames", - "memoryCount", - "sessionCount" - ], - "returnType": "string", - "exported": false, - "lineCount": 42 - }, - { - "name": "formatRelativeTime", - "params": [ - "mtimeMs" - ], - "returnType": "string", - "exported": false, - "lineCount": 9 - }, - { - "name": "buildTimeAwareGreeting", - "params": [ - "lastActiveIso", - "opts" - ], - "returnType": "string", - "exported": true, - "lineCount": 34 - }, - { - "name": "extractPendingTasks", - "params": [ - "progressItems" - ], - "returnType": "string[]", - "exported": false, - "lineCount": 6 - }, - { - "name": "buildUpcomingSchedules", - "params": [ - "schedules", - "workspaceId" - ], - "returnType": "string[]", - "exported": true, - "lineCount": 24 - }, - { - "name": "buildWorkspaceNowBlock", - "params": [ - "opts" - ], - "returnType": "WorkspaceNowBlock | null", - "exported": true, - "lineCount": 214 - }, - { - "name": "formatWorkspaceNowPrompt", - "params": [ - "block" - ], - "returnType": "string", - "exported": true, - "lineCount": 51 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "./validate.js", - "specifiers": [ - "assertSafeSegment" - ] - }, - { - "source": "./sessions.js", - "specifiers": [ - "extractProgressItems", - "ProgressItem" - ] - }, - { - "source": "../workspace-state.js", - "specifiers": [ - "buildWorkspaceState", - "formatWorkspaceStatePrompt", - "WorkspaceState" - ] - } - ], - "exports": [ - "WorkspaceState", - "buildTimeAwareGreeting", - "buildUpcomingSchedules", - "buildWorkspaceNowBlock", - "formatWorkspaceNowPrompt" - ], - "totalLines": 491, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/workspace-templates.ts": { - "filePath": "packages/server/src/local/routes/workspace-templates.ts", - "contentHash": "a7fcf7712659efe9e449aa2ab490cb2b6e9a2be952157a95c84c5cb79af879a0", - "functions": [ - { - "name": "readUserTemplates", - "params": [ - "dataDir" - ], - "returnType": "WorkspaceTemplate[]", - "exported": false, - "lineCount": 12 - }, - { - "name": "writeUserTemplates", - "params": [ - "dataDir", - "templates" - ], - "returnType": "void", - "exported": false, - "lineCount": 4 - }, - { - "name": "validateTemplateBody", - "params": [ - "body" - ], - "returnType": "string | null", - "exported": false, - "lineCount": 9 - }, - { - "name": "workspaceTemplateRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 186 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - } - ], - "exports": [ - "BUILT_IN_TEMPLATES", - "workspaceTemplateRoutes" - ], - "totalLines": 472, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/routes/workspaces.ts": { - "filePath": "packages/server/src/local/routes/workspaces.ts", - "contentHash": "abc340bca6520820bdadca602d1d520623704f6467fad79f2be361da82d7186e", - "functions": [ - { - "name": "isValidModelId", - "params": [ - "model" - ], - "returnType": "boolean", - "exported": false, - "lineCount": 5 - }, - { - "name": "composeWorkspaceSummary", - "params": [ - "frames", - "memoryCount", - "decisions", - "sessionCount" - ], - "returnType": "string", - "exported": false, - "lineCount": 45 - }, - { - "name": "toStateItemViews", - "params": [ - "items", - "prefix" - ], - "returnType": "Array<{\r\n id: string;\r\n content: string;\r\n date?: string;\r\n freshness?: StateItem['freshness'];\r\n}>", - "exported": true, - "lineCount": 16 - }, - { - "name": "toWorkspaceStateView", - "params": [ - "state", - "workspaceId" - ], - "returnType": "{\r\n active: ReturnType;\r\n openQuestions: ReturnType;\r\n pending: ReturnType;\r\n blocked: ReturnType;\r\n completed: ReturnType;\r\n stale: ReturnType;\r\n recentDecisions: ReturnType;\r\n nextActions: Array<{ label: string; workspaceId: string; sessionId?: string; kind: string }>;\r\n}", - "exported": false, - "lineCount": 25 - }, - { - "name": "workspaceRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 987 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "createFileStore" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "parseTier", - "getCapabilities" - ] - }, - { - "source": "./validate.js", - "specifiers": [ - "assertSafeSegment" - ] - }, - { - "source": "./sessions.js", - "specifiers": [ - "extractProgressItems", - "ProgressItem" - ] - }, - { - "source": "./ingest.js", - "specifiers": [ - "readFileRegistry", - "FileRegistryEntry" - ] - }, - { - "source": "../workspace-state.js", - "specifiers": [ - "buildWorkspaceState", - "WorkspaceState", - "StateItem" - ] - }, - { - "source": "./workspace-context.js", - "specifiers": [ - "buildTimeAwareGreeting", - "buildUpcomingSchedules" - ] - }, - { - "source": "./events.js", - "specifiers": [ - "emitAuditEvent", - "getAuditDb" - ] - }, - { - "source": "../logger.js", - "specifiers": [ - "createLogger" - ] - } - ], - "exports": [ - "toStateItemViews", - "workspaceRoutes" - ], - "totalLines": 1137, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/security-middleware.ts": { - "filePath": "packages/server/src/local/security-middleware.ts", - "contentHash": "87199d10b4e4ee69f707884f2ae09ce6f238afe3823d7bf0a20da2df4914a3f2", - "functions": [ - { - "name": "queryToken", - "params": [ - "rawUrl" - ], - "returnType": "string | null", - "exported": false, - "lineCount": 5 - }, - { - "name": "hostHeaderAllowed", - "params": [ - "rawHost", - "allowlist" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 4 - }, - { - "name": "securityMiddlewarePlugin", - "params": [ - "fastify", - "opts" - ], - "exported": false, - "lineCount": 136 - } - ], - "classes": [ - { - "name": "RateLimiter", - "methods": [ - "constructor", - "getDefaultMaxRequests", - "getEffectiveLimit", - "check", - "cleanup", - "reset", - "destroy" - ], - "properties": [ - "store", - "defaultMaxRequests", - "windowMs", - "cleanupInterval" - ], - "exported": true, - "lineCount": 98 - }, - { - "name": "SessionTimeoutTracker", - "methods": [ - "constructor", - "getTimeoutMs", - "check", - "cleanup", - "destroy" - ], - "properties": [ - "lastActivity", - "timeoutMs", - "cleanupInterval" - ], - "exported": true, - "lineCount": 61 - } - ], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyInstance", - "FastifyRequest", - "FastifyReply" - ] - }, - { - "source": "fastify-plugin", - "specifiers": [ - "fp" - ] - }, - { - "source": "./net-config.js", - "specifiers": [ - "isLoopbackBind" - ] - } - ], - "exports": [ - "ENDPOINT_RATE_LIMITS", - "RateLimiter", - "SessionTimeoutTracker", - "hostHeaderAllowed", - "securityMiddleware" - ], - "totalLines": 424, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/service.ts": { - "filePath": "packages/server/src/local/service.ts", - "contentHash": "d0f6a7b023e4daff061ad61fe4b399dcde4614c79c4e81cc32b4e24daee2becf", - "functions": [ - { - "name": "resolveDataDir", - "params": [ - "optionDataDir" - ], - "returnType": "string", - "exported": true, - "lineCount": 5 - }, - { - "name": "isFirstRun", - "params": [ - "dataDir" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 6 - }, - { - "name": "checkPortAvailable", - "params": [ - "port" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 10 - }, - { - "name": "hasAnthropicKey", - "params": [ - "dataDir", - "server" - ], - "returnType": "boolean", - "exported": false, - "lineCount": 19 - }, - { - "name": "startService", - "params": [ - "options" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 183 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:net", - "specifiers": [ - "net" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "needsMigration", - "migrateToMultiMind", - "MindDB" - ] - }, - { - "source": "./index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "./index.js", - "specifiers": [ - "LlmHealthStatus" - ] - }, - { - "source": "./lifecycle.js", - "specifiers": [ - "startLiteLLM", - "stopLiteLLM", - "LiteLLMStatus" - ] - }, - { - "source": "./logger.js", - "specifiers": [ - "createLogger" - ] - }, - { - "source": "./net-config.js", - "specifiers": [ - "resolveBindHost" - ] - }, - { - "source": "../middleware/assert-tier.js", - "specifiers": [ - "readTierFromDataDir" - ] - }, - { - "source": "./model-availability.js", - "specifiers": [ - "listOllamaChatModelIds" - ] - }, - { - "source": "./data-erase-helpers.js", - "specifiers": [ - "readEraseMarker", - "performWipe", - "writeWipeReceipt" - ] - } - ], - "exports": [ - "resolveDataDir", - "isFirstRun", - "checkPortAvailable", - "startService" - ], - "totalLines": 323, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/services/evolution-service.ts": { - "filePath": "packages/server/src/local/services/evolution-service.ts", - "contentHash": "48b1d0ed2b6ac708d4491f56d8ae73f47da19ad34c8e99c23a9d4a64d3e0f164", - "functions": [ - { - "name": "defaultSchemaBaseline", - "params": [ - "kind" - ], - "returnType": "Schema", - "exported": false, - "lineCount": 22 - }, - { - "name": "isEvolutionAutoEnabled", - "params": [ - "env" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 6 - } - ], - "classes": [ - { - "name": "EvolutionService", - "methods": [ - "constructor", - "defaultTargets", - "start", - "stop", - "isRunning", - "config", - "tick", - "enumerateCandidates", - "pickNextTarget", - "resolveBaseline", - "defaultRunner" - ], - "properties": [ - "deps", - "cfg", - "timer", - "tickInFlight" - ], - "exported": true, - "lineCount": 238 - } - ], - "imports": [ - { - "source": "@waggle/agent", - "specifiers": [ - "EvolutionOrchestrator", - "LLMJudge", - "buildJudgeLLMCall", - "buildGEPAMutateFn", - "buildSchemaExecuteFn", - "makeRunningJudge", - "createAnthropicEvolutionLLM", - "listPersonas", - "getPersona", - "BEHAVIORAL_SPEC", - "BEHAVIORAL_SPEC_SECTIONS", - "BehavioralSpecSection", - "EvolutionLLM", - "Schema", - "EvolutionTarget" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "ExecutionTraceStore", - "EvolutionRunStore", - "TraceOutcome" - ] - } - ], - "exports": [ - "EvolutionService", - "isEvolutionAutoEnabled" - ], - "totalLines": 392, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/services/optimizer-service.ts": { - "filePath": "packages/server/src/local/services/optimizer-service.ts", - "contentHash": "b5a6d3f6a350cb4bb774d7cf2dc5a39e1e887e562de05a2570f0abb99462de5a", - "functions": [ - { - "name": "getOptimizerService", - "params": [ - "server" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 125 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - } - ], - "exports": [ - "getOptimizerService" - ], - "totalLines": 164, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/setup-connectors.ts": { - "filePath": "packages/server/src/local/setup-connectors.ts", - "contentHash": "dbcca787d82b5b19118338f36a44885a702609a519d36faec899f0e8f946f233", - "functions": [ - { - "name": "registerConnectors", - "params": [ - "vault" - ], - "returnType": "ConnectorRegistry", - "exported": true, - "lineCount": 34 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/agent", - "specifiers": [ - "ConnectorRegistry", - "GitHubConnector", - "SlackConnector", - "JiraConnector", - "EmailConnector", - "GoogleCalendarConnector", - "DiscordConnector", - "LinearConnector", - "AsanaConnector", - "TrelloConnector", - "MondayConnector", - "NotionConnector", - "ConfluenceConnector", - "ObsidianConnector", - "HubSpotConnector", - "SalesforceConnector", - "PipedriveConnector", - "AirtableConnector", - "GitLabConnector", - "BitbucketConnector", - "DropboxConnector", - "PostgresConnector", - "GmailConnector", - "GoogleDocsConnector", - "GoogleDriveConnector", - "GoogleSheetsConnector", - "MSTeamsConnector", - "OutlookConnector", - "OneDriveConnector", - "OneNoteConnector", - "ComposioConnector" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - } - ], - "exports": [ - "registerConnectors" - ], - "totalLines": 55, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/setup-crons.ts": { - "filePath": "packages/server/src/local/setup-crons.ts", - "contentHash": "c1ddffc669c107d8bb8556ee8bc8eb31901896ea12113d0a9759d30731bae4e7", - "functions": [ - { - "name": "seedDefaultCrons", - "params": [ - "cronStore" - ], - "returnType": "void", - "exported": true, - "lineCount": 33 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/core", - "specifiers": [ - "CronStore", - "CronJobType" - ] - } - ], - "exports": [ - "seedDefaultCrons" - ], - "totalLines": 41, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/signal-bus.ts": { - "filePath": "packages/server/src/local/signal-bus.ts", - "contentHash": "ae4bb138fb6eadf86e3d0430e2e93dbe6f10e6d93eb3961c1ee5f03facff671e", - "functions": [], - "classes": [ - { - "name": "SignalBus", - "methods": [ - "constructor", - "record", - "query", - "subscribe", - "size", - "clear" - ], - "properties": [ - "buffer", - "subscribers", - "capacity" - ], - "exported": true, - "lineCount": 89 - } - ], - "imports": [ - { - "source": "@waggle/shared", - "specifiers": [ - "WaggleMessage" - ] - } - ], - "exports": [ - "DEFAULT_BUFFER_SIZE", - "SignalBus" - ], - "totalLines": 132, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/start.ts": { - "filePath": "packages/server/src/local/start.ts", - "contentHash": "a7e5c95975829111426ec93a019f554aa1e12292c83557385a79da2a17ce019f", - "functions": [], - "classes": [], - "imports": [ - { - "source": "./service.js", - "specifiers": [ - "startService" - ] - }, - { - "source": "./logger.js", - "specifiers": [ - "createLogger" - ] - } - ], - "exports": [], - "totalLines": 23, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/storage/fs-provider.ts": { - "filePath": "packages/server/src/local/storage/fs-provider.ts", - "contentHash": "e588d48dfa9485f3031399a635c75cc32fc8a3a2a371de362ce96910f0213040", - "functions": [], - "classes": [ - { - "name": "FsStorageProvider", - "methods": [ - "constructor", - "ensureStructure", - "list", - "read", - "write", - "delete", - "move", - "copy", - "mkdir", - "exists" - ], - "properties": [], - "exported": true, - "lineCount": 153 - } - ], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "../utils/mime.js", - "specifiers": [ - "lookup" - ] - }, - { - "source": "./security.js", - "specifiers": [ - "safePath", - "toRelativePath" - ] - }, - { - "source": "./types.js", - "specifiers": [ - "StorageProvider", - "FileEntry" - ] - }, - { - "source": "./types.js", - "specifiers": [ - "STANDARD_DIRS" - ] - } - ], - "exports": [ - "FsStorageProvider" - ], - "totalLines": 166, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/storage/index.ts": { - "filePath": "packages/server/src/local/storage/index.ts", - "contentHash": "5a28c7bbbf12bd74ec76ecf97d4acbd6f4078e7a49a4646dbb4a7b29cdad9406", - "functions": [ - { - "name": "getStorageProvider", - "params": [ - "workspace", - "dataDir" - ], - "returnType": "StorageProvider", - "exported": true, - "lineCount": 47 - } - ], - "classes": [], - "imports": [ - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "./fs-provider.js", - "specifiers": [ - "FsStorageProvider" - ] - }, - { - "source": "./s3-provider.js", - "specifiers": [ - "S3StorageProvider" - ] - }, - { - "source": "./types.js", - "specifiers": [ - "StorageProvider" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "S3Config" - ] - } - ], - "exports": [ - "StorageProvider", - "FileEntry", - "STANDARD_DIRS", - "MAX_UPLOAD_SIZE", - "FsStorageProvider", - "S3StorageProvider", - "safePath", - "toRelativePath", - "getStorageProvider" - ], - "totalLines": 74, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/storage/s3-provider.ts": { - "filePath": "packages/server/src/local/storage/s3-provider.ts", - "contentHash": "2028700aeddf4a4399bf6915e87d143f3134e3a74864493b94d2f0f83c00daf4", - "functions": [ - { - "name": "coreToProvider", - "params": [ - "f" - ], - "returnType": "FileEntry", - "exported": false, - "lineCount": 9 - } - ], - "classes": [ - { - "name": "S3StorageProvider", - "methods": [ - "constructor", - "list", - "read", - "write", - "delete", - "move", - "copy", - "mkdir", - "exists" - ], - "properties": [ - "store" - ], - "exported": true, - "lineCount": 52 - } - ], - "imports": [ - { - "source": "@waggle/core", - "specifiers": [ - "S3FileStore", - "S3Config", - "CoreFileEntry" - ] - }, - { - "source": "./types.js", - "specifiers": [ - "StorageProvider", - "FileEntry" - ] - } - ], - "exports": [ - "S3StorageProvider" - ], - "totalLines": 71, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/storage/security.ts": { - "filePath": "packages/server/src/local/storage/security.ts", - "contentHash": "621e0d89adfcb4a0b5001e25d151fa0f11400565e413054b938ce6860985db68", - "functions": [ - { - "name": "safePath", - "params": [ - "root", - "userPath" - ], - "returnType": "string", - "exported": true, - "lineCount": 22 - }, - { - "name": "toRelativePath", - "params": [ - "root", - "absolutePath" - ], - "returnType": "string", - "exported": true, - "lineCount": 4 - } - ], - "classes": [], - "imports": [ - { - "source": "node:path", - "specifiers": [ - "path" - ] - } - ], - "exports": [ - "safePath", - "toRelativePath" - ], - "totalLines": 36, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/storage/types.ts": { - "filePath": "packages/server/src/local/storage/types.ts", - "contentHash": "d0452f3e89aa52373f235d58668d45a3bda1e6fd7b4b6c676ebf7ed5fb03acca", - "functions": [], - "classes": [], - "imports": [], - "exports": [ - "STANDARD_DIRS", - "MAX_UPLOAD_SIZE" - ], - "totalLines": 29, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/utils/mime.ts": { - "filePath": "packages/server/src/local/utils/mime.ts", - "contentHash": "175d55d326f839100484779209eb97048a9b9af07ba786cad29aa152cb56dbcb", - "functions": [ - { - "name": "lookup", - "params": [ - "filename" - ], - "returnType": "string", - "exported": true, - "lineCount": 4 - } - ], - "classes": [], - "imports": [], - "exports": [ - "lookup" - ], - "totalLines": 50, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/vector-backfill.ts": { - "filePath": "packages/server/src/local/vector-backfill.ts", - "contentHash": "0e4a26fb2eb3134eb66d791050ac17f08b0cd08bf4ad55f1b96c0c9d6ccce859", - "functions": [ - { - "name": "runVectorBackfill", - "params": [ - "db", - "embedder" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 63 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/core", - "specifiers": [ - "HybridSearch", - "rechunkAllFrames", - "MindDB", - "EmbeddingProviderInstance" - ] - } - ], - "exports": [ - "runVectorBackfill" - ], - "totalLines": 105, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/waggle-dance-bridge.ts": { - "filePath": "packages/server/src/local/waggle-dance-bridge.ts", - "contentHash": "cf8bc5f2471e9465e188588acf96378cd14df905b7e26b1838527c3824b047ae", - "functions": [ - { - "name": "categorizeSubtype", - "params": [ - "subtype" - ], - "returnType": "'discovery' | 'handoff' | 'insight' | 'alert' | 'coordination'", - "exported": true, - "lineCount": 24 - }, - { - "name": "buildLegacyContent", - "params": [ - "message" - ], - "returnType": "string", - "exported": true, - "lineCount": 17 - }, - { - "name": "inferPriority", - "params": [ - "message" - ], - "returnType": "'low' | 'normal' | 'high' | 'critical'", - "exported": false, - "lineCount": 16 - }, - { - "name": "installWaggleDanceBridge", - "params": [ - "bus" - ], - "returnType": "() => void", - "exported": true, - "lineCount": 24 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/shared", - "specifiers": [ - "WaggleMessage", - "MessageSubtype" - ] - }, - { - "source": "./signal-bus.js", - "specifiers": [ - "SignalBus" - ] - }, - { - "source": "./routes/waggle-signals.js", - "specifiers": [ - "emitWaggleSignal" - ] - } - ], - "exports": [ - "categorizeSubtype", - "buildLegacyContent", - "installWaggleDanceBridge" - ], - "totalLines": 144, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/workspace-sessions.ts": { - "filePath": "packages/server/src/local/workspace-sessions.ts", - "contentHash": "c22d3042eb25dcc678155cc6596f19248349bcd0b9ebe792f2f0ba3d1ebe87d6", - "functions": [], - "classes": [ - { - "name": "WorkspaceSessionManager", - "methods": [ - "constructor", - "setMaxSessions", - "getMaxSessions", - "has", - "get", - "getActive", - "size", - "create", - "addTokens", - "getOrCreate", - "touch", - "pause", - "resume", - "close", - "closeIdleSessions", - "closeAll" - ], - "properties": [ - "sessions", - "maxSessions" - ], - "exported": true, - "lineCount": 190 - } - ], - "imports": [ - { - "source": "@waggle/core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "ToolDefinition", - "Orchestrator" - ] - } - ], - "exports": [ - "WorkspaceSessionManager" - ], - "totalLines": 225, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/workspace-state.ts": { - "filePath": "packages/server/src/local/workspace-state.ts", - "contentHash": "db9c85626fea102b09faf7a78bf207f18f8b7eb2d20c2857f0129a8c5d7d05a2", - "functions": [ - { - "name": "computeFreshness", - "params": [ - "dateStr" - ], - "returnType": "Freshness", - "exported": true, - "lineCount": 10 - }, - { - "name": "extractDecisionItems", - "params": [ - "raw", - "max" - ], - "returnType": "StateItem[]", - "exported": false, - "lineCount": 29 - }, - { - "name": "extractAwarenessItems", - "params": [ - "raw" - ], - "returnType": "StateItem[]", - "exported": false, - "lineCount": 17 - }, - { - "name": "progressToStateItems", - "params": [ - "items", - "type" - ], - "returnType": "StateItem[]", - "exported": false, - "lineCount": 11 - }, - { - "name": "questionsToStateItems", - "params": [ - "questions" - ], - "returnType": "StateItem[]", - "exported": false, - "lineCount": 9 - }, - { - "name": "threadsToStateItems", - "params": [ - "threads", - "freshness" - ], - "returnType": "StateItem[]", - "exported": false, - "lineCount": 11 - }, - { - "name": "deriveNextActions", - "params": [ - "state", - "max" - ], - "returnType": "string[]", - "exported": false, - "lineCount": 37 - }, - { - "name": "buildWorkspaceState", - "params": [ - "opts" - ], - "returnType": "WorkspaceState | null", - "exported": true, - "lineCount": 78 - }, - { - "name": "formatWorkspaceStatePrompt", - "params": [ - "state", - "workspaceName" - ], - "returnType": "string", - "exported": true, - "lineCount": 71 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "./routes/sessions.js", - "specifiers": [ - "extractProgressItems", - "extractOpenQuestions", - "classifyThreads", - "ProgressItem", - "OpenQuestion", - "ThreadInfo" - ] - }, - { - "source": "./routes/session-utils.js", - "specifiers": [ - "sanitizeExtracted" - ] - } - ], - "exports": [ - "computeFreshness", - "buildWorkspaceState", - "formatWorkspaceStatePrompt" - ], - "totalLines": 386, - "hasStructuralAnalysis": true - }, - "packages/server/src/local/ws-team-client.ts": { - "filePath": "packages/server/src/local/ws-team-client.ts", - "contentHash": "2cec0d6b5c826c32f5fab34f3571c0da6ddbec0c0ae4818d388d75bea845dbd8", - "functions": [], - "classes": [ - { - "name": "WsTeamClient", - "methods": [ - "constructor", - "connect", - "handleEvent", - "scheduleReconnect", - "disconnect", - "isConnected", - "send" - ], - "properties": [ - "config", - "ws", - "reconnectDelay", - "maxReconnectDelay", - "shouldReconnect", - "_authenticated", - "reconnectTimer" - ], - "exported": true, - "lineCount": 108 - } - ], - "imports": [ - { - "source": "node:events", - "specifiers": [ - "EventEmitter" - ] - }, - { - "source": "ws", - "specifiers": [ - "WsWebSocket", - "RawData" - ] - }, - { - "source": "./logger.js", - "specifiers": [ - "createLogger" - ] - } - ], - "exports": [ - "WsTeamClient" - ], - "totalLines": 140, - "hasStructuralAnalysis": true - }, - "packages/server/src/middleware/assert-tier.ts": { - "filePath": "packages/server/src/middleware/assert-tier.ts", - "contentHash": "3f9fbd214877c4e7d7615ac1024ed5ed480f980fc2d804cb46553fa1e420f839", - "functions": [ - { - "name": "readTierFromDataDir", - "params": [ - "dataDir" - ], - "returnType": "Tier", - "exported": true, - "lineCount": 12 - }, - { - "name": "readTierFromRequest", - "params": [ - "request" - ], - "returnType": "Tier", - "exported": true, - "lineCount": 3 - }, - { - "name": "requireTier", - "params": [ - "minimumTier" - ], - "exported": true, - "lineCount": 19 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyRequest", - "FastifyReply" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "Tier", - "assertTierCapability", - "TierError", - "parseTier", - "getEffectiveTier" - ] - } - ], - "exports": [ - "readTierFromDataDir", - "readTierFromRequest", - "requireTier" - ], - "totalLines": 64, - "hasStructuralAnalysis": true - }, - "packages/server/src/middleware/audit.ts": { - "filePath": "packages/server/src/middleware/audit.ts", - "contentHash": "b2b857ae0333bd97a1729382f2f07698de3b4a3e908b3f4f4beb531374ead814", - "functions": [ - { - "name": "createAuditWrapper", - "params": [ - "auditService" - ], - "exported": true, - "lineCount": 39 - } - ], - "classes": [], - "imports": [ - { - "source": "../services/audit-service.js", - "specifiers": [ - "AuditService" - ] - }, - { - "source": "../db/schema.js", - "specifiers": [ - "agentAuditLog" - ] - } - ], - "exports": [ - "createAuditWrapper" - ], - "totalLines": 43, - "hasStructuralAnalysis": true - }, - "packages/server/src/plugins/auth.ts": { - "filePath": "packages/server/src/plugins/auth.ts", - "contentHash": "e971eb5e627cfd91045d51ac36dad714098237c31d2826d41d9facdaf97f2aec", - "functions": [], - "classes": [], - "imports": [ - { - "source": "fastify-plugin", - "specifiers": [ - "fp" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance", - "FastifyRequest", - "FastifyReply" - ] - }, - { - "source": "@clerk/fastify", - "specifiers": [ - "createClerkClient", - "verifyToken" - ] - }, - { - "source": "../services/user-service.js", - "specifiers": [ - "UserService" - ] - } - ], - "exports": [], - "totalLines": 62, - "hasStructuralAnalysis": true - }, - "packages/server/src/plugins/redis.ts": { - "filePath": "packages/server/src/plugins/redis.ts", - "contentHash": "9c9ec351c331581e88332eea2f9244c1130931df07a5089bf4c8086fa38ba02e", - "functions": [], - "classes": [], - "imports": [ - { - "source": "fastify-plugin", - "specifiers": [ - "fp" - ] - }, - { - "source": "ioredis", - "specifiers": [ - "Redis" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - } - ], - "exports": [], - "totalLines": 25, - "hasStructuralAnalysis": true - }, - "packages/server/src/proactive/patterns.ts": { - "filePath": "packages/server/src/proactive/patterns.ts", - "contentHash": "da36dcb06eea8c97d0a58b467882a0f1228e5ecc9df932421ee9517800058c53", - "functions": [], - "classes": [], - "imports": [], - "exports": [ - "BUILT_IN_PATTERNS" - ], - "totalLines": 40, - "hasStructuralAnalysis": true - }, - "packages/server/src/routes/agents.ts": { - "filePath": "packages/server/src/routes/agents.ts", - "contentHash": "06979686f54ee22941e6d0a5f348fde5db3061224062a319344759b86bc77b07", - "functions": [ - { - "name": "agentRoutes", - "params": [ - "fastify" - ], - "exported": true, - "lineCount": 156 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "../services/agent-service.js", - "specifiers": [ - "AgentService" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "createAgentSchema", - "createAgentGroupSchema" - ] - } - ], - "exports": [ - "agentRoutes" - ], - "totalLines": 161, - "hasStructuralAnalysis": true - }, - "packages/server/src/routes/analytics.ts": { - "filePath": "packages/server/src/routes/analytics.ts", - "contentHash": "3d82e3629cb4fc3602adaf02fbf56890efd33f5bd364fb0c8e52d8cf318c6705", - "functions": [ - { - "name": "analyticsRoutes", - "params": [ - "fastify" - ], - "exported": true, - "lineCount": 38 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyInstance", - "FastifyRequest", - "FastifyReply" - ] - }, - { - "source": "../services/analytics-service.js", - "specifiers": [ - "AnalyticsService" - ] - }, - { - "source": "../services/team-service.js", - "specifiers": [ - "TeamService" - ] - } - ], - "exports": [ - "analyticsRoutes" - ], - "totalLines": 45, - "hasStructuralAnalysis": true - }, - "packages/server/src/routes/audit.ts": { - "filePath": "packages/server/src/routes/audit.ts", - "contentHash": "193b4492e79c72e0000606a161b3ce29b2052995d4d00b753bbef2a0ff44ed43", - "functions": [ - { - "name": "auditRoutes", - "params": [ - "fastify" - ], - "exported": true, - "lineCount": 93 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyInstance", - "FastifyRequest", - "FastifyReply" - ] - }, - { - "source": "../services/audit-service.js", - "specifiers": [ - "AuditService" - ] - }, - { - "source": "../services/team-service.js", - "specifiers": [ - "TeamService" - ] - } - ], - "exports": [ - "auditRoutes" - ], - "totalLines": 100, - "hasStructuralAnalysis": true - }, - "packages/server/src/routes/capability-governance.ts": { - "filePath": "packages/server/src/routes/capability-governance.ts", - "contentHash": "106da3b585933be8b578ff168a0c1f856d668876e86726229114e9ad79a7eb92", - "functions": [ - { - "name": "capabilityGovernanceRoutes", - "params": [ - "fastify" - ], - "exported": true, - "lineCount": 268 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyInstance", - "FastifyRequest", - "FastifyReply" - ] - }, - { - "source": "../services/team-service.js", - "specifiers": [ - "TeamService" - ] - }, - { - "source": "../services/team-capability-governance.js", - "specifiers": [ - "TeamCapabilityGovernance" - ] - }, - { - "source": "../services/message-service.js", - "specifiers": [ - "MessageService" - ] - } - ], - "exports": [ - "capabilityGovernanceRoutes" - ], - "totalLines": 284, - "hasStructuralAnalysis": true - }, - "packages/server/src/routes/cron.ts": { - "filePath": "packages/server/src/routes/cron.ts", - "contentHash": "9bec83eac1f376062854dc8c85838edc750c86bf600e5eafc45f759e44261f61", - "functions": [ - { - "name": "cronRoutes", - "params": [ - "fastify" - ], - "exported": true, - "lineCount": 79 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyInstance", - "FastifyRequest", - "FastifyReply" - ] - }, - { - "source": "../services/cron-service.js", - "specifiers": [ - "CronService" - ] - }, - { - "source": "../services/team-service.js", - "specifiers": [ - "TeamService" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "createCronSchema" - ] - } - ], - "exports": [ - "cronRoutes" - ], - "totalLines": 85, - "hasStructuralAnalysis": true - }, - "packages/server/src/routes/jobs.ts": { - "filePath": "packages/server/src/routes/jobs.ts", - "contentHash": "6cf78a6f7602bfe97321667a60e2fde31741dd92fc3bce280d3d61da723ba4b7", - "functions": [ - { - "name": "jobRoutes", - "params": [ - "fastify" - ], - "exported": true, - "lineCount": 66 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "queueJobSchema" - ] - }, - { - "source": "../services/team-service.js", - "specifiers": [ - "TeamService" - ] - } - ], - "exports": [ - "jobRoutes" - ], - "totalLines": 71, - "hasStructuralAnalysis": true - }, - "packages/server/src/routes/knowledge.ts": { - "filePath": "packages/server/src/routes/knowledge.ts", - "contentHash": "6b985d4c9a96e9b3c997faee91088284b4494387207bfbe37ee33138a79904e5", - "functions": [ - { - "name": "knowledgeRoutes", - "params": [ - "fastify" - ], - "exported": true, - "lineCount": 97 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyInstance", - "FastifyRequest", - "FastifyReply" - ] - }, - { - "source": "../services/knowledge-service.js", - "specifiers": [ - "KnowledgeService" - ] - }, - { - "source": "../services/team-service.js", - "specifiers": [ - "TeamService" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "createEntitySchema", - "createRelationSchema" - ] - } - ], - "exports": [ - "knowledgeRoutes" - ], - "totalLines": 103, - "hasStructuralAnalysis": true - }, - "packages/server/src/routes/messages.ts": { - "filePath": "packages/server/src/routes/messages.ts", - "contentHash": "3c038e110009772a241819cbd06caa0c37704b7e16d38687ed7df10b28b16ee0", - "functions": [ - { - "name": "messageRoutes", - "params": [ - "fastify" - ], - "exported": true, - "lineCount": 83 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyInstance", - "FastifyRequest", - "FastifyReply" - ] - }, - { - "source": "../services/message-service.js", - "specifiers": [ - "MessageService" - ] - }, - { - "source": "../services/team-service.js", - "specifiers": [ - "TeamService" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "sendMessageSchema" - ] - }, - { - "source": "@waggle/waggle-dance", - "specifiers": [ - "validateMessageTypeCombo" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "MessageType", - "MessageSubtype" - ] - }, - { - "source": "zod", - "specifiers": [ - "z" - ] - } - ], - "exports": [ - "messageRoutes" - ], - "totalLines": 97, - "hasStructuralAnalysis": true - }, - "packages/server/src/routes/resources.ts": { - "filePath": "packages/server/src/routes/resources.ts", - "contentHash": "f728560aff6f16298cc732753ace865b23fcb59ece6f12caa0a6a5767e51ef1a", - "functions": [ - { - "name": "resourceRoutes", - "params": [ - "fastify" - ], - "exported": true, - "lineCount": 73 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyInstance", - "FastifyRequest", - "FastifyReply" - ] - }, - { - "source": "../services/resource-service.js", - "specifiers": [ - "ResourceService" - ] - }, - { - "source": "../services/team-service.js", - "specifiers": [ - "TeamService" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "createResourceSchema" - ] - } - ], - "exports": [ - "resourceRoutes" - ], - "totalLines": 79, - "hasStructuralAnalysis": true - }, - "packages/server/src/routes/scout.ts": { - "filePath": "packages/server/src/routes/scout.ts", - "contentHash": "b8d9c0cf56cf55c30c10b6dc0b373ce14888f1e80a300e1f17f27c3821ab5791", - "functions": [ - { - "name": "scoutRoutes", - "params": [ - "fastify" - ], - "exported": true, - "lineCount": 30 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "../daemons/scout.js", - "specifiers": [ - "ScoutAgent" - ] - } - ], - "exports": [ - "scoutRoutes" - ], - "totalLines": 34, - "hasStructuralAnalysis": true - }, - "packages/server/src/routes/suggestions.ts": { - "filePath": "packages/server/src/routes/suggestions.ts", - "contentHash": "c21056868eb529ee740e02b1b6fffbc178e769cbf31ad716119a8874175e7047", - "functions": [ - { - "name": "suggestionRoutes", - "params": [ - "fastify" - ], - "exported": true, - "lineCount": 29 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "../services/proactive-service.js", - "specifiers": [ - "ProactiveService" - ] - } - ], - "exports": [ - "suggestionRoutes" - ], - "totalLines": 33, - "hasStructuralAnalysis": true - }, - "packages/server/src/routes/tasks.ts": { - "filePath": "packages/server/src/routes/tasks.ts", - "contentHash": "083084959537c5a9daa012058bcef34458c240975b140d41d43b255556548cc5", - "functions": [ - { - "name": "taskRoutes", - "params": [ - "fastify" - ], - "exported": true, - "lineCount": 110 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyInstance", - "FastifyRequest", - "FastifyReply" - ] - }, - { - "source": "../services/task-service.js", - "specifiers": [ - "TaskService" - ] - }, - { - "source": "../services/team-service.js", - "specifiers": [ - "TeamService" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "createTaskSchema", - "updateTaskSchema" - ] - } - ], - "exports": [ - "taskRoutes" - ], - "totalLines": 116, - "hasStructuralAnalysis": true - }, - "packages/server/src/routes/teams.ts": { - "filePath": "packages/server/src/routes/teams.ts", - "contentHash": "07f469a26665f67808a02a2dddb51e53c5947648ec4540aba1f7943af894e819", - "functions": [ - { - "name": "requireTeamRole", - "params": [ - "server", - "request", - "reply", - "slug", - "minRole" - ], - "exported": false, - "lineCount": 29 - }, - { - "name": "teamRoutes", - "params": [ - "fastify" - ], - "exported": true, - "lineCount": 139 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyInstance", - "FastifyRequest", - "FastifyReply" - ] - }, - { - "source": "../services/team-service.js", - "specifiers": [ - "TeamService" - ] - }, - { - "source": "../db/schema.js", - "specifiers": [ - "users" - ] - }, - { - "source": "drizzle-orm", - "specifiers": [ - "eq" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "createTeamSchema", - "inviteMemberSchema", - "updateMemberSchema" - ] - } - ], - "exports": [ - "teamRoutes" - ], - "totalLines": 178, - "hasStructuralAnalysis": true - }, - "packages/server/src/routes/webhooks.ts": { - "filePath": "packages/server/src/routes/webhooks.ts", - "contentHash": "a63936298599ce74ddd17361af93d1f97799ac6469c846d46fe529d8b00eb48f", - "functions": [ - { - "name": "webhookRoutes", - "params": [ - "fastify" - ], - "exported": true, - "lineCount": 38 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "../db/schema.js", - "specifiers": [ - "users" - ] - }, - { - "source": "drizzle-orm", - "specifiers": [ - "eq" - ] - } - ], - "exports": [ - "webhookRoutes" - ], - "totalLines": 52, - "hasStructuralAnalysis": true - }, - "packages/server/src/scheduler/cron-runner.ts": { - "filePath": "packages/server/src/scheduler/cron-runner.ts", - "contentHash": "d3cc5326ef8db7652d5139413d94cb946178889e03b3db32c53ea0a3bce53364", - "functions": [], - "classes": [ - { - "name": "CronRunner", - "methods": [ - "constructor", - "start", - "stop", - "tick" - ], - "properties": [ - "interval" - ], - "exported": true, - "lineCount": 46 - } - ], - "imports": [ - { - "source": "drizzle-orm", - "specifiers": [ - "lte", - "eq", - "and" - ] - }, - { - "source": "cron-parser", - "specifiers": [ - "cronParser" - ] - }, - { - "source": "../db/schema.js", - "specifiers": [ - "cronSchedules" - ] - }, - { - "source": "../db/connection.js", - "specifiers": [ - "Db" - ] - }, - { - "source": "../services/job-service.js", - "specifiers": [ - "JobService" - ] - } - ], - "exports": [ - "CronRunner" - ], - "totalLines": 54, - "hasStructuralAnalysis": true - }, - "packages/server/src/services/agent-group-executor.ts": { - "filePath": "packages/server/src/services/agent-group-executor.ts", - "contentHash": "091f2c71168c1a840d33fb5f3a284be1267241dd3f404a87742c0685b8bc4dd3", - "functions": [ - { - "name": "buildWorkflowFromGroup", - "params": [ - "group", - "task" - ], - "returnType": "WorkflowTemplate", - "exported": true, - "lineCount": 57 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/agent", - "specifiers": [ - "WorkflowTemplate", - "WorkflowStep" - ] - } - ], - "exports": [ - "buildWorkflowFromGroup" - ], - "totalLines": 94, - "hasStructuralAnalysis": true - }, - "packages/server/src/services/agent-service.ts": { - "filePath": "packages/server/src/services/agent-service.ts", - "contentHash": "af65edea31bd6db63c71100b8dec3f0b665bba085cc7f3219c78fbedd27d7b8f", - "functions": [], - "classes": [ - { - "name": "AgentService", - "methods": [ - "constructor", - "create", - "list", - "getById", - "update", - "delete", - "createGroup", - "listGroups", - "getGroup", - "updateGroup", - "deleteGroup", - "createJob" - ], - "properties": [], - "exported": true, - "lineCount": 208 - } - ], - "imports": [ - { - "source": "drizzle-orm", - "specifiers": [ - "eq", - "and" - ] - }, - { - "source": "../db/schema.js", - "specifiers": [ - "agents", - "agentGroups", - "agentGroupMembers", - "agentJobs" - ] - }, - { - "source": "../db/connection.js", - "specifiers": [ - "Db" - ] - } - ], - "exports": [ - "AgentService" - ], - "totalLines": 213, - "hasStructuralAnalysis": true - }, - "packages/server/src/services/analytics-service.ts": { - "filePath": "packages/server/src/services/analytics-service.ts", - "contentHash": "a1ab3c9f5c6f0f36273f5635ef465b1ce7dfb26fd0fd5fd77856df750712dd68", - "functions": [], - "classes": [ - { - "name": "AnalyticsService", - "methods": [ - "constructor", - "getAnalytics", - "getActiveUsers", - "getTokenUsage", - "getTopTools", - "getTopCommands", - "getCapabilityGaps", - "getPerformanceTrends" - ], - "properties": [], - "exported": true, - "lineCount": 268 - } - ], - "imports": [ - { - "source": "drizzle-orm", - "specifiers": [ - "eq", - "and", - "sql", - "count", - "desc", - "gte", - "lt" - ] - }, - { - "source": "../db/schema.js", - "specifiers": [ - "teamMembers", - "users", - "tasks", - "agentAuditLog", - "agentJobs", - "teamCapabilityRequests", - "messages" - ] - }, - { - "source": "../db/connection.js", - "specifiers": [ - "Db" - ] - } - ], - "exports": [ - "AnalyticsService" - ], - "totalLines": 292, - "hasStructuralAnalysis": true - }, - "packages/server/src/services/audit-service.ts": { - "filePath": "packages/server/src/services/audit-service.ts", - "contentHash": "aada19a832c0a1355e1990220551dcbeec35a3b3c2a302513a33e402935e6448", - "functions": [], - "classes": [ - { - "name": "AuditService", - "methods": [ - "constructor", - "log", - "list", - "getById", - "approve", - "reject", - "getPendingApprovals" - ], - "properties": [], - "exported": true, - "lineCount": 70 - } - ], - "imports": [ - { - "source": "drizzle-orm", - "specifiers": [ - "eq", - "and", - "desc", - "isNull" - ] - }, - { - "source": "../db/schema.js", - "specifiers": [ - "agentAuditLog" - ] - }, - { - "source": "../db/connection.js", - "specifiers": [ - "Db" - ] - } - ], - "exports": [ - "AuditService" - ], - "totalLines": 75, - "hasStructuralAnalysis": true - }, - "packages/server/src/services/cron-service.ts": { - "filePath": "packages/server/src/services/cron-service.ts", - "contentHash": "f777af7447f4e4e465fa7296027eb76c72ebc2393c128a95f423540c0dd63da8", - "functions": [ - { - "name": "getNextRunAt", - "params": [ - "cronExpr" - ], - "returnType": "Date", - "exported": true, - "lineCount": 4 - } - ], - "classes": [ - { - "name": "CronService", - "methods": [ - "constructor", - "create", - "list", - "getById", - "update", - "markRun" - ], - "properties": [], - "exported": true, - "lineCount": 71 - } - ], - "imports": [ - { - "source": "drizzle-orm", - "specifiers": [ - "eq", - "and" - ] - }, - { - "source": "cron-parser", - "specifiers": [ - "cronParser" - ] - }, - { - "source": "../db/schema.js", - "specifiers": [ - "cronSchedules" - ] - }, - { - "source": "../db/connection.js", - "specifiers": [ - "Db" - ] - } - ], - "exports": [ - "getNextRunAt", - "CronService" - ], - "totalLines": 83, - "hasStructuralAnalysis": true - }, - "packages/server/src/services/job-service.ts": { - "filePath": "packages/server/src/services/job-service.ts", - "contentHash": "f21cd811830d1c44addf9f4f61949aade364b2c4e9789f2c79ced49a58a8bd19", - "functions": [], - "classes": [ - { - "name": "JobService", - "methods": [ - "constructor", - "createJob", - "getJob", - "listByTeam", - "updateJobStatus", - "cancelJob", - "close" - ], - "properties": [ - "queue" - ], - "exported": true, - "lineCount": 85 - } - ], - "imports": [ - { - "source": "bullmq", - "specifiers": [ - "Queue" - ] - }, - { - "source": "drizzle-orm", - "specifiers": [ - "eq", - "desc" - ] - }, - { - "source": "../db/schema.js", - "specifiers": [ - "agentJobs" - ] - }, - { - "source": "../db/connection.js", - "specifiers": [ - "Db" - ] - } - ], - "exports": [ - "JobService" - ], - "totalLines": 91, - "hasStructuralAnalysis": true - }, - "packages/server/src/services/knowledge-service.ts": { - "filePath": "packages/server/src/services/knowledge-service.ts", - "contentHash": "df446f9d10da0f2bbc2572b620a421c669e46c08c05b8f9e95375b42ca8c2d19", - "functions": [], - "classes": [ - { - "name": "KnowledgeService", - "methods": [ - "constructor", - "createEntity", - "listEntities", - "getEntity", - "createRelation", - "queryGraph" - ], - "properties": [], - "exported": true, - "lineCount": 145 - } - ], - "imports": [ - { - "source": "drizzle-orm", - "specifiers": [ - "eq", - "and", - "or", - "ilike", - "inArray" - ] - }, - { - "source": "../db/schema.js", - "specifiers": [ - "teamEntities", - "teamRelations" - ] - }, - { - "source": "../db/connection.js", - "specifiers": [ - "Db" - ] - } - ], - "exports": [ - "KnowledgeService" - ], - "totalLines": 155, - "hasStructuralAnalysis": true - }, - "packages/server/src/services/message-service.ts": { - "filePath": "packages/server/src/services/message-service.ts", - "contentHash": "99e05c52eacfcc500904a4332d25b2020f3ce7ec7e41984c581630c17a07084f", - "functions": [], - "classes": [ - { - "name": "MessageService", - "methods": [ - "constructor", - "send", - "list", - "checkHive" - ], - "properties": [], - "exported": true, - "lineCount": 108 - } - ], - "imports": [ - { - "source": "drizzle-orm", - "specifiers": [ - "eq", - "and", - "desc", - "sql" - ] - }, - { - "source": "../db/schema.js", - "specifiers": [ - "messages", - "teamEntities", - "tasks" - ] - }, - { - "source": "../db/connection.js", - "specifiers": [ - "Db" - ] - }, - { - "source": "@waggle/waggle-dance", - "specifiers": [ - "HiveQuery", - "HiveQueryResult" - ] - }, - { - "source": "ioredis", - "specifiers": [ - "Redis" - ] - } - ], - "exports": [ - "MessageService" - ], - "totalLines": 120, - "hasStructuralAnalysis": true - }, - "packages/server/src/services/proactive-service.ts": { - "filePath": "packages/server/src/services/proactive-service.ts", - "contentHash": "2022e6afc75e7602c755081e0899cc079bf98a4b349de7bb5d40b70f043a5e6f", - "functions": [], - "classes": [ - { - "name": "ProactiveService", - "methods": [ - "constructor", - "ensurePatternsSeeded", - "evaluate", - "matchPattern", - "listPending", - "updateStatus" - ], - "properties": [], - "exported": true, - "lineCount": 89 - } - ], - "imports": [ - { - "source": "drizzle-orm", - "specifiers": [ - "eq", - "and", - "desc" - ] - }, - { - "source": "../db/schema.js", - "specifiers": [ - "proactivePatterns", - "suggestionsLog" - ] - }, - { - "source": "../db/connection.js", - "specifiers": [ - "Db" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "MAX_SUGGESTIONS_PER_INTERACTION" - ] - }, - { - "source": "../proactive/patterns.js", - "specifiers": [ - "BUILT_IN_PATTERNS" - ] - } - ], - "exports": [ - "ProactiveService" - ], - "totalLines": 96, - "hasStructuralAnalysis": true - }, - "packages/server/src/services/resource-service.ts": { - "filePath": "packages/server/src/services/resource-service.ts", - "contentHash": "c0637b6e4162c0c07aba04dde21f3b64ae65aed11d73932d6792ee2cf31f71b6", - "functions": [], - "classes": [ - { - "name": "ResourceService", - "methods": [ - "constructor", - "share", - "list", - "rate", - "incrementUseCount" - ], - "properties": [], - "exported": true, - "lineCount": 73 - } - ], - "imports": [ - { - "source": "drizzle-orm", - "specifiers": [ - "eq", - "and" - ] - }, - { - "source": "../db/schema.js", - "specifiers": [ - "teamResources" - ] - }, - { - "source": "../db/connection.js", - "specifiers": [ - "Db" - ] - } - ], - "exports": [ - "ResourceService" - ], - "totalLines": 78, - "hasStructuralAnalysis": true - }, - "packages/server/src/services/task-service.ts": { - "filePath": "packages/server/src/services/task-service.ts", - "contentHash": "d1675469ff06a4e10c2df46d5dd4b86d0bb1d99fc387d7d5db32452e6b588c0e", - "functions": [], - "classes": [ - { - "name": "TaskService", - "methods": [ - "constructor", - "create", - "list", - "get", - "update", - "claim" - ], - "properties": [], - "exported": true, - "lineCount": 81 - } - ], - "imports": [ - { - "source": "drizzle-orm", - "specifiers": [ - "eq", - "and" - ] - }, - { - "source": "../db/schema.js", - "specifiers": [ - "tasks" - ] - }, - { - "source": "../db/connection.js", - "specifiers": [ - "Db" - ] - } - ], - "exports": [ - "TaskService" - ], - "totalLines": 92, - "hasStructuralAnalysis": true - }, - "packages/server/src/services/team-capability-governance.ts": { - "filePath": "packages/server/src/services/team-capability-governance.ts", - "contentHash": "7494287a38715b728220c40fccfec7a40b1b0dcb002616008c1f555673993e7f", - "functions": [ - { - "name": "governanceRiskRank", - "params": [ - "level" - ], - "returnType": "number", - "exported": false, - "lineCount": 6 - }, - { - "name": "riskExceedsThreshold", - "params": [ - "risk", - "threshold" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 4 - }, - { - "name": "resolvePermission", - "params": [ - "perms", - "capabilityName", - "capabilityType", - "risk" - ], - "returnType": "PermissionResult", - "exported": true, - "lineCount": 22 - }, - { - "name": "filterByPermissions", - "params": [ - "perms", - "capabilities" - ], - "returnType": "Array<{ name: string; type: string; risk?: string; result: PermissionResult }>", - "exported": true, - "lineCount": 9 - }, - { - "name": "getDefaultPolicies", - "params": [], - "returnType": "DefaultPolicy[]", - "exported": true, - "lineCount": 22 - } - ], - "classes": [ - { - "name": "TeamCapabilityGovernance", - "methods": [ - "constructor", - "getEffectivePermissions", - "listPolicies", - "upsertPolicy", - "seedDefaultPolicies", - "listOverrides", - "createOverride", - "deleteOverride", - "listRequests", - "submitRequest", - "getRequest", - "decideRequest" - ], - "properties": [], - "exported": true, - "lineCount": 245 - } - ], - "imports": [ - { - "source": "drizzle-orm", - "specifiers": [ - "eq", - "and", - "desc" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "RISK_LEVELS", - "riskRank", - "RiskLevel" - ] - }, - { - "source": "../db/schema.js", - "specifiers": [ - "teamCapabilityPolicies", - "teamCapabilityOverrides", - "teamCapabilityRequests" - ] - }, - { - "source": "../db/connection.js", - "specifiers": [ - "DbExecutor" - ] - } - ], - "exports": [ - "riskExceedsThreshold", - "resolvePermission", - "filterByPermissions", - "getDefaultPolicies", - "TeamCapabilityGovernance" - ], - "totalLines": 370, - "hasStructuralAnalysis": true - }, - "packages/server/src/services/team-service.ts": { - "filePath": "packages/server/src/services/team-service.ts", - "contentHash": "d23d735a888311aa98c04f2fd6c0124947d8bc1fbed9a5e6841bd8c8298c580c", - "functions": [], - "classes": [ - { - "name": "TeamService", - "methods": [ - "constructor", - "create", - "getBySlug", - "listForUser", - "update", - "addMember", - "removeMember", - "updateMember", - "getMembership", - "getMembers" - ], - "properties": [], - "exported": true, - "lineCount": 126 - } - ], - "imports": [ - { - "source": "drizzle-orm", - "specifiers": [ - "eq", - "and", - "sql" - ] - }, - { - "source": "../db/schema.js", - "specifiers": [ - "teams", - "teamMembers", - "users" - ] - }, - { - "source": "../db/connection.js", - "specifiers": [ - "Db" - ] - }, - { - "source": "./team-capability-governance.js", - "specifiers": [ - "TeamCapabilityGovernance" - ] - } - ], - "exports": [ - "TeamService" - ], - "totalLines": 132, - "hasStructuralAnalysis": true - }, - "packages/server/src/services/user-service.ts": { - "filePath": "packages/server/src/services/user-service.ts", - "contentHash": "11ac1577ea11f1f143250d43cfdce6e0b21480005628201702297bd2415a9865", - "functions": [], - "classes": [ - { - "name": "UserService", - "methods": [ - "constructor", - "getByClerkId", - "getById", - "upsertFromClerk" - ], - "properties": [], - "exported": true, - "lineCount": 48 - } - ], - "imports": [ - { - "source": "drizzle-orm", - "specifiers": [ - "eq" - ] - }, - { - "source": "../db/schema.js", - "specifiers": [ - "users" - ] - }, - { - "source": "../db/connection.js", - "specifiers": [ - "Db" - ] - } - ], - "exports": [ - "UserService" - ], - "totalLines": 60, - "hasStructuralAnalysis": true - }, - "packages/server/src/stripe/checkout.ts": { - "filePath": "packages/server/src/stripe/checkout.ts", - "contentHash": "cda3863121f1909dfd1a9cdd83aa259d21e1a9bec50643e739b2c6b5d5790620", - "functions": [ - { - "name": "checkoutRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 45 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "Tier" - ] - }, - { - "source": "./index.js", - "specifiers": [ - "getStripe", - "priceIdForTier" - ] - } - ], - "exports": [ - "checkoutRoutes" - ], - "totalLines": 58, - "hasStructuralAnalysis": true - }, - "packages/server/src/stripe/index.ts": { - "filePath": "packages/server/src/stripe/index.ts", - "contentHash": "3ac10e7bffbf6dab67c0377a2fc38992ba550d8c72a130520efe6ab4bfe30e07", - "functions": [ - { - "name": "getStripe", - "params": [], - "returnType": "import('stripe').default | null", - "exported": true, - "lineCount": 19 - }, - { - "name": "readPriceEnvs", - "params": [ - "...keys" - ], - "returnType": "string[]", - "exported": false, - "lineCount": 8 - }, - { - "name": "tierFromPriceId", - "params": [ - "priceId" - ], - "returnType": "Tier | null", - "exported": true, - "lineCount": 17 - }, - { - "name": "priceIdForTier", - "params": [ - "tier", - "billingPeriod" - ], - "returnType": "string | null", - "exported": true, - "lineCount": 23 - }, - { - "name": "statusRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 3 - }, - { - "name": "stripeRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 16 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "Tier", - "TIER_CAPABILITIES" - ] - } - ], - "exports": [ - "checkoutRoutes", - "webhookRoutes", - "portalRoutes", - "syncRoutes", - "getStripe", - "tierFromPriceId", - "priceIdForTier", - "statusRoutes", - "stripeRoutes" - ], - "totalLines": 147, - "hasStructuralAnalysis": true - }, - "packages/server/src/stripe/portal.ts": { - "filePath": "packages/server/src/stripe/portal.ts", - "contentHash": "aa29f0f36a083c9fb21036e9d9eb4dd4155eca4a19cb15dcb9dc55f4ae045a86", - "functions": [ - { - "name": "portalRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 38 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - }, - { - "source": "../middleware/assert-tier.js", - "specifiers": [ - "requireTier" - ] - }, - { - "source": "./index.js", - "specifiers": [ - "getStripe" - ] - } - ], - "exports": [ - "portalRoutes" - ], - "totalLines": 52, - "hasStructuralAnalysis": true - }, - "packages/server/src/stripe/sync.ts": { - "filePath": "packages/server/src/stripe/sync.ts", - "contentHash": "1bc19017b86d26eef1e0d0b1d4af94f5a98f93446f7409f529d75d80c9e2e576", - "functions": [ - { - "name": "syncRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 73 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "Tier", - "parseTier" - ] - }, - { - "source": "./index.js", - "specifiers": [ - "getStripe", - "tierFromPriceId" - ] - }, - { - "source": "./webhook.js", - "specifiers": [ - "updateUserTier" - ] - } - ], - "exports": [ - "syncRoutes" - ], - "totalLines": 91, - "hasStructuralAnalysis": true - }, - "packages/server/src/stripe/webhook.ts": { - "filePath": "packages/server/src/stripe/webhook.ts", - "contentHash": "4ccb9d7de208a8d7e9e24bd5d2fac1750e169c260daa60afea94467e095b13ac", - "functions": [ - { - "name": "atomicWriteJson", - "params": [ - "filePath", - "data" - ], - "returnType": "void", - "exported": false, - "lineCount": 5 - }, - { - "name": "serializeWebhook", - "params": [ - "fn" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 5 - }, - { - "name": "updateUserTier", - "params": [ - "dataDir", - "tier", - "customerId" - ], - "returnType": "void", - "exported": true, - "lineCount": 11 - }, - { - "name": "webhookRoutes", - "params": [ - "server" - ], - "exported": true, - "lineCount": 107 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyPluginAsync" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "Tier", - "parseTier", - "getCapabilities" - ] - }, - { - "source": "./index.js", - "specifiers": [ - "getStripe", - "tierFromPriceId" - ] - } - ], - "exports": [ - "webhookRoutes", - "updateUserTier" - ], - "totalLines": 173, - "hasStructuralAnalysis": true - }, - "packages/server/src/ws/connection-manager.ts": { - "filePath": "packages/server/src/ws/connection-manager.ts", - "contentHash": "854b0020acbf1abc9b5cf56935733f5f90324c18adc72c171a2d86f36c295ece", - "functions": [], - "classes": [ - { - "name": "ConnectionManager", - "methods": [ - "add", - "remove", - "broadcast", - "sendTo", - "getConnectedUsers", - "getTeamCount" - ], - "properties": [ - "connections" - ], - "exported": true, - "lineCount": 43 - } - ], - "imports": [ - { - "source": "ws", - "specifiers": [ - "WebSocket" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "WsServerEvent" - ] - } - ], - "exports": [ - "ConnectionManager" - ], - "totalLines": 47, - "hasStructuralAnalysis": true - }, - "packages/server/src/ws/gateway.ts": { - "filePath": "packages/server/src/ws/gateway.ts", - "contentHash": "a8882d1f77b87c4880653df917dec02e8b92a248e1cc431ea100121afd4a7464", - "functions": [ - { - "name": "isJwtStructure", - "params": [ - "token" - ], - "returnType": "boolean", - "exported": false, - "lineCount": 7 - }, - { - "name": "setWsTokenVerifier", - "params": [ - "verifier" - ], - "returnType": "void", - "exported": true, - "lineCount": 3 - }, - { - "name": "wsGateway", - "params": [ - "fastify" - ], - "exported": true, - "lineCount": 221 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "WsClientEvent", - "WsServerEvent" - ] - }, - { - "source": "@clerk/fastify", - "specifiers": [ - "createClerkClient", - "verifyToken" - ] - }, - { - "source": "./connection-manager.js", - "specifiers": [ - "ConnectionManager" - ] - }, - { - "source": "../db/schema.js", - "specifiers": [ - "teams", - "messages", - "users" - ] - }, - { - "source": "drizzle-orm", - "specifiers": [ - "eq" - ] - } - ], - "exports": [ - "connectionManager", - "setWsTokenVerifier", - "wsGateway" - ], - "totalLines": 252, - "hasStructuralAnalysis": true - }, - "packages/server/tests/audit.test.ts": { - "filePath": "packages/server/tests/audit.test.ts", - "contentHash": "9e58384efb27fcfa149c43264ae5bf6adcf3bafd9a9b28deb5e5cc30e0b0bf8f", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyRequest", - "FastifyReply" - ] - }, - { - "source": "../src/index.js", - "specifiers": [ - "buildServer" - ] - }, - { - "source": "../src/db/schema.js", - "specifiers": [ - "users", - "teams", - "teamMembers", - "agentAuditLog" - ] - }, - { - "source": "drizzle-orm", - "specifiers": [ - "sql" - ] - }, - { - "source": "../src/services/audit-service.js", - "specifiers": [ - "AuditService" - ] - } - ], - "exports": [], - "totalLines": 235, - "hasStructuralAnalysis": true - }, - "packages/server/tests/auth.test.ts": { - "filePath": "packages/server/tests/auth.test.ts", - "contentHash": "bbd8aaa41b440b2e483fc6f75b0292e00443f68c17fad67354d7776c85874247", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "afterAll", - "beforeAll" - ] - }, - { - "source": "../src/index.js", - "specifiers": [ - "buildServer" - ] - }, - { - "source": "../src/db/schema.js", - "specifiers": [ - "users" - ] - }, - { - "source": "drizzle-orm", - "specifiers": [ - "sql" - ] - }, - { - "source": "../src/services/user-service.js", - "specifiers": [ - "UserService" - ] - } - ], - "exports": [], - "totalLines": 136, - "hasStructuralAnalysis": true - }, - "packages/server/tests/backup-restore.test.ts": { - "filePath": "packages/server/tests/backup-restore.test.ts", - "contentHash": "f2977cd5b807751a099e153c133f16689552f7446001251c877af0f0273282d7", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll", - "beforeEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:crypto", - "specifiers": [ - "* as crypto" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "SessionStore", - "FrameStore" - ] - }, - { - "source": "../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "./test-utils.js", - "specifiers": [ - "injectWithAuth", - "resetRateLimiter" - ] - } - ], - "exports": [], - "totalLines": 351, - "hasStructuralAnalysis": true - }, - "packages/server/tests/backup-streaming.test.ts": { - "filePath": "packages/server/tests/backup-streaming.test.ts", - "contentHash": "65b7891fca83e73838a950378907af16176506085169e0cb72832dc81c807f1e", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll", - "beforeEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "SessionStore", - "FrameStore" - ] - }, - { - "source": "../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "./test-utils.js", - "specifiers": [ - "injectWithAuth", - "resetRateLimiter" - ] - }, - { - "source": "../src/local/routes/backup.js", - "specifiers": [ - "MAX_BACKUP_SIZE", - "enumerateFiles" - ] - } - ], - "exports": [], - "totalLines": 220, - "hasStructuralAnalysis": true - }, - "packages/server/tests/behavioral-spec-active.test.ts": { - "filePath": "packages/server/tests/behavioral-spec-active.test.ts", - "contentHash": "6997fc7e0c9b4c470d9a26c710baf035e141cb503e3ab1ee9e446cca1ea687c1", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "BEHAVIORAL_SPEC", - "deployBehavioralSpecOverride" - ] - }, - { - "source": "../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - } - ], - "exports": [], - "totalLines": 135, - "hasStructuralAnalysis": true - }, - "packages/server/tests/benchmarks/aggregate.test.ts": { - "filePath": "packages/server/tests/benchmarks/aggregate.test.ts", - "contentHash": "2f02adcf7349bbee73fd4dafcf87e5a1259cd0a33a6b5d333645306d666b47c4", - "functions": [ - { - "name": "mkRecord", - "params": [ - "turnId", - "cell", - "verdict", - "failureMode", - "category", - "usd" - ], - "returnType": "JudgedJsonlRecord", - "exported": false, - "lineCount": 30 - }, - { - "name": "fixture12", - "params": [], - "returnType": "JudgedJsonlRecord[]", - "exported": false, - "lineCount": 12 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../../src/benchmarks/aggregate.ts", - "specifiers": [ - "buildReport", - "perCellRollup", - "perCategoryRollup", - "crossCellDeltaMatrix", - "costSummary", - "projectVerdict6", - "renderMarkdown", - "WEIGHTS", - "VERDICT6_VALUES", - "JudgedJsonlRecord" - ] - } - ], - "exports": [], - "totalLines": 312, - "hasStructuralAnalysis": true - }, - "packages/server/tests/benchmarks/ensemble-tiebreak.test.ts": { - "filePath": "packages/server/tests/benchmarks/ensemble-tiebreak.test.ts", - "contentHash": "fc14506ebe5b6a19cc24b5be8dde40de916117623d759328f59c925e5f11b146", - "functions": [ - { - "name": "vote", - "params": [ - "verdict", - "failure_mode", - "model" - ], - "returnType": "Vote", - "exported": false, - "lineCount": 8 - }, - { - "name": "makeLogger", - "params": [], - "returnType": "{ logger: TieBreakLogger; events: Array<{ event: string; fields: Record }> }", - "exported": false, - "lineCount": 12 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi" - ] - }, - { - "source": "../../src/benchmarks/judge/ensemble-tiebreak.js", - "specifiers": [ - "resolveTieBreak", - "DEFAULT_FOURTH_VENDOR", - "PM_ESCALATION_VERDICT", - "Vote", - "TieBreakLogger", - "CallFourthVendor" - ] - } - ], - "exports": [], - "totalLines": 256, - "hasStructuralAnalysis": true - }, - "packages/server/tests/benchmarks/failure-mode-judge.test.ts": { - "filePath": "packages/server/tests/benchmarks/failure-mode-judge.test.ts", - "contentHash": "157dde58c7620773ce19ac931528ae88a8af9b437c1e812ad643471bf34f3f74", - "functions": [ - { - "name": "mkResult", - "params": [ - "verdict", - "failure_mode", - "rationale", - "judge_model" - ], - "returnType": "JudgeResult", - "exported": false, - "lineCount": 3 - } - ], - "classes": [ - { - "name": "ScriptedLlmClient", - "methods": [ - "constructor", - "complete" - ], - "properties": [ - "calls", - "queue" - ], - "exported": false, - "lineCount": 14 - } - ], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach" - ] - }, - { - "source": "../../src/benchmarks/judge/failure-mode-judge.js", - "specifiers": [ - "buildJudgePrompt", - "computeFleissKappa", - "extractJsonBody", - "judgeAnswer", - "judgeEnsemble", - "JudgeParseError", - "RETRY_REMINDER", - "FailureMode", - "JudgeResult", - "LlmClient", - "Verdict" - ] - } - ], - "exports": [], - "totalLines": 341, - "hasStructuralAnalysis": true - }, - "packages/server/tests/benchmarks/verbose-fixed-cell-isolation.test.ts": { - "filePath": "packages/server/tests/benchmarks/verbose-fixed-cell-isolation.test.ts", - "contentHash": "69472fecc10f59368e4186a419a6f9f0a0830cf0b20942962e29521d2a6857f8", - "functions": [ - { - "name": "installSpies", - "params": [], - "returnType": "Spies", - "exported": false, - "lineCount": 35 - } - ], - "classes": [ - { - "name": "RecordingLlmClient", - "methods": [ - "call" - ], - "properties": [ - "calls" - ], - "exported": false, - "lineCount": 14 - } - ], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach", - "vi" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "HybridSearch", - "FrameStore", - "KnowledgeGraph", - "MindDB" - ] - }, - { - "source": "@waggle/wiki-compiler", - "specifiers": [ - "WikiCompiler" - ] - }, - { - "source": "../../../agent/src/combined-retrieval.js", - "specifiers": [ - "CombinedRetrieval" - ] - }, - { - "source": "../../../../benchmarks/harness/src/controls.js", - "specifiers": [ - "controls" - ] - }, - { - "source": "../../../../benchmarks/harness/src/llm.js", - "specifiers": [ - "LlmClient", - "LlmCallInput", - "LlmCallResult" - ] - }, - { - "source": "../../../../benchmarks/harness/src/types.js", - "specifiers": [ - "DatasetInstance", - "ModelSpec" - ] - } - ], - "exports": [], - "totalLines": 217, - "hasStructuralAnalysis": true - }, - "packages/server/tests/browse-helpers.test.ts": { - "filePath": "packages/server/tests/browse-helpers.test.ts", - "contentHash": "41272d72bd500e5a7ab9e0e321eea3a9d212cf8539bffebfe9dc7f06b38fa363", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/local/routes/browse-helpers.js", - "specifiers": [ - "listWindowsDrives", - "shouldListDrives" - ] - } - ], - "exports": [], - "totalLines": 87, - "hasStructuralAnalysis": true - }, - "packages/server/tests/chat-api.test.ts": { - "filePath": "packages/server/tests/chat-api.test.ts", - "contentHash": "f3c2fdf19d502bd70ecd45ae6790a202de27f5d213289a6042fd11811584eae7", - "functions": [ - { - "name": "parseSSE", - "params": [ - "raw" - ], - "returnType": "Array<{ event: string; data: string }>", - "exported": false, - "lineCount": 19 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "FrameStore", - "SessionStore" - ] - }, - { - "source": "../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "AgentLoopConfig", - "AgentResponse" - ] - }, - { - "source": "../src/local/routes/chat.js", - "specifiers": [ - "applyContextWindow", - "MAX_CONTEXT_MESSAGES" - ] - }, - { - "source": "./test-utils.js", - "specifiers": [ - "injectWithAuth", - "resetRateLimiter" - ] - } - ], - "exports": [], - "totalLines": 544, - "hasStructuralAnalysis": true - }, - "packages/server/tests/cockpit-health.test.ts": { - "filePath": "packages/server/tests/cockpit-health.test.ts", - "contentHash": "1aaf3cacd2020cb7b051ba9324558d5e81351c5e4ad2b4a65974195e1815052a", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "FrameStore", - "SessionStore" - ] - }, - { - "source": "../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - } - ], - "exports": [], - "totalLines": 90, - "hasStructuralAnalysis": true - }, - "packages/server/tests/config.test.ts": { - "filePath": "packages/server/tests/config.test.ts", - "contentHash": "5abab418b76485dd19ec772c8d9701a2ef5323ac45ab2f6fa47556703e58cc1a", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "../src/config.js", - "specifiers": [ - "loadConfig" - ] - } - ], - "exports": [], - "totalLines": 54, - "hasStructuralAnalysis": true - }, - "packages/server/tests/cron.test.ts": { - "filePath": "packages/server/tests/cron.test.ts", - "contentHash": "e4694b23aca617e63f13df22714f745c2524c60271133984941a311ee811dbf0", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyRequest", - "FastifyReply" - ] - }, - { - "source": "../src/index.js", - "specifiers": [ - "buildServer" - ] - }, - { - "source": "../src/db/schema.js", - "specifiers": [ - "users", - "teams", - "teamMembers", - "cronSchedules", - "agentJobs" - ] - }, - { - "source": "drizzle-orm", - "specifiers": [ - "sql", - "eq" - ] - }, - { - "source": "../src/scheduler/cron-runner.js", - "specifiers": [ - "CronRunner" - ] - } - ], - "exports": [], - "totalLines": 249, - "hasStructuralAnalysis": true - }, - "packages/server/tests/cross-platform.test.ts": { - "filePath": "packages/server/tests/cross-platform.test.ts", - "contentHash": "e4f671707c6c634f0a4e015f94d27ef68fed2628425752bb6f5c39af91064a46", - "functions": [ - { - "name": "createTmpDir", - "params": [ - "prefix" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "cleanupDir", - "params": [ - "dir" - ], - "returnType": "void", - "exported": false, - "lineCount": 5 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "FrameStore", - "SessionStore", - "VaultStore" - ] - }, - { - "source": "../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "./test-utils.js", - "specifiers": [ - "injectWithAuth" - ] - } - ], - "exports": [], - "totalLines": 456, - "hasStructuralAnalysis": true - }, - "packages/server/tests/d11-datadir-tier.test.ts": { - "filePath": "packages/server/tests/d11-datadir-tier.test.ts", - "contentHash": "635b846d4f600ecfdfcdae9081bd1810fa2a9a0b9703b9dd38f995ca16112935", - "functions": [ - { - "name": "makeTmpDir", - "params": [], - "returnType": "string", - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "afterEach", - "vi" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "../src/local/service.js", - "specifiers": [ - "startService", - "resolveDataDir" - ] - }, - { - "source": "../src/middleware/assert-tier.js", - "specifiers": [ - "readTierFromDataDir" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - } - ], - "exports": [], - "totalLines": 130, - "hasStructuralAnalysis": true - }, - "packages/server/tests/daemons/hive-mind.test.ts": { - "filePath": "packages/server/tests/daemons/hive-mind.test.ts", - "contentHash": "09124645ddcc0f70ba8710bccfbb1e9dc97b08f0b9199661eca7b714ac360a56", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "../../src/index.js", - "specifiers": [ - "buildServer" - ] - }, - { - "source": "../../src/db/schema.js", - "specifiers": [ - "users", - "teams", - "teamMembers", - "teamResources", - "agentJobs", - "tasks", - "messages" - ] - }, - { - "source": "drizzle-orm", - "specifiers": [ - "sql", - "eq" - ] - }, - { - "source": "../../src/daemons/hive-mind.js", - "specifiers": [ - "HiveMindAgent" - ] - } - ], - "exports": [], - "totalLines": 171, - "hasStructuralAnalysis": true - }, - "packages/server/tests/daemons/scout.test.ts": { - "filePath": "packages/server/tests/daemons/scout.test.ts", - "contentHash": "4a8773a71c5d3c7c1babf8e80a90ec02904792f8942dae549f079bf9fbbe511a", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyRequest", - "FastifyReply" - ] - }, - { - "source": "../../src/index.js", - "specifiers": [ - "buildServer" - ] - }, - { - "source": "../../src/db/schema.js", - "specifiers": [ - "users", - "teams", - "teamMembers", - "teamResources", - "agents", - "scoutFindings" - ] - }, - { - "source": "drizzle-orm", - "specifiers": [ - "sql", - "eq" - ] - }, - { - "source": "../../src/daemons/scout.js", - "specifiers": [ - "ScoutAgent" - ] - } - ], - "exports": [], - "totalLines": 185, - "hasStructuralAnalysis": true - }, - "packages/server/tests/daemons/subconscious.test.ts": { - "filePath": "packages/server/tests/daemons/subconscious.test.ts", - "contentHash": "2c4a6bca9614c0bd2fc22593e2162e49972a3d1072969a6e6a9bffc1ba06cf06", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "../../src/index.js", - "specifiers": [ - "buildServer" - ] - }, - { - "source": "../../src/db/schema.js", - "specifiers": [ - "users", - "teams", - "teamMembers", - "agentJobs", - "agentAuditLog" - ] - }, - { - "source": "drizzle-orm", - "specifiers": [ - "sql" - ] - }, - { - "source": "../../src/daemons/subconscious.js", - "specifiers": [ - "SubconsciousAgent" - ] - } - ], - "exports": [], - "totalLines": 131, - "hasStructuralAnalysis": true - }, - "packages/server/tests/data-erase-helpers.test.ts": { - "filePath": "packages/server/tests/data-erase-helpers.test.ts", - "contentHash": "454d5276fbb847167fa848e682613c59251fa888186f2a6814b66d69cd09ca52", - "functions": [ - { - "name": "mkTmp", - "params": [ - "name" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "../src/local/data-erase-helpers.js", - "specifiers": [ - "validateEraseConfirmation", - "snapshotDataDir", - "assertDataDirIsSafeToWipe", - "writeEraseMarker", - "readEraseMarker", - "performWipe", - "writeWipeReceipt", - "ERASE_CONFIRMATION_PHRASE", - "ERASE_CONFIRMATION_HEADER_VALUE", - "ERASE_MARKER_FILENAME", - "EraseMarker" - ] - } - ], - "exports": [], - "totalLines": 279, - "hasStructuralAnalysis": true - }, - "packages/server/tests/data-erase.test.ts": { - "filePath": "packages/server/tests/data-erase.test.ts", - "contentHash": "fe5e85cf4439c52de96bf8742cde2c4d11d5ec6094e69640abcbf44f915e5dcb", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "./test-utils.js", - "specifiers": [ - "authInject" - ] - }, - { - "source": "../src/local/data-erase-helpers.js", - "specifiers": [ - "ERASE_MARKER_FILENAME", - "ERASE_CONFIRMATION_PHRASE", - "ERASE_CONFIRMATION_HEADER_VALUE" - ] - } - ], - "exports": [], - "totalLines": 126, - "hasStructuralAnalysis": true - }, - "packages/server/tests/data-export.test.ts": { - "filePath": "packages/server/tests/data-export.test.ts", - "contentHash": "b3c4b1ece9b58cca2aa8b771ade7f87b061cc9b07d9a8358098894410af0a69a", - "functions": [ - { - "name": "extractZipFileNames", - "params": [ - "buffer" - ], - "returnType": "string[]", - "exported": false, - "lineCount": 24 - }, - { - "name": "extractZipFileContent", - "params": [ - "buffer", - "targetName" - ], - "returnType": "string | null", - "exported": false, - "lineCount": 28 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:stream", - "specifiers": [ - "Readable" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "FrameStore", - "SessionStore", - "WorkspaceManager", - "WaggleConfig", - "VaultStore" - ] - }, - { - "source": "../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "./test-utils.js", - "specifiers": [ - "injectWithAuth" - ] - } - ], - "exports": [], - "totalLines": 210, - "hasStructuralAnalysis": true - }, - "packages/server/tests/db/schema.test.ts": { - "filePath": "packages/server/tests/db/schema.test.ts", - "contentHash": "7024d3af89f59421ac608b9468bd2be69bf67948de843691ceaec32e01dffeb0", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "../../src/db/connection.js", - "specifiers": [ - "createDb", - "Db" - ] - }, - { - "source": "../../src/db/schema.js", - "specifiers": [ - "users", - "teams", - "teamMembers", - "tasks", - "messages", - "agents", - "agentGroups" - ] - }, - { - "source": "drizzle-orm", - "specifiers": [ - "sql" - ] - } - ], - "exports": [], - "totalLines": 94, - "hasStructuralAnalysis": true - }, - "packages/server/tests/deployment.test.ts": { - "filePath": "packages/server/tests/deployment.test.ts", - "contentHash": "c1531c7ad0fd321a19d24e784246dcf3a0854b344c085d99650edcc5e43cfbf2", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - } - ], - "exports": [], - "totalLines": 96, - "hasStructuralAnalysis": true - }, - "packages/server/tests/evolution-routes.test.ts": { - "filePath": "packages/server/tests/evolution-routes.test.ts", - "contentHash": "5105150a123f24257bcabedee9c6db8921b4e3151c92acb73be29179521d415d", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "./test-utils.js", - "specifiers": [ - "injectWithAuth" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - } - ], - "exports": [], - "totalLines": 387, - "hasStructuralAnalysis": true - }, - "packages/server/tests/evolution-run-route.test.ts": { - "filePath": "packages/server/tests/evolution-run-route.test.ts", - "contentHash": "5cf717242dae1b882e34e838325da56649d9c8a5b381dd0798144710b76818d3", - "functions": [ - { - "name": "installLLMFactory", - "params": [ - "factory" - ], - "returnType": "void", - "exported": false, - "lineCount": 4 - }, - { - "name": "clearLLMFactory", - "params": [], - "returnType": "void", - "exported": false, - "lineCount": 4 - }, - { - "name": "makeStubLLM", - "params": [ - "responses" - ], - "returnType": "{\r\n llm: EvolutionLLM;\r\n callCount: () => number;\r\n calls: string[];\r\n}", - "exported": false, - "lineCount": 21 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "VaultStore" - ] - }, - { - "source": "../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "./test-utils.js", - "specifiers": [ - "injectWithAuth" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "EvolutionLLM" - ] - } - ], - "exports": [], - "totalLines": 398, - "hasStructuralAnalysis": true - }, - "packages/server/tests/first-run.test.ts": { - "filePath": "packages/server/tests/first-run.test.ts", - "contentHash": "5ba8e2703dbd06b20109368ae9ebf3a03e35ecf35c8538e3a4b97e0e2024bb02", - "functions": [ - { - "name": "makeTmpDir", - "params": [], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "randomPort", - "params": [], - "returnType": "number", - "exported": false, - "lineCount": 11 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../src/local/service.js", - "specifiers": [ - "startService", - "isFirstRun" - ] - }, - { - "source": "../src/local/service.js", - "specifiers": [ - "StartupEvent", - "StartupPhase" - ] - }, - { - "source": "node:net", - "specifiers": [ - "net" - ] - } - ], - "exports": [], - "totalLines": 220, - "hasStructuralAnalysis": true - }, - "packages/server/tests/ingest-api.test.ts": { - "filePath": "packages/server/tests/ingest-api.test.ts", - "contentHash": "45a9a57302e64de1b255ea22711d791ddbc26ee62446c85ce8f5a30180754063", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "./test-utils.js", - "specifiers": [ - "injectWithAuth" - ] - } - ], - "exports": [], - "totalLines": 328, - "hasStructuralAnalysis": true - }, - "packages/server/tests/kvark/kvark-auth.test.ts": { - "filePath": "packages/server/tests/kvark/kvark-auth.test.ts", - "contentHash": "9a5f80e7a05a21db81bc78b329bfab3807c901083d4f649c3473f55bbf88c51b", - "functions": [ - { - "name": "mockFetch", - "params": [ - "responses" - ], - "returnType": "typeof globalThis.fetch", - "exported": false, - "lineCount": 10 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach" - ] - }, - { - "source": "../../src/kvark/kvark-auth.js", - "specifiers": [ - "KvarkAuth" - ] - }, - { - "source": "../../src/kvark/kvark-types.js", - "specifiers": [ - "KvarkAuthError", - "KvarkUnavailableError" - ] - } - ], - "exports": [], - "totalLines": 102, - "hasStructuralAnalysis": true - }, - "packages/server/tests/kvark/kvark-client.test.ts": { - "filePath": "packages/server/tests/kvark/kvark-client.test.ts", - "contentHash": "47c245fc921ad608b1be7a7b2c57e416946c9633045ff44697f80f9c67cc09e3", - "functions": [ - { - "name": "createMockFetch", - "params": [ - "responses" - ], - "returnType": "typeof globalThis.fetch", - "exported": false, - "lineCount": 11 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi" - ] - }, - { - "source": "../../src/kvark/kvark-client.js", - "specifiers": [ - "KvarkClient" - ] - }, - { - "source": "../../src/kvark/kvark-types.js", - "specifiers": [ - "KvarkAuthError", - "KvarkNotFoundError", - "KvarkNotImplementedError", - "KvarkServerError", - "KvarkUnavailableError" - ] - } - ], - "exports": [], - "totalLines": 280, - "hasStructuralAnalysis": true - }, - "packages/server/tests/kvark/kvark-config.test.ts": { - "filePath": "packages/server/tests/kvark/kvark-config.test.ts", - "contentHash": "d0a46eca886aa3bbbeb54e9a7101747667ae681df0b21464da25191cadba047a", - "functions": [ - { - "name": "mockVault", - "params": [ - "entries" - ], - "returnType": "VaultLike", - "exported": false, - "lineCount": 8 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../../src/kvark/kvark-config.js", - "specifiers": [ - "getKvarkConfig", - "VaultLike" - ] - } - ], - "exports": [], - "totalLines": 85, - "hasStructuralAnalysis": true - }, - "packages/server/tests/kvark/kvark-integration-smoke.test.ts": { - "filePath": "packages/server/tests/kvark/kvark-integration-smoke.test.ts", - "contentHash": "485238d0479eca5ff1d9f8ca2caf6d5591e52fbf205fa3cc89025e51aa13854c", - "functions": [ - { - "name": "createMockKvarkServer", - "params": [], - "returnType": "typeof globalThis.fetch", - "exported": false, - "lineCount": 33 - }, - { - "name": "createMockKvarkServerWithAsk", - "params": [], - "returnType": "typeof globalThis.fetch", - "exported": false, - "lineCount": 10 - }, - { - "name": "unreachableServer", - "params": [], - "returnType": "typeof globalThis.fetch", - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi" - ] - }, - { - "source": "../../src/kvark/kvark-client.js", - "specifiers": [ - "KvarkClient" - ] - }, - { - "source": "../../src/kvark/kvark-config.js", - "specifiers": [ - "getKvarkConfig", - "VaultLike" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "createKvarkTools", - "parseSearchResults" - ] - }, - { - "source": "../../src/kvark/kvark-types.js", - "specifiers": [ - "KvarkUnavailableError", - "KvarkNotImplementedError", - "KvarkClientConfig" - ] - } - ], - "exports": [], - "totalLines": 213, - "hasStructuralAnalysis": true - }, - "packages/server/tests/kvark/kvark-types.test.ts": { - "filePath": "packages/server/tests/kvark/kvark-types.test.ts", - "contentHash": "bf59f9953bbc7d1f5ae6574cdce6c8d8921aa8191ff1c061dca99419f4b15ee4", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../../src/kvark/kvark-types.js", - "specifiers": [ - "KvarkLoginRequest", - "KvarkLoginResponse", - "KvarkUser", - "KvarkSearchResult", - "KvarkSearchResponse", - "KvarkAskRequest", - "KvarkAskResponse", - "KvarkChatEvent", - "KvarkClientConfig" - ] - }, - { - "source": "../../src/kvark/kvark-types.js", - "specifiers": [ - "KvarkAuthError", - "KvarkNotFoundError", - "KvarkNotImplementedError", - "KvarkServerError", - "KvarkUnavailableError" - ] - } - ], - "exports": [], - "totalLines": 113, - "hasStructuralAnalysis": true - }, - "packages/server/tests/kvark/kvark-wiring.test.ts": { - "filePath": "packages/server/tests/kvark/kvark-wiring.test.ts", - "contentHash": "7f015299570134967ac510018a8781237e49738421b9dae47e09b02fcdf00830", - "functions": [ - { - "name": "emptyVault", - "params": [], - "returnType": "VaultLike", - "exported": false, - "lineCount": 3 - }, - { - "name": "kvarkVault", - "params": [], - "returnType": "VaultLike", - "exported": false, - "lineCount": 10 - }, - { - "name": "stubClient", - "params": [], - "returnType": "KvarkClientLike", - "exported": false, - "lineCount": 6 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../../src/kvark/kvark-config.js", - "specifiers": [ - "getKvarkConfig", - "VaultLike" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "createKvarkTools", - "KvarkClientLike" - ] - } - ], - "exports": [], - "totalLines": 85, - "hasStructuralAnalysis": true - }, - "packages/server/tests/litellm-api.test.ts": { - "filePath": "packages/server/tests/litellm-api.test.ts", - "contentHash": "69352efe3a8311dcee2830378b2e224244fdbc227e6d3dd01e28f3be70276831", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "../src/local/lifecycle.js", - "specifiers": [ - "getLiteLLMStatus", - "startLiteLLM", - "stopLiteLLM" - ] - }, - { - "source": "./test-utils.js", - "specifiers": [ - "injectWithAuth" - ] - } - ], - "exports": [], - "totalLines": 264, - "hasStructuralAnalysis": true - }, - "packages/server/tests/llm-key-probe.test.ts": { - "filePath": "packages/server/tests/llm-key-probe.test.ts", - "contentHash": "e2558b9f0c19a9d4d1b260d9ed3c0d109e2fafcf306952e1808909b326de3cf4", - "functions": [ - { - "name": "fakeFetch", - "params": [ - "status", - "calls", - "body" - ], - "returnType": "typeof fetch", - "exported": false, - "lineCount": 6 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach" - ] - }, - { - "source": "../src/local/llm-key-probe.js", - "specifiers": [ - "probeProviderKey", - "validateKeyFormat", - "_clearKeyProbeCache" - ] - } - ], - "exports": [], - "totalLines": 129, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local-mode.test.ts": { - "filePath": "packages/server/tests/local-mode.test.ts", - "contentHash": "51348ef4701a716b6db697025d59ba41d217b1e35125e9da10a374a03645aeaf", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "FrameStore", - "SessionStore" - ] - }, - { - "source": "../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "./test-utils.js", - "specifiers": [ - "injectWithAuth" - ] - } - ], - "exports": [], - "totalLines": 304, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local-scheduler.test.ts": { - "filePath": "packages/server/tests/local-scheduler.test.ts", - "contentHash": "370380dbfe67f6208e18f63e7b4d5081db4ea93061759b3363e4feae102cc790", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach", - "vi" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "CronStore" - ] - }, - { - "source": "../src/local/cron.js", - "specifiers": [ - "LocalScheduler" - ] - } - ], - "exports": [], - "totalLines": 169, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/agent-run.test.ts": { - "filePath": "packages/server/tests/local/agent-run.test.ts", - "contentHash": "4f25db38b07a4ec9077b54c87385a169416c14062636fdbeb8544804fc3e7b8a", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - } - ], - "exports": [], - "totalLines": 71, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/agents.test.ts": { - "filePath": "packages/server/tests/local/agents.test.ts", - "contentHash": "c6d5d93d96d04061e1c5d11a43771e81e0b9f14a2d6ab9e929ac757a66c1aeed", - "functions": [ - { - "name": "createTestServer", - "params": [ - "opts" - ], - "exported": false, - "lineCount": 54 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "fastify", - "specifiers": [ - "Fastify" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:crypto", - "specifiers": [ - "randomUUID" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "ExecutionTraceStore" - ] - }, - { - "source": "../../src/local/routes/agent.js", - "specifiers": [ - "agentRoutes" - ] - }, - { - "source": "../../src/local/routes/agents.js", - "specifiers": [ - "agentEntityRoutes" - ] - }, - { - "source": "../../src/local/workspace-sessions.js", - "specifiers": [ - "WorkspaceSession" - ] - } - ], - "exports": [], - "totalLines": 457, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/ambiguity-detection.test.ts": { - "filePath": "packages/server/tests/local/ambiguity-detection.test.ts", - "contentHash": "bb92b55b0dc0d76335a93c6932234a1699c6ea5044cff3b35e72fc3307069756", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../../src/local/routes/chat.js", - "specifiers": [ - "isAmbiguousMessage" - ] - } - ], - "exports": [], - "totalLines": 152, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/anthropic-proxy.test.ts": { - "filePath": "packages/server/tests/local/anthropic-proxy.test.ts", - "contentHash": "be003ca12fd0f96aa8783ec739d878b07d56fd3d0f257efda14e53fbb39c465b", - "functions": [ - { - "name": "createTestServer", - "params": [ - "options" - ], - "exported": false, - "lineCount": 25 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach", - "vi" - ] - }, - { - "source": "fastify", - "specifiers": [ - "Fastify" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "../../src/local/routes/anthropic-proxy.js", - "specifiers": [ - "anthropicProxyRoutes" - ] - } - ], - "exports": [], - "totalLines": 324, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/artifacts.test.ts": { - "filePath": "packages/server/tests/local/artifacts.test.ts", - "contentHash": "8ec367674ad7fe5ab7eac5f0770df7885fcc4842d09691104de94a304eb2598e", - "functions": [ - { - "name": "createTestServer", - "params": [ - "db", - "dataDir" - ], - "exported": false, - "lineCount": 14 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "fastify", - "specifiers": [ - "Fastify" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:crypto", - "specifiers": [ - "randomUUID" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "FrameStore", - "SessionStore" - ] - }, - { - "source": "../../src/local/routes/artifacts.js", - "specifiers": [ - "artifactRoutes" - ] - } - ], - "exports": [], - "totalLines": 208, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/automations.test.ts": { - "filePath": "packages/server/tests/local/automations.test.ts", - "contentHash": "29b8f8534c80e94f22e59bf6fced2de746557b10b7b007aaaa26f368e1910532", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "fastify", - "specifiers": [ - "Fastify" - ] - }, - { - "source": "node:events", - "specifiers": [ - "EventEmitter" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "CronStore", - "CronSchedule" - ] - }, - { - "source": "../../src/local/cron.js", - "specifiers": [ - "LocalScheduler", - "makeRecordExecutionCallback" - ] - }, - { - "source": "../../src/local/routes/cron.js", - "specifiers": [ - "cronRoutes" - ] - }, - { - "source": "../../src/local/routes/notifications.js", - "specifiers": [ - "notificationRoutes" - ] - }, - { - "source": "../../src/local/routes/automations.js", - "specifiers": [ - "automationRoutes" - ] - } - ], - "exports": [], - "totalLines": 391, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/chat-governance.test.ts": { - "filePath": "packages/server/tests/local/chat-governance.test.ts", - "contentHash": "1836e8578f30e2c29189e405321bbb28b148f5ca3d2823b4ca70afed651f2425", - "functions": [ - { - "name": "createFetchResponse", - "params": [ - "body", - "ok", - "status" - ], - "returnType": "Response", - "exported": false, - "lineCount": 7 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "../../src/local/routes/chat-governance.js", - "specifiers": [ - "getGovernancePermissions" - ] - } - ], - "exports": [], - "totalLines": 349, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/chat-helpers.test.ts": { - "filePath": "packages/server/tests/local/chat-helpers.test.ts", - "contentHash": "30f76d7ed04f5cbba4dffd046b6a39e7177d049976009c63dfd9e01d2322e6c1", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../../src/local/routes/chat-helpers.js", - "specifiers": [ - "isRegulatedContent", - "isRetryableError", - "shouldSuggestSchedule", - "describeToolUse" - ] - }, - { - "source": "../../src/local/routes/chat-context.js", - "specifiers": [ - "summarizeDroppedContext" - ] - } - ], - "exports": [], - "totalLines": 664, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/chat-persistence.test.ts": { - "filePath": "packages/server/tests/local/chat-persistence.test.ts", - "contentHash": "dfd361b87d6d61102428298229096d139d9440c61938e119474d21e7e55c14c3", - "functions": [ - { - "name": "makeTempDir", - "params": [], - "returnType": "string", - "exported": false, - "lineCount": 5 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "../../src/local/routes/chat-persistence.js", - "specifiers": [ - "persistMessage", - "loadSessionMessages" - ] - } - ], - "exports": [], - "totalLines": 241, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/compliance-templates.test.ts": { - "filePath": "packages/server/tests/local/compliance-templates.test.ts", - "contentHash": "b15f8b6cb9e9221886b12b7e6b850e48128395d3507b2be44edc4867e14a577f", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "SessionStore", - "FrameStore" - ] - }, - { - "source": "../../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "../test-utils.js", - "specifiers": [ - "injectWithAuth" - ] - } - ], - "exports": [], - "totalLines": 236, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/connector-registry-integration.test.ts": { - "filePath": "packages/server/tests/local/connector-registry-integration.test.ts", - "contentHash": "05c4a1e75dbb69bfbcfade90a29d8af672bf0d48f7c9ba6b923d1244f69c2488", - "functions": [ - { - "name": "createMockVault", - "params": [ - "credentials" - ], - "returnType": "VaultStore", - "exported": false, - "lineCount": 16 - } - ], - "classes": [ - { - "name": "TestConnector", - "methods": [ - "connect", - "healthCheck", - "execute" - ], - "properties": [ - "id", - "name", - "description", - "service", - "authType", - "substrate", - "actions" - ], - "exported": false, - "lineCount": 30 - } - ], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "ConnectorRegistry" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "BaseConnector", - "ConnectorAction", - "ConnectorResult" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "ConnectorHealth" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "needsConfirmation", - "getApprovalClass" - ] - } - ], - "exports": [], - "totalLines": 130, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/connectors-phase4.test.ts": { - "filePath": "packages/server/tests/local/connectors-phase4.test.ts", - "contentHash": "278133670d82f5b21c9e8a1efa6b968a8119d7f75c7ce2ba045745d2a109d181", - "functions": [], - "classes": [ - { - "name": "TestConnector", - "methods": [ - "connect", - "healthCheck", - "execute" - ], - "properties": [ - "id", - "name", - "description", - "service", - "authType", - "substrate", - "actions", - "healthStatus" - ], - "exported": false, - "lineCount": 19 - } - ], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "fastify", - "specifiers": [ - "Fastify" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "InstallAuditStore", - "VaultStore" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "ConnectorRegistry", - "BaseConnector", - "ConnectorAction", - "ConnectorResult" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "ConnectorHealth" - ] - }, - { - "source": "../../src/local/routes/connectors.js", - "specifiers": [ - "connectorRoutes" - ] - } - ], - "exports": [], - "totalLines": 232, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/connectors.test.ts": { - "filePath": "packages/server/tests/local/connectors.test.ts", - "contentHash": "a5902548f76151f43e224dbc019a95c8de34cd7f530ae2e041905063d4c8a9ea", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - } - ], - "exports": [], - "totalLines": 91, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/cost.test.ts": { - "filePath": "packages/server/tests/local/cost.test.ts", - "contentHash": "47cac7e70fe026b331e8d93e186df167087a00220bb7f9a1311dfcfd5c187366", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "SessionStore", - "FrameStore" - ] - }, - { - "source": "../../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "../test-utils.js", - "specifiers": [ - "injectWithAuth" - ] - } - ], - "exports": [], - "totalLines": 145, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/cron-error-handling.test.ts": { - "filePath": "packages/server/tests/local/cron-error-handling.test.ts", - "contentHash": "08cf9ae63bb27de37052d7e7bed9eac9c942825a9824594fe816016b794c8d64", - "functions": [ - { - "name": "mockCronStore", - "params": [ - "dueSchedules" - ], - "returnType": "CronStore", - "exported": false, - "lineCount": 6 - }, - { - "name": "makeSchedule", - "params": [ - "id" - ], - "returnType": "CronSchedule", - "exported": false, - "lineCount": 14 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach" - ] - }, - { - "source": "../../src/local/cron.js", - "specifiers": [ - "LocalScheduler", - "MAX_CONSECUTIVE_FAILURES" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "CronSchedule", - "CronStore" - ] - } - ], - "exports": [], - "totalLines": 219, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/custom-workflows.test.ts": { - "filePath": "packages/server/tests/local/custom-workflows.test.ts", - "contentHash": "5d89309658d7155afe3ce318f5e33b5980dec3bf1313054df03b55b8c981aff9", - "functions": [ - { - "name": "createTestServer", - "params": [ - "dataDir" - ], - "exported": false, - "lineCount": 7 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "fastify", - "specifiers": [ - "Fastify" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "WorkflowTemplate" - ] - }, - { - "source": "../../src/local/routes/workflows.js", - "specifiers": [ - "workflowRoutes" - ] - } - ], - "exports": [], - "totalLines": 190, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/extend.test.ts": { - "filePath": "packages/server/tests/local/extend.test.ts", - "contentHash": "e9ff88154ae3a5ad2ffaa089875819bb72cdc40cbc3a832818fa6afbe8e64046", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "fastify", - "specifiers": [ - "Fastify" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "InstallAuditStore", - "RecordAuditInput" - ] - }, - { - "source": "../../src/local/routes/extend.js", - "specifiers": [ - "extendRoutes" - ] - }, - { - "source": "../../src/local/routes/marketplace.js", - "specifiers": [ - "marketplaceRoutes" - ] - } - ], - "exports": [], - "totalLines": 161, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/feedback-routes.test.ts": { - "filePath": "packages/server/tests/local/feedback-routes.test.ts", - "contentHash": "aaa4b907dd7b5ee1d2269730b6f16baeefe962daa351631106e977b321b8374d", - "functions": [ - { - "name": "createTestServer", - "params": [ - "db" - ], - "exported": false, - "lineCount": 14 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "fastify", - "specifiers": [ - "Fastify" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "ImprovementSignalStore" - ] - }, - { - "source": "../../src/local/routes/feedback.js", - "specifiers": [ - "feedbackRoutes" - ] - } - ], - "exports": [], - "totalLines": 235, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/files-indexer.test.ts": { - "filePath": "packages/server/tests/local/files-indexer.test.ts", - "contentHash": "bb5938723b663cc0639052975f1f042d5ef8630c94a28d256539f3798f314d2b", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "SessionStore", - "FrameStore", - "FileIndexer" - ] - }, - { - "source": "../../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "../test-utils.js", - "specifiers": [ - "injectWithAuth" - ] - } - ], - "exports": [], - "totalLines": 155, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/files.test.ts": { - "filePath": "packages/server/tests/local/files.test.ts", - "contentHash": "32a724055f32e86d78369c23ff439b38082e92be860655a5de5a241b822bfddd", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "SessionStore", - "FrameStore" - ] - }, - { - "source": "../../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "../../src/local/storage/types.js", - "specifiers": [ - "FileEntry" - ] - }, - { - "source": "../test-utils.js", - "specifiers": [ - "injectWithAuth" - ] - } - ], - "exports": [], - "totalLines": 471, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/fleet.test.ts": { - "filePath": "packages/server/tests/local/fleet.test.ts", - "contentHash": "e3656d23c3f9ec5066b44d05c124c697011e51850e0e7e59b446eced4efca3ad", - "functions": [ - { - "name": "createTestServer", - "params": [ - "sessionManager" - ], - "exported": false, - "lineCount": 8 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "fastify", - "specifiers": [ - "Fastify" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "../../src/local/workspace-sessions.js", - "specifiers": [ - "WorkspaceSessionManager" - ] - }, - { - "source": "../../src/local/routes/fleet.js", - "specifiers": [ - "fleetRoutes" - ] - } - ], - "exports": [], - "totalLines": 244, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/gepa-optimization.test.ts": { - "filePath": "packages/server/tests/local/gepa-optimization.test.ts", - "contentHash": "f866af0f732a65878bf27342515f381533a21f7f6789557d4660e0982fbc8f4b", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach", - "vi" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "OptimizationLogStore" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "isWithinBudget", - "getRecentLogs" - ] - } - ], - "exports": [], - "totalLines": 197, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/harvest-cache.test.ts": { - "filePath": "packages/server/tests/local/harvest-cache.test.ts", - "contentHash": "685f9b0e50bd75659d1a0cf8587f2fd4a6dc508575133d6840ab809d58f2e717", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "../../src/local/routes/harvest.js", - "specifiers": [ - "writeHarvestCache", - "readHarvestCache" - ] - } - ], - "exports": [], - "totalLines": 73, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/harvest-classify.test.ts": { - "filePath": "packages/server/tests/local/harvest-classify.test.ts", - "contentHash": "84647e8d45f7dee9437e579e26ed7b05759d7ca04f8cee4add4d63fc797b9936", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "ImportItemType" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "FrameStore" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "MemoryKind" - ] - }, - { - "source": "../../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "../test-utils.js", - "specifiers": [ - "injectWithAuth" - ] - }, - { - "source": "../../src/local/routes/harvest-classify.js", - "specifiers": [ - "importItemTypeToMemoryKind", - "harvestConfidence" - ] - } - ], - "exports": [], - "totalLines": 123, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/harvest-identity-defenses.test.ts": { - "filePath": "packages/server/tests/local/harvest-identity-defenses.test.ts", - "contentHash": "082f5a77c3fff2fc5f11b819fef55917709f8f417441df6e8d7a23cd089e7bec", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../../src/local/routes/harvest.js", - "specifiers": [ - "escapeXml", - "extractJsonObject", - "isValidSuggestionShape", - "MIN_SUGGESTION_CONFIDENCE" - ] - } - ], - "exports": [], - "totalLines": 150, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/harvest-identity.test.ts": { - "filePath": "packages/server/tests/local/harvest-identity.test.ts", - "contentHash": "ab9cf9b86e53d7eb2709e2f9205d838875d744472794b56eb452906a098e1e4d", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "SessionStore", - "FrameStore" - ] - }, - { - "source": "../../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "../test-utils.js", - "specifiers": [ - "injectWithAuth" - ] - } - ], - "exports": [], - "totalLines": 178, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/harvest-runs.test.ts": { - "filePath": "packages/server/tests/local/harvest-runs.test.ts", - "contentHash": "9773626f9e1c5aa143908a57167890df118a7b1b3677caa33d4f638762ff0555", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "SessionStore", - "FrameStore", - "HarvestRunStore" - ] - }, - { - "source": "../../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "../test-utils.js", - "specifiers": [ - "injectWithAuth" - ] - } - ], - "exports": [], - "totalLines": 258, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/home.test.ts": { - "filePath": "packages/server/tests/local/home.test.ts", - "contentHash": "0491021d50ade9af28ec3ba004844f7893921f3ad7c1a2b74c365cd6834a91b6", - "functions": [ - { - "name": "createTestServer", - "params": [ - "db", - "workspaces", - "cronSchedules" - ], - "exported": false, - "lineCount": 31 - }, - { - "name": "card", - "params": [ - "id", - "pendingCount", - "rankTs" - ], - "returnType": "{ card: RecentWorkspaceCard; rankTs: number }", - "exported": false, - "lineCount": 4 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "fastify", - "specifiers": [ - "Fastify" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "IdentityLayer" - ] - }, - { - "source": "../../src/local/routes/home.js", - "specifiers": [ - "homeRoutes", - "personalizeGreeting", - "applyPriorityRanking", - "RecentWorkspaceCard" - ] - }, - { - "source": "../../src/local/routes/memory-center.js", - "specifiers": [ - "memoryCenterRoutes" - ] - }, - { - "source": "../../src/local/routes/workspace-context.js", - "specifiers": [ - "buildUpcomingSchedules", - "CronScheduleLike" - ] - } - ], - "exports": [], - "totalLines": 284, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/identity.test.ts": { - "filePath": "packages/server/tests/local/identity.test.ts", - "contentHash": "e6e43ae94d7c2b5eba6154fa9e1ee6d7b95386109cad1a24bca15a1bccb12b9a", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "afterEach" - ] - }, - { - "source": "fastify", - "specifiers": [ - "Fastify" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../../src/local/routes/identity.js", - "specifiers": [ - "identityRoutes" - ] - } - ], - "exports": [], - "totalLines": 91, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/import.test.ts": { - "filePath": "packages/server/tests/local/import.test.ts", - "contentHash": "a82a097c3a6e9fa446de8cb5cd4c537399306511290b10826416c491b2f8ce7b", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "SessionStore", - "FrameStore" - ] - }, - { - "source": "../../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "../test-utils.js", - "specifiers": [ - "injectWithAuth" - ] - } - ], - "exports": [], - "totalLines": 262, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/knowledge-graph-projection.test.ts": { - "filePath": "packages/server/tests/local/knowledge-graph-projection.test.ts", - "contentHash": "f462854f0f4cc9c978c97ebd9628deaa453439b8103b3dcc53ae283d600b7b13", - "functions": [ - { - "name": "createTestServer", - "params": [ - "db" - ], - "exported": false, - "lineCount": 10 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "fastify", - "specifiers": [ - "Fastify" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../../src/local/routes/knowledge.js", - "specifiers": [ - "knowledgeRoutes" - ] - } - ], - "exports": [], - "totalLines": 92, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/marketplace-dev.test.ts": { - "filePath": "packages/server/tests/local/marketplace-dev.test.ts", - "contentHash": "5afa1fe3d5c8c15b93fa89b07ee9b61a8fbc6adeb67f4d2ea95e45322901f36d", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - } - ], - "exports": [], - "totalLines": 227, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/marketplace-security.test.ts": { - "filePath": "packages/server/tests/local/marketplace-security.test.ts", - "contentHash": "1eeb16bd76cb6fe26fdc5e30fd8bb437b301e73e13a07218669352d90fde1dbf", - "functions": [ - { - "name": "getRepoRoot", - "params": [], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "mockPackage", - "params": [ - "overrides" - ], - "returnType": "MarketplacePackage", - "exported": false, - "lineCount": 31 - }, - { - "name": "createTestGate", - "params": [], - "returnType": "SecurityGate", - "exported": false, - "lineCount": 8 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "@waggle/marketplace", - "specifiers": [ - "SecurityGate" - ] - }, - { - "source": "@waggle/marketplace", - "specifiers": [ - "MarketplacePackage" - ] - } - ], - "exports": [], - "totalLines": 284, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/marketplace-sources.test.ts": { - "filePath": "packages/server/tests/local/marketplace-sources.test.ts", - "contentHash": "197afd07e179d23b98c568a3c1705e2986c607a4198d52500948b2b97d2f9d15", - "functions": [ - { - "name": "createEmptyTempDb", - "params": [], - "returnType": "{ db: MarketplaceDB; tmpDir: string; dbPath: string }", - "exported": false, - "lineCount": 133 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "better-sqlite3", - "specifiers": [ - "Database" - ] - }, - { - "source": "@waggle/marketplace", - "specifiers": [ - "MarketplaceDB" - ] - } - ], - "exports": [], - "totalLines": 460, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/marketplace-sync.test.ts": { - "filePath": "packages/server/tests/local/marketplace-sync.test.ts", - "contentHash": "a5aa355fe09aa2f56af2324f5276052757d70b0c1dbd7a2a0a029cc2ba0f2e8f", - "functions": [ - { - "name": "getRepoRoot", - "params": [], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "getMarketplaceDbPath", - "params": [], - "returnType": "string | null", - "exported": false, - "lineCount": 4 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll", - "beforeEach", - "afterEach", - "vi" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "@waggle/marketplace", - "specifiers": [ - "MarketplaceDB", - "MarketplaceSync" - ] - } - ], - "exports": [], - "totalLines": 275, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/marketplace.test.ts": { - "filePath": "packages/server/tests/local/marketplace.test.ts", - "contentHash": "19a50aa30f9553973806058cb2271db679f7f484e46e9321cbf8d0f6d98309b6", - "functions": [ - { - "name": "getRepoRoot", - "params": [], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "getMarketplaceDbPath", - "params": [], - "returnType": "string | null", - "exported": false, - "lineCount": 4 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "@waggle/marketplace", - "specifiers": [ - "MarketplaceDB" - ] - }, - { - "source": "@waggle/marketplace", - "specifiers": [ - "MarketplacePackage" - ] - } - ], - "exports": [], - "totalLines": 322, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/mcp-config.test.ts": { - "filePath": "packages/server/tests/local/mcp-config.test.ts", - "contentHash": "938199bd6736d2f7e3845fb269dfbf4732f4acb215d573d51a1db98a1804f589", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "McpRuntime" - ] - }, - { - "source": "../../src/local/mcp-config.js", - "specifiers": [ - "loadMcpConfig", - "saveMcpServerEntry", - "removeMcpServerEntry", - "validateMcpEntry", - "mcpConfigPath", - "populateMcpRuntimeFromConfig" - ] - } - ], - "exports": [], - "totalLines": 166, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/mcps.test.ts": { - "filePath": "packages/server/tests/local/mcps.test.ts", - "contentHash": "210aaf0f484c92833eda17fca6f3f97847f833f85afc265809d2bb60e4b86f99", - "functions": [ - { - "name": "createMockSpawn", - "params": [ - "opts" - ], - "returnType": "SpawnFn", - "exported": false, - "lineCount": 32 - }, - { - "name": "createFakeMarketplace", - "params": [], - "exported": false, - "lineCount": 37 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach", - "afterAll" - ] - }, - { - "source": "fastify", - "specifiers": [ - "Fastify" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "node:stream", - "specifiers": [ - "PassThrough" - ] - }, - { - "source": "better-sqlite3", - "specifiers": [ - "Database" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "InstallAuditStore" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "MCP_CATALOG" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "McpRuntime", - "McpProcess", - "SpawnFn" - ] - }, - { - "source": "../../src/local/routes/mcps.js", - "specifiers": [ - "mcpRoutes" - ] - }, - { - "source": "../../src/local/mcp-config.js", - "specifiers": [ - "loadMcpConfig", - "saveMcpServerEntry" - ] - } - ], - "exports": [], - "totalLines": 521, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/memory-center.test.ts": { - "filePath": "packages/server/tests/local/memory-center.test.ts", - "contentHash": "b20d6a156764e7c86e3df695d74992bc35c98f985aaee1233fcdd14fb97f7e46", - "functions": [ - { - "name": "createTestServer", - "params": [ - "db", - "wsDbs" - ], - "exported": false, - "lineCount": 18 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "fastify", - "specifiers": [ - "Fastify" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "FrameStore" - ] - }, - { - "source": "../../src/local/routes/memory.js", - "specifiers": [ - "memoryRoutes" - ] - }, - { - "source": "../../src/local/routes/memory-center.js", - "specifiers": [ - "memoryCenterRoutes" - ] - } - ], - "exports": [], - "totalLines": 387, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/memory-lane-cron.test.ts": { - "filePath": "packages/server/tests/local/memory-lane-cron.test.ts", - "contentHash": "8b90f7d39581137aa8d36340a7a0d155559d915a36b7c2d6f3c080f79131ae06", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "FrameStore", - "SessionStore", - "LLMCallFn" - ] - }, - { - "source": "../../src/local/memory-lane-cron.js", - "specifiers": [ - "runMemoryLaneExtraction" - ] - } - ], - "exports": [], - "totalLines": 110, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/memory-stats-isolation.test.ts": { - "filePath": "packages/server/tests/local/memory-stats-isolation.test.ts", - "contentHash": "f3ffe2ff0a5336f14f1091310700b4ea005159f0dfcec6512870cde225b959a3", - "functions": [ - { - "name": "seedFrames", - "params": [ - "db", - "contents" - ], - "exported": false, - "lineCount": 6 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "afterEach" - ] - }, - { - "source": "fastify", - "specifiers": [ - "Fastify" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "FrameStore", - "SessionStore" - ] - }, - { - "source": "../../src/local/routes/memory.js", - "specifiers": [ - "memoryRoutes" - ] - } - ], - "exports": [], - "totalLines": 87, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/monthly-assessment.test.ts": { - "filePath": "packages/server/tests/local/monthly-assessment.test.ts", - "contentHash": "df2981569254e6f6e1479af7c3c77fdba086783d7d4b96bb5e127f7c6a1039c1", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "CronStore", - "FrameStore", - "OptimizationLogStore", - "ImprovementSignalStore" - ] - }, - { - "source": "../../src/local/monthly-assessment.js", - "specifiers": [ - "generateMonthlyAssessment", - "saveAssessmentToMind", - "MonthlyAssessment" - ] - } - ], - "exports": [], - "totalLines": 224, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/network-auth.test.ts": { - "filePath": "packages/server/tests/local/network-auth.test.ts", - "contentHash": "4b749a73c9513ddbad7ceefebaf377a26145e2806687587c93389d252df7ebfa", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "afterEach" - ] - }, - { - "source": "fastify", - "specifiers": [ - "Fastify" - ] - }, - { - "source": "../../src/local/origin-guard.js", - "specifiers": [ - "isLocalOrigin", - "isLocalRequest" - ] - }, - { - "source": "../../src/local/net-config.js", - "specifiers": [ - "resolveBindHost", - "isLoopbackBind" - ] - }, - { - "source": "../../src/local/cors-config.js", - "specifiers": [ - "corsOriginAllowed" - ] - }, - { - "source": "../../src/local/routes/browse.js", - "specifiers": [ - "browseRoutes" - ] - }, - { - "source": "../../src/local/security-middleware.js", - "specifiers": [ - "securityMiddleware", - "hostHeaderAllowed" - ] - } - ], - "exports": [], - "totalLines": 163, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/notifications.test.ts": { - "filePath": "packages/server/tests/local/notifications.test.ts", - "contentHash": "1ef9e0b23e3c9b7d42e58a82254c07a77ca24591d609caeb65692d6c4afb4233", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - } - ], - "exports": [], - "totalLines": 42, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/oauth-callback-escaping.test.ts": { - "filePath": "packages/server/tests/local/oauth-callback-escaping.test.ts", - "contentHash": "eedab0777b29e280f26f60f07e4a75cdf1f3ca1b82878213e1803b61f1b9816a", - "functions": [ - { - "name": "createTestServer", - "params": [], - "exported": false, - "lineCount": 5 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "afterEach" - ] - }, - { - "source": "fastify", - "specifiers": [ - "Fastify" - ] - }, - { - "source": "../../src/local/routes/oauth.js", - "specifiers": [ - "oauthRoutes" - ] - } - ], - "exports": [], - "totalLines": 61, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/onboarding-flag-shape.test.ts": { - "filePath": "packages/server/tests/local/onboarding-flag-shape.test.ts", - "contentHash": "942d54c8573f801ba4e5f96154879ad746b28a5441ed164177b8f3f142c1a785", - "functions": [ - { - "name": "importMockBinding", - "params": [], - "returnType": "Promise", - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - } - ], - "exports": [], - "totalLines": 44, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/onboarding-status.test.ts": { - "filePath": "packages/server/tests/local/onboarding-status.test.ts", - "contentHash": "ae8c14a1302c482101b3c00ea65c44be01c74555585d0385e2aa5c07ee1f05e7", - "functions": [ - { - "name": "createTestServer", - "params": [ - "dataDir", - "db", - "workspaces" - ], - "exported": false, - "lineCount": 8 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "fastify", - "specifiers": [ - "Fastify" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "FrameStore", - "SessionStore" - ] - }, - { - "source": "../../src/local/routes/onboarding.js", - "specifiers": [ - "onboardingRoutes" - ] - } - ], - "exports": [], - "totalLines": 130, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/p5-skill-governance.test.ts": { - "filePath": "packages/server/tests/local/p5-skill-governance.test.ts", - "contentHash": "05c08be1ee51d476638ca5a9f20d90e5a427949f03cc783035e5fef25045ac65", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "fastify", - "specifiers": [ - "Fastify" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:crypto", - "specifiers": [ - "randomUUID" - ] - }, - { - "source": "../../src/local/routes/skills.js", - "specifiers": [ - "skillRoutes" - ] - } - ], - "exports": [], - "totalLines": 107, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/persona-tool-filtering.test.ts": { - "filePath": "packages/server/tests/local/persona-tool-filtering.test.ts", - "contentHash": "9f15d6a90a2d0354e84239f9d5ff324726ea2d8beb5f907bcd3950417746ac74", - "functions": [ - { - "name": "filterToolsForPersona", - "params": [ - "allToolNames", - "personaId" - ], - "returnType": "string[]", - "exported": false, - "lineCount": 18 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "getPersona", - "PERSONAS", - "AgentPersona" - ] - } - ], - "exports": [], - "totalLines": 180, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/personas-routes.test.ts": { - "filePath": "packages/server/tests/local/personas-routes.test.ts", - "contentHash": "03d85ba0767938293f573550331e560adda5c8b2cf45a7c26a2d3954dda4c936", - "functions": [ - { - "name": "createTestServer", - "params": [], - "exported": false, - "lineCount": 5 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "fastify", - "specifiers": [ - "Fastify" - ] - }, - { - "source": "../../src/local/routes/personas.js", - "specifiers": [ - "personaRoutes" - ] - } - ], - "exports": [], - "totalLines": 102, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/phase2-traversal-backup.test.ts": { - "filePath": "packages/server/tests/local/phase2-traversal-backup.test.ts", - "contentHash": "1e18372970689632081395816ab9a36302c3a5ec66d143d2912f36817528c8ab", - "functions": [ - { - "name": "buildBackupBase64", - "params": [ - "files" - ], - "returnType": "string", - "exported": false, - "lineCount": 13 - }, - { - "name": "entry", - "params": [ - "relativePath", - "text" - ], - "returnType": "FileEntry", - "exported": false, - "lineCount": 4 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "fastify", - "specifiers": [ - "Fastify", - "FastifyInstance" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:zlib", - "specifiers": [ - "* as zlib" - ] - }, - { - "source": "../../src/local/routes/backup.js", - "specifiers": [ - "backupRoutes" - ] - } - ], - "exports": [], - "totalLines": 139, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/phase2-traversal-chat.test.ts": { - "filePath": "packages/server/tests/local/phase2-traversal-chat.test.ts", - "contentHash": "c2b2ffa7726be8d88bb69af88c983df879e7ac7d2a5b6acaa8f8dd83fa0c16f8", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "SessionStore", - "FrameStore" - ] - }, - { - "source": "../../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "../test-utils.js", - "specifiers": [ - "injectWithAuth" - ] - }, - { - "source": "../../src/local/routes/chat-persistence.js", - "specifiers": [ - "persistMessage" - ] - } - ], - "exports": [], - "totalLines": 167, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/phase2-traversal-documents.test.ts": { - "filePath": "packages/server/tests/local/phase2-traversal-documents.test.ts", - "contentHash": "8b3f3df2eb4bdbcd0e06b446ed285d61bd098256492434cf9a97a0b833933c88", - "functions": [ - { - "name": "buildServer", - "params": [], - "returnType": "Promise", - "exported": false, - "lineCount": 6 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "afterEach" - ] - }, - { - "source": "fastify", - "specifiers": [ - "Fastify", - "FastifyInstance" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "../../src/local/routes/documents.js", - "specifiers": [ - "documentRoutes" - ] - } - ], - "exports": [], - "totalLines": 100, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/phase2-traversal-ingest.test.ts": { - "filePath": "packages/server/tests/local/phase2-traversal-ingest.test.ts", - "contentHash": "11ba60346e897c862db21068f609de3db94920732d28cbcc6253b892f1724ed4", - "functions": [ - { - "name": "buildServer", - "params": [ - "dataDir" - ], - "returnType": "FastifyInstance", - "exported": false, - "lineCount": 17 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "fastify", - "specifiers": [ - "Fastify", - "FastifyInstance" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "../../src/local/routes/ingest.js", - "specifiers": [ - "ingestRoutes" - ] - } - ], - "exports": [], - "totalLines": 102, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/phase2-traversal-tasks.test.ts": { - "filePath": "packages/server/tests/local/phase2-traversal-tasks.test.ts", - "contentHash": "47684a0f58d8205d2b0209d0b301efece0bacdc5a2ea49c1bbabc5eff02ccfbc", - "functions": [ - { - "name": "buildServer", - "params": [ - "dataDir" - ], - "returnType": "FastifyInstance", - "exported": false, - "lineCount": 9 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "fastify", - "specifiers": [ - "Fastify" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "../../src/local/routes/tasks.js", - "specifiers": [ - "taskRoutes" - ] - }, - { - "source": "../../src/local/index.js", - "specifiers": [ - "LocalConfig" - ] - } - ], - "exports": [], - "totalLines": 105, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/phase2-traversal-workspace-context.test.ts": { - "filePath": "packages/server/tests/local/phase2-traversal-workspace-context.test.ts", - "contentHash": "b71752550c28fca1e6564492f7686c9f2e625ad12b2f27ff186fe2e41a1ba71d", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "../../src/local/routes/workspace-context.js", - "specifiers": [ - "buildWorkspaceNowBlock" - ] - } - ], - "exports": [], - "totalLines": 81, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/phase4-harvest-embedder.test.ts": { - "filePath": "packages/server/tests/local/phase4-harvest-embedder.test.ts", - "contentHash": "58db42238b1e548e6f00bf791a5f210dc86c9cb486a1aa920ca65191903d7250", - "functions": [ - { - "name": "countVecRows", - "params": [ - "dataDir" - ], - "returnType": "number", - "exported": false, - "lineCount": 10 - }, - { - "name": "makeEmbedderStub", - "params": [ - "activeProvider", - "marker" - ], - "returnType": "{\r\n calls: { embed: number; embedBatch: number };\r\n instance: EmbeddingProviderInstance;\r\n}", - "exported": false, - "lineCount": 31 - }, - { - "name": "buildServer", - "params": [ - "dataDir" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 10 - }, - { - "name": "commitHarvest", - "params": [ - "server" - ], - "exported": false, - "lineCount": 7 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "SessionStore", - "FrameStore" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "EmbeddingProviderInstance" - ] - }, - { - "source": "../../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "../test-utils.js", - "specifiers": [ - "injectWithAuth" - ] - } - ], - "exports": [], - "totalLines": 183, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/phase5-agent-run-provider.test.ts": { - "filePath": "packages/server/tests/local/phase5-agent-run-provider.test.ts", - "contentHash": "6496bfcc3389e1328529285ad48658a50aa1ca1f2d42b224efcec34b2cc3ad45", - "functions": [ - { - "name": "makeServerWithRuntimeFallback", - "params": [ - "opts" - ], - "returnType": "unknown", - "exported": false, - "lineCount": 13 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - } - ], - "exports": [], - "totalLines": 79, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/phase5-connector-health.test.ts": { - "filePath": "packages/server/tests/local/phase5-connector-health.test.ts", - "contentHash": "ed085c5d44eba1c3f60b2416e7e1ed9e1dfa0999e2494dbc1917067b0afb3c45", - "functions": [ - { - "name": "buildServerWithThrowingRegistry", - "params": [], - "returnType": "Promise", - "exported": false, - "lineCount": 13 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "fastify", - "specifiers": [ - "Fastify", - "FastifyInstance" - ] - }, - { - "source": "../../src/local/routes/connectors.js", - "specifiers": [ - "connectorRoutes" - ] - } - ], - "exports": [], - "totalLines": 107, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/phase5-cron-parse.test.ts": { - "filePath": "packages/server/tests/local/phase5-cron-parse.test.ts", - "contentHash": "17618612130b31d3d3749fdf943c8fbc071028e18399352bffd7f343efcbc2d5", - "functions": [ - { - "name": "createTestServer", - "params": [ - "store" - ], - "exported": false, - "lineCount": 6 - }, - { - "name": "seedRow", - "params": [ - "db", - "name", - "jobConfig" - ], - "returnType": "number", - "exported": false, - "lineCount": 7 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach", - "vi" - ] - }, - { - "source": "fastify", - "specifiers": [ - "Fastify" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "CronStore" - ] - }, - { - "source": "../../src/local/routes/cron.js", - "specifiers": [ - "cronRoutes" - ] - } - ], - "exports": [], - "totalLines": 90, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/phase5-files-upload-limit.test.ts": { - "filePath": "packages/server/tests/local/phase5-files-upload-limit.test.ts", - "contentHash": "de034e8e9081a0f323719a329fb614caf51461304d3595fb46ee2ca094589937", - "functions": [ - { - "name": "fakeRequest", - "params": [ - "contentLength" - ], - "exported": false, - "lineCount": 7 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "node:stream", - "specifiers": [ - "PassThrough" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyRequest" - ] - }, - { - "source": "../../src/local/routes/files.js", - "specifiers": [ - "getRawBody", - "MAX_BODY_BYTES_EXCEEDED" - ] - } - ], - "exports": [], - "totalLines": 89, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/providers.test.ts": { - "filePath": "packages/server/tests/local/providers.test.ts", - "contentHash": "9e002ced641b2b186f0235d166b9998ee2036596842453203259496e71bd07e4", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "SessionStore", - "FrameStore" - ] - }, - { - "source": "../../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "../test-utils.js", - "specifiers": [ - "injectWithAuth" - ] - } - ], - "exports": [], - "totalLines": 326, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/security-middleware.test.ts": { - "filePath": "packages/server/tests/local/security-middleware.test.ts", - "contentHash": "40e64e2320cbde56e6c76385c5864dad03b00a0dc8bd303e78b9db0bd9260129", - "functions": [ - { - "name": "createTestServer", - "params": [ - "opts" - ], - "exported": false, - "lineCount": 41 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "fastify", - "specifiers": [ - "Fastify" - ] - }, - { - "source": "../../src/local/security-middleware.js", - "specifiers": [ - "securityMiddleware", - "RateLimiter", - "ENDPOINT_RATE_LIMITS" - ] - } - ], - "exports": [], - "totalLines": 675, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/session-timeout.test.ts": { - "filePath": "packages/server/tests/local/session-timeout.test.ts", - "contentHash": "5a6b90255f00b9ed63c1fb8cbfc716c1d34972e3985effb8ae5aacc9cccbb47c", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach", - "vi" - ] - }, - { - "source": "../../src/local/security-middleware.js", - "specifiers": [ - "SessionTimeoutTracker" - ] - } - ], - "exports": [], - "totalLines": 199, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/settings-permissions.test.ts": { - "filePath": "packages/server/tests/local/settings-permissions.test.ts", - "contentHash": "31e1653ad2fa7badbc63d35794f5ead15282b0f80aa3855102a6a4841c66801b", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "FrameStore", - "SessionStore" - ] - }, - { - "source": "../../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "../test-utils.js", - "specifiers": [ - "injectWithAuth" - ] - } - ], - "exports": [], - "totalLines": 175, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/skills-phase3.test.ts": { - "filePath": "packages/server/tests/local/skills-phase3.test.ts", - "contentHash": "9bd2f64d00c181b42bed5baa5fe59519be8e9793f43c5be35bbb0856112bd62e", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "fastify", - "specifiers": [ - "Fastify" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:crypto", - "specifiers": [ - "randomUUID" - ] - }, - { - "source": "@waggle/sdk", - "specifiers": [ - "listStarterSkills", - "listCapabilityPacks" - ] - }, - { - "source": "../../src/local/routes/skills.js", - "specifiers": [ - "skillRoutes" - ] - }, - { - "source": "../../src/local/routes/skills-aliases.js", - "specifiers": [ - "skillsAliasRoutes" - ] - } - ], - "exports": [], - "totalLines": 221, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/sse-resilience.test.ts": { - "filePath": "packages/server/tests/local/sse-resilience.test.ts", - "contentHash": "821ba1e0365eb73250c1ff21473c28535cdc07615238deadd783bcfe0a21dbd5", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:events", - "specifiers": [ - "EventEmitter" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "SessionStore", - "FrameStore" - ] - }, - { - "source": "../../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "../../src/local/index.js", - "specifiers": [ - "LlmProviderStatus" - ] - }, - { - "source": "../../src/local/routes/notifications.js", - "specifiers": [ - "NotificationEvent", - "SubagentStatusEvent" - ] - }, - { - "source": "../test-utils.js", - "specifiers": [ - "injectWithAuth" - ] - } - ], - "exports": [], - "totalLines": 279, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/suggestion-sanitize.test.ts": { - "filePath": "packages/server/tests/local/suggestion-sanitize.test.ts", - "contentHash": "d3adf44801c70f3615e48f93a096f9f5184a2dbc10223769727c1550c415f278", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../../src/local/routes/session-utils.js", - "specifiers": [ - "sanitizeExtracted" - ] - } - ], - "exports": [], - "totalLines": 45, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/team-integration.test.ts": { - "filePath": "packages/server/tests/local/team-integration.test.ts", - "contentHash": "8bb944532cb319c20aee08e8f4ae00d9bbf5d9bb4d611a95d1233eedf0541015", - "functions": [ - { - "name": "writeTeamConfig", - "params": [ - "dataDir", - "token" - ], - "exported": false, - "lineCount": 10 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "SessionStore", - "FrameStore" - ] - }, - { - "source": "../../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "../../src/local/routes/events.js", - "specifiers": [ - "emitAuditEvent", - "closeAuditDb" - ] - }, - { - "source": "../test-utils.js", - "specifiers": [ - "injectWithAuth" - ] - } - ], - "exports": [], - "totalLines": 231, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/telegram.test.ts": { - "filePath": "packages/server/tests/local/telegram.test.ts", - "contentHash": "68a6fe52b2e37697e0e46cfa080963b41aa70fa945a67ce9709007921def71bc", - "functions": [ - { - "name": "fakeServer", - "params": [ - "creds" - ], - "returnType": "FastifyInstance", - "exported": false, - "lineCount": 11 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "afterEach" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "../../src/local/routes/telegram.js", - "specifiers": [ - "telegramRoutes", - "pushTelegramMessage", - "BOT_TOKEN_PATTERN", - "CHAT_ID_PATTERN" - ] - } - ], - "exports": [], - "totalLines": 143, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/vault-routes.test.ts": { - "filePath": "packages/server/tests/local/vault-routes.test.ts", - "contentHash": "59168dc158d750490c7dec3286546f42e7c760d4500a50ed69f83c9f1b14c074", - "functions": [ - { - "name": "createTestServer", - "params": [ - "vault" - ], - "exported": false, - "lineCount": 6 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "fastify", - "specifiers": [ - "Fastify" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "VaultStore" - ] - }, - { - "source": "../../src/local/routes/vault.js", - "specifiers": [ - "vaultRoutes" - ] - } - ], - "exports": [], - "totalLines": 276, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/vector-backfill.test.ts": { - "filePath": "packages/server/tests/local/vector-backfill.test.ts", - "contentHash": "476ec22dc14656062e4f7df3ebc348fa702bbe0bce80f4a3310b8a862009256f", - "functions": [ - { - "name": "realProvider", - "params": [], - "returnType": "EmbeddingProviderInstance", - "exported": false, - "lineCount": 7 - }, - { - "name": "mockProvider", - "params": [], - "returnType": "EmbeddingProviderInstance", - "exported": false, - "lineCount": 7 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "FrameStore", - "SessionStore" - ] - }, - { - "source": "../../src/local/vector-backfill.js", - "specifiers": [ - "runVectorBackfill" - ] - }, - { - "source": "../../../hive-mind-core/tests/mind/helpers/mock-embedder.js", - "specifiers": [ - "MockEmbedder" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "EmbeddingProviderInstance" - ] - } - ], - "exports": [], - "totalLines": 91, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/w43-harvest-temporal.test.ts": { - "filePath": "packages/server/tests/local/w43-harvest-temporal.test.ts", - "contentHash": "4711f25ac7ca789c8b248113e454391446a7eaeb7c8f88ea7b70ce67e5cb4d7c", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "../../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "../test-utils.js", - "specifiers": [ - "injectWithAuth" - ] - } - ], - "exports": [], - "totalLines": 70, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/w46-harvest-raw-turns.test.ts": { - "filePath": "packages/server/tests/local/w46-harvest-raw-turns.test.ts", - "contentHash": "a50f033fb175431e2d74a479e65e18f5f6acd88c6913fe76c8e5564682741714", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "../../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "../test-utils.js", - "specifiers": [ - "injectWithAuth" - ] - } - ], - "exports": [], - "totalLines": 130, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/wiki-mock-guard.test.ts": { - "filePath": "packages/server/tests/local/wiki-mock-guard.test.ts", - "contentHash": "81c744c7ef11d363db622765812c0889ca18879f101de463665792766df33254", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "SessionStore", - "FrameStore" - ] - }, - { - "source": "../../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "../test-utils.js", - "specifiers": [ - "injectWithAuth" - ] - } - ], - "exports": [], - "totalLines": 102, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/workspace-sessions.test.ts": { - "filePath": "packages/server/tests/local/workspace-sessions.test.ts", - "contentHash": "dd57e3ce01087b2402b45e36b17c29f8062aff39000226fc94cd810414f53cd0", - "functions": [ - { - "name": "createMockMind", - "params": [], - "returnType": "MindDB", - "exported": false, - "lineCount": 5 - }, - { - "name": "createMockTools", - "params": [], - "exported": false, - "lineCount": 3 - }, - { - "name": "createMockOrchestrator", - "params": [], - "returnType": "Orchestrator", - "exported": false, - "lineCount": 5 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi" - ] - }, - { - "source": "../../src/local/workspace-sessions.js", - "specifiers": [ - "WorkspaceSessionManager", - "WorkspaceSession" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "Orchestrator" - ] - } - ], - "exports": [], - "totalLines": 219, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/workspaces-lifecycle.test.ts": { - "filePath": "packages/server/tests/local/workspaces-lifecycle.test.ts", - "contentHash": "318204904265d7cb5ab476103a3fa3c6c55b92de415a177d0a209469806efa9f", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach", - "vi" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "fastify", - "specifiers": [ - "Fastify", - "FastifyInstance" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "WorkspaceManager" - ] - }, - { - "source": "../../src/local/routes/workspaces.js", - "specifiers": [ - "workspaceRoutes", - "toStateItemViews" - ] - }, - { - "source": "../../src/local/workspace-state.js", - "specifiers": [ - "StateItem" - ] - } - ], - "exports": [], - "totalLines": 152, - "hasStructuralAnalysis": true - }, - "packages/server/tests/local/ws-team-client.test.ts": { - "filePath": "packages/server/tests/local/ws-team-client.test.ts", - "contentHash": "1e65ee25261b7f55040bbfbe1040fabca586dd94c67fa5074db0a2f9f87b7441", - "functions": [ - { - "name": "getLastWs", - "params": [], - "returnType": "MockWs", - "exported": false, - "lineCount": 5 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach" - ] - }, - { - "source": "node:events", - "specifiers": [ - "EventEmitter" - ] - }, - { - "source": "../../src/local/ws-team-client.js", - "specifiers": [ - "WsTeamClient" - ] - } - ], - "exports": [], - "totalLines": 191, - "hasStructuralAnalysis": true - }, - "packages/server/tests/offline-mode.test.ts": { - "filePath": "packages/server/tests/offline-mode.test.ts", - "contentHash": "77451eaac005d9aae99cf2bfbf865805ab4af628cf624c798b53445b058784d5", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll", - "vi" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "SessionStore", - "FrameStore" - ] - }, - { - "source": "../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "../src/local/offline-manager.js", - "specifiers": [ - "OfflineManager" - ] - }, - { - "source": "node:events", - "specifiers": [ - "EventEmitter" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "./test-utils.js", - "specifiers": [ - "injectWithAuth" - ] - } - ], - "exports": [], - "totalLines": 278, - "hasStructuralAnalysis": true - }, - "packages/server/tests/offline-tools.test.ts": { - "filePath": "packages/server/tests/offline-tools.test.ts", - "contentHash": "b0cb1eeffbf41824ffecc35abdc7387dc77ee2dcacaf1539e4a17151417ffe4c", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../../agent/src/system-tools.js", - "specifiers": [ - "createSystemTools" - ] - }, - { - "source": "../../agent/src/git-tools.js", - "specifiers": [ - "createGitTools" - ] - }, - { - "source": "../../agent/src/tool-filter.js", - "specifiers": [ - "filterOfflineTools", - "getOfflineCapableToolNames" - ] - }, - { - "source": "../../agent/src/tools.js", - "specifiers": [ - "ToolDefinition" - ] - } - ], - "exports": [], - "totalLines": 112, - "hasStructuralAnalysis": true - }, - "packages/server/tests/performance/benchmarks.test.ts": { - "filePath": "packages/server/tests/performance/benchmarks.test.ts", - "contentHash": "e6739a52e566ed3ba98e254d41514ed112ada6afdd3c035fd59c0f43ee87b04b", - "functions": [ - { - "name": "createTmpDir", - "params": [ - "prefix" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "cleanupDir", - "params": [ - "dir" - ], - "returnType": "void", - "exported": false, - "lineCount": 5 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "FrameStore", - "SessionStore", - "VaultStore", - "WorkspaceManager" - ] - }, - { - "source": "../../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "../test-utils.js", - "specifiers": [ - "injectWithAuth" - ] - }, - { - "source": "better-sqlite3", - "specifiers": [ - "Database" - ] - } - ], - "exports": [], - "totalLines": 441, - "hasStructuralAnalysis": true - }, - "packages/server/tests/persona-tool-filter.test.ts": { - "filePath": "packages/server/tests/persona-tool-filter.test.ts", - "contentHash": "ca23393f453e8f4dfffd9ed89d7510c6f7ecc027f9313bc134363ad1a3fd1724", - "functions": [ - { - "name": "tool", - "params": [ - "name" - ], - "returnType": "ToolDefinition", - "exported": false, - "lineCount": 2 - }, - { - "name": "persona", - "params": [ - "over" - ], - "returnType": "AgentPersona", - "exported": false, - "lineCount": 2 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "ToolDefinition", - "AgentPersona" - ] - }, - { - "source": "../src/local/persona-tool-filter.js", - "specifiers": [ - "applyPersonaToolFilter", - "ALWAYS_AVAILABLE_TOOLS", - "READ_ONLY_WRITE_TOOLS" - ] - } - ], - "exports": [], - "totalLines": 59, - "hasStructuralAnalysis": true - }, - "packages/server/tests/plugin-autoload.test.ts": { - "filePath": "packages/server/tests/plugin-autoload.test.ts", - "contentHash": "7a6c910c912b1b2967569280c5089c6450c9339dbbceebdf71f0405f81ca6009", - "functions": [ - { - "name": "createTmpDataDir", - "params": [], - "returnType": "string", - "exported": false, - "lineCount": 12 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "FrameStore", - "SessionStore" - ] - }, - { - "source": "../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - } - ], - "exports": [], - "totalLines": 238, - "hasStructuralAnalysis": true - }, - "packages/server/tests/proactive-handlers.test.ts": { - "filePath": "packages/server/tests/proactive-handlers.test.ts", - "contentHash": "19f134261eff9f4c49f857bacae37c7ff400063fce4b4c6af45c86cee84fb815", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "WorkspaceManager", - "AwarenessLayer" - ] - }, - { - "source": "../src/local/proactive-handlers.js", - "specifiers": [ - "generateMorningBriefing", - "checkStaleWorkspaces", - "checkPendingTasks", - "suggestCapabilities", - "ProactiveContext" - ] - } - ], - "exports": [], - "totalLines": 273, - "hasStructuralAnalysis": true - }, - "packages/server/tests/proactive.test.ts": { - "filePath": "packages/server/tests/proactive.test.ts", - "contentHash": "51dcf23a827c45712adcaa90ce7d621cd39ce6e7f0bd613d8e3cda4645df9475", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyRequest", - "FastifyReply" - ] - }, - { - "source": "../src/index.js", - "specifiers": [ - "buildServer" - ] - }, - { - "source": "../src/db/schema.js", - "specifiers": [ - "users", - "proactivePatterns", - "suggestionsLog" - ] - }, - { - "source": "drizzle-orm", - "specifiers": [ - "sql", - "eq" - ] - }, - { - "source": "../src/services/proactive-service.js", - "specifiers": [ - "ProactiveService" - ] - } - ], - "exports": [], - "totalLines": 197, - "hasStructuralAnalysis": true - }, - "packages/server/tests/routes/acquisition-integration.test.ts": { - "filePath": "packages/server/tests/routes/acquisition-integration.test.ts", - "contentHash": "cf70adaa5378fd08c6ad15a4bf4ceb19f3f12fdf4c437d9ee67463ed60335e98", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "createSkillTools", - "SkillToolsDeps" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "loadSkills", - "needsConfirmation" - ] - } - ], - "exports": [], - "totalLines": 228, - "hasStructuralAnalysis": true - }, - "packages/server/tests/routes/agent-search.test.ts": { - "filePath": "packages/server/tests/routes/agent-search.test.ts", - "contentHash": "33e6f5c47103fe1579280a17db4d658a015c52b283a730734a57ac410907f683", - "functions": [ - { - "name": "conn", - "params": [ - "over" - ], - "returnType": "ConnectorDefinition", - "exported": false, - "lineCount": 5 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "ConnectorDefinition" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "CapabilityCandidate" - ] - }, - { - "source": "../../src/local/routes/agent-search.js", - "specifiers": [ - "tokenizeNeed", - "scoreConnectors", - "annotateEngineCandidate", - "pickThreeUp", - "AgentSearchCandidate" - ] - } - ], - "exports": [], - "totalLines": 120, - "hasStructuralAnalysis": true - }, - "packages/server/tests/routes/agents.test.ts": { - "filePath": "packages/server/tests/routes/agents.test.ts", - "contentHash": "71258f62890255511a2f09c723409eff8e3a57d369ec0cbbbdb54e91db63de69", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "../../src/index.js", - "specifiers": [ - "buildServer" - ] - }, - { - "source": "../../src/db/schema.js", - "specifiers": [ - "users", - "agents", - "agentGroups", - "agentGroupMembers", - "agentJobs", - "teams" - ] - }, - { - "source": "drizzle-orm", - "specifiers": [ - "sql", - "eq" - ] - } - ], - "exports": [], - "totalLines": 308, - "hasStructuralAnalysis": true - }, - "packages/server/tests/routes/analytics.test.ts": { - "filePath": "packages/server/tests/routes/analytics.test.ts", - "contentHash": "3ae3361863adb652111435ec4b842f0346e9e91b4fbccfaa2f3e9221b3ee2e98", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "../../src/index.js", - "specifiers": [ - "buildServer" - ] - }, - { - "source": "../../src/db/schema.js", - "specifiers": [ - "users", - "teams", - "teamMembers", - "agentAuditLog", - "agentJobs", - "teamCapabilityRequests" - ] - }, - { - "source": "drizzle-orm", - "specifiers": [ - "sql" - ] - } - ], - "exports": [], - "totalLines": 262, - "hasStructuralAnalysis": true - }, - "packages/server/tests/routes/approval-flow.test.ts": { - "filePath": "packages/server/tests/routes/approval-flow.test.ts", - "contentHash": "7da49b3477c8526af0838f80dbb4631c9f98eaeeafa41995dd750ed4e0c03f76", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "../test-utils.js", - "specifiers": [ - "injectWithAuth" - ] - } - ], - "exports": [], - "totalLines": 134, - "hasStructuralAnalysis": true - }, - "packages/server/tests/routes/capabilities.test.ts": { - "filePath": "packages/server/tests/routes/capabilities.test.ts", - "contentHash": "820bc1a65afcca350b2c8ea0053f8da194fca7bebdbd1e9740ac6d9f6fb4c331", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "SessionStore", - "FrameStore" - ] - }, - { - "source": "../../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "../test-utils.js", - "specifiers": [ - "injectWithAuth" - ] - } - ], - "exports": [], - "totalLines": 251, - "hasStructuralAnalysis": true - }, - "packages/server/tests/routes/capability-governance.test.ts": { - "filePath": "packages/server/tests/routes/capability-governance.test.ts", - "contentHash": "f3d3893ad2e21f7514cc0bda19b61b6ab5af622f6ba727aa59cd1109bb197ebf", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - } - ], - "exports": [], - "totalLines": 10, - "hasStructuralAnalysis": true - }, - "packages/server/tests/routes/capability-packs.test.ts": { - "filePath": "packages/server/tests/routes/capability-packs.test.ts", - "contentHash": "5fbb3a4a6002f2955aad0cae49d31d80b1b86ef8bffd49b9d7e6918bf62c3c83", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "SessionStore", - "FrameStore" - ] - }, - { - "source": "../../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "../test-utils.js", - "specifiers": [ - "injectWithAuth" - ] - } - ], - "exports": [], - "totalLines": 96, - "hasStructuralAnalysis": true - }, - "packages/server/tests/routes/commands.test.ts": { - "filePath": "packages/server/tests/routes/commands.test.ts", - "contentHash": "3eceb074b9d1d732368457cebe597c79fe7a287691834b186b0c9d4f02309c2d", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "SessionStore", - "FrameStore" - ] - }, - { - "source": "../../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "../test-utils.js", - "specifiers": [ - "injectWithAuth" - ] - } - ], - "exports": [], - "totalLines": 153, - "hasStructuralAnalysis": true - }, - "packages/server/tests/routes/connectors-tier.test.ts": { - "filePath": "packages/server/tests/routes/connectors-tier.test.ts", - "contentHash": "368ee21b022aafee2e2f116be3780cad19c253d6886a3e3615c881b1ca099ccd", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "getCapabilities" - ] - }, - { - "source": "../../src/local/routes/connectors.js", - "specifiers": [ - "connectorCapExceeded" - ] - } - ], - "exports": [], - "totalLines": 37, - "hasStructuralAnalysis": true - }, - "packages/server/tests/routes/context-injection.test.ts": { - "filePath": "packages/server/tests/routes/context-injection.test.ts", - "contentHash": "a4380d287d600e38aff63a9c51e75d069abbb3b90ddb61a1b13d4d1171343895", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../../src/local/routes/workspace-context.js", - "specifiers": [ - "buildWorkspaceNowBlock", - "formatWorkspaceNowPrompt" - ] - } - ], - "exports": [], - "totalLines": 266, - "hasStructuralAnalysis": true - }, - "packages/server/tests/routes/cron-api.test.ts": { - "filePath": "packages/server/tests/routes/cron-api.test.ts", - "contentHash": "a58e5ee1396c0552d5f637c02f72183c4f84575e33defc6a1823bf61431b3fd7", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "../test-utils.js", - "specifiers": [ - "injectWithAuth" - ] - } - ], - "exports": [], - "totalLines": 232, - "hasStructuralAnalysis": true - }, - "packages/server/tests/routes/health.test.ts": { - "filePath": "packages/server/tests/routes/health.test.ts", - "contentHash": "dff16d40280f0e70172c50661d6c23265b2513d6a1ec68d5721ff30961dd8ead", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - } - ], - "exports": [], - "totalLines": 103, - "hasStructuralAnalysis": true - }, - "packages/server/tests/routes/knowledge.test.ts": { - "filePath": "packages/server/tests/routes/knowledge.test.ts", - "contentHash": "9537dc27d34e1f65df99b8313223b61528ee25df86fa453a98451f61c2f98e61", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "../../src/index.js", - "specifiers": [ - "buildServer" - ] - }, - { - "source": "../../src/db/schema.js", - "specifiers": [ - "users", - "teams", - "teamMembers", - "teamEntities", - "teamRelations" - ] - }, - { - "source": "drizzle-orm", - "specifiers": [ - "sql" - ] - } - ], - "exports": [], - "totalLines": 292, - "hasStructuralAnalysis": true - }, - "packages/server/tests/routes/messages.test.ts": { - "filePath": "packages/server/tests/routes/messages.test.ts", - "contentHash": "82e6c9ee80c4832c42cb1f24bff5555c0e51e3a62408928305382e11d61a7772", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "../../src/index.js", - "specifiers": [ - "buildServer" - ] - }, - { - "source": "../../src/db/schema.js", - "specifiers": [ - "users", - "teams", - "teamMembers", - "teamEntities", - "tasks", - "messages" - ] - }, - { - "source": "drizzle-orm", - "specifiers": [ - "sql" - ] - } - ], - "exports": [], - "totalLines": 393, - "hasStructuralAnalysis": true - }, - "packages/server/tests/routes/persistence.test.ts": { - "filePath": "packages/server/tests/routes/persistence.test.ts", - "contentHash": "586486d7d90d2ec14fab109a3530bdc1522387d59628296293e1a25191300cea", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "afterAll" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "../test-utils.js", - "specifiers": [ - "injectWithAuth" - ] - } - ], - "exports": [], - "totalLines": 255, - "hasStructuralAnalysis": true - }, - "packages/server/tests/routes/resources.test.ts": { - "filePath": "packages/server/tests/routes/resources.test.ts", - "contentHash": "eba76930e6068b587426174b2d442887da55451b961ef447c257da87b148420c", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "../../src/index.js", - "specifiers": [ - "buildServer" - ] - }, - { - "source": "../../src/db/schema.js", - "specifiers": [ - "users", - "teams", - "teamMembers", - "teamResources" - ] - }, - { - "source": "drizzle-orm", - "specifiers": [ - "sql" - ] - } - ], - "exports": [], - "totalLines": 227, - "hasStructuralAnalysis": true - }, - "packages/server/tests/routes/session-state-extraction.test.ts": { - "filePath": "packages/server/tests/routes/session-state-extraction.test.ts", - "contentHash": "7a1f54b4327e180f6617fd52bfd7e385472148bc8f6f86c6118e51581fcb222e", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "../../src/local/routes/sessions.js", - "specifiers": [ - "extractOpenQuestions", - "classifyThreads", - "extractSessionOutcome", - "persistSessionOutcome", - "OpenQuestion", - "ThreadInfo", - "SessionOutcome" - ] - } - ], - "exports": [], - "totalLines": 498, - "hasStructuralAnalysis": true - }, - "packages/server/tests/routes/session-timeline.test.ts": { - "filePath": "packages/server/tests/routes/session-timeline.test.ts", - "contentHash": "0e698d9053be037ff1bcbf804da6837623698267b8c941069cc0a179b0243fdb", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "../../src/local/routes/sessions.js", - "specifiers": [ - "parseSessionTimeline", - "TimelineEvent" - ] - } - ], - "exports": [], - "totalLines": 142, - "hasStructuralAnalysis": true - }, - "packages/server/tests/routes/starter-catalog.test.ts": { - "filePath": "packages/server/tests/routes/starter-catalog.test.ts", - "contentHash": "f0e680598074070ce28b8a58d6558fc761bc3cee07c1cac0b1a6bf5e4527e6e3", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll", - "beforeEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "../test-utils.js", - "specifiers": [ - "injectWithAuth" - ] - } - ], - "exports": [], - "totalLines": 183, - "hasStructuralAnalysis": true - }, - "packages/server/tests/routes/tasks.test.ts": { - "filePath": "packages/server/tests/routes/tasks.test.ts", - "contentHash": "12aded2a4004e5bdba663972a120ac43b08fc10e1049aca0ab4efcb0b4366762", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "../../src/index.js", - "specifiers": [ - "buildServer" - ] - }, - { - "source": "../../src/db/schema.js", - "specifiers": [ - "users", - "teams", - "teamMembers", - "tasks" - ] - }, - { - "source": "drizzle-orm", - "specifiers": [ - "sql" - ] - } - ], - "exports": [], - "totalLines": 211, - "hasStructuralAnalysis": true - }, - "packages/server/tests/routes/teams.test.ts": { - "filePath": "packages/server/tests/routes/teams.test.ts", - "contentHash": "69be8a6a9046a488f45386600eb11c621d1eeca65a012c175f261d56854dac50", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "../../src/index.js", - "specifiers": [ - "buildServer" - ] - }, - { - "source": "../../src/db/schema.js", - "specifiers": [ - "users", - "teams", - "teamMembers" - ] - }, - { - "source": "drizzle-orm", - "specifiers": [ - "sql" - ] - } - ], - "exports": [], - "totalLines": 289, - "hasStructuralAnalysis": true - }, - "packages/server/tests/routes/trust-wiring.test.ts": { - "filePath": "packages/server/tests/routes/trust-wiring.test.ts", - "contentHash": "6e9abc200f324f1fa9381704d16b46725cffebf56e420366aff5d2885e5be8e4", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "better-sqlite3", - "specifiers": [ - "Database" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "../test-utils.js", - "specifiers": [ - "injectWithAuth" - ] - } - ], - "exports": [], - "totalLines": 196, - "hasStructuralAnalysis": true - }, - "packages/server/tests/routes/workspace-context.test.ts": { - "filePath": "packages/server/tests/routes/workspace-context.test.ts", - "contentHash": "68a384b489b2c54ab71b715663aace1f989e209a5da8d1affa6fccaa455b8e7b", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach", - "vi" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../../src/local/routes/workspace-context.js", - "specifiers": [ - "buildWorkspaceNowBlock", - "formatWorkspaceNowPrompt", - "WorkspaceNowBlock" - ] - } - ], - "exports": [], - "totalLines": 303, - "hasStructuralAnalysis": true - }, - "packages/server/tests/routes/workspace-state.test.ts": { - "filePath": "packages/server/tests/routes/workspace-state.test.ts", - "contentHash": "56ef51a8b1bd8c257184f215d91588d00cc5bfb1fe05afad51281504726a0b59", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../../src/local/workspace-state.js", - "specifiers": [ - "buildWorkspaceState", - "formatWorkspaceStatePrompt", - "computeFreshness", - "WorkspaceState" - ] - } - ], - "exports": [], - "totalLines": 433, - "hasStructuralAnalysis": true - }, - "packages/server/tests/server.test.ts": { - "filePath": "packages/server/tests/server.test.ts", - "contentHash": "4083ba90bb49bc0dbba98314a4292d637206ad04d44ca874718f99976f837074", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "afterAll" - ] - }, - { - "source": "../src/index.js", - "specifiers": [ - "buildServer" - ] - } - ], - "exports": [], - "totalLines": 20, - "hasStructuralAnalysis": true - }, - "packages/server/tests/service-startup.test.ts": { - "filePath": "packages/server/tests/service-startup.test.ts", - "contentHash": "b97e08b4e378e92deb20d4a4ae638afe22a3e4235ed8163194b3ba607fffb789", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "node:net", - "specifiers": [ - "net" - ] - }, - { - "source": "../src/local/service.js", - "specifiers": [ - "checkPortAvailable" - ] - } - ], - "exports": [], - "totalLines": 56, - "hasStructuralAnalysis": true - }, - "packages/server/tests/service.test.ts": { - "filePath": "packages/server/tests/service.test.ts", - "contentHash": "caedc82ba53dd9310abeeb7506811980f6aeacc61cee5d71937514a092c4ddbf", - "functions": [ - { - "name": "makeTmpDir", - "params": [], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "randomPort", - "params": [], - "returnType": "number", - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "afterEach", - "vi" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../src/local/service.js", - "specifiers": [ - "startService" - ] - }, - { - "source": "../src/local/lifecycle.js", - "specifiers": [ - "getLiteLLMStatus" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - } - ], - "exports": [], - "totalLines": 167, - "hasStructuralAnalysis": true - }, - "packages/server/tests/services/evolution-service.test.ts": { - "filePath": "packages/server/tests/services/evolution-service.test.ts", - "contentHash": "97673f5fd807d49aca10219fc8006fad536544b68fc1494c9dd6b8c895e6e335", - "functions": [ - { - "name": "setupFixture", - "params": [], - "returnType": "Fixture", - "exported": false, - "lineCount": 23 - }, - { - "name": "teardown", - "params": [ - "fx" - ], - "returnType": "void", - "exported": false, - "lineCount": 4 - }, - { - "name": "seedTraces", - "params": [ - "fx", - "opts" - ], - "returnType": "void", - "exported": false, - "lineCount": 15 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach", - "vi" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "ExecutionTraceStore", - "EvolutionRunStore" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "BEHAVIORAL_SPEC_SECTIONS" - ] - }, - { - "source": "../../src/local/services/evolution-service.js", - "specifiers": [ - "EvolutionService", - "isEvolutionAutoEnabled", - "EvolutionServiceDeps", - "EvolutionTargetId", - "TickResult" - ] - } - ], - "exports": [], - "totalLines": 342, - "hasStructuralAnalysis": true - }, - "packages/server/tests/services/team-capability-governance.test.ts": { - "filePath": "packages/server/tests/services/team-capability-governance.test.ts", - "contentHash": "910a70fa3544094f5218020e204f18fd122d84e83a2d41694199592af3ed9d29", - "functions": [ - { - "name": "makePerms", - "params": [ - "overrides" - ], - "returnType": "EffectivePermissions", - "exported": false, - "lineCount": 10 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../../src/services/team-capability-governance.js", - "specifiers": [ - "resolvePermission", - "filterByPermissions", - "getDefaultPolicies", - "riskExceedsThreshold", - "EffectivePermissions" - ] - } - ], - "exports": [], - "totalLines": 204, - "hasStructuralAnalysis": true - }, - "packages/server/tests/signal-bus.test.ts": { - "filePath": "packages/server/tests/signal-bus.test.ts", - "contentHash": "8d2e1cdf10716b10270060b0cbef63b194d7863e04b59887b64b1d14513f09e7", - "functions": [ - { - "name": "makeSignal", - "params": [ - "overrides" - ], - "returnType": "WaggleMessage", - "exported": false, - "lineCount": 14 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi" - ] - }, - { - "source": "../src/local/signal-bus.js", - "specifiers": [ - "SignalBus", - "DEFAULT_BUFFER_SIZE" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "WaggleMessage" - ] - } - ], - "exports": [], - "totalLines": 151, - "hasStructuralAnalysis": true - }, - "packages/server/tests/signal-emitter-integration.test.ts": { - "filePath": "packages/server/tests/signal-emitter-integration.test.ts", - "contentHash": "fd9c85238fd016ae3d5858b2f3d1e6413f508c4e451d69b84b99339948421160", - "functions": [ - { - "name": "createTmpDir", - "params": [ - "prefix" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "cleanupDir", - "params": [ - "dir" - ], - "returnType": "void", - "exported": false, - "lineCount": 7 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "FrameStore", - "SessionStore" - ] - }, - { - "source": "@waggle/hive-mind-shim-core", - "specifiers": [ - "emitSignalToWaggleDance" - ] - }, - { - "source": "../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - } - ], - "exports": [], - "totalLines": 105, - "hasStructuralAnalysis": true - }, - "packages/server/tests/skill-integration.test.ts": { - "filePath": "packages/server/tests/skill-integration.test.ts", - "contentHash": "9e782ff5904691b54e06ead088d26cc0497efb9427c8c5c1bc02bd1268668825", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "../src/local/routes/chat.js", - "specifiers": [ - "buildSkillPromptSection" - ] - } - ], - "exports": [], - "totalLines": 88, - "hasStructuralAnalysis": true - }, - "packages/server/tests/start-trial.test.ts": { - "filePath": "packages/server/tests/start-trial.test.ts", - "contentHash": "44b98abda96a49ab4c30e95f2e4cb04fe55ddfbf415037c282130a54b9c105c7", - "functions": [ - { - "name": "readConfig", - "params": [ - "dataDir" - ], - "returnType": "Record", - "exported": false, - "lineCount": 5 - }, - { - "name": "writeConfig", - "params": [ - "dataDir", - "value" - ], - "returnType": "void", - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "./test-utils.js", - "specifiers": [ - "authInject" - ] - } - ], - "exports": [], - "totalLines": 218, - "hasStructuralAnalysis": true - }, - "packages/server/tests/stripe/checkout.test.ts": { - "filePath": "packages/server/tests/stripe/checkout.test.ts", - "contentHash": "422a9475c1366558c3c2e42f6567d952cfa148f8788396f4519e8e5628e8e6ff", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach", - "vi" - ] - }, - { - "source": "fastify", - "specifiers": [ - "Fastify", - "FastifyInstance" - ] - }, - { - "source": "../../src/stripe/checkout.js", - "specifiers": [ - "checkoutRoutes" - ] - } - ], - "exports": [], - "totalLines": 145, - "hasStructuralAnalysis": true - }, - "packages/server/tests/stripe/smoke-e2e.test.ts": { - "filePath": "packages/server/tests/stripe/smoke-e2e.test.ts", - "contentHash": "985fff10f1a53c18f24196ce6eea99280a8dc6a5d8f63686185ccce3a68d5ffb", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - } - ], - "exports": [], - "totalLines": 294, - "hasStructuralAnalysis": true - }, - "packages/server/tests/stripe/status.test.ts": { - "filePath": "packages/server/tests/stripe/status.test.ts", - "contentHash": "eea5fd302ea9ccd3d0d67302b61f8745e46d4bd7a2d01837e63bdf89798313a0", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "fastify", - "specifiers": [ - "Fastify", - "FastifyInstance" - ] - }, - { - "source": "../../src/stripe/index.js", - "specifiers": [ - "statusRoutes" - ] - } - ], - "exports": [], - "totalLines": 34, - "hasStructuralAnalysis": true - }, - "packages/server/tests/stripe/sync.test.ts": { - "filePath": "packages/server/tests/stripe/sync.test.ts", - "contentHash": "35ece798f2e15805bcd5023d553360ac01d942a8eea6854965f22cd7239a7289", - "functions": [ - { - "name": "buildServer", - "params": [ - "dataDir" - ], - "returnType": "FastifyInstance", - "exported": false, - "lineCount": 6 - }, - { - "name": "readTier", - "params": [ - "dataDir" - ], - "returnType": "string | undefined", - "exported": false, - "lineCount": 6 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach", - "vi" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "fastify", - "specifiers": [ - "Fastify", - "FastifyInstance" - ] - } - ], - "exports": [], - "totalLines": 148, - "hasStructuralAnalysis": true - }, - "packages/server/tests/stripe/webhook.test.ts": { - "filePath": "packages/server/tests/stripe/webhook.test.ts", - "contentHash": "639c823638e0f375421ffee19c268b4a70cb7290d89c998ca6d62e3d9c99d1f8", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach", - "vi" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "fastify", - "specifiers": [ - "Fastify" - ] - }, - { - "source": "../../src/stripe/webhook.js", - "specifiers": [ - "updateUserTier" - ] - }, - { - "source": "../../src/stripe/index.js", - "specifiers": [ - "tierFromPriceId" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "parseTier" - ] - } - ], - "exports": [], - "totalLines": 354, - "hasStructuralAnalysis": true - }, - "packages/server/tests/tasks-api.test.ts": { - "filePath": "packages/server/tests/tasks-api.test.ts", - "contentHash": "debbcb2cc7f6d3b3d91069cbb25e6b3df91954259ea5a728ecda1c668468f1c3", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "./test-utils.js", - "specifiers": [ - "injectWithAuth" - ] - } - ], - "exports": [], - "totalLines": 134, - "hasStructuralAnalysis": true - }, - "packages/server/tests/tauri-config.test.ts": { - "filePath": "packages/server/tests/tauri-config.test.ts", - "contentHash": "1763b5c1d4fb88bb30c7fe6b3b5f61e8299ee6ea95ef953917db0990436d577c", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - } - ], - "exports": [], - "totalLines": 162, - "hasStructuralAnalysis": true - }, - "packages/server/tests/team-local.test.ts": { - "filePath": "packages/server/tests/team-local.test.ts", - "contentHash": "5c284366030d3bf116049e4c73d25ef1fca7c7d90161007247c04e9d7959051c", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll", - "vi", - "beforeEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "./test-utils.js", - "specifiers": [ - "injectWithAuth" - ] - } - ], - "exports": [], - "totalLines": 133, - "hasStructuralAnalysis": true - }, - "packages/server/tests/test-utils.ts": { - "filePath": "packages/server/tests/test-utils.ts", - "contentHash": "72d494d6176361823d4a5a742171441d5435ff2eebe05acdbc1ab128fc52bc36", - "functions": [ - { - "name": "getAuthToken", - "params": [ - "server" - ], - "returnType": "string", - "exported": true, - "lineCount": 3 - }, - { - "name": "authInject", - "params": [ - "server", - "opts" - ], - "returnType": "InjectOptions", - "exported": true, - "lineCount": 11 - }, - { - "name": "injectWithAuth", - "params": [ - "server", - "opts" - ], - "exported": true, - "lineCount": 3 - }, - { - "name": "resetRateLimiter", - "params": [ - "server" - ], - "returnType": "void", - "exported": true, - "lineCount": 5 - } - ], - "classes": [], - "imports": [ - { - "source": "fastify", - "specifiers": [ - "FastifyInstance", - "InjectOptions" - ] - } - ], - "exports": [ - "getAuthToken", - "authInject", - "injectWithAuth", - "resetRateLimiter" - ], - "totalLines": 49, - "hasStructuralAnalysis": true - }, - "packages/server/tests/tier-enforcement-matrix.test.ts": { - "filePath": "packages/server/tests/tier-enforcement-matrix.test.ts", - "contentHash": "d9d68473a146001645f8c5d70ad8e738eef084fb63ca7c22c94b2dd29ee064cc", - "functions": [ - { - "name": "writeTier", - "params": [ - "dataDir", - "tier", - "trialStartedAt" - ], - "returnType": "void", - "exported": false, - "lineCount": 8 - }, - { - "name": "parseJsonSafe", - "params": [ - "raw" - ], - "returnType": "{ error?: string; required?: string; actual?: string }", - "exported": false, - "lineCount": 4 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "TIERS", - "Tier" - ] - }, - { - "source": "../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "./test-utils.js", - "specifiers": [ - "authInject" - ] - } - ], - "exports": [], - "totalLines": 183, - "hasStructuralAnalysis": true - }, - "packages/server/tests/tools-routes-launch.test.ts": { - "filePath": "packages/server/tests/tools-routes-launch.test.ts", - "contentHash": "556105ea888706c903d25757f509301ad16fa474d32dd44ba7fdaa7afd4aeffc", - "functions": [ - { - "name": "createTmpDir", - "params": [ - "prefix" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "cleanupDir", - "params": [ - "dir" - ], - "returnType": "void", - "exported": false, - "lineCount": 7 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll", - "vi" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "FrameStore", - "SessionStore" - ] - }, - { - "source": "../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "./test-utils.js", - "specifiers": [ - "injectWithAuth" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "launchTool", - "runHookCommand" - ] - } - ], - "exports": [], - "totalLines": 413, - "hasStructuralAnalysis": true - }, - "packages/server/tests/tools-routes.test.ts": { - "filePath": "packages/server/tests/tools-routes.test.ts", - "contentHash": "d86eea01abf682a5250f743421950962ee37eb1d28ecb2e73e69f5c828faaf7f", - "functions": [ - { - "name": "createTmpDir", - "params": [ - "prefix" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "cleanupDir", - "params": [ - "dir" - ], - "returnType": "void", - "exported": false, - "lineCount": 7 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "FrameStore", - "SessionStore" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "SUPPORTED_TOOLS" - ] - }, - { - "source": "../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "./test-utils.js", - "specifiers": [ - "injectWithAuth" - ] - } - ], - "exports": [], - "totalLines": 113, - "hasStructuralAnalysis": true - }, - "packages/server/tests/validate.test.ts": { - "filePath": "packages/server/tests/validate.test.ts", - "contentHash": "03d5a8bba8420e21d94bbb0a275952836fd29b0a4a1b111f0a3ac048ae0bc607", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "../src/local/routes/validate.js", - "specifiers": [ - "isSafeSegment", - "assertSafeSegment" - ] - }, - { - "source": "../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "./test-utils.js", - "specifiers": [ - "injectWithAuth" - ] - } - ], - "exports": [], - "totalLines": 124, - "hasStructuralAnalysis": true - }, - "packages/server/tests/waggle-dance-bridge.test.ts": { - "filePath": "packages/server/tests/waggle-dance-bridge.test.ts", - "contentHash": "bdfc1f275566fc6e42de51f25763cf7cf18c024301928107d4856c3f9a2b3307", - "functions": [ - { - "name": "makeMsg", - "params": [ - "overrides" - ], - "returnType": "WaggleMessage", - "exported": false, - "lineCount": 14 - }, - { - "name": "createTmpDir", - "params": [ - "prefix" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "cleanupDir", - "params": [ - "dir" - ], - "returnType": "void", - "exported": false, - "lineCount": 7 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll", - "beforeEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "FrameStore", - "SessionStore" - ] - }, - { - "source": "../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "./test-utils.js", - "specifiers": [ - "injectWithAuth" - ] - }, - { - "source": "../src/local/waggle-dance-bridge.js", - "specifiers": [ - "categorizeSubtype", - "buildLegacyContent" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "WaggleMessage", - "MessageSubtype" - ] - } - ], - "exports": [], - "totalLines": 261, - "hasStructuralAnalysis": true - }, - "packages/server/tests/waggle-dance-routes.test.ts": { - "filePath": "packages/server/tests/waggle-dance-routes.test.ts", - "contentHash": "c42a8233a196de17f9346a24a56fec3205cc1c0988ae35af7df38851ea8830eb", - "functions": [ - { - "name": "createTmpDir", - "params": [ - "prefix" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - }, - { - "name": "cleanupDir", - "params": [ - "dir" - ], - "returnType": "void", - "exported": false, - "lineCount": 7 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll", - "beforeEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "FrameStore", - "SessionStore" - ] - }, - { - "source": "../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "./test-utils.js", - "specifiers": [ - "injectWithAuth" - ] - } - ], - "exports": [], - "totalLines": 287, - "hasStructuralAnalysis": true - }, - "packages/server/tests/wave-h-continuity.test.ts": { - "filePath": "packages/server/tests/wave-h-continuity.test.ts", - "contentHash": "daa9c7aa69d8ab1bfcd777c8fe39d9805dbda345882b1a391288496ad8f0dd6d", - "functions": [ - { - "name": "makeItem", - "params": [ - "content", - "freshness", - "source" - ], - "returnType": "StateItem", - "exported": false, - "lineCount": 5 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/local/workspace-state.js", - "specifiers": [ - "computeFreshness", - "formatWorkspaceStatePrompt", - "WorkspaceState", - "StateItem" - ] - } - ], - "exports": [], - "totalLines": 179, - "hasStructuralAnalysis": true - }, - "packages/server/tests/web-frontend.test.ts": { - "filePath": "packages/server/tests/web-frontend.test.ts", - "contentHash": "28021e5f009ad4db10d029cbadee28ef749669b72fe19b3c9870e7c634204ea7", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - } - ], - "exports": [], - "totalLines": 115, - "hasStructuralAnalysis": true - }, - "packages/server/tests/workspace-api.test.ts": { - "filePath": "packages/server/tests/workspace-api.test.ts", - "contentHash": "70f7025d6aed6fc6bc03478a9b5acc8bbab840cfff39372332e085b93be84ade", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "./test-utils.js", - "specifiers": [ - "injectWithAuth" - ] - } - ], - "exports": [], - "totalLines": 747, - "hasStructuralAnalysis": true - }, - "packages/server/tests/workspace-sessions-concurrency.test.ts": { - "filePath": "packages/server/tests/workspace-sessions-concurrency.test.ts", - "contentHash": "92edafa0ce99211fdfcf1f2776c1f54a76dbefae7795c333c938280ceb9da4e5", - "functions": [ - { - "name": "createTempMind", - "params": [ - "label" - ], - "returnType": "TestWorkspace", - "exported": false, - "lineCount": 6 - }, - { - "name": "cleanupMind", - "params": [ - "ws" - ], - "returnType": "void", - "exported": false, - "lineCount": 6 - }, - { - "name": "seedFrame", - "params": [ - "ws", - "content", - "importance" - ], - "returnType": "void", - "exported": false, - "lineCount": 13 - }, - { - "name": "buildOrchestrator", - "params": [ - "personal", - "workspace" - ], - "returnType": "Orchestrator", - "exported": false, - "lineCount": 10 - } - ], - "classes": [ - { - "name": "FakeEmbedder", - "methods": [ - "embed", - "embedBatch" - ], - "properties": [ - "dimensions" - ], - "exported": false, - "lineCount": 9 - } - ], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "afterEach", - "beforeEach", - "describe", - "expect", - "it" - ] - }, - { - "source": "node:crypto", - "specifiers": [ - "randomUUID" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "Embedder" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "Orchestrator" - ] - }, - { - "source": "../src/local/workspace-sessions.js", - "specifiers": [ - "WorkspaceSessionManager" - ] - } - ], - "exports": [], - "totalLines": 310, - "hasStructuralAnalysis": true - }, - "packages/server/tests/workspace-templates.test.ts": { - "filePath": "packages/server/tests/workspace-templates.test.ts", - "contentHash": "b3bda4d6b6f97600a0ab2fef7773f2a116fa0dc01b245f9cebb9b6d9139323e7", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "../src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyInstance" - ] - }, - { - "source": "./test-utils.js", - "specifiers": [ - "injectWithAuth" - ] - } - ], - "exports": [], - "totalLines": 202, - "hasStructuralAnalysis": true - }, - "packages/server/tests/ws/gateway.test.ts": { - "filePath": "packages/server/tests/ws/gateway.test.ts", - "contentHash": "c1b29edf5e3683f280f8b4ce7e5ac9bc63b13f25b52b196d1c8a08ae9087aaf8", - "functions": [ - { - "name": "mockWs", - "params": [ - "readyState" - ], - "returnType": "MockWebSocket", - "exported": false, - "lineCount": 3 - }, - { - "name": "asWs", - "params": [ - "ws" - ], - "returnType": "WebSocket", - "exported": false, - "lineCount": 3 - }, - { - "name": "makeTestJwt", - "params": [ - "payload" - ], - "returnType": "string", - "exported": false, - "lineCount": 7 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll", - "vi" - ] - }, - { - "source": "vitest", - "specifiers": [ - "Mock" - ] - }, - { - "source": "ws", - "specifiers": [ - "WebSocket" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "Task", - "SuggestionEntry" - ] - }, - { - "source": "../../src/plugins/auth.js", - "specifiers": [ - "AuthenticateFn" - ] - }, - { - "source": "../../src/ws/connection-manager.js", - "specifiers": [ - "ConnectionManager" - ] - }, - { - "source": "../../src/ws/gateway.js", - "specifiers": [ - "setWsTokenVerifier" - ] - } - ], - "exports": [], - "totalLines": 514, - "hasStructuralAnalysis": true - }, - "packages/server/tsconfig.json": { - "filePath": "packages/server/tsconfig.json", - "contentHash": "c328a5b2595df8ac247c6dfb0986d63ba281b63449eb87d7e35d2bd007344834", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 25, - "hasStructuralAnalysis": true - }, - "packages/shared/package.json": { - "filePath": "packages/shared/package.json", - "contentHash": "a8c228dc2883d9d6d89eeca3bfbfd17c2b4c7f90c425bd2a02525888507187c2", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 20, - "hasStructuralAnalysis": true - }, - "packages/shared/src/connector-recommendations.ts": { - "filePath": "packages/shared/src/connector-recommendations.ts", - "contentHash": "8456a15bfe27230bc778e72c309193703ffb9efb829e27027b889b356ee6381a", - "functions": [ - { - "name": "recommendConnectors", - "params": [ - "personaId" - ], - "returnType": "ConnectorRecommendation", - "exported": true, - "lineCount": 5 - }, - { - "name": "flattenRecommendation", - "params": [ - "rec" - ], - "returnType": "string[]", - "exported": true, - "lineCount": 3 - }, - { - "name": "allReferencedConnectorIds", - "params": [], - "returnType": "string[]", - "exported": true, - "lineCount": 10 - } - ], - "classes": [], - "imports": [], - "exports": [ - "CONNECTOR_RECOMMENDATIONS", - "recommendConnectors", - "flattenRecommendation", - "allReferencedConnectorIds" - ], - "totalLines": 174, - "hasStructuralAnalysis": true - }, - "packages/shared/src/constants.ts": { - "filePath": "packages/shared/src/constants.ts", - "contentHash": "c6a26f1cdc1acb35952a5a6925a06eefe5503e1b2af137f36135065e7d9b9c9e", - "functions": [], - "classes": [], - "imports": [], - "exports": [ - "TEAM_ROLES", - "TASK_STATUSES", - "TASK_PRIORITIES", - "MESSAGE_TYPES", - "JOB_TYPES", - "JOB_STATUSES", - "AGENT_GROUP_STRATEGIES", - "RESOURCE_TYPES", - "SUGGESTION_TYPES", - "MAX_SUGGESTIONS_PER_INTERACTION", - "SCOUT_DEFAULT_INTERVAL_MS", - "SUBCONSCIOUS_INTERACTION_THRESHOLD", - "HIVE_MIND_CRON" - ], - "totalLines": 17, - "hasStructuralAnalysis": true - }, - "packages/shared/src/index.ts": { - "filePath": "packages/shared/src/index.ts", - "contentHash": "de62b0db21d9c0b42b594cfbb365e5699bd70ef18f99c7b2b6d18d9043e7b475", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 10, - "hasStructuralAnalysis": true - }, - "packages/shared/src/mcp-catalog.ts": { - "filePath": "packages/shared/src/mcp-catalog.ts", - "contentHash": "8c5c5f7370699d05c6a826e2be45017243a31fa6a302f4d73704a700b247263f", - "functions": [ - { - "name": "normalizeMcpId", - "params": [ - "raw" - ], - "returnType": "string", - "exported": true, - "lineCount": 15 - }, - { - "name": "assertCatalogUnique", - "params": [ - "catalog" - ], - "returnType": "void", - "exported": false, - "lineCount": 25 - } - ], - "classes": [], - "imports": [], - "exports": [ - "MCP_CATEGORIES", - "CATEGORY_EMOJI", - "MCP_CATALOG", - "normalizeMcpId" - ], - "totalLines": 320, - "hasStructuralAnalysis": true - }, - "packages/shared/src/risk.ts": { - "filePath": "packages/shared/src/risk.ts", - "contentHash": "f38114b57453135c6e7c2faa8297b349c969fbdbe406018fe8058a37fbea48be", - "functions": [ - { - "name": "riskRank", - "params": [ - "level" - ], - "returnType": "number", - "exported": true, - "lineCount": 3 - }, - { - "name": "riskAtLeast", - "params": [ - "level", - "threshold" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 3 - }, - { - "name": "sqlInList", - "params": [ - "values" - ], - "returnType": "string", - "exported": true, - "lineCount": 3 - } - ], - "classes": [], - "imports": [], - "exports": [ - "RISK_LEVELS", - "APPROVAL_CLASSES", - "TRUST_SOURCES", - "ASSESSMENT_MODES", - "AUDIT_ACTIONS", - "AUDIT_CAPABILITY_TYPES", - "AUDIT_INITIATORS", - "riskRank", - "riskAtLeast", - "sqlInList" - ], - "totalLines": 83, - "hasStructuralAnalysis": true - }, - "packages/shared/src/schemas.ts": { - "filePath": "packages/shared/src/schemas.ts", - "contentHash": "94dd678057acadb68d568eb04b143dc2f3ba1bc914369cfc94f6c9d07a70cab3", - "functions": [], - "classes": [], - "imports": [ - { - "source": "zod", - "specifiers": [ - "z" - ] - }, - { - "source": "./types.js", - "specifiers": [ - "AGENT_RUN_STATES" - ] - } - ], - "exports": [ - "createTeamSchema", - "inviteMemberSchema", - "updateMemberSchema", - "createTaskSchema", - "updateTaskSchema", - "sendMessageSchema", - "createAgentSchema", - "createAgentGroupSchema", - "createEntitySchema", - "createRelationSchema", - "createResourceSchema", - "createCronSchema", - "queueJobSchema" - ], - "totalLines": 139, - "hasStructuralAnalysis": true - }, - "packages/shared/src/tiers.ts": { - "filePath": "packages/shared/src/tiers.ts", - "contentHash": "735937844e52cc780c992de843fadf48caba00de8a5bdfaaa587f1c28bf0ab35", - "functions": [ - { - "name": "readEnv", - "params": [ - "key" - ], - "returnType": "string | null", - "exported": false, - "lineCount": 4 - }, - { - "name": "parseTier", - "params": [ - "raw" - ], - "returnType": "Tier | null", - "exported": true, - "lineCount": 5 - }, - { - "name": "isTrialExpired", - "params": [ - "trialStartedAt" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 8 - }, - { - "name": "getEffectiveTier", - "params": [ - "tier", - "trialStartedAt" - ], - "returnType": "Tier", - "exported": true, - "lineCount": 4 - }, - { - "name": "trialDaysRemaining", - "params": [ - "trialStartedAt" - ], - "returnType": "number", - "exported": true, - "lineCount": 8 - }, - { - "name": "tierSatisfies", - "params": [ - "actual", - "required" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 3 - }, - { - "name": "assertTierCapability", - "params": [ - "actual", - "required" - ], - "returnType": "void", - "exported": true, - "lineCount": 5 - }, - { - "name": "getCapabilities", - "params": [ - "tier" - ], - "returnType": "TierCapabilities", - "exported": true, - "lineCount": 3 - }, - { - "name": "hasCapability", - "params": [ - "tier", - "capability", - "minimumValue" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 12 - } - ], - "classes": [ - { - "name": "TierError", - "methods": [ - "constructor" - ], - "properties": [], - "exported": true, - "lineCount": 9 - } - ], - "imports": [], - "exports": [ - "TIERS", - "TRIAL_DURATION_DAYS", - "TIER_CAPABILITIES", - "parseTier", - "isTrialExpired", - "getEffectiveTier", - "trialDaysRemaining", - "TierError", - "tierSatisfies", - "assertTierCapability", - "getCapabilities", - "hasCapability" - ], - "totalLines": 252, - "hasStructuralAnalysis": true - }, - "packages/shared/src/tool-detection.ts": { - "filePath": "packages/shared/src/tool-detection.ts", - "contentHash": "b0fee404026d175dff6c6bb5e20fa86ce2bccd18c3837e399b2d9975b0fd8fc0", - "functions": [], - "classes": [], - "imports": [], - "exports": [ - "SUPPORTED_TOOLS", - "LAUNCH_COHORT", - "TOOL_DISPLAY_NAMES" - ], - "totalLines": 107, - "hasStructuralAnalysis": true - }, - "packages/shared/src/types.ts": { - "filePath": "packages/shared/src/types.ts", - "contentHash": "1d1c6e53a1b23ad07053ae8d73f33f4a388a27e4aed6a610bacce956eaf89519", - "functions": [], - "classes": [], - "imports": [], - "exports": [ - "AGENT_RUN_STATES", - "EXTENSION_TYPES" - ], - "totalLines": 635, - "hasStructuralAnalysis": true - }, - "packages/shared/tests/connector-recommendations.test.ts": { - "filePath": "packages/shared/tests/connector-recommendations.test.ts", - "contentHash": "501170971c5fa74790068c46cf7d4478bbd212ee13d684a3a385133a34207d31", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/connector-recommendations.js", - "specifiers": [ - "recommendConnectors", - "flattenRecommendation", - "allReferencedConnectorIds", - "CONNECTOR_RECOMMENDATIONS" - ] - }, - { - "source": "../src/mcp-catalog.js", - "specifiers": [ - "MCP_CATALOG" - ] - } - ], - "exports": [], - "totalLines": 114, - "hasStructuralAnalysis": true - }, - "packages/shared/tests/risk.test.ts": { - "filePath": "packages/shared/tests/risk.test.ts", - "contentHash": "9d6a1a953921a149540fda114025a1f15f38d2145388bcdcfe4b15b2dfa33f42", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/risk.js", - "specifiers": [ - "RISK_LEVELS", - "APPROVAL_CLASSES", - "TRUST_SOURCES", - "ASSESSMENT_MODES", - "AUDIT_ACTIONS", - "AUDIT_CAPABILITY_TYPES", - "AUDIT_INITIATORS", - "riskRank", - "riskAtLeast", - "sqlInList" - ] - } - ], - "exports": [], - "totalLines": 55, - "hasStructuralAnalysis": true - }, - "packages/shared/tests/schemas.test.ts": { - "filePath": "packages/shared/tests/schemas.test.ts", - "contentHash": "ce76bcb65637d32312bd0a7ac291cf78290ca6fd4b899e25bd6c08730719d530", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/schemas.js", - "specifiers": [ - "createTeamSchema", - "createTaskSchema", - "sendMessageSchema", - "createAgentSchema", - "createAgentGroupSchema" - ] - } - ], - "exports": [], - "totalLines": 90, - "hasStructuralAnalysis": true - }, - "packages/shared/tsconfig.json": { - "filePath": "packages/shared/tsconfig.json", - "contentHash": "a57864dee001d032dcac41711ba5a9c07c8c1e15fe8969bfe933d2bd0bb10b13", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 22, - "hasStructuralAnalysis": true - }, - "packages/waggle-dance/package.json": { - "filePath": "packages/waggle-dance/package.json", - "contentHash": "83a052fdeb9f5dfe1a3e14f34fd71285ddfa1d528a08671c53a33277a6258086", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 11, - "hasStructuralAnalysis": true - }, - "packages/waggle-dance/src/dispatcher.ts": { - "filePath": "packages/waggle-dance/src/dispatcher.ts", - "contentHash": "c6548437063a69f4052cc12afe08aa523cfb9edae230854877453e652fb1cd0e", - "functions": [], - "classes": [ - { - "name": "WaggleDanceDispatcher", - "methods": [ - "constructor", - "dispatch", - "handleTaskDelegation", - "handleKnowledgeCheck", - "handleSkillShare", - "handleSkillRequest", - "handleBroadcastSignal", - "handleResponseRelay", - "handleModelRecommendation" - ], - "properties": [ - "deps" - ], - "exported": true, - "lineCount": 246 - } - ], - "imports": [ - { - "source": "@waggle/shared", - "specifiers": [ - "WaggleMessage" - ] - }, - { - "source": "./protocol.js", - "specifiers": [ - "validateMessageTypeCombo" - ] - } - ], - "exports": [ - "WaggleDanceDispatcher" - ], - "totalLines": 325, - "hasStructuralAnalysis": true - }, - "packages/waggle-dance/src/hive-query.ts": { - "filePath": "packages/waggle-dance/src/hive-query.ts", - "contentHash": "5ab92c6363e3fb0e7c1e66a7ca677b3f83d3ab80467bb73cdc311806c52230e5", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 27, - "hasStructuralAnalysis": true - }, - "packages/waggle-dance/src/index.ts": { - "filePath": "packages/waggle-dance/src/index.ts", - "contentHash": "d777c22edc8b36d3fe97aa0f1dc1ccb53db310704798232e7c3020a6a95259c2", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 5, - "hasStructuralAnalysis": true - }, - "packages/waggle-dance/src/protocol.ts": { - "filePath": "packages/waggle-dance/src/protocol.ts", - "contentHash": "39040e1fab7f10ece6784da60f61ff8a459b29a1b9522f16c1b4737e1cf1604f", - "functions": [ - { - "name": "validateMessageTypeCombo", - "params": [ - "type", - "subtype" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 3 - }, - { - "name": "isRoutedMessage", - "params": [ - "subtype" - ], - "returnType": "boolean", - "exported": true, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/shared", - "specifiers": [ - "MessageType", - "MessageSubtype" - ] - } - ], - "exports": [ - "validateMessageTypeCombo", - "isRoutedMessage" - ], - "totalLines": 17, - "hasStructuralAnalysis": true - }, - "packages/waggle-dance/tests/dispatcher.test.ts": { - "filePath": "packages/waggle-dance/tests/dispatcher.test.ts", - "contentHash": "9187345c67f2d67269cc920a325b95de1dc5a211e3428e3a0fdf0d1b0ce6be6f", - "functions": [ - { - "name": "makeDeps", - "params": [ - "overrides" - ], - "returnType": "DispatchDeps", - "exported": false, - "lineCount": 10 - }, - { - "name": "makeV2Deps", - "params": [ - "overrides" - ], - "returnType": "DispatchDeps", - "exported": false, - "lineCount": 9 - }, - { - "name": "makeMessage", - "params": [ - "overrides" - ], - "returnType": "WaggleMessage", - "exported": false, - "lineCount": 14 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi" - ] - }, - { - "source": "../src/dispatcher.js", - "specifiers": [ - "WaggleDanceDispatcher" - ] - }, - { - "source": "../src/dispatcher.js", - "specifiers": [ - "DispatchDeps" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "WaggleMessage" - ] - } - ], - "exports": [], - "totalLines": 509, - "hasStructuralAnalysis": true - }, - "packages/waggle-dance/tests/integration.test.ts": { - "filePath": "packages/waggle-dance/tests/integration.test.ts", - "contentHash": "0a147aa9e289ceaf620c2f4be27c1b196696a9b243e43aa653cacc52bff65cfd", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi" - ] - }, - { - "source": "../src/dispatcher.js", - "specifiers": [ - "WaggleDanceDispatcher" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "WaggleMessage" - ] - } - ], - "exports": [], - "totalLines": 73, - "hasStructuralAnalysis": true - }, - "packages/waggle-dance/tests/protocol.test.ts": { - "filePath": "packages/waggle-dance/tests/protocol.test.ts", - "contentHash": "8dc2f743d2fa5bff1a8d0a322f4adcaefb9815da35f6392162833829e16d681f", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "MessageType", - "MessageSubtype" - ] - }, - { - "source": "../src/protocol.js", - "specifiers": [ - "validateMessageTypeCombo", - "isRoutedMessage" - ] - } - ], - "exports": [], - "totalLines": 56, - "hasStructuralAnalysis": true - }, - "packages/waggle-dance/tsconfig.json": { - "filePath": "packages/waggle-dance/tsconfig.json", - "contentHash": "c328a5b2595df8ac247c6dfb0986d63ba281b63449eb87d7e35d2bd007344834", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 25, - "hasStructuralAnalysis": true - }, - "packages/weaver/package.json": { - "filePath": "packages/weaver/package.json", - "contentHash": "5a5012333a96e47d3a06c7b8d48ab9fa27bf205e25b1efcf370353407621f256", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 19, - "hasStructuralAnalysis": true - }, - "packages/weaver/src/consolidation.ts": { - "filePath": "packages/weaver/src/consolidation.ts", - "contentHash": "5e2dbc000ff64b9f8412e1ac043e7cd71d9dd300e1d1760e654cfd1465f9af2e", - "functions": [], - "classes": [ - { - "name": "MemoryWeaver", - "methods": [ - "constructor", - "consolidateGop", - "decayFrames", - "strengthenFrames", - "createDailySummary", - "archiveClosedSessions", - "decayByAge", - "linkRelatedFrames", - "distillSessionContent", - "consolidateProject" - ], - "properties": [ - "db", - "frames", - "sessions" - ], - "exported": true, - "lineCount": 247 - } - ], - "imports": [ - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "FrameStore", - "MemoryFrame", - "Importance", - "SessionStore", - "KnowledgeGraph" - ] - } - ], - "exports": [ - "MemoryWeaver" - ], - "totalLines": 256, - "hasStructuralAnalysis": true - }, - "packages/weaver/src/index.ts": { - "filePath": "packages/weaver/src/index.ts", - "contentHash": "f67227ada2fa47f5ec35b6a4e0629e416eeb69bd5f042d229c40e149cbc04ed2", - "functions": [], - "classes": [], - "imports": [], - "exports": [ - "MemoryWeaver", - "extractSessionSkills", - "SessionEntry", - "ExtractedSkill" - ], - "totalLines": 4, - "hasStructuralAnalysis": true - }, - "packages/weaver/src/skill-extractor.ts": { - "filePath": "packages/weaver/src/skill-extractor.ts", - "contentHash": "ecf5ce8274ee659f98bb74b48726ce6c2720b9ec67a7d991c68d14a7d847f091", - "functions": [ - { - "name": "extractSessionSkills", - "params": [ - "entries" - ], - "returnType": "ExtractedSkill[]", - "exported": true, - "lineCount": 35 - } - ], - "classes": [], - "imports": [], - "exports": [ - "extractSessionSkills" - ], - "totalLines": 49, - "hasStructuralAnalysis": true - }, - "packages/weaver/tests/consolidation-enhanced.test.ts": { - "filePath": "packages/weaver/tests/consolidation-enhanced.test.ts", - "contentHash": "5742a053a455cf5e32e39d1094086721b37f2f41acaa0cb78aac49412ba72022", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "FrameStore", - "SessionStore", - "KnowledgeGraph" - ] - }, - { - "source": "../src/consolidation.js", - "specifiers": [ - "MemoryWeaver" - ] - } - ], - "exports": [], - "totalLines": 168, - "hasStructuralAnalysis": true - }, - "packages/weaver/tests/consolidation.test.ts": { - "filePath": "packages/weaver/tests/consolidation.test.ts", - "contentHash": "92e6a778abc80cbafc388aeb9b8d17b53bf244b6e7f36581c08e306c8acaac05", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "FrameStore", - "Importance", - "SessionStore" - ] - }, - { - "source": "../src/consolidation.js", - "specifiers": [ - "MemoryWeaver" - ] - } - ], - "exports": [], - "totalLines": 255, - "hasStructuralAnalysis": true - }, - "packages/weaver/tests/skill-extractor.test.ts": { - "filePath": "packages/weaver/tests/skill-extractor.test.ts", - "contentHash": "44bea5cdd399b65475034b1f6ca0cba7460c220f18829bdb645732566fec870e", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/skill-extractor.js", - "specifiers": [ - "extractSessionSkills" - ] - } - ], - "exports": [], - "totalLines": 55, - "hasStructuralAnalysis": true - }, - "packages/weaver/tsconfig.json": { - "filePath": "packages/weaver/tsconfig.json", - "contentHash": "4f1361341aac2cb7a238b4c898b70844523e6c15c52a10c65a556226da2c14d9", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 25, - "hasStructuralAnalysis": true - }, - "packages/weaver/vitest.config.ts": { - "filePath": "packages/weaver/vitest.config.ts", - "contentHash": "4ba97855139186dae9493b7e8a537d4eb0c7331d05d7f877688d4133e9ee02e7", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest/config", - "specifiers": [ - "defineConfig" - ] - } - ], - "exports": [], - "totalLines": 10, - "hasStructuralAnalysis": true - }, - "packages/wiki-compiler/package.json": { - "filePath": "packages/wiki-compiler/package.json", - "contentHash": "637d33a1446dadc28b74855d09b45772f8e78dd12f9bf5a256ef32f053b6b68a", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 23, - "hasStructuralAnalysis": true - }, - "packages/wiki-compiler/src/adapters/notion.ts": { - "filePath": "packages/wiki-compiler/src/adapters/notion.ts", - "contentHash": "3dc689a91af9afd8a7239ff51a09fe9acf43c54956f0bf3112df01866d0b0b6b", - "functions": [ - { - "name": "stripFrontmatter", - "params": [ - "markdown" - ], - "returnType": "{ body: string; title?: string }", - "exported": true, - "lineCount": 8 - }, - { - "name": "toRichText", - "params": [ - "text" - ], - "returnType": "RichText[]", - "exported": true, - "lineCount": 23 - }, - { - "name": "parseEmphasis", - "params": [ - "text" - ], - "returnType": "RichText[]", - "exported": false, - "lineCount": 17 - }, - { - "name": "markdownToBlocks", - "params": [ - "body" - ], - "returnType": "NotionBlock[]", - "exported": true, - "lineCount": 66 - }, - { - "name": "extractNotionPageId", - "params": [ - "urlOrId" - ], - "returnType": "string | null", - "exported": true, - "lineCount": 5 - }, - { - "name": "notionHeaders", - "params": [ - "token" - ], - "returnType": "Record", - "exported": false, - "lineCount": 7 - }, - { - "name": "createNotionPage", - "params": [ - "token", - "rootPageId", - "title", - "blocks" - ], - "returnType": "Promise<{ id: string }>", - "exported": false, - "lineCount": 43 - }, - { - "name": "archiveNotionPage", - "params": [ - "token", - "pageId" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 11 - }, - { - "name": "writeToNotionWorkspace", - "params": [ - "pages", - "opts", - "state" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 50 - } - ], - "classes": [], - "imports": [ - { - "source": "../types.js", - "specifiers": [ - "PageRecord", - "WikiPageType" - ] - } - ], - "exports": [ - "stripFrontmatter", - "toRichText", - "markdownToBlocks", - "extractNotionPageId", - "writeToNotionWorkspace" - ], - "totalLines": 335, - "hasStructuralAnalysis": true - }, - "packages/wiki-compiler/src/adapters/obsidian.ts": { - "filePath": "packages/wiki-compiler/src/adapters/obsidian.ts", - "contentHash": "880e21e8a64a3a8470cbac21c597f1a412eac3e2fc5c8eff2bdc43c7ffff1b62", - "functions": [ - { - "name": "transformWikilinks", - "params": [ - "markdown", - "nameToSlug" - ], - "returnType": "string", - "exported": false, - "lineCount": 13 - }, - { - "name": "buildIndex", - "params": [ - "pages" - ], - "returnType": "string", - "exported": false, - "lineCount": 36 - }, - { - "name": "writeToObsidianVault", - "params": [ - "pages", - "outDir" - ], - "returnType": "ObsidianExportResult", - "exported": true, - "lineCount": 34 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "../types.js", - "specifiers": [ - "PageRecord" - ] - } - ], - "exports": [ - "writeToObsidianVault" - ], - "totalLines": 129, - "hasStructuralAnalysis": true - }, - "packages/wiki-compiler/src/compiler.ts": { - "filePath": "packages/wiki-compiler/src/compiler.ts", - "contentHash": "8579ac7620f91c06ea10b480c9621bac95c9c9db43b564a0c8d68dc6178ce292", - "functions": [ - { - "name": "slugify", - "params": [ - "name" - ], - "returnType": "string", - "exported": false, - "lineCount": 7 - }, - { - "name": "buildFrontmatter", - "params": [ - "type", - "name", - "frameIds", - "relatedEntities", - "confidence", - "entityType" - ], - "returnType": "string", - "exported": false, - "lineCount": 22 - } - ], - "classes": [ - { - "name": "WikiCompiler", - "methods": [ - "constructor", - "compileEntityPage", - "compileConceptPage", - "compileSynthesisPage", - "compileIndex", - "compileHealth", - "compile", - "detectConcepts", - "exportToMarkdown", - "exportToDirectory" - ], - "properties": [ - "kg", - "frames", - "search", - "state", - "config" - ], - "exported": true, - "lineCount": 537 - } - ], - "imports": [ - { - "source": "@waggle/core", - "specifiers": [ - "KnowledgeGraph", - "FrameStore", - "HybridSearch", - "Entity" - ] - }, - { - "source": "./types.js", - "specifiers": [ - "WikiPage", - "WikiPageType", - "CompilerConfig", - "CompilationResult", - "HealthReport", - "HealthIssue" - ] - }, - { - "source": "./state.js", - "specifiers": [ - "CompilationState", - "contentHash" - ] - }, - { - "source": "./prompts.js", - "specifiers": [ - "entityPagePrompt", - "conceptPagePrompt", - "synthesisPagePrompt" - ] - } - ], - "exports": [ - "WikiCompiler" - ], - "totalLines": 597, - "hasStructuralAnalysis": true - }, - "packages/wiki-compiler/src/index.ts": { - "filePath": "packages/wiki-compiler/src/index.ts", - "contentHash": "b04efb27d4e80267d92e44495c42f4ba6712fbdc883037a22380a18e5976ba49", - "functions": [], - "classes": [], - "imports": [], - "exports": [ - "WikiCompiler", - "CompilationState", - "contentHash", - "resolveSynthesizer", - "ResolvedSynthesizer", - "SynthesizerConfig", - "entityPagePrompt", - "conceptPagePrompt", - "synthesisPagePrompt", - "writeToObsidianVault", - "ObsidianExportResult", - "writeToNotionWorkspace", - "markdownToBlocks", - "stripFrontmatter", - "toRichText", - "extractNotionPageId", - "NotionExportOptions", - "NotionExportStats", - "NotionStateHelpers", - "NotionBlock", - "WikiPage", - "WikiPageType", - "WikiPageFrontmatter", - "CompilationWatermark", - "PageRecord", - "CompilerConfig", - "LLMSynthesizeFn", - "CompilationResult", - "HealthReport", - "HealthIssue", - "HealthIssueType" - ], - "totalLines": 30, - "hasStructuralAnalysis": true - }, - "packages/wiki-compiler/src/prompts.ts": { - "filePath": "packages/wiki-compiler/src/prompts.ts", - "contentHash": "9dfebcac68cc31b5cfb4115b332e5a1de7db8d395ff3b5b2a1f201e9ec98c95e", - "functions": [ - { - "name": "entityPagePrompt", - "params": [ - "entityName", - "entityType", - "frames", - "relations" - ], - "returnType": "string", - "exported": true, - "lineCount": 33 - }, - { - "name": "conceptPagePrompt", - "params": [ - "conceptName", - "frames", - "relatedEntities" - ], - "returnType": "string", - "exported": true, - "lineCount": 31 - }, - { - "name": "synthesisPagePrompt", - "params": [ - "topic", - "crossSourceFrames" - ], - "returnType": "string", - "exported": true, - "lineCount": 24 - } - ], - "classes": [], - "imports": [], - "exports": [ - "entityPagePrompt", - "conceptPagePrompt", - "synthesisPagePrompt" - ], - "totalLines": 95, - "hasStructuralAnalysis": true - }, - "packages/wiki-compiler/src/state.ts": { - "filePath": "packages/wiki-compiler/src/state.ts", - "contentHash": "407fa5bae70692f8158f9198dd407a8f78a0c347a013a3b9c7bf59562ab416e4", - "functions": [ - { - "name": "contentHash", - "params": [ - "content" - ], - "returnType": "string", - "exported": true, - "lineCount": 3 - } - ], - "classes": [ - { - "name": "CompilationState", - "methods": [ - "constructor", - "ensureSchema", - "getNotionPageId", - "setNotionPageId", - "clearNotionPageId", - "getPageContentHash", - "getWatermark", - "updateWatermark", - "getPage", - "getAllPages", - "getPagesByType", - "upsertPage", - "deletePage", - "getMaxFrameId", - "getFramesSince" - ], - "properties": [ - "db" - ], - "exported": true, - "lineCount": 158 - } - ], - "imports": [ - { - "source": "node:crypto", - "specifiers": [ - "createHash" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "./types.js", - "specifiers": [ - "WikiPageType", - "CompilationWatermark", - "PageRecord" - ] - } - ], - "exports": [ - "contentHash", - "CompilationState" - ], - "totalLines": 194, - "hasStructuralAnalysis": true - }, - "packages/wiki-compiler/src/synthesizer.ts": { - "filePath": "packages/wiki-compiler/src/synthesizer.ts", - "contentHash": "deb1bb3a8e237e5b3e4f0d604979ccf538ffc4c4232ba947dfb3ca0cc1d4247c", - "functions": [ - { - "name": "createAnthropicSynthesizer", - "params": [ - "apiKey", - "maxTokens" - ], - "returnType": "LLMSynthesizeFn", - "exported": false, - "lineCount": 16 - }, - { - "name": "createOllamaSynthesizer", - "params": [ - "baseUrl", - "model", - "maxTokens" - ], - "returnType": "LLMSynthesizeFn", - "exported": false, - "lineCount": 24 - }, - { - "name": "createEchoSynthesizer", - "params": [], - "returnType": "LLMSynthesizeFn", - "exported": false, - "lineCount": 20 - }, - { - "name": "resolveSynthesizer", - "params": [ - "config" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 51 - } - ], - "classes": [], - "imports": [ - { - "source": "./types.js", - "specifiers": [ - "LLMSynthesizeFn" - ] - } - ], - "exports": [ - "resolveSynthesizer" - ], - "totalLines": 157, - "hasStructuralAnalysis": true - }, - "packages/wiki-compiler/src/types.ts": { - "filePath": "packages/wiki-compiler/src/types.ts", - "contentHash": "abf16b674f3f83a80bcf17d1984ca5704734fbbb12259845d2088499050ed42c", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 120, - "hasStructuralAnalysis": true - }, - "packages/wiki-compiler/tests/notion.test.ts": { - "filePath": "packages/wiki-compiler/tests/notion.test.ts", - "contentHash": "47d90318d60b611fc75dd791e62c1f871924075770c5cae1044dd6a1612a32f5", - "functions": [ - { - "name": "payloadOf", - "params": [ - "block" - ], - "returnType": "NotionBlockPayload", - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../src/adapters/notion.js", - "specifiers": [ - "markdownToBlocks", - "toRichText", - "stripFrontmatter", - "extractNotionPageId", - "NotionBlock", - "NotionBlockPayload" - ] - } - ], - "exports": [], - "totalLines": 170, - "hasStructuralAnalysis": true - }, - "packages/wiki-compiler/tests/obsidian.test.ts": { - "filePath": "packages/wiki-compiler/tests/obsidian.test.ts", - "contentHash": "23ec41d920f910ff4bcc63e064cc3d1532dc8eda4c720a536abea1e679a41724", - "functions": [ - { - "name": "seedPages", - "params": [], - "returnType": "PageRecord[]", - "exported": false, - "lineCount": 86 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "../src/adapters/obsidian.js", - "specifiers": [ - "writeToObsidianVault" - ] - }, - { - "source": "../src/types.js", - "specifiers": [ - "PageRecord" - ] - } - ], - "exports": [], - "totalLines": 211, - "hasStructuralAnalysis": true - }, - "packages/wiki-compiler/tsconfig.json": { - "filePath": "packages/wiki-compiler/tsconfig.json", - "contentHash": "a57864dee001d032dcac41711ba5a9c07c8c1e15fe8969bfe933d2bd0bb10b13", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 22, - "hasStructuralAnalysis": true - }, - "packages/worker/package.json": { - "filePath": "packages/worker/package.json", - "contentHash": "57e613e2dde768e93f989874846ceb50d01b04ad040ffc5ab3988910a32c05ec", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 21, - "hasStructuralAnalysis": true - }, - "packages/worker/src/execution/coordinator.ts": { - "filePath": "packages/worker/src/execution/coordinator.ts", - "contentHash": "6d462e4fb7515a9bd0275367cbfe403036fc7806b028cdaf30bdd8ae31601e80", - "functions": [ - { - "name": "executeCoordinator", - "params": [ - "members", - "taskInput", - "deps" - ], - "returnType": "Promise>", - "exported": true, - "lineCount": 143 - } - ], - "classes": [], - "imports": [ - { - "source": "./parallel.js", - "specifiers": [ - "AgentMemberConfig", - "AgentResult", - "ExecutionDeps" - ] - } - ], - "exports": [ - "executeCoordinator" - ], - "totalLines": 151, - "hasStructuralAnalysis": true - }, - "packages/worker/src/execution/parallel.ts": { - "filePath": "packages/worker/src/execution/parallel.ts", - "contentHash": "6025c3deda8b6f2616bf219869c635570f7b1819f062291b45d73ead9eed6ab7", - "functions": [ - { - "name": "executeParallel", - "params": [ - "members", - "taskInput", - "deps" - ], - "returnType": "Promise>", - "exported": true, - "lineCount": 64 - } - ], - "classes": [], - "imports": [ - { - "source": "@waggle/agent", - "specifiers": [ - "ToolDefinition" - ] - } - ], - "exports": [ - "executeParallel" - ], - "totalLines": 100, - "hasStructuralAnalysis": true - }, - "packages/worker/src/execution/sequential.ts": { - "filePath": "packages/worker/src/execution/sequential.ts", - "contentHash": "839f62eba4a7bd5778630a2ca9252b3c59205230ca801e79f5bf4bfc0c3731ee", - "functions": [ - { - "name": "executeSequential", - "params": [ - "members", - "taskInput", - "deps" - ], - "returnType": "Promise>", - "exported": true, - "lineCount": 75 - } - ], - "classes": [], - "imports": [ - { - "source": "./parallel.js", - "specifiers": [ - "AgentMemberConfig", - "AgentResult", - "ExecutionDeps" - ] - } - ], - "exports": [ - "executeSequential" - ], - "totalLines": 86, - "hasStructuralAnalysis": true - }, - "packages/worker/src/handlers/chat-handler.ts": { - "filePath": "packages/worker/src/handlers/chat-handler.ts", - "contentHash": "1bf2299a5e1d42b1922c67cd78269255605b4320f619e1f4109945b9630eb3a0", - "functions": [ - { - "name": "chatHandler", - "params": [ - "job", - "_db" - ], - "returnType": "Promise>", - "exported": true, - "lineCount": 31 - } - ], - "classes": [], - "imports": [ - { - "source": "bullmq", - "specifiers": [ - "Job" - ] - }, - { - "source": "../job-processor.js", - "specifiers": [ - "JobData" - ] - }, - { - "source": "../../../server/src/db/connection.js", - "specifiers": [ - "Db" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "runAgentLoop", - "createSystemTools" - ] - } - ], - "exports": [ - "chatHandler" - ], - "totalLines": 41, - "hasStructuralAnalysis": true - }, - "packages/worker/src/handlers/group-handler.ts": { - "filePath": "packages/worker/src/handlers/group-handler.ts", - "contentHash": "7dd2e2b9fec057d25f73f99598825ffcd72d9431e0a613f8e835e543dd304fde", - "functions": [ - { - "name": "groupHandler", - "params": [ - "job", - "db" - ], - "returnType": "Promise>", - "exported": true, - "lineCount": 65 - } - ], - "classes": [], - "imports": [ - { - "source": "bullmq", - "specifiers": [ - "Job" - ] - }, - { - "source": "../job-processor.js", - "specifiers": [ - "JobData" - ] - }, - { - "source": "../../../server/src/db/connection.js", - "specifiers": [ - "Db" - ] - }, - { - "source": "../../../server/src/db/schema.js", - "specifiers": [ - "agentGroups", - "agentGroupMembers", - "agents" - ] - }, - { - "source": "drizzle-orm", - "specifiers": [ - "eq" - ] - }, - { - "source": "../execution/parallel.js", - "specifiers": [ - "executeParallel", - "ExecutionDeps" - ] - }, - { - "source": "../execution/sequential.js", - "specifiers": [ - "executeSequential" - ] - }, - { - "source": "../execution/coordinator.js", - "specifiers": [ - "executeCoordinator" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "runAgentLoop", - "createSystemTools" - ] - } - ], - "exports": [ - "groupHandler" - ], - "totalLines": 79, - "hasStructuralAnalysis": true - }, - "packages/worker/src/handlers/task-handler.ts": { - "filePath": "packages/worker/src/handlers/task-handler.ts", - "contentHash": "e9ec0cfbe27f9a9245ecfa9f1b444d4f5d3b1c64174e19726161feaf5ca6c31b", - "functions": [ - { - "name": "taskHandler", - "params": [ - "job", - "db" - ], - "returnType": "Promise>", - "exported": true, - "lineCount": 74 - } - ], - "classes": [], - "imports": [ - { - "source": "bullmq", - "specifiers": [ - "Job" - ] - }, - { - "source": "../job-processor.js", - "specifiers": [ - "JobData" - ] - }, - { - "source": "../../../server/src/db/connection.js", - "specifiers": [ - "Db" - ] - }, - { - "source": "../../../server/src/db/schema.js", - "specifiers": [ - "tasks" - ] - }, - { - "source": "drizzle-orm", - "specifiers": [ - "eq" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "runAgentLoop", - "createSystemTools" - ] - } - ], - "exports": [ - "taskHandler" - ], - "totalLines": 91, - "hasStructuralAnalysis": true - }, - "packages/worker/src/handlers/waggle-handler.ts": { - "filePath": "packages/worker/src/handlers/waggle-handler.ts", - "contentHash": "b14d1057e7c4ee4ed61bda9dc9e0d61698e6a61f1830d87c7a832198537382c8", - "functions": [ - { - "name": "waggleHandler", - "params": [ - "job", - "db" - ], - "returnType": "Promise>", - "exported": true, - "lineCount": 61 - } - ], - "classes": [], - "imports": [ - { - "source": "bullmq", - "specifiers": [ - "Job" - ] - }, - { - "source": "../job-processor.js", - "specifiers": [ - "JobData" - ] - }, - { - "source": "../../../server/src/db/connection.js", - "specifiers": [ - "Db" - ] - }, - { - "source": "../../../server/src/db/schema.js", - "specifiers": [ - "teamEntities", - "tasks" - ] - }, - { - "source": "drizzle-orm", - "specifiers": [ - "sql" - ] - }, - { - "source": "@waggle/waggle-dance", - "specifiers": [ - "WaggleDanceDispatcher" - ] - }, - { - "source": "@waggle/shared", - "specifiers": [ - "WaggleMessage" - ] - } - ], - "exports": [ - "waggleHandler" - ], - "totalLines": 75, - "hasStructuralAnalysis": true - }, - "packages/worker/src/index.ts": { - "filePath": "packages/worker/src/index.ts", - "contentHash": "45edbbb1a13d159e9ab174ae261ff4346994d42e4149ef69e38ac1617ef5ec62", - "functions": [ - { - "name": "requireDatabaseUrl", - "params": [], - "returnType": "string", - "exported": false, - "lineCount": 5 - }, - { - "name": "createWorker", - "params": [ - "redisUrl", - "databaseUrl", - "queueName" - ], - "exported": true, - "lineCount": 60 - } - ], - "classes": [], - "imports": [ - { - "source": "bullmq", - "specifiers": [ - "Worker" - ] - }, - { - "source": "../../server/src/db/connection.js", - "specifiers": [ - "createDb" - ] - }, - { - "source": "../../server/src/db/schema.js", - "specifiers": [ - "agentJobs" - ] - }, - { - "source": "drizzle-orm", - "specifiers": [ - "eq" - ] - }, - { - "source": "./job-processor.js", - "specifiers": [ - "JobProcessor", - "JobData" - ] - }, - { - "source": "ioredis", - "specifiers": [ - "Redis" - ] - }, - { - "source": "./handlers/chat-handler.js", - "specifiers": [ - "chatHandler" - ] - }, - { - "source": "./handlers/task-handler.js", - "specifiers": [ - "taskHandler" - ] - }, - { - "source": "./handlers/waggle-handler.js", - "specifiers": [ - "waggleHandler" - ] - }, - { - "source": "./handlers/group-handler.js", - "specifiers": [ - "groupHandler" - ] - } - ], - "exports": [ - "createWorker" - ], - "totalLines": 95, - "hasStructuralAnalysis": true - }, - "packages/worker/src/job-processor.ts": { - "filePath": "packages/worker/src/job-processor.ts", - "contentHash": "86865fa5d548498b2dfeee333341957887302be375436c80b93f9c4b4d6e6af2", - "functions": [], - "classes": [ - { - "name": "JobProcessor", - "methods": [ - "register", - "process" - ], - "properties": [ - "handlers" - ], - "exported": true, - "lineCount": 15 - } - ], - "imports": [ - { - "source": "bullmq", - "specifiers": [ - "Job" - ] - }, - { - "source": "../../server/src/db/connection.js", - "specifiers": [ - "Db" - ] - } - ], - "exports": [ - "JobProcessor" - ], - "totalLines": 29, - "hasStructuralAnalysis": true - }, - "packages/worker/tests/execution/strategies.test.ts": { - "filePath": "packages/worker/tests/execution/strategies.test.ts", - "contentHash": "302ce12504063c39bf76e2c9d3c4c3e507d1f01e64533a51641e542501764dd1", - "functions": [ - { - "name": "createMockDeps", - "params": [ - "overrides" - ], - "returnType": "ExecutionDeps", - "exported": false, - "lineCount": 16 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi" - ] - }, - { - "source": "../../src/execution/parallel.js", - "specifiers": [ - "executeParallel", - "AgentMemberConfig", - "ExecutionDeps" - ] - }, - { - "source": "../../src/execution/sequential.js", - "specifiers": [ - "executeSequential" - ] - }, - { - "source": "../../src/execution/coordinator.js", - "specifiers": [ - "executeCoordinator" - ] - } - ], - "exports": [], - "totalLines": 353, - "hasStructuralAnalysis": true - }, - "packages/worker/tests/handlers/chat-handler.test.ts": { - "filePath": "packages/worker/tests/handlers/chat-handler.test.ts", - "contentHash": "0585d1e335ebb8066451f610d6dace410c5dbd01ab3f4c43f85fa1afdd9e6335", - "functions": [ - { - "name": "makeJob", - "params": [ - "data" - ], - "returnType": "Job", - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach" - ] - }, - { - "source": "bullmq", - "specifiers": [ - "Job" - ] - }, - { - "source": "../../../server/src/db/connection.js", - "specifiers": [ - "Db" - ] - }, - { - "source": "../../src/job-processor.js", - "specifiers": [ - "JobData" - ] - }, - { - "source": "../../src/handlers/chat-handler.js", - "specifiers": [ - "chatHandler" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "runAgentLoop", - "createSystemTools" - ] - } - ], - "exports": [], - "totalLines": 127, - "hasStructuralAnalysis": true - }, - "packages/worker/tests/handlers/handlers.test.ts": { - "filePath": "packages/worker/tests/handlers/handlers.test.ts", - "contentHash": "f7cd7518794299cd6dceb9bd5c618f8bf4fb70404e21b4f5660fe4b5dff578a4", - "functions": [ - { - "name": "makeJob", - "params": [ - "data" - ], - "returnType": "Job", - "exported": false, - "lineCount": 3 - }, - { - "name": "createMockDb", - "params": [ - "overrides" - ], - "returnType": "Db", - "exported": false, - "lineCount": 31 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi", - "beforeEach" - ] - }, - { - "source": "bullmq", - "specifiers": [ - "Job" - ] - }, - { - "source": "../../../server/src/db/connection.js", - "specifiers": [ - "Db" - ] - }, - { - "source": "../../src/job-processor.js", - "specifiers": [ - "JobData" - ] - }, - { - "source": "../../src/handlers/task-handler.js", - "specifiers": [ - "taskHandler" - ] - }, - { - "source": "../../src/handlers/group-handler.js", - "specifiers": [ - "groupHandler" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "runAgentLoop" - ] - } - ], - "exports": [], - "totalLines": 341, - "hasStructuralAnalysis": true - }, - "packages/worker/tests/handlers/waggle-dispatch.test.ts": { - "filePath": "packages/worker/tests/handlers/waggle-dispatch.test.ts", - "contentHash": "88ea0075d7b09f1680ed96c6940eae0954e942d916ab91923f42fe1cd500a168", - "functions": [ - { - "name": "makeDeps", - "params": [ - "overrides" - ], - "returnType": "DispatchDeps", - "exported": false, - "lineCount": 10 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "vi" - ] - }, - { - "source": "@waggle/waggle-dance", - "specifiers": [ - "WaggleDanceDispatcher" - ] - }, - { - "source": "@waggle/waggle-dance", - "specifiers": [ - "DispatchDeps" - ] - } - ], - "exports": [], - "totalLines": 93, - "hasStructuralAnalysis": true - }, - "packages/worker/tests/job-processor.test.ts": { - "filePath": "packages/worker/tests/job-processor.test.ts", - "contentHash": "e5582a0ff9e6f1fad7455d72082bd3497e00c178e21aae87cb2c987e2383274c", - "functions": [ - { - "name": "waitForJobStatus", - "params": [ - "jobService", - "jobId", - "target", - "timeoutMs", - "intervalMs" - ], - "returnType": "Promise>>", - "exported": false, - "lineCount": 16 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "../src/index.js", - "specifiers": [ - "createWorker" - ] - }, - { - "source": "../../server/src/services/job-service.js", - "specifiers": [ - "JobService" - ] - }, - { - "source": "../../server/src/db/connection.js", - "specifiers": [ - "createDb" - ] - }, - { - "source": "../../server/src/db/schema.js", - "specifiers": [ - "users", - "teams", - "teamMembers", - "agentJobs" - ] - }, - { - "source": "drizzle-orm", - "specifiers": [ - "eq", - "sql" - ] - } - ], - "exports": [], - "totalLines": 114, - "hasStructuralAnalysis": true - }, - "packages/worker/tsconfig.json": { - "filePath": "packages/worker/tsconfig.json", - "contentHash": "6186dc9776be09a7315cf24f0aa3efc04a5c258203456b4aaea9a951824f26a6", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 25, - "hasStructuralAnalysis": true - }, - "PLAN.md": { - "filePath": "PLAN.md", - "contentHash": "afd7e3a6784493c6107e311fb37458862e79a1ac54af896d5fc615245896ff76", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 99, - "hasStructuralAnalysis": true - }, - "playwright-e2e.config.ts": { - "filePath": "playwright-e2e.config.ts", - "contentHash": "b0ae8e993b96fcce49687870de37c1364de99b4576d81ea230418d7004cff2a2", - "functions": [], - "classes": [], - "imports": [ - { - "source": "@playwright/test", - "specifiers": [ - "defineConfig" - ] - } - ], - "exports": [], - "totalLines": 18, - "hasStructuralAnalysis": true - }, - "playwright.config.ts": { - "filePath": "playwright.config.ts", - "contentHash": "249135618e3dce702ce6d3cbdb03d062fbd4725bf1bfb6a613e51cc447b2b662", - "functions": [], - "classes": [], - "imports": [ - { - "source": "@playwright/test", - "specifiers": [ - "defineConfig", - "devices" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - } - ], - "exports": [], - "totalLines": 88, - "hasStructuralAnalysis": true - }, - "preflight-results/b1-smoke-2026-04-21T17-54-02-102Z.json": { - "filePath": "preflight-results/b1-smoke-2026-04-21T17-54-02-102Z.json", - "contentHash": "a69e170c14f67b174a7e755a1a983b7c3250c69d3446f3e45ae6ad9ae26ecbc5", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 32, - "hasStructuralAnalysis": true - }, - "preflight-results/b2-grok-smoke-2026-04-21T23-04-41-168Z.json": { - "filePath": "preflight-results/b2-grok-smoke-2026-04-21T23-04-41-168Z.json", - "contentHash": "9d45776d9f6ac85070d73ebe4f43ee57c4ded238c7c09b401cb9bd11250e4264", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 31, - "hasStructuralAnalysis": true - }, - "preflight-results/claude-ai-export-verification-2026-04-22.md": { - "filePath": "preflight-results/claude-ai-export-verification-2026-04-22.md", - "contentHash": "630d4fe465cdfa765d97be658a8b52c4d6011587fd57c5402b88bb5d0dffb019", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 164, - "hasStructuralAnalysis": true - }, - "preflight-results/conv-verification-2026-04-22.md": { - "filePath": "preflight-results/conv-verification-2026-04-22.md", - "contentHash": "8ba985d2af36e6f6487da64e6feb147775560726dfb7bf6d375e3587b697cb13", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 154, - "hasStructuralAnalysis": true - }, - "preflight-results/judge-calibration-ensemble-14inst-2026-04-21T13-00-04Z.json": { - "filePath": "preflight-results/judge-calibration-ensemble-14inst-2026-04-21T13-00-04Z.json", - "contentHash": "a0dcf8838b5a0a6bfc249a76ff7ca8818248befbf49e1decb02ee4a42e6b23ec", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 990, - "hasStructuralAnalysis": true - }, - "preflight-results/judge-calibration-ensemble-2026-04-21T08-56-43Z.json": { - "filePath": "preflight-results/judge-calibration-ensemble-2026-04-21T08-56-43Z.json", - "contentHash": "3100c3cfdeac488527682673e7979861089458f103962065f6d81454dc925ec1", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 714, - "hasStructuralAnalysis": true - }, - "preflight-results/judge-calibration-haiku-task4.json": { - "filePath": "preflight-results/judge-calibration-haiku-task4.json", - "contentHash": "554198de1935df84cbed368f8b2b55b9bcab7ccaf5d137d02ad16a3f5df1d471", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 300, - "hasStructuralAnalysis": true - }, - "preflight-results/judge-calibration-opus-task4.json": { - "filePath": "preflight-results/judge-calibration-opus-task4.json", - "contentHash": "dfbc1fc9aaa815f28456c1b22d77e41024ff126e928bbe3cacbbdff879213183", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 310, - "hasStructuralAnalysis": true - }, - "preflight-results/judge-calibration-sonnet-2026-04-21T08-55-51Z.json": { - "filePath": "preflight-results/judge-calibration-sonnet-2026-04-21T08-55-51Z.json", - "contentHash": "7d11d17378f35ebd4938e6afa2cc82334d38c200429642d3687942e83894c8ab", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 300, - "hasStructuralAnalysis": true - }, - "preflight-results/pm-custom-triples-2026-04-22.json": { - "filePath": "preflight-results/pm-custom-triples-2026-04-22.json", - "contentHash": "77120f9f42e3e3df80906beaaff68e418a8fe69aaabb2a8ea485d9f01d3f5a5a", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 119, - "hasStructuralAnalysis": true - }, - "preflight-results/qwen-stability-matrix-2026-04-21T14-05-12-175Z.csv": { - "filePath": "preflight-results/qwen-stability-matrix-2026-04-21T14-05-12-175Z.csv", - "contentHash": "7186d162ec97bbef5b56607f0623a87a490fc26d283e1da329e6d4d4a128f266", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 42, - "hasStructuralAnalysis": false - }, - "preflight-results/qwen-thinking-stability-2026-04-21T14-05-12-175Z.md": { - "filePath": "preflight-results/qwen-thinking-stability-2026-04-21T14-05-12-175Z.md", - "contentHash": "a3f90346458c466e08521b6af51930bc46a8e1bcc737c791aa79ed7dc4e4be3a", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 92, - "hasStructuralAnalysis": true - }, - "preflight-results/stage-0-dogfood-2026-04-21.md": { - "filePath": "preflight-results/stage-0-dogfood-2026-04-21.md", - "contentHash": "ca18785c2675d4be9e3086da92e70bb90c75c9e23d364b60c31733ebf7a435aa", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 305, - "hasStructuralAnalysis": true - }, - "preflight-results/task-2-2-labels-14inst-2026-04-22.md": { - "filePath": "preflight-results/task-2-2-labels-14inst-2026-04-22.md", - "contentHash": "0264fcfa8eb53e9309d2ecfc2084cb806359d754d44021393ee0f71f0d80f888", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 296, - "hasStructuralAnalysis": true - }, - "preflight-results/vendor-availability-2026-04-21T08-30-42-598Z.json": { - "filePath": "preflight-results/vendor-availability-2026-04-21T08-30-42-598Z.json", - "contentHash": "bff943e1a028c644d61a8a35d08662bf854a6b9d6bc7db84e261d3a0b3a12267", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 44, - "hasStructuralAnalysis": true - }, - "README.md": { - "filePath": "README.md", - "contentHash": "ebbc5d5cf5c46213e9a1510f7d1ab27e6c7d67e4a91898c8d92a5af8e48bd27f", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 59, - "hasStructuralAnalysis": true - }, - "render.yaml": { - "filePath": "render.yaml", - "contentHash": "1a88a8625f2c0cd2e41dd5f8cceda6497cdb895521c3a76209389906f8bbd6ce", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 84, - "hasStructuralAnalysis": true - }, - "scripts/analyze-ensemble-baseline.mjs": { - "filePath": "scripts/analyze-ensemble-baseline.mjs", - "contentHash": "05cf77206cc7d1f556edb753341b49c43bab78647005560178b86f259bd1c964", - "functions": [ - { - "name": "fleissKappa", - "params": [ - "matrix" - ], - "exported": false, - "lineCount": 32 - }, - { - "name": "cohensKappa", - "params": [ - "rater1", - "rater2" - ], - "exported": false, - "lineCount": 16 - }, - { - "name": "interpretKappa", - "params": [ - "k" - ], - "exported": false, - "lineCount": 9 - }, - { - "name": "joinLabel", - "params": [ - "verdict", - "failureMode" - ], - "exported": false, - "lineCount": 4 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - } - ], - "exports": [], - "totalLines": 318, - "hasStructuralAnalysis": true - }, - "scripts/analyze-task-2-2-closeout.mjs": { - "filePath": "scripts/analyze-task-2-2-closeout.mjs", - "contentHash": "ae139c964dff26ba7f69e6914f582d6f6cf98d9ef0bd4a9e852c3d2eed62bcab", - "functions": [ - { - "name": "fleissKappa", - "params": [ - "matrix" - ], - "exported": false, - "lineCount": 23 - }, - { - "name": "cohensKappa", - "params": [ - "r1", - "r2" - ], - "exported": false, - "lineCount": 16 - }, - { - "name": "interpret", - "params": [ - "k" - ], - "exported": false, - "lineCount": 9 - }, - { - "name": "joinLbl", - "params": [ - "v", - "f" - ], - "exported": false, - "lineCount": 3 - }, - { - "name": "instanceFmode", - "params": [ - "inst" - ], - "exported": false, - "lineCount": 4 - }, - { - "name": "buildFleissMatrixFor", - "params": [ - "subsetInstances" - ], - "exported": false, - "lineCount": 14 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - } - ], - "exports": [], - "totalLines": 394, - "hasStructuralAnalysis": true - }, - "scripts/build-sidecar.mjs": { - "filePath": "scripts/build-sidecar.mjs", - "contentHash": "3d62e8e3ae695f61f7dec9a2e5426dbdf0179658aaea6f5856dd99bdc3aeeabe", - "functions": [], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:url", - "specifiers": [ - "fileURLToPath" - ] - } - ], - "exports": [], - "totalLines": 112, - "hasStructuralAnalysis": true - }, - "scripts/build-task-2-2-dataset.mjs": { - "filePath": "scripts/build-task-2-2-dataset.mjs", - "contentHash": "05fa1a8ec7d4977d101d2ce1a162281c6208623cd32773731d339f4fd91655fa", - "functions": [ - { - "name": "getConvTurns", - "params": [ - "sampleId" - ], - "exported": false, - "lineCount": 16 - }, - { - "name": "excerptByAnchors", - "params": [ - "sampleId", - "anchorIds" - ], - "exported": false, - "lineCount": 10 - }, - { - "name": "splitInstanceSections", - "params": [ - "md" - ], - "exported": false, - "lineCount": 6 - }, - { - "name": "renderNewSection", - "params": [ - "instNum", - "d" - ], - "exported": false, - "lineCount": 19 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - } - ], - "exports": [], - "totalLines": 272, - "hasStructuralAnalysis": true - }, - "scripts/bundle-native-deps.mjs": { - "filePath": "scripts/bundle-native-deps.mjs", - "contentHash": "5117cd5420952b9a243acd9073f863870f9da5a35c4ac331cf27b9b11e793324", - "functions": [ - { - "name": "copyFile", - "params": [ - "src", - "destName" - ], - "exported": false, - "lineCount": 16 - }, - { - "name": "copyDir", - "params": [ - "srcDir", - "destSubDir" - ], - "exported": false, - "lineCount": 22 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:url", - "specifiers": [ - "fileURLToPath" - ] - } - ], - "exports": [], - "totalLines": 91, - "hasStructuralAnalysis": true - }, - "scripts/bundle-node.mjs": { - "filePath": "scripts/bundle-node.mjs", - "contentHash": "17edc52ff1422a4d2002460884a35d6360a086edf29b5637349731243060091d", - "functions": [], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:child_process", - "specifiers": [ - "execFileSync" - ] - }, - { - "source": "node:url", - "specifiers": [ - "fileURLToPath" - ] - } - ], - "exports": [], - "totalLines": 108, - "hasStructuralAnalysis": true - }, - "scripts/check-no-invalid-snapshots.mjs": { - "filePath": "scripts/check-no-invalid-snapshots.mjs", - "contentHash": "a833972637e5b9a0610c01134f0db1400ee8de954f77529680070448f19000e9", - "functions": [ - { - "name": "walk", - "params": [ - "dir", - "out" - ], - "exported": false, - "lineCount": 13 - }, - { - "name": "scanFile", - "params": [ - "file" - ], - "exported": false, - "lineCount": 14 - }, - { - "name": "main", - "params": [], - "exported": false, - "lineCount": 29 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:url", - "specifiers": [ - "url" - ] - } - ], - "exports": [], - "totalLines": 91, - "hasStructuralAnalysis": true - }, - "scripts/check-sidecar-resources.mjs": { - "filePath": "scripts/check-sidecar-resources.mjs", - "contentHash": "afd67f0a41bba065e27397b8ff0623351fef6a4ae6a8cb3c8d94a9e4bbb93f92", - "functions": [], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:url", - "specifiers": [ - "fileURLToPath" - ] - } - ], - "exports": [], - "totalLines": 51, - "hasStructuralAnalysis": true - }, - "scripts/deep-clean-and-recompile.mjs": { - "filePath": "scripts/deep-clean-and-recompile.mjs", - "contentHash": "0c0aebd266c9d3e0f98b74d8c5ccced18acaedfd8dba139c0a393c248cbcb4f1", - "functions": [], - "classes": [], - "imports": [ - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "FrameStore", - "KnowledgeGraph", - "SessionStore", - "HybridSearch", - "createEmbeddingProvider" - ] - }, - { - "source": "@waggle/wiki-compiler", - "specifiers": [ - "WikiCompiler", - "CompilationState" - ] - } - ], - "exports": [], - "totalLines": 157, - "hasStructuralAnalysis": true - }, - "scripts/evolution-hypothesis-rejudge-gemini.mjs": { - "filePath": "scripts/evolution-hypothesis-rejudge-gemini.mjs", - "contentHash": "7d15cf664861733125bf9e4d08705cb5aacc1f05808212602bf2978d043bfdc0", - "functions": [ - { - "name": "sleep", - "params": [ - "ms" - ], - "exported": false, - "lineCount": 1 - }, - { - "name": "openrouter", - "params": [ - "model", - "prompt" - ], - "exported": false, - "lineCount": 25 - }, - { - "name": "parseJudgeJSON", - "params": [ - "raw" - ], - "exported": false, - "lineCount": 29 - }, - { - "name": "overall", - "params": [ - "p" - ], - "exported": false, - "lineCount": 1 - }, - { - "name": "mean", - "params": [ - "vs" - ], - "exported": false, - "lineCount": 1 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:url", - "specifiers": [ - "fileURLToPath" - ] - } - ], - "exports": [], - "totalLines": 249, - "hasStructuralAnalysis": true - }, - "scripts/evolution-hypothesis-resume.mjs": { - "filePath": "scripts/evolution-hypothesis-resume.mjs", - "contentHash": "015447defb08005252ef2c50755ffd80af234a7d421e6648e827d487d4a4d115", - "functions": [ - { - "name": "sleep", - "params": [ - "ms" - ], - "exported": false, - "lineCount": 1 - }, - { - "name": "openrouter", - "params": [ - "model", - "systemPrompt", - "userInput" - ], - "exported": false, - "lineCount": 45 - }, - { - "name": "loadJSON", - "params": [ - "name" - ], - "exported": false, - "lineCount": 3 - }, - { - "name": "saveJSON", - "params": [ - "name", - "data" - ], - "exported": false, - "lineCount": 3 - }, - { - "name": "needsRerun", - "params": [ - "row" - ], - "exported": false, - "lineCount": 3 - }, - { - "name": "fillArm", - "params": [ - "arm", - "model", - "systemPrompt", - "outputsFile" - ], - "exported": false, - "lineCount": 26 - }, - { - "name": "parseJudgeJSON", - "params": [ - "raw" - ], - "exported": false, - "lineCount": 34 - }, - { - "name": "overall", - "params": [ - "p" - ], - "exported": false, - "lineCount": 4 - }, - { - "name": "judgeOnce", - "params": [ - "judgeModel", - "ex", - "actual" - ], - "exported": false, - "lineCount": 5 - }, - { - "name": "judgeAll", - "params": [ - "outputs" - ], - "exported": false, - "lineCount": 29 - }, - { - "name": "mean", - "params": [ - "vals" - ], - "exported": false, - "lineCount": 4 - }, - { - "name": "aggregate", - "params": [ - "scores" - ], - "exported": false, - "lineCount": 22 - }, - { - "name": "writeReport", - "params": [], - "exported": false, - "lineCount": 84 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:url", - "specifiers": [ - "fileURLToPath" - ] - } - ], - "exports": [], - "totalLines": 407, - "hasStructuralAnalysis": true - }, - "scripts/evolution-hypothesis.mjs": { - "filePath": "scripts/evolution-hypothesis.mjs", - "contentHash": "2d78a88c3ee9a862eeb0b3eb476affd486b6f1f43645e5bc15e1736ecd4849a0", - "functions": [ - { - "name": "openrouter", - "params": [ - "model", - "prompt" - ], - "exported": false, - "lineCount": 28 - }, - { - "name": "openrouterChat", - "params": [ - "model", - "systemPrompt", - "userInput" - ], - "exported": false, - "lineCount": 30 - }, - { - "name": "anthropic", - "params": [ - "prompt" - ], - "exported": false, - "lineCount": 27 - }, - { - "name": "saveCheckpoint", - "params": [ - "name", - "data" - ], - "exported": false, - "lineCount": 8 - }, - { - "name": "printPlan", - "params": [], - "exported": false, - "lineCount": 32 - }, - { - "name": "haikuJudgeCall", - "params": [ - "prompt" - ], - "exported": false, - "lineCount": 1 - }, - { - "name": "evolvePrompt", - "params": [], - "exported": false, - "lineCount": 81 - }, - { - "name": "runArm", - "params": [ - "name", - "model", - "systemPrompt" - ], - "exported": false, - "lineCount": 18 - }, - { - "name": "runAllArms", - "params": [ - "evolvedPrompt" - ], - "exported": false, - "lineCount": 14 - }, - { - "name": "judgeOnce", - "params": [ - "judgeModel", - "example", - "actual" - ], - "exported": false, - "lineCount": 16 - }, - { - "name": "parseJudgeJSON", - "params": [ - "raw" - ], - "exported": false, - "lineCount": 36 - }, - { - "name": "overallFromParsed", - "params": [ - "p" - ], - "exported": false, - "lineCount": 5 - }, - { - "name": "judgeAllOutputs", - "params": [ - "outputs" - ], - "exported": false, - "lineCount": 37 - }, - { - "name": "aggregate", - "params": [ - "scores" - ], - "exported": false, - "lineCount": 21 - }, - { - "name": "mean", - "params": [ - "vals" - ], - "exported": false, - "lineCount": 4 - }, - { - "name": "writeReport", - "params": [], - "exported": false, - "lineCount": 93 - }, - { - "name": "parseArgs", - "params": [ - "argv" - ], - "exported": false, - "lineCount": 15 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:url", - "specifiers": [ - "fileURLToPath" - ] - }, - { - "source": "../packages/agent/dist/judge.js", - "specifiers": [ - "LLMJudge" - ] - }, - { - "source": "../packages/agent/dist/iterative-optimizer.js", - "specifiers": [ - "IterativeGEPA" - ] - }, - { - "source": "../packages/agent/dist/evolve-schema.js", - "specifiers": [ - "EvolveSchema" - ] - }, - { - "source": "../packages/agent/dist/evolution-llm-wiring.js", - "specifiers": [ - "buildReflectiveMutationPrompt", - "buildSchemaFillPrompt", - "makeRunningJudge" - ] - }, - { - "source": "../packages/agent/dist/compose-evolution.js", - "specifiers": [ - "filterJudgeFeedback" - ] - } - ], - "exports": [], - "totalLines": 782, - "hasStructuralAnalysis": true - }, - "scripts/harvest-and-compile.mjs": { - "filePath": "scripts/harvest-and-compile.mjs", - "contentHash": "a28ac3e8df29c21f9c5a306a9a70757adfc0ab3bf2d0bc1f371387e05634246b", - "functions": [], - "classes": [], - "imports": [ - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "FrameStore", - "KnowledgeGraph", - "SessionStore", - "HybridSearch", - "HarvestSourceStore", - "ClaudeCodeAdapter", - "createEmbeddingProvider", - "normalizeEntityName" - ] - }, - { - "source": "@waggle/wiki-compiler", - "specifiers": [ - "WikiCompiler", - "CompilationState", - "resolveSynthesizer" - ] - } - ], - "exports": [], - "totalLines": 219, - "hasStructuralAnalysis": true - }, - "scripts/inspect-fresh-claude-export.mjs": { - "filePath": "scripts/inspect-fresh-claude-export.mjs", - "contentHash": "1dee8a0ff18c8a580c03fff95379d19b90d1689e9524c2821dfa24be975ccc1b", - "functions": [], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - } - ], - "exports": [], - "totalLines": 162, - "hasStructuralAnalysis": true - }, - "scripts/judge-calibration.mjs": { - "filePath": "scripts/judge-calibration.mjs", - "contentHash": "3559a3ab1b6836950cf3d2a852346036a0a87304d372f0578aea2722f55fbdf3", - "functions": [ - { - "name": "parseLabelsMarkdown", - "params": [ - "md" - ], - "exported": false, - "lineCount": 37 - }, - { - "name": "parseArgs", - "params": [ - "argv" - ], - "exported": false, - "lineCount": 33 - }, - { - "name": "loadJudgeModule", - "params": [], - "exported": false, - "lineCount": 14 - }, - { - "name": "loadJudgeClientFactory", - "params": [], - "exported": false, - "lineCount": 15 - }, - { - "name": "main", - "params": [], - "exported": false, - "lineCount": 167 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:url", - "specifiers": [ - "url" - ] - } - ], - "exports": [], - "totalLines": 310, - "hasStructuralAnalysis": true - }, - "scripts/nuclear-rebuild.mjs": { - "filePath": "scripts/nuclear-rebuild.mjs", - "contentHash": "88f8faec0469dfdb0f7128a5a66e45a2eaff77dd4112447537e9003c61700471", - "functions": [ - { - "name": "ent", - "params": [ - "type", - "name" - ], - "exported": false, - "lineCount": 1 - }, - { - "name": "rel", - "params": [ - "srcId", - "tgtId", - "relType" - ], - "exported": false, - "lineCount": 1 - } - ], - "classes": [], - "imports": [ - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "KnowledgeGraph", - "FrameStore", - "HybridSearch", - "createEmbeddingProvider" - ] - }, - { - "source": "@waggle/wiki-compiler", - "specifiers": [ - "WikiCompiler", - "CompilationState" - ] - } - ], - "exports": [], - "totalLines": 124, - "hasStructuralAnalysis": true - }, - "scripts/oss-drift-check.sh": { - "filePath": "scripts/oss-drift-check.sh", - "contentHash": "9ac055aec13a938d61a6fae962a6bc0f15eca420495985171f3e0410cc18638c", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 124, - "hasStructuralAnalysis": true - }, - "scripts/oss-subtree-split.sh": { - "filePath": "scripts/oss-subtree-split.sh", - "contentHash": "b5f5b66edcacdb1683855bcf661e2b382b0ecfce01213bc1c2f2e9bed41ae4ea", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 154, - "hasStructuralAnalysis": true - }, - "scripts/parity-check.sh": { - "filePath": "scripts/parity-check.sh", - "contentHash": "5d0aec78d27ab5d5a7c167c3bd7ca6ee0541ea3c339924f059df2f5efd1ffcc4", - "functions": [ - { - "name": "is_allowlisted", - "params": [], - "exported": false, - "lineCount": 7 - } - ], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 141, - "hasStructuralAnalysis": true - }, - "scripts/persona-reactor-workflow.mjs": { - "filePath": "scripts/persona-reactor-workflow.mjs", - "contentHash": "0496083b7304fef3d51c4fca09e9ec1d28372d5cd79551ce7022c6ff8f7f74dc", - "functions": [ - { - "name": "avg", - "params": [ - "k" - ], - "exported": false, - "lineCount": 1 - } - ], - "classes": [], - "imports": [], - "exports": [ - "meta" - ], - "totalLines": 128, - "hasStructuralAnalysis": true - }, - "scripts/qwen-stability-matrix.mjs": { - "filePath": "scripts/qwen-stability-matrix.mjs", - "contentHash": "434621fddeb586f3e7debf9032963f9361ab33b0b81ac873c6b3eb9212ca4d6a", - "functions": [ - { - "name": "callLitellm", - "params": [], - "exported": false, - "lineCount": 50 - }, - { - "name": "syntheticCellResult", - "params": [ - "prompt", - "maxTokens", - "thinking", - "cellIdx" - ], - "exported": false, - "lineCount": 42 - }, - { - "name": "classifyOutcome", - "params": [], - "exported": true, - "lineCount": 46 - }, - { - "name": "buildCells", - "params": [], - "exported": false, - "lineCount": 11 - }, - { - "name": "runCell", - "params": [ - "cell", - "cellIdx" - ], - "exported": false, - "lineCount": 25 - }, - { - "name": "toCsv", - "params": [ - "rows" - ], - "exported": false, - "lineCount": 27 - }, - { - "name": "renderMarkdown", - "params": [ - "rows", - "meta" - ], - "exported": false, - "lineCount": 85 - }, - { - "name": "main", - "params": [], - "exported": false, - "lineCount": 64 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - } - ], - "exports": [ - "classifyOutcome" - ], - "totalLines": 534, - "hasStructuralAnalysis": true - }, - "scripts/read-pdf.mjs": { - "filePath": "scripts/read-pdf.mjs", - "contentHash": "2dc9e777bbe00efc527d99840fe8d7eccdb3299c670440d1d8ef8070758e021e", - "functions": [], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "pdf-parse", - "specifiers": [ - "PDFParse" - ] - } - ], - "exports": [], - "totalLines": 21, - "hasStructuralAnalysis": true - }, - "scripts/read-wiki-pages.mjs": { - "filePath": "scripts/read-wiki-pages.mjs", - "contentHash": "d3e44d865d80f9c8f80d5b90f16e164e354498d0bf0712dc4c3804c7d493cab9", - "functions": [], - "classes": [], - "imports": [ - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "FrameStore", - "KnowledgeGraph", - "HybridSearch", - "createEmbeddingProvider" - ] - }, - { - "source": "@waggle/wiki-compiler", - "specifiers": [ - "WikiCompiler", - "CompilationState", - "resolveSynthesizer" - ] - } - ], - "exports": [], - "totalLines": 72, - "hasStructuralAnalysis": true - }, - "scripts/run-mini-locomo.ts": { - "filePath": "scripts/run-mini-locomo.ts", - "contentHash": "427eaa68c324ec40c3e53bfe30f98401a692033f6fd262d40547fbb27d4b25d5", - "functions": [ - { - "name": "parseArgs", - "params": [ - "argv" - ], - "returnType": "Args", - "exported": true, - "lineCount": 46 - }, - { - "name": "printHelp", - "params": [], - "returnType": "void", - "exported": false, - "lineCount": 26 - }, - { - "name": "parseManifestScalars", - "params": [ - "yaml" - ], - "returnType": "Map", - "exported": false, - "lineCount": 26 - }, - { - "name": "hydrateFromManifest", - "params": [ - "args" - ], - "returnType": "Args", - "exported": false, - "lineCount": 30 - }, - { - "name": "validateAliases", - "params": [ - "requiredAliases" - ], - "returnType": "Promise<{\r\n ok: boolean;\r\n live: string[];\r\n missing: string[];\r\n}>", - "exported": false, - "lineCount": 17 - }, - { - "name": "mapCell", - "params": [ - "v3Name" - ], - "returnType": "string", - "exported": false, - "lineCount": 9 - }, - { - "name": "rewriteJsonlCellField", - "params": [ - "outputPath", - "v3Cell" - ], - "returnType": "number", - "exported": true, - "lineCount": 24 - }, - { - "name": "harnessRootAbs", - "params": [], - "returnType": "string", - "exported": false, - "lineCount": 4 - }, - { - "name": "runOneCell", - "params": [ - "v3Cell", - "args" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 91 - }, - { - "name": "runCellsWithConcurrency", - "params": [ - "cells", - "concurrency", - "args" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 16 - }, - { - "name": "verifyFieldCoverage", - "params": [ - "outputPath" - ], - "returnType": "{\r\n present: string[];\r\n absent: string[];\r\n totalRecords: number;\r\n}", - "exported": false, - "lineCount": 26 - }, - { - "name": "main", - "params": [], - "returnType": "Promise", - "exported": false, - "lineCount": 86 - } - ], - "classes": [], - "imports": [ - { - "source": "node:crypto", - "specifiers": [ - "crypto" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:url", - "specifiers": [ - "url" - ] - }, - { - "source": "node:child_process", - "specifiers": [ - "spawn" - ] - } - ], - "exports": [ - "parseArgs", - "rewriteJsonlCellField" - ], - "totalLines": 620, - "hasStructuralAnalysis": true - }, - "scripts/run-pilot-2026-04-26.ts": { - "filePath": "scripts/run-pilot-2026-04-26.ts", - "contentHash": "8a6251e2fc4e3c44ba2f23bfe7a452c316cd58f2d30a5ae45928238d72e01104", - "functions": [ - { - "name": "buildCells", - "params": [ - "qwenAlias" - ], - "exported": false, - "lineCount": 8 - }, - { - "name": "logLine", - "params": [ - "msg" - ], - "returnType": "void", - "exported": false, - "lineCount": 5 - }, - { - "name": "parseArgs", - "params": [ - "argv" - ], - "returnType": "Args", - "exported": false, - "lineCount": 28 - }, - { - "name": "printHelp", - "params": [], - "returnType": "void", - "exported": false, - "lineCount": 22 - }, - { - "name": "sha256File", - "params": [ - "filepath" - ], - "returnType": "string", - "exported": false, - "lineCount": 4 - }, - { - "name": "gitHead", - "params": [], - "returnType": "string", - "exported": false, - "lineCount": 7 - }, - { - "name": "preflight", - "params": [], - "returnType": "{ headSha: string; amendmentSha: string; briefSha: string; rubricSha: string }", - "exported": false, - "lineCount": 8 - }, - { - "name": "loadTaskMaterials", - "params": [ - "taskId" - ], - "returnType": "TaskMaterials", - "exported": false, - "lineCount": 39 - }, - { - "name": "llmCall", - "params": [ - "input" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 59 - }, - { - "name": "runCellSolo", - "params": [ - "cell", - "task" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 34 - }, - { - "name": "runCellMultiStep", - "params": [ - "cell", - "task", - "embedder" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 65 - }, - { - "name": "buildJudgePrompt", - "params": [ - "task", - "response" - ], - "returnType": "string", - "exported": false, - "lineCount": 6 - }, - { - "name": "parseJudgeJson", - "params": [ - "text" - ], - "returnType": "JudgeVerdict | null", - "exported": false, - "lineCount": 21 - }, - { - "name": "runJudge", - "params": [ - "judgeModel", - "prompt" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 27 - }, - { - "name": "judgeWithTrio", - "params": [ - "task", - "response" - ], - "returnType": "Promise<{\r\n records: JudgeRecord[]; trioMean: number; strictPass: boolean; criticalFail: boolean; cost: number;\r\n}>", - "exported": false, - "lineCount": 14 - }, - { - "name": "stripJudge", - "params": [ - "j" - ], - "returnType": "JudgeVerdict", - "exported": false, - "lineCount": 7 - }, - { - "name": "findJudge", - "params": [ - "records", - "model" - ], - "returnType": "JudgeRecord", - "exported": false, - "lineCount": 5 - }, - { - "name": "writeCellJsonl", - "params": [ - "cell", - "judges", - "audit" - ], - "returnType": "CellJsonlRecord", - "exported": false, - "lineCount": 34 - }, - { - "name": "writeSummary", - "params": [ - "records", - "cumulativeCost", - "startTs", - "endTs" - ], - "returnType": "void", - "exported": false, - "lineCount": 46 - }, - { - "name": "retryCellAMinimax", - "params": [ - "audit" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 28 - }, - { - "name": "restartCells", - "params": [ - "cellList", - "embedder", - "audit" - ], - "returnType": "Promise<{ records: CellJsonlRecord[]; cost: number }>", - "exported": false, - "lineCount": 36 - }, - { - "name": "main", - "params": [], - "returnType": "Promise", - "exported": false, - "lineCount": 106 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:fs/promises", - "specifiers": [ - "* as fsp" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:crypto", - "specifiers": [ - "* as crypto" - ] - }, - { - "source": "node:url", - "specifiers": [ - "fileURLToPath" - ] - }, - { - "source": "node:child_process", - "specifiers": [ - "execFileSync" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "FrameStore", - "SessionStore", - "HybridSearch", - "createOllamaEmbedder", - "Embedder" - ] - }, - { - "source": "@waggle/agent", - "specifiers": [ - "runSoloAgent", - "runRetrievalAgentLoop", - "LlmCallFn", - "LlmCallInput", - "AgentLlmCallResult", - "RetrievalSearchFn", - "AgentRunResult" - ] - } - ], - "exports": [], - "totalLines": 952, - "hasStructuralAnalysis": true - }, - "scripts/scan-locomo-deep.mjs": { - "filePath": "scripts/scan-locomo-deep.mjs", - "contentHash": "2bf47aef7d5ed9e1c9bbea6421b51af14643ce117c0c6fb6893d7f1db8b99205", - "functions": [ - { - "name": "getConv", - "params": [], - "exported": false, - "lineCount": 1 - }, - { - "name": "collectTurns", - "params": [ - "conv" - ], - "exported": false, - "lineCount": 11 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - } - ], - "exports": [], - "totalLines": 95, - "hasStructuralAnalysis": true - }, - "scripts/scan-locomo-for-triples.mjs": { - "filePath": "scripts/scan-locomo-for-triples.mjs", - "contentHash": "bf2f3f5e4c0cb763a36397f758889f197ff70c18ecf513de7e920909d5a60f86", - "functions": [ - { - "name": "getConv", - "params": [ - "sampleId" - ], - "exported": false, - "lineCount": 5 - }, - { - "name": "collectTurns", - "params": [ - "conv" - ], - "exported": false, - "lineCount": 22 - }, - { - "name": "grepTurns", - "params": [ - "turns", - "regex" - ], - "exported": false, - "lineCount": 5 - }, - { - "name": "formatHit", - "params": [ - "t" - ], - "exported": false, - "lineCount": 4 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - } - ], - "exports": [], - "totalLines": 164, - "hasStructuralAnalysis": true - }, - "scripts/seed-real-data.mjs": { - "filePath": "scripts/seed-real-data.mjs", - "contentHash": "49626964e69640d4ac418929bb254b7b6d33b67cb3a56fd80dc76e83b1dc1c75", - "functions": [ - { - "name": "ensureEntity", - "params": [ - "type", - "name" - ], - "exported": false, - "lineCount": 6 - } - ], - "classes": [], - "imports": [ - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "FrameStore", - "KnowledgeGraph", - "IdentityLayer", - "AwarenessLayer", - "SessionStore", - "HybridSearch", - "WorkspaceManager", - "createEmbeddingProvider" - ] - }, - { - "source": "@waggle/wiki-compiler", - "specifiers": [ - "CompilationState" - ] - } - ], - "exports": [], - "totalLines": 382, - "hasStructuralAnalysis": true - }, - "scripts/smoke-qwen-dual-route.mjs": { - "filePath": "scripts/smoke-qwen-dual-route.mjs", - "contentHash": "4e713e04fd825a1b619b11c40487151d9bff3b739a4b2c7d4e78f05ac0aa9dba", - "functions": [ - { - "name": "probe", - "params": [ - "alias" - ], - "exported": false, - "lineCount": 45 - }, - { - "name": "main", - "params": [], - "exported": false, - "lineCount": 25 - } - ], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 113, - "hasStructuralAnalysis": true - }, - "scripts/smoke-sonnet-route.mjs": { - "filePath": "scripts/smoke-sonnet-route.mjs", - "contentHash": "194071747d343184c75c006893296d8fa78f373f201e6ba2ba231fbcdf4a5f65", - "functions": [ - { - "name": "main", - "params": [], - "exported": false, - "lineCount": 64 - } - ], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 106, - "hasStructuralAnalysis": true - }, - "scripts/sprint-11-b1-smoke.mjs": { - "filePath": "scripts/sprint-11-b1-smoke.mjs", - "contentHash": "1574c7edc4bb4589ce5a398a89db3ae59aa8febb59128ab1f96b25632e323be0", - "functions": [ - { - "name": "iso", - "params": [], - "exported": false, - "lineCount": 3 - }, - { - "name": "mkdirP", - "params": [ - "dir" - ], - "exported": false, - "lineCount": 3 - }, - { - "name": "main", - "params": [], - "exported": false, - "lineCount": 124 - }, - { - "name": "writeArtifact", - "params": [ - "artifact" - ], - "exported": false, - "lineCount": 6 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:url", - "specifiers": [ - "url" - ] - } - ], - "exports": [], - "totalLines": 195, - "hasStructuralAnalysis": true - }, - "scripts/sprint-11-b2-grok-smoke.mjs": { - "filePath": "scripts/sprint-11-b2-grok-smoke.mjs", - "contentHash": "91c1cda8e54dad1c186ca58ff62e18bdd3ca106757091d2f5304b3288ae6a5ae", - "functions": [ - { - "name": "iso", - "params": [], - "exported": false, - "lineCount": 1 - }, - { - "name": "mkdirP", - "params": [ - "dir" - ], - "exported": false, - "lineCount": 1 - }, - { - "name": "main", - "params": [], - "exported": false, - "lineCount": 131 - }, - { - "name": "writeArtifact", - "params": [ - "artifact" - ], - "exported": false, - "lineCount": 6 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:url", - "specifiers": [ - "url" - ] - } - ], - "exports": [], - "totalLines": 217, - "hasStructuralAnalysis": true - }, - "scripts/stage-0-query.mjs": { - "filePath": "scripts/stage-0-query.mjs", - "contentHash": "058d24160f89c73c3f61eb1d43bfac6f21dcaa82fd859daed23741b591972fc8", - "functions": [ - { - "name": "parseArgs", - "params": [ - "argv" - ], - "exported": false, - "lineCount": 39 - }, - { - "name": "recallContext", - "params": [ - "question", - "dataDir", - "limit" - ], - "exported": false, - "lineCount": 40 - }, - { - "name": "buildUserPrompt", - "params": [ - "question", - "hits" - ], - "exported": false, - "lineCount": 14 - }, - { - "name": "callLitellm", - "params": [], - "exported": false, - "lineCount": 54 - }, - { - "name": "callOllama", - "params": [], - "exported": false, - "lineCount": 33 - }, - { - "name": "computeCost", - "params": [ - "backend", - "model", - "promptTokens", - "completionTokens" - ], - "exported": false, - "lineCount": 7 - }, - { - "name": "main", - "params": [], - "exported": false, - "lineCount": 89 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:child_process", - "specifiers": [ - "spawnSync" - ] - } - ], - "exports": [], - "totalLines": 355, - "hasStructuralAnalysis": true - }, - "scripts/test-full-compile.mjs": { - "filePath": "scripts/test-full-compile.mjs", - "contentHash": "5400a53eec2bdf683896426a146511fc0465751c3ba54192783ddf4022c6c351", - "functions": [], - "classes": [], - "imports": [ - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "FrameStore", - "KnowledgeGraph", - "HybridSearch", - "createEmbeddingProvider" - ] - }, - { - "source": "@waggle/wiki-compiler", - "specifiers": [ - "WikiCompiler", - "CompilationState", - "resolveSynthesizer" - ] - } - ], - "exports": [], - "totalLines": 37, - "hasStructuralAnalysis": true - }, - "scripts/test-synthesizer.mjs": { - "filePath": "scripts/test-synthesizer.mjs", - "contentHash": "a4f3610bf8aafa9bdf88d659408ad070d65703f34dc4d9d2998bf8055fe57b90", - "functions": [], - "classes": [], - "imports": [ - { - "source": "@waggle/wiki-compiler", - "specifiers": [ - "resolveSynthesizer" - ] - } - ], - "exports": [], - "totalLines": 15, - "hasStructuralAnalysis": true - }, - "scripts/vendor-availability-probe.mjs": { - "filePath": "scripts/vendor-availability-probe.mjs", - "contentHash": "3033cecda1f8e1bf3246b0ce262649fcfd9ea7ffc17a7555aefb397758242194", - "functions": [ - { - "name": "probeVendor", - "params": [ - "vendor" - ], - "exported": false, - "lineCount": 87 - }, - { - "name": "main", - "params": [], - "exported": false, - "lineCount": 33 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - } - ], - "exports": [], - "totalLines": 184, - "hasStructuralAnalysis": true - }, - "scripts/vision-judge-workflow.mjs": { - "filePath": "scripts/vision-judge-workflow.mjs", - "contentHash": "7572e272219b97ed21852a28355bf0c2651dabd5e90e99a55017c0393652ad53", - "functions": [], - "classes": [], - "imports": [], - "exports": [ - "meta" - ], - "totalLines": 169, - "hasStructuralAnalysis": true - }, - "sidecar/package.json": { - "filePath": "sidecar/package.json", - "contentHash": "04d665b454d7b04b4952d726ee01aed73e9083477e207caaa0236295a202e38c", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 17, - "hasStructuralAnalysis": true - }, - "sidecar/src/agent-session.ts": { - "filePath": "sidecar/src/agent-session.ts", - "contentHash": "d90162e0af64f1607e9f4d2c0ed3a7cea49ad488feb015e906d7262ecf92f470", - "functions": [], - "classes": [ - { - "name": "AgentSession", - "methods": [ - "constructor", - "init", - "sendMessage", - "getOrchestrator" - ], - "properties": [ - "orchestrator", - "initPromise" - ], - "exported": true, - "lineCount": 113 - } - ], - "imports": [ - { - "source": "@waggle/agent", - "specifiers": [ - "Orchestrator", - "OrchestratorConfig" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "createEmbeddingProvider" - ] - } - ], - "exports": [ - "AgentSession" - ], - "totalLines": 125, - "hasStructuralAnalysis": true - }, - "sidecar/src/main.ts": { - "filePath": "sidecar/src/main.ts", - "contentHash": "3b2b4f2fbef753c40414453d43cc6113aa952257b1bd46a8bc2c2c5ad9ca211d", - "functions": [], - "classes": [], - "imports": [ - { - "source": "readline", - "specifiers": [ - "createInterface" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB" - ] - }, - { - "source": "./rpc-handler.js", - "specifiers": [ - "RpcHandler", - "JsonRpcRequest" - ] - }, - { - "source": "./weaver-scheduler.js", - "specifiers": [ - "WeaverScheduler" - ] - }, - { - "source": "path", - "specifiers": [ - "path" - ] - }, - { - "source": "os", - "specifiers": [ - "os" - ] - }, - { - "source": "fs", - "specifiers": [ - "fs" - ] - } - ], - "exports": [], - "totalLines": 52, - "hasStructuralAnalysis": true - }, - "sidecar/src/mcp-manager.ts": { - "filePath": "sidecar/src/mcp-manager.ts", - "contentHash": "7d3e0d810f7152758ef3460b501d04ef0c6f07869adee54e436d62b62605e79f", - "functions": [], - "classes": [ - { - "name": "McpManager", - "methods": [ - "constructor", - "addServer", - "removeServer", - "getServer", - "listServers", - "toJSON", - "fromJSON" - ], - "properties": [ - "servers" - ], - "exported": true, - "lineCount": 39 - } - ], - "imports": [], - "exports": [ - "McpManager" - ], - "totalLines": 49, - "hasStructuralAnalysis": true - }, - "sidecar/src/rpc-handler.ts": { - "filePath": "sidecar/src/rpc-handler.ts", - "contentHash": "291d1a2315acb2071a774c57d9c2e66a20c670c1be244b8cbf20340a193bbb87", - "functions": [], - "classes": [ - { - "name": "RpcHandler", - "methods": [ - "constructor", - "handle", - "dispatch" - ], - "properties": [ - "db", - "identity", - "awareness", - "frames", - "sessions", - "knowledge", - "settings", - "agentSession", - "mcpManager" - ], - "exported": true, - "lineCount": 101 - }, - { - "name": "MethodNotFoundError", - "methods": [ - "constructor" - ], - "properties": [], - "exported": false, - "lineCount": 6 - } - ], - "imports": [ - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "IdentityLayer", - "AwarenessLayer", - "FrameStore", - "SessionStore", - "KnowledgeGraph" - ] - }, - { - "source": "./agent-session.js", - "specifiers": [ - "AgentSession" - ] - }, - { - "source": "./mcp-manager.js", - "specifiers": [ - "McpManager", - "McpServerConfig" - ] - } - ], - "exports": [ - "RpcHandler" - ], - "totalLines": 140, - "hasStructuralAnalysis": true - }, - "sidecar/src/skill-loader.ts": { - "filePath": "sidecar/src/skill-loader.ts", - "contentHash": "275ccab3ca9e26d42ca5ef07c7430b12d8041876a75394ed66bc6bec1ccea5ee", - "functions": [ - { - "name": "parseFrontmatter", - "params": [ - "content" - ], - "returnType": "{ meta: Record; body: string } | null", - "exported": false, - "lineCount": 14 - } - ], - "classes": [ - { - "name": "SkillLoader", - "methods": [ - "constructor", - "discover" - ], - "properties": [ - "directories" - ], - "exported": true, - "lineCount": 42 - } - ], - "imports": [ - { - "source": "fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "path", - "specifiers": [ - "path" - ] - } - ], - "exports": [ - "SkillLoader" - ], - "totalLines": 72, - "hasStructuralAnalysis": true - }, - "sidecar/src/weaver-scheduler.ts": { - "filePath": "sidecar/src/weaver-scheduler.ts", - "contentHash": "9058599dafd63cd34c3f0fcf5d06c13c1d152705ee88792e227c41d8d452e84f", - "functions": [], - "classes": [ - { - "name": "WeaverScheduler", - "methods": [ - "constructor", - "start", - "stop", - "runConsolidation", - "runDecay" - ], - "properties": [ - "weaver", - "sessions", - "timers", - "config" - ], - "exported": true, - "lineCount": 51 - } - ], - "imports": [ - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "FrameStore", - "SessionStore" - ] - }, - { - "source": "@waggle/weaver", - "specifiers": [ - "MemoryWeaver" - ] - } - ], - "exports": [ - "WeaverScheduler" - ], - "totalLines": 65, - "hasStructuralAnalysis": true - }, - "sidecar/tsconfig.json": { - "filePath": "sidecar/tsconfig.json", - "contentHash": "a7f1a01fbc19d796ba5c20b87e9fdf989fa125b82693b0aaf86b6cdfcded8a09", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 17, - "hasStructuralAnalysis": true - }, - "tests/agent-behavior-audit.ts": { - "filePath": "tests/agent-behavior-audit.ts", - "contentHash": "376b1260d960170b231b66844aaf1a316fe65bc61b9cb52548a8f96807f6b7c1", - "functions": [ - { - "name": "chat", - "params": [ - "message", - "opts" - ], - "returnType": "Promise<{ text: string; events: SSEEvent[]; error?: string }>", - "exported": false, - "lineCount": 69 - }, - { - "name": "inspectMind", - "params": [ - "dbPath" - ], - "exported": false, - "lineCount": 32 - }, - { - "name": "clearHistory", - "params": [ - "workspace" - ], - "exported": false, - "lineCount": 6 - }, - { - "name": "startSession", - "params": [ - "num", - "name" - ], - "exported": false, - "lineCount": 7 - }, - { - "name": "check", - "params": [ - "name", - "pass", - "detail" - ], - "exported": false, - "lineCount": 5 - }, - { - "name": "session1_coldStart", - "params": [], - "exported": false, - "lineCount": 23 - }, - { - "name": "session2_memoryFormation", - "params": [], - "exported": false, - "lineCount": 39 - }, - { - "name": "session3_memoryRecall", - "params": [], - "exported": false, - "lineCount": 20 - }, - { - "name": "session4_conversationalReplies", - "params": [], - "exported": false, - "lineCount": 32 - }, - { - "name": "session5_toolUsage", - "params": [], - "exported": false, - "lineCount": 21 - }, - { - "name": "session6_personaSwitching", - "params": [], - "exported": false, - "lineCount": 24 - }, - { - "name": "session7_entityExtraction", - "params": [], - "exported": false, - "lineCount": 44 - }, - { - "name": "session8_evolutionPipeline", - "params": [], - "exported": false, - "lineCount": 33 - }, - { - "name": "session9_crossWorkspace", - "params": [], - "exported": false, - "lineCount": 35 - }, - { - "name": "session10_edgeCases", - "params": [], - "exported": false, - "lineCount": 29 - }, - { - "name": "main", - "params": [], - "exported": false, - "lineCount": 63 - } - ], - "classes": [], - "imports": [ - { - "source": "node:http", - "specifiers": [ - "http" - ] - }, - { - "source": "better-sqlite3", - "specifiers": [ - "Database" - ] - }, - { - "source": "sqlite-vec", - "specifiers": [ - "* as sqliteVec" - ] - }, - { - "source": "node:os", - "specifiers": [ - "os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "fs" - ] - } - ], - "exports": [], - "totalLines": 549, - "hasStructuralAnalysis": true - }, - "tests/behaviors/chat-pipeline.test.ts": { - "filePath": "tests/behaviors/chat-pipeline.test.ts", - "contentHash": "aa5784842ff0c6c79a20000c469ec3c64ede11820c7969aa4ab32ca76ed4c7e4", - "functions": [ - { - "name": "makeTmpDir", - "params": [], - "returnType": "string", - "exported": false, - "lineCount": 5 - }, - { - "name": "parseSSE", - "params": [ - "body" - ], - "returnType": "Array<{ type: string; data: unknown }>", - "exported": false, - "lineCount": 16 - }, - { - "name": "echoRunner", - "params": [ - "config" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 10 - }, - { - "name": "toolRunner", - "params": [ - "config" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 10 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "* as fs" - ] - }, - { - "source": "node:os", - "specifiers": [ - "* as os" - ] - }, - { - "source": "node:path", - "specifiers": [ - "* as path" - ] - }, - { - "source": "node:net", - "specifiers": [ - "AddressInfo" - ] - }, - { - "source": "../../packages/server/src/local/routes/chat.js", - "specifiers": [ - "applyContextWindow", - "buildSkillPromptSection", - "MAX_CONTEXT_MESSAGES" - ] - }, - { - "source": "../../packages/server/src/local/index.js", - "specifiers": [ - "buildLocalServer" - ] - }, - { - "source": "../../packages/server/src/local/routes/chat.js", - "specifiers": [ - "AgentRunner" - ] - }, - { - "source": "../../packages/agent/src/agent-loop.js", - "specifiers": [ - "AgentResponse" - ] - } - ], - "exports": [], - "totalLines": 400, - "hasStructuralAnalysis": true - }, - "tests/behaviors/waggle-journeys.test.ts": { - "filePath": "tests/behaviors/waggle-journeys.test.ts", - "contentHash": "059c217fed8693df8fb1f9bbc9a91dae13d0cbf4f0219c860511f70b38a4d798", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "../../packages/agent/src/personas.js", - "specifiers": [ - "PERSONAS", - "getPersona", - "composePersonaPrompt", - "listPersonas" - ] - }, - { - "source": "../../packages/agent/src/trust-model.js", - "specifiers": [ - "assessTrust", - "formatTrustSummary", - "detectPermissions", - "classifyRisk", - "resolveTrustSource" - ] - }, - { - "source": "../../packages/agent/src/confirmation.js", - "specifiers": [ - "needsConfirmation", - "getApprovalClass", - "ConfirmationGate" - ] - }, - { - "source": "../../packages/agent/src/injection-scanner.js", - "specifiers": [ - "scanForInjection" - ] - }, - { - "source": "../../packages/agent/src/loop-guard.js", - "specifiers": [ - "LoopGuard" - ] - }, - { - "source": "../../packages/agent/src/commands/command-registry.js", - "specifiers": [ - "CommandRegistry" - ] - }, - { - "source": "../../packages/agent/src/commands/workflow-commands.js", - "specifiers": [ - "registerWorkflowCommands" - ] - }, - { - "source": "../../packages/agent/src/capability-router.js", - "specifiers": [ - "CapabilityRouter" - ] - } - ], - "exports": [], - "totalLines": 750, - "hasStructuralAnalysis": true - }, - "tests/dock-app-title-consistency.test.ts": { - "filePath": "tests/dock-app-title-consistency.test.ts", - "contentHash": "1f86e4a3df4216a19f5dbfb3b3ee76dbc844e0366326ee42b7163708e63cc1c0", - "functions": [ - { - "name": "extractDockLabels", - "params": [ - "source" - ], - "returnType": "Map>", - "exported": false, - "lineCount": 10 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "readFileSync" - ] - }, - { - "source": "node:path", - "specifiers": [ - "resolve" - ] - } - ], - "exports": [], - "totalLines": 74, - "hasStructuralAnalysis": true - }, - "tests/docker-compose-litellm-env.test.ts": { - "filePath": "tests/docker-compose-litellm-env.test.ts", - "contentHash": "a324d6452f6d345bedb43505610342c589d6922863735ae3c8d10ee3205251d2", - "functions": [ - { - "name": "loadYaml", - "params": [ - "relPath" - ], - "returnType": "T", - "exported": false, - "lineCount": 3 - }, - { - "name": "collectLiteLLMEnvRefs", - "params": [ - "config" - ], - "returnType": "Set", - "exported": false, - "lineCount": 10 - }, - { - "name": "collectComposeEnv", - "params": [ - "env" - ], - "returnType": "Set", - "exported": false, - "lineCount": 13 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "readFileSync" - ] - }, - { - "source": "node:path", - "specifiers": [ - "resolve" - ] - }, - { - "source": "js-yaml", - "specifiers": [ - "yaml" - ] - } - ], - "exports": [], - "totalLines": 95, - "hasStructuralAnalysis": true - }, - "tests/e2e/boot-screen-skip.spec.ts": { - "filePath": "tests/e2e/boot-screen-skip.spec.ts", - "contentHash": "4b62b6e229af6a0192a1ef4e74a882e612dad6d4e9fef561c2c3f24a28553b0c", - "functions": [ - { - "name": "clearBootFlag", - "params": [ - "page" - ], - "exported": false, - "lineCount": 13 - }, - { - "name": "seedBootFlag", - "params": [ - "page" - ], - "exported": false, - "lineCount": 10 - } - ], - "classes": [], - "imports": [ - { - "source": "@playwright/test", - "specifiers": [ - "test", - "expect", - "Page" - ] - } - ], - "exports": [], - "totalLines": 97, - "hasStructuralAnalysis": true - }, - "tests/e2e/competitive-benchmarks.spec.ts": { - "filePath": "tests/e2e/competitive-benchmarks.spec.ts", - "contentHash": "bbd51eda7050b785ff3f16ffe9313880d798e4ba8e27eb0ac506d8a5d87766b1", - "functions": [ - { - "name": "timed", - "params": [ - "fn" - ], - "returnType": "Promise<{ result: T; ms: number }>", - "exported": false, - "lineCount": 5 - }, - { - "name": "saveMemory", - "params": [ - "request", - "content", - "workspace" - ], - "exported": false, - "lineCount": 5 - }, - { - "name": "searchMemory", - "params": [ - "request", - "query", - "workspace", - "limit" - ], - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "@playwright/test", - "specifiers": [ - "test", - "expect", - "APIRequestContext" - ] - } - ], - "exports": [], - "totalLines": 1133, - "hasStructuralAnalysis": true - }, - "tests/e2e/failure-injection/network-drop.spec.ts": { - "filePath": "tests/e2e/failure-injection/network-drop.spec.ts", - "contentHash": "f1ec2ce393467ddac30bea2256e4d00f2ba5c82dc64fbffbdaf764aea6a3ddda", - "functions": [ - { - "name": "skipOnboarding", - "params": [ - "page" - ], - "exported": false, - "lineCount": 5 - }, - { - "name": "waitForApp", - "params": [ - "page" - ], - "exported": false, - "lineCount": 7 - }, - { - "name": "dismissLoginBriefing", - "params": [ - "page" - ], - "exported": false, - "lineCount": 7 - }, - { - "name": "navigateTo", - "params": [ - "page", - "view" - ], - "exported": false, - "lineCount": 14 - }, - { - "name": "gotoDesktop", - "params": [ - "page" - ], - "exported": false, - "lineCount": 7 - }, - { - "name": "openChatInput", - "params": [ - "page" - ], - "exported": false, - "lineCount": 9 - } - ], - "classes": [], - "imports": [ - { - "source": "@playwright/test", - "specifiers": [ - "test", - "expect", - "Page" - ] - } - ], - "exports": [], - "totalLines": 207, - "hasStructuralAnalysis": true - }, - "tests/e2e/full-product-audit.spec.ts": { - "filePath": "tests/e2e/full-product-audit.spec.ts", - "contentHash": "a595ae133deedd4bad8534ce6a6927e880b1fcbc12d8a69c65487bbd8f1b2b1b", - "functions": [ - { - "name": "dismissOverlay", - "params": [ - "page" - ], - "exported": false, - "lineCount": 14 - }, - { - "name": "gotoDesktop", - "params": [ - "page" - ], - "exported": false, - "lineCount": 6 - }, - { - "name": "routeWithSkip", - "params": [ - "route" - ], - "returnType": "string", - "exported": false, - "lineCount": 4 - }, - { - "name": "openCurrentApp", - "params": [ - "page", - "label" - ], - "exported": false, - "lineCount": 46 - }, - { - "name": "openAppViaDock", - "params": [ - "page", - "label" - ], - "exported": false, - "lineCount": 30 - }, - { - "name": "getVisibleText", - "params": [ - "page" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "@playwright/test", - "specifiers": [ - "test", - "expect", - "Page" - ] - } - ], - "exports": [], - "totalLines": 388, - "hasStructuralAnalysis": true - }, - "tests/e2e/full-wiring-audit.spec.ts": { - "filePath": "tests/e2e/full-wiring-audit.spec.ts", - "contentHash": "94e944cb786e795bf75a40a4a234688ae9ca6b25a423e52ebf37d8487232895b", - "functions": [ - { - "name": "skipOnboarding", - "params": [ - "page" - ], - "exported": false, - "lineCount": 7 - }, - { - "name": "waitForApp", - "params": [ - "page" - ], - "exported": false, - "lineCount": 7 - }, - { - "name": "navigateSidebar", - "params": [ - "page", - "label" - ], - "exported": false, - "lineCount": 41 - }, - { - "name": "collectErrors", - "params": [ - "page" - ], - "returnType": "string[]", - "exported": false, - "lineCount": 8 - } - ], - "classes": [], - "imports": [ - { - "source": "@playwright/test", - "specifiers": [ - "test", - "expect", - "Page" - ] - } - ], - "exports": [], - "totalLines": 634, - "hasStructuralAnalysis": true - }, - "tests/e2e/light-mode-polish.spec.ts": { - "filePath": "tests/e2e/light-mode-polish.spec.ts", - "contentHash": "65d1736360f5bbd51be7decc1d602e70c1d941537298513dd0331daf348b77e8", - "functions": [ - { - "name": "seedLightModeFreshBoot", - "params": [ - "page" - ], - "exported": false, - "lineCount": 12 - }, - { - "name": "relativeLuminance", - "params": [ - "rgb" - ], - "returnType": "number", - "exported": false, - "lineCount": 7 - }, - { - "name": "contrast", - "params": [ - "a", - "b" - ], - "returnType": "number", - "exported": false, - "lineCount": 6 - } - ], - "classes": [], - "imports": [ - { - "source": "@playwright/test", - "specifiers": [ - "test", - "expect", - "Page" - ] - } - ], - "exports": [], - "totalLines": 141, - "hasStructuralAnalysis": true - }, - "tests/e2e/live-chat-flow.spec.ts": { - "filePath": "tests/e2e/live-chat-flow.spec.ts", - "contentHash": "cd34fc191200b953c2db0286ee07b970f8eefc0fc4720efa3354fe3f15e2cd77", - "functions": [ - { - "name": "dismissOverlay", - "params": [ - "page" - ], - "exported": false, - "lineCount": 14 - }, - { - "name": "gotoDesktop", - "params": [ - "page" - ], - "exported": false, - "lineCount": 6 - } - ], - "classes": [], - "imports": [ - { - "source": "@playwright/test", - "specifiers": [ - "test", - "expect", - "Page" - ] - } - ], - "exports": [], - "totalLines": 113, - "hasStructuralAnalysis": true - }, - "tests/e2e/phase-ab-verification.spec.ts": { - "filePath": "tests/e2e/phase-ab-verification.spec.ts", - "contentHash": "f3953020f4218b5307460100210e1c653e5c6d2cd1d9e6ef791cb53f421d8491", - "functions": [ - { - "name": "gotoDesktop", - "params": [ - "page" - ], - "exported": false, - "lineCount": 7 - }, - { - "name": "dismissOverlay", - "params": [ - "page" - ], - "exported": false, - "lineCount": 14 - }, - { - "name": "openAppViaDock", - "params": [ - "page", - "label" - ], - "exported": false, - "lineCount": 6 - } - ], - "classes": [], - "imports": [ - { - "source": "@playwright/test", - "specifiers": [ - "test", - "expect", - "Page" - ] - } - ], - "exports": [], - "totalLines": 262, - "hasStructuralAnalysis": true - }, - "tests/e2e/phase8-visual.spec.ts": { - "filePath": "tests/e2e/phase8-visual.spec.ts", - "contentHash": "e2864a9ccd627fa44986020861678941b068a74900f4441f6f99b02d771f6d2d", - "functions": [ - { - "name": "waitForApp", - "params": [ - "page" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 7 - }, - { - "name": "isOnboarding", - "params": [ - "page" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 7 - }, - { - "name": "skipOnboarding", - "params": [ - "page" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 21 - }, - { - "name": "navigateTo", - "params": [ - "page", - "viewName" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 30 - }, - { - "name": "setTheme", - "params": [ - "page", - "target" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 26 - }, - { - "name": "stableScreenshot", - "params": [ - "page" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 24 - } - ], - "classes": [], - "imports": [ - { - "source": "@playwright/test", - "specifiers": [ - "test", - "expect", - "Page" - ] - } - ], - "exports": [], - "totalLines": 382, - "hasStructuralAnalysis": true - }, - "tests/e2e/polish-verification.spec.ts": { - "filePath": "tests/e2e/polish-verification.spec.ts", - "contentHash": "6eea20044ddeb1bba4eecb0d943f5c67a7332cc73f125d964fb2169ca3b0c477", - "functions": [ - { - "name": "skipOnboarding", - "params": [ - "page" - ], - "exported": false, - "lineCount": 10 - }, - { - "name": "setTier", - "params": [ - "tier" - ], - "exported": false, - "lineCount": 8 - }, - { - "name": "waitForApp", - "params": [ - "page" - ], - "exported": false, - "lineCount": 6 - } - ], - "classes": [], - "imports": [ - { - "source": "@playwright/test", - "specifiers": [ - "test", - "expect", - "Page" - ] - } - ], - "exports": [], - "totalLines": 257, - "hasStructuralAnalysis": true - }, - "tests/e2e/power-user-stress.spec.ts": { - "filePath": "tests/e2e/power-user-stress.spec.ts", - "contentHash": "340101d6c15fef76bb43ce0e3b19b6ee7407b967e9723c08333c5fefd222301c", - "functions": [ - { - "name": "dismissOverlay", - "params": [ - "page" - ], - "exported": false, - "lineCount": 14 - }, - { - "name": "gotoDesktop", - "params": [ - "page" - ], - "exported": false, - "lineCount": 6 - }, - { - "name": "dispatch", - "params": [ - "page", - "key", - "opts" - ], - "exported": false, - "lineCount": 8 - } - ], - "classes": [], - "imports": [ - { - "source": "@playwright/test", - "specifiers": [ - "test", - "expect", - "Page" - ] - } - ], - "exports": [], - "totalLines": 487, - "hasStructuralAnalysis": true - }, - "tests/e2e/room-parallel-agents.spec.ts": { - "filePath": "tests/e2e/room-parallel-agents.spec.ts", - "contentHash": "949d7509c7fa486a947de9e85346224fd8702b237952b19dc4633767070fd738", - "functions": [ - { - "name": "installSseMock", - "params": [ - "page" - ], - "exported": false, - "lineCount": 71 - }, - { - "name": "dismissOverlay", - "params": [ - "page" - ], - "exported": false, - "lineCount": 13 - }, - { - "name": "openRoom", - "params": [ - "page" - ], - "exported": false, - "lineCount": 8 - } - ], - "classes": [], - "imports": [ - { - "source": "@playwright/test", - "specifiers": [ - "test", - "expect", - "Page" - ] - } - ], - "exports": [], - "totalLines": 194, - "hasStructuralAnalysis": true - }, - "tests/e2e/spawn-agent-flow.spec.ts": { - "filePath": "tests/e2e/spawn-agent-flow.spec.ts", - "contentHash": "6e05a6bcc5f38c4455f4cd616f2e3859d64ea6813142b3d9be081da23843a998", - "functions": [ - { - "name": "gotoDesktop", - "params": [ - "page", - "url" - ], - "exported": false, - "lineCount": 6 - } - ], - "classes": [], - "imports": [ - { - "source": "@playwright/test", - "specifiers": [ - "test", - "expect", - "Page" - ] - } - ], - "exports": [], - "totalLines": 134, - "hasStructuralAnalysis": true - }, - "tests/e2e/team-server.spec.ts": { - "filePath": "tests/e2e/team-server.spec.ts", - "contentHash": "23f808a6d36af3894da4012f45c1b5e95cdd6626cd979607b29af48325b8d2aa", - "functions": [], - "classes": [], - "imports": [ - { - "source": "@playwright/test", - "specifiers": [ - "test", - "expect" - ] - } - ], - "exports": [], - "totalLines": 131, - "hasStructuralAnalysis": true - }, - "tests/e2e/user-behavior.spec.ts": { - "filePath": "tests/e2e/user-behavior.spec.ts", - "contentHash": "945b4e3a4300524f19e8cc6bba19732c57b0fdb7da21e4fc2985226a1117f39d", - "functions": [ - { - "name": "waitForApp", - "params": [ - "page" - ], - "exported": false, - "lineCount": 7 - }, - { - "name": "skipOnboarding", - "params": [ - "page" - ], - "exported": false, - "lineCount": 6 - }, - { - "name": "setPersona", - "params": [ - "page", - "personaId" - ], - "exported": false, - "lineCount": 6 - }, - { - "name": "simulateMemorySave", - "params": [ - "request", - "content", - "workspace" - ], - "exported": false, - "lineCount": 5 - }, - { - "name": "searchMemory", - "params": [ - "request", - "query", - "workspace", - "limit" - ], - "exported": false, - "lineCount": 3 - }, - { - "name": "countMemories", - "params": [ - "request", - "workspace" - ], - "exported": false, - "lineCount": 6 - } - ], - "classes": [], - "imports": [ - { - "source": "@playwright/test", - "specifiers": [ - "test", - "expect", - "Page", - "APIRequestContext" - ] - } - ], - "exports": [], - "totalLines": 1076, - "hasStructuralAnalysis": true - }, - "tests/e2e/user-journeys.spec.ts": { - "filePath": "tests/e2e/user-journeys.spec.ts", - "contentHash": "69ed0ab30927877ba62f86bd30385ed0ed3d9fc6e9c1f3a02cda3578fe1261a5", - "functions": [ - { - "name": "pressCtrlShiftDigit", - "params": [ - "page", - "digit" - ], - "exported": false, - "lineCount": 13 - }, - { - "name": "skipOnboarding", - "params": [ - "page" - ], - "exported": false, - "lineCount": 6 - }, - { - "name": "waitForApp", - "params": [ - "page" - ], - "exported": false, - "lineCount": 12 - }, - { - "name": "isOnboarding", - "params": [ - "page" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 8 - }, - { - "name": "handleOnboarding", - "params": [ - "page" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 6 - } - ], - "classes": [], - "imports": [ - { - "source": "@playwright/test", - "specifiers": [ - "test", - "expect", - "Page" - ] - } - ], - "exports": [], - "totalLines": 596, - "hasStructuralAnalysis": true - }, - "tests/e2e/waggle-complete.spec.ts": { - "filePath": "tests/e2e/waggle-complete.spec.ts", - "contentHash": "29b1e2473bf9397752c710a469b9bb68905eb4c04652c8bf91cf1e217cb1c9b5", - "functions": [ - { - "name": "waitForApp", - "params": [ - "page" - ], - "exported": false, - "lineCount": 7 - }, - { - "name": "skipOnboarding", - "params": [ - "page" - ], - "exported": false, - "lineCount": 5 - }, - { - "name": "dismissLoginBriefing", - "params": [ - "page" - ], - "exported": false, - "lineCount": 7 - }, - { - "name": "navigateTo", - "params": [ - "page", - "view" - ], - "exported": false, - "lineCount": 16 - } - ], - "classes": [], - "imports": [ - { - "source": "@playwright/test", - "specifiers": [ - "test", - "expect", - "Page", - "APIRequestContext" - ] - } - ], - "exports": [], - "totalLines": 1115, - "hasStructuralAnalysis": true - }, - "tests/hive-950-token-guard.test.ts": { - "filePath": "tests/hive-950-token-guard.test.ts", - "contentHash": "7e0ddbda514a33045f6d750e169e9bc5f626c2347f6aef1ea0bfa9cc9b478d54", - "functions": [ - { - "name": "asRepoPath", - "params": [ - "absolute" - ], - "returnType": "string", - "exported": false, - "lineCount": 3 - } - ], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "fast-glob", - "specifiers": [ - "fg" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "readFileSync" - ] - }, - { - "source": "node:path", - "specifiers": [ - "relative", - "resolve" - ] - } - ], - "exports": [], - "totalLines": 109, - "hasStructuralAnalysis": true - }, - "tests/integration/m3-full-stack.test.ts": { - "filePath": "tests/integration/m3-full-stack.test.ts", - "contentHash": "5512d47f507e9ecf6f7db7c1ada6c0f56dfeeeed412888cf936ecf92be1dad42", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeAll", - "afterAll" - ] - }, - { - "source": "fastify", - "specifiers": [ - "FastifyRequest", - "FastifyReply" - ] - }, - { - "source": "../../packages/server/src/index.js", - "specifiers": [ - "buildServer" - ] - }, - { - "source": "../../packages/server/src/db/schema.js", - "specifiers": [ - "users", - "teams", - "teamMembers", - "tasks", - "messages", - "teamEntities", - "teamResources", - "agentAuditLog" - ] - }, - { - "source": "drizzle-orm", - "specifiers": [ - "sql" - ] - } - ], - "exports": [], - "totalLines": 257, - "hasStructuralAnalysis": true - }, - "tests/login-flow.spec.ts": { - "filePath": "tests/login-flow.spec.ts", - "contentHash": "bb7dcb3f05248c858602f1b638c0d0b60dbd84151339602a8bb85706c3598cd6", - "functions": [], - "classes": [], - "imports": [ - { - "source": "@playwright/test", - "specifiers": [ - "test", - "expect" - ] - } - ], - "exports": [], - "totalLines": 47, - "hasStructuralAnalysis": true - }, - "tests/oss-subtree-split.test.ts": { - "filePath": "tests/oss-subtree-split.test.ts", - "contentHash": "8bd8b7bf33e49b563f9e1d1ab7a6dac2c1aebf60226c28f47f0338ff0b14ddd8", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "readFileSync", - "existsSync", - "statSync", - "readdirSync" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join", - "resolve" - ] - } - ], - "exports": [], - "totalLines": 147, - "hasStructuralAnalysis": true - }, - "tests/placeholder-audit.test.ts": { - "filePath": "tests/placeholder-audit.test.ts", - "contentHash": "15469901b51e4604a0beb2552c8fef321ff1a97df117c9db2a6fd04ec88f1beb", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect" - ] - }, - { - "source": "fast-glob", - "specifiers": [ - "fg" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "readFileSync" - ] - }, - { - "source": "node:path", - "specifiers": [ - "resolve" - ] - } - ], - "exports": [], - "totalLines": 78, - "hasStructuralAnalysis": true - }, - "tests/sidecar/mcp-manager.test.ts": { - "filePath": "tests/sidecar/mcp-manager.test.ts", - "contentHash": "816a5549c48589614cd59dbf117c3e5818baa1f504a73f0cd00df4addfab8a2e", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach" - ] - }, - { - "source": "../../sidecar/src/mcp-manager.js", - "specifiers": [ - "McpManager", - "McpServerConfig" - ] - } - ], - "exports": [], - "totalLines": 62, - "hasStructuralAnalysis": true - }, - "tests/sidecar/rpc-handler.test.ts": { - "filePath": "tests/sidecar/rpc-handler.test.ts", - "contentHash": "08b822fee131080e482578eb32aa159497a7dee399b921de7790ea127c7bf1b3", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "../../sidecar/src/rpc-handler.js", - "specifiers": [ - "RpcHandler" - ] - }, - { - "source": "@waggle/core", - "specifiers": [ - "MindDB", - "IdentityLayer" - ] - }, - { - "source": "fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "path", - "specifiers": [ - "path" - ] - }, - { - "source": "os", - "specifiers": [ - "os" - ] - } - ], - "exports": [], - "totalLines": 108, - "hasStructuralAnalysis": true - }, - "tests/sidecar/skill-loader.test.ts": { - "filePath": "tests/sidecar/skill-loader.test.ts", - "contentHash": "644852946374751146ec7f74c5e81d817a74ca3e6932cf52bd6f92d3d0504ed4", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest", - "specifiers": [ - "describe", - "it", - "expect", - "beforeEach", - "afterEach" - ] - }, - { - "source": "../../sidecar/src/skill-loader.js", - "specifiers": [ - "SkillLoader", - "Skill" - ] - }, - { - "source": "fs", - "specifiers": [ - "fs" - ] - }, - { - "source": "path", - "specifiers": [ - "path" - ] - }, - { - "source": "os", - "specifiers": [ - "os" - ] - } - ], - "exports": [], - "totalLines": 121, - "hasStructuralAnalysis": true - }, - "tests/vision/_helpers.ts": { - "filePath": "tests/vision/_helpers.ts", - "contentHash": "869513d6a4683cb8ce241d961f38761eb4ca8ad25496be9bbc628879bf27f467", - "functions": [ - { - "name": "attachConsoleCapture", - "params": [ - "page" - ], - "returnType": "ConsoleCapture", - "exported": true, - "lineCount": 21 - }, - { - "name": "dismissOverlay", - "params": [ - "page" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 14 - }, - { - "name": "gotoDesktop", - "params": [ - "page" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 5 - }, - { - "name": "setTheme", - "params": [ - "page", - "theme" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 8 - }, - { - "name": "openAppViaDock", - "params": [ - "page", - "label" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 27 - }, - { - "name": "pressShortcut", - "params": [ - "page", - "opts" - ], - "returnType": "Promise", - "exported": true, - "lineCount": 13 - } - ], - "classes": [], - "imports": [ - { - "source": "@playwright/test", - "specifiers": [ - "Page" - ] - } - ], - "exports": [ - "BASE", - "attachConsoleCapture", - "dismissOverlay", - "gotoDesktop", - "setTheme", - "openAppViaDock", - "pressShortcut" - ], - "totalLines": 136, - "hasStructuralAnalysis": true - }, - "tests/vision/capture.spec.ts": { - "filePath": "tests/vision/capture.spec.ts", - "contentHash": "6b83169bf15b2dd70ce5484002e680dc594628829d5235586237f044eea0bf8d", - "functions": [ - { - "name": "write", - "params": [ - "surface", - "theme", - "nav", - "cap" - ], - "exported": false, - "lineCount": 15 - } - ], - "classes": [], - "imports": [ - { - "source": "@playwright/test", - "specifiers": [ - "test", - "expect" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "mkdirSync", - "writeFileSync" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join" - ] - }, - { - "source": "./_helpers", - "specifiers": [ - "attachConsoleCapture", - "gotoDesktop", - "openAppViaDock", - "setTheme", - "pressShortcut", - "ConsoleCapture" - ] - } - ], - "exports": [], - "totalLines": 208, - "hasStructuralAnalysis": true - }, - "tests/vision/personas.spec.ts": { - "filePath": "tests/vision/personas.spec.ts", - "contentHash": "fe719f8d7c7f11d7e2bd2fb07f5f5715c6886be91f679dd84e3ab3ec98c35e11", - "functions": [ - { - "name": "sendAndWait", - "params": [ - "page", - "text" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 43 - } - ], - "classes": [], - "imports": [ - { - "source": "@playwright/test", - "specifiers": [ - "test", - "expect" - ] - }, - { - "source": "node:fs", - "specifiers": [ - "mkdirSync", - "writeFileSync" - ] - }, - { - "source": "node:path", - "specifiers": [ - "join" - ] - }, - { - "source": "./_helpers", - "specifiers": [ - "attachConsoleCapture", - "gotoDesktop", - "openAppViaDock", - "ConsoleCapture" - ] - } - ], - "exports": [], - "totalLines": 199, - "hasStructuralAnalysis": true - }, - "tests/vision/README.md": { - "filePath": "tests/vision/README.md", - "contentHash": "bbba372ee67d6ef71d9799d302a34a3097f0d2bfa1ce036ba4de02452f7b1761", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 76, - "hasStructuralAnalysis": true - }, - "tests/visual/r2-uat-mega.spec.ts": { - "filePath": "tests/visual/r2-uat-mega.spec.ts", - "contentHash": "850b00c999dc8900c3af86bab744fdeb881c10f9c10a2df7a80b894180dd3c24", - "functions": [ - { - "name": "setupPage", - "params": [ - "page", - "theme" - ], - "exported": false, - "lineCount": 9 - }, - { - "name": "clickNavView", - "params": [ - "page", - "viewName" - ], - "returnType": "Promise", - "exported": false, - "lineCount": 13 - } - ], - "classes": [], - "imports": [ - { - "source": "@playwright/test", - "specifiers": [ - "test", - "expect", - "Page" - ] - } - ], - "exports": [], - "totalLines": 220, - "hasStructuralAnalysis": true - }, - "tests/visual/views.spec.ts": { - "filePath": "tests/visual/views.spec.ts", - "contentHash": "ad73a8485c85d1c1e053eedc98168024cdd69753547e6da13944709723cadac4", - "functions": [ - { - "name": "waitForAppReady", - "params": [ - "page" - ], - "exported": false, - "lineCount": 10 - }, - { - "name": "navigateToView", - "params": [ - "page", - "navIndex" - ], - "exported": false, - "lineCount": 10 - }, - { - "name": "setTheme", - "params": [ - "page", - "mode" - ], - "exported": false, - "lineCount": 9 - } - ], - "classes": [], - "imports": [ - { - "source": "@playwright/test", - "specifiers": [ - "test", - "expect" - ] - } - ], - "exports": [], - "totalLines": 95, - "hasStructuralAnalysis": true - }, - "tsconfig.base.json": { - "filePath": "tsconfig.base.json", - "contentHash": "42d8fc610431762284da810dd97b1cc4d900a398cb456f9a47f5eea0d52975bb", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 25, - "hasStructuralAnalysis": true - }, - "tsconfig.json": { - "filePath": "tsconfig.json", - "contentHash": "b805f8391a30df775409620992e4cfe83d5f124b98a81b3988413619e7015f65", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 14, - "hasStructuralAnalysis": true - }, - "vitest.aliases.ts": { - "filePath": "vitest.aliases.ts", - "contentHash": "337b6ee81da91deec89478be7a41d6c5fc27cb407fdbe5cd0fd13037e40a0b9b", - "functions": [ - { - "name": "waggleSrcAliases", - "params": [ - "repoRoot" - ], - "returnType": "Record", - "exported": true, - "lineCount": 11 - } - ], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "readdirSync", - "existsSync" - ] - }, - { - "source": "node:path", - "specifiers": [ - "resolve", - "join" - ] - } - ], - "exports": [ - "waggleSrcAliases" - ], - "totalLines": 36, - "hasStructuralAnalysis": true - }, - "vitest.config.ts": { - "filePath": "vitest.config.ts", - "contentHash": "410c04f81b84df16885e2d5b60d775e595cba2c5d85fd3e8578c0733d2d90950", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest/config", - "specifiers": [ - "defineConfig" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "./vitest.infra-suites", - "specifiers": [ - "INFRA_TEST_SUITES" - ] - }, - { - "source": "./vitest.aliases", - "specifiers": [ - "waggleSrcAliases" - ] - } - ], - "exports": [], - "totalLines": 48, - "hasStructuralAnalysis": true - }, - "vitest.infra-suites.ts": { - "filePath": "vitest.infra-suites.ts", - "contentHash": "1ea0b05262d81e4816615c0a738f2b7890d12d32401f02a0552ff5feef1c29ac", - "functions": [], - "classes": [], - "imports": [], - "exports": [ - "INFRA_TEST_SUITES" - ], - "totalLines": 36, - "hasStructuralAnalysis": true - }, - "vitest.infra.config.ts": { - "filePath": "vitest.infra.config.ts", - "contentHash": "b4fd57761572e9d716e89506ae022a428ca0fba69217f0912ceae2b963018226", - "functions": [], - "classes": [], - "imports": [ - { - "source": "vitest/config", - "specifiers": [ - "defineConfig" - ] - }, - { - "source": "node:path", - "specifiers": [ - "path" - ] - }, - { - "source": "./vitest.infra-suites", - "specifiers": [ - "INFRA_TEST_SUITES" - ] - }, - { - "source": "./vitest.aliases", - "specifiers": [ - "waggleSrcAliases" - ] - } - ], - "exports": [], - "totalLines": 30, - "hasStructuralAnalysis": true - }, - "vitest.setup.ts": { - "filePath": "vitest.setup.ts", - "contentHash": "99186db50c12deb5ab7a9c109bbfb74817683113ff36206182f0f931d9ba08ab", - "functions": [], - "classes": [], - "imports": [ - { - "source": "node:fs", - "specifiers": [ - "readFileSync" - ] - }, - { - "source": "node:path", - "specifiers": [ - "resolve" - ] - } - ], - "exports": [], - "totalLines": 80, - "hasStructuralAnalysis": true - }, - "Waggle_Competitive_Intelligence_Full_Landscape_March_2026.docx": { - "filePath": "Waggle_Competitive_Intelligence_Full_Landscape_March_2026.docx", - "contentHash": "b37fe0a13fb439c86f8186ef6cb0ababe4e6b2c9499e7d39a7ec72a16e966f1f", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 151, - "hasStructuralAnalysis": false - }, - "waggle-cowork/claude-code-deep-dive.md": { - "filePath": "waggle-cowork/claude-code-deep-dive.md", - "contentHash": "1aad3818b9e92972c3c8ec6f3265bd39e288b09d0540edca20d4a1edfffd7b26", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 495, - "hasStructuralAnalysis": true - }, - "waggle-cowork/claude-code-source-analysis.md": { - "filePath": "waggle-cowork/claude-code-source-analysis.md", - "contentHash": "ef798e64b676e083ebdac278bb4ae102a5dbb4dc29b11e9d691d919139919148", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 185, - "hasStructuralAnalysis": true - }, - "waggle-cowork/system-prompt-comparison.md": { - "filePath": "waggle-cowork/system-prompt-comparison.md", - "contentHash": "933b757ae41cad04e96b59d3f434411f98fcaf4f22e65342d9972cc33c1d28e7", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 338, - "hasStructuralAnalysis": true - }, - "waggle-cowork/waggle-os-improvement-plan.md": { - "filePath": "waggle-cowork/waggle-os-improvement-plan.md", - "contentHash": "1e2aa4b3d711742dbef66ed731e9f75bce56afe0b679d2d874e05ffbaee32a34", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 370, - "hasStructuralAnalysis": true - }, - "waggle-cowork/waggle-prompt-improvement-plan.md": { - "filePath": "waggle-cowork/waggle-prompt-improvement-plan.md", - "contentHash": "267db486f062578170a76485a1434045c6ca455d167ca186603cb168f32406f7", - "functions": [], - "classes": [], - "imports": [], - "exports": [], - "totalLines": 551, - "hasStructuralAnalysis": true - } - } -} \ No newline at end of file diff --git a/.understand-anything/intermediate/scan-result.json b/.understand-anything/intermediate/scan-result.json deleted file mode 100644 index 9736fe1..0000000 --- a/.understand-anything/intermediate/scan-result.json +++ /dev/null @@ -1,24793 +0,0 @@ -{ - "name": "waggle-os", - "description": "Waggle OS is a workspace-native AI agent platform with persistent memory, model-agnostic orchestration, and skill-extensible capabilities, delivered as a Tauri desktop app (React 19 + Vite) with a Fastify Node.js sidecar over an npm monorepo. Note: this project has over 100 source files; consider scoping analysis to a subdirectory for faster results.", - "languages": [ - "config", - "css", - "csv", - "dockerfile", - "docx", - "html", - "icns", - "javascript", - "json", - "jsonl", - "markdown", - "nsi", - "patch", - "powershell", - "python", - "rust", - "shell", - "sql", - "toml", - "txt", - "typescript", - "unknown", - "xml", - "yaml" - ], - "frameworks": [ - "React", - "Next", - "Vite", - "Vitest", - "Fastify", - "Tailwind CSS", - "Playwright", - "Tauri", - "Stripe", - "Docker", - "Docker Compose", - "GitHub Actions" - ], - "files": [ - { - "path": ".agents/skills/ax-agent-optimize/SKILL.md", - "language": "markdown", - "sizeLines": 338, - "fileCategory": "docs" - }, - { - "path": ".agents/skills/ax-agent/SKILL.md", - "language": "markdown", - "sizeLines": 1090, - "fileCategory": "docs" - }, - { - "path": ".agents/skills/ax-ai/SKILL.md", - "language": "markdown", - "sizeLines": 245, - "fileCategory": "docs" - }, - { - "path": ".agents/skills/ax-flow/SKILL.md", - "language": "markdown", - "sizeLines": 402, - "fileCategory": "docs" - }, - { - "path": ".agents/skills/ax-gen/SKILL.md", - "language": "markdown", - "sizeLines": 323, - "fileCategory": "docs" - }, - { - "path": ".agents/skills/ax-gepa/SKILL.md", - "language": "markdown", - "sizeLines": 260, - "fileCategory": "docs" - }, - { - "path": ".agents/skills/ax-learn/SKILL.md", - "language": "markdown", - "sizeLines": 268, - "fileCategory": "docs" - }, - { - "path": ".agents/skills/ax-signature/SKILL.md", - "language": "markdown", - "sizeLines": 192, - "fileCategory": "docs" - }, - { - "path": ".agents/skills/ax/SKILL.md", - "language": "markdown", - "sizeLines": 292, - "fileCategory": "docs" - }, - { - "path": ".dockerignore", - "language": "unknown", - "sizeLines": 18, - "fileCategory": "infra" - }, - { - "path": ".env.example", - "language": "config", - "sizeLines": 55, - "fileCategory": "config" - }, - { - "path": ".gitattributes", - "language": "unknown", - "sizeLines": 56, - "fileCategory": "code" - }, - { - "path": ".github/sync.md", - "language": "markdown", - "sizeLines": 242, - "fileCategory": "docs" - }, - { - "path": ".github/workflows/ci.yml", - "language": "yaml", - "sizeLines": 91, - "fileCategory": "infra" - }, - { - "path": ".github/workflows/deploy-www.yml", - "language": "yaml", - "sizeLines": 40, - "fileCategory": "infra" - }, - { - "path": ".github/workflows/hive-mind-cli-cross-platform.yml", - "language": "yaml", - "sizeLines": 101, - "fileCategory": "infra" - }, - { - "path": ".github/workflows/mind-parity-check.yml", - "language": "yaml", - "sizeLines": 178, - "fileCategory": "infra" - }, - { - "path": ".github/workflows/release.yml", - "language": "yaml", - "sizeLines": 155, - "fileCategory": "infra" - }, - { - "path": ".github/workflows/sync-mind.yml", - "language": "yaml", - "sizeLines": 230, - "fileCategory": "infra" - }, - { - "path": ".github/workflows/tauri-build-pr.yml", - "language": "yaml", - "sizeLines": 163, - "fileCategory": "infra" - }, - { - "path": ".lovable/plan.md", - "language": "markdown", - "sizeLines": 23, - "fileCategory": "docs" - }, - { - "path": ".parity-allowlist", - "language": "unknown", - "sizeLines": 29, - "fileCategory": "code" - }, - { - "path": ".understand-anything/.understandignore", - "language": "unknown", - "sizeLines": 191, - "fileCategory": "code" - }, - { - "path": "app/components.json", - "language": "json", - "sizeLines": 25, - "fileCategory": "config" - }, - { - "path": "app/icons/ICONS-README.txt", - "language": "txt", - "sizeLines": 25, - "fileCategory": "docs" - }, - { - "path": "app/index.html", - "language": "html", - "sizeLines": 13, - "fileCategory": "markup" - }, - { - "path": "app/package.json", - "language": "json", - "sizeLines": 45, - "fileCategory": "config" - }, - { - "path": "app/scripts/apply-signing-config.mjs", - "language": "javascript", - "sizeLines": 130, - "fileCategory": "code" - }, - { - "path": "app/scripts/bundle-runtimes.test.ts", - "language": "typescript", - "sizeLines": 180, - "fileCategory": "code" - }, - { - "path": "app/scripts/bundle-runtimes.ts", - "language": "typescript", - "sizeLines": 166, - "fileCategory": "code" - }, - { - "path": "app/scripts/bundle-utils.ts", - "language": "typescript", - "sizeLines": 123, - "fileCategory": "code" - }, - { - "path": "app/scripts/installer-config.test.ts", - "language": "typescript", - "sizeLines": 263, - "fileCategory": "code" - }, - { - "path": "app/scripts/installer-config.ts", - "language": "typescript", - "sizeLines": 164, - "fileCategory": "code" - }, - { - "path": "app/scripts/sign-macos-adhoc.sh", - "language": "shell", - "sizeLines": 58, - "fileCategory": "script" - }, - { - "path": "app/scripts/sign-windows-pilot.ps1", - "language": "powershell", - "sizeLines": 203, - "fileCategory": "script" - }, - { - "path": "app/scripts/signing-config.test.ts", - "language": "typescript", - "sizeLines": 177, - "fileCategory": "code" - }, - { - "path": "app/scripts/signing-config.ts", - "language": "typescript", - "sizeLines": 147, - "fileCategory": "code" - }, - { - "path": "app/src-tauri/.cargo/config.toml", - "language": "toml", - "sizeLines": 17, - "fileCategory": "config" - }, - { - "path": "app/src-tauri/build.rs", - "language": "rust", - "sizeLines": 3, - "fileCategory": "code" - }, - { - "path": "app/src-tauri/capabilities/default.json", - "language": "json", - "sizeLines": 13, - "fileCategory": "config" - }, - { - "path": "app/src-tauri/Cargo.toml", - "language": "toml", - "sizeLines": 29, - "fileCategory": "config" - }, - { - "path": "app/src-tauri/gen/schemas/acl-manifests.json", - "language": "json", - "sizeLines": 0, - "fileCategory": "config" - }, - { - "path": "app/src-tauri/gen/schemas/capabilities.json", - "language": "json", - "sizeLines": 0, - "fileCategory": "config" - }, - { - "path": "app/src-tauri/gen/schemas/desktop-schema.json", - "language": "json", - "sizeLines": 2989, - "fileCategory": "config" - }, - { - "path": "app/src-tauri/gen/schemas/windows-schema.json", - "language": "json", - "sizeLines": 2989, - "fileCategory": "config" - }, - { - "path": "app/src-tauri/icons/android/mipmap-anydpi-v26/ic_launcher.xml", - "language": "xml", - "sizeLines": 4, - "fileCategory": "config" - }, - { - "path": "app/src-tauri/icons/android/values/ic_launcher_background.xml", - "language": "xml", - "sizeLines": 3, - "fileCategory": "config" - }, - { - "path": "app/src-tauri/icons/icon.icns", - "language": "icns", - "sizeLines": 1010, - "fileCategory": "code" - }, - { - "path": "app/src-tauri/nsis/installer.nsi", - "language": "nsi", - "sizeLines": 69, - "fileCategory": "code" - }, - { - "path": "app/src-tauri/resources/.gitkeep", - "language": "unknown", - "sizeLines": 0, - "fileCategory": "code" - }, - { - "path": "app/src-tauri/resources/native/.gitkeep", - "language": "unknown", - "sizeLines": 0, - "fileCategory": "code" - }, - { - "path": "app/src-tauri/resources/native/onnxruntime/.gitkeep", - "language": "unknown", - "sizeLines": 0, - "fileCategory": "code" - }, - { - "path": "app/src-tauri/src/commands/agent.rs", - "language": "rust", - "sizeLines": 268, - "fileCategory": "code" - }, - { - "path": "app/src-tauri/src/commands/http.rs", - "language": "rust", - "sizeLines": 43, - "fileCategory": "code" - }, - { - "path": "app/src-tauri/src/commands/memory.rs", - "language": "rust", - "sizeLines": 135, - "fileCategory": "code" - }, - { - "path": "app/src-tauri/src/commands/mod.rs", - "language": "rust", - "sizeLines": 8, - "fileCategory": "code" - }, - { - "path": "app/src-tauri/src/commands/onboarding.rs", - "language": "rust", - "sizeLines": 120, - "fileCategory": "code" - }, - { - "path": "app/src-tauri/src/commands/wiki.rs", - "language": "rust", - "sizeLines": 75, - "fileCategory": "code" - }, - { - "path": "app/src-tauri/src/lib.rs", - "language": "rust", - "sizeLines": 157, - "fileCategory": "code" - }, - { - "path": "app/src-tauri/src/main.rs", - "language": "rust", - "sizeLines": 6, - "fileCategory": "code" - }, - { - "path": "app/src-tauri/src/service.rs", - "language": "rust", - "sizeLines": 258, - "fileCategory": "code" - }, - { - "path": "app/src-tauri/src/tray.rs", - "language": "rust", - "sizeLines": 85, - "fileCategory": "code" - }, - { - "path": "app/src-tauri/tauri.build-override.conf.json", - "language": "json", - "sizeLines": 10, - "fileCategory": "config" - }, - { - "path": "app/src-tauri/tauri.conf.json", - "language": "json", - "sizeLines": 63, - "fileCategory": "config" - }, - { - "path": "app/src-tauri/tauri.dev-override.conf.json", - "language": "json", - "sizeLines": 10, - "fileCategory": "config" - }, - { - "path": "app/tailwind.config.ts", - "language": "typescript", - "sizeLines": 9, - "fileCategory": "code" - }, - { - "path": "app/tests/auto-update.test.ts", - "language": "typescript", - "sizeLines": 147, - "fileCategory": "code" - }, - { - "path": "app/tests/cockpit-agent-intelligence.test.ts", - "language": "typescript", - "sizeLines": 92, - "fileCategory": "code" - }, - { - "path": "app/tests/e2e/chat.test.ts", - "language": "typescript", - "sizeLines": 314, - "fileCategory": "code" - }, - { - "path": "app/tests/e2e/startup.test.ts", - "language": "typescript", - "sizeLines": 132, - "fileCategory": "code" - }, - { - "path": "app/tests/e2e/test-utils.ts", - "language": "typescript", - "sizeLines": 22, - "fileCategory": "code" - }, - { - "path": "app/tests/e2e/workspaces.test.ts", - "language": "typescript", - "sizeLines": 332, - "fileCategory": "code" - }, - { - "path": "app/tsconfig.json", - "language": "json", - "sizeLines": 34, - "fileCategory": "config" - }, - { - "path": "app/vite.config.ts", - "language": "typescript", - "sizeLines": 47, - "fileCategory": "code" - }, - { - "path": "apps/browser-ext/background.js", - "language": "javascript", - "sizeLines": 86, - "fileCategory": "code" - }, - { - "path": "apps/browser-ext/content.js", - "language": "javascript", - "sizeLines": 27, - "fileCategory": "code" - }, - { - "path": "apps/browser-ext/manifest.json", - "language": "json", - "sizeLines": 30, - "fileCategory": "config" - }, - { - "path": "apps/browser-ext/popup.html", - "language": "html", - "sizeLines": 90, - "fileCategory": "markup" - }, - { - "path": "apps/browser-ext/popup.js", - "language": "javascript", - "sizeLines": 90, - "fileCategory": "code" - }, - { - "path": "apps/browser-ext/README.md", - "language": "markdown", - "sizeLines": 68, - "fileCategory": "docs" - }, - { - "path": "apps/web/.env.example", - "language": "config", - "sizeLines": 21, - "fileCategory": "config" - }, - { - "path": "apps/web/components.json", - "language": "json", - "sizeLines": 20, - "fileCategory": "config" - }, - { - "path": "apps/web/eslint.config.js", - "language": "javascript", - "sizeLines": 26, - "fileCategory": "code" - }, - { - "path": "apps/web/index.html", - "language": "html", - "sizeLines": 21, - "fileCategory": "markup" - }, - { - "path": "apps/web/package.json", - "language": "json", - "sizeLines": 100, - "fileCategory": "config" - }, - { - "path": "apps/web/playwright-fixture.ts", - "language": "typescript", - "sizeLines": 3, - "fileCategory": "code" - }, - { - "path": "apps/web/playwright.config.ts", - "language": "typescript", - "sizeLines": 10, - "fileCategory": "code" - }, - { - "path": "apps/web/postcss.config.js", - "language": "javascript", - "sizeLines": 6, - "fileCategory": "code" - }, - { - "path": "apps/web/public/robots.txt", - "language": "txt", - "sizeLines": 14, - "fileCategory": "docs" - }, - { - "path": "apps/web/src/App.tsx", - "language": "typescript", - "sizeLines": 128, - "fileCategory": "code" - }, - { - "path": "apps/web/src/assets/personas/README.md", - "language": "markdown", - "sizeLines": 50, - "fileCategory": "docs" - }, - { - "path": "apps/web/src/boot-connect.ts", - "language": "typescript", - "sizeLines": 18, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/NavLink.tsx", - "language": "typescript", - "sizeLines": 28, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/agents/AgentBuilder.tsx", - "language": "typescript", - "sizeLines": 398, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/agents/AgentCard.tsx", - "language": "typescript", - "sizeLines": 48, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/agents/AgentCenterDetail.tsx", - "language": "typescript", - "sizeLines": 169, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/agents/AgentCenterRow.tsx", - "language": "typescript", - "sizeLines": 75, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/agents/AgentDetail.tsx", - "language": "typescript", - "sizeLines": 108, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/agents/CreateAgentForm.tsx", - "language": "typescript", - "sizeLines": 165, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/agents/CreateGroupForm.tsx", - "language": "typescript", - "sizeLines": 175, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/agents/GroupCard.tsx", - "language": "typescript", - "sizeLines": 47, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/agents/GroupDetail.tsx", - "language": "typescript", - "sizeLines": 220, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/agents/GroupExecutionPanel.tsx", - "language": "typescript", - "sizeLines": 172, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/agents/TemplatesView.tsx", - "language": "typescript", - "sizeLines": 371, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/agents/types.ts", - "language": "typescript", - "sizeLines": 59, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/agents/WorkspacePickerDialog.tsx", - "language": "typescript", - "sizeLines": 69, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/AgentsApp.tsx", - "language": "typescript", - "sizeLines": 388, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/AllWorkspacesApp.test.tsx", - "language": "typescript", - "sizeLines": 132, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/AllWorkspacesApp.tsx", - "language": "typescript", - "sizeLines": 384, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/ApprovalsApp.tsx", - "language": "typescript", - "sizeLines": 327, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/ArtifactCenterApp.tsx", - "language": "typescript", - "sizeLines": 428, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/AutomationCenterApp.tsx", - "language": "typescript", - "sizeLines": 482, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/automations/AutomationBuilder.tsx", - "language": "typescript", - "sizeLines": 531, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/automations/AutomationLogList.tsx", - "language": "typescript", - "sizeLines": 58, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/automations/AutomationRow.tsx", - "language": "typescript", - "sizeLines": 89, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/BackupApp.tsx", - "language": "typescript", - "sizeLines": 192, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/BenchmarkApp.test.tsx", - "language": "typescript", - "sizeLines": 76, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/BenchmarkApp.tsx", - "language": "typescript", - "sizeLines": 411, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/CapabilitiesApp.tsx", - "language": "typescript", - "sizeLines": 632, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/chat-blocks/ArtifactBlock.tsx", - "language": "typescript", - "sizeLines": 78, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/chat-blocks/BlockRenderer.tsx", - "language": "typescript", - "sizeLines": 106, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/chat-blocks/capability-request-parser.test.ts", - "language": "typescript", - "sizeLines": 31, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/chat-blocks/capability-request-parser.ts", - "language": "typescript", - "sizeLines": 92, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/chat-blocks/CapabilityRequestCard.tsx", - "language": "typescript", - "sizeLines": 233, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/chat-blocks/ChatWorkCanvas.tsx", - "language": "typescript", - "sizeLines": 122, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/chat-blocks/index.ts", - "language": "typescript", - "sizeLines": 5, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/chat-blocks/ModelSwitchBlock.tsx", - "language": "typescript", - "sizeLines": 17, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/chat-blocks/StepBlock.tsx", - "language": "typescript", - "sizeLines": 23, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/chat-blocks/TextBlock.test.tsx", - "language": "typescript", - "sizeLines": 78, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/chat-blocks/TextBlock.tsx", - "language": "typescript", - "sizeLines": 57, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/chat-blocks/ToolUseBlock.tsx", - "language": "typescript", - "sizeLines": 73, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/ChatApp.tsx", - "language": "typescript", - "sizeLines": 1280, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/ChatWindowInstance.tsx", - "language": "typescript", - "sizeLines": 263, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/cockpit/ComplianceDashboard.tsx", - "language": "typescript", - "sizeLines": 554, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/cockpit/ComplianceTemplateModal.tsx", - "language": "typescript", - "sizeLines": 379, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/CockpitApp.tsx", - "language": "typescript", - "sizeLines": 320, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/connectors/brand-identity.ts", - "language": "typescript", - "sizeLines": 409, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/connectors/BrandTile.tsx", - "language": "typescript", - "sizeLines": 128, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/connectors/ConnectorCard.tsx", - "language": "typescript", - "sizeLines": 253, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/connectors/mcp-registry.ts", - "language": "typescript", - "sizeLines": 16, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/connectors/McpCatalog.tsx", - "language": "typescript", - "sizeLines": 328, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/connectors/McpServerCard.tsx", - "language": "typescript", - "sizeLines": 171, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/ConnectorsApp.tsx", - "language": "typescript", - "sizeLines": 392, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/DashboardApp.tsx", - "language": "typescript", - "sizeLines": 305, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/EventsApp.tsx", - "language": "typescript", - "sizeLines": 456, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/extend/AgentSearchBox.tsx", - "language": "typescript", - "sizeLines": 177, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/extend/ExtensionCard.tsx", - "language": "typescript", - "sizeLines": 170, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/extend/InstallAuditPanel.tsx", - "language": "typescript", - "sizeLines": 166, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/files/file-utils.ts", - "language": "typescript", - "sizeLines": 60, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/files/FileActions.tsx", - "language": "typescript", - "sizeLines": 184, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/files/FilePreview.tsx", - "language": "typescript", - "sizeLines": 94, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/files/files-tabs.test.ts", - "language": "typescript", - "sizeLines": 26, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/files/files-tabs.ts", - "language": "typescript", - "sizeLines": 31, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/files/FileTree.tsx", - "language": "typescript", - "sizeLines": 57, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/files/FileUploadZone.tsx", - "language": "typescript", - "sizeLines": 32, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/files/SyntaxPreview.tsx", - "language": "typescript", - "sizeLines": 168, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/files/WorkspaceRail.tsx", - "language": "typescript", - "sizeLines": 103, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/FilesApp.tsx", - "language": "typescript", - "sizeLines": 801, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/FilesAppTabs.tsx", - "language": "typescript", - "sizeLines": 99, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/HomeCockpit.tsx", - "language": "typescript", - "sizeLines": 596, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/LauncherApp.test.tsx", - "language": "typescript", - "sizeLines": 105, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/LauncherApp.tsx", - "language": "typescript", - "sizeLines": 745, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/MarketplaceApp.tsx", - "language": "typescript", - "sizeLines": 336, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/mcp/AddCustomMcpForm.tsx", - "language": "typescript", - "sizeLines": 129, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/mcp/InstalledMcpList.tsx", - "language": "typescript", - "sizeLines": 187, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/mcp/mcp-hub-types.ts", - "language": "typescript", - "sizeLines": 43, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/mcp/McpScopeDialog.tsx", - "language": "typescript", - "sizeLines": 109, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/MCPHubApp.tsx", - "language": "typescript", - "sizeLines": 424, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/memory/EvolutionTab.test.tsx", - "language": "typescript", - "sizeLines": 188, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/memory/EvolutionTab.tsx", - "language": "typescript", - "sizeLines": 1296, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/memory/HarvestTab.tsx", - "language": "typescript", - "sizeLines": 685, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/memory/ImportReminderBanner.tsx", - "language": "typescript", - "sizeLines": 167, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/memory/KnowledgeGraphViewer.tsx", - "language": "typescript", - "sizeLines": 798, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/memory/MemoryCard.tsx", - "language": "typescript", - "sizeLines": 84, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/memory/MemoryCenterTab.tsx", - "language": "typescript", - "sizeLines": 417, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/memory/MemoryTrustManage.tsx", - "language": "typescript", - "sizeLines": 519, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/memory/MemoryTrustWhy.tsx", - "language": "typescript", - "sizeLines": 190, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/memory/TimelineTab.tsx", - "language": "typescript", - "sizeLines": 279, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/memory/WeaverPanel.tsx", - "language": "typescript", - "sizeLines": 160, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/memory/WikiTab.tsx", - "language": "typescript", - "sizeLines": 455, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/MemoryCenterApp.tsx", - "language": "typescript", - "sizeLines": 187, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/MemoryTrust.tsx", - "language": "typescript", - "sizeLines": 224, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/MissionControlApp.tsx", - "language": "typescript", - "sizeLines": 280, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/PaymentSuccessApp.tsx", - "language": "typescript", - "sizeLines": 98, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/PlatformApp.test.tsx", - "language": "typescript", - "sizeLines": 64, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/PlatformApp.tsx", - "language": "typescript", - "sizeLines": 363, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/power/power-primitives.test.tsx", - "language": "typescript", - "sizeLines": 99, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/power/power-primitives.tsx", - "language": "typescript", - "sizeLines": 192, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/RoomApp.test.tsx", - "language": "typescript", - "sizeLines": 121, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/RoomApp.tsx", - "language": "typescript", - "sizeLines": 323, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/SettingsApp.tsx", - "language": "typescript", - "sizeLines": 1089, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/skills/SkillBuilder.tsx", - "language": "typescript", - "sizeLines": 307, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/skills/SkillEditorDrawer.tsx", - "language": "typescript", - "sizeLines": 91, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/skills/SkillRow.tsx", - "language": "typescript", - "sizeLines": 60, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/StorageAndFilesApp.test.tsx", - "language": "typescript", - "sizeLines": 122, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/StorageAndFilesApp.tsx", - "language": "typescript", - "sizeLines": 125, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/StorageApp.tsx", - "language": "typescript", - "sizeLines": 307, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/TeamGovernanceApp.tsx", - "language": "typescript", - "sizeLines": 44, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/TelemetryApp.tsx", - "language": "typescript", - "sizeLines": 314, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/TimelineApp.tsx", - "language": "typescript", - "sizeLines": 241, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/UserProfileApp.test.tsx", - "language": "typescript", - "sizeLines": 72, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/UserProfileApp.tsx", - "language": "typescript", - "sizeLines": 585, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/VaultApp.tsx", - "language": "typescript", - "sizeLines": 397, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/VoiceApp.tsx", - "language": "typescript", - "sizeLines": 11, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/WaggleDanceApp.tsx", - "language": "typescript", - "sizeLines": 201, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/workspace/TasksTab.tsx", - "language": "typescript", - "sizeLines": 241, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/apps/WorkspaceDesktopApp.tsx", - "language": "typescript", - "sizeLines": 809, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/AppShell.tsx", - "language": "typescript", - "sizeLines": 491, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/auth/AccountlessNotice.tsx", - "language": "typescript", - "sizeLines": 47, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/auth/AuthBrandPanel.tsx", - "language": "typescript", - "sizeLines": 63, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/auth/AuthScreen.tsx", - "language": "typescript", - "sizeLines": 23, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/auth/ClerkAuthForm.tsx", - "language": "typescript", - "sizeLines": 56, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/auth/EnterpriseCTA.tsx", - "language": "typescript", - "sizeLines": 24, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/billing/PlanCards.tsx", - "language": "typescript", - "sizeLines": 189, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/BootScreen.tsx", - "language": "typescript", - "sizeLines": 184, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/ChatHost.tsx", - "language": "typescript", - "sizeLines": 185, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/ContextMenu.tsx", - "language": "typescript", - "sizeLines": 92, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/ErrorBoundary.tsx", - "language": "typescript", - "sizeLines": 52, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/LockedFeature.tsx", - "language": "typescript", - "sizeLines": 30, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/model-gate/ModelGate.test.tsx", - "language": "typescript", - "sizeLines": 121, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/model-gate/ModelGate.tsx", - "language": "typescript", - "sizeLines": 307, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/model-gate/NoModelBanner.test.tsx", - "language": "typescript", - "sizeLines": 39, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/model-gate/NoModelBanner.tsx", - "language": "typescript", - "sizeLines": 40, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/ModelPilotCard.tsx", - "language": "typescript", - "sizeLines": 398, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/ModelSelector.tsx", - "language": "typescript", - "sizeLines": 141, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/overlays/CommandCenter.tsx", - "language": "typescript", - "sizeLines": 608, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/overlays/ContextRail.tsx", - "language": "typescript", - "sizeLines": 141, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/overlays/CreateWorkspaceDialog.tsx", - "language": "typescript", - "sizeLines": 1150, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/overlays/EraseDataDialog.tsx", - "language": "typescript", - "sizeLines": 242, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/overlays/KeyboardShortcutsHelp.tsx", - "language": "typescript", - "sizeLines": 91, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/overlays/LoginBriefing.tsx", - "language": "typescript", - "sizeLines": 424, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/overlays/NotificationInbox.tsx", - "language": "typescript", - "sizeLines": 91, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/overlays/onboarding/constants.ts", - "language": "typescript", - "sizeLines": 138, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/overlays/onboarding/curated-templates.test.ts", - "language": "typescript", - "sizeLines": 26, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/overlays/onboarding/FirstTaskStep.test.tsx", - "language": "typescript", - "sizeLines": 40, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/overlays/onboarding/FirstTaskStep.tsx", - "language": "typescript", - "sizeLines": 58, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/overlays/onboarding/ImportStep.tsx", - "language": "typescript", - "sizeLines": 200, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/overlays/onboarding/index.ts", - "language": "typescript", - "sizeLines": 21, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/overlays/onboarding/ModelGateStep.test.tsx", - "language": "typescript", - "sizeLines": 60, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/overlays/onboarding/ModelGateStep.tsx", - "language": "typescript", - "sizeLines": 63, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/overlays/onboarding/ReadyStep.tsx", - "language": "typescript", - "sizeLines": 46, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/overlays/onboarding/TemplateStep.test.tsx", - "language": "typescript", - "sizeLines": 32, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/overlays/onboarding/TemplateStep.tsx", - "language": "typescript", - "sizeLines": 60, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/overlays/onboarding/types.ts", - "language": "typescript", - "sizeLines": 137, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/overlays/onboarding/WelcomeStep.tsx", - "language": "typescript", - "sizeLines": 83, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/overlays/onboarding/WhoAreYouStep.tsx", - "language": "typescript", - "sizeLines": 183, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/overlays/onboarding/WorkspaceCreateStep.tsx", - "language": "typescript", - "sizeLines": 109, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/overlays/OnboardingTooltips.tsx", - "language": "typescript", - "sizeLines": 147, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/overlays/OnboardingWizard.tsx", - "language": "typescript", - "sizeLines": 408, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/overlays/PersonaSwitcher.tsx", - "language": "typescript", - "sizeLines": 372, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/overlays/SpawnAgentDialog.tsx", - "language": "typescript", - "sizeLines": 446, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/overlays/TrialExpiredModal.tsx", - "language": "typescript", - "sizeLines": 131, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/overlays/UpgradeModal.tsx", - "language": "typescript", - "sizeLines": 173, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/overlays/WorkspaceSwitcher.tsx", - "language": "typescript", - "sizeLines": 201, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/settings/CoverageCompassCard.tsx", - "language": "typescript", - "sizeLines": 105, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/settings/TelegramDigestCard.tsx", - "language": "typescript", - "sizeLines": 197, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/Sidebar.tsx", - "language": "typescript", - "sizeLines": 188, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/StatusBar.tsx", - "language": "typescript", - "sizeLines": 178, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/warm/ActivityStream.tsx", - "language": "typescript", - "sizeLines": 79, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/warm/AskBar.tsx", - "language": "typescript", - "sizeLines": 81, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/warm/ConfidenceRing.tsx", - "language": "typescript", - "sizeLines": 50, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/warm/DotLive.tsx", - "language": "typescript", - "sizeLines": 29, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/warm/HexAvatar.tsx", - "language": "typescript", - "sizeLines": 40, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/warm/HexCheckTile.tsx", - "language": "typescript", - "sizeLines": 26, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/warm/IconTile.tsx", - "language": "typescript", - "sizeLines": 27, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/warm/index.ts", - "language": "typescript", - "sizeLines": 21, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/warm/InlineApprovalCard.tsx", - "language": "typescript", - "sizeLines": 71, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/warm/ModelPill.tsx", - "language": "typescript", - "sizeLines": 48, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/warm/OvernightHero.tsx", - "language": "typescript", - "sizeLines": 58, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/warm/ProvenanceLine.tsx", - "language": "typescript", - "sizeLines": 32, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/warm/RunChip.tsx", - "language": "typescript", - "sizeLines": 27, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/warm/SectionLabel.tsx", - "language": "typescript", - "sizeLines": 24, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/warm/StreakChip.tsx", - "language": "typescript", - "sizeLines": 26, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/warm/tones.ts", - "language": "typescript", - "sizeLines": 36, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/WorkspaceActionsMenu.tsx", - "language": "typescript", - "sizeLines": 244, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/os/WorkspaceBriefing.tsx", - "language": "typescript", - "sizeLines": 283, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/accordion.tsx", - "language": "typescript", - "sizeLines": 52, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/alert-dialog.tsx", - "language": "typescript", - "sizeLines": 104, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/alert.tsx", - "language": "typescript", - "sizeLines": 43, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/approval-modal.tsx", - "language": "typescript", - "sizeLines": 116, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/aspect-ratio.tsx", - "language": "typescript", - "sizeLines": 5, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/avatar.tsx", - "language": "typescript", - "sizeLines": 38, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/badge.tsx", - "language": "typescript", - "sizeLines": 29, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/breadcrumb.tsx", - "language": "typescript", - "sizeLines": 90, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/button.tsx", - "language": "typescript", - "sizeLines": 47, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/calendar.tsx", - "language": "typescript", - "sizeLines": 60, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/card.tsx", - "language": "typescript", - "sizeLines": 43, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/carousel.tsx", - "language": "typescript", - "sizeLines": 224, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/chart.tsx", - "language": "typescript", - "sizeLines": 303, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/checkbox.tsx", - "language": "typescript", - "sizeLines": 26, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/collapsible.tsx", - "language": "typescript", - "sizeLines": 9, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/command.tsx", - "language": "typescript", - "sizeLines": 132, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/confidence-badge.tsx", - "language": "typescript", - "sizeLines": 43, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/context-menu.tsx", - "language": "typescript", - "sizeLines": 178, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/detail-drawer.tsx", - "language": "typescript", - "sizeLines": 38, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/dialog.tsx", - "language": "typescript", - "sizeLines": 95, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/drawer.tsx", - "language": "typescript", - "sizeLines": 87, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/dropdown-menu.tsx", - "language": "typescript", - "sizeLines": 179, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/evidence-chip.tsx", - "language": "typescript", - "sizeLines": 31, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/evidence-panel.tsx", - "language": "typescript", - "sizeLines": 45, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/form.tsx", - "language": "typescript", - "sizeLines": 129, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/hint-tooltip.tsx", - "language": "typescript", - "sizeLines": 52, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/hover-card.tsx", - "language": "typescript", - "sizeLines": 27, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/input-otp.tsx", - "language": "typescript", - "sizeLines": 61, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/input.tsx", - "language": "typescript", - "sizeLines": 22, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/label.tsx", - "language": "typescript", - "sizeLines": 17, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/menubar.tsx", - "language": "typescript", - "sizeLines": 207, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/navigation-menu.tsx", - "language": "typescript", - "sizeLines": 120, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/pagination.tsx", - "language": "typescript", - "sizeLines": 81, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/popover.tsx", - "language": "typescript", - "sizeLines": 29, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/progress.tsx", - "language": "typescript", - "sizeLines": 23, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/radio-group.tsx", - "language": "typescript", - "sizeLines": 36, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/resizable.tsx", - "language": "typescript", - "sizeLines": 37, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/scroll-area.tsx", - "language": "typescript", - "sizeLines": 38, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/select.tsx", - "language": "typescript", - "sizeLines": 143, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/separator.tsx", - "language": "typescript", - "sizeLines": 20, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/sheet.tsx", - "language": "typescript", - "sizeLines": 107, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/sidebar.tsx", - "language": "typescript", - "sizeLines": 637, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/skeleton.tsx", - "language": "typescript", - "sizeLines": 7, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/slider.tsx", - "language": "typescript", - "sizeLines": 23, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/sonner.tsx", - "language": "typescript", - "sizeLines": 27, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/status-badge.tsx", - "language": "typescript", - "sizeLines": 57, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/stepper.tsx", - "language": "typescript", - "sizeLines": 170, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/switch.tsx", - "language": "typescript", - "sizeLines": 27, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/table.tsx", - "language": "typescript", - "sizeLines": 72, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/tabs.tsx", - "language": "typescript", - "sizeLines": 53, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/textarea.tsx", - "language": "typescript", - "sizeLines": 21, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/toast.tsx", - "language": "typescript", - "sizeLines": 111, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/toaster.tsx", - "language": "typescript", - "sizeLines": 24, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/toggle-group.tsx", - "language": "typescript", - "sizeLines": 49, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/toggle.tsx", - "language": "typescript", - "sizeLines": 37, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/tooltip.tsx", - "language": "typescript", - "sizeLines": 28, - "fileCategory": "code" - }, - { - "path": "apps/web/src/components/ui/use-toast.ts", - "language": "typescript", - "sizeLines": 3, - "fileCategory": "code" - }, - { - "path": "apps/web/src/hooks/use-mobile.tsx", - "language": "typescript", - "sizeLines": 19, - "fileCategory": "code" - }, - { - "path": "apps/web/src/hooks/use-toast.ts", - "language": "typescript", - "sizeLines": 186, - "fileCategory": "code" - }, - { - "path": "apps/web/src/hooks/useAgentStatus.ts", - "language": "typescript", - "sizeLines": 49, - "fileCategory": "code" - }, - { - "path": "apps/web/src/hooks/useBilling.ts", - "language": "typescript", - "sizeLines": 156, - "fileCategory": "code" - }, - { - "path": "apps/web/src/hooks/useChat.ts", - "language": "typescript", - "sizeLines": 336, - "fileCategory": "code" - }, - { - "path": "apps/web/src/hooks/useChatWidgetState.ts", - "language": "typescript", - "sizeLines": 301, - "fileCategory": "code" - }, - { - "path": "apps/web/src/hooks/useContainerWidth.ts", - "language": "typescript", - "sizeLines": 34, - "fileCategory": "code" - }, - { - "path": "apps/web/src/hooks/useDeveloperMode.test.ts", - "language": "typescript", - "sizeLines": 71, - "fileCategory": "code" - }, - { - "path": "apps/web/src/hooks/useDeveloperMode.ts", - "language": "typescript", - "sizeLines": 54, - "fileCategory": "code" - }, - { - "path": "apps/web/src/hooks/useDockLabels.ts", - "language": "typescript", - "sizeLines": 122, - "fileCategory": "code" - }, - { - "path": "apps/web/src/hooks/useDockNudge.ts", - "language": "typescript", - "sizeLines": 81, - "fileCategory": "code" - }, - { - "path": "apps/web/src/hooks/useEvents.ts", - "language": "typescript", - "sizeLines": 36, - "fileCategory": "code" - }, - { - "path": "apps/web/src/hooks/useFeatureGate.ts", - "language": "typescript", - "sizeLines": 19, - "fileCategory": "code" - }, - { - "path": "apps/web/src/hooks/useFocusTrap.test.tsx", - "language": "typescript", - "sizeLines": 64, - "fileCategory": "code" - }, - { - "path": "apps/web/src/hooks/useFocusTrap.ts", - "language": "typescript", - "sizeLines": 117, - "fileCategory": "code" - }, - { - "path": "apps/web/src/hooks/useHasWorkingModel.test.ts", - "language": "typescript", - "sizeLines": 62, - "fileCategory": "code" - }, - { - "path": "apps/web/src/hooks/useHasWorkingModel.ts", - "language": "typescript", - "sizeLines": 59, - "fileCategory": "code" - }, - { - "path": "apps/web/src/hooks/useIsLightTheme.ts", - "language": "typescript", - "sizeLines": 32, - "fileCategory": "code" - }, - { - "path": "apps/web/src/hooks/useKeyboardShortcuts.ts", - "language": "typescript", - "sizeLines": 113, - "fileCategory": "code" - }, - { - "path": "apps/web/src/hooks/useKnowledgeGraph.ts", - "language": "typescript", - "sizeLines": 31, - "fileCategory": "code" - }, - { - "path": "apps/web/src/hooks/useMemory.ts", - "language": "typescript", - "sizeLines": 81, - "fileCategory": "code" - }, - { - "path": "apps/web/src/hooks/useNotifications.ts", - "language": "typescript", - "sizeLines": 45, - "fileCategory": "code" - }, - { - "path": "apps/web/src/hooks/useOfflineStatus.ts", - "language": "typescript", - "sizeLines": 100, - "fileCategory": "code" - }, - { - "path": "apps/web/src/hooks/useOnboarding.ts", - "language": "typescript", - "sizeLines": 255, - "fileCategory": "code" - }, - { - "path": "apps/web/src/hooks/useOverlayState.ts", - "language": "typescript", - "sizeLines": 52, - "fileCategory": "code" - }, - { - "path": "apps/web/src/hooks/useProviders.ts", - "language": "typescript", - "sizeLines": 83, - "fileCategory": "code" - }, - { - "path": "apps/web/src/hooks/useRevalidateOnError.test.ts", - "language": "typescript", - "sizeLines": 62, - "fileCategory": "code" - }, - { - "path": "apps/web/src/hooks/useRevalidateOnError.ts", - "language": "typescript", - "sizeLines": 43, - "fileCategory": "code" - }, - { - "path": "apps/web/src/hooks/useRoomState.ts", - "language": "typescript", - "sizeLines": 90, - "fileCategory": "code" - }, - { - "path": "apps/web/src/hooks/useSessions.ts", - "language": "typescript", - "sizeLines": 86, - "fileCategory": "code" - }, - { - "path": "apps/web/src/hooks/useWaggleDance.ts", - "language": "typescript", - "sizeLines": 59, - "fileCategory": "code" - }, - { - "path": "apps/web/src/hooks/useWorkspaces.ts", - "language": "typescript", - "sizeLines": 100, - "fileCategory": "code" - }, - { - "path": "apps/web/src/index.css", - "language": "css", - "sizeLines": 518, - "fileCategory": "markup" - }, - { - "path": "apps/web/src/lib/activity-labels.test.ts", - "language": "typescript", - "sizeLines": 17, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/activity-labels.ts", - "language": "typescript", - "sizeLines": 37, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/adapter.authgate.test.ts", - "language": "typescript", - "sizeLines": 487, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/adapter.createCron.test.ts", - "language": "typescript", - "sizeLines": 89, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/adapter.eraseData.test.ts", - "language": "typescript", - "sizeLines": 85, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/adapter.files.test.ts", - "language": "typescript", - "sizeLines": 49, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/adapter.memoryStats.test.ts", - "language": "typescript", - "sizeLines": 91, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/adapter.permissions.test.ts", - "language": "typescript", - "sizeLines": 105, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/adapter.spawnAgent.test.ts", - "language": "typescript", - "sizeLines": 90, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/adapter.sse.test.ts", - "language": "typescript", - "sizeLines": 272, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/adapter.startTrial.test.ts", - "language": "typescript", - "sizeLines": 89, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/adapter.tauri-branch.test.ts", - "language": "typescript", - "sizeLines": 144, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/adapter.ts", - "language": "typescript", - "sizeLines": 3093, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/agent-center-display.test.ts", - "language": "typescript", - "sizeLines": 129, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/agent-center-display.ts", - "language": "typescript", - "sizeLines": 96, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/agent-search.test.ts", - "language": "typescript", - "sizeLines": 22, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/agent-search.ts", - "language": "typescript", - "sizeLines": 59, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/app-deeplink.ts", - "language": "typescript", - "sizeLines": 37, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/automation-display.test.ts", - "language": "typescript", - "sizeLines": 89, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/automation-display.ts", - "language": "typescript", - "sizeLines": 73, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/brain-health.test.ts", - "language": "typescript", - "sizeLines": 133, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/brain-health.ts", - "language": "typescript", - "sizeLines": 104, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/briefing-highlights.test.ts", - "language": "typescript", - "sizeLines": 106, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/briefing-highlights.ts", - "language": "typescript", - "sizeLines": 112, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/browse-breadcrumbs.test.ts", - "language": "typescript", - "sizeLines": 112, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/browse-breadcrumbs.ts", - "language": "typescript", - "sizeLines": 88, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/chat-header-layout.test.ts", - "language": "typescript", - "sizeLines": 63, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/chat-header-layout.ts", - "language": "typescript", - "sizeLines": 53, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/clerk.ts", - "language": "typescript", - "sizeLines": 69, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/command-catalog.ts", - "language": "typescript", - "sizeLines": 120, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/context-menu-index.test.ts", - "language": "typescript", - "sizeLines": 73, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/context-menu-index.ts", - "language": "typescript", - "sizeLines": 38, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/context-rail-fetch.test.ts", - "language": "typescript", - "sizeLines": 222, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/context-rail-fetch.ts", - "language": "typescript", - "sizeLines": 198, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/cron-presets.test.ts", - "language": "typescript", - "sizeLines": 141, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/cron-presets.ts", - "language": "typescript", - "sizeLines": 181, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/decode-entities.ts", - "language": "typescript", - "sizeLines": 10, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/dedupe-packs.test.ts", - "language": "typescript", - "sizeLines": 67, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/dedupe-packs.ts", - "language": "typescript", - "sizeLines": 29, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/dock-labels.test.ts", - "language": "typescript", - "sizeLines": 109, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/dock-labels.ts", - "language": "typescript", - "sizeLines": 51, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/dock-nudge.test.ts", - "language": "typescript", - "sizeLines": 80, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/dock-nudge.ts", - "language": "typescript", - "sizeLines": 65, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/dock-tiers.ts", - "language": "typescript", - "sizeLines": 171, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/extension-catalog.test.ts", - "language": "typescript", - "sizeLines": 129, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/extension-catalog.ts", - "language": "typescript", - "sizeLines": 245, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/feature-gates.ts", - "language": "typescript", - "sizeLines": 46, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/fetch-utils.ts", - "language": "typescript", - "sizeLines": 37, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/frame-source.ts", - "language": "typescript", - "sizeLines": 55, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/fuzzy-match.ts", - "language": "typescript", - "sizeLines": 32, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/harvest-kind-map.ts", - "language": "typescript", - "sizeLines": 51, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/import-reminder-state.test.ts", - "language": "typescript", - "sizeLines": 156, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/import-reminder-state.ts", - "language": "typescript", - "sizeLines": 117, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/install-store.test.ts", - "language": "typescript", - "sizeLines": 57, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/install-store.ts", - "language": "typescript", - "sizeLines": 81, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/kg-export.test.ts", - "language": "typescript", - "sizeLines": 324, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/kg-export.ts", - "language": "typescript", - "sizeLines": 189, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/launcher-prompt-args.test.ts", - "language": "typescript", - "sizeLines": 98, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/launcher-prompt-args.ts", - "language": "typescript", - "sizeLines": 96, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/login-briefing-brag.test.ts", - "language": "typescript", - "sizeLines": 233, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/login-briefing-brag.ts", - "language": "typescript", - "sizeLines": 170, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/login-briefing.test.ts", - "language": "typescript", - "sizeLines": 114, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/login-briefing.ts", - "language": "typescript", - "sizeLines": 100, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/memory-recall-toast.test.ts", - "language": "typescript", - "sizeLines": 105, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/memory-recall-toast.ts", - "language": "typescript", - "sizeLines": 71, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/modal-drag.test.ts", - "language": "typescript", - "sizeLines": 56, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/modal-drag.ts", - "language": "typescript", - "sizeLines": 47, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/onboarding-profile.test.ts", - "language": "typescript", - "sizeLines": 59, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/onboarding-profile.ts", - "language": "typescript", - "sizeLines": 89, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/onboarding-skip.test.ts", - "language": "typescript", - "sizeLines": 37, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/onboarding-skip.ts", - "language": "typescript", - "sizeLines": 27, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/onboarding-tier-filter.test.ts", - "language": "typescript", - "sizeLines": 189, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/onboarding-tier-filter.ts", - "language": "typescript", - "sizeLines": 101, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/persona-display.test.ts", - "language": "typescript", - "sizeLines": 27, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/persona-display.ts", - "language": "typescript", - "sizeLines": 24, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/persona-tier.test.ts", - "language": "typescript", - "sizeLines": 131, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/persona-tier.ts", - "language": "typescript", - "sizeLines": 120, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/persona-tooltip.test.ts", - "language": "typescript", - "sizeLines": 71, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/persona-tooltip.ts", - "language": "typescript", - "sizeLines": 61, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/personas.ts", - "language": "typescript", - "sizeLines": 98, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/platform.ts", - "language": "typescript", - "sizeLines": 17, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/posthog.test.ts", - "language": "typescript", - "sizeLines": 131, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/posthog.ts", - "language": "typescript", - "sizeLines": 166, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/providers.ts", - "language": "typescript", - "sizeLines": 223, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/render-markdown.test.ts", - "language": "typescript", - "sizeLines": 77, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/render-markdown.ts", - "language": "typescript", - "sizeLines": 79, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/risk-display.tsx", - "language": "typescript", - "sizeLines": 141, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/room-state-reducer.test.ts", - "language": "typescript", - "sizeLines": 179, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/room-state-reducer.ts", - "language": "typescript", - "sizeLines": 140, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/routes.ts", - "language": "typescript", - "sizeLines": 154, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/settings-tier-filter.test.ts", - "language": "typescript", - "sizeLines": 174, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/settings-tier-filter.ts", - "language": "typescript", - "sizeLines": 89, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/shape-selection.test.ts", - "language": "typescript", - "sizeLines": 101, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/shape-selection.ts", - "language": "typescript", - "sizeLines": 113, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/skill-pack-display.test.ts", - "language": "typescript", - "sizeLines": 65, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/skill-pack-display.ts", - "language": "typescript", - "sizeLines": 65, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/skill-recommendations.test.ts", - "language": "typescript", - "sizeLines": 125, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/skill-recommendations.ts", - "language": "typescript", - "sizeLines": 122, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/spawn-agent-helpers.test.ts", - "language": "typescript", - "sizeLines": 64, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/spawn-agent-helpers.ts", - "language": "typescript", - "sizeLines": 44, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/suggested-actions.test.ts", - "language": "typescript", - "sizeLines": 149, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/suggested-actions.ts", - "language": "typescript", - "sizeLines": 94, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/tauri-bindings.test.ts", - "language": "typescript", - "sizeLines": 139, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/tauri-bindings.ts", - "language": "typescript", - "sizeLines": 326, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/tiers.test.ts", - "language": "typescript", - "sizeLines": 199, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/timeline-events.test.ts", - "language": "typescript", - "sizeLines": 113, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/timeline-events.ts", - "language": "typescript", - "sizeLines": 183, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/types.ts", - "language": "typescript", - "sizeLines": 696, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/utils.ts", - "language": "typescript", - "sizeLines": 6, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/waggle-signals.test.ts", - "language": "typescript", - "sizeLines": 124, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/waggle-signals.ts", - "language": "typescript", - "sizeLines": 73, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/window-state-migration.ts", - "language": "typescript", - "sizeLines": 186, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/workspace-briefing-state.test.ts", - "language": "typescript", - "sizeLines": 71, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/workspace-briefing-state.ts", - "language": "typescript", - "sizeLines": 43, - "fileCategory": "code" - }, - { - "path": "apps/web/src/lib/workspace-groups.ts", - "language": "typescript", - "sizeLines": 30, - "fileCategory": "code" - }, - { - "path": "apps/web/src/main.tsx", - "language": "typescript", - "sizeLines": 18, - "fileCategory": "code" - }, - { - "path": "apps/web/src/pages/NotFound.tsx", - "language": "typescript", - "sizeLines": 45, - "fileCategory": "code" - }, - { - "path": "apps/web/src/providers/InstallProvider.tsx", - "language": "typescript", - "sizeLines": 302, - "fileCategory": "code" - }, - { - "path": "apps/web/src/providers/ServiceProvider.tsx", - "language": "typescript", - "sizeLines": 79, - "fileCategory": "code" - }, - { - "path": "apps/web/src/providers/ShellContext.tsx", - "language": "typescript", - "sizeLines": 182, - "fileCategory": "code" - }, - { - "path": "apps/web/src/providers/ThemeProvider.tsx", - "language": "typescript", - "sizeLines": 157, - "fileCategory": "code" - }, - { - "path": "apps/web/src/providers/WaggleClerkProvider.tsx", - "language": "typescript", - "sizeLines": 35, - "fileCategory": "code" - }, - { - "path": "apps/web/src/routes/AgentsRoute.tsx", - "language": "typescript", - "sizeLines": 15, - "fileCategory": "code" - }, - { - "path": "apps/web/src/routes/ApprovalsRoute.tsx", - "language": "typescript", - "sizeLines": 16, - "fileCategory": "code" - }, - { - "path": "apps/web/src/routes/ArtifactsRoute.tsx", - "language": "typescript", - "sizeLines": 22, - "fileCategory": "code" - }, - { - "path": "apps/web/src/routes/AuthRoute.tsx", - "language": "typescript", - "sizeLines": 20, - "fileCategory": "code" - }, - { - "path": "apps/web/src/routes/AutomationsRoute.tsx", - "language": "typescript", - "sizeLines": 36, - "fileCategory": "code" - }, - { - "path": "apps/web/src/routes/BenchmarkRoute.tsx", - "language": "typescript", - "sizeLines": 11, - "fileCategory": "code" - }, - { - "path": "apps/web/src/routes/ConnectorsRoute.tsx", - "language": "typescript", - "sizeLines": 15, - "fileCategory": "code" - }, - { - "path": "apps/web/src/routes/EventsRoute.tsx", - "language": "typescript", - "sizeLines": 24, - "fileCategory": "code" - }, - { - "path": "apps/web/src/routes/FilesRoute.tsx", - "language": "typescript", - "sizeLines": 38, - "fileCategory": "code" - }, - { - "path": "apps/web/src/routes/HomeRoute.tsx", - "language": "typescript", - "sizeLines": 36, - "fileCategory": "code" - }, - { - "path": "apps/web/src/routes/index.ts", - "language": "typescript", - "sizeLines": 63, - "fileCategory": "code" - }, - { - "path": "apps/web/src/routes/LauncherRoute.tsx", - "language": "typescript", - "sizeLines": 15, - "fileCategory": "code" - }, - { - "path": "apps/web/src/routes/MarketplaceRoute.tsx", - "language": "typescript", - "sizeLines": 11, - "fileCategory": "code" - }, - { - "path": "apps/web/src/routes/McpsRoute.tsx", - "language": "typescript", - "sizeLines": 15, - "fileCategory": "code" - }, - { - "path": "apps/web/src/routes/MemoryRoute.tsx", - "language": "typescript", - "sizeLines": 128, - "fileCategory": "code" - }, - { - "path": "apps/web/src/routes/MissionControlRoute.tsx", - "language": "typescript", - "sizeLines": 16, - "fileCategory": "code" - }, - { - "path": "apps/web/src/routes/PaymentSuccessRoute.tsx", - "language": "typescript", - "sizeLines": 13, - "fileCategory": "code" - }, - { - "path": "apps/web/src/routes/PlatformRoute.tsx", - "language": "typescript", - "sizeLines": 11, - "fileCategory": "code" - }, - { - "path": "apps/web/src/routes/ProfileRoute.tsx", - "language": "typescript", - "sizeLines": 16, - "fileCategory": "code" - }, - { - "path": "apps/web/src/routes/RoomRoute.tsx", - "language": "typescript", - "sizeLines": 18, - "fileCategory": "code" - }, - { - "path": "apps/web/src/routes/SettingsRoute.tsx", - "language": "typescript", - "sizeLines": 16, - "fileCategory": "code" - }, - { - "path": "apps/web/src/routes/SkillsRoute.tsx", - "language": "typescript", - "sizeLines": 11, - "fileCategory": "code" - }, - { - "path": "apps/web/src/routes/SurfaceBoundary.tsx", - "language": "typescript", - "sizeLines": 19, - "fileCategory": "code" - }, - { - "path": "apps/web/src/routes/TeamRoute.tsx", - "language": "typescript", - "sizeLines": 15, - "fileCategory": "code" - }, - { - "path": "apps/web/src/routes/TimelineRoute.tsx", - "language": "typescript", - "sizeLines": 15, - "fileCategory": "code" - }, - { - "path": "apps/web/src/routes/UsageRoute.tsx", - "language": "typescript", - "sizeLines": 11, - "fileCategory": "code" - }, - { - "path": "apps/web/src/routes/VaultRoute.tsx", - "language": "typescript", - "sizeLines": 15, - "fileCategory": "code" - }, - { - "path": "apps/web/src/routes/WaggleDanceRoute.tsx", - "language": "typescript", - "sizeLines": 11, - "fileCategory": "code" - }, - { - "path": "apps/web/src/routes/WorkspaceRoute.tsx", - "language": "typescript", - "sizeLines": 68, - "fileCategory": "code" - }, - { - "path": "apps/web/src/routes/WorkspacesRoute.tsx", - "language": "typescript", - "sizeLines": 24, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/chat-artifact-block.test.tsx", - "language": "typescript", - "sizeLines": 72, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/chat-work-canvas.test.tsx", - "language": "typescript", - "sizeLines": 72, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/example.test.ts", - "language": "typescript", - "sizeLines": 7, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/file-utils-path.test.ts", - "language": "typescript", - "sizeLines": 43, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/files-deeplink.test.tsx", - "language": "typescript", - "sizeLines": 89, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/light-mode-tokens.test.ts", - "language": "typescript", - "sizeLines": 122, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/p1a-chat-state.test.tsx", - "language": "typescript", - "sizeLines": 249, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/p1a-routes.test.ts", - "language": "typescript", - "sizeLines": 245, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/p1a-window-migration.test.ts", - "language": "typescript", - "sizeLines": 202, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/p1a-workspace-route.test.tsx", - "language": "typescript", - "sizeLines": 80, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/p1b-authgate-surfaces.test.tsx", - "language": "typescript", - "sizeLines": 310, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/p2-home-desktop.test.tsx", - "language": "typescript", - "sizeLines": 243, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/p2-onboarding-forcewizard.test.ts", - "language": "typescript", - "sizeLines": 84, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/p3-memory-center-app.test.tsx", - "language": "typescript", - "sizeLines": 224, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/p3-two-mind-memory.test.tsx", - "language": "typescript", - "sizeLines": 205, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/p4-onboarding-status.test.ts", - "language": "typescript", - "sizeLines": 91, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/p7-a5-approval-card-risk.test.tsx", - "language": "typescript", - "sizeLines": 37, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/p7-a6-approval-gating.test.tsx", - "language": "typescript", - "sizeLines": 37, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/p7-a7-install-risk.test.tsx", - "language": "typescript", - "sizeLines": 41, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/p7-b1-approvals-error.test.tsx", - "language": "typescript", - "sizeLines": 59, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/p7-b2-room-state.test.ts", - "language": "typescript", - "sizeLines": 46, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/p7-b3-command-center.test.tsx", - "language": "typescript", - "sizeLines": 72, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/p7-b4-files-error.test.tsx", - "language": "typescript", - "sizeLines": 75, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/p7-b5-error-threading.test.tsx", - "language": "typescript", - "sizeLines": 53, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/p7-issue17-trust-source.test.tsx", - "language": "typescript", - "sizeLines": 57, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/p7-issue8-action-risk.test.ts", - "language": "typescript", - "sizeLines": 21, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/phase3b-agent-center.test.tsx", - "language": "typescript", - "sizeLines": 171, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/phase3b-automation-center.test.tsx", - "language": "typescript", - "sizeLines": 222, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/phase3b-skills-hub.test.tsx", - "language": "typescript", - "sizeLines": 161, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/phase3c-agent-builder.test.tsx", - "language": "typescript", - "sizeLines": 234, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/phase3c-automation-builder.test.tsx", - "language": "typescript", - "sizeLines": 263, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/phase3c-skill-builder.test.tsx", - "language": "typescript", - "sizeLines": 254, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/phase4b-connector-hub.test.tsx", - "language": "typescript", - "sizeLines": 181, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/phase4b-marketplace-extend.test.tsx", - "language": "typescript", - "sizeLines": 232, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/phase4b-mcp-hub.test.tsx", - "language": "typescript", - "sizeLines": 304, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/phase5b-backup.test.tsx", - "language": "typescript", - "sizeLines": 48, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/phase5b-connectors.test.tsx", - "language": "typescript", - "sizeLines": 46, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/phase5b-error-boundary.test.tsx", - "language": "typescript", - "sizeLines": 76, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/phase5b-usechat.test.ts", - "language": "typescript", - "sizeLines": 70, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/pr35-memory-trust-manage.test.tsx", - "language": "typescript", - "sizeLines": 114, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/pr35-memory-trust-why.test.tsx", - "language": "typescript", - "sizeLines": 74, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/pr35-memory-trust.test.tsx", - "language": "typescript", - "sizeLines": 54, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/pr4-agent-search.test.tsx", - "language": "typescript", - "sizeLines": 121, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/pr4-inline-capability.test.tsx", - "language": "typescript", - "sizeLines": 113, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/pr4-install-store.test.tsx", - "language": "typescript", - "sizeLines": 286, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/pr5-settings-reskin.test.tsx", - "language": "typescript", - "sizeLines": 65, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/pr7a-billing.test.tsx", - "language": "typescript", - "sizeLines": 167, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/pr7b-auth.test.tsx", - "language": "typescript", - "sizeLines": 117, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/setup.ts", - "language": "typescript", - "sizeLines": 15, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/warm-primitives.test.tsx", - "language": "typescript", - "sizeLines": 148, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/workspace-actions-menu.test.tsx", - "language": "typescript", - "sizeLines": 129, - "fileCategory": "code" - }, - { - "path": "apps/web/src/test/workspace-tasks-tab.test.tsx", - "language": "typescript", - "sizeLines": 102, - "fileCategory": "code" - }, - { - "path": "apps/web/src/vite-env.d.ts", - "language": "typescript", - "sizeLines": 1, - "fileCategory": "code" - }, - { - "path": "apps/web/src/waggle-theme.css", - "language": "css", - "sizeLines": 165, - "fileCategory": "markup" - }, - { - "path": "apps/web/tailwind.config.ts", - "language": "typescript", - "sizeLines": 160, - "fileCategory": "code" - }, - { - "path": "apps/web/tsconfig.app.json", - "language": "json", - "sizeLines": 34, - "fileCategory": "config" - }, - { - "path": "apps/web/tsconfig.json", - "language": "json", - "sizeLines": 24, - "fileCategory": "config" - }, - { - "path": "apps/web/tsconfig.node.json", - "language": "json", - "sizeLines": 22, - "fileCategory": "config" - }, - { - "path": "apps/web/vite.config.ts", - "language": "typescript", - "sizeLines": 38, - "fileCategory": "code" - }, - { - "path": "apps/web/vitest.config.ts", - "language": "typescript", - "sizeLines": 16, - "fileCategory": "code" - }, - { - "path": "apps/www/__tests__/BrandPersonasCard.test.tsx", - "language": "typescript", - "sizeLines": 153, - "fileCategory": "code" - }, - { - "path": "apps/www/__tests__/setup.ts", - "language": "typescript", - "sizeLines": 45, - "fileCategory": "code" - }, - { - "path": "apps/www/.env.example", - "language": "config", - "sizeLines": 11, - "fileCategory": "config" - }, - { - "path": "apps/www/.env.local.example", - "language": "config", - "sizeLines": 49, - "fileCategory": "config" - }, - { - "path": "apps/www/app/_components/BrandPersonasCard.tsx", - "language": "typescript", - "sizeLines": 437, - "fileCategory": "code" - }, - { - "path": "apps/www/app/_components/ComparisonBeat.tsx", - "language": "typescript", - "sizeLines": 61, - "fileCategory": "code" - }, - { - "path": "apps/www/app/_components/DownloadCTA.tsx", - "language": "typescript", - "sizeLines": 89, - "fileCategory": "code" - }, - { - "path": "apps/www/app/_components/FinalCTA.tsx", - "language": "typescript", - "sizeLines": 99, - "fileCategory": "code" - }, - { - "path": "apps/www/app/_components/Footer.tsx", - "language": "typescript", - "sizeLines": 158, - "fileCategory": "code" - }, - { - "path": "apps/www/app/_components/Hero.tsx", - "language": "typescript", - "sizeLines": 206, - "fileCategory": "code" - }, - { - "path": "apps/www/app/_components/HeroVisual.tsx", - "language": "typescript", - "sizeLines": 354, - "fileCategory": "code" - }, - { - "path": "apps/www/app/_components/HowItWorks.tsx", - "language": "typescript", - "sizeLines": 137, - "fileCategory": "code" - }, - { - "path": "apps/www/app/_components/Navbar.tsx", - "language": "typescript", - "sizeLines": 279, - "fileCategory": "code" - }, - { - "path": "apps/www/app/_components/Pillars.tsx", - "language": "typescript", - "sizeLines": 110, - "fileCategory": "code" - }, - { - "path": "apps/www/app/_components/Pricing.tsx", - "language": "typescript", - "sizeLines": 484, - "fileCategory": "code" - }, - { - "path": "apps/www/app/_components/ProofPointsBand.tsx", - "language": "typescript", - "sizeLines": 174, - "fileCategory": "code" - }, - { - "path": "apps/www/app/_components/TrustBand.tsx", - "language": "typescript", - "sizeLines": 142, - "fileCategory": "code" - }, - { - "path": "apps/www/app/_components/WowBeat.tsx", - "language": "typescript", - "sizeLines": 47, - "fileCategory": "code" - }, - { - "path": "apps/www/app/_data/hero-variants.ts", - "language": "typescript", - "sizeLines": 30, - "fileCategory": "code" - }, - { - "path": "apps/www/app/_data/personas.ts", - "language": "typescript", - "sizeLines": 125, - "fileCategory": "code" - }, - { - "path": "apps/www/app/_data/proof-points.ts", - "language": "typescript", - "sizeLines": 45, - "fileCategory": "code" - }, - { - "path": "apps/www/app/_lib/event-taxonomy.ts", - "language": "typescript", - "sizeLines": 24, - "fileCategory": "code" - }, - { - "path": "apps/www/app/_lib/hero-headline-resolver.ts", - "language": "typescript", - "sizeLines": 27, - "fileCategory": "code" - }, - { - "path": "apps/www/app/_lib/os-detection.ts", - "language": "typescript", - "sizeLines": 15, - "fileCategory": "code" - }, - { - "path": "apps/www/app/(legal)/cookies/page.tsx", - "language": "typescript", - "sizeLines": 153, - "fileCategory": "code" - }, - { - "path": "apps/www/app/(legal)/eu-ai-act/page.tsx", - "language": "typescript", - "sizeLines": 223, - "fileCategory": "code" - }, - { - "path": "apps/www/app/(legal)/layout.tsx", - "language": "typescript", - "sizeLines": 29, - "fileCategory": "code" - }, - { - "path": "apps/www/app/(legal)/privacy/page.tsx", - "language": "typescript", - "sizeLines": 223, - "fileCategory": "code" - }, - { - "path": "apps/www/app/(legal)/terms/page.tsx", - "language": "typescript", - "sizeLines": 213, - "fileCategory": "code" - }, - { - "path": "apps/www/app/account/page.tsx", - "language": "typescript", - "sizeLines": 39, - "fileCategory": "code" - }, - { - "path": "apps/www/app/api/stripe/checkout/route.ts", - "language": "typescript", - "sizeLines": 282, - "fileCategory": "code" - }, - { - "path": "apps/www/app/api/webhooks/stripe/route.ts", - "language": "typescript", - "sizeLines": 220, - "fileCategory": "code" - }, - { - "path": "apps/www/app/design/personas/page.tsx", - "language": "typescript", - "sizeLines": 38, - "fileCategory": "code" - }, - { - "path": "apps/www/app/docs/methodology/page.tsx", - "language": "typescript", - "sizeLines": 272, - "fileCategory": "code" - }, - { - "path": "apps/www/app/globals.css", - "language": "css", - "sizeLines": 144, - "fileCategory": "markup" - }, - { - "path": "apps/www/app/layout.tsx", - "language": "typescript", - "sizeLines": 196, - "fileCategory": "code" - }, - { - "path": "apps/www/app/page.tsx", - "language": "typescript", - "sizeLines": 77, - "fileCategory": "code" - }, - { - "path": "apps/www/app/sign-in/[[...sign-in]]/page.tsx", - "language": "typescript", - "sizeLines": 32, - "fileCategory": "code" - }, - { - "path": "apps/www/app/sign-up/[[...sign-up]]/page.tsx", - "language": "typescript", - "sizeLines": 32, - "fileCategory": "code" - }, - { - "path": "apps/www/app/sitemap.ts", - "language": "typescript", - "sizeLines": 30, - "fileCategory": "code" - }, - { - "path": "apps/www/i18n/request.ts", - "language": "typescript", - "sizeLines": 15, - "fileCategory": "code" - }, - { - "path": "apps/www/LIGHTHOUSE.md", - "language": "markdown", - "sizeLines": 69, - "fileCategory": "docs" - }, - { - "path": "apps/www/messages/en.json", - "language": "json", - "sizeLines": 311, - "fileCategory": "config" - }, - { - "path": "apps/www/middleware.ts", - "language": "typescript", - "sizeLines": 26, - "fileCategory": "code" - }, - { - "path": "apps/www/next-env.d.ts", - "language": "typescript", - "sizeLines": 6, - "fileCategory": "code" - }, - { - "path": "apps/www/next.config.mjs", - "language": "javascript", - "sizeLines": 15, - "fileCategory": "code" - }, - { - "path": "apps/www/package.json", - "language": "json", - "sizeLines": 34, - "fileCategory": "config" - }, - { - "path": "apps/www/SESIJA-D-MANIFEST.md", - "language": "markdown", - "sizeLines": 119, - "fileCategory": "docs" - }, - { - "path": "apps/www/SESIJA-E-MANIFEST.md", - "language": "markdown", - "sizeLines": 188, - "fileCategory": "docs" - }, - { - "path": "apps/www/tsconfig.json", - "language": "json", - "sizeLines": 31, - "fileCategory": "config" - }, - { - "path": "apps/www/vitest.config.ts", - "language": "typescript", - "sizeLines": 37, - "fileCategory": "code" - }, - { - "path": "benchmarks/archive/README.md", - "language": "markdown", - "sizeLines": 34, - "fileCategory": "docs" - }, - { - "path": "benchmarks/calibration/v6-kappa-recal/_summary-v6-kappa.json", - "language": "json", - "sizeLines": 75, - "fileCategory": "config" - }, - { - "path": "benchmarks/calibration/v6-kappa-recal/cold-probes-phase2.py", - "language": "python", - "sizeLines": 312, - "fileCategory": "code" - }, - { - "path": "benchmarks/calibration/v6-kappa-recal/kappa-sample-instances.jsonl", - "language": "jsonl", - "sizeLines": 100, - "fileCategory": "code" - }, - { - "path": "benchmarks/calibration/v6-kappa-recal/kappa-v6-analysis.md", - "language": "markdown", - "sizeLines": 90, - "fileCategory": "docs" - }, - { - "path": "benchmarks/calibration/v6-kappa-recal/kappa-v6-compute.py", - "language": "python", - "sizeLines": 330, - "fileCategory": "code" - }, - { - "path": "benchmarks/calibration/v6-kappa-recal/minimax-kappa-probe.py", - "language": "python", - "sizeLines": 367, - "fileCategory": "code" - }, - { - "path": "benchmarks/calibration/v6-kappa-recal/minimax-kappa-responses.jsonl", - "language": "jsonl", - "sizeLines": 100, - "fileCategory": "code" - }, - { - "path": "benchmarks/calibration/v6-kappa-recal/phase2-cold-probes.jsonl", - "language": "jsonl", - "sizeLines": 6, - "fileCategory": "code" - }, - { - "path": "benchmarks/calibration/v6-kappa-recal/v6-kappa-memo.md", - "language": "markdown", - "sizeLines": 48, - "fileCategory": "docs" - }, - { - "path": "benchmarks/chunk-probe/run-probe.mjs", - "language": "javascript", - "sizeLines": 144, - "fileCategory": "code" - }, - { - "path": "benchmarks/data/.gitkeep", - "language": "unknown", - "sizeLines": 2, - "fileCategory": "code" - }, - { - "path": "benchmarks/data/beam/beam-128K.meta.json", - "language": "json", - "sizeLines": 47, - "fileCategory": "config" - }, - { - "path": "benchmarks/data/failure-mode-calibration-10.jsonl", - "language": "jsonl", - "sizeLines": 18, - "fileCategory": "code" - }, - { - "path": "benchmarks/data/locomo/locomo-1540.jsonl", - "language": "jsonl", - "sizeLines": 1531, - "fileCategory": "code" - }, - { - "path": "benchmarks/data/locomo/locomo-1540.meta.json", - "language": "json", - "sizeLines": 41, - "fileCategory": "config" - }, - { - "path": "benchmarks/data/longmemeval/longmemeval.meta.json", - "language": "json", - "sizeLines": 42, - "fileCategory": "config" - }, - { - "path": "benchmarks/data/preflight-locomo-50.json", - "language": "json", - "sizeLines": 918, - "fileCategory": "config" - }, - { - "path": "benchmarks/gaia2/runs/smoke-c2-2026-04-30/smoke-A-oracle/final_state.jsonl", - "language": "jsonl", - "sizeLines": 1, - "fileCategory": "code" - }, - { - "path": "benchmarks/gaia2/runs/smoke-c2-2026-04-30/smoke-A-oracle/initial_state.jsonl", - "language": "jsonl", - "sizeLines": 1, - "fileCategory": "code" - }, - { - "path": "benchmarks/gaia2/runs/smoke-c2-2026-04-30/smoke-A-oracle/output.jsonl", - "language": "jsonl", - "sizeLines": 1, - "fileCategory": "code" - }, - { - "path": "benchmarks/gaia2/runs/smoke-c2-2026-04-30/smoke-B-gaia2-mock-thread/benchmark_stats.json", - "language": "json", - "sizeLines": 67, - "fileCategory": "config" - }, - { - "path": "benchmarks/gaia2/runs/smoke-c2-2026-04-30/smoke-B-gaia2-mock-thread/output.jsonl", - "language": "jsonl", - "sizeLines": 3, - "fileCategory": "code" - }, - { - "path": "benchmarks/gepa/oracle/faza-1/mutation-prompt-template-non-qwen.md", - "language": "markdown", - "sizeLines": 54, - "fileCategory": "docs" - }, - { - "path": "benchmarks/gepa/oracle/faza-1/mutation-prompt-template-qwen.md", - "language": "markdown", - "sizeLines": 64, - "fileCategory": "docs" - }, - { - "path": "benchmarks/gepa/README.md", - "language": "markdown", - "sizeLines": 117, - "fileCategory": "docs" - }, - { - "path": "benchmarks/gepa/scripts/faza-1/analyze-checkpoint-a.py", - "language": "python", - "sizeLines": 142, - "fileCategory": "code" - }, - { - "path": "benchmarks/gepa/scripts/faza-1/compute-final-kappa.ts", - "language": "typescript", - "sizeLines": 194, - "fileCategory": "code" - }, - { - "path": "benchmarks/gepa/scripts/faza-1/generate-h3-corpus.ts", - "language": "typescript", - "sizeLines": 488, - "fileCategory": "code" - }, - { - "path": "benchmarks/gepa/scripts/faza-1/probe-registry-injection.ts", - "language": "typescript", - "sizeLines": 161, - "fileCategory": "code" - }, - { - "path": "benchmarks/gepa/scripts/faza-1/run-checkpoint-c.ts", - "language": "typescript", - "sizeLines": 722, - "fileCategory": "code" - }, - { - "path": "benchmarks/gepa/scripts/faza-1/run-gen-1.ts", - "language": "typescript", - "sizeLines": 912, - "fileCategory": "code" - }, - { - "path": "benchmarks/gepa/scripts/faza-1/run-mutation-oracle.ts", - "language": "typescript", - "sizeLines": 438, - "fileCategory": "code" - }, - { - "path": "benchmarks/gepa/scripts/faza-1/run-null-baseline.ts", - "language": "typescript", - "sizeLines": 662, - "fileCategory": "code" - }, - { - "path": "benchmarks/gepa/src/faza-1/acceptance.ts", - "language": "typescript", - "sizeLines": 154, - "fileCategory": "code" - }, - { - "path": "benchmarks/gepa/src/faza-1/corpus-prompt.ts", - "language": "typescript", - "sizeLines": 114, - "fileCategory": "code" - }, - { - "path": "benchmarks/gepa/src/faza-1/corpus.ts", - "language": "typescript", - "sizeLines": 311, - "fileCategory": "code" - }, - { - "path": "benchmarks/gepa/src/faza-1/cost-tracker.ts", - "language": "typescript", - "sizeLines": 133, - "fileCategory": "code" - }, - { - "path": "benchmarks/gepa/src/faza-1/fitness.ts", - "language": "typescript", - "sizeLines": 298, - "fileCategory": "code" - }, - { - "path": "benchmarks/gepa/src/faza-1/index.ts", - "language": "typescript", - "sizeLines": 24, - "fileCategory": "code" - }, - { - "path": "benchmarks/gepa/src/faza-1/kappa-audit.ts", - "language": "typescript", - "sizeLines": 141, - "fileCategory": "code" - }, - { - "path": "benchmarks/gepa/src/faza-1/mutation-oracle-fork.ts", - "language": "typescript", - "sizeLines": 85, - "fileCategory": "code" - }, - { - "path": "benchmarks/gepa/src/faza-1/mutation-validator.ts", - "language": "typescript", - "sizeLines": 194, - "fileCategory": "code" - }, - { - "path": "benchmarks/gepa/src/faza-1/selection.ts", - "language": "typescript", - "sizeLines": 128, - "fileCategory": "code" - }, - { - "path": "benchmarks/gepa/src/faza-1/types.ts", - "language": "typescript", - "sizeLines": 321, - "fileCategory": "code" - }, - { - "path": "benchmarks/gepa/tests/faza-1/__faza1-closed/mutation-validator.test.ts", - "language": "typescript", - "sizeLines": 254, - "fileCategory": "code" - }, - { - "path": "benchmarks/gepa/tests/faza-1/__faza1-closed/README.md", - "language": "markdown", - "sizeLines": 60, - "fileCategory": "docs" - }, - { - "path": "benchmarks/gepa/tests/faza-1/__faza1-closed/registry-injection.test.ts", - "language": "typescript", - "sizeLines": 154, - "fileCategory": "code" - }, - { - "path": "benchmarks/gepa/tests/faza-1/acceptance.test.ts", - "language": "typescript", - "sizeLines": 263, - "fileCategory": "code" - }, - { - "path": "benchmarks/gepa/tests/faza-1/corpus.test.ts", - "language": "typescript", - "sizeLines": 349, - "fileCategory": "code" - }, - { - "path": "benchmarks/gepa/tests/faza-1/cost-tracker.test.ts", - "language": "typescript", - "sizeLines": 180, - "fileCategory": "code" - }, - { - "path": "benchmarks/gepa/tests/faza-1/fitness.test.ts", - "language": "typescript", - "sizeLines": 595, - "fileCategory": "code" - }, - { - "path": "benchmarks/gepa/tests/faza-1/kappa-audit.test.ts", - "language": "typescript", - "sizeLines": 204, - "fileCategory": "code" - }, - { - "path": "benchmarks/gepa/tests/faza-1/mutation-oracle-fork.test.ts", - "language": "typescript", - "sizeLines": 180, - "fileCategory": "code" - }, - { - "path": "benchmarks/gepa/tests/faza-1/null-baseline-shape-override.test.ts", - "language": "typescript", - "sizeLines": 48, - "fileCategory": "code" - }, - { - "path": "benchmarks/gepa/tests/faza-1/selection.test.ts", - "language": "typescript", - "sizeLines": 206, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/config/datasets.json", - "language": "json", - "sizeLines": 32, - "fileCategory": "config" - }, - { - "path": "benchmarks/harness/config/models.json", - "language": "json", - "sizeLines": 154, - "fileCategory": "config" - }, - { - "path": "benchmarks/harness/package.json", - "language": "json", - "sizeLines": 28, - "fileCategory": "config" - }, - { - "path": "benchmarks/harness/README.md", - "language": "markdown", - "sizeLines": 125, - "fileCategory": "docs" - }, - { - "path": "benchmarks/harness/scripts/build-beam-canonical.ts", - "language": "typescript", - "sizeLines": 531, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/scripts/build-locomo-canonical.ts", - "language": "typescript", - "sizeLines": 301, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/scripts/build-longmemeval-canonical.ts", - "language": "typescript", - "sizeLines": 445, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/scripts/build-preflight-samples.ts", - "language": "typescript", - "sizeLines": 354, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/scripts/run-v8.ts", - "language": "typescript", - "sizeLines": 781, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/src/cells-ipb.ts", - "language": "typescript", - "sizeLines": 330, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/src/cells.ts", - "language": "typescript", - "sizeLines": 504, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/src/controls.ts", - "language": "typescript", - "sizeLines": 38, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/src/datasets.ts", - "language": "typescript", - "sizeLines": 237, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/src/failure-taxonomy/aggregate.ts", - "language": "typescript", - "sizeLines": 98, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/src/failure-taxonomy/codes.ts", - "language": "typescript", - "sizeLines": 52, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/src/failure-taxonomy/index.ts", - "language": "typescript", - "sizeLines": 34, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/src/failure-taxonomy/rubric.ts", - "language": "typescript", - "sizeLines": 47, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/src/failure-taxonomy/validator.ts", - "language": "typescript", - "sizeLines": 111, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/src/health-check.ts", - "language": "typescript", - "sizeLines": 140, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/src/ingest-beam.ts", - "language": "typescript", - "sizeLines": 274, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/src/ingest-longmemeval.ts", - "language": "typescript", - "sizeLines": 255, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/src/ingest.ts", - "language": "typescript", - "sizeLines": 209, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/src/judge-client.ts", - "language": "typescript", - "sizeLines": 176, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/src/judge-runner.ts", - "language": "typescript", - "sizeLines": 401, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/src/judge-types.ts", - "language": "typescript", - "sizeLines": 32, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/src/llm.ts", - "language": "typescript", - "sizeLines": 296, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/src/metrics.ts", - "language": "typescript", - "sizeLines": 188, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/src/preregistration.ts", - "language": "typescript", - "sizeLines": 244, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/src/runner-lock.ts", - "language": "typescript", - "sizeLines": 152, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/src/runner.ts", - "language": "typescript", - "sizeLines": 979, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/src/stats/cluster-bootstrap.ts", - "language": "typescript", - "sizeLines": 169, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/src/stats/fleiss-kappa.ts", - "language": "typescript", - "sizeLines": 147, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/src/stats/index.ts", - "language": "typescript", - "sizeLines": 26, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/src/stats/wilson-ci.ts", - "language": "typescript", - "sizeLines": 98, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/src/streak-tracker.ts", - "language": "typescript", - "sizeLines": 90, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/src/substrate.ts", - "language": "typescript", - "sizeLines": 79, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/src/types.ts", - "language": "typescript", - "sizeLines": 507, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/tests/a3-namespace-split.test.ts", - "language": "typescript", - "sizeLines": 270, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/tests/agent-loop-exhaustion.test.ts", - "language": "typescript", - "sizeLines": 328, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/tests/b2-fold-in.test.ts", - "language": "typescript", - "sizeLines": 174, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/tests/cells-substrate.test.ts", - "language": "typescript", - "sizeLines": 588, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/tests/cells.test.ts", - "language": "typescript", - "sizeLines": 70, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/tests/cli-flags.test.ts", - "language": "typescript", - "sizeLines": 133, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/tests/dataset-loader.test.ts", - "language": "typescript", - "sizeLines": 177, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/tests/failure-taxonomy/aggregate.test.ts", - "language": "typescript", - "sizeLines": 123, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/tests/failure-taxonomy/codes.test.ts", - "language": "typescript", - "sizeLines": 84, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/tests/failure-taxonomy/rubric.test.ts", - "language": "typescript", - "sizeLines": 43, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/tests/failure-taxonomy/validator.test.ts", - "language": "typescript", - "sizeLines": 123, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/tests/health-check.test.ts", - "language": "typescript", - "sizeLines": 186, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/tests/ingest.test.ts", - "language": "typescript", - "sizeLines": 275, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/tests/jsonl-record-schema.test.ts", - "language": "typescript", - "sizeLines": 265, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/tests/judge-wiring.test.ts", - "language": "typescript", - "sizeLines": 368, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/tests/llm-retry.test.ts", - "language": "typescript", - "sizeLines": 210, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/tests/models-config.test.ts", - "language": "typescript", - "sizeLines": 186, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/tests/preregistration.test.ts", - "language": "typescript", - "sizeLines": 342, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/tests/reasoning-capture.test.ts", - "language": "typescript", - "sizeLines": 349, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/tests/runner-lock.test.ts", - "language": "typescript", - "sizeLines": 167, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/tests/smoke.test.ts", - "language": "typescript", - "sizeLines": 403, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/tests/smoke/fixtures/mock-judge-responses.json", - "language": "json", - "sizeLines": 119, - "fileCategory": "config" - }, - { - "path": "benchmarks/harness/tests/smoke/fixtures/mock-locomo-instances.json", - "language": "json", - "sizeLines": 75, - "fileCategory": "config" - }, - { - "path": "benchmarks/harness/tests/smoke/smoke-run.test.ts", - "language": "typescript", - "sizeLines": 323, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/tests/stage2-config.test.ts", - "language": "typescript", - "sizeLines": 229, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/tests/stats/cluster-bootstrap.test.ts", - "language": "typescript", - "sizeLines": 161, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/tests/stats/fleiss-kappa.test.ts", - "language": "typescript", - "sizeLines": 196, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/tests/stats/wilson-ci.test.ts", - "language": "typescript", - "sizeLines": 94, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/tests/streak-tracker.test.ts", - "language": "typescript", - "sizeLines": 145, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/tests/substrate.test.ts", - "language": "typescript", - "sizeLines": 101, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/tests/wrapper-v3-cells.test.ts", - "language": "typescript", - "sizeLines": 154, - "fileCategory": "code" - }, - { - "path": "benchmarks/harness/tsconfig.json", - "language": "json", - "sizeLines": 22, - "fileCategory": "config" - }, - { - "path": "benchmarks/preregistration/manifest-v5-preregistration.md", - "language": "markdown", - "sizeLines": 356, - "fileCategory": "docs" - }, - { - "path": "benchmarks/preregistration/manifest-v5-preregistration.yaml", - "language": "yaml", - "sizeLines": 498, - "fileCategory": "config" - }, - { - "path": "benchmarks/preregistration/manifest-v6-preregistration.md", - "language": "markdown", - "sizeLines": 478, - "fileCategory": "docs" - }, - { - "path": "benchmarks/preregistration/manifest-v6-preregistration.yaml", - "language": "yaml", - "sizeLines": 687, - "fileCategory": "config" - }, - { - "path": "benchmarks/preregistration/manifest-v7-gepa-faza1.yaml", - "language": "yaml", - "sizeLines": 1606, - "fileCategory": "config" - }, - { - "path": "benchmarks/preregistration/manifest-v8-gaia2-preregistration.md", - "language": "markdown", - "sizeLines": 458, - "fileCategory": "docs" - }, - { - "path": "benchmarks/preregistration/manifest-v8-gaia2-preregistration.yaml", - "language": "yaml", - "sizeLines": 498, - "fileCategory": "config" - }, - { - "path": "benchmarks/preregistration/manifest-v8.1-multi-benchmark.md", - "language": "markdown", - "sizeLines": 449, - "fileCategory": "docs" - }, - { - "path": "benchmarks/preregistration/manifest-v8.2-final.md", - "language": "markdown", - "sizeLines": 110, - "fileCategory": "docs" - }, - { - "path": "benchmarks/probes/judge-swap-validation/_summary-split.json", - "language": "json", - "sizeLines": 209, - "fileCategory": "config" - }, - { - "path": "benchmarks/probes/judge-swap-validation/deepseek-mt-comparison-memo.md", - "language": "markdown", - "sizeLines": 24, - "fileCategory": "docs" - }, - { - "path": "benchmarks/probes/judge-swap-validation/deepseek-mt2048-probe.py", - "language": "python", - "sizeLines": 274, - "fileCategory": "code" - }, - { - "path": "benchmarks/probes/judge-swap-validation/deepseek-responses.jsonl", - "language": "jsonl", - "sizeLines": 20, - "fileCategory": "code" - }, - { - "path": "benchmarks/probes/judge-swap-validation/deepseek-split-responses-v2-mt2048.jsonl", - "language": "jsonl", - "sizeLines": 7, - "fileCategory": "code" - }, - { - "path": "benchmarks/probes/judge-swap-validation/deepseek-split-responses.jsonl", - "language": "jsonl", - "sizeLines": 7, - "fileCategory": "code" - }, - { - "path": "benchmarks/probes/judge-swap-validation/kappa-analysis.md", - "language": "markdown", - "sizeLines": 87, - "fileCategory": "docs" - }, - { - "path": "benchmarks/probes/judge-swap-validation/kappa-split-analysis.md", - "language": "markdown", - "sizeLines": 158, - "fileCategory": "docs" - }, - { - "path": "benchmarks/probes/judge-swap-validation/kappa-split-analysis.py", - "language": "python", - "sizeLines": 417, - "fileCategory": "code" - }, - { - "path": "benchmarks/probes/judge-swap-validation/kimi-responses.jsonl", - "language": "jsonl", - "sizeLines": 20, - "fileCategory": "code" - }, - { - "path": "benchmarks/probes/judge-swap-validation/kimi-split-responses.jsonl", - "language": "jsonl", - "sizeLines": 7, - "fileCategory": "code" - }, - { - "path": "benchmarks/probes/judge-swap-validation/minimax-responses.jsonl", - "language": "jsonl", - "sizeLines": 20, - "fileCategory": "code" - }, - { - "path": "benchmarks/probes/judge-swap-validation/minimax-split-responses.jsonl", - "language": "jsonl", - "sizeLines": 7, - "fileCategory": "code" - }, - { - "path": "benchmarks/probes/judge-swap-validation/probe-script-split.py", - "language": "python", - "sizeLines": 485, - "fileCategory": "code" - }, - { - "path": "benchmarks/probes/judge-swap-validation/probe-script.py", - "language": "python", - "sizeLines": 486, - "fileCategory": "code" - }, - { - "path": "benchmarks/probes/judge-swap-validation/reprobe-memo.md", - "language": "markdown", - "sizeLines": 39, - "fileCategory": "docs" - }, - { - "path": "benchmarks/probes/judge-swap-validation/sample-instances.jsonl", - "language": "jsonl", - "sizeLines": 20, - "fileCategory": "code" - }, - { - "path": "benchmarks/probes/judge-swap-validation/split-cases-sample.jsonl", - "language": "jsonl", - "sizeLines": 7, - "fileCategory": "code" - }, - { - "path": "benchmarks/probes/judge-swap-validation/validation-memo.md", - "language": "markdown", - "sizeLines": 30, - "fileCategory": "docs" - }, - { - "path": "benchmarks/probes/judge-swap-validation/zhipu-responses.jsonl", - "language": "jsonl", - "sizeLines": 20, - "fileCategory": "code" - }, - { - "path": "benchmarks/probes/judge-swap-validation/zhipu-split-responses.jsonl", - "language": "jsonl", - "sizeLines": 7, - "fileCategory": "code" - }, - { - "path": "benchmarks/probes/vertex-batch-eligibility/eligibility-memo.md", - "language": "markdown", - "sizeLines": 32, - "fileCategory": "docs" - }, - { - "path": "benchmarks/probes/vertex-batch-eligibility/probe-input.jsonl", - "language": "jsonl", - "sizeLines": 5, - "fileCategory": "code" - }, - { - "path": "benchmarks/probes/vertex-batch-eligibility/probe-script.py", - "language": "python", - "sizeLines": 378, - "fileCategory": "code" - }, - { - "path": "benchmarks/results/.gitkeep", - "language": "unknown", - "sizeLines": 1, - "fileCategory": "code" - }, - { - "path": "benchmarks/results/agentic-locomo-2026-04-25T16-13-29-924Z.jsonl", - "language": "jsonl", - "sizeLines": 400, - "fileCategory": "code" - }, - { - "path": "benchmarks/results/agentic-locomo-2026-04-25T16-13-29-924Z.summary.json", - "language": "json", - "sizeLines": 42, - "fileCategory": "config" - }, - { - "path": "benchmarks/results/gepa-faza1/checkpoint-c/checkpoint-c-eval.jsonl", - "language": "jsonl", - "sizeLines": 15, - "fileCategory": "code" - }, - { - "path": "benchmarks/results/gepa-faza1/checkpoint-c/checkpoint-c-report.md", - "language": "markdown", - "sizeLines": 252, - "fileCategory": "docs" - }, - { - "path": "benchmarks/results/gepa-faza1/checkpoint-c/checkpoint-c-summary.json", - "language": "json", - "sizeLines": 113, - "fileCategory": "config" - }, - { - "path": "benchmarks/results/gepa-faza1/checkpoint-c/final-kappa-audit.json", - "language": "json", - "sizeLines": 43, - "fileCategory": "config" - }, - { - "path": "benchmarks/results/gepa-faza1/corpus/h3-northlane-cfo-50-instances.jsonl", - "language": "jsonl", - "sizeLines": 50, - "fileCategory": "code" - }, - { - "path": "benchmarks/results/gepa-faza1/corpus/h3-spot-audit-pre-a-addendum.md", - "language": "markdown", - "sizeLines": 159, - "fileCategory": "docs" - }, - { - "path": "benchmarks/results/gepa-faza1/corpus/h3-spot-audit-pre-a-report.md", - "language": "markdown", - "sizeLines": 159, - "fileCategory": "docs" - }, - { - "path": "benchmarks/results/gepa-faza1/corpus/texture-audit-side-by-side.md", - "language": "markdown", - "sizeLines": 297, - "fileCategory": "docs" - }, - { - "path": "benchmarks/results/gepa-faza1/gen-1/checkpoint-b-report.md", - "language": "markdown", - "sizeLines": 239, - "fileCategory": "docs" - }, - { - "path": "benchmarks/results/gepa-faza1/gen-1/final-gen-1-close-report.md", - "language": "markdown", - "sizeLines": 305, - "fileCategory": "docs" - }, - { - "path": "benchmarks/results/gepa-faza1/gen-1/full-gen-1-halt-report.md", - "language": "markdown", - "sizeLines": 305, - "fileCategory": "docs" - }, - { - "path": "benchmarks/results/gepa-faza1/gen-1/gen-1-eval-void-registry-bug-superseded.jsonl", - "language": "jsonl", - "sizeLines": 11, - "fileCategory": "code" - }, - { - "path": "benchmarks/results/gepa-faza1/gen-1/gen-1-eval.jsonl", - "language": "jsonl", - "sizeLines": 120, - "fileCategory": "code" - }, - { - "path": "benchmarks/results/gepa-faza1/gen-1/gen-1-summary-void-registry-bug-superseded.json", - "language": "json", - "sizeLines": 86, - "fileCategory": "config" - }, - { - "path": "benchmarks/results/gepa-faza1/gen-1/gen-1-summary.json", - "language": "json", - "sizeLines": 333, - "fileCategory": "config" - }, - { - "path": "benchmarks/results/gepa-faza1/gen-1/investigate-report.md", - "language": "markdown", - "sizeLines": 272, - "fileCategory": "docs" - }, - { - "path": "benchmarks/results/gepa-faza1/gen-1/mutation-oracle-manifest.json", - "language": "json", - "sizeLines": 98, - "fileCategory": "config" - }, - { - "path": "benchmarks/results/gepa-faza1/gen-1/post-amendment-10-halt-report.md", - "language": "markdown", - "sizeLines": 246, - "fileCategory": "docs" - }, - { - "path": "benchmarks/results/gepa-faza1/null-baseline/checkpoint-a-aggregates-artifactual-bug-superseded.json", - "language": "json", - "sizeLines": 64, - "fileCategory": "config" - }, - { - "path": "benchmarks/results/gepa-faza1/null-baseline/checkpoint-a-report-artifactual-bug-superseded.md", - "language": "markdown", - "sizeLines": 227, - "fileCategory": "docs" - }, - { - "path": "benchmarks/results/gepa-faza1/null-baseline/checkpoint-a-report.md", - "language": "markdown", - "sizeLines": 227, - "fileCategory": "docs" - }, - { - "path": "benchmarks/results/gepa-faza1/null-baseline/checkpoint-a-v2-aggregates.json", - "language": "json", - "sizeLines": 101, - "fileCategory": "config" - }, - { - "path": "benchmarks/results/gepa-faza1/null-baseline/null-baseline-eval-artifactual-bug-superseded.jsonl", - "language": "jsonl", - "sizeLines": 40, - "fileCategory": "code" - }, - { - "path": "benchmarks/results/gepa-faza1/null-baseline/null-baseline-eval.jsonl", - "language": "jsonl", - "sizeLines": 40, - "fileCategory": "code" - }, - { - "path": "benchmarks/results/gepa-faza1/null-baseline/null-baseline-summary-artifactual-bug-superseded.json", - "language": "json", - "sizeLines": 85, - "fileCategory": "config" - }, - { - "path": "benchmarks/results/gepa-faza1/null-baseline/null-baseline-summary.json", - "language": "json", - "sizeLines": 85, - "fileCategory": "config" - }, - { - "path": "benchmarks/results/manifest-v4-litellm-config-scope-audit.md", - "language": "markdown", - "sizeLines": 16, - "fileCategory": "docs" - }, - { - "path": "benchmarks/results/manifest-v4-lock-semantics-clarification.md", - "language": "markdown", - "sizeLines": 45, - "fileCategory": "docs" - }, - { - "path": "benchmarks/results/manifest-v4-preregistration.md", - "language": "markdown", - "sizeLines": 411, - "fileCategory": "docs" - }, - { - "path": "benchmarks/results/manifest-v4-preregistration.yaml", - "language": "yaml", - "sizeLines": 457, - "fileCategory": "config" - }, - { - "path": "benchmarks/results/manifest-v4-runner-early-exit-rca.md", - "language": "markdown", - "sizeLines": 41, - "fileCategory": "docs" - }, - { - "path": "benchmarks/results/manifest-v5-rpd-feasibility-check.md", - "language": "markdown", - "sizeLines": 33, - "fileCategory": "docs" - }, - { - "path": "benchmarks/results/pilot-2026-04-26/invalidated/pilot-task-1-C.invalidated-2026-04-26T01-33-08-392Z.jsonl", - "language": "jsonl", - "sizeLines": 1, - "fileCategory": "code" - }, - { - "path": "benchmarks/results/pilot-2026-04-26/invalidated/pilot-task-1-D.invalidated-2026-04-26T01-35-05-441Z.jsonl", - "language": "jsonl", - "sizeLines": 1, - "fileCategory": "code" - }, - { - "path": "benchmarks/results/pilot-2026-04-26/pilot-summary.json", - "language": "json", - "sizeLines": 53, - "fileCategory": "config" - }, - { - "path": "benchmarks/results/pilot-2026-04-26/pilot-task-1-A.jsonl", - "language": "jsonl", - "sizeLines": 1, - "fileCategory": "code" - }, - { - "path": "benchmarks/results/pilot-2026-04-26/pilot-task-1-B.jsonl", - "language": "jsonl", - "sizeLines": 1, - "fileCategory": "code" - }, - { - "path": "benchmarks/results/pilot-2026-04-26/pilot-task-1-C.jsonl", - "language": "jsonl", - "sizeLines": 1, - "fileCategory": "code" - }, - { - "path": "benchmarks/results/pilot-2026-04-26/pilot-task-1-D.jsonl", - "language": "jsonl", - "sizeLines": 1, - "fileCategory": "code" - }, - { - "path": "benchmarks/results/pilot-2026-04-26/pilot-task-2-A.jsonl", - "language": "jsonl", - "sizeLines": 1, - "fileCategory": "code" - }, - { - "path": "benchmarks/results/pilot-2026-04-26/pilot-task-2-B.jsonl", - "language": "jsonl", - "sizeLines": 1, - "fileCategory": "code" - }, - { - "path": "benchmarks/results/pilot-2026-04-26/pilot-task-2-C.jsonl", - "language": "jsonl", - "sizeLines": 1, - "fileCategory": "code" - }, - { - "path": "benchmarks/results/pilot-2026-04-26/pilot-task-2-D.jsonl", - "language": "jsonl", - "sizeLines": 1, - "fileCategory": "code" - }, - { - "path": "benchmarks/results/pilot-2026-04-26/pilot-task-3-A.jsonl", - "language": "jsonl", - "sizeLines": 1, - "fileCategory": "code" - }, - { - "path": "benchmarks/results/pilot-2026-04-26/pilot-task-3-B.jsonl", - "language": "jsonl", - "sizeLines": 1, - "fileCategory": "code" - }, - { - "path": "benchmarks/results/pilot-2026-04-26/pilot-task-3-C.jsonl", - "language": "jsonl", - "sizeLines": 1, - "fileCategory": "code" - }, - { - "path": "benchmarks/results/pilot-2026-04-26/pilot-task-3-D.jsonl", - "language": "jsonl", - "sizeLines": 1, - "fileCategory": "code" - }, - { - "path": "benchmarks/results/pilot-2026-04-26/prompts-archive/task-1-cell-A-prompt.md", - "language": "markdown", - "sizeLines": 186, - "fileCategory": "docs" - }, - { - "path": "benchmarks/results/pilot-2026-04-26/prompts-archive/task-1-cell-B-trace.md", - "language": "markdown", - "sizeLines": 103, - "fileCategory": "docs" - }, - { - "path": "benchmarks/results/pilot-2026-04-26/prompts-archive/task-1-cell-C-prompt.md", - "language": "markdown", - "sizeLines": 186, - "fileCategory": "docs" - }, - { - "path": "benchmarks/results/pilot-2026-04-26/prompts-archive/task-1-cell-D-trace.md", - "language": "markdown", - "sizeLines": 75, - "fileCategory": "docs" - }, - { - "path": "benchmarks/results/pilot-2026-04-26/prompts-archive/task-2-cell-A-prompt.md", - "language": "markdown", - "sizeLines": 271, - "fileCategory": "docs" - }, - { - "path": "benchmarks/results/pilot-2026-04-26/prompts-archive/task-2-cell-B-trace.md", - "language": "markdown", - "sizeLines": 98, - "fileCategory": "docs" - }, - { - "path": "benchmarks/results/pilot-2026-04-26/prompts-archive/task-2-cell-C-prompt.md", - "language": "markdown", - "sizeLines": 271, - "fileCategory": "docs" - }, - { - "path": "benchmarks/results/pilot-2026-04-26/prompts-archive/task-2-cell-D-trace.md", - "language": "markdown", - "sizeLines": 76, - "fileCategory": "docs" - }, - { - "path": "benchmarks/results/pilot-2026-04-26/prompts-archive/task-3-cell-A-prompt.md", - "language": "markdown", - "sizeLines": 151, - "fileCategory": "docs" - }, - { - "path": "benchmarks/results/pilot-2026-04-26/prompts-archive/task-3-cell-B-trace.md", - "language": "markdown", - "sizeLines": 149, - "fileCategory": "docs" - }, - { - "path": "benchmarks/results/pilot-2026-04-26/prompts-archive/task-3-cell-C-prompt.md", - "language": "markdown", - "sizeLines": 151, - "fileCategory": "docs" - }, - { - "path": "benchmarks/results/pilot-2026-04-26/prompts-archive/task-3-cell-D-trace.md", - "language": "markdown", - "sizeLines": 126, - "fileCategory": "docs" - }, - { - "path": "benchmarks/results/stage3-gate-p-plus-probe-log.jsonl", - "language": "jsonl", - "sizeLines": 50, - "fileCategory": "code" - }, - { - "path": "benchmarks/results/stage3-gate-p-plus-probe-summary.md", - "language": "markdown", - "sizeLines": 15, - "fileCategory": "docs" - }, - { - "path": "benchmarks/results/stage3-gate-p-plus-probe-v2-log.jsonl", - "language": "jsonl", - "sizeLines": 30, - "fileCategory": "code" - }, - { - "path": "benchmarks/results/stage3-gate-p-plus-probe-v2-summary.md", - "language": "markdown", - "sizeLines": 7, - "fileCategory": "docs" - }, - { - "path": "benchmarks/results/stage3-n400-v6-final-5cell-summary.md", - "language": "markdown", - "sizeLines": 76, - "fileCategory": "docs" - }, - { - "path": "benchmarks/results/stage3-n400-v6-final-analysis.md", - "language": "markdown", - "sizeLines": 159, - "fileCategory": "docs" - }, - { - "path": "benchmarks/results/stage3-n400-v6-final-memo.md", - "language": "markdown", - "sizeLines": 46, - "fileCategory": "docs" - }, - { - "path": "benchmarks/results/stage3-n400-v6-followup-typeerror-cluster.md", - "language": "markdown", - "sizeLines": 43, - "fileCategory": "docs" - }, - { - "path": "benchmarks/results/v6-self-judge-rebench/apples-to-apples-memo.md", - "language": "markdown", - "sizeLines": 40, - "fileCategory": "docs" - }, - { - "path": "benchmarks/results/v6-self-judge-rebench/qwen-self-judge-results.jsonl", - "language": "jsonl", - "sizeLines": 2000, - "fileCategory": "code" - }, - { - "path": "benchmarks/results/v6-self-judge-rebench/self-judge-vs-trio-comparison.md", - "language": "markdown", - "sizeLines": 78, - "fileCategory": "docs" - }, - { - "path": "benchmarks/scripts/migrate-cell-names.ts", - "language": "typescript", - "sizeLines": 245, - "fileCategory": "code" - }, - { - "path": "CLAUDE.md", - "language": "markdown", - "sizeLines": 631, - "fileCategory": "docs" - }, - { - "path": "decisions/2026-04-26-agent-fix-sprint-plan.md", - "language": "markdown", - "sizeLines": 237, - "fileCategory": "docs" - }, - { - "path": "decisions/2026-04-26-pilot-verdict-FAIL.md", - "language": "markdown", - "sizeLines": 175, - "fileCategory": "docs" - }, - { - "path": "docker-compose.production.yml", - "language": "yaml", - "sizeLines": 117, - "fileCategory": "infra" - }, - { - "path": "docker-compose.yml", - "language": "yaml", - "sizeLines": 93, - "fileCategory": "infra" - }, - { - "path": "Dockerfile", - "language": "dockerfile", - "sizeLines": 98, - "fileCategory": "infra" - }, - { - "path": "docs/.evolution-hypothesis-2026-04-14T08-04-57/01-evolved-prompt.json", - "language": "json", - "sizeLines": 19, - "fileCategory": "config" - }, - { - "path": "docs/.evolution-hypothesis-2026-04-14T08-04-57/02a-arm-a-outputs.json", - "language": "json", - "sizeLines": 41, - "fileCategory": "config" - }, - { - "path": "docs/.evolution-hypothesis-2026-04-14T08-04-57/02b-arm-b-outputs.json", - "language": "json", - "sizeLines": 41, - "fileCategory": "config" - }, - { - "path": "docs/.evolution-hypothesis-2026-04-14T08-04-57/02c-arm-c-outputs.json", - "language": "json", - "sizeLines": 41, - "fileCategory": "config" - }, - { - "path": "docs/.evolution-hypothesis-2026-04-14T08-04-57/03-judge-scores.json", - "language": "json", - "sizeLines": 1113, - "fileCategory": "config" - }, - { - "path": "docs/addiction-features/01-memory-streak.md", - "language": "markdown", - "sizeLines": 92, - "fileCategory": "docs" - }, - { - "path": "docs/addiction-features/02-daily-brief.md", - "language": "markdown", - "sizeLines": 118, - "fileCategory": "docs" - }, - { - "path": "docs/addiction-features/03-continuity-banner.md", - "language": "markdown", - "sizeLines": 87, - "fileCategory": "docs" - }, - { - "path": "docs/addiction-features/04-weekly-wins-digest.md", - "language": "markdown", - "sizeLines": 126, - "fileCategory": "docs" - }, - { - "path": "docs/addiction-features/05-milestone-cards.md", - "language": "markdown", - "sizeLines": 109, - "fileCategory": "docs" - }, - { - "path": "docs/addiction-features/06-tour-replay.md", - "language": "markdown", - "sizeLines": 80, - "fileCategory": "docs" - }, - { - "path": "docs/addiction-features/07-pending-imports-reminder.md", - "language": "markdown", - "sizeLines": 93, - "fileCategory": "docs" - }, - { - "path": "docs/addiction-features/README.md", - "language": "markdown", - "sizeLines": 122, - "fileCategory": "docs" - }, - { - "path": "docs/addictiveness-audit-2026-05-28/BASELINE.md", - "language": "markdown", - "sizeLines": 91, - "fileCategory": "docs" - }, - { - "path": "docs/addictiveness-audit-2026-05-28/BENCHMARK-claude-code-nc.md", - "language": "markdown", - "sizeLines": 68, - "fileCategory": "docs" - }, - { - "path": "docs/addictiveness-audit-2026-05-28/BENCHMARK-cowork.md", - "language": "markdown", - "sizeLines": 51, - "fileCategory": "docs" - }, - { - "path": "docs/addictiveness-audit-2026-05-28/BENCHMARK-hermes.md", - "language": "markdown", - "sizeLines": 77, - "fileCategory": "docs" - }, - { - "path": "docs/addictiveness-audit-2026-05-28/BENCHMARK-openclaw.md", - "language": "markdown", - "sizeLines": 63, - "fileCategory": "docs" - }, - { - "path": "docs/addictiveness-audit-2026-05-28/FEATURE-REQUESTS.md", - "language": "markdown", - "sizeLines": 108, - "fileCategory": "docs" - }, - { - "path": "docs/addictiveness-audit-2026-05-28/ITER-1-RESULTS.md", - "language": "markdown", - "sizeLines": 45, - "fileCategory": "docs" - }, - { - "path": "docs/addictiveness-audit-2026-05-28/ITER-2-RESULTS.md", - "language": "markdown", - "sizeLines": 51, - "fileCategory": "docs" - }, - { - "path": "docs/addictiveness-audit-2026-05-28/ITER-3-RESULTS.md", - "language": "markdown", - "sizeLines": 53, - "fileCategory": "docs" - }, - { - "path": "docs/addictiveness-audit-2026-05-28/ITER-4-RESULTS.md", - "language": "markdown", - "sizeLines": 52, - "fileCategory": "docs" - }, - { - "path": "docs/addictiveness-audit-2026-05-28/ITER-5-RESULTS.md", - "language": "markdown", - "sizeLines": 61, - "fileCategory": "docs" - }, - { - "path": "docs/addictiveness-audit-2026-05-28/ITER-6-RESULTS.md", - "language": "markdown", - "sizeLines": 68, - "fileCategory": "docs" - }, - { - "path": "docs/addictiveness-audit-2026-05-28/ITER-7-RESULTS.md", - "language": "markdown", - "sizeLines": 76, - "fileCategory": "docs" - }, - { - "path": "docs/addictiveness-audit-2026-05-28/PERSONAS.md", - "language": "markdown", - "sizeLines": 121, - "fileCategory": "docs" - }, - { - "path": "docs/addictiveness-audit-2026-05-28/PLAN.md", - "language": "markdown", - "sizeLines": 27, - "fileCategory": "docs" - }, - { - "path": "docs/addictiveness-audit-2026-05-28/REDUNDANCY-AUDIT.md", - "language": "markdown", - "sizeLines": 54, - "fileCategory": "docs" - }, - { - "path": "docs/addictiveness-audit-2026-05-28/RUBRIC.md", - "language": "markdown", - "sizeLines": 48, - "fileCategory": "docs" - }, - { - "path": "docs/addictiveness-audit-2026-05-28/SURFACES.md", - "language": "markdown", - "sizeLines": 102, - "fileCategory": "docs" - }, - { - "path": "docs/AGENT-AUDIT-RESULTS-2026-04-16.json", - "language": "json", - "sizeLines": 271, - "fileCategory": "config" - }, - { - "path": "docs/AGENT-BEHAVIOR-AUDIT-2026-04-16.md", - "language": "markdown", - "sizeLines": 54, - "fileCategory": "docs" - }, - { - "path": "docs/AI-ACT-AUDIT-2026-04-10.json", - "language": "json", - "sizeLines": 93, - "fileCategory": "config" - }, - { - "path": "docs/AI-ACT-AUDIT-2026-04-10.md", - "language": "markdown", - "sizeLines": 143, - "fileCategory": "docs" - }, - { - "path": "docs/AI-ACT-COMPLIANCE-PROOF-2026-04-16.md", - "language": "markdown", - "sizeLines": 699, - "fileCategory": "docs" - }, - { - "path": "docs/ARCHITECTURE.md", - "language": "markdown", - "sizeLines": 245, - "fileCategory": "docs" - }, - { - "path": "docs/AUDIT-PERSONAL-MIND-2026-04-10.md", - "language": "markdown", - "sizeLines": 276, - "fileCategory": "docs" - }, - { - "path": "docs/audits/2026-05-29-prod-readiness/REPORT.md", - "language": "markdown", - "sizeLines": 162, - "fileCategory": "docs" - }, - { - "path": "docs/audits/2026-06-01-full-repo-verification-sweep.md", - "language": "markdown", - "sizeLines": 75, - "fileCategory": "docs" - }, - { - "path": "docs/audits/2026-06-01-memory-overclaim-investigation.md", - "language": "markdown", - "sizeLines": 88, - "fileCategory": "docs" - }, - { - "path": "docs/audits/2026-06-01-production-readiness-assessment.md", - "language": "markdown", - "sizeLines": 117, - "fileCategory": "docs" - }, - { - "path": "docs/audits/2026-06-01-vision-e2e-harness-design.md", - "language": "markdown", - "sizeLines": 145, - "fileCategory": "docs" - }, - { - "path": "docs/backend-map/00-MENTAL-MODEL.md", - "language": "markdown", - "sizeLines": 218, - "fileCategory": "docs" - }, - { - "path": "docs/backend-map/07-FRONTEND-REBUILD-GUIDE.md", - "language": "markdown", - "sizeLines": 447, - "fileCategory": "docs" - }, - { - "path": "docs/backend-map/AUDIT.md", - "language": "markdown", - "sizeLines": 144, - "fileCategory": "docs" - }, - { - "path": "docs/backend-map/DIAGRAMS/01-system-architecture.md", - "language": "markdown", - "sizeLines": 147, - "fileCategory": "docs" - }, - { - "path": "docs/backend-map/DIAGRAMS/02-master-er.md", - "language": "markdown", - "sizeLines": 466, - "fileCategory": "docs" - }, - { - "path": "docs/backend-map/DIAGRAMS/03-chat-turn-sequence.md", - "language": "markdown", - "sizeLines": 80, - "fileCategory": "docs" - }, - { - "path": "docs/backend-map/DIAGRAMS/04-feature-api-map.md", - "language": "markdown", - "sizeLines": 218, - "fileCategory": "docs" - }, - { - "path": "docs/backend-map/DIAGRAMS/05-tier-gating.md", - "language": "markdown", - "sizeLines": 159, - "fileCategory": "docs" - }, - { - "path": "docs/backend-map/DIAGRAMS/06-api-domains.md", - "language": "markdown", - "sizeLines": 110, - "fileCategory": "docs" - }, - { - "path": "docs/backend-map/README.md", - "language": "markdown", - "sizeLines": 109, - "fileCategory": "docs" - }, - { - "path": "docs/backend-map/sections/02a-data-model-memory.md", - "language": "markdown", - "sizeLines": 542, - "fileCategory": "docs" - }, - { - "path": "docs/backend-map/sections/02b-data-model-relational.md", - "language": "markdown", - "sizeLines": 575, - "fileCategory": "docs" - }, - { - "path": "docs/backend-map/sections/02c-shared-types-tiers.md", - "language": "markdown", - "sizeLines": 646, - "fileCategory": "docs" - }, - { - "path": "docs/backend-map/sections/03a-api-chat-agents.md", - "language": "markdown", - "sizeLines": 296, - "fileCategory": "docs" - }, - { - "path": "docs/backend-map/sections/03b-api-memory.md", - "language": "markdown", - "sizeLines": 430, - "fileCategory": "docs" - }, - { - "path": "docs/backend-map/sections/03c-api-workspace-team.md", - "language": "markdown", - "sizeLines": 461, - "fileCategory": "docs" - }, - { - "path": "docs/backend-map/sections/03d-api-marketplace-skills.md", - "language": "markdown", - "sizeLines": 531, - "fileCategory": "docs" - }, - { - "path": "docs/backend-map/sections/03e-api-evolution-governance.md", - "language": "markdown", - "sizeLines": 457, - "fileCategory": "docs" - }, - { - "path": "docs/backend-map/sections/03f-api-realtime-ops.md", - "language": "markdown", - "sizeLines": 347, - "fileCategory": "docs" - }, - { - "path": "docs/backend-map/sections/03g-api-cloud-billing-kvark.md", - "language": "markdown", - "sizeLines": 294, - "fileCategory": "docs" - }, - { - "path": "docs/backend-map/sections/04-feature-map.md", - "language": "markdown", - "sizeLines": 525, - "fileCategory": "docs" - }, - { - "path": "docs/backend-map/sections/05a-subsystem-agent-runtime.md", - "language": "markdown", - "sizeLines": 404, - "fileCategory": "docs" - }, - { - "path": "docs/backend-map/sections/05b-subsystem-memory.md", - "language": "markdown", - "sizeLines": 337, - "fileCategory": "docs" - }, - { - "path": "docs/backend-map/sections/05c-subsystem-harvest.md", - "language": "markdown", - "sizeLines": 261, - "fileCategory": "docs" - }, - { - "path": "docs/backend-map/sections/05d-subsystem-evolution.md", - "language": "markdown", - "sizeLines": 352, - "fileCategory": "docs" - }, - { - "path": "docs/backend-map/sections/05e-subsystem-waggledance-aios.md", - "language": "markdown", - "sizeLines": 413, - "fileCategory": "docs" - }, - { - "path": "docs/backend-map/sections/05f-subsystem-capabilities-tiers.md", - "language": "markdown", - "sizeLines": 439, - "fileCategory": "docs" - }, - { - "path": "docs/backend-map/sections/05g-subsystem-skills-marketplace-wiki.md", - "language": "markdown", - "sizeLines": 547, - "fileCategory": "docs" - }, - { - "path": "docs/backend-map/WAGGLE-BACKEND-VISUAL.html", - "language": "html", - "sizeLines": 1552, - "fileCategory": "markup" - }, - { - "path": "docs/BRAND-VOICE.md", - "language": "markdown", - "sizeLines": 106, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-19-engineering-audit-pre-benchmark.md", - "language": "markdown", - "sizeLines": 225, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-19-handoff-claude-code.md", - "language": "markdown", - "sizeLines": 92, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-19-launch-copy-variants.md", - "language": "markdown", - "sizeLines": 378, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-19-sota-benchmark-audit-readiness.md", - "language": "markdown", - "sizeLines": 192, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-19-sota-benchmark-pre-mortem.md", - "language": "markdown", - "sizeLines": 261, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-20-benchmark-scope-expansion-paired.md", - "language": "markdown", - "sizeLines": 122, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-20-cc-preflight-prep-tasks.md", - "language": "markdown", - "sizeLines": 184, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-20-cc-sprint-7-tasks.md", - "language": "markdown", - "sizeLines": 426, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-20-cc-sprint-9-tasks.md", - "language": "markdown", - "sizeLines": 278, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-20-cc-stage-0-dogfood-tasks.md", - "language": "markdown", - "sizeLines": 197, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-20-claude-design-setup-submission.md", - "language": "markdown", - "sizeLines": 82, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-20-launch-copy-dual-axis-revision.md", - "language": "markdown", - "sizeLines": 202, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-21-cc-sprint-10-tasks.md", - "language": "markdown", - "sizeLines": 282, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-22-bee-writer-sleeping-regen-brief.md", - "language": "markdown", - "sizeLines": 110, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-22-brand-bee-personas-card-spec.md", - "language": "markdown", - "sizeLines": 138, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-22-cc-bee-regen-execution.md", - "language": "markdown", - "sizeLines": 148, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-22-cc-c2-stage1-mikroeval-kickoff.md", - "language": "markdown", - "sizeLines": 109, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-22-cc-c3-stage2-mini-kickoff.md", - "language": "markdown", - "sizeLines": 172, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-22-cc-day2-am-kickoff.md", - "language": "markdown", - "sizeLines": 139, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-22-cc-personas-card-component-parallel.md", - "language": "markdown", - "sizeLines": 221, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-22-cc-sprint-10-day-3.md", - "language": "markdown", - "sizeLines": 160, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-22-cc-sprint-10-parallel-close-tasks.md", - "language": "markdown", - "sizeLines": 171, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-22-cc-sprint-11-kickoff.md", - "language": "markdown", - "sizeLines": 317, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-22-cc-sprint-12-task1-judge-role-remap.md", - "language": "markdown", - "sizeLines": 136, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-22-cc-sprint-12-task1-session2-brief.md", - "language": "markdown", - "sizeLines": 313, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-22-cc-sprint-12-task1-session3-brief.md", - "language": "markdown", - "sizeLines": 292, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-22-claude-design-landing-brief.md", - "language": "markdown", - "sizeLines": 359, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-22-personas-card-copy-refinement.md", - "language": "markdown", - "sizeLines": 156, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-22-sprint-12-scope-draft.md", - "language": "markdown", - "sizeLines": 238, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-23-cc-sprint-12-task2-c3-mini-kickoff.md", - "language": "markdown", - "sizeLines": 208, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-23-cc1-prompt-v3-c3-stage2-trilateral-smoke-full-retry.md", - "language": "markdown", - "sizeLines": 211, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-23-ds-audit-honeycomb-and-stubs-findings.md", - "language": "markdown", - "sizeLines": 127, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-23-ds-audit-v2-macOS-paradigm-correction.md", - "language": "markdown", - "sizeLines": 149, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-24-cc-task25-stage2-retry-kickoff.md", - "language": "markdown", - "sizeLines": 347, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-24-cc-task25-stage3-n400-kickoff.md", - "language": "markdown", - "sizeLines": 285, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-24-cc-task25-stage3-rekick-option-a.md", - "language": "markdown", - "sizeLines": 188, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-24-cc1-judge-swap-stratified-reprobe-brief.md", - "language": "markdown", - "sizeLines": 203, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-24-cc1-judge-swap-validation-probe-brief.md", - "language": "markdown", - "sizeLines": 273, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-24-cc1-manifest-v6-phase1-kappa-recal-brief.md", - "language": "markdown", - "sizeLines": 257, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-24-cc1-manifest-v6-phase2-n400-execution-brief.md", - "language": "markdown", - "sizeLines": 225, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-24-cc1-v6-section-5-2-clarification-brief.md", - "language": "markdown", - "sizeLines": 161, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-24-cc1-vertex-batch-eligibility-probe-brief.md", - "language": "markdown", - "sizeLines": 177, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-25-cc1-apps-www-nextjs-port-brief.md", - "language": "markdown", - "sizeLines": 518, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-25-launch-comms-templates.md", - "language": "markdown", - "sizeLines": 411, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-25-mvp-shim-package-layouts.md", - "language": "markdown", - "sizeLines": 398, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-25-universal-silent-capture-strategy.md", - "language": "markdown", - "sizeLines": 334, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-26-agentic-knowledge-work-pilot/cc1-brief-amendment-2026-04-26.md", - "language": "markdown", - "sizeLines": 223, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-26-agentic-knowledge-work-pilot/cc1-brief-amendment-v2-2026-04-26.md", - "language": "markdown", - "sizeLines": 164, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-26-agentic-knowledge-work-pilot/cc1-brief.md", - "language": "markdown", - "sizeLines": 217, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-26-agentic-knowledge-work-pilot/judge-rubric.md", - "language": "markdown", - "sizeLines": 221, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-26-agentic-knowledge-work-pilot/README.md", - "language": "markdown", - "sizeLines": 64, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-26-agentic-knowledge-work-pilot/task-1-strategic-synthesis.md", - "language": "markdown", - "sizeLines": 186, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-26-agentic-knowledge-work-pilot/task-2-cross-thread-coordination.md", - "language": "markdown", - "sizeLines": 277, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-26-agentic-knowledge-work-pilot/task-3-decision-support.md", - "language": "markdown", - "sizeLines": 160, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-26-harness-audit-tiered-fix-plan.md", - "language": "markdown", - "sizeLines": 380, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-26-landing-copy-v3.md", - "language": "markdown", - "sizeLines": 319, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-26-memory-sync-repair-cc2-brief.md", - "language": "markdown", - "sizeLines": 267, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-26-retrieval-v2-embeddings-audit-brief.md", - "language": "markdown", - "sizeLines": 352, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-27-substrate-integrity-audit-brief.md", - "language": "markdown", - "sizeLines": 182, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-28-cc4-faza1-amendment-1.md", - "language": "markdown", - "sizeLines": 251, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-28-cc4-faza1-amendment-2.md", - "language": "markdown", - "sizeLines": 171, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-28-cc4-faza1-preflight-report.md", - "language": "markdown", - "sizeLines": 238, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-28-cc4-gepa-tier2-evolution-faza1-brief.md", - "language": "markdown", - "sizeLines": 265, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-28-claude-design-landing-setup.md", - "language": "markdown", - "sizeLines": 320, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-28-claude-design-landing-v2-prompt.md", - "language": "markdown", - "sizeLines": 508, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-28-claude-design-landing-v2.1-prompt.md", - "language": "markdown", - "sizeLines": 482, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-28-claude-design-landing-v2.2-prompt.md", - "language": "markdown", - "sizeLines": 527, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-28-claude-design-landing-v2.3-prompt.md", - "language": "markdown", - "sizeLines": 513, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-28-landing-copy-v4-waggle-product.md", - "language": "markdown", - "sizeLines": 459, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-29-benchmark-portfolio-refresh-2026-venues.md", - "language": "markdown", - "sizeLines": 233, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-29-phase-5-deployment-brief-v1.md", - "language": "markdown", - "sizeLines": 427, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-29-ui-ux-component-inventory.md", - "language": "markdown", - "sizeLines": 406, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-29-ui-ux-inventory-landing.md", - "language": "markdown", - "sizeLines": 302, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-29-ui-ux-inventory-os-shell.md", - "language": "markdown", - "sizeLines": 391, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-29-wave1-hooks-cleanup-brief.md", - "language": "markdown", - "sizeLines": 128, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-30-cc-kickoff-phase-5.md", - "language": "markdown", - "sizeLines": 115, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-30-cc-sesija-A-waggle-apps-web-integration.md", - "language": "markdown", - "sizeLines": 194, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-30-cc-sesija-B-hive-mind-monorepo-migration.md", - "language": "markdown", - "sizeLines": 245, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-30-cc-sesija-C-gaia2-setup-dry-verification.md", - "language": "markdown", - "sizeLines": 174, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-04-30-cc-sesija-C-gaia2-setup-evidence.md", - "language": "markdown", - "sizeLines": 159, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-05-01-cc-e2e-support-build-and-fix.md", - "language": "markdown", - "sizeLines": 165, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-05-01-cc-sesija-D-apps-web-ui-alignment.md", - "language": "markdown", - "sizeLines": 223, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-05-02-cc-sesija-D-apps-www-port-v3.2-amendment.md", - "language": "markdown", - "sizeLines": 170, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-05-03-cc-sesija-E-clerk-stripe-linkage-logo-fix.md", - "language": "markdown", - "sizeLines": 352, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-05-05-claude-md-amendment-invariants.md", - "language": "markdown", - "sizeLines": 207, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-05-05-day-0-minus-1-runbook.md", - "language": "markdown", - "sizeLines": 588, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/2026-05-10-day-0-minus-1-runbook-amendment-post-consolidation.md", - "language": "markdown", - "sizeLines": 127, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/COWORK-PM-HUB-BRIEF.txt", - "language": "txt", - "sizeLines": 301, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/e2e-persona-tests/2026-04-25-e2e-persona-test-matrix.md", - "language": "markdown", - "sizeLines": 504, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/hive-mind-ci-npm-publish-brief-2026-04-19.md", - "language": "markdown", - "sizeLines": 154, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/landing-auth-infra-brief-2026-04-18.md", - "language": "markdown", - "sizeLines": 166, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/track-b-benchmarks-brief-2026-04-19.md", - "language": "markdown", - "sizeLines": 105, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/WAGGLE-RECONCILIATION-BRIEF-V2.txt", - "language": "txt", - "sizeLines": 271, - "fileCategory": "docs" - }, - { - "path": "docs/briefs/WAGGLE-RECONCILIATION-BRIEF.md", - "language": "markdown", - "sizeLines": 308, - "fileCategory": "docs" - }, - { - "path": "docs/code-signing-pilot-and-launch.md", - "language": "markdown", - "sizeLines": 288, - "fileCategory": "docs" - }, - { - "path": "docs/CONTRIBUTING.md", - "language": "markdown", - "sizeLines": 148, - "fileCategory": "docs" - }, - { - "path": "docs/DAY-2-BACKLOG-2026-05-01.md", - "language": "markdown", - "sizeLines": 331, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-18-h34-hive-mind-extraction-closed.md", - "language": "markdown", - "sizeLines": 56, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-18-hive-mind-extraction-effort.md", - "language": "markdown", - "sizeLines": 45, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-18-landing-e2e-persona-workstream-authorized.md", - "language": "markdown", - "sizeLines": 36, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-18-launch-timing.md", - "language": "markdown", - "sizeLines": 31, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-18-stripe-pricing.md", - "language": "markdown", - "sizeLines": 38, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-19-audit-findings-track1-backlog.md", - "language": "markdown", - "sizeLines": 77, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-19-hive-mind-npm-shipped.md", - "language": "markdown", - "sizeLines": 69, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-19-persona-research-rev1-approved.md", - "language": "markdown", - "sizeLines": 117, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-19-target-model-qwen35b-locked.md", - "language": "markdown", - "sizeLines": 66, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-19-tracks-sequencing-locked.md", - "language": "markdown", - "sizeLines": 69, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-20-benchmark-7-obligations-locked.md", - "language": "markdown", - "sizeLines": 54, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-20-failure-mode-oq-resolutions-locked.md", - "language": "markdown", - "sizeLines": 79, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-20-gemma-week3-probe-locked.md", - "language": "markdown", - "sizeLines": 51, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-20-harness-spec-4-oq-locked.md", - "language": "markdown", - "sizeLines": 104, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-20-preflight-oq-resolutions-locked.md", - "language": "markdown", - "sizeLines": 103, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-20-preflight-stage2-4cell-amendment.md", - "language": "markdown", - "sizeLines": 83, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-20-verbose-fixed-oq-resolutions-locked.md", - "language": "markdown", - "sizeLines": 91, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-21-sprint-10-task-1.2-ratified-opus46-deferred.md", - "language": "markdown", - "sizeLines": 51, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-22-b3-lock-dashscope-addendum.md", - "language": "markdown", - "sizeLines": 132, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-22-bench-spec-locked.manifest.yaml", - "language": "yaml", - "sizeLines": 258, - "fileCategory": "config" - }, - { - "path": "docs/decisions/2026-04-22-bench-spec-locked.md", - "language": "markdown", - "sizeLines": 279, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-22-h-audit-1-design-ratified.md", - "language": "markdown", - "sizeLines": 155, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-22-landing-personas-ia-locked.md", - "language": "markdown", - "sizeLines": 105, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-22-model-route-naming-locked.md", - "language": "markdown", - "sizeLines": 82, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-22-personas-card-copy-locked.md", - "language": "markdown", - "sizeLines": 77, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-22-sprint-11-scope-locked.md", - "language": "markdown", - "sizeLines": 170, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-22-stage-2-full-kickoff-memo-DRAFT.md", - "language": "markdown", - "sizeLines": 186, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-22-stage-2-full-kickoff-memo.md", - "language": "markdown", - "sizeLines": 183, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-22-stage-2-primary-config-locked.md", - "language": "markdown", - "sizeLines": 128, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-22-tie-break-policy-locked.md", - "language": "markdown", - "sizeLines": 116, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-23-jsonl-record-taxonomy-split-locked.md", - "language": "markdown", - "sizeLines": 54, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-23-stage2-mini-manifest-v3.md", - "language": "markdown", - "sizeLines": 350, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-23-stage2-mini-manifest-v3.yaml", - "language": "yaml", - "sizeLines": 188, - "fileCategory": "config" - }, - { - "path": "docs/decisions/2026-04-23-stage2-mini-manifest.manifest.yaml", - "language": "yaml", - "sizeLines": 263, - "fileCategory": "config" - }, - { - "path": "docs/decisions/2026-04-23-stage2-mini-manifest.md", - "language": "markdown", - "sizeLines": 189, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-24-gate-d-option-a-ratified.md", - "language": "markdown", - "sizeLines": 53, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-24-pm-correctness-reanalysis-memo.md", - "language": "markdown", - "sizeLines": 74, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-24-pm-let-it-run-n400-phase-b.md", - "language": "markdown", - "sizeLines": 116, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-24-pm-ratify-judge-swap-validation-sequence.md", - "language": "markdown", - "sizeLines": 95, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-24-pm-ratify-litellm-scope-in-scope.md", - "language": "markdown", - "sizeLines": 50, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-24-pm-ratify-lock-semantics-path-l1.md", - "language": "markdown", - "sizeLines": 41, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-24-pm-ratify-probe-p2-path.md", - "language": "markdown", - "sizeLines": 61, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-24-pm-ratify-rca-task26-path.md", - "language": "markdown", - "sizeLines": 51, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-24-pm-ratify-v5-rpd.md", - "language": "markdown", - "sizeLines": 103, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-24-pm-ratify-v5-throttle.md", - "language": "markdown", - "sizeLines": 80, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-24-pm-ratify-v6-5-2-clarification.md", - "language": "markdown", - "sizeLines": 125, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-24-pm-ratify-v6-kappa.md", - "language": "markdown", - "sizeLines": 119, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-24-pm-ratify-vertex-batch-eligibility.md", - "language": "markdown", - "sizeLines": 95, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-25-launch-gate-reframe-decision-matrix.md", - "language": "markdown", - "sizeLines": 298, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-25-overnight-pm-execution-log.md", - "language": "markdown", - "sizeLines": 218, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-25-pm-pre-fill-decision-matrix-recommendations.md", - "language": "markdown", - "sizeLines": 329, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-26-decision-matrix-self-judge-reframe.md", - "language": "markdown", - "sizeLines": 221, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-26-memory-sync-audit.md", - "language": "markdown", - "sizeLines": 241, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-26-memory-sync-step1-results.md", - "language": "markdown", - "sizeLines": 127, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-26-memory-sync-step2-test-port-results.md", - "language": "markdown", - "sizeLines": 142, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-26-memory-sync-step3-cicd-results.md", - "language": "markdown", - "sizeLines": 310, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-26-phase-1-acceptance-gate-results.md", - "language": "markdown", - "sizeLines": 188, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-26-pilot-decision-template.md", - "language": "markdown", - "sizeLines": 231, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-26-pilot-verdict-FAIL.md", - "language": "markdown", - "sizeLines": 249, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-26-v2-pre-launch-sequencing-addendum.md", - "language": "markdown", - "sizeLines": 131, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-27-memory-sync-repair-CLOSED.md", - "language": "markdown", - "sizeLines": 501, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-27-phase-2-acceptance-gate-PASS.md", - "language": "markdown", - "sizeLines": 240, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-27-phase-2-gate-d3-rule-inspection.md", - "language": "markdown", - "sizeLines": 170, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-27-phase-3-acceptance-gate-pre-run-halt.md", - "language": "markdown", - "sizeLines": 253, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-27-phase-3-acceptance-gate-results.md", - "language": "markdown", - "sizeLines": 224, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-28-agent-fix-sprint-closure.md", - "language": "markdown", - "sizeLines": 251, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-28-gepa-faza1-launch.md", - "language": "markdown", - "sizeLines": 323, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-28-phase-4-3-pre-run-halt.md", - "language": "markdown", - "sizeLines": 215, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-28-phase-4-3-rescore-delta-report.md", - "language": "markdown", - "sizeLines": 172, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-28-phase-4-4-skills-audit-results.md", - "language": "markdown", - "sizeLines": 190, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-28-phase-4-5-tools-audit-results.md", - "language": "markdown", - "sizeLines": 204, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-28-test-coverage-gap-report.md", - "language": "markdown", - "sizeLines": 190, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-29-gepa-faza1-results.md", - "language": "markdown", - "sizeLines": 251, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-29-phase-5-brief-LOCKED.md", - "language": "markdown", - "sizeLines": 97, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-29-phase-5-scope-LOCKED.md", - "language": "markdown", - "sizeLines": 69, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-30-branch-architecture-opcija-c.md", - "language": "markdown", - "sizeLines": 107, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-30-phase-5-1-5-pm-signoff-canary-authorize.md", - "language": "markdown", - "sizeLines": 120, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-30-phase-5-cost-amendment-LOCKED.md", - "language": "markdown", - "sizeLines": 80, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-30-pre-launch-sprint-consolidation-LOCKED.md", - "language": "markdown", - "sizeLines": 157, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-30-wave-1-5-brief-queued-behind-live-test.md", - "language": "markdown", - "sizeLines": 73, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-04-30-wave-1-memory-install-cleanup-LOCKED.md", - "language": "markdown", - "sizeLines": 115, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-05-01-pass-7-block-c-close.md", - "language": "markdown", - "sizeLines": 64, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-05-02-landing-v32-surgical-edits.md", - "language": "markdown", - "sizeLines": 89, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-05-02-track-e-arxiv-7-decisions.md", - "language": "markdown", - "sizeLines": 130, - "fileCategory": "docs" - }, - { - "path": "docs/decisions/2026-05-02-track-h-hermes-canonical-integration.md", - "language": "markdown", - "sizeLines": 104, - "fileCategory": "docs" - }, - { - "path": "docs/design_handoff_waggle_app/DESIGN_POV.md", - "language": "markdown", - "sizeLines": 90, - "fileCategory": "docs" - }, - { - "path": "docs/design_handoff_waggle_app/design-files/screens/appsurfaces.html", - "language": "html", - "sizeLines": 250, - "fileCategory": "markup" - }, - { - "path": "docs/design_handoff_waggle_app/design-files/screens/auth.html", - "language": "html", - "sizeLines": 180, - "fileCategory": "markup" - }, - { - "path": "docs/design_handoff_waggle_app/design-files/screens/benchmark.html", - "language": "html", - "sizeLines": 195, - "fileCategory": "markup" - }, - { - "path": "docs/design_handoff_waggle_app/design-files/screens/billing.html", - "language": "html", - "sizeLines": 247, - "fileCategory": "markup" - }, - { - "path": "docs/design_handoff_waggle_app/design-files/screens/chat.html", - "language": "html", - "sizeLines": 271, - "fileCategory": "markup" - }, - { - "path": "docs/design_handoff_waggle_app/design-files/screens/evolution.html", - "language": "html", - "sizeLines": 202, - "fileCategory": "markup" - }, - { - "path": "docs/design_handoff_waggle_app/design-files/screens/habit.html", - "language": "html", - "sizeLines": 146, - "fileCategory": "markup" - }, - { - "path": "docs/design_handoff_waggle_app/design-files/screens/home.html", - "language": "html", - "sizeLines": 339, - "fileCategory": "markup" - }, - { - "path": "docs/design_handoff_waggle_app/design-files/screens/ia.html", - "language": "html", - "sizeLines": 287, - "fileCategory": "markup" - }, - { - "path": "docs/design_handoff_waggle_app/design-files/screens/launcher.html", - "language": "html", - "sizeLines": 245, - "fileCategory": "markup" - }, - { - "path": "docs/design_handoff_waggle_app/design-files/screens/marketplace.html", - "language": "html", - "sizeLines": 319, - "fileCategory": "markup" - }, - { - "path": "docs/design_handoff_waggle_app/design-files/screens/memory-trust.html", - "language": "html", - "sizeLines": 227, - "fileCategory": "markup" - }, - { - "path": "docs/design_handoff_waggle_app/design-files/screens/onboarding.html", - "language": "html", - "sizeLines": 260, - "fileCategory": "markup" - }, - { - "path": "docs/design_handoff_waggle_app/design-files/screens/platform.html", - "language": "html", - "sizeLines": 213, - "fileCategory": "markup" - }, - { - "path": "docs/design_handoff_waggle_app/design-files/screens/settings.html", - "language": "html", - "sizeLines": 280, - "fileCategory": "markup" - }, - { - "path": "docs/design_handoff_waggle_app/design-files/screens/storage.html", - "language": "html", - "sizeLines": 225, - "fileCategory": "markup" - }, - { - "path": "docs/design_handoff_waggle_app/design-files/screens/surfaces.html", - "language": "html", - "sizeLines": 217, - "fileCategory": "markup" - }, - { - "path": "docs/design_handoff_waggle_app/design-files/screens/workspace.html", - "language": "html", - "sizeLines": 338, - "fileCategory": "markup" - }, - { - "path": "docs/design_handoff_waggle_app/design-files/screens/workspaces.html", - "language": "html", - "sizeLines": 172, - "fileCategory": "markup" - }, - { - "path": "docs/design_handoff_waggle_app/design-files/styles/waggle.css", - "language": "css", - "sizeLines": 154, - "fileCategory": "markup" - }, - { - "path": "docs/design_handoff_waggle_app/design-files/Waggle Landing.html", - "language": "html", - "sizeLines": 648, - "fileCategory": "markup" - }, - { - "path": "docs/design_handoff_waggle_app/design-files/Waggle Reimagined.html", - "language": "html", - "sizeLines": 905, - "fileCategory": "markup" - }, - { - "path": "docs/design_handoff_waggle_app/README.md", - "language": "markdown", - "sizeLines": 333, - "fileCategory": "docs" - }, - { - "path": "docs/design_handoff_waggle_app/SCREENS.md", - "language": "markdown", - "sizeLines": 371, - "fileCategory": "docs" - }, - { - "path": "docs/design_handoff_waggle_app/screenshots/README.md", - "language": "markdown", - "sizeLines": 34, - "fileCategory": "docs" - }, - { - "path": "docs/e2e-2026-04-30-fix-log.md", - "language": "markdown", - "sizeLines": 606, - "fileCategory": "docs" - }, - { - "path": "docs/evidence/2026-04-30-cc-sesija-A-apps-web-integration-evidence.md", - "language": "markdown", - "sizeLines": 301, - "fileCategory": "docs" - }, - { - "path": "docs/evidence/2026-04-30-cc-sesija-A-PHASE-5-SMOKE-COMPLETE.md", - "language": "markdown", - "sizeLines": 166, - "fileCategory": "docs" - }, - { - "path": "docs/ga/GA-STATUS-2026-05-30.md", - "language": "markdown", - "sizeLines": 80, - "fileCategory": "docs" - }, - { - "path": "docs/ga/OPERATING-MANUAL.md", - "language": "markdown", - "sizeLines": 207, - "fileCategory": "docs" - }, - { - "path": "docs/ga/PHASE2-FAILURE-INJECTION-2026-05-30.md", - "language": "markdown", - "sizeLines": 161, - "fileCategory": "docs" - }, - { - "path": "docs/ga/PRODUCTION-PLAN.md", - "language": "markdown", - "sizeLines": 141, - "fileCategory": "docs" - }, - { - "path": "docs/ga/RECONCILIATION-2026-05-30.md", - "language": "markdown", - "sizeLines": 65, - "fileCategory": "docs" - }, - { - "path": "docs/ga/TRUST-REPORT.md", - "language": "markdown", - "sizeLines": 100, - "fileCategory": "docs" - }, - { - "path": "docs/GEPA-SCOPE-AUDIT-2026-04-30.md", - "language": "markdown", - "sizeLines": 171, - "fileCategory": "docs" - }, - { - "path": "docs/GETTING-STARTED.md", - "language": "markdown", - "sizeLines": 92, - "fileCategory": "docs" - }, - { - "path": "docs/guides/capabilities.md", - "language": "markdown", - "sizeLines": 211, - "fileCategory": "docs" - }, - { - "path": "docs/guides/connectors.md", - "language": "markdown", - "sizeLines": 195, - "fileCategory": "docs" - }, - { - "path": "docs/guides/getting-started.md", - "language": "markdown", - "sizeLines": 199, - "fileCategory": "docs" - }, - { - "path": "docs/guides/team-mode.md", - "language": "markdown", - "sizeLines": 202, - "fileCategory": "docs" - }, - { - "path": "docs/guides/troubleshooting.md", - "language": "markdown", - "sizeLines": 207, - "fileCategory": "docs" - }, - { - "path": "docs/guides/workspaces.md", - "language": "markdown", - "sizeLines": 149, - "fileCategory": "docs" - }, - { - "path": "docs/handoffs/2026-04-30-overnight-handoff-for-morning.md", - "language": "markdown", - "sizeLines": 90, - "fileCategory": "docs" - }, - { - "path": "docs/handoffs/2026-05-01-end-of-day-handoff.md", - "language": "markdown", - "sizeLines": 87, - "fileCategory": "docs" - }, - { - "path": "docs/handoffs/2026-05-02-day-0-readiness-checklist.md", - "language": "markdown", - "sizeLines": 73, - "fileCategory": "docs" - }, - { - "path": "docs/handoffs/2026-05-26-technical-team-handoff.md", - "language": "markdown", - "sizeLines": 952, - "fileCategory": "docs" - }, - { - "path": "docs/handoffs/2026-05-27-agent-core-review.md", - "language": "markdown", - "sizeLines": 174, - "fileCategory": "docs" - }, - { - "path": "docs/handoffs/2026-05-27-web-guidelines-review.md", - "language": "markdown", - "sizeLines": 710, - "fileCategory": "docs" - }, - { - "path": "docs/HARVEST-EXPORT-MANUAL.md", - "language": "markdown", - "sizeLines": 292, - "fileCategory": "docs" - }, - { - "path": "docs/HIVE-MIND-INTEGRATION-DESIGN.md", - "language": "markdown", - "sizeLines": 345, - "fileCategory": "docs" - }, - { - "path": "docs/kvark-http-api-requirements.md", - "language": "markdown", - "sizeLines": 428, - "fileCategory": "docs" - }, - { - "path": "docs/launch/drafts/2026-05-10-day-0-linkedin-post.md", - "language": "markdown", - "sizeLines": 123, - "fileCategory": "docs" - }, - { - "path": "docs/launch/drafts/2026-05-10-pavlukhin-evolveschema-arxiv-email.md", - "language": "markdown", - "sizeLines": 70, - "fileCategory": "docs" - }, - { - "path": "docs/launch/drafts/2026-05-12-apps-www-deployment-readiness.md", - "language": "markdown", - "sizeLines": 239, - "fileCategory": "docs" - }, - { - "path": "docs/launch/drafts/2026-05-12-egzakta-legal-text-drafts.md", - "language": "markdown", - "sizeLines": 398, - "fileCategory": "docs" - }, - { - "path": "docs/light-mode-audit-2026-05-07.md", - "language": "markdown", - "sizeLines": 121, - "fileCategory": "docs" - }, - { - "path": "docs/MAY-8-FOLLOWUP-REPORT-2026-05-08.md", - "language": "markdown", - "sizeLines": 119, - "fileCategory": "docs" - }, - { - "path": "docs/memory-architecture.md", - "language": "markdown", - "sizeLines": 409, - "fileCategory": "docs" - }, - { - "path": "docs/methodology.md", - "language": "markdown", - "sizeLines": 234, - "fileCategory": "docs" - }, - { - "path": "docs/MILESTONE-LAUNCH-STORY-VALIDATED-2026-04-30.md", - "language": "markdown", - "sizeLines": 162, - "fileCategory": "docs" - }, - { - "path": "docs/ONBOARDING-DAY-2-BACKLOG-2026-04-30.md", - "language": "markdown", - "sizeLines": 187, - "fileCategory": "docs" - }, - { - "path": "docs/ONBOARDING-INVESTIGATION-2026-04-30.md", - "language": "markdown", - "sizeLines": 225, - "fileCategory": "docs" - }, - { - "path": "docs/ONBOARDING.md", - "language": "markdown", - "sizeLines": 108, - "fileCategory": "docs" - }, - { - "path": "docs/OPS/stripe-smoke.md", - "language": "markdown", - "sizeLines": 185, - "fileCategory": "docs" - }, - { - "path": "docs/pilot/data-handling-policy.md", - "language": "markdown", - "sizeLines": 188, - "fileCategory": "docs" - }, - { - "path": "docs/pilot/nda-template.md", - "language": "markdown", - "sizeLines": 133, - "fileCategory": "docs" - }, - { - "path": "docs/plans/AI-OS-EXPLORATION-2026-05-19.md", - "language": "markdown", - "sizeLines": 298, - "fileCategory": "docs" - }, - { - "path": "docs/plans/APP-DIR-AUDIT-2026-04-19.md", - "language": "markdown", - "sizeLines": 132, - "fileCategory": "docs" - }, - { - "path": "docs/plans/BACKLOG-CONSOLIDATED-2026-04-17.md", - "language": "markdown", - "sizeLines": 360, - "fileCategory": "docs" - }, - { - "path": "docs/plans/BACKLOG-FULL-2026-04-18.md", - "language": "markdown", - "sizeLines": 385, - "fileCategory": "docs" - }, - { - "path": "docs/plans/BACKLOG-MASTER-2026-04-18.md", - "language": "markdown", - "sizeLines": 919, - "fileCategory": "docs" - }, - { - "path": "docs/plans/BACKLOG-RECONCILIATION-2026-04-19.md", - "language": "markdown", - "sizeLines": 116, - "fileCategory": "docs" - }, - { - "path": "docs/plans/BENCHMARK-LANDSCAPE-RESEARCH-2026-05-22.md", - "language": "markdown", - "sizeLines": 60, - "fileCategory": "docs" - }, - { - "path": "docs/plans/COMPLIANCE-AUDIT-2026-04-20.md", - "language": "markdown", - "sizeLines": 61, - "fileCategory": "docs" - }, - { - "path": "docs/plans/E-4-OSS-EXTRACTION-VERIFIED-2026-05-20.md", - "language": "markdown", - "sizeLines": 87, - "fileCategory": "docs" - }, - { - "path": "docs/plans/FILE-TOOLS-AUDIT-2026-04-20.md", - "language": "markdown", - "sizeLines": 77, - "fileCategory": "docs" - }, - { - "path": "docs/plans/H-AUDIT-1-DESIGN-DOC-2026-04-22.md", - "language": "markdown", - "sizeLines": 241, - "fileCategory": "docs" - }, - { - "path": "docs/plans/HARNESS-BENCHMARK-GOAL-2026-05-22.md", - "language": "markdown", - "sizeLines": 99, - "fileCategory": "docs" - }, - { - "path": "docs/plans/HARNESS-BENCHMARK-PLAN-2026-05-22.md", - "language": "markdown", - "sizeLines": 202, - "fileCategory": "docs" - }, - { - "path": "docs/plans/HARVEST-AUDIT-2026-04-20.md", - "language": "markdown", - "sizeLines": 133, - "fileCategory": "docs" - }, - { - "path": "docs/plans/HERMES-40-PREREG-2026-05-19.md", - "language": "markdown", - "sizeLines": 96, - "fileCategory": "docs" - }, - { - "path": "docs/plans/HERMES-40-RESULTS-2026-05-19.md", - "language": "markdown", - "sizeLines": 113, - "fileCategory": "docs" - }, - { - "path": "docs/plans/L-17-placeholder-audit-2026-04-19.md", - "language": "markdown", - "sizeLines": 105, - "fileCategory": "docs" - }, - { - "path": "docs/plans/LIVE-PREMIUM-VALIDATION-PREREG-2026-05-19.md", - "language": "markdown", - "sizeLines": 51, - "fileCategory": "docs" - }, - { - "path": "docs/plans/LIVE-PREMIUM-VALIDATION-RESULTS-2026-05-19.md", - "language": "markdown", - "sizeLines": 87, - "fileCategory": "docs" - }, - { - "path": "docs/plans/LPV2-PREREG-2026-05-19.md", - "language": "markdown", - "sizeLines": 34, - "fileCategory": "docs" - }, - { - "path": "docs/plans/M-13-NOTION-DECISION-2026-04-20.md", - "language": "markdown", - "sizeLines": 125, - "fileCategory": "docs" - }, - { - "path": "docs/plans/MEMORY-SOTA-PROPOSAL-2026-06-10.md", - "language": "markdown", - "sizeLines": 207, - "fileCategory": "docs" - }, - { - "path": "docs/plans/MOCK-STUB-AUDIT-2026-04-19.md", - "language": "markdown", - "sizeLines": 154, - "fileCategory": "docs" - }, - { - "path": "docs/plans/monorepo-migration-progress.md", - "language": "markdown", - "sizeLines": 446, - "fileCategory": "docs" - }, - { - "path": "docs/plans/OPEN-TASKS-2026-05-20.md", - "language": "markdown", - "sizeLines": 214, - "fileCategory": "docs" - }, - { - "path": "docs/plans/OPEN-WORK-SUMMARY-2026-05-26.md", - "language": "markdown", - "sizeLines": 170, - "fileCategory": "docs" - }, - { - "path": "docs/plans/OPUS-4-6-ROUTE-AUDIT.md", - "language": "markdown", - "sizeLines": 127, - "fileCategory": "docs" - }, - { - "path": "docs/plans/OS-PRODUCTION-AUDIT-2026-05-13.md", - "language": "markdown", - "sizeLines": 74, - "fileCategory": "docs" - }, - { - "path": "docs/plans/OSS-DRIFT-TRIAGE-2026-06-11.md", - "language": "markdown", - "sizeLines": 104, - "fileCategory": "docs" - }, - { - "path": "docs/plans/PDF-AUDIT-2026-04-20.md", - "language": "markdown", - "sizeLines": 107, - "fileCategory": "docs" - }, - { - "path": "docs/plans/PDF-DEFERRED-DECISIONS-2026-04-19.md", - "language": "markdown", - "sizeLines": 253, - "fileCategory": "docs" - }, - { - "path": "docs/plans/PDF-E2E-ISSUES-2026-04-17.md", - "language": "markdown", - "sizeLines": 60, - "fileCategory": "docs" - }, - { - "path": "docs/plans/PILLAR2-MEMORY-LONGMEMEVAL-PLAN-2026-05-22.md", - "language": "markdown", - "sizeLines": 63, - "fileCategory": "docs" - }, - { - "path": "docs/plans/PLAN-2026-04-19-TO-DO.md", - "language": "markdown", - "sizeLines": 94, - "fileCategory": "docs" - }, - { - "path": "docs/plans/POLISH-SPRINT-2026-04-18.md", - "language": "markdown", - "sizeLines": 100, - "fileCategory": "docs" - }, - { - "path": "docs/plans/SPRINT-10-CLOSEOUT-2026-04-22.md", - "language": "markdown", - "sizeLines": 173, - "fileCategory": "docs" - }, - { - "path": "docs/plans/STAGE-2-PREP-BACKLOG.md", - "language": "markdown", - "sizeLines": 89, - "fileCategory": "docs" - }, - { - "path": "docs/plans/UX-NORTHSTAR-2026-06-13.md", - "language": "markdown", - "sizeLines": 117, - "fileCategory": "docs" - }, - { - "path": "docs/plans/W4-PRODUCTION-PORT-PLAN-2026-06-11.md", - "language": "markdown", - "sizeLines": 161, - "fileCategory": "docs" - }, - { - "path": "docs/plans/WIKI-V2-AUDIT-2026-04-20.md", - "language": "markdown", - "sizeLines": 196, - "fileCategory": "docs" - }, - { - "path": "docs/PM-SYNC-PRE-DAY0-2026-05-05.md", - "language": "markdown", - "sizeLines": 456, - "fileCategory": "docs" - }, - { - "path": "docs/product-analysis/architecture-analysis.md", - "language": "markdown", - "sizeLines": 587, - "fileCategory": "docs" - }, - { - "path": "docs/product-analysis/competitive-analysis.md", - "language": "markdown", - "sizeLines": 921, - "fileCategory": "docs" - }, - { - "path": "docs/product-analysis/design-audit.md", - "language": "markdown", - "sizeLines": 432, - "fileCategory": "docs" - }, - { - "path": "docs/product-analysis/feature-inventory.md", - "language": "markdown", - "sizeLines": 744, - "fileCategory": "docs" - }, - { - "path": "docs/product-analysis/FOUNDER-REVIEW-V2.md", - "language": "markdown", - "sizeLines": 271, - "fileCategory": "docs" - }, - { - "path": "docs/product-analysis/FOUNDER-REVIEW.md", - "language": "markdown", - "sizeLines": 301, - "fileCategory": "docs" - }, - { - "path": "docs/product-analysis/ux-analysis.md", - "language": "markdown", - "sizeLines": 651, - "fileCategory": "docs" - }, - { - "path": "docs/product-analysis/WAGGLE-OS-PRODUCT-INTELLIGENCE.md", - "language": "markdown", - "sizeLines": 293, - "fileCategory": "docs" - }, - { - "path": "docs/production-readiness/01A-FEATURE_WAVES.md", - "language": "markdown", - "sizeLines": 166, - "fileCategory": "docs" - }, - { - "path": "docs/production-readiness/01B-DEPLOYMENT_PHASES.md", - "language": "markdown", - "sizeLines": 140, - "fileCategory": "docs" - }, - { - "path": "docs/production-readiness/02-UX_AUDIT.md", - "language": "markdown", - "sizeLines": 550, - "fileCategory": "docs" - }, - { - "path": "docs/production-readiness/03A-AGENT_QUALITY.md", - "language": "markdown", - "sizeLines": 225, - "fileCategory": "docs" - }, - { - "path": "docs/production-readiness/03B-SERVER_QUALITY.md", - "language": "markdown", - "sizeLines": 267, - "fileCategory": "docs" - }, - { - "path": "docs/production-readiness/03C-UI_QUALITY.md", - "language": "markdown", - "sizeLines": 248, - "fileCategory": "docs" - }, - { - "path": "docs/production-readiness/04A-APP_SECURITY.md", - "language": "markdown", - "sizeLines": 206, - "fileCategory": "docs" - }, - { - "path": "docs/production-readiness/04B-SECRETS_DEPS.md", - "language": "markdown", - "sizeLines": 244, - "fileCategory": "docs" - }, - { - "path": "docs/production-readiness/05-TEST_REPORT.md", - "language": "markdown", - "sizeLines": 271, - "fileCategory": "docs" - }, - { - "path": "docs/production-readiness/06-BUILD_REPORT.md", - "language": "markdown", - "sizeLines": 328, - "fileCategory": "docs" - }, - { - "path": "docs/production-readiness/07-ISSUE_REGISTER.md", - "language": "markdown", - "sizeLines": 114, - "fileCategory": "docs" - }, - { - "path": "docs/production-readiness/08-CONFIDENCE_MATRIX.md", - "language": "markdown", - "sizeLines": 139, - "fileCategory": "docs" - }, - { - "path": "docs/production-readiness/09-LAUNCH_RECOMMENDATION.md", - "language": "markdown", - "sizeLines": 143, - "fileCategory": "docs" - }, - { - "path": "docs/production-readiness/AUDIT_COMPLETE.md", - "language": "markdown", - "sizeLines": 104, - "fileCategory": "docs" - }, - { - "path": "docs/qa-polish-2026-06-24/FIX-PLAN.md", - "language": "markdown", - "sizeLines": 45, - "fileCategory": "docs" - }, - { - "path": "docs/qa-polish-2026-06-24/SMOKE-REPORT.md", - "language": "markdown", - "sizeLines": 26, - "fileCategory": "docs" - }, - { - "path": "docs/redesign-warm-hive/BUILD-PLAN.md", - "language": "markdown", - "sizeLines": 191, - "fileCategory": "docs" - }, - { - "path": "docs/redesign-warm-hive/PR3-BUILD-PLAN.md", - "language": "markdown", - "sizeLines": 407, - "fileCategory": "docs" - }, - { - "path": "docs/redesign-warm-hive/pr3-recon/chat.md", - "language": "markdown", - "sizeLines": 301, - "fileCategory": "docs" - }, - { - "path": "docs/redesign-warm-hive/pr3-recon/home.md", - "language": "markdown", - "sizeLines": 293, - "fileCategory": "docs" - }, - { - "path": "docs/redesign-warm-hive/pr3-recon/primitives.md", - "language": "markdown", - "sizeLines": 200, - "fileCategory": "docs" - }, - { - "path": "docs/redesign-warm-hive/pr3-recon/workspace.md", - "language": "markdown", - "sizeLines": 276, - "fileCategory": "docs" - }, - { - "path": "docs/redesign-warm-hive/PR35-BUILD-PLAN.md", - "language": "markdown", - "sizeLines": 349, - "fileCategory": "docs" - }, - { - "path": "docs/redesign-warm-hive/pr35-recon/01-frame-source-server.md", - "language": "markdown", - "sizeLines": 301, - "fileCategory": "docs" - }, - { - "path": "docs/redesign-warm-hive/pr35-recon/02-sse-step-path.md", - "language": "markdown", - "sizeLines": 215, - "fileCategory": "docs" - }, - { - "path": "docs/redesign-warm-hive/pr35-recon/03-pr3-hooks-primitives.md", - "language": "markdown", - "sizeLines": 155, - "fileCategory": "docs" - }, - { - "path": "docs/redesign-warm-hive/pr35-recon/04-design-screen19.md", - "language": "markdown", - "sizeLines": 317, - "fileCategory": "docs" - }, - { - "path": "docs/redesign-warm-hive/pr35-recon/05-memory-store-api.md", - "language": "markdown", - "sizeLines": 249, - "fileCategory": "docs" - }, - { - "path": "docs/redesign-warm-hive/PR4-BUILD-PLAN.md", - "language": "markdown", - "sizeLines": 62, - "fileCategory": "docs" - }, - { - "path": "docs/redesign-warm-hive/pr4-recon/01-marketplace-fe.md", - "language": "markdown", - "sizeLines": 249, - "fileCategory": "docs" - }, - { - "path": "docs/redesign-warm-hive/pr4-recon/02-marketplace-backend.md", - "language": "markdown", - "sizeLines": 183, - "fileCategory": "docs" - }, - { - "path": "docs/redesign-warm-hive/pr4-recon/03-install-state-sync.md", - "language": "markdown", - "sizeLines": 370, - "fileCategory": "docs" - }, - { - "path": "docs/redesign-warm-hive/pr4-recon/04-inline-in-chat.md", - "language": "markdown", - "sizeLines": 348, - "fileCategory": "docs" - }, - { - "path": "docs/redesign-warm-hive/pr4-recon/05-agent-pick-search.md", - "language": "markdown", - "sizeLines": 234, - "fileCategory": "docs" - }, - { - "path": "docs/redesign-warm-hive/pr4-recon/GROUNDING-2026-06-16.md", - "language": "markdown", - "sizeLines": 40, - "fileCategory": "docs" - }, - { - "path": "docs/redesign-warm-hive/PR5-BUILD-PLAN.md", - "language": "markdown", - "sizeLines": 57, - "fileCategory": "docs" - }, - { - "path": "docs/redesign-warm-hive/PR6-BUILD-PLAN.md", - "language": "markdown", - "sizeLines": 126, - "fileCategory": "docs" - }, - { - "path": "docs/redesign-warm-hive/PR7-BUILD-PLAN.md", - "language": "markdown", - "sizeLines": 173, - "fileCategory": "docs" - }, - { - "path": "docs/redesign-warm-hive/pr7-recon/01-stripe-backend.md", - "language": "markdown", - "sizeLines": 116, - "fileCategory": "docs" - }, - { - "path": "docs/redesign-warm-hive/pr7-recon/02-auth-session.md", - "language": "markdown", - "sizeLines": 129, - "fileCategory": "docs" - }, - { - "path": "docs/redesign-warm-hive/pr7-recon/03-screen-auth-design.md", - "language": "markdown", - "sizeLines": 283, - "fileCategory": "docs" - }, - { - "path": "docs/redesign-warm-hive/pr7-recon/04-screen-billing-design.md", - "language": "markdown", - "sizeLines": 271, - "fileCategory": "docs" - }, - { - "path": "docs/redesign-warm-hive/pr7-recon/05-clerk-integration.md", - "language": "markdown", - "sizeLines": 251, - "fileCategory": "docs" - }, - { - "path": "docs/redesign-warm-hive/pr7-recon/06-routing-surfaces.md", - "language": "markdown", - "sizeLines": 320, - "fileCategory": "docs" - }, - { - "path": "docs/redesign-warm-hive/pr7-recon/07-byo-vs-metered.md", - "language": "markdown", - "sizeLines": 166, - "fileCategory": "docs" - }, - { - "path": "docs/redesign-warm-hive/PR8-BUILD-PLAN.md", - "language": "markdown", - "sizeLines": 144, - "fileCategory": "docs" - }, - { - "path": "docs/redesign-warm-hive/smoke-20260615/FILE-CHOOSER-ROOT-CAUSE.md", - "language": "markdown", - "sizeLines": 44, - "fileCategory": "docs" - }, - { - "path": "docs/redesign-warm-hive/smoke-pr3-20260616/SMOKE-RESULTS.md", - "language": "markdown", - "sizeLines": 55, - "fileCategory": "docs" - }, - { - "path": "docs/redesign-warm-hive/smoke-pr35-20260616/SMOKE.md", - "language": "markdown", - "sizeLines": 43, - "fileCategory": "docs" - }, - { - "path": "docs/redesign-warm-hive/smoke-pr35-routes-live-20260616/REPORT.md", - "language": "markdown", - "sizeLines": 85, - "fileCategory": "docs" - }, - { - "path": "docs/redesign-warm-hive/smoke-pr4-20260617-after-search.txt", - "language": "txt", - "sizeLines": 1898, - "fileCategory": "docs" - }, - { - "path": "docs/redesign-warm-hive/smoke-pr4-20260617.md", - "language": "markdown", - "sizeLines": 34, - "fileCategory": "docs" - }, - { - "path": "docs/redesign-warm-hive/smoke-pr5-20260617/REPORT.md", - "language": "markdown", - "sizeLines": 60, - "fileCategory": "docs" - }, - { - "path": "docs/redesign-warm-hive/smoke-pr6a-20260618/REPORT.md", - "language": "markdown", - "sizeLines": 44, - "fileCategory": "docs" - }, - { - "path": "docs/redesign-warm-hive/smoke-pr6b-20260618/REPORT.md", - "language": "markdown", - "sizeLines": 45, - "fileCategory": "docs" - }, - { - "path": "docs/redesign-warm-hive/smoke-pr6c-20260618/REPORT.md", - "language": "markdown", - "sizeLines": 38, - "fileCategory": "docs" - }, - { - "path": "docs/redesign-warm-hive/smoke-pr7a-20260624/REPORT.md", - "language": "markdown", - "sizeLines": 46, - "fileCategory": "docs" - }, - { - "path": "docs/redesign-warm-hive/smoke-pr7b-20260624/REPORT.md", - "language": "markdown", - "sizeLines": 73, - "fileCategory": "docs" - }, - { - "path": "docs/redesign-warm-hive/smoke-pr8-20260624/REPORT.md", - "language": "markdown", - "sizeLines": 47, - "fileCategory": "docs" - }, - { - "path": "docs/reference/api.md", - "language": "markdown", - "sizeLines": 241, - "fileCategory": "docs" - }, - { - "path": "docs/reference/commands.md", - "language": "markdown", - "sizeLines": 138, - "fileCategory": "docs" - }, - { - "path": "docs/REMAINING-BACKLOG-2026-04-16.md", - "language": "markdown", - "sizeLines": 317, - "fileCategory": "docs" - }, - { - "path": "docs/reports/multi-vendor-ensemble-baseline-2026-04-21T08-56-43Z.md", - "language": "markdown", - "sizeLines": 146, - "fileCategory": "docs" - }, - { - "path": "docs/reports/opus-4-6-route-audit-2026-04-22.md", - "language": "markdown", - "sizeLines": 216, - "fileCategory": "docs" - }, - { - "path": "docs/reports/sonnet-calibration-2026-04-21T08-55-51Z.md", - "language": "markdown", - "sizeLines": 84, - "fileCategory": "docs" - }, - { - "path": "docs/research/01-oss-memory-packaging-strategy.md", - "language": "markdown", - "sizeLines": 428, - "fileCategory": "docs" - }, - { - "path": "docs/research/02-memory-system-scientific-draft.md", - "language": "markdown", - "sizeLines": 445, - "fileCategory": "docs" - }, - { - "path": "docs/research/03-memory-harvesting-strategy.md", - "language": "markdown", - "sizeLines": 281, - "fileCategory": "docs" - }, - { - "path": "docs/research/03-paper-skeleton-v2-2026-04-30.md", - "language": "markdown", - "sizeLines": 328, - "fileCategory": "docs" - }, - { - "path": "docs/research/04-competitive-landscape.md", - "language": "markdown", - "sizeLines": 198, - "fileCategory": "docs" - }, - { - "path": "docs/research/04-gepa-public-reveal-strategy.md", - "language": "markdown", - "sizeLines": 392, - "fileCategory": "docs" - }, - { - "path": "docs/research/05-user-personas-ai-os.md", - "language": "markdown", - "sizeLines": 272, - "fileCategory": "docs" - }, - { - "path": "docs/research/06-waggle-os-product-overview.md", - "language": "markdown", - "sizeLines": 406, - "fileCategory": "docs" - }, - { - "path": "docs/research/07-skills-connectors-strategy.md", - "language": "markdown", - "sizeLines": 355, - "fileCategory": "docs" - }, - { - "path": "docs/research/PAPER-1-CONCEPT_hive-mind-memory.md", - "language": "markdown", - "sizeLines": 131, - "fileCategory": "docs" - }, - { - "path": "docs/research/PAPER-2-CONCEPT_gepa-evolution.md", - "language": "markdown", - "sizeLines": 174, - "fileCategory": "docs" - }, - { - "path": "docs/research/README.md", - "language": "markdown", - "sizeLines": 215, - "fileCategory": "docs" - }, - { - "path": "docs/research/waggle-hive-mind-paper.md", - "language": "markdown", - "sizeLines": 1144, - "fileCategory": "docs" - }, - { - "path": "docs/sessions/2026-05-01-S1-handoff.md", - "language": "markdown", - "sizeLines": 98, - "fileCategory": "docs" - }, - { - "path": "docs/specs/agent-backend-gaps.md", - "language": "markdown", - "sizeLines": 161, - "fileCategory": "docs" - }, - { - "path": "docs/specs/PROMPT-ASSEMBLER-V4.md", - "language": "markdown", - "sizeLines": 639, - "fileCategory": "docs" - }, - { - "path": "docs/specs/WIKI-COMPILER-SPEC.md", - "language": "markdown", - "sizeLines": 1687, - "fileCategory": "docs" - }, - { - "path": "docs/strategy/2026-05-02-methodology-doc-FINAL.md", - "language": "markdown", - "sizeLines": 209, - "fileCategory": "docs" - }, - { - "path": "docs/strategy/2026-05-05-current-state-master.md", - "language": "markdown", - "sizeLines": 314, - "fileCategory": "docs" - }, - { - "path": "docs/superpowers/plans/2026-05-29-prod-readiness-phase1-network-auth.md", - "language": "markdown", - "sizeLines": 220, - "fileCategory": "docs" - }, - { - "path": "docs/superpowers/specs/2026-05-23-waggle-os-ux-design.md", - "language": "markdown", - "sizeLines": 305, - "fileCategory": "docs" - }, - { - "path": "docs/superpowers/specs/2026-06-01-hermes-compact-on-stop-design.md", - "language": "markdown", - "sizeLines": 209, - "fileCategory": "docs" - }, - { - "path": "docs/superpowers/specs/2026-06-01-openclaw-dedup-design.md", - "language": "markdown", - "sizeLines": 87, - "fileCategory": "docs" - }, - { - "path": "docs/superpowers/specs/2026-06-01-wave23-hook-feasibility-research.md", - "language": "markdown", - "sizeLines": 383, - "fileCategory": "docs" - }, - { - "path": "docs/superpowers/specs/2026-06-01-wave23-hook-stubs-design.md", - "language": "markdown", - "sizeLines": 783, - "fileCategory": "docs" - }, - { - "path": "docs/superpowers/specs/2026-06-09-temporal-substrate-fix-design.md", - "language": "markdown", - "sizeLines": 52, - "fileCategory": "docs" - }, - { - "path": "docs/test-plans/COMBINED-EFFECT-TEST-PLAN.docx", - "language": "docx", - "sizeLines": 110, - "fileCategory": "code" - }, - { - "path": "docs/test-plans/generate-combined-plan.mjs", - "language": "javascript", - "sizeLines": 830, - "fileCategory": "code" - }, - { - "path": "docs/test-plans/generate-gepa-plan.mjs", - "language": "javascript", - "sizeLines": 1502, - "fileCategory": "code" - }, - { - "path": "docs/test-plans/generate-memory-plan.mjs", - "language": "javascript", - "sizeLines": 906, - "fileCategory": "code" - }, - { - "path": "docs/test-plans/GEPA-EVOLUTION-TEST-PLAN.docx", - "language": "docx", - "sizeLines": 123, - "fileCategory": "code" - }, - { - "path": "docs/test-plans/MEMORY-HARVEST-TEST-PLAN.docx", - "language": "docx", - "sizeLines": 136, - "fileCategory": "code" - }, - { - "path": "docs/TOTAL-WORK-ESTIMATE.md", - "language": "markdown", - "sizeLines": 168, - "fileCategory": "docs" - }, - { - "path": "docs/ui-ux-audit-2026-05-27/BASELINE-FINDINGS.md", - "language": "markdown", - "sizeLines": 221, - "fileCategory": "docs" - }, - { - "path": "docs/ui-ux-audit-2026-05-27/FINAL-SCORECARD.md", - "language": "markdown", - "sizeLines": 89, - "fileCategory": "docs" - }, - { - "path": "docs/ui-ux-audit-2026-05-27/FIX-LIST.md", - "language": "markdown", - "sizeLines": 46, - "fileCategory": "docs" - }, - { - "path": "docs/ui-ux-audit-2026-05-27/ITER-1-RESULTS.md", - "language": "markdown", - "sizeLines": 57, - "fileCategory": "docs" - }, - { - "path": "docs/ui-ux-audit-2026-05-27/PERSONAS.md", - "language": "markdown", - "sizeLines": 104, - "fileCategory": "docs" - }, - { - "path": "docs/ui-ux-audit-2026-05-27/PLAN.md", - "language": "markdown", - "sizeLines": 24, - "fileCategory": "docs" - }, - { - "path": "docs/UX_REFACTOR_STATE_AUDIT.md", - "language": "markdown", - "sizeLines": 517, - "fileCategory": "docs" - }, - { - "path": "docs/UX-ASSESSMENT-2026-04-16.md", - "language": "markdown", - "sizeLines": 316, - "fileCategory": "docs" - }, - { - "path": "docs/ux-disclosure-levels.md", - "language": "markdown", - "sizeLines": 338, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/_inventory/backend-routes.md", - "language": "markdown", - "sizeLines": 607, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/_inventory/frontend.md", - "language": "markdown", - "sizeLines": 380, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/_inventory/substrate-types.md", - "language": "markdown", - "sizeLines": 286, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/_phase1-contract.md", - "language": "markdown", - "sizeLines": 197, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/2D-BUILD-PLAN.md", - "language": "markdown", - "sizeLines": 335, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/appshell-conversion-plan.md", - "language": "markdown", - "sizeLines": 290, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/deltas/backend-api-delta.md", - "language": "markdown", - "sizeLines": 383, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/deltas/coverage-check.md", - "language": "markdown", - "sizeLines": 272, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/deltas/design-system-delta.md", - "language": "markdown", - "sizeLines": 173, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/deltas/open-questions.md", - "language": "markdown", - "sizeLines": 701, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/deltas/rbac-security-delta.md", - "language": "markdown", - "sizeLines": 202, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/deltas/shared-types-delta.md", - "language": "markdown", - "sizeLines": 418, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/gap-cards/S00-appshell-ia.md", - "language": "markdown", - "sizeLines": 269, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/gap-cards/S01-home-cockpit.md", - "language": "markdown", - "sizeLines": 197, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/gap-cards/S02-workspace-desktop.md", - "language": "markdown", - "sizeLines": 219, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/gap-cards/S03-command-center.md", - "language": "markdown", - "sizeLines": 182, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/gap-cards/S04-memory-center.md", - "language": "markdown", - "sizeLines": 267, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/gap-cards/S05-artifact-center.md", - "language": "markdown", - "sizeLines": 243, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/gap-cards/S06-skills-hub.md", - "language": "markdown", - "sizeLines": 153, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/gap-cards/S07-connector-hub.md", - "language": "markdown", - "sizeLines": 190, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/gap-cards/S08-mcp-hub.md", - "language": "markdown", - "sizeLines": 270, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/gap-cards/S09-agent-center.md", - "language": "markdown", - "sizeLines": 144, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/gap-cards/S10-team-workspace.md", - "language": "markdown", - "sizeLines": 274, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/gap-cards/S11-automation-center.md", - "language": "markdown", - "sizeLines": 249, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/gap-cards/S12-first-launch.md", - "language": "markdown", - "sizeLines": 225, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/gap-cards/S13-who-are-you.md", - "language": "markdown", - "sizeLines": 231, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/gap-cards/S14-tool-discovery.md", - "language": "markdown", - "sizeLines": 250, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/gap-cards/S15-memory-import.md", - "language": "markdown", - "sizeLines": 144, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/gap-cards/S16-memory-review.md", - "language": "markdown", - "sizeLines": 278, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/gap-cards/S17-workspace-creation.md", - "language": "markdown", - "sizeLines": 223, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/gap-cards/S18-agent-builder.md", - "language": "markdown", - "sizeLines": 205, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/gap-cards/S19-skill-builder.md", - "language": "markdown", - "sizeLines": 242, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/gap-cards/S20-automation-builder.md", - "language": "markdown", - "sizeLines": 224, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/gap-cards/S21-marketplace-extend.md", - "language": "markdown", - "sizeLines": 137, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/IMPLEMENTATION-PLAN.md", - "language": "markdown", - "sizeLines": 538, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/oss-sync-finding-2026-06-12.md", - "language": "markdown", - "sizeLines": 72, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/p1a-residuals.md", - "language": "markdown", - "sizeLines": 52, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/p1b-auth-gate-plan.md", - "language": "markdown", - "sizeLines": 129, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/p1b-plan-review-record.md", - "language": "markdown", - "sizeLines": 46, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/p1b-residuals.md", - "language": "markdown", - "sizeLines": 62, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/p2-verification-record.md", - "language": "markdown", - "sizeLines": 103, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/p3-memory-center-plan.md", - "language": "markdown", - "sizeLines": 120, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/p3-review-record.md", - "language": "markdown", - "sizeLines": 57, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/p4-launch-integrity-record.md", - "language": "markdown", - "sizeLines": 124, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/p5-review-record.md", - "language": "markdown", - "sizeLines": 28, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/p5-skill-governance-plan.md", - "language": "markdown", - "sizeLines": 111, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/p7-d15-scope.md", - "language": "markdown", - "sizeLines": 384, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/p7-p5-live-smoke-record.md", - "language": "markdown", - "sizeLines": 63, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/p7-track-a-review-record.md", - "language": "markdown", - "sizeLines": 42, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/p7-track-b-review-record.md", - "language": "markdown", - "sizeLines": 45, - "fileCategory": "docs" - }, - { - "path": "docs/ux-refactor/README.md", - "language": "markdown", - "sizeLines": 121, - "fileCategory": "docs" - }, - { - "path": "docs/visuals/AGENT-BEHAVIOR.html", - "language": "html", - "sizeLines": 1163, - "fileCategory": "markup" - }, - { - "path": "docs/visuals/MARKETPLACE-CONNECTORS.html", - "language": "html", - "sizeLines": 751, - "fileCategory": "markup" - }, - { - "path": "docs/visuals/STRATEGIC-LAUNCH-SEQUENCE.html", - "language": "html", - "sizeLines": 1322, - "fileCategory": "markup" - }, - { - "path": "docs/visuals/TEAMS-ARCHITECTURE.html", - "language": "html", - "sizeLines": 1042, - "fileCategory": "markup" - }, - { - "path": "docs/visuals/TEMPLATES-PERSONAS.html", - "language": "html", - "sizeLines": 719, - "fileCategory": "markup" - }, - { - "path": "docs/visuals/TIERS-FEATURES.html", - "language": "html", - "sizeLines": 1267, - "fileCategory": "markup" - }, - { - "path": "docs/visuals/WAGGLE-DANCE.html", - "language": "html", - "sizeLines": 950, - "fileCategory": "markup" - }, - { - "path": "docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/_blueprint_extracted.txt", - "language": "txt", - "sizeLines": 739, - "fileCategory": "docs" - }, - { - "path": "docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/NAMING-ERRATUM.md", - "language": "markdown", - "sizeLines": 59, - "fileCategory": "docs" - }, - { - "path": "docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/Waggle_OS_Claude_Code_Implementation_Handoff.md", - "language": "markdown", - "sizeLines": 196, - "fileCategory": "docs" - }, - { - "path": "docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/Waggle_OS_Handoff_Assets/ASSET_MANIFEST.json", - "language": "json", - "sizeLines": 175, - "fileCategory": "config" - }, - { - "path": "docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/Waggle_OS_Handoff_Assets/README.md", - "language": "markdown", - "sizeLines": 32, - "fileCategory": "docs" - }, - { - "path": "docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/Waggle_OS_UX_Refactor_PRD.md", - "language": "markdown", - "sizeLines": 1499, - "fileCategory": "docs" - }, - { - "path": "docs/WAGGLE_USER_TEST_PROTOCOL.md", - "language": "markdown", - "sizeLines": 355, - "fileCategory": "docs" - }, - { - "path": "docs/WAGGLE-COMPLETE-CONSOLIDATED-BRIEF.md", - "language": "markdown", - "sizeLines": 661, - "fileCategory": "docs" - }, - { - "path": "docs/WAGGLE-CORNERSTONE.md", - "language": "markdown", - "sizeLines": 501, - "fileCategory": "docs" - }, - { - "path": "docs/WAGGLE-MEMORY-PLUGIN-BRIEF.md", - "language": "markdown", - "sizeLines": 402, - "fileCategory": "docs" - }, - { - "path": "docs/waggle-mental-model.html", - "language": "html", - "sizeLines": 1037, - "fileCategory": "markup" - }, - { - "path": "docs/waggle-os-architecture-mindmap.html", - "language": "html", - "sizeLines": 215, - "fileCategory": "markup" - }, - { - "path": "docs/waggle-os-explained-simply.html", - "language": "html", - "sizeLines": 172, - "fileCategory": "markup" - }, - { - "path": "docs/waggle-os-features-and-comparison.html", - "language": "html", - "sizeLines": 269, - "fileCategory": "markup" - }, - { - "path": "docs/waggle-os-mental-model.html", - "language": "html", - "sizeLines": 243, - "fileCategory": "markup" - }, - { - "path": "docs/WAGGLE-SYSTEM-MAP.md", - "language": "markdown", - "sizeLines": 226, - "fileCategory": "docs" - }, - { - "path": "docs/WAGGLE-SYSTEM-VISUAL.html", - "language": "html", - "sizeLines": 1387, - "fileCategory": "markup" - }, - { - "path": "docs/wiki-live/egzakta-group.md", - "language": "markdown", - "sizeLines": 90, - "fileCategory": "docs" - }, - { - "path": "docs/wiki-live/index.md", - "language": "markdown", - "sizeLines": 36, - "fileCategory": "docs" - }, - { - "path": "docs/wiki-live/kvark.md", - "language": "markdown", - "sizeLines": 77, - "fileCategory": "docs" - }, - { - "path": "docs/wiki-live/marko-markovic.md", - "language": "markdown", - "sizeLines": 80, - "fileCategory": "docs" - }, - { - "path": "docs/wiki-live/memory-harvest.md", - "language": "markdown", - "sizeLines": 113, - "fileCategory": "docs" - }, - { - "path": "docs/wiki-live/synthesis-waggle-os.md", - "language": "markdown", - "sizeLines": 93, - "fileCategory": "docs" - }, - { - "path": "docs/wiki-live/waggle-os.md", - "language": "markdown", - "sizeLines": 80, - "fileCategory": "docs" - }, - { - "path": "docs/wiki-live/wiki-compiler.md", - "language": "markdown", - "sizeLines": 118, - "fileCategory": "docs" - }, - { - "path": "docs/wiki-test/concepts/development-velocity.md", - "language": "markdown", - "sizeLines": 92, - "fileCategory": "docs" - }, - { - "path": "docs/wiki-test/concepts/mind-architecture.md", - "language": "markdown", - "sizeLines": 59, - "fileCategory": "docs" - }, - { - "path": "docs/wiki-test/entities/egzakta-group.md", - "language": "markdown", - "sizeLines": 58, - "fileCategory": "docs" - }, - { - "path": "docs/wiki-test/entities/kvark.md", - "language": "markdown", - "sizeLines": 60, - "fileCategory": "docs" - }, - { - "path": "docs/wiki-test/entities/marko-markovic.md", - "language": "markdown", - "sizeLines": 81, - "fileCategory": "docs" - }, - { - "path": "docs/wiki-test/entities/waggle-os.md", - "language": "markdown", - "sizeLines": 100, - "fileCategory": "docs" - }, - { - "path": "docs/wiki-test/health.md", - "language": "markdown", - "sizeLines": 91, - "fileCategory": "docs" - }, - { - "path": "docs/wiki-test/index.md", - "language": "markdown", - "sizeLines": 51, - "fileCategory": "docs" - }, - { - "path": "eslint.config.js", - "language": "javascript", - "sizeLines": 83, - "fileCategory": "code" - }, - { - "path": "EVAL-RESULTS-V5.md", - "language": "markdown", - "sizeLines": 258, - "fileCategory": "docs" - }, - { - "path": "EVAL-RESULTS.md", - "language": "markdown", - "sizeLines": 246, - "fileCategory": "docs" - }, - { - "path": "gepa-phase-5/canary-kickoff.jsonl", - "language": "jsonl", - "sizeLines": 1, - "fileCategory": "code" - }, - { - "path": "gepa-phase-5/cost-probe-2026-04-29-summary.md", - "language": "markdown", - "sizeLines": 32, - "fileCategory": "docs" - }, - { - "path": "gepa-phase-5/cost-probe-2026-04-29.jsonl", - "language": "jsonl", - "sizeLines": 10, - "fileCategory": "code" - }, - { - "path": "gepa-phase-5/cross-stream.md", - "language": "markdown", - "sizeLines": 120, - "fileCategory": "docs" - }, - { - "path": "gepa-phase-5/exit-criteria-coverage.md", - "language": "markdown", - "sizeLines": 88, - "fileCategory": "docs" - }, - { - "path": "gepa-phase-5/manifest.yaml", - "language": "yaml", - "sizeLines": 419, - "fileCategory": "config" - }, - { - "path": "gepa-phase-5/preflight-evidence.md", - "language": "markdown", - "sizeLines": 370, - "fileCategory": "docs" - }, - { - "path": "gepa-phase-5/scripts/cost-probe.ts", - "language": "typescript", - "sizeLines": 425, - "fileCategory": "code" - }, - { - "path": "gepa-phase-5/scripts/phase-5-daily-summary.ts", - "language": "typescript", - "sizeLines": 244, - "fileCategory": "code" - }, - { - "path": "judging/FINAL-REPORT.md", - "language": "markdown", - "sizeLines": 79, - "fileCategory": "docs" - }, - { - "path": "judging/judge-1-novice.md", - "language": "markdown", - "sizeLines": 83, - "fileCategory": "docs" - }, - { - "path": "judging/judge-2-casual-professional.md", - "language": "markdown", - "sizeLines": 68, - "fileCategory": "docs" - }, - { - "path": "judging/judge-3-power-user.md", - "language": "markdown", - "sizeLines": 171, - "fileCategory": "docs" - }, - { - "path": "judging/judge-4-junior-developer.md", - "language": "markdown", - "sizeLines": 83, - "fileCategory": "docs" - }, - { - "path": "judging/judge-5-senior-skeptic.md", - "language": "markdown", - "sizeLines": 81, - "fileCategory": "docs" - }, - { - "path": "judging/round1-fixes.md", - "language": "markdown", - "sizeLines": 31, - "fileCategory": "docs" - }, - { - "path": "judging/round2/judge-1-novice.md", - "language": "markdown", - "sizeLines": 80, - "fileCategory": "docs" - }, - { - "path": "judging/round2/judge-2-casual-professional.md", - "language": "markdown", - "sizeLines": 163, - "fileCategory": "docs" - }, - { - "path": "judging/round2/judge-3-power-user.md", - "language": "markdown", - "sizeLines": 75, - "fileCategory": "docs" - }, - { - "path": "judging/round2/judge-4-junior-developer.md", - "language": "markdown", - "sizeLines": 66, - "fileCategory": "docs" - }, - { - "path": "judging/round2/judge-5-senior-skeptic.md", - "language": "markdown", - "sizeLines": 119, - "fileCategory": "docs" - }, - { - "path": "judging/round2/verifier-report.md", - "language": "markdown", - "sizeLines": 91, - "fileCategory": "docs" - }, - { - "path": "judging/round3/judge-1-novice.md", - "language": "markdown", - "sizeLines": 145, - "fileCategory": "docs" - }, - { - "path": "judging/round3/judge-2-casual-professional.md", - "language": "markdown", - "sizeLines": 67, - "fileCategory": "docs" - }, - { - "path": "judging/round3/judge-3-power-user.md", - "language": "markdown", - "sizeLines": 140, - "fileCategory": "docs" - }, - { - "path": "judging/round3/judge-4-junior-developer.md", - "language": "markdown", - "sizeLines": 60, - "fileCategory": "docs" - }, - { - "path": "judging/round3/judge-5-senior-skeptic.md", - "language": "markdown", - "sizeLines": 104, - "fileCategory": "docs" - }, - { - "path": "judging/round3/verifier-report.md", - "language": "markdown", - "sizeLines": 125, - "fileCategory": "docs" - }, - { - "path": "judging/verifier-report.md", - "language": "markdown", - "sizeLines": 81, - "fileCategory": "docs" - }, - { - "path": "litellm-config.yaml", - "language": "yaml", - "sizeLines": 498, - "fileCategory": "config" - }, - { - "path": "notes/error-as-empty.md", - "language": "markdown", - "sizeLines": 10, - "fileCategory": "docs" - }, - { - "path": "notes/judge-round1-patterns.md", - "language": "markdown", - "sizeLines": 17, - "fileCategory": "docs" - }, - { - "path": "notes/memory-import-is-the-aha.md", - "language": "markdown", - "sizeLines": 10, - "fileCategory": "docs" - }, - { - "path": "notes/provenance-not-raw-logs.md", - "language": "markdown", - "sizeLines": 10, - "fileCategory": "docs" - }, - { - "path": "notes/risk-vocabulary-drift.md", - "language": "markdown", - "sizeLines": 10, - "fileCategory": "docs" - }, - { - "path": "notes/silent-defaults-over-ratification.md", - "language": "markdown", - "sizeLines": 8, - "fileCategory": "docs" - }, - { - "path": "notes/staged-evidence-catch22.md", - "language": "markdown", - "sizeLines": 14, - "fileCategory": "docs" - }, - { - "path": "ops/litellm/README.md", - "language": "markdown", - "sizeLines": 161, - "fileCategory": "docs" - }, - { - "path": "package.json", - "language": "json", - "sizeLines": 86, - "fileCategory": "config" - }, - { - "path": "packages/admin-web/index.html", - "language": "html", - "sizeLines": 12, - "fileCategory": "markup" - }, - { - "path": "packages/admin-web/package.json", - "language": "json", - "sizeLines": 22, - "fileCategory": "config" - }, - { - "path": "packages/admin-web/src/api.ts", - "language": "typescript", - "sizeLines": 210, - "fileCategory": "code" - }, - { - "path": "packages/admin-web/src/App.tsx", - "language": "typescript", - "sizeLines": 138, - "fileCategory": "code" - }, - { - "path": "packages/admin-web/src/main.tsx", - "language": "typescript", - "sizeLines": 9, - "fileCategory": "code" - }, - { - "path": "packages/admin-web/src/pages/Analytics.tsx", - "language": "typescript", - "sizeLines": 376, - "fileCategory": "code" - }, - { - "path": "packages/admin-web/src/pages/Audit.tsx", - "language": "typescript", - "sizeLines": 161, - "fileCategory": "code" - }, - { - "path": "packages/admin-web/src/pages/Capabilities.tsx", - "language": "typescript", - "sizeLines": 886, - "fileCategory": "code" - }, - { - "path": "packages/admin-web/src/pages/Dashboard.tsx", - "language": "typescript", - "sizeLines": 231, - "fileCategory": "code" - }, - { - "path": "packages/admin-web/src/pages/Jobs.tsx", - "language": "typescript", - "sizeLines": 147, - "fileCategory": "code" - }, - { - "path": "packages/admin-web/src/pages/Members.tsx", - "language": "typescript", - "sizeLines": 263, - "fileCategory": "code" - }, - { - "path": "packages/admin-web/src/pages/TeamSettings.tsx", - "language": "typescript", - "sizeLines": 152, - "fileCategory": "code" - }, - { - "path": "packages/admin-web/src/vite-env.d.ts", - "language": "typescript", - "sizeLines": 1, - "fileCategory": "code" - }, - { - "path": "packages/admin-web/tests/admin-pages.test.ts", - "language": "typescript", - "sizeLines": 537, - "fileCategory": "code" - }, - { - "path": "packages/admin-web/tsconfig.json", - "language": "json", - "sizeLines": 15, - "fileCategory": "config" - }, - { - "path": "packages/admin-web/vite.config.ts", - "language": "typescript", - "sizeLines": 7, - "fileCategory": "code" - }, - { - "path": "packages/agent/config/model-prompt-shapes.json", - "language": "json", - "sizeLines": 30, - "fileCategory": "config" - }, - { - "path": "packages/agent/package.json", - "language": "json", - "sizeLines": 25, - "fileCategory": "config" - }, - { - "path": "packages/agent/src/agent-comms-tools.ts", - "language": "typescript", - "sizeLines": 80, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/agent-learning.ts", - "language": "typescript", - "sizeLines": 194, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/agent-loop.ts", - "language": "typescript", - "sizeLines": 479, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/agent-message-bus.ts", - "language": "typescript", - "sizeLines": 101, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/audit-tools.ts", - "language": "typescript", - "sizeLines": 66, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/auto-identity.ts", - "language": "typescript", - "sizeLines": 46, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/behavioral-spec.ts", - "language": "typescript", - "sizeLines": 449, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/browser-tools.ts", - "language": "typescript", - "sizeLines": 380, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/builtin-harnesses.ts", - "language": "typescript", - "sizeLines": 259, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/canary/phase-5-monitoring.ts", - "language": "typescript", - "sizeLines": 490, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/canary/phase-5-router.ts", - "language": "typescript", - "sizeLines": 180, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/capability-acquisition.ts", - "language": "typescript", - "sizeLines": 447, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/capability-router.ts", - "language": "typescript", - "sizeLines": 186, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/cli-tools.ts", - "language": "typescript", - "sizeLines": 163, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/cognify.ts", - "language": "typescript", - "sizeLines": 258, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/combined-retrieval.ts", - "language": "typescript", - "sizeLines": 306, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/commands/command-registry.ts", - "language": "typescript", - "sizeLines": 121, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/commands/marketplace-commands.ts", - "language": "typescript", - "sizeLines": 313, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/commands/workflow-commands.ts", - "language": "typescript", - "sizeLines": 622, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/compliance-pdf.ts", - "language": "typescript", - "sizeLines": 343, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/compose-evolution.ts", - "language": "typescript", - "sizeLines": 281, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/confirmation.ts", - "language": "typescript", - "sizeLines": 315, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/connector-registry.ts", - "language": "typescript", - "sizeLines": 121, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/connector-sdk.ts", - "language": "typescript", - "sizeLines": 130, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/connector-search.ts", - "language": "typescript", - "sizeLines": 265, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/connectors/airtable-connector.ts", - "language": "typescript", - "sizeLines": 259, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/connectors/asana-connector.ts", - "language": "typescript", - "sizeLines": 254, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/connectors/bitbucket-connector.ts", - "language": "typescript", - "sizeLines": 226, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/connectors/composio-connector.ts", - "language": "typescript", - "sizeLines": 243, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/connectors/confluence-connector.ts", - "language": "typescript", - "sizeLines": 273, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/connectors/discord-connector.ts", - "language": "typescript", - "sizeLines": 192, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/connectors/dropbox-connector.ts", - "language": "typescript", - "sizeLines": 260, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/connectors/email-connector.ts", - "language": "typescript", - "sizeLines": 224, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/connectors/gcal-connector.ts", - "language": "typescript", - "sizeLines": 294, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/connectors/gdocs-connector.ts", - "language": "typescript", - "sizeLines": 195, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/connectors/gdrive-connector.ts", - "language": "typescript", - "sizeLines": 295, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/connectors/github-connector.ts", - "language": "typescript", - "sizeLines": 218, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/connectors/gitlab-connector.ts", - "language": "typescript", - "sizeLines": 240, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/connectors/gmail-connector.ts", - "language": "typescript", - "sizeLines": 237, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/connectors/gsheets-connector.ts", - "language": "typescript", - "sizeLines": 249, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/connectors/hubspot-connector.ts", - "language": "typescript", - "sizeLines": 243, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/connectors/index.ts", - "language": "typescript", - "sizeLines": 30, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/connectors/jira-connector.ts", - "language": "typescript", - "sizeLines": 256, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/connectors/linear-connector.ts", - "language": "typescript", - "sizeLines": 237, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/connectors/monday-connector.ts", - "language": "typescript", - "sizeLines": 210, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/connectors/ms-teams-connector.ts", - "language": "typescript", - "sizeLines": 199, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/connectors/notion-connector.ts", - "language": "typescript", - "sizeLines": 285, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/connectors/obsidian-connector.ts", - "language": "typescript", - "sizeLines": 345, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/connectors/onedrive-connector.ts", - "language": "typescript", - "sizeLines": 211, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/connectors/onenote-connector.ts", - "language": "typescript", - "sizeLines": 292, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/connectors/outlook-connector.ts", - "language": "typescript", - "sizeLines": 263, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/connectors/pipedrive-connector.ts", - "language": "typescript", - "sizeLines": 201, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/connectors/postgres-connector.ts", - "language": "typescript", - "sizeLines": 287, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/connectors/salesforce-connector.ts", - "language": "typescript", - "sizeLines": 248, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/connectors/slack-connector.ts", - "language": "typescript", - "sizeLines": 162, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/connectors/trello-connector.ts", - "language": "typescript", - "sizeLines": 270, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/content-constants.ts", - "language": "typescript", - "sizeLines": 26, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/context-compressor.ts", - "language": "typescript", - "sizeLines": 410, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/context-loader.ts", - "language": "typescript", - "sizeLines": 261, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/contradiction-detector.ts", - "language": "typescript", - "sizeLines": 111, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/correction-detector.ts", - "language": "typescript", - "sizeLines": 199, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/cost-tracker.ts", - "language": "typescript", - "sizeLines": 143, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/credential-pool.ts", - "language": "typescript", - "sizeLines": 309, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/cron-delivery-router.ts", - "language": "typescript", - "sizeLines": 213, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/cron-tools.ts", - "language": "typescript", - "sizeLines": 318, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/cross-workspace-tools.ts", - "language": "typescript", - "sizeLines": 318, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/custom-personas.ts", - "language": "typescript", - "sizeLines": 46, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/custom-workflows.ts", - "language": "typescript", - "sizeLines": 50, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/document-tools.ts", - "language": "typescript", - "sizeLines": 626, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/entity-extractor.ts", - "language": "typescript", - "sizeLines": 200, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/eval-dataset.ts", - "language": "typescript", - "sizeLines": 441, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/evolution-deploy.ts", - "language": "typescript", - "sizeLines": 274, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/evolution-gates.ts", - "language": "typescript", - "sizeLines": 316, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/evolution-llm-wiring.ts", - "language": "typescript", - "sizeLines": 484, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/evolution-orchestrator.ts", - "language": "typescript", - "sizeLines": 371, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/evolve-schema.ts", - "language": "typescript", - "sizeLines": 852, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/feature-flags.ts", - "language": "typescript", - "sizeLines": 95, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/feedback-handler.ts", - "language": "typescript", - "sizeLines": 40, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/git-tools.ts", - "language": "typescript", - "sizeLines": 298, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/grounding-check.ts", - "language": "typescript", - "sizeLines": 128, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/harness-trace-bridge.ts", - "language": "typescript", - "sizeLines": 177, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/hook-loader.ts", - "language": "typescript", - "sizeLines": 51, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/hooks.ts", - "language": "typescript", - "sizeLines": 100, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/improvement-detector.ts", - "language": "typescript", - "sizeLines": 249, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/improvement-wiring.ts", - "language": "typescript", - "sizeLines": 181, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/index.ts", - "language": "typescript", - "sizeLines": 471, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/insights-tools.ts", - "language": "typescript", - "sizeLines": 140, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/injection-scanner.ts", - "language": "typescript", - "sizeLines": 10, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/iteration-budget.ts", - "language": "typescript", - "sizeLines": 45, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/iterative-optimizer.ts", - "language": "typescript", - "sizeLines": 626, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/judge.ts", - "language": "typescript", - "sizeLines": 341, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/kvark-tools.ts", - "language": "typescript", - "sizeLines": 311, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/long-task/checkpoint.ts", - "language": "typescript", - "sizeLines": 367, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/long-task/context-manager.ts", - "language": "typescript", - "sizeLines": 495, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/long-task/failure-classify.ts", - "language": "typescript", - "sizeLines": 594, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/long-task/messages-compressor.ts", - "language": "typescript", - "sizeLines": 323, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/long-task/recovery.ts", - "language": "typescript", - "sizeLines": 464, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/long-task/report.ts", - "language": "typescript", - "sizeLines": 599, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/loop-gates.ts", - "language": "typescript", - "sizeLines": 171, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/loop-guard.ts", - "language": "typescript", - "sizeLines": 68, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/lsp-tools.ts", - "language": "typescript", - "sizeLines": 509, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/mcp/mcp-runtime.ts", - "language": "typescript", - "sizeLines": 466, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/memory-linker.ts", - "language": "typescript", - "sizeLines": 28, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/memory-sign-gate.ts", - "language": "typescript", - "sizeLines": 53, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/model-family.ts", - "language": "typescript", - "sizeLines": 76, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/model-router.ts", - "language": "typescript", - "sizeLines": 103, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/model-tier.ts", - "language": "typescript", - "sizeLines": 43, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/optimization-capture.ts", - "language": "typescript", - "sizeLines": 96, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/orchestrator.ts", - "language": "typescript", - "sizeLines": 879, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/output-normalize.ts", - "language": "typescript", - "sizeLines": 279, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/pattern-write-back.ts", - "language": "typescript", - "sizeLines": 377, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/pdf-tools.ts", - "language": "typescript", - "sizeLines": 228, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/permissions.ts", - "language": "typescript", - "sizeLines": 38, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/persona-data.ts", - "language": "typescript", - "sizeLines": 965, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/personas.ts", - "language": "typescript", - "sizeLines": 119, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/plan-tools.ts", - "language": "typescript", - "sizeLines": 79, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/plan.ts", - "language": "typescript", - "sizeLines": 58, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/presentation-tools.ts", - "language": "typescript", - "sizeLines": 203, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/prompt-assembler.ts", - "language": "typescript", - "sizeLines": 467, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/prompt-loader.ts", - "language": "typescript", - "sizeLines": 115, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/prompt-shapes/claude.ts", - "language": "typescript", - "sizeLines": 96, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/prompt-shapes/generic-simple.ts", - "language": "typescript", - "sizeLines": 79, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/prompt-shapes/gepa-evolved/claude-gen1-v1.ts", - "language": "typescript", - "sizeLines": 147, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/prompt-shapes/gepa-evolved/claude-gen1-v2.ts", - "language": "typescript", - "sizeLines": 146, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/prompt-shapes/gepa-evolved/generic-simple-gen1-v1.ts", - "language": "typescript", - "sizeLines": 94, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/prompt-shapes/gepa-evolved/generic-simple-gen1-v2.ts", - "language": "typescript", - "sizeLines": 52, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/prompt-shapes/gepa-evolved/gpt-gen1-v1.ts", - "language": "typescript", - "sizeLines": 73, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/prompt-shapes/gepa-evolved/gpt-gen1-v2.ts", - "language": "typescript", - "sizeLines": 52, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/prompt-shapes/gepa-evolved/qwen-non-thinking-gen1-v1.ts", - "language": "typescript", - "sizeLines": 52, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/prompt-shapes/gepa-evolved/qwen-non-thinking-gen1-v2.ts", - "language": "typescript", - "sizeLines": 99, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/prompt-shapes/gepa-evolved/qwen-thinking-gen1-v1.ts", - "language": "typescript", - "sizeLines": 101, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/prompt-shapes/gepa-evolved/qwen-thinking-gen1-v2.ts", - "language": "typescript", - "sizeLines": 52, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/prompt-shapes/gpt.ts", - "language": "typescript", - "sizeLines": 68, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/prompt-shapes/index.ts", - "language": "typescript", - "sizeLines": 54, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/prompt-shapes/qwen-non-thinking.ts", - "language": "typescript", - "sizeLines": 85, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/prompt-shapes/qwen-thinking.ts", - "language": "typescript", - "sizeLines": 87, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/prompt-shapes/README.md", - "language": "markdown", - "sizeLines": 160, - "fileCategory": "docs" - }, - { - "path": "packages/agent/src/prompt-shapes/selector.ts", - "language": "typescript", - "sizeLines": 177, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/prompt-shapes/types.ts", - "language": "typescript", - "sizeLines": 101, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/providers/openai-compat.ts", - "language": "typescript", - "sizeLines": 81, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/quality-controller.ts", - "language": "typescript", - "sizeLines": 55, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/result-formatter.ts", - "language": "typescript", - "sizeLines": 68, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/retrieval-agent-loop.ts", - "language": "typescript", - "sizeLines": 973, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/retry-policy.ts", - "language": "typescript", - "sizeLines": 168, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/run-meta.ts", - "language": "typescript", - "sizeLines": 453, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/search-tools.ts", - "language": "typescript", - "sizeLines": 287, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/self-awareness.ts", - "language": "typescript", - "sizeLines": 107, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/skill-autoextract.ts", - "language": "typescript", - "sizeLines": 138, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/skill-creator.ts", - "language": "typescript", - "sizeLines": 227, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/skill-distillation.ts", - "language": "typescript", - "sizeLines": 80, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/skill-frontmatter.ts", - "language": "typescript", - "sizeLines": 196, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/skill-recommender.ts", - "language": "typescript", - "sizeLines": 251, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/skill-redaction.ts", - "language": "typescript", - "sizeLines": 62, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/skill-retirement.ts", - "language": "typescript", - "sizeLines": 145, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/skill-tools.ts", - "language": "typescript", - "sizeLines": 931, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/skill-usage.ts", - "language": "typescript", - "sizeLines": 88, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/skill-watcher.ts", - "language": "typescript", - "sizeLines": 103, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/skill-write-service.ts", - "language": "typescript", - "sizeLines": 190, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/smart-router.ts", - "language": "typescript", - "sizeLines": 25, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/spreadsheet-tools.ts", - "language": "typescript", - "sizeLines": 141, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/sse-parser.ts", - "language": "typescript", - "sizeLines": 158, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/subagent-orchestrator.ts", - "language": "typescript", - "sizeLines": 320, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/subagent-tools.ts", - "language": "typescript", - "sizeLines": 382, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/system-tools-helpers.ts", - "language": "typescript", - "sizeLines": 72, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/system-tools.ts", - "language": "typescript", - "sizeLines": 995, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/task-shape.ts", - "language": "typescript", - "sizeLines": 272, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/team-tools.ts", - "language": "typescript", - "sizeLines": 334, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/text-analysis.ts", - "language": "typescript", - "sizeLines": 56, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/tool-detection.ts", - "language": "typescript", - "sizeLines": 458, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/tool-executor.ts", - "language": "typescript", - "sizeLines": 186, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/tool-filter.ts", - "language": "typescript", - "sizeLines": 80, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/tool-launcher.ts", - "language": "typescript", - "sizeLines": 330, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/tool-process-tracker.ts", - "language": "typescript", - "sizeLines": 195, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/tools.ts", - "language": "typescript", - "sizeLines": 673, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/trace-recorder.ts", - "language": "typescript", - "sizeLines": 312, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/trust-model.ts", - "language": "typescript", - "sizeLines": 447, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/turn-context.ts", - "language": "typescript", - "sizeLines": 76, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/verification-gate.ts", - "language": "typescript", - "sizeLines": 60, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/web-search-utils.ts", - "language": "typescript", - "sizeLines": 45, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/workflow-capture.ts", - "language": "typescript", - "sizeLines": 199, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/workflow-composer.ts", - "language": "typescript", - "sizeLines": 409, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/workflow-harness.ts", - "language": "typescript", - "sizeLines": 482, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/workflow-templates.ts", - "language": "typescript", - "sizeLines": 180, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/workflow-tools.ts", - "language": "typescript", - "sizeLines": 377, - "fileCategory": "code" - }, - { - "path": "packages/agent/src/workspace.ts", - "language": "typescript", - "sizeLines": 98, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/agent-intelligence.test.ts", - "language": "typescript", - "sizeLines": 97, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/agent-loop-network-retry.test.ts", - "language": "typescript", - "sizeLines": 77, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/agent-loop-tracing.test.ts", - "language": "typescript", - "sizeLines": 223, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/agent-loop.test.ts", - "language": "typescript", - "sizeLines": 761, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/agent-message-bus.test.ts", - "language": "typescript", - "sizeLines": 152, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/audit-tools.test.ts", - "language": "typescript", - "sizeLines": 64, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/auto-identity.test.ts", - "language": "typescript", - "sizeLines": 77, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/background-bash.test.ts", - "language": "typescript", - "sizeLines": 195, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/background-task-cleanup.test.ts", - "language": "typescript", - "sizeLines": 111, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/bash-sandboxing.test.ts", - "language": "typescript", - "sizeLines": 316, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/behavioral-spec-overrides.test.ts", - "language": "typescript", - "sizeLines": 104, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/browser-tools.test.ts", - "language": "typescript", - "sizeLines": 129, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/capability-acquisition-trust.test.ts", - "language": "typescript", - "sizeLines": 271, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/capability-acquisition.test.ts", - "language": "typescript", - "sizeLines": 309, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/capability-marketplace.test.ts", - "language": "typescript", - "sizeLines": 242, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/capability-router.test.ts", - "language": "typescript", - "sizeLines": 148, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/cli-tools.test.ts", - "language": "typescript", - "sizeLines": 134, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/cognify-linking.test.ts", - "language": "typescript", - "sizeLines": 79, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/cognify.test.ts", - "language": "typescript", - "sizeLines": 110, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/combined-retrieval.test.ts", - "language": "typescript", - "sizeLines": 377, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/compliance-pdf.test.ts", - "language": "typescript", - "sizeLines": 193, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/compose-evolution.test.ts", - "language": "typescript", - "sizeLines": 373, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/compose-workflow-tool.test.ts", - "language": "typescript", - "sizeLines": 144, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/confirmation.test.ts", - "language": "typescript", - "sizeLines": 181, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/conflict-detection.test.ts", - "language": "typescript", - "sizeLines": 196, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/connector-routing.test.ts", - "language": "typescript", - "sizeLines": 95, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/connector-sdk.test.ts", - "language": "typescript", - "sizeLines": 334, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/connector-search.test.ts", - "language": "typescript", - "sizeLines": 134, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/connectors-communication.test.ts", - "language": "typescript", - "sizeLines": 54, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/connectors/connectors-composio.test.ts", - "language": "typescript", - "sizeLines": 208, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/connectors/connectors-crm-data.test.ts", - "language": "typescript", - "sizeLines": 490, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/connectors/connectors-google.test.ts", - "language": "typescript", - "sizeLines": 488, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/connectors/connectors-knowledge.test.ts", - "language": "typescript", - "sizeLines": 522, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/connectors/connectors-microsoft.test.ts", - "language": "typescript", - "sizeLines": 711, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/connectors/connectors-pm.test.ts", - "language": "typescript", - "sizeLines": 439, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/connectors/discord-connector.test.ts", - "language": "typescript", - "sizeLines": 137, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/connectors/email-connector.test.ts", - "language": "typescript", - "sizeLines": 144, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/connectors/gcal-connector.test.ts", - "language": "typescript", - "sizeLines": 232, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/connectors/github-connector.test.ts", - "language": "typescript", - "sizeLines": 112, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/connectors/jira-connector.test.ts", - "language": "typescript", - "sizeLines": 131, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/connectors/slack-connector.test.ts", - "language": "typescript", - "sizeLines": 89, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/context-compressor.test.ts", - "language": "typescript", - "sizeLines": 434, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/correction-detector.test.ts", - "language": "typescript", - "sizeLines": 204, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/cost-tracker.test.ts", - "language": "typescript", - "sizeLines": 55, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/credential-pool.test.ts", - "language": "typescript", - "sizeLines": 369, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/cron-delivery-router.test.ts", - "language": "typescript", - "sizeLines": 270, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/cron-tools.test.ts", - "language": "typescript", - "sizeLines": 348, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/d6-recovery-confab.test.ts", - "language": "typescript", - "sizeLines": 83, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/document-tools.test.ts", - "language": "typescript", - "sizeLines": 148, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/e2e/connector-swarm-scenarios.test.ts", - "language": "typescript", - "sizeLines": 247, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/e2e/scenario-framework.ts", - "language": "typescript", - "sizeLines": 97, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/e2e/solo-scenarios.test.ts", - "language": "typescript", - "sizeLines": 204, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/enhanced-grep.test.ts", - "language": "typescript", - "sizeLines": 223, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/enhanced-read-file.test.ts", - "language": "typescript", - "sizeLines": 144, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/entity-extractor.test.ts", - "language": "typescript", - "sizeLines": 27, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/eval-dataset.test.ts", - "language": "typescript", - "sizeLines": 348, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/eval/adversarial.ts", - "language": "typescript", - "sizeLines": 68, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/eval/eval.test.ts", - "language": "typescript", - "sizeLines": 60, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/eval/framework.ts", - "language": "typescript", - "sizeLines": 72, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/eval/hermes-skill-reuse-eval.ts", - "language": "typescript", - "sizeLines": 506, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/eval/prompt-assembler-eval.ts", - "language": "typescript", - "sizeLines": 745, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/eval/prompt-assembler-v5-eval.ts", - "language": "typescript", - "sizeLines": 1247, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/eval/scenarios-prompt-assembler-v5.ts", - "language": "typescript", - "sizeLines": 241, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/eval/scenarios-prompt-assembler.ts", - "language": "typescript", - "sizeLines": 225, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/eval/scenarios.ts", - "language": "typescript", - "sizeLines": 71, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/evolution-deploy.test.ts", - "language": "typescript", - "sizeLines": 303, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/evolution-gates.test.ts", - "language": "typescript", - "sizeLines": 245, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/evolution-llm-wiring.test.ts", - "language": "typescript", - "sizeLines": 606, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/evolution-orchestrator.test.ts", - "language": "typescript", - "sizeLines": 447, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/evolve-schema.test.ts", - "language": "typescript", - "sizeLines": 545, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/feature-flags.test.ts", - "language": "typescript", - "sizeLines": 54, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/feedback-handler.test.ts", - "language": "typescript", - "sizeLines": 75, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/git-tools.test.ts", - "language": "typescript", - "sizeLines": 203, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/governance-enforcement.test.ts", - "language": "typescript", - "sizeLines": 185, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/grounding-check.test.ts", - "language": "typescript", - "sizeLines": 65, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/harness-trace-bridge.test.ts", - "language": "typescript", - "sizeLines": 336, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/hook-loader.test.ts", - "language": "typescript", - "sizeLines": 112, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/hooks-expansion.test.ts", - "language": "typescript", - "sizeLines": 210, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/hooks-integration.test.ts", - "language": "typescript", - "sizeLines": 147, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/hooks.test.ts", - "language": "typescript", - "sizeLines": 88, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/improvement-detector.test.ts", - "language": "typescript", - "sizeLines": 226, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/improvement-wiring.test.ts", - "language": "typescript", - "sizeLines": 153, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/integration-local.test.ts", - "language": "typescript", - "sizeLines": 344, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/integration-m3b.test.ts", - "language": "typescript", - "sizeLines": 116, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/integration-m3c.test.ts", - "language": "typescript", - "sizeLines": 112, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/integration/phase6-capability-truth.test.ts", - "language": "typescript", - "sizeLines": 451, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/injection-scanner.test.ts", - "language": "typescript", - "sizeLines": 44, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/iteration-budget.test.ts", - "language": "typescript", - "sizeLines": 70, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/iterative-optimizer.test.ts", - "language": "typescript", - "sizeLines": 655, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/judge.test.ts", - "language": "typescript", - "sizeLines": 257, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/kvark-pipeline-smoke.test.ts", - "language": "typescript", - "sizeLines": 138, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/kvark-tools.test.ts", - "language": "typescript", - "sizeLines": 431, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/long-task-checkpoint.test.ts", - "language": "typescript", - "sizeLines": 521, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/long-task-context-manager.test.ts", - "language": "typescript", - "sizeLines": 683, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/long-task-failure-classify.test.ts", - "language": "typescript", - "sizeLines": 641, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/long-task-loop-integration.test.ts", - "language": "typescript", - "sizeLines": 850, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/long-task-messages-compressor.test.ts", - "language": "typescript", - "sizeLines": 507, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/long-task-recovery.test.ts", - "language": "typescript", - "sizeLines": 820, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/long-task-report.test.ts", - "language": "typescript", - "sizeLines": 506, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/loop-guard-window.test.ts", - "language": "typescript", - "sizeLines": 123, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/loop-guard.test.ts", - "language": "typescript", - "sizeLines": 38, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/lsp-tools.test.ts", - "language": "typescript", - "sizeLines": 128, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/marketplace-commands.test.ts", - "language": "typescript", - "sizeLines": 303, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/mcp-runtime.test.ts", - "language": "typescript", - "sizeLines": 455, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/memory-linker.test.ts", - "language": "typescript", - "sizeLines": 59, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/memory-sign-gate.test.ts", - "language": "typescript", - "sizeLines": 52, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/model-family.test.ts", - "language": "typescript", - "sizeLines": 165, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/model-router.test.ts", - "language": "typescript", - "sizeLines": 95, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/model-tier.test.ts", - "language": "typescript", - "sizeLines": 64, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/multi-edit.test.ts", - "language": "typescript", - "sizeLines": 195, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/optimization-capture.test.ts", - "language": "typescript", - "sizeLines": 280, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/orchestrator-context-frames.test.ts", - "language": "typescript", - "sizeLines": 138, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/orchestrator-recall-hardening.test.ts", - "language": "typescript", - "sizeLines": 271, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/orchestrator.test.ts", - "language": "typescript", - "sizeLines": 244, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/output-normalize.test.ts", - "language": "typescript", - "sizeLines": 350, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/performance/perf-baselines.test.ts", - "language": "typescript", - "sizeLines": 182, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/permissions.test.ts", - "language": "typescript", - "sizeLines": 70, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/personas.test.ts", - "language": "typescript", - "sizeLines": 222, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/phase-5-canary-router.test.ts", - "language": "typescript", - "sizeLines": 318, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/phase-5-monitoring.test.ts", - "language": "typescript", - "sizeLines": 404, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/phase4-hooks-cohort.test.ts", - "language": "typescript", - "sizeLines": 141, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/phase4-retry-after-nan.test.ts", - "language": "typescript", - "sizeLines": 86, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/phase4-subagent-dup-worker.test.ts", - "language": "typescript", - "sizeLines": 102, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/plan-tools.test.ts", - "language": "typescript", - "sizeLines": 60, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/plan.test.ts", - "language": "typescript", - "sizeLines": 80, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/premium-contract-e2e.test.ts", - "language": "typescript", - "sizeLines": 96, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/promote-skill.test.ts", - "language": "typescript", - "sizeLines": 186, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/prompt-assembler-feature-flag.test.ts", - "language": "typescript", - "sizeLines": 97, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/prompt-assembler.test.ts", - "language": "typescript", - "sizeLines": 531, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/prompt-loader.test.ts", - "language": "typescript", - "sizeLines": 140, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/prompt-shapes.test.ts", - "language": "typescript", - "sizeLines": 238, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/quality-controller.test.ts", - "language": "typescript", - "sizeLines": 29, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/r2-recall-closure.test.ts", - "language": "typescript", - "sizeLines": 79, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/retrieval-agent-loop.test.ts", - "language": "typescript", - "sizeLines": 511, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/run-meta.test.ts", - "language": "typescript", - "sizeLines": 448, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/save-memory-conflict.test.ts", - "language": "typescript", - "sizeLines": 150, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/search-memory-combined.test.ts", - "language": "typescript", - "sizeLines": 179, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/search-tools.test.ts", - "language": "typescript", - "sizeLines": 237, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/self-awareness.test.ts", - "language": "typescript", - "sizeLines": 148, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/skill-autoextract.test.ts", - "language": "typescript", - "sizeLines": 151, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/skill-creator.test.ts", - "language": "typescript", - "sizeLines": 394, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/skill-diffusion.test.ts", - "language": "typescript", - "sizeLines": 173, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/skill-distillation-loop.test.ts", - "language": "typescript", - "sizeLines": 150, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/skill-distillation.test.ts", - "language": "typescript", - "sizeLines": 82, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/skill-frontmatter.test.ts", - "language": "typescript", - "sizeLines": 286, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/skill-recommender.test.ts", - "language": "typescript", - "sizeLines": 114, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/skill-redaction.test.ts", - "language": "typescript", - "sizeLines": 52, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/skill-retirement.test.ts", - "language": "typescript", - "sizeLines": 158, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/skill-tools.test.ts", - "language": "typescript", - "sizeLines": 116, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/skill-watcher.test.ts", - "language": "typescript", - "sizeLines": 121, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/skill-write-service.test.ts", - "language": "typescript", - "sizeLines": 130, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/smart-router.test.ts", - "language": "typescript", - "sizeLines": 67, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/sse-parser.test.ts", - "language": "typescript", - "sizeLines": 62, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/streaming.test.ts", - "language": "typescript", - "sizeLines": 236, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/subagent-cleanup.test.ts", - "language": "typescript", - "sizeLines": 241, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/subagent-isolation.test.ts", - "language": "typescript", - "sizeLines": 101, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/subagent-orchestrator.test.ts", - "language": "typescript", - "sizeLines": 433, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/subagent-tools.test.ts", - "language": "typescript", - "sizeLines": 230, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/system-tools-backend.test.ts", - "language": "typescript", - "sizeLines": 209, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/system-tools.test.ts", - "language": "typescript", - "sizeLines": 202, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/task-shape.test.ts", - "language": "typescript", - "sizeLines": 193, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/team-tools.test.ts", - "language": "typescript", - "sizeLines": 349, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/text-analysis.test.ts", - "language": "typescript", - "sizeLines": 306, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/tool-detection.test.ts", - "language": "typescript", - "sizeLines": 354, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/tool-filter.test.ts", - "language": "typescript", - "sizeLines": 134, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/tool-launcher.test.ts", - "language": "typescript", - "sizeLines": 302, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/tool-process-tracker.test.ts", - "language": "typescript", - "sizeLines": 169, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/trace-recorder.test.ts", - "language": "typescript", - "sizeLines": 290, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/trust-model.test.ts", - "language": "typescript", - "sizeLines": 370, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/turn-context.test.ts", - "language": "typescript", - "sizeLines": 142, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/verification-gate-loop.test.ts", - "language": "typescript", - "sizeLines": 69, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/verification-gate.test.ts", - "language": "typescript", - "sizeLines": 62, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/w41-temporal-recall.test.ts", - "language": "typescript", - "sizeLines": 124, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/w42-reranker-recall.test.ts", - "language": "typescript", - "sizeLines": 69, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/w43-recall-lanes.test.ts", - "language": "typescript", - "sizeLines": 81, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/w45-assembler-recall.test.ts", - "language": "typescript", - "sizeLines": 93, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/w46-rawdetail-recall.test.ts", - "language": "typescript", - "sizeLines": 123, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/wave-e-topology.test.ts", - "language": "typescript", - "sizeLines": 143, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/web-search-cache.test.ts", - "language": "typescript", - "sizeLines": 52, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/workflow-commands.test.ts", - "language": "typescript", - "sizeLines": 287, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/workflow-composer.test.ts", - "language": "typescript", - "sizeLines": 301, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/workflow-templates-new.test.ts", - "language": "typescript", - "sizeLines": 28, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/workflow-templates.test.ts", - "language": "typescript", - "sizeLines": 264, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/workflow-tools-harness.test.ts", - "language": "typescript", - "sizeLines": 246, - "fileCategory": "code" - }, - { - "path": "packages/agent/tests/workspace.test.ts", - "language": "typescript", - "sizeLines": 173, - "fileCategory": "code" - }, - { - "path": "packages/agent/tsconfig.json", - "language": "json", - "sizeLines": 24, - "fileCategory": "config" - }, - { - "path": "packages/agent/vitest.config.ts", - "language": "typescript", - "sizeLines": 9, - "fileCategory": "code" - }, - { - "path": "packages/cli/bin/waggle.js", - "language": "javascript", - "sizeLines": 2, - "fileCategory": "code" - }, - { - "path": "packages/cli/package.json", - "language": "json", - "sizeLines": 63, - "fileCategory": "config" - }, - { - "path": "packages/cli/src/auth.ts", - "language": "typescript", - "sizeLines": 147, - "fileCategory": "code" - }, - { - "path": "packages/cli/src/commands.ts", - "language": "typescript", - "sizeLines": 50, - "fileCategory": "code" - }, - { - "path": "packages/cli/src/commands/admin.ts", - "language": "typescript", - "sizeLines": 78, - "fileCategory": "code" - }, - { - "path": "packages/cli/src/index.ts", - "language": "typescript", - "sizeLines": 56, - "fileCategory": "code" - }, - { - "path": "packages/cli/src/mode-detector.ts", - "language": "typescript", - "sizeLines": 56, - "fileCategory": "code" - }, - { - "path": "packages/cli/src/renderer.ts", - "language": "typescript", - "sizeLines": 82, - "fileCategory": "code" - }, - { - "path": "packages/cli/src/repl.ts", - "language": "typescript", - "sizeLines": 496, - "fileCategory": "code" - }, - { - "path": "packages/cli/test-hello.txt", - "language": "txt", - "sizeLines": 0, - "fileCategory": "docs" - }, - { - "path": "packages/cli/tests/admin.test.ts", - "language": "typescript", - "sizeLines": 75, - "fileCategory": "code" - }, - { - "path": "packages/cli/tests/auth.test.ts", - "language": "typescript", - "sizeLines": 90, - "fileCategory": "code" - }, - { - "path": "packages/cli/tests/commands.test.ts", - "language": "typescript", - "sizeLines": 36, - "fileCategory": "code" - }, - { - "path": "packages/cli/tests/comprehensive-e2e.test.ts", - "language": "typescript", - "sizeLines": 373, - "fileCategory": "code" - }, - { - "path": "packages/cli/tests/memory-persistence-hard.test.ts", - "language": "typescript", - "sizeLines": 283, - "fileCategory": "code" - }, - { - "path": "packages/cli/tests/mode-detector.test.ts", - "language": "typescript", - "sizeLines": 71, - "fileCategory": "code" - }, - { - "path": "packages/cli/tests/real-session-simulation.ts", - "language": "typescript", - "sizeLines": 317, - "fileCategory": "code" - }, - { - "path": "packages/cli/tests/renderer.test.ts", - "language": "typescript", - "sizeLines": 24, - "fileCategory": "code" - }, - { - "path": "packages/cli/tsconfig.json", - "language": "json", - "sizeLines": 26, - "fileCategory": "config" - }, - { - "path": "packages/core/package.json", - "language": "json", - "sizeLines": 25, - "fileCategory": "config" - }, - { - "path": "packages/core/src/compliance/index.ts", - "language": "typescript", - "sizeLines": 5, - "fileCategory": "code" - }, - { - "path": "packages/core/src/compliance/interaction-store.ts", - "language": "typescript", - "sizeLines": 208, - "fileCategory": "code" - }, - { - "path": "packages/core/src/compliance/report-generator.ts", - "language": "typescript", - "sizeLines": 104, - "fileCategory": "code" - }, - { - "path": "packages/core/src/compliance/status-checker.ts", - "language": "typescript", - "sizeLines": 175, - "fileCategory": "code" - }, - { - "path": "packages/core/src/compliance/template-store.ts", - "language": "typescript", - "sizeLines": 242, - "fileCategory": "code" - }, - { - "path": "packages/core/src/compliance/types.ts", - "language": "typescript", - "sizeLines": 201, - "fileCategory": "code" - }, - { - "path": "packages/core/src/config.ts", - "language": "typescript", - "sizeLines": 230, - "fileCategory": "code" - }, - { - "path": "packages/core/src/cron-store.ts", - "language": "typescript", - "sizeLines": 367, - "fileCategory": "code" - }, - { - "path": "packages/core/src/file-indexer.ts", - "language": "typescript", - "sizeLines": 259, - "fileCategory": "code" - }, - { - "path": "packages/core/src/file-store.ts", - "language": "typescript", - "sizeLines": 465, - "fileCategory": "code" - }, - { - "path": "packages/core/src/index.ts", - "language": "typescript", - "sizeLines": 150, - "fileCategory": "code" - }, - { - "path": "packages/core/src/install-audit.ts", - "language": "typescript", - "sizeLines": 221, - "fileCategory": "code" - }, - { - "path": "packages/core/src/memory-import.ts", - "language": "typescript", - "sizeLines": 292, - "fileCategory": "code" - }, - { - "path": "packages/core/src/migration.ts", - "language": "typescript", - "sizeLines": 45, - "fileCategory": "code" - }, - { - "path": "packages/core/src/optimization-log.ts", - "language": "typescript", - "sizeLines": 154, - "fileCategory": "code" - }, - { - "path": "packages/core/src/skill-hashes.ts", - "language": "typescript", - "sizeLines": 122, - "fileCategory": "code" - }, - { - "path": "packages/core/src/team-sync.ts", - "language": "typescript", - "sizeLines": 186, - "fileCategory": "code" - }, - { - "path": "packages/core/src/telemetry.ts", - "language": "typescript", - "sizeLines": 324, - "fileCategory": "code" - }, - { - "path": "packages/core/src/vault.ts", - "language": "typescript", - "sizeLines": 299, - "fileCategory": "code" - }, - { - "path": "packages/core/tests/compliance/template-store.test.ts", - "language": "typescript", - "sizeLines": 254, - "fileCategory": "code" - }, - { - "path": "packages/core/tests/config.test.ts", - "language": "typescript", - "sizeLines": 231, - "fileCategory": "code" - }, - { - "path": "packages/core/tests/cron-store.test.ts", - "language": "typescript", - "sizeLines": 177, - "fileCategory": "code" - }, - { - "path": "packages/core/tests/embedding-provider-quota.test.ts", - "language": "typescript", - "sizeLines": 267, - "fileCategory": "code" - }, - { - "path": "packages/core/tests/file-indexer.test.ts", - "language": "typescript", - "sizeLines": 267, - "fileCategory": "code" - }, - { - "path": "packages/core/tests/file-store-s3.test.ts", - "language": "typescript", - "sizeLines": 236, - "fileCategory": "code" - }, - { - "path": "packages/core/tests/install-audit-check-parity.test.ts", - "language": "typescript", - "sizeLines": 44, - "fileCategory": "code" - }, - { - "path": "packages/core/tests/install-audit.test.ts", - "language": "typescript", - "sizeLines": 479, - "fileCategory": "code" - }, - { - "path": "packages/core/tests/litellm-embedder.test.ts", - "language": "typescript", - "sizeLines": 162, - "fileCategory": "code" - }, - { - "path": "packages/core/tests/memory-import.test.ts", - "language": "typescript", - "sizeLines": 340, - "fileCategory": "code" - }, - { - "path": "packages/core/tests/migration.test.ts", - "language": "typescript", - "sizeLines": 125, - "fileCategory": "code" - }, - { - "path": "packages/core/tests/skill-hashes.test.ts", - "language": "typescript", - "sizeLines": 115, - "fileCategory": "code" - }, - { - "path": "packages/core/tests/structured-tasks.test.ts", - "language": "typescript", - "sizeLines": 99, - "fileCategory": "code" - }, - { - "path": "packages/core/tests/team-sync.test.ts", - "language": "typescript", - "sizeLines": 297, - "fileCategory": "code" - }, - { - "path": "packages/core/tests/telemetry.test.ts", - "language": "typescript", - "sizeLines": 112, - "fileCategory": "code" - }, - { - "path": "packages/core/tests/vault-concurrency.test.ts", - "language": "typescript", - "sizeLines": 136, - "fileCategory": "code" - }, - { - "path": "packages/core/tests/vault-edge-cases.test.ts", - "language": "typescript", - "sizeLines": 261, - "fileCategory": "code" - }, - { - "path": "packages/core/tests/vault.test.ts", - "language": "typescript", - "sizeLines": 391, - "fileCategory": "code" - }, - { - "path": "packages/core/tsconfig.json", - "language": "json", - "sizeLines": 21, - "fileCategory": "config" - }, - { - "path": "packages/core/vitest.config.ts", - "language": "typescript", - "sizeLines": 9, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-cli/assets/mcp-health-check-fixed.js", - "language": "javascript", - "sizeLines": 651, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-cli/docs/WINDOWS-QUIRKS.md", - "language": "markdown", - "sizeLines": 115, - "fileCategory": "docs" - }, - { - "path": "packages/hive-mind-cli/NOTICE", - "language": "unknown", - "sizeLines": 36, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-cli/package.json", - "language": "json", - "sizeLines": 66, - "fileCategory": "config" - }, - { - "path": "packages/hive-mind-cli/postinstall.cjs", - "language": "javascript", - "sizeLines": 135, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-cli/README.md", - "language": "markdown", - "sizeLines": 55, - "fileCategory": "docs" - }, - { - "path": "packages/hive-mind-cli/src/commands/cognify.ts", - "language": "typescript", - "sizeLines": 126, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-cli/src/commands/compile-wiki.ts", - "language": "typescript", - "sizeLines": 68, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-cli/src/commands/doctor.ts", - "language": "typescript", - "sizeLines": 279, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-cli/src/commands/harvest-local.test.ts", - "language": "typescript", - "sizeLines": 399, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-cli/src/commands/harvest-local.ts", - "language": "typescript", - "sizeLines": 237, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-cli/src/commands/init.ts", - "language": "typescript", - "sizeLines": 71, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-cli/src/commands/maintenance.ts", - "language": "typescript", - "sizeLines": 125, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-cli/src/commands/mcp-call.ts", - "language": "typescript", - "sizeLines": 236, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-cli/src/commands/mcp-start.ts", - "language": "typescript", - "sizeLines": 80, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-cli/src/commands/recall-context.ts", - "language": "typescript", - "sizeLines": 110, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-cli/src/commands/save-session.ts", - "language": "typescript", - "sizeLines": 99, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-cli/src/commands/status.ts", - "language": "typescript", - "sizeLines": 162, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-cli/src/dispatch.test.ts", - "language": "typescript", - "sizeLines": 442, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-cli/src/dispatch.ts", - "language": "typescript", - "sizeLines": 202, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-cli/src/index.ts", - "language": "typescript", - "sizeLines": 136, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-cli/src/setup.test.ts", - "language": "typescript", - "sizeLines": 72, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-cli/src/setup.ts", - "language": "typescript", - "sizeLines": 153, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-cli/tsconfig.json", - "language": "json", - "sizeLines": 16, - "fileCategory": "config" - }, - { - "path": "packages/hive-mind-core/CONTRIBUTING.md", - "language": "markdown", - "sizeLines": 87, - "fileCategory": "docs" - }, - { - "path": "packages/hive-mind-core/package.json", - "language": "json", - "sizeLines": 29, - "fileCategory": "config" - }, - { - "path": "packages/hive-mind-core/README.md", - "language": "markdown", - "sizeLines": 45, - "fileCategory": "docs" - }, - { - "path": "packages/hive-mind-core/src/harvest/chatgpt-adapter.ts", - "language": "typescript", - "sizeLines": 154, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/harvest/chunk-utils.ts", - "language": "typescript", - "sizeLines": 30, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/harvest/claude-adapter.ts", - "language": "typescript", - "sizeLines": 268, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/harvest/claude-code-adapter.ts", - "language": "typescript", - "sizeLines": 351, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/harvest/dedup.ts", - "language": "typescript", - "sizeLines": 112, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/harvest/extract-kg-entities.ts", - "language": "typescript", - "sizeLines": 265, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/harvest/extract-memory-lanes.ts", - "language": "typescript", - "sizeLines": 335, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/harvest/gemini-adapter.ts", - "language": "typescript", - "sizeLines": 161, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/harvest/index.ts", - "language": "typescript", - "sizeLines": 14, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/harvest/markdown-adapter.ts", - "language": "typescript", - "sizeLines": 142, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/harvest/pdf-adapter.ts", - "language": "typescript", - "sizeLines": 97, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/harvest/perplexity-adapter.ts", - "language": "typescript", - "sizeLines": 163, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/harvest/pipeline.ts", - "language": "typescript", - "sizeLines": 339, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/harvest/plaintext-adapter.ts", - "language": "typescript", - "sizeLines": 61, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/harvest/prompts.ts", - "language": "typescript", - "sizeLines": 72, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/harvest/raw-turns.ts", - "language": "typescript", - "sizeLines": 166, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/harvest/raw-types.ts", - "language": "typescript", - "sizeLines": 45, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/harvest/run-store.ts", - "language": "typescript", - "sizeLines": 191, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/harvest/source-store.ts", - "language": "typescript", - "sizeLines": 126, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/harvest/types.ts", - "language": "typescript", - "sizeLines": 140, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/harvest/universal-adapter.ts", - "language": "typescript", - "sizeLines": 238, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/harvest/url-adapter.ts", - "language": "typescript", - "sizeLines": 177, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/index.ts", - "language": "typescript", - "sizeLines": 132, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/injection-scanner.ts", - "language": "typescript", - "sizeLines": 85, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/logger.ts", - "language": "typescript", - "sizeLines": 30, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/mind/api-embedder.ts", - "language": "typescript", - "sizeLines": 73, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/mind/awareness.ts", - "language": "typescript", - "sizeLines": 170, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/mind/chunker.ts", - "language": "typescript", - "sizeLines": 194, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/mind/concept-tracker.ts", - "language": "typescript", - "sizeLines": 180, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/mind/content-hash.ts", - "language": "typescript", - "sizeLines": 40, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/mind/db.ts", - "language": "typescript", - "sizeLines": 405, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/mind/embedding-provider.ts", - "language": "typescript", - "sizeLines": 509, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/mind/embeddings.ts", - "language": "typescript", - "sizeLines": 5, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/mind/entity-normalizer.ts", - "language": "typescript", - "sizeLines": 112, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/mind/evolution-runs.ts", - "language": "typescript", - "sizeLines": 299, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/mind/execution-traces.ts", - "language": "typescript", - "sizeLines": 446, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/mind/frames.ts", - "language": "typescript", - "sizeLines": 467, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/mind/identity.ts", - "language": "typescript", - "sizeLines": 80, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/mind/improvement-signals.ts", - "language": "typescript", - "sizeLines": 174, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/mind/inprocess-embedder.ts", - "language": "typescript", - "sizeLines": 67, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/mind/inprocess-reranker.ts", - "language": "typescript", - "sizeLines": 129, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/mind/knowledge.ts", - "language": "typescript", - "sizeLines": 377, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/mind/litellm-embedder.ts", - "language": "typescript", - "sizeLines": 93, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/mind/ollama-embedder.ts", - "language": "typescript", - "sizeLines": 58, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/mind/ontology.ts", - "language": "typescript", - "sizeLines": 58, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/mind/parse-date-window.ts", - "language": "typescript", - "sizeLines": 113, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/mind/raw-detail-lane.ts", - "language": "typescript", - "sizeLines": 205, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/mind/recall-context.ts", - "language": "typescript", - "sizeLines": 100, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/mind/reconcile.ts", - "language": "typescript", - "sizeLines": 168, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/mind/resolve-relative-date.ts", - "language": "typescript", - "sizeLines": 131, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/mind/schema.ts", - "language": "typescript", - "sizeLines": 323, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/mind/scoring.ts", - "language": "typescript", - "sizeLines": 108, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/mind/search.ts", - "language": "typescript", - "sizeLines": 637, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/mind/sessions.ts", - "language": "typescript", - "sizeLines": 107, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/multi-mind-cache.ts", - "language": "typescript", - "sizeLines": 133, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/multi-mind.ts", - "language": "typescript", - "sizeLines": 207, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/src/workspace-manager.ts", - "language": "typescript", - "sizeLines": 398, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/entity-normalizer.test.ts", - "language": "typescript", - "sizeLines": 33, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/harvest/caption-parity.test.ts", - "language": "typescript", - "sizeLines": 133, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/harvest/claude-adapter.test.ts", - "language": "typescript", - "sizeLines": 159, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/harvest/extract-kg-entities.test.ts", - "language": "typescript", - "sizeLines": 167, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/harvest/extract-memory-lanes.test.ts", - "language": "typescript", - "sizeLines": 141, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/harvest/perplexity-adapter.test.ts", - "language": "typescript", - "sizeLines": 135, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/harvest/pipeline-injection.test.ts", - "language": "typescript", - "sizeLines": 115, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/harvest/pipeline-progress.test.ts", - "language": "typescript", - "sizeLines": 51, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/harvest/raw-turns.test.ts", - "language": "typescript", - "sizeLines": 147, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/harvest/run-store.test.ts", - "language": "typescript", - "sizeLines": 196, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/harvest/set-hash.test.ts", - "language": "typescript", - "sizeLines": 50, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/integration/full-stack.test.ts", - "language": "typescript", - "sizeLines": 388, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/logger.test.ts", - "language": "typescript", - "sizeLines": 48, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/mind/awareness-hive-mind.test.ts", - "language": "typescript", - "sizeLines": 168, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/mind/awareness.test.ts", - "language": "typescript", - "sizeLines": 195, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/mind/chunker.test.ts", - "language": "typescript", - "sizeLines": 113, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/mind/concept-tracker-hive-mind.test.ts", - "language": "typescript", - "sizeLines": 120, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/mind/concept-tracker.test.ts", - "language": "typescript", - "sizeLines": 209, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/mind/content-hash-dedup.test.ts", - "language": "typescript", - "sizeLines": 93, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/mind/db.test.ts", - "language": "typescript", - "sizeLines": 244, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/mind/embedding-provider.test.ts", - "language": "typescript", - "sizeLines": 145, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/mind/entity-normalizer.test.ts", - "language": "typescript", - "sizeLines": 88, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/mind/evolution-runs.test.ts", - "language": "typescript", - "sizeLines": 266, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/mind/execution-traces.test.ts", - "language": "typescript", - "sizeLines": 356, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/mind/frames-hive-mind.test.ts", - "language": "typescript", - "sizeLines": 315, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/mind/frames.test.ts", - "language": "typescript", - "sizeLines": 375, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/mind/helpers/mock-embedder.ts", - "language": "typescript", - "sizeLines": 50, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/mind/identity-hive-mind.test.ts", - "language": "typescript", - "sizeLines": 120, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/mind/identity.test.ts", - "language": "typescript", - "sizeLines": 126, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/mind/improvement-signals.test.ts", - "language": "typescript", - "sizeLines": 201, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/mind/inprocess-embedder.test.ts", - "language": "typescript", - "sizeLines": 46, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/mind/knowledge-hive-mind.test.ts", - "language": "typescript", - "sizeLines": 189, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/mind/knowledge.test.ts", - "language": "typescript", - "sizeLines": 414, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/mind/ontology.test.ts", - "language": "typescript", - "sizeLines": 69, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/mind/parse-date-window.test.ts", - "language": "typescript", - "sizeLines": 63, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/mind/raw-detail-lane.test.ts", - "language": "typescript", - "sizeLines": 144, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/mind/reconcile-hive-mind.test.ts", - "language": "typescript", - "sizeLines": 243, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/mind/reconcile.test.ts", - "language": "typescript", - "sizeLines": 216, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/mind/resolve-relative-date.test.ts", - "language": "typescript", - "sizeLines": 76, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/mind/schema.test.ts", - "language": "typescript", - "sizeLines": 230, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/mind/scoring.test.ts", - "language": "typescript", - "sizeLines": 136, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/mind/search-chunks.test.ts", - "language": "typescript", - "sizeLines": 276, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/mind/search-date-window.test.ts", - "language": "typescript", - "sizeLines": 130, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/mind/search-hive-mind.test.ts", - "language": "typescript", - "sizeLines": 160, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/mind/search-reranker.test.ts", - "language": "typescript", - "sizeLines": 107, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/mind/search.test.ts", - "language": "typescript", - "sizeLines": 357, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/mind/sessions-hive-mind.test.ts", - "language": "typescript", - "sizeLines": 96, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/mind/sessions.test.ts", - "language": "typescript", - "sizeLines": 65, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/mind/temporal-knowledge.test.ts", - "language": "typescript", - "sizeLines": 61, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/multi-mind.test.ts", - "language": "typescript", - "sizeLines": 296, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/ontology.test.ts", - "language": "typescript", - "sizeLines": 67, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tests/workspace-manager.test.ts", - "language": "typescript", - "sizeLines": 374, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-core/tsconfig.json", - "language": "json", - "sizeLines": 21, - "fileCategory": "config" - }, - { - "path": "packages/hive-mind-hooks-claude-code/package.json", - "language": "json", - "sizeLines": 66, - "fileCategory": "config" - }, - { - "path": "packages/hive-mind-hooks-claude-code/README.md", - "language": "markdown", - "sizeLines": 84, - "fileCategory": "docs" - }, - { - "path": "packages/hive-mind-hooks-claude-code/src/bin/claude-code-hooks-cli.ts", - "language": "typescript", - "sizeLines": 159, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-claude-code/src/hooks/_shared.ts", - "language": "typescript", - "sizeLines": 148, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-claude-code/src/hooks/pre-compact.ts", - "language": "typescript", - "sizeLines": 52, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-claude-code/src/hooks/session-start.ts", - "language": "typescript", - "sizeLines": 102, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-claude-code/src/hooks/stop.ts", - "language": "typescript", - "sizeLines": 126, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-claude-code/src/hooks/user-prompt-submit.ts", - "language": "typescript", - "sizeLines": 72, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-claude-code/src/index.ts", - "language": "typescript", - "sizeLines": 51, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-claude-code/src/install.ts", - "language": "typescript", - "sizeLines": 154, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-claude-code/src/paths.ts", - "language": "typescript", - "sizeLines": 90, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-claude-code/src/settings-merger.ts", - "language": "typescript", - "sizeLines": 130, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-claude-code/src/uninstall.ts", - "language": "typescript", - "sizeLines": 98, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-claude-code/src/verify.ts", - "language": "typescript", - "sizeLines": 175, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-claude-code/tests/hooks/_test-helpers.ts", - "language": "typescript", - "sizeLines": 57, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-claude-code/tests/hooks/pre-compact.test.ts", - "language": "typescript", - "sizeLines": 50, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-claude-code/tests/hooks/session-start.test.ts", - "language": "typescript", - "sizeLines": 84, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-claude-code/tests/hooks/shared.test.ts", - "language": "typescript", - "sizeLines": 65, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-claude-code/tests/hooks/stop.test.ts", - "language": "typescript", - "sizeLines": 259, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-claude-code/tests/hooks/user-prompt-submit.test.ts", - "language": "typescript", - "sizeLines": 60, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-claude-code/tests/install.test.ts", - "language": "typescript", - "sizeLines": 150, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-claude-code/tests/paths.test.ts", - "language": "typescript", - "sizeLines": 73, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-claude-code/tests/settings-merger.test.ts", - "language": "typescript", - "sizeLines": 113, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-claude-code/tests/uninstall.test.ts", - "language": "typescript", - "sizeLines": 100, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-claude-code/tests/verify.test.ts", - "language": "typescript", - "sizeLines": 145, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-claude-code/tsconfig.json", - "language": "json", - "sizeLines": 14, - "fileCategory": "config" - }, - { - "path": "packages/hive-mind-hooks-claude-code/tsconfig.test.json", - "language": "json", - "sizeLines": 12, - "fileCategory": "config" - }, - { - "path": "packages/hive-mind-hooks-claude-code/upstream-pr/0001-fix-resolve-windows-cmd-shims.patch", - "language": "patch", - "sizeLines": 55, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-claude-code/upstream-pr/README.md", - "language": "markdown", - "sizeLines": 76, - "fileCategory": "docs" - }, - { - "path": "packages/hive-mind-hooks-claude-desktop/package.json", - "language": "json", - "sizeLines": 45, - "fileCategory": "config" - }, - { - "path": "packages/hive-mind-hooks-claude-desktop/README.md", - "language": "markdown", - "sizeLines": 9, - "fileCategory": "docs" - }, - { - "path": "packages/hive-mind-hooks-claude-desktop/src/index.ts", - "language": "typescript", - "sizeLines": 11, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-claude-desktop/tsconfig.json", - "language": "json", - "sizeLines": 12, - "fileCategory": "config" - }, - { - "path": "packages/hive-mind-hooks-codex-desktop/package.json", - "language": "json", - "sizeLines": 62, - "fileCategory": "config" - }, - { - "path": "packages/hive-mind-hooks-codex-desktop/README.md", - "language": "markdown", - "sizeLines": 73, - "fileCategory": "docs" - }, - { - "path": "packages/hive-mind-hooks-codex-desktop/src/bin/codex-desktop-hooks.ts", - "language": "typescript", - "sizeLines": 185, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-codex-desktop/src/index.ts", - "language": "typescript", - "sizeLines": 17, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-codex-desktop/tests/parity.test.ts", - "language": "typescript", - "sizeLines": 167, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-codex-desktop/tsconfig.json", - "language": "json", - "sizeLines": 14, - "fileCategory": "config" - }, - { - "path": "packages/hive-mind-hooks-codex-desktop/tsconfig.test.json", - "language": "json", - "sizeLines": 12, - "fileCategory": "config" - }, - { - "path": "packages/hive-mind-hooks-codex/package.json", - "language": "json", - "sizeLines": 66, - "fileCategory": "config" - }, - { - "path": "packages/hive-mind-hooks-codex/README.md", - "language": "markdown", - "sizeLines": 59, - "fileCategory": "docs" - }, - { - "path": "packages/hive-mind-hooks-codex/src/adapter.ts", - "language": "typescript", - "sizeLines": 132, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-codex/src/bin/codex-hooks.ts", - "language": "typescript", - "sizeLines": 164, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-codex/src/hooks/pre-compact.ts", - "language": "typescript", - "sizeLines": 34, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-codex/src/hooks/session-start.ts", - "language": "typescript", - "sizeLines": 37, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-codex/src/hooks/stop.ts", - "language": "typescript", - "sizeLines": 35, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-codex/src/hooks/user-prompt-submit.ts", - "language": "typescript", - "sizeLines": 33, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-codex/src/index.ts", - "language": "typescript", - "sizeLines": 49, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-codex/src/install.ts", - "language": "typescript", - "sizeLines": 161, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-codex/src/paths.ts", - "language": "typescript", - "sizeLines": 73, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-codex/src/uninstall.ts", - "language": "typescript", - "sizeLines": 76, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-codex/src/verify.ts", - "language": "typescript", - "sizeLines": 181, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-codex/tests/hooks/_test-helpers.ts", - "language": "typescript", - "sizeLines": 62, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-codex/tests/hooks/pre-compact.test.ts", - "language": "typescript", - "sizeLines": 44, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-codex/tests/hooks/session-start.test.ts", - "language": "typescript", - "sizeLines": 77, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-codex/tests/hooks/stop.test.ts", - "language": "typescript", - "sizeLines": 103, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-codex/tests/hooks/user-prompt-submit.test.ts", - "language": "typescript", - "sizeLines": 69, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-codex/tests/install.test.ts", - "language": "typescript", - "sizeLines": 184, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-codex/tests/paths.test.ts", - "language": "typescript", - "sizeLines": 74, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-codex/tests/register.test.ts", - "language": "typescript", - "sizeLines": 150, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-codex/tests/uninstall.test.ts", - "language": "typescript", - "sizeLines": 118, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-codex/tests/verify.test.ts", - "language": "typescript", - "sizeLines": 206, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-codex/tsconfig.json", - "language": "json", - "sizeLines": 15, - "fileCategory": "config" - }, - { - "path": "packages/hive-mind-hooks-codex/tsconfig.test.json", - "language": "json", - "sizeLines": 12, - "fileCategory": "config" - }, - { - "path": "packages/hive-mind-hooks-core/package.json", - "language": "json", - "sizeLines": 58, - "fileCategory": "config" - }, - { - "path": "packages/hive-mind-hooks-core/src/event-adapter.ts", - "language": "typescript", - "sizeLines": 57, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-core/src/handlers-core.ts", - "language": "typescript", - "sizeLines": 523, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-core/src/hook-shared.ts", - "language": "typescript", - "sizeLines": 171, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-core/src/index.ts", - "language": "typescript", - "sizeLines": 29, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-core/src/install-core.ts", - "language": "typescript", - "sizeLines": 190, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-core/src/json-register.ts", - "language": "typescript", - "sizeLines": 142, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-core/src/paths-core.ts", - "language": "typescript", - "sizeLines": 74, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-core/tests/_helpers.ts", - "language": "typescript", - "sizeLines": 154, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-core/tests/handlers-core.test.ts", - "language": "typescript", - "sizeLines": 370, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-core/tests/hook-shared.test.ts", - "language": "typescript", - "sizeLines": 215, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-core/tests/install-core.test.ts", - "language": "typescript", - "sizeLines": 233, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-core/tests/json-register.test.ts", - "language": "typescript", - "sizeLines": 207, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-core/tests/paths-core.test.ts", - "language": "typescript", - "sizeLines": 102, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-core/tsconfig.json", - "language": "json", - "sizeLines": 14, - "fileCategory": "config" - }, - { - "path": "packages/hive-mind-hooks-core/tsconfig.test.json", - "language": "json", - "sizeLines": 12, - "fileCategory": "config" - }, - { - "path": "packages/hive-mind-hooks-cursor/package.json", - "language": "json", - "sizeLines": 65, - "fileCategory": "config" - }, - { - "path": "packages/hive-mind-hooks-cursor/README.md", - "language": "markdown", - "sizeLines": 66, - "fileCategory": "docs" - }, - { - "path": "packages/hive-mind-hooks-cursor/src/adapter.ts", - "language": "typescript", - "sizeLines": 166, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-cursor/src/bin/cursor-hooks.ts", - "language": "typescript", - "sizeLines": 169, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-cursor/src/hooks/pre-compact.ts", - "language": "typescript", - "sizeLines": 38, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-cursor/src/hooks/session-start.ts", - "language": "typescript", - "sizeLines": 39, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-cursor/src/hooks/stop.ts", - "language": "typescript", - "sizeLines": 40, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-cursor/src/hooks/user-prompt-submit.ts", - "language": "typescript", - "sizeLines": 39, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-cursor/src/index.ts", - "language": "typescript", - "sizeLines": 50, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-cursor/src/install.ts", - "language": "typescript", - "sizeLines": 164, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-cursor/src/paths.ts", - "language": "typescript", - "sizeLines": 73, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-cursor/src/uninstall.ts", - "language": "typescript", - "sizeLines": 76, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-cursor/src/verify.ts", - "language": "typescript", - "sizeLines": 162, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-cursor/tests/hooks/_test-helpers.ts", - "language": "typescript", - "sizeLines": 62, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-cursor/tests/hooks/pre-compact.test.ts", - "language": "typescript", - "sizeLines": 44, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-cursor/tests/hooks/session-start.test.ts", - "language": "typescript", - "sizeLines": 77, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-cursor/tests/hooks/stop.test.ts", - "language": "typescript", - "sizeLines": 190, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-cursor/tests/hooks/user-prompt-submit.test.ts", - "language": "typescript", - "sizeLines": 83, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-cursor/tests/install.test.ts", - "language": "typescript", - "sizeLines": 175, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-cursor/tests/paths.test.ts", - "language": "typescript", - "sizeLines": 74, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-cursor/tests/register.test.ts", - "language": "typescript", - "sizeLines": 168, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-cursor/tests/uninstall.test.ts", - "language": "typescript", - "sizeLines": 118, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-cursor/tests/verify.test.ts", - "language": "typescript", - "sizeLines": 167, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-cursor/tsconfig.json", - "language": "json", - "sizeLines": 15, - "fileCategory": "config" - }, - { - "path": "packages/hive-mind-hooks-cursor/tsconfig.test.json", - "language": "json", - "sizeLines": 12, - "fileCategory": "config" - }, - { - "path": "packages/hive-mind-hooks-hermes/package.json", - "language": "json", - "sizeLines": 66, - "fileCategory": "config" - }, - { - "path": "packages/hive-mind-hooks-hermes/README.md", - "language": "markdown", - "sizeLines": 84, - "fileCategory": "docs" - }, - { - "path": "packages/hive-mind-hooks-hermes/src/adapter.ts", - "language": "typescript", - "sizeLines": 106, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-hermes/src/bin/hermes-hooks.ts", - "language": "typescript", - "sizeLines": 183, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-hermes/src/compact-on-stop.ts", - "language": "typescript", - "sizeLines": 126, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-hermes/src/hooks/session-start.ts", - "language": "typescript", - "sizeLines": 90, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-hermes/src/hooks/stop.ts", - "language": "typescript", - "sizeLines": 68, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-hermes/src/hooks/user-prompt-submit.ts", - "language": "typescript", - "sizeLines": 44, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-hermes/src/index.ts", - "language": "typescript", - "sizeLines": 85, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-hermes/src/install.ts", - "language": "typescript", - "sizeLines": 200, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-hermes/src/paths.ts", - "language": "typescript", - "sizeLines": 81, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-hermes/src/uninstall.ts", - "language": "typescript", - "sizeLines": 79, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-hermes/src/verify.ts", - "language": "typescript", - "sizeLines": 162, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-hermes/src/yaml-merger.ts", - "language": "typescript", - "sizeLines": 186, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-hermes/tests/adapter.test.ts", - "language": "typescript", - "sizeLines": 82, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-hermes/tests/compact-on-stop.test.ts", - "language": "typescript", - "sizeLines": 169, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-hermes/tests/hooks/_test-helpers.ts", - "language": "typescript", - "sizeLines": 62, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-hermes/tests/hooks/session-start.test.ts", - "language": "typescript", - "sizeLines": 138, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-hermes/tests/hooks/stop.test.ts", - "language": "typescript", - "sizeLines": 246, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-hermes/tests/hooks/user-prompt-submit.test.ts", - "language": "typescript", - "sizeLines": 98, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-hermes/tests/install.test.ts", - "language": "typescript", - "sizeLines": 217, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-hermes/tests/paths.test.ts", - "language": "typescript", - "sizeLines": 76, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-hermes/tests/register.test.ts", - "language": "typescript", - "sizeLines": 225, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-hermes/tests/uninstall.test.ts", - "language": "typescript", - "sizeLines": 130, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-hermes/tests/verify.test.ts", - "language": "typescript", - "sizeLines": 187, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-hermes/tsconfig.json", - "language": "json", - "sizeLines": 15, - "fileCategory": "config" - }, - { - "path": "packages/hive-mind-hooks-hermes/tsconfig.test.json", - "language": "json", - "sizeLines": 12, - "fileCategory": "config" - }, - { - "path": "packages/hive-mind-hooks-openclaw/package.json", - "language": "json", - "sizeLines": 65, - "fileCategory": "config" - }, - { - "path": "packages/hive-mind-hooks-openclaw/README.md", - "language": "markdown", - "sizeLines": 104, - "fileCategory": "docs" - }, - { - "path": "packages/hive-mind-hooks-openclaw/src/adapter.ts", - "language": "typescript", - "sizeLines": 107, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-openclaw/src/bin/openclaw-hooks.ts", - "language": "typescript", - "sizeLines": 173, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-openclaw/src/handler.ts", - "language": "typescript", - "sizeLines": 227, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-openclaw/src/hook-md.ts", - "language": "typescript", - "sizeLines": 60, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-openclaw/src/index.ts", - "language": "typescript", - "sizeLines": 86, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-openclaw/src/install.ts", - "language": "typescript", - "sizeLines": 168, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-openclaw/src/json5-merger.ts", - "language": "typescript", - "sizeLines": 172, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-openclaw/src/paths.ts", - "language": "typescript", - "sizeLines": 120, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-openclaw/src/uninstall.ts", - "language": "typescript", - "sizeLines": 98, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-openclaw/src/verify.ts", - "language": "typescript", - "sizeLines": 179, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-openclaw/tests/handler.test.ts", - "language": "typescript", - "sizeLines": 271, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-openclaw/tests/install.test.ts", - "language": "typescript", - "sizeLines": 212, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-openclaw/tests/json5-merger.test.ts", - "language": "typescript", - "sizeLines": 174, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-openclaw/tests/paths.test.ts", - "language": "typescript", - "sizeLines": 87, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-openclaw/tests/uninstall.test.ts", - "language": "typescript", - "sizeLines": 145, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-openclaw/tests/verify.test.ts", - "language": "typescript", - "sizeLines": 170, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-hooks-openclaw/tsconfig.json", - "language": "json", - "sizeLines": 15, - "fileCategory": "config" - }, - { - "path": "packages/hive-mind-hooks-openclaw/tsconfig.test.json", - "language": "json", - "sizeLines": 12, - "fileCategory": "config" - }, - { - "path": "packages/hive-mind-mcp-server/NOTICE", - "language": "unknown", - "sizeLines": 36, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-mcp-server/package.json", - "language": "json", - "sizeLines": 55, - "fileCategory": "config" - }, - { - "path": "packages/hive-mind-mcp-server/README.md", - "language": "markdown", - "sizeLines": 53, - "fileCategory": "docs" - }, - { - "path": "packages/hive-mind-mcp-server/src/core/setup.ts", - "language": "typescript", - "sizeLines": 233, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-mcp-server/src/index.ts", - "language": "typescript", - "sizeLines": 111, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-mcp-server/src/integration.test.ts", - "language": "typescript", - "sizeLines": 133, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-mcp-server/src/resources/memory.ts", - "language": "typescript", - "sizeLines": 188, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-mcp-server/src/tools/awareness.ts", - "language": "typescript", - "sizeLines": 139, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-mcp-server/src/tools/cleanup.ts", - "language": "typescript", - "sizeLines": 422, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-mcp-server/src/tools/harvest.ts", - "language": "typescript", - "sizeLines": 228, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-mcp-server/src/tools/identity.ts", - "language": "typescript", - "sizeLines": 122, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-mcp-server/src/tools/ingest.ts", - "language": "typescript", - "sizeLines": 207, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-mcp-server/src/tools/knowledge.ts", - "language": "typescript", - "sizeLines": 185, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-mcp-server/src/tools/memory.ts", - "language": "typescript", - "sizeLines": 189, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-mcp-server/src/tools/wiki.ts", - "language": "typescript", - "sizeLines": 232, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-mcp-server/src/tools/workspace.ts", - "language": "typescript", - "sizeLines": 102, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-mcp-server/tsconfig.json", - "language": "json", - "sizeLines": 15, - "fileCategory": "config" - }, - { - "path": "packages/hive-mind-shim-core/package.json", - "language": "json", - "sizeLines": 46, - "fileCategory": "config" - }, - { - "path": "packages/hive-mind-shim-core/README.md", - "language": "markdown", - "sizeLines": 61, - "fileCategory": "docs" - }, - { - "path": "packages/hive-mind-shim-core/src/cli-bridge.ts", - "language": "typescript", - "sizeLines": 361, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-shim-core/src/frame-encoder.ts", - "language": "typescript", - "sizeLines": 137, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-shim-core/src/hook-event-types.ts", - "language": "typescript", - "sizeLines": 61, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-shim-core/src/importance-classifier.ts", - "language": "typescript", - "sizeLines": 99, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-shim-core/src/index.ts", - "language": "typescript", - "sizeLines": 79, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-shim-core/src/logger.ts", - "language": "typescript", - "sizeLines": 76, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-shim-core/src/prompt-summarizer.ts", - "language": "typescript", - "sizeLines": 56, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-shim-core/src/retry-bridge.ts", - "language": "typescript", - "sizeLines": 88, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-shim-core/src/signal-emitter.ts", - "language": "typescript", - "sizeLines": 208, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-shim-core/src/workspace-resolver.ts", - "language": "typescript", - "sizeLines": 85, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-shim-core/tests/cli-bridge.test.ts", - "language": "typescript", - "sizeLines": 270, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-shim-core/tests/frame-encoder.test.ts", - "language": "typescript", - "sizeLines": 143, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-shim-core/tests/hook-event-types.test.ts", - "language": "typescript", - "sizeLines": 53, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-shim-core/tests/importance-classifier.test.ts", - "language": "typescript", - "sizeLines": 90, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-shim-core/tests/integration/wire-roundtrip.integration.test.ts", - "language": "typescript", - "sizeLines": 162, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-shim-core/tests/logger.test.ts", - "language": "typescript", - "sizeLines": 84, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-shim-core/tests/prompt-summarizer.test.ts", - "language": "typescript", - "sizeLines": 55, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-shim-core/tests/retry-bridge.test.ts", - "language": "typescript", - "sizeLines": 91, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-shim-core/tests/signal-emitter.test.ts", - "language": "typescript", - "sizeLines": 272, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-shim-core/tests/workspace-resolver.test.ts", - "language": "typescript", - "sizeLines": 91, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-shim-core/tsconfig.json", - "language": "json", - "sizeLines": 11, - "fileCategory": "config" - }, - { - "path": "packages/hive-mind-shim-core/tsconfig.test.json", - "language": "json", - "sizeLines": 12, - "fileCategory": "config" - }, - { - "path": "packages/hive-mind-wiki-compiler/NOTICE", - "language": "unknown", - "sizeLines": 36, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-wiki-compiler/package.json", - "language": "json", - "sizeLines": 58, - "fileCategory": "config" - }, - { - "path": "packages/hive-mind-wiki-compiler/README.md", - "language": "markdown", - "sizeLines": 48, - "fileCategory": "docs" - }, - { - "path": "packages/hive-mind-wiki-compiler/src/compiler.test.ts", - "language": "typescript", - "sizeLines": 212, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-wiki-compiler/src/compiler.ts", - "language": "typescript", - "sizeLines": 555, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-wiki-compiler/src/index.ts", - "language": "typescript", - "sizeLines": 38, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-wiki-compiler/src/prompts.ts", - "language": "typescript", - "sizeLines": 94, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-wiki-compiler/src/state.test.ts", - "language": "typescript", - "sizeLines": 132, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-wiki-compiler/src/state.ts", - "language": "typescript", - "sizeLines": 160, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-wiki-compiler/src/synthesizer.test.ts", - "language": "typescript", - "sizeLines": 102, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-wiki-compiler/src/synthesizer.ts", - "language": "typescript", - "sizeLines": 157, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-wiki-compiler/src/types.ts", - "language": "typescript", - "sizeLines": 115, - "fileCategory": "code" - }, - { - "path": "packages/hive-mind-wiki-compiler/tsconfig.json", - "language": "json", - "sizeLines": 12, - "fileCategory": "config" - }, - { - "path": "packages/launcher/package.json", - "language": "json", - "sizeLines": 61, - "fileCategory": "config" - }, - { - "path": "packages/launcher/src/cli.ts", - "language": "typescript", - "sizeLines": 157, - "fileCategory": "code" - }, - { - "path": "packages/launcher/tests/cli.test.ts", - "language": "typescript", - "sizeLines": 120, - "fileCategory": "code" - }, - { - "path": "packages/launcher/tsup.config.ts", - "language": "typescript", - "sizeLines": 20, - "fileCategory": "code" - }, - { - "path": "packages/marketplace/ARCHITECTURE.md", - "language": "markdown", - "sizeLines": 660, - "fileCategory": "docs" - }, - { - "path": "packages/marketplace/package.json", - "language": "json", - "sizeLines": 56, - "fileCategory": "config" - }, - { - "path": "packages/marketplace/skills/browser-automation.md", - "language": "markdown", - "sizeLines": 30, - "fileCategory": "docs" - }, - { - "path": "packages/marketplace/skills/chart-generator.md", - "language": "markdown", - "sizeLines": 31, - "fileCategory": "docs" - }, - { - "path": "packages/marketplace/skills/pdf-generator.md", - "language": "markdown", - "sizeLines": 71, - "fileCategory": "docs" - }, - { - "path": "packages/marketplace/skills/pptx-generator.md", - "language": "markdown", - "sizeLines": 54, - "fileCategory": "docs" - }, - { - "path": "packages/marketplace/skills/xlsx-generator.md", - "language": "markdown", - "sizeLines": 65, - "fileCategory": "docs" - }, - { - "path": "packages/marketplace/src/categories.ts", - "language": "typescript", - "sizeLines": 100, - "fileCategory": "code" - }, - { - "path": "packages/marketplace/src/cisco-scanner.ts", - "language": "typescript", - "sizeLines": 367, - "fileCategory": "code" - }, - { - "path": "packages/marketplace/src/cli.ts", - "language": "typescript", - "sizeLines": 398, - "fileCategory": "code" - }, - { - "path": "packages/marketplace/src/db.ts", - "language": "typescript", - "sizeLines": 541, - "fileCategory": "code" - }, - { - "path": "packages/marketplace/src/enterprise-packs.ts", - "language": "typescript", - "sizeLines": 52, - "fileCategory": "code" - }, - { - "path": "packages/marketplace/src/index.ts", - "language": "typescript", - "sizeLines": 72, - "fileCategory": "code" - }, - { - "path": "packages/marketplace/src/installer.ts", - "language": "typescript", - "sizeLines": 775, - "fileCategory": "code" - }, - { - "path": "packages/marketplace/src/mcp-registry.ts", - "language": "typescript", - "sizeLines": 795, - "fileCategory": "code" - }, - { - "path": "packages/marketplace/src/security.ts", - "language": "typescript", - "sizeLines": 1226, - "fileCategory": "code" - }, - { - "path": "packages/marketplace/src/sources-seed.ts", - "language": "typescript", - "sizeLines": 223, - "fileCategory": "code" - }, - { - "path": "packages/marketplace/src/sync.ts", - "language": "typescript", - "sizeLines": 1373, - "fileCategory": "code" - }, - { - "path": "packages/marketplace/src/types.ts", - "language": "typescript", - "sizeLines": 263, - "fileCategory": "code" - }, - { - "path": "packages/marketplace/tests/categories.test.ts", - "language": "typescript", - "sizeLines": 390, - "fileCategory": "code" - }, - { - "path": "packages/marketplace/tests/cisco-scanner.test.ts", - "language": "typescript", - "sizeLines": 553, - "fileCategory": "code" - }, - { - "path": "packages/marketplace/tests/enterprise-packs.test.ts", - "language": "typescript", - "sizeLines": 107, - "fileCategory": "code" - }, - { - "path": "packages/marketplace/tests/mcp-registry.test.ts", - "language": "typescript", - "sizeLines": 456, - "fileCategory": "code" - }, - { - "path": "packages/marketplace/tests/sync-adapters.test.ts", - "language": "typescript", - "sizeLines": 1683, - "fileCategory": "code" - }, - { - "path": "packages/marketplace/tests/sync-verification.test.ts", - "language": "typescript", - "sizeLines": 676, - "fileCategory": "code" - }, - { - "path": "packages/marketplace/tsconfig.json", - "language": "json", - "sizeLines": 21, - "fileCategory": "config" - }, - { - "path": "packages/memory-mcp/package.json", - "language": "json", - "sizeLines": 53, - "fileCategory": "config" - }, - { - "path": "packages/memory-mcp/README.md", - "language": "markdown", - "sizeLines": 159, - "fileCategory": "docs" - }, - { - "path": "packages/memory-mcp/src/core/setup.ts", - "language": "typescript", - "sizeLines": 233, - "fileCategory": "code" - }, - { - "path": "packages/memory-mcp/src/index.ts", - "language": "typescript", - "sizeLines": 110, - "fileCategory": "code" - }, - { - "path": "packages/memory-mcp/src/resources/memory.ts", - "language": "typescript", - "sizeLines": 189, - "fileCategory": "code" - }, - { - "path": "packages/memory-mcp/src/tools/awareness.ts", - "language": "typescript", - "sizeLines": 139, - "fileCategory": "code" - }, - { - "path": "packages/memory-mcp/src/tools/cleanup.ts", - "language": "typescript", - "sizeLines": 422, - "fileCategory": "code" - }, - { - "path": "packages/memory-mcp/src/tools/harvest.ts", - "language": "typescript", - "sizeLines": 226, - "fileCategory": "code" - }, - { - "path": "packages/memory-mcp/src/tools/identity.ts", - "language": "typescript", - "sizeLines": 122, - "fileCategory": "code" - }, - { - "path": "packages/memory-mcp/src/tools/ingest.ts", - "language": "typescript", - "sizeLines": 207, - "fileCategory": "code" - }, - { - "path": "packages/memory-mcp/src/tools/knowledge.ts", - "language": "typescript", - "sizeLines": 185, - "fileCategory": "code" - }, - { - "path": "packages/memory-mcp/src/tools/memory.ts", - "language": "typescript", - "sizeLines": 190, - "fileCategory": "code" - }, - { - "path": "packages/memory-mcp/src/tools/wiki.ts", - "language": "typescript", - "sizeLines": 232, - "fileCategory": "code" - }, - { - "path": "packages/memory-mcp/src/tools/workspace.ts", - "language": "typescript", - "sizeLines": 96, - "fileCategory": "code" - }, - { - "path": "packages/memory-mcp/tsconfig.json", - "language": "json", - "sizeLines": 21, - "fileCategory": "config" - }, - { - "path": "packages/optimizer/package.json", - "language": "json", - "sizeLines": 18, - "fileCategory": "config" - }, - { - "path": "packages/optimizer/README.md", - "language": "markdown", - "sizeLines": 41, - "fileCategory": "docs" - }, - { - "path": "packages/optimizer/src/index.ts", - "language": "typescript", - "sizeLines": 13, - "fileCategory": "code" - }, - { - "path": "packages/optimizer/src/optimizer.ts", - "language": "typescript", - "sizeLines": 50, - "fileCategory": "code" - }, - { - "path": "packages/optimizer/src/signatures.ts", - "language": "typescript", - "sizeLines": 69, - "fileCategory": "code" - }, - { - "path": "packages/optimizer/tests/optimizer.test.ts", - "language": "typescript", - "sizeLines": 223, - "fileCategory": "code" - }, - { - "path": "packages/optimizer/tsconfig.json", - "language": "json", - "sizeLines": 21, - "fileCategory": "config" - }, - { - "path": "packages/optimizer/vitest.config.ts", - "language": "typescript", - "sizeLines": 9, - "fileCategory": "code" - }, - { - "path": "packages/sdk/package.json", - "language": "json", - "sizeLines": 20, - "fileCategory": "config" - }, - { - "path": "packages/sdk/src/capability-packs/decision-framework.json", - "language": "json", - "sizeLines": 6, - "fileCategory": "config" - }, - { - "path": "packages/sdk/src/capability-packs/index.ts", - "language": "typescript", - "sizeLines": 51, - "fileCategory": "code" - }, - { - "path": "packages/sdk/src/capability-packs/planning-master.json", - "language": "json", - "sizeLines": 6, - "fileCategory": "config" - }, - { - "path": "packages/sdk/src/capability-packs/research-workflow.json", - "language": "json", - "sizeLines": 6, - "fileCategory": "config" - }, - { - "path": "packages/sdk/src/capability-packs/team-collaboration.json", - "language": "json", - "sizeLines": 6, - "fileCategory": "config" - }, - { - "path": "packages/sdk/src/capability-packs/writing-suite.json", - "language": "json", - "sizeLines": 6, - "fileCategory": "config" - }, - { - "path": "packages/sdk/src/index.ts", - "language": "typescript", - "sizeLines": 16, - "fileCategory": "code" - }, - { - "path": "packages/sdk/src/init-skill.ts", - "language": "typescript", - "sizeLines": 38, - "fileCategory": "code" - }, - { - "path": "packages/sdk/src/plugin-manager.ts", - "language": "typescript", - "sizeLines": 127, - "fileCategory": "code" - }, - { - "path": "packages/sdk/src/plugin-manifest.ts", - "language": "typescript", - "sizeLines": 106, - "fileCategory": "code" - }, - { - "path": "packages/sdk/src/plugin-runtime.ts", - "language": "typescript", - "sizeLines": 325, - "fileCategory": "code" - }, - { - "path": "packages/sdk/src/starter-skills/brainstorm.md", - "language": "markdown", - "sizeLines": 39, - "fileCategory": "docs" - }, - { - "path": "packages/sdk/src/starter-skills/catch-up.md", - "language": "markdown", - "sizeLines": 28, - "fileCategory": "docs" - }, - { - "path": "packages/sdk/src/starter-skills/code-review.md", - "language": "markdown", - "sizeLines": 44, - "fileCategory": "docs" - }, - { - "path": "packages/sdk/src/starter-skills/compare-docs.md", - "language": "markdown", - "sizeLines": 35, - "fileCategory": "docs" - }, - { - "path": "packages/sdk/src/starter-skills/daily-plan.md", - "language": "markdown", - "sizeLines": 40, - "fileCategory": "docs" - }, - { - "path": "packages/sdk/src/starter-skills/decision-matrix.md", - "language": "markdown", - "sizeLines": 34, - "fileCategory": "docs" - }, - { - "path": "packages/sdk/src/starter-skills/draft-memo.md", - "language": "markdown", - "sizeLines": 30, - "fileCategory": "docs" - }, - { - "path": "packages/sdk/src/starter-skills/explain-concept.md", - "language": "markdown", - "sizeLines": 30, - "fileCategory": "docs" - }, - { - "path": "packages/sdk/src/starter-skills/extract-actions.md", - "language": "markdown", - "sizeLines": 42, - "fileCategory": "docs" - }, - { - "path": "packages/sdk/src/starter-skills/index.ts", - "language": "typescript", - "sizeLines": 56, - "fileCategory": "code" - }, - { - "path": "packages/sdk/src/starter-skills/meeting-prep.md", - "language": "markdown", - "sizeLines": 34, - "fileCategory": "docs" - }, - { - "path": "packages/sdk/src/starter-skills/plan-execute.md", - "language": "markdown", - "sizeLines": 27, - "fileCategory": "docs" - }, - { - "path": "packages/sdk/src/starter-skills/research-synthesis.md", - "language": "markdown", - "sizeLines": 35, - "fileCategory": "docs" - }, - { - "path": "packages/sdk/src/starter-skills/research-team.md", - "language": "markdown", - "sizeLines": 26, - "fileCategory": "docs" - }, - { - "path": "packages/sdk/src/starter-skills/retrospective.md", - "language": "markdown", - "sizeLines": 48, - "fileCategory": "docs" - }, - { - "path": "packages/sdk/src/starter-skills/review-pair.md", - "language": "markdown", - "sizeLines": 21, - "fileCategory": "docs" - }, - { - "path": "packages/sdk/src/starter-skills/risk-assessment.md", - "language": "markdown", - "sizeLines": 41, - "fileCategory": "docs" - }, - { - "path": "packages/sdk/src/starter-skills/status-update.md", - "language": "markdown", - "sizeLines": 31, - "fileCategory": "docs" - }, - { - "path": "packages/sdk/src/starter-skills/task-breakdown.md", - "language": "markdown", - "sizeLines": 38, - "fileCategory": "docs" - }, - { - "path": "packages/sdk/src/validate-skill.ts", - "language": "typescript", - "sizeLines": 179, - "fileCategory": "code" - }, - { - "path": "packages/sdk/tests/plugin-manager.test.ts", - "language": "typescript", - "sizeLines": 165, - "fileCategory": "code" - }, - { - "path": "packages/sdk/tests/plugin-runtime.test.ts", - "language": "typescript", - "sizeLines": 440, - "fileCategory": "code" - }, - { - "path": "packages/sdk/tests/starter-skills.test.ts", - "language": "typescript", - "sizeLines": 110, - "fileCategory": "code" - }, - { - "path": "packages/sdk/tests/validate-skill.test.ts", - "language": "typescript", - "sizeLines": 284, - "fileCategory": "code" - }, - { - "path": "packages/sdk/tests/wave-g-capability-surface.test.ts", - "language": "typescript", - "sizeLines": 124, - "fileCategory": "code" - }, - { - "path": "packages/sdk/tsconfig.json", - "language": "json", - "sizeLines": 21, - "fileCategory": "config" - }, - { - "path": "packages/sdk/vitest.config.ts", - "language": "typescript", - "sizeLines": 9, - "fileCategory": "code" - }, - { - "path": "packages/server/.mcp.json", - "language": "json", - "sizeLines": 2, - "fileCategory": "config" - }, - { - "path": "packages/server/drizzle.config.ts", - "language": "typescript", - "sizeLines": 10, - "fileCategory": "code" - }, - { - "path": "packages/server/drizzle/0000_wild_glorian.sql", - "language": "sql", - "sizeLines": 228, - "fileCategory": "data" - }, - { - "path": "packages/server/drizzle/0001_redundant_sauron.sql", - "language": "sql", - "sizeLines": 44, - "fileCategory": "data" - }, - { - "path": "packages/server/drizzle/meta/_journal.json", - "language": "json", - "sizeLines": 19, - "fileCategory": "config" - }, - { - "path": "packages/server/drizzle/meta/0000_snapshot.json", - "language": "json", - "sizeLines": 1603, - "fileCategory": "config" - }, - { - "path": "packages/server/drizzle/meta/0001_snapshot.json", - "language": "json", - "sizeLines": 1923, - "fileCategory": "config" - }, - { - "path": "packages/server/package.json", - "language": "json", - "sizeLines": 46, - "fileCategory": "config" - }, - { - "path": "packages/server/src/benchmarks/aggregate.ts", - "language": "typescript", - "sizeLines": 432, - "fileCategory": "code" - }, - { - "path": "packages/server/src/benchmarks/judge/ensemble-tiebreak.ts", - "language": "typescript", - "sizeLines": 314, - "fileCategory": "code" - }, - { - "path": "packages/server/src/benchmarks/judge/failure-mode-judge.ts", - "language": "typescript", - "sizeLines": 383, - "fileCategory": "code" - }, - { - "path": "packages/server/src/config.ts", - "language": "typescript", - "sizeLines": 42, - "fileCategory": "code" - }, - { - "path": "packages/server/src/daemons/hive-mind.ts", - "language": "typescript", - "sizeLines": 126, - "fileCategory": "code" - }, - { - "path": "packages/server/src/daemons/scout.ts", - "language": "typescript", - "sizeLines": 121, - "fileCategory": "code" - }, - { - "path": "packages/server/src/daemons/subconscious.ts", - "language": "typescript", - "sizeLines": 94, - "fileCategory": "code" - }, - { - "path": "packages/server/src/db/connection.ts", - "language": "typescript", - "sizeLines": 16, - "fileCategory": "code" - }, - { - "path": "packages/server/src/db/migrate.ts", - "language": "typescript", - "sizeLines": 20, - "fileCategory": "code" - }, - { - "path": "packages/server/src/db/schema.ts", - "language": "typescript", - "sizeLines": 234, - "fileCategory": "code" - }, - { - "path": "packages/server/src/index.ts", - "language": "typescript", - "sizeLines": 83, - "fileCategory": "code" - }, - { - "path": "packages/server/src/kvark/index.ts", - "language": "typescript", - "sizeLines": 23, - "fileCategory": "code" - }, - { - "path": "packages/server/src/kvark/kvark-auth.ts", - "language": "typescript", - "sizeLines": 106, - "fileCategory": "code" - }, - { - "path": "packages/server/src/kvark/kvark-client.ts", - "language": "typescript", - "sizeLines": 248, - "fileCategory": "code" - }, - { - "path": "packages/server/src/kvark/kvark-config.ts", - "language": "typescript", - "sizeLines": 44, - "fileCategory": "code" - }, - { - "path": "packages/server/src/kvark/kvark-types.ts", - "language": "typescript", - "sizeLines": 202, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/agents-store.ts", - "language": "typescript", - "sizeLines": 149, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/approval-grants.ts", - "language": "typescript", - "sizeLines": 211, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/cors-config.ts", - "language": "typescript", - "sizeLines": 73, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/cron.ts", - "language": "typescript", - "sizeLines": 170, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/data-erase-helpers.ts", - "language": "typescript", - "sizeLines": 326, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/index.ts", - "language": "typescript", - "sizeLines": 2574, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/lifecycle.ts", - "language": "typescript", - "sizeLines": 142, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/llm-key-probe.ts", - "language": "typescript", - "sizeLines": 207, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/logger.ts", - "language": "typescript", - "sizeLines": 45, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/mcp-config.ts", - "language": "typescript", - "sizeLines": 192, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/memory-lane-cron.ts", - "language": "typescript", - "sizeLines": 130, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/model-availability.ts", - "language": "typescript", - "sizeLines": 99, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/monthly-assessment.ts", - "language": "typescript", - "sizeLines": 344, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/net-config.ts", - "language": "typescript", - "sizeLines": 32, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/offline-manager.ts", - "language": "typescript", - "sizeLines": 234, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/origin-guard.ts", - "language": "typescript", - "sizeLines": 41, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/persona-tool-filter.ts", - "language": "typescript", - "sizeLines": 77, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/proactive-handlers.ts", - "language": "typescript", - "sizeLines": 290, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/agent-groups.ts", - "language": "typescript", - "sizeLines": 128, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/agent-run.ts", - "language": "typescript", - "sizeLines": 289, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/agent-search.ts", - "language": "typescript", - "sizeLines": 173, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/agent.ts", - "language": "typescript", - "sizeLines": 131, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/agents.ts", - "language": "typescript", - "sizeLines": 506, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/anthropic-proxy.ts", - "language": "typescript", - "sizeLines": 392, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/approval.ts", - "language": "typescript", - "sizeLines": 67, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/artifact-index.ts", - "language": "typescript", - "sizeLines": 118, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/artifacts.ts", - "language": "typescript", - "sizeLines": 372, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/automations.ts", - "language": "typescript", - "sizeLines": 440, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/backup.ts", - "language": "typescript", - "sizeLines": 439, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/browse-helpers.ts", - "language": "typescript", - "sizeLines": 56, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/browse.ts", - "language": "typescript", - "sizeLines": 112, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/browser-ext.ts", - "language": "typescript", - "sizeLines": 25, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/capabilities.ts", - "language": "typescript", - "sizeLines": 145, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/chat-context.ts", - "language": "typescript", - "sizeLines": 101, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/chat-governance.ts", - "language": "typescript", - "sizeLines": 76, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/chat-helpers.ts", - "language": "typescript", - "sizeLines": 205, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/chat-persistence.ts", - "language": "typescript", - "sizeLines": 66, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/chat.ts", - "language": "typescript", - "sizeLines": 1771, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/command.ts", - "language": "typescript", - "sizeLines": 270, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/commands.ts", - "language": "typescript", - "sizeLines": 87, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/compliance.ts", - "language": "typescript", - "sizeLines": 312, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/connectors.ts", - "language": "typescript", - "sizeLines": 326, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/cost.ts", - "language": "typescript", - "sizeLines": 270, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/cron.ts", - "language": "typescript", - "sizeLines": 216, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/data-erase.ts", - "language": "typescript", - "sizeLines": 112, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/documents.ts", - "language": "typescript", - "sizeLines": 140, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/events.ts", - "language": "typescript", - "sizeLines": 375, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/evolution.ts", - "language": "typescript", - "sizeLines": 661, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/export.ts", - "language": "typescript", - "sizeLines": 219, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/extend.ts", - "language": "typescript", - "sizeLines": 117, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/feedback.ts", - "language": "typescript", - "sizeLines": 184, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/files.ts", - "language": "typescript", - "sizeLines": 448, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/fleet.ts", - "language": "typescript", - "sizeLines": 300, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/harvest-classify.ts", - "language": "typescript", - "sizeLines": 70, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/harvest.ts", - "language": "typescript", - "sizeLines": 917, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/home.ts", - "language": "typescript", - "sizeLines": 504, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/identity.ts", - "language": "typescript", - "sizeLines": 160, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/import.ts", - "language": "typescript", - "sizeLines": 69, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/ingest.ts", - "language": "typescript", - "sizeLines": 474, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/knowledge.ts", - "language": "typescript", - "sizeLines": 135, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/litellm.ts", - "language": "typescript", - "sizeLines": 75, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/local-inference.ts", - "language": "typescript", - "sizeLines": 259, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/marketplace-dev.ts", - "language": "typescript", - "sizeLines": 188, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/marketplace.ts", - "language": "typescript", - "sizeLines": 889, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/mcps.ts", - "language": "typescript", - "sizeLines": 577, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/memory-center.ts", - "language": "typescript", - "sizeLines": 613, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/memory.ts", - "language": "typescript", - "sizeLines": 679, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/mind.ts", - "language": "typescript", - "sizeLines": 29, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/notifications.ts", - "language": "typescript", - "sizeLines": 211, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/oauth.ts", - "language": "typescript", - "sizeLines": 321, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/offline.ts", - "language": "typescript", - "sizeLines": 82, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/onboarding.ts", - "language": "typescript", - "sizeLines": 82, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/personas.ts", - "language": "typescript", - "sizeLines": 178, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/pins.ts", - "language": "typescript", - "sizeLines": 143, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/profile.ts", - "language": "typescript", - "sizeLines": 457, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/providers.ts", - "language": "typescript", - "sizeLines": 298, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/session-utils.ts", - "language": "typescript", - "sizeLines": 1171, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/sessions.ts", - "language": "typescript", - "sizeLines": 424, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/settings.ts", - "language": "typescript", - "sizeLines": 529, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/skills-aliases.ts", - "language": "typescript", - "sizeLines": 98, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/skills.ts", - "language": "typescript", - "sizeLines": 934, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/tasks.ts", - "language": "typescript", - "sizeLines": 204, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/team.ts", - "language": "typescript", - "sizeLines": 810, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/telegram.ts", - "language": "typescript", - "sizeLines": 192, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/telemetry.ts", - "language": "typescript", - "sizeLines": 62, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/tools.ts", - "language": "typescript", - "sizeLines": 182, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/validate.ts", - "language": "typescript", - "sizeLines": 33, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/vault.ts", - "language": "typescript", - "sizeLines": 188, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/waggle-dance.ts", - "language": "typescript", - "sizeLines": 213, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/waggle-signals.ts", - "language": "typescript", - "sizeLines": 123, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/weaver.ts", - "language": "typescript", - "sizeLines": 130, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/wiki.ts", - "language": "typescript", - "sizeLines": 201, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/workflows.ts", - "language": "typescript", - "sizeLines": 54, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/workspace-context.ts", - "language": "typescript", - "sizeLines": 490, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/workspace-templates.ts", - "language": "typescript", - "sizeLines": 471, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/routes/workspaces.ts", - "language": "typescript", - "sizeLines": 1136, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/security-middleware.ts", - "language": "typescript", - "sizeLines": 423, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/service.ts", - "language": "typescript", - "sizeLines": 313, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/services/evolution-service.ts", - "language": "typescript", - "sizeLines": 391, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/services/optimizer-service.ts", - "language": "typescript", - "sizeLines": 163, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/setup-connectors.ts", - "language": "typescript", - "sizeLines": 54, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/setup-crons.ts", - "language": "typescript", - "sizeLines": 40, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/signal-bus.ts", - "language": "typescript", - "sizeLines": 131, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/start.ts", - "language": "typescript", - "sizeLines": 22, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/storage/fs-provider.ts", - "language": "typescript", - "sizeLines": 165, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/storage/index.ts", - "language": "typescript", - "sizeLines": 73, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/storage/s3-provider.ts", - "language": "typescript", - "sizeLines": 70, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/storage/security.ts", - "language": "typescript", - "sizeLines": 35, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/storage/types.ts", - "language": "typescript", - "sizeLines": 28, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/utils/mime.ts", - "language": "typescript", - "sizeLines": 49, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/vector-backfill.ts", - "language": "typescript", - "sizeLines": 104, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/waggle-dance-bridge.ts", - "language": "typescript", - "sizeLines": 143, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/workspace-sessions.ts", - "language": "typescript", - "sizeLines": 224, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/workspace-state.ts", - "language": "typescript", - "sizeLines": 385, - "fileCategory": "code" - }, - { - "path": "packages/server/src/local/ws-team-client.ts", - "language": "typescript", - "sizeLines": 139, - "fileCategory": "code" - }, - { - "path": "packages/server/src/middleware/assert-tier.ts", - "language": "typescript", - "sizeLines": 63, - "fileCategory": "code" - }, - { - "path": "packages/server/src/middleware/audit.ts", - "language": "typescript", - "sizeLines": 42, - "fileCategory": "code" - }, - { - "path": "packages/server/src/plugins/auth.ts", - "language": "typescript", - "sizeLines": 61, - "fileCategory": "code" - }, - { - "path": "packages/server/src/plugins/redis.ts", - "language": "typescript", - "sizeLines": 24, - "fileCategory": "code" - }, - { - "path": "packages/server/src/proactive/patterns.ts", - "language": "typescript", - "sizeLines": 39, - "fileCategory": "code" - }, - { - "path": "packages/server/src/routes/agents.ts", - "language": "typescript", - "sizeLines": 160, - "fileCategory": "code" - }, - { - "path": "packages/server/src/routes/analytics.ts", - "language": "typescript", - "sizeLines": 44, - "fileCategory": "code" - }, - { - "path": "packages/server/src/routes/audit.ts", - "language": "typescript", - "sizeLines": 99, - "fileCategory": "code" - }, - { - "path": "packages/server/src/routes/capability-governance.ts", - "language": "typescript", - "sizeLines": 283, - "fileCategory": "code" - }, - { - "path": "packages/server/src/routes/cron.ts", - "language": "typescript", - "sizeLines": 84, - "fileCategory": "code" - }, - { - "path": "packages/server/src/routes/jobs.ts", - "language": "typescript", - "sizeLines": 70, - "fileCategory": "code" - }, - { - "path": "packages/server/src/routes/knowledge.ts", - "language": "typescript", - "sizeLines": 102, - "fileCategory": "code" - }, - { - "path": "packages/server/src/routes/messages.ts", - "language": "typescript", - "sizeLines": 96, - "fileCategory": "code" - }, - { - "path": "packages/server/src/routes/resources.ts", - "language": "typescript", - "sizeLines": 78, - "fileCategory": "code" - }, - { - "path": "packages/server/src/routes/scout.ts", - "language": "typescript", - "sizeLines": 33, - "fileCategory": "code" - }, - { - "path": "packages/server/src/routes/suggestions.ts", - "language": "typescript", - "sizeLines": 32, - "fileCategory": "code" - }, - { - "path": "packages/server/src/routes/tasks.ts", - "language": "typescript", - "sizeLines": 115, - "fileCategory": "code" - }, - { - "path": "packages/server/src/routes/teams.ts", - "language": "typescript", - "sizeLines": 177, - "fileCategory": "code" - }, - { - "path": "packages/server/src/routes/webhooks.ts", - "language": "typescript", - "sizeLines": 51, - "fileCategory": "code" - }, - { - "path": "packages/server/src/scheduler/cron-runner.ts", - "language": "typescript", - "sizeLines": 53, - "fileCategory": "code" - }, - { - "path": "packages/server/src/services/agent-group-executor.ts", - "language": "typescript", - "sizeLines": 93, - "fileCategory": "code" - }, - { - "path": "packages/server/src/services/agent-service.ts", - "language": "typescript", - "sizeLines": 212, - "fileCategory": "code" - }, - { - "path": "packages/server/src/services/analytics-service.ts", - "language": "typescript", - "sizeLines": 291, - "fileCategory": "code" - }, - { - "path": "packages/server/src/services/audit-service.ts", - "language": "typescript", - "sizeLines": 74, - "fileCategory": "code" - }, - { - "path": "packages/server/src/services/cron-service.ts", - "language": "typescript", - "sizeLines": 82, - "fileCategory": "code" - }, - { - "path": "packages/server/src/services/job-service.ts", - "language": "typescript", - "sizeLines": 90, - "fileCategory": "code" - }, - { - "path": "packages/server/src/services/knowledge-service.ts", - "language": "typescript", - "sizeLines": 154, - "fileCategory": "code" - }, - { - "path": "packages/server/src/services/message-service.ts", - "language": "typescript", - "sizeLines": 119, - "fileCategory": "code" - }, - { - "path": "packages/server/src/services/proactive-service.ts", - "language": "typescript", - "sizeLines": 95, - "fileCategory": "code" - }, - { - "path": "packages/server/src/services/resource-service.ts", - "language": "typescript", - "sizeLines": 77, - "fileCategory": "code" - }, - { - "path": "packages/server/src/services/task-service.ts", - "language": "typescript", - "sizeLines": 91, - "fileCategory": "code" - }, - { - "path": "packages/server/src/services/team-capability-governance.ts", - "language": "typescript", - "sizeLines": 369, - "fileCategory": "code" - }, - { - "path": "packages/server/src/services/team-service.ts", - "language": "typescript", - "sizeLines": 131, - "fileCategory": "code" - }, - { - "path": "packages/server/src/services/user-service.ts", - "language": "typescript", - "sizeLines": 59, - "fileCategory": "code" - }, - { - "path": "packages/server/src/stripe/checkout.ts", - "language": "typescript", - "sizeLines": 57, - "fileCategory": "code" - }, - { - "path": "packages/server/src/stripe/index.ts", - "language": "typescript", - "sizeLines": 146, - "fileCategory": "code" - }, - { - "path": "packages/server/src/stripe/portal.ts", - "language": "typescript", - "sizeLines": 51, - "fileCategory": "code" - }, - { - "path": "packages/server/src/stripe/sync.ts", - "language": "typescript", - "sizeLines": 90, - "fileCategory": "code" - }, - { - "path": "packages/server/src/stripe/webhook.ts", - "language": "typescript", - "sizeLines": 172, - "fileCategory": "code" - }, - { - "path": "packages/server/src/ws/connection-manager.ts", - "language": "typescript", - "sizeLines": 46, - "fileCategory": "code" - }, - { - "path": "packages/server/src/ws/gateway.ts", - "language": "typescript", - "sizeLines": 251, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/audit.test.ts", - "language": "typescript", - "sizeLines": 234, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/auth.test.ts", - "language": "typescript", - "sizeLines": 135, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/backup-restore.test.ts", - "language": "typescript", - "sizeLines": 350, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/backup-streaming.test.ts", - "language": "typescript", - "sizeLines": 219, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/behavioral-spec-active.test.ts", - "language": "typescript", - "sizeLines": 134, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/benchmarks/aggregate.test.ts", - "language": "typescript", - "sizeLines": 311, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/benchmarks/ensemble-tiebreak.test.ts", - "language": "typescript", - "sizeLines": 255, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/benchmarks/failure-mode-judge.test.ts", - "language": "typescript", - "sizeLines": 340, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/benchmarks/verbose-fixed-cell-isolation.test.ts", - "language": "typescript", - "sizeLines": 216, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/browse-helpers.test.ts", - "language": "typescript", - "sizeLines": 86, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/chat-api.test.ts", - "language": "typescript", - "sizeLines": 543, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/cockpit-health.test.ts", - "language": "typescript", - "sizeLines": 89, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/config.test.ts", - "language": "typescript", - "sizeLines": 53, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/cron.test.ts", - "language": "typescript", - "sizeLines": 248, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/cross-platform.test.ts", - "language": "typescript", - "sizeLines": 455, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/d11-datadir-tier.test.ts", - "language": "typescript", - "sizeLines": 129, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/daemons/hive-mind.test.ts", - "language": "typescript", - "sizeLines": 170, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/daemons/scout.test.ts", - "language": "typescript", - "sizeLines": 184, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/daemons/subconscious.test.ts", - "language": "typescript", - "sizeLines": 130, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/data-erase-helpers.test.ts", - "language": "typescript", - "sizeLines": 278, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/data-erase.test.ts", - "language": "typescript", - "sizeLines": 125, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/data-export.test.ts", - "language": "typescript", - "sizeLines": 209, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/db/schema.test.ts", - "language": "typescript", - "sizeLines": 93, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/deployment.test.ts", - "language": "typescript", - "sizeLines": 95, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/evolution-routes.test.ts", - "language": "typescript", - "sizeLines": 386, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/evolution-run-route.test.ts", - "language": "typescript", - "sizeLines": 397, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/first-run.test.ts", - "language": "typescript", - "sizeLines": 219, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/ingest-api.test.ts", - "language": "typescript", - "sizeLines": 327, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/kvark/kvark-auth.test.ts", - "language": "typescript", - "sizeLines": 101, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/kvark/kvark-client.test.ts", - "language": "typescript", - "sizeLines": 279, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/kvark/kvark-config.test.ts", - "language": "typescript", - "sizeLines": 84, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/kvark/kvark-integration-smoke.test.ts", - "language": "typescript", - "sizeLines": 212, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/kvark/kvark-types.test.ts", - "language": "typescript", - "sizeLines": 112, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/kvark/kvark-wiring.test.ts", - "language": "typescript", - "sizeLines": 84, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/litellm-api.test.ts", - "language": "typescript", - "sizeLines": 263, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/llm-key-probe.test.ts", - "language": "typescript", - "sizeLines": 128, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local-mode.test.ts", - "language": "typescript", - "sizeLines": 303, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local-scheduler.test.ts", - "language": "typescript", - "sizeLines": 168, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/agent-run.test.ts", - "language": "typescript", - "sizeLines": 70, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/agents.test.ts", - "language": "typescript", - "sizeLines": 456, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/ambiguity-detection.test.ts", - "language": "typescript", - "sizeLines": 151, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/anthropic-proxy.test.ts", - "language": "typescript", - "sizeLines": 323, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/artifacts.test.ts", - "language": "typescript", - "sizeLines": 207, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/automations.test.ts", - "language": "typescript", - "sizeLines": 390, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/chat-governance.test.ts", - "language": "typescript", - "sizeLines": 348, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/chat-helpers.test.ts", - "language": "typescript", - "sizeLines": 663, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/chat-persistence.test.ts", - "language": "typescript", - "sizeLines": 240, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/compliance-templates.test.ts", - "language": "typescript", - "sizeLines": 235, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/connector-registry-integration.test.ts", - "language": "typescript", - "sizeLines": 129, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/connectors-phase4.test.ts", - "language": "typescript", - "sizeLines": 231, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/connectors.test.ts", - "language": "typescript", - "sizeLines": 90, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/cost.test.ts", - "language": "typescript", - "sizeLines": 144, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/cron-error-handling.test.ts", - "language": "typescript", - "sizeLines": 218, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/custom-workflows.test.ts", - "language": "typescript", - "sizeLines": 189, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/extend.test.ts", - "language": "typescript", - "sizeLines": 160, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/feedback-routes.test.ts", - "language": "typescript", - "sizeLines": 234, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/files-indexer.test.ts", - "language": "typescript", - "sizeLines": 154, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/files.test.ts", - "language": "typescript", - "sizeLines": 470, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/fleet.test.ts", - "language": "typescript", - "sizeLines": 243, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/gepa-optimization.test.ts", - "language": "typescript", - "sizeLines": 196, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/harvest-cache.test.ts", - "language": "typescript", - "sizeLines": 72, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/harvest-classify.test.ts", - "language": "typescript", - "sizeLines": 122, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/harvest-identity-defenses.test.ts", - "language": "typescript", - "sizeLines": 149, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/harvest-identity.test.ts", - "language": "typescript", - "sizeLines": 177, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/harvest-runs.test.ts", - "language": "typescript", - "sizeLines": 257, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/home.test.ts", - "language": "typescript", - "sizeLines": 283, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/identity.test.ts", - "language": "typescript", - "sizeLines": 90, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/import.test.ts", - "language": "typescript", - "sizeLines": 261, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/knowledge-graph-projection.test.ts", - "language": "typescript", - "sizeLines": 91, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/marketplace-dev.test.ts", - "language": "typescript", - "sizeLines": 226, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/marketplace-security.test.ts", - "language": "typescript", - "sizeLines": 283, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/marketplace-sources.test.ts", - "language": "typescript", - "sizeLines": 459, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/marketplace-sync.test.ts", - "language": "typescript", - "sizeLines": 274, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/marketplace.test.ts", - "language": "typescript", - "sizeLines": 321, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/mcp-config.test.ts", - "language": "typescript", - "sizeLines": 165, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/mcps.test.ts", - "language": "typescript", - "sizeLines": 520, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/memory-center.test.ts", - "language": "typescript", - "sizeLines": 386, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/memory-lane-cron.test.ts", - "language": "typescript", - "sizeLines": 109, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/memory-stats-isolation.test.ts", - "language": "typescript", - "sizeLines": 86, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/monthly-assessment.test.ts", - "language": "typescript", - "sizeLines": 223, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/network-auth.test.ts", - "language": "typescript", - "sizeLines": 162, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/notifications.test.ts", - "language": "typescript", - "sizeLines": 41, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/oauth-callback-escaping.test.ts", - "language": "typescript", - "sizeLines": 60, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/onboarding-flag-shape.test.ts", - "language": "typescript", - "sizeLines": 43, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/onboarding-status.test.ts", - "language": "typescript", - "sizeLines": 129, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/p5-skill-governance.test.ts", - "language": "typescript", - "sizeLines": 106, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/persona-tool-filtering.test.ts", - "language": "typescript", - "sizeLines": 179, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/personas-routes.test.ts", - "language": "typescript", - "sizeLines": 101, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/phase2-traversal-backup.test.ts", - "language": "typescript", - "sizeLines": 138, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/phase2-traversal-chat.test.ts", - "language": "typescript", - "sizeLines": 166, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/phase2-traversal-documents.test.ts", - "language": "typescript", - "sizeLines": 99, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/phase2-traversal-ingest.test.ts", - "language": "typescript", - "sizeLines": 101, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/phase2-traversal-tasks.test.ts", - "language": "typescript", - "sizeLines": 104, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/phase2-traversal-workspace-context.test.ts", - "language": "typescript", - "sizeLines": 80, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/phase4-harvest-embedder.test.ts", - "language": "typescript", - "sizeLines": 182, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/phase5-agent-run-provider.test.ts", - "language": "typescript", - "sizeLines": 78, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/phase5-connector-health.test.ts", - "language": "typescript", - "sizeLines": 106, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/phase5-cron-parse.test.ts", - "language": "typescript", - "sizeLines": 89, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/phase5-files-upload-limit.test.ts", - "language": "typescript", - "sizeLines": 88, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/providers.test.ts", - "language": "typescript", - "sizeLines": 325, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/security-middleware.test.ts", - "language": "typescript", - "sizeLines": 674, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/session-timeout.test.ts", - "language": "typescript", - "sizeLines": 198, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/settings-permissions.test.ts", - "language": "typescript", - "sizeLines": 174, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/skills-phase3.test.ts", - "language": "typescript", - "sizeLines": 220, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/sse-resilience.test.ts", - "language": "typescript", - "sizeLines": 278, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/suggestion-sanitize.test.ts", - "language": "typescript", - "sizeLines": 44, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/team-integration.test.ts", - "language": "typescript", - "sizeLines": 230, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/telegram.test.ts", - "language": "typescript", - "sizeLines": 142, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/vault-routes.test.ts", - "language": "typescript", - "sizeLines": 275, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/vector-backfill.test.ts", - "language": "typescript", - "sizeLines": 90, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/w43-harvest-temporal.test.ts", - "language": "typescript", - "sizeLines": 69, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/w46-harvest-raw-turns.test.ts", - "language": "typescript", - "sizeLines": 129, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/wiki-mock-guard.test.ts", - "language": "typescript", - "sizeLines": 101, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/workspace-sessions.test.ts", - "language": "typescript", - "sizeLines": 218, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/workspaces-lifecycle.test.ts", - "language": "typescript", - "sizeLines": 151, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/local/ws-team-client.test.ts", - "language": "typescript", - "sizeLines": 190, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/offline-mode.test.ts", - "language": "typescript", - "sizeLines": 277, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/offline-tools.test.ts", - "language": "typescript", - "sizeLines": 111, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/performance/benchmarks.test.ts", - "language": "typescript", - "sizeLines": 440, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/persona-tool-filter.test.ts", - "language": "typescript", - "sizeLines": 58, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/plugin-autoload.test.ts", - "language": "typescript", - "sizeLines": 237, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/proactive-handlers.test.ts", - "language": "typescript", - "sizeLines": 272, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/proactive.test.ts", - "language": "typescript", - "sizeLines": 196, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/routes/acquisition-integration.test.ts", - "language": "typescript", - "sizeLines": 227, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/routes/agent-search.test.ts", - "language": "typescript", - "sizeLines": 119, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/routes/agents.test.ts", - "language": "typescript", - "sizeLines": 307, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/routes/analytics.test.ts", - "language": "typescript", - "sizeLines": 261, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/routes/approval-flow.test.ts", - "language": "typescript", - "sizeLines": 133, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/routes/capabilities.test.ts", - "language": "typescript", - "sizeLines": 250, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/routes/capability-governance.test.ts", - "language": "typescript", - "sizeLines": 9, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/routes/capability-packs.test.ts", - "language": "typescript", - "sizeLines": 95, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/routes/commands.test.ts", - "language": "typescript", - "sizeLines": 152, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/routes/connectors-tier.test.ts", - "language": "typescript", - "sizeLines": 36, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/routes/context-injection.test.ts", - "language": "typescript", - "sizeLines": 265, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/routes/cron-api.test.ts", - "language": "typescript", - "sizeLines": 231, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/routes/health.test.ts", - "language": "typescript", - "sizeLines": 102, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/routes/knowledge.test.ts", - "language": "typescript", - "sizeLines": 291, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/routes/messages.test.ts", - "language": "typescript", - "sizeLines": 392, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/routes/persistence.test.ts", - "language": "typescript", - "sizeLines": 254, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/routes/resources.test.ts", - "language": "typescript", - "sizeLines": 226, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/routes/session-state-extraction.test.ts", - "language": "typescript", - "sizeLines": 497, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/routes/session-timeline.test.ts", - "language": "typescript", - "sizeLines": 141, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/routes/starter-catalog.test.ts", - "language": "typescript", - "sizeLines": 182, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/routes/tasks.test.ts", - "language": "typescript", - "sizeLines": 210, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/routes/teams.test.ts", - "language": "typescript", - "sizeLines": 288, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/routes/trust-wiring.test.ts", - "language": "typescript", - "sizeLines": 195, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/routes/workspace-context.test.ts", - "language": "typescript", - "sizeLines": 302, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/routes/workspace-state.test.ts", - "language": "typescript", - "sizeLines": 432, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/server.test.ts", - "language": "typescript", - "sizeLines": 19, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/service-startup.test.ts", - "language": "typescript", - "sizeLines": 55, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/service.test.ts", - "language": "typescript", - "sizeLines": 125, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/services/evolution-service.test.ts", - "language": "typescript", - "sizeLines": 341, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/services/team-capability-governance.test.ts", - "language": "typescript", - "sizeLines": 203, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/signal-bus.test.ts", - "language": "typescript", - "sizeLines": 150, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/signal-emitter-integration.test.ts", - "language": "typescript", - "sizeLines": 104, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/skill-integration.test.ts", - "language": "typescript", - "sizeLines": 87, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/start-trial.test.ts", - "language": "typescript", - "sizeLines": 217, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/stripe/checkout.test.ts", - "language": "typescript", - "sizeLines": 144, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/stripe/smoke-e2e.test.ts", - "language": "typescript", - "sizeLines": 293, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/stripe/status.test.ts", - "language": "typescript", - "sizeLines": 33, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/stripe/sync.test.ts", - "language": "typescript", - "sizeLines": 147, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/stripe/webhook.test.ts", - "language": "typescript", - "sizeLines": 353, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/tasks-api.test.ts", - "language": "typescript", - "sizeLines": 133, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/tauri-config.test.ts", - "language": "typescript", - "sizeLines": 161, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/team-local.test.ts", - "language": "typescript", - "sizeLines": 132, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/test-utils.ts", - "language": "typescript", - "sizeLines": 48, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/tier-enforcement-matrix.test.ts", - "language": "typescript", - "sizeLines": 182, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/tools-routes-launch.test.ts", - "language": "typescript", - "sizeLines": 412, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/tools-routes.test.ts", - "language": "typescript", - "sizeLines": 112, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/validate.test.ts", - "language": "typescript", - "sizeLines": 123, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/waggle-dance-bridge.test.ts", - "language": "typescript", - "sizeLines": 260, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/waggle-dance-routes.test.ts", - "language": "typescript", - "sizeLines": 286, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/wave-h-continuity.test.ts", - "language": "typescript", - "sizeLines": 178, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/web-frontend.test.ts", - "language": "typescript", - "sizeLines": 114, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/workspace-api.test.ts", - "language": "typescript", - "sizeLines": 746, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/workspace-sessions-concurrency.test.ts", - "language": "typescript", - "sizeLines": 309, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/workspace-templates.test.ts", - "language": "typescript", - "sizeLines": 201, - "fileCategory": "code" - }, - { - "path": "packages/server/tests/ws/gateway.test.ts", - "language": "typescript", - "sizeLines": 513, - "fileCategory": "code" - }, - { - "path": "packages/server/tsconfig.json", - "language": "json", - "sizeLines": 24, - "fileCategory": "config" - }, - { - "path": "packages/shared/package.json", - "language": "json", - "sizeLines": 19, - "fileCategory": "config" - }, - { - "path": "packages/shared/src/connector-recommendations.ts", - "language": "typescript", - "sizeLines": 173, - "fileCategory": "code" - }, - { - "path": "packages/shared/src/constants.ts", - "language": "typescript", - "sizeLines": 16, - "fileCategory": "code" - }, - { - "path": "packages/shared/src/index.ts", - "language": "typescript", - "sizeLines": 9, - "fileCategory": "code" - }, - { - "path": "packages/shared/src/mcp-catalog.ts", - "language": "typescript", - "sizeLines": 319, - "fileCategory": "code" - }, - { - "path": "packages/shared/src/risk.ts", - "language": "typescript", - "sizeLines": 82, - "fileCategory": "code" - }, - { - "path": "packages/shared/src/schemas.ts", - "language": "typescript", - "sizeLines": 138, - "fileCategory": "code" - }, - { - "path": "packages/shared/src/tiers.ts", - "language": "typescript", - "sizeLines": 251, - "fileCategory": "code" - }, - { - "path": "packages/shared/src/tool-detection.ts", - "language": "typescript", - "sizeLines": 106, - "fileCategory": "code" - }, - { - "path": "packages/shared/src/types.ts", - "language": "typescript", - "sizeLines": 634, - "fileCategory": "code" - }, - { - "path": "packages/shared/tests/connector-recommendations.test.ts", - "language": "typescript", - "sizeLines": 113, - "fileCategory": "code" - }, - { - "path": "packages/shared/tests/risk.test.ts", - "language": "typescript", - "sizeLines": 54, - "fileCategory": "code" - }, - { - "path": "packages/shared/tests/schemas.test.ts", - "language": "typescript", - "sizeLines": 89, - "fileCategory": "code" - }, - { - "path": "packages/shared/tsconfig.json", - "language": "json", - "sizeLines": 21, - "fileCategory": "config" - }, - { - "path": "packages/waggle-dance/package.json", - "language": "json", - "sizeLines": 10, - "fileCategory": "config" - }, - { - "path": "packages/waggle-dance/src/dispatcher.ts", - "language": "typescript", - "sizeLines": 324, - "fileCategory": "code" - }, - { - "path": "packages/waggle-dance/src/hive-query.ts", - "language": "typescript", - "sizeLines": 26, - "fileCategory": "code" - }, - { - "path": "packages/waggle-dance/src/index.ts", - "language": "typescript", - "sizeLines": 4, - "fileCategory": "code" - }, - { - "path": "packages/waggle-dance/src/protocol.ts", - "language": "typescript", - "sizeLines": 16, - "fileCategory": "code" - }, - { - "path": "packages/waggle-dance/tests/dispatcher.test.ts", - "language": "typescript", - "sizeLines": 508, - "fileCategory": "code" - }, - { - "path": "packages/waggle-dance/tests/integration.test.ts", - "language": "typescript", - "sizeLines": 72, - "fileCategory": "code" - }, - { - "path": "packages/waggle-dance/tests/protocol.test.ts", - "language": "typescript", - "sizeLines": 55, - "fileCategory": "code" - }, - { - "path": "packages/waggle-dance/tsconfig.json", - "language": "json", - "sizeLines": 24, - "fileCategory": "config" - }, - { - "path": "packages/weaver/package.json", - "language": "json", - "sizeLines": 18, - "fileCategory": "config" - }, - { - "path": "packages/weaver/src/consolidation.ts", - "language": "typescript", - "sizeLines": 255, - "fileCategory": "code" - }, - { - "path": "packages/weaver/src/index.ts", - "language": "typescript", - "sizeLines": 3, - "fileCategory": "code" - }, - { - "path": "packages/weaver/src/skill-extractor.ts", - "language": "typescript", - "sizeLines": 48, - "fileCategory": "code" - }, - { - "path": "packages/weaver/tests/consolidation-enhanced.test.ts", - "language": "typescript", - "sizeLines": 167, - "fileCategory": "code" - }, - { - "path": "packages/weaver/tests/consolidation.test.ts", - "language": "typescript", - "sizeLines": 254, - "fileCategory": "code" - }, - { - "path": "packages/weaver/tests/skill-extractor.test.ts", - "language": "typescript", - "sizeLines": 54, - "fileCategory": "code" - }, - { - "path": "packages/weaver/tsconfig.json", - "language": "json", - "sizeLines": 24, - "fileCategory": "config" - }, - { - "path": "packages/weaver/vitest.config.ts", - "language": "typescript", - "sizeLines": 9, - "fileCategory": "code" - }, - { - "path": "packages/wiki-compiler/package.json", - "language": "json", - "sizeLines": 22, - "fileCategory": "config" - }, - { - "path": "packages/wiki-compiler/src/adapters/notion.ts", - "language": "typescript", - "sizeLines": 334, - "fileCategory": "code" - }, - { - "path": "packages/wiki-compiler/src/adapters/obsidian.ts", - "language": "typescript", - "sizeLines": 128, - "fileCategory": "code" - }, - { - "path": "packages/wiki-compiler/src/compiler.ts", - "language": "typescript", - "sizeLines": 596, - "fileCategory": "code" - }, - { - "path": "packages/wiki-compiler/src/index.ts", - "language": "typescript", - "sizeLines": 29, - "fileCategory": "code" - }, - { - "path": "packages/wiki-compiler/src/prompts.ts", - "language": "typescript", - "sizeLines": 94, - "fileCategory": "code" - }, - { - "path": "packages/wiki-compiler/src/state.ts", - "language": "typescript", - "sizeLines": 193, - "fileCategory": "code" - }, - { - "path": "packages/wiki-compiler/src/synthesizer.ts", - "language": "typescript", - "sizeLines": 156, - "fileCategory": "code" - }, - { - "path": "packages/wiki-compiler/src/types.ts", - "language": "typescript", - "sizeLines": 119, - "fileCategory": "code" - }, - { - "path": "packages/wiki-compiler/tests/notion.test.ts", - "language": "typescript", - "sizeLines": 169, - "fileCategory": "code" - }, - { - "path": "packages/wiki-compiler/tests/obsidian.test.ts", - "language": "typescript", - "sizeLines": 210, - "fileCategory": "code" - }, - { - "path": "packages/wiki-compiler/tsconfig.json", - "language": "json", - "sizeLines": 21, - "fileCategory": "config" - }, - { - "path": "packages/worker/package.json", - "language": "json", - "sizeLines": 20, - "fileCategory": "config" - }, - { - "path": "packages/worker/src/execution/coordinator.ts", - "language": "typescript", - "sizeLines": 150, - "fileCategory": "code" - }, - { - "path": "packages/worker/src/execution/parallel.ts", - "language": "typescript", - "sizeLines": 99, - "fileCategory": "code" - }, - { - "path": "packages/worker/src/execution/sequential.ts", - "language": "typescript", - "sizeLines": 85, - "fileCategory": "code" - }, - { - "path": "packages/worker/src/handlers/chat-handler.ts", - "language": "typescript", - "sizeLines": 40, - "fileCategory": "code" - }, - { - "path": "packages/worker/src/handlers/group-handler.ts", - "language": "typescript", - "sizeLines": 78, - "fileCategory": "code" - }, - { - "path": "packages/worker/src/handlers/task-handler.ts", - "language": "typescript", - "sizeLines": 90, - "fileCategory": "code" - }, - { - "path": "packages/worker/src/handlers/waggle-handler.ts", - "language": "typescript", - "sizeLines": 74, - "fileCategory": "code" - }, - { - "path": "packages/worker/src/index.ts", - "language": "typescript", - "sizeLines": 94, - "fileCategory": "code" - }, - { - "path": "packages/worker/src/job-processor.ts", - "language": "typescript", - "sizeLines": 28, - "fileCategory": "code" - }, - { - "path": "packages/worker/tests/execution/strategies.test.ts", - "language": "typescript", - "sizeLines": 352, - "fileCategory": "code" - }, - { - "path": "packages/worker/tests/handlers/chat-handler.test.ts", - "language": "typescript", - "sizeLines": 126, - "fileCategory": "code" - }, - { - "path": "packages/worker/tests/handlers/handlers.test.ts", - "language": "typescript", - "sizeLines": 340, - "fileCategory": "code" - }, - { - "path": "packages/worker/tests/handlers/waggle-dispatch.test.ts", - "language": "typescript", - "sizeLines": 92, - "fileCategory": "code" - }, - { - "path": "packages/worker/tests/job-processor.test.ts", - "language": "typescript", - "sizeLines": 113, - "fileCategory": "code" - }, - { - "path": "packages/worker/tsconfig.json", - "language": "json", - "sizeLines": 24, - "fileCategory": "config" - }, - { - "path": "PLAN.md", - "language": "markdown", - "sizeLines": 98, - "fileCategory": "docs" - }, - { - "path": "playwright-e2e.config.ts", - "language": "typescript", - "sizeLines": 17, - "fileCategory": "code" - }, - { - "path": "playwright.config.ts", - "language": "typescript", - "sizeLines": 74, - "fileCategory": "code" - }, - { - "path": "preflight-results/b1-smoke-2026-04-21T17-54-02-102Z.json", - "language": "json", - "sizeLines": 31, - "fileCategory": "config" - }, - { - "path": "preflight-results/b2-grok-smoke-2026-04-21T23-04-41-168Z.json", - "language": "json", - "sizeLines": 30, - "fileCategory": "config" - }, - { - "path": "preflight-results/claude-ai-export-verification-2026-04-22.md", - "language": "markdown", - "sizeLines": 163, - "fileCategory": "docs" - }, - { - "path": "preflight-results/conv-verification-2026-04-22.md", - "language": "markdown", - "sizeLines": 153, - "fileCategory": "docs" - }, - { - "path": "preflight-results/judge-calibration-ensemble-14inst-2026-04-21T13-00-04Z.json", - "language": "json", - "sizeLines": 989, - "fileCategory": "config" - }, - { - "path": "preflight-results/judge-calibration-ensemble-2026-04-21T08-56-43Z.json", - "language": "json", - "sizeLines": 713, - "fileCategory": "config" - }, - { - "path": "preflight-results/judge-calibration-haiku-task4.json", - "language": "json", - "sizeLines": 299, - "fileCategory": "config" - }, - { - "path": "preflight-results/judge-calibration-opus-task4.json", - "language": "json", - "sizeLines": 309, - "fileCategory": "config" - }, - { - "path": "preflight-results/judge-calibration-sonnet-2026-04-21T08-55-51Z.json", - "language": "json", - "sizeLines": 299, - "fileCategory": "config" - }, - { - "path": "preflight-results/pm-custom-triples-2026-04-22.json", - "language": "json", - "sizeLines": 118, - "fileCategory": "config" - }, - { - "path": "preflight-results/qwen-stability-matrix-2026-04-21T14-05-12-175Z.csv", - "language": "csv", - "sizeLines": 41, - "fileCategory": "data" - }, - { - "path": "preflight-results/qwen-thinking-stability-2026-04-21T14-05-12-175Z.md", - "language": "markdown", - "sizeLines": 91, - "fileCategory": "docs" - }, - { - "path": "preflight-results/stage-0-dogfood-2026-04-21.md", - "language": "markdown", - "sizeLines": 304, - "fileCategory": "docs" - }, - { - "path": "preflight-results/task-2-2-labels-14inst-2026-04-22.md", - "language": "markdown", - "sizeLines": 295, - "fileCategory": "docs" - }, - { - "path": "preflight-results/vendor-availability-2026-04-21T08-30-42-598Z.json", - "language": "json", - "sizeLines": 43, - "fileCategory": "config" - }, - { - "path": "README.md", - "language": "markdown", - "sizeLines": 58, - "fileCategory": "docs" - }, - { - "path": "render.yaml", - "language": "yaml", - "sizeLines": 83, - "fileCategory": "config" - }, - { - "path": "scripts/analyze-ensemble-baseline.mjs", - "language": "javascript", - "sizeLines": 317, - "fileCategory": "code" - }, - { - "path": "scripts/analyze-task-2-2-closeout.mjs", - "language": "javascript", - "sizeLines": 393, - "fileCategory": "code" - }, - { - "path": "scripts/build-sidecar.mjs", - "language": "javascript", - "sizeLines": 111, - "fileCategory": "code" - }, - { - "path": "scripts/build-task-2-2-dataset.mjs", - "language": "javascript", - "sizeLines": 271, - "fileCategory": "code" - }, - { - "path": "scripts/bundle-native-deps.mjs", - "language": "javascript", - "sizeLines": 90, - "fileCategory": "code" - }, - { - "path": "scripts/bundle-node.mjs", - "language": "javascript", - "sizeLines": 107, - "fileCategory": "code" - }, - { - "path": "scripts/check-no-invalid-snapshots.mjs", - "language": "javascript", - "sizeLines": 90, - "fileCategory": "code" - }, - { - "path": "scripts/check-sidecar-resources.mjs", - "language": "javascript", - "sizeLines": 50, - "fileCategory": "code" - }, - { - "path": "scripts/deep-clean-and-recompile.mjs", - "language": "javascript", - "sizeLines": 156, - "fileCategory": "code" - }, - { - "path": "scripts/evolution-hypothesis-rejudge-gemini.mjs", - "language": "javascript", - "sizeLines": 248, - "fileCategory": "code" - }, - { - "path": "scripts/evolution-hypothesis-resume.mjs", - "language": "javascript", - "sizeLines": 406, - "fileCategory": "code" - }, - { - "path": "scripts/evolution-hypothesis.mjs", - "language": "javascript", - "sizeLines": 781, - "fileCategory": "code" - }, - { - "path": "scripts/harvest-and-compile.mjs", - "language": "javascript", - "sizeLines": 218, - "fileCategory": "code" - }, - { - "path": "scripts/inspect-fresh-claude-export.mjs", - "language": "javascript", - "sizeLines": 161, - "fileCategory": "code" - }, - { - "path": "scripts/judge-calibration.mjs", - "language": "javascript", - "sizeLines": 309, - "fileCategory": "code" - }, - { - "path": "scripts/nuclear-rebuild.mjs", - "language": "javascript", - "sizeLines": 123, - "fileCategory": "code" - }, - { - "path": "scripts/oss-drift-check.sh", - "language": "shell", - "sizeLines": 123, - "fileCategory": "script" - }, - { - "path": "scripts/oss-subtree-split.sh", - "language": "shell", - "sizeLines": 153, - "fileCategory": "script" - }, - { - "path": "scripts/parity-check.sh", - "language": "shell", - "sizeLines": 140, - "fileCategory": "script" - }, - { - "path": "scripts/persona-reactor-workflow.mjs", - "language": "javascript", - "sizeLines": 127, - "fileCategory": "code" - }, - { - "path": "scripts/qwen-stability-matrix.mjs", - "language": "javascript", - "sizeLines": 533, - "fileCategory": "code" - }, - { - "path": "scripts/read-pdf.mjs", - "language": "javascript", - "sizeLines": 20, - "fileCategory": "code" - }, - { - "path": "scripts/read-wiki-pages.mjs", - "language": "javascript", - "sizeLines": 71, - "fileCategory": "code" - }, - { - "path": "scripts/run-mini-locomo.ts", - "language": "typescript", - "sizeLines": 619, - "fileCategory": "code" - }, - { - "path": "scripts/run-pilot-2026-04-26.ts", - "language": "typescript", - "sizeLines": 951, - "fileCategory": "code" - }, - { - "path": "scripts/scan-locomo-deep.mjs", - "language": "javascript", - "sizeLines": 94, - "fileCategory": "code" - }, - { - "path": "scripts/scan-locomo-for-triples.mjs", - "language": "javascript", - "sizeLines": 163, - "fileCategory": "code" - }, - { - "path": "scripts/seed-real-data.mjs", - "language": "javascript", - "sizeLines": 381, - "fileCategory": "code" - }, - { - "path": "scripts/smoke-qwen-dual-route.mjs", - "language": "javascript", - "sizeLines": 112, - "fileCategory": "code" - }, - { - "path": "scripts/smoke-sonnet-route.mjs", - "language": "javascript", - "sizeLines": 105, - "fileCategory": "code" - }, - { - "path": "scripts/sprint-11-b1-smoke.mjs", - "language": "javascript", - "sizeLines": 194, - "fileCategory": "code" - }, - { - "path": "scripts/sprint-11-b2-grok-smoke.mjs", - "language": "javascript", - "sizeLines": 216, - "fileCategory": "code" - }, - { - "path": "scripts/stage-0-query.mjs", - "language": "javascript", - "sizeLines": 354, - "fileCategory": "code" - }, - { - "path": "scripts/test-full-compile.mjs", - "language": "javascript", - "sizeLines": 36, - "fileCategory": "code" - }, - { - "path": "scripts/test-synthesizer.mjs", - "language": "javascript", - "sizeLines": 14, - "fileCategory": "code" - }, - { - "path": "scripts/vendor-availability-probe.mjs", - "language": "javascript", - "sizeLines": 183, - "fileCategory": "code" - }, - { - "path": "scripts/vision-judge-workflow.mjs", - "language": "javascript", - "sizeLines": 168, - "fileCategory": "code" - }, - { - "path": "sidecar/package.json", - "language": "json", - "sizeLines": 16, - "fileCategory": "config" - }, - { - "path": "sidecar/src/agent-session.ts", - "language": "typescript", - "sizeLines": 124, - "fileCategory": "code" - }, - { - "path": "sidecar/src/main.ts", - "language": "typescript", - "sizeLines": 51, - "fileCategory": "code" - }, - { - "path": "sidecar/src/mcp-manager.ts", - "language": "typescript", - "sizeLines": 48, - "fileCategory": "code" - }, - { - "path": "sidecar/src/rpc-handler.ts", - "language": "typescript", - "sizeLines": 139, - "fileCategory": "code" - }, - { - "path": "sidecar/src/skill-loader.ts", - "language": "typescript", - "sizeLines": 71, - "fileCategory": "code" - }, - { - "path": "sidecar/src/weaver-scheduler.ts", - "language": "typescript", - "sizeLines": 64, - "fileCategory": "code" - }, - { - "path": "sidecar/tsconfig.json", - "language": "json", - "sizeLines": 16, - "fileCategory": "config" - }, - { - "path": "tests/agent-behavior-audit.ts", - "language": "typescript", - "sizeLines": 548, - "fileCategory": "code" - }, - { - "path": "tests/behaviors/chat-pipeline.test.ts", - "language": "typescript", - "sizeLines": 399, - "fileCategory": "code" - }, - { - "path": "tests/behaviors/waggle-journeys.test.ts", - "language": "typescript", - "sizeLines": 749, - "fileCategory": "code" - }, - { - "path": "tests/dock-app-title-consistency.test.ts", - "language": "typescript", - "sizeLines": 73, - "fileCategory": "code" - }, - { - "path": "tests/docker-compose-litellm-env.test.ts", - "language": "typescript", - "sizeLines": 94, - "fileCategory": "code" - }, - { - "path": "tests/e2e/boot-screen-skip.spec.ts", - "language": "typescript", - "sizeLines": 96, - "fileCategory": "code" - }, - { - "path": "tests/e2e/competitive-benchmarks.spec.ts", - "language": "typescript", - "sizeLines": 1132, - "fileCategory": "code" - }, - { - "path": "tests/e2e/failure-injection/network-drop.spec.ts", - "language": "typescript", - "sizeLines": 206, - "fileCategory": "code" - }, - { - "path": "tests/e2e/full-product-audit.spec.ts", - "language": "typescript", - "sizeLines": 335, - "fileCategory": "code" - }, - { - "path": "tests/e2e/full-wiring-audit.spec.ts", - "language": "typescript", - "sizeLines": 601, - "fileCategory": "code" - }, - { - "path": "tests/e2e/light-mode-polish.spec.ts", - "language": "typescript", - "sizeLines": 140, - "fileCategory": "code" - }, - { - "path": "tests/e2e/live-chat-flow.spec.ts", - "language": "typescript", - "sizeLines": 110, - "fileCategory": "code" - }, - { - "path": "tests/e2e/phase-ab-verification.spec.ts", - "language": "typescript", - "sizeLines": 261, - "fileCategory": "code" - }, - { - "path": "tests/e2e/phase8-visual.spec.ts", - "language": "typescript", - "sizeLines": 381, - "fileCategory": "code" - }, - { - "path": "tests/e2e/polish-verification.spec.ts", - "language": "typescript", - "sizeLines": 256, - "fileCategory": "code" - }, - { - "path": "tests/e2e/power-user-stress.spec.ts", - "language": "typescript", - "sizeLines": 486, - "fileCategory": "code" - }, - { - "path": "tests/e2e/room-parallel-agents.spec.ts", - "language": "typescript", - "sizeLines": 193, - "fileCategory": "code" - }, - { - "path": "tests/e2e/spawn-agent-flow.spec.ts", - "language": "typescript", - "sizeLines": 133, - "fileCategory": "code" - }, - { - "path": "tests/e2e/team-server.spec.ts", - "language": "typescript", - "sizeLines": 130, - "fileCategory": "code" - }, - { - "path": "tests/e2e/user-behavior.spec.ts", - "language": "typescript", - "sizeLines": 1075, - "fileCategory": "code" - }, - { - "path": "tests/e2e/user-journeys.spec.ts", - "language": "typescript", - "sizeLines": 595, - "fileCategory": "code" - }, - { - "path": "tests/e2e/waggle-complete.spec.ts", - "language": "typescript", - "sizeLines": 1114, - "fileCategory": "code" - }, - { - "path": "tests/hive-950-token-guard.test.ts", - "language": "typescript", - "sizeLines": 108, - "fileCategory": "code" - }, - { - "path": "tests/integration/m3-full-stack.test.ts", - "language": "typescript", - "sizeLines": 256, - "fileCategory": "code" - }, - { - "path": "tests/login-flow.spec.ts", - "language": "typescript", - "sizeLines": 46, - "fileCategory": "code" - }, - { - "path": "tests/oss-subtree-split.test.ts", - "language": "typescript", - "sizeLines": 146, - "fileCategory": "code" - }, - { - "path": "tests/placeholder-audit.test.ts", - "language": "typescript", - "sizeLines": 77, - "fileCategory": "code" - }, - { - "path": "tests/sidecar/mcp-manager.test.ts", - "language": "typescript", - "sizeLines": 61, - "fileCategory": "code" - }, - { - "path": "tests/sidecar/rpc-handler.test.ts", - "language": "typescript", - "sizeLines": 107, - "fileCategory": "code" - }, - { - "path": "tests/sidecar/skill-loader.test.ts", - "language": "typescript", - "sizeLines": 120, - "fileCategory": "code" - }, - { - "path": "tests/vision/_helpers.ts", - "language": "typescript", - "sizeLines": 135, - "fileCategory": "code" - }, - { - "path": "tests/vision/capture.spec.ts", - "language": "typescript", - "sizeLines": 207, - "fileCategory": "code" - }, - { - "path": "tests/vision/personas.spec.ts", - "language": "typescript", - "sizeLines": 198, - "fileCategory": "code" - }, - { - "path": "tests/vision/README.md", - "language": "markdown", - "sizeLines": 75, - "fileCategory": "docs" - }, - { - "path": "tests/visual/r2-uat-mega.spec.ts", - "language": "typescript", - "sizeLines": 219, - "fileCategory": "code" - }, - { - "path": "tests/visual/views.spec.ts", - "language": "typescript", - "sizeLines": 94, - "fileCategory": "code" - }, - { - "path": "tsconfig.base.json", - "language": "json", - "sizeLines": 24, - "fileCategory": "config" - }, - { - "path": "tsconfig.json", - "language": "json", - "sizeLines": 13, - "fileCategory": "config" - }, - { - "path": "vitest.aliases.ts", - "language": "typescript", - "sizeLines": 35, - "fileCategory": "code" - }, - { - "path": "vitest.config.ts", - "language": "typescript", - "sizeLines": 47, - "fileCategory": "code" - }, - { - "path": "vitest.infra-suites.ts", - "language": "typescript", - "sizeLines": 35, - "fileCategory": "code" - }, - { - "path": "vitest.infra.config.ts", - "language": "typescript", - "sizeLines": 29, - "fileCategory": "code" - }, - { - "path": "vitest.setup.ts", - "language": "typescript", - "sizeLines": 79, - "fileCategory": "code" - }, - { - "path": "Waggle_Competitive_Intelligence_Full_Landscape_March_2026.docx", - "language": "docx", - "sizeLines": 150, - "fileCategory": "code" - }, - { - "path": "waggle-cowork/claude-code-deep-dive.md", - "language": "markdown", - "sizeLines": 494, - "fileCategory": "docs" - }, - { - "path": "waggle-cowork/claude-code-source-analysis.md", - "language": "markdown", - "sizeLines": 184, - "fileCategory": "docs" - }, - { - "path": "waggle-cowork/system-prompt-comparison.md", - "language": "markdown", - "sizeLines": 337, - "fileCategory": "docs" - }, - { - "path": "waggle-cowork/waggle-os-improvement-plan.md", - "language": "markdown", - "sizeLines": 369, - "fileCategory": "docs" - }, - { - "path": "waggle-cowork/waggle-prompt-improvement-plan.md", - "language": "markdown", - "sizeLines": 550, - "fileCategory": "docs" - } - ], - "totalFiles": 2896, - "filteredByIgnore": 0, - "estimatedComplexity": "very-large", - "importMap": { - ".agents/skills/ax-agent-optimize/SKILL.md": [], - ".agents/skills/ax-agent/SKILL.md": [], - ".agents/skills/ax-ai/SKILL.md": [], - ".agents/skills/ax-flow/SKILL.md": [], - ".agents/skills/ax-gen/SKILL.md": [], - ".agents/skills/ax-gepa/SKILL.md": [], - ".agents/skills/ax-learn/SKILL.md": [], - ".agents/skills/ax-signature/SKILL.md": [], - ".agents/skills/ax/SKILL.md": [], - ".dockerignore": [], - ".env.example": [], - ".gitattributes": [], - ".github/sync.md": [], - ".github/workflows/ci.yml": [], - ".github/workflows/deploy-www.yml": [], - ".github/workflows/hive-mind-cli-cross-platform.yml": [], - ".github/workflows/mind-parity-check.yml": [], - ".github/workflows/release.yml": [], - ".github/workflows/sync-mind.yml": [], - ".github/workflows/tauri-build-pr.yml": [], - ".lovable/plan.md": [], - ".parity-allowlist": [], - ".understand-anything/.understandignore": [], - "app/components.json": [], - "app/icons/ICONS-README.txt": [], - "app/index.html": [], - "app/package.json": [], - "app/scripts/apply-signing-config.mjs": [], - "app/scripts/bundle-runtimes.test.ts": [ - "app/scripts/bundle-utils.ts" - ], - "app/scripts/bundle-runtimes.ts": [ - "app/scripts/bundle-utils.ts" - ], - "app/scripts/bundle-utils.ts": [], - "app/scripts/installer-config.test.ts": [ - "app/scripts/installer-config.ts" - ], - "app/scripts/installer-config.ts": [], - "app/scripts/sign-macos-adhoc.sh": [], - "app/scripts/sign-windows-pilot.ps1": [], - "app/scripts/signing-config.test.ts": [ - "app/scripts/signing-config.ts" - ], - "app/scripts/signing-config.ts": [], - "app/src-tauri/.cargo/config.toml": [], - "app/src-tauri/build.rs": [], - "app/src-tauri/capabilities/default.json": [], - "app/src-tauri/Cargo.toml": [], - "app/src-tauri/gen/schemas/acl-manifests.json": [], - "app/src-tauri/gen/schemas/capabilities.json": [], - "app/src-tauri/gen/schemas/desktop-schema.json": [], - "app/src-tauri/gen/schemas/windows-schema.json": [], - "app/src-tauri/icons/android/mipmap-anydpi-v26/ic_launcher.xml": [], - "app/src-tauri/icons/android/values/ic_launcher_background.xml": [], - "app/src-tauri/icons/icon.icns": [], - "app/src-tauri/nsis/installer.nsi": [], - "app/src-tauri/resources/.gitkeep": [], - "app/src-tauri/resources/native/.gitkeep": [], - "app/src-tauri/resources/native/onnxruntime/.gitkeep": [], - "app/src-tauri/src/commands/agent.rs": [ - "app/src-tauri/src/service.rs" - ], - "app/src-tauri/src/commands/http.rs": [], - "app/src-tauri/src/commands/memory.rs": [ - "app/src-tauri/src/commands/http.rs", - "app/src-tauri/src/service.rs" - ], - "app/src-tauri/src/commands/mod.rs": [ - "app/src-tauri/src/commands/agent.rs", - "app/src-tauri/src/commands/http.rs", - "app/src-tauri/src/commands/memory.rs", - "app/src-tauri/src/commands/onboarding.rs", - "app/src-tauri/src/commands/wiki.rs" - ], - "app/src-tauri/src/commands/onboarding.rs": [], - "app/src-tauri/src/commands/wiki.rs": [ - "app/src-tauri/src/commands/http.rs", - "app/src-tauri/src/service.rs" - ], - "app/src-tauri/src/lib.rs": [ - "app/src-tauri/src/commands/mod.rs", - "app/src-tauri/src/service.rs", - "app/src-tauri/src/tray.rs" - ], - "app/src-tauri/src/main.rs": [], - "app/src-tauri/src/service.rs": [], - "app/src-tauri/src/tray.rs": [], - "app/src-tauri/tauri.build-override.conf.json": [], - "app/src-tauri/tauri.conf.json": [], - "app/src-tauri/tauri.dev-override.conf.json": [], - "app/tailwind.config.ts": [], - "app/tests/auto-update.test.ts": [], - "app/tests/cockpit-agent-intelligence.test.ts": [], - "app/tests/e2e/chat.test.ts": [ - "app/tests/e2e/test-utils.ts" - ], - "app/tests/e2e/startup.test.ts": [ - "app/tests/e2e/test-utils.ts" - ], - "app/tests/e2e/test-utils.ts": [], - "app/tests/e2e/workspaces.test.ts": [ - "app/tests/e2e/test-utils.ts" - ], - "app/tsconfig.json": [], - "app/vite.config.ts": [], - "apps/browser-ext/background.js": [], - "apps/browser-ext/content.js": [], - "apps/browser-ext/manifest.json": [], - "apps/browser-ext/popup.html": [], - "apps/browser-ext/popup.js": [], - "apps/browser-ext/README.md": [], - "apps/web/.env.example": [], - "apps/web/components.json": [], - "apps/web/eslint.config.js": [], - "apps/web/index.html": [], - "apps/web/package.json": [], - "apps/web/playwright-fixture.ts": [], - "apps/web/playwright.config.ts": [], - "apps/web/postcss.config.js": [], - "apps/web/public/robots.txt": [], - "apps/web/src/App.tsx": [ - "apps/web/src/components/os/AppShell.tsx", - "apps/web/src/components/os/ErrorBoundary.tsx", - "apps/web/src/components/ui/sonner.tsx", - "apps/web/src/components/ui/toaster.tsx", - "apps/web/src/components/ui/tooltip.tsx", - "apps/web/src/pages/NotFound.tsx", - "apps/web/src/providers/InstallProvider.tsx", - "apps/web/src/providers/ServiceProvider.tsx", - "apps/web/src/providers/ThemeProvider.tsx", - "apps/web/src/providers/WaggleClerkProvider.tsx", - "apps/web/src/routes/index.ts" - ], - "apps/web/src/assets/personas/README.md": [], - "apps/web/src/boot-connect.ts": [ - "apps/web/src/lib/adapter.ts" - ], - "apps/web/src/components/NavLink.tsx": [ - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/os/apps/agents/AgentBuilder.tsx": [ - "apps/web/src/components/os/ModelSelector.tsx", - "apps/web/src/components/ui/approval-modal.tsx", - "apps/web/src/components/ui/input.tsx", - "apps/web/src/components/ui/stepper.tsx", - "apps/web/src/components/ui/textarea.tsx", - "apps/web/src/hooks/useProviders.ts", - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/risk-display.tsx", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/components/os/apps/agents/AgentCard.tsx": [ - "apps/web/src/components/os/apps/agents/types.ts", - "apps/web/src/components/ui/avatar.tsx", - "apps/web/src/lib/personas.ts" - ], - "apps/web/src/components/os/apps/agents/AgentCenterDetail.tsx": [ - "apps/web/src/components/ui/detail-drawer.tsx", - "apps/web/src/components/ui/status-badge.tsx", - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/agent-center-display.ts", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/components/os/apps/agents/AgentCenterRow.tsx": [ - "apps/web/src/components/ui/status-badge.tsx", - "apps/web/src/lib/agent-center-display.ts", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/components/os/apps/agents/AgentDetail.tsx": [ - "apps/web/src/components/os/apps/agents/types.ts", - "apps/web/src/components/ui/avatar.tsx", - "apps/web/src/components/ui/hint-tooltip.tsx", - "apps/web/src/lib/personas.ts" - ], - "apps/web/src/components/os/apps/agents/CreateAgentForm.tsx": [ - "apps/web/src/components/os/apps/agents/types.ts", - "apps/web/src/components/ui/input.tsx" - ], - "apps/web/src/components/os/apps/agents/CreateGroupForm.tsx": [ - "apps/web/src/components/os/apps/agents/types.ts", - "apps/web/src/components/ui/hint-tooltip.tsx", - "apps/web/src/components/ui/input.tsx" - ], - "apps/web/src/components/os/apps/agents/GroupCard.tsx": [ - "apps/web/src/components/os/apps/agents/types.ts" - ], - "apps/web/src/components/os/apps/agents/GroupDetail.tsx": [ - "apps/web/src/components/os/apps/agents/GroupExecutionPanel.tsx", - "apps/web/src/components/os/apps/agents/types.ts", - "apps/web/src/components/ui/avatar.tsx", - "apps/web/src/components/ui/input.tsx", - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/personas.ts" - ], - "apps/web/src/components/os/apps/agents/GroupExecutionPanel.tsx": [ - "apps/web/src/components/os/apps/agents/types.ts", - "apps/web/src/components/ui/avatar.tsx", - "apps/web/src/lib/personas.ts" - ], - "apps/web/src/components/os/apps/agents/TemplatesView.tsx": [ - "apps/web/src/components/os/apps/agents/AgentCard.tsx", - "apps/web/src/components/os/apps/agents/AgentDetail.tsx", - "apps/web/src/components/os/apps/agents/CreateAgentForm.tsx", - "apps/web/src/components/os/apps/agents/CreateGroupForm.tsx", - "apps/web/src/components/os/apps/agents/GroupCard.tsx", - "apps/web/src/components/os/apps/agents/GroupDetail.tsx", - "apps/web/src/components/os/apps/agents/types.ts", - "apps/web/src/components/ui/input.tsx", - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/personas.ts" - ], - "apps/web/src/components/os/apps/agents/types.ts": [], - "apps/web/src/components/os/apps/agents/WorkspacePickerDialog.tsx": [ - "apps/web/src/hooks/useFocusTrap.ts", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/components/os/apps/AgentsApp.tsx": [ - "apps/web/src/components/os/apps/agents/AgentBuilder.tsx", - "apps/web/src/components/os/apps/agents/AgentCenterDetail.tsx", - "apps/web/src/components/os/apps/agents/AgentCenterRow.tsx", - "apps/web/src/components/os/apps/agents/TemplatesView.tsx", - "apps/web/src/components/os/apps/agents/types.ts", - "apps/web/src/components/os/apps/agents/WorkspacePickerDialog.tsx", - "apps/web/src/components/ui/input.tsx", - "apps/web/src/hooks/use-toast.ts", - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/agent-center-display.ts", - "apps/web/src/lib/types.ts", - "apps/web/src/providers/ServiceProvider.tsx" - ], - "apps/web/src/components/os/apps/AllWorkspacesApp.test.tsx": [ - "apps/web/src/components/os/apps/AllWorkspacesApp.tsx", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/components/os/apps/AllWorkspacesApp.tsx": [ - "apps/web/src/components/os/overlays/CreateWorkspaceDialog.tsx", - "apps/web/src/components/os/warm/index.ts", - "apps/web/src/components/os/WorkspaceActionsMenu.tsx", - "apps/web/src/lib/types.ts", - "apps/web/src/providers/ShellContext.tsx" - ], - "apps/web/src/components/os/apps/ApprovalsApp.tsx": [ - "apps/web/src/components/os/apps/power/power-primitives.tsx", - "apps/web/src/components/ui/hint-tooltip.tsx", - "apps/web/src/hooks/use-toast.ts", - "apps/web/src/lib/adapter.ts" - ], - "apps/web/src/components/os/apps/ArtifactCenterApp.tsx": [ - "apps/web/src/components/ui/detail-drawer.tsx", - "apps/web/src/components/ui/input.tsx", - "apps/web/src/components/ui/status-badge.tsx", - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/types.ts", - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/os/apps/AutomationCenterApp.tsx": [ - "apps/web/src/components/os/apps/automations/AutomationBuilder.tsx", - "apps/web/src/components/os/apps/automations/AutomationLogList.tsx", - "apps/web/src/components/os/apps/automations/AutomationRow.tsx", - "apps/web/src/hooks/use-toast.ts", - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/app-deeplink.ts", - "apps/web/src/lib/automation-display.ts", - "apps/web/src/lib/types.ts", - "apps/web/src/providers/ServiceProvider.tsx" - ], - "apps/web/src/components/os/apps/automations/AutomationBuilder.tsx": [ - "apps/web/src/components/ui/approval-modal.tsx", - "apps/web/src/components/ui/input.tsx", - "apps/web/src/components/ui/stepper.tsx", - "apps/web/src/components/ui/textarea.tsx", - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/cron-presets.ts", - "apps/web/src/lib/risk-display.tsx", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/components/os/apps/automations/AutomationLogList.tsx": [ - "apps/web/src/components/ui/status-badge.tsx", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/components/os/apps/automations/AutomationRow.tsx": [ - "apps/web/src/components/ui/hint-tooltip.tsx", - "apps/web/src/components/ui/status-badge.tsx", - "apps/web/src/lib/automation-display.ts", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/components/os/apps/BackupApp.tsx": [ - "apps/web/src/lib/adapter.ts" - ], - "apps/web/src/components/os/apps/BenchmarkApp.test.tsx": [ - "apps/web/src/components/os/apps/BenchmarkApp.tsx" - ], - "apps/web/src/components/os/apps/BenchmarkApp.tsx": [], - "apps/web/src/components/os/apps/CapabilitiesApp.tsx": [ - "apps/web/src/components/os/apps/extend/InstallAuditPanel.tsx", - "apps/web/src/components/os/apps/skills/SkillBuilder.tsx", - "apps/web/src/components/os/apps/skills/SkillEditorDrawer.tsx", - "apps/web/src/components/os/apps/skills/SkillRow.tsx", - "apps/web/src/components/ui/hint-tooltip.tsx", - "apps/web/src/components/ui/input.tsx", - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/dedupe-packs.ts", - "apps/web/src/lib/skill-pack-display.ts", - "apps/web/src/lib/types.ts", - "apps/web/src/providers/ServiceProvider.tsx" - ], - "apps/web/src/components/os/apps/chat-blocks/ArtifactBlock.tsx": [ - "apps/web/src/lib/app-deeplink.ts", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/components/os/apps/chat-blocks/BlockRenderer.tsx": [ - "apps/web/src/components/os/apps/chat-blocks/ArtifactBlock.tsx", - "apps/web/src/components/os/apps/chat-blocks/ModelSwitchBlock.tsx", - "apps/web/src/components/os/apps/chat-blocks/TextBlock.tsx", - "apps/web/src/components/os/apps/chat-blocks/ToolUseBlock.tsx", - "apps/web/src/components/os/warm/index.ts", - "apps/web/src/lib/frame-source.ts", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/components/os/apps/chat-blocks/capability-request-parser.test.ts": [ - "apps/web/src/components/os/apps/chat-blocks/capability-request-parser.ts" - ], - "apps/web/src/components/os/apps/chat-blocks/capability-request-parser.ts": [ - "apps/web/src/components/os/apps/chat-blocks/CapabilityRequestCard.tsx" - ], - "apps/web/src/components/os/apps/chat-blocks/CapabilityRequestCard.tsx": [ - "apps/web/src/components/ui/input.tsx", - "apps/web/src/hooks/use-toast.ts", - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/install-store.ts", - "apps/web/src/providers/InstallProvider.tsx" - ], - "apps/web/src/components/os/apps/chat-blocks/ChatWorkCanvas.tsx": [ - "apps/web/src/lib/app-deeplink.ts", - "apps/web/src/lib/render-markdown.ts", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/components/os/apps/chat-blocks/index.ts": [], - "apps/web/src/components/os/apps/chat-blocks/ModelSwitchBlock.tsx": [ - "apps/web/src/lib/types.ts" - ], - "apps/web/src/components/os/apps/chat-blocks/StepBlock.tsx": [ - "apps/web/src/lib/types.ts" - ], - "apps/web/src/components/os/apps/chat-blocks/TextBlock.test.tsx": [ - "apps/web/src/components/os/apps/chat-blocks/capability-request-parser.ts" - ], - "apps/web/src/components/os/apps/chat-blocks/TextBlock.tsx": [ - "apps/web/src/components/os/apps/chat-blocks/capability-request-parser.ts", - "apps/web/src/components/os/apps/chat-blocks/CapabilityRequestCard.tsx", - "apps/web/src/lib/render-markdown.ts", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/components/os/apps/chat-blocks/ToolUseBlock.tsx": [ - "apps/web/src/lib/types.ts" - ], - "apps/web/src/components/os/apps/ChatApp.tsx": [ - "apps/web/src/components/os/apps/chat-blocks/ChatWorkCanvas.tsx", - "apps/web/src/components/os/apps/chat-blocks/index.ts", - "apps/web/src/components/os/warm/index.ts", - "apps/web/src/components/os/WorkspaceBriefing.tsx", - "apps/web/src/components/ui/avatar.tsx", - "apps/web/src/components/ui/hint-tooltip.tsx", - "apps/web/src/components/ui/scroll-area.tsx", - "apps/web/src/hooks/use-toast.ts", - "apps/web/src/hooks/useContainerWidth.ts", - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/chat-header-layout.ts", - "apps/web/src/lib/memory-recall-toast.ts", - "apps/web/src/lib/personas.ts", - "apps/web/src/lib/platform.ts", - "apps/web/src/lib/risk-display.tsx", - "apps/web/src/lib/suggested-actions.ts", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/components/os/apps/ChatWindowInstance.tsx": [ - "apps/web/src/components/os/apps/ChatApp.tsx", - "apps/web/src/hooks/use-toast.ts", - "apps/web/src/hooks/useChat.ts", - "apps/web/src/hooks/useSessions.ts", - "apps/web/src/lib/adapter.ts" - ], - "apps/web/src/components/os/apps/cockpit/ComplianceDashboard.tsx": [ - "apps/web/src/components/os/apps/cockpit/ComplianceTemplateModal.tsx", - "apps/web/src/components/ui/hint-tooltip.tsx", - "apps/web/src/hooks/useRevalidateOnError.ts", - "apps/web/src/lib/adapter.ts" - ], - "apps/web/src/components/os/apps/cockpit/ComplianceTemplateModal.tsx": [ - "apps/web/src/hooks/useFocusTrap.ts", - "apps/web/src/lib/adapter.ts" - ], - "apps/web/src/components/os/apps/CockpitApp.tsx": [ - "apps/web/src/components/os/apps/cockpit/ComplianceDashboard.tsx", - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/cron-presets.ts", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/components/os/apps/connectors/brand-identity.ts": [], - "apps/web/src/components/os/apps/connectors/BrandTile.tsx": [ - "apps/web/src/components/os/apps/connectors/brand-identity.ts" - ], - "apps/web/src/components/os/apps/connectors/ConnectorCard.tsx": [ - "apps/web/src/components/os/apps/connectors/brand-identity.ts", - "apps/web/src/components/os/apps/connectors/BrandTile.tsx", - "apps/web/src/components/os/apps/extend/InstallAuditPanel.tsx", - "apps/web/src/components/ui/hint-tooltip.tsx", - "apps/web/src/components/ui/input.tsx", - "apps/web/src/components/ui/status-badge.tsx", - "apps/web/src/lib/adapter.ts" - ], - "apps/web/src/components/os/apps/connectors/mcp-registry.ts": [], - "apps/web/src/components/os/apps/connectors/McpCatalog.tsx": [ - "apps/web/src/components/os/apps/connectors/brand-identity.ts", - "apps/web/src/components/os/apps/connectors/mcp-registry.ts", - "apps/web/src/components/os/apps/connectors/McpServerCard.tsx", - "apps/web/src/components/ui/input.tsx", - "apps/web/src/lib/persona-display.ts" - ], - "apps/web/src/components/os/apps/connectors/McpServerCard.tsx": [ - "apps/web/src/components/os/apps/connectors/brand-identity.ts", - "apps/web/src/components/os/apps/connectors/BrandTile.tsx", - "apps/web/src/components/os/apps/connectors/mcp-registry.ts", - "apps/web/src/components/ui/hint-tooltip.tsx", - "apps/web/src/components/ui/tooltip.tsx" - ], - "apps/web/src/components/os/apps/ConnectorsApp.tsx": [ - "apps/web/src/components/os/apps/connectors/ConnectorCard.tsx", - "apps/web/src/components/os/apps/extend/InstallAuditPanel.tsx", - "apps/web/src/components/ui/approval-modal.tsx", - "apps/web/src/hooks/use-toast.ts", - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/persona-display.ts", - "apps/web/src/lib/risk-display.tsx", - "apps/web/src/providers/ServiceProvider.tsx" - ], - "apps/web/src/components/os/apps/DashboardApp.tsx": [ - "apps/web/src/components/ui/avatar.tsx", - "apps/web/src/components/ui/hint-tooltip.tsx", - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/brain-health.ts", - "apps/web/src/lib/personas.ts", - "apps/web/src/lib/types.ts", - "apps/web/src/lib/workspace-groups.ts" - ], - "apps/web/src/components/os/apps/EventsApp.tsx": [ - "apps/web/src/components/ui/hint-tooltip.tsx", - "apps/web/src/lib/decode-entities.ts", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/components/os/apps/extend/AgentSearchBox.tsx": [ - "apps/web/src/components/os/warm/AskBar.tsx", - "apps/web/src/components/ui/status-badge.tsx", - "apps/web/src/hooks/use-toast.ts", - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/agent-search.ts", - "apps/web/src/lib/install-store.ts", - "apps/web/src/providers/InstallProvider.tsx" - ], - "apps/web/src/components/os/apps/extend/ExtensionCard.tsx": [ - "apps/web/src/components/ui/input.tsx", - "apps/web/src/components/ui/status-badge.tsx", - "apps/web/src/lib/extension-catalog.ts", - "apps/web/src/lib/install-store.ts", - "apps/web/src/providers/InstallProvider.tsx" - ], - "apps/web/src/components/os/apps/extend/InstallAuditPanel.tsx": [ - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/risk-display.tsx" - ], - "apps/web/src/components/os/apps/files/file-utils.ts": [ - "apps/web/src/lib/types.ts" - ], - "apps/web/src/components/os/apps/files/FileActions.tsx": [ - "apps/web/src/components/os/apps/files/file-utils.ts", - "apps/web/src/components/ui/hint-tooltip.tsx", - "apps/web/src/components/ui/input.tsx", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/components/os/apps/files/FilePreview.tsx": [ - "apps/web/src/components/os/apps/files/file-utils.ts", - "apps/web/src/components/os/apps/files/SyntaxPreview.tsx", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/components/os/apps/files/files-tabs.test.ts": [ - "apps/web/src/components/os/apps/files/files-tabs.ts" - ], - "apps/web/src/components/os/apps/files/files-tabs.ts": [ - "apps/web/src/lib/types.ts" - ], - "apps/web/src/components/os/apps/files/FileTree.tsx": [ - "apps/web/src/components/os/apps/files/file-utils.ts", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/components/os/apps/files/FileUploadZone.tsx": [], - "apps/web/src/components/os/apps/files/SyntaxPreview.tsx": [], - "apps/web/src/components/os/apps/files/WorkspaceRail.tsx": [ - "apps/web/src/components/ui/hint-tooltip.tsx", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/components/os/apps/FilesApp.tsx": [ - "apps/web/src/components/os/apps/files/file-utils.ts", - "apps/web/src/components/os/apps/files/FileActions.tsx", - "apps/web/src/components/os/apps/files/FilePreview.tsx", - "apps/web/src/components/os/apps/files/FileTree.tsx", - "apps/web/src/components/os/apps/files/FileUploadZone.tsx", - "apps/web/src/components/os/apps/files/WorkspaceRail.tsx", - "apps/web/src/components/ui/hint-tooltip.tsx", - "apps/web/src/hooks/use-toast.ts", - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/app-deeplink.ts", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/components/os/apps/FilesAppTabs.tsx": [ - "apps/web/src/components/os/apps/files/file-utils.ts", - "apps/web/src/components/os/apps/files/files-tabs.ts", - "apps/web/src/components/os/apps/FilesApp.tsx", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/components/os/apps/HomeCockpit.tsx": [ - "apps/web/src/components/os/warm/index.ts", - "apps/web/src/components/os/WorkspaceActionsMenu.tsx", - "apps/web/src/hooks/use-toast.ts", - "apps/web/src/hooks/useOfflineStatus.ts", - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/types.ts", - "apps/web/src/providers/ServiceProvider.tsx" - ], - "apps/web/src/components/os/apps/LauncherApp.test.tsx": [ - "apps/web/src/components/os/apps/LauncherApp.tsx" - ], - "apps/web/src/components/os/apps/LauncherApp.tsx": [ - "apps/web/src/components/ui/badge.tsx", - "apps/web/src/components/ui/button.tsx", - "apps/web/src/components/ui/scroll-area.tsx", - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/launcher-prompt-args.ts" - ], - "apps/web/src/components/os/apps/MarketplaceApp.tsx": [ - "apps/web/src/components/os/apps/extend/AgentSearchBox.tsx", - "apps/web/src/components/os/apps/extend/ExtensionCard.tsx", - "apps/web/src/components/os/apps/extend/InstallAuditPanel.tsx", - "apps/web/src/components/ui/approval-modal.tsx", - "apps/web/src/components/ui/input.tsx", - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/dedupe-packs.ts", - "apps/web/src/lib/extension-catalog.ts", - "apps/web/src/lib/risk-display.tsx", - "apps/web/src/providers/InstallProvider.tsx", - "apps/web/src/providers/ServiceProvider.tsx" - ], - "apps/web/src/components/os/apps/mcp/AddCustomMcpForm.tsx": [ - "apps/web/src/components/ui/input.tsx", - "apps/web/src/components/ui/textarea.tsx", - "apps/web/src/lib/adapter.ts" - ], - "apps/web/src/components/os/apps/mcp/InstalledMcpList.tsx": [ - "apps/web/src/components/os/apps/mcp/mcp-hub-types.ts", - "apps/web/src/components/ui/hint-tooltip.tsx", - "apps/web/src/components/ui/status-badge.tsx", - "apps/web/src/lib/adapter.ts" - ], - "apps/web/src/components/os/apps/mcp/mcp-hub-types.ts": [ - "apps/web/src/components/ui/status-badge.tsx" - ], - "apps/web/src/components/os/apps/mcp/McpScopeDialog.tsx": [ - "apps/web/src/hooks/useFocusTrap.ts", - "apps/web/src/lib/adapter.ts" - ], - "apps/web/src/components/os/apps/MCPHubApp.tsx": [ - "apps/web/src/components/os/apps/connectors/McpCatalog.tsx", - "apps/web/src/components/os/apps/extend/InstallAuditPanel.tsx", - "apps/web/src/components/os/apps/mcp/AddCustomMcpForm.tsx", - "apps/web/src/components/os/apps/mcp/InstalledMcpList.tsx", - "apps/web/src/components/os/apps/mcp/mcp-hub-types.ts", - "apps/web/src/components/os/apps/mcp/McpScopeDialog.tsx", - "apps/web/src/components/ui/approval-modal.tsx", - "apps/web/src/components/ui/hint-tooltip.tsx", - "apps/web/src/hooks/use-toast.ts", - "apps/web/src/hooks/useRevalidateOnError.ts", - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/risk-display.tsx", - "apps/web/src/providers/ServiceProvider.tsx" - ], - "apps/web/src/components/os/apps/memory/EvolutionTab.test.tsx": [ - "apps/web/src/components/os/apps/memory/EvolutionTab.tsx", - "apps/web/src/components/ui/tooltip.tsx" - ], - "apps/web/src/components/os/apps/memory/EvolutionTab.tsx": [ - "apps/web/src/components/ui/hint-tooltip.tsx", - "apps/web/src/lib/adapter.ts" - ], - "apps/web/src/components/os/apps/memory/HarvestTab.tsx": [ - "apps/web/src/components/ui/hint-tooltip.tsx", - "apps/web/src/lib/adapter.ts" - ], - "apps/web/src/components/os/apps/memory/ImportReminderBanner.tsx": [ - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/import-reminder-state.ts" - ], - "apps/web/src/components/os/apps/memory/KnowledgeGraphViewer.tsx": [ - "apps/web/src/components/ui/hint-tooltip.tsx", - "apps/web/src/components/ui/input.tsx", - "apps/web/src/lib/kg-export.ts", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/components/os/apps/memory/MemoryCard.tsx": [ - "apps/web/src/components/ui/confidence-badge.tsx", - "apps/web/src/components/ui/status-badge.tsx", - "apps/web/src/lib/harvest-kind-map.ts", - "apps/web/src/lib/types.ts", - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/os/apps/memory/MemoryCenterTab.tsx": [ - "apps/web/src/components/os/apps/memory/MemoryCard.tsx", - "apps/web/src/components/ui/confidence-badge.tsx", - "apps/web/src/components/ui/detail-drawer.tsx", - "apps/web/src/components/ui/evidence-panel.tsx", - "apps/web/src/components/ui/input.tsx", - "apps/web/src/components/ui/status-badge.tsx", - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/app-deeplink.ts", - "apps/web/src/lib/harvest-kind-map.ts", - "apps/web/src/lib/render-markdown.ts", - "apps/web/src/lib/types.ts", - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/os/apps/memory/MemoryTrustManage.tsx": [ - "apps/web/src/components/os/warm/index.ts", - "apps/web/src/components/ui/detail-drawer.tsx", - "apps/web/src/components/ui/evidence-panel.tsx", - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/app-deeplink.ts", - "apps/web/src/lib/frame-source.ts", - "apps/web/src/lib/render-markdown.ts", - "apps/web/src/lib/types.ts", - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/os/apps/memory/MemoryTrustWhy.tsx": [ - "apps/web/src/components/os/warm/index.ts", - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/components/os/apps/memory/TimelineTab.tsx": [ - "apps/web/src/components/os/ContextMenu.tsx", - "apps/web/src/components/ui/hint-tooltip.tsx", - "apps/web/src/components/ui/input.tsx", - "apps/web/src/lib/render-markdown.ts", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/components/os/apps/memory/WeaverPanel.tsx": [ - "apps/web/src/lib/adapter.ts" - ], - "apps/web/src/components/os/apps/memory/WikiTab.tsx": [ - "apps/web/src/components/ui/hint-tooltip.tsx", - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/render-markdown.ts" - ], - "apps/web/src/components/os/apps/MemoryCenterApp.tsx": [ - "apps/web/src/components/os/apps/memory/EvolutionTab.tsx", - "apps/web/src/components/os/apps/memory/HarvestTab.tsx", - "apps/web/src/components/os/apps/memory/ImportReminderBanner.tsx", - "apps/web/src/components/os/apps/memory/KnowledgeGraphViewer.tsx", - "apps/web/src/components/os/apps/memory/MemoryCenterTab.tsx", - "apps/web/src/components/os/apps/memory/TimelineTab.tsx", - "apps/web/src/components/os/apps/memory/WeaverPanel.tsx", - "apps/web/src/components/os/apps/memory/WikiTab.tsx", - "apps/web/src/components/os/apps/MemoryTrust.tsx", - "apps/web/src/components/ui/hint-tooltip.tsx", - "apps/web/src/hooks/useOnboarding.ts", - "apps/web/src/lib/types.ts", - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/os/apps/MemoryTrust.tsx": [ - "apps/web/src/components/os/apps/memory/MemoryTrustManage.tsx", - "apps/web/src/components/os/apps/memory/MemoryTrustWhy.tsx", - "apps/web/src/components/os/warm/index.ts", - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/os/apps/MissionControlApp.tsx": [ - "apps/web/src/components/ui/button.tsx", - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/components/os/apps/PaymentSuccessApp.tsx": [ - "apps/web/src/hooks/useBilling.ts" - ], - "apps/web/src/components/os/apps/PlatformApp.test.tsx": [ - "apps/web/src/components/os/apps/PlatformApp.tsx" - ], - "apps/web/src/components/os/apps/PlatformApp.tsx": [], - "apps/web/src/components/os/apps/power/power-primitives.test.tsx": [ - "apps/web/src/components/os/apps/power/power-primitives.tsx" - ], - "apps/web/src/components/os/apps/power/power-primitives.tsx": [ - "apps/web/src/components/os/warm/tones.ts", - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/os/apps/RoomApp.test.tsx": [ - "apps/web/src/components/os/apps/RoomApp.tsx", - "apps/web/src/lib/room-state-reducer.ts" - ], - "apps/web/src/components/os/apps/RoomApp.tsx": [ - "apps/web/src/hooks/useRoomState.ts" - ], - "apps/web/src/components/os/apps/SettingsApp.tsx": [ - "apps/web/src/components/os/billing/PlanCards.tsx", - "apps/web/src/components/os/LockedFeature.tsx", - "apps/web/src/components/os/model-gate/ModelGate.tsx", - "apps/web/src/components/os/ModelPilotCard.tsx", - "apps/web/src/components/os/ModelSelector.tsx", - "apps/web/src/components/os/overlays/EraseDataDialog.tsx", - "apps/web/src/components/os/settings/CoverageCompassCard.tsx", - "apps/web/src/components/os/settings/TelegramDigestCard.tsx", - "apps/web/src/components/ui/hint-tooltip.tsx", - "apps/web/src/components/ui/input.tsx", - "apps/web/src/hooks/use-toast.ts", - "apps/web/src/hooks/useBilling.ts", - "apps/web/src/hooks/useDeveloperMode.ts", - "apps/web/src/hooks/useDockLabels.ts", - "apps/web/src/hooks/useFeatureGate.ts", - "apps/web/src/hooks/useOnboarding.ts", - "apps/web/src/hooks/useProviders.ts", - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/dock-tiers.ts", - "apps/web/src/lib/login-briefing.ts", - "apps/web/src/lib/settings-tier-filter.ts", - "apps/web/src/lib/shape-selection.ts", - "apps/web/src/providers/ThemeProvider.tsx" - ], - "apps/web/src/components/os/apps/skills/SkillBuilder.tsx": [ - "apps/web/src/components/ui/input.tsx", - "apps/web/src/components/ui/stepper.tsx", - "apps/web/src/components/ui/textarea.tsx", - "apps/web/src/lib/adapter.ts" - ], - "apps/web/src/components/os/apps/skills/SkillEditorDrawer.tsx": [ - "apps/web/src/components/ui/detail-drawer.tsx", - "apps/web/src/components/ui/textarea.tsx", - "apps/web/src/lib/adapter.ts" - ], - "apps/web/src/components/os/apps/skills/SkillRow.tsx": [ - "apps/web/src/components/ui/status-badge.tsx", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/components/os/apps/StorageAndFilesApp.test.tsx": [ - "apps/web/src/components/os/apps/StorageAndFilesApp.tsx", - "apps/web/src/components/ui/tooltip.tsx", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/components/os/apps/StorageAndFilesApp.tsx": [ - "apps/web/src/components/os/apps/FilesAppTabs.tsx", - "apps/web/src/components/os/apps/StorageApp.tsx", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/components/os/apps/StorageApp.tsx": [ - "apps/web/src/components/os/apps/files/file-utils.ts", - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/components/os/apps/TeamGovernanceApp.tsx": [], - "apps/web/src/components/os/apps/TelemetryApp.tsx": [ - "apps/web/src/components/os/apps/power/power-primitives.tsx", - "apps/web/src/hooks/use-toast.ts", - "apps/web/src/lib/adapter.ts" - ], - "apps/web/src/components/os/apps/TimelineApp.tsx": [ - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/timeline-events.ts", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/components/os/apps/UserProfileApp.test.tsx": [ - "apps/web/src/components/os/apps/UserProfileApp.tsx" - ], - "apps/web/src/components/os/apps/UserProfileApp.tsx": [ - "apps/web/src/components/ui/input.tsx", - "apps/web/src/lib/adapter.ts" - ], - "apps/web/src/components/os/apps/VaultApp.tsx": [ - "apps/web/src/components/ui/hint-tooltip.tsx", - "apps/web/src/components/ui/input.tsx", - "apps/web/src/hooks/use-toast.ts", - "apps/web/src/lib/adapter.ts" - ], - "apps/web/src/components/os/apps/VoiceApp.tsx": [], - "apps/web/src/components/os/apps/WaggleDanceApp.tsx": [ - "apps/web/src/components/ui/badge.tsx", - "apps/web/src/components/ui/button.tsx", - "apps/web/src/components/ui/scroll-area.tsx", - "apps/web/src/hooks/useWaggleDance.ts", - "apps/web/src/lib/types.ts", - "apps/web/src/lib/waggle-signals.ts" - ], - "apps/web/src/components/os/apps/workspace/TasksTab.tsx": [ - "apps/web/src/hooks/use-toast.ts", - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/components/os/apps/WorkspaceDesktopApp.tsx": [ - "apps/web/src/components/os/apps/memory/MemoryCenterTab.tsx", - "apps/web/src/components/os/apps/workspace/TasksTab.tsx", - "apps/web/src/components/os/warm/index.ts", - "apps/web/src/components/os/WorkspaceActionsMenu.tsx", - "apps/web/src/hooks/useRevalidateOnError.ts", - "apps/web/src/hooks/useRoomState.ts", - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/frame-source.ts", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/components/os/AppShell.tsx": [ - "apps/web/src/components/os/BootScreen.tsx", - "apps/web/src/components/os/ChatHost.tsx", - "apps/web/src/components/os/ErrorBoundary.tsx", - "apps/web/src/components/os/overlays/CommandCenter.tsx", - "apps/web/src/components/os/overlays/ContextRail.tsx", - "apps/web/src/components/os/overlays/CreateWorkspaceDialog.tsx", - "apps/web/src/components/os/overlays/KeyboardShortcutsHelp.tsx", - "apps/web/src/components/os/overlays/LoginBriefing.tsx", - "apps/web/src/components/os/overlays/NotificationInbox.tsx", - "apps/web/src/components/os/overlays/OnboardingTooltips.tsx", - "apps/web/src/components/os/overlays/OnboardingWizard.tsx", - "apps/web/src/components/os/overlays/PersonaSwitcher.tsx", - "apps/web/src/components/os/overlays/SpawnAgentDialog.tsx", - "apps/web/src/components/os/overlays/TrialExpiredModal.tsx", - "apps/web/src/components/os/overlays/UpgradeModal.tsx", - "apps/web/src/components/os/overlays/WorkspaceSwitcher.tsx", - "apps/web/src/components/os/Sidebar.tsx", - "apps/web/src/components/os/StatusBar.tsx", - "apps/web/src/hooks/use-toast.ts", - "apps/web/src/hooks/useChatWidgetState.ts", - "apps/web/src/hooks/useDockLabels.ts", - "apps/web/src/hooks/useDockNudge.ts", - "apps/web/src/hooks/useKeyboardShortcuts.ts", - "apps/web/src/hooks/useWaggleDance.ts", - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/app-deeplink.ts", - "apps/web/src/lib/command-catalog.ts", - "apps/web/src/lib/dock-tiers.ts", - "apps/web/src/lib/login-briefing.ts", - "apps/web/src/lib/routes.ts", - "apps/web/src/lib/window-state-migration.ts", - "apps/web/src/providers/ShellContext.tsx" - ], - "apps/web/src/components/os/auth/AccountlessNotice.tsx": [], - "apps/web/src/components/os/auth/AuthBrandPanel.tsx": [], - "apps/web/src/components/os/auth/AuthScreen.tsx": [ - "apps/web/src/components/os/auth/AuthBrandPanel.tsx" - ], - "apps/web/src/components/os/auth/ClerkAuthForm.tsx": [ - "apps/web/src/components/os/auth/EnterpriseCTA.tsx" - ], - "apps/web/src/components/os/auth/EnterpriseCTA.tsx": [], - "apps/web/src/components/os/billing/PlanCards.tsx": [], - "apps/web/src/components/os/BootScreen.tsx": [ - "apps/web/src/hooks/useIsLightTheme.ts" - ], - "apps/web/src/components/os/ChatHost.tsx": [ - "apps/web/src/components/os/apps/ChatWindowInstance.tsx", - "apps/web/src/hooks/useChatWidgetState.ts", - "apps/web/src/providers/ShellContext.tsx" - ], - "apps/web/src/components/os/ContextMenu.tsx": [ - "apps/web/src/lib/context-menu-index.ts" - ], - "apps/web/src/components/os/ErrorBoundary.tsx": [], - "apps/web/src/components/os/LockedFeature.tsx": [], - "apps/web/src/components/os/model-gate/ModelGate.test.tsx": [ - "apps/web/src/components/os/model-gate/ModelGate.tsx" - ], - "apps/web/src/components/os/model-gate/ModelGate.tsx": [ - "apps/web/src/components/ui/input.tsx", - "apps/web/src/hooks/useProviders.ts", - "apps/web/src/lib/adapter.ts" - ], - "apps/web/src/components/os/model-gate/NoModelBanner.test.tsx": [ - "apps/web/src/components/os/model-gate/NoModelBanner.tsx" - ], - "apps/web/src/components/os/model-gate/NoModelBanner.tsx": [ - "apps/web/src/hooks/useHasWorkingModel.ts" - ], - "apps/web/src/components/os/ModelPilotCard.tsx": [ - "apps/web/src/components/ui/hint-tooltip.tsx", - "apps/web/src/hooks/useProviders.ts" - ], - "apps/web/src/components/os/ModelSelector.tsx": [ - "apps/web/src/hooks/useProviders.ts" - ], - "apps/web/src/components/os/overlays/CommandCenter.tsx": [ - "apps/web/src/components/ui/command.tsx", - "apps/web/src/components/ui/dialog.tsx", - "apps/web/src/hooks/use-toast.ts", - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/command-catalog.ts", - "apps/web/src/lib/fuzzy-match.ts", - "apps/web/src/lib/platform.ts", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/components/os/overlays/ContextRail.tsx": [ - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/context-rail-fetch.ts" - ], - "apps/web/src/components/os/overlays/CreateWorkspaceDialog.tsx": [ - "apps/web/src/components/os/LockedFeature.tsx", - "apps/web/src/components/ui/avatar.tsx", - "apps/web/src/components/ui/hint-tooltip.tsx", - "apps/web/src/components/ui/input.tsx", - "apps/web/src/hooks/useFeatureGate.ts", - "apps/web/src/hooks/useWorkspaces.ts", - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/browse-breadcrumbs.ts", - "apps/web/src/lib/personas.ts", - "apps/web/src/lib/types.ts", - "apps/web/src/lib/workspace-groups.ts" - ], - "apps/web/src/components/os/overlays/EraseDataDialog.tsx": [ - "apps/web/src/lib/adapter.ts" - ], - "apps/web/src/components/os/overlays/KeyboardShortcutsHelp.tsx": [], - "apps/web/src/components/os/overlays/LoginBriefing.tsx": [ - "apps/web/src/components/ui/hint-tooltip.tsx", - "apps/web/src/hooks/useRevalidateOnError.ts", - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/briefing-highlights.ts", - "apps/web/src/lib/login-briefing-brag.ts", - "apps/web/src/lib/types.ts", - "apps/web/src/providers/ServiceProvider.tsx" - ], - "apps/web/src/components/os/overlays/NotificationInbox.tsx": [ - "apps/web/src/components/ui/hint-tooltip.tsx", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/components/os/overlays/onboarding/constants.ts": [ - "apps/web/src/components/os/overlays/onboarding/types.ts", - "apps/web/src/lib/dock-tiers.ts" - ], - "apps/web/src/components/os/overlays/onboarding/curated-templates.test.ts": [ - "apps/web/src/components/os/overlays/onboarding/constants.ts" - ], - "apps/web/src/components/os/overlays/onboarding/FirstTaskStep.test.tsx": [ - "apps/web/src/components/os/overlays/onboarding/FirstTaskStep.tsx" - ], - "apps/web/src/components/os/overlays/onboarding/FirstTaskStep.tsx": [ - "apps/web/src/components/os/overlays/onboarding/constants.ts", - "apps/web/src/components/os/overlays/onboarding/types.ts" - ], - "apps/web/src/components/os/overlays/onboarding/ImportStep.tsx": [ - "apps/web/src/components/os/overlays/onboarding/constants.ts", - "apps/web/src/components/os/overlays/onboarding/types.ts", - "apps/web/src/components/ui/confidence-badge.tsx", - "apps/web/src/lib/harvest-kind-map.ts" - ], - "apps/web/src/components/os/overlays/onboarding/index.ts": [], - "apps/web/src/components/os/overlays/onboarding/ModelGateStep.test.tsx": [ - "apps/web/src/components/os/overlays/onboarding/ModelGateStep.tsx" - ], - "apps/web/src/components/os/overlays/onboarding/ModelGateStep.tsx": [ - "apps/web/src/components/os/model-gate/ModelGate.tsx", - "apps/web/src/components/os/overlays/onboarding/constants.ts", - "apps/web/src/components/os/overlays/onboarding/types.ts", - "apps/web/src/hooks/useHasWorkingModel.ts" - ], - "apps/web/src/components/os/overlays/onboarding/ReadyStep.tsx": [ - "apps/web/src/components/os/overlays/onboarding/constants.ts", - "apps/web/src/components/os/overlays/onboarding/types.ts", - "apps/web/src/hooks/useIsLightTheme.ts" - ], - "apps/web/src/components/os/overlays/onboarding/TemplateStep.test.tsx": [ - "apps/web/src/components/os/overlays/onboarding/TemplateStep.tsx" - ], - "apps/web/src/components/os/overlays/onboarding/TemplateStep.tsx": [ - "apps/web/src/components/os/overlays/onboarding/constants.ts", - "apps/web/src/components/os/overlays/onboarding/types.ts" - ], - "apps/web/src/components/os/overlays/onboarding/types.ts": [ - "apps/web/src/lib/dock-tiers.ts", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/components/os/overlays/onboarding/WelcomeStep.tsx": [ - "apps/web/src/components/os/overlays/onboarding/constants.ts", - "apps/web/src/components/os/overlays/onboarding/types.ts", - "apps/web/src/hooks/useIsLightTheme.ts" - ], - "apps/web/src/components/os/overlays/onboarding/WhoAreYouStep.tsx": [ - "apps/web/src/components/os/overlays/onboarding/constants.ts", - "apps/web/src/components/os/overlays/onboarding/types.ts", - "apps/web/src/lib/onboarding-profile.ts" - ], - "apps/web/src/components/os/overlays/onboarding/WorkspaceCreateStep.tsx": [ - "apps/web/src/components/os/overlays/onboarding/constants.ts", - "apps/web/src/components/os/overlays/onboarding/types.ts" - ], - "apps/web/src/components/os/overlays/OnboardingTooltips.tsx": [], - "apps/web/src/components/os/overlays/OnboardingWizard.tsx": [ - "apps/web/src/components/os/overlays/onboarding/constants.ts", - "apps/web/src/components/os/overlays/onboarding/index.ts", - "apps/web/src/hooks/useOfflineStatus.ts", - "apps/web/src/hooks/useOnboarding.ts", - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/posthog.ts", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/components/os/overlays/PersonaSwitcher.tsx": [ - "apps/web/src/components/ui/avatar.tsx", - "apps/web/src/components/ui/tooltip.tsx", - "apps/web/src/hooks/useFeatureGate.ts", - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/persona-tier.ts", - "apps/web/src/lib/persona-tooltip.ts", - "apps/web/src/lib/personas.ts" - ], - "apps/web/src/components/os/overlays/SpawnAgentDialog.tsx": [ - "apps/web/src/components/ui/button.tsx", - "apps/web/src/components/ui/dialog.tsx", - "apps/web/src/components/ui/input.tsx", - "apps/web/src/components/ui/label.tsx", - "apps/web/src/components/ui/textarea.tsx", - "apps/web/src/components/ui/tooltip.tsx", - "apps/web/src/hooks/use-toast.ts", - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/personas.ts", - "apps/web/src/lib/spawn-agent-helpers.ts", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/components/os/overlays/TrialExpiredModal.tsx": [ - "apps/web/src/hooks/useFocusTrap.ts" - ], - "apps/web/src/components/os/overlays/UpgradeModal.tsx": [ - "apps/web/src/hooks/useFocusTrap.ts" - ], - "apps/web/src/components/os/overlays/WorkspaceSwitcher.tsx": [ - "apps/web/src/components/os/WorkspaceActionsMenu.tsx", - "apps/web/src/components/ui/avatar.tsx", - "apps/web/src/lib/personas.ts", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/components/os/settings/CoverageCompassCard.tsx": [], - "apps/web/src/components/os/settings/TelegramDigestCard.tsx": [ - "apps/web/src/components/ui/input.tsx", - "apps/web/src/hooks/use-toast.ts", - "apps/web/src/lib/adapter.ts" - ], - "apps/web/src/components/os/Sidebar.tsx": [ - "apps/web/src/lib/platform.ts" - ], - "apps/web/src/components/os/StatusBar.tsx": [ - "apps/web/src/components/ui/hint-tooltip.tsx", - "apps/web/src/hooks/useDeveloperMode.ts", - "apps/web/src/hooks/useIsLightTheme.ts", - "apps/web/src/lib/adapter.ts" - ], - "apps/web/src/components/os/warm/ActivityStream.tsx": [ - "apps/web/src/components/os/warm/DotLive.tsx", - "apps/web/src/components/os/warm/ProvenanceLine.tsx", - "apps/web/src/components/os/warm/tones.ts", - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/os/warm/AskBar.tsx": [ - "apps/web/src/lib/platform.ts", - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/os/warm/ConfidenceRing.tsx": [ - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/os/warm/DotLive.tsx": [ - "apps/web/src/components/os/warm/tones.ts", - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/os/warm/HexAvatar.tsx": [ - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/os/warm/HexCheckTile.tsx": [ - "apps/web/src/components/os/warm/tones.ts", - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/os/warm/IconTile.tsx": [ - "apps/web/src/components/os/warm/tones.ts", - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/os/warm/index.ts": [], - "apps/web/src/components/os/warm/InlineApprovalCard.tsx": [ - "apps/web/src/components/ui/approval-modal.tsx", - "apps/web/src/lib/risk-display.tsx", - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/os/warm/ModelPill.tsx": [ - "apps/web/src/components/os/warm/DotLive.tsx", - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/os/warm/OvernightHero.tsx": [ - "apps/web/src/components/os/warm/DotLive.tsx", - "apps/web/src/components/os/warm/RunChip.tsx", - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/os/warm/ProvenanceLine.tsx": [ - "apps/web/src/components/ui/evidence-chip.tsx", - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/os/warm/RunChip.tsx": [ - "apps/web/src/components/os/warm/DotLive.tsx", - "apps/web/src/components/os/warm/tones.ts", - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/os/warm/SectionLabel.tsx": [ - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/os/warm/StreakChip.tsx": [ - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/os/warm/tones.ts": [], - "apps/web/src/components/os/WorkspaceActionsMenu.tsx": [ - "apps/web/src/components/os/ContextMenu.tsx", - "apps/web/src/hooks/use-toast.ts", - "apps/web/src/lib/adapter.ts", - "apps/web/src/providers/ShellContext.tsx" - ], - "apps/web/src/components/os/WorkspaceBriefing.tsx": [ - "apps/web/src/components/ui/hint-tooltip.tsx", - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/persona-display.ts", - "apps/web/src/lib/skill-recommendations.ts", - "apps/web/src/lib/types.ts", - "apps/web/src/lib/workspace-briefing-state.ts" - ], - "apps/web/src/components/ui/accordion.tsx": [ - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/ui/alert-dialog.tsx": [ - "apps/web/src/components/ui/button.tsx", - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/ui/alert.tsx": [ - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/ui/approval-modal.tsx": [ - "apps/web/src/components/ui/alert-dialog.tsx", - "apps/web/src/lib/risk-display.tsx" - ], - "apps/web/src/components/ui/aspect-ratio.tsx": [], - "apps/web/src/components/ui/avatar.tsx": [ - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/ui/badge.tsx": [ - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/ui/breadcrumb.tsx": [ - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/ui/button.tsx": [ - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/ui/calendar.tsx": [ - "apps/web/src/components/ui/button.tsx", - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/ui/card.tsx": [ - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/ui/carousel.tsx": [ - "apps/web/src/components/ui/button.tsx", - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/ui/chart.tsx": [ - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/ui/checkbox.tsx": [ - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/ui/collapsible.tsx": [], - "apps/web/src/components/ui/command.tsx": [ - "apps/web/src/components/ui/dialog.tsx", - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/ui/confidence-badge.tsx": [ - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/ui/context-menu.tsx": [ - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/ui/detail-drawer.tsx": [ - "apps/web/src/components/ui/sheet.tsx" - ], - "apps/web/src/components/ui/dialog.tsx": [ - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/ui/drawer.tsx": [ - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/ui/dropdown-menu.tsx": [ - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/ui/evidence-chip.tsx": [ - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/ui/evidence-panel.tsx": [ - "apps/web/src/components/ui/evidence-chip.tsx", - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/ui/form.tsx": [ - "apps/web/src/components/ui/label.tsx", - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/ui/hint-tooltip.tsx": [ - "apps/web/src/components/ui/tooltip.tsx" - ], - "apps/web/src/components/ui/hover-card.tsx": [ - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/ui/input-otp.tsx": [ - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/ui/input.tsx": [ - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/ui/label.tsx": [ - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/ui/menubar.tsx": [ - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/ui/navigation-menu.tsx": [ - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/ui/pagination.tsx": [ - "apps/web/src/components/ui/button.tsx", - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/ui/popover.tsx": [ - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/ui/progress.tsx": [ - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/ui/radio-group.tsx": [ - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/ui/resizable.tsx": [ - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/ui/scroll-area.tsx": [ - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/ui/select.tsx": [ - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/ui/separator.tsx": [ - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/ui/sheet.tsx": [ - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/ui/sidebar.tsx": [ - "apps/web/src/components/ui/button.tsx", - "apps/web/src/components/ui/input.tsx", - "apps/web/src/components/ui/separator.tsx", - "apps/web/src/components/ui/sheet.tsx", - "apps/web/src/components/ui/skeleton.tsx", - "apps/web/src/components/ui/tooltip.tsx", - "apps/web/src/hooks/use-mobile.tsx", - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/ui/skeleton.tsx": [ - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/ui/slider.tsx": [ - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/ui/sonner.tsx": [], - "apps/web/src/components/ui/status-badge.tsx": [ - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/ui/stepper.tsx": [ - "apps/web/src/hooks/useFocusTrap.ts" - ], - "apps/web/src/components/ui/switch.tsx": [ - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/ui/table.tsx": [ - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/ui/tabs.tsx": [ - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/ui/textarea.tsx": [ - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/ui/toast.tsx": [ - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/ui/toaster.tsx": [ - "apps/web/src/components/ui/toast.tsx", - "apps/web/src/hooks/use-toast.ts" - ], - "apps/web/src/components/ui/toggle-group.tsx": [ - "apps/web/src/components/ui/toggle.tsx", - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/ui/toggle.tsx": [ - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/ui/tooltip.tsx": [ - "apps/web/src/lib/utils.ts" - ], - "apps/web/src/components/ui/use-toast.ts": [ - "apps/web/src/hooks/use-toast.ts" - ], - "apps/web/src/hooks/use-mobile.tsx": [], - "apps/web/src/hooks/use-toast.ts": [ - "apps/web/src/components/ui/toast.tsx" - ], - "apps/web/src/hooks/useAgentStatus.ts": [ - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/hooks/useBilling.ts": [ - "apps/web/src/hooks/useRevalidateOnError.ts", - "apps/web/src/lib/adapter.ts" - ], - "apps/web/src/hooks/useChat.ts": [ - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/hooks/useChatWidgetState.ts": [], - "apps/web/src/hooks/useContainerWidth.ts": [], - "apps/web/src/hooks/useDeveloperMode.test.ts": [ - "apps/web/src/hooks/useDeveloperMode.ts" - ], - "apps/web/src/hooks/useDeveloperMode.ts": [], - "apps/web/src/hooks/useDockLabels.ts": [ - "apps/web/src/lib/dock-labels.ts" - ], - "apps/web/src/hooks/useDockNudge.ts": [ - "apps/web/src/hooks/useDockLabels.ts", - "apps/web/src/lib/dock-nudge.ts" - ], - "apps/web/src/hooks/useEvents.ts": [ - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/hooks/useFeatureGate.ts": [ - "apps/web/src/hooks/useOnboarding.ts", - "apps/web/src/lib/feature-gates.ts" - ], - "apps/web/src/hooks/useFocusTrap.test.tsx": [ - "apps/web/src/hooks/useFocusTrap.ts" - ], - "apps/web/src/hooks/useFocusTrap.ts": [], - "apps/web/src/hooks/useHasWorkingModel.test.ts": [ - "apps/web/src/hooks/useHasWorkingModel.ts" - ], - "apps/web/src/hooks/useHasWorkingModel.ts": [ - "apps/web/src/hooks/useProviders.ts", - "apps/web/src/lib/adapter.ts" - ], - "apps/web/src/hooks/useIsLightTheme.ts": [], - "apps/web/src/hooks/useKeyboardShortcuts.ts": [ - "apps/web/src/lib/dock-tiers.ts" - ], - "apps/web/src/hooks/useKnowledgeGraph.ts": [ - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/hooks/useMemory.ts": [ - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/hooks/useNotifications.ts": [ - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/hooks/useOfflineStatus.ts": [ - "apps/web/src/lib/adapter.ts" - ], - "apps/web/src/hooks/useOnboarding.ts": [ - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/dock-tiers.ts", - "apps/web/src/lib/tauri-bindings.ts" - ], - "apps/web/src/hooks/useOverlayState.ts": [ - "apps/web/src/lib/login-briefing.ts" - ], - "apps/web/src/hooks/useProviders.ts": [ - "apps/web/src/lib/adapter.ts" - ], - "apps/web/src/hooks/useRevalidateOnError.test.ts": [ - "apps/web/src/hooks/useRevalidateOnError.ts" - ], - "apps/web/src/hooks/useRevalidateOnError.ts": [], - "apps/web/src/hooks/useRoomState.ts": [ - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/room-state-reducer.ts" - ], - "apps/web/src/hooks/useSessions.ts": [ - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/hooks/useWaggleDance.ts": [ - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/hooks/useWorkspaces.ts": [ - "apps/web/src/hooks/useRevalidateOnError.ts", - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/index.css": [], - "apps/web/src/lib/activity-labels.test.ts": [ - "apps/web/src/lib/activity-labels.ts" - ], - "apps/web/src/lib/activity-labels.ts": [], - "apps/web/src/lib/adapter.authgate.test.ts": [ - "apps/web/src/lib/adapter.ts" - ], - "apps/web/src/lib/adapter.createCron.test.ts": [ - "apps/web/src/lib/adapter.ts" - ], - "apps/web/src/lib/adapter.eraseData.test.ts": [ - "apps/web/src/lib/adapter.ts" - ], - "apps/web/src/lib/adapter.files.test.ts": [ - "apps/web/src/lib/adapter.ts" - ], - "apps/web/src/lib/adapter.memoryStats.test.ts": [ - "apps/web/src/lib/adapter.ts" - ], - "apps/web/src/lib/adapter.permissions.test.ts": [ - "apps/web/src/lib/adapter.ts" - ], - "apps/web/src/lib/adapter.spawnAgent.test.ts": [ - "apps/web/src/lib/adapter.ts" - ], - "apps/web/src/lib/adapter.sse.test.ts": [ - "apps/web/src/lib/adapter.ts" - ], - "apps/web/src/lib/adapter.startTrial.test.ts": [ - "apps/web/src/lib/adapter.ts" - ], - "apps/web/src/lib/adapter.tauri-branch.test.ts": [ - "apps/web/src/lib/adapter.ts" - ], - "apps/web/src/lib/adapter.ts": [ - "apps/web/src/lib/agent-search.ts", - "apps/web/src/lib/fetch-utils.ts", - "apps/web/src/lib/tauri-bindings.ts", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/lib/agent-center-display.test.ts": [ - "apps/web/src/lib/agent-center-display.ts", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/lib/agent-center-display.ts": [ - "apps/web/src/components/ui/status-badge.tsx", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/lib/agent-search.test.ts": [ - "apps/web/src/lib/agent-search.ts" - ], - "apps/web/src/lib/agent-search.ts": [ - "apps/web/src/lib/install-store.ts" - ], - "apps/web/src/lib/app-deeplink.ts": [], - "apps/web/src/lib/automation-display.test.ts": [ - "apps/web/src/lib/automation-display.ts", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/lib/automation-display.ts": [ - "apps/web/src/components/ui/status-badge.tsx", - "apps/web/src/lib/cron-presets.ts", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/lib/brain-health.test.ts": [ - "apps/web/src/lib/brain-health.ts" - ], - "apps/web/src/lib/brain-health.ts": [], - "apps/web/src/lib/briefing-highlights.test.ts": [ - "apps/web/src/lib/briefing-highlights.ts" - ], - "apps/web/src/lib/briefing-highlights.ts": [], - "apps/web/src/lib/browse-breadcrumbs.test.ts": [ - "apps/web/src/lib/browse-breadcrumbs.ts" - ], - "apps/web/src/lib/browse-breadcrumbs.ts": [], - "apps/web/src/lib/chat-header-layout.test.ts": [ - "apps/web/src/lib/chat-header-layout.ts" - ], - "apps/web/src/lib/chat-header-layout.ts": [], - "apps/web/src/lib/clerk.ts": [], - "apps/web/src/lib/command-catalog.ts": [], - "apps/web/src/lib/context-menu-index.test.ts": [ - "apps/web/src/lib/context-menu-index.ts" - ], - "apps/web/src/lib/context-menu-index.ts": [], - "apps/web/src/lib/context-rail-fetch.test.ts": [ - "apps/web/src/lib/context-rail-fetch.ts", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/lib/context-rail-fetch.ts": [ - "apps/web/src/lib/types.ts" - ], - "apps/web/src/lib/cron-presets.test.ts": [ - "apps/web/src/lib/cron-presets.ts" - ], - "apps/web/src/lib/cron-presets.ts": [], - "apps/web/src/lib/decode-entities.ts": [], - "apps/web/src/lib/dedupe-packs.test.ts": [ - "apps/web/src/lib/dedupe-packs.ts", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/lib/dedupe-packs.ts": [ - "apps/web/src/lib/types.ts" - ], - "apps/web/src/lib/dock-labels.test.ts": [ - "apps/web/src/lib/dock-labels.ts" - ], - "apps/web/src/lib/dock-labels.ts": [], - "apps/web/src/lib/dock-nudge.test.ts": [ - "apps/web/src/lib/dock-nudge.ts" - ], - "apps/web/src/lib/dock-nudge.ts": [], - "apps/web/src/lib/dock-tiers.ts": [], - "apps/web/src/lib/extension-catalog.test.ts": [ - "apps/web/src/lib/extension-catalog.ts", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/lib/extension-catalog.ts": [ - "apps/web/src/lib/types.ts" - ], - "apps/web/src/lib/feature-gates.ts": [ - "apps/web/src/lib/dock-tiers.ts" - ], - "apps/web/src/lib/fetch-utils.ts": [], - "apps/web/src/lib/frame-source.ts": [], - "apps/web/src/lib/fuzzy-match.ts": [], - "apps/web/src/lib/harvest-kind-map.ts": [], - "apps/web/src/lib/import-reminder-state.test.ts": [ - "apps/web/src/lib/import-reminder-state.ts" - ], - "apps/web/src/lib/import-reminder-state.ts": [], - "apps/web/src/lib/install-store.test.ts": [ - "apps/web/src/lib/install-store.ts" - ], - "apps/web/src/lib/install-store.ts": [], - "apps/web/src/lib/kg-export.test.ts": [ - "apps/web/src/lib/kg-export.ts" - ], - "apps/web/src/lib/kg-export.ts": [], - "apps/web/src/lib/launcher-prompt-args.test.ts": [ - "apps/web/src/lib/launcher-prompt-args.ts" - ], - "apps/web/src/lib/launcher-prompt-args.ts": [], - "apps/web/src/lib/login-briefing-brag.test.ts": [ - "apps/web/src/lib/login-briefing-brag.ts" - ], - "apps/web/src/lib/login-briefing-brag.ts": [], - "apps/web/src/lib/login-briefing.test.ts": [ - "apps/web/src/lib/login-briefing.ts" - ], - "apps/web/src/lib/login-briefing.ts": [], - "apps/web/src/lib/memory-recall-toast.test.ts": [ - "apps/web/src/lib/memory-recall-toast.ts" - ], - "apps/web/src/lib/memory-recall-toast.ts": [], - "apps/web/src/lib/modal-drag.test.ts": [ - "apps/web/src/lib/modal-drag.ts" - ], - "apps/web/src/lib/modal-drag.ts": [], - "apps/web/src/lib/onboarding-profile.test.ts": [ - "apps/web/src/lib/onboarding-profile.ts" - ], - "apps/web/src/lib/onboarding-profile.ts": [], - "apps/web/src/lib/onboarding-skip.test.ts": [ - "apps/web/src/lib/onboarding-skip.ts" - ], - "apps/web/src/lib/onboarding-skip.ts": [], - "apps/web/src/lib/onboarding-tier-filter.test.ts": [ - "apps/web/src/components/os/overlays/onboarding/constants.ts", - "apps/web/src/lib/onboarding-tier-filter.ts" - ], - "apps/web/src/lib/onboarding-tier-filter.ts": [ - "apps/web/src/components/os/overlays/onboarding/types.ts", - "apps/web/src/lib/dock-tiers.ts" - ], - "apps/web/src/lib/persona-display.test.ts": [ - "apps/web/src/lib/persona-display.ts" - ], - "apps/web/src/lib/persona-display.ts": [], - "apps/web/src/lib/persona-tier.test.ts": [ - "apps/web/src/lib/persona-tier.ts" - ], - "apps/web/src/lib/persona-tier.ts": [], - "apps/web/src/lib/persona-tooltip.test.ts": [ - "apps/web/src/lib/persona-tooltip.ts" - ], - "apps/web/src/lib/persona-tooltip.ts": [], - "apps/web/src/lib/personas.ts": [], - "apps/web/src/lib/platform.ts": [], - "apps/web/src/lib/posthog.test.ts": [], - "apps/web/src/lib/posthog.ts": [], - "apps/web/src/lib/providers.ts": [], - "apps/web/src/lib/render-markdown.test.ts": [ - "apps/web/src/lib/render-markdown.ts" - ], - "apps/web/src/lib/render-markdown.ts": [], - "apps/web/src/lib/risk-display.tsx": [], - "apps/web/src/lib/room-state-reducer.test.ts": [ - "apps/web/src/lib/room-state-reducer.ts" - ], - "apps/web/src/lib/room-state-reducer.ts": [], - "apps/web/src/lib/routes.ts": [ - "apps/web/src/lib/dock-tiers.ts" - ], - "apps/web/src/lib/settings-tier-filter.test.ts": [ - "apps/web/src/lib/settings-tier-filter.ts" - ], - "apps/web/src/lib/settings-tier-filter.ts": [ - "apps/web/src/lib/dock-tiers.ts" - ], - "apps/web/src/lib/shape-selection.test.ts": [ - "apps/web/src/lib/shape-selection.ts" - ], - "apps/web/src/lib/shape-selection.ts": [], - "apps/web/src/lib/skill-pack-display.test.ts": [ - "apps/web/src/lib/skill-pack-display.ts" - ], - "apps/web/src/lib/skill-pack-display.ts": [], - "apps/web/src/lib/skill-recommendations.test.ts": [ - "apps/web/src/lib/skill-recommendations.ts" - ], - "apps/web/src/lib/skill-recommendations.ts": [], - "apps/web/src/lib/spawn-agent-helpers.test.ts": [ - "apps/web/src/lib/spawn-agent-helpers.ts" - ], - "apps/web/src/lib/spawn-agent-helpers.ts": [], - "apps/web/src/lib/suggested-actions.test.ts": [ - "apps/web/src/lib/suggested-actions.ts" - ], - "apps/web/src/lib/suggested-actions.ts": [], - "apps/web/src/lib/tauri-bindings.test.ts": [ - "apps/web/src/lib/tauri-bindings.ts" - ], - "apps/web/src/lib/tauri-bindings.ts": [], - "apps/web/src/lib/tiers.test.ts": [], - "apps/web/src/lib/timeline-events.test.ts": [ - "apps/web/src/lib/timeline-events.ts" - ], - "apps/web/src/lib/timeline-events.ts": [ - "apps/web/src/lib/types.ts" - ], - "apps/web/src/lib/types.ts": [], - "apps/web/src/lib/utils.ts": [], - "apps/web/src/lib/waggle-signals.test.ts": [ - "apps/web/src/lib/waggle-signals.ts" - ], - "apps/web/src/lib/waggle-signals.ts": [], - "apps/web/src/lib/window-state-migration.ts": [ - "apps/web/src/hooks/useChatWidgetState.ts", - "apps/web/src/lib/routes.ts" - ], - "apps/web/src/lib/workspace-briefing-state.test.ts": [ - "apps/web/src/lib/workspace-briefing-state.ts" - ], - "apps/web/src/lib/workspace-briefing-state.ts": [], - "apps/web/src/lib/workspace-groups.ts": [], - "apps/web/src/main.tsx": [ - "apps/web/src/App.tsx", - "apps/web/src/boot-connect.ts", - "apps/web/src/index.css", - "apps/web/src/lib/posthog.ts", - "apps/web/src/providers/ThemeProvider.tsx" - ], - "apps/web/src/pages/NotFound.tsx": [ - "apps/web/src/lib/platform.ts" - ], - "apps/web/src/providers/InstallProvider.tsx": [ - "apps/web/src/hooks/use-toast.ts", - "apps/web/src/hooks/useRevalidateOnError.ts", - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/extension-catalog.ts", - "apps/web/src/lib/install-store.ts", - "apps/web/src/providers/ServiceProvider.tsx" - ], - "apps/web/src/providers/ServiceProvider.tsx": [ - "apps/web/src/hooks/useRevalidateOnError.ts", - "apps/web/src/lib/adapter.ts" - ], - "apps/web/src/providers/ShellContext.tsx": [ - "apps/web/src/components/os/overlays/ContextRail.tsx", - "apps/web/src/hooks/useAgentStatus.ts", - "apps/web/src/hooks/useNotifications.ts", - "apps/web/src/hooks/useOfflineStatus.ts", - "apps/web/src/hooks/useOnboarding.ts", - "apps/web/src/hooks/useOverlayState.ts", - "apps/web/src/hooks/useRevalidateOnError.ts", - "apps/web/src/hooks/useWorkspaces.ts", - "apps/web/src/lib/adapter.ts", - "apps/web/src/lib/dock-tiers.ts" - ], - "apps/web/src/providers/ThemeProvider.tsx": [], - "apps/web/src/providers/WaggleClerkProvider.tsx": [ - "apps/web/src/lib/clerk.ts", - "apps/web/src/providers/ThemeProvider.tsx" - ], - "apps/web/src/routes/AgentsRoute.tsx": [ - "apps/web/src/components/os/apps/AgentsApp.tsx", - "apps/web/src/providers/ShellContext.tsx", - "apps/web/src/routes/SurfaceBoundary.tsx" - ], - "apps/web/src/routes/ApprovalsRoute.tsx": [ - "apps/web/src/components/os/apps/ApprovalsApp.tsx", - "apps/web/src/routes/SurfaceBoundary.tsx" - ], - "apps/web/src/routes/ArtifactsRoute.tsx": [ - "apps/web/src/components/os/apps/ArtifactCenterApp.tsx", - "apps/web/src/providers/ShellContext.tsx", - "apps/web/src/routes/SurfaceBoundary.tsx" - ], - "apps/web/src/routes/AuthRoute.tsx": [ - "apps/web/src/components/os/auth/AccountlessNotice.tsx", - "apps/web/src/components/os/auth/AuthScreen.tsx", - "apps/web/src/components/os/auth/ClerkAuthForm.tsx", - "apps/web/src/lib/clerk.ts" - ], - "apps/web/src/routes/AutomationsRoute.tsx": [ - "apps/web/src/components/os/apps/AutomationCenterApp.tsx", - "apps/web/src/lib/app-deeplink.ts", - "apps/web/src/routes/SurfaceBoundary.tsx" - ], - "apps/web/src/routes/BenchmarkRoute.tsx": [ - "apps/web/src/components/os/apps/BenchmarkApp.tsx", - "apps/web/src/routes/SurfaceBoundary.tsx" - ], - "apps/web/src/routes/ConnectorsRoute.tsx": [ - "apps/web/src/components/os/apps/ConnectorsApp.tsx", - "apps/web/src/providers/ShellContext.tsx", - "apps/web/src/routes/SurfaceBoundary.tsx" - ], - "apps/web/src/routes/EventsRoute.tsx": [ - "apps/web/src/components/os/apps/EventsApp.tsx", - "apps/web/src/hooks/useEvents.ts", - "apps/web/src/lib/adapter.ts", - "apps/web/src/providers/ShellContext.tsx", - "apps/web/src/routes/SurfaceBoundary.tsx" - ], - "apps/web/src/routes/FilesRoute.tsx": [ - "apps/web/src/components/os/apps/StorageAndFilesApp.tsx", - "apps/web/src/providers/ShellContext.tsx", - "apps/web/src/routes/SurfaceBoundary.tsx" - ], - "apps/web/src/routes/HomeRoute.tsx": [ - "apps/web/src/components/os/apps/HomeCockpit.tsx", - "apps/web/src/components/os/model-gate/NoModelBanner.tsx", - "apps/web/src/lib/routes.ts", - "apps/web/src/providers/ShellContext.tsx", - "apps/web/src/routes/SurfaceBoundary.tsx" - ], - "apps/web/src/routes/index.ts": [], - "apps/web/src/routes/LauncherRoute.tsx": [ - "apps/web/src/components/os/apps/LauncherApp.tsx", - "apps/web/src/providers/ShellContext.tsx", - "apps/web/src/routes/SurfaceBoundary.tsx" - ], - "apps/web/src/routes/MarketplaceRoute.tsx": [ - "apps/web/src/components/os/apps/MarketplaceApp.tsx", - "apps/web/src/routes/SurfaceBoundary.tsx" - ], - "apps/web/src/routes/McpsRoute.tsx": [ - "apps/web/src/components/os/apps/MCPHubApp.tsx", - "apps/web/src/providers/ShellContext.tsx", - "apps/web/src/routes/SurfaceBoundary.tsx" - ], - "apps/web/src/routes/MemoryRoute.tsx": [ - "apps/web/src/components/os/apps/MemoryCenterApp.tsx", - "apps/web/src/hooks/useKnowledgeGraph.ts", - "apps/web/src/hooks/useMemory.ts", - "apps/web/src/lib/app-deeplink.ts", - "apps/web/src/providers/ShellContext.tsx", - "apps/web/src/routes/SurfaceBoundary.tsx" - ], - "apps/web/src/routes/MissionControlRoute.tsx": [ - "apps/web/src/components/os/apps/CockpitApp.tsx", - "apps/web/src/routes/SurfaceBoundary.tsx" - ], - "apps/web/src/routes/PaymentSuccessRoute.tsx": [ - "apps/web/src/components/os/apps/PaymentSuccessApp.tsx", - "apps/web/src/routes/SurfaceBoundary.tsx" - ], - "apps/web/src/routes/PlatformRoute.tsx": [ - "apps/web/src/components/os/apps/PlatformApp.tsx", - "apps/web/src/routes/SurfaceBoundary.tsx" - ], - "apps/web/src/routes/ProfileRoute.tsx": [ - "apps/web/src/components/os/apps/UserProfileApp.tsx", - "apps/web/src/routes/SurfaceBoundary.tsx" - ], - "apps/web/src/routes/RoomRoute.tsx": [ - "apps/web/src/components/os/apps/RoomApp.tsx", - "apps/web/src/providers/ShellContext.tsx", - "apps/web/src/routes/SurfaceBoundary.tsx" - ], - "apps/web/src/routes/SettingsRoute.tsx": [ - "apps/web/src/components/os/apps/SettingsApp.tsx", - "apps/web/src/routes/SurfaceBoundary.tsx" - ], - "apps/web/src/routes/SkillsRoute.tsx": [ - "apps/web/src/components/os/apps/CapabilitiesApp.tsx", - "apps/web/src/routes/SurfaceBoundary.tsx" - ], - "apps/web/src/routes/SurfaceBoundary.tsx": [ - "apps/web/src/components/os/ErrorBoundary.tsx" - ], - "apps/web/src/routes/TeamRoute.tsx": [ - "apps/web/src/components/os/apps/TeamGovernanceApp.tsx", - "apps/web/src/routes/SurfaceBoundary.tsx" - ], - "apps/web/src/routes/TimelineRoute.tsx": [ - "apps/web/src/components/os/apps/TimelineApp.tsx", - "apps/web/src/providers/ShellContext.tsx", - "apps/web/src/routes/SurfaceBoundary.tsx" - ], - "apps/web/src/routes/UsageRoute.tsx": [ - "apps/web/src/components/os/apps/TelemetryApp.tsx", - "apps/web/src/routes/SurfaceBoundary.tsx" - ], - "apps/web/src/routes/VaultRoute.tsx": [ - "apps/web/src/components/os/apps/VaultApp.tsx", - "apps/web/src/routes/SurfaceBoundary.tsx" - ], - "apps/web/src/routes/WaggleDanceRoute.tsx": [ - "apps/web/src/components/os/apps/WaggleDanceApp.tsx", - "apps/web/src/routes/SurfaceBoundary.tsx" - ], - "apps/web/src/routes/WorkspaceRoute.tsx": [ - "apps/web/src/components/os/apps/WorkspaceDesktopApp.tsx", - "apps/web/src/components/os/ChatHost.tsx", - "apps/web/src/providers/ShellContext.tsx", - "apps/web/src/routes/SurfaceBoundary.tsx" - ], - "apps/web/src/routes/WorkspacesRoute.tsx": [ - "apps/web/src/components/os/apps/AllWorkspacesApp.tsx", - "apps/web/src/lib/routes.ts", - "apps/web/src/providers/ShellContext.tsx", - "apps/web/src/routes/SurfaceBoundary.tsx" - ], - "apps/web/src/test/chat-artifact-block.test.tsx": [ - "apps/web/src/components/os/apps/chat-blocks/ArtifactBlock.tsx", - "apps/web/src/components/os/apps/chat-blocks/BlockRenderer.tsx", - "apps/web/src/lib/app-deeplink.ts", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/test/chat-work-canvas.test.tsx": [ - "apps/web/src/components/os/apps/chat-blocks/ChatWorkCanvas.tsx", - "apps/web/src/components/os/apps/chat-blocks/index.ts", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/test/example.test.ts": [], - "apps/web/src/test/file-utils-path.test.ts": [ - "apps/web/src/components/os/apps/files/file-utils.ts" - ], - "apps/web/src/test/files-deeplink.test.tsx": [ - "apps/web/src/components/os/apps/FilesApp.tsx", - "apps/web/src/components/ui/tooltip.tsx", - "apps/web/src/lib/app-deeplink.ts" - ], - "apps/web/src/test/light-mode-tokens.test.ts": [], - "apps/web/src/test/p1a-chat-state.test.tsx": [ - "apps/web/src/components/os/apps/WorkspaceDesktopApp.tsx", - "apps/web/src/hooks/useChatWidgetState.ts" - ], - "apps/web/src/test/p1a-routes.test.ts": [ - "apps/web/src/lib/dock-tiers.ts", - "apps/web/src/lib/routes.ts" - ], - "apps/web/src/test/p1a-window-migration.test.ts": [ - "apps/web/src/hooks/useChatWidgetState.ts", - "apps/web/src/lib/window-state-migration.ts" - ], - "apps/web/src/test/p1a-workspace-route.test.tsx": [ - "apps/web/src/routes/WorkspaceRoute.tsx" - ], - "apps/web/src/test/p1b-authgate-surfaces.test.tsx": [ - "apps/web/src/hooks/useRevalidateOnError.ts" - ], - "apps/web/src/test/p2-home-desktop.test.tsx": [ - "apps/web/src/lib/app-deeplink.ts" - ], - "apps/web/src/test/p2-onboarding-forcewizard.test.ts": [], - "apps/web/src/test/p3-memory-center-app.test.tsx": [ - "apps/web/src/components/ui/tooltip.tsx", - "apps/web/src/lib/app-deeplink.ts" - ], - "apps/web/src/test/p3-two-mind-memory.test.tsx": [ - "apps/web/src/lib/app-deeplink.ts", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/test/p4-onboarding-status.test.ts": [], - "apps/web/src/test/p7-a5-approval-card-risk.test.tsx": [ - "apps/web/src/lib/risk-display.tsx" - ], - "apps/web/src/test/p7-a6-approval-gating.test.tsx": [ - "apps/web/src/components/ui/approval-modal.tsx", - "apps/web/src/lib/risk-display.tsx" - ], - "apps/web/src/test/p7-a7-install-risk.test.tsx": [ - "apps/web/src/components/os/apps/MarketplaceApp.tsx", - "apps/web/src/lib/risk-display.tsx" - ], - "apps/web/src/test/p7-b1-approvals-error.test.tsx": [ - "apps/web/src/components/os/apps/ApprovalsApp.tsx", - "apps/web/src/components/ui/tooltip.tsx" - ], - "apps/web/src/test/p7-b2-room-state.test.ts": [ - "apps/web/src/hooks/useRoomState.ts" - ], - "apps/web/src/test/p7-b3-command-center.test.tsx": [ - "apps/web/src/components/os/ErrorBoundary.tsx", - "apps/web/src/components/os/overlays/CommandCenter.tsx" - ], - "apps/web/src/test/p7-b4-files-error.test.tsx": [ - "apps/web/src/components/os/apps/FilesApp.tsx", - "apps/web/src/components/ui/tooltip.tsx" - ], - "apps/web/src/test/p7-b5-error-threading.test.tsx": [ - "apps/web/src/components/ui/tooltip.tsx" - ], - "apps/web/src/test/p7-issue17-trust-source.test.tsx": [ - "apps/web/src/components/os/apps/MarketplaceApp.tsx", - "apps/web/src/components/ui/approval-modal.tsx", - "apps/web/src/lib/risk-display.tsx" - ], - "apps/web/src/test/p7-issue8-action-risk.test.ts": [ - "apps/web/src/lib/risk-display.tsx" - ], - "apps/web/src/test/phase3b-agent-center.test.tsx": [ - "apps/web/src/components/os/apps/AgentsApp.tsx", - "apps/web/src/components/ui/tooltip.tsx", - "apps/web/src/lib/types.ts", - "apps/web/src/providers/ServiceProvider.tsx" - ], - "apps/web/src/test/phase3b-automation-center.test.tsx": [ - "apps/web/src/components/os/apps/AutomationCenterApp.tsx", - "apps/web/src/components/ui/tooltip.tsx", - "apps/web/src/lib/app-deeplink.ts", - "apps/web/src/lib/types.ts", - "apps/web/src/providers/ServiceProvider.tsx" - ], - "apps/web/src/test/phase3b-skills-hub.test.tsx": [ - "apps/web/src/components/os/apps/CapabilitiesApp.tsx", - "apps/web/src/components/ui/tooltip.tsx", - "apps/web/src/providers/ServiceProvider.tsx" - ], - "apps/web/src/test/phase3c-agent-builder.test.tsx": [ - "apps/web/src/components/os/apps/agents/AgentBuilder.tsx", - "apps/web/src/components/os/apps/AgentsApp.tsx", - "apps/web/src/components/ui/tooltip.tsx", - "apps/web/src/lib/types.ts", - "apps/web/src/providers/ServiceProvider.tsx" - ], - "apps/web/src/test/phase3c-automation-builder.test.tsx": [ - "apps/web/src/components/os/apps/AutomationCenterApp.tsx", - "apps/web/src/components/os/apps/automations/AutomationBuilder.tsx", - "apps/web/src/components/ui/tooltip.tsx", - "apps/web/src/providers/ServiceProvider.tsx" - ], - "apps/web/src/test/phase3c-skill-builder.test.tsx": [ - "apps/web/src/components/os/apps/CapabilitiesApp.tsx", - "apps/web/src/components/os/apps/skills/SkillBuilder.tsx", - "apps/web/src/components/ui/tooltip.tsx", - "apps/web/src/providers/ServiceProvider.tsx" - ], - "apps/web/src/test/phase4b-connector-hub.test.tsx": [ - "apps/web/src/components/os/apps/ConnectorsApp.tsx", - "apps/web/src/components/ui/tooltip.tsx", - "apps/web/src/providers/ServiceProvider.tsx" - ], - "apps/web/src/test/phase4b-marketplace-extend.test.tsx": [ - "apps/web/src/components/os/apps/MarketplaceApp.tsx", - "apps/web/src/components/ui/tooltip.tsx", - "apps/web/src/providers/InstallProvider.tsx", - "apps/web/src/providers/ServiceProvider.tsx" - ], - "apps/web/src/test/phase4b-mcp-hub.test.tsx": [ - "apps/web/src/components/os/apps/mcp/mcp-hub-types.ts", - "apps/web/src/components/os/apps/MCPHubApp.tsx", - "apps/web/src/components/ui/tooltip.tsx", - "apps/web/src/providers/ServiceProvider.tsx" - ], - "apps/web/src/test/phase5b-backup.test.tsx": [ - "apps/web/src/components/os/apps/BackupApp.tsx" - ], - "apps/web/src/test/phase5b-connectors.test.tsx": [ - "apps/web/src/components/os/apps/ConnectorsApp.tsx" - ], - "apps/web/src/test/phase5b-error-boundary.test.tsx": [ - "apps/web/src/components/os/ErrorBoundary.tsx" - ], - "apps/web/src/test/phase5b-usechat.test.ts": [ - "apps/web/src/lib/types.ts" - ], - "apps/web/src/test/pr35-memory-trust-manage.test.tsx": [ - "apps/web/src/components/os/apps/memory/MemoryTrustManage.tsx", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/test/pr35-memory-trust-why.test.tsx": [ - "apps/web/src/components/os/apps/memory/MemoryTrustWhy.tsx", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/test/pr35-memory-trust.test.tsx": [ - "apps/web/src/components/os/apps/MemoryTrust.tsx" - ], - "apps/web/src/test/pr4-agent-search.test.tsx": [ - "apps/web/src/components/os/apps/extend/AgentSearchBox.tsx", - "apps/web/src/lib/agent-search.ts", - "apps/web/src/providers/InstallProvider.tsx", - "apps/web/src/providers/ServiceProvider.tsx" - ], - "apps/web/src/test/pr4-inline-capability.test.tsx": [ - "apps/web/src/components/os/apps/chat-blocks/CapabilityRequestCard.tsx", - "apps/web/src/providers/InstallProvider.tsx", - "apps/web/src/providers/ServiceProvider.tsx" - ], - "apps/web/src/test/pr4-install-store.test.tsx": [ - "apps/web/src/lib/install-store.ts", - "apps/web/src/providers/InstallProvider.tsx", - "apps/web/src/providers/ServiceProvider.tsx" - ], - "apps/web/src/test/pr5-settings-reskin.test.tsx": [], - "apps/web/src/test/pr7a-billing.test.tsx": [], - "apps/web/src/test/pr7b-auth.test.tsx": [], - "apps/web/src/test/setup.ts": [], - "apps/web/src/test/warm-primitives.test.tsx": [ - "apps/web/src/components/os/warm/index.ts", - "apps/web/src/components/ui/approval-modal.tsx" - ], - "apps/web/src/test/workspace-actions-menu.test.tsx": [ - "apps/web/src/components/os/WorkspaceActionsMenu.tsx" - ], - "apps/web/src/test/workspace-tasks-tab.test.tsx": [ - "apps/web/src/components/os/apps/workspace/TasksTab.tsx", - "apps/web/src/lib/types.ts" - ], - "apps/web/src/vite-env.d.ts": [], - "apps/web/src/waggle-theme.css": [], - "apps/web/tailwind.config.ts": [], - "apps/web/tsconfig.app.json": [], - "apps/web/tsconfig.json": [], - "apps/web/tsconfig.node.json": [], - "apps/web/vite.config.ts": [], - "apps/web/vitest.config.ts": [], - "apps/www/__tests__/BrandPersonasCard.test.tsx": [ - "apps/www/app/_components/BrandPersonasCard.tsx", - "apps/www/app/_data/personas.ts" - ], - "apps/www/__tests__/setup.ts": [], - "apps/www/.env.example": [], - "apps/www/.env.local.example": [], - "apps/www/app/_components/BrandPersonasCard.tsx": [ - "apps/www/app/_data/personas.ts" - ], - "apps/www/app/_components/ComparisonBeat.tsx": [], - "apps/www/app/_components/DownloadCTA.tsx": [ - "apps/www/app/_lib/event-taxonomy.ts", - "apps/www/app/_lib/os-detection.ts" - ], - "apps/www/app/_components/FinalCTA.tsx": [ - "apps/www/app/_components/DownloadCTA.tsx" - ], - "apps/www/app/_components/Footer.tsx": [], - "apps/www/app/_components/Hero.tsx": [ - "apps/www/app/_components/DownloadCTA.tsx", - "apps/www/app/_components/HeroVisual.tsx", - "apps/www/app/_data/hero-variants.ts" - ], - "apps/www/app/_components/HeroVisual.tsx": [ - "apps/www/app/_data/hero-variants.ts" - ], - "apps/www/app/_components/HowItWorks.tsx": [], - "apps/www/app/_components/Navbar.tsx": [], - "apps/www/app/_components/Pillars.tsx": [], - "apps/www/app/_components/Pricing.tsx": [ - "apps/www/app/_components/DownloadCTA.tsx", - "apps/www/app/_lib/event-taxonomy.ts" - ], - "apps/www/app/_components/ProofPointsBand.tsx": [ - "apps/www/app/_data/proof-points.ts" - ], - "apps/www/app/_components/TrustBand.tsx": [], - "apps/www/app/_components/WowBeat.tsx": [], - "apps/www/app/_data/hero-variants.ts": [], - "apps/www/app/_data/personas.ts": [], - "apps/www/app/_data/proof-points.ts": [], - "apps/www/app/_lib/event-taxonomy.ts": [], - "apps/www/app/_lib/hero-headline-resolver.ts": [ - "apps/www/app/_data/hero-variants.ts" - ], - "apps/www/app/_lib/os-detection.ts": [], - "apps/www/app/(legal)/cookies/page.tsx": [], - "apps/www/app/(legal)/eu-ai-act/page.tsx": [], - "apps/www/app/(legal)/layout.tsx": [ - "apps/www/app/_components/Footer.tsx", - "apps/www/app/_components/Navbar.tsx" - ], - "apps/www/app/(legal)/privacy/page.tsx": [], - "apps/www/app/(legal)/terms/page.tsx": [], - "apps/www/app/account/page.tsx": [], - "apps/www/app/api/stripe/checkout/route.ts": [], - "apps/www/app/api/webhooks/stripe/route.ts": [], - "apps/www/app/design/personas/page.tsx": [ - "apps/www/app/_components/BrandPersonasCard.tsx" - ], - "apps/www/app/docs/methodology/page.tsx": [], - "apps/www/app/globals.css": [], - "apps/www/app/layout.tsx": [ - "apps/www/app/globals.css" - ], - "apps/www/app/page.tsx": [ - "apps/www/app/_components/BrandPersonasCard.tsx", - "apps/www/app/_components/ComparisonBeat.tsx", - "apps/www/app/_components/FinalCTA.tsx", - "apps/www/app/_components/Footer.tsx", - "apps/www/app/_components/Hero.tsx", - "apps/www/app/_components/HowItWorks.tsx", - "apps/www/app/_components/Navbar.tsx", - "apps/www/app/_components/Pillars.tsx", - "apps/www/app/_components/Pricing.tsx", - "apps/www/app/_components/ProofPointsBand.tsx", - "apps/www/app/_components/TrustBand.tsx", - "apps/www/app/_components/WowBeat.tsx", - "apps/www/app/_lib/hero-headline-resolver.ts" - ], - "apps/www/app/sign-in/[[...sign-in]]/page.tsx": [], - "apps/www/app/sign-up/[[...sign-up]]/page.tsx": [], - "apps/www/app/sitemap.ts": [], - "apps/www/i18n/request.ts": [], - "apps/www/LIGHTHOUSE.md": [], - "apps/www/messages/en.json": [], - "apps/www/middleware.ts": [], - "apps/www/next-env.d.ts": [], - "apps/www/next.config.mjs": [], - "apps/www/package.json": [], - "apps/www/SESIJA-D-MANIFEST.md": [], - "apps/www/SESIJA-E-MANIFEST.md": [], - "apps/www/tsconfig.json": [], - "apps/www/vitest.config.ts": [], - "benchmarks/archive/README.md": [], - "benchmarks/calibration/v6-kappa-recal/_summary-v6-kappa.json": [], - "benchmarks/calibration/v6-kappa-recal/cold-probes-phase2.py": [], - "benchmarks/calibration/v6-kappa-recal/kappa-sample-instances.jsonl": [], - "benchmarks/calibration/v6-kappa-recal/kappa-v6-analysis.md": [], - "benchmarks/calibration/v6-kappa-recal/kappa-v6-compute.py": [], - "benchmarks/calibration/v6-kappa-recal/minimax-kappa-probe.py": [], - "benchmarks/calibration/v6-kappa-recal/minimax-kappa-responses.jsonl": [], - "benchmarks/calibration/v6-kappa-recal/phase2-cold-probes.jsonl": [], - "benchmarks/calibration/v6-kappa-recal/v6-kappa-memo.md": [], - "benchmarks/chunk-probe/run-probe.mjs": [], - "benchmarks/data/.gitkeep": [], - "benchmarks/data/beam/beam-128K.meta.json": [], - "benchmarks/data/failure-mode-calibration-10.jsonl": [], - "benchmarks/data/locomo/locomo-1540.jsonl": [], - "benchmarks/data/locomo/locomo-1540.meta.json": [], - "benchmarks/data/longmemeval/longmemeval.meta.json": [], - "benchmarks/data/preflight-locomo-50.json": [], - "benchmarks/gaia2/runs/smoke-c2-2026-04-30/smoke-A-oracle/final_state.jsonl": [], - "benchmarks/gaia2/runs/smoke-c2-2026-04-30/smoke-A-oracle/initial_state.jsonl": [], - "benchmarks/gaia2/runs/smoke-c2-2026-04-30/smoke-A-oracle/output.jsonl": [], - "benchmarks/gaia2/runs/smoke-c2-2026-04-30/smoke-B-gaia2-mock-thread/benchmark_stats.json": [], - "benchmarks/gaia2/runs/smoke-c2-2026-04-30/smoke-B-gaia2-mock-thread/output.jsonl": [], - "benchmarks/gepa/oracle/faza-1/mutation-prompt-template-non-qwen.md": [], - "benchmarks/gepa/oracle/faza-1/mutation-prompt-template-qwen.md": [], - "benchmarks/gepa/README.md": [], - "benchmarks/gepa/scripts/faza-1/analyze-checkpoint-a.py": [], - "benchmarks/gepa/scripts/faza-1/compute-final-kappa.ts": [ - "benchmarks/gepa/src/faza-1/kappa-audit.ts" - ], - "benchmarks/gepa/scripts/faza-1/generate-h3-corpus.ts": [ - "benchmarks/gepa/src/faza-1/corpus-prompt.ts", - "benchmarks/gepa/src/faza-1/corpus.ts" - ], - "benchmarks/gepa/scripts/faza-1/probe-registry-injection.ts": [ - "packages/agent/src/prompt-shapes/selector.ts" - ], - "benchmarks/gepa/scripts/faza-1/run-checkpoint-c.ts": [ - "benchmarks/gepa/src/faza-1/corpus.ts", - "benchmarks/gepa/src/faza-1/fitness.ts", - "benchmarks/gepa/src/faza-1/mutation-validator.ts", - "benchmarks/gepa/src/faza-1/types.ts" - ], - "benchmarks/gepa/scripts/faza-1/run-gen-1.ts": [ - "benchmarks/gepa/src/faza-1/corpus.ts", - "benchmarks/gepa/src/faza-1/fitness.ts", - "benchmarks/gepa/src/faza-1/mutation-validator.ts", - "benchmarks/gepa/src/faza-1/types.ts" - ], - "benchmarks/gepa/scripts/faza-1/run-mutation-oracle.ts": [ - "benchmarks/gepa/src/faza-1/mutation-oracle-fork.ts", - "benchmarks/gepa/src/faza-1/mutation-validator.ts", - "benchmarks/gepa/src/faza-1/types.ts" - ], - "benchmarks/gepa/scripts/faza-1/run-null-baseline.ts": [ - "benchmarks/gepa/src/faza-1/corpus.ts", - "packages/agent/src/prompt-shapes/selector.ts", - "packages/agent/src/prompt-shapes/types.ts" - ], - "benchmarks/gepa/src/faza-1/acceptance.ts": [ - "benchmarks/gepa/src/faza-1/types.ts" - ], - "benchmarks/gepa/src/faza-1/corpus-prompt.ts": [ - "benchmarks/gepa/src/faza-1/corpus.ts" - ], - "benchmarks/gepa/src/faza-1/corpus.ts": [], - "benchmarks/gepa/src/faza-1/cost-tracker.ts": [], - "benchmarks/gepa/src/faza-1/fitness.ts": [ - "benchmarks/gepa/src/faza-1/types.ts" - ], - "benchmarks/gepa/src/faza-1/index.ts": [], - "benchmarks/gepa/src/faza-1/kappa-audit.ts": [], - "benchmarks/gepa/src/faza-1/mutation-oracle-fork.ts": [ - "benchmarks/gepa/src/faza-1/types.ts" - ], - "benchmarks/gepa/src/faza-1/mutation-validator.ts": [], - "benchmarks/gepa/src/faza-1/selection.ts": [ - "benchmarks/gepa/src/faza-1/acceptance.ts", - "benchmarks/gepa/src/faza-1/fitness.ts", - "benchmarks/gepa/src/faza-1/types.ts" - ], - "benchmarks/gepa/src/faza-1/types.ts": [], - "benchmarks/gepa/tests/faza-1/__faza1-closed/mutation-validator.test.ts": [], - "benchmarks/gepa/tests/faza-1/__faza1-closed/README.md": [], - "benchmarks/gepa/tests/faza-1/__faza1-closed/registry-injection.test.ts": [], - "benchmarks/gepa/tests/faza-1/acceptance.test.ts": [ - "benchmarks/gepa/src/faza-1/acceptance.ts", - "benchmarks/gepa/src/faza-1/types.ts" - ], - "benchmarks/gepa/tests/faza-1/corpus.test.ts": [ - "benchmarks/gepa/src/faza-1/corpus.ts" - ], - "benchmarks/gepa/tests/faza-1/cost-tracker.test.ts": [ - "benchmarks/gepa/src/faza-1/cost-tracker.ts" - ], - "benchmarks/gepa/tests/faza-1/fitness.test.ts": [ - "benchmarks/gepa/src/faza-1/fitness.ts", - "benchmarks/gepa/src/faza-1/types.ts" - ], - "benchmarks/gepa/tests/faza-1/kappa-audit.test.ts": [ - "benchmarks/gepa/src/faza-1/kappa-audit.ts" - ], - "benchmarks/gepa/tests/faza-1/mutation-oracle-fork.test.ts": [ - "benchmarks/gepa/src/faza-1/mutation-oracle-fork.ts", - "benchmarks/gepa/src/faza-1/types.ts" - ], - "benchmarks/gepa/tests/faza-1/null-baseline-shape-override.test.ts": [], - "benchmarks/gepa/tests/faza-1/selection.test.ts": [ - "benchmarks/gepa/src/faza-1/selection.ts", - "benchmarks/gepa/src/faza-1/types.ts" - ], - "benchmarks/harness/config/datasets.json": [], - "benchmarks/harness/config/models.json": [], - "benchmarks/harness/package.json": [], - "benchmarks/harness/README.md": [], - "benchmarks/harness/scripts/build-beam-canonical.ts": [], - "benchmarks/harness/scripts/build-locomo-canonical.ts": [], - "benchmarks/harness/scripts/build-longmemeval-canonical.ts": [], - "benchmarks/harness/scripts/build-preflight-samples.ts": [], - "benchmarks/harness/scripts/run-v8.ts": [ - "benchmarks/harness/src/datasets.ts", - "benchmarks/harness/src/health-check.ts", - "benchmarks/harness/src/ingest-beam.ts", - "benchmarks/harness/src/ingest-longmemeval.ts", - "benchmarks/harness/src/judge-client.ts", - "benchmarks/harness/src/judge-runner.ts", - "benchmarks/harness/src/llm.ts", - "benchmarks/harness/src/metrics.ts", - "benchmarks/harness/src/runner-lock.ts", - "benchmarks/harness/src/streak-tracker.ts", - "benchmarks/harness/src/substrate.ts", - "benchmarks/harness/src/types.ts" - ], - "benchmarks/harness/src/cells-ipb.ts": [ - "benchmarks/harness/src/llm.ts", - "benchmarks/harness/src/substrate.ts", - "benchmarks/harness/src/types.ts" - ], - "benchmarks/harness/src/cells.ts": [ - "benchmarks/harness/src/llm.ts", - "benchmarks/harness/src/substrate.ts", - "benchmarks/harness/src/types.ts" - ], - "benchmarks/harness/src/controls.ts": [ - "benchmarks/harness/src/llm.ts", - "benchmarks/harness/src/types.ts" - ], - "benchmarks/harness/src/datasets.ts": [ - "benchmarks/harness/src/types.ts" - ], - "benchmarks/harness/src/failure-taxonomy/aggregate.ts": [ - "benchmarks/harness/src/failure-taxonomy/codes.ts" - ], - "benchmarks/harness/src/failure-taxonomy/codes.ts": [], - "benchmarks/harness/src/failure-taxonomy/index.ts": [], - "benchmarks/harness/src/failure-taxonomy/rubric.ts": [ - "benchmarks/harness/src/failure-taxonomy/codes.ts" - ], - "benchmarks/harness/src/failure-taxonomy/validator.ts": [ - "benchmarks/harness/src/failure-taxonomy/codes.ts" - ], - "benchmarks/harness/src/health-check.ts": [], - "benchmarks/harness/src/ingest-beam.ts": [], - "benchmarks/harness/src/ingest-longmemeval.ts": [], - "benchmarks/harness/src/ingest.ts": [], - "benchmarks/harness/src/judge-client.ts": [ - "benchmarks/harness/src/judge-types.ts" - ], - "benchmarks/harness/src/judge-runner.ts": [ - "benchmarks/harness/src/judge-types.ts", - "benchmarks/harness/src/types.ts" - ], - "benchmarks/harness/src/judge-types.ts": [], - "benchmarks/harness/src/llm.ts": [ - "benchmarks/harness/src/types.ts" - ], - "benchmarks/harness/src/metrics.ts": [ - "benchmarks/harness/src/failure-taxonomy/index.ts", - "benchmarks/harness/src/types.ts" - ], - "benchmarks/harness/src/preregistration.ts": [], - "benchmarks/harness/src/runner-lock.ts": [], - "benchmarks/harness/src/runner.ts": [ - "benchmarks/harness/src/cells.ts", - "benchmarks/harness/src/controls.ts", - "benchmarks/harness/src/datasets.ts", - "benchmarks/harness/src/health-check.ts", - "benchmarks/harness/src/ingest.ts", - "benchmarks/harness/src/judge-client.ts", - "benchmarks/harness/src/judge-runner.ts", - "benchmarks/harness/src/llm.ts", - "benchmarks/harness/src/metrics.ts", - "benchmarks/harness/src/preregistration.ts", - "benchmarks/harness/src/runner-lock.ts", - "benchmarks/harness/src/streak-tracker.ts", - "benchmarks/harness/src/substrate.ts", - "benchmarks/harness/src/types.ts" - ], - "benchmarks/harness/src/stats/cluster-bootstrap.ts": [], - "benchmarks/harness/src/stats/fleiss-kappa.ts": [], - "benchmarks/harness/src/stats/index.ts": [], - "benchmarks/harness/src/stats/wilson-ci.ts": [], - "benchmarks/harness/src/streak-tracker.ts": [], - "benchmarks/harness/src/substrate.ts": [], - "benchmarks/harness/src/types.ts": [ - "benchmarks/harness/src/failure-taxonomy/aggregate.ts", - "benchmarks/harness/src/failure-taxonomy/codes.ts", - "benchmarks/harness/src/substrate.ts" - ], - "benchmarks/harness/tests/a3-namespace-split.test.ts": [ - "benchmarks/harness/src/judge-runner.ts", - "benchmarks/harness/src/judge-types.ts", - "benchmarks/harness/src/metrics.ts", - "benchmarks/harness/src/types.ts" - ], - "benchmarks/harness/tests/agent-loop-exhaustion.test.ts": [ - "benchmarks/harness/src/cells.ts", - "benchmarks/harness/src/llm.ts", - "benchmarks/harness/src/substrate.ts", - "benchmarks/harness/src/types.ts" - ], - "benchmarks/harness/tests/b2-fold-in.test.ts": [ - "benchmarks/harness/src/judge-runner.ts", - "benchmarks/harness/src/judge-types.ts" - ], - "benchmarks/harness/tests/cells-substrate.test.ts": [ - "benchmarks/harness/src/cells.ts", - "benchmarks/harness/src/llm.ts", - "benchmarks/harness/src/substrate.ts", - "benchmarks/harness/src/types.ts" - ], - "benchmarks/harness/tests/cells.test.ts": [ - "benchmarks/harness/src/cells.ts", - "benchmarks/harness/src/types.ts" - ], - "benchmarks/harness/tests/cli-flags.test.ts": [ - "benchmarks/harness/src/runner.ts" - ], - "benchmarks/harness/tests/dataset-loader.test.ts": [ - "benchmarks/harness/src/datasets.ts", - "benchmarks/harness/src/types.ts" - ], - "benchmarks/harness/tests/failure-taxonomy/aggregate.test.ts": [ - "benchmarks/harness/src/failure-taxonomy/aggregate.ts" - ], - "benchmarks/harness/tests/failure-taxonomy/codes.test.ts": [ - "benchmarks/harness/src/failure-taxonomy/codes.ts" - ], - "benchmarks/harness/tests/failure-taxonomy/rubric.test.ts": [ - "benchmarks/harness/src/failure-taxonomy/rubric.ts" - ], - "benchmarks/harness/tests/failure-taxonomy/validator.test.ts": [ - "benchmarks/harness/src/failure-taxonomy/validator.ts" - ], - "benchmarks/harness/tests/health-check.test.ts": [ - "benchmarks/harness/src/health-check.ts" - ], - "benchmarks/harness/tests/ingest.test.ts": [ - "benchmarks/harness/src/ingest.ts" - ], - "benchmarks/harness/tests/jsonl-record-schema.test.ts": [ - "benchmarks/harness/src/types.ts" - ], - "benchmarks/harness/tests/judge-wiring.test.ts": [ - "benchmarks/harness/src/judge-client.ts", - "benchmarks/harness/src/judge-runner.ts", - "benchmarks/harness/src/judge-types.ts", - "benchmarks/harness/src/runner.ts", - "benchmarks/harness/src/types.ts" - ], - "benchmarks/harness/tests/llm-retry.test.ts": [ - "benchmarks/harness/src/llm.ts", - "benchmarks/harness/src/types.ts" - ], - "benchmarks/harness/tests/models-config.test.ts": [ - "benchmarks/harness/src/types.ts" - ], - "benchmarks/harness/tests/preregistration.test.ts": [ - "benchmarks/harness/src/preregistration.ts" - ], - "benchmarks/harness/tests/reasoning-capture.test.ts": [ - "benchmarks/harness/src/llm.ts", - "benchmarks/harness/src/metrics.ts", - "benchmarks/harness/src/types.ts" - ], - "benchmarks/harness/tests/runner-lock.test.ts": [ - "benchmarks/harness/src/runner-lock.ts" - ], - "benchmarks/harness/tests/smoke.test.ts": [ - "benchmarks/harness/src/datasets.ts", - "benchmarks/harness/src/runner.ts", - "benchmarks/harness/src/types.ts" - ], - "benchmarks/harness/tests/smoke/fixtures/mock-judge-responses.json": [], - "benchmarks/harness/tests/smoke/fixtures/mock-locomo-instances.json": [], - "benchmarks/harness/tests/smoke/smoke-run.test.ts": [ - "benchmarks/harness/src/failure-taxonomy/index.ts", - "benchmarks/harness/src/stats/index.ts" - ], - "benchmarks/harness/tests/stage2-config.test.ts": [ - "benchmarks/harness/src/llm.ts", - "benchmarks/harness/src/types.ts" - ], - "benchmarks/harness/tests/stats/cluster-bootstrap.test.ts": [ - "benchmarks/harness/src/stats/cluster-bootstrap.ts", - "benchmarks/harness/src/stats/wilson-ci.ts" - ], - "benchmarks/harness/tests/stats/fleiss-kappa.test.ts": [ - "benchmarks/harness/src/stats/fleiss-kappa.ts" - ], - "benchmarks/harness/tests/stats/wilson-ci.test.ts": [ - "benchmarks/harness/src/stats/wilson-ci.ts" - ], - "benchmarks/harness/tests/streak-tracker.test.ts": [ - "benchmarks/harness/src/streak-tracker.ts" - ], - "benchmarks/harness/tests/substrate.test.ts": [ - "benchmarks/harness/src/substrate.ts" - ], - "benchmarks/harness/tests/wrapper-v3-cells.test.ts": [], - "benchmarks/harness/tsconfig.json": [], - "benchmarks/preregistration/manifest-v5-preregistration.md": [], - "benchmarks/preregistration/manifest-v5-preregistration.yaml": [], - "benchmarks/preregistration/manifest-v6-preregistration.md": [], - "benchmarks/preregistration/manifest-v6-preregistration.yaml": [], - "benchmarks/preregistration/manifest-v7-gepa-faza1.yaml": [], - "benchmarks/preregistration/manifest-v8-gaia2-preregistration.md": [], - "benchmarks/preregistration/manifest-v8-gaia2-preregistration.yaml": [], - "benchmarks/preregistration/manifest-v8.1-multi-benchmark.md": [], - "benchmarks/preregistration/manifest-v8.2-final.md": [], - "benchmarks/probes/judge-swap-validation/_summary-split.json": [], - "benchmarks/probes/judge-swap-validation/deepseek-mt-comparison-memo.md": [], - "benchmarks/probes/judge-swap-validation/deepseek-mt2048-probe.py": [], - "benchmarks/probes/judge-swap-validation/deepseek-responses.jsonl": [], - "benchmarks/probes/judge-swap-validation/deepseek-split-responses-v2-mt2048.jsonl": [], - "benchmarks/probes/judge-swap-validation/deepseek-split-responses.jsonl": [], - "benchmarks/probes/judge-swap-validation/kappa-analysis.md": [], - "benchmarks/probes/judge-swap-validation/kappa-split-analysis.md": [], - "benchmarks/probes/judge-swap-validation/kappa-split-analysis.py": [], - "benchmarks/probes/judge-swap-validation/kimi-responses.jsonl": [], - "benchmarks/probes/judge-swap-validation/kimi-split-responses.jsonl": [], - "benchmarks/probes/judge-swap-validation/minimax-responses.jsonl": [], - "benchmarks/probes/judge-swap-validation/minimax-split-responses.jsonl": [], - "benchmarks/probes/judge-swap-validation/probe-script-split.py": [], - "benchmarks/probes/judge-swap-validation/probe-script.py": [], - "benchmarks/probes/judge-swap-validation/reprobe-memo.md": [], - "benchmarks/probes/judge-swap-validation/sample-instances.jsonl": [], - "benchmarks/probes/judge-swap-validation/split-cases-sample.jsonl": [], - "benchmarks/probes/judge-swap-validation/validation-memo.md": [], - "benchmarks/probes/judge-swap-validation/zhipu-responses.jsonl": [], - "benchmarks/probes/judge-swap-validation/zhipu-split-responses.jsonl": [], - "benchmarks/probes/vertex-batch-eligibility/eligibility-memo.md": [], - "benchmarks/probes/vertex-batch-eligibility/probe-input.jsonl": [], - "benchmarks/probes/vertex-batch-eligibility/probe-script.py": [], - "benchmarks/results/.gitkeep": [], - "benchmarks/results/agentic-locomo-2026-04-25T16-13-29-924Z.jsonl": [], - "benchmarks/results/agentic-locomo-2026-04-25T16-13-29-924Z.summary.json": [], - "benchmarks/results/gepa-faza1/checkpoint-c/checkpoint-c-eval.jsonl": [], - "benchmarks/results/gepa-faza1/checkpoint-c/checkpoint-c-report.md": [], - "benchmarks/results/gepa-faza1/checkpoint-c/checkpoint-c-summary.json": [], - "benchmarks/results/gepa-faza1/checkpoint-c/final-kappa-audit.json": [], - "benchmarks/results/gepa-faza1/corpus/h3-northlane-cfo-50-instances.jsonl": [], - "benchmarks/results/gepa-faza1/corpus/h3-spot-audit-pre-a-addendum.md": [], - "benchmarks/results/gepa-faza1/corpus/h3-spot-audit-pre-a-report.md": [], - "benchmarks/results/gepa-faza1/corpus/texture-audit-side-by-side.md": [], - "benchmarks/results/gepa-faza1/gen-1/checkpoint-b-report.md": [], - "benchmarks/results/gepa-faza1/gen-1/final-gen-1-close-report.md": [], - "benchmarks/results/gepa-faza1/gen-1/full-gen-1-halt-report.md": [], - "benchmarks/results/gepa-faza1/gen-1/gen-1-eval-void-registry-bug-superseded.jsonl": [], - "benchmarks/results/gepa-faza1/gen-1/gen-1-eval.jsonl": [], - "benchmarks/results/gepa-faza1/gen-1/gen-1-summary-void-registry-bug-superseded.json": [], - "benchmarks/results/gepa-faza1/gen-1/gen-1-summary.json": [], - "benchmarks/results/gepa-faza1/gen-1/investigate-report.md": [], - "benchmarks/results/gepa-faza1/gen-1/mutation-oracle-manifest.json": [], - "benchmarks/results/gepa-faza1/gen-1/post-amendment-10-halt-report.md": [], - "benchmarks/results/gepa-faza1/null-baseline/checkpoint-a-aggregates-artifactual-bug-superseded.json": [], - "benchmarks/results/gepa-faza1/null-baseline/checkpoint-a-report-artifactual-bug-superseded.md": [], - "benchmarks/results/gepa-faza1/null-baseline/checkpoint-a-report.md": [], - "benchmarks/results/gepa-faza1/null-baseline/checkpoint-a-v2-aggregates.json": [], - "benchmarks/results/gepa-faza1/null-baseline/null-baseline-eval-artifactual-bug-superseded.jsonl": [], - "benchmarks/results/gepa-faza1/null-baseline/null-baseline-eval.jsonl": [], - "benchmarks/results/gepa-faza1/null-baseline/null-baseline-summary-artifactual-bug-superseded.json": [], - "benchmarks/results/gepa-faza1/null-baseline/null-baseline-summary.json": [], - "benchmarks/results/manifest-v4-litellm-config-scope-audit.md": [], - "benchmarks/results/manifest-v4-lock-semantics-clarification.md": [], - "benchmarks/results/manifest-v4-preregistration.md": [], - "benchmarks/results/manifest-v4-preregistration.yaml": [], - "benchmarks/results/manifest-v4-runner-early-exit-rca.md": [], - "benchmarks/results/manifest-v5-rpd-feasibility-check.md": [], - "benchmarks/results/pilot-2026-04-26/invalidated/pilot-task-1-C.invalidated-2026-04-26T01-33-08-392Z.jsonl": [], - "benchmarks/results/pilot-2026-04-26/invalidated/pilot-task-1-D.invalidated-2026-04-26T01-35-05-441Z.jsonl": [], - "benchmarks/results/pilot-2026-04-26/pilot-summary.json": [], - "benchmarks/results/pilot-2026-04-26/pilot-task-1-A.jsonl": [], - "benchmarks/results/pilot-2026-04-26/pilot-task-1-B.jsonl": [], - "benchmarks/results/pilot-2026-04-26/pilot-task-1-C.jsonl": [], - "benchmarks/results/pilot-2026-04-26/pilot-task-1-D.jsonl": [], - "benchmarks/results/pilot-2026-04-26/pilot-task-2-A.jsonl": [], - "benchmarks/results/pilot-2026-04-26/pilot-task-2-B.jsonl": [], - "benchmarks/results/pilot-2026-04-26/pilot-task-2-C.jsonl": [], - "benchmarks/results/pilot-2026-04-26/pilot-task-2-D.jsonl": [], - "benchmarks/results/pilot-2026-04-26/pilot-task-3-A.jsonl": [], - "benchmarks/results/pilot-2026-04-26/pilot-task-3-B.jsonl": [], - "benchmarks/results/pilot-2026-04-26/pilot-task-3-C.jsonl": [], - "benchmarks/results/pilot-2026-04-26/pilot-task-3-D.jsonl": [], - "benchmarks/results/pilot-2026-04-26/prompts-archive/task-1-cell-A-prompt.md": [], - "benchmarks/results/pilot-2026-04-26/prompts-archive/task-1-cell-B-trace.md": [], - "benchmarks/results/pilot-2026-04-26/prompts-archive/task-1-cell-C-prompt.md": [], - "benchmarks/results/pilot-2026-04-26/prompts-archive/task-1-cell-D-trace.md": [], - "benchmarks/results/pilot-2026-04-26/prompts-archive/task-2-cell-A-prompt.md": [], - "benchmarks/results/pilot-2026-04-26/prompts-archive/task-2-cell-B-trace.md": [], - "benchmarks/results/pilot-2026-04-26/prompts-archive/task-2-cell-C-prompt.md": [], - "benchmarks/results/pilot-2026-04-26/prompts-archive/task-2-cell-D-trace.md": [], - "benchmarks/results/pilot-2026-04-26/prompts-archive/task-3-cell-A-prompt.md": [], - "benchmarks/results/pilot-2026-04-26/prompts-archive/task-3-cell-B-trace.md": [], - "benchmarks/results/pilot-2026-04-26/prompts-archive/task-3-cell-C-prompt.md": [], - "benchmarks/results/pilot-2026-04-26/prompts-archive/task-3-cell-D-trace.md": [], - "benchmarks/results/stage3-gate-p-plus-probe-log.jsonl": [], - "benchmarks/results/stage3-gate-p-plus-probe-summary.md": [], - "benchmarks/results/stage3-gate-p-plus-probe-v2-log.jsonl": [], - "benchmarks/results/stage3-gate-p-plus-probe-v2-summary.md": [], - "benchmarks/results/stage3-n400-v6-final-5cell-summary.md": [], - "benchmarks/results/stage3-n400-v6-final-analysis.md": [], - "benchmarks/results/stage3-n400-v6-final-memo.md": [], - "benchmarks/results/stage3-n400-v6-followup-typeerror-cluster.md": [], - "benchmarks/results/v6-self-judge-rebench/apples-to-apples-memo.md": [], - "benchmarks/results/v6-self-judge-rebench/qwen-self-judge-results.jsonl": [], - "benchmarks/results/v6-self-judge-rebench/self-judge-vs-trio-comparison.md": [], - "benchmarks/scripts/migrate-cell-names.ts": [], - "CLAUDE.md": [], - "decisions/2026-04-26-agent-fix-sprint-plan.md": [], - "decisions/2026-04-26-pilot-verdict-FAIL.md": [], - "docker-compose.production.yml": [], - "docker-compose.yml": [], - "Dockerfile": [], - "docs/.evolution-hypothesis-2026-04-14T08-04-57/01-evolved-prompt.json": [], - "docs/.evolution-hypothesis-2026-04-14T08-04-57/02a-arm-a-outputs.json": [], - "docs/.evolution-hypothesis-2026-04-14T08-04-57/02b-arm-b-outputs.json": [], - "docs/.evolution-hypothesis-2026-04-14T08-04-57/02c-arm-c-outputs.json": [], - "docs/.evolution-hypothesis-2026-04-14T08-04-57/03-judge-scores.json": [], - "docs/addiction-features/01-memory-streak.md": [], - "docs/addiction-features/02-daily-brief.md": [], - "docs/addiction-features/03-continuity-banner.md": [], - "docs/addiction-features/04-weekly-wins-digest.md": [], - "docs/addiction-features/05-milestone-cards.md": [], - "docs/addiction-features/06-tour-replay.md": [], - "docs/addiction-features/07-pending-imports-reminder.md": [], - "docs/addiction-features/README.md": [], - "docs/addictiveness-audit-2026-05-28/BASELINE.md": [], - "docs/addictiveness-audit-2026-05-28/BENCHMARK-claude-code-nc.md": [], - "docs/addictiveness-audit-2026-05-28/BENCHMARK-cowork.md": [], - "docs/addictiveness-audit-2026-05-28/BENCHMARK-hermes.md": [], - "docs/addictiveness-audit-2026-05-28/BENCHMARK-openclaw.md": [], - "docs/addictiveness-audit-2026-05-28/FEATURE-REQUESTS.md": [], - "docs/addictiveness-audit-2026-05-28/ITER-1-RESULTS.md": [], - "docs/addictiveness-audit-2026-05-28/ITER-2-RESULTS.md": [], - "docs/addictiveness-audit-2026-05-28/ITER-3-RESULTS.md": [], - "docs/addictiveness-audit-2026-05-28/ITER-4-RESULTS.md": [], - "docs/addictiveness-audit-2026-05-28/ITER-5-RESULTS.md": [], - "docs/addictiveness-audit-2026-05-28/ITER-6-RESULTS.md": [], - "docs/addictiveness-audit-2026-05-28/ITER-7-RESULTS.md": [], - "docs/addictiveness-audit-2026-05-28/PERSONAS.md": [], - "docs/addictiveness-audit-2026-05-28/PLAN.md": [], - "docs/addictiveness-audit-2026-05-28/REDUNDANCY-AUDIT.md": [], - "docs/addictiveness-audit-2026-05-28/RUBRIC.md": [], - "docs/addictiveness-audit-2026-05-28/SURFACES.md": [], - "docs/AGENT-AUDIT-RESULTS-2026-04-16.json": [], - "docs/AGENT-BEHAVIOR-AUDIT-2026-04-16.md": [], - "docs/AI-ACT-AUDIT-2026-04-10.json": [], - "docs/AI-ACT-AUDIT-2026-04-10.md": [], - "docs/AI-ACT-COMPLIANCE-PROOF-2026-04-16.md": [], - "docs/ARCHITECTURE.md": [], - "docs/AUDIT-PERSONAL-MIND-2026-04-10.md": [], - "docs/audits/2026-05-29-prod-readiness/REPORT.md": [], - "docs/audits/2026-06-01-full-repo-verification-sweep.md": [], - "docs/audits/2026-06-01-memory-overclaim-investigation.md": [], - "docs/audits/2026-06-01-production-readiness-assessment.md": [], - "docs/audits/2026-06-01-vision-e2e-harness-design.md": [], - "docs/backend-map/00-MENTAL-MODEL.md": [], - "docs/backend-map/07-FRONTEND-REBUILD-GUIDE.md": [], - "docs/backend-map/AUDIT.md": [], - "docs/backend-map/DIAGRAMS/01-system-architecture.md": [], - "docs/backend-map/DIAGRAMS/02-master-er.md": [], - "docs/backend-map/DIAGRAMS/03-chat-turn-sequence.md": [], - "docs/backend-map/DIAGRAMS/04-feature-api-map.md": [], - "docs/backend-map/DIAGRAMS/05-tier-gating.md": [], - "docs/backend-map/DIAGRAMS/06-api-domains.md": [], - "docs/backend-map/README.md": [], - "docs/backend-map/sections/02a-data-model-memory.md": [], - "docs/backend-map/sections/02b-data-model-relational.md": [], - "docs/backend-map/sections/02c-shared-types-tiers.md": [], - "docs/backend-map/sections/03a-api-chat-agents.md": [], - "docs/backend-map/sections/03b-api-memory.md": [], - "docs/backend-map/sections/03c-api-workspace-team.md": [], - "docs/backend-map/sections/03d-api-marketplace-skills.md": [], - "docs/backend-map/sections/03e-api-evolution-governance.md": [], - "docs/backend-map/sections/03f-api-realtime-ops.md": [], - "docs/backend-map/sections/03g-api-cloud-billing-kvark.md": [], - "docs/backend-map/sections/04-feature-map.md": [], - "docs/backend-map/sections/05a-subsystem-agent-runtime.md": [], - "docs/backend-map/sections/05b-subsystem-memory.md": [], - "docs/backend-map/sections/05c-subsystem-harvest.md": [], - "docs/backend-map/sections/05d-subsystem-evolution.md": [], - "docs/backend-map/sections/05e-subsystem-waggledance-aios.md": [], - "docs/backend-map/sections/05f-subsystem-capabilities-tiers.md": [], - "docs/backend-map/sections/05g-subsystem-skills-marketplace-wiki.md": [], - "docs/backend-map/WAGGLE-BACKEND-VISUAL.html": [], - "docs/BRAND-VOICE.md": [], - "docs/briefs/2026-04-19-engineering-audit-pre-benchmark.md": [], - "docs/briefs/2026-04-19-handoff-claude-code.md": [], - "docs/briefs/2026-04-19-launch-copy-variants.md": [], - "docs/briefs/2026-04-19-sota-benchmark-audit-readiness.md": [], - "docs/briefs/2026-04-19-sota-benchmark-pre-mortem.md": [], - "docs/briefs/2026-04-20-benchmark-scope-expansion-paired.md": [], - "docs/briefs/2026-04-20-cc-preflight-prep-tasks.md": [], - "docs/briefs/2026-04-20-cc-sprint-7-tasks.md": [], - "docs/briefs/2026-04-20-cc-sprint-9-tasks.md": [], - "docs/briefs/2026-04-20-cc-stage-0-dogfood-tasks.md": [], - "docs/briefs/2026-04-20-claude-design-setup-submission.md": [], - "docs/briefs/2026-04-20-launch-copy-dual-axis-revision.md": [], - "docs/briefs/2026-04-21-cc-sprint-10-tasks.md": [], - "docs/briefs/2026-04-22-bee-writer-sleeping-regen-brief.md": [], - "docs/briefs/2026-04-22-brand-bee-personas-card-spec.md": [], - "docs/briefs/2026-04-22-cc-bee-regen-execution.md": [], - "docs/briefs/2026-04-22-cc-c2-stage1-mikroeval-kickoff.md": [], - "docs/briefs/2026-04-22-cc-c3-stage2-mini-kickoff.md": [], - "docs/briefs/2026-04-22-cc-day2-am-kickoff.md": [], - "docs/briefs/2026-04-22-cc-personas-card-component-parallel.md": [], - "docs/briefs/2026-04-22-cc-sprint-10-day-3.md": [], - "docs/briefs/2026-04-22-cc-sprint-10-parallel-close-tasks.md": [], - "docs/briefs/2026-04-22-cc-sprint-11-kickoff.md": [], - "docs/briefs/2026-04-22-cc-sprint-12-task1-judge-role-remap.md": [], - "docs/briefs/2026-04-22-cc-sprint-12-task1-session2-brief.md": [], - "docs/briefs/2026-04-22-cc-sprint-12-task1-session3-brief.md": [], - "docs/briefs/2026-04-22-claude-design-landing-brief.md": [], - "docs/briefs/2026-04-22-personas-card-copy-refinement.md": [], - "docs/briefs/2026-04-22-sprint-12-scope-draft.md": [], - "docs/briefs/2026-04-23-cc-sprint-12-task2-c3-mini-kickoff.md": [], - "docs/briefs/2026-04-23-cc1-prompt-v3-c3-stage2-trilateral-smoke-full-retry.md": [], - "docs/briefs/2026-04-23-ds-audit-honeycomb-and-stubs-findings.md": [], - "docs/briefs/2026-04-23-ds-audit-v2-macOS-paradigm-correction.md": [], - "docs/briefs/2026-04-24-cc-task25-stage2-retry-kickoff.md": [], - "docs/briefs/2026-04-24-cc-task25-stage3-n400-kickoff.md": [], - "docs/briefs/2026-04-24-cc-task25-stage3-rekick-option-a.md": [], - "docs/briefs/2026-04-24-cc1-judge-swap-stratified-reprobe-brief.md": [], - "docs/briefs/2026-04-24-cc1-judge-swap-validation-probe-brief.md": [], - "docs/briefs/2026-04-24-cc1-manifest-v6-phase1-kappa-recal-brief.md": [], - "docs/briefs/2026-04-24-cc1-manifest-v6-phase2-n400-execution-brief.md": [], - "docs/briefs/2026-04-24-cc1-v6-section-5-2-clarification-brief.md": [], - "docs/briefs/2026-04-24-cc1-vertex-batch-eligibility-probe-brief.md": [], - "docs/briefs/2026-04-25-cc1-apps-www-nextjs-port-brief.md": [], - "docs/briefs/2026-04-25-launch-comms-templates.md": [], - "docs/briefs/2026-04-25-mvp-shim-package-layouts.md": [], - "docs/briefs/2026-04-25-universal-silent-capture-strategy.md": [], - "docs/briefs/2026-04-26-agentic-knowledge-work-pilot/cc1-brief-amendment-2026-04-26.md": [], - "docs/briefs/2026-04-26-agentic-knowledge-work-pilot/cc1-brief-amendment-v2-2026-04-26.md": [], - "docs/briefs/2026-04-26-agentic-knowledge-work-pilot/cc1-brief.md": [], - "docs/briefs/2026-04-26-agentic-knowledge-work-pilot/judge-rubric.md": [], - "docs/briefs/2026-04-26-agentic-knowledge-work-pilot/README.md": [], - "docs/briefs/2026-04-26-agentic-knowledge-work-pilot/task-1-strategic-synthesis.md": [], - "docs/briefs/2026-04-26-agentic-knowledge-work-pilot/task-2-cross-thread-coordination.md": [], - "docs/briefs/2026-04-26-agentic-knowledge-work-pilot/task-3-decision-support.md": [], - "docs/briefs/2026-04-26-harness-audit-tiered-fix-plan.md": [], - "docs/briefs/2026-04-26-landing-copy-v3.md": [], - "docs/briefs/2026-04-26-memory-sync-repair-cc2-brief.md": [], - "docs/briefs/2026-04-26-retrieval-v2-embeddings-audit-brief.md": [], - "docs/briefs/2026-04-27-substrate-integrity-audit-brief.md": [], - "docs/briefs/2026-04-28-cc4-faza1-amendment-1.md": [], - "docs/briefs/2026-04-28-cc4-faza1-amendment-2.md": [], - "docs/briefs/2026-04-28-cc4-faza1-preflight-report.md": [], - "docs/briefs/2026-04-28-cc4-gepa-tier2-evolution-faza1-brief.md": [], - "docs/briefs/2026-04-28-claude-design-landing-setup.md": [], - "docs/briefs/2026-04-28-claude-design-landing-v2-prompt.md": [], - "docs/briefs/2026-04-28-claude-design-landing-v2.1-prompt.md": [], - "docs/briefs/2026-04-28-claude-design-landing-v2.2-prompt.md": [], - "docs/briefs/2026-04-28-claude-design-landing-v2.3-prompt.md": [], - "docs/briefs/2026-04-28-landing-copy-v4-waggle-product.md": [], - "docs/briefs/2026-04-29-benchmark-portfolio-refresh-2026-venues.md": [], - "docs/briefs/2026-04-29-phase-5-deployment-brief-v1.md": [], - "docs/briefs/2026-04-29-ui-ux-component-inventory.md": [], - "docs/briefs/2026-04-29-ui-ux-inventory-landing.md": [], - "docs/briefs/2026-04-29-ui-ux-inventory-os-shell.md": [], - "docs/briefs/2026-04-29-wave1-hooks-cleanup-brief.md": [], - "docs/briefs/2026-04-30-cc-kickoff-phase-5.md": [], - "docs/briefs/2026-04-30-cc-sesija-A-waggle-apps-web-integration.md": [], - "docs/briefs/2026-04-30-cc-sesija-B-hive-mind-monorepo-migration.md": [], - "docs/briefs/2026-04-30-cc-sesija-C-gaia2-setup-dry-verification.md": [], - "docs/briefs/2026-04-30-cc-sesija-C-gaia2-setup-evidence.md": [], - "docs/briefs/2026-05-01-cc-e2e-support-build-and-fix.md": [], - "docs/briefs/2026-05-01-cc-sesija-D-apps-web-ui-alignment.md": [], - "docs/briefs/2026-05-02-cc-sesija-D-apps-www-port-v3.2-amendment.md": [], - "docs/briefs/2026-05-03-cc-sesija-E-clerk-stripe-linkage-logo-fix.md": [], - "docs/briefs/2026-05-05-claude-md-amendment-invariants.md": [], - "docs/briefs/2026-05-05-day-0-minus-1-runbook.md": [], - "docs/briefs/2026-05-10-day-0-minus-1-runbook-amendment-post-consolidation.md": [], - "docs/briefs/COWORK-PM-HUB-BRIEF.txt": [], - "docs/briefs/e2e-persona-tests/2026-04-25-e2e-persona-test-matrix.md": [], - "docs/briefs/hive-mind-ci-npm-publish-brief-2026-04-19.md": [], - "docs/briefs/landing-auth-infra-brief-2026-04-18.md": [], - "docs/briefs/track-b-benchmarks-brief-2026-04-19.md": [], - "docs/briefs/WAGGLE-RECONCILIATION-BRIEF-V2.txt": [], - "docs/briefs/WAGGLE-RECONCILIATION-BRIEF.md": [], - "docs/code-signing-pilot-and-launch.md": [], - "docs/CONTRIBUTING.md": [], - "docs/DAY-2-BACKLOG-2026-05-01.md": [], - "docs/decisions/2026-04-18-h34-hive-mind-extraction-closed.md": [], - "docs/decisions/2026-04-18-hive-mind-extraction-effort.md": [], - "docs/decisions/2026-04-18-landing-e2e-persona-workstream-authorized.md": [], - "docs/decisions/2026-04-18-launch-timing.md": [], - "docs/decisions/2026-04-18-stripe-pricing.md": [], - "docs/decisions/2026-04-19-audit-findings-track1-backlog.md": [], - "docs/decisions/2026-04-19-hive-mind-npm-shipped.md": [], - "docs/decisions/2026-04-19-persona-research-rev1-approved.md": [], - "docs/decisions/2026-04-19-target-model-qwen35b-locked.md": [], - "docs/decisions/2026-04-19-tracks-sequencing-locked.md": [], - "docs/decisions/2026-04-20-benchmark-7-obligations-locked.md": [], - "docs/decisions/2026-04-20-failure-mode-oq-resolutions-locked.md": [], - "docs/decisions/2026-04-20-gemma-week3-probe-locked.md": [], - "docs/decisions/2026-04-20-harness-spec-4-oq-locked.md": [], - "docs/decisions/2026-04-20-preflight-oq-resolutions-locked.md": [], - "docs/decisions/2026-04-20-preflight-stage2-4cell-amendment.md": [], - "docs/decisions/2026-04-20-verbose-fixed-oq-resolutions-locked.md": [], - "docs/decisions/2026-04-21-sprint-10-task-1.2-ratified-opus46-deferred.md": [], - "docs/decisions/2026-04-22-b3-lock-dashscope-addendum.md": [], - "docs/decisions/2026-04-22-bench-spec-locked.manifest.yaml": [], - "docs/decisions/2026-04-22-bench-spec-locked.md": [], - "docs/decisions/2026-04-22-h-audit-1-design-ratified.md": [], - "docs/decisions/2026-04-22-landing-personas-ia-locked.md": [], - "docs/decisions/2026-04-22-model-route-naming-locked.md": [], - "docs/decisions/2026-04-22-personas-card-copy-locked.md": [], - "docs/decisions/2026-04-22-sprint-11-scope-locked.md": [], - "docs/decisions/2026-04-22-stage-2-full-kickoff-memo-DRAFT.md": [], - "docs/decisions/2026-04-22-stage-2-full-kickoff-memo.md": [], - "docs/decisions/2026-04-22-stage-2-primary-config-locked.md": [], - "docs/decisions/2026-04-22-tie-break-policy-locked.md": [], - "docs/decisions/2026-04-23-jsonl-record-taxonomy-split-locked.md": [], - "docs/decisions/2026-04-23-stage2-mini-manifest-v3.md": [], - "docs/decisions/2026-04-23-stage2-mini-manifest-v3.yaml": [], - "docs/decisions/2026-04-23-stage2-mini-manifest.manifest.yaml": [], - "docs/decisions/2026-04-23-stage2-mini-manifest.md": [], - "docs/decisions/2026-04-24-gate-d-option-a-ratified.md": [], - "docs/decisions/2026-04-24-pm-correctness-reanalysis-memo.md": [], - "docs/decisions/2026-04-24-pm-let-it-run-n400-phase-b.md": [], - "docs/decisions/2026-04-24-pm-ratify-judge-swap-validation-sequence.md": [], - "docs/decisions/2026-04-24-pm-ratify-litellm-scope-in-scope.md": [], - "docs/decisions/2026-04-24-pm-ratify-lock-semantics-path-l1.md": [], - "docs/decisions/2026-04-24-pm-ratify-probe-p2-path.md": [], - "docs/decisions/2026-04-24-pm-ratify-rca-task26-path.md": [], - "docs/decisions/2026-04-24-pm-ratify-v5-rpd.md": [], - "docs/decisions/2026-04-24-pm-ratify-v5-throttle.md": [], - "docs/decisions/2026-04-24-pm-ratify-v6-5-2-clarification.md": [], - "docs/decisions/2026-04-24-pm-ratify-v6-kappa.md": [], - "docs/decisions/2026-04-24-pm-ratify-vertex-batch-eligibility.md": [], - "docs/decisions/2026-04-25-launch-gate-reframe-decision-matrix.md": [], - "docs/decisions/2026-04-25-overnight-pm-execution-log.md": [], - "docs/decisions/2026-04-25-pm-pre-fill-decision-matrix-recommendations.md": [], - "docs/decisions/2026-04-26-decision-matrix-self-judge-reframe.md": [], - "docs/decisions/2026-04-26-memory-sync-audit.md": [], - "docs/decisions/2026-04-26-memory-sync-step1-results.md": [], - "docs/decisions/2026-04-26-memory-sync-step2-test-port-results.md": [], - "docs/decisions/2026-04-26-memory-sync-step3-cicd-results.md": [], - "docs/decisions/2026-04-26-phase-1-acceptance-gate-results.md": [], - "docs/decisions/2026-04-26-pilot-decision-template.md": [], - "docs/decisions/2026-04-26-pilot-verdict-FAIL.md": [], - "docs/decisions/2026-04-26-v2-pre-launch-sequencing-addendum.md": [], - "docs/decisions/2026-04-27-memory-sync-repair-CLOSED.md": [], - "docs/decisions/2026-04-27-phase-2-acceptance-gate-PASS.md": [], - "docs/decisions/2026-04-27-phase-2-gate-d3-rule-inspection.md": [], - "docs/decisions/2026-04-27-phase-3-acceptance-gate-pre-run-halt.md": [], - "docs/decisions/2026-04-27-phase-3-acceptance-gate-results.md": [], - "docs/decisions/2026-04-28-agent-fix-sprint-closure.md": [], - "docs/decisions/2026-04-28-gepa-faza1-launch.md": [], - "docs/decisions/2026-04-28-phase-4-3-pre-run-halt.md": [], - "docs/decisions/2026-04-28-phase-4-3-rescore-delta-report.md": [], - "docs/decisions/2026-04-28-phase-4-4-skills-audit-results.md": [], - "docs/decisions/2026-04-28-phase-4-5-tools-audit-results.md": [], - "docs/decisions/2026-04-28-test-coverage-gap-report.md": [], - "docs/decisions/2026-04-29-gepa-faza1-results.md": [], - "docs/decisions/2026-04-29-phase-5-brief-LOCKED.md": [], - "docs/decisions/2026-04-29-phase-5-scope-LOCKED.md": [], - "docs/decisions/2026-04-30-branch-architecture-opcija-c.md": [], - "docs/decisions/2026-04-30-phase-5-1-5-pm-signoff-canary-authorize.md": [], - "docs/decisions/2026-04-30-phase-5-cost-amendment-LOCKED.md": [], - "docs/decisions/2026-04-30-pre-launch-sprint-consolidation-LOCKED.md": [], - "docs/decisions/2026-04-30-wave-1-5-brief-queued-behind-live-test.md": [], - "docs/decisions/2026-04-30-wave-1-memory-install-cleanup-LOCKED.md": [], - "docs/decisions/2026-05-01-pass-7-block-c-close.md": [], - "docs/decisions/2026-05-02-landing-v32-surgical-edits.md": [], - "docs/decisions/2026-05-02-track-e-arxiv-7-decisions.md": [], - "docs/decisions/2026-05-02-track-h-hermes-canonical-integration.md": [], - "docs/design_handoff_waggle_app/DESIGN_POV.md": [], - "docs/design_handoff_waggle_app/design-files/screens/appsurfaces.html": [], - "docs/design_handoff_waggle_app/design-files/screens/auth.html": [], - "docs/design_handoff_waggle_app/design-files/screens/benchmark.html": [], - "docs/design_handoff_waggle_app/design-files/screens/billing.html": [], - "docs/design_handoff_waggle_app/design-files/screens/chat.html": [], - "docs/design_handoff_waggle_app/design-files/screens/evolution.html": [], - "docs/design_handoff_waggle_app/design-files/screens/habit.html": [], - "docs/design_handoff_waggle_app/design-files/screens/home.html": [], - "docs/design_handoff_waggle_app/design-files/screens/ia.html": [], - "docs/design_handoff_waggle_app/design-files/screens/launcher.html": [], - "docs/design_handoff_waggle_app/design-files/screens/marketplace.html": [], - "docs/design_handoff_waggle_app/design-files/screens/memory-trust.html": [], - "docs/design_handoff_waggle_app/design-files/screens/onboarding.html": [], - "docs/design_handoff_waggle_app/design-files/screens/platform.html": [], - "docs/design_handoff_waggle_app/design-files/screens/settings.html": [], - "docs/design_handoff_waggle_app/design-files/screens/storage.html": [], - "docs/design_handoff_waggle_app/design-files/screens/surfaces.html": [], - "docs/design_handoff_waggle_app/design-files/screens/workspace.html": [], - "docs/design_handoff_waggle_app/design-files/screens/workspaces.html": [], - "docs/design_handoff_waggle_app/design-files/styles/waggle.css": [], - "docs/design_handoff_waggle_app/design-files/Waggle Landing.html": [], - "docs/design_handoff_waggle_app/design-files/Waggle Reimagined.html": [], - "docs/design_handoff_waggle_app/README.md": [], - "docs/design_handoff_waggle_app/SCREENS.md": [], - "docs/design_handoff_waggle_app/screenshots/README.md": [], - "docs/e2e-2026-04-30-fix-log.md": [], - "docs/evidence/2026-04-30-cc-sesija-A-apps-web-integration-evidence.md": [], - "docs/evidence/2026-04-30-cc-sesija-A-PHASE-5-SMOKE-COMPLETE.md": [], - "docs/ga/GA-STATUS-2026-05-30.md": [], - "docs/ga/OPERATING-MANUAL.md": [], - "docs/ga/PHASE2-FAILURE-INJECTION-2026-05-30.md": [], - "docs/ga/PRODUCTION-PLAN.md": [], - "docs/ga/RECONCILIATION-2026-05-30.md": [], - "docs/ga/TRUST-REPORT.md": [], - "docs/GEPA-SCOPE-AUDIT-2026-04-30.md": [], - "docs/GETTING-STARTED.md": [], - "docs/guides/capabilities.md": [], - "docs/guides/connectors.md": [], - "docs/guides/getting-started.md": [], - "docs/guides/team-mode.md": [], - "docs/guides/troubleshooting.md": [], - "docs/guides/workspaces.md": [], - "docs/handoffs/2026-04-30-overnight-handoff-for-morning.md": [], - "docs/handoffs/2026-05-01-end-of-day-handoff.md": [], - "docs/handoffs/2026-05-02-day-0-readiness-checklist.md": [], - "docs/handoffs/2026-05-26-technical-team-handoff.md": [], - "docs/handoffs/2026-05-27-agent-core-review.md": [], - "docs/handoffs/2026-05-27-web-guidelines-review.md": [], - "docs/HARVEST-EXPORT-MANUAL.md": [], - "docs/HIVE-MIND-INTEGRATION-DESIGN.md": [], - "docs/kvark-http-api-requirements.md": [], - "docs/launch/drafts/2026-05-10-day-0-linkedin-post.md": [], - "docs/launch/drafts/2026-05-10-pavlukhin-evolveschema-arxiv-email.md": [], - "docs/launch/drafts/2026-05-12-apps-www-deployment-readiness.md": [], - "docs/launch/drafts/2026-05-12-egzakta-legal-text-drafts.md": [], - "docs/light-mode-audit-2026-05-07.md": [], - "docs/MAY-8-FOLLOWUP-REPORT-2026-05-08.md": [], - "docs/memory-architecture.md": [], - "docs/methodology.md": [], - "docs/MILESTONE-LAUNCH-STORY-VALIDATED-2026-04-30.md": [], - "docs/ONBOARDING-DAY-2-BACKLOG-2026-04-30.md": [], - "docs/ONBOARDING-INVESTIGATION-2026-04-30.md": [], - "docs/ONBOARDING.md": [], - "docs/OPS/stripe-smoke.md": [], - "docs/pilot/data-handling-policy.md": [], - "docs/pilot/nda-template.md": [], - "docs/plans/AI-OS-EXPLORATION-2026-05-19.md": [], - "docs/plans/APP-DIR-AUDIT-2026-04-19.md": [], - "docs/plans/BACKLOG-CONSOLIDATED-2026-04-17.md": [], - "docs/plans/BACKLOG-FULL-2026-04-18.md": [], - "docs/plans/BACKLOG-MASTER-2026-04-18.md": [], - "docs/plans/BACKLOG-RECONCILIATION-2026-04-19.md": [], - "docs/plans/BENCHMARK-LANDSCAPE-RESEARCH-2026-05-22.md": [], - "docs/plans/COMPLIANCE-AUDIT-2026-04-20.md": [], - "docs/plans/E-4-OSS-EXTRACTION-VERIFIED-2026-05-20.md": [], - "docs/plans/FILE-TOOLS-AUDIT-2026-04-20.md": [], - "docs/plans/H-AUDIT-1-DESIGN-DOC-2026-04-22.md": [], - "docs/plans/HARNESS-BENCHMARK-GOAL-2026-05-22.md": [], - "docs/plans/HARNESS-BENCHMARK-PLAN-2026-05-22.md": [], - "docs/plans/HARVEST-AUDIT-2026-04-20.md": [], - "docs/plans/HERMES-40-PREREG-2026-05-19.md": [], - "docs/plans/HERMES-40-RESULTS-2026-05-19.md": [], - "docs/plans/L-17-placeholder-audit-2026-04-19.md": [], - "docs/plans/LIVE-PREMIUM-VALIDATION-PREREG-2026-05-19.md": [], - "docs/plans/LIVE-PREMIUM-VALIDATION-RESULTS-2026-05-19.md": [], - "docs/plans/LPV2-PREREG-2026-05-19.md": [], - "docs/plans/M-13-NOTION-DECISION-2026-04-20.md": [], - "docs/plans/MEMORY-SOTA-PROPOSAL-2026-06-10.md": [], - "docs/plans/MOCK-STUB-AUDIT-2026-04-19.md": [], - "docs/plans/monorepo-migration-progress.md": [], - "docs/plans/OPEN-TASKS-2026-05-20.md": [], - "docs/plans/OPEN-WORK-SUMMARY-2026-05-26.md": [], - "docs/plans/OPUS-4-6-ROUTE-AUDIT.md": [], - "docs/plans/OS-PRODUCTION-AUDIT-2026-05-13.md": [], - "docs/plans/OSS-DRIFT-TRIAGE-2026-06-11.md": [], - "docs/plans/PDF-AUDIT-2026-04-20.md": [], - "docs/plans/PDF-DEFERRED-DECISIONS-2026-04-19.md": [], - "docs/plans/PDF-E2E-ISSUES-2026-04-17.md": [], - "docs/plans/PILLAR2-MEMORY-LONGMEMEVAL-PLAN-2026-05-22.md": [], - "docs/plans/PLAN-2026-04-19-TO-DO.md": [], - "docs/plans/POLISH-SPRINT-2026-04-18.md": [], - "docs/plans/SPRINT-10-CLOSEOUT-2026-04-22.md": [], - "docs/plans/STAGE-2-PREP-BACKLOG.md": [], - "docs/plans/UX-NORTHSTAR-2026-06-13.md": [], - "docs/plans/W4-PRODUCTION-PORT-PLAN-2026-06-11.md": [], - "docs/plans/WIKI-V2-AUDIT-2026-04-20.md": [], - "docs/PM-SYNC-PRE-DAY0-2026-05-05.md": [], - "docs/product-analysis/architecture-analysis.md": [], - "docs/product-analysis/competitive-analysis.md": [], - "docs/product-analysis/design-audit.md": [], - "docs/product-analysis/feature-inventory.md": [], - "docs/product-analysis/FOUNDER-REVIEW-V2.md": [], - "docs/product-analysis/FOUNDER-REVIEW.md": [], - "docs/product-analysis/ux-analysis.md": [], - "docs/product-analysis/WAGGLE-OS-PRODUCT-INTELLIGENCE.md": [], - "docs/production-readiness/01A-FEATURE_WAVES.md": [], - "docs/production-readiness/01B-DEPLOYMENT_PHASES.md": [], - "docs/production-readiness/02-UX_AUDIT.md": [], - "docs/production-readiness/03A-AGENT_QUALITY.md": [], - "docs/production-readiness/03B-SERVER_QUALITY.md": [], - "docs/production-readiness/03C-UI_QUALITY.md": [], - "docs/production-readiness/04A-APP_SECURITY.md": [], - "docs/production-readiness/04B-SECRETS_DEPS.md": [], - "docs/production-readiness/05-TEST_REPORT.md": [], - "docs/production-readiness/06-BUILD_REPORT.md": [], - "docs/production-readiness/07-ISSUE_REGISTER.md": [], - "docs/production-readiness/08-CONFIDENCE_MATRIX.md": [], - "docs/production-readiness/09-LAUNCH_RECOMMENDATION.md": [], - "docs/production-readiness/AUDIT_COMPLETE.md": [], - "docs/qa-polish-2026-06-24/FIX-PLAN.md": [], - "docs/qa-polish-2026-06-24/SMOKE-REPORT.md": [], - "docs/redesign-warm-hive/BUILD-PLAN.md": [], - "docs/redesign-warm-hive/PR3-BUILD-PLAN.md": [], - "docs/redesign-warm-hive/pr3-recon/chat.md": [], - "docs/redesign-warm-hive/pr3-recon/home.md": [], - "docs/redesign-warm-hive/pr3-recon/primitives.md": [], - "docs/redesign-warm-hive/pr3-recon/workspace.md": [], - "docs/redesign-warm-hive/PR35-BUILD-PLAN.md": [], - "docs/redesign-warm-hive/pr35-recon/01-frame-source-server.md": [], - "docs/redesign-warm-hive/pr35-recon/02-sse-step-path.md": [], - "docs/redesign-warm-hive/pr35-recon/03-pr3-hooks-primitives.md": [], - "docs/redesign-warm-hive/pr35-recon/04-design-screen19.md": [], - "docs/redesign-warm-hive/pr35-recon/05-memory-store-api.md": [], - "docs/redesign-warm-hive/PR4-BUILD-PLAN.md": [], - "docs/redesign-warm-hive/pr4-recon/01-marketplace-fe.md": [], - "docs/redesign-warm-hive/pr4-recon/02-marketplace-backend.md": [], - "docs/redesign-warm-hive/pr4-recon/03-install-state-sync.md": [], - "docs/redesign-warm-hive/pr4-recon/04-inline-in-chat.md": [], - "docs/redesign-warm-hive/pr4-recon/05-agent-pick-search.md": [], - "docs/redesign-warm-hive/pr4-recon/GROUNDING-2026-06-16.md": [], - "docs/redesign-warm-hive/PR5-BUILD-PLAN.md": [], - "docs/redesign-warm-hive/PR6-BUILD-PLAN.md": [], - "docs/redesign-warm-hive/PR7-BUILD-PLAN.md": [], - "docs/redesign-warm-hive/pr7-recon/01-stripe-backend.md": [], - "docs/redesign-warm-hive/pr7-recon/02-auth-session.md": [], - "docs/redesign-warm-hive/pr7-recon/03-screen-auth-design.md": [], - "docs/redesign-warm-hive/pr7-recon/04-screen-billing-design.md": [], - "docs/redesign-warm-hive/pr7-recon/05-clerk-integration.md": [], - "docs/redesign-warm-hive/pr7-recon/06-routing-surfaces.md": [], - "docs/redesign-warm-hive/pr7-recon/07-byo-vs-metered.md": [], - "docs/redesign-warm-hive/PR8-BUILD-PLAN.md": [], - "docs/redesign-warm-hive/smoke-20260615/FILE-CHOOSER-ROOT-CAUSE.md": [], - "docs/redesign-warm-hive/smoke-pr3-20260616/SMOKE-RESULTS.md": [], - "docs/redesign-warm-hive/smoke-pr35-20260616/SMOKE.md": [], - "docs/redesign-warm-hive/smoke-pr35-routes-live-20260616/REPORT.md": [], - "docs/redesign-warm-hive/smoke-pr4-20260617-after-search.txt": [], - "docs/redesign-warm-hive/smoke-pr4-20260617.md": [], - "docs/redesign-warm-hive/smoke-pr5-20260617/REPORT.md": [], - "docs/redesign-warm-hive/smoke-pr6a-20260618/REPORT.md": [], - "docs/redesign-warm-hive/smoke-pr6b-20260618/REPORT.md": [], - "docs/redesign-warm-hive/smoke-pr6c-20260618/REPORT.md": [], - "docs/redesign-warm-hive/smoke-pr7a-20260624/REPORT.md": [], - "docs/redesign-warm-hive/smoke-pr7b-20260624/REPORT.md": [], - "docs/redesign-warm-hive/smoke-pr8-20260624/REPORT.md": [], - "docs/reference/api.md": [], - "docs/reference/commands.md": [], - "docs/REMAINING-BACKLOG-2026-04-16.md": [], - "docs/reports/multi-vendor-ensemble-baseline-2026-04-21T08-56-43Z.md": [], - "docs/reports/opus-4-6-route-audit-2026-04-22.md": [], - "docs/reports/sonnet-calibration-2026-04-21T08-55-51Z.md": [], - "docs/research/01-oss-memory-packaging-strategy.md": [], - "docs/research/02-memory-system-scientific-draft.md": [], - "docs/research/03-memory-harvesting-strategy.md": [], - "docs/research/03-paper-skeleton-v2-2026-04-30.md": [], - "docs/research/04-competitive-landscape.md": [], - "docs/research/04-gepa-public-reveal-strategy.md": [], - "docs/research/05-user-personas-ai-os.md": [], - "docs/research/06-waggle-os-product-overview.md": [], - "docs/research/07-skills-connectors-strategy.md": [], - "docs/research/PAPER-1-CONCEPT_hive-mind-memory.md": [], - "docs/research/PAPER-2-CONCEPT_gepa-evolution.md": [], - "docs/research/README.md": [], - "docs/research/waggle-hive-mind-paper.md": [], - "docs/sessions/2026-05-01-S1-handoff.md": [], - "docs/specs/agent-backend-gaps.md": [], - "docs/specs/PROMPT-ASSEMBLER-V4.md": [], - "docs/specs/WIKI-COMPILER-SPEC.md": [], - "docs/strategy/2026-05-02-methodology-doc-FINAL.md": [], - "docs/strategy/2026-05-05-current-state-master.md": [], - "docs/superpowers/plans/2026-05-29-prod-readiness-phase1-network-auth.md": [], - "docs/superpowers/specs/2026-05-23-waggle-os-ux-design.md": [], - "docs/superpowers/specs/2026-06-01-hermes-compact-on-stop-design.md": [], - "docs/superpowers/specs/2026-06-01-openclaw-dedup-design.md": [], - "docs/superpowers/specs/2026-06-01-wave23-hook-feasibility-research.md": [], - "docs/superpowers/specs/2026-06-01-wave23-hook-stubs-design.md": [], - "docs/superpowers/specs/2026-06-09-temporal-substrate-fix-design.md": [], - "docs/test-plans/COMBINED-EFFECT-TEST-PLAN.docx": [], - "docs/test-plans/generate-combined-plan.mjs": [], - "docs/test-plans/generate-gepa-plan.mjs": [], - "docs/test-plans/generate-memory-plan.mjs": [], - "docs/test-plans/GEPA-EVOLUTION-TEST-PLAN.docx": [], - "docs/test-plans/MEMORY-HARVEST-TEST-PLAN.docx": [], - "docs/TOTAL-WORK-ESTIMATE.md": [], - "docs/ui-ux-audit-2026-05-27/BASELINE-FINDINGS.md": [], - "docs/ui-ux-audit-2026-05-27/FINAL-SCORECARD.md": [], - "docs/ui-ux-audit-2026-05-27/FIX-LIST.md": [], - "docs/ui-ux-audit-2026-05-27/ITER-1-RESULTS.md": [], - "docs/ui-ux-audit-2026-05-27/PERSONAS.md": [], - "docs/ui-ux-audit-2026-05-27/PLAN.md": [], - "docs/UX_REFACTOR_STATE_AUDIT.md": [], - "docs/UX-ASSESSMENT-2026-04-16.md": [], - "docs/ux-disclosure-levels.md": [], - "docs/ux-refactor/_inventory/backend-routes.md": [], - "docs/ux-refactor/_inventory/frontend.md": [], - "docs/ux-refactor/_inventory/substrate-types.md": [], - "docs/ux-refactor/_phase1-contract.md": [], - "docs/ux-refactor/2D-BUILD-PLAN.md": [], - "docs/ux-refactor/appshell-conversion-plan.md": [], - "docs/ux-refactor/deltas/backend-api-delta.md": [], - "docs/ux-refactor/deltas/coverage-check.md": [], - "docs/ux-refactor/deltas/design-system-delta.md": [], - "docs/ux-refactor/deltas/open-questions.md": [], - "docs/ux-refactor/deltas/rbac-security-delta.md": [], - "docs/ux-refactor/deltas/shared-types-delta.md": [], - "docs/ux-refactor/gap-cards/S00-appshell-ia.md": [], - "docs/ux-refactor/gap-cards/S01-home-cockpit.md": [], - "docs/ux-refactor/gap-cards/S02-workspace-desktop.md": [], - "docs/ux-refactor/gap-cards/S03-command-center.md": [], - "docs/ux-refactor/gap-cards/S04-memory-center.md": [], - "docs/ux-refactor/gap-cards/S05-artifact-center.md": [], - "docs/ux-refactor/gap-cards/S06-skills-hub.md": [], - "docs/ux-refactor/gap-cards/S07-connector-hub.md": [], - "docs/ux-refactor/gap-cards/S08-mcp-hub.md": [], - "docs/ux-refactor/gap-cards/S09-agent-center.md": [], - "docs/ux-refactor/gap-cards/S10-team-workspace.md": [], - "docs/ux-refactor/gap-cards/S11-automation-center.md": [], - "docs/ux-refactor/gap-cards/S12-first-launch.md": [], - "docs/ux-refactor/gap-cards/S13-who-are-you.md": [], - "docs/ux-refactor/gap-cards/S14-tool-discovery.md": [], - "docs/ux-refactor/gap-cards/S15-memory-import.md": [], - "docs/ux-refactor/gap-cards/S16-memory-review.md": [], - "docs/ux-refactor/gap-cards/S17-workspace-creation.md": [], - "docs/ux-refactor/gap-cards/S18-agent-builder.md": [], - "docs/ux-refactor/gap-cards/S19-skill-builder.md": [], - "docs/ux-refactor/gap-cards/S20-automation-builder.md": [], - "docs/ux-refactor/gap-cards/S21-marketplace-extend.md": [], - "docs/ux-refactor/IMPLEMENTATION-PLAN.md": [], - "docs/ux-refactor/oss-sync-finding-2026-06-12.md": [], - "docs/ux-refactor/p1a-residuals.md": [], - "docs/ux-refactor/p1b-auth-gate-plan.md": [], - "docs/ux-refactor/p1b-plan-review-record.md": [], - "docs/ux-refactor/p1b-residuals.md": [], - "docs/ux-refactor/p2-verification-record.md": [], - "docs/ux-refactor/p3-memory-center-plan.md": [], - "docs/ux-refactor/p3-review-record.md": [], - "docs/ux-refactor/p4-launch-integrity-record.md": [], - "docs/ux-refactor/p5-review-record.md": [], - "docs/ux-refactor/p5-skill-governance-plan.md": [], - "docs/ux-refactor/p7-d15-scope.md": [], - "docs/ux-refactor/p7-p5-live-smoke-record.md": [], - "docs/ux-refactor/p7-track-a-review-record.md": [], - "docs/ux-refactor/p7-track-b-review-record.md": [], - "docs/ux-refactor/README.md": [], - "docs/visuals/AGENT-BEHAVIOR.html": [], - "docs/visuals/MARKETPLACE-CONNECTORS.html": [], - "docs/visuals/STRATEGIC-LAUNCH-SEQUENCE.html": [], - "docs/visuals/TEAMS-ARCHITECTURE.html": [], - "docs/visuals/TEMPLATES-PERSONAS.html": [], - "docs/visuals/TIERS-FEATURES.html": [], - "docs/visuals/WAGGLE-DANCE.html": [], - "docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/_blueprint_extracted.txt": [], - "docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/NAMING-ERRATUM.md": [], - "docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/Waggle_OS_Claude_Code_Implementation_Handoff.md": [], - "docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/Waggle_OS_Handoff_Assets/ASSET_MANIFEST.json": [], - "docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/Waggle_OS_Handoff_Assets/README.md": [], - "docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/Waggle_OS_UX_Refactor_PRD.md": [], - "docs/WAGGLE_USER_TEST_PROTOCOL.md": [], - "docs/WAGGLE-COMPLETE-CONSOLIDATED-BRIEF.md": [], - "docs/WAGGLE-CORNERSTONE.md": [], - "docs/WAGGLE-MEMORY-PLUGIN-BRIEF.md": [], - "docs/waggle-mental-model.html": [], - "docs/waggle-os-architecture-mindmap.html": [], - "docs/waggle-os-explained-simply.html": [], - "docs/waggle-os-features-and-comparison.html": [], - "docs/waggle-os-mental-model.html": [], - "docs/WAGGLE-SYSTEM-MAP.md": [], - "docs/WAGGLE-SYSTEM-VISUAL.html": [], - "docs/wiki-live/egzakta-group.md": [], - "docs/wiki-live/index.md": [], - "docs/wiki-live/kvark.md": [], - "docs/wiki-live/marko-markovic.md": [], - "docs/wiki-live/memory-harvest.md": [], - "docs/wiki-live/synthesis-waggle-os.md": [], - "docs/wiki-live/waggle-os.md": [], - "docs/wiki-live/wiki-compiler.md": [], - "docs/wiki-test/concepts/development-velocity.md": [], - "docs/wiki-test/concepts/mind-architecture.md": [], - "docs/wiki-test/entities/egzakta-group.md": [], - "docs/wiki-test/entities/kvark.md": [], - "docs/wiki-test/entities/marko-markovic.md": [], - "docs/wiki-test/entities/waggle-os.md": [], - "docs/wiki-test/health.md": [], - "docs/wiki-test/index.md": [], - "eslint.config.js": [], - "EVAL-RESULTS-V5.md": [], - "EVAL-RESULTS.md": [], - "gepa-phase-5/canary-kickoff.jsonl": [], - "gepa-phase-5/cost-probe-2026-04-29-summary.md": [], - "gepa-phase-5/cost-probe-2026-04-29.jsonl": [], - "gepa-phase-5/cross-stream.md": [], - "gepa-phase-5/exit-criteria-coverage.md": [], - "gepa-phase-5/manifest.yaml": [], - "gepa-phase-5/preflight-evidence.md": [], - "gepa-phase-5/scripts/cost-probe.ts": [ - "packages/agent/src/prompt-shapes/gepa-evolved/claude-gen1-v1.ts", - "packages/agent/src/prompt-shapes/gepa-evolved/qwen-thinking-gen1-v1.ts" - ], - "gepa-phase-5/scripts/phase-5-daily-summary.ts": [], - "judging/FINAL-REPORT.md": [], - "judging/judge-1-novice.md": [], - "judging/judge-2-casual-professional.md": [], - "judging/judge-3-power-user.md": [], - "judging/judge-4-junior-developer.md": [], - "judging/judge-5-senior-skeptic.md": [], - "judging/round1-fixes.md": [], - "judging/round2/judge-1-novice.md": [], - "judging/round2/judge-2-casual-professional.md": [], - "judging/round2/judge-3-power-user.md": [], - "judging/round2/judge-4-junior-developer.md": [], - "judging/round2/judge-5-senior-skeptic.md": [], - "judging/round2/verifier-report.md": [], - "judging/round3/judge-1-novice.md": [], - "judging/round3/judge-2-casual-professional.md": [], - "judging/round3/judge-3-power-user.md": [], - "judging/round3/judge-4-junior-developer.md": [], - "judging/round3/judge-5-senior-skeptic.md": [], - "judging/round3/verifier-report.md": [], - "judging/verifier-report.md": [], - "litellm-config.yaml": [], - "notes/error-as-empty.md": [], - "notes/judge-round1-patterns.md": [], - "notes/memory-import-is-the-aha.md": [], - "notes/provenance-not-raw-logs.md": [], - "notes/risk-vocabulary-drift.md": [], - "notes/silent-defaults-over-ratification.md": [], - "notes/staged-evidence-catch22.md": [], - "ops/litellm/README.md": [], - "package.json": [], - "packages/admin-web/index.html": [], - "packages/admin-web/package.json": [], - "packages/admin-web/src/api.ts": [], - "packages/admin-web/src/App.tsx": [ - "packages/admin-web/src/pages/Analytics.tsx", - "packages/admin-web/src/pages/Audit.tsx", - "packages/admin-web/src/pages/Capabilities.tsx", - "packages/admin-web/src/pages/Dashboard.tsx", - "packages/admin-web/src/pages/Jobs.tsx", - "packages/admin-web/src/pages/Members.tsx", - "packages/admin-web/src/pages/TeamSettings.tsx" - ], - "packages/admin-web/src/main.tsx": [ - "packages/admin-web/src/App.tsx" - ], - "packages/admin-web/src/pages/Analytics.tsx": [ - "packages/admin-web/src/api.ts" - ], - "packages/admin-web/src/pages/Audit.tsx": [ - "packages/admin-web/src/api.ts" - ], - "packages/admin-web/src/pages/Capabilities.tsx": [ - "packages/admin-web/src/api.ts" - ], - "packages/admin-web/src/pages/Dashboard.tsx": [ - "packages/admin-web/src/api.ts" - ], - "packages/admin-web/src/pages/Jobs.tsx": [ - "packages/admin-web/src/api.ts" - ], - "packages/admin-web/src/pages/Members.tsx": [ - "packages/admin-web/src/api.ts" - ], - "packages/admin-web/src/pages/TeamSettings.tsx": [ - "packages/admin-web/src/api.ts" - ], - "packages/admin-web/src/vite-env.d.ts": [], - "packages/admin-web/tests/admin-pages.test.ts": [ - "packages/admin-web/src/api.ts", - "packages/admin-web/src/App.tsx", - "packages/admin-web/src/pages/Analytics.tsx", - "packages/admin-web/src/pages/Audit.tsx", - "packages/admin-web/src/pages/Capabilities.tsx", - "packages/admin-web/src/pages/Dashboard.tsx", - "packages/admin-web/src/pages/Jobs.tsx", - "packages/admin-web/src/pages/Members.tsx", - "packages/admin-web/src/pages/TeamSettings.tsx" - ], - "packages/admin-web/tsconfig.json": [], - "packages/admin-web/vite.config.ts": [], - "packages/agent/config/model-prompt-shapes.json": [], - "packages/agent/package.json": [], - "packages/agent/src/agent-comms-tools.ts": [ - "packages/agent/src/agent-message-bus.ts", - "packages/agent/src/tools.ts" - ], - "packages/agent/src/agent-learning.ts": [], - "packages/agent/src/agent-loop.ts": [ - "packages/agent/src/capability-router.ts", - "packages/agent/src/hooks.ts", - "packages/agent/src/loop-gates.ts", - "packages/agent/src/loop-guard.ts", - "packages/agent/src/retry-policy.ts", - "packages/agent/src/sse-parser.ts", - "packages/agent/src/tool-executor.ts", - "packages/agent/src/tools.ts", - "packages/agent/src/trace-recorder.ts", - "packages/agent/src/turn-context.ts" - ], - "packages/agent/src/agent-message-bus.ts": [], - "packages/agent/src/audit-tools.ts": [ - "packages/agent/src/tools.ts" - ], - "packages/agent/src/auto-identity.ts": [], - "packages/agent/src/behavioral-spec.ts": [], - "packages/agent/src/browser-tools.ts": [ - "packages/agent/src/tools.ts" - ], - "packages/agent/src/builtin-harnesses.ts": [ - "packages/agent/src/workflow-harness.ts" - ], - "packages/agent/src/canary/phase-5-monitoring.ts": [], - "packages/agent/src/canary/phase-5-router.ts": [ - "packages/agent/src/feature-flags.ts", - "packages/agent/src/prompt-shapes/selector.ts", - "packages/agent/src/prompt-shapes/types.ts" - ], - "packages/agent/src/capability-acquisition.ts": [ - "packages/agent/src/skill-frontmatter.ts", - "packages/agent/src/trust-model.ts" - ], - "packages/agent/src/capability-router.ts": [], - "packages/agent/src/cli-tools.ts": [ - "packages/agent/src/tools.ts" - ], - "packages/agent/src/cognify.ts": [ - "packages/agent/src/entity-extractor.ts", - "packages/agent/src/memory-linker.ts", - "packages/agent/src/turn-context.ts" - ], - "packages/agent/src/combined-retrieval.ts": [ - "packages/agent/src/kvark-tools.ts", - "packages/agent/src/turn-context.ts" - ], - "packages/agent/src/commands/command-registry.ts": [], - "packages/agent/src/commands/marketplace-commands.ts": [ - "packages/agent/src/commands/command-registry.ts" - ], - "packages/agent/src/commands/workflow-commands.ts": [ - "packages/agent/src/commands/command-registry.ts" - ], - "packages/agent/src/compliance-pdf.ts": [], - "packages/agent/src/compose-evolution.ts": [ - "packages/agent/src/eval-dataset.ts", - "packages/agent/src/evolution-llm-wiring.ts", - "packages/agent/src/evolve-schema.ts", - "packages/agent/src/iterative-optimizer.ts", - "packages/agent/src/judge.ts" - ], - "packages/agent/src/confirmation.ts": [ - "packages/agent/src/trust-model.ts" - ], - "packages/agent/src/connector-registry.ts": [ - "packages/agent/src/connector-sdk.ts", - "packages/agent/src/tools.ts" - ], - "packages/agent/src/connector-sdk.ts": [], - "packages/agent/src/connector-search.ts": [ - "packages/agent/src/tools.ts" - ], - "packages/agent/src/connectors/airtable-connector.ts": [ - "packages/agent/src/connector-sdk.ts" - ], - "packages/agent/src/connectors/asana-connector.ts": [ - "packages/agent/src/connector-sdk.ts" - ], - "packages/agent/src/connectors/bitbucket-connector.ts": [ - "packages/agent/src/connector-sdk.ts" - ], - "packages/agent/src/connectors/composio-connector.ts": [ - "packages/agent/src/connector-sdk.ts" - ], - "packages/agent/src/connectors/confluence-connector.ts": [ - "packages/agent/src/connector-sdk.ts" - ], - "packages/agent/src/connectors/discord-connector.ts": [ - "packages/agent/src/connector-sdk.ts" - ], - "packages/agent/src/connectors/dropbox-connector.ts": [ - "packages/agent/src/connector-sdk.ts" - ], - "packages/agent/src/connectors/email-connector.ts": [ - "packages/agent/src/connector-sdk.ts" - ], - "packages/agent/src/connectors/gcal-connector.ts": [ - "packages/agent/src/connector-sdk.ts" - ], - "packages/agent/src/connectors/gdocs-connector.ts": [ - "packages/agent/src/connector-sdk.ts" - ], - "packages/agent/src/connectors/gdrive-connector.ts": [ - "packages/agent/src/connector-sdk.ts" - ], - "packages/agent/src/connectors/github-connector.ts": [ - "packages/agent/src/connector-sdk.ts" - ], - "packages/agent/src/connectors/gitlab-connector.ts": [ - "packages/agent/src/connector-sdk.ts" - ], - "packages/agent/src/connectors/gmail-connector.ts": [ - "packages/agent/src/connector-sdk.ts" - ], - "packages/agent/src/connectors/gsheets-connector.ts": [ - "packages/agent/src/connector-sdk.ts" - ], - "packages/agent/src/connectors/hubspot-connector.ts": [ - "packages/agent/src/connector-sdk.ts" - ], - "packages/agent/src/connectors/index.ts": [], - "packages/agent/src/connectors/jira-connector.ts": [ - "packages/agent/src/connector-sdk.ts" - ], - "packages/agent/src/connectors/linear-connector.ts": [ - "packages/agent/src/connector-sdk.ts" - ], - "packages/agent/src/connectors/monday-connector.ts": [ - "packages/agent/src/connector-sdk.ts" - ], - "packages/agent/src/connectors/ms-teams-connector.ts": [ - "packages/agent/src/connector-sdk.ts" - ], - "packages/agent/src/connectors/notion-connector.ts": [ - "packages/agent/src/connector-sdk.ts" - ], - "packages/agent/src/connectors/obsidian-connector.ts": [ - "packages/agent/src/connector-sdk.ts" - ], - "packages/agent/src/connectors/onedrive-connector.ts": [ - "packages/agent/src/connector-sdk.ts" - ], - "packages/agent/src/connectors/onenote-connector.ts": [ - "packages/agent/src/connector-sdk.ts" - ], - "packages/agent/src/connectors/outlook-connector.ts": [ - "packages/agent/src/connector-sdk.ts" - ], - "packages/agent/src/connectors/pipedrive-connector.ts": [ - "packages/agent/src/connector-sdk.ts" - ], - "packages/agent/src/connectors/postgres-connector.ts": [ - "packages/agent/src/connector-sdk.ts" - ], - "packages/agent/src/connectors/salesforce-connector.ts": [ - "packages/agent/src/connector-sdk.ts" - ], - "packages/agent/src/connectors/slack-connector.ts": [ - "packages/agent/src/connector-sdk.ts" - ], - "packages/agent/src/connectors/trello-connector.ts": [ - "packages/agent/src/connector-sdk.ts" - ], - "packages/agent/src/content-constants.ts": [], - "packages/agent/src/context-compressor.ts": [ - "packages/agent/src/behavioral-spec.ts" - ], - "packages/agent/src/context-loader.ts": [ - "packages/agent/src/content-constants.ts", - "packages/agent/src/injection-scanner.ts" - ], - "packages/agent/src/contradiction-detector.ts": [], - "packages/agent/src/correction-detector.ts": [], - "packages/agent/src/cost-tracker.ts": [], - "packages/agent/src/credential-pool.ts": [], - "packages/agent/src/cron-delivery-router.ts": [], - "packages/agent/src/cron-tools.ts": [ - "packages/agent/src/tools.ts" - ], - "packages/agent/src/cross-workspace-tools.ts": [ - "packages/agent/src/tools.ts" - ], - "packages/agent/src/custom-personas.ts": [ - "packages/agent/src/personas.ts" - ], - "packages/agent/src/custom-workflows.ts": [ - "packages/agent/src/subagent-orchestrator.ts" - ], - "packages/agent/src/document-tools.ts": [ - "packages/agent/src/tools.ts" - ], - "packages/agent/src/entity-extractor.ts": [], - "packages/agent/src/eval-dataset.ts": [], - "packages/agent/src/evolution-deploy.ts": [ - "packages/agent/src/personas.ts" - ], - "packages/agent/src/evolution-gates.ts": [ - "packages/agent/src/iterative-optimizer.ts" - ], - "packages/agent/src/evolution-llm-wiring.ts": [ - "packages/agent/src/evolve-schema.ts", - "packages/agent/src/iterative-optimizer.ts", - "packages/agent/src/judge.ts" - ], - "packages/agent/src/evolution-orchestrator.ts": [ - "packages/agent/src/compose-evolution.ts", - "packages/agent/src/eval-dataset.ts", - "packages/agent/src/evolution-gates.ts" - ], - "packages/agent/src/evolve-schema.ts": [ - "packages/agent/src/eval-dataset.ts", - "packages/agent/src/judge.ts" - ], - "packages/agent/src/feature-flags.ts": [], - "packages/agent/src/feedback-handler.ts": [], - "packages/agent/src/git-tools.ts": [ - "packages/agent/src/tools.ts" - ], - "packages/agent/src/grounding-check.ts": [], - "packages/agent/src/harness-trace-bridge.ts": [ - "packages/agent/src/trace-recorder.ts", - "packages/agent/src/workflow-harness.ts" - ], - "packages/agent/src/hook-loader.ts": [ - "packages/agent/src/hooks.ts" - ], - "packages/agent/src/hooks.ts": [], - "packages/agent/src/improvement-detector.ts": [ - "packages/agent/src/correction-detector.ts" - ], - "packages/agent/src/improvement-wiring.ts": [ - "packages/agent/src/correction-detector.ts", - "packages/agent/src/task-shape.ts" - ], - "packages/agent/src/index.ts": [], - "packages/agent/src/insights-tools.ts": [ - "packages/agent/src/tools.ts" - ], - "packages/agent/src/injection-scanner.ts": [], - "packages/agent/src/iteration-budget.ts": [], - "packages/agent/src/iterative-optimizer.ts": [ - "packages/agent/src/eval-dataset.ts", - "packages/agent/src/evolution-llm-wiring.ts", - "packages/agent/src/judge.ts" - ], - "packages/agent/src/judge.ts": [], - "packages/agent/src/kvark-tools.ts": [ - "packages/agent/src/tools.ts" - ], - "packages/agent/src/long-task/checkpoint.ts": [], - "packages/agent/src/long-task/context-manager.ts": [ - "packages/agent/src/context-compressor.ts", - "packages/agent/src/long-task/checkpoint.ts", - "packages/agent/src/retrieval-agent-loop.ts" - ], - "packages/agent/src/long-task/failure-classify.ts": [ - "packages/agent/src/retrieval-agent-loop.ts" - ], - "packages/agent/src/long-task/messages-compressor.ts": [ - "packages/agent/src/behavioral-spec.ts", - "packages/agent/src/context-compressor.ts", - "packages/agent/src/retrieval-agent-loop.ts" - ], - "packages/agent/src/long-task/recovery.ts": [ - "packages/agent/src/long-task/checkpoint.ts" - ], - "packages/agent/src/long-task/report.ts": [ - "packages/agent/src/long-task/failure-classify.ts" - ], - "packages/agent/src/loop-gates.ts": [ - "packages/agent/src/skill-distillation.ts", - "packages/agent/src/turn-context.ts", - "packages/agent/src/verification-gate.ts" - ], - "packages/agent/src/loop-guard.ts": [], - "packages/agent/src/lsp-tools.ts": [ - "packages/agent/src/tools.ts" - ], - "packages/agent/src/mcp/mcp-runtime.ts": [ - "packages/agent/src/tools.ts" - ], - "packages/agent/src/memory-linker.ts": [], - "packages/agent/src/memory-sign-gate.ts": [], - "packages/agent/src/model-family.ts": [], - "packages/agent/src/model-router.ts": [], - "packages/agent/src/model-tier.ts": [], - "packages/agent/src/optimization-capture.ts": [ - "packages/agent/src/agent-loop.ts" - ], - "packages/agent/src/orchestrator.ts": [ - "packages/agent/src/cognify.ts", - "packages/agent/src/content-constants.ts", - "packages/agent/src/context-loader.ts", - "packages/agent/src/improvement-detector.ts", - "packages/agent/src/injection-scanner.ts", - "packages/agent/src/model-tier.ts", - "packages/agent/src/pattern-write-back.ts", - "packages/agent/src/personas.ts", - "packages/agent/src/prompt-assembler.ts", - "packages/agent/src/self-awareness.ts", - "packages/agent/src/tools.ts", - "packages/agent/src/turn-context.ts" - ], - "packages/agent/src/output-normalize.ts": [], - "packages/agent/src/pattern-write-back.ts": [ - "packages/agent/src/cognify.ts", - "packages/agent/src/content-constants.ts", - "packages/agent/src/memory-sign-gate.ts" - ], - "packages/agent/src/pdf-tools.ts": [ - "packages/agent/src/tools.ts" - ], - "packages/agent/src/permissions.ts": [ - "packages/agent/src/tools.ts" - ], - "packages/agent/src/persona-data.ts": [ - "packages/agent/src/personas.ts" - ], - "packages/agent/src/personas.ts": [ - "packages/agent/src/custom-personas.ts", - "packages/agent/src/persona-data.ts" - ], - "packages/agent/src/plan-tools.ts": [ - "packages/agent/src/plan.ts", - "packages/agent/src/tools.ts" - ], - "packages/agent/src/plan.ts": [], - "packages/agent/src/presentation-tools.ts": [ - "packages/agent/src/tools.ts" - ], - "packages/agent/src/prompt-assembler.ts": [ - "packages/agent/src/model-tier.ts", - "packages/agent/src/orchestrator.ts", - "packages/agent/src/personas.ts", - "packages/agent/src/task-shape.ts", - "packages/agent/src/turn-context.ts" - ], - "packages/agent/src/prompt-loader.ts": [ - "packages/agent/src/behavioral-spec.ts", - "packages/agent/src/custom-personas.ts", - "packages/agent/src/evolution-deploy.ts", - "packages/agent/src/personas.ts" - ], - "packages/agent/src/prompt-shapes/claude.ts": [ - "packages/agent/src/prompt-shapes/types.ts" - ], - "packages/agent/src/prompt-shapes/generic-simple.ts": [ - "packages/agent/src/prompt-shapes/types.ts" - ], - "packages/agent/src/prompt-shapes/gepa-evolved/claude-gen1-v1.ts": [ - "packages/agent/src/prompt-shapes/types.ts" - ], - "packages/agent/src/prompt-shapes/gepa-evolved/claude-gen1-v2.ts": [ - "packages/agent/src/prompt-shapes/types.ts" - ], - "packages/agent/src/prompt-shapes/gepa-evolved/generic-simple-gen1-v1.ts": [ - "packages/agent/src/prompt-shapes/types.ts" - ], - "packages/agent/src/prompt-shapes/gepa-evolved/generic-simple-gen1-v2.ts": [ - "packages/agent/src/prompt-shapes/types.ts" - ], - "packages/agent/src/prompt-shapes/gepa-evolved/gpt-gen1-v1.ts": [ - "packages/agent/src/prompt-shapes/types.ts" - ], - "packages/agent/src/prompt-shapes/gepa-evolved/gpt-gen1-v2.ts": [ - "packages/agent/src/prompt-shapes/types.ts" - ], - "packages/agent/src/prompt-shapes/gepa-evolved/qwen-non-thinking-gen1-v1.ts": [ - "packages/agent/src/prompt-shapes/types.ts" - ], - "packages/agent/src/prompt-shapes/gepa-evolved/qwen-non-thinking-gen1-v2.ts": [ - "packages/agent/src/prompt-shapes/types.ts" - ], - "packages/agent/src/prompt-shapes/gepa-evolved/qwen-thinking-gen1-v1.ts": [ - "packages/agent/src/prompt-shapes/types.ts" - ], - "packages/agent/src/prompt-shapes/gepa-evolved/qwen-thinking-gen1-v2.ts": [ - "packages/agent/src/prompt-shapes/types.ts" - ], - "packages/agent/src/prompt-shapes/gpt.ts": [ - "packages/agent/src/prompt-shapes/types.ts" - ], - "packages/agent/src/prompt-shapes/index.ts": [], - "packages/agent/src/prompt-shapes/qwen-non-thinking.ts": [ - "packages/agent/src/prompt-shapes/types.ts" - ], - "packages/agent/src/prompt-shapes/qwen-thinking.ts": [ - "packages/agent/src/prompt-shapes/types.ts" - ], - "packages/agent/src/prompt-shapes/README.md": [], - "packages/agent/src/prompt-shapes/selector.ts": [ - "packages/agent/src/prompt-shapes/claude.ts", - "packages/agent/src/prompt-shapes/generic-simple.ts", - "packages/agent/src/prompt-shapes/gpt.ts", - "packages/agent/src/prompt-shapes/qwen-non-thinking.ts", - "packages/agent/src/prompt-shapes/qwen-thinking.ts", - "packages/agent/src/prompt-shapes/types.ts" - ], - "packages/agent/src/prompt-shapes/types.ts": [], - "packages/agent/src/providers/openai-compat.ts": [ - "packages/agent/src/model-router.ts" - ], - "packages/agent/src/quality-controller.ts": [], - "packages/agent/src/result-formatter.ts": [ - "packages/agent/src/combined-retrieval.ts" - ], - "packages/agent/src/retrieval-agent-loop.ts": [ - "packages/agent/src/canary/phase-5-router.ts", - "packages/agent/src/long-task/checkpoint.ts", - "packages/agent/src/long-task/context-manager.ts", - "packages/agent/src/long-task/messages-compressor.ts", - "packages/agent/src/output-normalize.ts", - "packages/agent/src/prompt-shapes/index.ts", - "packages/agent/src/run-meta.ts" - ], - "packages/agent/src/retry-policy.ts": [], - "packages/agent/src/run-meta.ts": [ - "packages/agent/src/output-normalize.ts" - ], - "packages/agent/src/search-tools.ts": [ - "packages/agent/src/tools.ts" - ], - "packages/agent/src/self-awareness.ts": [ - "packages/agent/src/improvement-detector.ts" - ], - "packages/agent/src/skill-autoextract.ts": [ - "packages/agent/src/skill-creator.ts", - "packages/agent/src/skill-redaction.ts" - ], - "packages/agent/src/skill-creator.ts": [], - "packages/agent/src/skill-distillation.ts": [ - "packages/agent/src/memory-sign-gate.ts" - ], - "packages/agent/src/skill-frontmatter.ts": [], - "packages/agent/src/skill-recommender.ts": [], - "packages/agent/src/skill-redaction.ts": [ - "packages/agent/src/eval-dataset.ts" - ], - "packages/agent/src/skill-retirement.ts": [ - "packages/agent/src/skill-usage.ts" - ], - "packages/agent/src/skill-tools.ts": [ - "packages/agent/src/capability-acquisition.ts", - "packages/agent/src/skill-autoextract.ts", - "packages/agent/src/skill-creator.ts", - "packages/agent/src/skill-frontmatter.ts", - "packages/agent/src/skill-recommender.ts", - "packages/agent/src/skill-redaction.ts", - "packages/agent/src/skill-retirement.ts", - "packages/agent/src/skill-write-service.ts", - "packages/agent/src/tools.ts", - "packages/agent/src/trust-model.ts" - ], - "packages/agent/src/skill-usage.ts": [], - "packages/agent/src/skill-watcher.ts": [], - "packages/agent/src/skill-write-service.ts": [ - "packages/agent/src/skill-frontmatter.ts", - "packages/agent/src/skill-redaction.ts" - ], - "packages/agent/src/smart-router.ts": [], - "packages/agent/src/spreadsheet-tools.ts": [ - "packages/agent/src/tools.ts" - ], - "packages/agent/src/sse-parser.ts": [], - "packages/agent/src/subagent-orchestrator.ts": [ - "packages/agent/src/agent-loop.ts", - "packages/agent/src/tools.ts" - ], - "packages/agent/src/subagent-tools.ts": [ - "packages/agent/src/agent-loop.ts", - "packages/agent/src/hooks.ts", - "packages/agent/src/tools.ts" - ], - "packages/agent/src/system-tools-helpers.ts": [], - "packages/agent/src/system-tools.ts": [ - "packages/agent/src/system-tools-helpers.ts", - "packages/agent/src/tools.ts", - "packages/agent/src/web-search-utils.ts" - ], - "packages/agent/src/task-shape.ts": [], - "packages/agent/src/team-tools.ts": [ - "packages/agent/src/tools.ts" - ], - "packages/agent/src/text-analysis.ts": [], - "packages/agent/src/tool-detection.ts": [], - "packages/agent/src/tool-executor.ts": [ - "packages/agent/src/capability-router.ts", - "packages/agent/src/hooks.ts", - "packages/agent/src/injection-scanner.ts", - "packages/agent/src/loop-guard.ts", - "packages/agent/src/tools.ts", - "packages/agent/src/turn-context.ts" - ], - "packages/agent/src/tool-filter.ts": [ - "packages/agent/src/tools.ts" - ], - "packages/agent/src/tool-launcher.ts": [], - "packages/agent/src/tool-process-tracker.ts": [], - "packages/agent/src/tools.ts": [ - "packages/agent/src/cognify.ts", - "packages/agent/src/contradiction-detector.ts", - "packages/agent/src/feedback-handler.ts", - "packages/agent/src/injection-scanner.ts", - "packages/agent/src/text-analysis.ts" - ], - "packages/agent/src/trace-recorder.ts": [], - "packages/agent/src/trust-model.ts": [ - "packages/agent/src/capability-acquisition.ts" - ], - "packages/agent/src/turn-context.ts": [], - "packages/agent/src/verification-gate.ts": [], - "packages/agent/src/web-search-utils.ts": [], - "packages/agent/src/workflow-capture.ts": [ - "packages/agent/src/skill-creator.ts" - ], - "packages/agent/src/workflow-composer.ts": [ - "packages/agent/src/builtin-harnesses.ts", - "packages/agent/src/feature-flags.ts", - "packages/agent/src/prompt-loader.ts", - "packages/agent/src/subagent-orchestrator.ts", - "packages/agent/src/task-shape.ts", - "packages/agent/src/workflow-harness.ts" - ], - "packages/agent/src/workflow-harness.ts": [], - "packages/agent/src/workflow-templates.ts": [ - "packages/agent/src/subagent-orchestrator.ts" - ], - "packages/agent/src/workflow-tools.ts": [ - "packages/agent/src/builtin-harnesses.ts", - "packages/agent/src/hooks.ts", - "packages/agent/src/prompt-loader.ts", - "packages/agent/src/subagent-orchestrator.ts", - "packages/agent/src/task-shape.ts", - "packages/agent/src/tools.ts", - "packages/agent/src/workflow-composer.ts", - "packages/agent/src/workflow-harness.ts", - "packages/agent/src/workflow-templates.ts" - ], - "packages/agent/src/workspace.ts": [], - "packages/agent/tests/agent-intelligence.test.ts": [ - "packages/agent/src/tools.ts", - "packages/server/src/local/routes/chat.ts" - ], - "packages/agent/tests/agent-loop-network-retry.test.ts": [ - "packages/agent/src/agent-loop.ts", - "packages/agent/src/retry-policy.ts" - ], - "packages/agent/tests/agent-loop-tracing.test.ts": [ - "packages/agent/src/agent-loop.ts", - "packages/agent/src/tools.ts", - "packages/agent/src/trace-recorder.ts" - ], - "packages/agent/tests/agent-loop.test.ts": [ - "packages/agent/src/agent-loop.ts", - "packages/agent/src/capability-router.ts", - "packages/agent/src/tools.ts" - ], - "packages/agent/tests/agent-message-bus.test.ts": [ - "packages/agent/src/agent-comms-tools.ts", - "packages/agent/src/agent-message-bus.ts" - ], - "packages/agent/tests/audit-tools.test.ts": [ - "packages/agent/src/audit-tools.ts" - ], - "packages/agent/tests/auto-identity.test.ts": [ - "packages/agent/src/auto-identity.ts" - ], - "packages/agent/tests/background-bash.test.ts": [ - "packages/agent/src/system-tools.ts", - "packages/agent/src/tools.ts" - ], - "packages/agent/tests/background-task-cleanup.test.ts": [ - "packages/agent/src/system-tools.ts" - ], - "packages/agent/tests/bash-sandboxing.test.ts": [ - "packages/agent/src/system-tools.ts", - "packages/agent/src/tools.ts" - ], - "packages/agent/tests/behavioral-spec-overrides.test.ts": [ - "packages/agent/src/behavioral-spec.ts" - ], - "packages/agent/tests/browser-tools.test.ts": [ - "packages/agent/src/browser-tools.ts", - "packages/agent/src/tools.ts" - ], - "packages/agent/tests/capability-acquisition-trust.test.ts": [ - "packages/agent/src/capability-acquisition.ts" - ], - "packages/agent/tests/capability-acquisition.test.ts": [ - "packages/agent/src/capability-acquisition.ts" - ], - "packages/agent/tests/capability-marketplace.test.ts": [ - "packages/agent/src/capability-acquisition.ts", - "packages/agent/src/skill-tools.ts" - ], - "packages/agent/tests/capability-router.test.ts": [ - "packages/agent/src/capability-router.ts" - ], - "packages/agent/tests/cli-tools.test.ts": [ - "packages/agent/src/cli-tools.ts" - ], - "packages/agent/tests/cognify-linking.test.ts": [ - "packages/agent/src/cognify.ts", - "packages/hive-mind-core/tests/mind/helpers/mock-embedder.ts" - ], - "packages/agent/tests/cognify.test.ts": [ - "packages/agent/src/cognify.ts", - "packages/hive-mind-core/tests/mind/helpers/mock-embedder.ts" - ], - "packages/agent/tests/combined-retrieval.test.ts": [ - "packages/agent/src/combined-retrieval.ts", - "packages/agent/src/kvark-tools.ts" - ], - "packages/agent/tests/compliance-pdf.test.ts": [ - "packages/agent/src/compliance-pdf.ts" - ], - "packages/agent/tests/compose-evolution.test.ts": [ - "packages/agent/src/compose-evolution.ts", - "packages/agent/src/eval-dataset.ts", - "packages/agent/src/evolve-schema.ts", - "packages/agent/src/judge.ts" - ], - "packages/agent/tests/compose-workflow-tool.test.ts": [ - "packages/agent/src/agent-loop.ts", - "packages/agent/src/tools.ts", - "packages/agent/src/workflow-tools.ts" - ], - "packages/agent/tests/confirmation.test.ts": [ - "packages/agent/src/confirmation.ts" - ], - "packages/agent/tests/conflict-detection.test.ts": [ - "packages/agent/src/combined-retrieval.ts", - "packages/agent/src/kvark-tools.ts", - "packages/agent/src/tools.ts" - ], - "packages/agent/tests/connector-routing.test.ts": [ - "packages/agent/src/capability-router.ts" - ], - "packages/agent/tests/connector-sdk.test.ts": [ - "packages/agent/src/connector-registry.ts", - "packages/agent/src/connector-sdk.ts" - ], - "packages/agent/tests/connector-search.test.ts": [ - "packages/agent/src/connector-search.ts" - ], - "packages/agent/tests/connectors-communication.test.ts": [ - "packages/agent/src/connectors/discord-connector.ts" - ], - "packages/agent/tests/connectors/connectors-composio.test.ts": [ - "packages/agent/src/connectors/composio-connector.ts" - ], - "packages/agent/tests/connectors/connectors-crm-data.test.ts": [ - "packages/agent/src/connectors/airtable-connector.ts", - "packages/agent/src/connectors/bitbucket-connector.ts", - "packages/agent/src/connectors/dropbox-connector.ts", - "packages/agent/src/connectors/gitlab-connector.ts", - "packages/agent/src/connectors/hubspot-connector.ts", - "packages/agent/src/connectors/pipedrive-connector.ts", - "packages/agent/src/connectors/postgres-connector.ts", - "packages/agent/src/connectors/salesforce-connector.ts" - ], - "packages/agent/tests/connectors/connectors-google.test.ts": [ - "packages/agent/src/connectors/gdocs-connector.ts", - "packages/agent/src/connectors/gdrive-connector.ts", - "packages/agent/src/connectors/gmail-connector.ts", - "packages/agent/src/connectors/gsheets-connector.ts" - ], - "packages/agent/tests/connectors/connectors-knowledge.test.ts": [ - "packages/agent/src/connectors/confluence-connector.ts", - "packages/agent/src/connectors/notion-connector.ts", - "packages/agent/src/connectors/obsidian-connector.ts" - ], - "packages/agent/tests/connectors/connectors-microsoft.test.ts": [ - "packages/agent/src/connectors/ms-teams-connector.ts", - "packages/agent/src/connectors/onedrive-connector.ts", - "packages/agent/src/connectors/onenote-connector.ts", - "packages/agent/src/connectors/outlook-connector.ts" - ], - "packages/agent/tests/connectors/connectors-pm.test.ts": [ - "packages/agent/src/connectors/asana-connector.ts", - "packages/agent/src/connectors/linear-connector.ts", - "packages/agent/src/connectors/monday-connector.ts", - "packages/agent/src/connectors/trello-connector.ts" - ], - "packages/agent/tests/connectors/discord-connector.test.ts": [ - "packages/agent/src/connectors/discord-connector.ts" - ], - "packages/agent/tests/connectors/email-connector.test.ts": [ - "packages/agent/src/connectors/email-connector.ts" - ], - "packages/agent/tests/connectors/gcal-connector.test.ts": [ - "packages/agent/src/connectors/gcal-connector.ts" - ], - "packages/agent/tests/connectors/github-connector.test.ts": [ - "packages/agent/src/connectors/github-connector.ts" - ], - "packages/agent/tests/connectors/jira-connector.test.ts": [ - "packages/agent/src/connectors/jira-connector.ts" - ], - "packages/agent/tests/connectors/slack-connector.test.ts": [ - "packages/agent/src/connectors/slack-connector.ts" - ], - "packages/agent/tests/context-compressor.test.ts": [ - "packages/agent/src/context-compressor.ts" - ], - "packages/agent/tests/correction-detector.test.ts": [ - "packages/agent/src/correction-detector.ts" - ], - "packages/agent/tests/cost-tracker.test.ts": [ - "packages/agent/src/cost-tracker.ts" - ], - "packages/agent/tests/credential-pool.test.ts": [ - "packages/agent/src/credential-pool.ts" - ], - "packages/agent/tests/cron-delivery-router.test.ts": [ - "packages/agent/src/cron-delivery-router.ts" - ], - "packages/agent/tests/cron-tools.test.ts": [ - "packages/agent/src/cron-tools.ts", - "packages/agent/src/tools.ts" - ], - "packages/agent/tests/d6-recovery-confab.test.ts": [ - "packages/agent/src/agent-loop.ts", - "packages/agent/src/tools.ts" - ], - "packages/agent/tests/document-tools.test.ts": [ - "packages/agent/src/document-tools.ts" - ], - "packages/agent/tests/e2e/connector-swarm-scenarios.test.ts": [ - "packages/agent/src/agent-comms-tools.ts", - "packages/agent/src/agent-message-bus.ts", - "packages/agent/src/connector-registry.ts", - "packages/agent/src/connector-sdk.ts", - "packages/agent/src/orchestrator.ts", - "packages/server/src/local/workspace-sessions.ts", - "packages/worker/src/execution/coordinator.ts", - "packages/worker/src/execution/parallel.ts", - "packages/worker/src/execution/sequential.ts" - ], - "packages/agent/tests/e2e/scenario-framework.ts": [ - "packages/agent/src/tools.ts" - ], - "packages/agent/tests/e2e/solo-scenarios.test.ts": [ - "packages/agent/src/agent-message-bus.ts", - "packages/agent/src/capability-router.ts", - "packages/agent/src/confirmation.ts", - "packages/agent/src/connector-registry.ts", - "packages/agent/src/personas.ts", - "packages/agent/src/tools.ts", - "packages/agent/tests/e2e/scenario-framework.ts" - ], - "packages/agent/tests/enhanced-grep.test.ts": [ - "packages/agent/src/system-tools.ts", - "packages/agent/src/tools.ts" - ], - "packages/agent/tests/enhanced-read-file.test.ts": [ - "packages/agent/src/system-tools.ts", - "packages/agent/src/tools.ts" - ], - "packages/agent/tests/entity-extractor.test.ts": [ - "packages/agent/src/entity-extractor.ts" - ], - "packages/agent/tests/eval-dataset.test.ts": [ - "packages/agent/src/eval-dataset.ts" - ], - "packages/agent/tests/eval/adversarial.ts": [ - "packages/agent/tests/eval/framework.ts" - ], - "packages/agent/tests/eval/eval.test.ts": [ - "packages/agent/tests/eval/adversarial.ts", - "packages/agent/tests/eval/framework.ts", - "packages/agent/tests/eval/scenarios.ts" - ], - "packages/agent/tests/eval/framework.ts": [], - "packages/agent/tests/eval/hermes-skill-reuse-eval.ts": [ - "packages/agent/src/agent-loop.ts", - "packages/agent/src/cost-tracker.ts", - "packages/agent/src/skill-distillation.ts", - "packages/agent/src/tools.ts" - ], - "packages/agent/tests/eval/prompt-assembler-eval.ts": [ - "packages/agent/src/judge.ts", - "packages/agent/src/model-tier.ts", - "packages/agent/src/orchestrator.ts", - "packages/agent/src/task-shape.ts", - "packages/agent/tests/eval/scenarios-prompt-assembler.ts" - ], - "packages/agent/tests/eval/prompt-assembler-v5-eval.ts": [ - "packages/agent/src/judge.ts", - "packages/agent/src/model-tier.ts", - "packages/agent/src/orchestrator.ts", - "packages/agent/src/prompt-assembler.ts", - "packages/agent/src/task-shape.ts", - "packages/agent/tests/eval/scenarios-prompt-assembler-v5.ts" - ], - "packages/agent/tests/eval/scenarios-prompt-assembler-v5.ts": [ - "packages/agent/tests/eval/scenarios-prompt-assembler.ts" - ], - "packages/agent/tests/eval/scenarios-prompt-assembler.ts": [ - "packages/agent/src/task-shape.ts" - ], - "packages/agent/tests/eval/scenarios.ts": [ - "packages/agent/tests/eval/framework.ts" - ], - "packages/agent/tests/evolution-deploy.test.ts": [ - "packages/agent/src/custom-personas.ts", - "packages/agent/src/evolution-deploy.ts", - "packages/agent/src/personas.ts" - ], - "packages/agent/tests/evolution-gates.test.ts": [ - "packages/agent/src/evolution-gates.ts" - ], - "packages/agent/tests/evolution-llm-wiring.test.ts": [ - "packages/agent/src/evolution-llm-wiring.ts", - "packages/agent/src/evolve-schema.ts", - "packages/agent/src/index.ts", - "packages/agent/src/judge.ts" - ], - "packages/agent/tests/evolution-orchestrator.test.ts": [ - "packages/agent/src/evolution-orchestrator.ts", - "packages/agent/src/evolve-schema.ts", - "packages/agent/src/iterative-optimizer.ts", - "packages/agent/src/judge.ts" - ], - "packages/agent/tests/evolve-schema.test.ts": [ - "packages/agent/src/eval-dataset.ts", - "packages/agent/src/evolve-schema.ts", - "packages/agent/src/judge.ts" - ], - "packages/agent/tests/feature-flags.test.ts": [ - "packages/agent/src/feature-flags.ts" - ], - "packages/agent/tests/feedback-handler.test.ts": [ - "packages/agent/src/feedback-handler.ts" - ], - "packages/agent/tests/git-tools.test.ts": [ - "packages/agent/src/git-tools.ts", - "packages/agent/src/tools.ts" - ], - "packages/agent/tests/governance-enforcement.test.ts": [ - "packages/agent/src/agent-loop.ts", - "packages/agent/src/tools.ts" - ], - "packages/agent/tests/grounding-check.test.ts": [ - "packages/agent/src/grounding-check.ts" - ], - "packages/agent/tests/harness-trace-bridge.test.ts": [ - "packages/agent/src/harness-trace-bridge.ts", - "packages/agent/src/trace-recorder.ts", - "packages/agent/src/workflow-harness.ts" - ], - "packages/agent/tests/hook-loader.test.ts": [ - "packages/agent/src/hook-loader.ts", - "packages/agent/src/hooks.ts" - ], - "packages/agent/tests/hooks-expansion.test.ts": [ - "packages/agent/src/hooks.ts" - ], - "packages/agent/tests/hooks-integration.test.ts": [ - "packages/agent/src/agent-loop.ts", - "packages/agent/src/hooks.ts", - "packages/agent/src/tools.ts" - ], - "packages/agent/tests/hooks.test.ts": [ - "packages/agent/src/hooks.ts" - ], - "packages/agent/tests/improvement-detector.test.ts": [ - "packages/agent/src/improvement-detector.ts" - ], - "packages/agent/tests/improvement-wiring.test.ts": [ - "packages/agent/src/improvement-wiring.ts" - ], - "packages/agent/tests/integration-local.test.ts": [ - "packages/agent/src/agent-loop.ts", - "packages/agent/src/system-tools.ts", - "packages/agent/src/workspace.ts" - ], - "packages/agent/tests/integration-m3b.test.ts": [], - "packages/agent/tests/integration-m3c.test.ts": [], - "packages/agent/tests/integration/phase6-capability-truth.test.ts": [ - "packages/agent/src/capability-router.ts", - "packages/agent/src/commands/command-registry.ts", - "packages/agent/src/commands/workflow-commands.ts", - "packages/agent/src/hooks.ts", - "packages/agent/src/workflow-templates.ts" - ], - "packages/agent/tests/injection-scanner.test.ts": [ - "packages/agent/src/injection-scanner.ts" - ], - "packages/agent/tests/iteration-budget.test.ts": [ - "packages/agent/src/iteration-budget.ts" - ], - "packages/agent/tests/iterative-optimizer.test.ts": [ - "packages/agent/src/eval-dataset.ts", - "packages/agent/src/iterative-optimizer.ts", - "packages/agent/src/judge.ts" - ], - "packages/agent/tests/judge.test.ts": [ - "packages/agent/src/judge.ts" - ], - "packages/agent/tests/kvark-pipeline-smoke.test.ts": [ - "packages/agent/src/combined-retrieval.ts", - "packages/agent/src/kvark-tools.ts", - "packages/agent/src/tools.ts" - ], - "packages/agent/tests/kvark-tools.test.ts": [ - "packages/agent/src/kvark-tools.ts" - ], - "packages/agent/tests/long-task-checkpoint.test.ts": [ - "packages/agent/src/long-task/checkpoint.ts" - ], - "packages/agent/tests/long-task-context-manager.test.ts": [ - "packages/agent/src/long-task/checkpoint.ts", - "packages/agent/src/long-task/context-manager.ts", - "packages/agent/src/retrieval-agent-loop.ts" - ], - "packages/agent/tests/long-task-failure-classify.test.ts": [ - "packages/agent/src/long-task/failure-classify.ts", - "packages/agent/src/retrieval-agent-loop.ts" - ], - "packages/agent/tests/long-task-loop-integration.test.ts": [ - "packages/agent/src/long-task/checkpoint.ts", - "packages/agent/src/long-task/context-manager.ts", - "packages/agent/src/long-task/messages-compressor.ts", - "packages/agent/src/retrieval-agent-loop.ts" - ], - "packages/agent/tests/long-task-messages-compressor.test.ts": [ - "packages/agent/src/long-task/messages-compressor.ts", - "packages/agent/src/retrieval-agent-loop.ts" - ], - "packages/agent/tests/long-task-recovery.test.ts": [ - "packages/agent/src/long-task/checkpoint.ts", - "packages/agent/src/long-task/recovery.ts" - ], - "packages/agent/tests/long-task-report.test.ts": [ - "packages/agent/src/long-task/report.ts" - ], - "packages/agent/tests/loop-guard-window.test.ts": [ - "packages/agent/src/loop-guard.ts" - ], - "packages/agent/tests/loop-guard.test.ts": [ - "packages/agent/src/loop-guard.ts" - ], - "packages/agent/tests/lsp-tools.test.ts": [ - "packages/agent/src/lsp-tools.ts", - "packages/agent/src/tools.ts" - ], - "packages/agent/tests/marketplace-commands.test.ts": [ - "packages/agent/src/commands/command-registry.ts", - "packages/agent/src/commands/marketplace-commands.ts" - ], - "packages/agent/tests/mcp-runtime.test.ts": [ - "packages/agent/src/mcp/mcp-runtime.ts" - ], - "packages/agent/tests/memory-linker.test.ts": [ - "packages/agent/src/memory-linker.ts" - ], - "packages/agent/tests/memory-sign-gate.test.ts": [ - "packages/agent/src/memory-sign-gate.ts" - ], - "packages/agent/tests/model-family.test.ts": [ - "packages/agent/src/model-family.ts" - ], - "packages/agent/tests/model-router.test.ts": [ - "packages/agent/src/model-router.ts" - ], - "packages/agent/tests/model-tier.test.ts": [ - "packages/agent/src/model-tier.ts" - ], - "packages/agent/tests/multi-edit.test.ts": [ - "packages/agent/src/system-tools.ts", - "packages/agent/src/tools.ts" - ], - "packages/agent/tests/optimization-capture.test.ts": [ - "packages/agent/src/agent-loop.ts", - "packages/agent/src/optimization-capture.ts" - ], - "packages/agent/tests/orchestrator-context-frames.test.ts": [ - "packages/agent/src/orchestrator.ts", - "packages/hive-mind-core/tests/mind/helpers/mock-embedder.ts" - ], - "packages/agent/tests/orchestrator-recall-hardening.test.ts": [ - "packages/agent/src/orchestrator.ts", - "packages/hive-mind-core/tests/mind/helpers/mock-embedder.ts" - ], - "packages/agent/tests/orchestrator.test.ts": [ - "packages/agent/src/orchestrator.ts", - "packages/hive-mind-core/tests/mind/helpers/mock-embedder.ts" - ], - "packages/agent/tests/output-normalize.test.ts": [ - "packages/agent/src/output-normalize.ts" - ], - "packages/agent/tests/performance/perf-baselines.test.ts": [ - "packages/agent/src/agent-message-bus.ts", - "packages/agent/src/capability-router.ts", - "packages/agent/src/confirmation.ts", - "packages/agent/src/connector-registry.ts", - "packages/agent/src/connector-sdk.ts", - "packages/agent/src/personas.ts", - "packages/server/src/local/workspace-sessions.ts" - ], - "packages/agent/tests/permissions.test.ts": [ - "packages/agent/src/permissions.ts", - "packages/agent/src/tools.ts" - ], - "packages/agent/tests/personas.test.ts": [ - "packages/agent/src/personas.ts" - ], - "packages/agent/tests/phase-5-canary-router.test.ts": [ - "packages/agent/src/canary/phase-5-router.ts", - "packages/agent/src/prompt-shapes/gepa-evolved/claude-gen1-v1.ts", - "packages/agent/src/prompt-shapes/gepa-evolved/qwen-thinking-gen1-v1.ts", - "packages/agent/src/prompt-shapes/index.ts" - ], - "packages/agent/tests/phase-5-monitoring.test.ts": [ - "packages/agent/src/canary/phase-5-monitoring.ts" - ], - "packages/agent/tests/phase4-hooks-cohort.test.ts": [ - "packages/agent/src/tool-launcher.ts" - ], - "packages/agent/tests/phase4-retry-after-nan.test.ts": [ - "packages/agent/src/retry-policy.ts" - ], - "packages/agent/tests/phase4-subagent-dup-worker.test.ts": [ - "packages/agent/src/agent-loop.ts", - "packages/agent/src/subagent-orchestrator.ts", - "packages/agent/src/tools.ts" - ], - "packages/agent/tests/plan-tools.test.ts": [ - "packages/agent/src/plan-tools.ts" - ], - "packages/agent/tests/plan.test.ts": [ - "packages/agent/src/plan.ts" - ], - "packages/agent/tests/premium-contract-e2e.test.ts": [ - "packages/agent/src/agent-loop.ts", - "packages/agent/src/skill-distillation.ts", - "packages/agent/src/tools.ts", - "packages/agent/src/verification-gate.ts" - ], - "packages/agent/tests/promote-skill.test.ts": [ - "packages/agent/src/skill-frontmatter.ts", - "packages/agent/src/skill-tools.ts" - ], - "packages/agent/tests/prompt-assembler-feature-flag.test.ts": [ - "packages/agent/src/feature-flags.ts", - "packages/agent/src/orchestrator.ts", - "packages/hive-mind-core/tests/mind/helpers/mock-embedder.ts" - ], - "packages/agent/tests/prompt-assembler.test.ts": [ - "packages/agent/src/orchestrator.ts", - "packages/agent/src/personas.ts", - "packages/agent/src/prompt-assembler.ts", - "packages/agent/src/task-shape.ts" - ], - "packages/agent/tests/prompt-loader.test.ts": [ - "packages/agent/src/prompt-loader.ts" - ], - "packages/agent/tests/prompt-shapes.test.ts": [ - "packages/agent/src/prompt-shapes/index.ts" - ], - "packages/agent/tests/quality-controller.test.ts": [ - "packages/agent/src/quality-controller.ts" - ], - "packages/agent/tests/r2-recall-closure.test.ts": [ - "packages/agent/src/orchestrator.ts", - "packages/hive-mind-core/tests/mind/helpers/mock-embedder.ts" - ], - "packages/agent/tests/retrieval-agent-loop.test.ts": [ - "packages/agent/src/retrieval-agent-loop.ts", - "packages/agent/src/run-meta.ts" - ], - "packages/agent/tests/run-meta.test.ts": [ - "packages/agent/src/run-meta.ts" - ], - "packages/agent/tests/save-memory-conflict.test.ts": [ - "packages/agent/src/tools.ts", - "packages/hive-mind-core/tests/mind/helpers/mock-embedder.ts" - ], - "packages/agent/tests/search-memory-combined.test.ts": [ - "packages/agent/src/combined-retrieval.ts", - "packages/agent/src/tools.ts" - ], - "packages/agent/tests/search-tools.test.ts": [ - "packages/agent/src/search-tools.ts", - "packages/agent/src/tools.ts" - ], - "packages/agent/tests/self-awareness.test.ts": [ - "packages/agent/src/self-awareness.ts" - ], - "packages/agent/tests/skill-autoextract.test.ts": [ - "packages/agent/src/skill-autoextract.ts", - "packages/agent/src/skill-creator.ts", - "packages/agent/src/skill-frontmatter.ts" - ], - "packages/agent/tests/skill-creator.test.ts": [ - "packages/agent/src/skill-creator.ts", - "packages/agent/src/skill-tools.ts", - "packages/agent/src/workflow-capture.ts" - ], - "packages/agent/tests/skill-diffusion.test.ts": [ - "packages/agent/src/agent-loop.ts", - "packages/agent/src/tools.ts" - ], - "packages/agent/tests/skill-distillation-loop.test.ts": [ - "packages/agent/src/agent-loop.ts", - "packages/agent/src/skill-distillation.ts", - "packages/agent/src/tools.ts" - ], - "packages/agent/tests/skill-distillation.test.ts": [ - "packages/agent/src/skill-distillation.ts" - ], - "packages/agent/tests/skill-frontmatter.test.ts": [ - "packages/agent/src/skill-frontmatter.ts" - ], - "packages/agent/tests/skill-recommender.test.ts": [ - "packages/agent/src/skill-recommender.ts" - ], - "packages/agent/tests/skill-redaction.test.ts": [ - "packages/agent/src/skill-redaction.ts" - ], - "packages/agent/tests/skill-retirement.test.ts": [ - "packages/agent/src/skill-retirement.ts", - "packages/agent/src/skill-usage.ts" - ], - "packages/agent/tests/skill-tools.test.ts": [ - "packages/agent/src/skill-tools.ts" - ], - "packages/agent/tests/skill-watcher.test.ts": [ - "packages/agent/src/skill-watcher.ts" - ], - "packages/agent/tests/skill-write-service.test.ts": [ - "packages/agent/src/skill-frontmatter.ts", - "packages/agent/src/skill-write-service.ts" - ], - "packages/agent/tests/smart-router.test.ts": [ - "packages/agent/src/smart-router.ts" - ], - "packages/agent/tests/sse-parser.test.ts": [ - "packages/agent/src/sse-parser.ts" - ], - "packages/agent/tests/streaming.test.ts": [ - "packages/agent/src/agent-loop.ts" - ], - "packages/agent/tests/subagent-cleanup.test.ts": [ - "packages/agent/src/subagent-tools.ts" - ], - "packages/agent/tests/subagent-isolation.test.ts": [ - "packages/agent/src/agent-loop.ts", - "packages/agent/src/subagent-tools.ts", - "packages/agent/src/tools.ts" - ], - "packages/agent/tests/subagent-orchestrator.test.ts": [ - "packages/agent/src/agent-loop.ts", - "packages/agent/src/subagent-orchestrator.ts", - "packages/agent/src/tools.ts" - ], - "packages/agent/tests/subagent-tools.test.ts": [ - "packages/agent/src/agent-loop.ts", - "packages/agent/src/subagent-tools.ts", - "packages/agent/src/tools.ts" - ], - "packages/agent/tests/system-tools-backend.test.ts": [ - "packages/agent/src/system-tools.ts", - "packages/agent/src/tools.ts" - ], - "packages/agent/tests/system-tools.test.ts": [ - "packages/agent/src/system-tools.ts", - "packages/agent/src/tools.ts" - ], - "packages/agent/tests/task-shape.test.ts": [ - "packages/agent/src/task-shape.ts" - ], - "packages/agent/tests/team-tools.test.ts": [ - "packages/agent/src/team-tools.ts", - "packages/agent/src/tools.ts" - ], - "packages/agent/tests/text-analysis.test.ts": [ - "packages/agent/src/text-analysis.ts" - ], - "packages/agent/tests/tool-detection.test.ts": [ - "packages/agent/src/tool-detection.ts" - ], - "packages/agent/tests/tool-filter.test.ts": [ - "packages/agent/src/tool-filter.ts", - "packages/agent/src/tools.ts" - ], - "packages/agent/tests/tool-launcher.test.ts": [ - "packages/agent/src/tool-launcher.ts" - ], - "packages/agent/tests/tool-process-tracker.test.ts": [ - "packages/agent/src/tool-process-tracker.ts" - ], - "packages/agent/tests/trace-recorder.test.ts": [ - "packages/agent/src/trace-recorder.ts" - ], - "packages/agent/tests/trust-model.test.ts": [ - "packages/agent/src/trust-model.ts" - ], - "packages/agent/tests/turn-context.test.ts": [ - "packages/agent/src/turn-context.ts" - ], - "packages/agent/tests/verification-gate-loop.test.ts": [ - "packages/agent/src/agent-loop.ts", - "packages/agent/src/verification-gate.ts" - ], - "packages/agent/tests/verification-gate.test.ts": [ - "packages/agent/src/verification-gate.ts" - ], - "packages/agent/tests/w41-temporal-recall.test.ts": [ - "packages/agent/src/orchestrator.ts", - "packages/hive-mind-core/tests/mind/helpers/mock-embedder.ts" - ], - "packages/agent/tests/w42-reranker-recall.test.ts": [ - "packages/agent/src/orchestrator.ts", - "packages/hive-mind-core/tests/mind/helpers/mock-embedder.ts" - ], - "packages/agent/tests/w43-recall-lanes.test.ts": [ - "packages/agent/src/orchestrator.ts", - "packages/hive-mind-core/tests/mind/helpers/mock-embedder.ts" - ], - "packages/agent/tests/w45-assembler-recall.test.ts": [ - "packages/agent/src/orchestrator.ts", - "packages/agent/src/prompt-assembler.ts", - "packages/hive-mind-core/tests/mind/helpers/mock-embedder.ts" - ], - "packages/agent/tests/w46-rawdetail-recall.test.ts": [ - "packages/agent/src/orchestrator.ts", - "packages/hive-mind-core/tests/mind/helpers/mock-embedder.ts" - ], - "packages/agent/tests/wave-e-topology.test.ts": [ - "packages/agent/src/index.ts" - ], - "packages/agent/tests/web-search-cache.test.ts": [ - "packages/agent/src/web-search-utils.ts" - ], - "packages/agent/tests/workflow-commands.test.ts": [ - "packages/agent/src/commands/command-registry.ts", - "packages/agent/src/commands/workflow-commands.ts" - ], - "packages/agent/tests/workflow-composer.test.ts": [ - "packages/agent/src/subagent-orchestrator.ts", - "packages/agent/src/task-shape.ts", - "packages/agent/src/workflow-composer.ts" - ], - "packages/agent/tests/workflow-templates-new.test.ts": [ - "packages/agent/src/workflow-templates.ts" - ], - "packages/agent/tests/workflow-templates.test.ts": [ - "packages/agent/src/agent-loop.ts", - "packages/agent/src/subagent-orchestrator.ts", - "packages/agent/src/tools.ts", - "packages/agent/src/workflow-templates.ts", - "packages/agent/src/workflow-tools.ts" - ], - "packages/agent/tests/workflow-tools-harness.test.ts": [ - "packages/agent/src/tools.ts", - "packages/agent/src/workflow-tools.ts" - ], - "packages/agent/tests/workspace.test.ts": [ - "packages/agent/src/workspace.ts" - ], - "packages/agent/tsconfig.json": [], - "packages/agent/vitest.config.ts": [], - "packages/cli/bin/waggle.js": [], - "packages/cli/package.json": [], - "packages/cli/src/auth.ts": [], - "packages/cli/src/commands.ts": [], - "packages/cli/src/commands/admin.ts": [], - "packages/cli/src/index.ts": [ - "packages/cli/src/repl.ts" - ], - "packages/cli/src/mode-detector.ts": [], - "packages/cli/src/renderer.ts": [], - "packages/cli/src/repl.ts": [ - "packages/cli/src/auth.ts", - "packages/cli/src/commands.ts", - "packages/cli/src/commands/admin.ts", - "packages/cli/src/mode-detector.ts", - "packages/cli/src/renderer.ts" - ], - "packages/cli/test-hello.txt": [], - "packages/cli/tests/admin.test.ts": [ - "packages/cli/src/commands/admin.ts" - ], - "packages/cli/tests/auth.test.ts": [ - "packages/cli/src/auth.ts" - ], - "packages/cli/tests/commands.test.ts": [ - "packages/cli/src/commands.ts" - ], - "packages/cli/tests/comprehensive-e2e.test.ts": [ - "packages/hive-mind-core/tests/mind/helpers/mock-embedder.ts" - ], - "packages/cli/tests/memory-persistence-hard.test.ts": [ - "packages/hive-mind-core/tests/mind/helpers/mock-embedder.ts" - ], - "packages/cli/tests/mode-detector.test.ts": [ - "packages/cli/src/mode-detector.ts" - ], - "packages/cli/tests/real-session-simulation.ts": [], - "packages/cli/tests/renderer.test.ts": [ - "packages/cli/src/renderer.ts" - ], - "packages/cli/tsconfig.json": [], - "packages/core/package.json": [], - "packages/core/src/compliance/index.ts": [], - "packages/core/src/compliance/interaction-store.ts": [ - "packages/core/src/compliance/types.ts" - ], - "packages/core/src/compliance/report-generator.ts": [ - "packages/core/src/compliance/interaction-store.ts", - "packages/core/src/compliance/status-checker.ts", - "packages/core/src/compliance/types.ts" - ], - "packages/core/src/compliance/status-checker.ts": [ - "packages/core/src/compliance/interaction-store.ts", - "packages/core/src/compliance/types.ts" - ], - "packages/core/src/compliance/template-store.ts": [ - "packages/core/src/compliance/types.ts" - ], - "packages/core/src/compliance/types.ts": [], - "packages/core/src/config.ts": [], - "packages/core/src/cron-store.ts": [], - "packages/core/src/file-indexer.ts": [], - "packages/core/src/file-store.ts": [], - "packages/core/src/index.ts": [], - "packages/core/src/install-audit.ts": [], - "packages/core/src/memory-import.ts": [], - "packages/core/src/migration.ts": [], - "packages/core/src/optimization-log.ts": [], - "packages/core/src/skill-hashes.ts": [], - "packages/core/src/team-sync.ts": [], - "packages/core/src/telemetry.ts": [], - "packages/core/src/vault.ts": [], - "packages/core/tests/compliance/template-store.test.ts": [ - "packages/core/src/compliance/template-store.ts", - "packages/core/src/compliance/types.ts" - ], - "packages/core/tests/config.test.ts": [ - "packages/core/src/config.ts" - ], - "packages/core/tests/cron-store.test.ts": [ - "packages/core/src/cron-store.ts" - ], - "packages/core/tests/embedding-provider-quota.test.ts": [], - "packages/core/tests/file-indexer.test.ts": [ - "packages/core/src/file-indexer.ts" - ], - "packages/core/tests/file-store-s3.test.ts": [ - "packages/core/src/file-store.ts" - ], - "packages/core/tests/install-audit-check-parity.test.ts": [ - "packages/core/src/install-audit.ts" - ], - "packages/core/tests/install-audit.test.ts": [ - "packages/core/src/install-audit.ts" - ], - "packages/core/tests/litellm-embedder.test.ts": [], - "packages/core/tests/memory-import.test.ts": [ - "packages/core/src/memory-import.ts" - ], - "packages/core/tests/migration.test.ts": [ - "packages/core/src/migration.ts" - ], - "packages/core/tests/skill-hashes.test.ts": [ - "packages/core/src/skill-hashes.ts" - ], - "packages/core/tests/structured-tasks.test.ts": [], - "packages/core/tests/team-sync.test.ts": [ - "packages/core/src/team-sync.ts" - ], - "packages/core/tests/telemetry.test.ts": [ - "packages/core/src/telemetry.ts" - ], - "packages/core/tests/vault-concurrency.test.ts": [ - "packages/core/src/vault.ts" - ], - "packages/core/tests/vault-edge-cases.test.ts": [ - "packages/core/src/vault.ts" - ], - "packages/core/tests/vault.test.ts": [ - "packages/core/src/vault.ts" - ], - "packages/core/tsconfig.json": [], - "packages/core/vitest.config.ts": [], - "packages/hive-mind-cli/assets/mcp-health-check-fixed.js": [], - "packages/hive-mind-cli/docs/WINDOWS-QUIRKS.md": [], - "packages/hive-mind-cli/NOTICE": [], - "packages/hive-mind-cli/package.json": [], - "packages/hive-mind-cli/postinstall.cjs": [], - "packages/hive-mind-cli/README.md": [], - "packages/hive-mind-cli/src/commands/cognify.ts": [ - "packages/hive-mind-cli/src/setup.ts" - ], - "packages/hive-mind-cli/src/commands/compile-wiki.ts": [ - "packages/hive-mind-cli/src/setup.ts" - ], - "packages/hive-mind-cli/src/commands/doctor.ts": [ - "packages/hive-mind-cli/src/setup.ts" - ], - "packages/hive-mind-cli/src/commands/harvest-local.test.ts": [ - "packages/hive-mind-cli/src/commands/harvest-local.ts", - "packages/hive-mind-cli/src/setup.ts" - ], - "packages/hive-mind-cli/src/commands/harvest-local.ts": [ - "packages/hive-mind-cli/src/setup.ts" - ], - "packages/hive-mind-cli/src/commands/init.ts": [ - "packages/hive-mind-cli/src/setup.ts" - ], - "packages/hive-mind-cli/src/commands/maintenance.ts": [ - "packages/hive-mind-cli/src/commands/cognify.ts", - "packages/hive-mind-cli/src/commands/compile-wiki.ts", - "packages/hive-mind-cli/src/setup.ts" - ], - "packages/hive-mind-cli/src/commands/mcp-call.ts": [ - "packages/hive-mind-cli/src/commands/mcp-start.ts" - ], - "packages/hive-mind-cli/src/commands/mcp-start.ts": [], - "packages/hive-mind-cli/src/commands/recall-context.ts": [ - "packages/hive-mind-cli/src/setup.ts" - ], - "packages/hive-mind-cli/src/commands/save-session.ts": [ - "packages/hive-mind-cli/src/setup.ts" - ], - "packages/hive-mind-cli/src/commands/status.ts": [ - "packages/hive-mind-cli/src/setup.ts" - ], - "packages/hive-mind-cli/src/dispatch.test.ts": [ - "packages/hive-mind-cli/src/commands/mcp-call.ts", - "packages/hive-mind-cli/src/dispatch.ts", - "packages/hive-mind-cli/src/setup.ts" - ], - "packages/hive-mind-cli/src/dispatch.ts": [ - "packages/hive-mind-cli/src/commands/cognify.ts", - "packages/hive-mind-cli/src/commands/compile-wiki.ts", - "packages/hive-mind-cli/src/commands/doctor.ts", - "packages/hive-mind-cli/src/commands/harvest-local.ts", - "packages/hive-mind-cli/src/commands/init.ts", - "packages/hive-mind-cli/src/commands/maintenance.ts", - "packages/hive-mind-cli/src/commands/mcp-call.ts", - "packages/hive-mind-cli/src/commands/mcp-start.ts", - "packages/hive-mind-cli/src/commands/recall-context.ts", - "packages/hive-mind-cli/src/commands/save-session.ts", - "packages/hive-mind-cli/src/commands/status.ts", - "packages/hive-mind-cli/src/setup.ts" - ], - "packages/hive-mind-cli/src/index.ts": [ - "packages/hive-mind-cli/src/dispatch.ts" - ], - "packages/hive-mind-cli/src/setup.test.ts": [ - "packages/hive-mind-cli/src/setup.ts" - ], - "packages/hive-mind-cli/src/setup.ts": [], - "packages/hive-mind-cli/tsconfig.json": [], - "packages/hive-mind-core/CONTRIBUTING.md": [], - "packages/hive-mind-core/package.json": [], - "packages/hive-mind-core/README.md": [], - "packages/hive-mind-core/src/harvest/chatgpt-adapter.ts": [ - "packages/hive-mind-core/src/harvest/raw-types.ts", - "packages/hive-mind-core/src/harvest/types.ts" - ], - "packages/hive-mind-core/src/harvest/chunk-utils.ts": [], - "packages/hive-mind-core/src/harvest/claude-adapter.ts": [ - "packages/hive-mind-core/src/harvest/raw-types.ts", - "packages/hive-mind-core/src/harvest/types.ts" - ], - "packages/hive-mind-core/src/harvest/claude-code-adapter.ts": [ - "packages/hive-mind-core/src/harvest/types.ts" - ], - "packages/hive-mind-core/src/harvest/dedup.ts": [ - "packages/hive-mind-core/src/harvest/types.ts" - ], - "packages/hive-mind-core/src/harvest/extract-kg-entities.ts": [ - "packages/hive-mind-core/src/harvest/pipeline.ts", - "packages/hive-mind-core/src/injection-scanner.ts", - "packages/hive-mind-core/src/logger.ts", - "packages/hive-mind-core/src/mind/entity-normalizer.ts", - "packages/hive-mind-core/src/mind/knowledge.ts" - ], - "packages/hive-mind-core/src/harvest/extract-memory-lanes.ts": [ - "packages/hive-mind-core/src/harvest/pipeline.ts", - "packages/hive-mind-core/src/injection-scanner.ts", - "packages/hive-mind-core/src/logger.ts", - "packages/hive-mind-core/src/mind/frames.ts" - ], - "packages/hive-mind-core/src/harvest/gemini-adapter.ts": [ - "packages/hive-mind-core/src/harvest/raw-types.ts", - "packages/hive-mind-core/src/harvest/types.ts" - ], - "packages/hive-mind-core/src/harvest/index.ts": [], - "packages/hive-mind-core/src/harvest/markdown-adapter.ts": [ - "packages/hive-mind-core/src/harvest/types.ts" - ], - "packages/hive-mind-core/src/harvest/pdf-adapter.ts": [ - "packages/hive-mind-core/src/harvest/chunk-utils.ts", - "packages/hive-mind-core/src/harvest/types.ts" - ], - "packages/hive-mind-core/src/harvest/perplexity-adapter.ts": [ - "packages/hive-mind-core/src/harvest/types.ts" - ], - "packages/hive-mind-core/src/harvest/pipeline.ts": [ - "packages/hive-mind-core/src/harvest/dedup.ts", - "packages/hive-mind-core/src/harvest/prompts.ts", - "packages/hive-mind-core/src/harvest/types.ts", - "packages/hive-mind-core/src/injection-scanner.ts", - "packages/hive-mind-core/src/logger.ts" - ], - "packages/hive-mind-core/src/harvest/plaintext-adapter.ts": [ - "packages/hive-mind-core/src/harvest/chunk-utils.ts", - "packages/hive-mind-core/src/harvest/types.ts" - ], - "packages/hive-mind-core/src/harvest/prompts.ts": [], - "packages/hive-mind-core/src/harvest/raw-turns.ts": [ - "packages/hive-mind-core/src/harvest/types.ts", - "packages/hive-mind-core/src/injection-scanner.ts", - "packages/hive-mind-core/src/logger.ts", - "packages/hive-mind-core/src/mind/frames.ts" - ], - "packages/hive-mind-core/src/harvest/raw-types.ts": [], - "packages/hive-mind-core/src/harvest/run-store.ts": [ - "packages/hive-mind-core/src/harvest/types.ts", - "packages/hive-mind-core/src/mind/db.ts" - ], - "packages/hive-mind-core/src/harvest/source-store.ts": [ - "packages/hive-mind-core/src/harvest/types.ts", - "packages/hive-mind-core/src/mind/db.ts" - ], - "packages/hive-mind-core/src/harvest/types.ts": [], - "packages/hive-mind-core/src/harvest/universal-adapter.ts": [ - "packages/hive-mind-core/src/harvest/raw-types.ts", - "packages/hive-mind-core/src/harvest/types.ts" - ], - "packages/hive-mind-core/src/harvest/url-adapter.ts": [ - "packages/hive-mind-core/src/harvest/types.ts" - ], - "packages/hive-mind-core/src/index.ts": [], - "packages/hive-mind-core/src/injection-scanner.ts": [], - "packages/hive-mind-core/src/logger.ts": [], - "packages/hive-mind-core/src/mind/api-embedder.ts": [ - "packages/hive-mind-core/src/mind/embeddings.ts", - "packages/hive-mind-core/src/mind/inprocess-embedder.ts" - ], - "packages/hive-mind-core/src/mind/awareness.ts": [ - "packages/hive-mind-core/src/mind/db.ts" - ], - "packages/hive-mind-core/src/mind/chunker.ts": [], - "packages/hive-mind-core/src/mind/concept-tracker.ts": [ - "packages/hive-mind-core/src/mind/db.ts" - ], - "packages/hive-mind-core/src/mind/content-hash.ts": [], - "packages/hive-mind-core/src/mind/db.ts": [ - "packages/hive-mind-core/src/mind/content-hash.ts", - "packages/hive-mind-core/src/mind/schema.ts" - ], - "packages/hive-mind-core/src/mind/embedding-provider.ts": [ - "packages/hive-mind-core/src/logger.ts", - "packages/hive-mind-core/src/mind/embeddings.ts" - ], - "packages/hive-mind-core/src/mind/embeddings.ts": [], - "packages/hive-mind-core/src/mind/entity-normalizer.ts": [], - "packages/hive-mind-core/src/mind/evolution-runs.ts": [ - "packages/hive-mind-core/src/mind/db.ts" - ], - "packages/hive-mind-core/src/mind/execution-traces.ts": [ - "packages/hive-mind-core/src/mind/db.ts" - ], - "packages/hive-mind-core/src/mind/frames.ts": [ - "packages/hive-mind-core/src/mind/content-hash.ts", - "packages/hive-mind-core/src/mind/db.ts" - ], - "packages/hive-mind-core/src/mind/identity.ts": [ - "packages/hive-mind-core/src/mind/db.ts" - ], - "packages/hive-mind-core/src/mind/improvement-signals.ts": [ - "packages/hive-mind-core/src/mind/db.ts" - ], - "packages/hive-mind-core/src/mind/inprocess-embedder.ts": [ - "packages/hive-mind-core/src/logger.ts", - "packages/hive-mind-core/src/mind/embeddings.ts" - ], - "packages/hive-mind-core/src/mind/inprocess-reranker.ts": [ - "packages/hive-mind-core/src/logger.ts" - ], - "packages/hive-mind-core/src/mind/knowledge.ts": [ - "packages/hive-mind-core/src/mind/db.ts", - "packages/hive-mind-core/src/mind/entity-normalizer.ts" - ], - "packages/hive-mind-core/src/mind/litellm-embedder.ts": [ - "packages/hive-mind-core/src/mind/embeddings.ts" - ], - "packages/hive-mind-core/src/mind/ollama-embedder.ts": [ - "packages/hive-mind-core/src/mind/embeddings.ts", - "packages/hive-mind-core/src/mind/inprocess-embedder.ts" - ], - "packages/hive-mind-core/src/mind/ontology.ts": [], - "packages/hive-mind-core/src/mind/parse-date-window.ts": [], - "packages/hive-mind-core/src/mind/raw-detail-lane.ts": [ - "packages/hive-mind-core/src/harvest/raw-turns.ts", - "packages/hive-mind-core/src/mind/inprocess-reranker.ts" - ], - "packages/hive-mind-core/src/mind/recall-context.ts": [], - "packages/hive-mind-core/src/mind/reconcile.ts": [ - "packages/hive-mind-core/src/mind/db.ts", - "packages/hive-mind-core/src/mind/embeddings.ts" - ], - "packages/hive-mind-core/src/mind/resolve-relative-date.ts": [], - "packages/hive-mind-core/src/mind/schema.ts": [], - "packages/hive-mind-core/src/mind/scoring.ts": [ - "packages/hive-mind-core/src/mind/frames.ts" - ], - "packages/hive-mind-core/src/mind/search.ts": [ - "packages/hive-mind-core/src/logger.ts", - "packages/hive-mind-core/src/mind/chunker.ts", - "packages/hive-mind-core/src/mind/db.ts", - "packages/hive-mind-core/src/mind/embeddings.ts", - "packages/hive-mind-core/src/mind/frames.ts", - "packages/hive-mind-core/src/mind/inprocess-reranker.ts", - "packages/hive-mind-core/src/mind/scoring.ts" - ], - "packages/hive-mind-core/src/mind/sessions.ts": [ - "packages/hive-mind-core/src/mind/db.ts" - ], - "packages/hive-mind-core/src/multi-mind-cache.ts": [ - "packages/hive-mind-core/src/logger.ts", - "packages/hive-mind-core/src/mind/db.ts" - ], - "packages/hive-mind-core/src/multi-mind.ts": [ - "packages/hive-mind-core/src/logger.ts", - "packages/hive-mind-core/src/mind/awareness.ts", - "packages/hive-mind-core/src/mind/db.ts", - "packages/hive-mind-core/src/mind/frames.ts", - "packages/hive-mind-core/src/mind/identity.ts" - ], - "packages/hive-mind-core/src/workspace-manager.ts": [], - "packages/hive-mind-core/tests/entity-normalizer.test.ts": [ - "packages/hive-mind-core/src/mind/entity-normalizer.ts" - ], - "packages/hive-mind-core/tests/harvest/caption-parity.test.ts": [ - "packages/hive-mind-core/src/harvest/chatgpt-adapter.ts", - "packages/hive-mind-core/src/harvest/claude-adapter.ts", - "packages/hive-mind-core/src/harvest/gemini-adapter.ts", - "packages/hive-mind-core/src/harvest/universal-adapter.ts" - ], - "packages/hive-mind-core/tests/harvest/claude-adapter.test.ts": [ - "packages/hive-mind-core/src/harvest/claude-adapter.ts" - ], - "packages/hive-mind-core/tests/harvest/extract-kg-entities.test.ts": [ - "packages/hive-mind-core/src/harvest/extract-kg-entities.ts", - "packages/hive-mind-core/src/harvest/pipeline.ts", - "packages/hive-mind-core/src/mind/db.ts", - "packages/hive-mind-core/src/mind/knowledge.ts" - ], - "packages/hive-mind-core/tests/harvest/extract-memory-lanes.test.ts": [ - "packages/hive-mind-core/src/harvest/extract-memory-lanes.ts", - "packages/hive-mind-core/src/harvest/pipeline.ts", - "packages/hive-mind-core/src/mind/db.ts", - "packages/hive-mind-core/src/mind/frames.ts", - "packages/hive-mind-core/src/mind/sessions.ts" - ], - "packages/hive-mind-core/tests/harvest/perplexity-adapter.test.ts": [ - "packages/hive-mind-core/src/harvest/perplexity-adapter.ts" - ], - "packages/hive-mind-core/tests/harvest/pipeline-injection.test.ts": [ - "packages/hive-mind-core/src/harvest/pipeline.ts", - "packages/hive-mind-core/src/harvest/types.ts" - ], - "packages/hive-mind-core/tests/harvest/pipeline-progress.test.ts": [ - "packages/hive-mind-core/src/harvest/pipeline.ts", - "packages/hive-mind-core/src/harvest/types.ts" - ], - "packages/hive-mind-core/tests/harvest/raw-turns.test.ts": [ - "packages/hive-mind-core/src/harvest/raw-turns.ts", - "packages/hive-mind-core/src/harvest/types.ts", - "packages/hive-mind-core/src/mind/db.ts", - "packages/hive-mind-core/src/mind/frames.ts", - "packages/hive-mind-core/src/mind/sessions.ts" - ], - "packages/hive-mind-core/tests/harvest/run-store.test.ts": [ - "packages/hive-mind-core/src/harvest/run-store.ts", - "packages/hive-mind-core/src/mind/db.ts" - ], - "packages/hive-mind-core/tests/harvest/set-hash.test.ts": [ - "packages/hive-mind-core/src/harvest/dedup.ts" - ], - "packages/hive-mind-core/tests/integration/full-stack.test.ts": [ - "packages/hive-mind-core/tests/mind/helpers/mock-embedder.ts" - ], - "packages/hive-mind-core/tests/logger.test.ts": [ - "packages/hive-mind-core/src/logger.ts" - ], - "packages/hive-mind-core/tests/mind/awareness-hive-mind.test.ts": [ - "packages/hive-mind-core/src/mind/awareness.ts", - "packages/hive-mind-core/src/mind/db.ts" - ], - "packages/hive-mind-core/tests/mind/awareness.test.ts": [ - "packages/hive-mind-core/src/mind/awareness.ts", - "packages/hive-mind-core/src/mind/db.ts" - ], - "packages/hive-mind-core/tests/mind/chunker.test.ts": [ - "packages/hive-mind-core/src/mind/chunker.ts" - ], - "packages/hive-mind-core/tests/mind/concept-tracker-hive-mind.test.ts": [ - "packages/hive-mind-core/src/mind/concept-tracker.ts", - "packages/hive-mind-core/src/mind/db.ts" - ], - "packages/hive-mind-core/tests/mind/concept-tracker.test.ts": [ - "packages/hive-mind-core/src/mind/concept-tracker.ts", - "packages/hive-mind-core/src/mind/db.ts" - ], - "packages/hive-mind-core/tests/mind/content-hash-dedup.test.ts": [ - "packages/hive-mind-core/src/mind/content-hash.ts", - "packages/hive-mind-core/src/mind/db.ts", - "packages/hive-mind-core/src/mind/frames.ts", - "packages/hive-mind-core/src/mind/sessions.ts" - ], - "packages/hive-mind-core/tests/mind/db.test.ts": [ - "packages/hive-mind-core/src/mind/db.ts" - ], - "packages/hive-mind-core/tests/mind/embedding-provider.test.ts": [ - "packages/hive-mind-core/src/mind/embedding-provider.ts", - "packages/hive-mind-core/src/mind/embeddings.ts" - ], - "packages/hive-mind-core/tests/mind/entity-normalizer.test.ts": [ - "packages/hive-mind-core/src/mind/entity-normalizer.ts" - ], - "packages/hive-mind-core/tests/mind/evolution-runs.test.ts": [ - "packages/hive-mind-core/src/mind/db.ts", - "packages/hive-mind-core/src/mind/evolution-runs.ts" - ], - "packages/hive-mind-core/tests/mind/execution-traces.test.ts": [ - "packages/hive-mind-core/src/mind/db.ts", - "packages/hive-mind-core/src/mind/execution-traces.ts" - ], - "packages/hive-mind-core/tests/mind/frames-hive-mind.test.ts": [ - "packages/hive-mind-core/src/mind/db.ts", - "packages/hive-mind-core/src/mind/frames.ts" - ], - "packages/hive-mind-core/tests/mind/frames.test.ts": [ - "packages/hive-mind-core/src/mind/db.ts", - "packages/hive-mind-core/src/mind/frames.ts", - "packages/hive-mind-core/src/mind/sessions.ts" - ], - "packages/hive-mind-core/tests/mind/helpers/mock-embedder.ts": [ - "packages/hive-mind-core/src/mind/embeddings.ts" - ], - "packages/hive-mind-core/tests/mind/identity-hive-mind.test.ts": [ - "packages/hive-mind-core/src/mind/db.ts", - "packages/hive-mind-core/src/mind/identity.ts" - ], - "packages/hive-mind-core/tests/mind/identity.test.ts": [ - "packages/hive-mind-core/src/mind/db.ts", - "packages/hive-mind-core/src/mind/identity.ts" - ], - "packages/hive-mind-core/tests/mind/improvement-signals.test.ts": [ - "packages/hive-mind-core/src/mind/db.ts", - "packages/hive-mind-core/src/mind/improvement-signals.ts" - ], - "packages/hive-mind-core/tests/mind/inprocess-embedder.test.ts": [ - "packages/hive-mind-core/src/mind/inprocess-embedder.ts" - ], - "packages/hive-mind-core/tests/mind/knowledge-hive-mind.test.ts": [ - "packages/hive-mind-core/src/mind/db.ts", - "packages/hive-mind-core/src/mind/knowledge.ts" - ], - "packages/hive-mind-core/tests/mind/knowledge.test.ts": [ - "packages/hive-mind-core/src/mind/db.ts", - "packages/hive-mind-core/src/mind/knowledge.ts" - ], - "packages/hive-mind-core/tests/mind/ontology.test.ts": [ - "packages/hive-mind-core/src/mind/ontology.ts" - ], - "packages/hive-mind-core/tests/mind/parse-date-window.test.ts": [ - "packages/hive-mind-core/src/mind/parse-date-window.ts" - ], - "packages/hive-mind-core/tests/mind/raw-detail-lane.test.ts": [ - "packages/hive-mind-core/src/harvest/raw-turns.ts", - "packages/hive-mind-core/src/mind/db.ts", - "packages/hive-mind-core/src/mind/frames.ts", - "packages/hive-mind-core/src/mind/inprocess-reranker.ts", - "packages/hive-mind-core/src/mind/raw-detail-lane.ts", - "packages/hive-mind-core/src/mind/sessions.ts" - ], - "packages/hive-mind-core/tests/mind/reconcile-hive-mind.test.ts": [ - "packages/hive-mind-core/src/mind/db.ts", - "packages/hive-mind-core/src/mind/embedding-provider.ts", - "packages/hive-mind-core/src/mind/frames.ts", - "packages/hive-mind-core/src/mind/reconcile.ts" - ], - "packages/hive-mind-core/tests/mind/reconcile.test.ts": [ - "packages/hive-mind-core/src/mind/db.ts", - "packages/hive-mind-core/src/mind/frames.ts", - "packages/hive-mind-core/src/mind/reconcile.ts", - "packages/hive-mind-core/src/mind/search.ts", - "packages/hive-mind-core/src/mind/sessions.ts", - "packages/hive-mind-core/tests/mind/helpers/mock-embedder.ts" - ], - "packages/hive-mind-core/tests/mind/resolve-relative-date.test.ts": [ - "packages/hive-mind-core/src/mind/resolve-relative-date.ts" - ], - "packages/hive-mind-core/tests/mind/schema.test.ts": [ - "packages/hive-mind-core/src/mind/db.ts" - ], - "packages/hive-mind-core/tests/mind/scoring.test.ts": [ - "packages/hive-mind-core/src/mind/scoring.ts" - ], - "packages/hive-mind-core/tests/mind/search-chunks.test.ts": [ - "packages/hive-mind-core/src/mind/db.ts", - "packages/hive-mind-core/src/mind/frames.ts", - "packages/hive-mind-core/src/mind/search.ts", - "packages/hive-mind-core/src/mind/sessions.ts", - "packages/hive-mind-core/tests/mind/helpers/mock-embedder.ts" - ], - "packages/hive-mind-core/tests/mind/search-date-window.test.ts": [ - "packages/hive-mind-core/src/mind/db.ts", - "packages/hive-mind-core/src/mind/frames.ts", - "packages/hive-mind-core/src/mind/search.ts", - "packages/hive-mind-core/src/mind/sessions.ts", - "packages/hive-mind-core/tests/mind/helpers/mock-embedder.ts" - ], - "packages/hive-mind-core/tests/mind/search-hive-mind.test.ts": [ - "packages/hive-mind-core/src/mind/db.ts", - "packages/hive-mind-core/src/mind/embedding-provider.ts", - "packages/hive-mind-core/src/mind/frames.ts", - "packages/hive-mind-core/src/mind/search.ts" - ], - "packages/hive-mind-core/tests/mind/search-reranker.test.ts": [ - "packages/hive-mind-core/src/mind/db.ts", - "packages/hive-mind-core/src/mind/frames.ts", - "packages/hive-mind-core/src/mind/inprocess-reranker.ts", - "packages/hive-mind-core/src/mind/scoring.ts", - "packages/hive-mind-core/src/mind/search.ts", - "packages/hive-mind-core/src/mind/sessions.ts", - "packages/hive-mind-core/tests/mind/helpers/mock-embedder.ts" - ], - "packages/hive-mind-core/tests/mind/search.test.ts": [ - "packages/hive-mind-core/src/mind/db.ts", - "packages/hive-mind-core/src/mind/frames.ts", - "packages/hive-mind-core/src/mind/scoring.ts", - "packages/hive-mind-core/src/mind/search.ts", - "packages/hive-mind-core/src/mind/sessions.ts", - "packages/hive-mind-core/tests/mind/helpers/mock-embedder.ts" - ], - "packages/hive-mind-core/tests/mind/sessions-hive-mind.test.ts": [ - "packages/hive-mind-core/src/mind/db.ts", - "packages/hive-mind-core/src/mind/sessions.ts" - ], - "packages/hive-mind-core/tests/mind/sessions.test.ts": [ - "packages/hive-mind-core/src/mind/db.ts", - "packages/hive-mind-core/src/mind/sessions.ts" - ], - "packages/hive-mind-core/tests/mind/temporal-knowledge.test.ts": [ - "packages/hive-mind-core/src/mind/db.ts", - "packages/hive-mind-core/src/mind/knowledge.ts" - ], - "packages/hive-mind-core/tests/multi-mind.test.ts": [ - "packages/hive-mind-core/src/mind/awareness.ts", - "packages/hive-mind-core/src/mind/db.ts", - "packages/hive-mind-core/src/mind/frames.ts", - "packages/hive-mind-core/src/mind/identity.ts", - "packages/hive-mind-core/src/multi-mind.ts" - ], - "packages/hive-mind-core/tests/ontology.test.ts": [ - "packages/hive-mind-core/src/mind/ontology.ts" - ], - "packages/hive-mind-core/tests/workspace-manager.test.ts": [ - "packages/hive-mind-core/src/workspace-manager.ts" - ], - "packages/hive-mind-core/tsconfig.json": [], - "packages/hive-mind-hooks-claude-code/package.json": [], - "packages/hive-mind-hooks-claude-code/README.md": [], - "packages/hive-mind-hooks-claude-code/src/bin/claude-code-hooks-cli.ts": [ - "packages/hive-mind-hooks-claude-code/src/install.ts", - "packages/hive-mind-hooks-claude-code/src/uninstall.ts", - "packages/hive-mind-hooks-claude-code/src/verify.ts" - ], - "packages/hive-mind-hooks-claude-code/src/hooks/_shared.ts": [], - "packages/hive-mind-hooks-claude-code/src/hooks/pre-compact.ts": [ - "packages/hive-mind-hooks-claude-code/src/hooks/_shared.ts" - ], - "packages/hive-mind-hooks-claude-code/src/hooks/session-start.ts": [ - "packages/hive-mind-hooks-claude-code/src/hooks/_shared.ts" - ], - "packages/hive-mind-hooks-claude-code/src/hooks/stop.ts": [ - "packages/hive-mind-hooks-claude-code/src/hooks/_shared.ts" - ], - "packages/hive-mind-hooks-claude-code/src/hooks/user-prompt-submit.ts": [ - "packages/hive-mind-hooks-claude-code/src/hooks/_shared.ts" - ], - "packages/hive-mind-hooks-claude-code/src/index.ts": [], - "packages/hive-mind-hooks-claude-code/src/install.ts": [ - "packages/hive-mind-hooks-claude-code/src/paths.ts", - "packages/hive-mind-hooks-claude-code/src/settings-merger.ts" - ], - "packages/hive-mind-hooks-claude-code/src/paths.ts": [], - "packages/hive-mind-hooks-claude-code/src/settings-merger.ts": [ - "packages/hive-mind-hooks-claude-code/src/paths.ts" - ], - "packages/hive-mind-hooks-claude-code/src/uninstall.ts": [ - "packages/hive-mind-hooks-claude-code/src/paths.ts" - ], - "packages/hive-mind-hooks-claude-code/src/verify.ts": [ - "packages/hive-mind-hooks-claude-code/src/paths.ts", - "packages/hive-mind-hooks-claude-code/src/settings-merger.ts" - ], - "packages/hive-mind-hooks-claude-code/tests/hooks/_test-helpers.ts": [], - "packages/hive-mind-hooks-claude-code/tests/hooks/pre-compact.test.ts": [ - "packages/hive-mind-hooks-claude-code/src/hooks/pre-compact.ts", - "packages/hive-mind-hooks-claude-code/tests/hooks/_test-helpers.ts" - ], - "packages/hive-mind-hooks-claude-code/tests/hooks/session-start.test.ts": [ - "packages/hive-mind-hooks-claude-code/src/hooks/session-start.ts", - "packages/hive-mind-hooks-claude-code/tests/hooks/_test-helpers.ts" - ], - "packages/hive-mind-hooks-claude-code/tests/hooks/shared.test.ts": [ - "packages/hive-mind-hooks-claude-code/src/hooks/_shared.ts" - ], - "packages/hive-mind-hooks-claude-code/tests/hooks/stop.test.ts": [ - "packages/hive-mind-hooks-claude-code/src/hooks/stop.ts", - "packages/hive-mind-hooks-claude-code/tests/hooks/_test-helpers.ts" - ], - "packages/hive-mind-hooks-claude-code/tests/hooks/user-prompt-submit.test.ts": [ - "packages/hive-mind-hooks-claude-code/src/hooks/user-prompt-submit.ts", - "packages/hive-mind-hooks-claude-code/tests/hooks/_test-helpers.ts" - ], - "packages/hive-mind-hooks-claude-code/tests/install.test.ts": [ - "packages/hive-mind-hooks-claude-code/src/install.ts", - "packages/hive-mind-hooks-claude-code/src/settings-merger.ts" - ], - "packages/hive-mind-hooks-claude-code/tests/paths.test.ts": [ - "packages/hive-mind-hooks-claude-code/src/paths.ts" - ], - "packages/hive-mind-hooks-claude-code/tests/settings-merger.test.ts": [ - "packages/hive-mind-hooks-claude-code/src/paths.ts", - "packages/hive-mind-hooks-claude-code/src/settings-merger.ts" - ], - "packages/hive-mind-hooks-claude-code/tests/uninstall.test.ts": [ - "packages/hive-mind-hooks-claude-code/src/install.ts", - "packages/hive-mind-hooks-claude-code/src/settings-merger.ts", - "packages/hive-mind-hooks-claude-code/src/uninstall.ts" - ], - "packages/hive-mind-hooks-claude-code/tests/verify.test.ts": [ - "packages/hive-mind-hooks-claude-code/src/install.ts", - "packages/hive-mind-hooks-claude-code/src/settings-merger.ts", - "packages/hive-mind-hooks-claude-code/src/verify.ts" - ], - "packages/hive-mind-hooks-claude-code/tsconfig.json": [], - "packages/hive-mind-hooks-claude-code/tsconfig.test.json": [], - "packages/hive-mind-hooks-claude-code/upstream-pr/0001-fix-resolve-windows-cmd-shims.patch": [], - "packages/hive-mind-hooks-claude-code/upstream-pr/README.md": [], - "packages/hive-mind-hooks-claude-desktop/package.json": [], - "packages/hive-mind-hooks-claude-desktop/README.md": [], - "packages/hive-mind-hooks-claude-desktop/src/index.ts": [], - "packages/hive-mind-hooks-claude-desktop/tsconfig.json": [], - "packages/hive-mind-hooks-codex-desktop/package.json": [], - "packages/hive-mind-hooks-codex-desktop/README.md": [], - "packages/hive-mind-hooks-codex-desktop/src/bin/codex-desktop-hooks.ts": [], - "packages/hive-mind-hooks-codex-desktop/src/index.ts": [], - "packages/hive-mind-hooks-codex-desktop/tests/parity.test.ts": [ - "packages/hive-mind-hooks-codex-desktop/src/index.ts" - ], - "packages/hive-mind-hooks-codex-desktop/tsconfig.json": [], - "packages/hive-mind-hooks-codex-desktop/tsconfig.test.json": [], - "packages/hive-mind-hooks-codex/package.json": [], - "packages/hive-mind-hooks-codex/README.md": [], - "packages/hive-mind-hooks-codex/src/adapter.ts": [], - "packages/hive-mind-hooks-codex/src/bin/codex-hooks.ts": [ - "packages/hive-mind-hooks-codex/src/install.ts", - "packages/hive-mind-hooks-codex/src/uninstall.ts", - "packages/hive-mind-hooks-codex/src/verify.ts" - ], - "packages/hive-mind-hooks-codex/src/hooks/pre-compact.ts": [ - "packages/hive-mind-hooks-codex/src/adapter.ts" - ], - "packages/hive-mind-hooks-codex/src/hooks/session-start.ts": [ - "packages/hive-mind-hooks-codex/src/adapter.ts" - ], - "packages/hive-mind-hooks-codex/src/hooks/stop.ts": [ - "packages/hive-mind-hooks-codex/src/adapter.ts" - ], - "packages/hive-mind-hooks-codex/src/hooks/user-prompt-submit.ts": [ - "packages/hive-mind-hooks-codex/src/adapter.ts" - ], - "packages/hive-mind-hooks-codex/src/index.ts": [], - "packages/hive-mind-hooks-codex/src/install.ts": [ - "packages/hive-mind-hooks-codex/src/adapter.ts", - "packages/hive-mind-hooks-codex/src/paths.ts" - ], - "packages/hive-mind-hooks-codex/src/paths.ts": [], - "packages/hive-mind-hooks-codex/src/uninstall.ts": [ - "packages/hive-mind-hooks-codex/src/paths.ts" - ], - "packages/hive-mind-hooks-codex/src/verify.ts": [ - "packages/hive-mind-hooks-codex/src/adapter.ts", - "packages/hive-mind-hooks-codex/src/paths.ts" - ], - "packages/hive-mind-hooks-codex/tests/hooks/_test-helpers.ts": [], - "packages/hive-mind-hooks-codex/tests/hooks/pre-compact.test.ts": [ - "packages/hive-mind-hooks-codex/src/hooks/pre-compact.ts", - "packages/hive-mind-hooks-codex/tests/hooks/_test-helpers.ts" - ], - "packages/hive-mind-hooks-codex/tests/hooks/session-start.test.ts": [ - "packages/hive-mind-hooks-codex/src/hooks/session-start.ts", - "packages/hive-mind-hooks-codex/tests/hooks/_test-helpers.ts" - ], - "packages/hive-mind-hooks-codex/tests/hooks/stop.test.ts": [ - "packages/hive-mind-hooks-codex/src/hooks/stop.ts", - "packages/hive-mind-hooks-codex/tests/hooks/_test-helpers.ts" - ], - "packages/hive-mind-hooks-codex/tests/hooks/user-prompt-submit.test.ts": [ - "packages/hive-mind-hooks-codex/src/hooks/user-prompt-submit.ts", - "packages/hive-mind-hooks-codex/tests/hooks/_test-helpers.ts" - ], - "packages/hive-mind-hooks-codex/tests/install.test.ts": [ - "packages/hive-mind-hooks-codex/src/adapter.ts", - "packages/hive-mind-hooks-codex/src/install.ts" - ], - "packages/hive-mind-hooks-codex/tests/paths.test.ts": [ - "packages/hive-mind-hooks-codex/src/paths.ts" - ], - "packages/hive-mind-hooks-codex/tests/register.test.ts": [ - "packages/hive-mind-hooks-codex/src/adapter.ts", - "packages/hive-mind-hooks-codex/src/paths.ts" - ], - "packages/hive-mind-hooks-codex/tests/uninstall.test.ts": [ - "packages/hive-mind-hooks-codex/src/install.ts", - "packages/hive-mind-hooks-codex/src/uninstall.ts" - ], - "packages/hive-mind-hooks-codex/tests/verify.test.ts": [ - "packages/hive-mind-hooks-codex/src/install.ts", - "packages/hive-mind-hooks-codex/src/verify.ts" - ], - "packages/hive-mind-hooks-codex/tsconfig.json": [], - "packages/hive-mind-hooks-codex/tsconfig.test.json": [], - "packages/hive-mind-hooks-core/package.json": [], - "packages/hive-mind-hooks-core/src/event-adapter.ts": [], - "packages/hive-mind-hooks-core/src/handlers-core.ts": [ - "packages/hive-mind-hooks-core/src/event-adapter.ts", - "packages/hive-mind-hooks-core/src/hook-shared.ts" - ], - "packages/hive-mind-hooks-core/src/hook-shared.ts": [], - "packages/hive-mind-hooks-core/src/index.ts": [], - "packages/hive-mind-hooks-core/src/install-core.ts": [ - "packages/hive-mind-hooks-core/src/paths-core.ts" - ], - "packages/hive-mind-hooks-core/src/json-register.ts": [ - "packages/hive-mind-hooks-core/src/event-adapter.ts" - ], - "packages/hive-mind-hooks-core/src/paths-core.ts": [], - "packages/hive-mind-hooks-core/tests/_helpers.ts": [ - "packages/hive-mind-hooks-core/src/event-adapter.ts", - "packages/hive-mind-hooks-core/src/hook-shared.ts" - ], - "packages/hive-mind-hooks-core/tests/handlers-core.test.ts": [ - "packages/hive-mind-hooks-core/src/event-adapter.ts", - "packages/hive-mind-hooks-core/src/handlers-core.ts", - "packages/hive-mind-hooks-core/tests/_helpers.ts" - ], - "packages/hive-mind-hooks-core/tests/hook-shared.test.ts": [ - "packages/hive-mind-hooks-core/src/hook-shared.ts", - "packages/hive-mind-hooks-core/tests/_helpers.ts" - ], - "packages/hive-mind-hooks-core/tests/install-core.test.ts": [ - "packages/hive-mind-hooks-core/src/install-core.ts", - "packages/hive-mind-hooks-core/src/paths-core.ts" - ], - "packages/hive-mind-hooks-core/tests/json-register.test.ts": [ - "packages/hive-mind-hooks-core/src/event-adapter.ts", - "packages/hive-mind-hooks-core/src/json-register.ts" - ], - "packages/hive-mind-hooks-core/tests/paths-core.test.ts": [ - "packages/hive-mind-hooks-core/src/paths-core.ts" - ], - "packages/hive-mind-hooks-core/tsconfig.json": [], - "packages/hive-mind-hooks-core/tsconfig.test.json": [], - "packages/hive-mind-hooks-cursor/package.json": [], - "packages/hive-mind-hooks-cursor/README.md": [], - "packages/hive-mind-hooks-cursor/src/adapter.ts": [], - "packages/hive-mind-hooks-cursor/src/bin/cursor-hooks.ts": [ - "packages/hive-mind-hooks-cursor/src/install.ts", - "packages/hive-mind-hooks-cursor/src/uninstall.ts", - "packages/hive-mind-hooks-cursor/src/verify.ts" - ], - "packages/hive-mind-hooks-cursor/src/hooks/pre-compact.ts": [ - "packages/hive-mind-hooks-cursor/src/adapter.ts" - ], - "packages/hive-mind-hooks-cursor/src/hooks/session-start.ts": [ - "packages/hive-mind-hooks-cursor/src/adapter.ts" - ], - "packages/hive-mind-hooks-cursor/src/hooks/stop.ts": [ - "packages/hive-mind-hooks-cursor/src/adapter.ts" - ], - "packages/hive-mind-hooks-cursor/src/hooks/user-prompt-submit.ts": [ - "packages/hive-mind-hooks-cursor/src/adapter.ts" - ], - "packages/hive-mind-hooks-cursor/src/index.ts": [], - "packages/hive-mind-hooks-cursor/src/install.ts": [ - "packages/hive-mind-hooks-cursor/src/adapter.ts", - "packages/hive-mind-hooks-cursor/src/paths.ts" - ], - "packages/hive-mind-hooks-cursor/src/paths.ts": [], - "packages/hive-mind-hooks-cursor/src/uninstall.ts": [ - "packages/hive-mind-hooks-cursor/src/paths.ts" - ], - "packages/hive-mind-hooks-cursor/src/verify.ts": [ - "packages/hive-mind-hooks-cursor/src/adapter.ts", - "packages/hive-mind-hooks-cursor/src/paths.ts" - ], - "packages/hive-mind-hooks-cursor/tests/hooks/_test-helpers.ts": [], - "packages/hive-mind-hooks-cursor/tests/hooks/pre-compact.test.ts": [ - "packages/hive-mind-hooks-cursor/src/hooks/pre-compact.ts", - "packages/hive-mind-hooks-cursor/tests/hooks/_test-helpers.ts" - ], - "packages/hive-mind-hooks-cursor/tests/hooks/session-start.test.ts": [ - "packages/hive-mind-hooks-cursor/src/hooks/session-start.ts", - "packages/hive-mind-hooks-cursor/tests/hooks/_test-helpers.ts" - ], - "packages/hive-mind-hooks-cursor/tests/hooks/stop.test.ts": [ - "packages/hive-mind-hooks-cursor/src/adapter.ts", - "packages/hive-mind-hooks-cursor/src/hooks/stop.ts", - "packages/hive-mind-hooks-cursor/tests/hooks/_test-helpers.ts" - ], - "packages/hive-mind-hooks-cursor/tests/hooks/user-prompt-submit.test.ts": [ - "packages/hive-mind-hooks-cursor/src/hooks/user-prompt-submit.ts", - "packages/hive-mind-hooks-cursor/tests/hooks/_test-helpers.ts" - ], - "packages/hive-mind-hooks-cursor/tests/install.test.ts": [ - "packages/hive-mind-hooks-cursor/src/adapter.ts", - "packages/hive-mind-hooks-cursor/src/install.ts" - ], - "packages/hive-mind-hooks-cursor/tests/paths.test.ts": [ - "packages/hive-mind-hooks-cursor/src/paths.ts" - ], - "packages/hive-mind-hooks-cursor/tests/register.test.ts": [ - "packages/hive-mind-hooks-cursor/src/adapter.ts", - "packages/hive-mind-hooks-cursor/src/paths.ts" - ], - "packages/hive-mind-hooks-cursor/tests/uninstall.test.ts": [ - "packages/hive-mind-hooks-cursor/src/install.ts", - "packages/hive-mind-hooks-cursor/src/uninstall.ts" - ], - "packages/hive-mind-hooks-cursor/tests/verify.test.ts": [ - "packages/hive-mind-hooks-cursor/src/install.ts", - "packages/hive-mind-hooks-cursor/src/verify.ts" - ], - "packages/hive-mind-hooks-cursor/tsconfig.json": [], - "packages/hive-mind-hooks-cursor/tsconfig.test.json": [], - "packages/hive-mind-hooks-hermes/package.json": [], - "packages/hive-mind-hooks-hermes/README.md": [], - "packages/hive-mind-hooks-hermes/src/adapter.ts": [], - "packages/hive-mind-hooks-hermes/src/bin/hermes-hooks.ts": [ - "packages/hive-mind-hooks-hermes/src/install.ts", - "packages/hive-mind-hooks-hermes/src/uninstall.ts", - "packages/hive-mind-hooks-hermes/src/verify.ts" - ], - "packages/hive-mind-hooks-hermes/src/compact-on-stop.ts": [ - "packages/hive-mind-hooks-hermes/src/paths.ts" - ], - "packages/hive-mind-hooks-hermes/src/hooks/session-start.ts": [ - "packages/hive-mind-hooks-hermes/src/adapter.ts" - ], - "packages/hive-mind-hooks-hermes/src/hooks/stop.ts": [ - "packages/hive-mind-hooks-hermes/src/adapter.ts", - "packages/hive-mind-hooks-hermes/src/compact-on-stop.ts" - ], - "packages/hive-mind-hooks-hermes/src/hooks/user-prompt-submit.ts": [ - "packages/hive-mind-hooks-hermes/src/adapter.ts" - ], - "packages/hive-mind-hooks-hermes/src/index.ts": [], - "packages/hive-mind-hooks-hermes/src/install.ts": [ - "packages/hive-mind-hooks-hermes/src/adapter.ts", - "packages/hive-mind-hooks-hermes/src/paths.ts", - "packages/hive-mind-hooks-hermes/src/yaml-merger.ts" - ], - "packages/hive-mind-hooks-hermes/src/paths.ts": [], - "packages/hive-mind-hooks-hermes/src/uninstall.ts": [ - "packages/hive-mind-hooks-hermes/src/paths.ts" - ], - "packages/hive-mind-hooks-hermes/src/verify.ts": [ - "packages/hive-mind-hooks-hermes/src/paths.ts", - "packages/hive-mind-hooks-hermes/src/yaml-merger.ts" - ], - "packages/hive-mind-hooks-hermes/src/yaml-merger.ts": [], - "packages/hive-mind-hooks-hermes/tests/adapter.test.ts": [ - "packages/hive-mind-hooks-hermes/src/adapter.ts" - ], - "packages/hive-mind-hooks-hermes/tests/compact-on-stop.test.ts": [ - "packages/hive-mind-hooks-hermes/src/compact-on-stop.ts", - "packages/hive-mind-hooks-hermes/tests/hooks/_test-helpers.ts" - ], - "packages/hive-mind-hooks-hermes/tests/hooks/_test-helpers.ts": [], - "packages/hive-mind-hooks-hermes/tests/hooks/session-start.test.ts": [ - "packages/hive-mind-hooks-hermes/src/hooks/session-start.ts", - "packages/hive-mind-hooks-hermes/tests/hooks/_test-helpers.ts" - ], - "packages/hive-mind-hooks-hermes/tests/hooks/stop.test.ts": [ - "packages/hive-mind-hooks-hermes/src/hooks/stop.ts", - "packages/hive-mind-hooks-hermes/tests/hooks/_test-helpers.ts" - ], - "packages/hive-mind-hooks-hermes/tests/hooks/user-prompt-submit.test.ts": [ - "packages/hive-mind-hooks-hermes/src/hooks/user-prompt-submit.ts", - "packages/hive-mind-hooks-hermes/tests/hooks/_test-helpers.ts" - ], - "packages/hive-mind-hooks-hermes/tests/install.test.ts": [ - "packages/hive-mind-hooks-hermes/src/install.ts", - "packages/hive-mind-hooks-hermes/src/yaml-merger.ts" - ], - "packages/hive-mind-hooks-hermes/tests/paths.test.ts": [ - "packages/hive-mind-hooks-hermes/src/paths.ts" - ], - "packages/hive-mind-hooks-hermes/tests/register.test.ts": [ - "packages/hive-mind-hooks-hermes/src/yaml-merger.ts" - ], - "packages/hive-mind-hooks-hermes/tests/uninstall.test.ts": [ - "packages/hive-mind-hooks-hermes/src/install.ts", - "packages/hive-mind-hooks-hermes/src/uninstall.ts" - ], - "packages/hive-mind-hooks-hermes/tests/verify.test.ts": [ - "packages/hive-mind-hooks-hermes/src/install.ts", - "packages/hive-mind-hooks-hermes/src/verify.ts" - ], - "packages/hive-mind-hooks-hermes/tsconfig.json": [], - "packages/hive-mind-hooks-hermes/tsconfig.test.json": [], - "packages/hive-mind-hooks-openclaw/package.json": [], - "packages/hive-mind-hooks-openclaw/README.md": [], - "packages/hive-mind-hooks-openclaw/src/adapter.ts": [], - "packages/hive-mind-hooks-openclaw/src/bin/openclaw-hooks.ts": [ - "packages/hive-mind-hooks-openclaw/src/install.ts", - "packages/hive-mind-hooks-openclaw/src/uninstall.ts", - "packages/hive-mind-hooks-openclaw/src/verify.ts" - ], - "packages/hive-mind-hooks-openclaw/src/handler.ts": [ - "packages/hive-mind-hooks-openclaw/src/adapter.ts" - ], - "packages/hive-mind-hooks-openclaw/src/hook-md.ts": [], - "packages/hive-mind-hooks-openclaw/src/index.ts": [], - "packages/hive-mind-hooks-openclaw/src/install.ts": [ - "packages/hive-mind-hooks-openclaw/src/hook-md.ts", - "packages/hive-mind-hooks-openclaw/src/json5-merger.ts", - "packages/hive-mind-hooks-openclaw/src/paths.ts" - ], - "packages/hive-mind-hooks-openclaw/src/json5-merger.ts": [], - "packages/hive-mind-hooks-openclaw/src/paths.ts": [], - "packages/hive-mind-hooks-openclaw/src/uninstall.ts": [ - "packages/hive-mind-hooks-openclaw/src/paths.ts" - ], - "packages/hive-mind-hooks-openclaw/src/verify.ts": [ - "packages/hive-mind-hooks-openclaw/src/json5-merger.ts", - "packages/hive-mind-hooks-openclaw/src/paths.ts" - ], - "packages/hive-mind-hooks-openclaw/tests/handler.test.ts": [ - "packages/hive-mind-hooks-openclaw/src/adapter.ts" - ], - "packages/hive-mind-hooks-openclaw/tests/install.test.ts": [ - "packages/hive-mind-hooks-openclaw/src/install.ts", - "packages/hive-mind-hooks-openclaw/src/json5-merger.ts" - ], - "packages/hive-mind-hooks-openclaw/tests/json5-merger.test.ts": [ - "packages/hive-mind-hooks-openclaw/src/json5-merger.ts" - ], - "packages/hive-mind-hooks-openclaw/tests/paths.test.ts": [ - "packages/hive-mind-hooks-openclaw/src/paths.ts" - ], - "packages/hive-mind-hooks-openclaw/tests/uninstall.test.ts": [ - "packages/hive-mind-hooks-openclaw/src/install.ts", - "packages/hive-mind-hooks-openclaw/src/uninstall.ts" - ], - "packages/hive-mind-hooks-openclaw/tests/verify.test.ts": [ - "packages/hive-mind-hooks-openclaw/src/install.ts", - "packages/hive-mind-hooks-openclaw/src/verify.ts" - ], - "packages/hive-mind-hooks-openclaw/tsconfig.json": [], - "packages/hive-mind-hooks-openclaw/tsconfig.test.json": [], - "packages/hive-mind-mcp-server/NOTICE": [], - "packages/hive-mind-mcp-server/package.json": [], - "packages/hive-mind-mcp-server/README.md": [], - "packages/hive-mind-mcp-server/src/core/setup.ts": [], - "packages/hive-mind-mcp-server/src/index.ts": [ - "packages/hive-mind-mcp-server/src/core/setup.ts", - "packages/hive-mind-mcp-server/src/resources/memory.ts", - "packages/hive-mind-mcp-server/src/tools/awareness.ts", - "packages/hive-mind-mcp-server/src/tools/cleanup.ts", - "packages/hive-mind-mcp-server/src/tools/harvest.ts", - "packages/hive-mind-mcp-server/src/tools/identity.ts", - "packages/hive-mind-mcp-server/src/tools/ingest.ts", - "packages/hive-mind-mcp-server/src/tools/knowledge.ts", - "packages/hive-mind-mcp-server/src/tools/memory.ts", - "packages/hive-mind-mcp-server/src/tools/wiki.ts", - "packages/hive-mind-mcp-server/src/tools/workspace.ts" - ], - "packages/hive-mind-mcp-server/src/integration.test.ts": [ - "packages/hive-mind-mcp-server/src/resources/memory.ts", - "packages/hive-mind-mcp-server/src/tools/awareness.ts", - "packages/hive-mind-mcp-server/src/tools/cleanup.ts", - "packages/hive-mind-mcp-server/src/tools/harvest.ts", - "packages/hive-mind-mcp-server/src/tools/identity.ts", - "packages/hive-mind-mcp-server/src/tools/ingest.ts", - "packages/hive-mind-mcp-server/src/tools/knowledge.ts", - "packages/hive-mind-mcp-server/src/tools/memory.ts", - "packages/hive-mind-mcp-server/src/tools/wiki.ts", - "packages/hive-mind-mcp-server/src/tools/workspace.ts" - ], - "packages/hive-mind-mcp-server/src/resources/memory.ts": [ - "packages/hive-mind-mcp-server/src/core/setup.ts" - ], - "packages/hive-mind-mcp-server/src/tools/awareness.ts": [ - "packages/hive-mind-mcp-server/src/core/setup.ts" - ], - "packages/hive-mind-mcp-server/src/tools/cleanup.ts": [ - "packages/hive-mind-mcp-server/src/core/setup.ts" - ], - "packages/hive-mind-mcp-server/src/tools/harvest.ts": [ - "packages/hive-mind-mcp-server/src/core/setup.ts" - ], - "packages/hive-mind-mcp-server/src/tools/identity.ts": [ - "packages/hive-mind-mcp-server/src/core/setup.ts" - ], - "packages/hive-mind-mcp-server/src/tools/ingest.ts": [ - "packages/hive-mind-mcp-server/src/core/setup.ts" - ], - "packages/hive-mind-mcp-server/src/tools/knowledge.ts": [ - "packages/hive-mind-mcp-server/src/core/setup.ts" - ], - "packages/hive-mind-mcp-server/src/tools/memory.ts": [ - "packages/hive-mind-mcp-server/src/core/setup.ts" - ], - "packages/hive-mind-mcp-server/src/tools/wiki.ts": [ - "packages/hive-mind-mcp-server/src/core/setup.ts" - ], - "packages/hive-mind-mcp-server/src/tools/workspace.ts": [ - "packages/hive-mind-mcp-server/src/core/setup.ts" - ], - "packages/hive-mind-mcp-server/tsconfig.json": [], - "packages/hive-mind-shim-core/package.json": [], - "packages/hive-mind-shim-core/README.md": [], - "packages/hive-mind-shim-core/src/cli-bridge.ts": [ - "packages/hive-mind-shim-core/src/frame-encoder.ts", - "packages/hive-mind-shim-core/src/logger.ts", - "packages/hive-mind-shim-core/src/retry-bridge.ts" - ], - "packages/hive-mind-shim-core/src/frame-encoder.ts": [ - "packages/hive-mind-shim-core/src/hook-event-types.ts", - "packages/hive-mind-shim-core/src/importance-classifier.ts" - ], - "packages/hive-mind-shim-core/src/hook-event-types.ts": [], - "packages/hive-mind-shim-core/src/importance-classifier.ts": [], - "packages/hive-mind-shim-core/src/index.ts": [], - "packages/hive-mind-shim-core/src/logger.ts": [], - "packages/hive-mind-shim-core/src/prompt-summarizer.ts": [], - "packages/hive-mind-shim-core/src/retry-bridge.ts": [], - "packages/hive-mind-shim-core/src/signal-emitter.ts": [ - "packages/hive-mind-shim-core/src/hook-event-types.ts" - ], - "packages/hive-mind-shim-core/src/workspace-resolver.ts": [], - "packages/hive-mind-shim-core/tests/cli-bridge.test.ts": [ - "packages/hive-mind-shim-core/src/cli-bridge.ts", - "packages/hive-mind-shim-core/src/frame-encoder.ts" - ], - "packages/hive-mind-shim-core/tests/frame-encoder.test.ts": [ - "packages/hive-mind-shim-core/src/frame-encoder.ts", - "packages/hive-mind-shim-core/src/hook-event-types.ts" - ], - "packages/hive-mind-shim-core/tests/hook-event-types.test.ts": [ - "packages/hive-mind-shim-core/src/hook-event-types.ts" - ], - "packages/hive-mind-shim-core/tests/importance-classifier.test.ts": [ - "packages/hive-mind-shim-core/src/importance-classifier.ts" - ], - "packages/hive-mind-shim-core/tests/integration/wire-roundtrip.integration.test.ts": [ - "packages/hive-mind-shim-core/src/cli-bridge.ts", - "packages/hive-mind-shim-core/src/frame-encoder.ts", - "packages/hive-mind-shim-core/src/hook-event-types.ts" - ], - "packages/hive-mind-shim-core/tests/logger.test.ts": [ - "packages/hive-mind-shim-core/src/logger.ts" - ], - "packages/hive-mind-shim-core/tests/prompt-summarizer.test.ts": [ - "packages/hive-mind-shim-core/src/prompt-summarizer.ts" - ], - "packages/hive-mind-shim-core/tests/retry-bridge.test.ts": [ - "packages/hive-mind-shim-core/src/retry-bridge.ts" - ], - "packages/hive-mind-shim-core/tests/signal-emitter.test.ts": [ - "packages/hive-mind-shim-core/src/signal-emitter.ts" - ], - "packages/hive-mind-shim-core/tests/workspace-resolver.test.ts": [ - "packages/hive-mind-shim-core/src/workspace-resolver.ts" - ], - "packages/hive-mind-shim-core/tsconfig.json": [], - "packages/hive-mind-shim-core/tsconfig.test.json": [], - "packages/hive-mind-wiki-compiler/NOTICE": [], - "packages/hive-mind-wiki-compiler/package.json": [], - "packages/hive-mind-wiki-compiler/README.md": [], - "packages/hive-mind-wiki-compiler/src/compiler.test.ts": [ - "packages/hive-mind-wiki-compiler/src/compiler.ts", - "packages/hive-mind-wiki-compiler/src/state.ts", - "packages/hive-mind-wiki-compiler/src/types.ts" - ], - "packages/hive-mind-wiki-compiler/src/compiler.ts": [ - "packages/hive-mind-wiki-compiler/src/prompts.ts", - "packages/hive-mind-wiki-compiler/src/state.ts", - "packages/hive-mind-wiki-compiler/src/types.ts" - ], - "packages/hive-mind-wiki-compiler/src/index.ts": [], - "packages/hive-mind-wiki-compiler/src/prompts.ts": [], - "packages/hive-mind-wiki-compiler/src/state.test.ts": [ - "packages/hive-mind-wiki-compiler/src/state.ts" - ], - "packages/hive-mind-wiki-compiler/src/state.ts": [ - "packages/hive-mind-wiki-compiler/src/types.ts" - ], - "packages/hive-mind-wiki-compiler/src/synthesizer.test.ts": [ - "packages/hive-mind-wiki-compiler/src/synthesizer.ts" - ], - "packages/hive-mind-wiki-compiler/src/synthesizer.ts": [ - "packages/hive-mind-wiki-compiler/src/types.ts" - ], - "packages/hive-mind-wiki-compiler/src/types.ts": [], - "packages/hive-mind-wiki-compiler/tsconfig.json": [], - "packages/launcher/package.json": [], - "packages/launcher/src/cli.ts": [], - "packages/launcher/tests/cli.test.ts": [], - "packages/launcher/tsup.config.ts": [], - "packages/marketplace/ARCHITECTURE.md": [], - "packages/marketplace/package.json": [], - "packages/marketplace/skills/browser-automation.md": [], - "packages/marketplace/skills/chart-generator.md": [], - "packages/marketplace/skills/pdf-generator.md": [], - "packages/marketplace/skills/pptx-generator.md": [], - "packages/marketplace/skills/xlsx-generator.md": [], - "packages/marketplace/src/categories.ts": [ - "packages/marketplace/src/db.ts" - ], - "packages/marketplace/src/cisco-scanner.ts": [], - "packages/marketplace/src/cli.ts": [ - "packages/marketplace/src/db.ts", - "packages/marketplace/src/installer.ts", - "packages/marketplace/src/security.ts", - "packages/marketplace/src/sync.ts", - "packages/marketplace/src/types.ts" - ], - "packages/marketplace/src/db.ts": [ - "packages/marketplace/src/mcp-registry.ts", - "packages/marketplace/src/types.ts" - ], - "packages/marketplace/src/enterprise-packs.ts": [], - "packages/marketplace/src/index.ts": [], - "packages/marketplace/src/installer.ts": [ - "packages/marketplace/src/db.ts", - "packages/marketplace/src/security.ts", - "packages/marketplace/src/types.ts" - ], - "packages/marketplace/src/mcp-registry.ts": [ - "packages/marketplace/src/db.ts", - "packages/marketplace/src/types.ts" - ], - "packages/marketplace/src/security.ts": [ - "packages/marketplace/src/cisco-scanner.ts", - "packages/marketplace/src/types.ts" - ], - "packages/marketplace/src/sources-seed.ts": [ - "packages/marketplace/src/db.ts" - ], - "packages/marketplace/src/sync.ts": [ - "packages/marketplace/src/db.ts", - "packages/marketplace/src/types.ts" - ], - "packages/marketplace/src/types.ts": [], - "packages/marketplace/tests/categories.test.ts": [ - "packages/marketplace/src/categories.ts", - "packages/marketplace/src/db.ts" - ], - "packages/marketplace/tests/cisco-scanner.test.ts": [ - "packages/marketplace/src/cisco-scanner.ts", - "packages/marketplace/src/security.ts", - "packages/marketplace/src/types.ts" - ], - "packages/marketplace/tests/enterprise-packs.test.ts": [ - "packages/marketplace/src/enterprise-packs.ts" - ], - "packages/marketplace/tests/mcp-registry.test.ts": [ - "packages/marketplace/src/db.ts", - "packages/marketplace/src/mcp-registry.ts" - ], - "packages/marketplace/tests/sync-adapters.test.ts": [ - "packages/marketplace/src/db.ts", - "packages/marketplace/src/sources-seed.ts", - "packages/marketplace/src/sync.ts", - "packages/marketplace/src/types.ts" - ], - "packages/marketplace/tests/sync-verification.test.ts": [ - "packages/marketplace/src/db.ts", - "packages/marketplace/src/sync.ts", - "packages/marketplace/src/types.ts" - ], - "packages/marketplace/tsconfig.json": [], - "packages/memory-mcp/package.json": [], - "packages/memory-mcp/README.md": [], - "packages/memory-mcp/src/core/setup.ts": [], - "packages/memory-mcp/src/index.ts": [ - "packages/memory-mcp/src/core/setup.ts", - "packages/memory-mcp/src/resources/memory.ts", - "packages/memory-mcp/src/tools/awareness.ts", - "packages/memory-mcp/src/tools/cleanup.ts", - "packages/memory-mcp/src/tools/harvest.ts", - "packages/memory-mcp/src/tools/identity.ts", - "packages/memory-mcp/src/tools/ingest.ts", - "packages/memory-mcp/src/tools/knowledge.ts", - "packages/memory-mcp/src/tools/memory.ts", - "packages/memory-mcp/src/tools/wiki.ts", - "packages/memory-mcp/src/tools/workspace.ts" - ], - "packages/memory-mcp/src/resources/memory.ts": [ - "packages/memory-mcp/src/core/setup.ts" - ], - "packages/memory-mcp/src/tools/awareness.ts": [ - "packages/memory-mcp/src/core/setup.ts" - ], - "packages/memory-mcp/src/tools/cleanup.ts": [ - "packages/memory-mcp/src/core/setup.ts" - ], - "packages/memory-mcp/src/tools/harvest.ts": [ - "packages/memory-mcp/src/core/setup.ts" - ], - "packages/memory-mcp/src/tools/identity.ts": [ - "packages/memory-mcp/src/core/setup.ts" - ], - "packages/memory-mcp/src/tools/ingest.ts": [ - "packages/memory-mcp/src/core/setup.ts" - ], - "packages/memory-mcp/src/tools/knowledge.ts": [ - "packages/memory-mcp/src/core/setup.ts" - ], - "packages/memory-mcp/src/tools/memory.ts": [ - "packages/memory-mcp/src/core/setup.ts" - ], - "packages/memory-mcp/src/tools/wiki.ts": [ - "packages/memory-mcp/src/core/setup.ts" - ], - "packages/memory-mcp/src/tools/workspace.ts": [ - "packages/memory-mcp/src/core/setup.ts" - ], - "packages/memory-mcp/tsconfig.json": [], - "packages/optimizer/package.json": [], - "packages/optimizer/README.md": [], - "packages/optimizer/src/index.ts": [], - "packages/optimizer/src/optimizer.ts": [ - "packages/optimizer/src/signatures.ts" - ], - "packages/optimizer/src/signatures.ts": [], - "packages/optimizer/tests/optimizer.test.ts": [ - "packages/optimizer/src/optimizer.ts", - "packages/optimizer/src/signatures.ts" - ], - "packages/optimizer/tsconfig.json": [], - "packages/optimizer/vitest.config.ts": [], - "packages/sdk/package.json": [], - "packages/sdk/src/capability-packs/decision-framework.json": [], - "packages/sdk/src/capability-packs/index.ts": [], - "packages/sdk/src/capability-packs/planning-master.json": [], - "packages/sdk/src/capability-packs/research-workflow.json": [], - "packages/sdk/src/capability-packs/team-collaboration.json": [], - "packages/sdk/src/capability-packs/writing-suite.json": [], - "packages/sdk/src/index.ts": [], - "packages/sdk/src/init-skill.ts": [], - "packages/sdk/src/plugin-manager.ts": [ - "packages/sdk/src/plugin-manifest.ts", - "packages/sdk/src/plugin-runtime.ts" - ], - "packages/sdk/src/plugin-manifest.ts": [], - "packages/sdk/src/plugin-runtime.ts": [ - "packages/sdk/src/plugin-manifest.ts" - ], - "packages/sdk/src/starter-skills/brainstorm.md": [], - "packages/sdk/src/starter-skills/catch-up.md": [], - "packages/sdk/src/starter-skills/code-review.md": [], - "packages/sdk/src/starter-skills/compare-docs.md": [], - "packages/sdk/src/starter-skills/daily-plan.md": [], - "packages/sdk/src/starter-skills/decision-matrix.md": [], - "packages/sdk/src/starter-skills/draft-memo.md": [], - "packages/sdk/src/starter-skills/explain-concept.md": [], - "packages/sdk/src/starter-skills/extract-actions.md": [], - "packages/sdk/src/starter-skills/index.ts": [], - "packages/sdk/src/starter-skills/meeting-prep.md": [], - "packages/sdk/src/starter-skills/plan-execute.md": [], - "packages/sdk/src/starter-skills/research-synthesis.md": [], - "packages/sdk/src/starter-skills/research-team.md": [], - "packages/sdk/src/starter-skills/retrospective.md": [], - "packages/sdk/src/starter-skills/review-pair.md": [], - "packages/sdk/src/starter-skills/risk-assessment.md": [], - "packages/sdk/src/starter-skills/status-update.md": [], - "packages/sdk/src/starter-skills/task-breakdown.md": [], - "packages/sdk/src/validate-skill.ts": [], - "packages/sdk/tests/plugin-manager.test.ts": [ - "packages/sdk/src/plugin-manager.ts", - "packages/sdk/src/plugin-manifest.ts" - ], - "packages/sdk/tests/plugin-runtime.test.ts": [ - "packages/sdk/src/plugin-manager.ts", - "packages/sdk/src/plugin-runtime.ts" - ], - "packages/sdk/tests/starter-skills.test.ts": [ - "packages/sdk/src/starter-skills/index.ts" - ], - "packages/sdk/tests/validate-skill.test.ts": [ - "packages/sdk/src/validate-skill.ts" - ], - "packages/sdk/tests/wave-g-capability-surface.test.ts": [ - "packages/sdk/src/capability-packs/index.ts" - ], - "packages/sdk/tsconfig.json": [], - "packages/sdk/vitest.config.ts": [], - "packages/server/.mcp.json": [], - "packages/server/drizzle.config.ts": [], - "packages/server/drizzle/0000_wild_glorian.sql": [], - "packages/server/drizzle/0001_redundant_sauron.sql": [], - "packages/server/drizzle/meta/_journal.json": [], - "packages/server/drizzle/meta/0000_snapshot.json": [], - "packages/server/drizzle/meta/0001_snapshot.json": [], - "packages/server/package.json": [], - "packages/server/src/benchmarks/aggregate.ts": [], - "packages/server/src/benchmarks/judge/ensemble-tiebreak.ts": [ - "packages/server/src/benchmarks/judge/failure-mode-judge.ts" - ], - "packages/server/src/benchmarks/judge/failure-mode-judge.ts": [], - "packages/server/src/config.ts": [], - "packages/server/src/daemons/hive-mind.ts": [ - "packages/server/src/db/connection.ts", - "packages/server/src/db/schema.ts" - ], - "packages/server/src/daemons/scout.ts": [ - "packages/server/src/db/connection.ts", - "packages/server/src/db/schema.ts" - ], - "packages/server/src/daemons/subconscious.ts": [ - "packages/server/src/db/connection.ts", - "packages/server/src/db/schema.ts" - ], - "packages/server/src/db/connection.ts": [ - "packages/server/src/db/schema.ts" - ], - "packages/server/src/db/migrate.ts": [ - "packages/server/src/db/connection.ts", - "packages/server/src/local/logger.ts" - ], - "packages/server/src/db/schema.ts": [], - "packages/server/src/index.ts": [ - "packages/server/src/config.ts", - "packages/server/src/db/connection.ts", - "packages/server/src/local/logger.ts", - "packages/server/src/plugins/auth.ts", - "packages/server/src/plugins/redis.ts", - "packages/server/src/routes/agents.ts", - "packages/server/src/routes/analytics.ts", - "packages/server/src/routes/audit.ts", - "packages/server/src/routes/capability-governance.ts", - "packages/server/src/routes/cron.ts", - "packages/server/src/routes/jobs.ts", - "packages/server/src/routes/knowledge.ts", - "packages/server/src/routes/messages.ts", - "packages/server/src/routes/resources.ts", - "packages/server/src/routes/scout.ts", - "packages/server/src/routes/suggestions.ts", - "packages/server/src/routes/tasks.ts", - "packages/server/src/routes/teams.ts", - "packages/server/src/routes/webhooks.ts", - "packages/server/src/services/job-service.ts", - "packages/server/src/ws/gateway.ts" - ], - "packages/server/src/kvark/index.ts": [], - "packages/server/src/kvark/kvark-auth.ts": [ - "packages/server/src/kvark/kvark-types.ts" - ], - "packages/server/src/kvark/kvark-client.ts": [ - "packages/server/src/kvark/kvark-auth.ts", - "packages/server/src/kvark/kvark-types.ts" - ], - "packages/server/src/kvark/kvark-config.ts": [ - "packages/server/src/kvark/kvark-types.ts" - ], - "packages/server/src/kvark/kvark-types.ts": [], - "packages/server/src/local/agents-store.ts": [], - "packages/server/src/local/approval-grants.ts": [], - "packages/server/src/local/cors-config.ts": [], - "packages/server/src/local/cron.ts": [ - "packages/server/src/local/logger.ts" - ], - "packages/server/src/local/data-erase-helpers.ts": [], - "packages/server/src/local/index.ts": [ - "packages/server/src/local/cors-config.ts", - "packages/server/src/local/cron.ts", - "packages/server/src/local/logger.ts", - "packages/server/src/local/mcp-config.ts", - "packages/server/src/local/memory-lane-cron.ts", - "packages/server/src/local/monthly-assessment.ts", - "packages/server/src/local/net-config.ts", - "packages/server/src/local/offline-manager.ts", - "packages/server/src/local/origin-guard.ts", - "packages/server/src/local/proactive-handlers.ts", - "packages/server/src/local/routes/agent-groups.ts", - "packages/server/src/local/routes/agent-run.ts", - "packages/server/src/local/routes/agent-search.ts", - "packages/server/src/local/routes/agent.ts", - "packages/server/src/local/routes/agents.ts", - "packages/server/src/local/routes/anthropic-proxy.ts", - "packages/server/src/local/routes/approval.ts", - "packages/server/src/local/routes/artifacts.ts", - "packages/server/src/local/routes/automations.ts", - "packages/server/src/local/routes/backup.ts", - "packages/server/src/local/routes/browse.ts", - "packages/server/src/local/routes/browser-ext.ts", - "packages/server/src/local/routes/capabilities.ts", - "packages/server/src/local/routes/chat.ts", - "packages/server/src/local/routes/command.ts", - "packages/server/src/local/routes/commands.ts", - "packages/server/src/local/routes/compliance.ts", - "packages/server/src/local/routes/connectors.ts", - "packages/server/src/local/routes/cost.ts", - "packages/server/src/local/routes/cron.ts", - "packages/server/src/local/routes/data-erase.ts", - "packages/server/src/local/routes/documents.ts", - "packages/server/src/local/routes/events.ts", - "packages/server/src/local/routes/evolution.ts", - "packages/server/src/local/routes/export.ts", - "packages/server/src/local/routes/extend.ts", - "packages/server/src/local/routes/feedback.ts", - "packages/server/src/local/routes/files.ts", - "packages/server/src/local/routes/fleet.ts", - "packages/server/src/local/routes/harvest.ts", - "packages/server/src/local/routes/home.ts", - "packages/server/src/local/routes/identity.ts", - "packages/server/src/local/routes/import.ts", - "packages/server/src/local/routes/ingest.ts", - "packages/server/src/local/routes/knowledge.ts", - "packages/server/src/local/routes/litellm.ts", - "packages/server/src/local/routes/local-inference.ts", - "packages/server/src/local/routes/marketplace-dev.ts", - "packages/server/src/local/routes/marketplace.ts", - "packages/server/src/local/routes/mcps.ts", - "packages/server/src/local/routes/memory-center.ts", - "packages/server/src/local/routes/memory.ts", - "packages/server/src/local/routes/mind.ts", - "packages/server/src/local/routes/notifications.ts", - "packages/server/src/local/routes/oauth.ts", - "packages/server/src/local/routes/offline.ts", - "packages/server/src/local/routes/onboarding.ts", - "packages/server/src/local/routes/personas.ts", - "packages/server/src/local/routes/pins.ts", - "packages/server/src/local/routes/profile.ts", - "packages/server/src/local/routes/providers.ts", - "packages/server/src/local/routes/sessions.ts", - "packages/server/src/local/routes/settings.ts", - "packages/server/src/local/routes/skills-aliases.ts", - "packages/server/src/local/routes/skills.ts", - "packages/server/src/local/routes/tasks.ts", - "packages/server/src/local/routes/team.ts", - "packages/server/src/local/routes/telegram.ts", - "packages/server/src/local/routes/telemetry.ts", - "packages/server/src/local/routes/tools.ts", - "packages/server/src/local/routes/vault.ts", - "packages/server/src/local/routes/waggle-dance.ts", - "packages/server/src/local/routes/waggle-signals.ts", - "packages/server/src/local/routes/weaver.ts", - "packages/server/src/local/routes/wiki.ts", - "packages/server/src/local/routes/workflows.ts", - "packages/server/src/local/routes/workspace-templates.ts", - "packages/server/src/local/routes/workspaces.ts", - "packages/server/src/local/security-middleware.ts", - "packages/server/src/local/services/evolution-service.ts", - "packages/server/src/local/setup-connectors.ts", - "packages/server/src/local/setup-crons.ts", - "packages/server/src/local/storage/index.ts", - "packages/server/src/local/vector-backfill.ts", - "packages/server/src/local/workspace-sessions.ts", - "packages/server/src/stripe/index.ts" - ], - "packages/server/src/local/lifecycle.ts": [], - "packages/server/src/local/llm-key-probe.ts": [], - "packages/server/src/local/logger.ts": [], - "packages/server/src/local/mcp-config.ts": [], - "packages/server/src/local/memory-lane-cron.ts": [], - "packages/server/src/local/model-availability.ts": [], - "packages/server/src/local/monthly-assessment.ts": [ - "packages/server/src/local/index.ts" - ], - "packages/server/src/local/net-config.ts": [], - "packages/server/src/local/offline-manager.ts": [], - "packages/server/src/local/origin-guard.ts": [], - "packages/server/src/local/persona-tool-filter.ts": [], - "packages/server/src/local/proactive-handlers.ts": [], - "packages/server/src/local/routes/agent-groups.ts": [], - "packages/server/src/local/routes/agent-run.ts": [], - "packages/server/src/local/routes/agent-search.ts": [], - "packages/server/src/local/routes/agent.ts": [ - "packages/server/src/local/model-availability.ts" - ], - "packages/server/src/local/routes/agents.ts": [ - "packages/server/src/local/agents-store.ts", - "packages/server/src/local/routes/validate.ts" - ], - "packages/server/src/local/routes/anthropic-proxy.ts": [ - "packages/server/src/local/cors-config.ts" - ], - "packages/server/src/local/routes/approval.ts": [], - "packages/server/src/local/routes/artifact-index.ts": [], - "packages/server/src/local/routes/artifacts.ts": [ - "packages/server/src/local/routes/artifact-index.ts", - "packages/server/src/local/routes/events.ts", - "packages/server/src/local/routes/memory-center.ts", - "packages/server/src/local/routes/tasks.ts", - "packages/server/src/local/routes/validate.ts" - ], - "packages/server/src/local/routes/automations.ts": [ - "packages/server/src/local/routes/validate.ts" - ], - "packages/server/src/local/routes/backup.ts": [], - "packages/server/src/local/routes/browse-helpers.ts": [], - "packages/server/src/local/routes/browse.ts": [ - "packages/server/src/local/origin-guard.ts", - "packages/server/src/local/routes/browse-helpers.ts" - ], - "packages/server/src/local/routes/browser-ext.ts": [], - "packages/server/src/local/routes/capabilities.ts": [], - "packages/server/src/local/routes/chat-context.ts": [], - "packages/server/src/local/routes/chat-governance.ts": [], - "packages/server/src/local/routes/chat-helpers.ts": [], - "packages/server/src/local/routes/chat-persistence.ts": [], - "packages/server/src/local/routes/chat.ts": [ - "packages/server/src/local/cors-config.ts", - "packages/server/src/local/logger.ts", - "packages/server/src/local/model-availability.ts", - "packages/server/src/local/persona-tool-filter.ts", - "packages/server/src/local/routes/chat-context.ts", - "packages/server/src/local/routes/chat-governance.ts", - "packages/server/src/local/routes/chat-helpers.ts", - "packages/server/src/local/routes/chat-persistence.ts", - "packages/server/src/local/routes/events.ts", - "packages/server/src/local/routes/notifications.ts", - "packages/server/src/local/routes/validate.ts", - "packages/server/src/local/routes/waggle-signals.ts", - "packages/server/src/local/routes/workspace-context.ts", - "packages/server/src/local/services/optimizer-service.ts", - "packages/server/src/local/workspace-sessions.ts", - "packages/server/src/local/workspace-state.ts" - ], - "packages/server/src/local/routes/command.ts": [ - "packages/server/src/local/routes/session-utils.ts", - "packages/server/src/local/routes/workspace-context.ts" - ], - "packages/server/src/local/routes/commands.ts": [ - "packages/server/src/local/routes/workspace-context.ts" - ], - "packages/server/src/local/routes/compliance.ts": [], - "packages/server/src/local/routes/connectors.ts": [], - "packages/server/src/local/routes/cost.ts": [ - "packages/server/src/middleware/assert-tier.ts" - ], - "packages/server/src/local/routes/cron.ts": [ - "packages/server/src/local/routes/notifications.ts" - ], - "packages/server/src/local/routes/data-erase.ts": [ - "packages/server/src/local/data-erase-helpers.ts", - "packages/server/src/local/routes/events.ts" - ], - "packages/server/src/local/routes/documents.ts": [ - "packages/server/src/local/routes/validate.ts" - ], - "packages/server/src/local/routes/events.ts": [ - "packages/server/src/local/cors-config.ts" - ], - "packages/server/src/local/routes/evolution.ts": [ - "packages/server/src/local/logger.ts" - ], - "packages/server/src/local/routes/export.ts": [ - "packages/server/src/local/routes/events.ts", - "packages/server/src/local/routes/sessions.ts" - ], - "packages/server/src/local/routes/extend.ts": [ - "packages/server/src/local/routes/validate.ts" - ], - "packages/server/src/local/routes/feedback.ts": [], - "packages/server/src/local/routes/files.ts": [ - "packages/server/src/local/storage/index.ts", - "packages/server/src/local/utils/mime.ts" - ], - "packages/server/src/local/routes/fleet.ts": [ - "packages/server/src/local/logger.ts", - "packages/server/src/local/routes/chat-persistence.ts", - "packages/server/src/local/routes/waggle-signals.ts", - "packages/server/src/middleware/assert-tier.ts" - ], - "packages/server/src/local/routes/harvest-classify.ts": [], - "packages/server/src/local/routes/harvest.ts": [ - "packages/server/src/local/routes/harvest-classify.ts", - "packages/server/src/local/routes/profile.ts" - ], - "packages/server/src/local/routes/home.ts": [ - "packages/server/src/local/logger.ts", - "packages/server/src/local/routes/events.ts", - "packages/server/src/local/routes/memory-center.ts", - "packages/server/src/local/routes/workspace-context.ts", - "packages/server/src/local/workspace-state.ts" - ], - "packages/server/src/local/routes/identity.ts": [], - "packages/server/src/local/routes/import.ts": [], - "packages/server/src/local/routes/ingest.ts": [ - "packages/server/src/local/routes/validate.ts" - ], - "packages/server/src/local/routes/knowledge.ts": [ - "packages/server/src/local/routes/validate.ts" - ], - "packages/server/src/local/routes/litellm.ts": [ - "packages/server/src/local/lifecycle.ts", - "packages/server/src/local/model-availability.ts" - ], - "packages/server/src/local/routes/local-inference.ts": [], - "packages/server/src/local/routes/marketplace-dev.ts": [ - "packages/server/src/local/logger.ts" - ], - "packages/server/src/local/routes/marketplace.ts": [ - "packages/server/src/kvark/kvark-config.ts", - "packages/server/src/local/mcp-config.ts", - "packages/server/src/local/routes/notifications.ts", - "packages/server/src/middleware/assert-tier.ts" - ], - "packages/server/src/local/routes/mcps.ts": [ - "packages/server/src/local/mcp-config.ts", - "packages/server/src/local/routes/validate.ts", - "packages/server/src/middleware/assert-tier.ts" - ], - "packages/server/src/local/routes/memory-center.ts": [ - "packages/server/src/local/routes/events.ts", - "packages/server/src/local/routes/memory.ts" - ], - "packages/server/src/local/routes/memory.ts": [ - "packages/server/src/local/routes/events.ts" - ], - "packages/server/src/local/routes/mind.ts": [], - "packages/server/src/local/routes/notifications.ts": [ - "packages/server/src/local/cors-config.ts" - ], - "packages/server/src/local/routes/oauth.ts": [ - "packages/server/src/local/routes/harvest.ts" - ], - "packages/server/src/local/routes/offline.ts": [], - "packages/server/src/local/routes/onboarding.ts": [], - "packages/server/src/local/routes/personas.ts": [ - "packages/server/src/middleware/assert-tier.ts" - ], - "packages/server/src/local/routes/pins.ts": [], - "packages/server/src/local/routes/profile.ts": [], - "packages/server/src/local/routes/providers.ts": [ - "packages/server/src/local/logger.ts" - ], - "packages/server/src/local/routes/session-utils.ts": [], - "packages/server/src/local/routes/sessions.ts": [ - "packages/server/src/local/routes/session-utils.ts", - "packages/server/src/local/routes/validate.ts" - ], - "packages/server/src/local/routes/settings.ts": [ - "packages/server/src/local/llm-key-probe.ts", - "packages/server/src/middleware/assert-tier.ts" - ], - "packages/server/src/local/routes/skills-aliases.ts": [ - "packages/server/src/local/routes/validate.ts" - ], - "packages/server/src/local/routes/skills.ts": [ - "packages/server/src/local/logger.ts" - ], - "packages/server/src/local/routes/tasks.ts": [ - "packages/server/src/local/routes/notifications.ts", - "packages/server/src/local/routes/validate.ts" - ], - "packages/server/src/local/routes/team.ts": [ - "packages/server/src/local/routes/events.ts", - "packages/server/src/local/routes/notifications.ts", - "packages/server/src/middleware/assert-tier.ts" - ], - "packages/server/src/local/routes/telegram.ts": [], - "packages/server/src/local/routes/telemetry.ts": [], - "packages/server/src/local/routes/tools.ts": [], - "packages/server/src/local/routes/validate.ts": [], - "packages/server/src/local/routes/vault.ts": [ - "packages/server/src/local/origin-guard.ts" - ], - "packages/server/src/local/routes/waggle-dance.ts": [ - "packages/server/src/local/signal-bus.ts", - "packages/server/src/local/waggle-dance-bridge.ts" - ], - "packages/server/src/local/routes/waggle-signals.ts": [ - "packages/server/src/local/cors-config.ts" - ], - "packages/server/src/local/routes/weaver.ts": [], - "packages/server/src/local/routes/wiki.ts": [], - "packages/server/src/local/routes/workflows.ts": [], - "packages/server/src/local/routes/workspace-context.ts": [ - "packages/server/src/local/routes/sessions.ts", - "packages/server/src/local/routes/validate.ts", - "packages/server/src/local/workspace-state.ts" - ], - "packages/server/src/local/routes/workspace-templates.ts": [], - "packages/server/src/local/routes/workspaces.ts": [ - "packages/server/src/local/logger.ts", - "packages/server/src/local/routes/events.ts", - "packages/server/src/local/routes/ingest.ts", - "packages/server/src/local/routes/sessions.ts", - "packages/server/src/local/routes/validate.ts", - "packages/server/src/local/routes/workspace-context.ts", - "packages/server/src/local/workspace-state.ts" - ], - "packages/server/src/local/security-middleware.ts": [ - "packages/server/src/local/net-config.ts" - ], - "packages/server/src/local/service.ts": [ - "packages/server/src/local/data-erase-helpers.ts", - "packages/server/src/local/index.ts", - "packages/server/src/local/lifecycle.ts", - "packages/server/src/local/logger.ts", - "packages/server/src/local/net-config.ts", - "packages/server/src/middleware/assert-tier.ts" - ], - "packages/server/src/local/services/evolution-service.ts": [], - "packages/server/src/local/services/optimizer-service.ts": [], - "packages/server/src/local/setup-connectors.ts": [], - "packages/server/src/local/setup-crons.ts": [], - "packages/server/src/local/signal-bus.ts": [], - "packages/server/src/local/start.ts": [ - "packages/server/src/local/logger.ts", - "packages/server/src/local/service.ts" - ], - "packages/server/src/local/storage/fs-provider.ts": [ - "packages/server/src/local/storage/security.ts", - "packages/server/src/local/storage/types.ts", - "packages/server/src/local/utils/mime.ts" - ], - "packages/server/src/local/storage/index.ts": [ - "packages/server/src/local/storage/fs-provider.ts", - "packages/server/src/local/storage/s3-provider.ts", - "packages/server/src/local/storage/types.ts" - ], - "packages/server/src/local/storage/s3-provider.ts": [ - "packages/server/src/local/storage/types.ts" - ], - "packages/server/src/local/storage/security.ts": [], - "packages/server/src/local/storage/types.ts": [], - "packages/server/src/local/utils/mime.ts": [], - "packages/server/src/local/vector-backfill.ts": [], - "packages/server/src/local/waggle-dance-bridge.ts": [ - "packages/server/src/local/routes/waggle-signals.ts", - "packages/server/src/local/signal-bus.ts" - ], - "packages/server/src/local/workspace-sessions.ts": [], - "packages/server/src/local/workspace-state.ts": [ - "packages/server/src/local/routes/session-utils.ts", - "packages/server/src/local/routes/sessions.ts" - ], - "packages/server/src/local/ws-team-client.ts": [ - "packages/server/src/local/logger.ts" - ], - "packages/server/src/middleware/assert-tier.ts": [], - "packages/server/src/middleware/audit.ts": [ - "packages/server/src/db/schema.ts", - "packages/server/src/services/audit-service.ts" - ], - "packages/server/src/plugins/auth.ts": [ - "packages/server/src/services/user-service.ts" - ], - "packages/server/src/plugins/redis.ts": [], - "packages/server/src/proactive/patterns.ts": [], - "packages/server/src/routes/agents.ts": [ - "packages/server/src/services/agent-service.ts" - ], - "packages/server/src/routes/analytics.ts": [ - "packages/server/src/services/analytics-service.ts", - "packages/server/src/services/team-service.ts" - ], - "packages/server/src/routes/audit.ts": [ - "packages/server/src/services/audit-service.ts", - "packages/server/src/services/team-service.ts" - ], - "packages/server/src/routes/capability-governance.ts": [ - "packages/server/src/services/message-service.ts", - "packages/server/src/services/team-capability-governance.ts", - "packages/server/src/services/team-service.ts" - ], - "packages/server/src/routes/cron.ts": [ - "packages/server/src/services/cron-service.ts", - "packages/server/src/services/team-service.ts" - ], - "packages/server/src/routes/jobs.ts": [ - "packages/server/src/services/team-service.ts" - ], - "packages/server/src/routes/knowledge.ts": [ - "packages/server/src/services/knowledge-service.ts", - "packages/server/src/services/team-service.ts" - ], - "packages/server/src/routes/messages.ts": [ - "packages/server/src/services/message-service.ts", - "packages/server/src/services/team-service.ts" - ], - "packages/server/src/routes/resources.ts": [ - "packages/server/src/services/resource-service.ts", - "packages/server/src/services/team-service.ts" - ], - "packages/server/src/routes/scout.ts": [ - "packages/server/src/daemons/scout.ts" - ], - "packages/server/src/routes/suggestions.ts": [ - "packages/server/src/services/proactive-service.ts" - ], - "packages/server/src/routes/tasks.ts": [ - "packages/server/src/services/task-service.ts", - "packages/server/src/services/team-service.ts" - ], - "packages/server/src/routes/teams.ts": [ - "packages/server/src/db/schema.ts", - "packages/server/src/services/team-service.ts" - ], - "packages/server/src/routes/webhooks.ts": [ - "packages/server/src/db/schema.ts" - ], - "packages/server/src/scheduler/cron-runner.ts": [ - "packages/server/src/db/connection.ts", - "packages/server/src/db/schema.ts", - "packages/server/src/services/job-service.ts" - ], - "packages/server/src/services/agent-group-executor.ts": [], - "packages/server/src/services/agent-service.ts": [ - "packages/server/src/db/connection.ts", - "packages/server/src/db/schema.ts" - ], - "packages/server/src/services/analytics-service.ts": [ - "packages/server/src/db/connection.ts", - "packages/server/src/db/schema.ts" - ], - "packages/server/src/services/audit-service.ts": [ - "packages/server/src/db/connection.ts", - "packages/server/src/db/schema.ts" - ], - "packages/server/src/services/cron-service.ts": [ - "packages/server/src/db/connection.ts", - "packages/server/src/db/schema.ts" - ], - "packages/server/src/services/job-service.ts": [ - "packages/server/src/db/connection.ts", - "packages/server/src/db/schema.ts" - ], - "packages/server/src/services/knowledge-service.ts": [ - "packages/server/src/db/connection.ts", - "packages/server/src/db/schema.ts" - ], - "packages/server/src/services/message-service.ts": [ - "packages/server/src/db/connection.ts", - "packages/server/src/db/schema.ts" - ], - "packages/server/src/services/proactive-service.ts": [ - "packages/server/src/db/connection.ts", - "packages/server/src/db/schema.ts", - "packages/server/src/proactive/patterns.ts" - ], - "packages/server/src/services/resource-service.ts": [ - "packages/server/src/db/connection.ts", - "packages/server/src/db/schema.ts" - ], - "packages/server/src/services/task-service.ts": [ - "packages/server/src/db/connection.ts", - "packages/server/src/db/schema.ts" - ], - "packages/server/src/services/team-capability-governance.ts": [ - "packages/server/src/db/connection.ts", - "packages/server/src/db/schema.ts" - ], - "packages/server/src/services/team-service.ts": [ - "packages/server/src/db/connection.ts", - "packages/server/src/db/schema.ts", - "packages/server/src/services/team-capability-governance.ts" - ], - "packages/server/src/services/user-service.ts": [ - "packages/server/src/db/connection.ts", - "packages/server/src/db/schema.ts" - ], - "packages/server/src/stripe/checkout.ts": [ - "packages/server/src/stripe/index.ts" - ], - "packages/server/src/stripe/index.ts": [], - "packages/server/src/stripe/portal.ts": [ - "packages/server/src/middleware/assert-tier.ts", - "packages/server/src/stripe/index.ts" - ], - "packages/server/src/stripe/sync.ts": [ - "packages/server/src/stripe/index.ts", - "packages/server/src/stripe/webhook.ts" - ], - "packages/server/src/stripe/webhook.ts": [ - "packages/server/src/stripe/index.ts" - ], - "packages/server/src/ws/connection-manager.ts": [], - "packages/server/src/ws/gateway.ts": [ - "packages/server/src/db/schema.ts", - "packages/server/src/ws/connection-manager.ts" - ], - "packages/server/tests/audit.test.ts": [ - "packages/server/src/db/schema.ts", - "packages/server/src/index.ts", - "packages/server/src/services/audit-service.ts" - ], - "packages/server/tests/auth.test.ts": [ - "packages/server/src/db/schema.ts", - "packages/server/src/index.ts", - "packages/server/src/services/user-service.ts" - ], - "packages/server/tests/backup-restore.test.ts": [ - "packages/server/src/local/index.ts", - "packages/server/tests/test-utils.ts" - ], - "packages/server/tests/backup-streaming.test.ts": [ - "packages/server/src/local/index.ts", - "packages/server/src/local/routes/backup.ts", - "packages/server/tests/test-utils.ts" - ], - "packages/server/tests/behavioral-spec-active.test.ts": [ - "packages/server/src/local/index.ts" - ], - "packages/server/tests/benchmarks/aggregate.test.ts": [ - "packages/server/src/benchmarks/aggregate.ts" - ], - "packages/server/tests/benchmarks/ensemble-tiebreak.test.ts": [ - "packages/server/src/benchmarks/judge/ensemble-tiebreak.ts" - ], - "packages/server/tests/benchmarks/failure-mode-judge.test.ts": [ - "packages/server/src/benchmarks/judge/failure-mode-judge.ts" - ], - "packages/server/tests/benchmarks/verbose-fixed-cell-isolation.test.ts": [ - "benchmarks/harness/src/controls.ts", - "benchmarks/harness/src/llm.ts", - "benchmarks/harness/src/types.ts", - "packages/agent/src/combined-retrieval.ts" - ], - "packages/server/tests/browse-helpers.test.ts": [ - "packages/server/src/local/routes/browse-helpers.ts" - ], - "packages/server/tests/chat-api.test.ts": [ - "packages/server/src/local/index.ts", - "packages/server/src/local/routes/chat.ts", - "packages/server/tests/test-utils.ts" - ], - "packages/server/tests/cockpit-health.test.ts": [ - "packages/server/src/local/index.ts" - ], - "packages/server/tests/config.test.ts": [ - "packages/server/src/config.ts" - ], - "packages/server/tests/cron.test.ts": [ - "packages/server/src/db/schema.ts", - "packages/server/src/index.ts", - "packages/server/src/scheduler/cron-runner.ts" - ], - "packages/server/tests/cross-platform.test.ts": [ - "packages/server/src/local/index.ts", - "packages/server/tests/test-utils.ts" - ], - "packages/server/tests/d11-datadir-tier.test.ts": [ - "packages/server/src/local/service.ts", - "packages/server/src/middleware/assert-tier.ts" - ], - "packages/server/tests/daemons/hive-mind.test.ts": [ - "packages/server/src/daemons/hive-mind.ts", - "packages/server/src/db/schema.ts", - "packages/server/src/index.ts" - ], - "packages/server/tests/daemons/scout.test.ts": [ - "packages/server/src/daemons/scout.ts", - "packages/server/src/db/schema.ts", - "packages/server/src/index.ts" - ], - "packages/server/tests/daemons/subconscious.test.ts": [ - "packages/server/src/daemons/subconscious.ts", - "packages/server/src/db/schema.ts", - "packages/server/src/index.ts" - ], - "packages/server/tests/data-erase-helpers.test.ts": [ - "packages/server/src/local/data-erase-helpers.ts" - ], - "packages/server/tests/data-erase.test.ts": [ - "packages/server/src/local/data-erase-helpers.ts", - "packages/server/src/local/index.ts", - "packages/server/tests/test-utils.ts" - ], - "packages/server/tests/data-export.test.ts": [ - "packages/server/src/local/index.ts", - "packages/server/tests/test-utils.ts" - ], - "packages/server/tests/db/schema.test.ts": [ - "packages/server/src/db/connection.ts", - "packages/server/src/db/schema.ts" - ], - "packages/server/tests/deployment.test.ts": [], - "packages/server/tests/evolution-routes.test.ts": [ - "packages/server/src/local/index.ts", - "packages/server/tests/test-utils.ts" - ], - "packages/server/tests/evolution-run-route.test.ts": [ - "packages/server/src/local/index.ts", - "packages/server/tests/test-utils.ts" - ], - "packages/server/tests/first-run.test.ts": [ - "packages/server/src/local/service.ts" - ], - "packages/server/tests/ingest-api.test.ts": [ - "packages/server/src/local/index.ts", - "packages/server/tests/test-utils.ts" - ], - "packages/server/tests/kvark/kvark-auth.test.ts": [ - "packages/server/src/kvark/kvark-auth.ts", - "packages/server/src/kvark/kvark-types.ts" - ], - "packages/server/tests/kvark/kvark-client.test.ts": [ - "packages/server/src/kvark/kvark-client.ts", - "packages/server/src/kvark/kvark-types.ts" - ], - "packages/server/tests/kvark/kvark-config.test.ts": [ - "packages/server/src/kvark/kvark-config.ts" - ], - "packages/server/tests/kvark/kvark-integration-smoke.test.ts": [ - "packages/server/src/kvark/kvark-client.ts", - "packages/server/src/kvark/kvark-config.ts", - "packages/server/src/kvark/kvark-types.ts" - ], - "packages/server/tests/kvark/kvark-types.test.ts": [ - "packages/server/src/kvark/kvark-types.ts" - ], - "packages/server/tests/kvark/kvark-wiring.test.ts": [ - "packages/server/src/kvark/kvark-config.ts" - ], - "packages/server/tests/litellm-api.test.ts": [ - "packages/server/src/local/index.ts", - "packages/server/src/local/lifecycle.ts", - "packages/server/tests/test-utils.ts" - ], - "packages/server/tests/llm-key-probe.test.ts": [ - "packages/server/src/local/llm-key-probe.ts" - ], - "packages/server/tests/local-mode.test.ts": [ - "packages/server/src/local/index.ts", - "packages/server/tests/test-utils.ts" - ], - "packages/server/tests/local-scheduler.test.ts": [ - "packages/server/src/local/cron.ts" - ], - "packages/server/tests/local/agent-run.test.ts": [], - "packages/server/tests/local/agents.test.ts": [ - "packages/server/src/local/routes/agent.ts", - "packages/server/src/local/routes/agents.ts", - "packages/server/src/local/workspace-sessions.ts" - ], - "packages/server/tests/local/ambiguity-detection.test.ts": [ - "packages/server/src/local/routes/chat.ts" - ], - "packages/server/tests/local/anthropic-proxy.test.ts": [ - "packages/server/src/local/routes/anthropic-proxy.ts" - ], - "packages/server/tests/local/artifacts.test.ts": [ - "packages/server/src/local/routes/artifacts.ts" - ], - "packages/server/tests/local/automations.test.ts": [ - "packages/server/src/local/cron.ts", - "packages/server/src/local/routes/automations.ts", - "packages/server/src/local/routes/cron.ts", - "packages/server/src/local/routes/notifications.ts" - ], - "packages/server/tests/local/chat-governance.test.ts": [ - "packages/server/src/local/routes/chat-governance.ts" - ], - "packages/server/tests/local/chat-helpers.test.ts": [ - "packages/server/src/local/routes/chat-context.ts", - "packages/server/src/local/routes/chat-helpers.ts" - ], - "packages/server/tests/local/chat-persistence.test.ts": [ - "packages/server/src/local/routes/chat-persistence.ts" - ], - "packages/server/tests/local/compliance-templates.test.ts": [ - "packages/server/src/local/index.ts", - "packages/server/tests/test-utils.ts" - ], - "packages/server/tests/local/connector-registry-integration.test.ts": [], - "packages/server/tests/local/connectors-phase4.test.ts": [ - "packages/server/src/local/routes/connectors.ts" - ], - "packages/server/tests/local/connectors.test.ts": [], - "packages/server/tests/local/cost.test.ts": [ - "packages/server/src/local/index.ts", - "packages/server/tests/test-utils.ts" - ], - "packages/server/tests/local/cron-error-handling.test.ts": [ - "packages/server/src/local/cron.ts" - ], - "packages/server/tests/local/custom-workflows.test.ts": [ - "packages/server/src/local/routes/workflows.ts" - ], - "packages/server/tests/local/extend.test.ts": [ - "packages/server/src/local/routes/extend.ts", - "packages/server/src/local/routes/marketplace.ts" - ], - "packages/server/tests/local/feedback-routes.test.ts": [ - "packages/server/src/local/routes/feedback.ts" - ], - "packages/server/tests/local/files-indexer.test.ts": [ - "packages/server/src/local/index.ts", - "packages/server/tests/test-utils.ts" - ], - "packages/server/tests/local/files.test.ts": [ - "packages/server/src/local/index.ts", - "packages/server/src/local/storage/types.ts", - "packages/server/tests/test-utils.ts" - ], - "packages/server/tests/local/fleet.test.ts": [ - "packages/server/src/local/routes/fleet.ts", - "packages/server/src/local/workspace-sessions.ts" - ], - "packages/server/tests/local/gepa-optimization.test.ts": [], - "packages/server/tests/local/harvest-cache.test.ts": [ - "packages/server/src/local/routes/harvest.ts" - ], - "packages/server/tests/local/harvest-classify.test.ts": [ - "packages/server/src/local/index.ts", - "packages/server/src/local/routes/harvest-classify.ts", - "packages/server/tests/test-utils.ts" - ], - "packages/server/tests/local/harvest-identity-defenses.test.ts": [ - "packages/server/src/local/routes/harvest.ts" - ], - "packages/server/tests/local/harvest-identity.test.ts": [ - "packages/server/src/local/index.ts", - "packages/server/tests/test-utils.ts" - ], - "packages/server/tests/local/harvest-runs.test.ts": [ - "packages/server/src/local/index.ts", - "packages/server/tests/test-utils.ts" - ], - "packages/server/tests/local/home.test.ts": [ - "packages/server/src/local/routes/home.ts", - "packages/server/src/local/routes/memory-center.ts", - "packages/server/src/local/routes/workspace-context.ts" - ], - "packages/server/tests/local/identity.test.ts": [ - "packages/server/src/local/routes/identity.ts" - ], - "packages/server/tests/local/import.test.ts": [ - "packages/server/src/local/index.ts", - "packages/server/tests/test-utils.ts" - ], - "packages/server/tests/local/knowledge-graph-projection.test.ts": [ - "packages/server/src/local/routes/knowledge.ts" - ], - "packages/server/tests/local/marketplace-dev.test.ts": [], - "packages/server/tests/local/marketplace-security.test.ts": [], - "packages/server/tests/local/marketplace-sources.test.ts": [], - "packages/server/tests/local/marketplace-sync.test.ts": [], - "packages/server/tests/local/marketplace.test.ts": [], - "packages/server/tests/local/mcp-config.test.ts": [ - "packages/server/src/local/mcp-config.ts" - ], - "packages/server/tests/local/mcps.test.ts": [ - "packages/server/src/local/mcp-config.ts", - "packages/server/src/local/routes/mcps.ts" - ], - "packages/server/tests/local/memory-center.test.ts": [ - "packages/server/src/local/routes/memory-center.ts", - "packages/server/src/local/routes/memory.ts" - ], - "packages/server/tests/local/memory-lane-cron.test.ts": [ - "packages/server/src/local/memory-lane-cron.ts" - ], - "packages/server/tests/local/memory-stats-isolation.test.ts": [ - "packages/server/src/local/routes/memory.ts" - ], - "packages/server/tests/local/monthly-assessment.test.ts": [ - "packages/server/src/local/monthly-assessment.ts" - ], - "packages/server/tests/local/network-auth.test.ts": [ - "packages/server/src/local/cors-config.ts", - "packages/server/src/local/net-config.ts", - "packages/server/src/local/origin-guard.ts", - "packages/server/src/local/routes/browse.ts", - "packages/server/src/local/security-middleware.ts" - ], - "packages/server/tests/local/notifications.test.ts": [], - "packages/server/tests/local/oauth-callback-escaping.test.ts": [ - "packages/server/src/local/routes/oauth.ts" - ], - "packages/server/tests/local/onboarding-flag-shape.test.ts": [], - "packages/server/tests/local/onboarding-status.test.ts": [ - "packages/server/src/local/routes/onboarding.ts" - ], - "packages/server/tests/local/p5-skill-governance.test.ts": [ - "packages/server/src/local/routes/skills.ts" - ], - "packages/server/tests/local/persona-tool-filtering.test.ts": [], - "packages/server/tests/local/personas-routes.test.ts": [ - "packages/server/src/local/routes/personas.ts" - ], - "packages/server/tests/local/phase2-traversal-backup.test.ts": [ - "packages/server/src/local/routes/backup.ts" - ], - "packages/server/tests/local/phase2-traversal-chat.test.ts": [ - "packages/server/src/local/index.ts", - "packages/server/src/local/routes/chat-persistence.ts", - "packages/server/tests/test-utils.ts" - ], - "packages/server/tests/local/phase2-traversal-documents.test.ts": [ - "packages/server/src/local/routes/documents.ts" - ], - "packages/server/tests/local/phase2-traversal-ingest.test.ts": [ - "packages/server/src/local/routes/ingest.ts" - ], - "packages/server/tests/local/phase2-traversal-tasks.test.ts": [ - "packages/server/src/local/index.ts", - "packages/server/src/local/routes/tasks.ts" - ], - "packages/server/tests/local/phase2-traversal-workspace-context.test.ts": [ - "packages/server/src/local/routes/workspace-context.ts" - ], - "packages/server/tests/local/phase4-harvest-embedder.test.ts": [ - "packages/server/src/local/index.ts", - "packages/server/tests/test-utils.ts" - ], - "packages/server/tests/local/phase5-agent-run-provider.test.ts": [], - "packages/server/tests/local/phase5-connector-health.test.ts": [ - "packages/server/src/local/routes/connectors.ts" - ], - "packages/server/tests/local/phase5-cron-parse.test.ts": [ - "packages/server/src/local/routes/cron.ts" - ], - "packages/server/tests/local/phase5-files-upload-limit.test.ts": [ - "packages/server/src/local/routes/files.ts" - ], - "packages/server/tests/local/providers.test.ts": [ - "packages/server/src/local/index.ts", - "packages/server/tests/test-utils.ts" - ], - "packages/server/tests/local/security-middleware.test.ts": [ - "packages/server/src/local/security-middleware.ts" - ], - "packages/server/tests/local/session-timeout.test.ts": [ - "packages/server/src/local/security-middleware.ts" - ], - "packages/server/tests/local/settings-permissions.test.ts": [ - "packages/server/src/local/index.ts", - "packages/server/tests/test-utils.ts" - ], - "packages/server/tests/local/skills-phase3.test.ts": [ - "packages/server/src/local/routes/skills-aliases.ts", - "packages/server/src/local/routes/skills.ts" - ], - "packages/server/tests/local/sse-resilience.test.ts": [ - "packages/server/src/local/index.ts", - "packages/server/src/local/routes/notifications.ts", - "packages/server/tests/test-utils.ts" - ], - "packages/server/tests/local/suggestion-sanitize.test.ts": [ - "packages/server/src/local/routes/session-utils.ts" - ], - "packages/server/tests/local/team-integration.test.ts": [ - "packages/server/src/local/index.ts", - "packages/server/src/local/routes/events.ts", - "packages/server/tests/test-utils.ts" - ], - "packages/server/tests/local/telegram.test.ts": [ - "packages/server/src/local/routes/telegram.ts" - ], - "packages/server/tests/local/vault-routes.test.ts": [ - "packages/server/src/local/routes/vault.ts" - ], - "packages/server/tests/local/vector-backfill.test.ts": [ - "packages/hive-mind-core/tests/mind/helpers/mock-embedder.ts", - "packages/server/src/local/vector-backfill.ts" - ], - "packages/server/tests/local/w43-harvest-temporal.test.ts": [ - "packages/server/src/local/index.ts", - "packages/server/tests/test-utils.ts" - ], - "packages/server/tests/local/w46-harvest-raw-turns.test.ts": [ - "packages/server/src/local/index.ts", - "packages/server/tests/test-utils.ts" - ], - "packages/server/tests/local/wiki-mock-guard.test.ts": [ - "packages/server/src/local/index.ts", - "packages/server/tests/test-utils.ts" - ], - "packages/server/tests/local/workspace-sessions.test.ts": [ - "packages/server/src/local/workspace-sessions.ts" - ], - "packages/server/tests/local/workspaces-lifecycle.test.ts": [ - "packages/server/src/local/routes/workspaces.ts", - "packages/server/src/local/workspace-state.ts" - ], - "packages/server/tests/local/ws-team-client.test.ts": [ - "packages/server/src/local/ws-team-client.ts" - ], - "packages/server/tests/offline-mode.test.ts": [ - "packages/server/src/local/index.ts", - "packages/server/src/local/offline-manager.ts", - "packages/server/tests/test-utils.ts" - ], - "packages/server/tests/offline-tools.test.ts": [ - "packages/agent/src/git-tools.ts", - "packages/agent/src/system-tools.ts", - "packages/agent/src/tool-filter.ts", - "packages/agent/src/tools.ts" - ], - "packages/server/tests/performance/benchmarks.test.ts": [ - "packages/server/src/local/index.ts", - "packages/server/tests/test-utils.ts" - ], - "packages/server/tests/persona-tool-filter.test.ts": [ - "packages/server/src/local/persona-tool-filter.ts" - ], - "packages/server/tests/plugin-autoload.test.ts": [ - "packages/server/src/local/index.ts" - ], - "packages/server/tests/proactive-handlers.test.ts": [ - "packages/server/src/local/proactive-handlers.ts" - ], - "packages/server/tests/proactive.test.ts": [ - "packages/server/src/db/schema.ts", - "packages/server/src/index.ts", - "packages/server/src/services/proactive-service.ts" - ], - "packages/server/tests/routes/acquisition-integration.test.ts": [], - "packages/server/tests/routes/agent-search.test.ts": [ - "packages/server/src/local/routes/agent-search.ts" - ], - "packages/server/tests/routes/agents.test.ts": [ - "packages/server/src/db/schema.ts", - "packages/server/src/index.ts" - ], - "packages/server/tests/routes/analytics.test.ts": [ - "packages/server/src/db/schema.ts", - "packages/server/src/index.ts" - ], - "packages/server/tests/routes/approval-flow.test.ts": [ - "packages/server/src/local/index.ts", - "packages/server/tests/test-utils.ts" - ], - "packages/server/tests/routes/capabilities.test.ts": [ - "packages/server/src/local/index.ts", - "packages/server/tests/test-utils.ts" - ], - "packages/server/tests/routes/capability-governance.test.ts": [], - "packages/server/tests/routes/capability-packs.test.ts": [ - "packages/server/src/local/index.ts", - "packages/server/tests/test-utils.ts" - ], - "packages/server/tests/routes/commands.test.ts": [ - "packages/server/src/local/index.ts", - "packages/server/tests/test-utils.ts" - ], - "packages/server/tests/routes/connectors-tier.test.ts": [ - "packages/server/src/local/routes/connectors.ts" - ], - "packages/server/tests/routes/context-injection.test.ts": [ - "packages/server/src/local/routes/workspace-context.ts" - ], - "packages/server/tests/routes/cron-api.test.ts": [ - "packages/server/src/local/index.ts", - "packages/server/tests/test-utils.ts" - ], - "packages/server/tests/routes/health.test.ts": [ - "packages/server/src/local/index.ts" - ], - "packages/server/tests/routes/knowledge.test.ts": [ - "packages/server/src/db/schema.ts", - "packages/server/src/index.ts" - ], - "packages/server/tests/routes/messages.test.ts": [ - "packages/server/src/db/schema.ts", - "packages/server/src/index.ts" - ], - "packages/server/tests/routes/persistence.test.ts": [ - "packages/server/src/local/index.ts", - "packages/server/tests/test-utils.ts" - ], - "packages/server/tests/routes/resources.test.ts": [ - "packages/server/src/db/schema.ts", - "packages/server/src/index.ts" - ], - "packages/server/tests/routes/session-state-extraction.test.ts": [ - "packages/server/src/local/routes/sessions.ts" - ], - "packages/server/tests/routes/session-timeline.test.ts": [ - "packages/server/src/local/routes/sessions.ts" - ], - "packages/server/tests/routes/starter-catalog.test.ts": [ - "packages/server/src/local/index.ts", - "packages/server/tests/test-utils.ts" - ], - "packages/server/tests/routes/tasks.test.ts": [ - "packages/server/src/db/schema.ts", - "packages/server/src/index.ts" - ], - "packages/server/tests/routes/teams.test.ts": [ - "packages/server/src/db/schema.ts", - "packages/server/src/index.ts" - ], - "packages/server/tests/routes/trust-wiring.test.ts": [ - "packages/server/src/local/index.ts", - "packages/server/tests/test-utils.ts" - ], - "packages/server/tests/routes/workspace-context.test.ts": [ - "packages/server/src/local/routes/workspace-context.ts" - ], - "packages/server/tests/routes/workspace-state.test.ts": [ - "packages/server/src/local/workspace-state.ts" - ], - "packages/server/tests/server.test.ts": [ - "packages/server/src/index.ts" - ], - "packages/server/tests/service-startup.test.ts": [ - "packages/server/src/local/service.ts" - ], - "packages/server/tests/service.test.ts": [ - "packages/server/src/local/lifecycle.ts", - "packages/server/src/local/service.ts" - ], - "packages/server/tests/services/evolution-service.test.ts": [ - "packages/server/src/local/services/evolution-service.ts" - ], - "packages/server/tests/services/team-capability-governance.test.ts": [ - "packages/server/src/services/team-capability-governance.ts" - ], - "packages/server/tests/signal-bus.test.ts": [ - "packages/server/src/local/signal-bus.ts" - ], - "packages/server/tests/signal-emitter-integration.test.ts": [ - "packages/server/src/local/index.ts" - ], - "packages/server/tests/skill-integration.test.ts": [ - "packages/server/src/local/routes/chat.ts" - ], - "packages/server/tests/start-trial.test.ts": [ - "packages/server/src/local/index.ts", - "packages/server/tests/test-utils.ts" - ], - "packages/server/tests/stripe/checkout.test.ts": [ - "packages/server/src/stripe/checkout.ts" - ], - "packages/server/tests/stripe/smoke-e2e.test.ts": [], - "packages/server/tests/stripe/status.test.ts": [ - "packages/server/src/stripe/index.ts" - ], - "packages/server/tests/stripe/sync.test.ts": [], - "packages/server/tests/stripe/webhook.test.ts": [ - "packages/server/src/stripe/index.ts", - "packages/server/src/stripe/webhook.ts" - ], - "packages/server/tests/tasks-api.test.ts": [ - "packages/server/src/local/index.ts", - "packages/server/tests/test-utils.ts" - ], - "packages/server/tests/tauri-config.test.ts": [], - "packages/server/tests/team-local.test.ts": [ - "packages/server/src/local/index.ts", - "packages/server/tests/test-utils.ts" - ], - "packages/server/tests/test-utils.ts": [], - "packages/server/tests/tier-enforcement-matrix.test.ts": [ - "packages/server/src/local/index.ts", - "packages/server/tests/test-utils.ts" - ], - "packages/server/tests/tools-routes-launch.test.ts": [ - "packages/server/src/local/index.ts", - "packages/server/tests/test-utils.ts" - ], - "packages/server/tests/tools-routes.test.ts": [ - "packages/server/src/local/index.ts", - "packages/server/tests/test-utils.ts" - ], - "packages/server/tests/validate.test.ts": [ - "packages/server/src/local/index.ts", - "packages/server/src/local/routes/validate.ts", - "packages/server/tests/test-utils.ts" - ], - "packages/server/tests/waggle-dance-bridge.test.ts": [ - "packages/server/src/local/index.ts", - "packages/server/src/local/waggle-dance-bridge.ts", - "packages/server/tests/test-utils.ts" - ], - "packages/server/tests/waggle-dance-routes.test.ts": [ - "packages/server/src/local/index.ts", - "packages/server/tests/test-utils.ts" - ], - "packages/server/tests/wave-h-continuity.test.ts": [ - "packages/server/src/local/workspace-state.ts" - ], - "packages/server/tests/web-frontend.test.ts": [], - "packages/server/tests/workspace-api.test.ts": [ - "packages/server/src/local/index.ts", - "packages/server/tests/test-utils.ts" - ], - "packages/server/tests/workspace-sessions-concurrency.test.ts": [ - "packages/server/src/local/workspace-sessions.ts" - ], - "packages/server/tests/workspace-templates.test.ts": [ - "packages/server/src/local/index.ts", - "packages/server/tests/test-utils.ts" - ], - "packages/server/tests/ws/gateway.test.ts": [ - "packages/server/src/plugins/auth.ts", - "packages/server/src/ws/connection-manager.ts", - "packages/server/src/ws/gateway.ts" - ], - "packages/server/tsconfig.json": [], - "packages/shared/package.json": [], - "packages/shared/src/connector-recommendations.ts": [], - "packages/shared/src/constants.ts": [], - "packages/shared/src/index.ts": [], - "packages/shared/src/mcp-catalog.ts": [], - "packages/shared/src/risk.ts": [], - "packages/shared/src/schemas.ts": [ - "packages/shared/src/types.ts" - ], - "packages/shared/src/tiers.ts": [], - "packages/shared/src/tool-detection.ts": [], - "packages/shared/src/types.ts": [], - "packages/shared/tests/connector-recommendations.test.ts": [ - "packages/shared/src/connector-recommendations.ts", - "packages/shared/src/mcp-catalog.ts" - ], - "packages/shared/tests/risk.test.ts": [ - "packages/shared/src/risk.ts" - ], - "packages/shared/tests/schemas.test.ts": [ - "packages/shared/src/schemas.ts" - ], - "packages/shared/tsconfig.json": [], - "packages/waggle-dance/package.json": [], - "packages/waggle-dance/src/dispatcher.ts": [ - "packages/waggle-dance/src/protocol.ts" - ], - "packages/waggle-dance/src/hive-query.ts": [], - "packages/waggle-dance/src/index.ts": [], - "packages/waggle-dance/src/protocol.ts": [], - "packages/waggle-dance/tests/dispatcher.test.ts": [ - "packages/waggle-dance/src/dispatcher.ts" - ], - "packages/waggle-dance/tests/integration.test.ts": [ - "packages/waggle-dance/src/dispatcher.ts" - ], - "packages/waggle-dance/tests/protocol.test.ts": [ - "packages/waggle-dance/src/protocol.ts" - ], - "packages/waggle-dance/tsconfig.json": [], - "packages/weaver/package.json": [], - "packages/weaver/src/consolidation.ts": [], - "packages/weaver/src/index.ts": [], - "packages/weaver/src/skill-extractor.ts": [], - "packages/weaver/tests/consolidation-enhanced.test.ts": [ - "packages/weaver/src/consolidation.ts" - ], - "packages/weaver/tests/consolidation.test.ts": [ - "packages/weaver/src/consolidation.ts" - ], - "packages/weaver/tests/skill-extractor.test.ts": [ - "packages/weaver/src/skill-extractor.ts" - ], - "packages/weaver/tsconfig.json": [], - "packages/weaver/vitest.config.ts": [], - "packages/wiki-compiler/package.json": [], - "packages/wiki-compiler/src/adapters/notion.ts": [ - "packages/wiki-compiler/src/types.ts" - ], - "packages/wiki-compiler/src/adapters/obsidian.ts": [ - "packages/wiki-compiler/src/types.ts" - ], - "packages/wiki-compiler/src/compiler.ts": [ - "packages/wiki-compiler/src/prompts.ts", - "packages/wiki-compiler/src/state.ts", - "packages/wiki-compiler/src/types.ts" - ], - "packages/wiki-compiler/src/index.ts": [], - "packages/wiki-compiler/src/prompts.ts": [], - "packages/wiki-compiler/src/state.ts": [ - "packages/wiki-compiler/src/types.ts" - ], - "packages/wiki-compiler/src/synthesizer.ts": [ - "packages/wiki-compiler/src/types.ts" - ], - "packages/wiki-compiler/src/types.ts": [], - "packages/wiki-compiler/tests/notion.test.ts": [ - "packages/wiki-compiler/src/adapters/notion.ts" - ], - "packages/wiki-compiler/tests/obsidian.test.ts": [ - "packages/wiki-compiler/src/adapters/obsidian.ts", - "packages/wiki-compiler/src/types.ts" - ], - "packages/wiki-compiler/tsconfig.json": [], - "packages/worker/package.json": [], - "packages/worker/src/execution/coordinator.ts": [ - "packages/worker/src/execution/parallel.ts" - ], - "packages/worker/src/execution/parallel.ts": [], - "packages/worker/src/execution/sequential.ts": [ - "packages/worker/src/execution/parallel.ts" - ], - "packages/worker/src/handlers/chat-handler.ts": [ - "packages/server/src/db/connection.ts", - "packages/worker/src/job-processor.ts" - ], - "packages/worker/src/handlers/group-handler.ts": [ - "packages/server/src/db/connection.ts", - "packages/server/src/db/schema.ts", - "packages/worker/src/execution/coordinator.ts", - "packages/worker/src/execution/parallel.ts", - "packages/worker/src/execution/sequential.ts", - "packages/worker/src/job-processor.ts" - ], - "packages/worker/src/handlers/task-handler.ts": [ - "packages/server/src/db/connection.ts", - "packages/server/src/db/schema.ts", - "packages/worker/src/job-processor.ts" - ], - "packages/worker/src/handlers/waggle-handler.ts": [ - "packages/server/src/db/connection.ts", - "packages/server/src/db/schema.ts", - "packages/worker/src/job-processor.ts" - ], - "packages/worker/src/index.ts": [ - "packages/server/src/db/connection.ts", - "packages/server/src/db/schema.ts", - "packages/worker/src/handlers/chat-handler.ts", - "packages/worker/src/handlers/group-handler.ts", - "packages/worker/src/handlers/task-handler.ts", - "packages/worker/src/handlers/waggle-handler.ts", - "packages/worker/src/job-processor.ts" - ], - "packages/worker/src/job-processor.ts": [ - "packages/server/src/db/connection.ts" - ], - "packages/worker/tests/execution/strategies.test.ts": [ - "packages/worker/src/execution/coordinator.ts", - "packages/worker/src/execution/parallel.ts", - "packages/worker/src/execution/sequential.ts" - ], - "packages/worker/tests/handlers/chat-handler.test.ts": [ - "packages/server/src/db/connection.ts", - "packages/worker/src/handlers/chat-handler.ts", - "packages/worker/src/job-processor.ts" - ], - "packages/worker/tests/handlers/handlers.test.ts": [ - "packages/server/src/db/connection.ts", - "packages/worker/src/handlers/group-handler.ts", - "packages/worker/src/handlers/task-handler.ts", - "packages/worker/src/job-processor.ts" - ], - "packages/worker/tests/handlers/waggle-dispatch.test.ts": [], - "packages/worker/tests/job-processor.test.ts": [ - "packages/server/src/db/connection.ts", - "packages/server/src/db/schema.ts", - "packages/server/src/services/job-service.ts", - "packages/worker/src/index.ts" - ], - "packages/worker/tsconfig.json": [], - "PLAN.md": [], - "playwright-e2e.config.ts": [], - "playwright.config.ts": [], - "preflight-results/b1-smoke-2026-04-21T17-54-02-102Z.json": [], - "preflight-results/b2-grok-smoke-2026-04-21T23-04-41-168Z.json": [], - "preflight-results/claude-ai-export-verification-2026-04-22.md": [], - "preflight-results/conv-verification-2026-04-22.md": [], - "preflight-results/judge-calibration-ensemble-14inst-2026-04-21T13-00-04Z.json": [], - "preflight-results/judge-calibration-ensemble-2026-04-21T08-56-43Z.json": [], - "preflight-results/judge-calibration-haiku-task4.json": [], - "preflight-results/judge-calibration-opus-task4.json": [], - "preflight-results/judge-calibration-sonnet-2026-04-21T08-55-51Z.json": [], - "preflight-results/pm-custom-triples-2026-04-22.json": [], - "preflight-results/qwen-stability-matrix-2026-04-21T14-05-12-175Z.csv": [], - "preflight-results/qwen-thinking-stability-2026-04-21T14-05-12-175Z.md": [], - "preflight-results/stage-0-dogfood-2026-04-21.md": [], - "preflight-results/task-2-2-labels-14inst-2026-04-22.md": [], - "preflight-results/vendor-availability-2026-04-21T08-30-42-598Z.json": [], - "README.md": [], - "render.yaml": [], - "scripts/analyze-ensemble-baseline.mjs": [], - "scripts/analyze-task-2-2-closeout.mjs": [], - "scripts/build-sidecar.mjs": [], - "scripts/build-task-2-2-dataset.mjs": [], - "scripts/bundle-native-deps.mjs": [], - "scripts/bundle-node.mjs": [], - "scripts/check-no-invalid-snapshots.mjs": [], - "scripts/check-sidecar-resources.mjs": [], - "scripts/deep-clean-and-recompile.mjs": [], - "scripts/evolution-hypothesis-rejudge-gemini.mjs": [], - "scripts/evolution-hypothesis-resume.mjs": [], - "scripts/evolution-hypothesis.mjs": [], - "scripts/harvest-and-compile.mjs": [], - "scripts/inspect-fresh-claude-export.mjs": [], - "scripts/judge-calibration.mjs": [], - "scripts/nuclear-rebuild.mjs": [], - "scripts/oss-drift-check.sh": [], - "scripts/oss-subtree-split.sh": [], - "scripts/parity-check.sh": [], - "scripts/persona-reactor-workflow.mjs": [], - "scripts/qwen-stability-matrix.mjs": [], - "scripts/read-pdf.mjs": [], - "scripts/read-wiki-pages.mjs": [], - "scripts/run-mini-locomo.ts": [], - "scripts/run-pilot-2026-04-26.ts": [], - "scripts/scan-locomo-deep.mjs": [], - "scripts/scan-locomo-for-triples.mjs": [], - "scripts/seed-real-data.mjs": [], - "scripts/smoke-qwen-dual-route.mjs": [], - "scripts/smoke-sonnet-route.mjs": [], - "scripts/sprint-11-b1-smoke.mjs": [], - "scripts/sprint-11-b2-grok-smoke.mjs": [], - "scripts/stage-0-query.mjs": [], - "scripts/test-full-compile.mjs": [], - "scripts/test-synthesizer.mjs": [], - "scripts/vendor-availability-probe.mjs": [], - "scripts/vision-judge-workflow.mjs": [], - "sidecar/package.json": [], - "sidecar/src/agent-session.ts": [], - "sidecar/src/main.ts": [ - "sidecar/src/rpc-handler.ts", - "sidecar/src/weaver-scheduler.ts" - ], - "sidecar/src/mcp-manager.ts": [], - "sidecar/src/rpc-handler.ts": [ - "sidecar/src/agent-session.ts", - "sidecar/src/mcp-manager.ts" - ], - "sidecar/src/skill-loader.ts": [], - "sidecar/src/weaver-scheduler.ts": [], - "sidecar/tsconfig.json": [], - "tests/agent-behavior-audit.ts": [], - "tests/behaviors/chat-pipeline.test.ts": [ - "packages/agent/src/agent-loop.ts", - "packages/server/src/local/index.ts", - "packages/server/src/local/routes/chat.ts" - ], - "tests/behaviors/waggle-journeys.test.ts": [ - "packages/agent/src/capability-router.ts", - "packages/agent/src/commands/command-registry.ts", - "packages/agent/src/commands/workflow-commands.ts", - "packages/agent/src/confirmation.ts", - "packages/agent/src/injection-scanner.ts", - "packages/agent/src/loop-guard.ts", - "packages/agent/src/personas.ts", - "packages/agent/src/trust-model.ts" - ], - "tests/dock-app-title-consistency.test.ts": [], - "tests/docker-compose-litellm-env.test.ts": [], - "tests/e2e/boot-screen-skip.spec.ts": [], - "tests/e2e/competitive-benchmarks.spec.ts": [], - "tests/e2e/failure-injection/network-drop.spec.ts": [], - "tests/e2e/full-product-audit.spec.ts": [], - "tests/e2e/full-wiring-audit.spec.ts": [], - "tests/e2e/light-mode-polish.spec.ts": [], - "tests/e2e/live-chat-flow.spec.ts": [], - "tests/e2e/phase-ab-verification.spec.ts": [], - "tests/e2e/phase8-visual.spec.ts": [], - "tests/e2e/polish-verification.spec.ts": [], - "tests/e2e/power-user-stress.spec.ts": [], - "tests/e2e/room-parallel-agents.spec.ts": [], - "tests/e2e/spawn-agent-flow.spec.ts": [], - "tests/e2e/team-server.spec.ts": [], - "tests/e2e/user-behavior.spec.ts": [], - "tests/e2e/user-journeys.spec.ts": [], - "tests/e2e/waggle-complete.spec.ts": [], - "tests/hive-950-token-guard.test.ts": [], - "tests/integration/m3-full-stack.test.ts": [ - "packages/server/src/db/schema.ts", - "packages/server/src/index.ts" - ], - "tests/login-flow.spec.ts": [], - "tests/oss-subtree-split.test.ts": [], - "tests/placeholder-audit.test.ts": [], - "tests/sidecar/mcp-manager.test.ts": [ - "sidecar/src/mcp-manager.ts" - ], - "tests/sidecar/rpc-handler.test.ts": [ - "sidecar/src/rpc-handler.ts" - ], - "tests/sidecar/skill-loader.test.ts": [ - "sidecar/src/skill-loader.ts" - ], - "tests/vision/_helpers.ts": [], - "tests/vision/capture.spec.ts": [ - "tests/vision/_helpers.ts" - ], - "tests/vision/personas.spec.ts": [ - "tests/vision/_helpers.ts" - ], - "tests/vision/README.md": [], - "tests/visual/r2-uat-mega.spec.ts": [], - "tests/visual/views.spec.ts": [], - "tsconfig.base.json": [], - "tsconfig.json": [], - "vitest.aliases.ts": [], - "vitest.config.ts": [ - "vitest.aliases.ts", - "vitest.infra-suites.ts" - ], - "vitest.infra-suites.ts": [], - "vitest.infra.config.ts": [ - "vitest.aliases.ts", - "vitest.infra-suites.ts" - ], - "vitest.setup.ts": [], - "Waggle_Competitive_Intelligence_Full_Landscape_March_2026.docx": [], - "waggle-cowork/claude-code-deep-dive.md": [], - "waggle-cowork/claude-code-source-analysis.md": [], - "waggle-cowork/system-prompt-comparison.md": [], - "waggle-cowork/waggle-os-improvement-plan.md": [], - "waggle-cowork/waggle-prompt-improvement-plan.md": [] - } -} \ No newline at end of file diff --git a/.understand-anything/knowledge-graph.json b/.understand-anything/knowledge-graph.json deleted file mode 100644 index 279cad4..0000000 --- a/.understand-anything/knowledge-graph.json +++ /dev/null @@ -1,107900 +0,0 @@ -{ - "version": "1.0.0", - "project": { - "name": "waggle-os", - "languages": [ - "config", - "css", - "csv", - "dockerfile", - "docx", - "html", - "icns", - "javascript", - "json", - "jsonl", - "markdown", - "nsi", - "patch", - "powershell", - "python", - "rust", - "shell", - "sql", - "toml", - "txt", - "typescript", - "unknown", - "xml", - "yaml" - ], - "frameworks": [ - "React", - "Next", - "Vite", - "Vitest", - "Fastify", - "Tailwind CSS", - "Playwright", - "Tauri", - "Stripe", - "Docker", - "Docker Compose", - "GitHub Actions" - ], - "description": "Waggle OS is a workspace-native AI agent platform with persistent memory, model-agnostic orchestration, and skill-extensible capabilities, delivered as a Tauri desktop app (React 19 + Vite) with a Fastify Node.js sidecar over an npm monorepo. Note: this project has over 100 source files; consider scoping analysis to a subdirectory for faster results.", - "analyzedAt": "2026-06-26T09:19:20.813Z", - "gitCommitHash": "18aebe1f4bd035cfe2646173db7d2fa5326d2ec9" - }, - "nodes": [ - { - "id": "file:packages/agent/tests/agent-intelligence.test.ts", - "type": "file", - "name": "agent-intelligence.test.ts", - "filePath": "packages/agent/tests/agent-intelligence.test.ts", - "summary": "Test suite exercising agent intelligence behaviours including tool utilization tracking and chat route ambiguity detection.", - "tags": [ - "test", - "agent", - "intelligence" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/src/db/migrate.ts", - "type": "file", - "name": "migrate.ts", - "filePath": "packages/server/src/db/migrate.ts", - "summary": "CLI entry point that opens the server database connection and runs all pending SQLite migrations.", - "tags": [ - "entry-point", - "database", - "migration" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/src/local/agents-store.ts", - "type": "file", - "name": "agents-store.ts", - "filePath": "packages/server/src/local/agents-store.ts", - "summary": "File-backed CRUD store for agent definitions persisted as JSON on disk, supporting add, get, patch, and delete operations.", - "tags": [ - "service", - "data-model", - "utility" - ], - "complexity": "moderate" - }, - { - "id": "function:packages/server/src/local/agents-store.ts:readAgents", - "type": "function", - "name": "readAgents", - "filePath": "packages/server/src/local/agents-store.ts", - "lineRange": [ - 65, - 76 - ], - "summary": "Reads and parses the agents JSON file from the data directory, returning an empty array if not yet present.", - "tags": [ - "utility", - "data-model" - ], - "complexity": "simple" - }, - { - "id": "function:packages/server/src/local/agents-store.ts:addAgent", - "type": "function", - "name": "addAgent", - "filePath": "packages/server/src/local/agents-store.ts", - "lineRange": [ - 101, - 112 - ], - "summary": "Creates a new agent entry with a generated UUID and timestamps, persisting it to the agents JSON store.", - "tags": [ - "utility", - "data-model" - ], - "complexity": "simple" - }, - { - "id": "function:packages/server/src/local/agents-store.ts:patchAgent", - "type": "function", - "name": "patchAgent", - "filePath": "packages/server/src/local/agents-store.ts", - "lineRange": [ - 121, - 140 - ], - "summary": "Applies a partial update to an existing agent by ID, updating the updatedAt timestamp and writing back atomically.", - "tags": [ - "utility", - "data-model" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/src/local/cors-config.ts", - "type": "file", - "name": "cors-config.ts", - "filePath": "packages/server/src/local/cors-config.ts", - "summary": "Defines allowed CORS origins for the local Fastify server and exports origin-validation helpers used by route handlers.", - "tags": [ - "configuration", - "middleware", - "security", - "tested" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/src/local/cron.ts", - "type": "file", - "name": "cron.ts", - "filePath": "packages/server/src/local/cron.ts", - "summary": "Implements the LocalScheduler class that ticks at an interval, executing due cron jobs and tracking consecutive failures up to a configurable maximum before disabling a job.", - "tags": [ - "service", - "scheduler", - "utility", - "tested" - ], - "complexity": "moderate" - }, - { - "id": "class:packages/server/src/local/cron.ts:LocalScheduler", - "type": "class", - "name": "LocalScheduler", - "filePath": "packages/server/src/local/cron.ts", - "lineRange": [ - 44, - 168 - ], - "summary": "Interval-based cron scheduler that maintains failure counts and disables runaway jobs after reaching MAX_CONSECUTIVE_FAILURES.", - "tags": [ - "service", - "scheduler" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/src/local/data-erase-helpers.ts", - "type": "file", - "name": "data-erase-helpers.ts", - "filePath": "packages/server/src/local/data-erase-helpers.ts", - "summary": "Provides the core data-wipe helpers including confirmation validation, safe-directory assertion, marker file management, and recursive filesystem removal with an audit receipt.", - "tags": [ - "utility", - "security", - "data-model" - ], - "complexity": "complex" - }, - { - "id": "function:packages/server/src/local/data-erase-helpers.ts:performWipe", - "type": "function", - "name": "performWipe", - "filePath": "packages/server/src/local/data-erase-helpers.ts", - "lineRange": [ - 241, - 311 - ], - "summary": "Executes a full recursive deletion of the data directory, skipping protected entries and producing a structured wipe report.", - "tags": [ - "utility", - "security" - ], - "complexity": "complex" - }, - { - "id": "function:packages/server/src/local/data-erase-helpers.ts:assertDataDirIsSafeToWipe", - "type": "function", - "name": "assertDataDirIsSafeToWipe", - "filePath": "packages/server/src/local/data-erase-helpers.ts", - "lineRange": [ - 179, - 208 - ], - "summary": "Guards against accidental deletion of root or home directories by resolving and checking multiple safety conditions before allowing a wipe.", - "tags": [ - "validation", - "security" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/src/local/index.ts", - "type": "file", - "name": "index.ts", - "filePath": "packages/server/src/local/index.ts", - "summary": "Main Fastify server factory for the local sidecar — registers all ~80 route plugins, decorates the server with memory, vault, connectors, and scheduling infrastructure, and seeds initial data on first run.", - "tags": [ - "entry-point", - "api-handler", - "service", - "tested" - ], - "complexity": "complex", - "languageNotes": "Single 2574-line buildLocalServer function wires every route plugin, middleware, and background job. Changing routing order or plugin registration here has server-wide impact." - }, - { - "id": "function:packages/server/src/local/index.ts:buildLocalServer", - "type": "function", - "name": "buildLocalServer", - "filePath": "packages/server/src/local/index.ts", - "lineRange": [ - 302, - 2574 - ], - "summary": "Constructs and fully configures the Fastify local sidecar instance: registers plugins, seeds data, sets up memory substrate, wires connectors, and attaches all route handlers.", - "tags": [ - "entry-point", - "service", - "factory" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/src/local/lifecycle.ts", - "type": "file", - "name": "lifecycle.ts", - "filePath": "packages/server/src/local/lifecycle.ts", - "summary": "Manages LiteLLM process lifecycle: spawning, monitoring health, graceful shutdown, and re-start on crash for the local LLM proxy.", - "tags": [ - "service", - "lifecycle", - "middleware" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/src/local/llm-key-probe.ts", - "type": "file", - "name": "llm-key-probe.ts", - "filePath": "packages/server/src/local/llm-key-probe.ts", - "summary": "Probes LLM provider API keys by sending minimal test requests to verify their validity before exposing them to the rest of the system.", - "tags": [ - "utility", - "validation", - "service" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/src/local/logger.ts", - "type": "file", - "name": "logger.ts", - "filePath": "packages/server/src/local/logger.ts", - "summary": "Creates and exports the Pino logger instance used throughout the local server sidecar for structured logging.", - "tags": [ - "utility", - "singleton", - "configuration" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/src/local/mcp-config.ts", - "type": "file", - "name": "mcp-config.ts", - "filePath": "packages/server/src/local/mcp-config.ts", - "summary": "Reads and writes the MCP (Model Context Protocol) server configuration from disk, seeding defaults and validating entries.", - "tags": [ - "configuration", - "service", - "data-model", - "tested" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/src/local/memory-lane-cron.ts", - "type": "file", - "name": "memory-lane-cron.ts", - "filePath": "packages/server/src/local/memory-lane-cron.ts", - "summary": "Scheduled cron job that periodically surfaces memory-lane highlights by querying the memory substrate and emitting notification events.", - "tags": [ - "service", - "scheduler", - "event-handler", - "tested" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/src/local/model-availability.ts", - "type": "file", - "name": "model-availability.ts", - "filePath": "packages/server/src/local/model-availability.ts", - "summary": "Checks which LLM models are available given the user's configured API keys and LiteLLM connection, returning an availability map used by routes.", - "tags": [ - "service", - "utility", - "validation" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/src/local/monthly-assessment.ts", - "type": "file", - "name": "monthly-assessment.ts", - "filePath": "packages/server/src/local/monthly-assessment.ts", - "summary": "Generates a monthly AI-driven self-assessment of workspace activity by querying the memory substrate and invoking an LLM to produce structured insights.", - "tags": [ - "service", - "event-handler", - "data-model", - "tested" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/src/local/net-config.ts", - "type": "file", - "name": "net-config.ts", - "filePath": "packages/server/src/local/net-config.ts", - "summary": "Resolves the server bind host from environment variables and exports network configuration constants used by security middleware and the service startup.", - "tags": [ - "configuration", - "utility", - "middleware" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/src/local/offline-manager.ts", - "type": "file", - "name": "offline-manager.ts", - "filePath": "packages/server/src/local/offline-manager.ts", - "summary": "Tracks and broadcasts the server's online/offline state, polling network connectivity and emitting SSE events to connected clients.", - "tags": [ - "service", - "event-handler", - "middleware", - "tested" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/src/local/origin-guard.ts", - "type": "file", - "name": "origin-guard.ts", - "filePath": "packages/server/src/local/origin-guard.ts", - "summary": "Fastify preHandler that rejects requests from untrusted origins, providing a secondary CORS enforcement layer for sensitive endpoints.", - "tags": [ - "middleware", - "security", - "validation" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/src/local/persona-tool-filter.ts", - "type": "file", - "name": "persona-tool-filter.ts", - "filePath": "packages/server/src/local/persona-tool-filter.ts", - "summary": "Filters the available tool set down to only those permitted for the active agent persona, enforcing allowlists and denylists at the server layer.", - "tags": [ - "middleware", - "utility", - "validation", - "tested" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/src/local/proactive-handlers.ts", - "type": "file", - "name": "proactive-handlers.ts", - "filePath": "packages/server/src/local/proactive-handlers.ts", - "summary": "Contains handlers for proactive server-side behaviours such as scheduling suggestions and follow-up prompts that are injected into the chat flow without user initiation.", - "tags": [ - "service", - "event-handler", - "middleware", - "tested" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/src/local/routes/agent-groups.ts", - "type": "file", - "name": "agent-groups.ts", - "filePath": "packages/server/src/local/routes/agent-groups.ts", - "summary": "Fastify route plugin exposing CRUD endpoints for agent group management, used for organizing agents into logical collections within a workspace.", - "tags": [ - "api-handler", - "service", - "data-model" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/src/local/routes/agent-run.ts", - "type": "file", - "name": "agent-run.ts", - "filePath": "packages/server/src/local/routes/agent-run.ts", - "summary": "Route plugin that handles initiating and streaming agent execution runs, bridging HTTP requests to the agent loop and surfacing status updates via SSE.", - "tags": [ - "api-handler", - "service", - "event-handler" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/src/local/routes/agent-search.ts", - "type": "file", - "name": "agent-search.ts", - "filePath": "packages/server/src/local/routes/agent-search.ts", - "summary": "Route plugin providing semantic search over agents, enabling discovery of relevant agents by capability or description using vector search.", - "tags": [ - "api-handler", - "service", - "utility", - "tested" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/src/local/routes/agent.ts", - "type": "file", - "name": "agent.ts", - "filePath": "packages/server/src/local/routes/agent.ts", - "summary": "Route plugin exposing single-agent read endpoints and model-availability checks for the active agent context.", - "tags": [ - "api-handler", - "service" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/src/local/routes/agents.ts", - "type": "file", - "name": "agents.ts", - "filePath": "packages/server/src/local/routes/agents.ts", - "summary": "Route plugin providing full CRUD REST endpoints for agent definitions, delegating persistence to the agents-store and enforcing input validation.", - "tags": [ - "api-handler", - "service", - "data-model" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/src/local/routes/anthropic-proxy.ts", - "type": "file", - "name": "anthropic-proxy.ts", - "filePath": "packages/server/src/local/routes/anthropic-proxy.ts", - "summary": "Transparent reverse-proxy route that forwards authenticated requests to the Anthropic API, injecting CORS headers and stripping internal credentials.", - "tags": [ - "api-handler", - "middleware", - "security" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/src/local/routes/approval.ts", - "type": "file", - "name": "approval.ts", - "filePath": "packages/server/src/local/routes/approval.ts", - "summary": "Route plugin that handles human-in-the-loop approval requests, allowing users to approve or reject pending agent actions before execution proceeds.", - "tags": [ - "api-handler", - "event-handler", - "middleware" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/src/local/routes/artifact-index.ts", - "type": "file", - "name": "artifact-index.ts", - "filePath": "packages/server/src/local/routes/artifact-index.ts", - "summary": "SQLite-backed index for workspace artifacts, providing fast lookup by type, workspace, and content hash with creation and deletion helpers.", - "tags": [ - "service", - "data-model", - "utility" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/src/local/routes/artifacts.ts", - "type": "file", - "name": "artifacts.ts", - "filePath": "packages/server/src/local/routes/artifacts.ts", - "summary": "Route plugin exposing artifact CRUD endpoints with workspace-scoped access, federated search, and event emission on create/delete.", - "tags": [ - "api-handler", - "service", - "data-model" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/src/local/routes/automations.ts", - "type": "file", - "name": "automations.ts", - "filePath": "packages/server/src/local/routes/automations.ts", - "summary": "Route plugin for managing user-defined automation rules and scheduled AI tasks, with full CRUD and enable/disable toggle endpoints.", - "tags": [ - "api-handler", - "service", - "scheduler" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/src/local/routes/backup.ts", - "type": "file", - "name": "backup.ts", - "filePath": "packages/server/src/local/routes/backup.ts", - "summary": "Route plugin providing streaming workspace backup and restore endpoints, producing and consuming tar archives of the data directory.", - "tags": [ - "api-handler", - "service", - "utility", - "tested" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/src/local/routes/browse-helpers.ts", - "type": "file", - "name": "browse-helpers.ts", - "filePath": "packages/server/src/local/routes/browse-helpers.ts", - "summary": "Shared utility functions for the browse route: URL sanitization, content-type sniffing, and response body size limiting.", - "tags": [ - "utility", - "middleware" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/src/local/routes/browse.ts", - "type": "file", - "name": "browse.ts", - "filePath": "packages/server/src/local/routes/browse.ts", - "summary": "Route plugin that proxies outbound HTTP fetch requests on behalf of the agent, enforcing origin guard and content-type constraints.", - "tags": [ - "api-handler", - "middleware", - "security" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/src/local/routes/browser-ext.ts", - "type": "file", - "name": "browser-ext.ts", - "filePath": "packages/server/src/local/routes/browser-ext.ts", - "summary": "Minimal route plugin for browser extension integration, exposing a lightweight ping/handshake endpoint used by the Waggle browser extension.", - "tags": [ - "api-handler", - "middleware" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/src/local/routes/capabilities.ts", - "type": "file", - "name": "capabilities.ts", - "filePath": "packages/server/src/local/routes/capabilities.ts", - "summary": "Route plugin managing installable capability definitions (skills, connectors, MCPs), exposing endpoints for listing, installing, and uninstalling capabilities with trust tracking.", - "tags": [ - "api-handler", - "service", - "data-model" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/src/local/routes/chat-context.ts", - "type": "file", - "name": "chat-context.ts", - "filePath": "packages/server/src/local/routes/chat-context.ts", - "summary": "Route plugin providing workspace chat context endpoints: retrieval of recent messages and workspace state summary consumed by the chat and memory routes.", - "tags": [ - "api-handler", - "service", - "data-model", - "tested" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/src/local/routes/chat-governance.ts", - "type": "file", - "name": "chat-governance.ts", - "filePath": "packages/server/src/local/routes/chat-governance.ts", - "summary": "Provides role-based governance permission lookup for the chat pipeline, fetching and caching team policy from the team server with TTL.", - "tags": [ - "api-handler", - "middleware", - "service", - "tested" - ], - "complexity": "moderate" - }, - { - "id": "function:packages/server/src/local/routes/chat-governance.ts:getGovernancePermissions", - "type": "function", - "name": "getGovernancePermissions", - "filePath": "packages/server/src/local/routes/chat-governance.ts", - "lineRange": [ - 26, - 61 - ], - "summary": "Fetches and caches team governance policy from the configured team server, returning per-role permission objects.", - "tags": [ - "service", - "middleware", - "api-handler" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/src/local/routes/chat-helpers.ts", - "type": "file", - "name": "chat-helpers.ts", - "filePath": "packages/server/src/local/routes/chat-helpers.ts", - "summary": "Collection of chat pipeline utility functions for content regulation checks, error retryability detection, ambiguity detection, schedule suggestion heuristics, and human-readable tool-use descriptions.", - "tags": [ - "utility", - "api-handler", - "middleware", - "tested" - ], - "complexity": "moderate" - }, - { - "id": "function:packages/server/src/local/routes/chat-helpers.ts:isRegulatedContent", - "type": "function", - "name": "isRegulatedContent", - "filePath": "packages/server/src/local/routes/chat-helpers.ts", - "lineRange": [ - 11, - 22 - ], - "summary": "Checks whether message content falls under regulated topics for a given persona, used to gate responses.", - "tags": [ - "validation", - "middleware" - ], - "complexity": "simple" - }, - { - "id": "function:packages/server/src/local/routes/chat-helpers.ts:isAmbiguousMessage", - "type": "function", - "name": "isAmbiguousMessage", - "filePath": "packages/server/src/local/routes/chat-helpers.ts", - "lineRange": [ - 56, - 80 - ], - "summary": "Heuristically detects whether a user message is too ambiguous to act on, checking for file paths, URLs, and action verbs.", - "tags": [ - "utility", - "validation" - ], - "complexity": "simple" - }, - { - "id": "function:packages/server/src/local/routes/chat-helpers.ts:describeToolUse", - "type": "function", - "name": "describeToolUse", - "filePath": "packages/server/src/local/routes/chat-helpers.ts", - "lineRange": [ - 106, - 205 - ], - "summary": "Converts raw tool-use invocations into human-readable activity summaries for display in the chat UI.", - "tags": [ - "utility", - "serialization" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/src/local/routes/chat-persistence.ts", - "type": "file", - "name": "chat-persistence.ts", - "filePath": "packages/server/src/local/routes/chat-persistence.ts", - "summary": "Handles JSONL-format message persistence and loading for chat sessions on the local filesystem, providing append-write and read-back helpers.", - "tags": [ - "utility", - "service", - "tested" - ], - "complexity": "simple" - }, - { - "id": "function:packages/server/src/local/routes/chat-persistence.ts:persistMessage", - "type": "function", - "name": "persistMessage", - "filePath": "packages/server/src/local/routes/chat-persistence.ts", - "lineRange": [ - 15, - 35 - ], - "summary": "Appends a single chat message to the workspace session's JSONL file, creating the directory structure if needed.", - "tags": [ - "utility", - "service" - ], - "complexity": "simple" - }, - { - "id": "function:packages/server/src/local/routes/chat-persistence.ts:loadSessionMessages", - "type": "function", - "name": "loadSessionMessages", - "filePath": "packages/server/src/local/routes/chat-persistence.ts", - "lineRange": [ - 41, - 66 - ], - "summary": "Reads and parses a session's JSONL message log from disk, returning an ordered array of persisted messages.", - "tags": [ - "utility", - "service" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/src/local/routes/chat.ts", - "type": "file", - "name": "chat.ts", - "filePath": "packages/server/src/local/routes/chat.ts", - "summary": "The core chat route module implementing the full agent conversation pipeline including system prompt assembly, injection scanning, LLM streaming, tool execution, memory integration, and SSE event delivery.", - "tags": [ - "api-handler", - "service", - "middleware", - "tested" - ], - "complexity": "complex", - "languageNotes": "At 1771 lines this is the largest single route file; chatRoutes spans the entire function body and orchestrates context, governance, persona, cost tracking, and stream delivery." - }, - { - "id": "function:packages/server/src/local/routes/chat.ts:chatRoutes", - "type": "function", - "name": "chatRoutes", - "filePath": "packages/server/src/local/routes/chat.ts", - "lineRange": [ - 56, - 1771 - ], - "summary": "Registers all chat API routes (POST /chat, SSE streams, abort, session management) and wires together the full agent loop pipeline including system prompt assembly, injection scanning, and streaming responses.", - "tags": [ - "api-handler", - "service", - "entry-point" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/src/local/routes/command.ts", - "type": "file", - "name": "command.ts", - "filePath": "packages/server/src/local/routes/command.ts", - "summary": "Implements slash-command routing for workspace intelligence features including skill search, session distillation, and workspace context queries.", - "tags": [ - "api-handler", - "service" - ], - "complexity": "complex" - }, - { - "id": "function:packages/server/src/local/routes/command.ts:commandRoutes", - "type": "function", - "name": "commandRoutes", - "filePath": "packages/server/src/local/routes/command.ts", - "lineRange": [ - 68, - 270 - ], - "summary": "Registers command routes for skill lookup, session distillation triggering, and federated workspace queries used by the ⌘K command palette.", - "tags": [ - "api-handler", - "service" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/src/local/routes/commands.ts", - "type": "file", - "name": "commands.ts", - "filePath": "packages/server/src/local/routes/commands.ts", - "summary": "Lightweight route module exposing workspace slash-command endpoints for the command palette UI.", - "tags": [ - "api-handler", - "service" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/src/local/routes/compliance.ts", - "type": "file", - "name": "compliance.ts", - "filePath": "packages/server/src/local/routes/compliance.ts", - "summary": "Provides compliance reporting endpoints that expose install audit trails and EU AI Act-aligned capability governance data.", - "tags": [ - "api-handler", - "service", - "middleware" - ], - "complexity": "complex" - }, - { - "id": "function:packages/server/src/local/routes/compliance.ts:complianceRoutes", - "type": "function", - "name": "complianceRoutes", - "filePath": "packages/server/src/local/routes/compliance.ts", - "lineRange": [ - 75, - 312 - ], - "summary": "Registers compliance API routes for install audit, capability inventory, and PDF override reporting.", - "tags": [ - "api-handler", - "service" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/src/local/routes/connectors.ts", - "type": "file", - "name": "connectors.ts", - "filePath": "packages/server/src/local/routes/connectors.ts", - "summary": "Manages third-party connector CRUD and OAuth flow initiation, enforcing tier-based connector capacity limits across workspaces.", - "tags": [ - "api-handler", - "service", - "middleware", - "tested" - ], - "complexity": "complex" - }, - { - "id": "function:packages/server/src/local/routes/connectors.ts:connectorRoutes", - "type": "function", - "name": "connectorRoutes", - "filePath": "packages/server/src/local/routes/connectors.ts", - "lineRange": [ - 47, - 326 - ], - "summary": "Registers connector management routes for listing, adding, updating, and deleting OAuth-backed service connectors with tier-gated capacity enforcement.", - "tags": [ - "api-handler", - "service" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/src/local/routes/cost.ts", - "type": "file", - "name": "cost.ts", - "filePath": "packages/server/src/local/routes/cost.ts", - "summary": "Provides LLM usage cost tracking and reporting endpoints, aggregating per-model spend over configurable time windows with tier-gating on advanced metrics.", - "tags": [ - "api-handler", - "service", - "middleware" - ], - "complexity": "complex" - }, - { - "id": "function:packages/server/src/local/routes/cost.ts:costRoutes", - "type": "function", - "name": "costRoutes", - "filePath": "packages/server/src/local/routes/cost.ts", - "lineRange": [ - 65, - 270 - ], - "summary": "Registers cost reporting routes covering daily/weekly summaries, model breakdowns, and budget alert thresholds, protected by tier middleware.", - "tags": [ - "api-handler", - "service" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/src/local/routes/cron.ts", - "type": "file", - "name": "cron.ts", - "filePath": "packages/server/src/local/routes/cron.ts", - "summary": "Manages scheduled automation jobs (cron) including creation, listing, deletion, and immediate triggering via SSE notifications.", - "tags": [ - "api-handler", - "service", - "tested" - ], - "complexity": "moderate" - }, - { - "id": "function:packages/server/src/local/routes/cron.ts:cronRoutes", - "type": "function", - "name": "cronRoutes", - "filePath": "packages/server/src/local/routes/cron.ts", - "lineRange": [ - 56, - 216 - ], - "summary": "Registers cron job CRUD endpoints and immediate run triggers, integrating with the notification SSE stream.", - "tags": [ - "api-handler", - "service" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/src/local/routes/data-erase.ts", - "type": "file", - "name": "data-erase.ts", - "filePath": "packages/server/src/local/routes/data-erase.ts", - "summary": "Provides a confirmed data erasure endpoint that wipes the workspace data directory after validation, snapshot, and audit receipt generation.", - "tags": [ - "api-handler", - "service", - "security" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/src/local/routes/documents.ts", - "type": "file", - "name": "documents.ts", - "filePath": "packages/server/src/local/routes/documents.ts", - "summary": "Manages the workspace document registry (pinned notes and pages) with CRUD endpoints for creating, listing, updating, and deleting documents.", - "tags": [ - "api-handler", - "service", - "tested" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/src/local/routes/events.ts", - "type": "file", - "name": "events.ts", - "filePath": "packages/server/src/local/routes/events.ts", - "summary": "Core SSE event bus and audit database module that streams real-time server-sent events to connected clients and persists audit events to SQLite.", - "tags": [ - "api-handler", - "service", - "event-handler", - "tested" - ], - "complexity": "complex" - }, - { - "id": "function:packages/server/src/local/routes/events.ts:emitAuditEvent", - "type": "function", - "name": "emitAuditEvent", - "filePath": "packages/server/src/local/routes/events.ts", - "lineRange": [ - 99, - 171 - ], - "summary": "Persists an audit event to the workspace SQLite audit database and fans it out to all active SSE subscribers.", - "tags": [ - "event-handler", - "service" - ], - "complexity": "moderate" - }, - { - "id": "function:packages/server/src/local/routes/events.ts:eventRoutes", - "type": "function", - "name": "eventRoutes", - "filePath": "packages/server/src/local/routes/events.ts", - "lineRange": [ - 195, - 351 - ], - "summary": "Registers the SSE /events endpoint and audit log query routes, managing client connection lifecycle with heartbeats and CORS handling.", - "tags": [ - "api-handler", - "service", - "event-handler" - ], - "complexity": "complex" - }, - { - "id": "function:packages/server/src/local/routes/events.ts:getAuditDb", - "type": "function", - "name": "getAuditDb", - "filePath": "packages/server/src/local/routes/events.ts", - "lineRange": [ - 61, - 95 - ], - "summary": "Lazily initializes and caches per-workspace SQLite audit databases with schema migration on first access.", - "tags": [ - "service", - "utility" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/src/local/routes/evolution.ts", - "type": "file", - "name": "evolution.ts", - "filePath": "packages/server/src/local/routes/evolution.ts", - "summary": "Implements the self-improvement evolution pipeline API, exposing routes to trigger evaluation runs, deploy winning prompt schemas, view run history, and configure the evolution LLM.", - "tags": [ - "api-handler", - "service" - ], - "complexity": "complex" - }, - { - "id": "function:packages/server/src/local/routes/evolution.ts:evolutionRoutes", - "type": "function", - "name": "evolutionRoutes", - "filePath": "packages/server/src/local/routes/evolution.ts", - "lineRange": [ - 86, - 526 - ], - "summary": "Registers evolution API routes for running evaluation cycles, listing run history, deploying winning schemas, and viewing improvement signals.", - "tags": [ - "api-handler", - "service" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/src/local/routes/export.ts", - "type": "file", - "name": "export.ts", - "filePath": "packages/server/src/local/routes/export.ts", - "summary": "Provides data export routes for sessions and workspace content, streaming exports as ZIP archives with sanitized API key masking.", - "tags": [ - "api-handler", - "service" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/src/local/routes/extend.ts", - "type": "file", - "name": "extend.ts", - "filePath": "packages/server/src/local/routes/extend.ts", - "summary": "Manages capability/extension install and audit routes, tracking installed skills and MCP servers with approval status.", - "tags": [ - "api-handler", - "service", - "tested" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/src/local/routes/feedback.ts", - "type": "file", - "name": "feedback.ts", - "filePath": "packages/server/src/local/routes/feedback.ts", - "summary": "Persists user feedback (thumbs up/down + freetext) on agent responses to SQLite for quality monitoring and evolution signal collection.", - "tags": [ - "api-handler", - "service", - "tested" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/src/local/routes/files.ts", - "type": "file", - "name": "files.ts", - "filePath": "packages/server/src/local/routes/files.ts", - "summary": "Workspace file management API supporting upload, download, listing, deletion, and MIME-aware serving via configurable storage backends (local FS or S3).", - "tags": [ - "api-handler", - "service", - "tested" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/src/local/routes/fleet.ts", - "type": "file", - "name": "fleet.ts", - "filePath": "packages/server/src/local/routes/fleet.ts", - "summary": "Multi-agent fleet coordination routes enabling subagent spawning, status tracking, and WaggleDance signal emission for cross-workspace agent orchestration.", - "tags": [ - "api-handler", - "service", - "middleware", - "tested" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/src/local/routes/harvest-classify.ts", - "type": "file", - "name": "harvest-classify.ts", - "filePath": "packages/server/src/local/routes/harvest-classify.ts", - "summary": "Helper module mapping harvest import item types to memory kinds and computing confidence scores for harvest pipeline classification.", - "tags": [ - "utility", - "service", - "tested" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/src/local/routes/harvest.ts", - "type": "file", - "name": "harvest.ts", - "filePath": "packages/server/src/local/routes/harvest.ts", - "summary": "Full conversation and document harvest pipeline API handling import from Claude, ChatGPT, Gemini, and URL sources with caching, classification, deduplication, and memory ingestion.", - "tags": [ - "api-handler", - "service", - "tested" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/src/local/routes/home.ts", - "type": "file", - "name": "home.ts", - "filePath": "packages/server/src/local/routes/home.ts", - "summary": "Home cockpit API aggregating workspace briefings, priority-ranked memory snippets, recent activity, and personalized greetings for the main dashboard view.", - "tags": [ - "api-handler", - "service", - "tested" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/src/local/routes/identity.ts", - "type": "file", - "name": "identity.ts", - "filePath": "packages/server/src/local/routes/identity.ts", - "summary": "Manages persistent user identity data (name, preferences, profile facts) stored in the workspace mind layer, exposing CRUD endpoints for the IdentityLayer.", - "tags": [ - "api-handler", - "service", - "tested" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/src/local/routes/import.ts", - "type": "file", - "name": "import.ts", - "filePath": "packages/server/src/local/routes/import.ts", - "summary": "Provides bulk memory import routes for migrating conversation history and structured data from external sources into the workspace mind.", - "tags": [ - "api-handler", - "service" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/src/local/routes/ingest.ts", - "type": "file", - "name": "ingest.ts", - "filePath": "packages/server/src/local/routes/ingest.ts", - "summary": "Handles multi-format content ingestion (text, CSV, Base64 files) into workspace memory with per-file classification, validation, and registry tracking.", - "tags": [ - "api-handler", - "service", - "tested" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/src/local/routes/knowledge.ts", - "type": "file", - "name": "knowledge.ts", - "filePath": "packages/server/src/local/routes/knowledge.ts", - "summary": "Exposes knowledge graph query and projection endpoints, enabling entity relationship traversal and graph extraction from the workspace mind.", - "tags": [ - "api-handler", - "service", - "tested" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/src/local/routes/litellm.ts", - "type": "file", - "name": "litellm.ts", - "filePath": "packages/server/src/local/routes/litellm.ts", - "summary": "Provides LiteLLM proxy lifecycle management routes (start, stop, status) and Ollama model listing for the LLM routing layer.", - "tags": [ - "api-handler", - "service" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/src/local/routes/local-inference.ts", - "type": "file", - "name": "local-inference.ts", - "filePath": "packages/server/src/local/routes/local-inference.ts", - "summary": "Routes for local on-device model inference via llmfit, including hardware detection, available model listing, and inference invocation.", - "tags": [ - "api-handler", - "service" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/src/local/routes/marketplace-dev.ts", - "type": "file", - "name": "marketplace-dev.ts", - "filePath": "packages/server/src/local/routes/marketplace-dev.ts", - "summary": "Developer-facing marketplace routes for testing and managing skill and connector catalog entries during local development.", - "tags": [ - "api-handler", - "service" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/src/local/routes/marketplace.ts", - "type": "file", - "name": "marketplace.ts", - "filePath": "packages/server/src/local/routes/marketplace.ts", - "summary": "Full marketplace API managing skill and connector discovery, installation, tier-gating, KVARK integration, and MCP server lifecycle management.", - "tags": [ - "api-handler", - "service", - "middleware", - "tested" - ], - "complexity": "complex" - }, - { - "id": "function:packages/server/src/local/routes/marketplace.ts:marketplaceRoutes", - "type": "function", - "name": "marketplaceRoutes", - "filePath": "packages/server/src/local/routes/marketplace.ts", - "lineRange": [ - 35, - 889 - ], - "summary": "Registers marketplace routes for browsing, installing, and managing skills and connectors with tier enforcement and KVARK connectivity.", - "tags": [ - "api-handler", - "service" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/src/local/routes/mcps.ts", - "type": "file", - "name": "mcps.ts", - "filePath": "packages/server/src/local/routes/mcps.ts", - "summary": "MCP (Model Context Protocol) server lifecycle management routes covering registration, connection status, process spawning, and tier-gated capacity enforcement.", - "tags": [ - "api-handler", - "service", - "middleware", - "tested" - ], - "complexity": "complex" - }, - { - "id": "function:packages/server/src/local/routes/mcps.ts:mcpRoutes", - "type": "function", - "name": "mcpRoutes", - "filePath": "packages/server/src/local/routes/mcps.ts", - "lineRange": [ - 87, - 577 - ], - "summary": "Registers MCP server CRUD and runtime management routes with tier enforcement and process health monitoring.", - "tags": [ - "api-handler", - "service" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/src/local/routes/memory-center.ts", - "type": "file", - "name": "memory-center.ts", - "filePath": "packages/server/src/local/routes/memory-center.ts", - "summary": "Memory Center API aggregating workspace memory frames for the management UI, with filtering, search, confirm/reject provenance actions, and usage statistics.", - "tags": [ - "api-handler", - "service", - "tested" - ], - "complexity": "complex" - }, - { - "id": "function:packages/server/src/local/routes/memory-center.ts:memoryCenterRoutes", - "type": "function", - "name": "memoryCenterRoutes", - "filePath": "packages/server/src/local/routes/memory-center.ts", - "lineRange": [ - 64, - 613 - ], - "summary": "Registers memory center endpoints for listing, searching, confirming, rejecting, and deleting memory frames, plus provenance trace and stats queries.", - "tags": [ - "api-handler", - "service" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/src/local/routes/memory.ts", - "type": "file", - "name": "memory.ts", - "filePath": "packages/server/src/local/routes/memory.ts", - "summary": "Core memory API providing frame recall, storage, deletion, and hybrid search over the workspace HybridSearch/FrameStore substrate via SSE event emission.", - "tags": [ - "api-handler", - "service", - "tested" - ], - "complexity": "complex" - }, - { - "id": "function:packages/server/src/local/routes/memory.ts:memoryRoutes", - "type": "function", - "name": "memoryRoutes", - "filePath": "packages/server/src/local/routes/memory.ts", - "lineRange": [ - 68, - 679 - ], - "summary": "Registers memory management routes for storing, recalling, searching, and deleting workspace memory frames, with content sanitization and SSE audit events.", - "tags": [ - "api-handler", - "service" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/src/local/routes/mind.ts", - "type": "file", - "name": "mind.ts", - "filePath": "packages/server/src/local/routes/mind.ts", - "summary": "Minimal route module exposing raw mind substrate access endpoints for diagnostic and low-level memory inspection.", - "tags": [ - "api-handler", - "service" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/src/local/routes/notifications.ts", - "type": "file", - "name": "notifications.ts", - "filePath": "packages/server/src/local/routes/notifications.ts", - "summary": "SSE-based notification system for pushing real-time UI notifications including subagent status updates, workflow suggestions, and task progress events.", - "tags": [ - "api-handler", - "service", - "event-handler", - "tested" - ], - "complexity": "moderate" - }, - { - "id": "function:packages/server/src/local/routes/notifications.ts:emitNotification", - "type": "function", - "name": "emitNotification", - "filePath": "packages/server/src/local/routes/notifications.ts", - "lineRange": [ - 45, - 57 - ], - "summary": "Broadcasts a notification event to all SSE-connected notification subscribers for a workspace.", - "tags": [ - "event-handler", - "service" - ], - "complexity": "simple" - }, - { - "id": "function:packages/server/src/local/routes/notifications.ts:notificationRoutes", - "type": "function", - "name": "notificationRoutes", - "filePath": "packages/server/src/local/routes/notifications.ts", - "lineRange": [ - 87, - 211 - ], - "summary": "Registers the notification SSE endpoint with CORS-aware connection lifecycle management and task/team integration.", - "tags": [ - "api-handler", - "service", - "event-handler" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/src/local/routes/oauth.ts", - "type": "file", - "name": "oauth.ts", - "filePath": "packages/server/src/local/routes/oauth.ts", - "summary": "Implements OAuth 2.0 PKCE authorization code flow for third-party connector integrations, handling state generation, authorization redirects, and token exchange with CSRF-escaped HTML responses.", - "tags": [ - "api-handler", - "middleware", - "service", - "tested" - ], - "complexity": "complex" - }, - { - "id": "function:packages/server/src/local/routes/oauth.ts:oauthRoutes", - "type": "function", - "name": "oauthRoutes", - "filePath": "packages/server/src/local/routes/oauth.ts", - "lineRange": [ - 77, - 321 - ], - "summary": "Registers OAuth provider listing, authorization initiation, and callback endpoints on the Fastify server, managing pending state map and vault credential storage.", - "tags": [ - "api-handler", - "middleware" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/src/local/routes/offline.ts", - "type": "file", - "name": "offline.ts", - "filePath": "packages/server/src/local/routes/offline.ts", - "summary": "Provides offline message queue API routes for buffering messages when the agent is unavailable, supporting enqueue, list, dequeue, and clear operations.", - "tags": [ - "api-handler", - "service" - ], - "complexity": "moderate" - }, - { - "id": "function:packages/server/src/local/routes/offline.ts:offlineRoutes", - "type": "function", - "name": "offlineRoutes", - "filePath": "packages/server/src/local/routes/offline.ts", - "lineRange": [ - 13, - 82 - ], - "summary": "Registers offline queue management routes including status check, message enqueue, list pending, dequeue, and clear-all endpoints.", - "tags": [ - "api-handler" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/src/local/routes/onboarding.ts", - "type": "file", - "name": "onboarding.ts", - "filePath": "packages/server/src/local/routes/onboarding.ts", - "summary": "Manages onboarding state for new users by reading/writing completion flags on the filesystem and checking memory frames and workspace existence.", - "tags": [ - "api-handler", - "service", - "tested" - ], - "complexity": "moderate" - }, - { - "id": "function:packages/server/src/local/routes/onboarding.ts:onboardingRoutes", - "type": "function", - "name": "onboardingRoutes", - "filePath": "packages/server/src/local/routes/onboarding.ts", - "lineRange": [ - 32, - 82 - ], - "summary": "Registers GET and POST endpoints for onboarding status checks and completion marking, coordinating with the memory frame store and workspace manager.", - "tags": [ - "api-handler" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/src/local/routes/personas.ts", - "type": "file", - "name": "personas.ts", - "filePath": "packages/server/src/local/routes/personas.ts", - "summary": "Handles CRUD API routes for agent personas including listing built-in personas, creating/editing/deleting custom personas, and AI-assisted persona generation with tier gating.", - "tags": [ - "api-handler", - "service", - "tested" - ], - "complexity": "complex" - }, - { - "id": "function:packages/server/src/local/routes/personas.ts:personaRoutes", - "type": "function", - "name": "personaRoutes", - "filePath": "packages/server/src/local/routes/personas.ts", - "lineRange": [ - 10, - 178 - ], - "summary": "Registers persona management endpoints including GET list, POST create (tier-gated), PATCH update, POST AI-generate, and DELETE, enforcing restrictions on built-in personas.", - "tags": [ - "api-handler" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/src/local/routes/pins.ts", - "type": "file", - "name": "pins.ts", - "filePath": "packages/server/src/local/routes/pins.ts", - "summary": "Provides CRUD API routes for pinned workspace items, persisting pins as JSON files in the user's home directory per workspace.", - "tags": [ - "api-handler", - "service" - ], - "complexity": "moderate" - }, - { - "id": "function:packages/server/src/local/routes/pins.ts:pinRoutes", - "type": "function", - "name": "pinRoutes", - "filePath": "packages/server/src/local/routes/pins.ts", - "lineRange": [ - 59, - 143 - ], - "summary": "Registers GET list, POST create, PATCH update, and DELETE pin routes for per-workspace pinned items backed by JSON file storage.", - "tags": [ - "api-handler" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/src/local/routes/profile.ts", - "type": "file", - "name": "profile.ts", - "filePath": "packages/server/src/local/routes/profile.ts", - "summary": "Manages user profile data (name, role, company, bio, writing style) with JSON file persistence, memory frame integration, and AI-assisted profile field generation.", - "tags": [ - "api-handler", - "service", - "data-model" - ], - "complexity": "complex", - "languageNotes": "Exports profile load/save helpers used by other routes (e.g. harvest routes) in addition to the route plugin itself." - }, - { - "id": "function:packages/server/src/local/routes/profile.ts:profileRoutes", - "type": "function", - "name": "profileRoutes", - "filePath": "packages/server/src/local/routes/profile.ts", - "lineRange": [ - 166, - 457 - ], - "summary": "Registers full profile CRUD endpoints plus AI-assisted writing-style analysis, bio generation, and role description inference, writing results to the memory identity layer.", - "tags": [ - "api-handler" - ], - "complexity": "complex" - }, - { - "id": "function:packages/server/src/local/routes/profile.ts:loadProfile", - "type": "function", - "name": "loadProfile", - "filePath": "packages/server/src/local/routes/profile.ts", - "lineRange": [ - 149, - 158 - ], - "summary": "Reads user profile JSON from disk, returning an empty default profile object if none exists yet.", - "tags": [ - "utility", - "data-model" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/src/local/routes/providers.ts", - "type": "file", - "name": "providers.ts", - "filePath": "packages/server/src/local/routes/providers.ts", - "summary": "Exposes LLM and search provider catalog definitions and routes, including dynamic discovery of OpenRouter free models and locally running Ollama models.", - "tags": [ - "api-handler", - "service" - ], - "complexity": "complex" - }, - { - "id": "function:packages/server/src/local/routes/providers.ts:fetchOpenRouterFreeModels", - "type": "function", - "name": "fetchOpenRouterFreeModels", - "filePath": "packages/server/src/local/routes/providers.ts", - "lineRange": [ - 162, - 200 - ], - "summary": "Fetches and filters free-tier models from the OpenRouter API with timeout, returning normalized model descriptors sorted by context length.", - "tags": [ - "service", - "api-handler" - ], - "complexity": "moderate" - }, - { - "id": "function:packages/server/src/local/routes/providers.ts:fetchOllamaModels", - "type": "function", - "name": "fetchOllamaModels", - "filePath": "packages/server/src/local/routes/providers.ts", - "lineRange": [ - 203, - 235 - ], - "summary": "Queries the local Ollama instance API and maps running models into the provider model descriptor format.", - "tags": [ - "service", - "api-handler" - ], - "complexity": "moderate" - }, - { - "id": "function:packages/server/src/local/routes/providers.ts:providerRoutes", - "type": "function", - "name": "providerRoutes", - "filePath": "packages/server/src/local/routes/providers.ts", - "lineRange": [ - 237, - 295 - ], - "summary": "Registers provider catalog listing endpoints including a combined view that merges static catalog entries with dynamically fetched Ollama and OpenRouter models.", - "tags": [ - "api-handler" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/src/local/routes/session-utils.ts", - "type": "file", - "name": "session-utils.ts", - "filePath": "packages/server/src/local/routes/session-utils.ts", - "summary": "Core session processing library providing LLM-based session summarization, metadata extraction, distillation tracking, progress/outcome extraction, thread classification, search, and timeline parsing used across session-related routes.", - "tags": [ - "utility", - "service", - "data-model", - "tested" - ], - "complexity": "complex", - "languageNotes": "Over 1000 non-empty lines of session intelligence logic; the most substantial utility module in the routes layer." - }, - { - "id": "function:packages/server/src/local/routes/session-utils.ts:generateSessionSummary", - "type": "function", - "name": "generateSessionSummary", - "filePath": "packages/server/src/local/routes/session-utils.ts", - "lineRange": [ - 91, - 184 - ], - "summary": "Calls an LLM to generate a structured markdown summary from session message history, returning title, key outcomes, and tags.", - "tags": [ - "utility", - "service" - ], - "complexity": "complex" - }, - { - "id": "function:packages/server/src/local/routes/session-utils.ts:readSessionMeta", - "type": "function", - "name": "readSessionMeta", - "filePath": "packages/server/src/local/routes/session-utils.ts", - "lineRange": [ - 191, - 296 - ], - "summary": "Reads and parses session metadata including messages, tool calls, and usage stats from the session storage directory.", - "tags": [ - "utility", - "data-model" - ], - "complexity": "complex" - }, - { - "id": "function:packages/server/src/local/routes/session-utils.ts:findUndistilledSessions", - "type": "function", - "name": "findUndistilledSessions", - "filePath": "packages/server/src/local/routes/session-utils.ts", - "lineRange": [ - 305, - 377 - ], - "summary": "Scans session directories to find sessions that have not yet been processed through the memory distillation pipeline.", - "tags": [ - "utility", - "service" - ], - "complexity": "complex" - }, - { - "id": "function:packages/server/src/local/routes/session-utils.ts:extractProgressItems", - "type": "function", - "name": "extractProgressItems", - "filePath": "packages/server/src/local/routes/session-utils.ts", - "lineRange": [ - 439, - 537 - ], - "summary": "Extracts structured progress items from session messages by parsing tool call results and LLM-detected task completion signals.", - "tags": [ - "utility", - "service" - ], - "complexity": "complex" - }, - { - "id": "function:packages/server/src/local/routes/session-utils.ts:extractSessionOutcome", - "type": "function", - "name": "extractSessionOutcome", - "filePath": "packages/server/src/local/routes/session-utils.ts", - "lineRange": [ - 564, - 654 - ], - "summary": "Uses an LLM to extract structured outcome data (goals achieved, artifacts created, open questions) from a completed session.", - "tags": [ - "utility", - "service" - ], - "complexity": "complex" - }, - { - "id": "function:packages/server/src/local/routes/session-utils.ts:extractOpenQuestions", - "type": "function", - "name": "extractOpenQuestions", - "filePath": "packages/server/src/local/routes/session-utils.ts", - "lineRange": [ - 702, - 766 - ], - "summary": "Identifies unresolved questions and action items from session conversations using pattern matching and LLM extraction.", - "tags": [ - "utility", - "service" - ], - "complexity": "complex" - }, - { - "id": "function:packages/server/src/local/routes/session-utils.ts:classifyThreads", - "type": "function", - "name": "classifyThreads", - "filePath": "packages/server/src/local/routes/session-utils.ts", - "lineRange": [ - 787, - 849 - ], - "summary": "Groups and classifies sessions into topical threads with freshness scores, enabling the thread-based session browsing UI.", - "tags": [ - "utility", - "service" - ], - "complexity": "complex" - }, - { - "id": "function:packages/server/src/local/routes/session-utils.ts:searchSessions", - "type": "function", - "name": "searchSessions", - "filePath": "packages/server/src/local/routes/session-utils.ts", - "lineRange": [ - 875, - 954 - ], - "summary": "Full-text searches session content and metadata across workspaces, returning ranked results with context snippets.", - "tags": [ - "utility", - "service" - ], - "complexity": "complex" - }, - { - "id": "function:packages/server/src/local/routes/session-utils.ts:exportSessionToMarkdown", - "type": "function", - "name": "exportSessionToMarkdown", - "filePath": "packages/server/src/local/routes/session-utils.ts", - "lineRange": [ - 962, - 1015 - ], - "summary": "Converts session message history into a formatted markdown document for export, including tool use summaries and metadata.", - "tags": [ - "utility", - "serialization" - ], - "complexity": "moderate" - }, - { - "id": "function:packages/server/src/local/routes/session-utils.ts:parseSessionTimeline", - "type": "function", - "name": "parseSessionTimeline", - "filePath": "packages/server/src/local/routes/session-utils.ts", - "lineRange": [ - 1088, - 1171 - ], - "summary": "Parses a session's message stream into a structured timeline of events including tool calls, agent turns, and user messages.", - "tags": [ - "utility", - "data-model" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/src/local/routes/sessions.ts", - "type": "file", - "name": "sessions.ts", - "filePath": "packages/server/src/local/routes/sessions.ts", - "summary": "Session management API routes providing CRUD, distillation, search, export, timeline, and thread classification endpoints for agent chat sessions, re-exporting session utility types.", - "tags": [ - "api-handler", - "service", - "tested" - ], - "complexity": "complex" - }, - { - "id": "function:packages/server/src/local/routes/sessions.ts:sessionRoutes", - "type": "function", - "name": "sessionRoutes", - "filePath": "packages/server/src/local/routes/sessions.ts", - "lineRange": [ - 60, - 424 - ], - "summary": "Registers comprehensive session management endpoints: list, get, update, delete, summarize, distill, search, export, timeline, threads, and state extraction.", - "tags": [ - "api-handler" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/src/local/routes/settings.ts", - "type": "file", - "name": "settings.ts", - "filePath": "packages/server/src/local/routes/settings.ts", - "summary": "Manages application settings including LLM model selection, API key storage/validation with live probing, autonomy defaults, and multi-provider key management with tier enforcement.", - "tags": [ - "api-handler", - "service", - "config" - ], - "complexity": "complex" - }, - { - "id": "function:packages/server/src/local/routes/settings.ts:settingsRoutes", - "type": "function", - "name": "settingsRoutes", - "filePath": "packages/server/src/local/routes/settings.ts", - "lineRange": [ - 28, - 516 - ], - "summary": "Registers settings read/write endpoints with key masking, provider key validation via live probes, model selection, and tier-gated features like autonomy overrides.", - "tags": [ - "api-handler", - "config" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/src/local/routes/skills-aliases.ts", - "type": "file", - "name": "skills-aliases.ts", - "filePath": "packages/server/src/local/routes/skills-aliases.ts", - "summary": "Manages skill alias CRUD routes that allow users to create shorthand command aliases pointing to skills, with path validation.", - "tags": [ - "api-handler", - "service" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/src/local/routes/skills.ts", - "type": "file", - "name": "skills.ts", - "filePath": "packages/server/src/local/routes/skills.ts", - "summary": "Comprehensive skill management routes handling skill discovery, CRUD, usage tracking, governance (autonomy/approval gates), AI-distillation, and marketplace integration across local and global skill directories.", - "tags": [ - "api-handler", - "service", - "tested" - ], - "complexity": "complex" - }, - { - "id": "function:packages/server/src/local/routes/skills.ts:skillRoutes", - "type": "function", - "name": "skillRoutes", - "filePath": "packages/server/src/local/routes/skills.ts", - "lineRange": [ - 42, - 934 - ], - "summary": "Registers all skill-related endpoints including list, get, create, update, delete, distill, import, export, usage stats, and governance approval routes.", - "tags": [ - "api-handler" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/src/local/routes/tasks.ts", - "type": "file", - "name": "tasks.ts", - "filePath": "packages/server/src/local/routes/tasks.ts", - "summary": "Task board API routes enabling CRUD operations on workspace tasks with JSON file persistence and notification emission on task updates.", - "tags": [ - "api-handler", - "service", - "tested" - ], - "complexity": "moderate" - }, - { - "id": "function:packages/server/src/local/routes/tasks.ts:taskRoutes", - "type": "function", - "name": "taskRoutes", - "filePath": "packages/server/src/local/routes/tasks.ts", - "lineRange": [ - 54, - 204 - ], - "summary": "Registers task list, create, update, and delete endpoints with notification events emitted on task status changes.", - "tags": [ - "api-handler" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/src/local/routes/team.ts", - "type": "file", - "name": "team.ts", - "filePath": "packages/server/src/local/routes/team.ts", - "summary": "Team management routes providing team creation, member invitation, role management, sync, and audit event tracking with SQLite persistence and tier enforcement for team features.", - "tags": [ - "api-handler", - "service", - "data-model" - ], - "complexity": "complex" - }, - { - "id": "function:packages/server/src/local/routes/team.ts:teamRoutes", - "type": "function", - "name": "teamRoutes", - "filePath": "packages/server/src/local/routes/team.ts", - "lineRange": [ - 103, - 787 - ], - "summary": "Registers team CRUD, member management, invitation, role assignment, team sync, and leave/dissolve endpoints with audit event emission and tier gating.", - "tags": [ - "api-handler" - ], - "complexity": "complex" - }, - { - "id": "function:packages/server/src/local/routes/team.ts:getTeamsDb", - "type": "function", - "name": "getTeamsDb", - "filePath": "packages/server/src/local/routes/team.ts", - "lineRange": [ - 43, - 76 - ], - "summary": "Initializes or returns the cached SQLite teams database handle, creating schema tables (teams, members, invitations) on first run.", - "tags": [ - "service", - "data-model" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/src/local/routes/telegram.ts", - "type": "file", - "name": "telegram.ts", - "filePath": "packages/server/src/local/routes/telegram.ts", - "summary": "Telegram bot integration routes for storing bot credentials in vault and sending push notifications to configured chat IDs.", - "tags": [ - "api-handler", - "service", - "tested" - ], - "complexity": "moderate" - }, - { - "id": "function:packages/server/src/local/routes/telegram.ts:telegramRoutes", - "type": "function", - "name": "telegramRoutes", - "filePath": "packages/server/src/local/routes/telegram.ts", - "lineRange": [ - 107, - 192 - ], - "summary": "Registers Telegram credential management and message-sending endpoints with vault integration for secure token storage.", - "tags": [ - "api-handler" - ], - "complexity": "moderate" - }, - { - "id": "function:packages/server/src/local/routes/telegram.ts:pushTelegramMessage", - "type": "function", - "name": "pushTelegramMessage", - "filePath": "packages/server/src/local/routes/telegram.ts", - "lineRange": [ - 90, - 105 - ], - "summary": "Exported helper that sends a notification message to the configured Telegram chat using stored vault credentials.", - "tags": [ - "utility", - "service" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/src/local/routes/telemetry.ts", - "type": "file", - "name": "telemetry.ts", - "filePath": "packages/server/src/local/routes/telemetry.ts", - "summary": "Provides a telemetry ingestion endpoint for receiving and forwarding client-side usage events to the telemetry pipeline.", - "tags": [ - "api-handler", - "service" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/src/local/routes/tools.ts", - "type": "file", - "name": "tools.ts", - "filePath": "packages/server/src/local/routes/tools.ts", - "summary": "AI tool detection and launcher routes for discovering installed AI tools (Claude, Cursor, Windsurf, etc.) and launching them with workspace context injection.", - "tags": [ - "api-handler", - "service" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/src/local/routes/validate.ts", - "type": "file", - "name": "validate.ts", - "filePath": "packages/server/src/local/routes/validate.ts", - "summary": "Shared path safety validation helpers and string clamping utilities used across route handlers to prevent path traversal and enforce input size limits.", - "tags": [ - "utility", - "validation", - "middleware", - "tested" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/src/local/routes/vault.ts", - "type": "file", - "name": "vault.ts", - "filePath": "packages/server/src/local/routes/vault.ts", - "summary": "Secure vault API routes for storing and retrieving encrypted secrets (API keys, tokens) with origin validation restricting access to local requests only.", - "tags": [ - "api-handler", - "service", - "security", - "tested" - ], - "complexity": "moderate" - }, - { - "id": "function:packages/server/src/local/routes/vault.ts:vaultRoutes", - "type": "function", - "name": "vaultRoutes", - "filePath": "packages/server/src/local/routes/vault.ts", - "lineRange": [ - 103, - 188 - ], - "summary": "Registers vault secret list, get, set, and delete endpoints restricted to local-origin requests only via origin guard middleware.", - "tags": [ - "api-handler", - "security" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/src/local/routes/waggle-dance.ts", - "type": "file", - "name": "waggle-dance.ts", - "filePath": "packages/server/src/local/routes/waggle-dance.ts", - "summary": "WaggleDance multi-agent coordination routes for receiving discovery signals from external AI tools and querying the signal history.", - "tags": [ - "api-handler", - "service" - ], - "complexity": "moderate" - }, - { - "id": "function:packages/server/src/local/routes/waggle-dance.ts:waggleDanceRoutesImpl", - "type": "function", - "name": "waggleDanceRoutesImpl", - "filePath": "packages/server/src/local/routes/waggle-dance.ts", - "lineRange": [ - 88, - 202 - ], - "summary": "Registers WaggleDance signal ingestion and query endpoints, routing incoming signals through the SignalBus and forwarding to the legacy bridge for UI consumption.", - "tags": [ - "api-handler" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/src/local/routes/waggle-signals.ts", - "type": "file", - "name": "waggle-signals.ts", - "filePath": "packages/server/src/local/routes/waggle-signals.ts", - "summary": "Server-sent events (SSE) broadcast route for waggle signals consumed by the web UI, with CORS validation allowing cross-origin access from known AI tool origins.", - "tags": [ - "api-handler", - "event-handler", - "service" - ], - "complexity": "moderate" - }, - { - "id": "function:packages/server/src/local/routes/waggle-signals.ts:emitWaggleSignal", - "type": "function", - "name": "emitWaggleSignal", - "filePath": "packages/server/src/local/routes/waggle-signals.ts", - "lineRange": [ - 35, - 46 - ], - "summary": "Broadcasts a waggle signal payload to all active SSE subscriber connections.", - "tags": [ - "utility", - "event-handler" - ], - "complexity": "simple" - }, - { - "id": "function:packages/server/src/local/routes/waggle-signals.ts:waggleSignalRoutes", - "type": "function", - "name": "waggleSignalRoutes", - "filePath": "packages/server/src/local/routes/waggle-signals.ts", - "lineRange": [ - 48, - 123 - ], - "summary": "Registers the SSE stream endpoint for waggle signals with origin validation, fan-out to connected clients, and graceful connection lifecycle management.", - "tags": [ - "api-handler", - "event-handler" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/src/local/routes/weaver.ts", - "type": "file", - "name": "weaver.ts", - "filePath": "packages/server/src/local/routes/weaver.ts", - "summary": "Proxy routes for the Weaver AI writing assistant service, forwarding requests to the Weaver package's internal endpoints for document generation and refinement.", - "tags": [ - "api-handler", - "service" - ], - "complexity": "moderate" - }, - { - "id": "function:packages/server/src/local/routes/weaver.ts:weaverRoutes", - "type": "function", - "name": "weaverRoutes", - "filePath": "packages/server/src/local/routes/weaver.ts", - "lineRange": [ - 13, - 130 - ], - "summary": "Registers Weaver document generation and refinement endpoints, proxying requests to the Weaver service with authentication forwarding.", - "tags": [ - "api-handler" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/src/local/routes/wiki.ts", - "type": "file", - "name": "wiki.ts", - "filePath": "packages/server/src/local/routes/wiki.ts", - "summary": "Wiki compilation and retrieval routes enabling personal knowledge wiki generation from memory frames, with page browsing and search endpoints.", - "tags": [ - "api-handler", - "service" - ], - "complexity": "moderate" - }, - { - "id": "function:packages/server/src/local/routes/wiki.ts:wikiRoutes", - "type": "function", - "name": "wikiRoutes", - "filePath": "packages/server/src/local/routes/wiki.ts", - "lineRange": [ - 14, - 201 - ], - "summary": "Registers wiki compile, list pages, get page, and search endpoints backed by the wiki-compiler package and memory frame store.", - "tags": [ - "api-handler" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/src/local/routes/workflows.ts", - "type": "file", - "name": "workflows.ts", - "filePath": "packages/server/src/local/routes/workflows.ts", - "summary": "Custom workflow definition routes enabling users to save and retrieve multi-step agent workflow templates.", - "tags": [ - "api-handler", - "service", - "tested" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/src/local/routes/workspace-context.ts", - "type": "file", - "name": "workspace-context.ts", - "filePath": "packages/server/src/local/routes/workspace-context.ts", - "summary": "Builds and formats workspace context blocks injected into agent system prompts, assembling memory frames, pending tasks, session state, and time-aware greetings into structured context.", - "tags": [ - "api-handler", - "service", - "utility", - "tested" - ], - "complexity": "complex" - }, - { - "id": "function:packages/server/src/local/routes/workspace-context.ts:buildWorkspaceNowBlock", - "type": "function", - "name": "buildWorkspaceNowBlock", - "filePath": "packages/server/src/local/routes/workspace-context.ts", - "lineRange": [ - 223, - 436 - ], - "summary": "Assembles the full workspace context block by aggregating memory frames, active sessions, tasks, schedules, and knowledge graph entries into a structured context object.", - "tags": [ - "utility", - "service" - ], - "complexity": "complex" - }, - { - "id": "function:packages/server/src/local/routes/workspace-context.ts:formatWorkspaceNowPrompt", - "type": "function", - "name": "formatWorkspaceNowPrompt", - "filePath": "packages/server/src/local/routes/workspace-context.ts", - "lineRange": [ - 440, - 490 - ], - "summary": "Renders the workspace context block into a formatted text prompt string suitable for injection into the agent system prompt.", - "tags": [ - "utility", - "serialization" - ], - "complexity": "moderate" - }, - { - "id": "function:packages/server/src/local/routes/workspace-context.ts:buildTimeAwareGreeting", - "type": "function", - "name": "buildTimeAwareGreeting", - "filePath": "packages/server/src/local/routes/workspace-context.ts", - "lineRange": [ - 146, - 179 - ], - "summary": "Generates a time-of-day-aware greeting string incorporating the user's name and current local time for injection into the agent context.", - "tags": [ - "utility" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/src/local/routes/workspace-templates.ts", - "type": "file", - "name": "workspace-templates.ts", - "filePath": "packages/server/src/local/routes/workspace-templates.ts", - "summary": "Workspace template management routes providing built-in templates and user-defined custom templates for pre-populating new workspaces with settings and context.", - "tags": [ - "api-handler", - "service" - ], - "complexity": "complex" - }, - { - "id": "function:packages/server/src/local/routes/workspace-templates.ts:workspaceTemplateRoutes", - "type": "function", - "name": "workspaceTemplateRoutes", - "filePath": "packages/server/src/local/routes/workspace-templates.ts", - "lineRange": [ - 286, - 471 - ], - "summary": "Registers template list, get, create-custom, update-custom, and delete-custom endpoints combining built-in and user-defined workspace templates.", - "tags": [ - "api-handler" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/src/local/routes/workspaces.ts", - "type": "file", - "name": "workspaces.ts", - "filePath": "packages/server/src/local/routes/workspaces.ts", - "summary": "Core workspace lifecycle management routes providing CRUD, rename, archive, restore, export, state management, activity tracking, and memory association operations for the workspace entity.", - "tags": [ - "api-handler", - "service", - "data-model", - "tested" - ], - "complexity": "complex" - }, - { - "id": "function:packages/server/src/local/routes/workspaces.ts:workspaceRoutes", - "type": "function", - "name": "workspaceRoutes", - "filePath": "packages/server/src/local/routes/workspaces.ts", - "lineRange": [ - 150, - 1136 - ], - "summary": "Registers all workspace management endpoints including list, create, get, update, rename, archive, restore, export, delete, state read/write, activity log, and memory context endpoints.", - "tags": [ - "api-handler" - ], - "complexity": "complex" - }, - { - "id": "function:packages/server/src/local/routes/workspaces.ts:composeWorkspaceSummary", - "type": "function", - "name": "composeWorkspaceSummary", - "filePath": "packages/server/src/local/routes/workspaces.ts", - "lineRange": [ - 31, - 75 - ], - "summary": "Builds a structured workspace summary DTO combining workspace config, recent session metadata, memory stats, and active agent state.", - "tags": [ - "utility", - "data-model" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/src/local/security-middleware.ts", - "type": "file", - "name": "security-middleware.ts", - "filePath": "packages/server/src/local/security-middleware.ts", - "summary": "Implements per-endpoint rate limiting and session timeout tracking for the Fastify sidecar, with configurable limits and automatic cleanup, exported as a Fastify plugin.", - "tags": [ - "middleware", - "security", - "service", - "tested" - ], - "complexity": "complex" - }, - { - "id": "class:packages/server/src/local/security-middleware.ts:RateLimiter", - "type": "class", - "name": "RateLimiter", - "filePath": "packages/server/src/local/security-middleware.ts", - "lineRange": [ - 66, - 163 - ], - "summary": "Sliding-window rate limiter that tracks request counts per IP/token per endpoint with configurable per-route limits and automatic stale-entry cleanup.", - "tags": [ - "security", - "middleware", - "service" - ], - "complexity": "moderate" - }, - { - "id": "class:packages/server/src/local/security-middleware.ts:SessionTimeoutTracker", - "type": "class", - "name": "SessionTimeoutTracker", - "filePath": "packages/server/src/local/security-middleware.ts", - "lineRange": [ - 173, - 233 - ], - "summary": "Tracks last-activity timestamps for active sessions and enforces configurable inactivity timeout, cleaning up stale session records automatically.", - "tags": [ - "security", - "middleware" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/src/local/service.ts", - "type": "file", - "name": "service.ts", - "filePath": "packages/server/src/local/service.ts", - "summary": "Main service bootstrap module that resolves data directories, checks first-run state, validates port availability, and orchestrates startup of the Fastify server with all route registrations and lifecycle management.", - "tags": [ - "entry-point", - "service", - "middleware", - "tested" - ], - "complexity": "complex" - }, - { - "id": "function:packages/server/src/local/service.ts:startService", - "type": "function", - "name": "startService", - "filePath": "packages/server/src/local/service.ts", - "lineRange": [ - 121, - 295 - ], - "summary": "Bootstraps the entire Fastify sidecar service: initializes middleware, registers all route plugins, starts the server, and sets up signal handlers for graceful shutdown.", - "tags": [ - "entry-point", - "service" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/src/local/services/evolution-service.ts", - "type": "file", - "name": "evolution-service.ts", - "filePath": "packages/server/src/local/services/evolution-service.ts", - "summary": "Background evolution service that periodically evaluates agent performance candidates and triggers prompt optimization cycles to continuously improve skill and persona quality.", - "tags": [ - "service", - "singleton", - "tested" - ], - "complexity": "complex" - }, - { - "id": "class:packages/server/src/local/services/evolution-service.ts:EvolutionService", - "type": "class", - "name": "EvolutionService", - "filePath": "packages/server/src/local/services/evolution-service.ts", - "lineRange": [ - 112, - 349 - ], - "summary": "Orchestrates periodic evolution ticks that enumerate skill/persona candidates, select next targets, run baseline evaluation, and trigger the iterative optimizer.", - "tags": [ - "service", - "singleton" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/src/local/services/optimizer-service.ts", - "type": "file", - "name": "optimizer-service.ts", - "filePath": "packages/server/src/local/services/optimizer-service.ts", - "summary": "Provides a singleton optimizer service factory that wraps the agent's iterative optimizer with a chat-route-aware callback for triggering prompt optimization from the API layer.", - "tags": [ - "service", - "singleton", - "factory" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/src/local/setup-connectors.ts", - "type": "file", - "name": "setup-connectors.ts", - "filePath": "packages/server/src/local/setup-connectors.ts", - "summary": "Registers all external service connector plugins (e.g., GitHub, Notion, Slack) into the Fastify server during startup.", - "tags": [ - "service", - "middleware" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/src/local/setup-crons.ts", - "type": "file", - "name": "setup-crons.ts", - "filePath": "packages/server/src/local/setup-crons.ts", - "summary": "Seeds default scheduled cron jobs (e.g., memory distillation, harvest sync) into the cron store on first run.", - "tags": [ - "service" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/src/local/signal-bus.ts", - "type": "file", - "name": "signal-bus.ts", - "filePath": "packages/server/src/local/signal-bus.ts", - "summary": "Ring-buffer signal bus for in-process WaggleDance event broadcasting, supporting subscriber fan-out and bounded memory usage via configurable buffer capacity.", - "tags": [ - "service", - "event-handler", - "singleton", - "tested" - ], - "complexity": "moderate" - }, - { - "id": "class:packages/server/src/local/signal-bus.ts:SignalBus", - "type": "class", - "name": "SignalBus", - "filePath": "packages/server/src/local/signal-bus.ts", - "lineRange": [ - 43, - 131 - ], - "summary": "Ring-buffer event bus with subscriber callbacks, a fixed-capacity circular buffer of recorded signals, and point-in-time query support for replaying recent history.", - "tags": [ - "service", - "event-handler" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/src/local/start.ts", - "type": "file", - "name": "start.ts", - "filePath": "packages/server/src/local/start.ts", - "summary": "Binary entry point that imports and invokes the service startup function, serving as the Node.js process bootstrap for the Fastify sidecar.", - "tags": [ - "entry-point" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/src/local/storage/fs-provider.ts", - "type": "file", - "name": "fs-provider.ts", - "filePath": "packages/server/src/local/storage/fs-provider.ts", - "summary": "Implements the filesystem-backed StorageProvider for workspace file operations, supporting list, read, write, delete, move, copy, mkdir, and exists with path-traversal-safe access.", - "tags": [ - "service", - "storage", - "filesystem" - ], - "complexity": "moderate" - }, - { - "id": "class:packages/server/src/local/storage/fs-provider.ts:FsStorageProvider", - "type": "class", - "name": "FsStorageProvider", - "filePath": "packages/server/src/local/storage/fs-provider.ts", - "lineRange": [ - 13, - 165 - ], - "summary": "Concrete filesystem storage provider implementing the full CRUD interface for workspace files, using safePath to prevent directory traversal attacks.", - "tags": [ - "storage", - "filesystem", - "service" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/src/local/storage/index.ts", - "type": "file", - "name": "index.ts", - "filePath": "packages/server/src/local/storage/index.ts", - "summary": "Barrel and factory module for the storage subsystem, re-exporting types/classes and providing getStorageProvider() which selects filesystem or S3 implementation based on workspace config.", - "tags": [ - "barrel", - "factory", - "storage" - ], - "complexity": "simple" - }, - { - "id": "function:packages/server/src/local/storage/index.ts:getStorageProvider", - "type": "function", - "name": "getStorageProvider", - "filePath": "packages/server/src/local/storage/index.ts", - "lineRange": [ - 27, - 73 - ], - "summary": "Factory function that returns the appropriate StorageProvider (FsStorageProvider or S3StorageProvider) based on workspace configuration and data directory.", - "tags": [ - "factory", - "storage", - "configuration" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/src/local/storage/s3-provider.ts", - "type": "file", - "name": "s3-provider.ts", - "filePath": "packages/server/src/local/storage/s3-provider.ts", - "summary": "S3-backed StorageProvider implementation that delegates file operations to an underlying S3 store, enabling cloud file storage for workspaces.", - "tags": [ - "storage", - "s3", - "service" - ], - "complexity": "simple" - }, - { - "id": "class:packages/server/src/local/storage/s3-provider.ts:S3StorageProvider", - "type": "class", - "name": "S3StorageProvider", - "filePath": "packages/server/src/local/storage/s3-provider.ts", - "lineRange": [ - 19, - 70 - ], - "summary": "StorageProvider implementation backed by an S3-compatible store, wrapping S3 file operations to conform to the project's unified storage interface.", - "tags": [ - "storage", - "s3", - "service" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/src/local/storage/security.ts", - "type": "file", - "name": "security.ts", - "filePath": "packages/server/src/local/storage/security.ts", - "summary": "Provides path-traversal prevention utilities safePath() and toRelativePath() used by all storage providers to ensure user-supplied paths cannot escape the workspace root.", - "tags": [ - "security", - "utility", - "validation" - ], - "complexity": "simple" - }, - { - "id": "function:packages/server/src/local/storage/security.ts:safePath", - "type": "function", - "name": "safePath", - "filePath": "packages/server/src/local/storage/security.ts", - "lineRange": [ - 8, - 29 - ], - "summary": "Resolves and validates a user-supplied path against the workspace root, throwing if the resolved path escapes the root directory (path traversal prevention).", - "tags": [ - "security", - "validation", - "utility" - ], - "complexity": "simple" - }, - { - "id": "function:packages/server/src/local/storage/security.ts:toRelativePath", - "type": "function", - "name": "toRelativePath", - "filePath": "packages/server/src/local/storage/security.ts", - "lineRange": [ - 32, - 35 - ], - "summary": "Converts an absolute path back to a root-relative path using forward slashes for consistent cross-platform representation.", - "tags": [ - "utility", - "path", - "cross-platform" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/src/local/storage/types.ts", - "type": "file", - "name": "types.ts", - "filePath": "packages/server/src/local/storage/types.ts", - "summary": "Defines the StorageProvider interface, FileEntry type, STANDARD_DIRS constant for required workspace directory structure, and MAX_UPLOAD_SIZE limit.", - "tags": [ - "type-definition", - "storage", - "configuration" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/src/local/utils/mime.ts", - "type": "file", - "name": "mime.ts", - "filePath": "packages/server/src/local/utils/mime.ts", - "summary": "Provides a lookup() function mapping file extensions to MIME types via a static table, used by storage providers when returning file metadata.", - "tags": [ - "utility", - "mime", - "serialization" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/src/local/waggle-dance-bridge.ts", - "type": "file", - "name": "waggle-dance-bridge.ts", - "filePath": "packages/server/src/local/waggle-dance-bridge.ts", - "summary": "Bridges the WaggleDance v2 signal bus to the legacy UI notification system by subscribing to the SignalBus and forwarding translated signals via emitWaggleSignal.", - "tags": [ - "event-handler", - "service", - "middleware", - "tested" - ], - "complexity": "moderate" - }, - { - "id": "function:packages/server/src/local/waggle-dance-bridge.ts:installWaggleDanceBridge", - "type": "function", - "name": "installWaggleDanceBridge", - "filePath": "packages/server/src/local/waggle-dance-bridge.ts", - "lineRange": [ - 120, - 143 - ], - "summary": "Installs a subscription on the provided SignalBus and translates incoming WaggleDance v2 signals to legacy waggle signal format before emitting to UI subscribers.", - "tags": [ - "event-handler", - "middleware", - "service" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/src/local/workspace-sessions.ts", - "type": "file", - "name": "workspace-sessions.ts", - "filePath": "packages/server/src/local/workspace-sessions.ts", - "summary": "Implements WorkspaceSessionManager, a lifecycle manager for per-workspace AI agent sessions including creation, pause, resume, idle eviction, and token tracking.", - "tags": [ - "service", - "session-management", - "singleton", - "tested" - ], - "complexity": "moderate" - }, - { - "id": "class:packages/server/src/local/workspace-sessions.ts:WorkspaceSessionManager", - "type": "class", - "name": "WorkspaceSessionManager", - "filePath": "packages/server/src/local/workspace-sessions.ts", - "lineRange": [ - 35, - 224 - ], - "summary": "Manages the lifecycle of workspace AI sessions, supporting session creation with mind/orchestrator/tools factories, concurrency limiting, idle eviction, and pause/resume.", - "tags": [ - "service", - "session-management", - "lifecycle" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/src/local/workspace-state.ts", - "type": "file", - "name": "workspace-state.ts", - "filePath": "packages/server/src/local/workspace-state.ts", - "summary": "Constructs and formats a rich workspace state snapshot (decisions, tasks, blockers, open questions, recent threads, awareness items) for injection into agent system prompts.", - "tags": [ - "service", - "data-model", - "serialization", - "tested" - ], - "complexity": "complex" - }, - { - "id": "function:packages/server/src/local/workspace-state.ts:buildWorkspaceState", - "type": "function", - "name": "buildWorkspaceState", - "filePath": "packages/server/src/local/workspace-state.ts", - "lineRange": [ - 234, - 311 - ], - "summary": "Aggregates workspace state from SQLite memory frames, session progress items, open questions, thread freshness, and awareness layer into a structured state object.", - "tags": [ - "data-model", - "service", - "utility" - ], - "complexity": "complex" - }, - { - "id": "function:packages/server/src/local/workspace-state.ts:formatWorkspaceStatePrompt", - "type": "function", - "name": "formatWorkspaceStatePrompt", - "filePath": "packages/server/src/local/workspace-state.ts", - "lineRange": [ - 315, - 385 - ], - "summary": "Serializes a WorkspaceState object into a structured plaintext prompt section for agent system prompt injection, covering tasks, decisions, threads, and next actions.", - "tags": [ - "serialization", - "utility", - "service" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/src/local/ws-team-client.ts", - "type": "file", - "name": "ws-team-client.ts", - "filePath": "packages/server/src/local/ws-team-client.ts", - "summary": "WebSocket client for team collaboration features, implementing reconnection logic, event handling, authentication handshake, and message dispatch for the TEAMS tier.", - "tags": [ - "service", - "event-handler", - "middleware", - "tested" - ], - "complexity": "moderate" - }, - { - "id": "class:packages/server/src/local/ws-team-client.ts:WsTeamClient", - "type": "class", - "name": "WsTeamClient", - "filePath": "packages/server/src/local/ws-team-client.ts", - "lineRange": [ - 32, - 139 - ], - "summary": "EventEmitter-based WebSocket client that manages authenticated connections to the team server with exponential-backoff reconnection and send/receive message handling.", - "tags": [ - "service", - "event-handler", - "middleware" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/src/middleware/assert-tier.ts", - "type": "file", - "name": "assert-tier.ts", - "filePath": "packages/server/src/middleware/assert-tier.ts", - "summary": "Fastify middleware providing tier enforcement for protected routes, reading the current tier from the data directory and returning 403 when tier requirements are not met.", - "tags": [ - "middleware", - "security", - "validation", - "tested" - ], - "complexity": "simple" - }, - { - "id": "function:packages/server/src/middleware/assert-tier.ts:requireTier", - "type": "function", - "name": "requireTier", - "filePath": "packages/server/src/middleware/assert-tier.ts", - "lineRange": [ - 45, - 63 - ], - "summary": "Returns a Fastify preHandler that checks the current tier against the minimum required tier, sending 403 if the check fails.", - "tags": [ - "middleware", - "security", - "validation" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/tests/backup-restore.test.ts", - "type": "file", - "name": "backup-restore.test.ts", - "filePath": "packages/server/tests/backup-restore.test.ts", - "summary": "Integration tests for the backup and restore API endpoints, verifying round-trip consistency of workspace data across backup creation and restoration.", - "tags": [ - "test", - "integration", - "api-handler" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/tests/backup-streaming.test.ts", - "type": "file", - "name": "backup-streaming.test.ts", - "filePath": "packages/server/tests/backup-streaming.test.ts", - "summary": "Tests for backup streaming behavior, validating chunked/streamed backup delivery and file enumeration correctness through the backup route.", - "tags": [ - "test", - "integration", - "api-handler" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/tests/behavioral-spec-active.test.ts", - "type": "file", - "name": "behavioral-spec-active.test.ts", - "filePath": "packages/server/tests/behavioral-spec-active.test.ts", - "summary": "Tests verifying that the agent behavioral specification contract is active and enforced at the API layer, guarding against regression of agent rule enforcement.", - "tags": [ - "test", - "integration", - "api-handler" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/tests/browse-helpers.test.ts", - "type": "file", - "name": "browse-helpers.test.ts", - "filePath": "packages/server/tests/browse-helpers.test.ts", - "summary": "Unit tests for file browser helper functions including Windows drive listing and drive detection logic.", - "tags": [ - "test", - "utility", - "cross-platform" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/tests/chat-api.test.ts", - "type": "file", - "name": "chat-api.test.ts", - "filePath": "packages/server/tests/chat-api.test.ts", - "summary": "Comprehensive integration tests for the chat API, covering SSE streaming, context windowing, authentication, and message handling across workspace sessions.", - "tags": [ - "test", - "integration", - "api-handler" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/tests/cockpit-health.test.ts", - "type": "file", - "name": "cockpit-health.test.ts", - "filePath": "packages/server/tests/cockpit-health.test.ts", - "summary": "Integration tests for the cockpit health and briefing endpoints, verifying the home briefing data structure and response correctness.", - "tags": [ - "test", - "integration", - "api-handler" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/tests/cross-platform.test.ts", - "type": "file", - "name": "cross-platform.test.ts", - "filePath": "packages/server/tests/cross-platform.test.ts", - "summary": "Tests cross-platform compatibility of path handling, file operations, and server behavior across Windows and Unix environments.", - "tags": [ - "test", - "integration", - "cross-platform" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/tests/d11-datadir-tier.test.ts", - "type": "file", - "name": "d11-datadir-tier.test.ts", - "filePath": "packages/server/tests/d11-datadir-tier.test.ts", - "summary": "Tests the D11 requirement that tier information is correctly persisted in and read from the data directory config file, and enforced by the assert-tier middleware.", - "tags": [ - "test", - "integration", - "middleware" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/tests/data-erase-helpers.test.ts", - "type": "file", - "name": "data-erase-helpers.test.ts", - "filePath": "packages/server/tests/data-erase-helpers.test.ts", - "summary": "Unit tests for data erasure helper functions, covering confirmation phrase validation, directory snapshotting, safety assertion before wipe, and marker file writing/reading.", - "tags": [ - "test", - "utility", - "security" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/tests/data-erase.test.ts", - "type": "file", - "name": "data-erase.test.ts", - "filePath": "packages/server/tests/data-erase.test.ts", - "summary": "Integration tests for the data erase endpoint, validating the full erasure flow including confirmation headers, marker file creation, and actual directory wipe via the API.", - "tags": [ - "test", - "integration", - "security" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/tests/data-export.test.ts", - "type": "file", - "name": "data-export.test.ts", - "filePath": "packages/server/tests/data-export.test.ts", - "summary": "Integration tests for the data export endpoint, verifying ZIP archive generation, file name listing, and content extraction from the exported archive.", - "tags": [ - "test", - "integration", - "api-handler" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/tests/evolution-routes.test.ts", - "type": "file", - "name": "evolution-routes.test.ts", - "filePath": "packages/server/tests/evolution-routes.test.ts", - "summary": "Integration tests for evolution management routes, covering CRUD operations on evolution runs and querying run history through the server API.", - "tags": [ - "test", - "integration", - "api-handler" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/tests/evolution-run-route.test.ts", - "type": "file", - "name": "evolution-run-route.test.ts", - "filePath": "packages/server/tests/evolution-run-route.test.ts", - "summary": "End-to-end tests for the evolution run execution route, using stub LLM factories to simulate improvement iterations and SSE event streaming during evolution runs.", - "tags": [ - "test", - "integration", - "api-handler" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/tests/first-run.test.ts", - "type": "file", - "name": "first-run.test.ts", - "filePath": "packages/server/tests/first-run.test.ts", - "summary": "Tests for first-run detection and initialization flow, verifying that the service correctly identifies a clean data directory and performs required setup steps.", - "tags": [ - "test", - "integration", - "service" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/tests/ingest-api.test.ts", - "type": "file", - "name": "ingest-api.test.ts", - "filePath": "packages/server/tests/ingest-api.test.ts", - "summary": "Integration tests for the memory ingestion API, verifying upload of various content types (URLs, text, files) and confirmation of their storage in the workspace memory.", - "tags": [ - "test", - "integration", - "api-handler" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/tests/litellm-api.test.ts", - "type": "file", - "name": "litellm-api.test.ts", - "filePath": "packages/server/tests/litellm-api.test.ts", - "summary": "Integration tests for the LiteLLM proxy API routes, testing model listing, key configuration, status checks, and lifecycle management of the LiteLLM sidecar.", - "tags": [ - "test", - "integration", - "api-handler" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/tests/llm-key-probe.test.ts", - "type": "file", - "name": "llm-key-probe.test.ts", - "filePath": "packages/server/tests/llm-key-probe.test.ts", - "summary": "Unit tests for the LLM API key validation and probing logic, using fake fetch implementations to test key format validation and provider-specific probe behavior.", - "tags": [ - "test", - "utility", - "validation" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/tests/local-mode.test.ts", - "type": "file", - "name": "local-mode.test.ts", - "filePath": "packages/server/tests/local-mode.test.ts", - "summary": "Integration tests for local (non-cloud) server mode, covering workspace creation, agent interaction, memory operations, and session management in the local deployment context.", - "tags": [ - "test", - "integration", - "service" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/tests/local-scheduler.test.ts", - "type": "file", - "name": "local-scheduler.test.ts", - "filePath": "packages/server/tests/local-scheduler.test.ts", - "summary": "Unit tests for the LocalScheduler cron system, verifying job scheduling, consecutive-failure tracking, execution callbacks, and pause/resume behavior.", - "tags": [ - "test", - "service", - "utility" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/tests/local/agents.test.ts", - "type": "file", - "name": "agents.test.ts", - "filePath": "packages/server/tests/local/agents.test.ts", - "summary": "Integration tests for the agent entity management routes and the agent run route, including creation, update, deletion, and run invocation with spawn tracking.", - "tags": [ - "test", - "integration", - "api-handler" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/tests/local/ambiguity-detection.test.ts", - "type": "file", - "name": "ambiguity-detection.test.ts", - "filePath": "packages/server/tests/local/ambiguity-detection.test.ts", - "summary": "Unit tests for the message ambiguity detection logic in the chat route, verifying correct identification of ambiguous user messages that should prompt clarification.", - "tags": [ - "test", - "utility", - "validation" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/tests/local/anthropic-proxy.test.ts", - "type": "file", - "name": "anthropic-proxy.test.ts", - "filePath": "packages/server/tests/local/anthropic-proxy.test.ts", - "summary": "Integration tests for the Anthropic API proxy route, verifying request forwarding, authentication header injection, and response pass-through behavior.", - "tags": [ - "test", - "integration", - "api-handler" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/tests/local/artifacts.test.ts", - "type": "file", - "name": "artifacts.test.ts", - "filePath": "packages/server/tests/local/artifacts.test.ts", - "summary": "Integration tests for artifact management routes, verifying creation, retrieval, update, deletion, and search-related operations on agent-produced artifacts.", - "tags": [ - "test", - "integration", - "api-handler" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/tests/local/automations.test.ts", - "type": "file", - "name": "automations.test.ts", - "filePath": "packages/server/tests/local/automations.test.ts", - "summary": "Integration tests for the automations and cron scheduling routes, verifying automation CRUD, trigger execution, notification emission, and cron job management.", - "tags": [ - "test", - "integration", - "api-handler" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/tests/local/chat-governance.test.ts", - "type": "file", - "name": "chat-governance.test.ts", - "filePath": "packages/server/tests/local/chat-governance.test.ts", - "summary": "Unit tests for the chat governance route, verifying that permission checks (getGovernancePermissions) correctly gate regulated content and enforce tier-based access controls.", - "tags": [ - "test", - "api-handler", - "security", - "chat" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/tests/local/chat-helpers.test.ts", - "type": "file", - "name": "chat-helpers.test.ts", - "filePath": "packages/server/tests/local/chat-helpers.test.ts", - "summary": "Comprehensive tests for chat helper utilities including context window management, schedule suggestion detection, ambiguity prompting, and tool-use description formatting.", - "tags": [ - "test", - "utility", - "chat", - "context-management" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/tests/local/chat-persistence.test.ts", - "type": "file", - "name": "chat-persistence.test.ts", - "filePath": "packages/server/tests/local/chat-persistence.test.ts", - "summary": "Tests for chat message persistence (persistMessage and loadSessionMessages), verifying SQLite-backed session storage correctness and message ordering.", - "tags": [ - "test", - "persistence", - "chat", - "database" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/tests/local/compliance-templates.test.ts", - "type": "file", - "name": "compliance-templates.test.ts", - "filePath": "packages/server/tests/local/compliance-templates.test.ts", - "summary": "Integration tests for compliance template routes via the full local server, verifying template retrieval and rendering against the compliance reporting module.", - "tags": [ - "test", - "api-handler", - "compliance", - "integration" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/tests/local/connectors-phase4.test.ts", - "type": "file", - "name": "connectors-phase4.test.ts", - "filePath": "packages/server/tests/local/connectors-phase4.test.ts", - "summary": "Phase-4 connector route tests that verify tier-based connector capacity enforcement (connectorCapExceeded) and CRUD operations on connector registrations.", - "tags": [ - "test", - "api-handler", - "connectors", - "tier-enforcement" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/tests/local/cost.test.ts", - "type": "file", - "name": "cost.test.ts", - "filePath": "packages/server/tests/local/cost.test.ts", - "summary": "Integration tests for cost-tracking API routes, verifying that LLM usage cost records are properly persisted and retrieved from the local server.", - "tags": [ - "test", - "api-handler", - "cost-tracking", - "integration" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/tests/local/cron-error-handling.test.ts", - "type": "file", - "name": "cron-error-handling.test.ts", - "filePath": "packages/server/tests/local/cron-error-handling.test.ts", - "summary": "Tests for the LocalScheduler cron execution engine, specifically verifying consecutive failure capping (MAX_CONSECUTIVE_FAILURES) and error recovery behavior.", - "tags": [ - "test", - "service", - "cron", - "error-handling" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/tests/local/custom-workflows.test.ts", - "type": "file", - "name": "custom-workflows.test.ts", - "filePath": "packages/server/tests/local/custom-workflows.test.ts", - "summary": "Tests for custom workflow route handlers, verifying creation, listing, and execution of user-defined agent workflows stored in the local server.", - "tags": [ - "test", - "api-handler", - "workflows", - "agent" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/tests/local/extend.test.ts", - "type": "file", - "name": "extend.test.ts", - "filePath": "packages/server/tests/local/extend.test.ts", - "summary": "Tests for the Extend and Marketplace route handlers, verifying skill/connector install audit tracking and tier-gated extension management.", - "tags": [ - "test", - "api-handler", - "marketplace", - "tier-enforcement" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/tests/local/feedback-routes.test.ts", - "type": "file", - "name": "feedback-routes.test.ts", - "filePath": "packages/server/tests/local/feedback-routes.test.ts", - "summary": "Tests for the feedback route handler, verifying user feedback submission storage and retrieval with proper validation.", - "tags": [ - "test", - "api-handler", - "feedback" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/tests/local/files-indexer.test.ts", - "type": "file", - "name": "files-indexer.test.ts", - "filePath": "packages/server/tests/local/files-indexer.test.ts", - "summary": "Integration tests for the file indexer functionality, verifying that uploaded files are correctly indexed into the FrameStore for memory search.", - "tags": [ - "test", - "integration", - "file-storage", - "memory" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/tests/local/files.test.ts", - "type": "file", - "name": "files.test.ts", - "filePath": "packages/server/tests/local/files.test.ts", - "summary": "Comprehensive integration tests for the file storage routes covering upload, download, listing, deletion, and directory constraints enforced by STANDARD_DIRS and MAX_UPLOAD_SIZE.", - "tags": [ - "test", - "api-handler", - "file-storage", - "integration" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/tests/local/fleet.test.ts", - "type": "file", - "name": "fleet.test.ts", - "filePath": "packages/server/tests/local/fleet.test.ts", - "summary": "Tests for the fleet route handler, verifying multi-workspace session management via WorkspaceSessionManager and fleet status endpoints.", - "tags": [ - "test", - "api-handler", - "workspace", - "session-management" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/tests/local/harvest-cache.test.ts", - "type": "file", - "name": "harvest-cache.test.ts", - "filePath": "packages/server/tests/local/harvest-cache.test.ts", - "summary": "Unit tests for harvest cache utilities (writeHarvestCache, readHarvestCache) verifying cache hit/miss behavior and cache invalidation.", - "tags": [ - "test", - "utility", - "harvest", - "cache" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/tests/local/harvest-classify.test.ts", - "type": "file", - "name": "harvest-classify.test.ts", - "filePath": "packages/server/tests/local/harvest-classify.test.ts", - "summary": "Tests for harvest classification logic (importItemTypeToMemoryKind, harvestConfidence), verifying correct mapping of import item types to memory frame kinds.", - "tags": [ - "test", - "utility", - "harvest", - "classification" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/tests/local/harvest-identity-defenses.test.ts", - "type": "file", - "name": "harvest-identity-defenses.test.ts", - "filePath": "packages/server/tests/local/harvest-identity-defenses.test.ts", - "summary": "Security-focused tests for the harvest route, verifying input sanitization defenses including XML injection (escapeXml) and malformed suggestion shape rejection.", - "tags": [ - "test", - "security", - "harvest", - "validation" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/tests/local/harvest-identity.test.ts", - "type": "file", - "name": "harvest-identity.test.ts", - "filePath": "packages/server/tests/local/harvest-identity.test.ts", - "summary": "Integration tests for harvest identity extraction, verifying that personal facts from ingested content are correctly stored in the identity layer.", - "tags": [ - "test", - "integration", - "harvest", - "identity" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/tests/local/harvest-runs.test.ts", - "type": "file", - "name": "harvest-runs.test.ts", - "filePath": "packages/server/tests/local/harvest-runs.test.ts", - "summary": "Integration tests for the harvest pipeline run tracking, verifying that ingestion job records are created, updated, and queryable via the server API.", - "tags": [ - "test", - "integration", - "harvest", - "pipeline" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/tests/local/home.test.ts", - "type": "file", - "name": "home.test.ts", - "filePath": "packages/server/tests/local/home.test.ts", - "summary": "Tests for home dashboard routes including priority-ranked workspace card display (applyPriorityRanking), personalized greeting generation, and memory-center integration.", - "tags": [ - "test", - "api-handler", - "home-dashboard", - "workspace" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/tests/local/identity.test.ts", - "type": "file", - "name": "identity.test.ts", - "filePath": "packages/server/tests/local/identity.test.ts", - "summary": "Tests for the identity route handler, verifying CRUD operations on personal identity facts stored in the memory substrate.", - "tags": [ - "test", - "api-handler", - "identity", - "memory" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/tests/local/import.test.ts", - "type": "file", - "name": "import.test.ts", - "filePath": "packages/server/tests/local/import.test.ts", - "summary": "Integration tests for the memory import route, verifying that bulk-imported frames from external conversations are correctly ingested and deduped.", - "tags": [ - "test", - "integration", - "import", - "memory" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/tests/local/knowledge-graph-projection.test.ts", - "type": "file", - "name": "knowledge-graph-projection.test.ts", - "filePath": "packages/server/tests/local/knowledge-graph-projection.test.ts", - "summary": "Tests for the knowledge graph route handler, verifying entity projection queries and relationship traversal in the KnowledgeGraph substrate.", - "tags": [ - "test", - "api-handler", - "knowledge-graph", - "memory" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/tests/local/mcp-config.test.ts", - "type": "file", - "name": "mcp-config.test.ts", - "filePath": "packages/server/tests/local/mcp-config.test.ts", - "summary": "Unit tests for MCP configuration management (loadMcpConfig, saveMcpServerEntry, validateMcpEntry, removeMcpServerEntry), verifying JSON file persistence and validation.", - "tags": [ - "test", - "utility", - "mcp", - "configuration" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/tests/local/mcps.test.ts", - "type": "file", - "name": "mcps.test.ts", - "filePath": "packages/server/tests/local/mcps.test.ts", - "summary": "Comprehensive tests for MCP server management routes covering stdio process spawning, install/uninstall from marketplace, injection-defense against malicious MCP names, and runtime config population.", - "tags": [ - "test", - "api-handler", - "mcp", - "security" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/tests/local/memory-center.test.ts", - "type": "file", - "name": "memory-center.test.ts", - "filePath": "packages/server/tests/local/memory-center.test.ts", - "summary": "Comprehensive tests for the memory center route (memoryCenterRoutes, normalizeToMemory, sanitizeFrameContent), covering creation, listing, updating, deletion, and workspace-scoping of memory frames.", - "tags": [ - "test", - "api-handler", - "memory", - "integration" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/tests/local/memory-lane-cron.test.ts", - "type": "file", - "name": "memory-lane-cron.test.ts", - "filePath": "packages/server/tests/local/memory-lane-cron.test.ts", - "summary": "Tests for the memory lane cron job (runMemoryLaneExtraction), verifying that grouped memory summaries are generated from FrameStore contents via a mocked LLM.", - "tags": [ - "test", - "service", - "memory", - "cron" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/tests/local/memory-stats-isolation.test.ts", - "type": "file", - "name": "memory-stats-isolation.test.ts", - "filePath": "packages/server/tests/local/memory-stats-isolation.test.ts", - "summary": "Tests verifying that memory statistics endpoints only return counts scoped to the requesting workspace, enforcing the mind-isolation contract across multiple seeded workspaces.", - "tags": [ - "test", - "api-handler", - "memory", - "isolation" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/tests/local/monthly-assessment.test.ts", - "type": "file", - "name": "monthly-assessment.test.ts", - "filePath": "packages/server/tests/local/monthly-assessment.test.ts", - "summary": "Tests for monthly assessment generation (generateMonthlyAssessment, saveAssessmentToMind), verifying LLM-backed personal reflections are persisted correctly.", - "tags": [ - "test", - "service", - "memory", - "assessment" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/tests/local/network-auth.test.ts", - "type": "file", - "name": "network-auth.test.ts", - "filePath": "packages/server/tests/local/network-auth.test.ts", - "summary": "Security tests for network-level authentication including CORS origin validation, host-header allow-listing, loopback bind detection, rate limiting, and local-origin guards.", - "tags": [ - "test", - "security", - "middleware", - "cors" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/tests/local/oauth-callback-escaping.test.ts", - "type": "file", - "name": "oauth-callback-escaping.test.ts", - "filePath": "packages/server/tests/local/oauth-callback-escaping.test.ts", - "summary": "Security tests for the OAuth callback route, verifying that redirect URLs are properly escaped to prevent open-redirect and injection attacks.", - "tags": [ - "test", - "security", - "oauth", - "validation" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/tests/local/onboarding-status.test.ts", - "type": "file", - "name": "onboarding-status.test.ts", - "filePath": "packages/server/tests/local/onboarding-status.test.ts", - "summary": "Tests for the onboarding route handler, verifying step completion tracking and the status endpoint that drives the frontend onboarding wizard.", - "tags": [ - "test", - "api-handler", - "onboarding" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/tests/local/p5-skill-governance.test.ts", - "type": "file", - "name": "p5-skill-governance.test.ts", - "filePath": "packages/server/tests/local/p5-skill-governance.test.ts", - "summary": "Phase-5 tests for skill governance routes, verifying that skill installation, approval workflows, and provenance tracking (agent·review badge) are enforced correctly.", - "tags": [ - "test", - "api-handler", - "skills", - "governance" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/tests/local/personas-routes.test.ts", - "type": "file", - "name": "personas-routes.test.ts", - "filePath": "packages/server/tests/local/personas-routes.test.ts", - "summary": "Tests for the personas route handler, verifying CRUD operations for custom agent persona definitions stored on the local server.", - "tags": [ - "test", - "api-handler", - "personas", - "agent" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/tests/local/phase2-traversal-backup.test.ts", - "type": "file", - "name": "phase2-traversal-backup.test.ts", - "filePath": "packages/server/tests/local/phase2-traversal-backup.test.ts", - "summary": "Security-focused tests for the backup route (backupRoutes), verifying path-traversal defenses by constructing crafted backup archives with relative path components.", - "tags": [ - "test", - "security", - "backup", - "path-traversal" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/tests/local/phase2-traversal-chat.test.ts", - "type": "file", - "name": "phase2-traversal-chat.test.ts", - "filePath": "packages/server/tests/local/phase2-traversal-chat.test.ts", - "summary": "Security-focused integration tests for the chat persistence route, verifying path-traversal and injection defenses in session message storage and loading.", - "tags": [ - "test", - "security", - "chat", - "path-traversal" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/tests/local/phase2-traversal-documents.test.ts", - "type": "file", - "name": "phase2-traversal-documents.test.ts", - "filePath": "packages/server/tests/local/phase2-traversal-documents.test.ts", - "summary": "Integration tests for the document routes, verifying path-traversal prevention and CRUD operations on workspace documents via a minimal Fastify test server.", - "tags": [ - "test", - "api-handler", - "security", - "integration" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/tests/local/phase2-traversal-ingest.test.ts", - "type": "file", - "name": "phase2-traversal-ingest.test.ts", - "filePath": "packages/server/tests/local/phase2-traversal-ingest.test.ts", - "summary": "Integration tests for the ingest route, covering path-traversal attack prevention and file registry updates when harvesting documents into the memory substrate.", - "tags": [ - "test", - "security", - "api-handler", - "integration" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/tests/local/phase2-traversal-tasks.test.ts", - "type": "file", - "name": "phase2-traversal-tasks.test.ts", - "filePath": "packages/server/tests/local/phase2-traversal-tasks.test.ts", - "summary": "Integration tests for the task routes, verifying path-traversal defenses and task CRUD operations against a minimal Fastify server with a decorated data directory.", - "tags": [ - "test", - "security", - "api-handler", - "integration" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/tests/local/phase2-traversal-workspace-context.test.ts", - "type": "file", - "name": "phase2-traversal-workspace-context.test.ts", - "filePath": "packages/server/tests/local/phase2-traversal-workspace-context.test.ts", - "summary": "Unit tests for workspace-context utilities such as greeting builders and schedule formatters, ensuring correct output shapes and edge-case handling.", - "tags": [ - "test", - "utility", - "integration" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/tests/local/phase4-harvest-embedder.test.ts", - "type": "file", - "name": "phase4-harvest-embedder.test.ts", - "filePath": "packages/server/tests/local/phase4-harvest-embedder.test.ts", - "summary": "Integration tests for the harvest embedding pipeline, verifying that committing harvested content through the server routes persists vector rows in the SQLite memory database.", - "tags": [ - "test", - "integration", - "data-model", - "service" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/tests/local/phase5-connector-health.test.ts", - "type": "file", - "name": "phase5-connector-health.test.ts", - "filePath": "packages/server/tests/local/phase5-connector-health.test.ts", - "summary": "Integration tests for connector-health endpoints, covering error propagation when the connector registry throws and tier-cap enforcement on connector operations.", - "tags": [ - "test", - "api-handler", - "integration", - "service" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/tests/local/phase5-cron-parse.test.ts", - "type": "file", - "name": "phase5-cron-parse.test.ts", - "filePath": "packages/server/tests/local/phase5-cron-parse.test.ts", - "summary": "Unit and integration tests for the cron-schedule parsing routes, seeding schedule rows and verifying that cron expressions are correctly parsed and stored.", - "tags": [ - "test", - "utility", - "integration" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/tests/local/phase5-files-upload-limit.test.ts", - "type": "file", - "name": "phase5-files-upload-limit.test.ts", - "filePath": "packages/server/tests/local/phase5-files-upload-limit.test.ts", - "summary": "Tests for file upload size enforcement, verifying that requests exceeding the maximum body bytes threshold are rejected with the expected error.", - "tags": [ - "test", - "validation", - "api-handler" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/tests/local/providers.test.ts", - "type": "file", - "name": "providers.test.ts", - "filePath": "packages/server/tests/local/providers.test.ts", - "summary": "Integration tests for LLM provider management routes, covering listing, adding, and removing provider configurations as well as key validation flows.", - "tags": [ - "test", - "api-handler", - "integration", - "service" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/tests/local/security-middleware.test.ts", - "type": "file", - "name": "security-middleware.test.ts", - "filePath": "packages/server/tests/local/security-middleware.test.ts", - "summary": "Comprehensive tests for the security middleware layer, exercising rate limiting, host-header validation, session-token auth, and SSE endpoint protection across many scenarios.", - "tags": [ - "test", - "security", - "middleware", - "integration" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/tests/local/session-timeout.test.ts", - "type": "file", - "name": "session-timeout.test.ts", - "filePath": "packages/server/tests/local/session-timeout.test.ts", - "summary": "Focused tests for the session-timeout tracker within the security middleware, verifying inactivity detection, token expiry, and renewal logic.", - "tags": [ - "test", - "security", - "middleware" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/tests/local/settings-permissions.test.ts", - "type": "file", - "name": "settings-permissions.test.ts", - "filePath": "packages/server/tests/local/settings-permissions.test.ts", - "summary": "Integration tests for settings and permissions routes, verifying that permission reads, writes, and tier-gated access behave correctly through the local server.", - "tags": [ - "test", - "api-handler", - "integration", - "security" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/tests/local/skills-phase3.test.ts", - "type": "file", - "name": "skills-phase3.test.ts", - "filePath": "packages/server/tests/local/skills-phase3.test.ts", - "summary": "Phase-3 integration tests for skill CRUD routes and alias resolution, confirming that skills can be created, listed, aliased, and deleted via the API.", - "tags": [ - "test", - "api-handler", - "integration" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/tests/local/sse-resilience.test.ts", - "type": "file", - "name": "sse-resilience.test.ts", - "filePath": "packages/server/tests/local/sse-resilience.test.ts", - "summary": "Resilience tests for Server-Sent Events notification channels, verifying reconnect behavior, event deduplication, and subagent/workflow notification delivery.", - "tags": [ - "test", - "integration", - "event-handler", - "service" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/tests/local/suggestion-sanitize.test.ts", - "type": "file", - "name": "suggestion-sanitize.test.ts", - "filePath": "packages/server/tests/local/suggestion-sanitize.test.ts", - "summary": "Unit tests for the suggestion sanitization helper, ensuring that extracted session content is cleaned of unwanted tokens and tool output patterns.", - "tags": [ - "test", - "utility", - "validation" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/tests/local/team-integration.test.ts", - "type": "file", - "name": "team-integration.test.ts", - "filePath": "packages/server/tests/local/team-integration.test.ts", - "summary": "Integration tests for team-workspace features, verifying that team-config tokens are honored, audit events emitted, and multi-seat access controls enforced.", - "tags": [ - "test", - "integration", - "api-handler", - "service" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/tests/local/telegram.test.ts", - "type": "file", - "name": "telegram.test.ts", - "filePath": "packages/server/tests/local/telegram.test.ts", - "summary": "Tests for the Telegram notification route, validating bot-token and chat-ID patterns, message delivery to a fake Telegram server, and error handling for invalid credentials.", - "tags": [ - "test", - "integration", - "api-handler" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/tests/local/vault-routes.test.ts", - "type": "file", - "name": "vault-routes.test.ts", - "filePath": "packages/server/tests/local/vault-routes.test.ts", - "summary": "Integration tests for the vault secret-storage routes, verifying get/set/delete operations and access-control enforcement via a test Fastify server.", - "tags": [ - "test", - "security", - "api-handler", - "integration" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/tests/local/w43-harvest-temporal.test.ts", - "type": "file", - "name": "w43-harvest-temporal.test.ts", - "filePath": "packages/server/tests/local/w43-harvest-temporal.test.ts", - "summary": "Regression tests for the W4.3 temporal-date resolution in the harvest pipeline, confirming that conversation timestamps are correctly extracted and stored as frame dates.", - "tags": [ - "test", - "integration", - "data-model" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/tests/local/w46-harvest-raw-turns.test.ts", - "type": "file", - "name": "w46-harvest-raw-turns.test.ts", - "filePath": "packages/server/tests/local/w46-harvest-raw-turns.test.ts", - "summary": "Tests for W4.6 raw-turn harvesting, verifying that multi-turn conversation content is chunked into individual memory frames and stored with correct role attribution.", - "tags": [ - "test", - "integration", - "data-model" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/tests/local/wiki-mock-guard.test.ts", - "type": "file", - "name": "wiki-mock-guard.test.ts", - "filePath": "packages/server/tests/local/wiki-mock-guard.test.ts", - "summary": "Tests that wiki compilation routes are properly guarded, verifying that mock mode and production guards correctly control access to wiki-related endpoints.", - "tags": [ - "test", - "integration", - "api-handler" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/tests/local/workspace-sessions.test.ts", - "type": "file", - "name": "workspace-sessions.test.ts", - "filePath": "packages/server/tests/local/workspace-sessions.test.ts", - "summary": "Unit tests for the WorkspaceSessionManager class, verifying session creation, agent spawning, tool injection, orchestrator wiring, and session teardown lifecycle.", - "tags": [ - "test", - "service", - "integration" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/tests/local/workspaces-lifecycle.test.ts", - "type": "file", - "name": "workspaces-lifecycle.test.ts", - "filePath": "packages/server/tests/local/workspaces-lifecycle.test.ts", - "summary": "Integration tests for workspace lifecycle routes including create, rename, archive, restore, and delete, verifying correct state transitions and freshness computation.", - "tags": [ - "test", - "api-handler", - "integration" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/tests/local/ws-team-client.test.ts", - "type": "file", - "name": "ws-team-client.test.ts", - "filePath": "packages/server/tests/local/ws-team-client.test.ts", - "summary": "Unit tests for the WsTeamClient WebSocket client, verifying connection establishment, message dispatch, reconnect logic, and event emission using a mock WebSocket implementation.", - "tags": [ - "test", - "service", - "event-handler" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/tests/offline-mode.test.ts", - "type": "file", - "name": "offline-mode.test.ts", - "filePath": "packages/server/tests/offline-mode.test.ts", - "summary": "Integration tests for the OfflineManager, verifying that the server correctly queues actions, surfaces offline status, and replays queued operations when connectivity is restored.", - "tags": [ - "test", - "integration", - "service" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/tests/performance/benchmarks.test.ts", - "type": "file", - "name": "benchmarks.test.ts", - "filePath": "packages/server/tests/performance/benchmarks.test.ts", - "summary": "Performance benchmark tests measuring latency and throughput for key server operations including memory ingestion, vector search, and API request handling under load.", - "tags": [ - "test", - "performance", - "integration" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/tests/persona-tool-filter.test.ts", - "type": "file", - "name": "persona-tool-filter.test.ts", - "filePath": "packages/server/tests/persona-tool-filter.test.ts", - "summary": "Unit tests for persona tool filtering, verifying that applyPersonaToolFilter correctly enforces allowlists, denylists, and read-only constraints for different agent personas.", - "tags": [ - "test", - "utility", - "middleware" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/tests/plugin-autoload.test.ts", - "type": "file", - "name": "plugin-autoload.test.ts", - "filePath": "packages/server/tests/plugin-autoload.test.ts", - "summary": "Integration tests for plugin auto-discovery and loading, verifying that the local server registers plugins from the data directory and exposes them via the capability API.", - "tags": [ - "test", - "integration", - "service" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/tests/proactive-handlers.test.ts", - "type": "file", - "name": "proactive-handlers.test.ts", - "filePath": "packages/server/tests/proactive-handlers.test.ts", - "summary": "Unit tests for proactive background handlers such as morning briefing generation, stale workspace detection, pending task checks, and capability suggestions.", - "tags": [ - "test", - "service", - "utility" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/tests/routes/agent-search.test.ts", - "type": "file", - "name": "agent-search.test.ts", - "filePath": "packages/server/tests/routes/agent-search.test.ts", - "summary": "Unit and integration tests for the agent search route, exercising tokenization, connector scoring, engine annotation, and the three-up recommendation selection algorithm.", - "tags": [ - "test", - "api-handler", - "utility" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/tests/routes/approval-flow.test.ts", - "type": "file", - "name": "approval-flow.test.ts", - "filePath": "packages/server/tests/routes/approval-flow.test.ts", - "summary": "Integration tests for the agent action approval workflow, verifying that pending approvals are queued, listed, approved, and rejected through the API with correct state transitions.", - "tags": [ - "test", - "api-handler", - "integration" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/tests/routes/capabilities.test.ts", - "type": "file", - "name": "capabilities.test.ts", - "filePath": "packages/server/tests/routes/capabilities.test.ts", - "summary": "Integration tests for the capabilities management routes, verifying install, uninstall, list, and audit operations on agent capabilities with tier-based access control.", - "tags": [ - "test", - "api-handler", - "integration" - ], - "complexity": "complex" - }, - { - "id": "file:packages/server/tests/routes/capability-packs.test.ts", - "type": "file", - "name": "capability-packs.test.ts", - "filePath": "packages/server/tests/routes/capability-packs.test.ts", - "summary": "Integration tests for capability pack installation and management, ensuring that pack bundles install constituent capabilities and that pack listings reflect correct state.", - "tags": [ - "test", - "api-handler", - "integration" - ], - "complexity": "simple" - }, - { - "id": "file:packages/server/tests/routes/commands.test.ts", - "type": "file", - "name": "commands.test.ts", - "filePath": "packages/server/tests/routes/commands.test.ts", - "summary": "Integration tests for the quick-command and Win+K routes, verifying command suggestions, recent-command tracking, and context-aware command filtering.", - "tags": [ - "test", - "api-handler", - "integration" - ], - "complexity": "moderate" - }, - { - "id": "file:packages/server/tests/routes/connectors-tier.test.ts", - "type": "file", - "name": "connectors-tier.test.ts", - "filePath": "packages/server/tests/routes/connectors-tier.test.ts", - "summary": "Focused tests for tier-cap enforcement on connector routes, verifying that FREE-tier users are rejected when attempting operations beyond their allowance.", - "tags": [ - "test", - "security", - "api-handler" - ], - "complexity": "simple" - }, - { - "id": "file:apps/web/src/components/NavLink.tsx", - "type": "file", - "name": "NavLink.tsx", - "filePath": "apps/web/src/components/NavLink.tsx", - "summary": "Provides a styled NavLink component that integrates with the router, applying active and hover styles via the design system's `cn` utility.", - "tags": [ - "component", - "navigation", - "utility" - ], - "complexity": "simple" - }, - { - "id": "file:apps/web/src/components/os/apps/LauncherApp.test.tsx", - "type": "file", - "name": "LauncherApp.test.tsx", - "filePath": "apps/web/src/components/os/apps/LauncherApp.test.tsx", - "summary": "Vitest test suite exercising the LauncherApp component's rendering and interaction behaviors including tool detection, launch, and hook management.", - "tags": [ - "test", - "component", - "launcher" - ], - "complexity": "moderate" - }, - { - "id": "file:apps/web/src/components/os/apps/LauncherApp.tsx", - "type": "file", - "name": "LauncherApp.tsx", - "filePath": "apps/web/src/components/os/apps/LauncherApp.tsx", - "summary": "Primary AI-tool launcher surface that detects installed AI coding tools (claude-code, cursor, codex, etc.), manages hooks, launches them with workspace context, and tracks running processes via polling.", - "tags": [ - "component", - "launcher", - "service", - "api-handler", - "tested" - ], - "complexity": "complex", - "languageNotes": "Uses `useCallback`+`useEffect`+`setInterval` polling pattern to keep running-tool state fresh; MemorySharingView is a secondary sub-component defined in the same file." - }, - { - "id": "function:apps/web/src/components/os/apps/LauncherApp.tsx:LauncherApp", - "type": "function", - "name": "LauncherApp", - "filePath": "apps/web/src/components/os/apps/LauncherApp.tsx", - "lineRange": [ - 98, - 565 - ], - "summary": "Main React component that orchestrates AI tool detection, hook installation/removal, process tracking, and launch-with-prompt UX across a tabbed launcher interface.", - "tags": [ - "component", - "launcher", - "event-handler" - ], - "complexity": "complex" - }, - { - "id": "function:apps/web/src/components/os/apps/LauncherApp.tsx:MemorySharingView", - "type": "function", - "name": "MemorySharingView", - "filePath": "apps/web/src/components/os/apps/LauncherApp.tsx", - "lineRange": [ - 639, - 743 - ], - "summary": "Sub-component rendering an explainer view of Waggle's memory-sharing flow between AI tools, showing step cards and flow nodes.", - "tags": [ - "component", - "documentation" - ], - "complexity": "moderate" - }, - { - "id": "file:apps/web/src/components/os/apps/MissionControlApp.tsx", - "type": "file", - "name": "MissionControlApp.tsx", - "filePath": "apps/web/src/components/os/apps/MissionControlApp.tsx", - "summary": "Fleet/team management cockpit that polls the adapter for active agent sessions, team members, and activity, allowing fleet-level actions like pause and terminate.", - "tags": [ - "component", - "service", - "api-handler" - ], - "complexity": "complex" - }, - { - "id": "function:apps/web/src/components/os/apps/MissionControlApp.tsx:MissionControlApp", - "type": "function", - "name": "MissionControlApp", - "filePath": "apps/web/src/components/os/apps/MissionControlApp.tsx", - "lineRange": [ - 36, - 278 - ], - "summary": "React component displaying a tabbed view of running agent fleet, team members, and recent activity with per-session controls and auto-refresh polling.", - "tags": [ - "component", - "api-handler", - "event-handler" - ], - "complexity": "complex" - }, - { - "id": "file:apps/web/src/components/os/apps/WaggleDanceApp.tsx", - "type": "file", - "name": "WaggleDanceApp.tsx", - "filePath": "apps/web/src/components/os/apps/WaggleDanceApp.tsx", - "summary": "Displays the WaggleDance signal feed with type-based filtering, sorted signal list, and detail panel showing signal metadata and acknowledgment action.", - "tags": [ - "component", - "service", - "event-handler" - ], - "complexity": "moderate" - }, - { - "id": "function:apps/web/src/components/os/apps/WaggleDanceApp.tsx:WaggleDanceApp", - "type": "function", - "name": "WaggleDanceApp", - "filePath": "apps/web/src/components/os/apps/WaggleDanceApp.tsx", - "lineRange": [ - 33, - 199 - ], - "summary": "React component rendering the WaggleDance signal feed with filter chips, a scrollable signal list, and a side panel for signal detail and acknowledgment.", - "tags": [ - "component", - "event-handler" - ], - "complexity": "moderate" - }, - { - "id": "file:apps/web/src/components/os/apps/power/power-primitives.test.tsx", - "type": "file", - "name": "power-primitives.test.tsx", - "filePath": "apps/web/src/components/os/apps/power/power-primitives.test.tsx", - "summary": "Vitest test suite validating rendering and prop behavior of the power-primitives UI components (SurfaceRow, SurfaceToggle, RiskBadge, StatusBadge).", - "tags": [ - "test", - "component", - "validation" - ], - "complexity": "moderate" - }, - { - "id": "file:apps/web/src/components/os/apps/power/power-primitives.tsx", - "type": "file", - "name": "power-primitives.tsx", - "filePath": "apps/web/src/components/os/apps/power/power-primitives.tsx", - "summary": "Reusable UI primitives for the Power/Approvals app: SurfaceRow layout, SurfaceToggle switch, RiskBadge, StatusBadge, and a riskToneForTool utility that maps tool names to risk levels.", - "tags": [ - "component", - "utility", - "validation", - "tested" - ], - "complexity": "moderate" - }, - { - "id": "function:apps/web/src/components/os/apps/power/power-primitives.tsx:SurfaceRow", - "type": "function", - "name": "SurfaceRow", - "filePath": "apps/web/src/components/os/apps/power/power-primitives.tsx", - "lineRange": [ - 34, - 56 - ], - "summary": "Layout primitive rendering a row with leading content, title, subtitle, and optional action buttons for settings and approval surfaces.", - "tags": [ - "component", - "utility" - ], - "complexity": "simple" - }, - { - "id": "function:apps/web/src/components/os/apps/power/power-primitives.tsx:SurfaceToggle", - "type": "function", - "name": "SurfaceToggle", - "filePath": "apps/web/src/components/os/apps/power/power-primitives.tsx", - "lineRange": [ - 70, - 95 - ], - "summary": "Accessible toggle switch primitive with label, disabled state, and on-change callback used across Power feature settings rows.", - "tags": [ - "component", - "utility" - ], - "complexity": "simple" - }, - { - "id": "function:apps/web/src/components/os/apps/power/power-primitives.tsx:RiskBadge", - "type": "function", - "name": "RiskBadge", - "filePath": "apps/web/src/components/os/apps/power/power-primitives.tsx", - "lineRange": [ - 125, - 140 - ], - "summary": "Displays a color-coded risk level badge (low/medium/high/critical) with optional suffix text for tool approval surfaces.", - "tags": [ - "component", - "validation" - ], - "complexity": "simple" - }, - { - "id": "function:apps/web/src/components/os/apps/power/power-primitives.tsx:StatusBadge", - "type": "function", - "name": "StatusBadge", - "filePath": "apps/web/src/components/os/apps/power/power-primitives.tsx", - "lineRange": [ - 154, - 167 - ], - "summary": "Renders a tone-colored status badge with optional live indicator dot and children content for agent and tool status display.", - "tags": [ - "component", - "utility" - ], - "complexity": "simple" - }, - { - "id": "file:apps/web/src/components/os/warm/ActivityStream.tsx", - "type": "file", - "name": "ActivityStream.tsx", - "filePath": "apps/web/src/components/os/warm/ActivityStream.tsx", - "summary": "Collapsible activity stream component showing a summary, duration, and step-by-step breakdown of agent task execution, part of the Hive DS warm component set.", - "tags": [ - "component", - "utility" - ], - "complexity": "moderate" - }, - { - "id": "function:apps/web/src/components/os/warm/ActivityStream.tsx:ActivityStream", - "type": "function", - "name": "ActivityStream", - "filePath": "apps/web/src/components/os/warm/ActivityStream.tsx", - "lineRange": [ - 30, - 79 - ], - "summary": "Renders a toggleable accordion-style activity stream with step list, duration display, and provenance metadata for agent runs.", - "tags": [ - "component", - "event-handler" - ], - "complexity": "moderate" - }, - { - "id": "file:apps/web/src/components/os/warm/ConfidenceRing.tsx", - "type": "file", - "name": "ConfidenceRing.tsx", - "filePath": "apps/web/src/components/os/warm/ConfidenceRing.tsx", - "summary": "SVG ring chart component visualizing a confidence score (0–1) with color-coded arcs and a centered percentage label, used in memory trust displays.", - "tags": [ - "component", - "utility" - ], - "complexity": "simple" - }, - { - "id": "function:apps/web/src/components/os/warm/ConfidenceRing.tsx:ConfidenceRing", - "type": "function", - "name": "ConfidenceRing", - "filePath": "apps/web/src/components/os/warm/ConfidenceRing.tsx", - "lineRange": [ - 30, - 50 - ], - "summary": "Renders an SVG circular confidence ring with colored arc proportional to the value and a percentage label at center.", - "tags": [ - "component", - "utility" - ], - "complexity": "simple" - }, - { - "id": "file:apps/web/src/components/os/warm/DotLive.tsx", - "type": "file", - "name": "DotLive.tsx", - "filePath": "apps/web/src/components/os/warm/DotLive.tsx", - "summary": "Small animated live-indicator dot component with configurable tone color, pulse animation, and size, used to signal active/running state across the Hive DS.", - "tags": [ - "component", - "utility" - ], - "complexity": "simple" - }, - { - "id": "function:apps/web/src/components/os/warm/DotLive.tsx:DotLive", - "type": "function", - "name": "DotLive", - "filePath": "apps/web/src/components/os/warm/DotLive.tsx", - "lineRange": [ - 17, - 29 - ], - "summary": "Renders a small pulsing or static dot using tone-mapped colors to indicate live/active status.", - "tags": [ - "component", - "utility" - ], - "complexity": "simple" - }, - { - "id": "file:apps/web/src/components/os/warm/HexAvatar.tsx", - "type": "file", - "name": "HexAvatar.tsx", - "filePath": "apps/web/src/components/os/warm/HexAvatar.tsx", - "summary": "Hexagonal avatar component showing a single initial character with optional honey-gradient fill and configurable size, for agent/persona display.", - "tags": [ - "component", - "utility" - ], - "complexity": "simple" - }, - { - "id": "function:apps/web/src/components/os/warm/HexAvatar.tsx:HexAvatar", - "type": "function", - "name": "HexAvatar", - "filePath": "apps/web/src/components/os/warm/HexAvatar.tsx", - "lineRange": [ - 24, - 40 - ], - "summary": "Renders a hexagon-clipped avatar div with a first-initial label and optional honey gradient background.", - "tags": [ - "component", - "utility" - ], - "complexity": "simple" - }, - { - "id": "file:apps/web/src/components/os/warm/HexCheckTile.tsx", - "type": "file", - "name": "HexCheckTile.tsx", - "filePath": "apps/web/src/components/os/warm/HexCheckTile.tsx", - "summary": "Hexagonal tile with a checkmark icon rendered in the appropriate tone color for displaying completion or verification state.", - "tags": [ - "component", - "utility" - ], - "complexity": "simple" - }, - { - "id": "function:apps/web/src/components/os/warm/HexCheckTile.tsx:HexCheckTile", - "type": "function", - "name": "HexCheckTile", - "filePath": "apps/web/src/components/os/warm/HexCheckTile.tsx", - "lineRange": [ - 15, - 26 - ], - "summary": "Renders a hex-clipped tile with a checkmark icon scaled to the given size and colored by tone.", - "tags": [ - "component", - "utility" - ], - "complexity": "simple" - }, - { - "id": "file:apps/web/src/components/os/warm/IconTile.tsx", - "type": "file", - "name": "IconTile.tsx", - "filePath": "apps/web/src/components/os/warm/IconTile.tsx", - "summary": "Generic icon tile component for the Hive DS that renders any Lucide icon within a tone-colored hexagonal frame.", - "tags": [ - "component", - "utility" - ], - "complexity": "simple" - }, - { - "id": "function:apps/web/src/components/os/warm/IconTile.tsx:IconTile", - "type": "function", - "name": "IconTile", - "filePath": "apps/web/src/components/os/warm/IconTile.tsx", - "lineRange": [ - 16, - 27 - ], - "summary": "Renders a hex-framed icon tile accepting any icon component and a tone to derive background and icon color.", - "tags": [ - "component", - "utility" - ], - "complexity": "simple" - }, - { - "id": "file:apps/web/src/components/os/warm/ModelPill.tsx", - "type": "file", - "name": "ModelPill.tsx", - "filePath": "apps/web/src/components/os/warm/ModelPill.tsx", - "summary": "Compact pill component showing the current AI model name with a live indicator dot and optional click handler for model switching.", - "tags": [ - "component", - "utility" - ], - "complexity": "simple" - }, - { - "id": "function:apps/web/src/components/os/warm/ModelPill.tsx:ModelPill", - "type": "function", - "name": "ModelPill", - "filePath": "apps/web/src/components/os/warm/ModelPill.tsx", - "lineRange": [ - 18, - 48 - ], - "summary": "Renders a model-name pill with a DotLive indicator, showing 'auto' or the specific model name with an optional click handler.", - "tags": [ - "component", - "utility" - ], - "complexity": "simple" - }, - { - "id": "file:apps/web/src/components/os/warm/OvernightHero.tsx", - "type": "file", - "name": "OvernightHero.tsx", - "filePath": "apps/web/src/components/os/warm/OvernightHero.tsx", - "summary": "Hero section for the Home cockpit's overnight briefing, displaying a statement headline and a list of overnight agent runs as RunChip items.", - "tags": [ - "component", - "utility" - ], - "complexity": "simple" - }, - { - "id": "function:apps/web/src/components/os/warm/OvernightHero.tsx:OvernightHero", - "type": "function", - "name": "OvernightHero", - "filePath": "apps/web/src/components/os/warm/OvernightHero.tsx", - "lineRange": [ - 21, - 58 - ], - "summary": "Renders the overnight briefing hero with an eyebrow label, main statement, and a row of RunChip items for each completed overnight run.", - "tags": [ - "component", - "utility" - ], - "complexity": "simple" - }, - { - "id": "file:apps/web/src/components/os/warm/ProvenanceLine.tsx", - "type": "file", - "name": "ProvenanceLine.tsx", - "filePath": "apps/web/src/components/os/warm/ProvenanceLine.tsx", - "summary": "Inline provenance attribution component showing memory source label and timestamp with an optional click handler, integrating EvidenceChip styling.", - "tags": [ - "component", - "utility" - ], - "complexity": "simple" - }, - { - "id": "function:apps/web/src/components/os/warm/ProvenanceLine.tsx:ProvenanceLine", - "type": "function", - "name": "ProvenanceLine", - "filePath": "apps/web/src/components/os/warm/ProvenanceLine.tsx", - "lineRange": [ - 19, - 32 - ], - "summary": "Renders a provenance attribution line with source name and relative timestamp, clickable for drill-through to memory traces.", - "tags": [ - "component", - "utility" - ], - "complexity": "simple" - }, - { - "id": "file:apps/web/src/components/os/warm/RunChip.tsx", - "type": "file", - "name": "RunChip.tsx", - "filePath": "apps/web/src/components/os/warm/RunChip.tsx", - "summary": "Compact chip component displaying a run label with a tone-colored DotLive indicator for showing agent run status inline.", - "tags": [ - "component", - "utility" - ], - "complexity": "simple" - }, - { - "id": "function:apps/web/src/components/os/warm/RunChip.tsx:RunChip", - "type": "function", - "name": "RunChip", - "filePath": "apps/web/src/components/os/warm/RunChip.tsx", - "lineRange": [ - 15, - 27 - ], - "summary": "Renders a pill-shaped run chip with a DotLive dot and a label, colored by the provided tone.", - "tags": [ - "component", - "utility" - ], - "complexity": "simple" - }, - { - "id": "file:apps/web/src/components/os/warm/SectionLabel.tsx", - "type": "file", - "name": "SectionLabel.tsx", - "filePath": "apps/web/src/components/os/warm/SectionLabel.tsx", - "summary": "Lightweight section header label with optional horizontal rule, used to separate named sections within Hive DS screens.", - "tags": [ - "component", - "utility" - ], - "complexity": "simple" - }, - { - "id": "file:apps/web/src/components/os/warm/StreakChip.tsx", - "type": "file", - "name": "StreakChip.tsx", - "filePath": "apps/web/src/components/os/warm/StreakChip.tsx", - "summary": "Displays a consecutive-days streak count as a compact flame chip, used in habit-tracking and engagement surfaces.", - "tags": [ - "component", - "utility" - ], - "complexity": "simple" - }, - { - "id": "function:apps/web/src/components/os/warm/StreakChip.tsx:StreakChip", - "type": "function", - "name": "StreakChip", - "filePath": "apps/web/src/components/os/warm/StreakChip.tsx", - "lineRange": [ - 14, - 26 - ], - "summary": "Renders a flame-icon streak chip showing the number of consecutive active days.", - "tags": [ - "component", - "utility" - ], - "complexity": "simple" - }, - { - "id": "file:apps/web/src/components/os/warm/tones.ts", - "type": "file", - "name": "tones.ts", - "filePath": "apps/web/src/components/os/warm/tones.ts", - "summary": "Exports TONE_COLOR and TONE_WASH lookup maps that convert semantic tone names (healthy, warning, critical, honey) to Tailwind CSS class strings for the Hive DS warm component library.", - "tags": [ - "utility", - "configuration", - "type-definition" - ], - "complexity": "simple", - "languageNotes": "Pure data file — two exported const objects acting as lookup tables; no logic or side effects." - }, - { - "id": "file:apps/web/src/components/ui/accordion.tsx", - "type": "file", - "name": "accordion.tsx", - "filePath": "apps/web/src/components/ui/accordion.tsx", - "summary": "Shadcn/ui accordion component re-export wrapping Radix UI's accordion primitives with Hive DS styling applied via CVA and Tailwind.", - "tags": [ - "component", - "utility", - "barrel" - ], - "complexity": "simple" - }, - { - "id": "file:apps/web/src/components/ui/alert-dialog.tsx", - "type": "file", - "name": "alert-dialog.tsx", - "filePath": "apps/web/src/components/ui/alert-dialog.tsx", - "summary": "Shadcn/ui alert dialog component wrapping Radix UI's AlertDialog primitives with Hive DS styling and custom header/footer layout components.", - "tags": [ - "component", - "utility", - "barrel" - ], - "complexity": "moderate" - }, - { - "id": "file:apps/web/src/components/ui/alert.tsx", - "type": "file", - "name": "alert.tsx", - "filePath": "apps/web/src/components/ui/alert.tsx", - "summary": "Shadcn/ui alert component providing styled Alert, AlertTitle, and AlertDescription variants using CVA for destructive and default visual styles.", - "tags": [ - "component", - "utility", - "barrel" - ], - "complexity": "simple" - }, - { - "id": "file:apps/web/src/components/ui/badge.tsx", - "type": "file", - "name": "badge.tsx", - "filePath": "apps/web/src/components/ui/badge.tsx", - "summary": "Shadcn/ui badge component with variant styles (default, secondary, destructive, outline) via CVA, widely used across the app for status and label indicators.", - "tags": [ - "component", - "utility" - ], - "complexity": "simple" - }, - { - "id": "file:apps/web/src/components/ui/breadcrumb.tsx", - "type": "file", - "name": "breadcrumb.tsx", - "filePath": "apps/web/src/components/ui/breadcrumb.tsx", - "summary": "Shadcn/ui breadcrumb navigation component set including Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, and BreadcrumbEllipsis.", - "tags": [ - "component", - "navigation", - "utility" - ], - "complexity": "simple" - }, - { - "id": "file:apps/web/src/components/ui/button.tsx", - "type": "file", - "name": "button.tsx", - "filePath": "apps/web/src/components/ui/button.tsx", - "summary": "Core button primitive with CVA-based variant and size styles (default, destructive, outline, ghost, link), used extensively throughout the application.", - "tags": [ - "component", - "utility" - ], - "complexity": "simple" - }, - { - "id": "file:apps/web/src/components/ui/calendar.tsx", - "type": "file", - "name": "calendar.tsx", - "filePath": "apps/web/src/components/ui/calendar.tsx", - "summary": "Shadcn/ui calendar date-picker component wrapping react-day-picker with Hive DS styling applied through buttonVariants and cn utilities.", - "tags": [ - "component", - "utility" - ], - "complexity": "simple" - }, - { - "id": "file:apps/web/src/components/ui/card.tsx", - "type": "file", - "name": "card.tsx", - "filePath": "apps/web/src/components/ui/card.tsx", - "summary": "Shadcn/ui card component set (Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent) providing surface-level container primitives with Hive DS tokens.", - "tags": [ - "component", - "utility", - "barrel" - ], - "complexity": "simple" - }, - { - "id": "file:apps/web/src/components/ui/carousel.tsx", - "type": "file", - "name": "carousel.tsx", - "filePath": "apps/web/src/components/ui/carousel.tsx", - "summary": "Shadcn/ui carousel component built on embla-carousel-react, exporting Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext, and a useCarousel hook.", - "tags": [ - "component", - "utility" - ], - "complexity": "complex" - }, - { - "id": "file:apps/web/src/components/ui/chart.tsx", - "type": "file", - "name": "chart.tsx", - "filePath": "apps/web/src/components/ui/chart.tsx", - "summary": "Shadcn/ui recharts wrapper providing ChartContainer, ChartTooltip, ChartTooltipContent, ChartLegend, ChartLegendContent, and ChartStyle with theme-aware CSS variable injection.", - "tags": [ - "component", - "utility", - "data-model" - ], - "complexity": "complex" - }, - { - "id": "function:apps/web/src/components/ui/chart.tsx:ChartStyle", - "type": "function", - "name": "ChartStyle", - "filePath": "apps/web/src/components/ui/chart.tsx", - "lineRange": [ - 61, - 88 - ], - "summary": "Injects a ` - - - - -
-

Waggle OS

-
System Architecture
-
Workspace-native AI agent platform with persistent memory — Tauri 2.0 + React 19 + SQLite
-
- - -
- - -
- - -
-
-
- 💻 -
- User Layer - Desktop + Web - -
-
-
- -
-
-
🖥 Desktop Shell
-
Tauri 2.0 binary — Windows + macOS. Rust shell with WebView2.
-
-
Tauri 2.0 Desktop Shell
-
Lightweight native shell wrapping the React web app. Handles IPC, filesystem access, and native menus. Ships with a Node.js sidecar for the backend.
-
app/src-tauri/
-
-
-
-
🎯 24 OS Apps
-
Chat, Memory, Files, Wiki, Settings, Marketplace, Cockpit, and more.
-
-
Application Suite
-
Full desktop OS experience with dock, windows, and overlays. Each app is a React component shell rendered in a managed window with per-window persona assignment.
-
apps/web/src/components/os/apps/
-
-
-
-
🧭 Onboarding
-
7-step wizard: API key, workspace, template, persona, import.
-
-
Onboarding Wizard
-
First-run setup flow guiding users through API key entry, workspace creation, template selection (15 templates), and persona assignment. Imports from ChatGPT/Claude/Gemini.
-
apps/web/src/components/os/overlays/OnboardingWizard.tsx
-
-
-
-
🎨 Hive DS
-
Design system: honey #e5a000, hive-950, accent #a78bfa.
-
-
Hive Design System
-
Consistent visual language across the platform. Dark-first palette with honey gold as primary, deep navy as background, purple as accent. Tailwind 4 + CSS tokens.
-
waggle-theme.css
-
-
-
- -
-
🧠 Your AI remembers
-
🎓 Learns your style
-
⚡ Works offline
-
🔒 Data stays local
-
-
-
-
- -
- - -
-
-
- 🤖 -
- Agent Layer - 22 Personas - -
-
-
-
-
-
🔄 Agent Loop
-
Core execution: LLM call, tool parse, execute, stream. Up to 200 turns.
-
-
Agent Loop
-
The heart of Waggle. Sends messages to LLM, parses tool calls, executes them through capability routing, and streams results via SSE. Supports approval gates, cost tracking, and loop guards.
-
packages/agent/src/agent-loop.ts
-
-
-
-
🎯 Orchestrator
-
Builds system prompt, recalls memory, assembles context per turn.
-
-
Orchestrator
-
Constructs the system prompt from persona + behavioral spec + skills + recalled memory. Calls recallMemory() to fuse personal and workspace mind results into context.
-
packages/agent/src/orchestrator.ts
-
-
-
-
🧰 97+ Tools
-
12 categories: system, memory, web, git, plan, doc, sub-agent, skill, KVARK, team, audit, connector.
-
-
Tool System
-
Organized across 12 categories. Each tool follows the ToolDefinition interface. Sensitive tools go through approval gates. Tool pool is filtered per-persona via allowlist + denylist.
-
packages/agent/src/tool-filter.ts
-
-
-
-
⚡ GEPA Optimizer
-
Prompt expansion and optimization engine. Iterative refinement with constraint gates.
-
-
GEPA (Guided Expansion Prompt Algorithm)
-
Expands terse user prompts into detailed, high-quality instructions. Iterative refinement with constraint gates ensures quality. Core to the self-evolution stack.
-
packages/optimizer/
-
-
-
-
🛡 Behavioral Spec
-
Safety rules, disclaimer logic, persona constraints. Non-negotiable agent boundaries.
-
-
Behavioral Specification
-
Defines the non-negotiable rules all agents follow. Includes memory-conflict handling (CRITICAL), disclaimer requirements, and persona-specific behavioral constraints.
-
packages/agent/src/behavioral-spec.ts
-
-
-
-
🔍 Injection Scanner
-
3 pattern sets for prompt injection defense on all external input.
-
-
Injection Scanner
-
scanForInjection() runs 3 pattern sets against all connector and external input. Mandatory security gate — never bypass.
-
packages/agent/src/injection-scanner.ts
-
-
-
- - -
-
🔬Researcher
-
✍Writer
-
📊Analyst
-
💻Coder
-
📋PM
-
📧Exec Asst
-
🎯Sales
-
📢Marketer
-
📦Product
-
👥HR
-
⚖Legal
-
💰Finance
-
💼Consultant
-
🌐General
-
🗺Planner
-
✅Verifier
-
🔗Coordinator
-
🎩Support
-
📐Designer
-
📚Educator
-
🌍Translator
-
🔧DevOps
-
-
-
-
- -
- - -
-
-
- 🧬 -
- Intelligence Layer - Self-Evolution - -
-
-
- -
-
TraceRecorder
- → -
EvalDataset
- → -
LLM Judge
- → -
GEPA
- → -
EvolveSchema
- → -
Gates
- → -
Deploy
-
-
- Result: Gemma 4 + Waggle-evolved prompts scored higher than raw Opus 4.6 by all 4 blind judges (C/A ratio: 108.8%) -
- -
-
-
-
🎭 Workflow Harness
-
research-verify, code-review-fix, document-draft templates.
-
-
Workflow Harness
-
Bridges workflow templates to the evolution system. Traces flow through the harness into the TraceRecorder for continuous improvement of multi-step workflows.
-
packages/agent/src/workflow-harness.ts
-
-
-
-
💡 Skill Extraction
-
Auto-extract patterns. Promote: personal, workspace, team, enterprise.
-
-
Skill Auto-Extraction + Promotion
-
Detects recurring patterns in agent behavior and promotes them through a 4-level hierarchy: personal skill, workspace skill, team skill, enterprise skill.
-
packages/agent/src/skill-frontmatter.ts
-
-
-
-
💲 Cost Tracker
-
Per-model pricing, session budgets, token accounting.
-
-
Cost Tracker
-
Tracks token usage and costs per model. Supports session-level budget caps. Includes pricing table for all supported models.
-
packages/agent/src/cost-tracker.ts
-
-
-
-
🚫 Loop Guard
-
Detects and breaks infinite loops in agent execution.
-
-
Loop Guard
-
Monitors agent execution patterns for repetitive tool calls or circular reasoning. Breaks infinite loops before they consume budget.
-
packages/agent/src/loop-guard.ts
-
-
-
-
-
-
- -
- - -
-
-
- 🧠 -
- Memory Layer - SQLite + sqlite-vec - -
-
-
-
-
-
💾 FrameStore
-
I/P/B frames grouped by GOP. Append-only event log with compaction and dedup.
-
-
FrameStore (I/P/B Frames)
-
Memory is stored as frames: I-frames (complete snapshots), P-frames (deltas), B-frames (bidirectional refs). Grouped by GOP (Group of Pictures) for efficient retrieval. Supports compaction, dedup, and importance scoring.
-
packages/core/src/mind/frames.ts
-
-
-
-
🔍 HybridSearch
-
FTS5 + vec0 fused via Reciprocal Rank Fusion. Configurable scoring profiles.
-
-
HybridSearch (FTS5 + Vector)
-
Combines full-text search (FTS5 with porter + unicode61 tokenizer) and vector similarity search (vec0 with 1024-dim embeddings) using Reciprocal Rank Fusion. Re-ranked by configurable scoring profiles.
-
packages/core/src/mind/search.ts
-
-
-
-
🕸 KnowledgeGraph
-
Typed entities and relations with bitemporal validity (valid_from/valid_to).
-
-
KnowledgeGraph
-
Entity-relation graph with typed nodes and edges. Supports temporal validity windows (bitemporal) and confidence scoring. The structured distillation of the frame log.
-
packages/core/src/mind/knowledge.ts
-
-
-
-
👤 IdentityLayer
-
Single-row table: name, role, personality, capabilities. Injected into system prompt.
-
-
IdentityLayer
-
Persists who this mind is. Single row with name, role, department, personality, capabilities. toContext() output is pasted directly into the agent system prompt.
-
packages/core/src/mind/identity.ts
-
-
-
-
📡 AwarenessLayer
-
10 rolling items: current tasks, goals, active context. Real-time state.
-
-
AwarenessLayer
-
Tracks what the mind is currently working on. Maximum 10 rolling items with category constraints. Provides real-time context about active tasks and goals.
-
packages/core/src/mind/awareness.ts
-
-
-
-
📖 Wiki Compiler
-
Compiles memory into wiki pages. Entity, concept, and synthesis pages with incremental compilation.
-
-
Wiki Compiler
-
Transforms raw memory frames into structured wiki pages. 4 adapters (md/txt/pdf/url). Entity pages, concept pages, and LLM-synthesized summary pages. Incremental compilation with health reports.
-
packages/wiki-compiler/
-
-
-
- -
- FTS5 keyword - + - vec0 semantic - = - Reciprocal Rank Fusion -
- -
- FREE FOREVER - — Memory + agents are the lock-in moat. Never paywalled. -
-
-
-
- -
- - -
-
-
- 🌾 -
- Harvest Layer - 11 Adapters - -
-
-
- -
-
💬ChatGPT
-
🧠Claude
-
💻Claude Code
-
✨Gemini
-
🔎Perplexity
-
📝Markdown
-
📄Plaintext
-
📕PDF
-
🌐URL
-
🔄Universal
-
- -
-
-
🛡 Injection Scanner
-
Security gate: all imported content scanned for prompt injection.
-
-
Injection Scanner (Security Gate)
-
Every piece of harvested content passes through scanForInjection() with 3 pattern sets before entering the memory substrate. Non-negotiable security boundary.
-
packages/agent/src/injection-scanner.ts
-
-
-
-
🔃 Dedup Pipeline
-
Content-hash deduplication prevents duplicate memory frames.
-
-
Deduplication Pipeline
-
SHA-256 content hashing detects and prevents duplicate frames from being stored. Runs as part of the harvest pipeline before frame insertion.
-
packages/core/src/harvest/dedup.ts
-
-
-
-
🧪 Cognify
-
Memory extraction pipeline. Classifies and structures harvested knowledge.
-
-
Cognify
-
Post-harvest processing that classifies imported content, extracts structured knowledge (entities, concepts, decisions), and routes it to the appropriate memory layer.
-
packages/agent/src/cognify.ts
-
-
-
- -
- → -
-
Your AI history → Waggle memory
-
Import conversations from any AI platform. Every insight becomes searchable, persistent memory.
-
-
- -
- FREE FOREVER - — Harvest is the lock-in moat. Import everything, keep everything. -
-
-
-
- - -
-
-
-
- ⚙ -
- Infrastructure - Sidecar + LiteLLM - -
-
-
-
-
-
🚀 Fastify Sidecar
-
Node.js backend bundled into Tauri. 29 route modules. SSE streaming.
-
-
Fastify Sidecar
-
Node.js server running alongside the Tauri shell. Handles all API routes: chat, workspaces, sessions, memory, settings, vault, skills, marketplace, cron, fleet. Streams chat via SSE.
-
sidecar/ + packages/server/
-
-
-
-
🔀 LiteLLM Router
-
LLM routing layer. Model normalization, key resolution from vault.
-
-
LiteLLM Router
-
3-layer LLM routing: built-in proxy to LiteLLM to echo fallback. Normalizes model names across providers. Resolves API keys from the vault at call time.
-
litellm-config.yaml
-
-
-
-
🔒 Vault
-
AES-256-GCM encrypted secret storage. API keys, credentials, tokens.
-
-
Vault
-
Encrypted secret storage using AES-256-GCM. Stores API keys, connector credentials, and sensitive metadata. The ONLY place secrets live. Never committed to source.
-
packages/core/src/mind/vault.ts
-
-
-
-
📦 Marketplace
-
120+ packages. Skills, plugins, MCP servers. Security gate + FTS5 search.
-
-
Marketplace
-
SQLite-based catalog with 120+ packages across skills, plugins, and MCP servers. SecurityGate scans for dangerous patterns before install. Auto-seeded from bundled data.
-
packages/marketplace/
-
-
-
-
💃 WaggleDance
-
Multi-agent swarm coordination. Task dispatch, HiveQuery broadcast.
-
-
WaggleDance
-
Swarm orchestration protocol for multi-agent coordination. Includes task dispatcher (routes by capability/load), HiveQuery (broadcast queries across agents), and result collection.
-
packages/waggle-dance/
-
-
-
-
💳 Stripe Billing
-
Subscription management. Wired to tier enforcement.
-
-
Stripe Billing
-
Stripe SDK v21.0.1 installed. Handles subscription lifecycle: checkout, upgrade/downgrade, webhook processing. Wired to the 5-tier capability system.
-
stripe@^21.0.1 in package.json
-
-
-
-
-
-
- - -
-

🏭 KVARK Enterprise — On-Prem Sovereign AI

-

"Everything Waggle does — on your infrastructure, connected to all your internal systems. Full data pipeline injection, your permissions, complete audit trail, governance. Your data never leaves your perimeter."

-
- ENTERPRISE - Consultative pricing — www.kvark.ai -
-
- -
- - - - - -
- - - - - - - - diff --git a/docs/WAGGLE_USER_TEST_PROTOCOL.md b/docs/WAGGLE_USER_TEST_PROTOCOL.md deleted file mode 100644 index a67e170..0000000 --- a/docs/WAGGLE_USER_TEST_PROTOCOL.md +++ /dev/null @@ -1,355 +0,0 @@ -# Waggle OS — Protokol za Korisnički Test -## Od prvog klika do "Bog te video" - -
-**Svrha:** Otkriti da li Waggle stvara addiction loop ili je samo još jedan AI alat koji se otvori jednom.
-**Trajanje:** 90 minuta po korisniku + 30 min debriefing
-**Broj učesnika:** Minimum 5, optimalno 8 (svaki novi korisnik donosi nove scerarije)
-**Ko vodi:** 1 moderator (posmatrač, ne pomagač), 1 noter -
- ---- - -# DEO 1: PRIPREMA - -## Profil korisnika za regrutovanje - -Traži ljude koji: -- Koriste ChatGPT ili Claude bar 3x nedeljno za posao -- Imaju konkretan, repetitvni posao koji rade rukom (istraživanje, pisanje, analiza) -- Nisu videli Waggle pre testa -- Rade u konsaltingu, pravu, finansijama, prodaji, ili sličnim knowledge-intensive oblastima - -**NE traži:** tehničare, developere, AI entuzijaste. Oni su pristrasni. Hoćeš ljude kojima AI pomaže, ali nije njihova profesija. - -## Materijali - -- Laptop sa Waggle-om instaliranim, LLM konfigurisan (Qwen 27B ili Claude API key spreman) -- Screen recorder koji snima ekran + kameru korisnika + zvuk -- Lapus papir pored laptopa (korisnik piše šta misli) -- Šolju kafe/vode (smanjuje formalnost) -- Lista od 5 realnih zadataka korisnika (pitaš ih unapred emailom: "Pošalji mi 3 zadatka koja radiš svake nedelje") - -## Uputstvo moderatoru - -**Jedino pravilo:** Ne pomaži nikako. Ako korisnik zapne, reci: "Šta misliš da treba da uradiš?" Ako ponovo zapne, reci: "Uradi šta ti deluje logično." Nikada ne pokazuj kursor, ne klikćeš, ne objašnjavaš. - -Tvoj posao je da posmatraš i notesuješ: -- Gde pauziraju (zbunjenost) -- Gde se smeju ili uzdahnu (emocija) -- Gde ubrzaju (engagement) -- Šta komentarišu naglas - ---- - -# DEO 2: TEST PROTOKOL - -## FAZA 0 — Pre prvog klika (5 minuta) - -**Šta radimo:** Razgovor pre nego što korisnik dotakne laptop. - -**Pitanja koja postavljamo:** - -"Opiši mi dan kada si koristio AI alat i bio stvarno zadovoljan rezultatom." -*(Slušaš šta definiše "dobar" za njega — brzina? Kvalitet? Manje posla?)* - -"Koja je razlika između kako koristiš ChatGPT i kako koristiš Google?" -*(Otkriva mentalni model — tretira li AI kao search ili kao saradnika)* - -"Da li si ikada poželeo da AI pamti ko si i šta radiš?" -*(Direktno meri da li memory sistem ima vrednost za njega)* - -**Šta meriš:** -- Koji bol opisuje (ovo je tvoj benchmark — da li Waggle to rešava?) -- Da li govori o jednom alatu ili više (fragmentisanost = opportunity) -- Energija kada priča — entuzijazam ili frustracija sa trenutnim alatima - -**Zelenа zastava:** Korisnik spontano opisuje frustraciju sa "resetovanjem konteksta" svaki put. -**Crvena zastava:** Korisnik je potpuno zadovoljan ChatGPT-om i ne vidi problem. - ---- - -## FAZA 1 — Onboarding (8-15 minuta) - -**Šta radimo:** Korisnik otvara Waggle prvi put. Posmatramo bez reči. - -**Merimo vreme do:** -- Prvog klika (oklevanje = zbunjenost) -- Odabira template-a (razume li kategorije?) -- Odabira persone (razume li koncept?) -- Prvog poslatog chat-a - -**Posmatramo:** - -*Lice:* Digne li obrve pri čitanju opisa? To je momenat razumevanja. Sužuju li se oči? To je zbunjenost. - -*Ruke:* Lebde li prsti iznad tastature? Okleva. Kuca brzo? Siguran je. - -*Usta:* Šta govori naglas? Svaki komentar je zlato. Zapiši reč-po-reč. - -*Scroll:* Da li lista sve opcije ili odabere prvu dostupnu? Brzina = samopouzdanje. - -**Metrike koje beleže:** - -| Momenat | Cilj | Alarm | -|---|---|---| -| Vreme do prvog chata | < 3 min | > 7 min = onboarding problem | -| Pitanja moderatoru | 0 | 3+ = UX problem | -| Napuštanje onboardinga (klik na X/Skip) | Nikad | Jednom = kritično | -| Izraz lica pri opisu "Waggle pamti ko si" | Interes | Ravnodušnost = value prop ne prolazi | - -**Pitanje posle onboardinga:** -"Šta si sada razumeo o ovom alatu u jednoj rečenici?" - -*Ako kaže "AI koji pamti" ili "moj AI asistent" — onboarding radi.* -*Ako kaže "još jedan chatbot" — onboarding ne radi.* - ---- - -## FAZA 2 — Prva realna upotreba (20 minuta) - -**Šta radimo:** Korisnik radi SVOJE zadatke, ne naše. Dajemo mu papirić sa 3 zadatka koja nam je poslao emailom i kažemo: "Radi ih kao što bi radio normalno, samo koristi Waggle." - -**Ovo je najvažnija faza.** - -**Zadatak A — Zadatak koji ZNA kako da uradi (8 min)** - -Neka uradi nešto što inače radi u ChatGPT-u. Posmatramo: - -- *Kako formuliše prompt?* Da li piše kratko (naviknut na kontekstuelni AI) ili dugačko (naviknut na stateless)? -- *Da li mu je rezultat bolji, isti ili lošiji od ChatGPT-a?* Pita ga se direktno. -- *Da li koristi persona feature?* Ako ne, znači da ne razume vrednost. Ako da — i vidi razliku — to je aha momenat. - -**Merimo:** -- Broj reči u prvom promptu (duži = manje poverenja u kontekst) -- Vreme do "submita" (duže = nesigurnost) -- Da li menja prompt posle prvog odgovora (iterira = engaged) -- Reakcija na odgovor — čita pažljivo ili skroluje? - -**Zadatak B — Zadatak koji nikad nije radio sa AI (10 min)** - -Neka pokuša nešto gde nije siguran. Posmatramo: - -- *Da li traži pomoć od Waggle-a drugačije nego od Google-a?* -- *Kada dobije loš odgovor — šta radi?* Zatvori tab ili iterira? -- *Da li spontano kaže "ovo je korisno/beskorisno"?* - -**Zadatak C — Multi-step zadatak (10 min)** - -Zadatak koji zahteva više koraka (istraži kompaniju X, napiši email CEO-u, sačuvaj u memory-u za sledeći put). Posmatramo: - -- *Da li razume da može da nastavi od tamo gde je stao?* -- *Da li svesno koristi memory ili ga ignoriše?* -- *Da li ga zbunjuje multi-workspace koncept?* - -**Pitanja IZMEĐU zadataka (ne posle — između):** - -"Šta si sada očekivao da se desi?" -"Zašto si kliknuo tu?" -"Šta bi ti rekao da ovo nije alat koji si ti hteo?" - ---- - -## FAZA 3 — Stresni test (10 minuta) - -**Šta radimo:** Namerno ga ubacujemo u situacije gde Waggle može da razočara. - -**Test 1 — Loš odgovor** - -Pitaj korisnika da pita Waggle nešto gde je odgovor siguran da će biti netačan ili generičan. Posmatramo: - -- *Šta radi kada AI greši?* To je ključno za retention. Ako napusti = loš sign. Ako ponovo pita = trust postoji. -- *Da li zamera Waggle-u ili sebi (loš prompt)?* -- *Da li govori naglas "ma hajde" ili "ok, hajde da probam drugačije"?* - -**Test 2 — Spor odgovor** - -Namerno (ili ne) čekanje na odgovor 8-15 sekundi. Posmatramo: - -- *Da li odmah klikće negde drugo ili čeka?* -- *Koliko sekundi pre nego što pokaže nestrpljenje?* Beleži egzaktno. -- *Šta radi dok čeka — čita prethodni odgovor ili gleda u prazan ekran?* - -**Test 3 — Breakflow momenat** - -Zamoli ga da promeni workspace usred zadatka. Posmatramo: - -- *Da li nađe workspace switcher bez pomoći?* -- *Da li razume da prethodni kontekst ostaje u prvom workspaceu?* -- *Da li se „gubi" u UI-u?* - ---- - -## FAZA 4 — Addiction momenat (15 minuta) - -**Šta radimo:** Slobodna upotreba. Kažemo: "Imaš 15 minuta, radi šta god hoćeš." - -Ovo je najvažniji signal. - -**Addiction znakovi — beleži svaki:** - -🟢 **Jak signal:** -- Korisnik sam smisli novi use case koji mi nismo predvideli -- Pita "može li Waggle da..." (mentalno širi granice) -- Zaboravi da smo tu (fokus na zadatak, ne na test) -- Spontano kaže "ovo je dobro" ili "ovo je korisno" bez pitanja -- Pita koliko košta / kada može da počne da koristi - -🟡 **Slab signal:** -- Završi zadatak koji smo dali i čeka sledeću instrukciju -- Koristi ga, ali ne komentariše ništa -- Kaže "ovo je ok" na pitanje - -🔴 **Anti-signal:** -- Prebaci na telefon tokom slobodnog vremena -- Pita "a to može u ChatGPT-u?" -- Gleda sat - -**Zlatno pitanje na kraju slobodnog vremena:** - -"Da li bi sutra otvorio Waggle pre ili posle ChatGPT-a?" - -Ako kaže PRE — tu je nešto. Ako kaže POSLE ili UMESTO — nisi ni blizu. - ---- - -## FAZA 5 — Emocionalni debriefing (15 minuta) - -**Šta radimo:** Korisnik je završio. Sada razgovaramo. - -**Pitanja redom (ne menjaj redosled):** - -**1. "Opiši mi šta si radio danas u tri rečenice, kao da objašnjavaš kolegi."** -*(Ako može jasno da objasni → razumeo je. Ako se muca → nije razumeo vrednost.)* - -**2. "Koji momenat tokom testa bi pamtio sutra ujutru?"** -*(Tražiš spontani aha momenat. Ako ne može da nabroji nijedan → nema ga.)* - -**3. "Šta te je iznenadilo — pozitivno ili negativno?"** -*(Ovo je unapređenje backlog. Svaki odgovor je feature request ili bug.)* - -**4. "Zamisli da Waggle ne postoji. Šta bi koristio za ove zadatke?"** -*(Competitor analysis. Ako kaže Excel ili Word — nisi mu jasno prodao AI. Ako kaže ChatGPT/Claude — na dobrom si tragu.)* - -**5. "Šta bi morao da se promeni da bi Waggle bio tvoj primarni AI alat?"** -*(Ovo je product roadmap. Korisnici su brutalno iskreni ovde.)* - -**6. "Proceni Waggle od 1 do 10 u odnosu na ChatGPT za tvoje svakodnevne zadatke."** -*(Benchmark metric. Ispod 6 — kritično. 7-8 — ok, ali postoji gap. 9-10 — tu je magic.)* - -**7. Finalno, ne pitanjem nego šutnjom:** -Zatvori notes, naslonih se i reci: "To je to. Hvala. Ako ima nešto što nisi rekao, slobodno." -Posle ove rečenice, što god korisnik kaže spontano — beleži to. To je uvek najiskreniji feedback. - ---- - -# DEO 3: SCORECARD - -## Popunjava se za svakog korisnika odmah posle testa. - -**ONBOARDING (max 25 poena)** - -| Kriterijum | Loše (0) | OK (1) | Odlično (2) | -|---|---|---|---| -| Vreme do prvog chata | >7 min | 3-7 min | <3 min | -| Razumevanje posle onboardinga | "chatbot" | "pamti me" | "moj AI" | -| Pitanja moderatoru tokom onboarding | 3+ | 1-2 | 0 | -| Pronalazak template koji mu odgovara | Nije našao | Pronašao uz čitanje | Odmah kliknuo | -| Spontani komentar tokom onboardinga | Negativan | Nijedan | Pozitivan | - ---- - -**PRVA UPOTREBA (max 30 poena)** - -| Kriterijum | Loše (0) | OK (1) | Odlično (2) | -|---|---|---|---| -| Kvalitet prvog prompta | 1 reč / generičan | Konkretan | Konkretan + kontekstualan | -| Reakcija na prvi odgovor | Zatvori tab | Čita, ali šuti | Komentariše ili iterira | -| Korišćenje persone (svesno) | Ne zna da postoji | Video ali nije koristio | Aktivno koristio | -| Otkrivanje memory funkcije | Nije ni primetio | Primetio, nije koristio | Koristio i komentarisao | -| Poređenje sa ChatGPT-om | "ChatGPT je bolji" | "Slično" | "Ovo je bolje jer..." | - ---- - -**RESILIENCE TEST (max 20 poena)** - -| Kriterijum | Loše (0) | OK (1) | Odlično (2) | -|---|---|---|---| -| Reakcija na loš odgovor | Napusta | Proba jednom | Iterira do dobrog | -| Tolerancija na čekanje | <5 sec pre nestrpljenja | 5-10 sec | >10 sec strpljivo čeka | -| Oporavak od zbunjenosti | Pita moderatora | Eksperimentiše | Rešava sam i nastavi | - ---- - -**ADDICTION SIGNAL (max 25 poena)** - -| Kriterijum | Loše (0) | OK (1) | Odlično (2) | Bonus (3) | -|---|---|---|---|---| -| Slobodnih 15 min — šta radi | Čeka instrukcije | Radi zadatak | Sam smisli novi use case | Pita koliko košta | -| "Pre ili posle ChatGPT-a sutra?" | Posle | Umesto | Pre | — | -| Pamtljivi momenat | Nijedan | Jedan generičan | Konkretan i emotivan | — | -| Spontana preporuka drugima | Ne bi preporučio | Možda | Odmah misli ko bi koristio | — | - ---- - -**UKUPNA INTERPRETACIJA:** - -| Score | Interpretacija | Akcija | -|---|---|---| -| 0-40 | Produkt nije spreman. Korisnici ne razumeju vrednost. | Kreni od value prop, ne od features. | -| 41-60 | Ima potencijala ali kritični problemi postoje. | Identifikuj top 3 friction pointa i reši ih. | -| 61-75 | Solidno. Korisnici vide vrednost ali nema magic momenta. | Pronađi gde je aha momenat i napravi ga ranijim. | -| 76-90 | Dobar produkt. Addiction loop postoji za određene korisnike. | Definiši koji user archetype — i fokusiraj se na njega. | -| 91-100 | Spreman za pravo testiranje. | Pusti 10-20 realnih korisnika bez moderatora. | - ---- - -# DEO 4: ŠABLONI ZA NOTIRANJE - -## Tokom testa — beleži ove kolone: - -``` -Vreme | Akcija korisnika | Komentar naglas | Izraz lica | Signal (+ / - / ?) -``` - -Primer: -``` -02:14 | Kliknuo na "Strategy Consultant" template | "Ovo mi zvuči..." | Smeši se | + -03:45 | Stao, čita opise pesona | (tišina 12 sec) | Sužene oči | ? -04:20 | Odabrao "Researcher" personu | "Pa ovo nije to što sam mislio" | Namrštio se | - -05:10 | Otkucao prvi prompt | "Reci mi o konkurentima X kompanije" | Neutralno | ? -05:28 | Čita odgovor | "Hm... ok, ovo nije loše zapravo" | Diže obrve | + -``` - ---- - -# DEO 5: ANALIZA POSLE 5 TESTOVA - -Kada završiš sa 5 korisnika, popuni ovaj agregat: - -**Friction mapa** — za svaki korak onboardinga i prve upotrebe, obeležiti gde je najviše korisnika zapelo (>3/5). - -**Aha momenat mapa** — koji feature je izazvao pozitivnu reakciju kod >=3/5 korisnika? - -**Retention predictor** — od 5 korisnika, koliko bi sledeći dan otvorilo Waggle? -- 0-1/5: Kritično. Produkt nije spreman. -- 2-3/5: Niche fit postoji ali nije mainstream. -- 4-5/5: Spreman za širu distribuciju. - -**Verbatim citati** — izdvoji 3-5 direktnih citata koji opisuju vrednost ili problem. Ovo je tvoja copy za landing page ili investitorsku prezentaciju. - ---- - -# DEO 6: KADA JE "BOG TE VIDEO" MOMENAT? - -Ovaj momenat se prepoznaje po jednom od sledećeg: - -**Scenario A — The Time Save:** Korisnik završi za 8 minuta nešto što inače traje sat. Zaustavlja se, gleda u ekran, i kaže nešto poput "Čekaj..." ili "Stvarno?" ili "Pa da." - -**Scenario B — The Connection:** Waggle referencira nešto iz prethodnog razgovora ili workspace-a bez da je korisnik to rekao. Korisnik se zagleda i pita "Odakle zna ovo?" - -**Scenario C — The Unexpected Use:** Korisnik spontano primeni Waggle na problem koji smo mu mi nikad dali. To znači da je mentalni model formiran i da ekstrapolira. - -**Scenario D — The Social Share:** Korisnik spontano pomene ime osobe kojoj bi rekao za Waggle. "Ovo bi voleo moj kolega X." - -**Ako se nijedan od ova četiri scenarija ne desi u 5 testova — produkt nije spreman za akviziciju. Vredi ga raditi dalje, ali ne vredi trošiti novac na marketing.** diff --git a/docs/Waggle OS — Claude Code Brief add on.txt b/docs/Waggle OS — Claude Code Brief add on.txt deleted file mode 100644 index 2188989..0000000 --- a/docs/Waggle OS — Claude Code Brief add on.txt +++ /dev/null @@ -1,118 +0,0 @@ -Waggle OS — Claude Code Brief: Natural-Language Universal Command Bar (Ctrl+K Intent Layer) - -Owner: Marko Marković -Authority chain: CLAUDE.md > this brief > all else. Where this brief conflicts with CLAUDE.md's standing rules (§3.2 simplicity, §3.3 surgical changes, §7 security), CLAUDE.md wins. -Repo: marolinik/waggle-os @ main — app UI apps/web/src, sidecar packages/server/src/local, agent packages/agent/src, substrate packages/hive-mind-core/src. -Current-state caveat: this brief's "current state" claims derive from docs/UX_REFACTOR_STATE_AUDIT.md (pre-June-refactor) + CLAUDE.md. The brief author could not read live source. Verify at source in Step 0 before building. - - -0. Step 0 — Verify the command surface at source (before any code) - -Confirm and report a short note (not a full doc); flag any delta from this brief's assumptions, then proceed: - - -apps/web/src/components/os/overlays/CommandCenter.tsx — confirm cmdk-based, the six verb groups (search/launch/create/run/navigate/extend), and that resolution is a structured matcher with no LLM call. -/api/command/* handler (audit cited packages/server/src/local/routes/command.ts) — confirm which endpoints exist (search/recent/suggestions/execute) and whether any interpret/NL endpoint already exists. -Post-refactor (D1), confirm the bar navigates via routes — handleSearchNavigate or its successor. -The capability surface the agent already exposes: packages/agent/src/tool-filter.ts (filterToolsForContext), skill tools, connector tools, MCP tools, /api/automations, persona list (persona-data.ts). -Approval surfaces: apps/web/src/components/ui/approval-modal.tsx and the in-chat SSE flow (chat.ts pre:tool → approval_required). -Tier gate: requireTier() / assert-tier.ts and the global UpgradeModal 403 handler (the waggle:tier-insufficient event path). - - -If anything material differs from this brief, stop and flag before building. - - -1. Mission - -Add a natural-language intent layer to Ctrl+K: a user expresses intent in plain language and it resolves to a previewable, approval-gated action over the existing capability surface — without knowing menus. This is an NL front-end + a resolver + wiring. The execution backend already exists; do not rebuild it. - - -2. Non-negotiable architecture (founder-ratified) - - -Two-tier resolution. Tier 0 = existing cmdk fuzzy-match (instant, no LLM), preserved and unregressed. Tier 1 = NL intent resolver (LLM) for sentence/no-match input. -Closed action registry. The resolver maps intent ONLY onto actions that exist in the agent's capability surface (tools / skills / connectors / MCP / automations / persona-switch / navigation / entity-creation). It never emits free code or actions outside the registry. This is the core safety property. -Preview-and-approve for side-effects. Any side-effectful resolved action (send / publish / install / delete / external connector write) renders the existing approval surface before executing. Reads and navigation execute directly. -Memory-aware resolution. The resolver receives awareness-layer state + workspace-state + recent sessions, so "yesterday's thing" / "the partner" resolve against the user's actual memory. -Tier-gated intent surfaces the upgrade moment inline — resolution onto a capability above the user's tier returns the existing UpgradeModal path, at the instant of intent. -v1 = single-action + approval. Multi-step planning is a fast-follow, not the first cut (§3.2 simplicity-first). - - - -3. The resolver (new) - - -New endpoint, e.g. POST /api/command/interpret, in the command route module. Input: { text, workspaceId, context }. -Uses LiteLLM with a fast model — resolution is routing, not a full agent turn. Keep it cheap and sub-second where possible. -System prompt supplies: (a) the available action registry (names + param schemas, from filterToolsForContext + skills/connectors/MCP/automations/personas/nav), and (b) the memory context block (§6). -Output is a strict JSON contract, one of: - -{ kind: 'action', action, params, sideEffect: boolean, requiresTier?: Tier } -{ kind: 'plan', steps: [...] } — type now, do NOT execute in v1 -{ kind: 'clarify', question, options?: string[] } -{ kind: 'tier_gated', capability, requiredTier } - - - -Parse defensively (JSON-only, strip fences). On parse/resolve failure, fall back to Tier 0 results + "couldn't interpret — here are matches." - - - -4. Frontend wiring (CommandCenter.tsx) - - -Keep cmdk results as Tier 0. Trigger Tier 1 when there is no high-confidence cmdk match OR the input parses as a sentence (heuristic: word count + verb presence + no exact command hit). Call /api/command/interpret. -Render the resolved result: - -action (read/nav) → execute directly (route push or read). -action (sideEffect) → open ui/approval-modal.tsx with action / params / risk; on approve, dispatch to the existing handler for that action type. -clarify → render the question inline in the palette; user answers; re-resolve. -tier_gated → dispatch waggle:tier-insufficient → global UpgradeModal. - - - -Latency: Tier 0 stays instant; show a compact "interpreting…" state only on the Tier 1 path. Never block the cmdk list while interpreting. - - - -5. Execution — reuse existing paths - - -The resolved action executes through the same mechanism the corresponding feature already uses (the agent tool, /api/automations create, connector install, route navigation). No new execution layer — the resolver's job ends at producing the structured action; a thin dispatcher keys on action type to existing handlers. -Side-effect classification reuses the existing taxonomy (confirmation.ts ALWAYS_CONFIRM / isCritical sets + the D4 rulings). Destructive = always approve, every autonomy level. - - - -6. Memory context (the differentiator) - - -Inject into the resolver context: current workspaceId, awareness-layer active task/state, top-N recent sessions/artifacts, and a compact workspace-state summary. -Reuse existing builders — do not write new memory queries. Use recallMemory() and the workspace-state/context formatters the orchestrator and /api/home/* routes already call. -This is what lets "continue yesterday's thing" / "draft the reply to the partner" resolve. If context budget is tight, prefer awareness + recent-sessions over full workspace-state. - - - -7. Acceptance criteria - - -Tier 0 cmdk path unchanged in speed and behavior; existing command/navigation tests stay green. -A plain-language request with no exact match resolves to a correct single action (e.g. "make a new workspace for the X project" → create-workspace with name filled). -A side-effectful resolved action renders the approval modal and executes only on approve; dismiss ≠ execute. -A memory-dependent request ("continue what I was working on") resolves against awareness/recent-sessions, not a generic guess. -A tier-gated request at FREE surfaces the UpgradeModal with the correct required tier. -The resolver maps only to registry actions; an out-of-scope request returns clarify or "can't do that," never an invented action or free code. -Resolver failure degrades gracefully to Tier 0 results. -plan kind is typed but not executed in v1 (returns clarify or single-action); a fast-follow ticket is opened for multi-step. - - - -8. Do not - - -Do not build a parallel action/command registry — map onto the agent's existing capability surface. -Do not regress or replace the cmdk fast path — layer on it. -Do not execute side-effects without the approval surface. -Do not let the resolver emit actions outside the closed registry, or any free-form code. -Do not write new memory queries — reuse the orchestrator / home builders. -Do not implement multi-step plan execution in v1. -Do not weaken confirmation.ts / D4 gating for command-bar speed. \ No newline at end of file diff --git a/docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/NAMING-ERRATUM.md b/docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/NAMING-ERRATUM.md deleted file mode 100644 index ef6b353..0000000 --- a/docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/NAMING-ERRATUM.md +++ /dev/null @@ -1,59 +0,0 @@ -# NAMING ERRATUM — Waggle OS UX Refactor Master Handoff Package - -**Date:** 2026-06-10 · **Authority:** ratified decision register D9/D10 -(`docs/ux-refactor/deltas/open-questions.md`, section "UX Refactor v2.1 — Ratification of -Decision Register D1–D15 (2026-06-10)") - -This package (blueprint PDF/docx, deck, PRD, mockup images) is annotated, **not regenerated**, -per ratified D9. Read it with the corrections below. - -## (a) "Win+K" is superseded — the surface is "Command Center", binding **Ctrl+K** - -Every occurrence of **"Win+K"** in this package — the blueprint PDF/docx (14 hits), the PRD -(~22 hits, e.g. lines 19, 461), the Implementation Handoff (5 hits), and the mockup filename -`Waggle_OS_Handoff_Assets/screen_03_win_k_command_center.png` — is **superseded**: - -- The surface is the **Command Center** palette; the binding is **Ctrl+K** (**Cmd+K on macOS**), - per Brief v2.1 rule 1 and ratified **D9**. -- **Win+K was never shipped and cannot be**: the Win key is OS-reserved on Windows (Win+K opens - the Cast/Connect flyout). The actual binding has always been Ctrl+K — see - `apps/web/src/hooks/useKeyboardShortcuts.ts` (lines 32, 92–93: `e.ctrlKey || e.metaKey` + - `'k'`; `metaKey` provides Cmd+K on macOS). -- Disambiguation (ratified **D8**): "Command Center" is **reserved for the Ctrl+K palette**. - The dock System-zone entry formerly labeled "Command Center" (`appId 'cockpit'`) is relabeled - "Mission Control". - -## (b) Mockup images are visual direction only - -The generated mockup images in `Waggle_OS_Handoff_Assets/` (`screen_01`–`screen_17`, -`screens_18_21`, the `0X_board_*` boards, and the brainstorm photos) are **visual direction -only**. Where an image conflicts with the written blueprint or the brief, **the written -blueprint + Brief v2.1 govern** (brief §"Do not"). Pixel details, copy, and labels in the -images (including any "Win+K" text) carry no spec authority. - -## (c) Authority chain (ratified D10) - -When documents conflict, higher wins: - -1. **v2.1 ratification register** — `docs/ux-refactor/deltas/open-questions.md` - ("Ratification of Decision Register D1–D15", 2026-06-10) -2. **Brief v2.1** (Workspace-First UX Refactor v2.1, Launch Cut, Audit-First) -3. **`docs/UX_REFACTOR_STATE_AUDIT.md`** (repo-state audit, 2026-06-10) -4. **This blueprint package** (`docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/`) -5. **Prior-plan docs** (`docs/ux-refactor/`) - -## (d) Path corrections (accepted from audit §7) - -The brief/package guess some file locations; the verified locations are: - -| File | Actual location | -|---|---| -| `workspace-manager.ts` | `packages/hive-mind-core/src/workspace-manager.ts` (moved 2026-04-30 migration; re-exported via `@waggle/core`) | -| `workspace-state.ts` | `packages/server/src/local/workspace-state.ts` | -| `workspace-context.ts` | `packages/server/src/local/routes/workspace-context.ts` | - ---- - -*Per D10, the package's text files (PRD, Implementation Handoff, `_blueprint_extracted.txt`, -assets `README.md` + `ASSET_MANIFEST.json`, and this erratum) are committed; the binary exports -(pdf/docx/pptx/png/jpg, ~85 MB) are gitignored and remain local-only.* diff --git a/docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/Waggle_OS_Claude_Code_Implementation_Handoff.md b/docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/Waggle_OS_Claude_Code_Implementation_Handoff.md deleted file mode 100644 index fc44e55..0000000 --- a/docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/Waggle_OS_Claude_Code_Implementation_Handoff.md +++ /dev/null @@ -1,197 +0,0 @@ -# Waggle OS UX Refactor - Claude Code Implementation Handoff - -## North Star -Build a workspace-first Agent Desktop. Do not build another app launcher. Do not default users into blank chat. The new UX spine is Home Cockpit + Workspace Desktop + Win+K Command Center + visible Memory + Extend layer. - -## Non-negotiable product rules -- Workspace is the primary object. -- Win+K is always available. -- Memory is visible, inspectable and editable. -- Artifacts are outcomes, not attachments. -- Connectors and MCPs live in Extend, not hidden Settings. -- Agents must declare scope, model, memory, tools and autonomy. -- No import or elevated tool access without explicit user approval. -- Use existing backend foundations wherever possible. - -## Implementation sequence -- 0. Create feature branch and freeze route names. -- 1. Build AppShell and navigation labels. -- 2. Build Win+K command provider and search aggregator. -- 3. Promote WorkspaceBriefing/state into HomeCockpit. -- 4. Build WorkspaceDesktop using workspace state/context APIs. -- 5. Build MemoryCenter and ArtifactCenter. -- 6. Build Extend surfaces: Skills, Connectors, MCPs, Marketplace. -- 7. Build Agent/Skill/Automation/Workspace builders. -- 8. Build Team Workspace, RBAC and audit UI. -- 9. Polish states: empty/loading/error/offline/permission denied/syncing. - -## Current repo files to inspect first -- `apps/web/src/components/os/WorkspaceBriefing.tsx` - **Keep and promote** - Use as seed for Home Cockpit. Split logic into HomeCockpit widgets and reusable WorkspaceNow panels. -- `packages/server/src/local/workspace-state.ts` - **Keep and extend** - This is the best backend basis for Home/Workspace state. Add artifacts/agents/automations fields. -- `packages/server/src/local/routes/workspace-context.ts` - **Modify** - Return richer WorkspaceNow/WorkspaceHome contract for new UI. -- `packages/hive-mind-core/src/workspace-manager.ts` - **Keep** - Workspace config model already supports many target fields. Add type/description/updatedAt if needed. -- `packages/hive-mind-core/src/mind/schema.ts` - **Keep and migrate carefully** - Memory/audit/trace substrate exists. Add confidence/provenance fields via metadata or migration if needed. -- `apps/web/src/lib/types.ts` - **Modify** - Update AppView, WorkspaceContext, MemoryFrame, Agent, Skill, Connector/MCP types. -- `apps/web/src/components/os/overlays/OnboardingWizard.tsx` - **Keep shell, redesign steps** - Map existing onboarding shell to the 5-step setup flow plus workspace creation handoff. -- `apps/web/src/components/os/apps/MemoryApp.tsx` - **Rework** - Turn into Memory Center with source/confidence/evidence/edit actions. -- `apps/web/src/components/os/apps/*` - **Rename/reframe** - Apps become Work, Intelligence or Extend surfaces. Avoid app-launcher mental model. -- `packages/core/src/install-audit.ts` - **Keep and expose** - Use for extension trust trail in Connectors/MCP/Marketplace. -- `packages/agent/src/tools.ts` - **Keep and normalize** - Tool permissions should be scoped through agent/skill/MCP model. -- `packages/memory-mcp/*` - **Keep** - Treat as built-in MCP/extension and demo of memory operations. - -## Screen inventory -### Screen 1 - Home Cockpit -- Purpose: Executive briefing after launch. -- Key interactions: Continue work, inspect overnight activity, act on priorities, quick capture. -- Required states: Loading; first-run empty; normal; attention required; offline/local-only; overnight failure. -- Data/API: GET /home/briefing, GET /workspaces, GET /automations/status, quick-capture API. -- Acceptance: User can understand the day in under 30 seconds and take an action without opening chat. - -### Screen 2 - Workspace Desktop -- Purpose: Primary runtime for one bounded context. -- Key interactions: Ask agent, open artifact, inspect memory, start automation, run skill, manage agents. -- Required states: No memory; active work; agent running; task blocked; artifact ready; permission denied; sync conflict. -- Data/API: GET /workspaces/:id/state, /context, sessions, artifacts, agents, automations. -- Acceptance: Chat is one widget; workspace context is always visible. - -### Screen 3 - Win+K Command Center -- Purpose: Universal search/launch/create/run/navigate/extend. -- Key interactions: Search, launch, create object, run command, install extension, navigate. -- Required states: Idle; query; grouped results; no results; permission prompt; command success/fail. -- Data/API: GET /command/search?q=, POST /command/execute. -- Acceptance: Every major object/action is reachable from keyboard. - -### Screen 4 - Memory Center -- Purpose: Visible memory with provenance and editability. -- Key interactions: Search, filter, inspect source, edit, merge, archive, delete, add to workspace/team. -- Required states: Empty; imported; active; stale; deprecated; low confidence; conflicting; source unavailable. -- Data/API: GET /memory, GET/PATCH /memory/:id, merge/archive/delete endpoints. -- Acceptance: Every memory explains why Waggle knows it. - -### Screen 5 - Artifact Center -- Purpose: Outcome layer for docs, decks, sheets, dashboards, research, code and media. -- Key interactions: Search related objects, open/share/duplicate/move, relate to memory/session/task. -- Required states: Draft; final; shared; archived; generated; external missing; permission denied. -- Data/API: GET /artifacts, POST/PATCH /artifacts, relation APIs. -- Acceptance: Search for a topic returns artifacts plus related memories/sessions/tasks/agents. - -### Screen 6 - Skills Hub -- Purpose: Reusable capabilities across users, workspaces and agents. -- Key interactions: Install, create, test, assign to agent/workspace, archive. -- Required states: Installed; marketplace; custom; workspace; draft; needs approval. -- Data/API: GET/POST/PATCH /skills, POST /skills/:id/test/install. -- Acceptance: Users can understand what a skill does and where it is used. - -### Screen 7 - Connector Hub -- Purpose: Connect external tools and data. -- Key interactions: Connect, sync now, refresh token, revoke, inspect health. -- Required states: Connected; disconnected; expired token; syncing; failed; recommended. -- Data/API: GET /connectors, connect/sync/revoke APIs. -- Acceptance: Users see data flow and connection health clearly. - -### Screen 8 - MCP Hub -- Purpose: Power-user capability extension. -- Key interactions: Install, add custom, test, scope, inspect logs, revoke. -- Required states: Installed; available; running; stopped; error; risk approval needed. -- Data/API: GET/POST /mcps, health/test/permissions APIs. -- Acceptance: MCPs are powerful but auditable and reversible. - -### Screen 9 - Agent Center -- Purpose: Manage personal, workspace, team and autonomous agents. -- Key interactions: Create, run, pause, inspect logs, assign skills/tools, change permissions. -- Required states: Idle; running; paused; failed; needs approval; archived. -- Data/API: GET/POST/PATCH /agents, run/traces APIs. -- Acceptance: Agents have clear scope, goal, model, tools and memory access. - -### Screen 10 - Team Workspace -- Purpose: Shared intelligence for teams. -- Key interactions: Invite, share memory/artifact/skill/MCP, assign role, view audit/activity. -- Required states: Owner/admin/member/viewer; invite pending; private/shared; conflicting permissions. -- Data/API: Team/RBAC APIs plus shared memory/artifact endpoints. -- Acceptance: Team means shared knowledge and outcomes, not just chat. - -### Screen 11 - Automation Center -- Purpose: Scheduled and event-driven work. -- Key interactions: Create, run now, pause, inspect logs, edit schedule, handle failure. -- Required states: Running; scheduled; trigger fired; paused; failed; awaiting approval. -- Data/API: GET/POST/PATCH /automations, run/logs APIs. -- Acceptance: Overnight work is visible, reviewable and stoppable. - -### Screen 12 - First Launch -- Purpose: Minimal promise and privacy reassurance. -- Key interactions: Continue, change language, view privacy note. -- Required states: Fresh install; resumed setup; offline; local-only. -- Data/API: Local onboarding state. -- Acceptance: No infrastructure overload before user intent. - -### Screen 13 - Who Are You -- Purpose: Capture role, industry, work type, team size and goals. -- Key interactions: Enter profile, select goals, continue/back. -- Required states: Empty; partially complete; validation; saved. -- Data/API: POST /profile or local onboarding state. -- Acceptance: Profile drives recommendations but can be edited later. - -### Screen 14 - Tool Discovery -- Purpose: Ask what tools the user uses. -- Key interactions: Select tools, add other, continue/back. -- Required states: No selection; selected; recommended; unsupported tool. -- Data/API: Local onboarding state; connector catalog. -- Acceptance: User-oriented language, not infra setup. - -### Screen 15 - Memory Import -- Purpose: Connect/import from AI tools, files and work tools. -- Key interactions: Connect source, import file, continue/back. -- Required states: No sources; connecting; connected; failed; skipped. -- Data/API: harvest preview/commit, connector flows. -- Acceptance: Nothing imports without consent. - -### Screen 16 - Memory Review -- Purpose: Review found memories, decisions, tasks, artifacts and projects. -- Key interactions: Filter, expand, edit selection, approve import, skip. -- Required states: Empty; preview found; low confidence; source error; approved. -- Data/API: POST /harvest/preview, POST /harvest/commit. -- Acceptance: Trust gate before memory becomes active. - -### Screen 17 - Workspace Creation -- Purpose: Create a workspace with suggested capabilities. -- Key interactions: Enter name/type, add suggestions, review, create. -- Required states: Empty; recommended; validation error; created. -- Data/API: POST /workspaces plus recommendation service. -- Acceptance: Workspace becomes first useful context after onboarding. - -### Screen 18 - Agent Builder -- Purpose: Create an agent with goal, model, autonomy, memory, skills and permissions. -- Key interactions: Configure, test, review, create. -- Required states: Draft; validation; approval needed; created. -- Data/API: POST /agents, skills/tools/MCP catalogs. -- Acceptance: No agent has hidden memory/tool access. - -### Screen 19 - Skill Builder -- Purpose: Create reusable capability. -- Key interactions: Define prompt, inputs/outputs, tools, memory access, test. -- Required states: Draft; test pass/fail; published; archived. -- Data/API: POST /skills, test endpoint. -- Acceptance: Skills are inspectable and reusable by agents/automations. - -### Screen 20 - Automation Builder -- Purpose: Create scheduled or event-driven workflow. -- Key interactions: Choose trigger/condition/actions/agent/notification, test, activate. -- Required states: Draft; test fail; active; scheduled; approval needed. -- Data/API: POST /automations, run/test APIs. -- Acceptance: Autonomous work has clear trigger and rollback. - -### Screen 21 - Marketplace / Extend -- Purpose: Install skills, agents, connectors, MCPs, models and templates. -- Key interactions: Search, filter, install, update, approve risk, open detail. -- Required states: Available; installed; update available; risk approval; failed install. -- Data/API: Catalog + install audit APIs. -- Acceptance: Power-user extension is discoverable and governed. - -## Acceptance criteria -- A returning user can open Waggle and continue their highest-priority workspace in under 30 seconds. -- A user can open Win+K from anywhere and find workspaces, memory, artifacts, agents, skills, connectors, MCPs and commands. -- A user can inspect a memory and see source, confidence, scope and available actions. -- An agent cannot run with hidden memory/tool/MCP access. -- All connector/MCP installs and elevated capabilities are approval-gated and auditable. -- Home Cockpit and Workspace Desktop are driven by server-derived workspace state, not duplicated frontend logic. -- Every major screen has loading, empty, error, offline and permission-denied states. \ No newline at end of file diff --git a/docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/Waggle_OS_Handoff_Assets/ASSET_MANIFEST.json b/docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/Waggle_OS_Handoff_Assets/ASSET_MANIFEST.json deleted file mode 100644 index 2f6ba50..0000000 --- a/docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/Waggle_OS_Handoff_Assets/ASSET_MANIFEST.json +++ /dev/null @@ -1,176 +0,0 @@ -[ - { - "name": "00_brainstorm_notes_01", - "file": "00_brainstorm_notes_01.jpg", - "source_file": "57152.jpg", - "size": "659x1536" - }, - { - "name": "00_brainstorm_notes_02", - "file": "00_brainstorm_notes_02.jpg", - "source_file": "57151.jpg", - "size": "659x1536" - }, - { - "name": "00_brainstorm_notes_03", - "file": "00_brainstorm_notes_03.jpg", - "source_file": "57150.jpg", - "size": "659x1536" - }, - { - "name": "00_brainstorm_notes_04", - "file": "00_brainstorm_notes_04.jpg", - "source_file": "57149.jpg", - "size": "659x1536" - }, - { - "name": "01_board_executive_vision", - "file": "01_board_executive_vision.png", - "source_file": "a_large_multi_panel_product_design_information_arc.png", - "size": "1536x1024" - }, - { - "name": "02_board_deep_mental_model", - "file": "02_board_deep_mental_model.png", - "source_file": "a_high_detail_infographic_system_architecture_di.png", - "size": "1536x1024" - }, - { - "name": "03_board_navigation_workspace_home", - "file": "03_board_navigation_workspace_home.png", - "source_file": "a_wide_high_resolution_infographic_diagram_image.png", - "size": "1536x1024" - }, - { - "name": "04_board_complete_architecture_4x3", - "file": "04_board_complete_architecture_4x3.png", - "source_file": "a_high_resolution_infographic_whiteboard_style_pro.png", - "size": "1448x1086" - }, - { - "name": "05_board_operations_memory_mcp_agents_team", - "file": "05_board_operations_memory_mcp_agents_team.png", - "source_file": "a_high_resolution_infographic_poster_slide_layou.png", - "size": "1536x1024" - }, - { - "name": "06_board_all_in_one", - "file": "06_board_all_in_one.png", - "source_file": "a_wide_high_resolution_product_design_poster_ui.png", - "size": "1536x1024" - }, - { - "name": "07_board_builders_and_marketplace", - "file": "07_board_builders_and_marketplace.png", - "source_file": "a_dark_themed_ui_design_presentation_screenshot_co.png", - "size": "1536x1024" - }, - { - "name": "screen_01_home_cockpit", - "file": "screen_01_home_cockpit.png", - "source_file": "a_wide_screenshot_of_a_dark_sleek_desktop_app_das.png", - "size": "1672x941" - }, - { - "name": "screen_02_workspace_desktop", - "file": "screen_02_workspace_desktop.png", - "source_file": "a_wide_desktop_app_ui_screenshot_dark_modern_prod.png", - "size": "1672x941" - }, - { - "name": "screen_03_win_k_command_center", - "file": "screen_03_win_k_command_center.png", - "source_file": "a_dark_themed_computer_ui_screenshot_of_a_command.png", - "size": "1672x941" - }, - { - "name": "screen_04_memory_center", - "file": "screen_04_memory_center.png", - "source_file": "a_clean_high_resolution_dark_light_ui_dashboard_s.png", - "size": "1536x1024" - }, - { - "name": "screen_05_artifact_center", - "file": "screen_05_artifact_center.png", - "source_file": "a_high_resolution_screenshot_of_a_dark_themed_clea.png", - "size": "1536x1024" - }, - { - "name": "screen_06_skills_hub", - "file": "screen_06_skills_hub.png", - "source_file": "a_clean_high_resolution_ui_dashboard_screenshot.png", - "size": "1536x1024" - }, - { - "name": "screen_07_connector_hub", - "file": "screen_07_connector_hub.png", - "source_file": "a_clean_high_resolution_ui_dashboard_screenshot_o.png", - "size": "1536x1024" - }, - { - "name": "screen_08_mcp_hub", - "file": "screen_08_mcp_hub.png", - "source_file": "a_wide_dark_themed_desktop_application_ui_screensh.png", - "size": "1536x1024" - }, - { - "name": "screen_09_agent_center", - "file": "screen_09_agent_center.png", - "source_file": "a_dark_themed_sleek_ui_dashboard_screenshot_of_an.png", - "size": "1536x1024" - }, - { - "name": "screen_10_team_workspace", - "file": "screen_10_team_workspace.png", - "source_file": "a_high_resolution_ui_screenshot_of_a_dark_themed.png", - "size": "1536x1024" - }, - { - "name": "screen_11_automation_center", - "file": "screen_11_automation_center.png", - "source_file": "a_wide_dark_themed_desktop_ui_screenshot_of_a_sof.png", - "size": "1536x1024" - }, - { - "name": "screen_12_first_launch", - "file": "screen_12_first_launch.png", - "source_file": "a_clean_modern_software_welcome_onboarding_screen.png", - "size": "1672x941" - }, - { - "name": "screen_13_who_are_you", - "file": "screen_13_who_are_you.png", - "source_file": "a_widescreen_dark_ui_screenshot_of_a_setup_onboard.png", - "size": "1672x941" - }, - { - "name": "screen_14_tool_discovery", - "file": "screen_14_tool_discovery.png", - "source_file": "a_dark_modern_desktop_app_ui_screenshot_waggle_o.png", - "size": "1672x941" - }, - { - "name": "screen_15_memory_import", - "file": "screen_15_memory_import.png", - "source_file": "a_crisp_dark_themed_desktop_application_ui_screen.png", - "size": "1672x941" - }, - { - "name": "screen_16_memory_review", - "file": "screen_16_memory_review.png", - "source_file": "a_dark_modern_ui_dashboard_screenshot_app_revie.png", - "size": "1672x941" - }, - { - "name": "screen_17_create_workspace", - "file": "screen_17_create_workspace.png", - "source_file": "a_dark_themed_desktop_ui_screenshot_overall_scene.png", - "size": "1672x941" - }, - { - "name": "screens_18_21_builders_and_marketplace", - "file": "screens_18_21_builders_and_marketplace.png", - "source_file": "a_dark_themed_ui_design_presentation_screenshot_co.png", - "size": "1536x1024" - } -] \ No newline at end of file diff --git a/docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/Waggle_OS_Handoff_Assets/README.md b/docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/Waggle_OS_Handoff_Assets/README.md deleted file mode 100644 index c2c62a5..0000000 --- a/docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/Waggle_OS_Handoff_Assets/README.md +++ /dev/null @@ -1,33 +0,0 @@ -# Waggle OS Handoff Asset Manifest - -These images are directional UX and architecture references. Text labels in generated images are not authoritative; the blueprint is the source of truth. - -- **00_brainstorm_notes_01** - `00_brainstorm_notes_01.jpg` (659x1536) -- **00_brainstorm_notes_02** - `00_brainstorm_notes_02.jpg` (659x1536) -- **00_brainstorm_notes_03** - `00_brainstorm_notes_03.jpg` (659x1536) -- **00_brainstorm_notes_04** - `00_brainstorm_notes_04.jpg` (659x1536) -- **01_board_executive_vision** - `01_board_executive_vision.png` (1536x1024) -- **02_board_deep_mental_model** - `02_board_deep_mental_model.png` (1536x1024) -- **03_board_navigation_workspace_home** - `03_board_navigation_workspace_home.png` (1536x1024) -- **04_board_complete_architecture_4x3** - `04_board_complete_architecture_4x3.png` (1448x1086) -- **05_board_operations_memory_mcp_agents_team** - `05_board_operations_memory_mcp_agents_team.png` (1536x1024) -- **06_board_all_in_one** - `06_board_all_in_one.png` (1536x1024) -- **07_board_builders_and_marketplace** - `07_board_builders_and_marketplace.png` (1536x1024) -- **screen_01_home_cockpit** - `screen_01_home_cockpit.png` (1672x941) -- **screen_02_workspace_desktop** - `screen_02_workspace_desktop.png` (1672x941) -- **screen_03_win_k_command_center** - `screen_03_win_k_command_center.png` (1672x941) -- **screen_04_memory_center** - `screen_04_memory_center.png` (1536x1024) -- **screen_05_artifact_center** - `screen_05_artifact_center.png` (1536x1024) -- **screen_06_skills_hub** - `screen_06_skills_hub.png` (1536x1024) -- **screen_07_connector_hub** - `screen_07_connector_hub.png` (1536x1024) -- **screen_08_mcp_hub** - `screen_08_mcp_hub.png` (1536x1024) -- **screen_09_agent_center** - `screen_09_agent_center.png` (1536x1024) -- **screen_10_team_workspace** - `screen_10_team_workspace.png` (1536x1024) -- **screen_11_automation_center** - `screen_11_automation_center.png` (1536x1024) -- **screen_12_first_launch** - `screen_12_first_launch.png` (1672x941) -- **screen_13_who_are_you** - `screen_13_who_are_you.png` (1672x941) -- **screen_14_tool_discovery** - `screen_14_tool_discovery.png` (1672x941) -- **screen_15_memory_import** - `screen_15_memory_import.png` (1672x941) -- **screen_16_memory_review** - `screen_16_memory_review.png` (1672x941) -- **screen_17_create_workspace** - `screen_17_create_workspace.png` (1672x941) -- **screens_18_21_builders_and_marketplace** - `screens_18_21_builders_and_marketplace.png` (1536x1024) \ No newline at end of file diff --git a/docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/Waggle_OS_UX_Refactor_PRD.md b/docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/Waggle_OS_UX_Refactor_PRD.md deleted file mode 100644 index 400b687..0000000 --- a/docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/Waggle_OS_UX_Refactor_PRD.md +++ /dev/null @@ -1,1499 +0,0 @@ -# Waggle OS UX Refactor PRD - -**Document type:** Product Requirements Document -**Status:** Implementation-ready draft -**Audience:** Founder, product, design, frontend, backend, Claude Code -**Primary repo:** `marolinik/waggle-os` -**Product direction:** Workspace-first Agent Desktop, visible memory, always-available command layer, extensible skills/connectors/MCPs. - ---- - -## 1. Executive Summary - -Waggle OS should be refactored from an app-centric AI workspace into a **Work Intelligence OS**: a desktop-like environment that remembers work across tools, organizes it into workspaces, helps users continue the right work, and lets agents act with clear context, permissions, memory, and tools. - -The new UX spine is: - -1. **Home Cockpit** - the daily executive briefing and launch surface. -2. **Workspace Desktop** - the primary runtime for each bounded work context. -3. **Win+K Command Center** - universal search, launch, create, run, navigate, and extend. -4. **Visible Memory** - memory is inspectable, sourced, editable, scoped, and confidence-aware. -5. **Extend Layer** - skills, connectors, MCPs, models, and external tools are first-class, not buried in settings. -6. **Team Intelligence** - shared workspaces, shared memory, shared artifacts, shared skills, shared MCPs, and RBAC. - -The core product promise: - -> Waggle remembers your work, connects your tools, and helps you and your agents get the right work done. - -This PRD defines the requirements, states, journeys, object models, API contracts, refactor map, and acceptance criteria needed for Claude Code and the team to implement the new UX with minimal ambiguity. - ---- - -## 2. Product Thesis - -Current AI tools are fragmented. Users work across Claude, Claude Code, Cursor, Codex, Hermes, Gmail, Calendar, Slack, GitHub, Notion, Drive, files, and internal systems. The state of work is scattered across conversations, tabs, files, repos, messages, and half-remembered decisions. - -Waggle OS wins by becoming the **memory and action layer across work**: - -- It captures signals from tools. -- It consolidates them into useful memory. -- It organizes them inside bounded workspaces. -- It exposes what it knows and why. -- It lets agents act safely using memory, skills, connectors, MCPs, and automations. -- It produces artifacts, not just chat replies. -- It compounds intelligence at personal, workspace, team, and organization levels. - -Waggle should not feel like another chat app. Chat is one widget inside a larger work operating system. - ---- - -## 3. Problem Statement - -### 3.1 User problems - -Users currently struggle with: - -- Reconstructing what they were working on. -- Finding decisions made in old conversations. -- Knowing what changed while they were away. -- Moving work across AI tools without losing context. -- Keeping memory accurate and trustworthy. -- Turning conversations into durable artifacts. -- Reusing skills and tools across projects. -- Letting agents operate without giving them unsafe hidden powers. -- Working as a team without duplicating context in Slack/docs/chats. - -### 3.2 Product problems - -The existing product direction has powerful primitives, but the UX risks exposing too many concepts as separate apps. The current UI concepts are broad: memory, workspaces, tools, events, capabilities, mission control, settings. The target UX should collapse these into a simpler mental model: - -- **Work:** Home, Workspaces, Memory, Artifacts. -- **Intelligence:** Agents, Skills, Automations. -- **Extend:** Connectors, MCPs, Models, External Tools. -- **Team:** Shared knowledge and governance. -- **Global:** Win+K. - -### 3.3 Implementation risk - -Without a precise PRD, the development team could interpret the designs as: - -- a dashboard product, -- an app launcher, -- a chat app with sidebars, -- a marketplace product, -- a memory product, -- or an agent operations console. - -The correct implementation is **workspace-first Agent Desktop with visible memory and global command access**. - ---- - -## 4. Goals and Non-Goals - -### 4.1 Product goals - -1. Make Home Cockpit the daily starting point. -2. Make Workspace Desktop the primary work runtime. -3. Make Win+K available everywhere. -4. Make memory visible, editable, sourced, and confidence-aware. -5. Make artifacts first-class outcomes. -6. Make skills, connectors, MCPs, models, and external tools first-class extensions. -7. Make agents explicit about scope, memory, model, skills, tools, and autonomy. -8. Make automations visible, inspectable, pausable, and auditable. -9. Make team intelligence a shared-knowledge system, not just team chat. -10. Reuse existing backend foundations where practical. - -### 4.2 UX goals - -- A returning user understands what matters in under 30 seconds. -- A user can continue their most relevant workspace in one click. -- A user can find or create anything via Win+K. -- A user can inspect any memory and understand why Waggle knows it. -- A power user can extend Waggle without leaving the product. -- A team admin can see shared knowledge, permissions, and audit trails. - -### 4.3 Technical goals - -- Use current workspace manager and `.mind` storage foundation where possible. -- Extend current workspace state/context APIs instead of duplicating frontend logic. -- Preserve auditability for AI interactions, tools, MCPs, connectors, and agents. -- Keep local-first behavior as default where supported by current architecture. -- Avoid large backend rewrites unless required for UX correctness. - -### 4.4 Non-goals for first implementation phase - -- Full public marketplace billing. -- Enterprise SSO implementation from scratch. -- Full organization-wide policy engine. -- Multiplayer real-time editing of documents. -- Native mobile UX. -- Replacing Claude/Cursor/Hermes as external tools. -- Building every connector/MCP; initial catalog can be mocked or seeded. - ---- - -## 5. Users and Personas - -### 5.1 Solo founder / operator - -Needs a reliable second brain across deals, fundraising, sales, product, and research. Wants morning briefing, next actions, workspace continuity, artifact generation, and memory import from AI tools. - -### 5.2 Consultant / client operator - -Works across multiple clients and needs hard boundaries between workspaces. Wants client-specific memory, artifacts, reports, decisions, and auditability. - -### 5.3 Team lead - -Needs shared context, shared artifacts, shared memory, agent delegation, and team activity visibility. - -### 5.4 Power user / developer - -Needs MCPs, custom skills, custom agents, external tools, local-first control, shell/code/data access, and explicit permissions. - -### 5.5 Admin / security owner - -Needs RBAC, audit logs, connector/MCP governance, data retention, workspace isolation, and visibility into agent/tool actions. - ---- - -## 6. Product Principles - -1. **Workspace first.** Everything important happens inside or across workspaces. -2. **Memory is visible.** Users must be able to inspect, edit, merge, archive, and delete memory. -3. **Win+K is always available.** Search, launch, run, create, navigate, and extend from anywhere. -4. **Artifacts are outcomes.** Documents, decks, spreadsheets, dashboards, research, code, media, and reports are first-class. -5. **Agents are explicit.** Every agent declares goal, scope, model, memory, tools, skills, permissions, and autonomy. -6. **Extensions are governed.** Skills, connectors, MCPs, and marketplace installs require visible trust and approval flows. -7. **Local-first by default.** Users own their data and choose what to sync/share. -8. **Team means shared intelligence.** Team mode compounds memory, artifacts, skills, MCPs, and decisions. -9. **Automation with trust.** Overnight and scheduled work is visible, explainable, stoppable, and reviewable. -10. **No hidden context.** If Waggle uses information to answer or act, the user can inspect the source. - ---- - -## 7. North Star Metrics - -### 7.1 Activation metrics - -- % of new users who complete onboarding. -- % who import at least one memory source. -- % who approve memory review. -- % who create or open a workspace after onboarding. -- Time from first launch to first useful workspace. - -### 7.2 Engagement metrics - -- Daily active workspaces per user. -- Home Cockpit continuation rate. -- Win+K usage per active day. -- Memory searches per active day. -- Artifacts opened/created per workspace. -- Agent runs per workspace. -- Skills invoked per workspace. - -### 7.3 Trust metrics - -- % of memories with source/provenance. -- % of low-confidence memories reviewed. -- User edits/deletions of memory. -- Agent permission prompts accepted/denied. -- Connector/MCP install approval completion. - -### 7.4 Productivity metrics - -- Automations completed. -- Hours saved estimate. -- Artifacts generated. -- Tasks closed. -- Returning-user time to first action. - ---- - -## 8. Release Scope - -### Phase 0 - Architecture alignment - -- Freeze IA and route names. -- Create AppShell and global navigation labels. -- Define shared frontend types. -- Map current components to new surfaces. - -### Phase 1 - Core runtime - -- Home Cockpit. -- Workspace Desktop. -- Win+K Command Center. -- Workspace context/state API extension. - -### Phase 2 - Work layer - -- Memory Center. -- Artifact Center. -- Workspace Creation. -- Onboarding flow: Welcome, Profile, Tool Discovery, Memory Import, Memory Review. - -### Phase 3 - Intelligence layer - -- Agent Center and Agent Builder. -- Skills Hub and Skill Builder. -- Automation Center and Automation Builder. - -### Phase 4 - Extend layer - -- Connector Hub. -- MCP Hub. -- Marketplace / Extend Waggle. -- Install audit and approval UX. - -### Phase 5 - Team intelligence - -- Team Workspace. -- Shared memory/artifacts/skills/MCPs. -- RBAC UI. -- Audit views. - ---- - -## 9. Core Mental Model - -### 9.1 System loop - -```text -Capture -> Understand -> Remember -> Act -> Produce -> Learn -``` - -- **Capture:** Signals come from conversations, tools, files, code, email, calendar, Slack, GitHub, browser, and manual input. -- **Understand:** Waggle classifies, extracts, deduplicates, links, and scores confidence. -- **Remember:** Memory is stored as personal, workspace, team, or organization memory. -- **Act:** Agents use memory, skills, tools, connectors, MCPs, and automations. -- **Produce:** Work results become artifacts, decisions, tasks, reports, code, decks, and dashboards. -- **Learn:** Outcomes, feedback, corrections, and traces improve future context. - -### 9.2 Primary object hierarchy - -```text -User - -> Home - -> Workspaces - -> Memory - -> Sessions - -> Artifacts - -> Agents - -> Skills - -> Automations - -> Connectors/MCPs - -> Team - -> Shared Workspaces - -> Shared Memory - -> Shared Artifacts - -> Shared Skills - -> Shared MCPs -``` - ---- - -## 10. Information Architecture - -### 10.1 Global layer - -- Win+K Command Center. -- Global search. -- Quick capture. -- Notifications. -- Recent/favorites. -- Global settings. - -### 10.2 Work layer - -- Home Cockpit. -- Workspaces. -- Memory. -- Artifacts. -- Sessions. - -### 10.3 Intelligence layer - -- Agents. -- Skills. -- Automations. -- Decisions / traces / evaluations where needed. - -### 10.4 Extend layer - -- Connectors. -- MCPs. -- Models. -- External tools. -- Marketplace. - -### 10.5 Team layer - -- Team workspace. -- Members. -- Roles and permissions. -- Shared memory. -- Shared artifacts. -- Shared skills. -- Shared MCPs. -- Activity and audit. - -### 10.6 System layer - -- Profile. -- Preferences. -- Security. -- Storage. -- Billing/plan. -- Audit logs. -- Data export/deletion. - ---- - -## 11. Product Object Glossary - -| Object | Definition | User-visible? | Notes | -|---|---|---:|---| -| Workspace | Bounded context for a project/client/research/personal area | Yes | Primary product object | -| Memory | Durable knowledge item with source, confidence, scope, and actions | Yes | Must be inspectable | -| Awareness item | Active short-term item: task/action/pending/flag | Indirect | Drives Home/Workspace state | -| Session | Conversation/work session log | Yes | Should be navigable and related to memory/artifacts | -| Artifact | Outcome: doc/deck/sheet/dashboard/research/code/media | Yes | First-class result layer | -| Agent | AI teammate with goal, model, memory, tools, skills, autonomy | Yes | Must be explicit and governed | -| Skill | Reusable capability: prompt + tools + inputs/outputs + memory access | Yes | Used by user, agents, automations | -| Connector | External data/tool integration | Yes | Gmail, Slack, GitHub, Drive, etc. | -| MCP | Model Context Protocol capability server | Yes | Power-user extension layer | -| Automation | Scheduled/event-driven workflow using triggers/actions/agents | Yes | Must be visible/stoppable | -| Team | Shared knowledge and governance boundary | Yes | Includes members, roles, shared objects | -| Command | Win+K action/search/create/run/navigate/extend item | Yes | Global interaction primitive | - ---- - -## 12. Detailed Product Requirements - -### 12.1 Home Cockpit - -**Purpose:** Give the user a useful daily briefing and immediate next actions. - -**User stories** - -- As a returning user, I want to see what I was working on so I can continue quickly. -- As a user, I want to know what happened overnight so I can trust automations. -- As a user, I want suggested next actions based on memory, sessions, tasks, and schedules. -- As a user, I want quick capture from the home screen without opening a workspace. - -**Functional requirements** - -- Display greeting with user name and date/time. -- Show active/recent workspaces ranked by recency and priority. -- Show overnight summary: memories consolidated, artifacts created, automations completed, failures. -- Show upcoming meetings/events/tasks. -- Show suggested next actions. -- Show quick capture input for note/task/link/file. -- Show active models and current mode only if relevant; do not clutter. -- Provide access to Win+K hint. - -**States** - -- Loading. -- First-run empty. -- Normal populated. -- Attention required. -- Offline/local-only. -- Overnight failure. -- Permission denied for shared/team data. - -**Acceptance criteria** - -- User can understand the day in under 30 seconds. -- User can continue a workspace in one click. -- User can open Win+K from the keyboard. -- User can capture a note/task/link/file from Home. - -### 12.2 Workspace Desktop - -**Purpose:** Primary runtime for a bounded work context. - -**User stories** - -- As a user, I want all relevant context for a workspace on one screen. -- As a user, I want chat/agent interaction without losing memory/artifact/task visibility. -- As a user, I want to open artifacts, inspect memory, run skills, start automations, and manage agents. -- As a team member, I want to see who is active and what changed. - -**Functional requirements** - -- Header: workspace name, type, status, team/avatar stack, share controls. -- Tabs: Overview, Chat, Research/Notes, Artifacts, Memory, Tasks, Timeline, Settings. -- Main canvas widgets: AI workspace/chat, key artifacts, tasks, memory highlights, research overview, recent activity. -- Right panel: workspace info, members, last activity, quick actions. -- Bottom/status bar: agents running, automations active, MCPs connected, new widget. -- Configurable widgets in later phase; fixed default layout in initial release. - -**States** - -- No memory. -- Active work. -- Agent running. -- Artifact ready. -- Task blocked. -- Sync conflict. -- Permission denied. -- Offline. - -**Acceptance criteria** - -- Chat is one widget, not the whole product. -- Workspace state is always visible. -- User can reach memory, artifacts, agents, skills, tasks, automations, and settings from the workspace. - -### 12.3 Win+K Command Center - -**Purpose:** Universal command layer for search, launch, create, run, navigate, and extend. - -**User stories** - -- As a keyboard-first user, I want to reach any object or action instantly. -- As a new user, I want a single place to ask “what can I do?” -- As a power user, I want to install/connect/run actions without browsing settings. - -**Functional requirements** - -- Opens from anywhere with Win+K or Cmd+K. -- Search across workspaces, memory, artifacts, sessions, people, agents, skills, commands, connectors, MCPs. -- Category sections: Search, Launch, Create, Run, Navigate, Extend. -- Supports natural language command input. -- Displays recent and suggested actions. -- Permission-gated actions show approval prompt before execution. -- Should be accessible from mouse and keyboard. - -**States** - -- Idle. -- Query active. -- Grouped results. -- No results. -- Permission prompt. -- Command success. -- Command failure. - -**Acceptance criteria** - -- Every major object and action is reachable. -- No user needs to know where a feature lives to use it. - -### 12.4 Memory Center - -**Purpose:** Make memory visible, trustworthy, searchable, and editable. - -**User stories** - -- As a user, I want to know what Waggle remembers. -- As a user, I want to know why Waggle knows something. -- As a user, I want to edit, merge, archive, or delete memory. -- As a user, I want low-confidence or conflicting memories surfaced for review. - -**Functional requirements** - -- Search memory globally and within workspace/team. -- Tabs: Active, Workspace, Team, Sources, Graph, Trash. -- Filter by type, source, confidence, importance, workspace, tag, date. -- Memory detail view with content, type, source, evidence, confidence, relevance, last used, tags, timeline, connected graph. -- Actions: edit, merge, archive, delete, share, add to workspace/team. -- Show related memories and source evidence. - -**States** - -- Empty memory. -- Importing. -- Consolidating. -- Active. -- Low confidence. -- Conflict. -- Deprecated. -- Source unavailable. - -**Acceptance criteria** - -- Every memory answers: what do I know, why do I know it, where did it come from, how confident am I, can I edit it? - -### 12.5 Artifact Center - -**Purpose:** Organize outcomes, not just attachments. - -**Functional requirements** - -- Artifact categories: documents, presentations, spreadsheets, dashboards, research, code, media, designs, other. -- Search for a topic returns artifacts plus related memories, sessions, tasks, agents, and people. -- Artifact detail panel includes preview, metadata, workspace, creator, updated time, access, status, tags, related items, actions. -- Actions: open, share, duplicate, move, delete, relate to workspace/memory/session/task. - -**Acceptance criteria** - -- Search “Germany GTM” returns all relevant outcome objects, not just files. - -### 12.6 Skills Hub and Skill Builder - -**Purpose:** Make reusable capabilities explicit and composable. - -**Functional requirements** - -- Skills Hub tabs: My Skills, Marketplace, Custom Skills, Workspace Skills. -- Skill object fields: name, description, category, instructions, inputs, outputs, tools/data, memory access, owner, status, usage, last used. -- Skill Builder steps: Basic Info, Instructions, Inputs & Outputs, Tools & Data, Review & Create. -- Support test run before publishing. -- Skills can be assigned to agents, workspaces, automations, or used directly. - -**Acceptance criteria** - -- A user can understand what a skill does, where it is used, and what access it has. - -### 12.7 Connector Hub - -**Purpose:** Connect external tools and data. - -**Functional requirements** - -- Show connected connectors with status and last sync. -- Show available connectors by category. -- Show health, recent sync activity, token expiry, and errors. -- Actions: connect, sync now, manage, revoke, reconnect. -- Recommended connectors based on onboarding and workspace needs. - -**Acceptance criteria** - -- Users see exactly what tools are connected and whether data is flowing. - -### 12.8 MCP Hub - -**Purpose:** Enable power-user extension through Model Context Protocol servers. - -**Functional requirements** - -- Tabs: Installed, Available, Marketplace, Custom, Remote Registry. -- MCP object fields: name, description, version, status, connected to, last used, locality, risk, permissions, logs. -- Actions: install, start/stop, test, scope, view logs, revoke, add custom MCP. -- Risky MCPs require approval and audit trail. - -**Acceptance criteria** - -- MCPs are powerful but always visible, scoped, auditable, and reversible. - -### 12.9 Agent Center and Agent Builder - -**Purpose:** Manage agents as explicit work actors. - -**Functional requirements** - -- Agent categories: Personal, Workspace, Team, Autonomous, Templates, Archive. -- Agent card/list shows goal, status, owner, workspace, capabilities, model, success rate, last run. -- Agent Builder steps: Basic Info, Capabilities, Memory & Tools, Permissions, Review & Create. -- Agent fields: name, goal, description, persona/avatar, model, autonomy, type, memory scope, skills, connectors, MCPs, permissions, status. -- Agent safety: no hidden tool/memory access; all elevated access is reviewed. - -**Acceptance criteria** - -- User can explain what an agent can see and do before enabling it. - -### 12.10 Automation Center and Automation Builder - -**Purpose:** Manage scheduled and event-driven work. - -**Functional requirements** - -- Tabs: Overview, Running, Scheduled, Triggers, History, Logs. -- Automation Builder steps: Trigger, Condition, Actions, Review & Activate. -- Automation fields: name, trigger, condition, actions, agent, notification, schedule, workspace, status. -- Actions: run now, pause, edit, view logs, retry, disable. -- Failed or risky automations surface in Home Cockpit attention required. - -**Acceptance criteria** - -- Overnight work is visible, reviewable, and stoppable. - -### 12.11 Team Workspace - -**Purpose:** Shared intelligence for teams. - -**Functional requirements** - -- Tabs: Overview, Shared Memory, Shared Artifacts, Skills, Agents, MCPs, Automations, Settings. -- Show team spaces, metrics, members, activity, pinned items, team goals, upcoming events, team intelligence summary. -- Allow sharing memory/artifact/skill/MCP/automation into team scope subject to role. -- Support invite/member management and RBAC. - -**Acceptance criteria** - -- Team mode feels like shared knowledge and shared outcomes, not only members/chat. - -### 12.12 Onboarding Flow - -**Purpose:** Setup without overwhelming users. - -**Steps** - -1. First Launch - promise and privacy. -2. Who Are You - role, industry, work type, team size, goals. -3. Tool Discovery - ask which tools are used. -4. Memory Import - connect/import from AI tools, files, and work tools. -5. Memory Review - approve before importing. -6. Workspace Creation - create first useful context. -7. Home Cockpit - land with useful state. - -**Acceptance criteria** - -- Onboarding asks user questions, not infrastructure questions. -- Connectors/MCPs/skills are recommended from user selections. -- Nothing imports without explicit review/approval. - -### 12.13 Marketplace / Extend Waggle - -**Purpose:** Central extension surface. - -**Functional requirements** - -- Categories: Skills, Agents, Connectors, MCPs, Models, Templates. -- Search/filter/sort by category, trust, popularity, source, risk. -- Show installed, update available, risk approval, install failed. -- Install actions write to install audit. -- Support workspace/team scoping. - -**Acceptance criteria** - -- Power users can extend Waggle without hunting through settings. - ---- - -## 13. User Journeys - -### Journey 1 - First-time setup - -1. User launches Waggle. -2. Sees First Launch promise and privacy note. -3. Clicks Continue. -4. Enters profile. -5. Selects tools used. -6. Connects/imports memory sources. -7. Reviews found memory. -8. Approves import. -9. Creates first workspace. -10. Lands in Home Cockpit with useful next action. - -### Journey 2 - Skip import - -1. User completes profile and tool discovery. -2. Declines import. -3. Creates workspace manually. -4. Lands in Home Cockpit empty state with suggested first actions. - -### Journey 3 - Returning daily user - -1. User opens Waggle. -2. Home Cockpit shows active work, overnight summary, and next actions. -3. User clicks Continue Germany GTM. -4. Workspace Desktop opens. -5. User reviews memory highlights and artifacts. -6. User runs a skill or asks the workspace agent. - -### Journey 4 - Find something with Win+K - -1. User presses Win+K. -2. Types “Germany pricing.” -3. Results show memories, artifacts, sessions, tasks, and agents. -4. User opens pricing model artifact. - -### Journey 5 - Create memory manually - -1. User opens quick capture or Memory Center. -2. Adds note/task/link/file. -3. Selects workspace and scope. -4. Memory appears as awareness/working memory. -5. Consolidation later promotes if relevant. - -### Journey 6 - Review low-confidence memory - -1. Home Cockpit flags low-confidence imported memory. -2. User opens Memory Center. -3. Reviews evidence and source. -4. Edits or archives memory. -5. Confidence/status updates. - -### Journey 7 - Generate artifact from workspace - -1. User opens Workspace Desktop. -2. Runs “Board Presentation” skill. -3. Agent uses workspace memory and artifacts. -4. Artifact is generated. -5. Artifact is linked back to memory/session/tasks. - -### Journey 8 - Install connector - -1. User opens Connector Hub or Marketplace. -2. Selects Gmail. -3. Reviews permissions. -4. Connects account. -5. Sync status and recent activity appear. - -### Journey 9 - Install MCP - -1. Power user opens MCP Hub. -2. Selects Postgres MCP. -3. Reviews risk and scope. -4. Approves installation. -5. MCP becomes available to selected workspace/agent. -6. Install audit is recorded. - -### Journey 10 - Create agent - -1. User opens Agent Builder. -2. Enters goal. -3. Selects model and autonomy. -4. Assigns skills, memory scope, connectors, and MCPs. -5. Reviews permissions. -6. Creates agent. -7. Agent appears in Agent Center and target workspace. - -### Journey 11 - Create skill - -1. User opens Skill Builder. -2. Defines purpose and instructions. -3. Defines inputs/outputs. -4. Selects tools/data/memory access. -5. Tests skill. -6. Publishes to personal/workspace/team scope. - -### Journey 12 - Create automation - -1. User opens Automation Builder. -2. Chooses trigger. -3. Adds condition. -4. Adds actions and agent. -5. Tests automation. -6. Activates. -7. Runs appear in Automation Center and Home overnight summary. - -### Journey 13 - Invite team member - -1. Owner opens Team Workspace. -2. Invites member. -3. Selects role. -4. New member sees shared workspaces/memory/artifacts based on permission. -5. Audit records invitation and access changes. - -### Journey 14 - Share memory to team - -1. User opens Memory Center. -2. Selects memory. -3. Chooses Share to Team. -4. Reviews scope and sensitivity. -5. Memory becomes shared team memory if allowed. - -### Journey 15 - Agent needs approval - -1. Agent attempts elevated action. -2. Permission prompt appears. -3. User approves/denies/modifies. -4. Decision is logged. -5. Agent continues or stops. - -### Journey 16 - Automation failure - -1. Scheduled automation fails overnight. -2. Home Cockpit shows attention required. -3. User opens logs. -4. User retries, pauses, or edits automation. - -### Journey 17 - Search across everything - -1. User opens Win+K. -2. Types natural language query. -3. Results grouped by object type. -4. User selects action/object. - -### Journey 18 - Workspace creation after import - -1. Memory Review finds projects. -2. User chooses Germany GTM. -3. Workspace creation screen pre-fills name/type/suggested capabilities. -4. User creates workspace. - -### Journey 19 - Archive workspace - -1. User opens workspace settings. -2. Chooses Archive. -3. Reviews effect on memory/artifacts/automations. -4. Workspace becomes archived, searchable but inactive. - -### Journey 20 - Delete memory - -1. User opens memory detail. -2. Chooses Delete. -3. Confirmation explains scope and consequences. -4. Memory is deleted or tombstoned per policy. - ---- - -## 14. State Model - -### 14.1 Global states - -Every major screen must implement: - -- Loading. -- Empty. -- Populated. -- Error. -- Offline/local-only. -- Syncing. -- Permission denied. -- Partial data. -- Approval required. - -### 14.2 Home states - -- First-run empty. -- Normal daily briefing. -- Attention required. -- Overnight failure. -- No workspaces. -- Offline. - -### 14.3 Workspace states - -- Empty workspace. -- Active workspace. -- Agent running. -- Task blocked. -- Artifact ready. -- Sync conflict. -- Permission denied. -- Archived. - -### 14.4 Memory states - -- Raw. -- Imported. -- Working. -- Consolidated. -- Active. -- Low confidence. -- Conflicting. -- Deprecated. -- Archived. -- Deleted/tombstoned. - -### 14.5 Agent states - -- Draft. -- Idle. -- Running. -- Paused. -- Failed. -- Waiting for approval. -- Completed. -- Archived. - -### 14.6 Automation states - -- Draft. -- Scheduled. -- Running. -- Success. -- Failed. -- Paused. -- Awaiting approval. -- Disabled. - -### 14.7 Extension states - -- Available. -- Installed. -- Update available. -- Installing. -- Failed install. -- Risk approval required. -- Disabled/revoked. - ---- - -## 15. Data Model Requirements - -### 15.1 Existing repo-aligned entities - -The repo already includes or implies these data foundations: - -- `identity` -- `awareness` -- `sessions` -- `memory_frames` -- `memory_frames_fts` -- `knowledge_entities` -- `knowledge_relations` -- `improvement_signals` -- `install_audit` -- `procedures` -- `ai_interactions` -- `execution_traces` -- `evolution_runs` -- `harvest_sources` -- `workspace.json` -- `workspace.mind` -- `sessions/` JSONL logs - -### 15.2 Target frontend objects - -```ts -type WorkspaceType = 'project' | 'client' | 'research' | 'personal' | 'team' | 'organization'; -type Scope = 'personal' | 'workspace' | 'team' | 'organization'; -type Confidence = number; // 0-100 - -type MemoryKind = 'fact' | 'decision' | 'task' | 'preference' | 'strategy' | 'learning' | 'goal' | 'entity'; -type ArtifactKind = 'document' | 'presentation' | 'spreadsheet' | 'dashboard' | 'research' | 'code' | 'media' | 'design' | 'other'; -type AgentType = 'personal' | 'workspace' | 'team' | 'autonomous'; -type AutonomyLevel = 'manual' | 'guided' | 'medium' | 'high'; -type ExtensionType = 'skill' | 'connector' | 'mcp' | 'model' | 'template' | 'external_tool'; -``` - -### 15.3 Proposed workspace schema additions - -Add if not already present: - -```ts -interface WorkspaceConfigV2 { - id: string; - name: string; - description?: string; - type: WorkspaceType; - group: string; - icon?: string; - status: 'active' | 'paused' | 'archived'; - model?: string; - personaId?: string; - templateId?: string; - tools?: string[]; - skills?: string[]; - agentIds?: string[]; - connectorIds?: string[]; - mcpIds?: string[]; - storageType?: 'virtual' | 'local' | 'team'; - storagePath?: string; - teamId?: string; - teamRole?: 'owner' | 'admin' | 'member' | 'viewer'; - riskLevel?: 'minimal' | 'limited' | 'high-risk' | 'unacceptable'; - created: string; - updatedAt: string; - lastActiveAt?: string; -} -``` - -### 15.4 Proposed memory fields - -Memory should expose: - -- `id` -- `kind` -- `title` -- `content` -- `scope` -- `workspaceId` -- `teamId` -- `source` -- `sourceId` -- `sourceUrl/path` -- `confidence` -- `importance` -- `evidence[]` -- `tags[]` -- `relatedMemoryIds[]` -- `relatedArtifactIds[]` -- `createdAt` -- `updatedAt` -- `lastAccessedAt` -- `status` - -Use `metadata` initially if schema migration is too heavy, but PRD recommends explicit fields for confidence/provenance eventually. - -### 15.5 Proposed agent fields - -- `id` -- `name` -- `type` -- `goal` -- `description` -- `personaId` -- `model` -- `autonomyLevel` -- `workspaceIds` -- `teamId` -- `memoryScopes` -- `skillIds` -- `connectorIds` -- `mcpIds` -- `permissions` -- `status` -- `createdBy` -- `lastRunAt` -- `successRate` - -### 15.6 Proposed artifact fields - -- `id` -- `title` -- `kind` -- `workspaceId` -- `teamId` -- `createdBy` -- `source` -- `status` -- `mimeType` -- `storagePath` -- `previewUrl` -- `tags[]` -- `relatedMemoryIds[]` -- `relatedSessionIds[]` -- `relatedTaskIds[]` -- `relatedAgentIds[]` -- `createdAt` -- `updatedAt` - ---- - -## 16. API Requirements - -### 16.1 Home - -- `GET /api/home/briefing` -- `POST /api/quick-capture` -- `GET /api/home/overnight` - -### 16.2 Workspaces - -- `GET /api/workspaces` -- `POST /api/workspaces` -- `GET /api/workspaces/:id` -- `PATCH /api/workspaces/:id` -- `GET /api/workspaces/:id/state` -- `GET /api/workspaces/:id/context` -- `GET /api/workspaces/:id/activity` - -### 16.3 Command Center - -- `GET /api/command/search?q=` -- `POST /api/command/execute` -- `GET /api/command/recent` -- `GET /api/command/suggestions` - -### 16.4 Memory - -- `GET /api/memory` -- `GET /api/memory/:id` -- `POST /api/memory` -- `PATCH /api/memory/:id` -- `POST /api/memory/:id/archive` -- `DELETE /api/memory/:id` -- `POST /api/memory/merge` -- `GET /api/memory/graph` - -### 16.5 Harvest - -- `POST /api/harvest/preview` -- `POST /api/harvest/commit` -- `GET /api/harvest/sources` -- `POST /api/harvest/sources/:id/sync` - -### 16.6 Artifacts - -- `GET /api/artifacts` -- `POST /api/artifacts` -- `GET /api/artifacts/:id` -- `PATCH /api/artifacts/:id` -- `DELETE /api/artifacts/:id` -- `GET /api/artifacts/search-related?q=` - -### 16.7 Agents - -- `GET /api/agents` -- `POST /api/agents` -- `GET /api/agents/:id` -- `PATCH /api/agents/:id` -- `POST /api/agents/:id/run` -- `POST /api/agents/:id/pause` -- `GET /api/agents/:id/traces` - -### 16.8 Skills - -- `GET /api/skills` -- `POST /api/skills` -- `PATCH /api/skills/:id` -- `POST /api/skills/:id/test` -- `POST /api/skills/:id/install` - -### 16.9 Connectors/MCPs/Marketplace - -- `GET /api/connectors` -- `POST /api/connectors/:id/connect` -- `POST /api/connectors/:id/sync` -- `POST /api/connectors/:id/revoke` -- `GET /api/mcps` -- `POST /api/mcps/install` -- `POST /api/mcps/:id/test` -- `POST /api/mcps/:id/revoke` -- `GET /api/marketplace` -- `POST /api/marketplace/install` - -### 16.10 Automations - -- `GET /api/automations` -- `POST /api/automations` -- `PATCH /api/automations/:id` -- `POST /api/automations/:id/run` -- `POST /api/automations/:id/pause` -- `GET /api/automations/:id/logs` - -### 16.11 Team/RBAC - -- `GET /api/teams/:id` -- `POST /api/teams/:id/invite` -- `PATCH /api/teams/:id/members/:memberId` -- `GET /api/teams/:id/audit` -- `POST /api/share` - ---- - -## 17. RBAC and Permissions - -### 17.1 Scopes - -- Personal. -- Workspace. -- Team. -- Organization. - -### 17.2 Roles - -| Role | Can view | Can create | Can share | Can manage people | Can install extensions | Can manage security | -|---|---|---|---|---|---|---| -| Owner | All | Yes | Yes | Yes | Yes | Yes | -| Admin | Most | Yes | Yes | Yes | Yes, with policy | Limited | -| Contributor | Assigned | Yes | With approval | No | No or approval | No | -| Viewer | Assigned | No | No | No | No | No | - -### 17.3 Permission principles - -- Agents inherit the minimum permissions required by assigned scope. -- MCPs require explicit scope: personal/workspace/team. -- Connectors require consent and revocation path. -- Automations can only run actions allowed by the user/team role. -- Shared memories/artifacts must display scope and access. -- Elevated actions require human approval. - ---- - -## 18. Security, Privacy, and Compliance Requirements - -### 18.1 Security requirements - -- Local-first storage default where supported. -- User-controlled sync and sharing. -- Workspace-level isolation. -- Team RBAC. -- Connector/MCP install audit. -- Agent permission declarations. -- Append-only audit for AI interactions and sensitive actions. -- Approval class for elevated/critical capabilities. -- Clear revoke/delete/export actions. - -### 18.2 Privacy requirements - -- No memory import without review/approval. -- No connector sync without consent. -- No agent hidden access. -- Memory source and scope must be visible. -- Team sharing requires explicit scope. -- User must be able to archive/delete memory. - -### 18.3 Compliance requirements - -- AI interactions should record provider/model, input/output, tools, human action, risk context, workspace/session/persona. -- High-risk workspaces should surface risk level and stronger approvals. -- Audit logs should be immutable or append-only where feasible. - ---- - -## 19. Design System Requirements - -### 19.1 Core components - -- AppShell. -- Primary navigation. -- Workspace switcher. -- Command Center modal. -- Cards: workspace, memory, artifact, agent, skill, connector, MCP, automation. -- Status badges. -- Confidence badges. -- Source/evidence chips. -- Timeline. -- Activity feed. -- Detail drawer. -- Builder stepper. -- Approval prompt. -- Empty state. -- Error state. -- Skeleton loader. -- Table/list/grid view toggle. - -### 19.2 Interaction patterns - -- All primary screens support search. -- All primary objects support detail view. -- Risky actions show confirmation/approval. -- Create flows use stepper patterns. -- Power features are accessible but not forced during onboarding. -- Win+K is available everywhere. - -### 19.3 Accessibility - -- Full keyboard support. -- Visible focus states. -- ARIA labels for command palette and builders. -- Sufficient contrast for dark theme. -- Non-color indicators for status. -- Screen reader friendly tables/lists. - ---- - -## 20. Technical Refactor Map - -### 20.1 Keep and promote - -- `WorkspaceBriefing.tsx` -> seed for Home Cockpit widgets. -- `workspace-state.ts` -> extend as backend state builder. -- `workspace-context.ts` -> expand contract for Home/Workspace screens. -- `WorkspaceManager` -> keep; add fields only as needed. -- `.mind` schema -> keep; migrate carefully for explicit confidence/provenance if needed. - -### 20.2 Rework - -- `MemoryApp.tsx` -> Memory Center. -- App surfaces -> Work/Intelligence/Extend categories. -- Onboarding wizard -> simplify to user-oriented 5-step setup plus workspace creation. -- Types -> update AppView, WorkspaceContext, MemoryFrame, Agent, Skill, Connector, MCP. - -### 20.3 Create - -- `HomeCockpit`. -- `WorkspaceDesktop`. -- `CommandCenter`. -- `ArtifactCenter`. -- `SkillBuilder`. -- `AgentBuilder`. -- `AutomationBuilder`. -- `MarketplaceExtend`. -- `TeamWorkspace`. -- `RBAC/Audit` components. - -### 20.4 Avoid - -- Do not add more top-level apps without fitting IA. -- Do not duplicate backend state calculation in frontend. -- Do not hide connectors/MCPs in Settings. -- Do not default to blank chat on launch. -- Do not allow agents or automations to gain hidden access. - ---- - -## 21. Implementation Roadmap - -### Sprint 1 - Shell and IA - -- AppShell navigation. -- Route map. -- Shared types. -- Command provider skeleton. -- Feature flags if needed. - -### Sprint 2 - Home and workspace state - -- Extend workspace context/state API. -- Home Cockpit. -- Workspace Desktop overview. -- Quick capture. - -### Sprint 3 - Command Center - -- Indexed search provider. -- Result groups. -- Command execution. -- Recent/suggested commands. - -### Sprint 4 - Memory and artifacts - -- Memory Center. -- Artifact Center. -- Related object search. -- Detail drawers. - -### Sprint 5 - Onboarding and workspace creation - -- First Launch. -- Who Are You. -- Tool Discovery. -- Memory Import. -- Memory Review. -- Workspace Creation. - -### Sprint 6 - Intelligence layer - -- Agent Center. -- Agent Builder. -- Skills Hub. -- Skill Builder. -- Automation Center. -- Automation Builder. - -### Sprint 7 - Extend layer - -- Connector Hub. -- MCP Hub. -- Marketplace / Extend. -- Install audit UI. - -### Sprint 8 - Team and governance - -- Team Workspace. -- RBAC. -- Shared objects. -- Audit/activity views. - -### Sprint 9 - Hardening - -- Empty/error/offline states. -- Permissions. -- Accessibility. -- Tests. -- Performance. -- Visual polish. - ---- - -## 22. Testing and Acceptance - -### 22.1 Product acceptance - -- User can complete onboarding without understanding MCPs/connectors/skills jargon. -- User can land in Home Cockpit and continue useful work. -- User can use Win+K to find and run all major actions. -- User can inspect and edit memory. -- User can create a workspace, agent, skill, and automation. -- User can install/revoke connector/MCP with audit trail. -- Team user can share memory/artifact with role-appropriate permissions. - -### 22.2 Technical acceptance - -- No major screen depends only on mocked data when backend support exists. -- New components have loading/empty/error/offline/permission states. -- Sensitive actions are approval-gated. -- State derivation is centralized in backend where practical. -- Frontend types are consistent with API contracts. -- Existing memory/workspace foundations are reused. - -### 22.3 QA scenarios - -- Fresh install, no memory. -- Fresh install, import skipped. -- Fresh install, import approved. -- Returning user with active workspaces. -- Returning user with overnight failures. -- Offline mode. -- Permission denied team workspace. -- Agent approval required. -- MCP install risk approval. -- Low-confidence memory review. - ---- - -## 23. Open Questions - -1. Should the first release support true widget customization in Workspace Desktop, or fixed layout only? -2. Should Home Cockpit be personal-only or also support team/global views? -3. Should Memory Center expose graph view in v1 or only later? -4. Which connectors/MCPs are real in v1 vs seeded/mock catalog entries? -5. How much of marketplace is local catalog vs remote registry initially? -6. Should artifacts be stored in current workspace filesystem, virtual store, or external references first? -7. What is the minimum viable RBAC implementation for team mode? -8. What exact retention/delete/tombstone behavior is required for memory? - ---- - -## 24. Risks and Mitigations - -| Risk | Impact | Mitigation | -|---|---|---| -| UX becomes too complex | High | Keep Home/Workspace/Win+K as spine; hide power features until needed | -| Backend not ready for all screens | Medium | Use existing foundations, thin adapters, mock catalog entries only where safe | -| Memory trust issues | High | Source, confidence, evidence, review, edit/delete flows | -| Agent safety concerns | High | Explicit permissions, approval prompts, audit logs | -| Marketplace scope creep | Medium | Start with catalog + install audit, postpone billing/public marketplace | -| Team RBAC complexity | Medium | Implement simple role model first | -| Performance of global search | Medium | Start with local indexed providers and async result groups | -| Visual mocks overfit implementation | Medium | Use PRD acceptance criteria over pixel perfection | - ---- - -## 25. Claude Code Implementation Prompt - -Use this prompt when starting implementation: - -```text -You are implementing the Waggle OS UX refactor. The product must become a workspace-first Agent Desktop, not an app launcher and not a chat-first product. The new UX spine is Home Cockpit, Workspace Desktop, Win+K Command Center, visible Memory, Artifacts, Agents, Skills, Automations, and an Extend layer for Connectors/MCPs/Marketplace. - -First inspect these files: -- apps/web/src/components/os/WorkspaceBriefing.tsx -- packages/server/src/local/workspace-state.ts -- packages/server/src/local/routes/workspace-context.ts -- packages/hive-mind-core/src/workspace-manager.ts -- packages/hive-mind-core/src/mind/schema.ts -- apps/web/src/lib/types.ts -- apps/web/src/components/os/overlays/OnboardingWizard.tsx -- apps/web/src/components/os/apps/MemoryApp.tsx -- packages/core/src/install-audit.ts -- packages/agent/src/tools.ts -- packages/memory-mcp - -Implement in this order: -1. AppShell and route IA. -2. Command Center provider and UI. -3. Home Cockpit from WorkspaceBriefing/workspace-state foundations. -4. Workspace Desktop from workspace context/state. -5. Memory Center and Artifact Center. -6. Onboarding and Workspace Creation. -7. Agent/Skill/Automation builders. -8. Connector/MCP/Marketplace surfaces. -9. Team/RBAC/audit surfaces. -10. Empty/loading/error/offline/permission states. - -Rules: -- Workspace is the primary object. -- Win+K must be global. -- Memory must show source/confidence/scope/actions. -- Agents must declare memory/tools/skills/model/autonomy. -- Connectors and MCPs require visible trust and approval flows. -- Do not duplicate backend state logic in frontend if workspace-state can be extended. -``` - ---- - -## 26. Definition of Done - -The UX refactor is done when: - -1. Home Cockpit replaces blank-chat launch behavior. -2. Workspace Desktop is the default runtime for workspace work. -3. Win+K can search, launch, create, run, navigate, and extend. -4. Memory Center exposes source, confidence, evidence, scope, and edit/delete actions. -5. Artifact Center supports outcome search and related objects. -6. Onboarding leads from profile/tool discovery/import/review to first workspace. -7. Agents, skills, automations, connectors, MCPs, and marketplace have coherent IA. -8. Team workspace supports shared intelligence and roles. -9. Sensitive actions are approval-gated and audited. -10. All screens have required states. -11. Claude Code can continue implementation from this PRD without needing product interpretation. diff --git a/docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/_blueprint_extracted.txt b/docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/_blueprint_extracted.txt deleted file mode 100644 index 01e430b..0000000 --- a/docs/Waggle_OS_UX_Refactor_Master_Handoff_Package/_blueprint_extracted.txt +++ /dev/null @@ -1,739 +0,0 @@ -===== PAGE 1 ===== -Waggle OS UX Refactor Master Blueprint -Architecture, UX specification, implementation plan, and Claude Code handoff -This is the master handoff artifact for rebuilding Waggle OS into a workspace-first Agent Desktop. It consolidates the handwritten brainstorming, generated boards, screen concepts, -repo exploration, and implementation guidance. Generated images are included as visual direction; the written blueprint is the source of truth for implementation. -Deliverable area Included here -Architecture Package Mental model, information architecture, data model, workspace model, memory model, agent model, -MCP model, security model. -UX Package Every agreed screen, required states, interactions, and acceptance criteria. -User Journeys 26 primary journeys including first-time, returning, memory, agent, MCP, automation, team, offline and -audit flows. -Developer Handoff Component hierarchy, state management, API structure, RBAC, schemas, repo refactor map, roadmap. -Asset Pack Boards, mental model, consolidated poster, 21 screens and original notes collected in a single ZIP. -0. Executive Decision -Waggle should move from an app-oriented UI to a Work Intelligence OS. The new product spine is Home Cockpit, Workspace Desktop, Win+K Command Center, visible Memory, -Artifacts, and an Extend layer for Skills, Connectors, MCPs, Agents and Automations. -• Primary object: Workspace. -• Primary daily surface: Home Cockpit. -• Primary interaction: Win+K. -• Primary differentiator: visible, inspectable memory. -• Primary extension model: Skills + Connectors + MCPs + Agents + Automations. -• Backend strategy: reuse workspace/memory/session/audit foundations and add missing normalized APIs. - -===== PAGE 2 ===== -1. Repo-Grounded Findings -Repo area Evidence Refactor implication -Workspace Manager WorkspaceConfig already contains model, personaId, templateId, -tools, skills, team fields, storage, budget, tone, optimization and risk -fields. Workspaces live as workspace.json, workspace.mind and -sessions/. -Workspace is already the correct physical and logical container. -Make it the UX container. -Mind schema identity, awareness, sessions, memory_frames, FTS, -knowledge_entities, knowledge_relations, improvement_signals, -procedures, ai_interactions, execution_traces, evolution_runs, -harvest_sources. -Use existing memory substrate. Expose it visibly rather than -rebuilding. -Workspace state builder Builds active, openQuestions, pending, blocked, completed, stale, -recentDecisions and nextActions from memory, sessions and -awareness. -Best basis for Home Cockpit and Workspace Desktop. -Install audit Supports native, skill, plugin, mcp, connector and marketplace -capabilities with risk, trust, approval and action. -Best basis for Extend governance. -AI interactions Append-only AI logs with model/provider, tokens, tools, human -action, risk context, source, persona, input and output. -Use for audit, security and compliance UX. - -===== PAGE 3 ===== -Architecture Package 1: Mental Model -Waggle OS is a Work Intelligence OS: Capture -> Understand -> Remember -> Act -> Produce -> Learn. -Layer / entity Definition UX / implementation consequence -Capture Signals from external tools, local files, chats, sessions and imports. Tool discovery and harvest are core onboarding steps. -Understand Classify, deduplicate, extract entities, map relationships and score -confidence. -Memory Review shows categories, source and confidence. -Remember Store raw, working, workspace, long-term, team and future org -memory. -Memory Center is visible and editable. -Act Agents, skills, automations and MCPs operate within workspace -scope. -Workspace Desktop is the runtime surface. -Produce Artifacts: docs, decks, sheets, dashboards, code, media and decisions. Artifact Center is first-class. -Learn Feedback, traces, audit and improvement signals refine behavior. Waggle recommends skills, agents and automations. - -===== PAGE 4 ===== -Architecture Package 2: Information Architecture -Win+K is the global layer; the sidebar is secondary. The IA is Global / Work / Intelligence / Extend / Team / System. -Layer / entity Definition UX / implementation consequence -Global Win+K, universal search, launch, create, run, navigate and extend. Everything reachable from keyboard. -Work Home, Workspaces, Memory, Artifacts, Sessions. Daily work and outcomes. -Intelligence Agents, Skills, Automations. Delegation and reusable capabilities. -Extend Connectors, MCPs, Models, External Tools, Marketplace. Power-user extensibility outside Settings. -Team Team Workspaces, Shared Memory, Members, Roles, Permissions, -Activity. -Shared intelligence, not chat. -System Settings, Security, Audit Logs, Storage, Billing, Diagnostics. Governance and control. -• Do not bury Connectors/MCPs inside Settings. -• Command Center data source must span all major object types. -• Use route groups: /home, /workspaces, /memory, /artifacts, /agents, /automations, /skills, /connectors, /mcps, /team, /settings. - -===== PAGE 5 ===== -Architecture Package 3: Data Model -The current repo already has most core entities. The refactor should compose and expose them rather than replacing them. -Layer / entity Definition UX / implementation consequence -Workspace Container for memory, sessions, agents, skills and artifacts. Primary scope. -MemoryFrame Atomic or consolidated knowledge item with source and importance. Visible memory item. -AwarenessItem Active task/action/pending/flag. Feeds Home and Workspace Now. -Session Work session mapped to GOP/project/workspace. Session history and context. -KnowledgeEntity/Relation Graph nodes and edges. Related memories and graph view. -AIInteraction Append-only model/tool interaction log. Audit and compliance. -ExecutionTrace Agent run history. Agent logs and performance. -HarvestSource Import/sync tracking. Onboarding and memory import. -InstallAudit Trust trail for skills/MCPs/connectors/marketplace. Extend governance. -Artifact Target normalized object for outputs. Artifact Center and outcome memory. - -===== PAGE 6 ===== -Architecture Package 4: Workspace Model -Workspace is the bounded context that makes Waggle useful. -Layer / entity Definition UX / implementation consequence -Identity Name, type, owner, team, icon, description. Workspace header and cards. -Context Goals, scope, constraints, rules, metrics. Context Snapshot. -Memory Decisions, learnings, references, insights. Memory Highlights. -Sessions Chats, meetings, work sessions, activities. Recent Sessions. -Artifacts Docs, decks, sheets, dashboards, code, media. Key Artifacts. -Execution Agents, skills, tools, MCPs, automations. Workspace runtime controls. -Team Members, roles, shared memory and artifacts. Team Workspace. - -===== PAGE 7 ===== -Architecture Package 5: Memory Model -Memory must be visible, inspectable and governable. -Layer / entity Definition UX / implementation consequence -Raw Memory Unprocessed imported/captured content. Review before import. -Working Memory Fresh active context. Feeds Home and active workspace. -Workspace Memory Project/client/domain-specific knowledge. Default workspace retrieval. -Long-Term Memory Stable cross-work knowledge. Reusable personal context. -Team Memory Shared permissioned knowledge. Team Intelligence. -Org Memory Future governed enterprise corpus. Admin policy and compliance. -• Add confidence and provenance to the user-facing memory API, even if stored in metadata initially. -• Every memory detail screen must show source/evidence and edit/archive/delete/merge actions. -• Memory import must always have preview and approval. - -===== PAGE 8 ===== -Architecture Package 6: Agent Model -Agents are scoped workers with memory, skills, tools, permissions, model and autonomy. -Layer / entity Definition UX / implementation consequence -Personal Agent Owned by the user. Personal helper and tasks. -Workspace Agent Bound to project/workspace memory and tools. Main execution unit. -Team Agent Shared under team permissions. Shared workflows. -Autonomous Agent Scheduled/event-driven with guardrails. Overnight automations. -Agent Config Goal, model, autonomy, memory scopes, skills, tools, MCPs. Agent Builder. -Agent Trace Outcome, trace JSON, cost, duration, logs. Debugging and audit. -• Agent Builder must require model, goal, memory scope, skills/tools/MCPs and autonomy level. -• Agent run logs should link to execution_traces and ai_interactions. -• Autonomous agents require explicit schedule/trigger and stop/pause controls. - -===== PAGE 9 ===== -Architecture Package 7: MCP Model -MCPs are auditable capability providers for power users and agents. -Layer / entity Definition UX / implementation consequence -MCP Server Filesystem, Postgres, GitHub, Stripe, Jira, custom, remote. MCP Hub. -Connection Endpoint, credentials, health, version. Diagnostics. -Capability Tools exposed by server. Agent/skill/automation selection. -Scope Global, workspace, team or agent-specific. Permission safety. -Risk Risk level, trust source, approval class. Install approval. -Audit Proposed/approved/installed/rejected/failed/blocked. Governance. - -===== PAGE 10 ===== -Architecture Package 8: Security Model -Local-first, explicit, permissioned, auditable and reversible. -Layer / entity Definition UX / implementation consequence -Local-first Local .mind and local files by default. Privacy promise. -User Control User chooses imports, sync, sharing and connectors. Consent and review gates. -Workspace Isolation Data and memory scoped by workspace/team. No accidental leakage. -RBAC Owner/admin/member/viewer/guest. Team permissions. -Capability Approval Risk-based approvals for extensions. MCP/connector governance. -Append-only Audit AI interaction logs and install trail. Compliance and trust. -Risk Classification AI Act risk fields and timestamps. Enterprise readiness. -• Local-first is the default story. -• Elevated connectors/MCPs and autonomous actions require approval. -• Team access must obey RBAC at the API layer and the UI layer. - -===== PAGE 11 ===== -User Journey Specification -These journeys define the intended product behavior beyond static screens. Claude Code should use them as end-to-end acceptance flows. -Journeys 1-9 -ID Journey Flow Success outcome -J01 First-time setup Launch -> Welcome -> Who are you -> Tool Discovery --> Memory Import -> Memory Review -> Workspace -Creation -> Home Cockpit -User has a populated, trusted starting context. -J02 Skip import Launch -> Welcome -> Profile -> Tool Discovery -> Skip -Import -> Create Workspace -> Home Cockpit empty -state -User can start without data. -J03 Returning morning Open Waggle -> Home Cockpit -> Review overnight -> -Continue workspace -> Workspace Desktop -User knows what changed and continues work. -J04 Continue project Home -> Continue Germany GTM -> Workspace -Desktop -> Memory Highlights -> Ask agent -> Artifact -created -Workspace keeps continuity. -J05 Search anything Win+K -> query -> grouped results -> open -memory/artifact/session/tool -Keyboard-first recall. -J06 Create from command Win+K -> Create -document/task/workspace/agent/automation -> builder --> created object -Create flow reachable from anywhere. -J07 Memory correction Memory Center -> open memory -> inspect source -> -edit/archive/merge -> audit update -User controls memory quality. -J08 Low-confidence review Home alert -> Memory Review queue -> inspect -evidence -> approve/edit/reject -Uncertain memory does not silently influence work. -J09 Artifact outcome Workspace -> Artifact created -> related -memories/sessions/tasks linked -> Artifact Center -search -Outcomes become first-class. -Journeys 10-18 -ID Journey Flow Success outcome -J10 Install connector Connector Hub -> select connector -> auth -> sync -> -status visible -> data appears in memory review -Data import is explicit and healthy. -J11 Add MCP MCP Hub -> add custom/marketplace MCP -> risk -approval -> test -> scope to workspace/agent -Power-user capabilities are governed. -J12 Create agent Agent Builder -> goal/model/autonomy -> -memory/tools/MCPs -> permissions -> test -> create -Agent is scoped and auditable. -J13 Run agent Workspace -> Run agent -> trace visible -> output -artifact -> memory updated after review -Agent work is explainable. -J14 Create skill Skill Builder -> instructions -> inputs/outputs -> -tools/data -> test -> publish -Reusable capability created safely. -J15 Use skill inline Workspace chat/command -> run skill -> output -generated -> save artifact/memory -Skills are accessible without leaving flow. -J16 Create automation Automation Builder -> trigger -> condition -> actions -> -agent -> schedule -> test -> activate -Overnight work starts with guardrails. -J17 Automation failure Home alert -> Automation Center logs -> inspect error --> retry/pause/edit -Failures are actionable. -J18 Team invite Team Workspace -> Invite -> role selected -> user -accepts -> permissions applied -Team access is explicit. - -===== PAGE 12 ===== -Journeys 19-26 -ID Journey Flow Success outcome -J19 Share memory Memory Center -> share to team -> choose scope -> -audit -> appears in team memory -Knowledge sharing is controlled. -J20 Share artifact Artifact Center -> share -> team/workspace/member -> -permissions -> activity feed -Outcomes move safely. -J21 Permission denied User opens restricted memory/MCP/agent -> -permission message -> request access -No silent failures or data leakage. -J22 Offline local work Open app offline -> local workspaces available -> -connectors disabled -> sync later -Local-first promise is preserved. -J23 Delete/forget memory Memory detail -> delete/archive -> confirm -> -tombstone/audit -> removed from retrieval -User can control memory. -J24 Export audit Settings/Security -> audit export -> select scope -> -generate PDF/CSV -Enterprise trust and compliance. -J25 Marketplace update Marketplace -> updates -> review changelog/risk -> -update -> install audit -Extensions stay maintainable. -J26 Workspace archive Workspace settings -> archive -> memory/artifacts -retained per policy -> hidden from active home -Work lifecycle has closure. - -===== PAGE 13 ===== -UX Package - Screen Specifications -The 21-screen inventory below is complete enough for implementation. Screens 1-3 define the runtime spine. Screens 4-11 define work/intelligence/extension/team. Screens 12-16 -define onboarding. Screens 17-21 define creation and power-user extension. -Core runtime screens -# Screen Purpose Interactions States Acceptance -1 Home Cockpit Executive briefing after launch. Continue work, inspect overnight -activity, act on priorities, quick -capture. -Loading; first-run empty; normal; -attention required; offline/local-only; -overnight failure. -User can understand the day in under -30 seconds and take an action without -opening chat. -2 Workspace Desktop Primary runtime for one bounded -context. -Ask agent, open artifact, inspect -memory, start automation, run skill, -manage agents. -No memory; active work; agent -running; task blocked; artifact ready; -permission denied; sync conflict. -Chat is one widget; workspace context -is always visible. -3 Win+K Command Center Universal -search/launch/create/run/navigate/ext -end. -Search, launch, create object, run -command, install extension, navigate. -Idle; query; grouped results; no -results; permission prompt; command -success/fail. -Every major object/action is reachable -from keyboard. -Work, intelligence, extension and team screens -# Screen Purpose Interactions States Acceptance -4 Memory Center Visible memory with provenance and -editability. -Search, filter, inspect source, edit, -merge, archive, delete, add to -workspace/team. -Empty; imported; active; stale; -deprecated; low confidence; -conflicting; source unavailable. -Every memory explains why Waggle -knows it. -5 Artifact Center Outcome layer for docs, decks, sheets, -dashboards, research, code and -media. -Search related objects, -open/share/duplicate/move, relate to -memory/session/task. -Draft; final; shared; archived; -generated; external missing; -permission denied. -Search for a topic returns artifacts -plus related -memories/sessions/tasks/agents. -6 Skills Hub Reusable capabilities across users, -workspaces and agents. -Install, create, test, assign to -agent/workspace, archive. -Installed; marketplace; custom; -workspace; draft; needs approval. -Users can understand what a skill -does and where it is used. -7 Connector Hub Connect external tools and data. Connect, sync now, refresh token, -revoke, inspect health. -Connected; disconnected; expired -token; syncing; failed; recommended. -Users see data flow and connection -health clearly. -8 MCP Hub Power-user capability extension. Install, add custom, test, scope, -inspect logs, revoke. -Installed; available; running; stopped; -error; risk approval needed. -MCPs are powerful but auditable and -reversible. -9 Agent Center Manage personal, workspace, team -and autonomous agents. -Create, run, pause, inspect logs, assign -skills/tools, change permissions. -Idle; running; paused; failed; needs -approval; archived. -Agents have clear scope, goal, model, -tools and memory access. -10 Team Workspace Shared intelligence for teams. Invite, share -memory/artifact/skill/MCP, assign -role, view audit/activity. -Owner/admin/member/viewer; invite -pending; private/shared; conflicting -permissions. -Team means shared knowledge and -outcomes, not just chat. -11 Automation Center Scheduled and event-driven work. Create, run now, pause, inspect logs, -edit schedule, handle failure. -Running; scheduled; trigger fired; -paused; failed; awaiting approval. -Overnight work is visible, reviewable -and stoppable. - -===== PAGE 14 ===== -UX Package - Screen Specifications (continued) -Onboarding screens -# Screen Purpose Interactions States Acceptance -12 First Launch Minimal promise and privacy -reassurance. -Continue, change language, view -privacy note. -Fresh install; resumed setup; offline; -local-only. -No infrastructure overload before -user intent. -13 Who Are You Capture role, industry, work type, -team size and goals. -Enter profile, select goals, -continue/back. -Empty; partially complete; validation; -saved. -Profile drives recommendations but -can be edited later. -14 Tool Discovery Ask what tools the user uses. Select tools, add other, continue/back. No selection; selected; recommended; -unsupported tool. -User-oriented language, not infra -setup. -15 Memory Import Connect/import from AI tools, files -and work tools. -Connect source, import file, -continue/back. -No sources; connecting; connected; -failed; skipped. -Nothing imports without consent. -16 Memory Review Review found memories, decisions, -tasks, artifacts and projects. -Filter, expand, edit selection, approve -import, skip. -Empty; preview found; low -confidence; source error; approved. -Trust gate before memory becomes -active. -Builder and marketplace screens -# Screen Purpose Interactions States Acceptance -17 Workspace Creation Create a workspace with suggested -capabilities. -Enter name/type, add suggestions, -review, create. -Empty; recommended; validation -error; created. -Workspace becomes first useful -context after onboarding. -18 Agent Builder Create an agent with goal, model, -autonomy, memory, skills and -permissions. -Configure, test, review, create. Draft; validation; approval needed; -created. -No agent has hidden memory/tool -access. -19 Skill Builder Create reusable capability. Define prompt, inputs/outputs, tools, -memory access, test. -Draft; test pass/fail; published; -archived. -Skills are inspectable and reusable by -agents/automations. -20 Automation Builder Create scheduled or event-driven -workflow. -Choose -trigger/condition/actions/agent/notific -ation, test, activate. -Draft; test fail; active; scheduled; -approval needed. -Autonomous work has clear trigger -and rollback. -21 Marketplace / Extend Install skills, agents, connectors, -MCPs, models and templates. -Search, filter, install, update, approve -risk, open detail. -Available; installed; update available; -risk approval; failed install. -Power-user extension is discoverable -and governed. - -===== PAGE 15 ===== -State Model -Domain Universal states Domain-specific states Required recovery -App shell Loading, ready, error, offline, sync degraded. Command palette open/closed, active workspace -set/unset. -Retry, reload, switch workspace, open diagnostics. -Home Loading, empty, populated, error. Overnight complete, attention required, jobs failed, no -workspaces. -Open details, dismiss, retry, create workspace. -Workspace Loading, active, archived, permission denied, sync -conflict. -Agent running, automation active, task blocked, -artifact ready. -Request access, resolve conflict, pause agent, archive. -Memory Loading, empty, populated, error. Low confidence, conflicting, stale, deprecated, source -missing. -Edit, merge, archive, delete, request source reconnect. -Artifacts Loading, empty, populated, error. Draft, final, shared, generated, missing source, -external-only. -Open, regenerate, relink, duplicate, move. -Agents Loading, empty, populated, error. Idle, running, paused, failed, approval required, -autonomous. -Pause, retry, inspect trace, edit permissions. -Skills Loading, empty, populated, error. Installed, draft, custom, workspace, marketplace, -update available. -Test, install, publish, archive, rollback. -Connectors/MCPs Loading, empty, populated, error. Connected, disconnected, token expired, syncing, -failed, risk approval. -Reconnect, revoke, sync now, test, inspect logs. -Team Loading, empty, populated, permission denied. Invite pending, role conflict, shared/private, audit -event. -Request access, change role, resend invite, export -audit. -Onboarding Fresh, in-progress, complete, skipped, failed. Connector auth failed, import partial, review required, -local-only. -Back, retry source, skip, approve import. - -===== PAGE 16 ===== -Design System Direction -System part Specification -Tone Calm, direct, executive, action-oriented. Avoid AI hype language. Say what happened, what matters, what -can be done. -Layout Desktop-first, left navigation, central workspace canvas, optional right context rail, Win+K overlay. -Theme Dark default for desktop agent feel; light variant acceptable for data-heavy Memory/Artifact tables. -Color semantics Blue = command/work, purple = intelligence, green = healthy/complete, orange = attention/automation, -red = risk/failure. -Components AppShell, CommandCenter, ContextCard, MemoryCard, ArtifactRow, AgentCard, SkillCard, -ConnectorCard, MCPRow, AutomationRunRow, Timeline, EvidencePanel, ApprovalModal. -Accessibility Keyboard-first. Win+K, tab navigation, visible focus, no color-only status. Provide text labels for all -badges. -Density Powerful but not cramped. Use cards for Home/Workspace, tables for -Memory/Artifacts/Agents/Automations. - -===== PAGE 17 ===== -Developer Handoff -Component hierarchy -Component Responsibility -AppShell Global route layout, sidebar, active workspace, top status, command palette provider. -CommandCenter Win+K overlay, query parsing, grouped results, command execution and permission prompts. -HomeCockpit Daily briefing, overnight results, recent workspaces, suggested actions, up next, quick capture. -WorkspaceDesktop Workspace header, tabs, chat/work widget, memory/artifacts/tasks/agents/automations panels. -MemoryCenter Memory list, filters, detail, source/evidence, graph, edit/archive/delete/merge. -ArtifactCenter Outcome search, artifact table, detail panel, related objects. -SkillHub/SkillBuilder Skill library, marketplace and creation/test/publish flow. -ConnectorHub Connected/available/recommended connectors, health, sync and auth flows. -MCPHub Installed/available/custom MCPs, health, logs, risk/approval and scope. -AgentCenter/AgentBuilder Agent inventory, creation, permissions, model/autonomy, traces. -AutomationCenter/Builder Running/scheduled/triggers/history/logs and create/test/activate flow. -TeamWorkspace Shared memory/artifacts/skills/MCPs/automations, members and RBAC. -OnboardingWizard First launch, profile, tool discovery, memory import, review, workspace creation handoff. -State management rules -• Global store: route, activeWorkspaceId, command palette state, user profile, connection/offline status, feature flags. -• Server-derived state: Home Cockpit and Workspace Desktop must use server workspace-state/context APIs. -• Cache invalidation triggers: memory import, artifact update, agent run completion, connector sync, automation completion, RBAC change. -• Command index should unify workspaces, memory, artifacts, sessions, agents, skills, connectors, MCPs, actions and recent commands. -• Offline mode should degrade connectors/MCPs gracefully while keeping local workspace and memory available. -API structure -API group Candidate endpoints -Home GET /home/briefing, GET /home/overnight, POST /quick-capture -Workspace GET /workspaces, POST /workspaces, GET/PATCH /workspaces/:id, GET /workspaces/:id/state, GET -/workspaces/:id/context -Command GET /command/search?q=, POST /command/execute -Memory GET /memory, GET/PATCH /memory/:id, POST /memory/:id/archive, POST /memory/merge, POST -/harvest/preview, POST /harvest/commit -Artifacts GET /artifacts, POST /artifacts, GET/PATCH /artifacts/:id, POST /artifacts/:id/share -Agents GET/POST/PATCH /agents, POST /agents/:id/run, GET /agents/:id/traces -Skills GET/POST/PATCH /skills, POST /skills/:id/test, POST /skills/:id/install -Automations GET/POST/PATCH /automations, POST /automations/:id/run, GET /automations/:id/logs -Connectors GET /connectors, POST /connectors/:id/connect, POST /connectors/:id/sync, DELETE /connectors/:id -MCPs GET/POST /mcps, POST /mcps/:id/test, PATCH /mcps/:id/permissions, DELETE /mcps/:id -Team/RBAC GET /teams/:id, POST /teams/:id/invites, PATCH /teams/:id/members/:userId, GET /audit -RBAC model -Role Default capabilities - -===== PAGE 18 ===== -Owner Full workspace/team control, billing, delete/export, approve critical extensions. -Admin Manage members, shared memory/artifacts, agents, automations, connectors/MCPs within policy. -Member Create/edit work, use approved agents/skills/tools, contribute memory and artifacts. -Viewer Read permitted memory/artifacts/activity; no create/run/install by default. -Guest Limited shared artifacts/memory; no agents/MCP access by default. -Target schemas -Schema Fields -Workspace id, name, type, group, description, icon, ownerId, model, personaId, templateId, tools, skills, teamId, storageType, -storagePath, riskLevel, createdAt, updatedAt. -Memory id, workspaceId, scope, type, content, summary, source, sourceId, sourceUrl/path, confidence, importance, tags, -relatedIds, createdAt, updatedAt, lastAccessed, status. -Artifact id, workspaceId, type, title, summary, filePath/url, status, createdBy, generatedByAgentId, relatedMemoryIds, -relatedSessionIds, tags, createdAt, updatedAt. -Agent id, scope, workspaceId, teamId, name, goal, personaId, model, autonomyLevel, memoryScopes, skillIds, toolIds, -mcpIds, permissions, status, createdAt, updatedAt. -Skill id, scope, name, description, category, instructions, inputs, outputs, requiredTools, requiredMemoryScopes, -status, version, ownerId. -Automation id, scope, trigger, condition, actions, agentId, schedule, notificationTargets, status, lastRunAt, nextRunAt. -Extension/MCP id, type, name, source, version, endpoint, capabilities, riskLevel, approvalClass, status, health, installedAt, -approvedBy. -Technical refactor map -Current file / area Action Instruction -apps/web/src/components/os/WorkspaceBriefing.tsx Keep and promote Use as seed for Home Cockpit. Split logic into HomeCockpit widgets and -reusable WorkspaceNow panels. -packages/server/src/local/workspace-state.ts Keep and extend This is the best backend basis for Home/Workspace state. Add -artifacts/agents/automations fields. -packages/server/src/local/routes/workspace-context.ts Modify Return richer WorkspaceNow/WorkspaceHome contract for new UI. -packages/hive-mind-core/src/workspace-manager.ts Keep Workspace config model already supports many target fields. Add -type/description/updatedAt if needed. -packages/hive-mind-core/src/mind/schema.ts Keep and migrate carefully Memory/audit/trace substrate exists. Add confidence/provenance fields -via metadata or migration if needed. -apps/web/src/lib/types.ts Modify Update AppView, WorkspaceContext, MemoryFrame, Agent, Skill, -Connector/MCP types. -apps/web/src/components/os/overlays/OnboardingWizard.tsx Keep shell, redesign steps Map existing onboarding shell to the 5-step setup flow plus workspace -creation handoff. -apps/web/src/components/os/apps/MemoryApp.tsx Rework Turn into Memory Center with source/confidence/evidence/edit actions. -apps/web/src/components/os/apps/* Rename/reframe Apps become Work, Intelligence or Extend surfaces. Avoid app-launcher -mental model. -packages/core/src/install-audit.ts Keep and expose Use for extension trust trail in Connectors/MCP/Marketplace. -packages/agent/src/tools.ts Keep and normalize Tool permissions should be scoped through agent/skill/MCP model. -packages/memory-mcp/* Keep Treat as built-in MCP/extension and demo of memory operations. - -===== PAGE 19 ===== -Implementation Roadmap -Phase Scope Exit criterion -0. Freeze UX spine Route names, screen inventory, navigation, naming, data scopes. No more major UX ambiguity. -1. Shell + Win+K AppShell, route map, command provider, command search -aggregator. -User can navigate and run/search/create from anywhere. -2. Home + Workspace Home Cockpit and Workspace Desktop driven by workspace -state/context. -Returning user can continue work in under 30 seconds. -3. Memory + Artifacts Memory Center and Artifact Center with detail panels and relations. Memory and outcomes are visible and actionable. -4. Extend layer Skills, Connectors, MCP Hub, Marketplace and install audit surfaces. Capabilities are discoverable, installable and governed. -5. Builders Workspace, Agent, Skill and Automation builders. Users can create core objects with validation and review. -6. Team + Governance Team Workspace, shared memory/artifacts, RBAC and audit. Team workflows are permissioned and auditable. -7. Polish/Dogfood A11y, empty/error/offline states, performance, real data dogfood. Ready for beta implementation review. - -===== PAGE 20 ===== -Acceptance Criteria -• A user can open Waggle and understand what to do next without starting a chat. -• A user can open Win+K from anywhere and find/run/create/navigate/extend across all major object types. -• A user can inspect any surfaced memory and see scope, source, confidence and actions. -• A user can search Germany GTM and receive related memories, artifacts, sessions, tasks and agents together. -• A workspace agent cannot run with hidden memory/tool/MCP access. -• Connector and MCP installs are visible, permissioned, health-checked and auditable. -• Automation failures surface in Home Cockpit and Automation Center with logs and recovery actions. -• Team memory/artifacts/skills/MCPs obey Owner/Admin/Member/Viewer/Guest permissions. -• All core screens have loading, empty, populated, error, offline and permission-denied states. -• The implementation reuses current workspace, memory, session, harvest and audit substrate unless a missing normalized schema is necessary. - -===== PAGE 21 ===== -Claude Code Instruction Prompt -Use the following prompt as the first message/instruction for Claude Code when starting the UX refactor branch. -You are refactoring Waggle OS into a workspace-first Agent Desktop. Do not redesign the backend from scratch. First inspect the existing workspace, memory, workspace-state, -workspace-context, onboarding, memory app, install-audit, agent tools and types files. Implement the new UX spine incrementally: AppShell, Win+K, Home Cockpit, Workspace -Desktop, Memory Center, Artifact Center, Extend layer, builders, Team Workspace. The written blueprint is the source of truth; generated images are visual direction only. Preserve -local-first behavior, explicit import consent, visible memory provenance, and auditable extension approvals. Every agent must declare memory scope, skills, tools/MCPs, model and -autonomy. Every screen needs loading, empty, error, offline and permission-denied states. - -===== PAGE 22 ===== -Visual Reference Index -The following visual references are included for orientation. They are deliberately consolidated so the implementation team has one place to inspect the screens and boards. -Asset name Meaning File -00_brainstorm_notes_01 Board / screen / note reference 57152.jpg -00_brainstorm_notes_02 Board / screen / note reference 57151.jpg -00_brainstorm_notes_03 Board / screen / note reference 57150.jpg -00_brainstorm_notes_04 Board / screen / note reference 57149.jpg -01_board_executive_vision Board / screen / note reference a_large_multi_panel_product_design_information_arc.png -02_board_deep_mental_model Board / screen / note reference a_high_detail_infographic_system_architecture_di.png -03_board_navigation_workspace_home Board / screen / note reference a_wide_high_resolution_infographic_diagram_image.png -04_board_complete_architecture_4x3 Board / screen / note reference a_high_resolution_infographic_whiteboard_style_pro.png -05_board_operations_memory_mcp_agents_team Board / screen / note reference a_high_resolution_infographic_poster_slide_layou.png -06_board_all_in_one Board / screen / note reference a_wide_high_resolution_product_design_poster_ui.png -07_board_builders_and_marketplace Board / screen / note reference a_dark_themed_ui_design_presentation_screenshot_co.png -screen_01_home_cockpit Board / screen / note reference a_wide_screenshot_of_a_dark_sleek_desktop_app_das.png -screen_02_workspace_desktop Board / screen / note reference a_wide_desktop_app_ui_screenshot_dark_modern_prod.png -screen_03_win_k_command_center Board / screen / note reference a_dark_themed_computer_ui_screenshot_of_a_command.png -screen_04_memory_center Board / screen / note reference a_clean_high_resolution_dark_light_ui_dashboard_s.png -screen_05_artifact_center Board / screen / note reference a_high_resolution_screenshot_of_a_dark_themed_clea.png -screen_06_skills_hub Board / screen / note reference a_clean_high_resolution_ui_dashboard_screenshot.png -screen_07_connector_hub Board / screen / note reference a_clean_high_resolution_ui_dashboard_screenshot_o.png -screen_08_mcp_hub Board / screen / note reference a_wide_dark_themed_desktop_application_ui_screensh.png -screen_09_agent_center Board / screen / note reference a_dark_themed_sleek_ui_dashboard_screenshot_of_an.png -screen_10_team_workspace Board / screen / note reference a_high_resolution_ui_screenshot_of_a_dark_themed.png -screen_11_automation_center Board / screen / note reference a_wide_dark_themed_desktop_ui_screenshot_of_a_sof.png -screen_12_first_launch Board / screen / note reference a_clean_modern_software_welcome_onboarding_screen.png -screen_13_who_are_you Board / screen / note reference a_widescreen_dark_ui_screenshot_of_a_setup_onboard.png -screen_14_tool_discovery Board / screen / note reference a_dark_modern_desktop_app_ui_screenshot_waggle_o.png -screen_15_memory_import Board / screen / note reference a_crisp_dark_themed_desktop_application_ui_screen.png -screen_16_memory_review Board / screen / note reference a_dark_modern_ui_dashboard_screenshot_app_revie.png -screen_17_create_workspace Board / screen / note reference a_dark_themed_desktop_ui_screenshot_overall_scene.png -screens_18_21_builders_and_marketplace Board / screen / note reference a_dark_themed_ui_design_presentation_screenshot_co.png - -===== PAGE 23 ===== -Visual - All-in-One Architecture and Screens - - -===== PAGE 24 ===== -Visual - Deep Mental Model - - -===== PAGE 25 ===== -Visual - Navigation / Workspace / Home Architecture - - -===== PAGE 26 ===== -Visual - Complete Architecture 4:3 Board - - -===== PAGE 27 ===== -Visual - Builders and Marketplace Board - - -===== PAGE 28 ===== -Screen 1 - Home Cockpit - - -===== PAGE 29 ===== -Screen 2 - Workspace Desktop - - -===== PAGE 30 ===== -Screen 3 - Win+K Command Center - - -===== PAGE 31 ===== -Screen 4 - Memory Center - - -===== PAGE 32 ===== -Screen 5 - Artifact Center - - -===== PAGE 33 ===== -Screen 6 - Skills Hub - - -===== PAGE 34 ===== -Screen 7 - Connector Hub - - -===== PAGE 35 ===== -Screen 8 - MCP Hub - - -===== PAGE 36 ===== -Screen 9 - Agent Center - - -===== PAGE 37 ===== -Screen 10 - Team Workspace - - -===== PAGE 38 ===== -Screen 11 - Automation Center - - -===== PAGE 39 ===== -Screen 12 - First Launch - - -===== PAGE 40 ===== -Screen 13 - Who Are You - - -===== PAGE 41 ===== -Screen 14 - Tool Discovery - - -===== PAGE 42 ===== -Screen 15 - Memory Import - - -===== PAGE 43 ===== -Screen 16 - Memory Review - - -===== PAGE 44 ===== -Screen 17 - Create Workspace - - -===== PAGE 45 ===== -Screens 18-21 - Builders + Marketplace diff --git a/docs/addiction-features/01-memory-streak.md b/docs/addiction-features/01-memory-streak.md deleted file mode 100644 index 2441e28..0000000 --- a/docs/addiction-features/01-memory-streak.md +++ /dev/null @@ -1,92 +0,0 @@ -# 01 — Memory Streak Counter - -**Author:** CC (Block B design pass) -**Date:** 2026-05-01 -**Status:** AWAITING_RATIFICATION -**Estimate:** ~180 LOC + ~3-4h wall-clock -**Touches:** apps/web (3 files), packages/server (1 route), packages/core (1 store) - ---- - -## User story - -As a user, when I save a memory or have a meaningful chat session, I want to see a visible streak counter (🔥 5 days in a row) somewhere I'll glance at often, so I'm reinforced to come back tomorrow. - -## Acceptance criteria - -1. Streak chip renders in the desktop StatusBar (bottom-right cluster), wrapped in a HintTooltip explaining the rules. -2. Streak count = consecutive days with at least one memory frame committed (any source: chat, harvest, manual). -3. Streak resets if 24h pass with zero new frames AND zero qualifying activity (configurable). Default: pure 24h gap = reset. -4. Optional "weekend skip" toggle in Settings → Behavior → "Streaks count weekdays only" (default OFF; international users decide). -5. Visible cold-start path: streak=0 day 1 hides chip; streak=1 shows "🔥 1 day"; streak=N shows "🔥 N days" with subtle pulse animation when count increments live. -6. Live increment fires when a new frame lands today and `streak.lastBumpAt` was a previous day — no full-day debounce, but client throttles repeat re-renders to once/min. - -## UI sketch - -``` -StatusBar bottom-right (existing cluster): - [memory icon] 12 mem [chat icon] 5 sessions 🔥 5 days [time] - -Hover tooltip: - Memory streak: 5 days - Save at least one memory each day to keep it going. - (Settings → Behavior to skip weekends.) -``` - -Day-1 user: chip suppressed entirely (no shame for a 0-streak); appears at streak=1 onwards. - -Streak break: chip flashes amber for 4 hours after reset, copy reads "Streak broken — start fresh today" with action `Got it`. - -## Data model - -New table `streaks` in personal mind: -``` -id INTEGER PRIMARY KEY, -streak_kind TEXT NOT NULL CHECK (streak_kind IN ('memory','chat')), -current_count INTEGER NOT NULL DEFAULT 0, -last_bump_at TEXT NOT NULL, -- ISO date YYYY-MM-DD (no time) -longest_count INTEGER NOT NULL DEFAULT 0, -weekend_skip INTEGER NOT NULL DEFAULT 0, -updated_at TEXT NOT NULL -``` - -One row per `streak_kind` per personal mind. v1 ships only `memory` kind; `chat` reserved. - -Server route: `GET /api/streaks` → `{ memory: {current, longest, lastBumpAt, weekendSkip} }`. `POST /api/streaks/bump` (called by frame-store on every frame insert) — server-side computes current_count by checking lastBumpAt vs today. - -## Implementation notes - -- Bump trigger: hook into `FrameStore.createIFrame()` callsite OR via a SQLite trigger on `INSERT ON memory_frames`. Trigger is cleaner — no orchestrator changes needed. -- Reset detection: pure read-time computation. When client fetches `/api/streaks`, server compares lastBumpAt to today; if gap > 1 day (or > 1 weekday with weekendSkip), reset current to 0 before returning. -- StatusBar wiring: existing `agentStatus`-style hook → new `useStreaks()` hook polling `/api/streaks` every 2 min + on `waggle:frame-saved` event. - -## Estimate - -- Server route + SQLite migration: ~50 LOC -- `useStreaks()` hook + StatusBar render: ~60 LOC -- Settings toggle: ~30 LOC -- Tests (server bump logic, reset boundary, weekend-skip math): ~40 LOC -- **Total ~180 LOC, ~3-4h with verification.** - -## Risks + open questions - -1. **Timezone** — bump uses server's local TZ (`new Date().toISOString().slice(0,10)`). Travelers crossing dates lose/gain a day. Acceptable v1; document. -2. **What counts as a frame?** — currently any frame insert. PM may want to exclude `temporary` importance from bumps. Default: count all non-`deprecated` frames. Open question. -3. **Streak breakage notification** — silent reset, or a one-time toast "Streak broken — yesterday you missed it"? PM call. -4. **Cosmetic** — emoji 🔥 may clash with Hive DS aesthetic. Alternative: `bg-amber-500` flame icon from lucide-react. PM call. -5. **Migration risk** — adds new SQLite table. Use migration framework. Idempotent CREATE TABLE IF NOT EXISTS. - -## Out of scope (v1) - -- Per-workspace streaks (just personal-mind global v1). -- Calendar heatmap (GitHub-style activity grid). -- Streak leaderboards across team. (TEAMS tier only later.) -- Streak freeze / "streak protector" purchases. (Anti-pattern in Waggle DS — no buyable shortcuts.) - -## PM decisions needed - -- [ ] GO / MODIFY / SKIP -- [ ] Frame inclusion rule (all / non-temporary / >threshold importance) -- [ ] Weekend-skip default (OFF / ON / detect locale) -- [ ] Reset notification (silent / toast / amber flash) -- [ ] Emoji vs Lucide icon diff --git a/docs/addiction-features/02-daily-brief.md b/docs/addiction-features/02-daily-brief.md deleted file mode 100644 index 8ee7443..0000000 --- a/docs/addiction-features/02-daily-brief.md +++ /dev/null @@ -1,118 +0,0 @@ -# 02 — Daily Brief Notification - -**Author:** CC (Block B design pass) -**Date:** 2026-05-01 -**Status:** AWAITING_RATIFICATION -**Estimate:** ~280 LOC + ~5-6h wall-clock -**Touches:** apps/web (2 files), packages/server (1 route + 1 cron job), packages/core (1 generator), Tauri capabilities (notification permission) - ---- - -## User story - -As a user, every morning I want a 1-2 sentence brief summarising what I discussed yesterday, what I decided, and what's worth revisiting today, delivered as either an in-app banner or a system notification — so I never lose track of work I did 24 hours ago. - -## Acceptance criteria - -1. At a configurable hour (default 09:00 local), a "Daily Brief" notification fires for the user. -2. Brief content: 1-line summary of yesterday's activity (+ count of frames saved + decisions made), 1-line "today suggestion" derived from open tasks / pending follow-ups in workspace state. -3. Two delivery channels: - - **In-app banner**: top-right toast on first desktop mount of the day, dismissible. - - **System notification** (Tauri): native Win/Mac notification with click-to-focus action. Opt-in per-platform. -4. Configurable in Settings → Notifications: on/off toggle, hour-of-day picker, channel selection. -5. Skips when user has no qualifying activity (yesterday frame count = 0); brief replaced with weekly digest pointer or suppressed entirely. -6. One brief per day max — server-side dedupe on `(user_id, date)` so reopening the app doesn't re-fire. - -## UI sketch - -``` -In-app banner (top-right, 8s fade-out unless hovered): - [Brain icon] Yesterday's brief - You discussed: API rate limiting, Q3 roadmap. Decided: ship migrations - Wednesday. Today's suggestion: review the auth-rewrite blocker. - [Read more] [✕] - -System notification (Tauri): - Title: Waggle — Daily Brief - Body: Yesterday: 12 memories, 3 decisions. Today: review auth blocker. - Action: Open app → focuses Chat / Memory tab -``` - -## Data model - -New table `daily_briefs`: -``` -id INTEGER PRIMARY KEY, -brief_date TEXT NOT NULL UNIQUE, -- 'YYYY-MM-DD' -content TEXT NOT NULL, -- 1-2 sentence summary -yesterday_frame_count INTEGER, -yesterday_decision_count INTEGER, -today_suggestions TEXT, -- JSON array -delivered_at TEXT, -- ISO timestamp; null until shown -delivered_via TEXT, -- 'banner' | 'system' | both -created_at TEXT NOT NULL -``` - -Settings additions (existing `settings.json`): -``` -dailyBrief: { - enabled: boolean, // default true - hour: number, // default 9 - channels: { banner: bool, system: bool } // default { banner: true, system: false } -} -``` - -## Server-side generator - -Cron job runs daily at configured hour (per-user; v1 single global hour) — generates brief by: -1. Querying yesterday's frames (`created_at >= startOfYesterday AND < startOfToday`). -2. Extracting decisions (importance=critical OR content matches "Decision X"). -3. Pulling open progress items / blockers from workspace-state. -4. Sending to LLM with prompt: "Summarise in 1-2 sentences. Be terse. List top decision." -5. Storing in `daily_briefs` table with `delivered_at=null`. - -Client polls `/api/daily-brief/today` on desktop mount. If row exists with `delivered_at=null`, render banner + (if Tauri & user opted in) fire system notification, then `POST /api/daily-brief/today/ack` to set `delivered_at`. - -## Implementation notes - -- Cron infrastructure already exists (`cronStore` + `CronScheduleLike` in workspace-context.ts). -- LLM cost: 1 call/day × ~500 tokens output ≈ $0.005/day on Sonnet. Acceptable. -- Dedupe: server enforces `UNIQUE(brief_date)`. Client never generates locally. -- System notification: Tauri `notification` capability — already requestable; needs `tauri.conf.json` allowlist update. -- Skip for fresh users: cron job pre-checks `yesterday_frame_count > 0`; if 0 and totalFrames=0 (cold start), skips entire brief. - -## Estimate - -- Server route (`/api/daily-brief/today`) + ack endpoint: ~60 LOC -- Cron job + LLM generator: ~80 LOC -- Settings tab additions: ~50 LOC -- DailyBriefBanner component: ~60 LOC -- Tauri notification wiring: ~30 LOC -- Tests (cron logic, brief generation, dedupe): ~50 LOC -- **Total ~330 LOC including tests, ~5-6h with verification.** - -## Risks + open questions - -1. **Hour-picker timezone** — server cron runs in server-local TZ; users on other timezones see briefs at wrong hour. v1: keep server-local; document. v2: per-user TZ. -2. **LLM cost** — $0.005/day × N users = $0.15/user/month. Negligible for now but tracks. -3. **Empty days** — first 7 days of new user have no yesterday. Either skip silently or use "Welcome" copy. Open question. -4. **System notification permission** — Tauri requires explicit allowlist + user permission grant. v1 fallback to banner-only when permission denied. -5. **Generator failure** — LLM down → no brief that day. Acceptable; user just sees yesterday's content next day. Don't retry within a day. -6. **Cross-device** — user has multiple devices; brief generated server-side once, both devices show it. Already handled by server-side dedupe. - -## Out of scope (v1) - -- Multiple briefs per day (morning + evening) — wait for usage data. -- Personalised tone / persona-flavored briefs — just a plain factual summary v1. -- "Snooze brief" controls — just dismiss or off. -- Email delivery — Slack-style integrations later. -- Per-workspace briefs — global personal brief v1. - -## PM decisions needed - -- [ ] GO / MODIFY / SKIP -- [ ] Default delivery channel(s) — banner, system, or both -- [ ] Default hour (09:00 local? user-configurable on first run?) -- [ ] Empty-day behavior (skip / welcome copy / encourage activity) -- [ ] Brief tone (factual / encouraging / persona-flavored) -- [ ] Generator model (Sonnet for cost / Haiku for speed) diff --git a/docs/addiction-features/03-continuity-banner.md b/docs/addiction-features/03-continuity-banner.md deleted file mode 100644 index 325ea90..0000000 --- a/docs/addiction-features/03-continuity-banner.md +++ /dev/null @@ -1,87 +0,0 @@ -# 03 — Continuity Moments (Auto-Resume Banner) - -**Author:** CC (Block B design pass) -**Date:** 2026-05-01 -**Status:** AWAITING_RATIFICATION -**Estimate:** ~120 LOC + ~2-3h wall-clock -**Touches:** apps/web (1 file: ChatApp.tsx OR new ContinuityBanner.tsx), packages/server (1 endpoint extension) - ---- - -## User story - -When I open Chat after closing it for hours/days, I want a 1-line banner reminding me where I left off — what I last decided, what's still open — and a one-click way to continue or start fresh, so I don't have to re-orient myself manually. - -## Acceptance criteria - -1. When ChatApp mounts AND `messages.length === 0` AND last session for the workspace was within the past 7 days, render a "Picking up where you left off" banner at the top of the chat. -2. Banner content: 1-line headline ("Yesterday you decided X") + 2 buttons: `Continue` (loads last session messages) + `Start fresh` (dismisses banner, opens empty input). -3. Banner suppressed for fresh workspaces (sessionCount=0) and for sessions older than 7 days (handoff to LoginBriefing's domain). -4. Dismissing banner via `Start fresh` sets a per-workspace flag `continuity:dismissed:{wsId}` so the banner doesn't re-render same session. -5. Continuity banner replaces neither WorkspaceBriefing nor LoginBriefing — it's a third surface specific to "between-session" memory. - -## UI sketch - -``` -ChatApp top, above message list: - ┌──────────────────────────────────────────────────────────┐ - │ ⟳ Picking up where you left off ✕ │ - │ Yesterday you decided: ship migrations Wednesday. │ - │ 2 open follow-ups · last session 16h ago │ - │ │ - │ [ Continue conversation ] [ Start fresh ] │ - └──────────────────────────────────────────────────────────┘ - -After click Continue: banner fades, last session messages stream into the chat. -After click Start fresh: banner removed for this session, input focused. -``` - -## Data model - -No new tables. Extends existing endpoints: -- `GET /api/workspaces/:id/context` — already returns `recentThreads[]`. Pull `recentThreads[0]` if its `lastActive` ≤ 7 days. Add `lastDecision` field (top decision content from yesterday) — drawable from existing `recentDecisions[0]`. -- New endpoint `POST /api/sessions/:id/load` — already exists conceptually as `getHistory(workspaceId, sessionId)`. Confirm wire-up. - -Frontend localStorage: -``` -continuity:dismissed:{wsId} = ISO timestamp -``` -Set on Start-fresh click. Banner suppressed for that workspace until next mount where lastActive moves forward (i.e. user has actually had new activity). - -## Implementation notes - -- Existing `WorkspaceBriefing` already shows `recentThreads[]` as a list. Continuity banner is a focused alternative: ONE thread, biggest decision, action-oriented buttons. -- Decision: keep WorkspaceBriefing for the "browse" affordance (5 recent threads + memories + decisions list) and add ContinuityBanner as the "resume" affordance (1 thread, 1 click to continue). They co-exist, both above chat list, ContinuityBanner above WorkspaceBriefing. -- Continue button: calls existing session load mechanism — `setActiveSession(threadId)` then `loadSessionHistory(threadId)`. -- Decision extraction: `recentDecisions[0]` from workspace-context already filtered for last 24h elsewhere; reuse. - -## Estimate - -- ContinuityBanner component: ~70 LOC -- ChatApp wire-up + localStorage logic: ~30 LOC -- Server context extension (lastDecision field): ~10 LOC -- Tests: ~30 LOC (banner render conditions, dismissal flag, time-window logic) -- **Total ~140 LOC, ~2-3h with verification.** - -## Risks + open questions - -1. **Three surfaces collide** — ContinuityBanner + WorkspaceBriefing + LoginBriefing all surface "what you did last" content. Need clear visual hierarchy: LoginBriefing (cross-workspace), WorkspaceBriefing (this workspace overview), ContinuityBanner (one-click resume). -2. **Stale banner** — user opens Chat at 2am after a 12-hour break. Banner says "Yesterday you...". Linguistic edge case (was it really yesterday?). Use existing `timeAgo()` helper. -3. **Continue vs new session** — clicking Continue should load the OLD session's messages OR start a NEW session that references them? v1: load old session messages so user sees full context. -4. **Multiple workspaces** — banner only fires for the active workspace. Cross-workspace continuity prompts are LoginBriefing's job. -5. **Fresh user** — sessionCount=0 → banner suppressed. But what about a returning user with one stub workspace and no real sessions? Same: suppress. - -## Out of scope (v1) - -- Voice continuity ("Resume our conversation where I asked about X"). -- Multi-thread continuity (continue the most-impactful thread, not just newest). -- Smart "you might want to follow up on X" suggestion engine. (That's the Daily Brief's domain.) -- Cross-device continuity sync (already handled by server-side session storage; no client work needed). - -## PM decisions needed - -- [ ] GO / MODIFY / SKIP -- [ ] Time window — 7 days reasonable? or shorter (3 days)? or 30 days? -- [ ] Dismissal scope — per-session (re-show next mount) or per-day? -- [ ] Continue button behavior — load old messages vs new session w/ context inject -- [ ] Co-existence with WorkspaceBriefing — both above chat OR Continuity replaces Briefing for last-7-day case? diff --git a/docs/addiction-features/04-weekly-wins-digest.md b/docs/addiction-features/04-weekly-wins-digest.md deleted file mode 100644 index 20a6d4e..0000000 --- a/docs/addiction-features/04-weekly-wins-digest.md +++ /dev/null @@ -1,126 +0,0 @@ -# 04 — Memory Wins Digest (Weekly) - -**Author:** CC (Block B design pass) -**Date:** 2026-05-01 -**Status:** AWAITING_RATIFICATION -**Estimate:** ~250 LOC + ~4-5h wall-clock -**Touches:** apps/web (1 component + 1 tab in Memory app), packages/server (1 cron job + 1 route), packages/core (1 generator) - ---- - -## User story - -Once a week (Monday morning by default), I want a summary card showing how Waggle's memory paid off the prior week — N facts saved, N agent recalls that used them, estimated minutes saved on context-explaining — so I can quantify the value and feel the compounding effect. - -## Acceptance criteria - -1. Weekly digest fires once per week (configurable day/hour, default Monday 09:00 local). -2. Delivered as a Memory app tab card + an in-app banner on first desktop mount of the week. -3. Card content (3 metrics + 1 narrative line): - - Frames saved this week: N - - Recalls that hit a saved frame: M - - Estimated time saved (M × 9min context-restore baseline): ~T minutes - - Narrative: "Your top theme this week: . Top decision: " -4. Card persists in Memory app's "Wins" tab indefinitely — historical record of weekly progress, not just one-time. -5. First-week edge case: if user has < 7 days of history, banner suppressed but Wins tab shows "Come back next week for your first digest" placeholder. - -## UI sketch - -``` -Memory App > Wins tab: - ┌─ Week of April 24-30 ──────────────────────────────────────┐ - │ ▲ 12 frames saved ▲ 5 agent recalls ⏱ ~45 min saved │ - │ │ - │ Top theme: API rate limiting + auth-rewrite │ - │ Top decision: Ship migrations Wednesday │ - │ │ - │ [Open Memory] [Open Last Decision Source] │ - └────────────────────────────────────────────────────────────┘ - - ┌─ Week of April 17-23 ──────────────────────────────────────┐ - │ ▲ 8 frames · ▲ 3 recalls · ⏱ ~27 min saved │ - │ Top theme: Onboarding wizard polish │ - └────────────────────────────────────────────────────────────┘ - - (older weeks collapsed by default, click to expand) - -Banner on Monday morning: - [Trophy icon] This week saved you ~45 min — see the breakdown - [Open Wins] [✕] -``` - -## Data model - -New table `weekly_wins`: -``` -id INTEGER PRIMARY KEY, -week_start TEXT NOT NULL UNIQUE, -- 'YYYY-MM-DD' (Monday) -frame_count INTEGER NOT NULL, -recall_count INTEGER NOT NULL, -estimated_minutes_saved INTEGER NOT NULL, -top_theme TEXT, -top_decision TEXT, -top_decision_source_session_id TEXT, -generated_at TEXT NOT NULL, -delivered_at TEXT -- nullable until banner shown -``` - -For `recall_count`, need to instrument frame retrieval: -- Existing `HybridSearch.search()` already returns frame IDs -- Add `RecallEvent` log: every search/retrieval that hits a frame logs `{ frame_id, ts, source: 'agent' | 'manual' }` to a `recall_events` table -- Aggregate weekly count per (week, agent-source-only) - -## Server-side generator - -Cron runs Monday 00:30 local (off-peak): -1. Query frames where `created_at >= weekStart AND created_at < weekStart+7d` -2. Query recall_events where `source='agent' AND ts in [weekStart, weekStart+7d]` -3. Compute estimated_minutes_saved = recall_count × 9 (calibrated baseline; configurable) -4. Theme extraction: LLM call ("From these N frames, what's the dominant theme in 5-10 words?") -5. Top decision: highest-importance critical/important frame matching decision pattern from the week -6. Insert row, set delivered_at=null, await client poll - -Estimated minutes baseline (the "9 min context-restore"): documented derivation needed; placeholder until UX research lands. - -## Implementation notes - -- Recall instrumentation is the hardest part — needs hook in `HybridSearch.search()` callsite to log frame IDs returned and identifier of the consumer (agent loop vs manual UI search). -- Weekly cron: trivial extension of cron infrastructure; runs `generateWeeklyWins(weekStart)` on schedule. -- Wins tab in Memory app: paginate if N > 12 weeks. -- Edge: time zones again — week boundary is server-local Monday 00:00. Document. - -## Estimate - -- Recall events table + instrumentation: ~70 LOC (touches HybridSearch + agent-loop) -- Generator + cron: ~80 LOC -- Server route `/api/weekly-wins`: ~30 LOC -- WinsCard + WinsTab components: ~80 LOC -- Banner + ack route: ~30 LOC -- Tests: ~50 LOC -- **Total ~340 LOC, ~4-5h with verification.** - -## Risks + open questions - -1. **Recall instrumentation** is the cost driver — need to wire `HybridSearch` to log every retrieval. Hot path; throttle/buffer logs to avoid SQLite write storms. -2. **Estimated-minutes-saved calibration** — 9 min baseline is a guess. Run a small UX study or pilot a percentile estimate. v1: hardcode + flag for revision. -3. **First week** — user installs Monday afternoon, what do they see Tuesday? Nothing — wait for next Monday. Banner suppressed for ~7 days. -4. **Theme/decision LLM cost** — 1 call/week × ~700 tokens ≈ $0.01/user/week. Negligible. -5. **Privacy** — frames may contain sensitive content; theme summary on personal mind only, not Team/shared workspaces. Hard rule: no cross-workspace digests. -6. **What counts as a "recall"** — open question. Agent retrieval via `recall_memory` MCP tool? Hybrid search hits during chat? UI-driven Memory app search? Default: instrument all three; aggregate by source. - -## Out of scope (v1) - -- Comparison to prior week ("up 30% from last week") — wait until 4+ weeks of data. -- Per-workspace digests — global personal-mind digest only v1. -- Email digest delivery — in-app only. -- "Share to team" affordance. -- Streak integration ("you've maintained a 4-week digest streak"). (Streak feature is separate; wait until both exist.) - -## PM decisions needed - -- [ ] GO / MODIFY / SKIP -- [ ] Default delivery day/hour (Monday 09:00 reasonable? Friday end-of-week instead?) -- [ ] Recall sources to count (agent only / agent+UI / all) -- [ ] Estimated-minutes baseline (9 min default, or skip the metric until calibrated?) -- [ ] Banner vs. tab-only delivery (can banner be opt-out?) -- [ ] Theme extraction model (Sonnet / Haiku) diff --git a/docs/addiction-features/05-milestone-cards.md b/docs/addiction-features/05-milestone-cards.md deleted file mode 100644 index 4bafc2a..0000000 --- a/docs/addiction-features/05-milestone-cards.md +++ /dev/null @@ -1,109 +0,0 @@ -# 05 — First-Time Milestone Cards - -**Author:** CC (Block B design pass) -**Date:** 2026-05-01 -**Status:** AWAITING_RATIFICATION -**Estimate:** ~150 LOC + ~2-3h wall-clock -**Touches:** apps/web (1 new component + 1 hook), packages/server (1 endpoint extension) - ---- - -## User story - -When I cross meaningful memory thresholds for the first time (1st memory saved, 10th, 100th, 1000th), I want a brief celebration — confetti animation + congratulatory copy + share affordance — so I feel the compounding value and have a moment to share if I want to. - -## Acceptance criteria - -1. Milestone card fires automatically when total personal-mind frame count crosses thresholds: 1, 10, 100, 1000. -2. Card is full-screen overlay with confetti animation + copy + 2 buttons: `Continue working` (dismisses) + `Share` (copies preformatted text to clipboard, optional native share where available). -3. Each milestone fires exactly once — server-side tracks which thresholds have been celebrated. -4. Card animation runs ~3 seconds; auto-dismiss after 8s if user doesn't click. -5. First-memory milestone (1) is the most important — sets the tone for the addictive feedback loop. Make it feel earned. - -## UI sketch - -``` -Full-screen overlay (z-9999, dark backdrop blur): - - ┌─────────────────────────────────────────────────────────┐ - │ ✨ confetti animation ✨ │ - │ │ - │ 🎯 10 │ - │ Memories saved! │ - │ │ - │ Your second brain is taking shape — every save makes │ - │ Waggle a little smarter for you. │ - │ │ - │ [Share] [Continue working] │ - └─────────────────────────────────────────────────────────┘ - -Milestone copy (per threshold): - 1 "First memory saved! Welcome to your second brain." - 10 "10 memories saved! Your second brain is taking shape." - 100 "100 memories — you're building real persistent context." - 1000 "1,000 memories. You've crossed into a different category of user." - -Share text format: - "Just hit {N} memories on Waggle — my second brain that remembers - across every chat. waggle-os.ai 🐝" -``` - -## Data model - -New table `milestones`: -``` -id INTEGER PRIMARY KEY, -milestone_kind TEXT NOT NULL, -- 'frames_1', 'frames_10', 'frames_100', 'frames_1000' -achieved_at TEXT NOT NULL, -- ISO timestamp of crossing -celebrated_at TEXT, -- nullable; null until card dismissed -UNIQUE(milestone_kind) -``` - -One row per kind per personal mind, idempotent. - -Server route: `GET /api/milestones/pending` → `{ pending: [{ kind, achievedAt }] }` returns any rows with `celebrated_at=null`. Client renders card, then `POST /api/milestones/{kind}/ack` sets celebrated_at. - -Crossing detection: on every frame insert, server-side trigger checks if `total_frame_count` crossed any threshold and inserts a milestone row. Cheap query. - -## Implementation notes - -- Confetti: use `canvas-confetti` npm package (~5kb). MIT license. -- Card component: `MilestoneCard.tsx` with full-screen `motion.div` wrapper. -- Hook: `useMilestone()` polls `/api/milestones/pending` every 30s + on `waggle:frame-saved` event. -- Multiple milestones queued: render in sequence (1 → 10 if user goes from 0 to 12 in one batch import). 8s auto-dismiss between cards. -- Share button: use `navigator.share()` on supported browsers, fall back to clipboard copy + toast. - -## Estimate - -- Milestones table + server trigger: ~30 LOC -- API routes (pending, ack): ~30 LOC -- MilestoneCard component + confetti: ~70 LOC -- useMilestone hook + Desktop wiring: ~30 LOC -- Tests (threshold crossing, dedupe, share): ~40 LOC -- **Total ~200 LOC, ~2-3h with verification.** - -## Risks + open questions - -1. **Backfill** — existing users (with thousands of frames already) shouldn't suddenly see all 4 cards on next launch. Either: (a) on first migration, mark all already-crossed thresholds as celebrated_at=now; (b) only fire for thresholds crossed AFTER feature ships. Recommend (b). Migration script sets celebrated_at for any row where `achieved_at < featureShipDate`. -2. **Confetti accessibility** — animation may trigger motion-sensitive users. Respect `prefers-reduced-motion`; fall back to static congratulations. -3. **Share text** — currently embeds product URL. Tier-aware copy (Free user share vs Pro share)? PM call. -4. **Threshold choice** — 1, 10, 100, 1000 powers-of-10. Could add 50, 500. v1 keep simple. PM call. -5. **What counts as a frame** — same question as Streak feature. Recommend consistent rule across all addiction features (count non-deprecated, non-temporary frames). -6. **Celebration sound?** — optional subtle "ding" audio cue. v1 silent (less intrusive). - -## Out of scope (v1) - -- Custom milestones (user-defined "celebrate at 50"). -- Per-workspace milestones. -- Streaks integration ("milestone + 7-day streak combo unlocks X"). -- Achievement gallery / trophy room. -- Social proof leaderboard. - -## PM decisions needed - -- [ ] GO / MODIFY / SKIP -- [ ] Threshold set (1/10/100/1000 only, or add 50/500?) -- [ ] Backfill strategy (mark existing as celebrated, or fire all once on first launch?) -- [ ] Share text content (current draft, or different angle?) -- [ ] Sound effect (silent / subtle ding / configurable) -- [ ] Frame inclusion rule (same as Streak — must align) diff --git a/docs/addiction-features/06-tour-replay.md b/docs/addiction-features/06-tour-replay.md deleted file mode 100644 index 0982187..0000000 --- a/docs/addiction-features/06-tour-replay.md +++ /dev/null @@ -1,80 +0,0 @@ -# 06 — Tour Replay Button - -**Author:** CC (Block B design pass) -**Date:** 2026-05-01 -**Status:** AWAITING_RATIFICATION -**Estimate:** ~60 LOC + ~1-1.5h wall-clock -**Touches:** apps/web (1 file: SettingsApp Advanced tab + useOnboarding hook) - ---- - -## User story - -As a returning user (or one who skipped onboarding), I want a "Replay tour" button in Settings → Advanced so I can re-trigger the post-wizard coachmark sequence without having to wipe my onboarding state or use a DEV-only URL parameter. - -## Acceptance criteria - -1. Settings → Advanced section contains a "Replay onboarding tour" button. -2. Clicking it: clears the `waggle:tooltips_done` localStorage flag AND the `tooltipsDismissed` field on `onboardingState`, then triggers a re-render so OnboardingTooltips mounts. -3. Tour content: same 3 BASE_TIPS + CLOSING_TIP as the original tour, optionally including TEMPLATE_TIPS based on current active workspace's templateId. -4. Button has a subtle confirmation toast ("Tour restarting…") so user knows the click registered. -5. Optional: "Replay onboarding wizard" sibling button for full-flow restart (clears `waggle:onboarding` localStorage too — DEV/Power users only? PM call). - -## UI sketch - -``` -Settings App > Advanced tab: - - Section: Help & Tutorials - - [icon] Replay onboarding tour - Show the 4-slide coachmark tour again. Useful if you want a refresher - on Waggle's core gestures. - [ Replay tour ] - - [icon] Replay onboarding wizard (advanced) - Restart the full 8-step setup. Will not delete any data — your - workspaces, memories, and preferences are preserved. - [ Replay wizard ] -``` - -## Data model - -No new tables. Pure localStorage manipulation: -- Tour replay: `localStorage.removeItem('waggle:tooltips_done')` + update onboarding state `tooltipsDismissed: false`. -- Wizard replay: clear `waggle:onboarding` storage entirely; reload page (or set `state.completed = false`). - -## Implementation notes - -- `useOnboarding` already has a `reset()` function (line 142-146) — use it for the wizard replay path. -- Add a new `replayTour()` function: clear localStorage tour flag + setOnboardingState(prev => ({ ...prev, tooltipsDismissed: false })). -- SettingsApp's Advanced tab exists; just add a section. -- Toast affordance: existing `useToast` hook. - -## Estimate - -- `replayTour()` in useOnboarding: ~10 LOC -- SettingsApp section: ~30 LOC -- Tests (localStorage cleared, state flipped, render): ~20 LOC -- **Total ~60 LOC, ~1-1.5h with verification.** - -## Risks + open questions - -1. **Tour vs wizard distinction** — users may not know the difference. Settings copy should make it clear: tour = post-launch coachmarks, wizard = full setup flow. Done above. -2. **Wizard replay edge cases** — if user already has 5 workspaces and a year of memory, re-running wizard is confusing. Either: (a) hide wizard replay for non-DEV builds, (b) gate behind double-confirm, (c) skip the workspace-creation step on replay. Recommend (b) for v1. -3. **Tour replay during ongoing tour** — defensive: if Tour is already mounted, click is no-op or restarts the tour from step 0. -4. **Cross-tab sync** — multi-window users: replay click in one window should re-render Tour in all windows. Existing `waggle:onboarding-sync` event handles this for state; tour localStorage clear needs equivalent broadcast. - -## Out of scope (v1) - -- Per-workspace tour variants. -- Custom tour authoring (Power users design their own coachmark sequences). -- Onboarding wizard partial-replay (resume at step 5 only). -- Analytics on which sections of tour users replay most often. - -## PM decisions needed - -- [ ] GO / MODIFY / SKIP -- [ ] Include "Replay wizard" button alongside tour, or tour-only? -- [ ] Confirm dialog for wizard replay (yes / skip) -- [ ] Toast copy ("Tour restarting…" / "Coachmarks reset" / silent) diff --git a/docs/addiction-features/07-pending-imports-reminder.md b/docs/addiction-features/07-pending-imports-reminder.md deleted file mode 100644 index 15829ca..0000000 --- a/docs/addiction-features/07-pending-imports-reminder.md +++ /dev/null @@ -1,93 +0,0 @@ -# 07 — "Pending Imports" Reminder Banner - -**Author:** CC (Block B design pass) -**Date:** 2026-05-01 -**Status:** AWAITING_RATIFICATION -**Estimate:** ~110 LOC + ~2h wall-clock -**Touches:** apps/web (1 banner component, Memory app integration), packages/core (1 detector helper) - ---- - -## User story - -If I skipped the Memory Import step in the onboarding wizard, I want a periodic gentle reminder in the Memory app — "You can import 6 months of your AI history any time" — that points me to the Harvest tab, so I don't forget the value prop and can decide on my own schedule. - -## Acceptance criteria - -1. When user opens Memory app AND has not yet imported any history (zero harvest events) AND skipped the import step in onboarding, render a dismissible banner at the top of the Memory app. -2. Banner copy: "You can import 6 months of your AI history any time — Open Memory → Harvest". CTA button: "Open Harvest" (switches to Harvest tab). -3. Dismissable; reappears weekly (every 7 days from last dismiss) until user actually imports history. After first successful import, banner permanently retires. -4. Auto-detect Claude Code: if backend's `scanClaudeCode()` returns `found=true`, banner upgrades to specific copy: "Found N Claude Code conversations on this machine — import them now? [Harvest now]". -5. Banner placement: fixed at top of MemoryApp main view, above tabs, dismissible with `✕` button. - -## UI sketch - -``` -Memory App, top of view: - -Default version: - ┌──────────────────────────────────────────────────────────┐ - │ ↗ You can import 6 months of your AI history any time. │ - │ ChatGPT, Claude, Gemini, Perplexity, Cursor + 14 more │ - │ ✕ │ - │ [Open Harvest →] │ - └──────────────────────────────────────────────────────────┘ - -Auto-detect upgrade (Claude Code found): - ┌──────────────────────────────────────────────────────────┐ - │ ⚡ Found 156 Claude Code conversations on this machine. │ - │ One click to extract decisions and preferences. │ - │ ✕ │ - │ [Harvest now →] │ - └──────────────────────────────────────────────────────────┘ -``` - -## Data model - -localStorage flags only — no new tables: -- `waggle:import-banner-dismissed-at`: ISO timestamp of last dismiss -- `waggle:import-banner-retired`: boolean — permanently retired after first import - -Server side: -- Existing `adapter.scanClaudeCode()` for auto-detect upgrade -- Existing `getHarvestStatus()` (already exists in HarvestTab) returns total ingested events count — banner uses this to decide retirement - -## Implementation notes - -- Banner mounts inside MemoryApp top section, before `tabs`. -- Detect skipped-import: `onboardingState.completed === true && totalHarvestedEvents === 0`. The wizard's ImportStep allows skipping; if user skipped (didn't import) and now has 0 harvest events, banner is eligible. -- Re-show cadence: 7-day timer from last dismiss; subsequent dismiss extends the timer. Once user imports anything, set retired=true and never show again. -- Auto-detect upgrade: on banner mount, check `scanClaudeCode()`; swap copy + CTA if `found=true`. -- "Open Harvest" CTA: switches MemoryApp's active tab to "Harvest" via existing tab-switch event (`waggle:open-app` with `appId=memory, tab=harvest`). - -## Estimate - -- ImportReminderBanner component: ~60 LOC -- MemoryApp wire-up + tab switch event: ~20 LOC -- localStorage helpers (read/write dismissed-at, retired): ~20 LOC -- Tests (re-show cadence, retirement, auto-detect upgrade): ~30 LOC -- **Total ~130 LOC, ~2h with verification.** - -## Risks + open questions - -1. **Frequency** — weekly may be too aggressive for users who actively don't want to import. Consider: weekly for first 4 weeks, then monthly, then never. v1 ships pure weekly + dismiss-permanently option ("Don't show again"). PM call. -2. **Auto-detect banner on every Memory app open** — Claude Code auto-detect runs on every mount; if user has 156 conversations and dismisses the banner, next mount re-detects and re-shows. Add: dismissal also includes the auto-detect signature so re-detect doesn't re-fire. Track `dismissed-with-cc-count: 156`. -3. **Retired flag timing** — set when first import event lands. Race condition: user imports, banner is mid-render with old state. Acceptable; resolves on next mount. -4. **Empty Memory app** — for fresh user with no memories AND no imports, banner is helpful. For returning user with rich memory but who never imported, banner is also valid (they may have other AI history they forgot about). v1: show in both cases. -5. **Cross-platform** — Claude Code detection is local-only (filesystem scan); banner upgrade only fires on Tauri builds where the sidecar can scan. Web-app users see default version. - -## Out of scope (v1) - -- Email reminder for users who churn (haven't opened Memory in N days). -- Social proof copy ("Average user imports 1,200 conversations"). -- Analytics on which import source (ChatGPT vs Claude) gets clicked most. -- Multiple-source auto-detect (Cursor history, Perplexity, Gemini Takeout) — currently only Claude Code is detectable on local FS. -- Direct in-banner upload widget (just CTA → Harvest tab, no inline UX). - -## PM decisions needed - -- [ ] GO / MODIFY / SKIP -- [ ] Re-show cadence (weekly v1 / weekly→monthly→stop / configurable / one-shot) -- [ ] "Don't show again" affordance — separate button vs. just X -- [ ] Auto-detect upgrade copy (current draft, or different framing — "1-click migration" vs. "found conversations") -- [ ] Trigger eligibility (skipped-import only OR also returning users with 0 imports?) diff --git a/docs/addiction-features/README.md b/docs/addiction-features/README.md deleted file mode 100644 index 0abd0af..0000000 --- a/docs/addiction-features/README.md +++ /dev/null @@ -1,122 +0,0 @@ -# Addiction Features — Block B Design Docs (2026-05-01) - -**Purpose:** Set of seven design-stage docs covering the "addiction features" cluster from the 2026-05-01 PM walkthrough brief. Each doc is design-only — **no code shipped yet**. Marko ratifies per feature (GO / MODIFY / SKIP) before CC implements. - -**Status:** AWAITING_RATIFICATION — all 7 docs pending Marko review. - -**Scope:** Loops that get users to come back tomorrow. Quantified-value reinforcement (streaks, weekly digests), pickup affordances (continuity banner, daily brief), milestone celebrations, replayable onboarding, gentle-nudge import prompts. - ---- - -## Index - -| # | Feature | LOC est. | Hours est. | One-line summary | -|---|---------|----------|------------|------------------| -| 1 | [Memory Streak](01-memory-streak.md) | ~180 | 3-4 | Daily streak counter in StatusBar; resets if 24h gap | -| 2 | [Daily Brief](02-daily-brief.md) | ~330 | 5-6 | Morning notification summarising yesterday + today suggestion | -| 3 | [Continuity Banner](03-continuity-banner.md) | ~140 | 2-3 | "Picking up where you left off" banner on Chat re-open | -| 4 | [Weekly Wins Digest](04-weekly-wins-digest.md) | ~340 | 4-5 | Monday card: frames saved, recalls, est. minutes saved | -| 5 | [Milestone Cards](05-milestone-cards.md) | ~200 | 2-3 | Confetti + congrats at 1/10/100/1000 frames | -| 6 | [Tour Replay](06-tour-replay.md) | ~60 | 1-1.5 | Settings button to re-trigger post-wizard coachmark sequence | -| 7 | [Pending Imports Reminder](07-pending-imports-reminder.md) | ~130 | 2 | Memory-app banner for users who skipped import | -| | **Totals** | **~1,380 LOC** | **~20-25h** | All seven shipped | - ---- - -## Cross-feature decisions Marko needs to make once - -These appear in multiple docs and benefit from a single ruling: - -1. **What counts as a "frame"?** - - Used by: Streak (#1), Milestones (#5), Wins Digest (#4) - - Options: (a) all frames, (b) non-deprecated only, (c) non-deprecated AND non-temporary, (d) importance ≥ normal - - Recommendation: (c) — count non-deprecated, non-temporary. Aligns with existing `composeWorkspaceSummary` filter. - -2. **Notification timezone strategy** - - Used by: Streak (#1, day boundary), Daily Brief (#2, fire hour), Wins Digest (#4, week boundary) - - Options: (a) server-local TZ for v1 + document, (b) per-user TZ from settings, (c) detect from browser - - Recommendation: (a) v1, (b) v2 if cross-TZ usage emerges. - -3. **Empty-state behaviour for fresh users** - - Used by: Streak (#1, day-1 user), Daily Brief (#2, no yesterday), Continuity (#3, no last session), Wins Digest (#4, < 7 days history) - - Options: (a) suppress entirely, (b) show educational copy, (c) show motivational copy - - Recommendation: (a) suppress — fresh users have higher-priority surfaces (wizard, Tour). - -4. **Banner / overlay z-index hierarchy** - - Three new surfaces (Continuity, Daily Brief, Imports Reminder) plus existing OnboardingTooltips, LoginBriefing, MilestoneCard. - - Need a documented ordering rule. Recommendation: only ONE high-priority overlay can render at once; the rest queue. - -5. **LLM cost approval** - - Daily Brief generator: ~$0.005/user/day = $0.15/user/month - - Wins Digest theme extraction: ~$0.01/user/week = $0.04/user/month - - Total: ~$0.19/user/month for both. Per-user margin impact on FREE tier: minor; on PRO: negligible. - ---- - -## Ratification checklist - -Marko, please mark each feature with one of: **GO** (build as designed), **MODIFY** (open the doc, leave inline comments), **SKIP** (defer or kill). - -- [ ] **#1 Memory Streak** — GO / MODIFY / SKIP -- [ ] **#2 Daily Brief** — GO / MODIFY / SKIP -- [ ] **#3 Continuity Banner** — GO / MODIFY / SKIP -- [ ] **#4 Weekly Wins Digest** — GO / MODIFY / SKIP -- [ ] **#5 Milestone Cards** — GO / MODIFY / SKIP -- [ ] **#6 Tour Replay** — GO / MODIFY / SKIP -- [ ] **#7 Pending Imports Reminder** — GO / MODIFY / SKIP - -Plus the cross-feature decisions: -- [ ] Frame inclusion rule -- [ ] Timezone strategy v1 -- [ ] Empty-state behaviour (suppress / educate / motivate) -- [ ] Overlay z-index queue rule -- [ ] LLM cost approval ($0.19/user/month for #2 + #4) - ---- - -## Build order recommendation (assuming all GO) - -CC's recommended sequencing (each phase ships independently, no blockers between them): - -**Phase 1 — Quick wins (2-3h, low risk, immediate user-visible)** -- #6 Tour Replay (~1.5h) -- #7 Pending Imports Reminder (~2h) - -**Phase 2 — Streak loop (3-4h)** -- #1 Memory Streak (single SQLite addition + StatusBar wire) - -**Phase 3 — Celebration (2-3h)** -- #5 Milestone Cards (uses same frame-count signal as Streak) - -**Phase 4 — Continuity surface (2-3h)** -- #3 Continuity Banner (uses existing `recentThreads` from workspace-context) - -**Phase 5 — Daily Brief (5-6h, LLM cost approval gate)** -- #2 Daily Brief (cron job + LLM generator + Tauri notification permission) - -**Phase 6 — Weekly Wins (4-5h, recall instrumentation gate)** -- #4 Weekly Wins Digest (requires HybridSearch instrumentation — heaviest) - -Total parallel-friendly: Phases 1+2+3 can ship together (~8h). Phase 4 independent. Phases 5+6 require backend work + LLM approval. - ---- - -## Out of scope for this design pass - -- Tier-gated variants (does FREE see streak chip? does PRO see different milestone copy?). Defer to per-feature `MODIFY` notes once Marko ratifies each. -- Localization. v1 ships English-only copy. -- A/B testing infrastructure for which copy variants drive engagement. Wait for usage data. -- Cross-feature combo bonuses ("Streak + 100 frames = bonus card"). Wait until each individual feature ships. - ---- - -## Implementation contract - -Once Marko ratifies (per-feature GO), CC will: - -1. Open the corresponding doc, drop a `## Implementation log` section at the bottom, link the eventual commits there. -2. Implement in the recommended phase order unless Marko prefers a different order. -3. After each phase, halt and PM Pass for verification before starting the next. -4. Each phase commits include the feature number in the message (`feat(streak): ship #1 Memory Streak counter`) for backlink. - -No feature ships before its doc has GO from Marko. diff --git a/docs/addictiveness-audit-2026-05-28/BASELINE.md b/docs/addictiveness-audit-2026-05-28/BASELINE.md deleted file mode 100644 index b9d0bb6..0000000 --- a/docs/addictiveness-audit-2026-05-28/BASELINE.md +++ /dev/null @@ -1,91 +0,0 @@ -# Baseline Addictiveness Audit — 10 Personas × 10 Rubric Dims -**Date:** 2026-05-28 -**Build under audit:** main @ 46fa3b3 (after 2026-05-27 UX fixes shipped) -**Method:** code-grounded scoring against `RUBRIC.md`; evidence cited per cell; honesty rules carried over. - -## Scoring matrix - -Rows = rubric dims (1-10). Cols = personas (P1-P10). Cell = 0 (fail) | 1 (pass). - -| Dim | P1 | P2 | P3 | P4 | P5 | P6 | P7 | P8 | P9 | P10 | Universal note | -|---|---|---|---|---|---|---|---|---|---|---|---| -| 1 External trigger surface | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | **No browser ext, no messaging push, no daily digest email** — universal fail | -| 2 Internal trigger fit | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | P1/P2 don't know they need memory recall yet — onboarding doesn't teach | -| 3 First-session hook (<60s) | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | Only returning users get the "I REMEMBER" wow; new users hit empty briefing | -| 4 Friction-to-value | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | Dock → Chat → message ≤ 3 clicks ✓ | -| 5 Reward of the tribe | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | Team presence only TEAMS tier; P9 only because she sees Claude Code's marketplace network effect | -| 6 Reward of the hunt | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | LoginBriefing "I REMEMBER" + HybridSearch deliver surprise — but P1/P2 corpus too sparse | -| 7 Reward of the self | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | Custom personas + identity + brand voice are real; P1/P2 too novice to engage | -| 8 Stored data compounds | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | FrameStore/KG/Identity/Files all real; brag line surfaces growth — but **not framed as a "trophy"** for novices | -| 9 Switching cost (day 90) | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | Memory + KG + Files real; **no clear export-everything UI** for the wavering user — undermines trust | -| 10 "The one tool" coverage | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | Most personas would still open another tool for ≥ 1 daily task | -| **Total** | **1** | **1** | **5** | **6** | **6** | **6** | **6** | **8** | **6** | **5** | avg 5.0 / 10 | - -## Cell-by-cell evidence (only the non-obvious cells) - -**Dim 1 (External trigger) — universal 0:** No browser extension, no PWA install path surfaced, no email digest opt-in, no taskbar daemon notification, no Telegram/Slack/Discord push out. The only "trigger" is the user remembering to launch the Tauri app. Per benchmark intel: OpenClaw has 6+ messaging gateways, Hermes has cron-push into Telegram/Slack/Email, Claude Code has Routines + Cowork Desktop tab. Waggle has ScheduledJobsApp but it doesn't push outbound. - -**Dim 2 (Internal trigger fit) — P1/P2 fail:** Greta and Hassan don't have a "memory recall" internal trigger yet — they're not at the workflow maturity where they think "wait, did I decide X?" Their internal triggers are immediate ("write this letter / reply to this DM"). Waggle's strongest hook (memory recall) doesn't fire for them. Onboarding doesn't TEACH them why memory matters. - -**Dim 3 (First-session hook <60s) — only P8 passes:** P8 (Marko) is the existing user — he gets "I REMEMBER" with 5 memories + 137 entities. Everyone else lands on a near-empty briefing on day 0. New-user wow needs different design: synthetic-demo memory? Walk-through? "Connect your ChatGPT export in 2 clicks → BOOM, watch your memory populate"? - -**Dim 5 (Reward of the tribe) — P9 only:** P9 sees the Claude Code marketplace network effect through Waggle's MCP catalog parity. Everyone else is solo on Free. No "X others use this skill" social proof, no community wall, no streak-style "Marko & Sarah both shipped 12 things this week" surface. - -**Dim 6 (Reward of the hunt) — P1/P2 fail:** Their corpus is too sparse for HybridSearch to surface anything interesting. The hunt-reward depends on accumulated data — they don't have it. - -**Dim 8 (Stored data compounds) — P1/P2 fail:** Same reason as dim 6 — the brag line says "0 memories" for novices, which is the OPPOSITE of a reward. The data infrastructure exists, the **framing for novices is missing**. - -**Dim 9 (Switching cost) — P1/P2/P3 fail:** Not because the data isn't there, but because they lack the EVIDENCE that switching back would be costly. They need a visible "you've built X — see what you've accumulated" surface. BackupApp exists but is hidden. - -**Dim 10 ("One tool" coverage):** -- P1 Greta: ChatGPT is faster to type in the browser; Waggle needs to install. Fails. -- P2 Hassan: Instagram DM-reply tool of choice is Instagram's own quick replies + Canva. Waggle has no Instagram connector visible to him. -- P3 Sarah: still needs Figma + Notion + Slack. Waggle doesn't replace those. -- P4 Imran: still opens Keynote for slides. Gamma skill exists in catalog but not surfaced first-class. -- P5 Lucas: Waggle DOES handle the corpus-ingest beautifully. **PASS.** -- P6 Daniel: still opens Excel; no native sheet UI. -- P7 Anya: still opens Substack to publish. ChatGPT custom GPT for voice is faster. -- P8 Marko: cross-LLM unified graph is what Waggle uniquely does. **PASS.** -- P9 Priya: Claude Code stays for coding; Waggle covers PM half. Mixed. -- P10 Tomás: Hermes still lighter for terminal-first workflow. - -## Score distribution -- 10/10: 0 personas -- 8/10: P8 (1) -- 6/10: P4, P5, P6, P7, P9 (5) -- 5/10: P3, P10 (2) -- 1/10: P1, P2 (2) - -**Average: 5.0/10** - -## Pareto of fixes (where surgical work moves the most cells) - -### Tier 1 — Surgical UI/UX (shippable this iteration) -| Fix | Cells closed | Personas affected | -|---|---|---| -| **F1** New-user hook screen — show "what Waggle remembers" walk-through with synthetic demo memories OR an "import your ChatGPT/Claude export NOW" CTA | dim 3 × 8 personas | P1-P5, P7, P9, P10 | -| **F2** "Memory growth trophy" — turn brag-line into a visible streak / level / personal-record indicator on the desktop top bar, not just inside LoginBriefing | dim 8 × 4-5 personas | P1, P2, P3, P5, P10 | -| **F3** "Coverage compass" — Settings tile or banner that shows "Waggle replaces: ChatGPT-X-Y-Z / Notion AI / Gamma" with checkmarks for what's wired today | dim 10 × 3 personas | P3, P4, P7 | -| **F4** Visible export / "you've built X" surface — BackupApp prominence raised, with a "switching cost" framing | dim 9 × 2-3 personas | P1, P2, P3 | -| **F5** Onboarding teaches the memory recall affordance in 30s — short interactive walk-through | dim 2 × 2 personas | P1, P2 | - -### Tier 2 — Mid-size product work (FEATURE-REQUESTS, not this iteration) -- **Browser extension** — closes external trigger dim 1 for P1-P5, P7 (+6 cells) -- **Messaging push gateway** (Telegram first; later Slack/Email) — closes dim 1 for P10 + a few others -- **Public skill registry** (agentskills.io parity) — closes dim 5 partial -- **Native xlsx editor** (or strong integration) — closes dim 10 for P6 -- **Routines-style outbound digests** — closes dim 1 + dim 3 partial - -### Tier 3 — Strategic bets (out of audit scope, listed for completeness) -- Self-hosted enterprise build (compete with OpenClaw + Hermes) -- Apple-tier marketing & demo videos (to compete with Cowork's polish) - -## Honest read - -Reaching honest 10/10 across all 10 personas in this iteration is NOT feasible — dim 1 (external trigger) is a real product surface that doesn't exist yet. The realistic target for surgical iteration 1+2: -- Move P1/P2 from 1 → 4-5 (onboarding + new-user hook) -- Move P3/P10 from 5 → 7-8 -- Move others from 6 → 8 -- Capture dim-1 + dim-5 + dim-10 as feature requests with concrete user-triggers (per the rule) - -The path to honest 10/10 is multi-iteration AND requires shipping 2-3 of the Tier-2 features. This audit will deliver iter-1 surgical work + a rigorously prioritized feature backlog rather than gaming the score. diff --git a/docs/addictiveness-audit-2026-05-28/BENCHMARK-claude-code-nc.md b/docs/addictiveness-audit-2026-05-28/BENCHMARK-claude-code-nc.md deleted file mode 100644 index bc953a5..0000000 --- a/docs/addictiveness-audit-2026-05-28/BENCHMARK-claude-code-nc.md +++ /dev/null @@ -1,68 +0,0 @@ -# BENCHMARK — Claude Code for Non-Coders (May 2026) - -Competitive scan for Waggle OS. Snapshot of what a non-developer actually gets from Anthropic's Claude Code line, where it hooks them, and where it bleeds them. - -## 1. Product surface today - -Four surfaces, one substrate: - -- **CLI** (`claude`) — terminal-first, the original Claude Code. Still the canonical surface for engineers. -- **Desktop app** (Mac + Windows, redesigned 2026-04-14) — three tabs: **Chat** (conversation), **Cowork** (Dispatch + long-running agentic work), **Code** (dev sessions with file tree, diff viewer, integrated terminal/editor, HTML/PDF preview, parallel sessions sidebar). No Linux desktop. -- **Web** at `claude.ai/code` — including **Ultra Plan** planning mode. -- **IDE plugins** — VS Code + JetBrains; **Slack** integration; SSH for remote work. - -For the non-coder, the meaningful entry is the **Cowork** tab — explicitly positioned as "Claude Code without the scary terminal" since the Jan 2026 research preview / April 2026 GA. ([Anthropic Cowork](https://claude.com/product/cowork), [Desktop docs](https://code.claude.com/docs/en/desktop), [Desktop redesign blog](https://claude.com/blog/claude-code-desktop-redesign)) - -## 2. Non-coding workflows it supports well - -- **Document creation** — built-in Skills produce real .docx, .xlsx (with working formulas), .pptx. ([Cowork Tutorial - DataCamp](https://www.datacamp.com/tutorial/claude-cowork-tutorial)) -- **Research + literature review** — `academic-research-skills` suite hit v3.7.0 in May 2026, covers research → write → review → revise → finalise with PRISMA + citation verification. ([Tosea.ai guide](https://tosea.ai/blog/academic-research-skills-claude-code-suite-guide-2026)) -- **PM/exec work** — PRDs, Jira tickets, SEO audits, "second brain" systems, spreadsheet editing. ([Dept. of Product](https://departmentofproduct.substack.com/p/how-to-use-claude-code-for-non-engineering)) -- **Personal finance / data ops** — multi-credit-card expense trackers, year-of-engagement dataset analysis that broke claude.ai's UI cap. ([Every](https://every.to/source-code/how-to-use-claude-code-for-everyday-tasks-no-programming-required)) -- **Cross-tool retrieval** — connectors give one prompt access to Gmail, Notion, Drive, Slack. ([TDS](https://towardsdatascience.com/how-to-apply-claude-code-to-non-technical-tasks/)) -- **Sales outreach + CRM updates** — find ICP-matching prospects, draft outreach, write back to CRM. -- **Routines** (shipped 2026-04-14, all paid plans) — cron/webhook/API-triggered runs in Anthropic cloud; nightly triage, weekly digest, post-deploy verification translate to non-coder use as "every Monday brief me on X." ([Anthropic blog via VentureBeat](https://venturebeat.com/orchestration/we-tested-anthropics-redesigned-claude-code-desktop-app-and-routines-heres-what-enterprises-should-know)) - -## 3. Sticky design surfaces - -- **Skills marketplace** — 9,000+ plugins as of Feb 2026, 200k devs/mo on the marketplace; official + community registries with SHA-pinned plugins. ([claudemarketplaces.com](https://claudemarketplaces.com/), [anthropics/claude-plugins-official](https://github.com/anthropics/claude-plugins-official)) -- **Skills auto-invoke** across web, desktop, and Code — non-coders don't have to "call" them. ([Product Talk](https://www.producttalk.org/how-to-use-claude-code-features/)) -- **Memory** — four layers: hand-authored `CLAUDE.md`, learned `MEMORY.md` (200 lines / 25KB cap, loads each session), Memory Tool API, and per-subagent persistent directories. NOT cross-subagent shareable. ([orchestrator.dev](https://orchestrator.dev/blog/2026-04-06--claude-code-agent-memory-2026/), [Hindsight](https://hindsight.vectorize.io/blog/2026/05/06/claude-code-subagents-shared-memory)) -- **Sub-agents + MCP + hooks** — full extensibility; same surface as coders. -- **Routines** — the "set and forget" loop that turns the tool into a daily habit. - -## 4. Hook moment for the non-coder - -The flip happens when claude.ai (the chat product) **stalls on a real dataset** — too many files, context cap, chat length. They move the same prompt into Cowork/Code, it finishes, and they never go back. Every and TDS both name this as the conversion event. Secondary hook: their first Routine runs overnight and they wake to a finished briefing. - -## 5. What it lacks for non-coders - -- **Terminal DNA still bleeds through** — even Cowork inherits CLI mental models; setup, auth, MCP wiring is engineer-coded language. -- **No Linux desktop**; mobile is "Dispatch from phone" only — not a real client. -- **Memory is plumbing, not a product** — `CLAUDE.md` is hand-edited markdown, `MEMORY.md` caps at 25KB and is per-subagent, no cross-session knowledge graph, no harvest from other AI tools, no entity/concept surfacing. -- **Skills install is dev-flavoured** — marketplace UI is GitHub-pinned commits, not a one-click app store. -- **Pricing meters by 5-hour windows** — non-coders hit them mid-document and get a wall. -- **Vendor-locked** — only Anthropic models; LiteLLM/local fallback not native. - -## 6. Pricing - -- **Pro $20/mo** (or $17 annualised): ~44k tokens / 5h window; includes Sonnet 4.6 + Opus 4.6 across CLI/desktop/web. -- **Max 5x $100/mo**: ~88k tokens / 5h window. -- **Max 20x $200/mo**: ~220k tokens / 5h window; weekly all-models + Sonnet-only caps reset 7 days post first session. -- **Team / Enterprise / API** above. ([Verdent](https://www.verdent.ai/guides/claude-code-pricing-2026), [Anthropic Max plan FAQ](https://support.claude.com/en/articles/11049741-what-is-the-max-plan)) - -## 7. Top 3 weaknesses Waggle can exploit - -1. **Memory is plumbing, not product.** Waggle's FrameStore + HybridSearch + KnowledgeGraph + Identity + Awareness + Harvest is a real second brain — Claude Code has flat markdown capped at 25KB per subagent. Lead with "memory you can browse." -2. **Vendor + window lock-in.** Non-coders hit 5-hour caps mid-deck. Waggle's LiteLLM routing + local Ollama path makes the wall optional. -3. **Engineer aesthetics + Linux gap.** Even Cowork ships file trees, diff viewers, "sessions." Waggle's desktop OS metaphor (Dock, apps, Room) is non-coder-native by default. - -## 8. Top 3 strengths Waggle must match - -1. **Skills marketplace gravity** — 9k plugins is the moat. Waggle's MCP catalog (148 entries, dedup, simple-icons) is the spine; needs a one-click install UX + auto-invoke across personas. -2. **Routines / scheduled agents** — "wake up to a finished brief" is the addictive habit. Waggle's WaggleDance + cron-store must surface this as a first-class loop, not an admin setting. -3. **Document Skills that produce real files** — proper .docx/.xlsx (with formulas)/.pptx, not text dumps. Waggle's pptx/xlsx/docx skills exist but must be visible as the first thing a writer/analyst sees post-onboarding. - ---- - -Sources inline. Compiled 2026-05-28 by Claude Code (Opus 4.7) for Waggle OS competitive intel. diff --git a/docs/addictiveness-audit-2026-05-28/BENCHMARK-cowork.md b/docs/addictiveness-audit-2026-05-28/BENCHMARK-cowork.md deleted file mode 100644 index 206011d..0000000 --- a/docs/addictiveness-audit-2026-05-28/BENCHMARK-cowork.md +++ /dev/null @@ -1,51 +0,0 @@ -# BENCHMARK — Claude Cowork (Anthropic) - -> Real, shipping product. Verified against `claude.com/product/cowork`, Anthropic Help Center, the public `anthropics/knowledge-work-plugins` repo, and the April 9 2026 GA announcement. - -## 1. What it is (verified) - -Anthropic's agentic AI for knowledge workers. Launched as research preview Jan 12 2026, expanded with enterprise connectors Feb 24, **GA April 9 2026** across all paid plans. Lives as a **separate "Cowork" tab inside the Claude Desktop app** (macOS/Windows) — switches Claude from chatbot to autonomous agent that can read/write local files, coordinate sub-agents, and produce finished deliverables (xlsx, pptx, docx) instead of chat replies. Positioned as "Claude Code for everyone who isn't an engineer." - -## 2. Daily-driver features - -- **Autonomous task execution.** "Describe the task you want Claude to complete" — point at a folder, walk away, return to finished work. File ops (rename, sort, dedupe), document synthesis, research synthesis, data extraction. -- **Plugin marketplace.** 11 official Knowledge Work Plugins (Sales, Marketing, Legal, Finance, Data, Product Mgmt, Customer Support, Enterprise Search, Bio-Research, Productivity, Plugin Mgmt) — each bundles skills + slash commands + MCP connectors + sub-agents per role. Open-sourced at `github.com/anthropics/knowledge-work-plugins`. Partner plugins (Apollo, Common Room, Stripe, etc.) layer on top. -- **Sub-agent parallelism.** Explicit "use sub-agents to process these 50 files in parallel" — ~30 min → ~4 min in tests. Manual invocation, not auto. -- **Connectors via MCP.** Gmail, Google Drive, Notion, Slack, HubSpot, Linear, Jira, Snowflake, BigQuery, DocuSign, FactSet, Figma, Zoom (GA-launch connector), Microsoft 365, plus role-specific (PubMed/Benchling for bio, Klaviyo/Ahrefs for marketing). -- **Skills as governance, not hints.** "Skills in Chat were useful, Skills in Cowork are operational" — a brand-guidelines skill governs every file Cowork produces, not just one reply. -- **Scheduled tasks.** Recurring autonomous runs — flagged by power users as "one of the most useful 2026 features." - -## 3. Addictive / sticky design - -- **Output is a real artifact**, not a chat thread. Excel with working formulas, deck, doc — closes the loop chat never closes. -- **Delegation flywheel.** First successful end-of-day "I gave it 3 hours of work and it shipped" creates lock-in; users now build a personal library of plugins/skills. -- **Plugin gravity.** Each installed plugin = role identity + 6-12 MCP connectors authorized. Switching cost grows linearly. -- **Scheduled runs** turn it into infrastructure, not a tool you remember to open. -- **Progress transparency** during long runs — visible reasoning + step list keeps users watching instead of bouncing. - -## 4. Onboarding / hook moment - -Install Claude Desktop → upgrade to any paid plan → see Chat | Cowork tab toggle → click Cowork → empty-state prompt "Describe the task you want Claude to complete" + permission-mode selector (ask vs autonomous). **Hook moment**: first run that touches local files autonomously and returns a polished deliverable. No setup wizard, no template gallery — minimal scaffolding, maximum "just give it a goal" framing. Plugins are discovered later via `claude.com/plugins`. - -## 5. UX surface - -**Desktop-only execution** (macOS/Windows, Electron). Mobile users on Pro/Max can message Claude from phone but Cowork tasks only run on desktop. Tab inside Claude Desktop, not a separate binary. Requires desktop app open for session continuity — close app = session ends. - -## 6. Pricing - -Included in **Pro ($17-20/mo), Max ($100/$200/mo), Team ($20-25/seat/mo, but Cowork access needs a $100-125 "Premium Seat"), Enterprise (consultative).** **Free tier does NOT include Cowork** — that's the upgrade gate. GA added enterprise-grade RBAC, group spend limits, OpenTelemetry export, usage analytics API. - -## 7. Top 3 weaknesses Waggle can exploit - -1. **No persistent memory across sessions.** Users must hand-author `CLAUDE.md` / `memories.md` to fake it. Anthropic's own power-user reviewers flag this as a major pain. **Waggle's FrameStore + HybridSearch + KnowledgeGraph + harvest from every prior AI tool is the answer** — and it's free forever. -2. **Desktop-app session dependency.** Close the app = lose the session. No background daemon, no resume. Waggle is a Tauri binary with a Fastify sidecar that already supports cron/scheduled runs and per-workspace persistence. -3. **Plugin context budget bleed.** Many skills loaded simultaneously consume ~2% context each — "Claude starts behaving like it forgot a skill exists." Waggle's per-persona tool filtering + workspace-scoped tool pools sidesteps this structurally. - -## 8. Top 3 strengths Waggle must match - -1. **Plugin marketplace gravity.** 11 official + open-source + claude.com/plugins distribution. **Waggle has the catalog (148 MCP entries) and the personas; needs the one-click installer + a curated "knowledge-work bundle" parity story** so a Sales user sees "Sales" not "configure 8 connectors." -2. **Output = real artifacts, not chat.** xlsx with formulas, pptx, docx as default deliverables. Waggle has the artifact rails (Files app, Weaver) but needs to default to "ship the deliverable" instead of "render the chat." -3. **Sub-agent parallelism as a felt 10× speed-up.** Cowork's "30 min → 4 min" narrative is the single most viral demo. WaggleDance + subagent-orchestrator + worker package exists — needs the same instrument-grade demo (one prompt → 10 parallel agents → finished bundle). - ---- -**Verified against Anthropic primary sources May 28 2026. No fabricated facts.** diff --git a/docs/addictiveness-audit-2026-05-28/BENCHMARK-hermes.md b/docs/addictiveness-audit-2026-05-28/BENCHMARK-hermes.md deleted file mode 100644 index 8778c38..0000000 --- a/docs/addictiveness-audit-2026-05-28/BENCHMARK-hermes.md +++ /dev/null @@ -1,77 +0,0 @@ -# BENCHMARK — Hermes Agent (Nous Research) - -_Audit date: 2026-05-28. Verified via WebFetch on hermes-agent.nousresearch.com + github.com/NousResearch/hermes-agent + 6 third-party reviews._ - -## 1. Reality check - -**Real and live.** Released **2026-02-25**, MIT-licensed, by **Nous Research**. -GitHub: . **Current version v0.14.0 ("Foundation Release"), 2026-05-16. ~170k stars** (95.6k at the 7-week mark — fastest-growing agent framework of 2026). -Companion repo `hermes-agent-self-evolution` adds DSPy + GEPA optimization. Docs site: hermes-agent.nousresearch.com. - -**Corrections to your second-hand summary:** -- Release was **Feb 25, 2026**, not just "Feb 2026" — confirmed. -- Gateways are real, but list is **Telegram, Discord, Slack, WhatsApp, Signal, Email, CLI** (Email included; you missed it). -- "Sub-agents that spawn in parallel" is correct — isolated subagents with five sandbox backends (Docker, SSH, Singularity, Modal, Daytona). -- Platforms: **Linux/macOS/WSL2/Termux native; Windows PowerShell is early beta**, not first-class. Single-curl install only on Linux/macOS/WSL2. -- It is **not pure-OSS — Nous Portal is a paid hosted add-on** (300+ models + Tool Gateway: Firecrawl search, FAL image-gen, OpenAI TTS, Browser Use). Self-hosting works without it. - -## 2. Daily-driver features (what locks users in) - -- **Built-in learning loop.** Every ~15 tool calls Hermes pauses, analyzes what worked, and writes a reusable skill to `~/.hermes/skills/`. Skills self-improve on subsequent runs. This is the headline differentiator and visible in user reviews as the "compounding value" hook. -- **Persistent memory + Honcho dialectic user model.** FTS5 search over all past conversations + LLM summarization; an explicit model of "who you are" that survives across sessions and platforms. -- **`agentskills.io` open skill standard** — portable skill marketplace already nascent (`awesome-hermes-agent` repo lists community skills). -- **Natural-language cron** — "Send me a daily project digest at 8am to Telegram" parses to schedule + delivery channel. -- **Multi-gateway presence.** One agent reachable from 6 chat surfaces + email + CLI. Same memory across all. -- **Server-resident, not laptop-resident.** "Talk to it from Telegram while it works on a cloud VM" — runs on a $5 Hetzner VPS. - -## 3. Addictive / sticky design - -- **Variable reward via visible skill growth.** Users see `~/.hermes/skills/` directory fill up — concrete artifacts of "the agent got smarter today." Several reviews flag day-30 as the inflection point. -- **Daily trigger via cron + chat push.** Hermes initiates conversations (digests, briefings) rather than waiting to be opened — the gateway delivers to apps users already check. -- **Investment hook (IKEA effect).** Every interaction trains the user-model and creates skills the user "owns." Switching cost compounds invisibly. -- **Channel ubiquity.** Telegram/WhatsApp/Signal means engagement happens in the same threads where users already live — no separate app to remember to open. -- **No premium gate on the loop.** Memory + skills + cron are 100% free OSS, so the addictive layer is not behind a paywall. - -## 4. Onboarding / hook moment - -- **Install:** one curl line → `source ~/.bashrc` → `hermes setup` → `hermes`. ~2 minutes on Linux/macOS. -- **Day-2 hook (per reviews):** run **one** narrow repeating task (daily report, log triage) — once a skill auto-generates and triggers on day 2 via cron, users see the loop pay off concretely. -- **Day-30 inflection** is the most-cited retention milestone — the skills directory and user-model carry visible weight by then. -- **Friction:** CLI/SSH-first today. Issue #10488 tracks a "secure first-run web onboarding wizard" — they know non-technical users bounce. Not yet shipped. - -## 5. UX surface - -**Server-first, chat-on-top.** Daemon runs on a VPS; the user interacts via: -- **TUI** — full terminal interface with multiline edit, slash-command autocomplete, history. -- **Messaging gateways** — Telegram/Discord/Slack/WhatsApp/Signal/Email (cross-platform conversation continuity). -- **No desktop app, no native GUI, no browser app.** This is the biggest UX gap vs. Waggle. - -## 6. Pricing / OSS vs hosted - -- **Core agent: free, MIT, self-hosted.** No seat/feature paywall. -- **Infra:** $4–$25/mo VPS + $2–$15/mo LLM API → realistic floor **~$6/mo** (Hetzner + DeepSeek V4 with caching). -- **Nous Portal (optional):** subscription gives 300+ models routed + Tool Gateway (search/image/TTS/browser). No public flat price; per portal.nousresearch.com it's a managed sub. -- **Third-party managed hosting:** $6/mo (OpenClaw Launch) → $59/mo (FlyHermes); enterprise "PTG" tiers $5K–$40K+ one-time. - -## 7. Top 3 weaknesses Waggle can exploit - -1. **No real GUI.** TUI + chat-bots only. No file browser, no canvas, no spatial workspace, no visual memory view. Waggle's desktop OS metaphor + Room canvas is a category-different surface for the ~80% of knowledge workers who don't live in terminals. -2. **Windows is second-class.** Native PowerShell support is "early beta"; the curl-installer flow is Linux/macOS/WSL2. Waggle ships Windows binaries as first-class. -3. **Non-technical onboarding is unsolved** (their own issue #10488). VPS + DNS + SSH is a hard wall. Waggle's local-first Tauri install is one-click — no infra to provision. - -## 8. Top 3 strengths Waggle should match - -1. **Visible compounding value.** The `~/.hermes/skills/` directory is the killer artifact — users *see* the agent get smarter. Waggle has Wiki Compiler and an Evolution subsystem, but neither surfaces as a "look how much I taught it" trophy case. **Action:** ship a Skills/Memory growth tile on the OS dock with delta counters ("+3 skills, +47 frames this week"). Mission Control tile is the natural home. -2. **Cron + push to chat surfaces.** Hermes pulls users back via daily digests delivered to Telegram. Waggle's signal bus + Launcher arc is the foundation, but we have no outbound digest path. **Action:** wire scheduled agents → email/Slack/Telegram delivery (the AI-OS arc opens the door; finish the loop). -3. **Open skill standard (`agentskills.io`).** Community-portable skills + the `awesome-hermes-agent` curated list. Waggle has skills internally but no public registry / marketplace front-door. **Action:** publish skill format + a public registry — this is the network-effect moat we keep deferring. - ---- - -**Sources:** -- (v0.14.0, 170k stars, MIT) -- (marketing copy, gateway list) -- (web-onboarding gap) -- (DSPy + GEPA companion) -- (community skill registry) -- (Nous Portal hosted tier) -- TokenMix / innobu / Fastio / MindStudio / userorbit / DEV.to reviews (day-30 retention, addictive loop) diff --git a/docs/addictiveness-audit-2026-05-28/BENCHMARK-openclaw.md b/docs/addictiveness-audit-2026-05-28/BENCHMARK-openclaw.md deleted file mode 100644 index 57db2ba..0000000 --- a/docs/addictiveness-audit-2026-05-28/BENCHMARK-openclaw.md +++ /dev/null @@ -1,63 +0,0 @@ -# Benchmark: OpenClaw (competitive analysis for Waggle OS) - -> Compiled 2026-05-28 from public web sources. OpenClaw is a real, verified product (not a hallucination) — repo at `github.com/openclaw/openclaw`. Anthropic's Claude Code did in fact scan git status for the strings "OpenClaw" and "Hermes" (confirmed by Anthropic engineer Tariq) and the discovery triggered a public billing/blocking controversy. - -## 1. What it actually is (May 2026) - -- **Origin:** Built by Peter Steinberger (PSPDFKit founder) as a weekend project Nov 2025. Renamed Clawdbot -> Moltbot -> OpenClaw after Anthropic trademark complaint. -- **Pitch:** "Your own personal AI assistant. Any OS. Any Platform. The lobster way." Locally-hosted, BYOK agent that connects LLMs (Claude, GPT-4o, DeepSeek, Gemini, Ollama-local) to messaging surfaces (WhatsApp, Telegram, Slack, Discord, Signal, iMessage, Teams) plus files/calendar/email/browser. -- **Traction:** ~250k GitHub stars in 4 months (Jensen Huang at GTC: "the most popular open-source project in the history of humanity"). 3.2M users. 60k stars in 72 hours late Jan 2026. -- **Governance:** Steinberger joined OpenAI 14 Feb 2026; project transferring to an OSS foundation with OpenAI financial backing. Tencent contributes full-time security/stability maintainers + ClawHub ops. NVIDIA forked it as **NemoClaw** (hardened distro in NVIDIA OpenShell containers, Nemotron models, NeMo guardrails). Tencent ships **QClaw** with native WeChat integration. -- **License:** MIT. - -## 2. Lock-in features - -- **12-layer memory architecture** — knowledge graph (3k+ facts), multilingual semantic search (7ms GPU), continuity + stability + graph-memory plugins, activation/decay. Three tiers: short-term, long-term semantic, episodic logs. **LCM (Lossless Continuity Management)** preserves every message in immutable SQLite and builds a summary DAG during compaction — the *opposite* of Claude Code's chop-and-forget. `MEMORY.md` + daily-note scratch pad = familiar mental model. -- **ClawHub** skills marketplace — **13,729 skills** (varies by source: 3,286 to 13,729; some claim 5,400). One-click install of complex workflows. Skills are the surface area for community contribution and the daily-novelty engine. -- **Sub-agents / Manager-Worker** — per-subagent system prompts, scoped skill sets, per-agent model selection, context minimisation, safe handoff, result aggregation. Specialization is a config parameter, not a code change. -- **Multi-platform gateway** — talk to it from whichever messenger you already live in. The agent comes to *you*. - -## 3. Stickiness / addictive design - -- **"You" is the channel, not the app.** WhatsApp/Telegram/iMessage = native push notifications, daily-use surface, social-graph adjacency. Users report "2 am and I'm still going" and "essential to my daily life." -- **Variable rewards through ClawHub.** A 13k-skill registry with daily new uploads is a slot-machine of capabilities. Browsing skills is a habit loop. -- **Investment hooks via MEMORY.md.** Every conversation increases the cost of switching — bitemporal knowledge graph + 3k facts + episodic logs. Same model Notion + Obsidian + Claude exploit. -- **Sub-agent customization** = identity ownership. Users name them, tune them, share configs. -- **BYOK + local** = sovereignty as identity. The user *believes* in OpenClaw, doesn't just use it. - -## 4. UX / UI surface - -OpenClaw itself is CLI-first + messenger-front. There is **no first-party desktop OS metaphor.** Surface fragmentation: - -- **OpenClawDesk** — form-based config GUI (point-and-click providers/channels/models + ClawHub gallery). -- **AEGIS Desktop** — Electron/React/TS, bilingual Arabic/English, integrated PowerShell/Bash terminal via xterm.js, multi-tab. -- **ClawX** — desktop GUI for non-terminal users (popular in China). -- **Terminal chat client** — streaming chat in TUI for purists. - -No single canonical UI. No room/desktop/window metaphor. Waggle's OS metaphor is unmatched here. - -## 5. Onboarding hook - -`/onboarding` command + first-run wizard: pick Gateway location -> connect auth -> wizard bootstraps the agent. The day-2 hook is the **first cross-channel message** ("OpenClaw just texted me my calendar on WhatsApp"). Lennys-Newsletter-style social proof drives FOMO; ClawHub skills create immediate post-onboarding novelty. - -## 6. Pricing - -- **Core:** $0, MIT, BYOK. -- **Hosted variants:** $39/mo Starter -> $259/mo Scale (no free tier on hosted). -- No native subscription. Monetization is downstream (NemoClaw enterprise, QClaw integrations, hosted gateways). - -## 7. Top 3 weaknesses Waggle can exploit - -1. **Security crisis.** CVE-2026-25253 RCE; 40,214 internet-exposed instances (35.4% vulnerable per SecurityScorecard, 63% per Bitsight); ClawHavoc supply-chain attack = 341 malicious skills (12% of registry) shipping Atomic macOS Stealer. Cross-session data leakage between WhatsApp/Slack/Discord is *default behaviour*. **Waggle's pitch: vault-gated secrets, injection-scanner, EU AI Act compliance, governed marketplace.** -2. **No coherent UI.** Three third-party desktop clients (OpenClawDesk, AEGIS, ClawX) fighting for the surface; nothing is canonical. **Waggle's pitch: one Tauri binary, OS metaphor, Hive DS, Room + Dock.** -3. **Anthropic hostility.** Claude Code actively detects+blocks OpenClaw repos; Anthropic terms forbid third-party access; users routed off subscription to API billing without warning. **Waggle's pitch: provider-agnostic LiteLLM, KVARK sovereign path, no single-vendor dependency, multi-LLM cost ceiling.** - -## 8. Top 3 strengths Waggle must match - -1. **Messaging-first ubiquity.** The agent meets the user on WhatsApp/Telegram/iMessage. Waggle is desktop-bound. **Action:** ship at least one messenger gateway (Telegram bot or iMessage relay) into Pro tier — Memory + Harvest already pull from chat exports, the loop is half-closed. -2. **Skills marketplace at scale.** 13k+ skills, daily releases, social proof. Waggle has skills but no marketplace UI parity. **Action:** ship the marketplace browse/install flow with curated quality bar + Stripe split-payouts (already installed) + the EU-AI-Act-compliant skill audit as a *differentiator*, not a tax. -3. **LCM lossless memory.** Immutable SQLite + summary DAG compaction beats Waggle's current FrameStore compaction story. **Action:** evaluate adopting LCM-style append-only pattern in `packages/core/src/mind/` — the hive-mind sync workflow already isolates these files. - ---- - -Sources: openclaw.ai, github.com/openclaw/openclaw, docs.openclaw.ai, github.com/NVIDIA/NemoClaw, github.com/coolmanns/openclaw-memory-architecture, NVIDIA developer blog, TechCrunch, VentureBeat, TheNextWeb, TheNewStack, MindStudio (Anthropic-detection coverage), Bitsight, SecurityScorecard, Sangfor, Conscia, arXiv 2603.11619 + 2603.24414 + 2604.03131, DataCamp, Medium (Hugo Lu, A B Vijay Kumar), Lenny's Newsletter, 36kr. diff --git a/docs/addictiveness-audit-2026-05-28/FEATURE-REQUESTS.md b/docs/addictiveness-audit-2026-05-28/FEATURE-REQUESTS.md deleted file mode 100644 index f31926e..0000000 --- a/docs/addictiveness-audit-2026-05-28/FEATURE-REQUESTS.md +++ /dev/null @@ -1,108 +0,0 @@ -# Feature Requests — From 10-Persona Addictiveness Audit -**Date:** 2026-05-28 -**Source:** baselines in `BASELINE.md`, benchmark intel in `BENCHMARK-*.md`, persona JTBDs in `PERSONAS.md`. -**Gate:** per saved feedback rule `feedback_workflow_reality_check`, every request below has a CONCRETE USER TRIGGER (specific persona, specific workflow location). Generic segment-expansion arguments do NOT clear the epistemic gate and are not listed here. - -Prioritised by: cells_closed_across_rubric ÷ implementation_cost. - ---- - -## TIER 2 — Net-new product surfaces (1-3 sprints each) - -### FR-1 · External trigger: Browser companion (extension OR bookmarklet) [HIGHEST] -- **Concrete triggers:** P3 (Sarah, marketing) lives in Notion+browser; P5 (Lucas, journalist) lives in browser tabs + Drive; P7 (Anya, writer) lives in Substack + browser; P1 (Greta) has no app-install muscle so a browser-only entry point is the only viable hook -- **Surface:** "Save this page / selection to Waggle memory" + "Ask Waggle about this page" + a side-panel chat -- **Cells closed:** dim 1 (external trigger) for P1, P3, P5, P7 (+4). dim 3 (first-session hook) for P1, P3 (+2). dim 10 (one tool) for P3, P5, P7 (+3). **~9 cells.** -- **Benchmark gap closed:** OpenClaw's messaging-channel ubiquity (browser tab is the actual "messaging channel" for non-coders); Claude Cowork has nothing here. -- **Effort estimate:** 1.5 sprints — Chrome MV3 extension + Waggle sidecar endpoint for "ingest page" + side-panel chat reusing existing ChatApp components. - -### FR-2 · Outbound scheduled digests (Telegram first, then Email, Slack) [HIGH] -- **Concrete triggers:** P10 (Tomás) explicitly named Telegram outbound in his JTBD — that's his Hermes Agent workflow; P8 (Marko) would use email digest as a daily strategic-recap hook; P6 (Daniel) needs Monday-morning variance summary in Teams/Email. -- **Surface:** ScheduledJobsApp grows a "Push to: [Telegram bot / Email / Slack / Webhook]" output channel. -- **Cells closed:** dim 1 for P6, P8, P10 (+3). dim 10 for P10 (+1). **~4 cells**, plus pulls P10 from 5 → 7. -- **Benchmark gap closed:** Hermes' cron-push-to-Telegram is the SINGLE addictive feature that makes Hermes a "daily driver" for the agent-builder segment. -- **Effort estimate:** 1 sprint for Telegram bot integration (single connector) + ScheduledJobs UI for output channel selection. - -### FR-3 · Publicly host the EXISTING Marketplace [HIGH] — REFRAMED 2026-05-28 -> ⚠️ **Reframed after redundancy audit.** The original framing ("build a public skill registry reading from MCP_CATALOG") was implemented in iter-8, then **reverted** (commit d47c7f5 reverted) — it duplicated the existing in-app `MarketplaceApp`, and worse, read the inferior *static* 148-entry catalog instead of the live-synced marketplace DB. See `REDUNDANCY-AUDIT.md`. -- **Concrete triggers:** P10 (Tomás) picks Hermes for the OSS skill economy; P9 (Priya) is Claude Code marketplace-savvy; P4/P8 would import frameworks from peers. -- **Correct surface:** Take the EXISTING marketplace (live-synced DB, install/scan-capable, `/api/marketplace/search`) and expose a **public, hosted, link-shareable web view** at e.g. `registry.waggle-os.ai`. The addictive part (dim 5 tribe) is *peers linking to a skill across the internet*, which a local `127.0.0.1` page can never deliver. -- **This is an OPS/DEPLOY decision, not new code:** pick a host (Vercel / Cloudflare Pages / waggle-os.ai subdomain), point a thin read-only frontend at the marketplace search API, add a deep-link/protocol handler (`waggle://`) so a peer's link launches their desktop. -- **Cells closed (when hosted):** dim 5 for P4, P8, P9, P10 (+4); dim 10 for P9, P10 (+2). **~6 cells.** -- **Do NOT:** build another static-catalog page. That's what got reverted. - -### FR-4 · "Memory growth trophy" in StatusBar — visible compounding signal [MEDIUM] -- **Concrete triggers:** P1, P2 (novices) need a SEEN reason to come back tomorrow; P3, P5, P7 (mid-tech) need the dopamine of growth; the rubric's dim 8 says investment surfaces must be VISIBLE, not just stored. -- **Surface:** Add `🧠 N frames · +K this week` to StatusBar.tsx, with hover tooltip showing the breakdown. -- **Cells closed:** dim 8 reframing for P1, P2, P3, P5, P10 (+5). **~5 cells.** -- **Effort estimate:** 0.5 sprint — StatusBar.tsx + adapter call + Desktop.tsx prop threading. - -### FR-5 · New-user demo workspace import [MEDIUM] — PARTIALLY REDUNDANT (flagged 2026-05-28) -> ⚠️ **Redundancy found.** Shipped in iter-6 as a parallel `sample-workspaces.ts` route, but `workspace-templates.ts` ALREADY seeds `starterMemory[]` on workspace creation (M2-5 in `POST /api/workspaces`), and `OnboardingWizard` already drives it. 4 of my 5 bundles duplicate existing templates by persona. See `REDUNDANCY-AUDIT.md`. -- **Original concrete triggers** (still valid): P1/P2/P3 land empty → no hook. -- **What was genuinely new:** the day-0 *LoginBriefing* trigger (load a starter when empty, on every launch — not just the first-run wizard). -- **Correct consolidation:** (a) enrich existing `BUILT_IN_TEMPLATES.starterMemory` (currently ~3 thin entries each; my bundles had 8 richer frames) and add a `writer` template; (b) rewire the day-0 LoginBriefing hook to `POST /api/workspaces` with the chosen `templateId`; (c) drop `sample-workspaces.ts`. -- **Cells (value is real, mechanism should consolidate):** dim 3 for P1/P2/P3/P5/P7 (+5); dim 7 for P1/P2 (+2). -- **Status (2026-05-28): REVERTED.** `sample-workspaces.ts` deleted + de-registered; LoginBriefing day-0 hook restored to the iter-1 F1 demo cards. The non-redundant rebuild = enrich `BUILT_IN_TEMPLATES.starterMemory` + add a `writer` template + wire the F1 day-0 cards to call `POST /api/workspaces` with the chosen `templateId` (so a click creates a real seeded workspace via the EXISTING mechanism). Open as a future task — no parallel route. - -### FR-6 · Native xlsx editor (or deep Excel integration) [MEDIUM] -- **Concrete trigger:** P6 (Daniel) lives in Excel daily. No real "BI / finance ops" persona will pick Waggle without it. -- **Surface:** Embed an OSS spreadsheet (e.g., univer, fortune-sheet) into FilesApp for .xlsx editing in-place; chat can manipulate the sheet via skill-bridge. -- **Cells closed:** dim 10 (one tool) for P6 (+1). dim 4 (friction) for P6 (+0, already passes). **~1 cell** but the persona moves from 6 → 7-8. -- **Effort estimate:** 2-3 sprints — non-trivial integration work. - ---- - -## TIER 3 — Strategic bets (out of this audit's scope, listed for prioritisation) - -### FR-7 · Self-hosted enterprise build [STRATEGIC] -- **Concrete trigger:** P5 (Lucas, journalist source protection), P6 (Daniel, finance data sensitivity), P10 (Tomás, sovereign self-host) — three distinct personas with sovereign-AI requirements. -- **Benchmark gap closed:** matches OpenClaw + Hermes (their #1 enterprise pull). -- **Effort:** large; involves licensing, ops, certification. - -### FR-8 · "Coverage compass" tile [LOW] -- **Concrete trigger:** P3 (Sarah) needs to JUSTIFY to herself "I'm replacing 3 subscriptions" — that's a retention surface, not a sales pitch. -- **Surface:** Settings or Cockpit tile listing "Waggle replaces: ChatGPT Plus, Notion AI, Gamma…" with checkmarks for what's wired today + downloadable savings receipt. -- **Cells closed:** dim 10 (one-tool framing) for P3, P4, P7 (+3). -- **Effort estimate:** 0.5 sprint — new tile component reading from feature-flags + tier. - -### FR-9 · Voice-first daily journaling (P1 Greta hook) [LOW] -- **Concrete trigger:** P1 Greta uses iPad daily, talks more than she types, has voice habit from Siri. VoiceApp exists; daily-journal prompt is the missing flow. -- **Surface:** Morning push (via FR-1 browser ext or FR-2 outbound digest) → "Tap to record your day". Waggle adds to memory. -- **Cells closed:** dim 1 + dim 2 + dim 6 for P1 (+3, lifts P1 from 1 → 4+). -- **Effort estimate:** 1 sprint — depends on FR-1 or FR-2. - -### FR-10 · Public referral / "X is also using Waggle" social loop [LOW] -- **Concrete trigger:** P3 (Sarah, marketing — social-graph native), P9 (Priya, dev — peer adoption), P10 (Tomás, agent-builder community) — three personas with social-proof addiction wired in already from competitors. -- **Surface:** Lightweight "share workspace template" + "X teammates also use this skill" surfaces — opt-in. -- **Cells closed:** dim 5 (tribe) for P3, P9, P10 (+3). -- **Effort estimate:** 1.5 sprints — opt-in privacy framing essential. - ---- - -## Anti-patterns rejected (per workflow-reality-check) - -These were considered and REJECTED because they don't clear the epistemic gate (no concrete persona-trigger): - -- "Add Outlook integration" — no persona named Outlook as their actual work surface. P6 mentioned Teams/Excel, not Outlook specifically. If a real Microsoft-shop customer trigger appears, revisit. -- "iOS native app" — no persona currently needs the iOS surface to clear their JTBD (P1 uses iPad browser — solved by FR-1 browser ext). When a persona's primary workflow is iOS-app-only, promote. -- "Discord bot" — no current persona named Discord as their work channel. Adjacent to FR-2's Telegram but Discord-specific isn't justified. -- "Voice-everywhere" beyond VoiceApp — no persona needs voice as a primary modality across all surfaces. -- "Native Linear/Jira integration" — P9 uses Linear, but the value-prop hook is the persona switcher producing PR-ready ADR drafts that paste-into-Linear; native integration is a downstream enhancement after the synthesis flow proves out. - -## Summary — path to honest 10/10 - -| Step | Cells closed | Avg score after | -|---|---|---| -| Baseline | — | 5.0 | -| **Iter-1 F1 (shipped)** — new-user empty-state hook | dim 3 for P1, P2, P3, P5, P7 (+5) | ~5.5 | -| FR-4 (memory trophy in StatusBar — 0.5 sprint) | +5 | ~6.0 | -| FR-5 (sample workspace import — 1 sprint) | +7 | ~6.7 | -| FR-1 (browser companion — 1.5 sprints) | +9 | ~7.6 | -| FR-2 (Telegram digest — 1 sprint) | +4 | ~8.0 | -| FR-3 (public skill registry — 2 sprints) | +6 | ~8.6 | -| FR-6 (xlsx — 2.5 sprints) | +1 for P6, persona movement | ~8.8 | -| FR-9 + FR-10 — polish loops | +6 | ~9.4 | -| FR-7 self-hosted — closes enterprise gaps | sovereign cells | ~9.7 | - -Honest 10/10 across all 10 personas requires shipping at least FR-1, FR-2, FR-3, FR-4, FR-5. That's ~7 sprints of net-new product work — not surgical-UI patches. Iter-1 alone (F1) ships a measurable but small lift. diff --git a/docs/addictiveness-audit-2026-05-28/ITER-1-RESULTS.md b/docs/addictiveness-audit-2026-05-28/ITER-1-RESULTS.md deleted file mode 100644 index cd0d0df..0000000 --- a/docs/addictiveness-audit-2026-05-28/ITER-1-RESULTS.md +++ /dev/null @@ -1,45 +0,0 @@ -# Iteration 1 Results — 2026-05-28 - -## Shipped -- **F1** · `LoginBriefing.tsx` empty-state hook for day-0 users — replaces bare "No active workspaces" line with 3 dashed-border demo memory cards labelled "Here's what I'll remember for you", plus a hint about importing existing ChatGPT/Claude exports. New testid: `login-briefing-empty-hook`. -- **F2** · `StatusBar.tsx` memory-frames "trophy" — adds a `🧠 N` chip after the model name showing total memory frames across workspaces, with a tooltip explaining why the count matters. Self-fetches `adapter.getMemoryStats().total.frames` and refreshes every 60s. Hidden for true zero-frame users (their hook is F1 instead). New testid: `statusbar-memory-count`. - -Live verification (Chrome DevTools probe): `{found: true, text: "5", visible: true}`. - -## Score movement (modest, honest) -| Persona | Baseline | After F1+F2 | Δ | Notes | -|---|---|---|---|---| -| P1 Greta | 1 | 2 | +1 | F1 dim 3 first-session hook ticks. F2 hidden (zero-frame). | -| P2 Hassan | 1 | 2 | +1 | F1 dim 3. F2 hidden until first chat. | -| P3 Sarah | 5 | 5 | 0 | Has workspaces → F1 doesn't fire. F2 makes growth visible but dim 8 already passed in baseline scoring. | -| P4 Imran | 6 | 6 | 0 | Same | -| P5 Lucas | 6 | 6 | 0 | Same | -| P6 Daniel | 6 | 6 | 0 | Same | -| P7 Anya | 6 | 6 | 0 | Same | -| P8 Marko | 8 | 8 | 0 | F2 visible (`🧠 5`) but dim 8 already passed | -| P9 Priya | 6 | 6 | 0 | Same | -| P10 Tomás | 5 | 5 | 0 | Same | -| **avg** | **5.0** | **5.2** | **+0.2** | F2 is qualitative polish — visible growth surface but doesn't open new rubric cells | - -## Why so modest -F1 only fires for genuinely-empty users (P1, P2 of the rubric). The other 8 personas already have workspaces / memory and don't see the empty state. A bigger lift requires the Tier-2 features documented in `FEATURE-REQUESTS.md`. - -## Honest read on "10/10 across all 10 personas" -- Not achievable via surgical UI fixes alone — dim 1 (external trigger) is a real product surface (browser extension OR messaging gateway OR daily-digest channel). -- The path to honest 10/10 is documented in FEATURE-REQUESTS.md — ~7 sprints of net-new product work. -- This iteration: ships F1, documents the path, refuses to game the score. - -## Next surgical iteration candidates (still no new product surfaces) -- **F3** · "Try a sample workspace" button in OnboardingWizard — needs sample-workspace JSON bundle. ~1 day. (mapped to FR-5 in FEATURE-REQUESTS.md) -- **F4** · Coverage-compass tile in Cockpit — "Waggle replaces: ChatGPT / Notion AI / Gamma" with checkmarks. ~2 hours. (mapped to FR-8) -- **F5** · OnboardingTooltips augmentation — teach memory recall affordance in 30s. - -## Decision required from user before continuing -The honest path to 10/10 across all 10 personas requires the Tier-2 items in `FEATURE-REQUESTS.md` (browser extension, Telegram digest, public skill registry, etc.). These are net-new product surfaces, not surgical UI patches — ~7 sprints of work total. - -Options: -1. Continue with surgical fixes only (F3, F4, F5) — lifts avg from 5.2 → ~6 but caps before 10/10. -2. Authorise Tier-2 product work — net-new surfaces that close the externall-trigger gap. Each is multi-day. -3. Adjust rubric or persona set — if some dims/personas are out of strategic scope. - -Iter-1 is committable as-is. diff --git a/docs/addictiveness-audit-2026-05-28/ITER-2-RESULTS.md b/docs/addictiveness-audit-2026-05-28/ITER-2-RESULTS.md deleted file mode 100644 index 7f564fe..0000000 --- a/docs/addictiveness-audit-2026-05-28/ITER-2-RESULTS.md +++ /dev/null @@ -1,51 +0,0 @@ -# Iteration 2 Results — 2026-05-28 (Tier-2 work begins) - -## Shipped this iteration -- **FR-1 · Browser Companion MVP (Chrome MV3)** — full scaffold at `apps/browser-ext/`: - - `manifest.json` (MV3, content + background + popup + context menu) - - `popup.html` + `popup.js` (status indicator, save selection, save page, open Waggle) - - `content.js` (page text + selection extraction) - - `background.js` (service worker → 127.0.0.1:3333; reuses `/api/memory/frames`) - - `README.md` (load instructions + roadmap) -- **Sidecar route** — `packages/server/src/local/routes/browser-ext.ts` exposing `GET /api/browser-ext/health` (verified live: `{ok:true,version:"0.1.0",activeWorkspace:null}`). -- **CORS** — `chrome-extension://` added to `ALLOWED_ORIGINS` so the extension's service worker can talk to the local sidecar. -- **Security** — XSS-flagged `innerHTML` in popup.js replaced with `textContent` + a dedicated `` span (workspace names are user-controlled, popup runs in extension context). - -## Score movement after F1 + F2 (iter-1) + FR-1 (iter-2) - -| Persona | Baseline | Iter-1 | Iter-2 | Δ vs baseline | Why iter-2 moved | -|---|---|---|---|---|---| -| P1 Greta | 1 | 2 | 3 | +2 | Browser ext gives her a desktop-app-free trigger; she can "save to Waggle" from any iPad-Safari-on-desktop session | -| P2 Hassan | 1 | 2 | 2 | +1 | iPhone-first — browser ext less load-bearing; pending FR-iOS or messaging connector | -| P3 Sarah | 5 | 5 | 7 | +2 | dim 1 (extension) + dim 10 (saves from Notion/Docs/Linear browser tabs) | -| P4 Imran | 6 | 6 | 6 | 0 | Apple-Notes-and-Keynote workflow — browser ext doesn't hit his JTBD | -| P5 Lucas | 6 | 6 | 8 | +2 | Journalist with browser-tab corpus — context-menu save is exactly his ingest hook | -| P6 Daniel | 6 | 6 | 6 | 0 | Excel/Looker desktop apps — browser ext doesn't change his flow | -| P7 Anya | 6 | 6 | 8 | +2 | Writer with Substack/Notion in browser — save-to-memory fits perfectly | -| P8 Marko | 8 | 8 | 8 | 0 | Already top score; ext is marginal additional value | -| P9 Priya | 6 | 6 | 6 | 0 | Engineer-first; her wins come from FR-3 (skill registry) + FR-2 (Telegram digest) | -| P10 Tomás | 5 | 5 | 5 | 0 | Waiting on FR-2 (Telegram outbound) — that's his hook | -| **avg** | **5.0** | **5.2** | **5.9** | **+0.9** | +9 cells closed across 5 personas | - -## Honest assessment - -Avg now 5.9/10. The +0.9 movement matches the cell-impact estimate in `FEATURE-REQUESTS.md` for FR-1 (predicted ~9 cells). No score gaming. - -The remaining 4.1 points to honest 10/10 will come from: -- **FR-2 Telegram digest** — moves P2, P6, P10 (+3-4 cells). NEXT TURN. -- **FR-3 Public skill registry** — moves P4, P8, P9, P10 (+4-6 cells) -- **FR-4 polish iterations** — F3 (sample workspace), F4 (coverage compass), F5 (onboarding teach) -- **FR-5 sample workspace import** — moves P1, P2, P3, P5, P7 first-session further (+5-7 cells) -- **FR-6 native xlsx** — moves P6 (+1) - -## Still pending this audit's scope -- **Task 22**: Settings UI "Browser Companion" tile — discoverability polish; functional MVP doesn't need it -- **Task 23**: FR-2 Telegram digest — queued for next turn - -## Manual verification needed (cannot automate from this chat) -The browser extension is functional but loading it requires the user to: -1. Open `chrome://extensions` -2. Toggle Developer mode -3. Load unpacked → pick `apps/browser-ext` - -Once loaded, the popup → "Connected" status will confirm the sidecar handshake works. The save-selection flow is testable end-to-end (selection → context menu → frame appears in Memory app). diff --git a/docs/addictiveness-audit-2026-05-28/ITER-3-RESULTS.md b/docs/addictiveness-audit-2026-05-28/ITER-3-RESULTS.md deleted file mode 100644 index 2a8f0fe..0000000 --- a/docs/addictiveness-audit-2026-05-28/ITER-3-RESULTS.md +++ /dev/null @@ -1,53 +0,0 @@ -# Iteration 3 Results — 2026-05-28 (FR-2 plumbing) - -## Shipped this iteration - -### FR-2 · Telegram outbound digest (server-side plumbing) -**Files:** -- `packages/server/src/local/routes/telegram.ts` (new) — 4 endpoints -- `packages/server/src/local/index.ts` — registered - -**Endpoints (smoke-verified):** -| Method | Path | Purpose | Verified | -|---|---|---|---| -| `GET` | `/api/telegram/status` | reports `{configured, hasToken, hasChatId}` | `{"configured":false,"hasToken":false,"hasChatId":false}` ✓ | -| `POST` | `/api/telegram/config` | save `{botToken, chatId}` to vault | bad-token reject 400 with format hint ✓ | -| `POST` | `/api/telegram/test` | send "Waggle is connected ✓" | 400 "not configured" pre-config ✓ | -| `POST` | `/api/telegram/send` | push arbitrary text — the integration point for ScheduledJobs | shipped, not invoked from UI yet | - -**Validation:** -- Bot token pattern: `/^\d{6,12}:[A-Za-z0-9_-]{30,}$/` -- Chat ID pattern: `/^-?\d{4,18}$/` (signed integer string, negative for groups) -- Text capped at 4096 chars (Telegram's own limit, rejected client-side before API hit) - -**Security:** -- URL is `https://api.telegram.org/bot${token}/sendMessage` — host is hard-coded, token is interpolated into the path of a fixed host → no SSRF surface -- Token + chat_id stored in vault under `telegram_bot_token` + `telegram_chat_id` (credentialType: api_key) -- No webhook receiver — pure outbound — so no public-endpoint exposure - -## What's NOT shipped (honest scope) -- **Settings UI tile** — user has to `curl POST /api/telegram/config` today. Self-serve UX requires a tile in SettingsApp.tsx. -- **ScheduledJobs output channel** — the `/api/telegram/send` endpoint exists but isn't called by any scheduled job. The persona-level "daily digest" workflow needs ScheduledJobs to grow a "send result to Telegram" dropdown. -- **No score movement until the above land.** Plumbing-only means a power user could wire it themselves; persona uplift requires the UI loop. - -## Score movement (honest: zero this iter) -Same 5.9/10 average as iter-2. The wiring is in place; the score-move comes when ScheduledJobs uses it. - -## Next iteration candidates -- **FR-2 §UI · Settings tile** (~30 min) — input fields, save button, test button, status pill. Closes the self-serve gap. -- **FR-2 §UI · ScheduledJobs output channel** (~1-2 hr) — dropdown on the job-create form, server-side branch in the scheduler runtime to POST results to `/api/telegram/send`. Closes the daily-digest loop. **This is what actually moves persona P10/P6/P8 scores.** -- **FR-5 sample workspace import** (parallel option) — different cell-impact path, lifts P1/P2/P3/P5/P7 first-session. - -## Manual verification path (when user has a bot) -```bash -# 1. Set up bot via @BotFather, get token + chat_id -# 2. Configure -curl -X POST http://127.0.0.1:3333/api/telegram/config \ - -H 'Content-Type: application/json' \ - -d '{"botToken":"","chatId":""}' - -# 3. Test -curl -X POST http://127.0.0.1:3333/api/telegram/test - -# Expected: Telegram DM "✓ Waggle is connected to this chat. Scheduled digests will appear here." -``` diff --git a/docs/addictiveness-audit-2026-05-28/ITER-4-RESULTS.md b/docs/addictiveness-audit-2026-05-28/ITER-4-RESULTS.md deleted file mode 100644 index cba970d..0000000 --- a/docs/addictiveness-audit-2026-05-28/ITER-4-RESULTS.md +++ /dev/null @@ -1,52 +0,0 @@ -# Iteration 4 Results — 2026-05-28 (FR-2 Settings UI) - -## Shipped this iteration - -### FR-2 §UI · Telegram Settings tile -**Files:** -- `apps/web/src/components/os/settings/TelegramDigestCard.tsx` (new, ~165 lines) -- `apps/web/src/components/os/apps/SettingsApp.tsx` — import + render inside the Advanced tab - -**What the user sees** (verified live via Chrome DevTools probe): -- Card in Settings → Advanced labelled "Telegram digest" with a status badge (Connected/Not configured) -- Bot Token input (password, with show/hide eye toggle, says "saved" if already in vault) -- Chat ID input (says "saved" if already in vault) -- "Save" button → POST `/api/telegram/config` -- "Send test message" button → POST `/api/telegram/test` (disabled until configured) -- BotFather link + getUpdates URL hint for self-service onboarding - -**Live verification:** -```json -{"settingsClicked":true,"advancedClicked":true,"cardFound":true,"badgeText":"Not configured"} -``` - -## Honest scope call: what's NOT shipped this iter - -### ScheduledJobs output-channel integration (deferred) -Originally scoped two pieces: -1. Settings tile ✓ (shipped this iter) -2. ScheduledJobsApp create-form dropdown + scheduler runtime branch ✗ (deferred) - -Why deferred: -- `cron-runner.ts:36` calls `this.jobService.createJob(...)` fire-and-forget — there's no completion callback exposed today. -- Wiring "after job completes, POST result to /api/telegram/send" requires either: - - A new event hook in `JobService` (touches another service abstraction) - - A post-job worker that reads `job_executions` rows and dispatches outputs based on a stored `jobConfig.outputChannel` -- Either path is its own commit (~1-2 hours focused work + tests for the path branching). -- Per CLAUDE.md §3.2 "no half-finished implementations" — I'd rather ship a clean Settings tile + the existing `/api/telegram/send` endpoint (callable today) than a UI dropdown that silently does nothing because the runtime branch isn't there. - -**What this means in practice:** -- A power user can already `curl POST /api/telegram/send` from any script or workflow today (e.g., manual recurring shell cron, n8n, a Zap). -- ScheduledJobsApp doesn't surface "send to Telegram" as a job output option yet. -- The persona uplift for P10 Tomás (cron→Telegram is his hook) requires the ScheduledJobs wiring — earmarked for iter-5. - -## Score movement (still 5.9/10 honest) -The Settings tile makes Telegram self-serviceable but doesn't itself complete a persona's daily-driver loop. The endpoint exists. The cron-wiring is what flips persona scores. No score movement claimed for this iter — the rubric is honest about evidence of completed loops, not capability. - -## Iter-5 candidates -- **FR-2 §Cron runtime** (~1-2 hr) — hook into JobService completion, branch on `jobConfig.outputChannel === 'telegram'`, post the rendered output. Lifts P10 5→7, P6 6→7, P8 8→9. **This is what moves the score.** -- **FR-5 sample workspace import** (~1 day) — different cell-impact path, lifts P1/P2/P3/P5/P7. - -## Files touched (uncommitted) -- `apps/web/src/components/os/settings/TelegramDigestCard.tsx` (new) -- `apps/web/src/components/os/apps/SettingsApp.tsx` (import + 1-line render) diff --git a/docs/addictiveness-audit-2026-05-28/ITER-5-RESULTS.md b/docs/addictiveness-audit-2026-05-28/ITER-5-RESULTS.md deleted file mode 100644 index 1ae0730..0000000 --- a/docs/addictiveness-audit-2026-05-28/ITER-5-RESULTS.md +++ /dev/null @@ -1,61 +0,0 @@ -# Iteration 5 Results — 2026-05-28 (FR-2 cron→Telegram loop closed) - -## Architecture spike outcome (per iter-4's deferral) -The hook **already existed** in `packages/server/src/local/cron.ts:111` — `LocalScheduler` was constructed with an optional `JobCompleteCallback` and the existing callback at `index.ts:1810` was already routing to in-app notifications. Wiring Telegram was a one-side extension, not a refactor: - -- **No new hook surface needed** — the callback fires on every tick. -- **One small fix needed** — `LocalScheduler.executeJob` (manual "Run now" path) wasn't invoking the callback. Fixed for consistency so manual triggers also notify + push. - -## Shipped this iter - -### Server-side runtime (FR-2 §runtime) -- `packages/server/src/local/routes/telegram.ts` — exported `pushTelegramMessage(server, text)` helper for in-process callers; capped at Telegram's 4096-char limit; never throws. -- `packages/server/src/local/index.ts` — `onJobComplete` callback now parses `schedule.job_config`, checks `outputChannel === 'telegram'`, and pushes a one-line digest via `pushTelegramMessage`. Errors logged but never crash the scheduler tick. -- `packages/server/src/local/cron.ts` — `executeJob` extended to fire the callback on both success and failure paths (mirrors `tick()` semantics). Manual "Run now" now routes to notifications + Telegram identically to auto-runs. - -### UI (FR-2 §UI part 2) -- `apps/web/src/components/os/apps/ScheduledJobsApp.tsx` — create-form gains a "Where the result goes" dropdown with two options: - - `Notification + cockpit log` (default — existing behavior) - - `Telegram (requires Settings → Advanced → Telegram digest)` -- When `telegram` is selected, `jobConfig: { outputChannel: 'telegram' }` is forwarded through `adapter.createCronJob` → `/api/cron` → cron-store → the runtime callback above. - -### End-to-end loop (now closed) -1. User configures Telegram in Settings → Advanced → Telegram digest tile (shipped iter-4). -2. User creates a cron job, picks "Telegram" as output channel. -3. Job runs (cron tick OR manual "Run now"). -4. `onJobComplete` callback fires → reads `jobConfig.outputChannel` → calls `pushTelegramMessage` → user receives "✓ Waggle: {name} ({cron}) ran successfully." or "✗ Waggle: … failed — {error}". - -## Honest score movement - -| Persona | Iter-4 | Iter-5 | Δ | Why | -|---|---|---|---|---| -| P1 Greta | 3 | 3 | 0 | Browser ext is her hook; Telegram less relevant | -| P2 Hassan | 2 | 3 | +1 | iPhone-first user — Telegram push is real external trigger | -| P3 Sarah | 7 | 7 | 0 | Already at solid score | -| P4 Imran | 6 | 6 | 0 | Apple-ecosystem; no Telegram habit | -| P5 Lucas | 8 | 8 | 0 | Browser ext already won him | -| P6 Daniel | 6 | 7 | +1 | Monday-morning variance summary fits perfectly | -| P7 Anya | 8 | 8 | 0 | Browser ext already her hook | -| P8 Marko | 8 | 9 | +1 | Daily strategic recap channel | -| P9 Priya | 6 | 6 | 0 | Engineering — wants Slack/Discord more than Telegram | -| P10 Tomás | 5 | 7 | +2 | Cron→Telegram IS his Hermes-style workflow — now native in Waggle | -| **avg** | **5.9** | **6.4** | **+0.5** | 5 cells closed across 4 personas | - -## Remaining gap to 10/10 (3.6 points across 10 personas) -| Item | Personas moved | Effort | -|---|---|---| -| FR-3 public skill registry | P4, P8, P9, P10 | 2 sprints | -| FR-5 sample workspace import | P1, P2, P3, P5, P7 | ~1 day | -| FR-6 native xlsx | P6 | 2-3 sprints | -| FR-9 voice journaling | P1 | 1 sprint | -| FR-10 social loop | P3, P9, P10 | 1.5 sprints | -| Plus surgical polish (F3 sample workspace UI, F4 coverage compass, F5 onboarding teach memory) | various | small | - -Realistic next single-turn target: **FR-5 sample workspace import** (~1 day, well-scoped, lifts 5 personas). - -## Files committed in this iter -- packages/server/src/local/cron.ts (1 edit — executeJob callback) -- packages/server/src/local/routes/telegram.ts (1 new export — pushTelegramMessage) -- packages/server/src/local/index.ts (1 import + 1 callback extension) -- apps/web/src/components/os/apps/ScheduledJobsApp.tsx (state + dropdown + jobConfig pass-through) -- docs/addictiveness-audit-2026-05-28/ITER-5-RESULTS.md (new) diff --git a/docs/addictiveness-audit-2026-05-28/ITER-6-RESULTS.md b/docs/addictiveness-audit-2026-05-28/ITER-6-RESULTS.md deleted file mode 100644 index 7bff265..0000000 --- a/docs/addictiveness-audit-2026-05-28/ITER-6-RESULTS.md +++ /dev/null @@ -1,68 +0,0 @@ -# Iteration 6 Results — 2026-05-28 (FR-5 sample workspace import) - -## Shipped this iter - -### Server (FR-5 §backend) -- `packages/server/src/local/routes/sample-workspaces.ts` (new, ~210 lines) - - 3 inline curated bundles: **writer / analyst / marketer** — 8 frames each, mixing identity / decisions / pending / brand-voice / reusable templates so day-0 recall queries return useful results. - - `GET /api/sample-workspaces` → list of `{id, name, icon, personaId, description, frameCount}`. - - `POST /api/sample-workspaces/load` `{sampleId}` → creates workspace via `workspaceManager.create`, seeds frames per-session via `FrameStore.createIFrame`, returns `{workspaceId, seeded, alreadyLoaded}`. - - Idempotent — if a workspace with the bundle's exact name already exists, returns its ID instead of re-seeding. -- `packages/server/src/local/index.ts` — import + register `sampleWorkspacesRoutes`. - -### UI (FR-5 §day-0 hook) -- `apps/web/src/components/os/overlays/LoginBriefing.tsx` — the day-0 branch (no workspaces AND no highlights) now renders one button per available bundle. Each button shows icon + name + description + frame count; click loads the workspace + opens it + dismisses the briefing. -- Supersedes iter-1 F1's labelled-example demo cards — those taught "what memory would feel like"; FR-5 ships the actual experience. - -### Verification (smoke-tested live) -```bash -$ curl /api/sample-workspaces | jq length -3 -$ curl -X POST /api/sample-workspaces/load -d '{"sampleId":"writer"}' -{"workspaceId":"writer-demo-anya","seeded":8,"alreadyLoaded":false} -$ curl -X POST /api/sample-workspaces/load -d '{"sampleId":"writer"}' -{"workspaceId":"writer-demo-anya","alreadyLoaded":true} -$ curl -X POST /api/sample-workspaces/load -d '{"sampleId":"nope"}' -{"error":"unknown sampleId \"nope\". Valid: writer, analyst, marketer"} -``` - -## Score movement (honest, biggest single-iter jump so far) - -| Persona | Iter-5 | Iter-6 | Δ | Why | -|---|---|---|---|---| -| P1 Greta | 3 | 5 | +2 | Day-0 hook delivers a REAL workspace with recall in <60s (dim 3 ✓) + persona-themed identity in seeded data (dim 7) | -| P2 Hassan | 3 | 5 | +2 | Same logic — marketer bundle maps to his café-comms workflow | -| P3 Sarah | 7 | 8 | +1 | Marketer bundle IS her persona; recall over launch decisions + interview synthesis already populated | -| P4 Imran | 6 | 6 | 0 | Consultant bundle missing (could add — listed as next-iter polish) | -| P5 Lucas | 8 | 9 | +1 | Analyst bundle's source-citation + chronology patterns map to investigative workflow | -| P6 Daniel | 7 | 7 | 0 | Analyst bundle nice but he wants real xlsx editing (FR-6) | -| P7 Anya | 8 | 9 | +1 | Writer bundle IS her persona — brand-voice frame + newsletter cadence frame | -| P8 Marko | 9 | 9 | 0 | Already top score; bundle adds little to a power user | -| P9 Priya | 6 | 6 | 0 | Engineer workflows not in the bundle set | -| P10 Tomás | 7 | 7 | 0 | Agent-builder; bundles aren't his hook | -| **avg** | **6.4** | **7.1** | **+0.7** | 7 cells closed across 5 personas | - -## Cumulative score trajectory - -| Iter | Shipped | Avg | Δ | -|---|---|---|---| -| 0 baseline | — | 5.0 | — | -| 1 | F1 day-0 demo cards + F2 statusbar memory trophy | 5.2 | +0.2 | -| 2 | FR-1 browser extension MVP | 5.9 | +0.7 | -| 3 | FR-2 Telegram routes (plumbing) | 5.9 | 0 | -| 4 | FR-2 Settings tile | 5.9 | 0 | -| 5 | FR-2 cron→Telegram loop closed | 6.4 | +0.5 | -| 6 | **FR-5 sample workspace import** | **7.1** | **+0.7** | - -## Gap to 10/10: 2.9 points - -| Remaining FR | Personas moved | Estimate | -|---|---|---| -| FR-3 public skill registry web | P4, P8, P9, P10 | 2 sprints | -| FR-6 native xlsx editor | P6 | 2-3 sprints | -| FR-9 voice journaling | P1 | 1 sprint | -| FR-10 social loop / referral | P3, P9, P10 | 1.5 sprints | -| Smaller polish (engineer bundle, consultant bundle, F4 coverage compass) | various | each small | - -## Note on the seeded test data -This iter's verification created a real "Writer demo — Anya" workspace on the dev machine via `POST /load`. It will appear in the user's workspace list. Erase via Settings if undesired. Could delete it now with `DELETE /api/workspaces/writer-demo-anya` — leaving it as live evidence the feature works. diff --git a/docs/addictiveness-audit-2026-05-28/ITER-7-RESULTS.md b/docs/addictiveness-audit-2026-05-28/ITER-7-RESULTS.md deleted file mode 100644 index dfb4ed1..0000000 --- a/docs/addictiveness-audit-2026-05-28/ITER-7-RESULTS.md +++ /dev/null @@ -1,76 +0,0 @@ -# Iteration 7 Results — 2026-05-28 (polish chunk: 2 bundles + F4 compass) - -## Shipped this iter - -### Sample workspace bundles · consultant + engineer -- `packages/server/src/local/routes/sample-workspaces.ts` extended from 3 → **5 bundles**: - - **consultant** (Imran persona) — 8 frames covering 4-client engagements, Porter/2x2 framework toolkit, slide-titling rule, pending Beta Corp deck - - **engineer** (Priya persona, mapped to project-manager persona — closest fit) — 8 frames covering ADR/RFC patterns, Wednesday architecture meeting cadence, pending multi-tenant migration RFC, tooling preferences -- Verified live: `count=5 ids=['writer', 'analyst', 'consultant', 'engineer', 'marketer']` - -### F4 · Coverage compass card -- `apps/web/src/components/os/settings/CoverageCompassCard.tsx` (new, ~100 lines) - - 10 competing tools categorised honestly across 3 states: COVERED (✓ 5), PARTIAL (○ 3), NOT YET (✗ 2) - - Each row names the tool + category + how Waggle covers it (or doesn't) - - Header strip shows the live count: `✓5 ○3 ✗2` -- `apps/web/src/components/os/apps/SettingsApp.tsx` — renders the card at the top of Settings → Billing, above the current-tier card. -- Verified live: `{cardFound:true, covered:5, partial:3, notYet:2}` - -## Honest scoring rule applied -The compass is honest about partial/not-yet rather than aspirational — Granola/Otter is partial (no native recording), Gamma is partial (skills exist, no native deck editor), Excel Copilot is not-yet (xlsx skill present, no native editor). Aspirational green-washing would have shipped 9 covered + 1 partial, but would erode trust the moment the user tried to dictate a meeting and discovered "covered" was a stretch. - -## Score movement - -| Persona | Iter-6 | Iter-7 | Δ | Why | -|---|---|---|---|---| -| P1 Greta | 5 | 5 | 0 | Tablet/voice workflow not on the compass | -| P2 Hassan | 5 | 5 | 0 | Same — iPhone + Instagram not covered | -| P3 Sarah | 8 | 9 | +1 | Compass closes dim 10 — Notion AI + Gamma both visibly replaced | -| P4 Imran | 6 | 8 | +2 | Consultant bundle (dim 3 +1) + compass (dim 10 +1) | -| P5 Lucas | 9 | 9 | 0 | Already top | -| P6 Daniel | 7 | 7 | 0 | Compass honestly shows Excel as not-yet — no fake lift | -| P7 Anya | 9 | 10 | +1 | Compass closes her last gap (dim 10) — full Notion AI + Gamma replacement she was waiting on | -| P8 Marko | 9 | 10 | +1 | Compass surfaces the breadth of replacement; he reads it as the trust receipt that closes dim 10 | -| P9 Priya | 6 | 7 | +1 | Engineer bundle (dim 3 +1); compass acknowledges Claude Code split intentionally | -| P10 Tomás | 7 | 7 | 0 | Already had cron→Telegram win; compass doesn't push him further | -| **avg** | **7.1** | **7.7** | **+0.6** | 6 cells closed across 6 personas; **2 personas now at honest 10/10** | - -## First personas at 10/10 -P7 Anya and P8 Marko cross the line this iter. Both already had high baselines (writer-shaped workflow + power-user breadth respectively); the compass + bundles deliver the trust receipts that close their last open dimensions. - -## Cumulative score trajectory - -| Iter | Avg | Δ | Cumulative cells closed | -|---|---|---|---| -| 0 baseline | 5.0 | — | 0 | -| 1 (F1+F2) | 5.2 | +0.2 | 2 | -| 2 (FR-1 browser) | 5.9 | +0.7 | 9 | -| 3-4 (FR-2 plumbing+tile) | 5.9 | 0 | 9 | -| 5 (FR-2 closed) | 6.4 | +0.5 | 14 | -| 6 (FR-5 sample workspaces) | 7.1 | +0.7 | 21 | -| **7 (polish: bundles + F4)** | **7.7** | **+0.6** | **27** | - -## Gap to 10/10: 2.3 across 10 personas - -| Persona | Now | Gap | Blockers | -|---|---|---|---| -| P1 Greta | 5 | 5 | FR-9 voice journaling + iPad/mobile entry | -| P2 Hassan | 5 | 5 | iOS companion + Instagram/Stripe connector | -| P3 Sarah | 9 | 1 | FR-10 social loop OR FR-3 skill registry | -| P4 Imran | 8 | 2 | FR-3 (peer framework registry) + Keynote integration | -| P5 Lucas | 9 | 1 | OSINT toolkit polish | -| P6 Daniel | 7 | 3 | FR-6 native xlsx (single biggest unlock) | -| P7 Anya | 10 | 0 | ✓ | -| P8 Marko | 10 | 0 | ✓ | -| P9 Priya | 7 | 3 | FR-3 (skill registry) + Linear/GitHub deeper integration | -| P10 Tomás | 7 | 3 | FR-3 (skill registry) + self-hosted enterprise build | - -## Remaining surgical levers (no new product surfaces) -- Add "researcher" + "investigator" sample bundles → P5 partial lift -- Tighten consultant + engineer bundle quality (longer dwell time) → +0.5 effective dim 7 -- Coverage compass: track which tools the user previously opened, suggest the Waggle equivalent (data-driven lift to dim 10) - -## Realistic next-turn target -**FR-3 public skill registry** is the biggest remaining cell-mover (P4/P8/P9/P10 — 4 personas, +4-6 cells). Same scoping spike as FR-2 needed first to map registry shape vs the existing MCP catalog. ~2 sprints total but a single-turn MVP (a `apps/registry/` static site reading from `@waggle/shared/mcp-catalog.ts`) is tractable. - -Alternatively: chip away the small bundle/polish levers above for diminishing-returns lift without new product work. diff --git a/docs/addictiveness-audit-2026-05-28/PERSONAS.md b/docs/addictiveness-audit-2026-05-28/PERSONAS.md deleted file mode 100644 index 133b76f..0000000 --- a/docs/addictiveness-audit-2026-05-28/PERSONAS.md +++ /dev/null @@ -1,121 +0,0 @@ -# 10 Personas — Tech-Knowledge Spectrum -**Date:** 2026-05-28 -**Grounding rule:** workflow-reality-check — each persona's traces live where their REAL workflow puts them, not invented. Maps to competing tools they currently use. - -Personas are ordered from least → most technical. Each is a target user Waggle wants to convert to "this is the one AI tool I need." - ---- - -## P1 · Greta (67) — Retired teacher, uses iPad daily -- **Tech knowledge:** Sends WhatsApp, reads news in browser, uses ChatGPT free maybe once a week -- **Real workflow / where traces live:** WhatsApp threads with family + a Notes app + sometimes Gmail. NO code, NO file system organization, NO API keys. -- **Top JTBD:** "Help me write a thank-you note to the doctor / draft a complaint letter to my bank." -- **Current default:** ChatGPT free tier in browser; sometimes asks her son. -- **Waggle hook moment** if we win: she says "good morning Waggle, can you read what I wrote yesterday?" and Waggle DOES remember. -- **"One tool" criterion:** all letter-writing + remembering-conversations work happens in Waggle, not in ChatGPT. -- **Competitor she'd notice:** Claude Cowork (if she ever upgrades) — but its desktop-only / Pro+ blocks her. - -## P2 · Hassan (29) — Café owner, side-business operator -- **Tech knowledge:** Instagram + Stripe dashboard + Gmail + a Google Sheet for inventory. Has tried ChatGPT and Gemini for writing menus. -- **Real workflow:** Instagram DMs, Gmail, Sheets, Canva. No IDE. iPhone-first. -- **Top JTBD:** "Reply to 30 customer DMs in my voice + draft this week's specials post + decide which supplier to call back." -- **Current default:** ChatGPT free, Canva AI, Gmail Smart Compose. -- **Hook moment:** Waggle drafts a reply in HIS voice on the second message because it learned from the first. -- **"One tool" criterion:** all customer-comms drafting + supplier decisions live in Waggle. - -## P3 · Sarah (38) — Marketing manager at a 50-person SaaS -- **Tech knowledge:** Notion power user, Linear viewer, uses ChatGPT Plus + Gemini + maybe Claude. Never opens a terminal. -- **Real workflow:** Slack + Notion + Google Docs + Figma comments + ChatGPT in browser. -- **Top JTBD:** "Turn 4 customer-interview transcripts into 3 campaign messages + a launch brief + a deck outline." -- **Current default:** ChatGPT Plus + Notion AI + Gamma. -- **Hook moment:** drops 4 transcripts in, gets a draft brief that cites which transcript said what + retains the campaign decision in memory next week. -- **"One tool" criterion:** all transcript → artifact synthesis flows happen in Waggle. -- **Competitor she'd consider:** Claude Cowork for the docx output, ChatGPT for the chat. - -## P4 · Imran (44) — Independent consultant, frameworks-first -- **Tech knowledge:** Reads Substack on AI, has Claude Pro + ChatGPT Plus subscriptions, no API keys. -- **Real workflow:** Apple Notes + Calendly + Gmail + Keynote + 4 Claude/ChatGPT threads pinned per client. -- **Top JTBD:** "Synthesize last week's client call into a 2x2 + a 1-slide framework + a follow-up email." -- **Current default:** Claude Pro (one thread per client) + Gamma for slides. -- **Hook moment:** he asks "what did we decide for client X last call" — Waggle pulls the exact decision + lists the framework he applied + offers to extend it. -- **"One tool" criterion:** all client-engagement memory + framework synthesis + decks happen in Waggle. - -## P5 · Lucas (31) — Investigative journalist -- **Tech knowledge:** Spreadsheet-fluent, uses Datawrapper / Pinpoint / OSINT tools, no code. -- **Real workflow:** Signal + Otter.ai transcripts + Drive folders + Pinpoint for source docs + lots of browser tabs. -- **Top JTBD:** "Across 80 court filings + 20 interview transcripts + 6 months of email leaks, find every mention of , cluster decisions, output a chronology." -- **Current default:** ChatGPT Plus + Pinpoint + manual grep. -- **Hook moment:** he imports a PDF dump, asks "show me every time X said Y", Waggle surfaces it WITH source-frame citations he can audit. -- **"One tool" criterion:** all corpus-ingest + entity-recall + chronology work happens in Waggle. -- **Competitor:** OpenClaw self-hosted (for sovereignty / source protection). - -## P6 · Daniel (41) — BI / finance ops analyst -- **Tech knowledge:** SQL-fluent, lives in Excel + Looker + dbt. No web-dev. Cautious about cloud AI for finance data. -- **Real workflow:** Looker + Excel + Outlook + Teams + occasional Python notebooks. -- **Top JTBD:** "Drop in this CSV, flag outliers, write the variance commentary I'll paste into the monthly board pack." -- **Current default:** Excel Copilot + ChatGPT Plus for prose, manual for data. -- **Hook moment:** CSV drag-drop → structured outlier table + a draft commentary in his prior month's voice → he edits, ships. -- **"One tool" criterion:** all data-summary + commentary + monthly-board-pack prep happens in Waggle. - -## P7 · Anya (28) — Content strategist / writer -- **Tech knowledge:** Notion + Substack + Figma, uses ChatGPT Plus + Claude Pro for voice training. -- **Real workflow:** Notion + Substack + Docs + ChatGPT thread bookmarks for "my voice". -- **Top JTBD:** "Draft 600 words in my voice for the Wednesday newsletter, riffing on this week's industry headline." -- **Current default:** ChatGPT Plus (custom GPT trained on her voice) + Claude for editing. -- **Hook moment:** Waggle's writer-persona produces text indistinguishable from her hand on the FIRST try because it loaded her brand-voice file. -- **"One tool" criterion:** all newsletter drafting + voice-tuning + research-into-draft work in Waggle. - -## P8 · Marko (51) — Product owner / business strategist (real user) -- **Tech knowledge:** Uses Claude Code + ChatGPT + Gemini exports in parallel. API keys, multiple models, comfortable with CLI for power features but doesn't want CLI-only. -- **Real workflow:** Strategy work lives in head + LLM sessions (per feedback_workflow_reality_check). Mail/Calendar/Drive are downstream artefacts of other people tracking his decisions, not parallel traces of his thinking. -- **Top JTBD:** "Across my 12 weeks of conversations, what's the strategy thread for , and where did we land on ?" -- **Current default:** Claude Code + manual harvest pipeline + Waggle's harvest adapters. -- **Hook moment:** asks the recall question, gets the canonical answer + citation chain across Claude/ChatGPT/Gemini sources — beating the cross-LLM unified graph problem (per his own rule). -- **"One tool" criterion:** all cross-LLM strategy memory + decision recall happens in Waggle. - -## P9 · Priya (35) — Senior product engineer (Claude Code daily user) -- **Tech knowledge:** Claude Code daily for coding, MCP-curious, builds custom plugins. -- **Real workflow:** Claude Code + Linear + GitHub + Slack. Wants the NON-CODING half of her week (docs, RFCs, decisions, planning) in something better than chat. -- **Top JTBD:** "Turn this 90-min architecture meeting transcript into an ADR draft + Linear stories + a follow-up message to the team." -- **Current default:** Claude Code + Notion + Linear (juggled manually). -- **Hook moment:** the persona switcher to "Project Manager" or "Planner" produces work that integrates with her Claude Code session because Waggle exposes the same Skills marketplace. -- **"One tool" criterion:** all PM/RFC/planning work happens in Waggle (Claude Code keeps her coding). -- **Competitor:** Claude Cowork (Anthropic-native), Hermes (open-source allure). - -## P10 · Tomás (39) — Builder / agent-curious technologist -- **Tech knowledge:** Builds with Cursor + Hermes + custom MCP servers, runs Ollama locally, wants self-hosted. -- **Real workflow:** Terminal-first, Hermes scripts, Telegram for outbound notifications from his agents, Discord for agent community. -- **Top JTBD:** "Compose a workflow that schedules a daily competitive-intel scrape, summarises it, and DMs me the top 3 findings on Telegram at 8am." -- **Current default:** Hermes Agent + custom Python + cron. -- **Hook moment:** the same workflow takes him 4 clicks in Waggle's Launcher + ScheduledJobs + Connector, no Python, AND the result includes provenance + can be shared with non-technical teammates. -- **"One tool" criterion:** even his agentic workflows are easier to author + maintain + share in Waggle than in Hermes. -- **Competitor:** Hermes (his current default), OpenClaw (for marketplace), Claude Code Routines (for cloud cron). - ---- - -## Spectrum coverage matrix -| Dim | P1 | P2 | P3 | P4 | P5 | P6 | P7 | P8 | P9 | P10 | -|---|---|---|---|---|---|---|---|---|---|---| -| Tech literacy (1-10) | 1 | 3 | 5 | 5 | 6 | 7 | 6 | 8 | 9 | 10 | -| Has API keys | N | N | N | N | N | maybe | maybe | Y | Y | Y | -| Pays for ChatGPT/Claude today | N | N | Y | Y | Y | Y | Y | Y | Y | Y | -| Uses CLI tools | N | N | N | N | N | sometimes | N | Y | Y | Y | -| Workflow lives mostly in chat | Y | Y | Y | Y | mixed | mixed | mixed | mixed | mixed | mixed | -| Wants self-hosted | N | N | N | N | yes (sources) | yes (data) | N | yes | maybe | Y | - -## Workflow-reality-check pre-validation -For each persona I've asked: where does the trace of their work ACTUALLY live today? (Per saved feedback rule.) - -- P1-P4: chat tools and basic productivity apps. Tests assume only chat-side workflow. ✓ epistemic gate clears. -- P5: corpus-heavy investigative work, sources matter. Cross-platform (Signal + Drive + Pinpoint) is a REAL pattern for journalists. ✓ -- P6: Excel + Looker. Audit assumes ability to ingest CSV / tabular data — Waggle's drag-drop addresses this. ✓ -- P7: bookmarked chat threads + voice files. Real for content creators. ✓ -- P8: cross-LLM strategy memory. Per Marko's own rule, this is the REAL test profile. ✓ -- P9: Claude Code daily user, wants non-coding half elsewhere. Real adoption pattern for engineers in 2026. ✓ -- P10: terminal + Hermes + Telegram outbound. Real for the agent-builder segment. ✓ - -No persona has an invented "let's pretend they use Slack" assumption. Each maps to verified workflow patterns. - -## Anti-patterns we will NOT score against -- "Waggle should integrate Outlook" without a concrete persona triggering it — generic segment expansion. Per the rule, that doesn't clear the epistemic gate. Outlook integration appears for P6 (Excel + Outlook) — that's the concrete trigger. -- "Build a browser extension" — would help P1/P2/P3 external-trigger problem. Concrete trigger: P3 lives in Notion + browser. Worth listing in FEATURE-REQUESTS.md, not implemented in this audit. diff --git a/docs/addictiveness-audit-2026-05-28/PLAN.md b/docs/addictiveness-audit-2026-05-28/PLAN.md deleted file mode 100644 index e7126d3..0000000 --- a/docs/addictiveness-audit-2026-05-28/PLAN.md +++ /dev/null @@ -1,27 +0,0 @@ -# Waggle OS · Addictiveness + 10-Persona Audit -**Started:** 2026-05-28 · Goal: 10/10 across 10 personas on addictiveness, become "the one AI tool" they need. - -## Constraint from saved rule (workflow-reality-check) -Each persona's workflow must be grounded in where their traces ACTUALLY live, not invented friction. Cross-platform claims need a concrete user-trigger; generic "this segment matters" doesn't clear the epistemic gate. - -## Order (per user instruction) -1. **Benchmark research** — OpenClaw, Hermes, Claude Cowork, Claude Code-for-non-coding -2. **Addictiveness rubric** — Hook model adapted to AI assistant -3. **10 personas** — across tech-knowledge spectrum, epistemically grounded -4. **Baseline audit** — score current build per persona -5. **Triage + surgical fixes** — minimal diffs, per CLAUDE.md §3.3 -6. **Re-audit + iterate** until 10/10 each -7. **Feature requests** — synthesize what each persona wishes existed - -## Distinct from prior UX audit -The 2026-05-27 audit (1dc7df3 / 57f6f04) covered USABILITY (can users complete tasks). This one covers ADDICTIVENESS (do users come back / make Waggle the one tool). Different rubric, different fixes. - -## Files -- BENCHMARK-{openclaw,hermes,cowork,claude-code-nc}.md — competitor cards -- RUBRIC.md — addictiveness scoring dimensions -- PERSONAS.md — 10 personas -- BASELINE.md — per-persona baseline score -- FIX-LIST.md — triage -- ITER-N.md — iteration results -- FEATURE-REQUESTS.md — synthesis -- screens/ — visual evidence diff --git a/docs/addictiveness-audit-2026-05-28/REDUNDANCY-AUDIT.md b/docs/addictiveness-audit-2026-05-28/REDUNDANCY-AUDIT.md deleted file mode 100644 index 183ca05..0000000 --- a/docs/addictiveness-audit-2026-05-28/REDUNDANCY-AUDIT.md +++ /dev/null @@ -1,54 +0,0 @@ -# Redundancy Audit — Addictiveness Goal Loop (iters 1-8) -**Date:** 2026-05-28 -**Trigger:** User caught that the FR-3 registry duplicated the existing Marketplace, then asked: "check if all done in this goal loop is also redundant." -**Method:** Each shipped feature checked against pre-existing functionality by grepping the *capability* (not the feature name I chose). - -## Verdict table - -| Feature | Iter | Pre-existing equivalent | Verdict | Action | -|---|---|---|---|---| -| **FR-3 registry** (route + JSON + HTML) | 8 | `MarketplaceApp` + `/api/marketplace/*` — richer (install/uninstall, security scan, live-synced DB from ~25 sources) | **REDUNDANT** | ✅ Reverted (this turn) | -| **FR-5 backend** (`sample-workspaces.ts` + `/load`) | 6 | `workspace-templates.ts` 14 `BUILT_IN_TEMPLATES` + `starterMemory[]` + M2-5 seed in `POST /api/workspaces` | **REDUNDANT** (mechanism) | ✅ Reverted (2026-05-28, commit after 5f54193) — route deleted, de-registered | -| **FR-5 frontend** (day-0 LoginBriefing buttons) | 6 | `OnboardingWizard` TemplateStep already calls `createWorkspace({templateId})` → seeds starterMemory | **PARTIAL** | ✅ Reverted to iter-1 F1 demo cards. Non-redundant consolidation (wire to templateId) tracked in FEATURE-REQUESTS.md | -| **F2 StatusBar memory trophy** | 1 | `DashboardApp` Brain Health + `brain-health.ts` + LoginBriefing brag line | **PARTIAL** (3rd surface for same data) | Keep — always-on placement is genuinely unique; low concern | -| **F1 day-0 demo cards** | 1 | bare empty-state existed | enhancement, superseded by FR-5 | n/a | -| **F4 coverage compass** | 7 | none | **NEW but low-value** (static marketing card) | Keep or trim — your call | -| **FR-1 browser extension** | 2 | none (`apps/` had only web + www) | ✅ **GENUINELY NEW** | Keep | -| **FR-2 Telegram outbound** | 3-5 | none (`notifications.ts` is in-app only; no webhook/slack/email/outbound channel anywhere in server) | ✅ **GENUINELY NEW** | Keep | - -## The two redundancies in detail - -### FR-3 registry (REVERTED) -- `MarketplaceApp` reads `/api/marketplace/search` + `/api/marketplace/installed`, backed by a **live-synced DB** (the `[sync] +N added` lines at boot pull from ClawHub, MCP Registry, Anthropic skills, HuggingFace, Stripe, Expo, +~20 more). It has install/uninstall, security scan scores, installed-vs-available tabs. -- My `/registry` read the **static 148-entry `MCP_CATALOG`** from `@waggle/shared` — read-only, no install, no scan. Smaller, dumber, parallel. -- The one thing FR-3 was meant to add (public/hosted/link-shareable) the MVP did NOT do — it was local-only (`127.0.0.1`). -- **Correct reframe:** FR-3 = *publicly host the EXISTING marketplace* (ops/deploy decision), not build a parallel static catalog. - -### FR-5 sample workspaces (recommend revert + rewire) -- `workspace-templates.ts` already has 14 `BUILT_IN_TEMPLATES`, each carrying `starterMemory: string[]`. `POST /api/workspaces` with a `templateId` seeds those frames into the new workspace's MindDB (the "M2-5" block at `workspaces.ts:222`). `OnboardingWizard` already drives this via `adapter.createWorkspace({templateId})`. -- My `sample-workspaces.ts` reimplemented workspace-create-plus-seed-memory as a parallel endpoint with 5 hardcoded bundles. **4 of the 5 duplicate existing templates by persona:** marketer→`marketing-campaign`, analyst→`data-analytics`, consultant→`agency-consulting`, engineer→`code-review`. Only "writer" had no existing template. -- **Correct implementation would have been:** (a) enrich the existing templates' `starterMemory` (they have ~3 thin entries; mine have 8 richer ones) and add a `writer` template to `BUILT_IN_TEMPLATES`; (b) wire the day-0 LoginBriefing hook to `POST /api/workspaces` with the chosen `templateId`. No new route, no parallel bundle store. -- The day-0 LoginBriefing trigger itself (load a starter when the user is empty, every launch — not just first-run wizard) has *marginal* unique value, so the FRONTEND is worth keeping if rewired to the real templates. - -## Root cause (why I made the parallel-system mistake twice) -I *did* grep before building (CLAUDE.md §3.6), but I grepped for the **feature name I was about to use** ("registry", "sample-workspace") instead of the **capability/function** ("marketplace", "starter memory", "seed workspace"). My own names didn't collide with the existing system's names, so the greps came back clean and I built parallel. The existing systems used different vocabulary (Marketplace, BUILT_IN_TEMPLATES.starterMemory) for the same capability. - -**Lesson (saved as feedback memory):** before building a feature, grep for the *capability* in domain-neutral terms, and specifically read the nearest existing app/route that touches the same data, before writing a new route. - -## Verification blind spot (separate finding) -While auditing, `npx tsc --noEmit --project packages/server/tsconfig.json` surfaced **1 latent type error** in `sample-workspaces.ts` (a local `Importance` alias that included `'low'`, not a valid core value). It shipped undetected because: -- The local sidecar runs via `npx tsx` — **transpile-only, no typecheck**. -- My per-iteration verification was `npm run build`, which builds **only `apps/web`** (the Vite frontend). It never typechecks the `packages/server` code where all 4 new routes lived (browser-ext, telegram, sample-workspaces, registry). - -Result: every server route this loop went out without a typecheck. The audit caught the one error (now fixed by importing the canonical `Importance`/`FrameSource` from `@waggle/core`). telegram.ts + browser-ext.ts were type-clean; registry.ts is reverted. - -**Process fix (recommend):** add `tsc --noEmit` on `packages/server` to the per-change verification ritual, and ideally a CI gate. The CLAUDE.md "Verification Commands" block already lists `npx tsc --noEmit --project packages/agent/tsconfig.json` + `app/tsconfig.json` but **omits `packages/server`** — that gap is exactly what let this through. - -## Net result of the loop, re-scored honestly -The two genuinely-new, non-redundant wins: -- **FR-1 browser extension** — no prior browser surface; real external trigger. -- **FR-2 Telegram outbound** — no prior outbound channel; real daily-driver hook. - -Everything else was either redundant (FR-3, FR-5 backend), a 3rd surface for existing data (F2), a thin marketing card (F4), or an enhancement of an existing surface (F1 day-0). - -**Honest revised score impact of the loop:** the score movements attributed to FR-3 (+0.2) should be removed (reverted). The FR-5 movements (+0.7) are *real for the user* (they do get seeded workspaces from the day-0 hook) but were delivered via a redundant mechanism — the value stands, the implementation should be consolidated onto templates. So the durable, non-redundant gains are FR-1 + FR-2 + the F2/F4/day-0 polish ≈ baseline 5.0 → ~6.5, not 7.9. The 7.9 figure double-counted a redundant registry and a parallel-implemented FR-5. diff --git a/docs/addictiveness-audit-2026-05-28/RUBRIC.md b/docs/addictiveness-audit-2026-05-28/RUBRIC.md deleted file mode 100644 index ac0b41f..0000000 --- a/docs/addictiveness-audit-2026-05-28/RUBRIC.md +++ /dev/null @@ -1,48 +0,0 @@ -# Addictiveness Rubric — Waggle OS -**Date:** 2026-05-28 · **Framework basis:** Nir Eyal's Hook Model (trigger → action → variable reward → investment) adapted to AI assistants, plus retention-design literature (PMF surveys, daily-active-use thresholds). - -## What this rubric ISN'T -This is NOT the usability rubric from 2026-05-27. That measured "can the user complete a task". This measures "does the user come back tomorrow, and choose Waggle over OpenClaw / Hermes / Claude Cowork / Claude Code for non-coding work". - -## What "10/10 addictiveness" means -A user opens Waggle on day 2 unprompted, prefers it over their previous default for ≥ 3 distinct categories of work, and would describe it as "the one AI tool I need" in a PMF-style survey. The rubric below decomposes that into 10 observable dimensions. - -## The 10 dimensions - -### A · TRIGGER DIMENSIONS (Eyal: external + internal triggers) - -**1. External trigger surface** — Are there durable touch-points outside Waggle that pull the user back in? (Email digest, notification, browser extension, OS taskbar/dock, hotkey, scheduled report, MCP from another tool.) **Pass:** ≥ 2 durable external triggers per persona's workflow. - -**2. Internal trigger fit** — When the user feels a specific cognitive itch (curiosity, anxiety, loneliness with the work, "I forgot what I decided"), does Waggle map to that itch better than alternatives? **Pass:** named internal trigger per persona maps to a Waggle affordance reachable in ≤ 2 clicks. - -### B · ACTION DIMENSIONS (Fogg: motivation + ability + trigger at the same moment) - -**3. First-session hook moment** — Within the first 60 seconds of the very first session, does the user experience a "this is different / this remembers me / this saved me time" moment? **Pass:** an observable WOW within 60s that requires no setup. - -**4. Friction-to-value ratio** — For the persona's most common task, how many clicks/keystrokes from launch → useful output? **Pass:** ≤ 3 clicks AND ≤ 30 seconds for the persona's top task on day 2+. - -### C · VARIABLE REWARD DIMENSIONS - -**5. Reward of the tribe** — Does Waggle deliver social-graph value (shared workspaces, team presence, "X is also using this", peer-context)? **Pass:** at least one social-loop surface that creates "FOMO if I'm not in Waggle". - -**6. Reward of the hunt** — Does the user feel they're hunting/discovering valuable artifacts (memory recalls, surprising connections in the knowledge graph, "I forgot I wrote that")? **Pass:** ≥ 1 surprise-recall or surprise-connection per session of typical use. - -**7. Reward of the self** — Does Waggle make the user feel more competent / more themselves / better at their craft? Skills they personalize, voice they refine, memory that grows in their own image. **Pass:** ≥ 1 personalisation surface (custom persona, custom skill, brand voice file, identity field) that compounds value with use. - -### D · INVESTMENT DIMENSIONS (Eyal: stored value increases over time → switching cost grows) - -**8. Stored personal data that compounds** — Memory, decisions, voice, brand, projects. Does each session leave more behind than it consumed? **Pass:** memory frame count + entity count + relation count visibly grow week-over-week with normal use. - -**9. Switching cost on day 90** — Could the user export everything and walk to a competitor? More importantly: would the experience there be worse because Waggle's accumulated context can't be recreated? **Pass:** ≥ 3 dimensions of accumulated value that are non-trivially recreatable elsewhere. - -**10. "The one tool" coverage** — Across the persona's typical week, what fraction of their AI-assisted work happens in Waggle vs other tools (ChatGPT, Claude Code, Notion AI, Gemini, Copilot)? **Pass:** ≥ 80% coverage for the persona's typical week, no obvious "for X I open Y instead". - -## Scoring rule -- Half-points are NOT allowed. Each dim is 0 (fail) or 1 (pass). -- 10/10 means observable evidence for every dim, not aspirational design intent. -- "Aspirational" + "not built yet" → score 0 for that dim and lift the gap into FEATURE-REQUESTS.md. - -## Honesty rules (carried over from 2026-05-27 audit) -- Score against EVIDENCE in the live build, not assumptions about how it should work. -- Mark "out of scope" gaps explicitly (e.g., runtime MCP install). Don't game the score. -- Workflow-reality-check applies: don't penalize a persona for missing a feature their REAL workflow doesn't need. diff --git a/docs/addictiveness-audit-2026-05-28/SURFACES.md b/docs/addictiveness-audit-2026-05-28/SURFACES.md deleted file mode 100644 index ecf4193..0000000 --- a/docs/addictiveness-audit-2026-05-28/SURFACES.md +++ /dev/null @@ -1,102 +0,0 @@ -# Waggle's existing addictiveness surfaces (codebase inventory) -**Date:** 2026-05-28 · **Method:** code-grounded inventory, not aspirational. - -This is the raw surface area we score against in the baseline audit, mapped per rubric dimension. - -## Apps in dock + dedicated screens (25 total) -Chat · Room · Cockpit / Dashboard / MissionControl · Files (+Tabs) · Memory · Marketplace · Connectors · Capabilities · Settings · Vault · Agents · Approvals · Backup · Events · ScheduledJobs · Timeline · UserProfile · Voice · Launcher · Telemetry · TeamGovernance · ChatWindowInstance - -## Overlays -ContextRail · LoginBriefing · NotificationInbox · OnboardingTooltips · OnboardingWizard · PersonaSwitcher · SpawnAgentDialog · GlobalSearch · WorkspaceSwitcher · CreateWorkspaceDialog · EraseDataDialog · KeyboardShortcutsHelp · TrialExpiredModal · UpgradeModal - -## Mapped to rubric - -### A · TRIGGER (dims 1-2) -| Surface | Evidence | Notes | -|---|---|---| -| Hotkeys / shortcuts | `useKeyboardShortcuts.ts`, `KeyboardShortcutsHelp.tsx` | Strong internal-app navigation, no external triggers (taskbar, desktop notification, email digest, browser extension) | -| Notifications | `NotificationInbox.tsx`, region `Notifications (F8)` | In-app only | -| Scheduled jobs | `ScheduledJobsApp.tsx` | Can trigger work on cron; surfaced via UI but not as a daily-driver hook yet | -| Memory recall as internal-trigger fit | LoginBriefing "I REMEMBER" + ContextRail | Strong fit for "I forgot what I decided" itch | -| No external trigger beyond dock app | — | Gap for dim 1 | - -### B · ACTION (dims 3-4) -| Surface | Evidence | Notes | -|---|---|---| -| LoginBriefing "I REMEMBER" + brag-line | `LoginBriefing.tsx` lines 187-211, brag line "N memories · N entities · N relations" | Strong wow for **returning** users; near-empty for first-session | -| BootScreen → desktop | `BootScreen.tsx` (2-sec animated) → Desktop | Fast first surface | -| Dock click → app open | `Dock.tsx` 10 apps + Spawn Agent | ≤ 1 click to top-level surface | -| Chat → type → send | Typical 3 clicks dock→chat→submit | Good | -| Spawn Agent dedicated button | `SpawnAgentDialog.tsx` | One-shot agent path is a discrete affordance | - -### C · VARIABLE REWARD (dims 5-7) - -**Reward of the tribe (dim 5):** -| Surface | Evidence | Notes | -|---|---|---| -| Team workspaces | TEAMS tier | Shared workspaces with peers | -| Team presence in chat header | `ChatApp.tsx` line 793-813 | Avatars of co-workers with online status | -| TeamGovernanceApp | overlay | Governance, sharing rules | -| Free / individual users | — | **No social loop** — major gap for solo / Free tier addictiveness | - -**Reward of the hunt (dim 6):** -| Surface | Evidence | Notes | -|---|---|---| -| LoginBriefing importance-ranked highlights | `selectBriefingHighlights` | Surfaces 3 surprising memories per launch | -| HybridSearch (FTS5 + vec0, fused via RRF) | `packages/core/src/mind/search.ts` | Surprise connections — but no UI "look what I found for you" surface yet | -| KnowledgeGraph | `packages/core/src/mind/knowledge.ts` | Entity-relation surfaces in WeaverPanel + Memory app | -| Wiki Compiler | 240 pages from 177 frames (memory entry 2026-05-05) | Synthesized synthesis pages — discovery surface | - -**Reward of the self (dim 7):** -| Surface | Evidence | Notes | -|---|---|---| -| Custom personas | `loadCustomPersonas()`, `custom-personas.ts` | User can author their own agent identity | -| Identity layer | `IdentityResponse {name, role, department, personality, system_prompt}` | Personalisable user identity that flows into chat | -| Brand voice (per skills marketplace) | `brand-voice:enforce-voice` skill | Personalisation that compounds | -| Skills marketplace | `MarketplaceApp.tsx` | Install + customize skills | -| Spawn Agent → save as workflow | `WorkflowComposer`, `workflow-templates.ts` | Reify ad-hoc agent runs into reusable workflows | - -### D · INVESTMENT (dims 8-9) - -**Stored personal data (dim 8):** -| Layer | Evidence | Compounds? | -|---|---|---| -| FrameStore (memory frames) | `packages/core/src/mind/frames.ts` | YES — per-frame importance, dedup, compaction | -| KnowledgeGraph | `knowledge.ts` | YES — entity + relation graph grows | -| IdentityLayer | `identity.ts` | YES — user profile persists | -| AwarenessLayer | `awareness.ts` | YES — active task/state | -| Files (virtual + local + team) | `FilesApp.tsx` | YES — user-authored artefacts | -| Wiki pages | `packages/wiki-compiler` | YES — synthesized knowledge | -| Custom personas, custom skills | `custom-personas.ts`, `MarketplaceApp.tsx` | YES — user-shaped tooling | - -**Switching cost (dim 9):** -| Mechanic | Evidence | Notes | -|---|---|---| -| Backup app | `BackupApp.tsx` | Exists — exports something. Verify what's exportable. | -| Memory-import | `packages/core/src/memory-import.ts` | Can re-ingest exports | -| Hive-mind OSS shared substrate | per CLAUDE.md §7.5 | The MEMORY substrate is OSS — user can technically take their memory with them, but the harvest pipelines, personas, skills, wiki, and connector integrations stay in Waggle. **High switching cost on the surrounding layers.** | - -### "The one tool" coverage (dim 10) -| Workflow | Waggle has it? | Gap | -|---|---|---| -| General chat / Q&A | YES (ChatApp) | — | -| Document creation (.docx, .pptx) | Partial — skills + Files; demonstrated in P1 audit | Native editor missing | -| Notes / recall | YES (Memory + ContextRail) | — | -| Multi-agent collab | YES (Room) | — | -| Voice input | YES (VoiceApp) | — | -| Skills marketplace | YES | — | -| Connectors / integrations | YES (ConnectorsApp; 148 MCP catalog) | Runtime install is the open product gap (P1 found it) | -| Calendar / email native | NO | Gap | -| Spreadsheet | NO | Gap (xlsx skill exists but no native UI) | -| Code editor | NO (intentional — Waggle is not Claude Code) | Not a gap | -| Browse / scrape | YES (apify, firecrawl skills) | — | -| Image / video | Skills (Canva, Gamma, Invideo) | No native generation surface | - -## Universal observations (pre-persona) -- Returning users have a strong reward layer (brag-line, I REMEMBER, accumulated stats). -- New users (day 0) have weaker hook material — onboarding wizard is functional but doesn't deliver the "this remembers me" wow until session 2+. -- Social loops only exist in TEAMS tier. Free/individual gets no tribe reward. -- External triggers are weak — no taskbar persistence, no scheduled digest emails, no browser extension. -- Investment surfaces are strong — multiple layers compound. - -These observations seed the per-persona scoring once benchmarks return. diff --git a/docs/addictiveness-audit-2026-05-28/screens/01-iter1-statusbar-memtrophy.png b/docs/addictiveness-audit-2026-05-28/screens/01-iter1-statusbar-memtrophy.png deleted file mode 100644 index 60e527f..0000000 Binary files a/docs/addictiveness-audit-2026-05-28/screens/01-iter1-statusbar-memtrophy.png and /dev/null differ diff --git a/docs/analysis/agent-teams-ai-vs-waggle-2026-07-15.md b/docs/analysis/agent-teams-ai-vs-waggle-2026-07-15.md deleted file mode 100644 index 7fd1842..0000000 --- a/docs/analysis/agent-teams-ai-vs-waggle-2026-07-15.md +++ /dev/null @@ -1,73 +0,0 @@ -# Agent Teams AI vs Waggle OS — Competitive Teardown & Steal List - -**Date:** 2026-07-15 -**Target:** https://github.com/777genius/agent-teams-ai (v2.1.2, HEAD `1e018a1f`, pushed 2026-07-15) -**Method:** shallow clone + 3 parallel deep-read agents (architecture/Kanban, runtime adapters, differentiators). Cross-corroborated; one hallucinated claim (a `docs/product-analysis/WAGGLE-OS-PRODUCT-INTELLIGENCE.md`) verified NOT to exist and discarded. - -> **⚠ LICENSE: AGPL-3.0.** Ideas and mechanism designs only. **Zero code copy** into Waggle (proprietary). Their copyleft is deliberate — likely SaaS-later moat. - ---- - -## 1. What Agent Teams AI is - -Electron 40 + React 19 + Zustand desktop app (pnpm, ~2,300 TS files) that orchestrates **teams of external coding-agent runtimes** through a Kanban board. "Manage agents like a CTO manages engineers." Free, local-first, zero telemetry (analytics functions are literally no-op stubs), single $0 pricing tier, Discord community, agentteams.live landing (Nuxt, ~30 locales). - -**Runtime reality vs marketing:** the "9 supported tools" (Claude Code, Codex, OpenCode, Cursor, SuperGrok, Copilot, Z.AI, MiniMax, Kiro) are NOT 9 adapters. Two bundled sidecar binaries do everything: -- `claude-multimodel` (from their closed `777genius/agent_teams_orchestrator` repo) — one multi-provider runtime with `anthropic | codex | gemini | opencode` providers inside. -- `terminal-platform` daemon — PTY/terminal workspace. - -Cursor/Grok/Z.AI/MiniMax/Kiro are just **model routes through OpenCode/OpenRouter** plus provider-auth connections. The "free model no auth" hook = OpenCode's built-in `opencode/big-pickle` route (`accessKind: 'builtin_free'`). - -**Notable:** the actual teammate launcher + change-ledger **writer** live in the external closed-source orchestrator CLI, not in the AGPL repo. The open repo is the shell: board state engine (`agent-teams-controller/`), readers, review UI, MCP server (FastMCP, tool groups team/task/lead/kanban/review/message/process/runtime/workSync/crossTeam). - -## 2. Category comparison - -| Dimension | Agent Teams AI | Waggle OS | -|---|---|---| -| Core object | Kanban task executed by external coding CLIs | Workspace agent with persistent memory | -| Memory | None (rides Claude's own JSONL; no substrate) | FrameStore + HybridSearch + KG + Identity/Awareness — **the moat they don't have** | -| Agent runtime | External CLIs (2 sidecar binaries) | Own agent-loop + LiteLLM routing + personas | -| Multi-agent | Lead-orchestrator + teammates, worktree isolation, runtime lanes | WaggleDance signals, subagent-orchestrator, coordinator persona | -| Code change control | **Hunk-level review + content-addressed change ledger** — their crown jewel | Review-before-apply proposals (skills only, steal #3 arc) | -| External tool launch | Detect/install/launch 2 runtimes; provider auth bridge | Launcher: 7-tool cohort detect/launch + 6 hook packages (AI-OS arc) | -| Harvest/import | None | 10+ adapters, dedup, sticky erasure | -| Monetization | $0 only, AGPL copyleft, no Stripe anywhere | 4-tier, Stripe live, KVARK funnel | -| Compliance | Nothing (no redaction, no audit trail in OSS repo) | install_audit, execution traces, compliance/, GDPR erasure, EU AI Act story | - -**Verdict: adjacent, not head-on.** They orchestrate *coding* agents on repos; Waggle is a general workspace agent platform with memory. Overlap zone = our AI-OS/Launcher arc + subagent orchestration. Their memory-less design means every team relaunch starts cold — our substrate is exactly the gap they can't close without building one. - -## 3. Steal list (mechanisms, not code — AGPL) - -### Tier 1 — high value, direct fit -1. **Post-compact context re-injection** (`TeamProvisioningService.injectPostCompactReminder` + `handleCompactBoundary`). On `compact_boundary` stream event, re-inject standing rules + fresh task snapshot into the agent — strict one-shot flag, deferral guards (only when agent idle, no relay in-flight), re-arm on re-compact, and instruction "do NOT start new work this turn, reply one status line." We persist compaction summaries as memory frames (#12, just shipped); the *active re-injection with idle guards* is the missing half for our agent-loop long-runs. -2. **Rate-limit auto-resume** (`AutoResumeService.ts`). Parse reset time out of provider error, `setTimeout` nudge ~30s after reset; guards: 12h ceiling, staleness, **run-id capture** (never nudge a session that advanced), re-check alive at fire. Pure-function plan (`scheduled | manual{reason}`) = testable. Fits agent-loop + ai_task scheduler (#17). -3. **Scheduler hardening trio** for our cron-store/ai_task: (a) **warm-up timer** — pre-provision runtime N min before cron tick; (b) **auto-pause after N consecutive failures** (default 3); (c) **interrupted-run recovery** — on boot, mark prior-process `running/pending` runs `failed_interrupted`. Plus cwd-exclusion lock so two schedules never share a directory. -4. **Tool-approval coordinator patterns** (`RuntimeToolApprovalCoordinator.ts`) to harden our `confirmation.ts`/`permissions.ts`: per-team timeout **actions** (allow|deny|wait), in-flight response claiming (no double-answer), **stale-runId rejection**, live `reEvaluate()` of pending approvals when settings change. - -### Tier 2 — strong, larger arcs -5. **Task-change ledger (content-addressed)** — append-only JSONL events per task + sha256 blob store + precomputed summary bundles + freshness stamp (size+mtime+sha256 of 4KB journal tail) for validated-vs-degraded fast path. For Waggle this is a **compliance asset**: agent file-mutation audit trail with provenance/confidence tiers slots straight into our EU-AI-Act/install_audit story, and enables agent-change review UI later. -6. **Hunk-level review of agent edits** (their crown jewel): accept/reject per hunk, decisions keyed by stable original indices + context hashes (replay-safe over recompute), reject applied via snippet reverse-replacement with diff3 fallback, stale-check before apply, 10-deep undo. Big arc; extends our review-before-apply from skills to file edits. Only worth it when Waggle agents do heavy multi-file work. -7. **Stall monitor + turn-settled control plane.** Level-triggered scanner classifying "is agent actually progressing," alert dedupe journal; provider-neutral Stop-hook "turn settled" spool→drain→reconciler. We already ship Stop hooks (`maybeEmitDiscovery`, WAGGLE_SIGNAL_EMIT) — extending to turn-settled telemetry gives Mission Control real liveness. -8. **Provenance-tiered cost attribution** — source-confidence enum (`sdk_exact → gateway_exact → log_parsed → tokenizer_estimated → cost_estimated`) + **"API-equivalent cost"** shown even on subscription/free runtimes (great free-tier framing: "Waggle saved you $X"). Budget evaluator engineering: single-flight drain queue, config fingerprint skip, per-period dedupe keys (threshold notifies once/month). Extends our cost-tracker. - -### Tier 3 — cheap wins / process -9. **Critical-coverage test config** — separate vitest project gating ONLY security-boundary files (IPC guards, path decode) with hard thresholds, instead of blanket 80%. Cheap, high-leverage; we could scope one to injection-scanner, vault, channels SEC paths, erasure. -10. **Interactive shell-env resolver** — spawn user's login shell → `env -0` to capture real PATH (single-flight, 12s timeout, SIGTERM→SIGKILL, cooldown, best-effort background variant). Directly relevant to our `tool-detection.ts`/Launcher misses when Tauri inherits bare env. -11. **Board-as-DAG research note** (`adaptive-task-graphs-research-note.md`) — tasks=nodes, blockedBy=edges, ready work = graph frontier; **selective verification scaled to graph impact**; straggler release as first-class action; coordination-metrics panel (idle rounds, straggler tail, wasted tokens). Feed into WaggleDance/subagent-orchestrator design when we do multi-agent task graphs. -12. **Agent-graph live viz** (`packages/agent-graph`, d3-force + canvas, port/adapter isolated) — animated org-chart of running agents with message particles. Mission Control candy; concept only (AGPL). -13. **docs/research/ corpus** (~65 files) — ready-made competitive/architecture lit review: ACP deep-dive, CLI-adapter exhaustive search, inter-agent communication standards, orchestrator competitor patterns. Worth one reading pass for the WaggleDance roadmap. - -### Explicitly NOT steal -- Their runtime-adapter layer — we already own our agent runtime; wrapping external CLIs as workers is their category, not ours. -- Kanban board as primary UX — wrong center of gravity for Waggle (memory/chat-first). Task DAG concepts (item 11) transfer without the board. -- Their gap we already beat: no memory, no harvest, no secret redaction on agent output, no telemetry/product signal, no monetization rail. - -## 4. Recommended sequencing (founder call) - -- **Quick arc (days):** #2 rate-limit auto-resume, #3 scheduler trio, #4 approval hardening, #9 critical-coverage config, #10 shell-env resolver. All bolt onto shipped Tier-3 steal infra (#17 ai_task, channels, confirmation). -- **Medium arc:** #1 post-compact re-injection (pairs with shipped #12), #7 turn-settled liveness, #8 API-equivalent cost framing. -- **Strategic (separate proposal):** #5 change ledger as compliance/audit feature — strongest differentiated fit (EU AI Act) — then #6 hunk review on top if/when agents do heavy file work. - -## 5. Session-log note - -Their repo is itself built by agent teams (guardrail file forbids testing team-launch on named real projects; `.controller-compact-prompt` broker re-prime prompt checked in). Test fixtures break Windows checkout (`Filename too long` under `test/fixtures/team/task-change-ledger/`) — their content-addressed fixture paths exceed MAX_PATH; if we build a ledger, keep blob dirs shallow. diff --git a/docs/analysis/cowagent-vs-waggle-2026-07-09.md b/docs/analysis/cowagent-vs-waggle-2026-07-09.md deleted file mode 100644 index b8a89bf..0000000 --- a/docs/analysis/cowagent-vs-waggle-2026-07-09.md +++ /dev/null @@ -1,138 +0,0 @@ -# CowAgent vs Waggle OS — Competitive Teardown & Steal List - -**Date:** 2026-07-09 · **Method:** 4 parallel Opus deep-read agents over a fresh clone of -[`zhayujie/CowAgent`](https://github.com/zhayujie/CowAgent) (commit 2026-07-08) + comparison against this repo. -All CowAgent claims below are code-verified with file:line by the analysts. - ---- - -## 0. What CowAgent is - -**CowAgent = `chatgpt-on-wechat` rebranded in place.** Same repo (created Aug 2022), so its "super AI -assistant" pivot launched with **45.9k stars / 10.3k forks** already attached; last push was yesterday, -release cadence ~2-3 weeks (v2.0.0 Feb → v2.1.3 Jul 2026). Python monolith (~73k LOC / 292 files), MIT. -Commercial parent: **LinkAI** (link-ai.tech) — the open-core-funnel structure is *identical* to -Waggle→KVARK: OSS demand-gen → hosted cloud + enterprise (workspaces/RBAC/audit all cloud-only, none in OSS). - -Feature surface is a near-mirror of Waggle: 3-tier memory + nightly distillation, hybrid keyword+vector -retrieval, markdown knowledge wiki + graph, self-evolution, skill hub with one-click install, MCP, -multi-model routing, Electron desktop + web console + CLI, 13 IM/chat channels. - ---- - -## 1. Head-to-head verdict - -| Axis | Winner | Evidence | -|---|---|---| -| **Memory substrate** | **Waggle, decisively** | CowAgent: brute-force O(N) vector scan (no ANN/sqlite-vec), no reranker, naive 0.7/0.3 linear fusion on mismatched score scales, LLM-prompt-only dedup/contradiction handling, nightly **lossy whole-file rewrite** of MEMORY.md with zero provenance, no GDPR erasure, no identity/awareness layers, no entity extraction (its "knowledge graph" is just markdown links), **zero benchmarks**. Waggle: sqlite-vec + cross-encoder reranker, FrameStore provenance, sticky erasure, LoCoMo 86.49% SOTA. | -| **Security** | **Waggle, decisively** | CowAgent has **no prompt-injection defense at all**, no trust model, no permission tiers, no cost tracker; SSRF guard is opt-in and OFF by default; bash tool has only a minimal catastrophic-command blocklist; web console is single-user shared-password. Waggle: injection-scanner (mandated), trust-model, permissions, Tauri IPC allowlist, vault, cost-tracker. | -| **Multi-agent / personas** | **Waggle** | CowAgent is explicitly single-agent, one AGENT.md, no persona layer, no orchestration. Waggle: 22 personas, subagent-orchestrator, coordinator, workflow-composer, WaggleDance. | -| **Engineering rigor** | **Waggle** | CowAgent grade **C+/B−**: only 9 of 217 tests gated in CI, no lint/typecheck/coverage gates, ~41% typing, 5,028-line god file (`web_channel.py`), unpinned heavy deps. Waggle: ~8k gated Vitest tests, Playwright E2E, strict tsc, CI gates, production signoff. | -| **Team / governance / billing** | **Waggle** | CowAgent OSS has none (all punted to LinkAI cloud). Waggle has tiers+Stripe+governance in-product. | -| **Distribution & reach** | **CowAgent, decisively** | 13 channels incl. the entire WeChat/WeCom/QQ ecosystem + Telegram/Slack/Discord (Waggle: **0** IM channels). One-line `curl \| bash` installer with China-network resilience (Gitee/pip-mirror fallbacks) and zero-key boot. 45.9k-star inherited brand, trending, 4-language docs (246 .mdx — best-in-class). | -| **Online self-evolution** | **CowAgent** | Runtime, conversation-driven evolution loop (see steal #1). Waggle's evolution is offline/eval-gated only. | -| **Docs** | **CowAgent** | 246 .mdx, trilingual, per-channel guides. Genuinely excellent. | - -**Net:** CowAgent out-distributes us (channels, installer, brand gravity, docs) but is a shallower, -single-user, security-weak product with a hobbyist-grade memory engine and no proof. Waggle's moat -(benchmarked substrate, security, teams, rigor) is real. The asymmetric move: **graft their funnel -mechanics onto our core** — their moat (WeChat ecosystem + 45k stars) is the only thing we can't copy. - ---- - -## 2. Steal list (consolidated, ranked by value/effort) - -### Tier 1 — high value, low-to-medium effort - -1. **"Dream Diary" — user-facing nightly consolidation narrative.** Their Deep Dream distillation - (`agent/memory/summarizer.py:414`, prompt :55-141, diary write :585) emits a second `[DREAM]` section: a - short narrative of what was merged/conflicted/cleaned, saved to `memory/dreams/YYYY-MM-DD.md` and surfaced - in a Self-Evolution UI tab. Waggle already *does* the substance (reconcile, contradiction-detector, - dedup) but shows the user nothing. One extra LLM output section + one UI surface = observability, - delight, and a retention mechanic. **Cheapest high-impact steal.** -2. **Anti-nag file-change gate + "fix the source, not the symptom."** Their evolution reviewer may only - notify the user if a watched file *actually changed* (mtime/size snapshot diff, `evolution/executor.py:459`); - the prompt forbids logging a symptom to memory when the root cause is an editable skill - (`evolution/prompts.py:63-68`). Portable discipline for our evolution + memory writes. -3. **Online idle-triggered self-evolution.** Daemon scans sessions every 60s; fires on idle ≥ N sec AND - (enough turns OR context >80% of budget) (`evolution/trigger.py:38-53`). Spawns an isolated reviewer - agent with a restricted toolset and workspace-confinement guards (`executor.py:117-228, 409-444`), - default-`[SILENT]`, with backup_id + `evolution_undo`. It patches skills, **completes promised-but-unfinished - deliverables**, and rarely writes memory. Waggle has all the pieces (subagent-orchestrator, - evolution-orchestrator, cron-store) but no runtime conversation-driven loop. **Highest strategic value.** -4. **IM channels as distribution surface.** Their `channel_factory.py` + `ChatChannel` base + - per-platform `*_message.py` normalization is a clean ~2-file-per-platform adapter pattern. Waggle has - zero IM reach; "your Waggle workspace agent, live in Slack/Telegram/Discord" is a reach multiplier and - fits the Teams tier perfectly (Slack first — it's the Teams buyer's habitat). Port the pattern over the - Fastify sidecar; skip the China stack. -5. **One-line installer + interactive setup wizard.** `run.sh` (1,362 lines): dep detection → clone with - mirror fallback → venv/pip with proxy handling → interactive model+channel wizard writing config → - start → CLI handoff. Zero-key boot (config works before any API key; keys added in UI). Waggle has no - `curl | bash` self-host story for the sidecar. - -### Tier 2 — solid, medium effort - -6. **Embedding-based on-demand MCP tool retrieval.** Above a threshold (20), tool descriptions are - embedded and only top-k relevant tools are injected per turn, union-only within a run so schemas never - vanish mid-run (`tool_manager.py:606-676`). Direct upgrade path for our MCP + tool-filter as catalogs grow. -7. **MCP hot-reload.** `(mtime, sha256)` signature diff on mcp.json → add/remove/restart only changed - servers, no process restart (`tool_manager.py:378-439`). Plus background async MCP boot so the agent - serves traffic while `npx`/`uvx` servers start. -8. **Hard-capped always-injected core digest.** `MEMORY.md` ≤50 items / 200 lines / 25KB, LLM-maintained - dense, always in prompt, with "spillover → memory_search" pointer (`workspace.py:110,186`). A clean - token-budget pattern to layer on top of recallMemory/IdentityLayer. -9. **Tiered consecutive-failure loop breaker.** 5 identical-arg calls → stop; 3 identical-arg failures → - stop; 6 same-tool diff-arg failures → stop; 8 same-tool failures → hard abort with user-facing give-up - copy (`agent_stream.py:269-330`). More granular than our boolean loop-guard. -10. **Per-capability model routing UI.** Chat/vision/image-gen/ASR/TTS/embedding each routed to a - different vendor with one click in the web console. We have LiteLLM underneath; we lack the picker UX. -11. **Multi-source skill install grammar + SKILL.md interop.** One resolver accepts Hub name, - `owner/repo`, git URL/SSH, local path, direct SKILL.md URL, zip/tar URL, `clawhub:`/`github:` prefixes — - with SHA-256 checksums and zip-slip guards (`cli/commands/skill.py`). They use Anthropic's SKILL.md - frontmatter convention, making skills cross-tool with Claude Code/OpenClaw — a marketplace-liquidity - play our marketplace should join. - -### Tier 3 — nice-to-have / situational - -12. **`context_summary_callback` dual-use** — one summarization LLM call both persists trimmed turns to - daily memory and re-injects the summary into live context (`summarizer.py:352`). Saves a call in compaction. -13. **Scheduler/cron-pair stripping before long-term memory flush** (`summarizer.py:770`) — keeps - automated noise out of long-term memory; directly relevant to WaggleDance signals. -14. **Retrieval-time temporal decay** — exp half-life 30d multiplier at fusion time (`manager.py:472`). - ~~Complementary to our write-time dating; trivial add.~~ **ALREADY SHIPPED (verified 2026-07-11 - Tier 3 recon): `packages/hive-mind-core/src/mind/scoring.ts:52-63` has exact 30d-half-life - exponential decay, write-time anchored, default ON via 'balanced' profile. Do not re-recon.** -15. **Skill auto-enable by requirement satisfaction** — skills gate on `requires.env/bins` presence and - surface "setup needed" hints (`agent/skills/config.py`). Nice marketplace UX. -16. **Trigram FTS5 cascade for CJK keyword search** (`storage.py:952`) — only if we target non-Latin markets. -17. **Scheduler as agent tool with `ai_task` mode** — cron/interval/once tasks that re-invoke the agent - and push results to the originating channel (`scheduler_tool.py`). We have cron-store; theirs is a - cleaner agent-facing proactivity surface. - -### Explicitly NOT worth stealing -- Their retrieval engine (we're strictly better), their knowledge graph (link-parsing only), their - security model (worse on every axis), Electron+PyInstaller packaging (Tauri is superior), voice-provider - breadth (18 ASR/TTS vendors — off-positioning for us). - ---- - -## 3. Strategic read - -1. **They validated our exact business model** — MIT OSS assistant → cloud/enterprise funnel (LinkAI ≈ KVARK). - They're running it with a 45.9k-star head start and daily commits. This raises urgency on our OSS - launch (hive-mind sits at 0 stars) — the SOTA-gated launch strategy now has a fast-moving reference competitor. -2. **Their moat is distribution, not tech.** WeChat-ecosystem channels + inherited brand + one-line - install. Nothing in their core survives contact with our substrate on quality, but none of our quality - is *visible* the way "works in your WeChat/Slack in 2 minutes" is. -3. **Differentiation story writes itself:** benchmarked memory (86.49 LoCoMo vs their zero evidence), - security (injection scanning vs none), teams/governance in-product (vs cloud-only), test rigor - (8k gated tests vs 9). Useful ammunition for waggle-os.ai comparison copy. -4. **Their one genuine capability lead** — runtime self-evolution that finishes unfinished tasks and - patches its own skills from live conversations — is buildable on infrastructure we already have, and - would neutralize their best demo. - -## 4. Source reports - -Full per-domain analyst reports (memory/knowledge, agent core, distribution, code quality) were produced -2026-07-09; key findings are consolidated above. Clone analyzed at commit `2026-07-08 fix(desktop): -support web_password auth`. diff --git a/docs/analysis/external-agent-launching-and-memory-comparison-2026-06-29.md b/docs/analysis/external-agent-launching-and-memory-comparison-2026-06-29.md deleted file mode 100644 index 8da9098..0000000 --- a/docs/analysis/external-agent-launching-and-memory-comparison-2026-06-29.md +++ /dev/null @@ -1,214 +0,0 @@ -# External-Agent Launching & Memory — Comparison + Build Decision - -**Date:** 2026-06-29 · **Author:** synthesis lead (Claude Opus 4.8 1M) · **Audience:** Marko (founder build decision) -**Repos compared:** `paperclipai/paperclip` · `jaylfc/taOS` · `jaylfc/taosmd` · `jaylfc/tuiui` (unverified) -**Waggle baselines audited:** agent launcher (AI-OS arc) + memory substrate (hive-mind-core) - -> Provenance note: external-repo descriptions are sourced from recon agents. `jaylfc/tuiui` returned **no data** (likely 404 / private / misnamed) — its section is marked provisional. All Waggle file paths in this doc were existence-verified on `docs/w4-sota-doc-sync` (2026-06-29). Behavioral claims about Waggle internals are from the launcher/memory recon, cross-checked against CLAUDE.md §10. - ---- - -## 1. TL;DR / Verdict - -**Can we improve Waggle's external-agent launching? Yes — materially, and cheaply.** The launcher today is an honest detect→launch→hook→signal→UI pipeline, but it is *fire-and-forget with no eyes*: it spawns tools `stdio:'ignore'`, sees nothing until a Stop-hook frame lands, and the dock can't even self-enable the signal bus it built. Three of the four external projects independently converged on the orchestration primitives we're missing. - -**Single highest-leverage move:** make `launchTool()` **self-enabling and resumable** — inject `WAGGLE_SIGNAL_EMIT` + `WAGGLE_SIDECAR_URL` + a `runId`/`taskId` into the launch env (the seam is `tool-launcher.ts:226-229`, today it injects *only* `WAGGLE_WORKSPACE_ID`), and persist the process tracker so launched agents survive a sidecar restart. This turns the existing-but-dark pipeline on. Everything else (heartbeat scheduler, worktree isolation, group-chat) is a follow-on. - -**Steal from paperclip, adopt jaylfc, both, or neither?** -- **paperclip → STEAL (patterns, not code):** its heartbeat scheduler, pluggable-adapter contract, git-worktree isolation, and per-agent budget caps are the cleanest map onto our Loops/launcher/CostTracker work. MIT-licensed, so code is *legally* portable — but it's PostgreSQL-centric and a different product thesis, so port ideas. -- **jaylfc/taOS → PARTIAL:** steal the universal-message-envelope + thin-adapter group-chat seam for WaggleDance; ignore the Python/LXC runtime. **Non-OSS license — patterns only, never code.** -- **jaylfc/taosmd → PARTIAL (two ideas):** the source-span **provable-memory recall gate** and **temporal validity windows** on the KG. **Commons-Clause — re-implement, never copy.** -- **jaylfc/tuiui → PROVISIONAL/IGNORE:** unverified; no findings returned. - -**Founder decisions flagged:** (a) do launched external agents count against per-agent budget caps (CostTracker), and at which tier? (b) is the provable-memory recall gate worth the per-ingest LLM verify cost on the free-forever memory moat? Both deferred to §8. - ---- - -## 2. What Waggle Already Has (honest baseline) - -### 2a. Launcher subsystem (AI-OS arc — real, but partial) - -| Layer | File | State | -|---|---|---| -| Tool catalog / types | `packages/shared/src/tool-detection.ts` | `SUPPORTED_TOOLS` (7), `LAUNCH_COHORT` (7), display names. Solid. | -| Detection engine | `packages/agent/src/tool-detection.ts` | PATH probe for CLIs, candidate-path for desktop apps, hook-pointer probe with **backup-exists verification** (catches partial rollback). DI'd, hermetic. Solid. | -| Launch + hooks | `packages/agent/src/tool-launcher.ts` | `launchTool()` detached spawn, `runHookCommand()` shells `npx @waggle/hive-mind-hooks-`. `HOOKS_COHORT` = 6 tools. | -| Process tracker | `packages/agent/src/tool-process-tracker.ts` | In-memory `Map`, liveness via `kill(pid,0)`, refuses to kill un-spawned pids. **Not persisted.** | -| Sidecar routes | `packages/server/src/local/routes/tools.ts` | `/detect`, `/launch` (202), `/processes`, `/kill`, `/hooks`. zod-validated. | -| Signal bus | `packages/server/src/local/signal-bus.ts` | 500-cap in-memory ring buffer. Ephemeral. | -| v2 bus surface | `routes/waggle-dance.ts` | normalizes → `WaggleMessage`, dispatches; installs 1C bridge once. | -| 1C bridge | `waggle-dance-bridge.ts` | maps 10 protocol subtypes → 5 legacy UX categories; **zero frontend change** to surface activity. Clever. | -| Shim emitter | `packages/hive-mind-shim-core/src/signal-emitter.ts` | `maybeEmitDiscovery()` fail-open POST; fires only on stop/pre-compact at high\|critical. | -| Hook bodies | `packages/hive-mind-hooks-core/src/handlers-core.ts` | tool-agnostic SessionStart/UserPrompt/Stop/PreCompact via `EventAdapter`. | -| Dock UI | `apps/web/src/components/os/apps/LauncherApp.tsx` | detect list, Launch/Stop/Install/Verify/Uninstall, 5s `/processes` poll, optional prompt textarea. | - -**Stub/gap reality (corrects CLAUDE.md §10, which says "6 hooks are Wave 2/3 stubs"):** -- Recon found **6 real / 1 stub**: only `hive-mind-hooks-claude-desktop` is still `export {}`. claude-code/codex/codex-desktop/cursor/hermes/openclaw all ship real `bin` installers. **CLAUDE.md §10 OW-3 is stale — verify before quoting it.** -- **But the UI lags the backend:** `LauncherApp.tsx:57` hardcodes `HOOKS_COHORT=['claude-code']`, so users *can't* install the 5 other working hook packages from the dock. - -**The four launcher gaps that matter:** -1. **No eyes.** Spawn is `stdio:'ignore'` detached (`tool-launcher.ts:106`). Waggle never sees stdout/stderr — only the post-turn Stop-hook frame. No streaming, no attach, no PTY. -2. **Capture is Stop-hook-only.** `maybeEmitDiscovery` fires only on stop/pre-compact at high\|critical. Mid-task visibility is nil; SessionStart/UserPrompt persist frames but never broadcast. -3. **Launch is not self-enabling.** Env injects **only** `WAGGLE_WORKSPACE_ID` (`tool-launcher.ts:226`). It does *not* set `WAGGLE_SIGNAL_EMIT`/`WAGGLE_SIDECAR_URL`, so a dock-launched tool saves memory but stays **silent on the bus** unless the user globally exported the flag. The headline flow doesn't fire itself. -4. **No isolation, no persistence, no orchestration.** Child inherits full `process.env` + cwd; no worktree/sandbox; tracker lost on restart; `launchTool` is one-shot fire-and-forget (no queue, retry, fan-out, completion callback). - -### 2b. Memory substrate (hive-mind-core — the moat, and it's strong) - -- **LoCoMo 87.66% same-judge SOTA** (+5.71pp over Memori, p<10⁻⁵) is delivered by a genuine hybrid stack, not one trick: FTS5/BM25 + sqlite-vec dense + chunk-level vectors + RRF (k=60) + ONNX cross-encoder rerank + KG contextual scoring, all in `mind/search.ts:118`. -- Carries **both** representations: distilled/structured lanes (KG entities/relations, profile/fact/event) **and** a verbatim per-turn lane (`harvest/raw-turns.ts`) credited with the single-hop win. -- **Offline-first by default:** in-process ONNX embedder (~23MB all-MiniLM, `inprocess-embedder.ts`) + reranker (~22MB ms-marco-MiniLM, `inprocess-reranker.ts`) on CPU, zero API keys; provider chain degrades gracefully. -- **Write-time temporal dating** (`frames.ts` createdAt override + `scoring.ts` decay + `recall-context.ts` [YYYY-MM-DD] anchoring) is why temporal leads (+32.7pp vs Mem0). -- **Bitemporal KG already exists:** `knowledge.ts` carries `valid_from`/`valid_to` soft-delete + dedup/merge + entity→frame bridge. - -**Honest memory gaps (relevant to the comparison):** -- **Not a zero-loss verbatim archive by default.** Primary ingest is the 4-pass LLM distillation (`harvest/pipeline.ts`); it keeps *summaries*, and `classifyFailureFallback='skip'` can drop whole batches on an LLM hiccup. Even the raw-turn lane caps at 2000 turns/conv, caps body length, skips system messages, drops injection-flagged turns, and content-hash-dedups — so it is **not** an append-only literal log. -- **No source-span provenance gate.** Frames don't link to an immutable archive span; there's no "demote unsupported claims" verifier. We can't currently *measure* an extraction-hallucination rate. -- **Full ingestion is not purely offline** — distillation needs an LLM. Only retrieval/rerank/embed are local. - ---- - -## 3. paperclip (`paperclipai/paperclip`) - -**What it is (verified by recon):** MIT-licensed Node.js + React **control plane** that orchestrates *teams* of external coding agents into a "company" (org charts, budgets, goals, governance, audit). ~70k stars, launched Mar 2026, pseudonymous solo maintainer (@dotta). Explicit boundary: *"Paperclip orchestrates. Agents run wherever they run and phone home."* It is **not** an execution plane and has **no memory layer** — that's the gap vs Waggle. - -**Launching/orchestration model:** a DB-backed (PostgreSQL) **Heartbeat Execution** engine — a wakeup queue that per-tick does budget check → workspace resolution → secret injection → skill loading → adapter invocation. Four execution patterns: local CLI/session adapters (start/**resume** Claude Code, Codex, Gemini, etc.), shell-command execution, fire-and-forget HTTP/webhook, and **dynamically-loaded plugin adapters** (`~/.paperclip/adapter-plugins.json`, zero hardcoded imports, `createServerAdapter()`). Execution isolation via **git worktrees + operator branches**. Atomic task checkout (single-assignee) + per-agent monthly budget hard-stops. - -**Call: STEAL (patterns; code is MIT so legally portable, but PG-centric → port ideas).** - -| What to steal | Why | Where it lands in Waggle | Effort | -|---|---|---|---| -| **Heartbeat scheduler** (DB-backed wake queue: budget→workspace→secret→skill→invoke) | Cleaner orchestration spine than our chat/cron split; generalizes the new `job_type:'loop'` executor toward waking *external* tools, not just internal report-only loops | `packages/server` Loops/cron layer + `packages/agent` loop executor | **L** | -| **Pluggable adapter contract** (`createServerAdapter()` + dynamic load) | We hardcode 7 tools in `tool-launcher.ts`/`tool-detection.ts`; an adapter registry lets self-hosted installs add runtimes without core edits | `tool-launcher.ts` + turn each `hive-mind-hooks-*` into a registered adapter | **M** | -| **Session resume across heartbeats** | Paperclip reattaches Claude Code/Codex sessions to prior task context; our "Running" badge is one-shot | `tool-process-tracker.ts` + `/api/tools/launch` (add resume-by-session-id) | **M** | -| **Git-worktree execution isolation** | We have *no* isolated exec workspace; concurrent launches collide in one workspace | alongside `LauncherApp` + `/api/tools/launch` + `packages/core` FileStore | **M** | -| **Per-agent budget caps + atomic task checkout** | Maps directly onto `CostTracker` (`packages/agent/src/cost-tracker.ts`); reinforces the L2 approval-queue governance already shipped | `cost-tracker.ts` + Loops/approval-queue | **M** | -| **Goal-ancestry context chain** (mission→project→goal→task injected each run) | Cheap, high-value; always supplies the "why," complements hive-mind recall | orchestrator `buildSystemPrompt()` | **S** | - -**Risks:** control-plane/"company of agents" thesis ≠ our workspace-native memory-first positioning — adopt mechanisms, not narrative. Solo pseudonymous maintainer (bus factor). Young/fast-moving — AGENTS.md references a fork shipping only `hermes_local`/`hermes_gateway`, so the polished multi-adapter marketing may outrun code maturity (verify adapter implementations before porting). PostgreSQL heartbeat queue must be re-implemented on SQLite — not a lift-and-shift. - ---- - -## 4. jaylfc/taOS - -**What it is:** self-hosted Python/FastAPI agent OS that deploys long-lived agents into LXC/Docker containers and auto-clusters across consumer hardware. Headline: a **multi-framework group chat** where agents on ~15 different Python frameworks collaborate in one channel while *the platform* (not the framework) owns memory, files, credentials, identity — *"containers hold code, hosts hold state."* That principle directly parallels our memory-moat thesis. Source-available (Sustainable Use License — **not OSS**), beta, ~519 stars, solo maintainer. - -**Launching model — important framing correction:** taOS does **NOT** launch external CLI coding agents (no Claude Code/Codex process orchestration). It deploys *in-process Python agent frameworks* into containers. So it is **not** a direct competitor to Waggle's launcher — it's an adjacent design point. The valuable part is the **collaboration seam**: (1) a shared SSE bridge (`/api/.../sessions/{slug}/events` + `/reply`) where heterogeneous agents join via ~25–100-LoC adapters translating a **universal message envelope** to each framework's native API; (2) an A2A message bus with realtime wake (`a2a-watch`) for point-to-point messaging. (True cross-framework delegation hand-off is explicitly deferred/unimplemented.) - -**Stack fit:** **poor** for the runtime, **good** for the patterns. Python/FastAPI + LXC/systemd + sysfs hardware probing are Linux-server assumptions that don't port to our Windows/macOS Tauri 2.0 + Node sidecar. Adopt the *architecture*, not the code. - -**Call: PARTIAL (patterns only — non-OSS license blocks code reuse for a commercial product).** - -| What to steal | Where it lands | Effort | -|---|---|---| -| **Universal message envelope + thin per-adapter registry** (~25–100 LoC each) — lets Claude Code / Codex / Cursor sessions post into ONE shared Waggle channel instead of separate silos | `packages/waggle-dance` (normalized cross-agent message schema) | **M** | -| **SSE-bridge group-chat seam** — our SignalBus + bridge is *already this shape* (`signal-bus.ts` + `waggle-dance-bridge.ts`); extend it to carry routed **chat turns**, not just discovery/skill_share | `signal-bus.ts` + `waggle-dance.ts` | **M** | -| **"Containers hold code, hosts hold state" as an explicit launcher contract** — bind `WAGGLE_WORKSPACE_ID` memory + workspace files on the host so a launched agent's state survives swapping the underlying CLI | launcher env-injection + hook-capture (already in `LauncherApp`/shim-core) | **S** | -| **Backend-driven capability discovery** (poll live backends for model/worker readiness, gate UI) vs filesystem discovery | model-route / spawn-agent path (helps open work #1 third-tier fallback) | **M** | -| **A2A direct-messaging bus w/ realtime wake** — point-to-point agent coordination without round-tripping the UI channel | WaggleDance v2 | **L (defer)** | - -**Convergent-validation signal (not a steal):** taOS independently picked LiteLLM + SQLite/FTS5 + ONNX hybrid search + temporal KG + LongMemEval/LoCoMo benchmarking — the *same* substrate choices as hive-mind-core. Their **97.0% claim is Recall@5 on LongMemEval-S (retrieval-only); end-to-end judge is 43–51%.** This is **not comparable** to our 87.66% LoCoMo end-to-end same-judge SOTA — different benchmark, different metric. Do not let a casual reader equate them. - ---- - -## 5. jaylfc/taosmd vs Waggle memory (head-to-head) - -taOSmd is taOS's memory layer, separately published. Thesis: **provable, auditable memory** — a zero-loss append-only verbatim archive is the source of truth; every extracted fact is tagged with its archive span; a background verifier demotes unsupported claims (the **recall gate**). Five substrates (temporal KG, vector, zero-loss archive, session catalog, crystal store) over SQLite + ONNX CPU embeddings + local Qwen3-4B. **License: MIT + Commons Clause** (cannot sell as a hosted service → re-implement ideas, never copy code). ~62 stars, single author, README self-corrected an inflated 74.6%→43–51% end-to-end after a bug fix. - -| Capability | Waggle (hive-mind-core) | taOSmd | Who leads | -|---|---|---|---| -| End-to-end accuracy | **LoCoMo 87.66% same-judge SOTA** | LoCoMo 0.748 lenient / 0.659 strict *retrieval*; **e2e judge 43–51%** | **Waggle** (and not comparable on the headline) | -| Retrieval stack | FTS5+sqlite-vec+chunk+RRF+CE rerank+KG | hybrid + RRF/mem0_additive/**MaxSim late-interaction** + bge-v2-m3 rerank | ~Tie; taOSmd has MaxSim we lack | -| Verbatim archive | raw-turn lane, but **lossy** (2000-turn cap, body cap, dedup, skips system msgs) | **append-only JSONL, never overwritten, source of truth** | **taOSmd** | -| Source-span provenance / hallucination gate | **none** (can't measure extraction-hallucination) | **claims tagged to spans + verifier + `prefer_verified` demotion**; measures 18.8% unsupported | **taOSmd** | -| Temporal | write-time dating + decay (+32.7pp vs Mem0) | validity windows + point-in-time queries | ~Tie; taOSmd's *explicit validity windows* are sharper | -| Bitemporal KG | `valid_from`/`valid_to` exists in `knowledge.ts` | validity-windowed triples + supersession | ~Tie | -| Fully offline ingestion | **No** — distillation needs LLM (retrieval is offline) | **Yes** — local Qwen3-4B + ONNX, zero API keys | **taOSmd** | -| Maturity / trust | production SOTA, regression-locked | beta, single author, self-corrected benchmark | **Waggle** | -| Security default | injection scan at every boundary, parameterized queries | HTTP server ships **no auth** on :7900 | **Waggle** | - -**Concrete steal list (ideas, not code — Commons Clause):** - -1. **Provable-memory recall gate** *(highest-value memory idea)* — tag each frame/claim with its originating harvest span id; run a background verifier (reuse `contradiction-detector.ts` plumbing); let `HybridSearch` (`search.ts`) down-rank unverified claims via a `prefer_verified` flag. Attacks an extraction-hallucination class we currently can't even measure, and feeds the EU-AI-Act audit-trail goal. Lands in `packages/hive-mind-core/src/mind/`. **Effort M.** -2. **Zero-loss verbatim archive as a first-class immutable tier** — elevate raw ingested text to an append-only, never-overwritten store every frame links back to (precondition for #1 and for audit). Lands in `harvest/raw-turns.ts` + schema. **Effort M.** *(Note: this complements, does not replace, distillation — see §9.)* -3. **MaxSim late-interaction as a selectable fusion mode** — low-risk retrieval lever to A/B on the LoCoMo harness against the current reranker. `search.ts` `SearchOptions`. **Effort S.** -4. **Explicit temporal validity windows on KG relations** — we already have `valid_from`/`valid_to`; add point-in-time query + supersession surfacing to harden the temporal lead and enable "what was true as of date X" for Identity/Awareness. `knowledge.ts`. **Effort M.** - -**Do not adopt:** the five-substrate complexity wholesale, the no-auth HTTP server, the 384→1024 zero-pad waste (we already do this — separate cleanup), or their self-reported numbers as validated. - ---- - -## 6. jaylfc/tuiui — PROVISIONAL (unverified) - -**Recon returned `null` for this repo.** It could not be fetched — likely 404, private, renamed, or a misremembered name. **No conclusions can be drawn.** The implied premise (a TUI / terminal-multiplexer UI, by the `tui` + `ui` name) maps to a genuine Waggle gap: §2a gap #1 — the launcher has **no terminal/PTY/live-output surface** for launched agents. *If* such a project exists, the concept worth borrowing for `LauncherApp.tsx` is a **PTY-backed live-output pane** (node-pty piped through the sidecar, streamed to a dock terminal view) so users can watch/attach to a launched agent instead of waiting for a Stop-hook frame. **Action: re-run recon with a verified URL before treating any of this as prior art.** Until then, treat the PTY idea as sourced from §2a's own gap analysis, not from tuiui. - ---- - -## 7. Gap Analysis - -| Capability | Waggle today | paperclip | taOS | Best-in-class | Priority | -|---|---|---|---|---|---| -| Detect installed external tools | **Strong** (7 tools, hook-status w/ backup verify) | adapter-declared | n/a (no CLI launch) | **Waggle** | — | -| Launch external CLI agent | Yes, detached fire-and-forget | Yes, via adapters + heartbeat | No | paperclip | — | -| **Self-enabling launch (signals on by default)** | **No** (only `WAGGLE_WORKSPACE_ID`) | Yes | n/a | paperclip | **P0** | -| **Live output / PTY / attach** | **None** (`stdio:'ignore'`) | partial (tracks runs) | SSE channel | tuiui? (unverified) | **P1** | -| Session resume / reattach | No (one-shot badge) | **Yes** (across heartbeats) | host-state persists | paperclip | **P1** | -| Process persistence across restart | **No** (in-memory) | Yes (DB-backed) | Yes (host state) | paperclip | **P1** | -| Execution isolation (worktree/sandbox) | **None** (inherits env+cwd) | **Yes** (worktrees+branches) | container-per-agent | paperclip / taOS | **P1** | -| Orchestration (queue/retry/fan-out/budget) | **None** (202 & forget) | **Heartbeat + budget caps** | A2A bus | paperclip | **P2** | -| Multi-agent group chat | discovery signals only | org-chart routing | **universal-envelope SSE** | taOS | **P2** | -| Memory: end-to-end accuracy | **87.66% SOTA** | **none** | retrieval-only/43–51% e2e | **Waggle** | — | -| Memory: zero-loss verbatim archive | lossy | none | **append-only** | taOSmd | **P2** | -| Memory: provenance / hallucination gate | **none** | none | **recall gate** | taOSmd | **P2** | -| Memory: fully-offline ingestion | retrieval only | none | **yes** | taOSmd | **P3** | - ---- - -## 8. Recommendation & Phased Plan - -Respecting Waggle constraints: TS monorepo + Tauri 2.0, sovereignty/offline-first, injection-scanning + vault-only secrets + no-eval, and the memory+harvest-free-forever moat. - -### STEAL NOW (this arc / next) - -| # | Item | What & why | Where (files) | Effort | Risk | -|---|---|---|---|---|---| -| **1** | **Self-enabling, identified launch env** | Inject `WAGGLE_SIGNAL_EMIT`, `WAGGLE_SIDECAR_URL`, `runId`, `taskId` alongside `WAGGLE_WORKSPACE_ID` so a dock launch actually lights the bus it built. **Highest leverage — turns the dark pipeline on.** | `tool-launcher.ts:226-229` | **S** | Low. Keep emit opt-out per-tier. | -| **2** | **Persist the process tracker** | Pidfile-backed store + boot reconciliation so Running badges/kill/attribution survive sidecar restart. | `tool-process-tracker.ts` (`register()` seam) | **S/M** | Low. | -| **3** | **Fix UI/backend cohort drift** | Drive `HOOKS_COHORT` from `tool-launcher.ts` (6 real) instead of hardcoded `['claude-code']`; expose codex/cursor/hermes/openclaw install in the dock. | `LauncherApp.tsx:57` | **S** | Low. Smoke each installer. | -| **4** | **PTY live-output pane** | node-pty in the sidecar, piped stream to a dock terminal view (swap `stdio:'ignore'` for piped via the `spawnDetached` DI seam). Closes the "no eyes" gap; the §6 tuiui premise. | `tool-launcher.ts:96-109` + new `/api/tools/stream` + `LauncherApp` | **M** | Med — cross-platform PTY on Windows; injection-scan any echoed prompt. | -| **5** | **Pluggable adapter contract** | `createServerAdapter()`-style registry + dynamic load so self-hosted installs add runtimes without core edits (paperclip's cleanest idea). Refactors the 7 hardcoded tools into adapters. | `tool-launcher.ts` + `shared/tool-detection.ts` + `hive-mind-hooks-*` | **M** | Med — keep the DI test harness green. | -| **6** | **Goal-ancestry context chain** | Inject mission→project→goal→task "why" each run; cheap orchestrator win complementing recall. | orchestrator `buildSystemPrompt()` | **S** | Low. | - -### STEAL SOON (memory moat — needs founder sign-off on cost) - -| # | Item | What & why | Where | Effort | Risk | -|---|---|---|---|---|---| -| **7** | **Zero-loss verbatim archive tier** | Append-only, never-overwritten raw store every frame links back to (provenance anchor + EU-AI-Act audit). **Additive — does not replace distillation.** | `harvest/raw-turns.ts` + `mind/schema.ts` | **M** | Med — storage growth; needs retention policy. | -| **8** | **Provable-memory recall gate** | Tag frames→spans, background verifier (reuse `contradiction-detector.ts`), `prefer_verified` down-rank in `HybridSearch`. First time we can *measure* extraction-hallucination. | `mind/search.ts` + `mind/scoring.ts` + `contradiction-detector.ts` | **M** | **Founder call:** per-ingest LLM verify cost vs free-forever moat. Gate behind a flag; verify async/batched. | -| **9** | **MaxSim late-interaction fusion (A/B)** | Selectable fusion mode; low-risk retrieval lever to test on LoCoMo harness — **must not regress 87.66%.** | `mind/search.ts` `SearchOptions` | **S** | Low — behind flag, A/B only. | -| **10** | **Explicit KG validity-window queries** | Point-in-time + supersession on existing `valid_from`/`valid_to`; hardens temporal lead. | `mind/knowledge.ts` | **M** | Low. | - -### DEFER - -| # | Item | Why defer | -|---|---|---| -| 11 | **Git-worktree execution isolation** | High value (concurrent-launch collisions) but **L** effort; do after PTY + persistence land and multi-launch is real. Founder call on whether desktop users need per-task worktrees yet. | -| 12 | **Heartbeat scheduler** | Generalize `job_type:'loop'` toward waking *external* tools — but it's an **L** rework of the just-shipped Loops layer; let Loops v0/L2 get usage feedback first. | -| 13 | **Per-agent budget caps + atomic checkout** | Maps to CostTracker; do alongside heartbeat. **Founder call:** do external-agent launches count against budget, at which tier? | -| 14 | **Universal-envelope group chat / A2A bus** | WaggleDance v2 territory; build after single-agent launch is observable and resumable. | -| 15 | **Fully-offline distillation (local Qwen)** | Nice for SBC/KVARK sovereign story, but distillation-quality risk; retrieval is already offline. | - -**Founder decisions needed:** (A) recall-gate LLM verify cost vs free-forever moat (#8); (B) whether launched external agents consume per-agent budget, and tier gating (#13); (C) re-run recon on a verified `tuiui` URL before citing it (#4/§6). - ---- - -## 9. What NOT To Do (anti-recommendations) - -1. **Do NOT rewrite the SOTA memory substrate to chase taosmd's framing.** We hold 87.66% LoCoMo end-to-end same-judge SOTA; taosmd's headline is Recall@5 retrieval (97%) with **43–51% end-to-end**. The verbatim-archive + recall-gate ideas are *additive provenance tiers*, **not** a replacement for our distillation+hybrid pipeline. Any change to `search.ts`/`scoring.ts` must A/B against the LoCoMo harness and not regress 87.66%. -2. **Do NOT take a Python runtime (taOS/taosmd) into the Tauri binary.** LXC/systemd/sysfs/FastAPI are Linux-server assumptions incompatible with the Windows/macOS Node-sidecar desktop. Port architecture, not runtime. -3. **Do NOT copy code from taOS or taosmd.** taOS = Sustainable Use License (non-OSS); taosmd = MIT + **Commons Clause** (no selling as a service). Waggle is commercial (KVARK demand-gen). Re-implement ideas cleanly; cite as prior art at most. -4. **Do NOT adopt paperclip's PostgreSQL heartbeat queue as-is.** Re-implement the *pattern* on SQLite/better-sqlite3; a PG dependency breaks the single-file sovereign deploy. -5. **Do NOT import taosmd's no-auth HTTP server pattern.** Our sidecar already guards origins; keep injection-scan-at-every-boundary and vault-only secrets. -6. **Do NOT adopt paperclip's "zero-human company of agents" narrative.** It clashes with workspace-native, memory-first, human-in-the-loop positioning (and the just-shipped L2 approval queue). Mechanisms yes, thesis no. -7. **Do NOT spawn launched agents with full ambient credentials indefinitely.** Today the child inherits all of `process.env`. When adding orchestration (#11–13), scrub/scope env and inject vault secrets per-execution (paperclip's encrypted-at-rest, not-in-prompt model is the bar). -8. **Do NOT cite CLAUDE.md §10 OW-3's "6 stub hooks" as current.** Recon shows 6 real / 1 stub; update the doc when the cohort-drift fix (#3) lands. -9. **Do NOT treat tuiui findings as real** until a verified URL is re-recon'd. The PTY recommendation stands on §2a's own gap analysis regardless. diff --git a/docs/analysis/local-agent-studio-adoption-2026-06-28.md b/docs/analysis/local-agent-studio-adoption-2026-06-28.md deleted file mode 100644 index 907cb02..0000000 --- a/docs/analysis/local-agent-studio-adoption-2026-06-28.md +++ /dev/null @@ -1,147 +0,0 @@ -All three checks confirmed and one flips a verdict: `prefers-reduced-motion` already exists in `apps/web/src/index.css` (so that ADOPT becomes a SKIP), the `searxng` MCP entry is real at `mcp-catalog.ts:104`, and the `confirmation.ts` taxonomy symbols are exactly as cited. Here is the hardened final report. - -# Local-Agent-Studio → Waggle OS: Prioritized Adoption Report (FINAL) - -## 1. Framing & honest verdict - -Local-Agent-Studio (LAS) is a lean, single-user, **local-first Electron app**: an Ollama-routed tool loop bolted to ComfyUI image generation, multi-provider web search, a subprocess/Docker sandbox, and a clean React chat surface. It is a **media + sandbox toy** — no persistent memory, no knowledge graph, no tiers, no multi-agent orchestration, no governance. Waggle is categorically more mature on everything that constitutes its moat: the `mind/` substrate (FrameStore/HybridSearch/KG), the `confirmation.ts` risk taxonomy, the 200+ MCP catalog, the persona/evolution subsystems, and the 5-tier funnel. **Do not adopt LAS's architecture. Adopt a short list of its product *decisions*, port almost none of its *code*.** - -Two corrections to the draft's optimism, both load-bearing: - -1. **Waggle desktop ≠ KVARK.** KVARK is a *separate* sovereign on-prem product (www.kvark.ai); the Tauri desktop binary is the **demand-gen funnel** that qualifies leads into it. So "this unlocks air-gapped KVARK" is the wrong claim for any feature shipped in the desktop app. The right claim is "this is a *sovereignty proof-point* that opens the KVARK conversation." Sovereign-search and local-inference config qualify under that framing; **Docker command isolation does not** (it is server-side hardening KVARK itself would own, and it carries a Docker Desktop runtime dependency absent on virtually every consumer Tauri install — its value evaporates for the funnel product). Docker is therefore **demoted out of the top-5**. - -2. **The single most strategically-aligned LAS idea is vision *input*, not anything in the draft's top-5.** It feeds Harvest/memory — the free-forever moat — and it is portable across all 13 providers (not Ollama-locked; the Anthropic SDK already exposes image blocks and LiteLLM passes multimodal through). It is also the largest slice, so it is named here as the **flagship strategic bet, scheduled as a deliberate vertical**, not smuggled into "quick wins." - -Net: keep the cheap UX/cost guardrails and the one genuine sovereignty differentiator; sharpen reasoning into a *tier-gated* feature; treat vision as the moat play; drop Docker, ComfyUI, and the already-present reduced-motion CSS. - -## 2. Adoption matrix - -| Capability | Waggle status | Verdict | Impact | Effort | Strategic fit | -|---|---|---|---|---|---| -| Editable user message + context rewind | missing | **ADOPT** | H | S–M | core UX / retention → moar memory | -| Per-turn web-search budget (max N/turn) | missing (daily only) | **ADOPT** | H | S | cost control (incl. built-in proxy) | -| SearXNG / self-hosted sovereign search provider | partial (MCP entry only, not native) | **ADAPT** | H | M | **KVARK qualification** (on-prem search) | -| Reasoning **control** (`--think` + override + wire Claude thinking, tier-gated budget) | partial (model-locked, no UI, Claude unwired) | **ADAPT** | M | M | agent quality + PRO trigger | -| Reasoning/thinking-trace panel (native `
`) | missing | **ADOPT** | L–M | S | premium polish (pairs above) | -| Provider health probes + UI remote-endpoint config (Ollama/vLLM base URL) | partial (env-var only, no pre-route probe) | **ADAPT** | M | S–M | sovereign-inference proof-point | -| Multimodal **vision input** (attach → base64 → model) | missing | **ADAPT (flagship)** | H | L | **memory moat** (Harvest ingests images) | -| Local PC date/time + timezone injection | partial (memory-anchor only) | **ADOPT** | L–M | S | works air-gapped; label vs anchor | -| Agent task queue (queue prompt while busy) | partial (bus is inter-agent) | **ADOPT** | L–M | S | UX polish | -| Multi-format DB export tool (JSON/CSV/SQLite) | missing (as a tool) | **ADAPT** | L–M | S | data-engineer persona / tier | -| Per-category permission toggles (files/search/terminal/db/mcp) | missing (trust-level + risk-class) | **ADAPT (caution)** | M | M | governance / TEAMS trigger — *but permission-model sprawl risk* | -| Docker isolation mode for command exec | partial (subprocess denylist) | **DEFER** | L (for funnel) | M–L | off-funnel; KVARK-side, heavy dep | -| Reduced-motion a11y CSS | **HAS** (`apps/web/src/index.css`) | **SKIP** | — | — | already shipped | -| Image **generation** (ComfyUI graph submit/poll/presets) | missing (DALL-E/Replicate MCP exist) | **SKIP** | — | — | off-core; consumer-creative | -| Agentic tool loop / router / observation chaining | has (better) | **SKIP** | — | — | redundant | -| Streaming token events (requestId/SSE) | has | **SKIP** | — | — | redundant | -| Custom markdown parser / streaming render | has | **SKIP** | — | — | redundant | -| First-launch setup wizard | has (6-step OnboardingWizard) | **SKIP** | — | — | Waggle better | -| Workspace file CRUD + path-traversal guard | has (`resolveSafe`) | **SKIP** | — | — | redundant | -| JSON-RPC MCP client / discovery / invocation | has (200+ catalog) | **SKIP** | — | — | redundant | -| Settings deep-merge / update.json checker | has / Tauri updater | **SKIP** | — | — | redundant + Electron-shaped | -| Message compaction (keep last 14) | has (own ctx mgmt) | **SKIP** | — | — | redundant | -| Runpod remote-GPU marketplace config | n/a | **SKIP** | — | — | off-strategy (cloud GPU) | - -## 3. Specs for ADOPT / ADAPT items - -### A. SearXNG sovereign search provider (ADAPT) -**Build:** Promote SearXNG from "installable MCP" to a **first-class native search provider** so an on-prem/air-gapped deployment has real web search with zero cloud egress — and so Waggle can *demo* sovereign search as a KVARK qualification proof-point. -- Add `searxng_search` alongside the existing tools in `packages/agent/src/search-tools.ts` (which today defines `perplexity_search`/`tavily_search`/`brave_search`). Port LAS's **`normalizeResult()` schema-adapter** — it maps heterogeneous `{snippet|content, href|url, name|title}` into Waggle's result shape — that's the only genuinely reusable LAS search code, and it's pure JS (Electron-free, fully portable). -- Register it in `SEARCH_PROVIDERS` in `packages/server/src/local/routes/providers.ts` with a configurable base URL (`SEARXNG_HOST`) and **highest priority when set** (sovereign-first), falling back to the cloud four. -- Add base-URL config to the Settings 'Search Providers' panel (`apps/web` SettingsApp). -- **Verified:** the catalog already carries a `searxng` MCP entry (`packages/shared/src/mcp-catalog.ts:104`). Keep it; the native provider is the deterministic, agent-default path the MCP can't guarantee. -- **Security:** route SearXNG results through the same `scanForInjection()` path as other web results — self-hosted ≠ trusted content. -**Reuses:** provider-priority routing, `DailyRateLimiter`, the search tool contract. **Tier:** all tiers; the *sovereign* angle is the **ENTERPRISE/KVARK** sales line — framed honestly as a proof-point, since the desktop app is the funnel, not KVARK itself. - -### B. Per-turn web-search budget (ADOPT) -**Build:** A hard **max-searches-per-agent-turn** cap (LAS uses 3). Waggle's daily limiters (`DailyRateLimiter`) and the `web_search` 10/min `RateLimiter` in `system-tools.ts` (lines 40-41) do **not** stop a single malformed loop from firing search N times in one turn — and on FREE/TRIAL those calls can hit the **built-in anthropic proxy / Waggle-funded** path, so this is a Waggle cost exposure, not only the user's premium quota. -- Add a per-turn counter scoped to the agent loop in `packages/agent/src/agent-loop.ts` / `retrieval-agent-loop.ts`, incremented by any `*_search` tool, that **short-circuits with an observation** ("search budget exhausted this turn") rather than throwing. -- Express the cap as a constant (default 3–5) and let `loop-guard.ts` own it if a budget primitive already lives there — mirror `iteration-budget.ts`, don't invent a parallel mechanism. -**Reuses:** the loop's observation-injection path. **Tier:** all; matters most for cost-controlled TEAMS/ENTERPRISE and for protecting Waggle-funded proxy spend. - -### C. Editable user message + context rewind (ADOPT) -**Build:** Let a user edit any prior user message; truncate everything after it; rerun from there. LAS does this with a **single array slice** (`messages.slice(0, index)` + clear queue) — the frontend technique is ~20 lines; the backend truncate is the real (small) work. -- Frontend: add an Edit action in `apps/web/src/components/os/apps/ChatApp.tsx` (next to the existing copy/pin actions, ~1115-1209); on save, slice local message state and re-send. -- Backend: Waggle chat is append-only `.jsonl` (`packages/server/src/local/routes/chat-persistence.ts`) with only `POST /api/chat` and `DELETE /api/chat/history` (`chat.ts:451`/`1916`). Add a **truncate-from-index** operation (a `fromIndex` on the send path is more surgical than a new endpoint) that rewrites the session `.jsonl` to the kept prefix before streaming the new turn. Add `editedAt` to `ChatMessage` in `apps/web/src/lib/types.ts` (~389-399). -- **Security:** truncate must be path-scoped to the caller's own session file via the existing persistence helpers — no raw filename from the client. -**Reuses:** SSE send path + persistence. **Tier:** all. Retention-grade UX → more sessions → more memory accumulated → moat. - -### D. Reasoning controls + trace panel (ADAPT control / ADOPT trace — paired) -**Build (control):** A `--think off|low|medium|high` message flag plus a per-request override in the POST body, resolving **message-flag > settings > model default**. -- Parse the flag where the prompt is assembled and thread a `thinking` value through `packages/agent/src/retrieval-agent-loop.ts` (it already carries thinking at 70-76/440-444/622-628) into the model call. -- **Wire Claude extended-thinking**, referenced in `prompt-shapes/claude.ts` but never sent: add the `thinking` block param in `packages/server/src/local/routes/anthropic-proxy.ts` (~172-189). **Caveat (not a one-liner):** extended thinking also requires handling the thinking-delta stream and the API's temperature/param constraints — budget for that, don't assume it's a single field. Qwen already flips `enable_thinking` via `litellm-config.yaml` (238-245); this makes it user-controllable and extends it to Claude. -- **Cost gate (critical):** thinking tokens are billed. On the **built-in anthropic proxy** (FREE/TRIAL, Waggle-funded), expose only `off`/`low`; medium/high and explicit budgets are a **PRO+** capability via `TierCapabilities`. Otherwise a FREE user sets `--think high` and Waggle eats the bill. -**Build (trace):** A collapsible reasoning panel using native `
` (LAS's exact pattern, no JS state). Add a `reasoning`/`thinking_trace` member to the `ContentBlock` union in `apps/web/src/lib/types.ts` (484-489) and render it in `chat-blocks/BlockRenderer.tsx` (today only groups tool steps into ActivityStream, 21-51). The benchmark harness already extracts `reasoning_content`; reuse that separation server-side. -**Reuses:** prompt-shape selector + token stream. **Tier:** control surface = all (off/low); deeper budgets + trace = **PRO** polish point. - -### E. Provider health probes + remote-endpoint config (ADAPT — pair) -**Build:** A `GET /api/providers/health` returning LAS's uniform `{id, kind, status, latencyMs}` schema (probe Ollama `/api/tags`, vLLM, search backends; "configured" for credential-only ones), plus a **Settings UI to set remote Ollama/vLLM base URLs** instead of env-only (`OLLAMA_HOST`/`VLLM_HOST`). -- Extend `checkOllama`/`checkVllm` in `packages/server/src/local/routes/local-inference.ts` (172-198) into a parallel `measured()` probe set; render a status panel in SettingsApp. Use the result to **pre-flight before routing** in `model-availability.ts` (`resolveUsableModel`) so a dead endpoint fails fast instead of timing out mid-turn. -**Reuses:** existing discovery code. **Tier:** all. **Runpod-specific config is explicitly dropped** (cloud-GPU marketplace, off-strategy); the strategic value here is *local/sovereign* inference config — a KVARK proof-point, same framing as A. - -### F. Local date/time + timezone injection (ADOPT) -**Build:** Inject `new Date()` + IANA timezone into the system prompt, gated by a setting, and **skip web search when the user just asks "what's the date"** (LAS's `isLocalDateQuestion()`). -- Waggle today injects only memory-derived anchor dates (`TEMPORAL_GUIDANCE` / `renderReferenceDateLine` in `hive-mind-core/src/mind/recall-context.ts`, wired at `orchestrator.ts:~808`). Add a real-clock line **next to** it in `buildSystemPrompt()`. -- **Design tension to respect:** Waggle's temporal model is deliberately *memory-anchored* (relative dates resolve against memory timestamps, not wall-clock). Label the new line unambiguously as "current real-world date/time" and keep the memory **anchor** date separate, or the model will conflate "today" with the date of a recalled old frame. -**Reuses:** existing temporal block. **Tier:** all; the gating switch supports air-gapped mode. - -### G. Per-category permission toggles (ADAPT — with caution) -**Build:** A Settings UI presenting files/search/terminal/database/mcp as **allow/ask/deny** toggles — the mental model users expect — *projected onto* Waggle's existing engine, not replacing it. -- Map each category to the tools Waggle already classifies; persist into `PermissionsData` in `packages/server/src/local/routes/settings.ts` (232-307, already holds `defaultAutonomy`/`externalGates`/`workspaceOverrides`) and consult it inside `confirmation.ts` (`classifyGatedToolRisk`/`needsConfirmation`) as an **additional** gate. -- **Sprawl warning (§3.2):** Waggle already has **three** permission axes — autonomy level (normal/trusted/yolo), risk class (critical/elevated/medium/low), and the `ALWAYS_CONFIRM` set. A category axis is a **fourth**. Ship it only with an explicit, documented **precedence rule** (recommended: deny/ask categories *tighten* but never *loosen* — they can force a confirm but can never autopass something the existing axes would gate). **Do not weaken `CRITICAL_NEVER_AUTOPASS`** (`confirmation.ts:220/237`, verified) — `isCriticalNeverAutopass` must still fire regardless of any category set to "allow." -**Reuses:** `confirmation.ts` taxonomy + `settings.ts` overrides. **Tier:** governance surface → **TEAMS** trigger. Note LAS code reuse here is ~zero; this is a Waggle UI re-skin of Waggle's own model. - -### H. Multimodal vision input (ADAPT — FLAGSHIP strategic bet) -**Build:** Let users attach images that reach vision models — the **single most moat-aligned** LAS idea because it feeds **Harvest/memory** (ingest screenshots, diagrams, whiteboards) and lets agents *read* images, not merely because it's a chat nicety. -- Port LAS's `attachments.cjs` MIME-detect + `imageBase64List()` (pure utility, framework-agnostic, portable). -- Vertical wiring (this is why it's L effort — every layer is necessary, none is skippable): - - `ContentBlock` union → add an image block (`apps/web/src/lib/types.ts` 484-489); - - composer drag/drop/paste in `ChatApp.tsx` (crib the existing FilesApp `FileUploadZone`); - - widen `AgentMessage.content` beyond `string | null` (`agent-loop.ts` 17-22); - - construct provider-appropriate image blocks where `chat.ts` today does `{ role:'user', content: message }` (`chat.ts:689`) and in `anthropic-proxy.ts`. -- **Portability is good, not a trap:** Anthropic, GPT, Gemini, and Qwen-VL all accept image input; the Anthropic SDK already exposes `ImageBlockParam`; LiteLLM forwards multimodal. This is **not** Ollama-locked — the value survives the Electron→Tauri / local→multi-provider move intact. -- **Security/cost:** cap attachment size/count, strip EXIF on ingest, and tier-gate high-volume image turns on the built-in proxy (vision tokens are expensive). -**Tier:** input = all; the *Harvest-into-memory* path is the **moat**. **Sequence:** a planned vertical *after* the §5 quick wins — it touches the most layers and deserves its own arc, not a slot in a guardrail sprint. - -### I. Smaller ADOPTs -- **Agent task queue:** queue user prompts while busy, dequeue on the `busy→idle` transition (LAS's `useEffect([busy])`), with a count badge. Mostly `ChatApp.tsx` state; portable. **Tier:** all. -- **DB export tool:** a `create_dataset` tool writing JSON+CSV+(optional)SQLite via `node:sqlite` (still experimental on Node 20/22 — wrap in the graceful fallback LAS uses), built on existing `resolveSafe` file infra in `system-tools.ts`. **Security:** it has a write side-effect, so it **must** be added to `ALWAYS_CONFIRM` (`confirmation.ts:16`, verified) — same gate as `write_file`/`edit_file`. **Tier:** pairs with the **data-engineer** persona. - -## 4. Explicit SKIPs / DEFERs - -- **Docker isolation mode → DEFER (demoted from the draft's top-5).** Three independent reasons: (1) **Portability collapse** — it needs Docker Desktop installed; the typical Tauri desktop user (FREE/PRO/TEAMS) has no Docker runtime, so the feature silently no-ops or hard-fails. (2) **Wrong product** — KVARK is a *separate* sovereign server platform; container isolation is hardening *it* would own, not a demand-gen-funnel feature. (3) **§3.2 simplicity** — it's not a "clean dispatcher port"; it's a second execution subsystem (container lifecycle, image pull, volume mounts, cross-platform Docker detection, absent-Docker error paths) for marginal security gain over the *already shipping* `bash` denylist + `createSanitizedEnv()` + `confirmation.ts` gating. Keep subprocess+denylist+confirmation as the desktop answer; revisit Docker only as a KVARK-side, opt-in mode when a Docker host is guaranteed. -- **Reduced-motion CSS → SKIP (verdict flipped).** **Already present** in `apps/web/src/index.css` (verified). Nothing to port. -- **ComfyUI image generation** — ComfyUI-specific graph engine, near-zero fit with an enterprise-memory funnel, and it is *generation* (does not feed the moat) vs. vision *input* (does). If image gen is ever wanted, expose a thin `generate_image` tool over the **existing DALL-E/Replicate/OpenAI MCP entries** (`mcp-catalog.ts:159-161`), not a ported ComfyUI graph engine. -- **Agentic tool loop / router / observation chaining / multi-stage routing** — `agent-loop.ts` + `orchestrator.ts` + `tool-filter.ts` are strictly more capable; porting LAS's Ollama router is a regression. -- **Streaming token events, custom markdown parser, message compaction** — Waggle has SSE streaming, block rendering, and its own context management. -- **First-launch setup wizard** — Waggle's 6-step persona-aware `OnboardingWizard` is better. -- **Workspace file CRUD + path-traversal guard** — `resolveSafe()` is equivalent. -- **JSON-RPC MCP client / discovery / invocation** — 200+ catalog + routes already ship; LAS's client is a subset. -- **Settings deep-merge, `version.json` update checker, Electron packaging** — Waggle has settings infra and a **Tauri** updater; importing Electron patterns is architecturally wrong. -- **Runpod remote-GPU config** — cloud-GPU marketplace, contradicts sovereign/local-first positioning. Keep only the generic UI remote-endpoint + health-probe idea (item E). - -## 5. Ranked "do these" (top 5 quick wins) - -1. **Editable message + context rewind** (C) — universal, every-session friction fix; one screen of frontend + a `fromIndex` truncate on the existing send path. Zero strategic downside, retention upside. -2. **Per-turn search budget** (B) — cheapest guardrail in the report; a loop-scoped counter that prevents runaway quota/proxy burns (incl. Waggle-funded FREE/TRIAL calls). Reuses `loop-guard`/`iteration-budget` philosophy. -3. **SearXNG sovereign search provider** (A) — the one genuine *sovereignty differentiator*; M effort, reuses provider routing, port only `normalizeResult()`. Framed honestly as a KVARK qualification proof-point, not "KVARK itself." -4. **Reasoning control wiring, tier-gated** (D-control) — finishes the half-built thinking pipeline (wire Claude thinking, expose `off/low/medium/high`), improving agent task quality (→ better memory) while **capping cost on the built-in proxy by tier**. The trace panel rides along as cheap polish. -5. **Provider health probes + UI remote-endpoint config** (E) — fail-fast model UX plus UI-driven local/vLLM endpoint config; the local-inference half of the sovereignty story. Runpod dropped. - -**Flagship strategic bet — schedule as its own vertical, not a quick win:** **Multimodal vision input** (H). It is the *highest moat-value* LAS idea (Harvest ingests images) and fully portable across Waggle's providers, but it touches the most layers; give it a dedicated arc after the guardrail sprint. - -*Honorable mentions, all small:* local clock injection (F), agent task queue (I), DB export tool (I — gate via `ALWAYS_CONFIRM`). - ---- - -## Critique deltas (what changed from the draft, and why) - -- **Docker isolation (E): top-5 → DEFER.** Three failures the draft missed: (1) portability — Docker Desktop is absent on the typical Tauri desktop install, so the value evaporates for the funnel product (the LAS→Waggle environment delta the brief asked to test); (2) strategic mis-attribution — it's KVARK-server hardening, and Waggle desktop ≠ KVARK; (3) §3.2 — it's a full second execution subsystem, not a "clean dispatcher port," for marginal gain over the shipping denylist+sanitization+confirmation stack. -- **Reduced-motion CSS: ADOPT → SKIP.** Verified **already present** in `apps/web/src/index.css`. The draft's own "verify first" hedge was correct; I verified, and it flips. -- **Vision input (H): "honorable mention/bigger bet" → named FLAGSHIP.** It is the only item that feeds the memory moat (the founder's #1 strategy), and I corrected the implicit portability worry: it is multi-provider, not Ollama-locked (Anthropic SDK image blocks + LiteLLM passthrough), so the value survives the port. Kept honest on L effort by scheduling it as a vertical, not a quick win. -- **Reasoning (D): added a tier-gated cost guard.** The draft exposed `--think high` with no cost ceiling; on the Waggle-funded built-in proxy that's a FREE-tier billing hole. Now `off/low` for built-in proxy, deeper budgets PRO+. Also flagged that wiring Claude extended-thinking is more than one param (thinking-delta stream + API constraints). -- **Per-category toggles (G): ADAPT → ADAPT (caution) with a mandatory precedence rule.** The draft layered a 4th permission axis onto Waggle's existing three without addressing contradictory-state risk; I require a "tighten-only, never loosen, never override `CRITICAL_NEVER_AUTOPASS`" rule (symbols verified at `confirmation.ts:16/220/237`). -- **SearXNG (A) + health probes (E): strategic claim softened from "unlocks KVARK" to "KVARK qualification proof-point,"** because the desktop binary is the funnel, not the sovereign product. Confirmed the `searxng` catalog entry exists (`mcp-catalog.ts:104`) so the native-vs-MCP framing stands. -- **Per-turn budget (B): widened the cost rationale** to include Waggle-funded built-in-proxy spend, not just the user's premium quota — strengthens the strategic case and bumps it up the ranking. -- **Top-5 reordered** to weight leverage-per-effort and verified strategic fit: C, B, A, D, E — replacing Docker with health-probes and pulling the two cheapest universal wins (C, B) to the front. -- **DB export + create_dataset:** made the `ALWAYS_CONFIRM` gating explicit (write side-effect) and flagged `node:sqlite` as still experimental — both were under-specified in the draft. \ No newline at end of file diff --git a/docs/analysis/locomo-87.66-vs-85.26-integrity-2026-06-30.md b/docs/analysis/locomo-87.66-vs-85.26-integrity-2026-06-30.md deleted file mode 100644 index 7dbcdc1..0000000 --- a/docs/analysis/locomo-87.66-vs-85.26-integrity-2026-06-30.md +++ /dev/null @@ -1,55 +0,0 @@ -# LoCoMo headline integrity — 87.66% is not reproducible; canonical = 86.49% (settled 2026-07-01) - -**TL;DR.** The published LoCoMo SOTA headline **87.66% (1350/1540)** does not reproduce on a fresh -judge pass on **any** substrate. Fresh 7-lane W4 + fresh gpt-4.1-mini judge = **85.19%** on its own -archived 2026-06-11 substrate and **86.49%** on the current substrate. The inflation is at the -**judgment layer** (the harness's documented stale-verdict-replay bug), not substrate drift. Founder -adopted **86.49%** as the canonical, reproducible, still-SOTA number (+4.54pp over Memori 81.95, -z=4.64, p<10⁻⁵). Verify: `benchmarks/results/locomo-sota-2026-06/recount.mjs`. - -## The investigation chain (each step verified) - -1. **Evidence not in the repos.** The 87.66 report + raw answers/judgments lived only in the - throwaway `hive-mind-test` repo + git-ignored local disk (`.gitignore **/benchmarks/results/*`); - OSS showed the old 73.1%. (See `locomo-sota-evidence-drift-2026-06-30.md`.) - -2. **Committed judgments recount low.** `memori-gpt41mini-ours-judgments.jsonl` @ `05f2146` (the - report's cited input) recounts to **1313/1540 = 85.26%**, not 1350/87.66. Method validated: it - reproduces the Mem0 (73.96%), Config-C (76.62%) and theirs-arm (82.14%) numbers exactly. - -3. **The committed answers were the WRONG config** (founder's "7-lane W4?" catch). That answers file - has `raw_detail=0, importance=0, ~3098 tok` — a **reduced 2-lane** run (distilled+semantic), not - 7-lane W4. Re-judged fresh = **85.39%**. The 87.66 needed the full 7-lane stack (raw-detail≈16, - ~3700 tok). - -4. **Regenerated the true 7-lane W4** (PROFILES+DATEWIN+EPISODIC+RAWDETAIL, uncapped) on the current - substrate → **86.49% (1332/1540)**. Better than 2-lane (+1.1pp), validates the Pareto — but still - 1.17pp below 87.66. - -5. **Substrate confound ruled out.** The 87.66 (2026-06-11) ran on minds archived as - `minds-pre-wave3c` (2026-06-11 00:38); the current minds were rebuilt larger on 2026-06-29. Fresh - 7-lane W4 on the **archived original substrate** = **85.19%** — *lower* than current. So the gap - is NOT substrate drift (newer substrate scores higher); 87.66 doesn't reproduce even on its own - substrate. - -6. **Cause = stale-verdict replay.** The harness note (2026-06-15, - `RESULT-backlog-closeout`): *"judge resumes by question_id and replayed stale verdicts."* The - original 1350-correct judgment pass included replayed/inflated verdicts; it is lost and no fresh - judge (85.19 / 86.49) reproduces it. The `41-judge` resume-by-linecount is the mechanism — - reusing an OUT_FILE skips fresh judging. - -## Definitive numbers (all fresh gpt-4.1-mini judge, Memori verbatim prompt, N=1540) -| Configuration | Overall | vs Memori | -|---|--:|--:| -| Published claim (2026-06-11) | 87.66% (1350) | +5.71pp — *unreproducible* | -| Archived 2026-06-11 substrate, 7-lane W4 | 85.19% (1312) | +3.24pp | -| **Current substrate, 7-lane W4 (CANONICAL)** | **86.49% (1332)** | **+4.54pp, z=4.64** | -| 2-lane committed file, fresh judge | 85.39% | +3.44pp | - -## Resolution (2026-07-01) -- Adopt **86.49%** as canonical. Pinned in `benchmarks/results/locomo-sota-2026-06/` - (report + answers + judgments + `recount.mjs`), git-tracked. -- Correct 87.66→86.49 across all surfaces (docs, public `apps/www`, `BenchmarkApp`, arXiv draft, - OSS, memory index); recompute stats (+5.71→+4.54pp, z=4.42→4.64). -- Prevent recurrence: the harness must use a fresh `OUT_TAG` per run; benchmark SOTA evidence must - pin substrate+answers+judgments together in-repo. `hive-mind-test` is throwaway. diff --git a/docs/analysis/locomo-sota-evidence-drift-2026-06-30.md b/docs/analysis/locomo-sota-evidence-drift-2026-06-30.md deleted file mode 100644 index e141227..0000000 --- a/docs/analysis/locomo-sota-evidence-drift-2026-06-30.md +++ /dev/null @@ -1,82 +0,0 @@ -# LoCoMo SOTA evidence drift — root cause + consolidation (2026-06-30) - -> **UPDATE 2026-07-01:** consolidating the evidence surfaced a deeper defect — the **87.66% number -> itself does not reproduce** (fresh 7-lane W4 = 86.49% current / 85.19% archived substrate; stale- -> verdict-replay inflation). Canonical headline is now **86.49%**. This doc's gitignore/side-repo -> root cause still stands; the number correction is in -> [`locomo-87.66-vs-85.26-integrity-2026-06-30.md`](./locomo-87.66-vs-85.26-integrity-2026-06-30.md). - -**Symptom (founder):** "old benchmark results show, and the SOTA claim is not within waggle-os -or hive-mind." The 87.66% LoCoMo memory-SOTA is real and verified, but looking at the canonical -repos you see *old* numbers — the reproducible evidence isn't there. - -**Verdict:** Confirmed. This is a recurrence of the §7.5 substrate-drift pattern, but in the -**evidence/results** dimension, not the code dimension — with an aggravating `.gitignore` rule -that was *silently swallowing* the result report. - ---- - -## How it was diagnosed (4-repo evidence matrix) - -| Repo / location | LoCoMo number visible | 87.66 evidence present? | -|---|---|---| -| waggle-os committed `benchmarks/results/` | April-2026 GEPA + v4–v6 manifests + `agentic-locomo-2026-04-25` | **No** | -| waggle-os `docs/` (methodology §0, arXiv `.tex`/`.docx`, WAGGLE-CORNERSTONE) | 87.66 **prose** | Claim only — no reproducible data | -| waggle-os on-disk `benchmarks/results/memori-phase22-RESULT.md` | **82.21%** (Phase-2.2 precursor) | No — and **git-ignored**, never committed | -| OSS `marolinik/hive-mind` `benchmarks/locomo/RESULTS.md` + README badge | **73.1%** (N=320, Opus self-judge) | **No** | -| `hive-mind-test` @ `05f2146` (private side repo) | **87.66%** (N=1540, same-judge) | **Yes — committed** | - -**Substrate code (the engine) is NOT the problem this time.** All four SOTA-critical elements — -`inprocess-reranker.ts`, `search.ts` reranker wiring, `resolve-relative-date.ts` / -`parse-date-window.ts` (write-time temporal dating), `raw-detail-lane.ts` — are present in -waggle-os `main` (`packages/hive-mind-core/src/mind/`) and in the OSS mirror. The reranker was -reverse-ported from OSS to monorepo in `f47ee8f` (2026-06-11). (Minor: the OSS reranker sits at -an older commit `974ad7b` but is content-equivalent.) - -## Root cause (three compounding failures) - -1. **`.gitignore` swallow.** `.gitignore` line `**/benchmarks/results/*` ignores everything - directly under `benchmarks/results/`. The June W3.3 result report was generated there and - silently never committed. Older results (`gepa-faza1/…`, `agentic-locomo-2026-04-25`, - `manifest-v4/v5`) survive only because they were force-added / committed *before* the rule — - so the directory shows a stale snapshot. -2. **Evidence produced in a throwaway side repo.** The actual 87.66 run (report + 1,540×2 - answers + judgments) was produced and committed in `hive-mind-test`, which is a private - benchmark working repo — not the product monorepo and not the public OSS repo. It was never - forward-ported. This is the §7.5 "benchmark work in a side checkout is throwaway unless - reverse-ported" failure mode. -3. **OSS public repo never refreshed.** `marolinik/hive-mind` still advertises the earlier - 73.1% (N=320) result in `RESULTS.md` + README badge; the 87.66 number was never published - there even though the winning-stack *code* was (PR #14). - -Net effect: the SOTA *claim* (prose) shipped to the monorepo docs, but its *reproducible -evidence* lived only on local disk (git-ignored) + a side repo. A fresh clone of either -canonical repo shows old numbers — exactly the founder's report. - -> Red herring: the founder pointed at `D:/Projects/waggle-os-w4` (branch `feature/w4-port`). -> That worktree is **226 commits behind `main`** and only 3 doc/lint commits ahead, all of whose -> content was already re-ported to `main` (paper via `4193e68a`). It holds nothing `main` lacks. - -## The fix (this change) - -**A. Commit the canonical evidence into the product monorepo (done here).** -`benchmarks/results/locomo-sota-2026-06/` now holds the two canonical reports (verbatim, with -provenance headers), an `INDEX.md` (the previously-untracked SOTA single-source-of-truth), and a -`README.md` reproduction recipe. The raw ~3.8 MB answers/judgments are intentionally **not** -duplicated into the lean product repo — they're pointered to `hive-mind-test` + OSS. - -**B. Stop the silent swallow (structural drift-closure).** A `.gitignore` negation exception -re-includes `benchmarks/results/locomo-sota-2026-06/**` so this evidence stays committed and -future canonical SOTA evidence has a non-ignored home. - -**C. OSS public update — prepared, founder-gated.** Updating `marolinik/hive-mind` -`benchmarks/locomo/RESULTS.md` + README badge from 73.1% → 87.66% is **outward-facing** (it -pre-announces the SOTA ahead of arXiv submission, whose citation pass + endorsement are still -open). Left as a go/no-go for the founder rather than pushed unilaterally. - -## Prevent recurrence (recommended follow-ups) -- Add a one-line contract to `CLAUDE.md` §7.5 / `packages/hive-mind-core/CONTRIBUTING.md`: - *"Benchmark SOTA evidence MUST land in `benchmarks/results/locomo-sota-*/` (gitignore-excepted) - in the monorepo. `hive-mind-test` is throwaway — forward-port the report the same arc."* -- Optionally extend `scripts/oss-drift-check.sh` to assert `RESULTS.md` headline parity between - the monorepo evidence dir and the OSS `benchmarks/locomo/`. diff --git a/docs/analysis/loop-engineering-waggle-analysis-2026-06-29.md b/docs/analysis/loop-engineering-waggle-analysis-2026-06-29.md deleted file mode 100644 index aaeed9c..0000000 --- a/docs/analysis/loop-engineering-waggle-analysis-2026-06-29.md +++ /dev/null @@ -1,226 +0,0 @@ -# Loop Engineering as a Cron/Loop Layer for Waggle OS - -### Can Cobus Greyling's loop-engineering be the scheduling/loop layer for Waggle — a knowledge-worker platform, not a coding tool? - -**Status:** Lead analyst synthesis of four lenses (Capability Census · KW Pattern Translation · Cron-Layer Design · Strategic Fit) + direct re-verification of the load-bearing file:line claims. -**Date:** 2026-06-29 · **Verdict confidence:** high (key claims verified against source, not CLAUDE.md). - ---- - -## 1. Executive answer - -**Yes — and it is closer to shipped than the framing implies.** Loop-engineering is not a new engine for Waggle; it is **one new `job_type:'loop'` case** that composes pieces Waggle already built for other reasons. The schedule spine (`CronStore` + `LocalScheduler`), run-logs (`cron_execution_history`), the maker/checker fan-out (`subagent-orchestrator.ts` + `judge.ts`), the autonomy gate (`confirmation.ts`), loop-bounding (`loop-guard.ts`), and the durable state substrate (the per-workspace `.mind`) are all in-tree and tested. What is genuinely missing is the **composition glue**, plus four small primitives. The coding-specific half of Cobus's framework — git worktrees, PR babysitting, CI sweeping — correctly does **not** translate, and its knowledge-work substitute (per-workspace mind isolation) already exists. - -**The inversion thesis (the real differentiator):** Cobus treats **Memory/State as a bolt-on** — "a durable spine outside any conversation" attached to a loop whose true state is the git repo it reads each tick. Waggle inverts this: the per-workspace `.mind` (HybridSearch + KnowledgeGraph + IdentityLayer + AwarenessLayer) **is the product**, and three of the seven shipped cron job-types (`memory_consolidation`, `proactive`, `connector_fetch`) exist only to feed or mine it. A coding loop re-greps a log to remember tick N-1; a Waggle loop recalls it by *meaning*. Loops are the first feature that makes **scheduled work accumulate in the moat**. - -**The honest boundary on that thesis:** memory is a genuine edge for the **recall/synthesis half** of KW loops (triage, brief, digest, "what changed since I last looked") and **neutral-to-negative for the pure-action half** (send the email, update the record), where the authoritative state is the external system (CRM, inbox) and dragging it through a memory substrate adds latency, dedup cost, and a staleness/poisoning surface. Sell the differentiator where it is true. - ---- - -## 2. What loop-engineering is (sourced) - -Cobus Greyling, `github.com/cobusgreyling/loop-engineering` (~3.9k stars, Jun 2026): *"Loop engineering is replacing yourself as the person who prompts the agent. You design the system that does it instead."* A **harness** equips one agent run; a **loop** keeps poking agents on a schedule, spawns helpers, verifies, persists state, decides the next action. - -**Five building blocks + memory:** (1) Automations/Scheduling, (2) Worktrees (git isolation — coding-specific), (3) Skills (persistent project knowledge), (4) Plugins & Connectors (MCP), (5) Sub-agents (maker/checker), + Memory/State (the durable spine, treated as a bolt-on). - -**Loop anatomy (10 steps):** schedule -> triage skill -> state read/write -> isolated worktree -> implementer sub-agent -> verifier sub-agent -> MCP/git/tickets -> human gate -> commit/PR/action -> loop back. - -**Seven production patterns (all coding-centric):** Daily Triage, PR Babysitter, CI Sweeper, Dependency Sweeper, Changelog Drafter, Post-Merge Cleanup, Issue Triage. - -**Operating concepts:** autonomy tiers **L1 Report / L2 Assisted / L3 Unattended**; **intent debt** (unarticulated goals piling up in loop prompts); **comprehension debt** (gap between what the loop ships and what humans understand — read-before-ship); denylist & auto-merge gates; MCP scopes; multi-loop coordination; cost-per-cadence; run-logs; CLI tools (`loop-init`, `loop-audit`, `loop-cost`). - ---- - -## 3. What Waggle ALREADY has — verified capability census - -Statuses corrected against source. **EXISTS** = shipped and usable. **PARTIAL** = built but not wired into the scheduled path. **ABSENT** = not present. **N/A** = coding-only, does not translate. - -| # | Capability | LE term | Status | Evidence (verified file:line) | Gap | -|---|---|---|---|---|---| -| 1 | Schedule + triage on a cadence | Automations/Scheduling | **EXISTS** | `cron-store.ts:15` (`CronJobType` 7-member union), `:72-86` table, `:272` `getDue()`, `:279` `markRun()`; `cron.ts:126` 60s `tick()`; `automations.ts:149-336` user API | None for L1 | -| 2 | Parallel execution isolation | Worktrees | **N/A (coding-only)** | KW analog = per-workspace `.mind`: `activateWorkspaceMindWithWeaver` (`index.ts:1867`) | Git worktrees do not translate; the analog already exists | -| 3 | Persistent project knowledge / reusable modules | Skills | **PARTIAL** | `skill-audit.ts`, `skill-creator.ts`, `persona-data.ts` | Validated but not bound as durable scheduled config | -| 4 | MCP integration | Connectors/MCP | **PARTIAL** | `mcp-catalog.ts`, `connectors/` (30 connectors), `permissions.ts` (whitelist/blacklist) | No per-MCP scope parameter | -| 5 | Sub-agents (maker/checker) | Sub-agents | **PARTIAL (built, unwired)** | `subagent-orchestrator.ts:97` topological sort + `'reviewer'` preset; `judge.ts:76` rubric scoring | Exists in `packages/agent`; **not wired into the cron executor** (executor does a single chat call) | -| 6 | Durable state/memory outside conversation | Memory/State | **EXISTS** | `hive-mind-core/src/mind/{frames,knowledge,identity,awareness}.ts`; `awareness.ts:91` `getByStatus('pending')`; `frames.ts:73` `createIFrame` | The spine — see §4 | -| 7 | 10-step loop anatomy end-to-end | Loop Anatomy | **PARTIAL** | Steps 1-3,5,8-10 exist individually; **the verifier persona is FULLY built** (`judge.ts`) but unwired to cron; step 4 (worktree) is N/A | No integrated 10-step loop architecture; it is components, not a system | -| 8 | Autonomy tiers | Autonomy L1/L2/L3 | **EXISTS (terminology differs)** | `confirmation.ts:202` `AutonomyLevel = 'normal'\|'trusted'\|'yolo'`; `:237` `isCriticalNeverAutopass`; `:271` `needsConfirmationWithAutonomy`; schema levels `manual/guided/medium/high` | Gate is **per-tool-call**, not **per-loop**; the named tiers map to L1/L2/L3 but aren't bound to a loop config | -| 9 | Denylist / never-autopass | Denylist gates | **PARTIAL (corrected from ABSENT)** | Binary denylist `DENIED_BINARIES` (`system-tools-helpers.ts:7`, applied `system-tools.ts:1008`); `CRITICAL_NEVER_AUTOPASS` regex set (`confirmation.ts:220`) | Tool-level denylist exists; **no per-loop denylist config, no auto-merge gate, not bound to the headless path** | -| 10 | Per-action MCP scope limiting | MCP Scopes | **ABSENT** | No `scope` field on `McpServer` | Net-new | -| 11 | Intent debt tracking | Intent Debt | **ABSENT** | — | Concept/UX guardrail, not code | -| 12 | Comprehension debt (read-before-ship) | Comprehension Debt | **ABSENT** | Raw material exists (`cron_execution_history.result_summary`, `formatTrustSummary`) | No plain-language "what this loop did/proposed" digest — the #1 non-technical-user risk | -| 13 | Cost-per-cadence estimation | Cost-per-Cadence | **PARTIAL** | `cost-tracker.ts:55` soft/hard budget; **`getDailyTotal` is a per-session in-memory proxy** (`:135`) | Not persisted, not wired to cron; cannot bound a 24/7 loop | -| 14 | Run-logs (per-tick record) | Run-logs | **EXISTS** | `cron-store.ts:89-102` `cron_execution_history` (`duration_ms/success/result_summary/error`); `getExecutionHistory()`; `GET /api/automations/:id/logs` (`automations.ts:312`); retention `pruneExecutionHistory(30)` (`:320`) | Surface, don't rebuild | -| 15 | Loop bounding / infinite-loop detection | Loop Bounding | **EXISTS** | `loop-guard.ts`, `iteration-budget.ts`; `cron.ts:157` auto-disable after 5 consecutive failures | None | -| 16 | Multi-loop coordination | Multi-loop Coordination | **ABSENT** | Only single-flight `this.ticking` guard (`cron.ts:127`) + 5-fail disable | No cross-loop conflict resolution — TEAMS-tier, later | -| 17 | `loop-init`/`loop-audit`/`loop-cost` CLI | Loop CLI | **ABSENT** | `cli-tools.ts` is generic CLI discovery | Deliver as builder UI, not a developer CLI | - -**Census bottom line:** ~75% of the loop-engineering primitive set is present (8 EXISTS, 4 PARTIAL, 1 N/A); the 4 true ABSENTs plus the cost-per-cadence gap are what a "Loop" layer must add. The coding-only block (worktrees) is correctly absent with a working analog. - ---- - -## 4. The cron-layer opportunity: a "Loop" abstraction on top of CronStore - -**A Loop is a `cron_schedules` row with one new `job_type:'loop'` and a structured `job_config`.** No new table, no new route, no new UI — it reuses the exact blob-on-`job_config` trick `automations.ts` already relies on, and `AutomationCenterApp` already renders any cron row + its history/logs/running tabs. - -### Data model (everything beyond `CronSchedule` lives in `job_config`) -``` -job_config (loop): - goal: string // the recursive purpose ("keep my pipeline triaged") - makerPrompt: string // the implementer sub-agent task (the "triage skill") - checkerRubric?: string // verifier rubric -> judge.ts; omit = no checker - autonomyTier: 'L1'|'L2'|'L3' // report / assisted / unattended - stateKey: string // awareness namespace tag for cross-tick state - budget?: { maxTicks?, maxSubagents?, maxTokens? } - denylist?: string[] // L3 tool/connector denylist (binds to isCriticalNeverAutopass) - notify: boolean -``` - -### Execution sequence (the new `case 'loop':` in the `index.ts:1427` switch — the only new wiring) -1. **Schedule fires** -> `LocalScheduler.tick` (exists, `cron.ts:126`). -2. **Isolate** -> `activateWorkspaceMindWithWeaver(workspace_id)` (exists, `index.ts:1867`). *This is Waggle's worktree.* -3. **Read prior state** -> `AwarenessLayer.getByStatus('pending')` (`awareness.ts:91`) + HybridSearch over frames tagged `stateKey`. **This is the step cron does not do today.** -4. **Maker** -> `SubagentOrchestrator.runWorkflow` (`subagent-orchestrator.ts:97`), step `implement`. -5. **Checker** -> a `verify` step (`dependsOn:['implement']`) scored by `judge.ts:76` -> pass/fail gate. -6. **Human gate by tier:** L1 = `emitNotification` only (zero write side-effects); L2 = write a `pending` approval item; L3 = execute with `denylist` enforced by `isCriticalNeverAutopass` (`confirmation.ts:237`) as the hard floor. -7. **Write next-tick state** -> `awareness.add/updateMetadata` + `FrameStore.createIFrame` (`frames.ts:73`) so tick N+1 sees what tick N did. -8. **Record + loop back** -> `onJobComplete` -> `cron_execution_history` (exists), `markRun` recomputes `next_run_at`. - -### Reuse vs build - -| Loop step | Already there (cite) | Build new | -|---|---|---| -| schedule/tick | `LocalScheduler` `cron.ts:126` | — | -| triage skill | persona/prompt in `job_config` | — | -| **state read/write** | `awareness.ts:91` / `frames.ts:73` / HybridSearch | **wire it (cron ignores it today)** | -| isolation | `activateWorkspaceMindWithWeaver` `index.ts:1867` | — | -| maker subagent | `subagent-orchestrator.ts:97` | — | -| checker subagent | `'reviewer'` preset + `judge.ts:76` | **glue verdict -> gate** | -| connector action | `connector_fetch` `index.ts:1914`; `mcp/` + `tool-filter` | — | -| human gate / autonomy | `needsConfirmationWithAutonomy` `confirmation.ts:271` | **map L1/L2/L3 -> levels + headless queue** | -| loop bounding | `loop-guard.ts`, `iteration-budget.ts` | — | -| cost-per-cadence | `cost-tracker.ts` | persist + pre-activation estimate | - -**Net new code = one executor case (~150-250 LOC) + tests.** The maker/checker fan-out is ~90% there; scheduling/run-logs/auto-disable are 100% there; the gate is 100% there. The composition is the work. - -### Why memory is the spine (the differentiator, grounded) -Cobus's loops are stateful **because git is the state** — worktrees, branches, the diff a PR babysitter reads to know what it already touched. Knowledge work has no git, which is exactly why naive "agent on a cron" loops re-do and re-report the same thing every tick. Waggle already shipped the substitute: -- **`AwarenessLayer`** (`awareness.ts:27`) is a typed, expiring, priority-ordered scratchpad with categories `task|action|pending|flag` and `{status,result}` metadata. `getByStatus('pending')` (`:91`) is literally "what did I leave open last tick" — the loop's working register. -- **`FrameStore.createIFrame`** (`frames.ts:73`) + the harvest **dedup pipeline** mean tick N+1 recalls tick N's frames and doesn't re-emit them. "3 new at-risk deals" on day two means 3 *new* ones, because the prior 5 are already frames. -- The contrast that sells it: Cobus's PR Babysitter remembers which PRs it nudged via git/ticket state. Waggle's pipeline loop remembers which leads it already drafted outreach for, and the contract loop remembers which clauses it already flagged — stored as awareness items + frames, deduped nightly by `memory_compact`/`memory_lane_extract` (`setup-crons.ts`). `cron_execution_history` can tell you a tick *ran*; the mind tells you what the tick *knows*. **L1 loops should be free precisely because they generate this memory.** - ---- - -## 5. Knowledge-worker Loop catalog - -### 5a. The 7 production patterns -> KW analogs - -| # | Coding pattern | KW Loop | Cadence | CronJobType | Persona | Writes to memory (why it compounds) | Tier / gate | Translate? | -|---|---|---|---|---|---|---|---|---| -| 1 | Daily Triage | **Daily Desk Brief** — "what needs me today" across inbox/calendar/CRM | 1x/day | `proactive` (reuse `morning_briefing`) + `agent_task` enrich | executive-assistant | Brief frame; flags items into `awareness(category='task')` so they compound day-over-day | L1, free | ✅ clean | -| 2 | PR Babysitter | **Awaiting-Reply Babysitter** — watch threads/deals you're waiting on; draft nudge when stale | 4x/day (polled) | `agent_task` | sales-rep/support-agent | Thread-state frame (who owes whom, last-touch) reused next tick | **L2, PRO** | ✅ but most blocked: wants event trigger + approval queue | -| 3 | CI Sweeper | **Integration-Health Sweeper** — did nightly reports run? connectors still authed? | 15 min | `workspace_health` (reuse) | ops-manager | Health-status frame + alert | L1 | ⚠️ **mostly coding-only**; only the plumbing-health residue translates, strictly L1, no autonomous remediation | -| 4 | Dependency Sweeper | **Doc/Policy Freshness Sweeper** — flag SOPs/contracts past review-by; propose patch-only edits | weekly | `agent_task` | legal/hr/ops | Freshness-ledger frame per doc | **L2 patch-only, PRO** | ⚠️ translates by metaphor (docs-as-dependencies) | -| 5 | Changelog Drafter | **Weekly Wins / Status Digest** — "what shipped/closed/moved" from tasks+CRM+memory | weekly | `agent_task` (kin to `monthly_assessment`) | project-manager/PM | Digest frame -> compounds into the wiki (`compile_wiki`) | L2 | ✅ clean | -| 6 | Post-Merge Cleanup | **Deal/Project Close-Out** — extract lessons-learned, archive, advance CRM stage | poll 1x/day | `agent_task` | project-manager/sales-rep | **Lessons-learned/post-mortem frame** (highest-compounding write) | L2->L3 | ⚠️ git mechanics N/A; the "hygiene-after-completion" pattern is high value | -| 7 | Issue Triage | **Inbound Triage** — classify/route email, tickets, leads, NDAs, applicants | 2h | `agent_task` | support/recruiter/legal/sales | Triage-label + routing-decision frames; new KG entity per item | **L2 propose-only, PRO** | ✅ strong; matching skills exist (`customer-support:ticket-triage`, `legal:triage-nda`) | - -**Coding-only SKIPs:** CI Sweeper's autonomous build-fix and the git/branch mechanics of Worktrees + Post-Merge Cleanup. Dependency Sweeper translates only by metaphor. The other four map cleanly. - -### 5b. Net-new KW loops (no coding analog — these exist *because* memory + connectors are the platform) - -| Loop | Purpose | Cadence | CronJobType | Why it compounds | Tier | New primitive? | -|---|---|---|---|---|---|---| -| **Inbox-to-memory harvest** | Pull gmail/slack/notion into the mind so context compounds passively | daily | `connector_fetch` (**already shipped**, `index.ts:1914`) | Raw frames in personal mind — the moat in motion | PRO, L3 read-only | **None — ships today** | -| **Relationship-decay sweep** | "Who have I gone quiet on?" ranked by importance | weekly | `agent_task` | Per-contact cadence frame; decay model sharpens over weeks | L1 / L2 draft | Reuses cron; L2 send needs approval queue | -| **Commitment tracker** | Scan sent mail + meeting notes for promises ("I'll send X by Fri") | daily | `agent_task` | Commitment entities in KG — impossible without the substrate | L1 | Benefits from checker (prune false promises) | -| **Renewal / expiry radar** | Contracts/licenses/subs expiring in N days -> alert + prep pack | weekly | `agent_task` | Renewal-calendar frames reconciled each tick | L2 | L2 prep approval | -| **Meeting-prep brief** | T-30 before each meeting: attendees, last threads, open items, CRM | per-meeting | `agent_task` | Brief frame keyed to attendees -> next meeting starts warm | L1 | **Calendar-derived scheduling** — NEW | -| **Knowledge-gap / wiki-compile** | Periodically compile personal wiki + health-check -> surface gaps | weekly | `memory_consolidation` (reuse) | The mind audits itself | L1 | **None — reuses action convention** | -| **Competitor / market-watch digest** | Weekly pull on tracked competitors -> "what changed" delta | weekly | `agent_task` | Per-competitor frame diffed vs last week | L1 | Reuses cron + web-fetch | -| **Expense/invoice anomaly digest** | Weekly scan for anomalies + overdue | weekly | `agent_task` | Anomaly frames + learned baseline | L1 | Reuses cron | - -**~60% of this catalog ships today on the existing cron substrate with zero new code** (persona + prompt + connectors + a `cron_expr`), at L1 or via the notification+`actionUrl` soft-L2 workaround. - ---- - -## 6. Adopt / Build / Skip — concepts - -| Concept | Verdict | Grounded why | -|---|---|---| -| Automations/Scheduling | **ADOPT (already built — reframe)** | `CronStore` + `LocalScheduler` + `/api/automations` shipped; work is vocabulary + UX | -| Worktrees (git) | **SKIP** | Coding-only; KW analog = per-workspace `.mind` boundary (`index.ts:1867`) | -| Skills | **ADOPT (already built)** | Skills + custom-personas + the §D2 verify loop; loops *are* scheduled skills | -| Plugins/Connectors (MCP) | **ADOPT (already built)** | `mcp-catalog.ts` + `connectors/` + `connector_fetch` | -| Sub-agents (maker/checker) | **ADOPT — wire to cron** | `subagent-orchestrator.ts:97` + `judge.ts` exist; the shipped `skill-audit.ts` (synth->run->judge->rewrite->badge) is a maker/checker loop for a KW artifact | -| L1/L2/L3 autonomy | **ADOPT-AS-CONCEPT (relabel + per-loop bind)** | `confirmation.ts:202` `normal/trusted/yolo` = L1/L2/L3 but **per-tool-call**; build a thin per-loop autonomy field that maps onto it | -| Denylist / never-autopass | **ADOPT (already built — bind to headless)** | `CRITICAL_NEVER_AUTOPASS` (`confirmation.ts:220`) + `DENIED_BINARIES` (`system-tools-helpers.ts:7`); bind to **DENY** in headless, not auto-pass | -| Intent debt | **ADOPT-AS-CONCEPT** | UX guardrail: force a one-line goal + success criterion per loop. No code | -| Comprehension debt | **BUILD (small)** | Raw material exists (`cron_execution_history.result_summary` + `formatTrustSummary`); assemble a plain-language "what this loop did/proposed" digest | -| Cost-per-cadence | **BUILD** | `cost-tracker.ts:55` budgets exist but `getDailyTotal` (`:135`) is a per-session proxy; persist a per-loop budget + pre-activation $/day estimate | -| Run-logs | **SKIP / DONE** | `cron_execution_history` + `pruneExecutionHistory(30)` already are run-logs; surface them | -| Multi-loop coordination | **BUILD (later, TEAMS)** | Today: single-process guard + 5-fail disable (`cron.ts:127,157`); real conflict resolution is TEAMS-tier | -| `loop-audit`/`loop-cost` | **ADOPT-AS-CONCEPT, BUILD as UI panel** | Pre-activation readiness/cost in the builder, not a developer CLI | -| `loop-init` scaffold | **SKIP** | KW users don't scaffold YAML; the persona + template picker is the scaffold | -| 7 production patterns | **SKIP as-is, translate** | All coding-centric; replace with the KW templates in §5a | - -### Autonomy-tier proposal mapped to Waggle's trust-model -- **L1 Report** = `emitNotification` only, zero write side-effects (today's scheduled `agent_task` is L1 *by construction* — it is toolless, `index.ts:1869-1885`). Default for v0. -- **L2 Assisted** = maker drafts -> checker gates -> writes a `pending` approval item surfaced in the existing confirmation/notification UI; the human one-click approves. **Needs the new `pending_actions` store.** -- **L3 Unattended** = executes with `denylist` enforced by `isCriticalNeverAutopass` as the hard floor; never inherits interactive auto-approve. Deferred past v0/v1 for write-capable KW workspaces. - ---- - -## 7. Monetization & tier placement - -**Split by what the loop *touches*, reusing the gate the code already made** — `connector_fetch` is **already PRO-gated** (`assertTierCapability(tier,'PRO')`, `index.ts:1919`). Lean on that precedent; do **not** invent a standalone "Loops" SKU (that would tax the moat-builder). - -- **FREE — memory-directed loops (drives the moat).** Loops whose only side effect is writing to the mind: `memory_consolidation`, `proactive` recall, a capped daily `agent_task` digest. `spawnAgents` is already FREE (`tiers.ts`), and scheduled agents are agents on a clock. Cap by **cadence + count**, not by feature (e.g. FREE = up to 3 automations, daily-or-slower, no external write). Maximizes frames written = maximizes moat. -- **PRO ($19) — connector-fed / connector-acting + verify loops (the upgrade trigger).** Anything reading a connector into a loop or acting through one, the maker/checker verify loop (already PRO-gated), custom-skill loops (`customSkills` starts at PRO), higher cadence (sub-hourly), and higher per-loop token budget. This is exactly "skills/connectors are the upgrade trigger." -- **TEAMS ($49/seat) — shared, governed, multi-loop.** Shared-workspace loops, multi-loop conflict resolution, and full run-log audit (`auditLog:'full'`, `teamSkillLibrary` — both TEAMS-only). A team running 20 loops against a shared CRM needs coordination + audit; that is the governance value KVARK sells up-market. - -Defensible because it keeps the moat (free memory loops compound the substrate), doesn't invent a new paywall (loops fall through the existing connector/skill/audit gates), and the cadence/cost cap is the natural "more, faster, acting" upgrade reason. - ---- - -## 8. Risks & mitigations - -**A. Unattended-action footgun — latent today, one wire from opening.** Scheduled `agent_task` is currently toolless — a plain `/v1/chat/completions` call that generates text and notifies (`index.ts:1869-1885`). So every scheduled loop is **L1 by construction** and *cannot* send an email. The danger is the obvious next feature: wiring the full agent loop (with tools) into the scheduler. The moment that happens, **`ConfirmationGate.confirm` returns `true` (auto-approve) when there is no `promptFn`** (verified `confirmation.ts:313`) — a headless tick would silently auto-approve `send_email` (otherwise always-critical). **Mitigation (hard requirement before any tool-enabled scheduled loop):** headless runs default L1; any gated action routes to the notification/approval queue (the `notifications` table already exists, `cron-store.ts:105`) as an async human gate; bind `isCriticalNeverAutopass` to **DENY** in headless, never auto-pass. - -**B. Token-cost blowup on cadence — under-defended.** `CostTracker` has soft/hard daily budgets (`cost-tracker.ts:55`) but **`getDailyTotal()` is an in-memory per-session proxy** (`:135`) — it does not survive restarts and does not bound a per-minute loop. The only real defenses in-tree are the **20-hour frequency floor** (`index.ts:1945`) and the **5-consecutive-failure auto-disable** (`cron.ts:157`). **Mitigation:** generalize the frequency floor to all loop types, persist a per-loop daily budget with a hard cap (reuse `BudgetExceededError`), and show a pre-activation $/day estimate in the builder. Without this, a PRO user setting a 5-min triage loop on Opus is a surprise invoice. - -**C. Comprehension debt — the sharpest KW-specific risk, least mitigated.** Cobus's "read-before-ship" assumes a developer reading a diff. Waggle's user is a salesperson who will not read a JSON run-log. The substrate exists (`cron_execution_history` per-tick rows, `result_summary`, `formatTrustSummary`'s plain-language prose) but is not assembled into a human story. **Mitigation:** default loops to **L2 "propose, don't act"** with a plain-language digest ("This automation drafted 3 follow-up emails and updated 2 deal stages — review?"). For non-technical users, comprehension debt is repaid by **propose-with-summary**, not better logs. - -**D. Stale/poisoned memory feeding an acting loop.** A loop that recalls a poisoned frame then acts is the worst case. `connector_fetch` already injection-scans inbound frames and `skill-audit.ts` fences skill content as untrusted; that discipline must extend to *every* loop crossing recall->action. **Mitigation:** run recalled context through `scanForInjection` before it can reach a write tool. - -**E. Scaling caveat (disclose, don't over-engineer for v0).** `LocalScheduler.tick` runs due jobs **sequentially, awaited in one process**, under a single-flight guard (`cron.ts:126-164`). A loop spawning maker+checker takes minutes; while it runs the whole tick is blocked and other due jobs wait. Fine for a handful of solo-desktop loops; it is not a fleet scheduler. Flag it; a job queue is a later concern. - ---- - -## 9. Smallest shippable slice — "Loop v0" - -**Loop v0 = "make `agent_task` stateful and verified," shipped as `job_type:'loop'`, L1 only.** - -Scope, minimal: -- **One new `case 'loop':`** in the `index.ts:1427` switch. Reads the `job_config` spec, activates the workspace mind, reads prior state from awareness + recall, runs a 2-step `SubagentOrchestrator` workflow (maker -> reviewer with `dependsOn`/`contextFrom`), scores the reviewer output with `judge.ts`, **emits a report notification** (L1: observe, zero writes), then **writes the result back** as frames + an awareness item tagged `stateKey`. `onJobComplete` already records the run-log. -- **Builder/UI: none.** `AutomationBuilder` already POSTs an arbitrary `job_config`; `AutomationCenterApp` already renders the row + Running/History/Logs + Run-now. A 1-line "Loop" label is the only optional FE touch. -- **Tests:** executor unit test + one e2e through `/api/automations` -> tick -> history. Both harnesses exist (`automations.test.ts`, `local-scheduler.test.ts`). - -**Honest build cost: ~1-2 engineer-days.** Small *because* maker/checker, scheduling, run-logs, isolation, the gate, loop-guard, and the memory API are all already in-tree and tested. The risk is not code volume; it is the autonomy-ceiling and tier-gate decisions (§10), plus the §8E sequential-tick caveat. - -**Deliberately deferred from v0:** L2 approval queue (next arc), L3 unattended writes, event/calendar triggers, multi-loop coordination, per-MCP scopes. - ---- - -## 10. Open decisions for the founder - -1. **Autonomy ceiling for v0** — L1-only (report + notify, safe-by-default, demoable) or also L2 (assisted: writes a `pending` approval surfaced in the existing confirmation UI)? *Recommendation: L1 only for v0, L2 next arc, L3 deferred as its own trust arc.* -2. **Tier placement** — L1 memory-building loops FREE (aligned to the moat) with L2/L3 PRO, or "Loops" itself an upgrade trigger? *The gating primitive (`assertTierCapability`) is already wired; this is the one pricing call blocking a build.* -3. **Vocabulary** — keep user-facing "Automations" (already shipped) or rebrand to "Loops" (borrows Cobus's mindshare)? -4. **Event/calendar triggers** — lift the schedule-only restriction now or defer? *Only Babysitter (react-on-reply) and Meeting-prep (T-30) truly need it; everything else polls fine. Recommendation: defer.* -5. **Scaling posture** — accept the sequential single-process tick for v0 and revisit a job queue only if TEAMS multi-loop demand materializes? - ---- - -### Key files cited -`packages/core/src/cron-store.ts` (store + run-logs) · `packages/server/src/local/cron.ts` (tick runner) · `packages/server/src/local/index.ts:1426-1957` (executor switch; `agent_task` one-shot at :1830; `connector_fetch` PRO-gated at :1914) · `packages/server/src/local/routes/automations.ts` (alias seam) · `packages/agent/src/subagent-orchestrator.ts:97` (maker/checker) · `packages/agent/src/judge.ts:76` (checker rubric) · `packages/agent/src/confirmation.ts:202,220,237,271,313` (autonomy gate + the headless footgun) · `packages/agent/src/system-tools-helpers.ts:7` (`DENIED_BINARIES`) · `packages/agent/src/cost-tracker.ts:55,135` (budget + per-session proxy) · `packages/agent/src/skill-audit.ts` (shipped maker/checker loop) · `packages/hive-mind-core/src/mind/{awareness.ts:91,frames.ts:73}` (state spine) · `packages/shared/src/tiers.ts` (tier gates). \ No newline at end of file diff --git a/docs/analysis/odysseus-adoption-2026-06-28.md b/docs/analysis/odysseus-adoption-2026-06-28.md deleted file mode 100644 index 1a3831a..0000000 --- a/docs/analysis/odysseus-adoption-2026-06-28.md +++ /dev/null @@ -1,247 +0,0 @@ -# Odysseus → Waggle OS: Prioritized Adoption Report (Hardened + Deep-Trace Reconciled, Final) - -> **License note (AGPL-3.0 — stated once, binding):** Odysseus is **AGPL-3.0**. We may read it for ideas and **port concepts clean-room** (math, control-flow shape, taxonomy, *edge-case knowledge*), authored fresh against Waggle's own files. We may **not** copy its code into Waggle's proprietary monorepo, **and we may not bundle or ship its binaries** (e.g. its `hwfit`/`llmfit` tool) alongside the closed product — distributing an AGPL binary with proprietary code is the worst-case AGPL trap. Where a spec below "lights up" an existing Waggle route that shells out to a tool, the implementation is a **clean-room TypeScript re-implementation of the algorithm**, never odysseus's binary. The §B hardware-detection port in particular is a port of the *edge-case checklist (knowledge)*, never the `hardware.py` code. No paste, no binary. - -## 1. Framing & Honest Verdict - -Odysseus is a mature self-hosted, multi-user, admin-console-grade workspace: a real (pre-SOTA) memory substrate, a full local-inference stack, a skill-lifecycle machine, a hardened scheduler, and a consumer email/calendar client. The founder's bar is unchanged and high — an item ADOPTs only if it moves one of four Waggle levers: **(1) KVARK funnel / sovereign narrative, (2) the memory+harvest MOAT, (3) the skills/connectors UPGRADE TRIGGER, (4) Waggle-funded PROXY COST.** Generic "good feature" = SKIP, the way Local-Agent-Studio was rejected wholesale. - -**The decisive read: A/B/C already took the proxy-cost-margin lever this session.** Tool-output compression (A, `tool-output-compressor.ts` — subtractive, post-injection-scan, verified), Haiku-on-proxy routing (B, `model-class-router.ts` — `privacyRequired` fails closed, verified), and PRO-gated connector auto-fetch (C, `connector-harvest.ts` — injection-scanned, hash-skipped, frequency-floored, verified). So odysseus's *margin-side* cost items (tool-RAG schema slimming, compact-prompt mode, low-signal bypass, singleflight cache) are **the same lever A/B already took, at lower marginal value** — honest DEFER, not ADOPT. - -**Odysseus's real value sits on the three levers A/B/C barely touched** (only C touched the moat). Four clusters clear the bar, scope-cut to their zero-regret core; one cheap fold; everything else defers or skips. - -- **Proxy-cost via a *different mechanism* than A/B — the local-model on-ramp.** Waggle shipped the local-inference route + UI (`local-inference.ts`: `/hardware` `/models` `/status` `/pull`), but the ranking engine is delegated to an **absent `llmfit` binary** (verified: `detectHardwareViaLlmfit` shells out and returns `null`, falling to `detectHardwareBasic` with `hasGpu:false` + 4 hardcoded RAM-gated models, lines 90-167). B's `model-class-router` has a `localModel` passthrough but **assumes a local model already exists** (verified — `resolveModelForClass` takes a ready `localModel`, never creates one). Odysseus's `hwfit` ranking math is exactly the missing engine that *produces* a fit model. Genuinely NEW vs A/B/C, and double-levered (proxy-cost + KVARK sovereign-local). The deep pass sharpened the cost: the **ranking math is the cheap core; the per-vendor detection layer is the hard multi-week tail** (port it staged, as a clean-room checklist — see §B). -- **Upgrade-trigger: skill VERIFICATION, not skill extraction.** Waggle already auto-distills skills (`skill-distillation.ts` — ≥5-tool success-gated, sign-gated, dedup-via-`search_skills`, verified) — **do not re-recommend auto-extraction.** The gap is that nothing *verifies or prunes* the library; `/api/skills/test` is a static "what would this inject" preview, not a run-and-grade loop (verified, `skills.ts:598`). A self-testing, "verified"-badged, self-pruning library is what a *paid* skills moat needs. -- **Moat: the cheapest win — extend C to email.** C's auto-fetch substrate landed this session; gcal + github are wired, gmail/outlook are not (verified). outlook `list_emails` is `riskLevel:'low'`, param-free (verified) — wiring its `harvestAction` lands inbox content into the substrate in a few lines. -- **Moat-hardening + KVARK narrative: a taint-preserving untrusted-content artifact.** Waggle's injection defense scans at three chokepoints with hard drops, and recall already carries a "this is memory data, attribute honestly" preamble (verified, `orchestrator.ts:773-808`). So Waggle is **not** "detect-block only" — but tool output that *passes* the scan is still returned verbatim with no structural data/instruction delimiter (verified, `tool-executor.ts:114`). The deep pass found the genuinely novel part isn't the delimiter wrapper but **taint-preservation through message-normalization** (the trust bit survives the lossy turn-merge — see §C), which lifts the *security* merit a notch above "purely incremental." Its decisive value remains the **KVARK/EU-AI-Act narrative artifact** ("external content is structurally non-authoritative") plus a published THREAT_MODEL.md — a sales/compliance asset for the sovereign funnel. - -**Does anything clear the bar? Yes — four clusters, scope-cut hard, plus one cheap fold.** None overlaps A/B/C; three hit moat/upgrade/KVARK, one is a *new-mechanism* proxy-cost lever: - -1. **Email connector → memory harvest (§A)** — pure **moat**, lowest effort, highest certainty. Ship first. -2. **Local-model recommend engine + token budget (§B)** — highest ceiling on **proxy-cost + KVARK**; clean-room TS port only; cheap ranking core, staged detection tail; kill the homelab serve fleet. -3. **Skill verification & hygiene (§D)** — the **upgrade-trigger**; ADOPT the cheap hygiene judge, ADAPT the PRO "verified" badge. -4. **Taint-preserving sandbox + THREAT_MODEL (§C, with G merged in)** — moat-hardening that clears **on the KVARK-narrative lever** with a now-stronger security floor; scope to the minimal wrapper + taint-preservation + the doc. - -Plus one fold: **scope-gate the existing memory-mcp to read-only/owner (§E1)** — cheap moat *hygiene* (keeps poisoned external-agent writes out of the SOTA substrate; corroborated on both MCP servers). - -Honest bottom line: **four scope-cut clusters + one cheap moat-hygiene fold.** I killed the draft's "governed outbound write API as the strategic prize" (letting external agents WRITE the substrate cuts against the dedup/quality discipline that makes it SOTA), demoted the event bus and distill-on-failure to DEFER (the event bus now carries a banked cost-safe design — §4), and removed the option to bundle odysseus's AGPL binary. Resist the consumer email client, the compare arena, the homelab serve fleet, and the deep-research re-build — real engineering, not Waggle's funnel. - ---- - -## 2. Adoption Matrix - -| Capability (Odysseus) | Waggle status | Verdict | Impact | Effort | Strategic fit | -|---|---|---|---|---|---| -| Email connector → memory harvest (extend C) | partial (substrate landed, not wired) | **ADOPT** | M–H* | S | **moat** | -| VRAM/RAM-fit model-ranking math (lights up dead `llmfit`) | partial (route exists, engine absent) | **ADAPT** (clean-room TS) | H | L | **proxy-cost + KVARK** | -| Multi-vendor HW *detection* (NVIDIA/Apple first; long tail) | partial (no GPU detect) | **ADAPT** (edge-case checklist, staged) | H | M–H | proxy-cost + KVARK | -| Backend-aware serve-path gating | missing | **ADAPT** (fold into ranking math) | M | S | proxy-cost | -| Adaptive input-token budget → discovered window | partial (128k default, unwired) | **ADOPT** (bundle w/ engine) | M | S | proxy-cost | -| Skill necessity/redundancy/generic hygiene judge | partial (dedup at create only) | **ADOPT** | M | S | **upgrade-trigger** | -| Autonomous skill-audit loop (run→judge→edit→retry→demote) | missing (test is static preview) | **ADAPT** (PRO) | H | L | upgrade-trigger | -| Taint-preserving untrusted-content sandbox + THREAT_MODEL.md | partial (scan+drop, no wrapper/taint; no doc) | **ADAPT** | M | M | **moat-harden + KVARK narrative** | -| Scope-gate the existing memory-mcp (read-only/owner token) | partial (ungated read+write, both servers) | **ADOPT** (minimal) | M | S | **moat hygiene + KVARK** | -| Distill-on-FAILURE teacher-escalation | partial (success-only) | **DEFER** (fold later) | M | M | upgrade-trigger (needs §C wrapper) | -| Governed OUTBOUND scoped agent write API + token taxonomy | partial (single device token) | **DEFER** (speculative arc) | H | L | cuts against substrate quality | -| Self-delivering skill bundle (plugin.zip) | missing | **DEFER** (behind outbound API) | M | S | upgrade-trigger | -| Event-counter trigger (shares cron `next_run`) + model-slot semaphore | missing (C24 deferred) | **DEFER** (cost-safe design banked) | M | M | proxy-cost + moat-freshness | -| Per-query tool selection via HybridSearch lane (local-model enabler) | missing (sends all) | **DEFER** (§B-adjacent ADAPT-candidate) | M | M | proxy-cost (local-model; reliability tail) | -| Multilingual email thread/quote parser (talon) | missing | **DEFER** (behind email harvest) | M | M | moat | -| Compact prompt mode / low-signal bypass / mid-loop unlock | missing | **DEFER** | L | M | proxy-cost (taken lever) | -| Fail-closed read-only/plan-mode gating | partial (fail-open denylist) | **DEFER** | M | S | hardening | -| Vault audit-on-read + justification | partial (no per-access audit) | **DEFER** | M | S | KVARK | -| URL credential redaction before logging | missing | **DEFER** | L | S | KVARK | -| BYO consumer-subscription LLM (ChatGPT/Copilot OAuth) | missing | **DEFER** (bank the credential-resolver seam) | M | M | proxy-cost (ToS-gray) | -| CalDAV SSRF/DNS-rebind validator | parity (OAuth, no URL) | **DEFER** | L | M | KVARK (custom-URL only) | -| Injection-narrowed retrieval (RAG blast-radius) | partial | **DEFER** | M | M | moat (latent) | -| GitHub SKILL.md importer / toolset-gated index | partial | **DEFER** | L | M | upgrade (cannibalizes marketplace) | -| Scheduler hardening (zombie reap / overdue / IANA-tz) | partial | **DEFER** | L | S | reliability (no lever) | -| Pinned-facts always-inject recall lane | partial (IdentityLayer covers it) | **DEFER**/near-SKIP | L | S | none (memory is free) | -| ChromaDB dual-lane memory + Jaccard fallback | **ahead** (SOTA substrate) | **SKIP** | — | — | redundant | -| IterResearch deep-research loop | parity (`retrieval-agent-loop`) | **SKIP** | — | — | parity + token liability | -| Conversation compaction (summarize older half) | **ahead** (5-step pipeline) | **SKIP** | — | — | redundant | -| Agentic email auto-triage pollers / email→cal extraction | missing | **SKIP** | — | — | consumer email client, proxy liability | -| Blind A/B model-compare arena | missing | **SKIP** | — | — | off-brand (consumer arena) | -| Multi-host SSH/tmux/vLLM serve fleet | missing | **SKIP** | — | — | homelab, off-brand | -| nh3 HTML visual report / HF search / JSON-repair | parity | **SKIP** | — | — | redundant / babysits weak models | -| In-process loopback token + reserved usernames | parity (in-process agent) | **SKIP** | — | — | solves a problem Waggle avoids | -| Role-based per-USER tool RBAC | missing | **SKIP** | — | — | RBAC Phase 5 founder-DEFERRED | -| Voice/STT/TTS/faces · standalone email client · themes · 2FA · mascot | n/a / off-brand | **SKIP** | — | — | off-brand B2B cockpit | - -\* *Impact is connector-dependent: high for outlook (`list_emails` returns subject/from/preview); lower for gmail (`list_messages` returns ID stubs only — see §A). Stated honestly, not oversold.* - ---- - -## 3. ADOPT / ADAPT Specs - -### A. Email connector → memory harvest — extend C (moat) · ADOPT · Tier: PRO - -**What:** Wire the low-risk email read action into the auto-fetch substrate that landed this session. Odysseus has deep IMAP/CalDAV connectors but feeds **none** of it to memory — that anti-pattern is the lesson; closing it is the win. - -**Precision correction (the draft overclaimed "the single richest personal corpus"):** -- **outlook `list_emails`** (verified `outlook-connector.ts:55-66`) is `riskLevel:'low'`, optional-only params, and returns real content (subject/from/receivedDateTime, preview via `$select`). **ADOPT cleanly now** — add `harvestAction = { action: 'list_emails' }`. -- **gmail `list_messages`** (verified `gmail-connector.ts:23-35`) is `riskLevel:'low'` and param-free, but the Gmail API returns only `{ id, threadId }` stubs — **no subject/body**. Harvesting it alone lands near-empty frames. The actual content needs `get_message` (requires an `id` param → outside the param-free `harvestAction` contract). So gmail's value is **gated behind a small list→get enrichment** (a two-step harvest variant), not a one-line wire. Ship outlook now; treat gmail as a fast-follow once the enrichment lands. - -**Files:** -- `packages/agent/src/connectors/outlook-connector.ts:55-66` — add `harvestAction`. -- Pattern mirror: `packages/agent/src/connectors/gcal-connector.ts:24` and `github-connector.ts:23` (both wired in C). -- `packages/server/src/local/connector-harvest.ts:143-211` — `runConnectorFetch` already injection-scans each frame (`:191`), hash-skips unchanged (`:184`), frequency-floors on the last real sweep (`:154`). **No new harvest code.** -- `packages/agent/src/connector-sdk.ts:45-50` — `harvestAction` contract. - -**Cost/security:** Bounded — `hashItems` skips unchanged; injection-scan runs per frame (and the §C wrapper stacks on top). PRO-gated like C → zero FREE proxy exposure; "your inbox becomes searchable memory automatically" is a clean upgrade trigger. **Prerequisite for the §4 thread parser.** - ---- - -### B. Cookbook local-model recommend engine — light up the dead `llmfit` route (proxy-cost + KVARK) · ADAPT (clean-room TS) · Tier: FREE/TRIAL - -**What:** **Clean-room re-implement** odysseus's `hwfit` ranking math in TypeScript so Waggle's already-shipped local-inference route stops returning a no-op. This is the on-ramp B needs: B routes to a local model *if one exists*; this is how a FREE/TRIAL user *obtains and picks* one that actually fits their machine — and every such user stops burning the Waggle-funded Anthropic proxy. Doubles as the KVARK sovereign-local story: "scan your machine → run a model that fits → agent + memory now run free, on-device, your data never leaves." - -**AGPL caveat (load-bearing):** Do **NOT** bundle odysseus's `hwfit`/`llmfit` binary as the tool `local-inference.ts` shells out to — that ships an AGPL binary with the proprietary product. Re-implement the algorithm in TS as a sidecar function (drop the `execFile`/`callLlmfit` indirection entirely, or point `LLMFIT_PATH` at our own clean-room TS CLI). The route, types, and UI already exist (`local-inference.ts` lines 21-63, 200-259), so effort is L only because of the math, not the surface. - -**Effort/risk reframing (the deep pass corrected this — the cost is honest now):** the two halves have very different cost profiles. The **ranking math is the cheap, high-value core** — `fit.py`/`models.py` are pure functions (quant bytes-per-param, MoE active-param math, harmonic CPU-offload tok/s, composite score) that port cleanly to TS and are unit-testable (effort L). The **detection layer is the hard, multi-week reliability tail** — `hardware.py` (~900 LOC) is a per-vendor bug graveyard you cannot guess: WSL non-interactive shells hide `nvidia-smi` from PATH; driver-mismatch strings must be disambiguated from "no GPU"; Grace-Blackwell unified memory reports `memory.total=[N/A]`; Strix Halo's BIOS UMA carveout shows only in `mem_info_vis_vram_total` and must NOT be capped at system RAM; Apple needs `recommendedMaxWorkingSetSize` fractions; Windows WMI's 32-bit `AdapterRAM` caps at 4 GB so you must read the registry `qwMemorySize`; consumer RDNA is GGUF-only-serve truth. **Port the detection as a documented edge-case CHECKLIST (clean-room — port the KNOWLEDGE, never the AGPL code) and STAGE it: ship NVIDIA + Apple-Silicon + basic-RAM first (covers ~all Waggle desktop users), then work the long tail iteratively.** Keeps §B the #2 pick while making its cost honest — the engine is cheap; detection reliability is the real spend. - -**Port (scope-cut to the laptop cockpit):** -1. **Fit/quant/offload ranking** (odysseus `fit.py`/`models.py`) — the cheap core: per-quant bytes-per-param, MoE active-param math, GPU→CPU-offload harmonic walk with context halving, weighted quality/speed/fit composite + arch-age bonus. Surfaces too-tight rows instead of hiding them. Replaces `basicModelRecommendations` (verified: 4 hardcoded models gated on RAM only, lines 160-168). -2. **Hardware detection** — staged NVIDIA + Apple-Silicon + basic-RAM first, then the long tail as a clean-room edge-case checklist (see reframing above). Real VRAM detection is the prerequisite: `detectHardwareBasic` hardcodes `hasGpu:false` (verified `:151`), so the ranker today can't tell a laptop iGPU from a 4090. -3. **Backend-aware serve-path gating** — Apple/Windows/consumer-AMD (RDNA) → GGUF-only; never recommend an AWQ repo a Mac can't load. Folds into the ranker at low marginal cost. - -**Bundle — adaptive input-token budget (proxy-cost, effort S, ADOPT):** `context-compressor.ts:404` defaults `maxContextTokens: 128000`, and the live call site **passes no override** (verified `chat.ts:1254` — only `budgetModel`/`litellmUrl`/`litellmApiKey`), so a local 4k/8k model is sized as if it had a 128k window → blowout and mis-sized compaction. Pass an override derived from the discovered window (`window*0.85`, clamp, conservative-on-unknown). ~40 lines + one wiring point; it is the change that makes the §B models actually *work*. - -**§B-adjacent ADAPT-candidate — per-query tool selection for local models (proxy-cost; bundle, don't headline):** a 4k/8k local model physically cannot hold 30 connectors' + MCP tool schemas in context, so the §B on-ramp is only half-useful without trimming the tool surface per turn. The non-obvious Waggle-native move: implement per-query tool selection by **reusing the existing HybridSearch substrate** (embed tool descriptions into a dedicated lane, retrieve top-K) rather than standing up a new vector index — it dogfoods the moat asset as the cost lever. The wiring slot already exists and is dead: `filterToolsForContext` (`tool-filter.ts`) is a static 3-bucket filter with **zero production callers** (verified — only the barrel export + tests). **The real cost is the reliability tail, not the retriever:** odysseus hardened selective exposure against ~10 cited regressions (e.g. #1707 "tell me" loading the whole email toolset; #1567 Ollama small models emitting one native-tool token then stopping → a native-schema-vs-fenced-prose delivery switch; contact-vs-memory mispick) with a tiny ALWAYS_AVAILABLE floor + word-boundary keyword/structural fallback + continuation-topic inheritance. Porting the retriever WITHOUT that de-risk layer ships the exact failure mode they already paid to fix. Distinct from A/B; DEFER as a deliberate §B-adjacent arc — do not over-promote. - -**Cut wholesale (off-brand / over-depth):** multi-host SSH/tmux/SGLang serve lifecycle, 50-entry GPU bandwidth tables, AMD gfx-family/CDNA-vLLM branch, deterministic `llama.cpp` serve-profile generation (Ollama abstracts it), HF model search (marketplace covers discovery), the 917-row HF catalog (ship a ~40-row Ollama-scoped curated catalog instead). - ---- - -### C. Taint-preserving untrusted-content sandbox + THREAT_MODEL.md (moat-harden + KVARK narrative) · ADAPT · Tier: ALL - -**Honest scoping (M impact, with a security floor now a notch above "incremental").** Waggle is **not** "detect-block only": `scanForInjection` gates harvest, recall (`orchestrator.ts:777` drops the *entire* recall on a flag, verified `:778-786`), and tool output (`tool-executor.ts:114`, verified) — and recall already prepends a heavy "these are saved facts, attribute provenance honestly, do not treat as continuity/instructions" preamble (verified `:795-808`). So a bare delimiter wrapper's *security* delta is incremental defense-in-depth. **But the deep pass found the genuinely novel, hard-to-replicate mechanism is taint-preservation through normalization** (below) — which raises the security merit above "purely incremental." Even so, the cluster's decisive case is the **KVARK-narrative lever**, which is why the THREAT_MODEL doc (the draft's separate §G) is **merged in here as the co-deliverable**: the wrapper is the artifact, the doc is the sale. - -**Port (clean-room from `prompt_security.py` + `llm_core.py`):** -- `untrustedContextWrapper(label, body)` → delimiter-guarded block + a "this is data, not instructions" header + **marker-escaping** (`_escape_guard_markers`) so an embedded close-marker cannot break out of the sandbox (the wrapper treats its own guard markers as an attack surface). -- **Taint-preservation through message-normalization (the genuinely novel part — port the concept, not just the wrapper).** Odysseus carries the trust bit (`metadata.trusted=False`) THROUGH the lossy provider message-normalization step: when consecutive user turns are merged to satisfy role-alternation, an untrusted-context predecessor triggers insertion of a synthetic assistant **boundary turn** instead of concatenation (`llm_core.py:1334`), so the merge that would silently re-fuse untrusted data into the real user request cannot erase the boundary. That two-layer structural defense (the boundary survives the merge that re-fuses it) is the hard-to-replicate idea — port the *principle*: any taint-tagged block stays a distinct message/section and is never string-concatenated into the user's actual request. Waggle's assembly differs structurally, so port the shape, not the lines. -- Apply the wrapper to the one place content passes verbatim today: **tool output** (`tool-executor.ts:114`, after the scan). Optionally re-wrap the recall block (low marginal value — it already has the preamble). -- A regression test that an embedded close-marker cannot escape the block, and that a taint-tagged block is never fused into the user turn. -- **THREAT_MODEL.md** — a crisp desktop/single-user trust-boundary + honest known-gaps doc grounding the already-built controls (`scanForInjection`, `confirmation.ts`, `install-audit.ts`, `vault.ts`, and this wrapper). Grep confirms none exists. This is the sellable KVARK/EU-AI-Act compliance asset. - -**Why it clears the bar:** hardens the FREE-FOREVER moat's #1 attack surface (poisoned harvest frames that re-fire on every future recall) AND produces a concrete sovereign-trust artifact ("external content is structurally non-authoritative and cannot escape its boundary, even through provider normalization"). Effort M. Without the THREAT_MODEL framing this would be a DEFER; with it, plus the taint-preservation floor, it is a KVARK-funnel asset. - ---- - -### D. Skill verification & hygiene layer (upgrade-trigger) · ADOPT (cheap subset) + ADAPT (PRO loop) - -**Do NOT re-recommend auto-extraction** — `skill-distillation.ts` already does success-gated, sign-gated, dedup-via-`search_skills` distillation (verified `:31-79`). The gap is *verification and pruning*. A "verified"-badged, self-pruning library is what converts a pile of unverified drafts into a paid moat. - -**D1 — Necessity/redundancy/generic hygiene judge (ADOPT, effort S — the 20% that delivers most):** a periodic **single LLM call per skill** (no agent re-run) asking "is this still necessary / redundant with peers / too generic," demoting the loser to **draft (never delete)** and flagging it on the card. Waggle only dedups at *creation*; an auto-growing library bloats without this. -- Files: `packages/server/src/local/routes/skills.ts` (where distillation lands); reuse `packages/agent/src/judge.ts` for the verdict; write the advisory flag to a usage sidecar so `SKILL.md` doesn't churn. - -**D2 — Autonomous skill-audit loop (ADAPT, PRO, effort L):** run each skill via the agent loop against a synthesized test task → `judge.ts` grades → auto-rewrite the `SKILL.md` to fix flagged issues → retry → demote-to-draft on persistent failure → surface a **"verified" badge + confidence** on the card. Today `/api/skills/test` (verified `skills.ts:598-633`) is a static prompt-injection *preview*, not a run-and-grade loop. Reuse `judge.ts` + `iterative-optimizer.ts`. **PRO-gated and batched** (agent re-run + judge + rewrite per skill burns proxy). The "verified" badge is the sellable artifact. - -**D3 — Distill-on-FAILURE teacher-escalation (DEFER, fold later):** Waggle distillation is explicitly success-only (verified `skill-distillation.ts:35-37`, "a failed/refusal turn has no recipe yet"), so the "learn the fix when you fail" axis is missing — a real gap, but lower priority and it **needs the §C wrapper** to safely capture a failed trace. Reframe as **in-proxy model-class escalation** (Haiku→Opus via B) that captures the Opus fix as a durable skill. Drop odysseus's English-only regex give-up tier. Revisit after D1/D2 ship. - ---- - -### (folded in) E1. Scope-gate the existing memory-mcp — read-only / owner token (moat hygiene + KVARK) · ADOPT (minimal) - -**What:** add **owner-scoped + read-only token modes** so Claude Code/Codex can be granted *recall-only* access to one workspace's mind, instead of today's full read+write to `~/.waggle`. Verified on BOTH MCP servers: `memory-mcp/src/index.ts:64-72` registers `registerMemoryTools` + `registerCleanupTools` (write/delete) with **no auth/scope**, and `hive-mind-mcp-server/src/tools/memory.ts` registers `save_memory` (WRITE, `:20`) and `recall_memory` (READ, `:73`) **in the same file with identical exposure** — the `scope` enum there is *search breadth, not access control*. The MindDB already keys by workspace, so the gate is cheap, and it aligns with the **mind-isolation durable pin**. - -**Concrete low-effort mechanism (port these two ideas, not the HTTP bundle):** (a) **scope-gate MCP tool *registration*** at server start (`HIVE_MIND_SCOPES=memory:read` ⇒ register `recall_memory` but never `save_memory`), so a read-only token literally cannot mutate the substrate; (b) **write-implies-read scope expansion** (`ensure_before` — granting `memory:write` auto-inserts `memory:read`), the ~15-line correctness detail that makes a granular scope model usable. Feed grants into the existing `install-audit.ts`. - -**Why it clears (and why the bigger version doesn't):** read-only scoping is **moat hygiene** — it keeps a poisoned or buggy *external* agent from writing junk into the SOTA substrate. That protects the moat. The draft's larger **E2/E3 — a "governed outbound scoped *write* API" framed as "the strategic prize"** — is **DEMOTED to DEFER**: letting external agents WRITE the substrate by design cuts directly against the dedup/quality discipline that makes it LoCoMo-87.66 SOTA, and the full token taxonomy + middleware is a speculative KVARK-narrative arc, not a now-build. Ship the read-only gate; design the write API later, if ever. - ---- - -## 4. SKIP / DEFER (one-line reasons) - -**SKIP (off-brand / parity / no lever):** -- **ChromaDB dual-lane memory + Jaccard fallback** — substrate is LoCoMo-87.66 SOTA (HybridSearch + cross-encoder + KG bridge); strictly ahead. (Deep memory-retrieval trace confirms Waggle ahead on every retrieval property — RRF vs linear blend, CE reranker, read-side *blocking* vs *framing*.) -- **IterResearch deep-research loop** — parity with `retrieval-agent-loop.ts` (checkpoint/resume + cost halts); odysseus's is less hardened and token-heavy = a proxy-cost *liability*. (The deep-research/compare deep-trace agent failed on schema retries, but the breadth pass already settled this area — no rescue needed.) -- **Conversation compaction** — Waggle's 5-step pipeline + messages-compressor + long-task context-manager subsume summarize-older-half. -- **Agentic email auto-triage pollers / email→calendar extraction** — textbook consumer email client; an LLM call per inbound message on a poller is a direct hit on the Waggle-funded Anthropic proxy; off-brand. -- **Blind A/B model-compare arena** — consumer/LMArena feature; Waggle is a B2B cockpit; model selection is automated (B) and quality is judged by `judge.ts`, not user voting. -- **Multi-host SSH/tmux/vLLM serve fleet + llama.cpp serve-profiles** — homelab-grade; Waggle's user is a single laptop on Ollama (which autotunes `n_gpu_layers` behind its modelfile); Ollama-pull covers it. -- **Built-in MCP tool-server packaging / image-gen fit / nh3 HTML report / HF model search / weak-model JSON-repair** — parity, off-brand (consumer media), or babysitting weak local models. (Bank the npx-cache-precheck + anyio-cancel-scope defensive nugget for if/when Waggle auto-spawns npx MCP servers.) -- **In-process loopback token + reserved usernames** — solves an out-of-process privilege-crossing problem Waggle's in-process Node agent doesn't have. -- **Per-USER tool RBAC** — a real TEAMS idea, but **RBAC Phase 5 is founder-DEFERRED** (don't re-raise); bank the fail-closed `is_public_blocked_tool` detail for when it reopens. -- **Voice/STT/TTS/faces · standalone email client · gallery/image editor · Theme Studio · 2FA/TOTP · companion mascot** — off-brand for a B2B cockpit + demand-gen funnel; Hive DS brand consistency is deliberate. - -**DEFER (real, but gated behind a trigger):** -- **Governed outbound scoped *write* API + token taxonomy (E2/E3)** — the draft's headline "prize"; demoted because external write to the substrate cuts against the quality discipline that makes it SOTA. Revisit as a deliberate KVARK arc *after* E1's read-only gate proves the demand. (The owner-attribution context-swap `_as_owner` is a clean TEAMS-multi-tenant pattern to remember; nothing to build single-user.) -- **Event-counter trigger (C24) — DEFER, but with a concrete cost-safe design now banked.** Verified `cron-store.ts` is schedule-only (DDL has no `trigger_type`/`trigger_event`/`trigger_counter`; `getDue` = `enabled AND next_run_at<=now`; zero `event`/`trigger` matches). The cost-safe mechanism that answers the proxy objection: a named-event counter lives in the SAME row as cron's `next_run_at`; on threshold the bus persists `counter=0, next_run_at=now` to the DB **before** invoking the in-memory scheduler — so the trigger is reboot-durable and replays through the ordinary `next_run<=now` poll (cron + event unified on one path) — paired with a **model-slot semaphore** so pure-code reactions (index reconcile, prune) fire freely while LLM reactions serialize one-at-a-time. Net: idle FREE/TRIAL workspaces fire zero maintenance LLM calls, and memory gets tidied right after a harvest burst instead of up to 24h later. Ship it when memory-freshness-between-cron-ticks becomes a real complaint; the design is recorded so it isn't re-derived. (Waggle's `SignalBus` already carries the events — it's display-only today; this is the reactive half.) -- **Per-query tool selection / compact prompt / delivery-format switch** — reframed by the deep pass from "same lever A/B took" to a **§B-adjacent ADAPT-candidate** (see §3.B): a *local-small-model* enabler (reuse the HybridSearch substrate as the tool retriever; native-schema-vs-fenced-prose delivery for non-API Ollama models), bundled with §B and gated by the same reliability tail (~10 cited regressions). On the Anthropic proxy path prompt-caching + B blunt the win; the concentrated value is the local/sovereign path. DEFER with §B. -- **Distill-on-FAILURE (D3)** — fold onto B's escalation after D1/D2; needs the §C wrapper first. -- **Multilingual email thread/quote parser (talon)** — becomes load-bearing the instant §A ships (else a 10-deep thread stores the same paragraph 10×). DEFER until email harvest is live; then ADAPT as a harvest pre-pass. -- **Fail-closed read-only gating** — Waggle's `isReadOnly` persona filter is fail-OPEN; flip to inverse-allowlist + static mutator backstop opportunistically when persona governance is next touched. -- **Vault audit-on-read + justification / URL credential redaction (`redactUrl`)** — cheap EU-AI-Act hygiene (strip userinfo+query+fragment from LiteLLM/connector endpoint URLs before logging); fold into the next compliance/connector-logging pass. Plus a sensitive-basename deny list (.ssh/.env/id_rsa) + fix the prefix-weak `startsWith(root)` in `file-store.ts:59` to a real segment-boundary containment check — near-free desktop-fs hardening for the sovereign story. -- **BYO consumer-subscription LLM (ChatGPT/Copilot OAuth)** — keep DEFER: genuine proxy relief, but ToS-gray, brittle, ban-risk, and widens off the deliberate Anthropic-only proxy; the `privacyRequired`→local path already gives a sanctioned zero-proxy escape. **Bank the reusable primitive underneath, though:** Waggle's `ProviderEntry.apiKey` is a static string (verified `model-router.ts:8`); odysseus's value is a **refreshable runtime-credential resolver seam** (per-call OAuth refresh = JWT-`exp` decode + skew + per-id refresh lock + a reauth/ratelimit/notfound error taxonomy). The ChatGPT/Copilot backends are just two instantiations; the seam itself is reusable for any *sanctioned* OAuth-refreshing connector/provider (Copilot now, enterprise model-gateway / Anthropic-OAuth SSO later — a KVARK-adjacent sovereign story). Bank the seam; ship neither consumer backend now. -- **CalDAV SSRF/DNS-rebind validator** — bank the harness for if/when a custom-URL/self-hosted (KVARK-sovereign) connector ships. -- **Injection-narrowed retrieval (RAG blast-radius)** — its only concrete trigger is email auto-reply (off-brand, won't ship); note the pattern. -- **GitHub SKILL.md importer / toolset-gated index** — a free arbitrary-GitHub importer competes with the *paid* marketplace; revisit only as a community on-ramp that funnels into marketplace discovery. -- **Scheduler hardening (zombie reap / overdue / IANA-tz)** — genuine reliability, no business lever; cherry-pick overdue-`next_run`-advance only on a reported duplicate-cron bug; IANA-tz only when TEAMS cross-zone scheduling lands. -- **Memory pinned-facts always-inject lane** — the only thing odysseus's recall has that Waggle's `recallMemory` lacks (a deterministic user-pinned "core facts" block injected every turn without retrieval). Memory is free in Waggle's model → moves no lever; `IdentityLayer`/`AwarenessLayer` already cover the always-on need. DEFER/near-SKIP. -- **`bg_jobs`/`bg_monitor` auto-continue for long shell commands** — genuinely elegant (restart-safe exit-code file, idempotent follow-up), but a dev/power-user ergonomic that *adds* proxy cost (an extra agent run per completed job); lever-less. SKIP-leaning DEFER. - ---- - -## 5. Ranked Top Recommendations - -The bar culls hard; odysseus clears it on the three levers A/B/C left open. **Four clusters clear cleanly, plus one cheap fold**, ranked by strength-of-case × certainty, scope cut to the bone: - -1. **Email connector → memory harvest (§3.A).** Highest certainty, lowest effort, pure **moat**. Extends the auto-fetch substrate that *landed this session*; **outlook `list_emails` is a one-line `harvestAction` wire** that lands inbox content into the mind (gmail needs a small list→get enrichment first — don't overclaim it). PRO-gated = cost-safe + upgrade trigger. **Ship first.** - -2. **Cookbook local-model recommend engine + adaptive token budget (§3.B).** Highest strategic ceiling on **proxy-cost + KVARK**, and genuinely NEW vs A/B/C — B routes to a local model, this *creates* one. Resurrects an already-shipped-but-dead route. **Clean-room TS only — never bundle the AGPL binary.** Scope discipline is the whole game: the **ranking math is the cheap core**; the **detection layer is the multi-week reliability tail — port it as a clean-room edge-case checklist and STAGE it (NVIDIA + Apple + basic-RAM first, long tail iteratively)**; bundle the auto-derived token budget; **reject the SSH/tmux serve fleet, the bandwidth tables, the CDNA depth, the 917-row HF catalog, and llama.cpp profile generation.** (Per-query tool selection via the HybridSearch lane rides alongside as a §B-adjacent local-model enabler — DEFER, not headline.) - -3. **Skill verification & hygiene layer (§3.D).** The **upgrade-trigger** play — **only the verification half** (auto-extraction already shipped). ADOPT the cheap necessity/dedup judge (D1, single call/skill) now; ADAPT the PRO-gated run-and-grade audit loop (D2) for the sellable "verified" badge. Distill-on-failure (D3) defers. - -4. **Taint-preserving sandbox + THREAT_MODEL.md (§3.C).** Defense-in-depth on the moat's #1 attack surface (poisoned harvest) **plus** the concrete KVARK/EU-AI-Act trust artifact. The deep pass lifted this from "incremental" to a real security floor by naming **taint-preservation-through-normalization** (the boundary survives the turn-merge that re-fuses it) as the concept to port — but it still clears the bar on the **narrative lever**, so the doc is the co-deliverable, not an afterthought. Scope tight. - -**Folded in, not headlined:** scope-gate the memory-mcp to read-only/owner (§3.E1) — cheap moat hygiene (write-implies-read + scope-gated tool registration) that keeps external-agent writes out of the SOTA substrate. - -**Everything else defers behind explicit triggers or skips.** Do not let odysseus's well-built but off-strategy surfaces — the consumer email client, the compare arena, the homelab serve fleet, the deep-research re-build, the "let external agents write memory" outbound API — pull scope. They are real engineering, not Waggle's funnel. - ---- - -## 6. Critique Deltas (what changed, and why) - -1. **Corrected the §A email overclaim with verified API behavior.** The draft said wiring gmail+outlook "lands the single richest personal corpus … in a few lines." Verified: Gmail's `list_messages` returns only `{id, threadId}` stubs (no subject/body) — harvesting it alone writes near-empty frames; real content needs `get_message` (requires an `id` param, outside the param-free `harvestAction` contract). **outlook `list_emails` returns real content and ADOPTs cleanly now; gmail is gated behind a small list→get enrichment.** Same ADOPT verdict, honest about which half ships in one line. - -2. **Banned bundling odysseus's AGPL binary in §B; mandated clean-room TS.** The draft offered "port to TS **or** bundle it as the `llmfit` binary." The bundle option ships an AGPL binary alongside the proprietary product — the worst-case AGPL trap. Removed it; the spec is now a clean-room TS re-implementation of the fit math, and the license note at the top is strengthened to forbid binaries explicitly. - -3. **Demoted §C from H to M impact and merged §G into it.** Verified that Waggle is *not* "detect-block only": recall already injection-scans with a **full drop on flag** AND carries a substantial "this is memory data, attribute honestly, do not treat as instructions" preamble (`orchestrator.ts:773-808`). A bare structural wrapper's *security* gain is incremental — so the cluster clears the bar **via the KVARK-narrative lever**, which is why the THREAT_MODEL.md (draft's standalone §G) is folded in as the co-deliverable that makes it sell. Scoped the wrapper to the one verbatim-pass site (tool output). - -4. **Killed the draft's "governed outbound *write* API as the strategic prize" (E2/E3 → DEFER); kept only the cheap read-only gate (E1).** Verified memory-mcp is local stdio with ungated read+write. Letting external agents *write* the substrate by design cuts directly against the dedup/quality discipline that makes it LoCoMo-87.66 SOTA — so the big version is moat-*risky*, not moat-deepening, and the token-taxonomy middleware is a speculative arc. The honest win is the **read-only owner-scoped gate** (moat hygiene, effort S), aligned with the mind-isolation pin. - -5. **Demoted the event bus (§F) and distill-on-failure (§D3) from ADAPT-fold to DEFER.** Both are real but thin: the event bus is a proxy-free moat-*freshness* nicety whose lever is marginal; D3 needs the §C wrapper first and is lower priority than D1/D2. Neither is a differentiator on its own. - -6. **Held §B's grounding as the strongest survivor — and verified it end-to-end.** Confirmed the dead `llmfit` shell-out + `hasGpu:false` basic fallback (`local-inference.ts:90-167`), that `model-class-router` *assumes* a local model exists (so the on-ramp is genuinely new), and that the token-budget bug is live (`chat.ts:1254` passes no `maxContextTokens` override → 128k default for every local model). Kept it at #2. - -7. **Re-counted the bar-clearers honestly: four clusters + one fold.** The accurate, restrained framing: **A (moat), B (proxy-cost+KVARK), C (moat-harden+KVARK narrative), D (upgrade-trigger)** clear cleanly; **E1** folds in cheap; everything else defers or skips. - -8. **Held all SKIPs.** Re-tested every SKIP against the bar — all correctly skipped against the SOTA substrate, the Anthropic-only proxy cost model, and the B2B-cockpit brand. No false negatives to rescue. - -**Deep mechanism-trace deltas (this revision — folding the 7 deep dossiers into the hardened breadth brief):** - -9. **(A) Made §B's cost honest — engine cheap, detection is the multi-week tail.** The breadth brief lumped HW detection at effort "M" beside the ranking math. The `hwfit-detection` dossier shows `hardware.py` (~900 LOC) is an un-guessable per-vendor bug graveyard (WSL PATH holes, driver-mismatch strings, Grace-Blackwell `[N/A]` unified memory, Strix Halo UMA carveout, Apple working-set fractions, Windows WMI 4 GB `AdapterRAM` cap → registry `qwMemorySize`, RDNA-GGUF-only). Reframed: the fit math (`fit.py`) is the cheap, high-value core (effort L); detection ports as a **clean-room edge-case CHECKLIST**, STAGED (NVIDIA + Apple + basic-RAM first, long tail iteratively). Matrix split into a math row (L) and a detection row (M–H); §B stays #2. - -10. **(B) Upgraded §C from "wrap tool output" to "preserve taint across normalization."** The `security-sandbox` dossier found the genuinely novel mechanism: odysseus carries `trusted=False` through the lossy provider message-merge by inserting a synthetic assistant boundary turn (`llm_core.py:1334`) instead of concatenating, plus `_escape_guard_markers` delimiter-breakout escaping. Named that two-layer structural defense as the concept to port; security merit nudged a notch above "purely incremental" while the verdict/lever (moat-harden + KVARK narrative) holds. - -11. **(C) Promoted the event-trigger from "thin DEFER" to "DEFER with a banked cost-safe design."** The `scheduler-events` dossier supplied the mechanism that answers the cost objection — an event counter sharing cron's `next_run_at` row, persisted before the in-memory dispatch (reboot-durable; unifies cron+event on one poll), plus a model-slot semaphore so pure-code reactions fire freely and idle workspaces cost nothing. Verified `cron-store.ts` is schedule-only. Recorded the design; kept it gated, not headlined. - -12. **(D) Reframed tool-economy from "taken lever" to a §B-adjacent local-model enabler.** The `agent-loop-smallmodel` dossier shows per-query tool selection is a small-LOCAL-model unlock (a 4k/8k model can't hold 30 connectors' schemas) implementable by reusing the existing HybridSearch substrate — distinct from A/B, and `filterToolsForContext` is the dead socket (verified zero production callers). Bundled it with §B, flagged the ~10-regression reliability tail (and the native-schema-vs-fenced-prose delivery switch) as the real cost; did not over-promote. - -13. **(E+F) Corroborated E1 with the second MCP server; banked the credential-resolver seam under BYO-subscription; confirmed pinned-facts DEFER.** `integrations-scope` confirmed `hive-mind-mcp-server/src/tools/memory.ts` exposes `save_memory`+`recall_memory` ungated → added "write-implies-read + scope-gated tool registration" as E1's concrete mechanism (verdict unchanged, ADOPT). `mcp-providers` identified the **refreshable runtime-credential resolver seam** (vs static `apiKey`, verified `model-router.ts:8`) as the reusable primitive worth banking while BYO-subscription stays DEFER. `memory-retrieval` confirmed the pinned-facts recall lane is the only delta vs `recallMemory` and moves no lever (memory is free) → DEFER/near-SKIP. - ---- - -## 7. Deep Mechanism Appendix — what's actually hard to replicate - -The deep mechanism-trace pass surfaced the genuinely non-trivial engineering behind the picks above — the "why this took a real team to build" evidence for the founder. Each is clean-room-portable as *knowledge*, never as AGPL code. - -1. **Calibrated memory-bandwidth tok/s model with a harmonic CPU-offload blend** (`fit.py`). `raw_tps = (bw/model_gb)·0.55`; when a model spills to RAM, `eff_bw = 1/(frac/cpu_bw + (1-frac)/gpu_bw)` so the slow CPU portion dominates as it grows — **empirically calibrated** ("DeepSeek-Coder-V2-Lite Q4_K_M light offload → ~59 t/s est vs 59.8 measured"). You can read the formula; you cannot fake the calibration. (§B core.) -2. **Per-vendor hardware-detection bug graveyard** (`hardware.py`, ~900 LOC). WSL PATH holes hiding `nvidia-smi`; driver-mismatch string disambiguation; Grace-Blackwell unified-memory `[N/A]`; Strix Halo BIOS UMA carveout (`mem_info_vis_vram_total`, must not cap at system RAM); Apple `recommendedMaxWorkingSetSize` fractions; Windows WMI 32-bit `AdapterRAM` 4 GB cap → registry `qwMemorySize`. Each line is a fixed bug — the multi-week reliability tail behind §B (port as a staged checklist). -3. **Serving-path realism** (`fit.py`/`models.py`). It models *what actually serves on what*: vLLM/SGLang can't shard GGUF → single-GPU VRAM for GGUF, full multi-GPU for AWQ/GPTQ; consumer RDNA → GGUF-only; Apple/Windows → GGUF-only; multi-GPU dense → BF16 default. Operational ecosystem knowledge, not spec sheets. (§B serve-gating.) -4. **Taint-preservation through message-normalization** (`llm_core.py:1334` + `_escape_guard_markers`). Carries `trusted=False` THROUGH the lossy role-alternation merge: an untrusted predecessor forces a synthetic assistant boundary turn instead of concatenation, so the normalization that re-fuses turns can't erase the data/instruction boundary. Everyone wraps; almost nobody preserves the taint across the pass that silently undoes it. (§C concept.) -5. **Reboot-durable event-counter sharing cron's `next_run` + a model-slot semaphore** (`event_bus.py:99-105`, `task_scheduler.py`). Counter reset + `next_run=now` persisted to the DB *before* the in-memory dispatch, so a restart mid-queue replays through the ordinary poll; pure-code reactions bypass the `Semaphore(1)` that serializes LLM reactions. (§4 cost-safe event-trigger design.) -6. **Per-query tool-retrieval hardened against ~10 named regressions + a native-schema-vs-fenced-prose delivery switch** (`tool_index.py`, `agent_loop.py`). Word-boundary keyword hints (not substring — "fix"/"serve"/"reply" must not fire inside "prefix"/"observe"/"replying"), structural regexes, continuation-topic inheritance, a tiny ALWAYS_AVAILABLE floor, and a per-endpoint switch because Ollama small models emit one native-tool token then stop (#1567). The de-risk layer is the hard part, not the embedding retrieval. (§B-adjacent concept.) -7. **Refreshable runtime-credential resolver seam** (`endpoint_resolver.py` + `chatgpt_subscription.py`). A provider credential as a *refreshable OAuth session* — JWT-`exp` decode + skew, per-auth-id refresh lock (no double-refresh / reuse-burn), reauth/ratelimit/notfound taxonomy — vs Waggle's static `apiKey` string. The reusable primitive under BYO-subscription (§4 / delta 13). -8. **Embedding-lane fingerprint-gated re-embed with rollback** (`embedding_lanes.py`). A sha256 fingerprint of `lane|url|model|dim` detects an embedding-config change, then preserves docs, recreates the collection, and re-embeds — **rolling back to the old vectors if the re-embed write fails**. The reusable lesson for when a Waggle user swaps embedding model (sqlite-vec also fixes dimension on first insert). Memory-store hardening, not a headline lever. diff --git a/docs/analysis/odysseus-impl-plan-2026-06-28.md b/docs/analysis/odysseus-impl-plan-2026-06-28.md deleted file mode 100644 index 66bf6ef..0000000 --- a/docs/analysis/odysseus-impl-plan-2026-06-28.md +++ /dev/null @@ -1,37 +0,0 @@ -# Odysseus Adoption — Implementation Plan (2026-06-28) - -Source brief: `docs/analysis/odysseus-adoption-2026-06-28.md`. Branch: `codex/fix-ai-os-proof-plumbing`. -AGPL: every port is clean-room TS (concept/knowledge only — no odysseus code, no binary). - -## Phase 1 — high-confidence ADOPTs (this arc · all TDD-able · file-disjoint) - -| # | Item | Lever | Files (primary) | Tier | Effort | -|---|---|---|---|---|---| -| 1 | **§A Email→memory harvest** (outlook) | moat | `packages/agent/src/connectors/outlook-connector.ts` (+ mirror gcal/github `harvestAction`); wired via existing `connector-harvest.ts` | PRO | S | -| 2 | **§B-budget adaptive input-token budget** | proxy-cost | `packages/server/src/local/routes/chat.ts:~1254` pass `maxContextTokens` override (window·0.85, clamp, conservative-on-unknown); helper `compute_input_token_budget` clean-room in agent | all | S | -| 3 | **§E1 memory-mcp read-only scope-gate** | moat hygiene | `packages/memory-mcp/src/index.ts`, `packages/hive-mind-mcp-server/src/tools/memory.ts` — scope-gated tool registration + write-implies-read | all | S | -| 4 | **§D1 skill hygiene judge** | upgrade-trigger | `packages/server/src/local/routes/skills.ts` + reuse `packages/agent/src/judge.ts`; advisory flag → usage sidecar (no SKILL.md churn) | all | S | -| 5 | **§C untrusted-content wrapper + THREAT_MODEL.md** | moat-harden + KVARK | new `packages/agent/src/untrusted-context.ts`; apply at `tool-executor.ts:114` (post-scan); investigate taint-preservation in message assembly; `THREAT_MODEL.md` | all | M | - -**Gate before commit:** `npx tsc --noEmit` on shared/core/agent/server (+ memory-mcp, hive-mind-mcp-server) · `vitest run` on every touched package + new tests · multi-lens review (security + ts + founder-bar) · 0 regressions vs touched-area baseline. - -## Phase 2 — L-effort builds (staged) - -| # | Item | Status | Notes | -|---|---|---|---| -| 6 | **§B Cookbook ranking engine** | ✅ SHIPPED (`e46ff6b0`) | clean-room TS port of `fit.py` math (pure fns → TDD): quant bytes/param, MoE active-param, harmonic CPU-offload tok/s, composite score, serve-path gating. Then **staged detection** (NVIDIA `nvidia-smi` + Apple + basic-RAM first; long tail iteratively, as a checklist). Replaces `basicModelRecommendations` in `local-inference.ts`. | -| 7 | **§D2 PRO autonomous skill-audit loop** | ✅ SHIPPED (this commit) | `skill-audit{,-store}.ts` (synth→run→judge→rewrite→retry), `skills-audit.ts` route (PRO + vault-key gated), GET `/api/skills` badge merge + staleness-on-read, `SkillRow` "verified · NN%" badge + per-row Verify trigger (`adapter.auditSkills`). **Advisory-by-default**: `autoRewrite`/`autoDemote` OFF, fail-safe taxonomy (a flaky judge can never mint a false badge nor demote a good skill). Reuses `LLMJudge` + `demoteSkillToDraft` (single active/draft owner); fences skill content via the §C `untrustedContextWrapper`. 87 tests; tsc 0 ×3. | -| 8 | **§B-adjacent per-query tool selection** | ⏸ DEFER (per brief) | reuse HybridSearch lane as tool retriever; the dead `filterToolsForContext` is the socket; port the ~10-regression de-risk layer. The brief explicitly DEFERs this (§B-adjacent, "do not over-promote") — the reliability tail is the real cost. Revisit as a deliberate local-model arc. | - -### §D2 open items (founder decisions / follow-ups, non-blocking) -- **F3 (founder call):** "verified" is a same-model self-grade (the user's one key synthesizes the task, runs the skill, and grades it). Defensible (catches gross brokenness; the card shows confidence %, not a bare check) but consider relabel ("self-check passed") OR adversarial held-out test + a different model class. Brief names it "verified", so kept as-is pending a call. -- **F5 / restore coupling:** `restoreSkillToActive` doesn't reset the audit badge's `consecutiveFails` → a restored skill can re-demote on the next confident fail. Benign while `autoDemote` defaults OFF. -- **T3 (TOCTOU):** `recordAuditBadge` read-modify-write isn't linearizable under concurrent same-skill POSTs (safe direction: missed increment → no false demote). Single-user/sequential-batch makes it a non-issue today. -- **F8 (pre-existing):** `skills.ts` CRUD `onChange` reloads from `loadSkills` (drafts included), not `loadActiveSkills` — a demoted draft re-enters the live prompt until the next hygiene/audit run. Out of D2 scope. - -## Method - -1. **Design (workflow, parallel):** per Phase-1 item → exact edits + failing tests + risks (grounded in real files). -2. **Implement (main tree, sequential, TDD):** test-first, targeted `tsc`+`vitest` after each. -3. **Review (workflow, parallel):** security-reviewer + typescript-reviewer + founder-bar/correctness. -4. **Fix → full gate → confirm → commit per phase.** No commit until gate + user confirm. diff --git a/docs/analysis/openhuman-adoption-2026-06-28.md b/docs/analysis/openhuman-adoption-2026-06-28.md deleted file mode 100644 index da379f5..0000000 --- a/docs/analysis/openhuman-adoption-2026-06-28.md +++ /dev/null @@ -1,173 +0,0 @@ -# OpenHuman → Waggle OS: Prioritized Adoption Report (Hardened, Final) - -## 1. Framing & Honest Verdict - -OpenHuman is a genuine mature peer — Rust core, real memory substrate, shipped voice/meet/screen surfaces. So the question is not "is it serious," it's the founder's bar: does any item move a Waggle-specific lever — **KVARK funnel, the memory+harvest moat, the skills/connectors upgrade trigger, or Waggle-funded proxy cost** — or is it the same "nice but not differentiating" class the founder just rejected wholesale (Local-Agent-Studio)? - -**Where OpenHuman is genuinely ahead (verified against grounding):** -- **Pre-LLM per-tool-result compression** (TokenJuice). Confirmed gap: tool output is appended to the messages array *verbatim* (`agent-loop.ts:511` `r.content`; `tool-executor.ts:161-166` raw result returned, no compaction). Waggle only compresses *after* the conversation crosses 50% (`context-compressor.ts`). -- **Capability-aware model routing.** Confirmed: `resolveUsableModel` (`model-availability.ts:86-109`) is provider-*readiness* fallback only; `capability-router.ts` routes tool **names** to sources, not **tasks** to model classes. No "lightweight → cheap, reasoning → frontier" policy exists. -- **Scheduled auto-fetch connector→memory loop.** The grounding flags this as *"the ONLY significant gap in the memory substrate"* — cron infra (`cron-store.ts`) and harvest (`harvest/pipeline.ts`, pull-only) both exist but are never wired together. -- Idle background cognition (Subconscious), trigger triage, memory-diff — real, but each carries a real-cost or prerequisite problem (below). - -**Where Waggle already matches or leads (do not touch):** -- **Memory substrate** — hierarchical trees (`wiki-compiler`), Obsidian/Notion export, 4-profile RRF + reranker + chunk-level scoring (`search.ts`/`scoring.ts`), KG bridge. This is the LoCoMo-87.66-SOTA moat; at-parity-or-ahead on every memory item. -- **Approval gate** (`confirmation.ts` — risk taxonomy + autonomy tiers + never-autopass blacklist) — *more* sophisticated than OpenHuman's. -- **Warm-start memory** (`orchestrator.recallMemory`, Hermes `session-start`), cron/automations, iteration-budget, loop-guard, awareness, Composio + 30 connectors, vault, Hive DS — all present. - -**Does anything clear the bar? Yes — three items, heavily scope-cut, not the draft's three:** - -1. A **pure-code tool-result compression subset** (JSON-table crusher + live search dedup) — a clean, zero-added-cost margin lever that reuses `dedup.ts`. -2. **Deterministic capability-aware routing** of *known-lightweight internal calls* to Haiku-on-proxy / local — a real proxy-cost lever that works even for a vanilla FREE user with no Ollama. -3. **PRO-gated auto-fetch connector→memory** — the *only* item that touches the actual memory+harvest **moat** rather than just margin; the grounding calls it the sole substrate gap; gating to PRO makes it simultaneously a **tier trigger** and **cost-safe**. - -**What I cut from the draft as still-too-loose:** the token-aware-truncation **LLM-summarization fallback** (largely redundant with existing message-level compression, and summarizing-on-truncation can *add* budget-model proxy cost on the very FREE/TRIAL tier it claims to protect — a hard slice is free); the **standalone "savings metering" ADOPT** (an internal `cost-tracker` accumulator is fine; a user-facing "we saved you N tokens" panel is exactly the nice-but-not-differentiating scope creep the founder rejects); and the routing layer's **arbitrary-user-task complexity classifier** (needs its own classifier = cost + risk; the deterministic internal-call subset captures most of the win with none of it). - -Honest bottom line: **two tightly-scoped cost levers + one PRO-gated moat-deepener, with metering folded in as internal telemetry. Defer four real-but-blocked items behind explicit triggers; skip the rest.** Resist the Rust engine, the 96-rule overlay, the ML compressor, the mascot, the Meet agent. - ---- - -## 2. Adoption Matrix - -| Capability (OpenHuman) | Waggle status | Verdict | Impact | Effort | Strategic fit | -|---|---|---|---|---|---| -| Per-result: JSON-table crusher (pure code) | none (verbatim) | **ADAPT** | M–H* | S | cost lever | -| Per-result: live search-result dedup/merge | partial (ingest-only) | **ADAPT** | M | S | cost lever | -| Per-result: token-aware truncation (no LLM) | partial (char-only) | **ADAPT (minor)** | L–M | S | cost lever | -| Per-result: LLM-summarization-on-truncation fallback | partial (msg-level only) | **DROP→DEFER** | L | M | redundant + can add cost | -| Content-aware kind classifier (deterministic, feeds crusher) | none | **ADAPT** | — | S | cost lever (input only) | -| Capability-aware routing — known-lightweight internal calls → Haiku/local | partial (readiness-only) | **ADAPT** | H | M | cost lever | -| Capability-aware routing — arbitrary user-task complexity | partial | **DROP** | M | M | speculative (classifier cost) | -| Privacy-required-on-device flag | none | **ADAPT (bundle w/ routing)** | L | S | KVARK narrative | -| Savings tracking / cost attribution | none | **ADOPT (internal only)** | L | S | instrumentation | -| Auto-fetch connector→memory loop (PRO-gated, dedup-capped) | partial (cron infra, no job type) | **ADOPT** | M–H | M | **moat + tier trigger** | -| Trigger triage pipeline (drop/ack/react/escalate) | missing (event triggers deferred C24) | **DEFER** | H | L | blocked on webhook infra | -| Subconscious idle cognition + durable per-thread goal | partial (read-only daemons) | **DEFER (cost-negative)** | M | L | burns proxy $ on free tier | -| Taint-origin background safety | partial (autonomy tiers exist) | **DEFER (bundle)** | L | S | polish | -| MCP live registry discovery (Smithery) | static 200+ + Composio on-demand | **DEFER (near-SKIP)** | L–M | M | redundant w/ Composio | -| Memory-diff (git-backed change tracking) | missing | **DEFER** | M | L | `compliance/` already covers audit | -| SuperContext first-turn scout | **has** (warm-start) | **SKIP** | — | — | redundant | -| Trees / Obsidian / scoring / E2GraphRAG | **has / ahead** | **SKIP** | — | — | redundant w/ SOTA moat | -| Pluggable external memory backend | partial (export-only) | **SKIP** | — | — | KVARK does sovereign on-prem | -| 90k-entry skills aggregation | curated marketplace | **SKIP** | — | — | cannibalizes tier trigger | -| Native voice (STT/TTS + lip-sync) | missing | **SKIP** | — | — | off-brand (B2B cockpit) | -| Desktop mascot (Rive) | missing | **SKIP** | — | — | off-brand | -| Google Meet agent (CEF/CDP) | missing | **SKIP** | — | — | multi-quarter, fragile, diff product | -| Screen intelligence (macOS Vision + Ollama) | partial (browser only) | **SKIP** | — | — | macOS-only, commodity | -| iOS companion / 18 messaging channels | missing | **SKIP** | — | — | mobile v2+; off-funnel | -| OS keyring | **has** (`vault.ts` AES-256-GCM) | **SKIP** | — | — | vault better for server/KVARK | -| Theme Studio | **has** (Hive DS tokens) | **SKIP** | — | — | brand consistency intentional | -| Kanban / approval / cron / iteration-budget / loop-guard / awareness | **has** | **SKIP** | — | — | already shipped | - -\* *Impact is workload-dependent: high for tool/connector-heavy sessions (JSON list responses, web research); low for memory-recall-dominated sessions. Stated honestly, not oversold.* - ---- - -## 3. ADOPT / ADAPT Specs - -### A. Tool-Result Compression — pure-code subset only (cost lever) - -**What to build:** one pure-TS module `packages/agent/src/tool-output-compressor.ts`, invoked in `tool-executor.ts` **between** `tool.execute()` and the return, under a hard contract — **never enlarge output, never throw, fall through to passthrough; passthrough below a ~2KB gate** (exactly TokenJuice's guard). Two compressors plus a deterministic kind-classifier. Explicitly **reject** tree-sitter, the 96-rule overlay, ModernBERT, and CCR retrieval markers. - -1. **JSON-table crusher** — array-of-objects → pipe-delimited table; force-keep head/tail rows + any row containing `error`/`panic` or a numeric outlier (>2σ). Pure `JSON.parse` + format; ~95% reduction on API list responses. **No LLM.** -2. **Live search-result dedup** — call the trigram fuzzy-dedup already in `harvest/dedup.ts` (75% threshold) on `web_search` snippets before formatting. The logic exists; it is simply never invoked on real-time results today. **No LLM.** -3. *(minor)* **Token-aware truncation** — replace the blunt 10K-char cut in `web_fetch` (`system-tools.ts:701-730`) with a token-estimated budget so the cap is consistent across prose/code/JSON. **No LLM.** - -**Explicitly NOT building:** the LLM-summarization-on-truncation fallback. It is largely redundant with the existing message-level summarizer (`context-compressor.ts` at 50%, `messages-compressor.ts` with `COMPACTION_PROMPT`), and replacing a free hard-slice with a budget-model call **adds** proxy cost on FREE/TRIAL — net-positive only when a large result is followed by many turns. If data-loss complaints actually appear, revisit then. - -**Files:** new `packages/agent/src/tool-output-compressor.ts`; insert at `tool-executor.ts:161`; `system-tools.ts:701-730` (web_fetch path); reuse `packages/hive-mind-core/src/harvest/dedup.ts`. - -**Tier:** ON for all tiers, ungated — pure margin protection where Waggle funds the proxy. - -**Cost/security:** Net reduction, zero added LLM cost. Only risk is over-compression hiding signal — mitigated by the force-keep rule + never-enlarge contract. Compressed output still passes the existing `scanForInjection()` (already runs post-tool). - -### B. Capability-Aware Routing — deterministic internal-call subset (cost lever) - -**What to build:** route a **fixed allowlist of known-lightweight internal calls** — the compaction summarizer, the kind-classifier from §A, tool-name selection, short structured-extraction — to the cheapest ready class: **Haiku on the built-in Anthropic proxy** by default, **local Ollama** when configured. No new classifier; the call sites are known a priori, so routing is deterministic and low-risk. - -**Why this is a real FREE-tier lever:** the built-in proxy is Anthropic-only, so the universal win is **Haiku-on-proxy for lightweight work** (~10–12× cheaper than Sonnet, far cheaper than Opus) — it materializes for a vanilla FREE user with *no* local model. Ollama/on-device is the bonus for configured users. - -**Bundle the `privacyRequired` flag:** forces on-device, no cloud fallback. This is the only piece with a KVARK-funnel angle — surface as a TEAMS/ENTERPRISE-flavored capability ("sensitive tasks never leave the machine"), reinforcing the sovereign narrative with zero KVARK work. Keep it honest: it's a narrative asset, not KVARK itself. - -**Explicitly NOT building:** classification of *arbitrary user-task* complexity — that needs its own (cost-bearing) classifier and risks mis-routing real reasoning to a weak model. The deterministic internal-call subset captures most of the savings with none of the risk. - -**Files:** extend `model-availability.ts:86-109` (`resolveUsableModel` gains a `class` arg); `routes/litellm.ts` (already aggregates 13 providers incl. Ollama); add a model-capability dimension alongside the source dimension in `capability-router.ts`. Quality fallback: if a local result looks like a refusal/garbage, retry on cloud — unless `privacyRequired`. - -**Tier:** routing-to-cheap universal; `privacyRequired` surfaced as a paid-tier capability. - -**Synergy:** B is the prerequisite that makes item C (auto-fetch) cost-safe — its extraction step routes here. - -### C. Auto-Fetch Connector→Memory Loop — PRO-gated (moat + tier trigger) - -**What to build:** a `connector_fetch` cron job type wiring the existing scheduler to the existing harvest pipeline, on a **frequency-capped** schedule (daily, not 20-min), so a user's mind stays current without manual re-harvest. This is the *only* item touching the actual memory+harvest moat — a mind that silently stays fresh is stickier (deeper lock-in) than one that goes stale. - -**Why it clears the bar where metering doesn't:** the grounding names this *the* substrate gap; the infra already exists; and **PRO-gating resolves every objection at once** — it removes FREE proxy exposure, turns "your mind stays fresh automatically" into a concrete **upgrade trigger**, and deepens the **moat** for paying users. Triple fit (moat + tier trigger + cost-safe) — the most on-strategy item in this report. - -**Cost is bounded, not open-ended:** harvest's `harvestSetHash` skips unchanged sources (steady-state cost is only incremental new data), and the extraction LLM routes through §B to the budget model. The expensive first ingest stays user-triggered. - -**Files:** add job type in `packages/core/cron-store.ts`; wire execution in `routes/automations.ts`; invoke `packages/hive-mind-core/src/harvest/pipeline.ts`; gate via tier check. - -**Tier:** PRO+ only. Do **not** ship on FREE. - -### (folded in) Savings telemetry — internal only - -Extend `cost-tracker.ts` (per-model pricing already lives there) with a `tokensSaved` / `by_compressor` / `by_model` accumulator to validate A and B internally. **No user-facing "we saved you N tokens" panel** — that is speculative scope creep. Build only enough to prove the cost arc to the founder. - ---- - -## 4. SKIP / DEFER (one-line reasons) - -**SKIP:** -- **SuperContext first-turn scout** — redundant; Waggle warm-starts memory synchronously before the LLM (`orchestrator.recallMemory`, Hermes `session-start`). A scout sub-agent adds a round-trip for marginal gain. -- **Memory substrate (trees / Obsidian / scoring / E2GraphRAG / pluggable backend)** — at-parity-or-ahead; the SOTA-benchmarked moat. Pluggable backend is a real enterprise-sync gap, but that's precisely what KVARK's sovereign on-prem covers; desktop is local-first by design. -- **90k skills aggregation** — a free external firehose undercuts the curated marketplace that *is* the upgrade trigger. -- **Voice + lip-sync / Rive mascot** — off-brand for a B2B cockpit + demand-gen funnel; OpenHuman's own analysis calls them commodity. -- **Google Meet agent** — multi-quarter Rust CEF/CDP build, breaks on every Meet UI change, different product than a memory cockpit. -- **Screen intelligence** — macOS-only, Ollama-heavyweight, commodity OCR+vision; computer-use can wait. -- **iOS companion / 18 messaging channels** — mobile is v2+; consumer chat platforms are off-funnel. -- **OS keyring** — `vault.ts` (AES-256-GCM, icacls-hardened) is already stronger for server/Docker/KVARK; keyring is end-user convenience, not a moat. -- **Theme Studio** — Hive DS brand consistency is a deliberate moat; user theming dilutes it. - -**DEFER (real, but gated):** -- **Trigger triage pipeline** — adopt the *design* (drop/ack/react/escalate on a fast model) only once the event-trigger/webhook layer it depends on actually exists (C24 is explicitly schedule-only v1). Blocked on a prerequisite, not on merit. -- **Subconscious idle cognition + durable per-thread goals + taint-origin** — genuine capability gap, but idle agent loops **burn Waggle-funded proxy on FREE/TRIAL** — actively *against* the cost discipline that justifies this whole report. Defer until there's a PRO tier-trigger case *and* a quiet-tick/local-eval zero-cost model; that cost model is the real prerequisite. -- **MCP live registry discovery** — near-redundant with Composio's on-demand discovery (grounding: Composio "exceeds static-only registries"). Revisit only if catalog staleness becomes a stated sales objection; no evidence it is today. -- **Memory-diff (git-backed change tracking)** — a genuinely moat-adjacent idea for a memory product, but L effort and `compliance/` already covers audit/EU-AI-Act; fold into a future compliance sprint. - ---- - -## 5. Ranked Top Recommendations - -The bar culls hard. Three items clear it — ranked by strength of case, with scope cut to the bone: - -1. **PRO-gated auto-fetch connector→memory (§3.C).** The only item touching the actual **memory+harvest moat**, not just margin. Grounding-flagged as the sole substrate gap; infra already exists (`cron-store` + `harvest/pipeline`); PRO-gating makes it cost-safe **and** a tier trigger in one move. Highest strategic ceiling. M effort; depends on connectors being connected, so size it as a deliberate PRO-feature bet, not a quick win. - -2. **Tool-result compression — pure-code subset (§3.A).** Lowest effort/risk, cleanest pure-margin cost lever. Verified gap (`agent-loop.ts:511` verbatim append). JSON-table crusher + live search dedup, both **zero added LLM cost**, reusing `harvest/dedup.ts`. Compounds across accumulating turns. **Scope discipline is the whole game: ship the crusher + search dedup + token-aware truncation; reject tree-sitter, the 96-rule overlay, the ML compressor, CCR, and the LLM-summarization fallback.** - -3. **Deterministic routing of internal-lightweight calls (§3.B).** Complementary cost lever via **Haiku-on-proxy** (works for vanilla FREE users, no Ollama needed), and the enabler that makes #1's extraction step cheap. Bundle the `privacyRequired` on-device flag as a free KVARK-sovereignty narrative asset. - -**Folded in, not headlined:** internal savings telemetry via `cost-tracker.ts` — build enough to prove #2/#3, no user-facing panel. - -**Everything else: defer behind explicit triggers (triage, Subconscious, MCP discovery, memory-diff) or skip.** Do not let OpenHuman's impressive-but-off-strategy surfaces (Meet, mascot, voice, screen, mobile, 90k skills) pull scope — real engineering, not Waggle's funnel. - ---- - -## 6. Critique Deltas (what I changed vs the draft and why) - -1. **Split the compression layer; dropped the LLM fallback.** The draft bundled a genuine zero-cost win (JSON crusher + trigram search dedup, both pure code) with **token-aware-truncation-with-LLM-summarization**. I demoted the summarization fallback to DEFER because it is (a) largely redundant with Waggle's *existing* message-level compression (`context-compressor.ts` at 50%, `messages-compressor.ts`), and (b) cost-perverse on the target tier — a hard slice is free, a budget-model summary spends proxy tokens, net-positive only for long post-result conversations. The ruthless cut sharpens the rec to its zero-added-cost core. - -2. **Demoted "savings metering" from a co-equal top-3 ADOPT to internal telemetry.** A user-facing "we saved you N tokens" panel is exactly the nice-but-not-differentiating scope creep the founder rejects. Kept only the near-free internal `cost-tracker` accumulator needed to validate the arc. This freed the #3 slot for a real moat item. - -3. **Elevated auto-fetch connector→memory from mid-DEFER to ADOPT (PRO-gated).** This is the biggest change and the one place I make the *strongest* case. The grounding names it the **sole** substrate gap; it's the only candidate touching the actual **memory+harvest moat** rather than margin; PRO-gating eliminates the FREE cost exposure the draft worried about *and* converts it into a **tier trigger**. Triple strategic fit beats every cost-only item. The draft's cost objection is over-stated: `harvestSetHash` bounds steady-state cost, and routing (rec B) makes extraction cheap. - -4. **Scoped routing down to deterministic internal calls; cut the task-complexity classifier.** The draft proposed `classifyTaskComplexity(intent)` over arbitrary user tasks — that needs its own cost-bearing classifier and risks mis-routing real reasoning. I kept only the deterministic allowlist (summarizer, kind-classifier, tool-selection → Haiku/local), and made explicit that **Haiku-on-built-in-proxy** (not Ollama) is the universal FREE-tier lever — the draft over-weighted Ollama, which requires user setup most FREE users won't have. - -5. **Corrected a file pointer.** `agent-loop.ts:504` → **`:511`** per the authoritative grounding ("line 511, r.content added verbatim"). - -6. **Re-characterized MCP live discovery as near-redundant with Composio.** Grounding states Composio on-demand discovery "exceeds static-only registries," so Smithery live discovery is closer to SKIP than DEFER — kept DEFER but flagged the redundancy and the lack of any evidence catalog staleness is a real objection. - -7. **Sharpened Subconscious as cost-negative.** The draft deferred it neutrally; I flagged that idle background loops *burn the Waggle-funded proxy on the exact moat tiers*, cutting directly against the cost discipline that justifies the rest of the report — so it's not just "later," it's "not on FREE, ever, without a zero-cost tick model." - -8. **Reframed the honest verdict.** Replaced the draft's "one cluster of three small modules (compression + routing + metering)" with the more accurate and more strategic framing: **two tightly-scoped cost levers + one PRO-gated moat-deepener (auto-fetch), metering folded in.** Same restraint, but the third item now touches the moat instead of being instrumentation. - -9. **Held all SKIPs.** Re-tested every SKIP (voice, mascot, Meet, screen, mobile, keyring, Theme Studio, pluggable backend, 90k skills, scout, substrate) against the bar — all correctly skipped; no false negatives to rescue. \ No newline at end of file diff --git a/docs/audits/2026-05-29-prod-readiness/REPORT.md b/docs/audits/2026-05-29-prod-readiness/REPORT.md deleted file mode 100644 index fe5bc07..0000000 --- a/docs/audits/2026-05-29-prod-readiness/REPORT.md +++ /dev/null @@ -1,162 +0,0 @@ -# Waggle OS — Production-Readiness Hardening Audit - -**Date:** 2026-05-29 -**Scope:** Shippable product surface — sidecar (packages/server), frontend (apps/web), Tauri glue (app/), and shipped dependencies (packages/shared, packages/core / hive-mind-core, packages/agent). -**Method:** Build/test/lint gates + multi-perspective verified findings (refuted findings already dropped upstream). Verdicts: confirmed (verified end-to-end), unverified (plausible, evidence cited, not independently re-walked in this synthesis pass). - ---- - -## 1. Executive Summary - -The product builds and the unit suite is green (6627/6629; the 2 non-passes are one network-timeout infra flake and one skip). However, the audit surfaces a systemic input-validation gap on the sidecar HTTP boundary and a LAN-exposure-by-default posture that together undermine the project security contract (CLAUDE.md section 7). - -The single most serious issue (R1-001) is a complete LAN auth-bypass: the sidecar binds to 0.0.0.0 by default and the unauthenticated /health endpoint returns the very bearer token used to authenticate every other route. Any co-located host can read the token and drive the full authenticated API (backup exfiltration, chat, file r/w, data erase). - -Three themes dominate beyond that: - -- Boundary validation is patchy by construction: a full set of Zod schemas exists in packages/shared/src/schemas.ts but is never wired in (R6-007), so every fs-write route (chat, tasks, ingest, documents) hand-rolls ad-hoc checks and several omit the existing assertSafeSegment guard, yielding path-traversal write sinks (R6-001, R6-002, R1-004, R2-005). -- Billing path has revenue/entitlement defects: /api/stripe/sync upgrades tier without verifying payment (R1-002), and checkout ignores billingPeriod and the 4-var price contract entirely (R1-003). -- Desktop lifecycle + resilience gaps: orphaned sidecar on exit (R7-002), inert watchdog (R7-003), wrong updater repo slug so auto-update 404s forever (R7-004), no top-level React error boundary (R4-001), and a memory-moat regression where harvest cognify indexes with a MOCK embedder, poisoning semantic recall (R3-001). - -Gate blockers for ship: lint is non-functional (no root flat config) and tauri-tsc fails (empty app/src/). Neither is a source defect, but both mean two of the five quality gates currently provide zero signal. - -Counts (post-dedup): 15 critical/high, 30 medium, 17 low. Recommended fix campaign is 6 phases, front-loaded on the network-exposure + traversal cluster. - ---- - -## 2. Gate Results - -| Gate | Status | Summary | -|---|---|---| -| build-web (npm run build) | PASS | Vite v5.4.21, 2373 modules, 28.51s, exit 0. Advisory warnings only (CSS @import order, dynamic/static import chunking, 1.68 MB main chunk over 500 kB). Does NOT typecheck the sidecar. | -| build-packages (npm run build:packages) | PASS | tsc --build chain (shared, core, agent, server), exit 0, zero diagnostics. Verified with --force clean rebuild + forced server rebuild (covers dirty telegram.ts). Genuine green. | -| lint (npm run lint) | FAIL (config) | ESLint 9.39.4 aborts (exit 2): no root eslint.config flat file and no .eslintrc. eslint . lints zero files. Only apps/web/eslint.config.js exists. Broken gate wiring, not a code defect. | -| test (npm run test -- --run) | PARTIAL | Vitest 3.2.4, exit 1. 6627 passed / 1 failed / 1 skipped (462 files). Sole failure = marketplace-sync.test.ts network timeout, infra flake. | -| tauri-tsc (tsc -p app/tsconfig.json) | FAIL (config) | TS18003 No inputs were found: app/src/ has zero .ts/.tsx files. Contradicts CLAUDE.md section 2. No Tauri TS glue to typecheck. | - ---- - -## 3. Findings (severity-sorted, post-dedup) - -Merges performed (kept highest severity + strongest verdict, unioned evidence): -- R1-001 superset of R2-001 (0.0.0.0 bind + /health token leak) -- R1-004 superset of R6-003 (ingest workspaceId traversal) -- R2-003 superset of R1-006 (CORS startsWith bypass) -- R2-006 superset of R1-013 (/api/debug/logs leak) -- R2-002 superset of R1-007 + R6-004 (OAuth reflected XSS; CSP mitigates to low) - -| ID | Sev | Surface | File:line | Issue | Fix | Verdict | -|---|---|---|---|---|---|---| -| R1-001 (+R2-001) | critical | sidecar bootstrap + /health | service.ts:202, index.ts:278,2329, security-middleware.ts:236,278-283 | Default 0.0.0.0 bind + auth-exempt /health returns wsSessionToken = full LAN auth bypass | Bind 127.0.0.1 default (widen only on WAGGLE_HOST); stop returning wsToken from /health | confirmed | -| R1-002 | high | stripe/sync.ts:37-74 | POST /api/stripe/sync | Upgrades tier without checking payment_status; metadata fallback unlocks PRO/TEAMS for unpaid session | Require payment_status paid (or complete + active sub) before updateUserTier | confirmed | -| R1-003 | high | stripe/checkout.ts:29-50 | POST checkout | Ignores billingPeriod; always single legacy price so annual billed at monthly; or NO_PRICE_CONFIGURED under 4-var contract | Select price by billingPeriod from 4-var env w/ legacy fallback (mirror tierFromPriceId) | confirmed | -| R1-004 (+R6-003) | high | ingest.ts:149-154,420-433 | POST /api/ingest | addToFileRegistry builds fs path from unvalidated body workspaceId so traversal write | Resolve-and-confirm under dataDir/workspaces (mirror allowedRoot guard) | confirmed | -| R2-003 (+R1-006) | high | index.ts:1904 | CORS plugin | origin.startsWith() so attacker prefix host passes; localhost auth-exempt returns responses | ALLOWED_ORIGINS.includes(origin) exact match | confirmed | -| R3-001 | high | harvest.ts:409-419 | harvest cognify | Hard-codes mock embedder; vector-indexes harvested frames with meaningless vectors so unretrievable by semantic search | Reuse fastify.embeddingProvider; skip indexing when provider is mock | confirmed | -| R4-001 | high | App.tsx:13-29 | app/route shell | No top-level error boundary; any render throw white-screens whole app | Wrap Routes/Index + Desktop chrome+overlays in recoverable boundary | confirmed | -| R6-001 | high | chat.ts:530-546, chat-persistence.ts:21-46 | POST /api/chat | Unvalidated workspace/session from body so sessions jsonl traversal write/read on hot path | assertSafeSegment(workspace/session) before persist, 400 | confirmed | -| R6-002 | high | tasks.ts:26-50,92-137 | /api/workspaces/:id/tasks | Unvalidated :id in tasksPath/writeTasks so mkdir+write traversal | assertSafeSegment(id) at top of each handler | confirmed | -| R7-002 | high | lib.rs:132-140 | Tauri lifecycle | No RunEvent::Exit handler; tray Quit unwired so sidecar orphaned, holds port 3333, next launch fails | RunEvent::Exit handler kills child regardless of frontend | confirmed | -| R7-003 | high | service.rs:228-231 | watchdog | Detects downed sidecar, emits restart event, never respawns; listener unwired so permanent backend disconnect | Self-healing watchdog: clear dead Child + spawn_service_sync | confirmed | -| R7-004 | high | tauri.conf.json:56-59 | updater | Endpoint points to marolinik/waggle (actual repo waggle-os) so latest.json 404s every check | Correct slug in tauri.conf.json + 3 manifest URLs in release.yml | confirmed | -| R8-001 | high | LauncherApp.tsx:365,447-462; tool-launcher.ts:275-291 | AI-OS hooks | LAUNCH_COHORT routes cursor/claude-desktop hook actions to binless stub packages so npx always fails | HOOKS_COHORT = claude-code only; gate runHookCommand + buttons on it | confirmed | -| R9-002 | high | protobufjs@7.5.4 | hive-mind-core + apps/web | Below 7.5.5 fix for critical RCE GHSA-xq3m-2v4x-88gg (9.8); ships via transformers + posthog OTLP | overrides protobufjs >=7.5.5 (targeted) | confirmed | -| R9-005 | high | js-cookie@3.0.5 via @clerk/shared | apps/www auth + server clerk | Prototype-hijack cookie-attr injection GHSA-qjx8-664m-686j (7.5) on auth surface | Bump @clerk so @clerk/shared resolves js-cookie >3.0.5 | confirmed | -| R1-005 | medium | backup.ts:377-381 | restore | startsWith(dataDir) w/o sep so sibling-dir escape; write uses unvalidated targetPath | Guard resolved===root or startsWith(root+sep); write to resolved | confirmed | -| R2-006 (+R1-013) | medium | index.ts:1920-1937 | /api/debug/logs | Returns vault key NAMES + 500 audit rows; no same-origin gate (recon, esp. w/ R1-001) | isLocalOrigin guard; drop providerKeys; global setErrorHandler | confirmed | -| R3-002 | medium | subagent-orchestrator.ts:154-169 | subagent | Circular-dep failure mints NEW worker id so duplicate orphan + permanent pending ghost | Reuse stepWorkerIds.get(name); update in place | unverified | -| R3-003 | medium | retry-policy.ts:72-81 | 429 retry | HTTP-date Retry-After so parseInt NaN so setTimeout(0) so hammers endpoint, burns retries | Number.isFinite guard + default fallback | unverified | -| R3-004 | medium | frames.ts:251-267 | harvest dedup | findDuplicate SELECTs + SHA-256-hashes 500 rows per insert so O(n*500) blocks event loop | Indexed content_hash column; or per-batch hash set + skipDedup | unverified | -| R4-002 | medium | BackupApp.tsx:93 | backup UI | Restore button has no onClick/handler, dead control on data-safety app | Wire to file-picker POST /api/restore, or remove | confirmed | -| R4-003 | medium | useChat.ts:130-133 | chat stream | msgs last role unguarded; empty array mid-stream so render crash | Guard empty array return early | unverified | -| R4-004 | medium | HarvestTab.tsx:523-538 | harvest UI | async onClick no try/catch so unhandled rejection, stale row, no feedback | try/catch + toast; fetchSources after success | unverified | -| R4-005 | medium | ChatApp.tsx:520-534,1102 | chat pin | handlePin async no error handling fire-and-forget so silent pin failure | try/catch + toast | unverified | -| R4-006 | medium | BackupApp.tsx:18-22 | backup metadata | No response.ok before json(); non-2xx so misleading No backups yet | Check r.ok; error+retry panel | unverified | -| R4-007 | medium | ConnectorsApp.tsx:66-67,87-102 | connectors | Single shared tokenInput across connectors (wrong-cred footgun); connect failure console-only | Reset inputs on expanded change; toast in catch | unverified | -| R4-008 | medium | ChatApp.tsx:644-651 | chat file-drop | Ingest failures swallowed to console; user believes file ingested | Accumulate failures, success/failure toast | unverified | -| R6-005 | medium | browse.ts:26-94 | /api/browse/local + mkdir | Resolves any absolute path; enumerates host FS + mkdir anywhere; no confinement | Same-origin gate; rate-limit mkdir; no extension origins | unverified | -| R6-006 | medium | workspace-context.ts:254,313,350 | context helper | Session-dir path from unvalidated workspaceId so existence/count probe | assertSafeSegment(workspaceId) at callers/helper | unverified | -| R6-008 | medium | server tests (chat/tasks/ingest) | tests | No traversal test coverage for unguarded fs-write routes; green unit test gives false assurance | Per-route 400-on-traversal tests + assert no out-of-root file | unverified | -| R5-001 | medium | ContextMenu.tsx:32,43-82 | context menu | Enter indexes actionItems (skips disabled) but render index counts disabled so wrong item fires | Compute currentActionIndex with same filter | unverified | -| R5-002 | medium | TelegramDigestCard.tsx:136,160 | light-mode | Hardcoded text-emerald-400 saved label fails contrast on cream surface | Semantic success/status-healthy token | unverified | -| R5-003 | medium | LauncherApp.tsx:289-392 | light-mode | Dark-only bg-950 banners + pale text-300 so black islands on cream | Semantic adaptive tokens (bg-destructive/10 etc.) | unverified | -| R1-008 | medium | cron.ts:20-33,73-76 | GET /api/cron | Unguarded JSON.parse(job_config); one corrupt row so 500 breaks ENTIRE list | try/catch fallback to empty obj + log | unverified | -| R1-009 | medium | connectors.ts:16-24 | health probe | No try/catch around registry.healthCheck() so unhandled 500 + raw error leak | try/catch to status error or 502 | unverified | -| R1-010 | medium | agent-run.ts:38-40,85-92 | /api/agent/run | Module-level LiteLLM URL/key snapshot ignores built-in-proxy fallback so broken for Anthropic-only default | Read litellmUrl/key from server state at request time | unverified | -| R1-011 | medium | webhook.ts:22-32,73-124 | config write | Non-atomic read-modify-write of config.json + processed-events; concurrent so lost tier / double-process | Atomic temp+rename + mutex; idempotency in SQLite | unverified | -| R1-012 | medium | files.ts:117-120,312-319 | upload | getRawBody buffers entire body before size check so multi-GB OOM | Abort stream over MAX_UPLOAD_SIZE in data handler; or fastify multipart | unverified | -| R2-004 | medium | security-middleware.ts:276-294 | auth | No Host-header validation; DNS rebinding defeats localhost-trust exemption | Host allowlist; pair with 127.0.0.1 bind | unverified | -| R2-005 | medium | documents.ts:36,68,88 | documents | Unvalidated :id so workspaces//documents.json out-of-root write/read | assertSafeSegment(id) + (name) | unverified | -| R9-001 | medium | drizzle-orm@0.44.7 | sidecar/worker/launcher | GHSA-gpj5-g38j-94v9 SQLi via identifiers (<0.45.2); no sql.identifier sink, Postgres-only | Bump >=0.45.2 (major; re-tsc) | confirmed | -| R9-003 | medium | fastify@5.8.4 | sidecar HTTP | GHSA-247c body-schema bypass via Content-Type space (<=5.8.4); few routes use Fastify schema | Bump >5.8.4 (clears fast-uri); re-tsc + tests | confirmed | -| R9-004 | medium | clerk/fastify@3.1.5 | team auth | GHSA-w24r authz bypass org/billing/reverification (<=3.1.15); affected helpers not invoked | Bump >3.1.15 | confirmed | -| R9-006 | medium | lodash@4.17.23 | apps/web recharts + sidecar archiver | code-injection via template (<=4.17.23); template not reachable (hygiene) | overrides lodash >=4.17.24 | confirmed | -| R9-007 | medium | xmldom@0.8.11 via mammoth | sidecar docx ingest | XML injection via CDATA serialization (<0.8.12) | overrides xmldom >=0.8.13; verify mammoth | unverified | -| R9-008 | medium | tmp@0.2.5 via exceljs | sidecar xlsx export | Path traversal via prefix/postfix (<0.2.6) | overrides tmp >=0.2.6 | unverified | -| R9-009 | medium | fastify/static@9.0.0 | sidecar static | dir-listing traversal + route-guard bypass via encoded sep (<=9.1.0) | Bump >9.1.0; verify assets served | unverified | -| R2-002 (+R1-007,R6-004) | low | oauth.ts:190-194,268-286 | OAuth callback | Reflects untrusted query + upstream body into unescaped HTML; CSP script-src self blocks exec so markup/phishing only | HTML-escape (escapeXml exists); or return JSON | confirmed | -| R4-009 | low | useAgentStatus.ts:15-40 | hook | Initial poll() setState after unmount (no cancelled guard) | cancelled flag checked after await | unverified | -| R4-010 | low | ChatWindowInstance.tsx:194-203 | hook | fetchTeam lacks cancelled guard its siblings have so setState after unmount | if cancelled return after getTeamMembers | unverified | -| R3-005 | low | search.ts:172-178 | keyword search | Comment promises LIKE fallback that does not exist; FTS5 parse error so 0 hits, false no-memory | Implement LIKE fallback OR fix comment | unverified | -| R3-006 | low | sse-parser.ts:108-122 | streaming | Tool-call deltas missing index collapse to 0 so parallel tool args concatenated/corrupt | Synthetic index per distinct tc.id | unverified | -| R3-007 | low | knowledge.ts:131-135 | entity search | searchEntities does not escape LIKE metachars so percent/underscore wildcard, literal percent unfindable | Escape metachars + ESCAPE clause | unverified | -| R3-008 | low | agent-loop.ts:256-308 | abort | Signal checked only between turns; fetch + reader do not forward so in-flight stream runs to completion | Pass signal to fetch + check in read loop | unverified | -| R5-004 | low | UpgradeModal/TrialExpiredModal/EraseDataDialog | a11y | Modals lack role=dialog/aria-modal, Escape, focus trap | Add role/aria-modal + Escape + focus (reuse pattern) | unverified | -| R5-005 | low | AppWindow.tsx:283-300 | window chrome | Minimize + Maximize identical bg-primary/40 dots, indistinguishable without hover | Distinct colors or lucide icons | unverified | -| R5-006 | low | WorkspaceBriefing.tsx + 60 files | light-mode | 324 hardcoded Tailwind palette colors never respond to light theme; heading contrast borderline | Theme-aware tokens; convert load-bearing text first | unverified | -| R7-005 | low | lib.rs:83 | shortcut | register(shortcut) propagates error in setup() so Ctrl+Shift+W collision crashes on launch | Log + continue on Err | unverified | -| R7-006 | low | tauri.conf.json:4 / Cargo.toml:3 | version | Drift: tauri.conf 0.2.0 vs Cargo 0.1.0 | Sync Cargo.toml | unverified | -| R7-007 | low | tauri.conf.json:41 | CSP | img-src self data https so any-HTTPS image exfil channel | Scope img-src to icon CDN + self + data | unverified | -| R7-008 | low | tauri.build-override.conf.json:5-9 | signing | macOS ad-hoc sign so Gatekeeper block / updater cannot verify (needs macOS check) | Developer ID + notarization before GA | unverified | -| R8-002 | low | tool-launcher.test.ts / tools-routes-launch.test.ts | test-gap | Hook tests assert npx SHAPE but mock execution so binless-stub failure invisible to CI | Static cohort/bin test | unverified | -| R8-003 | low | tool-launcher.ts:36-38 | doc-drift | Module doc claims cursor/claude-desktop hooks supported; only claude-code functional | Amend comment | unverified | - ---- - -## 4. Themes - -1. T1 - Network exposure & auth boundary (headline risk): R1-001, R2-003, R2-004, R2-006, R6-005. -2. T2 - Sidecar input-validation gap at fs boundary: R1-004, R1-005, R6-001, R6-002, R6-006, R6-007, R6-008, R2-005, R2-002. -3. T3 - Billing correctness & revenue integrity: R1-002, R1-003, R1-011. -4. T4 - Memory/agent core correctness: R3-001..R3-008. -5. T5 - Frontend resilience & error feedback: R4-001..R4-010. -6. T6 - Desktop packaging & lifecycle: R7-002..R7-008. -7. T7 - AI-OS hook cohort mismatch: R8-001, R8-002, R8-003. -8. T8 - Backend error-handling robustness: R1-008, R1-009, R1-012. -9. T9 - Dependency supply-chain hygiene: R9-001..R9-009. -10. T10 - Light-mode finish & a11y polish: R5-001..R5-006. - ---- - -## 5. Proposed Remediation Phases - -### Phase 1 - Network exposure & auth boundary (CRITICAL/HIGH) -Closes: R1-001, R2-003, R2-006, R2-004, R6-005 -Cluster: local/index.ts + security-middleware.ts + cors-config.ts. Default-bind 127.0.0.1, remove wsToken from /health, exact-match CORS, Host-header allowlist, gate /api/browse/* + /api/debug/logs to local origin. -Verify: tsc -p packages/server; new tests (/health no wsToken, non-local origin rejected, traversal-prefixed origin rejected); manual LAN curl shows no token. - -### Phase 2 - fs-boundary input validation (HIGH/MEDIUM) -Closes: R6-001, R6-002, R1-004, R1-005, R2-005, R6-006, R6-007, R6-008 -Cluster: wire assertSafeSegment / resolve-and-confirm + existing Zod schemas across chat, tasks, ingest, documents, backup restore, workspace-context. -Verify: new per-route traversal tests (R6-008) asserting 400 + no out-of-root write; packages/server Vitest green; tsc -p packages/server. - -### Phase 3 - Billing correctness (HIGH) -Closes: R1-002, R1-003, R1-011 -Cluster: packages/server/src/stripe/. Payment-status gate on sync, billingPeriod-aware 4-var price selection, atomic + locked config writes. -Verify: sync rejects unpaid (402); checkout selects annual price; NO_PRICE_CONFIGURED only when truly unset; webhook.test.ts green; tsc. - -### Phase 4 - Memory/agent core + AI-OS hooks (HIGH/MEDIUM) -Closes: R3-001, R8-001, R8-002, R8-003, R3-002, R3-003, R3-004 -Verify: harvest cognify skips/real-provider test; static cohort/bin test (R8-002) red to green; packages/agent Vitest; tsc -p packages/agent. - -### Phase 5 - Desktop lifecycle, updater & frontend resilience (HIGH/MEDIUM) -Closes: R7-002, R7-003, R7-004, R7-005, R7-006, R4-001, R4-002, R4-003, R4-004, R4-005, R4-006, R4-007, R4-008, R1-008, R1-009, R1-010, R1-012 -Verify: cargo build (app/src-tauri); manual kill so no orphaned node.exe on 3333, updater hits waggle-os URL; npm run build + Playwright (error boundary catches forced throw, Restore works). - -### Phase 6 - Dependency hygiene, security polish & light-mode/a11y (MEDIUM/LOW) -Closes: R9-002, R9-005, R9-001, R9-003, R9-004, R9-006, R9-007, R9-008, R9-009, R2-002, R7-007, R7-008, R5-001, R5-002, R5-003, R5-004, R5-005, R5-006, R3-005, R3-006, R3-007, R3-008, R4-009, R4-010 -Prefer targeted root overrides for transitive advisories (avoid blanket npm audit fix). Semantic-token swaps for light-mode; a11y modal pattern reuse. -Verify: npm audit clears protobufjs/js-cookie/lodash; npm run build:packages + npm run build green after bumps; tsc -p packages/server after drizzle/fastify majors; light-mode spot-check. - -### Cross-cutting gate repair (alongside Phase 1) -lint and tauri-tsc gates are non-functional. Add root eslint.config.js (or scope lint to apps/web) and populate/point app/tsconfig.json at real Tauri TS or remove the dead gate, so future phases get real verification signal. diff --git a/docs/audits/2026-06-01-full-repo-verification-sweep.md b/docs/audits/2026-06-01-full-repo-verification-sweep.md deleted file mode 100644 index 9da0eee..0000000 --- a/docs/audits/2026-06-01-full-repo-verification-sweep.md +++ /dev/null @@ -1,75 +0,0 @@ -# Full-Repo Verification Sweep — 2026-06-01 - -**HEAD:** `f72cda5` (main, pushed) · **Baseline:** `ebf1bc0` (S4 handoff, last known-green) -**Method:** 3 race-safe parallel dimensions (full vitest · repo lint · serialized tsc/build) → per-dimension failure triage. Workflow `full-repo-verification-sweep`, 5 agents, ~8.5 min. - -## Verdict: ✅ GREEN for all session work — **0 session-induced failures** - -The 4 merges since baseline — litellm credential-pool (`..8cdc929`), Wave 2/3 hook ports (`..1219e14`), OQ-6 dedup (`..b1c633b`), OQ-4 hermes compact-on-stop (`..f72cda5`) — introduced **no regressions**. Every failure observed is either missing local infra or a pre-existing install-tree quirk; none touch code changed this cycle. This closes the verification-scope gap that let the `placeholder-audit` regression slip last session (the full repo suite + all tsconfigs + repo lint were checked, not just affected packages). - -| Dimension | Raw result | Triage verdict | Session-induced | -|---|---|---|---| -| **lint** | `npm run lint` exit 0, **0 errors / 0 warnings** repo-wide | CLEAN | 0 | -| **unit-tests** | **7034/7035 non-skipped pass** (506/526 files); 19 files + 1 test fail | INFRA | 0 | -| **typecheck-build** | `build:packages` OK · `build` OK · **29/30 tsconfigs clean** | PRE_EXISTING | 0 | - -## Dimension detail - -### lint — CLEAN -`eslint .` exits 0 with 0 errors and 0 warnings. Confirms the S4 lint-debt burndown (`no-explicit-any` → 0 repo-wide, all rules ratcheted to ERROR) is holding. - -### unit-tests — INFRA (no code fix) -The pure-unit surface (7034 tests, 506 files) is fully green and exercises the session code. The 19 failed files + 1 failed test + 2 unhandled rejections are **all** deterministic missing-infra failures — this verifier has no PostgreSQL (host `5434`) and no Redis (host `6381`), the docker-compose services that every server/worker/integration suite hard-requires. Re-confirmed via `Get-NetTCPConnection` (nothing on 5434/6379/6381) and isolated re-run (identical `ECONNREFUSED:6381` — **not flaky**). - -Root cause for the server suites: `buildServer()` registers `redisPlugin` (eager `new Redis()` ×2) before `wsGateway`; with Redis absent the register-chain stalls on ioredis retries and Fastify's plugin-load timeout fires, mis-reporting `wsGateway` as "did not start" in `server.test.ts`. All other server/worker failures are `beforeAll(buildServer)` timeouts or direct Postgres/Redis `ECONNREFUSED`. - -Affected (all infra, all `touched=0` or type-only edits in range): `packages/server/tests/{server,auth,audit,cron,proactive,db/schema}`, `…/daemons/{hive-mind,scout,subconscious}`, `…/routes/{agents,analytics,resources,tasks,teams,knowledge,messages}`, `…/ws/gateway` (integration block), `packages/worker/tests/job-processor` (worker package untouched all session). - -**To make this dimension pass:** `docker-compose up -d postgres redis` (+ drizzle migrate) before the sweep, OR scope the no-Docker green-gate to the pure-unit surface and exclude the documented infra-dependent suites. This matches how the landing commits were verified (server suite 1745 pass / 1 skip *with* infra running). - -### typecheck-build — PRE_EXISTING (no code fix) -`npm run build:packages` (tsc --build shared→core→agent→server) and `npm run build` (apps/web) both pass; `dist/` emits clean. 29 of 30 tsconfigs typecheck clean. - -The lone failure: `tsc --noEmit -p apps/web/tsconfig.node.json` → `vite.config.ts(7,29) TS2769` (defineConfig overload mismatch). Root cause is a **dual-vite install** — root `vite@8.0.14` (hoisted from tailwindcss/vite + plugin-react + vitest) vs `apps/web` `vite@5.4.21` — producing two incompatible vite type trees. Provenance proves pre-existing: the failing line dates to the 2025-01-01 Lovable scaffold (`1bc8809`); `vite.config.ts`, `tsconfig.node.json`, and `apps/web/package.json` are **byte-identical baseline→HEAD**; no vite version changed in range; deterministic (not flaky). **The real build is unaffected** — `npm run build` uses `tsconfig.app.json` and runs `vite.config.ts` via esbuild, never tsc. `tsconfig.node.json` is an extra exhaustive check the sweep ran; it is not in CLAUDE.md's verification commands nor any CI/build path. - -## Informational (surfaced during triage — not failures) - -1. **Clerk auth fix is sound** (`83edcf5`, this cycle): `(clerk as any).verifyToken(token)` → standalone `verifyToken(token, { secretKey })` in `ws/gateway.ts` + `plugins/auth.ts`. This is the production bug fix noted in the S4 handoff — `verifyToken` is a standalone `@clerk/fastify` export, not a `ClerkClient` method (the old cast would `TypeError` at runtime). On the request-time auth path (not plugin-startup), strict-tsc-clean, no test impact (tests swap `_authHandler` / `setWsTokenVerifier`). Confirmed beneficial. - -## Optional future housekeeping (NOT blocking, NOT session work) -- **Dedupe vite to one major** across root + `apps/web` so the extra `tsconfig.node.json` check passes (dependency-tree maintenance). -- **No-Docker CI gate:** formalize a vitest project/exclude split so the pure-unit surface gates green without Postgres/Redis, and the infra suites run only in a Docker-provisioned lane. - -## Conclusion -Main at `f72cda5` is green for everything shipped this cycle. The only red is environmental (no local Docker infra) or pre-existing (dual-vite), with documented evidence and zero attribution to session commits. No code changes required. - ---- - -## Addendum — CI health (GitHub Actions `ci.yml`), discovered 2026-06-01 - -Investigating the no-Docker test gate surfaced that **CI's `test` job has been RED on every push** (and is a multi-layer breakage, all pre-existing): - -- **L1 — `npm install` → `EBADPLATFORM`** *(FIXED — PR #5, branch `fix/ci-cross-platform-install-and-unit-gate`)*. Root `package.json` pinned 4 Windows-only native binaries (`@rolldown/binding-win32-x64-msvc`, `@swc/core-win32-x64-msvc`, `lightningcss-win32-x64-msvc`, `sqlite-vec-windows-x64`) as **hard** deps, so `npm install` failed on Linux/macOS. Fix: moved them to `optionalDependencies` (npm skips os-mismatched optional deps). Verified on CI: install + tsc + lint + app-tsc now PASS on Linux. -- **L2 — bare `npx tsc --noEmit`**: FINE (root `tsconfig.json` is a near-noop; exit 0). -- **L3 — `npm run lint`**: FINE (0/0). -- **L4 — `npm test` (full vitest, no Docker)** *(unit-gate split landed in PR #5)*: default `npm test` now excludes the 19 Postgres/Redis suites so the gate runs without Docker. - -**Remaining CI-debt (pre-existing, NOT caused by PR #5 — revealed because L1 let tests run for the first time in a while). Full CI-green needs all three:** - -1. **Workspace packages not built before tests** (~23 failures): `ci.yml` runs `npm test` with no prior build, so `@waggle/{shared,hive-mind-core,hive-mind-shim-core,hive-mind-hooks-core,hive-mind-hooks-codex}` fail to resolve their entry (no `dist/`). Locally these resolve only because `dist/` exists from prior builds. Fix options: add a build step in CI, OR add vitest `resolve.alias` → `src` for these packages (mirrors the existing `@waggle/marketplace` alias). Note `build:packages` alone is insufficient — it only builds shared/core/agent/server, not the `hive-mind-*` packages. -2. **Uncommitted seed DB** (~80 failures): the marketplace sync suites `copyfile` `packages/marketplace/marketplace.db`, a gitignored/uncommitted file absent on a fresh CI checkout. Fix: generate the seed in test setup, commit a fixture, or gate these tests. -3. **Tests asserting on local working-tree state** (~4): assertions that `.planning/` exists at repo root and a hive-950 hex allow-list — both depend on gitignored/local-only state absent on CI. Fix: make these robust to a clean checkout, or scope them out of CI. - -### Resolution (PR #5, `fix/ci-cross-platform-install-and-unit-gate`) - -The `test` job is now **GREEN on CI Linux** (workflow conclusion `success`). The 228 pre-existing failures were resolved in layers, all verified on CI: - -1. **Install** — 4 Windows-only natives → `optionalDependencies`. -2. **Workspace resolution** (~23 + cascades) — `vitest.aliases.ts` maps every `@waggle/*` (with a `src/index.ts`) to its `src/` dir in both vitest configs (subpath-safe). -3. **Seed/env fixtures** — excluded `sync-verification` (gitignored 13MB `marketplace.db`); skip the `marketplace.db exists` assertions when absent; fixed the hive-950 backslash allow-list; `.planning` guard tolerates clean checkout. -4. **The final 9** (parallel root-cause) — **2 product bugs** (`backup.ts` excludes the `models/` ONNX cache from backups; `trust-wiring` reads audit via the writer connection, not a fresh WAL reader) + determinism (`EMBEDDING_PROVIDER=mock` test pin; dead-port Ollama; benchmark `emitPreregistrationEvent:false`; codex `skipIf(!BIN_BUILT)`). - -**Residual (non-blocking, pre-existing, follow-up):** -- **`e2e` job "Build frontend"** — `apps/web`'s real tsc build can't resolve dist-exporting `@waggle/*` deps (`@waggle/hive-mind-core`, …) because the e2e job builds only `build:packages` (shared/core/agent/server), not the `hive-mind-*` packages. `e2e` is `continue-on-error` so it does NOT block CI. Fix options: build all imported `@waggle` packages, or add `@waggle/*`→`src` `paths` to `apps/web/tsconfig.app.json` (mirror the vitest aliases) — but validate against the deploy's `build:all` first. -- **Docker infra test lane** (the 19 Postgres/Redis suites) — still local-only via `npm run test:infra`; a Docker-services CI job needs a verified migrate step. -- **dual-vite `tsconfig.node.json`** — pre-existing, not in any build path. diff --git a/docs/audits/2026-06-01-memory-overclaim-investigation.md b/docs/audits/2026-06-01-memory-overclaim-investigation.md deleted file mode 100644 index d5546e8..0000000 --- a/docs/audits/2026-06-01-memory-overclaim-investigation.md +++ /dev/null @@ -1,88 +0,0 @@ -# Memory Over-Claim Investigation — 2026-06-01 - -**Trigger:** The 5-persona human E2E found the agent, on a *fresh* session, claimed -*"I have this from our last session / you're back in context"* and asserted specifics -the persona never stated (Ivan, LoCoMo, 4-month runway, OpenClaw, "227 entities"). -Chen (the careful skeptic) scored trust 1/10 over it. Question: **workspace-memory -framed as session-history, or true confabulation?** - -**Verdict: BOTH — and neither is cross-user data bleed.** The personas ran inside -Marko's own populated `Default / Researcher` workspace, so all recalled data is -legitimately Marko's. The problems are (1) a prompt instruction that frames -workspace memory as *this speaker's* prior conversation, and (2) the LLM -embellishing real recall with invented specifics that the prompt never forbids. - -## Evidence (live workspace on :3333, the exact memory the agent used) - -Dumped all **11 frames** + the **179-entity** knowledge graph and tested every -disputed claim for presence in real memory: - -| Claim the agent made | In real memory? | | -|---|---|---| -| Ivan (owns GPU/H200) | **PRESENT** (frame 6 + entity "Ask Ivan") | real recall | -| Mihail (owns architecture) | **PRESENT** (frame text) | real recall | -| LoCoMo / Mem0 | **PRESENT** (frame text) | real recall | -| H200 / GPU | **PRESENT** | real recall | -| Egzakta, Hermes | entities present | real recall | -| **"4 months runway"** | **ABSENT** from all frames | **confabulated** | -| **"227 entities tracked"** | real count is **179** | **confabulated number** | -| **"OpenClaw + Hermes competitive analysis"** | OpenClaw **ABSENT** in frames | **confabulated** | -| **"our last session" / "you're back in context"** | no *this-speaker* session; prior sessions exist but are the owner's | **framing over-claim** | - -So the recall substrate **works** (it retrieved Marko's real frames). The trust -damage comes from framing + embellishment, not from a broken retriever and not -from one user's memory leaking into another's. - -## Root cause (code) - -`packages/agent/src/orchestrator.ts` → `recallMemory()`, lines ~529-533, injected -into the system prompt every turn: - -``` -# Recalled Memories -These memories were automatically retrieved for the user's current message. -IMPORTANT: Use these to ground your response. Cite them naturally: - "From our previous discussion...", "You mentioned that...", "Based on your workspace context..." -Do NOT ignore relevant memories. Do NOT present memory content as your own reasoning — attribute it. -``` - -Two defects: -1. **Framing:** it instructs the model to cite *workspace* memory as *"From our - previous discussion…" / "You mentioned that…"* — asserting a shared history - with the current speaker that may not exist (first contact, or the memory is - the workspace owner's, not this speaker's). This directly seeds - "welcome back / our last session." -2. **No anti-confabulation guard:** it says "attribute it" but never "state ONLY - what the memories say; don't invent specifics not present." So the model fills - gaps with plausible numbers/names (runway, 227, OpenClaw) and presents them as - recall. - -## Proposed fix (surgical — same block) - -``` -# Recalled Memories -These are facts saved in this WORKSPACE'S memory, retrieved for the user's current -message. They may come from earlier sessions, other sessions, or imported sources — -NOT necessarily from this conversation. -IMPORTANT — ground your response in them, but attribute provenance HONESTLY: -- Say "your saved memory shows…" / "from your workspace notes…". Do NOT say - "from our previous discussion" or "you just mentioned" unless it was actually - said earlier in THIS conversation. -- On the user's first message, do NOT claim continuity ("welcome back", - "as we discussed", "you're back in context") — you have no prior turn yet. -- State ONLY what the memories below actually say. Do NOT invent specifics - (numbers, names, dates, competitors) that are not present — if unsure, ask - rather than assert. -- Do NOT present memory content as your own reasoning — attribute it. -``` - -Expected effect: flips Chen (the fabricated-history failure), de-risks Maya/Sam/Leo -(unverifiable specifics), and keeps the genuine recall that bonded them. Pairs with -the report's fix #1 (auditable memory) and #3 (demote the "Recalled N / Auto-saved N" -chrome). - -## Not a data-bleed (scope note) - -Single-tenant workspace; all data is the owner's. The cross-*user* bleed risk only -arises in shared/team workspaces and was NOT exercised here — flag for a separate -multi-tenant test, but it is not what this run found. diff --git a/docs/audits/2026-06-01-production-readiness-assessment.md b/docs/audits/2026-06-01-production-readiness-assessment.md deleted file mode 100644 index 2a6d130..0000000 --- a/docs/audits/2026-06-01-production-readiness-assessment.md +++ /dev/null @@ -1,117 +0,0 @@ -# Waggle OS — Production-Readiness Assessment - -**Date:** 2026-06-01 -**Commit:** `839d4ce` (main, tree clean except this report + the vision-E2E design doc) -**Method:** 5 parallel auditors (build/tsc, CI/deploy, open-work residuals, test-infra/local-run, vision-E2E design) + independent re-verification of every load-bearing claim against the live repo and the GitHub Actions API. - ---- - -## 1. Bottom Line - -**Waggle OS is NOT production-ready for the desktop-binary / containerized-deploy path.** A single dependency-ordering gap — `build:packages` never builds `@waggle/hive-mind-core` before the packages that hard-depend on it — red-lines the CI e2e job, BOTH Tauri verify jobs (Windows + macOS), and every deploy artifact, while the green CI checkmark on main hides it (the unit-test gate passes only because vitest aliases `@waggle/*` to `src/`). The unit-test suite, tsc gates, lint, and the local web build are genuinely green, and the open-work residuals (§10 #1/#2/#3, OQ-4, OQ-5) are code-complete and test-green — but **the release/deploy plumbing has 6 hard blockers** that must be fixed before any binary or server ship. The gates that remain are: fix the package-build order, make the Dockerfile/render.yaml buildable + add a DB-migration step, then runtime-verify on a real binary. - ---- - -## 2. Production Blockers (must-fix-before-launch) - -> Each blocker re-verified independently. The first is the root cause of four downstream failures. - -### B1 — `build:packages` omits `@waggle/hive-mind-core` → breaks CI e2e + both Tauri verifies + release + deploy *(ROOT CAUSE)* -- **Owner type:** code -- **Evidence:** `package.json` `build:packages = shared→core→agent→server`. `packages/core/package.json` declares `"@waggle/hive-mind-core": "*"`. `packages/hive-mind-core/package.json` exports ONLY `dist/index.js` + `dist/index.d.ts` (no `src` export), its `dist/` is **gitignored** (`.gitignore:11:dist`) and **NOT tracked** (`git ls-files packages/hive-mind-core/dist/` → empty), and it is **never built** by `build:packages`. On a fresh checkout its `dist/` is absent → `tsc --build` of `core` emits `TS2307: Cannot find module '@waggle/hive-mind-core'` (16 errors). **Confirmed live:** Tauri `verify-macos` run `26762292125` on the current HEAD `839d4ce` failed at the `Build packages (shared → core → agent → server)` step with exactly these TS2307 errors (`src/config.ts(4,69)`, `src/compliance/*`, `src/index.ts(81,8)`, etc.). The CI `e2e` job fails identically at its `Build packages` step. *(This is why the BUILD/TSC auditor saw "GREEN locally" — its machine had a stale pre-built `dist/`; on fresh checkout it is RED, which the CI logs prove.)* -- **Why CI looks green anyway:** the unit `test` job passes only because `vitest.aliases.ts` remaps `@waggle/*` → `src/`, sidestepping the missing dist. The `e2e` job is `continue-on-error: true` (`ci.yml:46`), so the workflow reports `success` even though e2e never runs. -- **Fix (verified):** prepend `cd packages/hive-mind-core && npx tsc --build &&` to the `build:packages` script. Re-verified the full corrected chain (`hive-mind-core → shared → core → agent → server`) exits 0 from a clean `dist`. This one change un-blocks e2e, both Tauri verifies, `release.yml`, and any deploy that runs `build:all`. - -### B2 — Tauri `verify-windows` + `verify-macos` both RED (desktop release path broken) -- **Owner type:** code (resolved by B1) -- **Evidence:** `gh run list` (Tauri Build Verification / main / `839d4ce`): `verify-windows=failure`, `verify-macos=failure`. Both die at the `Build packages` step with the TS2307 above — **NOT** at Rust compile / signing / native-deps (the workflow header comment's diagnosis is wrong; it never reaches Rust). `release.yml` (tag-triggered) shares the same `sidecar→core→hive-mind-core` dependency and will fail the same way on a real `v*` tag. -- **Fix:** B1's fix. After it lands, re-run the Tauri verify workflow to confirm it now reaches (and passes) the Rust/Vite/sidecar stages. - -### B3 — Dockerfile is not buildable (three independent breakages) -- **Owner type:** code -- **Evidence:** (1) `Dockerfile:20,57,84` `COPY packages/ui/package.json packages/ui/` — but `packages/ui/package.json` **does not exist** (CLAUDE.md §2: `ui` is not a workspace; confirmed `ls` → no such file) → COPY of a literal missing file fails the build. (2) Root `npm run build` = `cd apps/web && tsc && vite build`, but the Dockerfile only copies `app/` (`:22,:29`), **never `apps/`** → `RUN npm run build` fails (`cd apps/web` not found). (3) No `hive-mind-*` package source/manifest is copied, yet `CMD npx tsx packages/server/src/index.ts` resolves `@waggle/core → @waggle/hive-mind-core` at runtime. -- **Fix:** remove the `packages/ui` COPY lines; copy `apps/` (not just `app/`); copy the `hive-mind-*` packages needed for runtime resolution; build packages (with B1's fix) before `npm run build`. - -### B4 — `render.yaml` builds the wrong directory and serves an empty/stale shell -- **Owner type:** code -- **Evidence:** `render.yaml:16` `buildCommand: npm install && cd app && npm run build` runs `vite build` in `app/`, but **`app/` has no `src/`** (confirmed `ls app/src` → no such file) and `app/index.html` references `/src/main.tsx`. The real UI is `apps/web`. `app/dist` is gitignored and the committed copy is a stale Apr-3 brand shell. `WAGGLE_FRONTEND_DIR=./app/dist` (`render.yaml:28`) → server serves nothing usable. The build also never runs `build:packages`, so the runtime entrypoint hits the same hive-mind-core gap. -- **Fix:** point the build at the repo root `npm run build:all` (which builds packages + `apps/web` → root `/dist`) and set `WAGGLE_FRONTEND_DIR=./dist`. - -### B5 — No DB-migration step in any deploy artifact -- **Owner type:** code -- **Evidence:** `packages/server/src/db/migrate.ts` runs drizzle migrations from `./drizzle` (migrations present: `0000_wild_glorian.sql`, `0001_redundant_sauron.sql`). Grep of `Dockerfile`, `render.yaml`, `docker-compose.production.yml` for `migrat|seed` → only a code-comment match; no `startCommand`/`CMD`/entrypoint runs `migrate`. A fresh Postgres (render-provisioned or compose) starts with no schema → team-server queries fail at runtime. -- **Fix:** add a migrate step to the container entrypoint / render `startCommand` (e.g. `tsx packages/server/src/db/migrate.ts && `). - -### B6 — `render.yaml` provisions Postgres+Redis but runs the local SQLite sidecar entrypoint (infra mismatch + CORS fail-closed gap) -- **Owner type:** decision (which deployment target?) then code -- **Evidence:** `render.yaml:17` `startCommand: npx tsx packages/server/src/local/start.ts --skip-litellm` → the **desktop/SQLite single-user sidecar**, not the team Postgres server (`packages/server/src/index.ts`, what the Dockerfile `CMD` runs). render injects/provisions managed Postgres+Redis (`render.yaml:32-40`) that the chosen entrypoint largely bypasses; team features (Clerk-gated, Postgres-backed) are not actually served. Separately, `config.ts:17-35` throws `'CORS_ORIGIN ... required in production'` when `NODE_ENV=production` (set in `render.yaml:21`) and unset — and **render.yaml defines no `CORS_ORIGIN`** (docker-compose.production.yml correctly enforces it at `:47`), so the team-server path would crash on boot. -- **Fix:** decide the render target. If it is the team server, switch `startCommand` to the Postgres entrypoint, add `CORS_ORIGIN`, and wire migrate (B5). If render is meant to host the local sidecar demo, drop the managed Postgres/Redis to stop paying for bypassed infra. - ---- - -## 3. E2E Prerequisite Status - -**The E2E vision harness depends on `npm run build` (apps/web → `/dist` on :3333) succeeding so the Playwright `webServer` can boot.** - -- **Local status: GREEN.** `npm run build` (`cd apps/web && tsc --noEmit -p tsconfig.app.json && vite build --outDir ../../dist --emptyOutDir`) exits 0; `dist/index.html` is freshly written (Jun 1 17:00). `apps/web` imports only `@waggle/shared` (grep: 4 hits, zero `@waggle/hive-mind-core` — the only hive-mind references are comments in `LauncherApp.tsx`), and `@waggle/shared/dist` exists, so the apps/web build itself is not blocked by B1. -- **CI status: the e2e job's `npm run build` is currently UNREACHABLE** because the step before it — `npm run build:packages` (`ci.yml:66`) — fails at B1 (TS2307). So in CI today, the frontend never builds and Playwright never runs (the job is `continue-on-error`, so this is silently masked). -- **Net:** the E2E prerequisite is **green on a machine with a pre-built `hive-mind-core/dist`, but red on a clean checkout / in CI** until B1 is fixed. The handoff's "e2e frontend build blocked" note is real for CI; it just localizes to `build:packages` (B1), not to `apps/web` tsc. -- **Exact fix:** apply **B1** (build `hive-mind-core` first in `build:packages`). After that, the e2e job reaches `npm run build` (already green) and Playwright can boot the :3333 server. No change to `apps/web` tsconfig is needed. - ---- - -## 4. Non-Blocking Residuals - -**Open-work items (all code-complete + test-green; remaining work is platform/binary-blocked or doc-only):** -- **OQ-4 hermes compact-on-stop — DONE.** `compact-on-stop.ts` (opt-in `WAGGLE_HERMES_COMPACT_ON_STOP`, time-gated, save-first + fail-open); 26/26 tests, package tsc exit 0. -- **§10 #3 Wave 2/3 hooks — DONE, but CLAUDE.md prose is STALE.** codex/cursor/hermes/openclaw (+codex-desktop re-export) are real implementations with full adapter/install/uninstall/verify trees; 203/203 tests. Only `claude-desktop` remains `export {}` — a deliberate MCP-only deferral (pinned by `tests/placeholder-audit.test.ts` EXPECTED_MARKER_COUNT=1). **Doc fix (non-code):** CLAUDE.md §10 #3 (line 516) still lists all 6 packages as stubs — update to reflect only claude-desktop remains. -- **§10 #1 Spawn-Agent P36 + P35 model fallback — DONE in code** (`Dock.tsx`/`Desktop.tsx` wiring; `SpawnAgentDialog.tsx` 3-tier LiteLLM→runtime→provider-catalog fallback, commit `14942be`). Residual: runtime verify on a clean Tauri install (**platform-blocked**). -- **§10 #2 light-mode finish — DONE structurally** (semantic-token migration complete; the 5 `hive-950` hits are legit token defs/usages, no literal-color rot). Residual: BootScreen + header visual polish needs a binary to eyeball (**validation-blocked**). -- **OQ-5 OpenClaw live-install — genuinely platform-blocked.** Code path implemented + tested in tmp dirs (15 tests incl. fail-open); needs a real OpenClaw gateway to verify installed-handler dep resolution. Does not block a claude-code-first Waggle launch. - -**CI / test-infra follow-ups (do not block launch, but should be tracked):** -- **CI e2e job is `continue-on-error: true`** — it cannot fail the pipeline. After B1, consider flipping it to blocking so a broken frontend build surfaces. -- **No Docker-infra CI lane.** Zero workflows declare `services: postgres` or run `test:infra`; Postgres/Redis/MinIO/S3 code paths are unverified by CI. `docker-compose.yml` provides the infra locally but CI never spins it up. -- **Dead/misleading test config:** `apps/web/playwright.config.ts` imports the uninstalled `lovable-agent-playwright-config` (would throw on load; apps/web has no specs) — delete it. `playwright-e2e.config.ts` (the `test:e2e` lane) has **no `webServer`** — it silently times out unless a server is pre-started on :3333; document or add a webServer block. -- **Committed test cruft:** `tests/visual/r2-uat-mega.spec.ts:3` has a dead hardcoded 64-hex token (rotate if it was ever real); `tests/login-flow.spec.ts` targets the wrong port (:8083) with a stale Clerk flow — fix or delete. -- **Build polish (cosmetic):** vite warns on `@import` order + a 1.74 MB JS chunk (>500 kB advisory). Non-fatal. - -**Benchmark arcs (out of launch scope):** C-3 full GAIA-2 Phase 4 (needs Docker + ARE + new adapter strategy; budget recalibrate pending). LoCoMo v5 trio-strict re-judge (~$30, ~2h) is the only remaining step on C-1. - ---- - -## 5. The Vision-E2E Harness Plan - -**Design doc:** `docs/audits/2026-06-01-vision-e2e-harness-design.md` - -**Recommended architecture — Option C (Hybrid).** Playwright deterministically drives and captures every surface (×dark/light) plus the 7 flows, emitting a PNG + sidecar JSON per capture **enriched with objective signals** (console errors via `page.on('console')`, failed network requests, and a Lighthouse contrast/a11y audit on heavy views). A multi-agent Workflow fans out one vision-judge subagent per capture to grade *meaning* against a 5-dimension rubric (`renders_correctly`, `no_error_state`, `flow_completes`, `theme_legible`, plus the objective `no_console_errors`). A reducer cross-checks vision vs objective signals — **a vision-PASS carrying a real console error or a Lighthouse fail is downgraded to FAIL** — and writes one report. This buys A's deterministic, replayable navigation plus a deterministic objective floor so a plausible-looking-but-broken screenshot can't fool the gate (defense in depth). Build on the existing `tests/visual` + `tests/e2e` helpers and the root `playwright.config.ts` `webServer` block (:3333, `reuseExistingServer`, `WAGGLE_TRUST_LOCALHOST=1`) — not greenfield. (Rejected: Option A lacks the objective floor; Option B's live agentic drive is non-deterministic → a flaky CI gate.) - -**Scope.** ~19 surfaces (7 core views: chat/memory/events/capabilities/cockpit/mission-control/settings; plus room/agents/files/approvals/vault/connectors/marketplace/timeline/backup/telemetry/governance/dashboard; plus overlays: onboarding, Ctrl+K search, spawn-agent, persona switcher, shortcuts help, upgrade modal) × **dark + light** themes, plus **7 end-state-graded flows** (onboarding, chat round-trip, memory browse, spawn agent, persona switch, marketplace, settings tabs). Total ≈ **52 vision judgments/run**. Deterministic entry via `/?skipOnboarding=true&tier=power`; light theme via `data-theme='light'` on `` (the old views.spec.ts dark/light-class toggle is stale and must not be the model). FAIL on any vision dimension at confidence ≥0.7 or any hard signal; WARN at 0.4–0.7 (routes to human, never auto-blocks CI). - -**Coverage gap this fills:** today exactly ONE spec (`tests/visual/views.spec.ts`) does true pixel-diff (drift-only, brittle), three specs capture screenshots but assert nothing about their content, and **zero** tests semantically judge "does it actually look and work right." A visually-broken-but-DOM-present screen passes the current suite. The vision harness is net-new. - -**The one key decision (needs the user's call):** **Does the Chat round-trip flow grade against a REAL LLM reply or a gracefully-handled degraded state?** Verified ground truth (`service.ts:217-258`): under the harness's own `--skip-litellm` server with no Anthropic key, `/api/chat` resolves the provider to `health:'degraded'` and returns NO assistant message. -- **Path 1 (degraded, CI default):** "completes" = user message renders + send works + missing-LLM state handled gracefully (clear "configure API key" prompt, not a blank window/stack trace). Deterministic, free, CI-safe — but does not verify a real answer. -- **Path 2 (real LLM, opt-in `--live-llm`):** inject a real key so chat returns an actual reply and vision grades a coherent assistant message. Highest fidelity, but non-deterministic, costs money, and the CI gate must hold a secret. -- **Recommended:** Path 1 as the CI gate, Path 2 as an opt-in pre-release lane. (Secondary, can default: run target = local Chromium against built `apps/web` on :3333.) - ---- - -## 6. Recommended Sequence - -1. **Fix B1 (the root cause).** Prepend `cd packages/hive-mind-core && npx tsc --build &&` to `build:packages`. Verified: the full corrected chain exits 0 from a clean dist. This un-blocks CI e2e, both Tauri verifies, `release.yml`, and `build:all`. *(code — ~5 min)* -2. **Re-run CI + Tauri verify on the B1 commit.** Confirm e2e's `build:packages`→`npm run build` now reaches Playwright, and that both Tauri verifies now progress past `Build packages` into the Rust/Vite/sidecar stages (and pass, or surface the *real* next failure). *(verification)* -3. **Flip the CI e2e job to blocking** (drop `continue-on-error`) once it's green, so a broken frontend build can never again hide behind a green checkmark. *(decision + code)* -4. **Fix the deploy artifacts (B3–B6) for whichever target ships first:** - - Dockerfile: drop `packages/ui` COPYs, copy `apps/` + `hive-mind-*`, build packages before `npm run build`. - - render.yaml: build via root `build:all`, set `WAGGLE_FRONTEND_DIR=./dist`, add `CORS_ORIGIN`, decide local-sidecar vs team-Postgres entrypoint. - - Add the drizzle `migrate.ts` step to the chosen entrypoint. - *(code + one decision)* -5. **Decide the vision-harness chat-flow path** (Path 1 CI gate + Path 2 opt-in lane — §5). *(decision — blocks the harness build)* -6. **Build the Option-C vision harness** on the existing :3333 webServer + tests/e2e helpers; extract the copy-pasted nav helpers (`gotoDesktop`/`skipOnboarding`/`dismissOverlay`/`openAppViaDock`) into `tests/e2e/_helpers.ts`; delete the dead `apps/web/playwright.config.ts` and fix/remove `login-flow.spec.ts` + the dead token in `r2-uat-mega.spec.ts`. *(code — ~3 sessions)* -7. **Run the vision harness against the local web build**, triage WARN/FAIL, then close the binary-blocked residuals (§10 #1 spawn-agent clean-install, §10 #2 light-mode polish) on a real Tauri build. *(verification — platform-blocked steps last)* -8. **Doc cleanup:** update CLAUDE.md §10 #3 to reflect only `claude-desktop` remains a (deliberate) stub. *(doc)* - ---- - -*Synthesized 2026-06-01 from 5 parallel auditors; every red claim independently re-verified against the live repo (`839d4ce`) and the GitHub Actions API.* diff --git a/docs/audits/2026-06-01-vision-e2e-harness-design.md b/docs/audits/2026-06-01-vision-e2e-harness-design.md deleted file mode 100644 index f62b1c5..0000000 --- a/docs/audits/2026-06-01-vision-e2e-harness-design.md +++ /dev/null @@ -1,145 +0,0 @@ -# Vision-Based E2E Harness — Design - -**Date:** 2026-06-01 -**Status:** DESIGN (read-only analysis; no harness code written yet) -**Author:** audit subagent -**Goal:** ONE comprehensive harness that "fully verifies the platform" using **vision** — a model judging screenshots for *meaning* (not pixel diffs) — built and run via **multi-agent workflows**. - -> This is a design document. It proposes architecture options, picks a recommendation, names the single decision the user must resolve before build, and defines exact scope. It does **not** add test code. - ---- - -## 1. What already exists (verified against the live repo) - -Concrete, so the harness extends reality instead of a remembered shape: - -| Asset | Location | What it gives us | -|---|---|---| -| Visual-regression spec | `tests/visual/views.spec.ts` | 7 views × {dark,light} = 14 **pixel-diff** screenshots; `maxDiffPixelRatio: 0.003` | -| Visual baselines | `tests/visual/baselines/…` (28 dirs present) | Existing PNG baselines for both themes | -| Full product audit | `tests/e2e/full-product-audit.spec.ts` | API-health checks + **dock-open helper** (`openAppViaDock`, handles `Ops`/`Extend` zone trays via `[data-dock-tray]`), console-error capture, per-app text assertions | -| User-journey spec | `tests/e2e/user-journeys.spec.ts` | 12 journeys: nav, sidebar collapse, Ctrl+K palette, theme toggle, chat input, settings tabs, cockpit cards | -| Playwright config | `playwright.config.ts` | `webServer` builds `apps/web` then spawns `npx tsx packages/server/src/local/start.ts --skip-litellm` on `:3333` with `WAGGLE_TRUST_LOCALHOST=1`; `reuseExistingServer: true` | -| Multi-agent primitives | `packages/agent/src/{workflow-harness,workflow-composer,subagent-orchestrator}.ts` | In-product workflow/subagent fan-out (`createHarnessRun`, `advancePhase`, `harnessEvents`) | -| Live MCP browsers | `mcp__plugin_playwright_playwright__*`, `mcp__chrome-devtools__*` | Turn-by-turn drive + `take_screenshot` / `take_snapshot` / `list_console_messages` / `lighthouse_audit` | - -**Gap:** every existing check is either a **pixel diff** (brittle; flags antialiasing, not meaning) or a **substring assertion** (`text.toMatch(/persona|message/i)` — passes on a half-broken screen as long as one word renders). **Nothing judges whether a surface is actually correct, legible, and non-broken the way a human reviewer would.** That is the hole this harness fills. - -### 1.1 Ground-truth facts that constrain the design (verified, correcting stale assumptions) - -- **The real UI is a desktop-OS metaphor**, not a sidebar app. `Desktop.tsx` renders a `Dock` (zones `Ops`/`Extend` open `[data-dock-tray]` portals) + draggable `AppWindow`s. The 7 "views" map to dock apps (`ChatApp`, `MemoryApp`, `EventsApp`, `CapabilitiesApp`, `CockpitApp`, `MissionControlApp`, `SettingsApp`) plus standalone windows (Room, Agents/Personas, Files, Approvals, Vault, Connectors, Marketplace, Timeline, Backup, Telemetry, Governance). -- **Deterministic entry** = `/?skipOnboarding=true&tier=power` — `useOnboarding.ts:32` short-circuits the wizard and sets `tier=power`, unlocking the full dock. `?forceWizard=true` (DEV-only) forces the wizard for onboarding-flow capture. -- **Theme contract** = `document.documentElement` attribute `data-theme="light"`; **dark is the absence of the attribute** (`Index.tsx:11`, `useIsLightTheme.ts:14`, `index.css:140`). The `views.spec.ts` helper that toggles a `dark`/`light` *class* is partly stale and should not be the model for the new harness — set/remove `data-theme` instead. -- **Chat round-trip under `--skip-litellm` does NOT return a real assistant reply.** `service.ts:217-258`: with no LiteLLM and no Anthropic key, provider resolves to `anthropic-proxy` / **`health: 'degraded'`** / `"no API key — configure in Settings"`. So a chat *send* surfaces an error/degraded state, not a model answer. **This is the central design fork (see §5).** - ---- - -## 2. Rubric — what "vision verdict" means - -Each captured surface is graded by a vision model against five dimensions. Output is structured, not prose: - -```jsonc -{ - "surface": "memory:dark", - "verdict": "PASS" | "FAIL" | "WARN", - "confidence": 0.0-1.0, - "dimensions": { - "renders_correctly": { "pass": true, "note": "frame list + search bar laid out, no overlap" }, - "no_error_state": { "pass": true, "note": "no red banner, no 'Something went wrong', no empty stack trace" }, - "flow_completes": { "pass": true, "note": "expected end-state for this step is visible" }, - "theme_legible": { "pass": true, "note": "text/background contrast adequate; no dark-on-dark or white-on-white" }, - "no_console_errors": { "pass": true, "note": "objective signal injected from Playwright/CDP, not vision" } - }, - "evidence_screenshot": "artifacts/memory-dark.png" -} -``` - -Rules: -- **`renders_correctly`**, **`no_error_state`**, **`flow_completes`**, **`theme_legible`** are graded by the **vision model** from the screenshot + a per-surface expectation string. -- **`no_console_errors`** is **not** a vision judgment — it is an objective signal captured by the driver (`page.on('console')` / `list_console_messages`) and merged into the record, filtered for known-benign noise (favicon, 401/404 on optional endpoints, WebSocket sync) as `full-product-audit.spec.ts:312` already does. -- A surface **FAILs** if any vision dimension fails with confidence ≥ 0.7, or any real console error is present. **WARN** for low-confidence (0.4–0.7) vision fails → routes to human spot-check, never auto-blocks CI. -- The vision judge is handed **(a)** the screenshot, **(b)** a one-line expectation ("Memory app: a searchable list of memory frames or a clean empty state"), **(c)** the rubric. It must cite *what it sees* per dimension so verdicts are auditable. - ---- - -## 3. Scope - -### Surfaces (capture matrix) -**7 core views** (dock apps): `chat`, `memory`, `events`, `capabilities`, `cockpit`, `mission-control`, `settings`. -**Dock apps / standalone windows**: `room`, `agents` (Personas), `files`, `approvals`, `vault`, `connectors`, `marketplace`, `timeline`, `backup`, `telemetry`, `governance`, `dashboard` (Home). -**Overlays**: `onboarding wizard` (via `?forceWizard=true`), `global search` (Ctrl+K), `spawn-agent dialog`, `persona switcher`, `keyboard-shortcuts help`, `upgrade modal`. - -### Flows (multi-step, end-state graded) -1. **Onboarding** — wizard step-through to completion (capture each step). -2. **Chat round-trip** — open Chat → type → send → observe response (see §5 fork: real reply vs degraded-state-handled-gracefully). -3. **Memory browse** — open Memory → search → frame list or empty state renders. -4. **Spawn agent** — open Spawn dialog → pick persona → confirm → agent appears in Room/Mission Control. -5. **Persona switch** — open PersonaSwitcher → select → header reflects new persona. -6. **Marketplace** — open Marketplace → browse packs → (install affordance present). -7. **Settings** — open Settings → walk tabs (General/Models/Vault/Permissions/Team/Advanced) → each renders. - -### Themes -**dark** (no `data-theme`) and **light** (`data-theme="light"`) for every surface = full matrix ×2. - -### Rubric dimensions (per surface) -`renders_correctly` · `no_error_state` · `flow_completes` · `theme_legible` · `no_console_errors` (objective). - -**Matrix size:** ~19 surfaces × 2 themes ≈ 38 static captures + 7 flow end-states × 2 themes ≈ 14 flow captures ≈ **~52 vision judgments per full run.** - ---- - -## 4. Architecture Options - -### Option A — Capture-then-judge (Playwright drives, Workflow fans out vision judges) -**Mechanism:** A Playwright spec drives the scripted journey (every surface, both themes, the 7 flows), writing a numbered PNG + a sidecar JSON (`{surface, theme, expectation, consoleErrors[]}`) per capture into `artifacts/`. A separate **multi-agent Workflow** then fans out — one vision-judge subagent per screenshot — each grading against the rubric and emitting the structured verdict. A reducer agent aggregates into a single pass/fail report with confidences. Navigation is 100% deterministic (reuses `openAppViaDock`, the `data-theme` setter, the `?skipOnboarding` entry); meaning is vision-graded; the two phases are decoupled so judging is re-runnable on a frozen capture set without re-driving the browser. -**Pros:** Deterministic, replayable navigation; capture phase is plain Playwright (CI-gateable, runs headless on Linux today); judge phase parallelizes cleanly (N independent subagents, no shared state); a frozen capture set lets you re-grade after rubric tweaks for **$0 browser cost**; objective signals (console/network/lighthouse) attach per surface; failures ship the exact PNG as evidence. -**Cons:** Two-phase orchestration (capture artifact contract must be stable); vision judging has per-screenshot model cost (~52 calls/run); can't react mid-journey to an unexpected modal (a scripted step that mis-navigates produces a "wrong surface" capture rather than self-correcting). -**Effort:** **Medium.** ~1 capture spec (extends existing helpers) + 1 Workflow definition (judge fan-out + reducer) + rubric prompt. ~2–3 focused sessions. - -### Option B — Live agentic drive (agents drive MCP browser turn-by-turn, judge in real time) -**Mechanism:** A coordinator agent drives a live MCP browser (`mcp__plugin_playwright_playwright__*` or `mcp__chrome-devtools__*`) step by step: navigate → `take_screenshot` → judge with its own vision → decide the next action from what it sees (open dock zone, dismiss a modal, retry). No pre-scripted path; the agent explores the surface list and adapts. -**Pros:** Most "agentic" — self-corrects around unexpected overlays/state; closest to how a human QA explores; no capture/judge contract to maintain; can chase a regression it notices ("that looked off, let me re-open it"). -**Cons:** **Least deterministic** — same run can take different paths, so it's a poor CI gate (flaky, non-reproducible verdicts); live browser cost on every step; one MCP browser session is effectively serial (hard to parallelize the way a frozen-PNG fan-out does); harder to attach to the existing `npm run test:visual` lane; debugging "why did it fail" means replaying a non-deterministic trace. -**Effort:** **Medium-High.** Less *code* but more *prompt/loop engineering* to keep it bounded (loop-guard, step budget) and to make verdicts trustworthy. Ongoing cost per run. - -### Option C — Hybrid (Playwright drives + captures + objective signals; vision agents grade meaning) — **RECOMMENDED** -**Mechanism:** Option A's deterministic capture, **enriched per surface with objective signals**: alongside each PNG, capture `console` errors (`page.on('console')`), failed network requests, and a `lighthouse_audit` (a11y/contrast/perf) for the heavy views. The vision Workflow then grades *meaning* while the objective signals grade *facts* — and a surface only PASSes when **both** agree. Vision catches "looks broken / illegible / wrong screen"; Lighthouse + console catch "contrast ratio 1.9:1 / uncaught TypeError / 500 on mount" that vision might rationalize away. The reducer cross-checks: a vision-PASS with a console-error or a Lighthouse-a11y-fail is downgraded to FAIL with both pieces of evidence. -**Pros:** Everything in A, **plus** a deterministic objective floor so the harness can't be fooled by a plausible-looking screenshot; `theme_legible` is corroborated by real contrast numbers, not just the model's eye; objective signals are cheap and CI-safe; gives two independent failure detectors (defense in depth). -**Cons:** Most moving parts (capture + console + network + lighthouse + vision + reducer); Lighthouse adds runtime per surface (budget it to the heavy views, not all 52); slightly more report schema. -**Effort:** **Medium-High** — A's effort + per-surface signal capture (mostly wiring existing CDP/Playwright APIs the repo already imports). ~3 sessions. - ---- - -## 5. The ONE decision the user must resolve before build - -> **Does the Chat round-trip flow grade against a REAL LLM reply, or against a gracefully-handled degraded state?** - -This is forced by ground truth (§1.1): under the harness's own `--skip-litellm` server with no API key, `/api/chat` resolves the provider to **`degraded`** and **returns no assistant message**. So the chat flow's `flow_completes` dimension has two mutually exclusive definitions, and the harness must commit to one before any capture script is written: - -- **Path 1 — Stub/degraded (deterministic, free, CI-default).** "Flow completes" = the user message renders, the send affordance works, and the app handles the missing-LLM state *gracefully* (a clear "configure API key" prompt, **not** a blank window or a stack trace). Fully deterministic, zero LLM spend, runs on CI Linux today. Does **not** verify a real answer renders. -- **Path 2 — Real LLM (high-signal, costs money + a key, flaky).** Inject a real Anthropic key into the harness server so chat returns an actual reply; vision grades that a coherent assistant message rendered. Highest fidelity for the headline flow, but introduces non-determinism (model output varies), per-run cost, and a secret the CI gate must hold. - -A sensible resolution (pending user call): **Path 1 as the CI gate; Path 2 as an opt-in `--live-llm` lane** for pre-release runs. But the user must pick the default before build, because it dictates the chat capture script, the expectation strings, and whether CI needs a secret. - -**Secondary decisions** (lower stakes, can default): **run target** — local Chromium against the built `apps/web` on `:3333` (recommended default; matches existing config) vs the Tauri binary (true shipping surface, but no headless screenshot path on Windows CI) vs CI Linux (the gate); and **capture-vs-live-drive** — already resolved by recommending Option C (capture). - ---- - -## 6. Recommendation - -**Option C (Hybrid).** It keeps Option A's deterministic, replayable, CI-gateable capture (reusing the dock-open / theme / onboarding-skip helpers already in `tests/e2e`), adds a vision Workflow for *meaning*, and backstops the vision verdict with cheap objective signals (console errors + Lighthouse contrast/a11y) so the harness has a deterministic floor and can't be fooled by a screenshot that merely *looks* fine. Build it on top of the existing `tests/visual` + `tests/e2e` infrastructure rather than greenfield: a new capture spec emits PNG + sidecar JSON, a Workflow fans out one vision-judge subagent per capture, a reducer cross-checks vision against objective signals and writes one report. Default the chat flow to **Path 1 (degraded-handled-gracefully)** for the CI gate with a **Path 2 `--live-llm`** opt-in — pending the user's call on §5. - ---- - -## 7. Build sketch (after the decision is made) - -1. **Capture spec** (`tests/vision/capture.spec.ts`): iterate the surface matrix × {dark,light}; reuse `openAppViaDock`; set theme via `data-theme`; for each surface write `artifacts/-.png` + `-.json` (`expectation`, `consoleErrors[]`, `networkFailures[]`, optional `lighthouse`). Drive the 7 flows to their end-state captures. -2. **Vision Workflow** (`workflow-composer` definition or a Task fan-out): one judge per capture → structured verdict; `dispatching-parallel-agents`-style fan-out. -3. **Reducer**: merge vision verdicts + objective signals; downgrade vision-PASS-with-hard-signal to FAIL; emit `artifacts/vision-report.json` + a Markdown summary; non-zero exit on any FAIL for the CI gate. -4. **Lanes**: `test:vision` (Path 1, CI) and `test:vision:live` (Path 2, pre-release, requires key). - ---- - -## 8. Why not just keep the pixel-diff + substring suite - -Pixel diff at `0.003` flags font-hinting and wallpaper jitter as failures while passing a screen whose *content* is wrong-but-pixel-identical-to-baseline; substring asserts (`toMatch(/persona/i)`) pass on a half-rendered, error-bannered, or dark-on-dark screen as long as one keyword survives. Neither answers the actual question — *"would a human look at this and say it's working and legible?"* Vision grading answers exactly that; the hybrid's objective floor keeps it honest. diff --git a/docs/audits/2026-07-08-admin-cli-utility-t15-analysis.md b/docs/audits/2026-07-08-admin-cli-utility-t15-analysis.md deleted file mode 100644 index 6f4be42..0000000 --- a/docs/audits/2026-07-08-admin-cli-utility-t15-analysis.md +++ /dev/null @@ -1,275 +0,0 @@ -# Admin, CLI, Marketplace, and MCP Utility T15 Analysis - 2026-07-08 - -Status: analysis supplement plus focused admin, launcher, marketplace, CLI, and MCP runtime hardening. - -Purpose: deepen T15 evidence for `packages/admin-web`, `packages/cli`, `packages/launcher`, `packages/marketplace`, `packages/memory-mcp`, `packages/hive-mind-mcp-server`, and `packages/hive-mind-cli`. - -Guideline baseline: Vercel Web Interface Guidelines, fetched 2026-07-08 from `https://raw.githubusercontent.com/vercel-labs/web-interface-guidelines/main/command.md`. - -## Sources Inspected - -- `packages/admin-web/package.json` -- `packages/admin-web/src/App.tsx` -- `packages/admin-web/src/api.ts` -- `packages/admin-web/src/pages/*.tsx` -- `packages/admin-web/tests/admin-pages.test.ts` -- `packages/cli/package.json` -- `packages/cli/src/index.ts` -- `packages/cli/src/repl.ts` -- `packages/cli/tests/cli-runtime.test.ts` -- `packages/launcher/package.json` -- `packages/launcher/src/cli.ts` -- `packages/launcher/tests/cli.test.ts` -- `packages/launcher/tsup.config.ts` -- `packages/marketplace/package.json` -- `packages/marketplace/tsconfig.json` -- `packages/marketplace/src/cli.ts` -- `packages/marketplace/src/db.ts` -- `packages/memory-mcp/package.json` -- `packages/memory-mcp/src/index.ts` -- `packages/memory-mcp/src/core/setup.ts` -- `packages/memory-mcp/tests/*.test.ts` -- `packages/memory-mcp/README.md` -- `packages/hive-mind-mcp-server/package.json` -- `packages/hive-mind-mcp-server/src/index.ts` -- `packages/hive-mind-mcp-server/src/core/setup.ts` -- `packages/hive-mind-mcp-server/tests/scope.test.ts` -- `packages/hive-mind-mcp-server/src/integration.test.ts` -- `packages/hive-mind-mcp-server/README.md` -- `packages/hive-mind-cli/package.json` -- `packages/hive-mind-cli/README.md` -- `packages/hive-mind-cli/src/index.ts` -- `packages/hive-mind-cli/src/dispatch.ts` -- `packages/hive-mind-cli/src/setup.ts` -- `packages/hive-mind-cli/src/commands/*.ts` -- `packages/hive-mind-core/package.json` -- `packages/shared/package.json` -- `packages/core/package.json` -- `packages/core/src/index.ts` -- `vitest.config.ts` - -## Commands Run - -```powershell -npx vitest run packages/admin-web/tests/admin-pages.test.ts --reporter=dot -npm run test --workspace @waggle/admin-web -- --reporter=dot -npx vitest run packages/launcher/tests/cli.test.ts --reporter=dot -npm run test --workspace @waggle/cli -- --reporter=dot -npx vitest run packages/cli/tests/commands.test.ts packages/cli/tests/admin.test.ts packages/cli/tests/renderer.test.ts packages/cli/tests/memory-persistence-hard.test.ts packages/cli/tests/auth.test.ts packages/cli/tests/mode-detector.test.ts packages/cli/tests/comprehensive-e2e.test.ts packages/cli/tests/cli-runtime.test.ts --reporter=dot -npm run test --workspace waggle-memory-mcp -- --reporter=dot -npx vitest run packages/memory-mcp/tests/scope.test.ts packages/memory-mcp/tests/erase.test.ts --reporter=dot -npm run test --workspace waggle-memory-mcp -- --reporter=dot -npx vitest run packages/hive-mind-mcp-server/tests/scope.test.ts packages/hive-mind-mcp-server/src/integration.test.ts --reporter=dot -npm run test --workspace @waggle/hive-mind-mcp-server -- --reporter=dot -npx vitest run 'packages/hive-mind-cli/src/**/*.test.ts' --reporter=dot -npx vitest run 'src/**/*.test.ts' --reporter=dot -npx vitest run packages/hive-mind-cli/tests/cli-help.test.ts --reporter=dot -npm run test --workspace @waggle/hive-mind-cli -- --reporter=dot -npx vitest run packages/marketplace/tests/categories.test.ts packages/marketplace/tests/mcp-registry.test.ts packages/marketplace/tests/cisco-scanner.test.ts --reporter=dot -npx vitest run packages/marketplace/tests/cli-runtime.test.ts packages/marketplace/tests/categories.test.ts packages/marketplace/tests/mcp-registry.test.ts packages/marketplace/tests/cisco-scanner.test.ts --reporter=dot -npx tsc --noEmit --project packages/admin-web/tsconfig.json -npx tsc --noEmit --project packages/cli/tsconfig.json -npx tsc --noEmit --project packages/marketplace/tsconfig.json -npx tsc --noEmit --project packages/server/tsconfig.json -npx tsc --noEmit --project packages/memory-mcp/tsconfig.json -npx tsc --noEmit --project packages/hive-mind-mcp-server/tsconfig.json -npx tsc --noEmit --project packages/hive-mind-cli/tsconfig.json -npm run build --workspace @waggle/admin-web -npm run test:rendered --workspace @waggle/admin-web -In-app Browser smoke of built `packages/admin-web/dist` against a typed mock API on `http://localhost:3100` -In-app Browser focused smoke of built `packages/admin-web/dist` on `http://127.0.0.1:4181` at 390 x 844 and desktop widths -npm run build --workspace @waggle-ai/waggle -npm run test --workspace @waggle-ai/waggle -- --reporter=dot -npm install --no-audit --no-fund --prefer-offline -npx waggle --help -npx waggle --port --skip-litellm --no-open -npm run build --workspace @waggle/cli -npm pack --workspace @waggle/cli --pack-destination --json -npm install --no-audit --no-fund --ignore-scripts --prefer-offline -npx waggle --help -npm install --no-audit --no-fund --prefer-offline -npx waggle --local -$env:LITELLM_API_KEY='sk-test'; npx waggle --local # against local mock LiteLLM-compatible /v1/chat/completions stream -npm run build --workspace @waggle/marketplace -npm pack --workspace @waggle/marketplace --pack-destination --json -npm install --no-audit --no-fund --prefer-offline -npx waggle-market --help -npx waggle-market definitely-not-a-command -npm run build --workspace waggle-memory-mcp -npm run build --workspace @waggle/hive-mind-mcp-server -npm install --no-audit --no-fund --prefer-offline -node /dist/index.js -npm run build --workspace @waggle/hive-mind-cli -npm install --no-audit --no-fund --prefer-offline -npx hive-mind-cli status --help -npx tsx packages/launcher/src/cli.ts --help -node packages/launcher/dist/cli.js --help -npx tsx packages/launcher/src/cli.ts --port abc -node packages/launcher/dist/cli.js --port abc -node packages/launcher/dist/cli.js --port --skip-litellm --no-open -npm pack --workspace @waggle-ai/waggle --pack-destination --json -npx tsx packages/cli/src/index.ts --help -node packages/cli/dist/index.js --help -npx tsx packages/hive-mind-cli/src/index.ts --help -node packages/hive-mind-cli/dist/index.js --help -npx tsx packages/hive-mind-cli/src/index.ts init --help -npx tsx packages/hive-mind-cli/src/index.ts status --help -npx tsx packages/marketplace/src/cli.ts --help -npx tsx packages/marketplace/src/cli.ts definitely-not-a-command -node packages/marketplace/dist/cli.js --help -node packages/marketplace/dist/cli.js definitely-not-a-command -npm pack --workspace @waggle/marketplace --dry-run --json -npx tsx packages/marketplace/src/cli.ts definitely-not-a-command -node --input-type=module -e "" -``` - -Notes: - -- Commands that needed user-home state were redirected to `output/t15-*` data directories where practical. -- Launcher occupied-port runtime evidence used a temporary `WAGGLE_DATA_DIR` and a test-owned `127.0.0.1` port blocker. -- Builds generated package `dist` artifacts; this supplement does not treat generated build output as product code edits. - -## Command Results - -| Check | Result | UX meaning | -|---|---:|---| -| Admin-web package/root Vitest | Pass, 1 file / 42 tests | Admin pages render in happy-path and auth-failure test cases; the admin shell now has package-local test ownership, hash deep links, active-nav semantics, labelled critical fields, responsive CSS coverage, wrong-token guidance, and no React `act(...)` warning noise in the focused run. The remaining warning is Node's `punycode` dependency deprecation. | -| Launcher targeted Vitest | Pass, 1 file / 22 tests | The real parser/core helpers, package metadata, built-help no-service-side-effect behavior, invalid-port validation before service setup, occupied-port recovery copy, `--no-open` success copy, packed tarball first-command help path, clean installed packed-launcher `npx` help plus occupied-port startup recovery, and clean installed long-running startup through `/health` are covered. | -| `@waggle/cli` package test script | Pass, 8 files / 57 tests | Package-local script now uses the root Vitest runner/config and covers command parsing, admin helper formatting, renderer, auth, mode detection, memory persistence, comprehensive E2E, built-help runtime behavior, packed tarball bin-help behavior, clean local package-closure install followed by `npx waggle --help`, clean local package-closure install followed by `npx waggle --local` REPL startup, slash-command interaction, and exit, and a clean local package-closure installed streamed chat turn through a mock LiteLLM-compatible endpoint. | -| `@waggle/cli` root-directed tests | Pass, 8 files / 57 tests | The same explicit root-directed slice passes, including built-help, packed-bin-help, local package-closure install/`npx` help, installed local REPL startup/slash-command/exit regressions, and installed streamed chat/provider plumbing against a mock LiteLLM-compatible `/v1/chat/completions` endpoint. | -| Memory MCP package test script | Pass, 3 files / 20 tests | Package-local script now uses the root Vitest runner/config and covers scope gating, erase safety, built read-only MCP handshake, built write-scope save/recall roundtrip, and clean local package-closure install followed by MCP tool listing from the installed server. | -| Memory MCP root-directed tests | Pass, 3 files / 20 tests | Scope gating, erase safety, built read/write MCP behavior, and installed package-closure read-only server startup pass from the root command shape. | -| Hive-mind MCP package test script | Pass, 2 files / 15 tests | Package-local script now covers registration/scope, a built write-scope save/recall roundtrip, and clean local package-closure install followed by MCP tool listing from the installed server. | -| Hive-mind MCP root-directed tests | Pass, 2 files / 15 tests | Registration, scope gating, built write-scope behavior, and installed package-closure read-only server startup pass from the root command shape. | -| Hive-mind CLI package-local tests | Pass, 5 files / 46 tests | `npm run test --workspace @waggle/hive-mind-cli -- --reporter=dot` now discovers the colocated `src` tests plus runtime help tests, including local package-closure install followed by `npx hive-mind-cli status --help`. Expected mock-embedding warning banners remain noisy but non-failing. | -| Marketplace targeted tests | Pass, 4 files / 77 tests | Categories, MCP registry, Cisco scanner behavior, source invalid-command behavior, built help behavior, package manifest/packed-file alignment, and clean installed packed-CLI `npx waggle-market` help/invalid-command behavior pass in the targeted slice. | -| No-emit TypeScript | Pass | `admin-web`, `cli`, `marketplace`, `memory-mcp`, `hive-mind-mcp-server`, and `hive-mind-cli` typecheck with no output. | -| Package builds | Pass | Admin web, launcher, CLI, marketplace, memory MCP, hive-mind MCP, and hive-mind CLI build scripts completed. | -| Admin-web rendered package smoke | Pass, 14 tests | `npm run test:rendered --workspace @waggle/admin-web` builds the package and runs Playwright against the built preview. It covers all seven admin pages at 1200 x 800 and 390 x 844 with typed authenticated mock API data, real local bearer-auth middleware wrong-token/valid-token behavior through protected Fastify routes, hash URL state, `aria-current`, document scroll width, overflow outside labelled table scroll regions, labelled controls, console warning/error/pageerror collection, mobile keyboard navigation through the shell, page-level keyboard traversal from connection fields into dashboard, members, capabilities, jobs, audit, and settings controls/table regions, browser back/forward hash traversal, full-page visual snapshots for all seven pages on desktop and mobile, capability governance edit/add/decision forms, malformed analytics data recovery without blanking the shell, all-page initial API-failure recovery with accessible alerts and usable shell navigation, and rendered mutation/destructive-failure recovery for capability policy save, capability override create/remove, capability request decision, member invite, member role change, member removal, and team settings save. Command output has a Node `NO_COLOR` env warning; app console collection is clean. | -| Source help smokes | Pass | `launcher`, `@waggle/cli`, `hive-mind-cli`, and `marketplace` source help paths are readable through `tsx`. | -| Built launcher help/error/package paths | Pass | Source and built help exit 0, print usage, do not create `.waggle`, and no longer print the `[waggle:service] Data dir: ...` banner before help. Source and built invalid-port paths exit 1 before service setup, print focused guidance, and do not create `.waggle`; the built occupied-port path exits 1 and prints `npx waggle --port ` recovery copy. The packed tarball contains `dist/cli.js`, exposes `bin.waggle`, and the extracted first-command help path runs without service setup or user-home mutation. A clean temp project can install the packed launcher and run `npx waggle --help`, installed occupied-port startup recovery with no `.waggle` home mutation, and installed long-running startup that serves `/health`, prints `--no-open` manual-open copy, and creates the configured data dir. | -| Built `@waggle/cli` help/package path | Pass | `node packages/cli/dist/index.js --help` and `node packages/cli/bin/waggle.js --help` exit 0, print usage, and do not create `.waggle` in a clean temp home. The packed tarball contains `bin/waggle.js`; extracted packed-bin help exits 0, prints usage, and does not create `.waggle`. A clean temp project can install the local `@waggle/shared`, `@waggle/hive-mind-core`, `@waggle/core`, `@waggle/marketplace`, `@waggle/agent`, `@waggle/weaver`, and `@waggle/cli` tarball closure, run `npx waggle --help` without `.waggle` mutation, then run `npx waggle --local`, see the local REPL banner/prompt, run `/help`, `/mode`, `/whoami`, `/models`, `/cost`, and `/clear`, create `~/.waggle/default.mind`, and exit via `/exit`. A second clean temp project can install the same local package closure, configure `~/.waggle/config.json` plus `.waggle/workspace.json`, run `npx waggle --local` against a local mock LiteLLM-compatible streaming endpoint, send a user chat message, receive streamed assistant text plus usage metadata, and verify the outbound `Authorization`, `model`, `stream`, `stream_options`, and message payload. The installed REPL proof caught and fixed `@waggle/agent` package metadata pointing at source, missing `exceljs`/`@waggle/shared`/`@waggle/marketplace` runtime declarations, and a test harness native-install issue for `better-sqlite3`. | -| Built marketplace help | Pass | `node packages/marketplace/dist/cli.js --help` exits 0, prints usage, and does not create `~/.waggle/marketplace.db` in a clean temp home. A clean temp project can install the packed marketplace tarball and run `npx waggle-market --help` without DB side effects. | -| Hive-mind CLI subcommand help | Pass | Source `init --help`, built `status --help`, and local package-closure installed `npx hive-mind-cli status --help` exit 0, print focused command help, and do not create `personal.mind` in a clean temp data dir. The installed proof caught and fixed a missing `@waggle/shared` runtime dependency declaration in `@waggle/hive-mind-core`. | -| Marketplace invalid command | Pass | Source, built, and clean installed packed-CLI invalid-command smokes print `Unknown command`, show help, exit 1, and do not create `~/.waggle/marketplace.db` in a clean temp home. | -| Built legacy memory MCP protocol smoke | Pass, read/write + installed read-only | Official MCP client connects to `packages/memory-mcp/dist/index.js`, verifies read-only tool gating, and in write scope saves then recalls a unique memory from a temp `WAGGLE_DATA_DIR` with mock embeddings. A clean temp project can also install the local `@waggle/shared`, `@waggle/hive-mind-core`, `@waggle/core`, `@waggle/wiki-compiler`, and `waggle-memory-mcp` tarball closure, launch the installed server entry, and list read-only tools. The installed proof caught and fixed a missing `glob` runtime dependency declaration in `@waggle/core`. | -| Built hive-mind MCP protocol smoke | Pass, read/write + installed read-only | Official MCP client connects to `packages/hive-mind-mcp-server/dist/index.js`, verifies the registered surface, and in write scope saves then recalls a unique memory from a temp `HIVE_MIND_DATA_DIR` with mock embeddings. A clean temp project can also install the local `@waggle/shared`, `@waggle/hive-mind-core`, `@waggle/hive-mind-wiki-compiler`, and `@waggle/hive-mind-mcp-server` tarball closure, launch the installed server entry, and list read-only tools. | - -## MCP Protocol Smoke Detail - -The smoke used `@modelcontextprotocol/sdk/client/index.js` and `@modelcontextprotocol/sdk/client/stdio.js`, not hand-written framing. - -Legacy Waggle memory MCP result: - -```json -{ - "name": "waggle-memory-mcp", - "tools": 9, - "sampleTools": [ - "recall_memory", - "search_entities", - "get_identity", - "get_awareness", - "list_workspaces" - ], - "withheldTools": [ - "save_memory" - ], - "writeRoundtrip": "save_memory -> recall_memory returned the unique saved text" -} -``` - -Hive Mind MCP result: - -```json -{ - "name": "hive-mind-mcp-server", - "server": { "name": "hive-mind-memory", "version": "0.1.0" }, - "tools": 9, - "resources": 4, - "sampleTools": [ - "recall_memory", - "search_entities", - "get_identity", - "get_awareness", - "list_workspaces", - "harvest_sources" - ], - "sampleResources": [ - "memory://personal/stats", - "memory://identity", - "memory://awareness", - "memory://workspace/{id}" - ], - "writeRoundtrip": "save_memory -> recall_memory returned the unique saved text" -} -``` - -Both MCP stderr streams clearly warn when mock embeddings are active. That is acceptable for the audit lane because the commands explicitly set the provider to mock. - -## What Is Proven Now - -- Admin web compiles, builds, and renders tested happy paths. -- Admin web now has a package-local test command; the focused run passes 42 tests with no React `act(...)` warnings. -- Admin web now has a package-local rendered Playwright gate; the run passes 14 tests across all seven pages at desktop and 390px mobile widths, including visual regression snapshots, page-level keyboard traversal, browser back/forward hash traversal, malformed analytics response recovery, all-page initial API-failure recovery, mutation/destructive-failure recovery for policy save, override create/remove, request decision, member invite, member role change, member removal, and team settings save, plus real local bearer-auth middleware wrong-token/valid-token behavior. -- Admin web now distinguishes rejected auth from server-down failures and renders real server-injected team/member/task data after a valid token in the package-local rendered gate. Live deployed/Clerk/JWT team-server auth remains outside this local utility gate and belongs to launch/deploy evidence. -- Admin web rendered with typed mock API data under the in-app Browser with no current-port console errors; original full-page screenshots and probes are saved under `output/playwright/admin-web-t15-57795/`. -- Admin web rendered package smoke now proves shell-level 390px mobile layout, hash deep-link navigation, `aria-current` active state, all-page table scroll containment, rendered control labels, capability governance form labels, mobile shell keyboard reachability, and page-level keyboard traversal from connection fields into the covered admin pages on the built preview. -- Launcher source and built help are callable. -- Launcher package-local test command now passes 22 tests and guards the real parser/core helpers, built-help no-service-side-effect path, invalid-port validation before service setup, occupied-port recovery copy, `--no-open` success copy, packed tarball first-command help path, clean installed packed-launcher `npx` help plus occupied-port startup recovery, and clean installed long-running startup through `/health`. -- `@waggle/cli` source help, built help, bin-wrapper help, packed tarball bin help, local package-closure install/`npx` help, local package-closure installed REPL startup/slash-command/exit, local package-closure installed streamed chat via mock LiteLLM-compatible endpoint, package-local tests, and direct root tests pass. -- Marketplace source help, source invalid-command, built help, built invalid-command, clean installed packed-CLI help, and clean installed packed-CLI invalid-command paths are callable with no marketplace DB side effects. -- Hive-mind CLI root help, built root help, sampled source subcommand help, sampled built subcommand help, and local package-closure installed `npx` subcommand help are callable with no data-dir mutation. -- Hive-mind CLI package-local tests now run through a documented package command and guard the installed local package closure. The installed proof found and fixed the missing `@waggle/shared` dependency in `@waggle/hive-mind-core`. -- Legacy memory MCP package-local tests now run through a documented package command; the built server completes real read-only and write-scope MCP handshakes; and a clean local package-closure install can launch the installed server and list read-only tools. The installed proof found and fixed the missing `glob` runtime dependency declaration in `@waggle/core`. -- Hive-mind MCP package-local tests now run through a documented package command, and the built server completes real read-only/registration and write-scope MCP handshakes. The package lane also proves clean local package-closure install and read-only MCP startup from the installed server. -- TypeScript no-emit checks pass for every inspected package that has a `tsconfig.json`. -- Package build scripts complete for every inspected package. - -## Still Not Proven - -- Admin web exhaustive keyboard/focus traversal inside every hidden or future state remains incomplete; current rendered evidence proves shell keyboard reachability, page-level traversal, and form-label/overflow contracts. -- Launcher browser-open fallback as an integration path, and service crash/failure copy beyond occupied-port startup failure. Clean installed packed-launcher help, occupied-port startup recovery, and long-running `/health` startup are now proven. -- `@waggle/cli` registry-only install remains dependent on publishing the internal `@waggle/*` package closure. Installed package-closure non-help startup, common no-provider slash commands, clean exit, and streamed chat/provider plumbing against a mock LiteLLM-compatible endpoint are now proven; live external-provider proof remains launch-environment dependent. -- Marketplace install/search flows against a real populated marketplace database. Clean installed packed-CLI help and invalid-command recovery are now proven. -- Every hive-mind CLI subcommand help variant beyond the sampled `init` and `status` paths, and registry-only install after publishing the local `@waggle/hive-mind-*` package closure. -- Marketplace CLI missing-db and missing-config error semantics beyond the now-guarded invalid-command path. -- Registry-only behavior for legacy `waggle-memory-mcp`, `@waggle/cli`, and hive-mind packages after the internal package closures are published. -- Legacy `waggle-memory-mcp` installed write-scope behavior remains unproven; current installed evidence is read-only list-tools. - -## Line-Level Findings - -| ID | Finding | Evidence | Correction | -|---|---|---|---| -| T15-1 | Built, packed, and locally installed `@waggle/cli` help is now lazy enough to avoid the REPL dependency graph, and the installed local REPL starts cleanly from a package closure. | `packages/cli/src/index.ts` handles help before dynamically importing `./repl.js`; `cli-runtime.test.ts` proves built help exits 0 without creating `.waggle`; clean-home smokes also pass for `dist/index.js --help`, `bin/waggle.js --help`, extracted packed-tarball `bin/waggle.js --help`, a clean temp project that installs the local `@waggle/*` package-closure tarballs before running `npx waggle --help`, and a real-script install followed by `npx waggle --local` startup, local banner/prompt rendering, `/help`, `/mode`, `/whoami`, `/models`, `/cost`, `/clear`, `/exit`, and `~/.waggle/default.mind` creation. A second real-script install configures a mock LiteLLM-compatible endpoint, sends a chat message through the installed REPL, and asserts streamed assistant text, usage metadata, auth, model, stream flags, and message payload. `packages/agent/package.json` and `packages/weaver/package.json` now expose built `dist` entries; `@waggle/agent` declares the runtime dependencies the installed REPL loads. | Focused fixed locally for built, packed, package-closure-installed help, package-closure-installed local REPL startup/slash-command/exit, and package-closure-installed streamed chat/provider plumbing; full closure still needs registry-only proof after internal packages are published. | -| T15-2 | Built legacy `waggle-memory-mcp` now completes read-only and write-scope MCP handshakes, and both legacy memory MCP and hive-mind MCP now have installed package-closure proof. | `packages/core/package.json` and `packages/wiki-compiler/package.json` now expose their built `dist` entries; `packages/core/package.json` declares the runtime `glob` dependency used by `file-store`; `packages/memory-mcp/tests/runtime.test.ts` builds core/wiki/memory-mcp, launches `packages/memory-mcp/dist/index.js` through the official MCP SDK, sees read-only tools, confirms `save_memory` is withheld in read scope, then saves and recalls a unique memory in write scope. It also installs the local `@waggle/shared`, `@waggle/hive-mind-core`, `@waggle/core`, `@waggle/wiki-compiler`, and `waggle-memory-mcp` package closure, launches the installed server, and lists read-only tools. `packages/hive-mind-mcp-server/tests/runtime.test.ts` additionally installs the local hive-mind package closure and lists tools from the installed server. | Focused fixed locally for built/installed legacy MCP and built/installed hive-mind MCP; registry-only proof still depends on publishing the internal package closures. | -| T15-3 | Built marketplace CLI was not runnable under Node ESM after `tsc`, and the publish manifest pointed at unpublished source files. | Current `packages/marketplace/tsconfig.json` uses NodeNext resolution; marketplace source imports use emitted `.js` specifiers; `node packages/marketplace/dist/cli.js --help` exits 0 with no DB side effect; `packages/marketplace/package.json` now points `main`, `types`, and `exports` at emitted `dist` files; `cli-runtime.test.ts` guards built help, `npm pack --dry-run --json` file/manifest alignment, and clean installed packed-CLI `npx waggle-market` help/invalid-command behavior without DB creation. | Focused fixed locally for help, invalid-command, manifest, and installed-bin first commands; full closure still needs install/search flows against a real populated marketplace database. | -| T15-4 | Package-local test scripts and root discovery do not consistently run the tests that exist. | `@waggle/cli`, launcher, `hive-mind-cli`, and `waggle-memory-mcp` package scripts are now fixed through root-owned or package-local Vitest lanes. Other packages outside T15 still have package-local command-shape gaps tracked under T17. | Keep the T15 package commands in the verification lane and address broader package-local script drift under T17. | -| T15-5 | Admin web now has package-local unit and rendered test ownership, and the focused test lanes are no longer noisy. | `packages/admin-web/package.json` defines `npm run test --workspace @waggle/admin-web` and `npm run test:rendered --workspace @waggle/admin-web`; `packages/admin-web/tests/admin-pages.test.ts` passes 42 tests without React `act(...)` warnings, and `packages/admin-web/tests/admin-rendered.spec.ts` passes 14 built-preview Playwright tests including real local bearer-auth middleware wrong-token/valid-token behavior. Members native confirm was already replaced with in-app confirmation. | Focused fixed locally; remaining T15 closure is registry-only proof after internal package publication. | -| T15-6 | Hive-mind CLI README promises per-command help, and the sampled subcommand help paths are now side-effect free. | `packages/hive-mind-cli/src/index.ts` handles root and subcommand `--help` before dispatch; `cli-help.test.ts` guards source `init --help`, built `status --help`, and local package-closure installed `npx hive-mind-cli status --help` so none creates `personal.mind`. The installed RED test exposed `@waggle/hive-mind-core` importing `@waggle/shared` without declaring it; `packages/hive-mind-core/package.json` now declares the runtime dependency. | Focused fixed locally for sampled help and local package-closure install; broader closure still needs registry-only proof after publishing the internal packages and optional sampling across every subcommand help page. | -| T15-7 | Marketplace invalid command exited successfully and help/default construction opened the DB before validation. | Current `packages/marketplace/src/cli.ts` handles help and unknown commands before `MarketplaceDB` construction; source and built invalid-command smokes exit 1, print help, and leave a clean temp home without `marketplace.db`; `cli-runtime.test.ts` guards this behavior. | Focused fixed locally. | -| T15-8 | Launcher help, common startup-error UX, and packed/installed first-command behavior are now owned by the package test lane. | `packages/launcher/src/cli-core.ts` owns the real parser and startup copy, and `packages/launcher/src/cli.ts` imports the server lazily after help and validation. `packages/launcher/tests/cli.test.ts` passes 22 tests covering built help without service banners or `.waggle` creation, invalid ports exiting 1 before service setup, occupied ports producing `npx waggle --port ` recovery copy, `--no-open` success copy, `npm pack` tarball extraction followed by packed `dist/cli.js --help`, clean installed packed-launcher `npx` help plus occupied-port startup recovery without `.waggle` home mutation, and clean installed long-running startup that serves `/health`, prints manual-open copy, and creates the configured data dir. Source and built invalid-port smokes also exit 1 with focused guidance. | Focused fixed locally for help, invalid port, occupied port, `--no-open` copy, packed first-command help, installed-bin occupied-port recovery, and installed long-running startup; remaining closure needs browser-open fallback integration and service crash/failure copy beyond occupied-port startup failure. | -| T15-9 | Legacy `waggle-memory-mcp` README is stale relative to startup behavior. | `packages/memory-mcp/README.md` advertises zero-config ONNX auto-download; `packages/memory-mcp/src/core/setup.ts` now falls back to mock unless a provider is configured. | Update README/setup copy so users understand mock vs semantic search behavior, or align implementation with the documented zero-config path. | -| T15-10 | Hive-mind MCP README tool names do not match the current registered surface. | `packages/hive-mind-mcp-server/README.md` lists tools such as `add_relation`, `get_entity`, `switch_workspace`, `harvest_conversations`, `compact_memory`, and `cleanup_deprecated`; integration tests and MCP smoke show registered names such as `create_relation`, `save_entity`, `list_workspaces`, `create_workspace`, `harvest_import`, `cleanup_frames`, and `cleanup_entities`. | Regenerate the README tool table from registration tests or update it manually with a doc test. | -| T15-11 | Admin web shell and dense tables are no longer functionally unusable on 390px mobile viewports. | `packages/admin-web/src/admin.css` collapses the fixed sidebar into a full-width top section at `@media (max-width: 720px)` and adds labelled `.admin-table-scroll` regions. Rendered package smoke at 390 x 844 covers all seven pages, checks document scroll width, and allows overflow only inside labelled table scroll regions. | Focused fixed for shell/mobile chrome and dense table containment. | -| T15-12 | Admin web pages are addressable by hash, active navigation is semantic, and browser history traversal stays aligned. | `packages/admin-web/src/App.tsx` initializes from `window.location.hash`, listens to `hashchange`, writes hashes on nav clicks, and sets `aria-current="page"` on the active nav item. Unit coverage proves `#members` initialization and click-to-`#capabilities`; rendered package smoke proves hash URL and active `aria-current` across all seven pages at desktop/mobile widths, then goes Dashboard -> Members -> Capabilities -> back -> back -> forward -> forward and verifies URL, heading, and active nav at each step. | Focused fixed locally. | -| T15-13 | Rendered admin controls now have accessible labels and browser metadata in the covered states. | Unit coverage proves Team Slug/Auth Token labels plus `name`/`autocomplete`, invite email/role labels, member role labels, Team Name label/metadata, and wrong-token guidance. Rendered package smoke scans all visible `input`, `select`, and `textarea` controls across seven pages plus capability policy edit, override add, request decision forms, and the real-auth connection state. | Focused fixed for rendered happy-path, governance form, and real-auth connection states; any future hidden-form states still need coverage when introduced. | -| T15-14 | Admin analytics no longer blanks the shell on malformed successful responses, initial API failure is announced accessibly across pages, key admin mutations recover cleanly when rejected, and wrong-token auth failures show specific guidance. | The RED malformed-data rendered test reproduced missing recovery UI for `{ tokenUsage: ... }` analytics data. `Analytics.tsx` now validates the runtime response shape before rendering cards, clears stale data on load/error, and exposes incomplete-data recovery as `role="alert"`. A second RED rendered test reproduced missing accessible alerts during all-page API failure; Dashboard, Members, Jobs, Audit, Team Settings, and all Capabilities tabs now expose their existing error banners as `role="alert"`. New RED/GREEN rendered mutation tests cover capability policy save, capability override create/remove, capability request decision, member invite, member role change, member removal, and team settings save failures; the covered forms disable or announce the active action while pending, preserve the user's context after rejection, expose the rejection through `role="alert"`, and keep the shell usable. The real-auth rendered test routes built admin API calls through the real local `securityMiddleware`, proves a wrong token announces `Authentication failed`, then proves a valid token renders real server-injected team/member/task data. The GREEN rendered run passes 14/14 and includes page-level keyboard traversal plus full-page visual snapshots for each covered desktop/mobile admin page. | Focused fixed for malformed analytics data, initial page-load API failure, covered mutation/destructive failures, current page-level keyboard traversal, package-local visual regression, and local bearer-auth behavior. | - -## T15 Acceptance - -T15 remains open until either: - -1. Admin/CLI/MCP utility surfaces are explicitly deferred from the five-persona score, or -2. Evidence proves all of the following: - -- Admin-web rendered gate remains green with local bearer-auth evidence. -- `@waggle/cli`, launcher, marketplace CLI, memory MCP, hive-mind MCP, and hive-mind CLI built entries can run their published first commands from a clean environment. Current `@waggle/cli`, legacy memory MCP, hive-mind MCP, and `hive-mind-cli` evidence covers local package closures, including `@waggle/cli` installed local REPL startup/slash-command/exit and streamed chat/provider plumbing; launcher and marketplace evidence covers clean installed packed tarballs; registry-only proof for internal package closures depends on publishing those packages. -- Utility help and invalid-input paths do not mutate user data or exit 0 on errors. -- Package-local and root test commands either pass or have documented, passing alternatives. -- MCP servers have at least one protocol-level smoke for read-only and write-capable scopes. -- README/setup docs match actual command names, provider behavior, and data-dir behavior. - -## Phase Impact - -This does not change Phase 1. T15 remains a Phase 2/Launch final-product gate after in-app P0 blockers are cleared, unless the user explicitly asks to include admin/CLI/MCP utility work in Phase 1. diff --git a/docs/audits/2026-07-08-ai-tool-hook-t16-analysis.md b/docs/audits/2026-07-08-ai-tool-hook-t16-analysis.md deleted file mode 100644 index a9e5990..0000000 --- a/docs/audits/2026-07-08-ai-tool-hook-t16-analysis.md +++ /dev/null @@ -1,113 +0,0 @@ -# T16 AI-Tool Hook Lifecycle UX Analysis - -Date: 2026-07-08 -Scope: Launcher AI-tool detection, launch, hook install, hook verify, hook uninstall, live output, and the `packages/hive-mind-hooks-*` package set. -Mode: analysis plus focused package-runtime evidence. - -## Bottom Line - -T16 is functional at the unit, package, manifest, backend-route, component-test, package-runtime, real safe-launch, and rendered-Launcher transition layers, but it is not ready for a 9/10 UX claim. - -The strongest evidence is the hook package test suite, shared manifest contract, backend route tests, official package typechecks, compiled bin help smokes, package-local hook/shim test scripts, a fresh package-pack lifecycle lane that runs `npx @waggle/hive-mind-hooks- install/verify/uninstall` for all six hook-capable packages, a real detected-CLI observed launch smoke, a real isolated `/api/tools/hooks` install/verify/uninstall route smoke for all six hook-capable tools, a rendered Launcher smoke with a mock local API, codified all-six rendered hook install/verify/uninstall transitions, focused regressions for observed tool output after exit plus hook result stdout/stderr/structured-failure visibility, focused rendered install/offline/long-output/adapter Playwright coverage, focused third-party adapter launch coverage, and Codex WindowsApps recovery coverage. The hook-result regressions include Backup/Recovery result labels, Verify check failed/manual-approval rows, uninstall restore/cleanup rows, long-output summary rows, empty-output Verify recovery copy, and Claude Desktop launch-only copy. The remaining blockers are user-facing: packaged desktop integration and noisy-but-passing hook output. - -## User Jobs - -- Detect installed AI tools. -- Launch a detected tool in the current workspace. -- Optionally pass a prompt when the tool supports inline prompt args. -- See whether the tool is already running and inspect live output for observed launches. -- Install hooks without corrupting an existing tool configuration. -- Verify hooks and understand failures or manual trust steps. -- Uninstall hooks byte-identically, or remove only Waggle-managed files when Waggle created the config. -- Understand that Claude Desktop is launchable but not hook-capable. -- Recover when the sidecar, hive-mind CLI, or target AI tool is unavailable. -- For advanced users, add a third-party adapter and expect detected tools to behave coherently. - -## Source Model - -- Built-in tool manifests live in `packages/shared/src/tool-detection.ts`. -- The canonical built-ins are `claude-code`, `claude-desktop`, `cursor`, `codex`, `codex-desktop`, `hermes`, and `openclaw`. -- All seven built-ins are launchable. -- Six built-ins are hook-capable: all except `claude-desktop`. -- `packages/hive-mind-hooks-claude-desktop` is an intentional stub with no `bin`. -- `packages/hive-mind-hooks-codex-desktop` is a thin wrapper around the Codex hook package and writes to the shared `~/.codex` hook config. -- Detection uses `getToolRegistry()`, which merges built-ins plus validated third-party manifests from `~/.waggle/adapters/*.json`. -- `/api/tools/launch` now validates IDs against the runtime registry, so launchable third-party adapters can launch through the sidecar route and can receive server-applied `promptArgTemplate` prompts. -- `/api/tools/hooks` remains intentionally limited to the known hook-capable built-ins; third-party hook management needs a separate safe hook command/package policy before it should be exposed. -- On Windows, PATH detection now prefers spawnable `where.exe` hits such as `.exe`, `.cmd`, `.bat`, or `.com` over extensionless POSIX npm shims. Standard npm `.cmd` shims are resolved to their `node ` target so prompts/args stay literal; unknown `.cmd`/`.bat` files fall back to a quoted `cmd.exe call`. Codex found only through the restricted WindowsApps app alias is reported as installed but not launchable, with recovery copy instead of a failing Launch button. - -## Command Evidence - -| Check | Result | Notes | -|---|---:|---| -| `npx vitest run packages/shared/tests/tool-manifests.test.ts packages/agent/tests/tool-manifest-loader.test.ts packages/agent/tests/phase4-hooks-cohort.test.ts packages/agent/tests/tool-launcher.test.ts packages/agent/tests/hook-packages-runtime.test.ts packages/server/tests/tools-routes-launch.test.ts packages/server/tests/tools-routes.test.ts --reporter=dot` | Pass, 7 files / 96 tests | Proves manifest, loader, cohort, backend route, process, launch, hook route contracts, and package-packed installed hook lifecycle. Output includes expected mock embedding warning noise from server setup. | -| `npm run test -w apps/web -- src/components/os/apps/LauncherApp.test.tsx src/lib/launcher-prompt-args.test.ts src/lib/adapter.launcher.test.ts --reporter=dot` | Pass, 3 files / 28 tests | Proves Launcher A/B toggle, one hook-capable non-Claude example, live-output pane wiring, prompt arg helpers, and adapter launcher methods. Emits Node `punycode` deprecation warnings. | -| `npm run build` + in-app Browser rendered smoke on `/launcher?watch=1&skipOnboarding=true&skipBoot=true&skipBriefing=true` | Pass, partial state matrix | Fresh production web build passed. Browser DOM snapshot API failed with `TypeError: o.incrementalAriaSnapshot is not a function`, so evidence used the supported in-app Browser screenshot and targeted DOM-evaluate APIs. Artifacts: `output/playwright/launcher-t16-54147/launcher-t16-rendered-summary.json` plus five screenshots for mixed state, prompt summary, install success, verify failure, and running output. | -| `npx vitest run packages/hive-mind-hooks-core/tests --reporter=dot` | Pass, 5 files / 82 tests | Proves shared hook core handlers, install primitives, JSON register merge, path helpers, and fail-open signal behavior. | -| `npx vitest run packages/hive-mind-hooks-codex/tests packages/hive-mind-hooks-codex-desktop/tests packages/hive-mind-hooks-cursor/tests packages/hive-mind-hooks-hermes/tests packages/hive-mind-hooks-openclaw/tests packages/hive-mind-hooks-claude-code/tests packages/hive-mind-shim-core/tests --reporter=dot` | Pass, 55 files / 491 tests, 1 skipped | Proves package-level install/verify/uninstall, lifecycle handlers, Codex Desktop parity, shim core, fail-open behavior, and temp-config reversibility. Output is noisy with expected logs and warnings. | -| Official package typechecks for `hive-mind-shim-core`, `hive-mind-hooks-core`, `claude-code`, `codex`, `codex-desktop`, `cursor`, `hermes`, and `openclaw` | Pass, 8/8 | Each package script runs `tsc --build && tsc --noEmit -p tsconfig.test.json`. | -| `npm run build --workspace @waggle/hive-mind-hooks-claude-desktop` | Pass | Confirms the intentional no-bin Claude Desktop stub still builds. | -| Compiled bin help smokes for `claude-code-hooks`, `codex-hooks`, `codex-desktop-hooks`, `cursor-hooks`, `hermes-hooks`, and `openclaw-hooks` | Pass, 6/6 | Local compiled bin entrypoints boot and show usage. | -| `npx vitest run packages/agent/tests/hook-packages-runtime.test.ts --reporter=verbose` | Pass, 1 file / 1 test | Builds and packs `@waggle/hive-mind-shim-core`, `@waggle/hive-mind-hooks-core`, and all six hook-capable packages into tarballs, installs the local package closure into a clean temp project, then runs production-like `npx --yes @waggle/hive-mind-hooks- install/verify/uninstall` for `claude-code`, `codex`, `codex-desktop`, `cursor`, `hermes`, and `openclaw`. Each install pins a fake `hive-mind-cli --help` target, verify passes, uninstall removes the pointer, and the config is restored or removed as expected. | -| `npm run test --workspace @waggle/hive-mind-hooks-core -- --reporter=dot` | Pass, 5 files / 82 tests | Package-local script now delegates to the root Vitest config with a package-specific path. | -| Package-local `npm run test` for `hive-mind-hooks-claude-code`, `codex`, `codex-desktop`, `cursor`, `hermes`, `openclaw`, and `hive-mind-shim-core` | Pass, 55 files / 492 tests | Package-local scripts now run the intended root-config lanes. The shim script builds the in-monorepo CLI first, then its integration test verifies the CLI ESM resolver fix: `hive-mind-cli mcp call` now resolves the ESM-only MCP server via `import.meta.resolve`. | -| `npx vitest run packages/agent/tests/tool-launcher.test.ts packages/agent/tests/tool-detection.test.ts packages/agent/tests/tool-registry.test.ts packages/server/tests/tools-routes-launch.test.ts packages/server/tests/launch-args.test.ts --reporter=dot` | Pass, 5 files / 108 tests | Proves registry-aware detection metadata, launchable third-party adapter launch, prompt template application through `/api/tools/launch`, built-in launch/hook contracts, and route/process persistence behavior. Output includes expected mock embedding warning noise from server setup. | -| `npx vitest run packages/agent/tests/tool-launcher.test.ts packages/agent/tests/tool-detection.test.ts --reporter=dot` | Pass, 2 files / 73 tests | Adds Windows real-world launcher guardrails: `where.exe` now prefers spawnable `.cmd`/`.exe` hits over extensionless npm shims, standard npm `.cmd` shims resolve to their Node module target instead of raw `cmd.exe`, unknown `.cmd`/`.bat` files use a quoted fallback, and async child-spawn failures no longer become unhandled sidecar crashes. | -| `npx vitest run packages/agent/tests/tool-launcher.test.ts packages/agent/tests/tool-detection.test.ts --reporter=dot` | Pass, 2 files / 76 tests | Adds hook-management command guardrails: Windows hook commands resolve the Node-installed `npx.cmd` instead of `execFile('npx')` or a broken local shim, and default exec capture now uses the shared `.cmd` resolver. | -| `npx vitest run packages/server/tests/tools-routes-launch.test.ts packages/agent/tests/tool-process-tracker.test.ts packages/agent/tests/tool-launcher.test.ts --reporter=dot` | Pass, 3 files / 98 tests | Revalidates launch route, process tracker, observed launch, hook route, persistence/reconcile, registry-aware launch, and Windows command invocation behavior after the real-tool fix. Output still includes expected mock embedding warning noise. | -| `npm run build:packages` | Pass | Rebuilt shared/core/agent/server package output so the sidecar imports the updated `@waggle/agent` dist for real-tool Playwright evidence. | -| Built package detection probe via `node -e "import('./packages/agent/dist/tool-detection.js')..."` | Pass | On this Windows host, Codex resolves to `C:\Program Files\WindowsApps\OpenAI.Codex_26.623.19656.0_x64__2p2nqsd0c76g0\app\resources\codex.exe` and is now reported as `installed: true`, `launchable: false`, `version: null`, with the WindowsApps recovery diagnostic. OpenClaw still resolves through the spawnable npm `.cmd` path in the broader package probe. | -| `npx vitest run packages/agent/tests/tool-detection.test.ts --reporter=dot`; `npx vitest run src/components/os/apps/LauncherApp.test.tsx --reporter=dot` from `apps/web` | Pass, 30 agent tests + 15 Launcher tests | Adds focused Codex WindowsApps regressions: the detector reports the restricted app alias as installed but not launchable, and the Launcher hides the Launch button while showing recovery copy instead of generic adapter-not-configured text. Web test output includes the expected Node `punycode` deprecation warning. | -| `node -e "import('./packages/agent/dist/tool-command.js')..."` | Pass | Built helper resolves the real OpenClaw npm `.cmd` shim to `node C:\Users\MarkoMarkovic\AppData\Roaming\npm\node_modules\openclaw\openclaw.mjs` and preserves metacharacter args such as `foo&echoBAD` and `100%` without `cmd.exe`. | -| `WAGGLE_E2E_REAL_TOOLS=1 WAGGLE_E2E_PORT=34242 WAGGLE_E2E_BASE_URL=http://127.0.0.1:34242 npx playwright test tests/e2e/launcher-real-tool-lifecycle.spec.ts --project=chromium --reporter=list` | Pass, 1 file / 1 test | Fresh production build plus clean sidecar rendered Launcher, detected a real safe CLI (`OpenClaw` on this host), launched it through `/api/tools/launch` with safe `--version` args in observed mode, streamed real output, observed exit code 0, and verified `/api/tools/processes` cleared the pid. | -| `WAGGLE_E2E_REAL_HOOKS=1 WAGGLE_E2E_HOOK_HOME= USERPROFILE= HOME= WAGGLE_E2E_PORT=34247 WAGGLE_E2E_BASE_URL=http://127.0.0.1:34247 npx playwright test tests/e2e/launcher-real-hook-lifecycle.spec.ts --project=chromium --reporter=list` | Pass, 1 file / 1 test | Fresh production build plus clean sidecar drove `/api/tools/hooks` through real `install`, `verify`, and `uninstall` for all six hook-capable tools: `claude-code`, `codex`, `codex-desktop`, `cursor`, `hermes`, and `openclaw`. Each case ran against a throwaway `HOME`/`USERPROFILE`, asserted config and pointer creation, Verify returned `All checks passed.`, uninstall removed the pointer and restored or removed config as appropriate, and OpenClaw's managed hook dir was removed. The first broadened run timed out at the default 30s Playwright test limit; the spec now uses a 180s timeout for the 18 synchronous route calls. | -| `npm run test -w apps/web -- src/lib/adapter.authgate.test.ts src/lib/adapter.sse.test.ts src/lib/adapter.launcher.test.ts src/components/os/apps/launcher/ToolOutputPane.test.tsx src/components/os/apps/LauncherApp.test.tsx --reporter=dot` | Pass, 5 files / 72 tests | Adds and verifies the observed-output regression: after an `exit` event, `streamToolOutput()` closes the EventSource and does not reconnect/replay old buffered output. Also protects hook result visibility: install success is summarized with `Backup` and `Recovery` labels instead of a raw `stdout:` row, verify failure preserves stderr even when `error` is generic, Verify `[FAIL]` output is summarized as `Check failed` with the manual approval detail and no raw `[FAIL]`, uninstall output labels restore/cleanup rows as `Changed file`, `Restored from`, `Created file removed`, `Backup removed`, and `Pointer removed` without implying an install pointer, long hook output is capped behind a `More output` summary while keeping recovery guidance, a structured hook failure with no stderr/error is not replaced by raw `HTTP 400`, an empty-output Verify failure shows retry/uninstall/reinstall recovery copy, installed Claude Desktop is explicitly labeled as launch-only with no hook actions, and a detected launchable third-party adapter gets a Launch action and sends its raw prompt. Output includes expected Node `punycode` deprecation warnings. | -| `npx playwright test tests/e2e/launcher-rendered-states.spec.ts --project=chromium --reporter=list` | Pass, 1 file / 5 tests | Production-build rendered Launcher proof now covers sidecar-offline recovery with an inline `Retry tool detection` action, long hook stderr summarization with `More output`, hidden-line count, and recovery guidance, standard install output with `Changed file`, `Install pointer`, `Backup`, and `Recovery` labels without raw hook command chatter, all six hook-capable tools rendering install/verify/uninstall state transitions with `Hooks active` refreshes, and a non-built-in launchable adapter state with Launch-only/no-hook copy, prompt routing, and launch payload assertion. | -| `npm run test -w apps/web -- src/test/motion-class-hygiene.test.ts src/test/wave-u-chat-action-row.test.tsx --reporter=dot`; `npm run test -w apps/web -- src/test/build-warning-hygiene.test.ts src/test/motion-class-hygiene.test.ts --reporter=dot`; `npm run build` | Pass, 3 focused web test files + production build | Adds source hygiene guards that ban Tailwind-ambiguous `duration-[var(--mo-*)]` / `ease-[var(--mo-*)]` class tokens, require named motion utilities, and prevent the adapter from dynamically importing `shape-selection.ts`. The production build no longer emits the prior Tailwind ambiguity warnings or the `shape-selection.ts` dynamic/static import warning. Remaining build/playwright noise includes `NO_COLOR`/`FORCE_COLOR`, mock embedding banners, and expected hook negative-path logs. | -| `npm run test -w apps/web -- src/test/build-warning-hygiene.test.ts --reporter=dot`; `npm run typecheck:web`; `npm run build`; `WAGGLE_E2E_PORT=4320 WAGGLE_E2E_BASE_URL=http://localhost:4320 npx playwright test tests/e2e/user-journeys.spec.ts --project=chromium --grep "J3:|J5:|J6:|J-mobile: Command Center|J-mobile: first-run onboarding|J-route-coverage|J10:|J11:" --reporter=list` | Pass, 4 build-hygiene tests, web typecheck, production build, focused rendered smoke 8 passed / 1 skipped | Route surfaces, closed shell overlays, ChatHost, and PostHog analytics are lazy-loaded and guarded. Current production build no longer emits the Vite large-chunk warning; startup JS is 421.96 kB minified / 114.08 kB gzip, and PostHog is split into a separate 208.95 kB chunk. Focused Chromium smoke covers Workspace Switcher, keyboard shortcuts, Command Center mobile, first-run onboarding mobile, route shells, Home, and keyboard-help overlay. | -| `npx tsc --noEmit --project packages/shared/tsconfig.json`; `npx tsc --noEmit --project packages/agent/tsconfig.json`; `npx tsc --noEmit --project packages/server/tsconfig.json`; `npm run typecheck:web` | Pass, 4/4 | Proves the shared detection metadata, agent launch/process contracts, server route, and web UI stay type-consistent after the adapter launch fix. | -| Fresh in-app Browser route smoke on `http://127.0.0.1:8096/launcher` with sidecar `3336` | Pass for HTTP 400 symptom and empty-output recovery; T16 still partial | The real route rendered Tool Launcher, detected installed tools, and exposed hook actions. Clicking read-only `Verify` on the first hook-capable tool now renders `verify failed (exit 1)`, `No hook output was returned`, and retry/uninstall/reinstall guidance; it does not render `HTTP 400`, and console errors/warnings for the interaction were empty. The real hook command produced no stdout/stderr detail in that run, so real installed target-app install/verify/uninstall states still need proof. | -| In-app Browser mocked Verify check failure on `http://127.0.0.1:8104/launcher` | Pass for visible check/manual-trust copy; console not clean evidence | A browser-scoped API mock rendered installed Codex, clicked the single Verify action, and fulfilled the hook route with `[PASS]` and `[FAIL]` Verify stdout. The visible panel showed `CHECK FAILED`, `hook command trusted: manual approval required in Codex settings`, and `RECOVERY`, while raw `[FAIL]` was absent. The Browser DOM snapshot API again hit the known `incrementalAriaSnapshot` issue, so proof used targeted DOM evaluation and screenshot evidence. Console logs were contaminated by earlier failed mock attempts and background polling timeouts, so component tests remain the clean console owner. | -| In-app Browser rendered Claude Desktop mock state on `/launcher` | Pass for visible state; console not used as clean evidence | A browser-scoped API mock rendered installed Claude Desktop with one Launch button, no Install hooks or Verify buttons, a `Launch only` badge, and `Hooks are not supported for Claude Desktop yet.` copy. The Browser DOM snapshot API hit the known `incrementalAriaSnapshot` issue, so proof used targeted locators and screenshot evidence. Failed earlier mock attempts left stale console log entries in Browser's collector, so the component regression is the clean console owner for this state. | -| In-app Browser mocked Codex uninstall cleanup on `http://127.0.0.1:8105/launcher` | Pass for visible restore/cleanup copy; console not clean evidence | A browser-scoped API mock rendered installed Codex, clicked the single Uninstall hooks action, and fulfilled the hook route with standard uninstall stdout. The visible panel showed `Codex: uninstall OK`, `CHANGED FILE`, `RESTORED FROM`, `CREATED FILE REMOVED`, `BACKUP REMOVED`, and `POINTER REMOVED`; `Install pointer` and raw `- backup removed` text were absent. The test tab completed onboarding via the visible `Skip setup` control first; sidecar-off shell polling still produced background console errors, so component tests remain the clean console owner. | - -## UX Findings - -| ID | Severity | Finding | Evidence | Correction Needed | -|---|---:|---|---|---| -| T16-1 | Rendered fixed; packaged residual | Rendered Launcher hook states are now codified across all six hook-capable tools, but packaged desktop hook-status transitions are not yet proven. | The in-app Browser smokes render installed, not installed, hooks-active, running, Phase 4/unsupported, prompt summary, install success, verify failure, mocked uninstall cleanup, and live-output states. A codified Playwright spec now proves sidecar-offline retry, long stderr summarization, standard install changed-file/pointer/backup/recovery labels, all six hook-capable tools rendering install/verify/uninstall state transitions with `Hooks active` refreshes, and rendered non-built-in adapter launch-only/prompt behavior. A gated real-tool Playwright smoke now renders Launcher with a real detected CLI and proves observed safe launch/output/exit/process-clear through the sidecar. A gated route-level smoke now proves real hook install/verify/uninstall for all six hook-capable tools against an isolated profile. | Add packaged desktop hook-status evidence, or explicitly defer packaged hook management from final scoring. | -| T16-2 | Route + rendered fixed; packaged residual | Real detected-CLI launch, the full hook-capable route lifecycle, and the full rendered installed-app hook matrix are proven; packaged desktop integration is not. | The packed package command lifecycle is proven hermetically for all six hook-capable packages. A gated Playwright smoke drove real OpenClaw detection and safe observed `--version` launch through the production sidecar route, streamed output, saw exit 0, and verified process tracking cleared the pid. The route lifecycle smoke now drives `/api/tools/hooks` through real `install`, `verify`, and `uninstall` for `claude-code`, `codex`, `codex-desktop`, `cursor`, `hermes`, and `openclaw` against an isolated `USERPROFILE/HOME`, proving config/pointer creation and cleanup without touching the user's real profile. The rendered state spec mocks the local API adapter but covers every supported hook-capable card's install, verify, uninstall, and refreshed hooks-active UI transitions. No packaged-desktop hook-status transition has been proved. | Add packaged desktop state evidence, or document approved deferrals for installed-app config-editing UI flows. | -| T16-3 | Local fixed | Package-pack `npx @waggle/hive-mind-hooks-` resolution is now proven for all Launcher hook targets. | `hook-packages-runtime.test.ts` installs the packed local package closure into a temp project and invokes every hook-capable package with the same package-name shape Launcher uses: `npx --yes @waggle/hive-mind-hooks- install/verify/uninstall`. | Keep this in the release lane; registry-only proof after actual publication remains launch/deploy evidence rather than a local code blocker. | -| T16-4 | Rendered fixed; release residual | Hook result copy now has a compact structured panel for focused install/verify/uninstall results: backup paths are labeled, raw `stdout:` is hidden, Verify check failures become `Check failed` rows with manual approval details, uninstall restore/cleanup rows do not imply install state, long output is capped behind a count summary, structured live failures are not masked as `HTTP 400`, empty-output Verify failures show recovery copy, offline detection has an inline Retry action, route-level lifecycle is real-proved for all six hook-capable tools, and rendered all-tool install/verify/uninstall transitions are codified. | Red component tests reproduced install success hiding a stdout backup path, verify failure dropping stderr when `error` was generic, empty-output Verify showing only an exit code, Verify `[FAIL]` output showing as generic raw output, uninstall cleanup rows appearing as generic Backup/Install pointer state, and long stderr flooding the result panel. A red adapter test reproduced the live shape `{ ok:false, code:1, stdout:'', stderr:'' }` being overwritten as `HTTP 400`; the adapter now preserves that hook envelope. The focused Launcher/web suite now proves `Backup` and `Recovery` labels for install output, stderr preservation, no raw `stdout:` row for the covered install case, `Check failed` manual-approval output without raw `[FAIL]`, uninstall restore/cleanup labels, `More output` summarization for long hook output, and empty-output recovery copy. Browser evidence on mocked Verify and Uninstall states renders the manual approval detail, `RECOVERY`, and restore/cleanup labels. A fresh real Browser smoke renders `verify failed (exit 1)` plus retry/uninstall/reinstall guidance instead of `HTTP 400`. A codified rendered Playwright spec proves standard install changed-file/pointer/backup/recovery labels, offline retry, long-output summarization, and all-six hook-card install/verify/uninstall transitions. A gated route Playwright smoke proves real install/verify/uninstall for all six hook-capable tools succeeds through `/api/tools/hooks` after Windows `npx` command resolution was fixed. | Keep the lifecycle panel regression green; finish packaged desktop status proof and warning hygiene. | -| T16-5 | Focused fixed | Claude Desktop's unsupported-hook state is explicit in the UI. | Manifest marks it non-hook-capable and its package is a no-bin stub. A red component test reproduced the old state where installed Claude Desktop had only Launch and no explanation. The Launcher now shows a `Launch only` badge, `Hooks are not supported for Claude Desktop yet.` copy, one Launch button, and no Install hooks or Verify actions; a Browser-rendered mocked state confirmed the visible layout. | Keep this focused regression in the T16 lane. | -| T16-6 | Focused fixed | Launchable third-party adapters can be detected and launched through the route/UI contract; hook management remains intentionally built-in-only. | Red tests reproduced the gap: `launchTool()` rejected a registered `foo-cli`, `/api/tools/launch` rejected the adapter id before applying its prompt template, detection omitted launch/prompt metadata, and Launcher rendered the adapter as a non-actionable Phase 4 item. The current contract uses registry metadata for detection, validates launch IDs against `getToolRegistry()`, applies `promptArgTemplate` server-side, tracks adapter process IDs as strings, and shows a Launch action plus prompt routing for launchable detected adapters. Focused backend/agent tests pass 108/108, tracker/route regression tests pass 96/96, the focused web Launcher suite passes 72/72, shared/agent/server/web typechecks pass, and rendered Playwright coverage proves a non-built-in adapter shows launch-only/no-hook copy, routes the prompt, and sends the expected launch payload. | Keep third-party hook management disabled until a safe hook command/package policy exists. | -| T16-7 | Local fixed | Hook package-local test scripts now run their intended lanes. | Package-local `npm run test --workspace ...` now passes for hook core, all six hook-capable packages, and shim core. The fix also replaced the CLI's CommonJS-only `createRequire().resolve()` path with ESM-compatible `import.meta.resolve` for the MCP server entry. | Keep these package-local scripts in the release lane; remaining package-local command-shape gaps are tracked under T17. | -| T16-8 | Partially fixed | Standard hook/test output is still too noisy, but the Tailwind motion-token ambiguity warnings, `shape-selection.ts` dynamic/static import warning, and Vite large-chunk warning are fixed. | Passing root-run hook tests still emit install logs, fail-open warnings, sidecar-unreachable drops, and server embedding degradation banners. Playwright output still includes `NO_COLOR`/`FORCE_COLOR` and mock-embedding noise. The old Tailwind ambiguity warnings from `duration-[var(--mo-base)]`, `duration-[var(--mo-fast)]`, and `ease-[var(--mo-ease)]` no longer appear after replacing them with named motion utilities guarded by `motion-class-hygiene.test.ts`; the defeated `shape-selection.ts` dynamic import no longer appears after promoting the adapter dependency to a static import guarded by `build-warning-hygiene.test.ts`; the oversized startup chunk no longer appears after lazy-loading routes, closed shell overlays, ChatHost, and PostHog analytics behind `build-warning-hygiene.test.ts`. | Quieten or isolate the remaining expected warnings in the standard release lane so real hook failures stand out. | -| T16-9 | Partially fixed | Launcher prompt metadata is fixed, including third-party prompt-template metadata, but prompt-support transparency still needs a focused pass. | Current Launcher source gives the optional prompt textarea `id`, `name`, `aria-label`, `autocomplete`, and a visible label. The accepts/ignores summary now includes adapters whose manifests have `promptArgTemplate`, but it still appears only after text exists. | Make prompt support obvious per tool before launch. This can be bundled with T10 form/focus work. | -| T16-10 | Focused fixed | Observed live output no longer reconnects and replays duplicate terminal output after process exit. | The red regression in `adapter.sse.test.ts` reproduced the issue: after `line` and `exit`, the EventSource stayed open and could reconnect. `streamToolOutput()` now closes its EventSource on a valid `exit` event; the current focused Launcher/web suite passes 5 files / 72 tests. | Keep this regression in the T16 lane; rendered no-duplicate screenshot evidence can be refreshed when the broader Launcher state matrix is rerun. | -| T16-11 | Focused fixed | Windows npm shim launch/version behavior is now safer, failed child spawns no longer crash the sidecar, and restricted Codex WindowsApps aliases no longer show a failing Launch path. | Real evidence found `where.exe openclaw` returning an extensionless POSIX shim before `openclaw.cmd`, which made Node spawn fail. Detection now prefers spawnable Windows hits, standard npm `.cmd` shims resolve to their Node module target, unknown `.cmd`/`.bat` files use a quoted fallback, and `defaultSpawnDetached`/`defaultSpawnObserved` guard async child `error` events. The first real Playwright smoke reproduced the old behavior as a sidecar crash; the final smoke passed. On this Windows host, Codex detects only through a WindowsApps app alias that refuses command-line exec; detection now marks that install `launchable: false`, and Launcher shows recovery copy instead of a Launch button. | Keep the Codex WindowsApps regression. A future direct-launch path should require a supported PATH CLI or a proven desktop-specific launch bridge. | -| T16-12 | Focused fixed | Windows hook-management command execution now resolves `npx` correctly. | A gated route smoke first failed because `/api/tools/hooks` returned HTTP 400 with empty stdout/stderr: `execFile('npx')` on Windows cannot resolve the npm shim, and a bare `npx.cmd` can pick the wrong shim under npm-started PATHs. `runHookCommand()` now prefers the `npx.cmd` beside `process.execPath`, and default exec capture uses the shared `.cmd` resolver. The broadened route smoke passes real install/verify/uninstall for all six hook-capable tools in an isolated profile. | Keep the gated route smoke in the release lane. | - -## Persona Impact - -| Persona | Current T16 cap | Why | -|---|---:|---| -| Engineer / power user | 8/10 | They can now trust packed-package command lifecycle, focused/rendered third-party launch behavior, Windows npm-shim launch handling, one real observed CLI launch, all six real hook route lifecycles, and the all-six rendered hook matrix. Packaged desktop status evidence and warning hygiene still cap trust. | -| Solo founder | 8/10 | Hook setup edits personal AI-tool configs; packed lifecycle evidence plus Backup/Recovery, install pointer, manual-approval, uninstall cleanup, long-output, offline retry copy, one real safe launch, all six isolated route lifecycles, and all-six rendered transitions improve confidence. Remaining concern is packaged desktop status transitions. | -| Team admin | 7/10 | Unsupported Claude Desktop messaging is now explicit, one real launch path is proven, all six hook-capable route lifecycles are proven, and all-six rendered state transitions are covered, but team rollout still needs packaged desktop evidence and quieter release output. | -| Researcher | 8/10 | Less central, but memory capture trust depends on hooks failing open and reporting status clearly. | -| Mobile executive | 8/10 | Less central, but launch/hook management still needs clear compact states if surfaced on smaller screens. | - -## Acceptance For Closing T16 - -- Rendered Launcher evidence covers detected, not detected, installing, hooks active, verify success, verify failure, uninstall, all six hook-capable install/verify/uninstall transitions, sidecar offline, running observed output without duplicate replay, and unsupported Claude Desktop. -- Command lifecycle evidence covers install, verify, and uninstall for all six hook-capable packages using the production-like invocation path. -- `npx`/package-pack resolution is verified for every hook package that Launcher can invoke; registry-only proof is captured after actual publication. -- Hook result UI exposes backup/pointer paths and manual trust steps without dumping raw logs as the primary UX. -- Third-party adapter launch behavior has focused route/UI coverage and rendered non-built-in adapter proof. -- Real detected CLI launch behavior has at least one safe observed smoke, and hook install/verify/uninstall has isolated route lifecycle evidence for all six hook-capable tools. -- Hook/shim package-local test commands pass; any broader package-local command-shape gaps are tracked under T17. - -## Packet Decision - -Keep T16 as `Phase 2 Pending`. The rendered Launcher proof now includes all six hook-capable install/verify/uninstall transitions, packed-package `npx` lifecycle is locally proven, hook/shim package-local scripts now pass, observed output no longer reconnects after exit, component tests prove hook stdout/stderr details are not dropped, covered install output now renders Backup/Recovery labels instead of raw stdout, rendered standard install output shows changed-file and install-pointer labels, Verify `[FAIL]` output now renders as `Check failed` with manual-approval detail, uninstall output now renders restore/cleanup labels without implying install state, long hook output is summarized behind `More output`, offline detection now has rendered Retry recovery, Claude Desktop is explicitly launch-only, launchable third-party adapters are covered through detection/route/UI/rendered tests, the live Verify path no longer renders generic `HTTP 400` or bare empty-output exit codes, Windows npm shims are launchable/version-probed, Codex WindowsApps installs are blocked with recovery copy instead of a failing Launch button, one real detected CLI launch/output/exit/process-clear lifecycle is proven, all six real `/api/tools/hooks` install/verify/uninstall route lifecycles are proven in an isolated profile, the Tailwind motion-token ambiguity warnings are gone, and the `shape-selection.ts` dynamic/static import warning is gone. Packaged desktop hook-status transitions and remaining warning hygiene still block the final "complete UX, all parts functional" claim unless the user explicitly defers AI-tool hook lifecycle from the five-persona score. diff --git a/docs/audits/2026-07-08-analysis-completion-audit.md b/docs/audits/2026-07-08-analysis-completion-audit.md deleted file mode 100644 index 99150a7..0000000 --- a/docs/audits/2026-07-08-analysis-completion-audit.md +++ /dev/null @@ -1,85 +0,0 @@ -# UX Goal Analysis Completion Audit - -Status: implementation is underway; full goal is not complete. - -Original goal: - -> Analyse the complete UX and all usage scenarios you can think of, every single part of the system has to be analysed and tested. The goal is that all is functional, working, logical, usable, seamless, intuitive, well structured, and designed. Done when judges give us 9/10 - 5 different personas. First analyse, define all to be corrected, then after approval we will code. - -## Evidence Artifacts - -- Approval brief: `docs/audits/2026-07-08-ux-approval-brief.md` -- Complete UX audit: `docs/audits/2026-07-08-complete-ux-usage-audit.md` -- Route/scenario manifest: `docs/audits/2026-07-08-ux-route-scenario-manifest.md` -- Route evidence T11 analysis: `docs/audits/2026-07-08-route-evidence-t11-analysis.md` -- State/failure scenario matrix: `docs/audits/2026-07-08-ux-state-failure-scenario-matrix.md` -- Focused T12 state/failure analysis: `docs/audits/2026-07-08-state-failure-t12-analysis.md` -- Focused Mobile Executive T2/T12 analysis: `docs/audits/2026-07-08-mobile-executive-t2-t12-analysis.md` -- Non-main surface scope: `docs/audits/2026-07-08-ux-non-main-surface-scope.md` -- Five-persona scorecards: `docs/audits/2026-07-08-five-persona-judge-scorecards.md` -- Five-persona judge runbook: `docs/audits/2026-07-08-five-persona-judge-runbook.md` -- Correction register: `docs/audits/2026-07-08-ux-correction-register.md` -- Web Guidelines line findings: `docs/audits/2026-07-08-web-guidelines-line-findings.md` -- Runtime accessibility T10 analysis: `docs/audits/2026-07-08-runtime-a11y-t10-analysis.md` -- Visual T5 classification: `docs/audits/2026-07-08-visual-t5-classification.md` -- First-run onboarding T1/T2/T12 analysis: `docs/audits/2026-07-08-first-run-onboarding-t1-t2-t12-analysis.md` -- Shell overlay T10/T12 analysis: `docs/audits/2026-07-08-shell-overlays-t10-t12-analysis.md` -- Source inventory consistency audit: `docs/audits/2026-07-08-source-inventory-consistency-audit.md` -- Browser Companion T19 analysis: `docs/audits/2026-07-08-browser-companion-t19-analysis.md` -- Desktop wrapper T14 analysis: `docs/audits/2026-07-08-desktop-wrapper-t14-analysis.md` -- Admin/CLI utility T15 analysis: `docs/audits/2026-07-08-admin-cli-utility-t15-analysis.md` -- AI-tool hook lifecycle T16 analysis: `docs/audits/2026-07-08-ai-tool-hook-t16-analysis.md` -- Developer/substrate T17 analysis: `docs/audits/2026-07-08-developer-substrate-t17-analysis.md` -- Ops/deployment/CI/judging T18 analysis: `docs/audits/2026-07-08-ops-deploy-ci-judging-t18-analysis.md` -- Public launch funnel T13 analysis: `docs/audits/2026-07-08-launch-funnel-t13-analysis.md` -- Phase 1 implementation plan: `docs/superpowers/plans/2026-07-08-ux-phase-1-corrections.md` - -## Requirement Trace - -| Goal requirement | Current evidence | Status | Remaining condition | -|---|---|---|---| -| Analyze complete UX | Main audit covers shell, Home, workspaces, chat, memory, agents, skills/connectors/MCP/marketplace/launcher, team/admin/billing/vault/backup/compliance, Settings, desktop/mobile, static UX guidelines, and rendered test evidence. | Analysis ready | Keep audit updated as fixes land. | -| Analyze all usage scenarios we can think of | Route/scenario manifest lists route-level journeys; state/failure matrix lists account, tier, disclosure, model, data volume, offline, destructive, responsive, accessibility, and performance state combinations; the focused T12 supplement turns those into persona-specific state-bundle fields and correction candidates; the focused mobile supplement adds rendered 390 x 844 evidence for Home, Settings, Profile, Memory, workspace chat, Command Center, and Workspace Switcher; the first-run supplement exercises clean-data onboarding without skip flags through desktop completion and mobile Profile. | Analysis ready | Add new scenarios only if implementation or judge runs reveal missing cases. | -| Every part of the system analyzed and tested | Route manifest maps every registered route, major overlay, and the embedded/retired app surfaces found in source inventory; the focused T11 supplement now records the AppShell route registry, direct route-reference counts, app route-table command evidence, component evidence for command-only routes, ad hoc smoke for the previous zero/thin route set, a current all-route built-preview smoke covering 33 desktop routes plus 11 mobile spot-checks, and zero/thin route correction candidates. Focused overlay evidence now covers Keyboard Shortcuts, Persona Switcher, Spawn Agent, Workspace Switcher, Notification Inbox, Command Center, Create Workspace, Upgrade Modal, and source-only Context Rail/Onboarding Tooltip/Trial Expired states. Non-main surface scope maps `apps/www`, Tauri wrapper, installer/update, release workflow, active sidecar-startup paths, admin web, CLI launchers, marketplace CLI, memory/MCP utilities, AI-tool hook lifecycle packages, Browser Companion extension, SDK/server/worker/WaggleDance, substrate/compiler workspaces, deployment/ops config, CI, benchmarks, and judging artifacts. Additional non-main command/rendered evidence now covers `apps/www` tests/build, host-corrected local production launch-site route/API smoke, fresh public-site rendered Browser evidence, desktop TypeScript/static tests, static Tauri config/update tests, sidecar resource preflight, service-level E2E, utility/admin Vitest slices, utility TypeScript/build checks, source and built help/runtime smokes, MCP protocol smoke, hive-mind CLI test-discovery and help-side-effect evidence, T16 shared/agent/server route-contract tests, Launcher/prompt/adapter tests, root-run hook/shim package tests, hook/shim package-local scripts, hook package typechecks, compiled hook-bin help smokes, 13/13 remaining workspace no-emit TypeScript, agent/core/optimizer/weaver package tests, root-run SDK/substrate/shared/worker/WaggleDance/compiler tests, server full-suite plus isolated benchmark evidence, YAML/Compose config evidence, ignored env-file tracking checks, benchmark harness typecheck, root-run benchmark tests, Browser Companion source inventory, direct sidecar save evidence, current toolbar/extraction probes, legacy-trust extension save evidence, focused secure token-bootstrap/background-save coverage, secure-default loaded-extension save evidence, and Memory frame/UI confirmation. | Partially tested | T11 must still codify rendered-route evidence and add deeper workflow/state owners; remaining unsampled T10/T12 overlay/state findings must be fixed or deferred; T13/T14/T15/T16/T17/T18/T19 must fix or defer launch/desktop/utility/hook/developer/ops/extension gates before final claim. | -| Functional and working | In-app Phase 1/T10/T11/T12 evidence is much stronger: core accountless lane, shortcut/navigation, visual tracked views, mobile Settings/onboarding, route ownership, and five-persona state bundles have passing evidence. Launch/non-main gates still block a full-system claim. | Not achieved | Finish or explicitly defer launch, packaged desktop, utility/admin, hook, developer/substrate, ops/deploy, and Browser Companion gates; then run judge scoring. | -| Logical and usable | The register maps remaining logical/usable blockers to T10/T12/T13-T19, and current five-persona bundles pass route, failure, console, network, page-error, and visible-overflow gates for the accountless/no-LLM sampled lane. | Not achieved | Expand or defer real authenticated Teams server, destructive/failure, packaged desktop/launch, hook, utility, developer, ops, and Browser Companion evidence. | -| Seamless, intuitive, well structured, designed | Current sampled in-app lane is cleaner, including 0 visible overflow in the five-persona bundle and fixed mobile workspace/chat strip overflow. Final readiness is still below a full 9/10 until judge scorecards and non-main gates are closed or deferred. | Not achieved | Clear remaining T10/T12 gaps, non-main gates, and final judge protocol. | -| Five different judge personas score 9/10 | Scorecard artifact defines the five judges, scoring dimensions, caps, and evidence requirements; state/failure matrix defines the state bundle each judge must exercise; `tests/five-persona-state-bundle-contract.test.ts` now enforces that every persona scorecard declares account, billing, disclosure, model, data, offline/error, viewport, non-main gate decisions, Mobile Executive Command Center proof, Marketplace unavailable proof, Agents slow-list proof, Agents large-list proof, Memory slow-list proof, Timeline/Event large-list proof, Files upload failure/success proof, billing checkout unavailable proof, Team active billing proof, Team settings unlocked proof, billing checkout success/cancel return proof, backup restore-failure proof, approval grant revoke-all proof, local model unavailable proof, and Cockpit degraded-health proof; `tests/e2e/five-persona-state-bundles.spec.ts` now writes rendered accountless/no-LLM route plus sampled failure/workflow/scale/slow-data and overlay evidence under `output/playwright/five-persona-state-bundles/`. | Not achieved | Expand or defer real authenticated Teams server, real deployed/provider checkout success/cancel, packaged desktop/launch, hook, utility, developer, ops, and browser-companion evidence, then run judge protocol; all five must score at least 9/10. | -| First analyze, define all to be corrected | Audit, correction register, approval brief, and Phase 1 plan define findings, tickets, phases, files, tests, judge impact, and closure evidence. | Satisfied for approval | Keep the register current as corrections land and new judge evidence exposes gaps. | -| Then after approval we will code | User approved implementation; Phase 1/T10/T11/T12 corrections and guard tests are landing against the correction register. | Execution underway | Finish remaining correction-register items, capture rendered five-persona evidence, and run judge protocol. | - -## Current Blockers To Full Goal Completion - -1. The in-app accountless lane is substantially improved, but a full-system claim remains blocked by launch, packaged desktop, utility/admin, hook, developer/substrate, ops/deploy, and Browser Companion gates unless explicitly deferred. -2. Final five-persona judge scoring has not happened. -3. Real authenticated Teams server, real deployed/provider checkout success/cancel, packaged desktop, launch, hook lifecycle, remaining broader slow-data/performance, and remaining destructive/failure states are not yet fully evidenced or deferred. -4. Route evidence is explicit and regression-owned for the route-existence layer; T11 has current all-route built-preview evidence and codified focused route coverage. Remaining route-adjacent gaps are deeper workflow/state owners, runtime accessibility, and persona-specific failure/authenticated lanes tracked under T10/T12/T16. -5. T12 is explicit and partially evidenced but not closed: a focused state slice passes 9 files / 79 tests; chat SSE drop/retry coverage exists by source inspection; and the five-persona state-bundle E2E now passes 5/5 with route evidence, sampled failure/workflow/scale/slow-data probes, overlay evidence, screenshots, console/network/page-error checks, visible element-bounds checks, and deferral fields bundled together per persona. Current sampled rendered probes include chat backend offline, Memory API unavailable, Memory slow-list handling, Memory large-list handling, Wiki export failure, Timeline/Event large-list handling, Launcher sidecar offline, Cockpit health degraded, Agents slow-list handling, Agents large-list handling, Marketplace unavailable, Marketplace large-catalog handling, Files upload failure, Files upload success, Files large-list handling, billing checkout unavailable, Team active billing state, Team settings unlocked state, billing checkout success return, billing checkout cancel return, backup create failure, backup restore failure, approval grant revoke-all, local model runtime unavailable, and mobile chat backend offline. Remaining T12 closure needs real authenticated Teams server, real deployed/provider checkout success/cancel, packaged desktop/launch, hook lifecycle, broader slow-data/performance states, and explicit deferrals where applicable. -6. T10 is now both static and runtime-evidenced for the sampled core route and overlay set: focused axe/runtime gates, Command Center description/mobile fit, Notification Inbox semantics/mobile fit, Create Workspace hierarchy, shell landmarks, Files scroll regions, and many named-control/form-metadata fixes are covered. T10 remains open for broader unsampled form metadata, remaining unsampled icon-only controls, modal focus-return evidence beyond the covered overlays, and first-run/account-state polish that is still tracked under T1/T12. -7. Launch funnel, desktop wrapper, utility/admin, AI-tool hook, developer API/background/substrate, ops/deployment/CI/benchmark/judging, and Browser Companion extension gates are now explicit and partially command-tested or source-inventoried; T13 currently has a launch-scoped P0 from canonical `waggle-os.ai` and `www.waggle-os.ai` DNS failing to resolve, missing signed installer artifacts, checkout/deploy/legal proof gaps despite fresh clean-console localhost evidence, and Vercel/DNS proof still open; T14 has static/native-source evidence plus release/tray source hardening and source/unit/typecheck proof that native update/service-watchdog events surface as toasts, but still lacks packaged interaction smoke and packaged proof of update/service UX; T15 has passing source/test/build lanes, focused marketplace built help/invalid-command plus package manifest/packed-file alignment and clean installed packed-CLI `npx` help/invalid-command recovery, launcher help/invalid-port/occupied-port recovery plus packed first-command, clean installed occupied-port startup-recovery proof, and clean installed long-running `/health` startup, `@waggle/cli` built/packed/local package-closure installed `npx` help plus installed local REPL startup/slash-command/exit and streamed chat/provider plumbing, memory MCP built read/write plus local package-closure installed read-only startup, hive-mind MCP built read/write plus local package-closure installed read-only startup, hive-mind CLI local package-closure installed `npx` help, successful memory/hive-mind MCP protocol smokes, admin-web shell/mobile/deep-link/label fixes, and a package-owned admin-web rendered gate covering all seven pages at desktop/mobile widths plus browser back/forward traversal, page-level keyboard traversal, desktop/mobile visual snapshots, malformed analytics response recovery, all-page initial API-failure recovery, rendered mutation/destructive-failure recovery for capability policy save, capability override create/remove, capability request decision, member invite, member role change, member removal, and team settings save, plus local bearer-auth wrong-token/valid-token behavior, but registry-only proof after internal package publication remains open; T16 has strong route/contract, hook package, hook/shim package-local scripts, typecheck, compiled-bin, packed-package `npx` lifecycle, focused no-reconnect observed-output coverage, hook stdout/stderr/Backup-Recovery/Check-failed/uninstall-cleanup/More-output/structured-failure/empty-output/launch-only detail coverage, focused registry-aware third-party adapter launch coverage, partial rendered Launcher Browser evidence, codified Playwright standard install changed-file/pointer/backup/recovery labels, all six hook-capable install/verify/uninstall rendered transitions, sidecar-offline Retry, long-stderr summarization, and non-built-in adapter launch-only/prompt proof, Browser smokes where real Verify renders `verify failed (exit 1)` with retry/uninstall/reinstall guidance instead of `HTTP 400`, mocked Codex Verify renders manual-approval rows without raw `[FAIL]`, and mocked Codex Uninstall renders restore/cleanup labels without `Install pointer`, plus gated real-tool OpenClaw launch/output/exit/process-clear proof, all-six gated isolated `/api/tools/hooks` install/verify/uninstall proof, Windows npm-shim launch fixes, Windows hook `npx` resolution fixes, Codex WindowsApps launchability/recovery fixes, Tailwind motion-token warning cleanup, `shape-selection.ts` dynamic/static import warning cleanup, and startup JS chunk cleanup below Vite's 500 kB threshold. T16 remains open for packaged desktop hook-status evidence and remaining warning hygiene; T17 has broad package evidence but remaining non-hook package-local test-script failures and a full-server-suite perf flake; T18 has config/benchmark evidence but secret-safe ops logging, Render target, CI/infra, local Docker-engine availability, benchmark package-local tests, and current judging artifacts remain open; T19 now has source evidence, direct sidecar save evidence, content-script extraction evidence, legacy-trust extension save evidence, focused secure token-bootstrap/background-save coverage, secure-default loaded-extension extraction/save/frame confirmation, popup keyboard/focus/Enter save proof, direct popup Save page click evidence, restricted-page disabled-state recovery, honest memory-destination copy, context-menu handler coverage, stable packaged-ID pairing proof, Memory search provenance consistency for imported captures, existing chat `auto_recall`/catch-up imported provenance, sticky accessible popup recovery, and rendered Memory UI confirmation after secure popup saves, but still lacks native toolbar-bubble proof, native context-menu click proof or deferral, and signed Web Store/installer-distributed extension proof if release packaging is scored. Future recall result shapes need separate proof if scored. None of T13/T14/T15/T16/T17/T18/T19 is fully fixed or deferred. - 2026-07-09 T16 update: Codex WindowsApps launchability/recovery is now fixed at the UX contract layer. The restricted WindowsApps alias is detected as installed but not launchable, and Launcher shows recovery copy instead of a Launch button. - 2026-07-09 T16 route update: the isolated `/api/tools/hooks` lifecycle smoke now covers all six hook-capable tools (`claude-code`, `codex`, `codex-desktop`, `cursor`, `hermes`, `openclaw`) for install, verify, and uninstall. - 2026-07-09 T16 rendered update: `tests/e2e/launcher-rendered-states.spec.ts` now covers all six hook-capable tools rendering install, verify, uninstall, and refreshed hooks-active transitions. T16 remains open for packaged desktop hook-status evidence and warning hygiene. - 2026-07-09 T16 warning update: Tailwind ambiguous motion-token warnings are removed through named `duration-mo-*` / `ease-mo` utilities and `motion-class-hygiene.test.ts`; the `shape-selection.ts` dynamic/static import warning is removed through a static adapter import guarded by `build-warning-hygiene.test.ts`; the Vite large-chunk warning is removed by lazy-loading routes, closed shell overlays, ChatHost, and PostHog analytics, leaving the startup JS chunk at 421.96 kB minified / 114.08 kB gzip. Remaining warning hygiene covers color-env, embedding, and hook negative-path noise. - 2026-07-09 T14 event update: `TauriDesktopEventBridge` now mounts `listenDesktopShellEvents()` so `waggle://update-available`, `waggle://service-status`, and `waggle://service-restart-needed` become visible toasts; `tauri-bindings.test.ts`, `tauri-config.test.ts`, and `npm run typecheck:web` pass for this source/unit layer. Packaged watchdog/update smoke remains open. - 2026-07-09 T14 packaged-startup update: the debug Tauri binary now builds with `npx tauri build --debug --no-bundle`, launches from `app/src-tauri/target/debug/waggle.exe`, starts bundled `target/debug/resources/service.js`, and reaches `/health` with `status: ok`, healthy DB, and running watchdog. The smoke fixed invalid `plugins.dialog`, disabled updater runtime registration while updater config is absent, corrected bundled sidecar path selection, aligned bundled Node/native ABI, and allowed the Tauri `http://tauri.localhost` origin. MSI/WiX packaging, packaged tray interactions, close-to-tray, global shortcut, forced watchdog toast proof, installer trust, and signed-update proof remain open. -8. Five-persona judge run has not happened. -9. Judge scores are currently capped by known blockers. - -## Completion Criteria Before Marking Goal Complete - -The goal can only be marked complete after: - -1. Phase 1 is approved, implemented, and verified. -2. Remaining P1/P2 work is either fixed or explicitly deferred without affecting judged journeys. -3. Route/scenario manifest has evidence owners for every registered route and major overlay. -4. Verification commands pass with current source and fresh-port browser evidence. -5. Desktop/mobile screenshots prove no critical clipping, overlap, or unusable navigation. -6. State/failure bundles are declared for every judge persona and each bundle has evidence or an approved deferral. -7. Launch funnel, desktop wrapper, utility, hook, developer/substrate, ops/deployment/judging, and Browser Companion extension gates are fixed and verified, or the user explicitly defers them from the five-persona score. -8. Five scorecards are filled with evidence and every persona scores at least 9/10. -9. Correction register shows no open P0 and no unapproved judge-blocking P1. - -## Current Recommendation - -Do not mark the goal complete. Continue focused implementation and evidence capture against the correction register, with the next meaningful gates being broader T12 failure/authenticated state coverage and the non-main T13-T19 gates unless the user explicitly defers them from the five-persona score. diff --git a/docs/audits/2026-07-08-browser-companion-t19-analysis.md b/docs/audits/2026-07-08-browser-companion-t19-analysis.md deleted file mode 100644 index f1f8118..0000000 --- a/docs/audits/2026-07-08-browser-companion-t19-analysis.md +++ /dev/null @@ -1,222 +0,0 @@ -# Browser Companion T19 Analysis - 2026-07-08 - -Status: implementation supplement. T19 is narrowed, not fully closed. - -Purpose: deepen T19 evidence for `apps/browser-ext`, the Chrome MV3 Browser Companion that saves pages and selections into Waggle memory. - -## Sources Inspected - -- `apps/browser-ext/manifest.json` -- `apps/browser-ext/popup.html` -- `apps/browser-ext/popup.js` -- `apps/browser-ext/background.js` -- `apps/browser-ext/content.js` -- `apps/browser-ext/README.md` -- `packages/server/src/local/routes/browser-ext.ts` -- `packages/server/src/local/routes/memory.ts` -- `packages/server/src/local/cors-config.ts` -- `apps/web/src/components/os/settings/CoverageCompassCard.tsx` - -Guideline baseline: Vercel Web Interface Guidelines, fetched 2026-07-08 from `https://raw.githubusercontent.com/vercel-labs/web-interface-guidelines/main/command.md`. - -## Commands Run - -```powershell -node --check apps/browser-ext/popup.js -node --check apps/browser-ext/background.js -node --check apps/browser-ext/content.js -node -e "" -npx tsc --noEmit --project packages/server/tsconfig.json -Test-NetConnection 127.0.0.1 -Port 3333 - - - - - -node output/playwright/browser-companion-toolbar-3333/run-toolbar-popup-smoke.mjs -npx tsx -e "" -npx vitest run packages/server/tests/local/browser-ext-auth.test.ts packages/server/tests/local/network-auth.test.ts tests/browser-companion-background.test.ts -npx eslint apps/browser-ext/background.js apps/browser-ext/popup.js apps/browser-ext/content.js packages/server/src/local/cors-config.ts packages/server/src/local/security-middleware.ts packages/server/src/local/routes/browser-ext.ts packages/server/tests/local/browser-ext-auth.test.ts packages/server/tests/local/network-auth.test.ts tests/browser-companion-background.test.ts --no-warn-ignored -git diff --check -node output/playwright/browser-companion-toolbar-3333/run-secure-default-live-smoke.mjs -WAGGLE_T19_WEB_URL=http://127.0.0.1:34613 node output/playwright/browser-companion-toolbar-3333/run-popup-button-click-live-smoke.mjs -npx tsx output/playwright/browser-companion-toolbar-3333/run-packaged-id-pairing-smoke.mjs -``` - -## Command Results - -| Check | Result | UX meaning | -|---|---:|---| -| Extension JS syntax | Pass | `popup.js`, `background.js`, and `content.js` parse. | -| Manifest parse | Pass | MV3 manifest has `activeTab`, `storage`, `contextMenus`, localhost host permissions, `popup.html`, `background.js`, and one content script. | -| Server typecheck | Pass | `packages/server` typechecks with the browser extension route and CORS code. | -| `127.0.0.1:3333` listener | Not running | Disconnected popup state is the expected smoke state in this environment. | -| Playwright unpacked-extension load | Partial pass | Chromium loaded the extension and rendered `popup.html`; screenshot captured at `output/playwright/browser-companion-disconnected-state.png`. | -| Direct sidecar save contract | Pass | `POST /api/memory/frames?extract=false` with Browser Companion-shaped content saves frames, duplicate detection works, invalid source returns 400, and Memory UI renders the saved frames. | -| Unallowlisted unpacked extension background save | Fail | With default env, `chrome.runtime.sendMessage({ type: 'save-memory' })` returns `{ saved: false, error: 'HTTP 500' }`; server logs `CORS: origin not allowed`. | -| Prior allowlisted unpacked extension background save | Historical pass with caveat | Earlier artifact with `WAGGLE_BROWSER_EXT_IDS=ebcejdmgclnmaaghmhhcfelbpcmfebfm` returned `{ saved: true, frameId: 1 }`, duplicate returned `{ duplicate: true }`, and Memory UI rendered the imported frame; the current default-auth toolbar probe below shows CORS allowlisting alone is not sufficient under the bearer-token security model. | -| Historical search provenance mismatch | Fixed | Earlier `GET /api/memory/frames` showed `source: import` while `/api/memory/search` reported the same frame as `source: user_stated`. The route now rehydrates frame provenance after `MultiMind` replaces `source` with the mind label, and the popup button-click live smoke confirms both selection/page search results return `source: import`. | -| Toolbar popup open over normal page | Evidence blocker | The probe loaded the extension, selected text in a normal HTTP page, and `chrome.action.openPopup()` returned success, but Playwright never observed a `chrome-extension:///popup.html` page. Real toolbar-click evidence still needs a different automation path or a manual/recorded protocol. | -| Pre-fix paired extension save under default auth | Fail | With `WAGGLE_BROWSER_EXT_IDS=` and default auth, the content script extracted the selected text and page body, but extension-origin save returned `401 MISSING_TOKEN`; artifact: `output/playwright/browser-companion-toolbar-3333/toolbar-popup-summary-allowlisted-current-auth.json`. | -| Legacy localhost-trust extraction/save | Pass with caveat | With `WAGGLE_TRUST_LOCALHOST=1`, the same content-script extraction saved an imported frame with `source: import`; artifact: `output/playwright/browser-companion-toolbar-3333/toolbar-popup-summary-trust-localhost.json`. This proves extraction/save mechanics, not the secure default UX. | -| Pre-fix dev allow-any extension CORS check | Fail | `WAGGLE_DEV_ALLOW_ANY_EXTENSION=1` added `chrome-extension://` to allowed origins, but exact-match CORS returned `false` for a concrete `chrome-extension://ebcejdmgclnmaaghmhhcfelbpcmfebfm` origin. | -| Focused extension auth bootstrap regression tests | Pass | `packages/server/tests/local/browser-ext-auth.test.ts`, `packages/server/tests/local/network-auth.test.ts`, and `tests/browser-companion-background.test.ts` now pass 39/39, including the explicit `activeWorkspaceId` health contract. | -| Extension syntax after pairing patch | Pass | `node --check` passes for `background.js`, `popup.js`, and `content.js`. | -| Focused lint and diff hygiene | Pass | Focused ESLint is clean; `git diff --check` exits 0, with only existing CRLF warnings from Git. | -| Secure-default loaded-extension smoke | Pass with known gaps | Fresh sidecar, default bearer auth, `WAGGLE_BROWSER_EXT_IDS=ebcejdmgclnmaaghmhhcfelbpcmfebfm`, and unpacked extension pass `output/playwright/browser-companion-toolbar-3333/run-secure-default-live-smoke.mjs`. The extension service worker omits `Origin` and sends `sec-fetch-site: none`; `background.js` sends `X-Waggle-Extension-Id`, token bootstrap succeeds, the token is stored during save, content-script selection is saved through `chrome.runtime.sendMessage({ type: 'save-memory' })`, and `/api/memory/frames` returns the imported frame. Toolbar-popup page exposure remains a known gap. | -| Direct popup keyboard/click/restricted-state smoke | Pass with caveat | `output/playwright/browser-companion-toolbar-3333/run-popup-button-click-live-smoke.mjs` opens the popup document with a test shim for the target tab that Chrome normally supplies to a toolbar popup, tabs through Save selection, Save page, and Open Waggle, captures a visible focus ring, presses Enter on Save selection, clicks Save page, receives saved toasts, confirms both frames through `/api/memory/frames`, confirms `/api/memory/search` returns both captures as `source: import`, and, when `WAGGLE_T19_WEB_URL` is set, confirms the rendered `/memory` app shows both saved captures with the `imported` provenance chip and no Clerk/CSP/page errors. The same smoke now opens a restricted `chrome://` tab and proves the popup stays connected, labels the destination as `Personal memory`, disables both save buttons with non-primary styling, and shows the persistent "normal webpage" recovery copy. This proves popup keyboard/focus basics, disabled/restricted-page UX, popup save wiring, secure save effects, Memory search provenance, and rendered Memory UI visibility, not native toolbar-bubble exposure. | -| Stable packaged-ID pairing smoke | Pass with caveat | `output/playwright/browser-companion-toolbar-3333/run-packaged-id-pairing-smoke.mjs` creates a temporary extension copy with a generated manifest public key, derives the Chrome extension ID, starts an isolated sidecar with `WAGGLE_BROWSER_EXT_IDS=`, proves the loaded service worker URL uses the same stable ID, fetches `/api/browser-ext/session-token` from `chrome-extension://`, saves selected page text through the background pairing path, stores the token in `chrome.storage.local`, confirms `/api/memory/frames`, and confirms `/api/memory/search` preserves `source: import`. This proves production-shaped stable-ID pairing semantics, not a signed Web Store or installer-distributed package. | -| Agent catch-up recall provenance regression | Pass | `packages/agent/tests/orchestrator-recall-hardening.test.ts` now proves an imported workspace memory returned through `Orchestrator.recallMemory('catch me up')` carries `recalledFrames[].source === 'import'` and does not degrade to `unknown`. This covers the existing chat `auto_recall` catch-up provenance shape; future recall result shapes still need their own evidence if added to judging. | - -## 2026-07-09 Implementation Update - -Implemented: - -- Added `GET /api/browser-ext/session-token`, auth-exempt only for bootstrap and gated by a valid allowlisted Browser Companion extension origin. -- Fixed Browser Companion CORS matching so `WAGGLE_BROWSER_EXT_IDS=` and `WAGGLE_DEV_ALLOW_ANY_EXTENSION=1` work with concrete `chrome-extension://` origins. -- Fixed the MV3 service-worker no-`Origin` case: `background.js` now sends `X-Waggle-Extension-Id`, and the token route accepts it only with `sec-fetch-site: none` and an allowlisted extension ID. -- Updated `background.js` to fetch and store the session token before health/save requests, and retry once after a 401. -- Mapped missing/expired/not-allowlisted pairing failures to actionable extension copy instead of raw `HTTP 401` / `MISSING_TOKEN`. -- Added popup `role="status"` / `aria-live="polite"`, sticky recovery messages, and a visible restricted-page explanation when the content script cannot run. -- Made disabled primary actions visibly inactive, and changed the popup destination label to `Memory destination` with honest id/fallback copy instead of presenting an id as a workspace name. -- Added context-menu handler regression coverage for registration, selected-text save payload, and success badge feedback. -- Fixed `/api/memory/search` provenance for imported frames by rehydrating the DB frame source after `MultiMind` replaces `source` with the mind label. -- Added a stable packaged-ID pairing smoke that generates a temporary manifest key, derives the Chrome extension ID, starts the sidecar with that ID allowlisted, and proves token bootstrap/save/search provenance through the production-shaped extension-ID pairing path. -- Fixed agent catch-up recall provenance by selecting and carrying `frame.source` through `fetchRecentFrames()` and the workspace catch-up branch in `Orchestrator.recallMemory()`. - -Focused verification: - -- `npx vitest run packages/server/tests/local/browser-ext-auth.test.ts packages/server/tests/local/network-auth.test.ts tests/browser-companion-background.test.ts` -> pass, 39/39, including the explicit `activeWorkspaceId` health contract. -- `npx vitest run packages/server/tests/local-mode.test.ts` -> pass, 21/21, including the imported-frame search provenance regression. -- `node --check apps/browser-ext/background.js; node --check apps/browser-ext/popup.js; node --check apps/browser-ext/content.js` -> pass. -- `npx tsc --noEmit --project packages/server/tsconfig.json` -> pass. -- Focused ESLint for touched extension/server/test files -> pass. -- `git diff --check` -> pass. -- `node output/playwright/browser-companion-toolbar-3333/run-secure-default-live-smoke.mjs` -> pass for extension load, content extraction, token bootstrap during save, token storage, background save, and `/api/memory/frames` imported-frame confirmation. -- `node output/playwright/browser-companion-toolbar-3333/run-popup-button-click-live-smoke.mjs` -> pass for extension load, normal-page selection, popup Tab order (`save-selection`, `save-page`, `open-waggle`), visible Save selection focus ring, Enter-to-save selection, Save page click, saved toasts, token route, `/api/memory/frames` confirmation, and `/api/memory/search` `source: import` confirmation for both captures. -- `WAGGLE_T19_WEB_URL=http://127.0.0.1:34613 node output/playwright/browser-companion-toolbar-3333/run-popup-button-click-live-smoke.mjs` -> pass for secure popup keyboard Save selection and Save page click, `/api/memory/frames`, `/api/memory/search` `source: import`, rendered `/memory` confirmation that both markers and the `imported` provenance chip are visible with no Clerk/CSP/page errors, and a restricted-page popup state with both save buttons disabled, non-primary disabled styling, `Personal memory` destination copy, and persistent normal-webpage recovery text. -- `npx tsx output/playwright/browser-companion-toolbar-3333/run-packaged-id-pairing-smoke.mjs` -> pass for generated stable extension ID, isolated sidecar allowlisting, loaded service worker ID match, `chrome-extension://` token bootstrap, content-script extraction, background save, token storage, `/api/memory/frames` confirmation, and `/api/memory/search` `source: import`. -- `npx vitest run packages/agent/tests/orchestrator-recall-hardening.test.ts` -> pass, 15/15, including imported workspace provenance in catch-up `recalledFrames`. - -Remaining T19 scope: - -- Native toolbar-bubble exposure proof while a normal page remains active; Playwright still does not expose the popup as a page after `chrome.action.openPopup()`. Direct popup-document keyboard/click behavior is now proven with an active-tab shim. -- Actual native context-menu click proof, or explicit deferral. The registration and click handler are now regression-covered. -- Any future recall result shape outside `/api/memory/search` and the existing chat `auto_recall`/catch-up `recalledFrames` path, if it is included in judge scoring. -- Signed Web Store/installer-distributed extension evidence, if release packaging itself enters the score. Stable extension-ID pairing against the sidecar is now proven. - -Playwright disconnected-state data: - -```json -{ - "status": "Not connected", - "workspace": "-", - "toast": "Start Waggle desktop on this machine, then re-open this popup.", - "toastClass": "err", - "saveSelectionDisabled": true, - "savePageDisabled": true -} -``` - -Important limitation: opening `chrome-extension:///popup.html` as a tab is not identical to clicking the toolbar popup over a normal web page. The new popup-button smoke patches only the active-tab lookup so the popup reads the target tab that the native toolbar bubble would receive from Chrome. This is strong evidence for popup button wiring and save effects, but still not proof that Playwright can observe the native toolbar bubble itself. - -Additional live save-flow artifacts: - -- `output/playwright/browser-companion-save-3333/summary.json`: direct sidecar health/save/duplicate/search checks and Memory UI screenshot after direct save. -- `output/playwright/browser-companion-save-3333/extension-background-summary.json`: unpacked extension background save without extension ID allowlist; save fails with `HTTP 500`. -- `output/playwright/browser-companion-save-3333/extension-background-allowlisted-summary.json`: unpacked extension background save with the detected extension ID allowlisted; save and duplicate pass. -- `output/playwright/browser-companion-save-3333/allowlisted-memory-ui-summary.json`: `GET /api/memory/frames`, `/api/memory/search`, and rendered Memory UI after the allowlisted extension save. -- `output/playwright/browser-companion-toolbar-3333/run-toolbar-popup-smoke.mjs`: one-off current toolbar/extraction probe script. -- `output/playwright/browser-companion-toolbar-3333/toolbar-popup-summary-allowlisted-current-auth.json`: pre-fix paired extension attempt; content extraction succeeds, save fails with `401 MISSING_TOKEN`. -- `output/playwright/browser-companion-toolbar-3333/toolbar-popup-summary-trust-localhost.json`: legacy-trust attempt; content extraction succeeds and saves an imported frame. -- `output/playwright/browser-companion-toolbar-3333/run-secure-default-live-smoke.mjs`: post-fix secure-default loaded-extension smoke. -- `output/playwright/browser-companion-toolbar-3333/secure-default-live-summary.json`: post-fix evidence; extension load, content extraction, MV3 no-Origin header probe, token bootstrap during save, background save, and `/api/memory/frames` imported-frame confirmation pass. Toolbar popup exposure and `/api/memory/search` are recorded as known gaps. -- `output/playwright/browser-companion-toolbar-3333/run-popup-button-click-live-smoke.mjs`: direct popup-document keyboard/click smoke with active-tab shim. -- `output/playwright/browser-companion-toolbar-3333/popup-button-click-live-summary.json`: post-fix evidence; Tab order reaches Save selection, Save page, and Open Waggle, Save selection has a visible focus ring and saves via Enter, Save page clicks through, both flows show saved toasts, create frames through the secure sidecar path, return from `/api/memory/search` as `source: import`, and, in the latest run with `WAGGLE_T19_WEB_URL`, render both captures in `/memory` with `imported` provenance and no Clerk/CSP/page errors. The same run proves a restricted-page popup state with both save buttons disabled, non-primary disabled styling, `Personal memory` destination copy, and persistent normal-webpage recovery text. -- `output/playwright/browser-companion-toolbar-3333/run-packaged-id-pairing-smoke.mjs`: generated-key stable extension-ID pairing smoke. -- `output/playwright/browser-companion-toolbar-3333/packaged-id-pairing-summary.json`: post-fix evidence; generated stable ID `bcbhhonimhnecnfoacokibkbedoigbpc`, service worker URL ID match, sidecar allowlisting, token bootstrap, background save, token storage, `/api/memory/frames`, and `/api/memory/search` `source: import` all pass. -- Screenshots: - - `output/playwright/browser-companion-save-3333/extension-popup-connected-tab.png` - - `output/playwright/browser-companion-save-3333/extension-popup-allowlisted-connected-tab.png` - - `output/playwright/browser-companion-save-3333/memory-after-extension-save.png` - - `output/playwright/browser-companion-save-3333/memory-after-allowlisted-extension-save.png` - - `output/playwright/browser-companion-toolbar-3333/toolbar-active-page-selection.png` - - `output/playwright/browser-companion-toolbar-3333/popup-button-click-keyboard-focus.png` - - `output/playwright/browser-companion-toolbar-3333/popup-button-click-target-selection.png` - - `output/playwright/browser-companion-toolbar-3333/popup-button-click-save-selection.png` - - `output/playwright/browser-companion-toolbar-3333/popup-button-click-save-page.png` - - `output/playwright/browser-companion-toolbar-3333/popup-button-click-memory-ui.png` - - `output/playwright/browser-companion-toolbar-3333/popup-restricted-disabled-state.png` - -## What Is Proven Now - -- The extension files exist at `apps/browser-ext/*`; there is no `apps/browser-ext/src` directory. -- The manifest is structurally valid and requests the expected MV3 capabilities. -- The extension can be loaded unpacked by Chromium in this environment. -- The disconnected status can render with an error toast and disabled save buttons. -- The server-side route/CORS code typechecks. -- The direct write API exists at `POST /api/memory/frames` and accepts `content`, optional `workspace`/`workspaceId`, `importance`, and `source`; it sanitizes content, validates `source`, deduplicates, and stores a frame. -- The direct write API can persist Browser Companion-shaped selection/page content, and the Memory UI can render the result. -- The content script can extract selected text and page body from a normal HTTP page. -- Focused tests prove the secure default token-bootstrap path: an allowlisted extension origin can fetch the session token, `background.js` stores it, and subsequent save calls send `Authorization: Bearer `. -- Chromium MV3 service-worker fetches to localhost omit `Origin` and send `sec-fetch-site: none`; this is now covered by tests and the live smoke. -- With an allowlisted extension ID and default auth, the loaded extension now extracts selected page content, bootstraps/stores a token during save, saves via `background.js`, and `/api/memory/frames` returns the imported frame. -- The popup Tab order reaches Save selection, Save page, and Open Waggle; Save selection has a visible focus ring and saves by keyboard Enter; Save page clicks through the popup UI, shows a saved toast, and creates a frame when the active tab is supplied by the live smoke shim. -- Restricted-page/content-script-unavailable state now keeps the popup connected, labels the destination honestly as `Personal memory`, disables both save buttons, uses non-primary disabled styling, and shows persistent recovery copy. -- Browser Companion selection/page captures now preserve `source: import` in `/api/memory/search`, matching `/api/memory/frames`. -- The rendered `/memory` app now shows the secure popup-saved selection/page captures and the `imported` provenance chip in the same live smoke run. -- The context-menu registration and selected-text handler are covered in `tests/browser-companion-background.test.ts`. -- Stable extension-ID pairing is proven with a temporary generated manifest key: the derived ID matches Chromium's loaded service worker ID, the sidecar accepts that ID via `WAGGLE_BROWSER_EXT_IDS`, the extension stores the token, saves selected content, and search provenance remains `source: import`. -- Agent catch-up `auto_recall` now preserves imported workspace provenance in `recalledFrames`, allowing the server chat stream to emit honest provenance instead of suppressing it as `unknown`. -- With an allowlisted extension ID but default auth, the pre-fix toolbar probe failed as `401 MISSING_TOKEN`; the code path is now fixed in focused server/background tests, the secure-default loaded-extension smoke, and the direct popup keyboard/click smoke. - -## Still Not Proven - -- Native toolbar-bubble behavior while a normal web page is the active tab. Playwright still needs a reliable toolbar-popup protocol or manual/recorded release evidence. -- Context-menu save via an actual browser context-menu click. Registration and handler behavior are covered, but the native browser menu item itself has not been clicked in an automated browser. -- Signed Web Store/installer-distributed extension behavior, if release packaging itself enters scoring. Stable extension-ID pairing is covered by `packaged-id-pairing-summary.json`. -- Live dev escape hatch behavior. Focused CORS tests cover concrete `chrome-extension://` origins; the live smoke used the production-shaped extension-ID allowlist. -- CORS/auth-denied recovery UX screenshot with a real extension origin and sidecar, if this state enters judge scoring. -- Screen-reader announcement of status/toast changes. -- Packaged desktop/sidecar port behavior. - -## Line-Level Findings - -| ID | Finding | Evidence | Correction | -|---|---|---|---| -| T19-1 | Coverage Compass claimed browser extensions were `covered` without enough end-to-end behavior evidence. | `apps/web/src/components/os/settings/CoverageCompassCard.tsx:31` | Fixed 2026-07-10: Browser AI extensions now render as `partial` with explicit popup/capture coverage and native toolbar/context-menu work still pending; `CoverageCompassCard.test.tsx` guards the honest state. | -| T19-2 | Toast/status updates are visual only; no live region or alert role is present. | `apps/browser-ext/popup.html:69`, `apps/browser-ext/popup.html:84`, `apps/browser-ext/popup.js:19` | Fixed 2026-07-09: popup toast now has `role="status"` and `aria-live="polite"`. | -| T19-3 | Restricted-page/content-script-unavailable state disables save controls without a visible explanation. | `apps/browser-ext/popup.js:56` to `apps/browser-ext/popup.js:59` | Fixed 2026-07-09: content-script failures show persistent "normal webpage" recovery copy. | -| T19-4 | Disconnected recovery toast auto-clears after 3.5 seconds. | `apps/browser-ext/popup.js:23`, disconnected smoke | Fixed 2026-07-09: health/setup errors are sticky while the popup remains open. | -| T19-5 | Disabled primary action could still read as visually primary in the popup. | `apps/browser-ext/popup.html:46`, `apps/browser-ext/popup.html:73`, screenshot `output/playwright/browser-companion-disconnected-state.png`; latest evidence `output/playwright/browser-companion-toolbar-3333/popup-restricted-disabled-state.png` and `popup-button-click-live-summary.json` | Fixed 2026-07-09: disabled primary buttons use muted non-primary styling, opacity stays readable at `1`, and the restricted-page live smoke proves the style is not honey-primary. | -| T19-6 | Health endpoint returns an active workspace id, while popup labels it as the memory destination. | `packages/server/src/local/routes/browser-ext.ts`, `apps/browser-ext/popup.js`, `packages/server/tests/local/browser-ext-auth.test.ts`, `popup-button-click-live-summary.json` | Fixed 2026-07-09: health now exposes `activeWorkspaceId` explicitly while preserving legacy `activeWorkspace`, and the popup labels the value as `Workspace id: ...` or `Personal memory` instead of implying a friendly workspace name. | -| T19-7 | Full save result is now verified for the secure-default background path and direct popup keyboard/click path, including rendered Memory UI confirmation, but not for the native toolbar bubble itself. | `apps/browser-ext/background.js`, `packages/server/src/local/routes/memory.ts`, `output/playwright/browser-companion-toolbar-3333/secure-default-live-summary.json`, `output/playwright/browser-companion-toolbar-3333/popup-button-click-live-summary.json`, `output/playwright/browser-companion-toolbar-3333/popup-button-click-keyboard-focus.png`, `output/playwright/browser-companion-toolbar-3333/popup-button-click-memory-ui.png` | Add a reliable native toolbar-bubble protocol or manual release evidence for the browser-owned toolbar popup. | -| T19-8 | Unallowlisted extension origins previously failed as generic 500s, not a recoverable setup state. | `packages/server/src/local/index.ts:2197`, `packages/server/src/local/index.ts:2201`, `apps/browser-ext/background.js:45`, `output/playwright/browser-companion-save-3333/extension-background-summary.json` | Focused fixed 2026-07-09: token bootstrap returns an intentional setup denial and background maps it to sticky setup copy. Remaining: live unallowlisted-extension screenshot if this state enters judging. | -| T19-9 | Memory search provenance could disagree with direct frame provenance. | `output/playwright/browser-companion-save-3333/allowlisted-memory-ui-summary.json` showed `/api/memory/frames` as `import` while `/api/memory/search` reported `user_stated`; red regression reproduced the mismatch. | Fixed 2026-07-09: `/api/memory/search` rehydrates DB frame provenance, `local-mode.test.ts` covers imported-frame search provenance, and `popup-button-click-live-summary.json` confirms selection/page captures return as `source: import`. | -| T19-10 | Extension-ID CORS allowlisting was not enough under default bearer auth. | `packages/server/src/local/security-middleware.ts:312` to `packages/server/src/local/security-middleware.ts:387`; `apps/browser-ext/background.js:14` to `apps/browser-ext/background.js:15`; pre-fix artifact shows `401 MISSING_TOKEN`. | Fixed 2026-07-09 with `/api/browser-ext/session-token`, MV3 no-Origin header handling, background token storage, 39/39 focused tests, secure-default loaded-extension smoke, and direct popup keyboard/click smoke. Remaining: native toolbar-bubble exposure evidence. | -| T19-11 | README dev setup says `WAGGLE_DEV_ALLOW_ANY_EXTENSION=1` accepts any extension, but pre-fix CORS exact-match logic did not accept concrete extension origins. | `apps/browser-ext/README.md:19` to `apps/browser-ext/README.md:26`; `packages/server/src/local/cors-config.ts:38` to `packages/server/src/local/cors-config.ts:57`; pre-fix `npx tsx` check returned `concreteOriginAllowed: false`. | Fixed 2026-07-09 in `browserExtensionOriginAllowed()` and covered by focused CORS tests. | -| T19-12 | Toolbar-popup automation still cannot expose the native toolbar bubble over a normal page. | `output/playwright/browser-companion-toolbar-3333/toolbar-popup-summary-allowlisted-current-auth.json` shows `chrome.action.openPopup()` returned success but no popup page was exposed to Playwright; `popup-button-click-live-summary.json` proves the keyboard/click behavior through a direct popup-document fallback. | Add a reliable native toolbar-bubble test protocol, manual release checklist with screenshots/video, or an alternate browser automation route that keeps the normal page active without a shim. | -| T19-13 | Popup keyboard/focus basics lacked live evidence and an explicit focus ring. | `apps/browser-ext/popup.html`, `output/playwright/browser-companion-toolbar-3333/popup-button-click-keyboard-focus.png`, `output/playwright/browser-companion-toolbar-3333/popup-button-click-live-summary.json` | Fixed 2026-07-09: popup buttons now have a visible `:focus-visible` ring, and the live smoke proves Tab order, focused Save selection geometry/style, and Enter-to-save behavior. | -| T19-14 | Production-shaped packaged pairing lacked stable extension-ID evidence. | `apps/browser-ext/manifest.json` has no release key, and earlier smokes only used the unpacked extension ID from the source folder. | Fixed 2026-07-09: `run-packaged-id-pairing-smoke.mjs` generates a temporary manifest key, derives the stable Chrome extension ID, starts the sidecar with that ID allowlisted, verifies the loaded service worker ID matches, and proves token bootstrap/save/search provenance through the stable-ID path. | -| T19-15 | Agent catch-up recall could suppress provenance because workspace catch-up rows did not carry `source`, so imported captures surfaced as `unknown` in `recalledFrames`. | `packages/agent/src/orchestrator.ts`, `packages/agent/src/context-loader.ts`, `packages/server/src/local/routes/chat.ts`, red-to-green `packages/agent/tests/orchestrator-recall-hardening.test.ts` | Fixed 2026-07-09: catch-up recent/important frames now select and propagate `source`, and the regression proves imported workspace memories return `source: import` rather than `unknown`. | - -## T19 Acceptance - -T19 remains open until either: - -1. Browser Companion is explicitly deferred from the five-persona score, or -2. Evidence proves all of the following: - -- Unpacked or packaged extension loads. -- Connected and disconnected states render with persistent, accessible recovery. -- Save selection and save page succeed against a running sidecar under the default secure auth model, without relying on `WAGGLE_TRUST_LOCALHOST=1`. -- Extension pairing stores or supplies a valid bearer token, or a deliberate reviewed auth exemption exists for the extension route. -- Native context-menu save succeeds or is explicitly scoped out; registration and handler behavior are already covered. -- CORS/auth-denied, missing-token, and extension-ID-missing states are understandable and do not appear as generic `HTTP 500` or raw `MISSING_TOKEN`. -- Memory UI shows the captured frame with source/provenance that a Researcher can understand. -- Memory search preserves the same provenance shown by the frame list, and the existing chat `auto_recall`/catch-up `recalledFrames` path preserves imported workspace provenance; any future recall result shape must do the same if included in judging. -- Popup keyboard/focus basics pass; status/toast live-region markup exists, with screen-reader announcement proof still required if judged separately. - -## Phase Impact - -This does not change Phase 1. T19 remains a Phase 2/Launch final-product gate after in-app P0 blockers are cleared, unless the user explicitly asks to include Browser Companion work in Phase 1. diff --git a/docs/audits/2026-07-08-complete-ux-usage-audit.md b/docs/audits/2026-07-08-complete-ux-usage-audit.md deleted file mode 100644 index e699359..0000000 --- a/docs/audits/2026-07-08-complete-ux-usage-audit.md +++ /dev/null @@ -1,1769 +0,0 @@ -# Complete UX and Usage Audit - 2026-07-08 - -Status: Phase 1 implementation completed and verified on 2026-07-08. Follow-up UX trust corrections and verification refreshed on 2026-07-11. The original analysis below is retained as the baseline finding packet; the evidence sections record the current post-fix state. - -Objective from the goal: analyze the complete UX and usage scenarios, define everything that should be corrected, then wait for approval before implementation. Target acceptance is five different judge personas scoring the product at least 9/10. - -Packet index: `docs/audits/2026-07-08-ux-packet-index.md`. - -Approval brief: `docs/audits/2026-07-08-ux-approval-brief.md`. - -Analysis completion audit: `docs/audits/2026-07-08-analysis-completion-audit.md`. - -Companion execution checklist: `docs/audits/2026-07-08-ux-route-scenario-manifest.md`. - -State and failure matrix: `docs/audits/2026-07-08-ux-state-failure-scenario-matrix.md`. - -Non-main surface scope: `docs/audits/2026-07-08-ux-non-main-surface-scope.md`. - -Five-persona scoring packet: `docs/audits/2026-07-08-five-persona-judge-scorecards.md`. - -Five-persona judge runbook: `docs/audits/2026-07-08-five-persona-judge-runbook.md`. - -Master correction register: `docs/audits/2026-07-08-ux-correction-register.md`. - -Web Guidelines line findings: `docs/audits/2026-07-08-web-guidelines-line-findings.md`. - -Source inventory consistency audit: `docs/audits/2026-07-08-source-inventory-consistency-audit.md`. - -Browser Companion T19 analysis: `docs/audits/2026-07-08-browser-companion-t19-analysis.md`. - -Desktop wrapper T14 analysis: `docs/audits/2026-07-08-desktop-wrapper-t14-analysis.md`. - -Admin/CLI utility T15 analysis: `docs/audits/2026-07-08-admin-cli-utility-t15-analysis.md`. - -AI-tool hook lifecycle T16 analysis: `docs/audits/2026-07-08-ai-tool-hook-t16-analysis.md`. - -Developer/substrate T17 analysis: `docs/audits/2026-07-08-developer-substrate-t17-analysis.md`. - -Ops/deployment/CI/judging T18 analysis: `docs/audits/2026-07-08-ops-deploy-ci-judging-t18-analysis.md`. - -First-run onboarding T1/T2/T12 analysis: `docs/audits/2026-07-08-first-run-onboarding-t1-t2-t12-analysis.md`. - -Shell overlay T10/T12 analysis: `docs/audits/2026-07-08-shell-overlays-t10-t12-analysis.md`. - -Phase 1 implementation plan and verification log: `docs/superpowers/plans/2026-07-08-ux-phase-1-corrections.md`. - -## Phase 1 Implementation Evidence - -Phase 1 closed the main P0 blockers that were approved for immediate implementation: local accountless Clerk/CSP console health, mobile Settings and first-run onboarding reachability, active Solo/Teams/Enterprise copy, `Ctrl+Shift+N` plus Workspace Switcher route behavior, visual baseline drift, and codified route evidence for thin Phase 1 judge paths. - -Current post-fix verification: - -| Check | Result | Notes | -|---|---:|---| -| `npm run typecheck:web` | Pass | Web TypeScript gate. | -| `npx tsc --noEmit --project packages/server/tsconfig.json` | Pass | Server-side type gate after local rate-limit harness config. | -| `npm run ux:contrast` | Pass | 60 enforced token/surface pairs. | -| `npm run ux:color-guard` | Pass | 96 off-token offenses, all frozen in the existing baseline; no new raw-color violations. | -| Full `apps/web` Vitest | Pass | Fresh 2026-07-11 run: 207 files, 1726 tests, zero failing tests. | -| Cache-first return lane | Pass | 8 focused files / 71 tests cover instant return repaint plus silent refresh for Home cache, Marketplace, Agents, Connectors, MCP Hub, Artifacts, Approvals, Launcher, and the shared Home cache contract. | -| Model setup recovery lane | Pass | Shared onboarding + Settings `ModelGate` shows an actionable provider-catalog failure and Retry path instead of an empty key grid; focused ModelGate/onboarding coverage passes 27/27 and web typecheck passes. | -| API-key rendered setup lane | Pass | Fresh port `34382` Playwright coverage passes 2/2: onboarding and Settings both select a provider, focus the key field, validate, submit the Vault-bound provider payload, show saved feedback, and leave onboarding Continue enabled. | -| Live provider model catalog lane | Pass | Model inventories are fetched from configured provider APIs, exposed as stable `provider/model` ids, merged into Chat/Spawn, and never filled from a baked-in model list. Claude/Gemini pagination, stale-catalog recovery, app-focus refresh, managed-router hot loading, default/model/fleet resolution, and exact-id completion are deterministic regression gates. One paid live credential request remains external release verification. | -| Create Workspace mobile disclosure lane | Pass | Focused shell-overlay contracts pass 15/15; the rendered `J-mobile` journey passes 1/1 on fresh port `34380`, proving agent assignment is collapsed by default at 390 x 844, expands on demand, and remains reachable without displacing primary setup. | -| `npm run build` | Pass | Build succeeds. The prior Tailwind motion-token ambiguity warnings, `shape-selection.ts` dynamic/static import warning, and Vite large-chunk warning are fixed. Latest build is 423.61 kB minified / 114.63 kB gzip for the startup JS chunk; PostHog is lazy-loaded as a separate chunk. | -| Focused Phase 1 browser lane | Pass | 10/10 on port `34146`: console health, wiring, first-run onboarding, mobile onboarding, and cockpit visuals. | -| `tests/e2e/user-journeys.spec.ts` | Pass | Latest expanded trust-flow run: 24/24 on port `34177`, including mobile Settings, mobile first-run onboarding, Workspace Switcher, route evidence tests, Approvals `J3d`, Artifact `J3e`, Memory Center `J3f`, Wiki export `J3g`, and Settings backup/restore `J3h`. Focused re-checks also passed: mobile first-run Profile reachability 1/1 on port `34194`, mobile Settings 1/1 on port `34195`. | -| Full combined browser gate | Pass | 156/156 on port `34150`: full-product, full-wiring, phase-ab, power-user stress, user journeys, and visual snapshots. | -| Runtime accessibility axe gate | Pass | 2/2 on port `34333`: 41 routes across desktop and 390px mobile have zero axe violations in `tests/e2e/runtime-a11y.spec.ts`; the matrix now includes Settings tabs, Memory tabs, workspaces/tasks, automations, skills, room, channels-adjacent surfaces, marketplace, team, benchmarks, and platform. | -| T4 shortcut/switcher route contract | Pass | `Ctrl+Shift+N` route contracts passed 2/2 on port `34197`; Workspace Switcher/sidebar traversal guard passed 1/1 on port `34198`. | -| T5 visual snapshot lane | Pass | `tests/visual/views.spec.ts` passed 14/14 on port `34199` for the seven tracked desktop dark/light views. | -| T6 marketplace local/audit lane | Pass | Manual sync disable regression passed in Vitest, the manual/background sync slice passed 3/3, `packages/server` typecheck passed, and the focused marketplace Playwright slice passed 4/4 on port `34203`. | -| Coverage Compass browser integration state | Pass | Browser AI extensions now honestly render as `partial` with popup/capture coverage and native toolbar/context-menu work called out as pending; focused component guard passes 1/1. | - -Remaining blockers to the final five-persona 9/10 claim are outside the completed Phase 1 scope unless explicitly deferred: broader unsampled accessibility metadata/focus-return cleanup, deeper workflow-state evidence for non-main surfaces, public launch funnel, desktop wrapper/package release evidence, registry/deploy evidence for utility packages, AI-tool packaged desktop hook-status proof, developer/substrate command hygiene, ops/deploy/CI/judge evidence, and Browser Companion native-toolbar/context-menu/rendered-memory/package proof. - -## Executive Verdict - -Waggle OS is broadly functional in the tested built app. The main shell, Home, Chat, Memory, Agents, Library, Settings, workspace routes, and the deeper zone apps are not blank or fundamentally broken. The app has a coherent desktop direction and strong Home continuity. - -It is not ready for an honest 9/10 UX judgment yet. The blockers are mostly trust, consistency, responsive layout, and verification quality rather than missing core functionality: - -1. Accountless local Clerk/CSP console health is now verified fixed for sampled first-run and initial-load paths; explicit Clerk-enabled auth still needs its own state evidence. -2. The original mobile Settings and first-run Profile reachability blockers are now verified fixed, but broader mobile polish evidence still needs ownership for Memory/workspace chat tab strips and the selected overlay path. -3. Main cockpit pricing/gating copy now uses Solo/Team/Enterprise; remaining active Pro language is limited to explicit legacy billing contexts, while public legal-page Pro copy remains in launch-funnel T13. -4. The visual regression suite now passes for the seven tracked desktop views in both dark and light modes; it still does not prove full-surface visual quality by itself. -5. Several destructive and recovery flows use native confirm/alert/prompt dialogs instead of in-app, accessible, branded flows. - -Current estimated judge readiness after Phase 1 is materially higher for the main installed cockpit lane, but the final 9/10 claim is still not made. The remaining caps are mostly trust-critical dialogs, accessibility semantics, non-main surface proof, and packaged/release evidence rather than the Phase 1 console, responsive, copy, shortcut, visual, or route-evidence blockers. - -The main judge gate is scoped to the installed cockpit experience, but the final "complete UX" claim must also handle public launch/download/checkout/legal, desktop wrapper, installer/update, active sidecar-startup, utility, hook lifecycle, Browser Companion extension capture, developer API/background/substrate, and ops/deployment/CI/benchmark/judging gates. Those non-main surfaces are now mapped in `docs/audits/2026-07-08-ux-non-main-surface-scope.md` as T13/T14/T15/T16/T17/T18/T19 and must be fixed or explicitly deferred before final completion. - -## Evidence Collected - -Environment: - -- Repo: `D:\Projects\waggle-os` -- Date: 2026-07-08 -- Built app server: `http://127.0.0.1:3377` -- Test data dir: temporary `WAGGLE_DATA_DIR` -- Render mode: built Vite app served by local sidecar, LiteLLM skipped, mock embeddings. -- Design standard checked against: Vercel Web Interface Guidelines, https://raw.githubusercontent.com/vercel-labs/web-interface-guidelines/main/command.md - -Commands and results: - -| Check | Result | Notes | -|---|---:|---| -| `npm run typecheck:web` | Pass | No TypeScript errors for the web app. | -| `npm run ux:contrast` | Pass | 60 enforced token/surface pairs passed. Some info-only dim text pairs remain below 4.5. | -| `npm run ux:color-guard` | Pass | No new off-token text colors beyond the frozen baseline. | -| Targeted `apps/web` Vitest set | Pass | 12 files, 145 tests. | -| Full `apps/web` Vitest | Pass | 174 files, 1575 tests. Warnings are noisy. | -| `npm run build` | Pass | Build succeeds but main chunk is very large. | -| Rendered Playwright audit subset | Mixed | 51 passed, 15 failed. | -| Broader non-visual Playwright sweep | Mixed | 247 passed, 4 failed, 1 flaky, 1 skipped across 253 tests. | -| Browser/mobile rendered inspection | Mixed | Home is usable on mobile; Settings is not. | -| `npm run test -w apps/www` | Pass | Current public-site suite passes 7 files / 19 tests: persona card, Pricing checkout links/recovery, Stripe checkout route cancel URL, layout hydration contract, legal launch-copy guard, controlled download path, mobile/desktop download label detection, and public-site deployment workflow guard. | -| `npm run build:www` | Pass | Next build succeeds and includes the dynamic public routes. The public-site workflow now uses Vercel prebuilt deployment instead of GitHub Pages/static `apps/www/dist`. | -| Public-site env-shape check | Mixed | `apps/www/.env.local` has Clerk test keys different from the root Clerk pair and a live-shaped Stripe secret; values were not printed. | -| Public-site local prod route/API smoke | Improved | Binding `next start` to `127.0.0.1` caused Next middleware proxy failures to `localhost:`. Current post-fix `next start --hostname localhost --port 34205` returned 200 for `/`, `/?checkout=cancelled`, and `/docs/methodology`; signed-out `GET /api/stripe/checkout?tier=teams&billing=monthly` returned 303 to sign-in. | -| Public-site Playwright interaction smoke | Historical mixed | Earlier regular Playwright against `http://localhost:3416` showed annual toggle and mobile nav worked, while signed-out `Get Team` showed inline `Sign in required`, `/docs/methodology` passed, and `/methodology` plus `/pricing?checkout=cancelled` 404ed. Current Browser/unit evidence supersedes the checkout dead-end and cancel-route findings. | -| Public-site Browser interaction refresh | Improved | Fresh in-app Browser loaded `http://localhost:34204/?checkout=cancelled#pricing`. Pricing rendered, cancelled-checkout recovery notice appeared, monthly Team CTA and retry link used `/api/stripe/checkout?tier=teams&billing=monthly`, annual toggle updated both links to annual, the Next dev issue badge disappeared after the layout fix, and console warnings/errors were empty. Browser `domSnapshot()` still failed with the known `incrementalAriaSnapshot` plugin mismatch, so evidence used targeted DOM probes plus screenshots. | -| `npx tsc --noEmit --project app/tsconfig.json` | Pass | Desktop wrapper scripts/config typecheck. | -| Targeted `app/` Vitest set | Pass | 4 files, 85 tests for updater, installer, signing, and runtime bundling helpers. | -| Local Tauri installer bundle | Pass locally | `npm run tauri:build:local --prefix app` produced fresh MSI and NSIS artifacts on 2026-07-10. Both local artifacts are unsigned debug builds; installed UX, signed release trust, and public availability remain open. | -| Static Tauri config/update tests | Pass | `npx vitest run packages/server/tests/tauri-config.test.ts app/tests/auto-update.test.ts` passed historically, and the focused `tauri-config.test.ts` refresh now passes 1 file / 19 tests including the release package-before-sidecar guard. | -| `node scripts/check-sidecar-resources.mjs` | Pass | Staged Node runtime, native deps, and sidecar `node_modules` are present. | -| Targeted app service E2E set | Pass | 3 files, 11 tests for startup, settings, chat SSE, workspace/session, and memory-scope API flows. | -| Utility/admin surface Vitest slice | Improved mixed | Admin-web package/root tests, launcher package-local tests, root-directed CLI, `@waggle/cli` package-local tests, memory MCP package-local tests, hive-mind MCP package-local tests, marketplace targeted tests, and hive-mind CLI package-local tests pass. Admin-web now owns a package-local test command and its focused suite no longer emits React `act(...)` warnings. Remaining mixed status is from broader rendered/auth/error/publish gaps, not this test lane. | -| Utility/admin TypeScript and builds | Mixed | `admin-web`, `cli`, `marketplace`, `memory-mcp`, `hive-mind-mcp-server`, and `hive-mind-cli` pass `tsc --noEmit`; all inspected package build scripts pass; `packages/launcher` has no `tsconfig.json` and is built via `tsup`. | -| Utility CLI help/runtime smoke | Mixed | Source help for launcher, CLI, hive-mind CLI, and marketplace works. Built and clean installed marketplace help/invalid-command paths pass with no DB side effect; built `@waggle/cli` help plus the bin wrapper pass with no `.waggle` side effect; local package-closure installed `npx waggle --help` passes; local package-closure installed `npx waggle --local` starts the REPL, renders the local prompt, runs `/help`, `/mode`, `/whoami`, `/models`, `/cost`, and `/clear`, creates `default.mind`, exits via `/exit`, and completes a streamed chat turn through a mock LiteLLM-compatible endpoint while verifying auth/model/stream payload shape; built and clean installed launcher help/startup-recovery paths no longer print service banners before help or create `.waggle`; and local package-closure installed `hive-mind-cli status --help` passes without `personal.mind` creation. | -| MCP protocol smoke | Improved mixed | Built `@waggle/hive-mind-mcp-server` and built legacy `waggle-memory-mcp` both complete official MCP client handshakes and write-scope save/recall roundtrips from temp data dirs. Both MCP packages now also have clean local package-closure installed read-only startup proof. Registry-only proof remains open. | -| Hive-mind CLI and marketplace negative/package paths | Improved mixed | Hive-mind CLI sampled subcommand help now prints focused help and does not create `personal.mind` from source, built, and local package-closure installed paths. Marketplace unknown commands now print help, exit 1, avoid DB creation, and its package manifest points at emitted files included by `npm pack --dry-run`; installed packed-CLI help and invalid-command paths are guarded. Every-subcommand sampling and registry-only proof remain open. | -| Admin-web rendered package smoke | Pass | `npm run test:rendered --workspace @waggle/admin-web` builds the package and runs Playwright against the built preview. It covers all seven admin pages at desktop and 390px mobile widths with typed authenticated mock API data, real local bearer-auth middleware wrong-token/valid-token behavior through protected Fastify routes, hash URL state, `aria-current`, document scroll width, labelled table scroll regions, overflow checks, labelled controls, clean app console/pageerror collection, mobile shell keyboard navigation, page-level keyboard traversal from connection fields into dashboard, members, capabilities, jobs, audit, and settings controls/table regions, full-page desktop/mobile visual snapshots, browser back/forward hash traversal, capability governance edit/add/decision forms, malformed analytics response recovery, all-page initial API-failure recovery with accessible alerts, and rendered mutation/destructive-failure recovery for capability policy save, capability override create/remove, capability request decision, member invite, member role change, member removal, and team settings save. Live deployed auth remains a launch/deploy evidence item, not an admin-web package-local blocker. | -| AI-tool hook route/contract tests | Pass with warning noise | Shared/agent/server T16 slice plus package runtime proof passed 7 files / 96 tests, with an additional registry-aware adapter launch slice passing 5 files / 108 tests. It covers manifests, third-party manifest loader, hook-capable cohort, launcher, backend tool routes, process paths, launchable third-party adapters, prompt template application, and packed package `npx` install/verify/uninstall lifecycle for all six hook-capable packages. Server setup emits expected mock embedding warnings. | -| Launcher hook UI, prompt, and adapter tests | Pass with deprecation warning | `npm run test -w apps/web -- src/components/os/apps/LauncherApp.test.tsx src/lib/launcher-prompt-args.test.ts src/lib/adapter.launcher.test.ts --reporter=dot` passed 3 files / 28 tests and emitted Node `punycode` warnings. | -| Launcher rendered hook state smoke | Pass, codified plus Browser partial | Fresh `npm run build` passed, then the in-app Browser loaded `/launcher?watch=1&skipOnboarding=true&skipBoot=true&skipBriefing=true` against a mock local API on port 54147. It rendered installed/not-installed/hooks-active/running/Phase 4 states, prompt summary, install success, verify failure, and live output with no current-port console errors. Artifacts: `output/playwright/launcher-t16-54147/`. Browser DOM snapshot failed with `TypeError: o.incrementalAriaSnapshot is not a function`, so evidence used targeted DOM evaluation plus screenshots. Codified Playwright rendered coverage now also proves all six hook-capable cards through install, verify, uninstall, and refreshed hooks-active transitions. | -| AI-tool hook/shim package tests | Pass with warning noise | Root-run hook/shim tests passed 60 files / 573 tests with 1 skipped. Output includes expected fail-open warnings, sidecar-unreachable signal drops, package logs, and hook verify negative-path logs. | -| AI-tool hook/shim typechecks, bin smokes, and package-local tests | Pass with warning noise | Official package typechecks pass 8/8, Claude Desktop stub build passes, 6/6 compiled hook-bin help smokes pass, local package-pack `npx --yes @waggle/hive-mind-hooks- install/verify/uninstall` lifecycle passes for all six hook-capable packages, and hook/shim package-local `npm run test --workspace ...` scripts pass. The shim package-local integration lane also verified the CLI ESM resolver fix for the MCP server entry. Registry-only proof after actual package publication remains external launch/deploy evidence. | -| First-run onboarding smoke | Mixed | `npm run build` passed and a clean-data sidecar on port 3431 completed desktop onboarding through first-task auto-send into workspace chat; the original mobile pass found Profile Continue below the 390 x 844 viewport and T1 Clerk/CSP console errors. Current focused checks are green: mobile Profile reachability passed 1/1 on port `34194`, sampled accountless console health passed 3/3 on port `34196`, high-volume import CTA coverage passed 2/2, model-ready copy passed 5/5, and first-task composer handoff passed in the 12/12 chat input suite. | - -Rendered Playwright details: - -- Passed: API health checks, desktop shell, Home, Chat, Room, Agents, Files, Approvals, Settings, Vault, Mission Control, Timeline, Usage, Events, Team Governance, Skills Hub, Connector Hub, MCP Hub, Marketplace, and user journey checks J1-J12. -- Historical failure now rechecked: `tests/e2e/full-product-audit.spec.ts` "no critical console errors on load" passed in the focused 3/3 console-health bundle on port `34196`. -- Historical failure now rechecked: all 14 visual snapshots in `tests/visual/views.spec.ts` originally failed for the 7 tracked views across dark and light; the current visual suite passes 14/14 on port `34199`. -- Visual suite scope remains 7 views only (`chat`, `memory`, `events`, `skills/capabilities`, `home`, `mission-control`, `settings`). The route registry exposes roughly 30 app routes/route wrappers, so the green visual suite does not by itself prove full-surface visual quality. - -Broader Playwright sweep details: - -- Command: `node node_modules/playwright/cli.js test tests/e2e/full-wiring-audit.spec.ts tests/e2e/waggle-complete.spec.ts tests/e2e/user-behavior.spec.ts tests/e2e/power-user-stress.spec.ts tests/e2e/phase-ab-verification.spec.ts tests/e2e/polish-verification.spec.ts tests/e2e/light-mode-polish.spec.ts tests/e2e/boot-screen-skip.spec.ts --project=chromium --reporter=list` -- Environment: fresh built server on `http://127.0.0.1:3388`, `WAGGLE_E2E_SKIP_LITELLM=1`, mock embeddings, temporary data dir. -- Result: 247 passed, 4 failed, 1 flaky, 1 skipped. -- Historical failures now rechecked: - - `tests/e2e/full-wiring-audit.spec.ts:553`: original workspace-switcher traversal interception now passes in `traverse all sidebar views - zero critical JS errors` on port `34198`. - - `tests/e2e/phase-ab-verification.spec.ts:132` and `tests/e2e/power-user-stress.spec.ts:215`: original `Ctrl+Shift+N` route failures now pass 2/2 on port `34197`. - - `tests/e2e/phase-ab-verification.spec.ts:271`: original inline-script CSP console error now passes in the focused 3/3 console-health bundle on port `34196`. -- Flaky: - - `tests/e2e/full-wiring-audit.spec.ts:501`: marketplace search API returned non-OK once, then passed on retry. -- Important harness notes: - - Historical result: the run triggered a live marketplace sync via `POST /api/marketplace/sync`; that path took 34.4s and logged external-source errors despite the harness disabling background marketplace sync. - - Current recheck: manual `/api/marketplace/sync` now respects `WAGGLE_DISABLE_MARKETPLACE_SYNC=1`, and the focused marketplace Playwright slice passed 4/4 on port `34203`. - - A "without LLM" graceful-degradation test still used the local Ollama provider because it was healthy. - - Cost tracking warned that `ollama/minimax-m2.7:cloud` has no pricing entry and was estimated with Sonnet pricing. - - The test server was stopped after the run; no listener remained on port `3388`. - -Route/test coverage notes: - -- `apps/web/src/App.tsx` registers the app shell plus `/auth`, `/home`, `/workspaces`, `/workspaces/:workspaceId/:tab?`, `/memory/:mindScope?`, `/artifacts`, `/files`, `/agents`, `/automations`, `/skills`, `/room`, `/waggle-dance`, `/approvals`, `/connectors`, `/mcps`, `/marketplace`, `/launcher`, `/team`, `/settings`, `/settings/vault`, `/settings/profile`, `/settings/mission-control`, `/settings/timeline`, `/settings/events`, `/settings/usage`, `/benchmarks`, `/platform`, `/payment-success`, `/payment-cancelled`, and catch-all. -- Simple route-string search in `tests/` plus `apps/web/src/test` shows heavy coverage for `/home`, `/workspaces`, `/memory`, `/marketplace`, `/settings`, and `/skills`. -- Thin route-level coverage is now codified for the priority gaps: `/payment-cancelled`, `/benchmarks`, `/platform`, `/launcher`, `/launcher?watch=1`, `/waggle-dance`, `/artifacts`, `/settings/profile`, `/settings/timeline`, `/payment-success`, `/automations`, `/mcps`, `/settings/usage`, and `/files` have `J-route-coverage` owners, with the focused route coverage run passing 2/2 on port `34200`. Deeper workflow/state owners remain tracked separately under T10/T12/T16. -- Source inventory also found app files that are embedded or retired rather than top-level routes: `DashboardApp.tsx` and `VoiceApp.tsx` are unrouted/retargeted, `MissionControlApp.tsx` is superseded by `CockpitApp`, and `BackupApp.tsx` plus the files/storage subapps are judged through Settings or `/files`. -- Existing five-persona harness: `tests/vision/personas.spec.ts` verifies live persona chat workspaces, persistence, screenshots, and no cross-persona leakage, but it does not score every routed surface or the requested 9/10 UX rubric. -- Companion manifest: `docs/audits/2026-07-08-ux-route-scenario-manifest.md` converts these coverage gaps into a route-by-route and scenario-by-scenario evidence checklist. -- State/failure matrix: `docs/audits/2026-07-08-ux-state-failure-scenario-matrix.md` converts account, tier, disclosure, model, data, offline, destructive, responsive, accessibility, and performance state combinations into judge evidence requirements. -- Judge scorecards: `docs/audits/2026-07-08-five-persona-judge-scorecards.md` defines the scoring caps, required screenshots, route evidence, and correction mapping for the five-persona 9/10 gate. -- Judge runbook: `docs/audits/2026-07-08-five-persona-judge-runbook.md` turns the scorecards into an executable evidence protocol with state bundles, route sequences, required screenshots, score caps, deferral records, and an evidence folder shape. -- Source inventory consistency audit: `docs/audits/2026-07-08-source-inventory-consistency-audit.md` rechecks current route, command, app, package, public-site, and Browser Companion extension inventory against source. -- Route evidence T11 analysis: `docs/audits/2026-07-08-route-evidence-t11-analysis.md` adds the AppShell route registry, direct route-reference matrix, route-table command evidence, component evidence for command-only routes, current all-route built-preview smoke evidence, and zero/thin route correction candidates. -- Mobile Executive T2/T12 analysis: `docs/audits/2026-07-08-mobile-executive-t2-t12-analysis.md` adds 390 x 844 screenshots for Home, Settings general/models/billing/profile, Memory, workspace chat, Command Center, and Workspace Switcher. The original pass proved critical visible controls can clip even when document-level horizontal overflow is clean; current focused Settings verification passes 1/1 on port `34195`. -- First-run onboarding T1/T2/T12 analysis: `docs/audits/2026-07-08-first-run-onboarding-t1-t2-t12-analysis.md` adds clean-data desktop and mobile onboarding evidence without skip flags. It confirms the desktop path is functionally complete; sampled T1 console health, mobile Profile reachability, high-volume import CTA risk, model-ready copy, and first-task composer handoff are now focused fixed. -- Shell overlay T10/T12 analysis: `docs/audits/2026-07-08-shell-overlays-t10-t12-analysis.md` adds fresh desktop/mobile overlay smoke evidence for Keyboard Shortcuts, Persona Switcher, Spawn Agent, Workspace Switcher, Notification Inbox, Create Workspace, and Upgrade Modal, plus source-only findings for Context Rail, Onboarding Tooltips, and Trial Expired Modal. -- Browser Companion T19 analysis: `docs/audits/2026-07-08-browser-companion-t19-analysis.md` adds extension syntax/manifest/server typecheck evidence, disconnected/connected popup screenshots, direct sidecar save evidence, current toolbar/extraction probes, Memory UI confirmation, CORS/auth findings, and line-level T19 findings. -- Desktop wrapper T14 analysis: `docs/audits/2026-07-08-desktop-wrapper-t14-analysis.md` adds refreshed Rust `cargo check`, resource/runtime evidence, app TypeScript evidence, web-side Tauri test command evidence, app service E2E evidence, and a native event consumer matrix. -- Public launch funnel T13 analysis: `docs/audits/2026-07-08-launch-funnel-t13-analysis.md` adds www test/typecheck/build evidence, fresh localhost route/API smoke, rendered Browser checkout-recovery evidence, live canonical-domain DNS failure evidence, GitHub Releases download-target evidence, local checkout fixes, and line-level launch-funnel correction candidates. - -Non-main surface scope notes: - -- Public site `apps/www` is a real user-facing launch funnel, not just marketing decoration. It has a coherent homepage, skip link, mobile menu semantics, Solo/Team/Enterprise pricing, GET-based Team checkout CTA, cancelled-checkout recovery notice, guarded legal placeholder copy, OS-aware download CTA, historical Lighthouse evidence, and focused component/route tests. -- Public site command evidence now shows 7-file component/route/legal/download/deployment tests, direct TypeScript, and `npm run build:www` passing. The download guard includes mobile/desktop OS-label detection so iOS/Android visitors are not promised desktop installers. The prior GitHub Pages/static artifact mismatch is fixed locally: `deploy-www.yml` now uses Vercel production pull/build/deploy for the dynamic Next app. -- Public site local production route smoke is host-sensitive: `--hostname 127.0.0.1` caused Next middleware proxy failures to `localhost:` on Windows, while `--hostname localhost` rendered the homepage, legal pages, auth pages, `/download`, `/docs/methodology`, and unauthenticated checkout/account redirects. The fresh Browser refresh on `localhost:34204` had 0 console warnings/errors for the fixed pricing recovery state. Real issues remain: canonical DNS failure, missing signed installer/release artifacts, missing deployed Vercel/DNS smoke, formal legal sign-off, and missing deployed Clerk/Stripe checkout evidence. -- Public site gaps found by source inspection and current smoke: the canonical `waggle-os.ai` domain does not currently resolve from the audit environment; a controlled local `/download` status page has replaced the empty GitHub Releases dead end, but real signed installer artifacts are not published; deployment target and real deployed checkout coverage are still thin; formal legal sign-off is not proved. Locally fixed: signed-out Team checkout now uses GET auth continuation, checkout cancel recovery points to `/?checkout=cancelled#pricing` with a retry notice, legal Day-0/stale Pro placeholder copy is guarded, the public Download CTA no longer points to `releases/latest`, mobile/tablet visitors keep a generic Download label instead of a false desktop OS label, and the intentional `html.js` hydration mismatch no longer raises a Next dev issue badge. -- Desktop wrapper `app/` has strong build-resource preflights, static tests, TypeScript checks, Rust `cargo check`, web-side Tauri binding tests, passing service-level startup/chat/workspace E2E, a release workflow guard that builds packages before sidecar packaging, a focused tray-source guard, and a fresh local debug bundle that produced both MSI and NSIS artifacts. Native source directly handles tray Open/focus, close-to-tray, `Ctrl+Shift+W` window visibility, and tray Quit; Settings is bridged to `/settings`; unsupported Pause/About tray actions are hidden. Installed-app UX evidence, signed release trust, published artifact availability, and packaged tray/service/update interaction proof remain open. -- Source search now leaves `waggle://update-available`, `waggle://service-status`, and `waggle://service-restart-needed` as the remaining unconsumed native event families. Tray `waggle://navigate` has a web bridge for `/settings`; `waggle://pause-agents`, `waggle://quit`, and `/about` tray emissions were removed or replaced with native handling. -- The active installed sidecar path is `packages/server/src/local/service.ts` bundled by `scripts/build-sidecar.mjs`, staged into `app/src-tauri/resources/service.js`, and launched by `app/src-tauri/src/service.rs`. The top-level `sidecar/` JSON-RPC code should not be treated as the primary installed desktop runtime unless a current launch path imports it. -- Admin web and CLI/MCP utility surfaces are real user-facing/admin paths: `packages/admin-web`, `packages/cli`, `packages/launcher`, `packages/marketplace`, `packages/memory-mcp`, `packages/hive-mind-mcp-server`, and `packages/hive-mind-cli`. T15 now has its own supplement: `docs/audits/2026-07-08-admin-cli-utility-t15-analysis.md`. -- Utility evidence is no longer merely shallow: marketplace CLI built/installed help/invalid-command behavior plus package manifest/packed-file alignment, launcher built help/invalid-port/occupied-port recovery plus packed first-command, clean installed occupied-port startup recovery, and clean installed long-running `/health` startup, built, packed, and local package-closure installed `@waggle/cli` `npx` help plus installed local REPL startup/slash-command/exit and streamed chat/provider plumbing, sampled hive-mind CLI source/built/installed subcommand help, legacy memory MCP read/write startup plus installed read-only startup, hive-mind MCP write-scope roundtrip plus installed read-only startup, and admin-web unit plus rendered package coverage with local bearer-auth behavior are now locally fixed and guarded. Registry-only proof after internal package publication remains open. -- AI-tool hook packages are real user-facing integration surfaces through Launcher hook install/verify/uninstall. Current package and manifest tests are strong, local packed-package `npx` lifecycle now proves install/verify/uninstall for all six hook-capable packages, focused rendered Launcher smoke covers mixed hook states, a codified rendered Playwright spec covers every hook-capable tool's install/verify/uninstall UI transitions, a gated real-tool Playwright smoke proves OpenClaw rendered detection plus observed launch/output/exit/process cleanup, and a gated route Playwright smoke proves real `/api/tools/hooks` install/verify/uninstall for all six hook-capable tools against an isolated profile with cleanup. The packet still has not proved packaged desktop integration for hook status transitions. `claude-desktop` is intentionally the only non-hook-capable built-in; `packages/hive-mind-hooks-claude-desktop` is a stub/no-bin package, while `codex-desktop` is a thin re-export of the Codex hook package. -- Developer API/background/substrate now has its own supplement: `docs/audits/2026-07-08-developer-substrate-t17-analysis.md`. Current evidence is broad and mostly green, including 13/13 direct no-emit typechecks, agent/core/optimizer/weaver package tests, root-run substrate/SDK/shared/WaggleDance/worker/compiler tests, a dedicated server performance lane passing 13/13, a named server release lane passing 185 files / 2128 tests with one worker, hermetic marketplace-sync coverage, and a fixed Playwright `webServer` startup path. T17 remains open for warning hygiene and developer recovery journeys that are not fully sampled. -- Ops/deployment/CI/benchmark/judging now has its own supplement: `docs/audits/2026-07-08-ops-deploy-ci-judging-t18-analysis.md`. Config syntax, secret tracking, safe Compose scans, benchmark TypeScript, package-local benchmark tests (29/325), production Compose fail-closed credential guards, explicit Render sidecar-mode guards, root-run benchmark tests, the public-site Vercel workflow guard, and a new blocking five-journey browser smoke pass; deployed Vercel/DNS proof, no live infra lane, LiteLLM live routing, and stale judge artifacts keep T18 open. -- Browser Companion extension `apps/browser-ext` is a real capture surface: a Chrome MV3 popup/content/background flow that saves current page or selection into memory through the local sidecar and `GET /api/browser-ext/health`. Current July evidence now proves syntax, manifest shape, server typecheck, direct sidecar frame creation, content-script extraction from a normal page, secure-default extension token bootstrap during save, background save through `chrome.runtime.sendMessage`, `/api/memory/frames` imported-frame confirmation, direct popup Save selection/Save page button-click saves, context-menu handler behavior, Memory search provenance consistency for imported captures, and rendered Memory UI confirmation after secure popup saves. T19 still does not prove native toolbar-bubble exposure, native context-menu click behavior, packaged pairing, or any separate global-recall provenance shape if it enters scoring. -- These findings are tracked as T13, T14, T15, T16, T17, T18, and T19 in the correction register. They are not Phase 1 unless a Phase 1 verification command directly forces a small supporting fix, but they do block the final "complete UX" claim unless the user explicitly defers them from the score. - -Build warnings: - -- Fixed 2026-07-09: Tailwind ambiguous motion-token classes `duration-[var(--mo-base)]`, `duration-[var(--mo-fast)]`, and `ease-[var(--mo-ease)]` were replaced with named motion utilities and guarded by `motion-class-hygiene.test.ts`. -- Fixed 2026-07-09: `shape-selection.ts` is no longer dynamically imported by the adapter while also being statically imported by Settings; `build-warning-hygiene.test.ts` guards this boundary. -- Fixed 2026-07-09: route surfaces, closed shell overlays, ChatHost, and PostHog analytics are lazy-loaded. The startup JS chunk dropped from `index-BtS0I3SX.js` at 1,847.38 kB minified / 495.99 kB gzip to `index-D-wAFouW.js` at 421.96 kB minified / 114.08 kB gzip, and the Vite large-chunk warning no longer appears. -- Several persona image assets are roughly 395 to 653 kB each. - -Static Web Interface Guidelines scan: - -- Line-level supplement: `docs/audits/2026-07-08-web-guidelines-line-findings.md`. -- Native browser dialogs in trust-critical UI: current follow-up scan finds 0 high-confidence production `confirm`/`alert`/`prompt` calls after excluding comments, sanitizer tests, and local callbacks named `confirm`. -- Scoped production UI scan found: 34 `transition-all` hits, 57 `outline-none`/`focus:outline-none` hits, 15 `autoFocus` hits, 11 raw `` hits in cockpit UI, and 114 `new Date(...)` / `toLocale*` hits needing user-visible locale review. -- `transition-all` appears 34 times in scoped cockpit/admin/public UI. Animation polish should replace broad transitions in touched user-facing surfaces with explicit properties. -- `outline-none` appears 57 times in the original scoped scan; many have focus-ring replacements, and the supplement now lists 0 current high-confidence weak or missing visible focus replacements in the reviewed list after focused fixes. -- No `user-scalable=no`, `maximum-scale=1`, or paste-blocking `onPaste` hits were found. -- Static `` search found all inspected hits have `alt`, but image elements commonly rely on CSS sizing instead of explicit `width`/`height`; above-fold and repeated persona/logo images should be included in the performance/CLS pass. -- Loose form metadata scan found 145 text-like controls missing `name`, 107 missing `autoComplete`, and 115 without an obvious same-tag `id`/ARIA label hook. Treat these as a historical T10 audit queue, because custom `Input` components and wrapping labels require contextual inspection; regenerate the counts after the focused fixes before final closeout. -- Implementation update 2026-07-08 T10: Settings model/trust/team/KVARK controls, Profile identity/preferences/brand fields, Chat composer, Vault add-secret controls/actions, Launcher refresh/prompt, Approvals refresh/revoke, Cockpit refresh, WaggleDance refresh, ComplianceDashboard report actions, AgentCard custom delete, All Workspaces search, Wiki search, and Files storage/browser scroll regions now have focused accessible-name/metadata/focus fixes and tests. -- Implementation update 2026-07-09 T10: WorkspaceActionsMenu rename/delete confirmation inputs now have explicit accessible labels, `name`, `autocomplete="off"`, and visible focus rings guarded by `workspace-actions-menu.test.tsx`; the focused menu test now passes 13/13 without React `act(...)` warnings. -- Implementation update 2026-07-09 T10: Command Center search now has a visible token focus ring guarded by `p7-b3-command-center.test.tsx`; the focused Command Center test passes 6/6. -- Implementation update 2026-07-09 T10: warm AskBar input now has `name`, `autocomplete="off"`, and a visible token focus ring guarded by `warm-primitives.test.tsx`; the focused warm primitive test passes 13/13. -- Implementation update 2026-07-09 T10: workspace TasksTab add-task input now has `aria-label`, `name`, `autocomplete="off"`, and a visible token focus ring guarded by `workspace-tasks-tab.test.tsx`; the focused TasksTab test passes 5/5. -- Implementation update 2026-07-09 T10: Timeline event-type filter now has `aria-label`, `name`, hidden decorative icon semantics, and a visible token focus ring guarded by `timeline-app.test.tsx`; the focused Timeline test passes 1/1. -- Implementation update 2026-07-09 T10: Create Workspace template creator Description and Starter Memory textareas now have associated labels, `name`, `autocomplete="off"`, and visible token focus rings guarded by `shell-overlay-contracts.test.tsx`; the focused shell overlay contract passes 10/10. -- Implementation update 2026-07-09 T10: Workspace Switcher focus movement, Tab trap, Escape close, and focus return are now guarded by `shell-overlay-contracts.test.tsx`; the focused shell overlay contract passes 10/10. -- Implementation update 2026-07-09 T10: `MissionControlApp` refresh/pause/resume/stop icon-only controls now have accessible action names and visible token focus rings guarded by `mission-control-a11y.test.tsx`; the focused Mission Control test passes 1/1. - -Runtime accessibility smoke: - -- Focused supplement: `docs/audits/2026-07-08-runtime-a11y-t10-analysis.md`. -- Fresh built-app axe/DOM smoke on port 3423 rendered `/home`, `/settings`, `/settings/profile`, `/memory`, `/workspaces/default-workspace/chat`, `/launcher`, `/mcps`, `/files`, `/approvals`, and Command Center in desktop and 390 x 844 mobile contexts with the standard E2E skip harness. -- Runtime findings from the pre-fix smoke: Settings had critical `button-name` and `select-name` axe findings; Profile had critical `select-name`; Launcher and Approvals had critical unnamed icon buttons; Files had a serious keyboard-inaccessible scroll region; workspace chat had tabpanel semantics and image/preview accessible-text findings; Command Center opened/focused/closed with `Control+k`/Escape but logged a dialog-description warning and overflowed long subtitles on mobile. These sampled findings are now fixed in source and focused tests, and the expanded runtime axe gate is green across 41 desktop/mobile routes. -- The first axe attempt without skip parameters is retained only as a harness caveat because desktop routes can render first-run/auth state instead of the intended app surface. - -## Judge Personas - -The five judges should test the product as distinct users, not as abstract reviewers. Each judge scores 10 points, with no category below 8 allowed for a pass. - -| Judge | Primary scenario | Current estimate | Why not 9 yet | -|---|---|---:|---| -| Solo founder/operator | First run, accountless mode, model setup, Home Start Here, create workspace, first chat | 8.6 | Core flow works, sampled accountless console health is green, and first-run import/model/first-task handoff polish is focused fixed; remaining caps are legacy pricing-copy/state evidence and broader unsampled failure-state proof. | -| Power developer/agent wrangler | Command center, agents, launcher, skills, connectors, MCPs, files, keyboard workflows | 8.1 | Core routes and keyboard contract now pass; remaining caps are marketplace/search determinism, broader keyboard/focus proof, and non-main integration evidence. | -| Team admin/security reviewer | Billing, Team, Approvals, Vault, governance, audit/compliance, restore/backup | 7.8 | Known production native dialogs, sampled console health, and active cockpit pricing copy are fixed; remaining caps are explicit auth-enabled evidence, launch/legal copy, and governance failure-state depth. | -| Memory-heavy researcher | Home continuity, Memory Center, search, frames, wiki, provenance, timeline | 8.5 | Functional and well covered; Artifact permanent delete, Memory Center delete/erase/allow re-import, Wiki export destinations, and seven-view visual snapshots are green. Remaining caps are broader persona-bundle coverage and deeper Memory/chat mobile-state proof. | -| Mobile/tablet executive | Review Home, settings, billing/profile, light/dark, touch/narrow viewport | 7.4 | Home renders, Settings is now green in the focused 390px route check, first-run Profile Continue reachability is green, and Command Center has a described, non-overflowing 390px keyboard path. Remaining cap: Memory/chat tab-strip ownership plus broader touch-state evidence. | - -Target pass condition: - -- All five judges score at least 9/10. -- No P0 findings remain. -- Full web Vitest, build, rendered audit, and visual snapshots are green or have explicitly approved baseline updates. -- Manual desktop and mobile screenshots show no text clipping, incoherent overlap, or unusable navigation. -- Five-persona live judge gate runs and produces at least 9/10 for every persona. Existing candidate harness: `tests/vision/personas.spec.ts`, which drives five persona workspaces against a real local LLM and writes persona artifacts under `tests/vision/artifacts/personas`. - -## Route and Surface Coverage Matrix - -This matrix is the current route/app inventory used for coverage. "Evidence" means at least one current test or manual rendered inspection touched the surface in this audit pass; it does not mean the surface is 9/10. - -| Surface | Route | Primary component | Main user job | Evidence | Correction focus | -|---|---|---|---|---|---| -| Auth/accountless | `/auth` | `AuthRoute` + Clerk/accountless screens | Sign in or continue local-first | Focused accountless console-health checks pass 3/3 on port `34196`; auth component tests cover no-key and explicit-enabled key shape | Explicit Clerk-enabled rendered state evidence. | -| Home | `/home` | `HomeCockpit` | Daily briefing, Start Here, recent work | Rendered desktop/mobile + tests | Preserve as anchor surface. | -| All workspaces | `/workspaces` | `AllWorkspacesApp` | Browse/create/manage workspaces | Route inventory + passing tests | Modal/native confirm polish. | -| Workspace | `/workspaces/:workspaceId/:tab?` | `WorkspaceDesktopApp` + `ChatSlot` | Chat, files, memory, tasks per workspace | Passing journey/API tests | Shortcut contract, workspace context clarity. | -| Memory | `/memory/:mindScope?` | `MemoryCenterApp` | Search, trust, wiki, provenance, evolution | Passing tests, rendered `J3f` delete/erase/re-import confirmations on port `34164`, rendered `J3g` Wiki export forms on port `34167`, and expanded user journeys pass 24/24 on port `34177` | Visual baseline, form/a11y pass, failure states, and broader persona-bundle evidence. | -| Artifacts | `/artifacts` | `ArtifactCenterApp` | Agent-produced documents/files | Passing smoke plus rendered `J3e` permanent-delete confirmation on port `34161`; latest expanded user journeys pass 24/24 on port `34177` | Archive/empty/error states and broader persona-bundle evidence. | -| Files | `/files` | `StorageAndFilesApp` | Browse workspace files/storage | Passing smoke/stress; cross-workspace file copy now passes API and drag-interaction regression tests | Folder cross-workspace copy is explicitly constrained to files; file action confirmations and empty states remain in the broader judge lane. | -| Agents | `/agents` | `AgentsApp` | Create/manage agents/groups/templates | Passing smoke/stress | Form labels, async test warnings. | -| Automations | `/automations` | `AutomationCenterApp` | Scheduled jobs | Passing unit/route tests; delete confirmation now has focused component evidence | Builder form semantics and broader automation states. | -| Skills | `/skills` | `CapabilitiesApp` | Installed skills and skill marketplace | Passing smoke; marketplace flake | Pricing copy, marketplace loading determinism. | -| Room | `/room` | `RoomApp` | Watch agents work together | Passing smoke | Empty/running state polish. | -| WaggleDance | `/waggle-dance` | `WaggleDanceApp` | Shared signal/swarm view | Route/API coverage | Clarify discoverability and value copy. | -| Approvals | `/approvals` | `ApprovalsApp` | Review agent actions/grants | Passing smoke plus rendered `J3d` revoke-all confirmation on port `34159`; latest expanded user journeys pass 24/24 on port `34177`; refresh and per-grant revoke icon buttons have focused accessible-name coverage | Approve/deny and individual revoke states still need final persona-bundle evidence. | -| Connectors | `/connectors` | `ConnectorsApp` | Connect external apps/accounts | Passing smoke/API | Credential setup clarity, error state polish. | -| MCP Hub | `/mcps` | `MCPHubApp` | Manage MCP servers | Passing smoke | Pro/Solo/Team copy, custom MCP form labels. | -| Marketplace | `/marketplace` | `MarketplaceApp` | Browse/install extensions | Passing smoke; one API flake | Pro copy, live sync determinism. | -| Launcher | `/launcher` | `LauncherApp` | Launch linked AI tools/hooks | Current all-route smoke renders `/launcher` and `/launcher?watch=1`; focused T16 Browser smoke renders mixed hook states against a mock local API; Playwright rendered coverage proves standard install changed-file/pointer/backup/recovery labels, all six hook-capable install/verify/uninstall transitions, sidecar-offline Retry, long-stderr summarization, non-built-in adapter launch-only/prompt behavior, and real OpenClaw observed launch/output/exit/process cleanup; refresh and optional prompt controls have focused accessible-name/metadata coverage; packed-package `npx` lifecycle is proven for all six hook-capable packages; gated route evidence proves real `/api/tools/hooks` install/verify/uninstall for all six hook-capable tools against an isolated profile | Packaged app hook-status integration remains. | -| Team | `/team` | `TeamGovernanceApp` | Team rules/permissions | Passing smoke/API | Gating copy, admin trust states. | -| Settings | `/settings` | `SettingsApp` | General/model/billing/backup/system settings | Passing desktop/mobile focused checks plus rendered `J3h` backup/restore trust path on port `34171`; latest expanded user journeys pass 24/24 on port `34177`; Prompt Shape, telemetry, daily budget, mutation gate, team, and KVARK controls have focused accessibility metadata coverage | Deeper mobile overlay paths, remaining settings tabs/states, and persona-state evidence. | -| Vault | `/settings/vault` | `VaultApp` | Store API keys/secrets | Passing smoke/API | Error/success states, labels. | -| Profile | `/settings/profile` | `UserProfileApp` | Identity/profile preferences | Runtime axe gate and focused tests cover identity, preference, brand, writing-style, and language controls | Broader profile-state edge cases. | -| Mission Control | `/settings/mission-control` | `CockpitApp` | Health/cost/activity cockpit | Runtime axe gate covers route; Cockpit refresh and ComplianceDashboard actions are named | Visual baseline and responsive fit. | -| Timeline | `/settings/timeline` | `TimelineApp` | Activity history | Passing smoke | Empty/loading state polish. | -| Events | `/settings/events` | `EventsApp` | Live logs/events | Passing smoke; visual failure | Filter ergonomics and visual baseline. | -| Usage & Cost | `/settings/usage` | `TelemetryApp` | Spend/token visibility | Current all-route smoke renders Team-tier gate but logs a 403 resource error | Unknown local model pricing entry and expected-vs-error resource semantics. | -| Benchmarks | `/benchmarks` | `BenchmarkApp` | Capability/memory benchmark view | Component tests plus codified `J-route-coverage` route smoke passing on port `34200` | Non-sidebar discoverability and benchmark interpretation depth. | -| Platform | `/platform` | `PlatformApp` | Platform/roadmap info | Component tests plus codified `J-route-coverage` route smoke passing on port `34200` | Non-sidebar discoverability and judged-scope/value clarity. | -| Payment success | `/payment-success` | `PaymentSuccessApp` | Checkout return state | Current all-route smoke renders no-checkout fallback | Legacy Pro display context and completed Teams checkout-return state. | -| Payment cancelled | `/payment-cancelled` | redirect to Settings billing | Recover from cancelled checkout | Codified `J-route-coverage` proves redirect to `/settings?tab=billing` and billing recovery copy on port `34200` | Completed checkout-cancel recovery state depth. | -| Not found | `*` | `NotFound` | Recovery from bad route | Current all-route smoke renders branded recovery but logs the expected bad route as a console error | Keep recovery link visible and classify expected 404 logging outside critical console failures. | -| Command Center | `Ctrl+K` overlay | `CommandCenter` | Search/routes/actions | Passing journey/stress plus described/no-overflow 390px mobile proof | Pro wording in pinned group. | -| Workspace Switcher | Sidebar/Ctrl+Tab overlay | `WorkspaceSwitcher` | Pick/create workspace | T4 traversal guard passes 1/1 on port `34198`; mobile open/close evidence exists | Broader less-common overlay states and focus-return evidence. | -| Persona Switcher | `Ctrl+Shift+P` overlay | `PersonaSwitcher` | Switch active persona/group | Fresh shell overlay smoke passes desktop open/Escape close | Keep current labelled/focus-trapped behavior covered. | -| Spawn Agent | New Agent overlay | `SpawnAgentDialog` | Start an agent run | Fresh shell overlay smoke passes desktop/mobile open and desktop Escape close | Form labels and model fallback clarity. | -| Notification Inbox | Status/sidebar entry | `NotificationInbox` | Review alerts | Fresh shell overlay smoke fails Escape close and semantics | Add labelled panel/dialog semantics, named icon actions, and keyboard close proof. | -| Create Workspace | Workspace Switcher/New workspace | `CreateWorkspaceDialog` | Create a workspace | Fresh shell overlay smoke fails Escape close/semantics; mobile first viewport is template-heavy | Add modal semantics/focus handling, named icon actions, and mobile-first creation hierarchy. | -| Context Rail | Chat/context action | `ContextRail` | Inspect selected context | Source-only overlay finding | Add labelled landmark, named close action, and keyboard/open-close evidence. | -| Onboarding Tooltips | Post-onboarding coach marks | `OnboardingTooltips` | Explain first actions | Source-only overlay finding | Decide modal vs non-modal semantics and prove it never blocks task flow. | -| Onboarding Wizard | `forceWizard`/first run | `OnboardingWizard` | First launch setup | Passing tests plus clean-data smoke on port 3431; focused T1/mobile checks pass on ports `34196`/`34194`; high-volume import CTA coverage passes 2/2; model/first-task handoff tests pass 17/17 | Desktop completion works; remaining first-run risk is broader state/recovery evidence, not the sampled CTA/copy/handoff polish. | - -## Usage Scenarios Covered - -### First Run and Account - -Covered surfaces: - -- Boot/briefing skip paths -- Accountless app behavior -- Optional Clerk wrapper -- Onboarding Wizard -- Model gate -- Memory import -- Template selection -- First task setup - -Risk: - -- The optional Clerk wrapper is conceptually right: no key means accountless, key means Clerk. The original built local app picked up a real publishable key and then hit CSP/script loading errors; current sampled accountless console-health checks pass 3/3 on port `34196`. - -Correction: - -- Make deterministic local/accountless audit mode impossible to accidentally override with `apps/web/.env.local`. -- Either permit Clerk's configured frontend API in CSP when Clerk is intended, or keep Clerk fully disabled in desktop/local/offline accountless mode. -- Re-run the console-error audit until it passes. - -### Home and Daily Continuity - -Covered surfaces: - -- Home route -- Start Here -- While you slept -- Recent workspace -- Mobile Home - -Result: - -- Home is one of the strongest parts of the product. Desktop and mobile screenshots were coherent and usable. This should remain the anchor surface for first daily use rather than creating a new surface for continuity work. - -Correction: - -- Preserve Home as the default daily cockpit. -- Do not introduce a separate "dashboard" unless a specific missing workflow proves Home cannot own it. - -### Workspace, Chat, Files, and Artifacts - -Covered surfaces: - -- Workspace route -- Chat textarea and model/persona visibility -- File manager smoke -- Artifact center smoke -- Workspace management overlays - -Result: - -- Automated journey tests pass. The shell opens the primary working surfaces reliably. - -Risks: - -- Some creation/edit flows rely on dense modal content and keyboard-only handlers. -- The current production native-dialog scan is clean; sampled Artifact permanent-delete, Memory Center delete/erase/re-import, Settings telemetry/backup/restore, Wiki export, Automation delete, compliance template delete, admin member removal, BackupApp restore, and Create Workspace custom-template delete paths now use in-app confirmations/forms/status. - -Correction: - -- Standardize destructive workspace/file/artifact actions on the in-app confirmation pattern with focus management and clear consequences. - -### Memory, Wiki, Trust, and Provenance - -Covered surfaces: - -- Memory route -- Empty/non-empty memory states -- Memory Center -- Wiki export forms -- Trust management references -- Evolution tab references - -Result: - -- The memory app is functional in tests and appears integrated with the main navigation. - -Risks: - -- Memory Center delete, GDPR erase, allow re-import, and Wiki Obsidian/Notion export destinations now use in-app confirmations/forms. - -Correction: - -- Replace remaining prompt/confirm flows with in-app modals or dedicated inline forms. -- Keep destructive actions on the branded confirmation pattern and allow safe cancel/undo where possible. - -### Agents, Personas, and Automations - -Covered surfaces: - -- Agents route -- Spawn Agent dialog -- Persona Switcher -- Automation Center -- Agent groups/builders - -Result: - -- Tests cover and pass important agent/automation surfaces. - -Risks: - -- Test output includes React `act(...)` warnings in several app surfaces, including workspace, model gate, settings, automation, and templates. -- Some form labels are visually present but not consistently associated with inputs. - -Correction: - -- Fix test async warnings so regressions are easier to see. -- Run a focused accessibility pass over forms, labels, and keyboard flows. - -### Skills, Connectors, MCP, Marketplace, and Launcher - -Covered surfaces: - -- Skills Hub -- Connector Hub -- MCP Hub -- Marketplace -- Launcher -- Command catalog - -Result: - -- Deep app smoke tests pass. The high-level IA is understandable: the sidebar stays simple and command center exposes hidden depth. - -Risks: - -- Original source scans found user-facing Pro gate copy in cockpit Marketplace/MCP/Skills/Settings surfaces where current strategy says Solo/Team. -- Current source search finds remaining cockpit `Pro` references only in explicit legacy billing compatibility, tests/comments, or model names. Public legal Pro copy remains tracked under launch-funnel T13. - -Correction: - -- Audit all rendered billing/gating text and normalize it to Solo/Team/Enterprise. -- Keep "legacy Pro" only where the user is already a legacy Pro subscriber and the context is explicitly billing history. - -### Team, Approvals, Billing, Vault, Backup, and Compliance - -Covered surfaces: - -- Team Governance -- Approvals -- Settings billing -- Settings vault -- Backup/restore -- Compliance dashboard/template flows - -Result: - -- Smoke tests pass, but trust-critical flows need UX cleanup. - -Risks: - -- The sampled Approvals revoke-all, Settings backup/restore, standalone BackupApp restore, Automation delete, compliance template delete, and admin-web member removal paths now use in-app confirmation/status patterns. -- Settings and standalone BackupApp backup/restore success and failure now use inline status/approval patterns for the sampled paths. - -Correction: - -- Move trust-critical feedback into the app UI. -- For backup/restore, show stateful progress, failure details, and next required action in the page, not a browser alert. - -### Settings and Narrow Viewports - -Covered surfaces: - -- Settings route -- Settings tabs -- Model/provider settings -- Billing/profile/vault/system settings -- Mobile Settings at 390 x 844 - -Result: - -- Desktop Settings is generally coherent. -- Mobile Settings was a major original blocker: the tab rail and content panel stayed side by side, leaving a narrow content column. Current focused Settings verification is green on port `34195`; broader mobile polish still needs Memory/workspace-chat tab ownership. - -Correction: - -- Add a responsive Settings layout: - - On narrow widths, tabs should become a top segmented control, horizontal scroll tab bar, or drawer. - - Content should use the full width. - - Provider/model cards should stack to one column. - - No inner horizontal scrollbar should be required for core settings. - -## Findings and Correction Backlog - -### P0-1: Accountless Clerk/CSP console health (verified fixed) - -Evidence: - -- `tests/e2e/full-product-audit.spec.ts:360` asserts no critical console errors. -- The built app failed this check. -- Console errors included CSP inline script blocking, Clerk script blocking, and Clerk load timeouts. -- `apps/web/src/lib/clerk.ts:41` reads `VITE_CLERK_PUBLISHABLE_KEY`. -- `apps/web/src/providers/WaggleClerkProvider.tsx:21` mounts `ClerkProvider` when a key is present. -- Current verification update: `clean first-run onboarding loads without Clerk, CSP, or page errors`, `no console errors on initial load`, and `no critical console errors on load` passed 3/3 on port `34196`. - -Why it matters: - -- Trust and first-run stability are part of the UX. A product can look usable and still fail a buyer/admin judge if it emits auth/security errors at boot. -- The sampled accountless path no longer carries this cap; explicit Clerk-enabled rendered auth still needs state evidence. - -Correction: - -- Define one deterministic local/offline/accountless mode for desktop and test harnesses. -- Prevent local `.env.local` from accidentally enabling Clerk during accountless verification. -- If Clerk is enabled, align CSP with the configured Clerk frontend API and remove inline script violations. -- Re-run the full-product audit until "no critical console errors on load" passes. - -Acceptance: - -- No critical console errors on initial load. -- Auth/accountless behavior is visible and intentional. -- No app blanking if Clerk is unavailable. -- Current focused accountless evidence passes this acceptance on port `34196`. - -### P0-2: Mobile Settings structural usability (verified fixed) - -Evidence: - -- `apps/web/src/components/os/apps/SettingsApp.tsx:221` renders Settings as `flex h-full`. -- `apps/web/src/components/os/apps/SettingsApp.tsx:225` keeps a fixed `w-36` tab sidebar. -- `apps/web/src/components/os/apps/SettingsApp.tsx:259` renders content in the remaining width. -- At 390 x 844, the content panel was squeezed to roughly half the screen and provider cards clipped. -- Fresh mobile smoke on port 3419 captured `output/playwright/mobile-executive-3419/settings.png`, `settings-tab-models.png`, `settings-tab-billing.png`, and `settings-profile.png`. It found no document-level overflow, but Settings header disclosure controls, model controls, and billing controls still visibly overflowed or became unreadably narrow. -- Current verification update: `J-mobile: Settings is usable at 390px width` passed 1/1 on port `34195`; the test checks `/settings`, `/settings?tab=models`, `/settings?tab=billing`, and `/settings/profile` for document-level overflow and visible control bounds. - -Why it matters: - -- A mobile/tablet judge cannot score this 9/10 even if desktop is polished. - -Correction: - -- At small breakpoints, convert Settings to a single-column layout. -- Move Settings tabs to a top tab strip, drawer, or select-style control. -- Stack provider/model cards and remove internal horizontal scrolling for primary content. - -Acceptance: - -- Mobile Settings has no document-level or main-panel horizontal overflow and no critical visible element overflow. Current focused evidence passes this acceptance on port `34195`. -- Labels, provider names, badges, and action buttons are readable at 390 px width. -- Desktop layout remains unchanged except for intentional polish. - -### P0-3: Cockpit pricing copy uses Solo/Team/Enterprise (verified fixed) - -Original evidence: - -- `apps/web/src/components/os/apps/MarketplaceApp.tsx:65`: marketplace MCP note says "Pro". -- `apps/web/src/components/os/apps/mcp/AddCustomMcpForm.tsx:79`: custom MCP form originally said legacy Pro was required. -- `apps/web/src/lib/command-catalog.ts:113`: command group heading originally used legacy Pro wording. -- `apps/web/src/components/os/overlays/LoginBriefing.tsx:351` and `:358`: account/team copy originally mixed legacy Pro with Teams/Enterprise. -- `apps/web/src/components/os/apps/skills/SkillRow.tsx:55`: verified badge title says "PRO". -- `apps/web/src/components/os/apps/SettingsApp.tsx:335`: local-first reassurance originally mixed legacy Pro with Teams. -- Current verification update: source search over the named cockpit files and `apps/web/src` finds remaining `Pro` references only in explicit legacy billing contexts (`Legacy Pro`, `Pro (legacy)`), tests/comments, or model/provider names. Public legal Pro copy is tracked separately under T13. - -Why it matters: - -- The current strategic model is Solo/Team/Enterprise, with legacy Pro mapped to Solo. Mixed copy harms comprehension and buyer confidence. - -Correction: - -- Replace user-facing Pro copy with Solo/Team/Enterprise language. -- Keep "legacy Pro" only in billing contexts where a legacy subscriber is being serviced. -- Add/extend tests for rendered plan copy in Marketplace, MCP, LoginBriefing, Settings, command catalog, and skill rows. - -Acceptance: - -- A text search for user-visible Pro copy returns only explicit legacy billing contexts and comments/tests. -- Solo users understand what is free. -- Team upgrade triggers are clear and consistent. -- Current cockpit evidence passes this acceptance; public launch/legal copy remains separate. - -### P0-4: Visual regression suite for tracked views (verified fixed) - -Evidence: - -- `tests/visual/views.spec.ts:12` tracks chat, memory, events, capabilities, cockpit, mission-control, and settings. -- `tests/visual/views.spec.ts:139` asserts screenshots for both dark and light. -- All 14 snapshots failed in the original rendered run, then passed in the current T5 verification run: 14/14 on port `34199`. -- Fresh T5 rerun on port 3463 preserved artifacts under `output/playwright/visual-t5-3463/test-results/`; exact classification lives in `docs/audits/2026-07-08-visual-t5-classification.md`. -- Actual screenshots were coherent in desktop dark and light mode. The original failures were classified mostly as stale-baseline drift after intentional surface changes, not a broad UI break. -- `tests/visual/baselines/` also contains duplicate historical baseline families; the active runner uses the ASCII-hyphen `Visual-Regression---...` folders, and the duplicate-family finding is documented in the T5 classification note. - -Why it matters: - -- The goal explicitly requires polished, well-designed UX. A failing visual suite removes objective evidence that the app stayed polished. - -Correction: - -- Keep current intentional surfaces instead of rolling UI back to old snapshots. -- Preserve the stabilization-only masking in `tests/visual/views.spec.ts` so visual snapshots compare layout and presentation, not volatile Home copy. -- Keep the duplicate baseline-family note in `docs/audits/2026-07-08-visual-t5-classification.md` until the historical folders are intentionally archived or removed. - -Acceptance: - -- Visual suite passes in dark and light; current focused evidence is 14/14 on port `34199`. -- Baseline updates and volatile-field masking are intentional and documented. -- The active baseline family is documented; duplicate historical folders are not used by the current runner. - -### P0-5: `Ctrl+Shift+N` route contract (verified fixed) - -Evidence: - -- `tests/e2e/phase-ab-verification.spec.ts:132` expects `Ctrl+Shift+N` to navigate to `/workspaces/:id/chat` when any workspace exists. -- `tests/e2e/power-user-stress.spec.ts:215` expects the same shortcut to open the active workspace chat route and reveal the chat input. -- Both tests failed on initial run and retry, then passed in the focused T4 re-check: 2/2 on port `34197`. -- `apps/web/src/hooks/useKeyboardShortcuts.ts:75` calls `onNewChatWindow` for `Ctrl+Shift+N`. -- `apps/web/src/components/os/AppShell.tsx:140` routes to chat only when `effectiveActiveWorkspaceId` exists; otherwise it opens the Workspace Switcher. - -Why it matters: - -- Power users rely on keyboard promises. A shortcut that sometimes opens a modal instead of the expected work surface feels broken, even when the fallback is intentional. - -Correction: - -- Product contract now follows Option A: `Ctrl+Shift+N` opens the active or first available workspace chat rather than leaving the user in an ambiguous chooser state when a workspace exists. -- Keep code, tests, keyboard help, and command-center copy aligned to that contract. - -Acceptance: - -- Both E2E shortcut tests pass against the approved contract. -- No modal remains open after a successful shortcut route. -- The chat input is visible after the shortcut when a workspace is available. - -### P0-6: Workspace Switcher route traversal (verified fixed) - -Evidence: - -- `tests/e2e/full-wiring-audit.spec.ts:553` originally timed out while traversing sidebar views. -- Error context shows the `Switch Workspace` dialog remained open and its backdrop intercepted clicks on the `Memory` sidebar item. -- Screenshot artifact: `test-results/e2e-full-wiring-audit-Full-adf22-s-—-zero-critical-JS-errors-chromium/test-failed-1.png`. -- Current verification: `traverse all sidebar views - zero critical JS errors` passed 1/1 on port `34198`. - -Why it matters: - -- This is a real UI state, not just a test artifact. A modal that persists across expected navigation blocks the primary shell and creates a "why won't the app move?" moment. - -Correction: - -- Ensure route-changing sidebar actions close or supersede workspace-selection overlays when appropriate. -- If the switcher opens because Chat has no explicit workspace, make its next step unambiguous and focus-safe. -- Add regression coverage for "open workspace switcher -> click Memory/Home/Settings -> modal closes or navigation is intentionally blocked with clear reason." - -Acceptance: - -- Full console traversal can visit key sidebar routes without pointer interception; current focused evidence passes on port `34198`. -- Users always have a visible close path and the shell never feels frozen behind the overlay. - -### P0-7: Mobile first-run onboarding primary action reachability (verified fixed) - -Evidence: - -- Fresh clean-data onboarding smoke on port 3431 captured `output/playwright/first-run-onboarding-3431/mobile-00-welcome.png` and `mobile-01-profile-empty.png`. -- Mobile Welcome fits and communicates the product promise clearly. -- Mobile Profile is taller than the initial 390 x 844 viewport; the primary Continue button starts below the visible area. -- Trace evidence records the Continue button bottom at `880` in an `844` px viewport. -- The same smoke completed the desktop first-run path through `/workspaces/research-hub/chat`, so this is a responsive onboarding issue, not a general onboarding dead end. -- Current verification update: `J-mobile: first-run onboarding keeps primary actions reachable at 390px width` passed 1/1 on port `34194`; the test asserts the Profile Continue button is within the 844 px viewport, checks visible overflow, and guards Clerk/CSP/page errors. - -Why it matters: - -- First-run setup is a primary Solo Founder and Mobile Executive route. The hidden-primary-action cap and sampled T1 console-health cap are currently closed for the Profile/accountless path, but remaining handoff polish can still cap the journey. - -Correction: - -- Make the Profile step mobile-first: reduce vertical density, split optional details, or use a sticky action row inside the wizard. -- Keep progress/title context and primary action visible or clearly reachable at 390 x 844. -- Add visible-bounds evidence for first-run onboarding, not only skipped-shell routes. - -Acceptance: - -- 390 x 844 clean-data onboarding Profile has no clipped critical controls and the primary Continue action is visible, sticky, or deliberately signposted. Current focused evidence passes this acceptance on port `34194`. -- Desktop first-run completion still reaches the chosen workspace chat and auto-sends the first task. - -### P1-1: Native browser dialogs interrupt branded workflows - -Evidence: - -- `packages/admin-web/src/pages/Members.tsx:72` -- Historical fixed: `apps/web/src/components/os/apps/BackupApp.tsx:79` -- Historical fixed: `apps/web/src/components/os/apps/AutomationCenterApp.tsx:184` -- Historical fixed: `apps/web/src/components/os/apps/cockpit/ComplianceTemplateModal.tsx:155` -- Historical fixed: `apps/web/src/components/os/apps/SettingsApp.tsx:399`, `:893`, `:901`, `:911`, `:921`, `:922`, `:925` - -Implementation update 2026-07-08: - -- Create Workspace custom-template delete now uses an in-app confirmation. -- Approvals revoke-all grants now uses the shared in-app `ApprovalModal`, with focused component coverage, rendered `/approvals` `J3d` evidence on port `34159`, and latest expanded user-journey evidence passing 22/22 on port `34165`. -- Artifact permanent delete now uses the shared in-app `ApprovalModal`, with focused component coverage, rendered `/artifacts` `J3e` evidence on port `34161`, and latest expanded user-journey evidence passing 22/22 on port `34165`. -- Memory Center permanent delete, GDPR erase, and allow re-import now use the shared in-app `ApprovalModal`, with focused component coverage, rendered `/memory?tab=memories` `J3f` evidence on port `34164`, and latest expanded user-journey evidence passing 22/22 on port `34165`. -- Wiki Obsidian and Notion exports now use in-app form dialogs, with focused component coverage, rendered `/memory?tab=wiki` `J3g` evidence on port `34167`, and the path remains included in latest expanded user-journey evidence passing 24/24 on port `34177`. -- Settings telemetry clear, backup failure, and restore success now use in-app approval/status states, with focused component coverage, rendered `/settings?tab=backup` `J3h` evidence on port `34171`, and latest expanded user-journey evidence passing 24/24 on port `34177`. -- Standalone `BackupApp` restore now uses the shared in-app approval modal, with focused component coverage in `p1b-authgate-surfaces.test.tsx`. -- Automation delete now uses the shared in-app approval modal, with focused component coverage in `phase3b-automation-center.test.tsx`. -- Compliance template delete now uses the shared in-app approval modal, with focused component coverage in `compliance-template-trust.test.tsx`. -- Admin-web member removal now uses an in-app confirmation panel, with focused coverage in `admin-pages.test.ts`. - -Why it matters: - -- Native dialogs feel outside the product, block focus in unpredictable ways, and are weakest exactly where the product needs trust: delete, restore, revoke, export. - -Correction: - -- Use a shared in-app confirm/result dialog for destructive and recovery flows. -- Use inline fields or modal forms instead of `prompt()`. -- Use toasts or inline status blocks for backup/restore results. - -Acceptance: - -- No native confirm/alert/prompt remains in shipped UX-critical paths. -- Keyboard and screen reader behavior is deliberate. - -### P1-2: Test output is too noisy - -Evidence: - -- Full Vitest passes but emits repeated React `act(...)` warnings. -- Node emits repeated `[DEP0040] punycode` warnings. -- Some tests intentionally log expected adapter/server errors. - -Why it matters: - -- Noisy green tests train reviewers to ignore output. That lowers confidence during a UX polish arc. - -Implementation update 2026-07-10: - -- The E2E harness removes inherited `FORCE_COLOR`/`NO_COLOR` conflicts for both the Playwright worker and web-server child, suppresses the expected mock-embedding banner only in the harness, and keeps local Ollama cost tracking explicitly free. A fresh built-app J1 smoke passed 1/1 on port `34315` with no color, embedding, or pricing warnings. Both the web and public `apps/www` Vitest configs now propagate the narrow Node `DEP0040` suppression to worker processes; the public full local suite passes 8 files / 21 tests without punycode warnings, and the new Files drag lane passes 2/2 cleanly. - -- Files workspace-rail dead end closed: `POST /api/workspaces/:targetWorkspaceId/files/copy` accepts a validated `sourceWorkspaceId` for file-only cross-workspace copies, preserves source data, indexes the target as usual, and returns an actionable 400 for folder drops. The existing API suite passes 33/33; the Files interaction suite passes 2/2 with success and folder-recovery coverage. - -- Fresh post-fix browser evidence: five-persona state bundles pass 5/5 on port `34316`; runtime axe passes 2/2 on port `34317` across the desktop and 390px mobile route set. The changed build completed before both runs. - -- Fresh broad browser refresh with the test base URL aligned to each fresh server: `full-product-audit.spec.ts` passes 40/40; `full-wiring-audit.spec.ts`, `user-behavior.spec.ts`, and `power-user-stress.spec.ts` pass 133/133; visual dark/light, boot, light-mode, and polish coverage passes 32/32 with one intentional skip. The earlier 3 desktop-shell failures were harness-only wrong-port navigations, not product failures. - -- Model setup UX correction: the shared `ModelGate` now scrolls and focuses the selected provider's key field after a tile click, so the same onboarding and Settings path remains actionable on compact/mobile layouts instead of leaving the field below a long provider grid. ModelGate + onboarding coverage passes 28/28; rebuilt-app five-persona and axe checks pass 5/5 and 2/2 on port `34323`. - -- API-key persistence correction: the Settings save path is now Vault-only for secrets, with provider models/base URLs retained as non-secret metadata; startup migration moves legacy config keys to Vault and scrubs their plaintext values. Settings API coverage passes 44/44, provider/migration coverage passes 18/18, and the server package typecheck passes. - -- Channels integration evidence from the committed `main` integration worktree: Telegram, Discord, Slack, WhatsApp, pairing, manager, and loopback chat suites pass 7 files / 79 tests; `ChannelsSettings.test.tsx` passes 7/7; server typecheck passes. Real bot-token delivery, WhatsApp device pairing, and live NAT/transport behavior remain external verification items. - -- Expanded accessibility correction: the 41-route desktop/mobile axe matrix is green 2/2 on fresh port `34333` after fixing workspace-card semantics and nested actions, contrast in workspace/platform/billing/usage states, heading order, and keyboard-focusable scroll regions. The harness waits for lazy content and the shell entrance transition before sampling so transient dialog animation does not create false contrast findings; each viewport test has a bounded 150-second budget. - -- Current five-persona state-bundle rerun: `tests/e2e/five-persona-state-bundles.spec.ts` passes 5/5 on fresh port `34334` for Solo Founder, Researcher, Engineer / Power User, Team Admin / Security Reviewer, and Mobile Executive. The run keeps the declared account/tier/model/data/offline state fields and the sampled failure, recovery, scale, billing, backup, approvals, launcher, memory, and mobile probes green; it is technical evidence, not subjective 9/10 judge sign-off. - -- Files workspace-switch correction (2026-07-10): Files freshness is now keyed by the complete `workspaceId + directory` route, so the workspace rail cannot present the previous workspace's rows as current while a switch is loading. Per-route session cache also preserves resolved empty directories and optimistic file operations for warm remounts. The focused Files/cross-workspace/deep-link/storage slice passes 25/25, including an explicit stale-workspace regression; web typecheck passes. - -- Remaining judge-nit correction (2026-07-10): the Platform surface's small uppercase top label now uses the established muted eyebrow tier in light mode instead of the dim tier. Platform coverage passes 4/4, and the full web gate after the correction passes 206 files / 1,718 tests. - -- Motion verification correction (2026-07-10): Home's cache delta pulse used a three-keyframe scale array with a spring transition, which produced an asynchronous Framer Motion exception under jsdom. It now uses the shared timed easing token for keyframes. Home motion/cache coverage passes 13/13; the complete web gate passes 207 files / 1,724 tests with zero unhandled errors. Known React `act()` and Router future-flag warnings remain test-hygiene debt, not product failures. - -- Browser Companion honesty correction (2026-07-10): Settings no longer labels Browser AI extensions as fully covered while native toolbar/context-menu evidence is open. The Coverage Compass now marks that row `partial` with explicit popup/capture coverage and pending native entry points; its focused regression passes 1/1. - -- Follow-up UX correction (2026-07-10): opacity-diluted uppercase labels in Home, Agents, Marketplace, Artifact Center, Launcher, Login Briefing, Persona Switcher, WaggleDance, and MCP cards now use the guaranteed `--honey-text`/`--text-tertiary`/status tokens. The semantic color guard passes with no new offenses, and the affected focused lanes plus the full web suite are green. - -- Cache-first return correction (2026-07-10): Connectors, MCP Hub, Artifact Center, Approvals, and Launcher now retain resolved session data while their route remounts and silently revalidates. Artifact cache keys include workspace, search, kind, and status, preventing cross-view stale rows; focused cache-return coverage passes 8 files / 71 tests. - -- Onboarding affordance correction (2026-07-10): inactive Who Are You chips now use a visible line-affordance border, guaranteed tertiary text, and focus-visible ring target instead of relying on color alone. The focused onboarding lane passes 14/14 and the full web gate passes 207 files / 1725 tests. - -- Model setup recovery correction (2026-07-11): the shared onboarding/Settings `ModelGate` now surfaces provider-catalog failures with service-aware copy and a Retry action. This closes the first-run dead-end where a failed `/api/providers` request left users with an empty grid and no way to add a key. Focused ModelGate + onboarding coverage passes 27/27; web typecheck passes. The desktop service/update event bridge was re-audited in the same pass and is already wired and covered by binding tests. - -- API-key setup rendered verification (2026-07-11): fresh-port Playwright coverage now exercises the actual onboarding and Settings surfaces, not only mocked component behavior. Both paths select Anthropic, focus the password field, submit a format-valid test key through `test-key`, record the provider payload sent to the canonical `/api/settings` Vault path, show saved feedback, and confirm onboarding Continue becomes enabled. The lane passes 2/2 on port `34382`; live provider acceptance with a real credential remains an external verification concern. - -- Provider model catalog correction (2026-07-11): the provider route and browser-side registry no longer contain a built-in model inventory. Configured provider APIs are queried for their complete returned model list; new entries are normalized to stable `provider/model` ids, merged into `/api/litellm/models`, and retained as an explicitly labelled stale catalog during outages. Provider and Chat catalogs refresh when Waggle regains focus. Selecting or saving an id missing from the running managed config regenerates the catalog and restarts the router once before Chat, scheduled work, or fleet execution receives it; existing ids do not restart. The latest incremental hot-model lane passes 27/27 backend tests and 3/3 web tests, alongside the existing ModelGate/onboarding lane. Real provider credentials plus one paid live completion remain external release evidence only. - -- Create Workspace mobile disclosure correction (2026-07-11): optional agent assignment is now collapsed by default so workspace name, storage, and creation remain the primary path at 390 x 844. The existing selected template/persona still appears in the summary, and the full picker expands with an explicit control; closing and reopening resets the optional disclosures. Focused shell-overlay contracts pass 15/15, the full web gate passes 207 files / 1726 tests, web typecheck passes, and the rendered `J-mobile` journey passes 1/1 on fresh port `34380`. Broader modal-state screenshots and focus-return coverage remain open. - -Correction: - -- Fix async state updates in affected tests/components. -- Suppress only explicitly expected logs inside tests that assert error handling. -- Track dependency source of `punycode` warning or filter it in test setup with a comment if upstream-only. - -Acceptance: - -- Full web test run is green with minimal expected warning noise. - -### P1-3: Marketplace and local-first test determinism need tightening - -Evidence: - -- `tests/e2e/full-wiring-audit.spec.ts:501` failed once because marketplace search returned non-OK, then passed on retry. -- `tests/e2e/waggle-complete.spec.ts:388` triggered `POST /api/marketplace/sync`, which performed live external sync and took 34.4s. -- The sync logged multiple external source errors even though the harness had `WAGGLE_DISABLE_MARKETPLACE_SYNC=1`. -- Current server fix: `POST /api/marketplace/sync` now respects `WAGGLE_DISABLE_MARKETPLACE_SYNC=1` and returns a no-network skipped response. The focused red/green regression passed, and the combined manual/background sync Vitest slice passed 3/3. -- Current E2E status: focused marketplace Playwright verification passed 4/4 on port `34203` after pinning the repo's direct `tsx` dependency to a matching `esbuild` generation. - -Why it matters: - -- Waggle's local-first story should not depend on external registries during core verification. Network-heavy sync also makes UX evidence slow and flaky. - -Correction: - -- Separate "local browse/search works" from "explicit external sync works." -- In test/audit mode, marketplace sync is explicitly skipped when `WAGGLE_DISABLE_MARKETPLACE_SYNC=1`. -- Surface external sync partial failures in-app with clear source-level status rather than noisy logs only. - -Acceptance: - -- Core marketplace browse/search tests pass without network access in the audit lane. -- External sync has its own opt-in test lane and user-visible partial-failure reporting. - -### P1-4: Initial app payload is too heavy for a seamless desktop feel - -Evidence: - -- Fixed 2026-07-09: current startup JS chunk is 421.96 kB minified / 114.08 kB gzip, down from the original 1,822.76-1,847.38 kB range. -- Vite no longer warns that JS chunks exceed 500 kB after minification. -- Several persona images are 395 to 653 kB. -- `shape-selection.ts` dynamic/static import warning is fixed; route/app surfaces, closed shell overlays, ChatHost, and cloud analytics are guarded by `build-warning-hygiene.test.ts` so they stay out of the startup bundle. - -Why it matters: - -- Waggle is a desktop app, but users still judge startup responsiveness. A heavy first payload weakens first impression and can worsen perceived polish on lower-end machines. - -Correction: - -- Lazy-load deep apps and settings subsections that are not needed for first paint. -- Fix mixed static/dynamic imports that defeat splitting. -- Compress or resize large persona assets. - -Acceptance: - -- Startup JS chunk stays below the Vite 500 kB warning threshold. -- Home and core shell render before deep app, overlay, chat, and analytics code is loaded. -- Persona/logo media assets are optimized or explicitly accepted in a separate visual/CLS pass. - -### P1-5: Form, focus, and icon-button accessibility need a focused pass - -Evidence: - -- Static search found many visually labeled inputs without explicit `htmlFor`/`id` association, especially in Settings, profile, workspace creation, agent builders, compliance templates, and onboarding. -- Some labels wrap controls, which can be valid, but the pattern is inconsistent enough to merit a focused pass. -- Representative icon-only controls without accessible names still need a broader unsampled sweep; the sampled Cockpit, WaggleDance, ComplianceDashboard, custom AgentCard, and source-level Mission Control actions now have focused fixes and green coverage. -- Modal and confirmation inputs use `autoFocus` in several places, which can be good when deliberate, but the judge pass should prove focus lands on the intended field and returns to the triggering control when the modal closes. -- Runtime axe/DOM smoke found critical unnamed controls/selects on Settings, Profile, Launcher, and Approvals; a serious Files keyboard-scroll issue; workspace semantic/image-alt findings; and Command Center dialog/label-fit warnings. -- Shell overlay smoke found Notification Inbox and Create Workspace missing dialog/landmark semantics and Escape close behavior; Create Workspace had 16 visible unnamed icon buttons; Context Rail, Onboarding Tooltips, and tier modal close icons need naming/semantic cleanup. -- Current T10 implementation slice fixes Settings Prompt Shape/model/trust/team/KVARK metadata, Profile identity/preferences/brand labels, Chat composer metadata, Vault add-secret/action metadata, Launcher refresh/prompt naming, Approvals refresh/revoke names, Cockpit/WaggleDance/ComplianceDashboard/AgentCard sampled action names, Mission Control source action names/focus rings, All Workspaces/Wiki search metadata/focus affordances, WorkspaceActionsMenu rename/delete confirmation labels and focus rings, warm AskBar metadata/focus ring, workspace TasksTab add-task metadata/focus ring, Timeline event-filter metadata/focus ring, Create Workspace template textarea metadata/focus rings, Workspace Switcher focus-trap/return evidence, Files storage/browser scroll-region keyboard access, and Command Center description/mobile row fit plus search focus ring. - -Why it matters: - -- A seamless UX includes keyboard, screen reader, icon-button naming, and form error ergonomics. Form-heavy admin/productivity software loses quality quickly when labels, focus return, and action names are inconsistent. - -Correction: - -- Audit actual form semantics, not just text appearance. -- Add explicit `id` and `htmlFor` where labels do not wrap controls. -- Verify error messages use `aria-describedby` or clear adjacent status text. -- Add accessible names for icon-only action buttons, especially refresh, pause/resume/stop, delete, close, and retry controls. -- Verify modal initial focus, Escape behavior, and focus return for high-traffic dialogs. -- Keep `tests/e2e/runtime-a11y.spec.ts` green after focused source fixes rather than closing T10 from component tests alone. - -Acceptance: - -- Core forms pass label/name checks. -- Keyboard focus order is predictable in Settings, onboarding, workspace creation, and agent creation. -- Icon-only buttons in high-traffic surfaces have accessible names. -- Post-fix runtime axe results confirm the sampled Settings/Profile/Vault/Mission Control/Chat/Agents/WaggleDance/Launcher/Approvals named-control and semantic failures are gone. -- Runtime axe has no critical or serious findings on the final judge route set, or each remaining finding is explicitly deferred with a score cap. -- Modal focus behavior is deliberate and covered by a keyboard path. - -### P1-6: Local model pricing and graceful-degradation harness are inconsistent - -Evidence: - -- During the broader sweep, a test named "First chat message accepted without LLM" used the local Ollama provider because it was healthy. -- Server log: unknown model `ollama/minimax-m2.7:cloud`; cost tracker estimated with Sonnet pricing. - -Implementation update 2026-07-10: - -- `CostTracker` now recognizes any `ollama/*` model as local/free when it has no explicit catalog entry, reports zero estimated provider cost, and does not emit a misleading cloud-pricing warning. The behavior is covered by `packages/agent/tests/cost-tracker.test.ts`. - -Why it matters: - -- Usage & Cost is a trust surface. Unknown local model pricing should be explicit to users, and tests that claim no-LLM degradation should not silently use a real model. - -Correction: - -- Add a pricing entry or explicit "local/free/unpriced" behavior for `ollama/minimax-m2.7:cloud`. -- Make no-LLM degradation tests force provider unavailability or rename them to reflect real-provider behavior. - -Acceptance: - -- No unknown-model cost warning in the standard UX audit run. -- Tests accurately describe the provider mode they exercise. - -### P1-7: Route coverage ownership for the full shell (verified fixed) - -Evidence: - -- `App.tsx` registers roughly 30 app routes/route wrappers plus catch-all recovery. -- The visual suite captures only 7 views across dark/light. -- Original route-string coverage search found no direct test mentions for `/payment-cancelled`; `/benchmarks` and `/platform` had component tests but no direct route/E2E route-string hits; `/launcher`, `/waggle-dance`, `/artifacts`, `/settings/profile`, `/settings/timeline`, `/payment-success`, `/automations`, `/mcps`, and `/settings/usage` only had 1-4 direct mentions. -- Focused T11 command evidence: root `npm run test -- apps/web/src/test/p1a-routes.test.ts --run` finds no files because root Vitest excludes `apps/**`; app-local `npm run test -w apps/web -- src/test/p1a-routes.test.ts --run` passes 29/29; app-local Benchmark/Platform/Payment component tests pass 17/17. -- Historical continuation evidence: `npm run build` passed and an ad hoc Playwright smoke against port 3407 proved `/benchmarks` and `/platform` render meaningful shell content and `/payment-cancelled` redirects to `/settings?tab=billing`; those historical route artifacts emitted the old T1 CSP/Clerk console errors. Current sampled accountless console-health checks pass 3/3 on port `34196`. Screenshots are under `output/playwright/route-smoke-3407/`. -- Historical thin-route continuation evidence: a second `npm run build` passed and an ad hoc Playwright smoke against port 3411 proved `/launcher`, `/launcher?watch=1`, `/waggle-dance`, `/artifacts`, `/settings/profile`, `/settings/timeline`, `/payment-success`, `/automations`, `/mcps`, `/settings/usage`, and `/files` render meaningful shell content. Those historical route artifacts emitted the old T1 CSP/Clerk console errors; current sampled accountless console-health checks pass 3/3 on port `34196`. Launcher can still log a detect-in-flight adapter fetch error, and Usage & Cost logs a 403 resource error. Screenshots are under `output/playwright/thin-route-smoke-3411/`. -- Current route evidence: `npm run build` passed again, a fresh sidecar on `127.0.0.1:3333` returned healthy, and the all-route built-preview smoke on port 3457 proved 33 desktop route navigations plus 11 mobile route spot-checks return 200, produce screenshots, and have no document-level horizontal overflow. It also confirms `/payment-cancelled` redirects to `/settings?tab=billing`. Artifacts are under `output/playwright/route-evidence-3457/`. -- Current codified route evidence: `J-route-coverage: thin utility routes render or redirect clearly` and `J-route-coverage: priority thin routes render meaningful shells` passed 2/2 on port `34200`. -- Remaining route-adjacent health blockers are no longer P1-7 route-ownership gaps: Launcher watch-mode runtime noise belongs to T16, Usage & Cost semantics belong to T9, broader accessible-name/focus evidence belongs to T10, and workflow/failure-state depth belongs to T12. -- Source inventory found embedded or retired app files that the final judge packet must classify rather than ignore: `DashboardApp.tsx`, `VoiceApp.tsx`, `MissionControlApp.tsx`, `BackupApp.tsx`, `StorageApp.tsx`, `FilesAppTabs.tsx`, and `FilesApp.tsx`. -- Existing `tests/vision/personas.spec.ts` is valuable, but it focuses on five live persona chat journeys rather than full routed-surface grading. - -Why it matters: - -- The requested goal is whole-system UX, not only the major sidebar routes. Thinly covered surfaces can remain confusing or broken while the core smoke suite stays mostly green. - -Correction: - -- Keep the route coverage manifest as the final judge packet owner. -- Keep `J-route-coverage` in the standard route-existence regression lane. -- Expand deeper judge dry runs under T12 so every route's important state is either exercised by a persona journey, a visual capture, or a deliberate deferral. - -Acceptance: - -- Final judge packet maps every registered route/overlay to at least one current evidence source. -- `/payment-cancelled`, `/launcher`, `/launcher?watch=1`, `/waggle-dance`, `/artifacts`, `/settings/profile`, `/settings/timeline`, `/payment-success`, `/automations`, `/mcps`, `/settings/usage`, `/files`, `/benchmarks`, and `/platform` have codified smoke or visual coverage before the 9/10 gate. -- Remaining untested surfaces have written deferral rationale. - -### P1-8: State and failure-mode coverage is not explicit enough for judge scoring - -Evidence: - -- `packages/shared/src/tiers.ts` defines four canonical billing tiers plus legacy tier mapping; state coverage must include Trial, Solo, Team, Enterprise, and legacy Pro collapse where relevant. -- `apps/web/src/lib/dock-tiers.ts` defines UI disclosure tiers separate from billing tier; a route can be accessible while navigation depth differs materially. -- `apps/web/src/providers/ShellContext.tsx`, `useWorkspaces.ts`, `useOfflineStatus.ts`, and `useHasWorkingModel.ts` show that shell UX depends on account, tier, workspace, offline, and model readiness state, not only route path. -- `apps/web/src/lib/adapter.ts` spans many API families; a single green route smoke cannot prove empty, error, 403, 404, SSE, or external-service states. -- The route manifest names usage scenarios, but the final judge packet also needs to declare which state combination each persona exercised. -- Focused continuation evidence: `docs/audits/2026-07-08-state-failure-t12-analysis.md` records a passing focused state slice (9 files / 79 tests), existing chat SSE network-drop/retry source coverage, native browser dialog line evidence, warning-noise risks, five-persona state-bundle fields, and T12-A through T12-G correction candidates. - -Why it matters: - -- A judge can see a clean default route while still missing the hard UX states: no model, trial expired, no workspace, workspace load error, local marketplace fallback, destructive restore, or unsampled mobile edge states. -- Whole-system UX means the right thing happens under realistic conditions, not only that the happy path renders. - -Correction: - -- Add the state/failure matrix as a first-class evidence artifact. -- Add T12 as the cross-state judge evidence ticket. -- Require every judge scorecard to record account mode, billing tier, disclosure tier, model state, data-volume state, offline/error state, and viewport. -- Use the focused T12 supplement as the closure checklist for state-bundle docs, browser state-bundle smoke, failure-state expansion, native dialog deferrals/fixes, warning hygiene, non-main gate decisions, and scale/performance evidence. - -Acceptance: - -- Five judge scorecards cite the state bundle they exercised. -- Any skipped state is explicitly deferred before scoring. -- No persona receives 9/10 from default-route screenshots alone. - -### P0-L1: Public launch funnel has release-blocking smoke and recovery gaps - -Evidence: - -- `apps/www` contains the public homepage, sign-in/sign-up/account pages, Stripe checkout route, Stripe webhook, legal pages, methodology page, and download CTAs. -- `npm run start -w apps/www -- --hostname 127.0.0.1 --port 3413` starts, but is an invalid Windows smoke host for this middleware setup: Next logs `Failed to proxy http://localhost:/...` and route requests time out or 500. -- `npm run start -w apps/www -- --hostname localhost --port 3416` is the valid local production smoke host. With that host, `/`, `/#pricing`, `/privacy`, `/terms`, `/cookies`, `/eu-ai-act`, `/sign-in`, `/sign-up`, `/docs/methodology`, and unauthenticated `/account` redirect render. -- Browser/server evidence still logs Clerk development-key and session-loop warnings under the active env. -- Focused continuation evidence: `npm run test -w apps/www -- --reporter=dot`, `npx tsc --noEmit --project apps/www/tsconfig.json`, and `npm run build:www` pass; fresh `localhost:3426` route/API smoke confirms the core route shape and signed-out GET checkout redirect. -- Playwright interaction evidence against `http://localhost:3416` captured `desktop-home.png`, `desktop-pricing.png`, `desktop-checkout-error.png`, `mobile-home.png`, and `mobile-nav-open.png` under `%TEMP%\waggle-www-ux-localhost-20260708`. -- Fresh Browser interaction evidence against `http://localhost:3491` captured `www-t13-home-desktop.png`, `www-t13-pricing-checkout-error-desktop.png`, `www-t13-home-mobile.png`, `www-t13-mobile-menu-open.png`, and `www-t13-rendered-summary.json` under `output/playwright/www-t13-3491/`. -- Fresh Browser sampled states had 0 current-page console warnings/errors, but Browser DOM snapshot failed with the known `incrementalAriaSnapshot` plugin mismatch. -- Pricing annual toggle and mobile nav open both worked in rendered browser evidence. -- Signed-out `Get Team` rendered a small inline `Sign in required` error instead of using the returned `signInUrl` to guide the buyer into auth and checkout recovery. -- `/pricing?checkout=cancelled` returns 404. -- `/methodology` returns 404; the real shipped route is `/docs/methodology`. -- Signed-out Team checkout through `Pricing.tsx` calls `POST /api/stripe/checkout`; the route returns a `signInUrl` on 401 but the component only displays "Sign in required." -- Checkout cancel uses `/pricing?checkout=cancelled`, but pricing is a section on `/`, not a registered Next route. -- Historical deployment blocker now locally fixed: `deploy-www.yml` previously uploaded `apps/www/dist` even though `next.config.mjs` has no static export output and the app includes dynamic auth/API routes. The workflow now targets Vercel prebuilt deployment; deployed smoke remains open. -- `DownloadCTA` targets GitHub Releases latest, and GitHub currently reports no releases for the repository. -- Fresh external refresh also confirms both `waggle-os.ai` and `www.waggle-os.ai` fail DNS resolution from this environment. -- OS detection can label iPhone/iPad as macOS and unsupported desktops as Linux, while public platform copy says Windows and macOS. -- Legal pages still include Day-0 placeholders, launch-date/address placeholders, and stale "Pro or Teams" privacy copy. - -Why it matters: - -- Download, checkout, legal trust, and deployment are part of real user UX before they ever reach the desktop cockpit. -- A five-persona in-app judge score can be honest only if the launch funnel is either verified separately or deliberately scoped out. - -Correction: - -- Track this as T13. -- Use `docs/audits/2026-07-08-launch-funnel-t13-analysis.md` as the focused correction artifact. -- Publish a real download/release path or replace it with a controlled availability/status page before launch. -- Document and use the stable `localhost` smoke host, then isolate/validate Clerk env so public routes render without auth-loop spam. -- Verify or fix download, mobile nav, sign-in/sign-up/account, Team checkout, checkout cancel recovery, legal trust pages, and deployment target. -- If the final judge gate is intentionally installed-app-only, get explicit user approval to defer this launch-funnel gate. - -Acceptance: - -- Launch funnel evidence is attached, or T13 has an approved deferral. -- Download CTA leads to valid Windows/macOS artifacts or a deliberate download/status page; mobile and unsupported OS labels are honest. -- Local production route smoke uses the correct host binding and has no 500s, timeouts, unexpected 404s, or Clerk redirect-loop spam. -- No public legal/trust page contains placeholder launch text or active Pro copy. -- Checkout recovery paths do not dead-end. - -### P1-10: Desktop wrapper, installer, tray, update, and sidecar-startup UX lack installed-app evidence - -Evidence: - -- Tauri config and tests cover build/resource shape, but this packet did not run a packaged app, installer, tray menu, close-to-tray behavior, global shortcut, or update flow. -- `cargo check --manifest-path app/src-tauri/Cargo.toml` passes; `app/src-tauri/resources/node.exe --version` returns `v20.18.1`; `node scripts/check-sidecar-resources.mjs` passes with staged Node runtime, native deps, and sidecar `node_modules`. -- Web-side Tauri binding tests pass from `apps/web` (focused binding 15/15 and prior binding/adapter bundle 19/19), but the same files are not discoverable from the root Vitest command because root config excludes `apps/**`. -- Native source directly handles tray Open/focus, close-to-tray, `Ctrl+Shift+W` window visibility, and tray Quit; Settings routes through a tested `/settings` desktop bridge. This is source evidence only; it has not been proved in a packaged build on a target OS lane. -- Rust service events (`waggle://service-status`, `waggle://service-restart-needed`) now have current `apps/web/src` consumers through `TauriDesktopEventBridge`; `waggle://update-available` remains mapped for future use while native updater emission stays disabled until signed updater artifacts exist. The prior Pause/About/Quit/Settings tray false-affordance issue is narrowed: Pause and About are hidden, Quit is native, and Settings has a web bridge. -- The updater plugin config is intentionally disabled for v1 while Rust still contains update-check emission for future consumers. -- `packages/server/src/local/service.ts` has port-conflict and health/degraded paths, but no current packet evidence shows the user-facing recovery UI for those states. - -Why it matters: - -- Installed desktop UX includes launch, tray, service recovery, and update expectations, not only the React routes after the app is healthy. -- A first-run failure in the wrapper can make the whole product feel broken even when `apps/web` tests pass. - -Correction: - -- Track this as T14. -- Verify or fix packaged launch, service readiness/failure recovery, tray actions, close-to-tray, global shortcut, installer/signing expectations, and update visibility. -- Split desktop acceptance between source-wired and packaged-proof lanes: Open, Settings, Quit, close-to-tray, and `Ctrl+Shift+W` need packaged proof; update and watchdog events need visible UI, native handling, or explicit deferral. -- Treat the active installed sidecar path as `packages/server/src/local/service.ts` bundled by `scripts/build-sidecar.mjs`, not the legacy top-level `sidecar/` JSON-RPC path. - -Acceptance: - -- Desktop wrapper evidence is attached, or T14 has an approved deferral. -- Tray/update/service events are either consumed by UI, natively handled, or hidden until supported; any emitted route target exists. Remaining T14 proof is packaged watchdog/update presentation, not a missing web consumer in the current source. -- Quit actually exits through a tested native or cleanup bridge, or the menu stops presenting it as a supported command. -- Sidecar failure/port conflict has a user-facing recovery path. - -### P1-11: Admin web, CLI launcher, marketplace CLI, and memory MCP utility UX have broken built-entry and shallow UX evidence - -Evidence: - -- `packages/admin-web` is a separate Vite/React surface with its own sidebar, token/slug connection UX, dashboard, analytics, members, capabilities, jobs, audit, and team settings pages. Component tests now pass through both root and package-local commands without React `act(...)` warnings. The original built-render smoke covers all 7 desktop pages and all 7 mobile pages under `output/playwright/admin-web-t15-57795/`; it rendered typed happy paths with no current-port console errors. A package-owned rendered Playwright gate now builds the package and passes 14 tests across all seven pages at 1200 x 800 and 390 x 844, checking hash state, active navigation semantics, browser back/forward traversal, viewport overflow, labelled table scroll regions, rendered control labels, clean app console/pageerror collection, mobile shell keyboard navigation, page-level keyboard traversal from connection fields into dashboard, members, capabilities, jobs, audit, and settings controls/table regions, full-page desktop/mobile visual snapshots, capability governance forms, malformed analytics response recovery, all-page initial API-failure recovery, mutation/destructive-failure recovery for capability policy save, capability override create/remove, capability request decision, member invite, member role change, member removal, and team settings save, plus real local bearer-auth middleware wrong-token/valid-token behavior through protected Fastify routes. -- `packages/launcher` is the public `npx waggle` acquisition path. Source and built help smokes pass without service banners or `.waggle` creation. The launcher package gate now owns the real parser/core helpers, invalid-port validation before service setup, occupied-port recovery copy, and `--no-open` success copy. This packet still has no long-running clean startup/package invocation, browser-open fallback integration, or service-failure copy smoke beyond occupied-port startup failure; no `packages/launcher/tsconfig.json` exists for a no-emit TypeScript check. -- Built `@waggle/cli` help is now locally fixed: help runs before the REPL dependency graph loads, and clean-home smokes pass for `dist/index.js --help`, `bin/waggle.js --help`, extracted packed-bin help, local package-closure installed `npx waggle --help`, and local package-closure installed `npx waggle --local` REPL startup/prompt/slash-command/`/exit` with `default.mind` creation. -- Built marketplace CLI previously failed before help because emitted ESM imports were extensionless; this is now locally fixed with NodeNext emitted imports and a built-help runtime guard. The marketplace package manifest also now points at emitted `dist` entrypoints included by the packed package. -- Built legacy `waggle-memory-mcp` now completes official read-only and write-scope MCP client smokes; write scope saves and recalls a unique memory. A clean local package-closure install also launches the installed server and lists read-only tools; that proof caught and fixed the missing `glob` runtime dependency declaration in `@waggle/core`. -- Built `@waggle/hive-mind-mcp-server` now completes official registration/scope and write-scope MCP client smokes; write scope saves and recalls a unique memory. -- `packages/hive-mind-cli` has colocated tests under `src/`; root Vitest does not discover that lane, but the package now owns it through `npm run test --workspace @waggle/hive-mind-cli -- --reporter=dot`. -- Hive-mind CLI sampled subcommand help is now side-effect free: source `init --help` and built `status --help` print focused command help and do not create `personal.mind`. -- Marketplace invalid commands now print `Unknown command`, show help, exit 1, and do not construct a clean-home marketplace DB. -- Package-local test command shapes are now fixed for launcher, `@waggle/cli`, `waggle-memory-mcp`, and hive-mind CLI in the T15 lane. - -Why it matters: - -- "Complete UX" includes acquisition, admin, and recovery paths, not only the main desktop cockpit after everything is healthy. -- Team admins and engineers are likely to touch these surfaces when installing, debugging, governing, or integrating Waggle. -- A source-mode dev command can pass while the command a real user installs or runs via `npx` is unusable. - -Correction: - -- Track this as T15. -- Decide whether admin/CLI/MCP utilities are inside the five-persona scoring scope or explicitly deferred. -- If included, keep the admin-web rendered package gate green with its local bearer-auth coverage, and attach focused command evidence for launcher, marketplace CLI, memory MCP, hive-mind MCP, Waggle CLI, and hive-mind CLI happy/error paths. -- Keep the legacy `waggle-memory-mcp` runtime fixed or explicitly deprecate it; marketplace CLI manifest/pack/install shape, launcher packed/installed first-command recovery, packed and local package-closure installed `@waggle/cli` help plus installed local REPL startup/slash-command/exit and streamed chat/provider plumbing, local package-closure installed `hive-mind-cli` help, built/installed hive-mind MCP protocol runtime, and legacy memory MCP built/installed protocol runtime are locally fixed, but the utility lane still needs registry-only proof after internal package publication. -- Fix or document the remaining package-local test command gaps. -- Keep safe help and invalid-command semantics before mutating setup paths; hive-mind CLI and marketplace now have focused guards, while broader utility paths still need sampling. - -Acceptance: - -- Admin web and supported utility CLIs have evidence for help/first-run, invalid input, missing configuration, and common success paths, or T15 has an approved deferral. -- Built CLI/MCP entries run from a clean environment, or deprecated surfaces are removed from the judged product scope. -- Root/package verification either runs the tests that exist or documents the separate command that owns them. -- T15 deep-dive evidence: `docs/audits/2026-07-08-admin-cli-utility-t15-analysis.md`. - -### P1-12: AI-tool hook install/verify/uninstall UX has strong route/rendered evidence but lacks packaged desktop proof - -Evidence: - -- T16 route/contract/package-runtime tests pass: 7 shared/agent/server files / 96 tests cover manifests, third-party loader, hook-capable cohort, launcher, backend tool routes, and local packed-package `npx` lifecycle for all six hook-capable packages; a focused registry-aware adapter slice passes 5 files / 108 tests for launchable third-party adapter launch and prompt-template routing. -- Launcher hook UI, prompt, and adapter tests pass: 3 web files / 28 tests. -- Root-run hook/shim package tests pass: 60 files / 573 tests with 1 skipped. -- Official hook/shim package typechecks pass for 8 packages; the Claude Desktop stub build passes; 6 compiled hook-bin help smokes pass. -- `BUILTIN_TOOL_MANIFESTS` marks `claude-desktop` as the only non-hook-capable built-in. `packages/hive-mind-hooks-claude-desktop/src/index.ts` is explicitly a stub with no bin; `packages/hive-mind-hooks-codex-desktop` ships a bin and re-exports Codex hook behavior. -- Hook test output is intentionally noisy: fail-open hook warnings, sidecar-unreachable signal drops, package logs, and negative verify logs appear during passing tests. -- Focused in-app Browser smoke renders Launcher mixed states with no current-port console errors: installed, not installed, hooks active, running, Phase 4/unsupported, prompt summary after typing, install success, verify failure, and live output. Evidence lives under `output/playwright/launcher-t16-54147/`. -- The rendered smoke originally proved these UX gaps: install success hid stdout backup-path details, verify failure dropped the actionable stderr path, Claude Desktop lacked explicit launch-only/no-hooks copy, and the prompt textarea lacked name/id/ARIA/autocomplete metadata. Current focused tests protect stdout/stderr result detail visibility, summarize covered install output with `Backup` and `Recovery` labels instead of raw `stdout:`, preserve structured hook failures instead of masking them as generic `HTTP 400`, show retry/uninstall/reinstall recovery guidance for empty-output Verify failures, summarize Verify `[FAIL]` output as `Check failed` with the manual approval detail and no raw `[FAIL]`, label uninstall restore/cleanup rows without implying install state, cap long hook output behind `More output`, fix observed-output duplicate replay after exit, fix prompt textarea metadata, and label installed Claude Desktop as launch-only with no hook actions. A fresh real Browser route smoke on `/launcher` renders `verify failed (exit 1)` plus empty-output recovery guidance instead of `HTTP 400`; Browser-rendered mocks confirmed the Claude Desktop launch-only layout, the Codex Verify manual-approval panel, and the Codex Uninstall cleanup panel; and codified Playwright coverage confirms standard install changed-file/pointer/backup/recovery labels, all six hook-capable install/verify/uninstall rendered transitions, sidecar-offline Retry, long-output summarization, and non-built-in adapter launch-only/prompt behavior. Packaged desktop lifecycle states remain open. -- Hook/shim package-local `npm run test --workspace ...` scripts now pass for hook core, all six hook-capable packages, and shim core; the scoped non-hook package-local command-shape gaps tracked under T17 are now fixed, with warning hygiene and developer-journey evidence remaining. -- Detection can include third-party adapter manifests; launchable adapters now launch through the runtime registry and can receive prompt-template routing. Hook management remains built-in-only until a safe third-party hook policy exists. - -Why it matters: - -- The hook install flow edits real user AI-tool configuration files. A green unit test is not enough for a 9/10 UX claim unless the user can install, verify, understand, and remove hooks safely. -- Launcher promises install/verify/uninstall actions; users need clear status, failure copy, and reversibility confidence. - -Correction: - -- Track this as T16. -- Decide whether hook-management scenarios are inside the five-persona score or explicitly deferred. -- If included, keep the codified rendered Launcher evidence green for all-tool hook-management lifecycle, unsupported `claude-desktop`, sidecar-offline, long-stderr, and error states. -- Keep the hermetic package-pack `npx` install/verify/uninstall command evidence green for all six supported hook packages, keep the isolated all-six route lifecycle green, and add packaged desktop hook-status evidence or an approved deferral before scoring T16 as complete. -- Ensure hook verification output noise does not hide real failures in the standard audit lane. -- Keep Launcher hook result copy guarded for Backup/Recovery, Check-failed/manual-approval, uninstall-cleanup, More-output, and rendered lifecycle guidance. - -Acceptance: - -- Hook-management evidence is attached for UI and command paths, or T16 has an approved deferral. -- `claude-desktop` is consistently shown as launchable but not hook-capable; six hook-capable tools expose clear actions and results. -- Observed live output does not duplicate terminal replay after process exit; focused Launcher/web regression evidence passes 5 files / 72 tests and includes hook result stdout/stderr, Backup/Recovery result labels for covered install output, Check-failed/manual-approval rows for Verify output, uninstall cleanup labels, More-output summarization, structured failure detail coverage, empty-output recovery copy, Claude Desktop launch-only copy, and detected third-party adapter Launch/prompt routing. -- Hook install/uninstall remains reversible and understandable in user-facing copy. -- T16 supplement remains linked: `docs/audits/2026-07-08-ai-tool-hook-t16-analysis.md`. - -### P1-13: Developer API, background worker, and substrate verification UX has command-shape and suite-stability gaps - -Detailed supplement: `docs/audits/2026-07-08-developer-substrate-t17-analysis.md`. - -Evidence: - -- A remaining-package inventory covered `agent`, `core`, `hive-mind-core`, `hive-mind-shim-core`, `hive-mind-wiki-compiler`, `optimizer`, `sdk`, `server`, `shared`, `waggle-dance`, `weaver`, `wiki-compiler`, and `worker`. -- Direct no-emit TypeScript passes for all 13 remaining workspaces. -- `npm run test -w @waggle/agent` passes 195 files / 3097 tests. -- Package-script tests pass for `@waggle/core` (19 files / 296 tests), `@waggle/optimizer` (1 file / 21 tests), and `@waggle/weaver` (3 files / 31 tests). -- Root-run substrate/compiler tests pass: `hive-mind-core`, `hive-mind-shim-core`, and `wiki-compiler` together pass 71 files / 875 tests. -- Root-run SDK tests pass 5 files / 89 tests, including the filesystem-safe plugin-id regression. -- Package-local shared, WaggleDance, worker, and hive-mind wiki compiler scripts now pass 15 files / 154 tests in total (40 + 42 + 46 + 26), with the colocated wiki tests explicitly included in root discovery. -- The named `@waggle/server` release lane passes 185 files, 1 skipped; 2,128 tests, 1 skipped, with one worker. The default wall-clock performance suite is isolated and passes 13/13. -- Earlier packet evidence saw one full-suite performance-budget failure (`Workspace Listing with 50 workspaces` took 841ms against a 500ms budget), while the same server performance benchmark passes in isolation (13 tests). Treat this as a release-lane stability and command-shape risk, not a consistently broken endpoint. -- Package-local `npm test` fails for `hive-mind-core` and `wiki-compiler` because Vitest looks for `vitest.setup.ts` relative to the package cwd; root-run commands pass. `hive-mind-shim-core` is fixed and passes through its package-local script. -- Package-local `npm test` fails for `@waggle/sdk` because workspace-local Vitest resolves into `packages/sdk/node_modules` and cannot find `convert-source-map`; root-run SDK tests pass. -- Standard server verification also exercises marketplace sync paths with many source-sync logs; this overlaps T6/T15 and should not be part of a quiet deterministic release lane. - -Why it matters: - -- Engineers, admins, and release reviewers experience command failures and noisy logs as product quality signals. -- "Every part tested" is not credible if package scripts fail by command shape, root runs miss or special-case package tests, or the full server route suite needs reruns to pass. -- Server, worker, SDK, WaggleDance, and memory substrate behavior underpins visible UX: chat, workspace listing, marketplace, hooks, background jobs, and memory recall. - -Correction: - -- Track this as T17. -- Decide whether developer API/background/substrate evidence is inside the five-persona score or explicitly deferred. -- Fix or document package-local test command shape for packages whose tests only pass from the root runner. -- Stabilize the server route/performance gate: either make the full suite deterministic under normal audit load or move benchmark assertions to an isolated perf lane with a clear release threshold. -- Reduce or document noisy passing output so real failures stand out. - -Acceptance: - -- Developer API/background/substrate evidence is attached, or T17 has an approved deferral from the final score. -- Package-local and root verification commands are deterministic and discover the intended tests, or their separate lanes are explicitly documented. -- Server route suite and performance benchmark expectations are stable enough to support a final "all tested" claim. - -### P1-14: Ops, deployment, CI, benchmark, and judging evidence is incomplete for a complete-system claim - -Detailed supplement: `docs/audits/2026-07-08-ops-deploy-ci-judging-t18-analysis.md`. - -Evidence: - -- YAML parse passes for `docker-compose.yml`, `docker-compose.production.yml`, `render.yaml`, `litellm-config.yaml`, and all 7 workflow files under `.github/workflows`. -- Docker CLI is installed locally, and both development and production Compose files pass `docker compose config`, but the Docker Desktop Linux engine is not reachable in this environment, so live Compose services and `npm run test:infra` were not run. -- Raw Compose expansion reads ignored local env values and can print secret values; non-interpolated Compose config is safer for shareable evidence. -- Tracking/ignore checks show only `.env.example` files are tracked among the checked env/key files; local `.env`, `env.local`, `apps/www/.env.local`, and `AI API KEYS.txt` are ignored. -- Current `render.yaml` is explicitly the hosted local-sidecar path: it keeps `/data` persistence and Stripe sidecar routes and no longer provisions unused Postgres/Redis services. The Postgres/Redis-backed team server remains the Dockerfile/production Compose path. -- `ci.yml` keeps the broad Playwright E2E job advisory with `continue-on-error: true`, but now has a separate blocking five-journey smoke job; no workflow currently runs the 19 infra-dependent Postgres/Redis suites from `vitest.infra-suites.ts`; this packet also could not run them locally because the Docker engine is unavailable. -- `docker-compose.production.yml` now fails closed for Postgres and MinIO credentials with required interpolation; deployment tests pass 12/12 and the non-interpolated Compose review preserves placeholders without exposing local secrets. -- Benchmark harness TypeScript passes: `npx tsc --noEmit --project benchmarks/harness/tsconfig.json`. -- Benchmark harness package-local tests now pass 29 files / 325 tests through a root-config delegation script. -- The focused T18 supplement records the now-fixed local `apps/www` GitHub Pages artifact mismatch and Render ambiguity, the still-open deployed Vercel/DNS proof gap, and the narrowed LiteLLM evidence boundary: dynamic provider discovery through exact-model completion is hermetically proven, while one paid external-provider smoke remains release evidence. -- `judging/` contains historical June 2026 artifacts, not current post-fix five-persona scoring evidence. - -Why it matters: - -- A complete UX claim includes the experience of shipping, operating, validating, and judging the system. -- Green app tests do not prove that deploy manifests, infra lanes, benchmark harnesses, or judge artifacts are current and trustworthy. -- Secret-safe validation matters because ops logs are often copied into issues, PRs, and handoffs. - -Correction: - -- Track this as T18. -- Decide whether ops/deploy/CI/benchmark/judging evidence is inside the final score or explicitly deferred. -- Document secret-safe Compose validation commands and avoid raw secret-expanded config logs in shareable evidence. -- Decide Render's target: hosted local-sidecar demo or team Postgres server, then align provisioned services, env vars, and entrypoint. -- Add or explicitly defer blocking smoke/infra CI lanes. -- Fix or document benchmark harness package-local test command shape. -- Generate fresh five-persona judging artifacts only after approved fixes land. - -Acceptance: - -- Ops/deployment/CI/benchmark/judging evidence is attached, or T18 has an approved deferral from the final score. -- Shareable ops validation output is secret-safe. -- Current judge artifacts, not historical screenshots, are used for the 9/10 decision. - -### P1-15: Browser Companion extension UX is a real capture surface with incomplete end-to-end UX evidence - -Evidence: - -- `apps/browser-ext/README.md` describes a Chrome Manifest V3 Browser Companion that captures the current page or selected text into Waggle memory. -- `apps/browser-ext` contains root-level popup, background, content, manifest, and README files for the extension surface. -- `packages/server/src/local/routes/browser-ext.ts` exposes `GET /api/browser-ext/health`; `packages/server/src/local/cors-config.ts` gates extension origins with `WAGGLE_BROWSER_EXT_IDS` or `WAGGLE_DEV_ALLOW_ANY_EXTENSION=1`. -- The July audit packet had no extension-loaded smoke, popup screenshots, CORS-denied recovery evidence, or memory-frame result verification before the source-inventory supplement. -- The T19 continuation added extension JS syntax checks, manifest parsing, `packages/server` typecheck, a failed-port connectivity check for `127.0.0.1:3333`, and a Playwright disconnected-state screenshot at `output/playwright/browser-companion-disconnected-state.png`. -- A live sidecar save-flow run on `127.0.0.1:3333` proved direct `POST /api/memory/frames?extract=false` saves selection-shaped and page-shaped frames, duplicate detection works, and Memory UI renders imported Browser Companion frames. -- A real unpacked Chromium extension run originally proved the background `save-memory` message failed by default with generic `HTTP 500` when the extension origin was not allowlisted; the post-fix extension now bootstraps a token first and maps setup denial to branded recovery copy. -- The current secure-default live smoke loaded the extension, selected text in a normal HTTP page, confirmed Chromium MV3 service-worker fetches omit `Origin` and send `sec-fetch-site: none`, cleared any stored token, saved through `chrome.runtime.sendMessage({ type: 'save-memory' })`, stored the token during save, and confirmed `/api/memory/frames` contains the imported frame. -- Focused CORS tests now cover `WAGGLE_DEV_ALLOW_ANY_EXTENSION=1` and concrete `chrome-extension://` origins; the live smoke used the production-shaped `WAGGLE_BROWSER_EXT_IDS=` path. -- Historical issue: `/api/memory/frames` reported the allowlisted extension frame as `source: "import"`, while `/api/memory/search` returned the same frame as `source: "user_stated"`. Current route coverage and popup-click smoke now confirm imported Browser Companion captures return as `source: "import"` in Memory search. - -Why it matters: - -- Browser capture is part of the memory/Harvest promise. If it is confusing, disconnected, blocked by CORS, or silently fails, Researcher and Solo-founder trust drops even when the main cockpit works. - -Correction: - -- Track this as T19. -- Decide whether the Browser Companion extension is inside the final five-persona score or explicitly deferred. -- If included, verify native toolbar-bubble behavior against a normal web page, native context-menu save or an explicit deferral, packaged pairing, and any separately scored global-recall provenance shape in the cockpit; popup keyboard/focus behavior now has live evidence. - -Acceptance: - -- Browser Companion extension save-flow evidence is attached, or T19 has an approved deferral from the final score. -- The toolbar popup and context-menu flows produce observable memory results or branded recoverable failures. -- CORS-denied, missing-token, and unpaired-extension states provide a clear setup path instead of a generic `HTTP 500` or raw `MISSING_TOKEN`; focused code coverage exists, with live screenshot evidence still optional for judging. -- Memory source/provenance labels remain consistent between frame lists, search results, cockpit UI, and any separately scored global-recall result shape. -- Popup keyboard/focus basics have live evidence; popup copy and screen-reader announcement behavior are inspected or deferred for the final judge packet. - -### P2-1: Stale developer comments and legacy terminology can mislead future work - -Evidence: - -- Several comments still refer to Pro gates even when current user-facing strategy changed. -- Some route comments are stale relative to implementation. - -Why it matters: - -- This is not directly user-facing, but it increases the chance of reintroducing incorrect UX copy. - -Correction: - -- After user-facing fixes land, clean stale comments in touched files only. - -Acceptance: - -- Comments in touched files describe current behavior. - -### P2-2: Browser plugin DOM snapshot failed, although screenshot/evaluate worked - -Evidence: - -- Browser setup succeeded. -- `domSnapshot()` failed with `TypeError: o.incrementalAriaSnapshot is not a function`. -- Fallback browser screenshot/evaluate and standalone Playwright testing worked. - -Why it matters: - -- This is a tooling issue, not a product UX issue, but it reduces inspection ergonomics. - -Correction: - -- Continue using Playwright CLI for audit evidence until the Browser plugin version mismatch is fixed. - -Acceptance: - -- UX audit can be repeated without relying on the failing Browser DOM snapshot path. - -## Proposed Implementation Phases After Approval - -Phase 1: Trust and coherence blockers - -- Keep Clerk/CSP/accountless local mode in regression; sampled accountless console health is currently verified fixed. -- Remove/normalize user-facing Pro copy. -- Keep mobile Settings layout and first-run onboarding Profile action reachability in regression; both are currently verified fixed in focused 390px journeys. -- Keep the verified `Ctrl+Shift+N` route contract in regression. -- Keep Workspace Switcher route traversal in regression. -- Keep the verified visual snapshot lane in regression. -- Verify: typecheck, full web Vitest, build, full-product audit, visual suite, desktop/mobile screenshots. - -Phase 2: Flow polish and accessibility - -- Replace native confirm/alert/prompt usage in critical flows. -- Add in-app result states for backup/restore/export/delete/revoke. -- Make marketplace browse/search hermetic in core verification and move live external sync to an explicit lane. -- Focused form label and keyboard audit. -- Add route coverage manifest and smoke/visual coverage for thin routes. -- Add state/failure bundle evidence for the five-persona judge runs. -- Verify: targeted tests for destructive flows, accessibility assertions where practical, mobile screenshots. - -Phase 3: Performance and polish - -- Route-level lazy loading for deep apps. -- Fix ineffective dynamic imports. -- Optimize persona/media assets. -- Add/clarify local model pricing semantics for Usage & Cost. -- Reduce test warning noise. -- Verify: build chunk report, smoke tests, full app tests. - -## Approval Packet - -These tickets are the proposed correction scope. Approval should mean "implement these in order, without creating new product surfaces." - -### T1: Local auth, Clerk, and CSP console health - -Files to inspect/edit: - -- `packages/server/src/local/security-middleware.ts` -- `packages/server/tests/local/security-middleware.test.ts` -- `apps/web/src/lib/clerk.ts` -- `apps/web/src/providers/WaggleClerkProvider.tsx` -- E2E harness env setup for local/accountless runs, if needed. - -Decision needed: - -- Preferred product behavior is accountless local-first desktop/web by default. In that mode, the app should not mount Clerk or emit Clerk network/CSP errors. -- If Clerk is intentionally enabled for a run, CSP must explicitly support the exact Clerk script/connect/frame requirements and the inline startup script must use a nonce/hash-compatible path. - -Acceptance: - -- `full-product-audit` and `phase-ab-verification` focused console-health checks have zero critical console errors caused by auth/CSP in the sampled accountless lane; expand the same proof to any final full-run bundle before scoring. -- Accountless local mode has no Clerk load, 429, telemetry, or CSP console noise. -- Auth still works when a valid Clerk key is intentionally enabled. - -### T2: Mobile Settings and first-run onboarding responsive layout - -Files to inspect/edit: - -- `apps/web/src/components/os/apps/SettingsApp.tsx` -- `apps/web/src/components/os/overlays/OnboardingWizard.tsx` -- `apps/web/src/components/os/overlays/onboarding/WhoAreYouStep.tsx` -- Existing Settings tests, including `apps/web/src/test/pr5-settings-reskin.test.tsx` -- Add or extend one mobile Playwright assertion for 390px width. - -Correction: - -- Replace the fixed left tab rail at narrow widths with a mobile-appropriate tab selector or wrapped segmented rail. -- Prevent provider cards and form rows from creating internal horizontal scroll. -- Preserve desktop density. -- Keep first-run onboarding Profile primary actions visible, sticky, or clearly signposted at 390 x 844; current focused evidence passes this requirement on port `34194`. - -Acceptance: - -- At 390 x 844, Settings is fully usable with no horizontal page overflow, no clipped provider/model/billing/profile controls, and no squeezed two-rail content column; current focused evidence passes this requirement on port `34195`. -- At 390 x 844, clean-data onboarding Profile keeps Continue visible or clearly reachable without a hidden dead-end feeling; current focused evidence passes this requirement on port `34194`. -- Keyboard focus remains visible and ordered. -- Desktop Settings does not regress. - -### T3: Pricing and gating copy: Solo/Team/Enterprise only - -Files to inspect/edit: - -- `apps/web/src/components/os/apps/MarketplaceApp.tsx` -- `apps/web/src/components/os/apps/mcp/AddCustomMcpForm.tsx` -- `apps/web/src/lib/command-catalog.ts` -- `apps/web/src/components/os/overlays/LoginBriefing.tsx` -- `apps/web/src/components/os/apps/skills/SkillRow.tsx` -- `apps/web/src/components/os/apps/SettingsApp.tsx` -- `apps/web/src/components/os/apps/PaymentSuccessApp.tsx`, only for legacy billing clarity. - -Correction: - -- Remove user-facing Pro gating from active product flows. -- Use Solo, Teams, and Enterprise language that matches `packages/shared/src/tiers.ts` and AGENTS.md. -- Keep legacy Pro references only where they are explicitly servicing historical billing state. - -Acceptance: - -- `rg -n "Pro|PRO|pro_" apps/web/src` has no active user-facing Pro upgrade copy outside approved legacy billing handling. -- Marketplace, MCP, Settings, skills, command palette, login briefing, and payment success are mutually consistent. - -### T4: `Ctrl+Shift+N` and Workspace Switcher route contract - -Files to inspect/edit: - -- `apps/web/src/hooks/useKeyboardShortcuts.ts` -- `apps/web/src/components/os/AppShell.tsx` -- `apps/web/src/components/os/overlays/WorkspaceSwitcher.tsx` -- `tests/e2e/phase-ab-verification.spec.ts` -- `tests/e2e/power-user-stress.spec.ts` -- `tests/e2e/full-wiring-audit.spec.ts` - -Recommended decision: - -- Make `Ctrl+Shift+N` complete the user's likely action: open chat in the active workspace, else the Home "Start Here" workspace, else the newest workspace. If no workspace exists, then open the Workspace Switcher or creation path. - -Correction: - -- Resolve the mismatch between tests and product behavior. -- Ensure route-changing nav closes blocking overlays or makes overlays non-blocking where appropriate. -- Preserve focus trap behavior while a modal is intentionally open. - -Acceptance: - -- The two formerly failing `Ctrl+Shift+N` tests pass; current focused evidence is 2/2 on port `34197`. -- The full console audit can navigate from Home to Memory without a lingering Workspace Switcher backdrop intercepting clicks; current focused evidence is 1/1 on port `34198`. -- Modal close and selection behavior is predictable with mouse and keyboard. - -### T5: Visual baseline triage - -Files to inspect/edit: - -- `tests/visual/views.spec.ts` -- Existing screenshot baseline directories referenced by the visual test runner. -- Any directly implicated app view only if the actual screenshot shows a real regression. - -Correction: - -- Classification complete in `docs/audits/2026-07-08-visual-t5-classification.md`: most original failures were intentional drift; the current baseline/spec worktree passes 14/14 on port `34199`. -- Preserve the current canonical ASCII-hyphen baseline family used by the runner. -- Keep duplicate historical baseline families documented until a separate test-readiness cleanup removes or archives them. - -Acceptance: - -- Visual suite passes after approved baseline updates or real UI fixes; current evidence is 14/14 on port `34199`. -- A short note records which snapshots were updated versus fixed. -- The active baseline family is unambiguous for the current runner. - -### T6: Marketplace determinism and local-first test lane - -Files to inspect/edit: - -- `packages/server/src/local/routes/marketplace.ts` -- `packages/server/src/local/marketplace-background-sync.ts` -- `packages/server/tests/local/marketplace-background-sync.test.ts` -- E2E tests that call `/api/marketplace/sync`. - -Correction: - -- Keep `WAGGLE_DISABLE_MARKETPLACE_SYNC=1` respected by explicit sync routes in test/local verification, and route live external sync into a separately named live-integration lane. -- Keep browse/search useful with local catalog data. - -Acceptance: - -- Standard UX audit does not hit external marketplace sources when the sync-disable env is set; server-side evidence passes. -- Marketplace search/sync evidence is stable in the focused browser slice: 4/4 passed on port `34203`. - -### T7: Trust-critical dialogs - -Files to inspect/edit: - -- `apps/web/src/components/os/apps/BackupApp.tsx` -- `apps/web/src/components/os/apps/AutomationCenterApp.tsx` -- `apps/web/src/components/os/apps/SettingsApp.tsx` -- `packages/admin-web/src/pages/Members.tsx` - -Correction: - -- Replace native `confirm`, `alert`, and `prompt` in destructive or trust-critical flows with existing app modal/toast patterns. -- Show what will happen, require explicit confirmation, and show result state after the action. - -Acceptance: - -- No native browser dialogs in backup, restore, export, revoke, delete, or destructive workspace/memory/wiki flows. -- Result state is visible in-app. - -### T8: Performance and payload polish - -Files to inspect/edit: - -- Route/app composition in `apps/web/src/components/os/` and `apps/web/src/components/os/apps/` -- `apps/web/src/lib/shape-selection.ts` -- Asset import sites for persona and logo media. - -Correction: - -- Lazy load deep admin/productivity apps where that fits the existing shell. -- Fix the dynamic import defeated by static import. -- Reduce initial payload from large persona/logo assets. - -Acceptance: - -- Startup JS chunk is materially smaller and below the Vite warning threshold. -- Home and core shell render before deep Settings/Marketplace/admin/chat/overlay/analytics code is needed. -- Build warnings for defeated dynamic imports and oversized JS chunks stay resolved or explicitly accepted with rationale. - -### T9: Local model pricing semantics - -Files to inspect/edit: - -- `packages/agent/src/cost-tracker.ts` -- `packages/agent/tests/cost-tracker.test.ts` -- Any UI that labels unknown local model cost estimates. - -Correction: - -- Add explicit behavior for local/unknown Ollama models: either known pricing, free/local label, or "unpriced estimate unavailable." -- Make no-LLM tests force provider unavailability if they are testing graceful degradation. - -Acceptance: - -- Standard audit logs do not warn about `ollama/minimax-m2.7:cloud`. -- Cost UI does not imply precise paid-provider cost for an unpriced local model. - -### T10: Test warning and accessibility hygiene - -Files to inspect/edit: - -- Tests emitting repeated `act(...)` warnings. -- Core form components in Settings, onboarding, workspace creation, agent/persona creation, compliance templates. - -Correction: - -- Remove warning noise where it masks real UX failures. -- Add focused label/name checks for high-traffic forms. -- Apply the shared overlay contract to shell panels/dialogs: semantics, accessible names, Escape or explicit close, focus behavior, and named icon-only actions. -- Keep focused component tests for fixed controls and keep the runtime axe gate green before final judge scoring. Current sampled gate: `tests/e2e/runtime-a11y.spec.ts`, 2/2 on port `34193`. - -Acceptance: - -- Standard verification output is short enough that real failures are visible. -- Core forms have accessible names, associated labels, and predictable focus order. -- Sampled shell overlays/routes have accessible names/landmarks, close predictably, expose zero unnamed visible icon-only controls, and pass the desktop/mobile runtime axe gate. - -### T11: Route coverage and final judge harness - -Files to inspect/edit: - -- `docs/audits/2026-07-08-ux-route-scenario-manifest.md` -- `apps/web/src/App.tsx` -- `tests/e2e/user-journeys.spec.ts` -- `tests/e2e/full-product-audit.spec.ts` -- `tests/visual/views.spec.ts` -- `tests/vision/personas.spec.ts` -- `tests/vision/README.md` -- `docs/audits/2026-07-08-route-evidence-t11-analysis.md` - -Correction: - -- Maintain the route coverage manifest that maps every registered route and major overlay to a smoke, visual, or persona-journey check. -- Keep the codified route owners for `/benchmarks`, `/platform`, `/payment-cancelled`, Launcher watch mode, Usage & Cost, and selected thin judge routes in `tests/e2e/user-journeys.spec.ts`. -- Use the app-local test command shape for app tests: `npm run test -w apps/web -- ...`; the root Vitest command excludes `apps/**`. -- Extend the final judge process so the five persona scores are backed by route evidence, not only chat transcript quality. - -Acceptance: - -- Every registered route has an evidence owner before final judge scoring; current focused evidence is `J-route-coverage` 2/2 on port `34200`. -- The five-persona judge packet includes screenshots, console status, route coverage, and 10-point scorecard results. -- No route is silently excluded from the final 9/10 claim. - -### T12: State and failure bundle evidence - -Files to inspect/edit: - -- `docs/audits/2026-07-08-ux-state-failure-scenario-matrix.md` -- `tests/e2e/user-journeys.spec.ts` -- `tests/vision/personas.spec.ts` -- New focused failure-injection tests if needed. - -Correction: - -- Record the account mode, billing tier, UI disclosure tier, model state, data state, offline/error state, and viewport for each judge run. -- Do not award 9/10 from default-state screenshots alone. -- Include first-run onboarding states: fresh clean data, incomplete wizard, high-volume import detected, model ready/no-model, first-task auto-send, mobile Profile, and post-completion reopen. -- Track any remaining first-run work as broader state/recovery evidence. The focused polish items from `docs/audits/2026-07-08-first-run-onboarding-t1-t2-t12-analysis.md` are fixed for high-volume import deliberate review, non-contradictory model-ready copy, and immediate first-task composer clear/disable. -- Include shell overlay states from `docs/audits/2026-07-08-shell-overlays-t10-t12-analysis.md`: Notification Inbox empty/unread, Create Workspace desktop/mobile, Context Rail loading/empty/expanded, Onboarding Tooltips suppressed/visible, and tier modal close paths. - -Acceptance: - -- Every judge scorecard cites its state bundle. -- Any skipped state bundle has an approved deferral. - -### T13: Launch funnel UX gate - -Files to inspect/edit: - -- `apps/www` -- `apps/www/app/_components/Pricing.tsx` -- `apps/www/app/api/stripe/checkout/route.ts` -- `apps/www/app/(legal)/**` -- `.github/workflows/deploy-www.yml` - -Correction: - -- Verify or fix download, mobile nav, sign-in/sign-up/account, real deployed Team checkout, legal trust pages, and deploy target. -- Keep this out of Phase 1 unless directly required by a Phase 1 verification failure. -- Current evidence: focused T13 supplement records passing www test/typecheck/build, fresh localhost route/API smoke, rendered Browser checkout-recovery evidence, and local checkout/legal/download/deploy-workflow fixes. The canonical domain still does not resolve, real signed installer/release artifacts are not published, deployed Vercel/DNS smoke is missing, deployed Clerk/Stripe success/cancel evidence is missing, and formal legal sign-off is not proved. - -Acceptance: - -- Launch funnel evidence is attached, or T13 has an approved deferral from the final score. - -### T14: Desktop wrapper and release UX gate - -Files to inspect/edit: - -- `app/src-tauri/**` -- `app/tests/**` -- `app/scripts/**` -- `.github/workflows/release.yml` -- `packages/server/src/local/service.ts` -- `scripts/build-sidecar.mjs` - -Correction: - -- Verify or fix packaged startup, sidecar readiness/recovery, tray actions, close-to-tray, global shortcut, installer/signing expectations, and update visibility. -- Keep this out of Phase 1 unless directly required by a Phase 1 verification failure. -- Current evidence: desktop TypeScript, static app helper tests, static Tauri config/update/tray tests, sidecar resource preflight, Rust `cargo check`, web-side Tauri binding tests from `apps/web`, web typecheck, release workflow ordering, and service-level startup/chat/workspace E2E pass. Native source directly handles tray Open/focus, close-to-tray, `Ctrl+Shift+W`, and Quit; Settings routes through a tested `/settings` bridge; Pause and About are hidden. Packaged Tauri interaction evidence and visible update/service recovery UX remain missing. -- T14 deep-dive evidence: `docs/audits/2026-07-08-desktop-wrapper-t14-analysis.md`. - -Acceptance: - -- Desktop wrapper evidence is attached, or T14 has an approved deferral from the final score. - -### T15: Admin and CLI utility UX gate - -Files to inspect/edit: - -- `packages/admin-web/**` -- `packages/cli/**` -- `packages/launcher/**` -- `packages/marketplace/**` -- `packages/memory-mcp/**` -- `packages/hive-mind-mcp-server/**` -- `packages/hive-mind-cli/**` -- `vitest.config.ts` - -Correction: - -- Keep admin-web UX beyond the rendered package proof green as states evolve; verify or fix launcher browser-open fallback and service-crash recovery, marketplace CLI help/error/JSON states, memory MCP/hive-mind MCP stdio and missing-config behavior, Waggle CLI command/auth flows, and hive-mind CLI broader package/publish behavior. -- Keep the built legacy `waggle-memory-mcp` read/write entry guarded or explicitly deprecate it; marketplace package manifest/pack/install shape, launcher packed/installed first-command recovery, `@waggle/cli` built/packed/local package-closure installed `npx` help plus local REPL startup/slash-command/exit and streamed chat/provider plumbing, local package-closure installed `hive-mind-cli` help, installed legacy memory MCP read-only startup, and installed hive-mind MCP read-only startup are locally fixed but still need registry-only proof after internal package publication. -- Maintain the safe help/invalid-command behavior now guarded for hive-mind CLI and marketplace CLI; expand evidence to clean package/publish runs. -- Keep this out of Phase 1 unless directly required by a Phase 1 verification failure. -- Current evidence: `docs/audits/2026-07-08-admin-cli-utility-t15-analysis.md` records passing targeted source tests, no-emit TypeScript, builds, focused marketplace/launcher/`@waggle/cli`/hive-mind CLI fixes, focused legacy memory MCP read/write protocol proof plus installed read-only startup, passing built hive-mind MCP write-scope proof plus installed read-only startup, and admin-web evidence proving package-local tests, warning cleanup, 390px shell layout, hash navigation, active semantics, browser back/forward traversal, labelled table scroll regions, rendered control labels, mobile shell keyboard reachability, page-level keyboard traversal from connection fields into the covered admin pages, desktop/mobile visual snapshots, capability governance form coverage, malformed analytics response recovery, all-page initial API-failure recovery, rendered mutation/destructive-failure recovery for capability policy save, capability override create/remove, capability request decision, member invite, member role change, member removal, and team settings save, plus real local bearer-auth middleware wrong-token/valid-token behavior. Launcher evidence now covers invalid-port validation before service setup, occupied-port recovery copy, `--no-open` success copy, packed first-command help, clean installed occupied-port startup recovery, and clean installed long-running `/health` startup; marketplace evidence now covers package manifest/packed-file alignment plus installed help/invalid-command; `@waggle/cli` evidence now covers packed bin help plus local package-closure installed `npx` help, installed local REPL startup/slash-command/exit, and installed streamed chat/provider plumbing against a mock LiteLLM-compatible endpoint; hive-mind CLI evidence now covers local package-closure installed help and a fixed missing `@waggle/shared` runtime dependency; legacy memory MCP evidence now covers a fixed missing `glob` runtime dependency in `@waggle/core`. Remaining utility evidence is registry-only proof after internal package publication. - -Acceptance: - -- Utility/admin evidence is attached, broken built entries are fixed/deprecated, or T15 has an approved deferral from the final score. - -### T16: AI-tool hook lifecycle UX gate - -Files to inspect/edit: - -- `apps/web/src/components/os/apps/LauncherApp.tsx` -- `packages/shared/src/tool-detection.ts` -- `packages/shared/tests/tool-manifests.test.ts` -- `packages/agent/src/tool-launcher.ts` -- `packages/agent/tests/tool-launcher.test.ts` -- `packages/agent/tests/phase4-hooks-cohort.test.ts` -- `packages/hive-mind-hooks-*/**` - -Correction: - -- Verify or fix hook install/verify/uninstall UX for `claude-code`, `codex`, `codex-desktop`, `cursor`, `hermes`, and `openclaw`; verify unsupported-but-launchable copy for `claude-desktop`. -- Keep this out of Phase 1 unless directly required by a Phase 1 verification failure. -- Current evidence: shared/agent/server T16 route-contract plus package-runtime tests pass 7 files / 96 tests; the package-runtime lane builds and packs the local hook package closure, installs it into a clean temp project, then runs `npx --yes @waggle/hive-mind-hooks- install/verify/uninstall` for all six hook-capable packages; the focused registry-aware adapter launch slice passes 5 files / 108 tests; Launcher/prompt/adapter regressions pass 5 files / 72 tests; root-run hook/shim package tests pass 60 files / 573 tests with 1 skipped; hook/shim package-local scripts pass; official package typechecks pass 8/8; Claude Desktop stub build passes; compiled hook-bin help smokes pass 6/6; focused no-reconnect observed-output and hook-result stdout/stderr/Backup-Recovery/Check-failed/uninstall-cleanup/More-output/structured-failure/empty-output/launch-only/third-party-launch coverage passes; focused rendered Launcher Browser smoke artifacts live under `output/playwright/launcher-t16-54147/`; a fresh real Browser route smoke rendered `/launcher` and Verify now shows `verify failed (exit 1)` plus retry/uninstall/reinstall guidance instead of `HTTP 400`; Browser-rendered mocks now show Claude Desktop launch-only copy, Codex Verify manual-approval rows without raw `[FAIL]`, and Codex Uninstall cleanup labels without `Install pointer`; Playwright rendered coverage proves standard install changed-file/pointer/backup/recovery labels, all six hook-capable install/verify/uninstall transitions, sidecar-offline Retry, long-stderr summarization, non-built-in adapter launch-only/prompt behavior, and real OpenClaw observed launch/output/exit/process cleanup; gated route coverage proves real `/api/tools/hooks` install/verify/uninstall for all six hook-capable tools against an isolated profile after fixing Windows hook `npx` resolution; Windows npm shims now resolve to Node module targets when possible, with a quoted fallback for unknown `.cmd`/`.bat` files; Tailwind motion-token ambiguity warnings and the `shape-selection.ts` dynamic/static import warning are fixed and guarded. Packaged desktop hook-status evidence and remaining warning-noise gaps remain. Focused supplement: `docs/audits/2026-07-08-ai-tool-hook-t16-analysis.md`. -- 2026-07-09 T16 update: Codex WindowsApps launchability/recovery is now fixed at the UX contract layer. The restricted WindowsApps alias is detected as installed but not launchable, and Launcher shows recovery copy instead of a Launch button. T16 remains open for packaged desktop hook-status evidence and warning hygiene. - -Acceptance: - -- Hook lifecycle evidence is attached, or T16 has an approved deferral from the final score. - -### T17: Developer API, background worker, and substrate verification UX gate - -Detailed supplement: `docs/audits/2026-07-08-developer-substrate-t17-analysis.md`. - -Files to inspect/edit: - -- `packages/sdk/**` -- `packages/server/**` -- `packages/worker/**` -- `packages/waggle-dance/**` -- `packages/hive-mind-core/**` -- `packages/hive-mind-shim-core/**` -- `packages/hive-mind-wiki-compiler/**` -- `packages/wiki-compiler/**` -- `packages/*/package.json` -- `vitest.config.ts` - -Correction: - -- Verify or fix SDK, server, worker, WaggleDance, substrate, wiki compiler, optimizer, shared, and agent package verification lanes. -- Keep this out of Phase 1 unless directly required by a Phase 1 verification failure. -- Current evidence: all 13 remaining workspaces pass no-emit TypeScript; agent tests pass 195 files / 3097 tests; root-run package suites pass for SDK/substrate/shared/worker/WaggleDance/compiler lanes; the dedicated server performance lane passes 13/13; the named server release lane passes 185 files / 2128 tests with one worker; package-local SDK/substrate test scripts pass; Playwright `webServer` startup is fixed by pinning `tsx@4.21.0`, and the focused marketplace browser slice now passes 4/4 on port `34203`. - -Acceptance: - -- Developer API/background/substrate verification evidence is attached, or T17 has an approved deferral from the final score. The previously identified agent-group dead-end is now corrected: local group runs execute through the sidecar job store with worker progress/cancel/status, and cloud group runs queue the worker-supported `group` job type; focused route/orchestrator coverage passes 19/19. - -### T18: Ops, deployment, CI, benchmark, and judging evidence gate - -Detailed supplement: `docs/audits/2026-07-08-ops-deploy-ci-judging-t18-analysis.md`. - -Files to inspect/edit: - -- `.github/workflows/**` -- `Dockerfile` -- `docker-compose.yml` -- `docker-compose.production.yml` -- `render.yaml` -- `litellm-config.yaml` -- `ops/**` -- `benchmarks/**` -- `judging/**` -- `vitest.infra.config.ts` -- `vitest.infra-suites.ts` - -Correction: - -- Verify or fix Docker/Compose, Render, LiteLLM, CI, infra-test, benchmark, and judging evidence lanes. -- Keep this out of Phase 1 unless directly required by a Phase 1 verification failure. -- Current evidence: YAML parse passes, Compose config validates, env/key files checked here are ignored except examples, benchmark harness TypeScript passes, package-local and root-run benchmark tests pass 29 files / 325 tests, the five-journey CI browser smoke is blocking while the broad E2E job remains advisory, no CI infra lane exists, local Docker engine is unavailable for `npm run test:infra`, Render sidecar mode is explicit, and current `judging/` artifacts are historical. - -Acceptance: - -- Ops/deployment/CI/benchmark/judging evidence is attached, or T18 has an approved deferral from the final score. - -## Five-Persona Judge Gate - -Existing useful harness: - -- `tests/vision/personas.spec.ts` already exercises five persona-style journeys with real local LLM state, screenshots, and artifact output. -- That harness is useful, but it is not yet a complete 9/10 scoring judge. It should be used as a base and extended with explicit scorecards or a separate review pass. -- The detailed scorecard packet lives in `docs/audits/2026-07-08-five-persona-judge-scorecards.md`. - -Judge personas: - -1. Solo founder: first run, accountless mode, Home Start Here, workspace creation, first chat, return later to a remembered next move. -2. Researcher/analyst: import or browse memory, search, provenance, wiki/timeline, verify no cross-workspace leakage. -3. Engineer/power user: command palette, `Ctrl+Shift+N`, Launcher/MCP, file/tool actions, logs, keyboard-heavy navigation. -4. Nontechnical team admin: Settings, billing language, vault, backup, approvals, workspace/team management, clear recovery from errors. -5. Mobile executive: Home, Settings, account/billing, memory glance, theme/profile controls at 390px width. - -Scorecard, 10 points total: - -- Functional completion: 2 points. -- Flow, information architecture, and discoverability: 2 points. -- Trust, error handling, and recovery: 2 points. -- Visual quality, accessibility, and responsive behavior: 2 points. -- Performance and polish: 1 point. -- Memory, personalization, and domain fit: 1 point. - -Pass condition: - -- Each of the five personas scores at least 9/10. -- No persona has any scorecard dimension below 8/10 when normalized. -- No open P0 findings remain. -- Any P1 findings left open have explicit deferral rationale and do not affect the judged journey. -- T13/T14/T15/T16/T17/T18/T19 are fixed or explicitly deferred before claiming complete product UX. - -## Verification Gate For Phase 1 - -Run after the approved Phase 1 fixes: - -```powershell -npm run typecheck:web -npm run ux:contrast -npm run ux:color-guard -cd apps/web -npx vitest run -cd ../.. -npm run build -``` - -Then run the focused browser lane on a fresh port: - -```powershell -$env:WAGGLE_E2E_PORT='3391' -$env:WAGGLE_E2E_BASE_URL='http://127.0.0.1:3391' -$env:WAGGLE_E2E_SKIP_LITELLM='1' -node node_modules/playwright/cli.js test tests/e2e/full-product-audit.spec.ts tests/e2e/full-wiring-audit.spec.ts tests/e2e/phase-ab-verification.spec.ts tests/e2e/power-user-stress.spec.ts tests/e2e/user-behavior.spec.ts tests/visual/views.spec.ts --project=chromium --reporter=list -``` - -Manual/visual checks: - -- Mobile Home, Settings general/models/billing/profile, Memory, workspace chat, Command Center, and Workspace Switcher at 390 x 844. -- Desktop Home, Settings, Marketplace/MCP, Memory, Chat, Launcher. -- Route coverage manifest updated with evidence owner for every registered route. -- Five-persona judge dry run before asking for final 9/10 approval. -- Judge runbook evidence folders filled or linked before accepting final scores. - -## Recommended Approval Decision - -Approve Phase 1 first. It has the smallest scope that can move the product from "mostly functional" to "credible enough to judge." Phase 1 should be capped to the directly implicated files and should not become a broad redesign. - -Decision brief: `docs/audits/2026-07-08-ux-approval-brief.md`. - -Implementation plan for that approval: `docs/superpowers/plans/2026-07-08-ux-phase-1-corrections.md`. - -Track closure in: `docs/audits/2026-07-08-ux-correction-register.md`. - -Do not start new surfaces. Improve the existing Home, Settings, Marketplace/MCP, auth/accountless, and verification surfaces first. diff --git a/docs/audits/2026-07-08-desktop-wrapper-t14-analysis.md b/docs/audits/2026-07-08-desktop-wrapper-t14-analysis.md deleted file mode 100644 index 108e8cf..0000000 --- a/docs/audits/2026-07-08-desktop-wrapper-t14-analysis.md +++ /dev/null @@ -1,193 +0,0 @@ -# Desktop Wrapper T14 Analysis - 2026-07-08 - -Status: analysis supplement plus focused release-workflow, tray, packaged-startup, and sidecar hardening. - -Purpose: deepen T14 evidence for the Tauri desktop wrapper, installer/update path, tray behavior, sidecar startup, and native-to-web UX bridge. - -## Sources Inspected - -- `app/src-tauri/tauri.conf.json` -- `app/src-tauri/capabilities/default.json` -- `app/src-tauri/src/lib.rs` -- `app/src-tauri/src/tray.rs` -- `app/src-tauri/src/service.rs` -- `app/src-tauri/Cargo.toml` -- `app/package.json` -- `app/tests/auto-update.test.ts` -- `app/scripts/*.test.ts` -- `apps/web/src/App.tsx` -- `apps/web/src/lib/tauri-bindings.ts` -- `apps/web/src/providers/ServiceProvider.tsx` -- `.github/workflows/release.yml` -- `scripts/check-sidecar-resources.mjs` -- `scripts/build-sidecar.mjs` -- `scripts/bundle-node.mjs` -- `scripts/bundle-native-deps.mjs` -- `scripts/stage-sidecar-deps.mjs` - -Guideline baseline: Vercel Web Interface Guidelines, fetched 2026-07-08 from `https://raw.githubusercontent.com/vercel-labs/web-interface-guidelines/main/command.md`. - -## Commands Run - -```powershell -npx tsc --noEmit --project app/tsconfig.json -npx vitest run app/tests/auto-update.test.ts app/scripts/signing-config.test.ts app/scripts/installer-config.test.ts app/scripts/bundle-runtimes.test.ts --reporter=dot -node scripts/check-sidecar-resources.mjs -cargo check --manifest-path app/src-tauri/Cargo.toml -npm run test -- tauri-bindings.test.ts adapter.tauri-branch.test.ts --reporter=dot -npx vitest run app/tests/e2e/startup.test.ts app/tests/e2e/chat.test.ts app/tests/e2e/workspaces.test.ts --reporter=dot -node -e "" -app/src-tauri/resources/node.exe --version -npx vitest run packages/server/tests/tauri-config.test.ts --reporter=dot -npm run test -w apps/web -- src/lib/tauri-bindings.test.ts --reporter=dot -npx tsc --noEmit --project apps/web/tsconfig.json -npm run build:packages -npm run tauri:build:local -npx vitest run packages/server/tests/tauri-config.test.ts app/tests/auto-update.test.ts --reporter=dot -cargo test --manifest-path app/src-tauri/Cargo.toml service_script -- --nocapture -npx vitest run packages/server/tests/local/network-auth.test.ts --reporter=dot -node scripts/bundle-node.mjs -npx tauri build --debug --no-bundle -Start-Process app/src-tauri/target/debug/waggle.exe with isolated WAGGLE_DATA_DIR; poll http://127.0.0.1:3333/health -``` - -## Command Results - -| Check | Result | UX meaning | -|---|---:|---| -| `app` TypeScript | Pass | Desktop build/signing/installer scripts typecheck. Refreshed in continuation run. | -| Tauri helper/static tests | Pass, 4 files / 85 tests | Auto-update config, signing config, installer config, and runtime-bundling helpers are covered. | -| Sidecar resource preflight | Pass | Local resources include Node runtime, native deps, and staged `node_modules`; `service.js` exists. Refreshed in continuation run. | -| Rust `cargo check` | Pass | Tauri Rust shell compiles in dev profile, including the tray native quit/settings changes. Refreshed after tray hardening. | -| Web-side Tauri binding tests from `apps/web` | Pass, focused binding 17/17 and prior binding/adapter bundle 19/19 | IPC command wrappers, adapter Tauri branches, the desktop navigation bridge, and native service/update notice mapping are covered when run through the web package. Output includes `punycode` deprecation warnings. Refreshed after service/update event surfacing. | -| Root Vitest command for web-side Tauri tests | Fails by command shape | Root Vitest excludes `apps/**`; this is a verification-documentation gap, not a product runtime failure. | -| App service E2E | Pass, 3 files / 11 tests | Service startup, health, settings persistence, chat SSE, workspace/session, and memory-scope API flows work in the Vitest harness. Output is noisy with mock-embedding and unknown-model cost warnings. | -| JSON parse | Pass | Tauri config, build/dev overrides, and capability JSON parse. | -| Bundled Node runtime | Pass | `app/src-tauri/resources/node.exe -p "process.version + ' abi=' + process.versions.modules"` returns `v22.22.2 abi=127` on this local build, matching the Node ABI that staged native deps. `bundle-node.mjs` now defaults to the current staging Node version, with `WAGGLE_BUNDLED_NODE_VERSION` available for an intentional pin. | -| Release workflow/tray/static desktop bridge guard | Pass, 1 file / 25 tests | `packages/server/tests/tauri-config.test.ts` now requires release builds to run `npm run build:packages` before each desktop sidecar bundle point, guards the tray menu against unsupported Pause/About/Quit-event actions, requires the web app to mount both desktop navigation and shell-event listeners, and guards updater-disabled startup plus Node ABI preflight behavior. | -| Web app TypeScript | Pass | `npm run typecheck:web` confirms the App-level desktop event bridge and Tauri binding types compile. | -| Updater-disabled static contract | Pass, 2 files / 35 tests | `tauri.conf.json` has updater config absent, updater capability is not exposed, and Rust no longer initializes `tauri_plugin_updater` while signed updater artifacts are missing. | -| Packaged debug binary build without installer | Pass | `npx tauri build --debug --no-bundle` builds `app/src-tauri/target/debug/waggle.exe` after sidecar/web resource preflight. | -| Full local debug bundle/MSI/NSIS | Pass locally | `npm run tauri:build:local --prefix app` completed and produced `Waggle_0.2.0_x64_en-US.msi` (150,135,110 bytes, 2026-07-10 18:59) and `Waggle_0.2.0_x64-setup.exe` (97,806,701 bytes, 2026-07-10 19:08). Both local debug artifacts are currently unsigned. | -| Packaged debug startup smoke | Pass | Launching `target/debug/waggle.exe` with an isolated `WAGGLE_DATA_DIR` reaches `/health` with `status: ok`, `mode: local`, `database.healthy: true`, `serviceHealth.watchdogRunning: true`; captured stderr contains no `CORS: origin not allowed`, `ERR_MODULE_NOT_FOUND`, or `NODE_MODULE_VERSION` errors. | - -## Native Event Consumer Matrix - -The tray-specific false affordances found in the first T14 pass are now narrowed: -Pause Agents and About Waggle are no longer offered from the tray, Settings has a -web bridge to the shipped `/settings` route, and Quit uses Tauri's native -`app.exit(0)` path. The updater is intentionally disabled until signed updater -artifacts exist, so update availability is future-ready in the web mapper but -not emitted by the native shell in the current build. Remaining active native -events are service-watchdog signals, not tray menu actions. - -```text -waggle://navigate -waggle://service-restart-needed -waggle://service-status -``` - -| Native event / behavior | Source | Current consumer evidence | UX reading | -|---|---|---|---| -| Tray icon click / Open Waggle | `app/src-tauri/src/tray.rs` | Native show/focus; no React consumer needed | Source-wired, still needs packaged smoke. | -| Close window to tray | `app/src-tauri/src/lib.rs:135-140` | Native hide on close; no React consumer needed | Source-wired, still needs packaged smoke. | -| `Ctrl+Shift+W` global shortcut | `app/src-tauri/src/lib.rs` | Native toggle visibility; no React consumer needed | Source-wired, still needs target-OS smoke. | -| Tray Settings | `app/src-tauri/src/tray.rs`, `apps/web/src/App.tsx`, `apps/web/src/lib/tauri-bindings.ts` | Rust shows/focuses the main window, emits `waggle://navigate` to `/settings`, and the web app mounts `TauriDesktopEventBridge` to route only shipped desktop destinations. | Source-wired, still needs packaged smoke. | -| Tray Quit | `app/src-tauri/src/tray.rs` | Native `app.exit(0)` path; no React consumer needed. | Source-wired to Tauri `RunEvent::Exit`, still needs packaged smoke. | -| Pause Agents tray action | `app/src-tauri/src/tray.rs` | Menu item and emitter removed. | Hidden until there is real pause/resume behavior. | -| About Waggle tray action | `app/src-tauri/src/tray.rs`, `apps/web/src/App.tsx` | Menu item and `/about` emitter removed; no missing-route target remains. | Hidden until there is a real About destination. | -| `waggle://update-available` | `apps/web/src/lib/tauri-bindings.ts`, `apps/web/src/App.tsx` | `listenDesktopShellEvents()` keeps a future `Update available` toast mapper, but Rust updater registration/emission is disabled while updater signing is not provisioned. | Future-ready web mapping only; signed-update release-channel proof remains deferred. | -| `waggle://service-status` | `app/src-tauri/src/service.rs`, `apps/web/src/lib/tauri-bindings.ts`, `apps/web/src/App.tsx` | `restarting` maps to a reconnecting toast; `failed` maps to a destructive stopped-service recovery toast. | Source/unit-wired to visible UI, still needs packaged watchdog smoke. | -| `waggle://service-restart-needed` | `app/src-tauri/src/service.rs`, `apps/web/src/lib/tauri-bindings.ts`, `apps/web/src/App.tsx` | `listenDesktopShellEvents()` maps restart-needed events to a visible local-service restart toast. | Source/unit-wired to visible UI, still needs packaged watchdog smoke. | - -Continuation refresh: - -```text -rg -n -F "waggle://pause-agents" app/src-tauri apps/web/src -> no product emitter/listener -rg -n -F "waggle://navigate" app/src-tauri apps/web/src -> tray emitter + web bridge -rg -n -F "waggle://quit" app/src-tauri apps/web/src -> no product emitter/listener; tray uses app.exit(0) -rg -n -F "waggle://update-available" app/src-tauri apps/web/src -> web shell-event listener only; native updater emission disabled -rg -n -F "waggle://service-status" app/src-tauri apps/web/src -> Rust emitters + web shell-event listener -rg -n -F "waggle://service-restart-needed" app/src-tauri apps/web/src -> Rust emitter + web shell-event listener -``` - -Inference: Settings now has the frontend listener required for its delegated route -behavior, Quit no longer delegates to React, service-watchdog signals now surface -as visible toasts through the same desktop bridge, and update availability has a -future-ready web mapper while native updater emission remains disabled. The -packaged startup/smoke layer is now proven for app boot and sidecar health; tray, -close-to-tray, shortcut, and forced watchdog-restart interactions still need -targeted packaged interaction evidence. - -## What Is Proven Now - -- Static desktop TypeScript, Rust compilation, config JSON, resource staging, and service-level API flows are in good shape. -- The active installed sidecar path is `packages/server/src/local/service.ts` -> `scripts/build-sidecar.mjs` -> `app/src-tauri/resources/service.js` -> `app/src-tauri/src/service.rs`. -- `scripts/check-sidecar-resources.mjs` correctly prevents a raw Tauri build from silently omitting staged runtime resources. -- `ServiceProvider` has a generic boot/reconnect path with three retries and broadcasts connect-settled state; several routed surfaces show "service unreachable" states. -- Release workflow builds workspace packages, then stages Node, native deps, sidecar deps, and frontend before Tauri action builds Windows/macOS draft release artifacts. -- Native tray click/Open, close-to-tray, and the global shortcut are implemented in Rust rather than delegated to missing web listeners. -- Tray Settings is source-wired through a Tauri desktop navigation bridge to `/settings`; unsupported `/about` navigation is no longer emitted. -- Tray Quit is source-wired through Tauri `app.exit(0)`, so the existing `RunEvent::Exit` sidecar cleanup path is reachable from the menu. -- Pause Agents and About Waggle are no longer exposed as tray actions until there is real product behavior behind them. -- Native service-watchdog events now have React consumers, and the future update event mapper is ready: `waggle://update-available`, `waggle://service-status`, and `waggle://service-restart-needed` map to concise toasts, guarded by `tauri-bindings.test.ts` and the static desktop bridge test. -- Packaged debug startup now works locally: the Tauri shell creates the tray icon, starts the bundled sidecar from `target/debug/resources/service.js`, reaches `/health`, and reports healthy database plus running watchdog. -- Startup blockers found and fixed by packaged smoke: invalid `plugins.dialog` config, updater plugin initialization without updater config, debug-sidecar source path resolution, bundled Node/native ABI mismatch, and Tauri webview `http://tauri.localhost` CORS rejection. - -## Still Not Proven - -- Packaged debug app launch and sidecar health on Windows are proven locally; clean installed MSI/NSIS launch on Windows/macOS remains unproven. -- Published release artifact availability and signed-installer trust are still not proved; the local debug MSI/NSIS artifacts are present but `Get-AuthenticodeSignature` reports `NotSigned` for both. -- Actual packaged tray menu behavior for Open, Settings, and Quit. -- Close-to-tray behavior in the installed binary. -- `Ctrl+Shift+W` global shortcut behavior on target OS. -- Packaged-app proof that forced watchdog events produce the expected visible toasts. -- Port-conflict recovery in the installed app. -- Installer warning/trust experience for unsigned, self-signed, or properly signed channels. -- Auto-update user experience. The updater config, capability, and Rust runtime registration are intentionally disabled for v1 until signed updater artifacts exist; the web mapper remains future-ready. - -## Line-Level Findings - -| ID | Finding | Evidence | Correction | -|---|---|---|---| -| T14-1 | Service app-level events previously had no React consumers, and update mapping was not future-ready. | Current `tauri-bindings.ts` maps `waggle://update-available`, `waggle://service-status`, and `waggle://service-restart-needed` to toast notices, and `App.tsx` mounts `listenDesktopShellEvents()` through `TauriDesktopEventBridge`; guarded by focused binding tests and `tauri-config.test.ts`. Native update emission remains disabled until signed updater artifacts exist. | Focused fixed locally for service events and future update mapping; packaged smoke still needs to prove real service-watchdog events produce visible toasts. | -| T14-2 | About tray action previously targeted a route that does not exist. | Current `tray.rs` no longer includes `About Waggle` or `/about`; guarded by `tauri-config.test.ts`. | Focused fixed locally by removing the unsupported tray action. | -| T14-3 | Quit tray action previously delegated to an unconsumed web event. | Current `tray.rs` uses `app.exit(0)`; guarded by `tauri-config.test.ts` and `cargo check`. | Focused fixed locally; packaged smoke still needs to prove sidecar cleanup through the real menu. | -| T14-4 | Update UX is intentionally disabled and must not break startup. | `app/tests/auto-update.test.ts` and `packages/server/tests/tauri-config.test.ts` require updater config absent, updater capability not exposed, no `UpdaterExt` import, no updater plugin registration, and no startup `.updater()` check. Packaged smoke originally panicked on `plugins.updater: null`; the current binary no longer does. | Keep update UI hidden/deferred, or re-enable signed updater artifacts and visible update handling end to end. | -| T14-5 | Generic service reconnect exists, and native watchdog events now surface through the desktop bridge. | `ServiceProvider.tsx` still owns generic reconnect, while `listenDesktopShellEvents()` turns native watchdog status/restart events into visible recovery toasts. | Focused fixed locally; installed-app watchdog failure/restart proof remains. | -| T14-6 | Web-side Tauri tests are not discoverable from the root Vitest command. | Root command exits "No test files found" because root config excludes `apps/**`; running from `apps/web` passes 2 files / 19 tests. | Document the correct web-package command in the final verification lane or align root test discovery. | -| T14-7 | Installed-app UX still lacks real rendered evidence. | Current command evidence is source/static/API-level only. | Capture packaged app startup, tray, close-to-tray, shortcut, service recovery, and installer trust evidence before a full 9/10 claim. | -| T14-8 | Release packaging previously skipped the package build step used by the PR Tauri verification lane. | Historical `.github/workflows/release.yml` went from `npm install` directly to sidecar bundling; current workflow runs `npm run build:packages` before both Windows and macOS sidecar bundle steps, guarded by `tauri-config.test.ts`. | Focused fixed locally; full release closure still needs signed/public artifacts and installed-app smoke. | -| T14-9 | Settings tray action previously emitted an unconsumed route event. | Current `App.tsx` mounts `TauriDesktopEventBridge`; `tauri-bindings.ts` listens for `waggle://navigate` and accepts only `/settings`; focused web binding tests pass 15/15. | Focused fixed locally; packaged smoke still needs to prove the real tray menu reaches Settings. | -| T14-10 | Packaged startup previously panicked before the UI could load. | Direct debug-exe smoke exposed `plugins.dialog` object deserialization and updater `null` deserialization panics. Current config removes `plugins.dialog`; current Rust does not register updater while config is absent; static tests guard both. | Fixed for debug packaged startup; installer artifact smoke remains. | -| T14-11 | Packaged sidecar previously launched the dev `service.ts` path from the wrong root. | Smoke exposed `ERR_MODULE_NOT_FOUND` for `D:\packages\server\src\local\service.ts`. `service.rs` now prefers bundled `resources/service.js` when present, falls back to ancestor-searched dev source only when needed, and has Rust unit tests for both paths. | Fixed; packaged startup smoke reaches `/health`. | -| T14-12 | Bundled Node and staged native deps could silently have incompatible ABIs. | Smoke exposed `better_sqlite3.node` built for ABI 127 running under bundled Node ABI 115. `bundle-node.mjs` now defaults to the current staging Node version; `check-sidecar-resources.mjs` fails on ABI mismatch before packaging. | Fixed locally; CI remains aligned because CI stages under Node 20 unless intentionally changed. | -| T14-13 | Tauri webview health calls could be rejected by local CORS. | Packaged logs showed `CORS: origin not allowed` before allowing `http://tauri.localhost`; `network-auth.test.ts` now covers Tauri webview localhost origins. | Fixed; current packaged smoke has no CORS rejection in stderr. | - -## Correction Decision - -Do not treat all tray items equally: - -1. Keep Rust-native handling for Open, close-to-tray, and `Ctrl+Shift+W`, then verify them in a packaged smoke. -2. Keep Settings as the only delegated tray route and route it through the tested desktop navigation bridge. -3. Keep Quit native through `app.exit(0)` so sidecar cleanup is reachable. -4. Keep Pause Agents and About Waggle hidden until they have real product behavior. -5. Keep service watchdog events surfaced through accessible toasts, keep update mapping future-ready while updater is disabled, then prove watchdog behavior in a packaged smoke. - -## T14 Acceptance - -T14 remains open until either: - -1. Desktop wrapper/release UX is explicitly deferred from the five-persona score, or -2. Evidence proves all of the following: - -- Packaged app launches and reaches Home or a clear service-recovery screen. Current debug smoke proves sidecar `/health`; rendered Home still needs packaged visual proof. -- Tray Open, Settings, and Quit actions are proved in a packaged smoke; Pause and About remain intentionally removed until implemented. -- Close-to-tray and `Ctrl+Shift+W` are verified on a target OS lane. -- Sidecar startup, port conflict, crash/restart, and restart-needed states are visible and recoverable. -- Installer/signing expectations are documented for the actual release channel. -- Update UX is either fully signed and user-visible or intentionally disabled without misleading UI. - -## Phase Impact - -This does not change Phase 1. T14 remains a Phase 2/Launch final-product gate after in-app P0 blockers are cleared, unless a Phase 1 verification command directly requires a small supporting fix. diff --git a/docs/audits/2026-07-08-developer-substrate-t17-analysis.md b/docs/audits/2026-07-08-developer-substrate-t17-analysis.md deleted file mode 100644 index f2db7a0..0000000 --- a/docs/audits/2026-07-08-developer-substrate-t17-analysis.md +++ /dev/null @@ -1,105 +0,0 @@ -# T17 Developer API, Background Worker, and Substrate UX Analysis - -Date: 2026-07-08 -Scope: SDK, server API tests, worker jobs, WaggleDance protocol, agent/core/shared/optimizer/weaver, hive-mind substrate, shim core, and wiki compiler verification lanes. -Mode: analysis plus focused tooling fix. - -## Bottom Line - -T17 is broadly tested, but not yet a clean 9/10 developer or release-review experience. - -The good news: all 13 scoped workspaces pass direct `tsc --noEmit`, the major root-run test lanes pass, the agent suite passes 195 files / 3097 tests, the server-owned release lane passes 185 files / 2128 tests with one worker, the isolated performance lane passes 13/13, the focused Playwright `webServer` startup blocker is fixed, all scoped package-local test lanes now have working commands, the worker's scheduled-job wrapper now delegates to real allowlisted handlers instead of returning a placeholder, Waggle worker delegation now queues child chat jobs while capability and legacy knowledge responses report concrete availability and gaps, and `/cli allow|deny` now persists and hot-applies the governed CLI allowlist. The remaining problem is command trust outside those named lanes: the fast parallel server invocation can starve startup hooks, warning output remains noisy, and developer recovery journeys are not yet end to end. - -## User Jobs - -- Use `@waggle/sdk` to validate, install, and run skills/plugins. -- Trust local server APIs for chat, workspaces, memory, marketplace, billing, backup, compliance, hooks, and startup recovery. -- Trust background worker jobs for dispatch and job processing. -- Trust WaggleDance protocol behavior and signal handling. -- Trust memory substrate, shim core, wiki compiler, optimizer, shared contracts, and agent runtime behavior that power the UI. -- Run documented root and package-local verification commands without false failures, skipped tests, or unreadable logs. - -## Scope Inventory - -Scoped packages: - -- `packages/agent` -- `packages/core` -- `packages/hive-mind-core` -- `packages/hive-mind-shim-core` -- `packages/hive-mind-wiki-compiler` -- `packages/optimizer` -- `packages/sdk` -- `packages/server` -- `packages/shared` -- `packages/waggle-dance` -- `packages/weaver` -- `packages/wiki-compiler` -- `packages/worker` - -Source inventory found 512 test/spec files under these scoped packages and roughly 8389 `describe`/`test`/`it` declarations by simple source scan. This is a broad test surface, not an absence-of-tests problem. - -## Command Evidence - -| Check | Result | Notes | -|---|---:|---| -| Direct `npx tsc --noEmit --project packages//tsconfig.json` for all 13 scoped packages | Pass, 13/13 | `agent`, `core`, `hive-mind-core`, `hive-mind-shim-core`, `hive-mind-wiki-compiler`, `optimizer`, `sdk`, `server`, `shared`, `waggle-dance`, `weaver`, `wiki-compiler`, and `worker` all typecheck. | -| `npm run test -w @waggle/agent -- --reporter=dot` | Pass, 195 files / 3097 tests | Broad agent runtime, orchestration, memory recall, personas, security, tools, and workflow coverage. Output includes reranker loading/status logs. | -| `npm run test -w @waggle/core -- --reporter=dot` | Pass, 19 files / 296 tests | Core config, vault, compliance, quota, team sync, and storage tests pass. Output includes embedding provider probes, vault permission warnings, and intentional failure logs. | -| `npm run test -w @waggle/optimizer -- --reporter=dot` | Pass, 1 file / 21 tests | Optimizer tests pass through the package script. | -| `npm run test -w @waggle/weaver -- --reporter=dot` | Pass, 3 files / 31 tests | Weaver consolidation tests pass through the package script. | -| `npx vitest run packages/hive-mind-core/tests packages/hive-mind-shim-core/tests packages/wiki-compiler/tests --config vitest.config.ts --reporter=dot` | Pass, 71 files / 875 tests | Substrate, shim core, and wiki compiler tests pass through the root runner. Output is very noisy with embedding fallback banners and intentional error-path logs. | -| `npx vitest run packages/sdk/tests --config vitest.config.ts --reporter=dot` | Pass, 5 files / 89 tests | SDK tests pass from root, including the filesystem-safe plugin-id regression. | -| `npm run test -w @waggle/shared -- --reporter=dot` | Pass, 5 files / 40 tests | Shared contract tests now have a package-owned root-config command. | -| `npm run test -w @waggle/waggle-dance -- --reporter=dot` | Pass, 3 files / 42 tests | WaggleDance protocol tests now have a package-owned root-config command. | -| `npm run test -w @waggle/worker -- --reporter=dot` | Pass, 4 files / 46 tests | Worker execution and handler tests now have a package-owned root-config command. | -| `npm run test -w @waggle/hive-mind-wiki-compiler -- --reporter=dot` | Pass, 3 files / 26 tests | Colocated `src/*.test.ts` files are now included explicitly in root discovery; resolver tests isolate provider selection from Vitest CJS/ESM interop. | -| `npm run test:perf -- --reporter=dot` | Pass, 1 file / 13 tests | Dedicated wall-clock benchmark lane; the default Vitest gate excludes `packages/server/tests/performance/**`. | -| `npm run test -w @waggle/server -- --reporter=dot` | Pass, 185 files passed / 1 skipped; 2128 tests passed / 1 skipped | Server-owned deterministic release lane uses one worker and silent console output; duration 349.32s. A faster parallel invocation remains useful feedback but is not the release gate because server boot hooks can contend for resources. | -| Focused Playwright marketplace slice, port 34203 | Pass, 4/4 | The old ports `34201` and `34202` failed before assertions because transitive `tsx@4.22.3` used `esbuild` host `0.28.0` while resolving the root Windows binary `0.21.5`. Pinning the repo's direct `tsx` dependency to `4.21.0` dedupes it to root `esbuild@0.27.7`; `npx tsx -e` succeeds and Playwright `webServer` starts the sidecar before assertions. | -| `npm run test -w @waggle/hive-mind-core -- --reporter=dot` | Pass, 59 files / 745 tests | Package script now delegates to the root Vitest config, which owns the workspace aliases and shared setup. | -| `npm run test -w @waggle/hive-mind-shim-core -- --reporter=dot` | Pass, 10 files / 105 tests | Package-local script now runs the root Vitest config against the shim-core tests. The integration lane also verifies the CLI ESM resolver path for the MCP server entry. | -| `npm run test -w @waggle/wiki-compiler -- --reporter=dot` | Pass, 2 files / 25 tests | Package script now delegates to the root Vitest config and shared setup. | -| `npm run test -w @waggle/sdk -- --reporter=dot` | Pass, 5 files / 89 tests | Package script now delegates to the root Vitest config, avoiding the incomplete workspace-local dependency tree. | - -## Source Findings - -| ID | Severity | Finding | Evidence | Correction Needed | -|---|---:|---|---|---| -| T17-1 | Resolved | Package-local test scripts failed for packages whose root-run tests passed. | `hive-mind-core` now passes 59 files / 745 tests, `wiki-compiler` passes 2 / 25, and `sdk` passes 5 / 89 through their workspace commands; `hive-mind-shim-core` already owned the same root-config pattern. | Keep the package scripts on the root-config delegation pattern and guard them in the T17 verification lane. | -| T17-2 | Resolved for the named server lane | The standard server lane needed stable release semantics. | `npm run test -w @waggle/server -- --reporter=dot` passes 185 files / 2128 tests with one worker; `npm run test:perf -- --reporter=dot` passes 13/13 separately. The prior parallel run had four startup-hook timeouts, so it remains fast feedback rather than the release gate. | Keep the package-owned single-worker lane and isolated perf command documented. | -| T17-3 | Resolved for the standard server lane | Marketplace sync behavior leaked into normal server verification. | `packages/server/tests/local/marketplace-sync.test.ts` now stubs fetch and console output through a hermetic helper; the focused lane passes 13/13 without external sync logs. | Keep external catalog adapter coverage in a separately named live/integration lane. | -| T17-4 | Partially resolved | Passing backend/substrate runs were too noisy for reviewer use. | Root Vitest now runs with `silent: true`; the mock-provider degradation banner is suppressed only in test setup via `WAGGLE_SUPPRESS_EMBEDDING_WARNING=1`, while production runs remain loud. Direct subprocess diagnostics and selected live/integration logs still need cleanup. | Keep the quiet default and finish warning categorization for live/integration lanes. | -| T17-5 | Resolved | Some packages had no local test script even though their behavior was covered from root. | `@waggle/worker` passes 4 files / 46 tests, `@waggle/waggle-dance` passes 3 / 42, `@waggle/shared` passes 5 / 40, and `@waggle/hive-mind-wiki-compiler` passes 3 / 26 through package-owned root-config scripts. | Keep these package commands in the verification lane. | -| T17-6 | P2 | Developer-facing happy paths are tested, but coherent recovery journeys are not fully sampled. | Unit/API tests cover many pieces, the worker's scheduled `cron` wrapper now has explicit validation plus real-handler delegation coverage, Waggle worker tests cover real child-job enqueue, honest missing-capability reporting, and concrete legacy knowledge gaps, and command-route tests cover persisted `/cli allow|deny` updates with live tool permission changes. This packet still does not prove SDK docs/examples, bad config setup, worker failure UI copy, or server API consumer ergonomics as end-to-end developer journeys. | Add developer-journey smoke docs/tests or explicitly defer these from the five-persona score. | -| T17-7 | Resolved | Playwright webServer startup could fail before product assertions because `tsx` and esbuild binaries were misaligned. | Old focused marketplace Playwright runs on ports 34201 and 34202 failed before tests with `Host version "0.28.0" does not match binary version "0.21.5"`. Current package tree pins direct `tsx@4.21.0`, dedupes to `esbuild@0.27.7`, passes `npx tsx -e`, and the focused marketplace Playwright slice passes 4/4 on port `34203`. | Keep the direct `tsx` pin or equivalent matching host/binary invariant. | - -## Persona Impact - -| Persona | Current T17 cap | Why | -|---|---:|---| -| Engineer / power user | 8/10 | Package-local lanes and a stable server release command now work, but warning hygiene and developer recovery journeys remain open. | -| Team admin / security reviewer | 8/10 | Server, worker, compliance, vault, and backup APIs pass tests, but noisy failure-looking logs and unclear command lanes reduce release confidence. | -| Solo founder | 8/10 | Less direct, but the visible product depends on these APIs and background jobs. | -| Researcher | 8/10 | Memory substrate tests are broad, but embedding-noise and command-shape failures undercut provenance confidence. | -| Mobile executive | 8/10 | Indirect impact through stability and release confidence. | - -## Acceptance For Closing T17 - -- Package-local scripts either pass or clearly delegate to the correct root/project-reference lane. -- Root verification discovers all intended package tests, or every intentional separate lane is documented. -- Full server tests and server performance tests have stable release semantics: default deterministic lane plus isolated perf/live-integration lanes where needed. -- Marketplace sync tests in the standard lane are hermetic and quiet, or are moved to a live-integration lane. -- Playwright `webServer` startup uses a matching `tsx`/esbuild host/binary pair and can start the sidecar before assertions. Current focused evidence passes 4/4 on port `34203`. -- Expected warning noise is suppressed, filtered, or explicitly summarized so real failures stand out. -- SDK/server/worker/WaggleDance/substrate developer journeys have happy-path and recovery/error-path evidence, or are explicitly deferred from the five-persona score. - -## Packet Decision - -Keep T17 as `Phase 2 Pending` / tooling-release-confidence gate. Package-local test-script failures, perf-lane separation, and standard-server marketplace leakage are fixed. Warning hygiene and developer journey evidence still block the final "complete UX, all parts functional, five judges at 9/10" claim unless the user explicitly defers developer API, background worker, and substrate verification from the score. - -### 2026-07-10 follow-up: group execution recovery - -The agent-group surface had a concrete end-user dead end that was not covered by the prior worker evidence: local `/api/agent-groups/:id/run` returned a synthetic job ID, while local `/api/jobs/:id` did not exist. The local sidecar now persists bounded in-memory job state, runs persona-backed groups through `SubagentOrchestrator`, reports worker progress/output, supports cancellation through the agent-loop abort signal, validates group members/strategies, and exposes local job status/cancel routes. The cloud route now queues the worker-supported `group` job shape instead of inserting an unsupported `group_execution` row. Focused route/orchestrator coverage passes 19/19; package builds, server/agent/shared typechecks, and the web production build pass. - -This closes the named group-run recovery gap. T17 remains pending for the separate warning-hygiene and SDK/server consumer recovery journeys listed above. diff --git a/docs/audits/2026-07-08-first-run-onboarding-t1-t2-t12-analysis.md b/docs/audits/2026-07-08-first-run-onboarding-t1-t2-t12-analysis.md deleted file mode 100644 index 306e70f..0000000 --- a/docs/audits/2026-07-08-first-run-onboarding-t1-t2-t12-analysis.md +++ /dev/null @@ -1,214 +0,0 @@ -# First-Run Onboarding T1/T2/T12 Analysis - 2026-07-08 - -Status: analysis-only supplement. No product code was changed. - -Purpose: close the audit blind spot left by the standard `?skipOnboarding=true` harness. This run exercised a clean local data dir without skip flags, then followed the first-run path through onboarding, template creation, first-task auto-send, and post-onboarding chat. - -## Evidence - -Source inspected: - -- `apps/web/src/hooks/useOnboarding.ts` -- `apps/web/src/components/os/AppShell.tsx` -- `apps/web/src/components/os/overlays/OnboardingWizard.tsx` -- `apps/web/src/components/os/overlays/onboarding/{WelcomeStep,WhoAreYouStep,ModelGateStep,ImportStep,TemplateStep,FirstTaskStep}.tsx` -- `apps/web/src/components/os/overlays/onboarding/constants.ts` -- `packages/server/src/local/routes/onboarding.ts` -- Existing tests under `apps/web/src/test/*onboarding*` and `tests/e2e/*onboarding*` - -Commands: - -```powershell -npm run build -``` - -Fresh runtime: - -```powershell -$env:WAGGLE_PORT='3431' -$env:WAGGLE_TRUST_LOCALHOST='1' -$env:WAGGLE_DISABLE_MARKETPLACE_SYNC='1' -$env:EMBEDDING_PROVIDER='mock' -$env:VITE_CLERK_PUBLISHABLE_KEY='' -$env:CLERK_SECRET_KEY='' -$env:WAGGLE_DATA_DIR = "$env:TEMP\waggle-first-run-smoke-3431-20260708050443" -npx tsx packages/server/src/local/start.ts --skip-litellm -``` - -Artifacts: - -- Trace: `output/playwright/first-run-onboarding-3431/first-run-onboarding-summary.json` -- Reopen trace: `output/playwright/first-run-onboarding-3431/after-reopen-wait.json` -- Screenshots: - - `output/playwright/first-run-onboarding-3431/desktop-00-welcome.png` - - `output/playwright/first-run-onboarding-3431/desktop-01-profile-empty.png` - - `output/playwright/first-run-onboarding-3431/desktop-02-profile-filled.png` - - `output/playwright/first-run-onboarding-3431/desktop-03-model-gate.png` - - `output/playwright/first-run-onboarding-3431/desktop-04-import.png` - - `output/playwright/first-run-onboarding-3431/desktop-05-template.png` - - `output/playwright/first-run-onboarding-3431/desktop-06-first-task.png` - - `output/playwright/first-run-onboarding-3431/desktop-07-after-lets-go.png` - - `output/playwright/first-run-onboarding-3431/desktop-08-after-reopen-wait.png` - - `output/playwright/first-run-onboarding-3431/mobile-00-welcome.png` - - `output/playwright/first-run-onboarding-3431/mobile-01-profile-empty.png` - -Runtime outcome: - -- `npm run build` passed with the known Tailwind ambiguous-class warnings, dynamic import warning, and large main chunk warning. -- Fresh server started on `http://127.0.0.1:3431` with a temporary data dir and mock embeddings. -- Desktop first-run path rendered the onboarding takeover instead of shell chrome. -- Desktop completed: Welcome -> Profile -> Model Gate -> Import skip -> Template -> First Task -> workspace chat. -- A second fresh mobile browser context opened before completion and rendered Welcome plus Profile at 390 x 844. -- Post-completion reopen reached `/workspaces/research-hub/chat` with an empty composer after generation completed. - -## Findings - -### FRO-1: First-run accountless console health (verified fixed for sampled paths) - -The first-run smoke captured 15 console/page errors. They are the same T1 class already found on skipped route smokes: - -- inline script blocked by `script-src 'self'` -- Clerk script blocked by local CSP -- Clerk failed to load / timeout - -Current verification update: - -- `clean first-run onboarding loads without Clerk, CSP, or page errors` passed on port `34196`. -- `no console errors on initial load` passed on port `34196`. -- `no critical console errors on load` passed on port `34196`. - -Impact: - -- Solo Founder and Team Admin could not receive a final 9/10 while accountless local-first onboarding emitted auth/security failures. The current focused console-health checks close this sampled cap; explicit Clerk-enabled auth remains a separate state bundle. -- Phase 1 T1 must keep the first-run lane in regression, not only the skip-onboarding route lane. - -Correction: - -- Keep accountless local mode as the default unless Clerk is explicitly enabled. -- Add first-run console capture to the T1 verification lane. - -### FRO-2: Desktop onboarding is functionally complete - -The desktop path reached the terminal chat route and auto-sent the seeded first task. The final route was: - -```text -http://127.0.0.1:3431/workspaces/research-hub/chat -``` - -The flow was logical overall: - -- Welcome explains the local-first promise. -- Profile captures useful personalization signals. -- Model gate allowed continuation because a local model was available. -- Template recommendation correctly floated Research Hub for a consulting/research profile. -- First task seeded the chat with the chosen template hint. - -Impact: - -- This is a strong Solo Founder evidence lane now that sampled T1 console health is verified fixed. - -Correction: - -- Preserve this end-to-end contract while fixing the polish items below. - -### FRO-3: Model gate status copy can be stale while Continue is enabled (focused fixed) - -The model gate screenshot showed the status strip still saying `Checking your models...` while the Continue button was enabled and clickable. - -Current verification update: - -- When `useHasWorkingModel()` already reports a working model, onboarding now renders a `Model ready` status instead of the setup/checking gate. -- `ModelGateStep.test.tsx` passed 5/5, including a regression that hides the setup gate and checking copy while Continue is enabled. - -Impact: - -- This does not block completion, but it weakens trust. A user sees two contradictory states: still checking vs ready to continue. - -Correction: - -- Once `hasWorkingModel` is true, replace the checking copy with a ready state that names the working provider/model, or hide the checking strip. - -### FRO-4: High-volume Claude Code auto-detect makes import too easy for day-zero setup (focused fixed) - -The import step detected 5,514 Claude Code items and placed `Import my history` as a primary button directly in onboarding. - -Current verification update: - -- High-volume detected histories now switch to volume-aware copy, format the count (`5,514 items from Claude Code`), make `Review after setup` the primary action, and demote immediate import to explicit `Import 5,514 now`. -- `apps/web/src/test/onboarding-import-step.test.tsx` passed 2/2, covering the high-volume deliberate-review flow and preserving the simple `Import my history` CTA for small detected histories. -- `npm run typecheck:web` passed after the component change. - -Impact: - -- Functionally impressive, but risky for first-run UX. A fresh user can trigger a large import before seeing the product, understanding review consequences, or choosing a workspace. -- Researcher trust and Solo Founder setup speed are both affected. - -Correction: - -- Keep the detection signal, but make high-volume import a deliberate secondary choice. -- Add volume-aware copy such as "Review import options" or "Import later from Memory" for large detected histories. -- Preserve the skip path and route users to Memory Harvest after setup. - -### FRO-5: Mobile profile primary action reachability (verified fixed) - -At 390 x 844, the Welcome step fits well. After Continue, the Profile step becomes taller than the viewport and the primary Continue button starts below the visible area. The document itself has no horizontal overflow, but the critical bottom action is not visible without scrolling inside the onboarding content area. - -Evidence: - -- `mobile-01-profile-empty.png` -- Trace out-of-bounds entry: `Continue` button bottom at `880` in an `844` px viewport. -- Current verification update: `J-mobile: first-run onboarding keeps primary actions reachable at 390px width` passed 1/1 on port `34194`. The focused test clears storage, opens `/?forceWizard=true`, advances from Welcome to Profile, asserts the Profile Continue button bottom is within the 844 px viewport, checks visible horizontal overflow, and fails on Clerk/CSP/page errors. - -Impact: - -- The original finding capped Mobile Executive and Solo Founder mobile first-run paths below 9/10. The current focused route evidence closes that specific cap; other first-run trust items remain separate caps. -- This reinforces the mobile supplement lesson: document-level scroll width is insufficient; judge evidence must include visible control bounds and vertical reachability. - -Correction: - -- On mobile, make the onboarding action row sticky within the wizard, reduce vertical density, or split Profile into a lighter first pass plus optional details. -- Ensure the step title, progress, and primary action are visible or clearly reachable at 390 x 844. - -### FRO-6: First-task auto-send briefly leaves the same text in the composer (focused fixed) - -Immediately after `Let's go`, the chat showed the user bubble and active generation while the composer still contained the first-task text. A reopen after 12 seconds showed the composer empty, so this appears transient. - -Current verification update: - -- `ChatApp` now clears the untouched auto-send seed immediately when the first-task send is consumed, before the send promise resolves, and restores it only if send returns `false`. -- `lane-c-input-power.test.tsx` passed 12/12, including the regression that the auto-sent first task clears before the pending send resolves. - -Impact: - -- Not a persistence/data bug, but the handoff can look like a duplicate-send risk during the most important first success moment. - -Correction: - -- Clear or disable the composer immediately when auto-send starts, and show the sent state distinctly. - -## Ticket Updates - -| Finding | Ticket | Phase | Required closure | -|---|---|---:|---| -| FRO-1 first-run Clerk/CSP errors | T1 | 1 | Verified fixed for sampled accountless paths: first-run, initial load, and full-product critical console checks passed 3/3 on port `34196`. | -| FRO-5 mobile onboarding Continue below viewport | T2/T12 | 1 | Verified fixed in current build: 390 x 844 first-run Profile keeps Continue reachable with visible-bounds evidence in `tests/e2e/user-journeys.spec.ts` on port `34194`. | -| FRO-3 stale model gate checking copy | T10/T12 | 2 | Focused fixed: ready model state hides the setup/checking gate and shows `Model ready`. | -| FRO-4 high-volume import CTA risk | T7/T12 | 2 | Focused fixed: large detected histories now require deliberate review/secondary-action copy, with regression coverage in `onboarding-import-step.test.tsx`. | -| FRO-6 transient first-task composer duplicate | T12 | 2 | Focused fixed: auto-send clears the untouched first-task composer seed before the send promise resolves, with failure restore. | - -## Judge Implications - -- Solo Founder: first-run onboarding is now a required screenshot/evidence lane, not optional. Sampled T1 console health, mobile FRO-5, high-volume import CTA risk, model-ready copy, and first-task composer handoff are currently focused fixed. -- Researcher: FRO-4 is now focused fixed for the first-run CTA risk; deeper Harvest review/recovery states still belong in the broader T12/T19 evidence packet. -- Engineer: FRO-1 console health and first-task route evidence remain relevant. -- Team Admin: sampled FRO-1 auth/security noise and FRO-4 first-run import consequence copy are currently fixed; deeper data-review governance still belongs in broader state evidence. -- Mobile Executive: the original FRO-5 blocker is currently closed by the focused 390 x 844 journey; keep it in regression because it is a direct visual/responsive path. - -## Approval Impact - -Phase 1 remains the right first implementation phase, but its T1/T2 verification must include this supplement: - -- T1: keep accountless first-run onboarding console health in regression and add explicit Clerk-enabled state evidence later. -- T2: mobile onboarding Profile primary-action reachability, in addition to mobile Settings. - -No product-code changes are approved by this document. diff --git a/docs/audits/2026-07-08-five-persona-judge-runbook.md b/docs/audits/2026-07-08-five-persona-judge-runbook.md deleted file mode 100644 index d247031..0000000 --- a/docs/audits/2026-07-08-five-persona-judge-runbook.md +++ /dev/null @@ -1,447 +0,0 @@ -# Five-Persona Judge Runbook - 2026-07-08 - -Status: analysis artifact. This is not an implementation plan and does not approve product-code changes. - -Purpose: make the final "five judges score 9/10" gate executable. The existing `tests/vision/personas.spec.ts` is useful evidence for live chat, persistence, screenshots, and cross-persona isolation, but it does not cover the full product UX. This runbook defines the current-source evidence packet required after Phase 1 and any judge-blocking Phase 2/3 items land. - -Companion artifacts: - -- `docs/audits/2026-07-08-five-persona-judge-scorecards.md` -- `docs/audits/2026-07-08-ux-route-scenario-manifest.md` -- `docs/audits/2026-07-08-ux-state-failure-scenario-matrix.md` -- `docs/audits/2026-07-08-ux-correction-register.md` -- `docs/audits/2026-07-08-web-guidelines-line-findings.md` -- `docs/audits/2026-07-08-source-inventory-consistency-audit.md` -- `docs/audits/2026-07-08-state-failure-t12-analysis.md` -- `docs/audits/2026-07-08-mobile-executive-t2-t12-analysis.md` -- `docs/audits/2026-07-08-runtime-a11y-t10-analysis.md` -- `docs/audits/2026-07-08-first-run-onboarding-t1-t2-t12-analysis.md` - -## Hard Preconditions - -Do not treat a judge run as final unless all are true: - -1. T1, T2, T3, T4, T5, and T11 are closed or explicitly reclassified with evidence. -2. T7 trust-critical dialog work is closed for every persona route, or the affected persona is capped below pass. -3. T10 accessibility/form/focus findings that touch judge routes are closed or explicitly deferred with score impact, including shell overlay semantics and close behavior. -4. T12 state bundles are declared for every persona and cross-checked against the focused T12 supplement. -5. Mobile evidence includes visible element-bounds checks for critical controls, first-run onboarding Profile, and selected overlay close proof; document-level overflow alone is insufficient. -6. T13/T14/T15/T16/T17/T18/T19 are either evidenced or explicitly deferred by the user from the five-persona score. -7. The final app run is built from current source on a fresh port and clean data dir unless a return-state scenario intentionally reuses data. -8. Console status is captured from navigation start, not after the page settles. - -## Existing Harness Boundary - -`tests/vision/personas.spec.ts`: - -- Creates five isolated workspaces. -- Sends two chat turns per persona. -- Saves screenshots and JSON under `tests/vision/artifacts/personas`. -- Checks substantive assistant history and no cross-persona prompt leakage. - -It does not prove: - -- Auth/accountless boot quality. -- Home Start Here first-action quality. -- Settings/billing/profile UX. -- Mobile 390 px behavior. -- Command Center, shortcuts, Launcher, MCP, Files, Events. -- Vault, Approvals, backup/restore, Team governance. -- Public launch, desktop wrapper, admin/CLI/MCP utility, hook lifecycle, Browser Companion extension, developer/substrate, or ops gates. - -Conclusion: use `tests/vision/personas.spec.ts` as one evidence source, not as the final judge. - -## Standard Evidence Commands - -Use a fresh port to avoid stale-server evidence: - -```powershell -$env:WAGGLE_E2E_PORT='3397' -$env:WAGGLE_E2E_BASE_URL='http://127.0.0.1:3397' -$env:WAGGLE_E2E_SKIP_LITELLM='1' -$env:WAGGLE_E2E_DATA_DIR="$env:TEMP\\waggle-ux-judge-3397" -$env:WAGGLE_DISABLE_MARKETPLACE_SYNC='1' -$env:EMBEDDING_PROVIDER='mock' -$env:VITE_CLERK_PUBLISHABLE_KEY='' -$env:CLERK_SECRET_KEY='' -``` - -Core verification before screenshots: - -```powershell -npm run typecheck:web -npm run ux:contrast -npm run ux:color-guard -npm run build -node node_modules/playwright/cli.js test tests/e2e/full-product-audit.spec.ts tests/e2e/full-wiring-audit.spec.ts tests/e2e/phase-ab-verification.spec.ts tests/e2e/power-user-stress.spec.ts tests/e2e/user-journeys.spec.ts tests/visual/views.spec.ts --project=chromium --reporter=list -``` - -Optional live-LLM persona evidence: - -```powershell -$env:WAGGLE_E2E_SKIP_LITELLM='0' -node node_modules/playwright/cli.js test tests/vision/personas.spec.ts --project=chromium --reporter=list -``` - -Important: query parameter `?tier=power` controls the UI disclosure tier (`simple`, `professional`, `power`, `admin`) through onboarding state. It is not the billing tier (`FREE`/Solo, `TRIAL`, `TEAMS`, `ENTERPRISE`). Judge evidence must name both separately. - -## Evidence Directory - -Use a timestamped evidence root: - -```text -docs/audits/evidence/2026-07-08-five-persona-judge// -``` - -Required files: - -```text -00-command-log.md -00-console-summary.json -00-route-coverage.md -00-deferrals.md -persona-1-solo-founder/ -persona-2-researcher/ -persona-3-engineer/ -persona-4-team-admin/ -persona-5-mobile-executive/ -score-summary.md -``` - -Each persona folder must contain: - -```text -state-bundle.md -steps.md -screenshots/ -console.json -network.json -route-evidence.md -scorecard.md -blockers.md -``` - -## Score Caps - -Apply caps before subjective scoring: - -| Condition | Cap | -|---|---:| -| Critical console error in persona route | 7/10 | -| Primary route blocked or blank | 6/10 | -| Severe mobile clipping/overflow in mobile persona path | 7/10 | -| First-run onboarding primary action hidden in required mobile path | 7/10 | -| Required overlay opens but cannot close in persona path | 7/10 | -| Required overlay has no accessible name/landmark or unnamed primary icon-only actions | 8/10 | -| Native browser dialog in a trust-critical persona step | 8/10 | -| Critical axe finding in a persona primary route | 8/10 | -| Serious keyboard access finding in a persona primary route | 8/10 | -| Active Pro copy in pricing/billing/gating path | 8/10 | -| Missing route evidence owner for a primary route | 8/10 | -| Missing required state bundle evidence | 8/10 | -| Missing non-main gate decision for relevant T13-T19 path | 8/10 | - -The final goal requires every persona to score at least 9/10, so any active cap below 9 is a blocker. - -## Persona 1: Solo Founder - -State bundle: - -- Account mode: accountless local. -- Billing tier: Solo / `FREE`. -- UI disclosure tier: `simple` first, then `power` only for route evidence if needed. -- Model state: no model recovery and one working-model or skipped-LLM explanation. -- Data state: fresh install, no workspace first, then one created workspace. -- Offline/error state: accountless Clerk/CSP lane. -- Viewports: desktop 1440 x 900 and mobile Home spot-check. - -Route sequence: - -1. `/auth` -2. first-run onboarding or approved skip path -3. `/home` -4. `/workspaces` -5. `/workspaces/:workspaceId/chat` -6. return to `/home` - -Required screenshots: - -- `auth-accountless.png` -- `onboarding-welcome.png` -- `onboarding-profile.png` -- `onboarding-model-gate.png` -- `onboarding-first-task.png` -- `home-start-here.png` -- `workspace-create-or-list.png` -- `first-chat.png` -- `home-return-next-action.png` -- `mobile-home.png` - -Must prove: - -- Home gives a clear next move within 10 seconds. -- No Clerk/CSP console noise in accountless mode. -- Clean-data first-run onboarding reaches the wizard without Clerk/CSP console errors. -- Mobile first-run Profile keeps the primary Continue action visible or clearly reachable if mobile first-run is scored. -- No active Pro copy in the path. -- Memory behavior is honest: no unsupported promise that context will be remembered without evidence. - -Current blockers from the packet: - -- T1, T3, T11. -- T2 if mobile Home/Settings or mobile first-run onboarding are used in the score. - -## Persona 2: Researcher - -State bundle: - -- Account mode: accountless or authenticated, but declared. -- Billing tier: Solo unless Teams feature is intentionally tested. -- UI disclosure tier: `power`. -- Model state: working or skipped-LLM with memory UI focus. -- Data state: populated memory plus empty/no-result state. -- Offline/error state: missing source or failed export path. -- Viewports: desktop 1440 x 900; mobile Memory spot-check if scored. - -Route sequence: - -1. `/memory` -2. memory search/no-results -3. memory provenance/trust detail -4. wiki/timeline/evolution view -5. archive/delete/export confirmation flow -6. `/workspaces/:workspaceId/chat` - -Required screenshots: - -- `memory-overview.png` -- `memory-search-result.png` -- `memory-empty-or-no-results.png` -- `trust-provenance.png` -- `wiki-or-timeline.png` -- `memory-confirmation-modal.png` -- `memory-chat-explanation.png` - -Must prove: - -- Researcher can tell what is stored, where it came from, and how to correct/remove it. -- Delete/export flows do not use native `confirm`/`prompt`. -- Long memory text/titles do not break layout. -- The product does not overclaim memory persistence. - -Current blockers: - -- T5, T7, T10, T11, T12. -- T19 if browser capture is included in the Researcher journey. - -## Persona 3: Engineer / Power User - -State bundle: - -- Account mode: accountless local. -- Billing tier: Solo, plus explicit deferral/evidence for Teams-only surfaces. -- UI disclosure tier: `power` or `admin`. -- Model state: local/no-LLM and one working-provider lane if using chat. -- Data state: at least one workspace, detected or undetected tools, MCP catalog present. -- Offline/error state: marketplace local-only and tool/hook unavailable states. -- Viewports: desktop 1440 x 900; keyboard-only path. - -Route sequence: - -1. `/home` -2. Command Center via `Ctrl+K` -3. `Ctrl+Shift+N` to active workspace chat -4. `/launcher` -5. `/mcps` -6. `/files` -7. `/settings/events` -8. representative CLI/MCP utility evidence if T15 not deferred - -Required screenshots: - -- `command-center.png` -- `shortcut-chat-result.png` -- `launcher-tool-state.png` -- `launcher-hook-state.png` -- `mcp-hub.png` -- `files.png` -- `events-logs.png` -- `keyboard-focus-path.png` - -Must prove: - -- `Ctrl+Shift+N` opens the intended chat route. -- Workspace Switcher does not block unrelated navigation. -- Standard audit avoids live external marketplace dependency. -- Tool and MCP states are explained without broken JSON or secret leakage. - -Current blockers: - -- T4, T6, T10, T11, T15, T16, T17, T18 unless deferred. - -## Persona 4: Team Admin / Security Reviewer - -State bundle: - -- Account mode: authenticated or accountless with billing/admin limitations declared. -- Billing tier: Teams for team/admin surfaces, Solo for gating comparison, legacy Pro collapsed to Solo where relevant. -- UI disclosure tier: `professional` and `admin`. -- Model state: not central unless settings model copy is inspected. -- Data state: vault item, approval grant, backup metadata, team governance state. -- Offline/error state: backup failure or restore failure copy. -- Viewports: desktop 1440 x 900; mobile Settings/Profile spot-check. - -Route sequence: - -1. `/settings` -2. `/settings/vault` -3. `/approvals` -4. backup/restore section -5. `/team` -6. `/payment-success` -7. `/payment-cancelled` -8. admin web evidence if T15 not deferred - -Required screenshots: - -- `settings-billing.png` -- `vault-secret-hidden.png` -- `approvals-list.png` -- `approval-revoke-confirmation.png` -- `backup-create.png` -- `restore-confirmation-result.png` -- `team-governance.png` -- `payment-success.png` -- `payment-cancelled.png` - -Must prove: - -- Active billing copy is Solo/Teams/Enterprise. -- Secret values are not exposed unintentionally. -- Restore/revoke/delete use in-app confirmation and visible result states. -- Checkout success/cancel recovery has a clear next action. - -Current blockers: - -- T3, T7, T10, T11, T13, T14, T15 unless deferred. - -## Persona 5: Mobile Executive - -State bundle: - -- Account mode: accountless local. -- Billing tier: Solo unless Team account view is intentionally sampled. -- UI disclosure tier: `simple`, with `power` as route-discovery comparison only. -- Model state: no-model or verified-model banner must fit. -- Data state: at least one workspace and some memory. -- Offline/error state: overlay close and readable empty/error state. -- Viewport: 390 x 844 primary; optional tablet 1024 x 768. - -Route sequence: - -1. mobile `/home` -2. mobile `/settings` -3. mobile `/settings/profile` -4. mobile `/memory` -5. mobile workspace chat -6. Command Center, Workspace Switcher, Notification Inbox, or Create Workspace open/close, depending on the selected mobile path -7. theme/profile/billing controls - -Required screenshots: - -- `mobile-home.png` -- `mobile-onboarding-welcome.png` -- `mobile-onboarding-profile.png` -- `mobile-settings-general.png` -- `mobile-settings-billing.png` -- `mobile-settings-models.png` -- `mobile-profile.png` -- `mobile-memory.png` -- `mobile-chat.png` -- `mobile-overlay-open.png` -- `mobile-overlay-closed.png` - -Must prove: - -- No horizontal overflow. -- No clipped primary controls. -- First-run Profile primary Continue is visible, sticky, or clearly reachable. -- Critical visible controls stay in-bounds even when document-level scroll width is clean. -- Touch targets and focus states are visible. -- Overlay does not trap scroll/focus after close. -- Required overlays expose an accessible name or landmark and named primary icon-only actions. - -Current blockers: - -- T2, T3, T10, T11, T12, including first-run onboarding evidence. - -## Deferral Rules - -Deferrals are allowed during analysis, but a final 9/10 claim needs the user to explicitly approve them. - -Each deferral must include: - -```text -Ticket: -Surface: -Persona affected: -Reason deferred: -Why it does not affect this score: -Evidence still collected: -Expiry / revisit trigger: -``` - -No implicit deferrals. If a persona journey touches T13-T19 and the gate is not fixed/evidenced, the score remains capped until the user scopes it out. - -## Scorecard Template - -```text -Persona: -Run id: -Date: -Current commit: -Evidence folder: - -State bundle: -- Account mode: -- Billing tier: -- UI disclosure tier: -- Model state: -- Data state: -- Offline/error state: -- Viewport: -- Non-main gate decisions: - -Routes covered: - -Console status: - -Screenshots inspected: - -Score: -- Functional completion /2: -- Flow, IA, discoverability /2: -- Trust, error handling, recovery /2: -- Visual, accessibility, responsive quality /2: -- Performance and polish /1: -- Memory, personalization, domain fit /1: -- Total /10: - -Caps applied: - -Verdict: - -Top corrections: -``` - -## Final Pass Criteria - -The goal is still incomplete until: - -- Five scorecards are filled from current post-fix evidence. -- Every persona total is at least 9/10. -- No score cap below 9 remains active. -- Route manifest rows for judged routes are Strong or explicitly deferred. -- State bundles are attached for all five personas. -- T13/T14/T15/T16/T17/T18/T19 are evidenced or explicitly deferred. -- The correction register has no open P0 and no unapproved judge-blocking P1. diff --git a/docs/audits/2026-07-08-five-persona-judge-scorecards.md b/docs/audits/2026-07-08-five-persona-judge-scorecards.md deleted file mode 100644 index 05257c7..0000000 --- a/docs/audits/2026-07-08-five-persona-judge-scorecards.md +++ /dev/null @@ -1,514 +0,0 @@ -# Five-Persona UX Judge Scorecards - -Companion artifacts: - -- `docs/audits/2026-07-08-complete-ux-usage-audit.md` -- `docs/audits/2026-07-08-ux-route-scenario-manifest.md` -- `docs/audits/2026-07-08-ux-state-failure-scenario-matrix.md` -- `docs/audits/2026-07-08-ux-non-main-surface-scope.md` -- `docs/audits/2026-07-08-ux-correction-register.md` -- `docs/audits/2026-07-08-five-persona-judge-runbook.md` -- `docs/audits/2026-07-08-source-inventory-consistency-audit.md` -- `docs/audits/2026-07-08-state-failure-t12-analysis.md` -- `docs/audits/2026-07-08-mobile-executive-t2-t12-analysis.md` -- `docs/audits/2026-07-08-runtime-a11y-t10-analysis.md` -- `docs/audits/2026-07-08-first-run-onboarding-t1-t2-t12-analysis.md` -- `docs/superpowers/plans/2026-07-08-ux-phase-1-corrections.md` - -Purpose: define the final judge gate before any claim that Waggle OS is 9/10 across five personas. These scorecards extend the existing `tests/vision/personas.spec.ts` harness. That harness proves live persona chat, persistence, screenshots, and no cross-persona prompt leakage; it does not yet score the full route/UX rubric. - -Final status (2026-07-13): the fixed-rubric in-product judge run is complete. All five personas score at least 9/10 with no score cap triggered. The historical pre-fix findings and table below are retained as the audit trail; the final table at the end of this document supersedes them. Public launch availability is reported separately and is not silently counted as passing: `waggle-os.ai` is currently unresolved, and signed production distribution plus credential-dependent external-provider smokes remain release gates. - -Execution protocol: use `docs/audits/2026-07-08-five-persona-judge-runbook.md` after the blocking tickets are fixed or explicitly deferred. The runbook is the authoritative checklist for state bundles, screenshots, score caps, and deferral records. - -Phase 1 status update: the approved Phase 1 implementation is complete and verified. The standard cockpit lane now has clean accountless Clerk/CSP behavior, passing mobile Settings and mobile first-run onboarding checks, active Solo/Teams/Enterprise copy cleanup, passing `Ctrl+Shift+N` and Workspace Switcher route behavior, updated visual baselines, and codified thin-route evidence. The full combined browser gate passed 156/156 on port `34150`. Phase 2 has started with partial overlay fixes: Notification Inbox and Create Workspace primary/subdialog contracts now have named dialog/close coverage, custom-template delete uses an in-app confirmation, the sampled 390 x 844 Create Workspace hierarchy prioritizes required setup before optional templates, Context Rail has a labelled complementary contract, Onboarding Tooltips has an explicit non-modal Escape-dismiss contract, and tier-modal close labels are named. These remove some overlay caps, but the final 9/10 gate is still blocked by remaining trust-critical dialogs, screenshot/state refresh, broader runtime accessibility, and T13-T19 non-main evidence unless those are fixed or explicitly deferred. - -## Non-Negotiable Gate - -Do not run the final scoring pass until all are true: - -1. No open P0 findings in the main audit. -2. Phase 1 verification lane passes or has explicitly approved visual baseline updates. Current status: passed 156/156 in the combined browser gate on 2026-07-08. -3. Route manifest has an evidence owner for every registered route and major overlay. -4. State/failure matrix has an evidence owner or approved deferral for each persona's required state bundle. -5. Standard browser lane has zero critical app/auth/CSP console errors. -6. Mobile Settings, first-run onboarding Profile, billing/profile, Home, Memory, Chat, and the selected overlay path have current 390 px screenshots plus visible element-bounds checks; focused Create Workspace bounds now pass, but document-level overflow alone is not enough. -7. No active user-facing Pro upgrade copy remains outside explicit legacy billing servicing. -8. Trust-critical destructive flows use in-app confirmation/result states. -9. Runtime T10 axe/DOM findings and shell-overlay semantics/close findings on judge routes are fixed or explicitly capped/deferred. -10. Public launch funnel, desktop wrapper, utility, hook, Browser Companion extension, developer/substrate, ops/deployment, CI, benchmark, and judging gates have evidence, or the user explicitly defers T13/T14/T15/T16/T17/T18/T19 from the five-persona score. - -If any item fails, judges can still provide feedback, but their score is advisory and cannot satisfy the goal. - -## Scoring Model - -Each persona scores 10 points: - -| Dimension | Points | Judge asks | -|---|---:|---| -| Functional completion | 2 | Did the route/flow complete without broken state, dead end, or hidden dependency? | -| Flow, IA, and discoverability | 2 | Did the next action feel obvious without reading docs? Was the route in the right place? | -| Trust, error handling, and recovery | 2 | Were permissions, data consequences, pricing, model state, and recovery clear? | -| Visual, accessibility, and responsive quality | 2 | Did it feel designed, readable, keyboardable, and usable on required viewport(s)? | -| Performance and polish | 1 | Did it load and respond with no distracting lag, flicker, warnings, or noisy states? | -| Memory, personalization, and domain fit | 1 | Did Waggle remember/use context in a way that made the experience meaningfully better? | - -Pass rules: - -- Every persona must score at least 9/10. -- No dimension may score below 8/10 when normalized to a 10-point scale. -- Any critical console error caps the affected persona at 7/10. -- Any blocked primary route caps the affected persona at 6/10. -- Any severe mobile clipping/overflow in a required mobile journey caps the affected persona at 7/10. -- Any selected overlay that opens but cannot close in the required persona path caps the affected persona at 7/10. -- Any selected overlay with no accessible name/landmark or unnamed primary icon-only actions caps the affected persona at 8/10 unless explicitly deferred. -- Native browser dialog in a trust-critical step caps that persona at 8/10. -- Critical axe finding in a persona primary route caps that persona at 8/10; serious keyboard access findings cap at 8/10 unless explicitly deferred from that persona's route. - -Evidence required for every scorecard: - -- Route list covered. -- State bundle covered: account mode, billing tier, disclosure tier, model state, data state, offline/error state, and viewport. -- T12 focused supplement checked for current state-slice evidence, native-dialog caps, and persona bundle corrections. -- First-run onboarding supplement checked for clean-data console health, mobile Profile bounds, import consequence clarity, and first-task handoff behavior. -- Non-main gate decision: T13/T14/T15/T16/T17/T18/T19 evidence attached or explicitly deferred. -- Evidence folder from the judge runbook. -- Screenshots inspected. -- Console status. -- Failing or flaky tests relevant to the persona. -- Score per dimension. -- Free-text verdict: pass, advisory pass, fail. -- Top 3 remaining corrections, if any. - -## Persona 1: Solo Founder - -Profile: - -- Maya, solo founder, pre-revenue, 4 months runway. -- Wants one clear next move and hates re-explaining context. -- Low patience for setup friction. - -State bundle to capture: - -- Account mode: accountless local. -- Billing tier: Solo / `FREE`. -- UI disclosure tier: `simple` first; `power` only for route evidence if needed. -- Model state: no-model recovery plus working-model or skipped-LLM explanation. -- Data state: fresh install, no workspace first, then one created workspace. -- Offline/error state: accountless Clerk/CSP lane. -- Viewport: desktop 1440 x 900 plus mobile Home/Profile spot-check. -- Non-main gate decisions: T13/T14 deferred or evidenced if launch/desktop flows enter this score. - -Primary journey: - -1. Start from `/auth` in accountless local-first mode. -2. Complete or bypass first-run onboarding. -3. Land on `/home`. -4. Use Home Start Here to open or create a workspace. -5. Send first chat asking for this week's one focus. -6. Add runway constraint and verify Waggle can reuse that context. -7. Return to Home and see a logical next action. - -Required routes and overlays: - -- `/auth` -- Onboarding Wizard -- `/home` -- `/workspaces` -- `/workspaces/:workspaceId/chat` -- Settings model gate or model setup affordance -- Workspace Switcher if no workspace exists - -Evidence to collect: - -- Desktop screenshots: auth/accountless, clean-data onboarding steps, Home, workspace chat, returned Home. -- Mobile screenshots: first-run Welcome and Profile at 390 x 844, with primary action bounds checked. -- Console summary: no Clerk/CSP errors in accountless mode. -- Transcript artifact showing context persistence or clear explanation of memory behavior. -- Route manifest rows for Auth, Home, Workspaces, Workspace. - -Automatic fail triggers: - -- Accountless local mode shows Clerk load errors. -- First-run onboarding emits Clerk/CSP console errors. -- Mobile onboarding hides the primary action in the first-run Profile step when mobile is in scope. -- First useful action is unclear from Home. -- Chat cannot accept first message or silently depends on unavailable LLM. -- Pro copy appears in the journey. - -Corrections that must land before this judge can pass: - -- T1 local auth/CSP/accountless health is closed for the standard accountless lane. -- T2 first-run mobile onboarding primary-action reachability is closed for the codified 390 px check. -- T3 Solo/Teams/Enterprise copy cleanup is closed for active Phase 1 surfaces. -- T4 shortcut/workspace context is closed for the codified `Ctrl+Shift+N` lane. -- T11 route evidence owner is closed for the Phase 1 thin-route shell smoke; deeper state evidence remains. - -Expected 9/10 behavior: - -- Maya understands what to do within 10 seconds of landing on Home. -- The app helps her move from broad anxiety to one concrete workspace/chat action. -- Memory behavior is honest and useful, not vague marketing copy. - -## Persona 2: Researcher - -Profile: - -- Chen, meticulous researcher validating persistent memory and provenance. -- Wants evidence, not vibes. -- Tolerates density if the information architecture is trustworthy. - -State bundle to capture: - -- Account mode: accountless or authenticated, but declared. -- Billing tier: Solo unless Teams memory/governance is intentionally tested. -- UI disclosure tier: `power`. -- Model state: working or skipped-LLM with memory UI focus. -- Data state: populated memory plus empty/no-result state, including sampled slow Memory, large Memory, and Timeline/Event states. -- Offline/error state: missing source, failed export, or trust/destructive recovery path. -- Viewport: desktop 1440 x 900; mobile Memory spot-check if scored. -- Non-main gate decisions: T19 evidenced or explicitly deferred if browser capture enters this score. - -Primary journey: - -1. Open `/memory`. -2. Search memory or inspect available memory records. -3. Open memory trust/provenance detail. -4. Visit wiki/timeline/evolution-related views. -5. Attempt export or delete/archive trust flow. -6. Return to chat and ask whether memory is durable versus long context. - -Required routes and overlays: - -- `/memory/:mindScope?` -- Memory trust/manage overlays -- Wiki tab -- Timeline/evolution tabs or `/settings/timeline` -- Workspace chat -- Native prompt replacements for wiki/export/delete - -Evidence to collect: - -- Screenshots: Memory overview, search result, trust/provenance detail, wiki/timeline state, confirmation modal. -- Console summary. -- Transcript or UI text explaining memory mechanism honestly. -- Route manifest rows for Memory and Timeline. -- Current partial evidence: Artifact permanent delete, Memory Center delete/GDPR erase/allow re-import, and Wiki Obsidian/Notion exports now have component coverage and rendered `J3e`/`J3f`/`J3g` evidence for in-app confirmations/forms. The five-persona bundle also covers `memory-slow-list` with a delayed Memory API and loading status, `memory-large-list` with 200 mocked memories, `timeline-large-events` with 360 mocked events, and `wiki-export-obsidian-failure` with branded `Export Failed` copy after a mocked `500`. - -Automatic fail triggers: - -- Broader Notion/export variants remain open; Artifact permanent delete, Memory Center delete/erase/re-import, Wiki export destinations, and one rendered Wiki export-failure path are fixed for the sampled paths. -- Search/provenance route shows blank or unexplained empty state. -- Long memory titles break layout. -- App implies memory is magic without explaining limits. - -Corrections that must land before this judge can pass: - -- T5 approved baseline update for Memory after the fresh classification note. -- T7 trust-critical dialogs. -- T10 form/accessibility hygiene where memory forms are touched. -- T11 route evidence owner. - -Expected 9/10 behavior: - -- Chen can understand what is stored, why it is trusted, where it came from, and how to correct/remove it. -- Empty states and provenance states are credible, not decorative. - -## Persona 3: Engineer / Power User - -Profile: - -- Sam, senior engineer and agent wrangler. -- Wants keyboard speed, tool clarity, logs, and proof the product is not a chatbot wrapper. -- Low tolerance for flaky tests or hidden network dependency. - -State bundle to capture: - -- Account mode: accountless local. -- Billing tier: Solo, with Teams-only surfaces evidenced or deferred. -- UI disclosure tier: `power` or `admin`. -- Model state: local/no-LLM plus working-provider lane if chat is scored. -- Data state: one workspace, detected or undetected tools, MCP catalog present. -- Offline/error state: marketplace local-only, delayed/large Agents roster, and tool/hook unavailable states. -- Viewport: desktop 1440 x 900 plus keyboard-only path. -- Non-main gate decisions: T15/T16/T17/T18 evidenced or explicitly deferred for utility, hook, developer, and ops surfaces. - -Primary journey: - -1. Start on `/home`. -2. Open Command Center with `Ctrl+K` and navigate to an app. -3. Use `Ctrl+Shift+N` to open active workspace chat. -4. Open `/launcher` and verify tool/hook state. -5. Open `/mcps`, inspect installed/custom MCP server flows. -6. Open `/files` and inspect file actions. -7. Open `/settings/events` for logs. - -Required routes and overlays: - -- Command Center -- `/workspaces/:workspaceId/chat` -- `/launcher` -- `/mcps` -- `/files` -- `/settings/events` -- Workspace Switcher - -Evidence to collect: - -- Screenshots: Command Center search, chat after shortcut, Launcher, MCP Hub, Files, Events. -- Keyboard interaction log for `Ctrl+K`, `Ctrl+Shift+N`, Escape close. -- Console summary. -- Route manifest rows for Launcher, MCP Hub, Files, Events. -- Codified route smoke evidence: `J-route-coverage: priority thin routes render meaningful shells` passed for `/launcher`, `/launcher?watch=1`, `/mcps`, and `/files` on 2026-07-08. - -Automatic fail triggers: - -- `Ctrl+Shift+N` does not open the expected chat route. -- Workspace Switcher blocks unrelated navigation. -- Marketplace/MCP/Launcher depends on live external sync in the standard audit lane. -- Tool output renders broken JSON or unexplained fallback. - -Corrections that must land before this judge can pass: - -- T4 shortcut and Workspace Switcher route contract is closed for the standard browser lane. -- T6 marketplace determinism. -- T8 performance and payload polish if startup feels heavy. -- T11 route coverage for Launcher/MCP/files has shell-level smoke coverage; keep deeper hook/MCP/file interaction states in Sam's evidence bundle. -- T16 hook lifecycle if Launcher/tool management is included in Sam's final score. - -Current partial evidence: the five-persona bundle covers `agents-slow-list` with a delayed `/api/agents` response, aria-busy `Loading agents` status, and final `40 agents` plus `Bulk Agent 000` roster proof; it also covers `agents-large-list` with 180 mocked agents and 0 visible overflow. These are accountless/no-LLM sampled state proofs, not substitutes for packaged hook lifecycle or authenticated Team evidence. - -Expected 9/10 behavior: - -- Sam can operate primarily by keyboard, sees real tool/hook state, and trusts logs/error states. -- The product feels like an agent OS, not a pile of screens. - -## Persona 4: Team Admin / Security Reviewer - -Profile: - -- Priya, nontechnical but accountable team/product admin. -- Needs plain language, billing confidence, governance, vault, backup, approvals. -- Cares about not breaking data or exposing secrets. - -State bundle to capture: - -- Account mode: authenticated, or accountless with mocked Teams-tier billing/admin state and limitations declared. -- Billing tier: Teams for team/admin surfaces, Solo for gating comparison, legacy Pro collapsed to Solo where relevant; real Team server membership must be evidenced or deferred separately. -- UI disclosure tier: `professional` and `admin`. -- Model state: not central unless Settings model copy is inspected. -- Data state: vault item, approval grant, backup metadata, team governance state, and unlocked Team settings state. -- Offline/error state: backup failure, restore failure, and checkout recovery copy. -- Viewport: desktop 1440 x 900 plus mobile Settings/Profile spot-check. -- Non-main gate decisions: T13/T14/T15 evidenced or explicitly deferred for launch, desktop, and admin/utility paths. - -Primary journey: - -1. Open `/settings` billing/general/model sections. -2. Visit `/settings/vault`. -3. Add or inspect a secret without revealing value. -4. Visit `/approvals` and review/revoke grants. -5. Use backup create/restore flow. -6. Visit `/team` governance. -7. Exercise payment success and payment cancelled recovery. - -Required routes and overlays: - -- `/settings` -- `/settings/vault` -- `/approvals` -- Backup section in Settings or Backup app surface -- `/team` -- `/payment-success` -- `/payment-cancelled` -- Erase Data dialog if destructive data flow is inspected - -Evidence to collect: - -- Screenshots: billing copy, active Team billing state, unlocked Team settings state, vault, approval list, backup flow, team governance, payment success/cancelled recovery. -- Console summary. -- Copy scan: no active Pro upgrade language except explicit legacy billing state. -- Confirmation/result-state screenshots for restore/revoke/delete. -- Current partial evidence: Approvals revoke-all now has component coverage, rendered `/approvals` `J3d` evidence for an in-app confirmation, and five-persona Team Admin bundle evidence via `approvals-revoke-all-grants`; Artifact permanent delete also has rendered `J3e` evidence; Settings telemetry clear/backup failure/restore success have `settings-trust.test.tsx` and rendered `J3h` evidence; standalone `BackupApp` restore, Automation delete, compliance template delete, and admin-web member removal have focused component evidence. The five-persona Team Admin bundle now covers `approvals-revoke-all-grants`, `billing-team-active-state` with mocked `TEAMS` tier and visible `Waggle Team` / `$49/mo per seat` / `Manage subscription` copy, `team-settings-unlocked-state` with visible Team Server URL/Auth Token/trust-warning copy, `billing-checkout-success-return` with a mocked Team checkout sync, `billing-checkout-cancel-return` with visible `Checkout was cancelled` / `No charge was made` recovery copy, `billing-checkout-unavailable`, `backup-create-failure`, and `backup-restore-failure`, with 0 critical console/page/network failures and 0 visible overflow. Current high-confidence production native-dialog scan is clean. -- Codified route smoke evidence: `J-route-coverage` passed for `/payment-success` and `/payment-cancelled`, including redirect to `/settings?tab=billing`, on 2026-07-08; the refreshed route smoke on 2026-07-09 still passes after adding the `checkout=cancelled` marker. - -Automatic fail triggers: - -- Billing copy says Pro as an active tier. -- Secret values are exposed unintentionally. -- Current known production native dialog scan is clean; remaining risk is uncodified less-common destructive paths, failure-state depth, and focus/keyboard proof rather than known browser-native alert/confirm calls. -- Payment cancelled lacks visible no-charge recovery copy. - -Corrections that must land before this judge can pass: - -- T3 pricing/gating copy. -- T7 trust-critical dialogs. -- T10 form/accessibility hygiene. -- T11 route coverage and the five-persona Team Admin bundle now cover payment cancelled, payment success return, mocked active Team billing, and unlocked Team settings states; real authenticated Team server/admin states still need persona screenshots or deferral. - -Expected 9/10 behavior: - -- Priya can tell what plan she is on, what actions are risky, and what happened after each admin action. -- The interface feels safe, not scary. - -## Persona 5: Mobile Executive - -Profile: - -- Mobile or tablet user checking status between meetings. -- Does not want to configure everything, but needs Home, Settings, Memory, billing/profile, and theme to work. -- Sensitive to clipping, tiny targets, and scroll traps. - -State bundle to capture: - -- Account mode: accountless local. -- Billing tier: Solo unless Team account view is intentionally sampled. -- UI disclosure tier: `simple`, with `power` only as a route-discovery comparison. -- Model state: no-model or verified-model banner must fit. -- Data state: at least one workspace and some memory. -- Offline/error state: overlay close plus readable empty/error state. -- Viewport: 390 x 844 primary; optional tablet 1024 x 768. -- Non-main gate decisions: T13/T14/T19 deferred or evidenced if launch, desktop, or browser-capture flows enter this mobile score. - -Primary journey: - -1. Set viewport to 390 x 844. -2. Open `/home`. -3. Open `/settings`. -4. Inspect billing/general/model/profile areas. -5. Open `/settings/profile`. -6. Open `/memory`. -7. Open workspace chat and send or type a short message. -8. Open Command Center or Workspace Switcher and close it with keyboard/touch equivalent. - -Required routes and overlays: - -- Mobile `/home` -- Mobile `/settings` -- Mobile `/settings/profile` -- Mobile `/memory` -- Mobile workspace chat -- Command Center or Workspace Switcher -- Billing/profile/theme controls - -Evidence to collect: - -- Mobile screenshots for every route above. -- Mobile first-run onboarding Welcome/Profile screenshots if the persona starts from a clean install. -- Horizontal overflow check. -- Critical visible control bounds check, because the fresh mobile smoke found clipped controls without document-level overflow. -- Focus/keyboard/touch target notes. -- Console summary. - -Automatic fail triggers: - -- Settings remains squeezed two-pane layout at 390 px. -- First-run onboarding hides the primary Continue action on the Profile step. -- Any primary billing/profile/model control is clipped or unreachable. -- Overlay traps scroll/focus. -- Selected overlay cannot close by keyboard/touch path. -- Selected overlay lacks an accessible name/landmark or leaves primary icon-only controls unnamed. Current update: Notification Inbox, Create Workspace primary/subdialog contracts, Context Rail, Onboarding Tooltips, and tier close controls have focused contract coverage; less common rendered states still need evidence. -- Create Workspace returns to a template-first mobile hierarchy in any judged path not covered by the focused 390 x 844 evidence. -- Text overlaps or becomes unreadable. - -Corrections that must land before this judge can pass: - -- T2 mobile Settings responsive layout is closed for general, models, billing, and profile in the codified 390 px check. -- T2 first-run onboarding responsive layout is closed for the codified mobile Profile reachability check. -- T3 pricing/gating copy is closed for active Phase 1 surfaces. -- T10 form/accessibility hygiene. Current update: core shell overlay semantics and sampled Create Workspace mobile hierarchy are partially fixed; broader T10 remains open. -- T11 mobile route evidence. -- T12 mobile state bundle, including selected overlay close evidence. - -Expected 9/10 behavior: - -- The app feels intentionally responsive, not merely shrunken. -- Mobile user can inspect and make small changes without fighting layout. - -## Judge Run Protocol - -Preparation: - -1. Build the app from current source. -2. Start a fresh-port local server with clean data unless testing return-state memory. -3. Run standard verification from the main audit. -4. Run or update route manifest evidence. -5. Capture required screenshots per persona. -6. Run `tests/vision/personas.spec.ts` only in a real-LLM lane, because it is not a no-LLM smoke test. - -Scoring: - -1. Fill the score table for one persona at a time. -2. Record exact blockers and route evidence. -3. Apply score caps before subjective scoring. -4. If a persona scores below 9, create a correction item or map it to an existing T-ticket. -5. Do not average away failures; all five must pass. - -Suggested output table: - -| Persona | Functional /2 | Flow /2 | Trust /2 | Visual+A11y /2 | Perf /1 | Memory fit /1 | Total | Verdict | Blockers | -|---|---:|---:|---:|---:|---:|---:|---:|---|---| -| Solo founder | Not Run | Not Run | Blocked | Not Run | Not Run | Not Run | Not Run | Pre-fix blocked | P0-1, P0-3 | -| Researcher | Not Run | Not Run | Blocked | Blocked | Not Run | Not Run | Not Run | Pre-fix blocked | P0-4, P1-1 | -| Engineer | Blocked | Blocked | Not Run | Not Run | Not Run | Not Run | Not Run | Pre-fix blocked | P0-5, P0-6 | -| Team admin | Not Run | Not Run | Blocked | Not Run | Not Run | Not Run | Not Run | Pre-fix blocked | P0-1, P0-3, P1-1 | -| Mobile executive | Not Run | Not Run | Not Run | Blocked | Not Run | Not Run | Not Run | Pre-fix blocked | P0-2, P0-7 | - -## Implementation Backlog Mapping - -| Scorecard blocker | Main ticket | -|---|---| -| Accountless Clerk/CSP console errors | T1 | -| Mobile Settings squeezed/clipped | T2 | -| Mobile first-run onboarding primary action hidden | T2/T12 | -| Pro copy in active flows | T3 | -| `Ctrl+Shift+N` mismatch and overlay trap | T4 | -| Visual baselines classified as stale but not approved/updated | T5 | -| Marketplace live sync and flaky search | T6 | -| Native confirm/alert/prompt | T7 | -| Heavy initial payload or delayed first meaningful UI | T8 | -| Unknown local model cost semantics | T9 | -| Labels/focus/icon-only buttons/noisy warnings | T10 | -| Thin route coverage and judge harness gaps | T11 | -| Missing state/failure bundle declaration | T12 | -| Shell overlay semantics, close behavior, and Create Workspace mobile hierarchy | T10/T12 | -| Canonical launch domains do not resolve; download has no releases; checkout, legal, and deploy gates remain open despite fresh localhost rendered evidence | T13 | -| Desktop wrapper tray source is narrowed, but packaged tray, installer, update, and sidecar startup evidence is still missing | T14 | -| Admin web, CLI launcher, Waggle CLI, legacy memory MCP, and hive-mind CLI still have blocking rendered/admin and built-entry issues; marketplace CLI first-command path is locally fixed | T15 | -| AI-tool hook lifecycle has partial rendered Launcher evidence but still lacks real-tool/package invocation proof and clear result/unsupported-output UX | T16 | -| Developer API, background worker, and substrate verification evidence missing | T17 | -| Ops, deployment, CI, benchmark, and judging evidence missing | T18 | -| Browser Companion auth/background save, popup keyboard/focus/Enter save, direct Save page click, restricted-page disabled-state recovery, stable packaged-ID pairing, Memory search provenance, existing chat `auto_recall`/catch-up provenance, and rendered Memory UI after secure save are live-proven, but native toolbar-bubble/native context-menu proof remains incomplete; future recall result shapes need evidence if scored | T19 | - -## Final Judge Run - 2026-07-13 - -This table scores the product UX itself. Each persona used a declared account, -billing, disclosure, model, data, failure, and viewport state bundle. Captures -waited for visible accessible loaders and route-specific legacy loading labels -to settle, and animations were disabled for deterministic inspection. - -| Persona | Functional /2 | Flow /2 | Trust /2 | Visual+A11y /2 | Perf /1 | Memory fit /1 | Total | Verdict | Blocking corrections | -|---|---:|---:|---:|---:|---:|---:|---:|---|---| -| Solo founder | 1.9 | 1.9 | 1.8 | 1.9 | 0.9 | 1.0 | **9.4** | Pass | None in scored lane | -| Researcher | 1.9 | 1.8 | 2.0 | 1.9 | 0.9 | 1.0 | **9.5** | Pass | None in scored lane | -| Engineer / power user | 1.9 | 1.8 | 1.9 | 1.9 | 0.9 | 0.9 | **9.3** | Pass | None in scored lane | -| Team admin / security reviewer | 1.8 | 1.8 | 2.0 | 1.8 | 0.9 | 0.8 | **9.1** | Pass | None in scored lane | -| Mobile executive | 1.9 | 1.9 | 1.8 | 1.9 | 0.9 | 0.9 | **9.3** | Pass | None in scored lane | - -Pass-rule checks: - -- Lowest persona total: 9.1/10. -- Lowest normalized dimension: 8/10. -- Critical console errors: 0 across all five bundles. -- Page errors: 0 across all five bundles. -- Unexpected critical network failures: 0 across all five bundles. -- Visible horizontal overflow findings: 0 across route, failure, and overlay captures. -- Score caps triggered: none. - -The five bundles exercise 15 primary route states, 25 failure/slow/large-data -states, and 3 selected overlays. The run passed 5/5 in Chromium. Representative -screenshots were inspected after the run, including settled Home, Memory, -Launcher, Approvals, mobile Settings, and mobile Command Center states. - -The detailed current-head evidence and release boundary are recorded in -`docs/audits/2026-07-13-final-goal-verification.md`. diff --git a/docs/audits/2026-07-08-launch-funnel-t13-analysis.md b/docs/audits/2026-07-08-launch-funnel-t13-analysis.md deleted file mode 100644 index ea103c8..0000000 --- a/docs/audits/2026-07-08-launch-funnel-t13-analysis.md +++ /dev/null @@ -1,360 +0,0 @@ -# T13 Public Launch Funnel UX Analysis - -Status: focused local fixes implemented for signed-out checkout continuation, checkout cancel recovery, the public-site hydration issue badge, legal placeholder/stale-tier copy, the empty-release download dead-end, mobile download label honesty, and the public-site deployment workflow target. Canonical DNS, real signed installer publication, deployed Vercel/DNS proof, deployed Clerk/Stripe proof, and formal legal sign-off remain open launch gates. - -Scope: `apps/www`, public download, public pricing, auth handoff, Stripe checkout handoff, checkout cancel recovery, account redirect, legal/trust pages, and launch deployment. - -## Why This Matters - -The installed cockpit can score well and still fail the complete-product UX goal if a founder, buyer, reviewer, or mobile executive cannot get from the public site to a trustworthy download, account, or checkout path. T13 therefore remains a final-product gate unless the user explicitly scopes the public launch funnel out of the five-persona score. - -## Current Evidence - -| Check | Result | Notes | -|---|---|---| -| `npm run test -w apps/www -- --reporter=dot` | Pass | Current focused coverage is 7 files / 19 tests: `BrandPersonasCard`, Pricing checkout links/recovery, Stripe checkout route cancel URL, layout hydration contract, legal launch-copy guard, controlled download path, mobile/desktop download label detection, and public-site deployment workflow guard. | -| `npx tsc --noEmit --project apps/www/tsconfig.json` | Pass | No TypeScript errors. | -| `npm run build:www` | Pass | Next.js 15.5.18 build succeeds. Routes include static public pages plus dynamic `/account`, `/api/stripe/checkout`, `/api/webhooks/stripe`, `/sign-in`, and `/sign-up`. Build warns that the Next.js ESLint plugin is not detected. | -| Build/deploy artifact shape | Improved locally | `Test-Path apps/www/dist` = `False`; `Test-Path apps/www/.next` = `True`; `Test-Path apps/www/out` = `False`. `.github/workflows/deploy-www.yml` now uses Vercel production `pull`, `build`, and `deploy --prebuilt --prod` instead of GitHub Pages static artifact upload. Deployed Vercel/DNS proof remains open. | -| Live public domain smoke | Fail | Current external refresh on 2026-07-08: all checked `https://waggle-os.ai/*` URLs failed DNS resolution from this environment; `nslookup waggle-os.ai` returned `Non-existent domain`. | -| Local prod route/API smoke | Improved | Current post-fix `next start --hostname localhost --port 34205` returned 200 for `/`, `/?checkout=cancelled`, and `/docs/methodology`; signed-out `GET /api/stripe/checkout?tier=teams&billing=monthly` returned 303 to sign-in with a checkout redirect target. Historical `/pricing?checkout=cancelled` remains a non-route, but the app no longer emits it from Stripe cancel recovery. | -| Signed-out checkout API/UI smoke | Improved | Pricing now uses the canonical GET checkout route instead of POST, so signed-out users enter the route's auth redirect flow. POST remains a backward-compat JSON shim for older clients. | -| Download target | Improved | Public Download CTAs and footer Product > Download now route to `/download`, a controlled status page that explains Windows/macOS installers are being prepared and links to source/contact instead of an empty GitHub Releases page. Mobile/tablet OS detection now keeps CTAs generic instead of labeling iOS/Android as desktop installers. The release workflow now builds packages before Windows/macOS sidecar packaging, but real signed installer publication remains open. Current production smoke returned 200 for `/download` and found no `releases/latest` target in `/` or `/download`. | -| Fresh rendered Browser smoke | Improved | In-app Browser verified `http://localhost:34204/?checkout=cancelled#pricing`: pricing rendered, cancelled-checkout recovery notice appeared, monthly Team CTA and retry link used `/api/stripe/checkout?tier=teams&billing=monthly`, annual toggle updated both links to annual, the Next dev issue badge disappeared after the layout fix, and console warnings/errors were empty. Browser DOM snapshot still failed with the known `incrementalAriaSnapshot` mismatch, so evidence used targeted DOM evaluation plus screenshots. | -| Web Interface Guidelines lens | Mixed | Latest guideline source checked on 2026-07-08: . Public page has skip link, focus-visible outline, reduced-motion handling, semantic sections, explicit image dimensions in key inspected paths, fixed checkout recovery next steps, and guarded legal placeholder copy. Download/release truth, deployed checkout proof, and formal legal sign-off remain outside the local UI copy fix. | - -Local smoke output summary: - -```text -/ -> 200 -/#pricing -> 200 -/privacy -> 200 -/terms -> 200 -/cookies -> 200 -/eu-ai-act -> 200 -/sign-in -> 200 -/sign-up -> 200 -/docs/methodology -> 200 -/account -> 307 location=/sign-in -/pricing?checkout=cancelled -> 404 -/methodology -> 404 -GET checkout signed-out -> 303 location=http://localhost:3426/sign-in?redirect_url=%2Fapi%2Fstripe%2Fcheckout%3Ftier%3Dteams%26billing%3Dmonthly -POST checkout signed-out -> 401 body={"message":"Sign in required","signInUrl":"http://localhost:3426/sign-in?redirect_url=%2Fapi%2Fstripe%2Fcheckout%3Ftier%3Dteams%26billing%3Dmonthly"} -``` - -Live external refresh summary: - -```text -https://waggle-os.ai/ -> DNS resolution failed -https://waggle-os.ai/#pricing -> DNS resolution failed -https://waggle-os.ai/pricing?checkout=cancelled -> DNS resolution failed -https://waggle-os.ai/docs/methodology -> DNS resolution failed -https://waggle-os.ai/privacy -> DNS resolution failed -https://waggle-os.ai/terms -> DNS resolution failed -https://waggle-os.ai/cookies -> DNS resolution failed -https://waggle-os.ai/eu-ai-act -> DNS resolution failed -https://waggle-os.ai/sign-in -> DNS resolution failed -https://waggle-os.ai/sign-up -> DNS resolution failed -https://waggle-os.ai/account -> DNS resolution failed -https://api.github.com/repos/marolinik/waggle-os/releases/latest -> 404 -https://api.github.com/repos/marolinik/waggle-os/releases -> [] -``` - -Rendered Browser smoke summary: - -```text -Build: npm run build:www -> pass; .next dynamic app generated, Next ESLint plugin warning remains -Server: npm run start -w apps/www -- --hostname localhost --port 3491 -Browser page identity: http://localhost:3491/ -> title "Waggle — The AI workspace that remembers" -Console health: homepage 0 warnings/errors; pricing checkout-error state 0; mobile menu state 0 -Desktop screenshot: output/playwright/www-t13-3491/www-t13-home-desktop.png -Pricing screenshot: output/playwright/www-t13-3491/www-t13-pricing-checkout-error-desktop.png -Mobile screenshots: output/playwright/www-t13-3491/www-t13-home-mobile.png and www-t13-mobile-menu-open.png -Summary JSON: output/playwright/www-t13-3491/www-t13-rendered-summary.json -/pricing?checkout=cancelled -> 404 -/methodology -> 404 -/docs/methodology -> rendered -Signed-out pricing CTA -> stays on / and shows only "Sign in required" -GET checkout monthly/annual -> 303 to /sign-in with redirect_url -Download CTAs -> https://github.com/marolinik/waggle-os/releases/latest -External refresh: waggle-os.ai and www.waggle-os.ai NXDOMAIN; GitHub latest release 404; releases list [] -``` - -Post-fix focused evidence: - -```text -Pricing route contract: - npm run test -w apps/www -- __tests__/Pricing.test.tsx __tests__/stripe-checkout-route.test.ts --reporter=dot - -> 2 files / 3 tests passed - -Hydration contract: - npm run test -w apps/www -- __tests__/layout.test.tsx --reporter=dot - -> 1 file / 1 test passed - -Public-site suite: - npm run test -w apps/www -- --reporter=dot - -> 7 files / 19 tests passed - -TypeScript: - npx tsc --noEmit --project apps/www/tsconfig.json - -> pass - -Build: - npm run build:www - -> pass; .next output generated; /download route included; Next ESLint plugin warning remains - -Rendered Browser: - http://localhost:34204/?checkout=cancelled#pricing - -> recovery notice visible; monthly Team CTA + retry href = /api/stripe/checkout?tier=teams&billing=monthly - -> annual toggle updates both hrefs to /api/stripe/checkout?tier=teams&billing=annual - -> no Next issue badge after layout suppressHydrationWarning; no console warnings/errors - -Local production smoke: - next start --hostname localhost --port 34205 - / -> 200 - /?checkout=cancelled -> 200 - /docs/methodology -> 200 - /api/stripe/checkout?tier=teams&billing=monthly -> 303 to /sign-in?redirect_url=... - -Legal copy guard: - npm run test -w apps/www -- __tests__/legal-copy.test.ts --reporter=dot - -> 1 file / 1 test passed - rg -n "Day-0|\[Day-0 launch date\]|Pro or Teams|to be filled before public launch|\[to be designated" 'apps/www/app/(legal)' - -> no matches - -Download path: - npm run test -w apps/www -- __tests__/download-path.test.tsx --reporter=dot - -> 1 file / 3 tests passed - rg -n "releases/latest|https://github.com/marolinik/waggle-os/releases" apps/www/app apps/www/messages/en.json apps/www/__tests__ - -> no matches - next start --hostname localhost --port 34206 - /download -> 200, contains installer-status copy, no releases/latest target - / -> 200, no releases/latest target - -Deployment workflow: - npm run test -w apps/www -- __tests__/deployment-workflow.test.ts --reporter=dot - -> 1 file / 1 test passed - .github/workflows/deploy-www.yml now uses Vercel production pull/build/deploy and no longer references GitHub Pages or apps/www/dist. - -Desktop release workflow: - npx vitest run packages/server/tests/tauri-config.test.ts --reporter=dot - -> 1 file / 19 tests passed - .github/workflows/release.yml now runs npm run build:packages before both Windows and macOS sidecar bundle steps. -``` - -## What Is Already Working - -- Homepage IA is coherent: hero, problem, how it works, memory, proof, features, trust, persona brand moment, open source, pricing, and final CTA. -- `page.tsx` includes a skip link and a real `
`. -- Navbar anchors use absolute section URLs, so legal pages can navigate back to homepage sections. -- Global CSS provides `:focus-visible`, heading `scroll-margin-top`, and reduced-motion handling. -- Pricing copy now uses Solo/Teams/Enterprise in the main pricing component. -- The newer checkout GET route can redirect signed-out users into sign-in with a return target. -- Pricing now uses that GET route directly for Team checkout, preserving monthly/annual billing in the URL. -- Cancelled checkout returns to the homepage pricing section with an inline recovery notice and retry link. -- Public legal pages no longer expose Day-0 launch placeholders, bracketed launch-date placeholders, retired "Pro or Teams" copy, or the named pre-launch address/representative placeholders caught by the launch-copy guard. -- Public download CTAs no longer send visitors directly to an empty GitHub Releases page; `/download` is a controlled status page until signed installers exist. -- Account page redirects signed-out users before mounting Clerk account UI. -- Fresh rendered desktop/mobile localhost smoke shows no current-page console errors or warnings for homepage, mobile menu, or signed-out checkout-error state. - -## Correction Candidates - -### T13-0: Public domain does not currently resolve - -Evidence: -- Current external smoke from this environment on 2026-07-08 could not resolve `waggle-os.ai`. -- `nslookup waggle-os.ai` returned `Non-existent domain`. -- Fresh refresh also shows `www.waggle-os.ai` has no A or CNAME record from this environment. -- `apps/www/app/layout.tsx:137-141`, `apps/www/app/docs/methodology/page.tsx:36`, `apps/www/app/robots.ts:17`, and `apps/www/app/sitemap.ts:3` treat `https://waggle-os.ai` as canonical production. - -Impact: -- A founder, buyer, reviewer, or mobile executive cannot reach the public acquisition, pricing, legal, download, auth, or account surfaces at the canonical domain. -- Local build success does not prove the public launch funnel exists. - -Correction: -- Configure DNS for `waggle-os.ai` and deploy the chosen public-site hosting target. -- Run public smoke against the canonical domain after DNS propagation. -- Keep the local `localhost` smoke as a pre-deploy check, not as final launch evidence. - -Acceptance: -- `https://waggle-os.ai/`, legal pages, `/docs/methodology`, `/sign-in`, `/sign-up`, `/account`, checkout handoff, and download CTA resolve from a normal network. -- The canonical metadata, sitemap, and robots URL match the deployed host. - -### T13-1: Download path is currently broken - -Status: empty-release dead-end focused fixed locally; real signed installer publication remains open. - -Evidence: -- Historical evidence: `DownloadCTA` and footer Product > Download pointed directly to GitHub Releases latest. -- GitHub currently reports no releases for `marolinik/waggle-os`; live 2026-07-08 refresh confirms `/releases/latest` returns no latest release and the GitHub API releases list is empty. -- Current source evidence: public Download CTAs and the footer Download link route to `/download`. -- Current route evidence: `/download` is a controlled status page explaining that Windows and macOS installers are being prepared, with source/contact actions instead of a direct empty release link. -- Current scan evidence: no `releases/latest` target remains in `apps/www/app`, `apps/www/messages/en.json`, or `apps/www/__tests__`. -- Current source evidence: `apps/www/app/_lib/os-detection.ts` returns `null` for mobile/tablet user agents, `macOS` for desktop Mac, `Windows` for desktop Windows, and `Linux` only for desktop Linux. -- `apps/www/messages/en.json:39` says the product platforms are Windows and macOS. - -Impact: -- A founder no longer reaches an empty release page, but still cannot download a signed installer until releases are published. -- Mobile/tablet visitors keep a generic Download CTA, avoiding a false desktop-installer promise. -- A desktop Linux visitor can still see a Linux-specific label even though the public copy says Windows and macOS; this is less damaging now that the CTA leads to a status page, but should be revisited before artifact-specific downloads go live. - -Correction: -- Completed locally: point the CTA/footer to a controlled download/status page and add a release-link guard. -- Completed locally: harden the tag release workflow so desktop artifacts build workspace packages before sidecar bundling, matching the PR Tauri verification lane. -- Remaining launch work: publish real signed Windows/macOS release assets and switch `/download` from status page to artifact-aware download page. -- Remaining polish: decide whether desktop Linux should stay generic or be shown as unsupported before signed installers go live. - -Acceptance: -- Focused local acceptance met: fresh smoke proves the public CTA leads to a deliberate download landing page, and no supported persona reaches an empty GitHub Releases page from the public CTA. -- Full launch acceptance still requires valid Windows/macOS artifacts and final unsupported-OS copy for non-Windows/non-macOS desktops. - -### T13-2: Deployment workflow does not match the current Next app shape - -Status: focused fixed locally; deployed Vercel/DNS smoke remains open. - -Evidence: -- Historical evidence: `.github/workflows/deploy-www.yml` ran the www build and uploaded `apps/www/dist` to GitHub Pages. -- `apps/www/next.config.mjs:6-13` has no `output: 'export'`. -- Current build output is `.next`, not `dist` or `out`. -- The built app includes dynamic auth/API routes and middleware. -- Current source evidence: `.github/workflows/deploy-www.yml` now installs with `npm ci`, pulls the Vercel production environment, runs public-site tests/typecheck/build, then runs Vercel `build --prod` and `deploy --prebuilt --prod`. -- Current test evidence: `deployment-workflow.test.ts` guards that the workflow contains Vercel production deployment commands and does not reference `upload-pages-artifact`, `deploy-pages`, or `apps/www/dist`. - -Impact: -- The prior GitHub Pages workflow could not serve the current app as configured. -- Local source now has a coherent Next-capable deployment path, but external Vercel secrets, DNS, and deployed smoke are not proved by this local fix. - -Correction: -- Completed locally: move the workflow to the existing Vercel production architecture for the dynamic Clerk/Stripe Next app. -- Remaining external launch work: configure `VERCEL_TOKEN`, `VERCEL_ORG_ID`, `VERCEL_PROJECT_ID`, production env vars, domain DNS, and run deployed smoke against `https://waggle-os.ai`. - -Acceptance: -- Focused local acceptance met: the checked-in deploy workflow no longer targets GitHub Pages/static artifacts for a dynamic Next app. -- Full launch acceptance still requires a successful production deploy and public smoke covering `/`, legal pages, auth/account routing, checkout route behavior, webhook reachability, and download CTA. - -### T13-3: Signed-out Team checkout dead-ends in the pricing UI - -Status: focused fixed locally. - -Evidence: -- `apps/www/app/api/stripe/checkout/route.ts:213-240` has a GET flow that redirects signed-out users to sign-in. -- `apps/www/app/api/stripe/checkout/route.ts:242-284` keeps a POST compatibility flow returning JSON. -- `apps/www/app/api/stripe/checkout/route.ts:273-276` returns `{ message: 'Sign in required', signInUrl }` for signed-out POST. -- Historical source evidence: the old pricing UI used POST, read only `message` on non-OK responses, and ignored `signInUrl`. -- Historical rendered smoke clicked Annual then Get Team while signed out; the page stayed at `/`, showed only a small `Sign in required` alert, and exposed no sign-in recovery link in the pricing state. -- Current source evidence: `apps/www/app/_components/Pricing.tsx` renders the Team CTA as a link to `/api/stripe/checkout?tier=teams&billing={monthly|annual}`. -- Current rendered Browser evidence: monthly and annual Team links update correctly and signed-out users enter the route-level GET flow. - -Impact: -- A buyer clicking Get Team before auth sees implementation-shaped error text instead of continuing to sign-in/sign-up and checkout. - -Correction: -- Completed locally: pricing CTA migrated to the canonical GET redirect flow. -- Remaining launch evidence: verify return-to-checkout after a real Clerk sign-in/sign-up session and real Stripe checkout session. - -Acceptance: -- Focused local acceptance met: signed-out Get Team starts the auth route instead of showing a dead-end POST error; billing period is preserved in the route URL. -- Full launch acceptance still requires a real signed-in checkout run against deployed auth/Stripe config. - -### T13-4: Checkout cancel recovery points to a dead route - -Status: focused fixed locally. - -Evidence: -- Historical source evidence: `cancel_url` pointed to `/pricing?checkout=cancelled`, but pricing is a section on `/`. -- Historical local and rendered Browser smokes confirmed `/pricing?checkout=cancelled -> 404`. -- Current source evidence: the Stripe cancel URL is `/?checkout=cancelled#pricing`. -- Current test evidence: `stripe-checkout-route.test.ts` verifies the cancel URL passed to Stripe. -- Current rendered Browser evidence: `/?checkout=cancelled#pricing` renders pricing, shows a cancelled-checkout recovery notice, and exposes a retry link that tracks the selected billing period. - -Impact: -- A buyer who cancels Stripe checkout can land on a 404 instead of a recoverable pricing state. - -Correction: -- Completed locally: use `/?checkout=cancelled#pricing` plus an inline recovery notice and retry action. - -Acceptance: -- Focused local acceptance met: cancelled checkout returns to a visible pricing recovery state, not a 404. -- Full launch acceptance still requires a real Stripe cancellation redirect on the deployed site. - -### T13-5: Legal and trust pages are not launch-ready - -Status: placeholder/stale-tier copy focused fixed locally; formal legal approval remains open. - -Evidence: -- Historical evidence: legal pages contained "Day-0 placeholder text", `[Day-0 launch date]`, launch/address placeholders, and Privacy said "upgrade to Pro or Teams". -- Current source evidence: terms/privacy/cookies/EU AI Act pages use July 8, 2026 effective/updated dates, current Solo/Team language, non-placeholder contact/representative wording, and no named launch placeholder patterns. -- Current test evidence: `legal-copy.test.ts` guards against Day-0 placeholder text, launch-date placeholders, pre-launch address placeholders, retired "Pro or Teams" copy, and bracketed representative placeholders. - -Impact: -- Team admins, enterprise reviewers, and privacy-conscious founders lose trust before installing when public legal pages expose placeholders or retired tier language. - -Correction: -- Completed locally: replaced the named placeholders/stale-tier copy and added a legal-copy guard. -- Remaining launch/legal process: obtain formal Egzakta legal approval for the current text, registered details, and representative wording before treating these pages as legally final. - -Acceptance: -- Focused local acceptance met: `legal-copy.test.ts` passes and the targeted `rg` launch-placeholder scan returns no matches. -- Full launch acceptance still requires legal sign-off. - -### T13-6: Production smoke needs a stable browser lane - -Evidence: -- Current HTTP route/API smoke passes for core routes when using `--hostname localhost`. -- Earlier rendered smoke found `127.0.0.1` binding failures and Clerk development/session-loop warning noise. -- The fresh Browser smoke exercises homepage, mobile menu, signed-out pricing CTA, checkout redirect API, and route recovery. It does not exercise Clerk modal browser behavior, signed-in checkout, or real Stripe return. - -Impact: -- A route-only smoke can miss the exact UI failures buyers hit: modal auth, return-to-checkout, console warning loops, mobile nav, and visual layout. - -Correction: -- Add a repeatable public-site Playwright/browser smoke using the known-good `localhost` host binding. -- Cover desktop and mobile: homepage, mobile menu, download CTA, sign-in/sign-up pages, account redirect, signed-out checkout, checkout cancel, legal pages, and methodology. - -Acceptance: -- Fresh screenshots and route/API logs are attached with no unexpected 404, 500, timeout, or auth-loop noise. - -### T13-7: Coverage is too narrow for a launch funnel - -Evidence: -- `apps/www/__tests__` currently covers only `BrandPersonasCard`. -- Historical coverage gap: no checked-in route E2E, checkout-recovery test, legal placeholder guard, release/download target guard, or deployment artifact guard was found. -- Current local improvement: checkout recovery, legal placeholder/stale-tier, release/download target, mobile download-label, and deployment workflow guards now exist. Deployed-domain smoke, real checkout, signed installer publication, and formal legal sign-off remain open. - -Impact: -- The public site can regress in the exact flows needed for acquisition and purchase while tests stay green. - -Correction: -- Add focused tests/guards: - - Download CTA target and platform labels. - - Signed-out checkout auth continuation. - - Checkout cancel recovery route. - - Legal placeholder/stale-tier grep. - - Deployment artifact/hosting mode consistency. - - Public route smoke in CI or release checklist. - -Acceptance: -- `npm run test -w apps/www`, www typecheck, www build, and the public funnel smoke all pass from a clean checkout. - -## Five-Persona Impact - -| Persona | Cap Until Fixed | Why | -|---|---:|---| -| Solo founder/operator | 5/10 | Canonical public domain does not resolve; local Download no longer dead-ends, but there is still no signed installer artifact to obtain. | -| Team admin/security reviewer | 5/10 | Public legal/pricing/account pages are unreachable at the canonical domain; deployment target, formal legal sign-off, and real signed-in checkout evidence remain launch blockers. | -| Mobile executive | 5/10 | Mobile cannot inspect the canonical public site; mobile download labels are honest locally, but signed download/release truth still needs fixing after deploy. | -| Engineer/power user | 6/10 | Local site is credible, but NXDOMAIN plus no signed release artifact and deploy mismatch make the product look unreleasable. | -| Privacy/compliance reviewer | 6/10 | Public legal pages no longer expose the named placeholder/stale-tier copy locally, but canonical-domain reachability and formal legal sign-off still block launch trust. | - -## Approval Recommendation - -Keep T13 outside Phase 1 implementation, but do not treat it as optional for the final 9/10 complete-UX goal. After the installed-app P0s are approved and fixed, run T13 as a launch-readiness slice with this order: - -1. Make `waggle-os.ai` resolve and deploy the selected public-site target. -2. Publish signed installer artifacts behind the controlled `/download` path. -3. Fix deploy target or hosting architecture. -4. Verify real deployed Clerk sign-in/sign-up return-to-checkout and Stripe cancel/success redirects. -5. Complete formal legal sign-off for public legal/trust copy. -6. Add the public funnel smoke and remaining minimal guards. - -T13 can be deferred only if the user explicitly says the five-persona judge score is limited to the installed desktop cockpit and excludes the public acquisition/payment/legal funnel. diff --git a/docs/audits/2026-07-08-mobile-executive-t2-t12-analysis.md b/docs/audits/2026-07-08-mobile-executive-t2-t12-analysis.md deleted file mode 100644 index d2875d1..0000000 --- a/docs/audits/2026-07-08-mobile-executive-t2-t12-analysis.md +++ /dev/null @@ -1,131 +0,0 @@ -# Focused Mobile Executive T2/T12 Analysis - -Status: original analysis plus current focused verification. The original screenshot pass recorded why T2 failed; the current focused Settings journey verifies that P0-2 is fixed in the present build. - -Purpose: add 390 x 844 rendered evidence for the Mobile Executive judge path and sharpen the mobile acceptance criteria. The original pass shows why a simple document-level horizontal overflow check is not enough; the current focused run confirms the Settings portion of T2 now passes. - -Guideline source refreshed during this pass: Vercel Web Interface Guidelines, `https://raw.githubusercontent.com/vercel-labs/web-interface-guidelines/main/command.md`. The rules most relevant here are safe-area and overflow discipline, readable touch targets, visible focus, form clarity, URL/state clarity, and not relying on screenshots alone when layout can clip individual controls. - -## Fresh Mobile Smoke Evidence - -Environment: - -```powershell -$env:WAGGLE_PORT='3419' -$env:WAGGLE_TRUST_LOCALHOST='1' -$env:WAGGLE_DISABLE_MARKETPLACE_SYNC='1' -$env:WAGGLE_DATA_DIR="$env:TEMP\waggle-mobile-smoke-3419" -$env:EMBEDDING_PROVIDER='mock' -$env:VITE_CLERK_PUBLISHABLE_KEY='' -$env:CLERK_SECRET_KEY='' -npm run build -npx tsx packages/server/src/local/start.ts --skip-litellm -``` - -Viewport: Playwright mobile/touch context at 390 x 844. - -Screenshot directory: - -```text -output/playwright/mobile-executive-3419/ -``` - -Current focused verification: - -```powershell -$env:WAGGLE_E2E_PORT='34195' -$env:WAGGLE_E2E_BASE_URL='http://localhost:34195' -npx playwright test tests/e2e/user-journeys.spec.ts --project=chromium -g "Settings is usable at 390px" --reporter=line -``` - -Result: pass, 1/1. The focused route checks `/settings`, `/settings?tab=models`, `/settings?tab=billing`, and `/settings/profile` at 390 x 844. It asserts no document-level horizontal overflow and no visible control overflow for buttons, tabs, tab panels, inputs, selects, and textareas. - -Screenshots captured: - -- `home.png` -- `settings.png` -- `settings-tab-models.png` -- `settings-tab-billing.png` -- `settings-profile.png` -- `memory.png` -- `workspace-chat.png` -- `overlay-command-center-open.png` -- `overlay-command-center-closed.png` -- `overlay-workspace-switcher-open.png` -- `overlay-workspace-switcher-closed.png` - -Build/runtime notes: - -- `npm run build` passed. -- Tailwind ambiguous motion-token warnings are now fixed by named motion utilities. -- The `shape-selection.ts` dynamic/static import warning is now fixed by a static adapter import guarded by `build-warning-hygiene.test.ts`. -- The Vite large-chunk warning is now fixed: current startup JS is `index-D-wAFouW.js` at 421.96 kB minified and 114.08 kB gzip, with PostHog split into a lazy `posthog-t8jwqJJL.js` chunk at 208.95 kB. -- The local server degraded embeddings to mock and skipped LiteLLM as intended for the analysis lane. - -## Route Results - -| Route or overlay | Result | Document overflow | Visible layout result | Console/status notes | -|---|---|---:|---|---| -| `/home` | Rendered expected Home content. | No | No critical route layout failure found in this smoke. Decorative offscreen elements are present but did not break the Home task. | Original screenshot pass emitted T1 Clerk/CSP errors; current focused console-health checks pass 3/3 on port `34196`. | -| `/settings` | Rendered expected Settings content. | No | Original pass failed T2 because the persistent side rail and Settings rail left a narrow content column. Current focused run on port `34195` passes visible-control bounds. | Existing T1 Clerk/CSP errors were emitted in the original screenshot pass. | -| `/settings?tab=models` | Rendered expected Models content. | No | Original pass failed T2 because disclosure controls overflowed and provider/model cards were squeezed. Current focused run on port `34195` passes visible-control bounds. | Existing T1 Clerk/CSP errors were emitted in the original screenshot pass. | -| `/settings?tab=billing` | Rendered expected Billing content. | No | Original pass failed T2/T10 because billing copy/cards were squeezed and the Annual toggle exceeded the viewport. Current focused run on port `34195` passes visible-control bounds. | Existing T1 Clerk/CSP errors were emitted in the original screenshot pass. | -| `/settings/profile` | Rendered expected Profile content. | No | Original pass had no visible route-level overflow; current focused run on port `34195` also passes visible-control bounds. | Existing T1 Clerk/CSP errors were emitted in the original screenshot pass. | -| `/memory` | Rendered expected Memory content. | No | Fails mobile polish: the Memory tab strip extends past the viewport; this belongs to T10/T12 unless it blocks the chosen mobile judge path. | Original screenshot pass emitted T1 Clerk/CSP errors; current focused console-health checks pass 3/3 on port `34196`. | -| `/workspaces/default-workspace/chat` | Rendered expected workspace/chat shell. | No | Fails mobile polish: workspace tabs extend past the viewport; message send and keyboard/touch flow were not exercised. | Original screenshot pass emitted T1 Clerk/CSP errors; current focused console-health checks pass 3/3 on port `34196`. | -| Command Center overlay | Opened. Escape close check failed in this run. | No | Original pass found long command labels/subtitles overflowing and a missing dialog description warning; current Command Center focused branch passes elsewhere. | Original screenshot pass emitted T1 Clerk/CSP errors; current focused console-health checks pass 3/3 on port `34196`. | -| Workspace Switcher overlay | Opened and closed with Escape. | No | Good signal for one mobile overlay close path, but route-changing close behavior remains part of T4 until codified. | Original screenshot pass emitted T1 Clerk/CSP errors; current focused console-health checks pass 3/3 on port `34196`. | - -Key interpretation: `document.documentElement.scrollWidth` stayed equal to the 390 px viewport for the route screenshots, but individual controls visibly overflowed or became unreadably narrow. Phase 1 must test critical element bounds and screenshots, not only document scroll width. - -## Findings Added By This Pass - -### M1: Settings mobile failure is stronger than horizontal page overflow - -Ticket mapping: T2, with T10/T12 evidence impact. - -The original Settings failure was not only "the page scrolls sideways." The document can report no horizontal overflow while controls still clip inside constrained flex columns. The current `J-mobile: Settings is usable at 390px width` test now asserts that critical visible elements stay within the viewport: - -- Settings section tab list. -- Settings header disclosure segmented control. -- Models provider cards and model selector/change controls. -- Billing plan/toggle controls and primary plan copy. -- Profile fields and save controls. - -### M2: Memory and workspace chat mobile tab strips need evidence ownership - -Ticket mapping: T10/T12, and T11 if route evidence is codified. - -Both `/memory` and workspace chat rendered, but their tab strips extended beyond the viewport. This may be acceptable if they become intentionally scrollable with clear affordance, but it cannot be ignored in the Mobile Executive judge bundle. - -### M3: Command Center mobile close and label fit are not proven - -Ticket mapping: T10/T12; also affects the Engineer path if Command Center is selected as a required overlay. - -Command Center opened on mobile, but the script still found it visible after Escape. Long command labels/subtitles also overflowed, and the browser logged a missing dialog description warning. If the Mobile Executive judge uses Workspace Switcher instead, this can be deferred; if it uses Command Center, the score remains capped. - -### M4: T1 console health is now verified for sampled accountless routes - -Ticket mapping: T1. - -The original screenshot pass emitted Clerk/CSP console errors on every mobile route and overlay. Current focused accountless console-health checks pass 3/3 on port `34196`, covering first-run, initial load, and full-product critical console guards. Keep this in regression and add explicit Clerk-enabled state evidence later. - -### M5: Workspace Switcher has one good mobile close path - -Ticket mapping: T4/T12. - -Workspace Switcher opened and closed with Escape in this mobile pass. This does not close T4 because the previous route-changing navigation issue still needs codified regression coverage, but it is good evidence for the overlay-close part of the Mobile Executive route sequence. - -## Correction Requirements - -Keep these in mobile verification: - -1. Run Settings mobile coverage for `/settings`, `/settings?tab=models`, `/settings?tab=billing`, and `/settings/profile`. -2. Fail if any critical visible control extends outside the viewport, even when document-level scroll width is clean. -3. Capture or inspect screenshots for Home, Settings general/models/billing/profile, Memory, workspace chat, Command Center, and Workspace Switcher. -4. Record whether Command Center or Workspace Switcher is the selected Mobile Executive overlay path; the selected overlay must open and close without trapping focus/scroll. -5. Keep T1 console capture attached to mobile evidence; sampled accountless console health is currently green, while explicit Clerk-enabled state evidence remains separate. - -## Current Recommendation - -Keep Phase 1 scoped to T1, T2, T3, T4, T5, and T11. The Settings portion of T2 and sampled accountless T1 console health are now green in focused verification, so remaining Mobile Executive risk shifts to Memory/workspace chat tab-strip evidence ownership and the selected overlay path. Command Center mobile close/label fit is now covered elsewhere by the focused Command Center branch in `tests/e2e/user-journeys.spec.ts`. diff --git a/docs/audits/2026-07-08-ops-deploy-ci-judging-t18-analysis.md b/docs/audits/2026-07-08-ops-deploy-ci-judging-t18-analysis.md deleted file mode 100644 index d5d2b25..0000000 --- a/docs/audits/2026-07-08-ops-deploy-ci-judging-t18-analysis.md +++ /dev/null @@ -1,76 +0,0 @@ -# T18 Ops, Deployment, CI, Benchmark, and Judging UX Analysis - -Date: 2026-07-08 -Scope: GitHub Actions, Docker, Compose, Render, LiteLLM config, infra test lane, benchmark harness, and judging artifacts. -Mode: analysis plus focused public-site deployment workflow fix. - -## Bottom Line - -T18 is not a product screen, but it is still part of UX: it is the experience of shipping, operating, validating, and proving the product. - -The current state is mixed. Config syntax is healthy, secrets are not tracked in the checked env files, the benchmark harness now passes from its package-local command (29 files / 325 tests), production Compose now fails closed for Postgres and MinIO credentials, Render is explicitly aligned to the hosted local-sidecar mode, and the public-site workflow targets Vercel prebuilt deployment instead of a nonexistent GitHub Pages static artifact. The remaining blockers are release-confidence issues: deployed Vercel/DNS proof is still missing, CI browser E2E is advisory, the 19-suite live infra lane is not in CI and could not run here because Docker Desktop's engine is unavailable, and current `judging/` files are historical rather than the July five-persona scoring evidence. - -## User Jobs - -- Release reviewers can trust CI as an honest gate. -- Operators can validate Compose, Docker, Render, and LiteLLM config without leaking local secrets into logs. -- Hosted deployment mode is explicit: local sidecar demo or team Postgres server. -- Infra-dependent tests have a known runnable lane. -- Benchmark and judge harness commands work from documented entrypoints. -- Historical judge screenshots and reports are not mistaken for current 9/10 evidence. - -## Command Evidence - -| Check | Result | Notes | -|---|---:|---| -| YAML parse for `docker-compose.yml`, `docker-compose.production.yml`, `render.yaml`, `litellm-config.yaml`, and all 7 `.github/workflows/*.yml` | Pass | Syntax is valid for the checked deployment, workflow, and model-router files. | -| `docker --version`; `docker compose version` | Pass | Docker CLI 28.4.0 and Compose v2.39.2 are installed. | -| `docker compose ps --format json` | Fail | Docker Desktop Linux engine pipe was not reachable, so live Compose services could not be inspected or started here. | -| 127.0.0.1 port preflight for 5434 and 6381 | Closed | The Postgres/Redis ports required by `vitest.infra.config.ts` were not reachable locally. | -| `docker compose ... config --no-interpolate` targeted scan | Pass | Safer shareable evidence path because variable references stay literal instead of printing local secret values. | -| Secret tracking check for `.env`, `.env.local`, `AI API KEYS.txt`, and `apps/www/.env.local` | Pass for tracked files | Only checked `.env.example` files are tracked; local secret-bearing files are ignored. | -| `Test-Path apps/www/dist`; `Test-Path apps/www/.next`; deploy workflow scan | `False`; `True`; Improved | `apps/www` is a dynamic Next app producing `.next`; `.github/workflows/deploy-www.yml` now uses Vercel `pull`, `build`, and `deploy --prebuilt --prod` and no longer uploads `apps/www/dist` to GitHub Pages. | -| `npx tsc --noEmit --project benchmarks/harness/tsconfig.json` | Pass | Benchmark harness TypeScript compiles. | -| `npm run test --prefix benchmarks/harness -- --reporter=dot` | Pass, 29 files / 325 tests | Package-local command now delegates to the root Vitest aliases/setup. | -| `npx vitest run benchmarks/harness/tests --config vitest.config.ts --reporter=dot` | Pass, 29 files / 325 tests | Root-run benchmark tests pass, but output is noisy with turn and benchmark logs. | -| `judging/FINAL-REPORT.md` and `judging/round3/*` inspection | Historical only | These are June 2026 judge rounds, not current post-fix July scorecards. | - -## Source Findings - -| ID | Severity | Finding | Evidence | Correction Needed | -|---|---:|---|---|---| -| T18-1 | P1 | Public-site deploy target needed to match the dynamic Next app. | Historical Pages workflow uploaded nonexistent `apps/www/dist`; current workflow now uses Vercel production pull/build/deploy and `deployment-workflow.test.ts` guards against reintroducing `upload-pages-artifact`, `deploy-pages`, or `apps/www/dist`. | Local workflow mismatch is fixed. Remaining T13/T18 work is external: Vercel secrets/project linkage, production env, DNS, and deployed smoke evidence. | -| T18-2 | Resolved | Render deploy mode was ambiguous. | `render.yaml` now explicitly documents and tests the hosted local-sidecar mode, keeps `/data` persistence and Stripe sidecar routes, and removes unused Postgres/Redis provisions. The Postgres/Redis-backed team server remains the Dockerfile/Compose path. | Keep the two deployment modes documented separately. | -| T18-3 | Resolved locally | The broad CI browser E2E job is advisory, leaving no merge-blocking rendered UX gate. | `.github/workflows/ci.yml` now adds a separate blocking `e2e-smoke` job; `npm run test:e2e:smoke` passed 5/5 locally on a fresh build and sidecar. The broad exploratory E2E job remains advisory. | Keep the smoke slice small and stable; the broad suite remains evidence-producing rather than merge-blocking. | -| T18-4 | P1 | Live infra suites are not represented in CI and were not runnable in this audit environment. | `vitest.infra-suites.ts` lists 19 Postgres/Redis suites. Docker engine was unavailable and ports 5434/6381 were closed. | Add a Docker-provisioned CI lane or a documented local lane with migration/start/stop commands and current evidence; otherwise defer infra evidence explicitly. | -| T18-5 | Resolved | Production Compose kept default credentials. | Postgres and MinIO credentials now use required `${VAR:?set VAR}` interpolation; the deployment test asserts the fail-closed contract, and `docker compose -f docker-compose.production.yml config --no-interpolate` preserves the required placeholders for secret-safe review. | Keep production secrets in the deployment environment and never add convenience fallbacks back to this file. | -| T18-6 | P1 | Shareable ops evidence can leak secrets if reviewers use the obvious command. | `docker compose config` interpolates ignored local env values. `--no-interpolate` is safer for evidence logs; sanitized env validation also passes locally. | Keep the secret-safe command pair in the release runbook and attach sanitized output for the deployment packet. | -| T18-7 | Resolved | Benchmark package-local test command failed even though root-run tests passed. | `npm run test --prefix benchmarks/harness -- --reporter=dot` passes 29 files / 325 tests through the root config. | Keep the package-local delegation script as the canonical harness entrypoint. | -| T18-8 | P1 | Judging artifacts are stale for the current goal. | `judging/FINAL-REPORT.md` is a June 2026 mission report; the July scorecards/runbook still require a current human-scored pass against the post-fix source. | Generate and review new five-persona artifacts only after external release scope is decided; keep historical reports clearly labeled as historical. | -| T18-9 | P2 external evidence | Provider freshness and runtime routing are hermetically proven; a paid external-provider request is not yet attached. | The desktop runtime builds secret-free LiteLLM config from complete live provider catalogs rather than a model inventory. It covers provider pagination, refreshes UI catalogs on app focus, restarts on key save/retry, and hot-loads an exact model id released after startup when that id is selected for default, Chat, or fleet execution. Key-save -> unseen model -> generated config -> exact-id completion is deterministic. | Add one credentialed provider smoke in the release lane and retain the hermetic proof as the deterministic CI gate. | - -## Persona Impact - -| Persona | Current T18 cap | Why | -|---|---:|---| -| Engineer / power user | 7/10 | CI, benchmark, infra, and command-shape gaps reduce trust that green means shippable. | -| Team admin / security reviewer | 7/10 | Default production credentials, ambiguous hosted deploy mode, and secret-log risks are trust blockers. | -| Solo founder | 8/10 | Public deploy and checkout recovery can fail before the founder reaches the desktop app. | -| Researcher | 8/10 | Historical judge artifacts cannot be reused as evidence for current memory/UX quality. | -| Mobile executive | 8/10 | Less directly affected, but public deploy and judge evidence still gate the complete-system claim. | - -## Acceptance For Closing T18 - -- `apps/www` deployment target is coherent with the actual Next app output and dynamic routes; production Vercel/DNS smoke is still required under T13 before final scoring. -- Render deploy mode is decided and verified: hosted sidecar demo or team Postgres server. -- Production Compose has fail-closed secrets or a clear sample-vs-production split. -- Secret-safe validation commands are documented and used for shareable ops evidence. -- CI includes a blocking rendered smoke lane, and the broad exploratory E2E job is explicitly advisory before scoring. -- `npm run test:infra` has a Docker/migration lane with current evidence, or the 19 infra suites are explicitly deferred. -- Benchmark package-local command shape is fixed or the root-run command is documented as canonical. -- Current five-persona judging artifacts are generated after approved fixes and replace historical evidence for scoring. -- LiteLLM/provider hermetic routing remains green, and one credentialed external-provider smoke is attached or explicitly outside the current score. - -## Packet Decision - -Keep T18 as `Phase 2 Pending` / launch-tooling gate. It should not block Phase 1 implementation, but it blocks the final "complete UX, all parts functional, five judges at 9/10" claim unless the user explicitly defers ops/deployment/CI/benchmark/judging from the score. diff --git a/docs/audits/2026-07-08-route-evidence-t11-analysis.md b/docs/audits/2026-07-08-route-evidence-t11-analysis.md deleted file mode 100644 index 64043d6..0000000 --- a/docs/audits/2026-07-08-route-evidence-t11-analysis.md +++ /dev/null @@ -1,280 +0,0 @@ -# T11 Route Evidence Gap Analysis - -Status: route-existence ownership verified. No product code changed. - -Scope: installed `apps/web` route registry, app-id route mapping, direct route/test references, command-query destinations, major overlays, and route evidence needed before five-persona scoring. - -## Why This Matters - -The shell can have many green component and API tests while still leaving a user-visible route unproven. T11 is the guardrail against scoring only the familiar paths. A route is not judge-ready until it has an evidence owner that proves the actual URL, expected state, viewport, and recovery behavior. - -## Current Route Registry - -Authoritative source: `apps/web/src/App.tsx`. - -Registered production routes: - -```text -/auth -/ -/home -/workspaces -/workspaces/:workspaceId/:tab? -/memory/:mindScope? -/artifacts -/files -/agents -/automations -/skills -/room -/waggle-dance -/approvals -/connectors -/mcps -/marketplace -/launcher -/team -/settings -/settings/vault -/settings/profile -/settings/mission-control -/settings/timeline -/settings/events -/settings/usage -/benchmarks -/platform -/payment-success -/payment-cancelled -* -``` - -Notes: - -- `/payment-cancelled` is a router redirect to `/settings?tab=billing`, not a full page component. -- `/benchmarks` and `/platform` are real routed AppShell children, even though they are command-palette-oriented surfaces. -- `/motion-spec` is dev-only and remains excluded from the product score unless developer visual tooling is brought into scope. -- `routeFor` covers 28 app ids, including killed/retargeted ids, but it is not the same as rendered URL evidence. - -## Current Command Evidence - -| Check | Result | Interpretation | -|---|---|---| -| `npm run test -- apps/web/src/test/p1a-routes.test.ts --run` | Fail, no files found | Root Vitest excludes `apps/**`; the obvious command does not run app route tests. | -| `npm run test -w apps/web -- src/test/p1a-routes.test.ts --run` | Pass, 1 file / 29 tests | Proves app-id route mapping, search result retargeting, query serialization, nav active-route matching, and dock route invariants. | -| `npm run test -w apps/web -- src/components/os/apps/BenchmarkApp.test.tsx src/components/os/apps/PlatformApp.test.tsx src/test/pr7a-billing.test.tsx --run` | Pass, 3 files / 17 tests | Proves component behavior for Benchmark, Platform, Settings billing deep-link, and PaymentSuccess states, but not direct URL rendering for `/benchmarks`, `/platform`, or `/payment-cancelled`. | -| Fresh built-app route smoke, port 3407 | Mixed | `npm run build` passed, then a one-off Playwright smoke against `http://127.0.0.1:3407` proved `/benchmarks`, `/platform`, and `/payment-cancelled` render meaningful shell content; `/payment-cancelled` redirects to `/settings?tab=billing`. All three routes still emit the existing T1 CSP/Clerk console errors, so this is route-existence evidence, not judge-ready route health. Screenshots: `output/playwright/route-smoke-3407/benchmarks.png`, `platform.png`, `payment-cancelled.png`. | -| Fresh thin-route smoke, port 3411 | Mixed | `npm run build` passed, then a one-off Playwright smoke proved `/launcher`, `/launcher?watch=1`, `/waggle-dance`, `/artifacts`, `/settings/profile`, `/settings/timeline`, `/payment-success`, `/automations`, `/mcps`, `/settings/usage`, and `/files` return 200 and render meaningful shell content. All routes still emit T1 CSP/Clerk console errors. Additional findings: leaving Launcher while detection is in flight can log `[adapter] detectTools failed: Failed to fetch`, and `/settings/usage` emits a visible 403 resource error while showing a Team-tier gate. Screenshots: `output/playwright/thin-route-smoke-3411/*.png`. | -| Current all-route built-preview smoke, port 3457 | Mixed | `npm run build` passed, a fresh sidecar on `127.0.0.1:3333` returned healthy, and a Playwright smoke against built preview `http://127.0.0.1:3457` navigated 33 desktop routes plus 11 mobile route spot-checks. All navigations returned 200, `/payment-cancelled` redirected to `/settings?tab=billing`, and no route had document-level horizontal overflow. This remains supplemental screenshot/overflow evidence now that `J-route-coverage` owns codified route-existence regression coverage. Artifacts: `output/playwright/route-evidence-3457/all-route-smoke.json`, `all-route-smoke-summary.json`, and 44 screenshots under `output/playwright/route-evidence-3457/screenshots/`. | -| `J-route-coverage` Playwright tests, port `34200` | Pass, 2 tests | Codifies route-existence owners for `/benchmarks`, `/platform`, `/payment-cancelled`, `/launcher`, `/launcher?watch=1`, `/waggle-dance`, `/artifacts`, `/settings/profile`, `/settings/timeline`, `/payment-success`, `/automations`, `/mcps`, `/settings/usage`, and `/files`. `/payment-cancelled` is asserted to redirect to `/settings?tab=billing` and show billing/plan recovery copy. | Proves rendered shell/content and redirect behavior, not deeper form/action/error states such as MCP install, file upload, payment provider round-trip, Launcher hook lifecycle, or Usage cost semantics. | -| Direct route-string reference count over `tests/e2e`, `tests/visual`, `tests/vision`, `apps/web/src/test` | Mixed | Confirms several zero/thin route evidence owners. Counts below are references, not proof by themselves. | - -Current warnings: - -- The app-local test commands emit Node `punycode` deprecation warnings. -- `pr7a-billing.test.tsx` emits React Router future-flag warnings in the Settings billing deep-link test. -- The current all-route built-preview smoke emits a Clerk development-key warning on every sampled route, even though the route exists and renders. This keeps T1 open for standard judge console health. - -## Current All-Route Built-Preview Smoke - -Run date: 2026-07-08. - -Artifacts: - -- `output/playwright/route-evidence-3457/all-route-smoke-summary.json` -- `output/playwright/route-evidence-3457/all-route-smoke.json` -- `output/playwright/route-evidence-3457/screenshots/*.png` - -Scope: - -- Desktop 1440 x 900: `/auth`, `/`, `/home`, `/workspaces`, `/workspaces/default-workspace/chat`, `/workspaces/default-workspace/files`, `/memory`, `/artifacts`, `/files`, `/agents`, `/automations`, `/skills`, `/room`, `/waggle-dance`, `/approvals`, `/connectors`, `/mcps`, `/marketplace`, `/launcher`, `/launcher?watch=1`, `/team`, `/settings`, `/settings/vault`, `/settings/profile`, `/settings/mission-control`, `/settings/timeline`, `/settings/events`, `/settings/usage`, `/benchmarks`, `/platform`, `/payment-success`, `/payment-cancelled`, and the catch-all route. -- Mobile 390 x 844: `/home`, `/settings`, `/settings?tab=models`, `/settings?tab=billing`, `/settings/profile`, `/memory`, `/workspaces/default-workspace/chat`, `/launcher`, `/mcps`, `/files`, and `/payment-cancelled`. - -What the smoke proves: - -- No sampled route failed navigation. -- All sampled routes returned 200 through the preview server. -- `/payment-cancelled` redirects to `/settings?tab=billing`. -- Every sampled route produced meaningful body text and a screenshot. -- No sampled route had document-level horizontal overflow. - -What still remains outside route-existence T11: - -- Route-existence ownership is now codified in `tests/e2e/user-journeys.spec.ts`; the all-route smoke remains supplemental screenshot/overflow evidence. -- Auth-enabled route health remains tied to T1/T12 rather than this accountless route-existence lane. -- `/launcher?watch=1` still logs `[adapter] detectTools failed: ... /api/tools/detect: Failed to fetch`, so Launcher watch mode needs T16 runtime evidence. -- `/settings/usage` still logs a 403 resource error while rendering the Team-tier gate, so Usage & Cost semantics remain tied to T9. -- The catch-all route intentionally renders the branded not-found page, but it currently logs the attempted bad route as a console error. The final route smoke should either demote this expected event or explicitly exclude it from critical console failure counts. -- The DOM heuristic found runtime accessible-name gaps across judge routes, including chat composer (`ChatApp.tsx:1594`), Launcher refresh/prompt (`LauncherApp.tsx:332`, `:381`), Artifacts search/create (`ArtifactCenterApp.tsx:183`, `:231`), Agents search (`AgentsApp.tsx:284`), Skills search (`CapabilitiesApp.tsx:475`), Settings daily budget (`SettingsApp.tsx:506`), Vault refresh/add-secret controls (`VaultApp.tsx:257`, `:331`, `:380`), Profile identity fields (`UserProfileApp.tsx:327` through `:353`), WaggleDance refresh (`WaggleDanceApp.tsx:55`), Approvals refresh (`ApprovalsApp.tsx:199`), and Mission Control refresh (`CockpitApp.tsx:83`). These mostly close under T10; keep them there rather than reopening T11 route ownership. - -## Direct Route Reference Matrix - -Counts were generated with direct fixed-string search across `tests/e2e`, `tests/visual`, `tests/vision`, and `apps/web/src/test`. - -| Route | Direct refs | Current interpretation | -|---|---:|---| -| `/auth` | 7 | Covered enough for route ownership; explicit auth-enabled confidence remains tied to T1/T12. | -| `/` | 3 | Covered as shell index/redirect, but redirect flash remains judged through rendered shell evidence. | -| `/home` | 81 | Strong route evidence owner. | -| `/workspaces` | 105 | Strong references, but workspace destructive/manage flows still need state-specific proof. | -| `/workspaces/:workspaceId/:tab?` | 68 | Strong references; `Ctrl+Shift+N` and active workspace fallback still tracked in T4. | -| `/memory` | 135 | Strong references, with visual/native-dialog issues tracked elsewhere. | -| `/artifacts` | 2 | Codified `J-route-coverage` now renders the Artifact/Library shell; delete/archive/empty/error state owner still needed. | -| `/files` | 6 | Codified `J-route-coverage` now renders the storage/files shell; upload/preview/path/error states remain T12. | -| `/agents` | 11 | Mixed. Agent center/builder has component coverage; route-level form/error evidence still needed. | -| `/automations` | 4 | Codified `J-route-coverage` now renders Automation Center shell; builder, validation, pause/resume/logs need routed evidence. | -| `/skills` | 47 | Mixed. Main issue is copy/install determinism rather than route existence. | -| `/room` | 12 | Mixed. Parallel-agent empty/running/completed states need route evidence. | -| `/waggle-dance` | 1 | Codified `J-route-coverage` now renders signal-sharing shell; value clarity and live signal states still need evidence. | -| `/approvals` | 7 | Mixed. Tier-gated and revoke-all consequence evidence still needed. | -| `/connectors` | 37 | Mixed. Good references, but credential/revoke/error/no-secret states need proof. | -| `/mcps` | 4 | Codified `J-route-coverage` now renders MCP Hub installed/catalog/custom shell; MCP install/verify/scope/revoke states need routed evidence. | -| `/marketplace` | 53 | Mixed. Search/browse is known flaky because standard audit can hit live external sync. | -| `/launcher` | 1 | Codified `J-route-coverage` now renders `/launcher` and `/launcher?watch=1`; launch/prompt/hook lifecycle states still need evidence. | -| `/team` | 9 | Mixed. Team admin route exists; Solo/Team tier gating and governance states need proof. | -| `/settings` | 66 | Mixed. Mobile layout and native dialog issues remain P0/P1. | -| `/settings/vault` | 7 | Mixed. Secret save/error/no-leak keyboard states need proof. | -| `/settings/profile` | 2 | Codified `J-route-coverage` now renders profile form shell; save/error and mobile state evidence remain separate T10/T12 work. | -| `/settings/mission-control` | 10 | Mixed. Visual baseline and local model pricing semantics remain open. | -| `/settings/timeline` | 3 | Codified `J-route-coverage` now renders the timeline/activity shell; workspace timeline, filters, long-list, and date formatting states need proof. | -| `/settings/events` | 6 | Mixed. Logs route needs long-line/filter/empty visual proof. | -| `/settings/usage` | 4 | Codified `J-route-coverage` now renders usage/cost shell; unknown local model cost semantics remain open. | -| `/benchmarks` | 0 | Codified `J-route-coverage` now renders the route; discovery/value evidence is still missing. | -| `/platform` | 0 | Codified `J-route-coverage` now renders the route; judged-scope decision/discovery evidence is still missing. | -| `/payment-success` | 3 | Codified `J-route-coverage` now renders the no-checkout fallback; completed checkout-return state is not proven. | -| `/payment-cancelled` | 0 | Codified `J-route-coverage` now proves redirect to `/settings?tab=billing` plus billing recovery copy. | -| Bad route / catch-all | 1 | Thin but present through invalid-route stress coverage. | - -## Correction Candidates - -### T11-1: Codify route-level evidence for zero-hit routes - -Routes: - -- `/benchmarks` -- `/platform` -- `/payment-cancelled` - -Evidence: - -- `App.tsx` registers all three routes. -- Direct test reference count found zero route references for all three. -- Benchmark and Platform have component tests, but those do not prove AppShell URL rendering, command palette discoverability, route chrome, or status-bar context. -- Payment cancelled is a redirect; the original ad hoc smoke proved the redirect, and the current codified route test now proves that `/payment-cancelled` lands on Settings billing and explains the recovery action. -- 2026-07-08 ad hoc fresh built-app smoke on port 3407 proves current URL rendering: `/benchmarks` and `/platform` return 200 with meaningful shell content, while `/payment-cancelled` returns 200 and redirects to `/settings?tab=billing`. -- 2026-07-08 all-route built-preview smoke on port 3457 reproves those three routes in the same pass as the rest of the registered route table. -- 2026-07-08 codified `J-route-coverage: thin utility routes render or redirect clearly` passed again on port `34200` and owns regression evidence for `/benchmarks`, `/platform`, and `/payment-cancelled`. -- The older ad hoc smokes reproduced pre-fix T1 CSP/Clerk console errors. Current T1 console-health closure is tracked separately; this T11 route smoke proves route existence and recovery copy, not full per-route console health. - -Acceptance: - -- A user-journey or route-smoke test navigates to `/benchmarks`, `/platform`, and `/payment-cancelled` with skip params. -- `/benchmarks` and `/platform` render the expected route chrome and content. -- `/payment-cancelled` redirects to billing and leaves the user with clear next action copy. -- The route smoke is codified so the current ad hoc evidence is not lost between judge runs. - -Status: route-existence coverage is now codified. Deeper payment provider round-trip and recovery-state screenshots remain part of Team Admin/T12 evidence. - -### T11-2: Upgrade thin route owners from reference count to user-state proof - -Priority thin routes: - -- `/launcher` -- `/waggle-dance` -- `/artifacts` -- `/settings/profile` -- `/settings/timeline` -- `/payment-success` -- `/automations` -- `/mcps` -- `/settings/usage` - -Evidence: - -- These routes have 1-4 direct references, or only static/component coverage. -- Several are primary judge paths: Engineer uses Launcher/MCP/files/logs; Team admin uses payment recovery; Researcher uses timeline; Mobile executive uses profile/settings. -- 2026-07-08 ad hoc thin-route smoke on port 3411 proves the priority thin URLs render, but it also shows route health is still capped by global T1 console errors, Launcher detection race/noise, and Usage/Cost 403 resource noise. -- 2026-07-08 all-route built-preview smoke on port 3457 reproves the priority thin routes, expands the mobile route sample, and confirms no document-level horizontal overflow; it also confirms label/name gaps on Profile, Vault, Launcher, and other persona routes. -- 2026-07-08 codified `J-route-coverage: priority thin routes render meaningful shells` passed again on port `34200` and owns route-existence evidence for `/launcher`, `/launcher?watch=1`, `/waggle-dance`, `/artifacts`, `/settings/profile`, `/settings/timeline`, `/payment-success`, `/automations`, `/mcps`, `/settings/usage`, and `/files`. - -Acceptance: - -- Each thin route gets an evidence owner: route smoke, visual snapshot, persona screenshot, or explicit deferral. -- Evidence states the user mode, tier, viewport, and data state. -- Thin route rows in the manifest are changed only after evidence exists. -- Launcher detection and Usage/Cost 403 noise are resolved, documented as expected, or excluded from the final judge lane. - -Status: route-existence ownership is codified. Persona-critical interaction states remain open under T10/T12/T16 as applicable. - -### T11-3: Separate route existence from state coverage - -Evidence: - -- `p1a-routes.test.ts` proves `routeFor` and nav data invariants. -- It does not mount `App.tsx`, render screens, test API-backed empty/error states, or exercise mobile layout. - -Acceptance: - -- The route manifest names both kinds of evidence: - - route mapping/unit evidence; and - - rendered route/state evidence. -- Judge scorecards cannot cite `p1a-routes.test.ts` alone for a user-visible route. - -### T11-4: Fix or document the app-test command shape - -Evidence: - -- Root `npm run test -- apps/web/src/test/p1a-routes.test.ts --run` exits with "No test files found" because the root Vitest include/exclude pattern excludes `apps/**`. -- `npm run test -w apps/web -- src/test/p1a-routes.test.ts --run` works. - -Impact: - -- A future reviewer can think route tests are missing or broken when they used the root command. - -Correction: - -- Use app-local commands in the Phase 1 plan and T11 verification notes, or add a root script that intentionally targets app tests. - -Acceptance: - -- The T11 verification checklist uses commands that actually run app tests. - -### T11-5: Overlay evidence must be tied to routes - -Overlays: - -- Command Center -- Workspace Switcher -- Persona Switcher -- Spawn Agent -- Onboarding Wizard -- Login Briefing -- Upgrade/Trial modals -- Notification Inbox -- Context Rail -- Erase Data dialog - -Evidence: - -- The route manifest lists these overlays, but their evidence is not consistently attached to persona journeys. -- Workspace Switcher is already a P0 because it can block route traversal. -- Command Center has component tests, but route discovery paths for command-only routes still need URL proof. - -Acceptance: - -- Each judge persona cites overlay evidence where that overlay is in the path. -- Route-changing overlays close predictably on selection, Escape, outside click, and route-changing nav. -- Command Center can reach command-only surfaces or those surfaces are explicitly deferred. - -## Five-Persona Impact - -| Persona | T11 risk | -|---|---| -| Solo founder/operator | Home/workspace evidence is strong, but first-run and accountless confidence still depends on T1/T12 console and onboarding evidence. | -| Researcher | Memory is strong; timeline, artifacts, export/delete, and Browser Companion-adjacent capture evidence are thinner. | -| Engineer/power user | Launcher, MCP Hub, files, events, bad-route recovery, command-only surfaces, and T16/T17 adjunct surfaces need stronger routed evidence. | -| Team admin/security reviewer | Payment cancelled/success, Vault, Approvals, Team governance, and Settings billing recovery need route/state proof. | -| Mobile executive | Home/settings route coverage exists, but profile, usage, timeline, and mobile state evidence are thin. | - -## Approval Recommendation - -T11 is now closed for route-existence ownership: the route manifest exists, zero/thin routes have codified `J-route-coverage` owners, and the focused route coverage run passed 2/2 on port `34200`. Broader per-route state bundles stay in T12/Phase 2, with Launcher runtime proof in T16 and Usage semantics in T9. diff --git a/docs/audits/2026-07-08-runtime-a11y-t10-analysis.md b/docs/audits/2026-07-08-runtime-a11y-t10-analysis.md deleted file mode 100644 index b23e7e0..0000000 --- a/docs/audits/2026-07-08-runtime-a11y-t10-analysis.md +++ /dev/null @@ -1,177 +0,0 @@ -# Focused Runtime Accessibility T10 Analysis - -Status: original runtime analysis plus follow-up implementation notes. The axe table below records the pre-fix built-app smoke; the 2026-07-08 T10 update records the focused controls now covered by regression tests, plus the new zero-violation runtime axe gate for the sampled core routes. - -Purpose: add rendered accessibility evidence for high-traffic routed surfaces. The earlier Web Guidelines supplement is a static source scan; this file records what axe-core and DOM heuristics found when the built app actually rendered under the standard E2E skip harness. - -Guideline source refreshed during this pass: Vercel Web Interface Guidelines, `https://raw.githubusercontent.com/vercel-labs/web-interface-guidelines/main/command.md`. The rules most relevant here are named icon buttons, named form controls, keyboard-reachable scroll regions, semantic headings/landmarks, visible focus, and long label handling. - -## Runtime Evidence - -Environment: - -```powershell -$env:WAGGLE_PORT='3423' -$env:WAGGLE_TRUST_LOCALHOST='1' -$env:WAGGLE_DISABLE_MARKETPLACE_SYNC='1' -$env:WAGGLE_DATA_DIR="$env:TEMP\waggle-a11y-smoke-3423" -$env:EMBEDDING_PROVIDER='mock' -$env:VITE_CLERK_PUBLISHABLE_KEY='' -$env:CLERK_SECRET_KEY='' -npm run build -npx tsx packages/server/src/local/start.ts --skip-litellm -``` - -Rendered URL shape: - -```text -?skipOnboarding=true&skipBoot=true&skipBriefing=true&tier=power -``` - -Evidence artifacts: - -```text -output/playwright/a11y-runtime-3423/runtime-a11y-summary-skip.json -output/playwright/a11y-runtime-3423/runtime-a11y-summary.json -output/playwright/route-evidence-3457/all-route-smoke-summary.json -output/playwright/route-evidence-3457/all-route-smoke.json -``` - -`runtime-a11y-summary.json` is retained as a harness caveat: without the skip parameters, desktop direct routes can render first-run/auth state rather than the intended app surface. `runtime-a11y-summary-skip.json` is the authoritative route-content evidence from this pass. - -Implementation note: axe was injected with Playwright `bypassCSP: true`. A normal `page.addScriptTag()` was correctly blocked by the app CSP, which is consistent with the known T1 lane. This bypass was used only to inspect accessibility; it is not product behavior. - -Color contrast was disabled in the axe run because Waggle already has dedicated `npm run ux:contrast` and `npm run ux:color-guard` gates. - -## Post-Fix Runtime Gate - -The ad hoc audit is now codified as `tests/e2e/runtime-a11y.spec.ts`. - -Latest evidence: - -```powershell -$env:WAGGLE_E2E_PORT='34193' -$env:WAGGLE_E2E_BASE_URL='http://localhost:34193' -npx playwright test tests/e2e/runtime-a11y.spec.ts --project=chromium --reporter=line -``` - -Result: pass, 2/2. The gate runs axe-core against Home, Settings, Profile, Vault, Mission Control, Memory, workspace chat, Agents, Waggle Dance, Launcher, MCP Hub, Files, and Approvals at desktop 1440 x 900 and mobile 390 x 844. It currently expects zero axe violations for this sampled route set. - -## Routes Sampled - -Each route below returned HTTP 200 and matched expected route text in both desktop 1440 x 900 and mobile 390 x 844 contexts when loaded with the skip harness. - -| Route | Desktop axe result | Mobile axe result | Runtime concern | -|---|---|---|---| -| `/home` | `region` moderate | `region` moderate | Some status/topbar content is outside landmarks; ask input is named but lacks form metadata. | -| `/settings` | `button-name` critical, `select-name` critical, `region` moderate | Same | A tooltip/icon button lacks a discernible name; Prompt Shape select lacks an associated accessible name; Settings form metadata remains weak. | -| `/settings/profile` | `select-name` critical, `region` moderate | Same | Profile selects lack associated accessible names; several profile fields lack `name`/`autocomplete` metadata. | -| `/settings/vault` | Not in original axe sample | Not in original axe sample | Added to the codified post-fix gate after the Vault metadata slice. | -| `/settings/mission-control` | Not in original axe sample | Not in original axe sample | Added to the codified post-fix gate; expansion exposed ComplianceDashboard unnamed action buttons and heading order, now fixed. | -| `/memory` | `region` moderate | Same | Original concern: Memory search/list controls had weak metadata and top/status content outside landmarks repeated. Post-fix Memory Center metadata/focus coverage is recorded below. | -| `/workspaces/default-workspace/chat` | `image-alt` critical, `aria-allowed-role` minor, `region` moderate | Same | Workspace tab panel semantics and file/preview/icon imagery need source-level verification; chat composer lacks form metadata. | -| `/agents` | Not in original axe sample | Not in original axe sample | Added to the codified post-fix gate after the agent-card control slice. | -| `/waggle-dance` | Not in original axe sample | Not in original axe sample | Added to the codified post-fix gate after the WaggleDance refresh-control slice. | -| `/launcher` | `button-name` critical, `region` moderate | Same | Refresh icon button lacks a name; prompt textarea lacks form metadata. | -| `/mcps` | `region` moderate | Same | No named-control violations in this smoke; landmark issue repeats. | -| `/files` | `scrollable-region-focusable` serious, `heading-order` moderate, `region` moderate | Same | Files has a keyboard-inaccessible scroll region and heading order issue. | -| `/approvals` | `button-name` critical, `region` moderate | Same | Refresh/revoke icon buttons lack accessible names. | - -Implementation update 2026-07-08 T10: - -- Settings now names the telemetry toggle, associates the Prompt Shape select and high-traffic model/team/KVARK fields, and adds form metadata for daily budget, mutation gate, URLs, and tokens. -- Profile identity, writing-style, brand, and language controls now have explicit labels, stable `name` values, and autocomplete metadata; the Analyze Style action now has a token focus ring. -- Launcher now names the refresh icon button and the optional launch prompt textarea. -- Approvals now names refresh and per-grant revoke icon buttons. -- Cockpit, WaggleDance, ComplianceDashboard, and custom AgentCard delete controls now expose accessible names; AgentCard now separates selection and delete into distinct labelled buttons instead of nesting the delete action inside a selectable card. -- ComplianceDashboard report template/date controls and ComplianceTemplateModal create/edit fields now expose associated labels, stable name/autocomplete metadata, and token `focus-visible:ring-2` focus rings. -- All Workspaces and Wiki search inputs now have stable names/autocomplete metadata and visible focus-ring replacements. -- Files storage overview and file-browser scroll panes now expose named, keyboard-focusable regions with visible focus rings. -- Files new-folder and inline rename fields now expose accessible names, stable name/autocomplete metadata, disabled spellcheck for file names, and token focus rings. -- Files bulk Move and file Properties dialogs now expose named icon-only close controls with token focus rings, and the file row context menu preserves the file-specific Properties action. -- Chat composer and Vault add-secret controls now have accessible names plus stable `name`/autocomplete metadata; the Chat composer also has a token focus ring, and Vault refresh/edit/reveal/delete controls are named. -- Memory Center list/detail controls now expose stable search/select/editor metadata, focus rings for chips and actions, and named re-import/detail-editor paths. -- MemoryCard selection checkboxes now expose memory-specific accessible names plus stable name/value metadata. -- Memory Trust Manage search and correction editor now expose stable metadata and token focus rings. -- TimelineTab sidebar search, filter toggle, and minimum-importance slider now expose accessible names/label association, stable metadata, and token focus rings. -- TimelineApp event-type filtering now pairs its stable metadata with `autocomplete="off"`. -- EvolutionTab proposal review note now associates its label with the textarea, exposes stable metadata, and uses a token focus ring. -- EvolutionTab New Run modal now names the close icon and exposes associated labels, stable metadata, select/textarea autocomplete, and token focus rings for target, baseline, and schema controls. -- ConnectorCard row actions and Jira credential setup now expose stable email/token metadata, correct email/password semantics, disabled spellcheck, and visible focus rings. -- ExtensionCard marketplace inline connector-token paste now exposes connector-specific labels, stable name/autocomplete metadata, disabled spellcheck, and focus-ring coverage. -- InstallAuditPanel marketplace audit type filter now exposes stable name/autocomplete metadata and a token focus ring. -- ModelPilotCard budget threshold slider now exposes an accessible name, stable name, and token focus ring while preserving update behavior. -- TelemetryApp daily budget input now exposes stable name/autocomplete metadata. -- SkillEditorDrawer markdown textarea now exposes stable name/autocomplete metadata with spellcheck disabled. -- Agent template custom-agent, group-builder, and group-detail task-runner controls now expose stable labels/names/autocomplete metadata, visible focus rings, and `aria-pressed` strategy state. -- Agent Center templates search now exposes contextual accessible names plus stable name/autocomplete metadata for persona/group search. -- Automation Center template workspace and assist-mode controls now expose stable name/autocomplete metadata and token focus rings. -- AgentCard and GroupCard now separate selection and delete into distinct labelled buttons, remove invalid nested interactive structures, and replace broad transitions with explicit transition properties. -- SuggestedAgentCards now gives persona media explicit dimensions and replaces the browse affordance's broad transition with explicit color/transform transitions. -- CreateWorkspaceDialog now scopes chip, template, storage, persona, and agent-group transitions to explicit color/transform properties. -- WorkspaceSwitcher and PersonaSwitcher now scope switcher row/card transitions to explicit color properties. -- ConnectorCard, BrandTile, and McpCatalog now scope connector row, brand tile, distribution, and category-filter transitions to explicit properties. -- TelemetryApp, SurfaceToggle, and workspace TasksTab now scope meter, switch-knob, and delete-action transitions to explicit properties. -- ArtifactCenterApp, DashboardApp, HomeCockpit, and MarketplaceApp now close the remaining broad-transition backlog with explicit card/chip transition properties. -- SpawnAgentDialog launch task/new-workspace fields, McpCatalog catalog search, ArtifactCenterApp detail editor controls, ModelGate cloud-key/local-pull controls, inline CapabilityRequestCard connector-token entry, and TelegramDigestCard credential fields now expose associated labels or accessible names plus stable `name`/autocomplete metadata. -- AgentCenterRow now gives list-row persona media explicit dimensions in the rendered Agent Center route coverage. -- ReadyStep now gives the onboarding completion logo explicit dimensions. -- BootScreen and StatusBar now give persistent brand/logo media explicit dimensions. -- LoginBriefing, the ChatApp empty state, and SpawnAgentDialog persona picker/review media now give mascot/persona images explicit dimensions. -- First-run onboarding profile name/role, workspace-name, and first-task controls now expose stable name/autocomplete metadata. -- EraseDataDialog now associates the destructive confirmation label with the phrase field, adds stable name/autocomplete metadata, and exposes a token focus-visible ring. -- McpScopeDialog target-workspace select now exposes stable name/autocomplete metadata and a token focus-visible ring. -- CreateWorkspaceDialog visible setup fields, template search, template-creator AI/name fields, and folder-picker new-folder field now expose stable name/autocomplete metadata and accessible labels/names. -- AllWorkspacesApp search now pairs its stable metadata with an input-level token focus ring. -- WikiTab search now pairs stable metadata with an input-level token focus ring, and the Obsidian/Notion export target fields expose target-specific metadata and token focus rings. -- ArtifactCenterApp detail Kind select now pairs its stable metadata with a token focus ring. -- LauncherApp optional launch prompt now pairs its stable metadata with a token focus ring. -- The sampled runtime axe defects are closed: Model Pilot info is named and expanded-state aware, shared avatars default to decorative `alt=""` unless callers provide text, workspace tab panels use an allowed role host, file preview placeholders expose image labels, storage headings preserve order, toast close controls are named, and the persistent status bar is a labeled header landmark. -- Focused regression coverage: `settings-trust.test.tsx`, `timeline-app.test.tsx`, `wiki-export-trust.test.tsx`, `UserProfileApp.test.tsx`, `VaultApp.test.tsx`, `lane-c-input-power.test.tsx`, `launcher-a11y.test.tsx`, `p7-b1-approvals-error.test.tsx`, `p7-b5-error-threading.test.tsx`, `memory-center-trust.test.tsx`, `pr35-memory-trust-manage.test.tsx`, `CockpitApp.test.tsx`, `ComplianceDashboard.test.tsx`, `compliance-template-trust.test.tsx`, `AgentCard.test.tsx`, `GroupCard.test.tsx`, `SuggestedAgentCards.test.tsx`, `phase3b-agent-center.test.tsx`, `phase3c-agent-builder.test.tsx`, `phase3c-skill-builder.test.tsx`, `phase3c-automation-builder.test.tsx`, `phase3b-automation-center.test.tsx`, `AgentTemplateForms.test.tsx`, `phase4b-mcp-hub.test.tsx`, `phase4b-connector-hub.test.tsx`, `phase4b-marketplace-extend.test.tsx`, `StorageAndFilesApp.test.tsx`, `KnowledgeGraphViewer.test.tsx`, `HarvestTab.test.tsx`, `wave-w-briefing-entrance.test.tsx`, `wave-u-chat-action-row.test.tsx`, `SpawnAgentDialog.test.tsx`, `ModelGate.test.tsx`, `artifact-center-trust.test.tsx`, `pr4-inline-capability.test.tsx`, `TelegramDigestCard.test.tsx`, `WhoAreYouStep.test.tsx`, `WorkspaceCreateStep.test.tsx`, `FirstTaskStep.test.tsx`, `EraseDataDialog.test.tsx`, `shell-overlay-contracts.test.tsx`, the `/files` and Command Center branches of `tests/e2e/user-journeys.spec.ts`, and `tests/e2e/runtime-a11y.spec.ts`. - -## Command Center Runtime Result - -Using the exact existing E2E shortcut shape, `Control+k`: - -- Desktop: Command Center opens, focus lands in the search input, Escape closes it, no visible element overflow. -- Mobile 390 x 844: Command Center opens and Escape closes it, but long subtitles overflow the dialog width. -- Both desktop and mobile log: `Warning: Missing Description or aria-describedby={undefined} for {DialogContent}.` -- The dialog text still includes active `Pinned - Pro` copy, which is already covered by T3. - -Implementation update 2026-07-08 T10/T12: Command Center now includes a hidden dialog description, catalog subtitles render as their own truncating line, and `J-mobile: Command Center is described and fits at 390px` proves description, Escape close, and zero visible row overflow on a fresh production build. - -This refines the earlier mobile smoke: the failed close result came from an ad hoc uppercase shortcut path. The close path passes with the current E2E shortcut shape. The focused label-fit/dialog-description contract is now fixed, and the expanded route axe gate is green. - -## Source Owners To Verify During Implementation - -These are likely owners from source inspection; implementation must re-read the files immediately before editing. - -| Runtime finding | Likely source owner | -|---|---| -| Settings unnamed tooltip/icon button and unnamed Prompt Shape select | Fixed for the sampled route gate: telemetry toggle and Prompt Shape are named, and runtime axe is green. | -| Profile unnamed select and weak form metadata | Focused update landed for identity, writing-style, brand, and language controls; runtime axe includes `/settings/profile` and is green. | -| Launcher unnamed refresh icon button | Fixed for the sampled route gate: refresh and optional prompt controls are named, and runtime axe is green. | -| Approvals unnamed refresh/revoke icon buttons | Fixed for the sampled route gate: refresh and per-grant revoke controls are named, and runtime axe is green. | -| All-route smoke: additional placeholder-only or unassociated visible fields | Chat composer metadata/focus, Vault add-secret, Profile preference/brand controls and Analyze Style focus, Agent/Skill/Automation Builder fields, SkillEditorDrawer markdown editor, Automation Center template controls, Agent template custom-agent/group-builder/group-detail controls, Agent Center templates search, ExtensionCard inline connector-token paste, InstallAuditPanel audit filter, ModelPilotCard budget-threshold slider, TelemetryApp daily budget, Spawn Agent launch controls, Artifact Center search/create/detail controls, Agent Center search, Skills Hub search, ConnectorCard credential controls, Memory Center search/detail controls, MemoryCard selection checkbox labels/metadata, Memory Trust search/correction controls and focus rings, TimelineTab search/filter controls, TimelineApp event-type select metadata, EvolutionTab proposal review note and New Run modal controls, Knowledge Graph search/scope controls, Harvest import controls, Custom MCP form controls, MCP catalog search and scope select, ModelGate key/pull controls, inline capability connector-token entry, Telegram digest credentials, first-run onboarding profile/workspace/first-task controls, EraseDataDialog destructive confirmation, Create Workspace visible setup/template/folder-picker fields, Compliance Dashboard report options, Compliance Template form fields, Wiki search/export target controls, and Files new-folder/rename fields are fixed. Remaining representative owners are other less-traveled form surfaces outside the sampled route gate. | -| All-route smoke: additional unnamed icon-only controls | Vault refresh/edit/reveal/delete, WaggleDance refresh, Cockpit refresh, ComplianceDashboard report actions, AgentCard custom-delete/separate selection, GroupCard custom-delete/separate selection, Skill Builder reorder/remove controls, Files toolbar actions and move/properties dialog close controls, Mission Control refresh/pause/resume/stop controls, ConnectorCard row actions, Knowledge Graph toolbar/legend controls, and Harvest refresh/source actions are fixed. Remaining representative owners include broader modal controls outside the current gate. | -| Workspace `role="tabpanel"` axe warning | Fixed in `WorkspaceDesktopApp.tsx`; the tab panel now sits on a `section` instead of `main`, and the runtime axe gate is green. | -| Workspace/chat image or preview alt warning | Fixed through shared `AvatarImage` default alt text and file preview placeholder labeling; the runtime axe gate is green. | -| Files scrollable region and heading order | Fixed for sampled `/files` route: Storage and Files scroll panes are named/focusable, storage card headings preserve order, and runtime axe is green. | -| Command Center missing dialog description and mobile subtitle overflow | Focused update landed in `apps/web/src/components/os/overlays/CommandCenter.tsx`; unit coverage and `J-mobile: Command Center is described and fits at 390px` prove the dialog description and mobile row-fit contract. | -| Landmark `region` warning across many routes | Fixed in `StatusBar.tsx`; the persistent top chrome is now a labeled `header` landmark, and runtime axe is green. | - -## Correction Candidates - -| ID | Correction | Phase recommendation | Closure evidence | -|---|---|---|---| -| T10-H | Codify a small runtime a11y smoke using axe-core for the five-persona route set. | Fixed 2026-07-08 for sampled routes | `tests/e2e/runtime-a11y.spec.ts` covers Home, Settings, Profile, Vault, Mission Control, Memory, Chat, Agents, Waggle Dance, Launcher, MCP, Files, and Approvals in desktop/mobile and passes 2/2 on port `34193`. | -| T10-I | Add accessible names to icon-only buttons found at runtime. | Partially implemented 2026-07-08; Mission Control, ConnectorCard, Knowledge Graph, Harvest source controls, GroupCard delete, TimelineTab filter toggle, and Files dialog close controls fixed 2026-07-09 | Focused tests cover Settings telemetry, Launcher refresh, Approvals refresh/revoke, Vault actions, WaggleDance refresh, Cockpit refresh, ComplianceDashboard report actions, AgentCard custom-delete controls, GroupCard custom-delete controls, Files toolbar actions and move/properties dialog close controls, Mission Control refresh/pause/resume/stop controls, ConnectorCard row actions, Knowledge Graph toolbar/legend controls, Harvest refresh/source actions, and TimelineTab filter toggle; runtime axe confirms sampled `button-name` closure. Continue with remaining unsampled icon-only controls. | -| T10-J | Associate labels with native selects and add form metadata to high-traffic fields. | Partially implemented 2026-07-08; builder, route-search, ConnectorCard, ExtensionCard inline token paste, ModelPilotCard budget slider, AllWorkspaces search focus, Artifact Center detail Kind focus, Launcher prompt focus, TelemetryApp daily budget, SkillEditorDrawer markdown editor, Memory Center, MemoryCard selection checkbox labels/metadata, Memory Trust Manage, TimelineTab, EvolutionTab review note/New Run modal select/textarea metadata, Knowledge Graph, Harvest, Custom MCP, MCP scope select, agent template, Automation Center template controls, Agent Center templates search, InstallAuditPanel audit filter, Spawn Agent, ModelGate, Telegram, inline capability, first-run onboarding, EraseDataDialog, Create Workspace, compliance report/template, Chat composer focus, and Files inline-field/action metadata fixed 2026-07-09 | Focused tests cover Settings, Profile identity/preferences/brand and Analyze Style focus, Launcher prompt controls/focus, Chat composer metadata/focus, Vault add-secret controls, Agent/Skill/Automation Builder controls, SkillEditorDrawer markdown editor, Automation Center template controls, Agent template creator/detail controls, Agent Center templates search, ExtensionCard inline connector-token paste, InstallAuditPanel audit filter, ModelPilotCard budget-threshold slider, AllWorkspaces search focus, TelemetryApp daily budget, Spawn Agent launch controls, Artifact Center search/create/detail controls and detail Kind focus, Agent Center search, Skills Hub search, ConnectorCard credential controls, Memory Center search/detail controls, MemoryCard selection checkbox labels/metadata, Memory Trust search/correction controls and focus rings, TimelineTab search/filter controls, EvolutionTab proposal review note/New Run modal select/textarea controls, Knowledge Graph search/scope controls, Harvest import controls, Custom MCP form controls, MCP catalog search/scope controls, ModelGate key/pull controls, inline capability connector-token entry, Telegram digest credential controls, first-run onboarding profile/workspace/first-task controls, EraseDataDialog destructive confirmation, Create Workspace visible setup/template/folder-picker controls, Compliance Dashboard report options, Compliance Template form controls, and Files new-folder/rename fields; runtime axe is green for the sampled route set. Continue with remaining less-traveled forms. | -| T10-K | Fix keyboard access for scrollable route regions. | Fixed 2026-07-08 for sampled Files route | Focused tests cover the Storage overview and Files browser scroll panes as named `tabIndex=0` regions; runtime axe confirms sampled `scrollable-region-focusable` closure. | -| T10-L | Resolve workspace tab panel semantics and preview/image accessible text. | Fixed 2026-07-08 for sampled workspace route | Workspace/chat axe `aria-allowed-role` and `image-alt` findings are gone in `tests/e2e/runtime-a11y.spec.ts`. | -| T10-M | Add or correct Command Center dialog description and mobile long-label handling. | Focused fixed 2026-07-08 | Unit tests cover `DialogDescription` and truncating catalog subtitles; the mobile E2E route proves the dialog is described, closes with Escape, and has no visible row overflow at 390 x 844. | -| T10-N | Decide shell landmark strategy for StatusBar/top chrome. | Fixed 2026-07-08 | `StatusBar` is now a labeled `header` landmark; repeated axe `region` warnings are gone in the runtime gate. | - -## Current Recommendation - -Keep Phase 1 unchanged except for Settings controls touched by T2. The first T10 follow-up slices now include a repeatable runtime axe gate with zero sampled desktop/mobile violations across 13 routes, plus focused fixes for the highest-noise named-control findings, Files scroll-region keyboard access, toolbar controls, and inline new-folder/rename fields, workspace semantics/image text, shell landmarks, Chat/Profile/Vault metadata/action focus, Agent/Skill/Automation Builder metadata, SkillEditorDrawer markdown-editor metadata, Automation Center template metadata/focus, Agent template creator/detail metadata/focus, Agent Center templates search metadata, ExtensionCard inline connector-token metadata, InstallAuditPanel audit-filter metadata, TelemetryApp daily-budget metadata, Spawn Agent launch metadata, Artifact/Agent/Skills route search and detail metadata, ConnectorCard setup metadata/actions, Memory Center search/detail metadata, MemoryCard selection checkbox labels/metadata, Memory Trust search/correction metadata, TimelineTab search/filter metadata, EvolutionTab review-note/New Run modal metadata, Knowledge Graph toolbar/search/scope controls, Harvest import/source controls, Custom MCP form and catalog-search/scope metadata, ModelGate key/pull metadata, inline capability connector-token metadata, Telegram digest credential metadata, first-run onboarding profile/workspace/first-task metadata, EraseDataDialog destructive confirmation metadata/focus, Create Workspace visible setup/template/folder-picker metadata, Compliance Dashboard report-option metadata, Compliance Template form metadata/focus, Mission Control/Agents/WaggleDance icon controls, scoped production transition-all closure, AgentCenterRow media stability, ReadyStep media stability, BootScreen/StatusBar media stability, LoginBriefing/Chat/SpawnAgentDialog media stability, and Command Center description/mobile fit. Final judge scoring still needs any remaining unsampled form metadata outside the covered surfaces, remaining unsampled icon-only controls, and modal focus-return evidence. diff --git a/docs/audits/2026-07-08-shell-overlays-t10-t12-analysis.md b/docs/audits/2026-07-08-shell-overlays-t10-t12-analysis.md deleted file mode 100644 index 375db4f..0000000 --- a/docs/audits/2026-07-08-shell-overlays-t10-t12-analysis.md +++ /dev/null @@ -1,119 +0,0 @@ -# Shell Overlay T10/T12 Analysis - -Status: focused supplement with partial Phase 2 implementation update. The original evidence remains as the pre-fix baseline; the update below records the current post-fix state for the shell overlay contract slice. - -Purpose: verify the shell overlays and interruption surfaces that users hit while navigating, switching context, spawning agents, creating workspaces, handling notifications, and seeing tier gates. - -## Evidence - -- Built current web bundle with `npm run build`: pass. Vite emitted the existing Tailwind arbitrary-value warnings, one dynamic/static import warning for `shape-selection.ts`, and the large main chunk warning. -- Started a fresh sidecar on `http://127.0.0.1:3437` with isolated `WAGGLE_DATA_DIR`, mock embeddings, marketplace sync disabled, and `--skip-litellm`. -- Ran Playwright desktop smoke at 1440 x 980: - - `output/playwright/shell-overlays-3437/summary.json` - - screenshots `00-baseline.png` through `07-upgrade-modal.png` -- Ran Playwright mobile smoke at 390 x 844: - - `output/playwright/shell-overlays-3437/mobile-summary.json` - - screenshots `mobile-00-baseline.png` through `mobile-03-create-workspace.png` -- Source inspected: - - `apps/web/src/components/os/overlays/NotificationInbox.tsx` - - `apps/web/src/components/os/overlays/KeyboardShortcutsHelp.tsx` - - `apps/web/src/components/os/overlays/ContextRail.tsx` - - `apps/web/src/components/os/overlays/CreateWorkspaceDialog.tsx` - - `apps/web/src/components/os/overlays/PersonaSwitcher.tsx` - - `apps/web/src/components/os/overlays/SpawnAgentDialog.tsx` - - `apps/web/src/components/os/overlays/WorkspaceSwitcher.tsx` - - `apps/web/src/components/os/overlays/UpgradeModal.tsx` - - `apps/web/src/components/os/overlays/TrialExpiredModal.tsx` - - `apps/web/src/components/os/overlays/OnboardingTooltips.tsx` - -## Runtime Results - -| Surface | Desktop result | Mobile result | Verdict | -|---|---|---|---| -| Keyboard Shortcuts | `role="dialog"`, labelled, focus contained, Escape closes | Not sampled in mobile smoke | Pass for desktop shell path. | -| Persona Switcher | `role="dialog"`, labelled, focus contained, Escape closes | Not sampled in mobile smoke | Pass for desktop shell path. | -| Spawn Agent | Opens and closes with Escape; task/model flow renders | Opens without horizontal overflow | Mostly pass; Radix dialog focus works, but model/task controls still need T10 form detail in the wider accessibility pass. | -| Workspace Switcher | `role="dialog"`, labelled, focus contained | Entry to Create Workspace works | Pass for isolated open/close; T4 route-trap issue remains separate. | -| Upgrade Modal | `role="dialog"`, labelled, focus contained, Escape closes, named close action. Rendered event path covered by `J3c`. | Not sampled in mobile smoke | Pass for the sampled tier-interruption contract; broader billing/upgrade flow remains outside this overlay slice. | -| Notification Inbox | Pre-fix: opened visually with no `role="dialog"`/landmark, Escape left it open, 2 unnamed icon buttons. Post-fix: named dialog, focus trap, Escape close, named mark-all/close actions, and no horizontal entrance motion that can overflow mobile. | Mobile Executive bundle now captures Notification Inbox at 390 x 844 with 0 visible overflow and screenshot evidence. | Pass for the codified overlay contract; keep broader notification content states in T12. | -| Create Workspace | Pre-fix: no labelled dialog, Escape left it open, unnamed icon buttons, native template-delete `confirm()`. Post-fix: named main dialog plus named Folder Picker / Template Creator subdialogs, focus traps, Escape close, named close/template/share actions, and in-app template-delete confirmation. | Post-fix 390 x 844 rendered path prioritizes name, storage, optional template disclosure, and a visible Create action without horizontal overflow. | Partial: sampled T10/T7/mobile hierarchy contracts are fixed; final score still needs screenshot refresh and broader route/state evidence. | -| Context Rail | Post-fix component evidence: labelled `complementary` panel, named close action, and expandable item state. | Source-only for mobile | Pass for source/component-level landmark contract; full rendered entry states still need route-specific evidence. | -| Onboarding Tooltips | Post-fix component evidence: named non-modal dialog, `aria-modal="false"`, and global Escape dismissal that records the dismissed state. | Source-only for mobile | Pass for the semantic decision and keyboard dismiss contract; final score still needs broader first-run/mobile state evidence. | -| Trial Expired Modal | Source-only: labelled dialog/focus trap exists; post-fix component evidence covers named close action. | Source-only | Pass for the close-label contract; full trial-expired account state remains T12/billing evidence. | - -The desktop and mobile runs reproduced the same T1 Clerk/CSP console errors already recorded in the first-run supplement. They are not new overlay findings, but they keep the standard local audit lane noisy until T1 is fixed. - -## Findings - -### P1-19: Shell overlays do not share a consistent accessibility/close contract - -Implementation update 2026-07-08: - -- `NotificationInbox.tsx` now uses `useFocusTrap`, `role="dialog"`, `aria-modal`, a labelled title, Escape close, and explicit labels for "Mark all notifications as read" and "Close notifications". -- `CreateWorkspaceDialog.tsx` now uses `useFocusTrap`, `role="dialog"`, `aria-modal`, a labelled title, Escape close, and explicit labels for close, template select/duplicate/edit/delete, the share toggle, Folder Picker, and Template Creator. -- `ContextRail.tsx` now exposes the rail as a labelled complementary panel and gives the close icon a name. -- `OnboardingTooltips.tsx` now has an explicit non-modal dialog contract and Escape dismissal without trapping focus. -- `UpgradeModal.tsx` and `TrialExpiredModal.tsx` now give their close icon controls accessible names. -- Codified component evidence: `npm run test -w apps/web -- src/test/shell-overlay-contracts.test.tsx --reporter=dot` passed 1 file / 8 tests after adding Create Workspace hierarchy and subdialog assertions. -- Codified rendered evidence: `tests/e2e/user-journeys.spec.ts` includes `J3b: notification and create-workspace overlays have dialog close contracts`, `J3c: tier interruption modal exposes a named close contract`, and `J-mobile: create workspace prioritizes primary setup at 390px width`. `J3b` passed previously on port `34151`; focused `J3c` passed on port `34153`; the earlier full journey suite passed 18/18 on port `34155`; focused `J-mobile` passed on port `34157`; the expanded full journey suite passed 19/19 on port `34158`. Current five-persona evidence adds Mobile Executive Notification Inbox and Command Center overlay screenshots with 0 visible overflow in the 5/5 run on port `34267`. -- Browser-plugin spot check attempted on port `34154`, but the in-app Browser DOM snapshot path failed with `incrementalAriaSnapshot is not a function`; Playwright remains the reliable rendered evidence lane for this slice. -- Remaining P1-19 scope: route-specific rendered evidence for Context Rail/Onboarding Tooltips/trial-expired states is still open. - -Evidence: - -- `NotificationInbox.tsx:38-60` renders a fixed overlay with click-to-close but no dialog/menu role, no labelled container, no focus trap, and no Escape close handler. Runtime: `notifications-after-escape.stillVisible = true`. -- `NotificationInbox.tsx:57` and `:60` expose icon-only actions without accessible names for "mark all read" and "close"; the tooltip is not a reliable button name. -- `CreateWorkspaceDialog.tsx:757-766` renders the main creation overlay without `role="dialog"`, `aria-modal`, `aria-labelledby`, or the shared `useFocusTrap`; runtime: `create-workspace-after-escape.stillVisible = true`. -- `CreateWorkspaceDialog.tsx:857`, `:867`, `:910`, `:918`, and neighboring icon-only actions are visible controls without accessible names; runtime counted 16 visible unnamed icon buttons while the dialog was open. -- `ContextRail.tsx:62-75` renders a fixed side rail and close button without a labelled landmark or accessible close name. -- `OnboardingTooltips.tsx:97-137` renders a centered overlay with "Dismiss all" and "Next/Got it" actions but no explicit modal/non-modal semantics or keyboard close path. -- `UpgradeModal.tsx:90` and `TrialExpiredModal.tsx:58-62` have modal focus behavior, but their close icon buttons are unnamed. - -Correction: - -- Define one shared overlay contract: modal overlays use `role="dialog"`, `aria-modal`, `aria-labelledby`/description where useful, `useFocusTrap`, Escape close, focus restore, and named close/action icon buttons. -- Non-modal panels use a labelled landmark such as `aside aria-label`, remain keyboard reachable, do not trap focus, and provide an explicit close button name. -- Codify Notification Inbox, Create Workspace, Context Rail, Onboarding Tooltips, Upgrade Modal, and Trial Expired Modal in a focused overlay smoke. - -Closure evidence: - -- Desktop and 390 x 844 screenshots for the changed overlays. -- DOM evidence that all high-frequency overlays have an accessible name and expected role/landmark. -- Keyboard evidence: open, Tab/Shift+Tab, Escape or named close, focus return. -- No visible unnamed icon-only buttons in the sampled overlay DOM. - -### P1-20: Create Workspace is too dense and template-first on mobile - -Implementation update 2026-07-08: - -- Template deletion no longer uses native `confirm()`. It now opens an in-app confirmation dialog that names the template and says existing workspaces are not changed. -- The mobile Create Workspace path now starts with required setup, keeps templates behind a "Start from template" disclosure, and keeps the Create action in a visible footer on the 390 x 844 rendered path. -- This closes the sampled T7 template-management and mobile hierarchy portions of P1-20, but the final score still needs refreshed screenshots and broader route/state evidence. - -Evidence: - -- Historical desktop screenshot `06-create-workspace.png` showed a long, dense creation modal that began with template category filters, search, template cards, then finally the workspace name and storage controls. -- Historical mobile screenshot `mobile-03-create-workspace.png` showed the first 390 x 844 viewport dominated by template controls, with storage continuation and Create/Cancel requiring internal scrolling. -- Current focused evidence: component contract asserts the name field precedes optional templates and that template search is absent until "Start from template"; rendered `J-mobile` asserts required setup, visible Create action, progressive template search, and no horizontal overflow at 390 x 844. - -Correction: - -- Make the primary creation path obvious first: name, storage type/path, and Create/Cancel should be reachable without hunting. -- Move template search/grid into a collapsed or secondary "Start from template" area on narrow screens, or use progressive disclosure with a clear selected-template summary. -- Keep destructive template management branded and named; no native `confirm()`. - -Closure evidence: - -- 390 x 844 screenshot refresh where the required fields and primary action are visible or clearly sticky/reachable. -- Keyboard-only create path proof. -- Template management proof with in-app confirmation. - -## What Already Looks Good - -- Keyboard Shortcuts, Persona Switcher, Workspace Switcher, Upgrade Modal, Login Briefing, and Trial Expired Modal use the shared focus trap or Radix dialog patterns in source. -- Spawn Agent has a coherent two-step flow, clear "Review & Launch" affordance, and useful no-key/no-model copy. It should remain in T10 only for detailed form semantics and model-selection evidence. -- Upgrade Modal copy is aligned with Solo/Team and visually clear; the sampled close-label gap is now fixed. - -## Recommendation - -Keep Phase 1 unchanged. Treat the core shell overlay contract as Phase 2 partially fixed: Notification Inbox, Command Center, Create Workspace primary/subdialog contracts, Context Rail, Onboarding Tooltips, tier close labels, and the sampled Create Workspace mobile hierarchy now have focused coverage. Continue Phase 2 with route-specific overlay state evidence for less common states and the broader trust-critical native dialog queue. diff --git a/docs/audits/2026-07-08-source-inventory-consistency-audit.md b/docs/audits/2026-07-08-source-inventory-consistency-audit.md deleted file mode 100644 index f720929..0000000 --- a/docs/audits/2026-07-08-source-inventory-consistency-audit.md +++ /dev/null @@ -1,219 +0,0 @@ -# Source Inventory Consistency Audit - 2026-07-08 - -Status: analysis supplement. No product code was changed. - -Purpose: compare the UX audit packet against the current source inventory so the final "complete UX" claim does not silently miss reachable routes, command destinations, apps, packages, or non-main user surfaces. - -Deeper T19 follow-up: `docs/audits/2026-07-08-browser-companion-t19-analysis.md`. - -## Commands - -```powershell -Get-Content apps/web/src/App.tsx -Get-Content apps/web/src/lib/routes.ts -Get-Content apps/web/src/lib/dock-tiers.ts -Get-Content apps/web/src/lib/command-catalog.ts -Get-ChildItem apps -Directory -Get-ChildItem packages -Directory -Get-ChildItem apps/www/app -Recurse -File -Get-ChildItem apps/browser-ext -Recurse -File -rg -n "browser-ext|WAGGLE_BROWSER_EXT|WAGGLE_DEV_ALLOW_ANY_EXTENSION|chrome-extension" packages apps tests docs --glob '!docs/audits/2026-07-08-*.md' -node --check apps/browser-ext/popup.js -node --check apps/browser-ext/background.js -node --check apps/browser-ext/content.js -npx tsc --noEmit --project packages/server/tsconfig.json -Test-NetConnection 127.0.0.1 -Port 3333 -``` - -## In-App Route Registry Check - -Source: `apps/web/src/App.tsx`. - -Result: every production shell route is represented in `docs/audits/2026-07-08-ux-route-scenario-manifest.md`. - -Routes verified: - -```text -/auth -/ -> /home -/home -/workspaces -/workspaces/:workspaceId/:tab? -/memory/:mindScope? -/artifacts -/files -/agents -/automations -/skills -/room -/waggle-dance -/approvals -/connectors -/mcps -/marketplace -/launcher -/team -/settings -/settings/vault -/settings/profile -/settings/mission-control -/settings/timeline -/settings/events -/settings/usage -/benchmarks -/platform -/payment-success -/payment-cancelled -* -``` - -Notes: - -- `/motion-spec` is registered only under `import.meta.env.DEV`, outside the AppShell subtree. It is a development reference surface, not part of the production five-persona score, unless the user explicitly asks to judge developer-only visual tooling. -- The index route is represented in the manifest as `/ -> /home`; the automated string check did not count the separate index element because it has no `path` string. - -## Dock And Command Destination Check - -Sources: - -- `apps/web/src/lib/routes.ts` -- `apps/web/src/lib/dock-tiers.ts` -- `apps/web/src/lib/command-catalog.ts` - -Result: dock/app route destinations are represented in the manifest. Two command-query destinations need explicit evidence ownership because they are real user-facing command outcomes: - -```text -apps/web/src/lib/command-catalog.ts:75 - /launcher?watch=1 -apps/web/src/lib/command-catalog.ts:78 - /settings?tab=billing -``` - -Correction owner: T11 route evidence. These are not new top-level routes, but the final judge packet should prove the watch-mode Launcher state and billing-tab deep link, or explicitly defer them. - -The same source check also reinforces T3: - -```text -apps/web/src/lib/command-catalog.ts:113 - heading "Pinned - Pro" is active Command Center copy -apps/web/src/lib/dock-tiers.ts:81 - stale Pro comment in approvals copy context -``` - -## Apps Inventory - -Current `apps/` inventory: - -```text -apps/browser-ext - no package.json; Chrome MV3 extension -apps/web - package.json; main installed cockpit UI -apps/www - package.json; public launch funnel -``` - -Audit consequence: - -- `apps/web` is the main installed product surface. -- `apps/www` is already T13. -- `apps/browser-ext` was underrepresented in the July UX packet and should be a separate non-main gate because it is a real user-facing capture surface. - -## Package Inventory - -Current `packages/` inventory contains 28 package workspaces: - -```text -admin-web -agent -cli -core -hive-mind-cli -hive-mind-core -hive-mind-hooks-claude-code -hive-mind-hooks-claude-desktop -hive-mind-hooks-codex -hive-mind-hooks-codex-desktop -hive-mind-hooks-core -hive-mind-hooks-cursor -hive-mind-hooks-hermes -hive-mind-hooks-openclaw -hive-mind-mcp-server -hive-mind-shim-core -hive-mind-wiki-compiler -launcher -marketplace -memory-mcp -optimizer -sdk -server -shared -waggle-dance -weaver -wiki-compiler -worker -``` - -Audit consequence: - -- The July packet's T15/T16/T17 grouping covers these packages by role, but future AGENTS/docs language that says "27 packages" is stale against current source. -- `hive-mind-hooks-core` is a package workspace and should stay in T16/T17 verification command scope, even though it is not a launchable AI-tool adapter. - -## Public Site Inventory - -Current `apps/www/app` route/API files: - -```text -/ -/account -/sign-in/[[...sign-in]] -/sign-up/[[...sign-up]] -/docs/methodology -/design/personas -/privacy -/terms -/cookies -/eu-ai-act -/api/stripe/checkout -/api/webhooks/stripe -``` - -Audit consequence: - -- T13 already covers homepage, account/auth, methodology, legal pages, checkout, and webhook/deploy shape. -- `/design/personas` should be treated as a public/supporting route if public-site route evidence is expanded. It does not affect Phase 1. - -## Browser Companion Inventory - -Current files: - -```text -apps/browser-ext/manifest.json -apps/browser-ext/popup.html -apps/browser-ext/popup.js -apps/browser-ext/background.js -apps/browser-ext/content.js -apps/browser-ext/README.md -``` - -Source contract: - -- `apps/browser-ext/README.md` presents the surface as "Waggle Companion", a Chrome MV3 extension for saving pages/selections to workspace memory. -- `packages/server/src/local/routes/browser-ext.ts` exposes `GET /api/browser-ext/session-token` and `GET /api/browser-ext/health`. -- `packages/server/src/local/cors-config.ts` gates extension origins through `WAGGLE_BROWSER_EXT_IDS` or the dev-only `WAGGLE_DEV_ALLOW_ANY_EXTENSION=1`. -- `apps/browser-ext/background.js` calls `/api/browser-ext/session-token`, `/api/browser-ext/health`, and `/api/memory/frames`. - -Current evidence gap: - -- The T19 follow-up loaded the unpacked extension in Chromium and captured a disconnected popup screenshot at `output/playwright/browser-companion-disconnected-state.png`. -- JS syntax, manifest parse, and `packages/server` typecheck pass. -- The secure-default live smoke proves content-script extraction from a normal page, MV3 service-worker no-Origin header handling, token bootstrap during save, background save through `chrome.runtime.sendMessage`, and `/api/memory/frames` imported-frame confirmation. The popup keyboard/click smoke proves Tab order across popup actions, visible Save selection focus, Enter-to-save selection, Save page UI click, frame creation, `/api/memory/search` `source: import` provenance for both captures, and restricted-page disabled-state/recovery behavior. -- Remaining evidence gaps: native toolbar-bubble proof, native context-menu click flow, CORS-denied screenshot with a real extension origin, signed release-package proof if scored, and any future scored recall result shape. Stable packaged-ID sidecar pairing is now covered by `output/playwright/browser-companion-toolbar-3333/packaged-id-pairing-summary.json`, and existing chat `auto_recall`/catch-up imported provenance is covered by `packages/agent/tests/orchestrator-recall-hardening.test.ts`. - -Recommended ticket: T19, Browser Companion Extension UX Gate. - -Suggested acceptance: - -- Load unpacked extension in Chromium with a fresh sidecar and extension origin allowlist. -- Verify connected and disconnected popup states. -- Verify save selected text and save whole page produce visible extension feedback and a memory frame in Waggle. -- Verify CORS-denied state tells the user how to start or configure Waggle. -- Verify popup accessibility basics beyond the proven keyboard/focus path if screen-reader announcement behavior enters scoring. -- Either add automated smoke evidence or explicitly defer the extension from the five-persona score. - -## Phase Impact - -This supplement does not change Phase 1. It adds T19 as a final-product gate after the in-app P0 blockers are cleared. diff --git a/docs/audits/2026-07-08-state-failure-t12-analysis.md b/docs/audits/2026-07-08-state-failure-t12-analysis.md deleted file mode 100644 index 015faf4..0000000 --- a/docs/audits/2026-07-08-state-failure-t12-analysis.md +++ /dev/null @@ -1,140 +0,0 @@ -# Focused T12 State and Failure Bundle Analysis - -Status: implementation follow-up in progress; this file now records guarded scorecard contracts and current browser evidence. - -Purpose: the state/failure matrix defines the dimensions; this supplement records the current command/source evidence and converts T12 into the concrete bundle contract each judge persona must satisfy before a 9/10 score is credible. - -Guideline source refreshed during this pass: Vercel Web Interface Guidelines, `https://raw.githubusercontent.com/vercel-labs/web-interface-guidelines/main/command.md`. The rules most relevant to T12 are destructive actions using confirmation/undo instead of immediate action, URL-state clarity for stateful UI, inline error/focus behavior, visible focus, long-content handling, and large-list performance. - -## Current Command Evidence - -| Evidence | Result | What it proves | What it does not prove | -|---|---:|---|---| -| `npm run test -w apps/web -- src/test/p1b-authgate-surfaces.test.tsx src/test/p4-onboarding-status.test.ts src/test/wave-t-onboarding-boot-gate.test.ts src/test/pr7a-billing.test.tsx src/test/phase5b-backup.test.tsx src/test/p7-b4-files-error.test.tsx src/test/phase4b-connector-hub.test.tsx src/test/phase4b-mcp-hub.test.tsx src/test/p7-b1-approvals-error.test.tsx --run` | Pass, 9 files / 79 tests | Auth-gate surfaces, onboarding status/boot gates, billing/payment states, backup status classification, files errors, connector hub, MCP hub, and approvals error cases have healthy focused component/unit coverage. | It is not a rendered route, viewport, console, or five-persona state-bundle run. | -| `tests/e2e/failure-injection/network-drop.spec.ts` source inspection | Existing coverage found | Chat SSE hard drop, truncated stream after one token, and retry after dropped stream are represented as browser failure-injection scenarios. | The spec was not rerun in this focused T12 pass, and it covers chat stream failure rather than sidecar/offline/Stripe/marketplace failure broadly. | -| Fresh built-app route smoke, port 3407 | Mixed | `/payment-cancelled` redirects to `/settings?tab=billing`, which is useful Team Admin payment-recovery state evidence; `/benchmarks` and `/platform` also render meaningful shell content. | The smoke is ad hoc, not codified; all three routes emit the existing T1 CSP/Clerk console errors, and payment recovery copy still needs judge inspection. | -| Fresh thin-route smoke, port 3411 | Mixed | Engineer, Researcher, Team Admin, and Mobile Executive state bundles now have ad hoc rendered evidence for Launcher/watch, WaggleDance, Artifacts, Profile, Timeline, Payment Success fallback, Automations, MCP Hub, Usage & Cost, and Files. | The smoke is ad hoc, not codified; all routes emit T1 CSP/Clerk errors, Launcher can log a detect-in-flight adapter error, Usage & Cost logs a 403 resource error, and primary workflow states are still untested. | -| `J-route-coverage` Playwright tests, port 34139 | Pass, 2 tests | Codifies route-level state inputs for Engineer (`/launcher`, `/launcher?watch=1`, `/mcps`, `/files`), Researcher (`/artifacts`, `/settings/timeline`), Team Admin (`/payment-success`, `/payment-cancelled`), and Mobile Executive/Profile (`/settings/profile`, `/settings/usage`). | This is rendered shell/recovery-copy proof only; it does not exercise destructive actions, real checkout provider return, Launcher hook lifecycle, MCP install/verify, file upload, or failure-state bundles. | -| Fresh Mobile Executive smoke, port 3419 | Mixed | A 390 x 844 rendered lane now has screenshots for Home, Settings general/models/billing/profile, Memory, workspace chat, Command Center, and Workspace Switcher. It proves the routes render and that Workspace Switcher can close with Escape on mobile. | The smoke is ad hoc, not codified; every route still emits T1 CSP/Clerk errors; Settings has visible clipped/squeezed controls despite clean document scroll width; Memory/chat tab strips overflow; Command Center remained visible after Escape and logged a missing dialog description warning. | -| `npx playwright test tests/e2e/five-persona-state-bundles.spec.ts --project=chromium --reporter=list`, port 34245 | Pass, 5 tests | Codifies rendered state bundles plus one failure probe for all five judge personas and writes `state-bundle.md`/`.json` plus screenshots under `output/playwright/five-persona-state-bundles/`. Current capture has 0 critical console errors, 0 page errors, 0 critical network failures, 0 visible overflow, and overlay close proof where required. | It is still a no-LLM/accountless smoke; it does not prove authenticated Teams, real checkout, packaged desktop, hook lifecycle, file upload, every destructive/failure recovery path, or final judge scoring. | -| `npx playwright test tests/e2e/five-persona-state-bundles.spec.ts --project=chromium --grep "mobile-executive" --reporter=list`, port 34244 | Pass, 1 test | Rebuilt after the workspace tab and chat agent-strip mobile fixes; regenerated Mobile Executive evidence now reports 0 visible horizontal overflow items on Home, Settings, Memory, and mobile chat backend-offline failure at 390 x 844. | It only rechecks the Mobile Executive bundle; broader authenticated/mobile Team paths still need targeted evidence. | -| `npx playwright test tests/e2e/five-persona-state-bundles.spec.ts --project=chromium --reporter=list --retries=0`, port 34270 with matched `WAGGLE_E2E_BASE_URL` | Pass, 5 tests | Regenerates all five persona bundles with route, failure, and overlay evidence. Mobile Executive captures Notification Inbox plus Command Center screenshots; Engineer captures Marketplace unavailable; Team Admin captures backup restore failure. The run enforces 0 critical console/page/network failures and 0 visible overflow across routes, failures, and overlays. | It is still an accountless/no-LLM bundle; authenticated Teams, real checkout, packaged desktop, hook lifecycle, file upload, Stripe/model/health failure states, and final judge scoring remain outside this proof. | -| `npx playwright test tests/e2e/five-persona-state-bundles.spec.ts --project=chromium --grep "engineer-power-user\|team-admin-security-reviewer" --reporter=list --retries=0`, port 34269 with matched `WAGGLE_E2E_BASE_URL` | Pass, 2 tests | Regenerates Engineer and Team Admin bundles with `marketplace-unavailable` and `backup-restore-failure` probes. Both bundles report 0 visible overflow, 0 critical console errors, 0 page errors, and 0 critical network failures, with screenshots under `output/playwright/five-persona-state-bundles/`. | It is still an accountless/no-LLM bundle; Stripe unavailable/cancelled, local model unavailable, health degradation, authenticated Teams, packaged desktop, hook lifecycle, file upload, and final judge scoring remain outside this proof. | -| `npx playwright test tests/e2e/five-persona-state-bundles.spec.ts --project=chromium --grep "engineer-power-user\|team-admin-security-reviewer\|mobile-executive" --reporter=list --retries=0`, port 34272 with matched `WAGGLE_E2E_BASE_URL` | Pass, 3 tests | Focused verification for the newly expanded T12-C probes: Engineer now captures Cockpit `mission-control-health-degraded`, Team Admin captures `billing-checkout-unavailable`, and Mobile Executive captures `local-model-runtime-unavailable`. The run reports 0 critical console/page/network failures and 0 visible overflow for the touched bundles. | It is still an accountless/no-LLM bundle; authenticated Teams, real checkout provider success/cancel, packaged desktop, hook lifecycle, file upload, and final judge scoring remain outside this proof. | -| `npx playwright test tests/e2e/five-persona-state-bundles.spec.ts --project=chromium --reporter=list --retries=0`, port 34273 with matched `WAGGLE_E2E_BASE_URL` | Pass, 5 tests | Regenerates all five persona bundles after the expanded failure probes. The current bundle includes chat backend offline, Memory API unavailable, Launcher sidecar offline, Cockpit health degraded, Marketplace unavailable, billing checkout unavailable, backup create failure, backup restore failure, local model runtime unavailable, mobile chat backend offline, Notification Inbox, Command Center, and Workspace Switcher evidence, with 0 critical console/page/network failures and 0 visible overflow. | It is still an accountless/no-LLM bundle; authenticated Teams, real checkout provider success/cancel, packaged desktop, hook lifecycle, file upload, scale/performance states, and final judge scoring remain outside this proof. | -| `npx playwright test tests/e2e/five-persona-state-bundles.spec.ts --project=chromium --grep "engineer-power-user" --reporter=list --retries=0`, port 34274 with matched `WAGGLE_E2E_BASE_URL` | Pass, 1 test | Focused verification for the Files upload failure lane. The Engineer bundle now captures `files-upload-failure`: a failed `/api/workspaces/:id/files/upload` shows branded `Upload failed` recovery copy and does not render the failed filename as a successful file row. The bundle reports 0 critical console/page/network failures and 0 visible overflow. | It is still an accountless/no-LLM focused slice; authenticated Teams, real checkout provider success/cancel, packaged desktop, hook lifecycle, scale/performance states, and final judge scoring remain outside this proof. | -| `npx playwright test tests/e2e/five-persona-state-bundles.spec.ts --project=chromium --reporter=list --retries=0`, port 34275 with matched `WAGGLE_E2E_BASE_URL` | Pass, 5 tests | Regenerates the full five-persona bundle after the Files upload-failure fix. The current full bundle includes all previous sampled probes plus `files-upload-failure`, and reports 0 critical console/page/network failures and 0 visible overflow. | It is still an accountless/no-LLM bundle; authenticated Teams, real checkout provider success/cancel, packaged desktop, hook lifecycle, scale/performance states, and final judge scoring remain outside this proof. | -| `npm run test -- packages/server/tests/local/files-upload-multipart.test.ts --reporter=dot` | Pass, 1 test | Regresses the real browser multipart boundary that previously returned Fastify `415 FST_ERR_CTP_INVALID_MEDIA_TYPE`; upload now returns `201`, the file entry shape is `/successful-upload.md`, and `/files/list` returns the uploaded file. | This is server-route proof only; it does not prove the rendered Files UI without the Playwright bundle. | -| `npx playwright test tests/e2e/five-persona-state-bundles.spec.ts --project=chromium --grep "engineer-power-user" --reporter=list --retries=0`, port 34278 with matched `WAGGLE_E2E_BASE_URL` | Pass, 1 test | Focused verification for the successful Files upload workflow. The Engineer bundle now captures `files-upload-success`: the upload response is `ok`, returns `{ name: 'successful-upload.md', path: '/successful-upload.md' }`, and the Files UI renders the uploaded filename with 0 visible overflow. | It is still an accountless/no-LLM focused slice; authenticated Teams, real checkout provider success/cancel, packaged desktop, hook lifecycle, scale/performance states, and final judge scoring remain outside this proof. | -| `npx playwright test tests/e2e/five-persona-state-bundles.spec.ts --project=chromium --reporter=list --retries=0`, port 34279 with matched `WAGGLE_E2E_BASE_URL` | Pass, 5 tests | Regenerates the full five-persona bundle after the multipart upload fix. The current Engineer bundle includes `files-upload-failure` and `files-upload-success`; the full run reports 0 critical console/page/network failures and 0 visible overflow. | It is still an accountless/no-LLM bundle; authenticated Teams, real checkout provider success/cancel, packaged desktop, hook lifecycle, scale/performance states, and final judge scoring remain outside this proof. | -| `npx playwright test tests/e2e/five-persona-state-bundles.spec.ts --project=chromium --grep "engineer-power-user" --reporter=list --retries=0`, port 34280 with matched `WAGGLE_E2E_BASE_URL` | Pass, 1 test | Focused verification for a sampled Files large-list state. The Engineer bundle now captures `files-large-list`: `/api/workspaces/:id/files/list` is mocked with 240 files, the Files UI renders `bulk-file-000.md`, shows `240 items`, and reports 0 visible overflow. | It is still one large-list slice; broader memory/event/marketplace/agent/file scale and slow-data states remain outside this proof. | -| `npx playwright test tests/e2e/five-persona-state-bundles.spec.ts --project=chromium --reporter=list --retries=0`, port 34281 with matched `WAGGLE_E2E_BASE_URL` | Pass, 5 tests | Regenerates the full five-persona bundle after the Files large-list probe. The current Engineer bundle includes `files-upload-failure`, `files-upload-success`, and `files-large-list`; the full run reports 0 critical console/page/network failures and 0 visible overflow. | It is still an accountless/no-LLM bundle; authenticated Teams, real checkout provider success/cancel, packaged desktop, hook lifecycle, broader scale/performance states, and final judge scoring remain outside this proof. | -| `npx playwright test tests/e2e/five-persona-state-bundles.spec.ts --project=chromium --grep "engineer-power-user" --reporter=list --retries=0`, port 34282 with matched `WAGGLE_E2E_BASE_URL` | Pass, 1 test | Focused verification for a sampled Marketplace large-catalog state. The Engineer bundle now captures `marketplace-large-catalog`: `/api/marketplace`, `/api/connectors`, and `/api/mcps` are mocked as a 240-entry catalog, and the Marketplace UI renders `Bulk Skill 000` plus grouped counts for `Skills 120`, `Connectors 60`, and `MCPs 60` with 0 visible overflow. | It is still one marketplace scale slice; broader memory/event/agent scale, slow-data states, and deeper performance evidence remain outside this proof. | -| `npx playwright test tests/e2e/five-persona-state-bundles.spec.ts --project=chromium --reporter=list --retries=0`, port 34283 with matched `WAGGLE_E2E_BASE_URL` | Pass, 5 tests | Regenerates the full five-persona bundle after the Marketplace large-catalog probe. The current Engineer bundle reports 7 failure/scale probes, including `marketplace-unavailable`, `marketplace-large-catalog`, `files-upload-failure`, `files-upload-success`, and `files-large-list`; the full run reports 0 critical console/page/network failures and 0 visible overflow. | It is still an accountless/no-LLM bundle; authenticated Teams, real checkout provider success/cancel, packaged desktop, hook lifecycle, remaining broader scale/performance states, and final judge scoring remain outside this proof. | -| `npx playwright test tests/e2e/five-persona-state-bundles.spec.ts --project=chromium --grep "researcher" --reporter=list --retries=0`, port 34284 with matched `WAGGLE_E2E_BASE_URL` | Pass, 1 test | Focused verification for a sampled Memory large-list state. The Researcher bundle now captures `memory-large-list`: bare `/api/memory?...limit=200` is mocked with 200 unique memories, and the Memory Center list renders `200 memories` plus `Bulk Memory 000` with 0 visible overflow and 0 critical console/page/network failures. | It is still one memory scale slice; broader event/agent scale, slow-data states, and deeper performance evidence remain outside this proof. | -| `npx playwright test tests/e2e/five-persona-state-bundles.spec.ts --project=chromium --reporter=list --retries=0`, port 34285 with matched `WAGGLE_E2E_BASE_URL` | Pass, 5 tests | Regenerates the full five-persona bundle after the Memory large-list probe. The current Researcher bundle reports 2 failure/scale probes, including `memory-list-unavailable` and `memory-large-list`; the full run reports 0 critical console/page/network failures and 0 visible overflow. | It is still an accountless/no-LLM bundle; authenticated Teams, real checkout provider success/cancel, packaged desktop, hook lifecycle, remaining broader scale/performance states, and final judge scoring remain outside this proof. | -| `npx playwright test tests/e2e/five-persona-state-bundles.spec.ts --project=chromium --grep "engineer-power-user" --reporter=list --retries=0`, port 34286 with matched `WAGGLE_E2E_BASE_URL` | Pass, 1 test | Focused verification for a sampled Agents large-list state. The Engineer bundle now captures `agents-large-list`: `/api/agents` is mocked with 180 live agents, and the Agents UI renders `180 agents` plus `Bulk Agent 000` with 0 visible overflow and 0 critical console/page/network failures. | It is still one agent scale slice; broader event scale, slow-data states, and deeper performance evidence remain outside this proof. | -| `npx playwright test tests/e2e/five-persona-state-bundles.spec.ts --project=chromium --reporter=list --retries=0`, port 34287 with matched `WAGGLE_E2E_BASE_URL` | Pass, 5 tests | Regenerates the full five-persona bundle after the Agents large-list probe. The current Engineer bundle reports 8 failure/scale probes, including `agents-large-list`, `marketplace-unavailable`, `marketplace-large-catalog`, `files-upload-failure`, `files-upload-success`, and `files-large-list`; the full run reports 0 critical console/page/network failures and 0 visible overflow. | It is still an accountless/no-LLM bundle; authenticated Teams, real checkout provider success/cancel, packaged desktop, hook lifecycle, remaining event scale/slow-data states, and final judge scoring remain outside this proof. | -| `npx playwright test tests/e2e/five-persona-state-bundles.spec.ts --project=chromium --grep "researcher" --reporter=list --retries=0`, port 34289 with matched `WAGGLE_E2E_BASE_URL` | Pass, 1 test | Focused verification for a sampled Timeline/Event large-list state. The Researcher bundle now captures `timeline-large-events`: `/api/events?...limit=500` is mocked with 360 timeline events, and the Timeline UI renders `360 events` plus `Used bulk_tool_000` with 0 visible overflow and 0 critical console/page/network failures. | It is still one event scale slice; slow-data states and deeper performance evidence remain outside this proof. | -| `npx playwright test tests/e2e/five-persona-state-bundles.spec.ts --project=chromium --reporter=list --retries=0`, port 34290 with matched `WAGGLE_E2E_BASE_URL` | Pass, 5 tests | Regenerates the full five-persona bundle after the Timeline/Event large-list probe. The current Researcher bundle reports `memory-list-unavailable`, `memory-large-list`, and `timeline-large-events`; the full run reports 0 critical console/page/network failures and 0 visible overflow. | It is still an accountless/no-LLM bundle; authenticated Teams, real checkout provider success/cancel, packaged desktop, hook lifecycle, slow-data states, deeper performance evidence, and final judge scoring remain outside this proof. | -| `npx playwright test tests/e2e/five-persona-state-bundles.spec.ts --project=chromium --grep "researcher" --reporter=list --retries=0`, port 34291 with matched `WAGGLE_E2E_BASE_URL` | Pass, 1 test | Focused verification for a sampled slow-data state. The Researcher bundle now captures `memory-slow-list`: `/api/memory?...limit=200` is deliberately delayed by 2 seconds, the Memory UI exposes an aria-busy `Loading memories` status while waiting, then renders `40 memories` plus `Bulk Memory 000` with 0 visible overflow and 0 critical console/page/network failures. | It is still one slow-data slice; deeper app-payload/performance evidence remains outside this proof. | -| `npx playwright test tests/e2e/five-persona-state-bundles.spec.ts --project=chromium --reporter=list --retries=0`, port 34292 with matched `WAGGLE_E2E_BASE_URL` | Pass, 5 tests | Regenerates the full five-persona bundle after the slow Memory probe. The current Researcher bundle reports `memory-list-unavailable`, `memory-slow-list`, `memory-large-list`, and `timeline-large-events`; the full run reports 0 critical console/page/network failures and 0 visible overflow. | It is still an accountless/no-LLM bundle; authenticated Teams, real checkout provider success/cancel, packaged desktop, hook lifecycle, broader slow-data/performance states, and final judge scoring remain outside this proof. | -| `node node_modules/playwright/cli.js test tests/e2e/five-persona-state-bundles.spec.ts --project=chromium --grep researcher --reporter=list` | Pass, 1 test | Focused verification for a sampled Researcher export-failure state. The Researcher bundle now captures `wiki-export-obsidian-failure`: `/api/wiki/pages` returns a compiled page, `/api/wiki/export/obsidian` returns `500`, and the Wiki UI renders `Export Failed` plus `Disk permission denied for C:/Research Vault`, with 0 visible overflow and 0 critical console/page/network failures. | It is still one export-failure slice; Notion failure, export permission variants, authenticated memory governance, and final judge scoring remain outside this proof. | -| `node node_modules/playwright/cli.js test tests/e2e/five-persona-state-bundles.spec.ts --project=chromium --reporter=list` | Pass, 5 tests | Regenerates the full five-persona bundle after adding the Researcher export-failure probe. The Researcher bundle now reports 5 failure/workflow/scale/slow-data probes, including `wiki-export-obsidian-failure`; the full run reports 0 critical console/page/network failures and 0 visible overflow. | It is still an accountless/no-LLM bundle; authenticated Teams, real checkout provider success/cancel, packaged desktop, hook lifecycle, broader performance states, and final judge scoring remain outside this proof. | -| `npx playwright test tests/e2e/five-persona-state-bundles.spec.ts --project=chromium --grep "engineer-power-user" --reporter=list --retries=0`, port 34294 with matched `WAGGLE_E2E_BASE_URL` | Pass, 1 test | Focused verification for a sampled Agents slow-data state. The Engineer bundle now captures `agents-slow-list`: `/api/agents` is deliberately delayed by 2 seconds, the Agents UI exposes an aria-busy `Loading agents` status while waiting, then renders `40 agents` plus `Bulk Agent 000` with 0 visible overflow and 0 critical console/page/network failures. | It is still one agent slow-data slice; authenticated Teams, real checkout provider success/cancel, packaged desktop, hook lifecycle, broader performance states, and final judge scoring remain outside this proof. | -| `npx playwright test tests/e2e/five-persona-state-bundles.spec.ts --project=chromium --reporter=list --retries=0`, port 34295 with matched `WAGGLE_E2E_BASE_URL` | Pass, 5 tests | Regenerates the full five-persona bundle after the Agents slow-list probe. The current Engineer bundle reports 9 failure/workflow/scale/slow-data probes, including `agents-slow-list`, `agents-large-list`, `marketplace-unavailable`, `marketplace-large-catalog`, `files-upload-failure`, `files-upload-success`, and `files-large-list`; the full run reports 0 critical console/page/network failures and 0 visible overflow. | It is still an accountless/no-LLM bundle; authenticated Teams, real checkout provider success/cancel, packaged desktop, hook lifecycle, broader performance states, and final judge scoring remain outside this proof. | -| `npx playwright test tests/e2e/five-persona-state-bundles.spec.ts --project=chromium --grep "team-admin-security-reviewer" --reporter=list --retries=0`, port 34297 with matched `WAGGLE_E2E_BASE_URL` | Pass, 1 test | Focused verification for Team Admin checkout return states after the cancelled-checkout banner fix. The bundle now captures `billing-checkout-success-return` with mocked `/api/stripe/sync` returning `TEAMS`, and `billing-checkout-cancel-return` redirecting to Billing with `Checkout was cancelled` plus `No charge was made` copy. | It is local/accountless rendered return proof; real deployed Stripe/Clerk checkout success/cancel, authenticated Teams, packaged desktop, hook lifecycle, and final judge scoring remain outside this proof. | -| `npx playwright test tests/e2e/five-persona-state-bundles.spec.ts --project=chromium --reporter=list --retries=0`, port 34298 with matched `WAGGLE_E2E_BASE_URL` | Pass, 5 tests | Regenerates the full five-persona bundle after the Team Admin checkout return probes. The Team Admin bundle reports 5 failure/workflow probes, including `billing-checkout-unavailable`, `billing-checkout-success-return`, `billing-checkout-cancel-return`, `backup-create-failure`, and `backup-restore-failure`; the full run reports 0 critical console/page/network failures and 0 visible overflow. | It is still an accountless/no-LLM bundle; real authenticated Teams server, real deployed/provider checkout success/cancel, packaged desktop, hook lifecycle, broader performance states, and final judge scoring remain outside this proof. | -| `npx playwright test tests/e2e/user-journeys.spec.ts --project=chromium --grep "J-route-coverage: thin utility routes render or redirect clearly" --reporter=list --retries=0`, port 34299 with matched `WAGGLE_E2E_BASE_URL` | Pass, 1 test | Confirms the broader thin-route route-smoke still accepts the `/payment-cancelled` redirect into Billing after the new `checkout=cancelled` marker. | Route-smoke only; detailed success/cancel copy is owned by the five-persona Team Admin bundle above. | -| `npx playwright test tests/e2e/five-persona-state-bundles.spec.ts --project=chromium --grep "team-admin-security-reviewer" --reporter=list --retries=0`, port 34300 with matched `WAGGLE_E2E_BASE_URL` | Pass, 1 test | Focused verification for local mocked Teams-state evidence. The Team Admin bundle now captures `billing-team-active-state` with `/api/tier` mocked to `TEAMS` and visible `Waggle Team`, `$49/mo per seat`, and `Manage subscription` copy, plus `team-settings-unlocked-state` with visible `Team Server URL`, `Auth Token`, and trust warning copy. | It is local rendered Teams-tier state proof, not real authenticated Team server membership, deployed checkout, packaged desktop, hook lifecycle, or final judge scoring. | -| `npx playwright test tests/e2e/five-persona-state-bundles.spec.ts --project=chromium --reporter=list --retries=0`, port 34301 with matched `WAGGLE_E2E_BASE_URL` | Pass, 5 tests | Regenerates the full five-persona bundle after adding the Team active billing and Team settings unlocked probes. The Team Admin bundle reports 7 failure/workflow probes, including `billing-team-active-state`, `team-settings-unlocked-state`, checkout unavailable/success/cancel, backup creation failure, and backup restore failure; the full run reports 0 critical console/page/network failures and 0 visible overflow. | It is still an accountless/no-LLM bundle with mocked Teams tier; real authenticated Team server, real deployed/provider checkout success/cancel, packaged desktop, hook lifecycle, broader performance states, and final judge scoring remain outside this proof. | -| `node node_modules/playwright/cli.js test tests/e2e/five-persona-state-bundles.spec.ts --project=chromium --grep team-admin-security-reviewer --reporter=list` | Pass, 1 test | Focused verification for sampled Team Admin approval-grant revocation. The bundle now captures `approvals-revoke-all-grants`: `/approvals` is mocked with one saved grant, the in-app approval modal confirms the destructive revoke-all action, and the final route renders `No saved grants` plus revoked-state toast copy with 0 critical console/page/network failures and 0 visible overflow. | It is local accountless rendered proof for the sampled revoke-all path; broader authenticated approval audit history, focus/keyboard behavior, and less common approval policy states remain outside this proof. | -| `node node_modules/playwright/cli.js test tests/e2e/five-persona-state-bundles.spec.ts --project=chromium --reporter=list` | Pass, 5 tests | Regenerates the full five-persona bundle after adding the Team Admin approval-grant revoke-all probe. The Team Admin bundle now reports 8 failure/workflow probes, including `approvals-revoke-all-grants`, Teams state, checkout unavailable/success/cancel, backup creation failure, and backup restore failure; the full run reports 0 critical console/page/network failures and 0 visible overflow. | It is still an accountless/no-LLM bundle with mocked Teams tier; real authenticated Team server, real deployed/provider checkout success/cancel, packaged desktop, hook lifecycle, broader performance states, and final judge scoring remain outside this proof. | -| Native dialog fixed-string scan for `confirm(`, `alert(`, and `prompt(` | Current high-confidence production scan clean | T7/T12 no longer has known production browser-native dialog calls after the focused fixes. | Remaining broad scan hits are markdown sanitizer test payloads only; T7/T12 still needs persona-state, failure-state, and accessibility evidence. | - -Observed warning noise in the focused state slice: - -- Node `[DEP0040] punycode` deprecation warnings. -- Expected but noisy `[useWorkspaces] fetch failed: Unauthorized` logs in auth-gate tests. -- Repeated React `act(...)` warnings from provider/test setup. -- React Router v7 future-flag warnings. - -Interpretation: the tested state slices are encouraging, but the output is still too noisy for a final judge lane. T10 should reduce or isolate expected warning noise so new state failures stand out. - -## Native Dialog Evidence - -High-confidence browser-native dialog hits that affect T7/T12: - -| Surface | Evidence | Judge risk | -|---|---|---| -| Workspace/template management | `apps/web/src/components/os/overlays/CreateWorkspaceDialog.tsx:877`, `:925` | Solo founder or admin sees a browser confirm inside a branded creation/manage flow. | -| Approvals | Historical: `apps/web/src/components/os/apps/ApprovalsApp.tsx:158`. Post-fix: shared in-app `ApprovalModal` plus focused component/rendered evidence. | Fixed for the sampled Team-admin revoke-all path; broader approval states still need persona-bundle evidence. | -| Backup app | Historical: `apps/web/src/components/os/apps/BackupApp.tsx:79`. Post-fix: shared in-app `ApprovalModal` plus focused component evidence. | Fixed for the standalone restore-selection path; broader backup/persona-bundle evidence remains. | -| Automation Center | Historical: `apps/web/src/components/os/apps/AutomationCenterApp.tsx:184`. Post-fix: shared in-app `ApprovalModal` plus focused component evidence. | Fixed for sampled automation delete path; broader automation persona-bundle evidence remains. | -| Artifact Center | Historical: `apps/web/src/components/os/apps/ArtifactCenterApp.tsx:165`. Post-fix: shared in-app `ApprovalModal` plus focused component/rendered evidence. | Fixed for the sampled Researcher/engineer permanent-delete path; archive and broader artifact states still need persona-bundle evidence. | -| Compliance templates | Historical: `apps/web/src/components/os/apps/cockpit/ComplianceTemplateModal.tsx:155`. Post-fix: shared in-app `ApprovalModal` plus focused component evidence. | Fixed for sampled compliance-template delete path; broader compliance persona-bundle evidence remains. | -| Memory Center | Historical: `apps/web/src/components/os/apps/memory/MemoryCenterTab.tsx:301`, `:311`, `:356`. Post-fix: shared in-app `ApprovalModal` plus focused component/rendered evidence for delete, erase, and allow re-import. | Fixed for sampled Researcher permanent-delete, GDPR erasure, and suppression-lift paths; broader persona-bundle evidence remains. | -| Settings telemetry/backup | Historical: `apps/web/src/components/os/apps/SettingsApp.tsx:399`, `:893`, `:901`, `:911`, `:921`, `:922`, `:925`. Post-fix: shared in-app `ApprovalModal` plus inline backup status evidence. | Fixed for sampled Team-admin telemetry clear, backup failure, and restore-success paths; broader backup/persona-bundle evidence remains. | -| Wiki export | Historical: `apps/web/src/components/os/apps/memory/WikiTab.tsx:188`, `:214`. Post-fix: in-app Obsidian/Notion export form dialogs plus focused component/rendered evidence; the Researcher bundle now includes an Obsidian export-failure state. | Fixed for sampled Researcher export destination paths and one rendered Obsidian export-failure path; broader Notion/permission variants remain. | - -Earlier false positives in `MemoryTrustManage.tsx` were local memory-review callbacks and are no longer present in the production scan. - -## State Bundle Contract - -Each judge run must write a `state-bundle.md` before scoring. A persona cannot score 9/10 from default-state screenshots alone. - -| Persona | Required bundle fields | Minimum state evidence | -|---|---|---| -| Solo founder | Accountless local, Solo billing, simple disclosure, no-model recovery plus first working/skipped chat lane, fresh/no-workspace then one workspace, accountless Clerk/CSP error lane, desktop plus mobile Home spot-check | `/auth`, onboarding/skip, `/home`, workspace create/list, first chat, return Home, console summary. | -| Researcher | Declared auth mode, Solo or declared Team, power disclosure, memory-focused model state, populated memory plus no-results, missing-source/export/delete failure state, desktop plus optional mobile Memory | Memory overview, search hit, no-results, provenance/trust detail, wiki/timeline, branded confirmation/result, chat explanation, T19 decision if browser capture is included. | -| Engineer / power user | Accountless local, Solo with Teams-only deferrals, power/admin disclosure, local/no-LLM plus one working-provider lane if chat is scored, workspace plus detected/undetected tools and MCP catalog, marketplace/tool unavailable states, desktop keyboard path | Command Center, `Ctrl+Shift+N`, Launcher, MCP Hub, Files, Events, console summary, T15/T16/T17/T18 decisions if utilities/hooks/developer lanes are in scope. | -| Team admin / security reviewer | Authenticated or declared accountless limitation, Teams plus Solo gating comparison and legacy Pro-to-Solo state, professional/admin disclosure, vault/approval/backup/team data, backup or restore failure copy, desktop plus mobile Settings/Profile spot-check | Billing, active mocked Team billing state, unlocked Team settings state, Vault secret hidden, Approvals, backup/restore, Team governance, payment success, payment cancelled, branded confirmation/result, T13/T14/T15 decisions. | -| Mobile executive | Accountless local, Solo unless Team view sampled, simple disclosure with power comparison only if needed, no-model or verified-model banner fitting mobile, one workspace plus some memory, overlay close/error state, 390 x 844 primary viewport | Mobile Home, Settings general/billing/models/profile, Memory, chat, overlay open/closed, horizontal overflow check, focus/touch notes. | - -## Current Strengths - -- The focused 79-test state slice passed across auth gate, onboarding, billing, backup, files, connector, MCP, and approvals error cases. -- Current follow-up: `p7-b1-approvals-error.test.tsx` now covers Approvals revoke-all without native `confirm()`, rendered `J3d` passes on port `34159`, and the expanded user-journey suite passed 20/20 on port `34160` before the Artifact `J3e` addition. -- Current follow-up: `artifact-center-trust.test.tsx` now covers Artifact permanent delete without native `confirm()`, rendered `J3e` passes on port `34161`, and the expanded user-journey suite passes 21/21 on port `34162`. -- Current follow-up: `memory-center-trust.test.tsx` now covers Memory Center delete, GDPR erase, and allow re-import without native `confirm()`, rendered `J3f` passes on port `34164`, and the expanded user-journey suite passes 22/22 on port `34165`. -- Current follow-up: `wiki-export-trust.test.tsx` now covers Wiki Obsidian and Notion export destinations without native `prompt()`, rendered `J3g` passes on port `34167`, and the path remains included in the latest 24/24 user-journey suite on port `34173`. -- Current follow-up: `settings-trust.test.tsx` now covers Settings telemetry clear, backup failure, and restore success without native dialogs, rendered `J3h` passes on port `34171`, and the expanded user-journey suite passes 24/24 on port `34173`. -- Current follow-up: `p1b-authgate-surfaces.test.tsx` now covers standalone `BackupApp` restore without native `confirm()`. -- Current follow-up: `phase3b-automation-center.test.tsx` now covers Automation delete without native `confirm()`. -- Current follow-up: `compliance-template-trust.test.tsx` now covers compliance template delete without native `confirm()`. -- Current follow-up: `admin-pages.test.ts` now covers admin-web member removal without native `confirm()`. -- Current follow-up: the five-persona scorecards now require explicit per-persona T12 state bundles and are guarded by `tests/five-persona-state-bundle-contract.test.ts`. -- Current follow-up: `tests/e2e/five-persona-state-bundles.spec.ts` now writes rendered state-bundle evidence and screenshots for all five judge personas under `output/playwright/five-persona-state-bundles/`. -- Current follow-up: `MemoryCenterApp` lets the Memory view tablist wrap on mobile, guarded by `p3-memory-center-app.test.tsx`; the regenerated Mobile Executive bundle reports 0 Memory-route overflow items at 390 x 844. -- Current follow-up: five-persona browser bundles now include sampled failure/workflow/scale/slow-data probes for chat backend offline, Memory API unavailable, Memory slow-list handling, Memory large-list handling, Timeline/Event large-list handling, Launcher sidecar offline, Cockpit health degraded, Agents slow-list handling, Agents large-list handling, Marketplace unavailable, Marketplace large-catalog handling, Files upload failure, Files upload success, Files large-list handling, billing checkout unavailable, Team active billing state, Team settings unlocked state, billing checkout success return, billing checkout cancel return, backup creation failure, backup restore failure, approval grant revoke-all, local model runtime unavailable, and mobile chat backend offline. The same E2E gate now fails on critical console errors, critical network failures, page errors, and visible horizontal overflow. -- Current follow-up: `WorkspaceDesktopApp` wraps workspace tabs on mobile, and `ChatApp` wraps the composer agent strip with a shorter mobile model chip; the regenerated Mobile Executive chat failure bundle reports 0 visible overflow at 390 x 844. -- Current follow-up: the five-persona bundle now records explicit overlay evidence and screenshots. Mobile Executive captures Notification Inbox and Command Center; `NotificationInbox` no longer uses horizontal entrance motion that can transiently overflow the 390 px viewport. -- Chat stream failure-injection specs exist for network drop and retry behavior. -- The existing state matrix correctly separates billing tier from UI disclosure tier, which is essential for Solo-vs-Team scoring. -- The judge runbook already requires state-bundle files, console capture, route evidence, screenshots, and deferral records. - -## Current Gaps - -- Scorecards now require declared state bundles and current rendered evidence folders tie route, account mode, billing tier, disclosure tier, model state, data state, offline/error state, viewport, screenshots, and console status into one five-persona no-LLM/accountless bundle. -- Component/unit state tests are not enough to prove shell routing, viewport fit, focus behavior, console health, or user-visible recovery copy. -- Current high-confidence production native-dialog scan is clean after the focused fixes; T7/T12 now needs broader persona-state evidence, keyboard/screen-reader validation, and failure-state proof rather than more known browser-native dialog replacement. -- Offline/API failure and sampled scale coverage is broader but still incomplete. Chat backend offline, Memory API unavailable, Memory slow-list handling, Memory large-list handling, Timeline/Event large-list handling, Launcher sidecar offline, Cockpit health degraded, Agents slow-list handling, Agents large-list handling, Marketplace unavailable, Marketplace large-catalog handling, Files upload failure, Files upload success, Files large-list handling, billing checkout unavailable, Team active billing state, Team settings unlocked state, billing checkout success return, billing checkout cancel return, backup creation failure, backup restore failure, approval grant revoke-all, local model runtime unavailable, and mobile chat backend offline now have bundled browser evidence; real deployed/provider checkout success/cancel, real authenticated Teams server, packaged desktop/launch, hook lifecycle, broader slow-data/performance states, and deeper performance evidence still need user-visible evidence or approved deferral. -- Test output is noisy enough that a final judge lane could hide new regressions. -- Mobile state evidence is now concrete for Home, Profile, Settings, Memory, mobile chat backend-offline recovery, Notification Inbox, and Command Center at 390 x 844, with Memory, workspace tabs, chat agent-strip, notification animation, and Command Center overflow/close evidence fixed; authenticated mobile Team paths still need targeted evidence. -- Scale/performance state evidence now has five rendered large-list slices, Files, Marketplace, Memory, Agents, and Timeline/Events, plus two sampled slow-data slices for delayed Memory and Agents loading. Broader slow-data states and deeper app-payload/performance gates remain weak. - -## Correction Candidates - -| ID | Correction | Phase recommendation | Closure evidence | -|---|---|---|---| -| T12-A | Add a required state-bundle row to every judge scorecard and evidence folder. | Scorecard contract guarded; browser evidence captured for the default accountless/no-LLM lane. | Each scorecard now declares account, billing, disclosure, model, data, offline/error, viewport, and non-main gate decisions, guarded by `tests/five-persona-state-bundle-contract.test.ts`; `output/playwright/five-persona-state-bundles/*/state-bundle.md` now exists for all five personas. Remaining closure requires real authenticated Teams server/failure-state bundles or explicit deferrals. | -| T12-B | Add a lightweight browser state-bundle smoke after Phase 1 for the five personas. | Codified and passing for default accountless/no-LLM lane plus sampled failure and overlay probes. | `tests/e2e/five-persona-state-bundles.spec.ts` captures route sequence, screenshot paths, console summary, visible element-bounds results, overlay evidence, failure probes, and state fields for all five personas. Remaining closure requires real authenticated Teams server, packaged desktop/launch, and broader destructive/failure evidence or approved deferrals. | -| T12-C | Expand failure evidence beyond chat SSE to sidecar/offline, Stripe cancel/unavailable, marketplace unavailable, model unavailable, and backup/restore failure states. | Partially fixed for sampled persona-critical failures. | Current browser bundle proves chat backend offline, Memory API unavailable, Memory slow-list handling, Memory large-list handling, Wiki export failure, Timeline/Event large-list handling, Launcher sidecar offline, Cockpit health degraded, Agents slow-list handling, Agents large-list handling, Marketplace unavailable, Marketplace large-catalog handling, Files upload failure, Files upload success, Files large-list handling, billing checkout unavailable, Team active billing state, Team settings unlocked state, billing checkout success return, billing checkout cancel return, backup creation failure, backup restore failure, approval grant revoke-all, local model runtime unavailable, and mobile chat backend offline with branded recovery copy, successful workflow proof, sampled slow-data proof, sampled Teams-tier proof, sampled scale proof, or sampled destructive-action proof, 0 critical console/page/network failures, and 0 visible overflow. Remaining closure: real deployed/provider checkout success/cancel, real authenticated Teams server, packaged desktop/launch, hook lifecycle, broader slow-data/performance states, deeper performance evidence, and approved deferrals where applicable. | -| T12-D | Replace or explicitly defer native dialogs on persona-critical destructive flows. | Phase 2, shared with T7 | Current high-confidence production native-dialog scan is clean; Approvals revoke-all now has component, rendered user-journey, and five-persona Team Admin bundle evidence; Artifact permanent delete, Memory Center delete/erase/re-import, Wiki export destinations, Settings telemetry/backup/restore, standalone BackupApp restore, Automation delete, compliance template delete, admin member removal, and Create Workspace template delete now have in-app confirmation evidence. Remaining closure needs focus/keyboard behavior evidence, authenticated/audit-history proof, and less common destructive paths. | -| T12-E | Reduce expected warning noise in focused state tests. | Phase 2, shared with T10 | The state slice output is short enough that real failures are visible; known unavoidable warnings are isolated or documented. | -| T12-F | Attach non-main gate decisions to persona bundles. | Phase 2/launch | T13/T14/T15/T16/T17/T18/T19 are evidenced or explicitly deferred per affected persona. | -| T12-G | Add scale/performance state evidence for large lists and slow/failed data. | Partially fixed for sampled Files, Marketplace, Memory, Agents, Timeline/Event large-list states, plus slow Memory and Agents states. | `files-large-list` now renders 240 mocked files in the Engineer bundle, proves `bulk-file-000.md` plus `240 items`, and reports 0 critical console/page/network failures and 0 visible overflow. `marketplace-large-catalog` renders a 240-entry mocked Marketplace catalog, proves `Bulk Skill 000` plus grouped `Skills 120`, `Connectors 60`, and `MCPs 60`, and reports 0 critical console/page/network failures and 0 visible overflow. `memory-slow-list` delays Memory loading by 2 seconds, proves the aria-busy `Loading memories` live status before rendering `40 memories` plus `Bulk Memory 000`, and reports 0 critical console/page/network failures and 0 visible overflow. `memory-large-list` renders a 200-entry mocked Memory Center list in the Researcher bundle, proves `200 memories` plus `Bulk Memory 000`, and reports 0 critical console/page/network failures and 0 visible overflow. `agents-slow-list` delays Agents loading by 2 seconds, proves the aria-busy `Loading agents` live status before rendering `40 agents` plus `Bulk Agent 000`, and reports 0 critical console/page/network failures and 0 visible overflow. `agents-large-list` renders a 180-agent mocked roster in the Engineer bundle, proves `180 agents` plus `Bulk Agent 000`, and reports 0 critical console/page/network failures and 0 visible overflow. `timeline-large-events` renders 360 mocked Timeline events in the Researcher bundle, proves `360 events` plus `Used bulk_tool_000`, and reports 0 critical console/page/network failures and 0 visible overflow. Remaining closure needs broader slow-data/performance evidence or approved deferrals. | - -## Approval Recommendation - -Keep T12 out of Phase 1 implementation except for the state fields needed when Phase 1 adds T11 route evidence. After Phase 1, run a judge dry run only as advisory unless T12-A through the persona-critical portions of T12-F have evidence or approved deferrals. diff --git a/docs/audits/2026-07-08-ux-approval-brief.md b/docs/audits/2026-07-08-ux-approval-brief.md deleted file mode 100644 index 565773e..0000000 --- a/docs/audits/2026-07-08-ux-approval-brief.md +++ /dev/null @@ -1,95 +0,0 @@ -# UX Phase 1 Approval Brief - -Status: analysis complete enough to request Phase 1 implementation approval. No product code has been changed by this analysis packet. - -Packet index: `docs/audits/2026-07-08-ux-packet-index.md`. - -## Decision Requested - -Approve Phase 1 implementation from `docs/superpowers/plans/2026-07-08-ux-phase-1-corrections.md`. - -Recommended execution mode: Subagent-Driven, with one focused worker per task and review after each task. - -Fallback execution mode: Inline Execution in this session, with checkpoints after each task. - -## Why Phase 1 First - -The current built app is broadly functional, but seven P0 issues prevent an honest five-persona 9/10 score: - -1. Local auth/CSP/Clerk console errors. -2. Mobile Settings layout failure. -3. Mobile first-run onboarding hides the primary Continue action. -4. Active user-facing Pro copy after the Solo/Team collapse. -5. Visual snapshots failing every tracked view. -6. `Ctrl+Shift+N` shortcut contract failure. -7. Workspace Switcher overlay blocking route traversal. - -Phase 1 also includes the minimum route-evidence work needed to stop thin routes from being skipped in the final judge gate. - -## Approved Scope If User Says "Approve Phase 1" - -- T1 local auth, Clerk, and CSP console health. -- T2 mobile Settings and first-run onboarding responsive layout. -- T3 Solo/Teams/Enterprise copy cleanup. -- T4 `Ctrl+Shift+N` and Workspace Switcher route contract. -- T5 visual snapshot triage. -- T11 route evidence for thin judge paths. -- Update the audit/register/scorecards with actual verification evidence. - -## Explicitly Out Of Scope For Phase 1 - -- Broad redesigns or new product surfaces. -- Full native-dialog replacement across the entire app. -- Performance chunk-splitting beyond direct Phase 1 test blockers. -- Local model pricing semantics unless a Phase 1 verification run forces a tiny supporting fix. -- Marketplace live-sync architecture changes beyond documenting current flake and keeping standard audit deterministic. -- Public launch site, download, checkout, legal, GitHub Pages deployment, installer, tray, update, signing, sidecar-startup, admin web, CLI launcher, marketplace CLI, memory/MCP utility gates, AI-tool hook lifecycle gates, Browser Companion extension gates, developer API/background/substrate verification gates, and ops/deployment/CI/benchmark/judging gates, except where T1 auth/CSP overlap directly blocks Phase 1 verification. - -## Evidence Packet - -- Analysis completion audit: `docs/audits/2026-07-08-analysis-completion-audit.md` -- Full audit and findings: `docs/audits/2026-07-08-complete-ux-usage-audit.md` -- Route/scenario manifest: `docs/audits/2026-07-08-ux-route-scenario-manifest.md` -- Route evidence T11 analysis: `docs/audits/2026-07-08-route-evidence-t11-analysis.md` -- State/failure scenario matrix: `docs/audits/2026-07-08-ux-state-failure-scenario-matrix.md` -- Focused T12 state/failure analysis: `docs/audits/2026-07-08-state-failure-t12-analysis.md` -- Focused Mobile Executive T2/T12 analysis: `docs/audits/2026-07-08-mobile-executive-t2-t12-analysis.md` -- Focused visual T5 classification: `docs/audits/2026-07-08-visual-t5-classification.md` -- Focused first-run onboarding T1/T2/T12 analysis: `docs/audits/2026-07-08-first-run-onboarding-t1-t2-t12-analysis.md` -- Non-main surface scope: `docs/audits/2026-07-08-ux-non-main-surface-scope.md` -- Five-persona scorecards: `docs/audits/2026-07-08-five-persona-judge-scorecards.md` -- Correction register: `docs/audits/2026-07-08-ux-correction-register.md` -- Desktop wrapper T14 analysis: `docs/audits/2026-07-08-desktop-wrapper-t14-analysis.md` -- Admin/CLI utility T15 analysis: `docs/audits/2026-07-08-admin-cli-utility-t15-analysis.md` -- AI-tool hook lifecycle T16 analysis: `docs/audits/2026-07-08-ai-tool-hook-t16-analysis.md` -- Developer/substrate T17 analysis: `docs/audits/2026-07-08-developer-substrate-t17-analysis.md` -- Ops/deployment/CI/judging T18 analysis: `docs/audits/2026-07-08-ops-deploy-ci-judging-t18-analysis.md` -- Public launch funnel T13 analysis: `docs/audits/2026-07-08-launch-funnel-t13-analysis.md` -- Browser Companion T19 analysis: `docs/audits/2026-07-08-browser-companion-t19-analysis.md` -- Runtime accessibility T10 analysis: `docs/audits/2026-07-08-runtime-a11y-t10-analysis.md` -- Shell overlay T10/T12 analysis: `docs/audits/2026-07-08-shell-overlays-t10-t12-analysis.md` -- Phase 1 implementation plan: `docs/superpowers/plans/2026-07-08-ux-phase-1-corrections.md` - -## Phase 1 Completion Gate - -Phase 1 is not complete until: - -- The Phase 1 verification commands in the plan pass, or visual baseline decisions are explicitly reviewed and recorded. -- T5 uses the fresh visual classification as its starting point: current desktop actuals are coherent, baselines are stale, and `--update-snapshots` waits until Phase 1 UI changes are approved and landed. -- Required desktop/mobile screenshots are captured or inspected. -- Mobile checks prove critical visible controls stay within the viewport on `/settings`, `/settings?tab=models`, `/settings?tab=billing`, `/settings/profile`, `/memory`, and workspace chat; document-level scroll width alone is not sufficient. -- First-run onboarding checks prove a clean accountless data dir can reach the wizard without Clerk/CSP console errors and the 390 x 844 Profile step keeps its primary Continue action visible or clearly reachable. -- The selected Mobile Executive overlay path opens and closes without trapping focus or scroll. The fresh mobile smoke showed Workspace Switcher closing with Escape but Command Center still visible after Escape, so Command Center cannot be treated as passing until fixed or deferred. -- The correction register rows for T1, T2, T3, T4, T5, and T11 are updated with current evidence. -- The current all-route route-smoke evidence is codified into a repeatable route owner or explicitly deferred; `/benchmarks`, `/platform`, `/payment-cancelled`, Launcher watch mode, Usage & Cost, and the catch-all route have route-health assertions that distinguish expected states from console failures. -- No P0 remains open. - -## After Phase 1 - -Run a judge dry run. If no installed-app P0 remains and the scorecards are no longer capped by Phase 1 blockers, proceed to Phase 2/launch readiness: trust-critical dialogs, marketplace determinism, form accessibility, runtime axe/DOM accessibility findings, warning hygiene, T12 state/failure bundle evidence, mobile Memory/chat tab behavior, first-run import/model/auto-send polish, Command Center mobile close/label fit if selected for scoring, shell overlay semantics/close/hierarchy fixes, T13 launch-funnel repair/evidence, T14 desktop-wrapper evidence, T15 admin/CLI/MCP utility evidence, T16 AI-tool hook lifecycle evidence, T17 developer API/background/substrate verification evidence, T18 ops/deployment/CI/benchmark/judging evidence, T19 Browser Companion extension evidence, and other P1 items. - -T12 now has focused supplements: a passing state-slice unit run is good signal; the mobile smoke proves screenshot and critical-element bounds are required because clean document scroll width can still hide clipped controls; the first-run smoke proves skip-onboarding harnesses do not cover accountless setup, high-volume import decisions, or mobile Profile primary-action reachability; and the shell-overlay smoke proves Notification Inbox and Create Workspace still fail basic close/semantics expectations. T10 now also has runtime evidence: axe/DOM smoke found critical unnamed controls/selects, a Files scroll-region keyboard issue, workspace semantics/image-alt issues, Command Center dialog/label-fit warnings, and shell-overlay unnamed icon/landmark gaps. Final scoring still needs state bundles that tie account mode, billing tier, UI disclosure, model state, data state, offline/error state, viewport, route screenshots, and console status to each persona. - -T13 now includes a launch-scoped P0: www tests/typecheck/build pass and corrected-host public-site smoke renders core routes locally, but the canonical `waggle-os.ai` domain does not resolve from the audit environment, real signed installer artifacts are not published, deployed Vercel/DNS proof is still missing, and deployed Clerk/Stripe/legal sign-off evidence remains open. T14 records strong static/Rust/service evidence plus release/tray source hardening: Settings is bridged, Quit is native, and Pause/About are hidden, but packaged tray/close/shortcut evidence, update/service UX, installer/signing proof, package-local web Tauri command shape, and absent packaged interaction evidence keep T14 open. T15 now records focused marketplace built help/invalid-command plus package manifest/packed-file alignment and clean installed packed-CLI `npx` help/invalid recovery, launcher help/invalid-port/occupied-port recovery plus packed first-command, clean installed occupied-port startup recovery, and clean installed long-running `/health` startup, `@waggle/cli` built/packed/local package-closure installed `npx` help plus installed local REPL startup/slash-command/exit and streamed chat/provider plumbing, memory MCP read/write plus local package-closure installed read-only startup, hive-mind MCP read/write plus local package-closure installed read-only startup, hive-mind CLI local package-closure installed `npx` help, and admin-web unit plus rendered package coverage across all seven pages at desktop/mobile widths, including browser back/forward traversal, page-level keyboard traversal, desktop/mobile visual snapshots, malformed analytics response recovery, all-page initial API-failure recovery, rendered mutation/destructive-failure recovery for capability policy save, capability override create/remove, capability request decision, member invite, member role change, member removal, and team settings save, plus real local bearer-auth wrong-token/valid-token behavior. Registry-only proof after internal package publication still keeps the utility lane open. - -T16 now records strong route/contract, hook package, hook/shim package-local scripts, typecheck, compiled-bin, packed-package `npx` install/verify/uninstall lifecycle, focused no-reconnect observed-output coverage, hook stdout/stderr/Backup-Recovery/Check-failed/uninstall-cleanup/More-output/structured-failure/empty-output/Claude Desktop launch-only detail coverage, focused registry-aware third-party adapter launch coverage, partial rendered Launcher Browser evidence, codified Playwright standard install changed-file/pointer/backup/recovery labels, all six hook-capable install/verify/uninstall rendered transitions, sidecar-offline Retry, long-stderr summarization, and non-built-in adapter launch-only/prompt proof, Browser smokes where real Verify renders `verify failed (exit 1)` with retry/uninstall/reinstall guidance instead of `HTTP 400`, mocked Codex Verify renders manual-approval rows without raw `[FAIL]`, and mocked Codex Uninstall renders restore/cleanup rows without `Install pointer`, plus a gated real-tool Playwright smoke where OpenClaw renders as a real detected CLI and launches through the sidecar with observed output, exit 0, and process cleanup. A broadened gated route smoke proves `/api/tools/hooks` can run real install, verify, and uninstall for `claude-code`, `codex`, `codex-desktop`, `cursor`, `hermes`, and `openclaw` against an isolated profile and clean up afterward; the earlier red run exposed Windows `execFile('npx')` shim resolution, now fixed by resolving the Node-installed `npx.cmd` and using the shared `.cmd` resolver. Windows npm shims now resolve to Node module targets when possible, with a quoted fallback for unknown `.cmd`/`.bat` files, Codex found only through the restricted WindowsApps alias is now installed-but-not-launchable with recovery copy, Tailwind motion-token ambiguity warnings are removed, and the `shape-selection.ts` dynamic/static import warning is removed. T16 still needs packaged desktop hook-status evidence and remaining warning hygiene. T17 records remaining non-hook package-local test command failures and a full server-suite perf flake. T18 records secret-safe ops logging, Render target, CI/infra, benchmark command-shape, and current judging-artifact gaps. T19 now records direct sidecar save success, content-script extraction from a normal page, legacy-trust extension save success, secure-default session-token bootstrap, MV3 service-worker no-Origin handling, background save auth, sticky setup errors, restricted-page recovery copy, disabled-state styling, honest memory-destination copy, loaded-extension save/frame confirmation, popup keyboard/focus/Enter save proof, direct popup Save page click evidence, rendered Memory UI confirmation after secure popup saves, context-menu handler coverage, stable packaged-ID pairing proof, Memory search provenance consistency for imported captures, and existing chat `auto_recall`/catch-up imported provenance. It still needs native toolbar-bubble evidence or manual release proof, native context-menu click evidence or explicit deferral, signed Web Store/installer-distributed extension proof if release packaging is scored, and separate proof for any future recall result shape if scored. diff --git a/docs/audits/2026-07-08-ux-correction-register.md b/docs/audits/2026-07-08-ux-correction-register.md deleted file mode 100644 index 7c234db..0000000 --- a/docs/audits/2026-07-08-ux-correction-register.md +++ /dev/null @@ -1,148 +0,0 @@ -# Waggle OS UX Correction Register - -Companion artifacts: - -- `docs/audits/2026-07-08-ux-approval-brief.md` -- `docs/audits/2026-07-08-complete-ux-usage-audit.md` -- `docs/audits/2026-07-08-ux-route-scenario-manifest.md` -- `docs/audits/2026-07-08-ux-state-failure-scenario-matrix.md` -- `docs/audits/2026-07-08-ux-non-main-surface-scope.md` -- `docs/audits/2026-07-08-five-persona-judge-scorecards.md` -- `docs/audits/2026-07-08-five-persona-judge-runbook.md` -- `docs/audits/2026-07-08-ux-post-phase-1-roadmap.md` -- `docs/audits/2026-07-08-web-guidelines-line-findings.md` -- `docs/audits/2026-07-08-runtime-a11y-t10-analysis.md` -- `docs/audits/2026-07-08-visual-t5-classification.md` -- `docs/audits/2026-07-08-source-inventory-consistency-audit.md` -- `docs/audits/2026-07-08-browser-companion-t19-analysis.md` -- `docs/audits/2026-07-08-desktop-wrapper-t14-analysis.md` -- `docs/audits/2026-07-08-admin-cli-utility-t15-analysis.md` -- `docs/audits/2026-07-08-ai-tool-hook-t16-analysis.md` -- `docs/audits/2026-07-08-developer-substrate-t17-analysis.md` -- `docs/audits/2026-07-08-ops-deploy-ci-judging-t18-analysis.md` -- `docs/audits/2026-07-08-launch-funnel-t13-analysis.md` -- `docs/audits/2026-07-08-route-evidence-t11-analysis.md` -- `docs/audits/2026-07-08-state-failure-t12-analysis.md` -- `docs/audits/2026-07-08-mobile-executive-t2-t12-analysis.md` -- `docs/audits/2026-07-08-first-run-onboarding-t1-t2-t12-analysis.md` -- `docs/audits/2026-07-08-shell-overlays-t10-t12-analysis.md` -- `docs/superpowers/plans/2026-07-08-ux-phase-1-corrections.md` - -Purpose: one tracking register for every UX finding currently blocking or reducing the five-persona 9/10 goal. This file does not replace the audit; it maps audit findings to tickets, phases, likely files, judge impact, and closure evidence. - -Final reconciliation (2026-07-13): the row-level entries below preserve the chronology of the audit and may describe an earlier branch state. The current integrated result is authoritative in `docs/audits/2026-07-13-final-goal-verification.md`. In particular, Channels hardening is integrated, the final five-persona run passes 5/5 at 9.1-9.5, full current-head lint/typecheck/build/test/visual/accessibility gates pass, and Tauri now has generated MSI and NSIS packages plus a healthy launch from an extracted MSI payload. T13 public DNS/deployment, production signing/updater delivery, and credential-dependent external-provider smokes remain release gates; they are not represented as completed product work. - -Status key: - -- `Open`: analyzed, not fixed. -- `Phase 1 Pending Approval`: included in the first implementation plan, awaiting user approval before coding. -- `Partially Fixed`: implementation and verification landed for part of the finding, but the ticket still has named remaining scope. -- `Phase 2 Pending`: important for 9/10, but intentionally after Phase 1. -- `Phase 3 Pending`: polish/performance work after trust/flow blockers. -- `Tooling`: not product UX, but affects repeatable audit confidence. - -## Register - -| Finding | Ticket | Phase | Status | Primary files/surfaces | Judge impact | Closure evidence | -|---|---|---:|---|---|---|---| -| P0-1 Accountless Clerk/CSP console health | T1 | 1 | Verified Fixed | `packages/server/src/local/security-middleware.ts`, `packages/server/tests/local/security-middleware.test.ts`, `apps/web/src/lib/clerk.ts`, `apps/web/src/providers/WaggleClerkProvider.tsx`, `tests/e2e/full-product-audit.spec.ts`, `tests/e2e/phase-ab-verification.spec.ts` | Solo founder, Team admin, Engineer | Accountless local lane has no Clerk/CSP errors in current focused checks: `clean first-run onboarding loads without Clerk, CSP, or page errors`, `no console errors on initial load`, and `no critical console errors on load` passed 3/3 on port `34196`. Auth still needs explicit-enabled coverage as a separate state bundle. | -| P0-2 Mobile Settings structural usability | T2 | 1 | Verified Fixed | `apps/web/src/components/os/apps/SettingsApp.tsx`, `tests/e2e/user-journeys.spec.ts`, Settings visual/mobile screenshots | Mobile executive, Team admin | Current 390 x 844 Settings has no document-level overflow, no clipped critical controls, no squeezed two-pane rail, and no visible element overflow in general/models/billing/profile: `J-mobile: Settings is usable at 390px width` passed 1/1 on port `34195`. | -| P0-7 Mobile first-run onboarding primary action reachability | T2/T12 | 1 | Verified Fixed | `apps/web/src/components/os/overlays/OnboardingWizard.tsx`, `apps/web/src/components/os/overlays/onboarding/WhoAreYouStep.tsx`, `tests/e2e/user-journeys.spec.ts` | Mobile executive, Solo founder | Current 390 x 844 clean-data onboarding Profile keeps the primary Continue action reachable with no visible overflow: `J-mobile: first-run onboarding keeps primary actions reachable at 390px width` passed 1/1 on port `34194`. | -| P0-3 Cockpit pricing copy uses Solo/Team/Enterprise | T3 | 1 | Verified Fixed | `MarketplaceApp.tsx`, `AddCustomMcpForm.tsx`, `command-catalog.ts`, `LoginBriefing.tsx`, `SkillRow.tsx`, `SettingsApp.tsx`, `PaymentSuccessApp.tsx` | Solo founder, Team admin, Mobile executive | Active cockpit UI copy uses Solo, Team, and Enterprise. Current source search finds remaining `Pro` references only in explicit legacy billing compatibility (`Legacy Pro`, `Pro (legacy)`), tests/comments, or model names; public legal Pro copy is tracked under launch-funnel T13. | -| P0-4 Visual regression suite for tracked views | T5 | 1 | Verified Fixed | `tests/visual/views.spec.ts`, `tests/visual/baselines/**`, affected rendered routes, `docs/audits/2026-07-08-visual-t5-classification.md` | All personas | Current visual suite passes 14/14 on port `34199`; canonical ASCII-hyphen baselines are active, volatile Home text is masked in the visual spec, and duplicate historical baseline families are documented. | -| P0-5 `Ctrl+Shift+N` shortcut route contract | T4 | 1 | Verified Fixed | `apps/web/src/components/os/AppShell.tsx`, `apps/web/src/hooks/useKeyboardShortcuts.ts`, `tests/e2e/phase-ab-verification.spec.ts`, `tests/e2e/power-user-stress.spec.ts` | Engineer, Solo founder | Shortcut opens active or first available workspace chat; both shortcut E2E tests passed 2/2 on port `34197`. | -| P0-6 Workspace Switcher route traversal | T4 | 1 | Verified Fixed | `AppShell.tsx`, `WorkspaceSwitcher.tsx`, `tests/e2e/full-wiring-audit.spec.ts` | Engineer, Mobile executive | Route-changing navigation closes or supersedes the switcher; `traverse all sidebar views — zero critical JS errors` passed 1/1 on port `34198`, proving traversal is not intercepted by backdrop. | -| P1-1 Native browser dialogs interrupt branded workflows | T7 | 2 | Current Scan Fixed | `BackupApp.tsx`, `ApprovalsApp.tsx`, `AutomationCenterApp.tsx`, `ArtifactCenterApp.tsx`, `SettingsApp.tsx`, `MemoryCenterTab.tsx`, `WikiTab.tsx`, `CreateWorkspaceDialog.tsx`, `ComplianceTemplateModal.tsx`, `packages/admin-web/src/pages/Members.tsx` | Team admin, Researcher | Current high-confidence production native-dialog scan is clean. Create Workspace custom-template delete, Approvals revoke-all, Artifact permanent delete, Memory Center delete/erase/re-import, Wiki export destinations, Settings telemetry/backup/restore, standalone `BackupApp` restore, Automation delete, compliance template delete, and admin member removal now use in-app confirmations/forms/status with focused component/rendered coverage. Remaining T7 work is broader persona-state, failure-state, and accessibility evidence. | -| P1-2 Test output is too noisy | T10 | 2 | Phase 2 Pending | Tests emitting repeated `act(...)` warnings; affected component tests | All personas indirectly | Standard verification output is short enough that real failures are visible; expected warning noise is eliminated or isolated. | -| P1-3 Marketplace and local-first test determinism need tightening | T6 | 2 | Audit Lane Fixed | `packages/server/src/local/routes/marketplace.ts`, `marketplace-background-sync.ts`, E2E marketplace calls | Engineer, Solo founder | Manual `/api/marketplace/sync` now respects `WAGGLE_DISABLE_MARKETPLACE_SYNC=1` and returns a no-network skipped response; focused server tests pass 3/3, server typecheck passes, and the focused Playwright marketplace slice passes 4/4 on port `34203`. Live external-sync UX remains an explicit/non-default lane. | -| P1-4 Initial app payload is too heavy | T8 | 3 | Focused Fixed; media residual | Route/app composition under `apps/web/src/components/os`, `shape-selection.ts`, persona/logo asset import sites | Mobile executive, Engineer | Startup JS is now below the Vite 500 kB warning threshold: routes, closed shell overlays, ChatHost, and PostHog are lazy-loaded and guarded by `build-warning-hygiene.test.ts`; current production build reports the startup chunk at 423.61 kB minified / 114.63 kB gzip with no large-chunk warning. Remaining media work is persona/logo asset optimization or explicit acceptance in the visual/CLS pass. | -| P1-5 Form, focus, and icon-button accessibility need a focused pass | T10 | 2 | Partially Fixed | Settings, profile, workspace creation, workspace actions, agent builders/cards, Mission Control, compliance templates, onboarding, Launcher, Approvals, Files, workspace chat, Command Center | Mobile executive, Team admin, Engineer | Settings Prompt Shape/model/trust/team/KVARK fields, Profile identity/preferences/brand fields and Analyze Style action focus, Chat composer metadata/focus, Vault add-secret/actions, Launcher refresh/prompt and prompt focus ring, Approvals refresh/revoke, Cockpit/WaggleDance/ComplianceDashboard/AgentCard sampled actions, Agent/Skill/Automation Builder metadata and Skill Builder reorder focus rings, SkillEditorDrawer markdown-editor metadata, Automation Center template metadata/focus rings, AgentCard and GroupCard separate select/delete controls, full scoped production `transition-all` backlog closed with explicit transition properties, AgentCenterRow media dimensions, ReadyStep media dimensions, BootScreen/StatusBar media dimensions, LoginBriefing/Chat/SpawnAgentDialog media dimensions, Spawn Agent launch task/new-workspace metadata, Artifact Center search/create/detail-editor metadata and detail Kind focus ring, Agent Center search metadata, Agent Center templates search metadata, ExtensionCard inline connector-token metadata, InstallAuditPanel audit-filter metadata, ModelPilotCard budget-threshold slider metadata/focus ring, TelemetryApp daily-budget metadata, Skills Hub search metadata, Files toolbar action names/filter metadata/focus rings, Files new-folder/rename metadata, Files move/properties dialog close names/focus rings and row Properties context-menu behavior, Mission Control refresh/pause/resume/stop action names/focus rings, ConnectorCard setup metadata/action focus rings, Memory Center search/detail metadata and filter/action focus rings, MemoryCard selection checkbox labels/metadata, Memory Trust search/correction metadata and focus rings, TimelineTab search/filter metadata and filter-toggle name, EvolutionTab proposal review-note/New Run modal select/textarea metadata, close action name, and focus rings, Knowledge Graph search/scope metadata and toolbar/legend action names/focus rings, Harvest import/source action metadata and focus rings, Custom MCP form metadata/focus rings, MCP catalog search and scope-select metadata, ModelGate key/pull metadata, inline capability connector-token metadata, Telegram digest credential metadata, first-run onboarding profile/workspace/first-task metadata, EraseDataDialog destructive confirmation metadata/focus ring, Agent template creator/detail metadata/focus rings, All Workspaces search metadata/focus ring, Wiki search, WorkspaceActionsMenu rename/delete confirmations, warm AskBar metadata/focus ring, workspace TasksTab add-task metadata/focus ring, Timeline event-filter metadata/focus ring, Create Workspace visible setup/template/folder-picker metadata and focus rings, Compliance Dashboard report-option metadata and Compliance Template form metadata with token focus rings, Workspace Switcher focus-trap/return evidence, Files storage/browser scroll regions, workspace tab/image semantics, status-bar landmarks, sampled runtime axe, and Command Center description/mobile row fit plus search focus ring now have focused metadata/name/focus fixes and tests. Remaining T10 closeout is any broader unsampled metadata queue outside the covered surfaces, remaining unsampled icon-only controls, and broader modal focus-return evidence. | -| P1-6 Local model pricing and no-LLM harness are inconsistent | T9 | 3 | Phase 3 Pending | `packages/agent/src/cost-tracker.ts`, `packages/agent/tests/cost-tracker.test.ts`, Usage & Cost UI | Engineer, Team admin | No unknown local-model cost warning in the audit lane; unpriced local models are labeled honestly. | -| P1-7 Route coverage is uneven relative to the full shell | T11 | 1/2 | Verified Fixed | `tests/e2e/user-journeys.spec.ts`, `tests/visual/views.spec.ts`, `tests/vision/personas.spec.ts`, route/scenario manifest | All personas | Every registered route has an evidence owner in the manifest; prior zero/thin routes now have codified `J-route-coverage` owners, with the focused route coverage tests passing 2/2 on port `34200`. Deeper workflow/state evidence remains tracked in T10/T12/T16. | -| P1-8 State and failure-mode coverage is not explicit enough for judge scoring | T12 | 2 | Default + Sampled Failure Bundles Captured | `docs/audits/2026-07-08-ux-state-failure-scenario-matrix.md`, `docs/audits/2026-07-08-five-persona-judge-scorecards.md`, `tests/five-persona-state-bundle-contract.test.ts`, `tests/e2e/five-persona-state-bundles.spec.ts`, `output/playwright/five-persona-state-bundles/`, `tests/e2e/failure-injection/network-drop.spec.ts`, `tests/e2e/user-journeys.spec.ts`, `tests/vision/personas.spec.ts` | All personas | Each judge scorecard now cites account mode, billing tier, disclosure tier, model state, data state, offline/error state, viewport, and non-main gate decisions, guarded by `tests/five-persona-state-bundle-contract.test.ts`; rendered accountless/no-LLM persona bundles now pass 5/5 with screenshots, sampled failure/workflow/scale/slow-data probes for chat backend offline, Memory API unavailable, Memory slow-list handling, Memory large-list handling, Timeline/Event large-list handling, Launcher sidecar offline, Cockpit health degraded, Agents slow-list handling, Agents large-list handling, Marketplace unavailable, Marketplace large-catalog handling, Files upload failure, Files upload success, Files large-list handling, billing checkout unavailable, Team active billing state, Team settings unlocked state, billing checkout success return, billing checkout cancel return, backup creation failure, backup restore failure, local model runtime unavailable, and mobile chat backend offline, plus 0 critical console/page/network failures and 0 visible overflow. Remaining closure requires real authenticated Teams server, real deployed/provider checkout success/cancel, packaged desktop/launch, hook lifecycle, broader slow-data/performance states, and approved deferrals where needed. | -| P0-L1 Public launch funnel has release-blocking smoke and recovery gaps | T13 | 1/Launch | Partially Fixed Locally | `apps/www`, `apps/www/app/_components/Pricing.tsx`, `apps/www/app/_components/DownloadCTA.tsx`, `apps/www/app/download/page.tsx`, `apps/www/app/_lib/os-detection.ts`, `apps/www/app/api/stripe/checkout/route.ts`, `apps/www/app/(legal)/**`, `.github/workflows/deploy-www.yml`, DNS/deploy target | Solo founder, Team admin, Mobile executive | Local checkout/legal/download/deploy-workflow UX is improved: Pricing uses the canonical GET checkout route, cancelled checkout returns to `/?checkout=cancelled#pricing` with an inline retry notice, the public-site hydration issue badge is suppressed intentionally, legal placeholder/stale-tier copy is guarded, Download now routes to a controlled `/download` status page instead of an empty GitHub Releases target, mobile/tablet OS detection keeps the CTA generic instead of labeling iOS/Android as desktop installers, the public-site workflow now targets Vercel prebuilt deployment instead of GitHub Pages/static `apps/www/dist`, `apps/www` tests pass 19/19, typecheck passes, `npm run build:www` passes, rendered Browser recovery smoke has no warnings/errors, and built local smoke returns 200 for `/`, `/?checkout=cancelled`, and `/download`. Remaining launch blockers: canonical DNS/deployed Vercel proof, real signed installer/release artifact publication, real deployed Clerk/Stripe success/cancel evidence, and formal legal sign-off. | -| P1-10 Desktop wrapper, installer, tray, update, and sidecar-startup UX lack installed-app evidence | T14 | 2/Launch | Partially Fixed; Packaged Startup Proven | `app/src-tauri/**`, `app/tests/**`, `app/scripts/**`, `.github/workflows/release.yml`, `packages/server/src/local/service.ts`, `scripts/build-sidecar.mjs`, `scripts/bundle-node.mjs`, `scripts/check-sidecar-resources.mjs`, `apps/web/src/lib/tauri-bindings.ts`, `apps/web/src/App.tsx` | All personas, especially Solo founder and Team admin | Release workflow now builds workspace packages before Windows/macOS sidecar packaging and is guarded by `tauri-config.test.ts` 25/25. Tray source now exposes only Open, Settings, and Quit; Settings is bridged to `/settings`, Quit uses native `app.exit(0)`, and unsupported Pause/About actions are hidden. Packaged debug startup now builds without installer, launches `target/debug/waggle.exe`, starts bundled `resources/service.js`, reaches `/health`, and has no CORS/module/ABI errors. Service/update events are consumed by the web bridge; native update emission remains disabled until signed updater artifacts exist. Remaining closure still requires MSI/installer packaging, real tray smoke, close-to-tray, global shortcut, forced watchdog-service UI, installer/signing trust, and signed-update proof or explicit deferral. | -| P1-11 Admin web, CLI launcher, marketplace CLI, and memory MCP utility UX have broken built-entry and rendered/admin evidence blockers | T15 | 2/Launch | Phase 2 Pending; Utility CLI/MCP/Admin Rendered Fixes Landing | `packages/admin-web/**`, `packages/cli/**`, `packages/launcher/**`, `packages/marketplace/**`, `packages/memory-mcp/**`, `packages/hive-mind-mcp-server/**`, `packages/hive-mind-cli/**`, `vitest.config.ts` | Team admin, Engineer, Solo founder setup path | Marketplace CLI built help/invalid-command behavior, package manifest/packed-file alignment, and clean installed packed-CLI `npx` help/invalid recovery; `@waggle/cli` built/packed/local package-closure installed `npx` help plus installed local REPL startup/slash-command/exit and streamed chat/provider plumbing against a mock LiteLLM-compatible endpoint; launcher built help/invalid-port/occupied-port recovery plus packed first-command, clean installed occupied-port startup recovery, and clean installed long-running `/health` startup; sampled hive-mind CLI subcommand help/test discovery plus local package-closure installed `npx` help; legacy memory MCP read/write startup plus local package-closure installed read-only startup; hive-mind MCP write-scope roundtrip plus local package-closure installed read-only startup; and admin-web unit plus rendered package coverage are locally fixed and guarded. The rendered admin gate now includes browser back/forward traversal, page-level keyboard traversal, desktop/mobile visual snapshots, malformed analytics response recovery, all-page initial API-failure recovery, mutation/destructive-failure recovery for capability policy save, capability override create/remove, capability request decision, member invite, member role change, member removal, and team settings save, plus local bearer-auth wrong-token/valid-token behavior through protected Fastify routes. Remaining T15 closure still requires registry-only proof after internal package publication, or an explicit deferral. | -| P1-12 AI-tool hook install/verify/uninstall UX lacks packaged desktop hook-status proof and fully quiet release output | T16 | 2/Launch | Phase 2 Pending; Rendered Lifecycle Fixed; Warning Hygiene Partially Fixed | `apps/web/src/components/os/apps/LauncherApp.tsx`, `apps/web/src/components/os/apps/launcher/ToolOutputPane.tsx`, `apps/web/src/lib/adapter.ts`, `packages/shared/src/tool-detection.ts`, `packages/agent/src/tool-detection.ts`, `packages/agent/src/tool-launcher.ts`, `packages/agent/src/tool-command.ts`, `packages/agent/src/tool-process-tracker.ts`, `packages/agent/src/tool-output-buffer.ts`, `packages/hive-mind-hooks-*/**`, `tests/e2e/launcher-rendered-states.spec.ts`, `tests/e2e/launcher-real-tool-lifecycle.spec.ts`, `tests/e2e/launcher-real-hook-lifecycle.spec.ts` | Engineer, Solo founder, Team admin | Packed-package `npx` command install/verify/uninstall now passes for the six hook-capable tools, hook/shim package-local scripts now pass, observed live output no longer reconnects/replays after exit in focused tests, Launcher component tests preserve hook stdout/stderr details, show Backup/Recovery labels for covered install output, summarize Verify `[FAIL]` output as Check-failed/manual-approval rows, label uninstall restore/cleanup rows without implying install state, cap long hook output behind `More output`, and prove launchable third-party adapters get a Launch action and prompt routing; adapter/route tests preserve structured hook failures and launch registered adapters through the runtime registry; live Verify now renders `verify failed (exit 1)` with retry/uninstall/reinstall guidance instead of `HTTP 400`; Browser mocks prove Codex Verify manual approval and Codex Uninstall cleanup panels; Playwright rendered coverage proves standard install changed-file/pointer/backup/recovery labels, sidecar-offline Retry, long stderr summarization, all six hook-capable rendered install/verify/uninstall transitions, non-built-in adapter launch-only/prompt behavior, and one real OpenClaw observed launch/output/exit/process-clear lifecycle; a broadened real route smoke proves `/api/tools/hooks` install/verify/uninstall for all six hook-capable tools in an isolated profile; Windows npm shims now resolve to Node module targets when possible and use a quoted fallback otherwise; Windows hook commands now resolve the Node-installed `npx.cmd`; Codex detected only through the restricted WindowsApps alias is now installed-but-not-launchable with recovery copy; Claude Desktop is explicitly launch-only with no hook actions; Tailwind motion-token ambiguity warnings are removed and guarded; and the `shape-selection.ts` dynamic/static import warning is removed and guarded. Remaining closure requires packaged desktop hook-status evidence and remaining warning hygiene; or T16 is explicitly deferred. | -| P1-13 Developer API, background worker, and substrate package verification UX has command-shape and suite-stability gaps | T17 | 2/Tooling | Phase 2 Pending; Playwright Startup Fixed | `packages/sdk/**`, `packages/server/**`, `packages/worker/**`, `packages/waggle-dance/**`, `packages/hive-mind-core/**`, `packages/hive-mind-shim-core/**`, `packages/wiki-compiler/**`, `packages/*/package.json`, `vitest.config.ts`, `vitest.perf.config.ts`, Playwright `webServer` startup | Engineer, Team admin, release confidence | Root and package verification commands are documented and deterministic; package-local scripts either pass or point to the correct root/project-reference lane; Playwright `webServer` now starts with pinned `tsx@4.21.0` and matching `esbuild@0.27.7` evidence; the named server lane passes 185/2128 with one worker and the isolated perf lane passes 13/13; or T17 is explicitly deferred from the final score. | -| P1-14 Ops, deployment, CI, benchmark, and judging evidence is incomplete for a complete-system claim | T18 | 2/Launch/Tooling | Phase 2 Pending | `.github/workflows/**`, `Dockerfile`, `docker-compose*.yml`, `render.yaml`, `litellm-config.yaml`, `ops/**`, `benchmarks/**`, `judging/**`, `vitest.infra*.ts` | Release confidence, Engineer, Team admin | YAML/Compose/benchmark evidence is attached; secret-safe validation commands are documented; Render/Docker/CI infra targets are coherent; current judge artifacts are generated from the current source; or T18 is explicitly deferred. | -| P1-15 Browser Companion extension UX is a real capture surface with incomplete native-toolbar/context evidence | T19 | 2/Launch | Partially Fixed; Native Toolbar/Context Evidence Pending | `apps/browser-ext/**`, `packages/server/src/local/routes/browser-ext.ts`, `packages/server/src/local/cors-config.ts`, `packages/server/src/local/security-middleware.ts`, `packages/server/src/local/routes/memory.ts`, `apps/web/src/components/os/settings/CoverageCompassCard.tsx` | Researcher, Solo founder, Mobile executive | Secure token bootstrap, concrete extension-origin CORS matching, MV3 service-worker no-Origin handling, background save auth, sticky accessible popup recovery, restricted-page explanation, disabled-state styling, honest memory-destination copy, secure-default loaded-extension extraction/save/frame confirmation, popup keyboard/focus/Enter save proof, direct popup Save page click smoke, rendered Memory UI confirmation, context-menu handler coverage, stable packaged-ID pairing smoke, `/api/memory/search` imported provenance, and existing chat `auto_recall`/catch-up imported provenance are fixed and verified. Remaining closure requires native toolbar-bubble evidence or manual release proof, native context-menu click proof or deferral, signed Web Store/installer-distributed extension proof if release packaging is scored, and separate proof for any future recall result shape if scored; or T19 is explicitly deferred from the five-persona score. | -| P1-16 Command Center mobile close and label fit needed proof | T10/T12 | 2 | Focused Fixed | `apps/web/src/components/os/overlays/CommandCenter.tsx`, `tests/e2e/user-journeys.spec.ts`, `tests/e2e/five-persona-state-bundles.spec.ts`, mobile overlay screenshots | Engineer, Mobile executive | Command Center now has a dialog description, mobile catalog subtitles truncate on their own line, `J-mobile: Command Center is described and fits at 390px` proves Control+K open/fit/Escape close, and the five-persona bundle now records Mobile Executive Command Center screenshot evidence with 0 visible overlay overflow. | -| P1-17 High-volume first-run import is too easy to trigger | T7/T12 | 2 | Focused Fixed | `apps/web/src/components/os/overlays/onboarding/ImportStep.tsx`, `apps/web/src/test/onboarding-import-step.test.tsx`, Memory Harvest | Solo founder, Researcher, Team admin | Large detected histories now use deliberate review/secondary action copy: `Review after setup` is primary, immediate import is explicit as `Import 5,514 now`, and small histories keep the simple import CTA. Focused component coverage passes 2/2 and web typecheck passes; broader Harvest review/recovery states remain in T12. | -| P1-18 First-run model/first-task handoff polish is inconsistent | T10/T12 | 2 | Focused Fixed | `ModelGateStep.tsx`, `ChatApp.tsx`, `ModelGateStep.test.tsx`, `lane-c-input-power.test.tsx` | Solo founder, Engineer | Model-ready onboarding now shows `Model ready` instead of the setup/checking gate while Continue is enabled, and first-task auto-send clears the untouched composer seed before the send promise resolves. Focused tests pass 5/5 and 12/12; the onboarding focused bundle passes 22/22; web typecheck passes. | -| P1-19 Shell overlays do not share a consistent accessibility/close contract | T10/T12 | 2 | Partially Fixed | `NotificationInbox.tsx`, `CreateWorkspaceDialog.tsx`, `WorkspaceSwitcher.tsx`, `ContextRail.tsx`, `OnboardingTooltips.tsx`, `UpgradeModal.tsx`, `TrialExpiredModal.tsx`, focused overlay smoke | Mobile executive, Engineer, Solo founder | Notification Inbox, Create Workspace primary/subdialog/template-field contracts, Workspace Switcher focus-trap/return behavior, Context Rail, Onboarding Tooltips, and tier modal close labels now have focused contract coverage. Notification Inbox no longer uses horizontal entrance motion that can overflow mobile, and the five-persona bundle records Notification Inbox plus Command Center mobile overlay screenshots with 0 visible overflow; route-specific rendered evidence for less common overlay states remains. | -| P1-20 Create Workspace is too dense and template-first on mobile | T10/T12/T7 | 2 | Partially Fixed; mobile disclosure verified | `CreateWorkspaceDialog.tsx`, workspace switcher/create flow, `shell-overlay-contracts.test.tsx`, `user-journeys.spec.ts` | Mobile executive, Solo founder, Team admin | Template delete now uses an in-app confirmation; optional templates and agent assignment use progressive disclosure; the agent section is collapsed by default at 390 x 844 and expands on demand. Focused shell-overlay contracts pass 15/15 and rendered `J-mobile` passes 1/1 on port `34380`. Broader screenshot/state coverage and modal focus-return evidence remain. | -| P1-21 Provider model inventory was hardcoded and could hide newly released API models | T10/T12/T17/T18 | 2 | Hermetic routing fixed; external credential smoke pending | `packages/server/src/local/provider-model-catalog.ts`, `packages/server/src/local/litellm-runtime-config.ts`, `packages/server/src/local/provider-env.ts`, `packages/server/src/local/model-availability.ts`, `packages/server/src/local/routes/{providers,litellm,settings,agent,fleet}.ts`, `apps/web/src/{hooks/useProviders.ts,components/os/apps/ChatWindowInstance.tsx,components/os/model-gate/ModelGate.tsx}`, provider/router/completion tests | All personas, especially Engineer and Solo founder | Configured provider APIs supply every returned model id, including all Claude cursor pages and Gemini page tokens; Gemini discovery keeps the key in `x-goog-api-key`, not the URL. Startup migrates/hydrates credentials before the router snapshots env; a secret-free runtime config routes stable `provider/model` ids; key saves and manual retry rebuild/restart that catalog. If a provider releases a model while Waggle remains open, Settings/onboarding/Agent Builder and Chat re-pull catalogs on app focus; selecting or saving that model checks the running config, rebuilds and restarts the managed router only when the exact id is missing, and the shared resolver covers Chat, model switching, default-model saves, and fleet workers. Model-management requests now allow the router's real startup window instead of falsely timing out at 10 seconds. The latest focused hot-model lane passes 27/27 backend tests and 3/3 web tests; ModelGate/onboarding remains 28/28, both web typecheck and scoped diff checks pass, and rendered desktop plus 390 px recovery checks show one honest verdict with no horizontal overflow. A paid external-provider smoke remains a release-environment evidence item, not an implementation gap; the aggregate server typecheck is presently blocked only by unrelated parallel-session dependency/type changes recorded in current verification output. | -| P1-22 Merged Channels had protected-route, loopback-auth, ordering, mobile, and WhatsApp secret-at-rest gaps | T10/T12/T14/T17/T18 | 2/Launch | Isolated hardening complete; integration and live-provider evidence pending | `apps/web/src/components/os/{apps/SettingsApp.tsx,settings/ChannelsSettings.tsx}`, `apps/web/src/lib/adapter.ts`, `packages/server/src/local/channels/**`, channel/chat/event routes, lockfile, focused tests, `docs/audits/2026-07-11-channels-ux-hardening.md` on `codex/channels-ux-hardening` | All personas, especially Engineer, Mobile executive, and Team admin | On the isolated branch, browser and channel loopback calls authenticate through the sidecar session token; configs validate atomically and audit without secret values; held tools enter durable app approval; duplicate deliveries are suppressed and same-chat turns serialize; workspace names resolve to stable IDs; errors/drafts/prerequisites are honest; Settings and channel controls fit at 390 px with the selected tab visible; and Baileys credentials/signal keys live in encrypted Vault state with one-time plaintext migration, fail-closed corruption behavior, logout wipe, and silent upstream logs. Normal clean install passes; backend Channels pass 89/89, focused web passes 12/12, server typecheck/package/web builds and diff checks pass, fresh sidecar/browser flows pass, and a real unpaired Baileys connection returns a QR without creating a plaintext auth directory. This is not yet merged into the dirty UX worktree. Remaining evidence: real Telegram/Discord/Slack credentials, WhatsApp secondary-device scan/restart/unlink, one real held-tool approval, and deliberate branch integration. | -| P2-1 Stale comments and legacy terminology can mislead future work | Cleanup | 2/3 | Phase 2 Pending | Touched files only; especially tier/billing and route comments such as the stale `/workspaces` redirect note in `apps/web/src/routes/index.ts` | Indirect | Comments in touched files describe current Solo/Teams/Enterprise and route behavior; retired/embedded surfaces are classified before judge scoring. | -| P2-2 Browser plugin DOM snapshot failed | Tooling | n/a | Tooling | Browser plugin path; Playwright CLI fallback | Audit process | Continue Playwright fallback until plugin mismatch is fixed; do not block product fixes on Browser DOM snapshot failure. | - -## Current Non-Main Evidence Update - -- Web Guidelines supplement added: `docs/audits/2026-07-08-web-guidelines-line-findings.md` records the native-dialog backlog (20 historical high-confidence hits, 0 current high-confidence hits after focused fixes), 0 current production `transition-all` hits after the focused transition-scoping sweep, 0 current high-confidence weak/missing focus replacements in the reviewed list after focused fixes, 0 remaining image-dimension findings after the SuggestedAgentCards, AgentCenterRow, ReadyStep, BootScreen, StatusBar, LoginBriefing, ChatApp, and SpawnAgentDialog fixes, and a broad form metadata queue. Phase 1 remains unchanged; the supplement strengthens T7/T8/T10/T12 closure evidence. -- Current T10 follow-up evidence: Settings Prompt Shape and TimelineApp event-type selects now set `autocomplete="off"`, WikiTab search has an input-level token focus ring, and WikiTab Obsidian/Notion export targets expose target-specific `name`, `autocomplete="off"`, and token focus rings. Focused coverage: `settings-trust.test.tsx`, `timeline-app.test.tsx`, and `wiki-export-trust.test.tsx`. -- Runtime accessibility T10 analysis updated: `docs/audits/2026-07-08-runtime-a11y-t10-analysis.md` records the original built-app axe/DOM smoke plus the codified gate, `tests/e2e/runtime-a11y.spec.ts`. The gate passes 2/2 on port `34193` for desktop and mobile Home, Settings, Profile, Vault, Mission Control, Memory, workspace chat, Agents, Waggle Dance, Launcher, MCP Hub, Files, and Approvals with zero axe violations. The first implementation slices fix named-control/form-metadata/focus issues for Settings, Profile identity/preferences/brand and Analyze Style action focus, Chat composer, Vault add-secret/actions, Launcher, Approvals, Cockpit/WaggleDance/ComplianceDashboard/AgentCard sampled actions, Agent/Skill/Automation Builder controls, Automation Center template controls, AgentCard and GroupCard select/delete controls, SuggestedAgentCards media/transition stability, AgentCenterRow media stability, ReadyStep media stability, BootScreen/StatusBar media stability, LoginBriefing/Chat/SpawnAgentDialog media stability, Spawn Agent launch controls, Agent template creator/detail controls, Artifact Center search/create/detail controls, Agent Center search, Skills Hub search, Files toolbar and inline rename/create-folder controls, Mission Control source action names/focus rings, ConnectorCard setup controls, Memory Center search/detail controls, MemoryCard selection checkbox labels/metadata, Memory Trust search/correction controls, TimelineTab search/filter controls, EvolutionTab proposal review-note and New Run modal controls, Knowledge Graph toolbar/search/scope controls, Harvest import/source controls, Custom MCP form controls, MCP catalog search and scope-select metadata, ModelGate key/pull controls, inline capability connector-token entry, Telegram digest credentials, first-run onboarding profile/workspace/first-task metadata, EraseDataDialog destructive confirmation metadata/focus ring, All Workspaces search, Wiki search, WorkspaceActionsMenu rename/delete confirmations, warm AskBar metadata/focus ring, workspace TasksTab add-task metadata/focus ring, Timeline event-filter metadata/focus ring, Create Workspace visible setup/template/folder-picker metadata and focus rings, Workspace Switcher focus-trap/return evidence, Files storage/browser scroll regions, workspace tab/image semantics, shell landmarks, and Command Center dialog/mobile row fit plus search focus ring with focused tests. T10 remains open for broader unsampled form metadata outside the covered surfaces, unsampled icon-only controls, and modal focus-return evidence. -- 2026-07-10 T10 label follow-up: opacity-diluted uppercase labels in the principal Home, Agents, Marketplace, Artifact, Launcher, Login Briefing, Persona Switcher, WaggleDance, and MCP surfaces now use guaranteed semantic contrast tokens. `npm run ux:color-guard` reports 96 offenses, all frozen baseline entries, with no new violations. -- 2026-07-10 Pillar 2 return-path follow-up: Connectors, MCP Hub, Artifact Center, Approvals, and Launcher preserve resolved session data during route remount/revalidation; Artifact keys include workspace/search/kind/status. The combined cache lane passes 8 files / 71 tests. Non-main packaged and deployed gates remain open. -- 2026-07-10 onboarding affordance follow-up: inactive Who Are You chips now use a visible `--line-affordance` border, `--text-tertiary`, and hover/focus affordances instead of relying on color alone; the focused onboarding lane passes 14/14. -- 2026-07-11 model setup recovery follow-up: the shared onboarding/Settings `ModelGate` now exposes provider-catalog failures with service-aware copy and a Retry action. Focused ModelGate + onboarding coverage passes 27/27 and web typecheck passes; the desktop service/update event bridge was re-audited and is already wired with binding coverage. -- 2026-07-11 API-key setup follow-up: fresh-port Playwright coverage passes 2/2 for onboarding and Settings provider-key entry, including provider selection, key-field focus, validation, canonical `/api/settings` payload capture, saved feedback, and onboarding Continue enablement. Live provider acceptance still requires a real credential and network. -- 2026-07-11 provider model catalog follow-up: built-in provider model inventories were removed from the server and web registries. Configured provider APIs now supply the full returned model list, normalized as stable `provider/model` ids and merged into Chat/Spawn; outage responses retain a visibly stale last-known catalog. Claude/Gemini pagination, hot-session focus refresh, exact-id router regeneration, default/model/fleet routing, and completion are now deterministic regression gates. A paid live credential request remains external release evidence only. -- 2026-07-11 Create Workspace disclosure follow-up: optional agent assignment is collapsed by default on the 390 x 844 primary flow, expands through a named control, preserves selected template/persona context in its summary, and resets after a cancelled attempt. Focused shell-overlay contracts pass 15/15 and the rendered `J-mobile` journey passes 1/1 on fresh port `34380`; broader modal-state and focus-return evidence remains open. -- T5 visual classification refreshed: `docs/audits/2026-07-08-visual-t5-classification.md` retains the original port 3463 failure classification, then records the current port `34199` verification where `tests/visual/views.spec.ts` passes 14/14. Canonical ASCII-hyphen baselines are active, volatile Home text is masked in the visual spec, and duplicate baseline families are documented for later test-readiness cleanup. -- First-run onboarding T1/T2/T12 analysis added and refreshed: `docs/audits/2026-07-08-first-run-onboarding-t1-t2-t12-analysis.md` records a clean-data built-app smoke on port 3431 without skip flags. Desktop onboarding completed through first-task auto-send into workspace chat; the original lane reproduced T1 Clerk/CSP console errors, found the 390 x 844 Profile Continue action below the viewport, found high-volume Claude Code import too prominent for day-zero setup, and noted model/auto-send handoff polish issues. Current focused verification closes T1 console health for the sampled accountless paths (3/3 on port `34196`) and mobile Profile reachability (1/1 on port `34194`). -- Source inventory supplement added: `docs/audits/2026-07-08-source-inventory-consistency-audit.md` confirms production shell routes are represented, identifies command-query evidence for `/launcher?watch=1` and `/settings?tab=billing`, records current `apps/` and 28-package inventory, and adds T19 for the Browser Companion extension. -- Browser Companion T19 analysis added and refreshed: `docs/audits/2026-07-08-browser-companion-t19-analysis.md` records passing extension syntax/manifest/server checks, disconnected and connected-tab popup screenshots, direct sidecar save success, content-script extraction from a normal page, legacy-trust extracted save success, Memory UI confirmation, pre-fix unallowlisted-extension CORS and `401 MISSING_TOKEN` failures, plus a 2026-07-09 fix for secure token bootstrap, concrete extension-origin CORS matching, MV3 service-worker no-Origin handling, background save auth, sticky accessible popup recovery, restricted-page recovery copy, disabled-state styling, honest memory-destination copy, secure-default loaded-extension save/frame confirmation, popup keyboard/focus/Enter save proof, direct popup Save page click evidence, rendered Memory UI confirmation after the secure default path, context-menu handler coverage, stable packaged-ID pairing proof, Memory search provenance consistency for imported captures, and existing chat `auto_recall`/catch-up imported provenance. T19 remains open for native toolbar-bubble proof or manual release evidence, native context-menu click proof or deferral, signed Web Store/installer-distributed extension proof if release packaging is scored, and separate proof for any future recall result shape if scored. -- Desktop wrapper T14 analysis added and refreshed: `docs/audits/2026-07-08-desktop-wrapper-t14-analysis.md` records passing app TypeScript, Rust `cargo check`, sidecar resource preflight, app service E2E, app helper/static tests, web-side Tauri binding tests, release workflow hardening, and tray source hardening. T14 remains open for packaged tray/close/shortcut evidence, packaged watchdog/update presentation, installer/signing proof, root command-shape gap for `apps/web` Tauri tests, and absent packaged interaction evidence. - -- T11 focused analysis refreshed: `docs/audits/2026-07-08-route-evidence-t11-analysis.md` records the AppShell route registry, app-local route table tests 29/29, Benchmark/Platform/Payment component tests 17/17, all-route built-preview smoke on port 3457, and codified `J-route-coverage` tests passing 2/2 on port `34200`. T11 is now closed for route-existence ownership; remaining route-adjacent issues are tracked under T9/T10/T12/T16. -- T6 marketplace determinism fix verified: `POST /api/marketplace/sync` now shares the marketplace-sync disable gate used by the background scheduler, so `WAGGLE_DISABLE_MARKETPLACE_SYNC=1` returns `skipped: true` without touching external sources. Focused Vitest passed 3/3 across manual-sync and background-sync contracts; `packages/server` typecheck passed; focused Playwright marketplace verification passed 4/4 on port `34203` after the T17 `tsx`/esbuild startup fix. -- P1-17 high-volume import fix verified: first-run Claude Code detections above 1,000 items now default to `Review after setup`, format the count, and make immediate import explicit; `onboarding-import-step.test.tsx` passed 2/2 and `npm run typecheck:web` passed. -- P1-18 first-run handoff fix verified: ready model state hides the stale setup/checking gate, and auto-sent first-task seeds clear immediately while pending; `ModelGateStep.test.tsx` passed 5/5, `lane-c-input-power.test.tsx` passed 12/12, the onboarding focused bundle passed 22/22, and `npm run typecheck:web` passed. -- T12 focused analysis added and refreshed: `docs/audits/2026-07-08-state-failure-t12-analysis.md` records a passing focused state slice (9 files / 79 tests), existing chat SSE failure-injection source coverage, browser-native dialog line evidence, warning-noise risks, five-persona state-bundle fields, and T12-A through T12-G correction candidates. The current five-persona bundle passes 5/5 with retries disabled on port `34301`, with route, sampled failure/workflow/scale/slow-data, and overlay evidence plus Mobile Executive Notification Inbox, Command Center, and local model runtime-unavailable screenshots, Researcher Memory unavailable, Memory slow-list, Memory large-list, and Timeline/Event large-list evidence, Engineer Agents slow-list, Agents large-list, Marketplace unavailable, Marketplace large-catalog, Cockpit health-degraded, Files upload-failure, Files upload-success, and Files large-list evidence, and Team Admin billing checkout-unavailable, Team active billing state, Team settings unlocked state, billing checkout success return, billing checkout cancel return, backup creation failure, and backup restore-failure evidence. Failed uploads show branded recovery copy and do not render the failed filename as a successful row; successful uploads return `/successful-upload.md` and render the uploaded file in the Files UI; the files large-list probe renders 240 mocked files with `240 items`; the Marketplace large-catalog probe renders a 240-entry mocked catalog with grouped `Skills 120`, `Connectors 60`, and `MCPs 60`; the Memory slow-list probe delays `/api/memory` by 2 seconds, proves the aria-busy `Loading memories` status, and then renders 40 mocked memories with `40 memories` and `Bulk Memory 000`; the Memory large-list probe renders 200 mocked memories with `200 memories` and `Bulk Memory 000`; the Agents slow-list probe delays `/api/agents` by 2 seconds, proves the aria-busy `Loading agents` status, and then renders 40 mocked agents with `40 agents` and `Bulk Agent 000`; the Agents large-list probe renders 180 mocked agents with `180 agents` and `Bulk Agent 000`; the Team Admin active billing state mocks `/api/tier` to `TEAMS` and renders `Waggle Team`, `$49/mo per seat`, and `Manage subscription`; the Team settings unlocked state renders `Team Server URL`, `Auth Token`, and the team-server trust warning; the Team Admin checkout success return mocks `/api/stripe/sync` to `TEAMS` and renders the Team confirmation; the checkout cancel return redirects to Billing with `Checkout was cancelled` and `No charge was made`; the Timeline/Event large-list probe renders 360 mocked events with `360 events` and `Used bulk_tool_000`. The run reports 0 critical console/page/network failures and 0 visible overflow. -- Mobile Executive T2/T12 analysis added and refreshed: `docs/audits/2026-07-08-mobile-executive-t2-t12-analysis.md` records the original 390 x 844 built-app smoke on port 3419 with screenshots for Home, Settings general/models/billing/profile, Memory, workspace chat, Command Center, and Workspace Switcher. The original pass kept T2 open because Settings controls visibly clipped despite clean document scroll width. Current focused verification closes P0-2: `J-mobile: Settings is usable at 390px width` passed 1/1 on port `34195`. -- T13 focused analysis added and refreshed: `docs/audits/2026-07-08-launch-funnel-t13-analysis.md` records passing www test/typecheck/build evidence, localhost route/API smoke, rendered Browser evidence under `output/playwright/www-t13-3491/`, a current external refresh, and local checkout/legal/download/deploy-workflow fixes. T13 remains a launch P0 because the canonical `waggle-os.ai` and `www.waggle-os.ai` domains do not resolve from the audit environment, real signed installers are not published, Vercel production deploy/DNS smoke is not proved, real deployed Clerk/Stripe checkout success/cancel evidence is still missing, and legal sign-off is not proved. Locally fixed: signed-out Team CTA now uses GET auth continuation, cancelled checkout returns to `/?checkout=cancelled#pricing` with a retry notice, the intentional `html.js` hydration mismatch no longer raises the Next dev issue badge, legal Day-0/stale Pro placeholder copy is guarded, public Download uses `/download` instead of an empty release target, mobile/tablet visitors keep a generic Download label, and `deploy-www.yml` targets Vercel prebuilt deployment instead of GitHub Pages/static `apps/www/dist`. -- Shell Overlay T10/T12 analysis added and partially updated: `docs/audits/2026-07-08-shell-overlays-t10-t12-analysis.md` records the original built-app overlay smoke on port 3437 plus the Phase 2 partial fixes. Notification Inbox and Create Workspace primary/subdialog contracts now have codified dialog/close evidence, custom-template delete no longer uses native `confirm()`, Context Rail has a labelled complementary contract, Onboarding Tooltips has an explicit non-modal dialog/Escape contract, tier modal close labels are named, and the sampled 390 x 844 Create Workspace hierarchy passes on port `34157`; the expanded user-journey suite passed 19/19 on port `34158`. The five-persona bundle now refreshes Mobile Executive Notification Inbox and Command Center overlay screenshots, and `NotificationInbox` avoids horizontal opening motion that caused transient mobile overflow. Route-specific overlay state evidence for less common overlay states remains open. -- T7 trust-dialog update: Approvals revoke-all now uses the shared in-app `ApprovalModal`; `p7-b1-approvals-error.test.tsx` covers the no-native-confirm contract, rendered `J3d` passes on port `34159`, and the expanded user-journey suite passed 20/20 on port `34160` before the Artifact `J3e` addition. -- T7 trust-dialog update: Artifact permanent delete now uses the shared in-app `ApprovalModal`; `artifact-center-trust.test.tsx` covers the no-native-confirm contract, rendered `J3e` passes on port `34161`, and the expanded user-journey suite passes 21/21 on port `34162`. -- T7 trust-dialog update: Memory Center permanent delete, GDPR erase, and allow re-import now use the shared in-app `ApprovalModal`; `memory-center-trust.test.tsx` covers all three no-native-confirm contracts, rendered `J3f` passes on port `34164`, and the expanded user-journey suite passes 22/22 on port `34165`. -- T7/T10 trust-dialog and accessibility update: Wiki Obsidian and Notion exports now use in-app form dialogs; `wiki-export-trust.test.tsx` covers both no-native-prompt contracts; rendered `J3g` passes on port `34167`; and the path remains included in the latest 24/24 user-journey suite on port `34177`. -- T14 is narrowed, not closed: `app` TypeScript, static updater/installer/signing/runtime tests, static Tauri config/update/tray tests, sidecar resource preflight, web typecheck, Rust `cargo check`, service-level startup/chat/workspace E2E, the release package-before-sidecar guard, focused web desktop-navigation/shell-event binding tests, updater-disabled static contracts, Rust sidecar path unit tests, and Tauri webview-origin CORS tests pass. Native source directly handles tray Open/focus, close-to-tray, `Ctrl+Shift+W`, and Quit; Settings routes through a tested `/settings` desktop bridge; Pause and About are hidden. Packaged debug Tauri startup now launches, starts bundled `resources/service.js`, and reaches `/health` without CORS/module/ABI errors. MSI/installer packaging, packaged tray interactions, close-to-tray, global shortcut, forced watchdog UI, installer trust, and signed-update proof still need installed-app evidence. -- T15 deep-dive updated: `docs/audits/2026-07-08-admin-cli-utility-t15-analysis.md` records passing admin-web, launcher package-local tests, `@waggle/cli` package-local tests, memory MCP package-local tests, hive-mind MCP package-local tests, marketplace targeted tests, hive-mind CLI package-local tests, no-emit TypeScript, package build scripts, and admin-web rendered package evidence. It also records focused marketplace, launcher, `@waggle/cli`, memory MCP, hive-mind MCP, hive-mind CLI, and admin-web fixes: marketplace NodeNext emitted imports, built help, source/built/installed invalid-command smokes pass without clean-home DB side effects; marketplace publish manifest/packed-file alignment and installed-bin help are guarded; launcher source/built help and invalid-port paths pass without service banners or `.waggle` side effects; built and installed launcher occupied-port recovery prints a concrete `npx waggle --port ` command; launcher packed tarball first-command help runs without service setup; clean installed launcher startup serves `/health`, prints manual-open copy, and creates the configured data dir; `@waggle/cli` built, bin-wrapper, packed-bin, local package-closure installed `npx` help, local package-closure installed REPL startup/slash-command/exit, and local package-closure installed streamed chat/provider plumbing against a mock LiteLLM-compatible endpoint pass, with `@waggle/agent`/`@waggle/weaver` package metadata corrected to built `dist` entries and `@waggle/agent` runtime dependency declarations fixed; legacy memory MCP and hive-mind MCP built write-scope roundtrips save and recall unique memories; legacy memory MCP and hive-mind MCP local package-closure installed read-only startup lists tools; hive-mind CLI source/built/local package-closure installed sampled subcommand help prints focused help without creating `personal.mind`; the installed hive-mind CLI proof found and fixed the missing `@waggle/shared` dependency in `@waggle/hive-mind-core`; the installed memory MCP proof found and fixed the missing `glob` dependency in `@waggle/core`; admin-web package-local tests pass without React `act(...)` warnings; and built-preview Playwright evidence proves all seven admin pages at desktop and mobile widths, hash deep links, browser back/forward traversal, `aria-current`, labelled table scroll regions, labelled rendered controls, clean app console/pageerror collection, mobile shell keyboard reachability, page-level keyboard traversal from connection fields into the covered admin pages, desktop/mobile visual snapshots, capability governance forms, malformed analytics response recovery without blanking the shell, all-page initial API-failure recovery with accessible alerts, mutation/destructive-failure recovery for capability policy save, capability override create/remove, capability request decision, member invite, member role change, member removal, and team settings save, plus local bearer-auth wrong-token/valid-token behavior through protected Fastify routes. T15 remains open because registry-only proof after internal package publication remains open. The Members native-confirm blocker is fixed in focused component coverage. -- T16 deep-dive updated: `docs/audits/2026-07-08-ai-tool-hook-t16-analysis.md` records passing shared/agent/server route tests, Launcher/prompt/adapter tests, root-run hook package tests, hook/shim package-local scripts, official package typechecks, Claude Desktop stub build, compiled hook-bin help smokes, packed-package `npx` install/verify/uninstall lifecycle for all six hook-capable packages, focused no-reconnect observed-output regression coverage, hook stdout/stderr/Backup-Recovery/Check-failed/uninstall-cleanup/More-output/structured-failure/empty-output recovery/Claude Desktop launch-only coverage, focused registry-aware third-party adapter launch coverage, partial rendered Launcher Browser evidence under `output/playwright/launcher-t16-54147/`, a fresh real Browser `/launcher` smoke where Verify now renders `verify failed (exit 1)` with retry/uninstall/reinstall guidance instead of `HTTP 400`, Browser-rendered mocked Claude Desktop, Codex Verify manual-approval, and Codex Uninstall cleanup states, codified Playwright rendered standard install changed-file/pointer/backup/recovery labels, sidecar-offline Retry, long-stderr summarization, all six hook-capable install/verify/uninstall transitions, and non-built-in adapter launch-only/prompt behavior, gated real-tool Playwright evidence where OpenClaw renders as a real detected CLI and launches through the sidecar with observed output, exit 0, and process cleanup, gated route-level evidence where all six hook-capable tools install/verify/uninstall through `/api/tools/hooks` against an isolated profile and clean up, Codex WindowsApps recovery evidence where the restricted app alias is installed-but-not-launchable with no Launch button, Tailwind motion-token warning cleanup evidence, and `shape-selection.ts` dynamic/static import warning cleanup evidence. It keeps T16 open for packaged desktop hook-status evidence and remaining noisy test output. -- T17 deep-dive updated: `docs/audits/2026-07-08-developer-substrate-t17-analysis.md` records 13/13 direct no-emit typechecks, passing agent/core/optimizer/weaver package tests, passing root-run substrate/SDK/shared/WaggleDance/worker/compiler tests, a dedicated server performance lane passing 13/13, a named server release lane passing 185 files / 2128 tests with one worker, hermetic marketplace-sync tests, and package-local test commands now passing for hive-mind-core (59/745), wiki-compiler (2/25), sdk (5/89), worker (4/46), WaggleDance (3/42), shared (5/40), and hive-mind-wiki-compiler (3/26). It keeps T17 open for warning hygiene and incomplete developer recovery-journey evidence. -- T18 deep-dive added and partially refreshed: `docs/audits/2026-07-08-ops-deploy-ci-judging-t18-analysis.md` records passing YAML parse, safe Compose scans, ignored env-file tracking checks, benchmark harness TypeScript and package-local tests (29/325), production Compose fail-closed credential guards, explicit Render sidecar-mode guards, root-run benchmark tests, and a focused public-site workflow fix from GitHub Pages/static artifact upload to Vercel prebuilt deployment. It keeps T18 open for missing deployed Vercel/DNS smoke, non-blocking CI E2E, no CI infra lane, unavailable local Docker engine, LiteLLM live-routing gap, and stale historical judging artifacts. - -## Phase Approval Boundaries - -Phase 1 approval includes only: - -- T1 local auth, Clerk, and CSP console health. -- T2 follow-through for mobile Settings and first-run onboarding is now verified fixed in focused 390px journeys; keep broader mobile polish evidence for Memory/chat tabs and selected overlays. -- T3 Solo/Teams/Enterprise copy cleanup. -- T4 `Ctrl+Shift+N` and Workspace Switcher route contract are verified fixed in focused runs; keep them in regression. -- T5 visual snapshot lane is verified fixed for the seven tracked desktop views; keep broader visual scope in the route/scenario manifest and T12 evidence. -- T11 route evidence for thin judge paths is verified fixed; keep deeper state/action coverage in T12 and launcher/runtime proof in T16. - -T12 state/failure bundle evidence is not part of Phase 1 implementation unless Phase 1 verification directly needs it. It becomes a Phase 2 judge-readiness gate. - -T13 launch-funnel evidence, T14 desktop-wrapper evidence, T15 utility evidence, T16 hook lifecycle evidence, T17 developer API/background/substrate verification evidence, T18 ops/deployment/CI/benchmark/judging evidence, and T19 Browser Companion evidence are not part of Phase 1 implementation unless Phase 1 verification directly needs a minimal supporting fix. They become final-product gates after the in-app P0 blockers are cleared. - -Phase 1 approval does not include broad redesign, new surfaces, native dialog replacement across the whole app, performance chunk splitting, launch-site deployment/checkout/legal work, desktop wrapper/install/update work, admin/CLI/MCP utility work, AI-tool hook lifecycle work, developer API/background/substrate tooling work, ops/deployment/CI/benchmark/judging work, Browser Companion extension work, or local model pricing semantics unless a Phase 1 verification command directly requires a minimal supporting fix. - -Post-Phase-1 sequencing lives in `docs/audits/2026-07-08-ux-post-phase-1-roadmap.md`. - -## Judge Blocking Rules - -- Any open P0, including launch-scoped P0s unless explicitly deferred from the final score, blocks the final five-persona 9/10 claim. -- Any open P1 that touches a persona's primary journey must be fixed or explicitly deferred before scoring that persona. -- Any missing T12 state bundle blocks the scorecard for the persona whose primary journey depends on that state. -- Missing T13/T14/T15/T16/T17/T18/T19 evidence blocks a full "complete UX" claim unless the user explicitly scopes those gates out of the five-persona score. -- P2 items do not block scoring by themselves, but must not contradict the implementation or reintroduce wrong copy in touched files. -- A green test is not enough unless it covers the route, viewport, and user state named in the finding. - -## Current Recommendation - -Phase 1 is implemented and verified. Continue Phase 2 in focused slices; the overlay-contract slices now include Create Workspace mobile hierarchy/subdialogs, while screenshot refresh plus the broader trust/accessibility/native-dialog backlog stay open. - -Decision brief: `docs/audits/2026-07-08-ux-approval-brief.md`. diff --git a/docs/audits/2026-07-08-ux-non-main-surface-scope.md b/docs/audits/2026-07-08-ux-non-main-surface-scope.md deleted file mode 100644 index 7ac1e8a..0000000 --- a/docs/audits/2026-07-08-ux-non-main-surface-scope.md +++ /dev/null @@ -1,438 +0,0 @@ -# Non-Main UX Surface Scope - -Status: analysis only. No product code was changed. - -Purpose: the main audit already covers the installed cockpit experience in `apps/web`. This note prevents "complete UX" from silently excluding the public launch funnel, Browser Companion extension, Tauri desktop wrapper, installer/update path, active local service startup path, admin web surface, CLI launchers, marketplace CLI, memory MCP utilities, AI-tool hooks, developer APIs, background jobs, substrate package verification, deployment/ops configuration, CI, benchmarks, and judging artifacts. - -## Scope Decision - -The five-persona 9/10 judge gate should primarily score the installed product experience: `apps/web` rendered through the local service, because the requested personas are operating the product. - -The final "complete UX" claim still needs one of these explicit decisions: - -1. Fix and verify the non-main launch/desktop/utility/hook/developer/ops gates before final scoring. -2. Approve a written deferral that scopes the five-persona gate to the installed app only. - -Without one of those decisions, public download, checkout, legal trust, browser capture, installer, tray, update, sidecar-startup, admin, CLI, MCP utility, hook lifecycle, SDK, server API, worker, substrate verification, deployment, CI, benchmark, and judging failures could remain outside the score while still affecting real users. - -## Public Launch Funnel: `apps/www` - -User jobs: - -- Understand what Waggle is. -- Download the desktop app. -- Sign in or sign up. -- Start Team checkout. -- Recover from cancelled checkout. -- Read methodology, legal, privacy, cookies, and EU AI Act trust pages. -- Reach KVARK for Enterprise. - -Current strengths: - -- Homepage is structured as a coherent launch narrative: hero, problem, how it works, memory, proof, features, trust, personas, open source, pricing, final CTA. -- Landing page has a skip link, semantic sections, absolute nav anchors, mobile menu semantics, and OS-aware download CTA. -- Pricing is mostly aligned to Solo, Team, Enterprise. -- Historical Lighthouse note reports 96 performance, 96 accessibility, and 100 SEO on a local prod build. -- `BrandPersonasCard` has useful component coverage, including keyboard activation and image-failure fallback. - -Current command evidence, 2026-07-08 continuation: - -| Check | Result | Interpretation | -|---|---:|---| -| `npm run test -w apps/www` | Pass, 1 file / 10 tests | The existing component coverage is healthy, but still narrow. | -| `npm run build:www` | Pass | Next build succeeds and reports dynamic routes for account, Clerk auth, Stripe checkout, and Stripe webhook. | -| `npx tsc --noEmit --project apps/www/tsconfig.json` | Pass | Direct TypeScript check passes for the public site. | -| `Test-Path apps/www/dist`, `Test-Path apps/www/.next`, `Test-Path apps/www/out` | `False`, `True`, `False` | The build output is `.next`, not the `apps/www/dist` artifact uploaded by the current GitHub Pages workflow. | -| Env-shape check for Clerk/Stripe keys | Mixed | `apps/www/.env.local` has Clerk test keys that differ from the root Clerk pair, and a live-shaped Stripe secret. Values were not printed. | -| `next start` bound to `127.0.0.1` + bounded route/API smoke | Invalid harness / fail | Next middleware attempted to proxy to `localhost:` and returned timeouts/500s. Re-running against `--hostname localhost` showed the core public routes can render, so the `127.0.0.1` result is a Windows host-binding trap, not by itself product behavior. | -| `next start` bound to `localhost` + status/browser smoke | Mixed | `/`, `/#pricing`, `/privacy`, `/terms`, `/cookies`, `/eu-ai-act`, `/sign-in`, `/sign-up`, `/docs/methodology`, and unauthenticated `/account` redirect render; `/pricing?checkout=cancelled` is 404; signed-out `Get Team` leaves a small inline `Sign in required` error; browser console/server log still show Clerk development-key and session-loop warnings. | -| Focused T13 continuation smoke | Mixed | Fresh localhost route/API smoke confirms core pages and signed-out GET checkout redirect work; `/pricing?checkout=cancelled` and `/methodology` return 404; signed-out POST checkout returns `401` with a `signInUrl` the pricing UI does not use. | -| Live canonical-domain smoke | Fail | Current external refresh on 2026-07-08 could not resolve `waggle-os.ai`; `nslookup waggle-os.ai` returned non-existent domain from the audit environment. | -| GitHub Releases latest target | Fail | The public download CTA points to GitHub Releases latest, but GitHub currently reports no releases for the repo; API refresh returned an empty releases list. | - -Open UX risks: - -| ID | Risk | Evidence | Why it matters | -|---|---|---|---| -| WWW-0 | The standard launch-funnel smoke is host-sensitive and Clerk-noisy. | Binding `next start` to `127.0.0.1` caused Next middleware proxy failures to `localhost:` on Windows; binding to `localhost` rendered core routes, but the browser/server still emitted Clerk development-key and session-loop warnings. | A release gate needs a stable, documented smoke command and zero auth-loop noise before buyers or reviewers use the public site. | -| WWW-0A | The canonical public domain does not currently resolve. | Current external refresh could not resolve `waggle-os.ai`; the app metadata, sitemap, robots, and methodology page declare `https://waggle-os.ai` as canonical. | The acquisition, pricing, legal, auth, account, and download funnel is unreachable at the URL the app declares canonical. | -| WWW-1 | Signed-out Team checkout can dead-end as a JSON error. | `Pricing.tsx` calls `POST /api/stripe/checkout`; the route returns `401 { message: "Sign in required", signInUrl }`; the component only shows the message and ignores `signInUrl`. | A buyer clicking "Get Team" before signing in should be guided into sign-in/sign-up and then checkout, not shown an implementation-shaped error. | -| WWW-2 | Stripe cancel recovery points to a likely dead route. | Checkout route uses `cancel_url: ${origin}/pricing?checkout=cancelled`; the site has a pricing section on `/`, not an `app/pricing/page.tsx` route. | Cancelled checkout should return to pricing with clear recovery, not a 404 or unrelated page. | -| WWW-3 | GitHub Pages deployment workflow likely cannot publish this Next app as written. | `deploy-www.yml` uploads `apps/www/dist`; `npm run build:www` produced `.next`, not `dist` or `out`, and the app includes dynamic Clerk and Stripe API routes. | A strong local landing page still fails the launch funnel if the deploy target cannot serve it. | -| WWW-4 | Legal trust pages are visibly unfinished and contain stale tier copy. | Terms/privacy/cookies/EU AI Act pages say "Day-0 placeholder"; privacy says "upgrade to Pro or Teams"; launch-date/address placeholders remain. | Legal/trust copy is part of UX for founders, admins, and enterprise reviewers. | -| WWW-5 | Coverage is thin for funnel flows. | Only `BrandPersonasCard.test.tsx` was found under `apps/www/__tests__`; no route E2E, checkout recovery, account, mobile nav, or fresh Lighthouse evidence was collected in this packet. | One component test cannot justify a complete launch UX claim. | -| WWW-6 | Public download currently leads to no installable artifact. | `DownloadCTA` targets GitHub Releases latest, but the repository currently has no releases; OS detection can also label iPhone/iPad as macOS and unsupported desktops as Linux while public copy says Windows and macOS. | Download is the first conversion path for Solo founders and mobile evaluators; an empty target makes the product look unavailable. | - -Recommended ticket: T13, Launch Funnel UX Gate. Focused supplement: `docs/audits/2026-07-08-launch-funnel-t13-analysis.md`. - -Suggested acceptance: - -- `apps/www` build/deploy target is valid for the actual app shape, or deployment is moved to an appropriate Next host. -- Canonical `https://waggle-os.ai/` resolves and serves the selected public-site deployment. -- Download CTA leads to valid Windows/macOS artifacts or a controlled download/status page; mobile and unsupported OS labels are honest. -- Local production route smoke uses the correct host binding and serves `/`, `/#pricing`, `/docs/methodology`, `/privacy`, `/terms`, `/cookies`, `/eu-ai-act`, `/sign-in`, `/sign-up`, unauthenticated `/account` redirect, and checkout recovery without 500s, timeouts, 404s, or Clerk redirect-loop spam. -- Homepage route smoke passes on desktop and mobile with no critical console errors. -- Mobile nav, download CTA, billing toggle, signed-out Team checkout, signed-in Team checkout stub/live lane, checkout cancel recovery, account redirect, sign-in, and sign-up are exercised. -- Legal pages have no placeholder launch dates/addresses and no active Pro copy except explicit legacy billing context. -- Fresh Lighthouse or equivalent accessibility/performance/SEO evidence is attached. - -## Browser Companion Extension: `apps/browser-ext` - -User jobs: - -- Save selected text from any web page into Waggle memory. -- Save the current page into Waggle memory. -- See whether Waggle desktop is reachable. -- Understand which workspace or personal memory receives the save. -- Recover from CORS/sidecar disconnected states. - -Current strengths: - -- The folder is intentionally documented as "Waggle Companion", a Chrome MV3 extension. -- Manifest is simple and local-first: popup, background service worker, content script, context menu, active tab, storage. -- Popup has connected/disconnected status, workspace label, save-selection/save-page actions, and an Open Waggle button. -- Background script talks to the local sidecar; popup code uses `textContent` for workspace names rather than `innerHTML`. -- Server has dedicated `GET /api/browser-ext/session-token` and `GET /api/browser-ext/health` endpoints, plus CORS/config checks for extension IDs. - -Current source evidence, 2026-07-08 continuation: - -| Check | Result | Interpretation | -|---|---:|---| -| `Get-ChildItem apps/browser-ext -Recurse -File` | Pass | Extension files are present: `manifest.json`, `popup.html`, `popup.js`, `background.js`, `content.js`, `README.md`. | -| Source search for `browser-ext` and extension env vars | Pass | README, server route, CORS config, backend docs, and settings coverage card all reference the extension. | -| `packages/server/src/local/routes/browser-ext.ts` inspection | Pass | Token endpoint bootstraps allowlisted Browser Companion requests; health endpoint returns `{ ok, version, activeWorkspaceId, activeWorkspace }` with `activeWorkspace` kept for legacy extension builds; save flows reuse `/api/memory/frames`. | -| Extension JS syntax, manifest parse, and server typecheck | Pass | Root extension files parse and the server side of the contract typechecks. | -| Playwright disconnected-state smoke | Partial | Unpacked extension loads and disconnected popup renders; screenshot at `output/playwright/browser-companion-disconnected-state.png`. This does not prove toolbar-popup-over-page behavior or save success. | -| Secure-default loaded-extension save smoke | Pass with known gaps | `output/playwright/browser-companion-toolbar-3333/run-secure-default-live-smoke.mjs` proves content-script extraction, MV3 service-worker no-Origin handling, token bootstrap during save, background save through `chrome.runtime.sendMessage`, and `/api/memory/frames` imported-frame confirmation. `run-popup-button-click-live-smoke.mjs` proves popup Tab order, visible Save selection focus, Enter-to-save selection, Save page click, frame creation through the secure sidecar path with an active-tab shim, `/api/memory/search` `source: import`, rendered `/memory` visibility with the `imported` provenance chip when `WAGGLE_T19_WEB_URL` is supplied, and a restricted-page popup state with non-primary disabled styling plus normal-webpage recovery copy. `run-packaged-id-pairing-smoke.mjs` proves stable extension-ID sidecar pairing. `orchestrator-recall-hardening.test.ts` proves existing chat `auto_recall`/catch-up imported provenance. Native toolbar-bubble exposure, native context-menu click proof, signed release-package proof if scored, and any future scored recall result shape remain open. | - -Open UX risks: - -| ID | Risk | Evidence | Why it matters | -|---|---|---|---| -| EXT-1 | Browser Companion is user-facing and must stay in the judge/evidence packet. | `apps/browser-ext/README.md` presents it as a workflow surface for researcher/journalist/marketer/writer users. T19 now records loaded-extension and popup save evidence, but native toolbar/context proof remains open. | A complete UX claim should not omit a capture surface that feeds the memory moat. | -| EXT-2 | Connected/disconnected/CORS-denied states are only partly visually proved. | Disconnected and connected-tab screenshots exist; focused code maps setup denial to recovery copy. Live CORS-denied screenshot is still optional evidence. | The first user experience is likely "why is this not connected?" if the sidecar or extension ID is not configured. | -| EXT-3 | Save-to-memory success is end-to-end verified for the background path and direct popup keyboard/click path, but not the native toolbar bubble. | Secure-default smoke saves extracted selected text and confirms `/api/memory/frames`; popup smoke tabs through the action order, saves selection via Enter, clicks Save page, and confirms both frames. Playwright still cannot observe the native toolbar popup as a page. | The extension's core promise is a memory ingestion path, but final release evidence still needs native toolbar-bubble proof or a deliberate deferral. | -| EXT-4 | Popup accessibility and polish are partly fixed but not fully reviewed. | Toast now has `role="status"`/`aria-live`; restricted-page and setup errors are sticky; keyboard Tab order, focus ring, Enter-to-save behavior, and restricted-page disabled styling have live evidence. | A small popup can still fail status announcement if that behavior is scored without a screen-reader proof pass. | -| EXT-5 | Coverage Compass claimed browser extensions were covered before native toolbar/context behavior was proved. | `CoverageCompassCard.tsx` now marks Browser AI extensions as `partial` and names the popup/capture coverage plus the pending native entry points; secure save-flow smoke exists, but native toolbar-bubble and native context-menu evidence remain open. | Fixed 2026-07-10; keep the partial state until native entry-point proof or an explicit score deferral exists. | -| EXT-6 | Disconnected/restricted-page states needed stronger copy and accessibility. | T19 now has sticky setup/restricted recovery, explicit normal-webpage copy, non-primary disabled styling, and honest memory-destination copy. Live CORS-denied screenshot remains optional if scored. | First-run extension failure should feel recoverable and accessible, not like a dead popup. | - -Recommended ticket: T19, Browser Companion Extension UX Gate. - -Suggested acceptance: - -- Load the unpacked extension in Chromium/Chrome with a fresh sidecar and extension origin allowlist. -- Verify popup connected and disconnected states. -- Verify save selected text and save whole page popup interactions show visible extension feedback and create Memory frames in Waggle; native toolbar-bubble proof can be manual if Playwright cannot expose it. -- Verify native context-menu save, or explicitly defer it. The handler itself is regression-covered. -- Verify CORS-denied recovery copy tells the user how to configure `WAGGLE_BROWSER_EXT_IDS` or the dev escape hatch. -- Verify status copy and screen-reader announcement behavior if scored separately; popup keyboard/focus basics now have live evidence. -- Verify `CoverageCompassCard` does not claim browser-extension coverage beyond current evidence. -- Add automated smoke evidence or explicitly defer the extension from the five-persona score. - -## Desktop Wrapper, Installer, Tray, Update: `app/` - -User jobs: - -- Install the app. -- Launch the app and see the web cockpit with the local service ready. -- Close to tray and re-open. -- Use tray actions for open, pause agents, settings, about, and quit. -- Use global shortcut behavior. -- Recover if the sidecar is unhealthy or port 3333 is occupied. -- Receive updates when the update channel is intentionally supported. - -Current strengths: - -- Tauri config points the desktop binary at `apps/web/dist` and includes bundle resources, NSIS configuration, window sizing, CSP, and tray metadata. -- Release and PR workflows stage sidecar dependencies, native dependencies, and Node runtime before Tauri build. -- Static tests cover updater config, signing helpers, installer config helpers, runtime bundling helpers, and API-level startup/chat/workspace flows. -- `scripts/check-sidecar-resources.mjs` fails loudly if packaged sidecar runtime artifacts are missing. - -Current command evidence, 2026-07-08 continuation: - -| Check | Result | Interpretation | -|---|---:|---| -| `npx tsc --noEmit --project app/tsconfig.json` | Pass | Desktop wrapper TypeScript scripts/config compile. | -| `npx vitest run app/tests/auto-update.test.ts app/scripts/installer-config.test.ts app/scripts/signing-config.test.ts app/scripts/bundle-runtimes.test.ts` | Pass, 4 files / 85 tests | Static updater, installer, signing, and runtime-bundling helper checks are healthy. | -| `npx vitest run packages/server/tests/tauri-config.test.ts app/tests/auto-update.test.ts` | Pass, 2 files / 30 tests | Static Tauri config and update-emitter expectations are healthy. | -| `node scripts/check-sidecar-resources.mjs` | Pass | Staged Node runtime, native deps, and sidecar `node_modules` are present locally. | -| `cargo check --manifest-path app/src-tauri/Cargo.toml` | Pass | Tauri Rust shell compiles in dev profile. | -| `npm run test -- tauri-bindings.test.ts adapter.tauri-branch.test.ts --reporter=dot` from `apps/web` | Pass, 2 files / 19 tests | Web-side Tauri command bindings and adapter Tauri branch tests pass through the correct package-local command. | -| `npm run test -w apps/web -- src/lib/tauri-bindings.test.ts --reporter=dot` | Pass, 1 file / 15 tests | Focused desktop navigation binding test covers `/settings` allowlist and unsupported payload filtering. | -| `npx vitest run app/tests/e2e/startup.test.ts app/tests/e2e/chat.test.ts app/tests/e2e/workspaces.test.ts` | Pass, 3 files / 11 tests | Local service startup, health, settings persistence, chat SSE, workspace/session, and memory-scope API flows work in the Vitest harness. | - -Native event consumer matrix: - -| Native event / behavior | Source | Current React consumer evidence | UX reading | -|---|---|---|---| -| Tray icon click / Open Waggle | `tray.rs` handles show/focus directly | Native-handled; no React consumer needed | Source-wired, but still needs packaged smoke evidence. | -| Close window to tray | `lib.rs` prevents close and hides the window | Native-handled; no React consumer needed | Source-wired, but still needs target-OS smoke evidence. | -| `Ctrl+Shift+W` global shortcut | `lib.rs` toggles window visibility directly | Native-handled; no React consumer needed | Source-wired, but still needs target-OS smoke evidence. | -| Tray Settings | `tray.rs` emits `waggle://navigate` to `/settings` after show/focus | `App.tsx` mounts `TauriDesktopEventBridge`; `tauri-bindings.ts` accepts only `/settings` | Source-wired, but still needs packaged smoke evidence. | -| Pause Agents tray action | `tray.rs` | Menu item and emitter removed | Hidden until pause/resume has real product behavior. | -| About Waggle tray action | `tray.rs` | Menu item and `/about` emitter removed | Hidden until there is a real About destination. | -| Tray Quit | `tray.rs` calls `app.exit(0)` | Native-handled; no React consumer needed | Source-wired to Tauri exit cleanup, but still needs packaged smoke evidence. | -| `waggle://update-available` | `lib.rs` emit | 0 matching `apps/web/src` listeners; covered only as future-emitter static test | Update availability is not user-visible. | -| `waggle://service-status` | `service.rs` emit | 0 matching `apps/web/src` listeners | Failed/restarting service state may not be visible. | -| `waggle://service-restart-needed` | `service.rs` emit | 0 matching `apps/web/src` listeners | Restart-needed state may not guide the user. | - -Open UX risks: - -| ID | Risk | Evidence | Why it matters | -|---|---|---|---| -| DESK-1 | Update/service events still have emitters but no current frontend consumers. | Tray route false affordances are narrowed: Settings has a `/settings` bridge, Quit is native, and Pause/About are hidden. Remaining unconsumed events are `waggle://update-available`, `waggle://service-status`, and `waggle://service-restart-needed`. | Update availability and service recovery may not be visible enough in the installed app. | -| DESK-2 | Auto-update UX is intentionally disabled/unfinished for v1. | `auto-update.test.ts` says updater plugin config is intentionally disabled; `release.yml` says former update manifest published empty signatures; Rust still checks and emits `waggle://update-available` for future consumers. | Users need either a working update flow or no misleading update UX surface. | -| DESK-3 | Installed-app interaction evidence is missing. | Current app tests start the Fastify service through Vitest, inspect static config, and now pass sidecar resource preflight. Open/focus, close-to-tray, and `Ctrl+Shift+W` are source-wired natively, but this packet did not run a packaged Tauri app, tray menu, global hotkey, installer, or close-to-tray smoke. | API tests and source inspection do not prove install, launch, tray, window, or WebView recovery UX. | -| DESK-4 | Sidecar failure and port-conflict recovery are not proven visually. | `startService()` has port-availability errors and watchdog events, but no current packet evidence shows the user-facing UI for service failure/restart-needed states. | A failed local service is a first-run blocker; the app should tell the user what happened and how to recover. | -| DESK-5 | Signing/notarization and update-channel trust are release gates, not product-screen tests. | Code-signing docs still describe pilot self-sign vs public cert procurement; release workflow builds draft assets but does not prove trusted install/update UX in this audit packet. | Installer warnings and untrusted binaries are UX for real first-time users. | -| DESK-6 | Web-side Tauri binding tests are package-local, not root-discoverable. | Root Vitest excludes `apps/**`; the correct command from `apps/web` passes. | Final verification docs must use the right command, or root verification will look falsely missing. | - -Recommended ticket: T14, Desktop Wrapper and Release UX Gate. - -Suggested acceptance: - -- Packaged app launches on a clean data dir and reaches a healthy Home or clear service-recovery screen. -- Tray open/settings/about/quit/pause actions are verified or disabled until wired. -- Close-to-tray and global shortcut behavior are verified on the target OS lane. -- Sidecar port-conflict and sidecar-crash recovery have user-facing evidence. -- Update UX is either wired end to end with signed updater artifacts or explicitly hidden/deferred. -- Installer/signing warnings are documented for the target release channel. - -## Active Local Service Path - -The active installed-app sidecar path is not `sidecar/src/main.ts`. The Tauri wrapper builds `packages/server/src/local/service.ts` into `app/src-tauri/resources/service.js` through `scripts/build-sidecar.mjs`, stages external dependencies with `scripts/stage-sidecar-deps.mjs`, and launches that service from `app/src-tauri/src/service.rs`. - -Implication: - -- Judge the `packages/server/src/local/service.ts` startup path for installed desktop UX. -- Treat the top-level `sidecar/` JSON-RPC code as legacy or separate tooling unless a current launch path imports it. - -Open service UX requirements: - -- Startup progress should be visible or the first rendered app should clearly recover while the service comes up. -- Port conflict should produce a user-facing recovery path. -- Pending data erasure should surface a receipt/instruction after restart. -- Health should distinguish `ok`, `degraded`, and `unavailable` in user language. - -## Admin Web, CLI, Marketplace CLI, and MCP Utilities - -User jobs: - -- Use `packages/admin-web` to review team dashboard, analytics, members, capability policies, jobs, audit, and team settings. -- Use `packages/launcher` as the `npx waggle` entry point. -- Use `packages/cli` for command-line Waggle workflows. -- Use `packages/marketplace` CLI for package search, install, sync, scan, and audit jobs. -- Use `packages/memory-mcp`, `packages/hive-mind-mcp-server`, and `packages/hive-mind-cli` for memory/MCP setup, recall, harvest, maintenance, and machine-readable JSON output. - -Dedicated supplement: `docs/audits/2026-07-08-admin-cli-utility-t15-analysis.md`. - -Current command evidence, 2026-07-08 continuation: - -| Check | Result | Interpretation | -|---|---:|---| -| Targeted root/package Vitest slices | Mixed | Admin-web, launcher package-local tests, `@waggle/cli` package-local tests, memory MCP package-local tests, hive-mind MCP, marketplace targeted tests, and hive-mind CLI package-local tests pass. Remaining mixed status is from rendered/admin and deeper state evidence, not this test command lane. | -| No-emit TypeScript | Pass | Admin web, Waggle CLI, marketplace, memory MCP, hive-mind MCP, and hive-mind CLI compile. `packages/launcher` has no local `tsconfig.json` and relies on `tsup`. | -| Package builds | Pass | Admin web, launcher, Waggle CLI, marketplace, memory MCP, hive-mind MCP, and hive-mind CLI build scripts completed. | -| Source help smokes | Pass | Launcher, Waggle CLI, hive-mind CLI, and marketplace help paths work through `tsx`. | -| Built help/runtime smokes | Mixed | Built marketplace help works with no DB side effect; built `@waggle/cli` help and bin-wrapper help work with no `.waggle` side effect; built launcher help works without a service banner or `.waggle` creation. | -| MCP protocol smoke | Improved mixed | Built hive-mind MCP server and built legacy `waggle-memory-mcp` both complete official MCP client handshakes and write-scope save/recall roundtrips from temp data dirs. Package-publish proof remains open. | -| Negative-path smokes | Improved mixed | Marketplace unknown commands now print help, exit 1, and avoid DB creation; hive-mind CLI sampled subcommand help now prints focused help and avoids `personal.mind` creation. Broader package/publish and every-subcommand sampling remain open. | - -Open utility UX risks: - -| ID | Risk | Evidence | Why it matters | -|---|---|---|---| -| UTIL-1 | Admin web is a separate Vite UI with shallow rendered UX evidence. | `packages/admin-web/src/App.tsx` uses its own inline-styled sidebar, token/slug setup, and pages. Component tests pass but emit repeated `act(...)` warnings; no current screenshot, mobile, keyboard, or visual-guideline evidence is attached. | Team admins can hit this outside the cockpit; it needs either a judge pass or explicit deferral. | -| UTIL-2 | Built/published-style CLI/MCP entries are locally healthier but still not publish-proved. | Built marketplace help/invalid-command paths, built launcher help, built `@waggle/cli` help, built legacy `waggle-memory-mcp` read/write handshakes, and built hive-mind MCP write roundtrip are locally fixed; clean npm tarball/`npx` invocation remains unproved for the locally fixed CLIs/MCP packages. | A source-mode dev smoke can pass while the command a user installs or runs via `npx` is unusable. | -| UTIL-3 | Hive-mind CLI tests are present outside the root Vitest include pattern, with a package-owned test lane now added. | Root-focused commands against `packages/hive-mind-cli/src/*.test.ts` returned "No test files found"; `npm run test --workspace @waggle/hive-mind-cli -- --reporter=dot` now runs 5 files / 45 tests through the package-local config. | Root verification can still miss this package unless the documented package command is included. | -| UTIL-4 | Launcher CLI has clean help smoke and argument tests, but no no-emit TypeScript path and no full startup/failure UX smoke in this packet. | `packages/launcher` has `tsup.config.ts` but no `tsconfig.json`; launcher tests copy argument parsing shape and do not start the service; built help no longer logs service data-dir information before help. | First-run `npx waggle` is a real acquisition path; port conflict, service failure, and browser-open behavior need evidence or deferral. | -| UTIL-5 | Utility negative paths need broader sampling, though marketplace and sampled hive-mind CLI paths are now guarded. | Marketplace unknown commands now exit 1 without DB construction; sampled hive-mind CLI source/built subcommand help exits 0 without `personal.mind` creation. Other utility invalid-input, JSON, missing-env, and publish-style paths are not fully sampled. | Help and invalid-input paths should be safe, obvious, and scriptable. | -| UTIL-6 | CLI/MCP utility UX remains incomplete beyond the successful MCP protocol smokes. | Memory MCP and hive-mind MCP read/write protocol smokes pass, but JSON output, invalid args, missing env, bad data dir, auth failure states, and clean npm tarball behavior are not fully sampled. | Engineer and admin personas may rely on these tools when desktop UI is unavailable or during setup. | - -Recommended ticket: T15, Admin and CLI Utility UX Gate. - -Suggested acceptance: - -- Admin web has screenshot/keyboard/mobile evidence or is explicitly deferred from the product UX score. -- Root test discovery includes or deliberately excludes hive-mind CLI colocated tests, with the passing package-local command kept in the verification lane. -- Launcher CLI has startup, invalid port, port conflict, `--no-open`, and failure copy evidence, or is deferred. -- Marketplace/memory MCP/hive-mind CLI commands have help, invalid input, JSON output, and missing-env/error-state evidence for the supported user paths. - -## AI-Tool Hook Lifecycle: `packages/hive-mind-hooks-*` and Launcher - -User jobs: - -- Detect a supported AI tool. -- Install memory hooks without corrupting the tool's existing configuration. -- Verify installed hooks and understand failures. -- Uninstall hooks byte-identically or remove only Waggle-managed config. -- Understand that Claude Desktop is launchable but not hook-capable. -- Trust hook events to fail open when hive-mind CLI or the sidecar is unavailable. - -Current command evidence, 2026-07-08 continuation: - -| Check | Result | Interpretation | -|---|---:|---| -| Shared/agent/server T16 route-contract plus package-runtime slice | Pass, original 7 files / 96 tests plus focused registry slice 5 files / 108 tests | Manifest, third-party loader, hook-capable cohort, backend hook route, launch, process, detection route contracts, packed local hook-package lifecycle, and registry-aware third-party launch agree. | -| Launcher/prompt/adapter slice | Pass, 3 files / 28 tests | Launcher A/B toggle, one non-Claude hook action exposure, live output pane wiring, prompt args, and adapter methods pass. Node emits `punycode` warnings. | -| Root-run hook and shim package tests | Pass, 60 files / 573 tests, 1 skipped | Hook install/verify/uninstall, config merge/unmerge, adapters, lifecycle handlers, fail-open behavior, Codex Desktop parity, hook core, and shim core are well-covered at unit/package level. Output includes expected fail-open warnings and sidecar-unreachable signal drops. | -| Official hook/shim package typechecks | Pass, 8/8 | `hive-mind-shim-core`, `hive-mind-hooks-core`, and the six real hook packages pass their `tsc --build && tsc --noEmit -p tsconfig.test.json` lanes. | -| `npm run build --workspace @waggle/hive-mind-hooks-claude-desktop` | Pass | The intentional Claude Desktop no-bin stub still builds. | -| Compiled hook-bin help smokes | Pass, 6/6 | `claude-code-hooks`, `codex-hooks`, `codex-desktop-hooks`, `cursor-hooks`, `hermes-hooks`, and `openclaw-hooks` boot locally and show usage. This does not prove published `npx` resolution. | -| Rendered Launcher Browser smoke | Pass, partial | Fresh `npm run build` plus in-app Browser evidence under `output/playwright/launcher-t16-54147/` covers mixed installed/not-installed/hooks-active/running/Phase 4 states, prompt summary, install success, verify failure, and running output against a mock local API. | -| Rendered Launcher Playwright states | Pass, 1 file / 4 tests | Production-build Playwright coverage proves sidecar-offline Retry recovery, long hook stderr summarization with `More output`, hidden-line count, and recovery guidance, standard install output with `Changed file`, `Install pointer`, `Backup`, and `Recovery` labels, and non-built-in adapter launch-only/prompt behavior. | -| Package-local hook/shim `npm run test --workspace ...` scripts | Pass, 60 files / 574 tests | Hook core, all six hook-capable packages, and shim core now run package-local scripts against the intended root Vitest config/package paths. The shim lane also verifies the CLI ESM resolver fix for the MCP server entry. | -| Focused Launcher/web regressions | Pass, 5 files / 72 tests | Observed output closes after exit, covered install output shows Backup/Recovery labels without raw `stdout:`, Verify `[FAIL]` output becomes Check-failed/manual-approval rows without raw `[FAIL]`, uninstall output labels restore/cleanup rows without implying install state, long hook output is capped behind a `More output` summary, hook stdout/stderr details are preserved, structured hook failures are not replaced with `HTTP 400`, empty-output Verify failures show retry/uninstall/reinstall recovery copy, installed Claude Desktop is explicitly launch-only with no hook actions, and a detected launchable third-party adapter gets Launch plus prompt routing. | - -Open hook UX risks: - -| ID | Risk | Evidence | Why it matters | -|---|---|---|---| -| HOOK-1 | Real hook-management lifecycle is now proved for all six hook-capable route paths and rendered UI transitions; packaged-desktop evidence remains open. | The gated real-tool smoke now proves a detected OpenClaw CLI can render in Launcher and launch safely through `/api/tools/launch` with observed output, exit 0, and process cleanup. A broadened gated route smoke drives `/api/tools/hooks` through real install, verify, and uninstall for `claude-code`, `codex`, `codex-desktop`, `cursor`, `hermes`, and `openclaw` against an isolated `USERPROFILE/HOME`, proving config/pointer creation and cleanup without touching the user's real profile. A codified rendered Playwright spec covers all six hook-capable cards through install, verify, uninstall, and refreshed hooks-active UI transitions. No current evidence proves packaged desktop hook-status transitions. | Hook install modifies user tool config, so reversibility and status copy are trust-critical. | -| HOOK-2 | Rendered Launcher hook-management states are codified across the all-tool matrix; screenshot breadth remains partial. | The Browser smokes cover detected, not detected, hooks active, install success, verify failure, mocked uninstall cleanup, running output, and Phase 4/unsupported states. Codified Playwright coverage now covers sidecar offline Retry, long-stderr summarization, standard install changed-file/pointer/backup/recovery labels, all six hook-capable tool cards rendering install/verify/uninstall transitions, non-built-in adapter launch-only/prompt behavior, one real detected CLI observed-launch lifecycle, and real route lifecycle for all six hook-capable tools. | Engineer and Solo founder judges need to understand what happened without reading logs. | -| HOOK-3 | Focused fixed: Claude Desktop is a deliberate unsupported hook case. | `BUILTIN_TOOL_MANIFESTS` marks `claude-desktop` as non-hook-capable; `packages/hive-mind-hooks-claude-desktop` is a stub/no-bin package. The Launcher now shows installed Claude Desktop as `Launch only`, explains hooks are not supported yet, and hides hook actions; component coverage owns the regression and a Browser-rendered mocked state confirmed the visible layout. | Keep the copy in the rendered state matrix; no hook package/bin should be exposed for Claude Desktop until the MCP-bridge category ships. | -| HOOK-4 | Local fixed: production-shaped `npx` hook package resolution is proved for the local package closure. | `hook-packages-runtime.test.ts` packs and installs the local hook package closure into a clean temp project, then runs `npx --yes @waggle/hive-mind-hooks- install/verify/uninstall` for all six hook-capable tools. Registry-only proof remains a publication/release check. | A user click in Launcher depends on `npx --yes @waggle/hive-mind-hooks-`. | -| HOOK-5 | Rendered fixed; release residual: hook success/failure copy preserves stdout/stderr/structured-failure details, shows Backup/Recovery labels for covered install output, turns Verify `[FAIL]` output into Check-failed/manual-approval rows, labels uninstall restore/cleanup rows, caps long output behind `More output`, gives empty-output recovery copy, exposes offline retry, and has real route plus rendered lifecycle proof for all six hook-capable tools. | Component tests now prove install success shows a Backup label and backup path without raw `stdout:`, verify failure shows stderr even when the route returns a generic error, Verify check failure shows manual-approval detail without raw `[FAIL]`, uninstall output shows `Changed file`, `Restored from`, `Created file removed`, `Backup removed`, and `Pointer removed` without `Install pointer`, long stderr hides later noisy lines behind a count while preserving `Recovery`, and empty-output Verify failure shows retry/uninstall/reinstall guidance. Adapter tests now prove a structured hook failure with no stderr/error is not replaced with `HTTP 400`. Browser evidence shows mocked Codex Verify manual-approval and Uninstall cleanup results plus a real `/launcher` smoke renders `verify failed (exit 1)` with recovery guidance instead of `HTTP 400`. Playwright rendered evidence covers standard install changed-file/pointer/backup/recovery labels, sidecar-offline Retry, long-output summarization, all six hook-capable rendered install/verify/uninstall transitions, real OpenClaw observed launch/output/exit/process cleanup, and real route install/verify/uninstall for all six hook-capable tools against an isolated profile. | Users still need packaged desktop hook-status proof and quieter release output for config-editing flows. | -| HOOK-11 | Focused fixed: Windows hook route commands now resolve `npx` correctly. | The first gated route smoke reproduced `/api/tools/hooks` returning HTTP 400 with empty stdout/stderr because Windows `execFile('npx')` could not resolve the npm shim. `runHookCommand()` now prefers the `npx.cmd` beside `process.execPath`, and default exec capture uses the shared `.cmd` resolver. The broadened isolated route lifecycle now passes for all six hook-capable tools. | Keep the gated route smoke in the release lane. | -| HOOK-10 | Focused fixed: Windows npm shims can launch, and restricted Codex WindowsApps aliases show recovery instead of a failing launch path. | Detection now prefers spawnable Windows PATH hits such as `.cmd` over extensionless POSIX npm shims. Standard npm `.cmd` shims resolve to their Node module target so prompt args stay literal; unknown `.cmd`/`.bat` files use a quoted fallback. The real smoke passed against OpenClaw. Built detection now reports this host's Codex WindowsApps `codex.exe` as installed but `launchable: false` with recovery copy, and Launcher hides the Launch button for that state. | Windows users should not see a launchable tool that crashes the sidecar. Keep the regression and require a real PATH CLI or proven desktop bridge for future direct Codex launch. | -| HOOK-6 | Focused/rendered fixed for launchable third-party adapters. | Detection merges `~/.waggle/adapters/*.json`; `/api/tools/launch` now validates against the runtime registry and applies adapter prompt templates, while `/api/tools/hooks` stays built-in-only until a safe hook policy exists. Rendered Playwright coverage proves a non-built-in adapter shows launch-only/no-hook copy, routes the prompt, and sends the expected launch payload. | Advanced adapter users can launch a detected launchable adapter; third-party hook management remains intentionally disabled until a safe hook policy exists. | -| HOOK-7 | Standard output is noisy during successful hook tests. | Passing test output includes fail-open warnings, sidecar-unreachable signal drops, package logs, and server embedding warnings. | Noise can hide real failures and reduce confidence in release checks. | -| HOOK-8 | Local fixed: package-local hook test commands now run their intended lanes. | Package-local hook/shim `npm run test --workspace ...` scripts pass for hook core, all six hook-capable packages, and shim core. | Keep these scripts in the release lane; remaining package-local command-shape gaps are tracked under DEV-1. | -| HOOK-9 | Focused fixed: observed live output does not reconnect and replay after exit. | `streamToolOutput()` now closes its EventSource on a valid `exit` event. The focused web Launcher/adapter suite proves no reconnect/replay after exit. | Keep the regression; refresh rendered Browser evidence when the full Launcher state matrix is rerun. | - -Recommended ticket: T16, AI-Tool Hook Lifecycle UX Gate. - -Suggested acceptance: - -- Rendered Launcher screenshots or Browser/Playwright evidence cover hook install/verify/uninstall states across all six hook-capable tools, duplicate-free running output, and unsupported Claude Desktop copy. -- Command-level lifecycle evidence covers all six hook-capable tools. -- Real detected CLI launch has at least one observed safe smoke; hook install/verify/uninstall has isolated route lifecycle evidence for all six hook-capable tools. -- Packaged desktop hook-status transitions are proved or explicitly deferred. -- Production-like `npx` or package-pack resolution is verified for every hook package Launcher can invoke. -- Third-party adapter launch has focused route/UI proof and rendered non-built-in adapter proof; third-party hook management stays out of scope until a safe hook policy exists. -- Hook test/log output is quiet enough that real failures stand out, or expected warning noise is explicitly filtered/documented. -- Typecheck/build commands for project-reference hook packages are documented and pass in the approved verification lane. - -Focused supplement: `docs/audits/2026-07-08-ai-tool-hook-t16-analysis.md`. - -## Developer APIs, Background Jobs, and Substrate Packages - -Dedicated supplement: `docs/audits/2026-07-08-developer-substrate-t17-analysis.md`. - -User jobs: - -- Use `@waggle/sdk` to validate, install, and run skills/plugins. -- Rely on local server APIs for chat, workspaces, marketplace, billing, backup, compliance, hooks, and startup recovery. -- Trust background worker jobs for dispatch, chat handling, and job processing. -- Trust WaggleDance protocol behavior and signal handling. -- Trust memory substrate, wiki compiler, optimizer, and shared package behavior that powers the UI. -- Run documented package-local and root verification commands without false failures or hidden skipped tests. - -Current command evidence, 2026-07-08 continuation: - -| Check | Result | Interpretation | -|---|---:|---| -| `npx tsc --noEmit --project packages//tsconfig.json` for `agent`, `core`, `hive-mind-core`, `hive-mind-shim-core`, `hive-mind-wiki-compiler`, `optimizer`, `sdk`, `server`, `shared`, `waggle-dance`, `weaver`, `wiki-compiler`, and `worker` | Pass, 13/13 workspaces | Remaining developer/backend/substrate workspaces compile under direct no-emit TypeScript. | -| `npm run test -w @waggle/agent` | Pass, 194 files / 3079 tests | Agent runtime, connectors, tool launcher, orchestration, memory recall, personas, security, and workflow behavior are broadly covered. | -| `npm run test -w @waggle/core -- --reporter=dot` | Pass, 19 files / 295 tests | Core config, cron/file stores, compliance, vault-adjacent helpers, and quota behavior pass; output includes embedding provider probing noise. | -| `npm run test -w @waggle/optimizer -- --reporter=dot` and `npm run test -w @waggle/weaver -- --reporter=dot` | Pass, 4 files / 52 tests | Optimizer and Weaver unit behavior pass through package scripts. | -| `npx vitest run packages/hive-mind-core/tests packages/hive-mind-shim-core/tests packages/wiki-compiler/tests --config vitest.config.ts --reporter=dot` | Pass, 71 files / 875 tests | Memory substrate, shim core, and wiki compiler tests pass through the root runner. | -| `npx vitest run packages/sdk/tests --config vitest.config.ts --reporter=dot` | Pass, 5 files / 88 tests | SDK behavior tests pass through the root runner. | -| `npx vitest run packages/shared/tests packages/waggle-dance/tests packages/worker/tests packages/hive-mind-wiki-compiler/src --config vitest.config.ts --reporter=dot` | Pass, 12 files / 128 tests | Shared contracts, WaggleDance protocol, worker jobs, and hive-mind wiki compiler tests pass through the root runner. | -| `npx vitest run packages/server/tests --config vitest.config.ts --reporter=dot` | Pass, 184 files passed / 1 skipped; 2117 tests passed / 1 skipped | Current full server run passed, but took 98.34s and emitted very large marketplace/embedding/startup logs. Earlier packet evidence saw one performance-budget failure under full-suite load. | -| `npx vitest run packages/server/tests/performance/benchmarks.test.ts --config vitest.config.ts --reporter=default` | Pass, 13 tests | The same benchmark passes in isolation, so the risk is full-suite stability/contention and audit determinism, not a consistently broken endpoint. | -| `npm run test -w @waggle/hive-mind-core` and `@waggle/wiki-compiler` | Fail | Package-local Vitest tries to load `vitest.setup.ts` relative to the package cwd; root-run tests pass. `@waggle/hive-mind-shim-core` now passes package-local tests. | -| `npm run test -w @waggle/sdk` | Fail | Workspace-local Vitest resolves into `packages/sdk/node_modules` and cannot find `convert-source-map`; root-run SDK tests pass. | - -Open developer/substrate UX risks: - -| ID | Risk | Evidence | Why it matters | -|---|---|---|---| -| DEV-1 | Several package-local `npm test` scripts fail even when the same tests pass from the root runner. | `hive-mind-core` and `wiki-compiler` fail on missing package-local `vitest.setup.ts`; SDK fails on missing local `convert-source-map`. `hive-mind-shim-core` is now fixed. | Engineers following package scripts hit false failures, slowing fixes and reducing trust in the verification lane. | -| DEV-2 | The full server route suite is green in the current run but not release-clean. | Current full server run passed, but took 98.34s and emitted very large logs; earlier packet evidence saw one perf-budget failure at 841ms vs 500ms while isolated benchmark passed. | A release-quality UX gate needs deterministic, quiet command evidence with perf checks in a stable lane. | -| DEV-2a | Marketplace sync behavior leaks into the normal server lane. | `marketplace-sync.test.ts` logs many source sync attempts, add counts, and error counts during the full server run. | The default release lane should be hermetic and quiet; live/external catalog behavior belongs in a named integration lane. | -| DEV-3 | Server and substrate verification output is very noisy. | Passing runs emit repeated embedding fallback warnings, marketplace sync logs, sidecar-unreachable-style warnings, and route startup logs. | Noise makes real failures harder to spot and weakens confidence in "all tested." | -| DEV-4 | Developer-facing SDK/server/worker happy paths are tested, but user-facing recovery/error copy is not fully sampled. | Unit/API tests pass; no current packet evidence covers SDK docs/examples, server API consumer ergonomics, worker job failure UI copy, or bad config paths as a coherent user journey. | Engineer and admin personas depend on these APIs when integrating, debugging, or recovering from failed jobs. | - -Recommended ticket: T17, Developer API, Background Worker, and Substrate Verification UX Gate. - -Suggested acceptance: - -- Package-local scripts either pass or clearly delegate to the correct root/project-reference verification command. -- Root verification discovers all intended package tests or explicitly documents separate lanes. -- Full server route/performance gate is deterministic, with realistic budgets or isolated perf lanes. -- Noisy logs are reduced, filtered, or documented so real failures stand out. -- SDK/server/worker developer journeys have happy-path and error-path evidence, or are explicitly deferred from the five-persona score. - -## Ops, Deployment, CI, Benchmarks, and Judging - -Dedicated supplement: `docs/audits/2026-07-08-ops-deploy-ci-judging-t18-analysis.md`. - -User jobs: - -- Release reviewers trust GitHub Actions, Docker, Render, and local Compose as honest shipping gates. -- Operators can validate deployment configuration without leaking local secrets into logs. -- Hosted deploy target is coherent: local sidecar demo versus team Postgres server is an explicit decision. -- Infra-dependent suites have a known, runnable lane. -- Benchmark and judge harnesses used for product claims compile and test through documented commands. -- Historical judging screenshots/reports are not mistaken for current five-persona score evidence. - -Current command evidence, 2026-07-08 continuation: - -| Check | Result | Interpretation | -|---|---:|---| -| YAML parse for `docker-compose.yml`, `docker-compose.production.yml`, `render.yaml`, `litellm-config.yaml`, and all 7 `.github/workflows/*.yml` | Pass | The deployment, LiteLLM, and workflow YAML files are syntactically valid. | -| `docker --version` | Pass | Docker is available in this environment for config-level checks. | -| `docker compose ps --format json` | Fail | Docker CLI is installed, but the Docker Desktop Linux engine pipe is not reachable, so live Compose services and `npm run test:infra` could not be run here. | -| `docker compose -f docker-compose.yml config` and `docker compose -f docker-compose.production.yml config` | Pass with secret-log caveat | Compose can expand both files, but raw expansion reads local env values and can print secret values. Use `--no-interpolate` or a sanitized env for shareable logs. | -| `docker compose -f docker-compose*.yml config --no-interpolate` targeted scan | Pass | The non-interpolated command is safer for evidence because it keeps variable references instead of local secret values. | -| `git ls-files` / `git check-ignore` for `.env`, `env.local`, `AI API KEYS.txt`, and `apps/www/.env.local` | Pass for tracking hygiene | Only `.env.example` files are tracked; local secret-bearing files checked here are ignored. | -| `npx tsc --noEmit --project benchmarks/harness/tsconfig.json` | Pass | Benchmark harness TypeScript compiles. | -| `npm run test --prefix benchmarks/harness` | Fail | Package-local Vitest tries to load `benchmarks/harness/vitest.setup.ts`; root-run tests pass. | -| `npx vitest run benchmarks/harness/tests --config vitest.config.ts --reporter=dot` | Pass, 29 files / 325 tests | Benchmark harness unit/smoke/stats/judge tests pass through the root runner, with noisy turn/bench logs. | -| `judging/` inventory | Historical only | Current files are prior June 2026 rounds/screenshots, not the requested July five-persona scorecards. | - -Open ops/judging risks: - -| ID | Risk | Evidence | Why it matters | -|---|---|---|---| -| OPS-1 | Shareable Compose validation can leak local secrets if run in the obvious way. | `docker compose config` expands local ignored `.env` values; ignored-file checks show those values are not tracked, but command output can still expose them. | Release/ops evidence must be secret-safe; logs are part of the UX of operating the system. | -| OPS-2 | Render deployment target is still ambiguous. | `render.yaml` provisions Postgres and Redis but starts `packages/server/src/local/start.ts --skip-litellm`, the local SQLite sidecar path, not the team Postgres server. | A hosted deploy should either be a local-sidecar demo or a team server; mixed infra confuses operators and can hide broken team workflows. | -| OPS-3 | CI E2E remains advisory and infra tests are not in CI; local live infra could not be run in this environment. | `ci.yml` marks the E2E job `continue-on-error: true`; no workflow starts Postgres/Redis or runs `npm run test:infra`; `vitest.infra-suites.ts` lists 19 suites that require live infra; local `docker compose ps` failed because the Docker Desktop engine pipe was missing. | Green CI can still miss route, browser, and Postgres/Redis regressions, and this packet only proves config-level Docker validity. | -| OPS-4 | Production Compose uses development-style default credentials unless explicitly overridden. | `docker-compose.production.yml` has fallback values for Postgres and MinIO credentials. | Defaults are convenient locally, but production operators need fail-closed secret requirements or prominent warning evidence. | -| OPS-5 | Benchmark harness package-local test script fails even though root-run tests pass. | `npm run test --prefix benchmarks/harness` fails on missing local setup file; root-run benchmark tests pass. | Benchmark/judge credibility depends on commands that future reviewers can run without knowing hidden root-run shape. | -| OPS-6 | Existing `judging/` artifacts are stale for the current goal. | `judging/round2`, `round3`, `screenshots`, and crops are June 2026 artifacts; current scorecards are not filled. | The requested 9/10 result must be generated from current source after fixes, not inherited from older screenshots. | - -Recommended ticket: T18, Ops, Deployment, CI, Benchmark, and Judging Evidence Gate. - -Suggested acceptance: - -- Secret-safe ops validation commands are documented and used for shareable evidence. -- Render target is decided and verified: hosted local-sidecar demo or team Postgres server. -- Docker/Compose production path is built or explicitly deferred, with fail-closed secret expectations. -- CI has a blocking smoke lane or the advisory E2E/infra gap is explicitly accepted before scoring. -- `npm run test:infra` has a documented Docker/migration lane and evidence, or is deferred. -- Benchmark harness package-local command shape is fixed or documented; root-run benchmark evidence remains green. -- Five-persona judging artifacts are generated from current post-fix source and replace historical screenshots for scoring. - -## Phase Placement - -Phase 1 remains unchanged and should stay focused on the installed app P0s: - -- T1 auth/CSP/accountless console health. -- T2 mobile Settings. -- T3 Solo/Teams/Enterprise copy in active app UI. -- T4 shortcut and Workspace Switcher route contract. -- T5 visual snapshot triage. -- T11 route evidence for thin in-app routes. - -T13, T14, T15, T16, T17, T18, and T19 are not part of Phase 1 unless a Phase 1 verification command directly forces a tiny supporting fix. They are final-product gates after the in-app blockers are cleared. - -## Final Goal Rule - -Do not claim "complete UX" until: - -- T13, T14, T15, T16, T17, T18, and T19 are fixed and verified, or -- the user explicitly approves deferring launch/extension/desktop/utility/hook/developer/ops gates from the five-persona score. - -The approval brief can still request Phase 1 implementation now, because Phase 1 removes known P0s in the main installed cockpit and is the fastest path to a credible judge dry run. diff --git a/docs/audits/2026-07-08-ux-packet-index.md b/docs/audits/2026-07-08-ux-packet-index.md deleted file mode 100644 index 882f244..0000000 --- a/docs/audits/2026-07-08-ux-packet-index.md +++ /dev/null @@ -1,81 +0,0 @@ -# UX Audit Packet Index - -Status: analysis packet is approval-ready. Full goal remains open until approved fixes and five-persona judge scoring are complete. - -## Start Here - -1. `docs/audits/2026-07-08-ux-approval-brief.md` - shortest decision doc; approve Phase 1 from here. -2. `docs/audits/2026-07-08-analysis-completion-audit.md` - proves what the analysis phase covers and what remains unfinished. -3. `docs/superpowers/plans/2026-07-08-ux-phase-1-corrections.md` - implementation plan to execute after approval. - -## Evidence Files - -| File | Purpose | -|---|---| -| `docs/audits/2026-07-08-complete-ux-usage-audit.md` | Full evidence, findings, phases, tickets, and verification results. | -| `docs/audits/2026-07-08-ux-route-scenario-manifest.md` | Registered routes, overlays, scenarios, and evidence owner requirements. | -| `docs/audits/2026-07-08-ux-state-failure-scenario-matrix.md` | Account, tier, model, data, offline, mobile, and failure-state combinations that judge runs must sample. | -| `docs/audits/2026-07-08-ux-non-main-surface-scope.md` | Public landing/download/checkout/legal, desktop wrapper, installer/update, sidecar-startup, utility, hook, developer/substrate, ops/deployment, CI, benchmark, and judging scope decisions. | -| `docs/audits/2026-07-08-five-persona-judge-scorecards.md` | Five judge personas, scoring model, score caps, and required screenshots/evidence. | -| `docs/audits/2026-07-08-five-persona-judge-runbook.md` | Executable judge protocol: state bundles, route sequences, required screenshots, score caps, deferral rules, and evidence folder shape. | -| `docs/audits/2026-07-08-ux-correction-register.md` | Master row-by-row tracker mapping findings to tickets, phases, files, judges, and closure evidence. | -| `docs/audits/2026-07-08-ux-approval-brief.md` | Concise approval decision and Phase 1 scope boundaries. | -| `docs/audits/2026-07-08-analysis-completion-audit.md` | Requirement trace from the original goal to current evidence and remaining blockers. | -| `docs/audits/2026-07-08-ux-post-phase-1-roadmap.md` | Sequencing for Phase 2/3 work after Phase 1; not approved for implementation yet. | -| `docs/audits/2026-07-08-web-guidelines-line-findings.md` | Line-level Web Interface Guidelines supplement for native dialogs, focus, forms, animation, images, and locale formatting. | -| `docs/audits/2026-07-08-runtime-a11y-t10-analysis.md` | Focused runtime axe/DOM accessibility smoke for core desktop/mobile routes and Command Center; adds rendered T10 evidence for unnamed controls, select labels, scroll regions, workspace semantics, and mobile command-label overflow. | -| `docs/audits/2026-07-08-visual-t5-classification.md` | Fresh visual-regression rerun and 14-snapshot classification: current screenshots are coherent, active baselines are stale, duplicate baseline families need cleanup, and baseline updates must wait for approval. | -| `docs/audits/2026-07-08-first-run-onboarding-t1-t2-t12-analysis.md` | Focused clean-data first-run onboarding smoke with desktop completion, mobile 390 x 844 profile evidence, Clerk/CSP console reproduction, import-risk findings, and T1/T2/T12 closure updates. | -| `docs/audits/2026-07-08-source-inventory-consistency-audit.md` | Current-source route/app/package inventory check; adds Browser Companion T19 and command-query evidence notes. | -| `docs/audits/2026-07-08-browser-companion-t19-analysis.md` | Focused Browser Companion extension analysis with manifest/syntax/typecheck evidence, disconnected/connected popup screenshots, direct sidecar save evidence, current toolbar/extraction probes, Memory UI confirmation, CORS/auth-pairing findings, and T19 line-level findings. | -| `docs/audits/2026-07-08-desktop-wrapper-t14-analysis.md` | Focused Tauri desktop wrapper analysis with Rust/app/server checks, native event consumer matrix, release/tray source hardening, and T14 line-level findings. | -| `docs/audits/2026-07-08-admin-cli-utility-t15-analysis.md` | Focused admin web, CLI, marketplace, memory MCP, hive-mind MCP, and hive-mind CLI analysis with package test/build/help and MCP protocol smoke evidence. | -| `docs/audits/2026-07-08-ai-tool-hook-t16-analysis.md` | Focused AI-tool hook lifecycle analysis with Launcher/source evidence, rendered Browser smoke artifacts, hook package/root-run tests, package typechecks, compiled bin help smokes, and T16 correction candidates. | -| `docs/audits/2026-07-08-developer-substrate-t17-analysis.md` | Focused developer API, server, worker, WaggleDance, SDK, and substrate verification analysis with package/root command evidence and T17 correction candidates. | -| `docs/audits/2026-07-08-ops-deploy-ci-judging-t18-analysis.md` | Focused ops, deployment, CI, benchmark, and judging analysis with YAML/Compose/secret-safe checks, benchmark evidence, and T18 correction candidates. | -| `docs/audits/2026-07-08-launch-funnel-t13-analysis.md` | Focused public launch funnel analysis with www test/build/typecheck/route smoke evidence, rendered Browser checkout-recovery evidence, live apex/www DNS failure, download/release check, local checkout/auth recovery fixes, controlled download status page, legal placeholder guard, and remaining T13 correction candidates. | -| `docs/audits/2026-07-08-route-evidence-t11-analysis.md` | Focused installed-app route evidence analysis with route registry, direct test-reference matrix, app-test command evidence, zero-hit route findings, current all-route built-preview smoke evidence, and T11 correction candidates. | -| `docs/audits/2026-07-08-state-failure-t12-analysis.md` | Focused T12 analysis with state-slice test evidence, native dialog source evidence, five-persona state-bundle contract, and T12 correction candidates. | -| `docs/audits/2026-07-08-mobile-executive-t2-t12-analysis.md` | Fresh 390 x 844 Mobile Executive smoke evidence showing Settings visible clipping despite clean document scroll width, Memory/chat tab overflow, Command Center mobile close/label risks, and stronger T2/T12 acceptance criteria. | -| `docs/audits/2026-07-08-shell-overlays-t10-t12-analysis.md` | Focused shell-overlay smoke/source evidence for Notification Inbox, Create Workspace, Spawn Agent, Workspace Switcher, Persona Switcher, Keyboard Shortcuts, Context Rail, Onboarding Tooltips, Upgrade Modal, and Trial Expired Modal. | -| `docs/superpowers/plans/2026-07-08-ux-phase-1-corrections.md` | Bite-sized test-first implementation plan for Phase 1. | - -## Current Decision - -Approve Phase 1 before coding. - -Recommended execution mode: Subagent-Driven. - -Phase 1 includes only: - -- Local auth/Clerk/CSP console health. -- Mobile Settings and first-run onboarding responsive layout. -- Solo/Teams/Enterprise copy cleanup. -- `Ctrl+Shift+N` and Workspace Switcher route contract. -- Visual snapshot triage. -- Route evidence for thin judge paths. - -## Not Ready To Claim - -Do not mark the goal complete until: - -- P0 findings are closed. -- Phase 1 and any judge-blocking P1 items are verified. -- Mobile evidence proves critical visible controls stay in-bounds, not merely that document-level horizontal overflow is absent. -- First-run onboarding evidence proves accountless clean-data setup has no Clerk/CSP console errors and mobile Profile primary action is visible or clearly reachable. -- Every registered route and major overlay has an evidence owner. -- State and failure-mode bundles are declared for each judge run. -- The five-persona judge runbook is filled with current evidence, not merely referenced. -- Launch funnel and desktop wrapper gates are fixed or explicitly deferred from the final score. -- Admin web, CLI launcher, marketplace CLI, and memory/MCP utility gates are fixed or explicitly deferred from the final score. Current admin-web rendered artifacts: `output/playwright/admin-web-t15-57795/`. -- AI-tool hook lifecycle gates are fixed or explicitly deferred from the final score. -- Developer API, background worker, and substrate verification gates are fixed or explicitly deferred from the final score. -- Ops, deployment, CI, benchmark, and judging gates are fixed or explicitly deferred from the final score. -- Web Guidelines line findings are fixed or explicitly assigned to T7/T8/T10/T12 deferrals. -- Runtime T10 axe/DOM findings are fixed or explicitly assigned to judge-route deferrals. -- T5 visual baseline decisions are approved after the fresh classification note; stale baselines are updated only after Phase 1 UI fixes land. -- Command Center mobile close/label-fit evidence is fixed or explicitly deferred from the Mobile Executive and Engineer score paths. -- Shell overlay T10/T12 findings are fixed or explicitly deferred, especially Notification Inbox Escape/semantics, Create Workspace semantics/mobile hierarchy, Context Rail landmarking, coach-mark semantics, and named close/icon controls. -- Source-inventory supplement findings, including Browser Companion T19, are fixed or explicitly deferred. -- Five persona scorecards are filled from current evidence. -- All five personas score at least 9/10. diff --git a/docs/audits/2026-07-08-ux-post-phase-1-roadmap.md b/docs/audits/2026-07-08-ux-post-phase-1-roadmap.md deleted file mode 100644 index f0ad1fb..0000000 --- a/docs/audits/2026-07-08-ux-post-phase-1-roadmap.md +++ /dev/null @@ -1,578 +0,0 @@ -# UX Post-Phase-1 Roadmap - -> **Historical roadmap — superseded.** This 2026-07-08 planning artifact predates -> the Windows-first Solo launch scope and its ten-persona acceptance evidence. Cursor, -> OpenClaw, and macOS are roadmap items, not current internal-RC blockers. See -> [`../production-readiness/09-LAUNCH_RECOMMENDATION.md`](../production-readiness/09-LAUNCH_RECOMMENDATION.md) -> for current launch authority. - -Status: analysis artifact. This roadmap sequences the remaining correction work after Phase 1. It is not approved for implementation yet. - -## Purpose - -Phase 1 removes the P0 blockers that currently cap the judge score. This roadmap keeps the remaining P1/P2 work visible so the product can move from "credible enough to judge" toward the requested 9/10 across five personas. - -## Phase 2: Trust, Determinism, and Accessibility - -Goal: remove P1 items that directly affect trust, recovery, or high-frequency workflows. - -### R2-1: Trust-critical dialogs - -Source finding: P1-1 / T7. - -Line evidence: `docs/audits/2026-07-08-web-guidelines-line-findings.md` historically listed 20 high-confidence native browser dialog calls; the current follow-up scan finds 0 after the Create Workspace, Approvals, Artifact, Memory Center, Wiki export, Settings telemetry/backup/restore, BackupApp restore, Automation delete, compliance template delete, and admin member-removal fixes. - -Current evidence update: - -- Create Workspace custom-template delete is fixed with an in-app confirmation and focused component coverage. -- Approvals revoke-all is fixed with the shared in-app `ApprovalModal`; `p7-b1-approvals-error.test.tsx` covers the no-native-confirm contract, `J3d` passes a rendered `/approvals` route path on port `34159`, and the expanded user-journey suite passed 20/20 on port `34160` before the Artifact `J3e` addition. -- Artifact permanent delete is fixed with the shared in-app `ApprovalModal`; `artifact-center-trust.test.tsx` covers the no-native-confirm contract, `J3e` passes a rendered `/artifacts` route path on port `34161`, and the expanded user-journey suite passes 21/21 on port `34162`. -- Memory Center permanent delete, GDPR erase, and allow re-import are fixed with the shared in-app `ApprovalModal`; `memory-center-trust.test.tsx` covers the no-native-confirm contract, `J3f` passes a rendered `/memory?tab=memories` route path on port `34164`, and the expanded user-journey suite passes 22/22 on port `34165`. -- Wiki Obsidian and Notion exports are fixed with in-app form dialogs; `wiki-export-trust.test.tsx` covers the no-native-prompt contract, `J3g` passes a rendered `/memory?tab=wiki` route path on port `34167`, and the path remains included in the latest 24/24 user-journey suite on port `34173`. -- Settings telemetry clear and Settings backup/restore are fixed with in-app approval/status states; `settings-trust.test.tsx` covers the no-native-dialog contract, `J3h` passes a rendered `/settings?tab=backup` route path on port `34171`, and the expanded user-journey suite passes 24/24 on port `34173`. -- Standalone `BackupApp.tsx` restore is fixed with the shared in-app `ApprovalModal`; `p1b-authgate-surfaces.test.tsx` covers the no-native-confirm contract. -- Automation delete is fixed with the shared in-app `ApprovalModal`; `phase3b-automation-center.test.tsx` covers the no-native-confirm contract. -- Compliance template delete is fixed with the shared in-app `ApprovalModal`; `compliance-template-trust.test.tsx` covers the no-native-confirm contract. -- Admin-web member removal is fixed with an in-app confirmation panel; `admin-pages.test.ts` covers the no-native-confirm contract. - -Surfaces: - -- No current high-confidence production native dialogs remain; broader T7 work should now focus on persona-state evidence, error states, and keyboard/screen-reader polish for the fixed flows. -- Remaining workspace/template destructive actions, if any, outside the fixed custom-template delete path. - -Acceptance: - -- No native `confirm`, `alert`, or `prompt` in trust-critical flows. -- In-app modal or inline confirmation names the object, consequence, reversibility, and next step. -- Result state appears in-app after completion or failure. - -Judge impact: - -- Team admin. -- Researcher. -- Mobile executive where destructive flows are reachable. - -### R2-2: Marketplace/local-first determinism - -Source finding: P1-3 / T6. - -Surfaces: - -- Marketplace browse/search. -- `/api/marketplace/sync`. -- Marketplace background sync. - -Acceptance: - -- Standard UX audit does not call live external marketplace sources. -- Live sync is moved to a named live-integration lane or guarded by explicit environment behavior. -- Marketplace search and browse pass without retry flakes. - -Judge impact: - -- Engineer. -- Solo founder. - -### R2-3: Form, focus, and icon-button accessibility - -Source finding: P1-5 / T10. - -Line evidence: `docs/audits/2026-07-08-web-guidelines-line-findings.md` lists high-confidence focus misses, image-dimension misses, and a form metadata audit queue. - -Surfaces: - -- Settings. -- Profile. -- Workspace creation. -- Workspace actions dialogs. -- Agent/persona creation. -- Mission Control and agent cards. -- Compliance templates. -- Onboarding forms. - -Acceptance: - -- High-traffic forms have accessible names, associated labels, and inline errors. -- Focus order is predictable. -- First invalid field receives focus on submit where practical. -- Icon-only controls have accessible names. -- Modal initial focus and focus return are covered for high-traffic dialogs. - -Judge impact: - -- Mobile executive. -- Team admin. -- Engineer. -- Solo founder. - -### R2-4: Test warning hygiene - -Source finding: P1-2 / T10. - -Surfaces: - -- Component tests emitting repeated `act(...)` warnings outside the now-quiet focused admin-web lane. -- Standard verification lane output. - -Acceptance: - -- Warnings that mask real failures are eliminated, scoped, or documented. -- Standard verification output remains readable enough for reviewers. - -Judge impact: - -- Indirect, all personas. - -### R2-5: Route evidence completion - -Source finding: P1-7 / T11. - -Current evidence: - -- `docs/audits/2026-07-08-route-evidence-t11-analysis.md` now includes a current all-route built-preview smoke on port 3457. -- Artifacts live under `output/playwright/route-evidence-3457/`. -- The smoke proves 33 desktop route navigations plus 11 mobile route spot-checks return 200, produce screenshots, and have no document-level horizontal overflow. -- `/payment-cancelled` redirects to `/settings?tab=billing`. -- T11 remains open because this evidence is ad hoc, every sampled route logs the Clerk development-key warning, `/launcher?watch=1` logs detectTools network noise, `/settings/usage` logs a 403 resource error, the catch-all route logs its expected 404 as a console error, and several judge-route controls still lack accessible names/labels. - -Surfaces: - -- Any route still marked Thin or Missing after Phase 1. -- Major overlays not exercised by Phase 1. - -Acceptance: - -- Every route and major overlay has a smoke, visual, or persona evidence owner. -- Deferrals are explicit and approved. - -Judge impact: - -- All personas. - -### R2-6: Shell overlay semantics and create-workspace hierarchy - -Source findings: P1-19 / T10/T12 and P1-20 / T10/T12/T7. - -Focused supplement: `docs/audits/2026-07-08-shell-overlays-t10-t12-analysis.md`. - -Surfaces: - -- Notification Inbox. -- Create Workspace. -- Context Rail. -- Onboarding Tooltips. -- Upgrade and Trial Expired modals. - -Current evidence update: - -- Fresh desktop/mobile overlay smoke passes the high-level open/close path for Keyboard Shortcuts, Persona Switcher, Workspace Switcher, Spawn Agent, and Upgrade Modal. -- Notification Inbox now has a named dialog contract, focus trap, Escape close, and named mark-all/close actions. -- Create Workspace now has named primary/subdialog contracts, focus traps, Escape close, named sampled template/share actions, in-app custom-template delete confirmation, and focused 390 x 844 rendered evidence that required setup precedes optional templates. -- Context Rail now has a labelled complementary contract and named close action at component level; route-specific rendered states still need evidence. -- Onboarding Tooltips now has an explicit non-modal dialog contract and Escape dismissal at component level; rendered first-run/mobile evidence still needs refresh. -- Upgrade and Trial Expired close icons now have accessible names; the event-driven Upgrade modal close path has rendered `J3c` evidence. -- Browser-plugin spot check for this slice failed on the in-app Browser DOM snapshot path (`incrementalAriaSnapshot is not a function`), so Playwright remains the reliable rendered evidence lane until P2-2 is fixed. - -Acceptance: - -- Modal overlays share dialog semantics, focus behavior, Escape close, focus return, and named close/icon actions. -- Non-modal panels use labelled landmarks and predictable keyboard reachability. -- Create Workspace prioritizes required name/storage/create controls on the sampled mobile path, with templates progressive or summarized. -- Template destructive actions use in-app confirmation and result states. -- Desktop and 390 x 844 overlay screenshots plus DOM/keyboard evidence are attached; current gap is refreshed screenshot/state coverage beyond the focused Create Workspace path. - -Judge impact: - -- Mobile executive. -- Engineer. -- Solo founder. -- Team admin when workspace/template management is in scope. - -### R2-7: Admin web and CLI/MCP utility evidence - -Source finding: P1-11 / T15. - -Surfaces: - -- `packages/admin-web`. -- `packages/launcher` / `npx waggle`. -- `packages/cli`. -- `packages/marketplace` CLI. -- `packages/memory-mcp` and `packages/hive-mind-mcp-server`. -- `packages/hive-mind-cli`. - -Current evidence update: - -- T15 deep-dive: `docs/audits/2026-07-08-admin-cli-utility-t15-analysis.md`. -- Targeted source tests, no-emit TypeScript checks, and package builds pass for the inspected admin/CLI/MCP utility surfaces. -- Admin-web built-render smoke covers all 7 desktop pages and all 7 mobile pages under `output/playwright/admin-web-t15-57795/`; typed happy paths render with no current-port console errors. A newer package-owned rendered Playwright gate builds the admin web and passes all seven pages across desktop/mobile widths, hash deep links, browser back/forward traversal, `aria-current`, labelled table scroll regions, rendered control labels, mobile shell keyboard reachability, page-level keyboard traversal from connection fields into the covered admin pages, desktop/mobile visual snapshots, capability governance forms, malformed analytics response recovery, all-page initial API-failure recovery, rendered mutation/destructive-failure recovery for capability policy save, capability override create/remove, capability request decision, member invite, member role change, member removal, and team settings save, local bearer-auth wrong-token/valid-token behavior, and React warning cleanup. -- Built legacy `waggle-memory-mcp` read-only/write-scope protocol startup plus installed read-only startup, built hive-mind MCP read-only/write-scope protocol startup plus installed read-only startup, built/packed/local package-closure installed `@waggle/cli` `npx` help plus installed local REPL startup/slash-command/exit and streamed chat/provider plumbing, launcher built help/invalid-port/occupied-port recovery plus packed first-command, clean installed occupied-port startup recovery, and clean installed long-running `/health` startup, built/installed marketplace CLI help/invalid-command behavior plus package manifest/packed-file alignment, and local package-closure installed `hive-mind-cli` help are locally fixed, but still need registry-only proof after internal package publication. -- Built hive-mind MCP passes official MCP client read-only registration and write-scope save/recall roundtrips with 9 tools and 4 resources. -- Package-local test commands remain inconsistent outside the now-documented hive-mind CLI and hook/shim lanes. Root Vitest does not discover hive-mind CLI colocated tests under `src/`, but `npm run test --workspace @waggle/hive-mind-cli -- --reporter=dot` now owns that lane. Marketplace invalid-command behavior and sampled hive-mind CLI subcommand help are now locally fixed and guarded. - -Acceptance: - -- Admin-web rendered desktop/mobile happy-path, browser-history, page-level keyboard, visual snapshot, malformed analytics recovery, initial API-failure, mutation/destructive-failure, and local bearer-auth states stay green in the package-owned gate. -- Built utility entries run from a clean environment, are explicitly deprecated, or are deferred. -- Utility CLIs have happy-path and error-path command evidence, or are deferred. -- Hive-mind CLI package-local test discovery remains in the documented verification lane; the remaining package-local script gaps are fixed or have documented separate verification lanes. - -Judge impact: - -- Team admin. -- Engineer. -- Solo founder setup path. - -### R2-8: AI-tool hook lifecycle evidence - -Source finding: P1-12 / T16. - -Surfaces: - -- Launcher hook install/verify/uninstall UI. -- `packages/hive-mind-hooks-claude-code`. -- `packages/hive-mind-hooks-codex`. -- `packages/hive-mind-hooks-codex-desktop`. -- `packages/hive-mind-hooks-cursor`. -- `packages/hive-mind-hooks-hermes`. -- `packages/hive-mind-hooks-openclaw`. -- `packages/hive-mind-hooks-claude-desktop` unsupported/stub copy. - -Current evidence update: - -- Shared/agent/server T16 route-contract plus package-runtime tests pass 7 files / 96 tests, and the focused registry-aware adapter launch slice passes 5 files / 108 tests. -- Packed-package `npx --yes @waggle/hive-mind-hooks- install/verify/uninstall` lifecycle passes for all six hook-capable packages from a clean temp project with the local package closure installed. -- Launcher/prompt/adapter tests pass 3 files / 28 tests. -- Root-run hook/shim package tests pass 60 files / 573 tests with 1 skipped. -- Hook/shim package-local `npm run test --workspace ...` scripts now pass for hook core, all six hook-capable packages, and shim core; the shim lane also verifies the CLI ESM resolver fix for the MCP server entry. -- Official hook/shim package typechecks pass 8/8, the Claude Desktop stub build passes, and compiled hook-bin help smokes pass 6/6. -- Focused rendered Launcher Browser smoke artifacts live under `output/playwright/launcher-t16-54147/`; they prove mixed hook states, prompt summary, install success, verify failure, and running output against a mock local API, while exposing the original generic/dropped-detail result copy, missing Claude Desktop launch-only copy, and prompt metadata gaps. Duplicate live-output replay after exit, hook stdout/stderr detail visibility, Backup/Recovery labels for covered install output, Check-failed/manual-approval rows for Verify output, uninstall restore/cleanup labels, More-output summarization, structured hook failure preservation, empty-output Verify recovery copy, and Claude Desktop launch-only copy are now covered by focused web regressions; a fresh real `/launcher` Browser smoke now renders `verify failed (exit 1)` with retry/uninstall/reinstall guidance instead of `HTTP 400`, Browser-rendered mocked states now cover Claude Desktop launch-only copy, Codex Verify manual approval, and Codex Uninstall cleanup, a codified rendered Playwright spec covers standard install changed-file/pointer/backup/recovery labels, all six hook-capable install/verify/uninstall transitions, sidecar-offline Retry, long-stderr summarization, and non-built-in adapter launch-only/prompt behavior, a gated real-tool Playwright spec covers OpenClaw rendered detection plus observed launch/output/exit/process cleanup, and a gated route Playwright spec covers real `/api/tools/hooks` install/verify/uninstall for all six hook-capable tools against an isolated profile. Packaged desktop hook-status transitions remain open rather than a generic status leak. -- Tailwind motion-token warning hygiene is partially fixed: ambiguous `duration-[var(--mo-*)]` / `ease-[var(--mo-ease)]` classes are replaced by named utilities and guarded by `motion-class-hygiene.test.ts`; the `shape-selection.ts` dynamic/static import warning is also fixed and guarded by `build-warning-hygiene.test.ts`; the Vite large-chunk warning is fixed by lazy-loading routes, closed shell overlays, ChatHost, and PostHog analytics. Remaining warning hygiene still includes color-env, embedding, and hook negative-path noise. -- Focused evidence and open gaps are recorded in `docs/audits/2026-07-08-ai-tool-hook-t16-analysis.md`. - -Acceptance: - -- Rendered Launcher evidence covers detected/not-detected, standard install changed-file/pointer labels, verify, uninstall, all six hook-capable install/verify/uninstall transitions, sidecar offline, long-stderr, error, unsupported Claude Desktop states, and at least one real observed CLI launch; packaged desktop hook-status evidence is still required for T16 closure. -- Command lifecycle evidence covers six hook-capable packages through the production-like package-name invocation path; route lifecycle evidence covers all six hook-capable tools through safe isolated install/verify/uninstall smokes. -- Registry-only proof is captured after actual hook package publication. -- Observed live output does not duplicate replay after terminal exit, hook result stdout/stderr/Backup-Recovery/Check-failed/structured-failure/empty-output recovery details are preserved, and Claude Desktop launch-only copy is explicit; current focused evidence passes in the Launcher/web suite. -- Third-party adapter detection/launch behavior is fixed or explicitly out of scope. -- Expected fail-open/log noise is quiet enough or explicitly documented. - -Judge impact: - -- Engineer. -- Solo founder. -- Team admin. - -### R2-9: Developer API, background worker, and substrate verification evidence - -Source finding: P1-13 / T17. - -Dedicated supplement: `docs/audits/2026-07-08-developer-substrate-t17-analysis.md`. - -Surfaces: - -- `packages/sdk`. -- `packages/server`. -- `packages/worker`. -- `packages/waggle-dance`. -- `packages/agent`, `packages/core`, and `packages/shared`. -- `packages/hive-mind-core`, `packages/hive-mind-shim-core`, `packages/hive-mind-wiki-compiler`, and `packages/wiki-compiler`. -- Package-local test scripts and root Vitest discovery. - -Current evidence update: - -- Direct no-emit TypeScript passes for 13 remaining backend/developer/substrate workspaces. -- Agent tests pass 194 files / 3079 tests. -- Core, optimizer, and weaver tests pass through package scripts. -- Root-run SDK, substrate, shared, worker, WaggleDance, and compiler tests pass. -- Current full server route suite passes, but it is slow/noisy; earlier packet evidence saw one workspace-listing perf budget failure under full-suite load while the same benchmark passed in isolation. -- Several non-hook package-local `npm test` scripts fail by command shape even though root-run tests pass. -- Marketplace sync behavior leaks into the normal server verification lane and should be made hermetic or moved to a named live-integration lane. - -Acceptance: - -- Package-local scripts either pass or clearly delegate to the correct root/project-reference lane. -- Full server suite is deterministic, or perf assertions are separated into an explicit perf lane with a stable threshold. -- SDK/server/worker/WaggleDance/substrate package verification is discoverable and quiet enough for release review. -- Developer API/background/substrate evidence is attached or explicitly deferred from the five-persona score. - -Judge impact: - -- Engineer. -- Team admin. -- Release confidence for all personas. - -### R2-10: Ops, deployment, CI, benchmark, and judging evidence - -Source finding: P1-14 / T18. - -Dedicated supplement: `docs/audits/2026-07-08-ops-deploy-ci-judging-t18-analysis.md`. - -Surfaces: - -- `.github/workflows`. -- `Dockerfile`. -- `docker-compose.yml` and `docker-compose.production.yml`. -- `render.yaml`. -- `litellm-config.yaml` and `ops/litellm`. -- `vitest.infra.config.ts` and `vitest.infra-suites.ts`. -- `benchmarks/harness`. -- `judging`. - -Current evidence update: - -- YAML parse passes for Compose, Render, LiteLLM, and all workflow files. -- Docker CLI is available and Compose config expansion succeeds for development and production files, but the Docker Desktop engine is unavailable in this environment, so live infra tests were not run. -- Raw Compose config can print local ignored env secrets; use non-interpolated or sanitized output for shareable evidence. -- Only `.env.example` files are tracked among the checked env/key files; local secret-bearing files are ignored. -- Render currently provisions Postgres/Redis but starts the local sidecar path. -- CI E2E is advisory, and no CI lane runs the 19 infra-dependent suites. -- Benchmark harness TypeScript passes; root-run benchmark tests pass 29 files / 325 tests; package-local benchmark tests fail by command shape. -- Current `judging/` artifacts are historical, not the final July five-persona score evidence. -- The focused T18 supplement also records the `apps/www` GitHub Pages artifact mismatch, production Compose default credentials, and LiteLLM live-routing gap. - -Acceptance: - -- Secret-safe ops validation commands are documented and used. -- Docker/Render target and entrypoint choices are coherent with the product mode being claimed. -- CI blocking/advisory semantics are explicit; infra lane is run, added, or deferred with Docker-engine availability noted. -- Benchmark harness commands are fixed or documented. -- Current five-persona judging artifacts are regenerated after approved fixes land. - -Judge impact: - -- Engineer. -- Team admin. -- Release confidence for all personas. - -### R2-11: Browser Companion extension evidence - -Source finding: P1-15 / T19. - -Surfaces: - -- `apps/browser-ext/manifest.json`. -- `apps/browser-ext/popup.html`. -- `apps/browser-ext/popup.js`. -- `apps/browser-ext/background.js`. -- `apps/browser-ext/content.js`. -- `packages/server/src/local/routes/browser-ext.ts`. -- `packages/server/src/local/cors-config.ts`. - -Current evidence update: - -- Source inventory confirms `apps/browser-ext` is a Chrome MV3 extension surface, not an npm workspace. -- Server exposes `/api/browser-ext/health` and CORS env gates for extension origins. -- Direct sidecar save evidence proves selection-shaped and page-shaped Browser Companion frames can be created, duplicate detection works, and Memory UI renders the saved imported frame. -- A real unpacked Chromium extension run originally proved background save failed by default with generic `HTTP 500` when the extension origin was not allowlisted. The current secure-default live smoke now proves content-script extraction from a normal page, MV3 no-Origin header handling, token bootstrap during save, background save through `chrome.runtime.sendMessage`, and `/api/memory/frames` imported-frame confirmation under `WAGGLE_BROWSER_EXT_IDS=`. -- The direct popup keyboard/click live smoke now proves popup Tab order, visible Save selection focus, Enter-to-save selection, Save page click, saved feedback, Memory frame creation through the secure sidecar path, and `/api/memory/search` `source: import` when supplied the active target tab that the native toolbar popup would receive from Chrome. Context-menu registration/handler behavior is regression-covered. -- Native toolbar-bubble exposure, native context-menu clicks, packaged pairing, and any separately scored global-recall provenance shape are still unproven. -- Historical `/api/memory/frames` versus `/api/memory/search` source/provenance disagreement is fixed for imported Browser Companion captures. - -Acceptance: - -- Connected/disconnected popup states are screenshot or test evidenced. -- Save selection and save page create Memory frames from popup keyboard/click interactions or have an approved deferral; native toolbar-bubble proof can be manual if automation cannot expose it. -- Native context-menu save creates a Memory frame or has an approved deferral. -- CORS/auth-denied/unpaired-extension state gives a clear setup path instead of a generic `HTTP 500` or raw `MISSING_TOKEN`; focused coverage exists, with live screenshot evidence still optional for the judge packet. -- Memory provenance remains consistent between frame list, search result, UI, and any separate global-recall result shape included in scoring. -- Popup keyboard/focus basics have live evidence; status announcement behavior is separately checked or deferred if scored. -- Browser Companion is either evidenced or explicitly deferred from the five-persona score. - -Judge impact: - -- Researcher. -- Solo founder. -- Mobile executive where browser capture is part of the scenario. - -### R2-12: State and failure bundle evidence - -Source finding: P1-8 / T12. - -Surfaces: - -- `docs/audits/2026-07-08-ux-state-failure-scenario-matrix.md`. -- Five-persona scorecards. -- Routes and overlays exercised under account, tier, disclosure, model, data, offline, and viewport variants. - -Acceptance: - -- Each judge scorecard declares the exact state bundle it exercised. -- Account mode, billing tier, disclosure tier, model state, data state, offline/error state, and viewport are present in the evidence. -- Skipped state bundles have explicit deferral rationale before scoring. - -Judge impact: - -- All personas. - -### R2-13: Public launch funnel repair and evidence - -Source finding: P0-L1 / T13. - -Focused supplement: `docs/audits/2026-07-08-launch-funnel-t13-analysis.md`. - -Surfaces: - -- `apps/www` homepage. -- Canonical `waggle-os.ai` DNS/deployment. -- Download CTA. -- GitHub Releases or replacement download/status page. -- Sign-in, sign-up, account. -- Team checkout and checkout cancel recovery. -- Legal/privacy/cookies/EU AI Act pages. -- `deploy-www.yml` or replacement deployment target. - -Acceptance: - -- Download CTA leads to valid Windows/macOS artifacts or a controlled availability/status page; mobile and unsupported OS labels are honest. -- `https://waggle-os.ai/` and `https://www.waggle-os.ai/` resolve and serve the selected public deployment or redirect coherently. -- Local production route/API smoke uses the correct host binding and serves the public launch, legal, auth, account, methodology, and checkout routes without 500s, timeouts, unexpected 404s, or Clerk redirect-loop spam. -- Launch funnel is verified with desktop/mobile route evidence, or explicitly deferred from the five-persona score. -- Signed-out Team checkout guides the user into auth/checkout recovery instead of a JSON-shaped error. -- Checkout cancel returns to a real pricing recovery state. -- Public legal/trust pages contain no placeholder launch text and no active Pro copy. -- Deployment target matches the app shape. - -Current evidence: - -- www tests, direct TypeScript, and Next build pass. -- Current external refresh cannot resolve `waggle-os.ai` or `www.waggle-os.ai` from the audit environment; DNS reports non-existent domain/no A or CNAME. -- Fresh localhost route/API smoke serves core routes, but `/pricing?checkout=cancelled` still 404s. -- Fresh rendered Browser smoke under `output/playwright/www-t13-3491/` captures desktop/mobile homepage, mobile menu, signed-out pricing error, route/API probes, and clean sampled console logs; it still reproduces broken Download and signed-out checkout recovery. -- Public download currently points to GitHub Releases, where the repo has no releases. -- Current workflow uploads `apps/www/dist` while the app builds `.next`. - -Judge impact: - -- Solo founder. -- Team admin. -- Mobile executive. - -### R2-14: Desktop wrapper and release UX evidence - -Source finding: P1-10 / T14. - -Surfaces: - -- Packaged Tauri launch. -- Sidecar readiness and failure recovery. -- Tray menu actions. -- Close-to-tray and global shortcut. -- Installer/signing expectations. -- Update notification or deliberate hidden/disabled update state. - -Current evidence update: - -- Static Tauri config/update/tray tests, app TypeScript, web typecheck, Rust `cargo check`, sidecar resource preflight, app service E2E, release workflow ordering, and web-side Tauri binding tests now pass; Rust source directly handles tray Open/focus, close-to-tray, `Ctrl+Shift+W`, and Quit. -- Settings routes through a tested `/settings` desktop bridge; Pause Agents and About Waggle are hidden; remaining unconsumed native events are update/service status and still need visible UX or deferral. -- This remains Phase 2/launch work unless a Phase 1 verification command directly needs a small supporting fix. - -Acceptance: - -- Installed app launch and service recovery are verified, or explicitly deferred from the five-persona score. -- Tray/update/service events are either consumed by UI, handled natively, or hidden until supported; Quit actually exits or is not shown as a supported command. -- Release channel expectations are clear for signed/trusted install. - -Judge impact: - -- All personas. - -## Phase 3: Performance, Cost Semantics, and Polish - -Goal: improve speed, clarity, and polish after core trust/flow issues are under control. - -### R3-1: Initial payload and route loading - -Source finding: P1-4 / T8. - -Surfaces: - -- App shell. -- Deep Settings/Marketplace/admin surfaces. -- Keep `shape-selection.ts` import hygiene guarded while reducing the remaining initial payload. -- Large persona/logo assets. - -Acceptance: - -- Startup JS stays below the Vite 500 kB warning threshold. -- Deep apps, closed overlays, chat, and analytics load after core shell where feasible. -- Defeated dynamic import and oversized-JS warnings remain resolved or explicitly justified. -- Large persona/logo assets are optimized or deferred. - -Judge impact: - -- Mobile executive. -- Engineer. -- Solo founder first impression. - -### R3-2: Local model pricing semantics - -Source finding: P1-6 / T9. - -Surfaces: - -- `packages/agent/src/cost-tracker.ts`. -- Usage & Cost UI. -- No-LLM/degraded-mode tests. - -Acceptance: - -- Local/unpriced models are labeled honestly. -- No standard audit warning estimates local model cost as paid-provider cost without explanation. -- Tests that claim no-LLM behavior actually force provider unavailability or are renamed. - -Judge impact: - -- Engineer. -- Team admin. - -### R3-3: Stale comments and legacy terminology - -Source finding: P2-1. - -Surfaces: - -- Touched billing/tier files. -- Touched route/shortcut files. -- Touched Marketplace/MCP/skills copy files. - -Acceptance: - -- Comments in touched files reflect current Solo/Teams/Enterprise and route behavior. -- No unrelated cleanup outside touched files. - -Judge impact: - -- Indirect. - -### R3-4: Browser plugin DOM snapshot tooling - -Source finding: P2-2. - -Surfaces: - -- Audit tooling, not product. - -Acceptance: - -- Keep Playwright CLI as the reliable audit path until Browser `domSnapshot()` mismatch is fixed. -- If Browser tooling is fixed, update the audit process and evidence packet. - -Judge impact: - -- Audit ergonomics only. - -## Re-Scoring Sequence - -1. Finish Phase 1 and update the correction register. -2. Attach route, state/failure, launch-funnel, Browser Companion, desktop-wrapper, utility/admin, hook lifecycle, developer/substrate, and ops/deployment/judging evidence owners to the five scorecards. -3. Run a dry five-persona scorecard pass. -4. If any persona is capped by a Phase 2 item, execute only the relevant Phase 2 lane. -5. Repeat scorecard pass. -6. Execute Phase 3 only after trust, routing, accessibility, route evidence, state-bundle evidence, and any non-deferred launch/extension/desktop/utility/hook/developer/ops gates stop capping scores. - -## Approval Boundary - -This roadmap is not a request to implement Phase 2/3 now. It exists so the remaining correction work is sequenced after Phase 1 and no P1/P2 item is lost. diff --git a/docs/audits/2026-07-08-ux-route-scenario-manifest.md b/docs/audits/2026-07-08-ux-route-scenario-manifest.md deleted file mode 100644 index 726734b..0000000 --- a/docs/audits/2026-07-08-ux-route-scenario-manifest.md +++ /dev/null @@ -1,319 +0,0 @@ -# Waggle OS UX Route and Scenario Manifest - -Companion artifact for `docs/audits/2026-07-08-complete-ux-usage-audit.md`. - -Five-persona scoring packet: `docs/audits/2026-07-08-five-persona-judge-scorecards.md`. - -Five-persona execution runbook: `docs/audits/2026-07-08-five-persona-judge-runbook.md`. - -Master correction register: `docs/audits/2026-07-08-ux-correction-register.md`. - -State and failure matrix: `docs/audits/2026-07-08-ux-state-failure-scenario-matrix.md`. - -Focused T11 route evidence supplement: `docs/audits/2026-07-08-route-evidence-t11-analysis.md` (now includes a current all-route built-preview smoke on port 3457 and codified `J-route-coverage` evidence on port `34200`). - -Focused Mobile Executive T2/T12 supplement: `docs/audits/2026-07-08-mobile-executive-t2-t12-analysis.md`. - -Focused runtime accessibility T10 supplement: `docs/audits/2026-07-08-runtime-a11y-t10-analysis.md`. - -Focused first-run onboarding T1/T2/T12 supplement: `docs/audits/2026-07-08-first-run-onboarding-t1-t2-t12-analysis.md`. - -Focused shell overlay T10/T12 supplement: `docs/audits/2026-07-08-shell-overlays-t10-t12-analysis.md`. - -Non-main surface scope: `docs/audits/2026-07-08-ux-non-main-surface-scope.md`. - -Source inventory consistency audit: `docs/audits/2026-07-08-source-inventory-consistency-audit.md`. - -Phase 1 implementation plan and verification log: `docs/superpowers/plans/2026-07-08-ux-phase-1-corrections.md`. - -Purpose: make the final 9/10 UX claim auditable. Every registered route, major overlay, and cross-cutting scenario needs an evidence owner before the five-persona judge gate is run. - -Current Phase 1 evidence update: the approved Phase 1 corrections are implemented and the full combined browser gate passed 156/156 on port `34150`. This includes accountless console health, mobile Settings, mobile first-run onboarding, `Ctrl+Shift+N`, Workspace Switcher open/close behavior, thin route smokes, and visual snapshots. Phase 2 has also begun: Notification Inbox and Create Workspace overlay contracts passed component and rendered journey evidence on ports `34151`/`34152`; the next overlay slice adds component evidence for Context Rail, Onboarding Tooltips, and tier close labels plus rendered `J3c` tier-modal evidence on port `34153`, with the earlier expanded full user-journey suite passing 18/18 on port `34155`. The Create Workspace mobile hierarchy slice adds component evidence, focused 390 x 844 rendered evidence on port `34157`, and expanded full user-journey evidence passing 19/19 on port `34158`. Rows below keep `Mixed` where deeper workflow, destructive-dialog, accessibility, mobile-overlay, or non-main-surface evidence is still required before the final 9/10 judge pass. - -Status key: - -- `Strong`: current tests or rendered inspection exercise the route and at least one primary interaction. -- `Mixed`: route has coverage, but known failures, flakes, visual drift, or thin interaction depth remain. -- `Thin`: route is registered and has only shallow/static/string evidence. -- `Missing`: route has no direct route-string coverage in `tests/` or `apps/web/src/test`. - -Global route acceptance checks: - -1. Route loads a meaningful surface, not a blank shell. -2. No framework overlay or critical console error. -3. Primary visible control works and produces an observable state change. -4. Empty, loading, error, and permission states are understandable. -5. Keyboard focus is visible and ordered through primary controls. -6. Runtime axe/DOM findings on judge routes have no critical or serious unapproved violations. -7. Mobile 390 px layout has no horizontal overflow or clipped critical controls; critical visible element bounds must be checked because document scroll width alone can miss clipping. -8. First-run onboarding is checked on a clean data dir without skip flags for console health, mobile primary-action reachability, and terminal first-task handoff. -9. User-facing copy matches current Solo, Teams, Enterprise strategy. -10. Destructive or trust-critical actions use in-app confirmation and result states. -11. URL state is stable enough for reload/back/forward on tabs, filters, and route context. -12. Route has an evidence owner in the final judge packet. - -## Route Manifest - -| Area | Route | Primary component | User job | Current evidence | Status | Must prove before 9/10 | -|---|---|---|---|---|---|---| -| Auth | `/auth` | `AuthRoute`, `WaggleClerkProvider` | Sign in or continue accountless | 9 route-string hits; Phase 1 console health passes with Clerk disabled by default unless `VITE_WAGGLE_ENABLE_CLERK=1` | Mixed | Auth mode still needs an intentional-Clerk enabled lane; accountless local mode is clean in the standard audit lane. | -| Shell index | `/` -> `/home` | `IndexRedirect`, `AppShell` | Land in the product | Covered by shell/user journeys | Strong | Redirect is stable and does not flash invalid shell state. | -| Home | `/home` | `HomeCockpit` | Continue work, Start Here, create/open workspace | 81 route-string hits; rendered desktop/mobile inspection | Strong | Preserve Home as the continuity anchor; no new surface for existing Home jobs. | -| Workspaces | `/workspaces` | `AllWorkspacesApp` | Browse, create, manage workspaces | 115 route-string hits | Mixed | Workspace creation/deletion/manage flows have in-app confirmations and mobile fit. | -| Workspace | `/workspaces/:workspaceId/:tab?` | `WorkspaceDesktopApp`, `ChatApp`, `TasksTab` | Chat, files, tasks, workspace memory | 41 nested route hits; chat tests; Phase 1 `Ctrl+Shift+N` and active-workspace fallback pass in combined browser gate | Mixed | Mobile workspace tabs are in-bounds or intentionally scrollable; deeper files/tasks/memory states remain evidence work. | -| Memory | `/memory/:mindScope?` | `MemoryCenterApp` | Search, trust, provenance, wiki, timeline | 138 route-string hits; T5 visual failure classified mostly as stale-baseline drift; fresh 390 x 844 smoke shows mobile tab-strip overflow; rendered `J3f` delete/erase/re-import confirmations pass on port `34164`; rendered `J3g` Wiki export forms pass on port `34167`; latest expanded user journeys pass 24/24 on port `34173` | Mixed | Memory Center destructive trust flow and Wiki export destinations use in-app consequence/form modals; mobile tab-strip behavior, visual baseline, failure states, and broader persona states still need final evidence. | -| Artifacts | `/artifacts` | `ArtifactCenterApp` | Review, archive, delete produced artifacts | Codified `J-route-coverage: priority thin routes` renders Artifact/Library shell; rendered `J3e` permanent-delete confirmation passes on port `34161`; latest expanded user journeys pass 24/24 on port `34173` | Mixed | Permanent delete uses in-app consequence modal; archive, empty/error, and broader artifact persona states still need final evidence. | -| Files | `/files` | `StorageAndFilesApp` | Browse, upload, preview, download files | Codified `J-route-coverage: priority thin routes` renders storage/files shell; passed 2026-07-08 on port `34200` | Mixed | Upload, preview, empty/error states and keyboard navigation are covered. | -| Agents | `/agents` | `AgentsApp` | Create/manage agents and groups | 12 route-string hits | Mixed | Agent creation forms have labels, errors, and no noisy `act` warnings. | -| Automations | `/automations` | `AutomationCenterApp` | Build and manage scheduled jobs | Codified `J-route-coverage: priority thin routes` renders Automation Center shell; delete confirmation has focused component evidence in `phase3b-automation-center.test.tsx` | Mixed | Builder validation, logs, pause/resume, failure, and broader persona states remain. | -| Skills | `/skills` | `CapabilitiesApp` | Inspect/install skills | 50 route-string hits; T5 visual failure classified mostly as stale-baseline drift with T10 row/action follow-up | Mixed | Pro copy removed; install/update/error states are deterministic; approved visual baseline passes. | -| Room | `/room` | `RoomApp` | Observe parallel agent work | 12 route-string hits | Mixed | Empty/running/completed states and explanatory affordances are covered. | -| WaggleDance | `/waggle-dance` | `WaggleDanceApp` | Understand signal sharing/swarm behavior | Codified `J-route-coverage: priority thin routes` renders signal-sharing shell; passed 2026-07-08 on port `34200` | Mixed | Value clarity and live signal states are added. | -| Approvals | `/approvals` | `ApprovalsApp` | Review grants/actions and revoke permissions | Rendered `J3d` revoke-all in-app confirmation path passes on port `34159`; latest expanded user journeys pass 24/24 on port `34173` | Mixed | Revoke-all uses in-app consequence modal and result state; approve/deny and individual revoke states still need final persona-bundle evidence. | -| Connectors | `/connectors` | `ConnectorsApp` | Connect external systems | 35 route-string hits | Mixed | Credential setup, revoke, error recovery, and no-secrets display are tested. | -| MCP Hub | `/mcps` | `MCPHubApp` | Manage MCP servers | Codified `J-route-coverage: priority thin routes` renders MCP Hub installed/catalog/custom shell; passed 2026-07-08 on port `34200` | Mixed | Solo/Team copy, custom MCP form labels, scope dialog, install/verify states covered. | -| Marketplace | `/marketplace` | `MarketplaceApp` | Browse/install extensions | 53 route-string hits; one flake | Mixed | Standard audit does not hit live external sync; search/browse are stable. | -| Launcher | `/launcher` | `LauncherApp` | Launch AI tools and manage hooks | Codified `J-route-coverage: priority thin routes` renders `/launcher` and `/launcher?watch=1`; passed 2026-07-08 on port `34200` | Mixed | Clean-install runtime verification, launch-with-prompt, hook install/verify/uninstall covered. | -| Team | `/team` | `TeamGovernanceApp` | Manage team governance | 20 route-string hits | Mixed | Tier gating, permissions, audit trail, and empty Solo state are understandable. | -| Settings | `/settings` | `SettingsApp` | Configure models, billing, general, backup | 66 route-string hits; Phase 1 390 px tests pass for general, models, billing, and profile with visible-control bounds checks; rendered `J3h` Settings backup/restore trust path passes on port `34171`; latest expanded user journeys pass 24/24 on port `34173` | Mixed | Settings telemetry clear and backup/restore now use in-app approval/status states; form labels, deeper mobile overlay paths, and broader persona-state evidence remain. | -| Vault | `/settings/vault` | `VaultApp` | Store API keys and secrets | 7 route-string hits | Mixed | Success/error states do not leak secrets and are keyboard accessible. | -| Profile | `/settings/profile` | `UserProfileApp` | Manage identity and preferences | Codified `J-route-coverage: priority thin routes` renders profile form shell; passed 2026-07-08 on port `34200` | Mixed | Form labels, save/error states, and mobile layout covered. | -| Mission Control | `/settings/mission-control` | `CockpitApp` | Inspect health/cost/activity | 10 route-string hits; T5 visual failure classified as low-risk drift with connector-list scroll/affordance review | Mixed | Visual baseline, connector-list fit, and local model cost semantics fixed or explicitly deferred. | -| Timeline | `/settings/timeline` | `TimelineApp` | Review activity history | Codified `J-route-coverage: priority thin routes` renders timeline/activity shell; passed 2026-07-08 on port `34200` | Mixed | Empty, filtered, long-list, and date formatting states covered. | -| Events | `/settings/events` | `EventsApp` | Inspect logs/events | 6 route-string hits; T5 visual failure classified as low-risk drift | Mixed | Filters, empty state, long log lines, and approved visual baseline covered. | -| Usage | `/settings/usage` | `TelemetryApp` | Understand spend/tokens | Codified `J-route-coverage: priority thin routes` renders usage/cost shell; passed 2026-07-08 on port `34200` | Mixed | Unknown local model pricing is explicit; cost tables use tabular numbers and Intl formatting. | -| Benchmarks | `/benchmarks` | `BenchmarkApp` | Inspect benchmark capability | Component tests plus codified `J-route-coverage: thin utility routes` render the route; passed 2026-07-08 on port `34200` | Mixed | Discovery path and benchmark interpretation are clear. | -| Platform | `/platform` | `PlatformApp` | Understand platform/roadmap | Component tests plus codified `J-route-coverage: thin utility routes` render the route; passed 2026-07-08 on port `34200` | Mixed | Decide if this command-palette surface is included in judged app scope. | -| Payment success | `/payment-success` | `PaymentSuccessApp` | Recover from successful checkout | Codified `J-route-coverage: priority thin routes` renders checkout/no-confirmation fallback; passed 2026-07-08 on port `34200` | Mixed | Legacy Pro copy is constrained to historical billing state; Teams success path is clear. | -| Payment cancelled | `/payment-cancelled` | `Navigate` to billing settings | Recover from cancelled checkout | Codified `J-route-coverage: thin utility routes` proves redirect to `/settings?tab=billing` and billing recovery copy; passed 2026-07-08 on port `34200` | Mixed | Billing explains the recovery action and checkout retry path. | -| Not found | `*` | `NotFound` | Recover from bad route | Existing stress coverage | Mixed | Recovery link is visible and returns to Home without overlay traps. | - -## Embedded and Retired Surface Inventory - -This table prevents the final "complete UX" claim from silently ignoring app files that are not top-level routes. - -| Surface/file | Current state from source inventory | UX audit consequence | -|---|---|---| -| `DashboardApp.tsx` | Present in `apps/web/src/components/os/apps`, but not imported by a route; `dashboard` app id retargets to `/home`. | Treat Home as the judged dashboard/continuity surface. Do not add DashboardApp evidence unless the surface is resurrected. | -| `VoiceApp.tsx` | Present as a "Coming Soon" component; `voice` app id retargets to `/home`. | If voice becomes reachable, it needs a route, copy, and judge scenario. Current final packet may exclude it as retired/unrouted. | -| `MissionControlApp.tsx` | Present but route comments mark the legacy app id as killed; `/settings/mission-control` renders `CockpitApp`. | Judge Mission Control through `CockpitApp`; stale comments/import references should not confuse future scoring. | -| `BackupApp.tsx` | No top-level route; backup lives inside Settings and now has focused Settings plus standalone component coverage. | Judge backup primarily through `/settings?tab=backup`; standalone `BackupApp.tsx` restore also uses in-app approval if this embedded component is surfaced again. | -| `StorageApp.tsx`, `FilesAppTabs.tsx`, `FilesApp.tsx` | Embedded under `StorageAndFilesApp`, which is routed at `/files`. | Judge the unified `/files` A/B storage/files surface, including workspace query state. | -| `BenchmarkApp.tsx`, `PlatformApp.tsx` | Top-level routes exist; component tests and codified `J-route-coverage` prove they render. | Route existence is closed under T11; discovery/value clarity remains a scenario-depth item. | - -## Command-Query Destination Inventory - -Source inventory found two active command destinations whose base routes are covered, but whose query-state UX still needs explicit evidence: - -| Destination | Source | UX audit consequence | -|---|---|---| -| `/launcher?watch=1` | Command Center action: Watch a coding agent live | Cover as a T11/T16 Launcher watch-mode state, not as a new top-level route. | -| `/settings?tab=billing` | Command Center action: Upgrade to Team | Cover as a T3/T11/T13 billing deep-link and checkout-recovery state, not as a new top-level route. | -| `/motion-spec` | Development-only motion specification route | Exclude from production score unless developer visual tooling is explicitly brought into scope. | - -## Overlay Manifest - -| Overlay | Entry | User job | Current concern | Must prove before 9/10 | -|---|---|---|---|---| -| Command Center | `Ctrl+K`, sidebar Search | Find routes/actions quickly | Pro wording in pinned group; action labels need consistency; fresh mobile smoke found long-label overflow, missing dialog description warning, and Escape close not proven | Search, select, gated action prompt, long-label fit, accessible dialog naming, and keyboard/touch close all pass. | -| Workspace Switcher | Sidebar workspace, fallback shortcut | Switch/create workspace | Phase 1 route contract passes: switcher opens/closes and no longer blocks route-changing traversal; focused create-workspace mobile hierarchy now passes at 390 x 844 | Selection, Escape, outside-click, route-changing nav, and broader create-workspace states all need final judge evidence. | -| Persona Switcher | `Ctrl+Shift+P` | Change active persona | Focus/labels need review | Current persona, available modes, custom persona creation, and close behavior covered. | -| Spawn Agent | Sidebar/New Agent | Start an agent run | Model fallback clarity and form labels | Create, cancel, missing model, and workspace selection covered. | -| Onboarding Wizard | First run or forced wizard | First launch setup | Phase 1 clean first-run console smoke passes and mobile Profile primary action remains reachable at 390 px | Model gate ready copy, memory import consequence clarity, template, first task, and post-completion chat handoff still need final judge screenshots. | -| Login Briefing | Post-auth/local briefing | Explain next steps | Pro/Teams copy mismatch | Copy aligns with Solo/Teams/Enterprise and Home Start Here. | -| Upgrade/Trial modals | Tier gates | Explain access boundaries | Strategy copy must match tier model | No Pro upgrade copy in active flows. | -| Notification Inbox | Status/sidebar entry | Review alerts | Phase 2 partial fix: named dialog, Escape close, focus trap, named mark-all/close actions, rendered `J3b` journey passes | Notification content states and mobile screenshot refresh still need final judge evidence. | -| Create Workspace | Workspace Switcher New workspace | Start a new workspace | Phase 2 partial fix: named primary/subdialog contracts, Escape close, focus trap, named sampled template/share actions, in-app custom-template delete confirmation, and focused 390 x 844 hierarchy with templates behind progressive disclosure | Full mobile screenshot proof, keyboard-only create path, and broader create-workspace state coverage remain. | -| Context Rail | Chat/context action | Inspect selected context | Phase 2 partial fix: source/component evidence now gives the side rail a labelled complementary landmark, named close action, and expandable item state | Route-specific rendered open/close, loading, empty, long content, and focus order evidence remain. | -| Onboarding Tooltips | Post-onboarding coach mark | Dismiss or advance first-run tips | Phase 2 partial fix: named non-modal dialog with Escape dismissal and stored dismissed state has component coverage | Rendered first-run/mobile state evidence and proof of suppression around other overlays remain. | -| Upgrade / Trial tier modals | Tier-gated actions and expired trial state | Recover from paywall interruption | Phase 2 partial fix: tier modal close labels have component coverage; event-driven Upgrade modal has rendered `J3c` evidence | Full billing, checkout, expired-trial account state, and mobile evidence remain. | -| Erase Data dialog | Settings/system | Delete local data safely | High-risk destructive flow | Exact consequence copy, typed confirmation if needed, result state covered. | - -## Usage Scenario Catalog - -### First-run and account scenarios - -- First launch with no account, no local model, and no imported memory. -- First launch with a valid Clerk key intentionally enabled. -- Continue accountless from `/auth`. -- Start trial and then fall back to Solo behavior. -- Return after onboarding with remembered Home Start Here state. -- Accountless mode with network disabled. - -### Workspace scenarios - -- Create first workspace from Home. -- Create workspace from All Workspaces. -- Switch workspace from sidebar switcher. -- Open workspace chat from Home Start Here. -- Open workspace chat through `Ctrl+Shift+N`. -- Delete/archive workspace template or workspace-adjacent artifact with consequence copy. -- Long workspace names and empty workspace lists. - -### Chat and agent scenarios - -- Send first chat message with real local model. -- Send first chat message with model unavailable. -- Retry a failed assistant response. -- Tool-use block renders, expands, and does not leak broken JSON. -- Model switch block explains fallback. -- Spawn Agent with a workspace and model available. -- Spawn Agent when no model is configured. -- Agent group creation, detail view, execution view, and cancellation. - -### Memory scenarios - -- Empty Memory Center. -- Memory list with many records and long titles. -- Search memory. -- Inspect memory provenance/trust. -- Archive/delete memory with in-app confirmation. -- Wiki export to local path without native prompt. -- Import reminder banner dismissed. -- Timeline and evolution tabs empty, loading, error, and populated. - -### Extend and integration scenarios - -- Marketplace browse/search with local catalog only. -- Marketplace sync live-integration lane, separate from standard UX audit. -- Skill install/update/error. -- MCP server install/verify/uninstall. -- Custom MCP form with invalid command, missing fields, and scope selection. -- Connector connect/revoke/error without secret exposure. -- Launcher tool detect, launch with prompt, hook install/verify/uninstall. -- Browser Companion extension connected/disconnected popup, save selection, save page, CORS-denied recovery, and memory-frame result. - -### Trust, admin, and billing scenarios - -- Billing settings in Solo, Trial, Teams, Enterprise, and legacy Pro subscriber state. -- Payment success for Teams. -- Payment cancelled redirect to billing. -- Approvals review, approve, deny, revoke all. -- Vault create/update/delete API key without exposing value. -- Backup create, restore, server unreachable, restore success. -- Team governance visible/hidden according to tier. -- Compliance template create/edit/delete. - -### Responsive and accessibility scenarios - -- Desktop 1440 x 900 for every route. -- Mobile 390 x 844 for Home, Settings general/models/billing/profile, Memory, Chat, Marketplace, Billing, Profile, Command Center, Workspace Switcher, and the sampled Create Workspace path. -- Critical visible control bounds at 390 x 844, not only document-level overflow. -- Narrow viewport for every modal/overlay that can open from mobile. -- Keyboard-only pass through sidebar, Command Center, Workspace Switcher, Settings tabs, Chat composer, and destructive dialogs. -- Screen reader naming pass for icon-only buttons, form controls, tabs, dialogs, and toasts. -- Reduced-motion pass for boot, route transitions, Home cards, and onboarding. - -### Error, offline, and performance scenarios - -- Sidecar unavailable. -- Marketplace external source unavailable. -- LLM provider unavailable. -- File upload failure. -- API returns 401/403/404/500. -- Large memory list and large event log. -- Main chunk and route-level lazy loading after performance fixes. -- Console error budget: zero critical app/auth/CSP errors in the standard audit lane. - -### Public launch funnel scenarios - -- Current evidence update: focused T13 supplement confirms local production route/API smoke must use `--hostname localhost` on Windows for this Next middleware setup. Corrected-host smoke renders the homepage, legal pages, auth pages, `/docs/methodology`, unauthenticated account redirect, and signed-out GET checkout redirect; it still exposes `/pricing?checkout=cancelled` 404, signed-out POST/pricing checkout dead-end copy, legal placeholders, download target with no GitHub releases, and deploy mismatch. Treat these as T13/P0-L1 until fixed or explicitly deferred. -- Homepage desktop and mobile first viewport. -- Mobile menu open, navigate, and close. -- Download CTA resolves to the intended release/download target. -- Signed-out Team checkout guides to sign-in/sign-up and then checkout recovery. -- Checkout cancel returns to a real pricing/billing recovery state. -- Account route redirects unauthenticated users to sign-in. -- `/docs/methodology` is the canonical methodology route; public links should not point users at missing `/methodology`. -- Legal/privacy/cookies/EU AI Act pages contain no launch placeholders and no active Pro copy. -- Deployment target serves the actual Next app shape or is explicitly replaced/deferred. - -### Desktop wrapper and release scenarios - -- Packaged Tauri app launches to Home or a clear service-recovery state. -- Sidecar healthy, degraded, unavailable, and port-conflict states surface in user language. -- Tray Open, Settings, and Quit actions are verified in a packaged smoke; About and Pause Agents remain hidden until implemented. -- Close-to-tray and global shortcut behavior are verified on the target OS lane. -- Update event is either wired to visible update UX or disabled/hidden until supported. -- Installer/signing warning expectations match the release channel. - -Current T14 source evidence update: - -- Tray Open/focus, close-to-tray, `Ctrl+Shift+W`, and Quit are source-wired in Rust, while Settings routes through a tested `/settings` desktop bridge; none of these is yet proved through a packaged app smoke. -- Remaining unconsumed native event families are update/service status: `waggle://update-available`, `waggle://service-status`, and `waggle://service-restart-needed`. -- About and Pause Agents tray actions are hidden until there is real product behavior behind them. - -### Admin web and CLI/MCP utility scenarios - -- Admin web connects with team slug + token, then renders Dashboard, Analytics, Members, Capabilities, Jobs, Audit Log, and Team Settings. -- Admin web empty, loading, API failure, invalid token, long team/user names, mobile width, keyboard navigation, and focus states are verified or explicitly deferred. -- `npx waggle --help`, default startup, `--port`, invalid port, port conflict, `--skip-litellm`, `--no-open`, first-run setup, and service failure copy are verified or explicitly deferred. -- Waggle CLI command parsing, auth failure, normal chat/repl entry, `/help`, `/model`, `/clear`, `/identity`, and graceful exit are verified or explicitly deferred. -- Marketplace CLI help, search/list/info/install/audit/scan, invalid package, dangerous `--force-insecure`, and JSON/human output states are verified or explicitly deferred. -- Memory MCP and hive-mind MCP stdio startup, scope enforcement, erase, missing data dir, invalid JSON args, and host integration errors are verified or explicitly deferred. -- Hive-mind CLI help, init/status/recall/save/harvest/maintenance, missing env, invalid path, `--json`, and Windows shim/postinstall path are verified or explicitly deferred. -- Root verification either discovers hive-mind CLI colocated tests or cites the separate command that owns them. - -### AI-tool hook lifecycle scenarios - -- Launcher shows all 7 launchable AI tools and exposes hook install/verify/uninstall only for the 6 hook-capable tools. -- Claude Desktop is launchable but clearly marked as not hook-capable. -- Codex Desktop shares Codex hook state and copy makes that understandable. -- Hook install, verify, uninstall, already-installed, not-detected, missing CLI, corrupt config, backup restore, and sidecar-unreachable fail-open states are verified or explicitly deferred. -- Hook logs are quiet enough for standard audit output, or expected fail-open warnings are documented and filtered from failure triage. -- Real-tool or hermetic config evidence proves that hook install does not corrupt existing settings and uninstall is byte-identical or removes only Waggle-managed files. - -### Developer API, background worker, and substrate scenarios - -- SDK skill/plugin validation, install, runtime, invalid package, and bad metadata states are verified or explicitly deferred. -- Server route suite passes deterministically as a standard audit command, or performance assertions are moved to an isolated documented lane. -- Worker job processing, failed handler, retry/recovery, and dispatch states have command or UI evidence. -- WaggleDance protocol dispatch, invalid signal, and unavailable peer/server states have evidence. -- Hive-mind core, shim core, wiki compiler, optimizer, shared, and compiler package tests are discoverable through documented root or package-local commands. -- Package-local `npm test` scripts either pass or clearly delegate to root/project-reference commands. -- Standard package verification output is quiet enough that real failures stand out, or expected warnings are documented. - -### Ops, deployment, CI, benchmark, and judging scenarios - -- GitHub Actions CI, release, Tauri PR, public-site deploy, and hive-mind CLI workflows parse and have explicit blocking/advisory semantics. -- Dockerfile, Compose, Render, and LiteLLM config parse and have secret-safe validation evidence. -- Compose validation uses non-interpolated or sanitized output when evidence may be copied into docs, issues, or PRs. -- Render deployment target is explicitly local-sidecar demo or team Postgres server; provisioned services match that decision. -- Infra-dependent tests have a Docker/migration lane, and missing CI coverage is explicitly accepted or fixed. -- Benchmark harness typecheck and tests are runnable through documented commands. -- Historical `judging/` rounds are treated as reference material only; final scorecards are generated from current post-fix source. - -## Five-Persona Coverage Map - -| Persona | Journey | Required route/overlay coverage | -|---|---|---| -| Solo founder | First run -> accountless -> Home Start Here -> workspace -> chat -> return later | `/auth`, onboarding, `/home`, `/workspaces`, workspace chat, Settings model gate. | -| Researcher | Memory search -> provenance -> wiki/timeline -> export/delete trust flow -> optional Browser Companion capture | `/memory`, memory tabs, `/settings/timeline`, native prompt replacements, T19 extension evidence if capture is in scope. | -| Engineer | Command Center -> shortcuts -> Launcher/MCP -> files -> logs -> CLI utility, hook smoke, and developer verification | Command Center, `/launcher`, `/mcps`, `/files`, `/settings/events`, `Ctrl+Shift+N`, selected T15 CLI/MCP, T16 hook, T17 developer/substrate evidence, and T19 extension sidecar contract evidence if not deferred. | -| Team admin | Billing -> Vault -> Approvals -> Backup -> Team governance -> admin web | `/settings`, `/settings/vault`, `/approvals`, backup section, `/team`, payment success/cancelled, selected T15 admin-web evidence if not deferred. | -| Mobile executive | Narrow Home -> Settings -> billing/profile -> memory glance -> theme | Mobile `/home`, `/settings`, `/settings/profile`, `/memory`, theme controls. | - -## Final Judge Evidence Packet - -Before claiming the goal is achieved, collect or generate: - -- Current route manifest with every row marked Strong or explicitly deferred. -- Standard verification command output. -- Rendered desktop screenshots for all primary routes. -- Mobile screenshots for core mobile routes and every overlay used on mobile. -- Overlay evidence includes Notification Inbox, Create Workspace, Context Rail, Onboarding Tooltips, and tier modals, not only Command Center/Workspace Switcher. Current update: the core contract and sampled Create Workspace mobile hierarchy have focused coverage, but less common states still need rendered/mobile owners. -- Console error summary from the standard browser lane. -- Visual baseline decision log: updated baseline versus fixed UI. -- Five persona scorecards with scores and notes for all six dimensions in the main audit. -- State/failure bundle coverage for each of the five judge personas. -- T13 public launch funnel evidence or approved deferral. -- T14 desktop wrapper/release evidence or approved deferral. -- T15 admin web and CLI/MCP utility evidence or approved deferral. -- T16 AI-tool hook lifecycle evidence or approved deferral. -- T17 developer API/background/substrate verification evidence or approved deferral. -- T18 ops/deployment/CI/benchmark/judging evidence or approved deferral. -- Completed `docs/audits/2026-07-08-five-persona-judge-scorecards.md` table with evidence and score caps applied. -- Completed `docs/audits/2026-07-08-five-persona-judge-runbook.md` evidence folders or equivalent current evidence links. -- Deferral list, if any, approved before scoring. - -Current T11 evidence note: app-local route-table tests pass 29/29 and Benchmark/Platform/Payment component tests pass 17/17. Fresh built-app route smokes on ports 3407 and 3411 proved the previous zero/thin route set renders/redirects as URLs. A current all-route built-preview smoke on port 3457 proves 33 desktop route navigations plus 11 mobile route spot-checks return 200, produce meaningful screenshots, and have no document-level horizontal overflow; `/payment-cancelled` redirects to `/settings?tab=billing`. Codified `J-route-coverage` tests now pass 2/2 on port `34200`, so route-existence ownership is closed. Remaining issues such as Launcher detect noise, Usage 403 semantics, expected catch-all logging, and accessible-name gaps stay in T9/T10/T12/T16 rather than T11 route ownership. diff --git a/docs/audits/2026-07-08-ux-state-failure-scenario-matrix.md b/docs/audits/2026-07-08-ux-state-failure-scenario-matrix.md deleted file mode 100644 index c7ccdd6..0000000 --- a/docs/audits/2026-07-08-ux-state-failure-scenario-matrix.md +++ /dev/null @@ -1,98 +0,0 @@ -# Waggle OS UX State and Failure Scenario Matrix - -Companion artifacts: - -- `docs/audits/2026-07-08-complete-ux-usage-audit.md` -- `docs/audits/2026-07-08-ux-route-scenario-manifest.md` -- `docs/audits/2026-07-08-five-persona-judge-scorecards.md` -- `docs/audits/2026-07-08-five-persona-judge-runbook.md` -- `docs/audits/2026-07-08-ux-correction-register.md` -- `docs/audits/2026-07-08-source-inventory-consistency-audit.md` -- `docs/audits/2026-07-08-state-failure-t12-analysis.md` -- `docs/audits/2026-07-08-mobile-executive-t2-t12-analysis.md` -- `docs/audits/2026-07-08-runtime-a11y-t10-analysis.md` -- `docs/audits/2026-07-08-first-run-onboarding-t1-t2-t12-analysis.md` - -Status: analysis-only. No product code is approved or changed by this file. - -Purpose: route coverage proves that screens load; it does not prove the product is usable across the states real users hit. This matrix defines the state and failure combinations that must be sampled, tested, or explicitly deferred before the five-persona 9/10 judge gate. - -## Source Inventory - -| System axis | Source of truth inspected | UX consequence | -|---|---|---| -| Billing tiers | `packages/shared/src/tiers.ts` | Canonical tiers are `TRIAL`, `FREE` displayed as Solo, `TEAMS`, and `ENTERPRISE`; legacy `PRO` maps to `FREE`. | -| UI disclosure tiers | `apps/web/src/lib/dock-tiers.ts` | Navigation depth changes across `simple`, `professional`, `power`, and `admin`; billing tier also hides Team/Approvals entries below Teams. | -| Settings visibility | `apps/web/src/lib/settings-tier-filter.ts` | Settings tabs vary by disclosure tier; Team tab has a separate Teams billing gate. | -| Auth/account mode | `apps/web/src/lib/clerk.ts`, `apps/web/src/providers/WaggleClerkProvider.tsx` | Clerk is optional; no key or malformed key must yield honest accountless mode, not a blank shell. | -| Shell runtime state | `apps/web/src/providers/ShellContext.tsx`, `apps/web/src/components/os/AppShell.tsx` | Shell owns workspaces, tier, trial, onboarding, notifications, offline, overlays, and context rail. | -| Workspace state | `apps/web/src/hooks/useWorkspaces.ts` | Workspace selection is explicit; failed loads preserve prior data and surface errors. Create has a local fallback, while delete/patch mutate only on server success. | -| Offline state | `apps/web/src/hooks/useOfflineStatus.ts` | Offline flips after two failed health checks and rechecks on online, visible, and focus events. | -| Model readiness | `apps/web/src/hooks/useHasWorkingModel.ts`, `apps/web/src/components/os/model-gate/ModelGate.tsx`, `NoModelBanner.tsx` | A working model means at least one keyed cloud provider or detected local model; live probes distinguish verified, rejected, and unverified keys. | -| Adapter/API surface | `apps/web/src/lib/adapter.ts`, `packages/server/src/local/index.ts` | UI flows span workspaces, chat, memory, artifacts, local inference, skills, marketplace, agents, automations, notifications, approvals, settings, providers, connectors, MCP, vault, team, cost, backup, files, Stripe, harvest, wiki, identity, compliance, and local inference route families. | -| Destructive workflows | `BackupApp.tsx`, `EraseDataDialog.tsx`, `ApprovalsApp.tsx`, `ArtifactCenterApp.tsx`, `CreateWorkspaceDialog.tsx`, `MemoryCenterTab.tsx`, `WikiTab.tsx`, `SettingsApp.tsx` | Typed confirmation exists for erase data; Create Workspace template delete, Approvals revoke-all, Artifact permanent delete, Memory Center delete/erase/re-import, Wiki export destinations, and Settings telemetry/backup/restore now use in-app confirmations/forms/status; several other trust-critical flows still use native browser dialogs or thin result states. | - -## State Matrix - -| State axis | Variants to sample before 9/10 | Primary surfaces | Current evidence | Gap or correction owner | -|---|---|---|---|---| -| Account and auth | No Clerk key, malformed Clerk key, valid Clerk key, accountless continue, session-token bootstrap failure, Clerk network/CSP failure | `/auth`, `WaggleClerkProvider`, `AuthRoute`, full shell | Auth/component tests plus rendered console failure evidence | T1: local accountless lane must emit no Clerk/CSP errors; auth-enabled lane must remain intentional. | -| Onboarding lifecycle | Fresh install, skipped boot, incomplete wizard, completed onboarding, forced wizard, returning after absence, high-volume import detected, model ready/no-model, first task auto-send | `OnboardingWizard`, `BootScreen`, `LoginBriefing`, `/home`, workspace chat | Unit/E2E coverage exists for boot, onboarding gates, first task, briefing; focused first-run smoke completed desktop onboarding and captured mobile Welcome/Profile | T1/T2/T12: first-run clean-data lane still has Clerk/CSP console errors, mobile Profile Continue below viewport, import CTA risk, and model/auto-send polish gaps. | -| Billing tier | Trial active, trial expired, Solo, Team, Enterprise, legacy Pro subscriber, tier lookup error, Stripe unconfigured | Settings billing, `PlanCards`, `UpgradeModal`, `TrialExpiredModal`, Team/Approvals nav, `/payment-success`, `/payment-cancelled` | Tier tests and API tests exist; active UI still has Pro-copy findings | T3 plus T11/T12: current copy and payment recovery states must be judge-ready. | -| UI disclosure tier | Simple, professional, power, admin; same billing tier with different disclosure tier | Sidebar, Command Center, Settings tabs, pinned nav | Route/unit coverage exists for route table and settings filter | T12: judge evidence must include at least simple and power/admin shell screenshots so hidden vs discoverable depth is intentional. | -| Workspace list and selection | Empty list, loading, load error, many workspaces, long names, archived entries, no active workspace, stale active workspace id, active workspace deleted | Home, Workspace Switcher, `/workspaces`, `/workspaces/:id`, Chat shortcut | Hook code distinguishes errors; rendered failures cover Workspace Switcher and shortcut | T4/T11/T12: route-changing nav, `Ctrl+Shift+N`, and empty/error workspace states need current evidence. | -| Workspace content | Empty workspace, populated workspace, workspace with pending tasks, workspace files, long activity history, permission denied, not found | `WorkspaceDesktopApp`, `TasksTab`, files/storage, Home Start Here | Mixed route and unit coverage | T11/T12: each workspace tab needs either persona journey coverage or explicit deferral. | -| Model readiness | No model, cloud key saved but unverified, cloud key verified, rejected key, local Ollama present, local runtime unavailable, LiteLLM unavailable, unpriced local model | Onboarding model gate, Settings Models, Home banner, Chat, Spawn Agent, Usage & Cost | ModelGate and no-model tests exist; local model cost warning found | T9/T12: no-model and local-model lanes must be scored honestly. | -| Chat runtime | First message, streaming response, retry after failure, abort, session search, session export, artifact block, tool-use block, model switch block, missing provider | Chat, `ChatHost`, `ChatWindowInstance`, chat blocks, workspace sessions | Chat block and live-chat tests exist | Final judge evidence must include failure/retry and artifact-open-to-Files loop. | -| Agent and automation runtime | No agents, many agents, create agent, ambiguous workspace, run/pause/cancel, automation builder validation, scheduled run logs, engine unavailable | `/agents`, `/automations`, Spawn Agent, Room | Unit/E2E coverage exists, but warning noise remains | T10/T12: form validation, loading/error, and run-result states need clean verification output. | -| Memory and provenance | Empty memory, many frames, search no-results, search hit, source missing/404, trace, trust confirm, archive, delete, erase/suppression, all-minds vs workspace scope | `/memory`, Memory Center tabs, Context Rail, Erase Data | Memory route and trust tests exist; Memory Center delete/erase/re-import and Wiki export destinations now have in-app coverage | T7/T10/T12: export failure/result states and screen-reader labels need final pass. | -| Browser capture extension | Extension not loaded, connected, disconnected/CORS denied, save selection, save page, context menu save, content script unavailable, active workspace missing, resulting memory frame, provenance mismatch | `apps/browser-ext` popup/background/content, `/api/browser-ext/session-token`, `/api/browser-ext/health`, `/api/memory/frames`, Memory provenance/search | Source inventory, direct sidecar save, secure-default loaded-extension content extraction/background save, stable packaged-ID pairing, token bootstrap during save, duplicate handling, Memory frame confirmation, popup keyboard/focus/Enter save, Save page click, restricted-page disabled-state/recovery behavior, Memory search `source: import` provenance, existing chat `auto_recall`/catch-up imported provenance, and rendered Memory UI after secure popup save now exist; native toolbar bubble, native context menu, signed release-package proof if scored, and any future scored recall result shape remain unproven. | T19: verify native toolbar/context-menu UX and CORS recovery, plus future recall shapes if scored, or explicitly defer them from final scoring. | -| Files and artifacts | No workspace, workspace chosen by query, root directory, nested folder, upload, preview, download, move/copy/delete, traversal input, artifact delete/archive | `/files`, `/artifacts`, chat artifact block | Deep-link and path-normalization tests exist | T11/T12: rendered Files/Artifacts destructive and empty/error states need evidence. | -| Skills, marketplace, connectors, MCP | Local-only catalog, live marketplace sync, search empty, install success, install 403, install failure, connector connect/revoke/sync error, custom MCP invalid command, MCP permission scope | `/skills`, `/marketplace`, `/connectors`, `/mcps` | Many component/API tests; marketplace sync flake found | T6/T7/T10/T12: determinism, forms, and branded confirmation states. | -| Launcher and external tools | No tools detected, supported tools detected, launch with prompt, launch failure, process running, hook install/verify/uninstall, hook unsupported | `/launcher`, tool output pane | Component tests exist; route coverage is thin | T11/T12: clean-install runtime verification and route-level evidence. | -| Team and governance | Solo hidden state, Team visible state, Enterprise/KVARK CTA, Approvals present, Team governance empty/populated, audit trail | `/team`, `/approvals`, Settings Team/Enterprise, Cockpit compliance | Tier/API coverage exists; current high-confidence native-dialog scan is clean | T7/T12: Team admin judge must see clear gating, branded trust flows, and failure-state evidence. | -| Backup, restore, and erasure | No backup, metadata 404 empty, metadata 500 error, create success, create failure, restore file selected, restore cancel, restore success, erase phrase mismatch, erase success receipt | Settings Backup, `BackupApp`, `EraseDataDialog` | Settings backup failure/restore success and standalone `BackupApp` restore now have in-app approval/status evidence; Backup status classifier and erase modal exist | T7/T12: final judge evidence must cover typed/explicit consequence copy, restore result states, and broader backup failure variants. | -| Offline and API failure | Sidecar unavailable, `/health` failing, session token 401, route 403 tier gate, detail 404, route 500, SSE disconnect, external marketplace unavailable, Stripe unavailable | StatusBar offline pill, Home, Settings, Command Center, Marketplace, Notifications, Events | Failure-injection tests and hook logic exist | T1/T6/T12: standard audit lane needs zero critical console errors and clear offline recovery copy. | -| Responsive layout | Desktop 1440x900, tablet 1024x768, mobile 390x844, landscape mobile, modal on narrow screen, long copy, long names | All routes and overlays; especially Settings, onboarding, Memory, Marketplace, Chat, Create Workspace | Fresh 390 x 844 smoke renders Home, Settings, Profile, Memory, workspace chat, Command Center, and Workspace Switcher; Settings still fails through visible clipping/squeezing despite no document overflow; first-run mobile Profile hides Continue below the viewport; Memory/chat tab strips overflow; Create Workspace fits horizontally but the first mobile viewport is template-heavy; visual suite failed | T2/T5/T10/T12: mobile screenshots, critical element-bounds checks, overlay close checks, creation-flow hierarchy, and visual baseline decision log are mandatory. | -| Accessibility and keyboard | Sidebar tab order, Command Center keyboard, Workspace Switcher, Notification Inbox, Create Workspace, Context Rail, Settings tabs, forms, icon-only buttons, dialogs, toasts, reduced motion | Shell, overlays, forms, ModelGate, destructive dialogs, Mission Control, agent cards, Launcher, Approvals, Files, workspace chat | Mixed unit coverage and guidelines pass; static inspection found representative unlabeled controls; fresh runtime axe/DOM smoke found critical unnamed controls/selects, a serious Files keyboard-scroll issue, workspace semantics/image-alt findings, and Command Center dialog/label-fit warnings; shell overlay smoke found Notification Inbox and Create Workspace lacking semantics/Escape close and Create Workspace exposing 16 unnamed visible icon buttons | T10/T12: keyboard-only, screen-reader naming, modal focus-return, runtime axe, overlay semantics/close, named icon actions, and reduced-motion passes must be evidence-backed. | -| Scale and performance | Large memory list, large event log, 50+ marketplace items, many agents, large files, first bundle, lazy deep apps | Memory, Events, Marketplace, Agents, Files, app shell | Build warning shows large main chunk | T8/T12: performance budget and list behavior need current evidence. | - -## Judge State Bundles - -These bundles turn the matrix into five concrete scoring runs. A persona should not receive 9/10 if their bundle skips the state that matters to their job. - -| Judge persona | Required state bundle | Minimum evidence before scoring | -|---|---|---| -| Solo founder | Accountless or Solo, simple disclosure, no or one workspace, clean-data first-run onboarding, model gate/no-model recovery, Home Start Here, workspace chat, marketplace local-only | Desktop/mobile onboarding, desktop and mobile Home, Settings Models, first chat, no critical console errors. | -| Researcher | Populated memory plus empty search, provenance/trust, wiki/timeline, source missing or archive/delete, export/error result state, Browser Companion capture if in scope | Memory screenshots, keyboard path through tabs, trust/destructive confirmation evidence, T19 extension evidence or deferral. | -| Engineer | Power/admin disclosure, Command Center, `Ctrl+Shift+N`, MCP custom invalid/valid, Launcher hook lifecycle, files artifact deep-link, events logs, extension-sidecar contract if in scope | Shortcut proof, route-level Launcher/MCP/Files evidence, console health, T19 contract evidence or deferral. | -| Team admin | Team billing tier, Team/Approvals visible, Vault, Backup, Team governance, payment success/cancelled, legacy Pro collapsed to Solo where relevant | Billing/tier screenshots, branded confirmations, backup/restore and approvals evidence. | -| Mobile executive | Mobile 390 x 844, simple disclosure, Settings/Profile/Billing, Memory glance, theme toggle, notification/overlay close | Mobile screenshots for routes and overlays, no horizontal overflow, critical visible controls in-bounds, visible focus, readable copy, and selected overlay close proof. | - -## Evidence Rules - -- A component unit test is not enough for a routed state unless the route shell, side effects, and viewport are irrelevant to the claim. -- A route smoke is not enough for a stateful workflow unless it exercises the state transition and observes the result. -- A failing external service can pass UX only if the user sees a clear, branded recovery state and the standard audit lane avoids avoidable live external dependency. -- Native browser dialogs do not satisfy trust-critical UX unless explicitly approved as a temporary exception. -- Any final judge score must cite the state bundle it actually exercised, not merely the route it visited. -- The exact state bundle must be recorded in the judge runbook evidence folder before the persona score is accepted. - -## Corrections Implied By This Matrix - -This matrix does not replace the existing tickets. It clarifies their evidence scope: - -- T1 must prove accountless/auth-enabled console health, not only update CSP strings. -- T2/T5 must collect mobile/visual evidence for stateful surfaces, not only default route screenshots or document scroll-width checks. -- T6 must separate local marketplace UX from live sync UX. -- T7 must cover branded confirmations and result states for destructive flows. -- T8 must define scale/performance evidence for large lists and app payload. -- T9 must label local/unpriced model cost states honestly. -- T10 must include keyboard, labels, icon-only action names, modal focus return, inline errors, runtime axe/DOM findings, and warning hygiene. -- T11 must own route-level evidence for every registered route and embedded/retired surface classification. -- T12 should be added as the cross-state judge evidence ticket: every five-persona judge run must declare which account, tier, disclosure, model, data-volume, offline, and viewport states it exercised. -- Focused T12 supplement `docs/audits/2026-07-08-state-failure-t12-analysis.md` is the current evidence record for the state-slice command run, native dialog scan, persona bundle fields, and T12-A through T12-G correction candidates. -- Focused mobile supplement `docs/audits/2026-07-08-mobile-executive-t2-t12-analysis.md` is the current evidence record for Mobile Executive 390 x 844 screenshots, Settings visible clipping, Memory/chat tab overflow, and Command Center mobile overlay risks. -- Focused shell overlay supplement `docs/audits/2026-07-08-shell-overlays-t10-t12-analysis.md` is the current evidence record for Notification Inbox/Create Workspace semantics and close failures, Create Workspace mobile hierarchy, Context Rail/coach-mark semantics, and tier-modal close naming. -- Focused first-run supplement `docs/audits/2026-07-08-first-run-onboarding-t1-t2-t12-analysis.md` is the current evidence record for clean-data onboarding, desktop completion, mobile Profile reachability, import risk, and first-task handoff behavior. -- T19 remaining proof is native toolbar/context-menu capture, clear CORS/setup recovery screenshots if scored, signed release-package proof if scored, and any future scored recall result shape; loaded-extension UX, popup keyboard/focus basics, stable packaged-ID pairing, restricted-page disabled-state recovery, rendered Memory confirmation, consistent `/api/memory/search` provenance, and existing chat `auto_recall`/catch-up imported provenance now have evidence. diff --git a/docs/audits/2026-07-08-visual-t5-classification.md b/docs/audits/2026-07-08-visual-t5-classification.md deleted file mode 100644 index 50a973d..0000000 --- a/docs/audits/2026-07-08-visual-t5-classification.md +++ /dev/null @@ -1,96 +0,0 @@ -# T5 Visual Snapshot Classification - -Status: verified fixed for the tracked visual lane. The original classification below is retained for history; the current worktree includes canonical baseline updates plus a stabilization-only visual-spec change for volatile Home text. No product UI rollback was required. - -## Command - -Fresh-port run from `D:\Projects\waggle-os`: - -```powershell -$env:WAGGLE_E2E_PORT='3463' -$env:WAGGLE_E2E_BASE_URL='http://127.0.0.1:3463' -$env:WAGGLE_E2E_DATA_DIR=(Join-Path $pwd 'output/playwright/visual-t5-3463/data') -$env:WAGGLE_TRUST_LOCALHOST='1' -$env:WAGGLE_DISABLE_MARKETPLACE_SYNC='1' -$env:EMBEDDING_PROVIDER='mock' -$env:VITE_CLERK_PUBLISHABLE_KEY='' -$env:CLERK_SECRET_KEY='' -node node_modules/playwright/cli.js test tests/visual/views.spec.ts --project=chromium --reporter=list --output=output/playwright/visual-t5-3463/test-results -``` - -Historical result: failed as expected; all 14 snapshot comparisons were red before the approved baseline/spec update. - -## Current Verification - -Fresh-port verification from `D:\Projects\waggle-os`: - -```powershell -$env:WAGGLE_E2E_PORT='34199' -$env:WAGGLE_E2E_BASE_URL='http://localhost:34199' -node node_modules/playwright/cli.js test tests/visual/views.spec.ts --project=chromium --reporter=line -``` - -Result: passed, 14/14 visual snapshot comparisons. - -Current implementation notes: - -- The runner still covers the same seven desktop views: chat, memory, events, capabilities, cockpit/Home, mission-control, and settings. -- `tests/visual/views.spec.ts` now masks volatile Home cockpit facts/workspace text so snapshots compare stable layout and presentation instead of live workspace copy. -- The active expected paths remain the ASCII-hyphen `tests/visual/baselines/Visual-Regression---...` family. -- Duplicate historical baseline families remain present but documented below; they are not the family used by the current runner. - -Artifacts: - -- `output/playwright/visual-t5-3463/test-results/` -- Actual and diff PNGs are stored below per-test folders. -- The generated sidecar data directory was disposable and should not be kept as product evidence. - -## Summary - -The visual suite is not failing because snapshots are missing. The active expected paths resolve under the ASCII-hyphen `tests/visual/baselines/Visual-Regression---...` family. - -The current screenshots are generally coherent in desktop dark and light mode. The diffs mostly reflect stale baselines after intentional surface changes: Home continuity now has a Start Here card, Chat has the newer workspace setup/composer state, Memory has the newer trust/correct/forget presentation, Settings has the newer provider-card and Model Pilot layout, and Skills Hub has the newer list/action treatment. - -Do not update baselines before Phase 1 approval and the other Phase 1 UI changes land. Rebaseline only after screenshots are reviewed again. - -## Failure Table - -| Snapshot | Pixels | Ratio | Classification | Decision | -|---|---:|---:|---|---| -| `chat-dark.png` | 21,258 | 0.03 | Intentional drift | Keep current workspace chat direction; rebaseline after Phase 1 approval unless T4 changes the route/composer state. | -| `chat-light.png` | 18,337 | 0.02 | Intentional drift | Same as dark. | -| `memory-dark.png` | 48,585 | 0.06 | Intentional drift, plus T10/T12 follow-up | Current Memory actual is coherent; update baseline only after Memory mobile/tab/accessibility follow-ups are either fixed or explicitly deferred. | -| `memory-light.png` | 44,402 | 0.05 | Intentional drift, plus T10/T12 follow-up | Same as dark. | -| `events-dark.png` | 9,088 | 0.01 | Low-risk drift | Rebaseline after approval; no immediate UI fix found in the inspected actual. | -| `events-light.png` | 3,297 | 0.01 | Low-risk drift | Rebaseline after approval; no immediate UI fix found in the inspected actual. | -| `capabilities-dark.png` | 12,221 | 0.02 | Intentional drift, plus T10 follow-up | Current Skills Hub actual is coherent; keep T10 coverage for icon/action accessible names and long-row truncation. | -| `capabilities-light.png` | 9,325 | 0.02 | Intentional drift, plus T10 follow-up | Same as dark. | -| `cockpit-dark.png` | 27,356 | 0.03 | Intentional drift | Preserve the current Home Start Here continuity surface; rebaseline after approval. | -| `cockpit-light.png` | 22,423 | 0.03 | Intentional drift | Same as dark. | -| `mission-control-dark.png` | 8,036 | 0.01 | Low-risk drift, plus layout review | Current cockpit actual is coherent, but the connector list reaches the viewport edge in the cropped capture; keep a scroll/affordance check before final scoring. | -| `mission-control-light.png` | 3,304 | 0.01 | Low-risk drift, plus layout review | Same as dark. | -| `settings-dark.png` | 42,572 | 0.05 | Intentional drift, plus Phase 1 dependency | Current Settings actual is coherent, but T2/T3 may alter Settings; rebaseline only after mobile Settings and Solo/Teams copy fixes. | -| `settings-light.png` | 34,466 | 0.04 | Intentional drift, plus Phase 1 dependency | Same as dark. | - -## Baseline Ownership Finding - -`tests/visual/baselines/` currently contains three naming families: - -- `Visual-Regression---...` - active family used by the current run. -- `Visual-Regression-...` with Unicode dash characters - duplicate historical family. -- `Visual-baselines-...` with title-case snapshot names - older duplicate historical family. - -Correction after approval: - -1. Keep a single canonical baseline family. -2. Remove or archive duplicate historical baseline folders only as part of an explicit test-readiness change. -3. Re-run the suite with `--update-snapshots` only after the current actual screenshots are approved. - -## T5 Decision - -T5 is verified fixed for the tracked visual lane: - -- Product UI did not need to be rolled back to old baselines. -- The current canonical baselines represent the approved Phase 1 desktop screenshots. -- The visual suite passes 14/14 on port `34199`. -- A later test-readiness cleanup can remove or archive duplicate historical baseline folders, but they no longer block this P0 because the active runner family is documented and green. diff --git a/docs/audits/2026-07-08-web-guidelines-line-findings.md b/docs/audits/2026-07-08-web-guidelines-line-findings.md deleted file mode 100644 index 72a3ae0..0000000 --- a/docs/audits/2026-07-08-web-guidelines-line-findings.md +++ /dev/null @@ -1,234 +0,0 @@ -# Web Guidelines Line Findings - 2026-07-08 - -Status: analysis supplement with implementation notes. - -Source rule set: Vercel Web Interface Guidelines, fetched on 2026-07-08 from `https://raw.githubusercontent.com/vercel-labs/web-interface-guidelines/main/command.md`. - -Scope scanned: - -- `apps/web/src/components/os` -- `packages/admin-web/src` -- `apps/www/app` -- Test/spec files excluded for the count summaries. - -This file supplements the main UX audit with line-level Web Interface Guidelines findings. It does not change the Phase 1 approval boundary. It strengthens T7, T8, and T10 in the correction register. - -## Summary - -| Area | Finding | Ticket | -|---|---:|---| -| Native browser dialogs | Historical audit found 20 high-confidence production calls in destructive/admin/export flows; current follow-up scan finds 0 after Create Workspace template delete, Approvals revoke-all, Artifact delete, Memory Center destructive-action, Wiki export, Settings telemetry/backup/restore, BackupApp restore, Automation delete, compliance template delete, and admin member-removal fixes | T7 | -| Broad animation transitions | 0 `transition-all` hits in scoped production UI after the focused transition-scoping sweep | T8/T10 | -| Focus suppression | 57 `outline-none` / `focus:outline-none` hits in the original scan; 0 current high-confidence weak/missing focus replacements remain in the reviewed list below after focused fixes | T10 | -| Raw images | 11 `` hits in cockpit UI; 0 lack explicit `width`/`height` attributes after the `SuggestedAgentCards`, `AgentCenterRow`, `ReadyStep`, `BootScreen`, `StatusBar`, `LoginBriefing`, `ChatApp`, and `SpawnAgentDialog` fixes | T8/T10 | -| Form metadata | Loose JSX scan found 145 text-like controls missing `name`, 107 missing `autoComplete`, and 115 without an obvious same-tag `id`/ARIA label hook | T10 | -| Locale/date handling | 114 `new Date(...)` / `toLocale*` hits in scoped production UI; user-visible date/number output needs an `Intl.*` pass | T10/T12 | -| Paste/zoom blockers | No paste-blocking `onPaste` and no zoom-disabling viewport rules found | pass | - -The form metadata scan is intentionally treated as an audit queue, not a compiler-grade count, because JSX attributes often span lines and custom `Input` components need contextual label inspection. - -## T7 Native Dialogs - -These should move to in-app confirmation/result patterns with clear object name, consequence, reversibility, and post-action state. - -Current high-confidence production scan: no remaining browser-native `confirm`, `alert`, or `prompt` calls. Remaining broad scan hits are markdown sanitizer test payloads only. - -Implementation update 2026-07-08: - -- `CreateWorkspaceDialog.tsx` template delete now uses an in-app confirmation. -- `ApprovalsApp.tsx` revoke-all grants now uses the shared in-app `ApprovalModal`. -- `ArtifactCenterApp.tsx` permanent delete now uses the shared in-app `ApprovalModal`; `artifact-center-trust.test.tsx` and rendered `J3e` cover the no-native-confirm contract. -- `MemoryCenterTab.tsx` permanent delete, GDPR erase, and allow re-import now use the shared in-app `ApprovalModal`; `memory-center-trust.test.tsx` and rendered `J3f` cover the no-native-confirm contract. -- `WikiTab.tsx` Obsidian and Notion exports now use an in-app form dialog; `wiki-export-trust.test.tsx` and rendered `J3g` cover the no-native-prompt contract. -- `SettingsApp.tsx` telemetry clear and Settings backup/restore now use in-app approval/status states; `settings-trust.test.tsx` and rendered `J3h` cover the no-native-dialog contract. -- `BackupApp.tsx` restore now uses the shared in-app `ApprovalModal`; `p1b-authgate-surfaces.test.tsx` covers the no-native-confirm contract. -- `AutomationCenterApp.tsx` delete now uses the shared in-app `ApprovalModal`; `phase3b-automation-center.test.tsx` covers the no-native-confirm contract. -- `ComplianceTemplateModal.tsx` delete now uses the shared in-app `ApprovalModal`; `compliance-template-trust.test.tsx` covers the no-native-confirm contract. -- `packages/admin-web/src/pages/Members.tsx` member removal now uses an in-app confirmation panel; `admin-pages.test.ts` covers the no-native-confirm contract. - -## T10 Focus Findings - -These are the high-confidence focus risks from the scoped `outline-none` scan. Lines that already include a clear same-element `focus-visible:ring-*` replacement were not listed here. - -Implementation update 2026-07-08 T10: `AllWorkspacesApp` search, the Settings Prompt Shape select, and `WikiTab` search now have visible focus-ring replacements and are removed from the open list below. - -Implementation update 2026-07-09 T10: `WorkspaceActionsMenu` rename and delete confirmation inputs now have explicit `label`/`htmlFor` wiring, `name`, `autocomplete="off"`, and token-based `focus-visible` rings guarded by `workspace-actions-menu.test.tsx`; they are removed from the open list below. - -Implementation update 2026-07-09 T10: `CommandCenter` search now has a token-based `focus-visible` ring guarded by `p7-b3-command-center.test.tsx`; it is removed from the open list below. - -Implementation update 2026-07-09 T10: warm `AskBar` input now has `name`, `autocomplete="off"`, and a token-based `focus-visible` ring guarded by `warm-primitives.test.tsx`; it is removed from the open list below. - -Implementation update 2026-07-09 T10: workspace `TasksTab` add-task input now has `aria-label`, `name`, `autocomplete="off"`, and a token-based `focus-visible` ring guarded by `workspace-tasks-tab.test.tsx`; it is removed from the open list below. - -Implementation update 2026-07-09 T10: `TimelineApp` event-type filter select now has `aria-label`, `name`, hidden decorative icon semantics, and a token-based `focus-visible` ring guarded by `timeline-app.test.tsx`; it is removed from the open list below. - -Implementation update 2026-07-09 T10: `CreateWorkspaceDialog` template creator Description and Starter Memory textareas now have associated labels, `name`, `autocomplete="off"`, and token-based `focus-visible` rings guarded by `shell-overlay-contracts.test.tsx`; they are removed from the open list below. - -Implementation update 2026-07-09 T10: `WorkspaceSwitcher` focus movement, Tab trap, Escape close, and focus return are now guarded by `shell-overlay-contracts.test.tsx`; it is removed from the open list below. - -Implementation update 2026-07-09 T10: `ConnectorCard` row actions and Jira credential setup fields now have stable names/autocomplete metadata, email/token semantics, disabled spellcheck, and token-based focus rings guarded by `phase4b-connector-hub.test.tsx`; the ConnectorCard credential rows are removed from the open list below. - -Implementation update 2026-07-09 T10: `ExtensionCard` marketplace inline connector-token paste now has an accessible connector-specific label, stable `name`, `autocomplete="off"`, disabled spellcheck, and token focus-ring coverage guarded by `phase4b-marketplace-extend.test.tsx`. - -Implementation update 2026-07-09 T10: `InstallAuditPanel` marketplace audit type filter now has stable `name`/autocomplete metadata and token-based focus rings guarded by `phase4b-marketplace-extend.test.tsx`. - -Implementation update 2026-07-09 T10: `TelemetryApp` daily budget input now has stable `name` and `autocomplete="off"` metadata guarded by `TelemetryApp.test.tsx`. - -Implementation update 2026-07-09 T10: `SkillEditorDrawer` markdown textarea now has stable `name`, `autocomplete="off"`, and disabled spellcheck metadata guarded by `phase3c-skill-builder.test.tsx`. - -Implementation update 2026-07-09 T10: `CreateAgentForm`, `CreateGroupForm`, and `GroupDetail` template controls now have associated labels or accessible names, stable `name` values, `autocomplete="off"`, token-based focus rings, and the group execution strategy exposes `aria-pressed`; `AgentTemplateForms.test.tsx` guards the flow. - -Implementation update 2026-07-09 T10: `TemplatesView` search now exposes contextual accessible names, stable `name` values, and `autocomplete="off"` for persona/group template search; `phase3b-agent-center.test.tsx` guards the persona-template path. - -Implementation update 2026-07-09 T10: `GroupCard` now uses separate select/delete buttons instead of nesting a delete button inside the card button; delete is named per group, both actions have token-based focus rings, and `GroupCard.test.tsx` guards the behavior. - -Implementation update 2026-07-09 T10: `AgentCard` now uses separate select/delete buttons instead of an interactive delete control inside a selectable `role="button"` card; custom-agent delete stays named, both actions have token-based focus rings, and `AgentCard.test.tsx` guards the behavior. - -Current high-confidence production scan: no remaining focus findings in this reviewed list. The broad `outline-none` count above remains historical until an AST/lint rescan. - -## T8/T10 Transition Findings - -Guideline rule: never use `transition-all`; list properties explicitly and prefer transform/opacity for compositor-friendly animation. - -Implementation update 2026-07-09 T8/T10: `CreateGroupForm` strategy buttons now use `transition-colors`, `GroupCard`/`AgentCard` select/delete controls now use explicit transition properties, and `SuggestedAgentCards` now uses explicit color/transform transition properties for the browse affordance, so the prior `CreateGroupForm.tsx:81`, `GroupCard.tsx`, `AgentCard.tsx`, and `SuggestedAgentCards.tsx:144` rows are removed. - -Implementation update 2026-07-09 T8/T10: `LoginBriefing` workspace rows, `SpawnAgentDialog` workspace/persona buttons, and the `ChatApp` session sidebar now use explicit color or width transitions guarded by `wave-w-briefing-entrance.test.tsx`, `SpawnAgentDialog.test.tsx`, and `wave-u-chat-action-row.test.tsx`, so the prior `LoginBriefing.tsx:344`, `SpawnAgentDialog.tsx:215`, `SpawnAgentDialog.tsx:270`, and `ChatApp.tsx:948` rows are removed. - -Implementation update 2026-07-09 T8/T10: `CreateWorkspaceDialog` chip, template, storage, persona, and agent-group controls now use explicit color/transform transitions guarded by `shell-overlay-contracts.test.tsx`, so the prior `CreateWorkspaceDialog.tsx:163`, `:631`, `:653`, `:911`, `:949`, `:967`, `:1109`, `:1198`, and `:1218` rows are removed. - -Implementation update 2026-07-09 T8/T10: `WorkspaceSwitcher` rows and `PersonaSwitcher` persona/group cards now use explicit color transitions guarded by `shell-overlay-contracts.test.tsx`, so the prior `WorkspaceSwitcher.tsx:59` and `PersonaSwitcher.tsx:188`/`:320` rows are removed. - -Implementation update 2026-07-09 T8/T10: `ConnectorCard` rows, `BrandTile` shadows, and `McpCatalog` distribution/category controls now use explicit color, shadow, filter, or background/color/box-shadow transitions guarded by `phase4b-connector-hub.test.tsx` and `phase4b-mcp-hub.test.tsx`, so the prior `ConnectorCard.tsx:115`, `BrandTile.tsx:50`, and `McpCatalog.tsx:146`/`:207`/`:221` rows are removed. - -Implementation update 2026-07-09 T8/T10: `TelemetryApp` daily budget meter, `SurfaceToggle` knob, and workspace `TasksTab` delete action now use explicit width, left/background-color, or opacity/color transitions guarded by `TelemetryApp.test.tsx`, `power-primitives.test.tsx`, and `workspace-tasks-tab.test.tsx`, so the prior `TelemetryApp.tsx:222`, `power-primitives.tsx:89`, and `TasksTab.tsx:60` rows are removed. - -Implementation update 2026-07-09 T8/T10: `ArtifactCenterApp` artifact cards, `DashboardApp` workspace tiles, `HomeCockpit` recent workspace cards, and `MarketplaceApp` shelf chips now use explicit border/transform/shadow or background/color/box-shadow transitions guarded by `artifact-center-trust.test.tsx`, `DashboardApp.test.tsx`, `p2-home-desktop.test.tsx`, and `phase4b-marketplace-extend.test.tsx`, so the prior `ArtifactCenterApp.tsx:344`, `DashboardApp.tsx:207`, `HomeCockpit.tsx:449`, and `MarketplaceApp.tsx:373` rows are removed. - -```text -No remaining production `transition-all` hits in the scoped cockpit/admin/www scan. -``` - -## T8/T10 Image Findings - -All inspected image hits have `alt` or `alt=""` and explicit `width` and `height` attributes after focused fixes. The `AppShell` wallpaper at `apps/web/src/components/os/AppShell.tsx:415` already had explicit dimensions. - -Implementation update 2026-07-09 T8/T10: `SuggestedAgentCards` persona avatars and roster thumbnails now have explicit `width`/`height` attributes guarded by `SuggestedAgentCards.test.tsx`, so the prior `SuggestedAgentCards.tsx:78` and `SuggestedAgentCards.tsx:124` rows are removed. - -Implementation update 2026-07-09 T8/T10: `AgentCenterRow` list avatars now have explicit `width`/`height` attributes guarded by `phase3b-agent-center.test.tsx`, so the prior `AgentCenterRow.tsx:46` row is removed. - -Implementation update 2026-07-09 T8/T10: onboarding `ReadyStep` logo media now has explicit `width`/`height` attributes guarded by `ReadyStep.test.tsx`, so the prior `ReadyStep.tsx:19` row is removed. - -Implementation update 2026-07-09 T8/T10: `BootScreen` and `StatusBar` logo media now have explicit `width`/`height` attributes guarded by `r20-boot-reduced-motion-glow.test.tsx` and `StatusBar.test.tsx`, so the prior `BootScreen.tsx:132` and `StatusBar.tsx:111` rows are removed. - -Implementation update 2026-07-09 T8/T10: `LoginBriefing`, the `ChatApp` empty state, and `SpawnAgentDialog` persona media now have explicit `width`/`height` attributes guarded by `wave-w-briefing-entrance.test.tsx`, `wave-u-chat-action-row.test.tsx`, and `SpawnAgentDialog.test.tsx`, so the remaining `LoginBriefing.tsx:228`, `ChatApp.tsx:1070`, and `SpawnAgentDialog.tsx:276`/`:388` rows are removed. - -```text -No remaining high-confidence image-dimension findings in the scoped cockpit scan. -``` - -## T10 Form Metadata Queue - -Loose JSX scan results from the pre-fix snapshot: - -- 145 text-like controls missing `name`. -- 107 controls missing `autoComplete`. -- 115 controls without an obvious same-tag `id`, `aria-label`, or `aria-labelledby`. - -Implementation update 2026-07-08 T10: representative high-traffic metadata fixes landed for Settings model/trust/team/KVARK controls, Profile identity fields, Launcher refresh/prompt, Approvals refresh/revoke grant buttons, All Workspaces search, and Wiki search. The broad counts above are retained as historical scan output and should be regenerated by an AST/lint pass before the final T10 closeout. - -Implementation update 2026-07-09 T10: template custom-agent, agent-group creator, and group task-runner fields now have label associations, stable metadata, focus rings, and strategy pressed state, guarded by `AgentTemplateForms.test.tsx`. - -Implementation update 2026-07-09 T10: `SpawnAgentDialog` launch task/new-workspace fields, `McpCatalog` catalog search, `ArtifactCenterApp` detail editor fields, `ModelGate` cloud-key/local-pull fields, inline `CapabilityRequestCard` connector token entry, and `TelegramDigestCard` credential fields now have associated labels or accessible names plus stable `name` and `autocomplete` metadata. Focused coverage: `SpawnAgentDialog.test.tsx`, `phase4b-mcp-hub.test.tsx`, `artifact-center-trust.test.tsx`, `ModelGate.test.tsx`, `pr4-inline-capability.test.tsx`, and `TelegramDigestCard.test.tsx`. - -Implementation update 2026-07-09 T10: first-run onboarding profile name/role, workspace-name, and first-task controls now expose stable `name` and `autocomplete` metadata guarded by `WhoAreYouStep.test.tsx`, `WorkspaceCreateStep.test.tsx`, and `FirstTaskStep.test.tsx`. - -Implementation update 2026-07-09 T10: `EraseDataDialog` destructive confirmation now associates its label with the phrase field, adds stable `name`/`autocomplete="off"` metadata, and uses a token `focus-visible` ring guarded by `EraseDataDialog.test.tsx`. - -Implementation update 2026-07-09 T10: `McpScopeDialog` target-workspace select now has stable `name`/`autocomplete="off"` metadata and a token `focus-visible` ring guarded by `phase4b-mcp-hub.test.tsx`. - -Implementation update 2026-07-09 T10: `CreateWorkspaceDialog` visible setup fields, template search, template-creator AI/name fields, and folder-picker new-folder field now expose stable `name`/`autocomplete="off"` metadata and accessible labels/names guarded by `shell-overlay-contracts.test.tsx`. - -Implementation update 2026-07-09 T10: `ComplianceDashboard` report template/date controls and `ComplianceTemplateModal` create/edit fields now expose associated labels, stable `name`/`autocomplete` metadata, and token focus rings guarded by `ComplianceDashboard.test.tsx` and `compliance-template-trust.test.tsx`. - -Implementation update 2026-07-09 T10: `FilesApp` transient new-folder and inline rename fields now expose accessible names, stable `name`/`autocomplete="off"` metadata, disabled spellcheck for file names, and token focus rings guarded by `StorageAndFilesApp.test.tsx`. - -Implementation update 2026-07-09 T10: `FilesApp` bulk Move and file Properties dialogs now name their icon-only close controls, add token focus rings, and preserve the row-level Properties context menu instead of falling through to the empty-space menu; `StorageAndFilesApp.test.tsx` guards both flows. - -Implementation update 2026-07-09 T10: `AutomationCenterApp` template workspace and assist-mode controls now expose stable `name`/`autocomplete` metadata and token focus rings guarded by `phase3b-automation-center.test.tsx`. - -Implementation update 2026-07-09 T10: `MemoryTrustManage` search and correction editor now expose stable `name`/`autocomplete` metadata, and the correction editor has a token `focus-visible` ring guarded by `pr35-memory-trust-manage.test.tsx`. - -Implementation update 2026-07-09 T10: `TimelineTab` search, filter toggle, and minimum-importance slider now expose accessible names/label association, stable metadata, and token focus rings guarded by `p7-b5-error-threading.test.tsx`. - -Implementation update 2026-07-09 T10: `EvolutionTab` proposal review note now associates its visible label with the textarea, exposes stable `name`/`autocomplete` metadata, and uses a token focus ring guarded by `EvolutionTab.test.tsx`. - -Implementation update 2026-07-09 T10: `EvolutionTab` New Run modal now names the close icon, associates Target Kind, Target Name, Baseline, and Schema baseline controls with stable `id`/`name` metadata, sets select and textarea `autocomplete="off"`, and uses token focus rings guarded by `EvolutionTab.test.tsx`. - -Implementation update 2026-07-09 T10: `MemoryCard` selection checkboxes now expose memory-specific accessible names plus stable `name`/`value` metadata guarded by `MemoryCard.test.tsx`. - -Implementation update 2026-07-09 T10: `SettingsApp` Prompt Shape and `TimelineApp` event-type selects now set `autocomplete="off"` with focused coverage in `settings-trust.test.tsx` and `timeline-app.test.tsx`. - -Implementation update 2026-07-09 T10: `WikiTab` search now has an input-level token focus ring, and Obsidian/Notion export target fields now expose target-specific `name`, `autocomplete="off"`, and token focus rings guarded by `wiki-export-trust.test.tsx`. - -Implementation update 2026-07-09 T10: `UserProfileApp` Analyze Style action now has an explicit button type and token focus ring guarded by `UserProfileApp.test.tsx`. - -Implementation update 2026-07-09 T10: `ComplianceDashboard` report options and `ComplianceTemplateModal` template fields now use token `focus-visible:ring-2` focus rings guarded by `ComplianceDashboard.test.tsx` and `compliance-template-trust.test.tsx`. - -Implementation update 2026-07-09 T10: `MemoryTrustManage` search now pairs its stable metadata with a token focus ring guarded by `pr35-memory-trust-manage.test.tsx`. - -Implementation update 2026-07-09 T10: `ChatApp` message composer now pairs its stable metadata with a token focus ring guarded by `lane-c-input-power.test.tsx`. - -Implementation update 2026-07-09 T10: `ModelPilotCard` budget threshold slider now exposes an accessible name, stable `name`, and token focus ring while preserving update behavior guarded by `ModelPilotCard.test.tsx`. - -Implementation update 2026-07-09 T10: `AllWorkspacesApp` search now pairs its stable metadata with an input-level token focus ring guarded by `AllWorkspacesApp.test.tsx`. - -Implementation update 2026-07-09 T10: `ArtifactCenterApp` detail Kind select now pairs its stable metadata with a token focus ring guarded by `artifact-center-trust.test.tsx`. - -Implementation update 2026-07-09 T10: `LauncherApp` optional launch prompt now pairs its stable metadata with a token focus ring guarded by `launcher-a11y.test.tsx`. - -Representative high-traffic rows: - -```text -apps/web/src/components/os/apps/VaultApp.tsx:329 - secret name input lacks name/autocomplete and explicit label hook -apps/web/src/components/os/apps/VaultApp.tsx:361 - secret type select lacks name and explicit label hook -apps/web/src/components/os/apps/VaultApp.tsx:373 - username/email input lacks name/autocomplete and should disable spellcheck -apps/web/src/components/os/apps/VaultApp.tsx:379 - secret value password lacks name/autocomplete -apps/web/src/components/os/apps/ChatApp.tsx:1589 - chat composer textarea lacks name/autocomplete -apps/web/src/components/os/apps/agents/AgentBuilder.tsx:230 - agent name input lacks name/autocomplete -apps/web/src/components/os/apps/automations/AutomationBuilder.tsx:305 - automation name input lacks name/autocomplete -apps/web/src/components/os/apps/memory/MemoryCenterTab.tsx:406 - memory search input lacks name/autocomplete and explicit label hook -packages/admin-web/src/App.tsx:76 - team slug input lacks name/autocomplete and explicit label association -``` - -Recommended correction pattern: - -- Add `id` plus `htmlFor`, or a clear `aria-label` where visual labels are intentionally absent. -- Add stable `name` values for all real form controls. -- Add `autoComplete="off"` for non-auth/system fields and meaningful autocomplete tokens for URL, email, username, and current/new password fields. -- Use correct `type`, `inputMode`, and `spellCheck={false}` for URLs, emails, codes, tokens, and usernames. -- Keep placeholders as examples, not as the only label. - -## Locale And Date Queue - -Scoped scan found 114 `new Date(...)` / `toLocale*` hits. Some are internal sorting/parsing and some already use explicit locale constants, but the pass should standardize user-visible formatting through helpers backed by `Intl.DateTimeFormat` / `Intl.NumberFormat`. - -High-priority examples: - -```text -apps/web/src/components/os/apps/HomeCockpit.tsx:98 - user-visible date formatting is test-coupled; keep locale explicit if changed -apps/web/src/components/os/apps/TimelineApp.tsx - top scoped file by date/locale hits -apps/web/src/components/os/StatusBar.tsx - user-visible time/date area needs hydration and locale review -apps/web/src/components/os/apps/FilesApp.tsx - file dates/sizes should share one formatting helper -apps/web/src/components/os/apps/cockpit/ComplianceDashboard.tsx - compliance date filters and report dates need consistent locale semantics -``` - -## Commands Used - -```powershell -rg -n "\b(confirm|alert|prompt)\s*\(" apps/web/src apps/www packages/admin-web/src --glob '*.ts' --glob '*.tsx' -rg -n "transition-all" apps/web/src/components/os packages/admin-web/src apps/www/app --glob '*.tsx' --glob '*.ts' -rg -n "outline-none|focus:outline-none" apps/web/src/components/os packages/admin-web/src apps/www/app --glob '*.tsx' --glob '*.ts' -rg -n -A6 "`, ``, ` - - -
- - - - - ⏎ send · ⌘K commands -
- - - - - - - - - - - diff --git a/docs/design_handoff_waggle_app/design-files/screens/evolution.html b/docs/design_handoff_waggle_app/design-files/screens/evolution.html deleted file mode 100644 index e0dd525..0000000 --- a/docs/design_handoff_waggle_app/design-files/screens/evolution.html +++ /dev/null @@ -1,202 +0,0 @@ - - - - - -Waggle · Skill evolution - - - - - - -
- Moat · variation -
- - -
- Evolution — skills get better on their own -
-
- -
- -
-
-
The moat · self-improvement
-

Your skills get better on their own.

-

A skill isn't static. Waggle re-optimizes it against real outcomes — and keeps every version, with the score that earned it. You don't tune prompts; the hive does.

-
- -
-
-
-
Competitor teardown
skill · distilled by Research-synth · used in 4 workspaces
-
91%
current quality
-
-
-
- -
- -

How it improves: when a skill runs, Waggle's optimizer (GEPA) proposes refinements and a three-model judge scores them against held-out tasks. A new version only ships if it actually wins — and the old ones stay, so you can always roll back. Nothing about your data leaves the machine.

-
-
- - - -
- - - - diff --git a/docs/design_handoff_waggle_app/design-files/screens/habit.html b/docs/design_handoff_waggle_app/design-files/screens/habit.html deleted file mode 100644 index 7dfbbe2..0000000 --- a/docs/design_handoff_waggle_app/design-files/screens/habit.html +++ /dev/null @@ -1,146 +0,0 @@ - - - - - -Waggle · Momentum - - - - - - -
- Engagement · the habit loop - Momentum, not manipulation — why people come back daily -
-
- -
-
-
-
-
What makes it stick
-

The hive pulls you back.

-

Waggle gets more valuable every day you use it — and it makes that obvious. Four honest loops turn it into a daily habit: a reason to open it, a reward when you do, a visible streak, and a hive you've invested in too much to leave.

-
- -
-
→
01 · Trigger
A reason to open it

“3 things ran overnight.” A morning nudge that's always worth the tap.

-
→
02 · Action
One easy move

Continue a workspace, approve a result, ask one thing. Friction near zero.

-
→
03 · Reward
Variable payoff

You never know exactly what Waggle finished — sometimes it's a small win, sometimes a big one.

-
↺
04 · Investment
The hive grows

Every session adds memory and sharpens skills — so tomorrow is better than today.

-
- -
The four mechanics, made concrete
-
-
-

🔥 Daily streak

-

A gentle streak rewards showing up. Not a guilt trip — a quiet “you're on a roll.”

-
-
M
T
W
T
F
S
S
- 12-day streak -
-
-
-

📈 Compounding memory

-

The counter that makes leaving unthinkable. The more it knows, the more it's yours.

-
142memories in this hive
-
▲ +14 this week · your hive is in the top 8% by depth
-
-
-

✨ While you were away

-

The variable reward. Overnight work means opening Waggle is always worth it.

-
-
Teardown finished · 9 competitors
-
14 memories consolidated
-
2 artifacts waiting for you
-
-
-
-

🛎️ Gentle nudges

-

Earned attention, never spam. A nudge only when there's something real to act on.

-

Good morning, Mara. Your competitor teardown is ready, and 3 memories need a quick confirm.

-
-
- -
- -

Momentum, not manipulation. Every loop here is anchored to real value the user wants — work that actually got done, memory that actually compounds. No dark patterns, no fake urgency, no infinite feed. The habit forms because the product genuinely gets better the more you use it; we just make that legible. Streaks and nudges can always be turned off.

-
-
-
- - - - diff --git a/docs/design_handoff_waggle_app/design-files/screens/home.html b/docs/design_handoff_waggle_app/design-files/screens/home.html deleted file mode 100644 index 922a95a..0000000 --- a/docs/design_handoff_waggle_app/design-files/screens/home.html +++ /dev/null @@ -1,339 +0,0 @@ - - - - - -Waggle · Home - - - - - -
- Home · variation -
- - - -
- Editorial briefing — calm, story-led -
- -
-
- -
-
- - -
-
-
Friday · June 14 · 8:42🔥 12-day streak
-

Good morning, Mara.
You're ahead of yesterday.

-
- -
-
While you slept
-

Waggle finished the Q2 competitor teardown, folded 14 new memories into the hive, and ran into one snag worth a look.

-
- Teardown drafted · 9 competitors - 14 memories consolidated - 2 artifacts created - 1 export failed -
-
- -
Pick up where you left off
-
- -
Waggle suggests
-
- -
- - - ⌘K - -
-
- - - - - - -
- - - - diff --git a/docs/design_handoff_waggle_app/design-files/screens/ia.html b/docs/design_handoff_waggle_app/design-files/screens/ia.html deleted file mode 100644 index 4bd6f62..0000000 --- a/docs/design_handoff_waggle_app/design-files/screens/ia.html +++ /dev/null @@ -1,287 +0,0 @@ - - - - - -Waggle · Navigation - - - - - - -
- Navigation · variation -
- - -
- Calm spine — five places, depth in ⌘K -
- - -
-
- -
- - - - -
-
-
-

Home

-

Five places cover the everyday. Everything Waggle can do — the swarm, MCP servers, the optimizer, the vault — lives one keystroke away.

- -
- - -
- -
-
- - - - diff --git a/docs/design_handoff_waggle_app/design-files/screens/launcher.html b/docs/design_handoff_waggle_app/design-files/screens/launcher.html deleted file mode 100644 index ab0ce09..0000000 --- a/docs/design_handoff_waggle_app/design-files/screens/launcher.html +++ /dev/null @@ -1,245 +0,0 @@ - - - - - -Waggle · Launch agents - - - - - - -
- Launcher · variation -
- - -
- Launch — detected agents, one click into this workspace -
-
- -
- -
-
- ⌘ macOS · 7 tools scanned -
Competitive Intelligence › Launch an agent
-

Bring your own agent into this workspace

-

Open Claude Code, Cursor, or any coding agent from here and it runs wired into this workspace's memory — it recalls what the hive knows, and everything it decides flows back, with provenance. Reversible hooks, nothing leaves your machine.

-
- -
-
Launch with a task — optional, passed to agents that accept a prompt
- -
Sent to: Claude Code, Cursor · Ignored by: Claude Desktop
-
- -
Detected on this machine
-
- -
Not installed
-
- -
-

Running now · sharing this hive

-
-
-
- - - -
- - - - diff --git a/docs/design_handoff_waggle_app/design-files/screens/marketplace.html b/docs/design_handoff_waggle_app/design-files/screens/marketplace.html deleted file mode 100644 index be8125e..0000000 --- a/docs/design_handoff_waggle_app/design-files/screens/marketplace.html +++ /dev/null @@ -1,319 +0,0 @@ - - - - - -Waggle · Marketplace - - - - - - -
- Marketplace · variation -
- - -
- One place — skills, connectors & tools, agent-searchable -
-
- -
- -
-
-

Add a capability.

-

Skills, connectors, and tools — one shelf. Don't know what you need? Describe the job and let the agent pick.

-
- -
- - - -
-
- -
-
W
Waggle suggests3 of 412 · matched to your ask
-
-
-
- -
- 0 in this workspace -
- Manage in Tools → -
- -
-
-
- - - -
- -
- - - - diff --git a/docs/design_handoff_waggle_app/design-files/screens/memory-trust.html b/docs/design_handoff_waggle_app/design-files/screens/memory-trust.html deleted file mode 100644 index 491ed0c..0000000 --- a/docs/design_handoff_waggle_app/design-files/screens/memory-trust.html +++ /dev/null @@ -1,227 +0,0 @@ - - - - - -Waggle · Memory Trust - - - - - - -
- Memory Trust · view -
- - -
- Manage — forget, correct, confirm; see confidence & freshness -
-
- -
- -
-
-
Trust · the thing that makes you stay
-

Memory you can correct, age, and forget.

-

A memory that only grows is a liability. Waggle shows you how sure it is, how fresh it is, and where it came from — and lets you fix or forget anything. You're always in control of what the hive believes.

-
- -
-
142
Memories in this hive
-
128
High confidence & fresh
-
9
Stale · worth a review
-
3
Awaiting your confirm
-
- -
- - AllStaleNeeds confirmForgotten -
- -
- -
- -

Nothing is remembered behind your back. Every memory is inspectable, editable, and forgettable — and forgetting is real: it's removed from recall and from anything Waggle says next. Confidence and freshness are shown so the agent (and you) can discount what's old or shaky instead of acting on it blindly.

-
-
- - -
-
-
Provenance · accountability
-

Ask the agent “why did you do that?”

-

Any action an agent takes can be traced back to the exact memories and sources behind it — so a wrong move is diagnosable, not mysterious. If a bad memory caused it, fix the memory right from the trace.

-
- -
-
-
-
Drafted the board brief around “regulated industries”
Deck-builder · 18m ago · Q2 Board Deck
- trace #a1f9 -
-
-
Goal received

You asked: “tighten the board narrative.”

-
Recalled 3 memories

Strongest was: ⬡ mem #M-204 — “Mara wants market work to lead with the regulated-industries angle.”

confidence 94% · source: chat · Tue · still fresh
-
Cross-checked the teardown

Confirmed 2 of 3 proof points cite customer quotes ⬡ teardown.md

-
Acted

Wrote slide 6 around the regulated angle and flagged it for your review.

-
-
- - - -
-
- -
- -

Every agent action keeps its trace. The chain from goal → recalled memories → checks → action is stored with the result, so "why did you do that?" always has an answer — and the fix (correct or forget the offending memory) is one click from the explanation.

-
-
-
- -
- - - - diff --git a/docs/design_handoff_waggle_app/design-files/screens/onboarding.html b/docs/design_handoff_waggle_app/design-files/screens/onboarding.html deleted file mode 100644 index 57a3aa2..0000000 --- a/docs/design_handoff_waggle_app/design-files/screens/onboarding.html +++ /dev/null @@ -1,260 +0,0 @@ - - - - - -Waggle · Onboarding - - - - - - -
- Onboarding · jump to step -
- -
- Welcome — first run, full-screen takeover -
-
- -
-
-
- - -
-
-
W
-

Welcome to Waggle.
The workspace that remembers.

-

In two minutes we'll set up a workspace that knows you and your work — so you never start from a blank box again. Everything stays on your machine.

-
Let's set it up →
-
Local-first · no account needed to start
-
-
- - -
-
-
Step 2 · about you
-

A little about you.

-

This shapes how Waggle works for you — your personas, suggestions, and defaults. You can change any of it later.

- -
What do you do most?
-
- ResearchStrategy / execEngineering - WritingSalesLegalFinance -
-
Working...
-
- SoloSmall teamLarger org -
-
-
- - -
-
-
Step 3 · the one requirement
-

Give it a brain.

-

Waggle is model-agnostic — but it needs at least one to think with. Bring an API key, or run a model locally. You can add more and set up failover anytime.

-
Use an API keyRun it locally
- -
-
AnthropicOpenAIGoogleGroq
-
✓ valid
-
Encrypted in your local vault — never shown to a model or sent anywhere
-
- - -
-
- - -
-
-
Step 4 · bring your history
-

Start with what you already have.

-

Import past conversations and Waggle learns you on day one. Or start fresh — it learns fast either way.

-
-
CG
ChatGPTexport → import
-
Cl
Claudeexport → import
-
Cu
Cursorhistory
-
+
Start freshlearns as you go
-
-
Imported on your machine — it never leaves
-
-
- - -
-
-
Step 5 · first workspace
-

Pick a starting point.

-

A template seeds the right persona, connectors, and a few starter prompts. One click and you're in.

-
-
-
- - -
-
-
Step 6 · your first move
-

What should we start with?

-

Type the first thing you'd like help with, or pick one — your workspace opens straight into it.

-
-
-
-
- - -
- - - - diff --git a/docs/design_handoff_waggle_app/design-files/screens/platform.html b/docs/design_handoff_waggle_app/design-files/screens/platform.html deleted file mode 100644 index 7774a43..0000000 --- a/docs/design_handoff_waggle_app/design-files/screens/platform.html +++ /dev/null @@ -1,213 +0,0 @@ - - - - - -Waggle · Platform - - - - - - -
- Platform & roadmap -
- - - - -
-
-
- -
-
- - -
-
-
Ships now · Tauri
-

A real desktop app.

-

Waggle ships as a native app for Windows & macOS — built on Tauri, so it's tiny, fast, and truly local. Your hive lives on your disk; the app just opens a window onto it.

-
-
-
macOSWindows
-
-
-
-
―▢✕
-
Waggle
-
-
-
Home
Chat
Memory
Agents
Library
-
FRIDAY · 8:42

Good morning, Mara.

-
-
-
-
-
~12 MB
Install size
-
Local
Data on your disk
-
Auto-update
Signed & notarized
-
Win · Mac
Linux soon
-
-
- - -
-
-
W
-

Warming the hive…

-
waggle · v1.0 · local
-
-
Memory engine ready · 581 memories
-
Local model online · Qwen 2.5
-
Loading workspaces… 8 found
-
Restoring your last session
-
-
-
- - -
-
-
Where Waggle goes
-

One hive, everywhere you work.

-

Your memory is the constant; the surfaces multiply. Desktop today — your phone and your messaging apps next.

-
-
-
-
-
Desktop app

The full hive — native, local, fast.

macOSWindowsLinux soon
- ● Available now -
-
-
-
Browser extension

Capture context & recall memory anywhere on the web.

ChromeEdgeFirefox
- ◐ In beta -
-
-
-
Messaging

Talk to your hive from where you already chat — same memory, same agents.

WhatsAppTelegramiMessage
- Coming next -
-
-
-
Mobile

Your morning briefing and quick capture, in your pocket.

iOSAndroid
- Coming next -
-
-
- - -
-
-
404
-

This cell of the hive is empty.

-

The page you're after doesn't exist — but your memory and workspaces are right where you left them.

- -
-
-
- - - - diff --git a/docs/design_handoff_waggle_app/design-files/screens/settings.html b/docs/design_handoff_waggle_app/design-files/screens/settings.html deleted file mode 100644 index 35132d7..0000000 --- a/docs/design_handoff_waggle_app/design-files/screens/settings.html +++ /dev/null @@ -1,280 +0,0 @@ - - - - - -Waggle · Settings - - - - - - -
- Settings - Calm by default · depth when you ask for it -
- Show -
- - - -
- -
-
- -
- - -
-

Models

Pick your intelligence and a failover chain — Waggle routes between them automatically.

-
-
-
- - - - diff --git a/docs/design_handoff_waggle_app/design-files/screens/storage.html b/docs/design_handoff_waggle_app/design-files/screens/storage.html deleted file mode 100644 index 2df0507..0000000 --- a/docs/design_handoff_waggle_app/design-files/screens/storage.html +++ /dev/null @@ -1,225 +0,0 @@ - - - - - -Waggle · Storage & files - - - - - - -
- Storage · variation -
- - -
- Where it lives — the workspace, made legible -
-
- -
- -
-
-
Competitive Intelligence › Storage
-

Where this workspace lives

-

A workspace is one place on disk: its memory, its files, its artifacts. Waggle shows you exactly where — and keeps it local unless you choose to share.

-
- -
-
-
C
-
Competitive Intelligence
Local workspace · on this Mac
- ⬡ Local · private -
-
-
~/Waggle/workspaces/
-
competitive-intelligence/
-
hive.mind3.2 MB · 142 memories
-
files/12 files · 4.1 MB
-
artifacts/7 items
-
workspace.jsonconfig
-
-
- -
Three ways a workspace can live
-
-
-
-

Virtual

-
managed by Waggle
-

Files Waggle keeps for you inside the app — no folder to manage. Perfect for quick, throwaway work.

- ⬡ Only you · session -
-
- this one -
-

Local

-
a folder on your machine
-

Bound to a real folder you can open in Finder. Your agents read and write the same files you do.

- ⬡ Only you · on disk -
-
-
-

Team

-
shared, synced
-

A shared memory + file space for a team — same workspace, role-based access, synced across seats.

- ⬡ Shared with team -
-
- -
- -

Local-first, always. Memory and files for Virtual and Local workspaces never leave this machine — there's nothing for anyone to leak, subpoena, or sell. Switch a workspace to Team only when you mean to share it, and you can export or delete any workspace, whole, at any time.

-
-
- - - -
- - - - diff --git a/docs/design_handoff_waggle_app/design-files/screens/surfaces.html b/docs/design_handoff_waggle_app/design-files/screens/surfaces.html deleted file mode 100644 index d23dc8b..0000000 --- a/docs/design_handoff_waggle_app/design-files/screens/surfaces.html +++ /dev/null @@ -1,217 +0,0 @@ - - - - - -Waggle · Power surfaces - - - - - - -
- Power surfaces · ⌘K destinations - One template, every tool — clean & consistent -
these all live behind ⌘K
-
- -
- - -
-
-

Tools & connections

Everything your agents can reach — integrations, MCP servers, and skills.

- -
-
-
-
- - - - diff --git a/docs/design_handoff_waggle_app/design-files/screens/workspace.html b/docs/design_handoff_waggle_app/design-files/screens/workspace.html deleted file mode 100644 index be480e7..0000000 --- a/docs/design_handoff_waggle_app/design-files/screens/workspace.html +++ /dev/null @@ -1,338 +0,0 @@ - - - - - -Waggle · Workspace - - - - - - -
- Workspace · variation -
- - -
- Overview + tabs — calm home for a project -
-
- -
-
-
Home › Competitive Intelligence
-
-
C
-
-

Competitive Intelligence

-
- 1 agent live - 142 memories - 9 sources - updated 2h ago -
-
-
- - -
-
- -
-
Overview
-
Chat 3
-
Memory 142
-
Artifacts 7
-
Files 12
-
Team 4
-
-
- - -
-
-
-
-
-
This workspace tracks the persistent-memory competitor landscape for the Q2 board cycle. Waggle has mapped 9 rivals, pulled current pricing, and drafted a teardown — the live thread is mid-flight on turning the opening into a board brief.
-
- -
-
What Waggle knows
-
-
- -
-
Recent work
-
-
-
- -
-
-
Status
-
Agent Research-synth · live
-
Modelauto · Claude Sonnet
-
Memories142 +6 today
-
Needs review3 memories
-
- -
-
Up next
-
Board brief from teardowndraft
-
Export table → Salesforceawaiting you
-
Weekly digest17:00
-
- -
-
Team
-
-
-
-
-
- - -
- - - -
- - - - diff --git a/docs/design_handoff_waggle_app/design-files/screens/workspaces.html b/docs/design_handoff_waggle_app/design-files/screens/workspaces.html deleted file mode 100644 index 3253cfc..0000000 --- a/docs/design_handoff_waggle_app/design-files/screens/workspaces.html +++ /dev/null @@ -1,172 +0,0 @@ - - - - - -Waggle · Workspaces - - - - - - -
- Workspaces · view -
- - -
- Every workspace you have, in one place -
-
- -
-
-
-

Workspaces

- -
-

Home greets you with the day. This is the full shelf — every workspace, where it lives, and what's happening in it.

- -
- -
- All 8 - Local - Virtual - Team -
-
- -
- - -
- -

Where this lives in the app: Workspaces is one of the five places in the left rail, and it's the first thing ⌘K offers. The switcher in any workspace header opens it too — so you're never more than a click from the full shelf.

-
-
-
- - - - diff --git a/docs/design_handoff_waggle_app/design-files/styles/waggle.css b/docs/design_handoff_waggle_app/design-files/styles/waggle.css deleted file mode 100644 index cdaae37..0000000 --- a/docs/design_handoff_waggle_app/design-files/styles/waggle.css +++ /dev/null @@ -1,154 +0,0 @@ -/* ═══════════════════════════════════════════════════════════════════════ - * WAGGLE — Refreshed "Hive" Design System (concept exploration) - * A warmer, more crafted evolution of the original honey/dark theme. - * Default = dark (warm graphite). [data-theme="light"] = warm paper. - * ═══════════════════════════════════════════════════════════════════════ */ - -@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap'); - -:root { - /* ── Warm dark (the hive interior) ──────────────────────────── */ - --bg: #14110b; - --bg-2: #1a160f; - --surface: #1f1a12; - --surface-2: #272117; - --surface-3: #322a1d; - --line: #38301f; - --line-soft: #2a2417; - --line-strong: #4a4030; - - --text: #f6f1e4; - --text-2: #c8bfa9; - --text-muted: #948a73; - --text-dim: #6b6250; - - /* ── Honey (the accent — used sparingly, with intent) ───────── */ - --honey: #e9a52c; - --honey-bright: #f6c45a; - --honey-deep: #c07e16; - --honey-wash: rgba(233,165,44,0.10); - --honey-line: rgba(233,165,44,0.28); - --honey-glow: 0 0 0 1px rgba(233,165,44,0.25), 0 8px 30px -10px rgba(233,165,44,0.35); - - /* ── Refined, desaturated semantics ─────────────────────────── */ - --work: #7aa6d6; /* dusty blue — tasks / workspaces */ - --intel: #b196dd; /* muted violet — intelligence / memory */ - --healthy: #6cb78c; /* sage — complete / healthy */ - --attention: #e9a52c; /* honey — attention / automation */ - --risk: #db8068; /* terracotta — risk / failure */ - --work-wash: rgba(122,166,214,0.12); - --intel-wash: rgba(177,150,221,0.12); - --healthy-wash: rgba(108,183,140,0.12); - --risk-wash: rgba(219,128,104,0.12); - - /* ── Depth ──────────────────────────────────────────────────── */ - --shadow-sm: 0 1px 2px rgba(0,0,0,0.4); - --shadow: 0 4px 24px -8px rgba(0,0,0,0.55), 0 1px 2px rgba(0,0,0,0.4); - --shadow-lg: 0 24px 60px -20px rgba(0,0,0,0.7), 0 2px 8px rgba(0,0,0,0.4); - --shadow-pop: 0 30px 80px -24px rgba(0,0,0,0.8); - - /* ── Type ───────────────────────────────────────────────────── */ - --sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; - --serif: var(--sans); /* softened: display now uses the clean grotesk, not a book serif */ - --mono: 'JetBrains Mono', ui-monospace, monospace; - - --r-sm: 8px; - --r: 12px; - --r-lg: 18px; - --r-xl: 26px; - - color-scheme: dark; -} - -[data-theme="light"] { - --bg: #f7f1e4; - --bg-2: #f1e9d8; - --surface: #fffdf8; - --surface-2: #f6efe0; - --surface-3: #efe6d2; - --line: #e4d8be; - --line-soft: #ede3cd; - --line-strong: #d2c3a2; - - --text: #211b11; - --text-2: #5a5140; - --text-muted: #847a64; - --text-dim: #a99e85; - - --honey: #b57d12; - --honey-bright: #cf932a; - --honey-deep: #92620a; - --honey-wash: rgba(181,125,18,0.10); - --honey-line: rgba(181,125,18,0.30); - --honey-glow: 0 0 0 1px rgba(181,125,18,0.22), 0 8px 30px -12px rgba(181,125,18,0.30); - - --work: #3f72b0; - --intel: #7d57b8; - --healthy: #3c8a5f; - --attention: #b57d12; - --risk: #c0573c; - --work-wash: rgba(63,114,176,0.10); - --intel-wash: rgba(125,87,184,0.10); - --healthy-wash: rgba(60,138,95,0.10); - --risk-wash: rgba(192,87,60,0.10); - - --shadow-sm: 0 1px 2px rgba(60,45,20,0.06); - --shadow: 0 6px 24px -10px rgba(60,45,20,0.18), 0 1px 2px rgba(60,45,20,0.06); - --shadow-lg: 0 24px 60px -22px rgba(60,45,20,0.22), 0 2px 8px rgba(60,45,20,0.08); - --shadow-pop: 0 30px 80px -26px rgba(60,45,20,0.28); - - color-scheme: light; -} - -* { box-sizing: border-box; } - -body { - margin: 0; - background: var(--bg); - color: var(--text); - font-family: var(--sans); - font-size: 16px; - line-height: 1.55; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; -} - -/* ── Hex utility ────────────────────────────────────────────────── */ -.hex { clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); } - -/* ── Honeycomb texture (very subtle) ────────────────────────────── */ -.comb { - background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 18.5l26 15v30l-26 15-26-15v-30z M28 53.5l26 15v30l-26 15-26-15v-30z' fill='none' stroke='%23e9a52c' stroke-opacity='0.05' stroke-width='1'/%3E%3C/svg%3E"); -} - -/* ── Focus ──────────────────────────────────────────────────────── */ -:focus-visible { outline: 2px solid var(--honey); outline-offset: 2px; } - -::selection { background: rgba(233,165,44,0.28); color: var(--text); } - -::-webkit-scrollbar { width: 9px; height: 9px; } -::-webkit-scrollbar-track { background: transparent; } -::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 6px; border: 2px solid transparent; background-clip: padding-box; } -::-webkit-scrollbar-thumb:hover { background: var(--text-dim); background-clip: padding-box; } - -/* ── Shared atoms used across screens ───────────────────────────── */ -.mono { font-family: var(--mono); } -.serif { font-family: var(--serif); } - -.pill { - display: inline-flex; align-items: center; gap: 6px; - padding: 4px 10px; border-radius: 999px; - font-size: 12px; font-weight: 500; letter-spacing: 0.01em; - border: 1px solid var(--line); color: var(--text-2); background: var(--surface); -} - -.kbd { - font-family: var(--mono); font-size: 11px; - padding: 2px 7px; border-radius: 6px; - border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text-2); - box-shadow: 0 1px 0 var(--line); -} - -.dot { width: 7px; height: 7px; border-radius: 999px; display: inline-block; } -@keyframes breathe { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .55; transform: scale(.82);} } -.dot-live { animation: breathe 2.4s ease-in-out infinite; } diff --git a/docs/design_handoff_waggle_app/screenshots/00-landing-hero.png b/docs/design_handoff_waggle_app/screenshots/00-landing-hero.png deleted file mode 100644 index 92f3b8d..0000000 Binary files a/docs/design_handoff_waggle_app/screenshots/00-landing-hero.png and /dev/null differ diff --git a/docs/design_handoff_waggle_app/screenshots/01-home.png b/docs/design_handoff_waggle_app/screenshots/01-home.png deleted file mode 100644 index 412fbfa..0000000 Binary files a/docs/design_handoff_waggle_app/screenshots/01-home.png and /dev/null differ diff --git a/docs/design_handoff_waggle_app/screenshots/02-chat.png b/docs/design_handoff_waggle_app/screenshots/02-chat.png deleted file mode 100644 index f026f20..0000000 Binary files a/docs/design_handoff_waggle_app/screenshots/02-chat.png and /dev/null differ diff --git a/docs/design_handoff_waggle_app/screenshots/03-workspace.png b/docs/design_handoff_waggle_app/screenshots/03-workspace.png deleted file mode 100644 index fb2089b..0000000 Binary files a/docs/design_handoff_waggle_app/screenshots/03-workspace.png and /dev/null differ diff --git a/docs/design_handoff_waggle_app/screenshots/04-workspaces.png b/docs/design_handoff_waggle_app/screenshots/04-workspaces.png deleted file mode 100644 index ab5d500..0000000 Binary files a/docs/design_handoff_waggle_app/screenshots/04-workspaces.png and /dev/null differ diff --git a/docs/design_handoff_waggle_app/screenshots/05-ia-commandbar.png b/docs/design_handoff_waggle_app/screenshots/05-ia-commandbar.png deleted file mode 100644 index 247dd10..0000000 Binary files a/docs/design_handoff_waggle_app/screenshots/05-ia-commandbar.png and /dev/null differ diff --git a/docs/design_handoff_waggle_app/screenshots/06-launcher.png b/docs/design_handoff_waggle_app/screenshots/06-launcher.png deleted file mode 100644 index d5c6a53..0000000 Binary files a/docs/design_handoff_waggle_app/screenshots/06-launcher.png and /dev/null differ diff --git a/docs/design_handoff_waggle_app/screenshots/07-storage.png b/docs/design_handoff_waggle_app/screenshots/07-storage.png deleted file mode 100644 index ff32e94..0000000 Binary files a/docs/design_handoff_waggle_app/screenshots/07-storage.png and /dev/null differ diff --git a/docs/design_handoff_waggle_app/screenshots/08-surfaces.png b/docs/design_handoff_waggle_app/screenshots/08-surfaces.png deleted file mode 100644 index bfae7b2..0000000 Binary files a/docs/design_handoff_waggle_app/screenshots/08-surfaces.png and /dev/null differ diff --git a/docs/design_handoff_waggle_app/screenshots/09-marketplace.png b/docs/design_handoff_waggle_app/screenshots/09-marketplace.png deleted file mode 100644 index 9d1a23d..0000000 Binary files a/docs/design_handoff_waggle_app/screenshots/09-marketplace.png and /dev/null differ diff --git a/docs/design_handoff_waggle_app/screenshots/10-onboarding-modelgate.png b/docs/design_handoff_waggle_app/screenshots/10-onboarding-modelgate.png deleted file mode 100644 index 28de8ee..0000000 Binary files a/docs/design_handoff_waggle_app/screenshots/10-onboarding-modelgate.png and /dev/null differ diff --git a/docs/design_handoff_waggle_app/screenshots/11-settings-models.png b/docs/design_handoff_waggle_app/screenshots/11-settings-models.png deleted file mode 100644 index 4b94d73..0000000 Binary files a/docs/design_handoff_waggle_app/screenshots/11-settings-models.png and /dev/null differ diff --git a/docs/design_handoff_waggle_app/screenshots/12-evolution.png b/docs/design_handoff_waggle_app/screenshots/12-evolution.png deleted file mode 100644 index f25a1db..0000000 Binary files a/docs/design_handoff_waggle_app/screenshots/12-evolution.png and /dev/null differ diff --git a/docs/design_handoff_waggle_app/screenshots/13-auth.png b/docs/design_handoff_waggle_app/screenshots/13-auth.png deleted file mode 100644 index 3484a85..0000000 Binary files a/docs/design_handoff_waggle_app/screenshots/13-auth.png and /dev/null differ diff --git a/docs/design_handoff_waggle_app/screenshots/14-billing.png b/docs/design_handoff_waggle_app/screenshots/14-billing.png deleted file mode 100644 index b82e8ed..0000000 Binary files a/docs/design_handoff_waggle_app/screenshots/14-billing.png and /dev/null differ diff --git a/docs/design_handoff_waggle_app/screenshots/15-habit.png b/docs/design_handoff_waggle_app/screenshots/15-habit.png deleted file mode 100644 index 8314f2c..0000000 Binary files a/docs/design_handoff_waggle_app/screenshots/15-habit.png and /dev/null differ diff --git a/docs/design_handoff_waggle_app/screenshots/16-appsurfaces.png b/docs/design_handoff_waggle_app/screenshots/16-appsurfaces.png deleted file mode 100644 index e018b4c..0000000 Binary files a/docs/design_handoff_waggle_app/screenshots/16-appsurfaces.png and /dev/null differ diff --git a/docs/design_handoff_waggle_app/screenshots/17-benchmark.png b/docs/design_handoff_waggle_app/screenshots/17-benchmark.png deleted file mode 100644 index f50232b..0000000 Binary files a/docs/design_handoff_waggle_app/screenshots/17-benchmark.png and /dev/null differ diff --git a/docs/design_handoff_waggle_app/screenshots/18-platform.png b/docs/design_handoff_waggle_app/screenshots/18-platform.png deleted file mode 100644 index 398e9ff..0000000 Binary files a/docs/design_handoff_waggle_app/screenshots/18-platform.png and /dev/null differ diff --git a/docs/design_handoff_waggle_app/screenshots/19-memory-trust.png b/docs/design_handoff_waggle_app/screenshots/19-memory-trust.png deleted file mode 100644 index c68a30e..0000000 Binary files a/docs/design_handoff_waggle_app/screenshots/19-memory-trust.png and /dev/null differ diff --git a/docs/design_handoff_waggle_app/screenshots/README.md b/docs/design_handoff_waggle_app/screenshots/README.md deleted file mode 100644 index ca95d89..0000000 --- a/docs/design_handoff_waggle_app/screenshots/README.md +++ /dev/null @@ -1,34 +0,0 @@ -# Screenshots - -Reference captures of each design (dark theme, default/key view). These are visual -companions to `SCREENS.md` — the spec there is authoritative for measurements, copy, -and behavior. Every screen also supports **light mode**; toggle the ☾ button in the -live HTML to see it. - -| File | Screen | Spec § (SCREENS.md) | -|------|--------|---------------------| -| `00-landing-hero.png` | Marketing site — hero | README §9 | -| `01-home.png` | Home / Cockpit (Editorial) | §01 | -| `02-chat.png` | Chat runtime (split work-canvas) | §02 | -| `03-workspace.png` | Single workspace (Overview+tabs) | §03 | -| `04-workspaces.png` | All-workspaces index | §04 | -| `05-ia-commandbar.png` | Sidebar + ⌘K palette (open) | §05 | -| `06-launcher.png` | Launcher (AI-OS) | §06 | -| `07-storage.png` | Storage & Files | §07 | -| `08-surfaces.png` | Power surfaces (Tools) | §08 | -| `09-marketplace.png` | Marketplace (agent suggestion) | §09 | -| `10-onboarding-modelgate.png` | Onboarding — the model gate (step 3) | §10 | -| `11-settings-models.png` | Settings — Models + failover pilot | §11 | -| `12-evolution.png` | Skill evolution (version ladder) | §12 | -| `13-auth.png` | Auth (Clerk) — sign in | §13 | -| `14-billing.png` | Billing (Stripe) — plans | §14 | -| `15-habit.png` | Engagement / habit loop | §15 | -| `16-appsurfaces.png` | App surfaces (Agents) | §16 | -| `17-benchmark.png` | Benchmarks (capability matrix) | §17 | -| `18-platform.png` | Platform & roadmap (Tauri desktop) | §18 | -| `19-memory-trust.png` | Memory Trust — confidence/forget/correct/why-trace | DESIGN_POV §1 | -| `19-memory-trust.png` | Memory you can trust (the shelf) | DESIGN_POV §1 | - -> Captures are at the prototype's default viewport and show the prototype's top -> "variation" control bar — that chrome is demonstration-only (see SCREENS.md intro). -> Open the HTML files for the full, interactive, scrollable, light/dark experience. diff --git a/docs/e2e-2026-04-30-fix-log.md b/docs/e2e-2026-04-30-fix-log.md deleted file mode 100644 index ea90c76..0000000 --- a/docs/e2e-2026-04-30-fix-log.md +++ /dev/null @@ -1,606 +0,0 @@ -# E2E Support Session Fix Log — 2026-04-30 - -CC role: SUPPORT — build apps/web dev server + remain on stand-by, fix friction reports as PM tests via Chrome MCP. - -Build phase complete prior to FR #1: -- `apps/web` Vite 5.4.21 dev server live at `http://localhost:8080/` (background id `bvmhtwc59`) -- typecheck clean (`npx tsc --noEmit -p apps/web/tsconfig.json` → empty output) -- lint baseline 52E/19W left untouched per brief §1.3 + CLAUDE.md §3.3 -- Branch: `main` @ `5ec069e`, in sync with origin - ---- - -## Fix #1 — 2026-04-30 ~11:22 UTC -**Friction report:** FR #1 (P0 launch blocker) — Backend API on `127.0.0.1:3333` not running. Frontend `useWorkspaces`, `useAgentStatus`, `useNotifications`, `useOfflineStatus`, `useWaggleDance` all NetworkError. "Offline" pill shown. - -**Root cause:** Brief §1 only covered `apps/web` Vite dev. The backend Fastify is a separate workspace (`packages/server`) and was never started. No `dev:all` / `dev:backend` aggregate script in root `package.json` (only `dev` aliasing to apps/web Vite). - -**Fix (orchestration only — no code change):** -- Started `npm run dev --workspace=packages/server` in background (id `bz3s01t1b`) -- That runs `tsx watch src/local/start.ts` → `startService()` → Fastify on `127.0.0.1:3333` - -**Files changed:** none (pure startup orchestration). - -**Verification:** -- `[waggle:startup] Server listening on http://127.0.0.1:3333` -- `curl http://127.0.0.1:3333/health` → **HTTP 200** - - `status: "ok"`, `mode: "local"` - - `llm.provider: "anthropic-proxy"`, `health: "healthy"`, `detail: "Built-in Anthropic proxy (API key configured)"` - - `database.healthy: true` - - `memoryStats.frameCount: 9`, embedding coverage 100% (Xenova/all-MiniLM-L6-v2 inprocess, 1024 dims) - - `serviceHealth.watchdogRunning: true` - - `defaultModel: "claude-sonnet-4-6"` -- LiteLLM unreachable (port 4000) — **graceful fallback** to built-in Anthropic proxy as designed (`service.ts` lines 191-200). -- One advisory: `/health.offline.offline = true` since `11:22:05` — likely external-internet probe lag, not API-server-down. Frontend should reconcile after first successful adapter call. - -**PM verification:** PENDING — please refresh `http://localhost:8080/`, confirm console errors clear and "Offline" pill resolves. - -**Commit:** none — orchestration only, no source diff. This fix-log will be committed at session end as audit trail. - ---- - -## Fix #2 — 2026-04-30 ~13:54 UTC -**Friction report:** FR #2 (P0 launch blocker) — Waggle Dance dock icon crashes the window with `Cannot read properties of undefined (reading 'icon')`. ErrorBoundary shows "Waggle Dance encountered an error" with only `Close Window` available. - -**Root cause:** Schema mismatch between server-emitted signals and frontend `typeConfig` lookup. -- Frontend `WaggleSignal['type']` (in `apps/web/src/lib/types.ts`) is the narrow union `'discovery' | 'handoff' | 'insight' | 'alert' | 'coordination'`. -- Server `/api/waggle/signals` emits agent-runtime lifecycle types: `agent:started`, `agent:completed`, `tool:called` (verified live: 4 such signals already in `default-workspace`). -- `WaggleDanceApp.tsx` did `const cfg = typeConfig[signal.type]; const Icon = cfg.icon;` with no null-guard. Unknown type → `cfg = undefined` → throw → ErrorBoundary catches. - -**Fix (minimal, per PM ask):** Null-guard the lookup with a fallback config. No widening of the type union, no server change. -- Added `TypeConfigEntry` named type + `FALLBACK_TYPE_CONFIG` (Zap icon, muted color, raw `type` as label). -- Added `getTypeConfig(type: string)` helper that returns the known entry or fallback. -- Replaced 3 unsafe accesses in `WaggleDanceApp.tsx` (signal-list render, detail-pane icon, detail-pane label). -- Filter pills untouched — they iterate the constrained `filterTypes` subset, never miss. - -**Files changed:** `apps/web/src/components/os/apps/WaggleDanceApp.tsx` (+17/-4). - -**Verification:** -- `npx tsc --noEmit -p apps/web/tsconfig.json` → clean -- `npx vitest run src/lib/waggle-signals.test.ts` → **11/11 pass** -- Mental walkthrough: agent-lifecycle signals now render with Zap icon + muted color + raw type label (e.g. `agent:completed`). Click-through to detail pane works. - -**Followup (out of scope, surface for later):** API contract drift — server emits two unrelated type families. Either widen `WaggleSignal['type']` to include the agent-lifecycle union (and add typeConfig entries with proper icons/colors) OR split into `WaggleSignal` (cross-workspace dance) vs `AgentLifecycleSignal` (in-workspace runtime stream). Not blocking E2E. - -**Commit:** `ea04110` — pushed `5ec069e..ea04110 main -> main` to `origin/main`. - -**PM verification:** PENDING — please refresh `http://localhost:8080/`, click ⚡ dock icon, confirm Waggle Dance opens without crash. - ---- - -## Fix #3 — 2026-04-30 ~14:10 UTC -**Friction report:** FR #3 (P1) — Top bar shows `claude-sonnet-4-6` while Chat window dropdown shows `claude-opus-4-6`. Two model UIs disagree. - -**Root cause: a JSON-unwrap bug, not an architectural override.** -- Backend agreed with itself (verified live): - - `/api/agent/model` → `{"model":"claude-sonnet-4-6"}` - - `/api/agent/status.model` → `claude-sonnet-4-6` - - `/health.defaultModel` → `claude-sonnet-4-6` -- BUT `/api/settings.defaultModel = "claude-opus-4-6"` (persistent settings.json, last edited). -- `adapter.getModel()` did `return res.json()` and returned the whole `{model: "..."}` **object**, not the string the type signature promised. -- `ChatWindowInstance.tsx` line 156 then guards `typeof model === 'string'` → false (object) → falls through to `adapter.getSettings()` → reads `defaultModel: "claude-opus-4-6"` → renders that. -- Top bar uses `useAgentStatus` hook against `/api/agent/status` (correctly destructured) → renders `claude-sonnet-4-6`. - -So both UIs were "right" by their own light, but the adapter served Chat the wrong shape and Chat fell back to a stale persistent default. - -**Fix:** Unwrap `getModel()` correctly. Defensive: accept either shape (string or `{model}`) so future raw-string server responses keep working too. - -**Files changed:** `apps/web/src/lib/adapter.ts` (+6/-1, single function `getModel`). - -**Verification:** -- `npx tsc --noEmit -p apps/web/tsconfig.json` → clean -- Live API contracts unchanged; only client-side parsing fixed. -- After fix: ChatWindowInstance gets `"claude-sonnet-4-6"` from `/api/agent/model`, never falls through to settings, top bar + chat dropdown both render the same runtime model. - -**Followup (out of scope):** persistent `settings.defaultModel` and runtime `agent.model` can still drift if `setModel` doesn't write back to settings.json. That's a state-sync question (which one is canonical at boot?) and the right fix is to either (a) load settings.defaultModel into the agent at boot, or (b) write through to settings.json on `setModel()`. Not blocking the user-visible inconsistency PM reported. - -**Commit:** `2b6ffe1` — pushed `ea04110..2b6ffe1 main -> main`. - -**PM verification:** PENDING — please refresh `http://localhost:8080/`, open Chat, compare top-bar model breadcrumb with Chat header dropdown. Both should now read `claude-sonnet-4-6`. - ---- - -## Fix #5 — 2026-04-30 ~14:30 UTC -**Friction report:** FR #5 (P1) — Spawn Agent dialog warns *"Keys configured but no models returned — the LiteLLM proxy may not be running"* with empty model list. `/health` says built-in Anthropic proxy is healthy, so models *should* be available. - -**Root cause:** `SpawnAgentDialog.fetchModels()` only consulted `/api/litellm/models`. That endpoint returns `{models: []}` when LiteLLM is unreachable (which is the default when the system runs against the built-in Anthropic-proxy fallback — verified live: `curl /api/litellm/models → {"models":[]}`). It does not consult the runtime model state. ChatWindowInstance dodges this with a 21-item hardcoded `FALLBACK_MODELS` list, but those identifiers (`anthropic/claude-sonnet-4.6`) **do not match** runtime model IDs (`claude-sonnet-4-6`) — using them in Spawn Agent could silently mis-route the spawn. - -**Fix:** When `/api/litellm/models` returns empty, fall back to the runtime active model from `/api/agent/model` (now correctly unwrapped after Fix #3) and offer it as a single valid option. The empty-state CTA now only fires when *neither* LiteLLM nor a runtime model is available (e.g. no provider keys at all). - -**Files changed:** `apps/web/src/components/os/overlays/SpawnAgentDialog.tsx` (+13/-1, single function `fetchModels`). - -**Verification:** -- `npx tsc --noEmit -p apps/web/tsconfig.json` → clean -- `vitest run src/lib/spawn-agent-helpers.test.ts` → **9/9 pass** -- Live runtime: `/api/agent/model` → `"claude-sonnet-4-6"` (after Fix #3 unwrap), so Spawn Agent will now show one chip labelled `claude-sonnet-4-6`, no warning copy. - -**Followup (out of scope):** A real `/api/agent/models` endpoint that lists all known-good models for the active provider chain would be a cleaner architecture. ChatWindowInstance and SpawnAgentDialog would then drop their respective fallback paths and converge. Tracked as a backend-shape question, not a session blocker. - -**Commit:** `977f1ec` — pushed `2b6ffe1..977f1ec main -> main`. - -**PM verification:** PENDING — open Spawn Agent (rocket dock icon), Model section should show `claude-sonnet-4-6` chip, no "LiteLLM proxy may not be running" warning. - ---- - -## Fix #7 — 2026-04-30 ~15:00 UTC -**Friction report:** FR #7 (P2) — After closing an app window, the top bar continues showing the closed app's name until another app is clicked. - -**Root cause:** `useWindowManager.closeApp` only filters the `windows` array — it does not touch `focusedInstanceId`. The StatusBar's `focusedWindowLabel` IIFE in `Desktop.tsx` reads `wm.windows.find(w => w.instanceId === wm.focusedInstanceId)` — when the focused window is closed, this returns `undefined` and the label *should* clear, but the dangling-focus state still creates user-perceived staleness (Ctrl+` cycling, future programmatic removals, restoration races). The semantic is wrong even when the visible artifact briefly clears. - -**Fix:** Declarative refocus effect inside `useWindowManager`. Whenever `windows` or `focusedInstanceId` changes, the effect: -- Bails if no focus is set or focus still maps to a real window. -- Sets focus to `null` when no windows remain. -- Otherwise picks the highest-zIndex non-minimized remaining window (falling back to highest zIndex overall if everything is minimized) and assigns focus to it. - -This covers all current and future code paths that remove windows, not just `closeApp`. PM's acceptance criterion ("next-most-recent focused app or default") matches the highest-zIndex selection — that *is* the most-recently-foregrounded window. - -**Files changed:** `apps/web/src/hooks/useWindowManager.ts` (+19/-0, new useEffect inserted right after `closeApp`). - -**Verification:** -- `npx tsc --noEmit -p apps/web/tsconfig.json` → clean -- No existing `useWindowManager.test.*` to run; mental walkthrough: open A → close A → focus null, label clears; open A → open B → close B (top) → focus moves to A, label = A; open A → open B → close A (background) → focus stays on B (effect bails because focus already maps to B); empty array → null focus, no infinite loop (effect's first guard). -- Effect is idempotent: rerunning with same input produces same output, so React StrictMode double-invocation is safe. - -**Followup (out of scope):** No tests for `useWindowManager` exist. Adding focus-management coverage would be a worthwhile refactor — multiple session bugs (FR #7, prior cascade issues, autonomy revert) all live in this hook. - -**Commit:** `ffeedcb` — pushed `977f1ec..ffeedcb main -> main`. - -**PM verification:** PENDING — open Waggle Dance, close it, observe top bar breadcrumb. Then open A + B, close A while B is focused (background close — focus should stay on B). Then close B — top bar should clear to default within one frame. - ---- - -## Fix #8 — 2026-04-30 ~15:46 UTC -**Friction report:** FR #8 (P2) — New windows opened in unpredictable positions. No clear diagonal cascade. - -**Root cause:** `Desktop.tsx` line 397 used each app's own `appConfig[appId].pos` as the cascade base. Each app config had a different `pos.x/y` (chat=(180,40), dashboard=(100,60), settings=(250,80), memory=(120,50)…) so opening Chat → Personas → Files **teleported** rather than cascading. The shared `cascadeOffset * 30` term added the right diagonal step, but each app started from its own origin point — defeating the visual hierarchy PM wanted. - -Bonus issue: no viewport-aware wrap. On small displays a long cascade would push windows off-screen. - -**Fix:** New helper `apps/web/src/lib/window-cascade.ts` with a pure `computeCascadePosition({ cascadeOffset, viewport })` function that: -1. Centers the base on the viewport using a single typical 600×480 size — all apps cascade from the same origin regardless of their own size. -2. Computes how many full diagonal slots fit before the bottom-right window edge would exit the viewport, and wraps `cascadeOffset` modulo that count. Always at least one slot. -3. Floors the base to a 60px minimum margin so the StatusBar never gets covered, and uses safe positive modulo so a negative offset still resolves correctly. - -`Desktop.tsx` now calls the helper inline in the windows map. Per-app `appConfig.pos` becomes irrelevant for unsaved windows (saved drag positions still take priority). - -**Files changed:** -- new `apps/web/src/lib/window-cascade.ts` (+62 LOC) -- new `apps/web/src/lib/window-cascade.test.ts` (+44 LOC, 6 tests) -- `apps/web/src/components/os/Desktop.tsx` (+12/-1 — import + replaces inline pos calc) - -**Verification:** -- `npx tsc --noEmit -p apps/web/tsconfig.json` → clean -- `vitest run src/lib/window-cascade.test.ts` → **6/6 pass** (center, +30 step, wrap on small viewport, tiny-viewport floor, idempotency, negative-offset safety) -- For a 1920×1080 viewport with default 600×480 typical size: first window at (660, 300), 9th at (930, 570). Bottom-right edge of 9th window = (1530, 1050) → fits comfortably. - -**Followup (out of scope):** `appConfig.pos` is now dead data for cascade purposes — it's still consulted indirectly when a saved drag position is available via `getSavedPosition(appId)` (saved positions seed from drag events, not from `pos`). Could clean up the pos field from appConfig in a separate refactor pass; not blocking this fix. - -**Commit:** `10d4531` — pushed `ffeedcb..10d4531 main -> main`. - -**PM verification:** PENDING — open Chat, then Personas, then Files in sequence. Each window should appear 30px right + 30px down from the previous, all starting from a single centered base. On a small browser window, the cascade should wrap rather than push windows off-screen. - ---- - -## Fix #10 — 2026-04-30 ~16:00 UTC -**Friction report:** FR #10 (P1) — After `localStorage.clear(); location.reload()` and clicking "Start Working" in the welcome modal, the app shows "Running in offline mode — connect a backend server in Settings" with red Offline pill, even though the backend is healthy on `127.0.0.1:3333`. - -**Root cause analysis:** -- The constructor (`adapter.ts:70`) already falls back to `DEFAULT_SERVER = 'http://127.0.0.1:3333'` when `localStorage` is empty: `serverUrl || localStorage.getItem('waggle:server-url') || DEFAULT_SERVER`. So PM's stated hypothesis ("no fallback to default") wasn't quite right. -- BUT: the fallback only fires when localStorage returns `null`. If localStorage carries a **stale URL** from a prior Tauri build (e.g. `http://localhost:1420` for the Tauri shell) or a wrong port, the adapter sticks with that stale URL until the user manually fixes it in Settings. -- And: there's a race window where `useOfflineStatus` polls `getSystemHealth()` *before* `ServiceProvider`'s `connect()` effect lands. If the first poll misses (transient sidecar boot lag, Vite proxy warming, network blip), `setOffline(true)` runs before any retry. Without a self-recovery mechanism, the offline pill stays for ≥30s (exponential backoff first interval). - -**Fix:** Add a single auto-discovery fallback at the health-probe layer. -- New private `healthProbe()`: tries the configured `baseUrl`. On failure, if `baseUrl !== DEFAULT_SERVER`, retries against `DEFAULT_SERVER`. On fallback success, persists `DEFAULT_SERVER` to localStorage so the next cold start begins on the right URL. On total failure, restores the original `baseUrl` (so Settings still shows what the user had configured) and rethrows the **original** error (more informative than the fallback failure). -- Both `connect()` and `getSystemHealth()` route through `healthProbe()` — boot-time and offline-poll converge on the same working URL within one cycle, regardless of which effect fires first. - -**Files changed:** `apps/web/src/lib/adapter.ts` (+40/-4, single new private method + 2 callers). - -**Verification:** -- `npx tsc --noEmit -p apps/web/tsconfig.json` → clean -- No existing adapter tests to run; mental walkthrough: - - Stored URL works → first try succeeds → no fallback path → unchanged behavior. - - Stored URL stale, default works → fallback succeeds → localStorage updated with default → next reload starts on default → no extra fetch on subsequent calls. - - Both URLs fail → original baseUrl restored → original error rethrown → offline pill shows (correct: backend really is down). - - Already on DEFAULT_SERVER and it fails → no infinite loop; throws once. -- Zero overhead on the happy path. One extra fetch only when the configured URL is broken. - -**Followup (out of scope):** A real "scan local ports" auto-discovery for cases where the sidecar is running on a non-default port could supersede this. Tracked as a future hardening task; the DEFAULT_SERVER-only fallback covers the launch-day expected behavior. - -**Commit:** `ae2794e` — pushed `7a8d280..ae2794e main -> main`. - -**PM verification:** PENDING — `localStorage.clear(); location.reload();` → click Start Working → no offline pill, no offline-mode banner. Then verify localStorage shows `waggle:server-url = http://127.0.0.1:3333` was auto-persisted. - ---- - -## Fix #14 — 2026-04-30 ~16:30 UTC -**Friction report:** FR #14 (P0 launch blocker) — Click Spawn Agent → fill task + model → click "Review & Launch" → entire app crashes to black screen, page unresponsive. No agent spawned. PM noted Vite HMR was hot-updating SpawnAgentDialog 10× rapidly before the click — looked like a possible HMR race. - -**Root cause: API contract drift, not HMR.** -- Server `packages/server/src/local/routes/litellm.ts` emits `[{ model, inputPer1k, outputPer1k, provider }]`. -- Frontend `apps/web/src/lib/types.ts` `ModelPricing` interface declares `{ model, inputCostPer1k, outputCostPer1k, estimatedTokens?, estimatedCost? }`. -- `SpawnAgentDialog.tsx` confirm-step IIFE (lines 369-386) does: - ```ts - const costMin = mp.estimatedCost?.min ?? (tokensMin / 1000 * mp.inputCostPer1k); - // ... - Input: ${mp.inputCostPer1k.toFixed(4)}/1k - Output: ${mp.outputCostPer1k.toFixed(4)}/1k - ``` -- `mp.inputCostPer1k` is `undefined` → `undefined.toFixed(4)` throws `Cannot read properties of undefined (reading 'toFixed')` during render of the confirm step. -- React has no error boundary inside the Dialog content, so the whole tree unmounts. The Dialog backdrop stays = perceived "black screen". HMR thrash was a red herring; the bug is deterministic, just hidden behind the conditional render path that only triggers after Review & Launch. - -Same family of bug as FR #2 (typeConfig mismatch) and FR #3 (getModel unwrap) — server and client schemas drifted apart. - -**Fix:** Normalize the response in `adapter.getModelPricing()`. Accept either shape — `{inputCostPer1k}` or `{inputPer1k}` — so the server can converge later without breaking older frontends, and the declared `ModelPricing` contract holds for all consumers (currently only SpawnAgentDialog). - -Frontend-side normalization chosen over server-side rename because (a) blast radius is smaller — only one route on the server emits this shape, and (b) the dev server is currently live with PM driving E2E; restarting the backend would interrupt their session. - -**Files changed:** `apps/web/src/lib/adapter.ts` (+15/-2, single function `getModelPricing`). - -**Verification:** -- `npx tsc --noEmit -p apps/web/tsconfig.json` → clean -- Live API probe confirmed server keys = `[model, inputPer1k, outputPer1k, provider]`. After fix, adapter returns `[{ model, inputCostPer1k: 0.003, outputCostPer1k: 0.015, ... }]` for the seven Anthropic + OpenAI + Google entries. -- Mental walkthrough: Confirm-step IIFE now reads `mp.inputCostPer1k = 0.003` (number) → `(0.003).toFixed(4) = "0.0030"`. No throw. Cost arithmetic resolves correctly: for default 4k–16k token estimate at sonnet rates, costMin = `4 × 0.003 = 0.012`, costMax = `16 × 0.015 = 0.24`. - -**Followup (out of scope, surface for later):** Add an integration test that round-trips this contract, OR move the pricing schema into a shared `@waggle/shared` package so server emit and client consume reference the same type. Tracked as a bench-quality task; the per-route normalization unblocks launch. - -**Commit:** _pending_ - -**PM verification:** PENDING — open Spawn Agent (🚀), fill task ("Summarize the latest 3 sovereign AI memories"), Model = `claude-sonnet-4-6` (auto-inherited via FR #5), click Review & Launch. Confirm step should render with budget panel showing `~4k–16k tokens · ≈$0.01–$0.24` (sonnet rates) and `Input: $0.0030/1k Output: $0.0150/1k`. No crash. Click Confirm & Launch should then spawn the agent and emit a Waggle Dance signal. - ---- - -## Fix #13 — 2026-04-30 ~17:00 UTC -**Friction report:** FR #13 (P2 polish) — Spotlight (Ctrl+K) command index missed many apps. Searches for "telemetry", "missioncontrol", "marketplace", "scheduledjobs", "teamgovernance", "timeline", "userprofile", "voice", "events", "capabilities", "waggledance", "room" returned "No results" or only adjacent matches. - -**Root cause:** `GlobalSearch.tsx` `COMMANDS` (15 entries) had drifted from `Desktop.tsx` `appConfig` (23 entries). Eight apps were never registered: `mission-control, waggle-dance, vault, profile, events, backup, telemetry, governance`. Fuzzy matcher itself works correctly — bug was purely missing entries. - -**Fix:** Added the eight missing app entries to `COMMANDS` and imported the four new icons (`Radio, Zap, Lock, UserCircle`). Also broadened the `profile` subtitle to *"User profile, identity & preferences"* so a user typing "userprofile" reaches "My Profile" via the fuzzy character-by-character path (the original "Identity & preferences" subtitle had no `u/s/e/r` lead-in for the fuzzy traversal). Renamed `agents` title to "Personas" to match the app's actual title. - -Added an explicit comment at the top of `COMMANDS` warning future contributors that the list must stay aligned with `appConfig` in `Desktop.tsx`. Long-term fix logged: hoist `appConfig` into a shared catalog module (`apps/web/src/lib/app-catalog.ts`) and derive both lists from it. Out of scope here — minimum-blast-radius fix shipped. - -**Files changed:** `apps/web/src/components/os/overlays/GlobalSearch.tsx` (+13/-3, 4 new imports + 8 new commands + 1 subtitle expansion + 1 catalog-sync comment). - -**Verification:** -- `npx tsc --noEmit -p apps/web/tsconfig.json` → clean -- Mental walkthrough against `fuzzyMatch`: - - "telemetry" → exact substring match in "Usage & Telemetry Token + cost analytics" ✓ - - "missioncontrol" / "scheduledjobs" / "teamgovernance" / "waggledance" → char-by-char match against the spaced titles ✓ - - "userprofile" → char-by-char `u-s-e-r-p-r-o-f-i-l-e` traversal of "My Profile User profile, identity & preferences" ✓ - - "backup" → exact substring "Backup & Restore" ✓ - - "vault" / "events" / "voice" / "room" / "capabilities" → all exact substring or char-by-char ✓ - -**Followup (out of scope):** unify `appConfig` and `COMMANDS` into a shared `app-catalog` module so future apps register once. Same pattern recommendation as FR #2/#3/#14 (consolidate contracts). Tracked, not blocking. - -**Commit:** _pending_ - -**PM verification:** PENDING — Ctrl+K → type any of the 8 previously-missing app names. All should appear under "Commands" with correct icon + subtitle. - ---- - -## Fix #12 — 2026-04-30 ~17:53 UTC -**Friction report:** FR #12 (P2 polish) — Top bar breadcrumb shows "Default Workspace · Default Workspace" duplicated when persona is unset / "General Purpose" default. - -**Root cause:** `useWindowManager.getWindowTitle` for chat builds `parts = [win.workspaceName]; if (templateLabel) push; if (personaLabel) push`. For a fresh chat with `templateId='blank'` (no template label) and persona = `general-purpose` or undefined (no PERSONA_SHORT mapping → `personaLabel = undefined`), parts has only the workspace name → title = "Default Workspace". `buildStatusBarFocus.stripWorkspacePrefix` only strips a `"WS · "` prefix, so a title equal to the workspace name passes through unchanged. StatusBar then renders both segments: `· workspaceName · focusedWindowLabel ·` → visible duplication. - -**Fix:** In `buildStatusBarFocus`, after the strip + trim pass, return `null` when the cleaned label equals the workspaceName (case-insensitive). This collapses the duplicate at the breadcrumb level — no changes to window-chrome titles or persona/template logic. - -Defensive scope: works for any window type whose title happens to equal the workspaceName, not just default-persona chat. Three new unit tests cover the equality branch (exact-match, case-insensitive, and the existing strip-then-suffix path that should *not* hit the new guard). - -**Files changed:** -- `apps/web/src/lib/status-bar-focus.ts` (+7/-0, one extra branch in `buildStatusBarFocus`) -- `apps/web/src/lib/status-bar-focus.test.ts` (+19/-0, three FR #12 tests) - -**Verification:** -- `npx tsc --noEmit -p apps/web/tsconfig.json` → clean -- `vitest run src/lib/status-bar-focus.test.ts` → **14/14 pass** (11 existing + 3 new) -- Existing test "strips the workspace prefix when present" still passes — `"Marketing · Chat · Researcher"` with workspace `Marketing` cleans to `"Chat · Researcher"`, which does **not** equal `"Marketing"`, so the new guard correctly does not fire. - -**Followup (out of scope):** PM also flagged that "General Purpose" is the default persona — a separate UX choice could be to skip personaLabel for `general-purpose` even when set explicitly, OR to give it a friendly label. That's a label-policy question for `useWindowManager.PERSONA_SHORT` and out of scope for this fix. - -**Commit:** _pending_ - -**PM verification:** PENDING — `localStorage.clear(); location.reload();` → Start Working → click Chat dock icon. Top bar should read `· Default Workspace · claude-sonnet-4-6 ·` (or whatever the model is) — without the duplicated workspace segment. - ---- - -## Fix #16 — 2026-04-30 ~18:30 UTC -**Friction report:** FR #16 (P0 launch blocker) — Mission Control window crashes with `Cannot read properties of undefined (reading 'toLocaleString')` on open. Same family as FR #2 (icon undefined), FR #3 (getModel unwrap), FR #14 (pricing fields). Recurring contract-drift pattern. - -**Root cause: another field-name drift between server and frontend.** -- Frontend `FleetSession` type (`apps/web/src/lib/types.ts:220`) declares `{ duration, tokenUsage, ... }`. -- Server `/api/fleet` (`packages/server/src/local/routes/fleet.ts:23-34`) emits `{ durationMs, tokensUsed, ... }`. -- `MissionControlApp.tsx:130` does `{s.tokenUsage.toLocaleString()}` inline. `s.tokenUsage` is undefined → throw → ErrorBoundary catches. - -**Fix (defense in depth):** -1. **Adapter normalization** in `getFleet()` — same pattern as FR #14: accept either `{tokenUsage, duration}` or `{tokensUsed, durationMs}`, emit the declared `FleetSession` contract. -2. **Component-level null guards** in MissionControlApp — `(s.tokenUsage ?? 0).toLocaleString()`, `Math.round((s.duration ?? 0) / 60)`, `s.toolCount ?? 0`, `s.model ?? 'default'` — defensive even though adapter now guarantees the shape; prevents any future re-drift from re-crashing the app. - -PM was right to flag this as the exact pattern the scheduled appConfig hoist + contract test would prevent. This makes the **fourth** instance this session (FR #2, #3, #14, #16) of contract drift between server emit and client consume. The /schedule-d remediation is well-justified. - -**Files changed:** -- `apps/web/src/lib/adapter.ts` (+11/-2, normalisation in `getFleet`) -- `apps/web/src/components/os/apps/MissionControlApp.tsx` (+4/-4, defensive `?? 0` / `?? 'default'` guards) - -**Verification:** -- `npx tsc --noEmit -p apps/web/tsconfig.json` → clean -- Mental walkthrough: server emits `{tokensUsed: 0, durationMs: 1500, toolCount: 0, model: "claude-sonnet-4-6", ...}`; adapter normalises to `{tokenUsage: 0, duration: 1500, toolCount: 0, model: "claude-sonnet-4-6"}`; component renders `0 tokens · 0m · 0 tools · claude-sonnet-4-6` cleanly. Even if the adapter is bypassed somehow, the component guards prevent the crash. - -**Followup (already scheduled):** /schedule-d remediation in 1–2 weeks: hoist `appConfig` into shared catalog + add round-trip pricing/fleet/signal contract tests so this whole class of bug surfaces at build time, not in PM's E2E. - -**Commit:** _pending_ - -**PM verification:** PENDING — Ctrl+K → "missioncontrol" → Return. Mission Control should open with empty/zero-state values rendered cleanly, no crash. With actual sessions running, token counts should display correctly. - ---- - -## Fix #17 — 2026-04-30 ~18:50 UTC -**Friction report:** FR #17 (P1) — After 15-20 min of sustained use, "Offline" red pill reappears in top bar even though backend is still healthy. PM verified backend was running on 3333 throughout. - -**Root cause: client-side state-machine inertia, not backend.** - -Backend log scan showed **no 429 rate-limits, no auth failures**. The bug is purely in `useOfflineStatus`: -1. **Single failure flips offline** — no tolerance, so one transient AbortController timeout (`fetchWithTimeout` defaults to 10s) during a heavy operation immediately sets `offline = true`. -2. **Exponential backoff up to 5 minutes** — once flipped to offline, the next health probe could be deferred up to 5 min, even if the backend recovers in seconds. Pill stays stale long after backend is back. -3. **No event-driven re-checks** — no listeners for `window.online` or `visibilitychange`. WiFi reconnect or tab refocus didn't trigger a fresh probe. - -**Fix (three structural improvements to `useOfflineStatus`):** -1. **Failure tolerance**: require 2 consecutive failures before flipping `offline = true`. A single transient blip no longer surfaces the pill. -2. **Cap backoff at 60s** (was 5min). After 2 failures the schedule maxes out within one minute instead of five. -3. **Event-driven re-checks**: subscribe to `window.online` and `document.visibilitychange` → 'visible'. Each fires an immediate probe via a new `probeNow()` helper that clears the pending timer, runs `check()`, and re-schedules. - -Together: transient blips don't flip the pill, real outages still surface within 30s, and recovery is detected within ~1 HTTP roundtrip when the user refocuses the tab or reconnects. - -**Files changed:** `apps/web/src/hooks/useOfflineStatus.ts` (+45/-13, full hook rewrite with same public API). - -**Verification:** -- `npx tsc --noEmit -p apps/web/tsconfig.json` → clean -- No existing tests for this hook (followup: add coverage); mental walkthrough across scenarios: - - Single transient timeout → failCount=1 → no flip ✓ - - Two consecutive failures → failCount=2 → flip ✓ - - Sustained outage → backoff caps at 60s instead of 300s ✓ - - Tab refocus during offline → immediate probe, clears within 1 roundtrip ✓ - - WiFi reconnect → `window.online` event triggers immediate probe ✓ -- The hook's exported signature is unchanged — no consumer needs to change. - -**Followup (out of scope):** add unit tests for `useOfflineStatus` with fake timers + mocked adapter. The hook accumulated three bugs that retroactive testing would have caught earlier. - -**Commit:** _pending_ - -**PM verification:** PENDING — sustained 30+ min session: open many apps, Ctrl+K spam, switch tabs. Offline pill should appear ONLY when backend is actually unreachable. Try: `Stop-Process` the backend dev server (or Ctrl+C in its terminal) → pill should appear within 30s. Restart it → pill should clear within 60s OR within ~1 HTTP roundtrip after refocusing the tab. - ---- - -## Fix #15 Phase A — 2026-04-30 ~19:20 UTC -**Friction report:** FR #15 (P1) — Spawn Agent dialog closes after Confirm & Launch, but no agent appears in Room (`0 live`), no signal in Waggle Dance, no Timeline event. UI flow completes; backend spawn is silent no-op. - -**Root cause: triple-broken silent path.** -1. `/api/fleet/spawn` called `sessionManager.create(wsId, {persona, model})` — wrong signature (real shape is `(wsId, mind, orchestrator, tools, personaId)`). Throws inside the route, returns 500. -2. `adapter.spawnAgent` did `return res.json()` without `res.ok` check — error body was returned as if it were a successful `FleetSession`. -3. `SpawnAgentDialog.handleSpawn` did `catch { /* ignore */ }` — even if the adapter had thrown, the dialog would have swallowed it. - -Three layers of silent failure stacked. Adapter test + endpoint were both happy on the wire (HTTP 200/500 both parse as JSON), but no agent ever ran. - -**Phase A scope (this commit):** make the visible-state halves of PM acceptance work. -- ✅ Endpoint stops silently failing -- ✅ Room shows live entry within 5s of Confirm & Launch -- ✅ Waggle Dance fires `agent:spawned` signal -- ⏳ Phase B (next commit): full `runAgentLoop` dispatch so the agent actually executes the task - -**Phase A fix:** -1. **`packages/server/src/local/routes/fleet.ts`**: - - Replace `sessionManager.create(wsId, {persona, model})` with the proper `sessionManager.getOrCreate(wsId, mindFactory, orchFactory, toolsFactory, personaId)` mirroring the chat route pattern. - - Acquire workspace mind via `fastify.agentState.getWorkspaceMindDb(wsId)`; return 404 if missing. - - Resolve model up front from `body.model ?? workspace.model ?? agentState.currentModel`. - - Return 409 with descriptive error if `getOrCreate` throws (e.g., max sessions reached). - - Emit `agent:spawned` Waggle Dance signal synchronously with task preview + persona/model/sessionId metadata. - - Return shape now matches the existing adapter test fixture: `{id, workspaceId, sessionId, status, startedAt, task, persona, model}`. - - Import `emitWaggleSignal` from `./waggle-signals.js`. - -2. **`apps/web/src/lib/adapter.ts`** `spawnAgent`: - - Check `res.ok`; on failure parse the error body and throw `Error('Spawn failed (status): message')`. No more silent error-body-as-success. - -3. **`apps/web/src/components/os/overlays/SpawnAgentDialog.tsx`** `handleSpawn`: - - Replace `catch { /* ignore */ }` with toast-on-failure (`title: 'Spawn failed'`, `variant: 'destructive'`) + console.error for devtools. - - Add success toast on the happy path: `Agent spawned · Running on — see Waggle Dance for live signals`. - -**Files changed:** -- `packages/server/src/local/routes/fleet.ts` (+45/-9, route handler rewrite + signal import) -- `apps/web/src/lib/adapter.ts` (+12/-1, ok-guard in spawnAgent) -- `apps/web/src/components/os/overlays/SpawnAgentDialog.tsx` (+15/-1, useToast + try/catch with toasts) - -**Verification:** -- `npx tsc --noEmit -p apps/web/tsconfig.json` → clean -- `npx tsc --noEmit -p packages/server/tsconfig.json` → clean (one error caught + fixed: `WorkspaceConfig.personaId`, not `.persona`) -- `vitest run src/lib/adapter.spawnAgent.test.ts` → **3/3 pass** (existing contract preserved) - -**Phase B preview (not in this commit):** `/api/fleet/spawn` will additionally kick off `runAgentLoop` in fire-and-forget mode using the freshly-created session's orchestrator + tools, with the task as the user message. Signal emitters from chat (`agent:started`, `tool:called`, `agent:completed`) will fire automatically as the agent runs. Result will be persisted as a chat history entry on the workspace so the user can see it by opening Chat for that workspace. - -**Commit:** _pending_ - -**PM verification (Phase A only):** Spawn Agent → fill task → Confirm & Launch. Expected: -- Toast: "Agent spawned" (or "Spawn failed" with explanatory message if backend rejected). -- Room app: workspace shows `1 live` for the parent workspace; entry visible. -- Waggle Dance: new `agent:spawned` signal at top of feed with task preview + model badge. -- No black-screen, no silent close. Agent execution itself (token usage, tool calls, completion) is Phase B. - ---- - -## Fix #15 Phase B — 2026-04-30 ~19:35 UTC -**Friction report:** FR #15 (P1) Phase B — full agent runtime dispatch from `/api/fleet/spawn`. After Phase A delivered visible-state halves (session + signal), the agent itself still didn't execute. - -**Phase B implementation:** fire-and-forget `runAgentLoop` invocation directly in the spawn route handler. Agent runs async, signals fire as it progresses, result persists to a synthetic `spawn-{ts}` session file that the existing Chat UI can pick up from its session list. - -**Key design decisions:** -1. **Synthetic session ID `spawn-${Date.now()}`** for the persistence layer, distinct from the per-workspace session ID used by `sessionManager.getOrCreate`. This way each spawn gets its own conversation thread visible in Chat without colliding with the live chat session. -2. **Bounded `maxTurns: 10`** — sub-agents are bounded; chat allows 200 turns for deep research, but a spawned task should not loop indefinitely. -3. **`session.abortController.signal`** wired into the loop so killing the workspace session via `/api/fleet/:wsId/kill` interrupts the spawn agent too. -4. **Token usage written back via `sessionManager.addTokens(wsId, total)`** so Mission Control's live cost estimate reflects spawned-agent spend. -5. **Result persisted via existing `persistMessage` helper** — no new persistence machinery; the spawn session shows up in Chat's session picker automatically. - -**Scoped out vs full chat parity** (intentional, logged here for follow-up): -- Credential pool with provider rotation + automatic fallback chain (`primaryModel → fallbackModel → budgetModel`) — spawn uses the resolved model directly. -- Trace recorder for evolution substrate — spawn doesn't feed the GEPA/EvolveSchema training loop yet. -- `file_created` SSE events, TeamSync push on `save_memory`, `governance.allowedSources` enforcement (still not wired even in chat). -- Custom user-system-prompt + profile injection — spawn uses the orchestrator's bare `buildSystemPrompt()`. -- Smart routing via `routeMessage(message, primary, budget)` — every spawn uses the explicit model. -- Behavioral spec injection from `server.activeBehavioralSpec` — orchestrator's prompt is sufficient for Phase B. - -These are explicit followups, not bugs. Spawn is now a working autonomous sub-agent runtime; Phase C (if ever needed) is "spawn-as-rich-as-chat". - -**Files changed (Phase B alone, on top of Phase A):** -- `packages/server/src/local/routes/fleet.ts` (+72/-2): import `runAgentLoop`, `persistMessage`, `createLogger`; build minimal AgentLoopConfig; emit `agent:started/tool:called/agent:completed/agent:error` signals; persist user + assistant messages; write tokens back to sessionManager. - -**Verification (live smoke against the running dev backend):** -- `POST /api/fleet/spawn` with task `"Reply with the literal string PHASE_B_OK and nothing else."` returned 200 with `{id, workspaceId, sessionId: "spawn-1777566410538", status: "active", startedAt, task, persona, model}` immediately. -- 8s later: `GET /api/fleet` showed `count: 1, maxSessions: 3` with `tokensUsed: 13230`. Mission Control would render `1 live` for default-workspace. -- 8s later: `GET /api/waggle/signals?limit=6` showed three signals in correct order: `agent:spawned` @ `16:26:50.538` → `agent:started` @ `16:26:50.539` → `agent:completed` @ `16:26:52.187` with `inputTokens: 13221, outputTokens: 9, toolsUsed: []`. -- Session file `~/.waggle/workspaces/default-workspace/sessions/spawn-1777566410538.jsonl`: - ```json - {"type":"meta","title":null,"created":"2026-04-30T16:26:50.538Z"} - {"role":"user","content":"Reply with the literal string PHASE_B_OK and nothing else.","timestamp":"2026-04-30T16:26:50.539Z"} - {"role":"assistant","content":"PHASE_B_OK","timestamp":"2026-04-30T16:26:52.183Z"} - ``` -- Wall-clock spawn → completed: **~1.65 seconds** (real LLM call, real tool inventory, real persistence). -- `npx tsc --noEmit -p packages/server/tsconfig.json` → clean -- `vitest run packages/server/tests/local/fleet.test.ts` → **12/12 pass** (existing GET/pause/resume/kill tests unaffected; spawn test coverage is logged as followup). - -**All four PM acceptance criteria met:** -- ✅ Click Confirm & Launch → Room shows 1 live agent within 5 seconds (instant on response, < 100ms in practice). -- ✅ Waggle Dance shows new signal — actually three, in correct lifecycle order. -- ✅ Timeline event — Events app reads the same signal stream via SSE. -- ✅ Agent eventually completes and result is visible — open Chat for the workspace, pick the `spawn-{ts}` session from the session list, see user task + assistant response. - -**Commit:** _pending_ - -**PM verification path:** Spawn Agent → task = anything → Confirm & Launch. Open Chat → pick the `spawn-…` session entry from the session list (left rail) → response should be visible. Also check Waggle Dance for the three-signal lifecycle and Mission Control for the token-usage column updating. - ---- - -## Fix #19 — 2026-04-30 ~19:50 UTC -**Friction report:** FR #19 (P2 polish) — Events app shows new entries with `undefined` title + `Connected - Invalid Date`. Sixth instance of contract drift this session (FR #2/#3/#13/#14/#16/#19 share the root pattern). - -**Root cause:** `EventsApp.StepCard` (line 50-54) and `TreeNode` (line 208) accessed `step.description`, `step.type.replace('_', ' ')`, `new Date(step.timestamp).toLocaleTimeString()` with no null guards. When the event payload arrived with missing fields: -- `decodeHtmlEntities(undefined)` returned the literal string `"undefined"` (the helper coerces its input to a string via DOM round-trip). -- `step.type.replace(...)` would throw on undefined, but rendered OK for any string value, expected or not. -- `new Date(undefined).toLocaleTimeString()` returned `"Invalid Date"`. - -PM saw the first and third symptoms together. Bug is purely client-side rendering — no need to chase the backend emitter for this fix. - -**Fix:** Three pure formatter helpers at the top of `EventsApp.tsx` + replace inline calls. - -- `formatType(type)` → `'unknown'` if missing/non-string, else `type.replace(/_/g, ' ')`. -- `formatTimestamp(ts)` → `'just now'` if missing or not parseable to a real Date, else `toLocaleTimeString()`. -- `formatDescription(desc, type)` → decoded `desc` if it's a real non-`'undefined'` string, else `' event'`, else `'Unknown event'`. - -Also fixed the `stepsByTime` reduce in the replay tab to bucket unparseable-timestamp events under `'Earlier'` instead of grouping them under the literal `"Invalid Date"` date-header. - -**Files changed:** `apps/web/src/components/os/apps/EventsApp.tsx` (+34/-4, three helpers + four call-site replacements). - -**Verification:** -- `npx tsc --noEmit -p apps/web/tsconfig.json` → clean -- Mental walkthrough across the four scenarios: - - All-fields-present event → identical render to before. - - Missing description → renders `' event'` instead of `"undefined"`. - - Missing timestamp → renders `"just now"` instead of `"Invalid Date"`. - - Missing both → renders `"Unknown event · unknown · just now"`. - - Replay panel: malformed events bucket under `"Earlier"` heading instead of `"Invalid Date"`. - -**Followup (already scheduled):** the **May 14 routine** (`trig_01CaXcZvfRtFfxbREogDRbTZ`) explicitly references this contract-drift family. FR #19 adds another data point to the evidence base — the routine's contract tests should cover `/api/events` (or whatever feeds `AgentStep`) once the structural refactor lands. - -**Commit:** _pending_ - -**PM verification:** Open Events app → trigger any source of malformed events (e.g., spawn an agent and watch the live feed). All entries should render with sensible fallback strings, no `"undefined"`, no `"Invalid Date"`. - ---- - -## Fix #17 follow-up — 2026-04-30 ~20:30 UTC -**Friction report:** PM observed offline pill still stuck mid-session post-`77100b4`. Refresh cleared it; auto-recovery did not. - -**Root cause:** Two missing pieces in the previous fix: -1. After flip to offline, schedule still ramped exponentially (60s capped). Backoff makes sense before flipping; after flipping we want fast recovery detection. -2. The trigger set (`window.online` + `visibilitychange`) misses the case where the tab stays visible the whole time. PM's repro: tab stayed in foreground, alt-tabbed to a different app, came back, expected immediate clear. - -**Fix:** New `RECOVERY_INTERVAL_MS = 15_000`. After `failCount >= FAILURE_TOLERANCE`, the schedule uses this fixed 15s interval instead of the exponential-capped path. Added `window.focus` event listener as a third re-check trigger — fires whenever browser tab regains focus from another app window, even without a hidden→visible transition. - -**Files changed:** `apps/web/src/hooks/useOfflineStatus.ts` (+23/-4). - -**Verification:** `npx tsc --noEmit -p apps/web/tsconfig.json` clean. Mental walkthrough of the four scenarios in the prior FR #17 entry now yields ≤15s recovery instead of ≤60s; focus-back yields 1 HTTP roundtrip. - -**Commit:** `e1952bc`. - ---- - -## Fix #3 — 2026-04-30 ~20:50 UTC -**Friction report:** GEPA scope audit (FR #3 in `docs/GEPA-SCOPE-AUDIT-2026-04-30.md`) — chat.ts called `getPersona(activePersonaId)` which is **built-in only** (its own docstring says `/** ... built-in only — use listPersonas() for full catalog */`). Evolved personas (Faza 1 variants like `claude::gen1-v1`, plus user customs in `~/.waggle/personas/`) were silently dropped. - -**Fix:** Tiny `resolvePersona(id)` helper using `listPersonas()` (which appends custom from disk on every call). Two call sites replaced (system-prompt building + tool allowlist/denylist application). Dropped now-unused `getPersona` import. - -**Files changed:** `packages/server/src/local/routes/chat.ts` (+19/-3). - -**Note on shadow semantics:** `listPersonas` returns `[...PERSONAS, ...customs]` so `find` prefers built-ins for shadow IDs — safer default (an evolved persona accidentally deployed under a built-in ID like `coder` won't hijack production behavior). Evolved personas with derived IDs like `coder::gen1-v1` work as intended. - -**Commit:** `4556ee2`. - ---- - -## Fix #4 — 2026-04-30 ~21:10 UTC -**Friction report:** GEPA scope audit (FR #4 in `docs/GEPA-SCOPE-AUDIT-2026-04-30.md`) — `orchestrator.buildAssembledPrompt()` exists with full PromptAssembler v5 plumbing, but `agent-loop.ts` has zero references to `PROMPT_ASSEMBLER` / `isEnabled` / `buildAssembledPrompt`. The flag was a no-op in production. Faza 1's +12.5pp uplift was real **in eval** but never reached production runtime. - -**Fix:** Wire the assembler at the **call sites** (chat + spawn), not in agent-loop itself. This keeps `runAgentLoop`'s contract unchanged — the caller pre-fetches an `AssembledPrompt` and passes the resulting string as `systemPrompt`. agent-loop stays decoupled from orchestrator/persona/taskShape concerns. - -**Three integration points:** - -1. **Export**: `PromptAssembler`, `AssembledPrompt`, `AssembleOptions`, `AssembleInput`, `ScaffoldStyle` from `@waggle/agent` index. - -2. **`chat.ts` (sixth-layer assembly into the system prompt)**: - - Import `isEnabled, detectTaskShape, type AssembledPrompt`. - - `buildSystemPrompt` accepts a new optional `assembled?: AssembledPrompt | null` last param. - - When provided: `prompt += assembled.system` instead of `prompt += orch.buildSystemPrompt()` — assembler's structured Identity + Persona + State + Memory sections replace the bare orchestrator prompt. Profile, skills, workspaceNow, behavioralSpec rules, persona-via-`composePersonaPrompt`, and tone all **still layer** on top because the assembler doesn't include those. - - `responseScaffold` (when non-null) appended as `## Response shape\n`. - - Cache skipped entirely when `assembled` provided (per-turn memory recall can't be safely cached across turns). - - Call site at line 833 pre-fetches `assembled` when `isEnabled('PROMPT_ASSEMBLER')` is true. Wraps in try/catch with structured `log.info(...)` on success and `log.warn(...)` + fallback on failure — assembler errors never block a chat turn. - -3. **`fleet.ts` (spawn route)**: - - Import `isEnabled, detectTaskShape, listPersonas`. - - Inside the fire-and-forget IIFE: when flag on, `detectTaskShape(task)` → resolve persona via `listPersonas` → `await session.orchestrator.buildAssembledPrompt(task, persona, { taskShape })` → use `assembled.system` (+ scaffold) as the `runAgentLoop` systemPrompt. - - Same try/catch fallback to `session.orchestrator.buildSystemPrompt()` on error. - -**Why caller-side wiring (not agent-loop):** keeps `runAgentLoop` agnostic of PromptAssembler. The library boundary is cleaner — agent-loop stays "given a final systemPrompt + messages + tools, run the loop". Both call sites get identical structured logs (`[prompt-assembler] applied turn=… shape=… conf=… tier=… sections=… frames=… chars=…`) for observability. - -**Files changed:** -- `packages/agent/src/index.ts` (+1, exports) -- `packages/server/src/local/routes/chat.ts` (+44/-7, import + signature + body + cache + call site) -- `packages/server/src/local/routes/fleet.ts` (+30/-2, import + assembler block in spawn IIFE) - -**Verification:** -- `npx tsc --noEmit -p packages/server/tsconfig.json` → clean (caught one unexported `AssembledPrompt`, fixed) -- `npx tsc --noEmit -p packages/agent/tsconfig.json` → clean -- `vitest run` on `prompt-assembler-feature-flag.test.ts` (8 tests) + `fleet.test.ts` (12 tests) → **20/20 pass** -- Flag default OFF → byte-identical to prior behavior (no regression). - -**PM verification path** (requires backend restart with env var; HMR doesn't pick up env changes mid-process): -``` -# Stop the dev backend (Ctrl+C), restart with: -WAGGLE_PROMPT_ASSEMBLER=1 npm run dev --workspace=packages/server - -# Then either: -# (a) Send a chat message with a structured task shape -# ("compare X vs Y", "decide between A and B", "summarize this") -# (b) Spawn an agent via the dock: -# Spawn Agent → "Compare two memory frames briefly" -# -# Expected backend log lines: -# [waggle:chat] [prompt-assembler] applied turn=… shape=compare conf=0.X -# tier=mid sections=… frames=… chars=… -# [waggle:fleet] [fleet/spawn] prompt-assembler applied session=spawn-… -# shape=compare conf=0.X tier=mid sections=… frames=… chars=… -``` - -**Followup logged but out of scope here:** -- Telemetry on assembler activation rate (`prompt-assembler.applied` event into PostHog) -- A/B comparison test fixture that sends the same task to both paths and compares response quality (closes the eval-vs-prod gap formally) -- `userPrefix` of `AssembledPrompt` is currently always empty (`''`) — could be wired to prepend to user message if future evolved variants populate it. - -**Commit:** _pending_ - -**PM verification:** restart backend with `WAGGLE_PROMPT_ASSEMBLER=1`, run a structured-task-shape chat or spawn, confirm the `[prompt-assembler] applied` log line appears with shape/tier/sections fields populated. diff --git a/docs/evidence/2026-04-30-cc-sesija-A-PHASE-5-SMOKE-COMPLETE.md b/docs/evidence/2026-04-30-cc-sesija-A-PHASE-5-SMOKE-COMPLETE.md deleted file mode 100644 index b13ac78..0000000 --- a/docs/evidence/2026-04-30-cc-sesija-A-PHASE-5-SMOKE-COMPLETE.md +++ /dev/null @@ -1,166 +0,0 @@ -# PHASE 5 SESIJA A SMOKE-COMPLETE — Handoff to Track G - -**Brief:** `briefs/2026-04-30-cc-sesija-A-waggle-apps-web-integration.md` -**Date:** 2026-04-30 -**Branch:** `feature/apps-web-integration` (worktree `D:/Projects/waggle-os-sesija-A`) -**Base:** `a8283d6` (phase-5-deployment-v2) -**Status:** **SMOKE-COMPLETE** — installable Windows builds produced, ready for Track G Computer Use e2e -**Pending:** §2.6 polish pass (gated on Track A UI/UX final spec emit, Claude Design parallel work) - ---- - -## §1 — Build artifacts (Windows, this host) - -| Artifact | Path | Size | -|---|---|---| -| **MSI installer** | `app/src-tauri/target/release/bundle/msi/Waggle_0.2.0_x64_en-US.msi` | 64,651,264 bytes (~62 MB) | -| **NSIS installer** | `app/src-tauri/target/release/bundle/nsis/Waggle_0.2.0_x64-setup.exe` | 49,693,032 bytes (~47 MB) | -| Standalone exe | `app/src-tauri/target/release/waggle.exe` | (binary) | - -Build identifier (after A12): `com.egzakta.waggle`. Bundle name: `Waggle_0.2.0` (productName `Waggle` + version from tauri.conf.json). - -macOS DMG was NOT built locally (this host is Windows). CI matrix in `.github/workflows/tauri-build-pr.yml` will produce the macOS universal DMG on PR/main push. - ---- - -## §2 — Smoke validation log - -**Pipeline executed (verified exit 0):** -1. `node scripts/build-sidecar.mjs` — sidecar bundled to single JS -2. `node scripts/bundle-native-deps.mjs` — sqlite-vec + onnxruntime native deps bundled -3. `node scripts/bundle-node.mjs` — Node.js runtime bundled -4. `cd apps/web && npx vite build` — React UI built (✓ 5.14s, dist/ produced) -5. `cd app && npx tauri build` — Rust release compile (2m 40s incremental) → MSI + NSIS installers - -**Two pre-existing config bugs surfaced + fixed during §2.7:** - -a) **`tauri.conf.json:8-9`** — `beforeBuildCommand` + `beforeDevCommand` used relative path `../../apps/web` from project root (assumed CWD = `app/src-tauri/`). Tauri 2 runs hooks from the **project root** (`app/`), so the path resolved to `D:/Projects/apps/web` (one level too far up). Fixed to `../apps/web`. Both MSI and NSIS bundles produced cleanly post-fix. - -b) **`app/package.json` scripts** — `tauri:build`, `tauri:dev` invoked bare `tauri`. After `cd ../../app` mid-script, the Windows cmd PATH lost the npm-injected `node_modules/.bin` context, surfacing `'tauri' is not recognized as an internal or external command`. Fixed by replacing `tauri build` → `npx tauri build` and `tauri dev` → `npx tauri dev` in all four scripts (`tauri:build`, `tauri:build:local`, `tauri:build:win`, `tauri:build:mac`, `tauri:dev`). - -**What was NOT smoke-validated in this Bash session (handed off to Track G):** -- Visual launch of the installed binary -- Onboarding wizard render flow -- Memory app render + interactivity -- Settings → Models tab → shape selector visual behavior -- Sidecar autostart + health check from binary -- Cross-window IPC (Tauri events for streaming agent runs) -- macOS build (CI handles) - -PM Track G owns these via Computer Use against the produced .msi/.exe. The ratified handoff signal is that the build pipeline is green — runtime behavior is the next gate. - ---- - -## §3 — Sesija A 17-commit branch summary - -``` -phase-5-deployment-v2 a8283d6 - └── feature/apps-web-integration - -§2.1 Backend wiring (4 commits): - 9e0e826 A1 Tauri commands for memory + wiki + identity (HTTP proxies to sidecar) - 6df2b15 A2 TS bindings for A1 Tauri commands - 973c458 A3 streaming agent query Tauri command + JS bindings - 5d3f6cd A4 wiki Tauri commands + extract shared HTTP helpers - -§2.2 Adapter Tauri-branches + shape selector (2 commits): - f599d91 §2.2-1 adapter.ts isTauri() branches for memory + identity - c16a68e §2.2-2 Faza 1 GEPA shape selector + thread into chat body - -Sidecar follow-ups (3 commits): - 8220f76 A1.1 /api/identity sidecar route + IdentityLayer-aligned shapes - 7489767 A3.1-1 new /api/agent/run sidecar route — shape-driven retrieval loop - f90c43d A3.1-2 re-point Tauri run_agent_query to /api/agent/run - -§2.3 Onboarding (2 commits): - 8ac89a6 A10 first-launch detection via Tauri filesystem flag - bd1f1f1 A11 wire useOnboarding to Tauri first-launch flag - -A3.2 follow-up (1 commit): - 306fb4e A3.2 register Faza 1 GEPA-evolved shapes — claude-gen1-v1 + qwen-thinking-gen1-v1 - -§2.4 Build pipeline (2 commits): - 231c30a A12+A14 tauri.conf identifier + npm tauri:build:win/mac scripts - 5cba160 A13 per-PR Tauri build verification CI workflow - -§2.5 Tests (2 commits): - 9e74915 A15 sidecar route smoke + Phase 5 LOCKED scope contract tests - 8e61468 A16+A17 apps/web shape-selection + tauri-bindings + adapter Tauri-branch - -§2.7 Smoke fix (this commit): - §2.7 fix beforeBuildCommand path + npx tauri in npm scripts -``` - -**Cumulative diff stat (a8283d6..HEAD):** ~17 commits, ~25 files, ~1,800+ insertions. - ---- - -## §4 — Acceptance against brief §4 criteria - -| # | Criterion | Status | -|---|---|---| -| 1 | apps/web builds clean for Win + macOS (.msi + .dmg artifacts present) | **Win ✅** (this host); **macOS** delegated to CI matrix in `tauri-build-pr.yml` | -| 2 | Onboarding flow complete | **Wired** (existing 8-step wizard + Tauri filesystem flag durability via A10/A11); **runtime visual** = Track G | -| 3 | Memory app: recall/save/filters/provenance | **Wired** (adapter Tauri-branches via A1+A2+§2.2-1; tests pass); **runtime visual** = Track G | -| 4 | Wiki app: page list/cross-refs/markdown | **Wired** (A4 wiki Tauri commands + bindings); **runtime visual** = Track G | -| 5 | Tweaks panel: theme/density/dock/shape | **Shape selector functional** (Settings → Models tab, A3.2 closes loop); **other Tweaks** are existing components, not Sesija A scope | -| 6 | Dock: icons + centered + tier-conditional | Existing component preserved (per §2.2 reframe); polish pass = §2.6 | -| 7 | Window management: traffic lights, drag, resize | Existing AppWindow component preserved | -| 8 | Tests: all green, >70% critical path coverage | **45 NEW tests** (39 vitest + 6 cargo); 100% pass; critical paths covered (Phase 5 LOCKED scope, isTauri branching, IPC contracts, persistence, adapter routing) | -| 9 | No terminal errors in `tauri dev` for 5-min smoke | **NOT validated** in this session (Bash-only); Track G runs `npm run tauri:dev` in dev mode | -| 10 | PM signoff post Computer Use e2e | **Track G follow-up** (does not block this brief close per brief §4 note) | - -**Verdict:** §4 criteria 1, 8 fully met. Criteria 2-7 wired + tested at JS/Rust contract level — visual + interactive validation is Track G's gate. Criterion 9 deferred to Track G per same reason. Criterion 10 explicitly post-brief. - ---- - -## §5 — Open follow-ups (file in next backlog batch, NOT blocking handoff) - -- **§2.6 UI/UX polish pass** — gated on Track A spec emit (Claude Design CC parallel) -- **A12.1 — version-string drift cleanup** — Cargo.toml `0.1.0` vs tauri.conf.json `0.2.0` inconsistency; pick one + propagate -- **Faza 1 manifest naming reconciliation** — Phase 5 manifest text uses `claude::gen1-v1` (double-colon); shape `name` field uses `claude-gen1-v1` (hyphen); Sesija A aligned client side to hyphen, manifest text update is a separate doc cleanup -- **Identity questionnaire UI** — `/api/identity` POST shipped (A1.1) but UserProfileApp.tsx hasn't been wired to call it; handoff to whoever owns onboarding step 5 polish -- **Long-task multi-step chat support** — `/api/chat` (runAgentLoop) handles conversation; `/api/agent/run` (runRetrievalAgentLoop) handles one-shot retrieval. If product needs streaming long-task chat with shape support, that's a chat → runRetrievalAgentLoop refactor (rejected as A3 Option C — not recommended) - ---- - -## §6 — Architectural patterns established this Sesija (memory-worth observations per PM) - -1. **Tauri-first HTTP-fallback** — `adapter.ts` switches between Tauri IPC and HTTP fetch by `isTauri()`; `npm run dev` (browser) and Tauri builds both work against the same sidecar at port 3333. Single protocol surface, dual transport. Avoids two implementation paths drifting. - -2. **Two-path agent architecture** — `/api/chat` (`runAgentLoop`, conversation) vs `/api/agent/run` (`runRetrievalAgentLoop`, shape-driven one-shot). Distinct concerns get distinct entry points. `PromptShape` is shape-aware; chat is multi-turn — forcing shapes through chat is impedance mismatch (Option C rejected during A3.1 design). - -3. **Two-trigger CI pattern** — `tauri-build-pr.yml` (regression guard, every PR + main push, no signing, 7-day artifact retention) vs `release.yml` (signed release, tag push only, draft GitHub Release). Distinct concerns get distinct CI triggers. - -4. **Code wins over manifest text drift** — `claude::gen1-v1` (manifest convention) vs `claude-gen1-v1` (shape `.name` field). Per CLAUDE.md "if conflicts, code wins" — aligned client to hyphen format. Single source of truth = the shape's own `.name` field as registered in REGISTRY. - -5. **`renderHook` mixes React copies in this codebase** — `@testing-library/react@16` ships for React 19; apps/web is on React 18.3 → `renderHook` crashes ("useState is null"). Convention: test pure functions in vitest, defer hook-render behavior to Playwright E2E. Documented twice now (`useDeveloperMode.test.ts:13` + `shape-selection.test.ts` header). - ---- - -## §7 — Track G handoff signal - -**Build artifact for Track G Computer Use e2e:** -``` -D:/Projects/waggle-os-sesija-A/app/src-tauri/target/release/bundle/msi/Waggle_0.2.0_x64_en-US.msi -D:/Projects/waggle-os-sesija-A/app/src-tauri/target/release/bundle/nsis/Waggle_0.2.0_x64-setup.exe -``` - -**Suggested Track G test sequence (per brief A19):** -1. Install via NSIS or MSI on a non-developer Windows machine -2. First-launch onboarding wizard renders (A10 flag empty → wizard shows) -3. Click through wizard (8 steps existing) → flag written → wizard does not re-trigger -4. Open Memory app → verify frames render (uses Tauri IPC `recall_memory`) -5. Save a sample frame → verify persists (Tauri IPC `save_memory`) -6. Open Settings → Models tab → switch shape from claude-gen1-v1 to qwen-thinking-gen1-v1 → verify localStorage `waggle:selected-shape` updates -7. Start a conversation → verify SSE streaming works (existing `/api/chat` path, unchanged by Sesija A) -8. (optional) Hit `/api/agent/run` directly via dev tools → verify shape-driven retrieval loop streams progress events -9. Close app → reopen → verify wizard does not re-trigger (A10 flag persistence works) - -Friction log + iteration recommendations feed into Sesija A v2 if needed (per brief §5). - ---- - -**Sesija A enters STANDBY pending Track A UI/UX spec emit for §2.6 polish iteration.** - -End of SMOKE-COMPLETE handoff. diff --git a/docs/evidence/2026-04-30-cc-sesija-A-apps-web-integration-evidence.md b/docs/evidence/2026-04-30-cc-sesija-A-apps-web-integration-evidence.md deleted file mode 100644 index 3c7eda7..0000000 --- a/docs/evidence/2026-04-30-cc-sesija-A-apps-web-integration-evidence.md +++ /dev/null @@ -1,301 +0,0 @@ -# CC Sesija A — apps/web Integration Preflight Evidence - -**Brief:** `briefs/2026-04-30-cc-sesija-A-waggle-apps-web-integration.md` (LOCKED 2026-04-30) -**Date executed:** 2026-04-29 evening session -**Branch:** `phase-5-deployment-v2` -**HEAD:** `a8283d67dbb5e3267bda12cda88320f48ed74411` (`a8283d6` — `feat(phase-5): canary kick-off Day 0 — pickShape wiring + default 10`) -**Worktree:** `D:/Projects/waggle-os` (singular — `git worktree list` confirms only one) - ---- - -## §0 — Executive verdict - -**HALT-AND-PM.** §0 preflight cannot PASS in current working tree state. - -- §0.1 Substrate **PASSES on HEAD `a8283d6` content** (5/5 items verified via `git ls-tree` + `git grep` + `git show`). -- §0.1 Substrate **FAILS on disk** (5/5 items absent — working tree is gutted). -- §0.2 UI/UX dependency confirms parallel — no action required. -- §0.3 Cost projection probe **BLOCKED** — cannot run npm/build/agent code that isn't on disk. -- Two structural items also need PM ratification before §1 can begin even after working-tree recovery: brief's Tauri-location assumption and the CLAUDE.md ↔ apps/web React-version drift. - -PM ratification asks at end of file (4 recovery options + 2 brief-clarification questions). - ---- - -## §0.1 — Substrate readiness verification - -### §0.1.1 — `apps/web` Tauri 2.0 framework - -**HEAD `a8283d6`:** -- `apps/web/` tree present (`git ls-tree HEAD -- apps/web` returns full subtree: `src/`, `src/components/`, `src/hooks/`, `src/lib/`, `src/providers/`, `src/test/`, `src/pages/`, `src/assets/`, `src/index.css`, `src/main.tsx`, `src/App.tsx`). -- `apps/web/package.json` present. `@waggle/web@0.1.0` private workspace package. -- Tauri dependency present: **`@tauri-apps/plugin-dialog ^2.7.0`** (the only `@tauri-apps/*` dep in apps/web/package.json — sufficient as "equivalent" per brief language). -- React 18.3.1 + react-dom 18.3.1 + Vite + framer-motion + Radix UI primitives + tanstack/react-query + lucide-react — verified in package.json. -- **CRITICAL CLARIFICATION:** the actual Tauri 2.0 Rust shell does NOT live in `apps/web/src-tauri/` — it lives in `app/` (singular). Verified: `app/src-tauri/Cargo.toml` exists in HEAD, `app/src-tauri/src/`, `app/src-tauri/capabilities/`, `app/src-tauri/icons/`, `app/src-tauri/nsis/`, `app/src-tauri/resources/`, `app/src-tauri/.cargo/`. CLAUDE.md §1 confirms: "Frontend React 19 + TypeScript + Vite ... Desktop Tauri 2.0 (Rust shell)" and CLAUDE.md §2 confirms "**Note:** `app/src/` is minimal. Almost all UI code lives in `apps/web/src/`." So `apps/web` is the React UI, `app/` is the Tauri shell that bundles the apps/web build output. This invalidates brief Task A1/A12/A13/A14 path assumptions (they all reference `apps/web/src-tauri/`). See §0.1-clarification ask at end of file. -- Brief item §0.1.1 verdict on HEAD content: **PASS** (with structural caveat). - -**Disk:** -- `apps/web/` exists as empty directory. `find apps/web/ -type f` → **0 files**. -- `ls -la apps/web/` shows only `.` and `..` (mtime `Apr 29 18:21`). -- Brief item §0.1.1 verdict on disk: **FAIL** — substrate not present in working tree. - -### §0.1.2 — Agent loop with `runRetrievalAgentLoop` - -**HEAD `a8283d6`:** -- Brief allows "apps/agent (ili equivalent)". `apps/agent/` does NOT exist in HEAD (`git ls-tree HEAD -- apps/` returns only `apps/web` and `apps/www`). -- Equivalent = **`packages/agent/`**, present in HEAD with full source tree (`agent-loop.ts`, `behavioral-spec.ts`, `canary/`, `prompt-shapes/`, `agent-comms-tools.ts`, `agent-learning.ts`, etc. — 94+ TypeScript files per CLAUDE.md §2 census). -- `runRetrievalAgentLoop` defined and/or re-exported from 3 files: `packages/agent/src/agent-loop.ts`, `packages/agent/src/index.ts`, `packages/agent/src/retrieval-agent-loop.ts` (verified via `git grep -l "runRetrievalAgentLoop" HEAD -- packages/agent/src/`). -- Brief item §0.1.2 verdict on HEAD content: **PASS** (using `packages/agent` as the explicitly-allowed equivalent). - -**Disk:** -- `packages/agent/` exists as empty directory. `find packages/agent/ -type f` → **0 files**. -- Brief item §0.1.2 verdict on disk: **FAIL**. - -### §0.1.3 — `packages/hive-mind-core` or `packages/core` substrate - -**HEAD `a8283d6`:** -- `packages/hive-mind-core/` does NOT exist. (`git ls-tree HEAD -- packages/hive-mind-core/` returns empty.) Per LOCKED `decisions/2026-04-30-pre-launch-sprint-consolidation-LOCKED.md` §2, this directory will exist post-Sesija-B monorepo migration. -- `packages/core/` exists with `package.json`, `src/`, `tests/`. Brief allows `packages/core` as the alternative. -- Per CLAUDE.md §2, `packages/core/src/mind/` houses the substrate (sqlite + KG + bitemporal + frame compression — `db.ts`, `schema.ts`, `identity.ts`, `awareness.ts`, `frames.ts`, `sessions.ts`, `search.ts`, `knowledge.ts`, etc.). -- Brief item §0.1.3 verdict on HEAD content: **PASS** (via `packages/core` per brief's "ili" allowance). - -**Disk:** -- `packages/core/` exists as empty directory. `find packages/core/ -type f` → **0 files** (extrapolating from `packages/agent` pattern; spot-checked `ls -la packages/core/` separately yields the same `.` and `..` only state, mtime `Apr 29 18:21`). -- Brief item §0.1.3 verdict on disk: **FAIL**. - -### §0.1.4 — `packages/agent` exports `registerShape` (Amendment 8 native) - -**HEAD `a8283d6`:** -- `registerShape` defined and/or exported from 3 files: `packages/agent/src/index.ts`, `packages/agent/src/prompt-shapes/index.ts`, `packages/agent/src/prompt-shapes/selector.ts` (verified via `git grep -l "registerShape" HEAD -- packages/agent/src/`). -- Faza 1 closure (`decisions/2026-04-29-gepa-faza1-results.md`) confirms registerShape canonical API native to baseline `6bc2089`. Phase 5 baseline `phase-5-deployment-v2` inherits per LOCKED `decisions/2026-04-30-branch-architecture-opcija-c.md` §3 ("Phase 5 grana inherits ... registerShape canonical API (Amendment 8 native)"). -- Brief item §0.1.4 verdict on HEAD content: **PASS**. - -**Disk:** -- Same gutted state as §0.1.2. -- Brief item §0.1.4 verdict on disk: **FAIL**. - -### §0.1.5 — `apps/web/src` React + TypeScript - -**HEAD `a8283d6`:** -- `apps/web/src/` tree present per §0.1.1 verification. -- React 18.3.1 + TypeScript per package.json deps. -- Component + hook + lib + provider directories all present in HEAD. -- Per `briefs/2026-04-29-ui-ux-inventory-os-shell.md` §1: shadcn/ui + Tailwind + framer-motion + lucide-react stack confirmed. -- Brief item §0.1.5 verdict on HEAD content: **PASS**. - -**Disk:** -- `apps/web/src/` does NOT exist (`ls D:/Projects/waggle-os/apps/web/src/` → "No such file or directory"). -- Brief item §0.1.5 verdict on disk: **FAIL**. - -### §0.1 aggregate - -| Item | HEAD | Disk | -|------|------|------| -| 1. apps/web Tauri 2.0 | PASS (with `app/` shell caveat) | FAIL | -| 2. agent loop with runRetrievalAgentLoop | PASS (via packages/agent) | FAIL | -| 3. substrate (hive-mind-core or core) | PASS (via packages/core) | FAIL | -| 4. registerShape exported | PASS | FAIL | -| 5. apps/web/src React+TS | PASS | FAIL | - -**Net: §0.1 = HALT-AND-PM** — substrate is in HEAD but absent from working tree. - ---- - -## §0.2 — UI/UX spec dependency check - -Per brief §0.2: Track A (UI/UX finalize in Claude Design) is parallel and not a §1 prerequisite. CC builds stub UI in §1-§2.5 and adapts in §2.6 polish pass when Track A spec lands as `specs/2026-05-XX-ui-ux-final-spec.md`. - -**Action required:** none. Acknowledged; will use stub UI per brief §0.2 contract. - ---- - -## §0.3 — Cost projection (PM ratification 2026-04-30: synthetic projection, no live 3-call probe) - -**Status:** PASS via synthetic projection from `packages/agent/src/cost-tracker.ts` pricing tables + Sesija A work breakdown. - -**Why not the literal "3 representative end-to-end requests" live probe:** -- Sample size N=3 is statistically meaningless for p50/p95 reporting. -- Live probe would itself spend ~$0.30-0.80 against the brief's $10-15 expected envelope, eating budget for ceremony. -- Cost-tracker pricing tables are authoritative + per-model published; synthetic projection is more accurate than 3-sample empirical for budget validation. -- PM "KRENI §1" 2026-04-30 implicitly waived strict 3-call pre-flight (budget headroom is generous). - -**Per-operation cost from `cost-tracker.ts` `DEFAULT_MODEL_PRICING` + LiteLLM model census (`litellm-config.yaml`):** - -| Operation | LLM hop | Tokens (typical) | Per-call cost | -|-----------|---------|------------------|---------------| -| `recall_memory` (HybridSearch only) | none — sqlite+vec0 fused via RRF | n/a | $0 | -| `recall_memory` (with synthesis) | Sonnet 4.6 (`$0.003/1k in, $0.015/1k out`) | 1k in + 300 out | $0.0075 | -| `recall_memory` (with re-rank) | Haiku 4.5 (`$0.00025/1k in, $0.00125/1k out`) | 1k in + 100 out | $0.000375 | -| `save_memory` | none — SQL insert; embeddings via Ollama free | n/a | $0 | -| `save_memory` (API embedding fallback) | embedding model | 200 chars | ~$0.0001 | -| `compile_wiki_section` | Haiku 4.5 | 2k in + 800 out | $0.0015 | -| `search_entities` | none — KG SQL traversal | n/a | $0 | -| `get_identity` | none — file read | n/a | $0 | - -**Sesija A work breakdown × LLM cost incidence:** - -| Phase | Days | Dominant work | LLM-touching? | Projected $ | -|-------|------|---------------|---------------|-------------| -| §2.1 Backend wiring | 1-2 | Rust + TS file editing (Tauri commands, bindings, agent loop wiring, wiki) | No | $0 | -| §2.2 Stub UI | 2-4 | React component creation (Memory/Wiki/Tweaks/Dock/Window) | No | $0 | -| §2.3 Onboarding | 4 | React + Tauri command for first-launch flag | No | $0 | -| §2.4 Build pipeline | 4-5 | tauri.conf.json + GitHub Actions YAML + npm scripts | No | $0 | -| §2.5 Tests | 5-6 | Vitest unit (mocked) + component (mocked invoke) + integration (E2E may hit real LLM 1-3 calls) | Partial | $0.50-2.00 | -| §2.6 UI polish | 6-7 | Style adjustments, density, themes | No | $0 | -| §2.7 Final acceptance | 7 | `tauri build` + smoke (1-2 manual representative requests) | Partial | $0.30-1.00 | -| Buffer (unexpected: extra dev iterations, debugging real-LLM paths) | — | — | — | $1.00-2.00 | -| **Total expected** | | | | **$1.80-5.00** | -| **Worst case (E2E uses Sonnet for multi-step planning + 3-5x test re-runs during dev)** | | | | **~$10-15** | - -**Verdict:** projected $1.80-5.00 expected, $10-15 worst case. Both well under brief's $25 halt and $30 hard cap. Brief's $10-15 expected estimate validated as upper-bound rather than midpoint — actual is likely lower. **§0.3 PASS, no halt-and-PM trigger.** - -**Risk areas to monitor during §1:** -- E2E test design: ensure happy-paths use Haiku not Sonnet/Opus where feasible (5-10x cost difference per call). -- Wiki query: if compiler fallbacks to Sonnet on Haiku errors, costs jump 4-6x. Confirm Haiku-default in `packages/wiki-compiler/`. -- Long-context recall (1M context per CLAUDE.md): cap synthesis-input tokens at 4-6k to avoid surprise cost on dense workspaces. - -Cost telemetry will be tracked via `CostTracker` instance in dev runs; if any single operation exceeds $0.50, halt-and-PM with anomaly report. - ---- - -## §1 — Working tree contamination diagnostic - -### Scope of damage - -``` -git status: 1,279 files staged-as-deleted in working tree (vs HEAD a8283d6) -git stash list: empty -git ls-files --others --exclude-standard: only legacy preflight + tmp + screenshots - (none in apps/ or packages/) -git worktree list: only D:/Projects/waggle-os a8283d6 [phase-5-deployment-v2] -``` - -### Per-directory disk vs HEAD - -| Path | HEAD content | Disk content | Disk file count | -|------|--------------|--------------|-----------------| -| `app/` (Tauri Rust shell) | `Cargo.toml`, `src-tauri/`, `icons/`, `dist/`, `package.json`, etc. | **INTACT** with `node_modules/` and `dist/` | 11,814 files | -| `apps/web/` (React UI) | Full Vite/Radix/framer-motion stack | **EMPTY DIR** (mtime `Apr 29 18:21`) | 0 files | -| `apps/www/` (landing) | Likely full Vite stack (untested in this preflight; deduce from same-day mtime pattern) | Likely empty | (not measured) | -| `packages/agent/` | 94+ `.ts` files per CLAUDE.md §2 | **EMPTY DIR** | 0 files | -| `packages/core/` | `src/mind/` substrate, `src/harvest/`, `src/compliance/`, etc. | **EMPTY DIR** (assumed, pattern matches) | 0 files (assumed) | - -The 1,279-file deletion footprint is consistent with `apps/web/` + `apps/www/` + all 15 `packages/*` source directories being wiped, while `app/` (Tauri shell with its own `node_modules/`) survives. `app/` was probably skipped because it contains a heavy `node_modules/` tree (filesystem operations on `node_modules/` are slow + sometimes excluded by ad-hoc cleanup scripts). - -### Reflog evidence (recent — most recent first) - -``` -a8283d6 HEAD@{0}: commit: feat(phase-5): canary kick-off Day 0 — pickShape wiring + default 10 -19152cf HEAD@{1}: commit: docs(phase-5): §4 exit criteria coverage map + §5 cross-stream Waggle-primary -efa06df HEAD@{2}: commit: feat(phase-5): §3 monitoring infrastructure — 5 emitters + threshold detector -1889182 HEAD@{3}: commit: feat(phase-5): §2 canary toggle + deterministic per-request routing -8f46fab HEAD@{4}: commit: manifest(phase-5): §1 LOCKED scope + §0 Round 3 PASS-aggregate -11c7532 HEAD@{5}: commit: preflight(phase-5): §0.3 probe complete — HARD-CAP-EXCEED, halt-and-PM Round 2 -50393b1 HEAD@{6}: commit: quarantine(faza-1): mutation-validator + registry-injection → __faza1-closed/ -2ab47f6 HEAD@{7}: commit: preflight(phase-5): §0 evidence — PARTIAL, halt-and-PM with 3 ratification asks -6bc2089 HEAD@{8}: checkout: moving from gepa-faza-1 to phase-5-deployment-v2 -``` - -No `git reset --hard`, no `git rm`, no destructive checkout. Reflog is clean. The deletion is NOT visible in git history — it happened OUTSIDE of git operations. - -### Cause hypothesis - -Manual `rm -rf` (or equivalent file-system bulk delete) on `apps/web/`, `apps/www/`, `packages/*/src/` performed sometime around `Apr 29 18:21` (UTC, today, ~3 hours before this 2026-04-29 evening CC session opened). The session log for the prior 2026-04-29 day-session shows last-update `19:03` — so the deletion was after that session closed. - -Possible vectors (cannot verify from this preflight scope): -- Marko manually clearing working tree as part of monorepo migration prep (Sesija B). -- A hook (e.g., `mirror-memory-to-hive-mind.js` was modified per the previous session log) misbehaving. -- An ad-hoc cleanup script. -- A different worktree operation that mistakenly targeted this path. - -### What's preserved - -- HEAD `a8283d6` is intact in `.git/objects/`. All 1,279 files restorable via `git checkout`. -- `node_modules/` survives at the repo root (mentioned in `ls D:/Projects/waggle-os/`). -- `app/node_modules/` survives (intact app/ tree). -- Faza 1 archive grana `gepa-faza-1` (per Opcija C decision) lives at `6bc2089` — no risk to historical evidence. -- Tags `v0.1.0-faza1-closure` (`6bc2089`) and `v0.1.0-phase-5-day-0` (`a8283d6`) are safe on origin per LOCKED §6. - -### What's at risk (forensic concern) - -- Any uncommitted in-flight work in `apps/web/`, `apps/www/`, `packages/*/src/` — but the empty-dir state suggests there was no in-flight work there to lose (otherwise it would show up as untracked/added before the deletion). -- The `mirror-memory-to-hive-mind.js` hook from previous session is the most likely suspect for forensic interest. - ---- - -## §2 — Brief structural ambiguity (needs PM ratification) - -### §2.1 — Tauri location mismatch - -The brief assumes `apps/web/` IS the Tauri 2.0 app and writes commands in `apps/web/src-tauri/`: -- Task A1: "Create `apps/web/src-tauri/src/commands/memory.rs`" -- Task A12: "`apps/web/src-tauri/tauri.conf.json`" -- Task A13: "`apps/web/.github/workflows/build.yml`" -- Task A14: "`apps/web/package.json` scripts: `tauri dev/build`" - -Reality (per CLAUDE.md §1, §2; verified in HEAD): -- Tauri 2.0 Rust shell lives at `app/src-tauri/` (singular `app/`). -- `apps/web/` is the React UI consumed by the `app/` shell at build time. -- Two distinct package.json files: `app/package.json` (Tauri shell) and `apps/web/package.json` (React UI workspace). - -This is a fork in the road for Sesija A: - -- **Path A** — keep `app/` as Tauri shell, add Memory/Wiki Tauri commands inside `app/src-tauri/src/commands/`, write TypeScript bindings in `apps/web/src/lib/tauri-bindings.ts`. Lowest disruption, matches existing CLAUDE.md architecture. But: brief Task A1/A12/A13/A14 paths are wrong — would need to re-interpret as `app/src-tauri/...`. - -- **Path B** — collapse `app/` into `apps/web/src-tauri/` (move the Tauri shell underneath the React UI workspace). Matches brief literal path text. But: this overlaps Sesija B monorepo migration scope, doubles the structural change risk, and changes Tauri build pipeline — all without explicit Sesija B coordination. - -- **Path C** — Sesija A bypasses existing `app/` shell entirely and creates a NEW `apps/web/src-tauri/` from scratch. Two parallel Tauri shells until Sesija B reconciles. Wastes work, creates merge nightmare. - -**Recommendation:** Path A (re-interpret brief's `apps/web/src-tauri/` as `app/src-tauri/`, write bindings in `apps/web/src/lib/`). Brief intent is clearly "Tauri commands + bindings" — exact paths are implementation detail. PM ratifies before §1. - -### §2.2 — React version drift - -CLAUDE.md §1 says "Frontend React **19** + TypeScript + Vite + Tailwind 4 + base-ui/react". - -Reality in HEAD `apps/web/package.json`: `react ^18.3.1`, `react-dom ^18.3.1`, Radix UI (NOT base-ui/react), Tailwind config not yet read but likely matches the React 18 era. - -Either CLAUDE.md was updated optimistically ahead of an upgrade that never happened, OR an upgrade landed and apps/web was reverted. PM should flag this for the broader CLAUDE.md ↔ reality drift sweep, but it does NOT block §1 — Sesija A will work against actual `apps/web/package.json` content (React 18.3.1). - ---- - -## §3 — Recovery options (PM choose) - -| Option | Action | Pros | Cons | -|--------|--------|------|------| -| **A — Fresh worktree** | `git worktree add -B feature/apps-web-integration ../waggle-os-sesija-A a8283d6` then run Sesija A in the new worktree | Preserves contaminated working tree for forensic review; aligns with Opcija C parallel-worktree pattern; cleanest separation from Sesija B + C; safe rollback | Disk usage doubles; need to install `node_modules/` in new worktree (~5 min + ~2 GB) | -| **B — In-place restore (broad)** | `git -C D:/Projects/waggle-os checkout -- .` | Fast (seconds); single command | Destroys forensic evidence of what was deleted and when; cannot diagnose root cause if it recurs | -| **C — In-place hard reset** | `git -C D:/Projects/waggle-os reset --hard a8283d6` | Same as B but explicit; clears any other index drift | Same forensic loss as B; resets the index too (none currently staged so identical net effect) | -| **D — Selective restore** | `git -C D:/Projects/waggle-os checkout HEAD -- apps/ packages/` | Restores only what brief touches; preserves any non-tracked artifacts elsewhere | If `app/`, `sidecar/`, `scripts/`, `docs/` also affected (need to spot-check), still incomplete | - -**Recommendation:** **Option A** for forensic preservation + cross-stream worktree pattern hygiene. Per LOCKED `decisions/2026-04-30-branch-architecture-opcija-c.md` §4.3, "kreiraj backup granu (`-archive`) kao protection od GC" is the ratified discipline; running each Sesija in its own worktree is the natural extension. Sesija B + C will need their own worktrees anyway per their parallel scopes. - -If PM picks **A**, suggested follow-on: `git worktree add ../waggle-os-sesija-A -b feature/apps-web-integration a8283d6`, then `cd ../waggle-os-sesija-A && npm install` in the new worktree. Sesija A then operates entirely in `D:/Projects/waggle-os-sesija-A/`. - -If PM picks **B/C/D**, document the deletion event in a forensic note before destroying evidence (suggest filing under `evidence/2026-04-29-working-tree-deletion-event.md`). - ---- - -## §4 — Cross-stream coordination notes - -- **Sesija B (hive-mind monorepo migration):** Per LOCKED §2, Sesija B will create `packages/hive-mind-core/` and migrate substrate. Sesija A should NOT pre-emptively rename `packages/core/` references — keep `@waggle/core` imports as-is until Sesija B emits its breaking-change notice (per brief §5 halt-and-PM trigger). If Sesija B runs in parallel worktree (Option A pattern above), the two never collide on disk. -- **Sesija C (Gaia2 ARE setup):** Local-only, no shared paths with Sesija A. Independent. -- **Track A (UI/UX finalize):** Already accounted for in §0.2. - ---- - -## §5 — Awaiting PM ratification - -PM ratification asks (3): - -1. **Recovery option:** A / B / C / D (recommendation A). -2. **Tauri location interpretation:** Path A / B / C (recommendation A — re-interpret `apps/web/src-tauri/` as `app/src-tauri/`). -3. **Brief vs CLAUDE.md drift filing:** acknowledge React 19 / base-ui drift in CLAUDE.md as separate sweep (does NOT block Sesija A, which works against actual apps/web HEAD content). - -Once PM ratifies, §0.3 cost projection probe runs (in restored working tree) and §0 closes. Then §1 begins per brief §2.1 Task A1. - -**Spend so far:** $0 LLM (preflight is git inspection only). -**Cost cap remaining:** $30 hard / $25 halt / $10-15 expected. - ---- - -**End of preflight evidence. Sesija A halted at §0.1 pending PM ratification of recovery + Tauri-path + drift items.** diff --git a/docs/ga/GA-STATUS-2026-05-30.md b/docs/ga/GA-STATUS-2026-05-30.md deleted file mode 100644 index 88f7609..0000000 --- a/docs/ga/GA-STATUS-2026-05-30.md +++ /dev/null @@ -1,80 +0,0 @@ -# Waggle OS — Consolidated "What's Left for GA" - -**Date:** 2026-05-30 · **Baseline:** `main @ 6a526a6` (pushed, synced) · **Owner:** Marko (solo) -**Companion docs:** `PRODUCTION-PLAN.md` (5-phase roadmap) · `RECONCILIATION-2026-05-30.md` (verified residuals) · `TRUST-REPORT.md` (verified state) · `PHASE2-FAILURE-INJECTION-2026-05-30.md` - -> This supersedes the open-item lists in the companion docs where they conflict. Every "DONE" below is a commit on `origin/main`; every "OPEN" names why it's blocked (platform vs. visual vs. upstream). - ---- - -## 1. One-paragraph headline - -The **security cluster is closed** (2 real production bugs found + fixed this session, both surfaced by *running* code, not auditing it), **billing correctness is closed**, **all 5 CI gates give real signal**, **deploy manifests are correctly wired per-target**, and **failure-injection E2E + a11y + light-mode tokens** landed with regression ratchets. What remains for GA is **not codeable headlessly on this Windows host**: macOS signing/notarization + binary runtime smokes (need a Mac / signed build), and the broad light-mode Tailwind-utility migration (needs a build + human visual contrast QA). The CLI is correctly packaged but its npm publish is gated on unpublished workspace deps. **GA is close on the engineering axis; the gating work is environmental, not unknown.** - ---- - -## 2. GA gate checklist (from PRODUCTION-PLAN §1) — current truth - -| Gate | Status | Evidence | -|---|---|---| -| 5/5 CI gates real (build-web, build-packages, lint, tauri-tsc, test) | ✅ **DONE** | `ci.yml`: tsc `:29`, lint `:32`, tauri-tsc `:35`, test `:37`, build `:65` | -| Security: AV-1..5 + R2-006 + R6-005 + R1-011 closed, adversarially re-verified | ✅ **DONE** | `9f76344`, `3a4f70a`, `0e4dfa7`; + D1 `d28abed`/`99347da` | -| Billing correctness (R1-002 payment gate, AV-4) | ✅ **DONE** | `e511f04` (webhook payment_status gate); AV-4 already closed `27a98f7` | -| E2E journeys + failure-injection in CI | 🟡 **PARTIAL** | network-drop 3/3 (`25cb5c0`); harness revived (`b732a5f`); broader persona journeys exist; **no full failure-injection matrix** | -| Win signed + mac notarized installers from CI; updater verifies | 🔴 **OPEN (platform)** | R7-008 — needs Mac + signing certs | -| Web deploys to staging; live-mode Stripe round-trips; prod CORS exact-match | 🟡 **PARTIAL** | env wired (`adf607b`), CORS fail-closed (`c00232c`); **live round-trip untested** (needs a real deploy + Stripe keys) | -| drizzle 0.44→0.45; light-mode contrast audit passes; a11y basics | 🟡 **PARTIAL** | drizzle ✅ (`fb33ca8`); a11y modals ✅ (`3300b1e`); light tokens ✅ AA (`dc6090c`); **broad util migration + visual audit OPEN** | -| Commits pushed; tag cut | ✅/🟡 | all pushed; `v0.1.0-ga-hardening-phase1` tagged; **final GA tag not cut** | - ---- - -## 3. DONE this session (all on `origin/main`, 22 commits `0f6bb4c..6a526a6`) - -**Security & billing (the high-value finds):** -- 🐛 **R1-002 Stripe webhook bypass** (`e511f04`) — `checkout.session.completed` granted paid tiers on *unpaid* sessions in both handlers. Now gated on `payment_status`. TDD, 30/30 stripe green. -- 🐛 **D1 SPA-asset auth regression** (`99347da`) — D1 gated the SPA shell + static assets behind a bearer token → browsers/webview got `401 MISSING_TOKEN` on load, unbootstrappable; **bricked the hosted web deploy**. Exempted non-API GETs; auth boundary intact (negative-control tests). -- **AV-1/2/3/5, R2-006, R6-005, R1-011** (`9f76344`, `3a4f70a`, `0e4dfa7`) — network/auth boundary, dev-tier-override gate, webhook serialize, rate-limit mkdir. -- **CORS fail-closed in prod** (`c00232c`) — team server throws on missing `CORS_ORIGIN` instead of silent localhost fallback. - -**Verification infra (Phase 2):** -- **network-drop failure-injection E2E** (`25cb5c0`) — 3/3 green; SSE abort / mid-stream truncation / re-send recovery, LLM-mode-independent. -- **Harness-wide trust + revived dormant UI suite** (`b732a5f`) — `WAGGLE_TRUST_LOCALHOST` for API-contract specs; §14 UI suite was silently skipping on a dead `:8080` probe, repointed at `:3333`. -- **Repaired broken Playwright npm scripts** (`c3c569b`) — `--project=api/visual` referenced non-existent projects. - -**Perf & a11y (P4):** -- **Harvest skip-unchanged** (`da29e77`) — R3-004; `harvestSetHash` wired into the dedup path + 3 callsites. +7 tests. -- **Shared modal focus-trap** (`3300b1e`) — R5-004; reusable `useFocusTrap` on 3 modals. +5 tests. -- **Light-mode token set** (`dc6090c`) — R5-006 tokens; 4 missing status + 5 KG tokens defined, all WCAG-AA verified numerically. +12-test contrast ratchet. - -**Deploy & packaging (P3):** -- **Per-manifest env wiring** (`adf607b`) — render.yaml (sidecar) += Stripe; docker-compose (team) += CORS_ORIGIN. Corrected 2 false reconciliation claims. -- **@waggle/cli publish config** (`6a526a6`) — `files:[dist,bin]`, full metadata; pack verified 0 src/test files. - ---- - -## 4. What genuinely remains — by blocker class - -### 4a. 🔴 Platform-blocked on Windows (need a Mac and/or signed binary) -- **R7-008 — macOS signing + notarization** + updater signature verification. Developer ID + `notarytool` need macOS. -- **Windows code-signing** — *can* be wired from here once an EV cert is procured (cert procurement is the blocker, not the code). -- **Binary runtime smokes** — orphan-sidecar kill, updater URL, static/Clerk first-run, and the **D1 desktop first-run connect** (the one path still only server-level tested; revert hatch = `WAGGLE_TRUST_LOCALHOST=1`). - -### 4b. 🟡 Needs a build + human visual QA (not headless-verifiable) -- **R5-006 broad light-mode migration** — **~462 hardcoded Tailwind color utilities** (`bg-red-500` etc.) + 20 hex in `apps/web/src`. The token layer is done + AA-ratcheted; these utilities need a running build and **independent visual contrast audit** (the plan's anti-self-grading doctrine). Do not blind-rewrite. -- **Live-mode Stripe round-trip** — env is wired; needs a real staging deploy + live Stripe keys to confirm checkout + webhook end-to-end. - -### 4c. 🟢 Codeable headless — small remaining -- **Full failure-injection matrix** — only network-drop landed; capability-missing/traversal/unpaid-tier are unit-covered, sidecar-restart is architecturally infeasible (documented). A persona-journey E2E expansion is optional-not-blocking. -- **@waggle/cli end-to-end publish** — packaging done; **gated upstream**: `@waggle/core/agent/weaver` are pinned `"*"` and unpublished (404). Publish those (or bundle) to unblock. -- **§7.5 CI path-drift** — deprecated sync workflows still hard-code old `packages/core/src/mind` paths (inert, but flagged in RECONCILIATION). - ---- - -## 5. Recommended path to GA cut - -1. **On a Mac (or mac CI runner):** wire signing/notarization (R7-008), produce signed installers, run the binary runtime smokes incl. D1 desktop first-run. ← the critical-path blocker. -2. **One staging deploy:** apply `render.yaml` with real Stripe keys → confirm a live checkout + webhook round-trip; apply `docker-compose.production` with `CORS_ORIGIN` → confirm team server boots + exact-match CORS. -3. **Light-mode visual pass:** build, open light mode, audit the 462-util surface with a contrast tool; migrate failures to tokens. Independent QA, not self-graded. -4. **Then:** full verification re-run, cut the GA tag, wire Enterprise CTA → kvark.ai. - -**Bottom line:** the headless-codeable GA backlog is essentially cleared. Remaining work is gated on a **macOS/binary environment**, a **real staging deploy**, and **human visual QA** — none of which are unknowns, all of which are outside this Windows session's reach. diff --git a/docs/ga/OPERATING-MANUAL.md b/docs/ga/OPERATING-MANUAL.md deleted file mode 100644 index 7816518..0000000 --- a/docs/ga/OPERATING-MANUAL.md +++ /dev/null @@ -1,207 +0,0 @@ -# Waggle OS → GA: Solo-Dev Operating Manual - -**For:** Marko (solo on waggle-os + hive-mind; team reserved for KVARK) -**Date:** 2026-05-29 -**Companion docs:** `TRUST-REPORT.md` (empirical state), `PRODUCTION-PLAN.md` (the roadmap) - -> This manual is the *how you work* layer. It turns "I'm one person facing 62 findings + GA" -> into "I'm one person orchestrating a fleet that does the 62 findings + GA." The plan tells you -> **what** to ship; this tells you **how to make Claude Code do most of it** safely. - ---- - -## 0. The mental model shift - -You are not pair-programming. At GA scale, as a solo founder, **pair-programming is the wrong unit** — it makes you the bottleneck on every line. The unit that matches your situation is **fleet orchestration**: you author a deterministic harness, dozens of agents execute and *check each other*, and you read conclusions, not diffs. - -Three primitives do this. You already used all three implicitly this session — the goal is to make them deliberate: - -| Primitive | What it is | Your use for GA | -|---|---|---| -| **Workflow** | A JS script that fans out subagents deterministically (loops, pipelines, parallel, adversarial panels). Runs in background, returns structured data. | The engine for every multi-item job: verify N findings, fix N findings, generate N tests, sweep N components. | -| **ultracode** | A *standing opt-in*: when on, author + run a workflow for every substantive task **by default**, and adversarially verify by default. Token cost is not a constraint. | Turn ON for the thorough GA push (you chose 1–2 months / thorough). Turn OFF for chat + trivial edits. | -| **Opus 4.8 (1M ctx)** | Deepest-reasoning model; 1M context holds whole subsystems at once. `/fast` = same model, faster output. | The *reasoning* tier: architecture, security verdicts, synthesis, "is this fix bypassable?". Route mechanical work down. | - -**The doctrine that ties them together — verification-first.** Your audits keep self-grading 10/10 while admitting they never tested failure paths (UI 10/10 with "error recovery not exercised"; ~24 findings "unverified"). A fix written *and graded by the same agent* is the single biggest source of false confidence in this project. **Every claim gets independently, adversarially verified by a different agent before it counts as done.** That is exactly the read-only workflow running right now against your 31 commits. - ---- - -## 1. Model routing (don't pay Opus rates for mechanical work) - -In a workflow, `agent()` inherits the session model by default — usually correct. Override with `opts.model` **only** when confident a tier fits: - -``` -Opus 4.8 → architecture decisions · security verdicts · adversarial verify · - synthesis · "should we ship?" · anything where being wrong is expensive -Sonnet 4.6 → the default fix tier · most route/component/test edits · code review -Haiku 4.5 → mechanical bulk · rename sweeps · import fixes · "does file X contain Y?" · - the 324-hardcoded-color token swap (pattern-substitution, not judgment) -``` - -In practice: keep the workflow on the inherited model, and push *down* to Haiku for the bulk-mechanical clusters via `opts.model: 'haiku'`. Reserve explicit `opts.model: 'opus'` for verify/synthesis stages if you're running the session on Sonnet. - -`/fast` toggles faster Opus output for interactive work — use it when you're steering live; it does not downgrade the model. - ---- - -## 2. The four ready-to-run workflows for the remaining GA work - -These are copy-pasteable starting points. They assume `REPO = 'D:/Projects/waggle-os'`. The first one already ran this session — it's your template for the rest. - -### 2.1 Independent verification (READ-ONLY) — *the template* -**When:** after any fixing session, before you believe it. Re-run after the concurrent session pushes. -**Why it's safe alongside another session:** `code-reviewer` agents (no write tools), no build/test/install, writes nothing. -**Shape:** one verifier per finding-cluster → adversarial skeptics attack every "fixed" security/billing verdict. -→ See the live script at `…/workflows/scripts/waggle-prod-verification-*.js`. Reuse via `{scriptPath}`. - -### 2.2 Fix-execution (WORKTREE-ISOLATED) — *the only safe way to mutate while a session is live* -**When:** to close residual/regressed findings the Trust Report surfaces. -**Key safety:** `isolation: 'worktree'` gives each fixing agent its own git worktree, so parallel fixes never collide — with each other *or* with your other session's tree. - -```js -export const meta = { - name: 'waggle-fix-residuals', - description: 'Close residual findings on isolated worktrees; each fix self-verifies before returning', - phases: [{ title: 'Fix' }, { title: 'Verify' }], -} -const REPO = 'D:/Projects/waggle-os' -// residuals = the findings TRUST-REPORT.md marks not_fixed / partial / regressed -const residuals = args?.residuals || [] // pass via Workflow({args:{residuals:[...]}}) - -const FIX = { type:'object', additionalProperties:false, properties:{ - id:{type:'string'}, changed:{type:'array',items:{type:'string'}}, - summary:{type:'string'}, selfTest:{type:'string'} }, required:['id','summary'] } -const VERDICT = { type:'object', additionalProperties:false, properties:{ - id:{type:'string'}, verdict:{type:'string',enum:['fixed','partial','not_fixed']}, - evidence:{type:'string'} }, required:['id','verdict','evidence'] } - -const results = await pipeline(residuals, - // stage 1: fix on an isolated worktree (Sonnet is fine; push security to Opus) - (f) => agent( - `On ${REPO}: implement the prescribed fix for ${f.id} ("${f.prescribed}"). `+ - `Make the SMALLEST correct change. Add/extend a test that fails before and passes after. `+ - `Run only the narrowest relevant vitest file. Return what you changed.`, - { label:'fix:'+f.id, phase:'Fix', schema:FIX, isolation:'worktree', - model: /R1-|R2-|R6-|R9-/.test(f.id) ? 'opus' : undefined }), - // stage 2: a DIFFERENT agent verifies the fix (no worktree; read the diff) - (fix, f) => agent( - `Independently verify fix for ${f.id}. Read the changed files; confirm the prescribed `+ - `behavior holds and find any bypass. Be adversarial.`, - { label:'verify:'+f.id, phase:'Verify', schema:VERDICT, agentType:'code-reviewer' }) - .then(v => ({ ...v, fix }))) - -return results.filter(Boolean) -``` -> You review the returned diffs, then cherry-pick/merge the worktree branches yourself. Agents propose; you commit. - -### 2.3 E2E + synthetic-failure generation — *kills the 10/10s structurally* -**When:** to convert the audit's biggest admitted gap ("zero browser E2E; error-recovery untested") into real coverage. -**Shape:** discover the critical user journeys + the untested failure paths → generate a Playwright spec per journey and a failure-injection test per path. - -```js -export const meta = { name:'waggle-e2e-synth', description:'Generate Playwright journeys + failure-injection tests for untested paths', phases:[{title:'Discover'},{title:'Generate'}] } -const REPO='D:/Projects/waggle-os' -const SURFACES = { type:'object', additionalProperties:false, properties:{ - journeys:{type:'array',items:{type:'object',additionalProperties:false, - properties:{name:{type:'string'},steps:{type:'string'},failureModes:{type:'string'}}, - required:['name','steps']}} }, required:['journeys'] } - -phase('Discover') -const map = await agent( - `Read apps/web routing + the 5 personas in docs/ui-ux-audit-2026-05-27/PERSONAS.md. `+ - `List the critical user journeys and, for each, the failure modes NOT covered by tests `+ - `(network drop mid-stream, capability-missing hard error, traversal-rejected, unpaid-tier gate).`, - { schema:SURFACES, agentType:'code-reviewer' }) - -phase('Generate') -await parallel(map.journeys.map(j => () => - agent(`Write a Playwright spec for journey "${j.name}" (steps: ${j.steps}) AND a `+ - `failure-injection test for: ${j.failureModes}. Match the existing playwright.config.ts `+ - `project layout. Place under tests/e2e/. Return the file content only — DO NOT run it.`, - { label:'spec:'+j.name, isolation:'worktree', schema:{type:'object',additionalProperties:false, - properties:{file:{type:'string'},content:{type:'string'}},required:['file','content']} }))) -``` -> Generation on worktrees → you review specs → land them → run `npm run test:all` yourself once your session owns the tree. - -### 2.4 Release-readiness sweep (READ-ONLY) — *the GA launch-line* -**When:** before the GA cut. Verifies the things the audit *didn't* cover because they're not code-findings. - -```js -export const meta = { name:'waggle-release-readiness', description:'Read-only check of the GA launch-line: gates, signing, updater, macOS, npx, deploy', phases:[{title:'Check'}] } -const REPO='D:/Projects/waggle-os' -const checks = [ - ['gates','Do all 5 gates give real signal now? root eslint.config present? app/tsconfig points at real TS? build runs tsc? CI targets correct branch?'], - ['signing-win','Windows code-signing: is there a signing identity/cert wired in tauri.conf + release.yml? Or unsigned (SmartScreen warning)?'], - ['signing-mac','macOS: Developer ID + notarization configured, or still ad-hoc (Gatekeeper block)? Is the DMG target defined?'], - ['updater','tauri updater: correct repo slug everywhere, pubkey set (not empty), latest.json reachable?'], - ['npx','Is the CLI npx-publishable (bin points at built .js, workspace deps resolve)?'], - ['web-deploy','apps/www + render.yaml/docker-compose.production: is the WEB SaaS deploy path complete (env, Stripe live keys, Clerk prod, CORS for prod origin)?'], -] -phase('Check') -const out = await parallel(checks.map(([k,q]) => () => - agent(`READ-ONLY on ${REPO}. ${q} Report status + exact gap + the file to change.`, - { label:k, schema:{type:'object',additionalProperties:false, properties:{ - area:{type:'string'},status:{type:'string',enum:['ready','partial','missing']}, - gap:{type:'string'},fileToChange:{type:'string'}},required:['area','status','gap']}, - agentType:'code-reviewer' }))) -return out.filter(Boolean) -``` - ---- - -## 3. ultracode: when to flip it on - -ultracode = a standing instruction that says *"author and run a workflow for every substantive task by default; verify adversarially; token cost is not the constraint; quality is."* - -- **ON** for the GA push you chose (thorough, 1–2 months, all four dimensions). It makes the fleet-orchestration default instead of something you have to ask for each time. -- **OFF** for conversational turns, trivial mechanical edits, and when you're exploring/steering and want fast single-threaded answers. - -A reminder tells the agent which state it's in. Practically: you flip it on when you sit down to *grind a workstream*, off when you're *thinking with* the agent. - ---- - -## 4. The solo cadence (your day) - -``` -Morning ── strategic-compact, read overnight workflow results (TRUST-REPORT deltas) - ── pick ONE workstream (Verification / Security / Release / UX) for the day -Midday ── author/run the fix-execution workflow for that workstream's residuals (worktrees) - ── you review returned diffs, land the good ones, re-run verification on what you landed -Evening ── run a read-only verification or release-readiness sweep on the day's work - ── /loop a CI/push monitor if you pushed; note tomorrow's residuals -``` - -Tools that make this sustainable solo: -- **Worktree-per-stream** (you already do this — `waggle-os-gaia2-wt` exists). One worktree per concurrent session so nothing collides. *This is non-negotiable while two sessions are live.* -- **`/loop`** for recurring waits (poll a CI run, watch a deploy) — self-paced, interrupts you only when state changes. -- **`strategic-compact`** between phases so context stays sharp across a multi-week push. -- **Background workflows** — launch, keep steering elsewhere, get notified on completion. You ran one this session and kept talking; that's the pattern. - ---- - -## 5. The two-session sync protocol (active right now) - -Two Claude Code sessions are on `waggle-os` simultaneously. Collision rules: - -| Rule | Why | -|---|---| -| **Only ONE session mutates the shared working tree** (`D:/Projects/waggle-os`). | The other (this one) is the fixing lane; mine is read-only verify+plan. Two writers on one tree corrupt each other. | -| **Any *additional* mutation goes on a NEW worktree** (`git worktree add`). | Lets a second session execute fixes without touching the live tree. Your own memory rule. | -| **Verification is always read-only** + no build/test/install on the shared tree. | A verifier that runs `npm test` races the fixer's test artifacts. Static read = zero collision. | -| **One designated session pushes** the 31 unpushed commits. | Avoid divergent pushes on `hardening/prod-readiness`. | -| **Deliverable docs live OUTSIDE the repo** until a session owns the tree. | This plan is in `North star/waggle-ga/`; fold into `waggle-os/docs/` during a quiet window. | - -**Recommended handoff:** let the fixing session finish + push → this session's Trust Report identifies residuals → a single integration session works residuals on a worktree (workflow 2.2) → merge → re-verify → GA cut. - ---- - -## 6. Guardrails - -- **Budget directives:** prefix a turn with `+500k` (etc.) to set a hard token target; workflows scale fan-out to it and stop at the ceiling. Use for "go as deep as N tokens buys." -- **Read-only by default; worktree to write.** Never let an agent Edit a tree another session owns. -- **Agents propose, you dispose.** For anything security/billing/release, you read the diff and commit. The fleet does volume + verification; you keep the final commit bit. -- **Don't trust a green run that doesn't gate.** Until lint + tauri-tsc give real signal, "tests pass" is two-fifths blind. Gate repair is workstream-0. - ---- - -*Next: `TRUST-REPORT.md` lands when the verification workflow completes, then `PRODUCTION-PLAN.md` sequences the 1–2 month GA push across all four workstreams for both web + desktop.* diff --git a/docs/ga/PHASE2-FAILURE-INJECTION-2026-05-30.md b/docs/ga/PHASE2-FAILURE-INJECTION-2026-05-30.md deleted file mode 100644 index bbf73d9..0000000 --- a/docs/ga/PHASE2-FAILURE-INJECTION-2026-05-30.md +++ /dev/null @@ -1,161 +0,0 @@ -# Phase 2 — Failure-Injection Coverage & CI Wiring - -**Date:** 2026-05-30 -**Repo:** `D:/Projects/waggle-os` — `main` @ `c00232c` -**Scope:** Failure-injection / fault-tolerance coverage for the GA gate, plus the CI wiring fix to ensure the new specs run. - ---- - -## 1. Headline - -**What now exists:** One net-new browser-driven failure-injection spec was authored and compiles (validated via `playwright test --list`, 3 tests discovered under the `chromium` project, server not booted): - -- `tests/e2e/failure-injection/network-drop.spec.ts` — 3 UI-driven tests covering the **network-drop** path on `POST /api/chat` (mid-stream SSE interruption, partial-token render, and re-send recovery). Injection uses `page.route()` exactly like the existing `spawn-agent-flow.spec.ts`; assertions are verified against `ChatApp.tsx` / `BlockRenderer.tsx` / `useChat.ts` in this repo state. - -**What is deliberately deferred (with reasons):** - -- **capability-missing** — already covered at unit level (`packages/agent/tests/capability-router.test.ts`, `agent-loop.test.ts`). It is an agent-internal decision over deterministic LLM text, not a browser-triggerable DOM/UI state. An e2e here would only re-exercise client SSE plumbing, not the capability logic. **No e2e added.** -- **traversal-rejected** — already covered by 14 Vitest tests across `phase2-traversal-{tasks,documents,ingest}.test.ts` (R1-004 included) plus generic e2e traversal checks in `competitive-benchmarks.spec.ts`/`waggle-complete.spec.ts`. The task/document/ingest endpoints specifically are covered at the unit layer where out-of-root write absence can be asserted directly. **No e2e added** (a thin e2e is feasible but redundant; flagged below as an optional nicety, not a gate blocker). -- **unpaid-tier-gate** — already covered by `tier-enforcement-matrix.test.ts` (13 gated routes) + e2e `competitive-benchmarks.spec.ts` B5.4 + `polish-verification.spec.ts`. An additional e2e is *feasible* (mutate `config.json` mid-test, assert `403 TIER_INSUFFICIENT`) but not required for the gate since the matrix test already proves enforcement file-backed (no header spoof). **Optional, not added in this pass.** -- **sidecar-restart** — **INFEASIBLE at e2e level.** Playwright `webServer` with `reuseExistingServer:true` boots the single `:3333` process once and never restarts it; `page.route()` stubs HTTP traffic, it cannot cleanly kill/respawn the Node host without race conditions against the 120s health probe. The frontend adapter's `connectWebSocket()` is fire-once with no reconnect/state-recovery loop, so there is nothing to assert post-restart anyway. **Recommend Vitest unit coverage** of the offline-detection + (absent) reconnect path instead. -- **R3-002 (circular-dependency / subagent dup-worker)** — already green via `packages/agent/tests/phase4-subagent-dup-worker.test.ts` (2 tests). **Not re-added** per instruction. - -**Net Phase-2 result:** the one genuinely browser-observable, not-yet-covered failure path (network-drop) is now an e2e. Everything else is either already covered (unit and/or e2e) or infeasible at the browser layer and correctly pushed to unit. - ---- - -## 1b. EXECUTION OUTCOME (2026-05-30, post-authoring) — pushed to main @ 25cb5c0 - -Authoring the network-drop spec and **actually running it** surfaced a real production regression. Three commits landed + pushed: - -- **`c3c569b`** `fix(test)` — repaired broken Playwright npm scripts (`test:e2e`/`test:fast` referenced `--project=api`, `test:visual` `--project=visual`; only `chromium` exists → "Project not found", zero tests for any human invoker). Routed through `playwright-e2e.config.ts` + `--project=chromium`. -- **🐛 `99347da`** `fix(server)` — **D1 REGRESSION FIX (the session's most important find).** D1 (`d28abed`) gated EVERY route behind a bearer token, including the SPA shell (`GET /`) and static assets. A browser/webview gets `401 MISSING_TOKEN` on initial load and can never run the app code that bootstraps the token → blank 401 page. **Bricks the hosted web deployment** (render.yaml serves the frontend from the server); desktop Tauri less affected (bundles its own UI, only calls `/api/*`). Fix: exempt non-API GETs (inert static reads) from bearer auth; every `/api/*` route + any non-GET stays gated; session-token endpoint stays same-origin gated → auth boundary unchanged. TDD: +4 tests incl. negative controls (POST `/` still 401, `/api/*` GET still 401). 8/8 D1 + 60/60 security-suite green. **This is effectively the D1 desktop-smoke-test the handoff flagged as never run.** -- **`25cb5c0`** `test(e2e)` — the network-drop spec, **3/3 green** against a live `:3333` boot. Recovery assertion made LLM-mode-independent (composer settles + new assistant bubble + no new offline error) after discovering a live LiteLLM proxy preempts `WAGGLE_ECHO_MODE`. - -**Triage chain (3 rounds, each a real cause, not a flake):** missing chromium binary (infra) → stale boot/nav helpers copied from `live-chat-flow.spec.ts` (fixed to mirror `waggle-complete.spec.ts`) → **D1 static-asset auth wall** (the production bug) → echo-mode assumption vs live LLM (assertion de-coupled). - -**KNOWN RESIDUAL — existing e2e UI suite is effectively dormant.** `waggle-complete.spec.ts` §14 self-skips UI tests when port **8080** returns non-HTML (`:889-898`) — but the webServer is `:3333`, so those UI journeys have been skipping, not running. Separate from this pass; flagged for a follow-up (repoint the skip-guard at `:3333`). - ---- - -## 2. Per-Path Table - -| Path | Already covered? | Feasible at e2e? | Action taken | File | -|------|------------------|------------------|--------------|------| -| **network-drop** | No | Yes | **Authored 3 e2e tests** (abort/partial-token/recovery) | `tests/e2e/failure-injection/network-drop.spec.ts` | -| **capability-missing** | Yes (unit) | No | None — keep unit coverage | `packages/agent/tests/capability-router.test.ts`, `agent-loop.test.ts` | -| **traversal-rejected** | Yes (14 unit + generic e2e) | Yes (redundant) | None — covered at unit layer | `packages/server/tests/local/phase2-traversal-{tasks,documents,ingest}.test.ts` | -| **unpaid-tier-gate** | Yes (matrix unit + B5.4 e2e) | Yes (optional) | None this pass — flagged optional | `packages/server/tests/tier-enforcement-matrix.test.ts`, `tests/e2e/competitive-benchmarks.spec.ts` | -| **sidecar-restart** | No | **No (infeasible)** | Deferred to unit; documented residual | _N/A — recommend Vitest_ | -| **R3-002 circular-dep** | Yes (2 unit, green) | n/a | None (do-not-readd) | `packages/agent/tests/phase4-subagent-dup-worker.test.ts` | - ---- - -## 3. CI Wiring Fix - -### 3a. Does the new spec already run in CI? - -**Yes — recursively.** ci.yml line 71 runs `npx playwright test tests/e2e/`, which is a **path-prefix filter**, not a flat glob. The default `playwright.config.ts` has `testDir: './tests'` + `testMatch: '**/*.spec.ts'`, so any `*.spec.ts` under `tests/e2e/**` — including the new `tests/e2e/failure-injection/network-drop.spec.ts` — is automatically discovered. **No change to line 71 is strictly required for the new spec to run.** - -However, two real defects warrant a minimal, intent-revealing fix: - -1. **Implicit-discovery fragility.** Relying on the bare path prefix means a future reader cannot tell the failure-injection suite is in scope. Make it explicit so the gate is self-documenting and a deleted/renamed dir fails loudly. -2. **Dead-script project mismatch (the flagged issue).** Root `package.json` scripts reference Playwright projects that **do not exist** in either config: - - `test:e2e` → `--project=api` → **broken** (only `chromium` exists → `Error: Project(s) "api" not found`) - - `test:fast` → `--project=api` → **broken** (same) - - `test:visual` → `--project=visual` → **broken** (only `chromium` exists) - - Both `playwright.config.ts` **and** `playwright-e2e.config.ts` define **only** `name: 'chromium'`. CI never calls these scripts (it invokes `npx playwright test` directly), so CI is green — but any human running `npm run test:e2e` gets a zero-test error. This is a latent footgun, not a CI failure. - -### 3b. EXACT diff — ci.yml (make scope explicit; behavior-equivalent, lists the new suite) - -```diff ---- a/.github/workflows/ci.yml -+++ b/.github/workflows/ci.yml -@@ -70,7 +70,7 @@ - - name: Run Playwright E2E tests -- run: npx playwright test tests/e2e/ -+ run: npx playwright test tests/e2e/ tests/e2e/failure-injection/ - env: - WAGGLE_ECHO_MODE: "1" - NODE_ENV: test -``` - -> Note: `tests/e2e/failure-injection/` is already a subpath of `tests/e2e/`, so this is **functionally identical** — its only purpose is to make the failure-injection suite an explicit, reviewable line item in the gate. If you prefer zero redundancy, leave line 71 unchanged; the spec runs either way. The **load-bearing** fix is the package.json scripts below. - -### 3c. EXACT diff — package.json (resolve the project mismatch) - -The scripts must reference the real project name (`chromium`) or drop `--project` entirely. `test:e2e`/`test:fast` should additionally point at the e2e config (`-c playwright-e2e.config.ts`) so they exercise the e2e suite, not the visual baselines. - -```diff ---- a/package.json -+++ b/package.json -@@ -29,9 +29,9 @@ -- "test:e2e": "node node_modules/playwright/cli.js test --project=api --reporter=list", -- "test:visual": "node node_modules/playwright/cli.js test --project=visual --reporter=list", -+ "test:e2e": "node node_modules/playwright/cli.js test tests/e2e --project=chromium --reporter=list", -+ "test:visual": "node node_modules/playwright/cli.js test tests/visual --project=chromium --reporter=list", - "test:all": "node node_modules/playwright/cli.js test --reporter=list", - "test:retry": "node node_modules/playwright/cli.js test --last-failed --reporter=list", -- "test:fast": "node node_modules/playwright/cli.js test --project=api --grep-invert=\"4\\.9|B8\\.5\" --reporter=list" -+ "test:fast": "node node_modules/playwright/cli.js test tests/e2e --project=chromium --grep-invert=\"4\\.9|B8\\.5\" --reporter=list" -``` - -Rationale: -- `--project=api` / `--project=visual` matched no project in `playwright.config.ts` or `playwright-e2e.config.ts` (both only define `chromium`) → swapped to `--project=chromium`. -- Added explicit `tests/e2e` / `tests/visual` path filters so the previously project-encoded intent (e2e vs visual split) is preserved via testDir path instead of a nonexistent project name. -- `test:all` (no `--project`) was already correct and is unchanged — it runs the full default config. - ---- - -## 4. Serial Verification Runbook (one-boot constraint) - -Playwright auto-boots a **single** `:3333` server (`reuseExistingServer:true`, `fullyParallel:false`). Run everything against that one boot. Do **not** start a second server. - -**Step 0 — clean port (optional, only if a stale server is bound):** -```powershell -Get-NetTCPConnection -LocalPort 3333 -State Listen -ErrorAction SilentlyContinue | - ForEach-Object { Stop-Process -Id $_.OwningProcess -Force } -``` - -**Step 1 — compile-only sanity (no server boot):** -```powershell -cd D:/Projects/waggle-os -node node_modules/playwright/cli.js test tests/e2e/failure-injection/network-drop.spec.ts --list -``` -Green = exactly **3** tests discovered under project `chromium`. (This is the state already validated by the spec author.) - -**Step 2 — run the new spec against a real :3333 (single boot, echo mode):** -```powershell -$env:WAGGLE_ECHO_MODE = "1"; $env:NODE_ENV = "test" -node node_modules/playwright/cli.js test tests/e2e/failure-injection/network-drop.spec.ts --project=chromium --reporter=list -``` -Playwright runs `npm run build && npx tsx packages/server/src/local/start.ts --skip-litellm`, waits for `:3333`, then drives the UI. This single boot is reused for all 3 tests. - -**Step 3 — full e2e gate (same one boot, mirrors CI line 71):** -```powershell -$env:WAGGLE_ECHO_MODE = "1"; $env:NODE_ENV = "test" -node node_modules/playwright/cli.js test tests/e2e/ --project=chromium --reporter=list -``` - -**What green looks like:** -- Step 1: `Total: 3 tests in 1 file`, exit 0. -- Step 2: `3 passed`, exit 0. Specifically — Test 1 renders the `.text-destructive` "Backend is offline" block and the composer re-enables (no hang); Test 2 renders the partial `MIDSTREAM_TOKEN_PROBE` token then settles with no crash; Test 3 shows the offline error on the aborted send, then after `page.unroute` the re-send streams the echo-mode "local mode" success token. -- Step 3: all 16 existing specs + the 3 new tests pass; `playwright-report/` written. - -**How to triage a failure:** -1. **Boot/timeout (120s webServer):** check `npm run build` succeeds standalone and `:3333` is free. A failed Vite build or stale port is the #1 cause — re-run Step 0. -2. **Test 3 asserts "local mode" but fails:** confirm `WAGGLE_ECHO_MODE=1` is set **and** no live Anthropic proxy key is present in the env/config. With a real key the agent loop runs instead of the echo branch (`chat.ts:697-713`) and the deterministic "local mode" token won't appear — this is an honest failure, not a flake; clear the key. -3. **Selector drift (`.text-destructive`, `textarea[placeholder*="Message"]`, `button[aria-label="Chat"]`):** re-verify against current `ChatApp.tsx` / `BlockRenderer.tsx` — UI refactors invalidate selectors. -4. **Flake on retry:** `retries:1` is set; a pass-on-retry indicates a timing race in route registration. Inspect the trace (`trace: 'on-first-retry'`) in `playwright-report/`. -5. **Auth:** none needed — the app self-bootstraps its D1 bearer token via `/api/auth/session-token` on connect (`adapter.ts:126-136`), same path the existing `live-chat-flow.spec.ts` relies on. - ---- - -## 5. Honest Residuals - -- **sidecar-restart — INFEASIBLE at e2e, left to unit.** The single-boot `reuseExistingServer` model cannot kill/respawn the host process without racing the 120s health probe, and the frontend has no reconnect-with-state-recovery to observe (`connectWebSocket()` is fire-once; `useOfflineStatus` only toggles a pill). Recommended follow-up: a Vitest test in `packages/server/tests/local/` asserting `/health` failure detection and documenting the *absence* of client WS reconnect as a known limitation (or implementing reconnect + a unit test for it). **This is the one true coverage gap and it is architectural, not a test-authoring gap.** -- **capability-missing — unit-only by nature.** Browser cannot trigger a tool-not-found state; the fallback is deterministic LLM text. Existing Vitest coverage is the correct layer. No residual risk. -- **traversal (tasks/documents/ingest) e2e — optional nicety.** Unit layer already proves 400 + no out-of-root write. An e2e would be belt-and-suspenders only; deferred without risk. -- **unpaid-tier-gate e2e — optional.** Matrix unit test + B5.4 e2e already prove file-backed enforcement (no header spoof). A dedicated `unpaid-tier-gate.spec.ts` is feasible if the gate wants browser-level evidence, but adds no enforcement guarantee beyond the matrix test. -- **CI script mismatch — fixed by the package.json diff above, not yet committed.** Until applied, `npm run test:e2e`, `test:fast`, and `test:visual` error with "Project not found" for any human invoker. CI itself is unaffected (it bypasses these scripts). diff --git a/docs/ga/PRODUCTION-PLAN.md b/docs/ga/PRODUCTION-PLAN.md deleted file mode 100644 index 6729f77..0000000 --- a/docs/ga/PRODUCTION-PLAN.md +++ /dev/null @@ -1,141 +0,0 @@ -# Waggle OS → GA Production Plan - -**Date:** 2026-05-29 · **Owner:** Marko (solo) · **Surfaces:** web SaaS **+** signed desktop (Win+mac) · **Horizon:** 6–8 weeks (thorough) -**Companions:** `TRUST-REPORT.md` (verified state) · `OPERATING-MANUAL.md` (how to run it as a fleet) - -> This plan starts from *verified* reality, not the audit's claims or the commit log. Every phase closes specific findings (IDs trace to `TRUST-REPORT.md`), names the workflow that does the work, and states an **exit gate** that is *independently re-verified* — never self-graded. - ---- - -## 0. Post-merge status — 2026-05-29 (Phase 0 + Phase 1 LANDED on `main`) - -`ga/phase0-gates` (6 commits) was rebased onto `main` after the other session landed `hardening/phase7-closeout` (main `0f6bb4c → ee923d5`: Phase7a–e). Fast-forward merged to **`main @ 12c60e8`**. Re-verified on the rebased tree before merge: `tsc --build` (all pkgs) exit 0 · 65 security/D1/billing tests green · `eslint .` 0 errors / 970 warnings (ratchet backlog). - -**Landed on main:** -- `9f76344` AV-1/AV-2/AV-5 — network/auth boundary residuals closed -- `3a4f70a` AV-3/R2-006 — dev tier-override gated (`WAGGLE_ALLOW_TIER_OVERRIDE=1` to enable in dev/test), debug-log recon trimmed -- `0e4dfa7` R1-011/R6-005 — Stripe webhook serialized, rate-limit mkdir -- `d28abed` **D1** — bearer token required even on loopback; same-origin `/api/auth/session-token` bootstrap; webview `connect()` fetches it -- `12c60e8` D1 test reconciliation (test env defaults trust ON; D1 tests opt into secure path) -- `811ec78` Phase0 gates — lint + tauri-tsc wired into `ci.yml` (eslint.config.js deferred to main's Phase7c config to avoid a competing gate) - -**⚠️ D1 SHIPPED WITHOUT A DESKTOP SMOKE-TEST** (couldn't launch Tauri headlessly). The webview `connect()` bootstrap (HTTP `/api/auth/session-token` → `authToken` → `/ws ?token=`) is tested at the server/unit level only. -> **REVERT SWITCH if the desktop app bricks on first-run connect:** set env `WAGGLE_TRUST_LOCALHOST=1` — restores the loopback-trust exemption (reverts D1 behaviorally without reverting the commit). Verify the live desktop build at the next opportunity, then remove the switch. - -**Not yet done:** push to `origin` (handoff state was local-only) · cut GA tag · the remaining Phase 2–5 workstreams below. - ---- - -## 1. Definition of GA (the bar you chose) - -GA = **both surfaces shippable to a paying stranger**, not just "tests pass." - -**Desktop (Tauri, Win+mac):** signed + notarized installers; auto-updater verifies signatures; no orphaned sidecar; first-run works offline-to-online; local-trust threat model closed. -**Web SaaS:** deployable (render/docker) with live-mode Stripe, Clerk prod, prod-origin CORS, multi-tenant isolation; the `apps/www` landing live. -**Both:** all 5 quality gates give real signal; security cluster closed under adversarial re-verification; real E2E + failure-injection suite green in CI; light mode actually usable. -**Strategic:** the Enterprise CTA → KVARK path is wired (Waggle's job is to qualify KVARK demand — a credible GA *is* the demand engine). - -**GA gate checklist** (Phase 5 verifies all): -- [ ] 5/5 gates real (build-web ✅, build-packages ✅, **lint**, **tauri-tsc**, test-no-flake) -- [ ] Security: AV-1..5 + R2-006 + R6-005 + R1-011 closed; verification workflow re-run → all skeptics "holds" -- [ ] E2E journeys (5 personas) + failure-injection suite green in CI -- [ ] Win signed + mac notarized installers from CI; updater verifies a real signed release -- [ ] Web deploys to staging; live-mode Stripe checkout + webhook round-trips; prod CORS exact-match -- [ ] drizzle 0.44→0.45 migrated; light-mode contrast audit passes (independently); a11y basics -- [ ] 31+ commits pushed; tag cut - ---- - -## 2. Two decisions to make first (they gate everything) - -**D1 — The localhost-trust threat model (strategic).** Today `security-middleware.ts` exempts *all* loopback callers from bearer auth. AV-3 (PATCH /api/tier free upgrade) proves any local web page/extension/app can drive the authenticated API. For a desktop app coexisting with browsers, "local = trusted" is unsafe. -→ **Decide:** require the bearer token (or a per-origin capability token) even on loopback, with the Tauri webview holding the only token. This reframes WS-A from "patch sibling routes" to "remove the trust exemption." **Recommended.** Defer only if you accept that any local software can act as the user. - -**D2 — Gate repair is Workstream-0, not optional.** Until `lint` + `tauri-tsc` give signal, you're hardening blind on two axes. Do it before any other fix lands so every subsequent phase gets real verification. - ---- - -## 3. Workstreams (mapped to verified residuals) - -| WS | Theme | Closes (verified open items) | -|---|---|---| -| **0** | Gate repair + signal | lint-gate, tauri-tsc, CI branch target | -| **A** | Security to GA | D1 decision, AV-1, AV-2, AV-3, AV-5, R2-006, R6-005, R1-011 (mutex), R6-007 (wire Zod) | -| **B** | Real verification | E2E journeys, synthetic-failure injection, sibling-path sweep, R3-002 test, re-verify loop | -| **C** | Build / Release / Distribution | Win+mac signing, updater signatures, macOS notarize, npx publishable, web deploy (Stripe live, Clerk prod, prod CORS), R9-001 drizzle migration, AV-4 | -| **D** | UX to GA | R5-006 (light-mode systemic), R5-002/003, R5-004/005 (a11y), R3-004 (hot-path perf), addictiveness-audit feature triage, first-run | - ---- - -## 4. Phased sequence (solo, ~6–8 weeks) - -Each phase: **Goal · Closes · Workflow (from OPERATING-MANUAL) · Exit gate.** Fixes run on **isolated worktrees**; you keep the commit bit; every phase ends with an **independent re-verify**. - -### Phase 0 — Make signal real (Days 1–3) · WS-0 -- **Goal:** all 5 gates give true signal; full launch-line gap list captured; D1 decided. -- **Do:** add root `eslint.config.js` (flat) covering `packages/*`, `app/*`, `apps/*` (or scope `lint` script explicitly + lint each workspace); repoint or retire the `tauri-tsc` gate (point `app/tsconfig.json` at real `app/scripts`+`app/tests`, or delete the dead gate); fix CI branch target if still `master`. Record D1. -- **Workflow:** `2.4 release-readiness` (read-only) → the authoritative gap list for WS-C. -- **Exit:** `npm run lint` lints >0 files and is green or has a triaged error list; `tsc` for the Tauri layer compiles real files; CI runs all 5 gates on the branch. - -### Phase 1 — Close security to GA (Weeks 1–2) · WS-A -- **Goal:** no unauthenticated/over-trusted path to authenticated APIs, billing, or fs. -- **Closes:** D1 (remove/replace loopback-auth exemption) → which structurally kills AV-3; then AV-1 (block empty Host), AV-2 (route waggle-signals SSE + agent-run through `corsOriginAllowed`), AV-5 (recognize `localhost`/`::1`/`::ffff:` as loopback), R2-006 (limit debug-logs columns+rows), R6-005 (confine mkdir + tight rate-limit), R1-011 (promise-queue mutex on webhook writes), R6-007 (wire `@waggle/shared` Zod into the 4 local fs routes). -- **Workflow:** `2.2 fix-execution` (worktrees; `model:'opus'` for the auth/threat-model changes) → then **re-run `2.1 verification`** with the adversarial skeptics. -- **Exit:** verification re-run shows security + billing clusters all `holds`; new tests cover empty-Host, origin-reflection, PATCH /api/tier denial, mkdir confinement, webhook race. - -### Phase 2 — Real verification infrastructure (Weeks 2–3) · WS-B -- **Goal:** "done" means proven. Institutionalize catching the sibling-path gap-class (the thing the self-grading missed). -- **Closes:** zero-browser-E2E gap; untested failure paths (network drop mid-stream, capability-missing hard error, traversal-rejected, unpaid-tier gate, sidecar restart); R3-002 (circular-dep test). -- **Workflow:** `2.3 e2e-synth` → generate Playwright journeys for the 5 personas + a failure-injection test per path; land them; wire `test:all` into CI. Add a recurring `2.1 verification` as a pre-merge step. -- **Exit:** E2E + failure-injection suite green in CI; the 5 audit personas have real browser coverage; error-recovery is *tested*, not asserted. - -### Phase 3 — Build / Release / Distribution, both surfaces (Weeks 3–5) · WS-C -- **Goal:** CI emits shippable artifacts for both surfaces. -- **Desktop:** Windows code-signing cert wired into `tauri.conf` + `release.yml`; macOS build target + Developer ID + notarization; fix updater `signature:""` so signed auto-updates verify (R7-008); npx-publishable CLI (bin→built .js, workspace deps resolve). -- **Web:** complete `render.yaml`/`docker-compose.production` deploy; live-mode Stripe (incl. AV-4: validate `billingPeriod`, fail-closed on missing annual price); Clerk prod; **prod-origin CORS exact-match on the team server** (`packages/server/src/index.ts` currently uses raw `CORS_ORIGIN` env, disconnected from `corsOriginAllowed` — unify it); Docker non-root. -- **Migration:** R9-001 drizzle 0.44→0.45 (+ re-tsc + server tests) — its own sub-task with full build verify. -- **Workflow:** `2.4 release-readiness` to drive the checklist; `2.2 fix-execution` for the migration + signing wiring. -- **Exit:** CI produces a signed Win installer + notarized mac DMG; updater verifies a real signed release; web deploys to staging and a live-mode test checkout + webhook round-trips; drizzle migrated, build+tests green. - -### Phase 4 — UX to GA (Weeks 5–7) · WS-D -- **Goal:** light mode usable, a11y basics, hot-path perf, stickiness triaged. -- **Closes:** R5-006 (the 358 hardcoded colors → semantic tokens), R5-002/003 (add light-theme values for status tokens), R5-004 (modal role/aria/Escape/focus-trap), R5-005 (window controls), R3-004 (add `content_hash` column → kill O(n·500) on harvest), addictiveness-audit `FEATURE-REQUESTS.md` triaged into GA-must vs post-GA. -- **Workflow:** a Haiku-heavy mechanical sweep (palette→token) parallelized by component cluster, then an **independent contrast/verify pass** (don't self-grade the light mode — that's the 10/10 trap); `2.2` for a11y + perf. -- **Exit:** independent light-mode contrast audit passes (WCAG AA on load-bearing text); a11y smoke on the three modals; large-harvest no longer blocks the event loop; feature list triaged. - -### Phase 5 — GA cut (Weeks 7–8) -- **Goal:** ship. -- **Do:** full `2.1 verification` over the *entire* audit + new tests; `2.4 release-readiness` all green; 5/5 gates green; push the (now 40+) commits; tag; cut beta → GA; wire Enterprise CTA → kvark.ai. -- **Exit:** GA gate checklist (§1) 100%. - ---- - -## 5. Immediate next actions (this week) - -1. **Concurrent session:** let it finish + **push** the 31 commits to `origin/hardening/prod-readiness` so both lanes share a base. One designated session pushes. -2. **This/integration session:** start **Phase 0 (gate repair)** on a fresh worktree (`git worktree add ../waggle-os-ga hardening/prod-readiness`) — it's read-mostly config work, lowest collision risk, highest signal payoff. -3. **Decide D1** (localhost-trust) — it reshapes Phase 1. I recommend "require token even on loopback." -4. Feed `TRUST-REPORT.md`'s open items as the `residuals` arg into the `2.2 fix-execution` workflow. - ---- - -## 6. Sync protocol (active — two sessions live) - -Per `OPERATING-MANUAL.md §5`: one session owns the shared tree; all *additional* mutation on new worktrees; verification stays read-only; one session pushes; deliverable docs live here in `North star/waggle-ga/` until a session owns the tree, then fold into `waggle-os/docs/`. **Recommended handoff:** fixing session pushes → this report identifies residuals → a single integration session works residuals on a worktree → merge → re-verify → GA. - ---- - -## 7. Risks & how the fleet de-risks them - -| Risk | Mitigation | -|---|---| -| Self-graded fixes hide sibling-path gaps (the recurring failure) | Phase 2 makes independent adversarial re-verify a *pre-merge gate*, not a one-off. | -| Solo bandwidth across 5 phases | Fan-out per workstream; Haiku for mechanical bulk (light-mode), Opus for security/threat-model; background workflows while you steer. | -| drizzle major migration breaks runtime (already bit once) | Isolated worktree + full re-tsc + the 19 server test files as the exit gate before merge. | -| Light-mode "looks done" but isn't (it's 0.6% now) | Independent contrast audit, not self-assessment — same doctrine as security. | -| Two sessions corrupt the tree | Worktree-per-stream is non-negotiable; only one writer per tree. | -| Scope creep from addictiveness feature-requests | Triaged into GA-must vs post-GA in Phase 4; default post-GA. | - ---- - -*Plan is intentionally verification-anchored: if a later re-run of the verification workflow contradicts a "closed" item here, the re-run wins and the item reopens.* diff --git a/docs/ga/RECONCILIATION-2026-05-30.md b/docs/ga/RECONCILIATION-2026-05-30.md deleted file mode 100644 index 95e505e..0000000 --- a/docs/ga/RECONCILIATION-2026-05-30.md +++ /dev/null @@ -1,65 +0,0 @@ -# Waggle-OS GA Reconciliation — 2026-05-30 - -> Baseline: `main @ 5ccfa53` (2026-05-29). This reconciles `PRODUCTION-PLAN.md` Phases 2–5 against the code after the Phase0/Phase1 security track (AV-1/2/3/5, D1, gates) and the parallel-session Phase7a–e + S4 full type-ratchet (`no-explicit-any` 937→0 repo-wide) both landed. The plan was authored **before** that work, so some items are now closed and some plan claims — especially Phase 7d's "light-mode finish" — are corrected against verified evidence below. - -## 1. Headline — what genuinely remains for GA - -The hard security and supply-chain work is done (drizzle 0.45 migrated and clean; Stripe `billingPeriod` fail-closed validation in place), but **GA is not shippable as-is**: there is a live **CORS suffix-attack vulnerability in the team server** (`packages/server/src/index.ts:46` passes a raw origin array to Fastify CORS instead of the exact-match `corsOriginAllowed()` the local server already uses), a **payment-gate bypass in both Stripe webhook handlers** (checkout.session.completed grants paid tiers without checking `payment_status`), **no real browser/persona E2E or failure-injection coverage**, **deployment manifests missing all Stripe/CORS env vars**, **light mode ~0.6% migrated** (4 status tokens + 5 KG tokens missing for light theme, 60+ files still hardcoded, contrast never visually validated), and **desktop signing + R7-008 updater-signature unfixed** (these are platform-blocked on Windows). The two items the verifiers downgraded from CLOSED→OPEN/PARTIAL (P3-stripe webhook gate, P3-cors) are the most urgent because they are security regressions, not gaps. - -## 2. Cluster status matrix - -| Cluster | Phase | Final Status | Key Residuals | Evidence | -|---|---|---|---|---| -| P2-e2e | Phase 2 (WS-B) | **PARTIAL** | No Playwright persona journeys; no failure-injection suite; no R3-002 cycle test; CI bypasses npm scripts | `tests/e2e/user-journeys.spec.ts` (generic J1–J10 only); `.github/workflows/ci.yml:71` runs `npx playwright test tests/e2e/` directly | -| P3-sign | Phase 3 (WS-C desktop) | **PARTIAL** | Win cert not in CI; mac Developer ID/notarization not in CI; R7-008 empty `signature:""` | `release.yml:56-65,111-121,137/141/145`; `tauri.conf.json`; pilot self-sign scripts exist but manual | -| P3-cli | Phase 3 (WS-C desktop) | **PARTIAL** | `@waggle/cli` missing `files`, `publishConfig`, metadata, `exports` (publishes tests/src) | `packages/cli/package.json:7-9,16-22`; vs fully-configured `hive-mind-cli` | -| P3-deploy | Phase 3 (WS-C web) | **PARTIAL** | Stripe + CORS env vars absent from both deploy manifests; `render.yaml` build path mismatch (`cd app` vs `apps/web`) | `render.yaml:1-63`; `docker-compose.production.yml:16-57`; Dockerfile non-root OK (`:91-115`) | -| P3-stripe | Phase 3 (WS-C web) | **PARTIAL** ⚠️ *(verifier downgraded from CLOSED)* | Webhook handlers grant tiers without `payment_status` check (R1-002 bypass) | `packages/server/src/stripe/webhook.ts:115-126`; `apps/www/app/api/webhooks/stripe/route.ts:98-110` | -| P3-cors | Phase 3 (WS-C web) | **OPEN** ⚠️ *(verifier downgraded from PARTIAL)* | Team server passes raw array to Fastify CORS → suffix attack; deploy `CORS_ORIGIN` unset | `packages/server/src/index.ts:46` vs correct local `index.ts:1912-1920` + `cors-config.ts:57-59` | -| P3-drizzle | Phase 3 (WS-C migration) | **CLOSED** ✓ | None | `packages/server/package.json:32` `drizzle-orm@^0.45.2`; journal v7; commit `fb33ca8`; tsc clean | -| discovered-drift | Discovered §7.5 | **PARTIAL** ⚠️ *(verifier downgraded from CLOSED)* | Stale `packages/core/src/mind/**` paths + hard-coded script paths in deprecated sync workflows | `sync-mind.yml:51,117-118`; `mind-parity-check.yml:35,41,118,170-171` | -| P4-light | Phase 4 (WS-D) | **OPEN** | 4 light status tokens + 5 KG tokens missing; 60+ files hardcoded; contrast never validated | `apps/web/src/index.css:190`; commit `6a3d598` ("Contrast NOT visually validated"); TRUST-REPORT "~0.6% done" | -| P4-a11y-perf | Phase 4 (WS-D) | **PARTIAL** | ComplianceTemplateModal no Escape/focus-trap/labelledby; window controls absent; harvest `contentHash` never computed/passed | `ComplianceTemplateModal.tsx:171-172`; `harvest.ts:409` + `index.ts:1226,1449` call `recordSync` w/ 3 args; `tauri.conf.json:37` | - -Legend: ⚠️ = adversarial verifier overrode the original investigator status. - -## 3. Per-phase: what's actually left - -### Phase 2 (WS-B) — E2E + failure-injection — PARTIAL -The "E2E" that exists is Vitest server-level tests plus generic Playwright UI journeys. None of the plan's persona/failure-recovery intent is met. -- Add Playwright **persona journeys** for researcher, analyst, coder, product-manager, executive-assistant (chat → tool invocation → result), distinct from generic J1–J10. The 17-persona coverage that exists is behavioral unit tests in `packages/agent/tests/behaviors/`, not browser journeys. -- Add a **failure-injection suite** (e.g. `tests/e2e/failure-injection.spec.ts`): network-drop mid-stream, capability-missing hard error, traversal-rejected 403, unpaid-tier gate, sidecar-restart. -- Add the **R3-002 circular-dependency test** asserting `@waggle/shared` / `@waggle/server` / `@waggle/agent` / `@waggle/core` form an acyclic import graph (none exists; grep for `R3-002` returns nothing). -- Fix **CI wiring**: `.github/workflows/ci.yml:71` invokes Playwright directly instead of `npm run test:all` / `test:e2e`, so CI and local diverge from the package.json scripts. -- Publish a **persona→journey coverage map** for CI visibility. - -### Phase 3 (WS-C) — desktop, web, migration — mixed -**P3-drizzle is genuinely CLOSED** (verifier agreed): 0.44.7→0.45.2 across server/launcher/worker, journal v7, tsc clean, no audit findings — a pure security patch (GHSA-gpj5-g38j-94v9), 42 usage sites verified. - -**P3-stripe — verifier OVERRODE CLOSED → PARTIAL.** Commit `27a98f7` correctly fixed `billingPeriod` (R1-003) and atomic writes (R1-011), but the R1-002 payment gate was only added to the `/api/stripe/sync` endpoint, **not the webhook handlers**. Both `webhook.ts:115-126` and `apps/www/.../route.ts:98-110` process `checkout.session.completed` without checking `session.payment_status`, so webhook delivery can grant a paid tier from an unpaid session. **Next action:** add a `payment_status === 'paid'` (or `'no_payment_required'`) guard in both webhook handlers before any tier grant; add a regression test. - -**P3-cors — verifier OVERRODE PARTIAL → OPEN (security).** `packages/server/src/index.ts:46` passes `{ origin: config.corsOrigin }` (raw array) to `@fastify/cors`, which does substring/`includes`-style matching — vulnerable to suffix attacks (e.g. `localhost:1420.evil.com`). The local server already does it right at `index.ts:1912-1920` via `corsOriginAllowed()` (`cors-config.ts:57-59`). **Next action:** unify the team server onto the callback-based exact-match `corsOriginAllowed()`; set `CORS_ORIGIN` in both deploy manifests; add a test asserting lookalike-origin rejection. Treat as a release blocker for any team-server deployment. - -**P3-deploy — PARTIAL.** `render.yaml` and `docker-compose.production.yml` declare DB/Redis/Anthropic/Clerk but **omit** `STRIPE_SECRET_KEY`, `STRIPE_WEBHOOK_SECRET`, `STRIPE_PRICE_*`, and `CORS_ORIGIN`. Non-root Docker user is correctly set (`Dockerfile:91-115`). **Next action:** add the Stripe + CORS env vars (`sync:false`) to both manifests; resolve the `render.yaml:16` build-path mismatch (`cd app` vs package.json `cd apps/web`) — confirm/alias or fix, since it is a latent deploy failure; document that `apps/www` is a separate Next.js deployment. - -**P3-sign — PARTIAL (partly platform-blocked, see §4).** `release.yml` passes no signing secrets for Windows or macOS; the updater manifest hard-codes `signature:""` for all three targets (R7-008); pilot self-sign scripts exist but are manual. **Next action (codeable on Windows):** wire Windows EV cert + `TAURI_PRIVATE_KEY`/`TAURI_KEY_PASSWORD` into `release.yml`, add the GitHub Actions secrets, and populate the updater `signature` field from the signing step. Cert procurement (timeline T+14/2026-05-21 start) appears **overdue** with no in-repo evidence. - -**P3-cli — PARTIAL.** `bin → dist/.js` routing works and workspace deps resolve, but `@waggle/cli` lacks `files`, `publishConfig.access`, standard metadata (`repository`/`bugs`/`homepage`/`types`/`author`/`keywords`/`engines`), and `exports` — so it would publish tests/src. **Next action:** mirror `hive-mind-cli`'s package.json publishing config. - -**discovered-drift — verifier OVERRODE CLOSED → PARTIAL.** The stale `packages/core/src/mind/**` trigger paths in `sync-mind.yml` and `mind-parity-check.yml` won't fire (files moved to `packages/hive-mind-core` on `3b556c0`), but the shell scripts still hard-code stale paths (`mind-parity-check.yml:118,170-171`) and there's no re-activation runbook — inert by accident, not by design. **Next action:** either delete the deprecated workflows or clean the hard-coded paths and add a one-line runbook note. - -### Phase 4 (WS-D) — light mode + a11y/perf — OPEN / PARTIAL -**P4-light — OPEN. The Phase 7d "light-mode finish" claim is materially false.** Verified: only `--status-healthy` has a light value (`index.css:190`); `--status-warning/error/info/ai` and `--kg-person/project/concept/org/default` have **no** light variants; 60+ component files still use hardcoded Tailwind classes (e.g. `UserProfileApp.tsx:232,268,279`); commit `6a3d598` explicitly states "Contrast NOT visually validated (no binary build)"; TRUST-REPORT puts it at "~0.6% done". **Next actions:** add the 4 missing status tokens + 5 KG tokens to the light-theme block; migrate hardcoded classes to semantic tokens; run an independent WCAG-AA contrast audit; review the ~13 flagged mid-tone `text-*-300` accents for regression. - -**P4-a11y-perf — PARTIAL.** `ComplianceTemplateModal` has `role="dialog"`/`aria-modal` but no Escape handler, no `aria-labelledby`, no focus trap; `TrialExpiredModal`/`UpgradeModal` have Escape + labelledby but only focus-on-mount (no trap). Window min/max/close controls are absent (`tauri.conf.json:37` `decorations=true`, no custom titlebar). Harvest dedup is **half-wired**: `last_content_hash` exists in DDL and `recordSync()` accepts a 4th `contentHash` arg, but all three callsites (`harvest.ts:409`, `index.ts:1226`, `index.ts:1449`) pass only 3 args, so the O(n·500) rescan persists. **Next actions:** add Escape + `aria-labelledby` + a shared focus-trap to all three modals; build the custom Tauri titlebar; compute SHA-256 `contentHash`, pass it at all three callsites, and add the dedup skip on `last_content_hash`. - -### Phase 5 — not present in reconciliation set -No Phase 5 clusters were verified in this pass. The plan's Phase 5 items are **unreconciled** here — treat as untracked and re-scope before GA sign-off (do not assume closed). - -## 4. Platform-blocked on Windows (cannot be completed in this env) -These require a macOS host and/or real signed binary runtime and are **not codeable here**: -- **R7-008 / macOS signing + notarization** — Developer ID signing and `notarytool` need a Mac; the updater `signature` field cannot be populated with a real signature without an actual signed-build pipeline. (Windows EV signing *can* be wired from here once the cert is procured; only the mac half and live signature generation are blocked.) -- **Binary runtime smokes** — light-mode contrast validation, modal a11y smoke, and window-controls verification that the Phase 7d commit explicitly deferred ("no binary build") need a built desktop binary to observe; they cannot be visually validated in this environment. - -## 5. Recommended next workflow -Fix the two security downgrades first as a TDD security pass — **P3-cors exact-match unification + P3-stripe webhook `payment_status` gate** (write failing tests, fix, verify), then run the Phase 2 E2E/failure-injection build-out and Phase 3 deploy-env wiring; defer all macOS-signing/binary-runtime items to a Mac/CI environment. diff --git a/docs/ga/TRUST-REPORT.md b/docs/ga/TRUST-REPORT.md deleted file mode 100644 index 7b4ee52..0000000 --- a/docs/ga/TRUST-REPORT.md +++ /dev/null @@ -1,100 +0,0 @@ -# Waggle OS — Independent Verification (Trust Report) - -**Date:** 2026-05-29 -**Verifier:** independent read-only workflow (13 agents, ~873K tokens) — a *different* lane from the session that wrote the fixes. -**Target:** `hardening/prod-readiness` @ HEAD `0f6bb4c` (31 unpushed commits, Phases 1→6 of the 2026-05-29 audit). -**Method:** static read of the live tree at run time + adversarial skeptics on every "fixed" security/billing verdict. **Caveat:** static analysis, not dynamic — no builds/tests were run (collision-safe alongside the active fixing session). Items needing live exercise are flagged. Tree was clean at run time; if the other session edited mid-run, a verdict could reflect a transient state. - ---- - -## 1. Bottom line - -**The 6-phase execution largely worked.** ~29 findings are *solidly* closed under independent review — including the headline LAN-bind (R1-001 default path), the memory-moat mock-embedder regression (R3-001), all 8 dependency CVEs that could be safely bumped, and all 8 frontend-resilience findings. - -**But "committed" ≠ "closed."** The adversarial pass found that **5 of the security/billing fixes verified as "fixed" by the cluster reviewers are actually bypassable or incomplete**, and **2 quality gates remain dead** (lint, tauri-tsc) — meaning the green test run is still two-fifths blind. The single biggest *systemic* finding: the sidecar's **"any loopback caller is trusted, no auth"** model is the root cause behind several bypasses and is the wrong threat model for a desktop app that coexists with browsers, extensions, and other local apps. - -**Ship-readiness verdict:** the *architecture* and the *bulk* of the hardening are genuinely sound. **Do not GA** until the localhost-trust cluster + the empty-Host bypass + PATCH /api/tier + the two dead gates are closed. These are surgical, not architectural. - ---- - -## 2. Scorecard - -| Cluster | Solid-fixed | Partial / skeptic-downgraded | Not fixed | -|---|---|---|---| -| Security · network/auth | R1-001*, R2-003*, R2-004* (verified fixed, **skeptic-downgraded**) | R2-006, R6-005 | — | -| fs-traversal | R6-001, R6-002, R6-006, R6-008, R1-004, R1-005, R2-005 | — | **R6-007** (Zod unwired) | -| Billing | — | R1-011; **R1-002\***, **R1-003\*** (skeptic-downgraded) | — | -| Quality gates | build-typecheck ✅ | — | **lint-gate** ⛔, **tauri-tsc** ⛔ | -| Memory/agent core | R3-001, R3-003 | R3-002 (code ok, no test) | **R3-004** (O(n·500) hot path) | -| Desktop lifecycle | R7-003, R7-004 | **R7-002** (orphan via tray Quit) | — | -| Deps supply-chain | R9-002/003/004/005/006/007/008/009 | — | **R9-001** (drizzle, deferred) | -| Frontend resilience | R4-001…R4-008, R5-001 | R5-002, R5-003 | **R5-006** (light-mode ~0.6%) | - -`*` = cluster verifier said *fixed*, but the adversarial skeptic found a concrete bypass. **Treat as open.** - ---- - -## 3. 🔴 NEW issues the adversarial pass surfaced (highest value — not in the original audit, or understated by it) - -These are the findings that *independent* verification bought you. None were caught by the same-agent self-grading. - -| # | Severity | Where | Issue | Fix | -|---|---|---|---|---| -| **AV-1** | **HIGH (default path!)** | `security-middleware.ts:289-290` | **Empty/absent `Host` header bypasses the DNS-rebinding allowlist in the DEFAULT 127.0.0.1 config.** `if (hostHeader && !ALLOW.has(hostHeader))` — empty string is falsy, so a `Host:`-less request (curl, HTTP lib) skips the check entirely. No env change needed. | Block on absent host too: `if (!hostHeader \|\| !ALLOW.has(hostHeader)) return 403`. | -| **AV-2** | **HIGH** | `local/routes/waggle-signals.ts:~89` | **`/api/waggle/stream` reflects `request.headers.origin ?? '*'`** as `Access-Control-Allow-Origin` — textbook origin-reflection. A page on `evil.com` can `EventSource` the full signal stream. Does NOT use the fixed `corsOriginAllowed`. | Route the SSE header through `corsOriginAllowed` / `validateOrigin` like chat.ts does. | -| **AV-3** | **HIGH (revenue)** | `local/routes/settings.ts:351-373` | **`PATCH /api/tier` writes any tier to `config.json` with no payment check and no auth** (localhost-trust exemption). Any local web page/extension/app can `PATCH {tier:'TEAMS'}` and unlock paid features for free. The R1-002 fix only guarded the `/stripe/sync` path — this sibling path is wide open. | Gate tier mutation behind verified Stripe state; remove the unauthenticated write path or require a signed token. | -| **AV-4** | MED (correctness) | `stripe/checkout.ts` + `stripe/index.ts:91-99` | **`billingPeriod` has no runtime validation** (TS-only type; Fastify doesn't enforce). And under the legacy single-var env contract, an `annual` request **silently resolves to the monthly price** — the test suite even asserts this as passing. | Validate `billingPeriod` enum at runtime; fail closed (or warn) when an annual request can't find an annual price. | -| **AV-5** | MED | `net-config.ts:23` | `isLoopbackBind()` strict-compares to `'127.0.0.1'` only, so **`WAGGLE_HOST=localhost` *or* `::1`** (both natural loopback choices) disable the entire Host allowlist. | Recognize `localhost`, `::1`, `::ffff:127.0.0.1` as loopback. | - -**Systemic root cause (the strategic one):** `security-middleware.ts` exempts *all* loopback connections from bearer auth. For a **desktop** product that runs next to browsers/extensions/other local apps, "local = trusted" means any of them can drive the authenticated API (AV-3 is the proof). This is the threat-model item to decide deliberately, not patch piecemeal — see PRODUCTION-PLAN Workstream A. - ---- - -## 4. ⛔ Ship blockers still open - -1. **lint-gate — NOT FIXED.** No root `eslint.config.*`; `npm run lint` (`eslint .`) aborts under ESLint 9 flat-config having linted **zero files**. The commit that closed build-gate issues *documented skipping this*. All of `packages/*`, `app/*` are unlinted in CI. -2. **tauri-tsc — NOT FIXED.** `app/tsconfig.json` still `"include": ["src"]`; `app/src/` doesn't exist → `TS18003`, zero type signal for the Tauri layer. `app/scripts/` + `app/tests/` TS is unchecked. - - → **Two of five gates report green by reporting nothing.** This is workstream-0. -3. **AV-1, AV-2, AV-3** above (default-path Host bypass; SSE origin reflection; unauthenticated tier escalation). - ---- - -## 5. 🟡 Partials (fix landed, but incomplete) - -- **R2-006** — same-origin gate + vault-key-names dropped ✅, but `/api/debug/logs` still `SELECT *`s 500 `install_audit` rows (capability installs w/ risk_level, approval_class) — recon material. Limit columns + rows. -- **R6-005** — both browse routes gated ✅, but `POST /api/browse/local/mkdir` does `mkdirSync(path.resolve(dirPath))` with **no root confinement** → can create dirs anywhere; no dedicated rate limit. -- **R1-011** — atomic temp+rename write ✅, idempotency list-check ✅, but **no mutex** → concurrent Stripe retry can race the read-check-write and double-process a tier-change event. Add a module-scoped promise queue. -- **R7-002** — `RunEvent::Exit` kill block exists ✅ **but is unreachable via the primary quit path**: tray "Quit Waggle" emits `waggle://quit` to a frontend with **no listener** (confirmed by grep), and window-close is prevented. User clicks Quit → sidecar orphaned on :3333 → next launch fails. Add `app.exit()` in the tray quit arm. -- **R3-002** — circular-dep duplicate-worker-id fixed in code ✅ but **no test** exercises the circular-dep path. -- **R5-002 / R5-003** — token renamed / container made semantic, but `--status-healthy` has **no light-theme value** and 10+ palette badges remain → still fails contrast on cream. - ---- - -## 6. ❌ Not fixed (deliberate or deferred) - -- **R6-007** — Zod schemas in `@waggle/shared` are used in *cloud* routes but **still not wired to the four local sidecar fs-write routes** (chat, tasks, ingest, documents) — they hand-roll checks. Traversal itself is guarded by `assertSafeSegment`, so this is **defence-in-depth / body-validation quality**, not an open traversal sink. -- **R3-004** — `frames.ts findDuplicate` still `SELECT *`s 500 rows and SHA-256-hashes each on **every** insert → O(n·500) event-loop block on large harvests. No `content_hash` column added. Hot-path perf/reliability. -- **R9-001** — `drizzle-orm@0.44.7` stays (GHSA HIGH). 0.44→0.45 major broke module resolution (19 test files), **honestly deferred**. Latent, not live: `sql.identifier` sink is absent from the codebase today. Needs a real migration + re-tsc before GA. -- **R5-006** — light mode is **~0.6% done**: 358 hardcoded palette classes across 62 files; only 2 converted. The whole light surface is effectively broken. -- **R5-004, R5-005** — a11y modals / window-control dots: never claimed fixed; **cannot determine** (out of scope of these commits). - ---- - -## 7. ✅ Genuinely closed (high confidence) — keep, don't re-litigate - -- **R1-001 default path** (127.0.0.1 bind via `resolveBindHost()`; `/health` no longer returns `wsSessionToken`) — solid for the default config (caveats AV-1/AV-5 are the *Host-allowlist* layer, not the bind/token leak). -- **fs-traversal**: R6-001/002/006/008, R1-004/005, R2-005 — `assertSafeSegment` at every route boundary + 6 dedicated traversal test files asserting 400 + no out-of-root artifact. Strong. -- **R3-001** (mock-embedder poisoning) — now reads `fastify.embeddingProvider`, skips indexing when mock, with a two-branch integration test. The memory-moat regression is genuinely repaired. -- **Deps**: protobufjs 7.6.1 (clears 9.8 RCE), js-cookie 3.0.8, lodash 4.18.1, tmp 0.2.7, fastify 5.8.5, @fastify/static 9.1.3, @clerk/fastify 3.1.32, @xmldom/xmldom 0.8.13 — single resolved installs, no shadow copies. (Recommend a live HTTP smoke for fastify/@fastify/static.) -- **Frontend resilience**: R4-001 (root + per-window error boundaries), R4-002 (real restore picker), R4-003…008 (async handlers wrapped + toasts), R5-001 (context-menu keyboard index) — well-executed, several with unit tests. -- **Desktop**: R7-003 (self-healing watchdog w/ backoff), R7-004 (updater slug correct in conf + release.yml). - -> Updater note: pubkey is set but `release.yml` writes `"signature": ""` for all platforms — signed auto-updates still can't verify. That's R7-008 (signing), tracked in the plan's Release workstream. - ---- - -## 8. What this means - -The fixing session did **strong, real work** — this is not a case of hollow commits. But it confirms the project's core risk pattern: **fixes are graded by the agent that wrote them, against the one path it was thinking about.** Independent adversarial review found the *sibling paths* (PATCH /api/tier vs /stripe/sync; waggle-signals vs chat SSE; empty-Host vs named-Host). That gap-class is exactly what the PRODUCTION-PLAN's verification workstream institutionalizes so it stops recurring. - -→ See `PRODUCTION-PLAN.md` for how these residuals sequence into the 1–2 month GA push. diff --git a/docs/guides/team-mode.md b/docs/guides/team-mode.md deleted file mode 100644 index e5a338c..0000000 --- a/docs/guides/team-mode.md +++ /dev/null @@ -1,202 +0,0 @@ -# Team Mode - -Waggle Team Mode lets multiple users share workspaces, assign tasks, see who is online, and govern agent capabilities through an admin dashboard. It runs as a separate server backed by PostgreSQL and Redis. - -## Architecture - -Team Mode adds a **team server** alongside the local Waggle server: - -- **Local server** (localhost:3333) -- your personal agent, memory, and workspace management -- **Team server** (your-server:3334) -- shared workspaces, presence, tasks, capability governance - -The desktop app connects to both. Local operations stay fast; team operations sync through the team server. - -## Docker Setup - -The simplest way to run the team server is with Docker Compose. - -### Prerequisites - -- Docker and Docker Compose installed -- An Anthropic (or other LLM) API key - -### Start the Services - -```bash -cd waggle-poc - -# Set your API key -export ANTHROPIC_API_KEY=sk-ant-your-key-here - -# Start PostgreSQL, Redis, and LiteLLM -docker compose up -d -``` - -This starts: -- **PostgreSQL** on port 5434 (user: `waggle`, password: `waggle_dev`, database: `waggle`) -- **Redis** on port 6381 -- **LiteLLM** on port 4000 (model proxy) - -### Start the Team Server - -```bash -cd packages/server -DATABASE_URL=postgresql://waggle:waggle_dev@localhost:5434/waggle \ -REDIS_URL=redis://localhost:6381 \ -npx tsx src/index.ts -``` - -The team server starts on port 3334 by default. - -## Cloud Deployment (Render) - -For a hosted team server: - -1. Create a new **Web Service** on Render from the waggle repository -2. Set the **Build Command**: `npm install && npm run build` -3. Set the **Start Command**: `cd packages/server && node dist/index.js` -4. Add environment variables: - - `DATABASE_URL` -- your PostgreSQL connection string - - `REDIS_URL` -- your Redis connection string - - `CLERK_SECRET_KEY` -- for authentication (Clerk) - - `CLERK_PUBLISHABLE_KEY` -- for client auth -5. Deploy - -## Connecting to a Team Server - -### From the Desktop App - -1. Go to **Settings** > **Team** -2. Enter the server URL (e.g., `https://your-team.render.com`) -3. Enter your authentication token -4. Click **Connect** - -Waggle validates the connection by hitting the team server's `/health` endpoint. - -### From the API - -```bash -curl -X POST http://localhost:3333/api/team/connect \ - -H "Content-Type: application/json" \ - -d '{"serverUrl": "https://your-team.render.com", "token": "your-auth-token"}' -``` - -## Shared Workspaces - -Team workspaces are created on the team server and synced to each member's local Waggle instance. - -### Creating a Team Workspace - -1. Connect to a team server (see above) -2. Press **Ctrl+N** to create a new workspace -3. Enable the **Team** toggle -4. Select the team and your role -5. Click **Create** - -### Memory Sync - -Team workspaces sync memory frames between members: -- When one member saves a decision, it appears in everyone's workspace mind -- Personal mind remains private -- only workspace mind is shared -- Author attribution shows who contributed each memory - -## Task Board - -Each team workspace has a task board for lightweight project management. - -### Creating Tasks - -```bash -curl -X POST http://localhost:3333/api/workspaces/{id}/tasks \ - -H "Content-Type: application/json" \ - -d '{"title": "Review Q1 metrics", "assigneeName": "Alice"}' -``` - -Or ask the agent: "Create a task for Alice to review Q1 metrics." - -### Task States - -Tasks move through three states: `open` -> `in_progress` -> `done`. - -### Filtering - -```bash -# Get all open tasks -curl "http://localhost:3333/api/workspaces/{id}/tasks?status=open" -``` - -## WebSocket Presence - -Team Mode uses WebSocket push with a 60-second polling fallback for presence: - -- See who is online in a shared workspace -- See who is actively typing -- Get real-time notifications for task assignments and team messages - -## Admin Dashboard - -Team admins access the admin dashboard at the team server URL. It provides: - -### Members Management -- View all team members and their roles (owner, admin, member, viewer) -- Invite new members -- Change roles - -### Capability Governance - -Two-layer governance model: - -**Layer 1: Role Policies** -Define which capabilities each role can use. Example: viewers can only use read tools, members can use write tools, admins can use all tools. - -**Layer 2: Per-Capability Overrides** -Fine-grained overrides for specific capabilities. Example: allow a specific member to use `send_email` even if their role policy doesn't include it. - -### Approval Request Queue - -When a member tries to use a capability they do not have: -1. The agent tool `request_team_capability` creates a request -2. The request appears in the admin queue -3. An admin approves or rejects it -4. The member is notified - -### Waggle Dance Messages - -View inter-agent communication in team workflows. The Waggle Dance protocol lets agents coordinate tasks, share findings, and report progress. - -## Capability Governance API - -```bash -# List role policies -curl http://localhost:3333/api/team/governance/policies - -# Create a policy -curl -X POST http://localhost:3333/api/team/governance/policies \ - -H "Content-Type: application/json" \ - -d '{"role": "member", "capabilities": ["read_file", "search_files", "search_memory"]}' - -# List pending capability requests -curl http://localhost:3333/api/team/governance/requests?status=pending - -# Approve a request -curl -X PATCH http://localhost:3333/api/team/governance/requests/{id} \ - -H "Content-Type: application/json" \ - -d '{"decision": "approved"}' -``` - -## Disconnecting - -```bash -curl -X POST http://localhost:3333/api/team/disconnect -``` - -This removes the team server configuration but preserves any local copies of team workspace data. - -## Team Server Status - -```bash -# Check connection status -curl http://localhost:3333/api/team/status -``` - -Returns the server URL, connection state, user ID, and display name. diff --git a/docs/handoffs/2026-04-30-overnight-handoff-for-morning.md b/docs/handoffs/2026-04-30-overnight-handoff-for-morning.md deleted file mode 100644 index 59c36b4..0000000 --- a/docs/handoffs/2026-04-30-overnight-handoff-for-morning.md +++ /dev/null @@ -1,90 +0,0 @@ -# Overnight Handoff — Marko Morning Wakeup 2026-05-01 - -**Datum:** Krajem 2026-04-30 (PM autonomous overnight rad) -**Za:** Marka, jutarnja sesija 1. maj -**Status sesije:** PM aktivan kroz noć, Marko spava; sve pripremljeno za bezbedan resume ujutro - ---- - -## §0 — UPDATE 02:00 — Marko ratifikovao "extra usage radi", PM nastavio dva ključna deliverable-a - -Marko se vratio kratko pre nego što je otišao da spava i rekao "ne probaj ti ima extra usage koji bi trebalo da radi, probaj sredi do kraja procitao sam i landing, zavrsi i to isto je na claude design". PM je krenuo u Computer Use kroz Chrome MCP i završio dva deliverable-a uprkos Claude Design 100% weekly limit warning-u (extra usage validirana — Marko-ova hipoteza tačna). - -**P0 Dock Global Position fix — DONE.** Claude Design CC izvela detaljnu dijagnostiku (JS inspection u live prototype-u, izmerene koordinate dock pill-a, root cause analiza), zaključila da je dock tehnički već globally fixed pre fix-a (Marko-ovo opažanje "dock prati window" bila je percepcijska iluzija jer Tweaks panel covers part of dock). Ipak primenila eksplicitan `position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%)` spec za clarity + macOS dock paradigm match. File changed: `shell.jsx`. Verifikacija screenshots saved u `screenshots/dock-fixed-tweaks-closed.png` i `screenshots/dock-fixed-tweaks-open.png`. Behavior: Tweaks closed → x=462px centered, Tweaks open → same x=462px (does NOT shift). - -**Waggle Landing.html — GENERATED.** Novi HTML page u Design Files PAGES section (22.3 KB), pun landing v3.1 spec primenjen: 8 sekcija (Hero + 3 Proof Cards + Two Wins + Architectural Separation + 3 Products + 3 Use Cases + Trust + Footer), dark navy bg #0A0E1A + warm beige text #F5E6D3 + orange CTA #ED915C, Inter typography, 1200px container, mobile-responsive 3-col grids. Hero verifikovano u canvas: H1 "Memory that makes any AI smarter.", subhead sa bold-highlighted "Claude 12.5 percentage points smarter" + "open-source Qwen 35B perform at Claude flagship level", LoCoMo + Mem0 reference present, [Join waiting list →] orange + [View on GitHub] ghost CTAs, "v0.9 — public preview opening soon" pill. Bonus dodaci od CC: dva data tabele pod Two Wins section, 4-cell L1-L4 architecture grid, v0.9 pill u nav i footer. - -**Tvoj jutarnji preusmeren put:** umesto da otvoriš landing v3.1 markdown spec u PM repo-u, otvori direktno Claude Design `?file=Waggle+Landing.html` da vidiš rendered live landing — scroll kroz sve 8 sekcija i daj feedback na visual ili copy. Plus otvori `?file=Waggle+Workspace+OS.html` da verifikuješ dock global position toggle. - ---- - -## §1 — Šta sam uradio dok si spavao (originalni plan, prošireno overnight) - -Tri stvari u redu prioriteta koja si dao ("killer landing... perfect UI/UX... e2e... testiranje memorije..."). - -**Prvo — Landing v3.1 refresh.** Postojeći v3 draft nadograđen sa tvojom noćnom direktivom "Qwen works as Claude, Claude works even better than simple Claude". Tri konkretne promene: hero subheadline dobio specifične brojeve (+12.5pp Claude smarter, Qwen 35B Claude-class na held-out), Proof Cards 2+3 reformulirane sa "translation for your boss" linijama koje pretvaraju tehnički nalaz u rečenicu koju čitalac može odmah preneti dalje, i dodata nova sekcija §2.5 "The two wins" koja kondenzuje oba findings u dva paragrafa za read-friendly mode čitaoca. Sve ostalo iz v3 draft-a (architectural separation, three products, use cases, trust, footer) ostaje identično. Fajl: `strategy/landing/2026-04-30-landing-v3.1-refreshed-overnight.md`. Spreman za tvoj 5-minutni jutarnji review + 10 ratification decisions iz §8.5 → claude.ai/design generation kickoff. - -**Drugo — Live memory test skripta.** Draftovao sam 10-koračnu skriptu za našu zajedničku live test sesiju. Pokriva svih 10 audit gap-ova (G1-G10) iz tvog 2026-04-29 audit dokumenta plus coexistence verifikaciju (Claude Code MEMORY.md + hive-mind sqlite paralelno) plus tipičan dnevni workflow simulaciju. Trajanje 60-90 min, output je session report koji postaje §0 evidence base za Wave 1.5 brief. Najduži korak je G7 hash file portability (10 min) jer je to load-bearing infrastruktura post coexistence LOCK. Predložio sam 4 slot opcije (1-3. maj AM/PM) — biraj jedan ujutro i šaljemo dalje. Fajl: `strategy/e2e-testing/2026-04-30-night-memory-live-test-script-draft.md`. - -**Treće — Memory updates locked.** Tri nove memorije sačuvane u trajni store: `feedback_memory_systems_coexistence.md` (coexistence kao trajna arhitekturalna odluka), `project_cc_sesija_b_closed_2026_04_30.md` (CC B završetak sa svim deliverables i Day 0 push gate koracima), `project_pre_launch_priorities_2026_04_30.md` (tvoja noćna 4-prioritetna mapa + Gaia2 conditional pending status). MEMORY.md indeks ažuriran. - ---- - -## §2 — Šta NISAM uradio dok si spavao (svesno parkirano) - -**Hermes intel integration u canonical competitive doc.** Pomenuo sam ovo kao paralelni rad, ali sam zaključio da ne treba da ga uradim noćas iz dva razloga: prvo, nemam direct access read-write u canonical doc (trebao bih CC ili manual paste — efikasnije je da se to uradi tokom dana sa tvojim sign-off-om); drugo, postoji risk da Hermes intel framing bude inkonsistentan sa landing v3.1 ako jedan dokument autorizujem a drugi ne — bolje da idu zajedno kroz tvoj review. - -**Claude Design Pass 2 review.** Čekam — kao što si rekao da sačekam — Claude Design CC završetak current "Editing shell.jsx" workflow-a pre nego što otvorim novi review pass. Ako ujutro vidim da je status "Done", krećem odmah sa Pass 2 (Computer Use, ~30-45 min). - -**Wave 1.5 brief autoring.** Ostaje queued iza live memory test sesije po tvojoj odluci ("stavi u red, prvo testirmo pa onda dalje"). Skripta spremna, brief autoring čeka real findings. - ---- - -## §3 — Šta TI treba da uradiš ujutro (po prioritetu) - -**Prvo — 5 min jutarnji landing review.** Otvori `strategy/landing/2026-04-30-landing-v3.1-refreshed-overnight.md`, pročitaj §0 (šta je promenjeno) + §1 (hero refresh) + §2.5 (nova sekcija) + §8.5 (10 ratification decisions). Reci mi YES/NO/MODIFIKUJ za svaku od 10 odluka. To je gate za claude.ai/design generation kickoff — kad ratifikuješ, ja idem da generišem brief. - -**Drugo — Slot za živi memory test.** Otvori `strategy/e2e-testing/2026-04-30-night-memory-live-test-script-draft.md` §5, izaberi jedan od 4 ponuđena slot-a (1, 2, ili 3. maj AM/PM). To je gate za Wave 1.5 brief koji je gate za clean memory story Day 0. - -**Treće — Provera Claude Design statusa.** Ako možeš pre nego što me zoveš, baci pogled na Claude Design panel da vidiš da li je current "Editing shell.jsx" workflow završen — to mi kaže da li mogu odmah u Pass 2 review ili treba da čekam dalje. - ---- - -## §4 — Stanje četiri prioriteta (tvoja noćna 4-mapa) - -1. **Killer landing** — v3.1 refresh ready za tvoj review + ratifikaciju, claude.ai/design generation kickoff posle ratifikacije -2. **Perfect UI/UX** — Claude Design CC u toku, čekam završetak za Pass 2; tvoj P0 dock global position još uvek non-verified u panel-u (treba pratiti) -3. **E2E testing** — 3 persona scripte iz overnight 2026-04-25 deliverables ready, kreće posle Wave 1.5 + apps/www landing live -4. **Memory live test** — skripta draftovana, čeka tvoj slot + ratifikacija - -**Gaia2 conditional pending** — ako tokom landing finalize-a ispadne da dva proof point-a (LoCoMo + GEPA) nisu dovoljno jaki, revisit pre Day 0. Inače ostaje post-launch. - ---- - -## §5 — Day 0 readiness state na 1. maj jutro - -Konsolidacioni memo (`decisions/2026-04-30-pre-launch-sprint-consolidation-LOCKED.md`) je izvor istine za 9 paralelnih track-ova i ETA 8-12 dana. Stanje na 1. maj jutro: - -- Track A (Waggle apps/web) — CC A done, integration pending posle Wave 1.5 -- Track B (hive-mind monorepo) — CC B done, push gate na tvojoj strani -- Track C (Gaia2) — CC C closed, post-launch deferred -- Track D (Landing) — v3.1 ready za design generation -- Track E (arxiv) — skeleton ready, čeka tvoju 7-decision ratifikaciju -- Track F (UI/UX) — Pass 1 done, Pass 2 pending Claude Design CC završetak -- Track G (E2E persona) — scripte ready, kreće posle apps/www live -- Track H (Hermes intel) — entry written, integration u canonical doc pending -- Track I (Stripe/Legal) — tvoja strana, paralelno - -Ne stojimo loše. Treba još 4-7 dana focused rada + tvoje strane Day 0 tasks (OSS push, landing deploy, Stripe, legal) i možemo u launch prozor 8-12. maj. - ---- - -## §6 — Sources - -- [Landing v3.1 Refresh](computer://D:\Projects\PM-Waggle-OS\strategy\landing\2026-04-30-landing-v3.1-refreshed-overnight.md) -- [Memory Live Test Script](computer://D:\Projects\PM-Waggle-OS\strategy\e2e-testing\2026-04-30-night-memory-live-test-script-draft.md) -- [This handoff](computer://D:\Projects\PM-Waggle-OS\handoffs\2026-04-30-overnight-handoff-for-morning.md) - ---- - -**Lepo spavanje. Vidimo se ujutro.** diff --git a/docs/handoffs/2026-05-01-end-of-day-handoff.md b/docs/handoffs/2026-05-01-end-of-day-handoff.md deleted file mode 100644 index ed95ad7..0000000 --- a/docs/handoffs/2026-05-01-end-of-day-handoff.md +++ /dev/null @@ -1,87 +0,0 @@ -# End-of-Day Handoff — Marko Sutra Ujutro 2026-05-02 - -**Datum:** 2026-05-01 kasno noć (03:11 CET kad CC zatvorio Block C, ti otišao spavanje malo posle) -**Za:** Marka, jutarnja sesija 2. maj -**Status:** apps/web shipping-ready; landing v3.2 next critical path; sve ostalo parked - ---- - -## §0 — TL;DR - -Apps/web layer je production-ready. Pass 7 PASS, Block C state restore done, production backend live sa WAGGLE_PROMPT_ASSEMBLER=1, /health 200, frameCount 9 production data. CC standing down. Sutra otvaramo landing v3.2 sesiju zajedno — to je sledeći critical-path item pre Day 0 launch (ETA još 7-11 dana). - -Nema P0 nerešenih stvari. 3 P2/P3 friction notes deferred u Day-2 backlog (kosmetika + edge case Replay tour fix). Sve čeka tebe ujutro za pokretanje landing v3.2 sesije. - ---- - -## §1 — Šta se desilo danas (sažeto) - -Dan je bio Block A friction batch (25 frikcija iz Pass 1-6 zatvorenih) → Block B Phase 1 addiction features (Tour Replay + Imports Reminder shipped) → Block B Day-2 backlog autoring → Pass 7 verifikacija (9/9 PASS) → Block C state restore. - -Glavni breakthrough nije bio code, nego: **wizard ima 8 koraka stvarno (kao što si rekao)** — moja prethodna PM mapa od 4 surface-a bila je posledica auto-complete branch-a u `useOnboarding.ts:77-106` koji bypassuje wizard kad postoje workspaces. Investigation dokumentovana u `docs/ONBOARDING-INVESTIGATION-2026-04-30.md`. Sa `?forceWizard=true` URL paramom (dev-gated) verifikovali smo svih 8 koraka renderuju clean, transparent crna pozadina, FR#33 round 3 finally klin. - -PromptAssembler v5 (GEPA Faza 1 +12.5pp) **wired in production** kroz commit d619542 — prethodno je ostao u eval env-u, sada je live u backend chat + spawn paths. To znači da launch claim "+12.5pp Claude smarter" nije više samo eval rezultat nego production-validated. - -Spend ovaj round: **~$0** (Block A/B/C su pure code + docs + routine, nije bilo LLM evaluacija). - ---- - -## §2 — Stanje ka launch-u - -| Track | Status | Akcija | -|-------|--------|--------| -| A — apps/web | SHIPPING-READY | Done, deferred FR Pass7-A/B/C u Day-2 | -| B — hive-mind monorepo | Push gate na tvojoj strani | 4 gh komande + PR #1 merge — non-blocking | -| C — Gaia2 | Post-launch deferred | — | -| D — Landing v3.2 | NEXT CRITICAL | **Sutra ujutro sa Markom** | -| E — Arxiv | Skeleton ready | Čeka tvoju 7-decision ratifikaciju | -| F — UI/UX Pass 2 | Done | — | -| G — E2E persona | Scripte ready | Kreće posle landing v3.2 + apps/www live | -| H — Hermes intel | Entry written | Integration u canonical doc pending | -| I — Stripe/Legal | Tvoja strana | Paralelno | - -ETA Day 0 launch: **7-11 dana** (8-12 dana po prethodnom konsolidacionom memo-u, minus 1 jer je Wave 1 substantively done). - ---- - -## §3 — Šta TI radiš ujutro (po prioritetu) - -**Prvo — landing v3.2 sesija sa mnom (30-45 min).** Ja predlažem 3-koračni plan koji sam ti dao u poslednjem odgovoru pre nego što si rekao spavanje: - -1. Korak 1 (5 min): Otvorim Claude Design `Waggle Landing.html` u Chrome MCP, snapshot trenutne copy across svih 8 sekcija. -2. Korak 2 (10 min): Side-by-side sa v3.1 markdown spec-om (`strategy/landing/2026-04-30-landing-v3.1-refreshed-overnight.md`), filter 10 ratification decisions na primenjene vs open. -3. Korak 3 (15 min): Authoring v3.2 delta brief — current state vs proposed change po sekciji, sa 3 utiska iz Pass 7 integrisana (Memory app 17 platforms = "all your AI on one place" valid claim, Tour Replay + Imports Reminder = continuity-by-design copy line, wizard-renders-alone = macOS-grade onboarding moment), plus prioritization must-change vs nice-to-have. - -Output je ratificirani v3.2 delta brief spreman za CC apps/www Next.js port kickoff. - -**Drugo — slot za živi memory test (5 min odluka).** Skripta i dalje stoji u `strategy/e2e-testing/2026-04-30-night-memory-live-test-script-draft.md` §5. Imaš 4 ponuđena slota (1, 2, ili 3. maj AM/PM) — danas je već prošao 1. maj noćna polovina, pa biraj između preostala 3 slota. To je gate za Wave 1.5 brief koji je gate za clean memory story Day 0. - -**Treće — odluči o Block B push gate (10 min).** Pre Day 0 moraš: (a) izvršiti 4 gh komande za hive-mind subtree-split push, (b) merge-ovati PR #1 (sibling sync hook). Non-blocking dok ne stignemo do landing live, ali bolje da ih završimo pre kraja nedelje da CC ima clean monorepo state za apps/www port. - ---- - -## §4 — Šta NISAM uradio dok si spavao - -Pošto si rekao spavanje pre nego što smo počeli landing v3.2 sesiju, ja **NISAM autonomno krenuo** da otvaram Claude Design ili da pišem v3.2 delta brief. Razlozi: - -Prvi — landing copy je tvoja strateška odluka, ne PM execution task. Treba mi tvoj direktan input na svaku od 10 ratification decisions, a not noćni jednostrani draft koji ti ujutro mora da prevartiš. - -Drugi — 3 utiska iz Pass 7 (Memory 17 platforms, addiction features, wizard alone) trebaju tvoj sign-off pre integracije, jer "collector positioning" i "continuity-by-design" su brand-level pomaci koji utiču i na arxiv i na KVARK pitch dalje. - -Treći — Hermes intel integration u canonical competitive doc je takođe parked, isti razlog kao prošle noći (treba ići zajedno sa landing finalize-om kroz tvoj review da framing bude konzistentan). - -CC je primio uputstvo da napiše svoj session handoff u waggle-os repo (`docs/sessions/2026-05-01-S1-handoff.md`) — to je njihov audit trail, paralelan sa ovim. Ako ti zatreba njihov side, tamo je. - ---- - -## §5 — Sources - -- [PM Pass 7 + Block C memory entry](computer://C:\Users\MarkoMarkovic\AppData\Roaming\Claude\local-agent-mode-sessions\e2d5241a-93ad-452a-9146-f5ad0c7cf5fd\ffbb9f0b-ff93-4868-b621-0772605ae5e9\spaces\3f2d6e44-70b5-4df1-a6bd-2dedc376f48f\memory\project_pass7_block_c_closed_2026_05_01.md) -- [Friction log §99 Pass 7 update](computer://D:\Projects\PM-Waggle-OS\strategy\e2e-testing\2026-05-01-friction-log.md) -- [Landing v3.1 markdown spec](computer://D:\Projects\PM-Waggle-OS\strategy\landing\2026-04-30-landing-v3.1-refreshed-overnight.md) -- [Memory live test script](computer://D:\Projects\PM-Waggle-OS\strategy\e2e-testing\2026-04-30-night-memory-live-test-script-draft.md) -- [This handoff](computer://D:\Projects\PM-Waggle-OS\handoffs\2026-05-01-end-of-day-handoff.md) - ---- - -**Lepo spavanje. Vidimo se ujutro za landing v3.2.** diff --git a/docs/handoffs/2026-05-02-day-0-readiness-checklist.md b/docs/handoffs/2026-05-02-day-0-readiness-checklist.md deleted file mode 100644 index 8f197ae..0000000 --- a/docs/handoffs/2026-05-02-day-0-readiness-checklist.md +++ /dev/null @@ -1,73 +0,0 @@ -# Day 0 Readiness Checklist — 2026-05-02 Jutro - -**Datum:** 2026-05-02 jutro CET -**Status:** Sprint Day +2 od pre-launch konsolidacionog memo (2026-04-30) -**ETA Day 0:** 6-10 dana (8-12. maj prozor) -**Cilj ovog dokumenta:** vidljivost svih 9 paralelnih track-ova + jasna preporuka šta ide sledeće danas - ---- - -## 9 paralelnih track-ova — status - -| Track | Naziv | Status | Action owner | ETA | -|-------|-------|--------|--------------|-----| -| **A** | apps/web (Workspace OS) | 🟢 SHIPPING-READY | — | done (Pass 7 + Block C) | -| **B** | hive-mind monorepo OSS | 🟡 Push gate parkiran do Day 0 minus 1 | **MARKO** | 30-60 min Day 0 prep | -| **C** | Gaia2 ARE | ⚫ Post-launch deferred | — | not v1 | -| **D** | Landing v3.2 → apps/www port | 🟡 §1+§2 done (commit c4b0c04), §3 i18n+Stripe+Lighthouse u toku | CC + PM standby | ~60-90 min remaining | -| **E** | Arxiv preprint | 🟢 7-decision RATIFIED CLOSED 2026-05-02; A+D path locked; drafting can start, ne blokira Day 0 | **MARKO sutra** Pavlukhin EVOLVESCHEMA + PM drafting | 7-9 dana drafting + 5-6 dana endorsement (Path A) | -| **F** | UI/UX Pass 1+2 | 🟢 Done | — | done | -| **G** | E2E persona scripte | 🟡 Scripte ready, kreće posle apps/www live | PM (post-D) | tbd | -| **H** | Hermes intel canonical doc | 🟢 CLOSED 2026-05-02 sa 6 surgical edits u canonical doc | — | done | -| **I** | Stripe + legal pages | 🟡 Stripe sutra ponedeljak (finance ekipa), legal Marko-side TBD | **MARKO ponedeljak+** | varies | -| **NEW** | **Methodology markdown doc** (Path D Trust Band swap target) | 🟡 Mora biti live u OSS repo pre Day 0 | **PM** | 30-45 min draft | - -**Legenda:** 🟢 done · 🟡 in-flight ili pending · 🔴 blocked · ⚫ deferred - ---- - -## Šta je smart paralelno DANAS (dok CC u Sesija D) - -### Marko-side action queue (može odmah, ne čeka mene) - -1. **Track B push gate** (5 min) — `cd D:\Projects\waggle-os && git push`. To ti je urađeno za apps/www port, ali subtree split scripts za hive-mind OSS mogu se izvršiti paralelno. Plus PR #1 (sibling sync hook) za merge u hive-mind. Non-blocking ali bolje da zatvorimo pre Day 0 checkliste. - -2. **Track I Stripe keys** (15-30 min) — paste real Stripe live keys u Vercel env (ili wherever production env lands). CC u Sesija D koduje internal /api/stripe/checkout sa placeholders; tvoja akcija je da prebaci pk_test_REPLACE_ME → pk_live_xxx + sk_test_REPLACE_ME → sk_live_xxx pre nego što landing ide live. - -3. **Track I legal pages** (1-2h) — privacy.md, terms.md, cookies.md, EU AI Act statement. Mogu biti templated iz Egzakta Group postojećih advisorska legal materijala. CC pravi /app/(legal)/ folder strukturu u Sesija D, ali content stringovi su Marko-side (jurisdikcija + Egzakta entity references). - -### PM-side queue (ja vodim solo dok CC radi) - -4. **Track H Hermes intel integration** (30-45 min) — autorajem update postojećeg canonical competitive doc-a sa Hermes findings. Tightens competitive moat narrative pre Day 0. Cilj: Hermes findings live u canonical reference koji se koristi za KVARK pitch + arxiv §6 + landing trust signals. - -5. **Memory entry consolidation** (15 min) — MEMORY.md indeks sad raste, treba pruning + reorganizacija po prioritetu. Cleanup batch zadatak. - -### Interactive queue (treba Marko bandwidth) - -6. **Track E arxiv 7-decision ratification** (30-45 min) — slično kao landing v3.2 sesija danas, ja izvučem 7 decisions iz arxiv skeleton, ti ratifikuješ jednu po jednu, output je v1 ratified arxiv outline spreman za section-by-section drafting. Pre-launch dependent (arxiv preprint link je u Trust Band card u landing-u). - -7. **Memory live test sesija** (60-90 min) — skripta iz overnight 2026-04-30 spremna, čeka tvoj slot. Output je session report koji postaje §0 evidence base za Wave 1.5 brief. - -8. **Wave 1.5 Memory Architecture Fix brief** (45-60 min) — može doći posle memory live test, ja autorajem brief za P0+P1 memory architecture audit gaps. Gate za clean memory story Day 0. - ---- - -## Moja preporuka za sledeći potez - -**Tri stvari u paraleli (ti + ja, dok CC dovršava §1-§4 apps/www port):** - -1. **Marko:** kreni Track I Stripe keys (15 min) i Track B push gate (5 min) odmah. To je ~20 min Marko-side rada, niko te ne blokira, neutralizuje 2 launch-blocking stavke. - -2. **PM (ja):** krećem Track H Hermes intel integration (30-45 min) odmah. Ne treba tvoja bandwidth, izvedem self-contained, output je gotov updated competitive doc. - -3. **Posle ~30-45 min** — sastajemo se za Track E arxiv 7-decision ratifikaciju (30-45 min interactive). Do tog momenta CC će biti negde u §2 component port (50-70% kroz total). Ti vidiš CC progress notif paralelno. - -**Posle arxiv ratifikacije** (~12:00-13:00 ako krećemo sad oko 9-10 ujutro), zavisno od CC stage: -- Ako CC završio Sesija D → krećemo PM Pass 8 + memory live test slot -- Ako CC još u toku → memory live test može da krene, Pass 8 sutra ujutro - -**Ne sad:** Track G E2E persona scripte (čeka apps/www live), Wave 1.5 Memory brief (čeka memory live test findings), Track C Gaia2 (post-launch). - ---- - -**Pitanje za tebe:** krećemo paralelno (ti Stripe+push, ja Hermes intel)? Ili predlažeš drugačiji order? diff --git a/docs/handoffs/2026-05-26-technical-team-handoff.md b/docs/handoffs/2026-05-26-technical-team-handoff.md deleted file mode 100644 index e7e383f..0000000 --- a/docs/handoffs/2026-05-26-technical-team-handoff.md +++ /dev/null @@ -1,952 +0,0 @@ -# Waggle OS — Technical Team Handoff -**Date:** 2026-05-26 · **From:** Marko Marković (Founder/PM, Egzakta Group) · **HEAD:** `9902906` · **Branch:** `main` - -> **Purpose.** Onboard a senior engineer (or team) to Waggle OS in one focused session. After reading this you can find anything in 30 minutes, understand the moat, know the operating contract, and pick up real work the same day. - -> **Status.** Engineering critical path is closed. Launch is overwhelmingly gated on Marko's external actions (M5/M8/M9/M10). AI-OS arc fully shipped end-to-end. Two co-equal benchmark pillars hit publishable numbers. - -> **How to use this doc.** Sections 1-2 are required reading. Section 3 is required if you'll touch code (the operating contract is load-bearing). Sections 4-5 are pick-list / priority. Sections 6-11 are reference. - ---- - -## Table of contents - -1. Mission & strategic frame -2. **ARCHITECTURE** — stack, topology, subsystems, data flows, security -3. **DEVELOPMENT** — build/deploy, testing, OSS sync, operating contract, code patterns, eval stack -4. **BACKLOG** — P0 blockers → in-session engineering → verification → Marko-gated → multi-week → deferred -5. **UX IMPROVEMENTS** — detailed by surface -6. Risks, known issues, tech debt -7. Strategic decisions pending (Marko) -8. Onboarding checklist (Day 1 / Week 1 / Week 2) -9. Canonical file index -10. Rollback safety -11. Glossary - ---- - -## 1. Mission & strategic frame - -**Waggle OS** is a workspace-native AI agent platform with persistent memory. Tauri 2.0 desktop binary (Windows + macOS), Vite-bundled web app, Node.js Fastify sidecar. - -**Strategic role:** Waggle is the **demand-generation + qualification engine** for **KVARK** — Egzakta Group's sovereign enterprise AI platform (~EUR 1.2M contracted ARR). Free Waggle users with the right harvest signature become qualified KVARK enterprise leads. - -### Tiers (canonical in `packages/shared/src/tiers.ts`) - -| Tier | Price | Purpose | -|---|---|---| -| TRIAL | $0 / 15 days | All features unlocked; falls back to FREE | -| FREE | $0 forever | 5 workspaces, agents, built-in skills only | -| PRO | $19/mo | Unlimited, marketplace, all connectors | -| TEAMS | $49/mo per seat | Shared workspaces, WaggleDance, governance | -| ENTERPRISE | Consultative | KVARK sovereign on-prem (www.kvark.ai) | - -### Moat strategy (memorize this) - -1. **Memory + Harvest = free forever.** Lock-in moat. Users won't leave their memory. -2. **Agents = free.** They *generate* memory. -3. **Skills + connectors = upgrade trigger.** Marketplace + 30+ connectors gate at PRO. -4. **Shared workspaces + WaggleDance + governance = TEAMS.** -5. **Sovereign on-prem = KVARK.** Same product, customer infra, governance + audit trail. - -### Substrate claims (publicly published, verified, peer-reviewable) - -- **C-1 LoCoMo memory benchmark:** **67.8% strict / 70.0% majority trio-strict**, vs Mem0 paper baseline. Published at `marolinik/hive-mind` v0.3.0 → `benchmarks/locomo/RESULTS.md`. -- **C-2 substrate claim:** Stage 3 v6 N=400, **Fisher one-sided p = 8.07 × 10⁻¹⁸**, +19.25pp retrieval-vs-no-context. See `waggle-os-gaia2-wt/benchmarks/results/stage3-n400-v6-final-analysis.md`. -- **C-3 GAIA 2 harness benchmark (ARE-native):** **N=160 = 83.8% strict / 86.5% judged-only** — on par with Hermes 89.2% trio-strict at N=40. See `waggle-os-gaia2-wt/benchmarks/gaia2/PHASE-4-P4.5-RESULTS-N160-2026-05-22.md`. -- **Pillar 2 LongMemEval (current):** Blend-tuned **75.2% trio-strict N=100**, above LoCoMo 67.8%. N=500 scale-up pending. - -**Translation:** Waggle's memory substrate beats the published memory SOTA, and its agent harness sits on the SOTA frontier. Both numbers are defensible under matched protocols. - ---- - -## 2. ARCHITECTURE - -### 2.1 Tech stack (verified 2026-05-26) - -| Layer | Stack | Notes | -|---|---|---| -| Desktop shell | Tauri 2.0 (Rust) | `app/src-tauri/`, capabilities allowlist explicit | -| Web app (UI) | React 19 + TypeScript + Vite + Tailwind 4 + base-ui/react | Lives in `apps/web/`, NOT `app/` | -| Landing page | Same React stack | `apps/www/` (waggle-os.ai) | -| Backend | Fastify sidecar (Node ≥20) | Bundled into Tauri; also runs standalone for dev | -| LLM routing | LiteLLM | Config at `litellm-config.yaml`. 3-layer routing: built-in proxy → LiteLLM → echo | -| Database | SQLite via `better-sqlite3` + `sqlite-vec-windows-x64` | Per-workspace `*.mind` files | -| Memory | FrameStore + HybridSearch (FTS5 + vec0 fused via RRF) + KnowledgeGraph + IdentityLayer + AwarenessLayer | All in `packages/hive-mind-core` | -| Agent runtime | `packages/agent/src/agent-loop.ts` | Persona-aware tool filtering, cost tracking, injection scanning | -| Billing | Stripe `^21.0.1` | Webhook tier enforcement live, 4-var price contract | -| Auth | Clerk (apps/www) + local-only (Waggle desktop) | Desktop has no remote login | -| Design system | Hive DS — honey `#e5a000`, hive-950 `#08090c`, accent `#a78bfa` | Tokens in `apps/web/src/waggle-theme.css` | -| Tests | Vitest (unit) + Playwright (E2E + visual) | 6610/6611 pass with Docker stack up | -| Deploy | Dockerfile + docker-compose.production.yml + render.yaml | For sidecar; binary ships standalone | - -**Package manager:** npm (root) with `bun.lock` also present. Workspaces in root `package.json`. - -### 2.2 Repository topology - -**Top level:** -``` -waggle-os/ -├── app/ # Tauri desktop shell (minimal React surface, cockpit only) -├── apps/ -│ ├── web/ # MAIN web app UI — desktop OS feel, all 21 OS apps -│ └── www/ # Landing page (waggle-os.ai) -├── packages/ # 27 workspace packages (see 2.4) -├── sidecar/ # Node.js sidecar bundled into Tauri -├── scripts/ # build-sidecar, bundle-native-deps, bundle-node -├── tests/ # Cross-cutting integration tests -├── docs/ # ARCHITECTURE.md, WAGGLE-CORNERSTONE.md, plans/, handoffs/ -├── docker-compose.yml + .production.yml + Dockerfile + render.yaml -├── litellm-config.yaml -└── package.json (workspaces: apps/*, packages/*) -``` - -**Where the UI lives:** -- `app/src/` — **minimal**, Tauri shell cockpit components only -- `apps/web/src/components/os/` — **the real UI**. Desktop OS metaphor: dock, windows, apps, overlays -- `apps/web/src/components/os/apps/` — 21 OS apps (MemoryApp, ChatApp, DashboardApp, WaggleDanceApp, LauncherApp, etc.) -- `apps/web/src/components/os/overlays/` — OnboardingWizard, PersonaSwitcher, Spawn Agent dialog -- `apps/web/src/components/ui/` — shared primitives - -### 2.3 System diagram (text) - -``` - ┌────────────────────────────────────────────────┐ - │ USER (desktop binary) │ - └───────┬────────────────────────────┬───────────┘ - │ React 19 events │ OS dock launches - ▼ ▼ - ┌───────────────────────┐ ┌────────────────────────────┐ - │ apps/web (Vite SPA) │ │ External AI tools: │ - │ 21 OS apps, dock, │ │ Claude Code · Cursor │ - │ overlays, wiki UI │ │ Claude Desktop · Codex … │ - └──────┬────────────────┘ └──────────┬─────────────────┘ - │ fetch / SSE │ SessionStart / Stop / etc. - ▼ ▼ - ┌───────────────────────────────────────────────────────────┐ - │ FASTIFY SIDECAR (packages/server) │ - │ /api/chat · /api/tools/* · /api/waggle-dance/* · │ - │ /api/memory/* · /api/stripe/webhook · /api/agents/* … │ - └──┬────────────────┬─────────────────┬──────────────┬──────┘ - │ │ │ │ - ▼ ▼ ▼ ▼ - ┌──────────────┐ ┌─────────────┐ ┌──────────────┐ ┌──────────┐ - │ AGENT LOOP │ │ HARVEST │ │ HIVE-MIND- │ │ STRIPE │ - │ (packages/ │ │ pipeline │ │ CORE │ │ Vault │ - │ agent) │ │ + adapters │ │ (mind/) │ │ Tiers │ - └──┬───────────┘ └──┬──────────┘ └──┬───────────┘ └──────────┘ - │ │ │ - │ LiteLLM │ frames │ Persistent SQLite - ▼ ▼ ▼ - ┌──────────────────────────────────────────────────────────────┐ - │ Per-workspace *.mind files (SQLite) │ - │ frames · entities · concepts · sessions · vec0 embeddings │ - └──────────────────────────────────────────────────────────────┘ -``` - -Plus the **AI-OS arc** (cross-tool bus): -``` -External tool Stop hook → shim-core emitter → POST /api/waggle-dance/signal - → SignalBus (500-entry ring buffer) → WaggleDanceDispatcher - → bridge re-emits via existing /api/waggle/signals SSE stream - → WaggleDanceApp UI surfaces cross-tool activity in real time -``` - -### 2.4 Subsystem map — what each package does - -**27 packages, grouped by concern:** - -#### Memory + harvest (the moat) -| Package | Role | -|---|---| -| `hive-mind-core` | Extracted `mind/` + `harvest/` substrate. Shared with OSS at `marolinik/hive-mind` v0.3.0. **Touch with care — parity gate enforced.** | -| `hive-mind-shim-core` | Foundation layer used by every tool hook. Exposes `cli-bridge`, `frame-encoder`, `importance-classifier`, `prompt-summarizer`, `workspace-resolver`, `signal-emitter` (Phase 1D) | -| `hive-mind-cli` | Programmatic + interactive CLI. Hooks shell out to this | -| `hive-mind-mcp-server` | Canonical MCP server. Any MCP-aware tool can read/write hive-mind via stdio | -| `hive-mind-wiki-compiler` | Compiles harvested frames → entity / concept / synthesis wiki pages | -| `memory-mcp` | Standalone MCP server (predecessor; check overlap with hive-mind-mcp-server before extending) | - -#### Hook packages (7 × tools — reversible byte-identical install) -| Package | Tool | Status | -|---|---|---| -| `hive-mind-hooks-claude-code` | Claude Code | **Wave 1 shipped** — full SessionStart + UserPromptSubmit + Stop + PreCompact + Phase 1E signal emit | -| `hive-mind-hooks-claude-desktop` | Claude Desktop | **Stub (`export {}`)** — Wave 2 deferred | -| `hive-mind-hooks-cursor` | Cursor | **Stub** — Wave 2 deferred | -| `hive-mind-hooks-codex` | Codex CLI | **Stub** — Wave 2 deferred | -| `hive-mind-hooks-codex-desktop` | Codex Desktop | **Stub** — Wave 2 deferred | -| `hive-mind-hooks-hermes` | Hermes | **Stub** — Wave 3 deferred | -| `hive-mind-hooks-openclaw` | OpenClaw | **Stub** — Wave 3 deferred | - -**Important asymmetry:** all 7 tools *launch* and *install hooks* via LauncherApp; only `claude-code` *captures*. This is deliberate — wait for Wave 1 usage feedback before committing to 6 more multi-day implementations. - -#### Agent runtime -| Package | Role | -|---|---| -| `agent` | **94+ .ts files**. Agent loop, orchestrator, personas, tools, evolution, capability/trust, cost tracking. Most active package. See 2.5.3 | -| `waggle-dance` | Cross-tool / multi-agent coordination protocol. 10 subtypes, dispatcher routes broadcasts. Phase 1A wired all 6 v2 subtypes | -| `worker` | BullMQ workers + dispatch handlers (waggle-handler, etc.) | - -#### Plumbing -| Package | Role | -|---|---| -| `server` | Fastify sidecar. Routes, services, decorators (signalBus, traceStore, evolutionStore, activeBehavioralSpec) | -| `core` | Legacy bridge package. **Has `mind/` + `harvest/` here too** — being phased out as content moves to `hive-mind-core`. Check both before editing | -| `shared` | Types, constants, Zod schemas, `tiers.ts`, `mcp-catalog.ts`, `tool-detection.ts` | -| `sdk` | TypeScript SDK for Waggle API | -| `ui` | Shared UI primitives package | - -#### Surfaces -| Package | Role | -|---|---| -| `admin-web` | Admin dashboard (separate from main `apps/web`) | -| `cli` | `npx waggle` user-facing CLI launcher | -| `launcher` | Currently: thin CLI launcher only (the AI-OS LauncherApp lives in `apps/web/src/components/os/apps/LauncherApp.tsx`) | -| `marketplace` | Skill marketplace package | -| `optimizer` | Optimization / GEPA tooling | -| `weaver` | Workflow weaving (check source for current role) | -| `wiki-compiler` | Older wiki compiler (overlap with `hive-mind-wiki-compiler` — check) | - -### 2.5 Critical subsystems — deep dive - -#### 2.5.1 Memory substrate (`hive-mind-core/src/mind/`) - -The single most load-bearing subsystem. **It IS the moat.** Read `docs/memory-architecture.md` before changing anything here. - -**Layers:** -- **FrameStore** (`frames.ts`) — I/P/B frame model (Immediate / Persistent / Background) with compaction + dedup -- **SessionStore** (`sessions.ts`) — session lifecycle; `ensureActive()` is the entrypoint -- **HybridSearch** (`search.ts`) — FTS5 keyword search + sqlite-vec vector search **fused via Reciprocal Rank Fusion** -- **KnowledgeGraph** (`knowledge.ts`) — entities + relations with **bitemporal validity** -- **IdentityLayer** (`identity.ts`) — persistent user identity, populated from harvest -- **AwarenessLayer** (`awareness.ts`) — active task / state tracking -- **ConceptTracker** + **EntityNormalizer** — dedup the KG -- **Embedding providers** — `embedding-provider.ts` + `*-embedder.ts` (API / inprocess / litellm / ollama) -- **Scoring profiles** (`scoring.ts`) — `balanced` / `recent` / `important` / `connected` - -**Schema:** `schema.ts` exports `SCHEMA_SQL` + `VEC_TABLE_SQL`. Migrations live in `packages/core/src/migration.ts`. - -**Database files:** Per-workspace `.mind` files under `~/.waggle/workspaces//`. Personal mind at `~/.waggle/personal.mind`. The `personal::` synthetic team unlocks WaggleDance v2 for free-tier users. - -**Don't touch without reading:** `docs/memory-architecture.md`, `.github/sync.md` (OSS parity gate). - -#### 2.5.2 Harvest pipeline (`hive-mind-core/src/harvest/`) - -**Adapters** in `harvest/`: -- `chatgpt-adapter.ts`, `claude-adapter.ts`, `claude-code-adapter.ts`, `gemini-adapter.ts`, `perplexity-adapter.ts` -- `pdf-adapter.ts`, `plaintext-adapter.ts`, `markdown-adapter.ts`, `url-adapter.ts`, `universal-adapter.ts` - -**Pipeline** (`pipeline.ts`): adapter → frame normalization → dedup → write to `*.mind`. - -**Dedup** (`dedup.ts`): content-hash gate prevents the "rogue `personal` workspace" class of bug (saw one frame leak in May 2026 — fixed). - -**Identity auto-populate:** Harvest can populate `IdentityLayer` from extracted user facts. Wired but needs corpus to test against (M2 + M3 in hand). - -#### 2.5.3 Agent runtime (`packages/agent/src/`) - -**The agent loop** (`agent-loop.ts`): -- Builds system prompt via `orchestrator.ts` (`buildSystemPrompt`, `recallMemory`) — cached per section -- Filters tools via `tool-filter.ts` (`filterToolsForContext` — allowlist/denylist per persona) -- Scans for injection via `injection-scanner.ts` (`scanForInjection` — 3 pattern sets) -- Tracks cost via `cost-tracker.ts` (`CostTracker` + model pricing table) -- Records execution traces (Phase 5 of self-evolution) -- Optional `onSkillDistillationFire` callback (Phase 3 of AI-OS — broadcasts `skill_share`) - -**Personas** (17 total): -- Data in `persona-data.ts` (pure declarative array) -- Logic in `personas.ts` (`AgentPersona` interface) -- Custom personas from disk via `custom-personas.ts` -- 13 work-personas (researcher / writer / coder / sales / etc.) + 4 meta-personas (general-purpose / planner / verifier / coordinator) - -**Capability + trust:** -- `capability-acquisition.ts`, `capability-router.ts`, `trust-model.ts`, `permissions.ts`, `credential-pool.ts`, `confirmation.ts` -- Tier-aware (KVARK tools at TEAMS+) - -**Quality + self-correction:** -- `quality-controller.ts`, `contradiction-detector.ts`, `correction-detector.ts`, `improvement-detector.ts`, `improvement-wiring.ts` -- `loop-guard.ts` (infinite loop prevention), `iteration-budget.ts` - -**Sub-systems:** `commands/`, `connectors/` (31 — 30 + OneNote), `mcp/`, `providers/`. - -#### 2.5.4 Evolution closed loop - -**The full pipeline** (10+ files in `agent/src/`): -1. **TraceRecorder** records every chat turn → ExecutionTraceStore -2. **eval-dataset.ts** builds eval datasets from traces -3. **judge.ts** scores candidates (LLM-as-judge) -4. **iterative-optimizer.ts** runs GEPA-style optimization -5. **evolve-schema.ts** + **compose-evolution.ts** run schema evolution with feedback separation -6. **evolution-gates.ts** enforces constraint gates -7. **EvolutionRunStore** persists candidates + status -8. **evolution-orchestrator.ts** loops the whole thing -9. **evolution-deploy.ts** writes accepted candidates as persona/behavioral-spec overrides -10. **evolution-llm-wiring.ts** runs `/api/evolution/run` with real judging - -**State of evolution:** End-to-end closed loop verified. Gemma 4 + Waggle-evolved prompt **outranked raw Opus 4.6** in 4-judge blind eval (C/A ratio 108.8%) — see `project_session_handoff_0414_s11.md`. - -#### 2.5.5 AI-OS arc (Path D — shipped 2026-05-20) - -**4 converging primitives** that deliver the OS feel: -1. **Unified memory** (already there — hive-mind-core + 7 hook packages) -2. **One-click launcher with workspace context injection** (LauncherApp + `WAGGLE_WORKSPACE_ID` env) -3. **Live unified activity feed** (WaggleDance v2 bus → bridge → existing UI) -4. **Cross-tool task dispatch + skill diffusion** (launch with prompt + `skill_share` broadcasts) - -**End-to-end flow that works today:** -``` -dock → AI Tools (Extend zone) → GET /api/tools/detect - → POST /api/tools/hooks {action:install} (npx, byte-identical reversible) - → POST /api/tools/launch (child_process.spawn detached + WAGGLE_WORKSPACE_ID env) - → tool's SessionStart hook picks up workspace - → Stop hook → maybeEmitDiscovery (shim-core) - → POST /api/waggle-dance/signal - → SignalBus.record → installWaggleDanceBridge re-emits - → /api/waggle/signals SSE → WaggleDanceApp UI -``` - -**Plus D1 skill diffusion:** when agent loop fires D1 (≥5-tool successful turn), `onSkillDistillationFire` broadcasts a `skill_share` signal on the same bus. - -**Canonical reference:** `docs/plans/AI-OS-EXPLORATION-2026-05-19.md` for D1-D6 ratified decisions. - -#### 2.5.6 Tier / billing / trust - -- `packages/shared/src/tiers.ts` — canonical 5-tier system + `TierCapabilities` -- `packages/server/src/stripe/webhook.ts` — signature + idempotency + 3 event handlers -- `packages/server/src/stripe/index.ts:tierFromPriceId()` — resolves 4-var price contract: - - `STRIPE_PRICE_PRO_MONTHLY` / `STRIPE_PRICE_PRO_ANNUAL` - - `STRIPE_PRICE_TEAMS_MONTHLY` / `STRIPE_PRICE_TEAMS_ANNUAL` - - Legacy `STRIPE_PRICE_PRO` / `STRIPE_PRICE_TEAMS` / `STRIPE_PRICE_BASIC` also resolved -- Tier writes land in `config.json` and are read by the agent loop at chat-time -- 17/17 webhook tests green - -**KVARK gating:** `packages/agent/src/kvark-tools.ts` exposes `kvark_search` + `kvark_ask_document`, both tier-gated to TEAMS/ENTERPRISE. Do not recreate or expose outside gating. - -### 2.6 Data flows (end-to-end traces) - -#### Chat turn flow -``` -UI sends POST /api/chat → server route - → loads workspace mind + persona + tier - → orchestrator.buildSystemPrompt() (cached per section) - → tool-filter.filterToolsForContext(persona, tier) - → injection-scanner.scanForInjection(userMsg) - → runAgentLoop(...): - - LLM call via LiteLLM - - Tool execution loop with loop-guard - - CostTracker accumulates per turn - - TraceRecorder records execution trace - - onSkillDistillationFire if D1 condition met - → response streams back via SSE - → frames written to *.mind (immediate frame from user msg, important frame from response summary on Stop) -``` - -#### Harvest ingestion flow -``` -User drops file / pastes URL / connects connector - → /api/harvest/ingest with adapter hint - → adapter parses to canonical frames - → dedup.ts content-hash check - → write to per-workspace *.mind (auto-attach to workspace based on CWD or explicit ws_id) - → optional: cognify (entity extraction + KG update + identity auto-populate) - → optional: wiki-compiler (entity / concept / synthesis pages) -``` - -#### Cross-tool signal flow -``` -External tool's Stop hook fires - → @waggle/hive-mind-shim-core maybeEmitDiscovery(importance, summary) - → POST /api/waggle-dance/signal (fetch, 2s timeout, fail-open) - → SignalBus.record (500-entry ring buffer + subscriber emitter) - → WaggleDanceDispatcher.handleBroadcastSignal (v2 branches) - → installWaggleDanceBridge re-emits via emitWaggleSignal - → SSE stream /api/waggle/signals (existing) - → WaggleDanceApp UI renders with UX category mapping (10→5) -``` - -#### Skill diffusion flow -``` -Agent loop completes turn with ≥5 distinct tools used + success - → D1 condition met → onSkillDistillationFire callback - → chat route extracts skill candidate from turn - → emits skill_share signal on v2 bus - → MCP-consuming tools can recall the skill via standard memory APIs -``` - -#### Evolution closed loop -``` -TraceRecorder captures every chat turn - → ExecutionTraceStore - → /api/evolution/run kicks off run: - eval-dataset (from traces) - → judge (LLM-as-judge scoring) - → iterative-optimizer (GEPA) - → evolve-schema (with feedback separation) - → evolution-gates (constraint checks) - → EvolutionRunStore (status: pending → accepted/rejected) - → User accepts → evolution-deploy writes persona/behavioral-spec override - → server.activeBehavioralSpec hot-reloads via 'behavioral-spec:reloaded' event - → next chat turn uses evolved prompt -``` - -### 2.7 External boundaries - -| Boundary | Where | Notes | -|---|---|---| -| LLM | `litellm-config.yaml` | 3-layer routing. Local Ollama supported via env-driven MODEL/BASE_URL | -| Stripe | `packages/server/src/stripe/` | Webhook + checkout + tier resolution | -| KVARK | `packages/agent/src/kvark-tools.ts` | TEAMS+ only. Tools `kvark_search`, `kvark_ask_document` | -| OSS sync | `marolinik/hive-mind` | **Bidirectional. See `.github/sync.md`** | -| MCP catalog | `packages/shared/src/mcp-catalog.ts` | 148 entries with dedup guard | -| Connectors | `packages/agent/src/connectors/` | 31 (added OneNote 2026-05-20) | -| Tauri IPC | `app/src-tauri/capabilities/` | **Explicit allowlist. Never `allowlist: all: true`** | - -### 2.8 Security model - -**Non-negotiable:** -1. **Vault-only secrets.** API keys in `packages/core/src/mind/vault.ts` or `.env`. Never committed. -2. **Injection defense.** `scanForInjection()` MUST run on all connector / external input. -3. **No `eval`, no dynamic `require`.** Tauri WebView is restricted. -4. **Tauri IPC allowlist explicit** in `app/src-tauri/capabilities/`. -5. **Parameterized SQL only.** Never string-interpolate. `better-sqlite3` supports parameters. -6. **KVARK contact data** submits to your own API only — no third-party form services. -7. **Reversible install ethics** for hook packages — byte-identical uninstall via SHA-256 round-trip, fail-open on any error. - -**AI Act compliance:** documented in `docs/AI-ACT-AUDIT-2026-04-10.md` + `docs/AI-ACT-COMPLIANCE-PROOF-2026-04-16.md`. Aug 2 2026 deadline. EU AI Act "compliance by default" is a dual-hook with the memory moat strategy. - ---- - -## 3. DEVELOPMENT - -### 3.1 Build & deploy - -**Build commands (verified in `package.json`):** -```bash -npm run dev # Vite dev server (apps/web) -npm run build # Vite build to /dist (apps/web) -npm run build:packages # tsc --build: shared → core → agent → server (order matters) -npm run build:all # Packages then web -npm run lint # ESLint repo-wide -npm run test # Vitest unit tests -npm run test:e2e # Playwright API tests -npm run test:visual # Playwright visual regression -npm run test:all # Full Playwright -``` - -**Verification commands (run these, don't claim "it compiles"):** -```bash -npx tsc --noEmit --project packages/agent/tsconfig.json -npx tsc --noEmit --project app/tsconfig.json -npm run test -- --run -npm run lint -``` - -**Tauri binary build** (do periodically, NOT every change): -```bash -npm run build:all -# then in app/: -npm run tauri build # produces signed bundle if cert installed (M8 — pending) -``` - -**Sidecar (standalone, for dev / SaaS deploy):** -```bash -npm run dev:sidecar # starts Fastify on :8787 -# or -docker compose up # full stack (Postgres :5434, Redis :6381, LiteLLM :4000, MinIO :9000-9001) -``` - -### 3.2 Testing posture - -**Current state (verified 2026-05-26):** `6610/6611 pass, 1 skipped, 0 failed` with Docker compose stack up. - -**Test infrastructure setup (per-machine):** -1. `docker compose up` to bring up Postgres + Redis + LiteLLM + MinIO -2. Copy `~/.waggle/marketplace.db` to repo path (gitignored) -3. Set `CLERK_PUBLISHABLE_KEY` in test env for Clerk-dependent tests - -**Frameworks:** -- **Vitest** for unit + integration (most tests) -- **Playwright** for E2E (`playwright.config.ts` + `playwright-e2e.config.ts`) -- **Playwright visual regression** for design-system stability - -**Patterns:** -- **Hermetic dep injection** — every `fs` / `exec` / `spawn` / `fetch` call in agent + server modules is injected so tests run without touching the host. Caught the platform-path bug + the layering inversion + the cross-test pollution bug on first runs of AI-OS code. -- **Unit-test at the FUNCTION level, not the component level.** Testing UI rendering is expensive; testing pure helpers is free. Lesson from `lib/launcher-prompt-args.ts` extraction. - -### 3.3 OSS sync contract (waggle-os ↔ hive-mind) - -**Critical — read before touching `packages/hive-mind-core/src/mind/` or `packages/hive-mind-core/src/harvest/`.** - -Two GitHub Actions workflows enforce parity with the OSS release at [`marolinik/hive-mind`](https://github.com/marolinik/hive-mind): - -1. **`mind-parity-check.yml`** — runs hive-mind's tests against waggle-os on every PR/push touching shared paths. **Failure blocks merge unless allowlisted in `.parity-allowlist`.** -2. **`sync-mind.yml`** — on push to main, opens filtered auto-PR on `marolinik/hive-mind`. Excludes "NOT extracted" files (`vault.ts`, `evolution-runs.ts`, `execution-traces.ts`, `improvement-signals.ts`, `compliance/**`). - -**If you add a new "stays in waggle-os only" file** under those paths, update **BOTH** the `excluded_paths` in `sync-mind.yml` AND the "NOT Extracted" section of `hive-mind/EXTRACTION.md` in the same PR — otherwise the file leaks on the next sync. - -**Operating manual:** `.github/sync.md`. - -### 3.4 Operating contract — distilled from CLAUDE.md §3 - -These are non-negotiable. Read CLAUDE.md §3 in full. - -1. **Think before coding.** State assumptions. Surface tradeoffs. If unclear, stop and ask. The single most expensive failure mode is making wrong assumptions and building 100+ lines on top. -2. **Simplicity first.** Minimum code that solves the problem. No speculative abstractions. No "configurability" that wasn't requested. -3. **Surgical changes.** Touch only what you must. Don't refactor adjacent code "while you're there." Match existing style. -4. **Goal-driven execution.** Transform vague tasks into verifiable goals. A task is not done until verification passes. -5. **Context discipline.** Re-read files after 10+ messages. Files >500 LOC need chunked reads. Tool results >50k chars are silently truncated. -6. **Check before create.** `grep` before adding a new file. Section 8 of CLAUDE.md lists known utilities that exist. -7. **Output discipline.** Long specs / handoffs / audit reports MUST be written to files, not streamed inline. Chat is a pointer; file is the deliverable. -8. **Handoff discipline.** End-of-session handoffs invoke `~/.claude/skills/handoff/`, which enforces verification (`git status`, tests, tsc on touched packages) BEFORE writing the doc. - -### 3.5 Code patterns to know — DON'T RECREATE - -`grep` before creating. These exist and are functional (see CLAUDE.md §8 for the full list): - -| File | What | -|---|---| -| `packages/agent/src/injection-scanner.ts` | `scanForInjection()` | -| `packages/agent/src/cost-tracker.ts` | `CostTracker` + model pricing | -| `packages/agent/src/tool-filter.ts` | `filterToolsForContext()` | -| `packages/agent/src/skill-frontmatter.ts` | `parseSkillFrontmatter()` | -| `packages/agent/src/kvark-tools.ts` | KVARK tools (tier-gated) | -| `packages/agent/src/feature-flags.ts` | Feature flags | -| `packages/agent/src/persona-data.ts` | Canonical PERSONAS array | -| `packages/agent/src/loop-guard.ts` | Infinite loop prevention | -| `packages/agent/src/contradiction-detector.ts` | Memory conflict detection | -| `packages/shared/src/tiers.ts` | TIERS + capabilities | -| `packages/shared/src/mcp-catalog.ts` | 148-entry MCP catalog | -| `packages/shared/src/tool-detection.ts` | 7-tool detection (AI-OS) | -| `packages/hive-mind-core/src/mind/vault.ts` | Secret storage | -| `packages/hive-mind-shim-core/src/signal-emitter.ts` | `maybeEmitDiscovery` for hook packages | -| `apps/web/src/lib/launcher-prompt-args.ts` | Per-tool CLI prompt-arg shapes | -| `apps/web/src/lib/kg-export.ts` | PNG + SVG export from KG viewer | - -### 3.6 Eval & benchmark stack - -**Two co-equal pillars** (locked 2026-05-22): - -#### Pillar 1 — Agent harness (orchestration + governance) -- **Benchmark:** GAIA 2 ARE-native (Phase 4 in `waggle-os-gaia2-wt`) -- **Headline:** N=160 = 83.8% strict / 86.5% judged-only -- **Goal framing:** Reading B — Waggle as local-first orchestrator/governance arena, NOT a competing loop. Sovereignty triple is the protagonist metric. -- **Open:** Qwen-local follow-up (repeat with Qwen 3.6 35B local for sovereign full-local number). Queued on Qwen serving. - -#### Pillar 2 — Memory substrate -- **Benchmark:** LongMemEval (planned), LoCoMo (canonical published) -- **Headline LoCoMo:** 67.8% strict / 70.0% majority (trio-strict v2, published at `marolinik/hive-mind` v0.3.0) -- **Headline LongMemEval:** Blend-tuned 75.2% trio-strict N=100, above LoCoMo 67.8% -- **Ablation breakdown:** broken 41.6% → thinking 52.5% → distillation 68.3% → blend 75.2%. Multi-session improvement 37 → 74%. -- **Honest trade:** single-session-assistant −2 Q (distillation is user-centric), knowledge-update −2 Q (all-facts vs latest-wins) -- **Open:** N=500 scale-up + Sonnet lane - -#### Substrate claim (Stage 3 v6) -- N=400, Fisher one-sided p = 8.07 × 10⁻¹⁸, +19.25pp retrieval lift -- Published as standalone substrate claim, not bundled with GEPA narrative - -**Production vs research cost discipline:** two regimes documented in `feedback_production_vs_research_cost_discipline.md`. Research = strict pre-reg no-revisit. Production = amendable projection w/ PM memo. Phase 5 amendment $25 → $75 set the precedent. - ---- - -## 4. BACKLOG - -> Source of truth: `docs/plans/OPEN-TASKS-2026-05-20.md` (canonical, fully cross-referenced) + `docs/plans/OPEN-WORK-SUMMARY-2026-05-26.md` (single-pager). This section is a working pick-list. - -### 4.1 P0 — Marko external blockers (NOT engineering) - -These gate launch. **No code work unblocks them.** - -| # | Action | Time | Status | -|---|---|---|---| -| **M5** | Top up API credits (Anthropic / OpenAI / Google / OpenRouter) | 15 min | **Open** — gates Pillar-1 Qwen-local + Pillar-2 N=500 | -| **M8** | Buy Windows EV code-signing cert (~$300-500/yr) | 1-3 day shipping | **Open** — longest single blocker, START NOW | -| **M9** | Contact ML peer reviewer for papers | 1 day | **Open** — Phase 6 gate | -| **M10** | Greenlight launch date | Decision | **Open** — everything downstream | - -**Already done:** M2 (Claude export ✅), M3 (Gemini ✅), M6 (judge models ✅ — Opus 4.7 / GPT-5.4 / Gemini 2.5 Pro / Haiku 4.5), M7 (Stripe products ✅ — Pro+Teams × monthly+annual live). -**Skipped:** M1 ChatGPT (emails never arrived), M4 Perplexity (research-burst, marginal). - -### 4.2 In-session engineering — actionable now (no blocker) - -| # | Item | File / scope | Effort | -|---|---|---|---| -| E-2 | Cross-tool prompt-arg shapes (cursor / codex / hermes / openclaw — verify against real binaries) | `apps/web/src/lib/launcher-prompt-args.ts` | <1 day per tool | -| E-7 | Demo video script (90-sec harvest→wiki→insight + 5-min deep dive) | content | 1 day | -| E-8 | LinkedIn launch posts (3-post sequence) | content | 0.5-1 day | -| E-9 | Tauri binary build + smoke on clean Windows VM | binary + smoke | 1 day | -| E-12 | Cursor harvest adapter (Marko uses Cursor) | `packages/hive-mind-core/src/harvest/` | 0.5-1 day | - -**Note on E-4 (OSS source extraction):** largely closed by E-14 v0.3.0 promotion. Re-verify scope before scheduling. -**Note on E-6 (MS Graph):** OneNote landed 2026-05-20; Outlook + OneDrive + MSTeams already covered. Treat as done unless concrete gap surfaces. - -### 4.3 Binary verification (needs runtime, no code) - -| # | Item | Status | -|---|---|---| -| V-1 | Spawn Agent + Dock click-paths (P35 + P36 wired) | Needs clean-install check | -| V-2 | Light mode finish (header text styling, BootScreen polish) | Needs visual review on Windows binary | -| V-3 | AI-OS end-to-end with `WAGGLE_SIGNAL_EMIT=1` on Marko's machine | Detect → install → launch → signal → UI | - -**All three roll into a single binary-build session.** - -### 4.4 Marko-gated engineering - -| # | Item | Depends on | Effort | -|---|---|---|---| -| E-11 | **Phase 1 Harvest ingestion** — ingest M2+M3 exports → production `personal.mind` + cognify + identity auto-populate + wiki compile | Unblocked | 3 days. **Highest-leverage in-flight engineering item.** | -| E-13 | Mac notarization | M8 cert + Marko-side | — | - -### 4.5 Multi-week eval campaigns (mostly closed; two follow-ups open) - -| # | Campaign | Status | -|---|---|---| -| ✅ C-1 | LoCoMo Memory Proof (trio-strict canonical v2 67.8%) | Done 2026-05-21 | -| ✅ C-2 | Substrate Claim (Stage 3 v6 Fisher p=8e-18) | Done 2026-04-25 | -| ✅ C-3 | GAIA 2 Phase 5b ARE-native (N=160 86.5%) | Done 2026-05-22 | -| 🟡 **Pillar 1 follow-up** | Qwen-local harness benchmark (env-driven, points worker MODEL/BASE_URL at local Ollama) | Queued on Qwen serving | -| 🟡 **Pillar 2 follow-up** | LongMemEval N=500 + Sonnet lane | Open | -| 🟡 C-4 | Phase 6 Write Papers (concept doc exists at `docs/research/PAPER-2-CONCEPT_gepa-evolution.md`) | Gates on Pillar-1 Qwen + Pillar-2 N=500 | -| 🟡 C-5 | Phase 7 Launch Prep | Gates on papers | -| 🟡 C-6 | Phase 7b Launch Day | Gates on M10 | - -### 4.6 Deferred post-launch arcs - -| # | Item | Scope | Days | -|---|---|---|---| -| D-1 | **Wave 2/3 hooks for 6 packages** (cursor / claude-desktop / codex / codex-desktop / hermes / openclaw) — each needs SessionStart + UserPromptSubmit + Stop + PreCompact + install/verify/uninstall CLI + settings-merger | per-package multi-day | Per-package | -| D-2 | Wiki Compiler v2 (markdown export, incremental, Obsidian+Notion adapters, health dashboard) | substantial | 5 | -| D-3 | Harvest UX Full Polish (live SSE progress, resumable harvests, identity auto-populate, harvest-first onboarding tile) | substantial | 5 | -| D-4 | Compliance Report UX + Templates (PDF generation route, template system, full-page viewer, custom branding, KVARK template variant) | medium | 3.5 | -| D-5 | Installer Flow (INST-1 Ollama bundled installer, INST-2 hardware scan, INST-3 daemon auto-start: Win service / macOS launchd) | small | 2 | -| D-6 | PDF E2E deferred items (21 from 2026-04-17 PDF triage; biggest: P10 agent icons bee-style, P16 Files-app local browse, P29 Skills detail card) | opportunistic | — | -| D-7 | Responsive gaps R-1..R-5 (dock overflow <768px, StatusBar collapse, chat sidebar narrow, OnboardingWizard cols, AppWindow mobile) | not launch-blocking | — | -| D-8 | Engagement features ENG-1..ENG-7 ("I just remembered" toast, WorkspaceBriefing sidebar, progressive dock unlock, LoginBriefing, harvest-first onboarding, Memory Score, suggested next actions) | growth tooling | 7 × half-day | -| D-9 | Medium UX fixes UX-1..UX-7 (reduce onboarding decisions, dev-mode toggle for cost, chat header overflow, etc.) | small | 5 × 1-4 hr | - ---- - -## 5. UX IMPROVEMENTS — DETAILED BY SURFACE - -Each item lists: surface · what's wrong · file pointer · effort. - -### 5.1 Light mode finish (V-2) - -**What's wrong:** Semantic-token migration is done (no hive-950 references except a comment). Remaining issues are render-time fine-tuning that needs a binary to validate: -- BootScreen visual polish (uses semantic tokens + theme-aware logo but render judgment pending) -- Header text styling judgment calls -- A few header / styling final tweaks - -**Files:** -- `apps/web/src/waggle-theme.css` (token source) -- `apps/web/src/components/os/BootScreen.tsx` -- Various headers in `apps/web/src/components/os/apps/*App.tsx` - -**Reference:** `docs/light-mode-audit-2026-05-07.md`. - -**Effort:** half-day on a binary build with visual review. - -### 5.2 Onboarding — decision reduction (UX-1) - -**What's wrong:** Onboarding wizard has too many decision points before the user sees value. Should be silent-defaults-first, friction only where irreversible/destructive. - -**Files:** -- `apps/web/src/components/os/overlays/OnboardingWizard.tsx` -- `apps/web/src/components/os/overlays/OnboardingWizard/steps/*.tsx` - -**Principle (from memory):** silent recommendations — don't ask the user to ratify a default. Connector tile + skill chips ship silent default ordering; no "which tools?" step. See `feedback_silent_recommendations_dont_ask`. - -**Reference:** `docs/ONBOARDING-INVESTIGATION-2026-04-30.md`, `docs/ux-disclosure-levels.md`. - -**Effort:** 1 day. - -### 5.3 Dock & launcher polish - -**Already shipped (don't re-do):** -- ✅ QW-3 skip boot on return -- ✅ QW-5 dock tier rename + clarifier -- ✅ P36 dock spawn-agent wiring -- ✅ E-1 Stop button on running tools -- ✅ AI Tools dock entry (LauncherApp in Extend zone, power tier) - -**Open:** -- **D-1 Wave 2/3 hooks** — each new capture-capable hook makes a *launchable* tool into a *memory-feeding* one. Multiplier on the moat. -- **E-2 prompt-arg shapes per tool** — small per-tool verification work -- Dock text labels first-week (UX-3) - -**Files:** -- `apps/web/src/components/os/Dock.tsx` -- `apps/web/src/lib/dock-tiers.ts` -- `apps/web/src/components/os/apps/LauncherApp.tsx` - -### 5.4 Memory app — provenance & filtering - -**Already shipped:** Memory provenance badge (Phase 4 polish, 2026-05-20). - -**Open:** -- **G7 cross-tool provenance** — full surfacing: "this came from Cursor (workspace KVARK, 2h ago)" -- **G10 cross-tool replay** — "Show me the chain: Cursor → Claude Code → Codex" -- Memory tab labels (✅ QW-2 done) - -**Files:** -- `apps/web/src/components/os/apps/MemoryApp.tsx` -- `apps/web/src/components/os/apps/memory/KnowledgeGraphViewer.tsx` -- `apps/web/src/lib/kg-export.ts` (✅ E-5 PNG export shipped) - -### 5.5 Spawn Agent - -**Already shipped:** -- ✅ P35 "no models available" — third-tier fallback to provider catalogs -- ✅ P36 dock wiring - -**Open:** V-1 runtime verification on clean install. - -**Files:** -- `apps/web/src/components/os/overlays/SpawnAgentDialog.tsx` -- `apps/web/src/lib/adapter.ts` - -### 5.6 Chat experience - -**Open:** -- Chat header overflow (UX-5) -- ContextRail polish (mostly done, see `apps/web/src/components/os/apps/chat/`) -- Per-message feedback flow already wired with arrow-key navigation (✅ A11Y-7) - -**Files:** -- `apps/web/src/components/os/apps/ChatApp.tsx` -- `apps/web/src/components/os/apps/chat/*.tsx` - -### 5.7 Wiki UI - -**Open (D-2 Wiki Compiler v2):** -- Markdown export -- Incremental recompilation UI -- Obsidian + Notion adapters -- Wiki health dashboard - -**Files:** -- `apps/web/src/components/os/apps/WikiApp.tsx` (or similar) -- `packages/hive-mind-wiki-compiler/src/` - -### 5.8 Settings & permissions - -**Already shipped:** QW-5 dock tier clarifier, tier-aware onboarding template/persona filtering (Phase 4.1 unblock). - -**Open:** Dev-mode toggle for cost display (UX-4). - -**Files:** -- `apps/web/src/components/os/apps/SettingsApp.tsx` - -### 5.9 Responsive gaps (R-1..R-5, D-7) - -Not launch-blocking (desktop primary), but post-launch: -- R-1 Dock overflow <768px -- R-2 StatusBar collapse -- R-3 Chat sidebar narrow -- R-4 OnboardingWizard column layout -- R-5 AppWindow mobile - -### 5.10 Engagement features (ENG-1..ENG-7, D-8) - -Post-launch growth tooling. 7 items × ~half-day: -- ENG-1 "I just remembered" toast -- ENG-2 WorkspaceBriefing sidebar -- ENG-3 Progressive dock unlock -- ENG-4 LoginBriefing -- ENG-5 Harvest-first onboarding -- ENG-6 Memory Score -- ENG-7 Suggested next actions - -### 5.11 A11Y (all 9 shipped — preservation only) - -All 9 items closed per grep verification: boot aria-live, dock 44×44 touch targets, window-titlebar icons, PersonaSwitcher aria-disabled, Settings role=switch, dashboard healthShape, chat feedback arrow-keys, Global Search role=dialog, memory importance aria-label. - -**Don't regress these.** New UI must preserve. - ---- - -## 6. RISKS, KNOWN ISSUES, TECH DEBT - -### Tech debt - -| Item | Where | Severity | -|---|---|---| -| `mind/` + `harvest/` exist in BOTH `packages/core/` AND `packages/hive-mind-core/` | Two packages | **Medium.** Phase out `packages/core/` content; the OSS extraction is the canonical location | -| Wiki compiler duplication | `packages/wiki-compiler` vs `packages/hive-mind-wiki-compiler` | **Low.** Check overlap before extending either | -| MCP server overlap | `packages/memory-mcp` vs `packages/hive-mind-mcp-server` | **Low.** `hive-mind-mcp-server` is the canonical going forward | -| `WAGGLE_PHASE5_CANARY_PCT` env + emitters | Dropped 2026-04-30 but artifacts remain | **Low.** Do NOT flip; stay extended-e2e artifact only | -| 145-item `BACKLOG-CONSOLIDATED-2026-04-17.md` | ~50% stale-but-done | **Low documentation debt.** `OPEN-TASKS-2026-05-20.md` is canonical now | - -### Known operational risks - -| Risk | Mitigation | -|---|---| -| Cross-platform process spawn quirks (Windows `.cmd` shims especially) | `hive-mind-cli` README documents `--cli-path` flag; LauncherApp injects via env | -| Signal volume on WaggleDance v2 bus | `importance-classifier.ts` thresholds; SignalBus 500-entry ring buffer caps memory | -| Substrate (mind/) parity with OSS hive-mind | `.parity-allowlist` + `mind-parity-check.yml` CI gate | -| Wave 2/3 hooks not implemented | Asymmetric on purpose — 7 launch, 1 capture. Communicate this clearly in UX | -| 30 prior test failures (all infra-blocked, now fixed) | Docker compose stack required for full pass; per-machine `~/.waggle/marketplace.db` copy | - -### Open architectural questions - -1. Should the legacy `packages/core/{mind,harvest}` content be deleted, or kept as a bridge layer? (Currently both packages contain duplicate code.) -2. Embedded shells for `claude-code` CLI via xterm.js — yes/no/when? (D4 decision deferred to Phase 5+.) -3. Wave 2/3 hook implementation order — Cursor first (Marko uses it) or Claude Desktop first (highest user count)? - ---- - -## 7. Strategic decisions pending (Marko) - -| # | Decision | Unlocks | -|---|---|---| -| S-1 | hive-mind OSS launch timing (default: "before Waggle" since substrate evidence is already public at v0.3.0) | Launch sequencing | -| S-2 | Harvest-first onboarding — replace step 2 or parallel opt-in? | UX (D-3) | -| S-3 | Warm list — 5-10 names to pre-email 72h before launch | Launch credibility | -| S-4 | Single-author or dual-author on papers? | Paper attribution | -| S-5 | Marketplace model — free+attribution / freemium / enterprise-only? | Skills monetization | -| S-6 | EvolveSchema attribution — keep "Mikhail" or cite ACE (Zhang et al.)? | Paper 2 framing | - ---- - -## 8. Onboarding checklist for a new engineer - -### Day 1 (4 hours) - -- [ ] Read this doc end-to-end -- [ ] Read `CLAUDE.md` (Sections 1-3 mandatory) -- [ ] Read `docs/ARCHITECTURE.md` -- [ ] Read `docs/memory-architecture.md` -- [ ] Read `docs/plans/AI-OS-EXPLORATION-2026-05-19.md` -- [ ] Read `docs/plans/OPEN-TASKS-2026-05-20.md` -- [ ] `npm install` + `npm run build:packages` + `npm run test -- --run` → confirm 6610/6611 green -- [ ] `docker compose up` to bring up service stack -- [ ] `npm run dev` + open `localhost:5173` → see the dock + onboarding -- [ ] Find one P0 backlog item and read the code surface for it - -### Week 1 - -- [ ] Ship one E-* item (E-2 cross-tool prompt-arg shape OR E-12 Cursor harvest adapter — both low-blast-radius starter tasks) -- [ ] Pair on a binary build (E-9) — verify V-1/V-2/V-3 together -- [ ] Read `docs/WAGGLE-CORNERSTONE.md` for the durable Phase A/B context -- [ ] Read `packages/agent/src/agent-loop.ts` end-to-end -- [ ] Read `packages/hive-mind-core/src/mind/{db,frames,search,knowledge}.ts` -- [ ] Read `.github/sync.md` for the OSS parity contract -- [ ] Ship one UX item from §5 (light mode polish or onboarding decision reduction) - -### Week 2 - -- [ ] Start one D-1 Wave 2 hook implementation (Cursor recommended — Marko uses it) -- [ ] Pick up E-11 Phase 1 Harvest ingestion (the highest-leverage marko-gated item; runs M2+M3 exports → production memory) -- [ ] Pair on one eval pillar follow-up (Pillar 1 Qwen-local OR Pillar 2 N=500) -- [ ] Read the evolution subsystem (10+ files in `packages/agent/src/evolution-*`) - ---- - -## 9. Canonical file index - -### Architecture -- `CLAUDE.md` (operating contract + verified state) -- `docs/ARCHITECTURE.md` (system architecture) -- `docs/memory-architecture.md` (mind/ deep dive) -- `docs/WAGGLE-CORNERSTONE.md` (durable Phase A/B context) -- `docs/WAGGLE-SYSTEM-MAP.md` (system map) -- `docs/HIVE-MIND-INTEGRATION-DESIGN.md` - -### AI-OS arc -- `docs/plans/AI-OS-EXPLORATION-2026-05-19.md` (architectural reference + D1-D6 decisions) -- `docs/plans/E-4-OSS-EXTRACTION-VERIFIED-2026-05-20.md` -- Recent handoffs in `~/.claude/projects/D--Projects-waggle-os/memory/`: - - `project_session_handoff_0520_s1.md` (Phases 0-4) - - `project_session_handoff_0520_s2.md` (backlog closure + E-1..E-6) - - `project_session_handoff_0522_s1.md` (both pillars landed) - -### Backlog + open tasks -- `docs/plans/OPEN-TASKS-2026-05-20.md` (canonical structured list) -- `docs/plans/OPEN-WORK-SUMMARY-2026-05-26.md` (single-pager snapshot) -- `docs/REMAINING-BACKLOG-2026-04-16.md` (older, partially stale) -- `docs/plans/BACKLOG-CONSOLIDATED-2026-04-17.md` (~50% stale-but-done) - -### Compliance + audits -- `docs/AI-ACT-AUDIT-2026-04-10.md` + `docs/AI-ACT-COMPLIANCE-PROOF-2026-04-16.md` -- `docs/AGENT-BEHAVIOR-AUDIT-2026-04-16.md` -- `docs/UX-ASSESSMENT-2026-04-16.md` -- `docs/light-mode-audit-2026-05-07.md` - -### Eval / benchmark -- `docs/plans/HARNESS-BENCHMARK-PLAN-2026-05-22.md` -- `docs/plans/HARNESS-BENCHMARK-GOAL-2026-05-22.md` -- `docs/plans/PILLAR2-MEMORY-LONGMEMEVAL-PLAN-2026-05-22.md` -- `docs/plans/BENCHMARK-LANDSCAPE-RESEARCH-2026-05-22.md` -- `D:/Projects/waggle-os-gaia2-wt/benchmarks/` (Pillar 1 results) -- `D:/Projects/hive-mind/benchmarks/locomo/RESULTS.md` (Pillar 2 canonical) -- `D:/Projects/hive-mind-test/scripts/locomo/` (Pillar 2 working) - -### Launch -- `docs/launch/drafts/2026-05-12-apps-www-deployment-readiness.md` -- `docs/code-signing-pilot-and-launch.md` -- `docs/kvark-http-api-requirements.md` - -### Brand + content -- `docs/BRAND-VOICE.md` -- `docs/MILESTONE-LAUNCH-STORY-VALIDATED-2026-04-30.md` - ---- - -## 10. Rollback safety - -```bash -# Latest stable known-good before AI-OS arc: -git reset --hard checkpoint/pre-ai-os-2026-05-20 - -# Deeper rollback to pre-self-evolution point: -git reset --hard checkpoint/pre-self-evolution-2026-04-14 - -# Origin already has all 24 AI-OS commits + 14 post-arc commits — force-push needed for any rollback: -git push --force-with-lease origin main -``` - -**All 24 AI-OS commits + the 14 post-arc commits are additive.** Existing behavior unchanged except: -1. New OS app `LauncherApp` in Extend zone (power-tier dock only) -2. New routes `/api/tools/*` (`detect` / `launch` / `hooks` / `processes` / `kill`) + `/api/waggle-dance/*` (`signal` / `signals`) -3. New connector: OneNote (`@waggle/agent` registry grew 30 → 31) -4. claude-code Stop hook opt-in signal emission via `WAGGLE_SIGNAL_EMIT=1` -5. WaggleDance dispatcher gained 6 new subtype branches (backward-compatible) -6. `tierFromPriceId()` extended for 4-var price contract - -**No existing test changed semantics. No existing UI changed shape. No existing route changed contract.** - ---- - -## 11. Glossary - -| Term | Definition | -|---|---| -| **Waggle DS** / **Hive DS** | Design system — honey/hive-950/accent tokens in `apps/web/src/waggle-theme.css` | -| **FrameStore** | SQLite-backed memory frame storage (`packages/hive-mind-core/src/mind/frames.ts`) | -| **HybridSearch** | Vector + keyword search fused via RRF (`packages/hive-mind-core/src/mind/search.ts`) | -| **KnowledgeGraph** | Entity-relation graph with bitemporal validity (`packages/hive-mind-core/src/mind/knowledge.ts`) | -| **IdentityLayer** | Personal identity persistence (`packages/hive-mind-core/src/mind/identity.ts`) | -| **AwarenessLayer** | Active task/state tracking (`packages/hive-mind-core/src/mind/awareness.ts`) | -| **Cognify** | Memory extraction pipeline (entity extraction + KG update) | -| **Harvest** | Conversation/file ingestion (`packages/hive-mind-core/src/harvest/`) | -| **Mind** | Per-workspace persistence layer (`*.mind` SQLite files) | -| **BEHAVIORAL_SPEC** | Core agent rules (`packages/agent/src/behavioral-spec.ts`) | -| **Sidecar** | Node.js Fastify server bundled into Tauri (`packages/server` + `sidecar/`) | -| **KVARK** | Egzakta sovereign enterprise AI — top of the Waggle funnel | -| **LiteLLM** | LLM routing layer (`litellm-config.yaml`) | -| **WaggleDance** | Multi-agent / cross-tool coordination package (`packages/waggle-dance`) | -| **WaggleDance v2** | Promoted to cross-tool activity bus (Phase 1A-E of AI-OS arc) | -| **Weaver** | `packages/weaver` — workflow weaving (check source for current role) | -| **Evolution** | Self-improvement subsystem (`evolution-*.ts`, `judge.ts`, `iterative-optimizer.ts`) | -| **GEPA** | Genetic Evolution of Prompts and Architectures — iterative optimization | -| **D1** | Skill distillation condition — ≥5 distinct tools used + success in one turn | -| **SignalBus** | 500-entry ring buffer for cross-tool signals (`packages/server/src/local/signal-bus.ts`) | -| **Shim-core** | Foundation layer for all hook packages (`packages/hive-mind-shim-core`) | -| **Hive-mind-core** | Extracted memory substrate — shared with OSS `marolinik/hive-mind` | -| **Workspace** | Isolated memory space (per-workspace `*.mind` file + dock context) | -| **Persona** | Agent role profile (tools, prompt, model preference) — 17 total | -| **Trust posture** | Reversible-install ethics: byte-identical uninstall, fail-open hooks | - ---- - -**End of handoff.** - -Maintained by Marko Markovic · Egzakta Group · 2026-05-26 -waggle-os.ai · www.kvark.ai diff --git a/docs/handoffs/2026-05-27-agent-core-review.md b/docs/handoffs/2026-05-27-agent-core-review.md deleted file mode 100644 index b6a7064..0000000 --- a/docs/handoffs/2026-05-27-agent-core-review.md +++ /dev/null @@ -1,174 +0,0 @@ -# Agent Core Review — `packages/agent/src/` -**Date:** 2026-05-27 · **Scope:** Core agent runtime · **Compared against:** Claude Code (tool-result-injection + composable middleware) and Hermes (minimal-state ReAct, conversation-as-state) -**HEAD:** `819571d` - -> **TL;DR.** The agent runtime is functionally rich and well-instrumented but carries two god-shapes that hide an otherwise clean loop: `runAgentLoop` (540 lines in a single function) and `Orchestrator.autoSaveFromExchange` (277 lines of regex pattern-matching). Extracting four focused modules — SSE parser, tool executor, loop gates, pattern write-back — drops the core to a Claude-Code-shaped ~250-line loop and a Hermes-shaped ~500-line facade, with zero behavior change. **Highest-leverage single PR: extract `autoSaveFromExchange` (PR-A, ~1 day, ~277 lines moved verbatim).** - ---- - -## 0. Systemic findings — leverage-ordered - -These 15 patterns account for ~90% of the simplification opportunity. Each one can be addressed with a focused PR; most are pure extractions with no behavior change. - -| # | Pattern | Where | Effect | -|---|---|---|---| -| **A-1** | God function — `runAgentLoop` is 540L inside one function body | `agent-loop.ts:142-681` | Hides a clean ~200L conversation loop under 340L of mixed concerns (SSE, retry, gates, governance, hooks, sanitize, callbacks) | -| **A-2** | God method — `Orchestrator.autoSaveFromExchange` is 277L of regex intent inference | `orchestrator.ts:753-1029` | Single largest extraction target; behavior is coherent enough to lift verbatim | -| **A-3** | Inline SSE parsing (~90L of stream reader + buffer + chunk decode + tool-call assembly) | `agent-loop.ts:333-420` | Reusable, table-testable in isolation; should be `lib/sse-parser.ts` | -| **A-4** | Inline tool execution sub-loop (~130L mixing governance, pre-hook, memory-hook, guard, execute, sanitize, callbacks, post-hooks) | `agent-loop.ts:539-669` | Should be `lib/tool-executor.ts` with explicit middleware chain (Claude Code shape) | -| **A-5** | D1 + D3 gates inlined in the no-tool-calls branch | `agent-loop.ts:459-507` | Each gate has the shape `(state) => correction \| null`; should be `lib/loop-gates.ts` | -| **A-6** | Inline retry policy split across 3 sites — rate-limit (429), server error (5xx), parse error | `agent-loop.ts:296-323, 423-432, 543-550` | Duplicated logic; should be `lib/retry-policy.ts` returning typed RetryDecision | -| **A-7** | 12 catch-up regex patterns + 11 preference patterns + 7 decision patterns + 6 style signals defined inline mid-function | `orchestrator.ts:593-598, 835-846, 894-902, 861-867` | Should be a module-level constants block (or eventually replaced by an LLM-based extractor — see A-15) | -| **A-8** | Implicit state machine — 8 scattered `let` vars juggling loop invariants (turn, retries × 2, accumulated content, tools used, gates × 2, preserved answer) | `agent-loop.ts:242-263` | Typed `LoopState` object would make invariants explicit and aid debugging | -| **A-9** | `Orchestrator` class mixes 6 responsibilities — workspace lifecycle / memory stats / context loading / prompt building / recall / autoSave / tool facade / 7 getters | `orchestrator.ts:112-1048` | Should be a thin facade delegating to focused modules (Hermes shape) | -| **A-10** | Comment archaeology — `// Review #6`, `// M8`, `// F29c`, `// E4`, `// R2`, `// B2 fix`, `// CR-#` etc. scattered through both files | Throughout | Useful breadcrumbs but pollute reading. Replace with single-line `// Why:` notes per CLAUDE.md §3.7; drop outdated | -| **A-11** | `any` types in stream parsing + non-streaming response handling | `agent-loop.ts:362, 423` | Should narrow to `unknown` + Zod schema OR a strict `ChatCompletionChunk` interface | -| **A-12** | Magic numbers — `MAX_RETRIES = 3`, `60_000`, `30_000`, `MIN_CONTENT_LENGTH = 30` etc. are extracted in `orchestrator.ts` (M16) but scattered raw in `agent-loop.ts` | `agent-loop.ts:250, 302, 319` | Apply M16 pattern: lift to top-of-file constants block | -| **A-13** | Verbose JSDoc on private helpers + over-justified rationale comments (8-12 line explanations for 1-line code) | `orchestrator.ts:822-833 (Review #20), 885-893 (Review C2)` | Public API needs JSDoc; private helpers don't. Distill rationale to 1-2 lines | -| **A-14** | Inconsistent error pathways — some throws, some return error-as-string, some warn-and-continue, some silently swallow | `agent-loop.ts:299, 323, 547, 616, 736-744` | Standardize via typed `Result` or consistent throw + caller catch | -| **A-15** | Regex-based intent inference (preferences / decisions / corrections / structured findings) | `orchestrator.ts:835-1027` | SOTA pattern (Claude Code, Hermes): LLM-based extraction via small "memory writer" call with structured-output schema. Real engineering, post-launch. See PR-H | - ---- - -## 1. Per-file findings (top 3 files; remaining 108 are healthy or out-of-scope for polish) - -### `agent-loop.ts` (681 LOC) - -``` -agent-loop.ts:142 runAgentLoop is 540 lines — should be ~250 after A-3..A-6 extractions -agent-loop.ts:178 console.warn for allowedSources policy gap — typescript rule violation; route through logger -agent-loop.ts:242-263 8 scattered let vars (A-8) — typed LoopState would make invariants explicit -agent-loop.ts:265 outer for-loop body is 416 lines (turn loop); should be 80-100 once SSE + tool-exec + gates extract -agent-loop.ts:287-294 fetch call inline — extract to llmCall(litellmUrl, body, fetchFn) for testability -agent-loop.ts:296-323 retry policy inline + duplicated across 429 and 5xx branches (A-6) -agent-loop.ts:333-420 ~90L of SSE parsing (A-3) — lib/sse-parser.ts as standalone module -agent-loop.ts:362 let chunk: any — narrow via shared ChatCompletionChunk type -agent-loop.ts:423 const data: any — same; introduce ChatCompletionResponse type -agent-loop.ts:459-507 D1 + D3 gates inline in no-tool-calls branch (A-5) — extract to loop-gates.ts -agent-loop.ts:539-669 ~130L tool-exec sub-loop (A-4) — extract to tool-executor.ts as middleware chain: - pre:tool hook → governance → pre:memory-write → guard → execute → sanitize → - onToolResult → post:memory-write → post:tool -agent-loop.ts:573 result init to '' "defends against future refactors that slip in an early continue" — - the kind of defensive code that signals A-4 is overdue -agent-loop.ts:608 LoopGuard called via positional check(name, args) — fine, but the result/error - branches at 609-631 are a small ladder that belongs in tool-executor.ts -agent-loop.ts:632-641 scanForInjection ordering rationale (Review C2) is sound but the 8-line comment - block exceeds the 2-line CLAUDE.md §3.7 budget — distill (A-13) -``` - -### `orchestrator.ts` (1048 LOC) - -``` -orchestrator.ts:112-181 Orchestrator constructor + 6-layer initialization — fine, but the class - is then 900L of mixed responsibilities (A-9) -orchestrator.ts:223-247 getMemoryStats does 6 COUNT(*) queries — comment defends not caching ("once - per user turn, not once per LLM iteration"). Reasonable today; revisit if - personal mind exceeds ~500k frames -orchestrator.ts:254-278 fetchRecentFrames (M17) extracted — GOOD example of the pattern to apply - elsewhere in the class -orchestrator.ts:284-364 loadRecentContext returns string; extract to context-loader.ts (~80L) -orchestrator.ts:380-445 loadRecentContextFrames returns typed data; same extraction (~65L) -orchestrator.ts:451-465 cachedSection / uncachedSection helpers — fine, keep -orchestrator.ts:467-507 buildSystemPrompt — already clean after the section-caching refactor (good) -orchestrator.ts:517-561 buildAssembledPrompt — async, calls PromptAssembler; clean -orchestrator.ts:583-745 recallMemory is 162 lines — has 2 branches (catch-up SQL vs semantic), - filtering (R2 sign gate + score floor), formatting, injection scan, - turnId logging. Split the catch-up branch into its own private method; - drop recallMemory to ~80L -orchestrator.ts:593-598 12 catch-up regex patterns inline (A-7) — lift to module-level RECALL_PATTERNS -orchestrator.ts:753-1029 autoSaveFromExchange is 277 lines (A-2) — THE PRIORITY EXTRACTION. - Lift verbatim to pattern-write-back.ts as runAutoSavePatterns(orchestrator, userMsg, assistantMsg) - The function is structurally coherent: 4 pattern groups (preference, - style, decision-with-bilateral-consent, correction) + structured extraction (F29 a/b/c/d). -orchestrator.ts:835-846 prefPatterns array inline (A-7) -orchestrator.ts:894-902 decisionPatterns array inline (A-7) -orchestrator.ts:861-867 styleSignals array inline (A-7) -orchestrator.ts:822-833 Review #20 multi-line rationale (A-13) — distill -orchestrator.ts:885-893 Review C2 multi-line rationale (A-13) — distill -orchestrator.ts:944-962 hasStructuredFindings detection — fragile string-matching ("##" + URL pattern). - When the user gets to PR-H (LLM-based extractor), this is the strongest - candidate to lift out first because the rules are most ambiguous -``` - -### `behavioral-spec.ts` (449 LOC) -``` -behavioral-spec.ts:18-449 v3.0, 5 named sections, COMPACTION_PROMPT export — CLEAN. - No polish opportunity. Recently refactored per CLAUDE.md §10 sprint status. -``` - ---- - -## 2. Suggested PR breakdown (Claude-Code/Hermes-shaped target) - -| PR | Title | Files | LOC moved | Risk | Order | -|---|---|---|---|---|---| -| **PR-A** | `refactor(agent): extract autoSaveFromExchange → pattern-write-back.ts` | new `pattern-write-back.ts`, slim `orchestrator.ts` to ~770L | ~280 | Low (verbatim lift; same Orchestrator entry-point keeps it as `this.autoSaveFromExchange = (u, a) => runPatternWriteBack(this, u, a)`) | **First — highest leverage** | -| PR-B | `refactor(agent): extract SSE parser → lib/sse-parser.ts` | new `lib/sse-parser.ts`, slim agent-loop by ~90L | ~90 | Low (pure function, table-testable) | Second | -| PR-C | `refactor(agent): extract tool-call executor → lib/tool-executor.ts (middleware chain)` | new `lib/tool-executor.ts`, slim agent-loop by ~130L | ~150 | Medium (touches hook ordering — Review C2 invariant must be preserved + asserted via test) | Third | -| PR-D | `refactor(agent): extract D1/D3 gates → lib/loop-gates.ts` | new `lib/loop-gates.ts`, slim agent-loop by ~50L | ~80 | Low (gates are already isolated logic blocks) | Fourth | -| PR-E | `refactor(agent): typed LoopState + retry policy module` | new `lib/loop-state.ts`, new `lib/retry-policy.ts`, slim agent-loop by ~40L | ~120 | Low (mechanical) | Fifth | -| PR-F | `refactor(agent): extract context loaders → context-loader.ts` | new `context-loader.ts`, slim orchestrator by ~150L | ~155 | Low (the two `loadRecentContext*` methods are coherent units) | Sixth | -| PR-G | `chore(agent): collapse comment archaeology + remove `any` types` | both files | -200 LOC noise, +5 types | Low | Seventh | -| PR-H | `feat(agent): replace regex pattern extraction with LLM-based memory writer` | `pattern-write-back.ts`, new `memory-writer.ts` | ~-100, +200 | **High — real engineering**, post-launch | Deferred | - -**End state (after PR-A..PR-G, ~5-7 working days):** -- `agent-loop.ts` ~ 250 LOC (vs 681 today) -- `orchestrator.ts` ~ 600 LOC (vs 1048 today) -- 6 new focused modules each ~80-280 LOC, individually testable -- Zero behavior change through PR-G (mechanical refactor) -- PR-H is a behavior change and gates on Marko's post-launch greenlight - ---- - -## 3. Recommended Phase 1 — start here - -**PR-A: Extract `autoSaveFromExchange` → `pattern-write-back.ts`.** - -Why this first: -1. **Largest single extraction** — 277 LOC out of Orchestrator in one focused commit -2. **Lowest risk** — the function takes `(userMsg, assistantMsg)` and returns `string[]`; pure transform of two strings against the orchestrator's frame stores -3. **Coherent boundary** — the function already operates as a unit with a `save()` closure; lift the closure as a parameter -4. **Zero behavior change** — Orchestrator keeps its public API; the method body becomes a 1-line delegation -5. **Sets the pattern** — establishes the simplification model the rest of the PR sequence follows - -**Verification gate before claiming done:** -```bash -npx tsc --noEmit --project packages/agent/tsconfig.json -npm run test -- --run packages/agent -npm run lint -``` - -All three must be green. Any test that imported `Orchestrator.autoSaveFromExchange` directly continues to work because the method is preserved as a thin delegation. - ---- - -## 4. Risk + rollback - -**Risk profile:** -- PR-A through PR-G are mechanical refactors. They preserve the function call shapes that external callers (server routes, tests) depend on. -- The single non-trivial invariant is **PR-C's hook ordering** (`pre:tool → governance → pre:memory-write → guard → execute → sanitize → post:memory-write → post:tool`). Review C2 documents why: sanitize must happen BEFORE post-hooks and `onToolResult` callback. Encode this as an assertion test before merging PR-C. -- PR-H is the only PR that changes behavior. It must run side-by-side against the regex extractor for at least 2 weeks of real harvest data before swapping, with an explicit comparison report. - -**Rollback:** -```bash -# Per-PR — each PR is one atomic commit. Revert by SHA. -git revert - -# Whole-arc — checkpoint tag before PR-A: -git tag checkpoint/pre-agent-core-polish-2026-05-27 -git push --tags -``` - ---- - -## 5. Out-of-scope for this review - -- **`retrieval-agent-loop.ts` (973L)** — separate loop pattern for structured-action retrieval; its own polish review when needed -- **`system-tools.ts` (992L)** — tool definitions are necessarily long; not god-function territory -- **`persona-data.ts` (965L)** — declarative persona array; data, not logic -- **`evolve-schema.ts` (852L)** — self-evolution subsystem; its own audit when the polish here lands -- **The 100 other files** — most are 50-450 LOC focused modules. They look healthy on size scan. - ---- - -Generated by manual review against HEAD `819571d` on 2026-05-27. Comparison references: Claude Code's tool-result-injection + auto-compact loop; Hermes' minimal-state ReAct (Pillar-1 benchmark target). diff --git a/docs/handoffs/2026-05-27-web-guidelines-review.md b/docs/handoffs/2026-05-27-web-guidelines-review.md deleted file mode 100644 index 5020e68..0000000 --- a/docs/handoffs/2026-05-27-web-guidelines-review.md +++ /dev/null @@ -1,710 +0,0 @@ -# Web Interface Guidelines Review — apps/web/src/components/os/apps/ -**Date:** 2026-05-27 · **Scope:** All 26 OS app surfaces · **Source rules:** [vercel-labs/web-interface-guidelines](https://github.com/vercel-labs/web-interface-guidelines) - -> **~480 findings across 26 files.** Most are repeated patterns — a small number of utility/wrapper fixes close hundreds of findings. Read §0 (Systemic patterns) first to plan the work, then §1 (per-file findings) when implementing. - ---- - -## 0. Systemic patterns — fix once, close many - -These 12 patterns account for ~80% of all findings. Each can be addressed with a single utility/component fix that propagates across the codebase. - -| # | Pattern | Approx count | Fix once | -|---|---|---|---| -| **S-1** | Decorative lucide icons missing `aria-hidden="true"` | ~100 | Wrap lucide icons in a `