@seekrit/proxy 0.12.1 → 0.12.3

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -29
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -47,7 +47,7 @@ function versionPrefix(version) {
47
47
  return version.startsWith("v") ? version : `v${version}`;
48
48
  }
49
49
  function resolveVersion(explicit) {
50
- return explicit ?? process.env.SEEKRIT_PROXY_VERSION ?? "0.12.1";
50
+ return explicit ?? process.env.SEEKRIT_PROXY_VERSION ?? "0.12.3";
51
51
  }
52
52
  function resolveBaseUrl(explicit) {
53
53
  return (explicit ?? process.env.SEEKRIT_PROXY_BASE_URL ?? "https://proxy.seekrit.dev").replace(/\/+$/, "");
@@ -157,34 +157,7 @@ function signalNumber(signal) {
157
157
  SIGTERM: 15
158
158
  }[signal] ?? 0;
159
159
  }
160
- //#endregion
161
- //#region src/index.ts
162
- /**
163
- * `@seekrit/proxy` — an `npx`-able launcher for `seekrit-proxy`.
164
- *
165
- * The proxy is a Rust binary, which made the one component that keeps a
166
- * decrypted secret *entirely* out of an untrusted workload also the one nobody
167
- * tried: `cargo build` before you learn anything. This package removes that
168
- * step. It downloads the released binary for the host platform, verifies its
169
- * SHA-256 against the checksum published beside it, and execs it with whatever
170
- * arguments you passed:
171
- *
172
- * SEEKRIT_TOKEN=skt_… npx -y @seekrit/proxy --config seekrit-proxy.toml
173
- *
174
- * Everything else is the proxy's own behaviour, unchanged — the arguments, the
175
- * config file, the fail-closed startup, the allowlist. This is a launcher, not a
176
- * wrapper: it adds no defaults and reads no config of its own.
177
- *
178
- * The package version tracks the binary version it fetches (release-please bumps
179
- * both in one commit), so `npx @seekrit/proxy@0.7.0` runs proxy 0.7.0. Override
180
- * with `SEEKRIT_PROXY_VERSION`, or skip the download entirely by pointing
181
- * `SEEKRIT_PROXY_BIN` at a binary you already have.
182
- *
183
- * The download/verify/exec logic lives in `@seekrit/cli` and is shared with the
184
- * `seekrit proxy run` subcommand; tsdown bundles it in at build time, the same
185
- * arrangement `@seekrit/mcp` uses for the MCP server.
186
- */
187
- runProxyBinary(process.argv.slice(2), { version: "0.12.1" }).then((code) => {
160
+ runProxyBinary(process.argv.slice(2), { version: "0.12.3" }).then((code) => {
188
161
  process.exitCode = code;
189
162
  }).catch((err) => {
190
163
  const message = err instanceof Error ? err.message : String(err);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seekrit/proxy",
3
- "version": "0.12.1",
3
+ "version": "0.12.3",
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
  "type": "module",
6
6
  "publishConfig": {
@@ -16,10 +16,10 @@
16
16
  "node": ">=20"
17
17
  },
18
18
  "devDependencies": {
19
- "@types/node": "^26.1.0",
20
- "tsdown": "^0.22.3",
21
- "vitest": "^4.1.11",
22
- "@seekrit/cli": "1.6.0"
19
+ "@types/node": "^26.6.1",
20
+ "tsdown": "^0.23.0",
21
+ "vitest": "^5.0.1",
22
+ "@seekrit/cli": "1.9.0"
23
23
  },
24
24
  "scripts": {
25
25
  "build": "tsdown",