create-heresay 0.2.7 → 0.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-heresay",
3
- "version": "0.2.7",
3
+ "version": "0.2.8",
4
4
  "description": "Set up your own Heresay: in-app feedback that every report gets a hearing. Creates a Firebase project in your Google account and deploys the dashboard, API and SDK to it.",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/release/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.7
1
+ 0.2.8
@@ -1,3 +1,3 @@
1
1
  /** The Heresay release. Bumped by the release script; the CLI and /v1/health report it. */
2
- export const VERSION = '0.2.7';
2
+ export const VERSION = '0.2.8';
3
3
  //# sourceMappingURL=version.js.map
@@ -512,6 +512,8 @@
512
512
  '',
513
513
  ' npx -y heresay@latest connect --url ' + location.origin + ' --token ' + token + ' --yes',
514
514
  '',
515
+ ' Then commit the files it added (.mcp.json, .claude/skills/heresay/, AGENTS.md, CLAUDE.md) in their own commit, so every checkout and worktree of this repo has the Heresay skill and MCP server. Commit nothing else with them.',
516
+ '',
515
517
  '2. Print the install steps for this app and follow them. They include the app\'s key and exactly where the code goes' + (apple ? ' (a Swift package and one line of setup)' : ', for any framework') + '. Follow every required step, including telling the people who use the app that Heresay is there: call introduce() once the main screen appears, so it isn\'t hidden' + (apple ? ' under a menu' : ' in a corner') + '.',
516
518
  '',
517
519
  ' npx -y heresay@latest install ' + p.id,
@@ -520,7 +522,7 @@
520
522
  '',
521
523
  ' npx -y heresay@latest check ' + p.id,
522
524
  '',
523
- ' You are done when it prints "installed": true and an empty "todo" list. If not, do what it says and run it again.',
525
+ ' You are done when it prints "installed": true and an empty "todo" list. If not, do what it says and run it again. Commit the install as its own change.',
524
526
  '',
525
527
  'Change nothing else in the app.',
526
528
  ].join('\n');
@@ -0,0 +1,24 @@
1
+ {
2
+ "about": "Features added to Heresay since apps were first installed. An agent in a connected repo checks these with whats_new, tells the person what's new, and asks before adding any. `detect` is what the code contains once a feature is in; `platforms` limits it to those apps; `sign_in` limits it to apps that answered that.",
3
+ "changes": [
4
+ {
5
+ "id": "introduce",
6
+ "since": "0.2.7",
7
+ "title": "Tell people Heresay is there",
8
+ "summary": "A one-time introduction, so the people using the app know they can report things. On macOS it names Help › Report a Problem… (⌥⌘R), on iOS the Report button, on the web a bubble over the button. Shown once per device.",
9
+ "platforms": ["web", "ios", "macos"],
10
+ "detect": ["introduce(", "data-intro"],
11
+ "how": { "web": "guide install-web, step 4", "ios": "guide install-apple, step 5", "macos": "guide install-apple, step 5" }
12
+ },
13
+ {
14
+ "id": "identify-email",
15
+ "since": "0.2.6",
16
+ "title": "Signed-in people are never asked who they are",
17
+ "summary": "When the app tells Heresay who is signed in (id, name, email), the report form stops asking for a name and email, and the team can reply to them.",
18
+ "platforms": ["web", "ios", "macos"],
19
+ "sign_in": "yes",
20
+ "detect": ["identify("],
21
+ "how": { "web": "guide install-web, step 3", "ios": "guide install-apple, step 4", "macos": "guide install-apple, step 4" }
22
+ }
23
+ ]
24
+ }
@@ -1,11 +1,12 @@
1
1
  {
2
- "skill_version": 1,
2
+ "skill_version": 3,
3
3
  "topics": {
4
4
  "start": "What Heresay is, the rules, and which topic to read next",
5
5
  "install-web": "Add the Heresay web SDK to an app, for any framework, and prove it works",
6
6
  "install-apple": "Add the Heresay Swift package to an iOS or macOS app",
7
7
  "fix-brief": "Fix an accepted report: find, claim, fix, hand off, mark fixed",
8
8
  "write-note": "Write the note the reporter reads when a report is fixed",
9
- "uninstall": "Remove Heresay from an app, and disconnect the repo"
9
+ "uninstall": "Remove Heresay from an app, and disconnect the repo",
10
+ "whats-new": "Heresay features this app doesn't use yet: tell the person, and ask before adding any"
10
11
  }
11
12
  }
