@vibes.diy/prompts 14.3.163 → 14.3.165

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/llms/backend.md CHANGED
@@ -203,7 +203,8 @@ const routes = await ctx.github.routes(); // [{ repo, accountLogin, binderHandle
203
203
  </a>;
204
204
  ```
205
205
 
206
- The owner goes straight to GitHub to pick repositories. By default only the
206
+ The owner goes straight to GitHub to sign in, then ticks the repositories
207
+ this vibe gets (each vibe gets only the ones ticked for it). By default only the
207
208
  owner may connect one; to let **visitors** connect their own repositories (a
208
209
  PR reviewer, a repo dashboard anyone can use), declare it in `backend.js`:
209
210
 
package/llms/github.md CHANGED
@@ -3,7 +3,7 @@
3
3
  An app that works with somebody's GitHub repo — answers its pull requests,
4
4
  sorts its issues, reads its files, shows its commits — connects that repo in
5
5
  one click through the **vibes.diy GitHub App**. The person presses Connect,
6
- picks repos on GitHub's own screen, and lands back in your app. From then on
6
+ ticks the repos this app gets on a vibes.diy page, and lands back in your app. From then on
7
7
  `backend.js` reads and writes those repos with `ctx.github.fetch`, and GitHub's
8
8
  events for them arrive at your `/_api/github-webhook` route.
9
9
 
@@ -72,7 +72,9 @@ import { buildGithubInstallUrl } from "use-vibes";
72
72
 
73
73
  The app's owner goes straight to GitHub. A visitor first sees the platform's
74
74
  consent page quoting your `why`; its Continue button carries the visitor on to
75
- GitHub's install screen, where they pick the repos. **The platform builds every
75
+ GitHub to sign in (and add the GitHub App if it is new to them), then to a
76
+ vibes.diy page where they tick the repos THIS app gets — nothing starts ticked,
77
+ so each app gets exactly the repos chosen for it. **The platform builds every
76
78
  step after `/github/install` itself, so the app's one link is
77
79
  `buildGithubInstallUrl()`** — GitHub's own install page is reached only through
78
80
  that door. When the new tab finishes, the person comes back to the app's tab,
@@ -96,7 +98,9 @@ await ctx.github.fetch(`/repos/${repo}/pulls/${number}/reviews`, {
96
98
 
97
99
  `ctx.github.fetch` attaches the App's credential itself, so a repo call carries only its path, method and body.
98
100
  `path` starts at `/`: any `/repos/{owner}/{repo}/…` path for a repo connected to
99
- this app, plus `/installation/repositories`. Methods are GET, POST, PUT, PATCH
101
+ this app, plus `/installation/repositories`, which lists exactly the repos
102
+ connected to this app. **An app sees only the repos connected to it**, so build
103
+ every repo list from `routes()` or that listing. Methods are GET, POST, PUT, PATCH
100
104
  and DELETE; an object `body` is sent as JSON. It resolves a normal `Response`
101
105
  (GitHub's own 404 or 422 included — read `res.ok` and `res.status`), and it
102
106
  rejects with an `Error` whose `err.reason` names what happened:
@@ -553,12 +557,18 @@ channel.
553
557
  conversation. Build on those. Other writes (labels, issue comments, check
554
558
  runs) may answer `permission_not_granted`; record that reason on the
555
559
  person's record and show it, so they see exactly what happened.
556
- - **One repo connects to one app.** A repo already connected to another app
557
- answers the person on the connect screen with "Already connected" — say so on
558
- your page near the Connect button, so it reads as expected.
560
+ - **Each app gets the repos chosen for it.** The person ticks repos per app, and
561
+ each app's connection stands on its own. One repo can feed up to ten apps,
562
+ each hearing its deliveries with its own connector. While that switches on, a
563
+ repo another app already has is left out with a note to try again soon. Say
564
+ near the Connect button that the person picks which repos this app gets.
565
+ - **Connecting a repo takes write access to it on GitHub.** The picker offers
566
+ the repos the person can push to, and shows the rest greyed out. Suggest that
567
+ someone with read-only access ask a maintainer to connect the repo.
559
568
  - **Repo names are case-insensitive on GitHub.** Lower-case them in `_id`s and
560
569
  comparisons, as the example does, and keep GitHub's spelling for display.
561
- - **Disconnecting happens on GitHub**, in the person's installed GitHub Apps
562
- settings.
570
+ - **Taking a repo off this app:** the person presses Connect again and unticks
571
+ it; their other apps keep it. Removing the GitHub App on GitHub disconnects
572
+ the repo from every app.
563
573
  - More on `ctx` — `ctx.db`, `ctx.log`, `ifRev`, `apiFetch` — lives in the
564
574
  `backend` skill.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibes.diy/prompts",
3
- "version": "14.3.163",
3
+ "version": "14.3.165",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "exports": {
@@ -39,10 +39,10 @@
39
39
  "license": "Apache-2.0",
40
40
  "dependencies": {
41
41
  "@adviser/cement": "~0.5.34",
42
- "@vibes.diy/api-types": "14.3.163",
43
- "@vibes.diy/call-ai-v2": "14.3.163",
44
- "@vibes.diy/identity": "14.3.163",
45
- "@vibes.diy/use-vibes-types": "14.3.163",
42
+ "@vibes.diy/api-types": "14.3.165",
43
+ "@vibes.diy/call-ai-v2": "14.3.165",
44
+ "@vibes.diy/identity": "14.3.165",
45
+ "@vibes.diy/use-vibes-types": "14.3.165",
46
46
  "arktype": "~2.2.6",
47
47
  "json-schema-faker": "~0.6.3"
48
48
  },