@crewx/sdk 0.9.0-rc.166 → 0.9.0-rc.168

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.
@@ -2,6 +2,7 @@ import { BaseSqliteRepository } from './base-sqlite-repository.js';
2
2
  import { RepositoryError } from './errors.js';
3
3
  import type { SidebarGroupColor } from '../schema/index.js';
4
4
  export declare const SIDEBAR_CLOSED_TAB_LIMIT = 20;
5
+ export declare const SIDEBAR_CLOSED_TAB_TTL_MS: number;
5
6
  export type SidebarTabErrorReason = 'NOT_FOUND' | 'INVALID_INPUT' | 'NOT_INITIALIZED';
6
7
  export declare class SidebarTabRepositoryError extends RepositoryError {
7
8
  readonly reason: SidebarTabErrorReason;
@@ -21,6 +22,7 @@ export interface SidebarSnapshot {
21
22
  groups: SidebarGroupSnapshot[];
22
23
  ungrouped: string[];
23
24
  closedCount: number;
25
+ closedNextExpiryAt: string | null;
24
26
  reads: Record<string, string>;
25
27
  }
26
28
  export interface InitSidebarResult {
@@ -59,9 +61,11 @@ export interface MarkThreadReadResult {
59
61
  }
60
62
  export declare class SidebarTabRepository extends BaseSqliteRepository {
61
63
  private readonly dbPath?;
64
+ private readonly clock;
62
65
  constructor(opts?: {
63
66
  dbPath?: string;
64
67
  dbRoot?: string;
68
+ clock?: () => number;
65
69
  });
66
70
  resolveDbPath(): string;
67
71
  private openHandle;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewx/sdk",
3
- "version": "0.9.0-rc.166",
3
+ "version": "0.9.0-rc.168",
4
4
  "license": "UNLICENSED",
5
5
  "engines": {
6
6
  "node": ">=20.19.0"