@@ -14,16 +14,26 @@ sees the outcome in the app, including the note you write when you mark it fixed
14
14
  3. **Claim before you start** (`claim_brief`), so another agent doesn't do the same work.
15
15
  4. **The fix note is for the reporter**, not for developers. See `write-note`.
16
16
  5. **Wrong repo?** `handoff` it to the repo where the fix belongs, with what you learned.
17
- 6. **An install tells people it exists.** Call `introduce()` once the main screen appears, so
17
+ 6. **Heresay's agent files are committed.** `.mcp.json`, `.claude/skills/heresay/`, `AGENTS.md`
18
+ and `CLAUDE.md` only reach new checkouts and worktrees if they're in git. Commit them on their
19
+ own; `check_install` lists them in `todo` until you do.
20
+ 7. **An install tells people it exists.** Call `introduce()` once the main screen appears, so
18
21
  the people using the app learn there's a way to report things. On macOS it lives under Help,
19
22
  where nobody looks unprompted. `check_install` lists anything still owed in `todo`; the
20
23
  install isn't done until that list is empty.
21
24
 
25
+ ## Before any task: what's new
26
+
27
+ Call `whats_new`. If it lists Heresay features this app doesn't use yet, tell the person what
28
+ each does in a sentence and **ask before adding any**. See `whats-new`. Never add one without a
29
+ yes; on a no, `skip_update` so nobody asks again.
30
+
22
31
  ## Which topic next
23
32
 
24
33
  - Adding Heresay to an app: `install-web` for web apps, `install-apple` for iOS and macOS.
25
34
  - Fixing reports: `fix-brief`, then `write-note`.
26
35
  - Removing Heresay from an app: `uninstall`.
36
+ - New features for an app that already has Heresay: `whats-new`.
27
37
 
28
38
  ## Tools
29
39
 
