pai-zero 0.11.1 → 0.11.2

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/bin/pai.js CHANGED
@@ -180,6 +180,24 @@ function printBanner() {
180
180
  console.log(c2.dim(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"));
181
181
  console.log("");
182
182
  }
183
+ function printWelcomeBanner() {
184
+ const c2 = colors;
185
+ const art = [
186
+ " __ __ _ ____ _ ___ _ ",
187
+ " \\ \\ / /__| | ___ ___ _ __ ___ ___ | _ \\ / \\ |_ _|| |",
188
+ " \\ \\ /\\ / / _ \\ |/ __/ _ \\| '_ ` _ \\ / _ \\ | |_) |/ _ \\ | | | |",
189
+ " \\ V V / __/ | (_| (_) | | | | | | __/ | __// ___ \\ | | |_|",
190
+ " \\_/\\_/ \\___|_|\\___\\___/|_| |_| |_|\\___| |_| /_/ \\_|___|(_)"
191
+ ];
192
+ console.log("");
193
+ for (const line of art) {
194
+ console.log(c2.accent(line));
195
+ }
196
+ console.log("");
197
+ console.log(c2.dim(" Plugin AI for ProjectZero"));
198
+ console.log(c2.dim(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"));
199
+ console.log("");
200
+ }
183
201
  var init_banner = __esm({
184
202
  "src/ui/banner.ts"() {
185
203
  "use strict";
@@ -639,12 +657,17 @@ async function interactiveInterview(analysis, _cwd, projectName) {
639
657
  }
640
658
  let mcp;
641
659
  console.log("");
642
- const { mcpDev } = await inquirer.prompt([{
643
- type: "confirm",
644
- name: "mcpDev",
645
- message: "MCP(Model Context Protocol) \uC11C\uBC84\uB97C \uAC1C\uBC1C\uD558\uC2DC\uB098\uC694?",
646
- default: false
660
+ const { mcpNeed } = await inquirer.prompt([{
661
+ type: "list",
662
+ name: "mcpNeed",
663
+ message: "MCP(Model Context Protocol) \uC11C\uBC84 \uAE30\uB2A5\uC774 \uD544\uC694\uD558\uC2E0\uAC00\uC694?",
664
+ choices: [
665
+ { name: `\uD544\uC694\uD558\uB2E4 ${colors.dim("\u2500 AI\uAC00 \uD638\uCD9C\uD560 \uCEE4\uC2A4\uD140 \uB3C4\uAD6C/\uB9AC\uC18C\uC2A4/\uD504\uB86C\uD504\uD2B8 \uC81C\uACF5")}`, value: "yes" },
666
+ { name: "\uD544\uC694\uD558\uC9C0 \uC54A\uB2E4", value: "no" }
667
+ ],
668
+ default: "yes"
647
669
  }]);
670
+ const mcpDev = mcpNeed === "yes";
648
671
  if (mcpDev) {
649
672
  console.log("");
650
673
  const hasSupabase = extraTools.includes("supabase");
@@ -4480,7 +4503,7 @@ async function envSetupCommand(cwd) {
4480
4503
  type: "confirm",
4481
4504
  name: "promote",
4482
4505
  message: `${upgradeTarget} \uC218\uC900\uC73C\uB85C \uC2B9\uACA9\uD558\uC2DC\uACA0\uC5B4\uC694?`,
4483
- default: false
4506
+ default: true
4484
4507
  }]);
4485
4508
  if (promote) {
4486
4509
  promotedMode = upgradeTarget;
@@ -4604,7 +4627,7 @@ __export(init_cmd_exports, {
4604
4627
  import { join as join11, basename as basename2 } from "path";
4605
4628
  import fs15 from "fs-extra";
4606
4629
  async function initCommand(cwd, nameArg) {
4607
- printBanner();
4630
+ printWelcomeBanner();
4608
4631
  const { isWindows: isWindows2, diagnoseWindowsEnv: diagnoseWindowsEnv2 } = await Promise.resolve().then(() => (init_platform(), platform_exports));
4609
4632
  if (isWindows2) {
4610
4633
  const { issues, warnings } = diagnoseWindowsEnv2();
@@ -4619,7 +4642,7 @@ async function initCommand(cwd, nameArg) {
4619
4642
  type: "confirm",
4620
4643
  name: "proceed",
4621
4644
  message: "\uBB38\uC81C\uAC00 \uC788\uC9C0\uB9CC \uACC4\uC18D \uC9C4\uD589\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?",
4622
- default: false
4645
+ default: true
4623
4646
  }]);
4624
4647
  if (!proceed) return;
4625
4648
  }
@@ -4721,16 +4744,7 @@ async function initCommand(cwd, nameArg) {
4721
4744
  }
4722
4745
  console.log("");
4723
4746
  warn(`${projectName}/ \uD3F4\uB354\uAC00 \uC774\uBBF8 \uC874\uC7AC\uD569\uB2C8\uB2E4.`);
4724
- const { useExisting } = await inquirer.prompt([{
4725
- type: "confirm",
4726
- name: "useExisting",
4727
- message: "\uC774 \uD3F4\uB354\uC5D0 PAI\uB97C \uC124\uCE58\uD560\uAE4C\uC694?",
4728
- default: true
4729
- }]);
4730
- if (!useExisting) {
4731
- hint("\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694.");
4732
- return;
4733
- }
4747
+ hint("\uC774 \uD3F4\uB354\uC5D0 PAI\uB97C \uC124\uCE58\uD569\uB2C8\uB2E4.");
4734
4748
  } else {
4735
4749
  await fs15.ensureDir(projectDir);
4736
4750
  success(`${projectName}/ \uD3F4\uB354 \uC0DD\uC131`);