@patrick-lai/qareel 0.0.0-stage → 0.2.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Patrick Lai
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,15 @@
1
- # Temporary Holding Version
1
+ # qareel
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Record polished, trustworthy QA demo videos of a web app from any coding agent.
4
+
5
+ ```sh
6
+ npx @patrick-lai/qareel@latest guide
7
+ ```
8
+
9
+ `guide` walks you through setup and your first recording. Install it for repeated use with `npm install -g @patrick-lai/qareel`, or without Node:
10
+
11
+ ```sh
12
+ curl -fsSL https://github.com/patrick-lai/qareel/releases/latest/download/install.sh | sh
13
+ ```
14
+
15
+ Supported: macOS and Linux on arm64 and x64. The binary for your machine comes from the matching `qareel-<os>-<arch>` package, which npm installs automatically.
package/bin/qareel.js ADDED
@@ -0,0 +1,81 @@
1
+ #!/usr/bin/env node
2
+ 'use strict';
3
+
4
+ const childProcess = require('node:child_process');
5
+ const fs = require('node:fs');
6
+ const os = require('node:os');
7
+ const path = require('node:path');
8
+
9
+ const SUPPORTED = ['darwin-arm64', 'darwin-x64', 'linux-x64', 'linux-arm64'];
10
+ const key = `${process.platform}-${process.arch}`;
11
+ const platformPackage = `qareel-${key}`;
12
+ const version = require('../package.json').version;
13
+
14
+ function fail(message) {
15
+ fs.writeSync(2, `qareel: ${message}\n`);
16
+ process.exit(1);
17
+ }
18
+
19
+ function isExecutable(file) {
20
+ try {
21
+ fs.accessSync(file, fs.constants.X_OK);
22
+ return fs.statSync(file).isFile();
23
+ } catch {
24
+ return false;
25
+ }
26
+ }
27
+
28
+ function packageRoot() {
29
+ try {
30
+ return path.dirname(require.resolve(`${platformPackage}/package.json`));
31
+ } catch {
32
+ return undefined;
33
+ }
34
+ }
35
+
36
+ function findBinary() {
37
+ if (!SUPPORTED.includes(key)) {
38
+ fail(`qareel runs on macOS and Linux with arm64 or x64; this machine is ${process.platform} ${process.arch}.`);
39
+ }
40
+ const root = packageRoot();
41
+ if (root !== undefined) {
42
+ const installed = require(path.join(root, 'package.json')).version;
43
+ if (installed !== version) {
44
+ fail(`${platformPackage} is version ${installed} but qareel is ${version}.\nFix: npm install ${platformPackage}@${version}`);
45
+ }
46
+ const binary = path.join(root, 'bin', 'qareel');
47
+ if (isExecutable(binary)) {
48
+ return binary;
49
+ }
50
+ fail(`${binary} is missing or not executable.\nFix: npm install ${platformPackage}@${version}`);
51
+ }
52
+ const vendored = path.join(__dirname, '..', 'vendor', key, 'bin', 'qareel');
53
+ if (isExecutable(vendored)) {
54
+ return vendored;
55
+ }
56
+ fail([
57
+ `the ${key} binary is not installed. npm installs it from the optional package ${platformPackage},`,
58
+ 'which is skipped when optional dependencies are omitted (--omit=optional) or the lockfile came from another platform.',
59
+ `Fix: npm install ${platformPackage}@${version}`,
60
+ `Or for a global install: npm install -g @patrick-lai/qareel@${version}`,
61
+ ].join('\n'));
62
+ }
63
+
64
+ const binary = findBinary();
65
+ const terminalSignals = ['SIGINT', 'SIGQUIT'];
66
+ const waitForChild = () => {};
67
+ for (const signal of terminalSignals) {
68
+ process.on(signal, waitForChild);
69
+ }
70
+ const result = childProcess.spawnSync(binary, process.argv.slice(2), { stdio: 'inherit' });
71
+ for (const signal of terminalSignals) {
72
+ process.removeListener(signal, waitForChild);
73
+ }
74
+ if (result.error) {
75
+ fail(`could not start ${binary}: ${result.error.message}`);
76
+ }
77
+ if (result.signal) {
78
+ process.kill(process.pid, result.signal);
79
+ process.exit(128 + (os.constants.signals[result.signal] || 0));
80
+ }
81
+ process.exit(result.status === null ? 1 : result.status);
package/package.json CHANGED
@@ -1,6 +1,26 @@
1
1
  {
2
2
  "name": "@patrick-lai/qareel",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.2.0",
4
+ "description": "Record polished, trustworthy QA demo videos of a web app from any coding agent",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/patrick-lai/qareel.git"
9
+ },
10
+ "homepage": "https://github.com/patrick-lai/qareel",
11
+ "bin": {
12
+ "qareel": "bin/qareel.js"
13
+ },
14
+ "files": [
15
+ "bin/qareel.js"
16
+ ],
17
+ "engines": {
18
+ "node": ">=18"
19
+ },
20
+ "optionalDependencies": {
21
+ "qareel-darwin-arm64": "0.2.0",
22
+ "qareel-darwin-x64": "0.2.0",
23
+ "qareel-linux-x64": "0.2.0",
24
+ "qareel-linux-arm64": "0.2.0"
25
+ }
26
+ }