@fidacy/mcp 0.6.0 → 0.6.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.
- package/CHANGELOG.md +6 -0
- package/dist/core.js +1 -1
- package/dist/index.js +16 -5
- package/dist/lib.js +3 -3
- package/dist/postinstall.js +13 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.6.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fix `npx @fidacy/mcp setup` hanging when it has no terminal. The explicit command forced the prompt open regardless of context, so running it with redirected or piped input waited forever for an answer that could never come. The terminal check now covers that path too and prints how to run it properly instead. Also fixes the postinstall hook failing an install inside a source checkout, where the built file it points at does not exist yet.
|
|
8
|
+
|
|
3
9
|
## 0.6.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/dist/core.js
CHANGED
|
@@ -488,7 +488,7 @@ function resolveMandateRules(cfg) {
|
|
|
488
488
|
}
|
|
489
489
|
|
|
490
490
|
// src/telemetry.ts
|
|
491
|
-
var CLIENT_VERSION = true ? "0.6.
|
|
491
|
+
var CLIENT_VERSION = true ? "0.6.1" : "dev";
|
|
492
492
|
function bandOf(amount) {
|
|
493
493
|
if (typeof amount !== "number" || !Number.isFinite(amount) || amount <= 0) return void 0;
|
|
494
494
|
if (amount < 10) return "lt10";
|
package/dist/index.js
CHANGED
|
@@ -214,7 +214,7 @@ var init_telemetry = __esm({
|
|
|
214
214
|
"src/telemetry.ts"() {
|
|
215
215
|
"use strict";
|
|
216
216
|
init_config();
|
|
217
|
-
CLIENT_VERSION = true ? "0.6.
|
|
217
|
+
CLIENT_VERSION = true ? "0.6.1" : "dev";
|
|
218
218
|
currentShell = "mcp";
|
|
219
219
|
anonIdCache = null;
|
|
220
220
|
buffer = [];
|
|
@@ -291,7 +291,7 @@ var init_register = __esm({
|
|
|
291
291
|
"src/register.ts"() {
|
|
292
292
|
"use strict";
|
|
293
293
|
init_config();
|
|
294
|
-
CLIENT_VERSION3 = true ? "0.6.
|
|
294
|
+
CLIENT_VERSION3 = true ? "0.6.1" : "dev";
|
|
295
295
|
}
|
|
296
296
|
});
|
|
297
297
|
|
|
@@ -521,7 +521,18 @@ function looksLikeEmail2(s) {
|
|
|
521
521
|
return /^[^@\s]+@[^@\s]+\.[^@\s]+$/.test(s);
|
|
522
522
|
}
|
|
523
523
|
async function runSetup(opts = {}) {
|
|
524
|
-
if (!
|
|
524
|
+
if (!isInteractive()) {
|
|
525
|
+
if (opts.force) {
|
|
526
|
+
process.stdout.write(
|
|
527
|
+
`
|
|
528
|
+
${BRAND}: this needs an interactive terminal.
|
|
529
|
+
Run \`npx @fidacy/mcp setup\` directly in your shell, or set FIDACY_OPERATOR_EMAIL.
|
|
530
|
+
|
|
531
|
+
`
|
|
532
|
+
);
|
|
533
|
+
}
|
|
534
|
+
return "skipped_noninteractive";
|
|
535
|
+
}
|
|
525
536
|
ensureState();
|
|
526
537
|
if (!needsOperatorEmail() && !opts.force) return "already";
|
|
527
538
|
const rl = createInterface({ input: process.stdin, output: process.stdout });
|
|
@@ -1256,7 +1267,7 @@ init_telemetry();
|
|
|
1256
1267
|
|
|
1257
1268
|
// src/provision.ts
|
|
1258
1269
|
init_config();
|
|
1259
|
-
var CLIENT_VERSION2 = true ? "0.6.
|
|
1270
|
+
var CLIENT_VERSION2 = true ? "0.6.1" : "dev";
|
|
1260
1271
|
function provisionEnabled() {
|
|
1261
1272
|
const v = (process.env.FIDACY_DISABLE_PROVISION ?? "").trim().toLowerCase();
|
|
1262
1273
|
return !(v === "1" || v === "true" || v === "yes");
|
|
@@ -1583,7 +1594,7 @@ function renderAlertLine(alerts) {
|
|
|
1583
1594
|
var state = ensureState();
|
|
1584
1595
|
var core = makeCore();
|
|
1585
1596
|
var subject = process.env.FIDACY_SUBJECT ?? "agent:demo";
|
|
1586
|
-
var SERVER_VERSION = true ? "0.6.
|
|
1597
|
+
var SERVER_VERSION = true ? "0.6.1" : "dev";
|
|
1587
1598
|
var bootClaim = claimUrl();
|
|
1588
1599
|
var server = new McpServer(
|
|
1589
1600
|
// The commercial identity. `name` is the stable slug hosts key on; `title` is
|
package/dist/lib.js
CHANGED
|
@@ -643,7 +643,7 @@ function resolveMandateRules(cfg) {
|
|
|
643
643
|
}
|
|
644
644
|
|
|
645
645
|
// src/telemetry.ts
|
|
646
|
-
var CLIENT_VERSION = true ? "0.6.
|
|
646
|
+
var CLIENT_VERSION = true ? "0.6.1" : "dev";
|
|
647
647
|
function bandOf(amount) {
|
|
648
648
|
if (typeof amount !== "number" || !Number.isFinite(amount) || amount <= 0) return void 0;
|
|
649
649
|
if (amount < 10) return "lt10";
|
|
@@ -831,7 +831,7 @@ function requestUpgrade() {
|
|
|
831
831
|
}
|
|
832
832
|
|
|
833
833
|
// src/provision.ts
|
|
834
|
-
var CLIENT_VERSION2 = true ? "0.6.
|
|
834
|
+
var CLIENT_VERSION2 = true ? "0.6.1" : "dev";
|
|
835
835
|
function provisionEnabled() {
|
|
836
836
|
const v = (process.env.FIDACY_DISABLE_PROVISION ?? "").trim().toLowerCase();
|
|
837
837
|
return !(v === "1" || v === "true" || v === "yes");
|
|
@@ -994,7 +994,7 @@ function activationBootLine() {
|
|
|
994
994
|
}
|
|
995
995
|
|
|
996
996
|
// src/register.ts
|
|
997
|
-
var CLIENT_VERSION3 = true ? "0.6.
|
|
997
|
+
var CLIENT_VERSION3 = true ? "0.6.1" : "dev";
|
|
998
998
|
function endpoint3() {
|
|
999
999
|
const base = (process.env.FIDACY_ENGINE_URL ?? "https://api.fidacy.com").replace(/\/$/, "");
|
|
1000
1000
|
return `${base}/v1/register`;
|
package/dist/postinstall.js
CHANGED
|
@@ -134,7 +134,7 @@ var init_register = __esm({
|
|
|
134
134
|
"src/register.ts"() {
|
|
135
135
|
"use strict";
|
|
136
136
|
init_config();
|
|
137
|
-
CLIENT_VERSION = true ? "0.6.
|
|
137
|
+
CLIENT_VERSION = true ? "0.6.1" : "dev";
|
|
138
138
|
}
|
|
139
139
|
});
|
|
140
140
|
|
|
@@ -192,7 +192,18 @@ function looksLikeEmail2(s) {
|
|
|
192
192
|
return /^[^@\s]+@[^@\s]+\.[^@\s]+$/.test(s);
|
|
193
193
|
}
|
|
194
194
|
async function runSetup(opts = {}) {
|
|
195
|
-
if (!
|
|
195
|
+
if (!isInteractive()) {
|
|
196
|
+
if (opts.force) {
|
|
197
|
+
process.stdout.write(
|
|
198
|
+
`
|
|
199
|
+
${BRAND}: this needs an interactive terminal.
|
|
200
|
+
Run \`npx @fidacy/mcp setup\` directly in your shell, or set FIDACY_OPERATOR_EMAIL.
|
|
201
|
+
|
|
202
|
+
`
|
|
203
|
+
);
|
|
204
|
+
}
|
|
205
|
+
return "skipped_noninteractive";
|
|
206
|
+
}
|
|
196
207
|
ensureState();
|
|
197
208
|
if (!needsOperatorEmail() && !opts.force) return "already";
|
|
198
209
|
const rl = createInterface({ input: process.stdin, output: process.stdout });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fidacy/mcp",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "Fidacy action firewall for AI agents. Mandate-gated payment authorization as an MCP server.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Fidacy (ZeepCode Group Technology LLC) <hello@fidacy.com> (https://fidacy.com)",
|