@remnic/capture-screen 10.0.104 → 10.0.105
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/dist/{chunk-4AOHIJUT.js → chunk-IBOZT56J.js} +23 -23
- package/dist/cli-bin.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +5 -5
|
@@ -217,7 +217,7 @@ function redactText(text, userPatterns = []) {
|
|
|
217
217
|
}
|
|
218
218
|
|
|
219
219
|
// src/capture.ts
|
|
220
|
-
import { createHash } from "crypto";
|
|
220
|
+
import { createHash } from "node:crypto";
|
|
221
221
|
var DEFAULT_TERMINAL_APPS = [
|
|
222
222
|
"Terminal",
|
|
223
223
|
"iTerm2",
|
|
@@ -357,7 +357,7 @@ var DEFAULT_SETTLE_MS = 500;
|
|
|
357
357
|
var DEFAULT_IDLE_FALLBACK_SECONDS = 30;
|
|
358
358
|
|
|
359
359
|
// src/config.ts
|
|
360
|
-
import { readFileSync } from "fs";
|
|
360
|
+
import { readFileSync } from "node:fs";
|
|
361
361
|
|
|
362
362
|
// src/util.ts
|
|
363
363
|
var LOOPBACK_HOSTS = {
|
|
@@ -540,9 +540,9 @@ function serializeDaemonConfig(cfg) {
|
|
|
540
540
|
}
|
|
541
541
|
|
|
542
542
|
// src/control.ts
|
|
543
|
-
import { mkdirSync, readFileSync as readFileSync2, renameSync, rmSync, writeFileSync } from "fs";
|
|
544
|
-
import { randomBytes } from "crypto";
|
|
545
|
-
import path from "path";
|
|
543
|
+
import { mkdirSync, readFileSync as readFileSync2, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
544
|
+
import { randomBytes } from "node:crypto";
|
|
545
|
+
import path from "node:path";
|
|
546
546
|
function writePidFile(pidPath, pid, options = {}) {
|
|
547
547
|
mkdirSync(path.dirname(pidPath), { recursive: true });
|
|
548
548
|
const record = {
|
|
@@ -603,10 +603,10 @@ function removePidFileIfOwner(pidPath, pid) {
|
|
|
603
603
|
}
|
|
604
604
|
|
|
605
605
|
// src/token.ts
|
|
606
|
-
import { Buffer as Buffer2 } from "buffer";
|
|
607
|
-
import { randomBytes as randomBytes2, timingSafeEqual } from "crypto";
|
|
608
|
-
import { chmodSync, existsSync, mkdirSync as mkdirSync2, readFileSync as readFileSync3, writeFileSync as writeFileSync2 } from "fs";
|
|
609
|
-
import path2 from "path";
|
|
606
|
+
import { Buffer as Buffer2 } from "node:buffer";
|
|
607
|
+
import { randomBytes as randomBytes2, timingSafeEqual } from "node:crypto";
|
|
608
|
+
import { chmodSync, existsSync, mkdirSync as mkdirSync2, readFileSync as readFileSync3, writeFileSync as writeFileSync2 } from "node:fs";
|
|
609
|
+
import path2 from "node:path";
|
|
610
610
|
function generateToken() {
|
|
611
611
|
return randomBytes2(32).toString("base64url");
|
|
612
612
|
}
|
|
@@ -652,7 +652,7 @@ function bearerFromHeader(header) {
|
|
|
652
652
|
}
|
|
653
653
|
|
|
654
654
|
// src/validate.ts
|
|
655
|
-
import { Buffer as Buffer3 } from "buffer";
|
|
655
|
+
import { Buffer as Buffer3 } from "node:buffer";
|
|
656
656
|
var DATE_RE = /^\d{4}-\d{2}-\d{2}$/;
|
|
657
657
|
function parseSnapshotDate(value) {
|
|
658
658
|
if (typeof value !== "string" || !DATE_RE.test(value)) {
|
|
@@ -705,8 +705,8 @@ function decodeCursor(value) {
|
|
|
705
705
|
}
|
|
706
706
|
|
|
707
707
|
// src/daemon.ts
|
|
708
|
-
import http from "http";
|
|
709
|
-
import { Buffer as Buffer4 } from "buffer";
|
|
708
|
+
import http from "node:http";
|
|
709
|
+
import { Buffer as Buffer4 } from "node:buffer";
|
|
710
710
|
function snapshotToWire(snap) {
|
|
711
711
|
const wire = {
|
|
712
712
|
capturedAtUtc: snap.capturedAtUtc,
|
|
@@ -838,8 +838,8 @@ function startDaemon(deps) {
|
|
|
838
838
|
}
|
|
839
839
|
|
|
840
840
|
// src/paths.ts
|
|
841
|
-
import os from "os";
|
|
842
|
-
import path3 from "path";
|
|
841
|
+
import os from "node:os";
|
|
842
|
+
import path3 from "node:path";
|
|
843
843
|
function expandTilde(p) {
|
|
844
844
|
if (p === "~") return os.homedir();
|
|
845
845
|
if (p.startsWith("~/")) return path3.join(os.homedir(), p.slice(2));
|
|
@@ -862,7 +862,7 @@ function capturePaths(baseDir = captureBaseDir()) {
|
|
|
862
862
|
}
|
|
863
863
|
|
|
864
864
|
// src/helper.ts
|
|
865
|
-
import { spawn } from "child_process";
|
|
865
|
+
import { spawn } from "node:child_process";
|
|
866
866
|
var MAX_OUTPUT_BYTES = 8 * 1024 * 1024;
|
|
867
867
|
var DEFAULT_TIMEOUT_MS = 15e3;
|
|
868
868
|
function helperPackageName(platform = process.platform, arch = process.arch) {
|
|
@@ -1039,8 +1039,8 @@ async function captureFromSnapshot(snap, helper, processor, config, capturedAtUt
|
|
|
1039
1039
|
}
|
|
1040
1040
|
|
|
1041
1041
|
// src/replay.ts
|
|
1042
|
-
import { lstatSync, readdirSync, readFileSync as readFileSync4 } from "fs";
|
|
1043
|
-
import path4 from "path";
|
|
1042
|
+
import { lstatSync, readdirSync, readFileSync as readFileSync4 } from "node:fs";
|
|
1043
|
+
import path4 from "node:path";
|
|
1044
1044
|
var REPLAY_INSTANT = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2}(\.\d{1,9})?)?(Z|[+-]\d{2}:\d{2})$/;
|
|
1045
1045
|
function asObject2(value, where) {
|
|
1046
1046
|
if (typeof value !== "object" || value === null || Array.isArray(value)) {
|
|
@@ -1293,8 +1293,8 @@ function activityDayWindow2(date, timezone) {
|
|
|
1293
1293
|
}
|
|
1294
1294
|
|
|
1295
1295
|
// src/spool.ts
|
|
1296
|
-
import { chmodSync as chmodSync2 } from "fs";
|
|
1297
|
-
import { DatabaseSync } from "sqlite";
|
|
1296
|
+
import { chmodSync as chmodSync2 } from "node:fs";
|
|
1297
|
+
import { DatabaseSync } from "node:sqlite";
|
|
1298
1298
|
var SCHEMA_SQL = `
|
|
1299
1299
|
CREATE TABLE IF NOT EXISTS meta (
|
|
1300
1300
|
key TEXT PRIMARY KEY,
|
|
@@ -1472,10 +1472,10 @@ var Spool = class {
|
|
|
1472
1472
|
};
|
|
1473
1473
|
|
|
1474
1474
|
// src/cli.ts
|
|
1475
|
-
import { spawn as spawn2 } from "child_process";
|
|
1476
|
-
import { chmodSync as chmodSync3, existsSync as existsSync2, lstatSync as lstatSync2, mkdirSync as mkdirSync3, openSync, readFileSync as readFileSync5, writeFileSync as writeFileSync3 } from "fs";
|
|
1477
|
-
import { setTimeout as delay } from "timers/promises";
|
|
1478
|
-
import { dirname } from "path";
|
|
1475
|
+
import { spawn as spawn2 } from "node:child_process";
|
|
1476
|
+
import { chmodSync as chmodSync3, existsSync as existsSync2, lstatSync as lstatSync2, mkdirSync as mkdirSync3, openSync, readFileSync as readFileSync5, writeFileSync as writeFileSync3 } from "node:fs";
|
|
1477
|
+
import { setTimeout as delay } from "node:timers/promises";
|
|
1478
|
+
import { dirname } from "node:path";
|
|
1479
1479
|
|
|
1480
1480
|
// src/scheduler.ts
|
|
1481
1481
|
var systemClock = {
|
package/dist/cli-bin.js
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remnic/capture-screen",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.105",
|
|
4
4
|
"description": "Desktop screen-activity capture daemon for Remnic — local spool, loopback HTTP API, and replay ingestion for the activity source `screen` (à-la-carte)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"node": ">=22.13.0"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@remnic/capture-native-darwin-arm64": "^10.0.
|
|
29
|
-
"@remnic/capture-native-darwin-x64": "^10.0.
|
|
28
|
+
"@remnic/capture-native-darwin-arm64": "^10.0.105",
|
|
29
|
+
"@remnic/capture-native-darwin-x64": "^10.0.105"
|
|
30
30
|
},
|
|
31
31
|
"peerDependenciesMeta": {
|
|
32
32
|
"@remnic/capture-native-darwin-arm64": {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"tsup": "^8.0.0",
|
|
42
42
|
"typescript": "^5.7.0",
|
|
43
43
|
"tsx": "^4.0.0",
|
|
44
|
-
"@remnic/core": "10.0.
|
|
44
|
+
"@remnic/core": "10.0.105"
|
|
45
45
|
},
|
|
46
46
|
"license": "MIT",
|
|
47
47
|
"repository": {
|
|
@@ -63,6 +63,6 @@
|
|
|
63
63
|
"build": "tsup --config tsup.config.ts",
|
|
64
64
|
"precheck-types": "node ../../scripts/ensure-core-build-deps.mjs",
|
|
65
65
|
"check-types": "tsc --noEmit",
|
|
66
|
-
"test": "NODE_OPTIONS=\"${NODE_OPTIONS:+$NODE_OPTIONS }--conditions=remnic-source\" tsx --test src/simhash.test.ts src/dedup.test.ts src/daywindow.test.ts src/denylist.test.ts src/axtree.test.ts src/redact.test.ts src/config.test.ts src/validate.test.ts src/util.test.ts src/token.test.ts src/spool.test.ts src/capture.test.ts src/helper.test.ts src/live.test.ts src/replay.test.ts src/scheduler.test.ts src/daemon.test.ts src/cli.test.ts src/package.test.ts"
|
|
66
|
+
"test": "NODE_OPTIONS=\"${NODE_OPTIONS:+$NODE_OPTIONS }--conditions=remnic-source\" tsx --test src/simhash.test.ts src/dedup.test.ts src/daywindow.test.ts src/denylist.test.ts src/axtree.test.ts src/redact.test.ts src/config.test.ts src/validate.test.ts src/util.test.ts src/token.test.ts src/spool.test.ts src/capture.test.ts src/helper.test.ts src/live.test.ts src/replay.test.ts src/scheduler.test.ts src/daemon.test.ts src/cli.test.ts src/package.test.ts src/dist.test.ts"
|
|
67
67
|
}
|
|
68
68
|
}
|