@opencode/protocol 0.0.0-dev-1328 → 0.0.0-dev-1329

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.
@@ -3,7 +3,7 @@ import { Session } from "@opencode/schema/session";
3
3
  import { Schema } from "effect";
4
4
  import { HttpApiEndpoint, HttpApiSchema, OpenApi } from "effect/http-api";
5
5
  import { AutomationNotFoundError, ForbiddenError, InvalidRequestError, SessionNotFoundError } from "../errors.js";
6
- const EXPERIMENTAL = "Experimental: needs experimental.automations in the config of the automation's directory and may change without compatibility guarantees.";
6
+ const EXPERIMENTAL = "Experimental: may change without compatibility guarantees. Set automations to false in the directory's config to disable access.";
7
7
  const errors = [AutomationNotFoundError, ForbiddenError];
8
8
  const params = { automationID: Automation.ID };
9
9
  const annotations = (identifier, summary, description) => OpenApi.annotations({
@@ -686,7 +686,7 @@ export declare const ExperimentalGroup: import("effect/http-api/HttpApiGroup").H
686
686
  }>>;
687
687
  }>>, import("effect/Schema").toCodecJson<typeof import("../errors.js").ForbiddenError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"machine.remove", "DELETE", "/api/experimental/machine/:name", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
688
688
  name: import("effect/Schema").String;
689
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/http-api/HttpApiSchema").NoContent>, import("effect/Schema").toCodecJson<typeof import("../errors.js").ForbiddenError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"media.get", "GET", "/api/experimental/media/:hash", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
689
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/http-api/HttpApiSchema").NoContent>, import("effect/Schema").toCodecJson<typeof import("../errors.js").ForbiddenError | typeof import("../errors.js").MachineNotFoundError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"media.get", "GET", "/api/experimental/media/:hash", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
690
690
  hash: import("effect/Schema").String;
691
691
  }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Uint8Array>, import("effect/Schema").toCodecJson<typeof import("../errors.js").InvalidRequestError | typeof import("../errors.js").FileNotFoundError>, never, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"persistentPty.connect", "GET", "/api/experimental/persistent-pty/:ptyID/connect", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
692
692
  ptyID: import("effect/Schema").brand<import("effect/Schema").String, "PtyID"> & {
@@ -73,4 +73,4 @@ export declare const MachineEndpoints: readonly [HttpApiEndpoint.HttpApiEndpoint
73
73
  }>;
74
74
  }>>, Schema.toCodecJson<typeof InvalidRequestError | typeof ConflictError | typeof ForbiddenError | typeof MachineNotFoundError>, never, never>, HttpApiEndpoint.HttpApiEndpoint<"machine.remove", "DELETE", "/api/experimental/machine/:name", Schema.toCodecStringTree<Schema.Struct<{
75
75
  name: Schema.String;
76
- }>>, never, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof ForbiddenError>, never, never>];
76
+ }>>, never, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof ForbiddenError | typeof MachineNotFoundError>, never, never>];
@@ -70,6 +70,6 @@ export const MachineEndpoints = [
70
70
  HttpApiEndpoint.delete("machine.remove", "/api/experimental/machine/:name", {
71
71
  params: { name: Schema.String },
72
72
  success: HttpApiSchema.NoContent,
73
- error: [ForbiddenError],
73
+ error: [ForbiddenError, MachineNotFoundError],
74
74
  }).annotateMerge(annotations("remove", "Remove a machine", "Forget a machine by name, closing any live link and revoking its key.")),
75
75
  ];
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-1328",
4
+ "version": "0.0.0-dev-1329",
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-1328",
38
+ "@opencode/schema": "0.0.0-dev-1329",
39
39
  "effect": "4.1.0"
40
40
  },
41
41
  "devDependencies": {