@opencode/protocol 0.0.0-dev-19550 → 0.0.0-dev-19551
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/project.d.ts +1 -12
- package/dist/groups/project.js +0 -11
- package/package.json +2 -2
package/dist/groups/project.d.ts
CHANGED
|
@@ -76,15 +76,4 @@ export declare const ProjectGroup: HttpApiGroup.HttpApiGroup<"server.project", H
|
|
|
76
76
|
readonly initialized: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
77
77
|
}>;
|
|
78
78
|
readonly sandboxes: Schema.$Array<Schema.String>;
|
|
79
|
-
}>>, Schema.toCodecJson<typeof ProjectNotFoundError>, never, never
|
|
80
|
-
readonly location: Schema.optional<Schema.Struct<{
|
|
81
|
-
readonly directory: Schema.optional<Schema.String>;
|
|
82
|
-
readonly workspace: Schema.optional<Schema.String>;
|
|
83
|
-
}>>;
|
|
84
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
85
|
-
readonly id: Schema.brand<Schema.String, "Project.ID"> & {
|
|
86
|
-
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
87
|
-
};
|
|
88
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
89
|
-
readonly canonical: Schema.brand<Schema.String, "AbsolutePath">;
|
|
90
|
-
}>>, never, never, never>, false>;
|
|
79
|
+
}>>, Schema.toCodecJson<typeof ProjectNotFoundError>, never, never>, false>;
|
package/dist/groups/project.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Project } from "@opencode/schema/project";
|
|
2
2
|
import { Schema, Struct } from "effect";
|
|
3
3
|
import { HttpApiEndpoint, HttpApiGroup, OpenApi } from "effect/unstable/httpapi";
|
|
4
|
-
import { LocationQuery, locationQueryOpenApi } from "./location.js";
|
|
5
4
|
import { ProjectNotFoundError } from "../errors.js";
|
|
6
5
|
const root = "/api/project";
|
|
7
6
|
const UpdatePayload = Schema.Struct(Struct.omit(Project.UpdateInput.fields, ["projectID"]));
|
|
@@ -22,16 +21,6 @@ export const ProjectGroup = HttpApiGroup.make("server.project")
|
|
|
22
21
|
identifier: "v2.project.update",
|
|
23
22
|
summary: "Update project",
|
|
24
23
|
description: "Update the project canonical directory, display metadata, and workspace commands.",
|
|
25
|
-
})))
|
|
26
|
-
.add(HttpApiEndpoint.get("project.current", `${root}/current`, {
|
|
27
|
-
query: LocationQuery,
|
|
28
|
-
success: Project.Current,
|
|
29
|
-
})
|
|
30
|
-
.annotateMerge(locationQueryOpenApi)
|
|
31
|
-
.annotateMerge(OpenApi.annotations({
|
|
32
|
-
identifier: "v2.project.current",
|
|
33
|
-
summary: "Get current project",
|
|
34
|
-
description: "Resolve the project for the requested location.",
|
|
35
24
|
})))
|
|
36
25
|
.annotateMerge(OpenApi.annotations({
|
|
37
26
|
title: "project",
|
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-19551",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"typecheck": "tsgo --noEmit"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@opencode/schema": "0.0.0-dev-
|
|
35
|
+
"@opencode/schema": "0.0.0-dev-19551",
|
|
36
36
|
"effect": "4.0.0-rc.112"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|