@proappstore/cli 2.6.5 → 2.6.6
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.
- package/dist/integrate.d.ts.map +1 -1
- package/dist/integrate.js +27 -27
- package/dist/integrate.js.map +1 -1
- package/dist/integrations.json +129 -129
- package/package.json +2 -2
package/dist/integrate.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integrate.d.ts","sourceRoot":"","sources":["../src/integrate.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"integrate.d.ts","sourceRoot":"","sources":["../src/integrate.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAuBpC,eAAO,MAAM,gBAAgB,SAiGzB,CAAC"}
|
package/dist/integrate.js
CHANGED
|
@@ -1,14 +1,19 @@
|
|
|
1
|
+
import { readFileSync } from 'node:fs';
|
|
2
|
+
import { createInterface } from 'node:readline/promises';
|
|
3
|
+
import { dirname, join } from 'node:path';
|
|
4
|
+
import { fileURLToPath } from 'node:url';
|
|
1
5
|
import { Command } from 'commander';
|
|
2
6
|
import { bearer, dieFromHttp, requireSession, resolveAppIdOrExit } from './secret.js';
|
|
3
|
-
|
|
4
|
-
const
|
|
7
|
+
// Load catalog at runtime from the file shipped alongside the compiled JS.
|
|
8
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
9
|
+
const catalogPath = join(__dirname, 'integrations.json');
|
|
10
|
+
const integrations = JSON.parse(readFileSync(catalogPath, 'utf8'));
|
|
5
11
|
export const integrateCommand = new Command('integrate')
|
|
6
12
|
.description('Connect a third-party API using pre-configured proxy rules.')
|
|
7
|
-
.argument('
|
|
13
|
+
.argument('[name]', `integration name (run "pas integrate list" to see all)`)
|
|
8
14
|
.option('--app <id>', 'app id (defaults to package.json name in cwd)')
|
|
9
|
-
.option('--list', 'list all available integrations')
|
|
10
15
|
.action(async (name, opts) => {
|
|
11
|
-
if (name === 'list'
|
|
16
|
+
if (!name || name === 'list') {
|
|
12
17
|
process.stdout.write('\nAvailable integrations:\n\n');
|
|
13
18
|
for (const [id, int] of Object.entries(integrations)) {
|
|
14
19
|
process.stdout.write(` ${id.padEnd(20)} ${int.name}\n`);
|
|
@@ -27,22 +32,28 @@ export const integrateCommand = new Command('integrate')
|
|
|
27
32
|
const cfg = await requireSession();
|
|
28
33
|
const appId = await resolveAppIdOrExit(opts.app);
|
|
29
34
|
const prefix = name.toUpperCase().replace(/-/g, '_');
|
|
30
|
-
process.stdout.write(`\n Integrating ${integration.name} for ${appId}\n
|
|
35
|
+
process.stdout.write(`\n Integrating ${integration.name} for ${appId}\n`);
|
|
36
|
+
process.stdout.write(` Docs: ${integration.docs}\n\n`);
|
|
31
37
|
if (integration.note) {
|
|
32
38
|
process.stdout.write(` Note: ${integration.note}\n\n`);
|
|
33
39
|
}
|
|
34
40
|
// Collect secrets interactively
|
|
41
|
+
const rl = createInterface({ input: process.stdin, output: process.stdout });
|
|
35
42
|
const secretValues = {};
|
|
36
|
-
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
43
|
+
try {
|
|
44
|
+
for (const secretSuffix of integration.secrets) {
|
|
45
|
+
const secretName = `${prefix}_${secretSuffix}`;
|
|
46
|
+
const value = await rl.question(` ${secretName}: `);
|
|
47
|
+
if (!value.trim()) {
|
|
48
|
+
process.stderr.write(`\n Aborted — ${secretName} is required.\n`);
|
|
49
|
+
process.stderr.write(` Get yours at: ${integration.docs}\n\n`);
|
|
50
|
+
process.exit(1);
|
|
51
|
+
}
|
|
52
|
+
secretValues[secretName] = value.trim();
|
|
44
53
|
}
|
|
45
|
-
|
|
54
|
+
}
|
|
55
|
+
finally {
|
|
56
|
+
rl.close();
|
|
46
57
|
}
|
|
47
58
|
// Store secrets
|
|
48
59
|
for (const [secretName, value] of Object.entries(secretValues)) {
|
|
@@ -83,9 +94,9 @@ export const integrateCommand = new Command('integrate')
|
|
|
83
94
|
await dieFromHttp(res, `add rule for ${pattern}`);
|
|
84
95
|
process.stdout.write(` [+] Proxy rule: ${pattern}\n`);
|
|
85
96
|
}
|
|
86
|
-
process.stdout.write(`\n Done! Use in your app:\n`);
|
|
87
97
|
const exampleHost = new URL(integration.patterns[0]).host;
|
|
88
98
|
const examplePath = new URL(integration.patterns[0]).pathname;
|
|
99
|
+
process.stdout.write(`\n Done! Use in your app:\n`);
|
|
89
100
|
process.stdout.write(` const res = await app.proxy.fetch('${exampleHost}${examplePath}...')\n\n`);
|
|
90
101
|
});
|
|
91
102
|
function mapInjectKind(int) {
|
|
@@ -111,15 +122,4 @@ function mapAuth(int) {
|
|
|
111
122
|
return `query:${int.queryParam ?? 'key'}`;
|
|
112
123
|
return int.auth;
|
|
113
124
|
}
|
|
114
|
-
function readLine() {
|
|
115
|
-
return new Promise((resolve) => {
|
|
116
|
-
let data = '';
|
|
117
|
-
process.stdin.setEncoding('utf8');
|
|
118
|
-
process.stdin.once('data', (chunk) => {
|
|
119
|
-
data = String(chunk).replace(/\n$/, '');
|
|
120
|
-
resolve(data);
|
|
121
|
-
});
|
|
122
|
-
process.stdin.resume();
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
125
|
//# sourceMappingURL=integrate.js.map
|
package/dist/integrate.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integrate.js","sourceRoot":"","sources":["../src/integrate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"integrate.js","sourceRoot":"","sources":["../src/integrate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAA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103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
2
|
+
"openai": {
|
|
3
|
+
"name": "OpenAI (GPT, DALL-E, Whisper)",
|
|
4
|
+
"auth": "bearer",
|
|
5
|
+
"patterns": ["https://api.openai.com/"],
|
|
6
|
+
"methods": ["GET", "POST"],
|
|
7
|
+
"secrets": ["API_KEY"],
|
|
8
|
+
"docs": "https://platform.openai.com/api-keys"
|
|
9
|
+
},
|
|
10
|
+
"anthropic": {
|
|
11
|
+
"name": "Anthropic (Claude)",
|
|
12
|
+
"auth": "header",
|
|
13
|
+
"headerName": "x-api-key",
|
|
14
|
+
"patterns": ["https://api.anthropic.com/"],
|
|
15
|
+
"methods": ["GET", "POST"],
|
|
16
|
+
"secrets": ["API_KEY"],
|
|
17
|
+
"docs": "https://console.anthropic.com/settings/keys"
|
|
18
|
+
},
|
|
19
|
+
"google-ai": {
|
|
20
|
+
"name": "Google AI (Gemini)",
|
|
21
|
+
"auth": "query",
|
|
22
|
+
"queryParam": "key",
|
|
23
|
+
"patterns": ["https://generativelanguage.googleapis.com/"],
|
|
24
|
+
"methods": ["GET", "POST"],
|
|
25
|
+
"secrets": ["API_KEY"],
|
|
26
|
+
"docs": "https://aistudio.google.com/apikey"
|
|
27
|
+
},
|
|
28
|
+
"openrouter": {
|
|
29
|
+
"name": "OpenRouter (multi-model gateway)",
|
|
30
|
+
"auth": "bearer",
|
|
31
|
+
"patterns": ["https://openrouter.ai/api/"],
|
|
32
|
+
"methods": ["GET", "POST"],
|
|
33
|
+
"secrets": ["API_KEY"],
|
|
34
|
+
"docs": "https://openrouter.ai/keys"
|
|
35
|
+
},
|
|
36
|
+
"replicate": {
|
|
37
|
+
"name": "Replicate (open source models)",
|
|
38
|
+
"auth": "bearer",
|
|
39
|
+
"patterns": ["https://api.replicate.com/"],
|
|
40
|
+
"methods": ["GET", "POST"],
|
|
41
|
+
"secrets": ["API_KEY"],
|
|
42
|
+
"docs": "https://replicate.com/account/api-tokens"
|
|
43
|
+
},
|
|
44
|
+
"stability": {
|
|
45
|
+
"name": "Stability AI (image generation)",
|
|
46
|
+
"auth": "bearer",
|
|
47
|
+
"patterns": ["https://api.stability.ai/"],
|
|
48
|
+
"methods": ["GET", "POST"],
|
|
49
|
+
"secrets": ["API_KEY"],
|
|
50
|
+
"docs": "https://platform.stability.ai/account/keys"
|
|
51
|
+
},
|
|
52
|
+
"elevenlabs": {
|
|
53
|
+
"name": "ElevenLabs (text-to-speech)",
|
|
54
|
+
"auth": "header",
|
|
55
|
+
"headerName": "xi-api-key",
|
|
56
|
+
"patterns": ["https://api.elevenlabs.io/"],
|
|
57
|
+
"methods": ["GET", "POST"],
|
|
58
|
+
"secrets": ["API_KEY"],
|
|
59
|
+
"docs": "https://elevenlabs.io/app/settings/api-keys"
|
|
60
|
+
},
|
|
61
|
+
"amadeus": {
|
|
62
|
+
"name": "Amadeus (flights & hotels)",
|
|
63
|
+
"auth": "oauth2_cc",
|
|
64
|
+
"tokenUrl": "https://test.api.amadeus.com/v1/security/oauth2/token",
|
|
65
|
+
"patterns": ["https://test.api.amadeus.com/v2/"],
|
|
66
|
+
"methods": ["GET", "POST"],
|
|
67
|
+
"secrets": ["CLIENT_ID", "CLIENT_SECRET"],
|
|
68
|
+
"docs": "https://developers.amadeus.com/register"
|
|
69
|
+
},
|
|
70
|
+
"amadeus-prod": {
|
|
71
|
+
"name": "Amadeus Production (flights & hotels)",
|
|
72
|
+
"auth": "oauth2_cc",
|
|
73
|
+
"tokenUrl": "https://api.amadeus.com/v1/security/oauth2/token",
|
|
74
|
+
"patterns": ["https://api.amadeus.com/v2/"],
|
|
75
|
+
"methods": ["GET", "POST"],
|
|
76
|
+
"secrets": ["CLIENT_ID", "CLIENT_SECRET"],
|
|
77
|
+
"docs": "https://developers.amadeus.com/register"
|
|
78
|
+
},
|
|
79
|
+
"spotify": {
|
|
80
|
+
"name": "Spotify (music, playlists)",
|
|
81
|
+
"auth": "oauth2_cc",
|
|
82
|
+
"tokenUrl": "https://accounts.spotify.com/api/token",
|
|
83
|
+
"patterns": ["https://api.spotify.com/v1/"],
|
|
84
|
+
"methods": ["GET", "POST", "PUT", "DELETE"],
|
|
85
|
+
"secrets": ["CLIENT_ID", "CLIENT_SECRET"],
|
|
86
|
+
"docs": "https://developer.spotify.com/dashboard"
|
|
87
|
+
},
|
|
88
|
+
"github": {
|
|
89
|
+
"name": "GitHub API",
|
|
90
|
+
"auth": "bearer",
|
|
91
|
+
"patterns": ["https://api.github.com/"],
|
|
92
|
+
"methods": ["GET", "POST", "PUT", "PATCH", "DELETE"],
|
|
93
|
+
"secrets": ["TOKEN"],
|
|
94
|
+
"docs": "https://github.com/settings/tokens"
|
|
95
|
+
},
|
|
96
|
+
"openweathermap": {
|
|
97
|
+
"name": "OpenWeatherMap",
|
|
98
|
+
"auth": "query",
|
|
99
|
+
"queryParam": "appid",
|
|
100
|
+
"patterns": ["https://api.openweathermap.org/data/2.5/", "https://api.openweathermap.org/data/3.0/"],
|
|
101
|
+
"methods": ["GET"],
|
|
102
|
+
"secrets": ["API_KEY"],
|
|
103
|
+
"docs": "https://home.openweathermap.org/api_keys"
|
|
104
|
+
},
|
|
105
|
+
"rapidapi": {
|
|
106
|
+
"name": "RapidAPI (any API on the hub)",
|
|
107
|
+
"auth": "header",
|
|
108
|
+
"headerName": "X-RapidAPI-Key",
|
|
109
|
+
"patterns": [],
|
|
110
|
+
"methods": ["GET", "POST"],
|
|
111
|
+
"secrets": ["API_KEY"],
|
|
112
|
+
"docs": "https://rapidapi.com/developer/dashboard",
|
|
113
|
+
"note": "After integrating, add proxy rules for the specific RapidAPI host(s) you use."
|
|
114
|
+
},
|
|
115
|
+
"resend": {
|
|
116
|
+
"name": "Resend (email API)",
|
|
117
|
+
"auth": "bearer",
|
|
118
|
+
"patterns": ["https://api.resend.com/"],
|
|
119
|
+
"methods": ["GET", "POST"],
|
|
120
|
+
"secrets": ["API_KEY"],
|
|
121
|
+
"docs": "https://resend.com/api-keys"
|
|
122
|
+
},
|
|
123
|
+
"stripe": {
|
|
124
|
+
"name": "Stripe API",
|
|
125
|
+
"auth": "bearer",
|
|
126
|
+
"patterns": ["https://api.stripe.com/"],
|
|
127
|
+
"methods": ["GET", "POST", "DELETE"],
|
|
128
|
+
"secrets": ["SECRET_KEY"],
|
|
129
|
+
"docs": "https://dashboard.stripe.com/apikeys"
|
|
130
|
+
}
|
|
131
131
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@proappstore/cli",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.6",
|
|
4
4
|
"description": "pas — CLI for publishing paid apps to proappstore.online",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"typescript": "^5.7.0"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
|
-
"build": "tsc",
|
|
32
|
+
"build": "tsc && cp src/integrations.json dist/integrations.json",
|
|
33
33
|
"typecheck": "tsc --noEmit"
|
|
34
34
|
}
|
|
35
35
|
}
|