@a4hgehad/oh-my-openagent-slim 0.8.4

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 (84) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +325 -0
  3. package/dist/agents/designer.d.ts +2 -0
  4. package/dist/agents/explorer.d.ts +2 -0
  5. package/dist/agents/fixer.d.ts +2 -0
  6. package/dist/agents/index.d.ts +22 -0
  7. package/dist/agents/librarian.d.ts +2 -0
  8. package/dist/agents/oracle.d.ts +2 -0
  9. package/dist/agents/orchestrator.d.ts +15 -0
  10. package/dist/background/background-manager.d.ts +175 -0
  11. package/dist/background/index.d.ts +2 -0
  12. package/dist/background/tmux-session-manager.d.ts +63 -0
  13. package/dist/cli/config-io.d.ts +22 -0
  14. package/dist/cli/config-manager.d.ts +4 -0
  15. package/dist/cli/custom-skills.d.ts +29 -0
  16. package/dist/cli/index.d.ts +2 -0
  17. package/dist/cli/index.js +14471 -0
  18. package/dist/cli/install.d.ts +2 -0
  19. package/dist/cli/model-key-normalization.d.ts +1 -0
  20. package/dist/cli/paths.d.ts +21 -0
  21. package/dist/cli/providers.d.ts +104 -0
  22. package/dist/cli/skills.d.ts +52 -0
  23. package/dist/cli/system.d.ts +6 -0
  24. package/dist/cli/types.d.ts +38 -0
  25. package/dist/config/agent-mcps.d.ts +15 -0
  26. package/dist/config/constants.d.ts +14 -0
  27. package/dist/config/index.d.ts +4 -0
  28. package/dist/config/loader.d.ts +31 -0
  29. package/dist/config/schema.d.ts +220 -0
  30. package/dist/config/utils.d.ts +10 -0
  31. package/dist/hooks/auto-update-checker/cache.d.ts +6 -0
  32. package/dist/hooks/auto-update-checker/checker.d.ts +28 -0
  33. package/dist/hooks/auto-update-checker/constants.d.ts +11 -0
  34. package/dist/hooks/auto-update-checker/index.d.ts +17 -0
  35. package/dist/hooks/auto-update-checker/types.d.ts +23 -0
  36. package/dist/hooks/chat-headers.d.ts +16 -0
  37. package/dist/hooks/delegate-task-retry/guidance.d.ts +2 -0
  38. package/dist/hooks/delegate-task-retry/hook.d.ts +8 -0
  39. package/dist/hooks/delegate-task-retry/index.d.ts +4 -0
  40. package/dist/hooks/delegate-task-retry/patterns.d.ts +11 -0
  41. package/dist/hooks/foreground-fallback/index.d.ts +72 -0
  42. package/dist/hooks/index.d.ts +8 -0
  43. package/dist/hooks/json-error-recovery/hook.d.ts +18 -0
  44. package/dist/hooks/json-error-recovery/index.d.ts +1 -0
  45. package/dist/hooks/phase-reminder/index.d.ts +26 -0
  46. package/dist/hooks/post-read-nudge/index.d.ts +18 -0
  47. package/dist/index.d.ts +5 -0
  48. package/dist/index.js +34409 -0
  49. package/dist/mcp/context7.d.ts +6 -0
  50. package/dist/mcp/grep-app.d.ts +6 -0
  51. package/dist/mcp/index.d.ts +6 -0
  52. package/dist/mcp/types.d.ts +12 -0
  53. package/dist/mcp/websearch.d.ts +6 -0
  54. package/dist/tools/ast-grep/cli.d.ts +15 -0
  55. package/dist/tools/ast-grep/constants.d.ts +25 -0
  56. package/dist/tools/ast-grep/downloader.d.ts +5 -0
  57. package/dist/tools/ast-grep/index.d.ts +10 -0
  58. package/dist/tools/ast-grep/tools.d.ts +3 -0
  59. package/dist/tools/ast-grep/types.d.ts +30 -0
  60. package/dist/tools/ast-grep/utils.d.ts +4 -0
  61. package/dist/tools/background.d.ts +13 -0
  62. package/dist/tools/index.d.ts +3 -0
  63. package/dist/tools/lsp/client.d.ts +42 -0
  64. package/dist/tools/lsp/config-store.d.ts +29 -0
  65. package/dist/tools/lsp/config.d.ts +4 -0
  66. package/dist/tools/lsp/constants.d.ts +24 -0
  67. package/dist/tools/lsp/index.d.ts +4 -0
  68. package/dist/tools/lsp/tools.d.ts +5 -0
  69. package/dist/tools/lsp/types.d.ts +35 -0
  70. package/dist/tools/lsp/utils.d.ts +34 -0
  71. package/dist/utils/agent-variant.d.ts +47 -0
  72. package/dist/utils/env.d.ts +1 -0
  73. package/dist/utils/index.d.ts +7 -0
  74. package/dist/utils/internal-initiator.d.ts +6 -0
  75. package/dist/utils/logger.d.ts +1 -0
  76. package/dist/utils/polling.d.ts +21 -0
  77. package/dist/utils/tmux.d.ts +32 -0
  78. package/dist/utils/zip-extractor.d.ts +1 -0
  79. package/oh-my-openagent-slim.schema.json +448 -0
  80. package/package.json +72 -0
  81. package/src/skills/cartography/README.md +57 -0
  82. package/src/skills/cartography/SKILL.md +160 -0
  83. package/src/skills/cartography/scripts/cartographer.py +456 -0
  84. package/src/skills/cartography/scripts/test_cartographer.py +87 -0
