@wrongstack/core 0.272.0 → 0.272.1
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-jVSZiygR.d.ts → agent-bridge-DFQYEeXf.d.ts} +1 -1
- package/dist/{agent-subagent-runner-DOLIwBRo.d.ts → agent-subagent-runner-BZa_IEcd.d.ts} +4 -4
- package/dist/{brain-CdbbJWi3.d.ts → brain-etbcbRwV.d.ts} +24 -1
- package/dist/{config-D2DGoGSQ.d.ts → config-rRS8yorV.d.ts} +43 -1
- package/dist/coordination/index.d.ts +74 -14
- package/dist/coordination/index.js +285 -97
- package/dist/coordination/index.js.map +1 -1
- package/dist/defaults/index.d.ts +16 -16
- package/dist/defaults/index.js +209 -140
- package/dist/defaults/index.js.map +1 -1
- package/dist/execution/index.d.ts +9 -9
- package/dist/extension/index.d.ts +4 -4
- package/dist/{global-mailbox-CQj_C9Dp.d.ts → global-mailbox-DJ4EoRr0.d.ts} +7 -3
- package/dist/{goal-preamble-ZXDjjR1y.d.ts → goal-preamble-hM8BH7TK.d.ts} +5 -5
- package/dist/{goal-store-CcJBd-g1.d.ts → goal-store-CWlbT0TO.d.ts} +1 -1
- package/dist/hq/index.d.ts +6 -4
- package/dist/hq/index.js +14 -6
- package/dist/hq/index.js.map +1 -1
- package/dist/{index-Qo4kTzgw.d.ts → index-DWm_PE9L.d.ts} +3 -3
- package/dist/{index-BL7BAx0p.d.ts → index-DqW4o62H.d.ts} +4 -4
- package/dist/index.d.ts +27 -27
- package/dist/index.js +571 -215
- package/dist/index.js.map +1 -1
- package/dist/infrastructure/index.d.ts +4 -4
- package/dist/kernel/index.d.ts +5 -5
- package/dist/kernel/index.js.map +1 -1
- package/dist/{mcp-servers-DS-YUXvF.d.ts → mcp-servers-BpWHTKlE.d.ts} +1 -1
- package/dist/models/index.d.ts +3 -3
- package/dist/{models-registry-DP6pGHet.d.ts → models-registry-CXQFUn5t.d.ts} +1 -1
- package/dist/{multi-agent-coordinator-BvbdNQ14.d.ts → multi-agent-coordinator-jyimfo7D.d.ts} +1 -1
- package/dist/{null-fleet-bus-BxTfXBKo.d.ts → null-fleet-bus-DOGQcvrY.d.ts} +5 -5
- package/dist/observability/index.d.ts +1 -1
- package/dist/{parallel-eternal-engine-Cf-GTegR.d.ts → parallel-eternal-engine-rItJBYp9.d.ts} +6 -6
- package/dist/{path-resolver-DztfnFcv.d.ts → path-resolver-DrpF5MGK.d.ts} +2 -2
- package/dist/{pipeline-sNIkhXeB.d.ts → pipeline-Ckkn3AOA.d.ts} +1 -1
- package/dist/{plan-templates-DYiKFmEb.d.ts → plan-templates-BvHw5Znw.d.ts} +24 -6
- package/dist/{provider-model-resolve-dYAbTs_i.d.ts → provider-model-resolve-nZqnCeaR.d.ts} +1 -1
- package/dist/{provider-runner-Dw8x0F7u.d.ts → provider-runner-zVOn1p67.d.ts} +1 -1
- package/dist/sdd/index.d.ts +5 -5
- package/dist/storage/index.d.ts +12 -7
- package/dist/storage/index.js +250 -111
- package/dist/storage/index.js.map +1 -1
- package/dist/tools/index.d.ts +1 -1
- package/dist/types/index.d.ts +13 -13
- package/dist/types/index.js.map +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { M as MetricsSink, d as MetricLabels, f as MetricsSnapshot, H as HealthRegistry, a as HealthCheck, A as AggregateHealth, T as Tracer, S as Span } from '../observability-D-HZN_mF.js';
|
|
2
|
-
import { E as EventBus } from '../brain-
|
|
2
|
+
import { E as EventBus } from '../brain-etbcbRwV.js';
|
|
3
3
|
import '../context-Dw55zZ_Q.js';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/{parallel-eternal-engine-Cf-GTegR.d.ts → parallel-eternal-engine-rItJBYp9.d.ts}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { g as ProviderError, C as Context, T as Tool, r as ToolUseBlock, s as ToolResultBlock } from './context-Dw55zZ_Q.js';
|
|
2
2
|
import { R as RetryPolicy, E as ErrorHandler, a as RecoveryDecision } from './retry-policy-BV7nzeAd.js';
|
|
3
3
|
import { C as Compactor, a as CompactReport } from './compactor-72ug-ZRB.js';
|
|
4
|
-
import { M as ModelsRegistry } from './config-
|
|
5
|
-
import { T as ToolExecutorOptions, a as ToolExecutorStrategy, b as ToolBatchResult } from './index-
|
|
6
|
-
import { g as Agent, h as AgentFactory } from './agent-subagent-runner-
|
|
7
|
-
import { B as BrainArbiter, E as EventBus } from './brain-
|
|
8
|
-
import { J as JournalEntry } from './goal-store-
|
|
9
|
-
import { D as DispatchClassifier, a as DefaultMultiAgentCoordinator } from './multi-agent-coordinator-
|
|
4
|
+
import { M as ModelsRegistry } from './config-rRS8yorV.js';
|
|
5
|
+
import { T as ToolExecutorOptions, a as ToolExecutorStrategy, b as ToolBatchResult } from './index-DWm_PE9L.js';
|
|
6
|
+
import { g as Agent, h as AgentFactory } from './agent-subagent-runner-BZa_IEcd.js';
|
|
7
|
+
import { B as BrainArbiter, E as EventBus } from './brain-etbcbRwV.js';
|
|
8
|
+
import { J as JournalEntry } from './goal-store-CWlbT0TO.js';
|
|
9
|
+
import { D as DispatchClassifier, a as DefaultMultiAgentCoordinator } from './multi-agent-coordinator-jyimfo7D.js';
|
|
10
10
|
|
|
11
11
|
declare class DefaultRetryPolicy implements RetryPolicy {
|
|
12
12
|
shouldRetry(err: Error | ProviderError, attempt: number): boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as EventBus } from './brain-
|
|
2
|
-
import { M as ModelsRegistry, b as ResolvedModel } from './config-
|
|
1
|
+
import { E as EventBus } from './brain-etbcbRwV.js';
|
|
2
|
+
import { M as ModelsRegistry, b as ResolvedModel } from './config-rRS8yorV.js';
|
|
3
3
|
import { e as TokenCounter, U as Usage, f as CacheStats } from './context-Dw55zZ_Q.js';
|
|
4
4
|
import { P as PathResolver } from './path-resolver-CPRj4bFY.js';
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { T as Tool, q as TextBlock, i as ContentBlock } from './context-Dw55zZ_Q.js';
|
|
2
2
|
import { a as MailboxAgentStatus } from './mailbox-types-Ct2hJq0P.js';
|
|
3
|
-
import { H as HookEvent, f as HookMatcher, I as InProcessHook, S as ShellHook, g as HookEntry } from './config-
|
|
3
|
+
import { H as HookEvent, f as HookMatcher, I as InProcessHook, S as ShellHook, g as HookEntry } from './config-rRS8yorV.js';
|
|
4
4
|
|
|
5
5
|
/** Model capabilities relevant to prompt composition. */
|
|
6
6
|
interface ModelCapabilities {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { E as EventBus, M as MemoryScope, b as MemoryEntry, c as MemoryStore, d as MemoryRelevanceContext, S as ScoredEntry } from './brain-
|
|
1
|
+
import { E as EventBus, M as MemoryScope, b as MemoryEntry, c as MemoryStore, d as MemoryRelevanceContext, S as ScoredEntry } from './brain-etbcbRwV.js';
|
|
2
2
|
import { S as SecretScrubber } from './permission-CC7XFYWG.js';
|
|
3
3
|
import { k as SessionStore, j as SessionMetadata, b as SessionWriter, u as ResumedSession, v as SessionData, w as SessionSummary, i as ContentBlock, S as SessionEvent, x as TodoItem, y as ConversationState } from './context-Dw55zZ_Q.js';
|
|
4
4
|
import { A as AttachmentStore, a as AddAttachmentInput, b as AttachmentRef, c as Attachment } from './session-reader-BepLSnGL.js';
|
|
5
5
|
import { W as WstackPaths } from './wstack-paths-hOpNLmvf.js';
|
|
6
|
-
import { j as ConfigStore, i as Config, k as ConfigLoader, l as SyncConfig } from './config-
|
|
6
|
+
import { j as ConfigStore, i as Config, k as ConfigLoader, l as SyncConfig } from './config-rRS8yorV.js';
|
|
7
7
|
import { S as SecretVault } from './secret-vault-BAKpgFw_.js';
|
|
8
8
|
|
|
9
9
|
interface SessionStoreOptions {
|
|
@@ -13,7 +13,7 @@ interface SessionStoreOptions {
|
|
|
13
13
|
/**
|
|
14
14
|
* Optional secret scrubber. When set, `user_input` and `llm_response` event
|
|
15
15
|
* content is scrubbed before being persisted to the JSONL log and the
|
|
16
|
-
* summary sidecar
|
|
16
|
+
* summary sidecar — so a secret a user pastes or the model echoes does not
|
|
17
17
|
* sit in cleartext on disk (and does not ride along in history cloud-sync).
|
|
18
18
|
* Tool output is already scrubbed upstream by the executor; this closes the
|
|
19
19
|
* conversation-turn gap (finding F-06).
|
|
@@ -86,7 +86,7 @@ declare class DefaultSessionStore implements SessionStore {
|
|
|
86
86
|
private listFromDirectoryScan;
|
|
87
87
|
private collectSessionFiles;
|
|
88
88
|
/** Recursively collect session IDs from date-shard subdirectories.
|
|
89
|
-
* IDs include the date-prefix path (e.g. "2026-06-06/17-46-57Z_
|
|
89
|
+
* IDs include the date-prefix path (e.g. "2026-06-06/17-46-57Z_…").
|
|
90
90
|
* Skips `.jsonl`/`.summary.json` root files, dot-files, and
|
|
91
91
|
* sub-directories that belong to fleet/subagent sessions. */
|
|
92
92
|
private collectSessionIds;
|
|
@@ -108,8 +108,6 @@ declare class DefaultSessionStore implements SessionStore {
|
|
|
108
108
|
clearHistory(id: string): Promise<void>;
|
|
109
109
|
private summarize;
|
|
110
110
|
private iterSessionEvents;
|
|
111
|
-
private metaFromEvents;
|
|
112
|
-
private replay;
|
|
113
111
|
}
|
|
114
112
|
|
|
115
113
|
/**
|
|
@@ -255,10 +253,30 @@ declare class DefaultMemoryStore implements MemoryStore {
|
|
|
255
253
|
*/
|
|
256
254
|
private readonly persistBackup;
|
|
257
255
|
private readonly backupDir;
|
|
256
|
+
/**
|
|
257
|
+
* Per-scope tracked byte sizes — incremented on `remember()`, decremented on
|
|
258
|
+
* `forget()`, recalculated after `consolidate()`. Eliminates the redundant
|
|
259
|
+
* readAll() call that previously checked the file size after every write.
|
|
260
|
+
*/
|
|
261
|
+
private readonly _trackedByteSizes;
|
|
262
|
+
/** Result cache for scoreRelevant() — keyed by scope + context hash, TTL 30s. */
|
|
263
|
+
private readonly _scoreCache;
|
|
264
|
+
/**
|
|
265
|
+
* Per-entry cached lowercase strings — computed once per scoreRelevant() call,
|
|
266
|
+
* stored here so repeated scoring of the same entries avoids re-computation.
|
|
267
|
+
* Cleared on every mutation (remember/forget/consolidate/clear).
|
|
268
|
+
*/
|
|
269
|
+
private _cachedLower;
|
|
258
270
|
constructor(opts: MemoryStoreOptions);
|
|
259
271
|
/** Expose the backend for plugin introspection and advanced queries. */
|
|
260
272
|
getBackend(): MemoryBackend;
|
|
261
273
|
private runSerialized;
|
|
274
|
+
/**
|
|
275
|
+
* Recalculate the tracked byte size for a scope by re-reading the file and
|
|
276
|
+
* summing the serialized byte length of each line. Called after consolidate()
|
|
277
|
+
* (which modifies the file) to keep the tracker accurate.
|
|
278
|
+
*/
|
|
279
|
+
private _recalcTrackedByteSize;
|
|
262
280
|
readAll(): Promise<string>;
|
|
263
281
|
read(scope: MemoryScope): Promise<string>;
|
|
264
282
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { M as ModeStore, a as ModeConfig, b as Mode } from './mode-CZlO9iU1.js';
|
|
2
2
|
import { P as Provider, M as Message } from './context-Dw55zZ_Q.js';
|
|
3
3
|
import { M as MessageSelector, S as SelectorResult } from './selector-C4ORTOid.js';
|
|
4
|
-
import { e as ModelsDevModel, R as ResolvedProvider } from './config-
|
|
4
|
+
import { e as ModelsDevModel, R as ResolvedProvider } from './config-rRS8yorV.js';
|
|
5
5
|
|
|
6
6
|
declare class DefaultModeStore implements ModeStore {
|
|
7
7
|
private activeModeId;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as EventBus } from './brain-
|
|
1
|
+
import { E as EventBus } from './brain-etbcbRwV.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, c as Request, C as Context, d as Response } from './context-Dw55zZ_Q.js';
|
package/dist/sdd/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
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-etbcbRwV.js';
|
|
4
|
+
import { D as DoneCondition, g as Agent, h as AgentFactory, f as TaskResult } from '../agent-subagent-runner-BZa_IEcd.js';
|
|
5
5
|
import '../context-Dw55zZ_Q.js';
|
|
6
|
-
import '../index-
|
|
6
|
+
import '../index-DWm_PE9L.js';
|
|
7
7
|
import '../logger-B63L5bTg.js';
|
|
8
|
-
import '../pipeline-
|
|
8
|
+
import '../pipeline-Ckkn3AOA.js';
|
|
9
9
|
import '../mailbox-types-Ct2hJq0P.js';
|
|
10
|
-
import '../config-
|
|
10
|
+
import '../config-rRS8yorV.js';
|
|
11
11
|
import '../observability-D-HZN_mF.js';
|
|
12
12
|
import '../permission-CC7XFYWG.js';
|
|
13
13
|
import '../retry-policy-BV7nzeAd.js';
|
package/dist/storage/index.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
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, b as MemoryEntry, c 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-BvHw5Znw.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-BvHw5Znw.js';
|
|
3
|
+
import { M as MemoryScope, b as MemoryEntry, c as MemoryStore, E as EventBus } from '../brain-etbcbRwV.js';
|
|
4
|
+
import { l as AgentExtension, j as AfterRunHook } from '../index-DWm_PE9L.js';
|
|
5
5
|
import { P as Provider, c as Request, d as Response, S as SessionEvent } from '../context-Dw55zZ_Q.js';
|
|
6
6
|
export { D as DefaultSessionReader, f as DefaultSessionReaderOptions, S as SessionReader } from '../session-reader-BepLSnGL.js';
|
|
7
7
|
import { S as SessionRewinder, C as CheckpointInfo, a as RewindResultExtended } from '../session-rewinder-C9HnMkhP.js';
|
|
8
8
|
import { T as TaskItem } from '../task-format-vGOIftmK.js';
|
|
9
9
|
export { a as DirectorStateCheckpoint, D as DirectorStateSnapshot, b as DirectorSubagentState, c as DirectorTaskState, l as loadDirectorState } from '../director-state-BfeCUbmk.js';
|
|
10
|
-
export { G as GoalFile, J as JournalEntry, M as MAX_JOURNAL_ENTRIES, a as MAX_PROGRESS_HISTORY, P as ProgressSnapshot, b as appendJournal, e as emptyGoal, f as formatGoal, g as goalFilePath, l as loadGoal, p as parseProgressFromText, r as recordProgress, s as saveGoal, c as setProgress, d as summarizeUsage } from '../goal-store-
|
|
10
|
+
export { G as GoalFile, J as JournalEntry, M as MAX_JOURNAL_ENTRIES, a as MAX_PROGRESS_HISTORY, P as ProgressSnapshot, b as appendJournal, e as emptyGoal, f as formatGoal, g as goalFilePath, l as loadGoal, p as parseProgressFromText, r as recordProgress, s as saveGoal, c as setProgress, d as summarizeUsage } from '../goal-store-CWlbT0TO.js';
|
|
11
11
|
import { W as WstackPaths } from '../wstack-paths-hOpNLmvf.js';
|
|
12
|
-
import {
|
|
12
|
+
import { X as SyncCategory, l as SyncConfig } from '../config-rRS8yorV.js';
|
|
13
13
|
export { A as AuditLevel, C as CORE_RECONSTRUCT_EVENTS, a as STANDARD_AUDIT_EVENTS, S as SessionEventBridge, b as SessionEventBridgeOptions, c as SessionSamplingOptions, T as ToolProgressSamplingOptions, d as createSessionEventBridge, r as resolveAuditLevel, e as resolveSessionLoggingConfig } from '../session-event-bridge-CeNpUL9w.js';
|
|
14
14
|
import '../permission-CC7XFYWG.js';
|
|
15
15
|
import '../secret-vault-BAKpgFw_.js';
|
|
16
16
|
import '../logger-B63L5bTg.js';
|
|
17
|
-
import '../pipeline-
|
|
17
|
+
import '../pipeline-Ckkn3AOA.js';
|
|
18
18
|
import '../mailbox-types-Ct2hJq0P.js';
|
|
19
19
|
import '../observability-D-HZN_mF.js';
|
|
20
20
|
import '../task-graph-u1q9Jkyk.js';
|
|
@@ -603,6 +603,8 @@ interface AgentEntry {
|
|
|
603
603
|
id: string;
|
|
604
604
|
/** Human-readable label (e.g. "leader", "bug-hunter #1"). */
|
|
605
605
|
name: string;
|
|
606
|
+
/** UTC ISO timestamp when this agent/run started, when known. */
|
|
607
|
+
startedAt?: string | undefined;
|
|
606
608
|
status: AgentLiveStatus;
|
|
607
609
|
/** Current tool name if running, undefined otherwise. */
|
|
608
610
|
currentTool?: string | undefined;
|
|
@@ -763,6 +765,7 @@ declare class AgentStatusTracker {
|
|
|
763
765
|
private leaderCtxPct;
|
|
764
766
|
private leaderModel;
|
|
765
767
|
private leaderPartialText;
|
|
768
|
+
private leaderStartedAt;
|
|
766
769
|
private unsubscribers;
|
|
767
770
|
private readonly onUpdate;
|
|
768
771
|
private sweepTimer;
|
|
@@ -785,6 +788,8 @@ declare class AgentStatusTracker {
|
|
|
785
788
|
*/
|
|
786
789
|
private sweep;
|
|
787
790
|
private flush;
|
|
791
|
+
private markLeaderStarted;
|
|
792
|
+
private captureLeaderContext;
|
|
788
793
|
}
|
|
789
794
|
|
|
790
795
|
interface FleetNotifierOptions {
|