opencode-arise 0.1.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,35 @@
1
+ import type { PluginInput } from "@opencode-ai/plugin";
2
+ import type { Event } from "@opencode-ai/sdk";
3
+ export interface BackgroundTask {
4
+ id: string;
5
+ sessionId: string;
6
+ parentSessionId: string;
7
+ shadow: string;
8
+ description: string;
9
+ status: "running" | "completed" | "error";
10
+ startedAt: number;
11
+ completedAt?: number;
12
+ result?: string;
13
+ error?: string;
14
+ }
15
+ export declare class BackgroundManager {
16
+ private tasks;
17
+ private ctx;
18
+ constructor(ctx: PluginInput);
19
+ generateTaskId(): string;
20
+ launch(opts: {
21
+ shadow: string;
22
+ prompt: string;
23
+ description: string;
24
+ parentSessionId: string;
25
+ }): Promise<BackgroundTask>;
26
+ private schedulePolling;
27
+ private pollTaskCompletion;
28
+ private extractResult;
29
+ private notifyParent;
30
+ getTask(taskId: string): BackgroundTask | undefined;
31
+ getAllTasks(): BackgroundTask[];
32
+ getTasksForSession(sessionId: string): BackgroundTask[];
33
+ cancelTask(taskId: string): Promise<boolean>;
34
+ handleEvent(event: Event): void;
35
+ }
@@ -0,0 +1,6 @@
1
+ import { tool } from "@opencode-ai/plugin";
2
+ import type { BackgroundManager } from "./background-manager";
3
+ export declare function createBackgroundTaskTool(manager: BackgroundManager): ReturnType<typeof tool>;
4
+ export declare function createBackgroundOutputTool(manager: BackgroundManager): ReturnType<typeof tool>;
5
+ export declare function createBackgroundStatusTool(manager: BackgroundManager): ReturnType<typeof tool>;
6
+ export declare function createBackgroundCancelTool(manager: BackgroundManager): ReturnType<typeof tool>;
@@ -0,0 +1,3 @@
1
+ import { tool } from "@opencode-ai/plugin";
2
+ import type { PluginInput } from "@opencode-ai/plugin";
3
+ export declare function createCallAriseAgentTool(ctx: PluginInput): ReturnType<typeof tool>;
@@ -0,0 +1,3 @@
1
+ export { createCallAriseAgentTool } from "./call-arise-agent";
2
+ export { BackgroundManager } from "./background-manager";
3
+ export { createBackgroundTaskTool, createBackgroundOutputTool, createBackgroundStatusTool, createBackgroundCancelTool, } from "./background-tools";
package/package.json ADDED
@@ -0,0 +1,59 @@
1
+ {
2
+ "name": "opencode-arise",
3
+ "version": "0.1.0",
4
+ "description": "Solo Leveling themed orchestrator harness for OpenCode - Arise, Shadow Army!",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "bin": {
9
+ "opencode-arise": "dist/cli/index.js"
10
+ },
11
+ "exports": {
12
+ ".": {
13
+ "import": "./dist/index.js",
14
+ "types": "./dist/index.d.ts"
15
+ }
16
+ },
17
+ "scripts": {
18
+ "build": "bun build src/index.ts --outdir dist --target bun && bun build src/cli/index.ts --outdir dist/cli --target bun && tsc --emitDeclarationOnly",
19
+ "test": "bun test",
20
+ "typecheck": "tsc --noEmit",
21
+ "clean": "rm -rf dist",
22
+ "prepublishOnly": "bun run clean && bun run build"
23
+ },
24
+ "files": [
25
+ "dist",
26
+ "assets"
27
+ ],
28
+ "keywords": [
29
+ "opencode",
30
+ "plugin",
31
+ "ai",
32
+ "agent",
33
+ "orchestrator",
34
+ "solo-leveling",
35
+ "arise"
36
+ ],
37
+ "author": "moinulmoin",
38
+ "license": "MIT",
39
+ "repository": {
40
+ "type": "git",
41
+ "url": "git+https://github.com/moinulmoin/opencode-arise.git"
42
+ },
43
+ "bugs": {
44
+ "url": "https://github.com/moinulmoin/opencode-arise/issues"
45
+ },
46
+ "homepage": "https://github.com/moinulmoin/opencode-arise#readme",
47
+ "dependencies": {
48
+ "@opencode-ai/plugin": "^1.1.11",
49
+ "@opencode-ai/sdk": "^1.1.11",
50
+ "zod": "^3.24.0"
51
+ },
52
+ "devDependencies": {
53
+ "@types/bun": "^1.2.0",
54
+ "typescript": "^5.7.0"
55
+ },
56
+ "peerDependencies": {
57
+ "bun": ">=1.0.0"
58
+ }
59
+ }