@fragment-dev/cli 2026.10.1-8 → 2026.10.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 (74) hide show
  1. package/README.md +4 -16
  2. package/dist/{chunk-THGEB6PT.js → chunk-2DFNUYYB.js} +3 -3
  3. package/dist/{chunk-E7ZKZZP4.js → chunk-3QIKHVTA.js} +2 -2
  4. package/dist/{chunk-SU5G5HM2.js → chunk-4IMXVHLX.js} +2 -2
  5. package/dist/{chunk-NJSYUXAC.js → chunk-5JTGKU4S.js} +2 -2
  6. package/dist/{chunk-LDS5IWT5.js → chunk-5VGUS75G.js} +6 -6
  7. package/dist/{chunk-RML6NQHP.js → chunk-76JJLPFT.js} +1 -1
  8. package/dist/{chunk-DT372IG6.js → chunk-7LEHQFLL.js} +1 -1
  9. package/dist/{chunk-HK327LQP.js → chunk-B3OMOGVU.js} +3 -3
  10. package/dist/{chunk-JO6OQM5C.js → chunk-BMPSZNHE.js} +1 -1
  11. package/dist/{chunk-F4DGB2QI.js → chunk-C67WHN2H.js} +2 -2
  12. package/dist/{chunk-5NKCOZCW.js → chunk-D65TXRLZ.js} +2 -2
  13. package/dist/{chunk-XJ2TNWI7.js → chunk-DKAEBT2M.js} +0 -8
  14. package/dist/{chunk-KVBNKJBH.js → chunk-DURV4GOT.js} +2 -2
  15. package/dist/{chunk-WRUBCN4G.js → chunk-DVQMZBTY.js} +2 -2
  16. package/dist/{chunk-QGFJ5H4G.js → chunk-E4TL7SOK.js} +2 -2
  17. package/dist/{chunk-QBQANVTD.js → chunk-EIF4FTEI.js} +2 -2
  18. package/dist/{chunk-6PRTPBP7.js → chunk-F6IDBMXZ.js} +1 -1
  19. package/dist/{chunk-3IGRQ6LL.js → chunk-GZF5GHBV.js} +3 -3
  20. package/dist/{chunk-UJP55YSW.js → chunk-I65PNYBQ.js} +25 -25
  21. package/dist/{chunk-DYIB3NZM.js → chunk-I7HWZUNL.js} +12 -59
  22. package/dist/{chunk-2LDAYJQR.js → chunk-JMFDKBJW.js} +2 -2
  23. package/dist/{chunk-IQIFAKDJ.js → chunk-JV34IPXX.js} +3 -3
  24. package/dist/{chunk-V3NABYUX.js → chunk-JXIMFTTA.js} +2 -2
  25. package/dist/{chunk-Q3JFAZ3A.js → chunk-KP7MQPVO.js} +1 -1
  26. package/dist/{chunk-3IA6BI6A.js → chunk-LINOTI5E.js} +1 -1
  27. package/dist/{chunk-V4IQY3DF.js → chunk-MOBC7AAW.js} +1 -1
  28. package/dist/{chunk-3K6ERQYV.js → chunk-MUN6P2HN.js} +1 -1
  29. package/dist/{chunk-QZNZYG2G.js → chunk-PU52GTGB.js} +14 -24
  30. package/dist/{chunk-2QR6NGWG.js → chunk-Q62TGFNL.js} +1 -1
  31. package/dist/{chunk-M7BM6YC2.js → chunk-SWVXV42Y.js} +1 -1
  32. package/dist/{chunk-23KWDUJZ.js → chunk-T7PAZDQ2.js} +1 -7
  33. package/dist/{chunk-H3ZCVAW3.js → chunk-TXPR56T5.js} +1 -1
  34. package/dist/{chunk-5UOYY7GS.js → chunk-VZA2YKI6.js} +2 -2
  35. package/dist/{chunk-Q6ZKCAYH.js → chunk-WCXDVPWC.js} +2 -2
  36. package/dist/{chunk-PHWV3NOP.js → chunk-WUKDB7IX.js} +51 -162
  37. package/dist/{chunk-D45KVQKB.js → chunk-XUOVQRQH.js} +1 -1
  38. package/dist/commands/add-ledger-entry.js +4 -4
  39. package/dist/commands/api-client/create.js +3 -3
  40. package/dist/commands/create-custom-link.js +4 -4
  41. package/dist/commands/create-ledger.js +4 -4
  42. package/dist/commands/delete-custom-txs.js +4 -4
  43. package/dist/commands/delete-ledger.js +4 -4
  44. package/dist/commands/delete-schema.js +4 -4
  45. package/dist/commands/gen-graphql.js +8 -8
  46. package/dist/commands/get-schema.js +5 -5
  47. package/dist/commands/init.js +3 -3
  48. package/dist/commands/login.js +4 -4
  49. package/dist/commands/migrate-ledger-entry.js +4 -4
  50. package/dist/commands/query/ledgerAccounts.js +4 -4
  51. package/dist/commands/query/ledgers.js +4 -4
  52. package/dist/commands/query/schema.js +4 -4
  53. package/dist/commands/query/schemas.js +4 -4
  54. package/dist/commands/reverse-ledger-entry.js +4 -4
  55. package/dist/commands/start.js +3 -3
  56. package/dist/commands/store-schema.js +4 -4
  57. package/dist/commands/token.js +4 -4
  58. package/dist/commands/update-ledger-account.js +4 -4
  59. package/dist/commands/update.js +4 -4
  60. package/dist/commands/verify-schema.js +8 -9
  61. package/dist/commands/version.js +3 -3
  62. package/dist/commands/workspace.js +4 -4
  63. package/dist/commands.js +36 -37
  64. package/dist/graphql.js +3 -3
  65. package/dist/index.js +36 -37
  66. package/dist/lib/authenticatedCommand.js +3 -3
  67. package/dist/lib/baseCommand.js +2 -2
  68. package/dist/utils/formatValidationErrors.js +2 -2
  69. package/dist/utils/schemaValidation.js +5 -5
  70. package/dist/utils.js +3 -5
  71. package/oclif.manifest.json +2 -18
  72. package/package.json +1 -1
  73. package/dist/chunk-NT74GT6W.js +0 -1287
  74. package/dist/utils/schemaBackCompat.js +0 -21
