suppa-mcp-2 1.2.4 → 1.3.1
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/README.md +419 -391
- package/dist/bin.js +1 -1
- package/dist/httpClient.js +227 -6
- package/dist/server.js +491 -89
- package/dist/tools/docs.js +3 -3
- package/dist/tools/entity.js +1020 -54
- package/dist/tools/migrate.js +37 -1
- package/dist/utils.js +117 -4
- package/package.json +13 -4
- package/skills/suppa-entity-code/SKILL.md +1 -1
- package/skills/suppa-entity-code/scripts/validate-suppa-schema.mjs +39 -8
package/dist/tools/docs.js
CHANGED
|
@@ -271,7 +271,7 @@ export async function updateDoc(docId, title = null, isPublic = null) {
|
|
|
271
271
|
}
|
|
272
272
|
/**
|
|
273
273
|
* Soft-delete a document: /remove sets deletedAt and keeps the row, so this is
|
|
274
|
-
* reversible (
|
|
274
|
+
* reversible (undo with restoreRecord) — nothing is purged.
|
|
275
275
|
*/
|
|
276
276
|
export async function deleteDoc(docId) {
|
|
277
277
|
const result = await removeEntity(ENTITY_DOCS, [makeFilter("id", docId)]);
|
|
@@ -328,7 +328,7 @@ export async function updatePage(pageId, title = null, description = null, icon
|
|
|
328
328
|
}
|
|
329
329
|
/**
|
|
330
330
|
* Soft-delete a page: /remove sets deletedAt and keeps the row, so this is
|
|
331
|
-
* reversible (
|
|
331
|
+
* reversible (undo with restoreRecord) — nothing is purged.
|
|
332
332
|
*/
|
|
333
333
|
export async function deletePage(pageId) {
|
|
334
334
|
const result = await removeEntity(ENTITY_PAGES, [makeFilter("id", pageId)]);
|
|
@@ -474,7 +474,7 @@ export async function updateBlock(blockId, title = null, propertiesJson = null)
|
|
|
474
474
|
}
|
|
475
475
|
/**
|
|
476
476
|
* Soft-delete a single block: /remove sets deletedAt and keeps the row, so this
|
|
477
|
-
* is reversible (
|
|
477
|
+
* is reversible (undo with restoreRecord) — nothing is purged.
|
|
478
478
|
*/
|
|
479
479
|
export async function deleteBlock(blockId) {
|
|
480
480
|
const result = await removeEntity(ENTITY_PAGE_BLOCKS, [makeFilter("id", blockId)]);
|