opencode-swarm 7.144.2 → 7.144.4

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 (80) hide show
  1. package/.opencode/skills/swarm-pr-review/SKILL.md +3 -1
  2. package/.opencode/skills/swarm-pr-review/references/lane-output-recoverability.md +124 -0
  3. package/.opencode/skills/swarm-pr-review/references/prompt-templates.md +2 -0
  4. package/README.md +3 -1
  5. package/dist/background/pending-delegations.d.ts +34 -0
  6. package/dist/cli/{config-doctor-7dfvxwjb.js → config-doctor-rw9zrjk6.js} +3 -3
  7. package/dist/cli/{core-dwmwdc4y.js → core-zjx9aqaf.js} +3 -3
  8. package/dist/cli/{curation-policy-pkb2eeb1.js → curation-policy-0wbrh11c.js} +5 -5
  9. package/dist/cli/curator-drift-2jbjv03a.js +1 -1
  10. package/dist/cli/{curator-w213v33y.js → curator-g54a7wv0.js} +33 -33
  11. package/dist/cli/{curator-llm-factory-rrs1q4hg.js → curator-llm-factory-xgb4pxmm.js} +33 -33
  12. package/dist/cli/{evidence-summary-service-t7n2h1he.js → evidence-summary-service-fnr5y54e.js} +14 -14
  13. package/dist/cli/{gate-evidence-xvxn603y.js → gate-evidence-2xt1x07r.js} +7 -7
  14. package/dist/cli/{guardrail-explain-v1mwsnkq.js → guardrail-explain-6wcgr9tz.js} +34 -34
  15. package/dist/cli/{guardrail-log-dn03dpz2.js → guardrail-log-5w4b9zrw.js} +4 -4
  16. package/dist/cli/{hive-promoter-asjtj7ga.js → hive-promoter-x63ehffd.js} +35 -35
  17. package/dist/cli/{index-ckrasab9.js → index-03pv47h2.js} +9 -9
  18. package/dist/cli/{index-4q9vfav6.js → index-1csyxv0f.js} +1 -1
  19. package/dist/cli/{index-s2rcz51a.js → index-1jsmmx7y.js} +66 -34
  20. package/dist/cli/{index-jsfghpy2.js → index-2m7mavaz.js} +2 -2
  21. package/dist/cli/{index-p3tnmkvc.js → index-4w5qdbk7.js} +12 -12
  22. package/dist/cli/{index-dhh2j2nd.js → index-8j0va7jp.js} +2 -2
  23. package/dist/cli/{index-y95nwsge.js → index-9qq7c18c.js} +1 -1
  24. package/dist/cli/{index-qpt8ahph.js → index-az8etqpp.js} +12 -12
  25. package/dist/cli/{index-gdd4jt6b.js → index-bt9aa01f.js} +1 -1
  26. package/dist/cli/{index-333kvewd.js → index-btmsqv7p.js} +4 -4
  27. package/dist/cli/{index-d55crzd4.js → index-cz25e8xp.js} +7 -7
  28. package/dist/cli/{index-g2ajae1z.js → index-d12jd5mn.js} +2 -2
  29. package/dist/cli/{index-tq5s07ta.js → index-dty5qgk2.js} +1 -1
  30. package/dist/cli/{index-k31en0ja.js → index-f9vvg5xb.js} +3 -3
  31. package/dist/cli/{index-k92cagmt.js → index-fqcjragy.js} +2 -2
  32. package/dist/cli/{index-jb4tchvy.js → index-h98t1m88.js} +2 -2
  33. package/dist/cli/{index-4fda8kkw.js → index-jabkn643.js} +30 -5
  34. package/dist/cli/{index-erfnw81g.js → index-mazgg5s2.js} +1 -1
  35. package/dist/cli/{index-m6wv2qdr.js → index-nckg4gxb.js} +2 -2
  36. package/dist/cli/{index-tg9fn2dy.js → index-p7cm3gtj.js} +38 -36
  37. package/dist/cli/{index-dg2w0wr4.js → index-psvxq93b.js} +3 -3
  38. package/dist/cli/{index-zr370283.js → index-pw83zgny.js} +3 -3
  39. package/dist/cli/{index-nretd4qn.js → index-q4ed1jk7.js} +1539 -963
  40. package/dist/cli/{index-hqvt3mhk.js → index-q67jb94n.js} +1 -1
  41. package/dist/cli/{index-whezv7vc.js → index-v3y3qg48.js} +1 -1
  42. package/dist/cli/{index-av0f6mm0.js → index-x6tp0hfr.js} +9 -9
  43. package/dist/cli/{index-h3z64mhz.js → index-y8j8ehc8.js} +2 -2
  44. package/dist/cli/{index-ne8cfgw5.js → index-yts89pqg.js} +4 -4
  45. package/dist/cli/{index-w7x7qxz2.js → index-ywn7vtxp.js} +1 -1
  46. package/dist/cli/{index-g1c5fgaw.js → index-z6v7kwpa.js} +4 -4
  47. package/dist/cli/{index-7ca3a6gj.js → index-zb0xcz9t.js} +10 -10
  48. package/dist/cli/index.js +34 -34
  49. package/dist/cli/{knowledge-escalator-cg19dhe5.js → knowledge-escalator-ypg14d5r.js} +13 -13
  50. package/dist/cli/{knowledge-events-yzvysaqd.js → knowledge-events-nkrym4wb.js} +11 -11
  51. package/dist/cli/{knowledge-link-fn5j3r4q.js → knowledge-link-e4qgqmpx.js} +4 -4
  52. package/dist/cli/{knowledge-store-6f77xpmm.js → knowledge-store-vh3nhtg2.js} +6 -6
  53. package/dist/cli/{knowledge-validator-4b28zdxa.js → knowledge-validator-jrxvexv6.js} +8 -8
  54. package/dist/cli/{pending-delegations-thy8g30k.js → pending-delegations-pw79c8ds.js} +3 -3
  55. package/dist/cli/{pr-subscriptions-jyav582d.js → pr-subscriptions-fk628bhc.js} +3 -3
  56. package/dist/cli/{runner-pde6b5sx.js → runner-b02sz2vx.js} +5 -5
  57. package/dist/cli/{scan-cursor-nqbb1xt6.js → scan-cursor-fp7w5jmc.js} +7 -7
  58. package/dist/cli/{schema-jj2pb6zp.js → schema-rptwqbm4.js} +2 -2
  59. package/dist/cli/{scope-persistence-63nasq0z.js → scope-persistence-0bkaxawa.js} +7 -7
  60. package/dist/cli/{skill-generator-nsymtdqm.js → skill-generator-nh8b4gjv.js} +16 -16
  61. package/dist/cli/{telemetry-xyfb5vm8.js → telemetry-cybx6cfz.js} +1 -1
  62. package/dist/cli/{worktree-collision-ownership-j6d33p49.js → worktree-collision-ownership-hqd9ypsz.js} +6 -6
  63. package/dist/cli/{worktree-isolation-g54kxw6x.js → worktree-isolation-canf3rj8.js} +33 -33
  64. package/dist/commands/index.d.ts +1 -0
  65. package/dist/commands/recover.d.ts +17 -0
  66. package/dist/commands/registry.d.ts +10 -2
  67. package/dist/commands/reset-session.d.ts +2 -0
  68. package/dist/hooks/context-budget.d.ts +4 -0
  69. package/dist/hooks/context-usage.d.ts +48 -0
  70. package/dist/hooks/pr-workflow-gate.d.ts +160 -4
  71. package/dist/index.js +556 -550
  72. package/dist/observability/catalog.d.ts +8 -6
  73. package/dist/sast/semgrep.d.ts +3 -2
  74. package/dist/telemetry.d.ts +17 -1
  75. package/dist/tools/context-status.d.ts +9 -3
  76. package/dist/tools/dispatch-lanes.d.ts +27 -2
  77. package/dist/tools/pre-check-batch.d.ts +9 -0
  78. package/dist/tools/sast-scan.d.ts +3 -0
  79. package/dist/workflow/coder-settlement.d.ts +74 -0
  80. package/package.json +1 -1