package/README.md CHANGED
@@ -646,14 +646,12 @@ Verify that a schema file follows the Fragment JSON schema format
646
646
 
647
647
  ```
648
648
  USAGE
649
- $ fragment verify-schema [-p <value>] [-v] [-j] [-a <value>]
649
+ $ fragment verify-schema [-p <value>] [-v] [-j]
650
650
 
651
651
  FLAGS
652
- -a, --against=<value> Path to a previous version of the schema to check backwards compatibility against (e.g. the
653
- output of `fragment get-schema`)
654
- -j, --json Output validation results as JSON for programmatic use
655
- -p, --path=<value> [default: fragment/fragment.json] Path to schema file (e.g. my-schema.jsonc)
656
- -v, --verbose Show detailed validation output
652
+ -j, --json Output validation results as JSON for programmatic use
653
+ -p, --path=<value> [default: fragment/fragment.json] Path to schema file (e.g. my-schema.jsonc)
654
+ -v, --verbose Show detailed validation output
657
655
 
658
656
  DESCRIPTION
659
657
  Verify that a schema file follows the Fragment JSON schema format
@@ -666,16 +664,6 @@ EXAMPLES
666
664
  $ fragment verify-schema -p fragment/fragment.json --verbose
667
665
 
668
666
  $ fragment verify-schema --path ./my-schema.jsonc --json
669
-
670
- Check that the schema is backwards-compatible with the deployed schema.
671
-
672
- $ fragment get-schema --key my-schema --output deployed-schema.jsonc && fragment verify-schema --path \
673
- my-schema.jsonc --against deployed-schema.jsonc
674
-
675
- Check that the schema is backwards-compatible with its copy on the main branch.
676
-
677
- $ git show origin/main:my-schema.jsonc > base-schema.jsonc && fragment verify-schema --path my-schema.jsonc \
678
- --against base-schema.jsonc
679
667
  ```
