feat: add session archival and filtering support#86
Conversation
- Added `archive()` and `unarchive()` methods to `SessionClient` in `packages/core/src/session.ts` and `packages/core/src/types.ts`. - Added `filter` option to `ListSessionsOptions` in `packages/core/src/sessions.ts` and updated `SessionCursor` to use it. - Added tests for `archive()`, `unarchive()` and `filter` in `packages/core/tests/session.test.ts` and `packages/core/tests/sessions.test.ts`. Fixes #78 Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
This reverts commit 77dd4c1.
Implemented session archival and filtering as described in Issue #78.
Changes:
packages/core/src/types.tsto includearchive()andunarchive()inSessionClientinterface.packages/core/src/session.tsto implementarchive()andunarchive(). These methods call the respective API endpoints and update the local storage cache to reflect the change immediately (Write-Through).packages/core/src/sessions.tsto addfiltertoListSessionsOptionsand pass it as a query parameter inSessionCursor.fetchPage.Verification:
npm test tests/session.test.ts tests/sessions.test.tsinpackages/core. All tests passed.PR created automatically by Jules for task 17600129499379175013 started by @davideast