V0.38.4 full composition (#237)

Co-authored-by: gobha <jasafpro@gmail.com>
Co-committed-by: gobha <jasafpro@gmail.com>
This commit is contained in:
2026-03-25 17:29:08 +00:00
committed by xcaliber
parent fe5894b6e2
commit 495bcc94f4
17 changed files with 943 additions and 39 deletions

View File

@@ -95,6 +95,22 @@
T.assert(r.id === globalId, 'should match global connection by name');
});
// ── Connection Type Discovery (v0.38.4) ──
await T.test('connections', 'types-list', 'GET /connection-types returns array', async function () {
var r = await sw.api.connectionTypes.list();
T.assert(Array.isArray(r), 'should be array');
});
await T.test('connections', 'types-include-sdk-test', 'connection types include sdk-test-conn from global conn', async function () {
// The global connection we created above references package_id sdk-test-pkg
// but that package may not exist. The endpoint scans active package manifests,
// so this test verifies the endpoint returns without error. Actual type matching
// is tested in the composition domain with a real library.
var r = await sw.api.connectionTypes.list();
T.assert(Array.isArray(r), 'should be array (may be empty if no packages declare connections)');
});
// ── Cleanup ──────────────────────────────
await T.test('connections', 'personal-delete', 'delete personal connection', async function () {