opencode-multiagent 0.2.0 → 0.3.0-next.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.
Files changed (153) hide show
  1. package/AGENTS.md +62 -0
  2. package/CHANGELOG.md +18 -0
  3. package/CONTRIBUTING.md +36 -0
  4. package/README.md +41 -165
  5. package/README.tr.md +84 -0
  6. package/RELEASE.md +68 -0
  7. package/agents/advisor.md +9 -6
  8. package/agents/auditor.md +8 -6
  9. package/agents/critic.md +19 -10
  10. package/agents/deep-worker.md +11 -7
  11. package/agents/devil.md +3 -1
  12. package/agents/executor.md +20 -19
  13. package/agents/heavy-worker.md +11 -7
  14. package/agents/lead.md +22 -30
  15. package/agents/librarian.md +6 -2
  16. package/agents/planner.md +18 -10
  17. package/agents/qa.md +9 -6
  18. package/agents/quick.md +12 -7
  19. package/agents/reviewer.md +9 -6
  20. package/agents/scout.md +9 -5
  21. package/agents/scribe.md +33 -28
  22. package/agents/strategist.md +10 -7
  23. package/agents/ui-heavy-worker.md +11 -7
  24. package/agents/ui-worker.md +12 -7
  25. package/agents/validator.md +8 -5
  26. package/agents/worker.md +12 -7
  27. package/commands/execute.md +1 -0
  28. package/commands/init-deep.md +1 -0
  29. package/commands/init.md +1 -0
  30. package/commands/inspect.md +1 -0
  31. package/commands/plan.md +1 -0
  32. package/commands/quality.md +1 -0
  33. package/commands/review.md +1 -0
  34. package/commands/status.md +1 -0
  35. package/defaults/opencode-multiagent.json +223 -0
  36. package/defaults/opencode-multiagent.schema.json +249 -0
  37. package/dist/control-plane.d.ts +4 -0
  38. package/dist/control-plane.d.ts.map +1 -0
  39. package/dist/index.d.ts +5 -0
  40. package/dist/index.d.ts.map +1 -0
  41. package/dist/index.js +1583 -0
  42. package/dist/opencode-multiagent/compiler.d.ts +19 -0
  43. package/dist/opencode-multiagent/compiler.d.ts.map +1 -0
  44. package/dist/opencode-multiagent/constants.d.ts +116 -0
  45. package/dist/opencode-multiagent/constants.d.ts.map +1 -0
  46. package/dist/opencode-multiagent/defaults.d.ts +10 -0
  47. package/dist/opencode-multiagent/defaults.d.ts.map +1 -0
  48. package/dist/opencode-multiagent/file-lock.d.ts +15 -0
  49. package/dist/opencode-multiagent/file-lock.d.ts.map +1 -0
  50. package/dist/opencode-multiagent/hooks.d.ts +62 -0
  51. package/dist/opencode-multiagent/hooks.d.ts.map +1 -0
  52. package/dist/opencode-multiagent/log.d.ts +2 -0
  53. package/dist/opencode-multiagent/log.d.ts.map +1 -0
  54. package/dist/opencode-multiagent/markdown.d.ts +8 -0
  55. package/dist/opencode-multiagent/markdown.d.ts.map +1 -0
  56. package/dist/opencode-multiagent/mcp.d.ts +3 -0
  57. package/dist/opencode-multiagent/mcp.d.ts.map +1 -0
  58. package/dist/opencode-multiagent/policy.d.ts +5 -0
  59. package/dist/opencode-multiagent/policy.d.ts.map +1 -0
  60. package/dist/opencode-multiagent/quality.d.ts +14 -0
  61. package/dist/opencode-multiagent/quality.d.ts.map +1 -0
  62. package/dist/opencode-multiagent/runtime.d.ts +7 -0
  63. package/dist/opencode-multiagent/runtime.d.ts.map +1 -0
  64. package/dist/opencode-multiagent/session-tracker.d.ts +32 -0
  65. package/dist/opencode-multiagent/session-tracker.d.ts.map +1 -0
  66. package/dist/opencode-multiagent/skills.d.ts +17 -0
  67. package/dist/opencode-multiagent/skills.d.ts.map +1 -0
  68. package/dist/opencode-multiagent/supervision.d.ts +12 -0
  69. package/dist/opencode-multiagent/supervision.d.ts.map +1 -0
  70. package/dist/opencode-multiagent/task-manager.d.ts +48 -0
  71. package/dist/opencode-multiagent/task-manager.d.ts.map +1 -0
  72. package/dist/opencode-multiagent/telemetry.d.ts +26 -0
  73. package/dist/opencode-multiagent/telemetry.d.ts.map +1 -0
  74. package/dist/opencode-multiagent/tools.d.ts +56 -0
  75. package/dist/opencode-multiagent/tools.d.ts.map +1 -0
  76. package/dist/opencode-multiagent/types.d.ts +36 -0
  77. package/dist/opencode-multiagent/types.d.ts.map +1 -0
  78. package/dist/opencode-multiagent/utils.d.ts +9 -0
  79. package/dist/opencode-multiagent/utils.d.ts.map +1 -0
  80. package/docs/agents.md +260 -0
  81. package/docs/agents.tr.md +260 -0
  82. package/docs/configuration.md +255 -0
  83. package/docs/configuration.tr.md +255 -0
  84. package/docs/usage-guide.md +226 -0
  85. package/docs/usage-guide.tr.md +227 -0
  86. package/examples/opencode.with-overrides.json +1 -5
  87. package/package.json +23 -13
  88. package/skills/advanced-evaluation/SKILL.md +37 -21
  89. package/skills/advanced-evaluation/manifest.json +2 -13
  90. package/skills/cek-context-engineering/SKILL.md +159 -87
  91. package/skills/cek-context-engineering/manifest.json +1 -3
  92. package/skills/cek-prompt-engineering/SKILL.md +13 -10
  93. package/skills/cek-prompt-engineering/manifest.json +1 -3
  94. package/skills/cek-test-prompt/SKILL.md +38 -28
  95. package/skills/cek-test-prompt/manifest.json +1 -3
  96. package/skills/cek-thought-based-reasoning/SKILL.md +75 -21
  97. package/skills/cek-thought-based-reasoning/manifest.json +1 -3
  98. package/skills/context-degradation/SKILL.md +14 -13
  99. package/skills/context-degradation/manifest.json +1 -3
  100. package/skills/debate/SKILL.md +23 -78
  101. package/skills/debate/manifest.json +2 -12
  102. package/skills/design-first/manifest.json +2 -13
  103. package/skills/dispatching-parallel-agents/SKILL.md +14 -3
  104. package/skills/dispatching-parallel-agents/manifest.json +1 -4
  105. package/skills/drift-analysis/SKILL.md +50 -29
  106. package/skills/drift-analysis/manifest.json +2 -12
  107. package/skills/evaluation/manifest.json +2 -12
  108. package/skills/executing-plans/SKILL.md +15 -8
  109. package/skills/executing-plans/manifest.json +1 -3
  110. package/skills/handoff-protocols/manifest.json +2 -12
  111. package/skills/parallel-investigation/SKILL.md +25 -12
  112. package/skills/parallel-investigation/manifest.json +1 -4
  113. package/skills/reflexion-critique/SKILL.md +21 -10
  114. package/skills/reflexion-critique/manifest.json +1 -3
  115. package/skills/reflexion-reflect/SKILL.md +36 -34
  116. package/skills/reflexion-reflect/manifest.json +2 -10
  117. package/skills/root-cause-analysis/manifest.json +2 -13
  118. package/skills/sadd-judge-with-debate/SKILL.md +50 -26
  119. package/skills/sadd-judge-with-debate/manifest.json +1 -3
  120. package/skills/structured-code-review/manifest.json +2 -11
  121. package/skills/task-decomposition/manifest.json +2 -13
  122. package/skills/verification-before-completion/manifest.json +2 -15
  123. package/skills/verification-gates/SKILL.md +27 -19
  124. package/skills/verification-gates/manifest.json +2 -12
  125. package/defaults/agent-settings.json +0 -102
  126. package/defaults/agent-settings.schema.json +0 -25
  127. package/defaults/flags.json +0 -35
  128. package/defaults/flags.schema.json +0 -119
  129. package/defaults/mcp-defaults.json +0 -47
  130. package/defaults/mcp-defaults.schema.json +0 -38
  131. package/defaults/profiles.json +0 -53
  132. package/defaults/profiles.schema.json +0 -60
  133. package/defaults/team-profiles.json +0 -83
  134. package/src/control-plane.ts +0 -21
  135. package/src/index.ts +0 -8
  136. package/src/opencode-multiagent/compiler.ts +0 -168
  137. package/src/opencode-multiagent/constants.ts +0 -178
  138. package/src/opencode-multiagent/file-lock.ts +0 -90
  139. package/src/opencode-multiagent/hooks.ts +0 -599
  140. package/src/opencode-multiagent/log.ts +0 -12
  141. package/src/opencode-multiagent/mailbox.ts +0 -287
  142. package/src/opencode-multiagent/markdown.ts +0 -99
  143. package/src/opencode-multiagent/mcp.ts +0 -35
  144. package/src/opencode-multiagent/policy.ts +0 -67
  145. package/src/opencode-multiagent/quality.ts +0 -140
  146. package/src/opencode-multiagent/runtime.ts +0 -55
  147. package/src/opencode-multiagent/skills.ts +0 -144
  148. package/src/opencode-multiagent/supervision.ts +0 -156
  149. package/src/opencode-multiagent/task-manager.ts +0 -148
  150. package/src/opencode-multiagent/team-manager.ts +0 -219
  151. package/src/opencode-multiagent/team-tools.ts +0 -359
  152. package/src/opencode-multiagent/telemetry.ts +0 -124
  153. package/src/opencode-multiagent/utils.ts +0 -54