@@ -0,0 +1,448 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "preset": {
6
+ "type": "string"
7
+ },
8
+ "setDefaultAgent": {
9
+ "type": "boolean"
10
+ },
11
+ "scoringEngineVersion": {
12
+ "type": "string",
13
+ "enum": [
14
+ "v1",
15
+ "v2-shadow",
16
+ "v2"
17
+ ]
18
+ },
19
+ "balanceProviderUsage": {
20
+ "type": "boolean"
21
+ },
22
+ "manualPlan": {
23
+ "type": "object",
24
+ "properties": {
25
+ "Ra": {
26
+ "type": "object",
27
+ "properties": {
28
+ "primary": {
29
+ "type": "string",
30
+ "pattern": "^[^/\\s]+\\/[^\\s]+$"
31
+ },
32
+ "fallback1": {
33
+ "type": "string",
34
+ "pattern": "^[^/\\s]+\\/[^\\s]+$"
35
+ },
36
+ "fallback2": {
37
+ "type": "string",
38
+ "pattern": "^[^/\\s]+\\/[^\\s]+$"
39
+ },
40
+ "fallback3": {
41
+ "type": "string",
42
+ "pattern": "^[^/\\s]+\\/[^\\s]+$"
43
+ }
44
+ },
45
+ "required": [
46
+ "primary",
47
+ "fallback1",
48
+ "fallback2",
49
+ "fallback3"
50
+ ]
51
+ },
52
+ "Oracle": {
53
+ "type": "object",
54
+ "properties": {
55
+ "primary": {
56
+ "type": "string",
57
+ "pattern": "^[^/\\s]+\\/[^\\s]+$"
58
+ },
59
+ "fallback1": {
60
+ "type": "string",
61
+ "pattern": "^[^/\\s]+\\/[^\\s]+$"
62
+ },
63
+ "fallback2": {
64
+ "type": "string",
65
+ "pattern": "^[^/\\s]+\\/[^\\s]+$"
66
+ },
67
+ "fallback3": {
68
+ "type": "string",
69
+ "pattern": "^[^/\\s]+\\/[^\\s]+$"
70
+ }
71
+ },
72
+ "required": [
73
+ "primary",
74
+ "fallback1",
75
+ "fallback2",
76
+ "fallback3"
77
+ ]
78
+ },
79
+ "Bastet": {
80
+ "type": "object",
81
+ "properties": {
82
+ "primary": {
83
+ "type": "string",
84
+ "pattern": "^[^/\\s]+\\/[^\\s]+$"
85
+ },
86
+ "fallback1": {
87
+ "type": "string",
88
+ "pattern": "^[^/\\s]+\\/[^\\s]+$"
89
+ },
90
+ "fallback2": {
91
+ "type": "string",
92
+ "pattern": "^[^/\\s]+\\/[^\\s]+$"
93
+ },
94
+ "fallback3": {
95
+ "type": "string",
96
+ "pattern": "^[^/\\s]+\\/[^\\s]+$"
97
+ }
98
+ },
99
+ "required": [
100
+ "primary",
101
+ "fallback1",
102
+ "fallback2",
103
+ "fallback3"
104
+ ]
105
+ },
106
+ "Horus": {
107
+ "type": "object",
108
+ "properties": {
109
+ "primary": {
110
+ "type": "string",
111
+ "pattern": "^[^/\\s]+\\/[^\\s]+$"
112
+ },
113
+ "fallback1": {
114
+ "type": "string",
115
+ "pattern": "^[^/\\s]+\\/[^\\s]+$"
116
+ },
117
+ "fallback2": {
118
+ "type": "string",
119
+ "pattern": "^[^/\\s]+\\/[^\\s]+$"
120
+ },
121
+ "fallback3": {
122
+ "type": "string",
123
+ "pattern": "^[^/\\s]+\\/[^\\s]+$"
124
+ }
125
+ },
126
+ "required": [
127
+ "primary",
128
+ "fallback1",
129
+ "fallback2",
130
+ "fallback3"
131
+ ]
132
+ },
133
+ "Thoth": {
134
+ "type": "object",
135
+ "properties": {
136
+ "primary": {
137
+ "type": "string",
138
+ "pattern": "^[^/\\s]+\\/[^\\s]+$"
139
+ },
140
+ "fallback1": {
141
+ "type": "string",
142
+ "pattern": "^[^/\\s]+\\/[^\\s]+$"
143
+ },
144
+ "fallback2": {
145
+ "type": "string",
146
+ "pattern": "^[^/\\s]+\\/[^\\s]+$"
147
+ },
148
+ "fallback3": {
149
+ "type": "string",
150
+ "pattern": "^[^/\\s]+\\/[^\\s]+$"
151
+ }
152
+ },
153
+ "required": [
154
+ "primary",
155
+ "fallback1",
156
+ "fallback2",
157
+ "fallback3"
158
+ ]
159
+ },
160
+ "Anubis": {
161
+ "type": "object",
162
+ "properties": {
163
+ "primary": {
164
+ "type": "string",
165
+ "pattern": "^[^/\\s]+\\/[^\\s]+$"
166
+ },
167
+ "fallback1": {
168
+ "type": "string",
169
+ "pattern": "^[^/\\s]+\\/[^\\s]+$"
170
+ },
171
+ "fallback2": {
172
+ "type": "string",
173
+ "pattern": "^[^/\\s]+\\/[^\\s]+$"
174
+ },
175
+ "fallback3": {
176
+ "type": "string",
177
+ "pattern": "^[^/\\s]+\\/[^\\s]+$"
178
+ }
179
+ },
180
+ "required": [
181
+ "primary",
182
+ "fallback1",
183
+ "fallback2",
184
+ "fallback3"
185
+ ]
186
+ }
187
+ },
188
+ "required": [
189
+ "Ra",
190
+ "Oracle",
191
+ "Bastet",
192
+ "Horus",
193
+ "Thoth",
194
+ "Anubis"
195
+ ],
196
+ "additionalProperties": false
197
+ },
198
+ "presets": {
199
+ "type": "object",
200
+ "propertyNames": {
201
+ "type": "string"
202
+ },
203
+ "additionalProperties": {
204
+ "type": "object",
205
+ "propertyNames": {
206
+ "type": "string"
207
+ },
208
+ "additionalProperties": {
209
+ "type": "object",
210
+ "properties": {
211
+ "model": {
212
+ "anyOf": [
213
+ {
214
+ "type": "string"
215
+ },
216
+ {
217
+ "type": "array",
218
+ "items": {
219
+ "anyOf": [
220
+ {
221
+ "type": "string"
222
+ },
223
+ {
224
+ "type": "object",
225
+ "properties": {
226
+ "id": {
227
+ "type": "string"
228
+ },
229
+ "variant": {
230
+ "type": "string"
231
+ }
232
+ },
233
+ "required": [
234
+ "id"
235
+ ]
236
+ }
237
+ ]
238
+ }
239
+ }
240
+ ]
241
+ },
242
+ "temperature": {
243
+ "type": "number",
244
+ "minimum": 0,
245
+ "maximum": 2
246
+ },
247
+ "variant": {
248
+ "type": "string"
249
+ },
250
+ "skills": {
251
+ "type": "array",
252
+ "items": {
253
+ "type": "string"
254
+ }
255
+ },
256
+ "mcps": {
257
+ "type": "array",
258
+ "items": {
259
+ "type": "string"
260
+ }
261
+ }
262
+ }
263
+ }
264
+ }
265
+ },
266
+ "agents": {
267
+ "type": "object",
268
+ "propertyNames": {
269
+ "type": "string"
270
+ },
271
+ "additionalProperties": {
272
+ "type": "object",
273
+ "properties": {
274
+ "model": {
275
+ "anyOf": [
276
+ {
277
+ "type": "string"
278
+ },
279
+ {
280
+ "type": "array",
281
+ "items": {
282
+ "anyOf": [
283
+ {
284
+ "type": "string"
285
+ },
286
+ {
287
+ "type": "object",
288
+ "properties": {
289
+ "id": {
290
+ "type": "string"
291
+ },
292
+ "variant": {
293
+ "type": "string"
294
+ }
295
+ },
296
+ "required": [
297
+ "id"
298
+ ]
299
+ }
300
+ ]
301
+ }
302
+ }
303
+ ]
304
+ },
305
+ "temperature": {
306
+ "type": "number",
307
+ "minimum": 0,
308
+ "maximum": 2
309
+ },
310
+ "variant": {
311
+ "type": "string"
312
+ },
313
+ "skills": {
314
+ "type": "array",
315
+ "items": {
316
+ "type": "string"
317
+ }
318
+ },
319
+ "mcps": {
320
+ "type": "array",
321
+ "items": {
322
+ "type": "string"
323
+ }
324
+ }
325
+ }
326
+ }
327
+ },
328
+ "disabled_mcps": {
329
+ "type": "array",
330
+ "items": {
331
+ "type": "string"
332
+ }
333
+ },
334
+ "tmux": {
335
+ "type": "object",
336
+ "properties": {
337
+ "enabled": {
338
+ "default": false,
339
+ "type": "boolean"
340
+ },
341
+ "layout": {
342
+ "default": "main-vertical",
343
+ "type": "string",
344
+ "enum": [
345
+ "main-horizontal",
346
+ "main-vertical",
347
+ "tiled",
348
+ "even-horizontal",
349
+ "even-vertical"
350
+ ]
351
+ },
352
+ "main_pane_size": {
353
+ "default": 60,
354
+ "type": "number",
355
+ "minimum": 20,
356
+ "maximum": 80
357
+ }
358
+ }
359
+ },
360
+ "background": {
361
+ "type": "object",
362
+ "properties": {
363
+ "maxConcurrentStarts": {
364
+ "default": 10,
365
+ "type": "number",
366
+ "minimum": 1,
367
+ "maximum": 50
368
+ }
369
+ }
370
+ },
371
+ "fallback": {
372
+ "type": "object",
373
+ "properties": {
374
+ "enabled": {
375
+ "default": true,
376
+ "type": "boolean"
377
+ },
378
+ "timeoutMs": {
379
+ "default": 15000,
380
+ "type": "number",
381
+ "minimum": 0
382
+ },
383
+ "retryDelayMs": {
384
+ "default": 500,
385
+ "type": "number",
386
+ "minimum": 0
387
+ },
388
+ "chains": {
389
+ "default": {},
390
+ "type": "object",
391
+ "properties": {
392
+ "Ra": {
393
+ "minItems": 1,
394
+ "type": "array",
395
+ "items": {
396
+ "type": "string"
397
+ }
398
+ },
399
+ "Oracle": {
400
+ "minItems": 1,
401
+ "type": "array",
402
+ "items": {
403
+ "type": "string"
404
+ }
405
+ },
406
+ "Bastet": {
407
+ "minItems": 1,
408
+ "type": "array",
409
+ "items": {
410
+ "type": "string"
411
+ }
412
+ },
413
+ "Horus": {
414
+ "minItems": 1,
415
+ "type": "array",
416
+ "items": {
417
+ "type": "string"
418
+ }
419
+ },
420
+ "Thoth": {
421
+ "minItems": 1,
422
+ "type": "array",
423
+ "items": {
424
+ "type": "string"
425
+ }
426
+ },
427
+ "Anubis": {
428
+ "minItems": 1,
429
+ "type": "array",
430
+ "items": {
431
+ "type": "string"
432
+ }
433
+ }
434
+ },
435
+ "additionalProperties": {
436
+ "minItems": 1,
437
+ "type": "array",
438
+ "items": {
439
+ "type": "string"
440
+ }
441
+ }
442
+ }
443
+ }
444
+ }
445
+ },
446
+ "title": "oh-my-opencode-slim",
447
+ "description": "Configuration schema for oh-my-opencode-slim plugin for OpenCode"
448
+ }
package/package.json ADDED
@@ -0,0 +1,72 @@
1
+ {
2
+ "name": "@a4hgehad/oh-my-openagent-slim",
3
+ "version": "0.8.4",
4
+ "description": "Lightweight agent orchestration plugin for OpenCode - Egyptian mythology themed fork",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "bin": {
8
+ "oh-my-openagent-slim": "./dist/cli/index.js"
9
+ },
10
+ "type": "module",
11
+ "license": "MIT",
12
+ "keywords": [
13
+ "opencode",
14
+ "opencode-plugin",
15
+ "ai",
16
+ "agents",
17
+ "orchestration",
18
+ "llm",
19
+ "claude",
20
+ "gpt",
21
+ "gemini"
22
+ ],
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "https://github.com/3r3bu5/oh-my-openagent-slim"
26
+ },
27
+ "bugs": {
28
+ "url": "https://github.com/3r3bu5/oh-my-openagent-slim/issues"
29
+ },
30
+ "homepage": "https://github.com/3r3bu5/oh-my-openagent-slim#readme",
31
+ "files": [
32
+ "dist",
33
+ "src/skills",
34
+ "oh-my-openagent-slim.schema.json",
35
+ "README.md",
36
+ "LICENSE"
37
+ ],
38
+ "scripts": {
39
+ "build": "bun build src/index.ts --outdir dist --target bun --format esm && bun build src/cli/index.ts --outdir dist/cli --target bun --format esm && tsc --emitDeclarationOnly && bun run generate-schema",
40
+ "generate-schema": "bun run scripts/generate-schema.ts",
41
+ "typecheck": "tsc --noEmit",
42
+ "test": "bun test",
43
+ "lint": "biome lint .",
44
+ "format": "biome format . --write",
45
+ "check": "biome check --write .",
46
+ "check:ci": "biome check .",
47
+ "dev": "bun run build && opencode",
48
+ "prepublishOnly": "bun run build",
49
+ "release:patch": "npm version patch && git push --follow-tags && npm publish",
50
+ "release:minor": "npm version minor && git push --follow-tags && npm publish",
51
+ "release:major": "npm version major && git push --follow-tags && npm publish"
52
+ },
53
+ "dependencies": {
54
+ "@ast-grep/cli": "^0.40.0",
55
+ "@modelcontextprotocol/sdk": "^1.26.0",
56
+ "@opencode-ai/plugin": "^1.2.6",
57
+ "@opencode-ai/sdk": "^1.2.6",
58
+ "vscode-jsonrpc": "^8.2.0",
59
+ "vscode-languageserver-protocol": "^3.17.5",
60
+ "which": "^6.0.0",
61
+ "zod": "^4.3.6"
62
+ },
63
+ "devDependencies": {
64
+ "@biomejs/biome": "2.4.2",
65
+ "@types/which": "^3.0.4",
66
+ "bun-types": "1.3.9",
67
+ "typescript": "^5.9.3"
68
+ },
69
+ "trustedDependencies": [
70
+ "@ast-grep/cli"
71
+ ]
72
+ }
@@ -0,0 +1,57 @@
1
+ # Cartography Skill
2
+
3
+ Repository understanding and hierarchical codemap generation.
4
+
5
+ ## Overview
6
+
7
+ Cartography helps orchestrators map and understand codebases by:
8
+
9
+ 1. Selecting relevant code/config files using LLM judgment
10
+ 2. Creating `.slim/cartography.json` for change tracking
11
+ 3. Generating empty `codemap.md` templates for explorers to fill in
12
+
13
+ ## Commands
14
+
15
+ ```bash
16
+ # Initialize mapping
17
+ python3 cartographer.py init --root /repo --include "src/**/*.ts" --exclude "node_modules/**"
18
+
19
+ # Check what changed
20
+ python3 cartographer.py changes --root /repo
21
+
22
+ # Update hashes
23
+ python3 cartographer.py update --root /repo
24
+ ```
25
+
26
+ ## Outputs
27
+
28
+ ### .slim/cartography.json
29
+
30
+ ```json
31
+ {
32
+ "metadata": {
33
+ "version": "1.0.0",
34
+ "last_run": "2026-01-25T19:00:00Z",
35
+ "include_patterns": ["src/**/*.ts"],
36
+ "exclude_patterns": ["node_modules/**"]
37
+ },
38
+ "file_hashes": {
39
+ "src/index.ts": "abc123..."
40
+ },
41
+ "folder_hashes": {
42
+ "src": "def456..."
43
+ }
44
+ }
45
+ ```
46
+
47
+ ### codemap.md (per folder)
48
+
49
+ Empty templates created in each folder for explorers to fill with:
50
+ - Responsibility
51
+ - Design patterns
52
+ - Data/control flow
53
+ - Integration points
54
+
55
+ ## Installation
56
+
57
+ Installed automatically via oh-my-opencode-slim installer when custom skills are enabled.