opencode-swarm 7.168.1 → 7.170.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.
Files changed (146) hide show
  1. package/.opencode/skills/swarm-pr-feedback/SKILL.md +11 -11
  2. package/README.md +1 -0
  3. package/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
  4. package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
  5. package/dist/ci/evaluate.d.ts +100 -0
  6. package/dist/ci/index.d.ts +13 -0
  7. package/dist/ci/quality-checks.d.ts +58 -0
  8. package/dist/ci/report.d.ts +21 -0
  9. package/dist/ci/runtime.d.ts +81 -0
  10. package/dist/cli/{capability-probe-faqefhah.js → capability-probe-pdwwz8gs.js} +1 -1
  11. package/dist/cli/{coder-settlement-54a3d97g.js → coder-settlement-65zx1bet.js} +12 -12
  12. package/dist/cli/{config-doctor-vzp6b3ng.js → config-doctor-c30rss1c.js} +2 -2
  13. package/dist/cli/{core-yynse50x.js → core-8wkbr1tr.js} +5 -2
  14. package/dist/cli/{curation-policy-mgwv8h2k.js → curation-policy-k74qz9ms.js} +5 -5
  15. package/dist/cli/{curator-drift-k0zrnm09.js → curator-drift-3ssjr0nx.js} +5 -5
  16. package/dist/cli/curator-llm-factory-jkjqasfs.js +72 -0
  17. package/dist/cli/{curator-agdhhzqt.js → curator-pckzk1q4.js} +40 -39
  18. package/dist/cli/{dispatch-8ks9dyk5.js → dispatch-hwwj3qrb.js} +2 -2
  19. package/dist/cli/{evidence-summary-service-6mmcekr7.js → evidence-summary-service-4ydcapke.js} +17 -17
  20. package/dist/cli/{gate-evidence-xqvkqhrk.js → gate-evidence-xwqfky3m.js} +7 -7
  21. package/dist/cli/guardrail-explain-fe2veh2s.js +73 -0
  22. package/dist/cli/{guardrail-log-5wa5c77w.js → guardrail-log-z38j69bx.js} +8 -8
  23. package/dist/cli/{guardrail-reset-dh78tbcf.js → guardrail-reset-mmnzt4mz.js} +40 -39
  24. package/dist/cli/hive-promoter-68hrw1y1.js +87 -0
  25. package/dist/cli/{index-gmpmgtzn.js → index-06rbdzqn.js} +5 -5
  26. package/dist/cli/index-0hgmsyfp.js +92 -0
  27. package/dist/cli/{index-f1fps3w9.js → index-0xprxg95.js} +7 -7
  28. package/dist/cli/{index-p612v1mv.js → index-2s7dvzff.js} +200 -51
  29. package/dist/cli/{index-qthc56c4.js → index-31sqcdsd.js} +4 -4
  30. package/dist/cli/{index-y85aptep.js → index-3axdtaf0.js} +7 -7
  31. package/dist/cli/{index-9b2105n0.js → index-3eh2n3dx.js} +2 -2
  32. package/dist/cli/{index-w1dfkp1q.js → index-3p3y55xg.js} +15 -15
  33. package/dist/cli/{index-apy1qfj0.js → index-4wc5gfgm.js} +26 -4
  34. package/dist/cli/{index-d5qf7hvh.js → index-5400m33a.js} +1 -1
  35. package/dist/cli/{index-qkwtth00.js → index-59fcfpkh.js} +197 -35
  36. package/dist/cli/{index-j0bxxz9d.js → index-5bbem0ey.js} +8 -8
  37. package/dist/cli/{index-qwsh0h2g.js → index-5qt9yf5w.js} +4 -4
  38. package/dist/cli/{index-q1r1cfww.js → index-76qm2c2y.js} +37 -26
  39. package/dist/cli/{index-qhey6vc3.js → index-7h01bkm6.js} +2 -2
  40. package/dist/cli/{index-6df6wbvj.js → index-8w1mrvbd.js} +8 -8
  41. package/dist/cli/{index-8ybjqg51.js → index-9ttqbhvw.js} +1 -1
  42. package/dist/cli/{index-xhb4gryr.js → index-9xk97bcf.js} +4 -4
  43. package/dist/cli/{index-kear8gb7.js → index-b3pmzbh1.js} +2 -2
  44. package/dist/cli/{index-h439y187.js → index-bernkwgf.js} +1 -1
  45. package/dist/cli/{index-m35hybf0.js → index-bm5xrfnx.js} +1 -1
  46. package/dist/cli/{index-pyf517sz.js → index-br3mvbsa.js} +2 -2
  47. package/dist/cli/{index-4r5pmtvk.js → index-bx1wgn3a.js} +4 -4
  48. package/dist/cli/{index-nwwk3dej.js → index-cgpwjctj.js} +1 -1
  49. package/dist/cli/{index-wst6n478.js → index-dvbf6fpn.js} +1 -1
  50. package/dist/cli/{index-a8xbvsse.js → index-fgp96k3r.js} +2 -2
  51. package/dist/cli/{index-5zqakgp4.js → index-fhh02gwx.js} +3 -3
  52. package/dist/cli/{index-dfyv3xkd.js → index-gfbggp8k.js} +9 -9
  53. package/dist/cli/{index-kkmezerc.js → index-j144fgk8.js} +4831 -2776
  54. package/dist/cli/{index-xkf3672y.js → index-mjn6aqqk.js} +2 -2
  55. package/dist/cli/{index-3jmb4ppa.js → index-n0d5hrs4.js} +2 -2
  56. package/dist/cli/{index-v3xc4sde.js → index-nbdmdyke.js} +2 -1
  57. package/dist/cli/{index-z6qreakh.js → index-nprdr0sm.js} +6 -4
  58. package/dist/cli/{index-bvqqwx84.js → index-nyn01yrz.js} +2 -2
  59. package/dist/cli/{index-q8091q8b.js → index-p6fj7qz7.js} +3 -3
  60. package/dist/cli/{index-gh9ybrrs.js → index-pw00xcj0.js} +7 -7
  61. package/dist/cli/{index-bw9x8d8n.js → index-r1z8nrb6.js} +5 -5
  62. package/dist/cli/{index-2xbww1x0.js → index-ssx8087p.js} +7 -7
  63. package/dist/cli/{index-4kv1ew3q.js → index-t73888m0.js} +1 -1
  64. package/dist/cli/{index-91ww9hyr.js → index-td6xrw55.js} +1 -1
  65. package/dist/cli/{index-gp9yzr1v.js → index-xnpjwc4h.js} +1 -1
  66. package/dist/cli/{index-yt9n9zt3.js → index-xztkjj3c.js} +48 -41
  67. package/dist/cli/{index-5g6rhkn7.js → index-ye43mdfm.js} +36 -1
  68. package/dist/cli/{index-w3x1dmrf.js → index-z5vas8c3.js} +40 -39
  69. package/dist/cli/{index-chebm5h5.js → index-zw3hkzch.js} +3 -3
  70. package/dist/cli/index.js +45 -39
  71. package/dist/cli/{knowledge-escalator-135dz4eh.js → knowledge-escalator-pz2faktx.js} +13 -13
  72. package/dist/cli/{knowledge-events-27gwv47q.js → knowledge-events-s6s8qedx.js} +11 -11
  73. package/dist/cli/{knowledge-link-dr3xnwyd.js → knowledge-link-rkxfrmhm.js} +4 -4
  74. package/dist/cli/{knowledge-store-80m44bfw.js → knowledge-store-dgv3xw3h.js} +5 -5
  75. package/dist/cli/{knowledge-validator-crsfb2cc.js → knowledge-validator-22qppdyv.js} +7 -7
  76. package/dist/cli/{pending-delegations-gwgjzzkz.js → pending-delegations-4r21nf9d.js} +12 -12
  77. package/dist/cli/{pr-subscriptions-g633nhz4.js → pr-subscriptions-d52xy3zd.js} +12 -12
  78. package/dist/cli/{pr-workflow-gate-4dc5nt2e.js → pr-workflow-gate-0de81kzw.js} +40 -39
  79. package/dist/cli/{runner-k0ycgv8x.js → runner-1dwrgyyr.js} +6 -6
  80. package/dist/cli/{scan-cursor-avxjsm4w.js → scan-cursor-ahbbejab.js} +6 -6
  81. package/dist/cli/{schema-3ja77k4y.js → schema-17h2hcw9.js} +5 -1
  82. package/dist/cli/{scope-persistence-f540tc50.js → scope-persistence-gcn3zm5e.js} +14 -14
  83. package/dist/cli/{skill-generator-kcqqpg1g.js → skill-generator-hkqr5qs7.js} +15 -15
  84. package/dist/cli/{snapshot-coordination-init-e4s8bn4p.js → snapshot-coordination-init-ms36zxv6.js} +40 -39
  85. package/dist/cli/{telemetry-2wzapf11.js → telemetry-fdtaemnv.js} +1 -1
  86. package/dist/cli/{workspace-snapshot-rkgxhj9b.js → workspace-snapshot-hkz2wt1c.js} +4 -4
  87. package/dist/cli/{worktree-collision-ownership-rk9gz638.js → worktree-collision-ownership-7v7gg511.js} +18 -104
  88. package/dist/cli/{worktree-isolation-1bdzfgky.js → worktree-isolation-nanamt25.js} +40 -39
  89. package/dist/commands/ci.d.ts +40 -0
  90. package/dist/commands/destructive-purge.d.ts +85 -0
  91. package/dist/commands/index.d.ts +1 -0
  92. package/dist/commands/registry.d.ts +10 -2
  93. package/dist/commands/reset-session.d.ts +5 -1
  94. package/dist/config/constants.d.ts +4 -1
  95. package/dist/config/lane-context.d.ts +19 -0
  96. package/dist/config/schema.d.ts +77 -0
  97. package/dist/evaluation/index.d.ts +1 -0
  98. package/dist/evaluation/retrieval-quality.d.ts +116 -0
  99. package/dist/failures/invocation-failure.d.ts +23 -4
  100. package/dist/hooks/gate-denial-tracker.d.ts +18 -14
  101. package/dist/hooks/init-orphan-recovery.d.ts +7 -0
  102. package/dist/hooks/pr-workflow-gate.d.ts +8 -2
  103. package/dist/index.js +616 -608
  104. package/dist/memory/embeddings/reranker.d.ts +13 -2
  105. package/dist/memory/evaluation.d.ts +99 -0
  106. package/dist/memory/heldout-evaluation-corpus.d.ts +51 -0
  107. package/dist/memory/index.d.ts +5 -2
  108. package/dist/memory/sqlite-provider.d.ts +35 -1
  109. package/dist/memory/types.d.ts +14 -0
  110. package/dist/observability/otel-mapping.d.ts +5 -5
  111. package/dist/observability/otlp-exporter.d.ts +80 -0
  112. package/dist/parallel/lane-owners.d.ts +76 -0
  113. package/dist/sandbox/macos/sandbox-exec-executor.d.ts +48 -11
  114. package/dist/tools/repo-graph/query.d.ts +6 -1
  115. package/dist/tools/repo-graph/types.d.ts +13 -4
  116. package/dist/utils/bun-compat.d.ts +20 -0
  117. package/dist/utils/gitignore-warning.d.ts +5 -2
  118. package/dist/worktree/base-migration.d.ts +55 -0
  119. package/dist/worktree/core.d.ts +15 -6
  120. package/dist/worktree/ownership.d.ts +66 -0
  121. package/opencode-swarm.schema.json +97 -0
  122. package/package.json +4 -2
  123. package/tests/fixtures/memory-recall-heldout/manifest.json +311 -0
  124. package/tests/fixtures/memory-recall-heldout/sources/bash.sh +1 -0
  125. package/tests/fixtures/memory-recall-heldout/sources/c.c +1 -0
  126. package/tests/fixtures/memory-recall-heldout/sources/cpp.cpp +1 -0
  127. package/tests/fixtures/memory-recall-heldout/sources/csharp.cs +1 -0
  128. package/tests/fixtures/memory-recall-heldout/sources/css.css +3 -0
  129. package/tests/fixtures/memory-recall-heldout/sources/dart.dart +1 -0
  130. package/tests/fixtures/memory-recall-heldout/sources/go.go +3 -0
  131. package/tests/fixtures/memory-recall-heldout/sources/ini.ini +2 -0
  132. package/tests/fixtures/memory-recall-heldout/sources/java.java +1 -0
  133. package/tests/fixtures/memory-recall-heldout/sources/javascript.js +3 -0
  134. package/tests/fixtures/memory-recall-heldout/sources/kotlin.kt +1 -0
  135. package/tests/fixtures/memory-recall-heldout/sources/php.php +1 -0
  136. package/tests/fixtures/memory-recall-heldout/sources/powershell.ps1 +1 -0
  137. package/tests/fixtures/memory-recall-heldout/sources/python.py +2 -0
  138. package/tests/fixtures/memory-recall-heldout/sources/regex.regex +1 -0
  139. package/tests/fixtures/memory-recall-heldout/sources/ruby.rb +3 -0
  140. package/tests/fixtures/memory-recall-heldout/sources/rust.rs +1 -0
  141. package/tests/fixtures/memory-recall-heldout/sources/swift.swift +1 -0
  142. package/tests/fixtures/memory-recall-heldout/sources/tsx.tsx +3 -0
  143. package/tests/fixtures/memory-recall-heldout/sources/typescript.ts +3 -0
  144. package/dist/cli/curator-llm-factory-ygxd6hfx.js +0 -71
  145. package/dist/cli/guardrail-explain-vjtjhgzs.js +0 -72
  146. package/dist/cli/hive-promoter-3czsx7c6.js +0 -86
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  init_loader,
4
4
  loadPluginConfigWithMeta