@@ -1,59 +1,59 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-jsfghpy2.js";
5
- import"./index-nretd4qn.js";
6
- import"./index-g2ajae1z.js";
7
- import"./index-jb4tchvy.js";
8
- import"./index-qpt8ahph.js";
4
+ } from "./index-2m7mavaz.js";
5
+ import"./index-q4ed1jk7.js";
6
+ import"./index-d12jd5mn.js";
7
+ import"./index-h98t1m88.js";
8
+ import"./index-az8etqpp.js";
9
9
  import"./index-134d35c1.js";
10
10
  import"./index-b6e016tv.js";
11
- import"./index-4q9vfav6.js";
12
- import"./index-k92cagmt.js";
11
+ import"./index-1csyxv0f.js";
12
+ import"./index-fqcjragy.js";
13
13
  import"./index-y8552snf.js";
14
- import"./index-m6wv2qdr.js";
14
+ import"./index-nckg4gxb.js";
15
15
  import"./index-70ha9e09.js";
16
16
  import"./index-c8s9a3zh.js";
17
17
  import"./index-9ss2m4rs.js";
18
- import"./index-d55crzd4.js";
19
18
  import"./index-74hpm6sh.js";
20
- import"./index-7ca3a6gj.js";
21
- import"./index-av0f6mm0.js";
22
- import"./index-zr370283.js";
23
- import"./index-g1c5fgaw.js";
24
- import"./index-556ja8an.js";
25
- import"./index-gdd4jt6b.js";
19
+ import"./index-bt9aa01f.js";
20
+ import"./index-zb0xcz9t.js";
21
+ import"./index-x6tp0hfr.js";
22
+ import"./index-yts89pqg.js";
23
+ import"./index-dty5qgk2.js";
24
+ import"./index-rtry5xyf.js";
26
25
  import"./index-zsrtt42s.js";
26
+ import"./index-jabkn643.js";
27
27
  import"./index-k3cxyk66.js";
