@opencode/protocol 0.0.0-dev-19607 → 0.0.0-dev-19610

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.
@@ -10605,7 +10605,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
10605
10605
  readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
10606
10606
  }>;
10607
10607
  }>]>;
10608
- }>>, Schema.toCodecJson<typeof SessionNotFoundError | typeof MessageNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.environment", "PUT", "/api/session/:sessionID/environment", Schema.toCodecStringTree<Schema.Struct<{
10608
+ }>>, Schema.toCodecJson<typeof SessionNotFoundError | typeof MessageNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.environment", "PUT", "/api/experimental/session/:sessionID/environment", Schema.toCodecStringTree<Schema.Struct<{
10609
10609
  sessionID: Schema.brand<Schema.String, "SessionID"> & {
10610
10610
  create: () => string & import("effect/Brand").Brand<"SessionID">;
10611
10611
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -10618,6 +10618,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
10618
10618
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
10619
10619
  };
10620
10620
  }>>, never, Schema.toCodecJson<Schema.Struct<{
10621
- readonly idle: Schema.Int;
10621
+ readonly idle: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
10622
10622
  }>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError>, never, never>, false>;
10623
10623
  export {};
@@ -5,7 +5,7 @@ import { Session } from "@opencode/schema/session";
5
5
  import { SessionStats } from "@opencode/schema/session-stats";
6
6
  import { InstructionEntry } from "@opencode/schema/instruction-entry";
7
7
  import { Project } from "@opencode/schema/project";
8
- import { AbsolutePath, NonNegativeInt, PositiveInt, RelativePath, statics } from "@opencode/schema/schema";
8
+ import { AbsolutePath, DateTimeUtcFromMillis, NonNegativeInt, PositiveInt, RelativePath, statics, } from "@opencode/schema/schema";
9
9
  import { Event } from "@opencode/schema/event";
10
10
  import { Context, Effect, Encoding, Result, Schema, SchemaGetter, Struct } from "effect";
11
11
  import { HttpApiEndpoint, HttpApiGroup, HttpApiMiddleware, HttpApiSchema, OpenApi } from "effect/unstable/httpapi";
@@ -563,19 +563,19 @@ export const makeSessionGroup = (sessionLocationMiddleware) => HttpApiGroup.make
563
563
  summary: "Get session message",
564
564
  description: "Retrieve one projected message owned by the Session.",
565
565
  })))
566
- .add(HttpApiEndpoint.put("session.environment", "/api/session/:sessionID/environment", {
566
+ .add(HttpApiEndpoint.put("session.environment", "/api/experimental/session/:sessionID/environment", {
567
567
  params: { sessionID: Session.ID },
568
568
  payload: Schema.Struct({ variables: Schema.Record(Schema.String, Schema.String) }),
569
569
  success: HttpApiSchema.NoContent,
570
570
  error: SessionNotFoundError,
571
571
  }).annotateMerge(OpenApi.annotations({
572
- identifier: "session.environment",
572
+ identifier: "experimental.session.environment",
573
573
  summary: "Set session environment",
574
574
  description: "Replace the process environment used by local shell commands for this session.",
575
575
  })))
576
576
  .add(HttpApiEndpoint.post("session.view", "/api/session/:sessionID/view", {
577
577
  params: { sessionID: Session.ID },
578
- payload: Schema.Struct({ idle: NonNegativeInt }),
578
+ payload: Schema.Struct({ idle: DateTimeUtcFromMillis }),
579
579
  success: HttpApiSchema.NoContent,
580
580
  error: SessionNotFoundError,
581
581
  }).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-19607",
4
+ "version": "0.0.0-dev-19610",
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-19607",
35
+ "@opencode/schema": "0.0.0-dev-19610",
36
36
  "effect": "4.0.0-rc.112"
37
37
  },
38
38
  "devDependencies": {