@opencode/protocol 0.0.0-dev-963 → 0.0.0-dev-968
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/groups/skill.d.ts +2 -1
- package/dist/groups/skill.js +2 -0
- package/package.json +2 -2
package/dist/groups/skill.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
|
|
3
|
+
import { ServiceUnavailableError } from "../errors.js";
|
|
3
4
|
export declare const SkillGroup: HttpApiGroup.HttpApiGroup<"server.skill", HttpApiEndpoint.HttpApiEndpoint<"skill.list", "GET", "/api/skill", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
4
5
|
readonly location: Schema.optional<Schema.Struct<{
|
|
5
6
|
readonly directory: Schema.optional<Schema.String>;
|
|
@@ -16,4 +17,4 @@ export declare const SkillGroup: HttpApiGroup.HttpApiGroup<"server.skill", HttpA
|
|
|
16
17
|
readonly path: Schema.brand<Schema.String, "AbsolutePath">;
|
|
17
18
|
readonly content: Schema.String;
|
|
18
19
|
}>>;
|
|
19
|
-
}>>,
|
|
20
|
+
}>>, Schema.toCodecJson<typeof ServiceUnavailableError>, never, never>, false>;
|
package/dist/groups/skill.js
CHANGED
|
@@ -2,11 +2,13 @@ import { Skill } from "@opencode/schema/skill";
|
|
|
2
2
|
import { Location } from "@opencode/schema/location";
|
|
3
3
|
import { Schema } from "effect";
|
|
4
4
|
import { HttpApiEndpoint, HttpApiGroup, OpenApi } from "effect/http-api";
|
|
5
|
+
import { ServiceUnavailableError } from "../errors.js";
|
|
5
6
|
import { LocationQuery, locationQueryOpenApi } from "./location.js";
|
|
6
7
|
export const SkillGroup = HttpApiGroup.make("server.skill")
|
|
7
8
|
.add(HttpApiEndpoint.get("skill.list", "/api/skill", {
|
|
8
9
|
query: LocationQuery,
|
|
9
10
|
success: Location.response(Schema.Array(Skill.Info)),
|
|
11
|
+
error: ServiceUnavailableError,
|
|
10
12
|
})
|
|
11
13
|
.annotateMerge(locationQueryOpenApi)
|
|
12
14
|
.annotateMerge(OpenApi.annotations({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@opencode/protocol",
|
|
4
|
-
"version": "0.0.0-dev-
|
|
4
|
+
"version": "0.0.0-dev-968",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"typecheck:tsc": "tsc --noEmit"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@opencode/schema": "0.0.0-dev-
|
|
38
|
+
"@opencode/schema": "0.0.0-dev-968",
|
|
39
39
|
"effect": "4.1.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|