@opencode/server 0.0.0-dev-19660 → 0.0.0-dev-19666
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/handlers/shell.js +1 -4
- package/dist/handlers/vcs.js +1 -1
- package/package.json +8 -8
package/dist/handlers/shell.js
CHANGED
|
@@ -15,14 +15,11 @@ export const ShellHandler = HttpApiBuilder.group(Api, "server.shell", (handlers)
|
|
|
15
15
|
})).handle("shell.get", Effect.fn(function* (ctx) {
|
|
16
16
|
const shell = yield* Shell.Service;
|
|
17
17
|
return yield* response(shell.get(ctx.params.id).pipe(Effect.catchTag("Shell.NotFoundError", () => new ShellNotFoundError({ id: ctx.params.id, message: `Shell command not found: ${ctx.params.id}` }))));
|
|
18
|
-
})).handle("shell.timeout", Effect.fn(function* (ctx) {
|
|
19
|
-
const shell = yield* Shell.Service;
|
|
20
|
-
return yield* response(shell.timeout(ctx.params.id, ctx.payload.timeout).pipe(Effect.catchTag("Shell.NotFoundError", () => new ShellNotFoundError({ id: ctx.params.id, message: `Shell command not found: ${ctx.params.id}` }))));
|
|
21
18
|
})).handle("shell.output", Effect.fn(function* (ctx) {
|
|
22
19
|
const shell = yield* Shell.Service;
|
|
23
20
|
return yield* response(shell.output(ctx.params.id, { cursor: ctx.query.cursor, limit: ctx.query.limit }).pipe(Effect.catchTag("Shell.NotFoundError", () => new ShellNotFoundError({ id: ctx.params.id, message: `Shell command not found: ${ctx.params.id}` }))));
|
|
24
21
|
})).handle("shell.remove", Effect.fn(function* (ctx) {
|
|
25
|
-
yield* (yield* Shell.Service).remove(ctx.params.id).pipe(Effect.catchTag("Shell.NotFoundError", () =>
|
|
22
|
+
yield* (yield* Shell.Service).remove(ctx.params.id).pipe(Effect.catchTag("Shell.NotFoundError", () => Effect.void));
|
|
26
23
|
return HttpApiSchema.NoContent.make();
|
|
27
24
|
}));
|
|
28
25
|
}));
|
package/dist/handlers/vcs.js
CHANGED
|
@@ -11,7 +11,7 @@ export const VcsHandler = HttpApiBuilder.group(Api, "server.vcs", (handlers) =>
|
|
|
11
11
|
return yield* (yield* Vcs.Service).base().pipe(Effect.mapError((error) => new ServiceUnavailableError({ service: "vcs", message: error.message })));
|
|
12
12
|
}))).handle("vcs.status", () => response(Effect.gen(function* () {
|
|
13
13
|
return yield* (yield* Vcs.Service).status();
|
|
14
|
-
}))).handle("vcs.
|
|
14
|
+
}))).handle("vcs.branch.list", (ctx) => response(Effect.gen(function* () {
|
|
15
15
|
return yield* (yield* Vcs.Service).branches({ search: ctx.query.search, limit: Math.min(ctx.query.limit ?? 50, 100) });
|
|
16
16
|
}))).handle("vcs.diff", (ctx) => response(Effect.gen(function* () {
|
|
17
17
|
return yield* (yield* Vcs.Service).diff(ctx.query.mode, { context: ctx.query.context, base: ctx.query.base }).pipe(Effect.mapError((error) => new ServiceUnavailableError({ service: "vcs", message: error.message })));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@opencode/server",
|
|
4
|
-
"version": "0.0.0-dev-
|
|
4
|
+
"version": "0.0.0-dev-19666",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -30,17 +30,17 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@effect/platform-node": "4.0.0-rc.112",
|
|
32
32
|
"@effect/platform-node-shared": "4.0.0-rc.112",
|
|
33
|
-
"@opencode/core": "0.0.0-dev-
|
|
34
|
-
"@opencode/protocol": "0.0.0-dev-
|
|
35
|
-
"@opencode/schema": "0.0.0-dev-
|
|
36
|
-
"@opencode/simulation": "0.0.0-dev-
|
|
37
|
-
"@opencode/util": "0.0.0-dev-
|
|
33
|
+
"@opencode/core": "0.0.0-dev-19666",
|
|
34
|
+
"@opencode/protocol": "0.0.0-dev-19666",
|
|
35
|
+
"@opencode/schema": "0.0.0-dev-19666",
|
|
36
|
+
"@opencode/simulation": "0.0.0-dev-19666",
|
|
37
|
+
"@opencode/util": "0.0.0-dev-19666",
|
|
38
38
|
"drizzle-orm": "1.0.0-rc.5-169397b",
|
|
39
39
|
"effect": "4.0.0-rc.112"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@opencode/client": "0.0.0-dev-
|
|
43
|
-
"@opencode/plugin": "0.0.0-dev-
|
|
42
|
+
"@opencode/client": "0.0.0-dev-19666",
|
|
43
|
+
"@opencode/plugin": "0.0.0-dev-19666",
|
|
44
44
|
"@tsconfig/bun": "1.0.9",
|
|
45
45
|
"@types/bun": "1.4.0",
|
|
46
46
|
"@typescript/native-preview": "7.0.0-dev.20251207.1"
|