@theopenbee/engine-claude 0.0.0-stage → 0.1.1
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 +21 -0
- package/README.md +78 -2
- package/dist/claude.d.ts +17 -0
- package/dist/claude.js +280 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -0
- package/openbee.plugin.json +16 -0
- package/package.json +44 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 TENGYONGZHI
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,79 @@
|
|
|
1
|
-
#
|
|
1
|
+
# openbee Claude Code engine
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
An [openbee](https://github.com/theopenbee/openbee) engine plugin that runs tasks with [Claude Code](https://www.npmjs.com/package/@anthropic-ai/claude-code). It is built on [`@theopenbee/engine-sdk`](https://www.npmjs.com/package/@theopenbee/engine-sdk).
|
|
4
|
+
|
|
5
|
+
## Requirements
|
|
6
|
+
|
|
7
|
+
You install Claude Code and log in to it yourself. The plugin only starts it.
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
npm i -g @anthropic-ai/claude-code
|
|
11
|
+
claude
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Run `claude` once and sign in, or give Claude Code an API key as an environment variable in openbee's **Env** settings (for example `ANTHROPIC_API_KEY`). openbee passes its environment, including these settings, to Claude Code.
|
|
15
|
+
|
|
16
|
+
The plugin itself needs Node.js 20 or newer (or Bun).
|
|
17
|
+
|
|
18
|
+
## Install
|
|
19
|
+
|
|
20
|
+
```sh
|
|
21
|
+
openbee plugin install claude
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Or from npm by package name:
|
|
25
|
+
|
|
26
|
+
```sh
|
|
27
|
+
openbee plugin install @theopenbee/engine-claude
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Or from a local checkout:
|
|
31
|
+
|
|
32
|
+
```sh
|
|
33
|
+
git clone https://github.com/theopenbee/engine-claude.git
|
|
34
|
+
cd engine-claude
|
|
35
|
+
npm install
|
|
36
|
+
openbee plugin install "$(pwd)"
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Then enable the plugin, and pick `claude` as the default engine or per worker.
|
|
40
|
+
|
|
41
|
+
## Settings
|
|
42
|
+
|
|
43
|
+
| Setting | Description |
|
|
44
|
+
|---|---|
|
|
45
|
+
| `path` | Path to the `claude` executable. Leave empty to use `claude` from `PATH`. |
|
|
46
|
+
|
|
47
|
+
The plugin checks the setting when it is enabled: it runs `claude --version` and shows the version, or the reason it failed (for example `claude not found on PATH`).
|
|
48
|
+
|
|
49
|
+
## Sessions
|
|
50
|
+
|
|
51
|
+
Sessions stay in Claude Code's own config directory, `~/.claude/projects/` (or `~/.config/claude/projects/`). The plugin does not copy or move them, so conversations that were started before the plugin was installed resume as before, and they survive uninstalling the plugin.
|
|
52
|
+
|
|
53
|
+
Token usage is read from the same session files and summed per model. If `CLAUDE_CONFIG_DIR` is set in openbee's environment, only the directories it lists (comma separated) are searched instead of the two defaults. Before a resume, the whole value is also tried as one directory, so a config directory whose path contains a comma is found.
|
|
54
|
+
|
|
55
|
+
## How it runs Claude Code
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
claude --dangerously-skip-permissions --verbose --output-format stream-json [--mcp-config=<json>] [--session-id <id> | --resume <id>] [extra args] --print
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
- The prompt is written to Claude Code's standard input.
|
|
62
|
+
- When openbee provides its MCP server, the plugin passes `--mcp-config` with an HTTP server entry that sends `Authorization: Bearer ${OPENBEE_API_KEY}`. The placeholder is expanded by Claude Code from its environment, so the API key never appears on the command line.
|
|
63
|
+
- A new conversation starts with `--session-id`; later turns use `--resume` when Claude Code's session file for that id exists. If the file is missing, for example because the first run failed before Claude Code created it, the plugin starts the conversation again with `--session-id` instead of failing every later message.
|
|
64
|
+
- Auto-update is disabled for runs started by openbee (`DISABLE_AUTOUPDATER=1`).
|
|
65
|
+
- The result is the text of the final `result` event, or the last assistant text when there is none. A non-zero exit code or an `is_error` result is reported as a failed run, with Claude Code's own message when it gave one.
|
|
66
|
+
- Claude Code's output is written to the run's log file as it arrives.
|
|
67
|
+
|
|
68
|
+
## Development
|
|
69
|
+
|
|
70
|
+
```sh
|
|
71
|
+
npm install
|
|
72
|
+
npm test
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
`npm install` also builds `dist/`; run `npm run build` after changing `src/`. The end-to-end tests run the plugin against a fake `claude` script, under Node and under Bun when it is installed (`bun` on `PATH` or `~/.openbee/runtime/bun-*/bun`).
|
|
76
|
+
|
|
77
|
+
## License
|
|
78
|
+
|
|
79
|
+
MIT
|
package/dist/claude.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Engine, RunParams, TokenUsage } from "@theopenbee/engine-sdk";
|
|
2
|
+
type McpParams = NonNullable<RunParams["mcp"]>;
|
|
3
|
+
export interface ResultScan {
|
|
4
|
+
result: string;
|
|
5
|
+
isError: boolean;
|
|
6
|
+
lastAssistantText: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function mcpConfig(mcp: McpParams): string;
|
|
9
|
+
export declare function buildArgs(params: Pick<RunParams, "session_id" | "resume" | "extra_args" | "mcp">): string[];
|
|
10
|
+
export declare function scanResultLog(logPath: string): Promise<ResultScan>;
|
|
11
|
+
export declare function extractResultFromLog(logPath: string): Promise<string>;
|
|
12
|
+
export declare function claudeBaseDirs(env?: NodeJS.ProcessEnv, home?: string): string[];
|
|
13
|
+
export declare function sessionBaseDirs(env?: NodeJS.ProcessEnv, home?: string): string[];
|
|
14
|
+
export declare function sessionExists(baseDirs: string[], sessionId: string): boolean;
|
|
15
|
+
export declare function collectUsage(baseDirs: string[], sessionIds: string[]): Promise<Record<string, TokenUsage[]>>;
|
|
16
|
+
export declare const engine: Engine;
|
|
17
|
+
export {};
|
package/dist/claude.js
ADDED
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
import { createReadStream, readdirSync, statSync } from "node:fs";
|
|
2
|
+
import { homedir } from "node:os";
|
|
3
|
+
import { join } from "node:path";
|
|
4
|
+
import { createInterface } from "node:readline";
|
|
5
|
+
import { cliVersion, findCli, log, spawnCli } from "@theopenbee/engine-sdk";
|
|
6
|
+
const SYNTHETIC_MODEL = "<synthetic>";
|
|
7
|
+
const EMPTY_ERROR_TEXT = "bee execution failed (no details available)";
|
|
8
|
+
function isObject(value) {
|
|
9
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
10
|
+
}
|
|
11
|
+
function errorMessage(err) {
|
|
12
|
+
return err instanceof Error ? err.message : String(err);
|
|
13
|
+
}
|
|
14
|
+
function isMissing(err) {
|
|
15
|
+
const code = err?.code;
|
|
16
|
+
return code === "ENOENT" || code === "ENOTDIR";
|
|
17
|
+
}
|
|
18
|
+
export function mcpConfig(mcp) {
|
|
19
|
+
return JSON.stringify({
|
|
20
|
+
mcpServers: {
|
|
21
|
+
[mcp.name]: {
|
|
22
|
+
type: "http",
|
|
23
|
+
url: mcp.url,
|
|
24
|
+
headers: { Authorization: `Bearer \${${mcp.api_key_env}}` },
|
|
25
|
+
alwaysLoad: true,
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
export function buildArgs(params) {
|
|
31
|
+
const args = ["--dangerously-skip-permissions", "--verbose", "--output-format", "stream-json"];
|
|
32
|
+
if (params.mcp?.url)
|
|
33
|
+
args.push(`--mcp-config=${mcpConfig(params.mcp)}`);
|
|
34
|
+
if (params.session_id) {
|
|
35
|
+
args.push(params.resume ? "--resume" : "--session-id", params.session_id);
|
|
36
|
+
}
|
|
37
|
+
args.push(...(params.extra_args ?? []), "--print");
|
|
38
|
+
return args;
|
|
39
|
+
}
|
|
40
|
+
function firstAssistantText(event) {
|
|
41
|
+
const message = event.message;
|
|
42
|
+
if (!isObject(message) || !Array.isArray(message.content))
|
|
43
|
+
return "";
|
|
44
|
+
const first = message.content[0];
|
|
45
|
+
if (isObject(first) && first.type === "text" && typeof first.text === "string")
|
|
46
|
+
return first.text;
|
|
47
|
+
return "";
|
|
48
|
+
}
|
|
49
|
+
export async function scanResultLog(logPath) {
|
|
50
|
+
const scan = { result: "", isError: false, lastAssistantText: "" };
|
|
51
|
+
const stream = createReadStream(logPath, { encoding: "utf8" });
|
|
52
|
+
const lines = createInterface({ input: stream, crlfDelay: Infinity });
|
|
53
|
+
try {
|
|
54
|
+
for await (const raw of lines) {
|
|
55
|
+
const text = raw.trim();
|
|
56
|
+
if (!text.startsWith("{"))
|
|
57
|
+
continue;
|
|
58
|
+
let event;
|
|
59
|
+
try {
|
|
60
|
+
event = JSON.parse(text);
|
|
61
|
+
}
|
|
62
|
+
catch {
|
|
63
|
+
continue;
|
|
64
|
+
}
|
|
65
|
+
if (!isObject(event))
|
|
66
|
+
continue;
|
|
67
|
+
if (event.type === "assistant") {
|
|
68
|
+
const assistantText = firstAssistantText(event);
|
|
69
|
+
if (assistantText !== "")
|
|
70
|
+
scan.lastAssistantText = assistantText;
|
|
71
|
+
}
|
|
72
|
+
else if (event.type === "result") {
|
|
73
|
+
const result = event.result ?? "";
|
|
74
|
+
const isError = event.is_error ?? false;
|
|
75
|
+
if (typeof result !== "string" || typeof isError !== "boolean")
|
|
76
|
+
continue;
|
|
77
|
+
scan.result = result;
|
|
78
|
+
scan.isError = isError;
|
|
79
|
+
break;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
catch {
|
|
84
|
+
return scan;
|
|
85
|
+
}
|
|
86
|
+
finally {
|
|
87
|
+
lines.close();
|
|
88
|
+
stream.destroy();
|
|
89
|
+
}
|
|
90
|
+
return scan;
|
|
91
|
+
}
|
|
92
|
+
export async function extractResultFromLog(logPath) {
|
|
93
|
+
const scan = await scanResultLog(logPath);
|
|
94
|
+
return scan.result !== "" ? scan.result : scan.lastAssistantText;
|
|
95
|
+
}
|
|
96
|
+
export function claudeBaseDirs(env = process.env, home = homedir()) {
|
|
97
|
+
const configured = env.CLAUDE_CONFIG_DIR;
|
|
98
|
+
if (configured) {
|
|
99
|
+
return configured
|
|
100
|
+
.split(",")
|
|
101
|
+
.map((dir) => dir.trim())
|
|
102
|
+
.filter((dir) => dir !== "");
|
|
103
|
+
}
|
|
104
|
+
return [join(home, ".claude"), join(home, ".config", "claude")];
|
|
105
|
+
}
|
|
106
|
+
export function sessionBaseDirs(env = process.env, home = homedir()) {
|
|
107
|
+
const dirs = claudeBaseDirs(env, home);
|
|
108
|
+
const configured = env.CLAUDE_CONFIG_DIR;
|
|
109
|
+
if (configured && !dirs.includes(configured))
|
|
110
|
+
dirs.push(configured);
|
|
111
|
+
return dirs;
|
|
112
|
+
}
|
|
113
|
+
function isPlainFileName(id) {
|
|
114
|
+
return typeof id === "string" && id !== "" && !/[\\/\0]/.test(id);
|
|
115
|
+
}
|
|
116
|
+
function isFile(path) {
|
|
117
|
+
try {
|
|
118
|
+
return statSync(path).isFile();
|
|
119
|
+
}
|
|
120
|
+
catch {
|
|
121
|
+
return false;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
export function sessionExists(baseDirs, sessionId) {
|
|
125
|
+
if (!isPlainFileName(sessionId))
|
|
126
|
+
return false;
|
|
127
|
+
const name = `${sessionId}.jsonl`;
|
|
128
|
+
for (const base of baseDirs) {
|
|
129
|
+
const root = join(base, "projects");
|
|
130
|
+
if (isFile(join(root, name)))
|
|
131
|
+
return true;
|
|
132
|
+
let entries;
|
|
133
|
+
try {
|
|
134
|
+
entries = readdirSync(root);
|
|
135
|
+
}
|
|
136
|
+
catch {
|
|
137
|
+
continue;
|
|
138
|
+
}
|
|
139
|
+
if (entries.some((entry) => isFile(join(root, entry, name))))
|
|
140
|
+
return true;
|
|
141
|
+
}
|
|
142
|
+
return false;
|
|
143
|
+
}
|
|
144
|
+
function indexJsonlFiles(dir, index) {
|
|
145
|
+
let entries;
|
|
146
|
+
try {
|
|
147
|
+
entries = readdirSync(dir, { withFileTypes: true });
|
|
148
|
+
}
|
|
149
|
+
catch (err) {
|
|
150
|
+
if (!isMissing(err))
|
|
151
|
+
log.warn(`reading ${dir} failed: ${errorMessage(err)}`);
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
154
|
+
entries.sort((a, b) => (a.name < b.name ? -1 : a.name > b.name ? 1 : 0));
|
|
155
|
+
for (const entry of entries) {
|
|
156
|
+
const full = join(dir, entry.name);
|
|
157
|
+
if (entry.isDirectory())
|
|
158
|
+
indexJsonlFiles(full, index);
|
|
159
|
+
else if (entry.name.endsWith(".jsonl") && !index.has(entry.name))
|
|
160
|
+
index.set(entry.name, full);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
function numberOrZero(value) {
|
|
164
|
+
return typeof value === "number" && Number.isFinite(value) ? value : 0;
|
|
165
|
+
}
|
|
166
|
+
async function parseSessionFile(path) {
|
|
167
|
+
const byModel = new Map();
|
|
168
|
+
const stream = createReadStream(path, { encoding: "utf8" });
|
|
169
|
+
const lines = createInterface({ input: stream, crlfDelay: Infinity });
|
|
170
|
+
try {
|
|
171
|
+
for await (const raw of lines) {
|
|
172
|
+
let event;
|
|
173
|
+
try {
|
|
174
|
+
event = JSON.parse(raw);
|
|
175
|
+
}
|
|
176
|
+
catch {
|
|
177
|
+
continue;
|
|
178
|
+
}
|
|
179
|
+
if (!isObject(event) || !isObject(event.message))
|
|
180
|
+
continue;
|
|
181
|
+
const message = event.message;
|
|
182
|
+
if (typeof message.model !== "string" || message.model === "" || message.model === SYNTHETIC_MODEL)
|
|
183
|
+
continue;
|
|
184
|
+
if (!isObject(message.usage))
|
|
185
|
+
continue;
|
|
186
|
+
const model = message.speed === "fast" ? `${message.model}-fast` : message.model;
|
|
187
|
+
let total = byModel.get(model);
|
|
188
|
+
if (!total) {
|
|
189
|
+
total = { model, input_tokens: 0, output_tokens: 0, cache_creation_tokens: 0, cache_read_tokens: 0 };
|
|
190
|
+
byModel.set(model, total);
|
|
191
|
+
}
|
|
192
|
+
total.input_tokens += numberOrZero(message.usage.input_tokens);
|
|
193
|
+
total.output_tokens += numberOrZero(message.usage.output_tokens);
|
|
194
|
+
total.cache_creation_tokens += numberOrZero(message.usage.cache_creation_input_tokens);
|
|
195
|
+
total.cache_read_tokens += numberOrZero(message.usage.cache_read_input_tokens);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
finally {
|
|
199
|
+
lines.close();
|
|
200
|
+
stream.destroy();
|
|
201
|
+
}
|
|
202
|
+
return [...byModel.values()];
|
|
203
|
+
}
|
|
204
|
+
export async function collectUsage(baseDirs, sessionIds) {
|
|
205
|
+
const nestedIndexes = new Map();
|
|
206
|
+
const nestedIndex = (root) => {
|
|
207
|
+
let index = nestedIndexes.get(root);
|
|
208
|
+
if (!index) {
|
|
209
|
+
index = new Map();
|
|
210
|
+
indexJsonlFiles(root, index);
|
|
211
|
+
nestedIndexes.set(root, index);
|
|
212
|
+
}
|
|
213
|
+
return index;
|
|
214
|
+
};
|
|
215
|
+
const found = new Map();
|
|
216
|
+
for (const id of sessionIds) {
|
|
217
|
+
if (!isPlainFileName(id) || found.has(id))
|
|
218
|
+
continue;
|
|
219
|
+
const name = `${id}.jsonl`;
|
|
220
|
+
let path;
|
|
221
|
+
for (const base of baseDirs) {
|
|
222
|
+
const root = join(base, "projects");
|
|
223
|
+
const flat = join(root, name);
|
|
224
|
+
path = isFile(flat) ? flat : nestedIndex(root).get(name);
|
|
225
|
+
if (path)
|
|
226
|
+
break;
|
|
227
|
+
}
|
|
228
|
+
if (!path)
|
|
229
|
+
continue;
|
|
230
|
+
try {
|
|
231
|
+
found.set(id, await parseSessionFile(path));
|
|
232
|
+
}
|
|
233
|
+
catch (err) {
|
|
234
|
+
log.warn(`reading session ${id} failed: ${errorMessage(err)}`);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
return Object.fromEntries(found);
|
|
238
|
+
}
|
|
239
|
+
function exitText(code, signal) {
|
|
240
|
+
if (code === null)
|
|
241
|
+
return `claude was terminated by signal ${signal ?? "unknown"}`;
|
|
242
|
+
return `claude exited with code ${code}`;
|
|
243
|
+
}
|
|
244
|
+
export const engine = {
|
|
245
|
+
async check(req) {
|
|
246
|
+
const path = findCli(req.config, "claude");
|
|
247
|
+
return { version: await cliVersion(path), path };
|
|
248
|
+
},
|
|
249
|
+
async run(req) {
|
|
250
|
+
const params = req.params;
|
|
251
|
+
const command = findCli(req.config, "claude");
|
|
252
|
+
const resume = params.resume && sessionExists(sessionBaseDirs(), params.session_id);
|
|
253
|
+
let outcome;
|
|
254
|
+
try {
|
|
255
|
+
outcome = await spawnCli({
|
|
256
|
+
command,
|
|
257
|
+
args: buildArgs({ ...params, resume }),
|
|
258
|
+
cwd: params.work_dir,
|
|
259
|
+
env: { DISABLE_AUTOUPDATER: "1" },
|
|
260
|
+
input: params.prompt,
|
|
261
|
+
logPath: params.log_path,
|
|
262
|
+
});
|
|
263
|
+
}
|
|
264
|
+
catch (err) {
|
|
265
|
+
throw new Error(`start claude: ${errorMessage(err)}`);
|
|
266
|
+
}
|
|
267
|
+
const scan = await scanResultLog(params.log_path);
|
|
268
|
+
const text = scan.result !== "" ? scan.result : scan.lastAssistantText;
|
|
269
|
+
if (outcome.code !== 0) {
|
|
270
|
+
const detail = scan.isError && scan.result !== "" ? scan.result : exitText(outcome.code, outcome.signal);
|
|
271
|
+
return { text, error: detail };
|
|
272
|
+
}
|
|
273
|
+
if (scan.isError)
|
|
274
|
+
return { text, error: scan.result !== "" ? scan.result : EMPTY_ERROR_TEXT };
|
|
275
|
+
return { text };
|
|
276
|
+
},
|
|
277
|
+
async usage(req) {
|
|
278
|
+
return collectUsage(claudeBaseDirs(), req.params.session_ids ?? []);
|
|
279
|
+
},
|
|
280
|
+
};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"protocol_version": 1,
|
|
3
|
+
"type": "engine",
|
|
4
|
+
"id": "claude",
|
|
5
|
+
"name": { "en": "Claude Code", "zh": "Claude Code" },
|
|
6
|
+
"description": { "en": "Runs tasks with Claude Code", "zh": "用 Claude Code 执行任务" },
|
|
7
|
+
"command": ["node", "dist/index.js"],
|
|
8
|
+
"config": [
|
|
9
|
+
{
|
|
10
|
+
"key": "path",
|
|
11
|
+
"type": "string",
|
|
12
|
+
"label": { "en": "Claude Code path", "zh": "Claude Code 路径" },
|
|
13
|
+
"help": { "en": "Leave empty to use claude on PATH", "zh": "留空则使用 PATH 里的 claude" }
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,46 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theopenbee/engine-claude",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Claude Code engine plugin for openbee",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"openbee",
|
|
7
|
+
"openbee-plugin",
|
|
8
|
+
"openbee-engine",
|
|
9
|
+
"claude",
|
|
10
|
+
"claude-code"
|
|
11
|
+
],
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "git+https://github.com/theopenbee/engine-claude.git"
|
|
16
|
+
},
|
|
17
|
+
"homepage": "https://github.com/theopenbee/engine-claude#readme",
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://github.com/theopenbee/engine-claude/issues"
|
|
20
|
+
},
|
|
21
|
+
"type": "module",
|
|
22
|
+
"main": "./dist/index.js",
|
|
23
|
+
"files": [
|
|
24
|
+
"dist",
|
|
25
|
+
"openbee.plugin.json"
|
|
26
|
+
],
|
|
27
|
+
"engines": {
|
|
28
|
+
"node": ">=20"
|
|
29
|
+
},
|
|
30
|
+
"publishConfig": {
|
|
31
|
+
"access": "public",
|
|
32
|
+
"registry": "https://registry.npmjs.org/"
|
|
33
|
+
},
|
|
34
|
+
"scripts": {
|
|
35
|
+
"build": "tsc -p tsconfig.json",
|
|
36
|
+
"test": "node --test test/*.test.mjs",
|
|
37
|
+
"prepare": "npm run build"
|
|
38
|
+
},
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@theopenbee/engine-sdk": "^0.1.0"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@types/node": "^22.10.0",
|
|
44
|
+
"typescript": "^5.7.0"
|
|
45
|
+
}
|
|
46
|
+
}
|