@@ -0,0 +1,226 @@
1
+ > Language: **English** | [Turkish](usage-guide.tr.md)
2
+ >
3
+ > Back: [README](../README.md)
4
+
5
+ # Usage Guide
6
+
7
+ This guide covers the practical day-to-day use of `opencode-multiagent` as an OpenCode plugin.
8
+
9
+ ## 1. Install the Plugin
10
+
11
+ Add the plugin to `opencode.json`:
12
+
13
+ ```json
14
+ {
15
+ "$schema": "https://opencode.ai/config.json",
16
+ "plugin": ["opencode-multiagent"]
17
+ }
18
+ ```
19
+
20
+ That is the smallest supported setup.
21
+
22
+ Reference examples:
23
+
24
+ - `examples/opencode.json`
25
+ - `examples/opencode.with-overrides.json`
26
+
27
+ ## 2. What Happens When the Plugin Loads
28
+
29
+ When OpenCode loads the package, the plugin:
30
+
31
+ 1. reads bundled defaults from `defaults/opencode-multiagent.json`
32
+ 2. reads user overrides from `~/.config/opencode/plugins/opencode-multiagent.json`
33
+ 3. builds the effective runtime flags and agent settings
34
+ 4. compiles bundled agent and command markdown into the active config
35
+ 5. injects plugin-owned MCP defaults only when the host config does not already define them
36
+ 6. prefers `lead` as the default top-level agent when available
37
+ 7. enables runtime hooks for telemetry, file locks, supervision, quality reminders, and the shared task board
38
+
39
+ ## 3. Normal User Flow
40
+
41
+ In normal use, you do not need to pick worker agents manually. The system is designed so the
42
+ top-level interaction goes through `lead`.
43
+
44
+ Typical flow:
45
+
46
+ ```text
47
+ user -> lead -> critic/planner/executor -> specialized subagents
48
+ ```
49
+
50
+ ### The main routing roles
51
+
52
+ | Agent | Role |
53
+ | ---------- | ------------------------------------------------------------------------- |
54
+ | `lead` | Owns the request lifecycle, chooses routing, and integrates results. |
55
+ | `critic` | Challenges a route or inspects repository state before work proceeds. |
56
+ | `planner` | Writes a durable execution plan for larger or riskier work. |
57
+ | `executor` | Runs the plan by dispatching bounded worker tasks and validating results. |
58
+
59
+ ## 4. Triage Levels
60
+
61
+ `lead` uses a tiered routing model.
62
+
63
+ | Tier | Meaning | Typical route |
64
+ | -------- | -------------------------------------------------------- | --------------------------------------- |
65
+ | `Tier 0` | Tiny, explicit, low-risk work | `lead -> executor -> quick/worker` |
66
+ | `Tier 1` | Bounded work that benefits from a challenge pass | `lead -> critic -> executor` |
67
+ | `Tier 2` | Cross-cutting, risky, ambiguous, or migration-heavy work | `lead -> critic -> planner -> executor` |
68
+ | `Tier 3` | Inspection and repo-memory work | `lead -> critic` |
69
+
70
+ As a user, the practical takeaway is simple: ask for the task naturally and let `lead` decide the
71
+ route unless you have a strong reason to override the flow.
72
+
73
+ ## 5. Shared Task Board
74
+
75
+ The plugin exposes three shared task tools:
76
+
77
+ - `task_create`
78
+ - `task_update`
79
+ - `task_list`
80
+
81
+ These are used internally by the agent system to track work, but they are also important to
82
+ understand when reading logs or `.magent` artifacts.
83
+
84
+ ### Task lifecycle
85
+
86
+ Possible task states:
87
+
88
+ - `pending`
89
+ - `claimed`
90
+ - `in_progress`
91
+ - `completed`
92
+ - `failed`
93
+ - `blocked`
94
+
95
+ ### Persistence
96
+
97
+ When a project root is available, the task board is persisted to:
98
+
99
+ - `.magent/tasks/taskboard.json`
100
+
101
+ This makes multi-step execution easier to inspect after a session.
102
+
103
+ ## 6. Profiles
104
+
105
+ The plugin ships three runtime profiles:
106
+
107
+ | Profile | When to use it |
108
+ | ---------- | ---------------------------------------------------------------------------- |
109
+ | `minimal` | You want lower runtime overhead and fewer reminders/logs. |
110
+ | `standard` | Normal default usage. Best starting point for most users. |
111
+ | `strict` | You want the strongest runtime controls and experimental transforms enabled. |
112
+
113
+ Example user override file:
114
+
115
+ ```json
116
+ {
117
+ "flags": {
118
+ "profile": "strict"
119
+ }
120
+ }
121
+ ```
122
+
123
+ ## 7. Overriding Agent Defaults
124
+
125
+ Use `~/.config/opencode/plugins/opencode-multiagent.json` for centralized plugin-level overrides.
126
+
127
+ Example:
128
+
129
+ ```json
130
+ {
131
+ "agentSettings": {
132
+ "lead": {
133
+ "steps": 650
134
+ },
135
+ "reviewer": {
136
+ "model": "openai/gpt-5.4"
137
+ }
138
+ }
139
+ }
140
+ ```
141
+
142
+ Use `opencode.json` when you want an explicit host-level override for a specific OpenCode field.
143
+
144
+ Example:
145
+
146
+ ```json
147
+ {
148
+ "$schema": "https://opencode.ai/config.json",
149
+ "plugin": ["opencode-multiagent"],
150
+ "agent": {
151
+ "lead": {
152
+ "steps": 650
153
+ }
154
+ }
155
+ }
156
+ ```
157
+
158
+ ## 8. MCP Servers
159
+
160
+ Bundled MCP defaults:
161
+
162
+ - `code_index`
163
+ - `repo`
164
+ - `context7`
165
+ - `exa`
166
+ - `gh_grep`
167
+ - `github`
168
+
169
+ Important behavior:
170
+
171
+ - if the host config already defines one of these servers, the plugin does not overwrite it
172
+ - `code_index` and `repo` are enabled by default
173
+ - `context7`, `exa`, `gh_grep`, and `github` start disabled in bundled defaults
174
+
175
+ ### Enabling GitHub MCP
176
+
177
+ Use `opencode.json` to explicitly enable it:
178
+
179
+ ```json
180
+ {
181
+ "$schema": "https://opencode.ai/config.json",
182
+ "plugin": ["opencode-multiagent"],
183
+ "mcp": {
184
+ "github": {
185
+ "type": "local",
186
+ "command": ["npx", "-y", "@modelcontextprotocol/server-github"],
187
+ "environment": {
188
+ "GITHUB_PERSONAL_ACCESS_TOKEN": "{env:GITHUB_PAT_TOKEN}"
189
+ },
190
+ "enabled": true
191
+ }
192
+ }
193
+ }
194
+ ```
195
+
196
+ ## 9. Logs and Generated Artifacts
197
+
198
+ Common generated files and directories:
199
+
200
+ | Path | Purpose |
201
+ | ----------------------------------------------------- | ------------------------------------------------- |
202
+ | `~/.config/opencode/logs/opencode-multiagent.jsonl` | Observation and telemetry log |
203
+ | `~/.config/opencode/plugins/opencode-multiagent.json` | User runtime overrides |
204
+ | `.magent/tasks/taskboard.json` | Shared task board persistence |
205
+ | `.magent/plans/` | Durable plans created through planner and scribe |
206
+ | `.magent/exec/` | Execution artifacts maintained during larger work |
207
+
208
+ ## 10. Development Workflow
209
+
210
+ If you are developing the plugin itself, the usual workflow is:
211
+
212
+ ```bash
213
+ mise run setup
214
+ mise run test
215
+ mise run typecheck
216
+ mise run validate-config
217
+ mise run build
218
+ ```
219
+
220
+ If `mise` is unavailable in your local shell, the equivalent direct commands are based on `bun`,
221
+ `tsx`, and `tsc`.
222
+
223
+ ## Related Docs
224
+
225
+ - [Configuration Reference](configuration.md)
226
+ - [Agent Reference](agents.md)
@@ -0,0 +1,227 @@
1
+ > Dil: [English](usage-guide.md) | **Türkçe**
2
+ >
3
+ > Geri: [README](../README.tr.md)
4
+
5
+ # Kullanım Kılavuzu
6
+
7
+ Bu kılavuz, `opencode-multiagent` eklentisinin günlük kullanımını pratik açıdan anlatır.
8
+
9
+ ## 1. Plugin Kurulumu
10
+
11
+ `opencode.json` dosyasına plugin'i ekleyin:
12
+
13
+ ```json
14
+ {
15
+ "$schema": "https://opencode.ai/config.json",
16
+ "plugin": ["opencode-multiagent"]
17
+ }
18
+ ```
19
+
20
+ Bu, desteklenen en küçük kurulumdur.
21
+
22
+ Referans örnekler:
23
+
24
+ - `examples/opencode.json`
25
+ - `examples/opencode.with-overrides.json`
26
+
27
+ ## 2. Plugin Yüklenince Ne Olur
28
+
29
+ OpenCode paketi yüklediğinde plugin şu adımları uygular:
30
+
31
+ 1. `defaults/opencode-multiagent.json` içindeki varsayılanları okur
32
+ 2. `~/.config/opencode/plugins/opencode-multiagent.json` içindeki kullanıcı override'larını okur
33
+ 3. efektif runtime flag ve agent ayarlarını oluşturur
34
+ 4. paketlenmiş agent ve command markdown dosyalarını aktif config'e derler
35
+ 5. host config içinde yoksa plugin'e ait MCP varsayılanlarını ekler
36
+ 6. mümkünse `lead` ajanını varsayılan top-level ajan olarak tercih eder
37
+ 7. telemetry, file lock, supervision, quality reminder ve ortak task board hook'larını açar
38
+
39
+ ## 3. Normal Kullanım Akışı
40
+
41
+ Normal kullanımda worker ajanları elle seçmeniz gerekmez. Sistem, top-level etkileşimin `lead`
42
+ üzerinden gitmesi için tasarlanmıştır.
43
+
44
+ Tipik akış:
45
+
46
+ ```text
47
+ kullanici -> lead -> critic/planner/executor -> uzman alt ajanlar
48
+ ```
49
+
50
+ ### Temel routing rolleri
51
+
52
+ | Agent | Rol |
53
+ | ---------- | -------------------------------------------------------------------------- |
54
+ | `lead` | Talebin tüm yaşam döngüsünü yönetir, route seçer ve sonuçları birleştirir. |
55
+ | `critic` | İş başlamadan önce rota veya repo durumunu sorgular. |
56
+ | `planner` | Büyük veya riskli işlerde kalıcı bir yürütme planı üretir. |
57
+ | `executor` | Planı bounded worker görevlerine bölerek uygular ve sonuçları doğrular. |
58
+
59
+ ## 4. Triage Seviyeleri
60
+
61
+ `lead`, katmanlı bir routing modeli kullanır.
62
+
63
+ | Seviye | Anlamı | Tipik route |
64
+ | -------- | -------------------------------------------------------------- | --------------------------------------- |
65
+ | `Tier 0` | Küçük, açık, düşük riskli işler | `lead -> executor -> quick/worker` |
66
+ | `Tier 1` | Kısa bir challenge turundan fayda gören bounded işler | `lead -> critic -> executor` |
67
+ | `Tier 2` | Cross-cutting, riskli, belirsiz veya migration ağırlıklı işler | `lead -> critic -> planner -> executor` |
68
+ | `Tier 3` | İnceleme ve repo-memory işleri | `lead -> critic` |
69
+
70
+ Kullanıcı açısından pratik kural basittir: güçlü bir sebep yoksa görevi doğal şekilde tarif edin ve
71
+ `lead` ajanının route seçmesine izin verin.
72
+
73
+ ## 5. Ortak Task Board
74
+
75
+ Plugin üç ortak task aracı sunar:
76
+
77
+ - `task_create`
78
+ - `task_update`
79
+ - `task_list`
80
+
81
+ Bu araçlar ajan sistemi tarafından dahili olarak kullanılır; ancak log ve `.magent` çıktılarının
82
+ nasıl oluştuğunu anlamak için bilinmeleri faydalıdır.
83
+
84
+ ### Task yaşam döngüsü
85
+
86
+ Olası task durumları:
87
+
88
+ - `pending`
89
+ - `claimed`
90
+ - `in_progress`
91
+ - `completed`
92
+ - `failed`
93
+ - `blocked`
94
+
95
+ ### Kalıcılık
96
+
97
+ Bir proje kökü varsa task board şu dosyaya yazılır:
98
+
99
+ - `.magent/tasks/taskboard.json`
100
+
101
+ Bu sayede çok adımlı yürütmeler oturum sonrasında da incelenebilir.
102
+
103
+ ## 6. Profiller
104
+
105
+ Plugin üç runtime profili ile gelir:
106
+
107
+ | Profil | Ne zaman kullanılır |
108
+ | ---------- | ------------------------------------------------------------------------ |
109
+ | `minimal` | Daha düşük runtime yükü ve daha az log/reminder istediğinizde |
110
+ | `standard` | Normal varsayılan kullanım; çoğu kullanıcı için en iyi başlangıç noktası |
111
+ | `strict` | En güçlü runtime kontrolleri ve experimental transform'lar gerektiğinde |
112
+
113
+ Örnek kullanıcı override dosyası:
114
+
115
+ ```json
116
+ {
117
+ "flags": {
118
+ "profile": "strict"
119
+ }
120
+ }
121
+ ```
122
+
123
+ ## 7. Agent Varsayılanlarını Override Etme
124
+
125
+ Merkezi plugin düzeyi override için `~/.config/opencode/plugins/opencode-multiagent.json`
126
+ kullanın.
127
+
128
+ Örnek:
129
+
130
+ ```json
131
+ {
132
+ "agentSettings": {
133
+ "lead": {
134
+ "steps": 650
135
+ },
136
+ "reviewer": {
137
+ "model": "openai/gpt-5.4"
138
+ }
139
+ }
140
+ }
141
+ ```
142
+
143
+ Belirli bir OpenCode alanını açıkça override etmek istediğinizde `opencode.json` kullanın.
144
+
145
+ Örnek:
146
+
147
+ ```json
148
+ {
149
+ "$schema": "https://opencode.ai/config.json",
150
+ "plugin": ["opencode-multiagent"],
151
+ "agent": {
152
+ "lead": {
153
+ "steps": 650
154
+ }
155
+ }
156
+ }
157
+ ```
158
+
159
+ ## 8. MCP Sunucuları
160
+
161
+ Paketle gelen MCP varsayılanları:
162
+
163
+ - `code_index`
164
+ - `repo`
165
+ - `context7`
166
+ - `exa`
167
+ - `gh_grep`
168
+ - `github`
169
+
170
+ Önemli davranışlar:
171
+
172
+ - host config zaten aynı isimli sunucuyu tanımlıyorsa plugin onun üstüne yazmaz
173
+ - `code_index` ve `repo` varsayılan olarak açıktır
174
+ - `context7`, `exa`, `gh_grep` ve `github` paket varsayılanlarında kapalı başlar
175
+
176
+ ### GitHub MCP'yi etkinleştirme
177
+
178
+ Bunu açıkça etkinleştirmek için `opencode.json` kullanın:
179
+
180
+ ```json
181
+ {
182
+ "$schema": "https://opencode.ai/config.json",
183
+ "plugin": ["opencode-multiagent"],
184
+ "mcp": {
185
+ "github": {
186
+ "type": "local",
187
+ "command": ["npx", "-y", "@modelcontextprotocol/server-github"],
188
+ "environment": {
189
+ "GITHUB_PERSONAL_ACCESS_TOKEN": "{env:GITHUB_PAT_TOKEN}"
190
+ },
191
+ "enabled": true
192
+ }
193
+ }
194
+ }
195
+ ```
196
+
197
+ ## 9. Loglar ve Üretilen Artifaktlar
198
+
199
+ Sık görülen dosya ve dizinler:
200
+
201
+ | Yol | Amaç |
202
+ | ----------------------------------------------------- | --------------------------------------------------------- |
203
+ | `~/.config/opencode/logs/opencode-multiagent.jsonl` | Observation ve telemetry logu |
204
+ | `~/.config/opencode/plugins/opencode-multiagent.json` | Kullanıcı runtime override dosyası |
205
+ | `.magent/tasks/taskboard.json` | Ortak task board verisi |
206
+ | `.magent/plans/` | Planner ve scribe tarafından yazılan kalıcı planlar |
207
+ | `.magent/exec/` | Büyük yürütmeler sırasında tutulan execution artifaktları |
208
+
209
+ ## 10. Geliştirme Akışı
210
+
211
+ Plugin'in kendisini geliştiriyorsanız tipik akış şöyledir:
212
+
213
+ ```bash
214
+ mise run setup
215
+ mise run test
216
+ mise run typecheck
217
+ mise run validate-config
218
+ mise run build
219
+ ```
220
+
221
+ Yerel shell ortamınızda `mise` yoksa aynı doğrulamalar `bun`, `tsx` ve `tsc` tabanlı komutlarla da
222
+ çalıştırılabilir.
223
+
224
+ ## İlgili Dokümanlar
225
+
226
+ - [Konfigürasyon Referansı](configuration.tr.md)
227
+ - [Ajan Referansı](agents.tr.md)
@@ -4,11 +4,7 @@
4
4
  "mcp": {
5
5
  "github": {
6
6
  "type": "local",
7
- "command": [
8
- "npx",
9
- "-y",
10
- "@modelcontextprotocol/server-github"
11
- ],
7
+ "command": ["npx", "-y", "@modelcontextprotocol/server-github"],
12
8
  "environment": {
13
9
  "GITHUB_PERSONAL_ACCESS_TOKEN": "{env:GITHUB_PAT_TOKEN}"
14
10
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-multiagent",
3
- "version": "0.2.0",
3
+ "version": "0.3.0-next.1",
4
4
  "type": "module",
5
5
  "description": "Multi-agent orchestration plugin for OpenCode",
6
6
  "license": "MIT",
@@ -15,31 +15,34 @@
15
15
  "publishConfig": {
16
16
  "access": "public"
17
17
  },
18
+ "main": "./dist/index.js",
19
+ "types": "./dist/index.d.ts",
18
20
  "exports": {
19
- ".": "./src/index.ts",
21
+ ".": {
22
+ "types": "./dist/index.d.ts",
23
+ "default": "./dist/index.js"
24
+ },
20
25
  "./agents/*": "./agents/*",
21
26
  "./commands/*": "./commands/*",
22
27
  "./defaults/*": "./defaults/*",
23
28
  "./skills/*": "./skills/*"
24
29
  },
25
30
  "files": [
26
- "src",
31
+ "dist",
27
32
  "agents",
28
33
  "commands",
29
34
  "defaults",
35
+ "docs",
30
36
  "skills",
31
37
  "examples",
38
+ "AGENTS.md",
39
+ "CHANGELOG.md",
40
+ "CONTRIBUTING.md",
32
41
  "LICENSE",
33
- "README.md"
42
+ "README.md",
43
+ "README.tr.md",
44
+ "RELEASE.md"
34
45
  ],
35
- "scripts": {
36
- "typecheck": "tsc --noEmit",
37
- "validate-config": "tsx scripts/validate.ts",
38
- "config-server": "tsx scripts/config-server.ts",
39
- "telemetry-report": "tsx scripts/telemetry-report.ts",
40
- "ci:check": "npm run typecheck && npm run validate-config",
41
- "pack:dry-run": "npm pack --dry-run"
42
- },
43
46
  "keywords": [
44
47
  "opencode",
45
48
  "plugin",
@@ -51,10 +54,17 @@
51
54
  "@opencode-ai/plugin": ">=1.0.0"
52
55
  },
53
56
  "devDependencies": {
57
+ "@eslint/js": "^9.39.1",
54
58
  "@opencode-ai/plugin": "1.0.85",
55
59
  "@types/node": "^24.0.0",
60
+ "bun-types": "latest",
61
+ "eslint": "^9.39.1",
62
+ "eslint-config-prettier": "10.1.8",
63
+ "eslint-plugin-prettier": "^5.1.3",
64
+ "prettier": "^3.2.4",
56
65
  "tsx": "^4.20.6",
57
- "typescript": "^5.9.2"
66
+ "typescript": "^5.9.2",
67
+ "typescript-eslint": "^8.47.0"
58
68
  },
59
69
  "engines": {
60
70
  "node": ">=18"