@stacknet/rackutils 0.3.0 → 0.3.2

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.
@@ -230,6 +230,26 @@ interface TrendingRepo extends RepoInfo {
230
230
  usage: number;
231
231
  score: number;
232
232
  }
233
+ interface PaginationInfo {
234
+ /** Total items across all pages */
235
+ total: number;
236
+ /** Items per page */
237
+ limit: number;
238
+ /** Whether more items exist beyond this page */
239
+ has_more: boolean;
240
+ /** Opaque cursor for fetching the next page (null if no more) */
241
+ next_cursor: string | null;
242
+ }
243
+ interface PaginatedResult<T> {
244
+ items: T[];
245
+ pagination: PaginationInfo;
246
+ }
247
+ interface PaginationParams {
248
+ /** Max items to return (default 50, max 100) */
249
+ limit?: number;
250
+ /** Opaque cursor from a previous response's next_cursor */
251
+ cursor?: string;
252
+ }
233
253
  interface CostEstimate {
234
254
  type: 'skill' | 'tensor';
235
255
  totalBytes: number;
@@ -239,4 +259,4 @@ interface CostEstimate {
239
259
  registrationCostTokens: number;
240
260
  }
241
261
 
242
- export type { CostEstimate, DiffEntry, InitResult, NetworkStats, PushResult, RackConfig, RackSession, RepoCommit, RepoFile, RepoInfo, RepoTree, SkillMeta, SkillRegistrationInput, SkillRegistrationResult, SkillStats, StarInfo, StarResult, TensorMeta, TensorRegistrationInput, TensorRegistrationResult, TensorStats, TokenBudget, TreeEntry, TrendingRepo };
262
+ export type { CostEstimate, DiffEntry, InitResult, NetworkStats, PaginatedResult, PaginationInfo, PaginationParams, PushResult, RackConfig, RackSession, RepoCommit, RepoFile, RepoInfo, RepoTree, SkillMeta, SkillRegistrationInput, SkillRegistrationResult, SkillStats, StarInfo, StarResult, TensorMeta, TensorRegistrationInput, TensorRegistrationResult, TensorStats, TokenBudget, TreeEntry, TrendingRepo };
@@ -230,6 +230,26 @@ interface TrendingRepo extends RepoInfo {
230
230
  usage: number;
231
231
  score: number;
232
232
  }
233
+ interface PaginationInfo {
234
+ /** Total items across all pages */
235
+ total: number;
236
+ /** Items per page */
237
+ limit: number;
238
+ /** Whether more items exist beyond this page */
239
+ has_more: boolean;
240
+ /** Opaque cursor for fetching the next page (null if no more) */
241
+ next_cursor: string | null;
242
+ }
243
+ interface PaginatedResult<T> {
244
+ items: T[];
245
+ pagination: PaginationInfo;
246
+ }
247
+ interface PaginationParams {
248
+ /** Max items to return (default 50, max 100) */
249
+ limit?: number;
250
+ /** Opaque cursor from a previous response's next_cursor */
251
+ cursor?: string;
252
+ }
233
253
  interface CostEstimate {
234
254
  type: 'skill' | 'tensor';
235
255
  totalBytes: number;
@@ -239,4 +259,4 @@ interface CostEstimate {
239
259
  registrationCostTokens: number;
240
260
  }
241
261
 
242
- export type { CostEstimate, DiffEntry, InitResult, NetworkStats, PushResult, RackConfig, RackSession, RepoCommit, RepoFile, RepoInfo, RepoTree, SkillMeta, SkillRegistrationInput, SkillRegistrationResult, SkillStats, StarInfo, StarResult, TensorMeta, TensorRegistrationInput, TensorRegistrationResult, TensorStats, TokenBudget, TreeEntry, TrendingRepo };
262
+ export type { CostEstimate, DiffEntry, InitResult, NetworkStats, PaginatedResult, PaginationInfo, PaginationParams, PushResult, RackConfig, RackSession, RepoCommit, RepoFile, RepoInfo, RepoTree, SkillMeta, SkillRegistrationInput, SkillRegistrationResult, SkillStats, StarInfo, StarResult, TensorMeta, TensorRegistrationInput, TensorRegistrationResult, TensorStats, TokenBudget, TreeEntry, TrendingRepo };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stacknet/rackutils",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "React hooks and components for reading and writing StackNet Racks",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",