Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/agent-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ jobs:
- name: Build shared (agent dependency)
run: pnpm --filter @posthog/shared run build

- name: Build git (agent dependency)
run: pnpm --filter @twig/git run build

- name: Build the package
run: pnpm --filter agent run build

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/twig-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ jobs:
- name: Build shared package
run: pnpm --filter @posthog/shared run build

- name: Build git package
run: pnpm --filter @twig/git run build

- name: Build agent package
run: pnpm --filter @posthog/agent run build

Expand Down
Binary file modified apps/twig/build/app-icon.icns
Binary file not shown.
Binary file modified apps/twig/build/app-icon.ico
Binary file not shown.
Binary file modified apps/twig/build/app-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/twig/build/icon.icon/Assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion apps/twig/build/icon.icon/icon.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"image-name": "logo.png",
"name": "logo",
"position": {
"scale": 1.18,
"scale": 1,
"translation-in-points": [0, 0]
}
}
Expand Down
Binary file modified apps/twig/build/icon@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/twig/build/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions apps/twig/src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ function initializeServices(): void {
// ========================================================

app.whenReady().then(() => {
log.info(`Twig electron v${app.getVersion()} booting up`);
migrateTaskAssociations();
ensureClaudeConfigDir();
createWindow();
Expand Down
12 changes: 12 additions & 0 deletions apps/twig/src/main/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import os from "node:os";
import path from "node:path";
import {
app,
BrowserWindow,
clipboard,
dialog,
Menu,
Expand Down Expand Up @@ -206,6 +207,17 @@ function buildViewMenu(): MenuItemConstructorOptions {
return {
label: "View",
submenu: [
{
label: "Reload",
accelerator: "CmdOrCtrl+Shift+R",
click: () => BrowserWindow.getFocusedWindow()?.webContents.reload(),
},
{
label: "Force Reload",
accelerator: "CmdOrCtrl+Shift+Alt+R",
click: () =>
BrowserWindow.getFocusedWindow()?.webContents.reloadIgnoringCache(),
},
{ role: "toggleDevTools" },
{ type: "separator" },
{ role: "resetZoom" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function createSuggestion(
return {
char: "/",
allowSpaces: false,
startOfLine: false,
startOfLine: true,

items: ({ query }): CommandSuggestionItem[] => {
if (!sessionId) return [];
Expand Down
4 changes: 4 additions & 0 deletions apps/twig/src/renderer/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ import "reflect-metadata";
import "@radix-ui/themes/styles.css";
import { Providers } from "@components/Providers";
import App from "@renderer/App";
import { logger } from "@renderer/lib/logger";
import React from "react";
import ReactDOM from "react-dom/client";
import "./styles/globals.css";

const log = logger.scope("app");
log.info("Twig renderer booting up");

document.title = import.meta.env.DEV ? "Twig (Development)" : "Twig";

const rootElement = document.getElementById("root");
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
"packageManager": "pnpm@10.23.0+sha512.21c4e5698002ade97e4efe8b8b4a89a8de3c85a37919f957e7a0f30f38fbc5bbdd05980ffe29179b2fb6e6e691242e098d945d1601772cad0fef5fb6411e2a4b",
"scripts": {
"setup": "bash apps/twig/bin/setup",
"dev": "pnpm --filter @posthog/electron-trpc build && pnpm --filter shared build && pnpm --filter agent build && mprocs",
"dev": "pnpm --filter @posthog/electron-trpc build && pnpm --filter shared build && pnpm --filter @twig/git build && pnpm --filter agent build && mprocs",
"dev:agent": "pnpm --filter agent dev",
"dev:git": "pnpm --filter @twig/git dev",
"dev:twig": "pnpm --filter twig dev",
"start": "pnpm --filter twig start",
"build": "turbo build",
Expand Down
1 change: 1 addition & 0 deletions packages/agent/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export default defineConfig({
"@agentclientprotocol/sdk",
"@anthropic-ai/claude-agent-sdk",
"@posthog/shared",
"@twig/git",
"dotenv",
"openai",
"tar",
Expand Down
Loading