@fragment-dev/cli 2026.6.23-1 → 2026.6.23-4
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/README.md +0 -25
- package/dist/{chunk-RYBPAM35.js → chunk-273N6ZXQ.js} +3 -3
- package/dist/{chunk-3Z7YOSNF.js → chunk-2BXFOBDR.js} +1 -1
- package/dist/{chunk-THGLXMNF.js → chunk-2TY723F2.js} +9700 -481
- package/dist/{chunk-65ZH3QK2.js → chunk-2XVJPTGJ.js} +5 -5
- package/dist/{chunk-4GFUVXOU.js → chunk-4ON2JBLL.js} +1 -1
- package/dist/{chunk-YFK5FYC3.js → chunk-5UQJOVVA.js} +2 -2
- package/dist/{chunk-7VZGNWZU.js → chunk-7FAAI43J.js} +2 -2
- package/dist/{chunk-QG5ISRA6.js → chunk-BBZDU3B4.js} +1 -1
- package/dist/{chunk-ZA25L4BB.js → chunk-CZDYCUNU.js} +2 -2
- package/dist/{chunk-IH5353LR.js → chunk-DEQKFNI7.js} +2 -2
- package/dist/{chunk-7ODKTNDM.js → chunk-DRO64DIW.js} +2 -2
- package/dist/{chunk-54TES6VA.js → chunk-DSRAWD4N.js} +1 -1
- package/dist/{chunk-XIZTVCPY.js → chunk-FWFNCG6R.js} +2 -2
- package/dist/{chunk-426XTAUO.js → chunk-HKNXFZFT.js} +1 -1
- package/dist/{chunk-TLN6TZFS.js → chunk-INAIBX5Q.js} +3506 -11
- package/dist/{chunk-HLYDHSCC.js → chunk-L7ZGDLYU.js} +121 -103
- package/dist/{chunk-TUJDC72W.js → chunk-LQOUDLSN.js} +2 -2
- package/dist/{chunk-6OHUBHOM.js → chunk-MOQTJOKZ.js} +1 -1
- package/dist/{chunk-4WW4FP3U.js → chunk-MRTEC2MR.js} +27 -32
- package/dist/{chunk-KWPWX7YO.js → chunk-OKUHODEP.js} +2 -2
- package/dist/{chunk-KRY3SN6D.js → chunk-Q4ZQFJOW.js} +1 -1
- package/dist/{chunk-F3APAVQ6.js → chunk-R3UOJOBB.js} +1 -1
- package/dist/{chunk-LUXIPN36.js → chunk-RAVIBG3R.js} +1 -1
- package/dist/{chunk-KITXRL7V.js → chunk-S5ZYP5UA.js} +2 -2
- package/dist/{chunk-ASNIF3XW.js → chunk-UMTPP457.js} +3 -3
- package/dist/{chunk-RBQFB2R6.js → chunk-W2XQHKPZ.js} +3 -3
- package/dist/{chunk-IDKZFORS.js → chunk-WAMB7442.js} +2 -2
- package/dist/{chunk-5DN7VDST.js → chunk-Y32HJLPJ.js} +2 -2
- package/dist/{chunk-PYQBNBYQ.js → chunk-Y7M36OPF.js} +1 -1
- package/dist/{chunk-66AHNAX3.js → chunk-YKKDKAMP.js} +2 -2
- package/dist/{chunk-MJFFSZAZ.js → chunk-YNEY7R37.js} +3 -3
- package/dist/{chunk-7ANSQIHO.js → chunk-ZNXOMYLU.js} +2 -2
- package/dist/commands/add-ledger-entry.js +7 -9
- package/dist/commands/create-custom-link.js +7 -9
- package/dist/commands/create-ledger.js +7 -9
- package/dist/commands/delete-custom-txs.js +7 -9
- package/dist/commands/delete-ledger.js +7 -9
- package/dist/commands/delete-schema.js +7 -9
- package/dist/commands/gen-graphql.js +8 -10
- package/dist/commands/get-schema.js +8 -11
- package/dist/commands/init.js +6 -8
- package/dist/commands/login.js +7 -10
- package/dist/commands/migrate-ledger-entry.js +7 -9
- package/dist/commands/query/ledgerAccounts.js +7 -9
- package/dist/commands/query/ledgers.js +7 -9
- package/dist/commands/query/schema.js +7 -9
- package/dist/commands/query/schemas.js +7 -9
- package/dist/commands/reverse-ledger-entry.js +7 -9
- package/dist/commands/start.js +6 -8
- package/dist/commands/store-schema.js +7 -9
- package/dist/commands/token.js +7 -9
- package/dist/commands/update-ledger-account.js +7 -9
- package/dist/commands/update.js +7 -10
- package/dist/commands/verify-schema.js +8 -10
- package/dist/commands/workspace.js +7 -9
- package/dist/commands.js +35 -39
- package/dist/graphql.js +2 -2
- package/dist/index.js +35 -39
- package/dist/lib/auth.js +2 -3
- package/dist/lib/authenticatedCommand.js +6 -8
- package/dist/lib/baseCommand.js +5 -7
- package/dist/utils/formatValidationErrors.js +2 -3
- package/dist/utils/schemaValidation.js +3 -4
- package/dist/version.js +2 -3
- package/oclif.manifest.json +1 -44
- package/package.json +1 -3
- package/dist/chunk-4NJIQ4GG.js +0 -168
- package/dist/chunk-66MJVSVR.js +0 -14200
- package/dist/chunk-BRU5ITZE.js +0 -229
- package/dist/chunk-OAOBQSDM.js +0 -9275
- package/dist/chunk-UDV5USSB.js +0 -120
- package/dist/chunk-W6O4UGRF.js +0 -3517
- package/dist/commands/designer-mcp.js +0 -19
- package/dist/designer/commandQueue.js +0 -7
- package/dist/designer/mcpServer.js +0 -8
- package/dist/designer/server.js +0 -13557
- package/dist/{chunk-WEG4FG46.js → chunk-PGXQFGGZ.js} +3 -3
package/dist/chunk-UDV5USSB.js
DELETED
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
FragmentCommand,
|
|
3
|
-
require_lib
|
|
4
|
-
} from "./chunk-THGLXMNF.js";
|
|
5
|
-
import {
|
|
6
|
-
require_source
|
|
7
|
-
} from "./chunk-XK2D2Z44.js";
|
|
8
|
-
import {
|
|
9
|
-
__toESM,
|
|
10
|
-
init_cjs_shims
|
|
11
|
-
} from "./chunk-7GH3YGSC.js";
|
|
12
|
-
|
|
13
|
-
// src/commands/designer-mcp.ts
|
|
14
|
-
init_cjs_shims();
|
|
15
|
-
var import_core = __toESM(require_lib(), 1);
|
|
16
|
-
var import_chalk = __toESM(require_source(), 1);
|
|
17
|
-
var DesignerMcp = class _DesignerMcp extends FragmentCommand {
|
|
18
|
-
static {
|
|
19
|
-
this.description = "Connect your LLM to the Fragment Schema designer (experimental)";
|
|
20
|
-
}
|
|
21
|
-
static {
|
|
22
|
-
this.examples = [
|
|
23
|
-
"<%= config.bin %> <%= command.id %>",
|
|
24
|
-
"<%= config.bin %> <%= command.id %> --port 4321",
|
|
25
|
-
"<%= config.bin %> <%= command.id %> --host 127.0.0.1 --port 5000"
|
|
26
|
-
];
|
|
27
|
-
}
|
|
28
|
-
static {
|
|
29
|
-
this.flags = {
|
|
30
|
-
port: import_core.Flags.integer({
|
|
31
|
-
char: "p",
|
|
32
|
-
description: "Port to bind the HTTP server on",
|
|
33
|
-
default: 4321
|
|
34
|
-
}),
|
|
35
|
-
host: import_core.Flags.string({
|
|
36
|
-
description: "Host to bind the HTTP server on",
|
|
37
|
-
default: "127.0.0.1"
|
|
38
|
-
}),
|
|
39
|
-
"allowed-origin": import_core.Flags.string({
|
|
40
|
-
description: "Additional CORS origin to allow (repeatable). Localhost is always allowed.",
|
|
41
|
-
multiple: true
|
|
42
|
-
})
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
// Skip version check and analytics — this is a long-running local dev server.
|
|
46
|
-
async init() {
|
|
47
|
-
if (process.env.ENABLE_DESIGNER_MCP !== "true") {
|
|
48
|
-
this.error("This feature is in development and not currently available.");
|
|
49
|
-
}
|
|
50
|
-
process.env.FRAGMENT_SKIP_AUTO_UPDATE = "true";
|
|
51
|
-
process.env.DISABLE_CLI_ANALYTICS = "true";
|
|
52
|
-
await super.init();
|
|
53
|
-
}
|
|
54
|
-
async run() {
|
|
55
|
-
const { flags } = await this.parse(_DesignerMcp);
|
|
56
|
-
let startDesignerMcpServer;
|
|
57
|
-
try {
|
|
58
|
-
const mod = await import("./designer/server.js");
|
|
59
|
-
startDesignerMcpServer = mod.startDesignerMcpServer;
|
|
60
|
-
} catch (err) {
|
|
61
|
-
if (err instanceof Error) {
|
|
62
|
-
this.logToStderr(`Failed to load designer MCP server: ${err.message}`);
|
|
63
|
-
} else {
|
|
64
|
-
console.error(err);
|
|
65
|
-
this.logToStderr("Failed to load designer MCP server module.");
|
|
66
|
-
}
|
|
67
|
-
this.exit(1);
|
|
68
|
-
return;
|
|
69
|
-
}
|
|
70
|
-
const handle = await startDesignerMcpServer({
|
|
71
|
-
port: flags.port,
|
|
72
|
-
host: flags.host,
|
|
73
|
-
allowedOrigins: flags["allowed-origin"] ?? [],
|
|
74
|
-
logger: {
|
|
75
|
-
log: (...args) => this.log(
|
|
76
|
-
...args.map(
|
|
77
|
-
(a) => a instanceof Error ? a.message : typeof a === "object" ? JSON.stringify(a) : String(a)
|
|
78
|
-
)
|
|
79
|
-
),
|
|
80
|
-
error: (...args) => this.logToStderr(
|
|
81
|
-
...args.map(
|
|
82
|
-
(a) => a instanceof Error ? a.message : typeof a === "object" ? JSON.stringify(a) : String(a)
|
|
83
|
-
)
|
|
84
|
-
)
|
|
85
|
-
}
|
|
86
|
-
});
|
|
87
|
-
this.log("");
|
|
88
|
-
this.log(import_chalk.default.green("\u2705 Fragment Designer MCP server running"));
|
|
89
|
-
this.log("");
|
|
90
|
-
this.log(` MCP endpoint: ${import_chalk.default.cyan(`${handle.url}/mcp`)}`);
|
|
91
|
-
this.log(` Dashboard bridge: ${import_chalk.default.cyan(`${handle.url}/bridge`)}`);
|
|
92
|
-
this.log(` Health check: ${import_chalk.default.cyan(`${handle.url}/health`)}`);
|
|
93
|
-
this.log("");
|
|
94
|
-
this.log(
|
|
95
|
-
"Open the schema designer in the dashboard \u2014 it will auto-connect to this server."
|
|
96
|
-
);
|
|
97
|
-
this.log("");
|
|
98
|
-
this.log(
|
|
99
|
-
`Configure your MCP client (Claude Desktop, Cursor, etc.) with the URL ${import_chalk.default.cyan(
|
|
100
|
-
`${handle.url}/mcp`
|
|
101
|
-
)}.`
|
|
102
|
-
);
|
|
103
|
-
this.log("");
|
|
104
|
-
this.log(import_chalk.default.gray("Press Ctrl+C to stop."));
|
|
105
|
-
const shutdown = (signal) => {
|
|
106
|
-
this.log(`
|
|
107
|
-
Received ${signal}, shutting down...`);
|
|
108
|
-
handle.close().finally(() => process.exit(0));
|
|
109
|
-
setTimeout(() => process.exit(0), 500).unref();
|
|
110
|
-
};
|
|
111
|
-
process.on("SIGINT", () => shutdown("SIGINT"));
|
|
112
|
-
process.on("SIGTERM", () => shutdown("SIGTERM"));
|
|
113
|
-
await new Promise(() => {
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
export {
|
|
119
|
-
DesignerMcp
|
|
120
|
-
};
|