@fileverse/api 0.0.7 → 0.0.9
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/cli/index.js +12 -11
- package/dist/cli/index.js.map +1 -1
- package/dist/cloudflare.js +17862 -0
- package/dist/cloudflare.js.map +1 -0
- package/dist/commands/index.js +7 -2
- package/dist/commands/index.js.map +1 -1
- package/dist/index.js +12 -1
- package/dist/index.js.map +1 -1
- package/dist/worker.js +6 -1
- package/dist/worker.js.map +1 -1
- package/package.json +4 -3
package/dist/cli/index.js
CHANGED
|
@@ -97,7 +97,12 @@ var init_config = __esm({
|
|
|
97
97
|
init_constants();
|
|
98
98
|
projectEnvPath = path4.join(process.cwd(), "config", ".env");
|
|
99
99
|
userEnvPath = path4.join(os2.homedir(), ".fileverse", ".env");
|
|
100
|
-
|
|
100
|
+
if (typeof globalThis.process !== "undefined" && typeof globalThis.process.cwd === "function") {
|
|
101
|
+
try {
|
|
102
|
+
loadConfig(false);
|
|
103
|
+
} catch {
|
|
104
|
+
}
|
|
105
|
+
}
|
|
101
106
|
config = {
|
|
102
107
|
...STATIC_CONFIG,
|
|
103
108
|
get SERVICE_NAME() {
|
|
@@ -1431,7 +1436,7 @@ var decryptSavedData = async (apiKey, encryptedData) => {
|
|
|
1431
1436
|
};
|
|
1432
1437
|
|
|
1433
1438
|
// src/cli/index.ts
|
|
1434
|
-
var program = new Command().name("fileverse-api").description("Run the Fileverse API server").version("0.0.
|
|
1439
|
+
var program = new Command().name("fileverse-api").description("Run the Fileverse API server").version("0.0.8").option("--apiKey <key>", "API key for authentication").option("--rpcUrl <url>", "RPC URL for blockchain connection").option("--port <port>", "Port to run the server on", "8001").option("--db <path>", "Database path").action(async (options) => {
|
|
1435
1440
|
try {
|
|
1436
1441
|
console.log("Fileverse API - Starting initialization...\n");
|
|
1437
1442
|
if (needsPrompting(options)) {
|
|
@@ -1479,17 +1484,13 @@ var program = new Command().name("fileverse-api").description("Run the Fileverse
|
|
|
1479
1484
|
API Server: http://127.0.0.1:${options.port}
|
|
1480
1485
|
Worker: Active
|
|
1481
1486
|
|
|
1482
|
-
MCP:
|
|
1487
|
+
MCP: Connect Claude to your Fileverse API:
|
|
1483
1488
|
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
"fileverse-api": {
|
|
1487
|
-
"command": "fileverse-api-mcp"
|
|
1488
|
-
}
|
|
1489
|
-
}
|
|
1490
|
-
}
|
|
1489
|
+
Via stdio:
|
|
1490
|
+
claude mcp add fileverse-api -- fileverse-api-mcp
|
|
1491
1491
|
|
|
1492
|
-
|
|
1492
|
+
Via HTTP:
|
|
1493
|
+
claude mcp add --transport http fileverse-api http://127.0.0.1:${options.port}/mcp
|
|
1493
1494
|
|
|
1494
1495
|
Press Ctrl+C to stop.
|
|
1495
1496
|
`);
|