Skip to content

Commit 7b35edf

Browse files
committed
Merge branch 'main' into feature/cleanup-task-creation
2 parents e1f9757 + 9c7c2c6 commit 7b35edf

File tree

69 files changed

+2202
-1955
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+2202
-1955
lines changed

CLAUDE.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,16 @@
4242
- TypeScript strict mode enabled
4343
- Tailwind CSS classes should be sorted (biome `useSortedClasses` rule)
4444

45+
### Avoid Barrel Files
46+
47+
Barrel files:
48+
- Break tree-shaking
49+
- Create circular dependency risks
50+
- Hide the true source of imports
51+
- Make refactoring harder
52+
53+
Import directly from source files instead.
54+
4555
## Architecture
4656

4757
### Electron App (apps/array)

apps/array/knip.json

Lines changed: 0 additions & 19 deletions
This file was deleted.

apps/array/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
"build-icons": "bash scripts/generate-icns.sh",
2121
"typecheck": "tsc -p tsconfig.node.json --noEmit && tsc -p tsconfig.web.json --noEmit",
2222
"generate-client": "tsx scripts/update-openapi-client.ts",
23-
"knip": "knip",
2423
"test": "vitest run",
2524
"postinstall": "cd ../.. && npx @electron/rebuild -f -m node_modules/node-pty || true"
2625
},
@@ -54,7 +53,6 @@
5453
"electron": "^30.0.0",
5554
"husky": "^9.1.7",
5655
"jsdom": "^26.0.0",
57-
"knip": "^5.66.3",
5856
"lint-staged": "^15.5.2",
5957
"postcss": "^8.4.33",
6058
"tailwindcss": "^3.4.1",
@@ -129,6 +127,7 @@
129127
"file-icon": "^6.0.0",
130128
"idb-keyval": "^6.2.2",
131129
"inversify": "^7.10.6",
130+
"immer": "^11.0.1",
132131
"is-glob": "^4.0.3",
133132
"micromatch": "^4.0.5",
134133
"node-addon-api": "^8.5.0",

apps/array/src/api/posthogClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import type { StoredLogEntry } from "@features/sessions/utils/parseSessionLogs";
21
import type { AgentEvent } from "@posthog/agent";
32
import { logger } from "@renderer/lib/logger";
43
import type { Task, TaskRun } from "@shared/types";
4+
import type { StoredLogEntry } from "@shared/types/session-events";
55
import { buildApiFetcher } from "./fetcher";
66
import { createApiClient, type Schemas } from "./generated";
77

apps/array/src/main/index.ts

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
1+
declare const __BUILD_COMMIT__: string | undefined;
2+
declare const __BUILD_DATE__: string | undefined;
3+
14
import "reflect-metadata";
25
import dns from "node:dns";
36
import { mkdirSync } from "node:fs";
7+
import os from "node:os";
48
import path from "node:path";
59
import { fileURLToPath } from "node:url";
610
import {
711
app,
812
BrowserWindow,
13+
clipboard,
14+
dialog,
915
ipcMain,
1016
Menu,
1117
type MenuItemConstructorOptions,
@@ -120,7 +126,38 @@ function createWindow(): void {
120126
{
121127
label: "Array",
122128
submenu: [
123-
{ role: "about" },
129+
{
130+
label: "About Array",
131+
click: () => {
132+
const commit = __BUILD_COMMIT__ ?? "dev";
133+
const buildDate = __BUILD_DATE__ ?? "dev";
134+
const info = [
135+
`Version: ${app.getVersion()}`,
136+
`Commit: ${commit}`,
137+
`Date: ${buildDate}`,
138+
`Electron: ${process.versions.electron}`,
139+
`Chromium: ${process.versions.chrome}`,
140+
`Node.js: ${process.versions.node}`,
141+
`V8: ${process.versions.v8}`,
142+
`OS: ${process.platform} ${process.arch} ${os.release()}`,
143+
].join("\n");
144+
145+
dialog
146+
.showMessageBox({
147+
type: "info",
148+
title: "About Array",
149+
message: "Array",
150+
detail: info,
151+
buttons: ["Copy", "OK"],
152+
defaultId: 1,
153+
})
154+
.then((result) => {
155+
if (result.response === 0) {
156+
clipboard.writeText(info);
157+
}
158+
});
159+
},
160+
},
124161
{ type: "separator" },
125162
{
126163
label: "Check for Updates...",

0 commit comments

Comments
 (0)