@fragment-dev/cli 2026.11.13-1 → 2026.11.13-3
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 +42 -0
- package/dist/{chunk-6H5VEWMH.js → chunk-2EMLJCCB.js} +1 -1
- package/dist/{chunk-F5CCJ6FF.js → chunk-2EZPMAOG.js} +1 -1
- package/dist/{chunk-V3LLFTBC.js → chunk-2YTWJRNP.js} +1 -1
- package/dist/{chunk-JTGVX5GX.js → chunk-3XCYMGE3.js} +48 -7
- package/dist/{chunk-D46OZVDM.js → chunk-4EBR67QU.js} +2 -2
- package/dist/{chunk-CTS34CX4.js → chunk-4GSTQ6O4.js} +2 -2
- package/dist/{chunk-6SLKFJ3R.js → chunk-5YXK5XSL.js} +2 -2
- package/dist/{chunk-6MYCJAJL.js → chunk-67N5LE4N.js} +2 -2
- package/dist/{chunk-3ZBETKSW.js → chunk-6T66IJCY.js} +5 -0
- package/dist/{chunk-ECRNMUZY.js → chunk-AEIRSM6M.js} +1 -1
- package/dist/{chunk-IGBICJSY.js → chunk-B7254H5E.js} +1 -1
- package/dist/{chunk-OFNXU6XT.js → chunk-BV3DJZN2.js} +1 -1
- package/dist/{chunk-CSUC4K6Z.js → chunk-CSP4CXUF.js} +3 -3
- package/dist/{chunk-R266LOJY.js → chunk-FI2U3AB2.js} +11 -3
- package/dist/{chunk-S6EUZBEH.js → chunk-FMDJEY4R.js} +1 -1
- package/dist/{chunk-LMAJOZGP.js → chunk-GM4XMO7R.js} +3 -3
- package/dist/{chunk-WABMYMTO.js → chunk-GR3GGYJY.js} +2 -2
- package/dist/{chunk-RJBVOPFD.js → chunk-H34FQN7O.js} +27 -27
- package/dist/{chunk-VETXOSAQ.js → chunk-HGJQFG33.js} +2 -2
- package/dist/{chunk-GJZISVDV.js → chunk-IWY22QAC.js} +2 -2
- package/dist/{chunk-ZYFQDN2K.js → chunk-MB3FR4WL.js} +28 -4
- package/dist/{chunk-PBOTSYWN.js → chunk-MHNH7UHD.js} +1 -1
- package/dist/chunk-NEW2NRYM.js +46 -0
- package/dist/{chunk-S4VUE6OA.js → chunk-NUXJ4UQR.js} +63 -5
- package/dist/{chunk-Q7Z3H3GL.js → chunk-P63ZOWQQ.js} +7 -4
- package/dist/{chunk-AY5LBONU.js → chunk-PYG6AFYU.js} +2 -2
- package/dist/{chunk-4LUAFIF5.js → chunk-RBNP4MID.js} +9 -5
- package/dist/{chunk-OPMMPSLX.js → chunk-RQFQK7WV.js} +2 -2
- package/dist/{chunk-5WAZAXOW.js → chunk-SACWMZFU.js} +2 -2
- package/dist/{chunk-TGEDLZAO.js → chunk-SBV53D6N.js} +3 -3
- package/dist/{chunk-HII7DWWZ.js → chunk-SL4IWVLO.js} +2 -2
- package/dist/{chunk-MZLYFF2A.js → chunk-TNZS3WJW.js} +2 -2
- package/dist/{chunk-EO6QNP4N.js → chunk-VEM4AZAI.js} +3 -3
- package/dist/{chunk-3UJFEFTD.js → chunk-VN2DVYGG.js} +2 -2
- package/dist/{chunk-H2RK3NKQ.js → chunk-VXYOFJKR.js} +2 -2
- package/dist/{chunk-DYLKAHKE.js → chunk-WAU6SFQ5.js} +7 -1
- package/dist/{chunk-35PT2VZ6.js → chunk-WQQ3DSJH.js} +2 -2
- package/dist/{chunk-77TG73N3.js → chunk-XJS4FFUC.js} +2 -2
- package/dist/{chunk-PWOJYW62.js → chunk-XTEERZ7T.js} +2 -2
- package/dist/{chunk-G3IDF3GN.js → chunk-YWITUQIX.js} +1 -1
- package/dist/{chunk-SLD5GAXB.js → chunk-Z5SFM3A5.js} +1 -1
- package/dist/{chunk-CI336LA7.js → chunk-ZPU5TX3B.js} +1 -1
- package/dist/{chunk-4FLUWOFO.js → chunk-ZQ2XTJ24.js} +2 -2
- package/dist/commands/add-ledger-entry.js +6 -5
- package/dist/commands/api-client/create.js +4 -3
- package/dist/commands/create-custom-link.js +6 -5
- package/dist/commands/create-ledger.js +6 -5
- package/dist/commands/delete-custom-txs.js +6 -5
- package/dist/commands/delete-ledger.js +6 -5
- package/dist/commands/delete-schema.js +6 -5
- package/dist/commands/gen-graphql.js +7 -6
- package/dist/commands/get-schema.js +7 -6
- package/dist/commands/init.js +4 -3
- package/dist/commands/login.js +5 -4
- package/dist/commands/migrate-ledger-entry.js +6 -5
- package/dist/commands/print-schema.js +8 -7
- package/dist/commands/query/ledgerAccounts.js +6 -5
- package/dist/commands/query/ledgers.js +6 -5
- package/dist/commands/query/schema.js +6 -5
- package/dist/commands/query/schemas.js +6 -5
- package/dist/commands/reverse-ledger-entry.js +6 -5
- package/dist/commands/simulate-scenario.js +8 -7
- package/dist/commands/start.js +4 -3
- package/dist/commands/store-schema.js +6 -5
- package/dist/commands/token.js +6 -5
- package/dist/commands/update-ledger-account.js +6 -5
- package/dist/commands/update.js +5 -4
- package/dist/commands/verify-schema.js +8 -7
- package/dist/commands/version.js +4 -3
- package/dist/commands/workspace.js +6 -5
- package/dist/commands.js +43 -42
- package/dist/graphql.js +2 -2
- package/dist/index.js +43 -42
- package/dist/lib/authenticatedCommand.js +5 -4
- package/dist/lib/baseCommand.js +3 -2
- package/dist/lib/curl.js +13 -0
- package/dist/lib/sdk.js +1 -1
- package/dist/lib/version.js +2 -1
- package/dist/utils/formatChartOfAccounts.js +3 -3
- package/dist/utils/formatEntries.js +3 -3
- package/dist/utils/formatScenarioAccountBalances.js +3 -3
- package/dist/utils/formatScenarioBalances.js +4 -4
- package/dist/utils/schemaBackCompat.js +4 -4
- package/dist/utils/schemaValidation.js +3 -3
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
|
@@ -2,13 +2,14 @@ import {
|
|
|
2
2
|
AccountConsistencyConfigSchema,
|
|
3
3
|
BaseChartOfAccounts,
|
|
4
4
|
ConsistencyConfigSchema,
|
|
5
|
+
DISPUTE_PAYMENT_ACCOUNTING_EVENT_KEYS,
|
|
5
6
|
PaymentAccountingEventKey,
|
|
6
|
-
PaymentAccountingEventKeySchema,
|
|
7
7
|
PaymentTypeDirection,
|
|
8
8
|
PaymentTypeDirectionSchema,
|
|
9
9
|
PostLinesAsSchema,
|
|
10
10
|
SYSTEM_LINE_AMOUNT,
|
|
11
11
|
SYSTEM_PARAMETER_NAMES,
|
|
12
|
+
ScenePaymentAccountingEventKeySchema,
|
|
12
13
|
SchemaEntryGroup,
|
|
13
14
|
SchemaLedgerEntityStatusSchema,
|
|
14
15
|
SchemaLinkType,
|
|
@@ -18,7 +19,7 @@ import {
|
|
|
18
19
|
SystemLineKindSchema,
|
|
19
20
|
fillParams,
|
|
20
21
|
getSchemaObjectParameters
|
|
21
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-3XCYMGE3.js";
|
|
22
23
|
import {
|
|
23
24
|
BadRequestError,
|
|
24
25
|
InternalError,
|
|
@@ -10030,6 +10031,10 @@ var makePaymentEntryTypePrefix = (paymentType) => (
|
|
|
10030
10031
|
// concatenation is a SafeString without a runtime re-parse.
|
|
10031
10032
|
`${PAYMENT_ENTRY_TYPE_PREFIX}_${paymentType}_`
|
|
10032
10033
|
);
|
|
10034
|
+
var makePaymentEntryType = ({
|
|
10035
|
+
paymentType,
|
|
10036
|
+
event
|
|
10037
|
+
}) => `${makePaymentEntryTypePrefix(paymentType)}${event}`;
|
|
10033
10038
|
|
|
10034
10039
|
// ../../libs/schema-validation/utils/transformers/payments.ts
|
|
10035
10040
|
var amountMatchesSystemLine = (amount, system) => amount === SYSTEM_LINE_AMOUNT[system];
|
|
@@ -10068,6 +10073,17 @@ var systemLinesByPaymentAccountingEvent = {
|
|
|
10068
10073
|
],
|
|
10069
10074
|
[PaymentAccountingEventKey.refund_failed]: [
|
|
10070
10075
|
SystemLineKind.payment_refund_reversal_line
|
|
10076
|
+
],
|
|
10077
|
+
[PaymentAccountingEventKey.chargeback_settled]: [
|
|
10078
|
+
SystemLineKind.payment_chargeback_line,
|
|
10079
|
+
SystemLineKind.payment_chargeback_fee_line
|
|
10080
|
+
],
|
|
10081
|
+
[PaymentAccountingEventKey.chargeback_countered]: [
|
|
10082
|
+
SystemLineKind.payment_chargeback_countered_fee_line
|
|
10083
|
+
],
|
|
10084
|
+
[PaymentAccountingEventKey.chargeback_reversed]: [
|
|
10085
|
+
SystemLineKind.payment_chargeback_reversal_line,
|
|
10086
|
+
SystemLineKind.payment_chargeback_countered_fee_reversal_line
|
|
10071
10087
|
]
|
|
10072
10088
|
};
|
|
10073
10089
|
var hasSystemLines = (event) => systemLinesByPaymentAccountingEvent[event].length > 0;
|
|
@@ -10229,6 +10245,21 @@ var validatePaymentEntry = ({
|
|
|
10229
10245
|
errors.push(...validateSystemParameterUsage({ entry, lines, entryIdentity }));
|
|
10230
10246
|
return errors;
|
|
10231
10247
|
};
|
|
10248
|
+
var validateDisputeEntries = (paymentType) => {
|
|
10249
|
+
const definedEvents = DISPUTE_PAYMENT_ACCOUNTING_EVENT_KEYS.filter(
|
|
10250
|
+
(event) => paymentType.accounting[event] !== void 0
|
|
10251
|
+
);
|
|
10252
|
+
if (definedEvents.length === 0)
|
|
10253
|
+
return [];
|
|
10254
|
+
return DISPUTE_PAYMENT_ACCOUNTING_EVENT_KEYS.filter(
|
|
10255
|
+
(event) => paymentType.accounting[event] === void 0
|
|
10256
|
+
).map((event) => ({
|
|
10257
|
+
path: ["accounting", event],
|
|
10258
|
+
message: `Payment Type (${paymentType.type}) must define a '${event}' entry, because it defines '${definedEvents.join(
|
|
10259
|
+
"', '"
|
|
10260
|
+
)}'. Define every dispute entry or none.`
|
|
10261
|
+
}));
|
|
10262
|
+
};
|
|
10232
10263
|
var validatePaymentType = ({
|
|
10233
10264
|
paymentType,
|
|
10234
10265
|
accountPathToAccount,
|
|
@@ -10285,6 +10316,7 @@ var validatePaymentType = ({
|
|
|
10285
10316
|
message: `Payment Type (${paymentType.type}) must define a '${PaymentAccountingEventKey.settled}' entry.`
|
|
10286
10317
|
});
|
|
10287
10318
|
}
|
|
10319
|
+
errors.push(...validateDisputeEntries(paymentType));
|
|
10288
10320
|
errors.push(
|
|
10289
10321
|
...Object.values(PaymentAccountingEventKey).flatMap((event) => {
|
|
10290
10322
|
const entry = paymentType.accounting[event];
|
|
@@ -10319,6 +10351,28 @@ var validateUniquePaymentTypes = ({
|
|
|
10319
10351
|
path: [...pathPrefix, idx, "type"]
|
|
10320
10352
|
}))
|
|
10321
10353
|
);
|
|
10354
|
+
var validateUniquePaymentEntryTypes = (types) => Array.from(
|
|
10355
|
+
groupByMap(
|
|
10356
|
+
types.flatMap(
|
|
10357
|
+
({ type }, idx) => Object.values(PaymentAccountingEventKey).map((event) => ({
|
|
10358
|
+
type,
|
|
10359
|
+
idx,
|
|
10360
|
+
event
|
|
10361
|
+
}))
|
|
10362
|
+
),
|
|
10363
|
+
({ type, event }) => (
|
|
10364
|
+
// Only equality matters here; an unsafe type string is reported on its own.
|
|
10365
|
+
makePaymentEntryType({ paymentType: type, event })
|
|
10366
|
+
)
|
|
10367
|
+
).values()
|
|
10368
|
+
).flatMap(
|
|
10369
|
+
(group) => group.flatMap(
|
|
10370
|
+
(member) => group.filter((other) => other.type !== member.type).map((other) => ({
|
|
10371
|
+
message: `Payment Type '${member.type}' conflicts with Payment Type '${other.type}': the '${member.event}' entry of '${member.type}' and the '${other.event}' entry of '${other.type}' post the same Ledger Entry type. Rename one.`,
|
|
10372
|
+
path: ["types", member.idx, "type"]
|
|
10373
|
+
}))
|
|
10374
|
+
)
|
|
10375
|
+
);
|
|
10322
10376
|
var validateReservedPaymentEntryTypes = ({
|
|
10323
10377
|
ledgerEntryTypes,
|
|
10324
10378
|
paymentTypes
|
|
@@ -10356,7 +10410,8 @@ var transformAndValidatePayments = ({
|
|
|
10356
10410
|
...validateUniquePaymentTypes({
|
|
10357
10411
|
types: payments.types,
|
|
10358
10412
|
pathPrefix: ["types"]
|
|
10359
|
-
})
|
|
10413
|
+
}),
|
|
10414
|
+
...validateUniquePaymentEntryTypes(payments.types)
|
|
10360
10415
|
);
|
|
10361
10416
|
errors.push(
|
|
10362
10417
|
...payments.types.flatMap(
|
|
@@ -10688,7 +10743,10 @@ var SchemaPaymentTypeInput = z.object({
|
|
|
10688
10743
|
initiated: SchemaPaymentEntryInput.optional(),
|
|
10689
10744
|
settled: SchemaPaymentEntryInput,
|
|
10690
10745
|
refund_initiated: SchemaPaymentEntryInput.optional(),
|
|
10691
|
-
refund_failed: SchemaPaymentEntryInput.optional()
|
|
10746
|
+
refund_failed: SchemaPaymentEntryInput.optional(),
|
|
10747
|
+
chargeback_settled: SchemaPaymentEntryInput.optional(),
|
|
10748
|
+
chargeback_countered: SchemaPaymentEntryInput.optional(),
|
|
10749
|
+
chargeback_reversed: SchemaPaymentEntryInput.optional()
|
|
10692
10750
|
})
|
|
10693
10751
|
});
|
|
10694
10752
|
var enrichPaymentEntry = ({
|
|
@@ -10743,7 +10801,7 @@ var ScenePayment = z.object({
|
|
|
10743
10801
|
});
|
|
10744
10802
|
var ScenePaymentEvent = z.object({
|
|
10745
10803
|
ik: SafeStringSchema,
|
|
10746
|
-
event:
|
|
10804
|
+
event: ScenePaymentAccountingEventKeySchema
|
|
10747
10805
|
});
|
|
10748
10806
|
var SceneEvent = z.object({
|
|
10749
10807
|
eventType: z.enum(["entry", "payment"]),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
validateSchemaStructure
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BV3DJZN2.js";
|
|
4
4
|
import {
|
|
5
5
|
ChartOfAccounts,
|
|
6
6
|
MIN_SCHEMA_LEDGER_ENTRY_DISABLED_DURATION_SECONDS,
|
|
@@ -13,12 +13,12 @@ import {
|
|
|
13
13
|
parseWithError,
|
|
14
14
|
stringify,
|
|
15
15
|
z
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-NUXJ4UQR.js";
|
|
17
17
|
import {
|
|
18
18
|
PaymentAccountingEventKey,
|
|
19
19
|
VALID_LEDGER_ACCOUNT_STATUS_TRANSITIONS,
|
|
20
20
|
getSchemaObjectParameters
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-3XCYMGE3.js";
|
|
22
22
|
import {
|
|
23
23
|
BadRequestError,
|
|
24
24
|
InternalError,
|
|
@@ -876,7 +876,10 @@ var accountingEventChangePolicies = {
|
|
|
876
876
|
[PaymentAccountingEventKey.initiated]: "immutable" /* immutable */,
|
|
877
877
|
[PaymentAccountingEventKey.settled]: "immutable" /* immutable */,
|
|
878
878
|
[PaymentAccountingEventKey.refund_initiated]: "mutable" /* mutable */,
|
|
879
|
-
[PaymentAccountingEventKey.refund_failed]: "mutable" /* mutable
|
|
879
|
+
[PaymentAccountingEventKey.refund_failed]: "mutable" /* mutable */,
|
|
880
|
+
[PaymentAccountingEventKey.chargeback_settled]: "mutable" /* mutable */,
|
|
881
|
+
[PaymentAccountingEventKey.chargeback_countered]: "mutable" /* mutable */,
|
|
882
|
+
[PaymentAccountingEventKey.chargeback_reversed]: "mutable" /* mutable */
|
|
880
883
|
};
|
|
881
884
|
var canAddAccountingEntryOnceDeployed = (event) => accountingEventChangePolicies[event] === "mutable" /* mutable */;
|
|
882
885
|
var isAccountingEntryCompatible = (event, oldEntry, newEntry) => isEqual_default(oldEntry, newEntry) || oldEntry === void 0 && canAddAccountingEntryOnceDeployed(event);
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
generateSimulatingEntry,
|
|
8
8
|
lil_id_default,
|
|
9
9
|
makeLineKey
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2EZPMAOG.js";
|
|
11
11
|
import {
|
|
12
12
|
formatBalance,
|
|
13
13
|
getBalancePrecision
|
|
@@ -33,14 +33,15 @@ import {
|
|
|
33
33
|
validateLedgerConsistencySettings,
|
|
34
34
|
validatePaymentEntry,
|
|
35
35
|
z as z2
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-NUXJ4UQR.js";
|
|
37
37
|
import {
|
|
38
38
|
BaseSchema,
|
|
39
39
|
PaymentAccountingEventKey,
|
|
40
|
+
SCENE_PAYMENT_ACCOUNTING_EVENT_KEYS,
|
|
40
41
|
SystemLineParameterName,
|
|
41
42
|
fillParams,
|
|
42
43
|
getSchemaObjectParameters
|
|
43
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-3XCYMGE3.js";
|
|
44
45
|
import {
|
|
45
46
|
InternalError,
|
|
46
47
|
assert_default
|
|
@@ -590,7 +591,7 @@ var getPaymentVersionContext = (paymentTypes, payment) => {
|
|
|
590
591
|
return {
|
|
591
592
|
paymentType: paymentType.type,
|
|
592
593
|
amountExpression: version.payment.amount,
|
|
593
|
-
lifecycleEvents:
|
|
594
|
+
lifecycleEvents: SCENE_PAYMENT_ACCOUNTING_EVENT_KEYS.filter(
|
|
594
595
|
(event) => getPaymentEntryFromVersion(version, event) !== null
|
|
595
596
|
)
|
|
596
597
|
};
|
|
@@ -4395,7 +4396,10 @@ var toLivePaymentAccounting = (accounting, accountIdByStructuralPath) => {
|
|
|
4395
4396
|
settled: toLivePaymentEntry(accounting.settled, accountIdByStructuralPath),
|
|
4396
4397
|
initiated: toOptionalEntry(accounting.initiated),
|
|
4397
4398
|
refund_initiated: toOptionalEntry(accounting.refund_initiated),
|
|
4398
|
-
refund_failed: toOptionalEntry(accounting.refund_failed)
|
|
4399
|
+
refund_failed: toOptionalEntry(accounting.refund_failed),
|
|
4400
|
+
chargeback_settled: toOptionalEntry(accounting.chargeback_settled),
|
|
4401
|
+
chargeback_countered: toOptionalEntry(accounting.chargeback_countered),
|
|
4402
|
+
chargeback_reversed: toOptionalEntry(accounting.chargeback_reversed)
|
|
4399
4403
|
});
|
|
4400
4404
|
};
|
|
4401
4405
|
var toLivePaymentTypeVersion = (paymentType, versionId, accountIdByStructuralPath) => liveObjectOf({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getSdk
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6T66IJCY.js";
|
|
4
4
|
import {
|
|
5
5
|
FragmentCommand,
|
|
6
6
|
GraphQLClient,
|
|
7
7
|
require_lib
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-MB3FR4WL.js";
|
|
9
9
|
import {
|
|
10
10
|
colorizeJson
|
|
11
11
|
} from "./chunk-QZNZYG2G.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BackCompatCheckError,
|
|
3
3
|
verifySchemaAgainstFile
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-P63ZOWQQ.js";
|
|
5
5
|
import {
|
|
6
6
|
extractSchemaMetadata,
|
|
7
7
|
isJsonParseError,
|
|
8
8
|
validateSchemaStructure
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-BV3DJZN2.js";
|
|
10
10
|
import {
|
|
11
11
|
logValidationErrors
|
|
12
12
|
} from "./chunk-XOYUWNKQ.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
FragmentCommand,
|
|
18
18
|
require_lib
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-MB3FR4WL.js";
|
|
20
20
|
import {
|
|
21
21
|
colorizeJson,
|
|
22
22
|
emphasize,
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
} from "./chunk-4E5LH6UM.js";
|
|
8
8
|
import {
|
|
9
9
|
ChartOfAccounts
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-NUXJ4UQR.js";
|
|
11
11
|
import {
|
|
12
12
|
BaseSchema
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-3XCYMGE3.js";
|
|
14
14
|
import {
|
|
15
15
|
getStructuralPath
|
|
16
16
|
} from "./chunk-2QGAXOCF.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
inquirer_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2EMLJCCB.js";
|
|
4
4
|
import {
|
|
5
5
|
AuthenticatedCommand
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RQFQK7WV.js";
|
|
7
7
|
import {
|
|
8
8
|
require_lib
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MB3FR4WL.js";
|
|
10
10
|
import {
|
|
11
11
|
require_source
|
|
12
12
|
} from "./chunk-QDAKBUNO.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
inquirer_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2EMLJCCB.js";
|
|
4
4
|
import {
|
|
5
5
|
provisionApiClientFromDashboard,
|
|
6
6
|
startWorkspaceSelectionServer
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
FragmentCommand,
|
|
13
13
|
require_lib
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-MB3FR4WL.js";
|
|
15
15
|
import {
|
|
16
16
|
require_source
|
|
17
17
|
} from "./chunk-QDAKBUNO.js";
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getCurlCliVersion,
|
|
3
|
+
hasCurlInstallation
|
|
4
|
+
} from "./chunk-NEW2NRYM.js";
|
|
1
5
|
import {
|
|
2
6
|
init_cjs_shims
|
|
3
7
|
} from "./chunk-7GH3YGSC.js";
|
|
@@ -8,6 +12,8 @@ import assert from "node:assert";
|
|
|
8
12
|
var tapPackageJsonUrl = "https://raw.githubusercontent.com/fragment-dev/homebrew-tap/main/package.json";
|
|
9
13
|
var npmRegistryUrl = "https://registry.npmjs.org/@fragment-dev/cli";
|
|
10
14
|
var detectInstallationMethodFromPath = (root) => {
|
|
15
|
+
if (hasCurlInstallation(root))
|
|
16
|
+
return "curl";
|
|
11
17
|
if (/[\\/]Cellar[\\/]/i.test(root)) {
|
|
12
18
|
return "brew";
|
|
13
19
|
}
|
|
@@ -28,7 +34,7 @@ var getNpmCliVersion = async (isBeta) => {
|
|
|
28
34
|
assert(version, "npm registry returned no dist-tag version");
|
|
29
35
|
return version;
|
|
30
36
|
};
|
|
31
|
-
var getFragmentCliVersion = async (isBeta, installationMethod = "unknown") => installationMethod === "npm" ? getNpmCliVersion(isBeta) : getHomebrewCliVersion(isBeta);
|
|
37
|
+
var getFragmentCliVersion = async (isBeta, installationMethod = "unknown") => installationMethod === "curl" ? getCurlCliVersion(isBeta) : installationMethod === "npm" ? getNpmCliVersion(isBeta) : getHomebrewCliVersion(isBeta);
|
|
32
38
|
|
|
33
39
|
export {
|
|
34
40
|
detectInstallationMethodFromPath,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
formatScenarioBalances
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RBNP4MID.js";
|
|
4
4
|
import {
|
|
5
5
|
DEFAULT_SCHEMA_PATH
|
|
6
6
|
} from "./chunk-A4BSWX5D.js";
|
|
7
7
|
import {
|
|
8
8
|
FragmentCommand,
|
|
9
9
|
require_lib
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MB3FR4WL.js";
|
|
11
11
|
import {
|
|
12
12
|
getParsedSchemaString,
|
|
13
13
|
parseJSON
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AddLedgerEntry
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-SACWMZFU.js";
|
|
4
|
+
import "../chunk-RQFQK7WV.js";
|
|
5
|
+
import "../chunk-6T66IJCY.js";
|
|
6
|
+
import "../chunk-MB3FR4WL.js";
|
|
7
7
|
import "../chunk-IDAIGTVO.js";
|
|
8
8
|
import "../chunk-QZNZYG2G.js";
|
|
9
|
+
import "../chunk-WAU6SFQ5.js";
|
|
10
|
+
import "../chunk-NEW2NRYM.js";
|
|
9
11
|
import "../chunk-QF5EN33L.js";
|
|
10
|
-
import "../chunk-DYLKAHKE.js";
|
|
11
12
|
import "../chunk-QDAKBUNO.js";
|
|
12
13
|
import "../chunk-7K4RMTU4.js";
|
|
13
14
|
import "../chunk-67DUFD6P.js";
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ApiClientCreate
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-YWITUQIX.js";
|
|
4
4
|
import "../../chunk-LID4G5RM.js";
|
|
5
5
|
import "../../chunk-TWNWTJEF.js";
|
|
6
6
|
import "../../chunk-MI5NFPWE.js";
|
|
7
7
|
import "../../chunk-3SE5DFKP.js";
|
|
8
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-MB3FR4WL.js";
|
|
9
9
|
import "../../chunk-IDAIGTVO.js";
|
|
10
10
|
import "../../chunk-QZNZYG2G.js";
|
|
11
|
+
import "../../chunk-WAU6SFQ5.js";
|
|
12
|
+
import "../../chunk-NEW2NRYM.js";
|
|
11
13
|
import "../../chunk-QF5EN33L.js";
|
|
12
|
-
import "../../chunk-DYLKAHKE.js";
|
|
13
14
|
import "../../chunk-QDAKBUNO.js";
|
|
14
15
|
import "../../chunk-7K4RMTU4.js";
|
|
15
16
|
import "../../chunk-67DUFD6P.js";
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CreateCustomLink
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-VN2DVYGG.js";
|
|
4
|
+
import "../chunk-RQFQK7WV.js";
|
|
5
|
+
import "../chunk-6T66IJCY.js";
|
|
6
|
+
import "../chunk-MB3FR4WL.js";
|
|
7
7
|
import "../chunk-IDAIGTVO.js";
|
|
8
8
|
import "../chunk-QZNZYG2G.js";
|
|
9
|
+
import "../chunk-WAU6SFQ5.js";
|
|
10
|
+
import "../chunk-NEW2NRYM.js";
|
|
9
11
|
import "../chunk-QF5EN33L.js";
|
|
10
|
-
import "../chunk-DYLKAHKE.js";
|
|
11
12
|
import "../chunk-QDAKBUNO.js";
|
|
12
13
|
import "../chunk-7K4RMTU4.js";
|
|
13
14
|
import "../chunk-67DUFD6P.js";
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CreateLedger
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-XTEERZ7T.js";
|
|
4
|
+
import "../chunk-RQFQK7WV.js";
|
|
5
|
+
import "../chunk-6T66IJCY.js";
|
|
6
|
+
import "../chunk-MB3FR4WL.js";
|
|
7
7
|
import "../chunk-IDAIGTVO.js";
|
|
8
8
|
import "../chunk-QZNZYG2G.js";
|
|
9
|
+
import "../chunk-WAU6SFQ5.js";
|
|
10
|
+
import "../chunk-NEW2NRYM.js";
|
|
9
11
|
import "../chunk-QF5EN33L.js";
|
|
10
|
-
import "../chunk-DYLKAHKE.js";
|
|
11
12
|
import "../chunk-QDAKBUNO.js";
|
|
12
13
|
import "../chunk-7K4RMTU4.js";
|
|
13
14
|
import "../chunk-67DUFD6P.js";
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeleteCustomTxs
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-PYG6AFYU.js";
|
|
4
|
+
import "../chunk-RQFQK7WV.js";
|
|
5
|
+
import "../chunk-6T66IJCY.js";
|
|
6
|
+
import "../chunk-MB3FR4WL.js";
|
|
7
7
|
import "../chunk-IDAIGTVO.js";
|
|
8
8
|
import "../chunk-QZNZYG2G.js";
|
|
9
|
+
import "../chunk-WAU6SFQ5.js";
|
|
10
|
+
import "../chunk-NEW2NRYM.js";
|
|
9
11
|
import "../chunk-QF5EN33L.js";
|
|
10
|
-
import "../chunk-DYLKAHKE.js";
|
|
11
12
|
import "../chunk-QDAKBUNO.js";
|
|
12
13
|
import "../chunk-7K4RMTU4.js";
|
|
13
14
|
import "../chunk-67DUFD6P.js";
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeleteLedger
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-SL4IWVLO.js";
|
|
4
|
+
import "../chunk-RQFQK7WV.js";
|
|
5
|
+
import "../chunk-6T66IJCY.js";
|
|
6
|
+
import "../chunk-MB3FR4WL.js";
|
|
7
7
|
import "../chunk-IDAIGTVO.js";
|
|
8
8
|
import "../chunk-QZNZYG2G.js";
|
|
9
|
+
import "../chunk-WAU6SFQ5.js";
|
|
10
|
+
import "../chunk-NEW2NRYM.js";
|
|
9
11
|
import "../chunk-QF5EN33L.js";
|
|
10
|
-
import "../chunk-DYLKAHKE.js";
|
|
11
12
|
import "../chunk-QDAKBUNO.js";
|
|
12
13
|
import "../chunk-7K4RMTU4.js";
|
|
13
14
|
import "../chunk-67DUFD6P.js";
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeleteSchema
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-IWY22QAC.js";
|
|
4
|
+
import "../chunk-RQFQK7WV.js";
|
|
5
|
+
import "../chunk-6T66IJCY.js";
|
|
6
|
+
import "../chunk-MB3FR4WL.js";
|
|
7
7
|
import "../chunk-IDAIGTVO.js";
|
|
8
8
|
import "../chunk-QZNZYG2G.js";
|
|
9
|
+
import "../chunk-WAU6SFQ5.js";
|
|
10
|
+
import "../chunk-NEW2NRYM.js";
|
|
9
11
|
import "../chunk-QF5EN33L.js";
|
|
10
|
-
import "../chunk-DYLKAHKE.js";
|
|
11
12
|
import "../chunk-QDAKBUNO.js";
|
|
12
13
|
import "../chunk-7K4RMTU4.js";
|
|
13
14
|
import "../chunk-67DUFD6P.js";
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GenGraphQL
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-CSP4CXUF.js";
|
|
4
4
|
import "../chunk-XOYUWNKQ.js";
|
|
5
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-FI2U3AB2.js";
|
|
6
6
|
import "../chunk-X3ZHPSHH.js";
|
|
7
7
|
import "../chunk-UQALZFPK.js";
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-NUXJ4UQR.js";
|
|
9
|
+
import "../chunk-3XCYMGE3.js";
|
|
10
10
|
import "../chunk-IJNU7K35.js";
|
|
11
11
|
import "../chunk-2QGAXOCF.js";
|
|
12
12
|
import "../chunk-ZRPKEOB3.js";
|
|
13
13
|
import "../chunk-NSEYKDYC.js";
|
|
14
14
|
import "../chunk-MI5NFPWE.js";
|
|
15
15
|
import "../chunk-3SE5DFKP.js";
|
|
16
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-MB3FR4WL.js";
|
|
17
17
|
import "../chunk-IDAIGTVO.js";
|
|
18
18
|
import "../chunk-QZNZYG2G.js";
|
|
19
|
+
import "../chunk-WAU6SFQ5.js";
|
|
20
|
+
import "../chunk-NEW2NRYM.js";
|
|
19
21
|
import "../chunk-QF5EN33L.js";
|
|
20
|
-
import "../chunk-DYLKAHKE.js";
|
|
21
22
|
import "../chunk-QDAKBUNO.js";
|
|
22
23
|
import "../chunk-7K4RMTU4.js";
|
|
23
24
|
import "../chunk-67DUFD6P.js";
|