YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix: use case browser cli login when app is not running
Louis Beaumont99869c9cd6b6
diff --git a/screenpipe-js/cli/dist/index.js b/screenpipe-js/cli/dist/index.jsindex 87dc9756c..3c51c689c 100755--- a/screenpipe-js/cli/dist/index.js+++ b/screenpipe-js/cli/dist/index.js@@ -56286,8 +56286,11 @@ async function cliLogin() {try {loadingSpinner.start();const authData = await authPromise;- await sendAuthData(authData);Credentials.setApiKey(authData.api_key, authData.developer_id);+ await sendAuthData(authData).catch((_4) => {+ logger.warn(`could not set app credentials, is it app running?+ignore this warning if you're just trying to publish a pipe!`);+ });loadingSpinner.succeed("authentication successful");server.close();} catch (error) {diff --git a/screenpipe-js/cli/package.json b/screenpipe-js/cli/package.jsonindex ca58c7bef..7bce1f859 100644--- a/screenpipe-js/cli/package.json+++ b/screenpipe-js/cli/package.json@@ -1,6 +1,6 @@{"name": "@screenpipe/dev",- "version": "1.1.22",+ "version": "1.1.23","description": "screenpipe development CLI","type": "module","main": "dist/index.js",diff --git a/screenpipe-js/cli/src/commands/login/utils/cli-login.ts b/screenpipe-js/cli/src/commands/login/utils/cli-login.tsindex f0a035b84..d813e3466 100644--- a/screenpipe-js/cli/src/commands/login/utils/cli-login.ts+++ b/screenpipe-js/cli/src/commands/login/utils/cli-login.ts@@ -142,8 +142,12 @@ export async function cliLogin() {try {loadingSpinner.start();const authData = await authPromise;- await sendAuthData(authData);Credentials.setApiKey(authData.api_key, authData.developer_id);+ await sendAuthData(authData).catch((_) => {+ logger.warn(+ "could not set app credentials, is it app running? \nignore this warning if you're just trying to publish a pipe!"+ );+ });loadingSpinner.succeed("authentication successful");server.close();