680
668
 
681
669
  ## `fragment version`
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  AuthenticatedCommand
3
- } from "./chunk-SU5G5HM2.js";
3
+ } from "./chunk-4IMXVHLX.js";
4
4
  import {
5
5
  require_lib
6
- } from "./chunk-3IA6BI6A.js";
6
+ } from "./chunk-LINOTI5E.js";
7
7
  import {
8
8
  getParsedSchema
9
- } from "./chunk-QZNZYG2G.js";
9
+ } from "./chunk-PU52GTGB.js";
10
10
  import {
11
11
  __toESM,
12
12
  init_cjs_shims
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  AuthenticatedCommand
3
- } from "./chunk-SU5G5HM2.js";
3
+ } from "./chunk-4IMXVHLX.js";
4
4
  import {
5
5
  require_lib
6
- } from "./chunk-3IA6BI6A.js";
6
+ } from "./chunk-LINOTI5E.js";
7
7
  import {
8
8
  require_source
9
9
  } from "./chunk-QDAKBUNO.js";
@@ -5,10 +5,10 @@ import {
5
5
  FragmentCommand,
6
6
  GraphQLClient,
7
7
  require_lib
8
- } from "./chunk-3IA6BI6A.js";
8
+ } from "./chunk-LINOTI5E.js";
9
9
  import {
10
10
  colorizeJson
11
- } from "./chunk-QZNZYG2G.js";
11
+ } from "./chunk-PU52GTGB.js";
12
12
  import {
13
13
  __toESM,
14
14
  init_cjs_shims
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  inquirer_default
3
- } from "./chunk-6PRTPBP7.js";
3
+ } from "./chunk-F6IDBMXZ.js";
4
4
  import {
5
5
  defaultBrowserAuthDeps,
6
6
  provisionApiClient
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  FragmentCommand,
10
10
  require_lib
11
- } from "./chunk-3IA6BI6A.js";
11
+ } from "./chunk-LINOTI5E.js";
12
12
  import {
13
13
  require_source
14
14
  } from "./chunk-QDAKBUNO.js";
@@ -4,25 +4,25 @@ import {
4
4
  schemaToEntryDefinitions,
5
5
  schemaToPaymentDefinitions,
6
6
  validateOutputName
7
- } from "./chunk-H3ZCVAW3.js";
7
+ } from "./chunk-TXPR56T5.js";
8
8
  import {
9
9
  Schema,
10
10
  parseWithError
11
- } from "./chunk-PHWV3NOP.js";
11
+ } from "./chunk-WUKDB7IX.js";
12
12
  import {
13
13
  formatValidationErrors,
14
14
  logValidationErrors
15
- } from "./chunk-V4IQY3DF.js";
15
+ } from "./chunk-MOBC7AAW.js";
16
16
  import {
17
17
  BadRequestError
18
- } from "./chunk-XJ2TNWI7.js";
18
+ } from "./chunk-DKAEBT2M.js";
19
19
  import {
20
20
  FragmentCommand,
21
21
  require_lib
22
- } from "./chunk-3IA6BI6A.js";
22
+ } from "./chunk-LINOTI5E.js";
23
23
  import {
24
24
  getParsedSchema
25
- } from "./chunk-QZNZYG2G.js";
25
+ } from "./chunk-PU52GTGB.js";
26
26
  import {
27
27
  require_source
28
28
  } from "./chunk-QDAKBUNO.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  FragmentCommand,
3
3
  require_lib
4
- } from "./chunk-3IA6BI6A.js";
4
+ } from "./chunk-LINOTI5E.js";
5
5
  import {
6
6
  require_source
7
7
  } from "./chunk-QDAKBUNO.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  FragmentCommand
