stikfix 1.3.0 → 1.3.2
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.
|
@@ -453,7 +453,10 @@ export function unregisterStartup(opts = {}) {
|
|
|
453
453
|
return;
|
|
454
454
|
}
|
|
455
455
|
const execReg = opts.execReg ?? ((args) => {
|
|
456
|
-
|
|
456
|
+
// stdio:'ignore' so reg.exe's benign "unable to find the specified registry
|
|
457
|
+
// key or value" message on an already-absent value never leaks to the
|
|
458
|
+
// console — removal is idempotent, so that case is expected, not an error.
|
|
459
|
+
execFileSync('reg', args, { stdio: 'ignore' });
|
|
457
460
|
});
|
|
458
461
|
// /f suppresses the confirmation prompt and tolerates an absent value.
|
|
459
462
|
try {
|
|
@@ -309,7 +309,7 @@ function unregisterStartup(opts = {}) {
|
|
|
309
309
|
return;
|
|
310
310
|
}
|
|
311
311
|
const execReg = opts.execReg ?? ((args) => {
|
|
312
|
-
(0, import_node_child_process.execFileSync)("reg", args);
|
|
312
|
+
(0, import_node_child_process.execFileSync)("reg", args, { stdio: "ignore" });
|
|
313
313
|
});
|
|
314
314
|
try {
|
|
315
315
|
execReg(["DELETE", REG_RUN_KEY, "/v", REG_RUN_VALUE, "/f"]);
|
|
@@ -437,16 +437,15 @@ if (subcommand === "init") {
|
|
|
437
437
|
const rawExtId = values["extension-id"];
|
|
438
438
|
const rawPort = values["port"];
|
|
439
439
|
const rawBrowser = values["browser"];
|
|
440
|
+
const rootArg = rawRoot && typeof rawRoot === "string" ? rawRoot : process.cwd();
|
|
440
441
|
if (!rawRoot || typeof rawRoot !== "string") {
|
|
441
|
-
console.error(
|
|
442
|
-
console.error("Usage: npx stikfix init --root <project-dir> [--browser <chrome|firefox>] [--extension-id <id>] [--port <port>]");
|
|
443
|
-
process.exit(1);
|
|
442
|
+
console.error(`stikfix init: no --root given, using current directory: ${process.cwd()}`);
|
|
444
443
|
}
|
|
445
444
|
const browser = resolveBrowser(rawBrowser);
|
|
446
445
|
const isFirefox = browser === "firefox";
|
|
447
446
|
const extensionId = rawExtId && typeof rawExtId === "string" ? rawExtId : isFirefox ? DEFAULT_GECKO_ID : STABLE_EXTENSION_ID;
|
|
448
447
|
const port = rawPort ? parseInt(rawPort, 10) : void 0;
|
|
449
|
-
const root = (0, import_node_path3.resolve)(
|
|
448
|
+
const root = (0, import_node_path3.resolve)(rootArg);
|
|
450
449
|
const name = (0, import_node_path3.basename)(root);
|
|
451
450
|
const notesDir = (0, import_node_path3.join)(root, "notes");
|
|
452
451
|
const hostEntryPath = (0, import_node_path3.resolve)((0, import_node_path3.join)(__dirname, "src", "index.js"));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stikfix",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"description": "Pin sticky notes on any page — your AI reads them.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Omer Nesher <omernesher@gmail.com>",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"test:lib": "tsc -p tsconfig.lib.json && node --test \"dist/lib/lib/test/**/*.test.js\"",
|
|
51
51
|
"test": "tsc -p tsconfig.host.json && node --test \"dist/host/test/**/*.test.js\"",
|
|
52
52
|
"check": "tsc --noEmit && tsc --noEmit -p tsconfig.host.json && node scripts/clean-room-check.mjs && node scripts/host-smoke-test.mjs && npm run test:lib && npm test",
|
|
53
|
-
"postinstall": "node -e \"try{require.resolve('wxt')}catch(e){
|
|
53
|
+
"postinstall": "node -e \"try{require.resolve('wxt');require('node:child_process').execSync('wxt prepare',{stdio:'inherit'})}catch(e){}\""
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@medv/finder": "4.0.2",
|