@fuseapi/cli 1.0.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.
- package/LICENSE +21 -0
- package/README.md +111 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +240 -0
- package/dist/index.js.map +1 -0
- package/package.json +45 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 CCS Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# FuseAPI CLI
|
|
2
|
+
|
|
3
|
+
Ultra-minimal CLI to use FuseAPI with Claude Code - no profile switching complexity.
|
|
4
|
+
|
|
5
|
+
**Forked from [kaitranntt/ccs](https://github.com/kaitranntt/ccs)** - stripped to bare essentials for FuseAPI only.
|
|
6
|
+
|
|
7
|
+
## Features
|
|
8
|
+
|
|
9
|
+
- ✓ Configure FuseAPI credentials once
|
|
10
|
+
- ✓ Launch Claude Code with FuseAPI
|
|
11
|
+
- ✓ Works alongside your existing Claude setup
|
|
12
|
+
- ✗ No multiple profiles (one user = one FuseAPI account)
|
|
13
|
+
- ✗ No UI/Dashboard
|
|
14
|
+
- ✗ No OAuth providers
|
|
15
|
+
- ✗ No CLIProxy
|
|
16
|
+
|
|
17
|
+
## Install
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
npm install -g @fuseapi/cli
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Quick Start
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
# Configure your FuseAPI credentials (one time)
|
|
27
|
+
fuseapi setup
|
|
28
|
+
|
|
29
|
+
# Launch Claude Code with FuseAPI
|
|
30
|
+
fuseapi
|
|
31
|
+
|
|
32
|
+
# Check configuration
|
|
33
|
+
fuseapi doctor
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Commands
|
|
37
|
+
|
|
38
|
+
### Setup (First Time Only)
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
fuseapi setup
|
|
42
|
+
|
|
43
|
+
# You'll be prompted for:
|
|
44
|
+
# - API Endpoint (default: https://api.fuseapi.app)
|
|
45
|
+
# - API Key (your FuseAPI key)
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Or set directly:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
fuseapi setup --endpoint https://api.fuseapi.app --api-key fuse_xxx
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Launch Claude Code
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
fuseapi
|
|
58
|
+
|
|
59
|
+
# Or with custom prompt
|
|
60
|
+
fuseapi "help me debug this code"
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### Check Health
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
fuseapi doctor
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### Show Config
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
fuseapi config
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## How It Works
|
|
76
|
+
|
|
77
|
+
1. First time: Run `fuseapi setup` to store your FuseAPI credentials
|
|
78
|
+
2. Anytime: Run `fuseapi` to launch Claude Code with FuseAPI
|
|
79
|
+
3. Your default `claude` command remains unchanged
|
|
80
|
+
|
|
81
|
+
Configuration is stored in `~/.fuseapi/config.json`:
|
|
82
|
+
|
|
83
|
+
```json
|
|
84
|
+
{
|
|
85
|
+
"endpoint": "https://api.fuseapi.app",
|
|
86
|
+
"apiKey": "fuse_xxx"
|
|
87
|
+
}
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
When you run `fuseapi`, it:
|
|
91
|
+
1. Loads your FuseAPI credentials
|
|
92
|
+
2. Sets `ANTHROPIC_BASE_URL` and `ANTHROPIC_API_KEY`
|
|
93
|
+
3. Launches Claude Code
|
|
94
|
+
|
|
95
|
+
## Differences from Original CCS
|
|
96
|
+
|
|
97
|
+
This is a **micro fork** for FuseAPI users only:
|
|
98
|
+
|
|
99
|
+
| Feature | Original CCS | This Fork |
|
|
100
|
+
|---------|--------------|-----------|
|
|
101
|
+
| FuseAPI Support | ✗ | ✓ |
|
|
102
|
+
| Multiple Profiles | ✓ | ✗ (1 user = 1 profile) |
|
|
103
|
+
| OAuth Providers | ✓ | ✗ |
|
|
104
|
+
| Dashboard UI | ✓ | ✗ |
|
|
105
|
+
| CLIProxy | ✓ | ✗ |
|
|
106
|
+
|
|
107
|
+
If you need multiple profiles or OAuth providers, use the [original CCS](https://github.com/kaitranntt/ccs).
|
|
108
|
+
|
|
109
|
+
## License
|
|
110
|
+
|
|
111
|
+
MIT - Forked from [CCS](https://github.com/kaitranntt/ccs)
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* FuseAPI CLI - Ultra-minimal CLI for FuseAPI with Claude Code
|
|
4
|
+
* Commands:
|
|
5
|
+
* fuseapi setup - Configure FuseAPI credentials
|
|
6
|
+
* fuseapi - Launch Claude Code with FuseAPI
|
|
7
|
+
* fuseapi doctor - Check health
|
|
8
|
+
* fuseapi config - Show config
|
|
9
|
+
*/
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA;;;;;;;GAOG"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
/**
|
|
4
|
+
* FuseAPI CLI - Ultra-minimal CLI for FuseAPI with Claude Code
|
|
5
|
+
* Commands:
|
|
6
|
+
* fuseapi setup - Configure FuseAPI credentials
|
|
7
|
+
* fuseapi - Launch Claude Code with FuseAPI
|
|
8
|
+
* fuseapi doctor - Check health
|
|
9
|
+
* fuseapi config - Show config
|
|
10
|
+
*/
|
|
11
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
14
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
15
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
16
|
+
}
|
|
17
|
+
Object.defineProperty(o, k2, desc);
|
|
18
|
+
}) : (function(o, m, k, k2) {
|
|
19
|
+
if (k2 === undefined) k2 = k;
|
|
20
|
+
o[k2] = m[k];
|
|
21
|
+
}));
|
|
22
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
23
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
24
|
+
}) : function(o, v) {
|
|
25
|
+
o["default"] = v;
|
|
26
|
+
});
|
|
27
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
28
|
+
var ownKeys = function(o) {
|
|
29
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
30
|
+
var ar = [];
|
|
31
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
32
|
+
return ar;
|
|
33
|
+
};
|
|
34
|
+
return ownKeys(o);
|
|
35
|
+
};
|
|
36
|
+
return function (mod) {
|
|
37
|
+
if (mod && mod.__esModule) return mod;
|
|
38
|
+
var result = {};
|
|
39
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
40
|
+
__setModuleDefault(result, mod);
|
|
41
|
+
return result;
|
|
42
|
+
};
|
|
43
|
+
})();
|
|
44
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
|
+
const child_process_1 = require("child_process");
|
|
46
|
+
const fs = __importStar(require("fs"));
|
|
47
|
+
const path = __importStar(require("path"));
|
|
48
|
+
const os = __importStar(require("os"));
|
|
49
|
+
const readline = __importStar(require("readline"));
|
|
50
|
+
// ========== Config Management ==========
|
|
51
|
+
const CONFIG_DIR = path.join(os.homedir(), '.fuseapi');
|
|
52
|
+
const CONFIG_FILE = path.join(CONFIG_DIR, 'config.json');
|
|
53
|
+
function ensureConfigDir() {
|
|
54
|
+
if (!fs.existsSync(CONFIG_DIR)) {
|
|
55
|
+
fs.mkdirSync(CONFIG_DIR, { recursive: true });
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
function loadConfig() {
|
|
59
|
+
if (!fs.existsSync(CONFIG_FILE)) {
|
|
60
|
+
return null;
|
|
61
|
+
}
|
|
62
|
+
try {
|
|
63
|
+
const data = fs.readFileSync(CONFIG_FILE, 'utf-8');
|
|
64
|
+
return JSON.parse(data);
|
|
65
|
+
}
|
|
66
|
+
catch (error) {
|
|
67
|
+
console.error('[!] Failed to load config:', error);
|
|
68
|
+
return null;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
function saveConfig(config) {
|
|
72
|
+
ensureConfigDir();
|
|
73
|
+
fs.writeFileSync(CONFIG_FILE, JSON.stringify(config, null, 2));
|
|
74
|
+
}
|
|
75
|
+
// ========== UI Helpers ==========
|
|
76
|
+
function prompt(question) {
|
|
77
|
+
const rl = readline.createInterface({
|
|
78
|
+
input: process.stdin,
|
|
79
|
+
output: process.stdout,
|
|
80
|
+
});
|
|
81
|
+
return new Promise((resolve) => {
|
|
82
|
+
rl.question(question, (answer) => {
|
|
83
|
+
rl.close();
|
|
84
|
+
resolve(answer.trim());
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
// ========== Commands ==========
|
|
89
|
+
async function cmdSetup(args) {
|
|
90
|
+
console.log('\n=== FuseAPI Setup ===\n');
|
|
91
|
+
// Parse CLI args
|
|
92
|
+
let endpoint = 'https://api.fuseapi.app';
|
|
93
|
+
let apiKey = '';
|
|
94
|
+
for (let i = 0; i < args.length; i++) {
|
|
95
|
+
if (args[i] === '--endpoint' && args[i + 1]) {
|
|
96
|
+
endpoint = args[++i];
|
|
97
|
+
}
|
|
98
|
+
else if (args[i] === '--api-key' && args[i + 1]) {
|
|
99
|
+
apiKey = args[++i];
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
// Interactive prompts if not provided
|
|
103
|
+
if (!apiKey) {
|
|
104
|
+
const currentConfig = loadConfig();
|
|
105
|
+
const defaultEndpoint = currentConfig?.endpoint || endpoint;
|
|
106
|
+
endpoint = await prompt(`API Endpoint [${defaultEndpoint}]: `) || defaultEndpoint;
|
|
107
|
+
apiKey = await prompt('API Key: ');
|
|
108
|
+
}
|
|
109
|
+
if (!apiKey) {
|
|
110
|
+
console.error('[!] API Key is required');
|
|
111
|
+
process.exit(1);
|
|
112
|
+
}
|
|
113
|
+
// Save config
|
|
114
|
+
saveConfig({ endpoint, apiKey });
|
|
115
|
+
console.log('\n[OK] Configuration saved!');
|
|
116
|
+
console.log(` Endpoint: ${endpoint}`);
|
|
117
|
+
console.log(` API Key: ${apiKey.substring(0, 12)}...`);
|
|
118
|
+
console.log('\nRun "fuseapi" to start using FuseAPI with Claude Code\n');
|
|
119
|
+
}
|
|
120
|
+
async function cmdDoctor() {
|
|
121
|
+
console.log('\n=== FuseAPI Health Check ===\n');
|
|
122
|
+
// Check config
|
|
123
|
+
const config = loadConfig();
|
|
124
|
+
if (!config) {
|
|
125
|
+
console.log('[!] No configuration found');
|
|
126
|
+
console.log(' Run "fuseapi setup" to configure FuseAPI\n');
|
|
127
|
+
process.exit(1);
|
|
128
|
+
}
|
|
129
|
+
console.log('[OK] Configuration exists');
|
|
130
|
+
console.log(` Endpoint: ${config.endpoint}`);
|
|
131
|
+
console.log(` API Key: ${config.apiKey.substring(0, 12)}...`);
|
|
132
|
+
// Check Claude CLI
|
|
133
|
+
try {
|
|
134
|
+
const { execSync } = require('child_process');
|
|
135
|
+
execSync('which claude', { stdio: 'ignore' });
|
|
136
|
+
console.log('[OK] Claude CLI found');
|
|
137
|
+
}
|
|
138
|
+
catch {
|
|
139
|
+
console.log('[!] Claude CLI not found');
|
|
140
|
+
console.log(' Install: npm install -g @anthropic-ai/claude-code');
|
|
141
|
+
}
|
|
142
|
+
console.log('\n[OK] All checks passed!\n');
|
|
143
|
+
}
|
|
144
|
+
async function cmdConfig() {
|
|
145
|
+
const config = loadConfig();
|
|
146
|
+
if (!config) {
|
|
147
|
+
console.log('\n[!] No configuration found');
|
|
148
|
+
console.log(' Run "fuseapi setup" to configure FuseAPI\n');
|
|
149
|
+
process.exit(1);
|
|
150
|
+
}
|
|
151
|
+
console.log('\n=== FuseAPI Configuration ===\n');
|
|
152
|
+
console.log(`Endpoint: ${config.endpoint}`);
|
|
153
|
+
console.log(`API Key: ${config.apiKey.substring(0, 12)}...`);
|
|
154
|
+
console.log(`\nConfig file: ${CONFIG_FILE}\n`);
|
|
155
|
+
}
|
|
156
|
+
async function cmdLaunch(args) {
|
|
157
|
+
// Load config
|
|
158
|
+
const config = loadConfig();
|
|
159
|
+
if (!config) {
|
|
160
|
+
console.error('\n[!] No configuration found');
|
|
161
|
+
console.error(' Run "fuseapi setup" to configure FuseAPI\n');
|
|
162
|
+
process.exit(1);
|
|
163
|
+
}
|
|
164
|
+
// Set environment variables
|
|
165
|
+
const env = {
|
|
166
|
+
...process.env,
|
|
167
|
+
ANTHROPIC_BASE_URL: config.endpoint,
|
|
168
|
+
ANTHROPIC_API_KEY: config.apiKey,
|
|
169
|
+
};
|
|
170
|
+
// Launch Claude Code
|
|
171
|
+
console.log('[i] Launching Claude Code with FuseAPI...\n');
|
|
172
|
+
const claudeProcess = (0, child_process_1.spawn)('claude', args, {
|
|
173
|
+
env,
|
|
174
|
+
stdio: 'inherit',
|
|
175
|
+
});
|
|
176
|
+
claudeProcess.on('error', (error) => {
|
|
177
|
+
console.error('\n[!] Failed to launch Claude Code:', error.message);
|
|
178
|
+
console.error(' Make sure Claude CLI is installed: npm install -g @anthropic-ai/claude-code\n');
|
|
179
|
+
process.exit(1);
|
|
180
|
+
});
|
|
181
|
+
claudeProcess.on('exit', (code) => {
|
|
182
|
+
process.exit(code || 0);
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
function showHelp() {
|
|
186
|
+
console.log(`
|
|
187
|
+
FuseAPI CLI - Ultra-minimal CLI for FuseAPI with Claude Code
|
|
188
|
+
|
|
189
|
+
USAGE:
|
|
190
|
+
fuseapi setup [--endpoint URL] [--api-key KEY] Configure FuseAPI credentials
|
|
191
|
+
fuseapi [prompt] Launch Claude Code with FuseAPI
|
|
192
|
+
fuseapi doctor Check configuration health
|
|
193
|
+
fuseapi config Show current configuration
|
|
194
|
+
fuseapi --help Show this help
|
|
195
|
+
|
|
196
|
+
EXAMPLES:
|
|
197
|
+
fuseapi setup Interactive setup
|
|
198
|
+
fuseapi setup --endpoint https://api.fuseapi.app --api-key fuse_xxx
|
|
199
|
+
fuseapi Launch Claude Code
|
|
200
|
+
fuseapi "help me debug this code" Launch with prompt
|
|
201
|
+
fuseapi doctor Health check
|
|
202
|
+
|
|
203
|
+
CONFIG:
|
|
204
|
+
Configuration is stored in: ${CONFIG_FILE}
|
|
205
|
+
`);
|
|
206
|
+
}
|
|
207
|
+
// ========== Main ==========
|
|
208
|
+
async function main() {
|
|
209
|
+
const args = process.argv.slice(2);
|
|
210
|
+
if (args.length === 0) {
|
|
211
|
+
await cmdLaunch([]);
|
|
212
|
+
return;
|
|
213
|
+
}
|
|
214
|
+
const command = args[0];
|
|
215
|
+
switch (command) {
|
|
216
|
+
case 'setup':
|
|
217
|
+
await cmdSetup(args.slice(1));
|
|
218
|
+
break;
|
|
219
|
+
case 'doctor':
|
|
220
|
+
await cmdDoctor();
|
|
221
|
+
break;
|
|
222
|
+
case 'config':
|
|
223
|
+
await cmdConfig();
|
|
224
|
+
break;
|
|
225
|
+
case '--help':
|
|
226
|
+
case '-h':
|
|
227
|
+
case 'help':
|
|
228
|
+
showHelp();
|
|
229
|
+
break;
|
|
230
|
+
default:
|
|
231
|
+
// Treat as Claude Code arguments
|
|
232
|
+
await cmdLaunch(args);
|
|
233
|
+
break;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
main().catch((error) => {
|
|
237
|
+
console.error('[!] Error:', error.message);
|
|
238
|
+
process.exit(1);
|
|
239
|
+
});
|
|
240
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAEA;;;;;;;GAOG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH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MAAM,SAAS,EAAE,CAAC;YAClB,MAAM;QACR,KAAK,QAAQ;YACX,MAAM,SAAS,EAAE,CAAC;YAClB,MAAM;QACR,KAAK,QAAQ,CAAC;QACd,KAAK,IAAI,CAAC;QACV,KAAK,MAAM;YACT,QAAQ,EAAE,CAAC;YACX,MAAM;QACR;YACE,iCAAiC;YACjC,MAAM,SAAS,CAAC,IAAI,CAAC,CAAC;YACtB,MAAM;IACV,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;IACrB,OAAO,CAAC,KAAK,CAAC,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IAC3C,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@fuseapi/cli",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Ultra-minimal CLI for FuseAPI with Claude Code - one user, one profile, zero complexity",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"cli",
|
|
7
|
+
"claude",
|
|
8
|
+
"fuseapi",
|
|
9
|
+
"ai"
|
|
10
|
+
],
|
|
11
|
+
"homepage": "https://github.com/dangquan1402/fuse-profile-manager",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/dangquan1402/fuse-profile-manager/issues"
|
|
14
|
+
},
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/dangquan1402/fuse-profile-manager.git"
|
|
18
|
+
},
|
|
19
|
+
"license": "MIT",
|
|
20
|
+
"author": {
|
|
21
|
+
"name": "FuseAPI Team",
|
|
22
|
+
"email": "support@fuseapi.app"
|
|
23
|
+
},
|
|
24
|
+
"main": "dist/index.js",
|
|
25
|
+
"types": "dist/index.d.ts",
|
|
26
|
+
"bin": {
|
|
27
|
+
"fuseapi": "dist/index.js"
|
|
28
|
+
},
|
|
29
|
+
"files": [
|
|
30
|
+
"dist/",
|
|
31
|
+
"README.md",
|
|
32
|
+
"LICENSE"
|
|
33
|
+
],
|
|
34
|
+
"engines": {
|
|
35
|
+
"node": ">=18.0.0"
|
|
36
|
+
},
|
|
37
|
+
"scripts": {
|
|
38
|
+
"build": "tsc",
|
|
39
|
+
"prepublishOnly": "npm run build"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@types/node": "^20.0.0",
|
|
43
|
+
"typescript": "^5.3.0"
|
|
44
|
+
}
|
|
45
|
+
}
|