You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IMPORTANT: This is part 1 of a 2 part change. After this is merged, we rename the repo and env variables then merge part 2
### TL;DR
Renamed the product from "Array" to "Twig" across the codebase, including configuration files, protocol handlers, and user-facing text.
### What changed?
- Renamed all user-facing instances of "Array" to "Twig" in the UI, window titles, and documentation
- Updated configuration file paths from `.array/` to `.twig/` and `array.json` to `twig.json`
- Added support for both `twig://` and legacy `array://` protocol handlers for deep linking
- Implemented migration logic to automatically move existing `.array` directories to `.twig`
- Maintained backward compatibility with legacy paths and configuration files
- Updated environment variables (keeping `ARRAY_` prefix for now with a note about future migration to `TWIG_`)
- Preserved app data paths for compatibility with existing installations
### How to test?
1. Verify the app name appears as "Twig" in window titles and UI elements
2. Confirm both `twig://` and `array://` deep links work correctly
3. Test that existing workspaces in `.array` are properly migrated to `.twig`
4. Verify that both `twig.json` and legacy `array.json` configuration files are recognized
5. Check that environment variables are correctly set in workspace terminals
### Why make this change?
This rename from "Array" to "Twig" represents a product rebranding decision. The implementation maintains backward compatibility with existing installations while establishing the new brand identity across the codebase. The migration logic ensures a smooth transition for existing users by automatically moving directories and supporting legacy configuration paths.
-**[apps/mobile](./apps/mobile)** - PostHog mobile app (React Native / Expo)
13
13
-**[packages/agent](./packages/agent)** - The TypeScript agent framework
14
14
@@ -90,16 +90,19 @@ array-monorepo/
90
90
└── package.json # Root package.json
91
91
```
92
92
93
-
## Workspace Configuration (array.json)
93
+
## Workspace Configuration (twig.json)
94
94
95
-
Array supports per-repository configuration through an `array.json` file. This lets you define scripts that run automatically when workspaces are created or destroyed.
95
+
Twig supports per-repository configuration through a `twig.json` file (or legacy `array.json`). This lets you define scripts that run automatically when workspaces are created or destroyed.
96
96
97
97
### File Locations
98
98
99
-
Array searches for configuration in this order:
99
+
Twig searches for configuration in this order (first match wins):
Array automatically sets environment variables in all workspace terminals and scripts. These are available in `init`, `start`, and `destroy` scripts, as well as any terminal sessions opened within a workspace.
159
+
Twig automatically sets environment variables in all workspace terminals and scripts. These are available in `init`, `start`, and `destroy` scripts, as well as any terminal sessions opened within a workspace.
0 commit comments