@cartesi/cli 2.0.0-alpha.11 → 2.0.0-alpha.13
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/dist/base.d.ts +2 -2
- package/dist/base.d.ts.map +1 -1
- package/dist/base.js +9 -13
- package/dist/builder/directory.d.ts +2 -2
- package/dist/builder/directory.d.ts.map +1 -1
- package/dist/builder/directory.js +1 -1
- package/dist/builder/docker.d.ts +1 -1
- package/dist/builder/docker.d.ts.map +1 -1
- package/dist/builder/docker.js +8 -8
- package/dist/builder/empty.d.ts +2 -2
- package/dist/builder/empty.d.ts.map +1 -1
- package/dist/builder/empty.js +1 -1
- package/dist/builder/none.d.ts +2 -2
- package/dist/builder/none.d.ts.map +1 -1
- package/dist/builder/none.js +1 -1
- package/dist/builder/tar.d.ts +2 -2
- package/dist/builder/tar.d.ts.map +1 -1
- package/dist/builder/tar.js +1 -1
- package/dist/commands/build.js +2 -2
- package/dist/commands/create.d.ts +5 -1
- package/dist/commands/create.d.ts.map +1 -1
- package/dist/commands/create.js +31 -4
- package/dist/commands/deploy.d.ts +16 -1
- package/dist/commands/deploy.d.ts.map +1 -1
- package/dist/commands/deploy.js +267 -8
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +3 -9
- package/dist/commands/{rollups/logs.d.ts → logs.d.ts} +2 -3
- package/dist/commands/logs.d.ts.map +1 -0
- package/dist/commands/{rollups/logs.js → logs.js} +4 -3
- package/dist/commands/run.js +2 -2
- package/dist/commands/send/eip712.d.ts +34 -0
- package/dist/commands/send/eip712.d.ts.map +1 -0
- package/dist/commands/send/eip712.js +81 -0
- package/dist/commands/send/erc721.d.ts.map +1 -1
- package/dist/commands/send/erc721.js +1 -1
- package/dist/commands/send/generic.d.ts +2 -0
- package/dist/commands/send/generic.d.ts.map +1 -1
- package/dist/commands/send/generic.js +18 -10
- package/dist/commands/send.d.ts +1 -1
- package/dist/commands/send.d.ts.map +1 -1
- package/dist/commands/send.js +4 -4
- package/dist/commands/shell.js +1 -1
- package/dist/commands/{rollups/start.d.ts → start.d.ts} +3 -3
- package/dist/commands/start.d.ts.map +1 -0
- package/dist/commands/{rollups/start.js → start.js} +25 -16
- package/dist/commands/{rollups/status.d.ts → status.d.ts} +2 -3
- package/dist/commands/status.d.ts.map +1 -0
- package/dist/commands/{rollups/status.js → status.js} +7 -6
- package/dist/commands/stop.d.ts +5 -0
- package/dist/commands/stop.d.ts.map +1 -0
- package/dist/commands/{rollups/stop.js → stop.js} +4 -3
- package/dist/compose/{rollups/default.env → default.env} +5 -3
- package/dist/compose/docker-compose-anvil.yaml +39 -0
- package/dist/compose/{rollups/docker-compose-bundler.yaml → docker-compose-bundler.yaml} +36 -8
- package/dist/compose/docker-compose-espresso.yaml +81 -0
- package/dist/compose/docker-compose-explorer.yaml +92 -0
- package/dist/compose/docker-compose-graphql.yaml +38 -0
- package/dist/compose/docker-compose-node.yaml +53 -0
- package/dist/compose/docker-compose-passkey-server.yaml +37 -0
- package/dist/compose/docker-compose-paymaster.yaml +40 -0
- package/dist/compose/{rollups/docker-compose-proxy.yaml → docker-compose-proxy.yaml} +1 -1
- package/dist/config.d.ts +5 -4
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +23 -22
- package/dist/contracts.d.ts +22 -22
- package/dist/contracts.js +11 -11
- package/dist/exec/cartesi-machine.d.ts +2 -2
- package/dist/exec/cartesi-machine.d.ts.map +1 -1
- package/dist/exec/cartesi-machine.js +1 -1
- package/dist/exec/crane.d.ts +3 -3
- package/dist/exec/crane.d.ts.map +1 -1
- package/dist/exec/crane.js +1 -1
- package/dist/exec/genext2fs.d.ts +2 -2
- package/dist/exec/genext2fs.d.ts.map +1 -1
- package/dist/exec/genext2fs.js +2 -2
- package/dist/exec/mksquashfs.d.ts +2 -2
- package/dist/exec/mksquashfs.d.ts.map +1 -1
- package/dist/exec/mksquashfs.js +2 -2
- package/dist/exec/rollups.d.ts +1 -1
- package/dist/exec/rollups.d.ts.map +1 -1
- package/dist/exec/util.d.ts +2 -2
- package/dist/exec/util.d.ts.map +1 -1
- package/dist/exec/util.js +6 -10
- package/dist/index.js +10 -4
- package/dist/machine.d.ts +1 -1
- package/dist/machine.d.ts.map +1 -1
- package/dist/prompts.d.ts +3 -3
- package/dist/prompts.d.ts.map +1 -1
- package/dist/prompts.js +1 -1
- package/dist/template.d.ts +2 -2
- package/dist/template.d.ts.map +1 -1
- package/dist/template.js +2 -2
- package/dist/wallet.d.ts +1 -1
- package/dist/wallet.d.ts.map +1 -1
- package/dist/wallet.js +77 -93
- package/package.json +5 -6
- package/dist/commands/rollups/create.d.ts +0 -7
- package/dist/commands/rollups/create.d.ts.map +0 -1
- package/dist/commands/rollups/create.js +0 -36
- package/dist/commands/rollups/deploy.d.ts +0 -16
- package/dist/commands/rollups/deploy.d.ts.map +0 -1
- package/dist/commands/rollups/deploy.js +0 -237
- package/dist/commands/rollups/logs.d.ts.map +0 -1
- package/dist/commands/rollups/start.d.ts.map +0 -1
- package/dist/commands/rollups/status.d.ts.map +0 -1
- package/dist/commands/rollups/stop.d.ts +0 -5
- package/dist/commands/rollups/stop.d.ts.map +0 -1
- package/dist/commands/rollups.d.ts +0 -6
- package/dist/commands/rollups.d.ts.map +0 -1
- package/dist/commands/rollups.js +0 -21
- package/dist/compose/rollups/docker-compose-anvil.yaml +0 -17
- package/dist/compose/rollups/docker-compose-espresso.yaml +0 -68
- package/dist/compose/rollups/docker-compose-explorer.yaml +0 -57
- package/dist/compose/rollups/docker-compose-graphql.yaml +0 -23
- package/dist/compose/rollups/docker-compose-node.yaml +0 -26
- package/dist/compose/rollups/docker-compose-paymaster.yaml +0 -18
- package/dist/compose/rollups/proxy/anvil.yaml +0 -17
- package/dist/compose/rollups/proxy/bundler.yaml +0 -17
- package/dist/compose/rollups/proxy/espresso.yaml +0 -17
- package/dist/compose/rollups/proxy/explorer-api.yaml +0 -17
- package/dist/compose/rollups/proxy/explorer.yaml +0 -10
- package/dist/compose/rollups/proxy/graphql.yaml +0 -10
- package/dist/compose/rollups/proxy/paymaster.yaml +0 -17
- package/dist/compose/rollups/proxy/rollups-node.yaml +0 -17
- /package/dist/compose/{rollups/docker-compose-database.yaml → docker-compose-database.yaml} +0 -0
- /package/dist/compose/{rollups/docker-compose-node-cpus.yaml → docker-compose-node-cpus.yaml} +0 -0
- /package/dist/compose/{rollups/docker-compose-node-memory.yaml → docker-compose-node-memory.yaml} +0 -0
package/dist/contracts.d.ts
CHANGED
|
@@ -115,9 +115,9 @@ export declare const applicationFactoryAbi: readonly [{
|
|
|
115
115
|
}];
|
|
116
116
|
readonly name: "ApplicationCreated";
|
|
117
117
|
}];
|
|
118
|
-
export declare const applicationFactoryAddress: "
|
|
118
|
+
export declare const applicationFactoryAddress: "0xc7006f70875BaDe89032001262A846D3Ee160051";
|
|
119
119
|
export declare const applicationFactoryConfig: {
|
|
120
|
-
readonly address: "
|
|
120
|
+
readonly address: "0xc7006f70875BaDe89032001262A846D3Ee160051";
|
|
121
121
|
readonly abi: readonly [{
|
|
122
122
|
readonly type: "function";
|
|
123
123
|
readonly inputs: readonly [{
|
|
@@ -309,9 +309,9 @@ export declare const authorityFactoryAbi: readonly [{
|
|
|
309
309
|
}];
|
|
310
310
|
readonly name: "AuthorityCreated";
|
|
311
311
|
}];
|
|
312
|
-
export declare const authorityFactoryAddress: "
|
|
312
|
+
export declare const authorityFactoryAddress: "0xC7003566dD09Aa0fC0Ce201aC2769aFAe3BF0051";
|
|
313
313
|
export declare const authorityFactoryConfig: {
|
|
314
|
-
readonly address: "
|
|
314
|
+
readonly address: "0xC7003566dD09Aa0fC0Ce201aC2769aFAe3BF0051";
|
|
315
315
|
readonly abi: readonly [{
|
|
316
316
|
readonly type: "function";
|
|
317
317
|
readonly inputs: readonly [{
|
|
@@ -464,9 +464,9 @@ export declare const erc1155BatchPortalAbi: readonly [{
|
|
|
464
464
|
}];
|
|
465
465
|
readonly stateMutability: "view";
|
|
466
466
|
}];
|
|
467
|
-
export declare const erc1155BatchPortalAddress: "
|
|
467
|
+
export declare const erc1155BatchPortalAddress: "0xc700A2e5531E720a2434433b6ccf4c0eA2400051";
|
|
468
468
|
export declare const erc1155BatchPortalConfig: {
|
|
469
|
-
readonly address: "
|
|
469
|
+
readonly address: "0xc700A2e5531E720a2434433b6ccf4c0eA2400051";
|
|
470
470
|
readonly abi: readonly [{
|
|
471
471
|
readonly type: "constructor";
|
|
472
472
|
readonly inputs: readonly [{
|
|
@@ -566,9 +566,9 @@ export declare const erc1155SinglePortalAbi: readonly [{
|
|
|
566
566
|
}];
|
|
567
567
|
readonly stateMutability: "view";
|
|
568
568
|
}];
|
|
569
|
-
export declare const erc1155SinglePortalAddress: "
|
|
569
|
+
export declare const erc1155SinglePortalAddress: "0xc700A261279aFC6F755A3a67D86ae43E2eBD0051";
|
|
570
570
|
export declare const erc1155SinglePortalConfig: {
|
|
571
|
-
readonly address: "
|
|
571
|
+
readonly address: "0xc700A261279aFC6F755A3a67D86ae43E2eBD0051";
|
|
572
572
|
readonly abi: readonly [{
|
|
573
573
|
readonly type: "constructor";
|
|
574
574
|
readonly inputs: readonly [{
|
|
@@ -664,9 +664,9 @@ export declare const erc20PortalAbi: readonly [{
|
|
|
664
664
|
readonly inputs: readonly [];
|
|
665
665
|
readonly name: "ERC20TransferFailed";
|
|
666
666
|
}];
|
|
667
|
-
export declare const erc20PortalAddress: "
|
|
667
|
+
export declare const erc20PortalAddress: "0xc700D6aDd016eECd59d989C028214Eaa0fCC0051";
|
|
668
668
|
export declare const erc20PortalConfig: {
|
|
669
|
-
readonly address: "
|
|
669
|
+
readonly address: "0xc700D6aDd016eECd59d989C028214Eaa0fCC0051";
|
|
670
670
|
readonly abi: readonly [{
|
|
671
671
|
readonly type: "constructor";
|
|
672
672
|
readonly inputs: readonly [{
|
|
@@ -758,9 +758,9 @@ export declare const erc721PortalAbi: readonly [{
|
|
|
758
758
|
}];
|
|
759
759
|
readonly stateMutability: "view";
|
|
760
760
|
}];
|
|
761
|
-
export declare const erc721PortalAddress: "
|
|
761
|
+
export declare const erc721PortalAddress: "0xc700d52F5290e978e9CAe7D1E092935263b60051";
|
|
762
762
|
export declare const erc721PortalConfig: {
|
|
763
|
-
readonly address: "
|
|
763
|
+
readonly address: "0xc700d52F5290e978e9CAe7D1E092935263b60051";
|
|
764
764
|
readonly abi: readonly [{
|
|
765
765
|
readonly type: "constructor";
|
|
766
766
|
readonly inputs: readonly [{
|
|
@@ -844,9 +844,9 @@ export declare const etherPortalAbi: readonly [{
|
|
|
844
844
|
readonly inputs: readonly [];
|
|
845
845
|
readonly name: "EtherTransferFailed";
|
|
846
846
|
}];
|
|
847
|
-
export declare const etherPortalAddress: "
|
|
847
|
+
export declare const etherPortalAddress: "0xc70076a466789B595b50959cdc261227F0D70051";
|
|
848
848
|
export declare const etherPortalConfig: {
|
|
849
|
-
readonly address: "
|
|
849
|
+
readonly address: "0xc70076a466789B595b50959cdc261227F0D70051";
|
|
850
850
|
readonly abi: readonly [{
|
|
851
851
|
readonly type: "constructor";
|
|
852
852
|
readonly inputs: readonly [{
|
|
@@ -982,9 +982,9 @@ export declare const inputBoxAbi: readonly [{
|
|
|
982
982
|
}];
|
|
983
983
|
readonly name: "InputTooLarge";
|
|
984
984
|
}];
|
|
985
|
-
export declare const inputBoxAddress: "
|
|
985
|
+
export declare const inputBoxAddress: "0xc70074BDD26d8cF983Ca6A5b89b8db52D5850051";
|
|
986
986
|
export declare const inputBoxConfig: {
|
|
987
|
-
readonly address: "
|
|
987
|
+
readonly address: "0xc70074BDD26d8cF983Ca6A5b89b8db52D5850051";
|
|
988
988
|
readonly abi: readonly [{
|
|
989
989
|
readonly type: "function";
|
|
990
990
|
readonly inputs: readonly [{
|
|
@@ -1156,9 +1156,9 @@ export declare const quorumFactoryAbi: readonly [{
|
|
|
1156
1156
|
}];
|
|
1157
1157
|
readonly name: "QuorumCreated";
|
|
1158
1158
|
}];
|
|
1159
|
-
export declare const quorumFactoryAddress: "
|
|
1159
|
+
export declare const quorumFactoryAddress: "0xC7003CAb437640b91C3351B98e9e8aA413410051";
|
|
1160
1160
|
export declare const quorumFactoryConfig: {
|
|
1161
|
-
readonly address: "
|
|
1161
|
+
readonly address: "0xC7003CAb437640b91C3351B98e9e8aA413410051";
|
|
1162
1162
|
readonly abi: readonly [{
|
|
1163
1163
|
readonly type: "function";
|
|
1164
1164
|
readonly inputs: readonly [{
|
|
@@ -1260,9 +1260,9 @@ export declare const safeErc20TransferAbi: readonly [{
|
|
|
1260
1260
|
}];
|
|
1261
1261
|
readonly name: "SafeERC20FailedOperation";
|
|
1262
1262
|
}];
|
|
1263
|
-
export declare const safeErc20TransferAddress: "
|
|
1263
|
+
export declare const safeErc20TransferAddress: "0xc700903d822E108a93B21F69A0a6475F42930051";
|
|
1264
1264
|
export declare const safeErc20TransferConfig: {
|
|
1265
|
-
readonly address: "
|
|
1265
|
+
readonly address: "0xc700903d822E108a93B21F69A0a6475F42930051";
|
|
1266
1266
|
readonly abi: readonly [{
|
|
1267
1267
|
readonly type: "function";
|
|
1268
1268
|
readonly inputs: readonly [{
|
|
@@ -1400,9 +1400,9 @@ export declare const selfHostedApplicationFactoryAbi: readonly [{
|
|
|
1400
1400
|
}];
|
|
1401
1401
|
readonly stateMutability: "view";
|
|
1402
1402
|
}];
|
|
1403
|
-
export declare const selfHostedApplicationFactoryAddress: "
|
|
1403
|
+
export declare const selfHostedApplicationFactoryAddress: "0xc700285Ab555eeB5201BC00CFD4b2CC8DED90051";
|
|
1404
1404
|
export declare const selfHostedApplicationFactoryConfig: {
|
|
1405
|
-
readonly address: "
|
|
1405
|
+
readonly address: "0xc700285Ab555eeB5201BC00CFD4b2CC8DED90051";
|
|
1406
1406
|
readonly abi: readonly [{
|
|
1407
1407
|
readonly type: "constructor";
|
|
1408
1408
|
readonly inputs: readonly [{
|
package/dist/contracts.js
CHANGED
|
@@ -102,7 +102,7 @@ export const applicationFactoryAbi = [
|
|
|
102
102
|
name: 'ApplicationCreated',
|
|
103
103
|
},
|
|
104
104
|
];
|
|
105
|
-
export const applicationFactoryAddress = '
|
|
105
|
+
export const applicationFactoryAddress = '0xc7006f70875BaDe89032001262A846D3Ee160051';
|
|
106
106
|
export const applicationFactoryConfig = {
|
|
107
107
|
address: applicationFactoryAddress,
|
|
108
108
|
abi: applicationFactoryAbi,
|
|
@@ -173,7 +173,7 @@ export const authorityFactoryAbi = [
|
|
|
173
173
|
name: 'AuthorityCreated',
|
|
174
174
|
},
|
|
175
175
|
];
|
|
176
|
-
export const authorityFactoryAddress = '
|
|
176
|
+
export const authorityFactoryAddress = '0xC7003566dD09Aa0fC0Ce201aC2769aFAe3BF0051';
|
|
177
177
|
export const authorityFactoryConfig = {
|
|
178
178
|
address: authorityFactoryAddress,
|
|
179
179
|
abi: authorityFactoryAbi,
|
|
@@ -254,7 +254,7 @@ export const erc1155BatchPortalAbi = [
|
|
|
254
254
|
stateMutability: 'view',
|
|
255
255
|
},
|
|
256
256
|
];
|
|
257
|
-
export const erc1155BatchPortalAddress = '
|
|
257
|
+
export const erc1155BatchPortalAddress = '0xc700A2e5531E720a2434433b6ccf4c0eA2400051';
|
|
258
258
|
export const erc1155BatchPortalConfig = {
|
|
259
259
|
address: erc1155BatchPortalAddress,
|
|
260
260
|
abi: erc1155BatchPortalAbi,
|
|
@@ -302,7 +302,7 @@ export const erc1155SinglePortalAbi = [
|
|
|
302
302
|
stateMutability: 'view',
|
|
303
303
|
},
|
|
304
304
|
];
|
|
305
|
-
export const erc1155SinglePortalAddress = '
|
|
305
|
+
export const erc1155SinglePortalAddress = '0xc700A261279aFC6F755A3a67D86ae43E2eBD0051';
|
|
306
306
|
export const erc1155SinglePortalConfig = {
|
|
307
307
|
address: erc1155SinglePortalAddress,
|
|
308
308
|
abi: erc1155SinglePortalAbi,
|
|
@@ -345,7 +345,7 @@ export const erc20PortalAbi = [
|
|
|
345
345
|
},
|
|
346
346
|
{ type: 'error', inputs: [], name: 'ERC20TransferFailed' },
|
|
347
347
|
];
|
|
348
|
-
export const erc20PortalAddress = '
|
|
348
|
+
export const erc20PortalAddress = '0xc700D6aDd016eECd59d989C028214Eaa0fCC0051';
|
|
349
349
|
export const erc20PortalConfig = {
|
|
350
350
|
address: erc20PortalAddress,
|
|
351
351
|
abi: erc20PortalAbi,
|
|
@@ -392,7 +392,7 @@ export const erc721PortalAbi = [
|
|
|
392
392
|
stateMutability: 'view',
|
|
393
393
|
},
|
|
394
394
|
];
|
|
395
|
-
export const erc721PortalAddress = '
|
|
395
|
+
export const erc721PortalAddress = '0xc700d52F5290e978e9CAe7D1E092935263b60051';
|
|
396
396
|
export const erc721PortalConfig = {
|
|
397
397
|
address: erc721PortalAddress,
|
|
398
398
|
abi: erc721PortalAbi,
|
|
@@ -433,7 +433,7 @@ export const etherPortalAbi = [
|
|
|
433
433
|
},
|
|
434
434
|
{ type: 'error', inputs: [], name: 'EtherTransferFailed' },
|
|
435
435
|
];
|
|
436
|
-
export const etherPortalAddress = '
|
|
436
|
+
export const etherPortalAddress = '0xc70076a466789B595b50959cdc261227F0D70051';
|
|
437
437
|
export const etherPortalConfig = {
|
|
438
438
|
address: etherPortalAddress,
|
|
439
439
|
abi: etherPortalAbi,
|
|
@@ -517,7 +517,7 @@ export const inputBoxAbi = [
|
|
|
517
517
|
name: 'InputTooLarge',
|
|
518
518
|
},
|
|
519
519
|
];
|
|
520
|
-
export const inputBoxAddress = '
|
|
520
|
+
export const inputBoxAddress = '0xc70074BDD26d8cF983Ca6A5b89b8db52D5850051';
|
|
521
521
|
export const inputBoxConfig = {
|
|
522
522
|
address: inputBoxAddress,
|
|
523
523
|
abi: inputBoxAbi,
|
|
@@ -588,7 +588,7 @@ export const quorumFactoryAbi = [
|
|
|
588
588
|
name: 'QuorumCreated',
|
|
589
589
|
},
|
|
590
590
|
];
|
|
591
|
-
export const quorumFactoryAddress = '
|
|
591
|
+
export const quorumFactoryAddress = '0xC7003CAb437640b91C3351B98e9e8aA413410051';
|
|
592
592
|
export const quorumFactoryConfig = {
|
|
593
593
|
address: quorumFactoryAddress,
|
|
594
594
|
abi: quorumFactoryAbi,
|
|
@@ -614,7 +614,7 @@ export const safeErc20TransferAbi = [
|
|
|
614
614
|
name: 'SafeERC20FailedOperation',
|
|
615
615
|
},
|
|
616
616
|
];
|
|
617
|
-
export const safeErc20TransferAddress = '
|
|
617
|
+
export const safeErc20TransferAddress = '0xc700903d822E108a93B21F69A0a6475F42930051';
|
|
618
618
|
export const safeErc20TransferConfig = {
|
|
619
619
|
address: safeErc20TransferAddress,
|
|
620
620
|
abi: safeErc20TransferAbi,
|
|
@@ -716,7 +716,7 @@ export const selfHostedApplicationFactoryAbi = [
|
|
|
716
716
|
stateMutability: 'view',
|
|
717
717
|
},
|
|
718
718
|
];
|
|
719
|
-
export const selfHostedApplicationFactoryAddress = '
|
|
719
|
+
export const selfHostedApplicationFactoryAddress = '0xc700285Ab555eeB5201BC00CFD4b2CC8DED90051';
|
|
720
720
|
export const selfHostedApplicationFactoryConfig = {
|
|
721
721
|
address: selfHostedApplicationFactoryAddress,
|
|
722
722
|
abi: selfHostedApplicationFactoryAbi,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Range, SemVer } from "semver";
|
|
2
|
-
import { DockerFallbackOptions, ExecaOptionsDockerFallback } from "./util.js";
|
|
1
|
+
import { Range, type SemVer } from "semver";
|
|
2
|
+
import { type DockerFallbackOptions, type ExecaOptionsDockerFallback } from "./util.js";
|
|
3
3
|
export declare const requiredVersion: Range;
|
|
4
4
|
export declare const boot: (args: readonly string[], options: ExecaOptionsDockerFallback) => Promise<import("execa").Result<import("execa").Options & {
|
|
5
5
|
image?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cartesi-machine.d.ts","sourceRoot":"","sources":["../../src/exec/cartesi-machine.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"cartesi-machine.d.ts","sourceRoot":"","sources":["../../src/exec/cartesi-machine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,MAAM,EAAS,MAAM,QAAQ,CAAC;AACnD,OAAO,EACH,KAAK,qBAAqB,EAC1B,KAAK,0BAA0B,EAElC,MAAM,WAAW,CAAC;AAEnB,eAAO,MAAM,eAAe,OAAuB,CAAC;AAEpD,eAAO,MAAM,IAAI,GACb,MAAM,SAAS,MAAM,EAAE,EACvB,SAAS,0BAA0B;;;GAGtC,CAAC;AAEF,eAAO,MAAM,OAAO,GAChB,UAAU,qBAAqB,KAChC,OAAO,CAAC,MAAM,GAAG,IAAI,CAgBvB,CAAC"}
|
package/dist/exec/crane.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { DockerFallbackOptions } from "./util.js";
|
|
1
|
+
import type { Stream } from "node:stream";
|
|
2
|
+
import { Range, type SemVer } from "semver";
|
|
3
|
+
import { type DockerFallbackOptions } from "./util.js";
|
|
4
4
|
export declare const requiredVersion: Range;
|
|
5
5
|
export declare const exportImage: (options: {
|
|
6
6
|
stdin: Stream | number;
|
package/dist/exec/crane.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"crane.d.ts","sourceRoot":"","sources":["../../src/exec/crane.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"crane.d.ts","sourceRoot":"","sources":["../../src/exec/crane.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,KAAK,MAAM,EAAS,MAAM,QAAQ,CAAC;AACnD,OAAO,EAAE,KAAK,qBAAqB,EAA2B,MAAM,WAAW,CAAC;AAEhF,eAAO,MAAM,eAAe,OAAuB,CAAC;AAEpD,eAAO,MAAM,WAAW,GACpB,SAAS;IACL,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;CAC3B,GAAG,qBAAqB;;;;;EAO5B,CAAC;AAEF,eAAO,MAAM,OAAO,GAChB,UAAU,qBAAqB,KAChC,OAAO,CAAC,MAAM,GAAG,IAAI,CAMvB,CAAC"}
|
package/dist/exec/crane.js
CHANGED
package/dist/exec/genext2fs.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Range, SemVer } from "semver";
|
|
2
|
-
import { DockerFallbackOptions } from "./util.js";
|
|
1
|
+
import { Range, type SemVer } from "semver";
|
|
2
|
+
import { type DockerFallbackOptions } from "./util.js";
|
|
3
3
|
export declare const requiredVersion: Range;
|
|
4
4
|
export declare const empty: (options: {
|
|
5
5
|
cwd?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"genext2fs.d.ts","sourceRoot":"","sources":["../../src/exec/genext2fs.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"genext2fs.d.ts","sourceRoot":"","sources":["../../src/exec/genext2fs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,MAAM,EAAS,MAAM,QAAQ,CAAC;AACnD,OAAO,EAAE,KAAK,qBAAqB,EAAuB,MAAM,WAAW,CAAC;AAI5E,eAAO,MAAM,eAAe,EAAE,KAA2B,CAAC;AAU1D,eAAO,MAAM,KAAK,GACd,SAAS;IACL,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAClB,GAAG,qBAAqB,kBAgB5B,CAAC;AAEF,eAAO,MAAM,aAAa,GACtB,SAAS;IACL,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAClB,GAAG,qBAAqB;;;GAS5B,CAAC;AAEF,eAAO,MAAM,OAAO,GAChB,SAAS;IACL,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAClB,GAAG,qBAAqB;;;GAS5B,CAAC;AAEF,eAAO,MAAM,OAAO,GAChB,UAAU,qBAAqB,KAChC,OAAO,CAAC,MAAM,GAAG,IAAI,CAevB,CAAC"}
|
package/dist/exec/genext2fs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Range, parse } from "semver";
|
|
2
2
|
import { execaDockerFallback } from "./util.js";
|
|
3
3
|
const BLOCK_SIZE = 4096; // fixed at 4k
|
|
4
4
|
export const requiredVersion = new Range("^1.5.6");
|
|
@@ -36,7 +36,7 @@ export const version = async (options) => {
|
|
|
36
36
|
if (typeof stdout === "string") {
|
|
37
37
|
const regex = /(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?/;
|
|
38
38
|
const m = stdout.match(regex);
|
|
39
|
-
if (m
|
|
39
|
+
if (m?.[0]) {
|
|
40
40
|
return parse(m[0]);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Range, SemVer } from "semver";
|
|
2
|
-
import { DockerFallbackOptions } from "./util.js";
|
|
1
|
+
import { Range, type SemVer } from "semver";
|
|
2
|
+
import { type DockerFallbackOptions } from "./util.js";
|
|
3
3
|
export declare const requiredVersion: Range;
|
|
4
4
|
export declare const fromDirectory: (options: {
|
|
5
5
|
cwd?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mksquashfs.d.ts","sourceRoot":"","sources":["../../src/exec/mksquashfs.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"mksquashfs.d.ts","sourceRoot":"","sources":["../../src/exec/mksquashfs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,MAAM,EAAS,MAAM,QAAQ,CAAC;AACnD,OAAO,EAAE,KAAK,qBAAqB,EAAuB,MAAM,WAAW,CAAC;AAI5E,eAAO,MAAM,eAAe,EAAE,KAA2B,CAAC;AAY1D,eAAO,MAAM,aAAa,GACtB,SAAS;IACL,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAClB,GAAG,qBAAqB;;;GAO5B,CAAC;AAEF,eAAO,MAAM,OAAO,GAChB,SAAS;IACL,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAClB,GAAG,qBAAqB;;;GAY5B,CAAC;AAEF,eAAO,MAAM,OAAO,GAChB,UAAU,qBAAqB,KAChC,OAAO,CAAC,MAAM,GAAG,IAAI,CAoBvB,CAAC"}
|
package/dist/exec/mksquashfs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Range, parse } from "semver";
|
|
2
2
|
import { execaDockerFallback } from "./util.js";
|
|
3
3
|
const COMPRESSION = "lzo"; // make customizable? default is gzip
|
|
4
4
|
export const requiredVersion = new Range("^4.5.1");
|
|
@@ -32,7 +32,7 @@ export const version = async (options) => {
|
|
|
32
32
|
if (typeof stdout === "string") {
|
|
33
33
|
const regex = /(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?/gm;
|
|
34
34
|
const m = stdout.match(regex);
|
|
35
|
-
if (m
|
|
35
|
+
if (m?.[0]) {
|
|
36
36
|
return parse(m[0]);
|
|
37
37
|
}
|
|
38
38
|
}
|
package/dist/exec/rollups.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rollups.d.ts","sourceRoot":"","sources":["../../src/exec/rollups.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"rollups.d.ts","sourceRoot":"","sources":["../../src/exec/rollups.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAG1C,MAAM,MAAM,iBAAiB,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,IAAI,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,SAAS,GAAG,UAAU,CAAC;CACjC,CAAC;AAUF,KAAK,aAAa,GAAG;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,cAAc,GACvB,UAAU,aAAa,KACxB,OAAO,CAAC,iBAAiB,EAAE,CAuB7B,CAAC;AAEF,eAAO,MAAM,wBAAwB,GACjC,UAAU,aAAa,KACxB,OAAO,CAAC,iBAAiB,GAAG,SAAS,CASvC,CAAC;AAEF,eAAO,MAAM,qBAAqB,QAAa,OAAO,CAAC,OAAO,GAAG,SAAS,CAGzE,CAAC"}
|
package/dist/exec/util.d.ts
CHANGED
package/dist/exec/util.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../src/exec/util.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../src/exec/util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,OAAO,EAAS,MAAM,OAAO,CAAC;AACxD,OAAO,EAAE,KAAK,gBAAgB,EAAa,MAAM,oBAAoB,CAAC;AAGtE,MAAM,MAAM,qBAAqB,GAC3B;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,IAAI,CAAA;CAAE,GACpC;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC;AAE9C;;;;;;GAMG;AACH,MAAM,MAAM,0BAA0B,GAAG,OAAO,GAAG,qBAAqB,CAAC;AACzE,eAAO,MAAM,mBAAmB,GAC5B,SAAS,MAAM,EACf,MAAM,SAAS,MAAM,EAAE,EACvB,SAAS,0BAA0B;YAbvB,MAAM;kBAAgB,KAAK;GAmD1C,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,0BAA0B,GAAG,gBAAgB,GACrD,qBAAqB,CAAC;AAC1B,eAAO,MAAM,uBAAuB,GAChC,SAAS,MAAM,EACf,MAAM,SAAS,MAAM,EAAE,EACvB,SAAS,0BAA0B;;;;;CA6CtC,CAAC"}
|
package/dist/exec/util.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import os from "os";
|
|
1
|
+
import { ExecaError, execa } from "execa";
|
|
2
|
+
import { spawnSync } from "node:child_process";
|
|
3
|
+
import os from "node:os";
|
|
4
4
|
export const execaDockerFallback = async (command, args, options) => {
|
|
5
5
|
try {
|
|
6
6
|
if (options.forceDocker) {
|
|
@@ -29,9 +29,7 @@ export const execaDockerFallback = async (command, args, options) => {
|
|
|
29
29
|
];
|
|
30
30
|
return await execa("docker", ["run", ...dockerOpts, options.image, command, ...args], options);
|
|
31
31
|
}
|
|
32
|
-
|
|
33
|
-
console.error(`error executing '${command}'`, error);
|
|
34
|
-
}
|
|
32
|
+
console.error(`error executing '${command}'`, error);
|
|
35
33
|
}
|
|
36
34
|
throw error;
|
|
37
35
|
}
|
|
@@ -71,10 +69,8 @@ export const spawnSyncDockerFallback = (command, args, options) => {
|
|
|
71
69
|
}
|
|
72
70
|
return dockerResult;
|
|
73
71
|
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
throw result.error;
|
|
77
|
-
}
|
|
72
|
+
console.error(`error executing '${command}'`, result.error);
|
|
73
|
+
throw result.error;
|
|
78
74
|
}
|
|
79
75
|
return result;
|
|
80
76
|
};
|
package/dist/index.js
CHANGED
|
@@ -8,10 +8,13 @@ import { createCreateCommand } from "./commands/create.js";
|
|
|
8
8
|
import { createDeployCommand } from "./commands/deploy.js";
|
|
9
9
|
import { createDoctorCommand } from "./commands/doctor.js";
|
|
10
10
|
import { createHashCommand } from "./commands/hash.js";
|
|
11
|
-
import {
|
|
11
|
+
import { createLogsCommand } from "./commands/logs.js";
|
|
12
12
|
import { createRunCommand } from "./commands/run.js";
|
|
13
13
|
import { createSendCommand } from "./commands/send.js";
|
|
14
14
|
import { createShellCommand } from "./commands/shell.js";
|
|
15
|
+
import { createStartCommand } from "./commands/start.js";
|
|
16
|
+
import { createStatusCommand } from "./commands/status.js";
|
|
17
|
+
import { createStopCommand } from "./commands/stop.js";
|
|
15
18
|
// Use `createRequire` to import JSON in ESM
|
|
16
19
|
const require = createRequire(import.meta.url);
|
|
17
20
|
const pkg = require("../package.json");
|
|
@@ -32,13 +35,16 @@ const program = new Command()
|
|
|
32
35
|
.addCommand(createBuildCommand())
|
|
33
36
|
.addCommand(createCleanCommand())
|
|
34
37
|
.addCommand(createCreateCommand())
|
|
35
|
-
.addCommand(createDeployCommand()
|
|
38
|
+
.addCommand(createDeployCommand())
|
|
36
39
|
.addCommand(createDoctorCommand())
|
|
40
|
+
.addCommand(createLogsCommand())
|
|
37
41
|
.addCommand(createHashCommand())
|
|
38
|
-
.addCommand(createRollupsCommand())
|
|
39
42
|
.addCommand(createRunCommand(), { hidden: true })
|
|
40
43
|
.addCommand(createSendCommand())
|
|
41
|
-
.addCommand(createShellCommand())
|
|
44
|
+
.addCommand(createShellCommand())
|
|
45
|
+
.addCommand(createStartCommand())
|
|
46
|
+
.addCommand(createStatusCommand())
|
|
47
|
+
.addCommand(createStopCommand());
|
|
42
48
|
// Global error handling
|
|
43
49
|
process.on("uncaughtException", (err) => {
|
|
44
50
|
if (process.env.NODE_ENV === "development") {
|
package/dist/machine.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Config, ImageInfo } from "./config.js";
|
|
1
|
+
import type { Config, ImageInfo } from "./config.js";
|
|
2
2
|
export declare const bootMachine: (config: Config, info: ImageInfo | undefined, destination: string) => Promise<import("execa").Result<import("execa").Options & {
|
|
3
3
|
image?: string;
|
|
4
4
|
forceDocker?: false;
|
package/dist/machine.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"machine.d.ts","sourceRoot":"","sources":["../src/machine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAe,SAAS,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"machine.d.ts","sourceRoot":"","sources":["../src/machine.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAe,SAAS,EAAE,MAAM,aAAa,CAAC;AAoBlE,eAAO,MAAM,WAAW,GACpB,QAAQ,MAAM,EACd,MAAM,SAAS,GAAG,SAAS,EAC3B,aAAa,MAAM;;;GAwFtB,CAAC"}
|
package/dist/prompts.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Separator } from "@inquirer/core";
|
|
1
|
+
import type { Separator } from "@inquirer/core";
|
|
2
2
|
import input from "@inquirer/input";
|
|
3
3
|
import select from "@inquirer/select";
|
|
4
|
-
import { Context } from "@inquirer/type";
|
|
5
|
-
import { Address, Hex } from "viem";
|
|
4
|
+
import type { Context } from "@inquirer/type";
|
|
5
|
+
import { type Address, type Hex } from "viem";
|
|
6
6
|
type InputConfig = Parameters<typeof input>[0];
|
|
7
7
|
type SelectConfig<ValueType> = Parameters<typeof select<ValueType>>[0];
|
|
8
8
|
/**
|
package/dist/prompts.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../src/prompts.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../src/prompts.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,MAAM,iBAAiB,CAAC;AACpC,OAAO,MAAM,MAAM,kBAAkB,CAAC;AACtC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAE9C,OAAO,EACH,KAAK,OAAO,EACZ,KAAK,GAAG,EASX,MAAM,MAAM,CAAC;AAEd,KAAK,WAAW,GAAG,UAAU,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;AAC/C,KAAK,YAAY,CAAC,SAAS,IAAI,UAAU,CAAC,OAAO,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAEvE;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG,WAAW,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AACtE,eAAO,MAAM,YAAY,GACrB,QAAQ,mBAAmB,KAC5B,OAAO,CAAC,OAAO,CAMjB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG;IAAE,OAAO,CAAC,EAAE,GAAG,CAAA;CAAE,CAAC;AAC9D,eAAO,MAAM,QAAQ,GAAU,QAAQ,eAAe,KAAG,OAAO,CAAC,GAAG,CAMnE,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,WAAW,GAAG;IAC3C,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AACF,eAAO,MAAM,WAAW,GACpB,QAAQ,kBAAkB,KAC3B,OAAO,CAAC,MAAM,CAUhB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,UAAU,GACnB,QAAQ,WAAW,GAAG;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,KAC1C,OAAO,CAAC,GAAG,CA8Cb,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,cAAc,GACvB,QAAQ,WAAW,GAAG;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,KAC1C,OAAO,CAAC,KAAK,MAAM,EAAE,CA+DvB,CAAC;AAGF,MAAM,MAAM,MAAM,CAAC,SAAS,IAAI;IAC5B,KAAK,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC5B,IAAI,CAAC,EAAE,KAAK,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,gBAAgB,CAAC,SAAS,IAAI,YAAY,CAAC,SAAS,CAAC,GAAG;IAChE,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,CAAC;IACtD,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,SAAS,EAChC,QAAQ,gBAAgB,CAAC,SAAS,CAAC,GAAG;IAAE,eAAe,CAAC,EAAE,OAAO,CAAA;CAAE,EACnE,UAAU,OAAO,GAAG,SAAS,KAC9B,OAAO,CAAC,SAAS,CAsBnB,CAAC"}
|
package/dist/prompts.js
CHANGED
|
@@ -18,7 +18,7 @@ export const hexInput = async (config) => {
|
|
|
18
18
|
return value;
|
|
19
19
|
};
|
|
20
20
|
export const bigintInput = async (config) => {
|
|
21
|
-
const defaultValue = config.default
|
|
21
|
+
const defaultValue = config.default !== undefined
|
|
22
22
|
? formatUnits(config.default, config.decimals)
|
|
23
23
|
: undefined;
|
|
24
24
|
const value = await input({
|
package/dist/template.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { DownloadTemplateResult } from "giget";
|
|
2
|
-
export declare const download: (
|
|
1
|
+
import { type DownloadTemplateResult } from "giget";
|
|
2
|
+
export declare const download: (template: string, branch: string, out: string) => Promise<DownloadTemplateResult>;
|
|
3
3
|
//# sourceMappingURL=template.d.ts.map
|
package/dist/template.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../src/template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAoB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../src/template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,sBAAsB,EAAoB,MAAM,OAAO,CAAC;AAEtE,eAAO,MAAM,QAAQ,GACjB,UAAU,MAAM,EAChB,QAAQ,MAAM,EACd,KAAK,MAAM,KACZ,OAAO,CAAC,sBAAsB,CAehC,CAAC"}
|
package/dist/template.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { downloadTemplate } from "giget";
|
|
2
|
-
export const download = async (
|
|
2
|
+
export const download = async (template, branch, out) => {
|
|
3
3
|
const cartesiProvider = async (input) => {
|
|
4
4
|
return {
|
|
5
5
|
name: "cartesi",
|
|
6
|
-
subdir:
|
|
6
|
+
subdir: input,
|
|
7
7
|
url: "https://github.com/cartesi/application-templates",
|
|
8
8
|
tar: `https://codeload.github.com/cartesi/application-templates/tar.gz/refs/heads/${branch}`,
|
|
9
9
|
};
|
package/dist/wallet.d.ts
CHANGED
package/dist/wallet.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wallet.d.ts","sourceRoot":"","sources":["../src/wallet.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"wallet.d.ts","sourceRoot":"","sources":["../src/wallet.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAER,OAAO,EACP,KAAK,EACL,GAAG,EAEH,YAAY,EAEZ,YAAY,EACf,MAAM,MAAM,CAAC;AAsBd,MAAM,MAAM,sBAAsB,GAAG;IACjC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,UAAU,sBAAsB,KAAG,KAAK,EAgBvE,CAAC;AAEF,eAAO,MAAM,uBAAuB,gEAC6B,CAAC;AAElE,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,aAAa,CAAC;AA2CpD,MAAM,WAAW,qBAAqB;IAClC,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,GAAG,CAAC;CACpB;AAED,MAAM,MAAM,iBAAiB,GAAG,CAC5B,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,YAAY,KACzB,OAAO,CAAC,OAAO,CAAC,CAAC;AA+LtB,QAAA,MAAM,aAAa,GACf,SAAS,qBAAqB,KAC/B,OAAO,CAAC;IACP,KAAK,EAAE,KAAK,CAAC;IACb,YAAY,EAAE,YAAY,CAAC;IAC3B,YAAY,EAAE,YAAY,CAAC;CAC9B,CAuBA,CAAC;AAEF,eAAe,aAAa,CAAC"}
|