Monorepo for Tangled tangled.org
8

Configure Feed

Select the types of activity you want to include in your feed.

lexicons: cleanup `git.listLanguages` xrpc response schema

We only need language name & its size

Signed-off-by: Seongmin Lee <git@boltless.me>

author
Seongmin Lee
committer
Tangled
date (May 19, 2026, 11:38 AM +0300) commit b7d12ed1 parent 1632478a change-id vrnwrwrs
+5 -38
+2 -12
api/tangled/templistLanguages.go
··· 16 16 17 17 // GitTempListLanguages_Language is a "language" in the sh.tangled.git.temp.listLanguages schema. 18 18 type GitTempListLanguages_Language struct { 19 - // color: Hex color code for this language 20 - Color *string `json:"color,omitempty" cborgen:"color,omitempty"` 21 - // extensions: File extensions associated with this language 22 - Extensions []string `json:"extensions,omitempty" cborgen:"extensions,omitempty"` 23 - // fileCount: Number of files in this language 24 - FileCount *int64 `json:"fileCount,omitempty" cborgen:"fileCount,omitempty"` 25 19 // name: Programming language name 26 20 Name string `json:"name" cborgen:"name"` 27 - // percentage: Percentage of total codebase (0-100) 28 - Percentage int64 `json:"percentage" cborgen:"percentage"` 29 21 // size: Total size of files in this language (bytes) 30 22 Size int64 `json:"size" cborgen:"size"` 31 23 } ··· 35 27 Languages []*GitTempListLanguages_Language `json:"languages" cborgen:"languages"` 36 28 // ref: The git reference used 37 29 Ref string `json:"ref" cborgen:"ref"` 38 - // totalFiles: Total number of files analyzed 39 - TotalFiles *int64 `json:"totalFiles,omitempty" cborgen:"totalFiles,omitempty"` 40 - // totalSize: Total size of all analyzed files in bytes 41 - TotalSize *int64 `json:"totalSize,omitempty" cborgen:"totalSize,omitempty"` 30 + // total: Total size of all analyzed files in bytes 31 + Total int64 `json:"total" cborgen:"total"` 42 32 } 43 33 44 34 // GitTempListLanguages calls the XRPC method "sh.tangled.git.temp.listLanguages".
+3 -26
lexicons/git/temp/listLanguages.json
··· 24 24 "encoding": "application/json", 25 25 "schema": { 26 26 "type": "object", 27 - "required": ["ref", "languages"], 27 + "required": ["ref", "languages", "total"], 28 28 "properties": { 29 29 "ref": { 30 30 "type": "string", ··· 37 37 "ref": "#language" 38 38 } 39 39 }, 40 - "totalSize": { 40 + "total": { 41 41 "type": "integer", 42 42 "description": "Total size of all analyzed files in bytes" 43 - }, 44 - "totalFiles": { 45 - "type": "integer", 46 - "description": "Total number of files analyzed" 47 43 } 48 44 } 49 45 } ··· 65 61 }, 66 62 "language": { 67 63 "type": "object", 68 - "required": ["name", "size", "percentage"], 64 + "required": ["name", "size"], 69 65 "properties": { 70 66 "name": { 71 67 "type": "string", ··· 74 70 "size": { 75 71 "type": "integer", 76 72 "description": "Total size of files in this language (bytes)" 77 - }, 78 - "percentage": { 79 - "type": "integer", 80 - "description": "Percentage of total codebase (0-100)" 81 - }, 82 - "fileCount": { 83 - "type": "integer", 84 - "description": "Number of files in this language" 85 - }, 86 - "color": { 87 - "type": "string", 88 - "description": "Hex color code for this language" 89 - }, 90 - "extensions": { 91 - "type": "array", 92 - "items": { 93 - "type": "string" 94 - }, 95 - "description": "File extensions associated with this language" 96 73 } 97 74 } 98 75 }