5
- } from "./index-91ww9hyr.js";
5
+ } from "./index-td6xrw55.js";
6
6
  import {
7
7
  init_schema
8
- } from "./index-apy1qfj0.js";
8
+ } from "./index-4wc5gfgm.js";
9
9
  import {
10
10
  DEFAULT_WORKTREE_ISOLATION_CONFIG,
11
11
  init_constants
@@ -14,14 +14,14 @@ import {
14
14
  detectWindowsWrites,
15
15
  getSharedClassifierGuardrailBlock,
16
16
  resolveWriteTargets
17
- } from "./index-kkmezerc.js";
17
+ } from "./index-j144fgk8.js";
18
18
  import {
19
19
  checkFileAuthority,
20
20
  classifyFile,
21
21
  isInDeclaredScope,
22
22
  redactPath,
23
23
  redactShellCommand
24
- } from "./index-chebm5h5.js";
24
+ } from "./index-zw3hkzch.js";
25
25
 
26
26
  // src/services/guardrail-explain-service.ts
27
27
  import path from "path";
@@ -238,7 +238,7 @@ var SWARM_TEMP_GRAMMARS = [
238
238
  "src/evidence/manager.ts:288",
239
239
  "src/evidence/manager.ts:456",
240
240
  "src/tools/sast-baseline.ts:199",
241
- "src/tools/repo-graph/storage.ts:524",
241
+ "src/tools/repo-graph/storage.ts:543",
242
242
  "src/memory/reflection-service.ts (pre-#2035; migrated-to=src/memory/reflection-service.ts:atomicWrite)",
243
243
  "src/hooks/review-receipt.ts:609",
244
244
  "src/hooks/review-receipt.ts:675",
@@ -464,6 +464,7 @@ var WRITER_CLASSIFICATION = Object.freeze({
464
464
  "src/services/skill-improver.ts": "migrated",
465
465
  "src/summaries/store.ts": "migrated",
466
466
  "src/prm/trajectory-store.ts": "migrated",
467
+ "src/observability/otlp-exporter.ts": "registered-bespoke",
467
468
  "src/retention/jsonl-cap.ts": "registered-bespoke",
468
469
  "src/services/skill-changelog.ts": "registered-bespoke",
469
470
  "src/turbo/epic/divergence-recorder.ts": "registered-bespoke",
@@ -223,7 +223,7 @@ var CATALOG_SOURCE = [
223
223
  category: "delegation",
224
224
  severity: "info",
225
225
  privacyClass: "pseudonymous",
226
- producer: "src/index.ts:780",
226
+ producer: "src/index.ts:785",
227
227
  consumers: CONSUMER_COST_CORRECTION,
228
228
  retentionOwnerIssue: ISSUE_COST_RETENTION,
229
229
  requiredWorkflowIds: REQUIRE_SESSION_AND_TASK,
@@ -236,7 +236,7 @@ var CATALOG_SOURCE = [
236
236
  category: "delegation",
237
237
  severity: "info",
238
238
  privacyClass: "pseudonymous",
239
- producer: "src/index.ts:1767",
239
+ producer: "src/index.ts:1796",
240
240
  consumers: NO_CONSUMERS,
241
241
  futureOwnerIssue: ISSUE_SINK,
242
242
  retentionOwnerIssue: ISSUE_COST_RETENTION,
@@ -250,7 +250,7 @@ var CATALOG_SOURCE = [
250
250
  category: "delegation",
251
251
  severity: "notice",
252
252
  privacyClass: "pseudonymous",
253
- producer: "src/index.ts:1787",
253
+ producer: "src/index.ts:1816",
254
254
  consumers: CONSUMER_COST_JOIN,
255
255
  retentionOwnerIssue: ISSUE_COST_RETENTION,
256
256
  requiredWorkflowIds: REQUIRE_SESSION,
@@ -1846,6 +1846,8 @@ function toLegacyTelemetryLine(event) {
1846
1846
  };
1847
1847
  }
1848
1848
  // src/observability/otel-mapping.ts
1849
+ var OTEL_GENAI_MAPPING_VERSION = "1.29.0";
1850
+ var OPENINFERENCE_MAPPING_VERSION = "0.1.14";
1849
1851
  var SWARM_EXTENSION_PREFIX = "swarm.";
1850
1852
  var OTEL_GENAI_ATTRIBUTES = Object.freeze({
1851
1853
  kind: "gen_ai.operation.name",
@@ -2309,4 +2311,4 @@ var _internals = {
2309
2311
  toLegacyTelemetryLine
2310
2312
  };
2311
2313
 
2312
- export { resolveLineageSalt, pseudonymousRef, extractWorkflowIds, startHeartbeatTracking, getLastHeartbeat, stopHeartbeatTracking, resetHeartbeatTrackingForTesting, ROTATION_CHECK_INTERVAL, resetTelemetryForTesting, initTelemetry, emit, addTelemetryListener, removeTelemetryListener, rotateTelemetryIfNeeded, flushAndDrainTelemetry, telemetry, _internals };
2314
+ export { resolveLineageSalt, pseudonymousRef, extractWorkflowIds, OTEL_GENAI_MAPPING_VERSION, OPENINFERENCE_MAPPING_VERSION, startHeartbeatTracking, getLastHeartbeat, stopHeartbeatTracking, resetHeartbeatTrackingForTesting, ROTATION_CHECK_INTERVAL, resetTelemetryForTesting, initTelemetry, emit, addTelemetryListener, removeTelemetryListener, rotateTelemetryIfNeeded, flushAndDrainTelemetry, telemetry, _internals };
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  validateSwarmPath
4
- } from "./index-kear8gb7.js";
4
+ } from "./index-b3pmzbh1.js";
5
5
  import {
6
6
  atomicWriteSwarmFileSync
7
- } from "./index-v3xc4sde.js";
7
+ } from "./index-nbdmdyke.js";
8
8
 
9
9
  // src/hooks/delegation-gate/worktree-provisioning-owner.ts
10
10
  import { createHash } from "crypto";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  _internals,
4
4
  resolveWorktreeIsolationConfig
5
- } from "./index-xkf3672y.js";
5
+ } from "./index-mjn6aqqk.js";
6
6
  import {
7
7
  ApprovalEvidenceSchema,
8
8
  BaseEvidenceSchema,
@@ -44,7 +44,7 @@ import {
44
44
  loadPluginConfigWithMeta,
45
45
  loadPluginConfigWithMetaAsync,
46
46
  resetConfigAdvisoryDedup
47
- } from "./index-91ww9hyr.js";
47
+ } from "./index-td6xrw55.js";
48
48
  import"./index-0mhftbpp.js";
49
49
  import"./index-a1w58b47.js";
50
50
  import {
@@ -70,7 +70,7 @@ import {
70
70
  TurboConfigSchema,
71
71
  WorktreeIsolationConfigSchema,
72
72
  resolveAutoReviewConfig
73
- } from "./index-apy1qfj0.js";
73
+ } from "./index-4wc5gfgm.js";
74
74
  import {
75
75
  ALL_AGENT_NAMES,
76
76
  ALL_SUBAGENT_NAMES,
@@ -2,31 +2,31 @@
2
2
  import {
3
3
  derivePlanId,
4
4
  derivePlanIdentityHash
5
- } from "./index-h439y187.js";
5
+ } from "./index-bernkwgf.js";
6
6
  import {
7
7
  getProjectDb,
8
8
  projectDbExists,
9
9
  withImmediateTransaction,
10
10
  withProjectDbReadOnly
11
- } from "./index-wst6n478.js";
11
+ } from "./index-dvbf6fpn.js";
12
12
  import {
13
13
  assertProjectRoot,
14
14
  withEvidenceLock
15
- } from "./index-4r5pmtvk.js";
15
+ } from "./index-bx1wgn3a.js";
16
16
  import {
17
17
  emit
18
- } from "./index-z6qreakh.js";
18
+ } from "./index-nprdr0sm.js";
19
19
  import {
20
20
  ExecutionProfileSchema,
21
21
  PlanSchema,
22
22
  TaskStatusSchema,
23
23
  init_loader,
24
24
  loadPluginConfig
25
- } from "./index-91ww9hyr.js";
25
+ } from "./index-td6xrw55.js";
26
26
  import {
27
27
  init_package,
28
28
  package_default
29
- } from "./index-apy1qfj0.js";
29
+ } from "./index-4wc5gfgm.js";
30
30
  import {
31
31
  criticalWarn,
32
32
  init_logger,
@@ -2005,4 +2005,4 @@ var _internals = {
2005
2005
  randomUUID: () => crypto.randomUUID()
2006
2006
  };
2007
2007
 
2008
- export { renderPlanningProfileDirective, resolvePlanningProfile, normalizeExecutionProfileForHash, LedgerStaleWriterError, computePlanLedgerHash, computePlanStructureHash, computeCurrentPlanHash, ledgerExists, getLatestLedgerSeq, readLedgerEvents, initLedger, readPlanEpochIdentity, getOrAdoptPlanEpochUnderLock, appendLedgerEvent, takeSnapshotWithRetry, takeSnapshotEvent, replaceTruncatedLedgerWithRecoveryRoot, clearPlanLedgerForReset, replacePlanLedgerWithRoot, replayFromLedger, peekPlanFromLedger, replayFromLedgerWithStatus, readLedgerEventsWithIntegrity, loadLastApprovedPlan };
2008
+ export { renderPlanningProfileDirective, resolvePlanningProfile, normalizeExecutionProfileForHash, LedgerStaleWriterError, computePlanLedgerHash, computePlanStructureHash, computeCurrentPlanHash, ledgerExists, getLatestLedgerSeq, readLedgerEvents, initLedger, readPlanEpochIdentity, getOrAdoptPlanEpochUnderLock, appendLedgerEvent, takeSnapshotWithRetry, takeSnapshotEvent, replaceTruncatedLedgerWithRecoveryRoot, clearPlanLedgerForReset, replacePlanLedgerWithRoot, replayFromLedger, peekPlanFromLedger, replayFromLedgerWithStatus, readLedgerEventsWithIntegrity, loadLastApprovedPlan, loadLastPlanCriticApprovedSnapshot };
@@ -3,7 +3,7 @@ import {
3
3
  queryHistoricalOutcomes,
4
4
  readKnowledgeEvents,
5
5
  recordKnowledgeEvent
6
- } from "./index-6df6wbvj.js";
6
+ } from "./index-8w1mrvbd.js";
7
7
  import {
8
8
  jaccardBigram,
9
9
  readKnowledge,
@@ -11,7 +11,7 @@ import {
11
11
  resolveSwarmKnowledgePath,
12
12
  transactKnowledge,
13
13
  wordBigrams
14
- } from "./index-2xbww1x0.js";
14
+ } from "./index-ssx8087p.js";
15
15
  import {
16
16
  init_knowledge_types,
17
17
  isActiveStatus
@@ -224,11 +224,11 @@ async function maybeQuarantineOnContradiction(directory, entryId, threshold, win
224
224
  alreadyInactive: true
225
225
  };
226
226
  }
