opencode-swarm 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.
@@ -0,0 +1,6 @@
1
+ import { type ToolDefinition } from '@opencode-ai/plugin/tool';
2
+ /**
3
+ * Detect SME domains from text content.
4
+ * Returns list of domains that match patterns in the input.
5
+ */
6
+ export declare const detect_domains: ToolDefinition;
@@ -0,0 +1,5 @@
1
+ import { type ToolDefinition } from '@opencode-ai/plugin/tool';
2
+ /**
3
+ * Extract code blocks from content and save to files
4
+ */
5
+ export declare const extract_code_blocks: ToolDefinition;
@@ -0,0 +1,2 @@
1
+ export { detect_domains } from './domain-detector';
2
+ export { extract_code_blocks } from './file-extractor';
@@ -0,0 +1 @@
1
+ export { log, warn, error } from './logger';
@@ -0,0 +1,3 @@
1
+ export declare function log(message: string, data?: unknown): void;
2
+ export declare function warn(message: string, data?: unknown): void;
3
+ export declare function error(message: string, data?: unknown): void;
package/package.json ADDED
@@ -0,0 +1,47 @@
1
+ {
2
+ "name": "opencode-swarm",
3
+ "version": "1.0.0",
4
+ "description": "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "bin": {
8
+ "opencode-swarm": "./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
+ "swarm",
19
+ "multi-agent",
20
+ "llm"
21
+ ],
22
+ "files": [
23
+ "dist",
24
+ "README.md",
25
+ "LICENSE"
26
+ ],
27
+ "scripts": {
28
+ "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",
29
+ "typecheck": "tsc --noEmit",
30
+ "test": "bun test",
31
+ "lint": "biome lint .",
32
+ "format": "biome format . --write",
33
+ "check": "biome check --write .",
34
+ "dev": "bun run build && opencode",
35
+ "prepublishOnly": "bun run build"
36
+ },
37
+ "dependencies": {
38
+ "@opencode-ai/plugin": "^1.1.19",
39
+ "@opencode-ai/sdk": "^1.1.19",
40
+ "zod": "^4.1.8"
41
+ },
42
+ "devDependencies": {
43
+ "@biomejs/biome": "2.3.11",
44
+ "bun-types": "latest",
45
+ "typescript": "^5.7.3"
46
+ }
47
+ }