@wrongstack/core 0.260.0 → 0.265.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-BbskZ7HH.d.ts → agent-bridge-DrkBxszZ.d.ts} +1 -1
- package/dist/{agent-subagent-runner-BNIGZx18.d.ts → agent-subagent-runner-DM2pP-B6.d.ts} +116 -12
- package/dist/{brain-C2yDd7Lw.d.ts → brain-BXd_61kQ.d.ts} +32 -3
- package/dist/{compactor-t0R_AIt_.d.ts → compactor-B8pOf45Y.d.ts} +1 -1
- package/dist/{config-FG6As4H5.d.ts → config-BMCj_XDs.d.ts} +86 -12
- package/dist/{context-JFOVvu6z.d.ts → context-MRk5PhNv.d.ts} +26 -1
- package/dist/coordination/index.d.ts +1737 -15
- package/dist/coordination/index.js +3152 -494
- package/dist/coordination/index.js.map +1 -1
- package/dist/{default-config-CXsDvOmP.d.ts → default-config-B0cj-Hry.d.ts} +11 -1
- package/dist/defaults/index.d.ts +28 -28
- package/dist/defaults/index.js +1804 -1363
- package/dist/defaults/index.js.map +1 -1
- package/dist/dispatcher-types.d-BBeXBQgS.d.ts +66 -0
- package/dist/execution/index.d.ts +16 -16
- package/dist/execution/index.js +933 -672
- package/dist/execution/index.js.map +1 -1
- package/dist/execution/prompt-enhancer.d.ts +1 -1
- package/dist/execution/prompt-enhancer.js +7 -1
- package/dist/execution/prompt-enhancer.js.map +1 -1
- package/dist/extension/index.d.ts +6 -6
- package/dist/extension/index.js.map +1 -1
- package/dist/{goal-preamble-B1IXJtLX.d.ts → goal-preamble-DvHDSKSe.d.ts} +26 -10
- package/dist/{goal-store-CPXz6Mml.d.ts → goal-store-DtLMySNb.d.ts} +1 -1
- package/dist/{index-CebbJB94.d.ts → index-B-ch8K9C.d.ts} +8 -8
- package/dist/{index-BPcg4N3M.d.ts → index-CEDeNodM.d.ts} +5 -5
- package/dist/index.d.ts +189 -104
- package/dist/index.js +24693 -21162
- package/dist/index.js.map +1 -1
- package/dist/infrastructure/index.d.ts +6 -6
- package/dist/infrastructure/index.js +12 -8
- package/dist/infrastructure/index.js.map +1 -1
- package/dist/kernel/index.d.ts +9 -9
- package/dist/kernel/index.js +7 -2
- package/dist/kernel/index.js.map +1 -1
- package/dist/{llm-selector-DXxI2tlu.d.ts → llm-selector-C0tfTCUe.d.ts} +14 -2
- package/dist/{mcp-servers-OwNHo43-.d.ts → mcp-servers-2x4w6Jn9.d.ts} +3 -3
- package/dist/models/index.d.ts +5 -5
- package/dist/models/index.js +80 -31
- package/dist/models/index.js.map +1 -1
- package/dist/{models-registry-Djlmq4uB.d.ts → models-registry-DmJlKuNp.d.ts} +1 -1
- package/dist/{multi-agent-coordinator-CEmrSCMJ.d.ts → multi-agent-coordinator-DyCkCZnU.d.ts} +2 -2
- package/dist/{null-fleet-bus-DT92xqgJ.d.ts → null-fleet-bus-CG9QY2aP.d.ts} +6 -6
- package/dist/observability/index.d.ts +2 -2
- package/dist/observability/index.js +8 -3
- package/dist/observability/index.js.map +1 -1
- package/dist/{parallel-eternal-engine-0SItuq5r.d.ts → parallel-eternal-engine-Jw9uhEoT.d.ts} +9 -9
- package/dist/{path-resolver-DKBh6Jlo.d.ts → path-resolver-Dy2ej-gE.d.ts} +3 -3
- package/dist/{permission-BJ7eO9Vl.d.ts → permission-B9SB45lp.d.ts} +1 -1
- package/dist/{permission-policy-DEXOfnpm.d.ts → permission-policy-CkjSXabK.d.ts} +2 -2
- package/dist/{pipeline-zflkI2dp.d.ts → pipeline-DPDxH_7m.d.ts} +59 -4
- package/dist/{plan-templates-BFXyRkEK.d.ts → plan-templates-CzD9GnAU.d.ts} +32 -8
- package/dist/{provider-runner-BC-uywtT.d.ts → provider-runner-DMa70ODu.d.ts} +3 -3
- package/dist/{retry-policy-Cavrzmtk.d.ts → retry-policy-CN0khdlj.d.ts} +1 -1
- package/dist/sdd/index.d.ts +8 -8
- package/dist/sdd/index.js +313 -122
- package/dist/sdd/index.js.map +1 -1
- package/dist/{secret-vault-CDvDYXWX.d.ts → secret-vault-B2yw84VT.d.ts} +43 -4
- package/dist/secret-vault-BAKpgFw_.d.ts +57 -0
- package/dist/security/index.d.ts +5 -5
- package/dist/security/index.js +411 -225
- package/dist/security/index.js.map +1 -1
- package/dist/{selector-B7AivHsu.d.ts → selector-CzHh_igB.d.ts} +1 -1
- package/dist/{session-event-bridge-BmIDxdJd.d.ts → session-event-bridge-BUI6Jf-4.d.ts} +8 -2
- package/dist/{session-reader-DtofsB-2.d.ts → session-reader-CMgdMSRP.d.ts} +1 -1
- package/dist/skills/index.js +67 -64
- package/dist/skills/index.js.map +1 -1
- package/dist/storage/index.d.ts +132 -16
- package/dist/storage/index.js +851 -432
- package/dist/storage/index.js.map +1 -1
- package/dist/tools/index.d.ts +57 -0
- package/dist/tools/index.js +411 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/types/index.d.ts +21 -21
- package/dist/types/index.js +928 -711
- package/dist/types/index.js.map +1 -1
- package/dist/utils/error.d.ts +7 -0
- package/dist/utils/error.js +8 -0
- package/dist/utils/error.js.map +1 -0
- package/dist/utils/index.d.ts +8 -68
- package/dist/utils/index.js +20 -10
- package/dist/utils/index.js.map +1 -1
- package/dist/{wstack-paths-CJjEwPXn.d.ts → wstack-paths-hOpNLmvf.d.ts} +2 -0
- package/package.json +5 -1
- package/skills/api-design/SKILL.md +1 -1
- package/skills/audit-log/SKILL.md +6 -6
- package/skills/bug-hunter/SKILL.md +5 -5
- package/skills/chimera/SKILL.md +4 -4
- package/skills/docker-deploy/SKILL.md +1 -1
- package/skills/git-flow/SKILL.md +3 -3
- package/skills/multi-agent/SKILL.md +3 -3
- package/skills/node-modern/SKILL.md +1 -0
- package/skills/observability/SKILL.md +2 -2
- package/skills/output-standards/SKILL.md +51 -28
- package/skills/refactor-planner/SKILL.md +3 -3
- package/skills/security-scanner/SKILL.md +4 -3
- package/skills/tech-stack/SKILL.md +1 -2
- package/dist/package-outdated-watcher-C70ag2G9.d.ts +0 -581
- package/dist/secret-vault-BJDY28ev.d.ts +0 -25
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import * as https from 'node:https';
|
|
2
|
+
import { Dispatcher } from 'undici';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* `dispatcher-types.d.ts` — Unify `https.Agent` and `undici.Dispatcher` types.
|
|
6
|
+
*
|
|
7
|
+
* Problem: `https.Agent` (Node.js built-in) and `undici.Dispatcher` implement the
|
|
8
|
+
* same interface at runtime — `fetch`'s `RequestInit.dispatcher` accepts anything
|
|
9
|
+
* with a `dispatch(req, opts)` method. However, TypeScript's type definitions
|
|
10
|
+
* treat them as unrelated types because they come from different `@types/*` packages
|
|
11
|
+
* (or undici@7 bundles its own Dispatcher type that conflicts with @types/node's
|
|
12
|
+
* copy of the same concept via undici-types).
|
|
13
|
+
*
|
|
14
|
+
* Solution: This module augments the global `RequestInit` type so that
|
|
15
|
+
* `https.Agent` is accepted as a valid `dispatcher` value without a cast.
|
|
16
|
+
*
|
|
17
|
+
* Usage:
|
|
18
|
+
* import '@wrongstack/core/utils/dispatcher-types';
|
|
19
|
+
* const agent = new https.Agent({ rejectUnauthorized: false });
|
|
20
|
+
* fetch(url, { dispatcher: agent }); // ✅ no cast needed
|
|
21
|
+
*
|
|
22
|
+
* Alternatively, use `as HttpsAgentAsDispatcher` to silence any remaining
|
|
23
|
+
* conflicts at the call site.
|
|
24
|
+
*
|
|
25
|
+
* Verified at runtime: `https.Agent` has a `dispatch(req, opts)` method and
|
|
26
|
+
* is callable by the built-in fetch implementation — this shim is a type-level
|
|
27
|
+
* correction only, not a runtime polyfill.
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Marker type: a value that fetch's `RequestInit.dispatcher` accepts at runtime.
|
|
34
|
+
* Both `https.Agent` and `undici.Dispatcher` satisfy this structural interface.
|
|
35
|
+
*/
|
|
36
|
+
type HttpDispatcher = Pick<Dispatcher, 'dispatch'>;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Augment `RequestInit` so that `https.Agent` is a valid dispatcher type.
|
|
40
|
+
* Without this, TypeScript rejects `https.Agent` for `dispatcher` because the
|
|
41
|
+
* two agent types are not structurally compatible in the installed @types set.
|
|
42
|
+
*/
|
|
43
|
+
declare global {
|
|
44
|
+
interface RequestInit {
|
|
45
|
+
/**
|
|
46
|
+
* Accepts `https.Agent` in addition to `undici.Dispatcher`.
|
|
47
|
+
* Runtime type-check is performed by Node.js / undici — this declaration
|
|
48
|
+
* only tells TypeScript the same thing.
|
|
49
|
+
*/
|
|
50
|
+
dispatcher?: HttpDispatcher | undefined;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Use this cast at call sites where `https.Agent` must be passed to a function
|
|
56
|
+
* typed for `undici.Dispatcher`. Documents the trust boundary: the cast is safe
|
|
57
|
+
* because both types share a `dispatch(req, opts)` method at runtime.
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* import type { HttpsAgentAsDispatcher } from '@wrongstack/core';
|
|
61
|
+
* const agent = new https.Agent({ rejectUnauthorized: false });
|
|
62
|
+
* fetch(url, { dispatcher: agent as HttpsAgentAsDispatcher });
|
|
63
|
+
*/
|
|
64
|
+
type HttpsAgentAsDispatcher = https.Agent;
|
|
65
|
+
|
|
66
|
+
export type { HttpDispatcher as H, HttpsAgentAsDispatcher as a };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
export { C as CompactorOptions, a as DefaultErrorHandler, b as DefaultRetryPolicy, E as EternalAutonomyEngine, c as EternalAutonomyOptions, d as EternalEngineState, H as HybridCompactor, I as IterationStage, P as ParallelEngineState, e as ParallelEternalEngine, f as ParallelEternalOptions, g as ParallelIterationStage, T as ToolExecutor } from '../parallel-eternal-engine-
|
|
2
|
-
export { A as AutoCompactionMiddleware, a as AutonomousRunner, b as AutonomousRunnerOptions, c as AutonomyPromptContributorOptions, C as CompactorStrategy, D as DefaultSkillLoader, d as DoneCheckResult, e as DoneConditionChecker, I as IntelligentCompactor, f as IntelligentCompactorOptions, S as SelectiveCompactor, g as SelectiveCompactorOptions, h as SkillLoaderOptions, i as StrategyCompactorOptions, j as buildGoalPreamble, k as createStrategyCompactor, m as makeAutonomyPromptContributor } from '../goal-preamble-
|
|
3
|
-
import { P as Provider } from '../context-
|
|
4
|
-
import {
|
|
5
|
-
import '../retry-policy-
|
|
6
|
-
import '../compactor-
|
|
7
|
-
import '../config-
|
|
8
|
-
import '../index-
|
|
1
|
+
export { C as CompactorOptions, a as DefaultErrorHandler, b as DefaultRetryPolicy, E as EternalAutonomyEngine, c as EternalAutonomyOptions, d as EternalEngineState, H as HybridCompactor, I as IterationStage, P as ParallelEngineState, e as ParallelEternalEngine, f as ParallelEternalOptions, g as ParallelIterationStage, T as ToolExecutor } from '../parallel-eternal-engine-Jw9uhEoT.js';
|
|
2
|
+
export { A as AutoCompactionMiddleware, a as AutonomousRunner, b as AutonomousRunnerOptions, c as AutonomyPromptContributorOptions, C as CompactorStrategy, D as DefaultSkillLoader, d as DoneCheckResult, e as DoneConditionChecker, I as IntelligentCompactor, f as IntelligentCompactorOptions, S as SelectiveCompactor, g as SelectiveCompactorOptions, h as SkillLoaderOptions, i as StrategyCompactorOptions, j as buildGoalPreamble, k as createStrategyCompactor, m as makeAutonomyPromptContributor } from '../goal-preamble-DvHDSKSe.js';
|
|
3
|
+
import { P as Provider } from '../context-MRk5PhNv.js';
|
|
4
|
+
import { e as BrainDecision, h as BrainDecisionRequest, B as BrainArbiter } from '../brain-BXd_61kQ.js';
|
|
5
|
+
import '../retry-policy-CN0khdlj.js';
|
|
6
|
+
import '../compactor-B8pOf45Y.js';
|
|
7
|
+
import '../config-BMCj_XDs.js';
|
|
8
|
+
import '../index-CEDeNodM.js';
|
|
9
9
|
import '../logger-B63L5bTg.js';
|
|
10
|
-
import '../pipeline-
|
|
10
|
+
import '../pipeline-DPDxH_7m.js';
|
|
11
11
|
import '../observability-D-HZN_mF.js';
|
|
12
|
-
import '../permission-
|
|
13
|
-
import '../agent-subagent-runner-
|
|
14
|
-
import '../goal-store-
|
|
15
|
-
import '../multi-agent-coordinator-
|
|
12
|
+
import '../permission-B9SB45lp.js';
|
|
13
|
+
import '../agent-subagent-runner-DM2pP-B6.js';
|
|
14
|
+
import '../goal-store-DtLMySNb.js';
|
|
15
|
+
import '../multi-agent-coordinator-DyCkCZnU.js';
|
|
16
16
|
import 'node:events';
|
|
17
17
|
import '../skill-DGIXCtdv.js';
|
|
18
|
-
import '../wstack-paths-
|
|
19
|
-
import '../selector-
|
|
20
|
-
import '../session-event-bridge-
|
|
18
|
+
import '../wstack-paths-hOpNLmvf.js';
|
|
19
|
+
import '../selector-CzHh_igB.js';
|
|
20
|
+
import '../session-event-bridge-BUI6Jf-4.js';
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* AutonomyBrain — a self-driving decision layer for autonomous workflows.
|