Multi-Agent Collaboration for Team and Friends
TypeScript agent-automationagent-orchestrationagent-workflowai-agentsai-collaborationai-memoryai-workforceautonomous-agentsclaude-codeclaude-code-skillscodexcoding-agentmulti-agentmultiple-agentone-person-businessone-person-companyone-person-teamopencodesolopreneur
fix: remove unused exports to fix knip CI
Gus78590359f3d4
diff --git a/src/cli/daemon/agent/index.ts b/src/cli/daemon/agent/index.tsindex 64dc6953e..d282bcc09 100644--- a/src/cli/daemon/agent/index.ts+++ b/src/cli/daemon/agent/index.ts@@ -35,14 +35,6 @@ export interface AgentBackend {encodeStdinMessage?(text: string, mode: StdinMode, opts?: EncodeOpts): string | null;}-export function descriptorFromDriver(backend: AgentBackend): RuntimeSessionDescriptor {- return {- lifecycle: backend.lifecycle ?? { kind: "per_turn" },- busyDeliveryMode: backend.busyDeliveryMode ?? "none",- supportsStdinNotification: backend.supportsStdinNotification ?? false,- };-}-export function createBackend(provider: string,cliPath: string,diff --git a/src/cli/daemon/steering/apmStateMachine.ts b/src/cli/daemon/steering/apmStateMachine.tsindex 6c12200da..f65029bfc 100644--- a/src/cli/daemon/steering/apmStateMachine.ts+++ b/src/cli/daemon/steering/apmStateMachine.ts@@ -18,7 +18,7 @@export const MAX_APM_GATED_STEERING_EVENTS = 12;-export type ApmPhase =+type ApmPhase =| "idle"| "tool_wait"| "tool_boundary"diff --git a/src/cli/daemon/steering/errorDiagnostics.ts b/src/cli/daemon/steering/errorDiagnostics.tsindex 379d70fc2..efdcd97a4 100644--- a/src/cli/daemon/steering/errorDiagnostics.ts+++ b/src/cli/daemon/steering/errorDiagnostics.ts@@ -10,7 +10,7 @@* 4. Fallback: `RuntimeError`.*/-export type ErrorClass =+type ErrorClass =| "RateLimitError"| "AuthError"| "NotFoundError"@@ -22,7 +22,7 @@ export type ErrorClass =| "ProviderApiError"| "RuntimeError";-export type ErrorAction = "retry" | "retry_backoff" | "retry_jitter" | "abort" | "report";+type ErrorAction = "retry" | "retry_backoff" | "retry_jitter" | "abort" | "report";export interface ClassifiedError {errorClass: ErrorClass;@@ -71,7 +71,7 @@ export function extractHttpStatus(message: string): number | null {return semantic ? Number(semantic[1]) : null;}-export const AUTH_ACTION_REQUIRED_PATTERNS: RegExp[] = [+const AUTH_ACTION_REQUIRED_PATTERNS: RegExp[] = [/access token could not be refreshed/i,/\btoken_(?:revoked|invalidated)\b/i,/refresh token was already used/i,diff --git a/src/cli/daemon/steering/mailbox.ts b/src/cli/daemon/steering/mailbox.tsindex a22a88ca4..7005adf79 100644--- a/src/cli/daemon/steering/mailbox.ts+++ b/src/cli/daemon/steering/mailbox.ts@@ -22,7 +22,7 @@ export interface SteerMessage {createdAt: string;}-export interface NackPayload {+interface NackPayload {reason: string;}@@ -33,12 +33,12 @@ export function inboxDir(baseDir: string, contextKey: string): string {return join(baseDir, ".steering", safeKey, "inbox");}-export function ackDir(baseDir: string, contextKey: string): string {+function ackDir(baseDir: string, contextKey: string): string {const safeKey = contextKey.replace(/[^a-zA-Z0-9_:-]/g, "_");return join(baseDir, ".steering", safeKey, "ack");}-export function steeringDir(baseDir: string, contextKey: string): string {+function steeringDir(baseDir: string, contextKey: string): string {const safeKey = contextKey.replace(/[^a-zA-Z0-9_:-]/g, "_");return join(baseDir, ".steering", safeKey);}@@ -107,7 +107,7 @@ export function waitForAck(// --- Session-runner side (reader) ----export function readSteerMessage(filePath: string): SteerMessage | null {+function readSteerMessage(filePath: string): SteerMessage | null {try {const content = readFileSync(filePath, "utf-8");return JSON.parse(content) as SteerMessage;@@ -202,23 +202,3 @@ export function watchInbox(};}-// --- Daemon restart: stale message detection -----export function findStaleInboxMessages(baseDir: string, contextKey: string, maxAgeMs: number = 30_000): string[] {- const inbox = inboxDir(baseDir, contextKey);- const stale: string[] = [];- try {- const files = readdirSync(inbox).filter((f) => f.endsWith(".json") && !f.endsWith(".tmp"));- const now = Date.now();- for (const file of files) {- try {- const content = readFileSync(join(inbox, file), "utf-8");- const msg = JSON.parse(content) as SteerMessage;- if (msg.createdAt && now - Date.parse(msg.createdAt) > maxAgeMs) {- stale.push(file.replace(/\.json$/, ""));- }- } catch { /* skip malformed */ }- }- } catch { /* inbox doesn't exist */ }- return stale;-}diff --git a/src/cli/daemon/types.ts b/src/cli/daemon/types.tsindex b9760c6c2..a1ce02f1a 100644--- a/src/cli/daemon/types.ts+++ b/src/cli/daemon/types.ts@@ -110,7 +110,7 @@ export interface SessionRunnerInput {// --- Steering & ParsedEvent types ----export type DriverLifecycleKind = "persistent" | "per_turn";+type DriverLifecycleKind = "persistent" | "per_turn";export type BusyDeliveryMode = "gated" | "direct" | "none";