@fragment-dev/cli 2026.6.23-1 → 2026.6.23-10

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.
Files changed (78) hide show
  1. package/README.md +0 -25
  2. package/dist/{chunk-RYBPAM35.js → chunk-273N6ZXQ.js} +3 -3
  3. package/dist/{chunk-3Z7YOSNF.js → chunk-2BXFOBDR.js} +1 -1
  4. package/dist/{chunk-THGLXMNF.js → chunk-2TY723F2.js} +9700 -481
  5. package/dist/{chunk-65ZH3QK2.js → chunk-2XVJPTGJ.js} +5 -5
  6. package/dist/{chunk-4GFUVXOU.js → chunk-4ON2JBLL.js} +1 -1
  7. package/dist/{chunk-YFK5FYC3.js → chunk-5UQJOVVA.js} +2 -2
  8. package/dist/{chunk-7VZGNWZU.js → chunk-7FAAI43J.js} +2 -2
  9. package/dist/{chunk-QG5ISRA6.js → chunk-BBZDU3B4.js} +1 -1
  10. package/dist/{chunk-ZA25L4BB.js → chunk-CZDYCUNU.js} +2 -2
  11. package/dist/{chunk-IH5353LR.js → chunk-DEQKFNI7.js} +2 -2
  12. package/dist/{chunk-7ODKTNDM.js → chunk-DRO64DIW.js} +2 -2
  13. package/dist/{chunk-54TES6VA.js → chunk-DSRAWD4N.js} +1 -1
  14. package/dist/{chunk-XIZTVCPY.js → chunk-FWFNCG6R.js} +2 -2
  15. package/dist/{chunk-426XTAUO.js → chunk-HKNXFZFT.js} +1 -1
  16. package/dist/{chunk-TLN6TZFS.js → chunk-INAIBX5Q.js} +3506 -11
  17. package/dist/{chunk-HLYDHSCC.js → chunk-L7ZGDLYU.js} +121 -103
  18. package/dist/{chunk-TUJDC72W.js → chunk-LQOUDLSN.js} +2 -2
  19. package/dist/{chunk-6OHUBHOM.js → chunk-MOQTJOKZ.js} +1 -1
  20. package/dist/{chunk-4WW4FP3U.js → chunk-MRTEC2MR.js} +27 -32
  21. package/dist/{chunk-KWPWX7YO.js → chunk-OKUHODEP.js} +2 -2
  22. package/dist/{chunk-KRY3SN6D.js → chunk-Q4ZQFJOW.js} +1 -1
  23. package/dist/{chunk-F3APAVQ6.js → chunk-R3UOJOBB.js} +1 -1
  24. package/dist/{chunk-LUXIPN36.js → chunk-RAVIBG3R.js} +1 -1
  25. package/dist/{chunk-KITXRL7V.js → chunk-S5ZYP5UA.js} +2 -2
  26. package/dist/{chunk-ASNIF3XW.js → chunk-UMTPP457.js} +3 -3
  27. package/dist/{chunk-RBQFB2R6.js → chunk-W2XQHKPZ.js} +3 -3
  28. package/dist/{chunk-IDKZFORS.js → chunk-WAMB7442.js} +2 -2
  29. package/dist/{chunk-5DN7VDST.js → chunk-Y32HJLPJ.js} +2 -2
  30. package/dist/{chunk-PYQBNBYQ.js → chunk-Y7M36OPF.js} +1 -1
  31. package/dist/{chunk-66AHNAX3.js → chunk-YKKDKAMP.js} +2 -2
  32. package/dist/{chunk-MJFFSZAZ.js → chunk-YNEY7R37.js} +3 -3
  33. package/dist/{chunk-7ANSQIHO.js → chunk-ZNXOMYLU.js} +2 -2
  34. package/dist/commands/add-ledger-entry.js +7 -9
  35. package/dist/commands/create-custom-link.js +7 -9
  36. package/dist/commands/create-ledger.js +7 -9
  37. package/dist/commands/delete-custom-txs.js +7 -9
  38. package/dist/commands/delete-ledger.js +7 -9
  39. package/dist/commands/delete-schema.js +7 -9
  40. package/dist/commands/gen-graphql.js +8 -10
  41. package/dist/commands/get-schema.js +8 -11
  42. package/dist/commands/init.js +6 -8
  43. package/dist/commands/login.js +7 -10
  44. package/dist/commands/migrate-ledger-entry.js +7 -9
  45. package/dist/commands/query/ledgerAccounts.js +7 -9
  46. package/dist/commands/query/ledgers.js +7 -9
  47. package/dist/commands/query/schema.js +7 -9
  48. package/dist/commands/query/schemas.js +7 -9
  49. package/dist/commands/reverse-ledger-entry.js +7 -9
  50. package/dist/commands/start.js +6 -8
  51. package/dist/commands/store-schema.js +7 -9
  52. package/dist/commands/token.js +7 -9
  53. package/dist/commands/update-ledger-account.js +7 -9
  54. package/dist/commands/update.js +7 -10
  55. package/dist/commands/verify-schema.js +8 -10
  56. package/dist/commands/workspace.js +7 -9
  57. package/dist/commands.js +35 -39
  58. package/dist/graphql.js +2 -2
  59. package/dist/index.js +35 -39
  60. package/dist/lib/auth.js +2 -3
  61. package/dist/lib/authenticatedCommand.js +6 -8
  62. package/dist/lib/baseCommand.js +5 -7
  63. package/dist/utils/formatValidationErrors.js +2 -3
  64. package/dist/utils/schemaValidation.js +3 -4
  65. package/dist/version.js +2 -3
  66. package/oclif.manifest.json +1 -44
  67. package/package.json +1 -3
  68. package/dist/chunk-4NJIQ4GG.js +0 -168
  69. package/dist/chunk-66MJVSVR.js +0 -14200
  70. package/dist/chunk-BRU5ITZE.js +0 -229
  71. package/dist/chunk-OAOBQSDM.js +0 -9275
  72. package/dist/chunk-UDV5USSB.js +0 -120
  73. package/dist/chunk-W6O4UGRF.js +0 -3517
  74. package/dist/commands/designer-mcp.js +0 -19
  75. package/dist/designer/commandQueue.js +0 -7
  76. package/dist/designer/mcpServer.js +0 -8
  77. package/dist/designer/server.js +0 -13557
  78. package/dist/{chunk-WEG4FG46.js → chunk-PGXQFGGZ.js} +3 -3
@@ -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
- };