227
- const { quarantineEntry } = await import("./knowledge-validator-crsfb2cc.js");
227
+ const { quarantineEntry } = await import("./knowledge-validator-22qppdyv.js");
228
228
  let policyConfig;
229
229
  try {
230
- const { KnowledgeConfigSchema } = await import("./schema-3ja77k4y.js");
231
- const { loadPluginConfigWithMeta } = await import("./index-q8091q8b.js");
230
+ const { KnowledgeConfigSchema } = await import("./schema-17h2hcw9.js");
231
+ const { loadPluginConfigWithMeta } = await import("./index-p6fj7qz7.js");
232
232
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
233
233
  policyConfig = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
234
234
  } catch {
@@ -11,16 +11,16 @@ import {
11
11
  } from "./index-ae75rja9.js";
12
12
  import {
13
13
  resolveKnowledgeStoreDir
14
- } from "./index-8ybjqg51.js";
14
+ } from "./index-9ttqbhvw.js";
15
15
  import {
16
16
  atomicWriteFile
17
- } from "./index-4r5pmtvk.js";
17
+ } from "./index-bx1wgn3a.js";
18
18
  import {
19
19
  require_proper_lockfile
20
20
  } from "./index-7g4c7s5r.js";
21
21
  import {
22
22
  readCachedParsedFile
23
- } from "./index-v3xc4sde.js";
23
+ } from "./index-nbdmdyke.js";
24
24
  import {
25
25
  init_knowledge_types,
26
26
  isActiveStatus
@@ -739,7 +739,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
739
739
  const {
740
740
  readAuthoritativeKnowledgeCounterRollups,
741
741
  effectiveRetrievalOutcomes
742
- } = await import("./knowledge-events-27gwv47q.js");
742
+ } = await import("./knowledge-events-s6s8qedx.js");
743
743
  const rollups = await readAuthoritativeKnowledgeCounterRollups(directory);
