A vibe coded tangled fork which supports pijul.
at sl/knotmirror 68 lines 1.8 kB view raw
1{ 2 "lexicon": 1, 3 "id": "sh.tangled.git.temp.getBranch", 4 "defs": { 5 "main": { 6 "type": "query", 7 "parameters": { 8 "type": "params", 9 "required": ["repo", "name"], 10 "properties": { 11 "repo": { 12 "type": "string", 13 "format": "at-uri", 14 "description": "AT-URI of the repository" 15 }, 16 "name": { 17 "type": "string", 18 "description": "Branch name to get information for" 19 } 20 } 21 }, 22 "output": { 23 "encoding": "application/json", 24 "schema": { 25 "type": "object", 26 "required": ["name", "hash", "when"], 27 "properties": { 28 "name": { 29 "type": "string", 30 "description": "Branch name" 31 }, 32 "hash": { 33 "type": "string", 34 "description": "Latest commit hash on this branch" 35 }, 36 "when": { 37 "type": "string", 38 "format": "datetime", 39 "description": "Timestamp of latest commit" 40 }, 41 "message": { 42 "type": "string", 43 "description": "Latest commit message" 44 }, 45 "author": { 46 "type": "ref", 47 "ref": "sh.tangled.git.temp.defs#signature" 48 } 49 } 50 } 51 }, 52 "errors": [ 53 { 54 "name": "RepoNotFound", 55 "description": "Repository not found or access denied" 56 }, 57 { 58 "name": "BranchNotFound", 59 "description": "Branch not found" 60 }, 61 { 62 "name": "InvalidRequest", 63 "description": "Invalid request parameters" 64 } 65 ] 66 } 67 } 68}