tenseleyflow/claudex / 578429a

Browse files

gitignore ts-rs default bindings fallback dir

Authored by espadonne
SHA
578429a4633b7e8b32abaa17c4e755fda957cb40
Parents
245c074
Tree
9bd4c2d

9 changed files

StatusFile+-
M .gitignore 1 0
D src-tauri/bindings/ContentBlock.ts 0 8
D src-tauri/bindings/Message.ts 0 22
D src-tauri/bindings/Project.ts 0 24
D src-tauri/bindings/SessionDetail.ts 0 8
D src-tauri/bindings/SessionSummary.ts 0 34
D src-tauri/bindings/StreamStatus.ts 0 6
D src-tauri/bindings/Usage.ts 0 9
D src-tauri/bindings/serde_json/JsonValue.ts 0 3
.gitignoremodified
@@ -6,6 +6,7 @@ node_modules/
66
 dist/
77
 src-tauri/target/
88
 src-tauri/gen/
9
+src-tauri/bindings/
910
 .DS_Store
1011
 *.log
1112
 *.tsbuildinfo
src-tauri/bindings/ContentBlock.tsdeleted
@@ -1,8 +0,0 @@
1
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
-import type { JsonValue } from "./serde_json/JsonValue";
3
-
4
-/**
5
- * Content block inside `Message::Assistant`. Matches the Anthropic
6
- * Messages API block shape the CLI pipes through.
7
- */
8
-export type ContentBlock = { "type": "text", text: string, } | { "type": "thinking", text: string, } | { "type": "tool_use", id: string, name: string, input: JsonValue, } | { "type": "tool_result", toolUseId: string, content: string, isError: boolean, };
src-tauri/bindings/Message.tsdeleted
@@ -1,22 +0,0 @@
1
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
-import type { ContentBlock } from "./ContentBlock";
3
-import type { StreamStatus } from "./StreamStatus";
4
-import type { Usage } from "./Usage";
5
-import type { JsonValue } from "./serde_json/JsonValue";
6
-
7
-/**
8
- * One entry in the viewer timeline. Tagged on `kind` so the TypeScript
9
- * side can discriminate exhaustively.
10
- */
11
-export type Message = { "kind": "user", id: string, at: string, text: string, 
12
-/**
13
- * `true` when this "user" event is actually a tool-result wrapper
14
- * injected by the agent loop, not something the human typed.
15
- */
16
-isMeta: boolean, } | { "kind": "assistant", id: string, at: string, model: string | null, blocks: Array<ContentBlock>, stopReason: string | null, usage: Usage | null, 
17
-/**
18
- * v1 seam: when v1's chat pane streams a response into the same
19
- * viewer, it sets `status: "streaming"` on the in-flight message.
20
- * v0 never sets this.
21
- */
22
-status?: StreamStatus, } | { "kind": "system", id: string, at: string, text: string, subtype: string | null, } | { "kind": "attachment", id: string, at: string, attachmentType: string, hookName: string | null, text: string, } | { "kind": "unknown", id: string, at: string | null, rawType: string, raw: JsonValue, };
src-tauri/bindings/Project.tsdeleted
@@ -1,24 +0,0 @@
1
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
-
3
-/**
4
- * One encoded-cwd directory under `~/.claude/projects/`.
5
- */
6
-export type Project = { 
7
-/**
8
- * Stable filesystem key — the encoded directory name.
9
- */
10
-id: string, 
11
-/**
12
- * Verified working directory (decoded + cross-checked against first
13
- * event that carried a `cwd` field), or best-guess decode if no
14
- * event in the project had one.
15
- */
16
-cwd: string, 
17
-/**
18
- * Basename of `cwd` for rendering.
19
- */
20
-displayName: string, sessionCount: number, 
21
-/**
22
- * Most recent `lastActivityAt` across all sessions in the project.
23
- */
24
-lastActivity: string | null, };
src-tauri/bindings/SessionDetail.tsdeleted
@@ -1,8 +0,0 @@
1
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
-import type { Message } from "./Message";
3
-import type { SessionSummary } from "./SessionSummary";
4
-
5
-/**
6
- * Full viewer payload — summary + fully decoded message timeline.
7
- */
8
-export type SessionDetail = { summary: SessionSummary, messages: Array<Message>, };
src-tauri/bindings/SessionSummary.tsdeleted
@@ -1,34 +0,0 @@
1
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
-
3
-/**
4
- * Cheap metadata for the TOC sidebar — never loads the full file.
5
- */
6
-export type SessionSummary = { 
7
-/**
8
- * UUID — the JSONL filename minus the extension.
9
- */
10
-id: string, 
11
-/**
12
- * The project's encoded-dir id.
13
- */
14
-projectId: string, 
15
-/**
16
- * customTitle > slug > first real user message (truncated) > "(untitled)"
17
- */
18
-title: string, 
19
-/**
20
- * First event carrying a timestamp.
21
- */
22
-startedAt: string | null, 
23
-/**
24
- * Last event carrying a timestamp, or filesystem mtime as fallback.
25
- */
26
-lastActivityAt: string | null, 
27
-/**
28
- * First assistant message's `message.model`, if observed.
29
- */
30
-model: string | null, 
31
-/**
32
- * Approximate; counts every line without re-parsing.
33
- */
34
-messageCount: number, gitBranch: string | null, version: string | null, slug: string | null, };
src-tauri/bindings/StreamStatus.tsdeleted
@@ -1,6 +0,0 @@
1
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
-
3
-/**
4
- * v1 seam: streaming state for an in-flight assistant message.
5
- */
6
-export type StreamStatus = "streaming" | "complete" | "error";
src-tauri/bindings/Usage.tsdeleted
@@ -1,9 +0,0 @@
1
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
-
3
-/**
4
- * Token accounting passed through from the Anthropic API response.
5
- * Fields are snake_case (unlike the rest of the frontend schema) because
6
- * they're verbatim from the API payload — renaming would require an
7
- * intermediate parse step that has no benefit.
8
- */
9
-export type Usage = { input_tokens: number, output_tokens: number, cache_creation_input_tokens: number, cache_read_input_tokens: number, };
src-tauri/bindings/serde_json/JsonValue.tsdeleted
@@ -1,3 +0,0 @@
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 JsonValue = number | string | boolean | Array<JsonValue> | { [key in string]?: JsonValue } | null;