28
- import"./index-4fda8kkw.js";
29
- import"./index-dhh2j2nd.js";
30
- import"./index-8fwhhayc.js";
31
- import"./index-q1exe2b3.js";
28
+ import"./index-cz25e8xp.js";
29
+ import"./index-8j0va7jp.js";
30
+ import"./index-pw83zgny.js";
31
+ import"./index-z6v7kwpa.js";
32
+ import"./index-556ja8an.js";
32
33
  import"./index-7sy3aa9m.js";
33
34
  import"./index-wx8zdh4a.js";
34
- import"./index-p3tnmkvc.js";
35
- import"./index-dg2w0wr4.js";
35
+ import"./index-8fwhhayc.js";
36
+ import"./index-q1exe2b3.js";
37
+ import"./index-03pv47h2.js";
38
+ import"./index-4w5qdbk7.js";
39
+ import"./index-psvxq93b.js";
36
40
  import"./index-gprxjmm7.js";
37
41
  import"./index-n832052r.js";
38
- import"./index-y95nwsge.js";
39
- import"./index-h3z64mhz.js";
40
42
  import"./index-rn0eq85g.js";
41
- import"./index-4rhhvd1a.js";
42
- import"./index-whezv7vc.js";
43
43
  import"./index-z6xqpmqg.js";
44
+ import"./index-9qq7c18c.js";
45
+ import"./index-y8j8ehc8.js";
46
+ import"./index-4rhhvd1a.js";
47
+ import"./index-v3y3qg48.js";
44
48
  import"./index-zjygnfay.js";
45
- import"./index-ne8cfgw5.js";
46
- import"./index-tq5s07ta.js";
47
- import"./index-rtry5xyf.js";
48
- import"./index-ckrasab9.js";
49
49
  import"./index-ae75rja9.js";
50
- import"./index-w7x7qxz2.js";
51
- import"./index-erfnw81g.js";
52
- import"./index-bk5tah7q.js";
50
+ import"./index-ywn7vtxp.js";
51
+ import"./index-mazgg5s2.js";
53
52
  import"./index-ed5ykebp.js";
54
- import"./index-k31en0ja.js";
53
+ import"./index-bk5tah7q.js";
54
+ import"./index-f9vvg5xb.js";
55
+ import"./index-1jsmmx7y.js";
55
56
  import"./index-7g4c7s5r.js";
56
- import"./index-s2rcz51a.js";
57
57
  import"./index-bpmtbmy9.js";
58
58
  import"./index-4nt52yr9.js";
59
59
  import"./index-zgwm4ryv.js";
@@ -1,12 +1,12 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailLog
4
- } from "./index-hqvt3mhk.js";
5
- import"./index-g2ajae1z.js";
4
+ } from "./index-q67jb94n.js";
5
+ import"./index-d12jd5mn.js";
6
6
  import"./index-556ja8an.js";
7
- import"./index-h3z64mhz.js";
8
- import"./index-whezv7vc.js";
9
7
  import"./index-z6xqpmqg.js";
8
+ import"./index-y8j8ehc8.js";
9
+ import"./index-v3y3qg48.js";
10
10
  import"./index-zjygnfay.js";
11
11
  import"./index-bk5tah7q.js";
12
12
  import"./index-bpmtbmy9.js";
@@ -7,60 +7,60 @@ import {
7
7
  isHiveEligible,
8
8
  promoteFromSwarm,
9
9
  promoteToHive
10
- } from "./index-nretd4qn.js";
11
- import"./index-g2ajae1z.js";
12
- import"./index-jb4tchvy.js";
13
- import"./index-qpt8ahph.js";
10
+ } from "./index-q4ed1jk7.js";
11
+ import"./index-d12jd5mn.js";
12
+ import"./index-h98t1m88.js";
13
+ import"./index-az8etqpp.js";
14
14
  import"./index-134d35c1.js";
15
15
  import"./index-b6e016tv.js";
16
- import"./index-4q9vfav6.js";
17
- import"./index-k92cagmt.js";
16
+ import"./index-1csyxv0f.js";
17
+ import"./index-fqcjragy.js";
18
18
  import"./index-y8552snf.js";
19
- import"./index-m6wv2qdr.js";
19
+ import"./index-nckg4gxb.js";
20
20
  import"./index-70ha9e09.js";
21
21
  import"./index-c8s9a3zh.js";
22
22
  import"./index-9ss2m4rs.js";
23
- import"./index-d55crzd4.js";
24
23
  import"./index-74hpm6sh.js";
25
- import"./index-7ca3a6gj.js";
26
- import"./index-av0f6mm0.js";
27
- import"./index-zr370283.js";
28
- import"./index-g1c5fgaw.js";
29
- import"./index-556ja8an.js";
30
- import"./index-gdd4jt6b.js";
24
+ import"./index-bt9aa01f.js";
25
+ import"./index-zb0xcz9t.js";
26
+ import"./index-x6tp0hfr.js";
27
+ import"./index-yts89pqg.js";
28
+ import"./index-dty5qgk2.js";
29
+ import"./index-rtry5xyf.js";
31
30
  import"./index-zsrtt42s.js";
