@fragment-dev/cli 2026.6.4 → 2026.6.5-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.
Files changed (87) hide show
  1. package/README.md +31 -5
  2. package/dist/{chunk-E7E3SSNY.js → chunk-3Z7YOSNF.js} +7 -7
  3. package/dist/chunk-4GF5BFDU.js +6091 -0
  4. package/dist/{chunk-Q6HQVMXZ.js → chunk-4GFUVXOU.js} +1 -1
  5. package/dist/chunk-4NJIQ4GG.js +168 -0
  6. package/dist/{chunk-CSSMGU2E.js → chunk-54TES6VA.js} +2 -2
  7. package/dist/{chunk-VGJJO3TO.js → chunk-5DN7VDST.js} +3 -3
  8. package/dist/{chunk-6NRTWULL.js → chunk-5HHWLQQP.js} +3 -5
  9. package/dist/{chunk-HNECLJVK.js → chunk-65ZH3QK2.js} +5 -5
  10. package/dist/{chunk-FLOP7UZS.js → chunk-66AHNAX3.js} +3 -3
  11. package/dist/chunk-66MJVSVR.js +14200 -0
  12. package/dist/{chunk-WXUF6LL2.js → chunk-6OHUBHOM.js} +1 -1
  13. package/dist/{chunk-WCMNBPIT.js → chunk-7ANSQIHO.js} +3 -3
  14. package/dist/{chunk-SNADJKMJ.js → chunk-7ODKTNDM.js} +2 -2
  15. package/dist/{chunk-X34FYDI4.js → chunk-7VZGNWZU.js} +3 -3
  16. package/dist/chunk-BRU5ITZE.js +229 -0
  17. package/dist/{chunk-L3ZNGAPY.js → chunk-F3APAVQ6.js} +2 -2
  18. package/dist/{chunk-5TQBOAE7.js → chunk-HLYDHSCC.js} +177 -187
  19. package/dist/{chunk-VZ2CPEPR.js → chunk-IDKZFORS.js} +3 -3
  20. package/dist/{chunk-WMPWO3EU.js → chunk-IH5353LR.js} +3 -3
  21. package/dist/{chunk-C7YTQ6BB.js → chunk-KITXRL7V.js} +3 -3
  22. package/dist/{chunk-RCIUPDRC.js → chunk-KRY3SN6D.js} +1 -1
  23. package/dist/{chunk-WAPUAO2X.js → chunk-KWPWX7YO.js} +3 -3
  24. package/dist/{chunk-WWS2QAQ3.js → chunk-LUXIPN36.js} +2 -2
  25. package/dist/{chunk-FCTATTYL.js → chunk-MH2TBRE7.js} +5 -5
  26. package/dist/{chunk-Z2CERENO.js → chunk-MJFFSZAZ.js} +4 -4
  27. package/dist/{chunk-UDU5PBTV.js → chunk-O7AE4SQS.js} +1 -1
  28. package/dist/chunk-OAOBQSDM.js +9275 -0
  29. package/dist/{chunk-RNNM3ZIP.js → chunk-OQT45AYL.js} +1 -1
  30. package/dist/{chunk-MBAU3K3S.js → chunk-PYQBNBYQ.js} +2 -2
  31. package/dist/{chunk-LJSFUVJW.js → chunk-QG5ISRA6.js} +4 -4
  32. package/dist/{chunk-KVUTOGXI.js → chunk-SHOJMF7A.js} +32 -27
  33. package/dist/{chunk-ZMR35FCP.js → chunk-THGLXMNF.js} +26158 -35276
  34. package/dist/{chunk-7DLF4ROM.js → chunk-TLN6TZFS.js} +282 -3634
  35. package/dist/{chunk-DR6JWXVF.js → chunk-TUJDC72W.js} +3 -3
  36. package/dist/{chunk-VEL3UEZV.js → chunk-VPS4SSBG.js} +5 -5
  37. package/dist/chunk-W6O4UGRF.js +3517 -0
  38. package/dist/{chunk-UMIILSMO.js → chunk-X35DOMX4.js} +5 -5
  39. package/dist/{chunk-WWUN4GV2.js → chunk-XIZTVCPY.js} +3 -3
  40. package/dist/{chunk-M5OAS5QZ.js → chunk-XK2D2Z44.js} +3 -3
  41. package/dist/{chunk-UV7STDIC.js → chunk-Y3ACGBDY.js} +3 -3
  42. package/dist/{chunk-J2FNJFQG.js → chunk-Y5I74W3X.js} +7 -7
  43. package/dist/chunk-YEZSTJP5.js +120 -0
  44. package/dist/{chunk-EJ7BSQ4G.js → chunk-YFK5FYC3.js} +3 -3
  45. package/dist/{chunk-M5X3GRYG.js → chunk-ZA25L4BB.js} +2 -2
  46. package/dist/{chunk-73ZTML2E.js → chunk-ZMFGVGZP.js} +1 -1
  47. package/dist/commands/add-ledger-entry.js +10 -8
  48. package/dist/commands/create-custom-link.js +10 -8
  49. package/dist/commands/create-ledger.js +10 -8
  50. package/dist/commands/delete-custom-txs.js +10 -8
  51. package/dist/commands/delete-ledger.js +10 -8
  52. package/dist/commands/delete-schema.js +10 -8
  53. package/dist/commands/designer-mcp.js +19 -0
  54. package/dist/commands/gen-graphql.js +15 -13
  55. package/dist/commands/get-schema.js +12 -9
  56. package/dist/commands/init.js +9 -7
  57. package/dist/commands/login.js +11 -8
  58. package/dist/commands/migrate-ledger-entry.js +10 -8
  59. package/dist/commands/query/ledgerAccounts.js +10 -8
  60. package/dist/commands/query/ledgers.js +10 -8
  61. package/dist/commands/query/schema.js +10 -8
  62. package/dist/commands/query/schemas.js +10 -8
  63. package/dist/commands/reverse-ledger-entry.js +10 -8
  64. package/dist/commands/start.js +9 -7
  65. package/dist/commands/store-schema.js +10 -8
  66. package/dist/commands/token.js +10 -8
  67. package/dist/commands/update-ledger-account.js +10 -8
  68. package/dist/commands/update.js +11 -8
  69. package/dist/commands/verify-schema.js +14 -12
  70. package/dist/commands/workspace.js +10 -8
  71. package/dist/commands.js +44 -40
  72. package/dist/designer/commandQueue.js +7 -0
  73. package/dist/designer/mcpServer.js +8 -0
  74. package/dist/designer/server.js +13557 -0
  75. package/dist/graphql.js +5 -6
  76. package/dist/index.js +44 -40
  77. package/dist/lib/auth.js +3 -2
  78. package/dist/lib/authenticatedCommand.js +9 -7
  79. package/dist/lib/baseCommand.js +8 -6
  80. package/dist/lib/errors.js +2 -2
  81. package/dist/utils/formatValidationErrors.js +5 -4
  82. package/dist/utils/schemaValidation.js +8 -7
  83. package/dist/utils.js +2 -2
  84. package/dist/version.js +3 -2
  85. package/oclif.manifest.json +44 -1
  86. package/package.json +10 -7
  87. package/dist/chunk-GWFXCSSY.js +0 -2018
