oh-my-opencode-slim 0.9.14 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/README.md +131 -56
  2. package/dist/agents/council.d.ts +7 -8
  3. package/dist/agents/orchestrator.d.ts +1 -0
  4. package/dist/background/background-manager.d.ts +20 -1
  5. package/dist/background/index.d.ts +1 -1
  6. package/dist/background/multiplexer-session-manager.d.ts +2 -0
  7. package/dist/cli/index.js +351 -13849
  8. package/dist/cli/types.d.ts +1 -2
  9. package/dist/config/constants.d.ts +3 -3
  10. package/dist/config/council-schema.d.ts +45 -69
  11. package/dist/config/index.d.ts +1 -1
  12. package/dist/config/schema.d.ts +52 -33
  13. package/dist/config/utils.d.ts +7 -0
  14. package/dist/council/council-manager.d.ts +6 -13
  15. package/dist/hooks/auto-update-checker/types.d.ts +1 -1
  16. package/dist/hooks/foreground-fallback/index.d.ts +1 -1
  17. package/dist/hooks/phase-reminder/index.d.ts +1 -1
  18. package/dist/hooks/todo-continuation/todo-hygiene.d.ts +0 -1
  19. package/dist/index.js +7339 -26210
  20. package/dist/interview/service.d.ts +1 -0
  21. package/dist/multiplexer/factory.d.ts +5 -1
  22. package/dist/multiplexer/index.d.ts +1 -0
  23. package/dist/multiplexer/session-manager.d.ts +46 -0
  24. package/dist/multiplexer/tmux/index.d.ts +3 -1
  25. package/dist/multiplexer/types.d.ts +3 -3
  26. package/dist/multiplexer/zellij/index.d.ts +1 -1
  27. package/dist/tools/ast-grep/index.d.ts +1 -1
  28. package/dist/tools/background.d.ts +1 -1
  29. package/dist/tools/council.d.ts +2 -1
  30. package/dist/tools/index.d.ts +0 -2
  31. package/dist/tools/lsp/types.d.ts +1 -1
  32. package/dist/utils/agent-variant.d.ts +15 -1
  33. package/dist/utils/subagent-depth.d.ts +35 -0
  34. package/dist/utils/tmux-debug-log.d.ts +2 -0
  35. package/oh-my-opencode-slim.schema.json +47 -50
  36. package/package.json +11 -10
  37. package/src/skills/{cartography → codemap}/README.md +11 -9
  38. package/src/skills/{cartography → codemap}/SKILL.md +21 -18
  39. package/src/skills/codemap/codemap.md +36 -0
  40. package/src/skills/codemap/scripts/codemap.mjs +483 -0
  41. package/src/skills/codemap/scripts/codemap.test.ts +129 -0
  42. package/src/skills/codemap.md +40 -0
  43. package/src/skills/simplify/README.md +19 -0
  44. package/src/skills/simplify/SKILL.md +138 -0
  45. package/src/skills/simplify/codemap.md +36 -0
  46. package/dist/background/tmux-session-manager.d.ts +0 -63
  47. package/dist/cli/chutes-selection.d.ts +0 -3
  48. package/dist/cli/dynamic-model-selection.d.ts +0 -14
  49. package/dist/cli/external-rankings.d.ts +0 -8
  50. package/dist/cli/model-selection.d.ts +0 -30
  51. package/dist/cli/opencode-models.d.ts +0 -18
  52. package/dist/cli/opencode-selection.d.ts +0 -3
  53. package/dist/cli/precedence-resolver.d.ts +0 -16
  54. package/dist/cli/scoring-v2/engine.d.ts +0 -4
  55. package/dist/cli/scoring-v2/features.d.ts +0 -3
  56. package/dist/cli/scoring-v2/index.d.ts +0 -4
  57. package/dist/cli/scoring-v2/types.d.ts +0 -17
  58. package/dist/cli/scoring-v2/weights.d.ts +0 -2
  59. package/dist/hooks/post-read-nudge/index.d.ts +0 -18
  60. package/dist/interview/store.d.ts +0 -9
  61. package/dist/tools/grep/cli.d.ts +0 -3
  62. package/dist/tools/grep/constants.d.ts +0 -18
  63. package/dist/tools/grep/downloader.d.ts +0 -3
  64. package/dist/tools/grep/index.d.ts +0 -5
  65. package/dist/tools/grep/tools.d.ts +0 -2
  66. package/dist/tools/grep/types.d.ts +0 -35
  67. package/dist/tools/grep/utils.d.ts +0 -2
  68. package/dist/tools/quota/api.d.ts +0 -5
  69. package/dist/tools/quota/command.d.ts +0 -1
  70. package/dist/tools/quota/index.d.ts +0 -21
  71. package/dist/tools/quota/types.d.ts +0 -41
  72. package/dist/utils/tmux.d.ts +0 -32
  73. package/src/skills/cartography/scripts/cartographer.py +0 -456
  74. package/src/skills/cartography/scripts/test_cartographer.py +0 -87
