@agentvalet/register 0.6.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/index.js +8 -11
  2. package/package.json +64 -59
package/dist/index.js CHANGED
@@ -988,8 +988,8 @@ import { createRequire } from "module";
988
988
  import open from "open";
989
989
  import chalk5 from "chalk";
990
990
  var _require = createRequire(import.meta.url);
991
- var FUNCTIONS_URL = "https://jmodblrolfoavrxqgbps.supabase.co/functions/v1";
992
- var SUPABASE_ANON_KEY = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Imptb2RibHJvbGZvYXZyeHFnYnBzIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzQwODIzNzYsImV4cCI6MjA4OTY1ODM3Nn0.xQQiYHXbDsHyiTd5TsAfXtNWBUGkT4eO7Ew9UH8n6UE";
991
+ var API_URL = process.env.AGENTVALET_API_URL ?? "https://api.agentvalet.ai";
992
+ var FUNCTIONS_URL = `${API_URL}/functions/v1`;
993
993
  var APP_URL = "https://app.agentvalet.ai";
994
994
  var CALLBACK_TIMEOUT_MS = 12e4;
995
995
  async function findFreePort() {
@@ -1011,8 +1011,7 @@ async function callCliAuth(body) {
1011
1011
  const res = await fetch(`${FUNCTIONS_URL}/cli-auth`, {
1012
1012
  method: "POST",
1013
1013
  headers: {
1014
- "Content-Type": "application/json",
1015
- "apikey": SUPABASE_ANON_KEY
1014
+ "Content-Type": "application/json"
1016
1015
  },
1017
1016
  body: JSON.stringify(body)
1018
1017
  });
@@ -1081,12 +1080,10 @@ async function browserLogin() {
1081
1080
  }
1082
1081
 
1083
1082
  // src/api/agentvalet.ts
1084
- var SUPABASE_URL = "https://jmodblrolfoavrxqgbps.supabase.co";
1085
- var SUPABASE_ANON_KEY2 = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Imptb2RibHJvbGZvYXZyeHFnYnBzIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzQwODIzNzYsImV4cCI6MjA4OTY1ODM3Nn0.xQQiYHXbDsHyiTd5TsAfXtNWBUGkT4eO7Ew9UH8n6UE";
1086
- var FUNCTIONS_URL2 = `${SUPABASE_URL}/functions/v1`;
1083
+ var API_URL2 = process.env.AGENTVALET_API_URL ?? "https://api.agentvalet.ai";
1084
+ var FUNCTIONS_URL2 = `${API_URL2}/functions/v1`;
1087
1085
  var baseHeaders = {
1088
- "Content-Type": "application/json",
1089
- "apikey": SUPABASE_ANON_KEY2
1086
+ "Content-Type": "application/json"
1090
1087
  };
1091
1088
  async function registerAgent2(params, apiKey) {
1092
1089
  const controller = new AbortController();
@@ -2289,8 +2286,8 @@ import path7 from "path";
2289
2286
  import { Command as Command5 } from "commander";
2290
2287
  import chalk12 from "chalk";
2291
2288
  import prompts4 from "prompts";
2292
- var SUPABASE_URL2 = "https://jmodblrolfoavrxqgbps.supabase.co";
2293
- var CLAIM_URL = `${SUPABASE_URL2}/functions/v1/cli-claim-agent`;
2289
+ var API_URL3 = process.env.AGENTVALET_API_URL ?? "https://api.agentvalet.ai";
2290
+ var CLAIM_URL = `${API_URL3}/functions/v1/cli-claim-agent`;
2294
2291
  async function claimToken(installToken) {
2295
2292
  const resp = await fetch(CLAIM_URL, {
2296
2293
  method: "POST",
package/package.json CHANGED
@@ -1,59 +1,64 @@
1
- {
2
- "name": "@agentvalet/register",
3
- "version": "0.6.0",
4
- "description": "Self-register AI agents with AgentValet",
5
- "type": "module",
6
- "bin": {
7
- "agentvalet-register": "dist/index.js"
8
- },
9
- "files": [
10
- "dist",
11
- "README.md"
12
- ],
13
- "scripts": {
14
- "build": "tsup src/index.ts --format esm --dts --clean --shims",
15
- "dev": "tsx src/index.ts",
16
- "test": "vitest run",
17
- "typecheck": "tsc --noEmit",
18
- "prepublishOnly": "pnpm build"
19
- },
20
- "dependencies": {
21
- "@agentvalet/mcp-server": "^0.2.0",
22
- "@modelcontextprotocol/sdk": "^1.29.0",
23
- "@octokit/auth-oauth-device": "^7.0.0",
24
- "chalk": "^5.3.0",
25
- "commander": "^12.0.0",
26
- "conf": "^13.0.0",
27
- "jose": "^6.2.2",
28
- "open": "^10.0.0",
29
- "ora": "^8.0.1",
30
- "prompts": "^2.4.2",
31
- "undici": "^6.0.0"
32
- },
33
- "devDependencies": {
34
- "@types/node": "^20.0.0",
35
- "@types/prompts": "^2.4.0",
36
- "tsup": "^8.0.0",
37
- "tsx": "^4.0.0",
38
- "typescript": "^5.0.0",
39
- "vitest": "^1.5.0"
40
- },
41
- "engines": {
42
- "node": ">=18"
43
- },
44
- "repository": {
45
- "type": "git",
46
- "url": "git+https://github.com/MCSEdwin/agentvalet.git",
47
- "directory": "apps/cli"
48
- },
49
- "keywords": [
50
- "ai",
51
- "agents",
52
- "auth",
53
- "credentials",
54
- "mcp",
55
- "valet",
56
- "agentvalet"
57
- ],
58
- "license": "MIT"
59
- }
1
+ {
2
+ "name": "@agentvalet/register",
3
+ "version": "1.0.1",
4
+ "description": "Self-register AI agents with AgentValet",
5
+ "type": "module",
6
+ "bin": {
7
+ "agentvalet-register": "dist/index.js"
8
+ },
9
+ "files": [
10
+ "dist",
11
+ "README.md"
12
+ ],
13
+ "dependencies": {
14
+ "@modelcontextprotocol/sdk": "^1.29.0",
15
+ "@octokit/auth-oauth-device": "^7.0.0",
16
+ "chalk": "^5.3.0",
17
+ "commander": "^12.0.0",
18
+ "conf": "^13.0.0",
19
+ "jose": "^6.2.2",
20
+ "open": "^10.0.0",
21
+ "ora": "^8.0.1",
22
+ "prompts": "^2.4.2",
23
+ "undici": "^6.0.0",
24
+ "@agentvalet/mcp-server": "^1.0.0"
25
+ },
26
+ "devDependencies": {
27
+ "@types/node": "^20.0.0",
28
+ "@types/prompts": "^2.4.0",
29
+ "tsup": "^8.0.0",
30
+ "tsx": "^4.0.0",
31
+ "typescript": "^5.0.0",
32
+ "vitest": "^1.5.0"
33
+ },
34
+ "engines": {
35
+ "node": ">=18"
36
+ },
37
+ "repository": {
38
+ "type": "git",
39
+ "url": "git+https://github.com/agentvalet/agentvalet.git"
40
+ },
41
+ "homepage": "https://agentvalet.ai",
42
+ "bugs": {
43
+ "url": "https://github.com/agentvalet/agentvalet/issues"
44
+ },
45
+ "publishConfig": {
46
+ "access": "public"
47
+ },
48
+ "keywords": [
49
+ "ai",
50
+ "agents",
51
+ "auth",
52
+ "credentials",
53
+ "mcp",
54
+ "valet",
55
+ "agentvalet"
56
+ ],
57
+ "license": "MIT",
58
+ "scripts": {
59
+ "build": "tsup src/index.ts --format esm --dts --clean --shims",
60
+ "dev": "tsx src/index.ts",
61
+ "test": "vitest run",
62
+ "typecheck": "tsc --noEmit"
63
+ }
64
+ }