package/README.md CHANGED
@@ -13,6 +13,7 @@
13
13
  * [`fragment delete-custom-txs`](#fragment-delete-custom-txs)
14
14
  * [`fragment delete-ledger`](#fragment-delete-ledger)
15
15
  * [`fragment delete-schema`](#fragment-delete-schema)
16
+ * [`fragment designer-mcp`](#fragment-designer-mcp)
16
17
  * [`fragment gen-graphql`](#fragment-gen-graphql)
17
18
  * [`fragment get-schema`](#fragment-get-schema)
18
19
  * [`fragment help [COMMAND]`](#fragment-help-command)
@@ -74,7 +75,7 @@ USAGE
74
75
  $ fragment autocomplete [SHELL] [-r]
75
76
 
76
77
  ARGUMENTS
77
- SHELL (zsh|bash|powershell) Shell type
78
+ [SHELL] (zsh|bash|powershell) Shell type
78
79
 
79
80
  FLAGS
80
81
  -r, --refresh-cache Refresh cache (ignores displaying instructions)
@@ -94,7 +95,7 @@ EXAMPLES
94
95
  $ fragment autocomplete --refresh-cache
95
96
  ```
96
97
 
97
- _See code: [@oclif/plugin-autocomplete](https://github.com/oclif/plugin-autocomplete/blob/v3.0.4/src/commands/autocomplete/index.ts)_
98
+ _See code: [@oclif/plugin-autocomplete](https://github.com/oclif/plugin-autocomplete/blob/v3.2.50/src/commands/autocomplete/index.ts)_
98
99
 
99
100
  ## `fragment commands`
100
101
 
@@ -123,7 +124,7 @@ DESCRIPTION
123
124
  List all fragment commands.
124
125
  ```
125
126
 
126
- _See code: [@oclif/plugin-commands](https://github.com/oclif/plugin-commands/blob/v4.0.10/src/commands/commands.ts)_
127
+ _See code: [@oclif/plugin-commands](https://github.com/oclif/plugin-commands/blob/4.1.57/src/commands/commands.ts)_
127
128
 
128
129
  ## `fragment create-custom-link`
129
130
 
@@ -233,6 +234,31 @@ EXAMPLES
233
234
  $ fragment delete-schema
234
235
  ```
235
236
 
237
+ ## `fragment designer-mcp`
238
+
239
+ Start a local MCP server that lets an LLM drive the Fragment schema designer (live Liveblocks mutations) through the dashboard.
240
+
241
+ ```
242
+ USAGE
243
+ $ fragment designer-mcp [-p <value>] [--host <value>] [--allowed-origin <value>...]
244
+
245
+ FLAGS
246
+ -p, --port=<value> [default: 4321] Port to bind the HTTP server on
247
+ --allowed-origin=<value>... Additional CORS origin to allow (repeatable). Localhost is always allowed.
248
+ --host=<value> [default: 127.0.0.1] Host to bind the HTTP server on
249
+
250
+ DESCRIPTION
251
+ Start a local MCP server that lets an LLM drive the Fragment schema designer (live Liveblocks mutations) through the
252
+ dashboard.
253
+
254
+ EXAMPLES
255
+ $ fragment designer-mcp
256
+
257
+ $ fragment designer-mcp --port 4321
258
+
259
+ $ fragment designer-mcp --host 127.0.0.1 --port 5000
260
+ ```
261
+
236
262
  ## `fragment gen-graphql`
237
263
 
238
264
  Generate GraphQL queries from your Schema for your SDK.
@@ -307,7 +333,7 @@ USAGE
307
333
  $ fragment help [COMMAND...] [-n]
308
334
 
309
335
  ARGUMENTS
310
- COMMAND... Command to show help for.
336
+ [COMMAND...] Command to show help for.
311
337
 
312
338
  FLAGS
313
339
  -n, --nested-commands Include all nested commands in the output.
@@ -316,7 +342,7 @@ DESCRIPTION
316
342
  Display help for fragment.
317
343
  ```
318
344
 
319
- _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.7/src/commands/help.ts)_
345
+ _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/6.2.50/src/commands/help.ts)_
320
346
 
321
347
  ## `fragment init`
322
348
 
@@ -1,6 +1,6 @@
1
1
  import {
2
- z
3
- } from "./chunk-5TQBOAE7.js";
2
+ external_exports
3
+ } from "./chunk-BRU5ITZE.js";
4
4
  import {
5
5
  FRAGMENT_ACCESS_TOKEN_PATH
6
6
  } from "./chunk-WS2PJBP6.js";
@@ -12,12 +12,12 @@ import {
12
12
  init_cjs_shims();
13
13
  import { existsSync, readFileSync, writeFileSync } from "fs";
14
14
  var DEFAULT_TOKEN_EXPIRATION_MS = 3600 * 1e3;
15
- var AccessTokenSchema = z.object({
16
- access_token: z.string(),
17
- expires_in: z.number(),
15
+ var AccessTokenSchema = external_exports.object({
16
+ access_token: external_exports.string(),
17
+ expires_in: external_exports.number(),
18
18
  // 3600
19
- token_type: z.literal("Bearer"),
20
- created_ms: z.number().optional().default(() => Date.now() - DEFAULT_TOKEN_EXPIRATION_MS)
19
+ token_type: external_exports.literal("Bearer"),
20
+ created_ms: external_exports.number().optional().default(() => Date.now() - DEFAULT_TOKEN_EXPIRATION_MS)
21
21
  });
22
22
  var btoa = (str) => Buffer.from(str).toString("base64");
23
23
  var getToken = async (authConfig) => {