3
- } from "./chunk-3IA6BI6A.js";
3
+ } from "./chunk-LINOTI5E.js";
4
4
  import {
5
5
  init_cjs_shims
6
6
  } from "./chunk-7GH3YGSC.js";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  AuthenticatedCommand
3
- } from "./chunk-SU5G5HM2.js";
3
+ } from "./chunk-4IMXVHLX.js";
4
4
  import {
5
5
  require_lib
6
- } from "./chunk-3IA6BI6A.js";
6
+ } from "./chunk-LINOTI5E.js";
7
7
  import {
8
8
  getParsedSchema
9
- } from "./chunk-QZNZYG2G.js";
9
+ } from "./chunk-PU52GTGB.js";
10
10
  import {
11
11
  __toESM,
12
12
  init_cjs_shims
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  AuthenticatedCommand
3
- } from "./chunk-SU5G5HM2.js";
3
+ } from "./chunk-4IMXVHLX.js";
4
4
  import {
5
5
  require_source
6
6
  } from "./chunk-QDAKBUNO.js";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  inquirer_default
3
- } from "./chunk-6PRTPBP7.js";
3
+ } from "./chunk-F6IDBMXZ.js";
4
4
  import {
5
5
  FragmentCommand,
6
6
  require_lib
7
- } from "./chunk-3IA6BI6A.js";
7
+ } from "./chunk-LINOTI5E.js";
8
8
  import {
9
9
  require_source
10
10
  } from "./chunk-QDAKBUNO.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  AuthenticatedCommand
3
- } from "./chunk-SU5G5HM2.js";
3
+ } from "./chunk-4IMXVHLX.js";
4
4
  import {
5
5
  require_lib
6
- } from "./chunk-3IA6BI6A.js";
6
+ } from "./chunk-LINOTI5E.js";
7
7
  import {
8
8
  require_source
9
9
  } from "./chunk-QDAKBUNO.js";
@@ -6759,13 +6759,6 @@ function baseForOwn(object, iteratee) {
6759
6759
  }
6760
6760
  var baseForOwn_default = baseForOwn;
6761
6761
 
6762
- // ../../node_modules/lodash-es/isEqual.js
6763
- init_cjs_shims();
6764
- function isEqual(value, other) {
6765
- return baseIsEqual_default(value, other);
6766
- }
6767
- var isEqual_default = isEqual;
6768
-
6769
6762
  // ../../node_modules/lodash-es/mapValues.js
6770
6763
  init_cjs_shims();
6771
6764
  function mapValues(object, iteratee) {
@@ -7324,7 +7317,6 @@ export {
7324
7317
  currencyCodes,
7325
7318
  CurrencyModeSchema,
7326
7319
  CurrencyMatchInputSchema,
7327
- isEqual_default,
7328
7320
  mapValues_default,
7329
7321
  getStringParameters,
7330
7322
  getStringParametersInternal,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  AuthenticatedCommand
3
- } from "./chunk-SU5G5HM2.js";
3
+ } from "./chunk-4IMXVHLX.js";
4
4
  import {
5
5
  require_lib
6
- } from "./chunk-3IA6BI6A.js";
6
+ } from "./chunk-LINOTI5E.js";
7
7
  import {
8
8
  require_source
9
9
  } from "./chunk-QDAKBUNO.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  AuthenticatedCommand
3
- } from "./chunk-SU5G5HM2.js";
3
+ } from "./chunk-4IMXVHLX.js";
4
4
  import {
5
5
  require_lib
6
- } from "./chunk-3IA6BI6A.js";
6
+ } from "./chunk-LINOTI5E.js";
7
7
  import {
8
8
  __toESM,
9
9
  init_cjs_shims
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  AuthenticatedCommand
3
- } from "./chunk-SU5G5HM2.js";
3
+ } from "./chunk-4IMXVHLX.js";
4
4
  import {
5
5
  require_lib
6
- } from "./chunk-3IA6BI6A.js";
6
+ } from "./chunk-LINOTI5E.js";
7
7
  import {
8
8
  require_source
9
9
  } from "./chunk-QDAKBUNO.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  AuthenticatedCommand
