@bonginkan/maria 3.0.2 → 3.0.4

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.cjs CHANGED
@@ -33498,11 +33498,31 @@ Vim keybindings disabled.`;
33498
33498
  try {
33499
33499
  const fs20 = await import('fs/promises');
33500
33500
  const _path = await import('path');
33501
- const _packagePath = _path.resolve(process.cwd(), "package.json");
33502
- const _packageData = JSON.parse(await fs20.readFile(_packagePath, "utf8"));
33501
+ const possiblePaths = [
33502
+ _path.resolve(__dirname, "../package.json"),
33503
+ // From dist directory
33504
+ _path.resolve(__dirname, "../../package.json"),
33505
+ // From nested dist
33506
+ _path.resolve(process.cwd(), "package.json"),
33507
+ // Current directory
33508
+ "/opt/homebrew/lib/node_modules/@bonginkan/maria/package.json"
33509
+ // Global npm
33510
+ ];
33511
+ let _packageData = null;
33512
+ for (const packagePath of possiblePaths) {
33513
+ try {
33514
+ const data2 = await fs20.readFile(packagePath, "utf8");
33515
+ _packageData = JSON.parse(data2);
33516
+ if (_packageData["version"]) {
33517
+ break;
33518
+ }
33519
+ } catch {
33520
+ }
33521
+ }
33522
+ const version2 = _packageData?.["version"] || "3.0.3";
33503
33523
  return {
33504
33524
  success: true,
33505
- message: `MARIA CODE CLI v${_packageData["version"] || "1.0.0"}
33525
+ message: `MARIA CODE CLI v${version2}
33506
33526
 
33507
33527
  AI-Powered Development Platform
33508
33528
  \xA9 2025 Bonginkan Inc.
@@ -33512,7 +33532,7 @@ TypeScript Monorepo`
33512
33532
  } catch {
33513
33533
  return {
33514
33534
  success: true,
33515
- message: `MARIA CODE CLI v1.0.0
33535
+ message: `MARIA CODE CLI v3.0.3
33516
33536
 
33517
33537
  AI-Powered Development Platform
33518
33538
  \xA9 2025 Bonginkan Inc.