31
+ import"./index-jabkn643.js";
32
32
  import"./index-k3cxyk66.js";
33
- import"./index-4fda8kkw.js";
34
- import"./index-dhh2j2nd.js";
35
- import"./index-8fwhhayc.js";
36
- import"./index-q1exe2b3.js";
33
+ import"./index-cz25e8xp.js";
34
+ import"./index-8j0va7jp.js";
35
+ import"./index-pw83zgny.js";
36
+ import"./index-z6v7kwpa.js";
37
+ import"./index-556ja8an.js";
37
38
  import"./index-7sy3aa9m.js";
38
39
  import"./index-wx8zdh4a.js";
39
- import"./index-p3tnmkvc.js";
40
- import"./index-dg2w0wr4.js";
40
+ import"./index-8fwhhayc.js";
41
+ import"./index-q1exe2b3.js";
42
+ import {
43
+ resolveHiveKnowledgePath
44
+ } from "./index-03pv47h2.js";
45
+ import"./index-4w5qdbk7.js";
46
+ import"./index-psvxq93b.js";
41
47
  import"./index-gprxjmm7.js";
42
48
  import"./index-n832052r.js";
43
- import"./index-y95nwsge.js";
44
- import"./index-h3z64mhz.js";
45
49
  import"./index-rn0eq85g.js";
46
- import"./index-4rhhvd1a.js";
47
- import"./index-whezv7vc.js";
48
50
  import"./index-z6xqpmqg.js";
51
+ import"./index-9qq7c18c.js";
52
+ import"./index-y8j8ehc8.js";
53
+ import"./index-4rhhvd1a.js";
54
+ import"./index-v3y3qg48.js";
49
55
  import"./index-zjygnfay.js";
50
- import"./index-ne8cfgw5.js";
51
- import"./index-tq5s07ta.js";
52
- import"./index-rtry5xyf.js";
53
- import {
54
- resolveHiveKnowledgePath
55
- } from "./index-ckrasab9.js";
56
56
  import"./index-ae75rja9.js";
57
- import"./index-w7x7qxz2.js";
58
- import"./index-erfnw81g.js";
59
- import"./index-bk5tah7q.js";
57
+ import"./index-ywn7vtxp.js";
58
+ import"./index-mazgg5s2.js";
60
59
  import"./index-ed5ykebp.js";
61
- import"./index-k31en0ja.js";
60
+ import"./index-bk5tah7q.js";
61
+ import"./index-f9vvg5xb.js";
62
+ import"./index-1jsmmx7y.js";
62
63
  import"./index-7g4c7s5r.js";
63
- import"./index-s2rcz51a.js";
64
64
  import"./index-bpmtbmy9.js";
65
65
  import"./index-4nt52yr9.js";
66
66
  import"./index-zgwm4ryv.js";
@@ -6,17 +6,17 @@ import {
6
6
  } from "./index-ae75rja9.js";
7
7
  import {
8
8
  resolveKnowledgeStoreDir
9
- } from "./index-w7x7qxz2.js";
9
+ } from "./index-ywn7vtxp.js";
10
10
  import {
11
11
  atomicWriteFile
12
- } from "./index-erfnw81g.js";
12
+ } from "./index-mazgg5s2.js";
13
+ import {
14
+ readCachedParsedFile
15
+ } from "./index-ed5ykebp.js";
13
16
  import {
14
17
  init_knowledge_types,
15
18
  isActiveStatus
16
19
  } from "./index-bk5tah7q.js";
17
- import {
18
- readCachedParsedFile
19
- } from "./index-ed5ykebp.js";
20
20
  import {
21
21
  require_proper_lockfile
22
22
  } from "./index-7g4c7s5r.js";
@@ -709,7 +709,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
709
709
  const {
710
710
  readAuthoritativeKnowledgeCounterRollups,
711
711
  effectiveRetrievalOutcomes
712
- } = await import("./knowledge-events-yzvysaqd.js");
712
+ } = await import("./knowledge-events-nkrym4wb.js");
713
713
  const rollups = await readAuthoritativeKnowledgeCounterRollups(directory);
714
714
  const flagIds = new Set;
715
715
  for (const e of atFloor) {
@@ -776,11 +776,11 @@ async function applyConfidenceFloorAction(directory, touched, options) {
776
776
  });
777
777
  }
