@mushi-mushi/cli 0.18.0 → 0.18.1

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/init.js CHANGED
@@ -5,10 +5,10 @@ import {
5
5
  envVarsToWrite,
6
6
  installCommand,
7
7
  readPackageJson
8
- } from "./chunk-S4WQHEGH.js";
8
+ } from "./chunk-7Q44KWGN.js";
9
9
  import {
10
10
  MUSHI_CLI_VERSION
11
- } from "./chunk-ZB6ITDCQ.js";
11
+ } from "./chunk-JJVWMYSD.js";
12
12
 
13
13
  // src/init.ts
14
14
  import * as p from "@clack/prompts";
@@ -289,7 +289,7 @@ function getFrameworkFromPkg(pkg) {
289
289
  // src/init.ts
290
290
  var ENV_FILES = [".env.local", ".env"];
291
291
  var PROJECT_ID_PATTERN = /^(?:proj_[A-Za-z0-9_-]{10,}|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$/i;
292
- var API_KEY_PATTERN = /^mushi_[A-Za-z0-9_-]{10,}$/;
292
+ var API_KEY_PATTERN = /^(mushi_|mush_pk_)[A-Za-z0-9_-]{10,}$/;
293
293
  async function runInit(options = {}) {
294
294
  const cwd = options.cwd ?? process.cwd();
295
295
  ensureInteractiveOrBailOut(options);
@@ -501,8 +501,8 @@ function persistCliConfig(apiKey, projectId, endpoint) {
501
501
  const existing = loadConfig();
502
502
  saveConfig({ ...existing, apiKey, projectId, endpoint });
503
503
  }
504
- function printNextSteps(framework, apiKey, projectId, enableRewards = false) {
505
- p.note(framework.snippet(apiKey, projectId), "Add this to your app:");
504
+ function printNextSteps(framework, _apiKey, _projectId, enableRewards = false) {
505
+ p.note(framework.snippet(), "Add this to your app:");
506
506
  if (enableRewards) {
507
507
  const badgeSnippet = framework.id === "react" ? `// Add to your user menu or profile UI:
508
508
  import { MushiRewardsBadge } from '@mushi-mushi/react';
package/dist/version.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MUSHI_CLI_VERSION
3
- } from "./chunk-ZB6ITDCQ.js";
3
+ } from "./chunk-JJVWMYSD.js";
4
4
  export {
5
5
  MUSHI_CLI_VERSION
6
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mushi-mushi/cli",
3
- "version": "0.18.0",
3
+ "version": "0.18.1",
4
4
  "license": "MIT",
5
5
  "description": "CLI for Mushi Mushi — `mushi init` wizard installs the right SDK for your framework, plus report triage and pipeline health commands",
6
6
  "bin": {
@@ -1,6 +0,0 @@
1
- // src/version.ts
2
- var MUSHI_CLI_VERSION = true ? "0.18.0" : "0.0.0-dev";
3
-
4
- export {
5
- MUSHI_CLI_VERSION
6
- };