From 3b9b320be26ef573eee20a9b298bba66b106e620 Mon Sep 17 00:00:00 2001 From: Billzabob Date: Wed, 30 Apr 2025 11:13:06 -0600 Subject: [PATCH 1/4] Send cookies for introspection (#204) --- src-web/lib/sendEphemeralRequest.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src-web/lib/sendEphemeralRequest.ts b/src-web/lib/sendEphemeralRequest.ts index 98cd73c1..64a2008f 100644 --- a/src-web/lib/sendEphemeralRequest.ts +++ b/src-web/lib/sendEphemeralRequest.ts @@ -1,4 +1,5 @@ import type { HttpRequest, HttpResponse } from '@yaakapp-internal/models'; +import { getActiveCookieJar } from '../hooks/useActiveCookieJar'; import { invokeCmd } from './tauri'; export async function sendEphemeralRequest( @@ -7,5 +8,9 @@ export async function sendEphemeralRequest( ): Promise { // Remove some things that we don't want to associate const newRequest = { ...request }; - return invokeCmd('cmd_send_ephemeral_request', { request: newRequest, environmentId }); + return invokeCmd('cmd_send_ephemeral_request', { + request: newRequest, + environmentId, + cookieJarId: getActiveCookieJar()?.id, + }); } From 7cba082eb0376f261e685b059808a1ae93f8dbfd Mon Sep 17 00:00:00 2001 From: hexchain Date: Thu, 1 May 2025 23:06:13 +0800 Subject: [PATCH 2/4] Allow building and running on aarch64 Linux (#206) Co-authored-by: Haochen Tong --- scripts/vendor-node.cjs | 12 ++++++++---- scripts/vendor-protoc.cjs | 4 ++++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/scripts/vendor-node.cjs b/scripts/vendor-node.cjs index 1cf92a81..8b0979be 100644 --- a/scripts/vendor-node.cjs +++ b/scripts/vendor-node.cjs @@ -9,12 +9,14 @@ const NODE_VERSION = 'v22.9.0'; // `${process.platform}_${process.arch}` const MAC_ARM = 'darwin_arm64'; const MAC_X64 = 'darwin_x64'; +const LNX_ARM = 'linux_arm64'; const LNX_X64 = 'linux_x64'; const WIN_X64 = 'win32_x64'; const URL_MAP = { [MAC_ARM]: `https://nodejs.org/download/release/${NODE_VERSION}/node-${NODE_VERSION}-darwin-arm64.tar.gz`, [MAC_X64]: `https://nodejs.org/download/release/${NODE_VERSION}/node-${NODE_VERSION}-darwin-x64.tar.gz`, + [LNX_ARM]: `https://nodejs.org/download/release/${NODE_VERSION}/node-${NODE_VERSION}-linux-arm64.tar.gz`, [LNX_X64]: `https://nodejs.org/download/release/${NODE_VERSION}/node-${NODE_VERSION}-linux-x64.tar.gz`, [WIN_X64]: `https://nodejs.org/download/release/${NODE_VERSION}/node-${NODE_VERSION}-win-x64.zip`, }; @@ -22,15 +24,17 @@ const URL_MAP = { const SRC_BIN_MAP = { [MAC_ARM]: `node-${NODE_VERSION}-darwin-arm64/bin/node`, [MAC_X64]: `node-${NODE_VERSION}-darwin-x64/bin/node`, + [LNX_ARM]: `node-${NODE_VERSION}-linux-arm64/bin/node`, [LNX_X64]: `node-${NODE_VERSION}-linux-x64/bin/node`, [WIN_X64]: `node-${NODE_VERSION}-win-x64/node.exe`, }; const DST_BIN_MAP = { - darwin_arm64: 'yaaknode-aarch64-apple-darwin', - darwin_x64: 'yaaknode-x86_64-apple-darwin', - linux_x64: 'yaaknode-x86_64-unknown-linux-gnu', - win32_x64: 'yaaknode-x86_64-pc-windows-msvc.exe', + [MAC_ARM]: 'yaaknode-aarch64-apple-darwin', + [MAC_X64]: 'yaaknode-x86_64-apple-darwin', + [LNX_ARM]: 'yaaknode-aarch64-unknown-linux-gnu', + [LNX_X64]: 'yaaknode-x86_64-unknown-linux-gnu', + [WIN_X64]: 'yaaknode-x86_64-pc-windows-msvc.exe', }; const key = `${process.platform}_${process.env.YAAK_TARGET_ARCH ?? process.arch}`; diff --git a/scripts/vendor-protoc.cjs b/scripts/vendor-protoc.cjs index 5295ddc1..6494a849 100644 --- a/scripts/vendor-protoc.cjs +++ b/scripts/vendor-protoc.cjs @@ -9,12 +9,14 @@ const VERSION = '28.3'; // `${process.platform}_${process.arch}` const MAC_ARM = 'darwin_arm64'; const MAC_X64 = 'darwin_x64'; +const LNX_ARM = 'linux_arm64'; const LNX_X64 = 'linux_x64'; const WIN_X64 = 'win32_x64'; const URL_MAP = { [MAC_ARM]: `https://github.com/protocolbuffers/protobuf/releases/download/v${VERSION}/protoc-${VERSION}-osx-aarch_64.zip`, [MAC_X64]: `https://github.com/protocolbuffers/protobuf/releases/download/v${VERSION}/protoc-${VERSION}-osx-x86_64.zip`, + [LNX_ARM]: `https://github.com/protocolbuffers/protobuf/releases/download/v${VERSION}/protoc-${VERSION}-linux-aarch_64.zip`, [LNX_X64]: `https://github.com/protocolbuffers/protobuf/releases/download/v${VERSION}/protoc-${VERSION}-linux-x86_64.zip`, [WIN_X64]: `https://github.com/protocolbuffers/protobuf/releases/download/v${VERSION}/protoc-${VERSION}-win64.zip`, }; @@ -22,6 +24,7 @@ const URL_MAP = { const SRC_BIN_MAP = { [MAC_ARM]: 'bin/protoc', [MAC_X64]: 'bin/protoc', + [LNX_ARM]: 'bin/protoc', [LNX_X64]: 'bin/protoc', [WIN_X64]: 'bin/protoc.exe', }; @@ -29,6 +32,7 @@ const SRC_BIN_MAP = { const DST_BIN_MAP = { [MAC_ARM]: 'yaakprotoc-aarch64-apple-darwin', [MAC_X64]: 'yaakprotoc-x86_64-apple-darwin', + [LNX_ARM]: 'yaakprotoc-aarch64-unknown-linux-gnu', [LNX_X64]: 'yaakprotoc-x86_64-unknown-linux-gnu', [WIN_X64]: 'yaakprotoc-x86_64-pc-windows-msvc.exe', }; From 95f39c514a0e70bc1323b854f6375145b21a64a7 Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Wed, 7 May 2025 11:59:01 -0700 Subject: [PATCH 3/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c3c334ac..f454d707 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Yaak is a desktop API client for interacting with REST, GraphQL, Server Sent Events (SSE), WebSocket, and gRPC APIs. It's built using [Tauri](https://tauri.app), Rust, and ReactJS. -![screenshot](https://github.com/user-attachments/assets/f18e963f-0b68-4ecb-b8b8-cb71aa9aec02) +![screenshot]([https://github.com/user-attachments/assets/f18e963f-0b68-4ecb-b8b8-cb71aa9aec02](https://schierco.nyc3.digitaloceanspaces.com/images/a/1746644270.png)) ## Feature Overview From d3b8a421807f5f24dcf1da9252a385790d48db05 Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Wed, 7 May 2025 12:00:34 -0700 Subject: [PATCH 4/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f454d707..a823e290 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Yaak is a desktop API client for interacting with REST, GraphQL, Server Sent Events (SSE), WebSocket, and gRPC APIs. It's built using [Tauri](https://tauri.app), Rust, and ReactJS. -![screenshot]([https://github.com/user-attachments/assets/f18e963f-0b68-4ecb-b8b8-cb71aa9aec02](https://schierco.nyc3.digitaloceanspaces.com/images/a/1746644270.png)) +![366149288-f18e963f-0b68-4ecb-b8b8-cb71aa9aec02](https://github.com/user-attachments/assets/ca83b7ad-5708-411b-8faf-e36b365841a4) ## Feature Overview