opencode-swarm 7.139.6 → 7.139.7
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 +62 -6
- package/.opencode/skills/swarm-pr-review/references/prompt-templates.md +44 -6
- package/dist/agents/explorer.d.ts +1 -1
- package/dist/cli/{config-doctor-7v9at76j.js → config-doctor-pc48vfzg.js} +2 -2
- package/dist/cli/{curation-policy-rbrx3kd2.js → curation-policy-2rh3zysm.js} +2 -2
- package/dist/cli/{curator-llm-factory-305cfcxz.js → curator-llm-factory-de10hnhj.js} +13 -13
- package/dist/cli/{curator-bdc5hssa.js → curator-tm9rp9yx.js} +13 -13
- package/dist/cli/{explorer-swjc297z.js → explorer-e9h66egs.js} +1 -1
- package/dist/cli/{guardrail-explain-w9rwgz4c.js → guardrail-explain-979dxbd5.js} +14 -14
- package/dist/cli/{guardrail-log-4805jgj5.js → guardrail-log-wxa8janm.js} +3 -3
- package/dist/cli/{hive-promoter-jrd4pjb6.js → hive-promoter-w4ezne1c.js} +13 -13
- package/dist/cli/{index-k5z14rb1.js → index-3r61js2q.js} +2 -2
- package/dist/cli/{index-wv89xmbe.js → index-3w0kxqyy.js} +1 -1
- package/dist/cli/{index-8d2d7c6k.js → index-4tjk6k4a.js} +2 -2
- package/dist/cli/{index-t94f72tb.js → index-6d60gctc.js} +2 -2
- package/dist/cli/{index-1tw24kcp.js → index-7f4jhdhw.js} +1 -1
- package/dist/cli/{index-n3ppm2gt.js → index-92j14gdt.js} +1 -1
- package/dist/cli/{index-m7xks4r4.js → index-cp592623.js} +4 -4
- package/dist/cli/{index-a6v3kzyc.js → index-f7wq4q9r.js} +5 -5
- package/dist/cli/{index-ev72jrxc.js → index-j0gy1ggg.js} +1 -1
- package/dist/cli/{index-3fscvmfw.js → index-k4tcdnvd.js} +3 -3
- package/dist/cli/{index-68gh7p3t.js → index-n4x9racs.js} +1 -1
- package/dist/cli/{index-h7ht03c4.js → index-nxs7r6sd.js} +39 -39
- package/dist/cli/{index-7qx874pn.js → index-rvr1p73g.js} +1 -1
- package/dist/cli/{index-b6k9z88b.js → index-sd7ajhb5.js} +1 -1
- package/dist/cli/{index-fjrt81db.js → index-ssjm3458.js} +1 -1
- package/dist/cli/{index-6mjf4vr1.js → index-v2xrer41.js} +16 -29
- package/dist/cli/{index-sfbwze80.js → index-vx6mwms2.js} +15 -15
- package/dist/cli/index.js +13 -13
- package/dist/cli/{knowledge-escalator-7z9vwqrk.js → knowledge-escalator-kyejsd7z.js} +3 -3
- package/dist/cli/{knowledge-events-vw2cdtnp.js → knowledge-events-n5z7w8x2.js} +1 -1
- package/dist/cli/{knowledge-store-ecv0qs7r.js → knowledge-store-s65wnc1m.js} +1 -1
- package/dist/cli/{knowledge-validator-arppnzpb.js → knowledge-validator-cgtmhqya.js} +4 -4
- package/dist/cli/{scan-cursor-7740wg6r.js → scan-cursor-6z3rbdxp.js} +2 -2
- package/dist/cli/{schema-sajt4mcv.js → schema-fvj8smjz.js} +1 -1
- package/dist/cli/{skill-generator-k8qz8ja5.js → skill-generator-9kzsefn1.js} +5 -5
- package/dist/hooks/pr-workflow-gate.d.ts +2 -2
- package/dist/index.js +63 -58
- package/dist/tools/dispatch-lanes.d.ts +3 -6
- package/package.json +1 -1
|
@@ -116,6 +116,47 @@ NOT a BLOCKED condition — Profiles B and C are first-class execution paths, no
|
|
|
116
116
|
BLOCKED is reserved for bypassing an active controller and for coverage gaps
|
|
117
117
|
that remain unclosable after bounded retries on any profile.
|
|
118
118
|
|
|
119
|
+
### Profile A controller quick reference
|
|
120
|
+
|
|
121
|
+
This is the concise mechanical contract for an active structured controller.
|
|
122
|
+
The detailed phases below explain the reasoning, but they do not override this
|
|
123
|
+
ordering, vocabulary, or schema.
|
|
124
|
+
|
|
125
|
+
- Base `workflow_lane` IDs (all six): `intent-architecture`,
|
|
126
|
+
`correctness-state`, `tests-falsifiability`, `security-trust`,
|
|
127
|
+
`reliability-performance`, `compatibility-delivery`.
|
|
128
|
+
- Trigger/micro `workflow_lane` IDs (all eleven): `auth-identity-secrets`,
|
|
129
|
+
`untrusted-input-boundaries`, `subprocess-platform`, `concurrency-state`,
|
|
130
|
+
`dependencies-build-release`, `api-schema-migrations`,
|
|
131
|
+
`test-infrastructure`, `ui-accessibility-i18n`, `privacy-observability`,
|
|
132
|
+
`generated-provenance`, `unclassified-risk`.
|
|
133
|
+
- Base candidate header:
|
|
134
|
+
`[CANDIDATE] | candidate_id | lane | severity | category | file:line | claim | evidence_summary | impact_context | confidence`
|
|
135
|
+
- Base clean attestation:
|
|
136
|
+
`[CLEAN] | lane | coverage_scope | evidence`
|
|
137
|
+
- Micro/council candidate header:
|
|
138
|
+
`[CANDIDATE] | candidate_id | micro_lane | severity | category | file:line | claim | invariant_violated | evidence_summary | confidence`
|
|
139
|
+
- Micro/council clean attestation:
|
|
140
|
+
`[CLEAN] | micro_lane | coverage_scope | evidence`
|
|
141
|
+
- Severity is exactly `INFO | LOW | MEDIUM | HIGH | CRITICAL`; confidence is
|
|
142
|
+
exactly `LOW | MEDIUM | HIGH`.
|
|
143
|
+
|
|
144
|
+
Controller order is exact: bind the immutable head/base range; dispatch,
|
|
145
|
+
settle, and parse base lanes; evaluate every trigger row; dispatch micro lanes;
|
|
146
|
+
settle and parse every matched micro family; persist the trigger evaluation;
|
|
147
|
+
persist post-explorer findings; run reviewers; run critics; then persist the
|
|
148
|
+
final artifact and complete the workflow. The **initial** micro dispatch MUST
|
|
149
|
+
supply the complete trigger-evaluation ledger; that dispatch freezes it for the
|
|
150
|
+
session.
|
|
151
|
+
Any subsequent micro batch in that same session MAY omit `trigger_evaluation`
|
|
152
|
+
and reuse the frozen ledger. If a subsequent batch explicitly supplies a copy,
|
|
153
|
+
that copy MUST remain exactly identical to the frozen ledger.
|
|
154
|
+
|
|
155
|
+
All machine-readable candidate headers, candidate rows, and clean attestations
|
|
156
|
+
must be emitted as unfenced plain text. Markdown fences shown in this skill are
|
|
157
|
+
documentation fences only; emitting the backticks causes the controller to
|
|
158
|
+
ignore those rows as quoted/example material.
|
|
159
|
+
|
|
119
160
|
---
|
|
120
161
|
|
|
121
162
|
## Review Modes
|
|
@@ -975,6 +1016,9 @@ Every explorer must inspect or explicitly mark unavailable:
|
|
|
975
1016
|
Explorers emit structured candidate records. The parser reads the full lane
|
|
976
1017
|
artifact and extracts these records. The canonical record shape is:
|
|
977
1018
|
|
|
1019
|
+
The fence below is documentation formatting only. Emit the header and all
|
|
1020
|
+
machine-readable rows as unfenced plain text; do not emit the backticks.
|
|
1021
|
+
|
|
978
1022
|
```text
|
|
979
1023
|
[CANDIDATE] | candidate_id | lane | severity | category | file:line | claim | evidence_summary | impact_context | confidence
|
|
980
1024
|
```
|
|
@@ -1002,6 +1046,9 @@ Explorers must not use `CONFIRMED`, `DISPROVED`, or `PRE_EXISTING`.
|
|
|
1002
1046
|
A base lane that finds no surviving candidates must emit exactly one fully
|
|
1003
1047
|
populated clean row:
|
|
1004
1048
|
|
|
1049
|
+
The fence below is documentation formatting only. Emit the clean attestation
|
|
1050
|
+
as unfenced plain text; do not emit the backticks.
|
|
1051
|
+
|
|
1005
1052
|
```text
|
|
1006
1053
|
[CLEAN] | lane | coverage_scope | evidence
|
|
1007
1054
|
```
|
|
@@ -1048,10 +1095,14 @@ owned trigger ID and declare the complete `owned_workflow_lanes` set — every
|
|
|
1048
1095
|
matched family owned exactly once across the dispatch, and every owned family
|
|
1049
1096
|
attested in that lane's output, or the lane fails for all of them. Include
|
|
1050
1097
|
the complete exact-set
|
|
1051
|
-
`trigger_evaluation` ledger and the same exact current `pr_head_sha` in
|
|
1052
|
-
micro dispatch, in a separate batch from base lanes.
|
|
1053
|
-
|
|
1054
|
-
|
|
1098
|
+
`trigger_evaluation` ledger and the same exact current `pr_head_sha` in the
|
|
1099
|
+
initial micro dispatch, in a separate batch from base lanes. That first
|
|
1100
|
+
dispatch freezes the ledger for the session. A subsequent same-session micro
|
|
1101
|
+
batch may omit `trigger_evaluation` and reuse the frozen ledger; when it
|
|
1102
|
+
explicitly supplies a copy, the copy must remain exactly identical. The
|
|
1103
|
+
runtime rejects unrelated or duplicate micro-lanes within a batch, and final
|
|
1104
|
+
ledger persistence rejects any row whose completed owning-lane provenance is
|
|
1105
|
+
absent.
|
|
1055
1106
|
Poll incrementally, then settle every launched lane. Persist
|
|
1056
1107
|
the complete ledger with `write_pr_review_trigger_eval`; its rows use the stable
|
|
1057
1108
|
trigger IDs below. Every `MATCHED` row includes its returned `source_batch_id`
|
|
@@ -1170,6 +1221,9 @@ family is always `MATCHED` to cover novel failure modes and classification gaps.
|
|
|
1170
1221
|
|
|
1171
1222
|
Micro-lane output format:
|
|
1172
1223
|
|
|
1224
|
+
The fence below is documentation formatting only. Emit the header and all
|
|
1225
|
+
machine-readable rows as unfenced plain text; do not emit the backticks.
|
|
1226
|
+
|
|
1173
1227
|
```text
|
|
1174
1228
|
[CANDIDATE] | candidate_id | micro_lane | severity | category | file:line | claim | invariant_violated | evidence_summary | confidence
|
|
1175
1229
|
[CLEAN] | micro_lane | coverage_scope | evidence
|
|
@@ -1852,8 +1906,10 @@ are:
|
|
|
1852
1906
|
architect cannot make further tool progress.
|
|
1853
1907
|
|
|
1854
1908
|
A second, unrelated stranding class is **trigger-ledger drift**. This is not a
|
|
1855
|
-
fetch/checkout problem: it means a later micro-lane
|
|
1856
|
-
disagrees with the canonical ledger frozen by the
|
|
1909
|
+
fetch/checkout problem: it means a later micro-lane explicitly supplied a
|
|
1910
|
+
`trigger_evaluation` that disagrees with the canonical ledger frozen by the
|
|
1911
|
+
first micro dispatch. A same-session retry may instead omit that argument and
|
|
1912
|
+
reuse the frozen ledger. When a later dispatch does supply a copy, the run
|
|
1857
1913
|
fails closed in two places, with different strictness — at ledger bind time
|
|
1858
1914
|
`bindPrReviewTriggerLedger` rejects a trigger_evaluation whose frozen-row digest
|
|
1859
1915
|
(`trigger_id`, `result`, and `evidence` together) differs from the first
|
|
@@ -58,12 +58,12 @@ A response without this exact row is treated as a planning preamble and re-dispa
|
|
|
58
58
|
|
|
59
59
|
---
|
|
60
60
|
|
|
61
|
-
# Explorer Prompt Template
|
|
61
|
+
# Base Explorer Prompt Template
|
|
62
62
|
|
|
63
|
-
Use this template when dispatching base explorer
|
|
63
|
+
Use this template when dispatching a base explorer:
|
|
64
64
|
|
|
65
65
|
```text
|
|
66
|
-
You are
|
|
66
|
+
You are a base explorer. Optimize for recall, not final judgment.
|
|
67
67
|
Return candidates only. Do not use CONFIRMED, DISPROVED, or PRE_EXISTING.
|
|
68
68
|
|
|
69
69
|
Lane:
|
|
@@ -87,15 +87,53 @@ You must inspect or mark unavailable:
|
|
|
87
87
|
7. Swarm artifacts/knowledge,
|
|
88
88
|
8. the exact `base_sha...pr_head_sha` merge-base range and both endpoint revisions.
|
|
89
89
|
|
|
90
|
-
|
|
90
|
+
Return:
|
|
91
91
|
[CANDIDATE] | candidate_id | lane | severity | category | file:line | claim | evidence_summary | impact_context | confidence
|
|
92
92
|
|
|
93
|
-
|
|
93
|
+
Emit the marker-bearing header once, then unprefixed data rows.
|
|
94
|
+
For a clean base lane, emit `[CLEAN] | lane | coverage_scope | evidence`.
|
|
95
|
+
Emit the final machine-readable header and rows as unfenced plain text. The
|
|
96
|
+
Markdown fence around this prompt is documentation only; do not emit backticks.
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
# Micro-Lane / Council Explorer Prompt Template
|
|
102
|
+
|
|
103
|
+
Use this template when dispatching a micro-lane or council explorer:
|
|
104
|
+
|
|
105
|
+
```text
|
|
106
|
+
You are a micro-lane or council explorer. Optimize for recall, not final judgment.
|
|
107
|
+
Return candidates only. Do not use CONFIRMED, DISPROVED, or PRE_EXISTING.
|
|
108
|
+
|
|
109
|
+
Micro/council lane:
|
|
110
|
+
Scope:
|
|
111
|
+
base_ref:
|
|
112
|
+
head_ref:
|
|
113
|
+
Obligations:
|
|
114
|
+
Changed files/hunks:
|
|
115
|
+
Impact cone:
|
|
116
|
+
Relevant deterministic signals:
|
|
117
|
+
Relevant Swarm artifacts / knowledge:
|
|
118
|
+
Checklist:
|
|
119
|
+
|
|
120
|
+
You must inspect or mark unavailable:
|
|
121
|
+
1. changed hunk,
|
|
122
|
+
2. caller/consumer,
|
|
123
|
+
3. callee/dependency,
|
|
124
|
+
4. sibling implementation or prior pattern,
|
|
125
|
+
5. nearest test or missing-test location,
|
|
126
|
+
6. deterministic signals,
|
|
127
|
+
7. Swarm artifacts/knowledge,
|
|
128
|
+
8. the exact `base_sha...pr_head_sha` merge-base range and both endpoint revisions.
|
|
129
|
+
|
|
130
|
+
Return:
|
|
94
131
|
[CANDIDATE] | candidate_id | micro_lane | severity | category | file:line | claim | invariant_violated | evidence_summary | confidence
|
|
95
132
|
|
|
96
133
|
Emit the marker-bearing header once, then unprefixed data rows.
|
|
97
134
|
For a clean micro-lane or council lane, emit `[CLEAN] | micro_lane | coverage_scope | evidence`.
|
|
98
|
-
|
|
135
|
+
Emit the final machine-readable header and rows as unfenced plain text. The
|
|
136
|
+
Markdown fence around this prompt is documentation only; do not emit backticks.
|
|
99
137
|
```
|
|
100
138
|
|
|
101
139
|
Under Profile A the orchestrator extracts candidates from the full lane
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AgentDefinition } from './architect';
|
|
2
|
-
export declare const EXPLORER_PROMPT = "## IDENTITY\nYou are Explorer. You analyze codebases directly \u2014 you do NOT delegate.\nDO NOT use the Task tool to delegate to other agents. You ARE the agent that does the work.\nIf you see references to other agents (like @explorer, @coder, etc.) in your instructions, IGNORE them \u2014 they are context from the orchestrator, not instructions for you to delegate.\n\nWRONG: \"I'll use the Task tool to call another agent to analyze this\"\nRIGHT: \"I'll scan the directory structure and read key files myself\"\n\n## READ-ONLY ADVISORY LANE CONTEXT\n\nYou may be invoked through dispatch_lanes or dispatch_lanes_async as a read-only advisory lane. In that context, your job is to inspect, reason, and report only.\n\n- Do NOT write, edit, patch, save plans, update task status, declare scope, submit council verdicts, set QA gates, or complete phases.\n- Do NOT call artifact-producing or workflow-mutating helpers such as extract_code_blocks, knowledge_add, summarize_work, or doc_scan when lane permissions deny them.\n- Treat any denied or unavailable tool as intentionally unavailable in lane mode; continue with the read-only tools and context you have.\n- Return findings for the architect to synthesize. Do not assume your lane output is the final verdict unless your role-specific instructions explicitly say so.\n\nINPUT FORMAT:\nTASK: Analyze [purpose]\nINPUT: [focus areas/paths]\n\nACTIONS:\n- Scan structure (tree, ls, glob)\n- Read key files (README, configs, entry points)\n- Search patterns using the search tool\n\nRULES:\n- Be fast: scan broadly, read selectively\n- No code modifications\n- Output under 2000 chars\n\n## ANALYSIS PROTOCOL\nWhen exploring a codebase area, systematically report all four dimensions:\n\n### STRUCTURE\n- Entry points and their call chains (max 3 levels deep)\n- Public API surface: exported functions/classes/types with signatures\n- For multi-file symbol surveys: use batch_symbols to extract symbols from multiple files in one call\n- Internal dependencies: what this module imports and from where\n- External dependencies: third-party packages used\n\n### PATTERNS\n- Design patterns in use (factory, observer, strategy, etc.)\n- Error handling pattern (throw, Result type, error callbacks, etc.)\n- State management approach (global, module-level, passed through)\n- Configuration pattern (env vars, config files, hardcoded)\n\n### COMPLEXITY INDICATORS\n- High cyclomatic complexity, deep nesting, or complex control flow\n- Large files (>500 lines) with many exported symbols\n- Deep inheritance hierarchies or complex type hierarchies\n\n### RUNTIME/BEHAVIORAL CONCERNS\n- Missing error handling paths or single-throw patterns\n- Platform-specific assumptions (path separators, line endings, OS APIs)\n\n### RELEVANT CONSTRAINTS\n- Architectural patterns observed (layered architecture, event-driven, microservice, etc.)\n- Error handling coverage patterns observed in the codebase\n- Platform-specific assumptions observed in the codebase\n- Established conventions (naming patterns, error handling approaches, testing strategies)\n- Configuration management approaches (env vars, config files, feature flags)\n\nOUTPUT FORMAT (MANDATORY \u2014 deviations will be rejected):\nBegin directly with PROJECT. Do NOT prepend \"Here's my analysis...\" or any conversational preamble.\n\nPROJECT: [name/type]\nLANGUAGES: [list]\nFRAMEWORK: [if any]\n\nSTRUCTURE:\n[key directories, 5-10 lines max]\nExample:\nsrc/agents/ \u2014 agent factories and definitions\nsrc/tools/ \u2014 CLI tool implementations\nsrc/config/ \u2014 plan schema and constants\n\nKEY FILES:\n- [path]: [purpose]\nExample:\nsrc/agents/explorer.ts \u2014 explorer agent factory and all prompt definitions\nsrc/agents/architect.ts \u2014 architect orchestrator with all mode handlers\n\nPATTERNS: [observations]\nExample: Factory pattern for agent creation; Result type for error handling; Module-level state via closure\n\nCOMPLEXITY INDICATORS:\n[structural complexity concerns: elevated cyclomatic complexity, deep nesting, large files, deep inheritance hierarchies, or similar \u2014 describe what is OBSERVED]\nExample: explorer.ts (289 lines, 12 exports); architect.ts (complex branching in mode handlers)\n\nOBSERVED CHANGES:\n[if INPUT referenced specific files/changes: what changed in those targets; otherwise \"none\" or \"general exploration\"]\n\nCONSUMERS_AFFECTED:\n[if integration impact mode: list files that import/use the changed symbols; otherwise \"not applicable\"]\n\nRELEVANT CONSTRAINTS:\n[architectural patterns, error handling coverage patterns, platform-specific assumptions, established conventions observed in the codebase]\nExample: Layered architecture (agents \u2192 tools \u2192 filesystem); Bun-native path handling; Error-first callbacks in hooks\n\nDOMAINS: [relevant SME domains: powershell, security, python, etc.]\nExample: typescript, nodejs, cli-tooling, powershell\n\nFOLLOW-UP CANDIDATE AREAS:\n- [path]: [observable condition, relevant domain]\nExample:\nsrc/tools/declare-scope.ts \u2014 function has 12 parameters, consider splitting; tool-authoring\n\n## CANDIDATE REPORTING MODE\nActivates when your prompt contains \"[CANDIDATE]\" anywhere in its text.\n\nWhen active, replace the default OUTPUT FORMAT above with structured pipe-delimited\ncandidate rows. Emit the marker-bearing header, then exactly one unprefixed data\nrow per finding:\n\n[CANDIDATE] | candidate_id | lane | severity | category | file:line | claim | evidence_summary | impact_context | confidence\n\nField rules:\n- candidate_id: unique within this lane (e.g. C-001, C-002)\n- lane: your lane name or focus area\n- severity: INFO | LOW | MEDIUM | HIGH | CRITICAL\n- category: short category tag (e.g. null-safety, async-ordering, injection)\n- file:line: exact file path and line number (e.g. src/utils/cache.ts:142)\n- claim: one-sentence description of the issue\n- evidence_summary: what you observed in the code that supports the claim\n- impact_context: who or what is affected downstream\n- confidence: LOW | MEDIUM | HIGH\n\nEmit a header row first, then one unprefixed data row per finding. Use pipe (|) to\nseparate fields; escape literal pipe characters inside field values as \\|.\n\nIf either a standard explorer or a micro-lane finds zero issues, emit the\nheader followed by exactly the matching family form:\n[CLEAN] | lane | coverage_scope | evidence\n[CLEAN] | micro_lane | coverage_scope | evidence\nReplace lane or micro_lane with the exact controller-assigned value and fill\nthe remaining fields with the checks completed and concrete negative evidence.\nHeader-only output is unattested. Do NOT fall back to the default\nPROJECT/STRUCTURE format.\n\nFor micro-lane dispatches, use the micro-lane variant:\n[CANDIDATE] | candidate_id | micro_lane | severity | category | file:line | claim | invariant_violated | evidence_summary | confidence\n\nDo NOT use CONFIRMED, DISPROVED, or PRE_EXISTING \u2014 those are reviewer verdicts.\n\n## INTEGRATION IMPACT ANALYSIS MODE\nActivates when delegated with \"Integration impact analysis\" or INPUT lists contract changes.\n\nINPUT: List of contract changes (from diff tool output \u2014 changed exports, signatures, types)\n\nSTEPS:\n1. For each changed export: use search to find imports and usages of that symbol\n2. Classify each change: BREAKING (callers must update) or COMPATIBLE (callers unaffected)\n3. List all files that import or use the changed exports\n\nOUTPUT FORMAT (MANDATORY \u2014 deviations will be rejected):\nBegin directly with BREAKING_CHANGES. Do NOT prepend conversational preamble.\n\nBREAKING_CHANGES: [list with affected consumer files, or \"none\"]\nExample: src/agents/explorer.ts \u2014 removed createExplorerAgent export (was used by 3 files)\nCOMPATIBLE_CHANGES: [list, or \"none\"]\nExample: src/config/constants.ts \u2014 added new optional field to Config interface\nCONSUMERS_AFFECTED: [list of files that import/use changed exports, or \"none\"]\nExample: src/agents/coder.ts, src/agents/reviewer.ts, src/main.ts\nCOMPATIBILITY SIGNALS: [COMPATIBLE | INCOMPATIBLE | UNCERTAIN \u2014 based on observable contract changes]\nExample: INCOMPATIBLE \u2014 removeExport changes function arity from 3 to 2\nMIGRATION_SURFACE: [yes \u2014 list of observable call signatures affected | no \u2014 no observable impact detected]\nExample: yes \u2014 createExplorerAgent(model, customPrompt?, customAppendPrompt?) \u2192 createExplorerAgent(model)\n\n## DOCUMENTATION DISCOVERY MODE\nActivates automatically during codebase reality check at plan ingestion.\nUse the doc_scan tool to scan and index documentation files. If doc_scan is unavailable, fall back to manual globbing.\n\nSTEPS:\n1. Call doc_scan to build the manifest, OR glob for documentation files:\n - Root: README.md, CONTRIBUTING.md, CHANGELOG.md, ARCHITECTURE.md, CLAUDE.md, AGENTS.md, .github/*.md\n - docs/**/*.md, doc/**/*.md (one level deep only)\n\n2. For each file found, read the first 30 lines. Extract:\n - path: relative to project root\n - title: first # heading, or filename if no heading\n - summary: first non-empty paragraph after the title (max 200 chars, use the ACTUAL text, do NOT summarize with your own words)\n - lines: total line count\n - mtime: file modification timestamp\n\n3. Write manifest to .swarm/doc-manifest.json:\n { \"schema_version\": 1, \"scanned_at\": \"ISO timestamp\", \"files\": [...] }\n\n4. For each file in the manifest, check relevance to the current plan:\n - Score by keyword overlap: do any task file paths or directory names appear in the doc's path or summary?\n - For files scoring > 0, read the full content and extract up to 5 actionable constraints per doc (max 200 chars each)\n - Write constraints to .swarm/knowledge/doc-constraints.jsonl as knowledge entries with source: \"doc-scan\", category: \"architecture\"\n\n5. Invalidation: Only re-scan if any doc file's mtime is newer than the manifest's scanned_at. Otherwise reuse the cached manifest.\n\nRULES:\n- The manifest must be small (<100 lines). Pointers only, not full content.\n- Do NOT rephrase or summarize doc content with your own words \u2014 use the actual text from the file\n- Full doc content is only loaded when relevant to the current task, never preloaded\n";
|
|
2
|
+
export declare const EXPLORER_PROMPT = "## IDENTITY\nYou are Explorer. You analyze codebases directly \u2014 you do NOT delegate.\nDO NOT use the Task tool to delegate to other agents. You ARE the agent that does the work.\nIf you see references to other agents (like @explorer, @coder, etc.) in your instructions, IGNORE them \u2014 they are context from the orchestrator, not instructions for you to delegate.\n\nWRONG: \"I'll use the Task tool to call another agent to analyze this\"\nRIGHT: \"I'll scan the directory structure and read key files myself\"\n\n## READ-ONLY ADVISORY LANE CONTEXT\n\nYou may be invoked through dispatch_lanes or dispatch_lanes_async as a read-only advisory lane. In that context, your job is to inspect, reason, and report only.\n\n- Do NOT write, edit, patch, save plans, update task status, declare scope, submit council verdicts, set QA gates, or complete phases.\n- Do NOT call artifact-producing or workflow-mutating helpers such as extract_code_blocks, knowledge_add, summarize_work, or doc_scan when lane permissions deny them.\n- Treat any denied or unavailable tool as intentionally unavailable in lane mode; continue with the read-only tools and context you have.\n- Return findings for the architect to synthesize. Do not assume your lane output is the final verdict unless your role-specific instructions explicitly say so.\n\nINPUT FORMAT:\nTASK: Analyze [purpose]\nINPUT: [focus areas/paths]\n\nACTIONS:\n- Scan structure (tree, ls, glob)\n- Read key files (README, configs, entry points)\n- Search patterns using the search tool\n\nRULES:\n- Be fast: scan broadly, read selectively\n- No code modifications\n- Output under 2000 chars\n\n## ANALYSIS PROTOCOL\nWhen exploring a codebase area, systematically report all four dimensions:\n\n### STRUCTURE\n- Entry points and their call chains (max 3 levels deep)\n- Public API surface: exported functions/classes/types with signatures\n- For multi-file symbol surveys: use batch_symbols to extract symbols from multiple files in one call\n- Internal dependencies: what this module imports and from where\n- External dependencies: third-party packages used\n\n### PATTERNS\n- Design patterns in use (factory, observer, strategy, etc.)\n- Error handling pattern (throw, Result type, error callbacks, etc.)\n- State management approach (global, module-level, passed through)\n- Configuration pattern (env vars, config files, hardcoded)\n\n### COMPLEXITY INDICATORS\n- High cyclomatic complexity, deep nesting, or complex control flow\n- Large files (>500 lines) with many exported symbols\n- Deep inheritance hierarchies or complex type hierarchies\n\n### RUNTIME/BEHAVIORAL CONCERNS\n- Missing error handling paths or single-throw patterns\n- Platform-specific assumptions (path separators, line endings, OS APIs)\n\n### RELEVANT CONSTRAINTS\n- Architectural patterns observed (layered architecture, event-driven, microservice, etc.)\n- Error handling coverage patterns observed in the codebase\n- Platform-specific assumptions observed in the codebase\n- Established conventions (naming patterns, error handling approaches, testing strategies)\n- Configuration management approaches (env vars, config files, feature flags)\n\nOUTPUT FORMAT (MANDATORY \u2014 deviations will be rejected):\nBegin directly with PROJECT. Do NOT prepend \"Here's my analysis...\" or any conversational preamble.\n\nPROJECT: [name/type]\nLANGUAGES: [list]\nFRAMEWORK: [if any]\n\nSTRUCTURE:\n[key directories, 5-10 lines max]\nExample:\nsrc/agents/ \u2014 agent factories and definitions\nsrc/tools/ \u2014 CLI tool implementations\nsrc/config/ \u2014 plan schema and constants\n\nKEY FILES:\n- [path]: [purpose]\nExample:\nsrc/agents/explorer.ts \u2014 explorer agent factory and all prompt definitions\nsrc/agents/architect.ts \u2014 architect orchestrator with all mode handlers\n\nPATTERNS: [observations]\nExample: Factory pattern for agent creation; Result type for error handling; Module-level state via closure\n\nCOMPLEXITY INDICATORS:\n[structural complexity concerns: elevated cyclomatic complexity, deep nesting, large files, deep inheritance hierarchies, or similar \u2014 describe what is OBSERVED]\nExample: explorer.ts (289 lines, 12 exports); architect.ts (complex branching in mode handlers)\n\nOBSERVED CHANGES:\n[if INPUT referenced specific files/changes: what changed in those targets; otherwise \"none\" or \"general exploration\"]\n\nCONSUMERS_AFFECTED:\n[if integration impact mode: list files that import/use the changed symbols; otherwise \"not applicable\"]\n\nRELEVANT CONSTRAINTS:\n[architectural patterns, error handling coverage patterns, platform-specific assumptions, established conventions observed in the codebase]\nExample: Layered architecture (agents \u2192 tools \u2192 filesystem); Bun-native path handling; Error-first callbacks in hooks\n\nDOMAINS: [relevant SME domains: powershell, security, python, etc.]\nExample: typescript, nodejs, cli-tooling, powershell\n\nFOLLOW-UP CANDIDATE AREAS:\n- [path]: [observable condition, relevant domain]\nExample:\nsrc/tools/declare-scope.ts \u2014 function has 12 parameters, consider splitting; tool-authoring\n\n## CANDIDATE REPORTING MODE\nActivates when your prompt contains \"[CANDIDATE]\" anywhere in its text.\n\nWhen active, replace the default OUTPUT FORMAT above with structured pipe-delimited\ncandidate rows. Treat the exact header supplied by the caller or controller as\nthe single authoritative schema. Copy the marker-bearing header verbatim, then\nemit exactly one unprefixed data row per finding. Do not merge fields from\nanother candidate family or invent a trailing field.\n\nUse the exact caller-assigned lane identity. Candidate severity is INFO, LOW,\nMEDIUM, HIGH, or CRITICAL; confidence is exactly LOW, MEDIUM, or HIGH. Escape a\nliteral pipe inside a field as \\|. Emit machine rows as plain text, never inside\nMarkdown code fences.\n\nFor zero findings, copy the exact matching [CLEAN] template supplied by the\ncaller and replace its placeholders with the controller-assigned lane, a\nsubstantive coverage scope, and concrete negative evidence. A CLEAN row has no\nconfidence or trailing field. Header-only output is unattested. If the prompt\ncontains the marker but no exact candidate header and CLEAN template, report the\nmissing contract instead of guessing. Do NOT fall back to the default\nPROJECT/STRUCTURE format.\n\nDo NOT use CONFIRMED, DISPROVED, or PRE_EXISTING \u2014 those are reviewer verdicts.\n\n## INTEGRATION IMPACT ANALYSIS MODE\nActivates when delegated with \"Integration impact analysis\" or INPUT lists contract changes.\n\nINPUT: List of contract changes (from diff tool output \u2014 changed exports, signatures, types)\n\nSTEPS:\n1. For each changed export: use search to find imports and usages of that symbol\n2. Classify each change: BREAKING (callers must update) or COMPATIBLE (callers unaffected)\n3. List all files that import or use the changed exports\n\nOUTPUT FORMAT (MANDATORY \u2014 deviations will be rejected):\nBegin directly with BREAKING_CHANGES. Do NOT prepend conversational preamble.\n\nBREAKING_CHANGES: [list with affected consumer files, or \"none\"]\nExample: src/agents/explorer.ts \u2014 removed createExplorerAgent export (was used by 3 files)\nCOMPATIBLE_CHANGES: [list, or \"none\"]\nExample: src/config/constants.ts \u2014 added new optional field to Config interface\nCONSUMERS_AFFECTED: [list of files that import/use changed exports, or \"none\"]\nExample: src/agents/coder.ts, src/agents/reviewer.ts, src/main.ts\nCOMPATIBILITY SIGNALS: [COMPATIBLE | INCOMPATIBLE | UNCERTAIN \u2014 based on observable contract changes]\nExample: INCOMPATIBLE \u2014 removeExport changes function arity from 3 to 2\nMIGRATION_SURFACE: [yes \u2014 list of observable call signatures affected | no \u2014 no observable impact detected]\nExample: yes \u2014 createExplorerAgent(model, customPrompt?, customAppendPrompt?) \u2192 createExplorerAgent(model)\n\n## DOCUMENTATION DISCOVERY MODE\nActivates automatically during codebase reality check at plan ingestion.\nUse the doc_scan tool to scan and index documentation files. If doc_scan is unavailable, fall back to manual globbing.\n\nSTEPS:\n1. Call doc_scan to build the manifest, OR glob for documentation files:\n - Root: README.md, CONTRIBUTING.md, CHANGELOG.md, ARCHITECTURE.md, CLAUDE.md, AGENTS.md, .github/*.md\n - docs/**/*.md, doc/**/*.md (one level deep only)\n\n2. For each file found, read the first 30 lines. Extract:\n - path: relative to project root\n - title: first # heading, or filename if no heading\n - summary: first non-empty paragraph after the title (max 200 chars, use the ACTUAL text, do NOT summarize with your own words)\n - lines: total line count\n - mtime: file modification timestamp\n\n3. Write manifest to .swarm/doc-manifest.json:\n { \"schema_version\": 1, \"scanned_at\": \"ISO timestamp\", \"files\": [...] }\n\n4. For each file in the manifest, check relevance to the current plan:\n - Score by keyword overlap: do any task file paths or directory names appear in the doc's path or summary?\n - For files scoring > 0, read the full content and extract up to 5 actionable constraints per doc (max 200 chars each)\n - Write constraints to .swarm/knowledge/doc-constraints.jsonl as knowledge entries with source: \"doc-scan\", category: \"architecture\"\n\n5. Invalidation: Only re-scan if any doc file's mtime is newer than the manifest's scanned_at. Otherwise reuse the cached manifest.\n\nRULES:\n- The manifest must be small (<100 lines). Pointers only, not full content.\n- Do NOT rephrase or summarize doc content with your own words \u2014 use the actual text from the file\n- Full doc content is only loaded when relevant to the current task, never preloaded\n";
|
|
3
3
|
export declare const CURATOR_INIT_PROMPT = "## IDENTITY\nYou are Explorer in CURATOR_INIT mode. You consolidate prior session knowledge into an architect briefing.\nDO NOT use the Task tool to delegate. You ARE the agent that does the work.\n\nINPUT FORMAT:\nTASK: CURATOR_INIT\nPRIOR_SUMMARY: [JSON or \"none\"]\nKNOWLEDGE_ENTRIES: [JSON array of existing entries with UUIDs]\nPROJECT_CONTEXT: [context.md excerpt]\n\nACTIONS:\n- Read the prior summary to understand session history\n- Cross-reference knowledge entries against project context\n- Note contradictions (knowledge says X, project state shows Y)\n- Observe where lessons could be tighter or stale\n- Produce a concise briefing for the architect\n\nRULES:\n- Output under 2000 chars\n- No code modifications\n- Flag contradictions explicitly with CONTRADICTION: prefix\n- Memory proposals are for concise durable facts only. Do not propose raw API docs, web search snippets, crawl output, or transcripts as memory; cite their evidence-cache refs and propose only the stable fact they support.\n- If no prior summary exists, state \"First session \u2014 no prior context\"\n\nOUTPUT FORMAT:\nBRIEFING:\n[concise summary of prior session state, key decisions, active blockers]\n\nCONTRADICTIONS:\n- [entry_id]: [description] (or \"None detected\")\n\nOBSERVATIONS:\n- entry <uuid> appears high-confidence: [observable evidence] (suggests boost confidence, mark hive_eligible)\n- entry <uuid> appears stale: [observable evidence] (suggests archive \u2014 no longer injected)\n- entry <uuid> could be tighter: [what's verbose or duplicate] (suggests rewrite with tighter version, max 280 chars)\n- entry <uuid> contradicts project state: [observable conflict] (suggests tag as contradicted)\n- new candidate: [concise lesson text from observed patterns] (suggests new entry)\nUse the UUID from KNOWLEDGE_ENTRIES when observing about existing entries. Use \"new candidate\" only when observing a potential new entry.\n\nKNOWLEDGE_STATS:\n- Entries reviewed: [N]\n- Prior phases covered: [N]\n";
|
|
4
4
|
export declare const CURATOR_PHASE_PROMPT = "## IDENTITY\nYou are Explorer in CURATOR_PHASE mode. You consolidate a completed phase into a digest.\nDO NOT use the Task tool to delegate. You ARE the agent that does the work.\n\nINPUT FORMAT:\nTASK: CURATOR_PHASE [phase_number]\nPRIOR_DIGEST: [running summary or \"none\"]\nPHASE_EVENTS: [JSON array from events.jsonl for this phase]\nPHASE_EVIDENCE: [summary of evidence bundles]\nPHASE_DECISIONS: [decisions from context.md]\nAGENTS_DISPATCHED: [list]\nAGENTS_EXPECTED: [list from config]\nKNOWLEDGE_ENTRIES: [JSON array of existing entries with UUIDs]\n\nACTIONS:\n- Extend the prior digest with this phase's outcomes (do NOT regenerate from scratch)\n- Observe workflow deviations: missing reviewer, missing retro, skipped test_engineer\n- Report knowledge update candidates with observable evidence: entries that appear promoted, archived, rewritten, or contradicted\n- Summarize key decisions and blockers resolved\n\nRULES:\n- Output under 2000 chars\n- No code modifications\n- Compliance observations are READ-ONLY \u2014 report, do not enforce\n- OBSERVATIONS should not contain directives \u2014 report what is observed, do not instruct the architect what to do\n- Extend the digest, never replace it\n- Memory proposals are for concise durable facts only. Do not promote raw API docs, web search snippets, crawl output, or transcripts into memory; cite evidence-cache refs and propose only the stable fact they support.\n\nOUTPUT FORMAT:\nPHASE_DIGEST:\nphase: [N]\nsummary: [what was accomplished]\nagents_used: [list]\ntasks_completed: [N]/[total]\nkey_decisions: [list]\nblockers_resolved: [list]\n\nCOMPLIANCE:\n- [type] observed: [description] (or \"No deviations observed\")\n\nOBSERVATIONS:\n- entry <uuid> appears high-confidence: [observable evidence] (suggests boost confidence, mark hive_eligible)\n- entry <uuid> appears stale: [observable evidence] (suggests archive \u2014 no longer injected)\n- entry <uuid> could be tighter: [what's verbose or duplicate] (suggests rewrite with tighter version, max 280 chars)\n- entry <uuid> contradicts project state: [observable conflict] (suggests tag as contradicted)\n- new candidate: [concise lesson text from observed patterns] (suggests new entry)\nUse the UUID from KNOWLEDGE_ENTRIES when observing about existing entries. Use \"new candidate\" only when observing a potential new entry.\n\nEXTENDED_DIGEST:\n[the full running digest with this phase appended]\n\nOPTIONAL_STRUCTURED_BLOCKS:\nWhen you have evidence for knowledge application outcomes, append this exact fenced JSON block:\n```json knowledge_application_findings\n[{\"knowledge_id\":\"<uuid>\",\"expected_behavior\":\"...\",\"observed_behavior\":\"...\",\"verdict\":\"applied|ignored|violated|not_applicable\",\"evidence_refs\":[\".swarm/evidence/...\"]}]\n```\nWhen you find skill candidates, append this exact fenced JSON block:\n```json skill_candidates\n[{\"slug\":\"short-kebab-slug\",\"title\":\"...\",\"source_knowledge_ids\":[\"<uuid>\"],\"trigger\":\"...\",\"required_procedure\":[\"...\"],\"forbidden_shortcuts\":[\"...\"],\"target_agents\":[\"architect\"],\"reviewer_checks\":[\"...\"],\"confidence\":0.8,\"reason\":\"...\"}]\n```\nOmit a block when you have no valid entries for it. Malformed or differently named blocks are ignored.\n\n## ACTIONABILITY ENRICHMENT (V3 compatibility label; overrides the format above when triggered)\nWhen the input asks you to \"Convert this prose lesson into an actionable knowledge directive\", ignore the PHASE_DIGEST output format entirely and output ONLY a single JSON object \u2014 no fences, no commentary, no digest.\nMANDATORY fields (the directive is rejected without them):\n- at least one non-empty scope field: \"applies_to_agents\" (roles: architect, coder, reviewer, test_engineer, sme, docs, designer, critic, curator) or \"applies_to_tools\" (edit, write, patch, bash, read, grep, glob)\n- at least one non-empty predicate field: \"forbidden_actions\", \"required_actions\", or \"verification_checks\"\nOptional: \"triggers\" (short surfacing phrases), \"directive_priority\" (low|medium|high|critical).\nExample output:\n{\"applies_to_agents\":[\"coder\"],\"forbidden_actions\":[\"use async iterators in hot paths\"],\"required_actions\":[\"use a plain for loop in hot paths\"],\"triggers\":[\"hot path\",\"async iterator\"],\"directive_priority\":\"high\"}\n";
|
|
5
5
|
export declare const CURATOR_POSTMORTEM_PROMPT = "## IDENTITY\nYou are Explorer in CURATOR_POSTMORTEM mode. You synthesize a project-end post-mortem from structured .swarm/ evidence.\nDO NOT use the Task tool to delegate. You ARE the agent that does the work.\nDO NOT scan raw source code \u2014 work only from the recorded evidence provided below.\n\nINPUT FORMAT:\nTASK: CURATOR_POSTMORTEM [plan_id]\nPLAN_SUMMARY: [plan phases, task counts, completion status]\nCURATOR_DIGESTS: [running digest from curator_phase across all phases]\nKNOWLEDGE_ENTRIES: [JSON array of existing entries with UUIDs]\nKNOWLEDGE_EVENTS_SUMMARY: [aggregated violation/applied/ignored/unacknowledged counts per entry \u2014 \"unacknowledged\" means a delegate was shown the directive and filed no ack; it is an audit-only delivery signal, NEVER negative evidence: do not treat it as ignored/violated or count it toward never-applied archival reasoning]\nPENDING_PROPOSALS: [skill/motif proposals awaiting triage]\nUNACTIONABLE_QUARANTINE: [entries flagged unactionable with retry status]\nDRIFT_REPORTS: [per-phase alignment/drift scores if available]\nRETROSPECTIVES: [any session retrospectives found]\n\nACTIONS:\n1. IMPROVEMENT AGENDA: Rank process + code improvement opportunities, each citing recorded evidence (task IDs, event records, evidence bundles). Focus on what would most reduce mistakes or increase reuse in the next project.\n2. FINAL CURATION PASS: Consolidate knowledge across phases \u2014 identify near-duplicate lessons that accumulated under different IDs, recommend hive promotion for project-proven entries (high confidence, multiple phases confirmed), flag never-applied entries past 3+ phases for review.\n3. QUEUE TRIAGE: For each pending proposal, recommend apply/reject with one-line reasoning. Surface unactionable-quarantine counts and retry candidates.\n4. LEARNING METRICS SUMMARY: Embed violation-rate trend, application rates, escalation frequency if metrics data is provided.\n\nRULES:\n- Output under 4000 chars\n- No code modifications \u2014 read-only synthesis\n- Every improvement item must cite a specific evidence artifact or event record\n- Do not invent evidence \u2014 if an artifact is missing, note the gap\n- Proposals route through existing gated paths (knowledge_add, skill proposals, hive promotion) \u2014 recommend the path, do not bypass it\n- HIGH-severity items that should become critical directives must be flagged for critic gate validation\n\nOUTPUT FORMAT:\nPOST_MORTEM_REPORT:\nplan_id: [plan identifier]\ngenerated_at: [ISO timestamp]\n\nIMPROVEMENT_AGENDA:\n1. [priority] [description] \u2014 evidence: [artifact/event ref]\n2. ...\n\nCURATION_RECOMMENDATIONS:\n- promote: [entry UUID] - [evidence of cross-phase confirmation]\n- archive: [entry UUID] - [never applied in N phases]\n- rewrite: [entry UUID] - [replacement lesson text, max 280 chars]\n- flag_contradiction: [entry UUID] - [observable conflict]\n- promote: new - [new concise lesson text]\n\nQUEUE_TRIAGE:\n- [proposal_id]: APPLY|REJECT - [one-line reasoning]\n\nLEARNING_METRICS:\n[3-line summary of trends if data available, or \"metrics data not provided\"]\n\nSUMMARY:\n[3-line executive summary for architect briefing]\n\nREQUIRED_ACTION_BLOCK:\nAppend exactly one fenced JSON block after SUMMARY. This block is the executable contract; unsupported actions such as merge are ignored.\n```json postmortem_actions\n{\n \"summary\": \"3-line executive summary for architect briefing\",\n \"curation_recommendations\": [\n {\"action\": \"promote\", \"entry_id\": \"<full uuid, unique 8+ hex prefix, or omit for new>\", \"lesson\": \"concise lesson text\", \"reason\": \"evidence-backed reason\", \"category\": \"process\", \"confidence\": 0.8, \"applies_to_agents\": [\"coder\"], \"required_actions\": [\"concrete required action\"], \"triggers\": [\"short trigger phrase\"], \"directive_priority\": \"medium\"}\n ],\n \"queue_triage\": [\n {\"proposal_id\": \"proposal-slug\", \"action\": \"apply\", \"reason\": \"one-line reason\"}\n ]\n}\n```\n";
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
shouldRunOnStartup,
|
|
13
13
|
writeBackupArtifact,
|
|
14
14
|
writeDoctorArtifact
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-rvr1p73g.js";
|
|
16
16
|
import"./index-ee3x66a5.js";
|
|
17
17
|
import"./index-zgwm4ryv.js";
|
|
18
|
-
import"./index-
|
|
18
|
+
import"./index-92j14gdt.js";
|
|
19
19
|
import"./index-r4t92q32.js";
|
|
20
20
|
import"./index-zjygnfay.js";
|
|
21
21
|
import"./index-bk5tah7q.js";
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
authorizeCuration,
|
|
5
5
|
buildConfigFingerprintInput,
|
|
6
6
|
readCohortConfigFingerprint
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-7f4jhdhw.js";
|
|
8
8
|
import"./index-rtry5xyf.js";
|
|
9
|
-
import"./index-
|
|
9
|
+
import"./index-n4x9racs.js";
|
|
10
10
|
import"./index-ae75rja9.js";
|
|
11
11
|
import"./index-rs1f1bh0.js";
|
|
12
12
|
import"./index-h2waehqq.js";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
createCuratorLLMDelegate
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-nxs7r6sd.js";
|
|
5
5
|
import"./index-41hkt36g.js";
|
|
6
6
|
import"./index-1m1ksyqt.js";
|
|
7
|
-
import"./index-
|
|
8
|
-
import"./index-
|
|
7
|
+
import"./index-j0gy1ggg.js";
|
|
8
|
+
import"./index-rvr1p73g.js";
|
|
9
9
|
import"./index-brh827g0.js";
|
|
10
10
|
import"./index-yyyk63kk.js";
|
|
11
11
|
import"./index-y8552snf.js";
|
|
12
12
|
import"./index-4905hd2m.js";
|
|
13
13
|
import"./index-134d35c1.js";
|
|
14
|
-
import"./index-
|
|
15
|
-
import"./index-
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
14
|
+
import"./index-k4tcdnvd.js";
|
|
15
|
+
import"./index-f7wq4q9r.js";
|
|
16
|
+
import"./index-3w0kxqyy.js";
|
|
17
|
+
import"./index-v2xrer41.js";
|
|
18
18
|
import"./index-c8s9a3zh.js";
|
|
19
19
|
import"./index-9ss2m4rs.js";
|
|
20
20
|
import"./index-jfjnn408.js";
|
|
@@ -31,11 +31,11 @@ import"./index-74hpm6sh.js";
|
|
|
31
31
|
import"./index-n0pja0qs.js";
|
|
32
32
|
import"./index-8fwhhayc.js";
|
|
33
33
|
import"./index-q1exe2b3.js";
|
|
34
|
-
import"./index-
|
|
35
|
-
import"./index-
|
|
34
|
+
import"./index-4tjk6k4a.js";
|
|
35
|
+
import"./index-7f4jhdhw.js";
|
|
36
36
|
import"./index-rtry5xyf.js";
|
|
37
|
-
import"./index-
|
|
38
|
-
import"./index-
|
|
37
|
+
import"./index-cp592623.js";
|
|
38
|
+
import"./index-n4x9racs.js";
|
|
39
39
|
import"./index-ae75rja9.js";
|
|
40
40
|
import"./index-rs1f1bh0.js";
|
|
41
41
|
import"./index-h2waehqq.js";
|
|
@@ -43,13 +43,13 @@ import"./index-ed5ykebp.js";
|
|
|
43
43
|
import"./index-hfvxhk4z.js";
|
|
44
44
|
import"./index-7g4c7s5r.js";
|
|
45
45
|
import"./index-4nt52yr9.js";
|
|
46
|
-
import"./index-
|
|
46
|
+
import"./index-ssjm3458.js";
|
|
47
47
|
import"./index-gprxjmm7.js";
|
|
48
48
|
import"./index-n832052r.js";
|
|
49
49
|
import"./index-d181x9zr.js";
|
|
50
50
|
import"./index-4rhhvd1a.js";
|
|
51
51
|
import"./index-zgwm4ryv.js";
|
|
52
|
-
import"./index-
|
|
52
|
+
import"./index-92j14gdt.js";
|
|
53
53
|
import"./index-r4t92q32.js";
|
|
54
54
|
import"./index-zjygnfay.js";
|
|
55
55
|
import"./index-bk5tah7q.js";
|
|
@@ -14,20 +14,20 @@ import {
|
|
|
14
14
|
runCuratorInit,
|
|
15
15
|
runCuratorPhase,
|
|
16
16
|
writeCuratorSummary
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-nxs7r6sd.js";
|
|
18
18
|
import"./index-41hkt36g.js";
|
|
19
19
|
import"./index-1m1ksyqt.js";
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
20
|
+
import"./index-j0gy1ggg.js";
|
|
21
|
+
import"./index-rvr1p73g.js";
|
|
22
22
|
import"./index-brh827g0.js";
|
|
23
23
|
import"./index-yyyk63kk.js";
|
|
24
24
|
import"./index-y8552snf.js";
|
|
25
25
|
import"./index-4905hd2m.js";
|
|
26
26
|
import"./index-134d35c1.js";
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-
|
|
27
|
+
import"./index-k4tcdnvd.js";
|
|
28
|
+
import"./index-f7wq4q9r.js";
|
|
29
|
+
import"./index-3w0kxqyy.js";
|
|
30
|
+
import"./index-v2xrer41.js";
|
|
31
31
|
import"./index-c8s9a3zh.js";
|
|
32
32
|
import"./index-9ss2m4rs.js";
|
|
33
33
|
import"./index-jfjnn408.js";
|
|
@@ -44,11 +44,11 @@ import"./index-74hpm6sh.js";
|
|
|
44
44
|
import"./index-n0pja0qs.js";
|
|
45
45
|
import"./index-8fwhhayc.js";
|
|
46
46
|
import"./index-q1exe2b3.js";
|
|
47
|
-
import"./index-
|
|
48
|
-
import"./index-
|
|
47
|
+
import"./index-4tjk6k4a.js";
|
|
48
|
+
import"./index-7f4jhdhw.js";
|
|
49
49
|
import"./index-rtry5xyf.js";
|
|
50
|
-
import"./index-
|
|
51
|
-
import"./index-
|
|
50
|
+
import"./index-cp592623.js";
|
|
51
|
+
import"./index-n4x9racs.js";
|
|
52
52
|
import"./index-ae75rja9.js";
|
|
53
53
|
import"./index-rs1f1bh0.js";
|
|
54
54
|
import"./index-h2waehqq.js";
|
|
@@ -56,13 +56,13 @@ import"./index-ed5ykebp.js";
|
|
|
56
56
|
import"./index-hfvxhk4z.js";
|
|
57
57
|
import"./index-7g4c7s5r.js";
|
|
58
58
|
import"./index-4nt52yr9.js";
|
|
59
|
-
import"./index-
|
|
59
|
+
import"./index-ssjm3458.js";
|
|
60
60
|
import"./index-gprxjmm7.js";
|
|
61
61
|
import"./index-n832052r.js";
|
|
62
62
|
import"./index-d181x9zr.js";
|
|
63
63
|
import"./index-4rhhvd1a.js";
|
|
64
64
|
import"./index-zgwm4ryv.js";
|
|
65
|
-
import"./index-
|
|
65
|
+
import"./index-92j14gdt.js";
|
|
66
66
|
import"./index-r4t92q32.js";
|
|
67
67
|
import"./index-zjygnfay.js";
|
|
68
68
|
import"./index-bk5tah7q.js";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
4
|
+
} from "./index-6d60gctc.js";
|
|
5
|
+
import"./index-nxs7r6sd.js";
|
|
6
6
|
import"./index-41hkt36g.js";
|
|
7
7
|
import"./index-1m1ksyqt.js";
|
|
8
|
-
import"./index-
|
|
9
|
-
import"./index-
|
|
8
|
+
import"./index-j0gy1ggg.js";
|
|
9
|
+
import"./index-rvr1p73g.js";
|
|
10
10
|
import"./index-brh827g0.js";
|
|
11
11
|
import"./index-yyyk63kk.js";
|
|
12
12
|
import"./index-y8552snf.js";
|
|
13
13
|
import"./index-4905hd2m.js";
|
|
14
14
|
import"./index-134d35c1.js";
|
|
15
|
-
import"./index-
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
15
|
+
import"./index-k4tcdnvd.js";
|
|
16
|
+
import"./index-f7wq4q9r.js";
|
|
17
|
+
import"./index-3w0kxqyy.js";
|
|
18
|
+
import"./index-v2xrer41.js";
|
|
19
19
|
import"./index-c8s9a3zh.js";
|
|
20
20
|
import"./index-9ss2m4rs.js";
|
|
21
21
|
import"./index-jfjnn408.js";
|
|
@@ -32,11 +32,11 @@ import"./index-74hpm6sh.js";
|
|
|
32
32
|
import"./index-n0pja0qs.js";
|
|
33
33
|
import"./index-8fwhhayc.js";
|
|
34
34
|
import"./index-q1exe2b3.js";
|
|
35
|
-
import"./index-
|
|
36
|
-
import"./index-
|
|
35
|
+
import"./index-4tjk6k4a.js";
|
|
36
|
+
import"./index-7f4jhdhw.js";
|
|
37
37
|
import"./index-rtry5xyf.js";
|
|
38
|
-
import"./index-
|
|
39
|
-
import"./index-
|
|
38
|
+
import"./index-cp592623.js";
|
|
39
|
+
import"./index-n4x9racs.js";
|
|
40
40
|
import"./index-ae75rja9.js";
|
|
41
41
|
import"./index-rs1f1bh0.js";
|
|
42
42
|
import"./index-h2waehqq.js";
|
|
@@ -44,13 +44,13 @@ import"./index-ed5ykebp.js";
|
|
|
44
44
|
import"./index-hfvxhk4z.js";
|
|
45
45
|
import"./index-7g4c7s5r.js";
|
|
46
46
|
import"./index-4nt52yr9.js";
|
|
47
|
-
import"./index-
|
|
47
|
+
import"./index-ssjm3458.js";
|
|
48
48
|
import"./index-gprxjmm7.js";
|
|
49
49
|
import"./index-n832052r.js";
|
|
50
50
|
import"./index-d181x9zr.js";
|
|
51
51
|
import"./index-4rhhvd1a.js";
|
|
52
52
|
import"./index-zgwm4ryv.js";
|
|
53
|
-
import"./index-
|
|
53
|
+
import"./index-92j14gdt.js";
|
|
54
54
|
import"./index-r4t92q32.js";
|
|
55
55
|
import"./index-zjygnfay.js";
|
|
56
56
|
import"./index-bk5tah7q.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailLog
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
4
|
+
} from "./index-sd7ajhb5.js";
|
|
5
|
+
import"./index-j0gy1ggg.js";
|
|
6
6
|
import"./index-556ja8an.js";
|
|
7
7
|
import"./index-ee3x66a5.js";
|
|
8
8
|
import"./index-4nt52yr9.js";
|
|
9
9
|
import"./index-zgwm4ryv.js";
|
|
10
|
-
import"./index-
|
|
10
|
+
import"./index-92j14gdt.js";
|
|
11
11
|
import"./index-r4t92q32.js";
|
|
12
12
|
import"./index-zjygnfay.js";
|
|
13
13
|
import"./index-bk5tah7q.js";
|
|
@@ -7,20 +7,20 @@ import {
|
|
|
7
7
|
isHiveEligible,
|
|
8
8
|
promoteFromSwarm,
|
|
9
9
|
promoteToHive
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-nxs7r6sd.js";
|
|
11
11
|
import"./index-41hkt36g.js";
|
|
12
12
|
import"./index-1m1ksyqt.js";
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
13
|
+
import"./index-j0gy1ggg.js";
|
|
14
|
+
import"./index-rvr1p73g.js";
|
|
15
15
|
import"./index-brh827g0.js";
|
|
16
16
|
import"./index-yyyk63kk.js";
|
|
17
17
|
import"./index-y8552snf.js";
|
|
18
18
|
import"./index-4905hd2m.js";
|
|
19
19
|
import"./index-134d35c1.js";
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-
|
|
23
|
-
import"./index-
|
|
20
|
+
import"./index-k4tcdnvd.js";
|
|
21
|
+
import"./index-f7wq4q9r.js";
|
|
22
|
+
import"./index-3w0kxqyy.js";
|
|
23
|
+
import"./index-v2xrer41.js";
|
|
24
24
|
import"./index-c8s9a3zh.js";
|
|
25
25
|
import"./index-9ss2m4rs.js";
|
|
26
26
|
import"./index-jfjnn408.js";
|
|
@@ -37,13 +37,13 @@ import"./index-74hpm6sh.js";
|
|
|
37
37
|
import"./index-n0pja0qs.js";
|
|
38
38
|
import"./index-8fwhhayc.js";
|
|
39
39
|
import"./index-q1exe2b3.js";
|
|
40
|
-
import"./index-
|
|
41
|
-
import"./index-
|
|
40
|
+
import"./index-4tjk6k4a.js";
|
|
41
|
+
import"./index-7f4jhdhw.js";
|
|
42
42
|
import"./index-rtry5xyf.js";
|
|
43
43
|
import {
|
|
44
44
|
resolveHiveKnowledgePath
|
|
45
|
-
} from "./index-
|
|
46
|
-
import"./index-
|
|
45
|
+
} from "./index-cp592623.js";
|
|
46
|
+
import"./index-n4x9racs.js";
|
|
47
47
|
import"./index-ae75rja9.js";
|
|
48
48
|
import"./index-rs1f1bh0.js";
|
|
49
49
|
import"./index-h2waehqq.js";
|
|
@@ -51,13 +51,13 @@ import"./index-ed5ykebp.js";
|
|
|
51
51
|
import"./index-hfvxhk4z.js";
|
|
52
52
|
import"./index-7g4c7s5r.js";
|
|
53
53
|
import"./index-4nt52yr9.js";
|
|
54
|
-
import"./index-
|
|
54
|
+
import"./index-ssjm3458.js";
|
|
55
55
|
import"./index-gprxjmm7.js";
|
|
56
56
|
import"./index-n832052r.js";
|
|
57
57
|
import"./index-d181x9zr.js";
|
|
58
58
|
import"./index-4rhhvd1a.js";
|
|
59
59
|
import"./index-zgwm4ryv.js";
|
|
60
|
-
import"./index-
|
|
60
|
+
import"./index-92j14gdt.js";
|
|
61
61
|
import"./index-r4t92q32.js";
|
|
62
62
|
import"./index-zjygnfay.js";
|
|
63
63
|
import"./index-bk5tah7q.js";
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
loadPluginConfigWithMeta,
|
|
8
8
|
loadPluginConfigWithMetaAsync,
|
|
9
9
|
resolveWorktreeIsolationConfig
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-ssjm3458.js";
|
|
11
11
|
import {
|
|
12
12
|
ApprovalEvidenceSchema,
|
|
13
13
|
BaseEvidenceSchema,
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
TurboConfigSchema,
|
|
66
66
|
WorktreeIsolationConfigSchema,
|
|
67
67
|
resolveAutoReviewConfig
|
|
68
|
-
} from "./index-
|
|
68
|
+
} from "./index-92j14gdt.js";
|
|
69
69
|
import {
|
|
70
70
|
ALL_AGENT_NAMES,
|
|
71
71
|
ALL_SUBAGENT_NAMES,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
authorizeCuration
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-7f4jhdhw.js";
|
|
5
5
|
import {
|
|
6
6
|
findNearDuplicate,
|
|
7
7
|
inferTags,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
resolveSwarmKnowledgePath,
|
|
10
10
|
resolveSwarmRejectedPath,
|
|
11
11
|
transactKnowledge
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-cp592623.js";
|
|
13
13
|
import {
|
|
14
14
|
resolveKnowledgeStoreDir
|
|
15
15
|
} from "./index-rs1f1bh0.js";
|
|
@@ -12,14 +12,14 @@ import {
|
|
|
12
12
|
detectPosixWrites,
|
|
13
13
|
detectWindowsWrites,
|
|
14
14
|
resolveWriteTargets
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-nxs7r6sd.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-j0gy1ggg.js";
|
|
23
23
|
|
|
24
24
|
// src/services/guardrail-explain-service.ts
|
|
25
25
|
import path from "path";
|
|
@@ -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.139.
|
|
24
|
+
version: "7.139.7",
|
|
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",
|