@norrix/cli 0.0.6 → 0.0.8
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/cli.js +44 -12
- package/dist/cli.js.map +1 -1
- package/dist/index.js +1 -0
- package/dist/lib/amplify-config.js +30 -0
- package/dist/lib/amplify-config.js.map +1 -1
- package/dist/lib/commands.d.ts +20 -10
- package/dist/lib/commands.js +585 -51
- package/dist/lib/commands.js.map +1 -1
- package/dist/lib/fingerprinting.d.ts +18 -0
- package/dist/lib/fingerprinting.js +241 -0
- package/dist/lib/fingerprinting.js.map +1 -0
- package/dist/lib/norrix-cli.js +1 -0
- package/package.json +5 -4
package/dist/cli.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Command } from 'commander';
|
|
|
3
3
|
import { readFileSync } from 'fs';
|
|
4
4
|
import { fileURLToPath } from 'url';
|
|
5
5
|
import path from 'path';
|
|
6
|
-
import { build, submit, update, buildStatus, submitStatus, updateStatus, signIn, signOut, uploadFile, currentUser, } from './lib/commands.js';
|
|
6
|
+
import { build, submit, update, buildStatus, submitStatus, updateStatus, signIn, signOut, uploadFile, currentUser, billingCheckout, billingPortal, printFingerprint, compareFingerprint, } from './lib/commands.js';
|
|
7
7
|
/**
|
|
8
8
|
* Norrix CLI
|
|
9
9
|
*
|
|
@@ -16,6 +16,7 @@ import { build, submit, update, buildStatus, submitStatus, updateStatus, signIn,
|
|
|
16
16
|
* This CLI can be used in development workflows, CI/CD, and local tooling.
|
|
17
17
|
*/
|
|
18
18
|
const program = new Command();
|
|
19
|
+
let isVerbose = false;
|
|
19
20
|
// Resolve version from this package's package.json at runtime (ESM-safe)
|
|
20
21
|
const __filename = fileURLToPath(import.meta.url);
|
|
21
22
|
const __dirname = path.dirname(__filename);
|
|
@@ -31,55 +32,86 @@ catch { }
|
|
|
31
32
|
program
|
|
32
33
|
.name('norrix')
|
|
33
34
|
.description('Norrix CLI - NativeScript build and deployment tool')
|
|
34
|
-
.version(pkgVersion)
|
|
35
|
+
.version(pkgVersion)
|
|
36
|
+
.option('--verbose', 'Enable verbose error output (stack traces)');
|
|
35
37
|
program
|
|
36
38
|
.command('build')
|
|
37
39
|
.description('Build your NativeScript app')
|
|
38
|
-
.
|
|
40
|
+
.argument('[platform]', 'Target platform (android or ios)')
|
|
41
|
+
.action((platform) => build(platform, isVerbose));
|
|
39
42
|
program
|
|
40
43
|
.command('build-status')
|
|
41
44
|
.description('Check the status of a build')
|
|
42
45
|
.argument('<buildId>', 'Build ID to check')
|
|
43
|
-
.action(buildStatus);
|
|
46
|
+
.action((buildId) => buildStatus(buildId, isVerbose));
|
|
44
47
|
program
|
|
45
48
|
.command('submit')
|
|
46
49
|
.description('Submit your app to app stores')
|
|
47
|
-
.
|
|
50
|
+
.argument('[platform]', 'Target platform (android or ios)')
|
|
51
|
+
.action((platform) => submit(platform, isVerbose));
|
|
48
52
|
program
|
|
49
53
|
.command('submit-status')
|
|
50
54
|
.description('Check the status of a submission')
|
|
51
55
|
.argument('<submitId>', 'Submission ID to check')
|
|
52
|
-
.action(submitStatus);
|
|
56
|
+
.action((submitId) => submitStatus(submitId, isVerbose));
|
|
53
57
|
program
|
|
54
58
|
.command('update')
|
|
55
59
|
.description('Publish over-the-air updates to deployed apps')
|
|
56
|
-
.
|
|
60
|
+
.argument('[platform]', 'Target platform (android or ios)')
|
|
61
|
+
.action((platform) => update(platform, isVerbose));
|
|
57
62
|
program
|
|
58
63
|
.command('update-status')
|
|
59
64
|
.description('Check the status of an update')
|
|
60
65
|
.argument('<updateId>', 'Update ID to check')
|
|
61
|
-
.action(updateStatus);
|
|
66
|
+
.action((updateId) => updateStatus(updateId, isVerbose));
|
|
67
|
+
const fingerprintCommand = program
|
|
68
|
+
.command('fingerprint')
|
|
69
|
+
.description('Fingerprint utilities for build/update compatibility checks');
|
|
70
|
+
fingerprintCommand
|
|
71
|
+
.argument('[platform]', 'Target platform (android, ios or visionos)')
|
|
72
|
+
.option('--app-id <appId>', 'Optional app id to include in the fingerprint')
|
|
73
|
+
.action((platform, options) => printFingerprint(platform, options?.appId, isVerbose));
|
|
74
|
+
fingerprintCommand
|
|
75
|
+
.command('compare')
|
|
76
|
+
.description('Compare fingerprints between a stored build and another build or local project')
|
|
77
|
+
.requiredOption('--from <buildId>', 'Source build id to compare from')
|
|
78
|
+
.option('--to <buildIdOrLocal>', 'Target build id or "local" (default: local project)')
|
|
79
|
+
.action((options) => compareFingerprint(options.from, options.to, isVerbose));
|
|
62
80
|
// Authentication commands
|
|
63
81
|
program
|
|
64
82
|
.command('sign-in')
|
|
65
83
|
.aliases(['login'])
|
|
66
84
|
.description('Authenticate with your Norrix account')
|
|
67
|
-
.action(signIn);
|
|
85
|
+
.action(() => signIn(isVerbose));
|
|
68
86
|
program
|
|
69
87
|
.command('sign-out')
|
|
70
88
|
.aliases(['logout'])
|
|
71
89
|
.description('Sign out of your Norrix account')
|
|
72
|
-
.action(signOut);
|
|
90
|
+
.action(() => signOut(isVerbose));
|
|
73
91
|
// Storage upload command
|
|
74
92
|
program
|
|
75
93
|
.command('upload')
|
|
76
94
|
.description('Upload a file to your Norrix storage bucket')
|
|
77
95
|
.argument('<filePath>', 'Path to the file to upload')
|
|
78
96
|
.option('-k, --key <key>', 'Custom S3 key (defaults to the file name)')
|
|
79
|
-
.action((filePath, options) => uploadFile(filePath, options));
|
|
97
|
+
.action((filePath, options) => uploadFile(filePath, options, isVerbose));
|
|
80
98
|
// Current user info
|
|
81
99
|
program
|
|
82
100
|
.command('whoami')
|
|
83
101
|
.description('Show the currently signed-in user')
|
|
84
|
-
.action(currentUser);
|
|
102
|
+
.action(() => currentUser(isVerbose));
|
|
103
|
+
// Billing commands
|
|
104
|
+
program
|
|
105
|
+
.command('billing-checkout')
|
|
106
|
+
.description('Open Stripe Checkout for the current organization')
|
|
107
|
+
.argument('[priceId]', 'Stripe Price ID')
|
|
108
|
+
.action((priceId) => billingCheckout(priceId, isVerbose));
|
|
109
|
+
program
|
|
110
|
+
.command('billing-portal')
|
|
111
|
+
.description('Open Stripe Billing Portal for the current organization')
|
|
112
|
+
.action(() => billingPortal(isVerbose));
|
|
85
113
|
program.parse();
|
|
114
|
+
// Capture verbose flag after parsing
|
|
115
|
+
const options = program.opts();
|
|
116
|
+
isVerbose = Boolean(options.verbose);
|
|
117
|
+
//# sourceMappingURL=cli.js.map
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EACL,KAAK,EACL,MAAM,EACN,MAAM,EACN,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,MAAM,EACN,OAAO,EACP,UAAU,EACV,WAAW,
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EACL,KAAK,EACL,MAAM,EACN,MAAM,EACN,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,MAAM,EACN,OAAO,EACP,UAAU,EACV,WAAW,EACX,eAAe,EACf,aAAa,EACb,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAE3B;;;;;;;;;;GAUG;AAEH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;AAC9B,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,yEAAyE;AACzE,MAAM,UAAU,GAA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AE,EAAE,CAAC,eAAe,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC;AAE5D,OAAO;KACJ,OAAO,CAAC,gBAAgB,CAAC;KACzB,WAAW,CAAC,yDAAyD,CAAC;KACtE,MAAM,CAAC,GAAG,EAAE,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC,CAAC;AAE1C,OAAO,CAAC,KAAK,EAAE,CAAC;AAEhB,qCAAqC;AACrC,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;AAC/B,SAAS,GAAG,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -4,6 +4,7 @@ import * as path from 'path';
|
|
|
4
4
|
import { fileURLToPath } from 'url';
|
|
5
5
|
import { cognitoUserPoolsTokenProvider } from 'aws-amplify/auth/cognito';
|
|
6
6
|
import os from 'os';
|
|
7
|
+
import crypto from 'crypto';
|
|
7
8
|
// Load environment variables
|
|
8
9
|
// 1. Load .env (if present)
|
|
9
10
|
dotenvConfig();
|
|
@@ -23,6 +24,32 @@ const packageRoot = path.resolve(__dirnameResolved, '..', '..');
|
|
|
23
24
|
}
|
|
24
25
|
});
|
|
25
26
|
import { Amplify } from 'aws-amplify';
|
|
27
|
+
// Ensure a Web Crypto–compatible `crypto` is available for Amplify when running
|
|
28
|
+
// in Node.js. Some Amplify internals expect `globalThis.crypto` to exist and
|
|
29
|
+
// will throw "Cannot resolve the `crypto` function from the environment"
|
|
30
|
+
// otherwise (which can happen on older Node versions or non-standard runtimes).
|
|
31
|
+
function ensureGlobalCrypto() {
|
|
32
|
+
const g = globalThis;
|
|
33
|
+
if (g.crypto) {
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
const nodeCrypto = crypto;
|
|
37
|
+
// Prefer Node's WebCrypto implementation when available
|
|
38
|
+
if (nodeCrypto.webcrypto) {
|
|
39
|
+
g.crypto = nodeCrypto.webcrypto;
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
// Very small fallback that only supports getRandomValues, which is sufficient
|
|
43
|
+
// for Amplify's random number needs in Node environments without WebCrypto.
|
|
44
|
+
if (typeof nodeCrypto.randomFillSync === 'function') {
|
|
45
|
+
g.crypto = {
|
|
46
|
+
getRandomValues(buffer) {
|
|
47
|
+
nodeCrypto.randomFillSync(buffer);
|
|
48
|
+
return buffer;
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
}
|
|
26
53
|
// Amplify configuration tailored for the Norrix CLI
|
|
27
54
|
// Values are read from environment variables so that the CLI can be used in multiple environments
|
|
28
55
|
// For local development, you can create a .env file or export these variables in your shell.
|
|
@@ -126,6 +153,8 @@ class FileKeyValueStorage {
|
|
|
126
153
|
// Instantiate the storage once so every command in the same process reuses it.
|
|
127
154
|
const persistentStorage = new FileKeyValueStorage();
|
|
128
155
|
export function configureAmplify() {
|
|
156
|
+
// Make sure Amplify can always find a `crypto` implementation in Node.
|
|
157
|
+
ensureGlobalCrypto();
|
|
129
158
|
// Configure is idempotent; calling it multiple times is safe
|
|
130
159
|
Amplify.configure({
|
|
131
160
|
...amplifyConfig,
|
|
@@ -137,3 +166,4 @@ export function configureAmplify() {
|
|
|
137
166
|
// so setting the storage afterwards guarantees our implementation sticks.
|
|
138
167
|
cognitoUserPoolsTokenProvider.setKeyValueStorage(persistentStorage);
|
|
139
168
|
}
|
|
169
|
+
//# sourceMappingURL=amplify-config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"amplify-config.js","sourceRoot":"","sources":["../../src/lib/amplify-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,QAAQ,CAAC;AAChD,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AAEpC,OAAO,EAAE,6BAA6B,EAAE,M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AAE,CAAC;IAErB,6DAA6D;IAC7D,OAAO,CAAC,SAAS,CAAC;QAChB,GAAG,aAAa;QAChB,mEAAmE;QACnE,OAAO,EAAE,iBAAiB;KAC3B,CAAC,CAAC;IAEH,0EAA0E;IAC1E,2EAA2E;IAC3E,0EAA0E;IAC1E,6BAA6B,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,CAAC;AACtE,CAAC"}
|
package/dist/lib/commands.d.ts
CHANGED
|
@@ -1,48 +1,58 @@
|
|
|
1
|
+
export declare function printFingerprint(cliPlatformArg?: string, appId?: string, verbose?: boolean): Promise<void>;
|
|
2
|
+
export declare function compareFingerprint(fromBuildId: string, toArg?: string, verbose?: boolean): Promise<void>;
|
|
1
3
|
/**
|
|
2
4
|
* Build command implementation
|
|
3
5
|
* Uploads project to S3 and triggers build via the Next.js API gateway -> WarpBuild
|
|
4
6
|
*/
|
|
5
|
-
export declare function build(): Promise<void>;
|
|
7
|
+
export declare function build(cliPlatformArg?: string, verbose?: boolean): Promise<void>;
|
|
6
8
|
/**
|
|
7
9
|
* Submit command implementation
|
|
8
10
|
* Submits the built app to app stores via the Next.js API gateway
|
|
9
11
|
*/
|
|
10
|
-
export declare function submit(): Promise<void>;
|
|
12
|
+
export declare function submit(cliPlatformArg?: string, verbose?: boolean): Promise<void>;
|
|
11
13
|
/**
|
|
12
14
|
* Update command implementation
|
|
13
15
|
* Publishes over-the-air updates to deployed apps via the Next.js API gateway
|
|
14
16
|
*/
|
|
15
|
-
export declare function update(): Promise<void>;
|
|
17
|
+
export declare function update(cliPlatformArg?: string, verbose?: boolean): Promise<void>;
|
|
16
18
|
/**
|
|
17
19
|
* Build Status command implementation
|
|
18
20
|
* Checks the status of a build via the Next.js API gateway
|
|
19
21
|
*/
|
|
20
|
-
export declare function buildStatus(buildId: string): Promise<void>;
|
|
22
|
+
export declare function buildStatus(buildId: string, verbose?: boolean): Promise<void>;
|
|
21
23
|
/**
|
|
22
24
|
* Submit Status command implementation
|
|
23
25
|
* Checks the status of a submission via the Next.js API gateway
|
|
24
26
|
*/
|
|
25
|
-
export declare function submitStatus(submitId: string): Promise<void>;
|
|
27
|
+
export declare function submitStatus(submitId: string, verbose?: boolean): Promise<void>;
|
|
26
28
|
/**
|
|
27
29
|
* Update Status command implementation
|
|
28
30
|
* Checks the status of an update via the Next.js API gateway
|
|
29
31
|
*/
|
|
30
|
-
export declare function updateStatus(updateId: string): Promise<void>;
|
|
32
|
+
export declare function updateStatus(updateId: string, verbose?: boolean): Promise<void>;
|
|
31
33
|
/**
|
|
32
34
|
* Sign-In command implementation (email / password via Cognito)
|
|
33
35
|
*/
|
|
34
|
-
export declare function signIn(): Promise<void>;
|
|
36
|
+
export declare function signIn(verbose?: boolean): Promise<void>;
|
|
35
37
|
/**
|
|
36
38
|
* Sign-Out command implementation
|
|
37
39
|
*/
|
|
38
|
-
export declare function signOut(): Promise<void>;
|
|
40
|
+
export declare function signOut(verbose?: boolean): Promise<void>;
|
|
39
41
|
/**
|
|
40
42
|
* Upload a file to S3 via Amplify Storage
|
|
41
43
|
*/
|
|
42
44
|
export declare function uploadFile(filePath: string, options: {
|
|
43
45
|
key?: string;
|
|
44
|
-
}): Promise<void>;
|
|
46
|
+
}, verbose?: boolean): Promise<void>;
|
|
45
47
|
/**
|
|
46
48
|
* Current User command implementation
|
|
47
49
|
*/
|
|
48
|
-
export declare function currentUser(): Promise<void>;
|
|
50
|
+
export declare function currentUser(verbose?: boolean): Promise<void>;
|
|
51
|
+
/**
|
|
52
|
+
* Open billing checkout for the current organization
|
|
53
|
+
*/
|
|
54
|
+
export declare function billingCheckout(priceId?: string, verbose?: boolean): Promise<void>;
|
|
55
|
+
/**
|
|
56
|
+
* Open Stripe billing portal for the current organization
|
|
57
|
+
*/
|
|
58
|
+
export declare function billingPortal(verbose?: boolean): Promise<void>;
|