Commit fb4b2ae
feat: align mero-js with core namespace model (#28)
* feat: add namespace and group APIs to AdminApiClient
Namespaces:
- listNamespaces() -- GET /admin-api/namespaces
- getNamespaceIdentity(id) -- GET /admin-api/namespaces/:id/identity
- listNamespacesForApplication(appId) -- GET /admin-api/namespaces/for-application/:appId
Groups:
- listGroups() -- GET /admin-api/groups
- createGroup(request) -- POST /admin-api/groups
- getGroupInfo(id) -- GET /admin-api/groups/:id
- deleteGroup(id) -- DELETE /admin-api/groups/:id
- listGroupMembers(id) -- GET /admin-api/groups/:id/members
- listGroupContexts(id) -- GET /admin-api/groups/:id/contexts
- createGroupInvitation(id) -- POST /admin-api/groups/:id/invite
- joinGroup(request) -- POST /admin-api/groups/join
- joinGroupContext(id, request) -- POST /admin-api/groups/:id/join-context
Made-with: Cursor
* feat: add serviceName to CreateContextRequest and Context types
Made-with: Cursor
* docs: add Admin API section to README (namespaces, groups, contexts, services)
Made-with: Cursor
* fix: add missing unwrap() to namespace/group GET methods
Cursor bot review found new GET methods were returning the raw
{ data: T } envelope instead of unwrapping the inner payload.
Fix response types to represent the unwrapped shape and add
unwrap() calls consistent with the existing pattern.
Exceptions (intentional):
- getNamespaceIdentity: server has no data wrapper
- listGroupMembers: data has sibling selfIdentity field
Made-with: Cursor
* refactor: rename joinGroupContext to joinContext (route: /contexts/:id/join)
Made-with: Cursor
* refactor: remove inviteToContext, simplify joinContext to group-membership only
Made-with: Cursor
* feat(admin-api): align AdminApiClient with redesigned core routes (#29)
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Sandi Fatic <chefsale@users.noreply.github.com>
* feat: align all types with core namespace model, add comprehensive tests
- Fix all admin-api request/response types to match core's actual structs
(namespaces, groups, contexts, TEE, invitations, capabilities as u32 bitmask)
- Add missing endpoints: listPackages, listPackageVersions
- Add requester field to all mutation request types
- Remove stale subscribeNamespace (route doesn't exist in core)
- Remove stale protocol field from CreateContextRequest
- Add 65 new unit tests covering all new/updated APIs (173 total)
- Rewrite E2E tests to use namespace -> group -> context flow
- Deprecate executorPublicKey in RPC (removed from core JSON-RPC)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* ci: restrict push trigger to master only
Prevents redundant CI runs on feature branches that already have
pull_request checks. Eliminates cancelled push checks on PRs.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Sandi Fatic <chefsale@users.noreply.github.com>
Co-authored-by: rtb-12 <ronit_c@me.iitr.ac.in>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 0a5a766 commit fb4b2ae
10 files changed
Lines changed: 12303 additions & 531 deletions
File tree
- .github/workflows
- src
- admin-api
- rpc
- tests/e2e
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
422 | 422 | | |
423 | 423 | | |
424 | 424 | | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
425 | 464 | | |
426 | 465 | | |
427 | 466 | | |
| |||
0 commit comments