@realiizlabs/admin 0.15.9 → 0.17.0

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.
@@ -11,11 +11,18 @@ interface RepoContext {
11
11
  owner: string;
12
12
  repo: string;
13
13
  /**
14
- * Fine-grained PAT scoped to this one repo. Required permissions (observed in
15
- * the ADMIN-01 probe): Contents RW, Pull requests RW, Commit statuses R.
16
- * Lives in the site's server env; never reaches a browser.
14
+ * One of two credentials, both server-only:
15
+ * - `app` — the Realiiz Studio GitHub App (preferred). The repo's owner installs
16
+ * the app once; Studio mints a repo-scoped installation token per hour.
17
+ * - `token` — a personal access token with Contents RW, Pull requests RW, Commit
18
+ * statuses R, Deployments R. The original mechanism; still supported.
19
+ * When both are present, `app` wins.
17
20
  */
18
- token: string;
21
+ app?: {
22
+ appId: string;
23
+ privateKey: string;
24
+ } | null;
25
+ token?: string | null;
19
26
  /** Default branch to branch from and merge into. Defaults to "main". */
20
27
  baseBranch?: string;
21
28
  }
@@ -11,11 +11,18 @@ interface RepoContext {
11
11
  owner: string;
12
12
  repo: string;
13
13
  /**
14
- * Fine-grained PAT scoped to this one repo. Required permissions (observed in
15
- * the ADMIN-01 probe): Contents RW, Pull requests RW, Commit statuses R.
16
- * Lives in the site's server env; never reaches a browser.
14
+ * One of two credentials, both server-only:
15
+ * - `app` — the Realiiz Studio GitHub App (preferred). The repo's owner installs
16
+ * the app once; Studio mints a repo-scoped installation token per hour.
17
+ * - `token` — a personal access token with Contents RW, Pull requests RW, Commit
18
+ * statuses R, Deployments R. The original mechanism; still supported.
19
+ * When both are present, `app` wins.
17
20
  */
18
- token: string;
21
+ app?: {
22
+ appId: string;
23
+ privateKey: string;
24
+ } | null;
25
+ token?: string | null;
19
26
  /** Default branch to branch from and merge into. Defaults to "main". */
20
27
  baseBranch?: string;
21
28
  }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@realiizlabs/admin",
3
- "version": "0.15.9",
3
+ "version": "0.17.0",
4
4
  "description": "Realiiz Studio — the publishing dashboard for websites built on site-starter-pro.",
5
- "releaseNotes": "Fixes a false alarm: pressing Update could show \"Reference does not exist\" even though the update had gone through (Studio and GitHub were both tidying up the same branch). Update now reports success and shows the tracker as intended. Also recent: the Help center's section list on phones is a row of chips above the articles; if a rebuild takes too long after you press Update, the tracker now offers Nudge the build, which asks the hosting service to build again (sites need the VERCEL_DEPLOY_HOOK_URL setting; otherwise it tells you to contact your web team). The tracker can be minimized to one line, follows you into a new tab, and no longer promises a time. The Studio version now also appears at the foot of the avatar menu, so it's findable on a phone. Phone fixes: the date, status and Edit link on each content row no longer overlap or run off screen, Show web addresses works again, and the bottom icon bar spaces its icons evenly. Also: pressing Update shows a tracker that stays put — Updated, then Live — through the two-minute rebuild, survives a reload, and offers a Reload Studio button the moment the new version is running. Before, the tracker vanished as soon as the update was accepted, which looked like nothing had happened. Settings → Studio shows the same tracker and its Help center link now looks like one. On phones, the menu is now a bar of icons along the bottom of the screen, and content lists show each item as a readable card instead of a squeezed table.",
5
+ "releaseNotes": "Studio can now reach a website's repository through the Realiiz Studio GitHub App instead of a personal access token: the repository's owner installs the app once, and nobody has to create or copy a token. Sites set GITHUB_APP_ID and GITHUB_APP_PRIVATE_KEY (the same two values everywhere); GITHUB_CONTENT_TOKEN keeps working as before.",
6
6
  "license": "SEE LICENSE IN LICENSE",
7
7
  "type": "module",
8
8
  "main": "./dist/index.cjs",