@whisperr/wizard 0.1.7 → 0.1.8

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.
Files changed (2) hide show
  1. package/dist/index.js +16 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -988,7 +988,7 @@ in the code. You will NOT find everything \u2014 some events live server-side or
988
988
  aren't in this codebase at all. That is expected and fine. Get what is here, get
989
989
  it right, report the rest. Know exactly what you're doing; never hunt blindly.
990
990
 
991
- You are billed per step and the user is watching. Work FAST and DECISIVELY.
991
+ Every step costs time and the user is watching. Work FAST and DECISIVELY.
992
992
 
993
993
  EFFICIENCY \u2014 non-negotiable:
994
994
  - Use Grep and Glob to find code. Do NOT read whole files; read the smallest
@@ -1019,8 +1019,16 @@ CORRECTNESS:
1019
1019
  - Use the EXACT snake_case event names given. Never invent or rename events.
1020
1020
  - Only place an event where you're confident the user action truly happens.
1021
1021
 
1022
- End every task with a short summary: what you changed, which events you wired
1023
- (and the properties you attached), and the follow-ups you intentionally left.
1022
+ FINAL SUMMARY (this is shown verbatim to a non-technical customer in a
1023
+ dashboard \u2014 write for a human, not a changelog):
1024
+ - Plain prose and simple short lines ONLY. Do NOT use Markdown: no #/##
1025
+ headings, no **bold**, no backticks, no code fences, no tables, no "---".
1026
+ - Keep it tight: 3\u20136 short sentences or dash-prefixed lines. Lead with what now
1027
+ works ("Installed the SDK and wired identify() on login."). Then one line per
1028
+ group of events wired (you don't need to list all 28 individually \u2014 group
1029
+ them, e.g. "Wired the 6 subscription + signup events in your auth and billing
1030
+ controllers."). End with what you deliberately left as follow-ups and why.
1031
+ - Mention concrete file names in prose if helpful, but no diffs, no snippets.
1024
1032
  `.trim();
1025
1033
  function renderIdentifyBrief(m) {
1026
1034
  const lines = [];
@@ -1321,7 +1329,9 @@ async function scanWiredEvents(repoPath, files, eventTypes) {
1321
1329
  const wired = /* @__PURE__ */ new Map();
1322
1330
  const patterns = eventTypes.map((e) => ({
1323
1331
  eventType: e,
1324
- re: new RegExp(`track\\s*\\(\\s*['"\`]${escapeRegExp(e)}['"\`]`)
1332
+ re: new RegExp(
1333
+ `\\btrack\\s*\\(\\s*[\\s\\S]{0,160}?['"\`]${escapeRegExp(e)}['"\`]`
1334
+ )
1325
1335
  }));
1326
1336
  for (const file of files) {
1327
1337
  let content = "";
@@ -1565,7 +1575,7 @@ Flutter is live today; ${theme.bright(
1565
1575
  });
1566
1576
  p.log.info(
1567
1577
  theme.muted(
1568
- `${wiredMap.size}/${manifest.events.length} events wired \xB7 ${files.length} file${files.length === 1 ? "" : "s"} changed \xB7 ~$${outcome.costUsd.toFixed(2)} \xB7 ${Math.round(outcome.durationMs / 1e3)}s`
1578
+ `${wiredMap.size}/${manifest.events.length} events wired \xB7 ${files.length} file${files.length === 1 ? "" : "s"} changed \xB7 ${Math.round(outcome.durationMs / 1e3)}s`
1569
1579
  )
1570
1580
  );
1571
1581
  if (!config.offline) {
@@ -1761,7 +1771,7 @@ async function main() {
1761
1771
  return;
1762
1772
  }
1763
1773
  if ("version" in parsed) {
1764
- console.log("0.1.7");
1774
+ console.log("0.1.8");
1765
1775
  return;
1766
1776
  }
1767
1777
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whisperr/wizard",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Whisperr Wizard — one command to integrate the Whisperr SDK into your app. Authenticates with your onboarded account and uses an AI coding agent to wire up identify() and your business events automatically.",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,