@jeffusion/bungee 6.0.4 → 6.1.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.
Files changed (2) hide show
  1. package/dist/index.js +4 -5
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -3502,7 +3502,7 @@ import { createInterface } from "node:readline";
3502
3502
  // package.json
3503
3503
  var package_default = {
3504
3504
  name: "@jeffusion/bungee",
3505
- version: "6.0.4",
3505
+ version: "6.1.0",
3506
3506
  description: "High-performance reverse proxy server CLI",
3507
3507
  type: "module",
3508
3508
  bin: {
@@ -5909,7 +5909,7 @@ async function openRecoveryInputFile(path, options = {}) {
5909
5909
  // src/commands/recover.ts
5910
5910
  async function recoverCommand(options = {}) {
5911
5911
  const interactive = options.plugin !== undefined || options.action !== undefined;
5912
- if (interactive && (options.file !== undefined || !options.plugin || !/^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$/.test(options.plugin) || !["issue-setup-code", "reset", "release-auth"].includes(options.action ?? "")))
5912
+ if (interactive && (options.file !== undefined || !options.plugin || !/^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$/.test(options.plugin) || !options.action || !/^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$/.test(options.action) || ["__proto__", "constructor", "prototype"].includes(options.action)))
5913
5913
  throw new Error("invalid_recovery_arguments");
5914
5914
  if (interactive && (!process.stdin.isTTY || !process.stdout.isTTY))
5915
5915
  throw new Error("recovery_requires_terminal");
@@ -6278,12 +6278,11 @@ function createProgram() {
6278
6278
  }
6279
6279
  });
6280
6280
  program.command("init").description("Initialize the Bungee SQLite data directory and persistent plugin secrets key").option("--plugin-secrets-key <base64>", "Initialize with a canonical Base64 key for 32 bytes (otherwise use BUNGEE_PLUGIN_SECRETS_KEY or generate one)").action(initCommand);
6281
- program.command("recover").description("Recover a stopped instance using plugin terminal actions or bounded JSON").option("--file <path>", "Owner-only 0600 recovery JSON input file").option("--plugin <name>", "Management plugin for an interactive offline action").option("--action <action>", "Terminal action: issue-setup-code, reset, or release-auth").addHelpText("after", `
6281
+ program.command("recover").description("Recover a stopped instance using plugin terminal actions or bounded JSON").option("--file <path>", "Owner-only 0600 recovery JSON input file").option("--plugin <name>", "Management plugin for an interactive offline action").option("--action <action>", "Plugin-declared terminal action, or release-auth").addHelpText("after", `
6282
6282
  Stop the instance first. Supply one JSON object via stdin or bungee recover --file recovery.json (chmod 600).
6283
- Initialize management access: bungee recover --plugin user-auth --action issue-setup-code
6284
6283
  Reset identity: bungee recover --plugin user-auth --action reset
6285
6284
  Release required authentication locally: bungee recover --plugin user-auth --action release-auth
6286
- These actions require a terminal. Reset asks for the plugin's fields and recovery reason; secret fields are hidden.
6285
+ These actions require a terminal. Plugins declare the questions for each action; secret fields are hidden.
6287
6286
  Unresolved usage: {"kind":"plugin-state","plugin":"token-budget","payload":{"keyId":"KEY_ID","requestId":"REQUEST_ID","attemptId":"ATTEMPT_ID","inputTokens":100,"outputTokens":200,"reason":"Verified usage evidence"}}
6288
6287
  Usage counts are replacement totals for the specified attempt, applied to its original period.
6289
6288
  `).action(async (options) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jeffusion/bungee",
3
- "version": "6.0.4",
3
+ "version": "6.1.0",
4
4
  "description": "High-performance reverse proxy server CLI",
5
5
  "type": "module",
6
6
  "bin": {
@@ -13,8 +13,8 @@
13
13
  "test": "bun test"
14
14
  },
15
15
  "dependencies": {
16
- "@jeffusion/bungee-core": "^6.0.4",
17
- "@jeffusion/bungee-types": "^6.0.4",
16
+ "@jeffusion/bungee-core": "^6.1.0",
17
+ "@jeffusion/bungee-types": "^6.1.0",
18
18
  "cli-progress": "^3.12.0",
19
19
  "commander": "^14.0.1"
20
20
  },