@theokit/sdk 2.28.0 → 2.30.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/CHANGELOG.md +34 -0
- package/dist/a2a/index.cjs +373 -17
- package/dist/a2a/index.cjs.map +1 -1
- package/dist/a2a/index.js +373 -17
- package/dist/a2a/index.js.map +1 -1
- package/dist/{cron-BR1NCSk1.d.cts → cron-BNHJywtl.d.ts} +482 -18
- package/dist/{cron-DgEQCJ2i.d.ts → cron-t4oKI2Is.d.cts} +482 -18
- package/dist/cron.cjs +1143 -692
- package/dist/cron.cjs.map +1 -1
- package/dist/cron.d.cts +2 -2
- package/dist/cron.d.ts +2 -2
- package/dist/cron.js +1146 -695
- package/dist/cron.js.map +1 -1
- package/dist/{errors-DLMNb4Ka.d.cts → errors-DZpCGlYv.d.cts} +1 -1
- package/dist/{errors-CbY3pxY7.d.ts → errors-D_Bfo30u.d.ts} +1 -1
- package/dist/errors.d.cts +2 -2
- package/dist/eval.cjs +914 -508
- package/dist/eval.cjs.map +1 -1
- package/dist/eval.js +915 -509
- package/dist/eval.js.map +1 -1
- package/dist/index.cjs +1038 -590
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -135
- package/dist/index.d.ts +13 -135
- package/dist/index.js +1037 -588
- package/dist/index.js.map +1 -1
- package/dist/internal/persistence/conversation-storage-fs.d.cts +4 -0
- package/dist/internal/persistence/conversation-storage-fs.d.ts +4 -0
- package/dist/internal/persistence/conversation-storage-memory.d.cts +4 -0
- package/dist/internal/persistence/conversation-storage-memory.d.ts +4 -0
- package/dist/internal/persistence/objective-coerce.d.cts +9 -0
- package/dist/internal/persistence/objective-coerce.d.ts +9 -0
- package/dist/internal/runtime/lifecycle/wrap-completion-check-run.d.ts +30 -0
- package/dist/internal/runtime/local-agent/local-agent-goal-extensions.d.ts +80 -0
- package/dist/internal/runtime/objective/objective-store.d.ts +33 -0
- package/dist/{run-CdWiihyU.d.cts → run-CLXKMRgq.d.cts} +71 -2
- package/dist/{run-CdWiihyU.d.ts → run-CLXKMRgq.d.ts} +71 -2
- package/dist/types/agent.d.ts +32 -1
- package/dist/types/conversation-storage.d.ts +23 -0
- package/dist/types/cron.d.ts +30 -13
- package/dist/types/goal-events.d.ts +7 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/objective.d.ts +45 -0
- package/dist/types/run-events.d.ts +12 -1
- package/dist/types/run.d.ts +58 -0
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { T as TheokitAgentError, B as BudgetOptions, a as BudgetHandle, b as BudgetSnapshot, E as ErrorMetadata } from './errors-
|
|
2
|
-
export { A as AgentDisposedError, c as AgentRunError, d as AgentRunErrorCode, e as AuthenticationError, f as BudgetExceedEvent, g as BudgetExceededError, h as BudgetLimit, i as BudgetMode, j as BudgetScope, k as BudgetThresholdEvent, l as BudgetWindow, C as ConfigurationError, m as ErrorCode, I as IntegrationNotConnectedError, n as InvalidTaskIdError, M as MemoryAdapterError, o as MemoryAdapterErrorCode, N as NetworkError, R as RateLimitError, p as TaskNotFoundError, U as UnknownAgentError, q as UnsupportedBudgetOperationError, r as UnsupportedRunOperationError, s as UnsupportedTaskOperationError, t as isTransientError } from './errors-
|
|
3
|
-
import { A as AgentOptions, L as LocalOptions, P as ProviderRoutingSettings, S as SystemPromptResolver, C as CloudOptions, M as MemorySettings, a as AgentDefinition, b as ContextSettings, c as PluginsSettings, d as SkillsSettings, e as SDKAgent, f as ListAgentsOptions, g as ListResult, h as SDKAgentInfo, G as GetAgentOptions, i as ListRunsOptions, j as GetRunOptions, k as AgentOperationOptions, l as ProviderProfile, m as Plugin, I as InlineSkill, n as ConversationStorageAdapter, o as StoredMessage, p as SessionMeta, q as SessionMetaPatch, B as BudgetTracker, r as MemoryProvider, s as MemoryId, t as PreToolCallDecision, u as SDKProvider } from './cron-
|
|
4
|
-
export {
|
|
5
|
-
import { R as RunResult, M as ModelSelection, C as CustomTool, a as McpServerConfig, b as Run, P as Processor, T as ToolResultContentBlock, S as SDKMessage
|
|
6
|
-
export { A as AgentConversationTurn,
|
|
1
|
+
import { T as TheokitAgentError, B as BudgetOptions, a as BudgetHandle, b as BudgetSnapshot, E as ErrorMetadata } from './errors-DZpCGlYv.cjs';
|
|
2
|
+
export { A as AgentDisposedError, c as AgentRunError, d as AgentRunErrorCode, e as AuthenticationError, f as BudgetExceedEvent, g as BudgetExceededError, h as BudgetLimit, i as BudgetMode, j as BudgetScope, k as BudgetThresholdEvent, l as BudgetWindow, C as ConfigurationError, m as ErrorCode, I as IntegrationNotConnectedError, n as InvalidTaskIdError, M as MemoryAdapterError, o as MemoryAdapterErrorCode, N as NetworkError, R as RateLimitError, p as TaskNotFoundError, U as UnknownAgentError, q as UnsupportedBudgetOperationError, r as UnsupportedRunOperationError, s as UnsupportedTaskOperationError, t as isTransientError } from './errors-DZpCGlYv.cjs';
|
|
3
|
+
import { A as AgentOptions, L as LocalOptions, P as ProviderRoutingSettings, S as SystemPromptResolver, C as CloudOptions, M as MemorySettings, a as AgentDefinition, b as ContextSettings, c as PluginsSettings, d as SkillsSettings, e as SDKAgent, f as ListAgentsOptions, g as ListResult, h as SDKAgentInfo, G as GetAgentOptions, i as ListRunsOptions, j as GetRunOptions, k as AgentOperationOptions, l as ProviderProfile, m as Plugin, I as InlineSkill, n as ConversationStorageAdapter, o as StoredMessage, p as SessionMeta, q as SessionMetaPatch, O as ObjectiveRecord, B as BudgetTracker, r as MemoryProvider, s as MemoryId, t as PreToolCallDecision, u as StepResult, v as SDKProvider } from './cron-t4oKI2Is.cjs';
|
|
4
|
+
export { w as ActiveMemoryPassArgs, x as ActiveMemoryPassResult, y as AgentGoalConfig, z as AgentMemory, D as BudgetCheck, E as BudgetTotal, F as BudgetUsageEvent, H as CloudEnv, J as CloudRepo, K as ContextBudget, N as ContextManagerKind, Q as ContextSnapshot, R as ContextSource, T as ContextSourceStatus, U as CreateSkillSpec, V as Cron, W as CronCreateOptions, X as CronGetOptions, Y as CronJob, Z as CronJobStatus, _ as CronListOptions, $ as CronOperationOptions, a0 as CronRunOptions, a1 as CronRuntime, a2 as CronSchedulerStatus, a3 as CronStartOptions, a4 as DurableGoalOptions, a5 as GoalEvent, a6 as GoalOptions, a7 as GoalResult, a8 as HookName, a9 as InvalidateCacheOptions, aa as MemoryAdapter, ab as MemoryAdapterCapabilities, ac as MemoryContext, ad as MemoryFact, ae as MemoryProviderHandle, af as MemoryProviderInitOptions, ag as MemoryRevision, ah as MemoryToolSchema, ai as MemoryTurnMessage, aj as ObjectiveStatus, ak as PersonalityPreset, al as PluginContext, am as PostAssistantReplyContext, an as PreToolCallContext, ao as PreUserSendContext, ap as PreUserSendResult, aq as ProviderCapability, ar as ProviderRoute, as as RecordSessionSummaryArgs, at as ResolvedProviderRoute, au as RunUntilIterator, av as SDKAgentPlugins, aw as SDKAgentSkillDetail, ax as SDKAgentSkills, ay as SDKArtifact, az as SDKContextManager, aA as SDKPluginMetadata, aB as SDKProvidersManager, aC as SettingSource, aD as SkillsResolver, aE as SkillsResolverContext, aF as SystemPromptContext, aG as SystemPromptMemoryFact, aH as SystemPromptSkillRef, aI as TelemetrySettings, aJ as createSkill, aK as definePlugin } from './cron-t4oKI2Is.cjs';
|
|
5
|
+
import { R as RunResult, M as ModelSelection, C as CustomTool, a as McpServerConfig, b as Run, P as Processor, T as ToolResultContentBlock, S as SDKMessage } from './run-CLXKMRgq.cjs';
|
|
6
|
+
export { A as AgentConversationTurn, c as AssistantMessage, d as CompletionCheck, e as CompletionCheckResult, f as ConversationStep, g as ConversationTurn, h as CostBreakdown, i as CostSource, j as CostStatus, D as DoomLoopThresholds, G as GenerateOptions, k as GenerateRunResult, I as ImageBlock, l as InputProcessorContext, m as InteractionUpdate, n as McpAuthConfig, o as McpHttpServerConfig, p as McpOAuthConfig, q as McpStdioServerConfig, r as MessageOrigin, s as ModelParameterValue, O as OutputProcessorContext, t as PartialToolCallUpdate, u as ProcessorControls, v as ProcessorTripwire, w as ProcessorViolation, x as RunCompactBoundaryEvent, y as RunCompletionCheckEvent, z as RunErrorDetail, B as RunEvent, E as RunEventSink, F as RunGitInfo, H as RunOperation, J as RunPermissionDeniedEvent, K as RunRateLimitEvent, L as RunStatus, N as RunTaskCompletedEvent, Q as RunTaskStartedEvent, U as RunTaskUpdatedEvent, V as RunToCompletionOptions, W as RunToCompletionResult, X as RunToolProgressEvent, Y as RunTripwireEvent, Z as SDKAssistantMessage, _ as SDKImage, $ as SDKImageDimension, a0 as SDKObjectDelta, a1 as SDKRequestMessage, a2 as SDKStatusMessage, a3 as SDKSystemMessage, a4 as SDKTaskMessage, a5 as SDKThinkingMessage, a6 as SDKToolUseMessage, a7 as SDKUserMessage, a8 as SDKUserMessageEvent, a9 as SendOptions, aa as ShellCommand, ab as ShellConversationTurn, ac as ShellOutput, ad as ShellOutputDeltaUpdate, ae as StepCompletedUpdate, af as StepStartedUpdate, ag as StreamToCompletionResult, ah as SummaryCompletedUpdate, ai as SummaryStartedUpdate, aj as SummaryUpdate, ak as TextBlock, al as TextDeltaUpdate, am as ThinkingCompletedUpdate, an as ThinkingDeltaUpdate, ao as ThinkingMessage, ap as TokenDeltaUpdate, aq as TokenUsage, ar as ToolCall, as as ToolCallCompletedUpdate, at as ToolCallStartedUpdate, au as ToolContextMessage, av as ToolResult, aw as ToolResultGuardOptions, ax as ToolUseBlock, ay as TurnEndedUpdate, az as UserMessage, aA as UserMessageAppendedUpdate, aB as emitRunEvent } from './run-CLXKMRgq.cjs';
|
|
7
7
|
import * as zod from 'zod';
|
|
8
8
|
import { ZodType, z } from 'zod';
|
|
9
9
|
|
|
@@ -1127,6 +1127,9 @@ declare class FileSystemConversationStorage implements ConversationStorageAdapte
|
|
|
1127
1127
|
compact(conversationId: string, maxTurns: number): Promise<void>;
|
|
1128
1128
|
getSessionMeta(conversationId: string): Promise<SessionMeta | undefined>;
|
|
1129
1129
|
setSessionMeta(conversationId: string, patch: SessionMetaPatch): Promise<void>;
|
|
1130
|
+
getObjectiveRecord(conversationId: string): Promise<ObjectiveRecord | undefined>;
|
|
1131
|
+
setObjectiveRecord(conversationId: string, record: ObjectiveRecord | null): Promise<void>;
|
|
1132
|
+
updateObjectiveRecord(conversationId: string, mutate: (current: ObjectiveRecord | undefined) => ObjectiveRecord | null | undefined): Promise<void>;
|
|
1130
1133
|
dispose(): Promise<void>;
|
|
1131
1134
|
}
|
|
1132
1135
|
|
|
@@ -1160,6 +1163,9 @@ declare class InMemoryConversationStorage implements ConversationStorageAdapter
|
|
|
1160
1163
|
}): Promise<readonly string[]>;
|
|
1161
1164
|
getSessionMeta(conversationId: string): Promise<SessionMeta | undefined>;
|
|
1162
1165
|
setSessionMeta(conversationId: string, patch: SessionMetaPatch): Promise<void>;
|
|
1166
|
+
getObjectiveRecord(conversationId: string): Promise<ObjectiveRecord | undefined>;
|
|
1167
|
+
setObjectiveRecord(conversationId: string, record: ObjectiveRecord | null): Promise<void>;
|
|
1168
|
+
updateObjectiveRecord(conversationId: string, mutate: (current: ObjectiveRecord | undefined) => ObjectiveRecord | null | undefined): Promise<void>;
|
|
1163
1169
|
dispose(): Promise<void>;
|
|
1164
1170
|
}
|
|
1165
1171
|
|
|
@@ -1897,134 +1903,6 @@ declare function scopedConversationId(scope: SessionScope, id: string): string;
|
|
|
1897
1903
|
/** M3 #62 — the id prefix (`"<scope>__"`) used to match a scope's conversations. */
|
|
1898
1904
|
declare function sessionScopePrefix(scope: SessionScope): string;
|
|
1899
1905
|
|
|
1900
|
-
/**
|
|
1901
|
-
* Public type contract for `Workflow.create / .run / .resume` (Adoption
|
|
1902
|
-
* Roadmap #5; ADRs D230-D248).
|
|
1903
|
-
*
|
|
1904
|
-
* Step types form a discriminated union by `kind`. Helper factory functions
|
|
1905
|
-
* (`fn()`, `agentStep()`) live in `workflow.ts` and hide the discriminator
|
|
1906
|
-
* from end users.
|
|
1907
|
-
*
|
|
1908
|
-
* @public
|
|
1909
|
-
*/
|
|
1910
|
-
|
|
1911
|
-
type Step = FnStep | AgentStep | ParallelStep | BranchStep | ForeachStep | DowhileStep | SleepStep | SuspendStep;
|
|
1912
|
-
/** A pure function step. */
|
|
1913
|
-
interface FnStep {
|
|
1914
|
-
readonly kind: "fn";
|
|
1915
|
-
readonly id: string;
|
|
1916
|
-
readonly fn: (input: unknown, ctx: StepContext) => Promise<unknown> | unknown;
|
|
1917
|
-
readonly inputSchema?: ZodType;
|
|
1918
|
-
readonly outputSchema?: ZodType;
|
|
1919
|
-
readonly retry?: RetryPolicy;
|
|
1920
|
-
/** D238 — slot reserved; runtime throws if engine not yet implemented. */
|
|
1921
|
-
readonly compensate?: (input: unknown, output: unknown, error: Error) => Promise<void> | void;
|
|
1922
|
-
}
|
|
1923
|
-
/** An agent.send-driven step. */
|
|
1924
|
-
interface AgentStep {
|
|
1925
|
-
readonly kind: "agent";
|
|
1926
|
-
readonly id: string;
|
|
1927
|
-
readonly agent: SDKAgent;
|
|
1928
|
-
readonly promptTemplate: string | ((input: unknown) => string);
|
|
1929
|
-
readonly retry?: RetryPolicy;
|
|
1930
|
-
/**
|
|
1931
|
-
* SE3 — provenance stamped onto this step's `agent.send()` (forwarded to
|
|
1932
|
-
* `RunResult.origin`). Squad sets `{ kind: "peer", from: "agent-<i-1>" }` on
|
|
1933
|
-
* every step after the first so a peer-driven turn is attributable.
|
|
1934
|
-
*/
|
|
1935
|
-
readonly origin?: MessageOrigin;
|
|
1936
|
-
}
|
|
1937
|
-
/** N concurrent branches, each its own mini-step-list. */
|
|
1938
|
-
interface ParallelStep {
|
|
1939
|
-
readonly kind: "parallel";
|
|
1940
|
-
readonly id: string;
|
|
1941
|
-
readonly branches: ReadonlyArray<ReadonlyArray<Step>>;
|
|
1942
|
-
readonly concurrency?: number;
|
|
1943
|
-
readonly errorPolicy?: "fail-fast" | "collect";
|
|
1944
|
-
}
|
|
1945
|
-
/** First-match-wins predicates + optional fallback. */
|
|
1946
|
-
interface BranchStep {
|
|
1947
|
-
readonly kind: "branch";
|
|
1948
|
-
readonly id: string;
|
|
1949
|
-
readonly predicates: ReadonlyArray<readonly [(input: unknown) => boolean | Promise<boolean>, ReadonlyArray<Step>]>;
|
|
1950
|
-
readonly fallback?: ReadonlyArray<Step>;
|
|
1951
|
-
}
|
|
1952
|
-
/** Map a step over an upstream array output. */
|
|
1953
|
-
interface ForeachStep {
|
|
1954
|
-
readonly kind: "foreach";
|
|
1955
|
-
readonly id: string;
|
|
1956
|
-
/** ID of an upstream top-level step whose output is iterable. */
|
|
1957
|
-
readonly iterableFrom: string;
|
|
1958
|
-
readonly step: Step;
|
|
1959
|
-
readonly concurrency?: number;
|
|
1960
|
-
}
|
|
1961
|
-
/** Loop a step until condFn returns false. */
|
|
1962
|
-
interface DowhileStep {
|
|
1963
|
-
readonly kind: "dowhile";
|
|
1964
|
-
readonly id: string;
|
|
1965
|
-
readonly step: Step;
|
|
1966
|
-
readonly condFn: (output: unknown, iteration: number) => boolean | Promise<boolean>;
|
|
1967
|
-
readonly maxIterations?: number;
|
|
1968
|
-
}
|
|
1969
|
-
/** Pause for a fixed duration. */
|
|
1970
|
-
interface SleepStep {
|
|
1971
|
-
readonly kind: "sleep";
|
|
1972
|
-
readonly id: string;
|
|
1973
|
-
readonly durationMs: number;
|
|
1974
|
-
}
|
|
1975
|
-
/** Standalone explicit suspend point. */
|
|
1976
|
-
interface SuspendStep {
|
|
1977
|
-
readonly kind: "suspend";
|
|
1978
|
-
readonly id: string;
|
|
1979
|
-
readonly payloadSchema?: ZodType;
|
|
1980
|
-
}
|
|
1981
|
-
/** D237 — retry policy applied per fn/agent step. */
|
|
1982
|
-
interface RetryPolicy {
|
|
1983
|
-
/** Total attempts (MIN 1, MAX 20). `1` = no retry. */
|
|
1984
|
-
readonly maxAttempts: number;
|
|
1985
|
-
readonly initialBackoffMs?: number;
|
|
1986
|
-
readonly backoffCoefficient?: number;
|
|
1987
|
-
readonly maximumBackoffMs?: number;
|
|
1988
|
-
readonly nonRetryableErrors?: ReadonlyArray<string>;
|
|
1989
|
-
}
|
|
1990
|
-
/** D247 — context handed to every step.fn. */
|
|
1991
|
-
interface StepContext {
|
|
1992
|
-
readonly runId: string;
|
|
1993
|
-
readonly signal: AbortSignal;
|
|
1994
|
-
readonly log: {
|
|
1995
|
-
debug: (msg: string, attrs?: Record<string, unknown>) => void;
|
|
1996
|
-
info: (msg: string, attrs?: Record<string, unknown>) => void;
|
|
1997
|
-
warn: (msg: string, attrs?: Record<string, unknown>) => void;
|
|
1998
|
-
};
|
|
1999
|
-
/** Pause the workflow; resume via `Workflow.resume({...})`. */
|
|
2000
|
-
readonly suspend: (payload?: unknown) => Promise<never>;
|
|
2001
|
-
/**
|
|
2002
|
-
* SE29 — the workflow's shared state (from `WorkflowOptions.initialState`,
|
|
2003
|
-
* mutated by {@link setState}), visible to every subsequent step in the run.
|
|
2004
|
-
* `undefined` when no `initialState`/`setState` has run. Persisted across
|
|
2005
|
-
* suspend/resume.
|
|
2006
|
-
*/
|
|
2007
|
-
readonly state: unknown;
|
|
2008
|
-
/**
|
|
2009
|
-
* SE29 — update the shared state for subsequent steps. Validated against
|
|
2010
|
-
* `WorkflowOptions.stateSchema` when set (a mismatch throws
|
|
2011
|
-
* {@link WorkflowStateError}, which fails the step/run — Rule 8).
|
|
2012
|
-
*/
|
|
2013
|
-
readonly setState: (next: unknown) => void;
|
|
2014
|
-
}
|
|
2015
|
-
interface StepResult {
|
|
2016
|
-
readonly stepId: string;
|
|
2017
|
-
readonly kind: Step["kind"];
|
|
2018
|
-
readonly status: "completed" | "failed" | "skipped" | "suspended";
|
|
2019
|
-
readonly attempts: number;
|
|
2020
|
-
readonly durationMs: number;
|
|
2021
|
-
readonly output?: unknown;
|
|
2022
|
-
readonly error?: {
|
|
2023
|
-
name: string;
|
|
2024
|
-
message: string;
|
|
2025
|
-
};
|
|
2026
|
-
}
|
|
2027
|
-
|
|
2028
1906
|
/**
|
|
2029
1907
|
* `createSquad` — a sequential team of agents.
|
|
2030
1908
|
*
|
|
@@ -2582,4 +2460,4 @@ declare function toShareGptTrajectory(result: BatchResult, options?: {
|
|
|
2582
2460
|
model?: string;
|
|
2583
2461
|
}): ShareGptTrajectory | null;
|
|
2584
2462
|
|
|
2585
|
-
export { Agent, AgentBuilder, AgentDefinition, type AgentFactory, AgentOperationOptions, AgentOptions, type AgentPromptResult, type AgentRegistryOptions, type BatchItem, type BatchOptions, type BatchProgress, type BatchResult, Budget, BudgetHandle, BudgetOptions, BudgetSnapshot, BudgetTracker, CloudOptions, ContextSettings, ConversationStorageAdapter, type CounterBudgetTrackerOptions, CustomTool, type DeepPartial, type DefineProviderOptions, type DefineToolSpec, type DreamingSweepOptions, type DreamingSweepResult, ErrorMetadata, EventBus, type EvictReason, FileSystemConversationStorage, GenerateObjectError, type GenerateObjectOptions, type GenerateObjectResult, GetAgentOptions, GetRunOptions, InMemoryConversationStorage, InlineSkill, JobQueue, type JobQueueOptions, ListAgentsOptions, ListResult, ListRunsOptions, LiveAgentRegistry, LocalOptions, McpServerConfig, Memory, MemoryId, MemoryProvider, MemorySettings,
|
|
2463
|
+
export { Agent, AgentBuilder, AgentDefinition, type AgentFactory, AgentOperationOptions, AgentOptions, type AgentPromptResult, type AgentRegistryOptions, type BatchItem, type BatchOptions, type BatchProgress, type BatchResult, Budget, BudgetHandle, BudgetOptions, BudgetSnapshot, BudgetTracker, CloudOptions, ContextSettings, ConversationStorageAdapter, type CounterBudgetTrackerOptions, CustomTool, type DeepPartial, type DefineProviderOptions, type DefineToolSpec, type DreamingSweepOptions, type DreamingSweepResult, ErrorMetadata, EventBus, type EvictReason, FileSystemConversationStorage, GenerateObjectError, type GenerateObjectOptions, type GenerateObjectResult, GetAgentOptions, GetRunOptions, InMemoryConversationStorage, InlineSkill, JobQueue, type JobQueueOptions, ListAgentsOptions, ListResult, ListRunsOptions, LiveAgentRegistry, LocalOptions, McpServerConfig, Memory, MemoryId, MemoryProvider, MemorySettings, type MigrateOptions, type MigrateResult, type ModelListItem, type ModelParameterDefinition, ModelSelection, type ModelVariant, type NormalizedJsonSchema, ObjectiveRecord, type PermissionAction, PermissionEngine, type PermissionEngineOptions, type PermissionGate, type PermissionGateContext, type PermissionGateDecision, type PermissionMode, type PermissionPluginOptions, type PermissionRule, Plugin, PluginsSettings, PreToolCallDecision, Processor, ProviderProfile, ProviderRoutingSettings, type ReplayHistoryOptions, Run, RunResult, SDKAgent, SDKAgentInfo, SDKMessage, type SDKModel, SDKProvider, type SDKRepository, type SDKUser, Security, type SessionCapabilityResult, type SessionListOptions, type SessionManager, SessionMeta, SessionMetaPatch, type SessionScope, type SessionSummary, type ShareGptMessage, type ShareGptTrajectory, SkillsSettings, type Squad, type SquadOptions, type SquadRun, StoredMessage, StreamObjectError, type StreamObjectEvent, type StreamObjectOptions, SystemPromptResolver, TASK_RESERVED_PREFIXES, Task, type TaskCancelResult, type TaskConfigureOptions, type TaskEvent, type TaskFilter, type TaskHandle, type TaskKind, type TaskState, type TaskStoreOptions, type TaskSubmitOptions, type TaskWorkContext, type TaskWorkFn, Theokit, TheokitAgentError, type TheokitRequestOptions, type TokenLimiterOptions, ToolError, ToolResultContentBlock, type UnicodeNormalizerOptions, UsageAccumulator, applyMode, buildReplayHistory, chargeAndCheckThresholds, computeCost, createAgentFactory, createCounterBudgetTracker, createNoopMemoryProvider, createPermissionPlugin, createSessionManager, createSquad, createTokenLimiter, createUnicodeNormalizer, defineProvider, defineSkillReadTool, defineTool, estimateTokens, extractRawId, getPricingEntry, inferApiMode, isValidTaskId, migrateSqliteToLance, mkMemoryId, normalizeSchema, normalizeUsage, preflightCheck, scopedConversationId, sessionScopePrefix, toShareGptTrajectory, withCwdMutex };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { T as TheokitAgentError, B as BudgetOptions, a as BudgetHandle, b as BudgetSnapshot, E as ErrorMetadata } from './errors-
|
|
2
|
-
export { A as AgentDisposedError, c as AgentRunError, d as AgentRunErrorCode, e as AuthenticationError, f as BudgetExceedEvent, g as BudgetExceededError, h as BudgetLimit, i as BudgetMode, j as BudgetScope, k as BudgetThresholdEvent, l as BudgetWindow, C as ConfigurationError, m as ErrorCode, I as IntegrationNotConnectedError, n as InvalidTaskIdError, M as MemoryAdapterError, o as MemoryAdapterErrorCode, N as NetworkError, R as RateLimitError, p as TaskNotFoundError, U as UnknownAgentError, q as UnsupportedBudgetOperationError, r as UnsupportedRunOperationError, s as UnsupportedTaskOperationError, t as isTransientError } from './errors-
|
|
3
|
-
import { A as AgentOptions, L as LocalOptions, P as ProviderRoutingSettings, S as SystemPromptResolver, C as CloudOptions, M as MemorySettings, a as AgentDefinition, b as ContextSettings, c as PluginsSettings, d as SkillsSettings, e as SDKAgent, f as ListAgentsOptions, g as ListResult, h as SDKAgentInfo, G as GetAgentOptions, i as ListRunsOptions, j as GetRunOptions, k as AgentOperationOptions, l as ProviderProfile, m as Plugin, I as InlineSkill, n as ConversationStorageAdapter, o as StoredMessage, p as SessionMeta, q as SessionMetaPatch, B as BudgetTracker, r as MemoryProvider, s as MemoryId, t as PreToolCallDecision, u as SDKProvider } from './cron-
|
|
4
|
-
export {
|
|
5
|
-
import { R as RunResult, M as ModelSelection, C as CustomTool, a as McpServerConfig, b as Run, P as Processor, T as ToolResultContentBlock, S as SDKMessage
|
|
6
|
-
export { A as AgentConversationTurn,
|
|
1
|
+
import { T as TheokitAgentError, B as BudgetOptions, a as BudgetHandle, b as BudgetSnapshot, E as ErrorMetadata } from './errors-D_Bfo30u.js';
|
|
2
|
+
export { A as AgentDisposedError, c as AgentRunError, d as AgentRunErrorCode, e as AuthenticationError, f as BudgetExceedEvent, g as BudgetExceededError, h as BudgetLimit, i as BudgetMode, j as BudgetScope, k as BudgetThresholdEvent, l as BudgetWindow, C as ConfigurationError, m as ErrorCode, I as IntegrationNotConnectedError, n as InvalidTaskIdError, M as MemoryAdapterError, o as MemoryAdapterErrorCode, N as NetworkError, R as RateLimitError, p as TaskNotFoundError, U as UnknownAgentError, q as UnsupportedBudgetOperationError, r as UnsupportedRunOperationError, s as UnsupportedTaskOperationError, t as isTransientError } from './errors-D_Bfo30u.js';
|
|
3
|
+
import { A as AgentOptions, L as LocalOptions, P as ProviderRoutingSettings, S as SystemPromptResolver, C as CloudOptions, M as MemorySettings, a as AgentDefinition, b as ContextSettings, c as PluginsSettings, d as SkillsSettings, e as SDKAgent, f as ListAgentsOptions, g as ListResult, h as SDKAgentInfo, G as GetAgentOptions, i as ListRunsOptions, j as GetRunOptions, k as AgentOperationOptions, l as ProviderProfile, m as Plugin, I as InlineSkill, n as ConversationStorageAdapter, o as StoredMessage, p as SessionMeta, q as SessionMetaPatch, O as ObjectiveRecord, B as BudgetTracker, r as MemoryProvider, s as MemoryId, t as PreToolCallDecision, u as StepResult, v as SDKProvider } from './cron-BNHJywtl.js';
|
|
4
|
+
export { w as ActiveMemoryPassArgs, x as ActiveMemoryPassResult, y as AgentGoalConfig, z as AgentMemory, D as BudgetCheck, E as BudgetTotal, F as BudgetUsageEvent, H as CloudEnv, J as CloudRepo, K as ContextBudget, N as ContextManagerKind, Q as ContextSnapshot, R as ContextSource, T as ContextSourceStatus, U as CreateSkillSpec, V as Cron, W as CronCreateOptions, X as CronGetOptions, Y as CronJob, Z as CronJobStatus, _ as CronListOptions, $ as CronOperationOptions, a0 as CronRunOptions, a1 as CronRuntime, a2 as CronSchedulerStatus, a3 as CronStartOptions, a4 as DurableGoalOptions, a5 as GoalEvent, a6 as GoalOptions, a7 as GoalResult, a8 as HookName, a9 as InvalidateCacheOptions, aa as MemoryAdapter, ab as MemoryAdapterCapabilities, ac as MemoryContext, ad as MemoryFact, ae as MemoryProviderHandle, af as MemoryProviderInitOptions, ag as MemoryRevision, ah as MemoryToolSchema, ai as MemoryTurnMessage, aj as ObjectiveStatus, ak as PersonalityPreset, al as PluginContext, am as PostAssistantReplyContext, an as PreToolCallContext, ao as PreUserSendContext, ap as PreUserSendResult, aq as ProviderCapability, ar as ProviderRoute, as as RecordSessionSummaryArgs, at as ResolvedProviderRoute, au as RunUntilIterator, av as SDKAgentPlugins, aw as SDKAgentSkillDetail, ax as SDKAgentSkills, ay as SDKArtifact, az as SDKContextManager, aA as SDKPluginMetadata, aB as SDKProvidersManager, aC as SettingSource, aD as SkillsResolver, aE as SkillsResolverContext, aF as SystemPromptContext, aG as SystemPromptMemoryFact, aH as SystemPromptSkillRef, aI as TelemetrySettings, aJ as createSkill, aK as definePlugin } from './cron-BNHJywtl.js';
|
|
5
|
+
import { R as RunResult, M as ModelSelection, C as CustomTool, a as McpServerConfig, b as Run, P as Processor, T as ToolResultContentBlock, S as SDKMessage } from './run-CLXKMRgq.js';
|
|
6
|
+
export { A as AgentConversationTurn, c as AssistantMessage, d as CompletionCheck, e as CompletionCheckResult, f as ConversationStep, g as ConversationTurn, h as CostBreakdown, i as CostSource, j as CostStatus, D as DoomLoopThresholds, G as GenerateOptions, k as GenerateRunResult, I as ImageBlock, l as InputProcessorContext, m as InteractionUpdate, n as McpAuthConfig, o as McpHttpServerConfig, p as McpOAuthConfig, q as McpStdioServerConfig, r as MessageOrigin, s as ModelParameterValue, O as OutputProcessorContext, t as PartialToolCallUpdate, u as ProcessorControls, v as ProcessorTripwire, w as ProcessorViolation, x as RunCompactBoundaryEvent, y as RunCompletionCheckEvent, z as RunErrorDetail, B as RunEvent, E as RunEventSink, F as RunGitInfo, H as RunOperation, J as RunPermissionDeniedEvent, K as RunRateLimitEvent, L as RunStatus, N as RunTaskCompletedEvent, Q as RunTaskStartedEvent, U as RunTaskUpdatedEvent, V as RunToCompletionOptions, W as RunToCompletionResult, X as RunToolProgressEvent, Y as RunTripwireEvent, Z as SDKAssistantMessage, _ as SDKImage, $ as SDKImageDimension, a0 as SDKObjectDelta, a1 as SDKRequestMessage, a2 as SDKStatusMessage, a3 as SDKSystemMessage, a4 as SDKTaskMessage, a5 as SDKThinkingMessage, a6 as SDKToolUseMessage, a7 as SDKUserMessage, a8 as SDKUserMessageEvent, a9 as SendOptions, aa as ShellCommand, ab as ShellConversationTurn, ac as ShellOutput, ad as ShellOutputDeltaUpdate, ae as StepCompletedUpdate, af as StepStartedUpdate, ag as StreamToCompletionResult, ah as SummaryCompletedUpdate, ai as SummaryStartedUpdate, aj as SummaryUpdate, ak as TextBlock, al as TextDeltaUpdate, am as ThinkingCompletedUpdate, an as ThinkingDeltaUpdate, ao as ThinkingMessage, ap as TokenDeltaUpdate, aq as TokenUsage, ar as ToolCall, as as ToolCallCompletedUpdate, at as ToolCallStartedUpdate, au as ToolContextMessage, av as ToolResult, aw as ToolResultGuardOptions, ax as ToolUseBlock, ay as TurnEndedUpdate, az as UserMessage, aA as UserMessageAppendedUpdate, aB as emitRunEvent } from './run-CLXKMRgq.js';
|
|
7
7
|
import * as zod from 'zod';
|
|
8
8
|
import { ZodType, z } from 'zod';
|
|
9
9
|
|
|
@@ -1127,6 +1127,9 @@ declare class FileSystemConversationStorage implements ConversationStorageAdapte
|
|
|
1127
1127
|
compact(conversationId: string, maxTurns: number): Promise<void>;
|
|
1128
1128
|
getSessionMeta(conversationId: string): Promise<SessionMeta | undefined>;
|
|
1129
1129
|
setSessionMeta(conversationId: string, patch: SessionMetaPatch): Promise<void>;
|
|
1130
|
+
getObjectiveRecord(conversationId: string): Promise<ObjectiveRecord | undefined>;
|
|
1131
|
+
setObjectiveRecord(conversationId: string, record: ObjectiveRecord | null): Promise<void>;
|
|
1132
|
+
updateObjectiveRecord(conversationId: string, mutate: (current: ObjectiveRecord | undefined) => ObjectiveRecord | null | undefined): Promise<void>;
|
|
1130
1133
|
dispose(): Promise<void>;
|
|
1131
1134
|
}
|
|
1132
1135
|
|
|
@@ -1160,6 +1163,9 @@ declare class InMemoryConversationStorage implements ConversationStorageAdapter
|
|
|
1160
1163
|
}): Promise<readonly string[]>;
|
|
1161
1164
|
getSessionMeta(conversationId: string): Promise<SessionMeta | undefined>;
|
|
1162
1165
|
setSessionMeta(conversationId: string, patch: SessionMetaPatch): Promise<void>;
|
|
1166
|
+
getObjectiveRecord(conversationId: string): Promise<ObjectiveRecord | undefined>;
|
|
1167
|
+
setObjectiveRecord(conversationId: string, record: ObjectiveRecord | null): Promise<void>;
|
|
1168
|
+
updateObjectiveRecord(conversationId: string, mutate: (current: ObjectiveRecord | undefined) => ObjectiveRecord | null | undefined): Promise<void>;
|
|
1163
1169
|
dispose(): Promise<void>;
|
|
1164
1170
|
}
|
|
1165
1171
|
|
|
@@ -1897,134 +1903,6 @@ declare function scopedConversationId(scope: SessionScope, id: string): string;
|
|
|
1897
1903
|
/** M3 #62 — the id prefix (`"<scope>__"`) used to match a scope's conversations. */
|
|
1898
1904
|
declare function sessionScopePrefix(scope: SessionScope): string;
|
|
1899
1905
|
|
|
1900
|
-
/**
|
|
1901
|
-
* Public type contract for `Workflow.create / .run / .resume` (Adoption
|
|
1902
|
-
* Roadmap #5; ADRs D230-D248).
|
|
1903
|
-
*
|
|
1904
|
-
* Step types form a discriminated union by `kind`. Helper factory functions
|
|
1905
|
-
* (`fn()`, `agentStep()`) live in `workflow.ts` and hide the discriminator
|
|
1906
|
-
* from end users.
|
|
1907
|
-
*
|
|
1908
|
-
* @public
|
|
1909
|
-
*/
|
|
1910
|
-
|
|
1911
|
-
type Step = FnStep | AgentStep | ParallelStep | BranchStep | ForeachStep | DowhileStep | SleepStep | SuspendStep;
|
|
1912
|
-
/** A pure function step. */
|
|
1913
|
-
interface FnStep {
|
|
1914
|
-
readonly kind: "fn";
|
|
1915
|
-
readonly id: string;
|
|
1916
|
-
readonly fn: (input: unknown, ctx: StepContext) => Promise<unknown> | unknown;
|
|
1917
|
-
readonly inputSchema?: ZodType;
|
|
1918
|
-
readonly outputSchema?: ZodType;
|
|
1919
|
-
readonly retry?: RetryPolicy;
|
|
1920
|
-
/** D238 — slot reserved; runtime throws if engine not yet implemented. */
|
|
1921
|
-
readonly compensate?: (input: unknown, output: unknown, error: Error) => Promise<void> | void;
|
|
1922
|
-
}
|
|
1923
|
-
/** An agent.send-driven step. */
|
|
1924
|
-
interface AgentStep {
|
|
1925
|
-
readonly kind: "agent";
|
|
1926
|
-
readonly id: string;
|
|
1927
|
-
readonly agent: SDKAgent;
|
|
1928
|
-
readonly promptTemplate: string | ((input: unknown) => string);
|
|
1929
|
-
readonly retry?: RetryPolicy;
|
|
1930
|
-
/**
|
|
1931
|
-
* SE3 — provenance stamped onto this step's `agent.send()` (forwarded to
|
|
1932
|
-
* `RunResult.origin`). Squad sets `{ kind: "peer", from: "agent-<i-1>" }` on
|
|
1933
|
-
* every step after the first so a peer-driven turn is attributable.
|
|
1934
|
-
*/
|
|
1935
|
-
readonly origin?: MessageOrigin;
|
|
1936
|
-
}
|
|
1937
|
-
/** N concurrent branches, each its own mini-step-list. */
|
|
1938
|
-
interface ParallelStep {
|
|
1939
|
-
readonly kind: "parallel";
|
|
1940
|
-
readonly id: string;
|
|
1941
|
-
readonly branches: ReadonlyArray<ReadonlyArray<Step>>;
|
|
1942
|
-
readonly concurrency?: number;
|
|
1943
|
-
readonly errorPolicy?: "fail-fast" | "collect";
|
|
1944
|
-
}
|
|
1945
|
-
/** First-match-wins predicates + optional fallback. */
|
|
1946
|
-
interface BranchStep {
|
|
1947
|
-
readonly kind: "branch";
|
|
1948
|
-
readonly id: string;
|
|
1949
|
-
readonly predicates: ReadonlyArray<readonly [(input: unknown) => boolean | Promise<boolean>, ReadonlyArray<Step>]>;
|
|
1950
|
-
readonly fallback?: ReadonlyArray<Step>;
|
|
1951
|
-
}
|
|
1952
|
-
/** Map a step over an upstream array output. */
|
|
1953
|
-
interface ForeachStep {
|
|
1954
|
-
readonly kind: "foreach";
|
|
1955
|
-
readonly id: string;
|
|
1956
|
-
/** ID of an upstream top-level step whose output is iterable. */
|
|
1957
|
-
readonly iterableFrom: string;
|
|
1958
|
-
readonly step: Step;
|
|
1959
|
-
readonly concurrency?: number;
|
|
1960
|
-
}
|
|
1961
|
-
/** Loop a step until condFn returns false. */
|
|
1962
|
-
interface DowhileStep {
|
|
1963
|
-
readonly kind: "dowhile";
|
|
1964
|
-
readonly id: string;
|
|
1965
|
-
readonly step: Step;
|
|
1966
|
-
readonly condFn: (output: unknown, iteration: number) => boolean | Promise<boolean>;
|
|
1967
|
-
readonly maxIterations?: number;
|
|
1968
|
-
}
|
|
1969
|
-
/** Pause for a fixed duration. */
|
|
1970
|
-
interface SleepStep {
|
|
1971
|
-
readonly kind: "sleep";
|
|
1972
|
-
readonly id: string;
|
|
1973
|
-
readonly durationMs: number;
|
|
1974
|
-
}
|
|
1975
|
-
/** Standalone explicit suspend point. */
|
|
1976
|
-
interface SuspendStep {
|
|
1977
|
-
readonly kind: "suspend";
|
|
1978
|
-
readonly id: string;
|
|
1979
|
-
readonly payloadSchema?: ZodType;
|
|
1980
|
-
}
|
|
1981
|
-
/** D237 — retry policy applied per fn/agent step. */
|
|
1982
|
-
interface RetryPolicy {
|
|
1983
|
-
/** Total attempts (MIN 1, MAX 20). `1` = no retry. */
|
|
1984
|
-
readonly maxAttempts: number;
|
|
1985
|
-
readonly initialBackoffMs?: number;
|
|
1986
|
-
readonly backoffCoefficient?: number;
|
|
1987
|
-
readonly maximumBackoffMs?: number;
|
|
1988
|
-
readonly nonRetryableErrors?: ReadonlyArray<string>;
|
|
1989
|
-
}
|
|
1990
|
-
/** D247 — context handed to every step.fn. */
|
|
1991
|
-
interface StepContext {
|
|
1992
|
-
readonly runId: string;
|
|
1993
|
-
readonly signal: AbortSignal;
|
|
1994
|
-
readonly log: {
|
|
1995
|
-
debug: (msg: string, attrs?: Record<string, unknown>) => void;
|
|
1996
|
-
info: (msg: string, attrs?: Record<string, unknown>) => void;
|
|
1997
|
-
warn: (msg: string, attrs?: Record<string, unknown>) => void;
|
|
1998
|
-
};
|
|
1999
|
-
/** Pause the workflow; resume via `Workflow.resume({...})`. */
|
|
2000
|
-
readonly suspend: (payload?: unknown) => Promise<never>;
|
|
2001
|
-
/**
|
|
2002
|
-
* SE29 — the workflow's shared state (from `WorkflowOptions.initialState`,
|
|
2003
|
-
* mutated by {@link setState}), visible to every subsequent step in the run.
|
|
2004
|
-
* `undefined` when no `initialState`/`setState` has run. Persisted across
|
|
2005
|
-
* suspend/resume.
|
|
2006
|
-
*/
|
|
2007
|
-
readonly state: unknown;
|
|
2008
|
-
/**
|
|
2009
|
-
* SE29 — update the shared state for subsequent steps. Validated against
|
|
2010
|
-
* `WorkflowOptions.stateSchema` when set (a mismatch throws
|
|
2011
|
-
* {@link WorkflowStateError}, which fails the step/run — Rule 8).
|
|
2012
|
-
*/
|
|
2013
|
-
readonly setState: (next: unknown) => void;
|
|
2014
|
-
}
|
|
2015
|
-
interface StepResult {
|
|
2016
|
-
readonly stepId: string;
|
|
2017
|
-
readonly kind: Step["kind"];
|
|
2018
|
-
readonly status: "completed" | "failed" | "skipped" | "suspended";
|
|
2019
|
-
readonly attempts: number;
|
|
2020
|
-
readonly durationMs: number;
|
|
2021
|
-
readonly output?: unknown;
|
|
2022
|
-
readonly error?: {
|
|
2023
|
-
name: string;
|
|
2024
|
-
message: string;
|
|
2025
|
-
};
|
|
2026
|
-
}
|
|
2027
|
-
|
|
2028
1906
|
/**
|
|
2029
1907
|
* `createSquad` — a sequential team of agents.
|
|
2030
1908
|
*
|
|
@@ -2582,4 +2460,4 @@ declare function toShareGptTrajectory(result: BatchResult, options?: {
|
|
|
2582
2460
|
model?: string;
|
|
2583
2461
|
}): ShareGptTrajectory | null;
|
|
2584
2462
|
|
|
2585
|
-
export { Agent, AgentBuilder, AgentDefinition, type AgentFactory, AgentOperationOptions, AgentOptions, type AgentPromptResult, type AgentRegistryOptions, type BatchItem, type BatchOptions, type BatchProgress, type BatchResult, Budget, BudgetHandle, BudgetOptions, BudgetSnapshot, BudgetTracker, CloudOptions, ContextSettings, ConversationStorageAdapter, type CounterBudgetTrackerOptions, CustomTool, type DeepPartial, type DefineProviderOptions, type DefineToolSpec, type DreamingSweepOptions, type DreamingSweepResult, ErrorMetadata, EventBus, type EvictReason, FileSystemConversationStorage, GenerateObjectError, type GenerateObjectOptions, type GenerateObjectResult, GetAgentOptions, GetRunOptions, InMemoryConversationStorage, InlineSkill, JobQueue, type JobQueueOptions, ListAgentsOptions, ListResult, ListRunsOptions, LiveAgentRegistry, LocalOptions, McpServerConfig, Memory, MemoryId, MemoryProvider, MemorySettings,
|
|
2463
|
+
export { Agent, AgentBuilder, AgentDefinition, type AgentFactory, AgentOperationOptions, AgentOptions, type AgentPromptResult, type AgentRegistryOptions, type BatchItem, type BatchOptions, type BatchProgress, type BatchResult, Budget, BudgetHandle, BudgetOptions, BudgetSnapshot, BudgetTracker, CloudOptions, ContextSettings, ConversationStorageAdapter, type CounterBudgetTrackerOptions, CustomTool, type DeepPartial, type DefineProviderOptions, type DefineToolSpec, type DreamingSweepOptions, type DreamingSweepResult, ErrorMetadata, EventBus, type EvictReason, FileSystemConversationStorage, GenerateObjectError, type GenerateObjectOptions, type GenerateObjectResult, GetAgentOptions, GetRunOptions, InMemoryConversationStorage, InlineSkill, JobQueue, type JobQueueOptions, ListAgentsOptions, ListResult, ListRunsOptions, LiveAgentRegistry, LocalOptions, McpServerConfig, Memory, MemoryId, MemoryProvider, MemorySettings, type MigrateOptions, type MigrateResult, type ModelListItem, type ModelParameterDefinition, ModelSelection, type ModelVariant, type NormalizedJsonSchema, ObjectiveRecord, type PermissionAction, PermissionEngine, type PermissionEngineOptions, type PermissionGate, type PermissionGateContext, type PermissionGateDecision, type PermissionMode, type PermissionPluginOptions, type PermissionRule, Plugin, PluginsSettings, PreToolCallDecision, Processor, ProviderProfile, ProviderRoutingSettings, type ReplayHistoryOptions, Run, RunResult, SDKAgent, SDKAgentInfo, SDKMessage, type SDKModel, SDKProvider, type SDKRepository, type SDKUser, Security, type SessionCapabilityResult, type SessionListOptions, type SessionManager, SessionMeta, SessionMetaPatch, type SessionScope, type SessionSummary, type ShareGptMessage, type ShareGptTrajectory, SkillsSettings, type Squad, type SquadOptions, type SquadRun, StoredMessage, StreamObjectError, type StreamObjectEvent, type StreamObjectOptions, SystemPromptResolver, TASK_RESERVED_PREFIXES, Task, type TaskCancelResult, type TaskConfigureOptions, type TaskEvent, type TaskFilter, type TaskHandle, type TaskKind, type TaskState, type TaskStoreOptions, type TaskSubmitOptions, type TaskWorkContext, type TaskWorkFn, Theokit, TheokitAgentError, type TheokitRequestOptions, type TokenLimiterOptions, ToolError, ToolResultContentBlock, type UnicodeNormalizerOptions, UsageAccumulator, applyMode, buildReplayHistory, chargeAndCheckThresholds, computeCost, createAgentFactory, createCounterBudgetTracker, createNoopMemoryProvider, createPermissionPlugin, createSessionManager, createSquad, createTokenLimiter, createUnicodeNormalizer, defineProvider, defineSkillReadTool, defineTool, estimateTokens, extractRawId, getPricingEntry, inferApiMode, isValidTaskId, migrateSqliteToLance, mkMemoryId, normalizeSchema, normalizeUsage, preflightCheck, scopedConversationId, sessionScopePrefix, toShareGptTrajectory, withCwdMutex };
|