@@ -3,6 +3,7 @@ import type { InterviewConfig } from '../config';
3
3
  import type { InterviewAnswer, InterviewFileItem, InterviewListItem, InterviewRecord, InterviewState } from './types';
4
4
  export declare function createInterviewService(ctx: PluginInput, config?: InterviewConfig, deps?: {
5
5
  openBrowser?: (url: string) => void;
6
+ env?: NodeJS.ProcessEnv;
6
7
  }): {
7
8
  setBaseUrlResolver: (resolver: () => Promise<string>) => void;
8
9
  setStatePushCallback: (callback: (interviewId: string, state: InterviewState) => void) => void;
@@ -4,7 +4,11 @@
4
4
  import type { MultiplexerConfig } from '../config/schema';
5
5
  import type { Multiplexer } from './types';
6
6
  /**
7
- * Create or retrieve a multiplexer instance based on config
7
+ * Create a multiplexer instance based on config.
8
+ *
9
+ * Do not cache instances: tmux/zellij integrations may depend on
10
+ * per-process environment like TMUX_PANE/ZELLIJ, which should be captured
11
+ * fresh for each plugin context.
8
12
  */
9
13
  export declare function getMultiplexer(config: MultiplexerConfig): Multiplexer | null;
10
14
  /**
@@ -2,6 +2,7 @@
2
2
  * Multiplexer module exports
3
3
  */
4
4
  export { clearMultiplexerCache, getMultiplexer, startAvailabilityCheck, } from './factory';
5
+ export { MultiplexerSessionManager, TmuxSessionManager, } from './session-manager';
5
6
  export { TmuxMultiplexer } from './tmux';
6
7
  export type { Multiplexer, PaneResult } from './types';
7
8
  export { isServerRunning } from './types';
@@ -0,0 +1,46 @@
1
+ import type { PluginInput } from '@opencode-ai/plugin';
2
+ import type { MultiplexerConfig } from '../config/schema';
3
+ interface SessionEvent {
4
+ type: string;
5
+ properties?: {
6
+ info?: {
7
+ id?: string;
8
+ parentID?: string;
9
+ title?: string;
10
+ directory?: string;
11
+ };
12
+ sessionID?: string;
13
+ status?: {
14
+ type: string;
15
+ };
16
+ };
17
+ }
18
+ /**
19
+ * Tracks child sessions and spawns/closes multiplexer panes for them.
20
+ *
21
+ * Uses session.status events for completion detection instead of polling,
22
+ * with polling kept as a fallback for reliability.
23
+ */
24
+ export declare class MultiplexerSessionManager {
25
+ private client;
26
+ private serverUrl;
27
+ private directory;
28
+ private multiplexer;
29
+ private sessions;
30
+ private pollInterval?;
31
+ private enabled;
32
+ constructor(ctx: PluginInput, config: MultiplexerConfig);
33
+ onSessionCreated(event: SessionEvent): Promise<void>;
34
+ onSessionStatus(event: SessionEvent): Promise<void>;
35
+ onSessionDeleted(event: SessionEvent): Promise<void>;
36
+ private startPolling;
37
+ private stopPolling;
38
+ private pollSessions;
39
+ private closeSession;
40
+ cleanup(): Promise<void>;
41
+ }
42
+ /**
43
+ * @deprecated Use MultiplexerSessionManager instead
44
+ */
45
+ export declare const TmuxSessionManager: typeof MultiplexerSessionManager;
46
+ export {};
@@ -9,12 +9,14 @@ export declare class TmuxMultiplexer implements Multiplexer {
9
9
  private hasChecked;
10
10
  private storedLayout;
11
11
  private storedMainPaneSize;
12
+ private targetPane;
12
13
  constructor(layout?: MultiplexerLayout, mainPaneSize?: number);
13
14
  isAvailable(): Promise<boolean>;
14
15
  isInsideSession(): boolean;
15
- spawnPane(sessionId: string, description: string, serverUrl: string): Promise<PaneResult>;
16
+ spawnPane(sessionId: string, description: string, serverUrl: string, directory: string): Promise<PaneResult>;
16
17
  closePane(paneId: string): Promise<boolean>;
17
18
  applyLayout(layout: MultiplexerLayout, mainPaneSize: number): Promise<void>;
18
19
  private getBinary;
20
+ private targetArgs;
19
21
  private findBinary;
20
22
  }
@@ -2,7 +2,7 @@
2
2
  * Multiplexer abstraction layer
3
3
  *
4
4
  * Provides a unified interface for terminal multiplexers (tmux, zellij, etc.)
5
- * to spawn and manage panes for background task visualization.
5
+ * to spawn and manage panes for child agent sessions.
6
6
  */
7
7
  import type { MultiplexerConfig, MultiplexerLayout } from '../config/schema';
8
8
  export interface PaneResult {
@@ -28,9 +28,9 @@ export interface Multiplexer {
28
28
  * @param sessionId - The OpenCode session ID to attach to
29
29
  * @param description - Human-readable description for the pane
30
30
  * @param serverUrl - The OpenCode server URL to attach to
31
- * @returns PaneResult with pane ID for later cleanup
31
+ * @param directory - The project directory to attach from
32
32
  */
33
- spawnPane(sessionId: string, description: string, serverUrl: string): Promise<PaneResult>;
33
+ spawnPane(sessionId: string, description: string, serverUrl: string, directory: string): Promise<PaneResult>;
34
34
  /**
35
35
  * Close a pane by its ID
36
36
  * @param paneId - The pane ID returned by spawnPane
@@ -18,7 +18,7 @@ export declare class ZellijMultiplexer implements Multiplexer {
18
18
  constructor(layout?: MultiplexerLayout, mainPaneSize?: number);
19
19
  isAvailable(): Promise<boolean>;
20
20
  isInsideSession(): boolean;
21
- spawnPane(sessionId: string, description: string, serverUrl: string): Promise<PaneResult>;
21
+ spawnPane(sessionId: string, description: string, serverUrl: string, directory: string): Promise<PaneResult>;
22
22
  private createPaneInAgentTab;
23
23
  private runInPane;
24
24
  private ensureAgentTab;
@@ -1,10 +1,10 @@
1
1
  import type { ToolDefinition } from '@opencode-ai/plugin';
2
2
  import { ast_grep_replace, ast_grep_search } from './tools';
3
3
  export declare const builtinTools: Record<string, ToolDefinition>;
4
- export { ast_grep_search, ast_grep_replace };
5
4
  export { ensureCliAvailable, getAstGrepPath, isCliAvailable, startBackgroundInit, } from './cli';
6
5
  export type { EnvironmentCheckResult } from './constants';
7
6
  export { checkEnvironment, formatEnvironmentCheck } from './constants';
8
7
  export { ensureAstGrepBinary, getCacheDir, getCachedBinaryPath, } from './downloader';
9
8
  export type { CliLanguage, CliMatch, SgResult } from './types';
10
9
  export { CLI_LANGUAGES } from './types';
10
+ export { ast_grep_replace, ast_grep_search };
@@ -8,6 +8,6 @@ import type { MultiplexerConfig } from '../config/schema';
8
8
  * @param manager - Background task manager for launching and tracking tasks
9
9
  * @param _multiplexerConfig - Optional multiplexer configuration for session management
10
10
  * @param _pluginConfig - Optional plugin configuration for agent variants
11
- * @returns Object containing background_task, background_output, and background_cancel tools
11
+ * @returns Object containing background_task, background_output, background_cancel, and ask_orchestrator tools
12
12
  */
13
13
  export declare function createBackgroundTools(_ctx: PluginInput, manager: BackgroundTaskManager, _multiplexerConfig?: MultiplexerConfig, _pluginConfig?: PluginConfig): Record<string, ToolDefinition>;
@@ -4,6 +4,7 @@ import type { CouncilManager } from '../council/council-manager';
4
4
  * Creates the council_session tool for multi-LLM orchestration.
5
5
  *
6
6
  * This tool triggers a full council session: parallel councillors →
7
- * master synthesis. Available to the council agent.
7
+ * formatted results returned to the council agent for synthesis.
8
+ * Available to the council agent.
8
9
  */
9
10
  export declare function createCouncilTool(_ctx: PluginInput, councilManager: CouncilManager): Record<string, ToolDefinition>;
@@ -1,5 +1,3 @@
1
1
  export { ast_grep_replace, ast_grep_search } from './ast-grep';
2
- export { createBackgroundTools } from './background';
3
2
  export { createCouncilTool } from './council';
4
- export { lsp_diagnostics, lsp_find_references, lsp_goto_definition, lsp_rename, lspManager, setUserLspConfig, } from './lsp';
5
3
  export { createWebfetchTool } from './smartfetch';
@@ -32,7 +32,7 @@ export type ServerLookupResult = {
32
32
  server: ResolvedServer;
33
33
  installHint: string;
34
34
  };
35
- export type { Position, Range, Location, LocationLink, Diagnostic, TextDocumentIdentifier, VersionedTextDocumentIdentifier, TextEdit, TextDocumentEdit, CreateFile, RenameFile, DeleteFile, WorkspaceEdit, SymbolInfo, DocumentSymbol, };
35
+ export type { CreateFile, DeleteFile, Diagnostic, DocumentSymbol, Location, LocationLink, Position, Range, RenameFile, SymbolInfo, TextDocumentEdit, TextDocumentIdentifier, TextEdit, VersionedTextDocumentIdentifier, WorkspaceEdit, };
36
36
  export interface DocumentDiagnosticReportFull {
37
37
  kind: 'full';
38
38
  items: Diagnostic[];
@@ -1,4 +1,4 @@
1
- import type { PluginConfig } from '../config';
1
+ import { type PluginConfig } from '../config';
2
2
  /**
3
3
  * Normalizes an agent name by trimming whitespace and removing the optional @ prefix.
4
4
  *
@@ -27,6 +27,20 @@ export declare function normalizeAgentName(agentName: string): string;
27
27
  * resolveAgentVariant(config, "@oracle") // returns "high" if configured
28
28
  */
29
29
  export declare function resolveAgentVariant(config: PluginConfig | undefined, agentName: string): string | undefined;
30
+ /**
31
+ * Resolve a runtime-provided agent name to an internal agent name.
32
+ *
33
+ * Supports:
34
+ * - internal names (e.g. "oracle")
35
+ * - @-prefixed names (e.g. "@oracle")
36
+ * - displayName aliases (e.g. "advisor" -> "oracle")
37
+ */
38
+ export declare function resolveRuntimeAgentName(config: PluginConfig | undefined, agentName: string): string;
39
+ /**
40
+ * Rewrites user-facing display-name mentions (e.g. @advisor) into internal
41
+ * agent mentions (e.g. @oracle) for runtime routing.
42
+ */
43
+ export declare function rewriteDisplayNameMentions(config: PluginConfig | undefined, text: string): string;
30
44
  /**
31
45
  * Applies a variant to a request body if the body doesn't already have one.
32
46
  *
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Tracks subagent spawn depth to prevent excessive nesting.
3
+ *
4
+ * Depth 0 = root session (user's main conversation)
5
+ * Depth 1 = agent spawned by root (e.g., explorer, council)
6
+ * Depth 2 = agent spawned by depth-1 agent (e.g., councillor spawned by council)
7
+ * Depth 3 = agent spawned by depth-2 agent (max depth by default)
8
+ *
9
+ * When max depth is exceeded, the spawn is blocked.
10
+ */
11
+ export declare class SubagentDepthTracker {
12
+ private depthBySession;
13
+ private readonly _maxDepth;
14
+ constructor(maxDepth?: number);
15
+ /** Maximum allowed depth. */
16
+ get maxDepth(): number;
17
+ /**
18
+ * Get the current depth of a session.
19
+ * Root sessions (not tracked) have depth 0.
20
+ */
21
+ getDepth(sessionId: string): number;
22
+ /**
23
+ * Register a child session and check if the spawn is allowed.
24
+ * @returns true if allowed, false if max depth exceeded
25
+ */
26
+ registerChild(parentSessionId: string, childSessionId: string): boolean;
27
+ /**
28
+ * Clean up session tracking when a session is deleted.
29
+ */
30
+ cleanup(sessionId: string): void;
31
+ /**
32
+ * Clean up all tracking data.
33
+ */
34
+ cleanupAll(): void;
35
+ }
@@ -0,0 +1,2 @@
1
+ export declare function logTmuxDebug(event: string, data?: unknown): void;
2
+ export declare function getTmuxDebugLogPath(): string;
@@ -19,6 +19,10 @@
19
19
  "balanceProviderUsage": {
20
20
  "type": "boolean"
21
21
  },
22
+ "showStartupToast": {
23
+ "description": "Show the startup activation toast when OpenCode starts. Defaults to true.",
24
+ "type": "boolean"
25
+ },
22
26
  "manualPlan": {
23
27
  "type": "object",
24
28
  "properties": {
@@ -214,6 +218,7 @@
214
218
  "type": "string"
215
219
  },
216
220
  {
221
+ "minItems": 1,
217
222
  "type": "array",
218
223
  "items": {
219
224
  "anyOf": [
@@ -259,14 +264,27 @@
259
264
  "type": "string"
260
265
  }
261
266
  },
267
+ "prompt": {
268
+ "type": "string",
269
+ "minLength": 1
270
+ },
271
+ "orchestratorPrompt": {
272
+ "type": "string",
273
+ "minLength": 1
274
+ },
262
275
  "options": {
263
276
  "type": "object",
264
277
  "propertyNames": {
265
278
  "type": "string"
266
279
  },
267
280
  "additionalProperties": {}
281
+ },
282
+ "displayName": {
283
+ "type": "string",
284
+ "minLength": 1
268
285
  }
269
- }
286
+ },
287
+ "additionalProperties": false
270
288
  }
271
289
  }
272
290
  },
@@ -284,6 +302,7 @@
284
302
  "type": "string"
285
303
  },
