Expand pubsub, economy, routing-advanced, and platform categories.
Manual pass adds listChannels, totalSupply, openCount, listSessionIds, new api.md files, corrected trust/reactive/conflict getStats docs, and category README hubs for routing-advanced, measurement, pear-platform, and trust-security. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
+25
-6
@@ -1,10 +1,29 @@
|
||||
# Pear / Bare platform
|
||||
|
||||
**Path:** `modules/pear-platform/` · **Modules:** 4 (4 production, 0 scaffold)
|
||||
**Path:** `modules/pear-platform/` · **Modules:** 4 (production)
|
||||
|
||||
See [MODULE_CATEGORIES.md](../MODULE_CATEGORIES.md#pear-platform).
|
||||
Pear runtime and Bare distribution helpers — sessions, update gossip, bundle bridge, distributable hints.
|
||||
|
||||
- [hyper-bare-bundle-bridge](./hyper-bare-bundle-bridge/) — production
|
||||
- [hyper-bare-distributable-hint](./hyper-bare-distributable-hint/) — production
|
||||
- [hyper-pear-runtime-session](./hyper-pear-runtime-session/) — production
|
||||
- [hyper-pear-update-gossip](./hyper-pear-update-gossip/) — production
|
||||
## Modules
|
||||
|
||||
| Module | Protocol | Highlights |
|
||||
|--------|----------|------------|
|
||||
| [hyper-pear-runtime-session](./hyper-pear-runtime-session/) | `pear-runtime-session/v1` | `listSessionIds()`, active session tracking |
|
||||
| [hyper-pear-update-gossip](./hyper-pear-update-gossip/) | `pear-update-gossip/v1` | Version hints over mesh |
|
||||
| [hyper-bare-bundle-bridge](./hyper-bare-bundle-bridge/) | `bare-bundle-bridge/v1` | Bundle manifest bridge |
|
||||
| [hyper-bare-distributable-hint](./hyper-bare-distributable-hint/) | `bare-distributable-hint/v1` | Distributable metadata hints |
|
||||
|
||||
## Quick start
|
||||
|
||||
```js
|
||||
const { HyperPearRuntimeSession } = require('hyper-pear-runtime-session')
|
||||
const sess = new HyperPearRuntimeSession()
|
||||
const { id } = sess.startSession({ app: 'demo' })
|
||||
console.log(sess.listSessionIds(), sess.getStats())
|
||||
```
|
||||
|
||||
## Test
|
||||
|
||||
```bash
|
||||
cd hyper-pear-runtime-session && npm test
|
||||
```
|
||||
|
||||
@@ -50,6 +50,8 @@ class HyperPearRuntimeSession extends EventEmitter {
|
||||
return this._sessions.get(id) || null
|
||||
}
|
||||
|
||||
listSessionIds () { return [...this._sessions.keys()] }
|
||||
|
||||
getStats () {
|
||||
return {
|
||||
...this._stats,
|
||||
|
||||
Reference in New Issue
Block a user