@@ -0,0 +1,23 @@
1
+ # What's new in Heresay
2
+
3
+ Heresay gains features after an app is installed. When you work on anything Heresay in a
4
+ connected repo, check whether this app is missing any, and **ask the person before adding them**.
5
+
6
+ ## Every Heresay task starts with this
7
+
8
+ 1. Call `whats_new` (or run `npx heresay whats-new`). It compares this Heresay's feature list with
9
+ this repo's code and returns only the features this app doesn't have and nobody skipped.
10
+ 2. If it returns nothing, carry on with the task. Don't mention it.
11
+ 3. If it returns updates, tell the person in one short sentence each, in their words, not ours,
12
+ for example: "Heresay can now show people a one-time note that the Report button exists
13
+ (on the Mac it's otherwise hidden under Help). Want me to add it?" Then ask. One question for
14
+ all of them is fine.
15
+ 4. **Never add a feature without a yes.** A new feature changes what the app's users see.
16
+ - Yes: follow the `how` guide for it, then `check_install` for that app.
17
+ - No: call `skip_update` with its id (or `npx heresay whats-new --skip <id>`), so
18
+ nobody asks again. It is recorded in `.claude/skills/heresay/decisions.json`; commit that.
19
+ - Not now: leave it; it will come up next time.
20
+ 5. Then do the task you were asked to do.
21
+
22
+ If the tool isn't there (an older `heresay` package), read `/guides/changes.json` on this Heresay
23
+ and check the code for each entry's `detect` strings yourself.
@@ -3,164 +3,13 @@
3
3
  <head>
4
4
  <meta charset="utf-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1">
6
- <title>Heresay · Every report gets a hearing</title>
7
- <meta name="description" content="Add a Report button to any app with one line. Your users say what's wrong, you decide, and they hear back in the app.">
6
+ <title>Heresay</title>
7
+ <meta http-equiv="refresh" content="0; url=/app/">
8
8
  <link rel="icon" href="/favicon.svg" type="image/svg+xml">
9
- <link rel="apple-touch-icon" href="/apple-touch-icon.png">
10
- <meta property="og:title" content="Heresay · Every report gets a hearing">
11
- <meta property="og:description" content="A Report button for any app. Users say it, you decide, they hear back.">
12
- <link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
13
- <link href="https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,700;12..96,800&family=Figtree:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
14
- <link rel="stylesheet" href="/site.css">
9
+ <style>body{font:16px/1.6 system-ui,sans-serif;color:#15171c;max-width:32rem;margin:15vh auto;padding:0 24px;text-align:center}a{color:#0b5e57}small{display:block;margin-top:24px;color:#5b6472}</style>
15
10
  </head>
16
11
  <body>
17
-
18
- <div class="wrap">
19
- <nav class="nav" aria-label="Main">
20
- <a href="/" aria-label="Heresay home"><img src="/logo.svg" alt="Heresay" height="34"></a>
21
- <div class="links"><a href="#how">How it works</a><a href="/docs.html">Docs</a><a href="#faq">FAQ</a><a class="keep" href="/app/">Sign in</a></div>
22
- <a class="btn btn-p btn-sm" href="/docs.html#self-host">Set up</a>
23
- </nav>
24
-
25
- <header class="hero">
26
- <div>
27
- <h1>Every report gets <em>a hearing.</em></h1>
28
- <p class="lede">Heresay adds a Report button to any app. Your users say what's wrong. You decide. They hear back, right there in the app.</p>
29
- <div class="ctas"><a class="btn btn-p" href="/docs.html#self-host">Set up Heresay</a><a class="btn btn-s" href="#how">See how it works</a></div>
30
- <p class="fine">Free while in beta · No accounts for your users · Works with any website</p>
31
- <div class="snippet" data-origin>&lt;script <span class="nowrap">src="<b>ORIGIN</b>/sdk/v1.js"</span> <span class="nowrap">data-key="pk_…"</span> defer&gt;&lt;/script&gt;</div>
32
- </div>
33
- <div class="stage" role="img" aria-label="The Heresay Report form open inside an app">
34
- <div class="bar"></div><div class="bar b"></div><div class="bar c"></div>
35
- <div class="panel">
36
- <div class="tabs"><span class="on">Report</span><span>Your reports</span></div>
37
- <div class="types">
38
- <div class="type"><b>Broken</b><span>Something doesn't work</span></div>
39
- <div class="type on"><b>Confusing</b><span>I couldn't tell how</span></div>
40
- <div class="type"><b>Could be better</b><span>It works, but…</span></div>
41
- <div class="type"><b>Idea</b><span>Something new</span></div>
42
- </div>
43
- <div class="field">I can't find where to cancel my plan.</div>
44
- <div class="wrow"><small>Screen and version attached</small><span class="send">Send</span></div>
45
- </div>
46
- <div class="fab"><img src="/mark.svg" alt="" width="22" height="22">Report</div>
47
- </div>
48
- </header>
49
- </div>
50
-
51
- <section id="how">
52
- <div class="wrap">
53
- <div class="section-head"><h2>How it works</h2><p>Four steps, and nobody is left waiting.</p></div>
54
- <div class="steps">
55
- <div class="step"><div class="n">1</div><h3>They say it</h3><p>A user taps Report and picks what it is: broken, confusing, could be better, or an idea.</p></div>
56
- <div class="step"><div class="n">2</div><h3>You hear it</h3><p>It lands in your dashboard with the screen, app version, browser and device attached.</p></div>
57
- <div class="step"><div class="n">3</div><h3>You decide</h3><p>Accept it, or decline it with a reason. A no always comes with a why.</p></div>
58
- <div class="step"><div class="n">4</div><h3>They hear back</h3><p>The user sees your answer in the same app. When you fix it, they see that too.</p></div>
59
- </div>
60
- </div>
61
- </section>
62
-
63
- <section>
64
- <div class="wrap">
65
- <div class="section-head"><h2>Both sides of the conversation</h2><p>What your users see, and what you see.</p></div>
66
- <div class="sides">
67
- <div class="side them">
68
- <h3>In your app</h3>
69
- <p class="muted">Your users never make an account. They tap, type a sentence, and later see your reply.</p>
70
- <div class="row-card">
71
- <div class="k" style="color:#17704a">Accepted, being worked on</div>
72
- <p>The export button does nothing.</p>
73
- </div>
74
- <div class="row-card">
75
- <div class="k" style="color:#855309">Declined</div>
76
- <p>I can't find where to cancel my plan.</p>
77
- <div class="reply"><b>Why:</b> It's under Settings → Plan. We'll make it easier to find.</div>
78
- </div>
79
- </div>
80
- <div class="side you">
81
- <h3>In your dashboard</h3>
82
- <p class="muted">The most urgent first: broken, then confusing, then the rest. Nobody picks their own priority.</p>
83
- <div class="row-card">
84
- <div class="k">Confusing</div>
85
- <p>I can't find where to cancel my plan.</p>
86
- <div class="m">/settings/billing · v1.4.0 · Chrome · macOS</div>
87
- <div class="acts"><span class="go">Accept</span><span>Decline…</span></div>
88
- </div>
89
- <div class="row-card">
90
- <div class="k" style="color:#b42318">Broken</div>
91
- <p>The export button does nothing.</p>
92
- <div class="m">/export · v1.4.0 · Safari · iOS</div>
93
- <div class="acts"><span class="go">Copy prompt for agent</span><span>Mark fixed</span></div>
94
- </div>
95
- </div>
96
- </div>
97
- </div>
98
- </section>
99
-
100
- <section>
101
- <div class="wrap">
102
- <div class="section-head"><h2>Small, careful, yours</h2><p>Built to sit quietly inside someone else's app.</p></div>
103
- <div class="grid3">
104
- <div class="feature"><div class="t"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="#0b5e57" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 7h16M4 12h10M4 17h7"/></svg><h3>Context, attached</h3></div><p>Screen, app version, browser, OS, and who the user is if you tell us. No screenshots, no guessing.</p></div>
105
- <div class="feature"><div class="t"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="#0b5e57" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 14l-4-4 4-4"/><path d="M5 10h9a5 5 0 0 1 0 10h-2"/></svg><h3>The answer comes back</h3></div><p>Every report shows its status to the person who sent it. A decline always carries your reason.</p></div>
106
- <div class="feature"><div class="t"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="#0b5e57" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="8" r="4"/><path d="M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6"/></svg><h3>No accounts for users</h3></div><p>People report without signing up. You can pass their name or id from your app if you want it.</p></div>
107
- <div class="feature"><div class="t"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="#0b5e57" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="4" y="4" width="16" height="16" rx="4"/><path d="M9 12l2 2 4-4"/></svg><h3>A person says yes first</h3></div><p>Only reports you accept become a prompt for your coding agent. Nobody can steer your agent with a report.</p></div>
108
- <div class="feature"><div class="t"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="#0b5e57" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z"/></svg><h3>Safe by default</h3></div><p>Your key only works on your site, and every device, network and app is rate-limited.</p></div>
109
- <div class="feature"><div class="t"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="#0b5e57" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="8"/><path d="M12 4a8 8 0 0 1 0 16" fill="#0b5e57"/></svg><h3>Matches your app</h3></div><p>Neutral by design, with one line to use your own brand colour. Light and dark mode are automatic.</p></div>
110
- </div>
111
- </div>
112
- </section>
113
-
114
- <section>
115
- <div class="wrap">
116
- <div class="promise">
117
- <img src="/mark.svg" alt="" width="140" height="140">
118
- <div><h2>Nothing reaches your coding agent until you accept it.</h2><p>Reports come from the public, so their words are treated as a description, never as instructions. Accepted reports become a clean prompt you can hand to any coding agent.</p></div>
119
- </div>
120
- </div>
121
- </section>
122
-
123
- <section>
124
- <div class="wrap">
125
- <div class="section-head"><h2>Set up in three steps</h2><p>Your own Heresay, in your own Google account. Reports never sit on anyone else's servers.</p></div>
126
- <div class="setup">
127
- <div class="step"><div class="n">1</div><h3>Run one command</h3><p><code>npx create-heresay</code> creates a Firebase project for you and deploys the dashboard to it. About five minutes.</p></div>
128
- <div class="step"><div class="n">2</div><h3>Paste one line</h3><p>Put the script tag before <code>&lt;/body&gt;</code>. A Report button appears in the corner.</p></div>
129
- <div class="step"><div class="n">3</div><h3>Read your reports</h3><p>Open the dashboard. Accept, decline with a reason, and mark things fixed.</p></div>
130
- </div>
131
- <div class="ctas" style="margin-top:32px"><a class="btn btn-p" href="/docs.html#self-host">Set up Heresay</a><a class="btn btn-s" href="/app/">Sign in</a></div>
132
- </div>
133
- </section>
134
-
135
- <section id="faq">
136
- <div class="wrap">
137
- <div class="section-head"><h2>Questions</h2></div>
138
- <div class="faq">
139
- <details><summary>How much does it cost?</summary><p>Heresay itself is free. It runs in your own Firebase project, and Firebase's free tier covers a small app. Past that, you pay Google directly, usually cents.</p></details>
140
- <details><summary>Will it slow my app down?</summary><p>No. It's one small script with no dependencies, it loads after your page, and if our service is ever down your app carries on normally.</p></details>
141
- <details><summary>What do you collect?</summary><p>What the user types, the report type, and context: the page, your app version, browser and OS. No screenshots, no cookies. A random device id is kept in the browser so people can see their own reports.</p></details>
142
- <details><summary>Do my users need an account?</summary><p>No. If your app knows who they are, you can pass a name or id with one call.</p></details>
143
- <details><summary>Can it match my brand?</summary><p>Yes. Add <code>data-accent="#yourcolour"</code> to the script tag. The widget stays neutral otherwise, and follows light and dark mode.</p></details>
144
- <details><summary>How does it work with coding agents?</summary><p>When you accept a report, the dashboard gives you a ready-made prompt for your coding agent. Reports you haven't accepted never become prompts.</p></details>
145
- <details><summary>Which platforms are supported?</summary><p>Any website today, whatever it's built with. An iOS SDK is next.</p></details>
146
- <details><summary>Can someone spam my reports?</summary><p>Your key only works on the site you register, and reports are rate-limited per device, per network and per app.</p></details>
147
- </div>
148
- </div>
149
- </section>
150
-
151
- <section class="close">
152
- <div class="wrap">
153
- <img src="/mark.svg" alt="" width="84" height="84" style="margin:0 auto">
154
- <h2>One line. Every report gets a hearing.</h2>
155
- <div class="ctas"><a class="btn btn-p" href="/docs.html#self-host">Set up Heresay</a></div>
156
- </div>
157
- </section>
158
-
159
- <footer class="site"><div class="wrap"><span>© 2026 Heresay</span><span><a href="/docs.html">Docs</a> · <a href="/app/">Sign in</a></span></div></footer>
160
-
161
- <script>
162
- // Show the real address this site is served from in the code samples.
163
- document.querySelectorAll('[data-origin]').forEach(function (el) { el.innerHTML = el.innerHTML.replace(/ORIGIN/g, location.origin); });
164
- </script>
12
+ <p><a href="/app/">Open the Heresay dashboard</a></p>
13
+ <small><a href="https://sibhimanyu.github.io/heresay/">What is Heresay?</a></small>
165
14
  </body>
166
15
  </html>