@fragment-dev/cli 2026.8.7-9 → 2026.8.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.
@@ -2,7 +2,7 @@ import {
2
2
  extractSchemaMetadata,
3
3
  isJsonParseError,
4
4
  validateSchemaStructure
5
- } from "./chunk-LJLE43VC.js";
5
+ } from "./chunk-WYDUSTEX.js";
6
6
  import {
7
7
  DEFAULT_SCHEMA_PATH
8
8
  } from "./chunk-A4BSWX5D.js";
@@ -76,7 +76,9 @@ var VerifySchema = class _VerifySchema extends FragmentCommand {
76
76
  });
77
77
  const [parsedSchema, parseError] = parseJSON(schemaString);
78
78
  if (parseError) {
79
- const error = new Error(`Failed to parse ${flags.path}: ${parseError.message}`);
79
+ const error = new Error(
80
+ `Failed to parse ${flags.path}: ${parseError.message}`
81
+ );
80
82
  error.isParseError = true;
81
83
  throw error;
82
84
  }
@@ -120,15 +122,23 @@ var VerifySchema = class _VerifySchema extends FragmentCommand {
120
122
  this.log(` Schema key: ${emphasize(metadata.key)}`);
121
123
  this.log(` Schema name: ${emphasize(metadata.name)}`);
122
124
  this.log(` Accounts: ${emphasize(metadata.accountCount.toString())}`);
123
- this.log(` Ledger entry types: ${emphasize(metadata.entryTypeCount.toString())}`);
125
+ this.log(
126
+ ` Ledger entry types: ${emphasize(metadata.entryTypeCount.toString())}`
127
+ );
124
128
  }
125
129
  displaySuccessMessage(schema, verbose) {
126
130
  this.log(`
127
131
  ${import_chalk.default.green("\u2705 Schema validation successful!")}`);
128
- this.log(`Schema "${schema.key}" is valid and follows the Fragment JSON schema format.`);
132
+ this.log(
133
+ `Schema "${schema.key}" is valid and follows the Fragment JSON schema format.`
134
+ );
129
135
  if (!verbose) {
130
- this.log(`
131
- Run with ${emphasize("--verbose")} flag to see detailed validation output.`);
136
+ this.log(
137
+ `
138
+ Run with ${emphasize(
139
+ "--verbose"
140
+ )} flag to see detailed validation output.`
141
+ );
132
142
  }
133
143
  }
134
144
  outputJsonResult(schema, schemaPath, success, error) {
@@ -167,7 +177,9 @@ ${import_chalk.default.red("\u274C Schema validation failed!")}`);
167
177
  if (error.validationErrors) {
168
178
  logValidationErrors(this, error.validationErrors);
169
179
  } else {
170
- this.logToStderr(import_chalk.default.red("Error:") + " " + (error.message || "Unknown validation error"));
180
+ this.logToStderr(
181
+ import_chalk.default.red("Error:") + " " + (error.message || "Unknown validation error")
182
+ );
171
183
  }
172
184
  this.logToStderr(`
173
185
  ${import_chalk.default.gray("Schema file:")} ${schemaPath}`);
@@ -27,7 +27,7 @@ import {
27
27
  } from "./chunk-IXX2EVIM.js";
28
28
  import {
29
29
  VerifySchema
30
- } from "./chunk-DDMROIMS.js";
30
+ } from "./chunk-CNYYRZ6Y.js";
31
31
  import {
32
32
  GenGraphQL
33
33
  } from "./chunk-HMZ4534F.js";
@@ -41,7 +41,9 @@ var countAccountsRecursively = (accounts) => {
41
41
  return count;
42
42
  };
43
43
  var extractSchemaMetadata = (schema) => {
44
- const accountCount = countAccountsRecursively(schema.chartOfAccounts?.accounts || []);
44
+ const accountCount = countAccountsRecursively(
45
+ schema.chartOfAccounts?.accounts || []
46
+ );
45
47
  const entryTypeCount = (schema.ledgerEntries?.types || []).length;
46
48
  return {
47
49
  key: schema.key,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  VerifySchema
3
- } from "../chunk-DDMROIMS.js";
4
- import "../chunk-LJLE43VC.js";
3
+ } from "../chunk-CNYYRZ6Y.js";
4
+ import "../chunk-WYDUSTEX.js";
5
5
  import "../chunk-A4BSWX5D.js";
6
6
  import "../chunk-AL74IIQ5.js";
7
7
  import "../chunk-N72HQQNH.js";
package/dist/commands.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  COMMANDS
3
- } from "./chunk-WXFIJ6IY.js";
3
+ } from "./chunk-JWGNUUQM.js";
4
4
  import "./chunk-JFF37Z5K.js";
5
5
  import "./chunk-ILQG7D3T.js";
6
6
  import "./chunk-4QAIVY4H.js";
@@ -10,8 +10,8 @@ import "./chunk-VPMGSMMO.js";
10
10
  import "./chunk-REHGTHTG.js";
11
11
  import "./chunk-7LZ2UEOL.js";
12
12
  import "./chunk-IXX2EVIM.js";
13
- import "./chunk-DDMROIMS.js";
14
- import "./chunk-LJLE43VC.js";
13
+ import "./chunk-CNYYRZ6Y.js";
14
+ import "./chunk-WYDUSTEX.js";
15
15
  import "./chunk-A4BSWX5D.js";
16
16
  import "./chunk-HMZ4534F.js";
17
17
  import "./chunk-JVSUOAA6.js";
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  COMMANDS
3
- } from "./chunk-WXFIJ6IY.js";
3
+ } from "./chunk-JWGNUUQM.js";
4
4
  import "./chunk-JFF37Z5K.js";
5
5
  import "./chunk-ILQG7D3T.js";
6
6
  import "./chunk-4QAIVY4H.js";
@@ -10,8 +10,8 @@ import "./chunk-VPMGSMMO.js";
10
10
  import "./chunk-REHGTHTG.js";
11
11
  import "./chunk-7LZ2UEOL.js";
12
12
  import "./chunk-IXX2EVIM.js";
13
- import "./chunk-DDMROIMS.js";
14
- import "./chunk-LJLE43VC.js";
13
+ import "./chunk-CNYYRZ6Y.js";
14
+ import "./chunk-WYDUSTEX.js";
15
15
  import "./chunk-A4BSWX5D.js";
16
16
  import "./chunk-HMZ4534F.js";
17
17
  import "./chunk-JVSUOAA6.js";
@@ -190,4 +190,4 @@
190
190
  }
191
191
  ]
192
192
  }
193
- }
193
+ }
@@ -3,7 +3,7 @@ import {
3
3
  extractSchemaMetadata,
4
4
  isJsonParseError,
5
5
  validateSchemaStructure
6
- } from "../chunk-LJLE43VC.js";
6
+ } from "../chunk-WYDUSTEX.js";
7
7
  import "../chunk-AL74IIQ5.js";
8
8
  import "../chunk-N72HQQNH.js";
9
9
  import "../chunk-V3Y6BHMA.js";
@@ -1096,5 +1096,5 @@
1096
1096
  "help": "Generate GraphQL queries from your Schema for your SDK."
1097
1097
  }
1098
1098
  },
1099
- "version": "2026.8.7-9"
1099
+ "version": "2026.8.10-1"
1100
1100
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fragment-dev/cli",
3
- "version": "2026.8.7-9",
3
+ "version": "2026.8.10-1",
4
4
  "description": "FRAGMENT CLI",
5
5
  "author": "hello@fragment.dev",
6
6
  "bin": {