an open-source alternative to the dots, bots and muses of the world, run an office of claude code/codex like agents on your laptop, sandboxes or anywhere, uses your existing subscriptions
HTML agent-harnessagent-orchestrationagentsai-agentsautonomous-agentsclaude-codecodexcoding-agentsdesktop-appdeveloper-toolselectrongemini-cliharnessharness-engineeringlocal-firstmemorymulti-agentopencodeorchestrationtypescript
fix(packaging): include Slack trigger helper (#66)
Piotr Durlej91a6a861e01a
diff --git a/package.json b/package.jsonindex 7816f6f1..ebc079d8 100644--- a/package.json+++ b/package.json@@ -12,7 +12,8 @@},"scripts": {"dev": "electron-vite dev",- "build": "electron-vite build",+ "build": "electron-vite build && npm run copy:main-assets",+ "copy:main-assets": "node tools/copy-main-assets.cjs","preview": "electron-vite preview","postinstall": "electron-rebuild -f && node tools/ensure-pty-perms.cjs","typecheck:node": "tsc --noEmit -p tsconfig.node.json",diff --git a/src/main/tunnelmole.d.ts b/src/main/tunnelmole.d.tsnew file mode 100644index 00000000..64dfaa4e--- /dev/null+++ b/src/main/tunnelmole.d.ts@@ -0,0 +1,3 @@+declare module 'tunnelmole' {+ export function tunnelmole(options: { port: number | string; [key: string]: unknown }): Promise<string>;+}diff --git a/tools/copy-main-assets.cjs b/tools/copy-main-assets.cjsnew file mode 100644index 00000000..3f5faa26--- /dev/null+++ b/tools/copy-main-assets.cjs@@ -0,0 +1,23 @@+'use strict';++const { copyFileSync, mkdirSync, statSync } = require('node:fs');+const { dirname, join } = require('node:path');++const ROOT = join(__dirname, '..');+const MAIN_ASSETS = [+ ['src/main/slack-trigger.cjs', 'out/main/slack-trigger.cjs'],+];++for (const [fromRel, toRel] of MAIN_ASSETS) {+ const from = join(ROOT, fromRel);+ const to = join(ROOT, toRel);++ mkdirSync(dirname(to), { recursive: true });+ copyFileSync(from, to);++ const copied = statSync(to);+ if (!copied.isFile() || copied.size === 0) {+ throw new Error(`Failed to copy required main-process asset: ${fromRel} -> ${toRel}`);+ }+ console.log(`[copy-main-assets] ${fromRel} -> ${toRel}`);+}