@opencode-ai/protocol 0.0.0-next-17073 → 0.0.0-next-17077

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.
@@ -1,10 +1,10 @@
1
1
  import { Integration } from "@opencode-ai/schema/integration";
2
2
  import { Location } from "@opencode-ai/schema/location";
3
+ import { Form } from "@opencode-ai/schema/form";
3
4
  import { Schema } from "effect";
4
5
  import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/unstable/httpapi";
5
6
  import { InvalidRequestError } from "../errors.js";
6
7
  import { LocationQuery, locationQueryOpenApi } from "./location.js";
7
- const Inputs = Schema.Record(Schema.String, Schema.String);
8
8
  export const IntegrationGroup = HttpApiGroup.make("server.integration")
9
9
  .add(HttpApiEndpoint.get("integration.list", "/api/integration", {
10
10
  query: LocationQuery,
@@ -44,6 +44,7 @@ export const IntegrationGroup = HttpApiGroup.make("server.integration")
44
44
  query: LocationQuery,
45
45
  payload: Schema.Struct({
46
46
  key: Schema.String,
47
+ answer: Schema.optional(Form.Answer),
47
48
  label: Schema.optional(Schema.String),
48
49
  }),
49
50
  success: HttpApiSchema.NoContent,
@@ -60,7 +61,7 @@ export const IntegrationGroup = HttpApiGroup.make("server.integration")
60
61
  query: LocationQuery,
61
62
  payload: Schema.Struct({
62
63
  methodID: Integration.MethodID,
63
- inputs: Inputs,
64
+ answer: Schema.optional(Form.Answer),
64
65
  label: Schema.optional(Schema.String),
65
66
  }),
66
67
  success: Location.response(Integration.Attempt),
@@ -7301,6 +7301,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
7301
7301
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7302
7302
  readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
7303
7303
  readonly slug: string;
7304
+ readonly title?: string | undefined;
7304
7305
  readonly model?: {
7305
7306
  readonly id: string & import("effect/Brand").Brand<"Model.ID">;
7306
7307
  readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -7309,7 +7310,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
7309
7310
  readonly agent?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
7310
7311
  readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
7311
7312
  readonly parentID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
7312
- readonly title?: string | undefined;
7313
7313
  };
7314
7314
  readonly durable: {
7315
7315
  readonly aggregateID: string;
@@ -7417,7 +7417,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
7417
7417
  } | {
7418
7418
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7419
7419
  readonly data: {
7420
- readonly source: "compaction" | "title";
7420
+ readonly source: "title" | "compaction";
7421
7421
  readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
7422
7422
  readonly tokens: {
7423
7423
  readonly input: number;
@@ -7808,11 +7808,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
7808
7808
  readonly [x: string]: unknown;
7809
7809
  };
7810
7810
  readonly command: string;
7811
+ readonly status: "running" | "exited" | "timeout" | "killed";
7811
7812
  readonly time: {
7812
7813
  readonly started: number;
7813
7814
  readonly completed?: number | undefined;
7814
7815
  };
7815
- readonly status: "running" | "exited" | "timeout" | "killed";
7816
7816
  readonly cwd: string;
7817
7817
  readonly shell: string;
7818
7818
  readonly file: string;
@@ -7844,11 +7844,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
7844
7844
  readonly [x: string]: unknown;
7845
7845
  };
7846
7846
  readonly command: string;
7847
+ readonly status: "running" | "exited" | "timeout" | "killed";
7847
7848
  readonly time: {
7848
7849
  readonly started: number;
7849
7850
  readonly completed?: number | undefined;
7850
7851
  };
7851
- readonly status: "running" | "exited" | "timeout" | "killed";
7852
7852
  readonly cwd: string;
7853
7853
  readonly shell: string;
7854
7854
  readonly file: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode-ai/protocol",
4
- "version": "0.0.0-next-17073",
4
+ "version": "0.0.0-next-17077",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -28,7 +28,7 @@
28
28
  "typecheck": "tsgo --noEmit"
29
29
  },
30
30
  "dependencies": {
31
- "@opencode-ai/schema": "0.0.0-next-17073",
31
+ "@opencode-ai/schema": "0.0.0-next-17077",
32
32
  "effect": "4.0.0-beta.101"
33
33
  },
34
34
  "devDependencies": {