@fsg-vault/agent 1.0.0 → 1.0.1

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/cli.js +2 -1
  2. package/package.json +4 -3
package/dist/cli.js CHANGED
@@ -11,6 +11,7 @@ program
11
11
  .requiredOption('-a, --api-key <string>', 'API Key to authenticate with the vault server')
12
12
  .requiredOption('-p, --project <string>', 'Project ID')
13
13
  .requiredOption('-e, --env <string>', 'Environment Name (e.g. production)')
14
+ .option('-s, --server <url>', 'Vault Server URL', 'https://fsgvault.pgthegod.space')
14
15
  .argument('<cmd>', 'Command to run (e.g., node)')
15
16
  .argument('[args...]', 'Arguments for the command');
16
17
  program.parse(process.argv);
@@ -23,7 +24,7 @@ async function run() {
23
24
  let ciphertext = '';
24
25
  let iv = '';
25
26
  try {
26
- const res = await fetch('https://fsgvault.pgthegod.space/api/vault/fetch', {
27
+ const res = await fetch(`${options.server}/api/vault/fetch`, {
27
28
  method: 'POST',
28
29
  headers: {
29
30
  'Content-Type': 'application/json',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fsg-vault/agent",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "FSG Vault Agent CLI",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -13,8 +13,9 @@
13
13
  "binding.gyp"
14
14
  ],
15
15
  "scripts": {
16
- "build:native": "node-gyp rebuild",
17
- "build": "tsc && pnpm build:native",
16
+ "build": "tsc && node-gyp rebuild",
17
+ "prepublishOnly": "npm run build",
18
+ "test": "echo \"Error: no test specified\" && exit 1",
18
19
  "dev": "ts-node src/cli.ts"
19
20
  },
20
21
  "dependencies": {