@tokf/catalog-types 0.2.17

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.
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type CatalogAuthor = { username: string, avatar_url: string, profile_url: string, };
@@ -0,0 +1,5 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { CatalogAuthor } from "./CatalogAuthor";
3
+ import type { CatalogFilterStats } from "./CatalogFilterStats";
4
+
5
+ export type CatalogEntry = { content_hash: string, command_pattern: string, canonical_command: string, author: CatalogAuthor, is_stdlib: boolean, created_at: string, test_count: number, stats: CatalogFilterStats, };
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type CatalogFilterStats = { total_commands: number, total_input_tokens: number, total_output_tokens: number, savings_pct: number, };
@@ -0,0 +1,5 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { CatalogEntry } from "./CatalogEntry";
3
+ import type { GlobalStats } from "./GlobalStats";
4
+
5
+ export type CatalogIndex = { generated_at: string, version: number, filters: Array<CatalogEntry>, global_stats: GlobalStats, };
package/GlobalStats.ts ADDED
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type GlobalStats = { total_filters: number, total_commands: number, total_input_tokens: number, total_output_tokens: number, overall_savings_pct: number, };
package/catalog.ts ADDED
@@ -0,0 +1,8 @@
1
+ // Barrel file — re-exports all catalog types for convenient single-file import.
2
+ // Individual type files are auto-generated by ts-rs; this file is hand-maintained.
3
+ export type { CatalogAuthor } from "./CatalogAuthor";
4
+ export type { CatalogEntry } from "./CatalogEntry";
5
+ export type { CatalogEntry as FilterMetadata } from "./CatalogEntry";
6
+ export type { CatalogFilterStats } from "./CatalogFilterStats";
7
+ export type { CatalogIndex } from "./CatalogIndex";
8
+ export type { GlobalStats } from "./GlobalStats";
package/package.json ADDED
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "@tokf/catalog-types",
3
+ "version": "0.2.17",
4
+ "description": "TypeScript types for the tokf filter catalog (auto-generated from Rust via ts-rs)",
5
+ "type": "module",
6
+ "exports": {
7
+ ".": "./catalog.ts"
8
+ },
9
+ "types": "./catalog.ts",
10
+ "files": [
11
+ "*.ts"
12
+ ],
13
+ "license": "MIT",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "https://github.com/mpecan/tokf",
17
+ "directory": "crates/tokf-server/generated"
18
+ }
19
+ }