@seekrit/proxy 0.13.0 → 0.15.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/dist/index.js +4 -6
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { createHash } from "node:crypto";
|
|
|
4
4
|
import { chmodSync, existsSync, mkdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
5
5
|
import { arch, homedir, platform } from "node:os";
|
|
6
6
|
import { dirname, join } from "node:path";
|
|
7
|
-
|
|
7
|
+
// ../../packages/crypto/src/shamir.ts
|
|
8
8
|
/**
|
|
9
9
|
* Shamir's Secret Sharing over GF(2^8) — the same field AES uses, with the
|
|
10
10
|
* reduction polynomial x^8 + x^4 + x^3 + x + 1 (0x11b). Splits a byte string
|
|
@@ -51,8 +51,7 @@ const LOG = /* @__PURE__ */ new Uint8Array(256);
|
|
|
51
51
|
}
|
|
52
52
|
for (let i = 255; i < 512; i++) EXP[i] = EXP[i - 255];
|
|
53
53
|
}
|
|
54
|
-
|
|
55
|
-
//#region ../cli/src/cache.ts
|
|
54
|
+
// ../cli/src/cache.ts
|
|
56
55
|
/**
|
|
57
56
|
* `$XDG_CACHE_HOME/seekrit`, else `~/.cache/seekrit` — beside the config
|
|
58
57
|
* directory holding the credential, never a shared temp directory.
|
|
@@ -95,7 +94,7 @@ function versionPrefix(version) {
|
|
|
95
94
|
return version.startsWith("v") ? version : `v${version}`;
|
|
96
95
|
}
|
|
97
96
|
function resolveVersion(explicit) {
|
|
98
|
-
return explicit ?? process.env.SEEKRIT_PROXY_VERSION ?? "0.
|
|
97
|
+
return explicit ?? process.env.SEEKRIT_PROXY_VERSION ?? "0.15.0";
|
|
99
98
|
}
|
|
100
99
|
function resolveBaseUrl(explicit) {
|
|
101
100
|
return (explicit ?? process.env.SEEKRIT_PROXY_BASE_URL ?? "https://proxy.seekrit.dev").replace(/\/+$/, "");
|
|
@@ -205,12 +204,11 @@ function signalNumber(signal) {
|
|
|
205
204
|
SIGTERM: 15
|
|
206
205
|
}[signal] ?? 0;
|
|
207
206
|
}
|
|
208
|
-
runProxyBinary(process.argv.slice(2), { version: "0.
|
|
207
|
+
runProxyBinary(process.argv.slice(2), { version: "0.15.0" }).then((code) => {
|
|
209
208
|
process.exitCode = code;
|
|
210
209
|
}).catch((err) => {
|
|
211
210
|
const message = err instanceof Error ? err.message : String(err);
|
|
212
211
|
process.stderr.write(`seekrit-proxy: ${message}\n`);
|
|
213
212
|
process.exit(1);
|
|
214
213
|
});
|
|
215
|
-
//#endregion
|
|
216
214
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seekrit/proxy",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"description": "npx-able launcher for seekrit-proxy — swap {{seekrit:NAME}} placeholders in outbound requests for decrypted secrets, so an agent never holds the key.",
|
|
5
5
|
"homepage": "https://seekrit.dev/docs/guides/agent-proxy",
|
|
6
6
|
"repository": {
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/node": "^26.6.5",
|
|
42
|
-
"tsdown": "^0.23.
|
|
42
|
+
"tsdown": "^0.23.3",
|
|
43
43
|
"vitest": "^5.0.5",
|
|
44
|
-
"@seekrit/cli": "2.
|
|
44
|
+
"@seekrit/cli": "2.3.0"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
47
|
"build": "tsdown",
|