744
744
  const flagIds = new Set;
745
745
  for (const e of atFloor) {
@@ -806,11 +806,11 @@ async function applyConfidenceFloorAction(directory, touched, options) {
806
806
  });
807
807
  }
808
808
  if (action === "quarantine" && toQuarantine.length > 0) {
809
- const { quarantineEntry } = await import("./knowledge-validator-crsfb2cc.js");
810
- const { KnowledgeConfigSchema } = await import("./schema-3ja77k4y.js");
809
+ const { quarantineEntry } = await import("./knowledge-validator-22qppdyv.js");
810
+ const { KnowledgeConfigSchema } = await import("./schema-17h2hcw9.js");
811
811
  let config;
812
812
  try {
813
- const { loadPluginConfigWithMeta } = await import("./index-q8091q8b.js");
813
+ const { loadPluginConfigWithMeta } = await import("./index-p6fj7qz7.js");
814
814
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
815
815
  config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
816
816
  } catch {
@@ -4,7 +4,7 @@ import {
4
4
  readShellAuditTail,
5
5
  redactPath,
6
6
  redactShellCommand
7
- } from "./index-chebm5h5.js";
7
+ } from "./index-zw3hkzch.js";
8
8
 
9
9
  // src/services/guardrail-log-service.ts
10
10
  var BLOCK_TYPES = new Set([
@@ -14,7 +14,7 @@ import {
14
14
  PluginConfigSchema,
15
15
  init_schema,
16
16
  resolveExternalSkillsConfig
17
- } from "./index-apy1qfj0.js";
17
+ } from "./index-4wc5gfgm.js";
18
18
  import {
19
19
  exports_external,
20
20
  init_zod
@@ -11,7 +11,7 @@ import {
11
11
  assertProjectRoot,
12
12
  atomicWriteFile,
13
13
  withEvidenceLock
14
- } from "./index-4r5pmtvk.js";
14
+ } from "./index-bx1wgn3a.js";
15
15
  import {
16
16
  exports_external,
17
17
  init_zod
@@ -1,12 +1,13 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-3jmb4ppa.js";
4
+ } from "./index-n0d5hrs4.js";
5
5
  import {
6
6
  handleGuardrailLog
7
- } from "./index-4kv1ew3q.js";
7
+ } from "./index-t73888m0.js";
8
8
  import {
9
9
  COMMAND_REGISTRY,
10
+ DEFAULT_CI_DEADLINE_MS,
10
11
  SWARM_COMMAND_TOOL_ALLOWLIST,
11
12
  SWARM_COMMAND_TOOL_COMMANDS,
12
13
  VALID_COMMANDS,
@@ -14,6 +15,7 @@ import {
14
15
  canonicalCommandKey,
15
16
  classifySwarmCommandChatFallbackUse,
16
17
  classifySwarmCommandToolUse,
18
+ createSignalCancellation,
17
19
  executeSwarmCommand,
18
20
  formatCommandNotFound,
19
21
  handleAcknowledgeSpecDriftCommand,
@@ -30,6 +32,7 @@ import {
30
32
  handleBlueprintValidateCommand,
31
33
  handleBrainstormCommand,
32
34
  handleCheckpointCommand,
35
+ handleCiCommand,
33
36
  handleCiSimulateCommand,
34
37
  handleClarifyCommand,
35
38
  handleCloseCommand,
@@ -94,66 +97,67 @@ import {
94
97
  handleWriteRetroCommand,
95
98
  normalizeSwarmCommandInput,
96
99
  resolveCommand
97
- } from "./index-kkmezerc.js";
98
- import"./index-d5qf7hvh.js";
99
- import"./index-qhey6vc3.js";
100
- import"./index-chebm5h5.js";
101
- import"./index-nwwk3dej.js";
102
- import"./index-5g6rhkn7.js";
103
- import"./index-w1dfkp1q.js";
104
- import"./index-gp9yzr1v.js";
100
+ } from "./index-j144fgk8.js";
101
+ import"./index-5400m33a.js";
102
+ import"./index-7h01bkm6.js";
103
+ import"./index-zw3hkzch.js";
104
+ import"./index-cgpwjctj.js";
105
+ import"./index-ye43mdfm.js";
106
+ import"./index-3p3y55xg.js";
107
+ import"./index-xnpjwc4h.js";
105
108
  import"./index-txdagbh7.js";
106
109
  import"./index-9br68j86.js";
107
110
  import"./index-cw912re7.js";
108
- import"./index-xhb4gryr.js";
109
- import"./index-bw9x8d8n.js";
110
- import"./index-9b2105n0.js";
111
+ import"./index-9xk97bcf.js";
112
+ import"./index-r1z8nrb6.js";
113
+ import"./index-3eh2n3dx.js";
111
114
  import"./index-fyfbpz4f.js";
112
- import"./index-dfyv3xkd.js";
115
+ import"./index-gfbggp8k.js";
116
+ import"./index-0hgmsyfp.js";
113
117
  import"./index-zsrtt42s.js";
114
- import"./index-j0bxxz9d.js";
115
- import"./index-5zqakgp4.js";
116
- import"./index-bvqqwx84.js";
118
+ import"./index-5bbem0ey.js";
119
+ import"./index-fhh02gwx.js";
120
+ import"./index-nyn01yrz.js";
117
121
  import"./index-b43rt5ph.js";
118
122
  import"./index-q7sjgr1y.js";
119
- import"./index-gmpmgtzn.js";
120
- import"./index-qkwtth00.js";
121
- import"./index-f1fps3w9.js";
122
- import"./index-6df6wbvj.js";
123
- import"./index-kear8gb7.js";
124
- import"./index-p612v1mv.js";
125
- import"./index-qthc56c4.js";
126
- import"./index-m35hybf0.js";
123
+ import"./index-06rbdzqn.js";
124
+ import"./index-59fcfpkh.js";
125
+ import"./index-0xprxg95.js";
126
+ import"./index-8w1mrvbd.js";
127
+ import"./index-b3pmzbh1.js";
128
+ import"./index-2s7dvzff.js";
129
+ import"./index-31sqcdsd.js";
130
+ import"./index-bm5xrfnx.js";
127
131
  import"./index-rtry5xyf.js";
128
- import"./index-xkf3672y.js";
132
+ import"./index-mjn6aqqk.js";
129
133
  import"./index-3qf1vxtb.js";
130
134
  import"./index-n832052r.js";
131
- import"./index-y85aptep.js";
132
- import"./index-gh9ybrrs.js";
133
- import"./index-a8xbvsse.js";
134
- import"./index-pyf517sz.js";
135
- import"./index-h439y187.js";
136
- import"./index-wst6n478.js";
135
+ import"./index-3axdtaf0.js";
136
+ import"./index-pw00xcj0.js";
137
+ import"./index-fgp96k3r.js";
138
+ import"./index-br3mvbsa.js";
139
+ import"./index-bernkwgf.js";
140
+ import"./index-dvbf6fpn.js";
137
141
  import"./index-rdm3px0g.js";
138
142
  import"./index-ry16d01s.js";
139
- import"./index-qwsh0h2g.js";
140
- import"./index-2xbww1x0.js";
143
+ import"./index-5qt9yf5w.js";
144
+ import"./index-ssx8087p.js";
141
145
  import"./index-vzm6zre7.js";
142
146
  import"./index-ae75rja9.js";
143
- import"./index-8ybjqg51.js";
144
- import"./index-4r5pmtvk.js";
147
+ import"./index-9ttqbhvw.js";
148
+ import"./index-bx1wgn3a.js";
145
149
  import"./index-7g4c7s5r.js";
146
- import"./index-v3xc4sde.js";
147
- import"./index-z6qreakh.js";
150
+ import"./index-nprdr0sm.js";
151
+ import"./index-nbdmdyke.js";
148
152
  import"./index-1xnse449.js";
149
153
  import"./index-ee6ydtfe.js";
150
- import"./index-91ww9hyr.js";
154
+ import"./index-td6xrw55.js";
151
155
  import"./index-0mhftbpp.js";
152
156
  import"./index-a1w58b47.js";
153
157
  import {
154
158
  init_schema,
155
159
  stripKnownSwarmPrefix
156
- } from "./index-apy1qfj0.js";
160
+ } from "./index-4wc5gfgm.js";
157
161
  import {
158
162
  AGENT_TOOL_MAP,
159
163
  ORCHESTRATOR_NAME,
@@ -162,7 +166,7 @@ import {
162
166
  import"./index-bk5tah7q.js";
163
167
  import"./index-bpmtbmy9.js";
164
168
  import"./index-zpsr8rpc.js";
165
- import"./index-q1r1cfww.js";
169
+ import"./index-76qm2c2y.js";
166
170
  import"./index-yzjaj53h.js";
167
171
  import"./index-zgwm4ryv.js";
168
172
  import"./index-a76rekgs.js";
@@ -489,6 +493,7 @@ export {
489
493
  handleCloseCommand,
490
494
  handleClarifyCommand,
491
495
  handleCiSimulateCommand,
496
+ handleCiCommand,
492
497
  handleCheckpointCommand,
493
498
  handleBrainstormCommand,
494
499
  handleBlueprintValidateCommand,
@@ -506,6 +511,7 @@ export {
506
511
  formatCommandNotFound,
507
512
  executeSwarmCommand,
508
513
  createSwarmCommandHandler,
514
+ createSignalCancellation,
509
515
  classifySwarmCommandToolUse,
510
516
  classifySwarmCommandChatFallbackUse,
511
517
  buildHelpText,
@@ -513,6 +519,7 @@ export {
513
519
  VALID_COMMANDS,
514
520
  SWARM_COMMAND_TOOL_COMMANDS,
515
521
  SWARM_COMMAND_TOOL_ALLOWLIST,
522
+ DEFAULT_CI_DEADLINE_MS,
516
523
  COMMAND_REGISTRY,
517
524
  COMMAND_NAME_SET,
518
525
  COMMAND_NAMES
@@ -12,7 +12,7 @@ import {
12
12
  PluginConfigSchema,
13
13
  init_schema,
14
14
  stripKnownSwarmPrefix
15
- } from "./index-apy1qfj0.js";
15
+ } from "./index-4wc5gfgm.js";
16
16
  import {
17
17
  ALL_AGENT_NAMES,
18
18
  TOOL_NAME_SET,
@@ -1116,6 +1116,41 @@ function validateConfigKey(path2, value) {
1116
1116
  emitObjectTypeMismatch("memory", value, findings);
1117
1117
  break;
1118
1118
  }
1119
+ case "observability": {
1120
+ emitObjectTypeMismatch("observability", value, findings);
1121
+ if (typeof value === "object" && value !== null && !Array.isArray(value)) {
1122
+ const exportCfg = value.export;
1123
+ if (typeof exportCfg === "object" && exportCfg !== null && exportCfg.enabled === true) {
1124
+ const endpoint = exportCfg.endpoint;
1125
+ let problem = null;
1126
+ if (typeof endpoint !== "string" || endpoint.length === 0) {
1127
+ problem = "observability.export.enabled is true but endpoint is empty \u2014 the exporter stays disabled until an endpoint is configured.";
1128
+ } else {
1129
+ try {
1130
+ const url = new URL(endpoint);
1131
+ const host = url.hostname.replace(/^\[|\]$/g, "");
1132
+ const isLoopback = host === "localhost" || host === "127.0.0.1" || host === "::1";
1133
+ if (url.protocol !== "https:" && !isLoopback) {
1134
+ problem = "observability.export.endpoint uses plain http: for a non-loopback host \u2014 exported telemetry would travel unencrypted; use https: outside local test collectors.";
1135
+ }
1136
+ } catch {
1137
+ problem = "observability.export.endpoint is not a valid URL \u2014 the exporter stays disabled.";
1138
+ }
1139
+ }
1140
+ if (problem !== null) {
1141
+ findings.push({
1142
+ id: "observability-export-endpoint-policy",
1143
+ title: "OTLP export endpoint policy",
1144
+ description: problem,
1145
+ severity: "warn",
1146
+ path: "observability.export.endpoint",
1147
+ autoFixable: false
1148
+ });
1149
+ }
1150
+ }
1151
+ }
1152
+ break;
1153
+ }
1119
1154
  case "learning": {
1120
1155
  emitObjectTypeMismatch("learning", value, findings);
1121
1156
  break;
@@ -22,70 +22,71 @@ import {
22
22
  resolveFallbackModel,
23
23
  resolvePrimaryAgentNames,
24
24
  stripSwarmPrefix
25
- } from "./index-kkmezerc.js";
26
- import"./index-d5qf7hvh.js";
27
- import"./index-qhey6vc3.js";
28
- import"./index-chebm5h5.js";
29
- import"./index-nwwk3dej.js";
30
- import"./index-5g6rhkn7.js";
31
- import"./index-w1dfkp1q.js";
32
- import"./index-gp9yzr1v.js";
25
+ } from "./index-j144fgk8.js";
26
+ import"./index-5400m33a.js";
27
+ import"./index-7h01bkm6.js";
28
+ import"./index-zw3hkzch.js";
29
+ import"./index-cgpwjctj.js";
30
+ import"./index-ye43mdfm.js";
31
+ import"./index-3p3y55xg.js";
32
+ import"./index-xnpjwc4h.js";
33
33
  import"./index-txdagbh7.js";
34
34
  import"./index-9br68j86.js";
35
35
  import"./index-cw912re7.js";
36
- import"./index-xhb4gryr.js";
37
- import"./index-bw9x8d8n.js";
38
- import"./index-9b2105n0.js";
36
+ import"./index-9xk97bcf.js";
37
+ import"./index-r1z8nrb6.js";
38
+ import"./index-3eh2n3dx.js";
39
39
  import {
40
40
  createExplorerAgent
41
41
  } from "./index-fyfbpz4f.js";
42
- import"./index-dfyv3xkd.js";
42
+ import"./index-gfbggp8k.js";
43
+ import"./index-0hgmsyfp.js";
43
44
  import"./index-zsrtt42s.js";
44
- import"./index-j0bxxz9d.js";
45
- import"./index-5zqakgp4.js";
46
- import"./index-bvqqwx84.js";
45
+ import"./index-5bbem0ey.js";
46
+ import"./index-fhh02gwx.js";
47
+ import"./index-nyn01yrz.js";
47
48
  import"./index-b43rt5ph.js";
48
49
  import"./index-q7sjgr1y.js";
49
- import"./index-gmpmgtzn.js";
50
- import"./index-qkwtth00.js";
51
- import"./index-f1fps3w9.js";
52
- import"./index-6df6wbvj.js";
53
- import"./index-kear8gb7.js";
54
- import"./index-p612v1mv.js";
55
- import"./index-qthc56c4.js";
56
- import"./index-m35hybf0.js";
50
+ import"./index-06rbdzqn.js";
51
+ import"./index-59fcfpkh.js";
52
+ import"./index-0xprxg95.js";
53
+ import"./index-8w1mrvbd.js";
54
+ import"./index-b3pmzbh1.js";
55
+ import"./index-2s7dvzff.js";
56
+ import"./index-31sqcdsd.js";
57
+ import"./index-bm5xrfnx.js";
57
58
  import"./index-rtry5xyf.js";
58
- import"./index-xkf3672y.js";
59
+ import"./index-mjn6aqqk.js";
59
60
  import"./index-3qf1vxtb.js";
60
61
  import"./index-n832052r.js";
61
- import"./index-y85aptep.js";
62
- import"./index-gh9ybrrs.js";
63
- import"./index-a8xbvsse.js";
64
- import"./index-pyf517sz.js";
65
- import"./index-h439y187.js";
66
- import"./index-wst6n478.js";
62
+ import"./index-3axdtaf0.js";
63
+ import"./index-pw00xcj0.js";
64
+ import"./index-fgp96k3r.js";
65
+ import"./index-br3mvbsa.js";
66
+ import"./index-bernkwgf.js";
67
+ import"./index-dvbf6fpn.js";
67
68
  import"./index-rdm3px0g.js";
68
69
  import"./index-ry16d01s.js";
69
- import"./index-qwsh0h2g.js";
70
- import"./index-2xbww1x0.js";
70
+ import"./index-5qt9yf5w.js";
71
+ import"./index-ssx8087p.js";
71
72
  import"./index-vzm6zre7.js";
72
73
  import"./index-ae75rja9.js";
73
- import"./index-8ybjqg51.js";
74
- import"./index-4r5pmtvk.js";
74
+ import"./index-9ttqbhvw.js";
75
+ import"./index-bx1wgn3a.js";
75
76
  import"./index-7g4c7s5r.js";
76
- import"./index-v3xc4sde.js";
77
- import"./index-z6qreakh.js";
77
+ import"./index-nprdr0sm.js";
78
+ import"./index-nbdmdyke.js";
78
79
  import"./index-1xnse449.js";
79
80
  import"./index-ee6ydtfe.js";
80
- import"./index-91ww9hyr.js";
81
+ import"./index-td6xrw55.js";
81
82
  import"./index-0mhftbpp.js";
82
83
  import"./index-a1w58b47.js";
83
- import"./index-apy1qfj0.js";
84
+ import"./index-4wc5gfgm.js";
84
85
  import"./index-sxt7fgcw.js";
85
86
  import"./index-bk5tah7q.js";
86
87
  import"./index-bpmtbmy9.js";
87
88
  import"./index-zpsr8rpc.js";
88
- import"./index-q1r1cfww.js";
89
+ import"./index-76qm2c2y.js";
89
90
  import"./index-yzjaj53h.js";
90
91
  import"./index-zgwm4ryv.js";
91
92
  import"./index-a76rekgs.js";
@@ -1,14 +1,14 @@
1
1
  // @bun
2
2
  import {
3
3
  observeStoreHealth
4
- } from "./index-qwsh0h2g.js";
4
+ } from "./index-5qt9yf5w.js";
5
5
  import {
6
6
  telemetry
7
- } from "./index-z6qreakh.js";
7
+ } from "./index-nprdr0sm.js";
8
8
  import {
9
9
  init_schema,
10
10
  stripKnownSwarmPrefix
11
- } from "./index-apy1qfj0.js";
11
+ } from "./index-4wc5gfgm.js";
12
12
  import {
13
13
  init_constants
14
14
  } from "./index-sxt7fgcw.js";