3
- } from "./chunk-SU5G5HM2.js";
3
+ } from "./chunk-4IMXVHLX.js";
4
4
  import {
5
5
  require_lib
6
- } from "./chunk-3IA6BI6A.js";
6
+ } from "./chunk-LINOTI5E.js";
7
7
  import {
8
8
  require_source
9
9
  } from "./chunk-QDAKBUNO.js";
@@ -13,7 +13,7 @@ import {
13
13
  require_syntax,
14
14
  require_type,
15
15
  require_uri
16
- } from "./chunk-3IA6BI6A.js";
16
+ } from "./chunk-LINOTI5E.js";
17
17
  import {
18
18
  require_color_convert,
19
19
  require_source
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  inquirer_default
3
- } from "./chunk-6PRTPBP7.js";
3
+ } from "./chunk-F6IDBMXZ.js";
4
4
  import {
5
5
  AuthenticatedCommand
6
- } from "./chunk-SU5G5HM2.js";
6
+ } from "./chunk-4IMXVHLX.js";
7
7
  import {
8
8
  require_lib
9
- } from "./chunk-3IA6BI6A.js";
9
+ } from "./chunk-LINOTI5E.js";
10
10
  import {
11
11
  require_source
12
12
  } from "./chunk-QDAKBUNO.js";
@@ -1,78 +1,78 @@
1
1
  import {
2
2
  Version
3
- } from "./chunk-DT372IG6.js";
3
+ } from "./chunk-7LEHQFLL.js";
4
4
  import {
5
5
  Workspace
6
- } from "./chunk-3K6ERQYV.js";
6
+ } from "./chunk-MUN6P2HN.js";
7
7
  import {
8
8
  QuerySchemas
9
- } from "./chunk-D45KVQKB.js";
9
+ } from "./chunk-XUOVQRQH.js";
10
10
  import {
11
11
  ReverseLedgerEntry
12
- } from "./chunk-5UOYY7GS.js";
12
+ } from "./chunk-VZA2YKI6.js";
13
13
  import {
14
14
  Start
15
- } from "./chunk-M7BM6YC2.js";
15
+ } from "./chunk-SWVXV42Y.js";
16
16
  import {
17
17
  StoreSchema
18
- } from "./chunk-HK327LQP.js";
18
+ } from "./chunk-B3OMOGVU.js";
19
19
  import {
20
20
  Token
21
- } from "./chunk-JO6OQM5C.js";
21
+ } from "./chunk-BMPSZNHE.js";
22
22
  import {
23
23
  UpdateLedgerAccount
24
- } from "./chunk-Q6ZKCAYH.js";
24
+ } from "./chunk-WCXDVPWC.js";
25
25
  import {
26
26
  Update
27
- } from "./chunk-F4DGB2QI.js";
27
+ } from "./chunk-C67WHN2H.js";
28
28
  import {
29
29
  VerifySchema
30
- } from "./chunk-DYIB3NZM.js";
30
+ } from "./chunk-I7HWZUNL.js";
31
31
  import {
32
32
  GenGraphQL
33
- } from "./chunk-LDS5IWT5.js";
33
+ } from "./chunk-5VGUS75G.js";
34
34
  import {
35
35
  GetSchema
36
- } from "./chunk-3IGRQ6LL.js";
36
+ } from "./chunk-GZF5GHBV.js";
37
37
  import {
38
38
  Init
39
- } from "./chunk-RML6NQHP.js";
39
+ } from "./chunk-76JJLPFT.js";
40
40
  import {
41
41
  Login
42
- } from "./chunk-NJSYUXAC.js";
42
+ } from "./chunk-5JTGKU4S.js";
43
43
  import {
44
44
  MigrateLedgerEntry
45
- } from "./chunk-2LDAYJQR.js";
45
+ } from "./chunk-JMFDKBJW.js";
46
46
  import {
47
47
  QueryLedgerAccounts
48
- } from "./chunk-V3NABYUX.js";
48
+ } from "./chunk-JXIMFTTA.js";
49
49
  import {
50
50
  QueryLedgers
51
- } from "./chunk-Q3JFAZ3A.js";
51
+ } from "./chunk-KP7MQPVO.js";
52
52
  import {
53
53
  GetSchema as GetSchema2
54
- } from "./chunk-WRUBCN4G.js";
54
+ } from "./chunk-DVQMZBTY.js";
55
55
  import {
56
56
  AddLedgerEntry
57
- } from "./chunk-E7ZKZZP4.js";
57
+ } from "./chunk-3QIKHVTA.js";
58
58
  import {
59
59
  ApiClientCreate
60
- } from "./chunk-2QR6NGWG.js";
60
+ } from "./chunk-Q62TGFNL.js";
61
61
  import {
62
62
  CreateCustomLink
63
- } from "./chunk-KVBNKJBH.js";
63
+ } from "./chunk-DURV4GOT.js";
64
64
  import {
65
65
  CreateLedger
66
- } from "./chunk-THGEB6PT.js";
66
+ } from "./chunk-2DFNUYYB.js";
67
67
  import {
68
68
  DeleteCustomTxs
69
- } from "./chunk-QBQANVTD.js";
69
+ } from "./chunk-EIF4FTEI.js";
70
70
  import {
71
71
  DeleteLedger
72
- } from "./chunk-QGFJ5H4G.js";
72
+ } from "./chunk-E4TL7SOK.js";
73
73
  import {
74
74
  DeleteSchema
75
- } from "./chunk-5NKCOZCW.js";
75
+ } from "./chunk-D65TXRLZ.js";
76
76
  import {
77
77
  init_cjs_shims
78
78
  } from "./chunk-7GH3YGSC.js";
