Skip to content

Commit 65c30a8

Browse files
committed
Migrate or flag Array usage to Twig
1 parent 4f46438 commit 65c30a8

25 files changed

Lines changed: 56 additions & 44 deletions

File tree

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @PostHog/array
1+
* @PostHog/twig

.vscode/launch.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"version": "0.2.0",
33
"configurations": [
44
{
5-
"name": "Debug Array (Main Process)",
5+
"name": "Debug Twig (Main Process)",
66
"type": "node",
77
"request": "attach",
88
"port": 5858,
@@ -15,11 +15,11 @@
1515
"remoteRoot": "${workspaceFolder}"
1616
},
1717
{
18-
"name": "Debug Array (Renderer Process)",
18+
"name": "Debug Twig (Renderer Process)",
1919
"type": "chrome",
2020
"request": "attach",
2121
"port": 9222,
22-
"webRoot": "${workspaceFolder}/apps/array",
22+
"webRoot": "${workspaceFolder}/apps/twig",
2323
"timeout": 60000,
2424
"sourceMaps": true,
2525
"sourceMapPathOverrides": {
@@ -32,10 +32,10 @@
3232
],
3333
"compounds": [
3434
{
35-
"name": "Debug Array (Main + Renderer)",
35+
"name": "Debug Twig (Main + Renderer)",
3636
"configurations": [
37-
"Debug Array (Main Process)",
38-
"Debug Array (Renderer Process)"
37+
"Debug Twig (Main Process)",
38+
"Debug Twig (Renderer Process)"
3939
],
4040
"preLaunchTask": "start-dev-with-debug",
4141
"stopAll": true

.vscode/tasks.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
{
3939
"label": "start-electron-with-debug",
4040
"type": "shell",
41-
"command": "pnpm --filter array start:debug",
41+
"command": "pnpm --filter twig start:debug",
4242
"isBackground": true,
4343
"problemMatcher": {
4444
"pattern": {
@@ -56,7 +56,7 @@
5656
"presentation": {
5757
"reveal": "always",
5858
"panel": "dedicated",
59-
"group": "array"
59+
"group": "twig"
6060
},
6161
"options": {
6262
"env": {

ARCHITECTURE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Contributing to Array
1+
# Contributing to Twig
22

33
## Architecture Overview
44

5-
Array is an Electron app with a React renderer. The main process handles system operations (stateless), while the renderer owns all application state.
5+
Twig is an Electron app with a React renderer. The main process handles system operations (stateless), while the renderer owns all application state.
66

77
```
88
Main Process (Node.js) Renderer Process (React)

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Business Source License 1.1
33
Parameters
44

55
Licensor: PostHog Inc.
6-
Licensed Work: Array & Posthog Agent package
6+
Licensed Work: Twig & Posthog Agent package
77
The Licensed Work is © 2025 PostHog Inc.
88

99
Change Date: None (the Licensed Work will remain under this License indefinitely unless Licensor specifies otherwise)

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ pnpm --filter agent build
3535
### Running in Development
3636

3737
```bash
38-
# Run both agent (watch mode) and array app in parallel
38+
# Run both agent (watch mode) and twig app in parallel
3939
pnpm dev
4040

4141
# Or run them separately:
42-
pnpm dev:agent # Run agent in watch mode
43-
pnpm dev:array # Run array app
42+
pnpm dev:agent # Run agent in watch mode
43+
pnpm dev:twig # Run twig app
4444
```
4545

4646
### Mobile App
@@ -80,9 +80,9 @@ pnpm test
8080
## Project Structure
8181

8282
```
83-
array-monorepo/
83+
twig-monorepo/
8484
├── apps/
85-
│ ├── array/ # Electron desktop app
85+
│ ├── twig/ # Electron desktop app
8686
│ └── mobile/ # React Native mobile app (Expo)
8787
├── packages/
8888
│ └── agent/ # Agent framework

apps/cli/src/commands/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export async function auth(): Promise<void> {
5454
return;
5555
}
5656

57-
message("To submit PRs, Array needs access to GitHub.");
57+
message("To submit PRs, Twig needs access to GitHub.");
5858
blank();
5959

6060
const method = await select("Authenticate via:", [

apps/twig/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# PostHog - Array
1+
# PostHog - Twig
22

33
The PostHog desktop task manager
44

@@ -70,7 +70,7 @@ You can set these environment variables instead of entering credentials in the a
7070
## Project Structure
7171

7272
```
73-
array/
73+
twig/
7474
├── src/
7575
│ ├── main/ # Electron main process
7676
│ ├── renderer/ # React app
@@ -102,8 +102,8 @@ pnpm make
102102

103103
Output will be in:
104104

105-
- `out/Array-darwin-arm64/Array.app` - Packaged app
106-
- `out/make/Array-*.dmg` - macOS installer
105+
- `out/Twig-darwin-arm64/Twig.app` - Packaged app
106+
- `out/make/Twig-*.dmg` - macOS installer
107107
- `out/make/zip/` - ZIP archives
108108

109109
**Note:** Native modules for the DMG maker are automatically compiled via the `prePackage` hook. If you need to manually rebuild them, run:

apps/twig/forge.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ const config: ForgeConfig = {
134134
name: "Twig",
135135
executableName: "Twig",
136136
icon: "./build/app-icon", // Forge adds .icns/.ico/.png based on platform
137-
appBundleId: "com.posthog.array",
137+
appBundleId: "com.posthog.array", // TODO: Migrate to twig
138138
appCategoryType: "public.app-category.productivity",
139139
extraResource: existsSync("build/Assets.car") ? ["build/Assets.car"] : [],
140140
extendInfo: existsSync("build/Assets.car")
@@ -162,7 +162,7 @@ const config: ForgeConfig = {
162162
? {
163163
"code-sign": {
164164
"signing-identity": appleCodesignIdentity,
165-
identifier: "com.posthog.array",
165+
identifier: "com.posthog.array", // TODO: Migrate to twig
166166
},
167167
}
168168
: {}),

apps/twig/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta charset="UTF-8" />
66
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
77
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8-
<title>Array</title>
8+
<title>Twig</title>
99
</head>
1010

1111
<body class="bg-dark-bg text-dark-text">

0 commit comments

Comments
 (0)