286
304
  {
305
+ "minItems": 1,
287
306
  "type": "array",
288
307
  "items": {
289
308
  "anyOf": [
@@ -329,18 +348,31 @@
329
348
  "type": "string"
330
349
  }
331
350
  },
351
+ "prompt": {
352
+ "type": "string",
353
+ "minLength": 1
354
+ },
355
+ "orchestratorPrompt": {
356
+ "type": "string",
357
+ "minLength": 1
358
+ },
332
359
  "options": {
333
360
  "type": "object",
334
361
  "propertyNames": {
335
362
  "type": "string"
336
363
  },
337
364
  "additionalProperties": {}
365
+ },
366
+ "displayName": {
367
+ "type": "string",
368
+ "minLength": 1
338
369
  }
339
- }
370
+ },
371
+ "additionalProperties": false
340
372
  }
341
373
  },
342
374
  "disabled_agents": {
343
- "description": "Agent names to disable completely. Disabled agents are not instantiated and cannot be delegated to. Orchestrator and council internal agents (councillor, council-master) cannot be disabled. By default, 'observer' is disabled. Remove it from this list and configure a vision-capable model to enable.",
375
+ "description": "Agent names to disable completely. Disabled agents are not instantiated and cannot be delegated to. Orchestrator and council internal agents (councillor) cannot be disabled. By default, 'observer' is disabled. Remove it from this list and configure a vision-capable model to enable.",
344
376
  "type": "array",
345
377
  "items": {
346
378
  "type": "string"
@@ -423,17 +455,6 @@
423
455
  }
424
456
  }
