@fro.bot/space-bus 0.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.
- package/LICENSE +20 -0
- package/README.md +94 -0
- package/dist/config.d.ts +64 -0
- package/dist/core.d.ts +81 -0
- package/dist/format.d.ts +5 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +670 -0
- package/dist/mcp.d.ts +1 -0
- package/dist/mcp.js +719 -0
- package/dist/tools/bus_result.d.ts +3 -0
- package/dist/tools/bus_roster.d.ts +3 -0
- package/dist/tools/bus_status.d.ts +3 -0
- package/dist/tools/bus_task.d.ts +3 -0
- package/package.json +56 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { type ToolDefinition } from "@opencode-ai/plugin";
|
|
2
|
+
export declare const BUS_RESULT_DESCRIPTION = "Return a completed space-bus session's final assistant message and diff. Errors if the session is still running \u2014 use bus_status to check first.";
|
|
3
|
+
export declare function makeBusResult(defaultDirectory?: string): ToolDefinition;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { type ToolDefinition } from "@opencode-ai/plugin";
|
|
2
|
+
export declare const BUS_STATUS_DESCRIPTION = "Report a space-bus session's status plus a summary of its latest todo and diff. Also reports when the session is blocked on an interactive question awaiting a reply.";
|
|
3
|
+
export declare function makeBusStatus(defaultDirectory?: string): ToolDefinition;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { type ToolDefinition } from "@opencode-ai/plugin";
|
|
2
|
+
export declare const BUS_TASK_DESCRIPTION = "Dispatch a prompt to an agent in the given space-bus manifest project, or steer an existing session by passing sessionId (answers its pending question, else sends a follow-up prompt). Returns immediately; does not wait for completion.";
|
|
3
|
+
export declare function makeBusTask(defaultDirectory?: string): ToolDefinition;
|
package/package.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@fro.bot/space-bus",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"description": "Space Bus — workspace agent bus for OpenCode. One control agent tasking per-project agents over the OpenCode server API, with an MCP facade for Claude Desktop.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": "github:fro-bot/space-bus",
|
|
8
|
+
"main": "./dist/index.js",
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"import": "./dist/index.js"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"bin": {
|
|
17
|
+
"space-bus-mcp": "./dist/mcp.js"
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"dist",
|
|
21
|
+
"README.md",
|
|
22
|
+
"LICENSE"
|
|
23
|
+
],
|
|
24
|
+
"publishConfig": {
|
|
25
|
+
"access": "public"
|
|
26
|
+
},
|
|
27
|
+
"scripts": {
|
|
28
|
+
"clean": "rm -rf dist",
|
|
29
|
+
"build": "bun run clean && bun run build.ts && tsc -p tsconfig.build.json --emitDeclarationOnly",
|
|
30
|
+
"dev": "bun build ./src/index.ts ./src/mcp.ts --outdir dist --target node --external @opencode-ai/plugin --external @modelcontextprotocol/sdk --external zod --watch",
|
|
31
|
+
"typecheck": "tsc --noEmit",
|
|
32
|
+
"lint": "biome check .",
|
|
33
|
+
"fix": "biome check --write .",
|
|
34
|
+
"test": "bun test",
|
|
35
|
+
"smoke": "bun run scripts/smoke.ts",
|
|
36
|
+
"mcp": "bun run src/mcp.ts",
|
|
37
|
+
"fixture": "bun run scripts/make-fixture.ts",
|
|
38
|
+
"version-changesets": "changeset version && bun install --lockfile-only",
|
|
39
|
+
"publish-changesets": "bun run build && changeset publish",
|
|
40
|
+
"prepublishOnly": "bun run build"
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"@modelcontextprotocol/sdk": "1.29.0",
|
|
44
|
+
"zod": "^3.25.76"
|
|
45
|
+
},
|
|
46
|
+
"peerDependencies": {
|
|
47
|
+
"@opencode-ai/plugin": ">=1.17.13 <2"
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@biomejs/biome": "^2.3.0",
|
|
51
|
+
"@changesets/cli": "^2.29.0",
|
|
52
|
+
"@opencode-ai/plugin": "1.17.13",
|
|
53
|
+
"@types/bun": "^1.0.0",
|
|
54
|
+
"typescript": "^5.8.0"
|
|
55
|
+
}
|
|
56
|
+
}
|