opencode-swarm 7.165.0 → 7.166.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
- package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
- package/dist/background/delegation-cost-identity.d.ts +41 -0
- package/dist/background/delegation-lifecycle.d.ts +24 -5
- package/dist/background/pending-delegations.d.ts +2 -0
- package/dist/background/pr-monitor-worker.d.ts +60 -6
- package/dist/background/pr-subscriptions.d.ts +13 -0
- package/dist/cli/{capability-probe-5wa7mcp6.js → capability-probe-faqefhah.js} +2 -1
- package/dist/cli/{coder-settlement-89nt4j7g.js → coder-settlement-ydg2jfrk.js} +8 -8
- package/dist/cli/{config-doctor-gm6f5chm.js → config-doctor-drqx6tzc.js} +2 -2
- package/dist/cli/{core-91p43zwj.js → core-x6sftfwt.js} +1 -1
- package/dist/cli/{curation-policy-bqpmry2n.js → curation-policy-jtzwz6bc.js} +4 -4
- package/dist/cli/{curator-drift-hbc3w5zj.js → curator-drift-2vwtkegg.js} +2 -2
- package/dist/cli/{curator-4bs2hmy9.js → curator-kg2h8jjf.js} +34 -34
- package/dist/cli/curator-llm-factory-7znajprp.js +70 -0
- package/dist/cli/{evidence-summary-service-g1xd8egd.js → evidence-summary-service-ry5ebnmq.js} +15 -15
- package/dist/cli/{gate-evidence-gdmgsz7c.js → gate-evidence-qgeceqy8.js} +5 -5
- package/dist/cli/guardrail-explain-jdv4n2j3.js +71 -0
- package/dist/cli/{guardrail-log-nyggdv04.js → guardrail-log-s7c3rpde.js} +7 -7
- package/dist/cli/{guardrail-reset-rp9jq0gj.js → guardrail-reset-4nmy7xas.js} +34 -34
- package/dist/cli/{hive-promoter-39xb4tx2.js → hive-promoter-w5tsgttc.js} +34 -34
- package/dist/cli/{index-tqw8w2n5.js → index-17yszqs5.js} +1 -1
- package/dist/cli/{index-qzvry1n1.js → index-289epdpc.js} +36 -36
- package/dist/cli/{index-7h94rfem.js → index-2dvk153d.js} +14 -12
- package/dist/cli/{index-p7hdp3rp.js → index-2rm5x9ps.js} +1 -1
- package/dist/cli/{index-xwbn7c8m.js → index-2v17wb75.js} +2 -2
- package/dist/cli/{index-y1zhpfk8.js → index-30f4fe30.js} +4 -4
- package/dist/cli/{index-n3pjcks8.js → index-359djbj1.js} +5 -5
- package/dist/cli/{index-4gmt79q9.js → index-4mpdy32j.js} +1 -1
- package/dist/cli/{index-afpkqsdb.js → index-52jfm5s0.js} +13 -6
- package/dist/cli/{index-6m24v15v.js → index-79sr3fd1.js} +2 -2
- package/dist/cli/{index-dh5th4jn.js → index-8hqkrd2j.js} +1 -1
- package/dist/cli/{index-3xyjvx24.js → index-8m12y79g.js} +11 -9
- package/dist/cli/{index-e6n7cemz.js → index-8n62bphd.js} +11 -7
- package/dist/cli/{index-hdakb4n9.js → index-9hy5q7gp.js} +15 -12
- package/dist/cli/{index-2k53pfnc.js → index-a5w71m8f.js} +4 -4
- package/dist/cli/{index-6rx1rdaq.js → index-a7rw4g4s.js} +1 -1
- package/dist/cli/{index-w6988bbc.js → index-aftapk6j.js} +75 -1
- package/dist/cli/{index-hwz46jj7.js → index-an89qzd9.js} +2074 -545
- package/dist/cli/{index-58be2gtd.js → index-apxaa755.js} +2 -2
- package/dist/cli/{index-j2svfhzk.js → index-axf65x87.js} +1 -1
- package/dist/cli/{index-g8wdekzz.js → index-bw7r2b2m.js} +2 -2
- package/dist/cli/{index-ajknebrc.js → index-c20gf089.js} +1 -1
- package/dist/cli/{index-ptsqnxwd.js → index-czr3jcg6.js} +20 -10
- package/dist/cli/{index-jre6tm3v.js → index-edm41q4j.js} +1 -1
- package/dist/cli/{index-r5hj3nfe.js → index-ejf6w8vw.js} +2 -2
- package/dist/cli/{index-c4ddtrqg.js → index-fywshabz.js} +6 -6
- package/dist/cli/{index-6be5caj8.js → index-hrkamw9q.js} +3 -3
- package/dist/cli/{index-f36hy1x4.js → index-hvk3zs62.js} +1 -1
- package/dist/cli/{index-5ebgzb5a.js → index-hwj25q9r.js} +78 -53
- package/dist/cli/{index-gn6ybsc4.js → index-jc9cxh90.js} +7 -7
- package/dist/cli/{index-e45htt92.js → index-jx9f4ke1.js} +1 -1
- package/dist/cli/{index-zycp24b9.js → index-mg43w8p2.js} +1 -1
- package/dist/cli/{index-0e9jh9c7.js → index-nb924ar6.js} +2 -2
- package/dist/cli/{index-k1ntjzmf.js → index-p04pa9c9.js} +1 -1
- package/dist/cli/{index-4fwbbad3.js → index-q1r1cfww.js} +46 -17
- package/dist/cli/{index-5ythtd9t.js → index-qkq56zyr.js} +11 -11
- package/dist/cli/{index-1v6vc90w.js → index-rkn17q5e.js} +3 -3
- package/dist/cli/{index-556ja8an.js → index-yzjaj53h.js} +9 -2
- package/dist/cli/index.js +34 -34
- package/dist/cli/{knowledge-escalator-eq07pcj3.js → knowledge-escalator-xdzmr31d.js} +10 -10
- package/dist/cli/{knowledge-events-rv9q9mkm.js → knowledge-events-1t1t0bv7.js} +8 -8
- package/dist/cli/{knowledge-link-dgvbqjqg.js → knowledge-link-1zykfk1p.js} +3 -3
- package/dist/cli/{knowledge-store-cxcr0ttk.js → knowledge-store-m2snb0xg.js} +4 -4
- package/dist/cli/{knowledge-validator-8qtd9ys0.js → knowledge-validator-tf7yq2pd.js} +6 -6
- package/dist/cli/{pending-delegations-dp3g8e7k.js → pending-delegations-jr8hwxrz.js} +11 -9
- package/dist/cli/{pr-subscriptions-3vx06rar.js → pr-subscriptions-ca1xmf9r.js} +13 -9
- package/dist/cli/{pr-workflow-gate-bbet0apk.js → pr-workflow-gate-fb1dj0zx.js} +34 -34
- package/dist/cli/{runner-0e3bjeev.js → runner-j3acybhs.js} +4 -4
- package/dist/cli/{scan-cursor-zwm0xng7.js → scan-cursor-3gdvy0ym.js} +5 -5
- package/dist/cli/{schema-ebfxgya0.js → schema-mzb1354k.js} +1 -1
- package/dist/cli/{scope-persistence-6c55akfz.js → scope-persistence-c4n21b5n.js} +14 -14
- package/dist/cli/{skill-generator-mv5jxzsh.js → skill-generator-dvpvwt8k.js} +12 -12
- package/dist/cli/{snapshot-coordination-init-n556wa18.js → snapshot-coordination-init-g7v63zcm.js} +34 -34
- package/dist/cli/{telemetry-a1yvjerj.js → telemetry-9h1z2w9d.js} +1 -1
- package/dist/cli/{worktree-collision-ownership-pp4z4z8p.js → worktree-collision-ownership-k15qrpy9.js} +9 -9
- package/dist/cli/{worktree-isolation-69hz9dgg.js → worktree-isolation-y7ec1pm5.js} +34 -34
- package/dist/commands/pr-monitor-status.d.ts +2 -0
- package/dist/commands/registry.d.ts +8 -0
- package/dist/commands/report.d.ts +36 -0
- package/dist/db/observability-event-store.d.ts +162 -0
- package/dist/git/pr.d.ts +23 -25
- package/dist/hooks/context-capsule-inject.d.ts +3 -0
- package/dist/index.d.ts +6 -1
- package/dist/index.js +522 -429
- package/dist/observability/catalog.d.ts +8 -4
- package/dist/sandbox/executor.d.ts +10 -0
- package/dist/sandbox/win32/runner-client.d.ts +7 -0
- package/dist/services/context-attribution.d.ts +69 -0
- package/dist/services/cost-accounting.d.ts +2 -0
- package/dist/telemetry.d.ts +10 -2
- package/opencode-swarm.schema.json +1 -1
- package/package.json +1 -1
- package/dist/cli/curator-llm-factory-fhbjwar0.js +0 -70
- package/dist/cli/guardrail-explain-1nfbtpgg.js +0 -71
|
@@ -18,14 +18,14 @@ import {
|
|
|
18
18
|
releaseCoordinationLease,
|
|
19
19
|
transitionCoordinationState,
|
|
20
20
|
withCoordinationTransaction
|
|
21
|
-
} from "./index-
|
|
21
|
+
} from "./index-jx9f4ke1.js";
|
|
22
22
|
import {
|
|
23
23
|
getProjectDb,
|
|
24
24
|
projectDbExists
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-aftapk6j.js";
|
|
26
26
|
import {
|
|
27
27
|
observeDelegationLedgerPressure
|
|
28
|
-
} from "./index-
|
|
28
|
+
} from "./index-axf65x87.js";
|
|
29
29
|
import {
|
|
30
30
|
canonicalRootKeyFresh,
|
|
31
31
|
sameProjectRoot
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
import {
|
|
34
34
|
EvidenceLockTimeoutError,
|
|
35
35
|
withEvidenceLock
|
|
36
|
-
} from "./index-
|
|
36
|
+
} from "./index-edm41q4j.js";
|
|
37
37
|
import {
|
|
38
38
|
exports_external,
|
|
39
39
|
init_zod
|
|
@@ -3656,6 +3656,10 @@ function isTerminal(status) {
|
|
|
3656
3656
|
function isTerminalDelegationStatus(status) {
|
|
3657
3657
|
return isTerminal(status);
|
|
3658
3658
|
}
|
|
3659
|
+
var _staleSweepObserver = null;
|
|
3660
|
+
function registerStaleSweepObserver(observer) {
|
|
3661
|
+
_staleSweepObserver = observer;
|
|
3662
|
+
}
|
|
3659
3663
|
function sweepStaleLocked(directory, timeoutMs, now, statuses = DEFAULT_SWEEPABLE_DELEGATION_STATUSES, filters = {}, limits = {}) {
|
|
3660
3664
|
let swept = 0;
|
|
3661
3665
|
const { excludeCorrelationIds, includeCorrelationIds } = filters;
|
|
@@ -3679,6 +3683,9 @@ function sweepStaleLocked(directory, timeoutMs, now, statuses = DEFAULT_SWEEPABL
|
|
|
3679
3683
|
status: "stale",
|
|
3680
3684
|
updatedAt: now
|
|
3681
3685
|
});
|
|
3686
|
+
try {
|
|
3687
|
+
_staleSweepObserver?.(record, "stale");
|
|
3688
|
+
} catch {}
|
|
3682
3689
|
swept += 1;
|
|
3683
3690
|
}
|
|
3684
3691
|
if (swept > 0)
|
|
@@ -4517,7 +4524,7 @@ async function reconcileLegacyCoderSettlements(directory, maxRecords, onReconcil
|
|
|
4517
4524
|
const candidates = readDelegations(directory).filter((record) => record.normalizedAgent === "coder" && Boolean(record.legacyCoderSettlementTransfer) && Boolean(record.terminalResult)).slice(0, maxRecords);
|
|
4518
4525
|
if (candidates.length === 0)
|
|
4519
4526
|
return 0;
|
|
4520
|
-
const { transferCoderSettlementToBackground } = await import("./coder-settlement-
|
|
4527
|
+
const { transferCoderSettlementToBackground } = await import("./coder-settlement-ydg2jfrk.js");
|
|
4521
4528
|
let transferred = 0;
|
|
4522
4529
|
for (const record of candidates) {
|
|
4523
4530
|
try {
|
|
@@ -4874,4 +4881,4 @@ async function maintainBackgroundDelegations(directory, options = {}) {
|
|
|
4874
4881
|
return emitObservation("ok");
|
|
4875
4882
|
}
|
|
4876
4883
|
|
|
4877
|
-
export { prReviewFindingRequiresCritic, PR_REVIEW_BASE_DIMENSION_IDS, PR_REVIEW_RISK_IMPACTS, PR_REVIEW_RISK_TAGS, prReviewLegacyTranscriptCompatibilityEnabled, PrReviewLaneResultEnvelopeSchema, decodePrReviewWorkflowBinding, prReviewLaneResultEnvelopeDigest, PrReviewResultReceiptSchema, PR_REVIEW_FINDINGS_MAX_BYTES, PR_REVIEW_HANDOFF_MAX_BYTES, PR_REVIEW_DISCARDED_EXAMPLE_ITEM_ID, PrReviewRunIdSchema, parsePrReviewRiskTagsField, PrReviewReviewerVerdictFieldsSchema, PrReviewCriticVerdictFieldsSchema, parsePrReviewVerdictRow, generatePrReviewRunId, MAX_RECOVERY_LEDGER_BYTES, readDelegationHealthArtifact, collectDelegationLedgerHealth, MAX_PR_REVIEW_COLLECTION_RECEIPT_ITEM_IDS, BACKGROUND_DELEGATIONS_FILE, BACKGROUND_DELEGATION_FALLBACK_DIR, BACKGROUND_CODER_RESERVATIONS_FILE, BACKGROUND_DELEGATIONS_CHECKPOINT_FILE, BACKGROUND_DELEGATIONS_MANIFEST_FILE, MAX_LIVE_BACKGROUND_FALLBACKS, MAX_LIVE_BACKGROUND_CODER_RESERVATIONS, MAX_BACKGROUND_OBSERVED_FILES, MAX_BACKGROUND_ADVISORY_CHARS, LEGACY_CODER_SETTLEMENT_PENDING_ADVISORY_MARKER, DELEGATION_COMPACTION_LOW_WATER_BYTES, DELEGATION_COMPACTION_HIGH_WATER_BYTES, MAX_CHECKPOINT_BYTES, MAX_CHECKPOINT_RECORDS, TOMBSTONE_MIN_AGE_MS, BACKGROUND_INGESTION_LEASE_MS, BACKGROUND_CODER_RESERVATION_LEASE_MS, BACKGROUND_CODER_RESERVATION_LEASE_MAX_MS, BACKGROUND_CODER_RESERVATION_LEASE_MIN_MS, DEFAULT_STALE_DELEGATION_TIMEOUT_MS, DEFAULT_SWEEPABLE_DELEGATION_STATUSES, _checkpointInternals, isUnsettledWorktreeOwner, compactBackgroundDelegations, readDelegations, scanDelegationsForRecovery, findByCorrelationId, recordPendingDelegationDetailed, recordPendingDelegation, buildPromptSnapshot, appendDelegationTransition, publishPrReviewResultReceipt, buildBackgroundCompletionEventId, claimTerminalResult, claimCoderSettlement, normalizeBackgroundObservedFiles, updateCoderSettlement, registerLegacyCoderSettlementReconciler, _internals, markLegacyCoderSettlementTransferPending, clearLegacyCoderSettlementTransferPending, claimDelegationIngestion, recordDelegationIngestionResult, putPendingBackgroundAdvisory, replacePendingBackgroundAdvisory, preparePendingBackgroundAdvisories, acknowledgeObservedBackgroundAdvisories, releasePreparedBackgroundAdvisories, findByBatchId, findOpenAsyncLaneBatches, isTerminalDelegationStatus, sweepStaleDelegations, readDelegationFallback, listDelegationFallbacks, scanDelegationFallbacksForRecovery, writeDelegationFallback, removeDelegationFallback, findDelegationForCompletion, promoteDelegationFallback, buildBackgroundCoderReservationId, scanBackgroundCoderReservationsForAdmission, reserveBackgroundCoderSlot, bindBackgroundCoderReservation, releaseBackgroundCoderReservation, maintainBackgroundDelegations };
|
|
4884
|
+
export { prReviewFindingRequiresCritic, PR_REVIEW_BASE_DIMENSION_IDS, PR_REVIEW_RISK_IMPACTS, PR_REVIEW_RISK_TAGS, prReviewLegacyTranscriptCompatibilityEnabled, PrReviewLaneResultEnvelopeSchema, decodePrReviewWorkflowBinding, prReviewLaneResultEnvelopeDigest, PrReviewResultReceiptSchema, PR_REVIEW_FINDINGS_MAX_BYTES, PR_REVIEW_HANDOFF_MAX_BYTES, PR_REVIEW_DISCARDED_EXAMPLE_ITEM_ID, PrReviewRunIdSchema, parsePrReviewRiskTagsField, PrReviewReviewerVerdictFieldsSchema, PrReviewCriticVerdictFieldsSchema, parsePrReviewVerdictRow, generatePrReviewRunId, MAX_RECOVERY_LEDGER_BYTES, readDelegationHealthArtifact, collectDelegationLedgerHealth, MAX_PR_REVIEW_COLLECTION_RECEIPT_ITEM_IDS, BACKGROUND_DELEGATIONS_FILE, BACKGROUND_DELEGATION_FALLBACK_DIR, BACKGROUND_CODER_RESERVATIONS_FILE, BACKGROUND_DELEGATIONS_CHECKPOINT_FILE, BACKGROUND_DELEGATIONS_MANIFEST_FILE, MAX_LIVE_BACKGROUND_FALLBACKS, MAX_LIVE_BACKGROUND_CODER_RESERVATIONS, MAX_BACKGROUND_OBSERVED_FILES, MAX_BACKGROUND_ADVISORY_CHARS, LEGACY_CODER_SETTLEMENT_PENDING_ADVISORY_MARKER, DELEGATION_COMPACTION_LOW_WATER_BYTES, DELEGATION_COMPACTION_HIGH_WATER_BYTES, MAX_CHECKPOINT_BYTES, MAX_CHECKPOINT_RECORDS, TOMBSTONE_MIN_AGE_MS, BACKGROUND_INGESTION_LEASE_MS, BACKGROUND_CODER_RESERVATION_LEASE_MS, BACKGROUND_CODER_RESERVATION_LEASE_MAX_MS, BACKGROUND_CODER_RESERVATION_LEASE_MIN_MS, DEFAULT_STALE_DELEGATION_TIMEOUT_MS, DEFAULT_SWEEPABLE_DELEGATION_STATUSES, _checkpointInternals, isUnsettledWorktreeOwner, compactBackgroundDelegations, readDelegations, scanDelegationsForRecovery, findByCorrelationId, recordPendingDelegationDetailed, recordPendingDelegation, buildPromptSnapshot, appendDelegationTransition, publishPrReviewResultReceipt, buildBackgroundCompletionEventId, claimTerminalResult, claimCoderSettlement, normalizeBackgroundObservedFiles, updateCoderSettlement, registerLegacyCoderSettlementReconciler, _internals, markLegacyCoderSettlementTransferPending, clearLegacyCoderSettlementTransferPending, claimDelegationIngestion, recordDelegationIngestionResult, putPendingBackgroundAdvisory, replacePendingBackgroundAdvisory, preparePendingBackgroundAdvisories, acknowledgeObservedBackgroundAdvisories, releasePreparedBackgroundAdvisories, findByBatchId, findOpenAsyncLaneBatches, isTerminalDelegationStatus, registerStaleSweepObserver, sweepStaleDelegations, readDelegationFallback, listDelegationFallbacks, scanDelegationFallbacksForRecovery, writeDelegationFallback, removeDelegationFallback, findDelegationForCompletion, promoteDelegationFallback, buildBackgroundCoderReservationId, scanBackgroundCoderReservationsForAdmission, reserveBackgroundCoderSlot, bindBackgroundCoderReservation, releaseBackgroundCoderReservation, maintainBackgroundDelegations };
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import {
|
|
3
3
|
derivePlanId,
|
|
4
4
|
derivePlanIdentityHash
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-jx9f4ke1.js";
|
|
6
6
|
import {
|
|
7
7
|
DURABILITY_CLASSES,
|
|
8
8
|
getProjectDb,
|
|
9
9
|
projectDbExists,
|
|
10
10
|
withImmediateTransaction
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-aftapk6j.js";
|
|
12
12
|
import {
|
|
13
13
|
init_logger,
|
|
14
14
|
warn
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
computePlanStructureHash
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-30f4fe30.js";
|
|
5
5
|
import {
|
|
6
6
|
appendCoreEventSync
|
|
7
|
-
} from "./index-
|
|
8
|
-
import {
|
|
9
|
-
unsafePathTextReason
|
|
10
|
-
} from "./index-556ja8an.js";
|
|
7
|
+
} from "./index-2v17wb75.js";
|
|
11
8
|
import {
|
|
12
9
|
deleteCoordinationState,
|
|
13
10
|
derivePlanId,
|
|
@@ -16,17 +13,17 @@ import {
|
|
|
16
13
|
transitionCoordinationState,
|
|
17
14
|
transitionCoordinationStateWithinTransaction,
|
|
18
15
|
withCoordinationTransaction
|
|
19
|
-
} from "./index-
|
|
16
|
+
} from "./index-jx9f4ke1.js";
|
|
20
17
|
import {
|
|
21
18
|
getProjectDb
|
|
22
|
-
} from "./index-
|
|
19
|
+
} from "./index-aftapk6j.js";
|
|
23
20
|
import {
|
|
24
21
|
canonicalExistingFilesystemPath,
|
|
25
22
|
legacyCanonicalExistingFilesystemPath
|
|
26
23
|
} from "./index-ry16d01s.js";
|
|
27
24
|
import {
|
|
28
25
|
assertProjectRoot
|
|
29
|
-
} from "./index-
|
|
26
|
+
} from "./index-edm41q4j.js";
|
|
30
27
|
import {
|
|
31
28
|
atomicWriteSwarmFile,
|
|
32
29
|
atomicWriteSwarmFileSync
|
|
@@ -36,7 +33,11 @@ import {
|
|
|
36
33
|
} from "./index-7g4c7s5r.js";
|
|
37
34
|
import {
|
|
38
35
|
PlanSchema
|
|
39
|
-
} from "./index-
|
|
36
|
+
} from "./index-mg43w8p2.js";
|
|
37
|
+
import {
|
|
38
|
+
init_path_identity,
|
|
39
|
+
unsafePathTextReason
|
|
40
|
+
} from "./index-yzjaj53h.js";
|
|
40
41
|
import {
|
|
41
42
|
__toESM
|
|
42
43
|
} from "./index-a76rekgs.js";
|
|
@@ -50,6 +51,7 @@ import * as path2 from "path";
|
|
|
50
51
|
// src/scope/scope-binding.ts
|
|
51
52
|
import { randomUUID } from "crypto";
|
|
52
53
|
import * as path from "path";
|
|
54
|
+
init_path_identity();
|
|
53
55
|
var MAX_PENDING_SCOPE_BINDINGS = 256;
|
|
54
56
|
var DEFAULT_SCOPE_BINDING_TTL_MS = 60 * 60 * 1000;
|
|
55
57
|
var MAX_SCOPE_BINDING_TOMBSTONES = 256;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
autoCommitDirty,
|
|
4
4
|
cleanUntrackedFiles
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-2rm5x9ps.js";
|
|
6
6
|
import {
|
|
7
7
|
validateSwarmPath
|
|
8
8
|
} from "./index-anxs69ad.js";
|
|
@@ -10,19 +10,15 @@ import {
|
|
|
10
10
|
bunSpawn,
|
|
11
11
|
classifySpawnFailure
|
|
12
12
|
} from "./index-p612v1mv.js";
|
|
13
|
-
import {
|
|
14
|
-
isPathWithinDeclaredScope,
|
|
15
|
-
unsafePathTextReason
|
|
16
|
-
} from "./index-556ja8an.js";
|
|
17
13
|
import {
|
|
18
14
|
assertProjectRoot,
|
|
19
15
|
atomicWriteFile,
|
|
20
16
|
taskEvidencePath,
|
|
21
17
|
withTaskEvidenceLock
|
|
22
|
-
} from "./index-
|
|
18
|
+
} from "./index-edm41q4j.js";
|
|
23
19
|
import {
|
|
24
20
|
telemetry
|
|
25
|
-
} from "./index-
|
|
21
|
+
} from "./index-hwj25q9r.js";
|
|
26
22
|
import {
|
|
27
23
|
init_git_executable,
|
|
28
24
|
resolveGitExecutable
|
|
@@ -35,6 +31,11 @@ import {
|
|
|
35
31
|
exports_external,
|
|
36
32
|
init_zod
|
|
37
33
|
} from "./index-bpmtbmy9.js";
|
|
34
|
+
import {
|
|
35
|
+
init_path_identity,
|
|
36
|
+
isPathWithinDeclaredScope,
|
|
37
|
+
unsafePathTextReason
|
|
38
|
+
} from "./index-yzjaj53h.js";
|
|
38
39
|
import {
|
|
39
40
|
log
|
|
40
41
|
} from "./index-zgwm4ryv.js";
|
|
@@ -301,6 +302,9 @@ import * as fs4 from "fs";
|
|
|
301
302
|
import { mkdir, open } from "fs/promises";
|
|
302
303
|
import { dirname } from "path";
|
|
303
304
|
|
|
305
|
+
// src/workflow/workflow-wal-schema.ts
|
|
306
|
+
init_path_identity();
|
|
307
|
+
|
|
304
308
|
// src/worktree/merge.ts
|
|
305
309
|
init_warning_buffer();
|
|
306
310
|
import * as fs3 from "fs";
|
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import {
|
|
3
|
-
getPathFlavor,
|
|
4
|
-
isOnDifferentPathRoot,
|
|
5
|
-
isPathIdentityWithin,
|
|
6
|
-
isPathWithinDeclaredScope,
|
|
7
|
-
pathIdentitiesEqual,
|
|
8
|
-
sanitizeDiagnosticText,
|
|
9
|
-
unsafePathTextReason
|
|
10
|
-
} from "./index-556ja8an.js";
|
|
11
2
|
import {
|
|
12
3
|
observeStoreHealth
|
|
13
|
-
} from "./index-
|
|
4
|
+
} from "./index-axf65x87.js";
|
|
14
5
|
import {
|
|
15
6
|
telemetry
|
|
16
|
-
} from "./index-
|
|
7
|
+
} from "./index-hwj25q9r.js";
|
|
17
8
|
import {
|
|
18
9
|
init_schema,
|
|
19
10
|
stripKnownSwarmPrefix
|
|
20
|
-
} from "./index-
|
|
11
|
+
} from "./index-nb924ar6.js";
|
|
21
12
|
import {
|
|
22
13
|
init_constants
|
|
23
14
|
} from "./index-a0d4fp6r.js";
|
|
15
|
+
import {
|
|
16
|
+
getPathFlavor,
|
|
17
|
+
init_path_identity,
|
|
18
|
+
isOnDifferentPathRoot,
|
|
19
|
+
isPathIdentityWithin,
|
|
20
|
+
isPathWithinDeclaredScope,
|
|
21
|
+
pathIdentitiesEqual,
|
|
22
|
+
sanitizeDiagnosticText,
|
|
23
|
+
unsafePathTextReason
|
|
24
|
+
} from "./index-yzjaj53h.js";
|
|
24
25
|
import {
|
|
25
26
|
init_logger,
|
|
26
27
|
warn
|
|
@@ -2075,6 +2076,7 @@ class QuickLRU extends Map {
|
|
|
2075
2076
|
|
|
2076
2077
|
// src/hooks/guardrails/file-authority.ts
|
|
2077
2078
|
init_schema();
|
|
2079
|
+
init_path_identity();
|
|
2078
2080
|
|
|
2079
2081
|
// src/security/protected-path-policy.ts
|
|
2080
2082
|
import * as path from "path";
|
|
@@ -2652,6 +2654,7 @@ function checkFileAuthority(agentName, filePath, cwd, authorityConfig, options =
|
|
|
2652
2654
|
|
|
2653
2655
|
// src/hooks/guardrails/helpers.ts
|
|
2654
2656
|
init_constants();
|
|
2657
|
+
init_path_identity();
|
|
2655
2658
|
function isInDeclaredScope(filePath, scopeEntries, cwd) {
|
|
2656
2659
|
return isPathWithinDeclaredScope(filePath, scopeEntries, cwd);
|
|
2657
2660
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
authorizeCuration
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-c20gf089.js";
|
|
5
5
|
import {
|
|
6
6
|
findNearDuplicate,
|
|
7
7
|
inferTags,
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
resolveSwarmKnowledgePath,
|
|
10
10
|
resolveSwarmRejectedPath,
|
|
11
11
|
transactKnowledge
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-fywshabz.js";
|
|
13
13
|
import {
|
|
14
14
|
resolveKnowledgeStoreDir
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-a7rw4g4s.js";
|
|
16
16
|
import {
|
|
17
17
|
atomicWriteFile
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-edm41q4j.js";
|
|
19
19
|
import {
|
|
20
20
|
require_proper_lockfile
|
|
21
21
|
} from "./index-7g4c7s5r.js";
|
|
@@ -334,6 +334,77 @@ var MIGRATIONS = [
|
|
|
334
334
|
name: "create_coordination_event_fence_global_age_index",
|
|
335
335
|
sql: `CREATE INDEX IF NOT EXISTS idx_coordination_event_fence_global_age
|
|
336
336
|
ON coordination_event_fence(created_at, stream_id)`
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
version: 29,
|
|
340
|
+
name: "create_observability_event",
|
|
341
|
+
sql: `CREATE TABLE IF NOT EXISTS observability_event (
|
|
342
|
+
event_id TEXT PRIMARY KEY,
|
|
343
|
+
kind TEXT NOT NULL,
|
|
344
|
+
category TEXT,
|
|
345
|
+
severity TEXT,
|
|
346
|
+
occurred_at TEXT NOT NULL,
|
|
347
|
+
writer_sequence INTEGER,
|
|
348
|
+
trace_id TEXT,
|
|
349
|
+
span_id TEXT,
|
|
350
|
+
host_session_id TEXT,
|
|
351
|
+
task_id TEXT,
|
|
352
|
+
lane_id TEXT,
|
|
353
|
+
batch_id TEXT,
|
|
354
|
+
phase_id TEXT,
|
|
355
|
+
council_round_id TEXT,
|
|
356
|
+
project_ref TEXT,
|
|
357
|
+
outcome_status TEXT,
|
|
358
|
+
retry_index INTEGER,
|
|
359
|
+
privacy_class TEXT,
|
|
360
|
+
sampled INTEGER,
|
|
361
|
+
payload_json TEXT NOT NULL,
|
|
362
|
+
relationship_violations TEXT,
|
|
363
|
+
quarantined INTEGER NOT NULL DEFAULT 0,
|
|
364
|
+
quarantine_reason TEXT,
|
|
365
|
+
ingested_via TEXT NOT NULL
|
|
366
|
+
)`
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
version: 30,
|
|
370
|
+
name: "create_observability_event_indexes",
|
|
371
|
+
sql: `CREATE INDEX IF NOT EXISTS idx_obs_event_occurred
|
|
372
|
+
ON observability_event(occurred_at);
|
|
373
|
+
CREATE INDEX IF NOT EXISTS idx_obs_event_kind
|
|
374
|
+
ON observability_event(kind, occurred_at);
|
|
375
|
+
CREATE INDEX IF NOT EXISTS idx_obs_event_session
|
|
376
|
+
ON observability_event(host_session_id, occurred_at);
|
|
377
|
+
CREATE INDEX IF NOT EXISTS idx_obs_event_task
|
|
378
|
+
ON observability_event(task_id, occurred_at);
|
|
379
|
+
CREATE INDEX IF NOT EXISTS idx_obs_event_trace
|
|
380
|
+
ON observability_event(trace_id);
|
|
381
|
+
CREATE INDEX IF NOT EXISTS idx_obs_event_batch
|
|
382
|
+
ON observability_event(batch_id)`
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
version: 31,
|
|
386
|
+
name: "create_observability_sink_health",
|
|
387
|
+
sql: `CREATE TABLE IF NOT EXISTS observability_sink_health (
|
|
388
|
+
id INTEGER PRIMARY KEY CHECK(id = 1),
|
|
389
|
+
accepted INTEGER NOT NULL DEFAULT 0,
|
|
390
|
+
quarantined INTEGER NOT NULL DEFAULT 0,
|
|
391
|
+
dropped INTEGER NOT NULL DEFAULT 0,
|
|
392
|
+
last_error_category TEXT,
|
|
393
|
+
last_error_at TEXT,
|
|
394
|
+
last_flush_at TEXT,
|
|
395
|
+
updated_at TEXT NOT NULL
|
|
396
|
+
)`
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
version: 32,
|
|
400
|
+
name: "create_observability_import",
|
|
401
|
+
sql: `CREATE TABLE IF NOT EXISTS observability_import (
|
|
402
|
+
source TEXT PRIMARY KEY,
|
|
403
|
+
fingerprint_size INTEGER NOT NULL,
|
|
404
|
+
fingerprint_mtime_ms INTEGER NOT NULL,
|
|
405
|
+
lines_seen INTEGER NOT NULL CHECK(lines_seen >= 0),
|
|
406
|
+
imported_at TEXT NOT NULL
|
|
407
|
+
)`
|
|
337
408
|
}
|
|
338
409
|
];
|
|
339
410
|
var _projectDbs = new Map;
|
|
@@ -610,7 +681,10 @@ var DURABILITY_CLASSES = {
|
|
|
610
681
|
phase_report: "normal",
|
|
611
682
|
project_constraints: "normal",
|
|
612
683
|
migration_failures: "normal",
|
|
613
|
-
schema_migrations: "normal"
|
|
684
|
+
schema_migrations: "normal",
|
|
685
|
+
observability_event: "normal",
|
|
686
|
+
observability_sink_health: "normal",
|
|
687
|
+
observability_import: "normal"
|
|
614
688
|
};
|
|
615
689
|
function batchDurabilityClass(classes) {
|
|
616
690
|
for (const cls of classes) {
|