425
457
  },
426
- "background": {
427
- "type": "object",
428
- "properties": {
429
- "maxConcurrentStarts": {
430
- "default": 10,
431
- "type": "number",
432
- "minimum": 1,
433
- "maximum": 50
434
- }
435
- }
436
- },
437
458
  "interview": {
438
459
  "type": "object",
439
460
  "properties": {
@@ -450,6 +471,7 @@
450
471
  },
451
472
  "autoOpenBrowser": {
452
473
  "default": true,
474
+ "description": "Automatically open the interview UI in your default browser during interactive runs. Disabled automatically in tests and CI.",
453
475
  "type": "boolean"
454
476
  },
455
477
  "port": {
@@ -577,26 +599,6 @@
577
599
  "council": {
578
600
  "type": "object",
579
601
  "properties": {
580
- "master": {
581
- "type": "object",
582
- "properties": {
583
- "model": {
584
- "type": "string",
585
- "pattern": "^[^/\\s]+\\/[^\\s]+$",
586
- "description": "Model ID for the council master (e.g. \"anthropic/claude-opus-4-6\")"
587
- },
588
- "variant": {
589
- "type": "string"
590
- },
591
- "prompt": {
592
- "description": "Optional role/guidance injected into the master synthesis prompt",
593
- "type": "string"
594
- }
595
- },
596
- "required": [
597
- "model"
598
- ]
599
- },
600
602
  "presets": {
601
603
  "type": "object",
602
604
  "propertyNames": {
@@ -616,12 +618,7 @@
616
618
  }
617
619
  }
618
620
  },
619
- "master_timeout": {
620
- "default": 300000,
621
- "type": "number",
622
- "minimum": 0
623
- },
624
- "councillors_timeout": {
621
+ "timeout": {
625
622
  "default": 180000,
626
623
  "type": "number",
627
624
  "minimum": 0
@@ -630,14 +627,6 @@
630
627
  "default": "default",
631
628
  "type": "string"
632
629
  },
633
- "master_fallback": {
634
- "description": "Fallback models for the council master. Tried in order if the primary model fails. Example: [\"anthropic/claude-sonnet-4-6\", \"openai/gpt-5.4\"]",
635
- "type": "array",
636
- "items": {
637
- "type": "string",
638
- "pattern": "^[^/\\s]+\\/[^\\s]+$"
639
- }
640
- },
641
630
  "councillor_execution_mode": {
642
631
  "default": "parallel",
643
632
  "description": "Execution mode for councillors. \"serial\" runs them one at a time (required for single-model systems). \"parallel\" runs them concurrently (default, faster for multi-model systems).",
@@ -649,14 +638,22 @@
649
638
  },
650
639
  "councillor_retries": {
651
640
  "default": 3,
652
- "description": "Number of retry attempts for councillors and master that return empty responses (e.g. due to provider rate limiting). Default: 3 retries.",
641
+ "description": "Number of retry attempts for councillors that return empty responses (e.g. due to provider rate limiting). Default: 3 retries.",
653
642
  "type": "integer",
654
643
  "minimum": 0,
655
644
  "maximum": 5
645
+ },
646
+ "master": {
647
+ "description": "DEPRECATED — ignored. Council agent synthesizes directly."
648
+ },
649
+ "master_timeout": {
650
+ "description": "DEPRECATED — ignored. Use \"timeout\" instead."
651
+ },
652
+ "master_fallback": {
653
+ "description": "DEPRECATED — ignored. No separate master session."
656
654
  }
657
655
  },
658
656
  "required": [
659
- "master",
660
657
  "presets"
661
658
  ]
662
659
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oh-my-opencode-slim",
3
- "version": "0.9.14",
3
+ "version": "1.0.0",
4
4
  "description": "Lightweight agent orchestration plugin for OpenCode - a slimmed-down fork of oh-my-opencode",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -36,14 +36,16 @@
36
36
  "LICENSE"
37
37
  ],
38
38
  "scripts": {
39
- "build:plugin": "bun build src/index.ts --outdir dist --target node --format esm --external @ast-grep/napi --external @opencode-ai/plugin --external @opencode-ai/sdk --external jsdom",
40
- "build:cli": "bun build src/cli/index.ts --outdir dist/cli --target node --format esm --external @ast-grep/napi --external @opencode-ai/plugin --external @opencode-ai/sdk --external jsdom",
39
+ "build:plugin": "bun build src/index.ts --outdir dist --target node --format esm --external @ast-grep/napi --external @opencode-ai/plugin --external @opencode-ai/sdk --external jsdom --external zod",
40
+ "build:cli": "bun build src/cli/index.ts --outdir dist/cli --target node --format esm --external @ast-grep/napi --external @opencode-ai/plugin --external @opencode-ai/sdk --external jsdom --external zod",
41
41
  "build": "bun run build:plugin && bun run build:cli && tsc --emitDeclarationOnly && bun run generate-schema",
42
42
  "prepare": "bun run build",
43
43
  "contributors:add": "all-contributors add",
44
44
  "contributors:check": "all-contributors check",
45
45
  "contributors:generate": "all-contributors generate",
46
46
  "generate-schema": "bun run scripts/generate-schema.ts",
47
+ "verify:release": "bun run scripts/verify-release-artifact.ts",
48
+ "verify:host-smoke": "bun run scripts/verify-opencode-host-smoke.ts",
47
49
  "typecheck": "tsc --noEmit",
48
50
  "test": "bun test",
49
51
  "lint": "biome lint .",
@@ -64,21 +66,20 @@
64
66
  "@opencode-ai/sdk": "^1.3.17",
65
67
  "jsdom": "^26.1.0",
66
68
  "lru-cache": "^11.3.3",
67
- "turndown": "^7.2.4",
68
- "vscode-jsonrpc": "^8.2.1",
69
- "vscode-languageserver-protocol": "^3.17.5",
70
- "which": "^6.0.1",
71
- "zod": "^4.3.6"
69
+ "turndown": "^7.2.4"
72
70
  },
73
71
  "devDependencies": {
74
72
  "@biomejs/biome": "2.4.11",
75
73
  "@types/jsdom": "^21.1.7",
76
74
  "@types/node": "^24.6.1",
77
75
  "@types/turndown": "^5.0.6",
78
- "@types/which": "^3.0.4",
79
76
  "all-contributors-cli": "^6.26.1",
80
77
  "bun-types": "1.3.12",
81
- "typescript": "^5.9.3"
78
+ "typescript": "^5.9.3",
79
+ "zod": "^4.3.6"
80
+ },
81
+ "peerDependencies": {
82
+ "zod": "^4.0.0"
82
83
  },
83
84
  "trustedDependencies": [
84
85
  "@ast-grep/cli"
@@ -1,31 +1,33 @@
1
- # Cartography Skill
1
+ # Codemap Skill
2
2
 
3
3
  Repository understanding and hierarchical codemap generation.
4
4
 
5
5
  ## Overview
6
6
 
7
- Cartography helps orchestrators map and understand codebases by:
7
+ Codemap helps orchestrators map and understand codebases by:
8
8
 
9
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
10
+ 2. Creating `.slim/codemap.json` for change tracking
11
+ 3. Generating empty `codemap.md` templates for fixers to fill in
12
+
13
+ Legacy `.slim/cartography.json` state is migrated to `.slim/codemap.json` automatically.
12
14
 
13
15
  ## Commands
14
16
 
15
17
  ```bash
16
18
  # Initialize mapping
17
- python3 cartographer.py init --root /repo --include "src/**/*.ts" --exclude "node_modules/**"
19
+ node codemap.mjs init --root /repo --include "src/**/*.ts" --exclude "node_modules/**"
18
20
 
19
21
  # Check what changed
20
- python3 cartographer.py changes --root /repo
22
+ node codemap.mjs changes --root /repo
21
23
 
22
24
  # Update hashes
23
- python3 cartographer.py update --root /repo
25
+ node codemap.mjs update --root /repo
24
26
  ```
25
27
 
26
28
  ## Outputs
27
29
 
28
- ### .slim/cartography.json
30
+ ### .slim/codemap.json
29
31
 
30
32
  ```json
31
33
  {
@@ -46,7 +48,7 @@ python3 cartographer.py update --root /repo
46
48
 
47
49
  ### codemap.md (per folder)
48
50
 
49
- Empty templates created in each folder for explorers to fill with:
51
+ Empty templates created in each folder for fixers to fill with:
50
52
  - Responsibility
51
53
  - Design patterns
52
54
  - Data/control flow
@@ -1,9 +1,9 @@
1
1
  ---
2
- name: cartography
2
+ name: codemap
3
3
  description: Generate comprehensive hierarchical codemaps for UNFAMILIAR repositories. Expensive operation - only use when explicitly asked for codebase documentation or initial repository mapping
4
4
  ---
5
5
 
6
- # Cartography Skill
6
+ # Codemap Skill
7
7
 
8
8
  You help users understand and map repositories by creating hierarchical codemaps.
9
9
 
@@ -17,11 +17,15 @@ You help users understand and map repositories by creating hierarchical codemaps
17
17
 
18
18
  ### Step 1: Check for Existing State
19
19
 
20
- **First, check if `.slim/cartography.json` exists in the repo root.**
20
+ **First, check if `.slim/codemap.json` exists in the repo root.**
21
21
 
22
- If it **exists**: Skip to Step 3 (Detect Changes) - no need to re-initialize.
22
+ If it does not exist, check for legacy state at `.slim/cartography.json`.
23
23
 
24
- If it **doesn't exist**: Continue to Step 2 (Initialize).
24
+ If legacy state exists: move `.slim/cartography.json` to `.slim/codemap.json`, then continue with change detection.
25
+
26
+ If `.slim/codemap.json` exists: Skip to Step 3 (Detect Changes) - no need to re-initialize.
27
+
28
+ If neither file exists: Continue to Step 2 (Initialize).
25
29
 
26
30
  ### Step 2: Initialize (Only if no state exists)
27
31
 
@@ -33,27 +37,27 @@ If it **doesn't exist**: Continue to Step 2 (Initialize).
33
37
  - Docs: `docs/**`, `*.md` (except root `README.md` if needed), `LICENSE`
34
38
  - Build/Deps: `node_modules/**`, `dist/**`, `build/**`, `*.min.js`
35
39
  - Respect `.gitignore` automatically
36
- 3. **Run cartographer.py init**:
40
+ 3. **Run codemap.mjs init**:
37
41
 
38
42
  ```bash
39
- python3 ~/.config/opencode/skills/cartography/scripts/cartographer.py init \
43
+ node ~/.config/opencode/skills/codemap/scripts/codemap.mjs init \
40
44
  --root ./ \
41
45
  --include "src/**/*.ts" \
42
46
  --exclude "**/*.test.ts" --exclude "dist/**" --exclude "node_modules/**"
43
47
  ```
44
48
 
45
49
  This creates:
46
- - `.slim/cartography.json` - File and folder hashes for change detection
50
+ - `.slim/codemap.json` - File and folder hashes for change detection
47
51
  - Empty `codemap.md` files in all relevant subdirectories
48
52
 
49
- 4. **Delegate to Explorer agents** - Spawn one explorer per folder to read code and fill in its specific `codemap.md` file.
53
+ 4. **Delegate codemap writing to Fixer agents** - Spawn one fixer per folder to read code and create or update its specific `codemap.md` file.
50
54
 
51
55
  ### Step 3: Detect Changes (If state already exists)
52
56
 
53
- 1. **Run cartographer.py changes** to see what changed:
57
+ 1. **Run codemap.mjs changes** to see what changed:
54
58
 
55
59
  ```bash
56
- python3 ~/.config/opencode/skills/cartography/scripts/cartographer.py changes \
60
+ node ~/.config/opencode/skills/codemap/scripts/codemap.mjs changes \
57
61
  --root ./
58
62
  ```
59
63
 
@@ -63,11 +67,11 @@ python3 ~/.config/opencode/skills/cartography/scripts/cartographer.py changes \
63
67
  - Modified files
64
68
  - Affected folders
65
69
 
66
- 3. **Only update affected codemaps** - Spawn one explorer per affected folder to update its `codemap.md`.
70
+ 3. **Only update affected codemaps** - Spawn one fixer per affected folder to update its `codemap.md`.
67
71
  4. **Run update** to save new state:
68
72
 
69
73
  ```bash
70
- python3 ~/.config/opencode/skills/cartography/scripts/cartographer.py update \
74
+ node ~/.config/opencode/skills/codemap/scripts/codemap.mjs update \
71
75
  --root ./
72
76
  ```
73
77
 
@@ -100,12 +104,11 @@ Before working on any task, read `codemap.md` to understand:
100
104
  For deep work on a specific folder, also read that folder's `codemap.md`.
101
105
  ```
102
106
 
103
- This is idempotent — repeated cartography runs will detect the existing section and skip. No duplication.
104
-
107
+ This is idempotent — repeated codemap runs will detect the existing section and skip. No duplication.
105
108
 
106
109
  ## Codemap Content
107
110
 
108
- Explorers are granted write permissions for `codemap.md` files during this workflow. Use precise technical terminology to document the implementation:
111
+ Fixers are responsible for writing `codemap.md` files during this workflow. Use precise technical terminology to document the implementation:
109
112
 
110
113
  - **Responsibility** - Define the specific role of this directory using standard software engineering terms (e.g., "Service Layer", "Data Access Object", "Middleware").
111
114
  - **Design Patterns** - Identify and name specific patterns used (e.g., "Observer", "Singleton", "Factory", "Strategy"). Detail the abstractions and interfaces.
@@ -144,7 +147,7 @@ Example **Root Codemap (Atlas)**:
144
147
  # Repository Atlas: oh-my-opencode-slim
145
148
 
146
149
  ## Project Responsibility
147
- A high-performance, low-latency agent orchestration plugin for OpenCode, focusing on specialized sub-agent delegation and background task management.
150
+ A high-performance, low-latency agent orchestration plugin for OpenCode, focusing on specialized sub-agent delegation and multiplexer-assisted child sessions.
148
151
 
149
152
  ## System Entry Points
150
153
  - `src/index.ts`: Plugin initialization and OpenCode integration.
@@ -155,6 +158,6 @@ A high-performance, low-latency agent orchestration plugin for OpenCode, focusin
155
158
  | Directory | Responsibility Summary | Detailed Map |
156
159
  |-----------|------------------------|--------------|
157
160
  | `src/agents/` | Defines agent personalities (Orchestrator, Explorer) and manages model routing. | [View Map](src/agents/codemap.md) |
158
- | `src/features/` | Core logic for tmux integration, background task spawning, and session state. | [View Map](src/features/codemap.md) |
161
+ | `src/features/` | Core logic for tmux integration and session state. | [View Map](src/features/codemap.md) |
159
162
  | `src/config/` | Implements the configuration loading pipeline and environment variable injection. | [View Map](src/config/codemap.md) |
160
163
  ```