@remnic/capture-native-darwin-x64 0.0.0-seed.1

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.
package/README.md ADDED
@@ -0,0 +1,39 @@
1
+ # @remnic/capture-native-darwin-x64
2
+
3
+ macOS Intel (x64) platform package for the unified Remnic native capture
4
+ helper, `remnic-capture-helper`. One binary serves both the audio capture
5
+ pipeline (#1897) and the screen-activity pipeline (#1899).
6
+
7
+ Install with `npm install @remnic/capture-native-darwin-x64`.
8
+ The binary is staged by the `capture-native-helper` workflow on release.
9
+ To build from source, use `packages/capture-native-darwin-helper` and set
10
+ `REMNIC_CAPTURE_HELPER_BIN` to the binary.
11
+
12
+ ## What this package provides
13
+
14
+ - `helperBinaryPath` — an absolute path to the packaged `bin/remnic-capture-helper`
15
+ binary, resolved relative to the installed package:
16
+
17
+ ```js
18
+ import { helperBinaryPath } from "@remnic/capture-native-darwin-x64";
19
+ ```
20
+
21
+ ## The binary is built by CI, not committed
22
+
23
+ `bin/remnic-capture-helper` is a compiled macOS Mach-O executable produced by
24
+ the `capture-native-helper` GitHub Actions workflow on a real macOS x64 runner
25
+ (`swift build -c release` against `packages/capture-native-darwin-helper`).
26
+ It is **not** committed to the repository and is **not** buildable on Linux.
27
+
28
+ Until CI stages the binary into `bin/`, `helperBinaryPath` still resolves to the
29
+ path it *will* occupy; the package `test` script tolerates its absence and skips
30
+ the executable check with a note.
31
+
32
+ ## Subcommands
33
+
34
+ ```
35
+ remnic-capture-helper audio-capture --channel mic|system|both --chunk-seconds N --out <dir> [--device <id>]
36
+ remnic-capture-helper device-enumerate
37
+ remnic-capture-helper ax-snapshot [--frontmost | --pid <n>] [--max-nodes N]
38
+ remnic-capture-helper ocr-window [--frontmost | --window <id>]
39
+ ```
Binary file
package/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ /** Absolute path to the packaged `remnic-capture-helper` native binary. */
2
+ export declare const helperBinaryPath: string;
package/index.js ADDED
@@ -0,0 +1,9 @@
1
+ import { fileURLToPath } from "node:url";
2
+
3
+ /**
4
+ * Absolute path to the packaged `remnic-capture-helper` native binary for
5
+ * macOS x64. The binary is produced by macOS CI (see README.md) and staged
6
+ * into `bin/`; this export resolves its path relative to the installed
7
+ * package, whether the binary is present yet or not.
8
+ */
9
+ export const helperBinaryPath = fileURLToPath(new URL("./bin/remnic-capture-helper", import.meta.url));
package/package.json ADDED
@@ -0,0 +1,53 @@
1
+ {
2
+ "name": "@remnic/capture-native-darwin-x64",
3
+ "version": "0.0.0-seed.1",
4
+ "description": "macOS Intel native capture helper for Remnic — audio, screen accessibility (AX), and window OCR",
5
+ "type": "module",
6
+ "os": [
7
+ "darwin"
8
+ ],
9
+ "cpu": [
10
+ "x64"
11
+ ],
12
+ "main": "index.js",
13
+ "types": "index.d.ts",
14
+ "exports": {
15
+ ".": {
16
+ "types": "./index.d.ts",
17
+ "import": "./index.js"
18
+ }
19
+ },
20
+ "bin": {
21
+ "remnic-capture-helper": "bin/remnic-capture-helper"
22
+ },
23
+ "files": [
24
+ "index.js",
25
+ "index.d.ts",
26
+ "bin/remnic-capture-helper",
27
+ "README.md"
28
+ ],
29
+ "publishConfig": {
30
+ "access": "public",
31
+ "provenance": false
32
+ },
33
+ "license": "MIT",
34
+ "repository": {
35
+ "type": "git",
36
+ "url": "https://github.com/joshuaswarren/remnic.git",
37
+ "directory": "packages/capture-native-darwin-x64"
38
+ },
39
+ "keywords": [
40
+ "remnic",
41
+ "audio",
42
+ "screen",
43
+ "ax",
44
+ "ocr",
45
+ "capture",
46
+ "macos",
47
+ "darwin",
48
+ "x64"
49
+ ],
50
+ "scripts": {
51
+ "test": "node test.mjs"
52
+ }
53
+ }