@wrongstack/core 0.273.0 → 0.274.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-BZ2enORi.d.ts → agent-bridge-DFo21wmY.d.ts} +1 -1
- package/dist/{agent-subagent-runner-ehb4xGvd.d.ts → agent-subagent-runner-BwmkIDEd.d.ts} +7 -7
- package/dist/{brain-BxN2k2HP.d.ts → brain-gfZX3the.d.ts} +11 -5
- package/dist/{provider-model-resolve-DFd3IPpw.d.ts → codex-catalog-CooZ6mOl.d.ts} +47 -4
- package/dist/{compactor-72ug-ZRB.d.ts → compactor-riTOds0f.d.ts} +1 -1
- package/dist/{config-C8IYxlO8.d.ts → config-BxcrDzri.d.ts} +60 -4
- package/dist/{context-Dw55zZ_Q.d.ts → context-DERiLofu.d.ts} +60 -1
- package/dist/coordination/index.d.ts +27 -16
- package/dist/coordination/index.js +1641 -1398
- package/dist/coordination/index.js.map +1 -1
- package/dist/defaults/index.d.ts +26 -26
- package/dist/defaults/index.js +2154 -1466
- package/dist/defaults/index.js.map +1 -1
- package/dist/execution/index.d.ts +15 -15
- package/dist/execution/index.js +77 -9
- package/dist/execution/index.js.map +1 -1
- package/dist/execution/prompt-enhancer.d.ts +1 -1
- package/dist/extension/index.d.ts +6 -6
- package/dist/{global-mailbox-C9dsc9Y_.d.ts → global-mailbox-Cr8TW4t_.d.ts} +1 -1
- package/dist/{goal-preamble-NhflDjYb.d.ts → goal-preamble-CEhROp1e.d.ts} +9 -9
- package/dist/{goal-store-Cx363x7Z.d.ts → goal-store-xNSVxmpV.d.ts} +1 -1
- package/dist/hq/index.d.ts +5 -5
- package/dist/{index-B7fHDt0B.d.ts → index-00KPKAlm.d.ts} +5 -5
- package/dist/{index-BbVprU-9.d.ts → index-pDBSBE1r.d.ts} +2 -2
- package/dist/index.d.ts +72 -45
- package/dist/index.js +2840 -1769
- package/dist/index.js.map +1 -1
- package/dist/infrastructure/index.d.ts +6 -6
- package/dist/kernel/index.d.ts +11 -11
- package/dist/kernel/index.js.map +1 -1
- package/dist/{mcp-servers-B6fSRNC1.d.ts → mcp-servers-BIwRiOxe.d.ts} +3 -3
- package/dist/models/index.d.ts +5 -5
- package/dist/models/index.js +40 -2
- package/dist/models/index.js.map +1 -1
- package/dist/{models-registry-4C6Wr91w.d.ts → models-registry-8OorW51H.d.ts} +1 -1
- package/dist/{multi-agent-coordinator-q1skFeNP.d.ts → multi-agent-coordinator-CNx48Zoz.d.ts} +1 -1
- package/dist/{null-fleet-bus-C9rrgQwc.d.ts → null-fleet-bus-B4ZUJYL6.d.ts} +6 -6
- package/dist/observability/index.d.ts +2 -2
- package/dist/{parallel-eternal-engine-CtXly2Sf.d.ts → parallel-eternal-engine-rsIclDqO.d.ts} +9 -9
- package/dist/{path-resolver-Bim6G5Jz.d.ts → path-resolver-BqU-fwzD.d.ts} +3 -3
- package/dist/{permission-CC7XFYWG.d.ts → permission-Dgs3v-Xq.d.ts} +1 -1
- package/dist/{permission-policy-cYR4RJmw.d.ts → permission-policy-Dtht2k0e.d.ts} +2 -2
- package/dist/{pipeline-CNVKuQDQ.d.ts → pipeline-B-dpCFYS.d.ts} +2 -2
- package/dist/{plan-templates-C4wXMmiM.d.ts → plan-templates-B7MxyY2o.d.ts} +58 -5
- package/dist/{provider-runner-BpM0mdBE.d.ts → provider-runner-DrmpBE5l.d.ts} +3 -3
- package/dist/{retry-policy-BV7nzeAd.d.ts → retry-policy-hYxsm10a.d.ts} +1 -1
- package/dist/sdd/index.d.ts +12 -10
- package/dist/sdd/index.js +7 -0
- package/dist/sdd/index.js.map +1 -1
- package/dist/{secret-vault-eMBKfheR.d.ts → secret-vault-DnqIFhPF.d.ts} +1 -1
- package/dist/security/index.d.ts +5 -5
- package/dist/{selector-C4ORTOid.d.ts → selector-D21RjDIg.d.ts} +1 -1
- package/dist/{session-event-bridge-CeNpUL9w.d.ts → session-event-bridge-Dt54CTvq.d.ts} +1 -1
- package/dist/{session-reader-BepLSnGL.d.ts → session-reader-CceH13Kq.d.ts} +5 -4
- package/dist/storage/index.d.ts +46 -12
- package/dist/storage/index.js +2281 -1476
- package/dist/storage/index.js.map +1 -1
- package/dist/tools/index.d.ts +2 -2
- package/dist/types/index.d.ts +19 -19
- package/dist/types/index.js +162 -42
- package/dist/types/index.js.map +1 -1
- package/dist/utils/index.d.ts +2 -2
- package/dist/{worktree-manager-BDuXTaWL.d.ts → worktree-manager-DUfBbKzk.d.ts} +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as SecretScrubber } from './permission-
|
|
1
|
+
import { S as SecretScrubber } from './permission-Dgs3v-Xq.js';
|
|
2
2
|
import { L as Logger } from './logger-B63L5bTg.js';
|
|
3
3
|
import { R as RotatableSecretVault, S as SecretVault } from './secret-vault-BAKpgFw_.js';
|
|
4
4
|
|
package/dist/security/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { a as DefaultSecretScrubber, D as DefaultSecretVault, S as SecretVaultOptions, d as decryptConfigSecrets, e as encryptConfigSecrets, i as isSecretField, m as migratePlaintextSecrets, r as rewriteConfigEncrypted, b as rotateConfigKeys } from '../secret-vault-
|
|
2
|
-
export { A as AutoApprovePermissionPolicy, D as DefaultPermissionPolicy, P as PermissionPolicyOptions } from '../permission-policy-
|
|
3
|
-
export { D as DANGEROUS_FOR_SUBAGENTS, T as ToolCapabilities, a as ToolCapability, g as getDangerousCapabilities, h as hasCapability, b as hasDangerousCapabilityForSubagents } from '../index-
|
|
4
|
-
import '../permission-
|
|
5
|
-
import '../context-
|
|
1
|
+
export { a as DefaultSecretScrubber, D as DefaultSecretVault, S as SecretVaultOptions, d as decryptConfigSecrets, e as encryptConfigSecrets, i as isSecretField, m as migratePlaintextSecrets, r as rewriteConfigEncrypted, b as rotateConfigKeys } from '../secret-vault-DnqIFhPF.js';
|
|
2
|
+
export { A as AutoApprovePermissionPolicy, D as DefaultPermissionPolicy, P as PermissionPolicyOptions } from '../permission-policy-Dtht2k0e.js';
|
|
3
|
+
export { D as DANGEROUS_FOR_SUBAGENTS, T as ToolCapabilities, a as ToolCapability, g as getDangerousCapabilities, h as hasCapability, b as hasDangerousCapabilityForSubagents } from '../index-pDBSBE1r.js';
|
|
4
|
+
import '../permission-Dgs3v-Xq.js';
|
|
5
|
+
import '../context-DERiLofu.js';
|
|
6
6
|
import '../logger-B63L5bTg.js';
|
|
7
7
|
import '../secret-vault-BAKpgFw_.js';
|
|
8
8
|
import '../input-reader-E-ffP2ee.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as ContentBlock, S as SessionEvent, j as SessionMetadata, k as SessionStore } from './context-
|
|
1
|
+
import { i as ContentBlock, S as SessionEvent, j as SessionMetadata, k as SessionStore } from './context-DERiLofu.js';
|
|
2
2
|
|
|
3
3
|
type AttachmentKind = 'text' | 'image' | 'file';
|
|
4
4
|
interface AttachmentMeta {
|
|
@@ -137,13 +137,14 @@ interface DefaultSessionReaderOptions {
|
|
|
137
137
|
* L2-A: read-only view over a `SessionStore` with query, replay, search,
|
|
138
138
|
* and export helpers. Implemented on top of the public `SessionStore`
|
|
139
139
|
* surface so any concrete store can be inspected without re-implementation.
|
|
140
|
-
*
|
|
141
|
-
* The heavy operations re-parse the JSONL stream on every call — fine for
|
|
142
|
-
* /resume and one-off analytics. Wrap with a memoizing decorator if needed.
|
|
143
140
|
*/
|
|
144
141
|
declare class DefaultSessionReader implements SessionReader {
|
|
145
142
|
private readonly store;
|
|
143
|
+
private readonly eventCache;
|
|
144
|
+
private readonly eventCacheMtimes;
|
|
145
|
+
private static readonly EVENT_CACHE_MAX_ENTRIES;
|
|
146
146
|
constructor(opts: DefaultSessionReaderOptions);
|
|
147
|
+
private loadCachedSessionData;
|
|
147
148
|
query(q?: SessionQuery): Promise<SessionSummaryLite[]>;
|
|
148
149
|
replay(sessionId: string): AsyncIterable<SessionEvent>;
|
|
149
150
|
search(q: SessionSearchQuery, sessionId?: string | undefined, sessionQuery?: SessionQuery): Promise<SessionSearchHit[]>;
|
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 { i as AgentExtension, k as AfterRunHook } from '../index-
|
|
5
|
-
import { P as Provider, c as Request, d as Response, S as SessionEvent } from '../context-
|
|
6
|
-
export { D as DefaultSessionReader, f as DefaultSessionReaderOptions, S as SessionReader } from '../session-reader-
|
|
1
|
+
import { M as MemoryBackend, j as FileMemoryBackendOptions } from '../plan-templates-B7MxyY2o.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-B7MxyY2o.js';
|
|
3
|
+
import { M as MemoryScope, b as MemoryEntry, c as MemoryStore, E as EventBus } from '../brain-gfZX3the.js';
|
|
4
|
+
import { i as AgentExtension, k as AfterRunHook } from '../index-00KPKAlm.js';
|
|
5
|
+
import { P as Provider, c as Request, d as Response, S as SessionEvent } from '../context-DERiLofu.js';
|
|
6
|
+
export { D as DefaultSessionReader, f as DefaultSessionReaderOptions, S as SessionReader } from '../session-reader-CceH13Kq.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-xNSVxmpV.js';
|
|
11
11
|
import { W as WstackPaths } from '../wstack-paths-BqkDAkoh.js';
|
|
12
|
-
import {
|
|
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-
|
|
14
|
-
import '../permission-
|
|
12
|
+
import { Y as SyncCategory, l as SyncConfig } from '../config-BxcrDzri.js';
|
|
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-Dt54CTvq.js';
|
|
14
|
+
import '../permission-Dgs3v-Xq.js';
|
|
15
15
|
import '../secret-vault-BAKpgFw_.js';
|
|
16
16
|
import '../logger-B63L5bTg.js';
|
|
17
|
-
import '../pipeline-
|
|
17
|
+
import '../pipeline-B-dpCFYS.js';
|
|
18
18
|
import '../mailbox-types-Ct2hJq0P.js';
|
|
19
19
|
import '../observability-D-HZN_mF.js';
|
|
20
20
|
import '../task-graph-u1q9Jkyk.js';
|
|
@@ -81,6 +81,14 @@ declare class GraphMemoryBackend implements MemoryBackend {
|
|
|
81
81
|
private edges;
|
|
82
82
|
private loadedScope;
|
|
83
83
|
private loaded;
|
|
84
|
+
/**
|
|
85
|
+
* Inverted index for O(1) term → node lookup during search.
|
|
86
|
+
* Built incrementally on remember/forget, rebuilt on loadGraph if absent.
|
|
87
|
+
* Maps lowercase term (min 3 chars) → Set of node IDs containing that term.
|
|
88
|
+
*/
|
|
89
|
+
private invertedIndex;
|
|
90
|
+
/** Minimum term length to index — avoids noise from 1-2 char fragments. */
|
|
91
|
+
private static readonly MIN_TERM_LEN;
|
|
84
92
|
/**
|
|
85
93
|
* Promise that resolves when the current in-flight _saveGraph completes.
|
|
86
94
|
* Tests call flush() to await this before deleting the backend or its temp dir.
|
|
@@ -115,6 +123,30 @@ declare class GraphMemoryBackend implements MemoryBackend {
|
|
|
115
123
|
* Call this before deleting the backend or its temp directory.
|
|
116
124
|
*/
|
|
117
125
|
flush(): Promise<void>;
|
|
126
|
+
/**
|
|
127
|
+
* Build the inverted index from all currently loaded nodes.
|
|
128
|
+
* Called on loadGraph() to reconstruct the index after loading from disk.
|
|
129
|
+
*/
|
|
130
|
+
private buildInvertedIndex;
|
|
131
|
+
/**
|
|
132
|
+
* Index a node in the inverted index. Adds the node's ID to all term entries.
|
|
133
|
+
*/
|
|
134
|
+
private indexNode;
|
|
135
|
+
/**
|
|
136
|
+
* Remove a node's terms from the inverted index before deleting it.
|
|
137
|
+
* Used in forget() and when updating existing nodes.
|
|
138
|
+
*/
|
|
139
|
+
private removeNodeFromIndex;
|
|
140
|
+
/**
|
|
141
|
+
* Update an existing node's entries in the inverted index.
|
|
142
|
+
* Removes old terms and adds new ones.
|
|
143
|
+
*/
|
|
144
|
+
private updateNodeIndex;
|
|
145
|
+
/**
|
|
146
|
+
* Extract searchable terms from a memory entry.
|
|
147
|
+
* Returns lowercase words from text (min length) and full tag strings.
|
|
148
|
+
*/
|
|
149
|
+
private extractTerms;
|
|
118
150
|
}
|
|
119
151
|
|
|
120
152
|
interface ConsolidationOp {
|
|
@@ -324,7 +356,7 @@ declare class ReplayLogStore {
|
|
|
324
356
|
private readonly events;
|
|
325
357
|
private readonly traceId;
|
|
326
358
|
private readonly writeChains;
|
|
327
|
-
/** Per-session hash →
|
|
359
|
+
/** Per-session hash → on-disk location, with lazy entry hydration. */
|
|
328
360
|
private readonly cache;
|
|
329
361
|
/** Per-session entry count on disk, to detect when compaction is needed. */
|
|
330
362
|
private readonly diskCount;
|
|
@@ -360,9 +392,11 @@ declare class ReplayLogStore {
|
|
|
360
392
|
}>>;
|
|
361
393
|
private filePath;
|
|
362
394
|
private countEntries;
|
|
395
|
+
private parseReplayLine;
|
|
363
396
|
private readAll;
|
|
364
397
|
private writeAll;
|
|
365
398
|
private ensureCache;
|
|
399
|
+
private hydrateEntry;
|
|
366
400
|
private enqueue;
|
|
367
401
|
}
|
|
368
402
|
|