@wrongstack/core 0.250.0 → 0.255.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/{agent-bridge-4gc0vfW2.d.ts → agent-bridge-l_DsFEbr.d.ts} +1 -1
- package/dist/{agent-subagent-runner-Dz-9kiE6.d.ts → agent-subagent-runner-DhYLgAJo.d.ts} +3 -3
- package/dist/{brain-sCZ3lCjq.d.ts → brain-BaQsRNka.d.ts} +17 -0
- package/dist/coordination/index.d.ts +10 -10
- package/dist/coordination/index.js +132 -0
- package/dist/coordination/index.js.map +1 -1
- package/dist/defaults/index.d.ts +11 -11
- package/dist/execution/index.d.ts +7 -7
- package/dist/extension/index.d.ts +3 -3
- package/dist/{goal-preamble-BjJpnLW4.d.ts → goal-preamble-BgoPmZ8l.d.ts} +4 -4
- package/dist/{index-Dy8OwfBD.d.ts → index-BilZMsOK.d.ts} +3 -3
- package/dist/{index-IehiNryU.d.ts → index-Csoc_bKs.d.ts} +2 -2
- package/dist/index.d.ts +21 -21
- package/dist/index.js +150 -3
- package/dist/index.js.map +1 -1
- package/dist/infrastructure/index.d.ts +2 -2
- package/dist/infrastructure/index.js +12 -0
- package/dist/infrastructure/index.js.map +1 -1
- package/dist/kernel/index.d.ts +4 -4
- package/dist/kernel/index.js.map +1 -1
- package/dist/{multi-agent-coordinator-CnbEqpv0.d.ts → multi-agent-coordinator-Bs-M0Mo6.d.ts} +1 -1
- package/dist/{null-fleet-bus-Do1OLYpj.d.ts → null-fleet-bus-CWdU1_cO.d.ts} +4 -4
- package/dist/observability/index.d.ts +1 -1
- package/dist/{package-outdated-watcher-CA5GGB4C.d.ts → package-outdated-watcher-Dz-eNZlQ.d.ts} +23 -2
- package/dist/{parallel-eternal-engine-UZg1xOzE.d.ts → parallel-eternal-engine-CAMabk-X.d.ts} +4 -4
- package/dist/{path-resolver-BaP06Owy.d.ts → path-resolver-B7VjhUHq.d.ts} +1 -1
- package/dist/{pipeline-D1n-gQI-.d.ts → pipeline-Bxa3wDcy.d.ts} +41 -1
- package/dist/{plan-templates-BUVRY0pU.d.ts → plan-templates-D3guWwTi.d.ts} +1 -1
- package/dist/{provider-runner-D0HgUqwV.d.ts → provider-runner-C8_e4Lo1.d.ts} +1 -1
- package/dist/sdd/index.d.ts +4 -4
- package/dist/storage/index.d.ts +5 -5
- package/dist/types/index.d.ts +10 -10
- package/dist/types/index.js +12 -0
- package/dist/types/index.js.map +1 -1
- package/dist/utils/index.js +2 -0
- package/dist/utils/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -204,6 +204,33 @@ interface AgentRegistrationInput {
|
|
|
204
204
|
pid: number;
|
|
205
205
|
source?: 'cli' | 'webui' | 'mcp' | 'acp' | undefined;
|
|
206
206
|
}
|
|
207
|
+
type ClientSource = 'repl' | 'tui' | 'webui';
|
|
208
|
+
interface ClientStatus {
|
|
209
|
+
/** Client id. */
|
|
210
|
+
clientId: string;
|
|
211
|
+
/** Human-readable name. */
|
|
212
|
+
name: string;
|
|
213
|
+
/** Client type. */
|
|
214
|
+
source: ClientSource;
|
|
215
|
+
/** Session id. */
|
|
216
|
+
sessionId: string;
|
|
217
|
+
/** ISO8601 — last activity timestamp. */
|
|
218
|
+
lastSeenAt: string;
|
|
219
|
+
/** Whether this client is currently online (heartbeat within threshold). */
|
|
220
|
+
online: boolean;
|
|
221
|
+
/** Which process. */
|
|
222
|
+
pid: number;
|
|
223
|
+
}
|
|
224
|
+
interface ClientRegistrationInput {
|
|
225
|
+
clientId: string;
|
|
226
|
+
sessionId: string;
|
|
227
|
+
name: string;
|
|
228
|
+
source: ClientSource;
|
|
229
|
+
pid: number;
|
|
230
|
+
}
|
|
231
|
+
interface ClientHeartbeatInput {
|
|
232
|
+
clientId: string;
|
|
233
|
+
}
|
|
207
234
|
interface AgentHeartbeatInput {
|
|
208
235
|
agentId: string;
|
|
209
236
|
status?: RegisteredAgent['status'] | undefined;
|
|
@@ -248,6 +275,19 @@ interface Mailbox {
|
|
|
248
275
|
* Agents and read receipts are preserved; only messages are cleared.
|
|
249
276
|
*/
|
|
250
277
|
clearAll(): Promise<void>;
|
|
278
|
+
/**
|
|
279
|
+
* Register a client (REPL/TUI/WebUI). Called once per client on startup.
|
|
280
|
+
* Subsequent calls are idempotent — they update lastSeenAt.
|
|
281
|
+
*/
|
|
282
|
+
registerClient(input: ClientRegistrationInput): Promise<void>;
|
|
283
|
+
/**
|
|
284
|
+
* Update client heartbeat. Called periodically (every 15s for clients).
|
|
285
|
+
*/
|
|
286
|
+
clientHeartbeat(input: ClientHeartbeatInput): Promise<void>;
|
|
287
|
+
/**
|
|
288
|
+
* Get snapshot of online/offline clients and their last activity.
|
|
289
|
+
*/
|
|
290
|
+
getClientStatuses(): Promise<ClientStatus[]>;
|
|
251
291
|
}
|
|
252
292
|
|
|
253
293
|
/** Model capabilities relevant to prompt composition. */
|
|
@@ -490,4 +530,4 @@ declare class Pipeline<T> {
|
|
|
490
530
|
private ensureUnique;
|
|
491
531
|
}
|
|
492
532
|
|
|
493
|
-
export { type AgentRegistrationInput as A, type BuildContext as B, Container as C, type Decorator as D, type Factory as F, HookRegistry as H, type MiddlewareHandler as M, type NextFn as N, Pipeline as P, type ReadonlyPipeline as R, type SystemPromptBuilder as S, type Token as T, type Renderer as a, type Mailbox as b, type MailboxSendInput as c, type MailboxMessage as d, type MailboxQuery as e, type MailboxAckInput as f, type MailboxAgentStatus as g, type AgentHeartbeatInput as h, type
|
|
533
|
+
export { type AgentRegistrationInput as A, type BuildContext as B, Container as C, type Decorator as D, type Factory as F, HookRegistry as H, type MiddlewareHandler as M, type NextFn as N, Pipeline as P, type ReadonlyPipeline as R, type SystemPromptBuilder as S, type Token as T, type Renderer as a, type Mailbox as b, type MailboxSendInput as c, type MailboxMessage as d, type MailboxQuery as e, type MailboxAckInput as f, type MailboxAgentStatus as g, type AgentHeartbeatInput as h, type ClientRegistrationInput as i, type ClientHeartbeatInput as j, type ClientStatus as k, type MailboxMessageType as l, type MailboxTaskContext as m, type ReadReceipts as n, type RegisteredAgent as o, normalizeRecipient as p, type ModelCapabilities as q, type BindOptions as r, type Middleware as s, type PipelineOptions as t, hookMatcherMatches as u };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as EventBus, M as MemoryScope, k as MemoryEntry, l as MemoryStore, m as MemoryRelevanceContext, S as ScoredEntry } from './brain-
|
|
1
|
+
import { E as EventBus, M as MemoryScope, k as MemoryEntry, l as MemoryStore, m as MemoryRelevanceContext, S as ScoredEntry } from './brain-BaQsRNka.js';
|
|
2
2
|
import { S as SecretScrubber } from './permission-DbWPbuoA.js';
|
|
3
3
|
import { i as SessionStore, h as SessionMetadata, a as SessionWriter, p as ResumedSession, q as SessionData, r as SessionSummary, g as ContentBlock, S as SessionEvent, s as TodoItem, t as ConversationState } from './context-CLz3z_E8.js';
|
|
4
4
|
import { A as AttachmentStore, a as AddAttachmentInput, b as AttachmentRef, c as Attachment } from './session-reader-CCOssnBS.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as EventBus } from './brain-
|
|
1
|
+
import { E as EventBus } from './brain-BaQsRNka.js';
|
|
2
2
|
import { L as Logger } from './logger-B63L5bTg.js';
|
|
3
3
|
import { T as Tracer } from './observability-D-HZN_mF.js';
|
|
4
4
|
import { P as Provider, R as Request, C as Context, b as Response } from './context-CLz3z_E8.js';
|
package/dist/sdd/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { h as Specification, S as SpecAnalysis, g as SpecValidationResult, e as SpecStatus, f as SpecTemplate, b as SpecRequirement } from '../spec-TBi3Jr6T.js';
|
|
2
2
|
import { d as TaskGraph, e as TaskNode, i as TaskFilter, j as TaskSort, c as TaskProgress, T as TaskType, a as TaskPriority } from '../task-graph-u1q9Jkyk.js';
|
|
3
|
-
import { E as EventBus } from '../brain-
|
|
4
|
-
import { D as DoneCondition, g as Agent, h as AgentFactory, f as TaskResult } from '../agent-subagent-runner-
|
|
3
|
+
import { E as EventBus } from '../brain-BaQsRNka.js';
|
|
4
|
+
import { D as DoneCondition, g as Agent, h as AgentFactory, f as TaskResult } from '../agent-subagent-runner-DhYLgAJo.js';
|
|
5
5
|
import '../context-CLz3z_E8.js';
|
|
6
|
-
import '../index-
|
|
6
|
+
import '../index-Csoc_bKs.js';
|
|
7
7
|
import '../logger-B63L5bTg.js';
|
|
8
|
-
import '../pipeline-
|
|
8
|
+
import '../pipeline-Bxa3wDcy.js';
|
|
9
9
|
import '../config-eSsrto5d.js';
|
|
10
10
|
import '../observability-D-HZN_mF.js';
|
|
11
11
|
import '../permission-DbWPbuoA.js';
|
package/dist/storage/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { M as MemoryBackend, j as FileMemoryBackendOptions } from '../plan-templates-
|
|
2
|
-
export { A as AbandonedSession, a as AttachmentStoreOptions, C as ConfigLoaderOptions, b as ConfigMigration, c as ConfigMigrationError, d as ConfigSource, D as DEFAULT_CONFIG_MIGRATIONS, e as DefaultAttachmentStore, f as DefaultConfigLoader, g as DefaultConfigStore, h as DefaultMemoryStore, i as DefaultSessionStore, F as FileMemoryBackend, k as MemoryStoreOptions, l as MigrationContext, m as MigrationResult, P as PersistedQueueItem, n as PlanFile, o as PlanItem, p as PlanTemplate, Q as QueueStore, R as RecoveryLock, q as RecoveryLockOptions, S as SessionAnalyzer, r as SessionStoreOptions, T as TodosCheckpointFile, s as addPlanItem, t as attachPlanCheckpoint, u as attachTodosCheckpoint, v as clearPlan, w as deriveTodosFromPlanItem, x as emptyPlan, y as formatPlan, z as formatPlanTemplates, B as getPlanTemplate, E as listPlanTemplates, G as loadPlan, H as loadTodosCheckpoint, I as mutatePlan, J as parseEntries, K as removePlanItem, L as runConfigMigrations, N as savePlan, O as saveTodosCheckpoint, U as setPlanItemStatus } from '../plan-templates-
|
|
3
|
-
import { M as MemoryScope, k as MemoryEntry, l as MemoryStore, E as EventBus } from '../brain-
|
|
4
|
-
import { l as AgentExtension, j as AfterRunHook } from '../index-
|
|
1
|
+
import { M as MemoryBackend, j as FileMemoryBackendOptions } from '../plan-templates-D3guWwTi.js';
|
|
2
|
+
export { A as AbandonedSession, a as AttachmentStoreOptions, C as ConfigLoaderOptions, b as ConfigMigration, c as ConfigMigrationError, d as ConfigSource, D as DEFAULT_CONFIG_MIGRATIONS, e as DefaultAttachmentStore, f as DefaultConfigLoader, g as DefaultConfigStore, h as DefaultMemoryStore, i as DefaultSessionStore, F as FileMemoryBackend, k as MemoryStoreOptions, l as MigrationContext, m as MigrationResult, P as PersistedQueueItem, n as PlanFile, o as PlanItem, p as PlanTemplate, Q as QueueStore, R as RecoveryLock, q as RecoveryLockOptions, S as SessionAnalyzer, r as SessionStoreOptions, T as TodosCheckpointFile, s as addPlanItem, t as attachPlanCheckpoint, u as attachTodosCheckpoint, v as clearPlan, w as deriveTodosFromPlanItem, x as emptyPlan, y as formatPlan, z as formatPlanTemplates, B as getPlanTemplate, E as listPlanTemplates, G as loadPlan, H as loadTodosCheckpoint, I as mutatePlan, J as parseEntries, K as removePlanItem, L as runConfigMigrations, N as savePlan, O as saveTodosCheckpoint, U as setPlanItemStatus } from '../plan-templates-D3guWwTi.js';
|
|
3
|
+
import { M as MemoryScope, k as MemoryEntry, l as MemoryStore, E as EventBus } from '../brain-BaQsRNka.js';
|
|
4
|
+
import { l as AgentExtension, j as AfterRunHook } from '../index-Csoc_bKs.js';
|
|
5
5
|
import { P as Provider, R as Request, b as Response, S as SessionEvent } from '../context-CLz3z_E8.js';
|
|
6
6
|
export { D as DefaultSessionReader, f as DefaultSessionReaderOptions, S as SessionReader } from '../session-reader-CCOssnBS.js';
|
|
7
7
|
import { S as SessionRewinder, C as CheckpointInfo, a as RewindResultExtended } from '../session-rewinder-C9HnMkhP.js';
|
|
@@ -14,7 +14,7 @@ export { A as AuditLevel, C as CORE_RECONSTRUCT_EVENTS, a as STANDARD_AUDIT_EVEN
|
|
|
14
14
|
import '../permission-DbWPbuoA.js';
|
|
15
15
|
import '../secret-vault-BJDY28ev.js';
|
|
16
16
|
import '../logger-B63L5bTg.js';
|
|
17
|
-
import '../pipeline-
|
|
17
|
+
import '../pipeline-Bxa3wDcy.js';
|
|
18
18
|
import '../observability-D-HZN_mF.js';
|
|
19
19
|
import '../task-graph-u1q9Jkyk.js';
|
|
20
20
|
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { A as AgentError, k as Capabilities, u as ConfigError, g as ContentBlock, C as Context, v as ContextInit, E as ERROR_CODES, w as ErrorCode, x as ErrorSeverity, y as ErrorSubsystem, F as FileSnapshot, z as FsError, I as ImageBlock, J as JSONSchema, M as Message, B as MessageRole, f as Permission, D as PluginError, P as Provider, e as ProviderError, G as ProviderErrorBody, R as Request, b as Response, p as ResumedSession, K as RiskTier, o as RunOptions, N as SddError, q as SessionData, O as SessionError, S as SessionEvent, h as SessionMetadata, i as SessionStore, r as SessionSummary, a as SessionWriter, W as StopReason, X as StreamEvent, Y as StreamHangError, n as TextBlock, Z as ThinkingBlock, s as TodoItem, T as Tool, _ as ToolCallContext, $ as ToolError, a0 as ToolFinalEvent, j as ToolProgressEvent, m as ToolResultBlock, a1 as ToolStreamEvent, l as ToolUseBlock, U as Usage, a2 as WrongStackError, a3 as asBlocks, a4 as asText, a6 as isAgentError, a7 as isConfigError, a8 as isFsError, a9 as isImageBlock, aa as isPluginError, ab as isSddError, ac as isSessionError, ad as isTextBlock, ae as isThinkingBlock, af as isToolError, ag as isToolResultBlock, ah as isToolUseBlock, ai as isWrongStackError, aj as toWrongStackError } from '../context-CLz3z_E8.js';
|
|
2
|
-
export { P as ProviderRunner, R as RunProviderOptions } from '../provider-runner-
|
|
2
|
+
export { P as ProviderRunner, R as RunProviderOptions } from '../provider-runner-C8_e4Lo1.js';
|
|
3
3
|
export { A as AutonomyConfig, n as CONTEXT_WINDOW_MODES, h as Config, j as ConfigLoader, i as ConfigStore, o as ContextConfig, C as ContextWindowAggressiveOn, p as ContextWindowConfigLike, q as ContextWindowMode, r as ContextWindowModeId, g as ContextWindowPolicy, s as ContextWindowThresholds, t as CustomModelDefinition, D as DEFAULT_CONTEXT_WINDOW_MODE_ID, F as FeaturesConfig, f as HookEntry, H as HookEvent, l as HookInput, e as HookMatcher, m as HookOutcome, I as InProcessHook, u as IndexingConfig, L as LaunchConfig, v as LogConfig, c as MCPServerConfig, d as ModelMatrixEntry, w as ModelsDevModel, a as ModelsDevPayload, x as ModelsDevProvider, M as ModelsRegistry, y as PluginConfig, z as ProviderApiKey, P as ProviderConfig, b as ResolvedModel, R as ResolvedProvider, B as SessionLoggingConfig, S as ShellHook, E as SyncCategory, k as SyncConfig, T as ToolsConfig, W as WireFamily, G as formatContextWindowModeList, J as getContextWindowMode, K as isContextWindowModeId, N as listContextWindowModes, O as resolveContextWindowPolicy } from '../config-eSsrto5d.js';
|
|
4
4
|
export { a as CompactReport, C as Compactor } from '../compactor-BRfg3QPd.js';
|
|
5
5
|
export { a as PermissionDecision, P as PermissionPolicy, T as TrustPolicy } from '../permission-DbWPbuoA.js';
|
|
@@ -8,27 +8,27 @@ export { a as AddAttachmentInput, c as Attachment, d as AttachmentKind, e as Att
|
|
|
8
8
|
export { D as DEFAULT_AUTONOMY_CONFIG, a as DEFAULT_CONTEXT_CONFIG, b as DEFAULT_SESSION_LOGGING_CONFIG, c as DEFAULT_SESSION_PRUNE_DAYS, d as DEFAULT_TOOLS_CONFIG } from '../default-config-CXsDvOmP.js';
|
|
9
9
|
export { D as DefaultSecretScrubber, a as DefaultSecretVault, S as SecretVaultOptions, d as decryptConfigSecrets, e as encryptConfigSecrets, i as isSecretField, m as migratePlaintextSecrets, r as rewriteConfigEncrypted } from '../secret-vault-CeVNiy_f.js';
|
|
10
10
|
export { D as DefaultLogger, a as DefaultLoggerOptions, L as LogFormat, n as noOpLogger } from '../logger-DmmQhf4P.js';
|
|
11
|
-
export { D as DefaultPathResolver, a as DefaultTokenCounter } from '../path-resolver-
|
|
12
|
-
export { p as MEMORY_TYPE_LABELS, q as MemoryClearedPayload, r as MemoryConsolidatedPayload, k as MemoryEntry, s as MemoryForgottenPayload, t as MemoryPriority, m as MemoryRelevanceContext, u as MemoryRememberedPayload, M as MemoryScope, l as MemoryStore, v as MemoryType, S as ScoredEntry } from '../brain-
|
|
13
|
-
import { I as IterationStage, g as ParallelIterationStage } from '../parallel-eternal-engine-
|
|
14
|
-
export { C as CompactorOptions, D as DEFAULT_RECOVERY_STRATEGIES, a as DefaultErrorHandler, b as DefaultRetryPolicy, H as HybridCompactor, R as RecoveryStrategy, T as ToolExecutor, h as buildRecoveryStrategies } from '../parallel-eternal-engine-
|
|
11
|
+
export { D as DefaultPathResolver, a as DefaultTokenCounter } from '../path-resolver-B7VjhUHq.js';
|
|
12
|
+
export { p as MEMORY_TYPE_LABELS, q as MemoryClearedPayload, r as MemoryConsolidatedPayload, k as MemoryEntry, s as MemoryForgottenPayload, t as MemoryPriority, m as MemoryRelevanceContext, u as MemoryRememberedPayload, M as MemoryScope, l as MemoryStore, v as MemoryType, S as ScoredEntry } from '../brain-BaQsRNka.js';
|
|
13
|
+
import { I as IterationStage, g as ParallelIterationStage } from '../parallel-eternal-engine-CAMabk-X.js';
|
|
14
|
+
export { C as CompactorOptions, D as DEFAULT_RECOVERY_STRATEGIES, a as DefaultErrorHandler, b as DefaultRetryPolicy, H as HybridCompactor, R as RecoveryStrategy, T as ToolExecutor, h as buildRecoveryStrategies } from '../parallel-eternal-engine-CAMabk-X.js';
|
|
15
15
|
export { b as SkillEntry, S as SkillLoader, a as SkillManifest } from '../skill-Bj6Ezqb8.js';
|
|
16
|
-
export { B as BuildContext,
|
|
16
|
+
export { B as BuildContext, q as ModelCapabilities, a as Renderer, S as SystemPromptBuilder } from '../pipeline-Bxa3wDcy.js';
|
|
17
17
|
export { I as InputReader, P as PromptOption } from '../input-reader-E-ffP2ee.js';
|
|
18
|
-
export { O as CoordinatorEvents, C as CoordinatorStatus, D as DoneCondition, I as MCPRegistryView, L as MetricsSinkView, c as MultiAgentConfig, M as MultiAgentCoordinator, N as Plugin, P as PluginAPI, Q as PluginCapabilities, R as PluginDependency, E as PluginPipelines, _ as ProviderFactory, H as ProviderRegistryView, K as SessionWriterView, z as SlashCommand, J as SlashCommandRegistryView, e as SpawnResult, S as SubagentConfig, U as SubagentContext, V as SubagentError, W as SubagentErrorKind, X as SubagentRunContext, Y as SubagentRunOutcome, d as SubagentRunner, Z as TaskDelegation, f as TaskResult, T as TaskSpec, G as ToolRegistryView } from '../agent-subagent-runner-
|
|
18
|
+
export { O as CoordinatorEvents, C as CoordinatorStatus, D as DoneCondition, I as MCPRegistryView, L as MetricsSinkView, c as MultiAgentConfig, M as MultiAgentCoordinator, N as Plugin, P as PluginAPI, Q as PluginCapabilities, R as PluginDependency, E as PluginPipelines, _ as ProviderFactory, H as ProviderRegistryView, K as SessionWriterView, z as SlashCommand, J as SlashCommandRegistryView, e as SpawnResult, S as SubagentConfig, U as SubagentContext, V as SubagentError, W as SubagentErrorKind, X as SubagentRunContext, Y as SubagentRunOutcome, d as SubagentRunner, Z as TaskDelegation, f as TaskResult, T as TaskSpec, G as ToolRegistryView } from '../agent-subagent-runner-DhYLgAJo.js';
|
|
19
19
|
export { D as DefaultModelsRegistry, a as DefaultModelsRegistryOptions, c as classifyFamily } from '../models-registry-DpanBg8D.js';
|
|
20
20
|
export { D as DEFAULT_MODES, b as Mode, a as ModeConfig, c as ModeManifest, M as ModeStore } from '../mode-CZlO9iU1.js';
|
|
21
|
-
export { I as InMemoryAgentBridge, a as InMemoryBridgeTransport, c as createMessage } from '../agent-bridge-
|
|
21
|
+
export { I as InMemoryAgentBridge, a as InMemoryBridgeTransport, c as createMessage } from '../agent-bridge-l_DsFEbr.js';
|
|
22
22
|
export { D as DEFAULT_SPEC_TEMPLATE, S as SpecAnalysis, a as SpecApiEndpoint, b as SpecRequirement, c as SpecSection, d as SpecSectionType, e as SpecStatus, f as SpecTemplate, g as SpecValidationResult, h as Specification } from '../spec-TBi3Jr6T.js';
|
|
23
23
|
export { C as CriticalPathResult, f as TaskAssignment, g as TaskDependency, h as TaskEdge, i as TaskFilter, d as TaskGraph, e as TaskNode, a as TaskPriority, c as TaskProgress, j as TaskSort, b as TaskStatus, T as TaskType, k as computeTaskProgress, l as findCriticalPath, t as topologicalSort } from '../task-graph-u1q9Jkyk.js';
|
|
24
24
|
export { A as AggregateHealth, a as HealthCheck, b as HealthCheckResult, H as HealthRegistry, c as HealthStatus, d as MetricLabels, e as MetricSeries, M as MetricsSink, f as MetricsSnapshot, S as Span, T as Tracer } from '../observability-D-HZN_mF.js';
|
|
25
|
-
export { S as SystemPromptContributor } from '../index-
|
|
25
|
+
export { S as SystemPromptContributor } from '../index-Csoc_bKs.js';
|
|
26
26
|
import '../logger-B63L5bTg.js';
|
|
27
27
|
import '../retry-policy-BVnkbMET.js';
|
|
28
28
|
import '../secret-vault-BJDY28ev.js';
|
|
29
29
|
import '../path-resolver-CPRj4bFY.js';
|
|
30
30
|
import '../goal-store-CV9Yz2X_.js';
|
|
31
|
-
import '../multi-agent-coordinator-
|
|
31
|
+
import '../multi-agent-coordinator-Bs-M0Mo6.js';
|
|
32
32
|
import 'node:events';
|
|
33
33
|
|
|
34
34
|
/** Union of serial and parallel autonomy engine stage types (from EternalAutonomyEngine / ParallelEternalEngine). */
|
package/dist/types/index.js
CHANGED
|
@@ -981,6 +981,10 @@ var DefaultTokenCounter = class {
|
|
|
981
981
|
const price = model ? this.priceCache.get(model) : void 0;
|
|
982
982
|
if (price) {
|
|
983
983
|
this.applyPrice(usage, price);
|
|
984
|
+
this.events?.emit("token.accounted", {
|
|
985
|
+
usage: this.total(),
|
|
986
|
+
cost: { input: this.costInput, output: this.costOutput, total: this.costInput + this.costOutput }
|
|
987
|
+
});
|
|
984
988
|
} else if (this.registry && this.providerId && model) {
|
|
985
989
|
if (this.priceCache.size >= PRICE_CACHE_MAX_SIZE) {
|
|
986
990
|
const keys = [...this.priceCache.keys()];
|
|
@@ -991,6 +995,10 @@ var DefaultTokenCounter = class {
|
|
|
991
995
|
const p = priceFromModel(m);
|
|
992
996
|
this.priceCache.set(model, p);
|
|
993
997
|
this.applyPrice(usage, p);
|
|
998
|
+
this.events?.emit("token.accounted", {
|
|
999
|
+
usage: this.total(),
|
|
1000
|
+
cost: { input: this.costInput, output: this.costOutput, total: this.costInput + this.costOutput }
|
|
1001
|
+
});
|
|
994
1002
|
}
|
|
995
1003
|
}).catch(() => {
|
|
996
1004
|
this.events?.emit("token.cost_estimate_unavailable", { model: model ?? "<unknown>" });
|
|
@@ -1013,6 +1021,10 @@ var DefaultTokenCounter = class {
|
|
|
1013
1021
|
}
|
|
1014
1022
|
this.priceCache.set(resolved.modelId, price);
|
|
1015
1023
|
this.applyPrice(usage, price);
|
|
1024
|
+
this.events?.emit("token.accounted", {
|
|
1025
|
+
usage: this.total(),
|
|
1026
|
+
cost: { input: this.costInput, output: this.costOutput, total: this.costInput + this.costOutput }
|
|
1027
|
+
});
|
|
1016
1028
|
}
|
|
1017
1029
|
total() {
|
|
1018
1030
|
return {
|