@@ -1,29 +1,25 @@
1
- import {
2
- BackCompatCheckError,
3
- verifySchemaAgainstFile
4
- } from "./chunk-NT74GT6W.js";
5
1
  import {
6
2
  extractSchemaMetadata,
7
3
  isJsonParseError,
8
4
  validateSchemaStructure
9
- } from "./chunk-IQIFAKDJ.js";
5
+ } from "./chunk-JV34IPXX.js";
10
6
  import {
11
7
  DEFAULT_SCHEMA_PATH
12
8
  } from "./chunk-A4BSWX5D.js";
13
9
  import {
14
10
  logValidationErrors
15
- } from "./chunk-V4IQY3DF.js";
11
+ } from "./chunk-MOBC7AAW.js";
16
12
  import {
17
13
  FragmentCommand,
18
14
  require_lib
19
- } from "./chunk-3IA6BI6A.js";
15
+ } from "./chunk-LINOTI5E.js";
20
16
  import {
21
17
  colorizeJson,
22
18
  emphasize,
23
19
  getParsedSchema,
24
20
  getParsedSchemaString,
25
21
  parseJSON
26
- } from "./chunk-QZNZYG2G.js";
22
+ } from "./chunk-PU52GTGB.js";
27
23
  import {
28
24
  require_source
29
25
  } from "./chunk-QDAKBUNO.js";
