opencode-swarm 7.178.1 → 7.179.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/deep-dive/SKILL.md +1 -1
- package/.opencode/skills/execute/SKILL.md +9 -8
- package/.opencode/skills/running-tests/SKILL.md +40 -29
- package/.opencode/skills/swarm-plan/SKILL.md +1 -1
- package/.opencode/skills/writing-tests/SKILL.md +11 -4
- package/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
- package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
- package/dist/agents/critic.d.ts +6 -6
- package/dist/agents/explorer.d.ts +1 -1
- package/dist/cli/{coder-settlement-m03dfyec.js → coder-settlement-f1nmezzv.js} +8 -8
- package/dist/cli/{config-doctor-x8b260sh.js → config-doctor-ena2803f.js} +3 -3
- package/dist/cli/{core-2d0xcyby.js → core-fcfzme3m.js} +2 -2
- package/dist/cli/{curation-policy-7am15ht9.js → curation-policy-c7mdsf7m.js} +4 -4
- package/dist/cli/{curator-llm-factory-rgdb2ee5.js → curator-llm-factory-dds2fnhj.js} +33 -33
- package/dist/cli/{curator-5kfkqzc9.js → curator-q9s5q9v4.js} +33 -33
- package/dist/cli/{dispatch-9yqqqfr6.js → dispatch-p5zjg5e6.js} +1 -1
- package/dist/cli/{evidence-summary-service-959pwbwb.js → evidence-summary-service-wtj8mkm6.js} +13 -13
- package/dist/cli/{explorer-2cv64zfj.js → explorer-m50sfrp7.js} +1 -1
- package/dist/cli/{gate-evidence-66kjx6zj.js → gate-evidence-h83yb8nd.js} +5 -5
- package/dist/cli/{guardrail-explain-rre9ntq3.js → guardrail-explain-qm5wej7v.js} +34 -34
- package/dist/cli/{guardrail-log-t0ydqz5s.js → guardrail-log-zf1htf1d.js} +7 -7
- package/dist/cli/{guardrail-reset-6gad352a.js → guardrail-reset-f2p198j3.js} +33 -33
- package/dist/cli/{hive-promoter-zgnagx67.js → hive-promoter-1mhx2jh0.js} +33 -33
- package/dist/cli/{index-xr9n0vjv.js → index-0h3cr7pn.js} +1 -1
- package/dist/cli/{index-t8dqe4ns.js → index-34bwqcea.js} +1 -1
- package/dist/cli/{index-b50qevsm.js → index-5d224akk.js} +4 -4
- package/dist/cli/{index-yew23624.js → index-6r92fw88.js} +4 -4
- package/dist/cli/{index-byfrearz.js → index-93nx95me.js} +4 -4
- package/dist/cli/{index-eq1n57tg.js → index-9fb01jk5.js} +1 -1
- package/dist/cli/{index-zv3j0v08.js → index-9s1xzvnn.js} +2 -2
- package/dist/cli/{index-whjrhatw.js → index-a11ztzs5.js} +18 -1
- package/dist/cli/{index-2e6txjp7.js → index-ajm7ebyd.js} +3 -3
- package/dist/cli/{index-x1m1nnry.js → index-aqpwm350.js} +4 -4
- package/dist/cli/{index-ksq6cqg0.js → index-b567t0cr.js} +5 -5
- package/dist/cli/{index-bb148vht.js → index-cvg402ha.js} +1 -1
- package/dist/cli/{index-r78kphsr.js → index-dz12bshh.js} +3 -3
- package/dist/cli/{index-xr3eye3f.js → index-epfjc1c1.js} +7 -7
- package/dist/cli/{index-kz9pcqn9.js → index-f2v90gfc.js} +1 -1
- package/dist/cli/{index-7n4dtzk4.js → index-g6nyk713.js} +1 -1
- package/dist/cli/{index-w1b5qqnp.js → index-h59vsbch.js} +2 -2
- package/dist/cli/{index-hnvmj9wx.js → index-hamqvzqn.js} +70 -4
- package/dist/cli/{index-wajcx84s.js → index-ky262b73.js} +2123 -762
- package/dist/cli/{index-qbs49vge.js → index-m1w40kfw.js} +1 -1
- package/dist/cli/{index-1hgqs8j8.js → index-n2wjrgcs.js} +3 -3
- package/dist/cli/{index-1zrrerev.js → index-pfg3jwe9.js} +2 -2
- package/dist/cli/{index-1qnykdaw.js → index-pn023bf9.js} +35 -35
- package/dist/cli/{index-nrfjjqm4.js → index-pskba939.js} +1 -1
- package/dist/cli/{index-6e8fpjdg.js → index-q375xdcw.js} +2 -2
- package/dist/cli/{index-pk97v7b8.js → index-qt0793qm.js} +4 -4
- package/dist/cli/{index-pyxs697r.js → index-rb9jmj30.js} +5 -5
- package/dist/cli/{index-fyfbpz4f.js → index-rdec0y3z.js} +1 -0
- package/dist/cli/{index-4e4zsj2g.js → index-sj29n50e.js} +5 -5
- package/dist/cli/{index-x54339yd.js → index-vp9pn7sv.js} +5 -5
- package/dist/cli/{index-1jcy4gc6.js → index-w4c2repz.js} +33 -33
- package/dist/cli/{index-m2n1rhgv.js → index-w872yykk.js} +1 -1
- package/dist/cli/{index-kj599831.js → index-xy7k7f3k.js} +2 -2
- package/dist/cli/{index-7kty6f59.js → index-y94vwx2q.js} +5 -5
- package/dist/cli/{index-h0kyy9rd.js → index-y98fvmb8.js} +9 -9
- package/dist/cli/{index-0pmh1kks.js → index-yfpswnjt.js} +1 -1
- package/dist/cli/{index-2pyba37z.js → index-yp25bc9n.js} +6 -6
- package/dist/cli/{index-j7w16s92.js → index-zbhvr9st.js} +2 -2
- package/dist/cli/index.js +34 -34
- package/dist/cli/{knowledge-escalator-5r6mww64.js → knowledge-escalator-z6tkgrjq.js} +11 -11
- package/dist/cli/{knowledge-events-typjw0sd.js → knowledge-events-2bgefatz.js} +9 -9
- package/dist/cli/{knowledge-link-mvykydxg.js → knowledge-link-gfz47ves.js} +3 -3
- package/dist/cli/{knowledge-store-9qcf3emn.js → knowledge-store-1fphg9sa.js} +4 -4
- package/dist/cli/{knowledge-validator-k6ydsxzy.js → knowledge-validator-723h2vck.js} +6 -6
- package/dist/cli/{mcp-tedxsgey.js → mcp-xyswgya5.js} +1 -1
- package/dist/cli/{model-preflight-kh9dwts2.js → model-preflight-61xgqwcs.js} +1 -1
- package/dist/cli/{pending-delegations-d20fnrzv.js → pending-delegations-5zm19yvv.js} +8 -8
- package/dist/cli/{pr-subscriptions-awwhg139.js → pr-subscriptions-5hm6hzv6.js} +8 -8
- package/dist/cli/{pr-workflow-gate-ke79bb9c.js → pr-workflow-gate-48rzb2bh.js} +35 -33
- package/dist/cli/{runner-y3sydwtj.js → runner-16b691ba.js} +4 -4
- package/dist/cli/{scan-cursor-16s6dp7f.js → scan-cursor-m28tddrg.js} +5 -5
- package/dist/cli/{schema-nqjp43vq.js → schema-jt9axyj6.js} +2 -2
- package/dist/cli/{scope-persistence-8z1hwdr2.js → scope-persistence-d0358pw7.js} +13 -13
- package/dist/cli/{server-x16hp9aq.js → server-d5jxcbxz.js} +33 -33
- package/dist/cli/{skill-generator-xadg43ph.js → skill-generator-qanka67x.js} +13 -13
- package/dist/cli/{snapshot-coordination-init-3yyzb2c4.js → snapshot-coordination-init-mhrq11p8.js} +33 -33
- package/dist/cli/{telemetry-c9wv2cfw.js → telemetry-qxav5cdk.js} +1 -1
- package/dist/cli/{worktree-collision-ownership-drqhmmtd.js → worktree-collision-ownership-ygdbpexh.js} +8 -8
- package/dist/cli/{worktree-isolation-aebdyb1m.js → worktree-isolation-4855f2az.js} +33 -33
- package/dist/commands/registry.d.ts +3 -3
- package/dist/db/coordination-store.d.ts +10 -0
- package/dist/hooks/pr-workflow-gate.d.ts +15 -6
- package/dist/index.js +238 -218
- package/dist/lang/backends/go.d.ts +2 -0
- package/dist/mutation/engine.d.ts +7 -0
- package/dist/mutation/equivalence.d.ts +12 -1
- package/dist/pr-review/circuit.d.ts +3 -3
- package/dist/pr-review/legacy-transcript-adapter.d.ts +7 -10
- package/dist/pr-review/persistence.d.ts +36 -0
- package/dist/retention/sweep.d.ts +4 -0
- package/dist/test-impact/analyzer.d.ts +46 -4
- package/dist/test-impact/constants.d.ts +4 -0
- package/dist/tools/mutation-test.d.ts +12 -0
- package/dist/tools/prepare-pr-workflow-checkout.d.ts +19 -0
- package/dist/tools/repo-map-action-dispositions.d.ts +23 -0
- package/dist/tools/test-runner.d.ts +45 -2
- package/package.json +1 -1
- package/dist/pr-review/guardrails.d.ts +0 -67
|
@@ -7,67 +7,67 @@ import {
|
|
|
7
7
|
isHiveEligible,
|
|
8
8
|
promoteFromSwarm,
|
|
9
9
|
promoteToHive
|
|
10
|
-
} from "./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
10
|
+
} from "./index-ky262b73.js";
|
|
11
|
+
import"./index-hamqvzqn.js";
|
|
12
|
+
import"./index-pskba939.js";
|
|
13
|
+
import"./index-aqpwm350.js";
|
|
14
14
|
import"./index-h4nh6s8b.js";
|
|
15
|
-
import"./index-
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
15
|
+
import"./index-q375xdcw.js";
|
|
16
|
+
import"./index-y98fvmb8.js";
|
|
17
|
+
import"./index-g6nyk713.js";
|
|
18
18
|
import"./index-txdagbh7.js";
|
|
19
19
|
import"./index-n1tcj1q7.js";
|
|
20
20
|
import"./index-6b295cas.js";
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
21
|
+
import"./index-dz12bshh.js";
|
|
22
|
+
import"./index-vp9pn7sv.js";
|
|
23
|
+
import"./index-pfg3jwe9.js";
|
|
24
|
+
import"./index-rdec0y3z.js";
|
|
25
|
+
import"./index-6r92fw88.js";
|
|
26
26
|
import"./index-549wxbe1.js";
|
|
27
27
|
import"./index-zsrtt42s.js";
|
|
28
|
-
import"./index-
|
|
28
|
+
import"./index-y94vwx2q.js";
|
|
29
29
|
import"./index-2b0ktpbf.js";
|
|
30
30
|
import"./index-3pzwsesm.js";
|
|
31
31
|
import"./index-pt7h91zc.js";
|
|
32
32
|
import"./index-q7sjgr1y.js";
|
|
33
|
-
import"./index-
|
|
34
|
-
import"./index-
|
|
35
|
-
import"./index-
|
|
36
|
-
import"./index-
|
|
33
|
+
import"./index-n2wjrgcs.js";
|
|
34
|
+
import"./index-zbhvr9st.js";
|
|
35
|
+
import"./index-sj29n50e.js";
|
|
36
|
+
import"./index-epfjc1c1.js";
|
|
37
37
|
import"./index-s4bkey0q.js";
|
|
38
38
|
import"./index-2s7dvzff.js";
|
|
39
|
-
import"./index-
|
|
40
|
-
import"./index-
|
|
39
|
+
import"./index-5d224akk.js";
|
|
40
|
+
import"./index-0h3cr7pn.js";
|
|
41
41
|
import"./index-rtry5xyf.js";
|
|
42
|
-
import"./index-
|
|
42
|
+
import"./index-ajm7ebyd.js";
|
|
43
43
|
import"./index-frcemc0b.js";
|
|
44
44
|
import"./index-wrt875kh.js";
|
|
45
|
-
import"./index-
|
|
46
|
-
import"./index-
|
|
47
|
-
import"./index-
|
|
48
|
-
import"./index-
|
|
49
|
-
import"./index-
|
|
45
|
+
import"./index-rb9jmj30.js";
|
|
46
|
+
import"./index-b567t0cr.js";
|
|
47
|
+
import"./index-h59vsbch.js";
|
|
48
|
+
import"./index-cvg402ha.js";
|
|
49
|
+
import"./index-a11ztzs5.js";
|
|
50
50
|
import"./index-nzekzzs2.js";
|
|
51
51
|
import"./index-ry16d01s.js";
|
|
52
52
|
import"./index-rdm3px0g.js";
|
|
53
|
-
import"./index-
|
|
53
|
+
import"./index-yfpswnjt.js";
|
|
54
54
|
import {
|
|
55
55
|
resolveHiveKnowledgePath
|
|
56
|
-
} from "./index-
|
|
56
|
+
} from "./index-yp25bc9n.js";
|
|
57
57
|
import"./index-vzm6zre7.js";
|
|
58
58
|
import"./index-ae75rja9.js";
|
|
59
|
-
import"./index-
|
|
60
|
-
import"./index-
|
|
59
|
+
import"./index-34bwqcea.js";
|
|
60
|
+
import"./index-f2v90gfc.js";
|
|
61
61
|
import"./index-7g4c7s5r.js";
|
|
62
|
-
import"./index-
|
|
62
|
+
import"./index-qt0793qm.js";
|
|
63
63
|
import"./index-ne9zamcs.js";
|
|
64
64
|
import"./index-1xnse449.js";
|
|
65
65
|
import"./index-c1ggtmpm.js";
|
|
66
|
-
import"./index-
|
|
66
|
+
import"./index-m1w40kfw.js";
|
|
67
67
|
import"./index-zz7gzw57.js";
|
|
68
68
|
import"./index-4ddpvd5c.js";
|
|
69
|
-
import"./index-
|
|
70
|
-
import"./index-
|
|
69
|
+
import"./index-9s1xzvnn.js";
|
|
70
|
+
import"./index-w872yykk.js";
|
|
71
71
|
import"./index-bk5tah7q.js";
|
|
72
72
|
import"./index-gknz3bv1.js";
|
|
73
73
|
import"./index-zpsr8rpc.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
authorizeCuration
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-0h3cr7pn.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-yp25bc9n.js";
|
|
13
13
|
import {
|
|
14
14
|
resolveKnowledgeStoreDir
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-34bwqcea.js";
|
|
16
16
|
import {
|
|
17
17
|
atomicWriteFile
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-f2v90gfc.js";
|
|
19
19
|
import {
|
|
20
20
|
require_proper_lockfile
|
|
21
21
|
} from "./index-7g4c7s5r.js";
|
|
@@ -8,20 +8,20 @@ import {
|
|
|
8
8
|
listCoordinationStates,
|
|
9
9
|
transitionCoordinationState,
|
|
10
10
|
withCoordinationTransaction
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-a11ztzs5.js";
|
|
12
12
|
import {
|
|
13
13
|
getProjectDb,
|
|
14
14
|
projectDbExists
|
|
15
15
|
} from "./index-nzekzzs2.js";
|
|
16
16
|
import {
|
|
17
17
|
observeStoreHealth
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-yfpswnjt.js";
|
|
19
19
|
import {
|
|
20
20
|
withEvidenceLock
|
|
21
|
-
} from "./index-
|
|
21
|
+
} from "./index-f2v90gfc.js";
|
|
22
22
|
import {
|
|
23
23
|
telemetry
|
|
24
|
-
} from "./index-
|
|
24
|
+
} from "./index-qt0793qm.js";
|
|
25
25
|
import {
|
|
26
26
|
atomicWriteSwarmFileSync
|
|
27
27
|
} from "./index-ne9zamcs.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
_internals,
|
|
4
4
|
resolveWorktreeIsolationConfig
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-ajm7ebyd.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-
|
|
47
|
+
} from "./index-m1w40kfw.js";
|
|
48
48
|
import"./index-zz7gzw57.js";
|
|
49
49
|
import"./index-4ddpvd5c.js";
|
|
50
50
|
import {
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
TurboConfigSchema,
|
|
72
72
|
WorktreeIsolationConfigSchema,
|
|
73
73
|
resolveAutoReviewConfig
|
|
74
|
-
} from "./index-
|
|
74
|
+
} from "./index-9s1xzvnn.js";
|
|
75
75
|
import {
|
|
76
76
|
ALL_AGENT_NAMES,
|
|
77
77
|
ALL_SUBAGENT_NAMES,
|
|
@@ -81,7 +81,7 @@ import {
|
|
|
81
81
|
QA_AGENTS,
|
|
82
82
|
isQAAgent,
|
|
83
83
|
isSubagent
|
|
84
|
-
} from "./index-
|
|
84
|
+
} from "./index-w872yykk.js";
|
|
85
85
|
import"./index-bk5tah7q.js";
|
|
86
86
|
import"./index-gknz3bv1.js";
|
|
87
87
|
import"./index-zpsr8rpc.js";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
ALL_AGENT_NAMES,
|
|
4
4
|
SUMMARIZER_EXEMPT_TOOL_NAMES,
|
|
5
5
|
init_constants
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-w872yykk.js";
|
|
7
7
|
import {
|
|
8
8
|
OUTCOME_BLOCK_THRESHOLD,
|
|
9
9
|
init_knowledge_types
|
|
@@ -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.179.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",
|
|
@@ -56,6 +56,23 @@ function readState(db, namespace, entityKey) {
|
|
|
56
56
|
FROM coordination_state WHERE namespace = ? AND entity_key = ?`).get(namespace, entityKey) ?? null;
|
|
57
57
|
return rowToState(row);
|
|
58
58
|
}
|
|
59
|
+
function getCoordinationStateRaw(directory, namespace, entityKey) {
|
|
60
|
+
if (!projectDbExists(directory))
|
|
61
|
+
return null;
|
|
62
|
+
const row = getProjectDb(directory).query(`SELECT namespace, entity_key, revision, generation, status, payload, updated_at
|
|
63
|
+
FROM coordination_state WHERE namespace = ? AND entity_key = ?`).get(namespace, entityKey) ?? null;
|
|
64
|
+
if (!row)
|
|
65
|
+
return null;
|
|
66
|
+
return {
|
|
67
|
+
namespace: row.namespace,
|
|
68
|
+
entityKey: row.entity_key,
|
|
69
|
+
revision: row.revision,
|
|
70
|
+
generation: row.generation,
|
|
71
|
+
status: row.status,
|
|
72
|
+
payload: row.payload,
|
|
73
|
+
updatedAt: row.updated_at
|
|
74
|
+
};
|
|
75
|
+
}
|
|
59
76
|
function transactionHooks() {
|
|
60
77
|
return {
|
|
61
78
|
beforeBegin: (db) => _internals.coordinationFaultInjector?.("before_begin", db),
|
|
@@ -358,4 +375,4 @@ function derivePlanIdentityHash(plan) {
|
|
|
358
375
|
return createHash2("sha256").update(JSON.stringify([plan.swarm, plan.title]), "utf8").digest("hex");
|
|
359
376
|
}
|
|
360
377
|
|
|
361
|
-
export { MAX_COORDINATION_STATE_LIST_ROWS, withCoordinationTransaction, getCoordinationState, listCoordinationStates, countCoordinationStates, deleteCoordinationState, deleteCoordinationStateWithinTransaction, transitionCoordinationStateWithinTransaction, transitionCoordinationState, getCoordinationLease, acquireCoordinationLease, releaseCoordinationLease, importCoordinationOnce, deleteCoordinationImports, derivePlanId, derivePlanIdentityHash };
|
|
378
|
+
export { MAX_COORDINATION_STATE_LIST_ROWS, getCoordinationStateRaw, withCoordinationTransaction, getCoordinationState, listCoordinationStates, countCoordinationStates, deleteCoordinationState, deleteCoordinationStateWithinTransaction, transitionCoordinationStateWithinTransaction, transitionCoordinationState, getCoordinationLease, acquireCoordinationLease, releaseCoordinationLease, importCoordinationOnce, deleteCoordinationImports, derivePlanId, derivePlanIdentityHash };
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import {
|
|
3
3
|
init_loader,
|
|
4
4
|
loadPluginConfigWithMeta
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-m1w40kfw.js";
|
|
6
6
|
import {
|
|
7
7
|
init_schema
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-9s1xzvnn.js";
|
|
9
9
|
import {
|
|
10
10
|
DEFAULT_WORKTREE_ISOLATION_CONFIG,
|
|
11
11
|
init_constants
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-w872yykk.js";
|
|
13
13
|
|
|
14
14
|
// src/config/index.ts
|
|
15
15
|
init_constants();
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
observeStoreHealth
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-yfpswnjt.js";
|
|
5
5
|
import {
|
|
6
6
|
telemetry
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-qt0793qm.js";
|
|
8
8
|
import {
|
|
9
9
|
init_schema,
|
|
10
10
|
stripKnownSwarmPrefix
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-9s1xzvnn.js";
|
|
12
12
|
import {
|
|
13
13
|
init_constants
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-w872yykk.js";
|
|
15
15
|
import {
|
|
16
16
|
getPathFlavor,
|
|
17
17
|
init_path_identity,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
derivePlanId,
|
|
4
4
|
derivePlanIdentityHash
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-a11ztzs5.js";
|
|
6
6
|
import {
|
|
7
7
|
getProjectDb,
|
|
8
8
|
projectDbExists,
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
import {
|
|
13
13
|
assertProjectRoot,
|
|
14
14
|
withEvidenceLock
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-f2v90gfc.js";
|
|
16
16
|
import {
|
|
17
17
|
emit
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-qt0793qm.js";
|
|
19
19
|
import {
|
|
20
20
|
ExecutionProfileSchema,
|
|
21
21
|
PlanSchema,
|
|
@@ -23,11 +23,11 @@ import {
|
|
|
23
23
|
init_loader,
|
|
24
24
|
loadPluginConfig,
|
|
25
25
|
normalizeCurrentPhaseInPlace
|
|
26
|
-
} from "./index-
|
|
26
|
+
} from "./index-m1w40kfw.js";
|
|
27
27
|
import {
|
|
28
28
|
init_package,
|
|
29
29
|
package_default
|
|
30
|
-
} from "./index-
|
|
30
|
+
} from "./index-9s1xzvnn.js";
|
|
31
31
|
import {
|
|
32
32
|
criticalWarn,
|
|
33
33
|
init_logger,
|
|
@@ -5,18 +5,18 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
effectiveRetrievalOutcomes,
|
|
7
7
|
readAuthoritativeKnowledgeCounterRollups
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-epfjc1c1.js";
|
|
9
9
|
import {
|
|
10
10
|
ALLOWED_SKILL_PATH_PREFIXES,
|
|
11
11
|
validateSkillPath
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-5d224akk.js";
|
|
13
13
|
import {
|
|
14
14
|
computeOutcomeSignal,
|
|
15
15
|
readKnowledge,
|
|
16
16
|
resolveHiveKnowledgePath,
|
|
17
17
|
resolveSwarmKnowledgePath,
|
|
18
18
|
transactKnowledge
|
|
19
|
-
} from "./index-
|
|
19
|
+
} from "./index-yp25bc9n.js";
|
|
20
20
|
import {
|
|
21
21
|
appendCappedJsonl,
|
|
22
22
|
resolveRetentionCap
|
|
@@ -4,33 +4,33 @@ import {
|
|
|
4
4
|
} from "./index-s4bkey0q.js";
|
|
5
5
|
import {
|
|
6
6
|
observeReceiptTransition
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-yfpswnjt.js";
|
|
8
8
|
import {
|
|
9
9
|
resolveHiveEventsPath
|
|
10
10
|
} from "./index-ae75rja9.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveKnowledgeStoreDir
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-34bwqcea.js";
|
|
14
14
|
import {
|
|
15
15
|
assertProjectRoot,
|
|
16
16
|
atomicWriteFile
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-f2v90gfc.js";
|
|
18
18
|
import {
|
|
19
19
|
require_proper_lockfile
|
|
20
20
|
} from "./index-7g4c7s5r.js";
|
|
21
21
|
import {
|
|
22
22
|
emit
|
|
23
|
-
} from "./index-
|
|
23
|
+
} from "./index-qt0793qm.js";
|
|
24
24
|
import {
|
|
25
25
|
canonicalRootKey
|
|
26
26
|
} from "./index-1xnse449.js";
|
|
27
27
|
import {
|
|
28
28
|
loadPluginConfigWithMeta
|
|
29
|
-
} from "./index-
|
|
29
|
+
} from "./index-m1w40kfw.js";
|
|
30
30
|
import {
|
|
31
31
|
KnowledgeConfigSchema,
|
|
32
32
|
init_schema
|
|
33
|
-
} from "./index-
|
|
33
|
+
} from "./index-9s1xzvnn.js";
|
|
34
34
|
import {
|
|
35
35
|
init_logger,
|
|
36
36
|
warn
|
|
@@ -2813,7 +2813,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
|
|
|
2813
2813
|
}
|
|
2814
2814
|
let bumps = 0;
|
|
2815
2815
|
if (deltas.length > 0) {
|
|
2816
|
-
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-
|
|
2816
|
+
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-1fphg9sa.js");
|
|
2817
2817
|
bumps = await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
|
|
2818
2818
|
}
|
|
2819
2819
|
return {
|
|
@@ -14739,16 +14739,82 @@ var PROFILE_ID = "go";
|
|
|
14739
14739
|
var IMPORT_REGEX_SINGLE = /^\s*import\s+(?:[a-zA-Z_.][a-zA-Z0-9_]*\s+)?"([^"]+)"/gm;
|
|
14740
14740
|
var IMPORT_REGEX_GROUP = /^\s*import\s*\(([\s\S]*?)\)/gm;
|
|
14741
14741
|
var IMPORT_REGEX_GROUP_LINE = /(?:[a-zA-Z_.][a-zA-Z0-9_]*\s+)?"([^"]+)"/g;
|
|
14742
|
+
var MAX_IMPORT_SOURCE_BYTES = 1 * 1024 * 1024;
|
|
14743
|
+
function stripGoComments(source) {
|
|
14744
|
+
let state = "normal";
|
|
14745
|
+
let out = "";
|
|
14746
|
+
let escaped = false;
|
|
14747
|
+
for (let index = 0;index < source.length; index++) {
|
|
14748
|
+
const current = source[index];
|
|
14749
|
+
const next = source[index + 1];
|
|
14750
|
+
if (state === "line") {
|
|
14751
|
+
if (current === `
|
|
14752
|
+
` || current === "\r") {
|
|
14753
|
+
state = "normal";
|
|
14754
|
+
out += current;
|
|
14755
|
+
} else {
|
|
14756
|
+
out += " ";
|
|
14757
|
+
}
|
|
14758
|
+
continue;
|
|
14759
|
+
}
|
|
14760
|
+
if (state === "block") {
|
|
14761
|
+
if (current === "*" && next === "/") {
|
|
14762
|
+
out += " ";
|
|
14763
|
+
index++;
|
|
14764
|
+
state = "normal";
|
|
14765
|
+
} else {
|
|
14766
|
+
out += current === `
|
|
14767
|
+
` || current === "\r" ? current : " ";
|
|
14768
|
+
}
|
|
14769
|
+
continue;
|
|
14770
|
+
}
|
|
14771
|
+
if (state === "string") {
|
|
14772
|
+
out += current;
|
|
14773
|
+
if (escaped)
|
|
14774
|
+
escaped = false;
|
|
14775
|
+
else if (current === "\\")
|
|
14776
|
+
escaped = true;
|
|
14777
|
+
else if (current === '"')
|
|
14778
|
+
state = "normal";
|
|
14779
|
+
continue;
|
|
14780
|
+
}
|
|
14781
|
+
if (state === "raw") {
|
|
14782
|
+
out += current;
|
|
14783
|
+
if (current === "`")
|
|
14784
|
+
state = "normal";
|
|
14785
|
+
continue;
|
|
14786
|
+
}
|
|
14787
|
+
if (current === "/" && next === "/") {
|
|
14788
|
+
out += " ";
|
|
14789
|
+
index++;
|
|
14790
|
+
state = "line";
|
|
14791
|
+
} else if (current === "/" && next === "*") {
|
|
14792
|
+
out += " ";
|
|
14793
|
+
index++;
|
|
14794
|
+
state = "block";
|
|
14795
|
+
} else {
|
|
14796
|
+
out += current;
|
|
14797
|
+
if (current === '"')
|
|
14798
|
+
state = "string";
|
|
14799
|
+
else if (current === "`")
|
|
14800
|
+
state = "raw";
|
|
14801
|
+
}
|
|
14802
|
+
}
|
|
14803
|
+
return out;
|
|
14804
|
+
}
|
|
14742
14805
|
function extractImports(_sourceFile, source) {
|
|
14806
|
+
if (Buffer.byteLength(source, "utf8") > MAX_IMPORT_SOURCE_BYTES)
|
|
14807
|
+
return [];
|
|
14743
14808
|
const out = new Set;
|
|
14809
|
+
const uncommented = stripGoComments(source);
|
|
14744
14810
|
IMPORT_REGEX_SINGLE.lastIndex = 0;
|
|
14745
|
-
let m = IMPORT_REGEX_SINGLE.exec(
|
|
14811
|
+
let m = IMPORT_REGEX_SINGLE.exec(uncommented);
|
|
14746
14812
|
while (m !== null) {
|
|
14747
14813
|
out.add(m[1]);
|
|
14748
|
-
m = IMPORT_REGEX_SINGLE.exec(
|
|
14814
|
+
m = IMPORT_REGEX_SINGLE.exec(uncommented);
|
|
14749
14815
|
}
|
|
14750
14816
|
IMPORT_REGEX_GROUP.lastIndex = 0;
|
|
14751
|
-
m = IMPORT_REGEX_GROUP.exec(
|
|
14817
|
+
m = IMPORT_REGEX_GROUP.exec(uncommented);
|
|
14752
14818
|
while (m !== null) {
|
|
14753
14819
|
const block = m[1];
|
|
14754
14820
|
IMPORT_REGEX_GROUP_LINE.lastIndex = 0;
|
|
@@ -14757,7 +14823,7 @@ function extractImports(_sourceFile, source) {
|
|
|
14757
14823
|
out.add(inner[1]);
|
|
14758
14824
|
inner = IMPORT_REGEX_GROUP_LINE.exec(block);
|
|
14759
14825
|
}
|
|
14760
|
-
m = IMPORT_REGEX_GROUP.exec(
|
|
14826
|
+
m = IMPORT_REGEX_GROUP.exec(uncommented);
|
|
14761
14827
|
}
|
|
14762
14828
|
return [...out];
|
|
14763
14829
|
}
|