@base44-preview/cli 0.0.22-pr.139.f106d0c → 0.0.22-pr.141.bcadd58
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 +3 -22
- package/bin/dev.js +7 -0
- package/bin/run.js +2 -1
- package/dist/index.js +5 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -57,30 +57,11 @@ The CLI will guide you through project setup. For step-by-step tutorials, see th
|
|
|
57
57
|
|
|
58
58
|
<!--| [`eject`](https://docs.base44.com/developers/references/cli/commands/eject) | Create a Base44 backend project from an existing Base44 app | -->
|
|
59
59
|
|
|
60
|
-
## AI
|
|
60
|
+
## AI agent skills
|
|
61
61
|
|
|
62
|
-
When creating a project,
|
|
62
|
+
When creating a project, [base44/skills](https://github.com/base44/skills) are automatically installed. These help AI agents understand how to work with Base44 projects.
|
|
63
63
|
|
|
64
|
-
|
|
65
|
-
◆ Add AI agent skills? (Select agents to configure)
|
|
66
|
-
│ ◼ Cursor
|
|
67
|
-
│ ◼ Claude Code
|
|
68
|
-
└
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
This installs [base44/skills](https://github.com/base44/skills) which helps AI agents understand how to work with Base44 projects.
|
|
72
|
-
|
|
73
|
-
**Non-interactive mode:**
|
|
74
|
-
|
|
75
|
-
```bash
|
|
76
|
-
# Install skills for all supported agents
|
|
77
|
-
base44 create --name my-app --path ./my-app --skills
|
|
78
|
-
|
|
79
|
-
# Skip skills installation
|
|
80
|
-
base44 create --name my-app --path ./my-app
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
**Manual installation:**
|
|
64
|
+
If you need to install skills manually, use the following command:
|
|
84
65
|
|
|
85
66
|
```bash
|
|
86
67
|
npx add-skill base44/skills
|
package/bin/dev.js
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env tsx
|
|
2
|
+
|
|
3
|
+
// Disable Clack spinners and animations in non-interactive environments.
|
|
4
|
+
// Clack only checks the CI env var, so we set it when stdin/stdout aren't TTYs.
|
|
5
|
+
if (!process.stdin.isTTY || !process.stdout.isTTY) {
|
|
6
|
+
process.env.CI = 'true';
|
|
7
|
+
}
|
|
8
|
+
|
|
2
9
|
import { program, CLIExitError } from "../src/cli/index.ts";
|
|
3
10
|
|
|
4
11
|
try {
|
package/bin/run.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
//
|
|
3
|
+
// Disable Clack spinners and animations in non-interactive environments.
|
|
4
|
+
// Clack only checks the CI env var, so we set it when stdin/stdout aren't TTYs.
|
|
4
5
|
if (!process.stdin.isTTY || !process.stdout.isTTY) {
|
|
5
6
|
process.env.CI = 'true';
|
|
6
7
|
}
|
package/dist/index.js
CHANGED
|
@@ -31410,6 +31410,7 @@ async function runCommand(commandFn, options) {
|
|
|
31410
31410
|
const { outroMessage } = await commandFn();
|
|
31411
31411
|
Se(outroMessage || "");
|
|
31412
31412
|
} catch (e$1) {
|
|
31413
|
+
if (e$1 instanceof CLIExitError) throw e$1;
|
|
31413
31414
|
if (e$1 instanceof Error) M.error(e$1.stack ?? e$1.message);
|
|
31414
31415
|
else M.error(String(e$1));
|
|
31415
31416
|
throw new CLIExitError(1);
|
|
@@ -31474,11 +31475,11 @@ async function runTask(startMessage, operation, options) {
|
|
|
31474
31475
|
//#region src/cli/utils/prompts.ts
|
|
31475
31476
|
/**
|
|
31476
31477
|
* Standard onCancel handler for prompt groups.
|
|
31477
|
-
*
|
|
31478
|
+
g * Throws CLIExitError(0) for graceful exit when the user cancels.
|
|
31478
31479
|
*/
|
|
31479
31480
|
const onPromptCancel = () => {
|
|
31480
31481
|
xe("Operation cancelled.");
|
|
31481
|
-
|
|
31482
|
+
throw new CLIExitError(0);
|
|
31482
31483
|
};
|
|
31483
31484
|
|
|
31484
31485
|
//#endregion
|
|
@@ -39105,7 +39106,7 @@ async function promptForLinkAction() {
|
|
|
39105
39106
|
});
|
|
39106
39107
|
if (pD(action)) {
|
|
39107
39108
|
xe("Operation cancelled.");
|
|
39108
|
-
|
|
39109
|
+
throw new CLIExitError(0);
|
|
39109
39110
|
}
|
|
39110
39111
|
return action;
|
|
39111
39112
|
}
|
|
@@ -39140,7 +39141,7 @@ async function promptForExistingProject(linkableProjects) {
|
|
|
39140
39141
|
});
|
|
39141
39142
|
if (pD(selectedProject)) {
|
|
39142
39143
|
xe("Operation cancelled.");
|
|
39143
|
-
|
|
39144
|
+
throw new CLIExitError(0);
|
|
39144
39145
|
}
|
|
39145
39146
|
return selectedProject;
|
|
39146
39147
|
}
|