16 Commits

Author SHA1 Message Date
github-actions[bot]
5d3fb1d7de chore: release version 1.0.0 2025-05-12 01:53:53 +00:00
KevIsDev
c1474d85e5 Merge branch 'main' into stable 2025-05-12 02:45:27 +01:00
KevIsDev
3779000ec5 Revert "ci: reorder steps and add env vars for Electron build #release:major"
This reverts commit 9c0e898d17.
2025-05-12 02:15:31 +01:00
KevIsDev
9c0e898d17 ci: reorder steps and add env vars for Electron build #release:major
Reordered the "Commit and Tag Release" step to ensure it runs before uploading release assets. Added environment variables `GH_TOKEN`, `GITHUB_TOKEN`, and `NODE_OPTIONS` to the Electron build, added authentication and memory allocation during the build process.
2025-05-12 02:12:32 +01:00
KevIsDev
dee7fb0545 Merge branch 'main' into stable 2025-05-12 01:56:42 +01:00
KevIsDev
0e31267078 Merge branch 'main' into stable 2025-05-12 01:31:47 +01:00
Stijnus
332edd3d98 fix: settings bugfix error building my application issue #1414 (#1436)
* Fix: error building my application #1414

* fix for vite

* Update vite.config.ts

* Update root.tsx

* fix the root.tsx and the debugtab

* lm studio fix and fix for the api key

* Update api.enhancer for prompt enhancement

* bugfixes

* Revert api.enhancer.ts back to original code

* Update api.enhancer.ts

* Update api.git-proxy.$.ts

* Update api.git-proxy.$.ts

* Update api.enhancer.ts
2025-03-11 02:19:39 +05:30
github-actions[bot]
7045646b1a chore: release version 0.0.7 2025-02-28 20:13:16 +00:00
Leex
eb4aa68581 Update docker.yaml 2025-02-24 23:27:33 +01:00
Leex
73710da501 Update docker.yaml 2025-02-23 22:52:09 +01:00
Leex
a87eae2119 Update Dockerfile (fix docker deployment) 2025-02-23 22:37:38 +01:00
github-actions[bot]
ecf3cad189 chore: release version 0.0.6 2025-01-22 20:54:03 +00:00
github-actions[bot]
be7a754a74 chore: release version 0.0.5 2024-12-31 22:28:12 +00:00
github-actions[bot]
2a585ab5ea chore: release version 0.0.4 2024-12-31 17:17:51 +00:00
github-actions[bot]
eac1933094 chore: release version 0.0.3 2024-12-17 21:00:06 +00:00
github-actions[bot]
c36ab43dcc chore: release version 0.0.2 2024-12-16 21:50:28 +00:00
2 changed files with 30 additions and 2 deletions

View File

@@ -1,5 +1,4 @@
import { type ActionFunctionArgs, json } from '@remix-run/cloudflare';
import crypto from 'crypto';
import type { NetlifySiteInfo } from '~/types/netlify';
interface DeployRequestBody {
@@ -8,6 +7,15 @@ interface DeployRequestBody {
chatId: string;
}
async function sha1(message: string) {
const msgBuffer = new TextEncoder().encode(message);
const hashBuffer = await crypto.subtle.digest('SHA-1', msgBuffer);
const hashArray = Array.from(new Uint8Array(hashBuffer));
const hashHex = hashArray.map((b) => b.toString(16).padStart(2, '0')).join('');
return hashHex;
}
export async function action({ request }: ActionFunctionArgs) {
try {
const { siteId, files, token, chatId } = (await request.json()) as DeployRequestBody & { token: string };
@@ -104,7 +112,7 @@ export async function action({ request }: ActionFunctionArgs) {
for (const [filePath, content] of Object.entries(files)) {
// Ensure file path starts with a forward slash
const normalizedPath = filePath.startsWith('/') ? filePath : '/' + filePath;
const hash = crypto.createHash('sha1').update(content).digest('hex');
const hash = await sha1(content);
fileDigests[normalizedPath] = hash;
}

View File

@@ -93,6 +93,26 @@ export default defineConfig((config) => {
},
build: {
target: 'esnext',
rollupOptions: {
output: {
format: 'esm',
},
},
commonjsOptions: {
transformMixedEsModules: true,
},
},
optimizeDeps: {
esbuildOptions: {
define: {
global: 'globalThis',
},
},
},
resolve: {
alias: {
buffer: 'vite-plugin-node-polyfills/polyfills/buffer',
},
},
plugins: [
nodePolyfills({