Skip to content

Commit 78fea98

Browse files
committed
chore(release): prepare v0.0.7
1 parent 27a30c5 commit 78fea98

5 files changed

Lines changed: 17 additions & 9 deletions

File tree

apps/desktop/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@okcode/desktop",
3-
"version": "0.0.6",
3+
"version": "0.0.7",
44
"private": true,
55
"main": "dist-electron/main.js",
66
"scripts": {

apps/server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "okcodes",
3-
"version": "0.0.6",
3+
"version": "0.0.7",
44
"license": "MIT",
55
"repository": {
66
"type": "git",

apps/web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@okcode/web",
3-
"version": "0.0.6",
3+
"version": "0.0.7",
44
"private": true,
55
"type": "module",
66
"scripts": {

apps/web/src/routes/_chat.file-view.tsx

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { FileCodeIcon } from "lucide-react";
44
import { FileViewShell } from "~/components/file-view/FileViewShell";
55
import { ProjectSubpageShell } from "~/components/review/ProjectSubpageShell";
66

7-
interface FileViewSearch {
7+
export interface FileViewSearch {
88
cwd?: string;
99
path?: string;
1010
}
@@ -26,9 +26,17 @@ function FileViewRouteView() {
2626
}
2727

2828
export const Route = createFileRoute("/_chat/file-view")({
29-
validateSearch: (search: Record<string, unknown>): FileViewSearch => ({
30-
cwd: typeof search.cwd === "string" ? search.cwd : undefined,
31-
path: typeof search.path === "string" ? search.path : undefined,
32-
}),
29+
validateSearch: (search: Record<string, unknown>): FileViewSearch => {
30+
const validatedSearch: FileViewSearch = {};
31+
32+
if (typeof search.cwd === "string") {
33+
validatedSearch.cwd = search.cwd;
34+
}
35+
if (typeof search.path === "string") {
36+
validatedSearch.path = search.path;
37+
}
38+
39+
return validatedSearch;
40+
},
3341
component: FileViewRouteView,
3442
});

packages/contracts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@okcode/contracts",
3-
"version": "0.0.6",
3+
"version": "0.0.7",
44
"private": true,
55
"files": [
66
"dist"

0 commit comments

Comments
 (0)