@opencode-ai/protocol 0.0.0-dev-18082 → 0.0.0-dev-18083
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/session.d.ts +28 -17
- package/dist/groups/session.js +1 -3
- package/package.json +2 -2
package/dist/groups/session.d.ts
CHANGED
|
@@ -399,9 +399,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
399
399
|
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
400
400
|
}>;
|
|
401
401
|
readonly timezone: Schema.optional<Schema.String>;
|
|
402
|
-
readonly
|
|
403
|
-
readonly tools: Schema.optional<Schema.decodeTo<Schema.Boolean, Schema.Literals<readonly ["true", "false"]>, never, never>>;
|
|
404
|
-
readonly toolSummary: Schema.optional<Schema.decodeTo<Schema.Boolean, Schema.Literals<readonly ["true", "false"]>, never, never>>;
|
|
402
|
+
readonly tools: Schema.optional<Schema.Literals<readonly ["none", "summary", "detail"]>>;
|
|
405
403
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
406
404
|
readonly data: Schema.Struct<{
|
|
407
405
|
readonly range: Schema.Struct<{
|
|
@@ -424,12 +422,33 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
424
422
|
readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
425
423
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
426
424
|
};
|
|
427
|
-
readonly tools: Schema.Struct<{
|
|
428
|
-
readonly
|
|
429
|
-
|
|
430
|
-
readonly
|
|
431
|
-
readonly
|
|
432
|
-
|
|
425
|
+
readonly tools: Schema.Union<readonly [Schema.Struct<{
|
|
426
|
+
readonly mode: Schema.Literal<"none">;
|
|
427
|
+
}>, Schema.Struct<{
|
|
428
|
+
readonly mode: Schema.Literal<"summary">;
|
|
429
|
+
readonly totals: Schema.Struct<{
|
|
430
|
+
readonly calls: Schema.Int;
|
|
431
|
+
readonly succeeded: Schema.Int;
|
|
432
|
+
readonly failed: Schema.Int;
|
|
433
|
+
readonly unfinished: Schema.Int;
|
|
434
|
+
}>;
|
|
435
|
+
}>, Schema.Struct<{
|
|
436
|
+
readonly mode: Schema.Literal<"detail">;
|
|
437
|
+
readonly totals: Schema.Struct<{
|
|
438
|
+
readonly calls: Schema.Int;
|
|
439
|
+
readonly succeeded: Schema.Int;
|
|
440
|
+
readonly failed: Schema.Int;
|
|
441
|
+
readonly unfinished: Schema.Int;
|
|
442
|
+
}>;
|
|
443
|
+
readonly usage: Schema.$Array<Schema.Struct<{
|
|
444
|
+
readonly name: Schema.String;
|
|
445
|
+
readonly calls: Schema.Int;
|
|
446
|
+
readonly succeeded: Schema.Int;
|
|
447
|
+
readonly failed: Schema.Int;
|
|
448
|
+
readonly unfinished: Schema.Int;
|
|
449
|
+
readonly durationP50: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
450
|
+
}>>;
|
|
451
|
+
}>]>;
|
|
433
452
|
readonly activeDays: Schema.Int;
|
|
434
453
|
readonly streak: Schema.Int;
|
|
435
454
|
readonly activity: Schema.$Array<Schema.Struct<{
|
|
@@ -474,14 +493,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
474
493
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
475
494
|
};
|
|
476
495
|
}>>;
|
|
477
|
-
readonly toolUsage: Schema.$Array<Schema.Struct<{
|
|
478
|
-
readonly name: Schema.String;
|
|
479
|
-
readonly calls: Schema.Int;
|
|
480
|
-
readonly succeeded: Schema.Int;
|
|
481
|
-
readonly failed: Schema.Int;
|
|
482
|
-
readonly unfinished: Schema.Int;
|
|
483
|
-
readonly durationP50: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
484
|
-
}>>;
|
|
485
496
|
}>;
|
|
486
497
|
}>>, Schema.toCodecJson<typeof InvalidRequestError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.create", "POST", "/api/session", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
487
498
|
readonly id: Schema.optional<Schema.brand<Schema.String, "SessionID"> & {
|
package/dist/groups/session.js
CHANGED
|
@@ -112,9 +112,7 @@ export const makeSessionGroup = (sessionLocationMiddleware) => HttpApiGroup.make
|
|
|
112
112
|
to: Schema.NumberFromString.pipe(Schema.optional),
|
|
113
113
|
project: Project.ID.pipe(Schema.optional),
|
|
114
114
|
timezone: Schema.String.pipe(Schema.optional),
|
|
115
|
-
|
|
116
|
-
tools: BooleanFromString.pipe(Schema.optional),
|
|
117
|
-
toolSummary: BooleanFromString.pipe(Schema.optional),
|
|
115
|
+
tools: SessionStats.ToolMode.pipe(Schema.optional),
|
|
118
116
|
}),
|
|
119
117
|
success: Schema.Struct({ data: SessionStats.Info }),
|
|
120
118
|
error: InvalidRequestError,
|
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-dev-
|
|
4
|
+
"version": "0.0.0-dev-18083",
|
|
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-ai/schema": "0.0.0-dev-
|
|
35
|
+
"@opencode-ai/schema": "0.0.0-dev-18083",
|
|
36
36
|
"effect": "4.0.0-rc.111"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|