opencode-swarm 7.147.1 → 7.148.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/.opencode/skills/swarm-pr-review/SKILL.md +26 -11
- package/.opencode/skills/swarm-pr-review/references/findings-persistence-contract.md +39 -13
- package/dist/background/pr-review-collection-receipt.d.ts +2 -2
- package/dist/cli/{config-doctor-8nskdpgd.js → config-doctor-w6zphy4w.js} +2 -2
- package/dist/cli/{core-9rt6kbk1.js → core-65qyqw2f.js} +1 -1
- package/dist/cli/{curation-policy-9d7jx7cg.js → curation-policy-166wdjs4.js} +6 -6
- package/dist/cli/{curator-xvymjgan.js → curator-2jhdfjqg.js} +27 -27
- package/dist/cli/{curator-llm-factory-8xdxbmnz.js → curator-llm-factory-y43mx297.js} +27 -27
- package/dist/cli/{evidence-summary-service-k7a2s8f8.js → evidence-summary-service-7qpganmn.js} +11 -11
- package/dist/cli/{gate-evidence-bbpvx28c.js → gate-evidence-p79xv25a.js} +6 -6
- package/dist/cli/{guardrail-explain-qz2hfyb2.js → guardrail-explain-76sy950j.js} +28 -28
- package/dist/cli/{guardrail-log-6098jxes.js → guardrail-log-pm0w6ney.js} +3 -3
- package/dist/cli/{guardrail-reset-2bcccwmx.js → guardrail-reset-tkkg0bfz.js} +27 -27
- package/dist/cli/{hive-promoter-9xzf0r98.js → hive-promoter-w4batwr6.js} +27 -27
- package/dist/cli/{index-q85xv7t6.js → index-2bsnwcmp.js} +1 -1
- package/dist/cli/{index-pgvx3rkq.js → index-2n9rwvcc.js} +1 -1
- package/dist/cli/{index-axcvb5kf.js → index-3yh2e5ca.js} +6 -4
- package/dist/cli/{index-by1f9ghd.js → index-5wypz451.js} +1 -1
- package/dist/cli/{index-b7qzwv3t.js → index-627mz27c.js} +3 -3
- package/dist/cli/{index-1k41c7kt.js → index-81n4ky69.js} +2 -2
- package/dist/cli/{index-6cxb7ng4.js → index-c23yxr1s.js} +4 -4
- package/dist/cli/{index-d3bdr78h.js → index-ch6sjm8q.js} +1 -1
- package/dist/cli/{index-kbp4xssa.js → index-dwg0z10h.js} +4 -4
- package/dist/cli/{index-gkhx2vkh.js → index-e9d2829t.js} +1 -1
- package/dist/cli/{index-2qapn7fk.js → index-f115c8y6.js} +3 -3
- package/dist/cli/{index-1xvxd02x.js → index-fv5cc1rd.js} +2 -2
- package/dist/cli/{index-q81s0m8k.js → index-ghbkknjz.js} +79 -38
- package/dist/cli/{index-n5wzwz8x.js → index-hxqjf4me.js} +4 -4
- package/dist/cli/{index-avcqq7xc.js → index-jtnk7k6w.js} +1 -1
- package/dist/cli/{index-7tvbvecm.js → index-k5ze5v89.js} +1 -1
- package/dist/cli/{index-b834mas0.js → index-kpgj4ha6.js} +1 -1
- package/dist/cli/{index-8861hfbt.js → index-kztxn1ww.js} +4205 -2866
- package/dist/cli/{index-aahyrzmm.js → index-m97qwwrk.js} +2 -2
- package/dist/cli/{index-9b50bt13.js → index-mfhpk4c6.js} +1 -1
- package/dist/cli/{index-8k9hw17k.js → index-py2rsw1a.js} +4 -4
- package/dist/cli/{index-t4xa2yss.js → index-q0gfmyzx.js} +5 -5
- package/dist/cli/{index-qy5yz7fn.js → index-qwzpsh3w.js} +1 -1
- package/dist/cli/{index-zwc96x0a.js → index-qzstn430.js} +1 -1
- package/dist/cli/{index-6q35swn2.js → index-rsn4jm90.js} +1 -1
- package/dist/cli/{index-b99vp668.js → index-s3s2egzn.js} +29 -29
- package/dist/cli/{index-bp5n93w5.js → index-shazb5b6.js} +2 -2
- package/dist/cli/{index-vpzvmp21.js → index-shm69en5.js} +2 -2
- package/dist/cli/{index-014mntpw.js → index-t6ys1386.js} +6 -6
- package/dist/cli/{index-59q7jma6.js → index-w49v4xd6.js} +7 -7
- package/dist/cli/{index-5qfp2kt4.js → index-x46mmaep.js} +14 -10
- package/dist/cli/index.js +27 -27
- package/dist/cli/{knowledge-escalator-300p0bvr.js → knowledge-escalator-21n4ztqx.js} +11 -11
- package/dist/cli/{knowledge-events-5ncg5xv1.js → knowledge-events-h5d5eayv.js} +9 -9
- package/dist/cli/{knowledge-link-stzsjagk.js → knowledge-link-vgxe7gz9.js} +5 -5
- package/dist/cli/{knowledge-store-mn75hsww.js → knowledge-store-y10m7x4f.js} +8 -6
- package/dist/cli/{knowledge-validator-763r7qpn.js → knowledge-validator-dzm9sg0f.js} +8 -8
- package/dist/cli/{pending-delegations-k4x00mqc.js → pending-delegations-78zaaxz4.js} +3 -3
- package/dist/cli/{pr-subscriptions-x2mqc3f1.js → pr-subscriptions-9mg6mwc0.js} +3 -3
- package/dist/cli/{runner-26bc3x73.js → runner-rarzeth8.js} +6 -6
- package/dist/cli/{scan-cursor-b7kyjefy.js → scan-cursor-zn2qf06a.js} +7 -7
- package/dist/cli/{schema-zjhwka27.js → schema-ynwy7abm.js} +1 -1
- package/dist/cli/{scope-persistence-aa7gkgz0.js → scope-persistence-sh30937s.js} +7 -7
- package/dist/cli/{skill-generator-nsa7ay0c.js → skill-generator-r3knfwrp.js} +13 -13
- package/dist/cli/{telemetry-xzy0qeap.js → telemetry-1pnsftp0.js} +1 -1
- package/dist/cli/{worktree-collision-ownership-q2gswg16.js → worktree-collision-ownership-29md3k1n.js} +3 -3
- package/dist/cli/{worktree-isolation-3pw7nwnh.js → worktree-isolation-yj7ssh24.js} +27 -27
- package/dist/consensus/contracts.d.ts +5 -1
- package/dist/consensus/corpus.d.ts +26 -3
- package/dist/consensus/miner.d.ts +5 -1
- package/dist/hooks/curator.d.ts +41 -1
- package/dist/hooks/knowledge-store.d.ts +26 -2
- package/dist/hooks/pr-workflow-gate.d.ts +64 -3
- package/dist/hooks/skill-scoring.d.ts +13 -3
- package/dist/hooks/skill-usage-log.d.ts +140 -17
- package/dist/hooks/skill-usage-pending.d.ts +392 -0
- package/dist/index.js +546 -502
- package/dist/lang/symbol-visibility.d.ts +10 -7
- package/dist/observability/catalog.d.ts +6 -4
- package/dist/telemetry.d.ts +35 -1
- package/dist/tools/dispatch-lanes.d.ts +8 -1
- package/dist/tools/repo-graph/types.d.ts +6 -4
- package/package.json +1 -1
|
@@ -12,14 +12,14 @@ import {
|
|
|
12
12
|
detectPosixWrites,
|
|
13
13
|
detectWindowsWrites,
|
|
14
14
|
resolveWriteTargets
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-kztxn1ww.js";
|
|
16
16
|
import {
|
|
17
17
|
checkFileAuthority,
|
|
18
18
|
classifyFile,
|
|
19
19
|
isInDeclaredScope,
|
|
20
20
|
redactPath,
|
|
21
21
|
redactShellCommand
|
|
22
|
-
} from "./index-
|
|
22
|
+
} from "./index-2bsnwcmp.js";
|
|
23
23
|
|
|
24
24
|
// src/services/guardrail-explain-service.ts
|
|
25
25
|
import path from "path";
|
|
@@ -92,7 +92,7 @@ var _internals = {
|
|
|
92
92
|
symlinkSync: fs.symlinkSync
|
|
93
93
|
},
|
|
94
94
|
writeScopeToDisk: async (directory, taskId, files) => {
|
|
95
|
-
const { writeScopeToDisk: realWrite } = await import("./scope-persistence-
|
|
95
|
+
const { writeScopeToDisk: realWrite } = await import("./scope-persistence-sh30937s.js");
|
|
96
96
|
return realWrite(directory, taskId, files);
|
|
97
97
|
},
|
|
98
98
|
writeLaneProfileToDisk: async (_worktreePath, _laneIndex, _envOverrides) => {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
autoCommitDirty,
|
|
4
4
|
cleanUntrackedFiles
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-mfhpk4c6.js";
|
|
6
6
|
import {
|
|
7
7
|
isPathWithinDeclaredScope,
|
|
8
8
|
unsafePathTextReason
|
|
@@ -26,13 +26,13 @@ import {
|
|
|
26
26
|
atomicWriteFile,
|
|
27
27
|
taskEvidencePath,
|
|
28
28
|
withTaskEvidenceLock
|
|
29
|
-
} from "./index-
|
|
29
|
+
} from "./index-shazb5b6.js";
|
|
30
30
|
import {
|
|
31
31
|
assertProjectRoot
|
|
32
|
-
} from "./index-
|
|
32
|
+
} from "./index-rsn4jm90.js";
|
|
33
33
|
import {
|
|
34
34
|
telemetry
|
|
35
|
-
} from "./index-
|
|
35
|
+
} from "./index-ghbkknjz.js";
|
|
36
36
|
import {
|
|
37
37
|
exports_external,
|
|
38
38
|
init_zod
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
resolveSwarmKnowledgePath,
|
|
7
7
|
transactKnowledge,
|
|
8
8
|
wordBigrams
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-x46mmaep.js";
|
|
10
10
|
import {
|
|
11
11
|
queryHistoricalOutcomes,
|
|
12
12
|
readKnowledgeEvents,
|
|
13
13
|
recordKnowledgeEvent
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-w49v4xd6.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-
|
|
227
|
+
const { quarantineEntry } = await import("./knowledge-validator-dzm9sg0f.js");
|
|
228
228
|
let policyConfig;
|
|
229
229
|
try {
|
|
230
|
-
const { KnowledgeConfigSchema } = await import("./schema-
|
|
231
|
-
const { loadPluginConfigWithMeta } = await import("./index-
|
|
230
|
+
const { KnowledgeConfigSchema } = await import("./schema-ynwy7abm.js");
|
|
231
|
+
const { loadPluginConfigWithMeta } = await import("./index-627mz27c.js");
|
|
232
232
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
233
233
|
policyConfig = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
234
234
|
} catch {
|
|
@@ -21,7 +21,7 @@ var package_default;
|
|
|
21
21
|
var init_package = __esm(() => {
|
|
22
22
|
package_default = {
|
|
23
23
|
name: "opencode-swarm",
|
|
24
|
-
version: "7.
|
|
24
|
+
version: "7.148.1",
|
|
25
25
|
description: "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
|
|
26
26
|
main: "dist/index.js",
|
|
27
27
|
types: "dist/index.d.ts",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-m97qwwrk.js";
|
|
5
5
|
import {
|
|
6
6
|
handleGuardrailLog
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-e9d2829t.js";
|
|
8
8
|
import {
|
|
9
9
|
COMMAND_REGISTRY,
|
|
10
10
|
SWARM_COMMAND_TOOL_ALLOWLIST,
|
|
@@ -85,48 +85,48 @@ import {
|
|
|
85
85
|
handleWriteRetroCommand,
|
|
86
86
|
normalizeSwarmCommandInput,
|
|
87
87
|
resolveCommand
|
|
88
|
-
} from "./index-
|
|
89
|
-
import"./index-
|
|
90
|
-
import"./index-
|
|
91
|
-
import"./index-
|
|
92
|
-
import"./index-
|
|
93
|
-
import"./index-
|
|
88
|
+
} from "./index-kztxn1ww.js";
|
|
89
|
+
import"./index-kpgj4ha6.js";
|
|
90
|
+
import"./index-2bsnwcmp.js";
|
|
91
|
+
import"./index-5wypz451.js";
|
|
92
|
+
import"./index-t6ys1386.js";
|
|
93
|
+
import"./index-fv5cc1rd.js";
|
|
94
94
|
import"./index-134d35c1.js";
|
|
95
95
|
import"./index-nj6rmyeh.js";
|
|
96
96
|
import"./index-y8552snf.js";
|
|
97
|
-
import"./index-
|
|
98
|
-
import"./index-
|
|
97
|
+
import"./index-q0gfmyzx.js";
|
|
98
|
+
import"./index-81n4ky69.js";
|
|
99
99
|
import"./index-70ha9e09.js";
|
|
100
100
|
import"./index-c8s9a3zh.js";
|
|
101
101
|
import"./index-9ss2m4rs.js";
|
|
102
102
|
import"./index-g8wwj0sz.js";
|
|
103
|
-
import"./index-
|
|
104
|
-
import"./index-
|
|
105
|
-
import"./index-
|
|
106
|
-
import"./index-
|
|
103
|
+
import"./index-2n9rwvcc.js";
|
|
104
|
+
import"./index-hxqjf4me.js";
|
|
105
|
+
import"./index-dwg0z10h.js";
|
|
106
|
+
import"./index-jtnk7k6w.js";
|
|
107
107
|
import"./index-rtry5xyf.js";
|
|
108
108
|
import"./index-zsrtt42s.js";
|
|
109
|
-
import"./index-
|
|
109
|
+
import"./index-ch6sjm8q.js";
|
|
110
110
|
import"./index-fxvgaeq4.js";
|
|
111
|
-
import"./index-
|
|
112
|
-
import"./index-
|
|
113
|
-
import"./index-
|
|
114
|
-
import"./index-
|
|
111
|
+
import"./index-py2rsw1a.js";
|
|
112
|
+
import"./index-mfhpk4c6.js";
|
|
113
|
+
import"./index-c23yxr1s.js";
|
|
114
|
+
import"./index-f115c8y6.js";
|
|
115
115
|
import"./index-556ja8an.js";
|
|
116
116
|
import"./index-b43rt5ph.js";
|
|
117
117
|
import"./index-q7sjgr1y.js";
|
|
118
118
|
import"./index-3g0xk6tk.js";
|
|
119
119
|
import"./index-85gkedsf.js";
|
|
120
|
-
import"./index-
|
|
121
|
-
import"./index-
|
|
122
|
-
import"./index-
|
|
120
|
+
import"./index-x46mmaep.js";
|
|
121
|
+
import"./index-w49v4xd6.js";
|
|
122
|
+
import"./index-shm69en5.js";
|
|
123
123
|
import"./index-gprxjmm7.js";
|
|
124
124
|
import"./index-n832052r.js";
|
|
125
|
-
import"./index-
|
|
125
|
+
import"./index-k5ze5v89.js";
|
|
126
126
|
import {
|
|
127
127
|
init_schema,
|
|
128
128
|
stripKnownSwarmPrefix
|
|
129
|
-
} from "./index-
|
|
129
|
+
} from "./index-qwzpsh3w.js";
|
|
130
130
|
import {
|
|
131
131
|
AGENT_TOOL_MAP,
|
|
132
132
|
ORCHESTRATOR_NAME,
|
|
@@ -139,12 +139,12 @@ import"./index-z6xqpmqg.js";
|
|
|
139
139
|
import"./index-r3mvsbtq.js";
|
|
140
140
|
import"./index-zjygnfay.js";
|
|
141
141
|
import"./index-ae75rja9.js";
|
|
142
|
-
import"./index-
|
|
143
|
-
import"./index-
|
|
142
|
+
import"./index-qzstn430.js";
|
|
143
|
+
import"./index-shazb5b6.js";
|
|
144
144
|
import"./index-bk5tah7q.js";
|
|
145
|
-
import"./index-
|
|
146
|
-
import"./index-
|
|
147
|
-
import"./index-
|
|
145
|
+
import"./index-3yh2e5ca.js";
|
|
146
|
+
import"./index-rsn4jm90.js";
|
|
147
|
+
import"./index-ghbkknjz.js";
|
|
148
148
|
import"./index-7g4c7s5r.js";
|
|
149
149
|
import"./index-bpmtbmy9.js";
|
|
150
150
|
import"./index-ed5ykebp.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
atomicWriteFileAnyRoot
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-3yh2e5ca.js";
|
|
5
5
|
import {
|
|
6
6
|
withEvidenceLock
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-rsn4jm90.js";
|
|
8
8
|
|
|
9
9
|
// src/evidence/task-file.ts
|
|
10
10
|
import * as path from "path";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
init_loader,
|
|
4
4
|
loadPluginConfigWithMeta
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-k5ze5v89.js";
|
|
6
6
|
import {
|
|
7
7
|
init_schema
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-qwzpsh3w.js";
|
|
9
9
|
import {
|
|
10
10
|
DEFAULT_WORKTREE_ISOLATION_CONFIG,
|
|
11
11
|
init_constants
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
EvaluationRunV1Schema,
|
|
4
4
|
GateAuditResultV1Schema,
|
|
5
5
|
getProtectedEvaluationRunIds
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-fv5cc1rd.js";
|
|
7
7
|
import {
|
|
8
8
|
loadDatabaseCtor
|
|
9
9
|
} from "./index-134d35c1.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
readTaskEvidence,
|
|
24
24
|
readTaskEvidenceRaw,
|
|
25
25
|
sanitizeTaskId
|
|
26
|
-
} from "./index-
|
|
26
|
+
} from "./index-py2rsw1a.js";
|
|
27
27
|
import {
|
|
28
28
|
LedgerStaleWriterError,
|
|
29
29
|
appendLedgerEvent,
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
replayFromLedgerWithStatus,
|
|
44
44
|
takeSnapshotEvent,
|
|
45
45
|
takeSnapshotWithRetry
|
|
46
|
-
} from "./index-
|
|
46
|
+
} from "./index-f115c8y6.js";
|
|
47
47
|
import {
|
|
48
48
|
init_executor,
|
|
49
49
|
isUntrustedEnvKey,
|
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
} from "./index-gprxjmm7.js";
|
|
57
57
|
import {
|
|
58
58
|
PlanSchema
|
|
59
|
-
} from "./index-
|
|
59
|
+
} from "./index-k5ze5v89.js";
|
|
60
60
|
import {
|
|
61
61
|
GIT_BINARY_ENV_VAR,
|
|
62
62
|
describeGitResolution,
|
|
@@ -76,10 +76,10 @@ import {
|
|
|
76
76
|
assertProjectRoot,
|
|
77
77
|
tryAcquireLock,
|
|
78
78
|
withEvidenceLock
|
|
79
|
-
} from "./index-
|
|
79
|
+
} from "./index-rsn4jm90.js";
|
|
80
80
|
import {
|
|
81
81
|
emit
|
|
82
|
-
} from "./index-
|
|
82
|
+
} from "./index-ghbkknjz.js";
|
|
83
83
|
import {
|
|
84
84
|
ZodError,
|
|
85
85
|
init_zod
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
loadPluginConfigWithMeta
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-k5ze5v89.js";
|
|
5
5
|
import {
|
|
6
6
|
KnowledgeConfigSchema,
|
|
7
7
|
init_schema
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-qwzpsh3w.js";
|
|
9
9
|
import {
|
|
10
10
|
validateSwarmPath
|
|
11
11
|
} from "./index-4cgee5vh.js";
|
|
@@ -14,16 +14,16 @@ import {
|
|
|
14
14
|
} from "./index-ae75rja9.js";
|
|
15
15
|
import {
|
|
16
16
|
resolveKnowledgeStoreDir
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-qzstn430.js";
|
|
18
18
|
import {
|
|
19
19
|
atomicWriteFile
|
|
20
|
-
} from "./index-
|
|
20
|
+
} from "./index-shazb5b6.js";
|
|
21
21
|
import {
|
|
22
22
|
assertProjectRoot
|
|
23
|
-
} from "./index-
|
|
23
|
+
} from "./index-rsn4jm90.js";
|
|
24
24
|
import {
|
|
25
25
|
emit
|
|
26
|
-
} from "./index-
|
|
26
|
+
} from "./index-ghbkknjz.js";
|
|
27
27
|
import {
|
|
28
28
|
require_proper_lockfile
|
|
29
29
|
} from "./index-7g4c7s5r.js";
|
|
@@ -2693,7 +2693,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
|
|
|
2693
2693
|
}
|
|
2694
2694
|
let bumps = 0;
|
|
2695
2695
|
if (deltas.length > 0) {
|
|
2696
|
-
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-
|
|
2696
|
+
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-y10m7x4f.js");
|
|
2697
2697
|
bumps = await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
|
|
2698
2698
|
}
|
|
2699
2699
|
return {
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
} from "./index-ae75rja9.js";
|
|
7
7
|
import {
|
|
8
8
|
resolveKnowledgeStoreDir
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-qzstn430.js";
|
|
10
10
|
import {
|
|
11
11
|
atomicWriteFile
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-shazb5b6.js";
|
|
13
13
|
import {
|
|
14
14
|
init_knowledge_types,
|
|
15
15
|
isActiveStatus
|
|
@@ -671,8 +671,12 @@ function inferTags(lesson) {
|
|
|
671
671
|
var CONFIDENCE_FLOOR = 0.1;
|
|
672
672
|
var CONFIDENCE_CEILING = 1;
|
|
673
673
|
async function bumpKnowledgeConfidenceBatch(directory, deltas, options) {
|
|
674
|
+
const { applied } = await bumpKnowledgeConfidenceBatchResult(directory, deltas, options);
|
|
675
|
+
return applied;
|
|
676
|
+
}
|
|
677
|
+
async function bumpKnowledgeConfidenceBatchResult(directory, deltas, options) {
|
|
674
678
|
if (deltas.length === 0)
|
|
675
|
-
return 0;
|
|
679
|
+
return { applied: 0, failed: false };
|
|
676
680
|
const swarmPath = resolveSwarmKnowledgePath(directory);
|
|
677
681
|
const hivePath = resolveHiveKnowledgePath2();
|
|
678
682
|
const touchedSwarm = [];
|
|
@@ -689,10 +693,10 @@ async function bumpKnowledgeConfidenceBatch(directory, deltas, options) {
|
|
|
689
693
|
await applyConfidenceFloorAction(directory, [...touchedSwarm, ...touchedHive], options).catch((err) => {
|
|
690
694
|
log("[knowledge-store] confidence-floor action sweep failed (best-effort):", err instanceof Error ? err.message : String(err));
|
|
691
695
|
});
|
|
692
|
-
return touchedSwarm.length + touchedHive.length;
|
|
696
|
+
return { applied: touchedSwarm.length + touchedHive.length, failed: false };
|
|
693
697
|
} catch (err) {
|
|
694
698
|
log("[knowledge-store] bumpKnowledgeConfidenceBatch failed (fail-open):", err instanceof Error ? err.message : String(err));
|
|
695
|
-
return 0;
|
|
699
|
+
return { applied: 0, failed: true };
|
|
696
700
|
}
|
|
697
701
|
}
|
|
698
702
|
async function applyConfidenceFloorAction(directory, touched, options) {
|
|
@@ -709,7 +713,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
|
|
|
709
713
|
const {
|
|
710
714
|
readAuthoritativeKnowledgeCounterRollups,
|
|
711
715
|
effectiveRetrievalOutcomes
|
|
712
|
-
} = await import("./knowledge-events-
|
|
716
|
+
} = await import("./knowledge-events-h5d5eayv.js");
|
|
713
717
|
const rollups = await readAuthoritativeKnowledgeCounterRollups(directory);
|
|
714
718
|
const flagIds = new Set;
|
|
715
719
|
for (const e of atFloor) {
|
|
@@ -776,11 +780,11 @@ async function applyConfidenceFloorAction(directory, touched, options) {
|
|
|
776
780
|
});
|
|
777
781
|
}
|
|
778
782
|
if (action === "quarantine" && toQuarantine.length > 0) {
|
|
779
|
-
const { quarantineEntry } = await import("./knowledge-validator-
|
|
780
|
-
const { KnowledgeConfigSchema } = await import("./schema-
|
|
783
|
+
const { quarantineEntry } = await import("./knowledge-validator-dzm9sg0f.js");
|
|
784
|
+
const { KnowledgeConfigSchema } = await import("./schema-ynwy7abm.js");
|
|
781
785
|
let config;
|
|
782
786
|
try {
|
|
783
|
-
const { loadPluginConfigWithMeta } = await import("./index-
|
|
787
|
+
const { loadPluginConfigWithMeta } = await import("./index-627mz27c.js");
|
|
784
788
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
785
789
|
config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
786
790
|
} catch {
|
|
@@ -901,4 +905,4 @@ var _internals = {
|
|
|
901
905
|
getArchivedKnowledgeIds
|
|
902
906
|
};
|
|
903
907
|
|
|
904
|
-
export { isActiveSwarmKnowledgeEntry, findActiveSwarmNearDuplicate, reinforceSwarmKnowledgeEntry, getPlatformConfigDir, resolveSwarmKnowledgePath, resolveSwarmRejectedPath, resolveSwarmRetractionsPath, resolveRewriteHistoryPath, resolveHiveKnowledgePath2 as resolveHiveKnowledgePath, resolveHiveRejectedPath2 as resolveHiveRejectedPath, resolveHiveEventsPath2 as resolveHiveEventsPath, readKnowledge, normalizeEntry, computeContentHash, readRejectedLessons, readRetractionRecords, appendRetractionRecord, appendRewriteHistory, readRewriteHistory, dedupeCapped, appendKnowledge, rewriteKnowledge, transactFile, transactKnowledge, transactKnowledgeWithCas, getArchivedKnowledgeIds, appendKnowledgeWithCapEnforcement, enforceKnowledgeCap, selectKnowledgeCapSurvivors, sweepAgedEntries, sweepStaleTodos, appendRejectedLesson, normalize, wordBigrams, jaccardBigram, findNearDuplicate, computeConfidence, MAX_CONFIRMED_BY, confirmEntriesPhase, OUTCOME_SIGNAL_SMOOTHING, computeOutcomeSignal, inferTags, bumpKnowledgeConfidenceBatch, _internals };
|
|
908
|
+
export { isActiveSwarmKnowledgeEntry, findActiveSwarmNearDuplicate, reinforceSwarmKnowledgeEntry, getPlatformConfigDir, resolveSwarmKnowledgePath, resolveSwarmRejectedPath, resolveSwarmRetractionsPath, resolveRewriteHistoryPath, resolveHiveKnowledgePath2 as resolveHiveKnowledgePath, resolveHiveRejectedPath2 as resolveHiveRejectedPath, resolveHiveEventsPath2 as resolveHiveEventsPath, readKnowledge, normalizeEntry, computeContentHash, readRejectedLessons, readRetractionRecords, appendRetractionRecord, appendRewriteHistory, readRewriteHistory, dedupeCapped, appendKnowledge, rewriteKnowledge, transactFile, transactKnowledge, transactKnowledgeWithCas, getArchivedKnowledgeIds, appendKnowledgeWithCapEnforcement, enforceKnowledgeCap, selectKnowledgeCapSurvivors, sweepAgedEntries, sweepStaleTodos, appendRejectedLesson, normalize, wordBigrams, jaccardBigram, findNearDuplicate, computeConfidence, MAX_CONFIRMED_BY, confirmEntriesPhase, OUTCOME_SIGNAL_SMOOTHING, computeOutcomeSignal, inferTags, bumpKnowledgeConfidenceBatch, bumpKnowledgeConfidenceBatchResult, _internals };
|
package/dist/cli/index.js
CHANGED
|
@@ -11,48 +11,48 @@ import {
|
|
|
11
11
|
readCachePackageVersion,
|
|
12
12
|
resolveCommand,
|
|
13
13
|
safeRealpathSync
|
|
14
|
-
} from "./index-
|
|
15
|
-
import"./index-
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
14
|
+
} from "./index-kztxn1ww.js";
|
|
15
|
+
import"./index-kpgj4ha6.js";
|
|
16
|
+
import"./index-2bsnwcmp.js";
|
|
17
|
+
import"./index-5wypz451.js";
|
|
18
|
+
import"./index-t6ys1386.js";
|
|
19
|
+
import"./index-fv5cc1rd.js";
|
|
20
20
|
import"./index-134d35c1.js";
|
|
21
21
|
import"./index-nj6rmyeh.js";
|
|
22
22
|
import"./index-y8552snf.js";
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
23
|
+
import"./index-q0gfmyzx.js";
|
|
24
|
+
import"./index-81n4ky69.js";
|
|
25
25
|
import"./index-70ha9e09.js";
|
|
26
26
|
import"./index-c8s9a3zh.js";
|
|
27
27
|
import"./index-9ss2m4rs.js";
|
|
28
28
|
import"./index-g8wwj0sz.js";
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-
|
|
31
|
-
import"./index-
|
|
32
|
-
import"./index-
|
|
29
|
+
import"./index-2n9rwvcc.js";
|
|
30
|
+
import"./index-hxqjf4me.js";
|
|
31
|
+
import"./index-dwg0z10h.js";
|
|
32
|
+
import"./index-jtnk7k6w.js";
|
|
33
33
|
import"./index-rtry5xyf.js";
|
|
34
34
|
import"./index-zsrtt42s.js";
|
|
35
|
-
import"./index-
|
|
35
|
+
import"./index-ch6sjm8q.js";
|
|
36
36
|
import"./index-fxvgaeq4.js";
|
|
37
|
-
import"./index-
|
|
38
|
-
import"./index-
|
|
39
|
-
import"./index-
|
|
40
|
-
import"./index-
|
|
37
|
+
import"./index-py2rsw1a.js";
|
|
38
|
+
import"./index-mfhpk4c6.js";
|
|
39
|
+
import"./index-c23yxr1s.js";
|
|
40
|
+
import"./index-f115c8y6.js";
|
|
41
41
|
import"./index-556ja8an.js";
|
|
42
42
|
import"./index-b43rt5ph.js";
|
|
43
43
|
import"./index-q7sjgr1y.js";
|
|
44
44
|
import"./index-3g0xk6tk.js";
|
|
45
45
|
import"./index-85gkedsf.js";
|
|
46
|
-
import"./index-
|
|
47
|
-
import"./index-
|
|
48
|
-
import"./index-
|
|
46
|
+
import"./index-x46mmaep.js";
|
|
47
|
+
import"./index-w49v4xd6.js";
|
|
48
|
+
import"./index-shm69en5.js";
|
|
49
49
|
import"./index-gprxjmm7.js";
|
|
50
50
|
import"./index-n832052r.js";
|
|
51
|
-
import"./index-
|
|
51
|
+
import"./index-k5ze5v89.js";
|
|
52
52
|
import {
|
|
53
53
|
init_package,
|
|
54
54
|
package_default
|
|
55
|
-
} from "./index-
|
|
55
|
+
} from "./index-qwzpsh3w.js";
|
|
56
56
|
import {
|
|
57
57
|
DEFAULT_AGENT_CONFIGS,
|
|
58
58
|
init_constants
|
|
@@ -64,12 +64,12 @@ import"./index-z6xqpmqg.js";
|
|
|
64
64
|
import"./index-r3mvsbtq.js";
|
|
65
65
|
import"./index-zjygnfay.js";
|
|
66
66
|
import"./index-ae75rja9.js";
|
|
67
|
-
import"./index-
|
|
68
|
-
import"./index-
|
|
67
|
+
import"./index-qzstn430.js";
|
|
68
|
+
import"./index-shazb5b6.js";
|
|
69
69
|
import"./index-bk5tah7q.js";
|
|
70
|
-
import"./index-
|
|
71
|
-
import"./index-
|
|
72
|
-
import"./index-
|
|
70
|
+
import"./index-3yh2e5ca.js";
|
|
71
|
+
import"./index-rsn4jm90.js";
|
|
72
|
+
import"./index-ghbkknjz.js";
|
|
73
73
|
import"./index-7g4c7s5r.js";
|
|
74
74
|
import"./index-bpmtbmy9.js";
|
|
75
75
|
import"./index-ed5ykebp.js";
|
|
@@ -9,14 +9,14 @@ import {
|
|
|
9
9
|
maybeEscalateOnViolation,
|
|
10
10
|
maybeQuarantineOnContradiction,
|
|
11
11
|
readRecentEscalations
|
|
12
|
-
} from "./index-
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
15
|
-
import"./index-
|
|
12
|
+
} from "./index-q0gfmyzx.js";
|
|
13
|
+
import"./index-x46mmaep.js";
|
|
14
|
+
import"./index-w49v4xd6.js";
|
|
15
|
+
import"./index-shm69en5.js";
|
|
16
16
|
import"./index-gprxjmm7.js";
|
|
17
17
|
import"./index-n832052r.js";
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
18
|
+
import"./index-k5ze5v89.js";
|
|
19
|
+
import"./index-qwzpsh3w.js";
|
|
20
20
|
import"./index-cpg98bh1.js";
|
|
21
21
|
import"./index-9e6fdz2h.js";
|
|
22
22
|
import"./index-4rhhvd1a.js";
|
|
@@ -25,12 +25,12 @@ import"./index-z6xqpmqg.js";
|
|
|
25
25
|
import"./index-r3mvsbtq.js";
|
|
26
26
|
import"./index-zjygnfay.js";
|
|
27
27
|
import"./index-ae75rja9.js";
|
|
28
|
-
import"./index-
|
|
29
|
-
import"./index-
|
|
28
|
+
import"./index-qzstn430.js";
|
|
29
|
+
import"./index-shazb5b6.js";
|
|
30
30
|
import"./index-bk5tah7q.js";
|
|
31
|
-
import"./index-
|
|
32
|
-
import"./index-
|
|
33
|
-
import"./index-
|
|
31
|
+
import"./index-3yh2e5ca.js";
|
|
32
|
+
import"./index-rsn4jm90.js";
|
|
33
|
+
import"./index-ghbkknjz.js";
|
|
34
34
|
import"./index-7g4c7s5r.js";
|
|
35
35
|
import"./index-bpmtbmy9.js";
|
|
36
36
|
import"./index-ed5ykebp.js";
|
|
@@ -29,12 +29,12 @@ import {
|
|
|
29
29
|
resolveKnowledgeCounterBaselinePath,
|
|
30
30
|
resolveKnowledgeEventsPath,
|
|
31
31
|
resolveLegacyApplicationLogPath
|
|
32
|
-
} from "./index-
|
|
33
|
-
import"./index-
|
|
32
|
+
} from "./index-w49v4xd6.js";
|
|
33
|
+
import"./index-shm69en5.js";
|
|
34
34
|
import"./index-gprxjmm7.js";
|
|
35
35
|
import"./index-n832052r.js";
|
|
36
|
-
import"./index-
|
|
37
|
-
import"./index-
|
|
36
|
+
import"./index-k5ze5v89.js";
|
|
37
|
+
import"./index-qwzpsh3w.js";
|
|
38
38
|
import"./index-cpg98bh1.js";
|
|
39
39
|
import"./index-9e6fdz2h.js";
|
|
40
40
|
import"./index-4rhhvd1a.js";
|
|
@@ -43,12 +43,12 @@ import"./index-z6xqpmqg.js";
|
|
|
43
43
|
import"./index-r3mvsbtq.js";
|
|
44
44
|
import"./index-zjygnfay.js";
|
|
45
45
|
import"./index-ae75rja9.js";
|
|
46
|
-
import"./index-
|
|
47
|
-
import"./index-
|
|
46
|
+
import"./index-qzstn430.js";
|
|
47
|
+
import"./index-shazb5b6.js";
|
|
48
48
|
import"./index-bk5tah7q.js";
|
|
49
|
-
import"./index-
|
|
50
|
-
import"./index-
|
|
51
|
-
import"./index-
|
|
49
|
+
import"./index-3yh2e5ca.js";
|
|
50
|
+
import"./index-rsn4jm90.js";
|
|
51
|
+
import"./index-ghbkknjz.js";
|
|
52
52
|
import"./index-7g4c7s5r.js";
|
|
53
53
|
import"./index-bpmtbmy9.js";
|
|
54
54
|
import"./index-ed5ykebp.js";
|
|
@@ -12,11 +12,11 @@ import {
|
|
|
12
12
|
resolveLinkDir,
|
|
13
13
|
sanitizeLinkId,
|
|
14
14
|
writeLinkPointer
|
|
15
|
-
} from "./index-
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
15
|
+
} from "./index-qzstn430.js";
|
|
16
|
+
import"./index-shazb5b6.js";
|
|
17
|
+
import"./index-3yh2e5ca.js";
|
|
18
|
+
import"./index-rsn4jm90.js";
|
|
19
|
+
import"./index-ghbkknjz.js";
|
|
20
20
|
import"./index-7g4c7s5r.js";
|
|
21
21
|
import"./index-bpmtbmy9.js";
|
|
22
22
|
import"./index-ed5ykebp.js";
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
appendRetractionRecord,
|
|
10
10
|
appendRewriteHistory,
|
|
11
11
|
bumpKnowledgeConfidenceBatch,
|
|
12
|
+
bumpKnowledgeConfidenceBatchResult,
|
|
12
13
|
computeConfidence,
|
|
13
14
|
computeContentHash,
|
|
14
15
|
computeOutcomeSignal,
|
|
@@ -41,16 +42,16 @@ import {
|
|
|
41
42
|
transactKnowledge,
|
|
42
43
|
transactKnowledgeWithCas,
|
|
43
44
|
wordBigrams
|
|
44
|
-
} from "./index-
|
|
45
|
+
} from "./index-x46mmaep.js";
|
|
45
46
|
import {
|
|
46
47
|
resolveHiveDataDir
|
|
47
48
|
} from "./index-ae75rja9.js";
|
|
48
|
-
import"./index-
|
|
49
|
-
import"./index-
|
|
49
|
+
import"./index-qzstn430.js";
|
|
50
|
+
import"./index-shazb5b6.js";
|
|
50
51
|
import"./index-bk5tah7q.js";
|
|
51
|
-
import"./index-
|
|
52
|
-
import"./index-
|
|
53
|
-
import"./index-
|
|
52
|
+
import"./index-3yh2e5ca.js";
|
|
53
|
+
import"./index-rsn4jm90.js";
|
|
54
|
+
import"./index-ghbkknjz.js";
|
|
54
55
|
import"./index-7g4c7s5r.js";
|
|
55
56
|
import"./index-bpmtbmy9.js";
|
|
56
57
|
import"./index-ed5ykebp.js";
|
|
@@ -90,6 +91,7 @@ export {
|
|
|
90
91
|
computeOutcomeSignal,
|
|
91
92
|
computeContentHash,
|
|
92
93
|
computeConfidence,
|
|
94
|
+
bumpKnowledgeConfidenceBatchResult,
|
|
93
95
|
bumpKnowledgeConfidenceBatch,
|
|
94
96
|
appendRewriteHistory,
|
|
95
97
|
appendRetractionRecord,
|
|
@@ -23,17 +23,17 @@ import {
|
|
|
23
23
|
validateLesson,
|
|
24
24
|
validateSkillCandidatePath,
|
|
25
25
|
validateSkillPath
|
|
26
|
-
} from "./index-
|
|
27
|
-
import"./index-
|
|
26
|
+
} from "./index-dwg0z10h.js";
|
|
27
|
+
import"./index-jtnk7k6w.js";
|
|
28
28
|
import"./index-rtry5xyf.js";
|
|
29
|
-
import"./index-
|
|
29
|
+
import"./index-x46mmaep.js";
|
|
30
30
|
import"./index-ae75rja9.js";
|
|
31
|
-
import"./index-
|
|
32
|
-
import"./index-
|
|
31
|
+
import"./index-qzstn430.js";
|
|
32
|
+
import"./index-shazb5b6.js";
|
|
33
33
|
import"./index-bk5tah7q.js";
|
|
34
|
-
import"./index-
|
|
35
|
-
import"./index-
|
|
36
|
-
import"./index-
|
|
34
|
+
import"./index-3yh2e5ca.js";
|
|
35
|
+
import"./index-rsn4jm90.js";
|
|
36
|
+
import"./index-ghbkknjz.js";
|
|
37
37
|
import"./index-7g4c7s5r.js";
|
|
38
38
|
import"./index-bpmtbmy9.js";
|
|
39
39
|
import"./index-ed5ykebp.js";
|