@barnaby.build/barnaby 0.0.128

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,27 @@
1
+ "use strict";const r=require("electron"),i={connect(e,t){return r.ipcRenderer.invoke("agentorchestrator:connect",e,t)},sendMessage(e,t,n,o){return r.ipcRenderer.invoke("agentorchestrator:sendMessageEx",e,{text:t,imagePaths:n??[],priorMessagesForContext:o})},loadChatHistory(){return r.ipcRenderer.invoke("agentorchestrator:loadChatHistory")},saveChatHistory(e){return r.ipcRenderer.invoke("agentorchestrator:saveChatHistory",e)},loadAppState(){return r.ipcRenderer.invoke("agentorchestrator:loadAppState")},saveAppState(e){return r.ipcRenderer.invoke("agentorchestrator:saveAppState",e)},setWindowTheme(e){return r.ipcRenderer.invoke("agentorchestrator:setWindowTheme",e)},notifyRendererReady(){return r.ipcRenderer.invoke("agentorchestrator:rendererReady")},getDiagnosticsInfo(){return r.ipcRenderer.invoke("agentorchestrator:getDiagnosticsInfo")},openRuntimeLog(){return r.ipcRenderer.invoke("agentorchestrator:openRuntimeLog")},openDiagnosticsPath(e){return r.ipcRenderer.invoke("agentorchestrator:openDiagnosticsPath",e)},readDiagnosticsFile(e){return r.ipcRenderer.invoke("agentorchestrator:readDiagnosticsFile",e)},writeDiagnosticsFile(e,t){return r.ipcRenderer.invoke("agentorchestrator:writeDiagnosticsFile",e,t)},openExternalUrl(e){return r.ipcRenderer.invoke("agentorchestrator:openExternalUrl",e)},getOrchestratorLicenseKeyState(){return r.ipcRenderer.invoke("agentorchestrator:getOrchestratorLicenseKeyState")},setOrchestratorLicenseKey(e){return r.ipcRenderer.invoke("agentorchestrator:setOrchestratorLicenseKey",e)},openPluginsFolder(){return r.ipcRenderer.invoke("agentorchestrator:openPluginsFolder")},installOrchestratorPlugin(){return r.ipcRenderer.invoke("agentorchestrator:installOrchestratorPlugin")},syncOrchestratorSettings(e){return r.ipcRenderer.invoke("agentorchestrator:syncOrchestratorSettings",e)},interrupt(e){return r.ipcRenderer.invoke("agentorchestrator:interrupt",e)},disconnect(e){return r.ipcRenderer.invoke("agentorchestrator:disconnect",e)},openFolderDialog(){return r.ipcRenderer.invoke("agentorchestrator:openFolderDialog")},openTerminalInWorkspace(e){return r.ipcRenderer.invoke("agentorchestrator:openTerminalInWorkspace",e)},terminalSpawn(e){return r.ipcRenderer.invoke("agentorchestrator:terminalSpawn",e)},terminalWrite(e){r.ipcRenderer.send("agentorchestrator:terminalWrite",e)},terminalResize(e,t){r.ipcRenderer.invoke("agentorchestrator:terminalResize",e,t)},terminalDestroy(){return r.ipcRenderer.invoke("agentorchestrator:terminalDestroy")},onTerminalData(e){const t=(n,o)=>e(o);return r.ipcRenderer.on("agentorchestrator:terminalData",t),()=>r.ipcRenderer.off("agentorchestrator:terminalData",t)},onTerminalExit(e){const t=()=>e();return r.ipcRenderer.on("agentorchestrator:terminalExit",t),()=>r.ipcRenderer.off("agentorchestrator:terminalExit",t)},writeWorkspaceConfig(e){return r.ipcRenderer.invoke("agentorchestrator:writeWorkspaceConfig",e)},claimWorkspace(e){return r.ipcRenderer.invoke("agentorchestrator:claimWorkspace",e)},releaseWorkspace(e){return r.ipcRenderer.invoke("agentorchestrator:releaseWorkspace",e)},savePastedImage(e,t){return r.ipcRenderer.invoke("agentorchestrator:savePastedImage",e,t)},listWorkspaceTree(e,t){return r.ipcRenderer.invoke("agentorchestrator:listWorkspaceTree",e,t)},readWorkspaceFile(e,t){return r.ipcRenderer.invoke("agentorchestrator:readWorkspaceFile",e,t)},readWorkspaceTextFile(e,t){return r.ipcRenderer.invoke("agentorchestrator:readWorkspaceTextFile",e,t)},writeWorkspaceFile(e,t,n){return r.ipcRenderer.invoke("agentorchestrator:writeWorkspaceFile",e,t,n)},pickWorkspaceSavePath(e,t){return r.ipcRenderer.invoke("agentorchestrator:pickWorkspaceSavePath",e,t)},pickWorkspaceOpenPath(e){return r.ipcRenderer.invoke("agentorchestrator:pickWorkspaceOpenPath",e)},getGitStatus(e){return r.ipcRenderer.invoke("agentorchestrator:getGitStatus",e)},gitCommit(e,t){return r.ipcRenderer.invoke("agentorchestrator:gitCommit",e,t)},gitPush(e,t){return r.ipcRenderer.invoke("agentorchestrator:gitPush",e,t)},gitDeploy(e,t){return r.ipcRenderer.invoke("agentorchestrator:gitDeploy",e,t)},gitBuild(e,t){return r.ipcRenderer.invoke("agentorchestrator:gitBuild",e,t)},gitRelease(e,t){return r.ipcRenderer.invoke("agentorchestrator:gitRelease",e,t)},setRecentWorkspaces(e){r.ipcRenderer.send("agentorchestrator:setRecentWorkspaces",e)},setEditorMenuState(e){r.ipcRenderer.send("agentorchestrator:setEditorMenuState",!!e)},findInPage(e){return r.ipcRenderer.invoke("agentorchestrator:findInPage",e)},showContextMenu(e){return r.ipcRenderer.invoke("agentorchestrator:showContextMenu",e)},getProviderAuthStatus(e){return r.ipcRenderer.invoke("agentorchestrator:getProviderAuthStatus",e)},startProviderLogin(e){return r.ipcRenderer.invoke("agentorchestrator:startProviderLogin",e)},upgradeProviderCli(e){return r.ipcRenderer.invoke("agentorchestrator:upgradeProviderCli",e)},setProviderApiKey(e,t){return r.ipcRenderer.invoke("agentorchestrator:setProviderApiKey",e,t)},getProviderApiKeyState(e){return r.ipcRenderer.invoke("agentorchestrator:getProviderApiKeyState",e)},importProviderApiKeyFromEnv(e){return r.ipcRenderer.invoke("agentorchestrator:importProviderApiKeyFromEnv",e)},resetApplicationData(){return r.ipcRenderer.invoke("agentorchestrator:resetApplicationData")},getGeminiAvailableModels(){return r.ipcRenderer.invoke("agentorchestrator:getGeminiAvailableModels")},getAvailableModels(){return r.ipcRenderer.invoke("agentorchestrator:getAvailableModels")},onEvent(e){const t=(n,o)=>e(o);return r.ipcRenderer.on("agentorchestrator:event",t),()=>r.ipcRenderer.off("agentorchestrator:event",t)},onMenu(e){const t=(n,o)=>e(o);return r.ipcRenderer.on("agentorchestrator:menu",t),()=>r.ipcRenderer.off("agentorchestrator:menu",t)},onPluginHostRequest(e){const t=(n,o)=>e(o);return r.ipcRenderer.on("barnaby:plugin-host:request",t),()=>r.ipcRenderer.off("barnaby:plugin-host:request",t)},pluginHostRespond(e,t){return r.ipcRenderer.invoke(e,t)},onPluginHostRecovery(e){const t=(n,o)=>e(o);return r.ipcRenderer.on("barnaby:plugin-host:recovery",t),()=>r.ipcRenderer.off("barnaby:plugin-host:recovery",t)},getLoadedPlugins(){return r.ipcRenderer.invoke("agentorchestrator:getLoadedPlugins")},onPluginsLoaded(e){const t=()=>e();return r.ipcRenderer.on("barnaby:plugin-host:plugins-loaded",t),()=>r.ipcRenderer.off("barnaby:plugin-host:plugins-loaded",t)},zoomIn(){const e=r.webFrame.getZoomLevel();r.webFrame.setZoomLevel(e+1)},zoomOut(){const e=r.webFrame.getZoomLevel();r.webFrame.setZoomLevel(e-1)},resetZoom(){r.webFrame.setZoomLevel(0)},getZoomLevel(){return r.webFrame.getZoomLevel()}};r.contextBridge.exposeInMainWorld("agentOrchestrator",i);r.contextBridge.exposeInMainWorld("fireharness",i);function c(e=["complete","interactive"]){return new Promise(t=>{e.includes(document.readyState)?t(!0):document.addEventListener("readystatechange",()=>{e.includes(document.readyState)&&t(!0)})})}const a={append(e,t){if(!Array.from(e.children).find(n=>n===t))return e.appendChild(t)},remove(e,t){if(Array.from(e.children).find(n=>n===t))return e.removeChild(t)}};function d(){const e="loaders-css__square-spin",t=`
2
+ @keyframes square-spin {
3
+ 25% { transform: perspective(100px) rotateX(180deg) rotateY(0); }
4
+ 50% { transform: perspective(100px) rotateX(180deg) rotateY(180deg); }
5
+ 75% { transform: perspective(100px) rotateX(0) rotateY(180deg); }
6
+ 100% { transform: perspective(100px) rotateX(0) rotateY(0); }
7
+ }
8
+ .${e} > div {
9
+ animation-fill-mode: both;
10
+ width: 50px;
11
+ height: 50px;
12
+ background: #fff;
13
+ animation: square-spin 3s 0s cubic-bezier(0.09, 0.57, 0.49, 0.9) infinite;
14
+ }
15
+ .app-loading-wrap {
16
+ position: fixed;
17
+ top: 0;
18
+ left: 0;
19
+ width: 100vw;
20
+ height: 100vh;
21
+ display: flex;
22
+ align-items: center;
23
+ justify-content: center;
24
+ background: #282c34;
25
+ z-index: 9;
26
+ }
27
+ `,n=document.createElement("style"),o=document.createElement("div");return n.id="app-loading-style",n.innerHTML=t,o.className="app-loading-wrap",o.innerHTML=`<div class="${e}"><div></div></div>`,{appendLoading(){a.append(document.head,n),a.append(document.body,o)},removeLoading(){a.remove(document.head,n),a.remove(document.body,o)}}}const{appendLoading:p,removeLoading:s}=d();c().then(p);window.onmessage=e=>{e.data.payload==="removeLoading"&&s()};setTimeout(s,4999);
package/package.json ADDED
@@ -0,0 +1,99 @@
1
+ {
2
+ "name": "@barnaby.build/barnaby",
3
+ "productName": "Barnaby",
4
+ "version": "0.0.128",
5
+ "main": "dist-electron/main/index.js",
6
+ "bin": {
7
+ "barnaby": "bin/barnaby.js"
8
+ },
9
+ "files": [
10
+ "dist",
11
+ "dist-electron",
12
+ "public",
13
+ "bin",
14
+ "package.json"
15
+ ],
16
+ "description": "Barnaby: local agent loops without API keys.",
17
+ "author": "stuart",
18
+ "license": "MIT",
19
+ "publishConfig": {
20
+ "access": "public"
21
+ },
22
+ "debug": {
23
+ "env": {
24
+ "VITE_DEV_SERVER_URL": "http://127.0.0.1:5173/"
25
+ }
26
+ },
27
+ "type": "module",
28
+ "engines": {
29
+ "node": ">=20 <25"
30
+ },
31
+ "scripts": {
32
+ "bump:version": "node scripts/bump-version.mjs",
33
+ "predev": "node -e \"const major = Number(process.versions.node.split('.')[0]); if (major < 20 || major >= 26) { console.error('\\nUnsupported Node.js version ' + process.version + '.\\nUse Node >=20 and <26 (recommended: Node 22 LTS).\\n'); process.exit(1); }\"",
34
+ "dev": "vite",
35
+ "dev:clean": "node scripts/dev-clean.mjs && npm run dev",
36
+ "build:dist:raw": "tsc && vite build",
37
+ "build:dist": "npm run bump:version && npm run build:dist:raw",
38
+ "build:portable:raw": "npm run build:dist:raw && electron-builder --win portable",
39
+ "build": "npm run build:portable",
40
+ "build:portable": "npm run build:dist && electron-builder --win portable",
41
+ "package": "npm run build:portable",
42
+ "deploy": "npm run package",
43
+ "build:release": "npm run build:dist && electron-builder",
44
+ "release:notes": "node scripts/create-release-notes.mjs",
45
+ "release:prepare": "npm run bump:version && npm run release:notes && npm run build:portable:raw",
46
+ "publish": "gh workflow run release.yml -f releasable=true --ref main",
47
+ "publish:npm": "npm run build && npm publish",
48
+ "package:win": "npm run build:dist && electron-packager . Barnaby --platform=win32 --arch=x64 --out=release/0.0.1/packaged --overwrite --asar --prune=true --icon=build/icon.png",
49
+ "preview": "vite preview",
50
+ "pretest": "vite build --mode=test",
51
+ "test": "vitest run"
52
+ },
53
+ "dependencies": {
54
+ "@codemirror/lang-cpp": "^6.0.3",
55
+ "@codemirror/lang-css": "^6.3.1",
56
+ "@codemirror/lang-html": "^6.4.11",
57
+ "@codemirror/lang-java": "^6.0.2",
58
+ "@codemirror/lang-javascript": "^6.2.4",
59
+ "@codemirror/lang-json": "^6.0.2",
60
+ "@codemirror/lang-markdown": "^6.5.0",
61
+ "@codemirror/lang-python": "^6.2.1",
62
+ "@codemirror/lang-rust": "^6.0.2",
63
+ "@codemirror/lang-sql": "^6.10.0",
64
+ "@codemirror/lang-xml": "^6.1.0",
65
+ "@codemirror/lang-yaml": "^6.1.2",
66
+ "@google/genai": "^1.42.0",
67
+ "@types/react-syntax-highlighter": "^15.5.13",
68
+ "@uiw/react-codemirror": "^4.25.4",
69
+ "@xterm/addon-fit": "^0.11.0",
70
+ "@xterm/xterm": "^5.3.0",
71
+ "electron-updater": "^6.3.9",
72
+ "node-pty": "^1.0.0",
73
+ "react-markdown": "^10.1.0",
74
+ "react-resizable-panels": "^4.6.4",
75
+ "react-syntax-highlighter": "^16.1.0",
76
+ "remark-gfm": "^4.0.1"
77
+ },
78
+ "devDependencies": {
79
+ "@electron/packager": "^19.0.5",
80
+ "@playwright/test": "^1.48.2",
81
+ "@tailwindcss/typography": "^0.5.19",
82
+ "@types/react": "^18.3.12",
83
+ "@types/react-dom": "^18.3.1",
84
+ "@vitejs/plugin-react": "^4.3.3",
85
+ "autoprefixer": "^10.4.20",
86
+ "electron": "^40.6.0",
87
+ "electron-builder": "^26.8.1",
88
+ "postcss": "^8.4.49",
89
+ "postcss-import": "^16.1.0",
90
+ "react": "^18.3.1",
91
+ "react-dom": "^18.3.1",
92
+ "tailwindcss": "^3.4.15",
93
+ "typescript": "^5.4.2",
94
+ "vite": "^5.4.11",
95
+ "vite-plugin-electron": "^0.29.0",
96
+ "vite-plugin-electron-renderer": "^0.14.6",
97
+ "vitest": "^4.0.18"
98
+ }
99
+ }
Binary file
Binary file
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="216" height="216" viewBox="0 0 216 216"><path fill="#80bd01" d="M104.6 180.7c-2 0-3.9-.5-5.7-1.5l-18.1-10.7c-2.7-1.5-1.4-2-.5-2.4 3.6-1.2 4.3-1.5 8.2-3.7.4-.2.9-.1 1.3.1l13.9 8.2c.5.3 1.2.3 1.7 0l54.1-31.2c.5-.3.8-.9.8-1.5V75.7c0-.6-.3-1.2-.8-1.5l-54-31.2c-.5-.3-1.2-.3-1.7 0l-54 31.2c-.5.3-.9.9-.9 1.5v62.4c0 .6.3 1.2.9 1.4l14.8 8.6c8 4 13-.7 13-5.5V81c0-.9.7-1.6 1.6-1.6h6.9c.9 0 1.6.7 1.6 1.6v61.6c0 10.7-5.8 16.9-16 16.9-3.1 0-5.6 0-12.5-3.4L44.8 148c-3.5-2-5.7-5.8-5.7-9.9V75.7c0-4.1 2.2-7.8 5.7-9.9l54.1-31.2c3.4-1.9 8-1.9 11.4 0l54.1 31.2c3.5 2 5.7 5.8 5.7 9.9v62.4c0 4.1-2.2 7.8-5.7 9.9l-54.1 31.2c-1.8 1-3.7 1.5-5.7 1.5zm43.6-61.5c0-11.7-7.9-14.8-24.5-17-16.8-2.2-18.5-3.4-18.5-7.3 0-3.2 1.4-7.6 13.9-7.6 11.1 0 15.2 2.4 16.9 9.9.1.7.8 1.2 1.5 1.2h7c.4 0 .8-.2 1.1-.5.3-.3.5-.8.4-1.2-1.1-12.9-9.7-18.9-27-18.9-15.4 0-24.6 6.5-24.6 17.4 0 11.8 9.1 15.1 23.9 16.6 17.7 1.7 19.1 4.3 19.1 7.8 0 6-4.8 8.6-16.2 8.6-14.3 0-17.5-3.6-18.5-10.7-.1-.8-.8-1.3-1.6-1.3h-7c-.9 0-1.6.7-1.6 1.6 0 9.1 5 20 28.6 20 17.3-.1 27.1-6.8 27.1-18.6zM172 55.9V57h3v8h1.2v-8h3.1v-1.1H172zm8.4 9.1h1.2v-7.6l2.6 7.6h1.2l2.6-7.6V65h1.2v-9h-1.7l-2.6 7.6-2.6-7.6h-1.8v9z"/></svg>
@@ -0,0 +1,46 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
6
+ <title>Barnaby Splash</title>
7
+ <style>
8
+ html, body {
9
+ margin: 0;
10
+ width: 100%;
11
+ height: 100%;
12
+ background: #0b0b0b;
13
+ overflow: hidden;
14
+ }
15
+ .root {
16
+ width: 100%;
17
+ height: 100%;
18
+ display: flex;
19
+ align-items: center;
20
+ justify-content: center;
21
+ }
22
+ img {
23
+ max-width: 90%;
24
+ max-height: 90%;
25
+ object-fit: contain;
26
+ user-select: none;
27
+ -webkit-user-drag: none;
28
+ }
29
+ .version {
30
+ position: fixed;
31
+ bottom: 8px;
32
+ right: 12px;
33
+ font-size: 11px;
34
+ color: white;
35
+ font-family: system-ui, sans-serif;
36
+ opacity: 0.8;
37
+ }
38
+ </style>
39
+ </head>
40
+ <body>
41
+ <div class="root">
42
+ <img src="./splash.png" alt="Barnaby splash" />
43
+ </div>
44
+ <div id="version" class="version"></div>
45
+ </body>
46
+ </html>
Binary file