suppa-mcp-2 1.2.3 → 1.3.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/README.md +419 -391
- package/dist/bin.js +1 -1
- package/dist/httpClient.js +230 -5
- package/dist/server.js +590 -82
- package/dist/tools/docs.js +12 -3
- package/dist/tools/entity.js +1275 -94
- package/dist/tools/migrate.js +84 -6
- package/dist/tools/tasks.js +12 -2
- package/dist/utils.js +202 -1
- package/package.json +13 -4
- package/skills/suppa-entity-code/SKILL.md +15 -2
- package/skills/suppa-entity-code/references/entities.md +87 -1
- package/skills/suppa-entity-code/references/v1-mapping.md +12 -2
- package/skills/suppa-entity-code/scripts/validate-suppa-schema.mjs +73 -3
- package/skills/suppa-entity-code/templates/entity.template.ts +13 -0
package/dist/tools/docs.js
CHANGED
|
@@ -269,7 +269,10 @@ export async function updateDoc(docId, title = null, isPublic = null) {
|
|
|
269
269
|
const result = await updateEntity(ENTITY_DOCS, docId, fields);
|
|
270
270
|
return jsonResponse(result);
|
|
271
271
|
}
|
|
272
|
-
/**
|
|
272
|
+
/**
|
|
273
|
+
* Soft-delete a document: /remove sets deletedAt and keeps the row, so this is
|
|
274
|
+
* reversible (undo with restoreRecord) — nothing is purged.
|
|
275
|
+
*/
|
|
273
276
|
export async function deleteDoc(docId) {
|
|
274
277
|
const result = await removeEntity(ENTITY_DOCS, [makeFilter("id", docId)]);
|
|
275
278
|
return jsonResponse(result);
|
|
@@ -323,7 +326,10 @@ export async function updatePage(pageId, title = null, description = null, icon
|
|
|
323
326
|
const result = await updateEntity(ENTITY_PAGES, pageId, fields);
|
|
324
327
|
return jsonResponse(result);
|
|
325
328
|
}
|
|
326
|
-
/**
|
|
329
|
+
/**
|
|
330
|
+
* Soft-delete a page: /remove sets deletedAt and keeps the row, so this is
|
|
331
|
+
* reversible (undo with restoreRecord) — nothing is purged.
|
|
332
|
+
*/
|
|
327
333
|
export async function deletePage(pageId) {
|
|
328
334
|
const result = await removeEntity(ENTITY_PAGES, [makeFilter("id", pageId)]);
|
|
329
335
|
return jsonResponse(result);
|
|
@@ -466,7 +472,10 @@ export async function updateBlock(blockId, title = null, propertiesJson = null)
|
|
|
466
472
|
const result = await updateEntity(ENTITY_PAGE_BLOCKS, blockId, fields);
|
|
467
473
|
return jsonResponse(result);
|
|
468
474
|
}
|
|
469
|
-
/**
|
|
475
|
+
/**
|
|
476
|
+
* Soft-delete a single block: /remove sets deletedAt and keeps the row, so this
|
|
477
|
+
* is reversible (undo with restoreRecord) — nothing is purged.
|
|
478
|
+
*/
|
|
470
479
|
export async function deleteBlock(blockId) {
|
|
471
480
|
const result = await removeEntity(ENTITY_PAGE_BLOCKS, [makeFilter("id", blockId)]);
|
|
472
481
|
return jsonResponse(result);
|