Commit ac5972d
feat: implement all 57 ObjectStackProtocol methods per kernel-services spec
- Add CoreServiceName type with 17 service names
- Add ServiceStatus, ServiceCriticality, KernelDiscoveryResponse types
- Add SERVICE_CRITICALITY mapping per spec
- Rewrite protocol.ts with all 57 methods:
- metadata (7): getDiscovery with per-service status map, getMetaTypes, getMetaItems, getMetaItem, saveMetaItem, getMetaItemCached, getUiView
- data (9): findData, getData, createData, updateData, deleteData, batchData, createManyData, updateManyData, deleteManyData
- analytics (2): analyticsQuery, getAnalyticsMeta with auto-generated measures/dimensions
- auth (3): checkPermission, getObjectPermissions, getEffectivePermissions (plugin stubs)
- ui (5): listViews, getView, createView, updateView, deleteView (plugin stubs)
- workflow (5): getWorkflowConfig, getWorkflowState, workflowTransition, workflowApprove, workflowReject (plugin stubs)
- automation (1): triggerAutomation (plugin stub)
- realtime (6): connect, disconnect, subscribe, unsubscribe, setPresence, getPresence (plugin stubs)
- notification (7): registerDevice, unregisterDevice, getNotificationPreferences, updateNotificationPreferences, listNotifications, markNotificationsRead, markAllNotificationsRead (plugin stubs)
- ai (4): aiNlq, aiChat, aiSuggest, aiInsights (plugin stubs)
- i18n (3): getLocales, getTranslations, getFieldLabels (plugin stubs)
- packages (6): listPackages, getPackage, installPackage, uninstallPackage, enablePackage, disablePackage
- Register analytics service alias in plugin.ts
- Add 15 new tests covering discovery, batch ops, analytics, and plugin stubs
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>1 parent bd66acb commit ac5972d
5 files changed
Lines changed: 722 additions & 154 deletions
File tree
- packages/foundation
- core
- src
- test
- types/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
195 | 201 | | |
196 | 202 | | |
197 | 203 | | |
| |||
0 commit comments