@opencode-ai/server 0.0.0-dev-18082 → 0.0.0-dev-18084
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/handlers/session.js +2 -6
- package/package.json +6 -6
package/dist/handlers/session.js
CHANGED
|
@@ -54,8 +54,6 @@ export const SessionHandler = HttpApiBuilder.group(Api, "server.session", (handl
|
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
56
|
})).handle("session.stats", Effect.fn(function* (ctx) {
|
|
57
|
-
if (ctx.query.from !== void 0 && ctx.query.to !== void 0 && ctx.query.from >= ctx.query.to)
|
|
58
|
-
return yield* new InvalidRequestError({ message: "Stats range must end after it starts" });
|
|
59
57
|
const timezone = ctx.query.timezone ?? "UTC";
|
|
60
58
|
yield* Effect.try({
|
|
61
59
|
try: () => new Intl.DateTimeFormat("en-US", { timeZone: timezone }),
|
|
@@ -67,10 +65,8 @@ export const SessionHandler = HttpApiBuilder.group(Api, "server.session", (handl
|
|
|
67
65
|
to: ctx.query.to,
|
|
68
66
|
projectID: ctx.query.project,
|
|
69
67
|
timezone,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
toolSummary: ctx.query.toolSummary
|
|
73
|
-
})
|
|
68
|
+
tools: ctx.query.tools
|
|
69
|
+
}).pipe(Effect.mapError(() => new InvalidRequestError({ message: "Stats range must end after it starts" })))
|
|
74
70
|
};
|
|
75
71
|
})).handle("session.create", Effect.fn(function* (ctx) {
|
|
76
72
|
return {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@opencode-ai/server",
|
|
4
|
-
"version": "0.0.0-dev-
|
|
4
|
+
"version": "0.0.0-dev-18084",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@effect/platform-node": "4.0.0-rc.111",
|
|
32
|
-
"@opencode-ai/core": "0.0.0-dev-
|
|
33
|
-
"@opencode-ai/protocol": "0.0.0-dev-
|
|
34
|
-
"@opencode-ai/schema": "0.0.0-dev-
|
|
35
|
-
"@opencode-ai/simulation": "0.0.0-dev-
|
|
36
|
-
"@opencode-ai/util": "0.0.0-dev-
|
|
32
|
+
"@opencode-ai/core": "0.0.0-dev-18084",
|
|
33
|
+
"@opencode-ai/protocol": "0.0.0-dev-18084",
|
|
34
|
+
"@opencode-ai/schema": "0.0.0-dev-18084",
|
|
35
|
+
"@opencode-ai/simulation": "0.0.0-dev-18084",
|
|
36
|
+
"@opencode-ai/util": "0.0.0-dev-18084",
|
|
37
37
|
"drizzle-orm": "1.0.0-rc.5-169397b",
|
|
38
38
|
"effect": "4.0.0-rc.111"
|
|
39
39
|
},
|