@@ -36,12 +32,6 @@ import {
36
32
  init_cjs_shims();
37
33
  var import_core = __toESM(require_lib(), 1);
38
34
  var import_chalk = __toESM(require_source(), 1);
39
- var getErrorType = (error) => {
40
- if (error instanceof BackCompatCheckError) {
41
- return error.jsonType;
42
- }
43
- return isJsonParseError(error) ? "parse_error" : "validation_error";
44
- };
45
35
  var VerifySchema = class _VerifySchema extends FragmentCommand {
46
36
  static {
47
37
  this.description = "Verify that a schema file follows the Fragment JSON schema format";
@@ -51,15 +41,7 @@ var VerifySchema = class _VerifySchema extends FragmentCommand {
51
41
  "<%= config.bin %> <%= command.id %>",
52
42
  "<%= config.bin %> <%= command.id %> --path ./my-schema.jsonc",
53
43
  "<%= config.bin %> <%= command.id %> -p fragment/fragment.json --verbose",
54
- "<%= config.bin %> <%= command.id %> --path ./my-schema.jsonc --json",
55
- {
56
- description: "Check that the schema is backwards-compatible with the deployed schema.",
57
- command: "fragment get-schema --key my-schema --output deployed-schema.jsonc && <%= config.bin %> <%= command.id %> --path my-schema.jsonc --against deployed-schema.jsonc"
58
- },
59
- {
60
- description: "Check that the schema is backwards-compatible with its copy on the main branch.",
61
- command: "$ git show origin/main:my-schema.jsonc > base-schema.jsonc && <%= config.bin %> <%= command.id %> --path my-schema.jsonc --against base-schema.jsonc"
62
- }
44
+ "<%= config.bin %> <%= command.id %> --path ./my-schema.jsonc --json"
63
45
  ];
64
46
  }
65
47
  static {
@@ -78,16 +60,11 @@ var VerifySchema = class _VerifySchema extends FragmentCommand {
78
60
  char: "j",
79
61
  description: "Output validation results as JSON for programmatic use",
80
62
  default: false
81
- }),
82
- against: import_core.Flags.string({
83
- char: "a",
84
- description: "Path to a previous version of the schema to check backwards compatibility against (e.g. the output of `fragment get-schema`)"
85
63
  })
86
64
  };
87
65
  }
88
66
  async run() {
89
67
  const { flags } = await this.parse(_VerifySchema);
90
- const against = flags.against ? { path: flags.against } : null;
91
68
  try {
92
69
  let schema;
93
70
  if (flags.json) {
@@ -114,26 +91,18 @@ var VerifySchema = class _VerifySchema extends FragmentCommand {
114
91
  });
115
92
  }
116
93
  this.validateSchema(schema);
117
- if (against) {
118
- verifySchemaAgainstFile({
119
- command: this,
120
- schema,
121
- againstPath: against.path,
122
- requireEnvVariables: !flags.json
123
- });
124
- }
125
94
  if (flags.json) {
126
- this.outputJsonResult(schema, flags.path, true, void 0, against);
95
+ this.outputJsonResult(schema, flags.path, true);
127
96
  } else {
128
97
  if (flags.verbose) {
129
98
  this.displayParsedSchema(schema);
130
99
  this.displayValidationDetails(schema);
131
100
  }
132
- this.displaySuccessMessage(schema, flags.verbose, against);
101
+ this.displaySuccessMessage(schema, flags.verbose);
133
102
  }
134
103
  } catch (error) {
135
104
  if (flags.json) {
136
- this.outputJsonResult(null, flags.path, false, error, against);
105
+ this.outputJsonResult(null, flags.path, false, error);
137
106
  } else {
138
107
  this.handleValidationError(error, flags.path);
139
108
  }
@@ -157,17 +126,12 @@ var VerifySchema = class _VerifySchema extends FragmentCommand {
157
126
  ` Ledger entry types: ${emphasize(metadata.entryTypeCount.toString())}`
158
127
  );
159
128
  }
