@wrongstack/core 0.272.2 → 0.273.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-DFQYEeXf.d.ts → agent-bridge-DpKIxHhE.d.ts} +1 -1
- package/dist/{agent-subagent-runner-BZa_IEcd.d.ts → agent-subagent-runner-Dx7fZ1bE.d.ts} +14 -7
- package/dist/{brain-etbcbRwV.d.ts → brain-BDcQaku-.d.ts} +112 -5
- package/dist/{compactor-72ug-ZRB.d.ts → compactor-BuSdj3fq.d.ts} +1 -1
- package/dist/{config-rRS8yorV.d.ts → config-CR2yoG8c.d.ts} +61 -4
- package/dist/{context-Dw55zZ_Q.d.ts → context-DulAr8Zo.d.ts} +24 -0
- package/dist/coordination/index.d.ts +23 -16
- package/dist/coordination/index.js +192 -38
- package/dist/coordination/index.js.map +1 -1
- package/dist/{default-config-B0cj-Hry.d.ts → default-config-BbX4ojZs.d.ts} +1 -0
- package/dist/defaults/index.d.ts +29 -28
- package/dist/defaults/index.js +3238 -234
- package/dist/defaults/index.js.map +1 -1
- package/dist/execution/index.d.ts +16 -16
- package/dist/execution/index.js +83 -3
- 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-DJ4EoRr0.d.ts → global-mailbox-CwcubDkA.d.ts} +1 -1
- package/dist/{goal-preamble-hM8BH7TK.d.ts → goal-preamble-Bu0a2uCG.d.ts} +10 -10
- package/dist/{goal-store-CWlbT0TO.d.ts → goal-store-CTmFuZ8J.d.ts} +1 -1
- package/dist/hq/index.d.ts +5 -5
- package/dist/hq/index.js +1 -0
- package/dist/hq/index.js.map +1 -1
- package/dist/{index-DWm_PE9L.d.ts → index-CTq5wU3m.d.ts} +14 -6
- package/dist/{index-2Lhk5v0o.d.ts → index-CxP-HBhX.d.ts} +8 -2
- package/dist/index.d.ts +230 -48
- package/dist/index.js +3731 -648
- package/dist/index.js.map +1 -1
- package/dist/infrastructure/index.d.ts +6 -6
- package/dist/kernel/index.d.ts +94 -14
- package/dist/kernel/index.js.map +1 -1
- package/dist/{mcp-servers-BpWHTKlE.d.ts → mcp-servers-BQaOE71z.d.ts} +3 -3
- package/dist/models/index.d.ts +5 -5
- package/dist/{models-registry-CXQFUn5t.d.ts → models-registry-BEcny4kP.d.ts} +1 -1
- package/dist/{multi-agent-coordinator-jyimfo7D.d.ts → multi-agent-coordinator-Bx8EFkv2.d.ts} +1 -1
- package/dist/{null-fleet-bus-DOGQcvrY.d.ts → null-fleet-bus-BC5ZXCQw.d.ts} +16 -6
- package/dist/observability/index.d.ts +2 -2
- package/dist/{parallel-eternal-engine-rItJBYp9.d.ts → parallel-eternal-engine-C345TI3n.d.ts} +10 -9
- package/dist/{path-resolver-DrpF5MGK.d.ts → path-resolver-C-W_wzkF.d.ts} +3 -3
- package/dist/{permission-CC7XFYWG.d.ts → permission-CsBGZkxp.d.ts} +1 -1
- package/dist/{permission-policy-cYR4RJmw.d.ts → permission-policy-g3Sg0GdZ.d.ts} +2 -2
- package/dist/{pipeline-Ckkn3AOA.d.ts → pipeline-xnw_24Z8.d.ts} +2 -2
- package/dist/{plan-templates-BvHw5Znw.d.ts → plan-templates-DGaiYEcS.d.ts} +32 -6
- package/dist/{provider-model-resolve-nZqnCeaR.d.ts → provider-model-resolve-Cz6OlIOp.d.ts} +3 -3
- package/dist/{provider-runner-zVOn1p67.d.ts → provider-runner-7J0HqF6B.d.ts} +3 -3
- package/dist/{retry-policy-BV7nzeAd.d.ts → retry-policy-kqXJOVkX.d.ts} +1 -1
- package/dist/sdd/index.d.ts +1114 -14
- package/dist/sdd/index.js +5516 -2949
- package/dist/sdd/index.js.map +1 -1
- package/dist/{secret-vault-eMBKfheR.d.ts → secret-vault-CMQUr-eB.d.ts} +1 -1
- package/dist/security/index.d.ts +5 -5
- package/dist/security/index.js +6 -0
- package/dist/security/index.js.map +1 -1
- package/dist/{selector-C4ORTOid.d.ts → selector-B4r34PWR.d.ts} +1 -1
- package/dist/{session-event-bridge-CeNpUL9w.d.ts → session-event-bridge-BD3LoyLC.d.ts} +1 -1
- package/dist/{session-reader-BepLSnGL.d.ts → session-reader-DjrKGD9c.d.ts} +1 -1
- package/dist/storage/index.d.ts +12 -12
- package/dist/storage/index.js +380 -13
- package/dist/storage/index.js.map +1 -1
- package/dist/tools/index.d.ts +2 -2
- package/dist/tools/index.js.map +1 -1
- package/dist/types/index.d.ts +20 -20
- package/dist/types/index.js +31 -0
- package/dist/types/index.js.map +1 -1
- package/dist/utils/index.d.ts +30 -4
- package/dist/utils/index.js +110 -1
- package/dist/utils/index.js.map +1 -1
- package/dist/{index-DqW4o62H.d.ts → worktree-manager-DHdrWQ_7.d.ts} +48 -90
- package/dist/{wstack-paths-hOpNLmvf.d.ts → wstack-paths-BqkDAkoh.d.ts} +2 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
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-
|
|
3
|
-
import '../context-
|
|
2
|
+
import { E as EventBus } from '../brain-BDcQaku-.js';
|
|
3
|
+
import '../context-DulAr8Zo.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* In-memory metrics sink. Suitable for embedded use, tests, and /metrics
|
package/dist/{parallel-eternal-engine-rItJBYp9.d.ts → parallel-eternal-engine-C345TI3n.d.ts}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { g as ProviderError, C as Context, T as Tool, r as ToolUseBlock, s as ToolResultBlock } from './context-
|
|
2
|
-
import { R as RetryPolicy, E as ErrorHandler, a as RecoveryDecision } from './retry-policy-
|
|
3
|
-
import { C as Compactor, a as CompactReport } from './compactor-
|
|
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-
|
|
1
|
+
import { g as ProviderError, C as Context, T as Tool, r as ToolUseBlock, s as ToolResultBlock } from './context-DulAr8Zo.js';
|
|
2
|
+
import { R as RetryPolicy, E as ErrorHandler, a as RecoveryDecision } from './retry-policy-kqXJOVkX.js';
|
|
3
|
+
import { C as Compactor, a as CompactReport } from './compactor-BuSdj3fq.js';
|
|
4
|
+
import { M as ModelsRegistry, C as Config } from './config-CR2yoG8c.js';
|
|
5
|
+
import { T as ToolExecutorOptions, a as ToolExecutorStrategy, b as ToolBatchResult } from './index-CTq5wU3m.js';
|
|
6
|
+
import { g as Agent, h as AgentFactory } from './agent-subagent-runner-Dx7fZ1bE.js';
|
|
7
|
+
import { B as BrainArbiter, E as EventBus } from './brain-BDcQaku-.js';
|
|
8
|
+
import { J as JournalEntry } from './goal-store-CTmFuZ8J.js';
|
|
9
|
+
import { D as DispatchClassifier, a as DefaultMultiAgentCoordinator } from './multi-agent-coordinator-Bx8EFkv2.js';
|
|
10
10
|
|
|
11
11
|
declare class DefaultRetryPolicy implements RetryPolicy {
|
|
12
12
|
shouldRetry(err: Error | ProviderError, attempt: number): boolean;
|
|
@@ -33,6 +33,7 @@ interface RecoveryStrategy {
|
|
|
33
33
|
declare function buildRecoveryStrategies(opts?: {
|
|
34
34
|
compactor?: Compactor | undefined;
|
|
35
35
|
modelsRegistry?: ModelsRegistry | undefined;
|
|
36
|
+
getConfig?: (() => Config) | undefined;
|
|
36
37
|
}): RecoveryStrategy[];
|
|
37
38
|
declare const DEFAULT_RECOVERY_STRATEGIES: RecoveryStrategy[];
|
|
38
39
|
declare class DefaultErrorHandler implements ErrorHandler {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { E as EventBus } from './brain-
|
|
2
|
-
import { M as ModelsRegistry, b as ResolvedModel } from './config-
|
|
3
|
-
import { e as TokenCounter, U as Usage, f as CacheStats } from './context-
|
|
1
|
+
import { E as EventBus } from './brain-BDcQaku-.js';
|
|
2
|
+
import { M as ModelsRegistry, b as ResolvedModel } from './config-CR2yoG8c.js';
|
|
3
|
+
import { e as TokenCounter, U as Usage, f as CacheStats } from './context-DulAr8Zo.js';
|
|
4
4
|
import { P as PathResolver } from './path-resolver-CPRj4bFY.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { T as Tool, C as Context } from './context-
|
|
1
|
+
import { T as Tool, C as Context } from './context-DulAr8Zo.js';
|
|
2
2
|
import { I as InputReader } from './input-reader-E-ffP2ee.js';
|
|
3
|
-
import { P as PermissionPolicy, a as PermissionDecision } from './permission-
|
|
3
|
+
import { P as PermissionPolicy, a as PermissionDecision } from './permission-CsBGZkxp.js';
|
|
4
4
|
|
|
5
5
|
interface PermissionPolicyOptions {
|
|
6
6
|
trustFile: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { T as Tool, q as TextBlock, i as ContentBlock } from './context-
|
|
1
|
+
import { T as Tool, q as TextBlock, i as ContentBlock } from './context-DulAr8Zo.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-CR2yoG8c.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-
|
|
2
|
-
import { S as SecretScrubber } from './permission-
|
|
3
|
-
import { k as SessionStore, j as SessionMetadata, b as SessionWriter, u as ResumedSession, v as SessionData,
|
|
4
|
-
import { A as AttachmentStore, a as AddAttachmentInput, b as AttachmentRef, c as Attachment } from './session-reader-
|
|
5
|
-
import { W as WstackPaths } from './wstack-paths-
|
|
6
|
-
import { j as ConfigStore,
|
|
1
|
+
import { E as EventBus, M as MemoryScope, b as MemoryEntry, c as MemoryStore, d as MemoryRelevanceContext, S as ScoredEntry } from './brain-BDcQaku-.js';
|
|
2
|
+
import { S as SecretScrubber } from './permission-CsBGZkxp.js';
|
|
3
|
+
import { k as SessionStore, j as SessionMetadata, b as SessionWriter, u as ResumedSession, v as SessionData, S as SessionEvent, w as SessionSummary, i as ContentBlock, x as TodoItem, y as ConversationState } from './context-DulAr8Zo.js';
|
|
4
|
+
import { A as AttachmentStore, a as AddAttachmentInput, b as AttachmentRef, c as Attachment } from './session-reader-DjrKGD9c.js';
|
|
5
|
+
import { W as WstackPaths } from './wstack-paths-BqkDAkoh.js';
|
|
6
|
+
import { j as ConfigStore, C as Config, k as ConfigLoader, l as SyncConfig } from './config-CR2yoG8c.js';
|
|
7
7
|
import { S as SecretVault } from './secret-vault-BAKpgFw_.js';
|
|
8
8
|
|
|
9
9
|
interface SessionStoreOptions {
|
|
@@ -60,6 +60,31 @@ declare class DefaultSessionStore implements SessionStore {
|
|
|
60
60
|
create(meta: Omit<SessionMetadata, 'startedAt'>): Promise<SessionWriter>;
|
|
61
61
|
resume(id: string): Promise<ResumedSession>;
|
|
62
62
|
load(id: string): Promise<SessionData>;
|
|
63
|
+
/**
|
|
64
|
+
* Streaming search over a session's JSONL. Walks the file once, parses
|
|
65
|
+
* each event lazily, and yields only the events that match `predicate`.
|
|
66
|
+
* Stops as soon as `opts.limit` matches are collected.
|
|
67
|
+
*
|
|
68
|
+
* Why this exists: `load()` parses the entire file into memory and
|
|
69
|
+
* rebuilds `messages`/`toolCallEnds` for every caller. `search()` only
|
|
70
|
+
* needs to know which events contain matching text — a per-line
|
|
71
|
+
* predicate is enough. The full parse work (and the `_loadCache` poll)
|
|
72
|
+
* is wasted in that case.
|
|
73
|
+
*
|
|
74
|
+
* Memory: O(hits) regardless of file size. Disk: one linear scan,
|
|
75
|
+
* terminated at `limit` if the caller asked for one.
|
|
76
|
+
*
|
|
77
|
+
* Errors: missing file yields []. Corrupt lines are skipped (same
|
|
78
|
+
* policy as `load()`). Aborting via `signal` rejects with `AbortError`.
|
|
79
|
+
*/
|
|
80
|
+
searchEvents(id: string, predicate: (event: SessionEvent, eventIndex: number, ts: string) => boolean, opts?: {
|
|
81
|
+
limit?: number | undefined;
|
|
82
|
+
signal?: AbortSignal | undefined;
|
|
83
|
+
}): Promise<Array<{
|
|
84
|
+
event: SessionEvent;
|
|
85
|
+
eventIndex: number;
|
|
86
|
+
ts: string;
|
|
87
|
+
}>>;
|
|
63
88
|
list(limit?: number): Promise<SessionSummary[]>;
|
|
64
89
|
private indexAppendCount;
|
|
65
90
|
private static readonly COMPACT_EVERY;
|
|
@@ -370,6 +395,7 @@ declare class DefaultConfigLoader implements ConfigLoader {
|
|
|
370
395
|
cliFlags?: Partial<Config> | undefined;
|
|
371
396
|
cwd?: string | undefined;
|
|
372
397
|
}): Promise<Config>;
|
|
398
|
+
private ensureGlobalDefaults;
|
|
373
399
|
/**
|
|
374
400
|
* Persist a sync config to ~/.wrongstack/sync.json, with the token encrypted
|
|
375
401
|
* by the vault (if provided). The file is isolated from the main config
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { M as ModeStore, a as ModeConfig, b as Mode } from './mode-CZlO9iU1.js';
|
|
2
|
-
import { P as Provider, M as Message } from './context-
|
|
3
|
-
import { M as MessageSelector, S as SelectorResult } from './selector-
|
|
4
|
-
import { e as ModelsDevModel, R as ResolvedProvider } from './config-
|
|
2
|
+
import { P as Provider, M as Message } from './context-DulAr8Zo.js';
|
|
3
|
+
import { M as MessageSelector, S as SelectorResult } from './selector-B4r34PWR.js';
|
|
4
|
+
import { e as ModelsDevModel, R as ResolvedProvider } from './config-CR2yoG8c.js';
|
|
5
5
|
|
|
6
6
|
declare class DefaultModeStore implements ModeStore {
|
|
7
7
|
private activeModeId;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { E as EventBus } from './brain-
|
|
1
|
+
import { E as EventBus } from './brain-BDcQaku-.js';
|
|
2
2
|
import { L as Logger } from './logger-B63L5bTg.js';
|
|
3
3
|
import { T as Tracer } from './observability-D-HZN_mF.js';
|
|
4
|
-
import { P as Provider, c as Request, C as Context, d as Response } from './context-
|
|
5
|
-
import { R as RetryPolicy } from './retry-policy-
|
|
4
|
+
import { P as Provider, c as Request, C as Context, d as Response } from './context-DulAr8Zo.js';
|
|
5
|
+
import { R as RetryPolicy } from './retry-policy-kqXJOVkX.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Options passed to a ProviderRunner when calling the provider.
|