@promptowl/contextnest-community 1.18.0 → 1.20.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.
- package/CONFIGURATION.md +83 -1
- package/dist/{chunk-QUZXRLUA.js → chunk-3LUUJUWS.js} +2 -2
- package/dist/{chunk-FUUJG6XP.js → chunk-7CPP6FIU.js} +256 -40
- package/dist/{chunk-OOBZG6BW.js → chunk-EY7WOKJR.js} +3 -3
- package/dist/{chunk-HGN45I5P.js → chunk-GVUBZTI3.js} +27 -185
- package/dist/{chunk-34UXRZXD.js → chunk-KHMSDTJJ.js} +2 -2
- package/dist/{chunk-TQACHVVA.js → chunk-O5DYL7ZG.js} +3 -3
- package/dist/{chunk-HYSTFMFG.js → chunk-XCFKS65Y.js} +107 -1
- package/dist/{chunk-GUNJTORH.js → chunk-YVMSM7LS.js} +14 -1
- package/dist/{client-SW5I6ZBK.js → client-7Z2IVCPW.js} +1 -1
- package/dist/{engine-34E3YNX7.js → engine-VZTSDUPB.js} +3 -3
- package/dist/{external-edit-service-6Q6SHEOF.js → external-edit-service-3FVK3OD7.js} +4 -4
- package/dist/{grants-service-ME7HIVHU.js → grants-service-WC27TRY3.js} +3 -3
- package/dist/index.js +2294 -1106
- package/dist/{migrations.postgres-5VI4RDTS.js → migrations.postgres-L42OXR7K.js} +47 -1
- package/dist/{review-service-H2M5ACPQ.js → review-service-TJRHRMMZ.js} +7 -7
- package/dist/{stewardship-service-U4CKL7Y5.js → stewardship-service-HRVD7SIS.js} +4 -4
- package/dist/{version-service-JWEN5UUW.js → version-service-5PIFT2OY.js} +4 -4
- package/dist/web3/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/dist/web3/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/dist/web3/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/dist/web3/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/dist/web3/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/dist/web3/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/dist/web3/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/dist/web3/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/dist/web3/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/dist/web3/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/dist/web3/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/dist/web3/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/dist/web3/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/dist/web3/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/dist/web3/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/dist/web3/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/dist/web3/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/dist/web3/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/dist/web3/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/dist/web3/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/dist/web3/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/dist/web3/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/dist/web3/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/dist/web3/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/dist/web3/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/dist/web3/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/dist/web3/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/dist/web3/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/dist/web3/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/dist/web3/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/dist/web3/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/dist/web3/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/dist/web3/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/dist/web3/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/dist/web3/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/dist/web3/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/dist/web3/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/dist/web3/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/dist/web3/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/dist/web3/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/dist/web3/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/dist/web3/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/dist/web3/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/dist/web3/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/dist/web3/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/dist/web3/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/dist/web3/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/dist/web3/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/dist/web3/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/dist/web3/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/dist/web3/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/dist/web3/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/dist/web3/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/dist/web3/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/dist/web3/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/dist/web3/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/dist/web3/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/dist/web3/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/dist/web3/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/dist/web3/assets/index-D4UG3T04.js +1365 -0
- package/dist/web3/assets/index-Dw1UTDIk.css +1 -0
- package/dist/web3/index.html +2 -2
- package/package.json +7 -2
- package/dist/web3/assets/index-DONv5_Ni.css +0 -1
- package/dist/web3/assets/index-jSGrnboh.js +0 -1065
|
@@ -44,7 +44,8 @@ var HISTORICAL_MIGRATIONS = [
|
|
|
44
44
|
"033_deletion_request_targets",
|
|
45
45
|
"034_versions_author_status_index",
|
|
46
46
|
"035_multiple_api_keys_per_user",
|
|
47
|
-
"036_node_index"
|
|
47
|
+
"036_node_index",
|
|
48
|
+
"037_publish"
|
|
48
49
|
];
|
|
49
50
|
async function runPostgresMigrations(db) {
|
|
50
51
|
await db.exec(`
|
|
@@ -80,6 +81,8 @@ async function runPostgresMigrations(db) {
|
|
|
80
81
|
prime_tags TEXT NOT NULL DEFAULT 'prime-document',
|
|
81
82
|
shared_teams TEXT NOT NULL DEFAULT '[]',
|
|
82
83
|
index_synced_at TEXT,
|
|
84
|
+
reader_mode INTEGER NOT NULL DEFAULT 0,
|
|
85
|
+
reader_home_node TEXT,
|
|
83
86
|
UNIQUE(user_id, slug)
|
|
84
87
|
);
|
|
85
88
|
CREATE INDEX IF NOT EXISTS idx_nests_user ON nests(user_id);
|
|
@@ -333,6 +336,43 @@ async function runPostgresMigrations(db) {
|
|
|
333
336
|
ON grants(nest_id, target_type, target, user_id);
|
|
334
337
|
CREATE INDEX IF NOT EXISTS idx_grants_user ON grants(nest_id, user_id);
|
|
335
338
|
|
|
339
|
+
CREATE TABLE IF NOT EXISTS publish (
|
|
340
|
+
id TEXT PRIMARY KEY,
|
|
341
|
+
nest_id TEXT NOT NULL REFERENCES nests(id) ON DELETE CASCADE,
|
|
342
|
+
node_id TEXT NOT NULL,
|
|
343
|
+
slug TEXT NOT NULL,
|
|
344
|
+
access_mode TEXT NOT NULL DEFAULT 'public'
|
|
345
|
+
CHECK(access_mode IN ('public','email','code','invite')),
|
|
346
|
+
code_hash TEXT,
|
|
347
|
+
comments_enabled INTEGER NOT NULL DEFAULT 0,
|
|
348
|
+
watermark INTEGER NOT NULL DEFAULT 0,
|
|
349
|
+
no_download INTEGER NOT NULL DEFAULT 0,
|
|
350
|
+
created_by TEXT NOT NULL,
|
|
351
|
+
created_at TEXT NOT NULL,
|
|
352
|
+
expires_at TEXT,
|
|
353
|
+
revoked_at TEXT
|
|
354
|
+
);
|
|
355
|
+
CREATE UNIQUE INDEX IF NOT EXISTS idx_publish_slug ON publish(slug);
|
|
356
|
+
CREATE INDEX IF NOT EXISTS idx_publish_nest ON publish(nest_id, node_id);
|
|
357
|
+
|
|
358
|
+
CREATE TABLE IF NOT EXISTS access_grant (
|
|
359
|
+
id TEXT PRIMARY KEY,
|
|
360
|
+
publish_id TEXT NOT NULL REFERENCES publish(id) ON DELETE CASCADE,
|
|
361
|
+
kind TEXT NOT NULL CHECK(kind IN ('invite','link','session','view')),
|
|
362
|
+
email TEXT,
|
|
363
|
+
token_hash TEXT,
|
|
364
|
+
expires_at TEXT,
|
|
365
|
+
used_at TEXT,
|
|
366
|
+
created_at TEXT NOT NULL
|
|
367
|
+
);
|
|
368
|
+
CREATE INDEX IF NOT EXISTS idx_access_grant_publish ON access_grant(publish_id, kind);
|
|
369
|
+
CREATE INDEX IF NOT EXISTS idx_access_grant_token ON access_grant(token_hash);
|
|
370
|
+
|
|
371
|
+
-- Viewer overlays, declared inline above; explicit ALTERs so a database
|
|
372
|
+
-- created by an earlier build of 037 still gets them on upgrade.
|
|
373
|
+
ALTER TABLE publish ADD COLUMN IF NOT EXISTS watermark INTEGER NOT NULL DEFAULT 0;
|
|
374
|
+
ALTER TABLE publish ADD COLUMN IF NOT EXISTS no_download INTEGER NOT NULL DEFAULT 0;
|
|
375
|
+
|
|
336
376
|
CREATE TABLE IF NOT EXISTS teams (
|
|
337
377
|
id TEXT PRIMARY KEY,
|
|
338
378
|
name TEXT NOT NULL,
|
|
@@ -376,6 +416,12 @@ async function runPostgresMigrations(db) {
|
|
|
376
416
|
-- index has never been built.
|
|
377
417
|
ALTER TABLE nests ADD COLUMN IF NOT EXISTS index_synced_at TEXT;
|
|
378
418
|
|
|
419
|
+
-- Public Docs Reader Mode: same inline-plus-explicit-ALTER pattern so a
|
|
420
|
+
-- database created before reader mode shipped still gets the columns on
|
|
421
|
+
-- upgrade. reader_mode is off by default; reader_home_node is nullable.
|
|
422
|
+
ALTER TABLE nests ADD COLUMN IF NOT EXISTS reader_mode INTEGER NOT NULL DEFAULT 0;
|
|
423
|
+
ALTER TABLE nests ADD COLUMN IF NOT EXISTS reader_home_node TEXT;
|
|
424
|
+
|
|
379
425
|
CREATE TABLE IF NOT EXISTS schedules (
|
|
380
426
|
id TEXT PRIMARY KEY,
|
|
381
427
|
nest_id TEXT NOT NULL REFERENCES nests(id) ON DELETE CASCADE,
|
|
@@ -16,15 +16,15 @@ import {
|
|
|
16
16
|
requestDeletion,
|
|
17
17
|
submitForReview,
|
|
18
18
|
withdrawDeletionRequest
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-GVUBZTI3.js";
|
|
20
20
|
import {
|
|
21
21
|
canUserApprove
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-O5DYL7ZG.js";
|
|
23
|
+
import "./chunk-3LUUJUWS.js";
|
|
24
|
+
import "./chunk-KHMSDTJJ.js";
|
|
25
|
+
import "./chunk-7CPP6FIU.js";
|
|
26
|
+
import "./chunk-YVMSM7LS.js";
|
|
27
|
+
import "./chunk-XCFKS65Y.js";
|
|
28
28
|
import "./chunk-YB3LKF7U.js";
|
|
29
29
|
import "./chunk-FRQJWGN3.js";
|
|
30
30
|
export {
|
|
@@ -23,10 +23,10 @@ import {
|
|
|
23
23
|
syncFromConfig,
|
|
24
24
|
updateSteward,
|
|
25
25
|
updateStewardRole
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
26
|
+
} from "./chunk-O5DYL7ZG.js";
|
|
27
|
+
import "./chunk-7CPP6FIU.js";
|
|
28
|
+
import "./chunk-YVMSM7LS.js";
|
|
29
|
+
import "./chunk-XCFKS65Y.js";
|
|
30
30
|
import "./chunk-YB3LKF7U.js";
|
|
31
31
|
import "./chunk-FRQJWGN3.js";
|
|
32
32
|
export {
|
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
setApprovedVersion,
|
|
17
17
|
systemAuthor,
|
|
18
18
|
upsertVersion
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-KHMSDTJJ.js";
|
|
20
|
+
import "./chunk-7CPP6FIU.js";
|
|
21
|
+
import "./chunk-YVMSM7LS.js";
|
|
22
|
+
import "./chunk-XCFKS65Y.js";
|
|
23
23
|
import "./chunk-YB3LKF7U.js";
|
|
24
24
|
import "./chunk-FRQJWGN3.js";
|
|
25
25
|
export {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|