@opencode/protocol 0.0.0-dev-1074 → 0.0.0-dev-1112

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.
@@ -8856,7 +8856,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
8856
8856
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8857
8857
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8858
8858
  };
8859
- readonly source: Schema.Literals<readonly ["title", "compaction"]>;
8859
+ readonly source: Schema.Literals<readonly ["title", "compaction", "generate"]>;
8860
8860
  readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
8861
8861
  zero: number & import("effect/Brand").Brand<"Money.USD">;
8862
8862
  };
@@ -8881,7 +8881,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
8881
8881
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8882
8882
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8883
8883
  };
8884
- readonly source: Schema.Literals<readonly ["title", "compaction"]>;
8884
+ readonly source: Schema.Literals<readonly ["title", "compaction", "generate"]>;
8885
8885
  readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
8886
8886
  zero: number & import("effect/Brand").Brand<"Money.USD">;
8887
8887
  };
@@ -10515,7 +10515,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
10515
10515
  } | undefined;
10516
10516
  readonly data: {
10517
10517
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
10518
- readonly source: "compaction" | "title";
10518
+ readonly source: "compaction" | "generate" | "title";
10519
10519
  readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
10520
10520
  readonly tokens: {
10521
10521
  readonly input: number;
@@ -461,7 +461,7 @@ export const makeSessionGroup = (sessionLocationMiddleware, formLocationMiddlewa
461
461
  .annotateMerge(OpenApi.annotations({
462
462
  identifier: "session.generate",
463
463
  summary: "Generate text from session context",
464
- description: "Generate transient text from the current session context without mutating session history.",
464
+ description: "Generate transient text from the current session context without mutating session history. Its tokens and cost count toward the session's totals.",
465
465
  })))
466
466
  .add(HttpApiEndpoint.get("session.log", "/api/experimental/session/:sessionID/log", {
467
467
  params: { sessionID: Session.ID },
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-1074",
4
+ "version": "0.0.0-dev-1112",
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-1074",
38
+ "@opencode/schema": "0.0.0-dev-1112",
39
39
  "effect": "4.1.0"
40
40
  },
41
41
  "devDependencies": {