Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
chore: remove dead docs/superpowers/specs references from comments
Jose Ramirez38e96ce80d48
diff --git a/channel-reader/src/main.ts b/channel-reader/src/main.tsindex b094680fc..a69ad17e5 100644--- a/channel-reader/src/main.ts+++ b/channel-reader/src/main.ts@@ -998,7 +998,7 @@ export class ChannelReader {* open for the entire task lifecycle, and edits a status message in-place as* progress events arrive.*- * Architecture (per docs/superpowers/specs/2026-05-12-channel-reader-sse-driven-design.md):+ * Architecture:* - The wrapping Promise resolves on the FIRST state-signal event* (suspended OR terminal OR error). This unblocks handleMessages's for* loop quickly so the poll cycle can move on.diff --git a/mcp-host/src/agent/stateMachine.ts b/mcp-host/src/agent/stateMachine.tsindex 3efc240cc..b4f8e9e2f 100644--- a/mcp-host/src/agent/stateMachine.ts+++ b/mcp-host/src/agent/stateMachine.ts@@ -1159,7 +1159,6 @@ export class AgentStateMachine extends EventEmitter {/*** Handle task failure — the single delivery point for user-visible errors.- * See docs/superpowers/specs/2026-04-10-llm-error-handling-design.md, Layer E.*/private handleTaskFailure(task: Task, error: TaskError): void {console.error(diff --git a/mcp-host/src/core/errors.ts b/mcp-host/src/core/errors.tsindex 073ef743c..120342e4a 100644--- a/mcp-host/src/core/errors.ts+++ b/mcp-host/src/core/errors.ts@@ -26,7 +26,6 @@ export enum LlmErrorCode {ContextLengthExceeded = 'LLM_CONTEXT_LENGTH_EXCEEDED',ContentFiltered = 'LLM_CONTENT_FILTERED',ModelNotAvailable = 'LLM_MODEL_NOT_AVAILABLE',- // New — see docs/superpowers/specs/2026-04-10-llm-error-handling-design.mdInsufficientQuota = 'LLM_INSUFFICIENT_QUOTA',RateLimited = 'LLM_RATE_LIMITED',AuthenticationFailed = 'LLM_AUTHENTICATION_FAILED',diff --git a/mcp-host/src/lifecycle/taskLifecycle.ts b/mcp-host/src/lifecycle/taskLifecycle.tsindex dbe90fe66..3854c02d5 100644--- a/mcp-host/src/lifecycle/taskLifecycle.ts+++ b/mcp-host/src/lifecycle/taskLifecycle.ts@@ -1,6 +1,5 @@/*** TaskLifecycle — single-writer service for task state transitions.- * See docs/superpowers/specs/2026-04-20-task-cancel-v2-design.md §4.1.*/import { EventEmitter } from 'events'import type { Task } from '../queue/types'diff --git a/mcp-host/src/lifecycle/types.ts b/mcp-host/src/lifecycle/types.tsindex ad722276c..81206ee14 100644--- a/mcp-host/src/lifecycle/types.ts+++ b/mcp-host/src/lifecycle/types.ts@@ -1,5 +1,5 @@/**- * TaskLifecycle types. See docs/superpowers/specs/2026-04-20-task-cancel-v2-design.md §3.+ * TaskLifecycle types.*//*** MIGRATION NOTE: `TaskStatus` and `QueueStats` are also exported fromdiff --git a/mcp-host/src/llm/errorClassification.ts b/mcp-host/src/llm/errorClassification.tsindex 79c3fb73d..734476384 100644--- a/mcp-host/src/llm/errorClassification.ts+++ b/mcp-host/src/llm/errorClassification.ts@@ -4,8 +4,6 @@* These helpers work on any error whose shape matches HttpErrorLike — no* instanceof checks, so OpenAI/Anthropic/ZAI/Bailian/future providers all* share the same status-code branch.- *- * See docs/superpowers/specs/2026-04-10-llm-error-handling-design.md — Layer B.*/import { LlmErrorCode } from '../core/errors'import type { ClassifiedError } from './index'diff --git a/mcp-host/src/llm/types.ts b/mcp-host/src/llm/types.tsindex 4d5f0765b..7c49ebbd4 100644--- a/mcp-host/src/llm/types.ts+++ b/mcp-host/src/llm/types.ts@@ -29,7 +29,7 @@ import type { LlmProvider } from './registryCore'* to construct the downstream LlmError.** `message` is the raw provider message, passed through verbatim (no- * reformatting). See docs/superpowers/specs/2026-04-10-llm-error-handling-design.md.+ * reformatting).*/export interface ClassifiedError {code: LlmErrorCodediff --git a/mcp-host/src/queue/messageQueue.ts b/mcp-host/src/queue/messageQueue.tsindex 1cef11b3b..3ff112f42 100644--- a/mcp-host/src/queue/messageQueue.ts+++ b/mcp-host/src/queue/messageQueue.ts@@ -15,8 +15,6 @@* peek, isEmpty, isProcessing, getCurrentTask, getPendingTasks,* getCompletedTasks, getFailedTasks, clearHistory, sortQueue,* trimCompletedHistory, trimFailedHistory.- *- * See docs/superpowers/specs/2026-04-20-task-cancel-v2-design.md §4.2, §9.3.*/import { EventEmitter } from 'events'import { v4 as uuidv4 } from 'uuid'diff --git a/mcp-host/src/queue/types.ts b/mcp-host/src/queue/types.tsindex 3ce9a6e00..8531b1bd8 100644--- a/mcp-host/src/queue/types.ts+++ b/mcp-host/src/queue/types.ts@@ -11,8 +11,6 @@ import { IncomingMessage } from '../server'* Flows unchanged through all four user-delivery channels:* task.responseCallback, sync POST /messages response, async pendingTaskResults* polling, and the SSE progress stream's "error" event.- *- * See docs/superpowers/specs/2026-04-10-llm-error-handling-design.md.*/export interface TaskError {code: string // LlmErrorCode string, e.g. "LLM_INSUFFICIENT_QUOTA"