@opencode/plugin 0.0.0-beta-19275
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/dist/app.d.ts +5 -0
- package/dist/app.js +0 -0
- package/dist/effect/agent.d.ts +15 -0
- package/dist/effect/agent.js +0 -0
- package/dist/effect/aisdk.d.ts +20 -0
- package/dist/effect/aisdk.js +0 -0
- package/dist/effect/catalog.d.ts +33 -0
- package/dist/effect/catalog.js +2 -0
- package/dist/effect/command.d.ts +23 -0
- package/dist/effect/command.js +0 -0
- package/dist/effect/event.d.ts +3 -0
- package/dist/effect/event.js +0 -0
- package/dist/effect/index.d.ts +18 -0
- package/dist/effect/index.js +17 -0
- package/dist/effect/integration.d.ts +80 -0
- package/dist/effect/integration.js +2 -0
- package/dist/effect/mcp.d.ts +15 -0
- package/dist/effect/mcp.js +0 -0
- package/dist/effect/permission.d.ts +21 -0
- package/dist/effect/permission.js +0 -0
- package/dist/effect/plugin.d.ts +56 -0
- package/dist/effect/plugin.js +3 -0
- package/dist/effect/reference.d.ts +14 -0
- package/dist/effect/reference.js +0 -0
- package/dist/effect/registration.d.ts +13 -0
- package/dist/effect/registration.js +0 -0
- package/dist/effect/rpc.d.ts +19 -0
- package/dist/effect/rpc.js +0 -0
- package/dist/effect/session.d.ts +85 -0
- package/dist/effect/session.js +0 -0
- package/dist/effect/shell.d.ts +14 -0
- package/dist/effect/shell.js +0 -0
- package/dist/effect/skill.d.ts +15 -0
- package/dist/effect/skill.js +1 -0
- package/dist/effect/storage.d.ts +8 -0
- package/dist/effect/storage.js +0 -0
- package/dist/effect/tool.d.ts +52 -0
- package/dist/effect/tool.js +1 -0
- package/dist/effect/vcs.d.ts +41 -0
- package/dist/effect/vcs.js +0 -0
- package/dist/effect/websearch.d.ts +20 -0
- package/dist/effect/websearch.js +0 -0
- package/dist/effect/worktree.d.ts +18 -0
- package/dist/effect/worktree.js +0 -0
- package/dist/host.d.ts +12 -0
- package/dist/host.js +33 -0
- package/dist/options.d.ts +1 -0
- package/dist/options.js +0 -0
- package/dist/promise/adapter.d.ts +12 -0
- package/dist/promise/adapter.js +440 -0
- package/dist/promise/agent.d.ts +15 -0
- package/dist/promise/agent.js +0 -0
- package/dist/promise/aisdk.d.ts +20 -0
- package/dist/promise/aisdk.js +0 -0
- package/dist/promise/catalog.d.ts +33 -0
- package/dist/promise/catalog.js +0 -0
- package/dist/promise/command.d.ts +22 -0
- package/dist/promise/command.js +0 -0
- package/dist/promise/event.d.ts +3 -0
- package/dist/promise/event.js +0 -0
- package/dist/promise/index.d.ts +19 -0
- package/dist/promise/index.js +17 -0
- package/dist/promise/integration.d.ts +79 -0
- package/dist/promise/integration.js +2 -0
- package/dist/promise/mcp.d.ts +15 -0
- package/dist/promise/mcp.js +0 -0
- package/dist/promise/permission.d.ts +21 -0
- package/dist/promise/permission.js +0 -0
- package/dist/promise/plugin.d.ts +57 -0
- package/dist/promise/plugin.js +3 -0
- package/dist/promise/reference.d.ts +13 -0
- package/dist/promise/reference.js +0 -0
- package/dist/promise/registration.d.ts +12 -0
- package/dist/promise/registration.js +0 -0
- package/dist/promise/rpc.d.ts +22 -0
- package/dist/promise/rpc.js +0 -0
- package/dist/promise/session.d.ts +85 -0
- package/dist/promise/session.js +0 -0
- package/dist/promise/shell.d.ts +14 -0
- package/dist/promise/shell.js +0 -0
- package/dist/promise/skill.d.ts +15 -0
- package/dist/promise/skill.js +0 -0
- package/dist/promise/storage.d.ts +8 -0
- package/dist/promise/storage.js +0 -0
- package/dist/promise/tool.d.ts +56 -0
- package/dist/promise/tool.js +2 -0
- package/dist/promise/types.d.ts +3 -0
- package/dist/promise/types.js +0 -0
- package/dist/promise/vcs.d.ts +50 -0
- package/dist/promise/vcs.js +0 -0
- package/dist/promise/websearch.d.ts +21 -0
- package/dist/promise/websearch.js +0 -0
- package/dist/promise/worktree.d.ts +23 -0
- package/dist/promise/worktree.js +0 -0
- package/dist/rpc.d.ts +1 -0
- package/dist/rpc.js +1 -0
- package/dist/source.bun.d.ts +4 -0
- package/dist/source.bun.js +62 -0
- package/dist/source.d.ts +8 -0
- package/dist/source.js +59 -0
- package/dist/source.node.d.ts +5 -0
- package/dist/source.node.js +45 -0
- package/dist/storage.d.ts +14 -0
- package/dist/storage.js +0 -0
- package/dist/tui/context.d.ts +456 -0
- package/dist/tui/context.js +0 -0
- package/dist/tui/index.d.ts +2 -0
- package/dist/tui/index.js +2 -0
- package/dist/tui/plugin.d.ts +8 -0
- package/dist/tui/plugin.js +3 -0
- package/dist/tui/solid.d.ts +7 -0
- package/dist/tui/solid.js +16 -0
- package/dist/worktree.d.ts +16 -0
- package/dist/worktree.js +0 -0
- package/package.json +87 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type JSX } from "solid-js";
|
|
2
|
+
import type { Context } from "./context.js";
|
|
3
|
+
export declare function PluginContextProvider(props: {
|
|
4
|
+
readonly value: Context;
|
|
5
|
+
readonly children: JSX.Element;
|
|
6
|
+
}): JSX.Element;
|
|
7
|
+
export declare function usePlugin(): Context;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { createComponent, createContext, useContext } from "solid-js";
|
|
2
|
+
const PluginContext = createContext();
|
|
3
|
+
export function PluginContextProvider(props) {
|
|
4
|
+
return createComponent(PluginContext.Provider, {
|
|
5
|
+
value: props.value,
|
|
6
|
+
get children() {
|
|
7
|
+
return props.children;
|
|
8
|
+
},
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
export function usePlugin() {
|
|
12
|
+
const context = useContext(PluginContext);
|
|
13
|
+
if (!context)
|
|
14
|
+
throw new Error("PluginContextProvider is missing");
|
|
15
|
+
return context;
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface WorktreeCreateInput {
|
|
2
|
+
readonly sourceDirectory: string;
|
|
3
|
+
readonly directory: string;
|
|
4
|
+
/** Starting ref, not the name of a new branch. Reject unsupported refs rather than ignoring them. */
|
|
5
|
+
readonly branch?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface WorktreeRemoveInput {
|
|
8
|
+
readonly directory: string;
|
|
9
|
+
readonly force: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface WorktreeResult {
|
|
12
|
+
readonly directory: string;
|
|
13
|
+
}
|
|
14
|
+
export interface WorktreeEntry extends WorktreeResult {
|
|
15
|
+
readonly type: "root" | "worktree";
|
|
16
|
+
}
|
package/dist/worktree.js
ADDED
|
File without changes
|
package/package.json
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/package.json",
|
|
3
|
+
"name": "@opencode/plugin",
|
|
4
|
+
"version": "0.0.0-beta-19275",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"test": "bun test --only-failures",
|
|
9
|
+
"typecheck": "tsgo --noEmit",
|
|
10
|
+
"build": "tsc -p tsconfig.build.json"
|
|
11
|
+
},
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"import": "./dist/promise/index.js",
|
|
15
|
+
"types": "./dist/promise/index.d.ts"
|
|
16
|
+
},
|
|
17
|
+
"./effect": {
|
|
18
|
+
"import": "./dist/effect/index.js",
|
|
19
|
+
"types": "./dist/effect/index.d.ts"
|
|
20
|
+
},
|
|
21
|
+
"./host": {
|
|
22
|
+
"import": "./dist/host.js",
|
|
23
|
+
"types": "./dist/host.d.ts"
|
|
24
|
+
},
|
|
25
|
+
"./tui": {
|
|
26
|
+
"import": "./dist/tui/index.js",
|
|
27
|
+
"types": "./dist/tui/index.d.ts"
|
|
28
|
+
},
|
|
29
|
+
"./*": {
|
|
30
|
+
"import": "./dist/*.js",
|
|
31
|
+
"types": "./dist/*.d.ts"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"imports": {
|
|
35
|
+
"#plugin-source": {
|
|
36
|
+
"bun": "./dist/source.bun.js",
|
|
37
|
+
"node": "./dist/source.node.js",
|
|
38
|
+
"default": "./dist/source.node.js"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"files": [
|
|
42
|
+
"dist"
|
|
43
|
+
],
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@ai-sdk/provider": "3.0.8",
|
|
46
|
+
"@opencode/ai": "0.0.0-beta-19275",
|
|
47
|
+
"@opencode/client": "0.0.0-beta-19275",
|
|
48
|
+
"@opencode/protocol": "0.0.0-beta-19275",
|
|
49
|
+
"@opencode/schema": "0.0.0-beta-19275",
|
|
50
|
+
"@opencode/util": "0.0.0-beta-19275",
|
|
51
|
+
"@standard-schema/spec": "1.1.0",
|
|
52
|
+
"effect": "4.0.0-rc.112",
|
|
53
|
+
"zod": "4.1.8"
|
|
54
|
+
},
|
|
55
|
+
"peerDependencies": {
|
|
56
|
+
"@opencode/theme": "0.0.0-beta-19275",
|
|
57
|
+
"@opentui/core": ">=0.5.10",
|
|
58
|
+
"@opentui/solid": ">=0.5.10",
|
|
59
|
+
"solid-js": ">=1.9.0"
|
|
60
|
+
},
|
|
61
|
+
"peerDependenciesMeta": {
|
|
62
|
+
"@opencode/theme": {
|
|
63
|
+
"optional": true
|
|
64
|
+
},
|
|
65
|
+
"@opentui/core": {
|
|
66
|
+
"optional": true
|
|
67
|
+
},
|
|
68
|
+
"@opentui/solid": {
|
|
69
|
+
"optional": true
|
|
70
|
+
},
|
|
71
|
+
"solid-js": {
|
|
72
|
+
"optional": true
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"devDependencies": {
|
|
76
|
+
"@opencode/theme": "0.0.0-beta-19275",
|
|
77
|
+
"@opentui/core": "0.5.10",
|
|
78
|
+
"@opentui/solid": "0.5.10",
|
|
79
|
+
"@tsconfig/bun": "1.0.9",
|
|
80
|
+
"@tsconfig/node22": "22.0.2",
|
|
81
|
+
"@types/bun": "1.4.0",
|
|
82
|
+
"@types/node": "24.12.2",
|
|
83
|
+
"solid-js": "1.9.15",
|
|
84
|
+
"typescript": "5.8.2",
|
|
85
|
+
"@typescript/native-preview": "7.0.0-dev.20251207.1"
|
|
86
|
+
}
|
|
87
|
+
}
|