From 41accc2894a3fa93879035168e8e6836e7668218 Mon Sep 17 00:00:00 2001 From: kzoeps Date: Fri, 9 Oct 2026 18:06:28 +0600 Subject: [PATCH] api: remove unused manifest metadata --- api/manifest.json | 69 ----------------------- api/tests/unit/context/attachment.test.js | 5 -- api/tests/unit/tooling/lua.test.js | 5 +- 3 files changed, 1 insertion(+), 78 deletions(-) diff --git a/api/manifest.json b/api/manifest.json index 413e2cf..7dbe9b9 100644 --- a/api/manifest.json +++ b/api/manifest.json @@ -1,75 +1,6 @@ { "name": "hypercerts-api-foundation", "collection": "app.certified.location", - "targetHappyViewRevision": "a2f347e605d7cd9c11669b320e43c10dbfe982e3", - "runtimeCompatibility": "compatible-at-target-revision", - "status": "handlers-implemented; location-and-actor-follow-runtime-validated-at-target-revision; other-query-runtime-validation-pending", - "handlerStatus": { - "getProfile": "implemented", - "getProfiles": "implemented", - "searchProfiles": "implemented", - "listProfiles": "implemented", - "getOrganization": "implemented", - "getOrganizations": "implemented", - "listOrganizations": "implemented", - "searchOrganizations": "implemented", - "getEvaluation": "implemented", - "listEvaluations": "implemented", - "getAcknowledgement": "implemented", - "listAcknowledgements": "implemented", - "getAttachment": "implemented", - "listAttachments": "implemented", - "getActivity": "implemented", - "listActivities": "implemented", - "searchActivities": "implemented", - "getCollection": "implemented", - "listCollections": "implemented", - "searchCollections": "implemented", - "listCollectionItems": "implemented", - "getFollow": "implemented", - "listActorFollowers": "implemented", - "listActorFollowing": "implemented", - "getLikes": "implemented", - "getReposts": "implemented", - "getActorLikes": "implemented", - "getActorReposts": "implemented", - "getEntityFollow": "implemented", - "listEntityFollowers": "implemented", - "listEntityFollowing": "implemented", - "listRecentFollows": "implemented", - "getReceipt": "implemented", - "listReceipts": "implemented", - "getBadgeDefinition": "implemented", - "listBadgeDefinitions": "implemented", - "getWorkscopeTag": "implemented", - "listWorkscopeTags": "implemented", - "getContribution": "implemented", - "listContributions": "implemented", - "getContributorInformation": "implemented", - "listContributorInformation": "implemented", - "getVocabTag": "implemented", - "listVocabTags": "implemented", - "getLocation": "implemented", - "listLocations": "implemented", - "searchBadgeDefinitions": "implemented", - "getBadgeAward": "implemented", - "listBadgeAwards": "implemented", - "getBadgeResponse": "implemented", - "listBadgeResponses": "implemented", - "getFeature": "implemented", - "listFeatures": "implemented", - "getMeasurement": "implemented", - "listMeasurements": "implemented", - "getEvmLink": "implemented", - "listEvmLinks": "implemented", - "getRights": "implemented", - "listRights": "implemented" - }, - "authentication": { - "decision": "public", - "unresolved": false, - "note": "Badge query endpoints expose public indexed record reads; all query endpoints expose public record reads and require no caller authentication." - }, "validationLexicons": [ { "id": "app.certified.location", diff --git a/api/tests/unit/context/attachment.test.js b/api/tests/unit/context/attachment.test.js index e5c210e..1375e41 100644 --- a/api/tests/unit/context/attachment.test.js +++ b/api/tests/unit/context/attachment.test.js @@ -131,11 +131,6 @@ test('attachment module registers one package record and both local query handle const manifest = JSON.parse(await readFile(`${root}/manifest.json`, 'utf8')); const modulePath = 'modules/context-attachments/manifest.json'; assert.ok(manifest.modules.includes(modulePath)); - assert.deepEqual({ - getAttachment: manifest.handlerStatus.getAttachment, - listAttachments: manifest.handlerStatus.listAttachments, - }, { getAttachment: 'implemented', listAttachments: 'implemented' }); - const modules = await Promise.all(manifest.modules.map(async (path) => JSON.parse(await readFile(`${root}/${path}`, 'utf8')))); const recordAssets = modules.flatMap(({ assets }) => assets.filter(({ kind, id }) => kind === 'lexicon' && id === ATTACHMENT)); assert.equal(recordAssets.length, 1, 'the package-backed attachment record Lexicon must be registered exactly once'); diff --git a/api/tests/unit/tooling/lua.test.js b/api/tests/unit/tooling/lua.test.js index 9c533b6..cf4c96a 100644 --- a/api/tests/unit/tooling/lua.test.js +++ b/api/tests/unit/tooling/lua.test.js @@ -56,15 +56,12 @@ test('checked-in Lua bundles reproduce from declared handler sources', async () }); test('manifest installs declared Lua query handlers from their built bundles and sources', async () => { - const { bundle, handlers } = await declaredLuaHandlers(); - assert.equal(bundle.authentication.unresolved, false); + const { handlers } = await declaredLuaHandlers(); assert.ok(handlers.length > 0, 'bundle must declare at least one Lua query handler'); for (const handler of handlers) { const { declaration, loaded } = handler; - const name = declaration.id.slice('xrpc.query:'.length).split('.').at(-1); assert.ok(loaded, `missing loaded handler ${declaration.id}`); - assert.equal(bundle.handlerStatus[name], 'implemented', `${name} must be marked implemented`); assert.equal(loaded.kind, 'script'); assert.equal(loaded.path, declaration.path); assert.equal(loaded.sourcePath, declaration.sourcePath);