opencode-swarm 7.113.3 → 7.114.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.opencode/skills/test-file-split/SKILL.md +1 -1
- package/.opencode/skills/writing-tests/SKILL.md +1 -1
- package/dist/cli/{curator-llm-factory-mhjcpy1s.js → curator-llm-factory-awp6xgvt.js} +1 -1
- package/dist/cli/{curator-ckzb8ww4.js → curator-wvv628sv.js} +5 -1
- package/dist/cli/{guardrail-explain-kabd97j8.js → guardrail-explain-hhdtrm60.js} +2 -2
- package/dist/cli/{hive-promoter-h21wzpsr.js → hive-promoter-1qkybw79.js} +4 -2
- package/dist/cli/{index-srvqfcyj.js → index-jhdv0jdf.js} +1 -1
- package/dist/cli/{index-hw4tcxs9.js → index-p35ayncy.js} +3 -3
- package/dist/cli/{index-dh87tpc5.js → index-zezjy05g.js} +677 -400
- package/dist/cli/index.js +1 -1
- package/dist/config/skill-mirrors.d.ts +13 -3
- package/dist/full-auto/state.d.ts +26 -0
- package/dist/hooks/curator.d.ts +33 -9
- package/dist/hooks/hive-promoter.d.ts +7 -0
- package/dist/hooks/knowledge-curator.d.ts +13 -0
- package/dist/index.js +190 -190
- package/dist/services/status-service.d.ts +16 -1
- package/dist/state.d.ts +9 -0
- package/dist/tools/create-tool.d.ts +9 -0
- package/package.json +2 -1
- package/dist/output/agent-writer.d.ts +0 -27
- package/dist/output/index.d.ts +0 -1
- package/dist/tools/knowledge-ack.d.ts +0 -15
|
@@ -6,7 +6,7 @@ description: Protocol for splitting test files that exceed the FR-006 500-line h
|
|
|
6
6
|
|
|
7
7
|
# Test File Split Protocol (FR-006)
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
`scripts/check-test-file-cap.sh` enforces the **500-line cap** per test file (FR-006 / SC-006.1) as a **diff-scoped ratchet**: new test files over 500 lines and existing over-cap files that grew fail the quality gate and block PR merge. Pre-existing over-cap files not touched by the PR are non-blocking. Escape hatch: `TEST_CAP_ENFORCE=0` soft-warns. This skill covers the complete splitting protocol.
|
|
10
10
|
|
|
11
11
|
Read first: `.opencode/skills/writing-tests/SKILL.md` (or `.claude/skills/writing-tests/SKILL.md`) for bun:test framework rules, mock isolation patterns, and file placement conventions.
|
|
12
12
|
|
|
@@ -613,7 +613,7 @@ authority checks:
|
|
|
613
613
|
|
|
614
614
|
## FR-006: Test File Size Limit (500 lines)
|
|
615
615
|
|
|
616
|
-
|
|
616
|
+
`scripts/check-test-file-cap.sh` enforces the **500-line cap** per test file (FR-006) as a **diff-scoped ratchet**: new test files over 500 lines and existing over-cap files that grew fail the quality gate and block PR merge. Pre-existing over-cap files not touched by the PR are non-blocking. Escape hatch: `TEST_CAP_ENFORCE=0` soft-warns (use only for a deliberate growth PR).
|
|
617
617
|
|
|
618
618
|
### Checking file length
|
|
619
619
|
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
_internals,
|
|
4
|
+
appendCuratorRecommendation,
|
|
4
5
|
applyCuratorKnowledgeUpdates,
|
|
5
6
|
checkPhaseCompliance,
|
|
6
7
|
filterPhaseEvents,
|
|
8
|
+
mergeCuratorPhaseSummary,
|
|
7
9
|
normalizeRecommendationEntryIdToken,
|
|
8
10
|
parseKnowledgeRecommendations,
|
|
9
11
|
parseKnowledgeRecommendationsWithDiagnostics,
|
|
@@ -12,7 +14,7 @@ import {
|
|
|
12
14
|
runCuratorInit,
|
|
13
15
|
runCuratorPhase,
|
|
14
16
|
writeCuratorSummary
|
|
15
|
-
} from "./index-
|
|
17
|
+
} from "./index-zezjy05g.js";
|
|
16
18
|
import"./index-g6va6n3t.js";
|
|
17
19
|
import"./index-c8s9a3zh.js";
|
|
18
20
|
import"./index-2148358e.js";
|
|
@@ -56,8 +58,10 @@ export {
|
|
|
56
58
|
parseKnowledgeRecommendationsWithDiagnostics,
|
|
57
59
|
parseKnowledgeRecommendations,
|
|
58
60
|
normalizeRecommendationEntryIdToken,
|
|
61
|
+
mergeCuratorPhaseSummary,
|
|
59
62
|
filterPhaseEvents,
|
|
60
63
|
checkPhaseCompliance,
|
|
61
64
|
applyCuratorKnowledgeUpdates,
|
|
65
|
+
appendCuratorRecommendation,
|
|
62
66
|
_internals
|
|
63
67
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
4
|
+
} from "./index-jhdv0jdf.js";
|
|
5
|
+
import"./index-zezjy05g.js";
|
|
6
6
|
import"./index-g6va6n3t.js";
|
|
7
7
|
import"./index-c8s9a3zh.js";
|
|
8
8
|
import"./index-2148358e.js";
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
|
+
_internals1 as _internals,
|
|
3
4
|
checkHivePromotions,
|
|
4
5
|
createHivePromoterHook,
|
|
5
6
|
isHiveEligible,
|
|
6
7
|
promoteFromSwarm,
|
|
7
8
|
promoteToHive
|
|
8
|
-
} from "./index-
|
|
9
|
+
} from "./index-zezjy05g.js";
|
|
9
10
|
import"./index-g6va6n3t.js";
|
|
10
11
|
import"./index-c8s9a3zh.js";
|
|
11
12
|
import"./index-2148358e.js";
|
|
@@ -45,5 +46,6 @@ export {
|
|
|
45
46
|
promoteFromSwarm,
|
|
46
47
|
isHiveEligible,
|
|
47
48
|
createHivePromoterHook,
|
|
48
|
-
checkHivePromotions
|
|
49
|
+
checkHivePromotions,
|
|
50
|
+
_internals
|
|
49
51
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-jhdv0jdf.js";
|
|
5
5
|
import {
|
|
6
6
|
handleGuardrailLog
|
|
7
7
|
} from "./index-xbe1wtme.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
SWARM_COMMAND_TOOL_ALLOWLIST,
|
|
11
11
|
SWARM_COMMAND_TOOL_COMMANDS,
|
|
12
12
|
VALID_COMMANDS,
|
|
13
|
-
|
|
13
|
+
_internals2 as _internals,
|
|
14
14
|
canonicalCommandKey,
|
|
15
15
|
classifySwarmCommandChatFallbackUse,
|
|
16
16
|
classifySwarmCommandToolUse,
|
|
@@ -81,7 +81,7 @@ import {
|
|
|
81
81
|
handleWriteRetroCommand,
|
|
82
82
|
normalizeSwarmCommandInput,
|
|
83
83
|
resolveCommand
|
|
84
|
-
} from "./index-
|
|
84
|
+
} from "./index-zezjy05g.js";
|
|
85
85
|
import"./index-g6va6n3t.js";
|
|
86
86
|
import"./index-c8s9a3zh.js";
|
|
87
87
|
import"./index-2148358e.js";
|