@deepagents/context 0.24.0 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/browser.js +3 -0
- package/dist/browser.js.map +2 -2
- package/dist/index.js +18 -1
- package/dist/index.js.map +2 -2
- package/dist/lib/stream/sqlite.stream-store.d.ts +2 -1
- package/dist/lib/stream/sqlite.stream-store.d.ts.map +1 -1
- package/dist/lib/stream/stream-manager.d.ts +2 -1
- package/dist/lib/stream/stream-manager.d.ts.map +1 -1
- package/dist/lib/stream/stream-store.d.ts +5 -0
- package/dist/lib/stream/stream-store.d.ts.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -338,6 +338,10 @@ const manager = new StreamManager({
|
|
|
338
338
|
},
|
|
339
339
|
});
|
|
340
340
|
|
|
341
|
+
// Discover active streams without writing raw SQL.
|
|
342
|
+
const runningStreamIds = await store.listStreamIds({ status: 'running' });
|
|
343
|
+
const runningViaConvenienceMethod = await store.listRunningStreamIds();
|
|
344
|
+
|
|
341
345
|
// Shutdown cleanup (idempotent)
|
|
342
346
|
store.close();
|
|
343
347
|
```
|
package/dist/browser.js
CHANGED
|
@@ -1596,6 +1596,9 @@ async function persistedWriter(options) {
|
|
|
1596
1596
|
|
|
1597
1597
|
// packages/context/src/lib/stream/stream-store.ts
|
|
1598
1598
|
var StreamStore = class {
|
|
1599
|
+
async listRunningStreamIds() {
|
|
1600
|
+
return this.listStreamIds({ status: "running" });
|
|
1601
|
+
}
|
|
1599
1602
|
};
|
|
1600
1603
|
|
|
1601
1604
|
// packages/context/src/lib/visualize.ts
|