778
778
  if (action === "quarantine" && toQuarantine.length > 0) {
779
- const { quarantineEntry } = await import("./knowledge-validator-4b28zdxa.js");
780
- const { KnowledgeConfigSchema } = await import("./schema-jj2pb6zp.js");
779
+ const { quarantineEntry } = await import("./knowledge-validator-jrxvexv6.js");
780
+ const { KnowledgeConfigSchema } = await import("./schema-rptwqbm4.js");
781
781
  let config;
782
782
  try {
783
- const { loadPluginConfigWithMeta } = await import("./index-333kvewd.js");
783
+ const { loadPluginConfigWithMeta } = await import("./index-btmsqv7p.js");
784
784
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
785
785
  config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
786
786
  } catch {
@@ -9,7 +9,7 @@ import {
9
9
  readEvaluationRun,
10
10
  saveEvaluationRun,
11
11
  saveTaskSetSnapshot
12
- } from "./index-k92cagmt.js";
12
+ } from "./index-fqcjragy.js";
13
13
  import {
14
14
  canonicalHash,
15
15
  computeCandidateInputContentHash,
@@ -33,7 +33,7 @@ var CONSUMER_COST_ACCOUNTING = Object.freeze([
33
33
  "src/services/cost-accounting.ts:127"
34
34
  ]);
35
35
  var CONSUMER_GATE_STATS = Object.freeze(["src/evaluation/gate-stats.ts:99"]);
36
- var CONSUMER_HEARTBEAT_LISTENER = Object.freeze(["src/telemetry.ts:162"]);
36
+ var CONSUMER_HEARTBEAT_LISTENER = Object.freeze(["src/telemetry.ts:163"]);
37
37
  function defineEntry(kind, input) {
38
38
  const entry = {
39
39
  kind,
@@ -66,7 +66,7 @@ var CATALOG_SOURCE = [
66
66
  category: "lifecycle",
67
67
  severity: "info",
68
68
  privacyClass: "pseudonymous",
69
- producer: "src/telemetry.ts:467",
69
+ producer: "src/telemetry.ts:468",
70
70
  consumers: NO_CONSUMERS,
71
71
  futureOwnerIssue: ISSUE_SINK,
72
72
  retentionOwnerIssue: ISSUE_LIFECYCLE_RETENTION,
@@ -80,7 +80,7 @@ var CATALOG_SOURCE = [
80
80
  category: "lifecycle",
81
81
  severity: "info",
82
82
  privacyClass: "pseudonymous",
83
- producer: "src/telemetry.ts:471",
83
+ producer: "src/telemetry.ts:472",
84
84
  consumers: NO_CONSUMERS,
85
85
  futureOwnerIssue: ISSUE_SINK,
86
86
  retentionOwnerIssue: ISSUE_LIFECYCLE_RETENTION,
@@ -94,7 +94,7 @@ var CATALOG_SOURCE = [
94
94
  category: "lifecycle",
95
95
  severity: "info",
96
96
  privacyClass: "pseudonymous",
97
- producer: "src/telemetry.ts:475",
97
+ producer: "src/telemetry.ts:476",
98
98
  consumers: NO_CONSUMERS,
99
99
  futureOwnerIssue: ISSUE_SINK,
100
100
  retentionOwnerIssue: ISSUE_LIFECYCLE_RETENTION,
@@ -108,7 +108,7 @@ var CATALOG_SOURCE = [
108
108
  category: "lifecycle",
109
109
  severity: "info",
110
110
  privacyClass: "pseudonymous",
111
- producer: "src/telemetry.ts:512",
111
+ producer: "src/telemetry.ts:513",
112
112
  consumers: NO_CONSUMERS,
113
113
  futureOwnerIssue: ISSUE_SINK,
114
114
  retentionOwnerIssue: ISSUE_LIFECYCLE_RETENTION,
@@ -122,7 +122,7 @@ var CATALOG_SOURCE = [
122
122
  category: "lifecycle",
123
123
  severity: "info",
124
124
  privacyClass: "pseudonymous",
125
- producer: "src/telemetry.ts:560",
125
+ producer: "src/telemetry.ts:561",
126
126
  consumers: NO_CONSUMERS,
127
127
  futureOwnerIssue: ISSUE_SINK,
128
128
  retentionOwnerIssue: ISSUE_LIFECYCLE_RETENTION,
@@ -136,7 +136,7 @@ var CATALOG_SOURCE = [
136
136
  category: "lifecycle",
137
137
  severity: "debug",
138
138
  privacyClass: "pseudonymous",
139
- producer: "src/telemetry.ts:710",
139
+ producer: "src/telemetry.ts:730",
140
140
  consumers: CONSUMER_HEARTBEAT_LISTENER,
141
141
  retentionOwnerIssue: ISSUE_LIFECYCLE_RETENTION,
142
142
  requiredWorkflowIds: REQUIRE_SESSION,
@@ -149,7 +149,7 @@ var CATALOG_SOURCE = [
149
149
  category: "lifecycle",
150
150
  severity: "info",
151
151
  privacyClass: "pseudonymous",
152
- producer: "src/telemetry.ts:718",
152
+ producer: "src/telemetry.ts:738",
153
153
  consumers: NO_CONSUMERS,
154
154
  futureOwnerIssue: ISSUE_SINK,
155
155
  retentionOwnerIssue: ISSUE_LIFECYCLE_RETENTION,
@@ -162,7 +162,7 @@ var CATALOG_SOURCE = [
162
162
  category: "lifecycle",
163
163
  severity: "info",
164
164
  privacyClass: "pseudonymous",
165
- producer: "src/telemetry.ts:743",
165
+ producer: "src/telemetry.ts:763",
166
166
  consumers: NO_CONSUMERS,
167
167
  futureOwnerIssue: ISSUE_SINK,
168
168
  retentionOwnerIssue: ISSUE_LIFECYCLE_RETENTION,
@@ -176,7 +176,7 @@ var CATALOG_SOURCE = [
176
176
  category: "delegation",
177
177
  severity: "info",
178
178
  privacyClass: "pseudonymous",
179
- producer: "src/telemetry.ts:479",
179
+ producer: "src/telemetry.ts:480",
180
180
  consumers: NO_CONSUMERS,
181
181
  futureOwnerIssue: ISSUE_SINK,
182
182
  retentionOwnerIssue: ISSUE_LIFECYCLE_RETENTION,
@@ -190,7 +190,7 @@ var CATALOG_SOURCE = [
190
190
  category: "delegation",
191
191
  severity: "info",
192
192
  privacyClass: "pseudonymous",
193
- producer: "src/telemetry.ts:489",
193
+ producer: "src/telemetry.ts:490",
194
194
  consumers: CONSUMER_COST_ACCOUNTING,
195
195
  retentionOwnerIssue: ISSUE_COST_RETENTION,
196
196
  requiredWorkflowIds: REQUIRE_SESSION_AND_TASK,
@@ -203,7 +203,7 @@ var CATALOG_SOURCE = [
203
203
  category: "delegation",
204
204
  severity: "notice",
205
205
  privacyClass: "pseudonymous",
206
- producer: "src/telemetry.ts:574",
206
+ producer: "src/telemetry.ts:594",
207
207
  consumers: NO_CONSUMERS,
208
208
  futureOwnerIssue: ISSUE_SINK,
209
209
  retentionOwnerIssue: ISSUE_LIFECYCLE_RETENTION,
@@ -217,7 +217,7 @@ var CATALOG_SOURCE = [
217
217
  category: "gate",
218
218
  severity: "info",
219
219
  privacyClass: "pseudonymous",
220
- producer: "src/telemetry.ts:521",
220
+ producer: "src/telemetry.ts:522",
221
221
  consumers: NO_CONSUMERS,
222
222
  futureOwnerIssue: ISSUE_SINK,
223
223
  retentionOwnerIssue: ISSUE_LIFECYCLE_RETENTION,
@@ -230,7 +230,7 @@ var CATALOG_SOURCE = [
230
230
  category: "gate",
231
231
  severity: "warning",
232
232
  privacyClass: "pseudonymous",
233
- producer: "src/telemetry.ts:538",
233
+ producer: "src/telemetry.ts:539",
234
234
  consumers: NO_CONSUMERS,
235
235
  futureOwnerIssue: ISSUE_SINK,
236
236
  retentionOwnerIssue: ISSUE_LIFECYCLE_RETENTION,
@@ -243,7 +243,7 @@ var CATALOG_SOURCE = [
243
243
  category: "gate",
244
244
  severity: "warning",
245
245
  privacyClass: "sensitive",
246
- producer: "src/telemetry.ts:525",
246
+ producer: "src/telemetry.ts:526",
247
247
  consumers: NO_CONSUMERS,
248
248
  futureOwnerIssue: ISSUE_SINK,
249
249
  retentionOwnerIssue: ISSUE_LIFECYCLE_RETENTION,
@@ -257,7 +257,7 @@ var CATALOG_SOURCE = [
257
257
  category: "gate",
258
258
  severity: "info",
259
259
  privacyClass: "pseudonymous",
260
- producer: "src/telemetry.ts:548",
260
+ producer: "src/telemetry.ts:549",
261
261
  consumers: CONSUMER_GATE_STATS,
262
262
  retentionOwnerIssue: ISSUE_LIFECYCLE_RETENTION,
263
263
  requiredWorkflowIds: REQUIRE_SESSION_AND_TASK
@@ -269,20 +269,33 @@ var CATALOG_SOURCE = [
269
269
  category: "cost",
270
270
  severity: "info",
271
271
  privacyClass: "pseudonymous",
272
- producer: "src/telemetry.ts:564",
272
+ producer: "src/telemetry.ts:565",
273
273
  consumers: NO_CONSUMERS,
274
274
  futureOwnerIssue: ISSUE_SINK,
275
275
  retentionOwnerIssue: ISSUE_COST_RETENTION,
276
276
  requiredWorkflowIds: REQUIRE_SESSION
277
277
  }
278
278
  ],
279
+ [
280
+ "context_pruned",
281
+ {
282
+ category: "guardrail",
283
+ severity: "notice",
284
+ privacyClass: "pseudonymous",
285
+ producer: "src/telemetry.ts:584",
286
+ consumers: NO_CONSUMERS,
287
+ futureOwnerIssue: ISSUE_SINK,
288
+ retentionOwnerIssue: ISSUE_SINK,
289
+ requiredWorkflowIds: REQUIRE_SESSION
290
+ }
291
+ ],
279
292
  [
280
293
  "hard_limit_hit",
281
294
  {
282
295
  category: "guardrail",
283
296
  severity: "error",
284
297
  privacyClass: "pseudonymous",
285
- producer: "src/telemetry.ts:589",
298
+ producer: "src/telemetry.ts:609",
286
299
  consumers: NO_CONSUMERS,
287
300
  futureOwnerIssue: ISSUE_SINK,
288
301
  retentionOwnerIssue: ISSUE_SINK,
@@ -295,7 +308,7 @@ var CATALOG_SOURCE = [
295
308
  category: "guardrail",
296
309
  severity: "warning",
297
310
  privacyClass: "pseudonymous",
298
- producer: "src/telemetry.ts:598",
311
+ producer: "src/telemetry.ts:618",
299
312
  consumers: NO_CONSUMERS,
300
313
  futureOwnerIssue: ISSUE_SINK,
301
314
  retentionOwnerIssue: ISSUE_SINK,
@@ -308,7 +321,7 @@ var CATALOG_SOURCE = [
308
321
  category: "guardrail",
309
322
  severity: "warning",
310
323
  privacyClass: "sensitive",
311
- producer: "src/telemetry.ts:602",
324
+ producer: "src/telemetry.ts:622",
312
325
  consumers: NO_CONSUMERS,
313
326
  futureOwnerIssue: ISSUE_SINK,
314
327
  retentionOwnerIssue: ISSUE_SINK,
@@ -321,7 +334,7 @@ var CATALOG_SOURCE = [
321
334
  category: "guardrail",
322
335
  severity: "error",
323
336
  privacyClass: "sensitive",
324
- producer: "src/telemetry.ts:698",
337
+ producer: "src/telemetry.ts:718",
325
338
  consumers: NO_CONSUMERS,
326
339
  futureOwnerIssue: ISSUE_SINK,
327
340
  retentionOwnerIssue: ISSUE_SINK,
@@ -334,7 +347,7 @@ var CATALOG_SOURCE = [
334
347
  category: "guardrail",
335
348
  severity: "warning",
336
349
  privacyClass: "pseudonymous",
337
- producer: "src/telemetry.ts:706",
350
+ producer: "src/telemetry.ts:726",
338
351
  consumers: NO_CONSUMERS,
339
352
  futureOwnerIssue: ISSUE_SINK,
340
353
  retentionOwnerIssue: ISSUE_SINK,
@@ -347,7 +360,7 @@ var CATALOG_SOURCE = [
347
360
  category: "guardrail",
348
361
  severity: "warning",
349
362
  privacyClass: "pseudonymous",
350
- producer: "src/telemetry.ts:728",
363
+ producer: "src/telemetry.ts:748",
351
364
  consumers: NO_CONSUMERS,
352
365
  futureOwnerIssue: ISSUE_SINK,
353
366
  retentionOwnerIssue: ISSUE_SINK,
@@ -360,7 +373,7 @@ var CATALOG_SOURCE = [
360
373
  category: "guardrail",
361
374
  severity: "warning",
362
375
  privacyClass: "pseudonymous",
363
- producer: "src/telemetry.ts:616",
376
+ producer: "src/telemetry.ts:636",
364
377
  consumers: NO_CONSUMERS,
365
378
  futureOwnerIssue: ISSUE_SINK,
366
379
  retentionOwnerIssue: ISSUE_SINK,
@@ -373,7 +386,7 @@ var CATALOG_SOURCE = [
373
386
  category: "guardrail",
374
387
  severity: "warning",
375
388
  privacyClass: "pseudonymous",
376
- producer: "src/telemetry.ts:637",
389
+ producer: "src/telemetry.ts:657",
377
390
  consumers: NO_CONSUMERS,
378
391
  futureOwnerIssue: ISSUE_SINK,
379
392
  retentionOwnerIssue: ISSUE_SINK,
@@ -386,7 +399,7 @@ var CATALOG_SOURCE = [
386
399
  category: "guardrail",
387
400
  severity: "warning",
388
401
  privacyClass: "pseudonymous",
389
- producer: "src/telemetry.ts:651",
402
+ producer: "src/telemetry.ts:671",
390
403
  consumers: NO_CONSUMERS,
391
404
  futureOwnerIssue: ISSUE_SINK,
392
405
  retentionOwnerIssue: ISSUE_SINK,
@@ -399,7 +412,7 @@ var CATALOG_SOURCE = [
399
412
  category: "guardrail",
400
413
  severity: "error",
401
414
  privacyClass: "pseudonymous",
402
- producer: "src/telemetry.ts:668",
415
+ producer: "src/telemetry.ts:688",
403
416
  consumers: NO_CONSUMERS,
404
417
  futureOwnerIssue: ISSUE_SINK,
405
418
  retentionOwnerIssue: ISSUE_SINK,
@@ -412,7 +425,7 @@ var CATALOG_SOURCE = [
412
425
  category: "guardrail",
413
426
  severity: "error",
414
427
  privacyClass: "sensitive",
415
- producer: "src/telemetry.ts:685",
428
+ producer: "src/telemetry.ts:705",
416
429
  consumers: NO_CONSUMERS,
417
430
  futureOwnerIssue: ISSUE_SINK,
418
431
  retentionOwnerIssue: ISSUE_SINK,
@@ -425,7 +438,7 @@ var CATALOG_SOURCE = [
425
438
  category: "prm",
426
439
  severity: "error",
427
440
  privacyClass: "pseudonymous",
428
- producer: "src/telemetry.ts:852",
441
+ producer: "src/telemetry.ts:872",
429
442
  consumers: NO_CONSUMERS,
430
443
  futureOwnerIssue: ISSUE_SINK,
431
444
  retentionOwnerIssue: ISSUE_SINK,
@@ -438,7 +451,7 @@ var CATALOG_SOURCE = [
438
451
  category: "prm",
439
452
  severity: "notice",
440
453
  privacyClass: "pseudonymous",
441
- producer: "src/telemetry.ts:758",
454
+ producer: "src/telemetry.ts:778",
442
455
  consumers: NO_CONSUMERS,
443
456
  futureOwnerIssue: ISSUE_SINK,
444
457
  retentionOwnerIssue: ISSUE_SINK,
@@ -451,7 +464,7 @@ var CATALOG_SOURCE = [
451
464
  category: "prm",
452
465
  severity: "notice",
453
466
  privacyClass: "pseudonymous",
454
- producer: "src/telemetry.ts:772",
467
+ producer: "src/telemetry.ts:792",
455
468
  consumers: NO_CONSUMERS,
456
469
  futureOwnerIssue: ISSUE_SINK,
457
470
  retentionOwnerIssue: ISSUE_SINK,
@@ -464,7 +477,7 @@ var CATALOG_SOURCE = [
464
477
  category: "prm",
465
478
  severity: "warning",
466
479
  privacyClass: "pseudonymous",
467
- producer: "src/telemetry.ts:785",
480
+ producer: "src/telemetry.ts:805",
468
481
  consumers: NO_CONSUMERS,
469
482
  futureOwnerIssue: ISSUE_SINK,
470
483
  retentionOwnerIssue: ISSUE_SINK,
@@ -477,7 +490,7 @@ var CATALOG_SOURCE = [
477
490
  category: "prm",
478
491
  severity: "critical",
479
492
  privacyClass: "pseudonymous",
480
- producer: "src/telemetry.ts:799",
493
+ producer: "src/telemetry.ts:819",
481
494
  consumers: NO_CONSUMERS,
482
495
  futureOwnerIssue: ISSUE_SINK,
483
496
  retentionOwnerIssue: ISSUE_SINK,
@@ -587,7 +600,7 @@ var CATALOG_SOURCE = [
587
600
  category: "lifecycle",
588
601
  severity: "notice",
589
602
  privacyClass: "operational",
590
- producer: "src/telemetry.ts:836",
603
+ producer: "src/telemetry.ts:856",
591
604
  consumers: NO_CONSUMERS,
592
605
  futureOwnerIssue: ISSUE_SINK,
593
606
  retentionOwnerIssue: ISSUE_SINK
@@ -857,6 +870,22 @@ var KNOWN_TELEMETRY_KEYS = Object.freeze({
857
870
  ]),
858
871
  phase_changed: Object.freeze(["sessionId", "oldPhase", "newPhase"]),
859
872
  budget_updated: Object.freeze(["sessionId", "budgetPct", "agentName"]),
873
+ context_pruned: Object.freeze([
874
+ "sessionId",
875
+ "agentName",
876
+ "trigger",
877
+ "usageSource",
878
+ "beforeTokens",
879
+ "afterTokens",
880
+ "modelLimit",
881
+ "maskedMessages",
882
+ "maskedToolParts",
883
+ "maskedTokensFreed",
884
+ "prunedMessages",
885
+ "prunedTextParts",
886
+ "prunedToolParts",
887
+ "prunedTokensFreed"
888
+ ]),
860
889
  model_fallback: Object.freeze([
861
890
  "sessionId",
862
891
  "agentName",
@@ -1628,6 +1657,9 @@ var telemetry = {
1628
1657
  budgetUpdated(sessionId, budgetPct, agentName) {
1629
1658
  _internals.emit("budget_updated", { sessionId, budgetPct, agentName });
1630
1659
  },
1660
+ contextPruned(data) {
1661
+ _internals.emit("context_pruned", data);
1662
+ },
1631
1663
  modelFallback(sessionId, agentName, fromModel, toModel, reason) {
1632
1664
  _internals.emit("model_fallback", {
1633
1665
  sessionId,
@@ -12,14 +12,14 @@ import {
12
12
  detectPosixWrites,
13
13
  detectWindowsWrites,
14
14
  resolveWriteTargets
15
- } from "./index-nretd4qn.js";
15
+ } from "./index-q4ed1jk7.js";
16
16
  import {
17
17
  checkFileAuthority,
18
18
  classifyFile,
19
19
  isInDeclaredScope,
20
20
  redactPath,
21
21
  redactShellCommand
22
- } from "./index-g2ajae1z.js";
22
+ } from "./index-d12jd5mn.js";
23
23
 
24
24
  // src/services/guardrail-explain-service.ts
25
25
  import path from "path";