160
- displaySuccessMessage(schema, verbose, against) {
129
+ displaySuccessMessage(schema, verbose) {
161
130
  this.log(`
162
131
  ${import_chalk.default.green("\u2705 Schema validation successful!")}`);
163
132
  this.log(
164
133
  `Schema "${schema.key}" is valid and follows the Fragment JSON schema format.`
165
134
  );
166
- if (against) {
167
- this.log(
168
- `Schema is backwards-compatible with ${emphasize(against.path)}.`
169
- );
170
- }
171
135
  if (!verbose) {
172
136
  this.log(
173
137
  `
@@ -177,7 +141,7 @@ Run with ${emphasize(
177
141
  );
178
142
  }
179
143
  }
180
- outputJsonResult(schema, schemaPath, success, error, against) {
144
+ outputJsonResult(schema, schemaPath, success, error) {
181
145
  const result = {
182
146
  success,
183
147
  schemaPath,
@@ -192,13 +156,10 @@ Run with ${emphasize(
192
156
  entryTypeCount: metadata.entryTypeCount
193
157
  };
194
158
  }
195
- if (against) {
196
- result.against = against;
197
- }
198
159
  if (!success && error) {
199
160
  result.error = {
200
161
  message: error.message || "Unknown validation error",
201
- type: getErrorType(error)
162
+ type: isJsonParseError(error) ? "parse_error" : "validation_error"
202
163
  };
203
164
  if (error.validationErrors) {
204
165
  result.error.validationErrors = error.validationErrors;
@@ -210,15 +171,7 @@ Run with ${emphasize(
210
171
  }
211
172
  }
212
173
  handleValidationError(error, schemaPath) {
213
- if (error instanceof BackCompatCheckError) {
214
- this.logToStderr(
215
- `
216
- ${import_chalk.default.red("\u274C Schema backwards-compatibility check failed!")}`
217
- );
218
- this.logToStderr(error.message);
219
- this.logToStderr(`
220
- ${import_chalk.default.gray("Schema file:")} ${schemaPath}`);
221
- } else if (!isJsonParseError(error)) {
174
+ if (!isJsonParseError(error)) {
222
175
  this.logToStderr(`
223
176
  ${import_chalk.default.red("\u274C Schema validation failed!")}`);
224
177
  if (error.validationErrors) {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  AuthenticatedCommand
3
- } from "./chunk-SU5G5HM2.js";
3
+ } from "./chunk-4IMXVHLX.js";
4
4
  import {
5
5
  require_lib
6
- } from "./chunk-3IA6BI6A.js";
6
+ } from "./chunk-LINOTI5E.js";
7
7
  import {
8
8
  require_source
9
9
  } from "./chunk-QDAKBUNO.js";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  Schema,
3
3
  parseWithError
4
- } from "./chunk-PHWV3NOP.js";
4
+ } from "./chunk-WUKDB7IX.js";
5
5
  import {
6
6
  formatValidationErrors
7
- } from "./chunk-V4IQY3DF.js";
7
+ } from "./chunk-MOBC7AAW.js";
8
8
  import {
9
9
  BadRequestError
10
- } from "./chunk-XJ2TNWI7.js";
10
+ } from "./chunk-DKAEBT2M.js";
11
11
  import {
12
12
  init_cjs_shims
13
13
  } from "./chunk-7GH3YGSC.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  AuthenticatedCommand
3
- } from "./chunk-SU5G5HM2.js";
3
+ } from "./chunk-4IMXVHLX.js";
4
4
  import {
5
5
  require_lib
6
- } from "./chunk-3IA6BI6A.js";
6
+ } from "./chunk-LINOTI5E.js";
7
7
  import {
8
8
  __toESM,
9
9
  init_cjs_shims
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  AuthenticatedCommand
3
- } from "./chunk-SU5G5HM2.js";
3
+ } from "./chunk-4IMXVHLX.js";
4
4
  import {
5
5
  init_cjs_shims
6
6
  } from "./chunk-7GH3YGSC.js";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-34NLRFFT.js";
5
5
  import {
6
6
  parseJSON
7
- } from "./chunk-QZNZYG2G.js";
7
+ } from "./chunk-PU52GTGB.js";
8
8
  import {
9
9
  require_graphql
10
10
  } from "./chunk-QF5EN33L.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  BadRequestError
3
- } from "./chunk-XJ2TNWI7.js";
3
+ } from "./chunk-DKAEBT2M.js";
4
4
  import {
5
5
  require_source
6
6
  } from "./chunk-QDAKBUNO.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  AuthenticatedCommand
3
- } from "./chunk-SU5G5HM2.js";
3
+ } from "./chunk-4IMXVHLX.js";
4
4
  import {
5
5
  init_cjs_shims
6
6
  } from "./chunk-7GH3YGSC.js";