@wrongstack/core 0.313.1 → 0.316.2
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 +33 -5
- 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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildChildEnv
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6NWEVFEL.js";
|
|
4
4
|
import {
|
|
5
5
|
toErrorMessage
|
|
6
6
|
} from "./chunk-TBRL2RCC.js";
|
|
@@ -754,4 +754,4 @@ export {
|
|
|
754
754
|
assertSafePath,
|
|
755
755
|
WorktreeManager
|
|
756
756
|
};
|
|
757
|
-
//# sourceMappingURL=chunk-
|
|
757
|
+
//# sourceMappingURL=chunk-NVIZG63R.js.map
|
|
@@ -4,7 +4,7 @@ var notWired = () => {
|
|
|
4
4
|
"KanbanGovernancePort is not wired \u2014 register the implementation at the CLI composition root (see setKanbanGovernance)."
|
|
5
5
|
);
|
|
6
6
|
};
|
|
7
|
-
var port
|
|
7
|
+
var port;
|
|
8
8
|
function setKanbanGovernance(impl) {
|
|
9
9
|
port = impl;
|
|
10
10
|
}
|
|
@@ -305,4 +305,4 @@ export {
|
|
|
305
305
|
kanbanGovernance,
|
|
306
306
|
evaluateToolKanbanBoundary
|
|
307
307
|
};
|
|
308
|
-
//# sourceMappingURL=chunk-
|
|
308
|
+
//# sourceMappingURL=chunk-OOYZPOXM.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FsError
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-25LSLC3G.js";
|
|
4
4
|
|
|
5
5
|
// src/utils/atomic-write.ts
|
|
6
6
|
import {
|
|
@@ -25,4 +25,4 @@ export {
|
|
|
25
25
|
ensureDir,
|
|
26
26
|
withFileLock
|
|
27
27
|
};
|
|
28
|
-
//# sourceMappingURL=chunk-
|
|
28
|
+
//# sourceMappingURL=chunk-OSGLYW5J.js.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
evaluateModelCalendar
|
|
3
|
-
} from "./chunk-WQQON3SV.js";
|
|
4
|
-
import {
|
|
5
|
-
ProviderError,
|
|
6
|
-
isFallbackWorthy
|
|
7
|
-
} from "./chunk-NFAYHPRH.js";
|
|
8
1
|
import {
|
|
9
2
|
readBundledInstructionText,
|
|
10
3
|
renderInstructionTemplate
|
|
11
4
|
} from "./chunk-5S437PRC.js";
|
|
5
|
+
import {
|
|
6
|
+
evaluateModelCalendar
|
|
7
|
+
} from "./chunk-WQQON3SV.js";
|
|
12
8
|
import {
|
|
13
9
|
estimateRequestTokens
|
|
14
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-HMLIGAU7.js";
|
|
11
|
+
import {
|
|
12
|
+
ProviderError,
|
|
13
|
+
isFallbackWorthy
|
|
14
|
+
} from "./chunk-3ECENVHL.js";
|
|
15
15
|
import {
|
|
16
16
|
isTextBlock
|
|
17
17
|
} from "./chunk-O37BQ65S.js";
|
|
@@ -1637,4 +1637,4 @@ export {
|
|
|
1637
1637
|
CouncilOrchestrator,
|
|
1638
1638
|
OneShotOrchestrator
|
|
1639
1639
|
};
|
|
1640
|
-
//# sourceMappingURL=chunk-
|
|
1640
|
+
//# sourceMappingURL=chunk-PFCMSSUF.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
slugify
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-J2WRWR37.js";
|
|
4
4
|
import {
|
|
5
5
|
ulid
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HI3JGZR2.js";
|
|
7
7
|
import {
|
|
8
8
|
atomicWrite,
|
|
9
9
|
ensureDir
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-OSGLYW5J.js";
|
|
11
11
|
|
|
12
12
|
// src/storage/prompt-store.ts
|
|
13
13
|
import { createHash } from "node:crypto";
|
|
@@ -91,7 +91,7 @@ var DefaultPromptStore = class {
|
|
|
91
91
|
} catch {
|
|
92
92
|
}
|
|
93
93
|
return entries.sort(
|
|
94
|
-
(a, b) =>
|
|
94
|
+
(a, b) => (Date.parse(b.updatedAt) || 0) - (Date.parse(a.updatedAt) || 0)
|
|
95
95
|
);
|
|
96
96
|
}
|
|
97
97
|
async get(id) {
|
|
@@ -155,4 +155,4 @@ export {
|
|
|
155
155
|
migratePromptEntry,
|
|
156
156
|
DefaultPromptStore
|
|
157
157
|
};
|
|
158
|
-
//# sourceMappingURL=chunk-
|
|
158
|
+
//# sourceMappingURL=chunk-PGRVXIMY.js.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
atomicWrite,
|
|
3
|
+
ensureDir
|
|
4
|
+
} from "./chunk-OSGLYW5J.js";
|
|
1
5
|
import {
|
|
2
6
|
diffRegistry,
|
|
3
7
|
validateRegistryManifest
|
|
4
8
|
} from "./chunk-IYFBFX34.js";
|
|
5
|
-
import {
|
|
6
|
-
atomicWrite,
|
|
7
|
-
ensureDir
|
|
8
|
-
} from "./chunk-7ZHZE5EO.js";
|
|
9
9
|
import {
|
|
10
10
|
FetchError,
|
|
11
11
|
ParseError
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-25LSLC3G.js";
|
|
13
13
|
|
|
14
14
|
// src/prompts/prompt-installer.ts
|
|
15
15
|
var defaultFetcher = async (url) => {
|
|
@@ -106,4 +106,4 @@ export {
|
|
|
106
106
|
PromptInstaller,
|
|
107
107
|
PromptManifestStore
|
|
108
108
|
};
|
|
109
|
-
//# sourceMappingURL=chunk-
|
|
109
|
+
//# sourceMappingURL=chunk-PISBFBJN.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// src/utils/socket-path.ts
|
|
2
|
+
import { assertUnixSocketPathWithinLimit, checkUnixSocketPath, unixSocketPathLimit } from "@wrongstack/persistence";
|
|
3
|
+
|
|
4
|
+
export {
|
|
5
|
+
assertUnixSocketPathWithinLimit,
|
|
6
|
+
checkUnixSocketPath,
|
|
7
|
+
unixSocketPathLimit
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=chunk-POOOIWE5.js.map
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
readClients,
|
|
28
28
|
verifyMailboxCredential,
|
|
29
29
|
withoutAggregateCompletion
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-IRUTEHCE.js";
|
|
31
31
|
import {
|
|
32
32
|
acceptMailboxMessageForSession,
|
|
33
33
|
isMailboxLeader,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
normalizeRecipient,
|
|
37
37
|
sessionRecipient,
|
|
38
38
|
validateSendType
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-FWNLEZYG.js";
|
|
40
40
|
|
|
41
41
|
// src/coordination/mailbox-project-server-protocol.ts
|
|
42
42
|
var MAILBOX_PROJECT_SERVER_PROTOCOL_VERSION = 4;
|
|
@@ -1058,6 +1058,23 @@ var SqliteMailbox = class {
|
|
|
1058
1058
|
if (input.iterations !== void 0) agent.iterations = input.iterations;
|
|
1059
1059
|
if (input.toolCalls !== void 0) agent.toolCalls = input.toolCalls;
|
|
1060
1060
|
this.persistAgent(agent);
|
|
1061
|
+
} else if (input.sessionId !== void 0 && input.name !== void 0) {
|
|
1062
|
+
const nowIso = new Date(nowMs).toISOString();
|
|
1063
|
+
this.persistAgent({
|
|
1064
|
+
agentId: input.agentId,
|
|
1065
|
+
sessionId: input.sessionId,
|
|
1066
|
+
name: input.name,
|
|
1067
|
+
...input.role !== void 0 ? { role: input.role } : {},
|
|
1068
|
+
status: input.status ?? "idle",
|
|
1069
|
+
...input.currentTool !== void 0 ? { currentTool: input.currentTool } : {},
|
|
1070
|
+
...input.currentTask !== void 0 ? { currentTask: input.currentTask } : {},
|
|
1071
|
+
iterations: input.iterations ?? 0,
|
|
1072
|
+
toolCalls: input.toolCalls ?? 0,
|
|
1073
|
+
registeredAt: nowIso,
|
|
1074
|
+
lastSeenAt: nowIso,
|
|
1075
|
+
pid: input.pid ?? process.pid,
|
|
1076
|
+
...input.source !== void 0 ? { source: input.source } : {}
|
|
1077
|
+
});
|
|
1061
1078
|
}
|
|
1062
1079
|
this.events?.emitCustom("mailbox.agent_heartbeat", {
|
|
1063
1080
|
agentId: input.agentId,
|
|
@@ -1220,4 +1237,4 @@ export {
|
|
|
1220
1237
|
SQLITE_MAILBOX_FILE,
|
|
1221
1238
|
SqliteMailbox
|
|
1222
1239
|
};
|
|
1223
|
-
//# sourceMappingURL=chunk-
|
|
1240
|
+
//# sourceMappingURL=chunk-PQNS3U7Z.js.map
|
|
@@ -252,7 +252,7 @@ function extendChunkBoundaryPastPem(text, chunkStart, proposedEnd) {
|
|
|
252
252
|
if (lastBegin === -1) return proposedEnd;
|
|
253
253
|
const fromBegin = text.slice(chunkStart + lastBegin);
|
|
254
254
|
const marker = PEM_PRIVATE_KEY_BEGIN_RE.exec(fromBegin);
|
|
255
|
-
if (
|
|
255
|
+
if (marker?.index !== 0) return proposedEnd;
|
|
256
256
|
const bodyStart = marker[0].length;
|
|
257
257
|
const cap = Math.min(text.length, chunkStart + lastBegin + MAX_PEM_BLOCK_BYTES);
|
|
258
258
|
const closeIdx = fromBegin.indexOf(PEM_END_MARKER, bodyStart);
|
|
@@ -271,11 +271,12 @@ var PATTERN_ANCHORS = [
|
|
|
271
271
|
)
|
|
272
272
|
];
|
|
273
273
|
var ALL_ANCHORS = PATTERN_ANCHORS;
|
|
274
|
+
function escapeLiteral(text) {
|
|
275
|
+
return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
276
|
+
}
|
|
277
|
+
var ANCHOR_PRESCAN = new RegExp(ALL_ANCHORS.map(escapeLiteral).join("|"));
|
|
274
278
|
function hasCredentialAnchors(text) {
|
|
275
|
-
|
|
276
|
-
if (text.includes(anchor)) return true;
|
|
277
|
-
}
|
|
278
|
-
return false;
|
|
279
|
+
return ANCHOR_PRESCAN.test(text);
|
|
279
280
|
}
|
|
280
281
|
var DefaultSecretScrubber = class {
|
|
281
282
|
scrub(text) {
|
|
@@ -348,9 +349,54 @@ var DefaultSecretScrubber = class {
|
|
|
348
349
|
};
|
|
349
350
|
return visit(obj);
|
|
350
351
|
}
|
|
352
|
+
/**
|
|
353
|
+
* Copy-on-write {@link scrubObject}: clean subtrees come back by reference.
|
|
354
|
+
*
|
|
355
|
+
* `scrubObject` rebuilds the entire graph unconditionally — a new object for
|
|
356
|
+
* every node, a new array for every array — whether or not anything was
|
|
357
|
+
* redacted. On the read path that is almost all waste: measured over a real
|
|
358
|
+
* 133 MB journal, 488k nodes and 309k strings were rebuilt so that FOUR
|
|
359
|
+
* strings could be redacted, costing ~480 ms of allocation and the GC
|
|
360
|
+
* pressure that comes with it. Rebuilding only the spine above an actual
|
|
361
|
+
* redaction gives the same output for a fraction of the garbage.
|
|
362
|
+
*
|
|
363
|
+
* The sharing is why this is a separate method rather than a change to
|
|
364
|
+
* `scrubObject`: see the contract note on `SecretScrubber.scrubObjectShared`.
|
|
365
|
+
*/
|
|
366
|
+
scrubObjectShared(obj) {
|
|
367
|
+
const seen = /* @__PURE__ */ new WeakSet();
|
|
368
|
+
const visit = (v) => {
|
|
369
|
+
if (typeof v === "string") return this.scrub(v);
|
|
370
|
+
if (v === null || typeof v !== "object") return v;
|
|
371
|
+
if (seen.has(v)) return v;
|
|
372
|
+
seen.add(v);
|
|
373
|
+
if (Array.isArray(v)) {
|
|
374
|
+
let out2;
|
|
375
|
+
for (let i = 0; i < v.length; i++) {
|
|
376
|
+
const before = v[i];
|
|
377
|
+
const after = visit(before);
|
|
378
|
+
if (after === before) continue;
|
|
379
|
+
out2 ??= [...v];
|
|
380
|
+
out2[i] = after;
|
|
381
|
+
}
|
|
382
|
+
return out2 ?? v;
|
|
383
|
+
}
|
|
384
|
+
const source = v;
|
|
385
|
+
let out;
|
|
386
|
+
for (const k of Object.keys(source)) {
|
|
387
|
+
const before = source[k];
|
|
388
|
+
const after = visit(before);
|
|
389
|
+
if (after === before) continue;
|
|
390
|
+
out ??= { ...source };
|
|
391
|
+
out[k] = after;
|
|
392
|
+
}
|
|
393
|
+
return out ?? v;
|
|
394
|
+
};
|
|
395
|
+
return visit(obj);
|
|
396
|
+
}
|
|
351
397
|
};
|
|
352
398
|
|
|
353
399
|
export {
|
|
354
400
|
DefaultSecretScrubber
|
|
355
401
|
};
|
|
356
|
-
//# sourceMappingURL=chunk-
|
|
402
|
+
//# sourceMappingURL=chunk-QSTSJOCK.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DefaultSecretScrubber
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QSTSJOCK.js";
|
|
4
4
|
|
|
5
5
|
// src/prompts/prompt-journal.ts
|
|
6
6
|
import * as fs from "node:fs/promises";
|
|
@@ -32,7 +32,7 @@ async function recordPromptJournalEntry(opts) {
|
|
|
32
32
|
const timestamp = now.toISOString();
|
|
33
33
|
const dateStr = timestamp.slice(0, 10);
|
|
34
34
|
const monthStr = dateStr.slice(0, 7);
|
|
35
|
-
const sessionId = opts.sessionId
|
|
35
|
+
const sessionId = opts.sessionId?.trim() || "general";
|
|
36
36
|
const id = `pmt_${Date.now()}_${Math.random().toString(36).slice(2, 9)}`;
|
|
37
37
|
const content = defaultScrubber.scrub(opts.content ?? "");
|
|
38
38
|
const rawContent = typeof opts.rawContent === "string" && opts.rawContent.length > 0 ? defaultScrubber.scrub(opts.rawContent) : opts.rawContent;
|
|
@@ -279,4 +279,4 @@ export {
|
|
|
279
279
|
recordPromptJournalEntry,
|
|
280
280
|
getPromptJournalEntries
|
|
281
281
|
};
|
|
282
|
-
//# sourceMappingURL=chunk-
|
|
282
|
+
//# sourceMappingURL=chunk-RFQMOKWK.js.map
|