@wrongstack/core 0.313.1 → 0.316.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/chronicle/index.js +31 -31
- package/dist/chronicle/legacy-journal-import.d.ts +0 -6
- package/dist/chronicle/metrics-ingest.d.ts +14 -0
- package/dist/chronicle/metrics-schema.d.ts +10 -1
- package/dist/chronicle/metrics-store.d.ts +20 -2
- package/dist/chronicle/project-server.js +39 -31
- package/dist/chronicle/sink.d.ts +13 -0
- package/dist/chronicle/sqlite-journal.d.ts +20 -2
- package/dist/{chunk-WOEZV3Q4.js → chunk-25LSLC3G.js} +2 -1
- package/dist/{chunk-AI4LLQ2U.js → chunk-27QIURLN.js} +229 -12
- package/dist/{chunk-I45KAW2N.js → chunk-3AGWVSS7.js} +38 -450
- package/dist/chunk-3BDV7RL3.js +211 -0
- package/dist/{chunk-NFAYHPRH.js → chunk-3ECENVHL.js} +10 -8
- package/dist/{chunk-FW5LDDMJ.js → chunk-45WI72ZB.js} +1576 -1156
- package/dist/{chunk-AT4V4XGI.js → chunk-4BMVPOHO.js} +539 -313
- package/dist/{chunk-YBUJCZ57.js → chunk-4I7HGVVA.js} +17 -5
- package/dist/{chunk-JVGPR3TS.js → chunk-4LCZVJVF.js} +7 -55
- package/dist/{chunk-4ZHTKJHM.js → chunk-4SJNS7OB.js} +36 -2
- package/dist/{chunk-AD7ZFZCS.js → chunk-5BMIE7QG.js} +3 -3
- package/dist/{chunk-IQ35HMQL.js → chunk-5YPSXQXM.js} +71 -24
- package/dist/chunk-6FHWXLPT.js +10 -0
- package/dist/{chunk-FIV4IJL7.js → chunk-6H5GEOET.js} +163 -20
- package/dist/{chunk-VB3H5WWB.js → chunk-6NWEVFEL.js} +2 -2
- package/dist/{chunk-E6I5RXVK.js → chunk-AYW5YINX.js} +2 -2
- package/dist/{chunk-DEIQMBD2.js → chunk-B7F4WVP4.js} +2 -2
- package/dist/{chunk-XQ2XGIBF.js → chunk-BPBKKBUK.js} +6 -7
- package/dist/{chunk-K4YUNKU7.js → chunk-BYD345OX.js} +2 -2
- package/dist/{chunk-LZDDLNCZ.js → chunk-C27KDLOX.js} +4 -4
- package/dist/{chunk-6AKOTGLM.js → chunk-CU546ESW.js} +7 -7
- package/dist/{chunk-ZZ4V3WIZ.js → chunk-DLHHXUAM.js} +10 -1
- package/dist/{chunk-BAKVJLEV.js → chunk-DOTHQSJ2.js} +28 -16
- package/dist/{chunk-KBZGE6LN.js → chunk-DYLPMV4Q.js} +4 -3
- package/dist/{chunk-52RTVH4M.js → chunk-F3JWNST7.js} +2 -2
- package/dist/{chunk-WEBMSQP2.js → chunk-FC2ZGRF3.js} +21 -4
- package/dist/{chunk-FHAMQS7Q.js → chunk-FCBTO76Z.js} +76 -146
- package/dist/{chunk-4LJJYBAU.js → chunk-FHZVFYSL.js} +9 -1
- package/dist/{chunk-W4A6QA3D.js → chunk-FWNLEZYG.js} +4 -3
- package/dist/{chunk-OJZEX73F.js → chunk-GDQ7CZRQ.js} +5 -1
- package/dist/{chunk-QVOVMXJR.js → chunk-GJJGJB2R.js} +32 -9
- package/dist/{chunk-4XV6IR37.js → chunk-HI3JGZR2.js} +7 -6
- package/dist/{chunk-FSWCWSTS.js → chunk-HMLIGAU7.js} +26 -26
- package/dist/{chunk-PFXFQQRT.js → chunk-HXKZ7OBQ.js} +7 -43
- package/dist/{chunk-2FQL4PDC.js → chunk-I7DALG7J.js} +5 -5
- package/dist/{chunk-GM54GJBU.js → chunk-IRUTEHCE.js} +3 -3
- package/dist/{chunk-TYW2GI5I.js → chunk-J2WRWR37.js} +40 -13
- package/dist/{chunk-ZEHUCJHY.js → chunk-JFPJ6LLQ.js} +2 -2
- package/dist/chunk-JMULFFLN.js +9 -0
- package/dist/{chunk-RD6DEE36.js → chunk-JO4MGB6Z.js} +94 -8
- package/dist/{chunk-5DSMEVA4.js → chunk-K6BXGITA.js} +7 -7
- package/dist/{chunk-O74MJHXU.js → chunk-KZMSZV32.js} +2 -2
- package/dist/{chunk-GFJOMSHG.js → chunk-LA7CLDRW.js} +6 -2
- package/dist/{chunk-M2WF6AXG.js → chunk-LSMMOS2Z.js} +7 -3
- package/dist/{chunk-ASX6AW36.js → chunk-LXWCMQNJ.js} +3 -3
- package/dist/{chunk-WZO23AWO.js → chunk-M27LIEKV.js} +72 -22
- package/dist/{chunk-JTHKOYWU.js → chunk-MJPHJRAL.js} +15 -15
- package/dist/{chunk-G5AAKEEZ.js → chunk-MTL4O5YR.js} +5 -5
- package/dist/chunk-NHJ75HXY.js +1 -0
- package/dist/{chunk-ZYU2YOJ6.js → chunk-NIOAGFPB.js} +29 -15
- package/dist/{chunk-Y2GE5TSI.js → chunk-NS52ISWS.js} +2 -2
- package/dist/{chunk-UIWONWVG.js → chunk-NSOFPKGT.js} +541 -148
- package/dist/{chunk-RCQYT2I4.js → chunk-NVIZG63R.js} +2 -2
- package/dist/{chunk-EPC3GZD4.js → chunk-OOYZPOXM.js} +2 -2
- package/dist/{chunk-7ZHZE5EO.js → chunk-OSGLYW5J.js} +2 -2
- package/dist/{chunk-CE4ZOCOI.js → chunk-PFCMSSUF.js} +9 -9
- package/dist/{chunk-GFXZTHNI.js → chunk-PGRVXIMY.js} +5 -5
- package/dist/{chunk-JJPMWPB6.js → chunk-PISBFBJN.js} +6 -6
- package/dist/chunk-POOOIWE5.js +9 -0
- package/dist/{chunk-5RP3QTRL.js → chunk-PQNS3U7Z.js} +20 -3
- package/dist/{chunk-3E244UDA.js → chunk-QSTSJOCK.js} +52 -6
- package/dist/{chunk-YUPMXOGP.js → chunk-RFQMOKWK.js} +3 -3
- package/dist/chunk-RTOTNK3P.js +484 -0
- package/dist/{chunk-SN2DQRL6.js → chunk-RXKSDUAU.js} +7 -7
- package/dist/{chunk-T3KGZBU5.js → chunk-S45JPKQN.js} +189 -43
- package/dist/{chunk-YNCVSFGF.js → chunk-SAFHACFA.js} +4 -1
- package/dist/{chunk-KI4L2DUL.js → chunk-TCCHINEF.js} +114 -19
- package/dist/{chunk-AWNQ6ED6.js → chunk-THEGTRAG.js} +7 -2
- package/dist/{chunk-2KKODIQU.js → chunk-TR4LQE7L.js} +15 -15
- package/dist/{chunk-GPQ3NJPR.js → chunk-TWJMGXCI.js} +3 -3
- package/dist/{chunk-H72H4XDU.js → chunk-U45AXT5D.js} +9 -9
- package/dist/{chunk-62V2AFVG.js → chunk-U4FWBSO3.js} +160 -73
- package/dist/{chunk-A455ATZB.js → chunk-UBGDX6FI.js} +8 -1
- package/dist/chunk-UJILKYES.js +75 -0
- package/dist/{chunk-KSJ5UTP7.js → chunk-ULMAQV3T.js} +84 -4
- package/dist/{chunk-CB2HFKTP.js → chunk-VVBP6KGT.js} +1 -1
- package/dist/{chunk-RPOA7IAE.js → chunk-W5VITDM2.js} +43 -25
- package/dist/{chunk-QRTG4XTI.js → chunk-WAHQVNWT.js} +7 -1
- package/dist/{chunk-SQP64RCS.js → chunk-WGGYRBXH.js} +3019 -2976
- package/dist/{chunk-K3G6JBUC.js → chunk-WLYKU45P.js} +679 -141
- package/dist/chunk-WP7BVANJ.js +53 -0
- package/dist/{chunk-GAZEWQEZ.js → chunk-XF4VUMKW.js} +2 -2
- package/dist/{chunk-PAAWLLZX.js → chunk-Y5YXDM7D.js} +2 -2
- package/dist/{chunk-65RDIOR2.js → chunk-YOPAUVU4.js} +162 -44
- package/dist/{chunk-FFSX2QDQ.js → chunk-YPT4A46F.js} +3 -3
- package/dist/chunk-YWXT3JNM.js +425 -0
- package/dist/{chunk-EFEHDQGY.js → chunk-ZHZ2Y2DH.js} +64 -10
- package/dist/{chunk-CQQL4ZOQ.js → chunk-ZT7JNIGX.js} +4 -3
- package/dist/coordination/agent-monitor.d.ts +9 -1
- package/dist/coordination/agent-subagent-runner.d.ts +1 -1
- package/dist/coordination/agents/agent-prompts.d.ts +8 -0
- package/dist/coordination/agents/index.d.ts +33 -1
- package/dist/coordination/agents/index.js +52 -22
- package/dist/coordination/agents/phase3-wave1-platform.d.ts +1 -3
- package/dist/coordination/agents/phase3-wave2-meta.d.ts +1 -3
- package/dist/coordination/agents/phase8-wave3-products.d.ts +1 -3
- package/dist/coordination/agents/phase9-wave4-platform-meta.d.ts +1 -3
- package/dist/coordination/agents/project-agent-identity.d.ts +11 -11
- package/dist/coordination/agents/types.d.ts +13 -2
- package/dist/coordination/brain-monitor.d.ts +30 -7
- package/dist/coordination/collab-debug.d.ts +1 -1
- package/dist/coordination/collab-pause.d.ts +1 -1
- package/dist/coordination/delegate-tool.d.ts +7 -5
- package/dist/coordination/director-kanban-queue-helpers.d.ts +1 -0
- package/dist/coordination/director-options.d.ts +7 -0
- package/dist/coordination/director-spawn-model.d.ts +17 -0
- package/dist/coordination/director-tools.d.ts +2 -2
- package/dist/coordination/director.d.ts +12 -0
- package/dist/coordination/dispatcher.d.ts +8 -0
- package/dist/coordination/fleet-bus.d.ts +35 -4
- package/dist/coordination/fleet-supervisor.d.ts +10 -2
- package/dist/coordination/fleet.d.ts +16 -7
- package/dist/coordination/index.d.ts +4 -0
- package/dist/coordination/index.js +86 -49
- package/dist/coordination/kanban-dispatch-port.d.ts +2 -2
- package/dist/coordination/mailbox-http-router.d.ts +4 -3
- package/dist/coordination/mailbox-http-validation.d.ts +1 -1
- package/dist/coordination/mailbox-project-server.js +15 -15
- package/dist/coordination/mailbox-types.d.ts +24 -6
- package/dist/coordination/model-tier-leader.d.ts +122 -0
- package/dist/coordination/model-tier.d.ts +122 -0
- package/dist/coordination/multi-agent-coordinator.d.ts +24 -0
- package/dist/coordination/origin-session.d.ts +16 -0
- package/dist/coordination/provider-status-tracker.d.ts +37 -5
- package/dist/coordination/session-note-hub.d.ts +44 -0
- package/dist/coordination/session-note-tool.d.ts +10 -0
- package/dist/core/agent.d.ts +1 -1
- package/dist/core/context.d.ts +22 -3
- package/dist/core/index.d.ts +2 -0
- package/dist/core/index.js +130 -38
- package/dist/core/request-conversation-binding.d.ts +37 -0
- package/dist/core/session-notes.d.ts +25 -0
- package/dist/core/system-prompt-builder.d.ts +11 -2
- package/dist/core/system-prompt-variants.d.ts +78 -0
- package/dist/design/index.js +3 -3
- package/dist/execution/auto-compaction-middleware.d.ts +11 -0
- package/dist/execution/autonomy-brain.d.ts +2 -1
- package/dist/execution/autonomy-prompt-contributor.d.ts +7 -2
- package/dist/execution/compaction-core.d.ts +4 -4
- package/dist/execution/eternal-autonomy.d.ts +1 -1
- package/dist/execution/index.js +138 -129
- package/dist/execution/model-runtime.d.ts +0 -7
- package/dist/execution/parallel-eternal-engine.d.ts +7 -7
- package/dist/extension/index.js +3 -3
- package/dist/goal/index.js +6 -6
- package/dist/hooks/index.js +3 -3
- package/dist/hq/index.js +14 -12
- package/dist/hq/persistence/event-log.d.ts +0 -1
- package/dist/hq/persistence.d.ts +4 -4
- package/dist/hq/publisher.d.ts +2 -0
- package/dist/index.d.ts +14 -11
- package/dist/index.js +728 -635
- package/dist/infrastructure/index.d.ts +4 -4
- package/dist/infrastructure/index.js +281 -260
- package/dist/infrastructure/token-counter.d.ts +9 -0
- package/dist/kernel/events/agent-events.d.ts +77 -3
- package/dist/kernel/events/brain-events.d.ts +12 -0
- package/dist/kernel/events/provider-events.d.ts +7 -1
- package/dist/kernel/events/session-events.d.ts +14 -0
- package/dist/kernel/events/tool-events.d.ts +13 -0
- package/dist/kernel/index.js +4 -4
- package/dist/mailbox-attach.d.ts +1 -1
- package/dist/models/index.js +10 -9
- package/dist/observability/event-bridge.d.ts +25 -5
- package/dist/observability/index.d.ts +9 -8
- package/dist/observability/index.js +459 -351
- package/dist/observability/tool-usage-source.d.ts +65 -0
- package/dist/plugin/index.d.ts +5 -0
- package/dist/plugin/index.js +66 -50
- package/dist/plugins/auto-review-plugin.d.ts +3 -2
- package/dist/plugins/review-finding-commands.d.ts +0 -8
- package/dist/{review-finding-store-DKAV3AS6.js → plugins/review-finding-store.js} +7 -6
- package/dist/plugins/review-finding-types.js +19 -0
- package/dist/plugins/review-report-integration.js +21 -0
- package/dist/{review-report-store-OWY3EC3N.js → plugins/review-report-store.js} +7 -6
- package/dist/plugins/review-report-types.js +13 -0
- package/dist/prompts/index.js +5 -5
- package/dist/registry/index.js +3 -3
- package/dist/registry/tool-registry.d.ts +59 -9
- package/dist/{registry-R23UBE7H.js → registry-7N4O3E7W.js} +5 -5
- package/dist/security/capabilities.d.ts +6 -0
- package/dist/security/file-permissions.d.ts +1 -1
- package/dist/security/index.js +47 -33
- package/dist/security/permission-policy.d.ts +12 -1
- package/dist/security/secret-scrubber.d.ts +15 -0
- package/dist/session-catalog/index.d.ts +1 -0
- package/dist/session-catalog/index.js +19 -14
- package/dist/session-catalog/project-server.js +30 -13
- package/dist/session-catalog/protocol.d.ts +32 -1
- package/dist/session-catalog/registry.d.ts +17 -1
- package/dist/session-catalog/session-agents.d.ts +56 -0
- package/dist/session-catalog/store-rebuild.d.ts +14 -0
- package/dist/session-catalog/store-schema.d.ts +26 -0
- package/dist/session-catalog/store.d.ts +27 -1
- package/dist/session-note-attach.d.ts +9 -0
- package/dist/skills/index.js +5 -5
- package/dist/statusline/index.d.ts +43 -0
- package/dist/statusline/index.js +102 -0
- package/dist/storage/board-store-port.d.ts +2 -2
- package/dist/storage/config-loader/in-project-policy.d.ts +29 -0
- package/dist/storage/config-loader.d.ts +3 -2
- package/dist/storage/file-session-writer.d.ts +4 -2
- package/dist/storage/goal-coordination.d.ts +6 -1
- package/dist/storage/goal-kanban.d.ts +4 -1
- package/dist/storage/index.d.ts +12 -4
- package/dist/storage/index.js +76 -61
- package/dist/storage/input-history-store.d.ts +2 -4
- package/dist/storage/memory-curator.d.ts +133 -0
- package/dist/storage/session-agent-attribution.d.ts +39 -0
- package/dist/storage/session-doctor.d.ts +109 -0
- package/dist/storage/session-event-bridge.d.ts +5 -7
- package/dist/storage/session-outcome.d.ts +42 -0
- package/dist/storage/session-recovery.d.ts +55 -0
- package/dist/storage/session-store/load-session-data.d.ts +11 -0
- package/dist/storage/session-store/prune-helpers.d.ts +1 -1
- package/dist/storage/session-store/resume-session.d.ts +0 -2
- package/dist/storage/session-store/types.d.ts +8 -0
- package/dist/storage/session-store.d.ts +3 -3
- package/dist/storage/session-summary-tracker.d.ts +8 -1
- package/dist/storage/session-write-buffer.d.ts +18 -0
- package/dist/storage/session-writer-truncate.d.ts +2 -0
- package/dist/tasking/index.js +2 -2
- package/dist/tools/fallback-manage-tools.d.ts +6 -4
- package/dist/tools/index.js +21 -21
- package/dist/tools/model-tier-set-tool.d.ts +66 -0
- package/dist/types/agent-bridge.d.ts +2 -1
- package/dist/types/config/mcp-features.d.ts +7 -0
- package/dist/types/config/model-tiers.d.ts +148 -0
- package/dist/types/config/root.d.ts +9 -0
- package/dist/types/config/tools.d.ts +73 -0
- package/dist/types/config.d.ts +1 -0
- package/dist/types/context.d.ts +2 -0
- package/dist/types/default-config.d.ts +6 -0
- package/dist/types/errors.d.ts +2 -1
- package/dist/types/index.d.ts +11 -9
- package/dist/types/index.js +25 -15
- package/dist/types/multi-agent.d.ts +43 -0
- package/dist/types/plugin.d.ts +1 -1
- package/dist/types/provider.d.ts +15 -0
- package/dist/types/runtime-capability-manifest.d.ts +1 -1
- package/dist/types/secret-scrubber.d.ts +15 -0
- package/dist/types/session-markers.d.ts +37 -10
- package/dist/types/session-markers.js +1 -1
- package/dist/types/session-timeline.d.ts +197 -0
- package/dist/types/session-timeline.js +12 -0
- package/dist/types/session.d.ts +172 -11
- package/dist/types/system-prompt.d.ts +27 -0
- package/dist/utils/config-backup.d.ts +9 -1
- package/dist/utils/heap-watchdog.js +2 -2
- package/dist/utils/index.js +50 -48
- package/dist/utils/message-invariants.d.ts +4 -1
- package/dist/utils/regex-guard.d.ts +1 -1
- package/dist/utils/socket-path.d.ts +1 -1
- package/dist/utils/token-estimate.d.ts +6 -2
- package/dist/utils/wstack-paths.d.ts +2 -0
- package/dist/wiring/proxy-rewrite.d.ts +28 -0
- package/dist/wiring/proxy-rewrite.js +7 -1
- package/dist/worktree/index.js +2 -2
- package/instructions/agents/explore-companion.md +45 -18
- package/instructions/agents/memory-curator.md +34 -22
- package/instructions/coordination/director-preamble.md +12 -7
- package/instructions/coordination/subagent-baseline.md +26 -5
- package/instructions/leader-after-task.md +4 -1
- package/instructions/llm/chimera-review.md +30 -9
- package/instructions/llm/memory-curator.md +31 -0
- package/instructions/sections/tool/delegation-compact.md +2 -0
- package/instructions/sections/tool/delegation-full.md +5 -1
- package/instructions/sections/tool/mailbox-compact.md +5 -1
- package/instructions/sections/tool/mailbox-full.md +3 -0
- package/instructions/sections/tool/session-note-compact.md +3 -0
- package/instructions/sections/tool/session-note-full.md +15 -0
- package/instructions/system-lite.md +9 -4
- package/instructions/system-pro.md +66 -143
- package/instructions/system.md +73 -175
- package/package.json +32 -4
- package/dist/chunk-2BUUIMQB.js +0 -225
- package/dist/chunk-FAYRX2AD.js +0 -13
- package/dist/chunk-H5E77KUJ.js +0 -15
- package/dist/chunk-M7BS2K6U.js +0 -1
- package/dist/coordination/agents.d.ts +0 -8
- package/dist/coordination/transport.d.ts +0 -2
- package/dist/storage/session-writer/session-writer-summary-tracker.d.ts +0 -28
package/dist/execution/index.js
CHANGED
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
recordKitChoice,
|
|
20
20
|
resolveBundledDesignKitsDir,
|
|
21
21
|
setActiveKit
|
|
22
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-K6BXGITA.js";
|
|
23
23
|
import {
|
|
24
24
|
AutoCompactionMiddleware,
|
|
25
25
|
BRAIN_EVALUATION_CASE_VERSION,
|
|
@@ -53,10 +53,10 @@ import {
|
|
|
53
53
|
resolveReasoningForRequest,
|
|
54
54
|
runBrainEvaluation,
|
|
55
55
|
validateBrainEvaluationCase
|
|
56
|
-
} from "../chunk-
|
|
56
|
+
} from "../chunk-WGGYRBXH.js";
|
|
57
57
|
import {
|
|
58
58
|
coordinateGoalIteration
|
|
59
|
-
} from "../chunk-
|
|
59
|
+
} from "../chunk-DOTHQSJ2.js";
|
|
60
60
|
import {
|
|
61
61
|
appendJournal,
|
|
62
62
|
goalFilePath,
|
|
@@ -64,11 +64,11 @@ import {
|
|
|
64
64
|
parseProgressFromText,
|
|
65
65
|
recordProgress,
|
|
66
66
|
saveGoal
|
|
67
|
-
} from "../chunk-
|
|
67
|
+
} from "../chunk-C27KDLOX.js";
|
|
68
68
|
import {
|
|
69
69
|
evaluateToolKanbanBoundary
|
|
70
|
-
} from "../chunk-
|
|
71
|
-
import "../chunk-
|
|
70
|
+
} from "../chunk-OOYZPOXM.js";
|
|
71
|
+
import "../chunk-I7DALG7J.js";
|
|
72
72
|
import "../chunk-WBPVKEEE.js";
|
|
73
73
|
import {
|
|
74
74
|
runWithProcessTelemetry
|
|
@@ -104,116 +104,118 @@ import {
|
|
|
104
104
|
normalizeCouncilProfile,
|
|
105
105
|
resolveCouncilProfile,
|
|
106
106
|
resolveCouncilVotes
|
|
107
|
-
} from "../chunk-
|
|
107
|
+
} from "../chunk-PFCMSSUF.js";
|
|
108
108
|
import {
|
|
109
109
|
DefaultPromptLoader,
|
|
110
110
|
renderPrompt
|
|
111
|
-
} from "../chunk-
|
|
111
|
+
} from "../chunk-XF4VUMKW.js";
|
|
112
112
|
import "../chunk-JVKB2TBL.js";
|
|
113
|
-
import "../chunk-
|
|
114
|
-
import {
|
|
115
|
-
DEFAULT_REFINER_RETRY_FEEDBACK,
|
|
116
|
-
buildRefinerContextSections,
|
|
117
|
-
enhanceUserPrompt,
|
|
118
|
-
gatedEnhancerReasoning,
|
|
119
|
-
isValidEnglishRefinement,
|
|
120
|
-
normalizedEqual,
|
|
121
|
-
parseBilingualEnhancement,
|
|
122
|
-
recentTextTurns,
|
|
123
|
-
shouldEnhance
|
|
124
|
-
} from "../chunk-5XDUGTKN.js";
|
|
113
|
+
import "../chunk-PGRVXIMY.js";
|
|
125
114
|
import {
|
|
126
115
|
DefaultMultiAgentCoordinator,
|
|
127
116
|
dispatchAgent,
|
|
128
117
|
makeAgentSubagentRunner,
|
|
129
118
|
withDisabledToolFiltering
|
|
130
|
-
} from "../chunk-
|
|
131
|
-
import "../chunk-
|
|
132
|
-
import "../chunk-SQJVFEBV.js";
|
|
133
|
-
import "../chunk-H72H4XDU.js";
|
|
134
|
-
import "../chunk-4ZHTKJHM.js";
|
|
135
|
-
import "../chunk-PAAWLLZX.js";
|
|
136
|
-
import {
|
|
137
|
-
runWithNetworkTelemetry
|
|
138
|
-
} from "../chunk-HA4ZYA6T.js";
|
|
139
|
-
import {
|
|
140
|
-
getDangerousCapabilities,
|
|
141
|
-
hasDangerousCapabilityForSubagents
|
|
142
|
-
} from "../chunk-A455ATZB.js";
|
|
143
|
-
import "../chunk-WQQON3SV.js";
|
|
144
|
-
import "../chunk-2YU4WVBW.js";
|
|
145
|
-
import "../chunk-H5E77KUJ.js";
|
|
146
|
-
import "../chunk-3E244UDA.js";
|
|
147
|
-
import "../chunk-RJIZEJ42.js";
|
|
148
|
-
import {
|
|
149
|
-
MALFORMED_ARG_MARKERS
|
|
150
|
-
} from "../chunk-OJZEX73F.js";
|
|
151
|
-
import "../chunk-IYFBFX34.js";
|
|
152
|
-
import "../chunk-57GEWK5X.js";
|
|
153
|
-
import "../chunk-2FK4WTFF.js";
|
|
154
|
-
import "../chunk-ZZ4V3WIZ.js";
|
|
155
|
-
import {
|
|
156
|
-
GOVERNED_TOOL_EXECUTOR_META_KEY
|
|
157
|
-
} from "../chunk-XBDP4QPW.js";
|
|
158
|
-
import "../chunk-KDQJCT2J.js";
|
|
159
|
-
import "../chunk-G5S3S5ZN.js";
|
|
160
|
-
import {
|
|
161
|
-
ProviderError
|
|
162
|
-
} from "../chunk-NFAYHPRH.js";
|
|
163
|
-
import "../chunk-KSJ5UTP7.js";
|
|
119
|
+
} from "../chunk-S45JPKQN.js";
|
|
120
|
+
import "../chunk-FCBTO76Z.js";
|
|
164
121
|
import {
|
|
165
122
|
assertNever,
|
|
166
123
|
compileUserRegex,
|
|
167
124
|
resolveToolResultRenderMode,
|
|
168
125
|
sleep
|
|
169
|
-
} from "../chunk-
|
|
126
|
+
} from "../chunk-J2WRWR37.js";
|
|
170
127
|
import "../chunk-LHOA5DWA.js";
|
|
171
|
-
import "../chunk-
|
|
128
|
+
import "../chunk-LA7CLDRW.js";
|
|
172
129
|
import {
|
|
173
130
|
subjectForToolInput
|
|
174
|
-
} from "../chunk-
|
|
131
|
+
} from "../chunk-WAHQVNWT.js";
|
|
175
132
|
import "../chunk-EODDVJBM.js";
|
|
176
|
-
import "../chunk-
|
|
177
|
-
import "../chunk-
|
|
133
|
+
import "../chunk-ZT7JNIGX.js";
|
|
134
|
+
import "../chunk-W5VITDM2.js";
|
|
178
135
|
import {
|
|
179
136
|
coerceAgainstSchema,
|
|
180
137
|
validateAgainstSchema
|
|
181
|
-
} from "../chunk-
|
|
182
|
-
import "../chunk-
|
|
183
|
-
import "../chunk-FNXVT7HF.js";
|
|
138
|
+
} from "../chunk-YPT4A46F.js";
|
|
139
|
+
import "../chunk-B7F4WVP4.js";
|
|
184
140
|
import "../chunk-WQTOVMGV.js";
|
|
185
|
-
import "../chunk-
|
|
186
|
-
import "../chunk-
|
|
141
|
+
import "../chunk-FNXVT7HF.js";
|
|
142
|
+
import "../chunk-5BMIE7QG.js";
|
|
143
|
+
import "../chunk-DYLPMV4Q.js";
|
|
144
|
+
import {
|
|
145
|
+
DEFAULT_REFINER_RETRY_FEEDBACK,
|
|
146
|
+
buildRefinerContextSections,
|
|
147
|
+
enhanceUserPrompt,
|
|
148
|
+
gatedEnhancerReasoning,
|
|
149
|
+
isValidEnglishRefinement,
|
|
150
|
+
normalizedEqual,
|
|
151
|
+
parseBilingualEnhancement,
|
|
152
|
+
recentTextTurns,
|
|
153
|
+
shouldEnhance
|
|
154
|
+
} from "../chunk-5XDUGTKN.js";
|
|
187
155
|
import {
|
|
188
156
|
readBundledInstructionText,
|
|
189
157
|
renderInstructionTemplate
|
|
190
158
|
} from "../chunk-5S437PRC.js";
|
|
159
|
+
import "../chunk-SQJVFEBV.js";
|
|
160
|
+
import "../chunk-U45AXT5D.js";
|
|
161
|
+
import "../chunk-4SJNS7OB.js";
|
|
162
|
+
import "../chunk-Y5YXDM7D.js";
|
|
163
|
+
import {
|
|
164
|
+
runWithNetworkTelemetry
|
|
165
|
+
} from "../chunk-HA4ZYA6T.js";
|
|
166
|
+
import "../chunk-WQQON3SV.js";
|
|
167
|
+
import "../chunk-2YU4WVBW.js";
|
|
168
|
+
import "../chunk-QSTSJOCK.js";
|
|
169
|
+
import "../chunk-6FHWXLPT.js";
|
|
170
|
+
import {
|
|
171
|
+
getDangerousCapabilities,
|
|
172
|
+
hasDangerousCapabilityForSubagents
|
|
173
|
+
} from "../chunk-UBGDX6FI.js";
|
|
191
174
|
import {
|
|
192
175
|
createToolOutputSerializer
|
|
193
|
-
} from "../chunk-
|
|
176
|
+
} from "../chunk-M27LIEKV.js";
|
|
194
177
|
import "../chunk-XEBHSJLT.js";
|
|
195
|
-
import "../chunk-
|
|
196
|
-
import "../chunk-
|
|
197
|
-
import "../chunk-4XV6IR37.js";
|
|
178
|
+
import "../chunk-6NWEVFEL.js";
|
|
179
|
+
import "../chunk-LSMMOS2Z.js";
|
|
198
180
|
import "../chunk-4VWO3ZXL.js";
|
|
199
181
|
import {
|
|
200
182
|
createContextEvidenceState,
|
|
201
183
|
resolveEventSessionId
|
|
202
|
-
} from "../chunk-
|
|
203
|
-
import "../chunk-
|
|
204
|
-
import "../chunk-
|
|
184
|
+
} from "../chunk-ZHZ2Y2DH.js";
|
|
185
|
+
import "../chunk-HI3JGZR2.js";
|
|
186
|
+
import "../chunk-HMLIGAU7.js";
|
|
205
187
|
import "../chunk-TRT2HRWZ.js";
|
|
206
188
|
import "../chunk-LX5QWLBL.js";
|
|
207
|
-
import "../chunk-
|
|
208
|
-
import "../chunk-
|
|
189
|
+
import "../chunk-POOOIWE5.js";
|
|
190
|
+
import "../chunk-OSGLYW5J.js";
|
|
191
|
+
import "../chunk-FC2ZGRF3.js";
|
|
192
|
+
import "../chunk-THEGTRAG.js";
|
|
209
193
|
import "../chunk-SVT4RNTR.js";
|
|
210
|
-
import "../chunk-WEBMSQP2.js";
|
|
211
194
|
import {
|
|
212
195
|
wstackGlobalRoot
|
|
213
|
-
} from "../chunk-
|
|
214
|
-
import "../chunk-
|
|
196
|
+
} from "../chunk-SAFHACFA.js";
|
|
197
|
+
import "../chunk-RJIZEJ42.js";
|
|
198
|
+
import {
|
|
199
|
+
MALFORMED_ARG_MARKERS
|
|
200
|
+
} from "../chunk-GDQ7CZRQ.js";
|
|
201
|
+
import "../chunk-IYFBFX34.js";
|
|
202
|
+
import "../chunk-57GEWK5X.js";
|
|
203
|
+
import "../chunk-2FK4WTFF.js";
|
|
204
|
+
import "../chunk-DLHHXUAM.js";
|
|
205
|
+
import {
|
|
206
|
+
GOVERNED_TOOL_EXECUTOR_META_KEY
|
|
207
|
+
} from "../chunk-XBDP4QPW.js";
|
|
208
|
+
import "../chunk-KDQJCT2J.js";
|
|
209
|
+
import "../chunk-G5S3S5ZN.js";
|
|
210
|
+
import {
|
|
211
|
+
ProviderError
|
|
212
|
+
} from "../chunk-3ECENVHL.js";
|
|
213
|
+
import "../chunk-VVBP6KGT.js";
|
|
215
214
|
import "../chunk-KJ2ZTQSL.js";
|
|
216
215
|
import "../chunk-B4AMLZPB.js";
|
|
216
|
+
import {
|
|
217
|
+
expectDefined
|
|
218
|
+
} from "../chunk-PFZO3C6H.js";
|
|
217
219
|
import {
|
|
218
220
|
isTextBlock
|
|
219
221
|
} from "../chunk-O37BQ65S.js";
|
|
@@ -224,13 +226,12 @@ import {
|
|
|
224
226
|
WrongStackError,
|
|
225
227
|
isWrongStackError,
|
|
226
228
|
toWrongStackError
|
|
227
|
-
} from "../chunk-
|
|
229
|
+
} from "../chunk-25LSLC3G.js";
|
|
228
230
|
import {
|
|
229
231
|
toErrorMessage
|
|
230
232
|
} from "../chunk-TBRL2RCC.js";
|
|
231
|
-
import
|
|
232
|
-
|
|
233
|
-
} from "../chunk-PFZO3C6H.js";
|
|
233
|
+
import "../chunk-3BDV7RL3.js";
|
|
234
|
+
import "../chunk-ULMAQV3T.js";
|
|
234
235
|
|
|
235
236
|
// src/execution/autonomous-runner.ts
|
|
236
237
|
var DoneConditionChecker = class {
|
|
@@ -422,7 +423,7 @@ var AutonomousRunner = class {
|
|
|
422
423
|
function makeAutonomyPromptContributor(opts) {
|
|
423
424
|
return async (ctx) => {
|
|
424
425
|
if (ctx.subagent) return [];
|
|
425
|
-
if (!opts.enabled()) return [];
|
|
426
|
+
if (!opts.enabled(ctx)) return [];
|
|
426
427
|
let goal;
|
|
427
428
|
try {
|
|
428
429
|
goal = await loadGoal(opts.goalPath);
|
|
@@ -514,10 +515,11 @@ var EternalAutonomyEngine = class {
|
|
|
514
515
|
this.stopRequested = true;
|
|
515
516
|
this.currentCtrl?.abort();
|
|
516
517
|
void this.persistEngineState("stopped").catch((err) => {
|
|
517
|
-
this.logError(
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
518
|
+
this.logError("Engine persist state failed", {
|
|
519
|
+
event: "engine.persist_state_failed",
|
|
520
|
+
message: toErrorMessage(err),
|
|
521
|
+
context: { expectedState: "stopped" }
|
|
522
|
+
});
|
|
521
523
|
});
|
|
522
524
|
this.state = "stopped";
|
|
523
525
|
}
|
|
@@ -546,7 +548,10 @@ var EternalAutonomyEngine = class {
|
|
|
546
548
|
iterationOk = await this.runOneIteration();
|
|
547
549
|
} catch (err) {
|
|
548
550
|
this.consecutiveFailures++;
|
|
549
|
-
this.opts.onError?.(
|
|
551
|
+
this.opts.onError?.(
|
|
552
|
+
err instanceof Error ? err : new Error(String(err)),
|
|
553
|
+
this.consecutiveFailures
|
|
554
|
+
);
|
|
550
555
|
await this.appendFailure("engine error", toErrorMessage(err));
|
|
551
556
|
}
|
|
552
557
|
if (iterationOk) {
|
|
@@ -599,10 +604,7 @@ var EternalAutonomyEngine = class {
|
|
|
599
604
|
emit({ phase: "execute", task: action.task });
|
|
600
605
|
const ctrl = new AbortController();
|
|
601
606
|
this.currentCtrl = ctrl;
|
|
602
|
-
const timer = setTimeout(
|
|
603
|
-
() => ctrl.abort(),
|
|
604
|
-
this.opts.iterationTimeoutMs ?? 5 * 6e4
|
|
605
|
-
);
|
|
607
|
+
const timer = setTimeout(() => ctrl.abort(), this.opts.iterationTimeoutMs ?? 5 * 6e4);
|
|
606
608
|
let status = "success";
|
|
607
609
|
let note;
|
|
608
610
|
let finalText = "";
|
|
@@ -680,10 +682,11 @@ var EternalAutonomyEngine = class {
|
|
|
680
682
|
const reloaded = await this.loadGoal();
|
|
681
683
|
iterationIndex = reloaded?.iterations ?? 0;
|
|
682
684
|
} catch (err) {
|
|
683
|
-
this.logError(
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
685
|
+
this.logError("Goal reload failed", {
|
|
686
|
+
event: "autonomy.goal_reload_failed",
|
|
687
|
+
message: toErrorMessage(err),
|
|
688
|
+
context: { goalPath: this.goalPath }
|
|
689
|
+
});
|
|
687
690
|
}
|
|
688
691
|
this.opts.onIteration?.({
|
|
689
692
|
at: (this.opts.now?.() ?? /* @__PURE__ */ new Date()).toISOString(),
|
|
@@ -724,7 +727,7 @@ var EternalAutonomyEngine = class {
|
|
|
724
727
|
goalPath: this.goalPath,
|
|
725
728
|
finalText,
|
|
726
729
|
brain: this.opts.brain,
|
|
727
|
-
sessionId: this.opts.agent.ctx.
|
|
730
|
+
sessionId: this.opts.agent.ctx.eventSessionId(),
|
|
728
731
|
events: this.opts.events,
|
|
729
732
|
now: this.opts.now
|
|
730
733
|
});
|
|
@@ -922,10 +925,10 @@ ${lastFew}` : "No prior iterations yet.",
|
|
|
922
925
|
const ctrl = new AbortController();
|
|
923
926
|
const timer = setTimeout(() => ctrl.abort(), 6e4);
|
|
924
927
|
try {
|
|
925
|
-
const result = await this.opts.agent.run(
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
);
|
|
928
|
+
const result = await this.opts.agent.run([{ type: "text", text: directive }], {
|
|
929
|
+
signal: ctrl.signal,
|
|
930
|
+
maxIterations: 1
|
|
931
|
+
});
|
|
929
932
|
if (result.status !== "done") return null;
|
|
930
933
|
const text = (result.finalText ?? "").trim();
|
|
931
934
|
if (!text) return null;
|
|
@@ -938,15 +941,18 @@ ${lastFew}` : "No prior iterations yet.",
|
|
|
938
941
|
clearTimeout(timer);
|
|
939
942
|
}
|
|
940
943
|
} catch (err) {
|
|
941
|
-
this.logError(
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
944
|
+
this.logError("Brainstorm failed", {
|
|
945
|
+
event: "autonomy.brainstorm_failed",
|
|
946
|
+
message: toErrorMessage(err),
|
|
947
|
+
context: { goal: goal.goal.slice(0, 100) }
|
|
948
|
+
});
|
|
945
949
|
return null;
|
|
946
950
|
}
|
|
947
951
|
}
|
|
948
952
|
buildDirective(goal, source, task) {
|
|
949
|
-
const recentJournal = goal.journal.slice(-5).map(
|
|
953
|
+
const recentJournal = goal.journal.slice(-5).map(
|
|
954
|
+
(e) => ` #${e.iteration} [${e.status}] ${e.task}${e.note ? ` \u2014 ${e.note.slice(0, 80)}` : ""}`
|
|
955
|
+
).join("\n");
|
|
950
956
|
return [
|
|
951
957
|
"\u2550\u2550\u2550 ETERNAL AUTONOMY \u2014 iteration directive \u2550\u2550\u2550",
|
|
952
958
|
"",
|
|
@@ -1106,9 +1112,7 @@ ${recentJournal}` : "No prior iterations.",
|
|
|
1106
1112
|
if (!this.opts.brain) return true;
|
|
1107
1113
|
const deliverablesStatus = goal.deliverables?.length ? `
|
|
1108
1114
|
Deliverables: ${goal.deliverables.length} total, progress ${goal.progress ?? "unknown"}%` : "";
|
|
1109
|
-
const recentJournal = goal.journal.slice(-5).map(
|
|
1110
|
-
(e) => ` #${e.iteration} [${e.status}] ${e.task}`
|
|
1111
|
-
).join("\n");
|
|
1115
|
+
const recentJournal = goal.journal.slice(-5).map((e) => ` #${e.iteration} [${e.status}] ${e.task}`).join("\n");
|
|
1112
1116
|
try {
|
|
1113
1117
|
const decision = await this.opts.brain.decide({
|
|
1114
1118
|
id: `goal-done-${goal.iterations}`,
|
|
@@ -1264,10 +1268,11 @@ var ParallelEternalEngine = class {
|
|
|
1264
1268
|
stop() {
|
|
1265
1269
|
this.stopRequested = true;
|
|
1266
1270
|
void this.persistState("stopped").catch((err) => {
|
|
1267
|
-
this.logError(
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
+
this.logError("Engine persist state failed", {
|
|
1272
|
+
event: "engine.persist_state_failed",
|
|
1273
|
+
message: toErrorMessage(err),
|
|
1274
|
+
context: { expectedState: "stopped" }
|
|
1275
|
+
});
|
|
1271
1276
|
});
|
|
1272
1277
|
this.state = "stopped";
|
|
1273
1278
|
}
|
|
@@ -1284,7 +1289,9 @@ var ParallelEternalEngine = class {
|
|
|
1284
1289
|
maxConcurrent: this.slots,
|
|
1285
1290
|
doneCondition: { type: "all_tasks_done" }
|
|
1286
1291
|
};
|
|
1287
|
-
this.coordinator = new DefaultMultiAgentCoordinator(config
|
|
1292
|
+
this.coordinator = new DefaultMultiAgentCoordinator(config, {
|
|
1293
|
+
sessionId: () => this.opts.agent.ctx.eventSessionId()
|
|
1294
|
+
});
|
|
1288
1295
|
const filteredFactory = withDisabledToolFiltering(this.agentFactory);
|
|
1289
1296
|
const runner = makeAgentSubagentRunner({ factory: filteredFactory });
|
|
1290
1297
|
this.coordinator.setRunner?.(runner);
|
|
@@ -1298,10 +1305,7 @@ var ParallelEternalEngine = class {
|
|
|
1298
1305
|
err instanceof Error ? err : new Error(String(err)),
|
|
1299
1306
|
this.consecutiveFailures
|
|
1300
1307
|
);
|
|
1301
|
-
await this.appendFailure(
|
|
1302
|
-
"engine error",
|
|
1303
|
-
toErrorMessage(err)
|
|
1304
|
-
);
|
|
1308
|
+
await this.appendFailure("engine error", toErrorMessage(err));
|
|
1305
1309
|
}
|
|
1306
1310
|
if (this.stopRequested) break;
|
|
1307
1311
|
await sleep(2e3);
|
|
@@ -1338,7 +1342,9 @@ var ParallelEternalEngine = class {
|
|
|
1338
1342
|
maxConcurrent: this.slots,
|
|
1339
1343
|
doneCondition: { type: "all_tasks_done" }
|
|
1340
1344
|
};
|
|
1341
|
-
this.coordinator = new DefaultMultiAgentCoordinator(config
|
|
1345
|
+
this.coordinator = new DefaultMultiAgentCoordinator(config, {
|
|
1346
|
+
sessionId: () => this.opts.agent.ctx.eventSessionId()
|
|
1347
|
+
});
|
|
1342
1348
|
const filteredFactory = withDisabledToolFiltering(this.agentFactory);
|
|
1343
1349
|
const runner = makeAgentSubagentRunner({ factory: filteredFactory });
|
|
1344
1350
|
this.coordinator.setRunner?.(runner);
|
|
@@ -1465,10 +1471,11 @@ ${personaLine}Task: ${task}
|
|
|
1465
1471
|
taskIds.push(taskId);
|
|
1466
1472
|
await coordinator.assign(spec);
|
|
1467
1473
|
} catch (err) {
|
|
1468
|
-
this.logError(
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1474
|
+
this.logError("Parallel spawn failed", {
|
|
1475
|
+
event: "parallel_engine.spawn_failed",
|
|
1476
|
+
message: toErrorMessage(err),
|
|
1477
|
+
context: { slot: i, task, subagentId }
|
|
1478
|
+
});
|
|
1472
1479
|
}
|
|
1473
1480
|
})()
|
|
1474
1481
|
);
|
|
@@ -1490,10 +1497,11 @@ ${personaLine}Task: ${task}
|
|
|
1490
1497
|
timeoutMs: Math.max(this.timeoutMs * 2, 72e5)
|
|
1491
1498
|
});
|
|
1492
1499
|
} catch (err) {
|
|
1493
|
-
this.logError(
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1500
|
+
this.logError("Brainstorm results failed", {
|
|
1501
|
+
event: "parallel_engine.brainstorm_results_failed",
|
|
1502
|
+
message: toErrorMessage(err),
|
|
1503
|
+
context: { slotCount, taskIds }
|
|
1504
|
+
});
|
|
1497
1505
|
results = coordinator.results().slice(-taskIds.length);
|
|
1498
1506
|
}
|
|
1499
1507
|
await Promise.allSettled(subagentIds.map((id) => coordinator.remove(id)));
|
|
@@ -1528,10 +1536,11 @@ ${personaLine}Task: ${task}
|
|
|
1528
1536
|
}
|
|
1529
1537
|
}
|
|
1530
1538
|
} catch (err) {
|
|
1531
|
-
this.logError(
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1539
|
+
this.logError("Git status failed", {
|
|
1540
|
+
event: "parallel_engine.git_status_failed",
|
|
1541
|
+
message: toErrorMessage(err),
|
|
1542
|
+
context: { projectRoot: this.opts.projectRoot }
|
|
1543
|
+
});
|
|
1535
1544
|
}
|
|
1536
1545
|
}
|
|
1537
1546
|
if (tasks.length < this.slots) {
|
|
@@ -64,12 +64,5 @@ export interface ModelRuntimeMiddlewareOptions {
|
|
|
64
64
|
/** Optional sink for suppressed-setting warnings (e.g. emit to event bus). */
|
|
65
65
|
onWarning?: ((message: string) => void) | undefined;
|
|
66
66
|
}
|
|
67
|
-
/**
|
|
68
|
-
* Build a `request`-pipeline middleware that applies runtime settings. The
|
|
69
|
-
* returned function mutates the outgoing request by overlaying resolved
|
|
70
|
-
* `reasoning` / `cache` fields and generic parameters. Existing fields on
|
|
71
|
-
* the request are preserved only when the resolver produces nothing for
|
|
72
|
-
* that field.
|
|
73
|
-
*/
|
|
74
67
|
export declare function applyModelRuntime(req: Request, opts: ModelRuntimeMiddlewareOptions): Request;
|
|
75
68
|
//# sourceMappingURL=model-runtime.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { Agent } from '../core/agent.js';
|
|
2
1
|
import type { AgentFactory } from '../coordination/agent-subagent-runner.js';
|
|
3
2
|
import type { DispatchClassifier } from '../coordination/dispatcher.js';
|
|
3
|
+
import { DefaultMultiAgentCoordinator } from '../coordination/multi-agent-coordinator.js';
|
|
4
|
+
import type { Agent } from '../core/agent.js';
|
|
4
5
|
import type { EventBus } from '../kernel/events.js';
|
|
5
|
-
import type { Logger } from '../types/logger.js';
|
|
6
6
|
import type { JournalEntry } from '../storage/goal-store.js';
|
|
7
7
|
import type { Compactor } from '../types/compactor.js';
|
|
8
|
-
import {
|
|
8
|
+
import type { Logger } from '../types/logger.js';
|
|
9
9
|
export type ParallelEngineState = 'idle' | 'running' | 'stopped';
|
|
10
10
|
export type ParallelIterationStage = {
|
|
11
11
|
phase: 'idle';
|
|
@@ -50,12 +50,12 @@ export interface ParallelEternalOptions {
|
|
|
50
50
|
parallelSlots?: number | undefined;
|
|
51
51
|
/** Per-subagent default timeout in ms. Default: 300_000 (5 min). */
|
|
52
52
|
iterationTimeoutMs?: number | undefined;
|
|
53
|
-
onIteration?: ((
|
|
53
|
+
onIteration?: ((entry: JournalEntry) => void) | undefined;
|
|
54
54
|
onError?: (err: Error | undefined, iteration: number) => void;
|
|
55
55
|
/** Per-tick phase notifications for live UI/status updates. */
|
|
56
|
-
onStage?: ((
|
|
57
|
-
gitStatusReader?: ((
|
|
58
|
-
now?: ((
|
|
56
|
+
onStage?: ((stage: ParallelIterationStage) => void) | undefined;
|
|
57
|
+
gitStatusReader?: (() => Promise<string>) | undefined;
|
|
58
|
+
now?: (() => Date) | undefined;
|
|
59
59
|
compactor?: Compactor | undefined;
|
|
60
60
|
compactEveryNIterations?: number | undefined;
|
|
61
61
|
aggressiveCompactRatio?: number | undefined;
|
package/dist/extension/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "../chunk-XQ2ECNK3.js";
|
|
2
2
|
import {
|
|
3
3
|
ExtensionRegistry
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-WOEZV3Q4.js";
|
|
6
|
-
import "../chunk-TBRL2RCC.js";
|
|
4
|
+
} from "../chunk-MTL4O5YR.js";
|
|
7
5
|
import "../chunk-PFZO3C6H.js";
|
|
6
|
+
import "../chunk-25LSLC3G.js";
|
|
7
|
+
import "../chunk-TBRL2RCC.js";
|
|
8
8
|
export {
|
|
9
9
|
ExtensionRegistry
|
|
10
10
|
};
|
package/dist/goal/index.js
CHANGED
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
PhaseStore,
|
|
10
10
|
createGoalRunnerFromTaskGraph,
|
|
11
11
|
extractJSONArray
|
|
12
|
-
} from "../chunk-
|
|
13
|
-
import "../chunk-
|
|
12
|
+
} from "../chunk-BPBKKBUK.js";
|
|
13
|
+
import "../chunk-BYD345OX.js";
|
|
14
14
|
import {
|
|
15
15
|
MAX_JOURNAL_ENTRIES,
|
|
16
16
|
MAX_PROGRESS_HISTORY,
|
|
@@ -24,13 +24,13 @@ import {
|
|
|
24
24
|
saveGoal,
|
|
25
25
|
setProgress,
|
|
26
26
|
summarizeUsage
|
|
27
|
-
} from "../chunk-
|
|
27
|
+
} from "../chunk-C27KDLOX.js";
|
|
28
28
|
import "../chunk-WBPVKEEE.js";
|
|
29
29
|
import "../chunk-5S437PRC.js";
|
|
30
30
|
import "../chunk-4VWO3ZXL.js";
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import "../chunk-
|
|
33
|
-
import "../chunk-
|
|
31
|
+
import "../chunk-OSGLYW5J.js";
|
|
32
|
+
import "../chunk-SAFHACFA.js";
|
|
33
|
+
import "../chunk-25LSLC3G.js";
|
|
34
34
|
import "../chunk-TBRL2RCC.js";
|
|
35
35
|
export {
|
|
36
36
|
CheckpointManager,
|
package/dist/hooks/index.js
CHANGED
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
runShellHook,
|
|
9
9
|
runShellHookDetailed,
|
|
10
10
|
shellHooksEqual
|
|
11
|
-
} from "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
11
|
+
} from "../chunk-TWJMGXCI.js";
|
|
12
|
+
import "../chunk-LA7CLDRW.js";
|
|
13
|
+
import "../chunk-6NWEVFEL.js";
|
|
14
14
|
import "../chunk-TBRL2RCC.js";
|
|
15
15
|
export {
|
|
16
16
|
HookRegistry,
|
package/dist/hq/index.js
CHANGED
|
@@ -28,7 +28,8 @@ import {
|
|
|
28
28
|
startWorktreeTelemetryBridge,
|
|
29
29
|
toAlertMessage,
|
|
30
30
|
validateHqCommand
|
|
31
|
-
} from "../chunk-
|
|
31
|
+
} from "../chunk-TR4LQE7L.js";
|
|
32
|
+
import "../chunk-5BMIE7QG.js";
|
|
32
33
|
import {
|
|
33
34
|
HQ_AUTH_CONTENT_HASH_REDACTED,
|
|
34
35
|
HQ_AUTH_FILE_VERSION,
|
|
@@ -65,6 +66,7 @@ import {
|
|
|
65
66
|
redactHqEvent,
|
|
66
67
|
redactHqEventPayload,
|
|
67
68
|
redactHqValue,
|
|
69
|
+
resetHqPublisherWarningStateForTests,
|
|
68
70
|
resolveHqConfig,
|
|
69
71
|
resolveHqConfigFromEnv,
|
|
70
72
|
resolveHqDataDir,
|
|
@@ -77,7 +79,7 @@ import {
|
|
|
77
79
|
watchHqAuthFile,
|
|
78
80
|
writeHqAuthFile,
|
|
79
81
|
writeHqRuntimeFile
|
|
80
|
-
} from "../chunk-
|
|
82
|
+
} from "../chunk-NIOAGFPB.js";
|
|
81
83
|
import {
|
|
82
84
|
DEFAULT_HQ_REDACTION_POLICY,
|
|
83
85
|
HQ_BROWSER_PEER_RESUME_CLIENT_ID,
|
|
@@ -99,19 +101,18 @@ import {
|
|
|
99
101
|
parseHqEventPayload,
|
|
100
102
|
parseHqFrame
|
|
101
103
|
} from "../chunk-Z2IJUO45.js";
|
|
102
|
-
import "../chunk-
|
|
103
|
-
import "../chunk-
|
|
104
|
-
import "../chunk-
|
|
105
|
-
import "../chunk-
|
|
106
|
-
import "../chunk-KSJ5UTP7.js";
|
|
107
|
-
import "../chunk-AD7ZFZCS.js";
|
|
108
|
-
import "../chunk-4XV6IR37.js";
|
|
104
|
+
import "../chunk-FWNLEZYG.js";
|
|
105
|
+
import "../chunk-QSTSJOCK.js";
|
|
106
|
+
import "../chunk-6FHWXLPT.js";
|
|
107
|
+
import "../chunk-HI3JGZR2.js";
|
|
109
108
|
import "../chunk-TRT2HRWZ.js";
|
|
110
|
-
import "../chunk-
|
|
111
|
-
import "../chunk-
|
|
109
|
+
import "../chunk-OSGLYW5J.js";
|
|
110
|
+
import "../chunk-SAFHACFA.js";
|
|
111
|
+
import "../chunk-3ECENVHL.js";
|
|
112
112
|
import "../chunk-B4AMLZPB.js";
|
|
113
|
-
import "../chunk-
|
|
113
|
+
import "../chunk-25LSLC3G.js";
|
|
114
114
|
import "../chunk-TBRL2RCC.js";
|
|
115
|
+
import "../chunk-ULMAQV3T.js";
|
|
115
116
|
export {
|
|
116
117
|
DEFAULT_HQ_REDACTION_POLICY,
|
|
117
118
|
HQ_AUTH_CONTENT_HASH_REDACTED,
|
|
@@ -188,6 +189,7 @@ export {
|
|
|
188
189
|
redactHqEvent,
|
|
189
190
|
redactHqEventPayload,
|
|
190
191
|
redactHqValue,
|
|
192
|
+
resetHqPublisherWarningStateForTests,
|
|
191
193
|
resolveHqConfig,
|
|
192
194
|
resolveHqConfigFromEnv,
|
|
193
195
|
resolveHqDataDir,
|
|
@@ -86,5 +86,4 @@ export declare class HqEventLog {
|
|
|
86
86
|
/** Initialize the line count cache from disk (call once at boot). */
|
|
87
87
|
hydrate(): Promise<void>;
|
|
88
88
|
}
|
|
89
|
-
export declare function readRecentEvents(filePath: string, limit: number, typeFilter?: string): Promise<HqEventEnvelope[]>;
|
|
90
89
|
//# sourceMappingURL=event-log.d.ts.map
|
package/dist/hq/persistence.d.ts
CHANGED
|
@@ -33,10 +33,10 @@ import { HqSimpleLog } from './persistence/simple-log.js';
|
|
|
33
33
|
import { HqSnapshotStore } from './persistence/snapshot-store.js';
|
|
34
34
|
import { HqTimeseriesStore } from './persistence/timeseries-store.js';
|
|
35
35
|
export { HqKanbanStore } from './kanban-store.js';
|
|
36
|
-
export { HqEventLog, HQ_EVENT_LOG_PRESETS, hqEventLogPresetFields
|
|
37
|
-
export { HqSimpleLog
|
|
38
|
-
export { HqSnapshotStore
|
|
39
|
-
export { type HqTimeseriesBreakdownEntry, type HqTimeseriesSample, HqTimeseriesStore,
|
|
36
|
+
export { HqEventLog, HQ_EVENT_LOG_PRESETS, hqEventLogPresetFields } from './persistence/event-log.js';
|
|
37
|
+
export { HqSimpleLog } from './persistence/simple-log.js';
|
|
38
|
+
export { HqSnapshotStore } from './persistence/snapshot-store.js';
|
|
39
|
+
export { type HqTimeseriesBreakdownEntry, type HqTimeseriesSample, HqTimeseriesStore, } from './persistence/timeseries-store.js';
|
|
40
40
|
export interface HqPersistence {
|
|
41
41
|
eventLog: HqEventLog;
|
|
42
42
|
snapshotStore: HqSnapshotStore;
|
package/dist/hq/publisher.d.ts
CHANGED
|
@@ -106,6 +106,8 @@ export interface HqPublishEventOptions {
|
|
|
106
106
|
*/
|
|
107
107
|
maxSummaryLength?: number;
|
|
108
108
|
}
|
|
109
|
+
/** Test helper to reset the module-level process warning state. */
|
|
110
|
+
export declare function resetHqPublisherWarningStateForTests(): void;
|
|
109
111
|
export declare class HqPublisher {
|
|
110
112
|
private readonly options;
|
|
111
113
|
private readonly socketFactory;
|