@promptowl/contextnest-community 1.22.0 → 1.23.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.
@@ -48,7 +48,8 @@ var HISTORICAL_MIGRATIONS = [
48
48
  "037_publish",
49
49
  "038_nest_archive",
50
50
  "039_nest_pins",
51
- "041_nest_visibility_org"
51
+ "041_nest_visibility_org",
52
+ "042_community_sites"
52
53
  ];
53
54
  async function runPostgresMigrations(db) {
54
55
  await db.exec(`
@@ -685,6 +686,20 @@ async function runPostgresMigrations(db) {
685
686
  );
686
687
  CREATE INDEX IF NOT EXISTS idx_nest_pins_user ON nest_pins(user_id);
687
688
 
689
+ -- community_sites (migration 042): official community site connections
690
+ -- trusted for SSO auto-login \u2014 extends the single OFFICIAL_COMMUNITY_SSO_
691
+ -- SECRET/PUBLIC_BASE_URL env-var pair to a DB-backed list, each row with
692
+ -- its own name/url/secret and an active flag. See src/auth/community-sites.ts.
693
+ CREATE TABLE IF NOT EXISTS community_sites (
694
+ id TEXT PRIMARY KEY,
695
+ name TEXT NOT NULL,
696
+ url TEXT NOT NULL UNIQUE,
697
+ secret TEXT NOT NULL,
698
+ is_active INTEGER NOT NULL DEFAULT 1,
699
+ created_at TEXT NOT NULL DEFAULT ${NOW},
700
+ updated_at TEXT NOT NULL DEFAULT ${NOW}
701
+ );
702
+
688
703
  CREATE TABLE IF NOT EXISTS schema_migrations (
689
704
  id TEXT PRIMARY KEY,
690
705
  applied_at TEXT NOT NULL DEFAULT ${NOW}
@@ -17,15 +17,15 @@ import {
17
17
  requestDeletion,
18
18
  submitForReview,
19
19
  withdrawDeletionRequest
20
- } from "./chunk-OQXZ43HG.js";
20
+ } from "./chunk-MLQU4I5J.js";
21
21
  import {
22
22
  canUserApprove
23
- } from "./chunk-PX3P4FTU.js";
24
- import "./chunk-MY4JIWQD.js";
25
- import "./chunk-6WESEA75.js";
26
- import "./chunk-W5ILNGPD.js";
23
+ } from "./chunk-2YPY2HGZ.js";
24
+ import "./chunk-UOMW7TT6.js";
25
+ import "./chunk-5CVZMHHB.js";
26
+ import "./chunk-QLXC6542.js";
27
27
  import "./chunk-YVMSM7LS.js";
28
- import "./chunk-J2OQ3MEB.js";
28
+ import "./chunk-QWNXWRWO.js";
29
29
  import "./chunk-YB3LKF7U.js";
30
30
  import "./chunk-FRQJWGN3.js";
31
31
  export {
@@ -23,10 +23,10 @@ import {
23
23
  syncFromConfig,
24
24
  updateSteward,
25
25
  updateStewardRole
26
- } from "./chunk-PX3P4FTU.js";
27
- import "./chunk-W5ILNGPD.js";
26
+ } from "./chunk-2YPY2HGZ.js";
27
+ import "./chunk-QLXC6542.js";
28
28
  import "./chunk-YVMSM7LS.js";
29
- import "./chunk-J2OQ3MEB.js";
29
+ import "./chunk-QWNXWRWO.js";
30
30
  import "./chunk-YB3LKF7U.js";
31
31
  import "./chunk-FRQJWGN3.js";
32
32
  export {
@@ -20,10 +20,10 @@ import {
20
20
  setApprovedVersion,
21
21
  systemAuthor,
22
22
  upsertVersion
23
- } from "./chunk-6WESEA75.js";
24
- import "./chunk-W5ILNGPD.js";
23
+ } from "./chunk-5CVZMHHB.js";
24
+ import "./chunk-QLXC6542.js";
25
25
  import "./chunk-YVMSM7LS.js";
26
- import "./chunk-J2OQ3MEB.js";
26
+ import "./chunk-QWNXWRWO.js";
27
27
  import "./chunk-YB3LKF7U.js";
28
28
  import "./chunk-FRQJWGN3.js";
29
29
  export {