cascade-ai 0.17.0 → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -188,6 +188,13 @@ interface T3SubtaskSpec {
188
188
  peerT3Ids: string[];
189
189
  dependsOn?: string[];
190
190
  executionMode?: 'parallel' | 'sequential';
191
+ /** Spec slice: the exact file paths this subtask creates or edits. */
192
+ files?: string[];
193
+ /** Objectively verifiable acceptance checks for the subtask's output. */
194
+ acceptance?: string[];
195
+ /** The ONLY background the worker needs — workers see nothing else, so the
196
+ * planner must make it self-sufficient (keeps worker context minimal). */
197
+ contextBrief?: string;
191
198
  }
192
199
  interface T2ToT3Assignment {
193
200
  subtaskId: string;
@@ -200,6 +207,10 @@ interface T2ToT3Assignment {
200
207
  sectionTitle?: string;
201
208
  dependsOn?: string[];
202
209
  executionMode?: 'parallel' | 'sequential';
210
+ /** Spec slice fields — see T3SubtaskSpec. */
211
+ files?: string[];
212
+ acceptance?: string[];
213
+ contextBrief?: string;
203
214
  }
204
215
  interface StatusUpdate {
205
216
  progressPct: number;
@@ -1090,6 +1101,14 @@ declare class WorldStateDB {
1090
1101
  * the raw linear log — this replaces replaying the whole log during planning.
1091
1102
  */
1092
1103
  getFormattedKnowledge(prompt?: string, limit?: number): string;
1104
+ /**
1105
+ * Delete one fact by its (normalized) entity + relation key. Returns whether
1106
+ * a row was actually removed. Powers the desktop Knowledge tab's per-fact
1107
+ * delete — users can prune what the planner remembers about their project.
1108
+ */
1109
+ deleteFact(entity: string, relation: string): boolean;
1110
+ /** Delete every fact. Returns how many were removed. */
1111
+ clearFacts(): number;
1093
1112
  exportKnowledge(): {
1094
1113
  facts: WorldFact[];
1095
1114
  worldLog: WorldStateEntry[];
@@ -1549,11 +1568,19 @@ declare abstract class BaseTier extends EventEmitter {
1549
1568
  * which would interleave, are not tagged.
1550
1569
  */
1551
1570
  protected isPresenter: boolean;
1571
+ /**
1572
+ * The model actually serving this tier (`provider:id`), once resolved —
1573
+ * rides on every tier:status event so the desktop can show which model ran
1574
+ * which node (Cockpit node panel / Why panel).
1575
+ */
1576
+ protected servingModel?: string;
1552
1577
  constructor(role: TierRole, id?: string, parentId?: string);
1553
1578
  /** Mark this tier as the run's presenter (root tier). */
1554
1579
  setPresenter(on?: boolean): void;
1555
1580
  getStatus(): TierStatus;
1556
1581
  protected setStatus(status: TierStatus, output?: string): void;
1582
+ /** Record the model serving this tier; future status events carry it. */
1583
+ protected setServingModel(model: string | undefined): void;
1557
1584
  protected setLabel(label: string): void;
1558
1585
  setSystemPromptOverride(prompt: string): void;
1559
1586
  setHierarchyContext(context: string): void;
@@ -1900,7 +1927,18 @@ declare class Cascade extends EventEmitter {
1900
1927
  * explicit multi-part structure, so ordinary single-file asks (handled as
1901
1928
  * Simple/Moderate) don't get over-escalated.
1902
1929
  */
1930
+ /** Shared build/scale signals for the complexity floors below. */
1931
+ private buildSignals;
1932
+ /**
1933
+ * A build prompt with REAL scale: multiple system-level deliverables, or a
1934
+ * deliverable plus explicitly multi-part phrasing. Only these floor to the
1935
+ * full T1→T2→T3 hierarchy — "create a todo app" is a build prompt too, but
1936
+ * flooring every small build to Complex was the #1 token bomb (3-5 managers
1937
+ * × workers for a task one worker handles).
1938
+ */
1903
1939
  private looksClearlyComplex;
1940
+ /** A small single-deliverable build — real work, but one manager's worth. */
1941
+ private looksLikeModerateBuild;
1904
1942
  private static globCache;
1905
1943
  private countWorkspaceFiles;
1906
1944
  private determineComplexity;
@@ -2324,7 +2362,8 @@ declare class ConfigManager {
2324
2362
  private cascadeMd;
2325
2363
  private workspacePath;
2326
2364
  private globalDir;
2327
- constructor(workspacePath?: string);
2365
+ /** `globalDirOverride` exists for tests — never point it at the real home dir there. */
2366
+ constructor(workspacePath?: string, globalDirOverride?: string);
2328
2367
  load(): Promise<void>;
2329
2368
  getConfig(): CascadeConfig;
2330
2369
  getKeystore(): Keystore;
@@ -2668,6 +2707,8 @@ declare const CASCADE_DASHBOARD_SECRET_FILE = ".cascade/dashboard-secret";
2668
2707
  declare const GLOBAL_CONFIG_DIR = ".cascade-ai";
2669
2708
  declare const GLOBAL_DB_FILE = "memory.db";
2670
2709
  declare const GLOBAL_KEYSTORE_FILE = "keystore.enc";
2710
+ /** Machine-global provider credentials (API keys, Azure deployments) — chmod 600. */
2711
+ declare const GLOBAL_CREDENTIALS_FILE = "credentials.json";
2671
2712
  declare const GLOBAL_RUNTIME_DB_FILE = "runtime.db";
2672
2713
  declare const DEFAULT_DASHBOARD_PORT = 4891;
2673
2714
  declare const DEFAULT_API_PORT = 4892;
@@ -2732,4 +2773,4 @@ declare class CascadeToolError extends Error {
2732
2773
  declare function preferIpv4Host(url: string | undefined): string | undefined;
2733
2774
  declare function nodeHttpFetch(input: string | URL | Request, init?: RequestInit, redirectCount?: number): Promise<Response>;
2734
2775
 
2735
- export { AZURE_BASE_URL_TEMPLATE, type ApprovalRequest, type ApprovalResponse, type AuditEntry, AuditLogger, type BenchmarksConfig, type BudgetConfig, CASCADE_AUDIT_FILE, CASCADE_CONFIG_DIR, CASCADE_CONFIG_FILE, CASCADE_DASHBOARD_SECRET_FILE, CASCADE_DB_FILE, CASCADE_IGNORE_FILE, CASCADE_KEYSTORE_FILE, CASCADE_MD_FILE, CASCADE_VERSION, COMPLEXITY_T2_COUNT, Cascade, CascadeCancelledError, type CascadeConfig, type CascadeEvent, type CascadeEventType, CascadeIgnore, type CascadeMessage, CascadeRouter, type CascadeRunOptions, type CascadeRunResult, type CascadeThemeName, CascadeToolError, ConfigManager, type ConversationMessage, DEFAULT_API_PORT, DEFAULT_APPROVAL_REQUIRED, DEFAULT_AUTO_SUMMARIZE_AT, DEFAULT_CONTEXT_LIMIT, DEFAULT_DASHBOARD_PORT, DEFAULT_MAX_SESSION_MESSAGES, DEFAULT_RETENTION_DAYS, DEFAULT_THEME, type DashboardConfig, DashboardServer, type EscalationPayload, GLOBAL_CONFIG_DIR, GLOBAL_DB_FILE, GLOBAL_KEYSTORE_FILE, GLOBAL_RUNTIME_DB_FILE, type GenerateOptions, type GenerateResult, type HookDefinition, type HooksConfig, HooksRunner, type Identity, type ImageAttachment, Keystore, LM_STUDIO_BASE_URL, type LegacyThemeName, MODELS, McpClient, type McpServerConfig$1 as McpServerConfig, type MemoryConfig, MemoryStore, type Message, type MessageContent, type MessagePayload, type MessageStatus, type MessageType, type ModelInfo, type ModelOverrides, OLLAMA_BASE_URL, PROVIDER_DISPLAY_NAMES, type PeerMessage, type PeerMessageEvent, type PeerSyncPayload, type PeerSyncType, type PermissionDecision, type PermissionDecisionPayload, type PermissionRequest, type PermissionTrailEntry, type PlanReviewConfig, type ProviderConfig, type ProviderType, type RuntimeNode, type RuntimeNodeLog, type RuntimeRefreshPayload, type RuntimeScope, type RuntimeSession, type RuntimeSnapshotPayload, type ScheduledTask, type Session, type SessionCheckpoint, type SessionMetadata, type SessionSubscriptionPayload, type StatusUpdate, type StoredMessage, type StreamChunk, T1Administrator, type T1ToT2Assignment, T1_MODEL_PRIORITY, T2Manager, type T2Result, type T2ToT3Assignment, T2_MODEL_PRIORITY, type T3Result, type T3ResultPayload, type T3SubtaskSpec, T3Worker, T3_MODEL_PRIORITY, THEME_NAMES, TOOL_NAMES, type TaskComplexity, TaskScheduler, Telemetry, type TelemetryConfig, type Theme, type ThemeColors, type ThemeName, type TierConfig, type TierLimits, type TierRole, type TierStatus, type TokenUsage, type ToolCall, type ToolDefinition, type ToolExecuteOptions, ToolRegistry, type ToolResult, type ToolsConfig, VISION_MODEL_PRIORITY, type WebSearchConfig, type WebhookConfig, type WorkspaceConfig, createCascade, nodeHttpFetch, preferIpv4Host, runCascade, streamCascade };
2776
+ export { AZURE_BASE_URL_TEMPLATE, type ApprovalRequest, type ApprovalResponse, type AuditEntry, AuditLogger, type BenchmarksConfig, type BudgetConfig, CASCADE_AUDIT_FILE, CASCADE_CONFIG_DIR, CASCADE_CONFIG_FILE, CASCADE_DASHBOARD_SECRET_FILE, CASCADE_DB_FILE, CASCADE_IGNORE_FILE, CASCADE_KEYSTORE_FILE, CASCADE_MD_FILE, CASCADE_VERSION, COMPLEXITY_T2_COUNT, Cascade, CascadeCancelledError, type CascadeConfig, type CascadeEvent, type CascadeEventType, CascadeIgnore, type CascadeMessage, CascadeRouter, type CascadeRunOptions, type CascadeRunResult, type CascadeThemeName, CascadeToolError, ConfigManager, type ConversationMessage, DEFAULT_API_PORT, DEFAULT_APPROVAL_REQUIRED, DEFAULT_AUTO_SUMMARIZE_AT, DEFAULT_CONTEXT_LIMIT, DEFAULT_DASHBOARD_PORT, DEFAULT_MAX_SESSION_MESSAGES, DEFAULT_RETENTION_DAYS, DEFAULT_THEME, type DashboardConfig, DashboardServer, type EscalationPayload, GLOBAL_CONFIG_DIR, GLOBAL_CREDENTIALS_FILE, GLOBAL_DB_FILE, GLOBAL_KEYSTORE_FILE, GLOBAL_RUNTIME_DB_FILE, type GenerateOptions, type GenerateResult, type HookDefinition, type HooksConfig, HooksRunner, type Identity, type ImageAttachment, Keystore, LM_STUDIO_BASE_URL, type LegacyThemeName, MODELS, McpClient, type McpServerConfig$1 as McpServerConfig, type MemoryConfig, MemoryStore, type Message, type MessageContent, type MessagePayload, type MessageStatus, type MessageType, type ModelInfo, type ModelOverrides, OLLAMA_BASE_URL, PROVIDER_DISPLAY_NAMES, type PeerMessage, type PeerMessageEvent, type PeerSyncPayload, type PeerSyncType, type PermissionDecision, type PermissionDecisionPayload, type PermissionRequest, type PermissionTrailEntry, type PlanReviewConfig, type ProviderConfig, type ProviderType, type RuntimeNode, type RuntimeNodeLog, type RuntimeRefreshPayload, type RuntimeScope, type RuntimeSession, type RuntimeSnapshotPayload, type ScheduledTask, type Session, type SessionCheckpoint, type SessionMetadata, type SessionSubscriptionPayload, type StatusUpdate, type StoredMessage, type StreamChunk, T1Administrator, type T1ToT2Assignment, T1_MODEL_PRIORITY, T2Manager, type T2Result, type T2ToT3Assignment, T2_MODEL_PRIORITY, type T3Result, type T3ResultPayload, type T3SubtaskSpec, T3Worker, T3_MODEL_PRIORITY, THEME_NAMES, TOOL_NAMES, type TaskComplexity, TaskScheduler, Telemetry, type TelemetryConfig, type Theme, type ThemeColors, type ThemeName, type TierConfig, type TierLimits, type TierRole, type TierStatus, type TokenUsage, type ToolCall, type ToolDefinition, type ToolExecuteOptions, ToolRegistry, type ToolResult, type ToolsConfig, VISION_MODEL_PRIORITY, type WebSearchConfig, type WebhookConfig, type WorkspaceConfig, createCascade, nodeHttpFetch, preferIpv4Host, runCascade, streamCascade };
package/dist/index.d.ts CHANGED
@@ -188,6 +188,13 @@ interface T3SubtaskSpec {
188
188
  peerT3Ids: string[];
189
189
  dependsOn?: string[];
190
190
  executionMode?: 'parallel' | 'sequential';
191
+ /** Spec slice: the exact file paths this subtask creates or edits. */
192
+ files?: string[];
193
+ /** Objectively verifiable acceptance checks for the subtask's output. */
194
+ acceptance?: string[];
195
+ /** The ONLY background the worker needs — workers see nothing else, so the
196
+ * planner must make it self-sufficient (keeps worker context minimal). */
197
+ contextBrief?: string;
191
198
  }
192
199
  interface T2ToT3Assignment {
193
200
  subtaskId: string;
@@ -200,6 +207,10 @@ interface T2ToT3Assignment {
200
207
  sectionTitle?: string;
201
208
  dependsOn?: string[];
202
209
  executionMode?: 'parallel' | 'sequential';
210
+ /** Spec slice fields — see T3SubtaskSpec. */
211
+ files?: string[];
212
+ acceptance?: string[];
213
+ contextBrief?: string;
203
214
  }
204
215
  interface StatusUpdate {
205
216
  progressPct: number;
@@ -1090,6 +1101,14 @@ declare class WorldStateDB {
1090
1101
  * the raw linear log — this replaces replaying the whole log during planning.
1091
1102
  */
1092
1103
  getFormattedKnowledge(prompt?: string, limit?: number): string;
1104
+ /**
1105
+ * Delete one fact by its (normalized) entity + relation key. Returns whether
1106
+ * a row was actually removed. Powers the desktop Knowledge tab's per-fact
1107
+ * delete — users can prune what the planner remembers about their project.
1108
+ */
1109
+ deleteFact(entity: string, relation: string): boolean;
1110
+ /** Delete every fact. Returns how many were removed. */
1111
+ clearFacts(): number;
1093
1112
  exportKnowledge(): {
1094
1113
  facts: WorldFact[];
1095
1114
  worldLog: WorldStateEntry[];
@@ -1549,11 +1568,19 @@ declare abstract class BaseTier extends EventEmitter {
1549
1568
  * which would interleave, are not tagged.
1550
1569
  */
1551
1570
  protected isPresenter: boolean;
1571
+ /**
1572
+ * The model actually serving this tier (`provider:id`), once resolved —
1573
+ * rides on every tier:status event so the desktop can show which model ran
1574
+ * which node (Cockpit node panel / Why panel).
1575
+ */
1576
+ protected servingModel?: string;
1552
1577
  constructor(role: TierRole, id?: string, parentId?: string);
1553
1578
  /** Mark this tier as the run's presenter (root tier). */
1554
1579
  setPresenter(on?: boolean): void;
1555
1580
  getStatus(): TierStatus;
1556
1581
  protected setStatus(status: TierStatus, output?: string): void;
1582
+ /** Record the model serving this tier; future status events carry it. */
1583
+ protected setServingModel(model: string | undefined): void;
1557
1584
  protected setLabel(label: string): void;
1558
1585
  setSystemPromptOverride(prompt: string): void;
1559
1586
  setHierarchyContext(context: string): void;
@@ -1900,7 +1927,18 @@ declare class Cascade extends EventEmitter {
1900
1927
  * explicit multi-part structure, so ordinary single-file asks (handled as
1901
1928
  * Simple/Moderate) don't get over-escalated.
1902
1929
  */
1930
+ /** Shared build/scale signals for the complexity floors below. */
1931
+ private buildSignals;
1932
+ /**
1933
+ * A build prompt with REAL scale: multiple system-level deliverables, or a
1934
+ * deliverable plus explicitly multi-part phrasing. Only these floor to the
1935
+ * full T1→T2→T3 hierarchy — "create a todo app" is a build prompt too, but
1936
+ * flooring every small build to Complex was the #1 token bomb (3-5 managers
1937
+ * × workers for a task one worker handles).
1938
+ */
1903
1939
  private looksClearlyComplex;
1940
+ /** A small single-deliverable build — real work, but one manager's worth. */
1941
+ private looksLikeModerateBuild;
1904
1942
  private static globCache;
1905
1943
  private countWorkspaceFiles;
1906
1944
  private determineComplexity;
@@ -2324,7 +2362,8 @@ declare class ConfigManager {
2324
2362
  private cascadeMd;
2325
2363
  private workspacePath;
2326
2364
  private globalDir;
2327
- constructor(workspacePath?: string);
2365
+ /** `globalDirOverride` exists for tests — never point it at the real home dir there. */
2366
+ constructor(workspacePath?: string, globalDirOverride?: string);
2328
2367
  load(): Promise<void>;
2329
2368
  getConfig(): CascadeConfig;
2330
2369
  getKeystore(): Keystore;
@@ -2668,6 +2707,8 @@ declare const CASCADE_DASHBOARD_SECRET_FILE = ".cascade/dashboard-secret";
2668
2707
  declare const GLOBAL_CONFIG_DIR = ".cascade-ai";
2669
2708
  declare const GLOBAL_DB_FILE = "memory.db";
2670
2709
  declare const GLOBAL_KEYSTORE_FILE = "keystore.enc";
2710
+ /** Machine-global provider credentials (API keys, Azure deployments) — chmod 600. */
2711
+ declare const GLOBAL_CREDENTIALS_FILE = "credentials.json";
2671
2712
  declare const GLOBAL_RUNTIME_DB_FILE = "runtime.db";
2672
2713
  declare const DEFAULT_DASHBOARD_PORT = 4891;
2673
2714
  declare const DEFAULT_API_PORT = 4892;
@@ -2732,4 +2773,4 @@ declare class CascadeToolError extends Error {
2732
2773
  declare function preferIpv4Host(url: string | undefined): string | undefined;
2733
2774
  declare function nodeHttpFetch(input: string | URL | Request, init?: RequestInit, redirectCount?: number): Promise<Response>;
2734
2775
 
2735
- export { AZURE_BASE_URL_TEMPLATE, type ApprovalRequest, type ApprovalResponse, type AuditEntry, AuditLogger, type BenchmarksConfig, type BudgetConfig, CASCADE_AUDIT_FILE, CASCADE_CONFIG_DIR, CASCADE_CONFIG_FILE, CASCADE_DASHBOARD_SECRET_FILE, CASCADE_DB_FILE, CASCADE_IGNORE_FILE, CASCADE_KEYSTORE_FILE, CASCADE_MD_FILE, CASCADE_VERSION, COMPLEXITY_T2_COUNT, Cascade, CascadeCancelledError, type CascadeConfig, type CascadeEvent, type CascadeEventType, CascadeIgnore, type CascadeMessage, CascadeRouter, type CascadeRunOptions, type CascadeRunResult, type CascadeThemeName, CascadeToolError, ConfigManager, type ConversationMessage, DEFAULT_API_PORT, DEFAULT_APPROVAL_REQUIRED, DEFAULT_AUTO_SUMMARIZE_AT, DEFAULT_CONTEXT_LIMIT, DEFAULT_DASHBOARD_PORT, DEFAULT_MAX_SESSION_MESSAGES, DEFAULT_RETENTION_DAYS, DEFAULT_THEME, type DashboardConfig, DashboardServer, type EscalationPayload, GLOBAL_CONFIG_DIR, GLOBAL_DB_FILE, GLOBAL_KEYSTORE_FILE, GLOBAL_RUNTIME_DB_FILE, type GenerateOptions, type GenerateResult, type HookDefinition, type HooksConfig, HooksRunner, type Identity, type ImageAttachment, Keystore, LM_STUDIO_BASE_URL, type LegacyThemeName, MODELS, McpClient, type McpServerConfig$1 as McpServerConfig, type MemoryConfig, MemoryStore, type Message, type MessageContent, type MessagePayload, type MessageStatus, type MessageType, type ModelInfo, type ModelOverrides, OLLAMA_BASE_URL, PROVIDER_DISPLAY_NAMES, type PeerMessage, type PeerMessageEvent, type PeerSyncPayload, type PeerSyncType, type PermissionDecision, type PermissionDecisionPayload, type PermissionRequest, type PermissionTrailEntry, type PlanReviewConfig, type ProviderConfig, type ProviderType, type RuntimeNode, type RuntimeNodeLog, type RuntimeRefreshPayload, type RuntimeScope, type RuntimeSession, type RuntimeSnapshotPayload, type ScheduledTask, type Session, type SessionCheckpoint, type SessionMetadata, type SessionSubscriptionPayload, type StatusUpdate, type StoredMessage, type StreamChunk, T1Administrator, type T1ToT2Assignment, T1_MODEL_PRIORITY, T2Manager, type T2Result, type T2ToT3Assignment, T2_MODEL_PRIORITY, type T3Result, type T3ResultPayload, type T3SubtaskSpec, T3Worker, T3_MODEL_PRIORITY, THEME_NAMES, TOOL_NAMES, type TaskComplexity, TaskScheduler, Telemetry, type TelemetryConfig, type Theme, type ThemeColors, type ThemeName, type TierConfig, type TierLimits, type TierRole, type TierStatus, type TokenUsage, type ToolCall, type ToolDefinition, type ToolExecuteOptions, ToolRegistry, type ToolResult, type ToolsConfig, VISION_MODEL_PRIORITY, type WebSearchConfig, type WebhookConfig, type WorkspaceConfig, createCascade, nodeHttpFetch, preferIpv4Host, runCascade, streamCascade };
2776
+ export { AZURE_BASE_URL_TEMPLATE, type ApprovalRequest, type ApprovalResponse, type AuditEntry, AuditLogger, type BenchmarksConfig, type BudgetConfig, CASCADE_AUDIT_FILE, CASCADE_CONFIG_DIR, CASCADE_CONFIG_FILE, CASCADE_DASHBOARD_SECRET_FILE, CASCADE_DB_FILE, CASCADE_IGNORE_FILE, CASCADE_KEYSTORE_FILE, CASCADE_MD_FILE, CASCADE_VERSION, COMPLEXITY_T2_COUNT, Cascade, CascadeCancelledError, type CascadeConfig, type CascadeEvent, type CascadeEventType, CascadeIgnore, type CascadeMessage, CascadeRouter, type CascadeRunOptions, type CascadeRunResult, type CascadeThemeName, CascadeToolError, ConfigManager, type ConversationMessage, DEFAULT_API_PORT, DEFAULT_APPROVAL_REQUIRED, DEFAULT_AUTO_SUMMARIZE_AT, DEFAULT_CONTEXT_LIMIT, DEFAULT_DASHBOARD_PORT, DEFAULT_MAX_SESSION_MESSAGES, DEFAULT_RETENTION_DAYS, DEFAULT_THEME, type DashboardConfig, DashboardServer, type EscalationPayload, GLOBAL_CONFIG_DIR, GLOBAL_CREDENTIALS_FILE, GLOBAL_DB_FILE, GLOBAL_KEYSTORE_FILE, GLOBAL_RUNTIME_DB_FILE, type GenerateOptions, type GenerateResult, type HookDefinition, type HooksConfig, HooksRunner, type Identity, type ImageAttachment, Keystore, LM_STUDIO_BASE_URL, type LegacyThemeName, MODELS, McpClient, type McpServerConfig$1 as McpServerConfig, type MemoryConfig, MemoryStore, type Message, type MessageContent, type MessagePayload, type MessageStatus, type MessageType, type ModelInfo, type ModelOverrides, OLLAMA_BASE_URL, PROVIDER_DISPLAY_NAMES, type PeerMessage, type PeerMessageEvent, type PeerSyncPayload, type PeerSyncType, type PermissionDecision, type PermissionDecisionPayload, type PermissionRequest, type PermissionTrailEntry, type PlanReviewConfig, type ProviderConfig, type ProviderType, type RuntimeNode, type RuntimeNodeLog, type RuntimeRefreshPayload, type RuntimeScope, type RuntimeSession, type RuntimeSnapshotPayload, type ScheduledTask, type Session, type SessionCheckpoint, type SessionMetadata, type SessionSubscriptionPayload, type StatusUpdate, type StoredMessage, type StreamChunk, T1Administrator, type T1ToT2Assignment, T1_MODEL_PRIORITY, T2Manager, type T2Result, type T2ToT3Assignment, T2_MODEL_PRIORITY, type T3Result, type T3ResultPayload, type T3SubtaskSpec, T3Worker, T3_MODEL_PRIORITY, THEME_NAMES, TOOL_NAMES, type TaskComplexity, TaskScheduler, Telemetry, type TelemetryConfig, type Theme, type ThemeColors, type ThemeName, type TierConfig, type TierLimits, type TierRole, type TierStatus, type TokenUsage, type ToolCall, type ToolDefinition, type ToolExecuteOptions, ToolRegistry, type ToolResult, type ToolsConfig, VISION_MODEL_PRIORITY, type WebSearchConfig, type WebhookConfig, type WorkspaceConfig, createCascade, nodeHttpFetch, preferIpv4Host, runCascade, streamCascade };