@promptowl/contextnest-community 1.19.0 → 1.21.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/README.md +1 -1
- package/dist/{chunk-FBDEESNJ.js → chunk-4KJGQHWB.js} +113 -218
- package/dist/{chunk-ENDHMQPD.js → chunk-6JGQX4GA.js} +415 -64
- package/dist/{chunk-TNAZJYL5.js → chunk-6PJQSKKV.js} +12 -4
- package/dist/{chunk-BXUVIAMP.js → chunk-IGPJ74O4.js} +60 -12
- package/dist/{chunk-HYSTFMFG.js → chunk-LPPKPEYI.js} +131 -1
- package/dist/{chunk-3GMGLYTZ.js → chunk-N2DTJFCD.js} +2 -2
- package/dist/{chunk-GSYMJ3A4.js → chunk-XWGEXQU3.js} +6 -2
- package/dist/{client-SW5I6ZBK.js → client-BD6PAUCZ.js} +1 -1
- package/dist/{engine-V4DY4PYN.js → engine-IKZQ46P7.js} +2 -2
- package/dist/{external-edit-service-3NK5DGLA.js → external-edit-service-LTON57HO.js} +3 -3
- package/dist/{grants-service-CADI6LIB.js → grants-service-LSNZN6NG.js} +2 -2
- package/dist/index.js +2704 -1156
- package/dist/{migrations.postgres-5VI4RDTS.js → migrations.postgres-JA2YGLS3.js} +66 -1
- package/dist/{review-service-LK4M2C43.js → review-service-6JK64IRT.js} +8 -6
- package/dist/{stewardship-service-JAFSU5GN.js → stewardship-service-2YKGBP63.js} +3 -3
- package/dist/{version-service-G7SFFKFO.js → version-service-PJV74PVQ.js} +11 -3
- 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-T4pilFNL.css +1 -0
- package/dist/web3/assets/index-deyhV93k.js +1382 -0
- package/dist/web3/index.html +2 -2
- package/package.json +6 -1
- package/dist/web3/assets/index-C26nM5Kn.css +0 -1
- package/dist/web3/assets/index-C4oalc2K.js +0 -1065
|
@@ -44,7 +44,10 @@ 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",
|
|
49
|
+
"038_nest_archive",
|
|
50
|
+
"039_nest_pins"
|
|
48
51
|
];
|
|
49
52
|
async function runPostgresMigrations(db) {
|
|
50
53
|
await db.exec(`
|
|
@@ -80,6 +83,11 @@ async function runPostgresMigrations(db) {
|
|
|
80
83
|
prime_tags TEXT NOT NULL DEFAULT 'prime-document',
|
|
81
84
|
shared_teams TEXT NOT NULL DEFAULT '[]',
|
|
82
85
|
index_synced_at TEXT,
|
|
86
|
+
reader_mode INTEGER NOT NULL DEFAULT 0,
|
|
87
|
+
reader_home_node TEXT,
|
|
88
|
+
-- Set = archived (migration 038): off the dashboard, out of MCP, read
|
|
89
|
+
-- only, nothing deleted. NULL is the whole "not archived" story.
|
|
90
|
+
archived_at TEXT,
|
|
83
91
|
UNIQUE(user_id, slug)
|
|
84
92
|
);
|
|
85
93
|
CREATE INDEX IF NOT EXISTS idx_nests_user ON nests(user_id);
|
|
@@ -333,6 +341,43 @@ async function runPostgresMigrations(db) {
|
|
|
333
341
|
ON grants(nest_id, target_type, target, user_id);
|
|
334
342
|
CREATE INDEX IF NOT EXISTS idx_grants_user ON grants(nest_id, user_id);
|
|
335
343
|
|
|
344
|
+
CREATE TABLE IF NOT EXISTS publish (
|
|
345
|
+
id TEXT PRIMARY KEY,
|
|
346
|
+
nest_id TEXT NOT NULL REFERENCES nests(id) ON DELETE CASCADE,
|
|
347
|
+
node_id TEXT NOT NULL,
|
|
348
|
+
slug TEXT NOT NULL,
|
|
349
|
+
access_mode TEXT NOT NULL DEFAULT 'public'
|
|
350
|
+
CHECK(access_mode IN ('public','email','code','invite')),
|
|
351
|
+
code_hash TEXT,
|
|
352
|
+
comments_enabled INTEGER NOT NULL DEFAULT 0,
|
|
353
|
+
watermark INTEGER NOT NULL DEFAULT 0,
|
|
354
|
+
no_download INTEGER NOT NULL DEFAULT 0,
|
|
355
|
+
created_by TEXT NOT NULL,
|
|
356
|
+
created_at TEXT NOT NULL,
|
|
357
|
+
expires_at TEXT,
|
|
358
|
+
revoked_at TEXT
|
|
359
|
+
);
|
|
360
|
+
CREATE UNIQUE INDEX IF NOT EXISTS idx_publish_slug ON publish(slug);
|
|
361
|
+
CREATE INDEX IF NOT EXISTS idx_publish_nest ON publish(nest_id, node_id);
|
|
362
|
+
|
|
363
|
+
CREATE TABLE IF NOT EXISTS access_grant (
|
|
364
|
+
id TEXT PRIMARY KEY,
|
|
365
|
+
publish_id TEXT NOT NULL REFERENCES publish(id) ON DELETE CASCADE,
|
|
366
|
+
kind TEXT NOT NULL CHECK(kind IN ('invite','link','session','view')),
|
|
367
|
+
email TEXT,
|
|
368
|
+
token_hash TEXT,
|
|
369
|
+
expires_at TEXT,
|
|
370
|
+
used_at TEXT,
|
|
371
|
+
created_at TEXT NOT NULL
|
|
372
|
+
);
|
|
373
|
+
CREATE INDEX IF NOT EXISTS idx_access_grant_publish ON access_grant(publish_id, kind);
|
|
374
|
+
CREATE INDEX IF NOT EXISTS idx_access_grant_token ON access_grant(token_hash);
|
|
375
|
+
|
|
376
|
+
-- Viewer overlays, declared inline above; explicit ALTERs so a database
|
|
377
|
+
-- created by an earlier build of 037 still gets them on upgrade.
|
|
378
|
+
ALTER TABLE publish ADD COLUMN IF NOT EXISTS watermark INTEGER NOT NULL DEFAULT 0;
|
|
379
|
+
ALTER TABLE publish ADD COLUMN IF NOT EXISTS no_download INTEGER NOT NULL DEFAULT 0;
|
|
380
|
+
|
|
336
381
|
CREATE TABLE IF NOT EXISTS teams (
|
|
337
382
|
id TEXT PRIMARY KEY,
|
|
338
383
|
name TEXT NOT NULL,
|
|
@@ -376,6 +421,13 @@ async function runPostgresMigrations(db) {
|
|
|
376
421
|
-- index has never been built.
|
|
377
422
|
ALTER TABLE nests ADD COLUMN IF NOT EXISTS index_synced_at TEXT;
|
|
378
423
|
|
|
424
|
+
-- Public Docs Reader Mode: same inline-plus-explicit-ALTER pattern so a
|
|
425
|
+
-- database created before reader mode shipped still gets the columns on
|
|
426
|
+
-- upgrade. reader_mode is off by default; reader_home_node is nullable.
|
|
427
|
+
ALTER TABLE nests ADD COLUMN IF NOT EXISTS reader_mode INTEGER NOT NULL DEFAULT 0;
|
|
428
|
+
ALTER TABLE nests ADD COLUMN IF NOT EXISTS reader_home_node TEXT;
|
|
429
|
+
ALTER TABLE nests ADD COLUMN IF NOT EXISTS archived_at TEXT;
|
|
430
|
+
|
|
379
431
|
CREATE TABLE IF NOT EXISTS schedules (
|
|
380
432
|
id TEXT PRIMARY KEY,
|
|
381
433
|
nest_id TEXT NOT NULL REFERENCES nests(id) ON DELETE CASCADE,
|
|
@@ -619,6 +671,19 @@ async function runPostgresMigrations(db) {
|
|
|
619
671
|
CREATE INDEX IF NOT EXISTS idx_deletion_requests_nest
|
|
620
672
|
ON deletion_requests(nest_id, status);
|
|
621
673
|
|
|
674
|
+
-- Pinned nests (migration 039). Per PERSON per nest, not a property of the
|
|
675
|
+
-- nest: two people sharing one nest pin different things. The composite key
|
|
676
|
+
-- is the whole uniqueness rule; the nest FK cascades.
|
|
677
|
+
CREATE TABLE IF NOT EXISTS nest_pins (
|
|
678
|
+
-- Both sides cascade, as grants and nest_collaborators do: without it on
|
|
679
|
+
-- user_id, deleting an account holding a single pin fails on the FK.
|
|
680
|
+
user_id TEXT NOT NULL REFERENCES users(id) ON DELETE CASCADE,
|
|
681
|
+
nest_id TEXT NOT NULL REFERENCES nests(id) ON DELETE CASCADE,
|
|
682
|
+
created_at TEXT NOT NULL DEFAULT ${NOW},
|
|
683
|
+
PRIMARY KEY (user_id, nest_id)
|
|
684
|
+
);
|
|
685
|
+
CREATE INDEX IF NOT EXISTS idx_nest_pins_user ON nest_pins(user_id);
|
|
686
|
+
|
|
622
687
|
CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
623
688
|
id TEXT PRIMARY KEY,
|
|
624
689
|
applied_at TEXT NOT NULL DEFAULT ${NOW}
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
getPendingReview,
|
|
10
10
|
getReviewHistory,
|
|
11
11
|
getReviewQueue,
|
|
12
|
+
isNestTarget,
|
|
12
13
|
listDeletionRequests,
|
|
13
14
|
notifyDeletionResolved,
|
|
14
15
|
reject,
|
|
@@ -16,15 +17,15 @@ import {
|
|
|
16
17
|
requestDeletion,
|
|
17
18
|
submitForReview,
|
|
18
19
|
withdrawDeletionRequest
|
|
19
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-4KJGQHWB.js";
|
|
20
21
|
import {
|
|
21
22
|
canUserApprove
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-N2DTJFCD.js";
|
|
24
|
+
import "./chunk-XWGEXQU3.js";
|
|
25
|
+
import "./chunk-IGPJ74O4.js";
|
|
26
|
+
import "./chunk-6JGQX4GA.js";
|
|
26
27
|
import "./chunk-YVMSM7LS.js";
|
|
27
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-LPPKPEYI.js";
|
|
28
29
|
import "./chunk-YB3LKF7U.js";
|
|
29
30
|
import "./chunk-FRQJWGN3.js";
|
|
30
31
|
export {
|
|
@@ -39,6 +40,7 @@ export {
|
|
|
39
40
|
getPendingReview,
|
|
40
41
|
getReviewHistory,
|
|
41
42
|
getReviewQueue,
|
|
43
|
+
isNestTarget,
|
|
42
44
|
listDeletionRequests,
|
|
43
45
|
notifyDeletionResolved,
|
|
44
46
|
reject,
|
|
@@ -23,10 +23,10 @@ import {
|
|
|
23
23
|
syncFromConfig,
|
|
24
24
|
updateSteward,
|
|
25
25
|
updateStewardRole
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
26
|
+
} from "./chunk-N2DTJFCD.js";
|
|
27
|
+
import "./chunk-6JGQX4GA.js";
|
|
28
28
|
import "./chunk-YVMSM7LS.js";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-LPPKPEYI.js";
|
|
30
30
|
import "./chunk-YB3LKF7U.js";
|
|
31
31
|
import "./chunk-FRQJWGN3.js";
|
|
32
32
|
export {
|
|
@@ -2,39 +2,47 @@ import {
|
|
|
2
2
|
SYSTEM_AUTHOR_PREFIX,
|
|
3
3
|
checkConflict,
|
|
4
4
|
createVersion,
|
|
5
|
+
deleteSupersededDrafts,
|
|
6
|
+
deleteUnsealedVersions,
|
|
5
7
|
getApprovedVersion,
|
|
6
8
|
getApprovedVersions,
|
|
7
9
|
getCurrentVersion,
|
|
8
10
|
getDisplayStatus,
|
|
9
11
|
getDisplayStatuses,
|
|
10
12
|
getNodeTags,
|
|
13
|
+
getSealedVersion,
|
|
11
14
|
getTrackedNodeIds,
|
|
12
15
|
getVersion,
|
|
13
16
|
getVersions,
|
|
17
|
+
hasUnsealedDraft,
|
|
14
18
|
hashContent,
|
|
15
19
|
listMyDrafts,
|
|
16
20
|
setApprovedVersion,
|
|
17
21
|
systemAuthor,
|
|
18
22
|
upsertVersion
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-IGPJ74O4.js";
|
|
24
|
+
import "./chunk-6JGQX4GA.js";
|
|
21
25
|
import "./chunk-YVMSM7LS.js";
|
|
22
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-LPPKPEYI.js";
|
|
23
27
|
import "./chunk-YB3LKF7U.js";
|
|
24
28
|
import "./chunk-FRQJWGN3.js";
|
|
25
29
|
export {
|
|
26
30
|
SYSTEM_AUTHOR_PREFIX,
|
|
27
31
|
checkConflict,
|
|
28
32
|
createVersion,
|
|
33
|
+
deleteSupersededDrafts,
|
|
34
|
+
deleteUnsealedVersions,
|
|
29
35
|
getApprovedVersion,
|
|
30
36
|
getApprovedVersions,
|
|
31
37
|
getCurrentVersion,
|
|
32
38
|
getDisplayStatus,
|
|
33
39
|
getDisplayStatuses,
|
|
34
40
|
getNodeTags,
|
|
41
|
+
getSealedVersion,
|
|
35
42
|
getTrackedNodeIds,
|
|
36
43
|
getVersion,
|
|
37
44
|
getVersions,
|
|
45
|
+
hasUnsealedDraft,
|
|
38
46
|
hashContent,
|
|
39
47
|
listMyDrafts,
|
|
40
48
|
setApprovedVersion,
|
|
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
|