opencode-swarm 7.163.1 → 7.164.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cli/{coder-settlement-f1gtvcy8.js → coder-settlement-w4qk90kh.js} +12 -13
- package/dist/cli/{config-doctor-0fnqzqz1.js → config-doctor-r81bp1nd.js} +3 -3
- package/dist/cli/{core-w81fk5sc.js → core-xfw4s9b9.js} +2 -2
- package/dist/cli/{curation-policy-j12j2gvc.js → curation-policy-2h37sd6p.js} +6 -7
- package/dist/cli/{curator-as495r18.js → curator-7zy6bdmw.js} +36 -39
- package/dist/cli/{curator-drift-g6w4ga1q.js → curator-drift-ykrdf08r.js} +105 -38
- package/dist/cli/curator-llm-factory-7gjvm4ds.js +66 -0
- package/dist/cli/{evidence-summary-service-51dxfcn5.js → evidence-summary-service-519ny6b1.js} +17 -18
- package/dist/cli/{gate-evidence-nb1e8hz0.js → gate-evidence-a7st3vbc.js} +8 -9
- package/dist/cli/guardrail-explain-ewcm37em.js +67 -0
- package/dist/cli/{guardrail-log-2kwntcqw.js → guardrail-log-kp51by1v.js} +8 -9
- package/dist/cli/{guardrail-reset-mrxrc56j.js → guardrail-reset-reyfwtwn.js} +36 -39
- package/dist/cli/hive-promoter-zf2vf5sw.js +81 -0
- package/dist/cli/{index-4p0wyz5p.js → index-1af3rb5n.js} +9 -9
- package/dist/cli/{index-2zgjcmmc.js → index-1b1h770t.js} +3 -3
- package/dist/cli/{index-0tervb1m.js → index-2ee2g27m.js} +7795 -2724
- package/dist/cli/{index-x2f1f011.js → index-2s40e3b0.js} +4 -3
- package/dist/cli/{index-9xd073d4.js → index-2yd732fd.js} +7 -1
- package/dist/cli/{index-9crtmnqg.js → index-36nt17m8.js} +1 -1
- package/dist/cli/{index-d3azve4r.js → index-5084szce.js} +122 -300
- package/dist/cli/{index-d9gdwh34.js → index-5bza8nxz.js} +2 -2
- package/dist/cli/{index-xyhmt813.js → index-6097tx05.js} +1 -1
- package/dist/cli/{index-5056zmpt.js → index-644t46hr.js} +1 -1
- package/dist/cli/{index-2v06a1yh.js → index-6ay5zp1v.js} +5 -5
- package/dist/cli/{index-n2mhyect.js → index-6kd3jnaf.js} +1 -1
- package/dist/cli/{index-n67vx5zw.js → index-6t35714n.js} +2 -2
- package/dist/cli/{index-tnpf9wwv.js → index-862c0xhc.js} +1 -1
- package/dist/cli/{index-2n1ym7jb.js → index-b98r3pyv.js} +5 -5
- package/dist/cli/{index-8ada7ag7.js → index-dhzsvmx6.js} +2 -2
- package/dist/cli/{index-n985274d.js → index-e630pvvw.js} +4 -4
- package/dist/cli/{index-3b762978.js → index-f9nfknjg.js} +182 -37
- package/dist/cli/{index-m1fvbah1.js → index-fwfhbs27.js} +2 -2
- package/dist/cli/{index-t34daffb.js → index-h2f21caa.js} +2 -2
- package/dist/cli/{index-9ss2m4rs.js → index-hcn69kp0.js} +410 -1
- package/dist/cli/{index-g3znh2yd.js → index-hzaw10zh.js} +7 -7
- package/dist/cli/{index-cqgpvx2d.js → index-j0ajeary.js} +2 -2
- package/dist/cli/{index-f923njwh.js → index-jczbtx2x.js} +7 -7
- package/dist/cli/{index-hm239n1p.js → index-k8j7m0e2.js} +1 -1
- package/dist/cli/{index-zjme8atd.js → index-n1wcq816.js} +5 -5
- package/dist/cli/{index-66073kej.js → index-pmmfhzsp.js} +3 -3
- package/dist/cli/{index-fckfgptr.js → index-qbr05tbw.js} +2 -2
- package/dist/cli/{index-r56f3f81.js → index-r5jn0ah5.js} +2 -2
- package/dist/cli/{index-dtn0pne5.js → index-v56mhyhs.js} +1 -1
- package/dist/cli/{index-etvq73mp.js → index-vc3zmtxb.js} +38 -41
- package/dist/cli/{index-kvra3nv1.js → index-vdgw2k4c.js} +3 -3
- package/dist/cli/{index-0103w5pf.js → index-vkckf2ch.js} +2 -2
- package/dist/cli/{index-swgy9xvk.js → index-vrxx0ea4.js} +4 -4
- package/dist/cli/{index-08y8pccg.js → index-wnf1ej2q.js} +4 -4
- package/dist/cli/{index-qynqyfgj.js → index-wv4b01ex.js} +32 -34
- package/dist/cli/{index-7n9jznv0.js → index-x2qmpkth.js} +5 -5
- package/dist/cli/index-y2f5s2cf.js +403 -0
- package/dist/cli/{index-ma52g2pq.js → index-yc415pzf.js} +655 -16
- package/dist/cli/{index-n249fbw7.js → index-zaab1wz9.js} +5 -0
- package/dist/cli/index.js +36 -39
- package/dist/cli/{knowledge-escalator-fq7dm2g4.js → knowledge-escalator-wwkbsgvw.js} +14 -15
- package/dist/cli/{knowledge-events-3zanyfkr.js → knowledge-events-vmmgwfmc.js} +12 -13
- package/dist/cli/{knowledge-link-vmdj5e5d.js → knowledge-link-bvra01zv.js} +5 -6
- package/dist/cli/{knowledge-store-vhehnw52.js → knowledge-store-6wbagbqm.js} +6 -7
- package/dist/cli/{knowledge-validator-0tt0pe6b.js → knowledge-validator-q1z4fmeg.js} +8 -9
- package/dist/cli/{model-preflight-c3mc8njg.js → model-preflight-1ecjbg73.js} +1 -1
- package/dist/cli/{pending-delegations-b92pecbj.js → pending-delegations-cq5g4rr4.js} +6 -8
- package/dist/cli/{pr-subscriptions-2mkdt0ak.js → pr-subscriptions-m0z5wxkb.js} +6 -7
- package/dist/cli/pr-workflow-gate-0zvp0qs9.js +221 -0
- package/dist/cli/{runner-3gw2njnx.js → runner-s55g5233.js} +6 -7
- package/dist/cli/{scan-cursor-1c8a3b0m.js → scan-cursor-z6zepy3r.js} +7 -8
- package/dist/cli/{schema-c554j5c8.js → schema-skf0ckh4.js} +2 -2
- package/dist/cli/{scope-persistence-vtbcszvv.js → scope-persistence-f6davq7x.js} +10 -11
- package/dist/cli/{skill-generator-0es21fck.js → skill-generator-wqbazppk.js} +16 -17
- package/dist/cli/{sqlite-loader-c92413n7.js → sqlite-loader-8zefc142.js} +1 -1
- package/dist/cli/{telemetry-x4zggfd7.js → telemetry-q51s6tyt.js} +1 -1
- package/dist/cli/{worktree-collision-ownership-043dg8gg.js → worktree-collision-ownership-c0030qbm.js} +7 -9
- package/dist/cli/{worktree-isolation-hk42yxw7.js → worktree-isolation-09qq8066.js} +36 -39
- package/dist/db/canonical-project.d.ts +31 -0
- package/dist/db/db-errors.d.ts +24 -0
- package/dist/db/driver-parity.d.ts +31 -0
- package/dist/db/durability.d.ts +40 -0
- package/dist/db/group-commit-writer.d.ts +117 -0
- package/dist/db/health.d.ts +35 -0
- package/dist/db/insight-candidate-store.d.ts +61 -0
- package/dist/db/legacy-import.d.ts +77 -0
- package/dist/db/phase-report-store.d.ts +45 -0
- package/dist/db/project-db.d.ts +35 -8
- package/dist/db/qa-gate-profile.d.ts +2 -0
- package/dist/hooks/curator-drift.d.ts +9 -5
- package/dist/hooks/curator-types.d.ts +1 -0
- package/dist/hooks/delegation-gate.d.ts +1 -0
- package/dist/hooks/knowledge-curator.d.ts +5 -3
- package/dist/hooks/micro-reflector.d.ts +12 -7
- package/dist/hooks/pr-workflow-gate.d.ts +14 -8
- package/dist/hooks/pr-workflow-response-gate.d.ts +9 -12
- package/dist/index.js +627 -574
- package/dist/memory/schema.d.ts +4 -4
- package/dist/pr-review/authorization.d.ts +18 -12
- package/dist/prm/index.d.ts +3 -1
- package/dist/tools/authorize-pr-review-reentry.d.ts +12 -8
- package/package.json +3 -2
- package/dist/cli/authorization-vstrh7ra.js +0 -23
- package/dist/cli/curator-llm-factory-v8vwz20c.js +0 -69
- package/dist/cli/guardrail-explain-z2qb6v67.js +0 -70
- package/dist/cli/hive-promoter-c62x2ncb.js +0 -84
- package/dist/cli/index-c8s9a3zh.js +0 -73
- package/dist/cli/index-ed5ykebp.js +0 -151
- package/dist/cli/index-mmngnxev.js +0 -883
- package/dist/cli/index-w7ekntej.js +0 -643
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-fwfhbs27.js";
|
|
5
5
|
import {
|
|
6
6
|
handleGuardrailLog
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-644t46hr.js";
|
|
8
8
|
import {
|
|
9
9
|
COMMAND_REGISTRY,
|
|
10
10
|
SWARM_COMMAND_TOOL_ALLOWLIST,
|
|
@@ -94,72 +94,69 @@ import {
|
|
|
94
94
|
handleWriteRetroCommand,
|
|
95
95
|
normalizeSwarmCommandInput,
|
|
96
96
|
resolveCommand
|
|
97
|
-
} from "./index-
|
|
98
|
-
import"./index-
|
|
99
|
-
import"./index-
|
|
100
|
-
import"./index-
|
|
101
|
-
import"./index-
|
|
102
|
-
import"./index-
|
|
97
|
+
} from "./index-2ee2g27m.js";
|
|
98
|
+
import"./index-6097tx05.js";
|
|
99
|
+
import"./index-wv4b01ex.js";
|
|
100
|
+
import"./index-r5jn0ah5.js";
|
|
101
|
+
import"./index-5084szce.js";
|
|
102
|
+
import"./index-vkckf2ch.js";
|
|
103
103
|
import"./index-txdagbh7.js";
|
|
104
|
-
import"./index-n249fbw7.js";
|
|
105
104
|
import"./index-3146wmgv.js";
|
|
106
|
-
import"./index-
|
|
107
|
-
import"./index-
|
|
108
|
-
import"./index-
|
|
105
|
+
import"./index-e630pvvw.js";
|
|
106
|
+
import"./index-6ay5zp1v.js";
|
|
107
|
+
import"./index-h2f21caa.js";
|
|
109
108
|
import"./index-70ha9e09.js";
|
|
110
|
-
import"./index-
|
|
111
|
-
import"./index-
|
|
112
|
-
import"./index-
|
|
109
|
+
import"./index-y2f5s2cf.js";
|
|
110
|
+
import"./index-hcn69kp0.js";
|
|
111
|
+
import"./index-zaab1wz9.js";
|
|
112
|
+
import"./index-x2qmpkth.js";
|
|
113
113
|
import"./index-zsrtt42s.js";
|
|
114
|
-
import"./index-
|
|
114
|
+
import"./index-hzaw10zh.js";
|
|
115
115
|
import"./index-3f7hqtgg.js";
|
|
116
|
-
import"./index-
|
|
117
|
-
import"./index-
|
|
118
|
-
import"./index-
|
|
116
|
+
import"./index-qbr05tbw.js";
|
|
117
|
+
import"./index-wnf1ej2q.js";
|
|
118
|
+
import"./index-k8j7m0e2.js";
|
|
119
119
|
import"./index-rtry5xyf.js";
|
|
120
|
-
import"./index-
|
|
121
|
-
import"./index-
|
|
122
|
-
import"./index-
|
|
120
|
+
import"./index-n1wcq816.js";
|
|
121
|
+
import"./index-5bza8nxz.js";
|
|
122
|
+
import"./index-yc415pzf.js";
|
|
123
123
|
import"./index-ddszzne4.js";
|
|
124
|
-
import"./index-
|
|
125
|
-
import"./index-
|
|
126
|
-
import"./index-
|
|
127
|
-
import"./index-kvra3nv1.js";
|
|
128
|
-
import"./index-8ada7ag7.js";
|
|
124
|
+
import"./index-b98r3pyv.js";
|
|
125
|
+
import"./index-vdgw2k4c.js";
|
|
126
|
+
import"./index-dhzsvmx6.js";
|
|
129
127
|
import"./index-556ja8an.js";
|
|
130
128
|
import"./index-4fwbbad3.js";
|
|
131
129
|
import"./index-b43rt5ph.js";
|
|
132
130
|
import"./index-q7sjgr1y.js";
|
|
133
|
-
import"./index-
|
|
134
|
-
import"./index-
|
|
135
|
-
import"./index-
|
|
131
|
+
import"./index-jczbtx2x.js";
|
|
132
|
+
import"./index-1af3rb5n.js";
|
|
133
|
+
import"./index-pmmfhzsp.js";
|
|
136
134
|
import"./index-zg9d392c.js";
|
|
137
135
|
import"./index-n832052r.js";
|
|
138
|
-
import"./index-
|
|
136
|
+
import"./index-v56mhyhs.js";
|
|
139
137
|
import"./index-z6xqpmqg.js";
|
|
140
138
|
import"./index-r3mvsbtq.js";
|
|
141
|
-
import"./index-
|
|
139
|
+
import"./index-862c0xhc.js";
|
|
142
140
|
import {
|
|
143
141
|
init_schema,
|
|
144
142
|
stripKnownSwarmPrefix
|
|
145
|
-
} from "./index-
|
|
143
|
+
} from "./index-2s40e3b0.js";
|
|
146
144
|
import"./index-9e6fdz2h.js";
|
|
147
145
|
import"./index-4rhhvd1a.js";
|
|
148
|
-
import"./index-
|
|
146
|
+
import"./index-j0ajeary.js";
|
|
149
147
|
import {
|
|
150
148
|
AGENT_TOOL_MAP,
|
|
151
149
|
ORCHESTRATOR_NAME,
|
|
152
150
|
init_constants
|
|
153
|
-
} from "./index-
|
|
151
|
+
} from "./index-2yd732fd.js";
|
|
154
152
|
import"./index-zjygnfay.js";
|
|
155
153
|
import"./index-ae75rja9.js";
|
|
156
|
-
import"./index-
|
|
157
|
-
import"./index-
|
|
154
|
+
import"./index-6kd3jnaf.js";
|
|
155
|
+
import"./index-6t35714n.js";
|
|
158
156
|
import"./index-bk5tah7q.js";
|
|
159
|
-
import"./index-
|
|
160
|
-
import"./index-
|
|
161
|
-
import"./index-
|
|
162
|
-
import"./index-ed5ykebp.js";
|
|
157
|
+
import"./index-36nt17m8.js";
|
|
158
|
+
import"./index-f9nfknjg.js";
|
|
159
|
+
import"./index-1b1h770t.js";
|
|
163
160
|
import"./index-7g4c7s5r.js";
|
|
164
161
|
import"./index-bpmtbmy9.js";
|
|
165
162
|
import"./index-zgwm4ryv.js";
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
PlanSchema,
|
|
5
5
|
TaskStatusSchema,
|
|
6
6
|
init_loader
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-862c0xhc.js";
|
|
8
8
|
import {
|
|
9
9
|
assertProjectRoot,
|
|
10
10
|
withEvidenceLock
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-36nt17m8.js";
|
|
12
12
|
import {
|
|
13
13
|
emit
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-1b1h770t.js";
|
|
15
15
|
import {
|
|
16
16
|
criticalWarn,
|
|
17
17
|
init_logger,
|
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
} from "./index-txdagbh7.js";
|
|
10
10
|
import {
|
|
11
11
|
atomicWriteFile
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-6t35714n.js";
|
|
13
13
|
import {
|
|
14
14
|
assertProjectRoot,
|
|
15
15
|
withEvidenceLock
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-36nt17m8.js";
|
|
17
17
|
import {
|
|
18
18
|
exports_external,
|
|
19
19
|
init_zod
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
_internals,
|
|
4
4
|
resolveWorktreeIsolationConfig
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-pmmfhzsp.js";
|
|
6
6
|
import {
|
|
7
7
|
ApprovalEvidenceSchema,
|
|
8
8
|
BaseEvidenceSchema,
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
loadPluginConfig,
|
|
43
43
|
loadPluginConfigWithMeta,
|
|
44
44
|
loadPluginConfigWithMetaAsync
|
|
45
|
-
} from "./index-
|
|
45
|
+
} from "./index-862c0xhc.js";
|
|
46
46
|
import {
|
|
47
47
|
AUTO_REVIEW_V8_BURN_IN_DECISION,
|
|
48
48
|
AgentOverrideConfigSchema,
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
TurboConfigSchema,
|
|
65
65
|
WorktreeIsolationConfigSchema,
|
|
66
66
|
resolveAutoReviewConfig
|
|
67
|
-
} from "./index-
|
|
67
|
+
} from "./index-2s40e3b0.js";
|
|
68
68
|
import"./index-9e6fdz2h.js";
|
|
69
69
|
import"./index-4rhhvd1a.js";
|
|
70
70
|
import {
|
|
@@ -76,7 +76,7 @@ import {
|
|
|
76
76
|
QA_AGENTS,
|
|
77
77
|
isQAAgent,
|
|
78
78
|
isSubagent
|
|
79
|
-
} from "./index-
|
|
79
|
+
} from "./index-2yd732fd.js";
|
|
80
80
|
import"./index-zjygnfay.js";
|
|
81
81
|
import"./index-bk5tah7q.js";
|
|
82
82
|
import"./index-bpmtbmy9.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
authorizeCuration
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-k8j7m0e2.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-jczbtx2x.js";
|
|
13
13
|
import {
|
|
14
14
|
resolveKnowledgeStoreDir
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-6kd3jnaf.js";
|
|
16
16
|
import {
|
|
17
17
|
atomicWriteFile
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-6t35714n.js";
|
|
19
19
|
import {
|
|
20
20
|
require_proper_lockfile
|
|
21
21
|
} from "./index-7g4c7s5r.js";
|
|
@@ -11,16 +11,16 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
init_schema,
|
|
13
13
|
stripKnownSwarmPrefix
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-2s40e3b0.js";
|
|
15
15
|
import {
|
|
16
16
|
observeStoreHealth
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-j0ajeary.js";
|
|
18
18
|
import {
|
|
19
19
|
init_constants
|
|
20
|
-
} from "./index-
|
|
20
|
+
} from "./index-2yd732fd.js";
|
|
21
21
|
import {
|
|
22
22
|
telemetry
|
|
23
|
-
} from "./index-
|
|
23
|
+
} from "./index-1b1h770t.js";
|
|
24
24
|
import {
|
|
25
25
|
init_logger,
|
|
26
26
|
warn
|
|
@@ -1709,6 +1709,17 @@ var require_picomatch2 = __commonJS((exports, module) => {
|
|
|
1709
1709
|
module.exports = picomatch;
|
|
1710
1710
|
});
|
|
1711
1711
|
|
|
1712
|
+
// src/hooks/normalize-tool-name.ts
|
|
1713
|
+
var NAMESPACE_PREFIX_PATTERN = /^[^:]+[:.]/;
|
|
1714
|
+
function normalizeToolName(toolName) {
|
|
1715
|
+
if (!toolName)
|
|
1716
|
+
return;
|
|
1717
|
+
return toolName.replace(NAMESPACE_PREFIX_PATTERN, "");
|
|
1718
|
+
}
|
|
1719
|
+
function normalizeToolNameLowerCase(toolName) {
|
|
1720
|
+
return toolName.replace(NAMESPACE_PREFIX_PATTERN, "").toLowerCase();
|
|
1721
|
+
}
|
|
1722
|
+
|
|
1712
1723
|
// src/context/zone-classifier.ts
|
|
1713
1724
|
function classifyFile(filePath) {
|
|
1714
1725
|
const normalized = filePath.toLowerCase().replace(/\\/g, "/");
|
|
@@ -1768,6 +1779,23 @@ function classifyFile(filePath) {
|
|
|
1768
1779
|
};
|
|
1769
1780
|
}
|
|
1770
1781
|
|
|
1782
|
+
// src/utils/stable-stringify.ts
|
|
1783
|
+
function stableCanonicalStringify(value) {
|
|
1784
|
+
if (value === undefined)
|
|
1785
|
+
return "null";
|
|
1786
|
+
if (value === null)
|
|
1787
|
+
return "null";
|
|
1788
|
+
if (typeof value !== "object")
|
|
1789
|
+
return JSON.stringify(value);
|
|
1790
|
+
if (Array.isArray(value)) {
|
|
1791
|
+
return `[${value.map((el) => stableCanonicalStringify(el)).join(",")}]`;
|
|
1792
|
+
}
|
|
1793
|
+
const obj = value;
|
|
1794
|
+
const keys = Object.keys(obj).sort();
|
|
1795
|
+
const entries = keys.map((k) => `${JSON.stringify(k)}:${stableCanonicalStringify(obj[k])}`).join(",");
|
|
1796
|
+
return `{${entries}}`;
|
|
1797
|
+
}
|
|
1798
|
+
|
|
1771
1799
|
// src/hooks/guardrails/file-authority.ts
|
|
1772
1800
|
import * as fsSync from "fs";
|
|
1773
1801
|
var import_picomatch = __toESM(require_picomatch2(), 1);
|
|
@@ -2109,23 +2137,6 @@ function protectedRoots(projectRoot, additional = []) {
|
|
|
2109
2137
|
// src/utils/arg-hash.ts
|
|
2110
2138
|
var HASH_INPUT_CAP_BYTES = 64 * 1024;
|
|
2111
2139
|
|
|
2112
|
-
// src/utils/stable-stringify.ts
|
|
2113
|
-
function stableCanonicalStringify(value) {
|
|
2114
|
-
if (value === undefined)
|
|
2115
|
-
return "null";
|
|
2116
|
-
if (value === null)
|
|
2117
|
-
return "null";
|
|
2118
|
-
if (typeof value !== "object")
|
|
2119
|
-
return JSON.stringify(value);
|
|
2120
|
-
if (Array.isArray(value)) {
|
|
2121
|
-
return `[${value.map((el) => stableCanonicalStringify(el)).join(",")}]`;
|
|
2122
|
-
}
|
|
2123
|
-
const obj = value;
|
|
2124
|
-
const keys = Object.keys(obj).sort();
|
|
2125
|
-
const entries = keys.map((k) => `${JSON.stringify(k)}:${stableCanonicalStringify(obj[k])}`).join(",");
|
|
2126
|
-
return `{${entries}}`;
|
|
2127
|
-
}
|
|
2128
|
-
|
|
2129
2140
|
// src/hooks/guardrails/file-authority.ts
|
|
2130
2141
|
var pathNormalizationCache = new QuickLRU({
|
|
2131
2142
|
maxSize: 500
|
|
@@ -2641,19 +2652,6 @@ function checkFileAuthority(agentName, filePath, cwd, authorityConfig, options =
|
|
|
2641
2652
|
|
|
2642
2653
|
// src/hooks/guardrails/helpers.ts
|
|
2643
2654
|
init_constants();
|
|
2644
|
-
|
|
2645
|
-
// src/hooks/normalize-tool-name.ts
|
|
2646
|
-
var NAMESPACE_PREFIX_PATTERN = /^[^:]+[:.]/;
|
|
2647
|
-
function normalizeToolName(toolName) {
|
|
2648
|
-
if (!toolName)
|
|
2649
|
-
return;
|
|
2650
|
-
return toolName.replace(NAMESPACE_PREFIX_PATTERN, "");
|
|
2651
|
-
}
|
|
2652
|
-
function normalizeToolNameLowerCase(toolName) {
|
|
2653
|
-
return toolName.replace(NAMESPACE_PREFIX_PATTERN, "").toLowerCase();
|
|
2654
|
-
}
|
|
2655
|
-
|
|
2656
|
-
// src/hooks/guardrails/helpers.ts
|
|
2657
2655
|
function isInDeclaredScope(filePath, scopeEntries, cwd) {
|
|
2658
2656
|
return isPathWithinDeclaredScope(filePath, scopeEntries, cwd);
|
|
2659
2657
|
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
validateSwarmPath
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-v56mhyhs.js";
|
|
5
5
|
import {
|
|
6
6
|
observeStoreHealth
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-j0ajeary.js";
|
|
8
8
|
import {
|
|
9
9
|
withEvidenceLock
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-36nt17m8.js";
|
|
11
11
|
import {
|
|
12
12
|
atomicWriteSwarmFileSync
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-f9nfknjg.js";
|
|
14
14
|
import {
|
|
15
15
|
telemetry
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-1b1h770t.js";
|
|
17
17
|
import {
|
|
18
18
|
exports_external,
|
|
19
19
|
init_zod
|