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(sdk-release): actually ship native bindings + bump to 0.4.2
Louis Beaumont5abf4daf3c79
diff --git a/.github/workflows/sdk-release.yml b/.github/workflows/sdk-release.ymlindex abcd81da4..87c817f65 100644--- a/.github/workflows/sdk-release.yml+++ b/.github/workflows/sdk-release.yml@@ -171,10 +171,55 @@ jobs:merge-multiple: true- name: Create platform npm dirsrun: bun x napi create-npm-dir -t .+ # Move each `screenpipe-sdk.<triple>.node` into the matching+ # `npm/<triple>/` subdir. Without this step the platform packages+ # publish as empty stubs (README + package.json, no binary) and+ # `require('@screenpipe/sdk-darwin-arm64')` fails with+ # "Cannot find module ... .node". This is what bit every release+ # 0.1.0 → 0.4.1 — `napi prepublish` only updates the main+ # package.json's optionalDependencies, it does NOT distribute the+ # built binaries, and `napi artifacts` only works with the napi-rs+ # GitHub Actions artifact naming convention which we don't use.+ - name: Distribute native bindings into platform npm dirs+ run: |+ set -euo pipefail+ shopt -s nullglob+ moved=0+ for nodefile in screenpipe-sdk.*.node; do+ triple="${nodefile#screenpipe-sdk.}"+ triple="${triple%.node}"+ target_dir="npm/${triple}"+ if [[ ! -d "$target_dir" ]]; then+ echo "::error::No npm dir for triple '$triple' (file $nodefile)"+ exit 1+ fi+ mv "$nodefile" "$target_dir/"+ moved=$((moved + 1))+ echo "Moved $nodefile → $target_dir/"+ done+ if [[ $moved -eq 0 ]]; then+ echo "::error::No screenpipe-sdk.*.node files found — build artifact download likely failed"+ exit 1+ fi+ # Each platform dir must now contain exactly its one .node.+ for d in npm/*/; do+ triple="$(basename "$d")"+ expected="screenpipe-sdk.${triple}.node"+ if [[ ! -f "$d$expected" ]]; then+ echo "::error::Missing $d$expected after distribute"+ exit 1+ fi+ done- name: Prepare npm packagesrun: bun run prepublishOnly- name: Inspect package contents- run: npm pack --dry-run --ignore-scripts+ run: |+ npm pack --dry-run --ignore-scripts+ echo "--- platform tarballs ---"+ for d in npm/*/; do+ echo "## $d"+ (cd "$d" && npm pack --dry-run --ignore-scripts 2>&1 | tail -20)+ done- name: Publish npm packagesif: needs.validate.outputs.publish_npm == 'true'env:diff --git a/ee/sdk/Cargo.lock b/ee/sdk/Cargo.lockindex 8dc30f306..4d22f4133 100644--- a/ee/sdk/Cargo.lock+++ b/ee/sdk/Cargo.lock@@ -6821,7 +6821,7 @@ dependencies = [[[package]]name = "screenpipe-recorder"-version = "0.3.0"+version = "0.4.2"dependencies = ["anyhow","chrono",@@ -6877,7 +6877,7 @@ dependencies = [[[package]]name = "screenpipe-sdk"-version = "0.4.1"+version = "0.4.2"dependencies = ["napi","napi-build",@@ -6905,7 +6905,7 @@ dependencies = [[[package]]name = "screenpipe-tauri"-version = "0.4.1"+version = "0.4.2"dependencies = ["base64 0.22.1","screenpipe-recorder",diff --git a/ee/sdk/Cargo.toml b/ee/sdk/Cargo.tomlindex ca8082a42..037200bc7 100644--- a/ee/sdk/Cargo.toml+++ b/ee/sdk/Cargo.toml@@ -1,6 +1,6 @@[package]name = "screenpipe-sdk"-version = "0.4.1"+version = "0.4.2"edition = "2021"description = "Screenpipe SDK — napi-rs bindings around the screenpipe-recorder crate"license = "LicenseRef-Screenpipe-Enterprise"diff --git a/ee/sdk/bun.lock b/ee/sdk/bun.lockindex 1e44f375a..cbef91e3c 100644--- a/ee/sdk/bun.lock+++ b/ee/sdk/bun.lock@@ -9,10 +9,10 @@"@types/node": "^22.10.1",},"optionalDependencies": {- "@screenpipe/sdk-darwin-arm64": "0.3.0",- "@screenpipe/sdk-darwin-x64": "0.3.0",- "@screenpipe/sdk-win32-arm64-msvc": "0.3.0",- "@screenpipe/sdk-win32-x64-msvc": "0.3.0",+ "@screenpipe/sdk-darwin-arm64": "0.4.2",+ "@screenpipe/sdk-darwin-x64": "0.4.2",+ "@screenpipe/sdk-win32-arm64-msvc": "0.4.2",+ "@screenpipe/sdk-win32-x64-msvc": "0.4.2",},},},diff --git a/ee/sdk/package.json b/ee/sdk/package.jsonindex d567bb259..32d2d8bec 100644--- a/ee/sdk/package.json+++ b/ee/sdk/package.json@@ -1,6 +1,6 @@{"name": "@screenpipe/sdk",- "version": "0.4.1",+ "version": "0.4.2","description": "Screen recording SDK for Electron and Node apps, powered by screenpipe's native capture stack.","main": "index.js","types": "index.d.ts",@@ -113,10 +113,10 @@"registry": "https://registry.npmjs.org/"},"optionalDependencies": {- "@screenpipe/sdk-darwin-arm64": "0.4.1",- "@screenpipe/sdk-darwin-x64": "0.4.1",- "@screenpipe/sdk-win32-arm64-msvc": "0.4.1",- "@screenpipe/sdk-win32-x64-msvc": "0.4.1"+ "@screenpipe/sdk-darwin-x64": "0.4.2",+ "@screenpipe/sdk-darwin-arm64": "0.4.2",+ "@screenpipe/sdk-win32-x64-msvc": "0.4.2",+ "@screenpipe/sdk-win32-arm64-msvc": "0.4.2"},"scripts": {"artifacts": "napi artifacts",@@ -134,4 +134,4 @@"@types/node": "^22.10.1"},"packageManager": "[email protected]"-}+}\ No newline at end of filediff --git a/ee/sdk/recorder-core/Cargo.toml b/ee/sdk/recorder-core/Cargo.tomlindex 6e8caaaa1..75d279ad8 100644--- a/ee/sdk/recorder-core/Cargo.toml+++ b/ee/sdk/recorder-core/Cargo.toml@@ -1,6 +1,6 @@[package]name = "screenpipe-recorder"-version = "0.4.1"+version = "0.4.2"edition = "2021"description = "Pure-Rust recorder orchestration for the screenpipe SDK — screen + MP4 + event-driven paired capture. Consumed by both the napi addon (ee/sdk) and the Tauri plugin (ee/sdk/tauri/rust) so neither has to spawn a Node bridge."license = "LicenseRef-Screenpipe-Enterprise"diff --git a/ee/sdk/tauri/rust/Cargo.toml b/ee/sdk/tauri/rust/Cargo.tomlindex b234a65b4..8f31d256a 100644--- a/ee/sdk/tauri/rust/Cargo.toml+++ b/ee/sdk/tauri/rust/Cargo.toml@@ -1,6 +1,6 @@[package]name = "screenpipe-tauri"-version = "0.4.1"+version = "0.4.2"edition = "2021"description = "Native Tauri v2 plugin for the screenpipe SDK — in-process recorder, no Node bridge"license = "LicenseRef-Screenpipe-Enterprise"