@base44-preview/cli 0.0.1-pr.18.d6d2f8e → 0.0.1-pr.19.f86f4a6
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/index.js +4 -5
- package/package.json +8 -2
package/dist/cli/index.js
CHANGED
|
@@ -27,14 +27,12 @@ const DeviceCodeResponseSchema = z.object({
|
|
|
27
27
|
device_code: z.string().min(1, "Device code cannot be empty"),
|
|
28
28
|
user_code: z.string().min(1, "User code cannot be empty"),
|
|
29
29
|
verification_uri: z.url("Invalid verification URL"),
|
|
30
|
-
verification_uri_complete: z.url("Invalid complete verification URL"),
|
|
31
30
|
expires_in: z.number().int().positive("Expires in must be a positive integer"),
|
|
32
31
|
interval: z.number().int().positive("Interval in must be a positive integer")
|
|
33
32
|
}).transform((data) => ({
|
|
34
33
|
deviceCode: data.device_code,
|
|
35
34
|
userCode: data.user_code,
|
|
36
35
|
verificationUri: data.verification_uri,
|
|
37
|
-
verificationUriComplete: data.verification_uri_complete,
|
|
38
36
|
expiresIn: data.expires_in,
|
|
39
37
|
interval: data.interval
|
|
40
38
|
}));
|
|
@@ -740,13 +738,13 @@ async function generateAndDisplayDeviceCode() {
|
|
|
740
738
|
successMessage: "Device code generated",
|
|
741
739
|
errorMessage: "Failed to generate device code"
|
|
742
740
|
});
|
|
743
|
-
log.info(`
|
|
741
|
+
log.info(`Verification code: ${chalk.bold(deviceCodeResponse.userCode)}\nPlease confirm this code at: ${deviceCodeResponse.verificationUri}`);
|
|
744
742
|
return deviceCodeResponse;
|
|
745
743
|
}
|
|
746
744
|
async function waitForAuthentication(deviceCode, expiresIn, interval) {
|
|
747
745
|
let tokenResponse;
|
|
748
746
|
try {
|
|
749
|
-
await runTask("Waiting for
|
|
747
|
+
await runTask("Waiting for authentication...", async () => {
|
|
750
748
|
await pWaitFor(async () => {
|
|
751
749
|
const result = await getTokenFromDeviceCode(deviceCode);
|
|
752
750
|
if (result !== null) {
|
|
@@ -834,7 +832,8 @@ async function pushEntitiesAction() {
|
|
|
834
832
|
log.warn("No entities found in project");
|
|
835
833
|
return;
|
|
836
834
|
}
|
|
837
|
-
|
|
835
|
+
const entityNames = entities.map((e) => e.name).join(", ");
|
|
836
|
+
log.info(`Found ${entities.length} entities to push: ${entityNames}`);
|
|
838
837
|
const result = await runTask("Pushing entities to Base44", async () => {
|
|
839
838
|
return await pushEntities(entities);
|
|
840
839
|
}, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@base44-preview/cli",
|
|
3
|
-
"version": "0.0.1-pr.
|
|
3
|
+
"version": "0.0.1-pr.19.f86f4a6",
|
|
4
4
|
"description": "Base44 CLI - Unified interface for managing Base44 applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/cli/index.js",
|
|
@@ -18,8 +18,9 @@
|
|
|
18
18
|
"start": "node dist/cli/index.js",
|
|
19
19
|
"clean": "rm -rf dist",
|
|
20
20
|
"lint": "eslint src",
|
|
21
|
+
"pretest": "npm run build",
|
|
21
22
|
"test": "vitest run",
|
|
22
|
-
"test:watch": "vitest"
|
|
23
|
+
"test:watch": "npm run build && vitest"
|
|
23
24
|
},
|
|
24
25
|
"keywords": [
|
|
25
26
|
"base44",
|
|
@@ -50,11 +51,16 @@
|
|
|
50
51
|
"@types/ejs": "^3.1.5",
|
|
51
52
|
"@types/lodash.kebabcase": "^4.1.9",
|
|
52
53
|
"@types/node": "^22.10.5",
|
|
54
|
+
"@types/polka": "^0.5.8",
|
|
53
55
|
"@typescript-eslint/eslint-plugin": "^8.51.0",
|
|
54
56
|
"@typescript-eslint/parser": "^8.51.0",
|
|
55
57
|
"eslint": "^9.39.2",
|
|
56
58
|
"eslint-plugin-import": "^2.32.0",
|
|
57
59
|
"eslint-plugin-unicorn": "^62.0.0",
|
|
60
|
+
"execa": "^9.6.1",
|
|
61
|
+
"polka": "^0.5.2",
|
|
62
|
+
"strip-ansi": "^7.1.2",
|
|
63
|
+
"tmp-promise": "^3.0.3",
|
|
58
64
|
"tsdown": "^0.12.4",
|
|
59
65
|
"tsx": "^4.19.2",
|
|
60
66
|
"typescript": "^5.7.2",
|