+9
-4
@@ -27,2 +27,6 @@ #!/usr/bin/env node | ||
| function getCredentials() { | ||
| const envToken = process.env.PNTR_TOKEN; | ||
| if (envToken) { | ||
| return { accessToken: envToken }; | ||
| } | ||
| return config.get("credentials") || null; | ||
@@ -886,4 +890,5 @@ } | ||
| if (!isAuthenticated()) { | ||
| console.error("Not authenticated. Please run 'pntr login' first."); | ||
| process.exit(1); | ||
| console.error( | ||
| "Warning: not authenticated \u2014 tools will fail until you run 'pntr login' (or set PNTR_TOKEN)." | ||
| ); | ||
| } | ||
@@ -893,3 +898,3 @@ const server = new Server( | ||
| name: "pntr", | ||
| version: "0.3.0" | ||
| version: "0.3.1" | ||
| }, | ||
@@ -991,3 +996,3 @@ { | ||
| var program = new Command6(); | ||
| program.name("pntr").description("CLI and MCP server for PNTR subdomain service").version("0.3.0"); | ||
| program.name("pntr").description("CLI and MCP server for PNTR subdomain service").version("0.3.1"); | ||
| program.addCommand(loginCommand); | ||
@@ -994,0 +999,0 @@ program.addCommand(logoutCommand); |
+3
-3
| { | ||
| "name": "@pntr/cli", | ||
| "version": "0.3.0", | ||
| "version": "0.3.1", | ||
| "description": "CLI and MCP server for PNTR subdomain service", | ||
@@ -41,6 +41,6 @@ "type": "module", | ||
| "type": "git", | ||
| "url": "git+https://github.com/eugnis/pntr-cli.git" | ||
| "url": "git+https://github.com/oddunits/pntr-cli.git" | ||
| }, | ||
| "bugs": { | ||
| "url": "https://github.com/eugnis/pntr-cli/issues" | ||
| "url": "https://github.com/oddunits/pntr-cli/issues" | ||
| }, | ||
@@ -47,0 +47,0 @@ "license": "MIT", |
+1
-1
@@ -100,2 +100,2 @@ # @pntr/cli | ||
| - Credentials are stored locally via [conf](https://github.com/sindresorhus/conf). | ||
| - Docs: <https://pntr.dev/docs> · Issues: <https://github.com/eugnis/pntr/issues> | ||
| - Docs: <https://pntr.dev/docs> · Issues: <https://github.com/oddunits/pntr-cli/issues> |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
39076
0.39%990
0.51%5
25%